diff --git a/cmd/console.go b/cmd/console.go
index 1d874dd..98a39d2 100644
--- a/cmd/console.go
+++ b/cmd/console.go
@@ -4,272 +4,272 @@
package cmd
import (
- "errors"
- "fmt"
- "net/url"
- "os"
- "time"
-
- "github.com/pb33f/openapi-changes/git"
- "github.com/pb33f/openapi-changes/model"
- "github.com/pb33f/openapi-changes/tui"
- "github.com/pterm/pterm"
- "github.com/spf13/cobra"
- "github.com/twinj/uuid"
+ "errors"
+ "fmt"
+ "net/url"
+ "os"
+ "time"
+
+ "github.com/pb33f/openapi-changes/git"
+ "github.com/pb33f/openapi-changes/model"
+ "github.com/pb33f/openapi-changes/tui"
+ "github.com/pterm/pterm"
+ "github.com/spf13/cobra"
+ "github.com/twinj/uuid"
)
func GetConsoleCommand() *cobra.Command {
- cmd := &cobra.Command{
- SilenceUsage: true,
- SilenceErrors: false,
- Use: "console",
- Short: "Interact with OpenAPI changes in an interactive terminal UI",
- Long: "Navigate though a single change or many changes visually. Explore" +
- " Each change, and see a side by side rendering of each change.",
- Example: "openapi-changes console /path/to/git/repo path/to/file/in/repo/openapi.yaml",
- RunE: func(cmd *cobra.Command, args []string) error {
-
- updateChan := make(chan *model.ProgressUpdate)
- errorChan := make(chan model.ProgressError)
- doneChan := make(chan bool)
- failed := false
- latestFlag, _ := cmd.Flags().GetBool("top")
-
- PrintBanner()
-
- // if there are no args, print out how to use the console.
- if len(args) == 0 {
- PrintHowToUse("console")
- return nil
- }
-
- listenForUpdates := func(updateChan chan *model.ProgressUpdate, errorChan chan model.ProgressError) {
- spinner, _ := pterm.DefaultSpinner.Start("starting work.")
- for {
- select {
- case update, ok := <-updateChan:
- if ok {
- spinner.UpdateText(update.Message)
- if update.Warning {
- pterm.Warning.Println(update.Message)
- }
- } else {
- if !failed {
- spinner.Info("starting console...")
- } else {
- spinner.Fail("failed to complete. sorry!")
- }
- doneChan <- true
- return
- }
- case err := <-errorChan:
- failed = true
- spinner.Fail(fmt.Sprintf("Stopped: %s", err.Message))
- pterm.Println()
- pterm.Println()
- doneChan <- true
- return
- }
- }
- }
-
- // check for two args (left and right)
- if len(args) < 2 {
-
- // check if arg is an url (like a github url)
- url, err := url.Parse(args[0])
- if err == nil {
-
- if url.Host == "github.com" {
- go listenForUpdates(updateChan, errorChan)
-
- user, repo, filePath, err := ExtractGithubDetailsFromURL(url)
- if err != nil {
- errorChan <- model.ProgressError{
- Job: "github url",
- Message: fmt.Sprintf("error extracting github details from url: %s", err.Error()),
- }
- <-doneChan
- return err
- }
- commits, er := runGithubHistoryConsole(user, repo, filePath, latestFlag, updateChan, errorChan)
-
- // wait for things to be completed.
- <-doneChan
-
- if err != nil {
- return er[0]
- }
- if !failed {
-
- // boot.
- app := tui.BuildApplication(commits, Version)
- if err := app.Run(); err != nil {
- panic(err)
- }
-
- }
- return nil
- }
-
- } else {
- pterm.Error.Println("Two arguments are required to compare left and right OpenAPI Specifications.")
- return nil
- }
- }
-
- if len(args) == 2 {
-
- // check if the first arg is a directory, if so - process as a git history operation.
- p := args[0]
- f, err := os.Stat(p)
- if err != nil {
- pterm.Error.Printf("Cannot open file/repository: '%s'", args[0])
- return err
- }
-
- if f.IsDir() {
-
- p = args[1]
- f, err = os.Stat(p)
- if err != nil {
- pterm.Error.Printf("Cannot open file/repository: '%s'", args[1])
- return err
- }
-
- go listenForUpdates(updateChan, errorChan)
-
- commits, errs := runGitHistoryConsole(args[0], args[1], latestFlag, updateChan, errorChan)
-
- // wait.
- <-doneChan
-
- if errs != nil {
- return errs[0]
- }
-
- // boot.
- app := tui.BuildApplication(commits, Version)
- if err := app.Run(); err != nil {
- pterm.Error.Println("console is unable to start, are you running this inside a container?")
- pterm.Error.Println("the console requires a terminal to run, it cannot run on a headless system.")
- fmt.Println()
- fmt.Println()
- return err
- }
-
- } else {
- errs := runLeftRightCompare(args[0], args[1])
- if len(errs) > 0 {
- for e := range errs {
- pterm.Error.Println(errs[e].Error())
- }
- return errors.New("unable to process specifications")
- }
- return nil
- }
- }
- pterm.Error.Println("too many arguments, expecting two (2)")
- return nil
- },
- }
-
- return cmd
+ cmd := &cobra.Command{
+ SilenceUsage: true,
+ SilenceErrors: false,
+ Use: "console",
+ Short: "Interact with OpenAPI changes in an interactive terminal UI",
+ Long: "Navigate though a single change or many changes visually. Explore" +
+ " Each change, and see a side by side rendering of each change.",
+ Example: "openapi-changes console /path/to/git/repo path/to/file/in/repo/openapi.yaml",
+ RunE: func(cmd *cobra.Command, args []string) error {
+
+ updateChan := make(chan *model.ProgressUpdate)
+ errorChan := make(chan model.ProgressError)
+ doneChan := make(chan bool)
+ failed := false
+ latestFlag, _ := cmd.Flags().GetBool("top")
+
+ PrintBanner()
+
+ // if there are no args, print out how to use the console.
+ if len(args) == 0 {
+ PrintHowToUse("console")
+ return nil
+ }
+
+ listenForUpdates := func(updateChan chan *model.ProgressUpdate, errorChan chan model.ProgressError) {
+ spinner, _ := pterm.DefaultSpinner.Start("starting work.")
+ for {
+ select {
+ case update, ok := <-updateChan:
+ if ok {
+ spinner.UpdateText(update.Message)
+ if update.Warning {
+ pterm.Warning.Println(update.Message)
+ }
+ } else {
+ if !failed {
+ spinner.Info("starting console...")
+ } else {
+ spinner.Fail("failed to complete. sorry!")
+ }
+ doneChan <- true
+ return
+ }
+ case err := <-errorChan:
+ failed = true
+ spinner.Fail(fmt.Sprintf("Stopped: %s", err.Message))
+ pterm.Println()
+ pterm.Println()
+ doneChan <- true
+ return
+ }
+ }
+ }
+
+ // check for two args (left and right)
+ if len(args) < 2 {
+
+ // check if arg is an url (like a github url)
+ url, err := url.Parse(args[0])
+ if err == nil {
+
+ if url.Host == "github.com" {
+ go listenForUpdates(updateChan, errorChan)
+
+ user, repo, filePath, err := ExtractGithubDetailsFromURL(url)
+ if err != nil {
+ errorChan <- model.ProgressError{
+ Job: "github url",
+ Message: fmt.Sprintf("error extracting github details from url: %s", err.Error()),
+ }
+ <-doneChan
+ return err
+ }
+ commits, er := runGithubHistoryConsole(user, repo, filePath, latestFlag, updateChan, errorChan)
+
+ // wait for things to be completed.
+ <-doneChan
+
+ if err != nil {
+ return er[0]
+ }
+ if !failed {
+
+ // boot.
+ app := tui.BuildApplication(commits, Version)
+ if err := app.Run(); err != nil {
+ panic(err)
+ }
+
+ }
+ return nil
+ }
+
+ } else {
+ pterm.Error.Println("Two arguments are required to compare left and right OpenAPI Specifications.")
+ return nil
+ }
+ }
+
+ if len(args) == 2 {
+
+ // check if the first arg is a directory, if so - process as a git history operation.
+ p := args[0]
+ f, err := os.Stat(p)
+ if err != nil {
+ pterm.Error.Printf("Cannot open file/repository: '%s'", args[0])
+ return err
+ }
+
+ if f.IsDir() {
+
+ p = args[1]
+ f, err = os.Stat(p)
+ if err != nil {
+ pterm.Error.Printf("Cannot open file/repository: '%s'", args[1])
+ return err
+ }
+
+ go listenForUpdates(updateChan, errorChan)
+
+ commits, errs := runGitHistoryConsole(args[0], args[1], latestFlag, updateChan, errorChan)
+
+ // wait.
+ <-doneChan
+
+ if errs != nil {
+ return errs[0]
+ }
+
+ // boot.
+ app := tui.BuildApplication(commits, Version)
+ if err := app.Run(); err != nil {
+ pterm.Error.Println("console is unable to start, are you running this inside a container?")
+ pterm.Error.Println("the console requires a terminal to run, it cannot run on a headless system.")
+ fmt.Println()
+ fmt.Println()
+ return err
+ }
+
+ } else {
+ errs := runLeftRightCompare(args[0], args[1], updateChan, errorChan)
+ if len(errs) > 0 {
+ for e := range errs {
+ pterm.Error.Println(errs[e].Error())
+ }
+ return errors.New("unable to process specifications")
+ }
+ return nil
+ }
+ }
+ pterm.Error.Println("too many arguments, expecting two (2)")
+ return nil
+ },
+ }
+
+ return cmd
}
func runGithubHistoryConsole(username, repo, filePath string, latest bool,
- progressChan chan *model.ProgressUpdate, errorChan chan model.ProgressError) ([]*model.Commit, []error) {
+ progressChan chan *model.ProgressUpdate, errorChan chan model.ProgressError) ([]*model.Commit, []error) {
- commitHistory, errs := git.ProcessGithubRepo(username, repo, filePath, progressChan, errorChan, false,3)
+ commitHistory, errs := git.ProcessGithubRepo(username, repo, filePath, progressChan, errorChan, false, 3)
- if errs != nil {
- return nil, errs
- }
+ if errs != nil {
+ return nil, errs
+ }
- if latest {
- commitHistory = commitHistory[:1]
- }
+ if latest {
+ commitHistory = commitHistory[:1]
+ }
- model.SendProgressUpdate("extraction",
- fmt.Sprintf("extracted %d commits from history", len(commitHistory)), true, progressChan)
+ model.SendProgressUpdate("extraction",
+ fmt.Sprintf("extracted %d commits from history", len(commitHistory)), true, progressChan)
- close(progressChan)
- return commitHistory, nil
+ close(progressChan)
+ return commitHistory, nil
}
func runGitHistoryConsole(gitPath, filePath string, latest bool,
- updateChan chan *model.ProgressUpdate, errorChan chan model.ProgressError) ([]*model.Commit, []error) {
+ updateChan chan *model.ProgressUpdate, errorChan chan model.ProgressError) ([]*model.Commit, []error) {
- if gitPath == "" || filePath == "" {
- err := errors.New("please supply a path to a git repo via -r, and a path to a file via -f")
- model.SendProgressError("git", err.Error(), errorChan)
- return nil, []error{err}
- }
+ if gitPath == "" || filePath == "" {
+ err := errors.New("please supply a path to a git repo via -r, and a path to a file via -f")
+ model.SendProgressError("git", err.Error(), errorChan)
+ return nil, []error{err}
+ }
- model.SendProgressUpdate("extraction",
- fmt.Sprintf("Extracting history for '%s' in repo '%s",
- filePath, gitPath), false, updateChan)
+ model.SendProgressUpdate("extraction",
+ fmt.Sprintf("Extracting history for '%s' in repo '%s",
+ filePath, gitPath), false, updateChan)
- // build commit history.
- commitHistory, err := git.ExtractHistoryFromFile(gitPath, filePath, updateChan, errorChan)
- if err != nil {
- model.SendProgressError("git", fmt.Sprintf("%d errors found extracting history", len(err)), errorChan)
- return nil, err
- }
+ // build commit history.
+ commitHistory, err := git.ExtractHistoryFromFile(gitPath, filePath, updateChan, errorChan)
+ if err != nil {
+ model.SendProgressError("git", fmt.Sprintf("%d errors found extracting history", len(err)), errorChan)
+ return nil, err
+ }
- // populate history with changes and data
- git.PopulateHistoryWithChanges(commitHistory, 0, updateChan, errorChan)
+ // populate history with changes and data
+ git.PopulateHistoryWithChanges(commitHistory, 0, updateChan, errorChan)
- if latest {
- commitHistory = commitHistory[:1]
- }
+ if latest {
+ commitHistory = commitHistory[:1]
+ }
- model.SendProgressUpdate("extraction",
- fmt.Sprintf("extracted %d commits from history", len(commitHistory)), true, updateChan)
+ model.SendProgressUpdate("extraction",
+ fmt.Sprintf("extracted %d commits from history", len(commitHistory)), true, updateChan)
- close(updateChan)
+ close(updateChan)
- return commitHistory, nil
+ return commitHistory, nil
}
-func runLeftRightCompare(left, right string) []error {
-
- var leftBytes, rightBytes []byte
- var errs []error
- var err error
-
- leftBytes, err = os.ReadFile(left)
- if err != nil {
- return []error{err}
- }
- rightBytes, err = os.ReadFile(right)
- if err != nil {
- return []error{err}
- }
-
- commits := []*model.Commit{
- {
- Hash: uuid.NewV4().String()[:6],
- Message: fmt.Sprintf("New: %s, Original: %s", right, left),
- CommitDate: time.Now(),
- Data: rightBytes,
- },
- {
- Hash: uuid.NewV4().String()[:6],
- Message: fmt.Sprintf("Original file: %s", left),
- CommitDate: time.Now(),
- Data: leftBytes,
- },
- }
-
- commits, errs = git.BuildCommitChangelog(commits)
- if len(errs) > 0 {
- return errs
- }
- app := tui.BuildApplication(commits, Version)
- if err := app.Run(); err != nil {
- return []error{err}
- }
- return nil
+func runLeftRightCompare(left, right string, updateChan chan *model.ProgressUpdate, errorChan chan model.ProgressError) []error {
+
+ var leftBytes, rightBytes []byte
+ var errs []error
+ var err error
+
+ leftBytes, err = os.ReadFile(left)
+ if err != nil {
+ return []error{err}
+ }
+ rightBytes, err = os.ReadFile(right)
+ if err != nil {
+ return []error{err}
+ }
+
+ commits := []*model.Commit{
+ {
+ Hash: uuid.NewV4().String()[:6],
+ Message: fmt.Sprintf("New: %s, Original: %s", right, left),
+ CommitDate: time.Now(),
+ Data: rightBytes,
+ },
+ {
+ Hash: uuid.NewV4().String()[:6],
+ Message: fmt.Sprintf("Original file: %s", left),
+ CommitDate: time.Now(),
+ Data: leftBytes,
+ },
+ }
+
+ commits, errs = git.BuildCommitChangelog(commits, updateChan, errorChan)
+ if len(errs) > 0 {
+ return errs
+ }
+ app := tui.BuildApplication(commits, Version)
+ if err := app.Run(); err != nil {
+ return []error{err}
+ }
+ return nil
}
diff --git a/cmd/html_report.go b/cmd/html_report.go
index 546342c..4c4d02d 100644
--- a/cmd/html_report.go
+++ b/cmd/html_report.go
@@ -12,7 +12,6 @@ import (
"strings"
"time"
- "github.com/pb33f/libopenapi/resolver"
"github.com/pb33f/openapi-changes/git"
html_report "github.com/pb33f/openapi-changes/html-report"
"github.com/pb33f/openapi-changes/model"
@@ -41,6 +40,7 @@ func GetHTMLReportCommand() *cobra.Command {
noColorFlag, _ := cmd.Flags().GetBool("no-color")
cdnFlag, _ := cmd.Flags().GetBool("use-cdn")
latestFlag, _ := cmd.Flags().GetBool("top")
+ limitFlag, _ := cmd.Flags().GetInt("limit")
if noColorFlag {
pterm.DisableStyling()
@@ -106,7 +106,7 @@ func GetHTMLReportCommand() *cobra.Command {
<-doneChan
return err
}
- report, _, er := RunGithubHistoryHTMLReport(user, repo, filePath, latestFlag, cdnFlag, updateChan, errorChan, 3)
+ report, _, er := RunGithubHistoryHTMLReport(user, repo, filePath, latestFlag, cdnFlag, false, updateChan, errorChan, limitFlag)
// wait for things to be completed.
<-doneChan
@@ -173,7 +173,7 @@ func GetHTMLReportCommand() *cobra.Command {
} else {
- report, errs := RunLeftRightHTMLReport(args[0], args[1], cdnFlag)
+ report, errs := RunLeftRightHTMLReport(args[0], args[1], cdnFlag, updateChan, errorChan)
if len(errs) > 0 {
for e := range errs {
pterm.Error.Println(errs[e].Error())
@@ -194,6 +194,7 @@ func GetHTMLReportCommand() *cobra.Command {
}
cmd.Flags().BoolP("no-style", "n", false, "Disable color and style output (very useful for CI/CD)")
cmd.Flags().BoolP("use-cdn", "c", false, "Use CDN for CSS and JS delivery instead of bundling inline")
+
return cmd
}
@@ -201,7 +202,7 @@ func ExtractGithubDetailsFromURL(url *url.URL) (string, string, string, error) {
path := url.Path
dir, file := filepath.Split(path)
dirSegments := strings.Split(dir, "/")
- if len(dirSegments) > 6 {
+ if len(dirSegments) >= 6 {
user := dirSegments[1]
repo := dirSegments[2]
filePath := fmt.Sprintf("%s%s", strings.Join(dirSegments[5:], "/"), file)
@@ -243,8 +244,10 @@ func RunGitHistoryHTMLReport(gitPath, filePath string, latest, useCDN bool,
}
}
- model.SendProgressUpdate("extraction",
- fmt.Sprintf("extracted %d reports from history", len(reports)), true, progressChan)
+ if len(reports) > 0 {
+ model.SendProgressUpdate("extraction",
+ fmt.Sprintf("Extracted '%d' reports from file history", len(reports)), true, progressChan)
+ }
close(progressChan)
@@ -252,22 +255,12 @@ func RunGitHistoryHTMLReport(gitPath, filePath string, latest, useCDN bool,
return generator.GenerateReport(false, useCDN, false), reports, nil
}
-func RunGithubHistoryHTMLReport(username, repo, filePath string, latest, useCDN bool,
+func RunGithubHistoryHTMLReport(username, repo, filePath string, latest, useCDN, embeddedMode bool,
progressChan chan *model.ProgressUpdate, errorChan chan model.ProgressError, limit int) ([]byte, []*model.Report, []error) {
commitHistory, errs := git.ProcessGithubRepo(username, repo, filePath, progressChan, errorChan, true, limit)
- if errs != nil {
- for x := range errs {
- if e, ok := errs[x].(*resolver.ResolvingError); !ok {
- model.SendProgressError("git", fmt.Sprintf("resolving error: %s", e.Error()), errorChan)
- } else {
- model.SendProgressError("git", fmt.Sprintf("parsing error: %s", e.Error()), errorChan)
- }
- }
- }
-
- if latest {
+ if latest && len(commitHistory) > 1 {
commitHistory = commitHistory[:1]
}
@@ -278,11 +271,13 @@ func RunGithubHistoryHTMLReport(username, repo, filePath string, latest, useCDN
}
}
- model.SendProgressUpdate("extraction",
- fmt.Sprintf("extracted %d reports from history", len(reports)), true, progressChan)
+ if len(reports) > 0 {
+ model.SendProgressUpdate("extraction",
+ fmt.Sprintf("Extracted '%d' reports from file history", len(reports)), true, progressChan)
+ }
// if there are no reports and no commits, return no bytes.
- if len(reports) == 0 && len(commitHistory) == 0 {
+ if len(reports) == 0 {
model.SendProgressError("extraction",
fmt.Sprintf("history extraction failed %d reports generated for '%s'", len(reports), filePath), errorChan)
@@ -294,10 +289,11 @@ func RunGithubHistoryHTMLReport(username, repo, filePath string, latest, useCDN
generator := html_report.NewHTMLReport(false, time.Now(), commitHistory)
close(progressChan)
- return generator.GenerateReport(true, false, true), reports, errs
+ return generator.GenerateReport(false, useCDN, embeddedMode), reports, errs
}
-func RunLeftRightHTMLReport(left, right string, useCDN bool) ([]byte, []error) {
+func RunLeftRightHTMLReport(left, right string, useCDN bool,
+ progressChan chan *model.ProgressUpdate, errorChan chan model.ProgressError, ) ([]byte, []error) {
var leftBytes, rightBytes []byte
var errs []error
@@ -327,7 +323,7 @@ func RunLeftRightHTMLReport(left, right string, useCDN bool) ([]byte, []error) {
},
}
- commits, errs = git.BuildCommitChangelog(commits)
+ commits, errs = git.BuildCommitChangelog(commits, progressChan, errorChan)
if len(errs) > 0 {
return nil, errs
}
diff --git a/cmd/report.go b/cmd/report.go
index b4ec77e..dc225f4 100644
--- a/cmd/report.go
+++ b/cmd/report.go
@@ -4,297 +4,298 @@
package cmd
import (
- "encoding/json"
- "errors"
- "fmt"
- "net/url"
- "os"
- "path"
- "time"
-
- "github.com/pb33f/libopenapi/what-changed/reports"
- "github.com/pb33f/openapi-changes/git"
- "github.com/pb33f/openapi-changes/model"
- "github.com/pterm/pterm"
- "github.com/spf13/cobra"
- "github.com/twinj/uuid"
+ "encoding/json"
+ "errors"
+ "fmt"
+ "net/url"
+ "os"
+ "path"
+ "time"
+
+ "github.com/pb33f/libopenapi/what-changed/reports"
+ "github.com/pb33f/openapi-changes/git"
+ "github.com/pb33f/openapi-changes/model"
+ "github.com/pterm/pterm"
+ "github.com/spf13/cobra"
+ "github.com/twinj/uuid"
)
func GetReportCommand() *cobra.Command {
- cmd := &cobra.Command{
- SilenceUsage: true,
- SilenceErrors: false,
- Use: "report",
- Short: "Generate a machine readable report for what has changed",
- Long: "Generate a report for what has changed between two OpenAPI specs, or a single spec, over time.",
- Example: "openapi-changes report /path/to/git/repo path/to/file/in/repo/openapi.yaml",
- RunE: func(cmd *cobra.Command, args []string) error {
-
- updateChan := make(chan *model.ProgressUpdate)
- errorChan := make(chan model.ProgressError)
- doneChan := make(chan bool)
- failed := false
- latestFlag, _ := cmd.Flags().GetBool("top")
-
- // if there are no args, print out how to use the console.
- if len(args) == 0 {
- PrintBanner()
- PrintHowToUse("report")
- return nil
- }
-
- listenForUpdates := func(updateChan chan *model.ProgressUpdate, errorChan chan model.ProgressError) {
- for {
- select {
- case _, ok := <-updateChan:
- if !ok {
- doneChan <- true
- return
- }
- case <-errorChan:
- failed = true
- doneChan <- true
- return
- }
- }
- }
-
- // check for two args (left and right)
- if len(args) < 2 {
-
- // check if arg is an url (like a github url)
- url, err := url.Parse(args[0])
- if err == nil {
-
- if url.Host == "github.com" {
- go listenForUpdates(updateChan, errorChan)
-
- user, repo, filePath, err := ExtractGithubDetailsFromURL(url)
- if err != nil {
- errorChan <- model.ProgressError{
- Job: "github url",
- Message: fmt.Sprintf("error extracting github details from url: %s", err.Error()),
- }
- <-doneChan
- return err
- }
- report, er := runGithubHistoryReport(user, repo, filePath, latestFlag, updateChan, errorChan)
-
- // wait for things to be completed.
- <-doneChan
-
- if failed {
- pterm.Error.Println("report failed to generate.")
- pterm.Println()
- pterm.Println()
- return errors.New("report failed to generate")
- }
-
- if er != nil {
- for x := range er {
- pterm.Error.Println(er[x].Error())
- }
- return er[0]
- }
-
- jsonBytes, _ := json.MarshalIndent(report, "", " ")
- fmt.Println(string(jsonBytes))
- return nil
- }
-
- } else {
- pterm.Error.Println("Two arguments are required to compare left and right OpenAPI Specifications.")
- return nil
- }
- }
- if len(args) == 2 {
-
- // check if the first arg is a directory, if so - process as a git history operation.
- p := args[0]
- f, err := os.Stat(p)
- if err != nil {
- pterm.Error.Printf("Cannot open file/repository: '%s': %s", args[0])
- return err
- }
-
- if f.IsDir() {
-
- p = args[1]
- f, err = os.Stat(p)
- if err != nil {
- pterm.Error.Printf("Cannot open file/repository: '%s'", args[1])
- return err
- }
-
- go listenForUpdates(updateChan, errorChan)
-
- report, er := runGitHistoryReport(args[0], args[1], latestFlag, updateChan, errorChan)
-
- <-doneChan
-
- if failed {
- pterm.Error.Println("report failed to generate.")
- pterm.Println()
- pterm.Println()
- return errors.New("report failed to generate")
- }
-
- if er != nil {
- for x := range er {
- pterm.Error.Println(er[x].Error())
- }
- return er[0]
- }
-
- jsonBytes, _ := json.MarshalIndent(report, "", " ")
- fmt.Println(string(jsonBytes))
- return nil
-
- } else {
-
- report, errs := runLeftRightReport(args[0], args[1])
- if len(errs) > 0 {
- for e := range errs {
- pterm.Error.Println(errs[e].Error())
- }
- return errors.New("unable to process specifications")
- }
-
- jsonBytes, _ := json.MarshalIndent(report, "", " ")
- fmt.Println(string(jsonBytes))
- return nil
- }
- }
- pterm.Error.Println("too many arguments, expecting two (2)")
- return nil
- },
- }
- return cmd
+ cmd := &cobra.Command{
+ SilenceUsage: true,
+ SilenceErrors: false,
+ Use: "report",
+ Short: "Generate a machine readable report for what has changed",
+ Long: "Generate a report for what has changed between two OpenAPI specs, or a single spec, over time.",
+ Example: "openapi-changes report /path/to/git/repo path/to/file/in/repo/openapi.yaml",
+ RunE: func(cmd *cobra.Command, args []string) error {
+
+ updateChan := make(chan *model.ProgressUpdate)
+ errorChan := make(chan model.ProgressError)
+ doneChan := make(chan bool)
+ failed := false
+ latestFlag, _ := cmd.Flags().GetBool("top")
+
+ // if there are no args, print out how to use the console.
+ if len(args) == 0 {
+ PrintBanner()
+ PrintHowToUse("report")
+ return nil
+ }
+
+ listenForUpdates := func(updateChan chan *model.ProgressUpdate, errorChan chan model.ProgressError) {
+ for {
+ select {
+ case _, ok := <-updateChan:
+ if !ok {
+ doneChan <- true
+ return
+ }
+ case <-errorChan:
+ failed = true
+ doneChan <- true
+ return
+ }
+ }
+ }
+
+ // check for two args (left and right)
+ if len(args) < 2 {
+
+ // check if arg is an url (like a github url)
+ url, err := url.Parse(args[0])
+ if err == nil {
+
+ if url.Host == "github.com" {
+ go listenForUpdates(updateChan, errorChan)
+
+ user, repo, filePath, err := ExtractGithubDetailsFromURL(url)
+ if err != nil {
+ errorChan <- model.ProgressError{
+ Job: "github url",
+ Message: fmt.Sprintf("error extracting github details from url: %s", err.Error()),
+ }
+ <-doneChan
+ return err
+ }
+ report, er := runGithubHistoryReport(user, repo, filePath, latestFlag, updateChan, errorChan)
+
+ // wait for things to be completed.
+ <-doneChan
+
+ if failed {
+ pterm.Error.Println("report failed to generate.")
+ pterm.Println()
+ pterm.Println()
+ return errors.New("report failed to generate")
+ }
+
+ if er != nil {
+ for x := range er {
+ pterm.Error.Println(er[x].Error())
+ }
+ return er[0]
+ }
+
+ jsonBytes, _ := json.MarshalIndent(report, "", " ")
+ fmt.Println(string(jsonBytes))
+ return nil
+ }
+
+ } else {
+ pterm.Error.Println("Two arguments are required to compare left and right OpenAPI Specifications.")
+ return nil
+ }
+ }
+ if len(args) == 2 {
+
+ // check if the first arg is a directory, if so - process as a git history operation.
+ p := args[0]
+ f, err := os.Stat(p)
+ if err != nil {
+ pterm.Error.Printf("Cannot open file/repository: '%s': %s", args[0])
+ return err
+ }
+
+ if f.IsDir() {
+
+ p = args[1]
+ f, err = os.Stat(p)
+ if err != nil {
+ pterm.Error.Printf("Cannot open file/repository: '%s'", args[1])
+ return err
+ }
+
+ go listenForUpdates(updateChan, errorChan)
+
+ report, er := runGitHistoryReport(args[0], args[1], latestFlag, updateChan, errorChan)
+
+ <-doneChan
+
+ if failed {
+ pterm.Error.Println("report failed to generate.")
+ pterm.Println()
+ pterm.Println()
+ return errors.New("report failed to generate")
+ }
+
+ if er != nil {
+ for x := range er {
+ pterm.Error.Println(er[x].Error())
+ }
+ return er[0]
+ }
+
+ jsonBytes, _ := json.MarshalIndent(report, "", " ")
+ fmt.Println(string(jsonBytes))
+ return nil
+
+ } else {
+
+ report, errs := runLeftRightReport(args[0], args[1], updateChan, errorChan)
+ if len(errs) > 0 {
+ for e := range errs {
+ pterm.Error.Println(errs[e].Error())
+ }
+ return errors.New("unable to process specifications")
+ }
+
+ jsonBytes, _ := json.MarshalIndent(report, "", " ")
+ fmt.Println(string(jsonBytes))
+ return nil
+ }
+ }
+ pterm.Error.Println("too many arguments, expecting two (2)")
+ return nil
+ },
+ }
+ return cmd
}
func runGitHistoryReport(gitPath, filePath string, latest bool,
- updateChan chan *model.ProgressUpdate, errorChan chan model.ProgressError) (*model.HistoricalReport, []error) {
-
- if gitPath == "" || filePath == "" {
- err := errors.New("please supply a path to a git repo via -r, and a path to a file via -f")
- model.SendProgressError("git", err.Error(), errorChan)
- return nil, []error{err}
- }
-
- model.SendProgressUpdate("extraction",
- fmt.Sprintf("Extracting history for '%s' in repo '%s",
- filePath, gitPath), false, updateChan)
-
- // build commit history.
- commitHistory, err := git.ExtractHistoryFromFile(gitPath, filePath, updateChan, errorChan)
- if err != nil {
- return nil, err
- }
-
- // populate history with changes and data
- commitHistory, err = git.PopulateHistoryWithChanges(commitHistory, 0, updateChan, errorChan)
- if err != nil {
- model.SendProgressError("git", fmt.Sprintf("%d errors found extracting history", len(err)), errorChan)
- return nil, err
- }
-
- if latest {
- commitHistory = commitHistory[:1]
- }
-
- var reports []*model.Report
- for r := range commitHistory {
- if commitHistory[r].Changes != nil {
- reports = append(reports, createReport(commitHistory[r]))
- }
- }
- model.SendProgressUpdate("extraction",
- fmt.Sprintf("extracted %d reports from history", len(reports)), true, updateChan)
-
- close(updateChan)
-
- return &model.HistoricalReport{
- GitRepoPath: gitPath,
- GitFilePath: filePath,
- Filename: path.Base(filePath),
- DateGenerated: time.Now().String(),
- Reports: reports,
- }, nil
+ updateChan chan *model.ProgressUpdate, errorChan chan model.ProgressError) (*model.HistoricalReport, []error) {
+
+ if gitPath == "" || filePath == "" {
+ err := errors.New("please supply a path to a git repo via -r, and a path to a file via -f")
+ model.SendProgressError("git", err.Error(), errorChan)
+ return nil, []error{err}
+ }
+
+ model.SendProgressUpdate("extraction",
+ fmt.Sprintf("Extracting history for '%s' in repo '%s",
+ filePath, gitPath), false, updateChan)
+
+ // build commit history.
+ commitHistory, err := git.ExtractHistoryFromFile(gitPath, filePath, updateChan, errorChan)
+ if err != nil {
+ return nil, err
+ }
+
+ // populate history with changes and data
+ commitHistory, err = git.PopulateHistoryWithChanges(commitHistory, 0, updateChan, errorChan)
+ if err != nil {
+ model.SendProgressError("git", fmt.Sprintf("%d errors found extracting history", len(err)), errorChan)
+ return nil, err
+ }
+
+ if latest {
+ commitHistory = commitHistory[:1]
+ }
+
+ var reports []*model.Report
+ for r := range commitHistory {
+ if commitHistory[r].Changes != nil {
+ reports = append(reports, createReport(commitHistory[r]))
+ }
+ }
+ model.SendProgressUpdate("extraction",
+ fmt.Sprintf("extracted %d reports from history", len(reports)), true, updateChan)
+
+ close(updateChan)
+
+ return &model.HistoricalReport{
+ GitRepoPath: gitPath,
+ GitFilePath: filePath,
+ Filename: path.Base(filePath),
+ DateGenerated: time.Now().String(),
+ Reports: reports,
+ }, nil
}
func runGithubHistoryReport(username, repo, filePath string, latest bool,
- progressChan chan *model.ProgressUpdate, errorChan chan model.ProgressError) (*model.HistoricalReport, []error) {
-
- commitHistory, errs := git.ProcessGithubRepo(username, repo, filePath, progressChan, errorChan, false,3)
- if errs != nil {
- return nil, errs
- }
-
- if latest {
- commitHistory = commitHistory[:1]
- }
-
- var ghReports []*model.Report
- for r := range commitHistory {
- if commitHistory[r].Changes != nil {
- ghReports = append(ghReports, createReport(commitHistory[r]))
- }
- }
- model.SendProgressUpdate("extraction",
- fmt.Sprintf("extracted %d reports from history", len(ghReports)), true, progressChan)
-
- close(progressChan)
-
- return &model.HistoricalReport{
- GitRepoPath: fmt.Sprintf("%s/%s", username, repo),
- GitFilePath: filePath,
- Filename: path.Base(filePath),
- DateGenerated: time.Now().String(),
- Reports: ghReports,
- }, nil
+ progressChan chan *model.ProgressUpdate, errorChan chan model.ProgressError) (*model.HistoricalReport, []error) {
+
+ commitHistory, errs := git.ProcessGithubRepo(username, repo, filePath, progressChan, errorChan, false, 3)
+ if errs != nil {
+ return nil, errs
+ }
+
+ if latest {
+ commitHistory = commitHistory[:1]
+ }
+
+ var ghReports []*model.Report
+ for r := range commitHistory {
+ if commitHistory[r].Changes != nil {
+ ghReports = append(ghReports, createReport(commitHistory[r]))
+ }
+ }
+ model.SendProgressUpdate("extraction",
+ fmt.Sprintf("extracted %d reports from history", len(ghReports)), true, progressChan)
+
+ close(progressChan)
+
+ return &model.HistoricalReport{
+ GitRepoPath: fmt.Sprintf("%s/%s", username, repo),
+ GitFilePath: filePath,
+ Filename: path.Base(filePath),
+ DateGenerated: time.Now().String(),
+ Reports: ghReports,
+ }, nil
}
-func runLeftRightReport(left, right string) (*model.Report, []error) {
-
- var leftBytes, rightBytes []byte
- var errs []error
- var err error
-
- leftBytes, err = os.ReadFile(left)
- if err != nil {
- return nil, []error{err}
- }
- rightBytes, err = os.ReadFile(right)
- if err != nil {
- return nil, []error{err}
- }
-
- commits := []*model.Commit{
- {
- Hash: uuid.NewV4().String()[:6],
- Message: fmt.Sprintf("New: %s, Original: %s", right, left),
- CommitDate: time.Now(),
- Data: rightBytes,
- },
- {
- Hash: uuid.NewV4().String()[:6],
- Message: fmt.Sprintf("Original file: %s", left),
- CommitDate: time.Now(),
- Data: leftBytes,
- },
- }
-
- commits, errs = git.BuildCommitChangelog(commits)
- if len(errs) > 0 {
- return nil, errs
- }
- return createReport(commits[0]), nil
+func runLeftRightReport(left, right string,
+ updateChan chan *model.ProgressUpdate, errorChan chan model.ProgressError) (*model.Report, []error) {
+
+ var leftBytes, rightBytes []byte
+ var errs []error
+ var err error
+
+ leftBytes, err = os.ReadFile(left)
+ if err != nil {
+ return nil, []error{err}
+ }
+ rightBytes, err = os.ReadFile(right)
+ if err != nil {
+ return nil, []error{err}
+ }
+
+ commits := []*model.Commit{
+ {
+ Hash: uuid.NewV4().String()[:6],
+ Message: fmt.Sprintf("New: %s, Original: %s", right, left),
+ CommitDate: time.Now(),
+ Data: rightBytes,
+ },
+ {
+ Hash: uuid.NewV4().String()[:6],
+ Message: fmt.Sprintf("Original file: %s", left),
+ CommitDate: time.Now(),
+ Data: leftBytes,
+ },
+ }
+
+ commits, errs = git.BuildCommitChangelog(commits, updateChan, errorChan)
+ if len(errs) > 0 {
+ return nil, errs
+ }
+ return createReport(commits[0]), nil
}
func createReport(commit *model.Commit) *model.Report {
- report := reports.CreateOverallReport(commit.Changes)
- return &model.Report{Summary: report.ChangeReport, Commit: commit}
+ report := reports.CreateOverallReport(commit.Changes)
+ return &model.Report{Summary: report.ChangeReport, Commit: commit}
}
diff --git a/cmd/root.go b/cmd/root.go
index 9f3e16d..dbf9aad 100644
--- a/cmd/root.go
+++ b/cmd/root.go
@@ -57,6 +57,7 @@ func init() {
rootCmd.AddCommand(GetReportCommand())
rootCmd.AddCommand(GetHTMLReportCommand())
rootCmd.PersistentFlags().BoolP("top", "t", false, "Only show latest changes (last git revision against HEAD)")
+ rootCmd.PersistentFlags().IntP("limit", "l", 5, "Limit history to number of revisions (default is 5)")
}
func initConfig() {
diff --git a/cmd/summary.go b/cmd/summary.go
index 85734b3..6fba1a0 100644
--- a/cmd/summary.go
+++ b/cmd/summary.go
@@ -4,300 +4,300 @@
package cmd
import (
- "errors"
- "fmt"
- "net/url"
- "os"
- "time"
-
- "github.com/pb33f/libopenapi/what-changed/reports"
- "github.com/pb33f/openapi-changes/git"
- "github.com/pb33f/openapi-changes/model"
- "github.com/pterm/pterm"
- "github.com/spf13/cobra"
- "github.com/twinj/uuid"
+ "errors"
+ "fmt"
+ "net/url"
+ "os"
+ "time"
+
+ "github.com/pb33f/libopenapi/what-changed/reports"
+ "github.com/pb33f/openapi-changes/git"
+ "github.com/pb33f/openapi-changes/model"
+ "github.com/pterm/pterm"
+ "github.com/spf13/cobra"
+ "github.com/twinj/uuid"
)
func GetSummaryCommand() *cobra.Command {
- cmd := &cobra.Command{
- SilenceUsage: true,
- SilenceErrors: false,
- Use: "summary",
- Short: "See a summary of changes",
- Long: "print a summary of what changed, view a simple tree of changes and summary",
- Example: "openapi-changes summary /path/to/git/repo path/to/file/in/repo/openapi.yaml",
- RunE: func(cmd *cobra.Command, args []string) error {
-
- updateChan := make(chan *model.ProgressUpdate)
- errorChan := make(chan model.ProgressError)
- doneChan := make(chan bool)
- failed := false
- latestFlag, _ := cmd.Flags().GetBool("top")
- noColorFlag, _ := cmd.Flags().GetBool("no-color")
-
- if noColorFlag {
- pterm.DisableStyling()
- pterm.DisableColor()
- }
-
- PrintBanner()
-
- // if there are no args, print out how to use the console.
- if len(args) == 0 {
- PrintHowToUse("summary")
- return nil
- }
-
- listenForUpdates := func(updateChan chan *model.ProgressUpdate, errorChan chan model.ProgressError) {
- spinner, _ := pterm.DefaultSpinner.Start("starting work.")
- for {
- select {
- case update, ok := <-updateChan:
- if ok {
- spinner.UpdateText(update.Message)
- if update.Warning {
- pterm.Warning.Println(update.Message)
- }
- } else {
- if !failed {
- spinner.Info("printing summary")
- } else {
- spinner.Fail("failed to complete. sorry!")
- }
- doneChan <- true
- return
- }
- case err := <-errorChan:
- failed = true
- spinner.Fail(fmt.Sprintf("Stopped: %s", err.Message))
- pterm.Println()
- pterm.Println()
- doneChan <- true
- return
- }
- }
- }
-
- // check for two args (left and right)
- if len(args) < 2 {
-
- // check if arg is an url (like a github url)
- url, err := url.Parse(args[0])
- if err == nil {
-
- if url.Host == "github.com" {
- go listenForUpdates(updateChan, errorChan)
-
- user, repo, filePath, err := ExtractGithubDetailsFromURL(url)
- if err != nil {
- errorChan <- model.ProgressError{
- Job: "github url",
- Message: fmt.Sprintf("error extracting github details from url: %s", err.Error()),
- }
- <-doneChan
- return err
- }
- err = runGithubHistorySummary(user, repo, filePath, latestFlag, updateChan, errorChan)
- // wait for things to be completed.
- <-doneChan
- if err != nil {
- return err
- }
- return nil
- }
-
- } else {
- pterm.Error.Println("Two arguments are required to compare left and right OpenAPI Specifications.")
- return nil
- }
- }
- if len(args) == 2 {
-
- // check if the first arg is a directory, if so - process as a git history operation.
- p := args[0]
- f, err := os.Stat(p)
- if err != nil {
- pterm.Error.Printf("Cannot open file/repository: '%s'", args[0])
- return err
- }
-
- if f.IsDir() {
-
- p = args[1]
- f, err = os.Stat(p)
- if err != nil {
- pterm.Error.Printf("Cannot open file/repository: '%s'", args[1])
- return err
- }
-
- go listenForUpdates(updateChan, errorChan)
-
- err = runGitHistorySummary(args[0], args[1], latestFlag, updateChan, errorChan)
-
- <-doneChan
-
- if err != nil {
- pterm.Error.Println(err.Error())
- return err
- }
- } else {
-
- errs := runLeftRightSummary(args[0], args[1])
- if len(errs) > 0 {
- for e := range errs {
- pterm.Error.Println(errs[e].Error())
- }
- return errors.New("unable to process specifications")
- }
- return nil
- }
- }
- pterm.Error.Println("too many arguments, expecting two (2)")
- return nil
- },
- }
- cmd.Flags().BoolP("no-color", "n", false, "Disable color and style output (very useful for CI/CD)")
- return cmd
+ cmd := &cobra.Command{
+ SilenceUsage: true,
+ SilenceErrors: false,
+ Use: "summary",
+ Short: "See a summary of changes",
+ Long: "print a summary of what changed, view a simple tree of changes and summary",
+ Example: "openapi-changes summary /path/to/git/repo path/to/file/in/repo/openapi.yaml",
+ RunE: func(cmd *cobra.Command, args []string) error {
+
+ updateChan := make(chan *model.ProgressUpdate)
+ errorChan := make(chan model.ProgressError)
+ doneChan := make(chan bool)
+ failed := false
+ latestFlag, _ := cmd.Flags().GetBool("top")
+ noColorFlag, _ := cmd.Flags().GetBool("no-color")
+
+ if noColorFlag {
+ pterm.DisableStyling()
+ pterm.DisableColor()
+ }
+
+ PrintBanner()
+
+ // if there are no args, print out how to use the console.
+ if len(args) == 0 {
+ PrintHowToUse("summary")
+ return nil
+ }
+
+ listenForUpdates := func(updateChan chan *model.ProgressUpdate, errorChan chan model.ProgressError) {
+ spinner, _ := pterm.DefaultSpinner.Start("starting work.")
+ for {
+ select {
+ case update, ok := <-updateChan:
+ if ok {
+ spinner.UpdateText(update.Message)
+ if update.Warning {
+ pterm.Warning.Println(update.Message)
+ }
+ } else {
+ if !failed {
+ spinner.Info("printing summary")
+ } else {
+ spinner.Fail("failed to complete. sorry!")
+ }
+ doneChan <- true
+ return
+ }
+ case err := <-errorChan:
+ failed = true
+ spinner.Fail(fmt.Sprintf("Stopped: %s", err.Message))
+ pterm.Println()
+ pterm.Println()
+ doneChan <- true
+ return
+ }
+ }
+ }
+
+ // check for two args (left and right)
+ if len(args) < 2 {
+
+ // check if arg is an url (like a github url)
+ url, err := url.Parse(args[0])
+ if err == nil {
+
+ if url.Host == "github.com" {
+ go listenForUpdates(updateChan, errorChan)
+
+ user, repo, filePath, err := ExtractGithubDetailsFromURL(url)
+ if err != nil {
+ errorChan <- model.ProgressError{
+ Job: "github url",
+ Message: fmt.Sprintf("error extracting github details from url: %s", err.Error()),
+ }
+ <-doneChan
+ return err
+ }
+ err = runGithubHistorySummary(user, repo, filePath, latestFlag, updateChan, errorChan)
+ // wait for things to be completed.
+ <-doneChan
+ if err != nil {
+ return err
+ }
+ return nil
+ }
+
+ } else {
+ pterm.Error.Println("Two arguments are required to compare left and right OpenAPI Specifications.")
+ return nil
+ }
+ }
+ if len(args) == 2 {
+
+ // check if the first arg is a directory, if so - process as a git history operation.
+ p := args[0]
+ f, err := os.Stat(p)
+ if err != nil {
+ pterm.Error.Printf("Cannot open file/repository: '%s'", args[0])
+ return err
+ }
+
+ if f.IsDir() {
+
+ p = args[1]
+ f, err = os.Stat(p)
+ if err != nil {
+ pterm.Error.Printf("Cannot open file/repository: '%s'", args[1])
+ return err
+ }
+
+ go listenForUpdates(updateChan, errorChan)
+
+ err = runGitHistorySummary(args[0], args[1], latestFlag, updateChan, errorChan)
+
+ <-doneChan
+
+ if err != nil {
+ pterm.Error.Println(err.Error())
+ return err
+ }
+ } else {
+
+ errs := runLeftRightSummary(args[0], args[1], updateChan, errorChan)
+ if len(errs) > 0 {
+ for e := range errs {
+ pterm.Error.Println(errs[e].Error())
+ }
+ return errors.New("unable to process specifications")
+ }
+ return nil
+ }
+ }
+ pterm.Error.Println("too many arguments, expecting two (2)")
+ return nil
+ },
+ }
+ cmd.Flags().BoolP("no-color", "n", false, "Disable color and style output (very useful for CI/CD)")
+ return cmd
}
-func runLeftRightSummary(left, right string) []error {
-
- var leftBytes, rightBytes []byte
- var errs []error
- var err error
-
- leftBytes, err = os.ReadFile(left)
- if err != nil {
- return []error{err}
- }
- rightBytes, err = os.ReadFile(right)
- if err != nil {
- return []error{err}
- }
-
- commits := []*model.Commit{
- {
- Hash: uuid.NewV4().String()[:6],
- Message: fmt.Sprintf("New: %s, Original: %s", right, left),
- CommitDate: time.Now(),
- Data: rightBytes,
- },
- {
- Hash: uuid.NewV4().String()[:6],
- Message: fmt.Sprintf("Original file: %s", left),
- CommitDate: time.Now(),
- Data: leftBytes,
- },
- }
-
- commits, errs = git.BuildCommitChangelog(commits)
- if len(errs) > 0 {
- return errs
- }
- e := printSummaryDetails(commits)
- if e != nil {
- return []error{e}
- }
- return nil
+func runLeftRightSummary(left, right string, updateChan chan *model.ProgressUpdate, errorChan chan model.ProgressError) []error {
+
+ var leftBytes, rightBytes []byte
+ var errs []error
+ var err error
+
+ leftBytes, err = os.ReadFile(left)
+ if err != nil {
+ return []error{err}
+ }
+ rightBytes, err = os.ReadFile(right)
+ if err != nil {
+ return []error{err}
+ }
+
+ commits := []*model.Commit{
+ {
+ Hash: uuid.NewV4().String()[:6],
+ Message: fmt.Sprintf("New: %s, Original: %s", right, left),
+ CommitDate: time.Now(),
+ Data: rightBytes,
+ },
+ {
+ Hash: uuid.NewV4().String()[:6],
+ Message: fmt.Sprintf("Original file: %s", left),
+ CommitDate: time.Now(),
+ Data: leftBytes,
+ },
+ }
+
+ commits, errs = git.BuildCommitChangelog(commits, updateChan, errorChan)
+ if len(errs) > 0 {
+ return errs
+ }
+ e := printSummaryDetails(commits)
+ if e != nil {
+ return []error{e}
+ }
+ return nil
}
func runGithubHistorySummary(username, repo, filePath string, latest bool,
- progressChan chan *model.ProgressUpdate, errorChan chan model.ProgressError) error {
- commitHistory, errs := git.ProcessGithubRepo(username, repo, filePath, progressChan, errorChan, false,3)
- if errs != nil {
- return errs[0]
- }
- if latest {
- commitHistory = commitHistory[:1]
- }
+ progressChan chan *model.ProgressUpdate, errorChan chan model.ProgressError) error {
+ commitHistory, errs := git.ProcessGithubRepo(username, repo, filePath, progressChan, errorChan, false, 3)
+ if errs != nil {
+ return errs[0]
+ }
+ if latest {
+ commitHistory = commitHistory[:1]
+ }
- model.SendProgressUpdate("extraction",
- fmt.Sprintf("extracted %d commits from history", len(commitHistory)), true, progressChan)
+ model.SendProgressUpdate("extraction",
+ fmt.Sprintf("extracted %d commits from history", len(commitHistory)), true, progressChan)
- close(progressChan)
+ close(progressChan)
- return printSummaryDetails(commitHistory)
+ return printSummaryDetails(commitHistory)
}
func runGitHistorySummary(gitPath, filePath string, latest bool,
- updateChan chan *model.ProgressUpdate, errorChan chan model.ProgressError) error {
- if gitPath == "" || filePath == "" {
- err := errors.New("please supply a path to a git repo via -r, and a path to a file via -f")
- model.SendProgressError("git", err.Error(), errorChan)
- return err
- }
-
- model.SendProgressUpdate("extraction",
- fmt.Sprintf("Extracting history for '%s' in repo '%s",
- filePath, gitPath), false, updateChan)
-
- // build commit history.
- commitHistory, errs := git.ExtractHistoryFromFile(gitPath, filePath, updateChan, errorChan)
- if errs != nil {
- model.SendProgressError("git", fmt.Sprintf("%d errors found extracting history", len(errs)), errorChan)
- return errs[0]
- }
-
- // populate history with changes and data
- git.PopulateHistoryWithChanges(commitHistory, 0, updateChan, errorChan)
-
- if latest {
- commitHistory = commitHistory[:1]
- }
- model.SendProgressUpdate("extraction",
- fmt.Sprintf("extracted %d commits from history", len(commitHistory)), true, updateChan)
-
- close(updateChan)
-
- return printSummaryDetails(commitHistory)
+ updateChan chan *model.ProgressUpdate, errorChan chan model.ProgressError) error {
+ if gitPath == "" || filePath == "" {
+ err := errors.New("please supply a path to a git repo via -r, and a path to a file via -f")
+ model.SendProgressError("git", err.Error(), errorChan)
+ return err
+ }
+
+ model.SendProgressUpdate("extraction",
+ fmt.Sprintf("Extracting history for '%s' in repo '%s",
+ filePath, gitPath), false, updateChan)
+
+ // build commit history.
+ commitHistory, errs := git.ExtractHistoryFromFile(gitPath, filePath, updateChan, errorChan)
+ if errs != nil {
+ model.SendProgressError("git", fmt.Sprintf("%d errors found extracting history", len(errs)), errorChan)
+ return errs[0]
+ }
+
+ // populate history with changes and data
+ git.PopulateHistoryWithChanges(commitHistory, 0, updateChan, errorChan)
+
+ if latest {
+ commitHistory = commitHistory[:1]
+ }
+ model.SendProgressUpdate("extraction",
+ fmt.Sprintf("extracted %d commits from history", len(commitHistory)), true, updateChan)
+
+ close(updateChan)
+
+ return printSummaryDetails(commitHistory)
}
func printSummaryDetails(commitHistory []*model.Commit) error {
- tt := 0
- tb := 0
- pterm.Println()
- errorStyle := pterm.NewStyle(pterm.FgLightRed, pterm.Italic)
- for c := range commitHistory {
- tableData := [][]string{{"Document Element", "Total Changes", "Breaking Changes"}}
-
- if commitHistory[c].Changes != nil {
- if c == 0 {
- buildConsoleTree(commitHistory[c].Changes)
- }
-
- report := reports.CreateOverallReport(commitHistory[c].Changes)
- total := 0
- breaking := 0
- for l := range report.ChangeReport {
- total += report.ChangeReport[l].Total
- tt += total
- breaking += report.ChangeReport[l].Breaking
- tb += breaking
- tableData = append(tableData, []string{
- l,
- fmt.Sprint(report.ChangeReport[l].Total),
- fmt.Sprint(report.ChangeReport[l].Breaking),
- })
- }
- pterm.Printf("Date: %s | Commit: %s\n",
- commitHistory[c].CommitDate.Format("01/02/06"),
- commitHistory[c].Message)
- _ = pterm.DefaultTable.WithHasHeader().WithData(tableData).Render()
- if breaking == 0 {
- pterm.Info.Printf("Total Changes: %d\n", total)
- } else {
- errorStyle.Printf("❌ %d Breaking changes out of %d\n", breaking, total)
- }
- if c < len(commitHistory) {
- pterm.Println()
- }
- }
- }
-
- if tb > 0 {
- return errors.New("breaking changes discovered")
- } else {
- return nil
- }
+ tt := 0
+ tb := 0
+ pterm.Println()
+ errorStyle := pterm.NewStyle(pterm.FgLightRed, pterm.Italic)
+ for c := range commitHistory {
+ tableData := [][]string{{"Document Element", "Total Changes", "Breaking Changes"}}
+
+ if commitHistory[c].Changes != nil {
+ if c == 0 {
+ buildConsoleTree(commitHistory[c].Changes)
+ }
+
+ report := reports.CreateOverallReport(commitHistory[c].Changes)
+ total := 0
+ breaking := 0
+ for l := range report.ChangeReport {
+ total += report.ChangeReport[l].Total
+ tt += total
+ breaking += report.ChangeReport[l].Breaking
+ tb += breaking
+ tableData = append(tableData, []string{
+ l,
+ fmt.Sprint(report.ChangeReport[l].Total),
+ fmt.Sprint(report.ChangeReport[l].Breaking),
+ })
+ }
+ pterm.Printf("Date: %s | Commit: %s\n",
+ commitHistory[c].CommitDate.Format("01/02/06"),
+ commitHistory[c].Message)
+ _ = pterm.DefaultTable.WithHasHeader().WithData(tableData).Render()
+ if breaking == 0 {
+ pterm.Info.Printf("Total Changes: %d\n", total)
+ } else {
+ errorStyle.Printf("❌ %d Breaking changes out of %d\n", breaking, total)
+ }
+ if c < len(commitHistory) {
+ pterm.Println()
+ }
+ }
+ }
+
+ if tb > 0 {
+ return errors.New("breaking changes discovered")
+ } else {
+ return nil
+ }
}
diff --git a/git/github.go b/git/github.go
index ddf7b16..3a602ae 100644
--- a/git/github.go
+++ b/git/github.go
@@ -7,7 +7,6 @@ import (
"encoding/json"
"errors"
"fmt"
- "github.com/pb33f/libopenapi/resolver"
"github.com/pb33f/openapi-changes/model"
"io/ioutil"
"net"
@@ -141,8 +140,11 @@ func GetCommitsForGithubFile(user, repo, path string,
}
commit.Files = f.Files
- for x := range commit.Files {
+ model.SendProgressUpdate(commit.Hash,
+ fmt.Sprintf("Commit %s contains %d files, scanning for matching path",
+ commit.Hash, len(commit.Files)), false, progressChan)
+ for x := range commit.Files {
// make sure we extract the one we want.
rawURL, _ := url.Parse(commit.Files[x].RawURL)
dir, file := filepath.Split(rawURL.Path)
@@ -183,12 +185,12 @@ func GetCommitsForGithubFile(user, repo, path string,
return
}
model.SendProgressUpdate(commit.Hash,
- fmt.Sprintf("%d bytes read for file %s", len(b), file), false, progressChan)
+ fmt.Sprintf("%dkb read for file %s", len(b)/1024, commit.Files[x].RawURL), false, progressChan)
commit.Files[x].Bytes = b
}
}
model.SendProgressUpdate(commit.Hash,
- fmt.Sprintf("commit %s parsed", commit.Hash), true, progressChan)
+ fmt.Sprintf("commit %s processed", commit.Hash), true, progressChan)
d <- true
}
@@ -205,7 +207,7 @@ func GetCommitsForGithubFile(user, repo, path string,
b := 0
for x := range commits {
model.SendProgressUpdate(fmt.Sprintf("commit: %s", commits[x].Hash),
- fmt.Sprintf("commit %s being fetched", commits[x].Hash), false, progressChan)
+ fmt.Sprintf("commit %s being fetched from %s", commits[x].Hash[0:6], u), false, progressChan)
go extractFilesFromCommit(user, repo, path, commits[x], sigChan, errChan)
b++
if limit > 0 && b > limit {
@@ -234,8 +236,10 @@ func ConvertGithubCommitsIntoModel(ghCommits []*APICommit,
progressChan chan *model.ProgressUpdate, progressErrorChan chan model.ProgressError) ([]*model.Commit, []error) {
var normalized []*model.Commit
- model.SendProgressUpdate("converting commits", "converting github commits into a model", false, progressChan)
-
+ if len(ghCommits) > 0 {
+ model.SendProgressUpdate("converting commits",
+ fmt.Sprintf("Converting %d github commits into data model", len(ghCommits)), false, progressChan)
+ }
for x := range ghCommits {
for y := range ghCommits[x].Files {
if len(ghCommits[x].Files[y].Bytes) > 0 {
@@ -249,15 +253,17 @@ func ConvertGithubCommitsIntoModel(ghCommits []*APICommit,
Data: ghCommits[x].Files[y].Bytes,
}
model.SendProgressUpdate("converting commits",
- fmt.Sprintf("converted commit %s", nc.Hash), false, progressChan)
+ fmt.Sprintf("Converted commit %s into data model", nc.Hash), false, progressChan)
normalized = append(normalized, nc)
}
}
}
var errs []error
- model.SendProgressUpdate("converting commits", "building models", false, progressChan)
- //TODO: feed in the channels to the changelog.
- normalized, errs = BuildCommitChangelog(normalized)
+ if len(normalized) > 0 {
+ model.SendProgressUpdate("converting commits", "Building data models...", false, progressChan)
+ }
+
+ normalized, errs = BuildCommitChangelog(normalized, progressChan, progressErrorChan)
if len(errs) > 0 {
model.SendProgressError("converting commits",
@@ -266,9 +272,9 @@ func ConvertGithubCommitsIntoModel(ghCommits []*APICommit,
if len(normalized) > 0 {
model.SendProgressUpdate("converting commits",
- fmt.Sprintf("%d commits normalized", len(normalized)), true, progressChan)
+ fmt.Sprintf("Success: %d commits normalized", len(normalized)), true, progressChan)
} else {
- model.SendFatalError("converting commits", "no commits were normalized! Check URL", progressErrorChan)
+ model.SendFatalError("converting commits", "No commits were normalized! Please check the URL/Path", progressErrorChan)
}
}
return normalized, errs
@@ -293,9 +299,7 @@ func ProcessGithubRepo(username string, repo string, filePath string,
commitHistory, errs := ConvertGithubCommitsIntoModel(githubCommits, progressChan, errorChan)
if errs != nil {
for x := range errs {
- if _, ok := errs[x].(*resolver.ResolvingError); !ok {
- model.SendProgressError("git", fmt.Sprintf("%d errors found extracting history", len(errs)), errorChan)
- }
+ model.SendProgressError("git", errs[x].Error(), errorChan)
}
return commitHistory, errs
}
diff --git a/git/read_local.go b/git/read_local.go
index 2d5c6f7..856997c 100644
--- a/git/read_local.go
+++ b/git/read_local.go
@@ -4,182 +4,199 @@
package git
import (
- "bytes"
- "fmt"
- "github.com/araddon/dateparse"
- "github.com/pb33f/libopenapi"
- "github.com/pb33f/openapi-changes/model"
- "os/exec"
- "path"
- "strings"
+ "bytes"
+ "fmt"
+ "github.com/araddon/dateparse"
+ "github.com/pb33f/libopenapi"
+ "github.com/pb33f/openapi-changes/model"
+ "os/exec"
+ "path"
+ "strings"
)
const (
- GIT = "git"
- LOG = "log"
- SHOW = "show"
- REVPARSE = "rev-parse"
- TOPLEVEL = "--show-toplevel"
- NOPAGER = "--no-pager"
- LOGFORMAT = "--pretty=%cD||%h||%s||%an||%ae"
- DIV = "--"
+ GIT = "git"
+ LOG = "log"
+ SHOW = "show"
+ REVPARSE = "rev-parse"
+ TOPLEVEL = "--show-toplevel"
+ NOPAGER = "--no-pager"
+ LOGFORMAT = "--pretty=%cD||%h||%s||%an||%ae"
+ DIV = "--"
)
func CheckLocalRepoAvailable(dir string) bool {
- cmd := exec.Command(GIT, LOG)
- cmd.Dir = dir
- err := cmd.Run()
- if err != nil {
- return false
- }
- return true
+ cmd := exec.Command(GIT, LOG)
+ cmd.Dir = dir
+ err := cmd.Run()
+ if err != nil {
+ return false
+ }
+ return true
}
func GetTopLevel(dir string) (string, error) {
- cmd := exec.Command(GIT, REVPARSE, TOPLEVEL)
- var stdout, stderr bytes.Buffer
- cmd.Stdout = &stdout
- cmd.Stderr = &stderr
- cmd.Dir = dir
- err := cmd.Run()
- if err != nil {
- return "", err
- }
- outStr, _ := string(stdout.Bytes()), string(stderr.Bytes())
- return outStr, nil
+ cmd := exec.Command(GIT, REVPARSE, TOPLEVEL)
+ var stdout, stderr bytes.Buffer
+ cmd.Stdout = &stdout
+ cmd.Stderr = &stderr
+ cmd.Dir = dir
+ err := cmd.Run()
+ if err != nil {
+ return "", err
+ }
+ outStr, _ := string(stdout.Bytes()), string(stderr.Bytes())
+ return outStr, nil
}
func ExtractHistoryFromFile(repoDirectory, filePath string,
- progressChan chan *model.ProgressUpdate, errorChan chan model.ProgressError) ([]*model.Commit, []error) {
-
- cmd := exec.Command(GIT, NOPAGER, LOG, LOGFORMAT, DIV, filePath)
- var stdout, stderr bytes.Buffer
- cmd.Stdout = &stdout
- cmd.Stderr = &stderr
- cmd.Dir = repoDirectory
- err := cmd.Run()
- var commitHistory []*model.Commit
- if err != nil {
- model.SendProgressError("git", err.Error(), errorChan)
- return nil, []error{err}
- }
-
- outStr, _ := string(stdout.Bytes()), string(stderr.Bytes())
- lines := strings.Split(outStr, "\n")
- for k := range lines {
- c := strings.Split(lines[k], "||")
- if len(c) == 5 {
- date, _ := dateparse.ParseAny(c[0])
- commitHistory = append(commitHistory,
- &model.Commit{
- CommitDate: date,
- Hash: c[1],
- Message: c[2],
- Author: c[3],
- AuthorEmail: c[4],
- RepoDirectory: repoDirectory,
- FilePath: filePath,
- })
- model.SendProgressUpdate(c[1],
- fmt.Sprintf("extacted commit '%s'", c[1]), false, progressChan)
- }
- }
- model.SendProgressUpdate("extraction",
- fmt.Sprintf("%d commits extracted", len(commitHistory)), true, progressChan)
- return commitHistory, nil
+ progressChan chan *model.ProgressUpdate, errorChan chan model.ProgressError) ([]*model.Commit, []error) {
+
+ cmd := exec.Command(GIT, NOPAGER, LOG, LOGFORMAT, DIV, filePath)
+ var stdout, stderr bytes.Buffer
+ cmd.Stdout = &stdout
+ cmd.Stderr = &stderr
+ cmd.Dir = repoDirectory
+ err := cmd.Run()
+ var commitHistory []*model.Commit
+ if err != nil {
+ model.SendProgressError("git", err.Error(), errorChan)
+ return nil, []error{err}
+ }
+
+ outStr, _ := string(stdout.Bytes()), string(stderr.Bytes())
+ lines := strings.Split(outStr, "\n")
+ for k := range lines {
+ c := strings.Split(lines[k], "||")
+ if len(c) == 5 {
+ date, _ := dateparse.ParseAny(c[0])
+ commitHistory = append(commitHistory,
+ &model.Commit{
+ CommitDate: date,
+ Hash: c[1],
+ Message: c[2],
+ Author: c[3],
+ AuthorEmail: c[4],
+ RepoDirectory: repoDirectory,
+ FilePath: filePath,
+ })
+ model.SendProgressUpdate(c[1],
+ fmt.Sprintf("extacted commit '%s'", c[1]), false, progressChan)
+ }
+ }
+ model.SendProgressUpdate("extraction",
+ fmt.Sprintf("%d commits extracted", len(commitHistory)), true, progressChan)
+ return commitHistory, nil
}
func PopulateHistoryWithChanges(commitHistory []*model.Commit, limit int,
- progressChan chan *model.ProgressUpdate, errorChan chan model.ProgressError) ([]*model.Commit, []error) {
-
- for c := range commitHistory {
- cmd := exec.Command(GIT, NOPAGER, SHOW, fmt.Sprintf("%s:%s", commitHistory[c].Hash, commitHistory[c].FilePath))
- var ou, er bytes.Buffer
- cmd.Stdout = &ou
- cmd.Stderr = &er
- cmd.Dir = commitHistory[c].RepoDirectory
- err := cmd.Run()
- if err != nil {
- return nil, []error{err}
- }
- commitHistory[c].Data = ou.Bytes()
- model.SendProgressUpdate("population",
- fmt.Sprintf("%d bytes extracted from commit '%s'",
- len(commitHistory[c].Data), commitHistory[c].Hash), false, progressChan)
-
- }
-
- if limit > 0 && limit+1 < len(commitHistory) {
- commitHistory = commitHistory[0 : limit+1]
- }
-
- cleaned, errors := BuildCommitChangelog(commitHistory)
- if len(errors) > 0 {
- model.SendProgressError("git",
- fmt.Sprintf("%d error(s) found building commit change log", len(errors)), errorChan)
-
- return cleaned, errors
- }
- model.SendProgressUpdate("populated",
- fmt.Sprintf("%d commits processed and populated", len(cleaned)), true, progressChan)
- return cleaned, nil
+ progressChan chan *model.ProgressUpdate, errorChan chan model.ProgressError) ([]*model.Commit, []error) {
+
+ for c := range commitHistory {
+ cmd := exec.Command(GIT, NOPAGER, SHOW, fmt.Sprintf("%s:%s", commitHistory[c].Hash, commitHistory[c].FilePath))
+ var ou, er bytes.Buffer
+ cmd.Stdout = &ou
+ cmd.Stderr = &er
+ cmd.Dir = commitHistory[c].RepoDirectory
+ err := cmd.Run()
+ if err != nil {
+ return nil, []error{err}
+ }
+ commitHistory[c].Data = ou.Bytes()
+ model.SendProgressUpdate("population",
+ fmt.Sprintf("Extracting %d bytes extracted from commit '%s'",
+ len(commitHistory[c].Data)/1024, commitHistory[c].Hash), false, progressChan)
+
+ }
+
+ if limit > 0 && limit+1 < len(commitHistory) {
+ commitHistory = commitHistory[0 : limit+1]
+ }
+
+ cleaned, errors := BuildCommitChangelog(commitHistory, progressChan, errorChan)
+ if len(errors) > 0 {
+ model.SendProgressError("git",
+ fmt.Sprintf("%d error(s) found building commit change log", len(errors)), errorChan)
+
+ return cleaned, errors
+ }
+ model.SendProgressUpdate("populated",
+ fmt.Sprintf("%d commits processed and populated", len(cleaned)), true, progressChan)
+ return cleaned, nil
}
-func BuildCommitChangelog(commitHistory []*model.Commit) ([]*model.Commit, []error) {
- var errors []error
- var cleaned []*model.Commit
-
- for c := len(commitHistory) - 1; c > -1; c-- {
- var oldBits, newBits []byte
- if len(commitHistory) == c+1 {
- newBits = commitHistory[c].Data
- } else {
- oldBits = commitHistory[c+1].Data
- commitHistory[c].OldData = oldBits
- newBits = commitHistory[c].Data
- }
-
- var oldDoc, newDoc libopenapi.Document
-
- var err error
- if len(oldBits) > 0 && len(newBits) > 0 {
- oldDoc, err = libopenapi.NewDocument(oldBits)
- if err != nil {
- errors = append(errors, err)
- }
- newDoc, err = libopenapi.NewDocument(newBits)
- if err != nil {
- errors = append(errors, err)
- }
-
- changes, errs := libopenapi.CompareDocuments(oldDoc, newDoc)
- if errs != nil {
- errors = append(errors, errs...)
- }
- commitHistory[c].Changes = changes
- }
- if len(oldBits) == 0 && len(newBits) > 0 {
- newDoc, _ = libopenapi.NewDocument(newBits)
- }
- if newDoc != nil {
- commitHistory[c].Document = newDoc
- }
- if oldDoc != nil {
- commitHistory[c].OldDocument = oldDoc
- }
- if (c == len(commitHistory)-1) || commitHistory[c].Changes != nil {
- cleaned = append(cleaned, commitHistory[c])
- }
- }
- for i, j := 0, len(cleaned)-1; i < j; i, j = i+1, j-1 {
- cleaned[i], cleaned[j] = cleaned[j], cleaned[i]
- }
- fmt.Println(cleaned)
- return cleaned, errors
+func BuildCommitChangelog(commitHistory []*model.Commit,
+ progressChan chan *model.ProgressUpdate, errorChan chan model.ProgressError) ([]*model.Commit, []error) {
+
+ var errors []error
+ var cleaned []*model.Commit
+
+ for c := len(commitHistory) - 1; c > -1; c-- {
+ var oldBits, newBits []byte
+ if len(commitHistory) == c+1 {
+ newBits = commitHistory[c].Data
+ } else {
+ oldBits = commitHistory[c+1].Data
+ commitHistory[c].OldData = oldBits
+ newBits = commitHistory[c].Data
+ }
+
+ var oldDoc, newDoc libopenapi.Document
+
+ var err error
+ if len(oldBits) > 0 && len(newBits) > 0 {
+ oldDoc, err = libopenapi.NewDocument(oldBits)
+ model.SendProgressUpdate("building models",
+ fmt.Sprintf("Building original model for commit %s", commitHistory[c].Hash[0:6]), false, progressChan)
+
+ if err != nil {
+ model.SendProgressError("building models", fmt.Sprintf("unable to parse original document: %s", err.Error()), errorChan)
+ errors = append(errors, err)
+ }
+ newDoc, err = libopenapi.NewDocument(newBits)
+ if err != nil {
+ model.SendProgressError("building models", fmt.Sprintf("unable to parse modified document: %s", err.Error()), errorChan)
+ errors = append(errors, err)
+ }
+
+ if oldDoc != nil && newDoc != nil {
+ changes, errs := libopenapi.CompareDocuments(oldDoc, newDoc)
+
+ if errs != nil {
+ for a := range errs {
+ model.SendProgressError("building models", fmt.Sprintf("Error thrown when comparing: %s", errs[a].Error()), errorChan)
+ }
+ errors = append(errors, errs...)
+ }
+ commitHistory[c].Changes = changes
+ } else {
+ model.SendProgressError("building models", "No OpenAPI documents can be compared!", errorChan)
+ }
+ }
+ if len(oldBits) == 0 && len(newBits) > 0 {
+ newDoc, err = libopenapi.NewDocument(newBits)
+ if err != nil {
+ model.SendProgressError("building models", fmt.Sprintf("unable to create OpenAPI modified document: %s", err.Error()), errorChan)
+ }
+ }
+ if newDoc != nil {
+ commitHistory[c].Document = newDoc
+ }
+ if oldDoc != nil {
+ commitHistory[c].OldDocument = oldDoc
+ }
+ if (c == len(commitHistory)-1) || commitHistory[c].Changes != nil {
+ cleaned = append(cleaned, commitHistory[c])
+ }
+ }
+ for i, j := 0, len(cleaned)-1; i < j; i, j = i+1, j-1 {
+ cleaned[i], cleaned[j] = cleaned[j], cleaned[i]
+ }
+ return cleaned, errors
}
func ExtractPathAndFile(location string) (string, string) {
- dir := path.Dir(location)
- file := path.Base(location)
- return dir, file
+ dir := path.Dir(location)
+ file := path.Base(location)
+ return dir, file
}
diff --git a/html-report/templates/header.gohtml b/html-report/templates/header.gohtml
index b7f7c26..fc1d35e 100644
--- a/html-report/templates/header.gohtml
+++ b/html-report/templates/header.gohtml
@@ -23,8 +23,11 @@
"},this.getStyleTags=function(){return e.sealed?QS(2):e._emitSheetCSS()},this.getStyleElement=function(){var n;if(e.sealed)return QS(2);var i=((n={})[qS]="",n["data-styled-version"]="5.3.6",n.dangerouslySetInnerHTML={__html:e.instance.toString()},n),r=uE();return r&&(i.nonce=r),[t.createElement("style",$S({},i,{key:"sc-0-0"}))]},this.seal=function(){e.sealed=!0},this.instance=new gE({isServer:!0}),this.sealed=!1}.prototype;e.collectStyles=function(e){return this.sealed?QS(2):t.createElement(AE,{sheet:this.instance},e)},e.interleaveWithNodeStream=function(t){return QS(3)}}();const iC=nC.foreignObject`
+(()=>{var t={4547:(t,e,n)=>{"use strict";n.r(e),n.d(e,{ScrollOffset:()=>Rt,animate:()=>lt,animateStyle:()=>et,createMotionState:()=>le,createStyleString:()=>de,createStyles:()=>he,getAnimationData:()=>o,getStyleName:()=>Z,glide:()=>Ct,inView:()=>Mt,mountedStates:()=>ue,resize:()=>Nt,scroll:()=>Gt,spring:()=>Et,stagger:()=>ct,style:()=>J,timeline:()=>mt,withControls:()=>ot});class i{setAnimation(t){this.animation=t,null==t||t.finished.then((()=>this.clearAnimation())).catch((()=>{}))}clearAnimation(){this.animation=this.generator=void 0}}const r=new WeakMap;function o(t){return r.has(t)||r.set(t,{transforms:[],values:new Map}),r.get(t)}const a=()=>{},s=t=>t;function c(t,e){-1===t.indexOf(e)&&t.push(e)}function u(t,e){const n=t.indexOf(e);n>-1&&t.splice(n,1)}const l=["","X","Y","Z"],h={x:"translateX",y:"translateY",z:"translateZ"},f={syntax:"",initialValue:"0deg",toDefaultUnit:t=>t+"deg"},d={translate:{syntax:"",initialValue:"0px",toDefaultUnit:t=>t+"px"},rotate:f,scale:{syntax:"",initialValue:1,toDefaultUnit:s},skew:f},p=new Map,b=t=>`--motion-${t}`,g=["x","y","z"];["translate","scale","rotate","skew"].forEach((t=>{l.forEach((e=>{g.push(t+e),p.set(b(t+e),d[t])}))}));const m=(t,e)=>g.indexOf(t)-g.indexOf(e),w=new Set(g),v=t=>w.has(t),y=t=>t.sort(m).reduce(x,"").trim(),x=(t,e)=>`${t} ${e}(var(${b(e)}))`,k=t=>t.startsWith("--"),S=new Set,E={duration:.3,delay:0,endDelay:0,repeat:0,easing:"ease"},C=t=>"object"==typeof t&&Boolean(t.createAnimation),_=t=>"number"==typeof t,M=t=>Array.isArray(t)&&!_(t[0]),P=(t,e,n)=>-n*t+n*e+t,T=(t,e,n)=>e-t==0?1:(n-t)/(e-t);function O(t,e){const n=t[t.length-1];for(let i=1;i<=e;i++){const r=T(0,e,i);t.push(P(n,1,r))}}function I(t){const e=[0];return O(e,t-1),e}function j(t,e){return M(t)?t[((t,e,n)=>{const i=e-0;return((n-0)%i+i)%i+0})(0,t.length,e)]:t}const A=(t,e,n)=>Math.min(Math.max(n,t),e);function N(t,e=I(t.length),n=s){const i=t.length,r=i-e.length;return r>0&&O(e,r),r=>{let o=0;for(;o(((1-3*n+3*e)*t+(3*n-6*e))*t+3*e)*t;function L(t,e,n,i){if(t===e&&n===i)return s;return r=>0===r||1===r?r:D(function(t,e,n,i,r){let o,a,s=0;do{a=e+(n-e)/2,o=D(a,i,r)-t,o>0?n=a:e=a}while(Math.abs(o)>1e-7&&++s<12);return a}(r,0,1,t,n),e,i)}const R=t=>"function"==typeof t,F=t=>Array.isArray(t)&&_(t[0]),z={ease:L(.25,.1,.25,1),"ease-in":L(.42,0,1,1),"ease-in-out":L(.42,0,.58,1),"ease-out":L(0,0,.58,1)},$=/\((.*?)\)/;function H(t){if(R(t))return t;if(F(t))return L(...t);if(z[t])return z[t];if(t.startsWith("steps")){const e=$.exec(t);if(e){const t=e[1].split(",");return((t,e="end")=>n=>{const i=(n="end"===e?Math.min(n,.999):Math.max(n,.001))*t,r="end"===e?Math.floor(i):Math.ceil(i);return A(0,1,r/t)})(parseFloat(t[0]),t[1].trim())}}return s}class B{constructor(t,e=[0,1],{easing:n,duration:i=E.duration,delay:r=E.delay,endDelay:o=E.endDelay,repeat:a=E.repeat,offset:c,direction:u="normal"}={}){if(this.startTime=null,this.rate=1,this.t=0,this.cancelTimestamp=null,this.easing=s,this.duration=0,this.totalDuration=0,this.repeat=0,this.playState="idle",this.finished=new Promise(((t,e)=>{this.resolve=t,this.reject=e})),n=n||E.easing,C(n)){const t=n.createAnimation(e);n=t.easing,e=t.keyframes||e,i=t.duration||i}this.repeat=a,this.easing=M(n)?s:H(n),this.updateDuration(i);const l=N(e,c,M(n)?n.map(H):s);this.tick=e=>{var n;let i=0;i=void 0!==this.pauseTime?this.pauseTime:(e-this.startTime)*this.rate,this.t=i,i/=1e3,i=Math.max(i-r,0),"finished"===this.playState&&void 0===this.pauseTime&&(i=this.totalDuration);const a=i/this.duration;let s=Math.floor(a),c=a%1;!c&&a>=1&&(c=1),1===c&&s--;const h=s%2;("reverse"===u||"alternate"===u&&h||"alternate-reverse"===u&&!h)&&(c=1-c);const f=i>=this.totalDuration?1:Math.min(c,1),d=l(this.easing(f));t(d),void 0===this.pauseTime&&("finished"===this.playState||i>=this.totalDuration+o)?(this.playState="finished",null===(n=this.resolve)||void 0===n||n.call(this,d)):"idle"!==this.playState&&(this.frameRequestId=requestAnimationFrame(this.tick))},this.play()}play(){const t=performance.now();this.playState="running",void 0!==this.pauseTime?this.startTime=t-this.pauseTime:this.startTime||(this.startTime=t),this.cancelTimestamp=this.startTime,this.pauseTime=void 0,this.frameRequestId=requestAnimationFrame(this.tick)}pause(){this.playState="paused",this.pauseTime=this.t}finish(){this.playState="finished",this.tick(0)}stop(){var t;this.playState="idle",void 0!==this.frameRequestId&&cancelAnimationFrame(this.frameRequestId),null===(t=this.reject)||void 0===t||t.call(this,!1)}cancel(){this.stop(),this.tick(this.cancelTimestamp)}reverse(){this.rate*=-1}commitStyles(){}updateDuration(t){this.duration=t,this.totalDuration=t*(this.repeat+1)}get currentTime(){return this.t}set currentTime(t){void 0!==this.pauseTime||0===this.rate?this.pauseTime=t:this.startTime=performance.now()-t/this.rate}get playbackRate(){return this.rate}set playbackRate(t){this.rate=t}}const K=t=>1e3*t,V=t=>t/1e3,W=(t,e)=>document.createElement("div").animate(t,e),U={cssRegisterProperty:()=>"undefined"!=typeof CSS&&Object.hasOwnProperty.call(CSS,"registerProperty"),waapi:()=>Object.hasOwnProperty.call(Element.prototype,"animate"),partialKeyframes:()=>{try{W({opacity:[1]})}catch(t){return!1}return!0},finished:()=>Boolean(W({opacity:[0,1]},{duration:.001}).finished),linearEasing:()=>{try{W({opacity:0},{easing:"linear(0, 1)"})}catch(t){return!1}return!0}},X={},q={};for(const t in U)q[t]=()=>(void 0===X[t]&&(X[t]=U[t]()),X[t]);const G=(t,e)=>R(t)?q.linearEasing()?`linear(${((t,e)=>{let n="";const i=Math.round(e/.015);for(let e=0;e`cubic-bezier(${t}, ${e}, ${n}, ${i})`,Q=t=>Array.isArray(t)?t:[t];function Z(t){return h[t]&&(t=h[t]),v(t)?b(t):t}const J={get:(t,e)=>{e=Z(e);let n=k(e)?t.style.getPropertyValue(e):getComputedStyle(t)[e];if(!n&&0!==n){const t=p.get(e);t&&(n=t.initialValue)}return n},set:(t,e,n)=>{e=Z(e),k(e)?t.style.setProperty(e,n):t.style[e]=n}};function tt(t,e=!0){if(t&&"finished"!==t.playState)try{t.stop?t.stop():(e&&t.commitStyles(),t.cancel())}catch(t){}}function et(t,e,n,r={}){const s=window.__MOTION_DEV_TOOLS_RECORD,u=!1!==r.record&&s;let l,{duration:f=E.duration,delay:d=E.delay,endDelay:b=E.endDelay,repeat:g=E.repeat,easing:m=E.easing,direction:w,offset:x,allowWebkitAcceleration:P=!1}=r;const T=o(t),O=v(e);let I=q.waapi();O&&((t,e)=>{h[e]&&(e=h[e]);const{transforms:n}=o(t);c(n,e),t.style.transform=y(n)})(t,e);const j=Z(e),A=function(t,e){return t.has(e)||t.set(e,new i),t.get(e)}(T.values,j),N=p.get(j);return tt(A.animation,!(C(m)&&A.generator)&&!1!==r.record),()=>{const i=()=>{var e,n;return null!==(n=null!==(e=J.get(t,j))&&void 0!==e?e:null==N?void 0:N.initialValue)&&void 0!==n?n:0};let o=function(t,e){for(let n=0;n_(t)?N.toDefaultUnit(t):t))),1!==o.length||q.partialKeyframes()&&!u||o.unshift(i());const e={delay:K(d),duration:K(f),endDelay:K(b),easing:M(m)?void 0:G(m,f),direction:w,iterations:g+1,fill:"both"};l=t.animate({[j]:o,offset:x,easing:M(m)?m.map((t=>G(t,f))):void 0},e),l.finished||(l.finished=new Promise(((t,e)=>{l.onfinish=t,l.oncancel=e})));const n=o[o.length-1];l.finished.then((()=>{J.set(t,j,n),l.cancel()})).catch(a),P||(l.playbackRate=1.000001)}else if(O)o=o.map((t=>"string"==typeof t?parseFloat(t):t)),1===o.length&&o.unshift(parseFloat(i())),l=new B((e=>{N&&(e=N.toDefaultUnit(e)),J.set(t,j,e)}),o,Object.assign(Object.assign({},r),{duration:f,easing:m}));else{const e=o[o.length-1];J.set(t,j,N&&_(e)?N.toDefaultUnit(e):e)}return u&&s(t,e,o,{duration:f,delay:d,easing:m,repeat:g,offset:x},"motion-one"),A.setAnimation(l),l}}const nt=(t,e)=>t[e]?Object.assign(Object.assign({},t),t[e]):Object.assign({},t);function it(t,e){var n;return"string"==typeof t?e?(null!==(n=e[t])&&void 0!==n||(e[t]=document.querySelectorAll(t)),t=e[t]):t=document.querySelectorAll(t):t instanceof Element&&(t=[t]),Array.from(t||[])}const rt=t=>t(),ot=(t,e,n=E.duration)=>new Proxy({animations:t.map(rt).filter(Boolean),duration:n,options:e},at),at={get:(t,e)=>{const n=t.animations[0];switch(e){case"duration":return t.duration;case"currentTime":return V((null==n?void 0:n[e])||0);case"playbackRate":case"playState":return null==n?void 0:n[e];case"finished":return t.finished||(t.finished=Promise.all(t.animations.map(st)).catch(a)),t.finished;case"stop":return()=>{t.animations.forEach((t=>tt(t)))};case"forEachNative":return e=>{t.animations.forEach((n=>e(n,t)))};default:return void 0===(null==n?void 0:n[e])?void 0:()=>t.animations.forEach((t=>t[e]()))}},set:(t,e,n)=>{switch(e){case"currentTime":n=K(n);case"currentTime":case"playbackRate":for(let i=0;it.finished;function ct(t=.1,{start:e=0,from:n=0,easing:i}={}){return(r,o)=>{const a=_(n)?n:function(t,e){if("first"===t)return 0;{const n=e-1;return"last"===t?n:n/2}}(n,o),s=Math.abs(a-r);let c=t*s;if(i){const e=o*t;c=H(i)(c/e)*e}return e+c}}function ut(t,e,n){return R(t)?t(e,n):t}function lt(t,e,n={}){const i=(t=it(t)).length,r=[];for(let o=0;o"string"==typeof t;function pt(t,e,n,i){var r;return _(e)?e:e.startsWith("-")||e.startsWith("+")?Math.max(0,t+parseFloat(e)):"<"===e?n:null!==(r=i.get(e))&&void 0!==r?r:t}function bt(t,e,n,i,r,o){!function(t,e,n){for(let i=0;ie&&r.at"0"),t);c=e.easing,void 0!==e.keyframes&&(o=e.keyframes),void 0!==e.duration&&(s=e.duration)}const h=ut(p.delay,t,m)||0,f=u+h,g=f+s;let{offset:w=I(o.length)}=a;1===w.length&&0===w[0]&&(w[1]=1);const y=length-o.length;y>0&&O(w,y),1===o.length&&o.unshift(null),bt(r,o,c,w,f,g),b=Math.max(h+s,b),l=Math.max(g,l)}}c=u,u+=b}var h,f;return o.forEach(((t,e)=>{for(const o in t){const a=t[o];a.sort(gt);const s=[],c=[],u=[];for(let t=0;tet(...t))).filter(Boolean);return ot(r,e,null===(n=i[0])||void 0===n?void 0:n[3].duration)}function wt(t,e){return e[t]||(e[t]=[]),e[t]}function vt(t,e){return e?t*(1e3/e):0}function yt(t,e,n){const i=Math.max(e-5,0);return vt(n-t(i),e-i)}const xt=({stiffness:t=100,damping:e=10,mass:n=1,from:i=0,to:r=1,velocity:o=0,restSpeed:a=2,restDistance:s=.5}={})=>{o=o?V(o):0;const c={done:!1,hasReachedTarget:!1,current:i,target:r},u=r-i,l=Math.sqrt(t/n)/1e3,h=((t=100,e=10,n=1)=>e/(2*Math.sqrt(t*n)))(t,e,n);let f;if(h<1){const t=l*Math.sqrt(1-h*h);f=e=>r-Math.exp(-h*l*e)*((h*l*u-o)/t*Math.sin(t*e)+u*Math.cos(t*e))}else f=t=>r-Math.exp(-l*t)*(u+(l*u-o)*t);return t=>{c.current=f(t);const e=0===t?o:yt(f,t,c.current),n=Math.abs(e)<=a,u=Math.abs(r-c.current)<=s;var l,h,d;return c.done=n&&u,c.hasReachedTarget=(l=i,h=r,d=c.current,l=h||l>h&&d<=h),c}};function kt(t){const e=new WeakMap;return(n={})=>{const i=new Map,r=(e=0,r=100,o=0,a=!1)=>{const s=`${e}-${r}-${o}-${a}`;return i.has(s)||i.set(s,t(Object.assign({from:e,to:r,velocity:o,restSpeed:a?.05:2,restDistance:a?.01:.5},n))),i.get(s)},o=t=>(e.has(t)||e.set(t,function(t,e=s){let n,i=10,r=t(0);const o=[e(r.current)];for(;!r.done&&i<1e4;)r=t(i),o.push(e(r.done?r.target:r.current)),void 0===n&&r.hasReachedTarget&&(n=i),i+=10;const a=i-10;return 1===o.length&&o.push(r.current),{keyframes:o,duration:a/1e3,overshootDuration:(null!=n?n:a)/1e3}}(t)),e.get(t));return{createAnimation:(t,e,n,i,a)=>{var s,c;let u;const l=t.length;if(n&&l<=2&&t.every(St)){const n=t[l-1],h=1===l?null:t[0];let f=0,d=0;const p=null==a?void 0:a.generator;if(p){const{animation:e,generatorStartTime:n}=a,i=(null==e?void 0:e.startTime)||n||0,r=(null==e?void 0:e.currentTime)||performance.now()-i,o=p(r).current;d=null!==(s=h)&&void 0!==s?s:o,(1===l||2===l&&null===t[0])&&(f=yt((t=>p(t).current),r,o))}else d=null!==(c=h)&&void 0!==c?c:parseFloat(e());const b=r(d,n,f,null==i?void 0:i.includes("scale")),g=o(b);u=Object.assign(Object.assign({},g),{easing:"linear"}),a&&(a.generator=b,a.generatorStartTime=performance.now())}else u={easing:"ease",duration:o(r(0,100)).overshootDuration};return u}}}}const St=t=>"string"!=typeof t,Et=kt(xt),Ct=kt((({from:t=0,velocity:e=0,power:n=.8,decay:i=.325,bounceDamping:r,bounceStiffness:o,changeTarget:a,min:s,max:c,restDistance:u=.5,restSpeed:l})=>{i=K(i);const h={hasReachedTarget:!1,done:!1,current:t,target:t},f=t=>void 0===s?c:void 0===c||Math.abs(s-t)-d*Math.exp(-t/i),m=t=>b+g(t),w=t=>{const e=g(t),n=m(t);h.done=Math.abs(e)<=u,h.current=h.done?b:n};let v,y;const x=t=>{var e;e=h.current,(void 0!==s&&ec)&&(v=t,y=xt({from:h.current,to:f(h.current),velocity:yt(m,t,h.current),damping:r,stiffness:o,restDistance:u,restSpeed:l}))};return x(0),t=>{let e=!1;return y||void 0!==v||(e=!0,w(t),x(t)),void 0!==v&&t>v?(h.hasReachedTarget=!0,y(t-v)):(h.hasReachedTarget=!1,!e&&w(t),h)}})),_t={any:0,all:1};function Mt(t,e,{root:n,margin:i,amount:r="any"}={}){if("undefined"==typeof IntersectionObserver)return()=>{};const o=it(t),a=new WeakMap,s=new IntersectionObserver((t=>{t.forEach((t=>{const n=a.get(t.target);if(t.isIntersecting!==Boolean(n))if(t.isIntersecting){const n=e(t);R(n)?a.set(t.target,n):s.unobserve(t.target)}else n&&(n(t),a.delete(t.target))}))}),{root:n,rootMargin:i,threshold:"number"==typeof r?r:_t[r]});return o.forEach((t=>s.observe(t))),()=>s.disconnect()}const Pt=new WeakMap;let Tt;function Ot({target:t,contentRect:e,borderBoxSize:n}){var i;null===(i=Pt.get(t))||void 0===i||i.forEach((i=>{i({target:t,contentSize:e,get size(){return function(t,e){if(e){const{inlineSize:t,blockSize:n}=e[0];return{width:t,height:n}}return t instanceof SVGElement&&"getBBox"in t?t.getBBox():{width:t.offsetWidth,height:t.offsetHeight}}(t,n)}})}))}function It(t){t.forEach(Ot)}const jt=new Set;let At;function Nt(t,e){return R(t)?(n=t,jt.add(n),At||(At=()=>{const t={width:window.innerWidth,height:window.innerHeight},e={target:window,size:t,contentSize:t};jt.forEach((t=>t(e)))},window.addEventListener("resize",At)),()=>{jt.delete(n),!jt.size&&At&&(At=void 0)}):function(t,e){Tt||"undefined"!=typeof ResizeObserver&&(Tt=new ResizeObserver(It));const n=it(t);return n.forEach((t=>{let n=Pt.get(t);n||(n=new Set,Pt.set(t,n)),n.add(e),null==Tt||Tt.observe(t)})),()=>{n.forEach((t=>{const n=Pt.get(t);null==n||n.delete(e),(null==n?void 0:n.size)||null==Tt||Tt.unobserve(t)}))}}(t,e);var n}const Dt={x:{length:"Width",position:"Left"},y:{length:"Height",position:"Top"}};function Lt(t,e,n,i){const r=n[e],{length:o,position:a}=Dt[e],s=r.current,c=n.time;r.current=t["scroll"+a],r.scrollLength=t["scroll"+o]-t["client"+o],r.offset.length=0,r.offset[0]=0,r.offset[1]=r.scrollLength,r.progress=T(0,r.scrollLength,r.current);const u=i-c;r.velocity=u>50?0:vt(r.current-s,u)}const Rt={Enter:[[0,1],[1,1]],Exit:[[0,0],[1,0]],Any:[[1,0],[0,1]],All:[[0,0],[1,1]]},Ft={start:0,center:.5,end:1};function zt(t,e,n=0){let i=0;if(void 0!==Ft[t]&&(t=Ft[t]),dt(t)){const e=parseFloat(t);t.endsWith("px")?i=e:t.endsWith("%")?t=e/100:t.endsWith("vw")?i=e/100*document.documentElement.clientWidth:t.endsWith("vh")?i=e/100*document.documentElement.clientHeight:t=e}return _(t)&&(i=e*t),n+i}const $t=[0,0];function Ht(t,e,n,i){let r=Array.isArray(t)?t:$t,o=0,a=0;return _(t)?r=[t,t]:dt(t)&&(r=(t=t.trim()).includes(" ")?t.split(" "):[t,Ft[t]?t:"0"]),o=zt(r[0],n,i),a=zt(r[1],e),o-a}const Bt={x:0,y:0};function Kt(t,e,n,i={}){const r=i.axis||"y";return{measure:()=>function(t,e=t,n){if(n.x.targetOffset=0,n.y.targetOffset=0,e!==t){let i=e;for(;i&&i!=t;)n.x.targetOffset+=i.offsetLeft,n.y.targetOffset+=i.offsetTop,i=i.offsetParent}n.x.targetLength=e===t?e.scrollWidth:e.clientWidth,n.y.targetLength=e===t?e.scrollHeight:e.clientHeight,n.x.containerLength=t.clientWidth,n.y.containerLength=t.clientHeight}(t,i.target,n),update:e=>{!function(t,e,n){Lt(t,"x",e,n),Lt(t,"y",e,n),e.time=n}(t,n,e),(i.offset||i.target)&&function(t,e,n){let{offset:i=Rt.All}=n;const{target:r=t,axis:o="y"}=n,a="y"===o?"height":"width",s=r!==t?function(t,e){let n={x:0,y:0},i=t;for(;i&&i!==e;)if(i instanceof HTMLElement)n.x+=i.offsetLeft,n.y+=i.offsetTop,i=i.offsetParent;else if(i instanceof SVGGraphicsElement&&"getBBox"in i){const{top:t,left:e}=i.getBBox();for(n.x+=e,n.y+=t;i&&"svg"!==i.tagName;)i=i.parentNode}return n}(r,t):Bt,c=r===t?{width:t.scrollWidth,height:t.scrollHeight}:{width:r.clientWidth,height:r.clientHeight},u={width:t.clientWidth,height:t.clientHeight};e[o].offset.length=0;let l=!e[o].interpolate;const h=i.length;for(let t=0;te(n):Vt(e,n[r])}}function Vt(t,e){return t.pause(),t.forEachNative(((t,{easing:e})=>{var n,i;if(t.updateDuration)e||(t.easing=s),t.updateDuration(1);else{const r={duration:1e3};e||(r.easing="linear"),null===(i=null===(n=t.effect)||void 0===n?void 0:n.updateTiming)||void 0===i||i.call(n,r)}})),()=>{t.currentTime=e.progress}}const Wt=new WeakMap,Ut=new WeakMap,Xt=new WeakMap,qt=t=>t===document.documentElement?window:t;function Gt(t,e={}){var{container:n=document.documentElement}=e,i=ht(e,["container"]);let r=Xt.get(n);r||(r=new Set,Xt.set(n,r));const o=Kt(n,t,{time:0,x:{current:0,offset:[],progress:0,scrollLength:0,targetOffset:0,targetLength:0,containerLength:0,velocity:0},y:{current:0,offset:[],progress:0,scrollLength:0,targetOffset:0,targetLength:0,containerLength:0,velocity:0}},i);if(r.add(o),!Wt.has(n)){const t=()=>{const t=performance.now();for(const t of r)t.measure();for(const e of r)e.update(t);for(const t of r)t.notify()};Wt.set(n,t);const e=qt(n);window.addEventListener("resize",t,{passive:!0}),n!==document.documentElement&&Ut.set(n,Nt(n,t)),e.addEventListener("scroll",t,{passive:!0})}const a=Wt.get(n),s=requestAnimationFrame(a);return()=>{var e;"function"!=typeof t&&t.stop(),cancelAnimationFrame(s);const i=Xt.get(n);if(!i)return;if(i.delete(o),i.size)return;const r=Wt.get(n);Wt.delete(n),r&&(qt(n).removeEventListener("scroll",r),null===(e=Ut.get(n))||void 0===e||e(),window.removeEventListener("resize",r))}}function Yt(t,e){return function(t){return"object"==typeof t}(t)?t:t&&e?e[t]:void 0}let Qt;function Zt(){if(!Qt)return;const t=Qt.sort(te).map(ee);t.forEach(ne),t.forEach(ne),Qt=void 0}function Jt(t){Qt?c(Qt,t):(Qt=[t],requestAnimationFrame(Zt))}const te=(t,e)=>t.getDepth()-e.getDepth(),ee=t=>t.animateUpdates(),ne=t=>t.next(),ie=(t,e)=>new CustomEvent(t,{detail:{target:e}});function re(t,e,n){t.dispatchEvent(new CustomEvent(e,{detail:{originalEvent:n}}))}function oe(t,e,n){t.dispatchEvent(new CustomEvent(e,{detail:{originalEntry:n}}))}const ae=(t,e,n)=>i=>{i.pointerType&&"mouse"!==i.pointerType||(n(),re(t,e,i))},se={inView:{isActive:t=>Boolean(t.inView),subscribe:(t,{enable:e,disable:n},{inViewOptions:i={}})=>{const{once:r}=i,o=ht(i,["once"]);return Mt(t,(i=>{if(e(),oe(t,"viewenter",i),!r)return e=>{n(),oe(t,"viewleave",e)}}),o)}},hover:{isActive:t=>Boolean(t.hover),subscribe:(t,{enable:e,disable:n})=>{const i=ae(t,"hoverstart",e),r=ae(t,"hoverend",n);return t.addEventListener("pointerenter",i),t.addEventListener("pointerleave",r),()=>{t.removeEventListener("pointerenter",i),t.removeEventListener("pointerleave",r)}}},press:{isActive:t=>Boolean(t.press),subscribe:(t,{enable:e,disable:n})=>{const i=e=>{n(),re(t,"pressend",e),window.removeEventListener("pointerup",i)},r=n=>{e(),re(t,"pressstart",n),window.addEventListener("pointerup",i)};return t.addEventListener("pointerdown",r),()=>{t.removeEventListener("pointerdown",r),window.removeEventListener("pointerup",i)}}}},ce=["initial","animate",...Object.keys(se),"exit"],ue=new WeakMap;function le(t={},e){let n,i=e?e.getDepth()+1:0;const r={initial:!0,animate:!0},o={},s={};for(const n of ce)s[n]="string"==typeof t[n]?t[n]:null==e?void 0:e.getContext()[n];const c=!1===t.initial?"animate":"initial";let l=ht(Yt(t[c]||s[c],t.variants)||{},["transition"]);const h=Object.assign({},l),f=(t,e)=>()=>{r[t]=e,Jt(p)},d=()=>{for(const e in se){const i=se[e].isActive(t),r=o[e];i&&!r?o[e]=se[e].subscribe(n,{enable:f(e,!0),disable:f(e,!1)},t):!i&&r&&(r(),delete o[e])}},p={update:e=>{n&&(t=e,d(),Jt(p))},setActive:(t,e)=>{n&&(r[t]=e,Jt(p))},animateUpdates:function*(){var e,i;const o=l;l={};const s={};for(const n of ce){if(!r[n])continue;const o=Yt(t[n]);if(o)for(const n in o)"transition"!==n&&(l[n]=o[n],s[n]=nt(null!==(i=null!==(e=o.transition)&&void 0!==e?e:t.transition)&&void 0!==i?i:{},n))}const c=new Set([...Object.keys(l),...Object.keys(o)]),u=[];c.forEach((t=>{var e,i,r;void 0===l[t]&&(l[t]=h[t]),typeof(i=o[t])==typeof(r=l[t])&&(Array.isArray(i)&&Array.isArray(r)?function(t,e){const n=e.length;if(n!==t.length)return!1;for(let i=0;it())).filter(Boolean);if(!f.length)return;const d=l;n.dispatchEvent(ie("motionstart",d)),Promise.all(f.map((t=>t.finished))).then((()=>{n.dispatchEvent(ie("motioncomplete",d))})).catch(a)},getDepth:()=>i,getTarget:()=>l,getOptions:()=>t,getContext:()=>s,mount:t=>((0,ft.invariant)(Boolean(t),"Animation state must be mounted with valid Element"),n=t,ue.set(n,p),d(),()=>{ue.delete(n),function(t){Qt&&u(Qt,t)}(p);for(const t in o)o[t]()}),isMounted:()=>Boolean(n)};return p}function he(t){const e={},n=[];for(let i in t){const r=t[i];v(i)&&(h[i]&&(i=h[i]),n.push(i),i=b(i));let o=Array.isArray(r)?r[0]:r;const a=p.get(i);a&&(o=_(r)?a.toDefaultUnit(r):r),e[i]=o}return n.length&&(e.transform=y(n)),e}const fe=t=>`-${t.toLowerCase()}`;function de(t={}){const e=he(t);let n="";for(const t in e)n+=t.startsWith("--")?t:t.replace(/[A-Z]/g,fe),n+=`: ${e[t]}; `;return n}},1479:(t,e)=>{"use strict";var n={};Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t,e){void 0===e&&(e={});var i=JSON.stringify({text:t,options:e});if(n[i])return n[i];e.font=e.font||"Times",e.fontSize=e.fontSize||"16px",e.fontWeight=e.fontWeight||"normal",e.width=e.width||"auto";var r=function(t,e){var n=document.createElement("div"),i=document.createTextNode(t);return n.appendChild(i),n.style.fontFamily=e.font,n.style.fontSize=e.fontSize,n.style.fontWeight=e.fontWeight,n.style.position="absolute",n.style.visibility="hidden",n.style.left="-999px",n.style.top="-999px",n.style.width=e.width,n.style.height="auto",document.body.appendChild(n),n}(t,e),o={width:r.offsetWidth,height:r.offsetHeight};return function(t){t.parentNode.removeChild(t)}(r),n[i]=o,o}},4184:(t,e)=>{var n;!function(){"use strict";var i={}.hasOwnProperty;function r(){for(var t=[],e=0;e2&&void 0!==arguments[2]?arguments[2]:[];for(var o in n)n.hasOwnProperty(o)&&-1===r.indexOf(o)&&(e.hasOwnProperty(o)&&void 0!==e[o]?"object"===i(e[o])&&t(e[o],n[o]):e[o]=n[o]);return e};t.exports=o,t.exports.copy=function(){for(var t=arguments.length,e=Array(t),n=0;n{t.exports=function t(e,n,i){function r(a,s){if(!n[a]){if(!e[a]){if(o)return o(a,!0);var c=new Error("Cannot find module '"+a+"'");throw c.code="MODULE_NOT_FOUND",c}var u=n[a]={exports:{}};e[a][0].call(u.exports,(function(t){return r(e[a][1][t]||t)}),u,u.exports,t,e,n,i)}return n[a].exports}for(var o=void 0,a=0;a0&&void 0!==arguments[0]?arguments[0]:{},i=n.defaultLayoutOptions,o=void 0===i?{}:i,s=n.algorithms,c=void 0===s?["layered","stress","mrtree","radial","force","disco","sporeOverlap","sporeCompaction","rectpacking"]:s,u=n.workerFactory,l=n.workerUrl;if(r(this,t),this.defaultLayoutOptions=o,this.initialized=!1,void 0===l&&void 0===u)throw new Error("Cannot construct an ELK without both 'workerUrl' and 'workerFactory'.");var h=u;void 0!==l&&void 0===u&&(h=function(t){return new Worker(t)});var f=h(l);if("function"!=typeof f.postMessage)throw new TypeError("Created worker does not provide the required 'postMessage' function.");this.worker=new a(f),this.worker.postMessage({cmd:"register",algorithms:c}).then((function(t){return e.initialized=!0})).catch(console.err)}return i(t,[{key:"layout",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=e.layoutOptions,i=void 0===n?this.defaultLayoutOptions:n,r=e.logging,o=void 0!==r&&r,a=e.measureExecutionTime,s=void 0!==a&&a;return t?this.worker.postMessage({cmd:"layout",graph:t,layoutOptions:i,options:{logging:o,measureExecutionTime:s}}):Promise.reject(new Error("Missing mandatory parameter 'graph'."))}},{key:"knownLayoutAlgorithms",value:function(){return this.worker.postMessage({cmd:"algorithms"})}},{key:"knownLayoutOptions",value:function(){return this.worker.postMessage({cmd:"options"})}},{key:"knownLayoutCategories",value:function(){return this.worker.postMessage({cmd:"categories"})}},{key:"terminateWorker",value:function(){this.worker.terminate()}}]),t}();n.default=o;var a=function(){function t(e){var n=this;if(r(this,t),void 0===e)throw new Error("Missing mandatory parameter 'worker'.");this.resolvers={},this.worker=e,this.worker.onmessage=function(t){setTimeout((function(){n.receive(n,t)}),0)}}return i(t,[{key:"postMessage",value:function(t){var e=this.id||0;this.id=e+1,t.id=e;var n=this;return new Promise((function(i,r){n.resolvers[e]=function(t,e){t?(n.convertGwtStyleError(t),r(t)):i(e)},n.worker.postMessage(t)}))}},{key:"receive",value:function(t,e){var n=e.data,i=t.resolvers[n.id];i&&(delete t.resolvers[n.id],n.error?i(n.error):i(null,n.data))}},{key:"terminate",value:function(){this.worker.terminate&&this.worker.terminate()}},{key:"convertGwtStyleError",value:function(t){if(t){var e=t.__java$exception;e&&(e.cause&&e.cause.backingJsObject&&(t.cause=e.cause.backingJsObject,this.convertGwtStyleError(t.cause)),delete t.__java$exception)}}}]),t}()},{}],2:[function(t,e,i){(function(t){(function(){"use strict";var n;function r(){}function o(){}function a(){}function s(){}function c(){}function u(){}function l(){}function h(){}function f(){}function d(){}function p(){}function b(){}function g(){}function m(){}function w(){}function v(){}function y(){}function x(){}function k(){}function S(){}function E(){}function C(){}function _(){}function M(){}function P(){}function T(){}function O(){}function I(){}function j(){}function A(){}function N(){}function D(){}function L(){}function R(){}function F(){}function z(){}function $(){}function H(){}function B(){}function K(){}function V(){}function W(){}function U(){}function X(){}function q(){}function G(){}function Y(){}function Q(){}function Z(){}function J(){}function tt(){}function et(){}function nt(){}function it(){}function rt(){}function ot(){}function at(){}function st(){}function ct(){}function ut(){}function lt(){}function ht(){}function ft(){}function dt(){}function pt(){}function bt(){}function gt(){}function mt(){}function wt(){}function vt(){}function yt(){}function xt(){}function kt(){}function St(){}function Et(){}function Ct(){}function _t(){}function Mt(){}function Pt(){}function Tt(){}function Ot(){}function It(){}function jt(){}function At(){}function Nt(){}function Dt(){}function Lt(){}function Rt(){}function Ft(){}function zt(){}function $t(){}function Ht(){}function Bt(){}function Kt(){}function Vt(){}function Wt(){}function Ut(){}function Xt(){}function qt(){}function Gt(){}function Yt(){}function Qt(){}function Zt(){}function Jt(){}function te(){}function ee(){}function ne(){}function ie(){}function re(){}function oe(){}function ae(){}function se(){}function ce(){}function ue(){}function le(){}function he(){}function fe(){}function de(){}function pe(){}function be(){}function ge(){}function me(){}function we(){}function ve(){}function ye(){}function xe(){}function ke(){}function Se(){}function Ee(){}function Ce(){}function _e(){}function Me(){}function Pe(){}function Te(){}function Oe(){}function Ie(){}function je(){}function Ae(){}function Ne(){}function De(){}function Le(){}function Re(){}function Fe(){}function ze(){}function $e(){}function He(){}function Be(){}function Ke(){}function Ve(){}function We(){}function Ue(){}function Xe(){}function qe(){}function Ge(){}function Ye(){}function Qe(){}function Ze(){}function Je(){}function tn(){}function en(){}function nn(){}function rn(){}function on(){}function an(){}function sn(){}function cn(){}function un(){}function ln(){}function hn(){}function fn(){}function dn(){}function pn(){}function bn(){}function gn(){}function mn(){}function wn(){}function vn(){}function yn(){}function xn(){}function kn(){}function Sn(){}function En(){}function Cn(){}function _n(){}function Mn(){}function Pn(){}function Tn(){}function On(){}function In(){}function jn(){}function An(){}function Nn(){}function Dn(){}function Ln(){}function Rn(){}function Fn(){}function zn(){}function $n(){}function Hn(){}function Bn(){}function Kn(){}function Vn(){}function Wn(){}function Un(){}function Xn(){}function qn(){}function Gn(){}function Yn(){}function Qn(){}function Zn(){}function Jn(){}function ti(){}function ei(){}function ni(){}function ii(){}function ri(){}function oi(){}function ai(){}function si(){}function ci(){}function ui(){}function li(){}function hi(){}function fi(){}function di(){}function pi(){}function bi(){}function gi(){}function mi(){}function wi(){}function vi(){}function yi(){}function xi(){}function ki(){}function Si(){}function Ei(){}function Ci(){}function _i(){}function Mi(){}function Pi(){}function Ti(){}function Oi(){}function Ii(){}function ji(){}function Ai(){}function Ni(){}function Di(){}function Li(){}function Ri(){}function Fi(){}function zi(){}function $i(){}function Hi(){}function Bi(){}function Ki(){}function Vi(){}function Wi(){}function Ui(){}function Xi(){}function qi(){}function Gi(){}function Yi(){}function Qi(){}function Zi(){}function Ji(){}function tr(){}function er(){}function nr(){}function ir(){}function rr(){}function or(){}function ar(){}function sr(){}function cr(){}function ur(){}function lr(){}function hr(){}function fr(){}function dr(){}function pr(){}function br(){}function gr(){}function mr(){}function wr(){}function vr(){}function yr(){}function xr(){}function kr(){}function Sr(){}function Er(){}function Cr(){}function _r(){}function Mr(){}function Pr(){}function Tr(){}function Or(){}function Ir(){}function jr(){}function Ar(){}function Nr(){}function Dr(){}function Lr(){}function Rr(){}function Fr(){}function zr(){}function $r(){}function Hr(){}function Br(){}function Kr(){}function Vr(){}function Wr(){}function Ur(){}function Xr(){}function qr(){}function Gr(){}function Yr(){}function Qr(){}function Zr(){}function Jr(){}function to(){}function eo(){}function no(){}function io(){}function ro(){}function oo(){}function ao(){}function so(){}function co(){}function uo(){}function lo(){}function ho(){}function fo(){}function po(){}function bo(){}function go(){}function mo(){}function wo(){}function vo(){}function yo(){}function xo(){}function ko(){}function So(){}function Eo(){}function Co(){}function _o(){}function Mo(){}function Po(){}function To(){}function Oo(){}function Io(){}function jo(){}function Ao(){}function No(){}function Do(){}function Lo(){}function Ro(){}function Fo(){}function zo(){}function $o(){}function Ho(){}function Bo(){}function Ko(){}function Vo(){}function Wo(){}function Uo(){}function Xo(){}function qo(){}function Go(){}function Yo(){}function Qo(){}function Zo(){}function Jo(){}function ta(){}function ea(){}function na(){}function ia(){}function ra(){}function oa(){}function aa(){}function sa(){}function ca(){}function ua(){}function la(){}function ha(){}function fa(){}function da(){}function pa(){}function ba(){}function ga(){}function ma(){}function wa(){}function va(){}function ya(){}function xa(){}function ka(){}function Sa(){}function Ea(){}function Ca(){}function _a(){}function Ma(){}function Pa(){}function Ta(){}function Oa(){}function Ia(){}function ja(){}function Aa(){}function Na(){}function Da(){}function La(){}function Ra(){}function Fa(){}function za(){}function $a(){}function Ha(){}function Ba(){}function Ka(){}function Va(){}function Wa(){}function Ua(){}function Xa(){}function qa(){}function Ga(){}function Ya(){}function Qa(){}function Za(){}function Ja(){}function ts(){}function es(){}function ns(){}function is(){}function rs(){}function os(){}function as(){}function ss(){}function cs(){}function us(){}function ls(){}function hs(){}function fs(){}function ds(){}function ps(){}function bs(){}function gs(){}function ms(){}function ws(){}function vs(){}function ys(){}function xs(){}function ks(){}function Ss(){}function Es(){}function Cs(){}function _s(){}function Ms(){}function Ps(){}function Ts(){}function Os(){}function Is(){}function js(){}function As(){}function Ns(){}function Ds(){}function Ls(){}function Rs(){}function Fs(){}function zs(){}function $s(){}function Hs(){}function Bs(){}function Ks(){}function Vs(){}function Ws(){}function Us(){}function Xs(){}function qs(){}function Gs(){}function Ys(){}function Qs(){}function Zs(){}function Js(){}function tc(){}function ec(){}function nc(){}function ic(){}function rc(){}function oc(){}function ac(){}function sc(){}function cc(){}function uc(){}function lc(){}function hc(){}function fc(){}function dc(){}function pc(){}function bc(){}function gc(){}function mc(){}function wc(){}function vc(){}function yc(){}function xc(){}function kc(){}function Sc(){}function Ec(){}function Cc(){}function _c(){}function Mc(){}function Pc(){}function Tc(){}function Oc(){}function Ic(){}function jc(){}function Ac(){}function Nc(){}function Dc(){}function Lc(){}function Rc(){}function Fc(){}function zc(){}function $c(){}function Hc(){}function Bc(){}function Kc(){}function Vc(){}function Wc(){}function Uc(){}function Xc(){}function qc(){}function Gc(){}function Yc(){}function Qc(){}function Zc(){}function Jc(){}function tu(){}function eu(){}function nu(){}function iu(){}function ru(){}function ou(){}function au(){}function su(){}function cu(){}function uu(){}function lu(){}function hu(){}function fu(){}function du(){}function pu(){}function bu(){}function gu(){}function mu(){}function wu(){}function vu(){}function yu(){}function xu(){}function ku(){}function Su(){}function Eu(){}function Cu(){}function _u(){}function Mu(){}function Pu(){}function Tu(){}function Ou(){}function Iu(){}function ju(){}function Au(){}function Nu(){}function Du(){}function Lu(){}function Ru(){}function Fu(){}function zu(){}function $u(){}function Hu(){}function Bu(){}function Ku(){}function Vu(){}function Wu(){}function Uu(){}function Xu(){}function qu(){}function Gu(){}function Yu(){}function Qu(){}function Zu(){}function Ju(){}function tl(){}function el(){}function nl(){}function il(){}function rl(){}function ol(){}function al(){}function sl(){}function cl(){}function ul(){}function ll(){}function hl(){}function fl(){}function dl(){}function pl(){}function bl(){}function gl(){}function ml(){}function wl(){}function vl(){}function yl(){}function xl(){}function kl(){}function Sl(){}function El(){}function Cl(){}function _l(){}function Ml(){}function Pl(){}function Tl(){}function Ol(){}function Il(){}function jl(){}function Al(){}function Nl(){}function Dl(){}function Ll(){}function Rl(){}function Fl(){}function zl(){gv()}function $l(){I6()}function Hl(){pnt()}function Bl(){vot()}function Kl(){Cct()}function Vl(){Kbt()}function Wl(){Drt()}function Ul(){Yrt()}function Xl(){YS()}function ql(){US()}function Gl(){ID()}function Yl(){QS()}function Ql(){y2()}function Zl(){JS()}function Jl(){iY()}function th(){P0()}function eh(){cQ()}function nh(){uW()}function ih(){j6()}function rh(){Zst()}function oh(){T0()}function ah(){mX()}function sh(){Akt()}function ch(){zrt()}function uh(){lW()}function lh(){wkt()}function hh(){sW()}function fh(){O0()}function dh(){i5()}function ph(){pW()}function bh(){_Q()}function gh(){tE()}function mh(){pft()}function wh(){Hrt()}function vh(){p3()}function yh(){Fst()}function xh(){Vbt()}function kh(){pit()}function Sh(){sft()}function Eh(){r4()}function Ch(){fW()}function _h(){rmt()}function Mh(){uft()}function Ph(){tdt()}function Th(){TQ()}function Oh(){zst()}function Ih(){Ikt()}function jh(){N6()}function Ah(){Itt()}function Nh(){tvt()}function Dh(){bD()}function Lh(){G2()}function Rh(){Bmt()}function Fh(t){wH(t)}function zh(t){this.a=t}function $h(t){this.a=t}function Hh(t){this.a=t}function Bh(t){this.a=t}function Kh(t){this.a=t}function Vh(t){this.a=t}function Wh(t){this.a=t}function Uh(t){this.a=t}function Xh(t){this.a=t}function qh(t){this.a=t}function Gh(t){this.a=t}function Yh(t){this.a=t}function Qh(t){this.a=t}function Zh(t){this.a=t}function Jh(t){this.a=t}function tf(t){this.a=t}function ef(t){this.a=t}function nf(t){this.a=t}function rf(t){this.a=t}function of(t){this.a=t}function af(t){this.a=t}function sf(t){this.b=t}function cf(t){this.c=t}function uf(t){this.a=t}function lf(t){this.a=t}function hf(t){this.a=t}function ff(t){this.a=t}function df(t){this.a=t}function pf(t){this.a=t}function bf(t){this.a=t}function gf(t){this.a=t}function mf(t){this.a=t}function wf(t){this.a=t}function vf(t){this.a=t}function yf(t){this.a=t}function xf(t){this.a=t}function kf(t){this.a=t}function Sf(t){this.a=t}function Ef(t){this.a=t}function Cf(t){this.a=t}function _f(){this.a=[]}function Mf(t,e){t.a=e}function Pf(t,e){t.j=e}function Tf(t,e){t.c=e}function Of(t,e){t.d=e}function If(t,e){t.k=e}function jf(t,e){t.c=e}function Af(t,e){t.a=e}function Nf(t,e){t.a=e}function Df(t,e){t.f=e}function Lf(t,e){t.a=e}function Rf(t,e){t.b=e}function Ff(t,e){t.d=e}function zf(t,e){t.i=e}function $f(t,e){t.o=e}function Hf(t,e){t.e=e}function Bf(t,e){t.g=e}function Kf(t,e){t.e=e}function Vf(t,e){t.f=e}function Wf(t,e){t.f=e}function Uf(t,e){t.n=e}function Xf(t){t.b=t.a}function qf(t){t.c=t.d.d}function Gf(t){this.d=t}function Yf(t){this.a=t}function Qf(t){this.a=t}function Zf(t){this.a=t}function Jf(t){this.a=t}function td(t){this.a=t}function ed(t){this.a=t}function nd(t){this.a=t}function id(t){this.a=t}function rd(t){this.a=t}function od(t){this.a=t}function ad(t){this.a=t}function sd(t){this.a=t}function cd(t){this.a=t}function ud(t){this.a=t}function ld(t){this.b=t}function hd(t){this.b=t}function fd(t){this.b=t}function dd(t){this.a=t}function pd(t){this.a=t}function bd(t){this.a=t}function gd(t){this.c=t}function md(t){this.c=t}function wd(t){this.c=t}function vd(t){this.a=t}function yd(t){this.a=t}function xd(t){this.a=t}function kd(t){this.a=t}function Sd(t){this.a=t}function Ed(t){this.a=t}function Cd(t){this.a=t}function _d(t){this.a=t}function Md(t){this.a=t}function Pd(t){this.a=t}function Td(t){this.a=t}function Od(t){this.a=t}function Id(t){this.a=t}function jd(t){this.a=t}function Ad(t){this.a=t}function Nd(t){this.a=t}function Dd(t){this.a=t}function Ld(t){this.a=t}function Rd(t){this.a=t}function Fd(t){this.a=t}function zd(t){this.a=t}function $d(t){this.a=t}function Hd(t){this.a=t}function Bd(t){this.a=t}function Kd(t){this.a=t}function Vd(t){this.a=t}function Wd(t){this.a=t}function Ud(t){this.a=t}function Xd(t){this.a=t}function qd(t){this.a=t}function Gd(t){this.a=t}function Yd(t){this.a=t}function Qd(t){this.a=t}function Zd(t){this.a=t}function Jd(t){this.a=t}function tp(t){this.a=t}function ep(t){this.a=t}function np(t){this.a=t}function ip(t){this.a=t}function rp(t){this.a=t}function op(t){this.a=t}function ap(t){this.a=t}function sp(t){this.a=t}function cp(t){this.a=t}function up(t){this.a=t}function lp(t){this.e=t}function hp(t){this.a=t}function fp(t){this.a=t}function dp(t){this.a=t}function pp(t){this.a=t}function bp(t){this.a=t}function gp(t){this.a=t}function mp(t){this.a=t}function wp(t){this.a=t}function vp(t){this.a=t}function yp(t){this.a=t}function xp(t){this.a=t}function kp(t){this.a=t}function Sp(t){this.a=t}function Ep(t){this.a=t}function Cp(t){this.a=t}function _p(t){this.a=t}function Mp(t){this.a=t}function Pp(t){this.a=t}function Tp(t){this.a=t}function Op(t){this.a=t}function Ip(t){this.a=t}function jp(t){this.a=t}function Ap(t){this.a=t}function Np(t){this.a=t}function Dp(t){this.a=t}function Lp(t){this.a=t}function Rp(t){this.a=t}function Fp(t){this.a=t}function zp(t){this.a=t}function $p(t){this.a=t}function Hp(t){this.a=t}function Bp(t){this.a=t}function Kp(t){this.a=t}function Vp(t){this.a=t}function Wp(t){this.a=t}function Up(t){this.a=t}function Xp(t){this.a=t}function qp(t){this.a=t}function Gp(t){this.a=t}function Yp(t){this.a=t}function Qp(t){this.a=t}function Zp(t){this.a=t}function Jp(t){this.a=t}function tb(t){this.a=t}function eb(t){this.a=t}function nb(t){this.a=t}function ib(t){this.a=t}function rb(t){this.a=t}function ob(t){this.a=t}function ab(t){this.a=t}function sb(t){this.a=t}function cb(t){this.a=t}function ub(t){this.a=t}function lb(t){this.c=t}function hb(t){this.b=t}function fb(t){this.a=t}function db(t){this.a=t}function pb(t){this.a=t}function bb(t){this.a=t}function gb(t){this.a=t}function mb(t){this.a=t}function wb(t){this.a=t}function vb(t){this.a=t}function yb(t){this.a=t}function xb(t){this.a=t}function kb(t){this.a=t}function Sb(t){this.a=t}function Eb(t){this.a=t}function Cb(t){this.a=t}function _b(t){this.a=t}function Mb(t){this.a=t}function Pb(t){this.a=t}function Tb(t){this.a=t}function Ob(t){this.a=t}function Ib(t){this.a=t}function jb(t){this.a=t}function Ab(t){this.a=t}function Nb(t){this.a=t}function Db(t){this.a=t}function Lb(t){this.a=t}function Rb(t){this.a=t}function Fb(t){this.a=t}function zb(t){this.a=t}function $b(t){this.a=t}function Hb(t){this.a=t}function Bb(t){this.a=t}function Kb(t){this.a=t}function Vb(t){this.a=t}function Wb(t){this.a=t}function Ub(t){this.a=t}function Xb(t){this.a=t}function qb(t){this.a=t}function Gb(t){this.a=t}function Yb(t){this.a=t}function Qb(t){this.a=t}function Zb(t){this.a=t}function Jb(t){this.a=t}function tg(t){this.a=t}function eg(t){this.a=t}function ng(t){this.a=t}function ig(t){this.a=t}function rg(t){this.a=t}function og(t){this.a=t}function ag(t){this.a=t}function sg(t){this.a=t}function cg(t){this.a=t}function ug(t){this.a=t}function lg(t){this.a=t}function hg(t){this.a=t}function fg(t){this.a=t}function dg(t){this.a=t}function pg(t){this.a=t}function bg(t){this.a=t}function gg(t){this.a=t}function mg(t){this.a=t}function wg(t){this.a=t}function vg(t){this.a=t}function yg(t){this.a=t}function xg(t){this.a=t}function kg(t){this.a=t}function Sg(t){this.a=t}function Eg(t){this.a=t}function Cg(t){this.a=t}function _g(t){this.a=t}function Mg(t){this.a=t}function Pg(t){this.a=t}function Tg(t){this.a=t}function Og(t){this.b=t}function Ig(t){this.f=t}function jg(t){this.a=t}function Ag(t){this.a=t}function Ng(t){this.a=t}function Dg(t){this.a=t}function Lg(t){this.a=t}function Rg(t){this.a=t}function Fg(t){this.a=t}function zg(t){this.a=t}function $g(t){this.a=t}function Hg(t){this.a=t}function Bg(t){this.a=t}function Kg(t){this.b=t}function Vg(t){this.c=t}function Wg(t){this.e=t}function Ug(t){this.a=t}function Xg(t){this.a=t}function qg(t){this.a=t}function Gg(t){this.a=t}function Yg(t){this.a=t}function Qg(t){this.d=t}function Zg(t){this.a=t}function Jg(t){this.a=t}function tm(t){this.e=t}function em(){this.a=0}function nm(){jT(this)}function im(){IT(this)}function rm(){Uz(this)}function om(){YH(this)}function am(){}function sm(){this.c=Gae}function cm(t,e){t.b+=e}function um(t){t.b=new gy}function lm(t){return t.e}function hm(t){return t.a}function fm(t){return t.a}function dm(t){return t.a}function pm(t){return t.a}function bm(t){return t.a}function gm(){return null}function mm(){return null}function wm(t,e){t.b=e-t.b}function vm(t,e){t.a=e-t.a}function ym(t,e){e.ad(t.a)}function xm(t,e){t.e=e,e.b=t}function km(t){mD(),this.a=t}function Sm(t){mD(),this.a=t}function Em(t){mD(),this.a=t}function Cm(t){G$(),this.a=t}function _m(t){jK(),vzt.be(t)}function Mm(){OI.call(this)}function Pm(){OI.call(this)}function Tm(){Mm.call(this)}function Om(){Mm.call(this)}function Im(){Mm.call(this)}function jm(){Mm.call(this)}function Am(){Mm.call(this)}function Nm(){Mm.call(this)}function Dm(){Mm.call(this)}function Lm(){Mm.call(this)}function Rm(){Mm.call(this)}function Fm(){Mm.call(this)}function zm(){Mm.call(this)}function $m(){this.a=this}function Hm(){this.Bb|=256}function Bm(){this.b=new DP}function Km(){Km=O,new rm}function Vm(){Tm.call(this)}function Wm(t,e){t.length=e}function Um(t,e){nL(t.a,e)}function Xm(t,e){z3(t.e,e)}function qm(t){Sht(t.c,t.b)}function Gm(t){this.a=function(t){var e;return(e=wct(t))>34028234663852886e22?tCt:e<-34028234663852886e22?eCt:e}(t)}function Ym(){this.a=new rm}function Qm(){this.a=new rm}function Zm(){this.a=new im}function Jm(){this.a=new im}function tw(){this.a=new im}function ew(){this.a=new yt}function nw(){this.a=new GG}function iw(){this.a=new fe}function rw(){this.a=new kS}function ow(){this.a=new mU}function aw(){this.a=new DV}function sw(){this.a=new aN}function cw(){this.a=new im}function uw(){this.a=new im}function lw(){this.a=new im}function hw(){this.a=new im}function fw(){this.d=new im}function dw(){this.a=new Ym}function pw(){this.a=new rm}function bw(){this.b=new rm}function gw(){this.b=new im}function mw(){this.e=new im}function ww(){this.d=new im}function vw(){this.a=new rh}function yw(){im.call(this)}function xw(){Zm.call(this)}function kw(){uN.call(this)}function Sw(){uw.call(this)}function Ew(){Cw.call(this)}function Cw(){am.call(this)}function _w(){am.call(this)}function Mw(){_w.call(this)}function Pw(){SK.call(this)}function Tw(){SK.call(this)}function Ow(){sv.call(this)}function Iw(){sv.call(this)}function jw(){sv.call(this)}function Aw(){cv.call(this)}function Nw(){CS.call(this)}function Dw(){ic.call(this)}function Lw(){ic.call(this)}function Rw(){dv.call(this)}function Fw(){dv.call(this)}function zw(){rm.call(this)}function $w(){rm.call(this)}function Hw(){rm.call(this)}function Bw(){Ym.call(this)}function Kw(){C0.call(this)}function Vw(){Hm.call(this)}function Ww(){WO.call(this)}function Uw(){WO.call(this)}function Xw(){rm.call(this)}function qw(){rm.call(this)}function Gw(){rm.call(this)}function Yw(){yc.call(this)}function Qw(){yc.call(this)}function Zw(){Yw.call(this)}function Jw(){Ll.call(this)}function tv(t){$J.call(this,t)}function ev(t){$J.call(this,t)}function nv(t){Xh.call(this,t)}function iv(t){eS.call(this,t)}function rv(t){iv.call(this,t)}function ov(t){eS.call(this,t)}function av(){this.a=new CS}function sv(){this.a=new Ym}function cv(){this.a=new rm}function uv(){this.a=new im}function lv(){this.j=new im}function hv(){this.a=new qa}function fv(){this.a=new dk}function dv(){this.a=new vc}function pv(){pv=O,nzt=new Fy}function bv(){bv=O,ezt=new Ry}function gv(){gv=O,XFt=new o}function mv(){mv=O,czt=new vI}function wv(t){iv.call(this,t)}function vv(t){iv.call(this,t)}function yv(t){hq.call(this,t)}function xv(t){hq.call(this,t)}function kv(t){iD.call(this,t)}function Sv(t){Sct.call(this,t)}function Ev(t){rS.call(this,t)}function Cv(t){aS.call(this,t)}function _v(t){aS.call(this,t)}function Mv(t){aS.call(this,t)}function Pv(t){DF.call(this,t)}function Tv(t){Pv.call(this,t)}function Ov(){Cf.call(this,{})}function Iv(t){KO(),this.a=t}function jv(t){t.b=null,t.c=0}function Av(t,e){t.a=e,function(t){var e,i,r;for(function(t){var e,i,r;for(i=new md(t.a.a.b);i.a0&&((!fT(t.a.c)||!e.n.d)&&(!dT(t.a.c)||!e.n.b)&&(e.g.d-=n.Math.max(0,r/2-.5)),(!fT(t.a.c)||!e.n.a)&&(!dT(t.a.c)||!e.n.c)&&(e.g.a+=n.Math.max(0,r-1)))}(t),r=new im,i=new md(t.a.a.b);i.a0&&((!fT(t.a.c)||!e.n.d)&&(!dT(t.a.c)||!e.n.b)&&(e.g.d+=n.Math.max(0,r/2-.5)),(!fT(t.a.c)||!e.n.a)&&(!dT(t.a.c)||!e.n.c)&&(e.g.a-=r-1))}(t)}(t)}function Nv(t,e,n){t.a[e.g]=n}function Dv(t,e,n){!function(t,e,n){var i,r;for(ET(t,t.j+e,t.k+n),r=new UO((!t.a&&(t.a=new XO(Qre,t,5)),t.a));r.e!=r.i.gc();)yT(i=QD(fnt(r),469),i.a+e,i.b+n);ST(t,t.b+e,t.c+n)}(n,t,e)}function Lv(t,e){!function(t,e){fT(t.f)?function(t,e){var n,i,r,o,a;for(o=t.g.a,a=t.g.b,i=new md(t.d);i.a=t.length)return{done:!0};var i=t[n++];return{value:[i,e.get(i)],done:!1}}}},function(){if(!Object.create||!Object.getOwnPropertyNames)return!1;var t="__proto__",e=Object.create(null);return void 0===e[t]&&0==Object.getOwnPropertyNames(e).length&&(e[t]=42,42===e[t]&&0!=Object.getOwnPropertyNames(e).length)}()||(t.prototype.createObject=function(){return{}},t.prototype.get=function(t){return this.obj[":"+t]},t.prototype.set=function(t,e){this.obj[":"+t]=e},t.prototype[yCt]=function(t){delete this.obj[":"+t]},t.prototype.keys=function(){var t=[];for(var e in this.obj)58==e.charCodeAt(0)&&t.push(e.substring(1));return t}),t}()}()}function Hy(t){return t.a?t.b:0}function By(t){return t.a?t.b:0}function Ky(t,e){return sZ(t,e)}function Vy(t,e){return VV(t,e)}function Wy(t,e){return t.f=e,t}function Uy(t,e){return t.c=e,t}function Xy(t,e){return t.a=e,t}function qy(t,e){return t.f=e,t}function Gy(t,e){return t.k=e,t}function Yy(t,e){return t.a=e,t}function Qy(t,e){return t.e=e,t}function Zy(t,e){t.b=!0,t.d=e}function Jy(t,e){return t?0:e-1}function tx(t,e){return t.b=e,t}function ex(t,e){return t.a=e,t}function nx(t,e){return t.c=e,t}function ix(t,e){return t.d=e,t}function rx(t,e){return t.e=e,t}function ox(t,e){return t.f=e,t}function ax(t,e){return t.a=e,t}function sx(t,e){return t.b=e,t}function cx(t,e){return t.c=e,t}function ux(t,e){return t.c=e,t}function lx(t,e){return t.b=e,t}function hx(t,e){return t.d=e,t}function fx(t,e){return t.e=e,t}function dx(t,e){return t.g=e,t}function px(t,e){return t.a=e,t}function bx(t,e){return t.i=e,t}function gx(t,e){return t.j=e,t}function mx(t,e){return t.k=e,t}function wx(t,e,n){!function(t,e,n){zz(t,new JE(e.a,n.a))}(t.a,e,n)}function vx(t){pB.call(this,t)}function yx(t){pB.call(this,t)}function xx(t){cD.call(this,t)}function kx(t){I9.call(this,t)}function Sx(t){HJ.call(this,t)}function Ex(t){FB.call(this,t)}function Cx(t){FB.call(this,t)}function _x(){uO.call(this,"")}function Mx(){this.a=0,this.b=0}function Px(){this.b=0,this.a=0}function Tx(t,e){t.b=0,H1(t,e)}function Ox(t,e){return t.c._b(e)}function Ix(t){return t.e&&t.e()}function jx(t){return t?t.d:null}function Ax(t,e){return F8(t.b,e)}function Nx(t){return uA(t),t.o}function Dx(){Dx=O,Ire=function(){var t,e;tvt();try{if(e=QD(tat((vE(),sae),RNt),2014))return e}catch(e){if(!TO(e=S4(e),102))throw lm(e);t=e,IF((VT(),t))}return new sc}()}function Lx(){var t;Lx=O,jre=loe?QD(Vft((vE(),sae),RNt),2016):(t=QD(TO(aV((vE(),sae),RNt),555)?aV(sae,RNt):new Uht,555),loe=!0,function(t){t.q||(t.q=!0,t.p=V3(t,0),t.a=V3(t,1),P2(t.a,0),t.f=V3(t,2),P2(t.f,1),M2(t.f,2),t.n=V3(t,3),M2(t.n,3),M2(t.n,4),M2(t.n,5),M2(t.n,6),t.g=V3(t,4),P2(t.g,7),M2(t.g,8),t.c=V3(t,5),P2(t.c,7),P2(t.c,8),t.i=V3(t,6),P2(t.i,9),P2(t.i,10),P2(t.i,11),P2(t.i,12),M2(t.i,13),t.j=V3(t,7),P2(t.j,9),t.d=V3(t,8),P2(t.d,3),P2(t.d,4),P2(t.d,5),P2(t.d,6),M2(t.d,7),M2(t.d,8),M2(t.d,9),M2(t.d,10),t.b=V3(t,9),M2(t.b,0),M2(t.b,1),t.e=V3(t,10),M2(t.e,1),M2(t.e,2),M2(t.e,3),M2(t.e,4),P2(t.e,5),P2(t.e,6),P2(t.e,7),P2(t.e,8),P2(t.e,9),P2(t.e,10),M2(t.e,11),t.k=V3(t,11),M2(t.k,0),M2(t.k,1),t.o=W3(t,12),t.s=W3(t,13))}(t),function(t){var e,n,i,r,o,a,s;t.r||(t.r=!0,E2(t,"graph"),C2(t,"graph"),_2(t,RNt),m4(t.o,"T"),fQ(PK(t.a),t.p),fQ(PK(t.f),t.a),fQ(PK(t.n),t.f),fQ(PK(t.g),t.n),fQ(PK(t.c),t.n),fQ(PK(t.i),t.c),fQ(PK(t.j),t.c),fQ(PK(t.d),t.f),fQ(PK(t.e),t.a),CU(t.p,uKt,X_t,!0,!0,!1),s=A4(a=u6(t.p,t.p,"setProperty")),e=_B(t.o),n=new sm,fQ((!e.d&&(e.d=new XO(hae,e,1)),e.d),n),yat(n,i=MB(s)),Jot(a,e,zNt),Jot(a,e=MB(s),$Nt),s=A4(a=u6(t.p,null,"getProperty")),e=_B(t.o),n=MB(s),fQ((!e.d&&(e.d=new XO(hae,e,1)),e.d),n),Jot(a,e,zNt),(o=dst(a,e=MB(s),null))&&o.Fi(),a=u6(t.p,t.wb.e,"hasProperty"),e=_B(t.o),n=new sm,fQ((!e.d&&(e.d=new XO(hae,e,1)),e.d),n),Jot(a,e,zNt),Irt(a=u6(t.p,t.p,"copyProperties"),t.p,HNt),a=u6(t.p,null,"getAllProperties"),e=_B(t.wb.P),n=_B(t.o),fQ((!e.d&&(e.d=new XO(hae,e,1)),e.d),n),i=new sm,fQ((!n.d&&(n.d=new XO(hae,n,1)),n.d),i),n=_B(t.wb.M),fQ((!e.d&&(e.d=new XO(hae,e,1)),e.d),n),(r=dst(a,e,null))&&r.Fi(),CU(t.a,Yre,cNt,!0,!1,!0),Trt(QD(a1(aK(t.a),0),18),t.k,null,BNt,0,-1,Yre,!1,!1,!0,!0,!1,!1,!1),CU(t.f,Zre,lNt,!0,!1,!0),Trt(QD(a1(aK(t.f),0),18),t.g,QD(a1(aK(t.g),0),18),"labels",0,-1,Zre,!1,!1,!0,!0,!1,!1,!1),U2(QD(a1(aK(t.f),1),34),t.wb._,KNt,null,0,1,Zre,!1,!1,!0,!1,!0,!1),CU(t.n,Jre,"ElkShape",!0,!1,!0),U2(QD(a1(aK(t.n),0),34),t.wb.t,VNt,hCt,1,1,Jre,!1,!1,!0,!1,!0,!1),U2(QD(a1(aK(t.n),1),34),t.wb.t,WNt,hCt,1,1,Jre,!1,!1,!0,!1,!0,!1),U2(QD(a1(aK(t.n),2),34),t.wb.t,"x",hCt,1,1,Jre,!1,!1,!0,!1,!0,!1),U2(QD(a1(aK(t.n),3),34),t.wb.t,"y",hCt,1,1,Jre,!1,!1,!0,!1,!0,!1),Irt(a=u6(t.n,null,"setDimensions"),t.wb.t,WNt),Irt(a,t.wb.t,VNt),Irt(a=u6(t.n,null,"setLocation"),t.wb.t,"x"),Irt(a,t.wb.t,"y"),CU(t.g,soe,gNt,!1,!1,!0),Trt(QD(a1(aK(t.g),0),18),t.f,QD(a1(aK(t.f),0),18),UNt,0,1,soe,!1,!1,!0,!1,!1,!1,!1),U2(QD(a1(aK(t.g),1),34),t.wb._,XNt,"",0,1,soe,!1,!1,!0,!1,!0,!1),CU(t.c,toe,hNt,!0,!1,!0),Trt(QD(a1(aK(t.c),0),18),t.d,QD(a1(aK(t.d),1),18),"outgoingEdges",0,-1,toe,!1,!1,!0,!1,!0,!1,!1),Trt(QD(a1(aK(t.c),1),18),t.d,QD(a1(aK(t.d),2),18),"incomingEdges",0,-1,toe,!1,!1,!0,!1,!0,!1,!1),CU(t.i,coe,mNt,!1,!1,!0),Trt(QD(a1(aK(t.i),0),18),t.j,QD(a1(aK(t.j),0),18),"ports",0,-1,coe,!1,!1,!0,!0,!1,!1,!1),Trt(QD(a1(aK(t.i),1),18),t.i,QD(a1(aK(t.i),2),18),qNt,0,-1,coe,!1,!1,!0,!0,!1,!1,!1),Trt(QD(a1(aK(t.i),2),18),t.i,QD(a1(aK(t.i),1),18),UNt,0,1,coe,!1,!1,!0,!1,!1,!1,!1),Trt(QD(a1(aK(t.i),3),18),t.d,QD(a1(aK(t.d),0),18),"containedEdges",0,-1,coe,!1,!1,!0,!0,!1,!1,!1),U2(QD(a1(aK(t.i),4),34),t.wb.e,GNt,null,0,1,coe,!0,!0,!1,!1,!0,!0),CU(t.j,uoe,wNt,!1,!1,!0),Trt(QD(a1(aK(t.j),0),18),t.i,QD(a1(aK(t.i),0),18),UNt,0,1,uoe,!1,!1,!0,!1,!1,!1,!1),CU(t.d,eoe,fNt,!1,!1,!0),Trt(QD(a1(aK(t.d),0),18),t.i,QD(a1(aK(t.i),3),18),"containingNode",0,1,eoe,!1,!1,!0,!1,!1,!1,!1),Trt(QD(a1(aK(t.d),1),18),t.c,QD(a1(aK(t.c),0),18),YNt,0,-1,eoe,!1,!1,!0,!1,!0,!1,!1),Trt(QD(a1(aK(t.d),2),18),t.c,QD(a1(aK(t.c),1),18),QNt,0,-1,eoe,!1,!1,!0,!1,!0,!1,!1),Trt(QD(a1(aK(t.d),3),18),t.e,QD(a1(aK(t.e),5),18),ZNt,0,-1,eoe,!1,!1,!0,!0,!1,!1,!1),U2(QD(a1(aK(t.d),4),34),t.wb.e,"hyperedge",null,0,1,eoe,!0,!0,!1,!1,!0,!0),U2(QD(a1(aK(t.d),5),34),t.wb.e,GNt,null,0,1,eoe,!0,!0,!1,!1,!0,!0),U2(QD(a1(aK(t.d),6),34),t.wb.e,"selfloop",null,0,1,eoe,!0,!0,!1,!1,!0,!0),U2(QD(a1(aK(t.d),7),34),t.wb.e,"connected",null,0,1,eoe,!0,!0,!1,!1,!0,!0),CU(t.b,Qre,uNt,!1,!1,!0),U2(QD(a1(aK(t.b),0),34),t.wb.t,"x",hCt,1,1,Qre,!1,!1,!0,!1,!0,!1),U2(QD(a1(aK(t.b),1),34),t.wb.t,"y",hCt,1,1,Qre,!1,!1,!0,!1,!0,!1),Irt(a=u6(t.b,null,"set"),t.wb.t,"x"),Irt(a,t.wb.t,"y"),CU(t.e,noe,dNt,!1,!1,!0),U2(QD(a1(aK(t.e),0),34),t.wb.t,"startX",null,0,1,noe,!1,!1,!0,!1,!0,!1),U2(QD(a1(aK(t.e),1),34),t.wb.t,"startY",null,0,1,noe,!1,!1,!0,!1,!0,!1),U2(QD(a1(aK(t.e),2),34),t.wb.t,"endX",null,0,1,noe,!1,!1,!0,!1,!0,!1),U2(QD(a1(aK(t.e),3),34),t.wb.t,"endY",null,0,1,noe,!1,!1,!0,!1,!0,!1),Trt(QD(a1(aK(t.e),4),18),t.b,null,JNt,0,-1,noe,!1,!1,!0,!0,!1,!1,!1),Trt(QD(a1(aK(t.e),5),18),t.d,QD(a1(aK(t.d),3),18),UNt,0,1,noe,!1,!1,!0,!1,!1,!1,!1),Trt(QD(a1(aK(t.e),6),18),t.c,null,tDt,0,1,noe,!1,!1,!0,!1,!0,!1,!1),Trt(QD(a1(aK(t.e),7),18),t.c,null,eDt,0,1,noe,!1,!1,!0,!1,!0,!1,!1),Trt(QD(a1(aK(t.e),8),18),t.e,QD(a1(aK(t.e),9),18),nDt,0,-1,noe,!1,!1,!0,!1,!0,!1,!1),Trt(QD(a1(aK(t.e),9),18),t.e,QD(a1(aK(t.e),8),18),iDt,0,-1,noe,!1,!1,!0,!1,!0,!1,!1),U2(QD(a1(aK(t.e),10),34),t.wb._,KNt,null,0,1,noe,!1,!1,!0,!1,!0,!1),Irt(a=u6(t.e,null,"setStartLocation"),t.wb.t,"x"),Irt(a,t.wb.t,"y"),Irt(a=u6(t.e,null,"setEndLocation"),t.wb.t,"x"),Irt(a,t.wb.t,"y"),CU(t.k,ozt,"ElkPropertyToValueMapEntry",!1,!1,!1),e=_B(t.o),n=new sm,fQ((!e.d&&(e.d=new XO(hae,e,1)),e.d),n),Tht(QD(a1(aK(t.k),0),34),e,"key",ozt,!1,!1,!0,!1),U2(QD(a1(aK(t.k),1),34),t.s,$Nt,null,0,1,ozt,!1,!1,!0,!1,!0,!1),QH(t.o,P9t,"IProperty",!0),QH(t.s,qFt,"PropertyValue",!0),l8(t,RNt))}(t),Prt(t),WV(sae,RNt,t),t)}function Rx(){Rx=O,gae=function(){var t,e;tvt();try{if(e=QD(tat((vE(),sae),fRt),1941))return e}catch(e){if(!TO(e=S4(e),102))throw lm(e);t=e,IF((VT(),t))}return new Kc}()}function Fx(){Fx=O,Ise=function(){var t,e;oZ();try{if(e=QD(tat((vE(),sae),KRt),2024))return e}catch(e){if(!TO(e=S4(e),102))throw lm(e);t=e,IF((VT(),t))}return new Lu}()}function zx(){var t;zx=O,jse=bce?QD(Vft((vE(),sae),KRt),1945):(WP(Ose,new Gu),WP(sce,new al),WP(cce,new ml),WP(uce,new Pl),WP(d$t,new jl),WP(Vy(Zce,1),new Al),WP(Fzt,new Nl),WP(Hzt,new Dl),WP(d$t,new zu),WP(d$t,new $u),WP(d$t,new Hu),WP(Vzt,new Bu),WP(d$t,new Ku),WP(tzt,new Vu),WP(tzt,new Wu),WP(d$t,new Uu),WP(Wzt,new Xu),WP(d$t,new qu),WP(d$t,new Yu),WP(d$t,new Qu),WP(d$t,new Zu),WP(d$t,new Ju),WP(Vy(Zce,1),new tl),WP(d$t,new el),WP(d$t,new nl),WP(tzt,new il),WP(tzt,new rl),WP(d$t,new ol),WP(qzt,new sl),WP(d$t,new cl),WP(t$t,new ul),WP(d$t,new ll),WP(d$t,new hl),WP(d$t,new fl),WP(d$t,new dl),WP(tzt,new pl),WP(tzt,new bl),WP(d$t,new gl),WP(d$t,new wl),WP(d$t,new vl),WP(d$t,new yl),WP(d$t,new xl),WP(d$t,new kl),WP(n$t,new Sl),WP(d$t,new El),WP(d$t,new Cl),WP(d$t,new _l),WP(n$t,new Ml),WP(t$t,new Tl),WP(d$t,new Ol),WP(qzt,new Il),t=QD(TO(aV((vE(),sae),KRt),586)?aV(sae,KRt):new IH,586),bce=!0,function(t){t.N||(t.N=!0,t.b=V3(t,0),M2(t.b,0),M2(t.b,1),M2(t.b,2),t.bb=V3(t,1),M2(t.bb,0),M2(t.bb,1),t.fb=V3(t,2),M2(t.fb,3),M2(t.fb,4),P2(t.fb,5),t.qb=V3(t,3),M2(t.qb,0),P2(t.qb,1),P2(t.qb,2),M2(t.qb,3),M2(t.qb,4),P2(t.qb,5),M2(t.qb,6),t.a=W3(t,4),t.c=W3(t,5),t.d=W3(t,6),t.e=W3(t,7),t.f=W3(t,8),t.g=W3(t,9),t.i=W3(t,10),t.j=W3(t,11),t.k=W3(t,12),t.n=W3(t,13),t.o=W3(t,14),t.p=W3(t,15),t.q=W3(t,16),t.s=W3(t,17),t.r=W3(t,18),t.t=W3(t,19),t.u=W3(t,20),t.v=W3(t,21),t.w=W3(t,22),t.B=W3(t,23),t.A=W3(t,24),t.C=W3(t,25),t.D=W3(t,26),t.F=W3(t,27),t.G=W3(t,28),t.H=W3(t,29),t.J=W3(t,30),t.I=W3(t,31),t.K=W3(t,32),t.M=W3(t,33),t.L=W3(t,34),t.P=W3(t,35),t.Q=W3(t,36),t.R=W3(t,37),t.S=W3(t,38),t.T=W3(t,39),t.U=W3(t,40),t.V=W3(t,41),t.X=W3(t,42),t.W=W3(t,43),t.Y=W3(t,44),t.Z=W3(t,45),t.$=W3(t,46),t._=W3(t,47),t.ab=W3(t,48),t.cb=W3(t,49),t.db=W3(t,50),t.eb=W3(t,51),t.gb=W3(t,52),t.hb=W3(t,53),t.ib=W3(t,54),t.jb=W3(t,55),t.kb=W3(t,56),t.lb=W3(t,57),t.mb=W3(t,58),t.nb=W3(t,59),t.ob=W3(t,60),t.pb=W3(t,61))}(t),function(t){var e;t.O||(t.O=!0,E2(t,"type"),C2(t,"ecore.xml.type"),_2(t,KRt),e=QD(Vft((vE(),sae),KRt),1945),fQ(PK(t.fb),t.b),CU(t.b,Ose,"AnyType",!1,!1,!0),U2(QD(a1(aK(t.b),0),34),t.wb.D,eRt,null,0,-1,Ose,!1,!1,!0,!1,!1,!1),U2(QD(a1(aK(t.b),1),34),t.wb.D,"any",null,0,-1,Ose,!0,!0,!0,!1,!1,!0),U2(QD(a1(aK(t.b),2),34),t.wb.D,"anyAttribute",null,0,-1,Ose,!1,!1,!0,!1,!1,!1),CU(t.bb,sce,qRt,!1,!1,!0),U2(QD(a1(aK(t.bb),0),34),t.gb,"data",null,0,1,sce,!1,!1,!0,!1,!0,!1),U2(QD(a1(aK(t.bb),1),34),t.gb,pDt,null,1,1,sce,!1,!1,!0,!1,!0,!1),CU(t.fb,cce,GRt,!1,!1,!0),U2(QD(a1(aK(t.fb),0),34),e.gb,"rawValue",null,0,1,cce,!0,!0,!0,!1,!0,!0),U2(QD(a1(aK(t.fb),1),34),e.a,$Nt,null,0,1,cce,!0,!0,!0,!1,!0,!0),Trt(QD(a1(aK(t.fb),2),18),t.wb.q,null,"instanceType",1,1,cce,!1,!1,!0,!1,!1,!1,!1),CU(t.qb,uce,YRt,!1,!1,!0),U2(QD(a1(aK(t.qb),0),34),t.wb.D,eRt,null,0,-1,null,!1,!1,!0,!1,!1,!1),Trt(QD(a1(aK(t.qb),1),18),t.wb.ab,null,"xMLNSPrefixMap",0,-1,null,!0,!1,!0,!0,!1,!1,!1),Trt(QD(a1(aK(t.qb),2),18),t.wb.ab,null,"xSISchemaLocation",0,-1,null,!0,!1,!0,!0,!1,!1,!1),U2(QD(a1(aK(t.qb),3),34),t.gb,"cDATA",null,0,-2,null,!0,!0,!0,!1,!1,!0),U2(QD(a1(aK(t.qb),4),34),t.gb,"comment",null,0,-2,null,!0,!0,!0,!1,!1,!0),Trt(QD(a1(aK(t.qb),5),18),t.bb,null,kFt,0,-2,null,!0,!0,!0,!0,!1,!1,!0),U2(QD(a1(aK(t.qb),6),34),t.gb,XNt,null,0,-2,null,!0,!0,!0,!1,!1,!0),QH(t.a,qFt,"AnySimpleType",!0),QH(t.c,d$t,"AnyURI",!0),QH(t.d,Vy(Zce,1),"Base64Binary",!0),QH(t.e,Yce,"Boolean",!0),QH(t.f,Fzt,"BooleanObject",!0),QH(t.g,Zce,"Byte",!0),QH(t.i,Hzt,"ByteObject",!0),QH(t.j,d$t,"Date",!0),QH(t.k,d$t,"DateTime",!0),QH(t.n,y$t,"Decimal",!0),QH(t.o,Jce,"Double",!0),QH(t.p,Vzt,"DoubleObject",!0),QH(t.q,d$t,"Duration",!0),QH(t.s,tzt,"ENTITIES",!0),QH(t.r,tzt,"ENTITIESBase",!0),QH(t.t,d$t,nFt,!0),QH(t.u,tue,"Float",!0),QH(t.v,Wzt,"FloatObject",!0),QH(t.w,d$t,"GDay",!0),QH(t.B,d$t,"GMonth",!0),QH(t.A,d$t,"GMonthDay",!0),QH(t.C,d$t,"GYear",!0),QH(t.D,d$t,"GYearMonth",!0),QH(t.F,Vy(Zce,1),"HexBinary",!0),QH(t.G,d$t,"ID",!0),QH(t.H,d$t,"IDREF",!0),QH(t.J,tzt,"IDREFS",!0),QH(t.I,tzt,"IDREFSBase",!0),QH(t.K,Gce,"Int",!0),QH(t.M,C$t,"Integer",!0),QH(t.L,qzt,"IntObject",!0),QH(t.P,d$t,"Language",!0),QH(t.Q,Qce,"Long",!0),QH(t.R,t$t,"LongObject",!0),QH(t.S,d$t,"Name",!0),QH(t.T,d$t,iFt,!0),QH(t.U,C$t,"NegativeInteger",!0),QH(t.V,d$t,dFt,!0),QH(t.X,tzt,"NMTOKENS",!0),QH(t.W,tzt,"NMTOKENSBase",!0),QH(t.Y,C$t,"NonNegativeInteger",!0),QH(t.Z,C$t,"NonPositiveInteger",!0),QH(t.$,d$t,"NormalizedString",!0),QH(t._,d$t,"NOTATION",!0),QH(t.ab,d$t,"PositiveInteger",!0),QH(t.cb,d$t,"QName",!0),QH(t.db,eue,"Short",!0),QH(t.eb,n$t,"ShortObject",!0),QH(t.gb,d$t,aEt,!0),QH(t.hb,d$t,"Time",!0),QH(t.ib,d$t,"Token",!0),QH(t.jb,eue,"UnsignedByte",!0),QH(t.kb,n$t,"UnsignedByteObject",!0),QH(t.lb,Qce,"UnsignedInt",!0),QH(t.mb,t$t,"UnsignedIntObject",!0),QH(t.nb,C$t,"UnsignedLong",!0),QH(t.ob,Gce,"UnsignedShort",!0),QH(t.pb,qzt,"UnsignedShortObject",!0),l8(t,KRt),function(t){edt(t.a,nRt,L4(Vy(d$t,1),_St,2,6,[wDt,"anySimpleType"])),edt(t.b,nRt,L4(Vy(d$t,1),_St,2,6,[wDt,"anyType",iRt,eRt])),edt(QD(a1(aK(t.b),0),34),nRt,L4(Vy(d$t,1),_St,2,6,[iRt,LRt,wDt,":mixed"])),edt(QD(a1(aK(t.b),1),34),nRt,L4(Vy(d$t,1),_St,2,6,[iRt,LRt,BRt,VRt,wDt,":1",JRt,"lax"])),edt(QD(a1(aK(t.b),2),34),nRt,L4(Vy(d$t,1),_St,2,6,[iRt,NRt,BRt,VRt,wDt,":2",JRt,"lax"])),edt(t.c,nRt,L4(Vy(d$t,1),_St,2,6,[wDt,"anyURI",HRt,RRt])),edt(t.d,nRt,L4(Vy(d$t,1),_St,2,6,[wDt,"base64Binary",HRt,RRt])),edt(t.e,nRt,L4(Vy(d$t,1),_St,2,6,[wDt,Gkt,HRt,RRt])),edt(t.f,nRt,L4(Vy(d$t,1),_St,2,6,[wDt,"boolean:Object",bRt,Gkt])),edt(t.g,nRt,L4(Vy(d$t,1),_St,2,6,[wDt,KLt])),edt(t.i,nRt,L4(Vy(d$t,1),_St,2,6,[wDt,"byte:Object",bRt,KLt])),edt(t.j,nRt,L4(Vy(d$t,1),_St,2,6,[wDt,"date",HRt,RRt])),edt(t.k,nRt,L4(Vy(d$t,1),_St,2,6,[wDt,"dateTime",HRt,RRt])),edt(t.n,nRt,L4(Vy(d$t,1),_St,2,6,[wDt,"decimal",HRt,RRt])),edt(t.o,nRt,L4(Vy(d$t,1),_St,2,6,[wDt,WLt,HRt,RRt])),edt(t.p,nRt,L4(Vy(d$t,1),_St,2,6,[wDt,"double:Object",bRt,WLt])),edt(t.q,nRt,L4(Vy(d$t,1),_St,2,6,[wDt,"duration",HRt,RRt])),edt(t.s,nRt,L4(Vy(d$t,1),_St,2,6,[wDt,"ENTITIES",bRt,tFt,eFt,"1"])),edt(t.r,nRt,L4(Vy(d$t,1),_St,2,6,[wDt,tFt,FRt,nFt])),edt(t.t,nRt,L4(Vy(d$t,1),_St,2,6,[wDt,nFt,bRt,iFt])),edt(t.u,nRt,L4(Vy(d$t,1),_St,2,6,[wDt,ULt,HRt,RRt])),edt(t.v,nRt,L4(Vy(d$t,1),_St,2,6,[wDt,"float:Object",bRt,ULt])),edt(t.w,nRt,L4(Vy(d$t,1),_St,2,6,[wDt,"gDay",HRt,RRt])),edt(t.B,nRt,L4(Vy(d$t,1),_St,2,6,[wDt,"gMonth",HRt,RRt])),edt(t.A,nRt,L4(Vy(d$t,1),_St,2,6,[wDt,"gMonthDay",HRt,RRt])),edt(t.C,nRt,L4(Vy(d$t,1),_St,2,6,[wDt,"gYear",HRt,RRt])),edt(t.D,nRt,L4(Vy(d$t,1),_St,2,6,[wDt,"gYearMonth",HRt,RRt])),edt(t.F,nRt,L4(Vy(d$t,1),_St,2,6,[wDt,"hexBinary",HRt,RRt])),edt(t.G,nRt,L4(Vy(d$t,1),_St,2,6,[wDt,"ID",bRt,iFt])),edt(t.H,nRt,L4(Vy(d$t,1),_St,2,6,[wDt,"IDREF",bRt,iFt])),edt(t.J,nRt,L4(Vy(d$t,1),_St,2,6,[wDt,"IDREFS",bRt,rFt,eFt,"1"])),edt(t.I,nRt,L4(Vy(d$t,1),_St,2,6,[wDt,rFt,FRt,"IDREF"])),edt(t.K,nRt,L4(Vy(d$t,1),_St,2,6,[wDt,XLt])),edt(t.M,nRt,L4(Vy(d$t,1),_St,2,6,[wDt,oFt])),edt(t.L,nRt,L4(Vy(d$t,1),_St,2,6,[wDt,"int:Object",bRt,XLt])),edt(t.P,nRt,L4(Vy(d$t,1),_St,2,6,[wDt,"language",bRt,aFt,sFt,cFt])),edt(t.Q,nRt,L4(Vy(d$t,1),_St,2,6,[wDt,qLt])),edt(t.R,nRt,L4(Vy(d$t,1),_St,2,6,[wDt,"long:Object",bRt,qLt])),edt(t.S,nRt,L4(Vy(d$t,1),_St,2,6,[wDt,"Name",bRt,aFt,sFt,uFt])),edt(t.T,nRt,L4(Vy(d$t,1),_St,2,6,[wDt,iFt,bRt,"Name",sFt,lFt])),edt(t.U,nRt,L4(Vy(d$t,1),_St,2,6,[wDt,"negativeInteger",bRt,hFt,fFt,"-1"])),edt(t.V,nRt,L4(Vy(d$t,1),_St,2,6,[wDt,dFt,bRt,aFt,sFt,"\\c+"])),edt(t.X,nRt,L4(Vy(d$t,1),_St,2,6,[wDt,"NMTOKENS",bRt,pFt,eFt,"1"])),edt(t.W,nRt,L4(Vy(d$t,1),_St,2,6,[wDt,pFt,FRt,dFt])),edt(t.Y,nRt,L4(Vy(d$t,1),_St,2,6,[wDt,bFt,bRt,oFt,gFt,"0"])),edt(t.Z,nRt,L4(Vy(d$t,1),_St,2,6,[wDt,hFt,bRt,oFt,fFt,"0"])),edt(t.$,nRt,L4(Vy(d$t,1),_St,2,6,[wDt,mFt,bRt,Qkt,HRt,"replace"])),edt(t._,nRt,L4(Vy(d$t,1),_St,2,6,[wDt,"NOTATION",HRt,RRt])),edt(t.ab,nRt,L4(Vy(d$t,1),_St,2,6,[wDt,"positiveInteger",bRt,bFt,gFt,"1"])),edt(t.bb,nRt,L4(Vy(d$t,1),_St,2,6,[wDt,"processingInstruction_._type",iRt,"empty"])),edt(QD(a1(aK(t.bb),0),34),nRt,L4(Vy(d$t,1),_St,2,6,[iRt,ARt,wDt,"data"])),edt(QD(a1(aK(t.bb),1),34),nRt,L4(Vy(d$t,1),_St,2,6,[iRt,ARt,wDt,pDt])),edt(t.cb,nRt,L4(Vy(d$t,1),_St,2,6,[wDt,"QName",HRt,RRt])),edt(t.db,nRt,L4(Vy(d$t,1),_St,2,6,[wDt,GLt])),edt(t.eb,nRt,L4(Vy(d$t,1),_St,2,6,[wDt,"short:Object",bRt,GLt])),edt(t.fb,nRt,L4(Vy(d$t,1),_St,2,6,[wDt,"simpleAnyType",iRt,jRt])),edt(QD(a1(aK(t.fb),0),34),nRt,L4(Vy(d$t,1),_St,2,6,[wDt,":3",iRt,jRt])),edt(QD(a1(aK(t.fb),1),34),nRt,L4(Vy(d$t,1),_St,2,6,[wDt,":4",iRt,jRt])),edt(QD(a1(aK(t.fb),2),18),nRt,L4(Vy(d$t,1),_St,2,6,[wDt,":5",iRt,jRt])),edt(t.gb,nRt,L4(Vy(d$t,1),_St,2,6,[wDt,Qkt,HRt,"preserve"])),edt(t.hb,nRt,L4(Vy(d$t,1),_St,2,6,[wDt,"time",HRt,RRt])),edt(t.ib,nRt,L4(Vy(d$t,1),_St,2,6,[wDt,aFt,bRt,mFt,HRt,RRt])),edt(t.jb,nRt,L4(Vy(d$t,1),_St,2,6,[wDt,wFt,fFt,"255",gFt,"0"])),edt(t.kb,nRt,L4(Vy(d$t,1),_St,2,6,[wDt,"unsignedByte:Object",bRt,wFt])),edt(t.lb,nRt,L4(Vy(d$t,1),_St,2,6,[wDt,vFt,fFt,"4294967295",gFt,"0"])),edt(t.mb,nRt,L4(Vy(d$t,1),_St,2,6,[wDt,"unsignedInt:Object",bRt,vFt])),edt(t.nb,nRt,L4(Vy(d$t,1),_St,2,6,[wDt,"unsignedLong",bRt,bFt,fFt,yFt,gFt,"0"])),edt(t.ob,nRt,L4(Vy(d$t,1),_St,2,6,[wDt,xFt,fFt,"65535",gFt,"0"])),edt(t.pb,nRt,L4(Vy(d$t,1),_St,2,6,[wDt,"unsignedShort:Object",bRt,xFt])),edt(t.qb,nRt,L4(Vy(d$t,1),_St,2,6,[wDt,"",iRt,eRt])),edt(QD(a1(aK(t.qb),0),34),nRt,L4(Vy(d$t,1),_St,2,6,[iRt,LRt,wDt,":mixed"])),edt(QD(a1(aK(t.qb),1),18),nRt,L4(Vy(d$t,1),_St,2,6,[iRt,ARt,wDt,"xmlns:prefix"])),edt(QD(a1(aK(t.qb),2),18),nRt,L4(Vy(d$t,1),_St,2,6,[iRt,ARt,wDt,"xsi:schemaLocation"])),edt(QD(a1(aK(t.qb),3),34),nRt,L4(Vy(d$t,1),_St,2,6,[iRt,DRt,wDt,"cDATA",zRt,$Rt])),edt(QD(a1(aK(t.qb),4),34),nRt,L4(Vy(d$t,1),_St,2,6,[iRt,DRt,wDt,"comment",zRt,$Rt])),edt(QD(a1(aK(t.qb),5),18),nRt,L4(Vy(d$t,1),_St,2,6,[iRt,DRt,wDt,kFt,zRt,$Rt])),edt(QD(a1(aK(t.qb),6),34),nRt,L4(Vy(d$t,1),_St,2,6,[iRt,DRt,wDt,XNt,zRt,$Rt]))}(t))}(t),DH((yE(),bae),t,new Fu),Prt(t),WV(sae,KRt,t),t)}function $x(){$x=O,Poe=l0()}function Hx(){throw lm(new Dm)}function Bx(){throw lm(new Dm)}function Kx(){throw lm(new Dm)}function Vx(){throw lm(new Dm)}function Wx(){throw lm(new Dm)}function Ux(){throw lm(new Dm)}function Xx(t){this.a=new xS(t)}function qx(t){Cxt(),function(t,e){var n,i,r,o,a,s,c,u;if(n=0,a=0,o=e.length,s=null,u=new jy,a1?UW(VF(e.a[1],32),WW(e.a[0],uCt)):WW(e.a[0],uCt),YU(i9(e.e,n))))}(t,new PT(c));for(t.d=u.a.length,r=0;r0}(QD(t,33))?FI(i,(Zet(),C9t))||FI(i,_9t):FI(i,(Zet(),C9t));if(TO(t,352))return FI(i,(Zet(),S9t));if(TO(t,186))return FI(i,(Zet(),M9t));if(TO(t,354))return FI(i,(Zet(),E9t))}return!0}(t,e)}function sk(t,e,n){t.splice(e,n)}function ck(t){t.c?vbt(t):ybt(t)}function uk(t){this.a=0,this.b=t}function lk(){this.a=new qdt(v6t)}function hk(){this.b=new qdt(o5t)}function fk(){this.b=new qdt(l7t)}function dk(){this.b=new qdt(l7t)}function pk(){throw lm(new Dm)}function bk(){throw lm(new Dm)}function gk(){throw lm(new Dm)}function mk(){throw lm(new Dm)}function wk(){throw lm(new Dm)}function vk(){throw lm(new Dm)}function yk(){throw lm(new Dm)}function xk(){throw lm(new Dm)}function kk(){throw lm(new Dm)}function Sk(){throw lm(new Dm)}function Ek(t){this.a=new Ck(t)}function Ck(t){!function(t,e,n){var i;t.b=e,t.a=n,i=512==(512&t.a)?new Jw:new Ll,t.c=function(t,e,n){var i,r,o;if(t.e=n,t.d=0,t.b=0,t.f=1,t.i=e,16==(16&t.e)&&(t.i=function(t){var e,n,i,r,o;for(i=t.length,e=new Oy,o=0;oe&&e0)){if(o=-1,32==XH(h.c,0)){if(f=l[0],JZ(e,l),l[0]>f)continue}else if(RK(e,h.c,l[0])){l[0]+=h.c.length;continue}return 0}if(o<0&&h.a&&(o=u,a=l[0],r=0),o>=0){if(c=h.b,u==o&&0==(c-=r++))return 0;if(!Dxt(e,l,h,c,s)){u=o-1,l[0]=a;continue}}else if(o=-1,!Dxt(e,l,h,0,s))return 0}return function(t,e){var i,r,o,a,s,c;if(0==t.e&&t.p>0&&(t.p=-(t.p-1)),t.p>nEt&&JX(e,t.p-_Et),s=e.q.getDate(),vV(e,1),t.k>=0&&function(t,e){var n;n=t.q.getHours(),t.q.setMonth(e),Owt(t,n)}(e,t.k),t.c>=0?vV(e,t.c):t.k>=0?(r=35-new x5(e.q.getFullYear()-_Et,e.q.getMonth(),35).q.getDate(),vV(e,n.Math.min(r,s))):vV(e,s),t.f<0&&(t.f=e.q.getHours()),t.b>0&&t.f<12&&(t.f+=12),function(t,e){t.q.setHours(e),Owt(t,e)}(e,24==t.f&&t.g?0:t.f),t.j>=0&&function(t,e){var n;n=t.q.getHours()+(e/60|0),t.q.setMinutes(e),Owt(t,n)}(e,t.j),t.n>=0&&function(t,e){var n;n=t.q.getHours()+(e/3600|0),t.q.setSeconds(e),Owt(t,n)}(e,t.n),t.i>=0&&EP(e,n9(i9(Kot(R3(e.q.getTime()),fEt),fEt),t.i)),t.a&&(JX(o=new sS,o.q.getFullYear()-_Et-80),AE(R3(e.q.getTime()),R3(o.q.getTime()))&&JX(e,o.q.getFullYear()-_Et+100)),t.d>=0)if(-1==t.c)(i=(7+t.d-e.q.getDay())%7)>3&&(i-=7),c=e.q.getMonth(),vV(e,e.q.getDate()+i),e.q.getMonth()!=c&&vV(e,e.q.getDate()+(i>0?-7:7));else if(e.q.getDay()!=t.d)return!1;return t.o>nEt&&(a=e.q.getTimezoneOffset(),EP(e,n9(R3(e.q.getTime()),60*(t.o-a)*fEt))),!0}(s,i)?l[0]:0}(t,e,o=new x5((r=new sS).q.getFullYear()-_Et,r.q.getMonth(),r.q.getDate())))||i0}function AE(t,e){return k8(t,e)<0}function NE(t,e){return t.a.get(e)}function DE(t,e){return Mz(t.e,e)}function LE(t){return wH(t),!1}function RE(t){DW.call(this,t,21)}function FE(t,e){wV.call(this,t,e)}function zE(t,e){Uk.call(this,t,e)}function $E(t,e){Uk.call(this,t,e)}function HE(t){Y$(),iD.call(this,t)}function BE(t,e){tF(t,t.length,e)}function KE(t,e){o$(t,t.length,e)}function VE(t,e,n){t.splice(e,0,n)}function WE(t,e){this.d=t,this.e=e}function UE(t,e){this.b=t,this.a=e}function XE(t,e){this.b=t,this.a=e}function qE(t,e){this.b=t,this.a=e}function GE(t,e){this.a=t,this.b=e}function YE(t,e){this.a=t,this.b=e}function QE(t,e){this.a=t,this.b=e}function ZE(t,e){this.a=t,this.b=e}function JE(t,e){this.a=t,this.b=e}function tC(t,e){this.b=t,this.a=e}function eC(t,e){this.b=t,this.a=e}function nC(t,e){Uk.call(this,t,e)}function iC(t,e){Uk.call(this,t,e)}function rC(t,e){Uk.call(this,t,e)}function oC(t,e){Uk.call(this,t,e)}function aC(t,e){Uk.call(this,t,e)}function sC(t,e){Uk.call(this,t,e)}function cC(t,e){Uk.call(this,t,e)}function uC(t,e){Uk.call(this,t,e)}function lC(t,e){Uk.call(this,t,e)}function hC(t,e){Uk.call(this,t,e)}function fC(t,e){Uk.call(this,t,e)}function dC(t,e){Uk.call(this,t,e)}function pC(t,e){Uk.call(this,t,e)}function bC(t,e){Uk.call(this,t,e)}function gC(t,e){Uk.call(this,t,e)}function mC(t,e){Uk.call(this,t,e)}function wC(t,e){Uk.call(this,t,e)}function vC(t,e){Uk.call(this,t,e)}function yC(t,e){this.a=t,this.b=e}function xC(t,e){this.a=t,this.b=e}function kC(t,e){this.a=t,this.b=e}function SC(t,e){this.a=t,this.b=e}function EC(t,e){this.a=t,this.b=e}function CC(t,e){this.a=t,this.b=e}function _C(t,e){this.a=t,this.b=e}function MC(t,e){this.a=t,this.b=e}function PC(t,e){this.a=t,this.b=e}function TC(t,e){this.b=t,this.a=e}function OC(t,e){this.b=t,this.a=e}function IC(t,e){this.b=t,this.a=e}function jC(t,e){this.b=t,this.a=e}function AC(t,e){this.c=t,this.d=e}function NC(t,e){this.e=t,this.d=e}function DC(t,e){this.a=t,this.b=e}function LC(t,e){this.b=e,this.c=t}function RC(t,e){Uk.call(this,t,e)}function FC(t,e){Uk.call(this,t,e)}function zC(t,e){Uk.call(this,t,e)}function $C(t,e){Uk.call(this,t,e)}function HC(t,e){Uk.call(this,t,e)}function BC(t,e){Uk.call(this,t,e)}function KC(t,e){Uk.call(this,t,e)}function VC(t,e){Uk.call(this,t,e)}function WC(t,e){Uk.call(this,t,e)}function UC(t,e){Uk.call(this,t,e)}function XC(t,e){Uk.call(this,t,e)}function qC(t,e){Uk.call(this,t,e)}function GC(t,e){Uk.call(this,t,e)}function YC(t,e){Uk.call(this,t,e)}function QC(t,e){Uk.call(this,t,e)}function ZC(t,e){Uk.call(this,t,e)}function JC(t,e){Uk.call(this,t,e)}function t_(t,e){Uk.call(this,t,e)}function e_(t,e){Uk.call(this,t,e)}function n_(t,e){Uk.call(this,t,e)}function i_(t,e){Uk.call(this,t,e)}function r_(t,e){Uk.call(this,t,e)}function o_(t,e){Uk.call(this,t,e)}function a_(t,e){Uk.call(this,t,e)}function s_(t,e){Uk.call(this,t,e)}function c_(t,e){Uk.call(this,t,e)}function u_(t,e){Uk.call(this,t,e)}function l_(t,e){Uk.call(this,t,e)}function h_(t,e){Uk.call(this,t,e)}function f_(t,e){Uk.call(this,t,e)}function d_(t,e){Uk.call(this,t,e)}function p_(t,e){Uk.call(this,t,e)}function b_(t,e){Uk.call(this,t,e)}function g_(t,e){Uk.call(this,t,e)}function m_(t,e){this.b=t,this.a=e}function w_(t,e){this.a=t,this.b=e}function v_(t,e){this.a=t,this.b=e}function y_(t,e){this.a=t,this.b=e}function x_(t,e){this.a=t,this.b=e}function k_(t,e){Uk.call(this,t,e)}function S_(t,e){Uk.call(this,t,e)}function E_(t,e){this.b=t,this.d=e}function C_(t,e){Uk.call(this,t,e)}function __(t,e){Uk.call(this,t,e)}function M_(t,e){this.a=t,this.b=e}function P_(t,e){this.a=t,this.b=e}function T_(t,e){Uk.call(this,t,e)}function O_(t,e){Uk.call(this,t,e)}function I_(t,e){Uk.call(this,t,e)}function j_(t,e){Uk.call(this,t,e)}function A_(t,e){Uk.call(this,t,e)}function N_(t,e){Uk.call(this,t,e)}function D_(t,e){Uk.call(this,t,e)}function L_(t,e){Uk.call(this,t,e)}function R_(t,e){Uk.call(this,t,e)}function F_(t,e){Uk.call(this,t,e)}function z_(t,e){Uk.call(this,t,e)}function $_(t,e){Uk.call(this,t,e)}function H_(t,e){Uk.call(this,t,e)}function B_(t,e){Uk.call(this,t,e)}function K_(t,e){Uk.call(this,t,e)}function V_(t,e){Uk.call(this,t,e)}function W_(t,e){return FI(t.g,e)}function U_(t,e){Uk.call(this,t,e)}function X_(t,e){Uk.call(this,t,e)}function q_(t,e){this.a=t,this.b=e}function G_(t,e){this.a=t,this.b=e}function Y_(t,e){this.a=t,this.b=e}function Q_(t,e){Uk.call(this,t,e)}function Z_(t,e){Uk.call(this,t,e)}function J_(t,e){Uk.call(this,t,e)}function tM(t,e){Uk.call(this,t,e)}function eM(t,e){Uk.call(this,t,e)}function nM(t,e){Uk.call(this,t,e)}function iM(t,e){Uk.call(this,t,e)}function rM(t,e){Uk.call(this,t,e)}function oM(t,e){Uk.call(this,t,e)}function aM(t,e){Uk.call(this,t,e)}function sM(t,e){Uk.call(this,t,e)}function cM(t,e){Uk.call(this,t,e)}function uM(t,e){Uk.call(this,t,e)}function lM(t,e){Uk.call(this,t,e)}function hM(t,e){Uk.call(this,t,e)}function fM(t,e){Uk.call(this,t,e)}function dM(t,e){this.a=t,this.b=e}function pM(t,e){this.a=t,this.b=e}function bM(t,e){this.a=t,this.b=e}function gM(t,e){this.a=t,this.b=e}function mM(t,e){this.a=t,this.b=e}function wM(t,e){this.a=t,this.b=e}function vM(t,e){this.a=t,this.b=e}function yM(t,e){Uk.call(this,t,e)}function xM(t,e){this.a=t,this.b=e}function kM(t,e){this.a=t,this.b=e}function SM(t,e){this.a=t,this.b=e}function EM(t,e){this.a=t,this.b=e}function CM(t,e){this.a=t,this.b=e}function _M(t,e){this.a=t,this.b=e}function MM(t,e){this.b=t,this.a=e}function PM(t,e){this.b=t,this.a=e}function TM(t,e){this.b=t,this.a=e}function OM(t,e){this.b=t,this.a=e}function IM(t,e){this.a=t,this.b=e}function jM(t,e){this.a=t,this.b=e}function AM(t,e){!function(t,e){if(TO(e,239))return function(t,e){var n;if(null==(n=m1(t.i,e)))throw lm(new ly("Node did not exist in input."));return f3(e,n),null}(t,QD(e,33));if(TO(e,186))return function(t,e){var n;if(null==(n=H$(t.k,e)))throw lm(new ly("Port did not exist in input."));return f3(e,n),null}(t,QD(e,118));if(TO(e,354))return function(t,e){return f3(e,H$(t.f,e)),null}(t,QD(e,137));if(TO(e,352))return function(t,e){var n,i,r,o,a,s;if(!(a=QD(H$(t.c,e),183)))throw lm(new ly("Edge did not exist in input."));return i=ret(a),!_k((!e.a&&(e.a=new vz(noe,e,6,6)),e.a))&&(n=new RD(t,i,s=new _f),function(t,e){!function(t,e){var n;for(n=0;t.e!=t.i.gc();)uR(e,fnt(t),g7(n)),n!=Jkt&&++n}(new UO(t),e)}((!e.a&&(e.a=new vz(noe,e,6,6)),e.a),n),IJ(a,ZNt,s)),UY(e,(Ikt(),Ute))&&!(!(r=QD(Eft(e,Ute),74))||pH(r))&&(qq(r,new vg(o=new _f)),IJ(a,"junctionPoints",o)),NL(a,"container",EV(e).k),null}(t,QD(e,79));if(e)return null;throw lm(new Yv(cDt+Ust(new ay(L4(Vy(qFt,1),oSt,1,5,[e])))))}(t.a,QD(e,56))}function NM(t,e){!function(t,e){bL(),nL(t,new vM(e,g7(e.e.c.length+e.g.c.length)))}(t.a,QD(e,11))}function DM(){return $y(),new R$t}function LM(){dW(),this.b=new Ym}function RM(){kpt(),this.a=new Ym}function FM(){cW(),pF.call(this)}function zM(t,e){Uk.call(this,t,e)}function $M(t,e){this.a=t,this.b=e}function HM(t,e){this.a=t,this.b=e}function BM(t,e){this.a=t,this.b=e}function KM(t,e){this.a=t,this.b=e}function VM(t,e){this.a=t,this.b=e}function WM(t,e){this.a=t,this.b=e}function UM(t,e){this.d=t,this.b=e}function XM(t,e){this.d=t,this.e=e}function qM(t,e){this.f=t,this.c=e}function GM(t,e){this.b=t,this.c=e}function YM(t,e){this.i=t,this.g=e}function QM(t,e){this.e=t,this.a=e}function ZM(t,e){this.a=t,this.b=e}function JM(t,e){t.i=null,J0(t,e)}function tP(t,e){return ytt(t.a,e)}function eP(t){return ktt(t.c,t.b)}function nP(t){return t?t.dd():null}function iP(t){return null==t?null:t}function rP(t){return typeof t===Gkt}function oP(t){return typeof t===Ykt}function aP(t){return typeof t===Qkt}function sP(t,e){return t.Hd().Xb(e)}function cP(t,e){return function(t,e){for(C$(e);t.Ob();)if(!f4(QD(t.Pb(),10)))return!1;return!0}(t.Kc(),e)}function uP(t,e){return 0==k8(t,e)}function lP(t,e){return 0!=k8(t,e)}function hP(t){return""+(wH(t),t)}function fP(t,e){return t.substr(e)}function dP(t){return j9(t),t.d.gc()}function pP(t){return function(t,e){var n,i,r;for(n=new md(t.a.a);n.ae?1:0}function iO(t,e){return k8(t,e)>0?t:e}function rO(t,e,n){return{l:t,m:e,h:n}}function oO(t,e){null!=t.a&&NM(e,t.a)}function aO(t){t.a=new j,t.c=new j}function sO(t){this.b=t,this.a=new im}function cO(t){this.b=new ee,this.a=t}function uO(t){cN.call(this),this.a=t}function lO(){zE.call(this,"Range",2)}function hO(){Mot(),this.a=new qdt(cWt)}function fO(t,e,n){return Htt(e,n,t.c)}function dO(t){return new Y_(t.c,t.d)}function pO(t){return new Y_(t.c,t.d)}function bO(t){return new Y_(t.a,t.b)}function gO(t,e){return function(t,e,n){var i,r,o,a,s,c,u,l,h;for(!n&&(n=function(t){var e;return(e=new m).a=t,e.b=function(t){var e;return 0==t?"Etc/GMT":(t<0?(t=-t,e="Etc/GMT-"):e="Etc/GMT+",e+qZ(t))}(t),e.c=YY(d$t,_St,2,2,6,1),e.c[0]=j2(t),e.c[1]=j2(t),e}(e.q.getTimezoneOffset())),r=6e4*(e.q.getTimezoneOffset()-n.a),c=s=new dA(n9(R3(e.q.getTime()),r)),s.q.getTimezoneOffset()!=e.q.getTimezoneOffset()&&(r>0?r-=864e5:r+=864e5,c=new dA(n9(R3(e.q.getTime()),r))),l=new jy,u=t.a.length,o=0;o=97&&i<=122||i>=65&&i<=90){for(a=o+1;a=u)throw lm(new Yv("Missing trailing '"));a+11)throw lm(new Yv(URt));for(l=mpt(t.e.Tg(),e),i=QD(t.g,119),a=0;a0),o=QD(u.a.Xb(u.c=--u.b),17);o!=i&&u.b>0;)t.a[o.p]=!0,t.a[i.p]=!0,_j(u.b>0),o=QD(u.a.Xb(u.c=--u.b),17);u.b>0&&lH(u)}}(t,e,n),n}function jO(t,e,n){t.a=1502^e,t.b=n^SCt}function AO(t,e,n){return t.a[e.g][n.g]}function NO(t,e){return t.a[e.c.p][e.p]}function DO(t,e){return t.e[e.c.p][e.p]}function LO(t,e){return t.c[e.c.p][e.p]}function RO(t,e){return t.j[e.p]=function(t){var e,n,i,r;for(e=0,n=0,r=new md(t.j);r.a1||n>1)return 2;return e+n==1?2:0}(e)}function FO(t,e){return t.a*=e,t.b*=e,t}function zO(t,e,n){return L$(t.g,e,n),n}function $O(t){t.a=QD(K3(t.b.a,4),126)}function HO(t){t.a=QD(K3(t.b.a,4),126)}function BO(t){DK(t,yDt),Pdt(t,function(t){var e,n,i,r,o;switch(DK(t,yDt),(!t.b&&(t.b=new IN(toe,t,4,7)),t.b).i+(!t.c&&(t.c=new IN(toe,t,5,8)),t.c).i){case 0:throw lm(new Yv("The edge must have at least one source or target."));case 1:return 0==(!t.b&&(t.b=new IN(toe,t,4,7)),t.b).i?TV(ost(QD(a1((!t.c&&(t.c=new IN(toe,t,5,8)),t.c),0),82))):TV(ost(QD(a1((!t.b&&(t.b=new IN(toe,t,4,7)),t.b),0),82)))}if(1==(!t.b&&(t.b=new IN(toe,t,4,7)),t.b).i&&1==(!t.c&&(t.c=new IN(toe,t,5,8)),t.c).i){if(r=ost(QD(a1((!t.b&&(t.b=new IN(toe,t,4,7)),t.b),0),82)),o=ost(QD(a1((!t.c&&(t.c=new IN(toe,t,5,8)),t.c),0),82)),TV(r)==TV(o))return TV(r);if(r==TV(o))return r;if(o==TV(r))return o}for(e=ost(QD(kG(i=qz(e0(L4(Vy(ZFt,1),oSt,20,0,[(!t.b&&(t.b=new IN(toe,t,4,7)),t.b),(!t.c&&(t.c=new IN(toe,t,5,8)),t.c)])))),82));Qht(i);)if((n=ost(QD(kG(i),82)))!=e&&!qJ(n,e))if(TV(n)==TV(e))e=TV(n);else if(!(e=qft(e,n)))return null;return e}(t))}function KO(){KO=O,B$t=new Iv(null)}function VO(){(VO=O)(),q$t=new W}function WO(){this.Bb|=256,this.Bb|=512}function UO(t){this.i=t,this.f=this.i.j}function XO(t,e,n){EL.call(this,t,e,n)}function qO(t,e,n){XO.call(this,t,e,n)}function GO(t,e,n){XO.call(this,t,e,n)}function YO(t,e,n){qO.call(this,t,e,n)}function QO(t,e,n){EL.call(this,t,e,n)}function ZO(t,e,n){EL.call(this,t,e,n)}function JO(t,e,n){TL.call(this,t,e,n)}function tI(t,e,n){TL.call(this,t,e,n)}function eI(t,e,n){JO.call(this,t,e,n)}function nI(t,e,n){QO.call(this,t,e,n)}function iI(t,e){this.a=t,nS.call(this,e)}function rI(t,e){this.a=t,by.call(this,e)}function oI(t,e){this.a=t,by.call(this,e)}function aI(t,e){this.a=t,by.call(this,e)}function sI(t){this.a=t,cf.call(this,t.d)}function cI(t){this.c=t,this.a=this.c.a}function uI(t,e){this.a=e,by.call(this,t)}function lI(t,e){this.a=e,hq.call(this,t)}function hI(t,e){this.a=t,hq.call(this,e)}function fI(t,e){return function(t,e,n){try{!function(t,e,n){if(C$(e),n.Ob())for(xP(e,j$(n.Pb()));n.Ob();)xP(e,t.a),xP(e,j$(n.Pb()))}(t,e,n)}catch(t){throw TO(t=S4(t),597)?lm(new iG(t)):lm(t)}return e}(t,new Iy,e).a}function dI(t,e){return C$(e),new pI(t,e)}function pI(t,e){this.a=e,aS.call(this,t)}function bI(t){this.b=t,this.a=this.b.a.e}function gI(t){t.b.Qb(),--t.d.f.d,cF(t.d)}function mI(t){Zh.call(this,QD(C$(t),35))}function wI(t){Zh.call(this,QD(C$(t),35))}function vI(){Uk.call(this,"INSTANCE",0)}function yI(t){if(!t)throw lm(new jm)}function xI(t){if(!t)throw lm(new Am)}function kI(t){if(!t)throw lm(new Fm)}function SI(){SI=O,SE(),xse=new Rh}function EI(){EI=O,Nzt=!1,Dzt=!0}function CI(t){td.call(this,(wH(t),t))}function _I(t){td.call(this,(wH(t),t))}function MI(t){hd.call(this,t),this.a=t}function PI(t){fd.call(this,t),this.a=t}function TI(t){Ny.call(this,t),this.a=t}function OI(){kO(this),KB(this),this._d()}function II(t,e){this.a=e,aS.call(this,t)}function jI(t,e){return new Eut(t.a,t.b,e)}function AI(t,e){return t.lastIndexOf(e)}function NI(t,e,n){return t.indexOf(e,n)}function DI(t){return null==t?cSt:T9(t)}function LI(t){return null!=t.a?t.a:null}function RI(t,e){return null!=hV(t.a,e)}function FI(t,e){return!!e&&t.b[e.g]==e}function zI(t){return t.$H||(t.$H=++xHt)}function $I(t,e){return nL(e.a,t.a),t.a}function HI(t,e){return nL(e.b,t.a),t.a}function BI(t,e){return nL(e.a,t.a),t.a}function KI(t){return _j(null!=t.a),t.a}function VI(t){Cd.call(this,new nQ(t))}function WI(t,e){Cet.call(this,t,e,null)}function UI(t){this.a=t,ld.call(this,t)}function XI(){XI=O,GBt=new zA(j_t,0)}function qI(t,e){return++t.b,nL(t.a,e)}function GI(t,e){return++t.b,cZ(t.a,e)}function YI(t,e){return QD($G(t.b,e),15)}function QI(t){return JT(t.a)||JT(t.b)}function ZI(t,e,n){return AX(t,e,n,t.c)}function JI(t,e,n){QD(SZ(t,e),21).Fc(n)}function tj(t,e){xE(),this.a=t,this.b=e}function ej(t,e){kE(),this.b=t,this.c=e}function nj(t,e){gF(),this.f=e,this.d=t}function ij(t,e){VG(e,t),this.d=t,this.c=e}function rj(t){var e;e=t.a,t.a=t.b,t.b=e}function oj(t,e){return new NN(t,t.gc(),e)}function aj(t){this.d=t,UO.call(this,t)}function sj(t){this.c=t,UO.call(this,t)}function cj(t){this.c=t,aj.call(this,t)}function uj(){ZS(),this.b=new Kp(this)}function lj(t){return m0(t,qSt),new wY(t)}function hj(t){return jK(),parseInt(t)||-1}function fj(t,e,n){return t.substr(e,n-e)}function dj(t,e,n){return NI(t,wst(e),n)}function pj(t){return r$(t.c,t.c.length)}function bj(t){return null!=t.f?t.f:""+t.g}function gj(t){return _j(0!=t.b),t.a.a.c}function mj(t){return _j(0!=t.b),t.c.b.c}function wj(t){TO(t,150)&&QD(t,150).Gh()}function vj(t){return t.b=QD($B(t.a),42)}function yj(t){RS(),this.b=t,this.a=!0}function xj(t){FS(),this.b=t,this.a=!0}function kj(t){t.d=new Mj(t),t.e=new rm}function Sj(t){if(!t)throw lm(new Lm)}function Ej(t){if(!t)throw lm(new jm)}function Cj(t){if(!t)throw lm(new Am)}function _j(t){if(!t)throw lm(new Fm)}function Mj(t){cL.call(this,t,null,null)}function Pj(){Uk.call(this,"POLYOMINO",0)}function Tj(t,e,n,i){AF.call(this,t,e,n,i)}function Oj(t,e){return!!t.q&&Mz(t.q,e)}function Ij(t,e,n){t.Zc(e).Rb(n)}function jj(t,e,n){return t.a+=e,t.b+=n,t}function Aj(t,e,n){return t.a*=e,t.b*=n,t}function Nj(t,e,n){return t.a-=e,t.b-=n,t}function Dj(t,e){return t.a=e.a,t.b=e.b,t}function Lj(t){return t.a=-t.a,t.b=-t.b,t}function Rj(t){this.c=t,this.a=1,this.b=1}function Fj(t){this.c=t,N1(t,0),D1(t,0)}function zj(t){CS.call(this),o0(this,t)}function $j(t){pkt(),um(this),this.mf(t)}function Hj(t,e){xE(),tj.call(this,t,e)}function Bj(t,e){kE(),ej.call(this,t,e)}function Kj(t,e){kE(),ej.call(this,t,e)}function Vj(t,e){kE(),Bj.call(this,t,e)}function Wj(t,e,n){xQ.call(this,t,e,n,2)}function Uj(t,e){qT(),FR.call(this,t,e)}function Xj(t,e){qT(),Uj.call(this,t,e)}function qj(t,e){qT(),Uj.call(this,t,e)}function Gj(t,e){qT(),qj.call(this,t,e)}function Yj(t,e){qT(),FR.call(this,t,e)}function Qj(t,e){qT(),Yj.call(this,t,e)}function Zj(t,e){qT(),FR.call(this,t,e)}function Jj(t,e,n){return Ovt(MZ(t,e),n)}function tA(t,e){return P8(t.e,QD(e,49))}function eA(t,e){e.$modCount=t.$modCount}function nA(){nA=O,h6t=new Og("root")}function iA(){iA=O,Aoe=new Rw,new Fw}function rA(){this.a=new JK,this.b=new JK}function oA(){C0.call(this),this.Bb|=rCt}function aA(){Uk.call(this,"GROW_TREE",0)}function sA(t){return null==t?null:function(t){var e,n,i,r,o,a,s,c,u,l,h,f,d,p,b;if(twt(),null==t)return null;if(0==(h=8*t.length))return"";for(f=h/24|0,o=null,o=YY(qce,hEt,25,4*(0!=(s=h%24)?f+1:f),15,1),u=0,l=0,e=0,n=0,i=0,a=0,r=0,c=0;c>24,u=(3&e)<<24>>24,d=0==(-128&e)?e>>2<<24>>24:(e>>2^192)<<24>>24,p=0==(-128&n)?n>>4<<24>>24:(n>>4^240)<<24>>24,b=0==(-128&(i=t[r++]))?i>>6<<24>>24:(i>>6^252)<<24>>24,o[a++]=hce[d],o[a++]=hce[p|u<<4],o[a++]=hce[l<<2|b],o[a++]=hce[63&i];return 8==s?(u=(3&(e=t[r]))<<24>>24,d=0==(-128&e)?e>>2<<24>>24:(e>>2^192)<<24>>24,o[a++]=hce[d],o[a++]=hce[u<<4],o[a++]=61,o[a++]=61):16==s&&(e=t[r],l=(15&(n=t[r+1]))<<24>>24,u=(3&e)<<24>>24,d=0==(-128&e)?e>>2<<24>>24:(e>>2^192)<<24>>24,p=0==(-128&n)?n>>4<<24>>24:(n>>4^240)<<24>>24,o[a++]=hce[d],o[a++]=hce[p|u<<4],o[a++]=hce[l<<2],o[a++]=61),Ytt(o,0,o.length)}(t)}function cA(t){return null==t?null:function(t){var e,n,i,r;if(Sbt(),null==t)return null;for(i=t.length,e=YY(qce,hEt,25,2*i,15,1),n=0;n>4],e[2*n+1]=dce[15&r];return Ytt(e,0,e.length)}(t)}function uA(t){null==t.o&&function(t){if(t.pe()){var e=t.c;return e.qe()?t.o="["+e.n:e.pe()?t.o="["+e.ne():t.o="[L"+e.ne()+";",t.b=e.me()+"[]",void(t.k=e.oe()+"[]")}var n=t.j,i=t.d;i=i.split("/"),t.o=Gtt(".",[n,Gtt("$",i)]),t.b=Gtt(".",[n,Gtt(".",i)]),t.k=i[i.length-1]}(t)}function lA(t){return YL(null==t||rP(t)),t}function hA(t){return YL(null==t||oP(t)),t}function fA(t){return YL(null==t||aP(t)),t}function dA(t){this.q=new n.Date(YU(t))}function pA(t,e){this.c=t,Xk.call(this,t,e)}function bA(t,e){this.a=t,pA.call(this,t,e)}function gA(t,e){this.d=t,qf(this),this.b=e}function mA(t,e){tQ.call(this,t),this.a=e}function wA(t,e){tQ.call(this,t),this.a=e}function vA(t){htt.call(this,0,0),this.f=t}function yA(t,e,n){gY.call(this,t,e,n,null)}function xA(t,e,n){gY.call(this,t,e,n,null)}function kA(t,e){return QD(XZ(t.b,e),149)}function SA(t,e){return QD(XZ(t.c,e),229)}function EA(t){return QD(ER(t.a,t.b),287)}function CA(t){return new Y_(t.c,t.d+t.a)}function _A(t){return hW(),pT(QD(t,197))}function MA(){MA=O,qBt=J7((jtt(),ere))}function PA(t,e){e.a?function(t,e){var n,i,r;if(!s$(t.a,e.b))throw lm(new Qv("Invalid hitboxes for scanline overlap calculation."));for(r=!1,i=new ud(new gN(new UI(new cd(t.a.a).a).b));OE(i.a.a);)if(n=QD(vj(i.a).cd(),65),c5(e.b,n))wx(t.b.a,e.b,n),r=!0;else if(r)break}(t,e):RI(t.a,e.b)}function TA(t,e){fHt||nL(t.a,e)}function OA(t,e){return DK(e,E_t),t.f=e,t}function IA(t,e,n){return lmt(t,e,3,n)}function jA(t,e,n){return lmt(t,e,6,n)}function AA(t,e,n){return lmt(t,e,9,n)}function NA(t,e,n){++t.j,t.Ki(),qY(t,e,n)}function DA(t,e,n){++t.j,t.Hi(e,t.oi(e,n))}function LA(t,e,n){t.Zc(e).Rb(n)}function RA(t,e,n){return avt(t.c,t.b,e,n)}function FA(t,e){return(e&Jkt)%t.d.length}function zA(t,e){Og.call(this,t),this.a=e}function $A(t,e){Vg.call(this,t),this.a=e}function HA(t,e){Vg.call(this,t),this.a=e}function BA(t,e){this.c=t,HJ.call(this,e)}function KA(t,e){this.a=t,Kg.call(this,e)}function VA(t,e){this.a=t,Kg.call(this,e)}function WA(t){this.a=(m0(t,qSt),new wY(t))}function UA(t){this.a=(m0(t,qSt),new wY(t))}function XA(t){return!t.a&&(t.a=new p),t.a}function qA(t){return t>8?0:t+1}function GA(t,e,n){return QR(t,QD(e,22),n)}function YA(t,e,n){return t.a+=Ytt(e,0,n),t}function QA(t,e){var n;return n=t.e,t.e=e,n}function ZA(t,e){t[yCt].call(t,e)}function JA(t,e){t.a.Vc(t.b,e),++t.b,t.c=-1}function tN(t){Uz(t.e),t.d.b=t.d,t.d.a=t.d}function eN(t){t.b?eN(t.b):t.f.c.zc(t.e,t.d)}function nN(t,e){return Ky(new Array(e),t)}function iN(t){return String.fromCharCode(t)}function rN(){this.a=new im,this.b=new im}function oN(){this.a=new fe,this.b=new Bm}function aN(){this.b=new Mx,this.c=new im}function sN(){this.d=new Mx,this.e=new Mx}function cN(){this.n=new Mx,this.o=new Mx}function uN(){this.n=new _w,this.i=new lT}function lN(){this.a=new Zl,this.b=new so}function hN(){this.a=new im,this.d=new im}function fN(){this.b=new Ym,this.a=new Ym}function dN(){this.b=new rm,this.a=new rm}function pN(){this.b=new hk,this.a=new ga}function bN(){uN.call(this),this.a=new Mx}function gN(t){Q3.call(this,t,(KQ(),Y$t))}function mN(t,e,n,i){$R.call(this,t,e,n,i)}function wN(t,e,n){return lmt(t,e,11,n)}function vN(t,e){return t.a+=e.a,t.b+=e.b,t}function yN(t,e){return t.a-=e.a,t.b-=e.b,t}function xN(t,e){return null==DH(t.a,e,"")}function kN(t,e){Bv.call(this,vLt+t+CDt+e)}function SN(t,e,n,i){vz.call(this,t,e,n,i)}function EN(t,e,n,i){vz.call(this,t,e,n,i)}function CN(t,e,n,i){EN.call(this,t,e,n,i)}function _N(t,e,n,i){yz.call(this,t,e,n,i)}function MN(t,e,n,i){yz.call(this,t,e,n,i)}function PN(t,e,n,i){yz.call(this,t,e,n,i)}function TN(t,e,n,i){MN.call(this,t,e,n,i)}function ON(t,e,n,i){MN.call(this,t,e,n,i)}function IN(t,e,n,i){PN.call(this,t,e,n,i)}function jN(t,e,n,i){ON.call(this,t,e,n,i)}function AN(t,e,n,i){gz.call(this,t,e,n,i)}function NN(t,e,n){this.a=t,ij.call(this,e,n)}function DN(t,e,n){this.c=e,this.b=n,this.a=t}function LN(t,e){return t.Aj().Nh().Kh(t,e)}function RN(t,e){return t.Aj().Nh().Ih(t,e)}function FN(t,e){return wH(t),iP(t)===iP(e)}function zN(t,e){return wH(t),iP(t)===iP(e)}function $N(t,e){return jx(Rtt(t.a,e,!1))}function HN(t,e){return jx(Ftt(t.a,e,!1))}function BN(t,e){return t.b.sd(new ZE(t,e))}function KN(t,e,n){return t.lastIndexOf(e,n)}function VN(t){return t.c?hZ(t.c.a,t,0):-1}function WN(t){return t==cie||t==lie||t==uie}function UN(t,e){return TO(e,15)&&Tbt(t.c,e)}function XN(t,e){return!!a6(t,e)}function qN(t,e){this.c=t,Jz.call(this,t,e)}function GN(t){this.c=t,MP.call(this,OSt,0)}function YN(t,e){aL.call(this,t,t.length,e)}function QN(t,e,n){return QD(t.c,69).mk(e,n)}function ZN(t,e,n){return function(t,e,n){return e.Rk(t.e,t.c,n)}(t,QD(e,332),n)}function JN(t,e,n){return function(t,e,n){var i,r,o;return i=e.ak(),o=e.dd(),r=i.$j()?FK(t,4,i,o,null,Nwt(t,i,o,TO(i,99)&&0!=(QD(i,18).Bb&rCt)),!0):FK(t,i.Kj()?2:1,i,o,i.zj(),-1,!0),n?n.Ei(r):n=r,n}(t,QD(e,332),n)}function tD(t,e){return null==e?null:L8(t.b,e)}function eD(t){return oP(t)?(wH(t),t):t.ke()}function nD(t){return!isNaN(t)&&!isFinite(t)}function iD(t){mD(),this.a=(XB(),new Ny(t))}function rD(t){bL(),this.d=t,this.a=new nm}function oD(t,e,n){this.a=t,this.b=e,this.c=n}function aD(t,e,n){this.a=t,this.b=e,this.c=n}function sD(t,e,n){this.d=t,this.b=n,this.a=e}function cD(t){aO(this),HB(this),O2(this,t)}function uD(t){IT(this),uL(this.c,0,t.Pc())}function lD(t){lH(t.a),rQ(t.c,t.b),t.b=null}function hD(t){this.a=t,cS(),R3(Date.now())}function fD(){fD=O,vHt=new r,yHt=new r}function dD(){dD=O,$$t=new A,H$t=new N}function pD(){pD=O,Ooe=YY(qFt,oSt,1,0,5,1)}function bD(){bD=O,Hae=YY(qFt,oSt,1,0,5,1)}function gD(){gD=O,Bae=YY(qFt,oSt,1,0,5,1)}function mD(){mD=O,new km((XB(),XB(),_$t))}function wD(t,e){if(!t)throw lm(new Yv(e))}function vD(t){$R.call(this,t.d,t.c,t.a,t.b)}function yD(t){$R.call(this,t.d,t.c,t.a,t.b)}function xD(t,e,n){this.b=t,this.c=e,this.a=n}function kD(t,e,n){this.b=t,this.a=e,this.c=n}function SD(t,e,n){this.a=t,this.b=e,this.c=n}function ED(t,e,n){this.a=t,this.b=e,this.c=n}function CD(t,e,n){this.a=t,this.b=e,this.c=n}function _D(t,e,n){this.a=t,this.b=e,this.c=n}function MD(t,e,n){this.b=t,this.a=e,this.c=n}function PD(t,e,n){this.e=e,this.b=t,this.d=n}function TD(t){var e;return(e=new xt).e=t,e}function OD(t){var e;return(e=new fw).b=t,e}function ID(){ID=O,cUt=new Nn,uUt=new Dn}function jD(){jD=O,IXt=new wr,jXt=new vr}function AD(t,e){this.c=t,this.a=e,this.b=e-t}function ND(t,e,n){this.a=t,this.b=e,this.c=n}function DD(t,e,n){this.a=t,this.b=e,this.c=n}function LD(t,e,n){this.a=t,this.b=e,this.c=n}function RD(t,e,n){this.a=t,this.b=e,this.c=n}function FD(t,e,n){this.a=t,this.b=e,this.c=n}function zD(t,e,n){this.e=t,this.a=e,this.c=n}function $D(t,e,n){qT(),eV.call(this,t,e,n)}function HD(t,e,n){qT(),iH.call(this,t,e,n)}function BD(t,e,n){qT(),iH.call(this,t,e,n)}function KD(t,e,n){qT(),iH.call(this,t,e,n)}function VD(t,e,n){qT(),HD.call(this,t,e,n)}function WD(t,e,n){qT(),HD.call(this,t,e,n)}function UD(t,e,n){qT(),WD.call(this,t,e,n)}function XD(t,e,n){qT(),BD.call(this,t,e,n)}function qD(t,e,n){qT(),KD.call(this,t,e,n)}function GD(t,e){return C$(t),C$(e),new $k(t,e)}function YD(t,e){return C$(t),C$(e),new HL(t,e)}function QD(t,e){return YL(null==t||jnt(t,e)),t}function ZD(t){var e;return UZ(e=new im,t),e}function JD(t){var e;return A2(e=new rw,t),e}function tL(t){var e;return A2(e=new CS,t),e}function eL(t){return!t.e&&(t.e=new im),t.e}function nL(t,e){return t.c[t.c.length]=e,!0}function iL(t,e){this.c=t,this.b=e,this.a=!1}function rL(t){this.d=t,qf(this),this.b=function(t){return TO(t,15)?QD(t,15).Yc():t.Kc()}(t.d)}function oL(){this.a=";,;",this.b="",this.c=""}function aL(t,e,n){uz.call(this,e,n),this.a=t}function sL(t,e,n){this.b=t,CP.call(this,e,n)}function cL(t,e,n){this.c=t,WE.call(this,e,n)}function uL(t,e,n){flt(n,0,t,e,n.length,!1)}function lL(t,e,n,i,r){t.b=e,t.c=n,t.d=i,t.a=r}function hL(t,e,n,i,r){t.d=e,t.c=n,t.a=i,t.b=r}function fL(t){var e,n;e=t.b,n=t.c,t.b=n,t.c=e}function dL(t){var e,n;n=t.d,e=t.a,t.d=e,t.a=n}function pL(t){return A3(function(t){return rO(~t.l&KEt,~t.m&KEt,~t.h&VEt)}(eT(t)?G3(t):t))}function bL(){bL=O,Oxt(),J3t=Vie,t4t=Eie}function gL(){this.b=ey(hA(lnt((Kbt(),kVt))))}function mL(t){return BS(),YY(qFt,oSt,1,t,5,1)}function wL(t){return new Y_(t.c+t.b,t.d+t.a)}function vL(t){return _j(0!=t.b),YJ(t,t.a.a)}function yL(t){return _j(0!=t.b),YJ(t,t.c.b)}function xL(t,e){if(!t)throw lm(new Kv(e))}function kL(t,e){if(!t)throw lm(new Yv(e))}function SL(t,e,n){AC.call(this,t,e),this.b=n}function EL(t,e,n){XM.call(this,t,e),this.c=n}function CL(t,e,n){FJ.call(this,e,n),this.d=t}function _L(t){gD(),yc.call(this),this.th(t)}function ML(t,e,n){this.a=t,BP.call(this,e,n)}function PL(t,e,n){this.a=t,BP.call(this,e,n)}function TL(t,e,n){XM.call(this,t,e),this.c=n}function OL(){bG(),sH.call(this,(vE(),sae))}function IL(t){return null!=t&&!A9(t,Goe,Yoe)}function jL(t,e){return(c7(t)<<4|c7(e))&dEt}function AL(t,e){var n;t.n&&(n=e,nL(t.f,n))}function NL(t,e,n){IJ(t,e,new W$(n))}function DL(t,e){return t.g=e<0?-1:e,t}function LL(t,e){return function(t){var e;(e=n.Math.sqrt(t.a*t.a+t.b*t.b))>0&&(t.a/=e,t.b/=e)}(t),t.a*=e,t.b*=e,t}function RL(t,e,n,i,r){t.c=e,t.d=n,t.b=i,t.a=r}function FL(t,e){return Yq(t,e,t.c.b,t.c),!0}function zL(t){t.a.b=t.b,t.b.a=t.a,t.a=t.b=null}function $L(t){this.b=t,this.a=LF(this.b.a).Ed()}function HL(t,e){this.b=t,this.a=e,zl.call(this)}function BL(t,e){this.a=t,this.b=e,zl.call(this)}function KL(t,e){uz.call(this,e,1040),this.a=t}function VL(t){return 0==t||isNaN(t)?t:t<0?-1:1}function WL(t,e){return rat(t,new AC(e.a,e.b))}function UL(t){var e;return e=t.n,t.a.b+e.d+e.a}function XL(t){var e;return e=t.n,t.e.b+e.d+e.a}function qL(t){var e;return e=t.n,t.e.a+e.b+e.c}function GL(t){return Dkt(),new HR(0,t)}function YL(t){if(!t)throw lm(new Gv(null))}function QL(){QL=O,XB(),Sse=new dd(VRt)}function ZL(){ZL=O,new Hnt((pv(),nzt),(bv(),ezt))}function JL(){JL=O,Uzt=YY(qzt,_St,19,256,0,1)}function tR(t,e,n,i){H9.call(this,t,e,n,i,0,0)}function eR(t){return t.e.c.length+t.g.c.length}function nR(t){return t.e.c.length-t.g.c.length}function iR(t){return t.b.c.length-t.e.c.length}function rR(t){gD(),_L.call(this,t),this.a=-1}function oR(t,e){GM.call(this,t,e),this.a=this}function aR(t,e){var n;return(n=E$(t,e)).i=2,n}function sR(t,e){return++t.j,t.Ti(e)}function cR(t,e,n){return t.a=-1,JI(t,e.g,n),t}function uR(t,e,n){!function(t,e,n,i,r){var o,a,s,c,u,l,h,f,d,p,b,g;null==(p=H$(t.e,i))&&(u=QD(p=new Ov,183),c=new W$(e+"_s"+r),IJ(u,aDt,c)),tH(n,d=QD(p,183)),tK(g=new Ov,"x",i.j),tK(g,"y",i.k),IJ(d,uDt,g),tK(h=new Ov,"x",i.b),tK(h,"y",i.c),IJ(d,"endPoint",h),!_k((!i.a&&(i.a=new XO(Qre,i,5)),i.a))&&(o=new mg(l=new _f),qq((!i.a&&(i.a=new XO(Qre,i,5)),i.a),o),IJ(d,JNt,l)),!!tit(i)&&Est(t.a,d,eDt,Sut(t,tit(i))),!!eit(i)&&Est(t.a,d,tDt,Sut(t,eit(i))),!(0==(!i.e&&(i.e=new IN(noe,i,10,9)),i.e).i)&&(a=new $M(t,f=new _f),qq((!i.e&&(i.e=new IN(noe,i,10,9)),i.e),a),IJ(d,iDt,f)),0!=(!i.g&&(i.g=new IN(noe,i,9,10)),i.g).i&&(s=new HM(t,b=new _f),qq((!i.g&&(i.g=new IN(noe,i,9,10)),i.g),s),IJ(d,nDt,b))}(t.a,t.b,t.c,QD(e,202),n)}function lR(t,e,n){return new DN(function(t){return 0>=t?new SS:function(t){return 0>t?new SS:new wA(null,new aG(t+1,t))}(t-1)}(t).Ie(),n,e)}function hR(t,e,n,i,r,o){return nat(t,e,n,i,r,0,o)}function fR(){fR=O,zzt=YY(Hzt,_St,217,256,0,1)}function dR(){dR=O,Gzt=YY(t$t,_St,162,256,0,1)}function pR(){pR=O,e$t=YY(n$t,_St,184,256,0,1)}function bR(){bR=O,Bzt=YY(Kzt,_St,172,128,0,1)}function gR(){lL(this,!1,!1,!1,!1)}function mR(t){G$(),this.a=(XB(),new dd(C$(t)))}function wR(t){for(C$(t);t.Ob();)t.Pb(),t.Qb()}function vR(t){this.c=t,this.b=this.c.d.vc().Kc()}function yR(t){this.c=t,this.a=new ES(this.c.a)}function xR(t){this.a=new xS(t.gc()),O2(this,t)}function kR(t){Cd.call(this,new pq),O2(this,t)}function SR(t,e){return t.a+=Ytt(e,0,e.length),t}function ER(t,e){return AW(e,t.c.length),t.c[e]}function CR(t,e){return AW(e,t.a.length),t.a[e]}function _R(t,e){BS(),tQ.call(this,t),this.a=e}function MR(t,e){return function(t,e){return ket(n9(ket(t.a).a,e.a))}(QD(t,162),QD(e,162))}function PR(t){return t.c-QD(ER(t.a,t.b),287).b}function TR(t){return t.q?t.q:(XB(),XB(),M$t)}function OR(t){return t.e.Hd().gc()*t.c.Hd().gc()}function IR(t,e,i){return n.Math.min(i/t,1/e)}function jR(t,e){return t?0:n.Math.max(0,e-1)}function AR(t){var e;return(e=fat(t))?AR(e):t}function NR(t,e){return null==t.a&&Wbt(t),t.a[e]}function DR(t){return t.c?t.c.f:t.e.b}function LR(t){return t.c?t.c.g:t.e.a}function RR(t){HJ.call(this,t.gc()),k$(this,t)}function FR(t,e){qT(),Wg.call(this,e),this.a=t}function zR(t,e,n){this.a=t,XO.call(this,e,n,2)}function $R(t,e,n,i){hL(this,t,e,n,i)}function HR(t,e){Dkt(),tm.call(this,t),this.a=e}function BR(t){this.b=new CS,this.a=t,this.c=-1}function KR(){this.d=new Y_(0,0),this.e=new Ym}function VR(t){ij.call(this,0,0),this.a=t,this.b=0}function WR(t){this.a=t,this.c=new rm,function(t){var e,n,i,r;for(i=0,r=(n=t.a).length;i>>e,r=t.m>>e|n<<22-e,i=t.l>>e|t.m<<22-e):e<44?(o=0,r=n>>>e-22,i=t.m>>e-22|t.h<<44-e):(o=0,r=0,i=n>>>e-44),rO(i&KEt,r&KEt,o&VEt)}(eT(t)?G3(t):t,e))}function XF(t,e){return function(t,e){return EI(),t==e?0:t?1:-1}((wH(t),t),(wH(e),e))}function qF(t,e){return A7((wH(t),t),(wH(e),e))}function GF(t,e){return C$(e),t.a.Ad(e)&&!t.b.Ad(e)}function YF(t,e){return G8(t,(wH(e),new Md(e)))}function QF(t,e){return G8(t,(wH(e),new Pd(e)))}function ZF(t){return Q2(),0!=QD(t,11).e.c.length}function JF(t){return Q2(),0!=QD(t,11).g.c.length}function tz(t,e,n){return function(t,e,n){var i,r,o,a,s,c,u,l,h,f;if(0!=e.e.c.length&&0!=n.e.c.length){if((i=QD(ER(e.e,0),17).c.i)==(a=QD(ER(n.e,0),17).c.i))return nO(QD(Ast(QD(ER(e.e,0),17),(jkt(),OYt)),19).a,QD(Ast(QD(ER(n.e,0),17),OYt),19).a);for(h=0,f=(l=t.a).length;hs?1:0:(t.b&&(t.b._b(o)&&(r=QD(t.b.xc(o),19).a),t.b._b(c)&&(s=QD(t.b.xc(c),19).a)),rs?1:0)):0!=e.e.c.length&&0!=n.g.c.length?1:-1}(t,QD(e,11),QD(n,11))}function ez(t){return t.e?uY(t.e):null}function nz(t){t.d||(t.d=t.b.Kc(),t.c=t.b.gc())}function iz(t,e){if(t<0||t>=e)throw lm(new Vm)}function rz(t,e,n){return ubt(),l3(t,e)&&l3(t,n)}function oz(t){return Ilt(),!t.Hc(wie)&&!t.Hc(yie)}function az(t){return new Y_(t.c+t.b/2,t.d+t.a/2)}function sz(t,e){return e.kh()?P8(t.b,QD(e,49)):e}function cz(t,e){this.e=t,this.d=0!=(64&e)?e|MSt:e}function uz(t,e){this.c=0,this.d=t,this.b=64|e|MSt}function lz(t){this.b=new wY(11),this.a=(qB(),t)}function hz(t){this.b=null,this.a=(qB(),t||O$t)}function fz(t){this.a=Rnt(t.a),this.b=new uD(t.b)}function dz(t){this.b=t,aj.call(this,t),$O(this)}function pz(t){this.b=t,cj.call(this,t),HO(this)}function bz(t,e,n){this.a=t,SN.call(this,e,n,5,6)}function gz(t,e,n,i){this.b=t,XO.call(this,e,n,i)}function mz(t,e,n,i,r){kQ.call(this,t,e,n,i,r,-1)}function wz(t,e,n,i,r){SQ.call(this,t,e,n,i,r,-1)}function vz(t,e,n,i){XO.call(this,t,e,n),this.b=i}function yz(t,e,n,i){EL.call(this,t,e,n),this.b=i}function xz(t){qM.call(this,t,!1),this.a=!1}function kz(t,e){this.b=t,cf.call(this,t.b),this.a=e}function Sz(t,e){G$(),Zk.call(this,t,A8(new ay(e)))}function Ez(t,e){return Dkt(),new rH(t,e,0)}function Cz(t,e){return Dkt(),new rH(6,t,e)}function _z(t,e){return zN(t.substr(0,e.length),e)}function Mz(t,e){return aP(e)?lK(t,e):!!LK(t.f,e)}function Pz(t,e){for(wH(e);t.Ob();)e.td(t.Pb())}function Tz(t,e,n){bbt(),this.e=t,this.d=e,this.a=n}function Oz(t,e,n,i){var r;(r=t.i).i=e,r.a=n,r.b=i}function Iz(t){var e;for(e=t;e.f;)e=e.f;return e}function jz(t){var e;return _j(null!=(e=C5(t))),e}function Az(t){var e;return _j(null!=(e=function(t){var e;return null==(e=t.a[t.c-1&t.a.length-1])?null:(t.c=t.c-1&t.a.length-1,L$(t.a,t.c,null),e)}(t))),e}function Nz(t,e){var n;return VG(e,n=t.a.gc()),n-e}function Dz(t,e){var n;for(n=0;nt||t>e)throw lm(new My("fromIndex: 0, toIndex: "+t+MCt+e))}(e,t.length),new KL(t,e)}(t,t.length))}function qz(t){return new jF(new uI(t.a.length,t.a))}function Gz(t){return typeof t===qkt||typeof t===Zkt}function Yz(t,e){return k8(t,e)<0?-1:k8(t,e)>0?1:0}function Qz(t,e,n){return Evt(t,QD(e,46),QD(n,167))}function Zz(t,e){return QD(FF(LF(t.a)).Xb(e),42).cd()}function Jz(t,e){this.d=t,UO.call(this,t),this.e=e}function t$(t){this.d=(wH(t),t),this.a=0,this.c=OSt}function e$(t,e){tm.call(this,1),this.a=t,this.b=e}function n$(t,e){return t.c?n$(t.c,e):nL(t.b,e),t}function i$(t,e,n){var i;return i=YZ(t,e),tq(t,e,n),i}function r$(t,e){return sZ(t.slice(0,e),t)}function o$(t,e,n){var i;for(i=0;i=14&&n<=16);case 11:return null!=e&&typeof e===Zkt;case 12:return null!=e&&(typeof e===qkt||typeof e==Zkt);case 0:return jnt(e,t.__elementTypeId$);case 2:return Gz(e)&&!(e.im===T);case 1:return Gz(e)&&!(e.im===T)||jnt(e,t.__elementTypeId$);default:return!0}}(t,n)),t[e]=n}function R$(t,e){var n;return KU(e,n=t.a.gc()),n-1-e}function F$(t,e){return t.a+=String.fromCharCode(e),t}function z$(t,e){return t.a+=String.fromCharCode(e),t}function $$(t,e){for(wH(e);t.c0?(mnt(t,n,0),n.a+=String.fromCharCode(i),mnt(t,n,r=fet(e,o)),o+=r-1):39==i?o+1=t.g}function J$(t,e,n){return igt(t,h2(t,e,n))}function tH(t,e){var n;YZ(t,n=t.a.length),tq(t,n,e)}function eH(t,e){console[t].call(console,e)}function nH(t,e){var n;++t.j,n=t.Vi(),t.Ii(t.oi(n,e))}function iH(t,e,n){Wg.call(this,e),this.a=t,this.b=n}function rH(t,e,n){tm.call(this,t),this.a=e,this.b=n}function oH(t,e,n){this.a=t,Vg.call(this,e),this.b=n}function aH(t,e,n){this.a=t,dX.call(this,8,e,null,n)}function sH(t){this.a=(wH(nRt),nRt),this.b=t,new Xw}function cH(t){this.c=t,this.b=this.c.a,this.a=this.c.e}function uH(t){this.c=t,this.b=t.a.d.a,eA(t.a.e,this)}function lH(t){Cj(-1!=t.c),t.d.$c(t.c),t.b=t.c,t.c=-1}function hH(t){return n.Math.sqrt(t.a*t.a+t.b*t.b)}function fH(t,e){return iz(e,t.a.c.length),ER(t.a,e)}function dH(t,e){return iP(t)===iP(e)||null!=t&&Q8(t,e)}function pH(t){return t?t.dc():!t.Kc().Ob()}function bH(t){return!t.a&&t.c?t.c.b:t.a}function gH(t){return!t.a&&(t.a=new XO(Gre,t,4)),t.a}function mH(t){return!t.d&&(t.d=new XO(hae,t,1)),t.d}function wH(t){if(null==t)throw lm(new Nm);return t}function vH(t){t.c?t.c.He():(t.d=!0,function(t){var e,n,i,r,o;if(o=new im,GJ(t.b,new Vd(o)),t.b.c=YY(qFt,oSt,1,0,5,1),0!=o.c.length){for(AW(0,o.c.length),e=QD(o.c[0],78),n=1,i=o.c.length;n0;)t=t<<1|(t<0?1:0);return t}function KH(t,e){return iP(t)===iP(e)||null!=t&&Q8(t,e)}function VH(t,e){return rF(t.a,e)?t.b[QD(e,22).g]:null}function WH(t,e,n,i){t.a=fj(t.a,0,e)+""+i+fP(t.a,n)}function UH(t,e){t.u.Hc((Ilt(),wie))&&function(t,e){var i,r,o,a;for(i=(a=QD(VH(t.b,e),124)).a,o=QD(QD($G(t.r,e),21),84).Kc();o.Ob();)(r=QD(o.Pb(),111)).c&&(i.a=n.Math.max(i.a,qL(r.c)));if(i.a>0)switch(e.g){case 2:a.n.c=t.s;break;case 4:a.n.b=t.s}}(t,e),function(t,e){var n;t.C&&((n=QD(VH(t.b,e),124).n).d=t.C.d,n.a=t.C.a)}(t,e)}function XH(t,e){return NW(e,t.length),t.charCodeAt(e)}function qH(){Pv.call(this,"There is no more element.")}function GH(t){this.d=t,this.a=this.d.b,this.b=this.d.c}function YH(t){t.b=!1,t.c=!1,t.d=!1,t.a=!1}function QH(t,e,n,i){return h3(t,e,n,!1),f7(t,i),t}function ZH(t){return!t.n&&(t.n=new vz(soe,t,1,7)),t.n}function JH(t){return!t.c&&(t.c=new vz(uoe,t,9,9)),t.c}function tB(t){return t.e==WRt&&function(t,e){t.e=e}(t,function(t,e){var n,i;return(n=e.Hh(t.a))&&null!=(i=fA(xtt((!n.b&&(n.b=new Wj((Rkt(),Rae),use,n)),n.b),wDt)))?i:e.ne()}(t.g,t.b)),t.e}function eB(t){return t.f==WRt&&function(t,e){t.f=e}(t,function(t,e){var n,i;return(n=e.Hh(t.a))?(i=fA(xtt((!n.b&&(n.b=new Wj((Rkt(),Rae),use,n)),n.b),zRt)),zN($Rt,i)?OF(t,r1(e.Hj())):i):null}(t.g,t.b)),t.f}function nB(t){var e;return!(e=t.b)&&(t.b=e=new Gh(t)),e}function iB(t){var e;for(e=t.Kc();e.Ob();)e.Pb(),e.Qb()}function rB(t){if(j9(t.d),t.d.d!=t.c)throw lm(new Lm)}function oB(t,e){this.b=t,this.c=e,this.a=new ES(this.b)}function aB(t,e,n){this.a=lEt,this.d=t,this.b=e,this.c=n}function sB(t,e){this.d=(wH(t),t),this.a=16449,this.c=e}function cB(t,e){Q7(t,ey(V1(e,"x")),ey(V1(e,"y")))}function uB(t,e){Q7(t,ey(V1(e,"x")),ey(V1(e,"y")))}function lB(t,e){return G7(t),new _R(t,new $Q(e,t.a))}function hB(t,e){return G7(t),new _R(t,new JG(e,t.a))}function fB(t,e){return G7(t),new mA(t,new QG(e,t.a))}function dB(t,e){return G7(t),new wA(t,new ZG(e,t.a))}function pB(t){this.a=new im,this.e=YY(Gce,_St,48,t,0,2)}function bB(t,e,n,i){this.a=t,this.e=e,this.d=n,this.c=i}function gB(t,e,n,i){this.a=t,this.c=e,this.b=n,this.d=i}function mB(t,e,n,i){this.c=t,this.b=e,this.a=n,this.d=i}function wB(t,e,n,i){this.c=t,this.b=e,this.d=n,this.a=i}function vB(t,e,n,i){this.c=t,this.d=e,this.b=n,this.a=i}function yB(t,e,n,i){this.a=t,this.d=e,this.c=n,this.b=i}function xB(t,e,n,i){Uk.call(this,t,e),this.a=n,this.b=i}function kB(t,e,n,i){this.a=t,this.c=e,this.d=n,this.b=i}function SB(t,e,i){(function(t,e){var n,i,r,o;for(function(t){var e;for(e=0;e(i=cV(n))&&++i,i}function _B(t){var e;return p1(e=new sm,t),e}function MB(t){var e;return Gst(e=new sm,t),e}function PB(t){return function(t){var e;return TO(e=Ast(t,(jkt(),IYt)),160)?G9(QD(e,160)):null}(t)||null}function TB(t){return!t.b&&(t.b=new vz(eoe,t,12,3)),t.b}function OB(t,e,n){n.a?D1(t,e.b-t.f/2):N1(t,e.a-t.g/2)}function IB(t,e,n,i){this.a=t,this.b=e,this.c=n,this.d=i}function jB(t,e,n,i){this.a=t,this.b=e,this.c=n,this.d=i}function AB(t,e,n,i){this.e=t,this.a=e,this.c=n,this.d=i}function NB(t,e,n,i){this.a=t,this.c=e,this.d=n,this.b=i}function DB(t,e,n,i){qT(),jG.call(this,e,n,i),this.a=t}function LB(t,e,n,i){qT(),jG.call(this,e,n,i),this.a=t}function RB(t,e){this.a=t,gA.call(this,t,QD(t.d,15).Zc(e))}function FB(t){this.f=t,this.c=this.f.e,t.f>0&&Oot(this)}function zB(t,e,n,i){this.b=t,this.c=i,MP.call(this,e,n)}function $B(t){return _j(t.b0?(n.Error.stackTraceLimit=Error.stackTraceLimit=64,1):"stack"in new Error),t=new b,vzt=e?new S:t}function AK(t,e){var n;return n=Nx(t.gm),null==e?n:n+": "+e}function NK(t,e){var n;return wq(n=t.b.Qc(e),t.b.gc()),n}function DK(t,e){if(null==t)throw lm(new Jv(e));return t}function LK(t,e){return V6(t,e,function(t,e){var n;return null==(n=t.a.get(e))?new Array:n}(t,null==e?0:t.b.se(e)))}function RK(t,e,n){return n>=0&&zN(t.substr(n,e.length),e)}function FK(t,e,n,i,r,o,a){return new uq(t.e,e,n,i,r,o,a)}function zK(t,e,n,i,r,o){this.a=t,E0.call(this,e,n,i,r,o)}function $K(t,e,n,i,r,o){this.a=t,E0.call(this,e,n,i,r,o)}function HK(t,e){this.g=t,this.d=L4(Vy(UWt,1),SPt,10,0,[e])}function BK(t,e){this.e=t,this.a=qFt,this.b=egt(e),this.c=e}function KK(t,e){uN.call(this),ZJ(this),this.a=t,this.c=e}function VK(t,e,n,i){L$(t.c[e.g],n.g,i),L$(t.c[n.g],e.g,i)}function WK(t,e,n,i){L$(t.c[e.g],e.g,n),L$(t.b[e.g],e.g,i)}function UK(t,e,n,i){return n>=0?t.jh(e,n,i):t.Sg(null,n,i)}function XK(t){return 0==t.b.b?t.a.$e():vL(t.b)}function qK(t){return iP(t.a)===iP((G2(),Wae))&&function(t){var e,n,i,r,o,a,s,c,u,l;for(e=new Ec,n=new Ec,u=zN(eRt,(r=mmt(t.b,nRt))?fA(xtt((!r.b&&(r.b=new Wj((Rkt(),Rae),use,r)),r.b),iRt)):null),c=0;c=0?t.sh(i,n):vdt(t,e,n)}function pV(t,e,n){$V(),t&&DH(Moe,t,e),t&&DH(_oe,t,n)}function bV(t,e,n){this.i=new im,this.b=t,this.g=e,this.a=n}function gV(t,e,n){this.c=new im,this.e=t,this.f=e,this.b=n}function mV(t,e,n){this.a=new im,this.e=t,this.f=e,this.c=n}function wV(t,e){kO(this),this.f=e,this.g=t,KB(this),this._d()}function vV(t,e){var n;n=t.q.getHours(),t.q.setDate(e),Owt(t,n)}function yV(t,e){var n;for(C$(e),n=t.a;n;n=n.c)e.Od(n.g,n.i)}function xV(t){var e;return N5(e=new Xx(TJ(t.length)),t),e}function kV(t){function e(){}return e.prototype=t||{},new e}function SV(t,e){if(null==e)throw lm(new Nm);return function(t,e){var n,i=t.a;e=String(e),i.hasOwnProperty(e)&&(n=i[e]);var r=(o5(),Pzt)[typeof n];return r?r(n):t8(typeof n)}(t,e)}function EV(t){return t.Db>>16!=3?null:QD(t.Cb,33)}function CV(t){return t.Db>>16!=9?null:QD(t.Cb,33)}function _V(t){return t.Db>>16!=6?null:QD(t.Cb,79)}function MV(t){return t.Db>>16!=7?null:QD(t.Cb,235)}function PV(t){return t.Db>>16!=7?null:QD(t.Cb,160)}function TV(t){return t.Db>>16!=11?null:QD(t.Cb,33)}function OV(t,e){var n;return(n=t.Yg(e))>=0?t.lh(n):Xlt(t,e)}function IV(t,e){var n;return Cst(n=new kR(e),t),new uD(n)}function jV(t){var e;return e=t.d,e=t.si(t.f),fQ(t,e),e.Ob()}function AV(t,e){return t.b+=e.b,t.c+=e.c,t.d+=e.d,t.a+=e.a,t}function NV(t,e){return n.Math.abs(t)>16!=3?null:QD(t.Cb,147)}function BV(t){return t.Db>>16!=6?null:QD(t.Cb,235)}function KV(t){return t.Db>>16!=17?null:QD(t.Cb,26)}function VV(t,e){var n=t.a=t.a||[];return n[e]||(n[e]=t.le(e))}function WV(t,e,n){return null==e?Jut(t.f,null,n):o9(t.g,e,n)}function UV(t,e,n,i,r,o){return new xZ(t.e,e,t.aj(),n,i,r,o)}function XV(t,e,n){return t.a=fj(t.a,0,e)+""+n+fP(t.a,e),t}function qV(t,e,n){return nL(t.a,(FH(),wit(e,n),new qk(e,n))),t}function GV(t){return kI(t.c),t.e=t.a=t.c,t.c=t.c.c,++t.d,t.a.f}function YV(t){return kI(t.e),t.c=t.a=t.e,t.e=t.e.e,--t.d,t.a.f}function QV(t,e){t.d&&cZ(t.d.e,t),t.d=e,t.d&&nL(t.d.e,t)}function ZV(t,e){t.c&&cZ(t.c.g,t),t.c=e,t.c&&nL(t.c.g,t)}function JV(t,e){t.c&&cZ(t.c.a,t),t.c=e,t.c&&nL(t.c.a,t)}function tW(t,e){t.i&&cZ(t.i.j,t),t.i=e,t.i&&nL(t.i.j,t)}function eW(t,e,n){this.a=e,this.c=t,this.b=(C$(n),new uD(n))}function nW(t,e,n){this.a=e,this.c=t,this.b=(C$(n),new uD(n))}function iW(t,e){this.a=t,this.c=bO(this.a),this.b=new EK(e)}function rW(t,e){if(t<0||t>e)throw lm(new Bv(zCt+t+$Ct+e))}function oW(t,e){return oF(t.a,e)?Fz(t,QD(e,22).g,null):null}function aW(){aW=O,lzt=U6((mv(),L4(Vy(hzt,1),GSt,538,0,[czt])))}function sW(){sW=O,A3t=yF(new fX,(Nst(),iWt),(Nkt(),oXt))}function cW(){cW=O,N3t=yF(new fX,(Nst(),iWt),(Nkt(),oXt))}function uW(){uW=O,L3t=yF(new fX,(Nst(),iWt),(Nkt(),oXt))}function lW(){lW=O,s4t=cR(new fX,(Nst(),iWt),(Nkt(),IUt))}function hW(){hW=O,f4t=cR(new fX,(Nst(),iWt),(Nkt(),IUt))}function fW(){fW=O,b4t=cR(new fX,(Nst(),iWt),(Nkt(),IUt))}function dW(){dW=O,E4t=cR(new fX,(Nst(),iWt),(Nkt(),IUt))}function pW(){pW=O,s6t=yF(new fX,($rt(),n5t),(kut(),s5t))}function bW(t,e,n,i){this.c=t,this.d=i,wW(this,e),vW(this,n)}function gW(t){this.c=new CS,this.b=t.b,this.d=t.c,this.a=t.a}function mW(t){this.a=n.Math.cos(t),this.b=n.Math.sin(t)}function wW(t,e){t.a&&cZ(t.a.k,t),t.a=e,t.a&&nL(t.a.k,t)}function vW(t,e){t.b&&cZ(t.b.f,t),t.b=e,t.b&&nL(t.b.f,t)}function yW(t,e){(function(t,e,n){QD(e.b,65),GJ(e.a,new DD(t,n,e))})(t,t.b,t.c),QD(t.b.b,65),e&&QD(e.b,65).b}function xW(t,e){TO(t.Cb,88)&&alt(pG(QD(t.Cb,88)),4),E2(t,e)}function kW(t,e){TO(t.Cb,179)&&(QD(t.Cb,179).tb=null),E2(t,e)}function SW(t,e){return EE(),WZ(e)?new oR(e,t):new GM(e,t)}function EW(t){var e;return Rx(),p1(e=new sm,t),e}function CW(t){var e;return Rx(),p1(e=new sm,t),e}function _W(t,e){var n;return n=new K$(t),e.c[e.c.length]=n,n}function MW(t,e){var n;return(n=QD(L8(YB(t.a),e),14))?n.gc():0}function PW(t){return G7(t),qB(),qB(),KJ(t,I$t)}function TW(t){for(var e;;)if(e=t.Pb(),!t.Ob())return e}function OW(t,e){ov.call(this,new xS(TJ(t))),m0(e,CSt),this.a=e}function IW(t,e,n){r7(e,n,t.gc()),this.c=t,this.a=e,this.b=n-e}function jW(t,e,n){var i;r7(e,n,t.c.length),i=n-e,sk(t.c,e,i)}function AW(t,e){if(t<0||t>=e)throw lm(new Bv(zCt+t+$Ct+e))}function NW(t,e){if(t<0||t>=e)throw lm(new Ay(zCt+t+$Ct+e))}function DW(t,e){this.b=(wH(t),t),this.a=0==(e&nCt)?64|e|MSt:e}function LW(t){jT(this),Wm(this.a,S5(n.Math.max(8,t))<<1)}function RW(t){return A5(L4(Vy(K9t,1),_St,8,0,[t.i.n,t.n,t.a]))}function FW(t,e){return function(t,e,n){var i,r,o,a,s,c;if(a=new gc,s=mpt(t.e.Tg(),e),i=QD(t.g,119),EE(),QD(e,66).Oj())for(o=0;o0&&0==t.a[--t.d];);0==t.a[t.d++]&&(t.e=0)}function PU(t){return t.a?0==t.e.length?t.a.a:t.a.a+""+t.e:t.c}function TU(t){return lR(t.e.Hd().gc()*t.c.Hd().gc(),16,new Bh(t))}function OU(t){return QD(Vet(t,YY(LWt,kPt,17,t.c.length,0,1)),474)}function IU(t){return QD(Vet(t,YY(UWt,SPt,10,t.c.length,0,1)),193)}function jU(t,e,n){C$(t),function(t){var e,n,i;for(XB(),ZT(t.c,t.a),i=new md(t.c);i.a=0&&b=e)throw lm(new Bv(function(t,e){if(t<0)return ngt(rSt,L4(Vy(qFt,1),oSt,1,5,["index",g7(t)]));if(e<0)throw lm(new Yv(aSt+e));return ngt("%s (%s) must be less than size (%s)",L4(Vy(qFt,1),oSt,1,5,["index",g7(t),g7(e)]))}(t,e)));return t}function VU(t,e,n){if(t<0||en)throw lm(new Bv(function(t,e,n){return t<0||t>n?qut(t,n,"start index"):e<0||e>n?qut(e,n,"end index"):ngt("end index (%s) must not be less than start index (%s)",L4(Vy(qFt,1),oSt,1,5,[g7(e),g7(t)]))}(t,e,n)))}function WU(t,e){if(zz(t.a,e),e.d)throw lm(new Pv(UCt));e.d=t}function UU(t,e){if(e.$modCount!=t.$modCount)throw lm(new Lm)}function XU(t,e){return!!TO(e,42)&&Bit(t.a,QD(e,42))}function qU(t,e){return!!TO(e,42)&&Bit(t.a,QD(e,42))}function GU(t,e){return!!TO(e,42)&&Bit(t.a,QD(e,42))}function YU(t){var e;return eT(t)?-0==(e=t)?0:e:function(t){return wot(t,(NZ(),Azt))<0?-function(t){return t.l+t.m*UEt+t.h*XEt}(h5(t)):t.l+t.m*UEt+t.h*XEt}(t)}function QU(t){var e;return yH(t),e=new $,Yx(t.a,new zd(e)),e}function ZU(t){var e;return yH(t),e=new z,Yx(t.a,new Fd(e)),e}function JU(t,e){this.a=t,Gf.call(this,t),rW(e,t.gc()),this.b=e}function tX(t){this.e=t,this.b=this.e.a.entries(),this.a=new Array}function eX(t){return new wY((m0(t,QSt),PJ(n9(n9(5,t),t/10|0))))}function nX(t){return QD(Vet(t,YY(aUt,EPt,11,t.c.length,0,1)),1943)}function iX(t,e,n){t.d&&cZ(t.d.e,t),t.d=e,t.d&&JR(t.d.e,n,t)}function rX(t,e){(function(t,e){var i,r,o,a,s,c,u,l,h,f,d,p,b,g,m,w,v,y,x;if(v=0,0==e.f.b)for(m=new md(t);m.a2e3&&(Szt=t,Ezt=n.setTimeout(Pk,10)),0==kzt++&&(function(t){var e,n;if(t.a){n=null;do{e=t.a,t.a=null,n=eut(e,n)}while(t.a);t.a=n}}((my(),wzt)),!0)}();try{return function(t,e,n){return t.apply(e,n)}(t,e,i)}finally{!function(t){t&&function(t){var e,n;if(t.b){n=null;do{e=t.b,t.b=null,n=eut(e,n)}while(t.b);t.b=n}}((my(),wzt)),--kzt,t&&-1!=Ezt&&(function(t){n.clearTimeout(t)}(Ezt),Ezt=-1)}(r)}}function hX(t){var e;e=t.Wg(),this.a=TO(e,69)?QD(e,69).Zh():e.Kc()}function fX(){lv.call(this),this.j.c=YY(qFt,oSt,1,0,5,1),this.a=-1}function dX(t,e,n,i){this.d=t,this.n=e,this.g=n,this.o=i,this.p=-1}function pX(t,e,n,i){this.e=i,this.d=null,this.c=t,this.a=e,this.b=n}function bX(t,e,n){this.d=new ub(this),this.e=t,this.i=e,this.f=n}function gX(){gX=O,XGt=new t_(v_t,0),qGt=new t_("TOP_LEFT",1)}function mX(){mX=O,$3t=RH(g7(1),g7(4)),z3t=RH(g7(1),g7(2))}function wX(){wX=O,p7t=U6((nE(),L4(Vy(m7t,1),GSt,551,0,[f7t])))}function vX(){vX=O,h7t=U6((eE(),L4(Vy(d7t,1),GSt,482,0,[u7t])))}function yX(){yX=O,c9t=U6((iE(),L4(Vy(h9t,1),GSt,530,0,[a9t])))}function xX(){xX=O,kKt=U6((HS(),L4(Vy(KKt,1),GSt,481,0,[yKt])))}function kX(t,e,n,i){return TO(n,54)?new Tj(t,e,n,i):new AF(t,e,n,i)}function SX(t,e){return QD(KI(YF(QD($G(t.k,e),15).Oc(),fqt)),113)}function EX(t,e){return QD(KI(QF(QD($G(t.k,e),15).Oc(),fqt)),113)}function CX(t){return new DW(function(t,e){var n,i;for(XB(),i=new im,n=0;n0}function TX(t){return _j(t.b!=t.d.c),t.c=t.b,t.b=t.b.a,++t.a,t.c.c}function OX(t,e){wH(e),L$(t.a,t.c,e),t.c=t.c+1&t.a.length-1,yrt(t)}function IX(t,e){wH(e),t.b=t.b-1&t.a.length-1,L$(t.a,t.b,e),yrt(t)}function jX(t,e){var n;for(n=t.j.c.length;n0&&hvt(t.g,0,e,0,t.i),e}function $X(t,e){var n;return CE(),!(n=QD(H$(Doe,t),55))||n.wj(e)}function HX(t){var e;for(e=0;t.Ob();)t.Pb(),e=n9(e,1);return PJ(e)}function BX(t,e){var n;return n=new jy,t.xd(n),n.a+="..",e.yd(n),n.a}function KX(t,e,n){return dwt(t,e,n,TO(e,99)&&0!=(QD(e,18).Bb&rCt))}function VX(t,e,n){return function(t,e,n,i){var r,o,a,s,c,u;if(s=new gc,c=mpt(t.e.Tg(),e),r=QD(t.g,119),EE(),QD(e,66).Oj())for(a=0;at.c));a++)r.a>=t.s&&(o<0&&(o=a),s=a);return c=(t.s+t.c)/2,o>=0&&(c=function(t){return(t.c+t.a)/2}((AW(i=function(t,e,n,i){var r,o,a,s,c,u,l,h,f,d,p;if(o=n,n=n&&(i=e,o=(c=(s.c+s.a)/2)-n,s.c<=c-n&&JR(t,i++,new AD(s.c,o)),(a=c+n)<=s.a&&(r=new AD(a,s.a),rW(i,t.c.length),VE(t.c,i,r)))}(e,i,n)),c}(r,n,i))),function(t,e,n){var i,r,o,a;for(o=e.q,a=e.r,new bW((rY(),$4t),e,o,1),new bW($4t,o,a,1),r=new md(n);r.a0;)i+=t.a[n],n-=n&-n;return i}function Xq(t,e){var n;for(n=e;n;)jj(t,-n.i,-n.j),n=TV(n);return t}function qq(t,e){var n,i;for(wH(e),i=t.Kc();i.Ob();)n=i.Pb(),e.td(n)}function Gq(t,e){var n;return new qk(n=e.cd(),t.e.pc(n,QD(e.dd(),14)))}function Yq(t,e,n,i){var r;(r=new j).c=e,r.b=n,r.a=i,i.b=n.a=r,++t.b}function Qq(t,e,n){var i;return AW(e,t.c.length),i=t.c[e],t.c[e]=n,i}function Zq(t){return t.c&&t.d?ZW(t.c)+"->"+ZW(t.d):"e_"+zI(t)}function Jq(t,e){return(G7(t),nk(new _R(t,new $Q(e,t.a)))).sd(mHt)}function tG(t){return!(!t.c||!t.d||!t.c.i||t.c.i!=t.d.i)}function eG(t){if(!t.c.Sb())throw lm(new Fm);return t.a=!0,t.c.Ub()}function nG(t){t.i=0,KE(t.b,null),KE(t.c,null),t.a=null,t.e=null,++t.g}function iG(t){FE.call(this,null==t?cSt:T9(t),TO(t,78)?QD(t,78):null)}function rG(t){_kt(),um(this),this.a=new CS,s6(this,t),FL(this.a,t)}function oG(){IT(this),this.b=new Y_(tCt,tCt),this.a=new Y_(eCt,eCt)}function aG(t,e){this.c=0,this.b=e,_P.call(this,t,17493),this.a=this.c}function sG(t){cG(),fHt||(this.c=t,this.e=!0,this.a=new im)}function cG(){cG=O,fHt=!0,lHt=!1,hHt=!1,pHt=!1,dHt=!1}function uG(t,e){return!!TO(e,149)&&zN(t.c,QD(e,149).c)}function lG(t,e){var n;return n=0,t&&(n+=t.f.a/2),e&&(n+=e.f.a/2),n}function hG(t,e){return QD(XZ(t.d,e),23)||QD(XZ(t.e,e),23)}function fG(t){this.b=t,UO.call(this,t),this.a=QD(K3(this.b.a,4),126)}function dG(t){this.b=t,sj.call(this,t),this.a=QD(K3(this.b.a,4),126)}function pG(t){return t.t||(t.t=new Fg(t),x7(new Uv(t),0,t.t)),t.t}function bG(){var t,e;bG=O,Rx(),e=new Hm,mse=e,t=new Kw,wse=t}function gG(t){var e;return t.c||TO(e=t.r,88)&&(t.c=QD(e,26)),t.c}function mG(t){return rO(t&KEt,t>>22&KEt,t<0?VEt:0)}function wG(t,e){var n,i;(n=QD(function(t,e){C$(t);try{return t.Bc(e)}catch(t){if(TO(t=S4(t),205)||TO(t,173))return null;throw lm(t)}}(t.c,e),14))&&(i=n.gc(),n.$b(),t.d-=i)}function vG(t,e){var n;return!!(n=a6(t,e.cd()))&&KH(n.e,e.dd())}function yG(t,e){return 0==e||0==t.e?t:e>0?Dtt(t,e):jpt(t,-e)}function xG(t,e){return 0==e||0==t.e?t:e>0?jpt(t,e):Dtt(t,-e)}function kG(t){if(Qht(t))return t.c=t.a,t.a.Pb();throw lm(new Fm)}function SG(t){var e,n;return e=t.c.i,n=t.d.i,e.k==(bct(),HWt)&&n.k==HWt}function EG(t){var e;return u4(e=new kK,t),p5(e,(wkt(),N1t),null),e}function CG(t,e,n){var i;return(i=t.Yg(e))>=0?t._g(i,n,!0):iht(t,e,n)}function _G(t,e,n,i){var r;for(r=0;re)throw lm(new Bv(qut(t,e,"index")));return t}function WG(t,e,n,i){var r;return function(t,e,n,i,r){var o,a;for(o=0,a=0;at.d[r.p]&&(n+=Uq(t.b,i)*QD(a.b,19).a,IX(t.a,g7(i)));for(;!ry(t.a);)iJ(t.b,QD(jz(t.a),19).a)}return n}(t,n)}function cY(t){var e;return t.a||TO(e=t.r,148)&&(t.a=QD(e,148)),t.a}function uY(t){return t.a?t.e?uY(t.e):null:t}function lY(t,e){return wH(e),t.c=0,"Initial capacity must not be negative")}function vY(){vY=O,lBt=U6((JJ(),L4(Vy(hBt,1),GSt,232,0,[aBt,sBt,cBt])))}function yY(){yY=O,mBt=U6((BQ(),L4(Vy(wBt,1),GSt,461,0,[dBt,fBt,pBt])))}function xY(){xY=O,SBt=U6((IZ(),L4(Vy(UBt,1),GSt,462,0,[xBt,yBt,vBt])))}function kY(){kY=O,bHt=U6((O6(),L4(Vy(gHt,1),GSt,132,0,[sHt,cHt,uHt])))}function SY(){SY=O,GVt=U6((OZ(),L4(Vy(rWt,1),GSt,379,0,[UVt,WVt,XVt])))}function EY(){EY=O,jWt=U6((i7(),L4(Vy(DWt,1),GSt,423,0,[OWt,TWt,PWt])))}function CY(){CY=O,Tqt=U6((I0(),L4(Vy(Aqt,1),GSt,314,0,[_qt,Cqt,Mqt])))}function _Y(){_Y=O,Nqt=U6((f0(),L4(Vy($qt,1),GSt,337,0,[Oqt,jqt,Iqt])))}function MY(){MY=O,Yqt=U6((r5(),L4(Vy(iGt,1),GSt,450,0,[Xqt,Uqt,qqt])))}function PY(){PY=O,eqt=U6((v2(),L4(Vy(lqt,1),GSt,361,0,[JXt,ZXt,QXt])))}function TY(){TY=O,UGt=U6((jZ(),L4(Vy(GGt,1),GSt,303,0,[KGt,VGt,BGt])))}function OY(){OY=O,HGt=U6((o4(),L4(Vy(WGt,1),GSt,292,0,[FGt,zGt,RGt])))}function IY(){IY=O,C2t=U6((r8(),L4(Vy(O2t,1),GSt,378,0,[x2t,k2t,S2t])))}function jY(){jY=O,d3t=U6((g3(),L4(Vy(g3t,1),GSt,375,0,[u3t,l3t,h3t])))}function AY(){AY=O,J2t=U6((k5(),L4(Vy(n3t,1),GSt,339,0,[Y2t,G2t,Q2t])))}function NY(){NY=O,c3t=U6((h0(),L4(Vy(f3t,1),GSt,452,0,[a3t,r3t,o3t])))}function DY(){DY=O,j3t=U6((H4(),L4(Vy(B3t,1),GSt,377,0,[T3t,O3t,P3t])))}function LY(){LY=O,k3t=U6((A6(),L4(Vy(_3t,1),GSt,336,0,[w3t,v3t,y3t])))}function RY(){RY=O,M3t=U6((Y2(),L4(Vy(I3t,1),GSt,338,0,[C3t,S3t,E3t])))}function FY(){FY=O,Y3t=U6((d0(),L4(Vy(Q3t,1),GSt,454,0,[U3t,X3t,q3t])))}function zY(){zY=O,y6t=U6((y9(),L4(Vy(S6t,1),GSt,442,0,[w6t,g6t,m6t])))}function $Y(){$Y=O,T6t=U6((T6(),L4(Vy(a8t,1),GSt,380,0,[C6t,_6t,M6t])))}function HY(){HY=O,w8t=U6((w9(),L4(Vy(Y8t,1),GSt,381,0,[b8t,g8t,p8t])))}function BY(){BY=O,f8t=U6((b3(),L4(Vy(d8t,1),GSt,293,0,[u8t,l8t,c8t])))}function KY(){KY=O,c7t=U6((v9(),L4(Vy(l7t,1),GSt,437,0,[r7t,o7t,a7t])))}function VY(){VY=O,Rne=U6((I8(),L4(Vy(Bne,1),GSt,334,0,[Nne,Ane,Dne])))}function WY(){WY=O,hne=U6((t1(),L4(Vy(gne,1),GSt,272,0,[sne,cne,une])))}function UY(t,e){return!t.o&&(t.o=new xQ((ckt(),Hre),yoe,t,0)),ytt(t.o,e)}function XY(t){return!t.g&&(t.g=new uc),!t.g.c&&(t.g.c=new Rg(t)),t.g.c}function qY(t,e,n){var i,r;if(null!=n)for(i=0;i=r){for(a=1;an||e=0?t._g(n,!0,!0):iht(t,e,!0)}function _Q(){_Q=O,c6t=pet(pet(dE(new fX,($rt(),t5t)),(kut(),f5t)),c5t)}function MQ(t){for(;!t.a;)if(!BN(t.c,new $d(t)))return!1;return!0}function PQ(t){return C$(t),TO(t,198)?QD(t,198):new af(t)}function TQ(){var t,e,n,i;TQ=O,m9t=new ps,v9t=new bs,Ikt(),t=_ee,e=m9t,n=oee,i=v9t,FH(),w9t=new Sv(L4(Vy(ozt,1),FSt,42,0,[(wit(t,e),new qk(t,e)),(wit(n,i),new qk(n,i))]))}function OQ(){OQ=O,x6t=new D_("LEAF_NUMBER",0),k6t=new D_("NODE_SIZE",1)}function IQ(t){t.a=YY(Gce,MEt,25,t.b+1,15,1),t.c=YY(Gce,MEt,25,t.b,15,1),t.d=0}function jQ(t,e){if(null==t.g||e>=t.i)throw lm(new HP(e,t.i));return t.g[e]}function AQ(t,e,n){if(k6(t,n),null!=n&&!t.wj(n))throw lm(new Om);return n}function NQ(t){var e;if(t.Ek())for(e=t.i-1;e>=0;--e)a1(t,e);return zX(t)}function DQ(t){var e,n;if(!t.b)return null;for(n=t.b;e=n.a[0];)n=e;return n}function LQ(t,e){var n;return eq(e),(n=sZ(t.slice(0,e),t)).length=e,n}function RQ(t,e,n,i){qB(),i=i||O$t,Gut(t.slice(e,n),t,e,n,-e,i)}function FQ(t,e,n,i,r){return e<0?iht(t,n,i):QD(n,66).Nj().Pj(t,t.yh(),e,i,r)}function zQ(t,e){if(e.a)throw lm(new Pv(UCt));zz(t.a,e),e.a=t,!t.j&&(t.j=e)}function $Q(t,e){MP.call(this,e.rd(),-16449&e.qd()),wH(t),this.a=t,this.c=e}function HQ(t,e){var n,i;return i=e/t.c.Hd().gc()|0,n=e%t.c.Hd().gc(),pY(t,i,n)}function BQ(){BQ=O,dBt=new cC(k_t,0),fBt=new cC(v_t,1),pBt=new cC(S_t,2)}function KQ(){KQ=O,Y$t=new zE("All",0),Q$t=new TT,Z$t=new lO,J$t=new OT}function VQ(){VQ=O,eHt=U6((KQ(),L4(Vy(nHt,1),GSt,297,0,[Y$t,Q$t,Z$t,J$t])))}function WQ(){WQ=O,yWt=U6(($4(),L4(Vy(IWt,1),GSt,405,0,[bWt,wWt,gWt,mWt])))}function UQ(){UQ=O,eKt=U6((i4(),L4(Vy(aKt,1),GSt,406,0,[JBt,YBt,QBt,ZBt])))}function XQ(){XQ=O,sKt=U6((Pnt(),L4(Vy(cKt,1),GSt,323,0,[iKt,nKt,rKt,oKt])))}function qQ(){qQ=O,vKt=U6((Tnt(),L4(Vy(xKt,1),GSt,394,0,[bKt,pKt,gKt,mKt])))}function GQ(){GQ=O,r5t=U6(($rt(),L4(Vy(o5t,1),GSt,393,0,[J4t,t5t,e5t,n5t])))}function YQ(){YQ=O,EXt=U6((F4(),L4(Vy(AXt,1),GSt,360,0,[kXt,yXt,xXt,vXt])))}function QQ(){QQ=O,s8t=U6((Vit(),L4(Vy(h8t,1),GSt,340,0,[o8t,i8t,r8t,n8t])))}function ZQ(){ZQ=O,zXt=U6((z4(),L4(Vy(WXt,1),GSt,411,0,[NXt,DXt,LXt,RXt])))}function JQ(){JQ=O,I2t=U6((Vnt(),L4(Vy(R2t,1),GSt,197,0,[P2t,T2t,M2t,_2t])))}function tZ(){tZ=O,Mre=U6((P6(),L4(Vy(Ore,1),GSt,396,0,[Sre,Ere,kre,Cre])))}function eZ(){eZ=O,Kne=U6((Brt(),L4(Vy(Jne,1),GSt,285,0,[Hne,Fne,zne,$ne])))}function nZ(){nZ=O,mne=U6((m9(),L4(Vy(Ene,1),GSt,218,0,[bne,dne,fne,pne])))}function iZ(){iZ=O,yre=U6((ctt(),L4(Vy(xre,1),GSt,311,0,[wre,bre,mre,gre])))}function rZ(){rZ=O,ire=U6((jtt(),L4(Vy(dre,1),GSt,374,0,[tre,ere,Jie,Zie])))}function oZ(){oZ=O,tvt(),rce=tCt,ice=eCt,ace=new id(tCt),oce=new id(eCt)}function aZ(){aZ=O,aGt=new qC(dPt,0),oGt=new qC("IMPROVE_STRAIGHTNESS",1)}function sZ(t,e){return 10!=QZ(e)&&L4(Y5(e),e.hm,e.__elementTypeId$,QZ(e),t),t}function cZ(t,e){var n;return-1!=(n=hZ(t,e,0))&&(zG(t,n),!0)}function uZ(t,e){var n;return(n=QD(UG(t.e,e),387))?(zL(n),n.e):null}function lZ(t){var e;return eT(t)&&(e=0-t,!isNaN(e))?e:A3(h5(t))}function hZ(t,e,n){for(;n0?(t.f[u.p]=f/(u.e.c.length+u.g.c.length),t.c=n.Math.min(t.c,t.f[u.p]),t.b=n.Math.max(t.b,t.f[u.p])):s&&(t.f[u.p]=f)}}(t,e,i),0==t.a.c.length||function(t,e){var n,i,r,o,a,s,c,u,l,h;for(u=t.e[e.c.p][e.p]+1,c=e.c.a.c.length+1,s=new md(t.a);s.a=0?Nnt(t,n,!0,!0):iht(t,e,!0)}function $Z(t,e){var n,i;return ZS(),n=MX(t),i=MX(e),!!n&&!!i&&!Cnt(n.k,i.k)}function HZ(t){(this.q?this.q:(XB(),XB(),M$t)).Ac(t.q?t.q:(XB(),XB(),M$t))}function BZ(t,e){hKt=new ne,wKt=e,QD((lKt=t).b,65),QY(lKt,hKt,null),Kvt(lKt)}function KZ(t,e,n){var i;return i=t.g[e],zO(t,e,t.oi(e,n)),t.gi(e,n,i),t.ci(),i}function VZ(t,e){var n;return(n=t.Xc(e))>=0&&(t.$c(n),!0)}function WZ(t){var e;return t.d!=t.r&&(e=dot(t),t.e=!!e&&e.Cj()==$Lt,t.d=e),t.e}function UZ(t,e){var n;for(C$(t),C$(e),n=!1;e.Ob();)n|=t.Fc(e.Pb());return n}function XZ(t,e){var n;return(n=QD(H$(t.e,e),387))?(OO(t,n),n.e):null}function qZ(t){var e,n;return e=t/60|0,0==(n=t%60)?""+e:e+":"+n}function GZ(t,e){return G7(t),new _R(t,new GN(new JG(e,t.a)))}function YZ(t,e){var n=t.a[e],i=(o5(),Pzt)[typeof n];return i?i(n):t8(typeof n)}function QZ(t){return null==t.__elementTypeCategory$?10:t.__elementTypeCategory$}function ZZ(t){var e;return null!=(e=0==t.b.c.length?null:ER(t.b,0))&&i2(t,0),e}function JZ(t,e){for(;e[0]=0;)++e[0]}function tJ(t,e){this.e=e,this.a=h4(t),this.a<54?this.f=YU(t):this.c=qet(t)}function eJ(t,e,n,i){Dkt(),tm.call(this,26),this.c=t,this.a=e,this.d=n,this.b=i}function nJ(t,e,n){var i,r;for(i=10,r=0;rt.a[i]&&(i=n);return i}function cJ(t,e){return 0==e.e||0==t.e?v$t:(Eht(),Qdt(t,e))}function uJ(){uJ=O,SWt=new Ce,EWt=new Se,xWt=new Oe,kWt=new Ie,CWt=new je}function lJ(){lJ=O,NHt=new oC("BY_SIZE",0),DHt=new oC("BY_SIZE_AND_SHAPE",1)}function hJ(){hJ=O,ZKt=new hC("EADES",0),JKt=new hC("FRUCHTERMAN_REINGOLD",1)}function fJ(){fJ=O,Bqt=new WC("READING_DIRECTION",0),Kqt=new WC("ROTATION",1)}function dJ(){dJ=O,Hqt=U6((xit(),L4(Vy(Vqt,1),GSt,335,0,[Lqt,Dqt,Fqt,zqt,Rqt])))}function pJ(){pJ=O,F2t=U6((cit(),L4(Vy(X2t,1),GSt,315,0,[L2t,A2t,N2t,j2t,D2t])))}function bJ(){bJ=O,UXt=U6((_at(),L4(Vy(tqt,1),GSt,363,0,[HXt,KXt,VXt,BXt,$Xt])))}function gJ(){gJ=O,sQt=U6((g9(),L4(Vy(v2t,1),GSt,163,0,[oQt,eQt,nQt,iQt,rQt])))}function mJ(){mJ=O,C7t=U6((Act(),L4(Vy(s9t,1),GSt,316,0,[v7t,y7t,S7t,x7t,k7t])))}function wJ(){wJ=O,T9t=U6((Zet(),L4(Vy(F9t,1),GSt,175,0,[_9t,C9t,S9t,M9t,E9t])))}function vJ(){vJ=O,i7t=U6((Rdt(),L4(Vy(s7t,1),GSt,355,0,[Z8t,Q8t,t7t,J8t,e7t])))}function yJ(){yJ=O,oWt=U6((Nst(),L4(Vy(cWt,1),GSt,356,0,[JVt,tWt,eWt,nWt,iWt])))}function xJ(){xJ=O,ane=U6((n7(),L4(Vy(lne,1),GSt,103,0,[ine,nne,ene,tne,rne])))}function kJ(){kJ=O,sie=U6((Jet(),L4(Vy(pie,1),GSt,249,0,[iie,oie,eie,nie,rie])))}function SJ(){SJ=O,Uie=U6((Oxt(),L4(Vy(nre,1),pPt,61,0,[Kie,Cie,Eie,Bie,Vie])))}function EJ(t,e){var n;return(n=QD(H$(t.a,e),134))||(n=new Zt,DH(t.a,e,n)),n}function CJ(t){var e;return!!(e=QD(Ast(t,(jkt(),JGt)),305))&&e.a==t}function _J(t){var e;return!!(e=QD(Ast(t,(jkt(),JGt)),305))&&e.i==t}function MJ(t,e){return wH(e),nz(t),!!t.d.Ob()&&(e.td(t.d.Pb()),!0)}function PJ(t){return k8(t,Jkt)>0?Jkt:k8(t,nEt)<0?nEt:qR(t)}function TJ(t){return t<3?(m0(t,USt),t+1):t=0&&e=-.01&&t.a<=P_t&&(t.a=0),t.b>=-.01&&t.b<=P_t&&(t.b=0),t}function AJ(t,e){return e==(dD(),dD(),H$t)?t.toLocaleLowerCase():t.toLowerCase()}function NJ(t){return(0!=(2&t.i)?"interface ":0!=(1&t.i)?"":"class ")+(uA(t),t.o)}function DJ(t){var e;e=new Ww,fQ((!t.q&&(t.q=new vz(fae,t,11,10)),t.q),e)}function LJ(t){this.g=t,this.f=new im,this.a=n.Math.min(this.g.c.c,this.g.d.c)}function RJ(t){this.b=new im,this.a=new im,this.c=new im,this.d=new im,this.e=t}function FJ(t,e){this.a=new rm,this.e=new rm,this.b=(r8(),S2t),this.c=t,this.b=e}function zJ(t,e,n){uN.call(this),ZJ(this),this.a=t,this.c=n,this.b=e.d,this.f=e.e}function $J(t){this.d=t,this.c=t.c.vc().Kc(),this.b=null,this.a=null,this.e=(mv(),czt)}function HJ(t){if(t<0)throw lm(new Yv("Illegal Capacity: "+t));this.g=this.ri(t)}function BJ(t){var e;Cj(!!t.c),e=t.c.a,YJ(t.d,t.c),t.b==t.c?t.b=e:--t.a,t.c=null}function KJ(t,e){var n;return G7(t),n=new zB(t,t.a.rd(),4|t.a.qd(),e),new _R(t,n)}function VJ(t,e){var n;for(n=t.Kc();n.Ob();)p5(QD(n.Pb(),70),(jkt(),SYt),e)}function WJ(t){var e;return(e=ey(hA(Ast(t,(wkt(),k1t)))))<0&&p5(t,k1t,e=0),e}function UJ(t,e,n,i,r,o){var a;ZV(a=EG(i),r),QV(a,o),Zlt(t.a,i,new kD(a,e,n.f))}function XJ(t,e){var n;if(!(n=Jdt(t.Tg(),e)))throw lm(new Yv(xNt+e+ENt));return n}function qJ(t,e){var n;for(n=t;TV(n);)if((n=TV(n))==e)return!0;return!1}function GJ(t,e){var n,i,r,o;for(wH(e),r=0,o=(i=t.c).length;r>16!=6?null:QD(Kht(t),235)}(t))&&!e.kh()&&(t.w=e),e)}function o1(t){var e;return null==t?null:function(t,e){var n,i,r,o,a;if(null==t)return null;for(a=YY(qce,hEt,25,2*e,15,1),i=0,r=0;i>4&15,o=15&t[i],a[r++]=Ure[n],a[r++]=Ure[o];return Ytt(a,0,a.length)}(e=QD(t,190),e.length)}function a1(t,e){if(null==t.g||e>=t.i)throw lm(new HP(e,t.i));return t.li(e,t.g[e])}function s1(t){var e,n;for(e=t.a.d.j,n=t.c.d.j;e!=n;)e2(t.b,e),e=j7(e);e2(t.b,e)}function c1(t,e){var n,i,r,o;for(r=0,o=(i=t.d).length;r=14&&e<=16)),t}function f1(t,e,n){var i=function(){return t.apply(i,arguments)};return e.apply(i,n),i}function d1(t,e,n){var i,r;i=e;do{r=ey(t.p[i.p])+n,t.p[i.p]=r,i=t.a[i.p]}while(i!=e)}function p1(t,e){var n,i;i=t.a,n=function(t,e,n){var i,r;return r=t.a,t.a=e,0!=(4&t.Db)&&0==(1&t.Db)&&(i=new mz(t,1,5,r,t.a),n?Tat(n,i):n=i),n}(t,e,null),i!=e&&!t.e&&(n=Xyt(t,e,n)),n&&n.Fi()}function b1(t,e){return XT(),u0(eEt),n.Math.abs(t-e)<=eEt||t==e||isNaN(t)&&isNaN(e)}function g1(t,e){return XT(),u0(eEt),n.Math.abs(t-e)<=eEt||t==e||isNaN(t)&&isNaN(e)}function m1(t,e){return function(t){return t?t.i:null}(z2(t,e,qR(i9(KSt,BH(qR(i9(null==e?0:G5(e),VSt)),15)))))}function w1(){w1=O,XWt=U6((bct(),L4(Vy(qWt,1),GSt,267,0,[VWt,KWt,HWt,WWt,BWt,$Wt])))}function v1(){v1=O,mte=U6((mat(),L4(Vy(one,1),GSt,291,0,[bte,pte,dte,hte,lte,fte])))}function y1(){y1=O,Q9t=U6((Wnt(),L4(Vy(gte,1),GSt,248,0,[V9t,X9t,q9t,G9t,W9t,U9t])))}function x1(){x1=O,yqt=U6((vut(),L4(Vy(Sqt,1),GSt,227,0,[bqt,mqt,pqt,gqt,wqt,dqt])))}function k1(){k1=O,EGt=U6((uct(),L4(Vy(DGt,1),GSt,275,0,[xGt,wGt,kGt,yGt,vGt,mGt])))}function S1(){S1=O,gGt=U6((Yot(),L4(Vy(SGt,1),GSt,274,0,[fGt,hGt,pGt,lGt,dGt,uGt])))}function E1(){E1=O,y2t=U6((nst(),L4(Vy(E2t,1),GSt,313,0,[m2t,b2t,d2t,p2t,w2t,g2t])))}function C1(){C1=O,rGt=U6((vct(),L4(Vy(sGt,1),GSt,276,0,[Zqt,Qqt,tGt,Jqt,nGt,eGt])))}function _1(){_1=O,p5t=U6((kut(),L4(Vy(e6t,1),GSt,327,0,[f5t,c5t,l5t,u5t,h5t,s5t])))}function M1(){M1=O,Sie=U6((Ilt(),L4(Vy(Wie,1),GSt,273,0,[yie,wie,vie,mie,gie,xie])))}function P1(){P1=O,Cne=U6((yst(),L4(Vy(Lne,1),GSt,312,0,[kne,yne,Sne,wne,xne,vne])))}function T1(t,e){var n;n=t.a,t.a=e,0!=(4&t.Db)&&0==(1&t.Db)&&z3(t,new sq(t,0,n,t.a))}function O1(t,e){var n;n=t.b,t.b=e,0!=(4&t.Db)&&0==(1&t.Db)&&z3(t,new sq(t,1,n,t.b))}function I1(t,e){var n;n=t.b,t.b=e,0!=(4&t.Db)&&0==(1&t.Db)&&z3(t,new sq(t,3,n,t.b))}function j1(t,e){var n;n=t.f,t.f=e,0!=(4&t.Db)&&0==(1&t.Db)&&z3(t,new sq(t,3,n,t.f))}function A1(t,e){var n;n=t.g,t.g=e,0!=(4&t.Db)&&0==(1&t.Db)&&z3(t,new sq(t,4,n,t.g))}function N1(t,e){var n;n=t.i,t.i=e,0!=(4&t.Db)&&0==(1&t.Db)&&z3(t,new sq(t,5,n,t.i))}function D1(t,e){var n;n=t.j,t.j=e,0!=(4&t.Db)&&0==(1&t.Db)&&z3(t,new sq(t,6,n,t.j))}function L1(t,e){var n;n=t.j,t.j=e,0!=(4&t.Db)&&0==(1&t.Db)&&z3(t,new sq(t,1,n,t.j))}function R1(t,e){var n;n=t.c,t.c=e,0!=(4&t.Db)&&0==(1&t.Db)&&z3(t,new sq(t,4,n,t.c))}function F1(t,e){var n;n=t.k,t.k=e,0!=(4&t.Db)&&0==(1&t.Db)&&z3(t,new sq(t,2,n,t.k))}function z1(t,e){var n;n=t.d,t.d=e,0!=(4&t.Db)&&0==(1&t.Db)&&z3(t,new cq(t,2,n,t.d))}function $1(t,e){var n;n=t.s,t.s=e,0!=(4&t.Db)&&0==(1&t.Db)&&z3(t,new cq(t,4,n,t.s))}function H1(t,e){var n;n=t.t,t.t=e,0!=(4&t.Db)&&0==(1&t.Db)&&z3(t,new cq(t,5,n,t.t))}function B1(t,e){var n;n=t.F,t.F=e,0!=(4&t.Db)&&0==(1&t.Db)&&z3(t,new mz(t,1,5,n,e))}function K1(t,e){var n;return(n=QD(H$((CE(),Doe),t),55))?n.xj(e):YY(qFt,oSt,1,e,5,1)}function V1(t,e){var n;return e in t.a&&(n=SV(t,e).he())?n.a:null}function W1(t,e){var n,i;return Dx(),i=new cc,!!e&&Gdt(i,e),L0(n=i,t),n}function U1(t,e,n){if(k6(t,n),!t.Bk()&&null!=n&&!t.wj(n))throw lm(new Om);return n}function X1(t,e){return t.n=e,t.n?(t.f=new im,t.e=new im):(t.f=null,t.e=null),t}function q1(t,e,n,i,r,o){var a;return i0(n,a=E$(t,e)),a.i=r?8:0,a.f=i,a.e=r,a.g=o,a}function G1(t,e,n,i,r){this.d=e,this.k=i,this.f=r,this.o=-1,this.p=1,this.c=t,this.a=n}function Y1(t,e,n,i,r){this.d=e,this.k=i,this.f=r,this.o=-1,this.p=2,this.c=t,this.a=n}function Q1(t,e,n,i,r){this.d=e,this.k=i,this.f=r,this.o=-1,this.p=6,this.c=t,this.a=n}function Z1(t,e,n,i,r){this.d=e,this.k=i,this.f=r,this.o=-1,this.p=7,this.c=t,this.a=n}function J1(t,e,n,i,r){this.d=e,this.j=i,this.e=r,this.o=-1,this.p=4,this.c=t,this.a=n}function t0(t,e){var n,i,r,o;for(r=0,o=(i=e).length;r=0),function(t,e){var n,i,r;return i=t.a.length-1,n=e-t.b&i,r=t.c-e&i,Sj(n<(t.c-t.b&i)),n>=r?(function(t,e){var n,i;for(n=t.a.length-1,t.c=t.c-1&n;e!=t.c;)i=e+1&n,L$(t.a,e,t.a[i]),e=i;L$(t.a,t.c,null)}(t,e),-1):(function(t,e){var n,i;for(n=t.a.length-1;e!=t.b;)i=e-1&n,L$(t.a,e,t.a[i]),e=i;L$(t.a,t.b,null),t.b=t.b+1&n}(t,e),1)}(t.d,t.c)<0&&(t.a=t.a-1&t.d.a.length-1,t.b=t.d.c),t.c=-1}function c0(t){return t.a<54?t.f<0?-1:t.f>0?1:0:(!t.c&&(t.c=J6(t.f)),t.c).e}function u0(t){if(!(t>=0))throw lm(new Yv("tolerance ("+t+") must be >= 0"));return t}function l0(){return x9t||h6(x9t=new tgt,L4(Vy(eBt,1),oSt,130,0,[new Ih])),x9t}function h0(){h0=O,a3t=new u_(M_t,0),r3t=new u_("INPUT",1),o3t=new u_("OUTPUT",2)}function f0(){f0=O,Oqt=new KC("ARD",0),jqt=new KC("MSD",1),Iqt=new KC("MANUAL",2)}function d0(){d0=O,U3t=new b_("BARYCENTER",0),X3t=new b_($Pt,1),q3t=new b_(HPt,2)}function p0(t,e){var n;if(n=t.gc(),e<0||e>n)throw lm(new kN(e,n));return new qN(t,e)}function b0(t,e){var n;return TO(e,42)?t.c.Mc(e):(n=ytt(t,e),net(t,e),n)}function g0(t,e,n){return s8(t,e),E2(t,n),$1(t,0),H1(t,1),d7(t,!0),l7(t,!0),t}function m0(t,e){if(t<0)throw lm(new Yv(e+" cannot be negative but was: "+t));return t}function w0(t,e){var n,i;for(n=0,i=t.gc();n0?QD(ER(n.a,i-1),10):null}function A0(t,e){var n;n=t.k,t.k=e,0!=(4&t.Db)&&0==(1&t.Db)&&z3(t,new mz(t,1,2,n,t.k))}function N0(t,e){var n;n=t.f,t.f=e,0!=(4&t.Db)&&0==(1&t.Db)&&z3(t,new mz(t,1,8,n,t.f))}function D0(t,e){var n;n=t.i,t.i=e,0!=(4&t.Db)&&0==(1&t.Db)&&z3(t,new mz(t,1,7,n,t.i))}function L0(t,e){var n;n=t.a,t.a=e,0!=(4&t.Db)&&0==(1&t.Db)&&z3(t,new mz(t,1,8,n,t.a))}function R0(t,e){var n;n=t.b,t.b=e,0!=(4&t.Db)&&0==(1&t.Db)&&z3(t,new mz(t,1,0,n,t.b))}function F0(t,e){var n;n=t.b,t.b=e,0!=(4&t.Db)&&0==(1&t.Db)&&z3(t,new mz(t,1,0,n,t.b))}function z0(t,e){var n;n=t.c,t.c=e,0!=(4&t.Db)&&0==(1&t.Db)&&z3(t,new mz(t,1,1,n,t.c))}function $0(t,e){var n;n=t.c,t.c=e,0!=(4&t.Db)&&0==(1&t.Db)&&z3(t,new mz(t,1,1,n,t.c))}function H0(t,e){var n;n=t.c,t.c=e,0!=(4&t.Db)&&0==(1&t.Db)&&z3(t,new mz(t,1,4,n,t.c))}function B0(t,e){var n;n=t.d,t.d=e,0!=(4&t.Db)&&0==(1&t.Db)&&z3(t,new mz(t,1,1,n,t.d))}function K0(t,e){var n;n=t.D,t.D=e,0!=(4&t.Db)&&0==(1&t.Db)&&z3(t,new mz(t,1,2,n,t.D))}function V0(t,e){t.r>0&&t.c0&&0!=t.g&&V0(t.i,e/t.r*t.i.d))}function W0(t,e){return Dpt(t.e,e)?(EE(),WZ(e)?new oR(e,t):new GM(e,t)):new ZM(e,t)}function U0(t,e){return function(t){return t?t.g:null}($2(t.a,e,qR(i9(KSt,BH(qR(i9(null==e?0:G5(e),VSt)),15)))))}function X0(t){var e;return(t=n.Math.max(t,2))>(e=S5(t))?(e<<=1)>0?e:XSt:e}function q0(t){switch(xI(3!=t.e),t.e){case 2:return!1;case 0:return!0}return function(t){return t.e=3,t.d=t.Yb(),2!=t.e&&(t.e=0,!0)}(t)}function G0(t,e){var n;return!!TO(e,8)&&(n=QD(e,8),t.a==n.a&&t.b==n.b)}function Y0(t,e,n){var i,r;return r=e>>5,i=31&e,WW(UF(t.n[n][r],qR(VF(i,1))),3)}function Q0(t,e){var n;n=t.b,t.b=e,0!=(4&t.Db)&&0==(1&t.Db)&&z3(t,new mz(t,1,21,n,t.b))}function Z0(t,e){var n;n=t.d,t.d=e,0!=(4&t.Db)&&0==(1&t.Db)&&z3(t,new mz(t,1,11,n,t.d))}function J0(t,e){var n;n=t.j,t.j=e,0!=(4&t.Db)&&0==(1&t.Db)&&z3(t,new mz(t,1,13,n,t.j))}function t2(t,e,n){var i,r,o;for(o=t.a.length-1,r=t.b,i=0;i0?e-1:e,mx(function(t,e){return t.j=e,t}(X1(DL(new av,n),t.n),t.j),t.k)}(t,t.g),FL(t.a,n),n.i=t,t.d=e,n)}function t3(t,e,n){ast(n,"DFS Treeifying phase",1),function(t,e){var n,i,r;for(r=e.b.b,t.a=new CS,t.b=YY(Gce,MEt,25,r,15,1),n=0,i=ent(e.b,0);i.b!=i.d.c;)QD(TX(i),86).g=n++}(t,e),function(t,e){var n,i,r,o,a;for(a=QD(Ast(e,(sft(),G5t)),425),o=ent(e.b,0);o.b!=o.d.c;)if(r=QD(TX(o),86),0==t.b[r.g]){switch(a.g){case 0:kit(t,r);break;case 1:wft(t,r)}t.b[r.g]=2}for(i=ent(t.a,0);i.b!=i.d.c;)Y9((n=QD(TX(i),188)).b.d,n,!0),Y9(n.c.b,n,!0);p5(e,(ayt(),P5t),t.a)}(t,e),t.a=null,t.b=null,zct(n)}function e3(t,e,n){this.g=t,this.d=e,this.e=n,this.a=new im,function(t){var e,n,i,r;for(r=Y8(t.d,t.e).Kc();r.Ob();)for(i=QD(r.Pb(),11),n=new md(t.e==(Oxt(),Vie)?i.e:i.g);n.a0&&(this.g=this.ri(this.i+(this.i/8|0)+1),t.Qc(this.g))}function i3(t,e){TL.call(this,lse,t,e),this.b=this,this.a=mpt(t.Tg(),OJ(this.e.Tg(),this.c))}function r3(t,e){var n,i;for(wH(e),i=e.vc().Kc();i.Ob();)n=QD(i.Pb(),42),t.zc(n.cd(),n.dd())}function o3(t){var e;if(-2==t.b){if(0==t.e)e=-1;else for(e=0;0==t.a[e];e++);t.b=e}return t.b}function a3(t){switch(t.g){case 2:return Oxt(),Vie;case 4:return Oxt(),Eie;default:return t}}function s3(t){switch(t.g){case 1:return Oxt(),Bie;case 3:return Oxt(),Cie;default:return t}}function c3(t,e){return EI(),aP(t)?HG(t,fA(e)):oP(t)?qF(t,hA(e)):rP(t)?XF(t,lA(e)):t.wd(e)}function u3(t,e){e.q=t,t.d=n.Math.max(t.d,e.r),t.b+=e.d+(0==t.a.c.length?0:t.c),nL(t.a,e)}function l3(t,e){var n,i,r,o;return r=t.c,n=t.c+t.b,o=t.d,i=t.d+t.a,e.a>r&&e.ao&&e.b0||l.j==Vie&&l.e.c.length-l.g.c.length<0)){e=!1;break}for(r=new md(l.g);r.a=0x8000000000000000?(NZ(),Ozt):(i=!1,t<0&&(i=!0,t=-t),n=0,t>=XEt&&(t-=(n=cV(t/XEt))*XEt),e=0,t>=UEt&&(t-=(e=cV(t/UEt))*UEt),r=rO(cV(t),e,n),i&&j5(r),r)}(t))}function F3(t,e){var n,i,r;for(n=t.c.Ee(),r=e.Kc();r.Ob();)i=r.Pb(),t.a.Od(n,i);return t.b.Kb(n)}function z3(t,e){var n,i,r;if(null!=(n=t.Jg())&&t.Mg())for(i=0,r=n.length;i1||t.Ob())return++t.a,t.g=0,e=t.i,t.Ob(),e;throw lm(new Fm)}function G3(t){var e,n,i;return n=0,(i=t)<0&&(i+=XEt,n=VEt),e=cV(i/UEt),rO(cV(i-e*UEt),e,n)}function Y3(t){var e,n,i;for(i=0,n=new ES(t.a);n.a>22),r=t.h-e.h+(i>>22),rO(n&KEt,i&KEt,r&VEt)}function k4(t){var e;return t<128?(!(e=(bR(),Bzt)[t])&&(e=Bzt[t]=new nd(t)),e):new nd(t)}function S4(t){var e;return TO(t,78)?t:((e=t&&t.__java$exception)||_m(e=new e8(t)),e)}function E4(t){if(TO(t,186))return QD(t,118);if(t)return null;throw lm(new Jv(vDt))}function C4(t,e){if(null==e)return!1;for(;t.a!=t.b;)if(Q8(e,b8(t)))return!0;return!1}function _4(t){return!!t.a.Ob()||t.a==t.d&&(t.a=new tX(t.e.f),t.a.Ob())}function M4(t,e){var n;return 0!=(n=e.Pc()).length&&(uL(t.c,t.c.length,n),!0)}function P4(t,e){var n;for(n=new md(t.b);n.a=0,"Negative initial capacity"),kL(e>=0,"Non-positive load factor"),Uz(this)}function s5(t,e,n){return!(t>=128)&&lP(t<64?WW(VF(1,t),n):WW(VF(1,t-64),e),0)}function c5(t,e){return!(!t||!e||t==e)&&x9(t.b.c,e.b.c+e.b.b)<0&&x9(e.b.c,t.b.c+t.b.b)<0}function u5(t){var e,n,i;return n=t.n,i=t.o,e=t.d,new vB(n.a-e.b,n.b-e.d,i.a+(e.b+e.c),i.b+(e.d+e.a))}function l5(t){var e,i;for(null==t.j&&(t.j=(jK(),function(t){var e,i,r;for(e="Sz",i="ez",r=n.Math.min(t.length,5)-1;r>=0;r--)if(zN(t[r].d,e)||zN(t[r].d,i)){t.length>=r+1&&t.splice(0,r+1);break}return t}(vzt.ce(t)))),e=0,i=t.j.length;e(i=t.gc()))throw lm(new kN(e,i));return t.hi()&&(n=IV(t,n)),t.Vh(e,n)}function d5(t,e,n){return null==n?(!t.q&&(t.q=new rm),UG(t.q,e)):(!t.q&&(t.q=new rm),DH(t.q,e,n)),t}function p5(t,e,n){return null==n?(!t.q&&(t.q=new rm),UG(t.q,e)):(!t.q&&(t.q=new rm),DH(t.q,e,n)),t}function b5(t){var e,i;return u4(i=new qG,t),p5(i,(g2(),CVt),t),function(t,e,i){var r,o,a,s,c;for(r=0,a=new UO((!t.a&&(t.a=new vz(coe,t,10,11)),t.a));a.e!=a.i.gc();)s="",0==(!(o=QD(fnt(a),33)).n&&(o.n=new vz(soe,o,1,7)),o.n).i||(s=QD(a1((!o.n&&(o.n=new vz(soe,o,1,7)),o.n),0),137).a),u4(c=new V$(s),o),p5(c,(g2(),CVt),o),c.b=r++,c.d.a=o.i+o.g/2,c.d.b=o.j+o.f/2,c.e.a=n.Math.max(o.g,1),c.e.b=n.Math.max(o.f,1),nL(e.e,c),Jut(i.f,o,c),QD(Eft(o,(Kbt(),dVt)),98),zat()}(t,i,e=new rm),function(t,e,i){var r,o,a,s,c,u,h,f;for(u=new UO((!t.a&&(t.a=new vz(coe,t,10,11)),t.a));u.e!=u.i.gc();)for(o=new jF(dI(pdt(c=QD(fnt(u),33)).a.Kc(),new l));Qht(o);){if(!(r=QD(kG(o),79)).b&&(r.b=new IN(toe,r,4,7)),!(r.b.i<=1&&(!r.c&&(r.c=new IN(toe,r,5,8)),r.c.i<=1)))throw lm(new dy("Graph must not contain hyperedges."));if(!zht(r)&&c!=ost(QD(a1((!r.c&&(r.c=new IN(toe,r,5,8)),r.c),0),82)))for(u4(h=new rN,r),p5(h,(g2(),CVt),r),Tf(h,QD(nP(LK(i.f,c)),144)),Of(h,QD(H$(i,ost(QD(a1((!r.c&&(r.c=new IN(toe,r,5,8)),r.c),0),82))),144)),nL(e.c,h),s=new UO((!r.n&&(r.n=new vz(soe,r,1,7)),r.n));s.e!=s.i.gc();)u4(f=new bq(h,(a=QD(fnt(s),137)).a),a),p5(f,CVt,a),f.e.a=n.Math.max(a.g,1),f.e.b=n.Math.max(a.f,1),Ywt(f),nL(e.d,f)}}(t,i,e),i}function g5(t,e){var n,i,r;for(n=!1,i=t.a[e].length,r=0;r>=1);return e}function E5(t){var e,n;return 32==(n=Jlt(t.h))?32==(e=Jlt(t.m))?Jlt(t.l)+32:e+20-10:n-12}function C5(t){var e;return null==(e=t.a[t.b])?null:(L$(t.a,t.b,null),t.b=t.b+1&t.a.length-1,e)}function _5(t){var e,n;return e=t.t-t.k[t.o.p]*t.d+t.j[t.o.p]>t.f,n=t.u+t.e[t.o.p]*t.d>t.f*t.s*t.d,e||n}function M5(t,e,n){var i,r;return i=new eQ(e,n),r=new K,t.b=Vpt(t,t.b,i,r),r.b||++t.c,t.b.b=!1,r.d}function P5(t,e,n){var i,r,o;for(o=0,r=Y8(e,n).Kc();r.Ob();)i=QD(r.Pb(),11),DH(t.c,i,g7(o++))}function T5(t){var e,n;for(n=new md(t.a.b);n.an&&(n=t[e]);return n}function L5(t,e,n){var i;return Ppt(t,e,i=new im,(Oxt(),Eie),!0,!1),Ppt(t,n,i,Vie,!1,!1),i}function R5(t,e,n){var i,r;return r=aX(e,"labels"),function(t,e,n){var i,r,o,a;if(n)for(r=((i=new NF(n.a.length)).b-i.a)*i.c<0?(ME(),Hce):new cI(i);r.Ob();)(o=sX(n,QD(r.Pb(),19).a))&&(a=W1(uX(o,XNt),e),DH(t.f,a,o),aDt in o.a&&A0(a,uX(o,aDt)),rst(o,a),olt(o,a))}((i=new IM(t,n)).a,i.b,r),r}function F5(t,e){var n;for(n=0;n1||e>=0&&t.b<3)}function X5(t){var e,n;for(e=new Nw,n=ent(t,0);n.b!=n.d.c;)Ij(e,0,new hT(QD(TX(n),8)));return e}function q5(t){var e;for(e=new md(t.a.b);e.a=t.b.c.length||(d6(t,2*e+1),(n=2*e+2)=0&&t[i]===e[i];i--);return i<0?0:AE(WW(t[i],uCt),WW(e[i],uCt))?-1:1}function g6(t,e){var n,i;return i=QD(K3(t.a,4),126),n=YY(Ioe,yLt,415,e,0,1),null!=i&&hvt(i,0,n,0,i.length),n}function m6(t,e){var n;return n=new Rbt(0!=(256&t.f),t.i,t.a,t.d,0!=(16&t.f),t.j,t.g,e),null!=t.e||(n.c=t),n}function w6(t,e,n,i,r){var o,a;for(a=n;a<=r;a++)for(o=e;o<=i;o++)if(Lit(t,o,a))return!0;return!1}function v6(t,e,n){var i,r,o,a;for(wH(n),a=!1,o=t.Zc(e),r=n.Kc();r.Ob();)i=r.Pb(),o.Rb(i),a=!0;return a}function y6(t,e,n){var i,r;for(r=n.Kc();r.Ob();)if(i=QD(r.Pb(),42),t.re(e,i.dd()))return!0;return!1}function x6(t,e,n){return t.d[e.p][n.p]||(function(t,e,n){if(t.e)switch(t.b){case 1:!function(t,e,n){t.i=0,t.e=0,e!=n&&K5(t,e,n)}(t.c,e,n);break;case 0:!function(t,e,n){t.i=0,t.e=0,e!=n&&V5(t,e,n)}(t.c,e,n)}else ZX(t.c,e,n);t.a[e.p][n.p]=t.c.i,t.a[n.p][e.p]=t.c.e}(t,e,n),t.d[e.p][n.p]=!0,t.d[n.p][e.p]=!0),t.a[e.p][n.p]}function k6(t,e){if(!t.ai()&&null==e)throw lm(new Yv("The 'no null' constraint is violated"));return e}function S6(t,e){null==t.D&&null!=t.B&&(t.D=t.B,t.B=null),K0(t,null==e?null:(wH(e),e)),t.C&&t.yk(null)}function E6(t,e){return!(!t||t==e||!Oj(e,(jkt(),yYt)))&&QD(Ast(e,(jkt(),yYt)),10)!=t}function C6(t){switch(t.i){case 2:return!0;case 1:return!1;case-1:++t.c;default:return t.pl()}}function _6(t){switch(t.i){case-2:return!0;case-1:return!1;case 1:--t.c;default:return t.ql()}}function M6(t){wV.call(this,"The given string does not match the expected format for individual spacings.",t)}function P6(){P6=O,Sre=new yM("ELK",0),Ere=new yM("JSON",1),kre=new yM("DOT",2),Cre=new yM("SVG",3)}function T6(){T6=O,C6t=new L_(dPt,0),_6t=new L_("RADIAL_COMPACTION",1),M6t=new L_("WEDGE_COMPACTION",2)}function O6(){O6=O,sHt=new $E("CONCURRENT",0),cHt=new $E("IDENTITY_FINISH",1),uHt=new $E("UNORDERED",2)}function I6(){I6=O,HS(),EKt=new $P(rMt,CKt=yKt),SKt=new Og(oMt),_Kt=new Og(aMt),MKt=new Og(sMt)}function j6(){j6=O,PXt=new ki,TXt=new Si,MXt=new Ei,_Xt=new Ci,wH(new _i),CXt=new L}function A6(){A6=O,w3t=new f_("CONSERVATIVE",0),v3t=new f_("CONSERVATIVE_SOFT",1),y3t=new f_("SLOPPY",2)}function N6(){N6=O,Ine=new RT(15),One=new LT((Ikt(),uee),Ine),jne=jee,_ne=kte,Mne=tee,Tne=iee,Pne=nee}function D6(t,e,n){var i,r;for(i=new CS,r=ent(n,0);r.b!=r.d.c;)FL(i,new hT(QD(TX(r),8)));v6(t,e,i)}function L6(t){var e;return!t.a&&(t.a=new vz(lae,t,9,5)),0!=(e=t.a).i?function(t){return t.b?t.b:t.a}(QD(a1(e,0),678)):null}function R6(t,e){var n;return n=n9(t,e),AE(XW(t,e),0)|function(t,e){return k8(t,e)>=0}(XW(t,n),0)?n:n9(OSt,XW(UF(n,63),1))}function F6(t,e){var n,i;if(0!=(i=t.c[e]))for(t.c[e]=0,t.d-=i,n=e+1;n0)return iz(e-1,t.a.c.length),zG(t.a,e-1);throw lm(new Rm)}function $6(t,e,n){if(t>e)throw lm(new Yv(LCt+t+RCt+e));if(t<0||e>n)throw lm(new My(LCt+t+FCt+e+MCt+n))}function H6(t){if(!t.a||0==(8&t.a.i))throw lm(new Qv("Enumeration class expected for layout option "+t.f))}function B6(t){var e;++t.j,0==t.i?t.g=null:t.injt?t-i>njt:i-t>njt)}function Q6(t,e){return t?e&&!t.j||TO(t,124)&&0==QD(t,124).a.b?0:t.Re():0}function Z6(t,e){return t?e&&!t.k||TO(t,124)&&0==QD(t,124).a.a?0:t.Se():0}function J6(t){return bbt(),t<0?-1!=t?new Ent(-1,-t):p$t:t<=10?g$t[cV(t)]:new Ent(1,t)}function t8(t){throw o5(),lm(new Tv("Unexpected typeof result '"+t+"'; please report this bug to the GWT team"))}function e8(t){wy(),kO(this),KB(this),this.e=t,Ipt(this,t),this.g=null==t?cSt:T9(t),this.a="",this.b=t,this.a=""}function n8(){this.a=new es,this.f=new Fb(this),this.b=new zb(this),this.i=new $b(this),this.e=new Hb(this)}function i8(){wv.call(this,new nQ(TJ(16))),m0(2,CSt),this.b=2,this.a=new PH(null,null,0,null),xm(this.a,this.a)}function r8(){r8=O,x2t=new n_("DUMMY_NODE_OVER",0),k2t=new n_("DUMMY_NODE_UNDER",1),S2t=new n_("EQUAL",2)}function o8(){o8=O,uWt=xV(L4(Vy(lne,1),GSt,103,0,[(n7(),ene),nne])),lWt=xV(L4(Vy(lne,1),GSt,103,0,[rne,tne]))}function a8(t){return(Oxt(),Lie).Hc(t.j)?ey(hA(Ast(t,(jkt(),GYt)))):A5(L4(Vy(K9t,1),_St,8,0,[t.i.n,t.n,t.a])).b}function s8(t,e){var n,i;n=t.nk(e,null),i=null,e&&(Rx(),p1(i=new sm,t.r)),(n=dst(t,i,n))&&n.Fi()}function c8(t,e){var n,i,r;return i=!1,n=e.q.d,e.dr&&(hat(e.q,r),i=n!=e.q.d)),i}function u8(t,e){var i,r,o,a,s;return a=e.i,s=e.j,r=a-(i=t.f).i,o=s-i.j,n.Math.sqrt(r*r+o*o)}function l8(t,e){var n;return(n=oet(t))||(!qre&&(qre=new Oc),Ivt(),fQ((n=new Qg(Rut(e))).Vk(),t)),n}function h8(t,e){var n,i;return(n=QD(t.c.Bc(e),14))?((i=t.hc()).Gc(n),t.d-=n.gc(),n.$b(),t.mc(i)):t.jc()}function f8(t,e){var n;for(n=0;n=0?e:-e;i>0;)i%2==0?(n*=n,i=i/2|0):(r*=n,i-=1);return e<0?1/r:r}function O8(t){var e,n,i,r;if(null!=t)for(n=0;n0&&s6(QD(ER(t.a,t.a.c.length-1),570),e)||nL(t.a,new rG(e))}function $8(t){var e;return(e=new Iy).a+="VerticalSegment ",vP(e,t.e),e.a+=" ",yP(e,fI(new Ey,new md(t.k))),e.a}function H8(t){var e;return(e=QD(XZ(t.c.c,""),229))||(e=new gW(cx(sx(new ws,""),"Other")),Uet(t.c.c,"",e)),e}function B8(t){var e;return 0!=(64&t.Db)?$ft(t):((e=new CI($ft(t))).a+=" (name: ",mP(e,t.zb),e.a+=")",e.a)}function K8(t,e,n){var i,r;return r=t.sb,t.sb=e,0!=(4&t.Db)&&0==(1&t.Db)&&(i=new mz(t,1,4,r,e),n?n.Ei(i):n=i),n}function V8(t,e){var n,i;for(n=0,i=r9(t,e).Kc();i.Ob();)n+=null!=Ast(QD(i.Pb(),11),(jkt(),zYt))?1:0;return n}function W8(t,e,n){var i,r,o;for(i=0,o=ent(t,0);o.b!=o.d.c&&!((r=ey(hA(TX(o))))>n);)r>=e&&++i;return i}function U8(t,e,n){var i,r;return r=t.r,t.r=e,0!=(4&t.Db)&&0==(1&t.Db)&&(i=new mz(t,1,8,r,t.r),n?n.Ei(i):n=i),n}function X8(t,e){var n,i;return!(i=(n=QD(e,676)).vk())&&n.wk(i=TO(e,88)?new UM(t,QD(e,26)):new yU(t,QD(e,148))),i}function q8(t,e,n){var i;t.qi(t.i+1),i=t.oi(e,n),e!=t.i&&hvt(t.g,e,t.g,e+1,t.i-e),L$(t.g,e,i),++t.i,t.bi(e,n),t.ci()}function G8(t,e){var n;return n=new ct,t.a.sd(n)?(KO(),new Iv(wH(fZ(t,n.a,e)))):(yH(t),KO(),KO(),B$t)}function Y8(t,e){switch(e.g){case 2:case 1:return r9(t,e);case 3:case 4:return T3(r9(t,e))}return XB(),XB(),_$t}function Q8(t,e){return aP(t)?zN(t,e):oP(t)?FN(t,e):rP(t)?(wH(t),iP(t)===iP(e)):PF(t)?t.Fb(e):sF(t)?qP(t,e):JW(t,e)}function Z8(t,e,n,i,r){0!=e&&0!=i&&(1==e?r[i]=Unt(r,n,i,t[0]):1==i?r[e]=Unt(r,t,e,n[0]):function(t,e,n,i,r){var o,a,s,c;if(iP(t)!==iP(e)||i!=r)for(s=0;sn)throw lm(new Bv(LCt+t+FCt+e+", size: "+n));if(t>e)throw lm(new Yv(LCt+t+RCt+e))}function o7(t,e,n){if(e<0)Clt(t,n);else{if(!n.Ij())throw lm(new Yv(xNt+n.ne()+kNt));QD(n,66).Nj().Vj(t,t.yh(),e)}}function a7(t,e,n,i,r,o){this.e=new im,this.f=(h0(),a3t),nL(this.e,t),this.d=e,this.a=n,this.b=i,this.f=r,this.c=o}function s7(t,e){var n,i;for(i=new UO(t);i.e!=i.i.gc();)if(n=QD(fnt(i),26),iP(e)===iP(n))return!0;return!1}function c7(t){return t>=65&&t<=70?t-65+10:t>=97&&t<=102?t-97+10:t>=48&&t<=57?t-48:0}function u7(t){var e;return 0!=(64&t.Db)?$ft(t):((e=new CI($ft(t))).a+=" (source: ",mP(e,t.d),e.a+=")",e.a)}function l7(t,e){var n;n=0!=(256&t.Bb),e?t.Bb|=256:t.Bb&=-257,0!=(4&t.Db)&&0==(1&t.Db)&&z3(t,new IG(t,1,2,n,e))}function h7(t,e){var n;n=0!=(256&t.Bb),e?t.Bb|=256:t.Bb&=-257,0!=(4&t.Db)&&0==(1&t.Db)&&z3(t,new IG(t,1,8,n,e))}function f7(t,e){var n;n=0!=(256&t.Bb),e?t.Bb|=256:t.Bb&=-257,0!=(4&t.Db)&&0==(1&t.Db)&&z3(t,new IG(t,1,8,n,e))}function d7(t,e){var n;n=0!=(512&t.Bb),e?t.Bb|=512:t.Bb&=-513,0!=(4&t.Db)&&0==(1&t.Db)&&z3(t,new IG(t,1,3,n,e))}function p7(t,e){var n;n=0!=(512&t.Bb),e?t.Bb|=512:t.Bb&=-513,0!=(4&t.Db)&&0==(1&t.Db)&&z3(t,new IG(t,1,9,n,e))}function b7(t,e){var n;return-1==t.b&&t.a&&(n=t.a.Gj(),t.b=n?t.c.Xg(t.a.aj(),n):ntt(t.c.Tg(),t.a)),t.c.Og(t.b,e)}function g7(t){var e,n;return t>-129&&t<128?(e=t+128,!(n=(JL(),Uzt)[e])&&(n=Uzt[e]=new rd(t)),n):new rd(t)}function m7(t){var e,n;return t>-129&&t<128?(e=t+128,!(n=(pR(),e$t)[e])&&(n=e$t[e]=new ad(t)),n):new ad(t)}function w7(t){var e;return t.k==(bct(),HWt)&&((e=QD(Ast(t,(jkt(),fYt)),61))==(Oxt(),Cie)||e==Bie)}function v7(t,e,n){var i,r;return(r=Vft(t.b,e))&&(i=QD(Ovt(MZ(t,r),""),26))?Dft(t,i,e,n):null}function y7(t,e){var n,i;for(i=new UO(t);i.e!=i.i.gc();)if(n=QD(fnt(i),138),iP(e)===iP(n))return!0;return!1}function x7(t,e,n){var i;if(e>(i=t.gc()))throw lm(new kN(e,i));if(t.hi()&&t.Hc(n))throw lm(new Yv(SDt));t.Xh(e,n)}function k7(t,e){var n;if(TO(n=Jdt(t,e),322))return QD(n,34);throw lm(new Yv(xNt+e+"' is not a valid attribute"))}function S7(t){var e,n,i;for(e=new im,i=new md(t.b);i.ae?1:t==e?0==t?A7(1/t,1/e):0:isNaN(t)?isNaN(e)?0:1:-1}function N7(t,e,n){var i,r;return t.ej()?(r=t.fj(),i=Qlt(t,e,n),t.$i(t.Zi(7,g7(n),i,e,r)),i):Qlt(t,e,n)}function D7(t,e){var n,i,r;null==t.d?(++t.e,--t.f):(r=e.cd(),function(t,e,n){++t.e,--t.f,QD(t.d[e].$c(n),133).dd()}(t,i=((n=e.Sh())&Jkt)%t.d.length,Kft(t,i,n,r)))}function L7(t,e){var n;n=0!=(t.Bb&FNt),e?t.Bb|=FNt:t.Bb&=-1025,0!=(4&t.Db)&&0==(1&t.Db)&&z3(t,new IG(t,1,10,n,e))}function R7(t,e){var n;n=0!=(t.Bb&nCt),e?t.Bb|=nCt:t.Bb&=-4097,0!=(4&t.Db)&&0==(1&t.Db)&&z3(t,new IG(t,1,12,n,e))}function F7(t,e){var n;n=0!=(t.Bb&HLt),e?t.Bb|=HLt:t.Bb&=-8193,0!=(4&t.Db)&&0==(1&t.Db)&&z3(t,new IG(t,1,15,n,e))}function z7(t,e){var n;n=0!=(t.Bb&BLt),e?t.Bb|=BLt:t.Bb&=-2049,0!=(4&t.Db)&&0==(1&t.Db)&&z3(t,new IG(t,1,11,n,e))}function $7(t){var e,n;for(n=Qft(r1(t)).Kc();n.Ob();)if(mmt(t,e=fA(n.Pb())))return gq((mE(),Joe),e);return null}function H7(t,e,n){var i;if(t.c)Tst(t.c,e,n);else for(i=new md(t.b);i.a>10)+oCt&dEt,e[1]=56320+(1023&t)&dEt,Ytt(e,0,e.length)}function q7(t){var e;return(e=QD(Ast(t,(wkt(),c1t)),103))==(n7(),ine)?ey(hA(Ast(t,zJt)))>=1?nne:tne:e}function G7(t){if(t.c)G7(t.c);else if(t.d)throw lm(new Qv("Stream already terminated, can't be modified or used"))}function Y7(t){var e;return 0!=(64&t.Db)?$ft(t):((e=new CI($ft(t))).a+=" (identifier: ",mP(e,t.k),e.a+=")",e.a)}function Q7(t,e,n){var i;return Dx(),T1(i=new oc,e),O1(i,n),t&&fQ((!t.a&&(t.a=new XO(Qre,t,5)),t.a),i),i}function Z7(t,e,n,i){var r,o;return wH(i),wH(n),null==(o=null==(r=t.xc(e))?n:MS(QD(r,15),QD(n,14)))?t.Bc(e):t.zc(e,o),o}function J7(t){var e,n,i,r;return e2(n=new oD(e=QD(Ix((r=(i=t.gm).f)==uzt?i:r),9),QD(nN(e,e.length),9),0),t),n}function t9(t,e,n){var i,r;for(r=t.a.ec().Kc();r.Ob();)if(i=QD(r.Pb(),10),y4(n,QD(ER(e,i.p),14)))return i;return null}function e9(t,e){var n;return eT(t)&&eT(e)&&GEt<(n=t-e)&&n>22),r=t.h+e.h+(i>>22),rO(n&KEt,i&KEt,r&VEt)}(eT(t)?G3(t):t,eT(e)?G3(e):e))}function i9(t,e){var n;return eT(t)&&eT(e)&&GEt<(n=t*e)&&n>13|(15&t.m)<<9,r=t.m>>4&8191,o=t.m>>17|(255&t.h)<<5,a=(1048320&t.h)>>8,g=i*(s=8191&e.l),m=r*s,w=o*s,v=a*s,0!=(c=e.l>>13|(15&e.m)<<9)&&(g+=n*c,m+=i*c,w+=r*c,v+=o*c),0!=(u=e.m>>4&8191)&&(m+=n*u,w+=i*u,v+=r*u),0!=(l=e.m>>17|(255&e.h)<<5)&&(w+=n*l,v+=i*l),0!=(h=(1048320&e.h)>>8)&&(v+=n*h),d=((b=n*s)>>22)+(g>>9)+((262143&m)<<4)+((31&w)<<17),p=(m>>18)+(w>>5)+((4095&v)<<8),p+=(d+=(f=(b&KEt)+((511&g)<<13))>>22)>>22,rO(f&=KEt,d&=KEt,p&=VEt)}(eT(t)?G3(t):t,eT(e)?G3(e):e))}function r9(t,e){var n;return t.i||klt(t),(n=QD(VH(t.g,e),46))?new IW(t.j,QD(n.a,19).a,QD(n.b,19).a):(XB(),XB(),_$t)}function o9(t,e,n){var i;return i=t.a.get(e),t.a.set(e,void 0===n?null:n),void 0===i?(++t.c,gK(t.b)):++t.d,i}function a9(){var t,e,i;Zat(),i=G$t+++Date.now(),t=cV(n.Math.floor(i*ECt))&_Ct,e=cV(i-t*CCt),this.a=1502^t,this.b=e^SCt}function s9(t){var e,n;for(e=new im,n=new md(t.j);n.a>1&1431655765)>>2&858993459)+(858993459&t))>>4)+t&252645135,63&(t+=t>>8)+(t>>16)}function f9(t){var e,n,i;for(e=new UA(t.Hd().gc()),i=0,n=PQ(t.Hd().Kc());n.Ob();)qV(e,n.Pb(),g7(i++));return function(t){var e;switch(FH(),t.c.length){case 0:return rzt;case 1:return function(t,e){return FH(),wit(t,e),new OH(t,e)}((e=QD(ylt(new md(t)),42)).cd(),e.dd());default:return new Sv(QD(Vet(t,YY(ozt,FSt,42,t.c.length,0,1)),165))}}(e.a)}function d9(t,e){0==t.n.c.length&&nL(t.n,new gV(t.s,t.t,t.i)),nL(t.b,e),Iit(QD(ER(t.n,t.n.c.length-1),211),e),uwt(t,e)}function p9(t){return t.c==t.b.b&&t.i==t.g.b||(t.a.c=YY(qFt,oSt,1,0,5,1),M4(t.a,t.b),M4(t.a,t.g),t.c=t.b.b,t.i=t.g.b),t.a}function b9(t,e){var n,i;for(i=0,n=QD(e.Kb(t),20).Kc();n.Ob();)ty(lA(Ast(QD(n.Pb(),17),(jkt(),VYt))))||++i;return i}function g9(){g9=O,oQt=new o_(dPt,0),eQt=new o_("FIRST",1),nQt=new o_(WPt,2),iQt=new o_("LAST",3),rQt=new o_(UPt,4)}function m9(){m9=O,bne=new eM(M_t,0),dne=new eM("POLYLINE",1),fne=new eM("ORTHOGONAL",2),pne=new eM("SPLINES",3)}function w9(){w9=O,b8t=new z_("ASPECT_RATIO_DRIVEN",0),g8t=new z_("MAX_SCALE_DRIVEN",1),p8t=new z_("AREA_DRIVEN",2)}function v9(){v9=O,r7t=new H_("P1_STRUCTURE",0),o7t=new H_("P2_PROCESSING_ORDER",1),a7t=new H_("P3_EXECUTION",2)}function y9(){y9=O,w6t=new N_("OVERLAP_REMOVAL",0),g6t=new N_("COMPACTION",1),m6t=new N_("GRAPH_SIZE_CALCULATION",2)}function x9(t,e){return XT(),u0(eEt),n.Math.abs(t-e)<=eEt||t==e||isNaN(t)&&isNaN(e)?0:te?1:YP(isNaN(t),isNaN(e))}function k9(t,e){var n,i;for(n=ent(t,0);n.b!=n.d.c;){if((i=ny(hA(TX(n))))==e)return;if(i>e){_U(n);break}}c$(n,e)}function S9(t,e){var n,i,r,o,a;if(n=e.f,Uet(t.c.d,n,e),null!=e.g)for(o=0,a=(r=e.g).length;o>>0).toString(16):t.toString()}function O9(t){var e;this.a=new oD(e=QD(t.e&&t.e(),9),QD(nN(e,e.length),9),0),this.b=YY(qFt,oSt,1,this.a.a.length,5,1)}function I9(t){var e,n,i;for(this.a=new cT,i=new md(t);i.a=o)return e.c+i;return e.c+e.b.gc()}function L9(t,e){var n,i,r,o,a,s;for(i=0,n=0,a=0,s=(o=e).length;a0&&(i+=r,++n);return n>1&&(i+=t.d*(n-1)),i}function R9(t){var e,n,i;for((i=new Ty).a+="[",e=0,n=t.gc();eTMt,_=n.Math.abs(d.b-b.b)>TMt,(!i&&C&&_||i&&(C||_))&&FL(m.a,x)),O2(m.a,r),0==r.b?d=x:(_j(0!=r.b),d=QD(r.c.b.c,8)),d4(p,f,g),W2(o)==E&&(bH(E.i)!=o.a&&mut(g=new Mx,bH(E.i),v),p5(m,JYt,g)),Mct(p,m,v),h.a.zc(p,h);ZV(m,k),QV(m,E)}for(l=h.a.ec().Kc();l.Ob();)ZV(u=QD(l.Pb(),17),null),QV(u,null);zct(e)}(e,J2(r,1)),zct(r)}function H9(t,e,n,i,r,o){this.a=t,this.c=e,this.b=n,this.f=i,this.d=r,this.e=o,this.c>0&&this.b>0&&IR(this.c,this.b,this.a)}function B9(t){att(),this.c=RG(L4(Vy(y9t,1),oSt,831,0,[l2t])),this.b=new rm,this.a=t,DH(this.b,h2t,1),GJ(f2t,new Yb(this))}function K9(t,e){var n;return t.d?Mz(t.b,e)?QD(H$(t.b,e),51):(n=e.Kf(),DH(t.b,e,n),n):e.Kf()}function V9(t,e){var n;return iP(t)===iP(e)||!!TO(e,91)&&(n=QD(e,91),t.e==n.e&&t.d==n.d&&function(t,e){var n;for(n=t.d-1;n>=0&&t.a[n]===e[n];n--);return n<0}(t,n.a))}function W9(t){switch(Oxt(),t.g){case 4:return Cie;case 1:return Eie;case 3:return Bie;case 2:return Vie;default:return Kie}}function U9(t,e){switch(e){case 3:return 0!=t.f;case 4:return 0!=t.g;case 5:return 0!=t.i;case 6:return 0!=t.j}return U3(t,e)}function X9(t){switch(t.g){case 0:return new Va;case 1:return new Xa;default:throw lm(new Yv(BPt+(null!=t.f?t.f:""+t.g)))}}function q9(t){switch(t.g){case 0:return new cv;case 1:return new Aw;default:throw lm(new Yv(Qjt+(null!=t.f?t.f:""+t.g)))}}function G9(t){var e,n,i;return(n=t.zg())?TO(e=t.Ug(),160)&&null!=(i=G9(QD(e,160)))?i+"."+n:n:null}function Y9(t,e,n){var i,r;for(r=t.Kc();r.Ob();)if(i=r.Pb(),iP(e)===iP(i)||null!=e&&Q8(e,i))return n&&r.Qb(),!0;return!1}function Q9(t,e,n){var i,r;if(++t.j,n.dc())return!1;for(r=n.Kc();r.Ob();)i=r.Pb(),t.Hi(e,t.oi(e,i)),++e;return!0}function Z9(t,e){var n;if(e){for(n=0;nc.d&&(h=c.d+c.a+l));i.c.d=h,e.a.zc(i,e),u=n.Math.max(u,i.c.d+i.c.a)}return u}(t),_S(new _R(null,new DW(t.d,16)),new Zd(t)),e}function ett(t){var e;return 0!=(64&t.Db)?B8(t):((e=new CI(B8(t))).a+=" (instanceClassName: ",mP(e,t.D),e.a+=")",e.a)}function ntt(t,e){var n,i,r;if(null==t.i&&hwt(t),n=t.i,-1!=(i=e.aj()))for(r=n.length;i>1,this.k=e-1>>1}function ftt(t,e,n){var i,r;for(i=WW(n,uCt),r=0;0!=k8(i,0)&&r0&&(e.lengtht.i&&L$(e,t.i,null),e}function btt(t,e,n){var i,r,o;return t.ej()?(i=t.i,o=t.fj(),q8(t,i,e),r=t.Zi(3,null,e,i,o),n?n.Ei(r):n=r):q8(t,t.i,e),n}function gtt(t){var e;return MA(),e=new hT(QD(t.e.We((Ikt(),iee)),8)),t.B.Hc((Qgt(),are))&&(e.a<=0&&(e.a=20),e.b<=0&&(e.b=20)),e}function mtt(t){return Vnt(),(t.q?t.q:(XB(),XB(),M$t))._b((wkt(),J1t))?QD(Ast(t,J1t),197):QD(Ast(bH(t),t0t),197)}function wtt(t,e){var n,i;return i=null,Oj(t,(wkt(),H0t))&&(n=QD(Ast(t,H0t),94)).Xe(e)&&(i=n.We(e)),null==i&&(i=Ast(bH(t),e)),i}function vtt(t,e){var n,i,r;return!!TO(e,42)&&(i=(n=QD(e,42)).cd(),dH(r=L8(t.Rc(),i),n.dd())&&(null!=r||t.Rc()._b(i)))}function ytt(t,e){var n;return t.f>0&&(t.qj(),-1!=Kft(t,((n=null==e?0:G5(e))&Jkt)%t.d.length,n,e))}function xtt(t,e){var n,i;return t.f>0&&(t.qj(),n=rht(t,((i=null==e?0:G5(e))&Jkt)%t.d.length,i,e))?n.dd():null}function ktt(t,e){var n,i,r,o;for(o=mpt(t.e.Tg(),e),n=QD(t.g,119),r=0;r>5,e&=31,r=t.d+n+(0==e?0:1),function(t,e,n,i){var r,o,a;if(0==i)hvt(e,0,t,n,t.length-n);else for(a=32-i,t[t.length-1]=0,o=t.length-1;o>n;o--)t[o]|=e[o-n-1]>>>a,t[o-1]=e[o-n-1]<=0?o=o.a[1]:(r=o,o=o.a[0])}return r}function Ftt(t,e,n){var i,r,o;for(r=null,o=t.b;o;){if(i=t.a.ue(e,o.d),n&&0==i)return o;i<=0?o=o.a[0]:(r=o,o=o.a[1])}return r}function ztt(t,e,n,i){var r,o,a;return r=!1,function(t,e,n){var i,r,o,a,s,c,u,l,h,f,d,p,b,g,m,w,v,y,x;return f=t.c[e],d=t.c[n],!((p=QD(Ast(f,(jkt(),xYt)),15))&&0!=p.gc()&&p.Hc(d)||(b=f.k!=(bct(),KWt)&&d.k!=KWt,w=(g=QD(Ast(f,yYt),10))!=(m=QD(Ast(d,yYt),10)),v=!!g&&g!=f||!!m&&m!=d,y=Oit(f,(Oxt(),Cie)),x=Oit(d,Bie),v|=Oit(f,Bie)||Oit(d,Cie),b&&(v&&w||y||x))||f.k==(bct(),WWt)&&d.k==VWt||d.k==(bct(),WWt)&&f.k==VWt)&&(l=t.c[e],o=t.c[n],r=Aot(t.e,l,o,(Oxt(),Vie)),c=Aot(t.i,l,o,Eie),function(t,e,n){t.d=0,t.b=0,e.k==(bct(),WWt)&&n.k==WWt&&QD(Ast(e,(jkt(),IYt)),10)==QD(Ast(n,IYt),10)&&(dZ(e).j==(Oxt(),Cie)?Yft(t,e,n):Yft(t,n,e)),e.k==WWt&&n.k==KWt?dZ(e).j==(Oxt(),Cie)?t.d=1:t.b=1:n.k==WWt&&e.k==KWt&&(dZ(n).j==(Oxt(),Cie)?t.b=1:t.d=1),function(t,e,n){e.k==(bct(),VWt)&&n.k==KWt&&(t.d=V8(e,(Oxt(),Bie)),t.b=V8(e,Cie)),n.k==VWt&&e.k==KWt&&(t.d=V8(n,(Oxt(),Cie)),t.b=V8(n,Bie))}(t,e,n)}(t.f,l,o),u=x6(t.b,l,o)+QD(r.a,19).a+QD(c.a,19).a+t.f.d,s=x6(t.b,o,l)+QD(r.b,19).a+QD(c.b,19).a+t.f.b,t.a&&(h=QD(Ast(l,IYt),11),a=QD(Ast(o,IYt),11),u+=QD((i=Frt(t.g,h,a)).a,19).a,s+=QD(i.b,19).a),u>s)}(t.f,n,i)&&(function(t,e,n){var i,r;Pst(t.e,e,n,(Oxt(),Vie)),Pst(t.i,e,n,Eie),t.a&&(r=QD(Ast(e,(jkt(),IYt)),11),i=QD(Ast(n,IYt),11),nU(t.g,r,i))}(t.f,t.a[e][n],t.a[e][i]),a=(o=t.a[e])[i],o[i]=o[n],o[n]=a,r=!0),r}function $tt(t,e,n,i,r){var o,a,s;for(a=r;e.b!=e.c;)o=QD(jz(e),10),s=QD(r9(o,i).Xb(0),11),t.d[s.p]=a++,n.c[n.c.length]=s;return a}function Htt(t,e,i){var r,o,a,s,c;return s=t.k,c=e.k,o=hA(wtt(t,r=i[s.g][c.g])),a=hA(wtt(e,r)),n.Math.max((wH(o),o),(wH(a),a))}function Btt(t,e,n){var i,r,o;for(r=QD(H$(t.b,n),177),i=0,o=new md(e.j);o.ae?1:YP(isNaN(t),isNaN(e)))>0}function Xtt(t,e){return XT(),XT(),u0(eEt),(n.Math.abs(t-e)<=eEt||t==e||isNaN(t)&&isNaN(e)?0:te?1:YP(isNaN(t),isNaN(e)))<0}function qtt(t,e){return XT(),XT(),u0(eEt),(n.Math.abs(t-e)<=eEt||t==e||isNaN(t)&&isNaN(e)?0:te?1:YP(isNaN(t),isNaN(e)))<=0}function Gtt(t,e){for(var n=0;!e[n]||""==e[n];)n++;for(var i=e[n++];nsCt)return n.fh();if((i=n.Zg())||n==t)break}return i}function aet(t){return $V(),TO(t,156)?QD(H$(_oe,L$t),288).vg(t):Mz(_oe,Y5(t))?QD(H$(_oe,Y5(t)),288).vg(t):null}function set(t,e){if(e.c==t)return e.d;if(e.d==t)return e.c;throw lm(new Yv("Input edge is not connected to the input port."))}function cet(t,e){return t.e>e.e?1:t.ee.d?t.e:t.d=48&&t<48+n.Math.min(10,10)?t-48:t>=97&&t<97?t-97+10:t>=65&&t<65?t-65+10:-1}function het(t,e){var n;return iP(e)===iP(t)||!!TO(e,21)&&(n=QD(e,21)).gc()==t.gc()&&t.Ic(n)}function fet(t,e){var n,i;for(NW(e,t.length),n=t.charCodeAt(e),i=e+1;i=2*e&&nL(n,new AD(a[i-1]+e,a[i]-e));return n}(n,i),_S(KJ(new _R(null,new DW(function(t){var e,n,i,r,o,a,s;for(o=new cT,n=new md(t);n.a2&&s.e.b+s.j.b<=2&&(r=s,i=a),o.a.zc(r,o),r.q=i);return o}(e),1)),new Sa),new yB(t,n,r,i)))}function get(t,e,n){var i;0!=(t.Db&e)?null==n?function(t,e){var n,i,r,o,a,s,c;if(1==(i=h9(254&t.Db)))t.Eb=null;else if(o=h1(t.Eb),2==i)r=Qit(t,e),t.Eb=o[0==r?1:0];else{for(a=YY(qFt,oSt,1,i-1,5,1),n=2,s=0,c=0;n<=128;n<<=1)n==e?++s:0!=(t.Db&n)&&(a[c++]=o[s++]);t.Eb=a}t.Db&=~e}(t,e):-1==(i=Qit(t,e))?t.Eb=n:L$(h1(t.Eb),i,n):null!=n&&function(t,e,n){var i,r,o,a,s,c;if(0==(r=h9(254&t.Db)))t.Eb=n;else{if(1==r)a=YY(qFt,oSt,1,2,5,1),0==Qit(t,e)?(a[0]=n,a[1]=t.Eb):(a[0]=t.Eb,a[1]=n);else for(a=YY(qFt,oSt,1,r+1,5,1),o=h1(t.Eb),i=2,s=0,c=0;i<=128;i<<=1)i==e?a[c++]=n:0!=(t.Db&i)&&(a[c++]=o[s++]);t.Eb=a}t.Db|=e}(t,e,n)}function met(t){var e;return 0==(32&t.Db)&&0!=(e=w$(QD(K3(t,16),26)||t.zh())-w$(t.zh()))&&get(t,32,YY(qFt,oSt,1,e,5,1)),t}function wet(t){var e,n;for(e=new md(t.g);e.a0&&k8(t,128)<0?(e=qR(t)+128,!(n=(dR(),Gzt)[e])&&(n=Gzt[e]=new od(t)),n):new od(t)}function Set(t,e){var n,i;return(n=e.Hh(t.a))&&null!=(i=fA(xtt((!n.b&&(n.b=new Wj((Rkt(),Rae),use,n)),n.b),wDt)))?i:e.ne()}function Eet(t,e){var n,i;for(dW(),i=new jF(dI(s9(t).a.Kc(),new l));Qht(i);)if((n=QD(kG(i),17)).d.i==e||n.c.i==e)return n;return null}function Cet(t,e,n){this.c=t,this.f=new im,this.e=new Mx,this.j=new gR,this.n=new gR,this.b=e,this.g=new vB(e.c,e.d,e.b,e.a),this.a=n}function _et(t){var e,n,i,r;for(this.a=new cT,this.d=new Ym,this.e=0,i=0,r=(n=t).length;iS&&(b.c=S-b.b),nL(s.d,new hF(b,P7(s,b))),v=e==Cie?n.Math.max(v,g.b+l.b.rf().b):n.Math.min(v,g.b));for(v+=e==Cie?t.t:-t.t,(y=ttt((s.e=v,s)))>0&&(QD(VH(t.b,e),124).a.b=y),h=d.Kc();h.Ob();)!(l=QD(h.Pb(),111)).c||l.c.d.c.length<=0||((b=l.c.i).c-=l.e.a,b.d-=l.e.b)}else Sxt(t,e)}(t,e):Sxt(t,e):t.u.Hc(yie)&&(i?function(t,e){var i,r,o,a,s,c,u,l,h,f,d,p,b,g,m,w;if((h=QD(QD($G(t.r,e),21),84)).gc()<=2||e==(Oxt(),Eie)||e==(Oxt(),Vie))Wxt(t,e);else{for(g=t.u.Hc((Ilt(),xie)),i=e==(Oxt(),Cie)?(i4(),JBt):(i4(),YBt),w=e==Cie?(IZ(),vBt):(IZ(),xBt),r=Yy(OD(i),t.s),m=e==Cie?tCt:eCt,l=h.Kc();l.Ob();)!(c=QD(l.Pb(),111)).c||c.c.d.c.length<=0||(b=c.b.rf(),p=c.e,(d=(f=c.c).i).b=(a=f.n,f.e.a+a.b+a.c),d.a=(s=f.n,f.e.b+s.d+s.a),g?(d.c=p.a-(o=f.n,f.e.a+o.b+o.c)-t.s,g=!1):d.c=p.a+b.a+t.s,DK(w,E_t),f.f=w,dQ(f,(BQ(),pBt)),nL(r.d,new hF(d,P7(r,d))),m=e==Cie?n.Math.min(m,p.b):n.Math.max(m,p.b+c.b.rf().b));for(m+=e==Cie?-t.t:t.t,ttt((r.e=m,r)),u=h.Kc();u.Ob();)!(c=QD(u.Pb(),111)).c||c.c.d.c.length<=0||((d=c.c.i).c-=c.e.a,d.d-=c.e.b)}}(t,e):Wxt(t,e))}function Ret(t,e){var n,i;++t.j,null!=e&&function(t,e){var n,i,r;if(iP(t)===iP(e))return!0;if(null==t||null==e)return!1;if(t.length!=e.length)return!1;for(n=0;n=(r=t.length))return r;for(e=e>0?e:0;ei&&L$(e,i,null),e}function Wet(t,e){var n,i;for(i=t.a.length,e.lengthi&&L$(e,i,null),e}function Uet(t,e,n){var i,r,o;return(r=QD(H$(t.e,e),387))?(o=QA(r,n),OO(t,r),o):(i=new cL(t,e,n),DH(t.e,e,i),iV(i),null)}function Xet(t){var e;if(null==t)return null;if(null==(e=function(t){var e,n,i,r,o,a,s;if(Sbt(),null==t)return null;if((r=t.length)%2!=0)return null;for(e=LZ(t),n=YY(Zce,DNt,25,o=r/2|0,15,1),i=0;i>24}return n}(Qwt(t,!0))))throw lm(new hy("Invalid hexBinary value: '"+t+"'"));return e}function qet(t){return bbt(),k8(t,0)<0?0!=k8(t,-1)?new vat(-1,lZ(t)):p$t:k8(t,10)<=0?g$t[qR(t)]:new vat(1,t)}function Get(){return Lkt(),L4(Vy(tKt,1),GSt,159,0,[KBt,BBt,VBt,NBt,ABt,DBt,FBt,RBt,LBt,HBt,$Bt,zBt,IBt,OBt,jBt,PBt,MBt,TBt,CBt,EBt,_Bt,WBt])}function Yet(t){var e;this.d=new im,this.j=new Mx,this.g=new Mx,e=t.g.b,this.f=QD(Ast(bH(e),(wkt(),c1t)),103),this.e=ey(hA(snt(e,B0t)))}function Qet(t){this.b=new im,this.e=new im,this.d=t,this.a=!nk(lB(new _R(null,new t$(new XG(t.b))),new Td(new Vr))).sd((BS(),mHt))}function Zet(){Zet=O,_9t=new U_("PARENTS",0),C9t=new U_("NODES",1),S9t=new U_("EDGES",2),M9t=new U_("PORTS",3),E9t=new U_("LABELS",4)}function Jet(){Jet=O,iie=new aM("DISTRIBUTED",0),oie=new aM("JUSTIFIED",1),eie=new aM("BEGIN",2),nie=new aM(v_t,3),rie=new aM("END",4)}function tnt(t){switch(t.g){case 1:return n7(),rne;case 4:return n7(),ene;case 2:return n7(),nne;case 3:return n7(),tne}return n7(),ine}function ent(t,e){var n,i;if(rW(e,t.b),e>=t.b>>1)for(i=t.c,n=t.b;n>e;--n)i=i.b;else for(i=t.a.a,n=0;n=64&&e<128&&(r=UW(r,VF(1,e-64)));return r}function snt(t,e){var n,i;return i=null,Oj(t,(Ikt(),Vee))&&(n=QD(Ast(t,Vee),94)).Xe(e)&&(i=n.We(e)),null==i&&bH(t)&&(i=Ast(bH(t),e)),i}function cnt(t,e){var n,i,r;(i=(r=e.d.i).k)!=(bct(),VWt)&&i!=$Wt&&Qht(n=new jF(dI(u9(r).a.Kc(),new l)))&&DH(t.k,e,QD(kG(n),17))}function unt(t,e){var n,i,r;return i=OJ(t.Tg(),e),(n=e-t.Ah())<0?(r=t.Yg(i))>=0?t.lh(r):Xlt(t,i):n<0?Xlt(t,i):QD(i,66).Nj().Sj(t,t.yh(),n)}function lnt(t){var e;if(TO(t.a,4)){if(null==(e=aet(t.a)))throw lm(new Qv(CAt+t.b+"'. "+xAt+(uA(Toe),Toe.k)+kAt));return e}return t.a}function hnt(t){var e;if(null==t)return null;if(null==(e=function(t){var e,n,i,r,o,a,s,c,u,l,h,f,d,p,b,g;if(twt(),null==t)return null;if((p=function(t){var e,n,i;for(i=0,n=t.length,e=0;e>4)<<24>>24,h[f++]=((15&n)<<4|i>>2&15)<<24>>24,h[f++]=(i<<6|r)<<24>>24}return Mk(a=o[l++])&&Mk(s=o[l++])?(e=lce[a],n=lce[s],c=o[l++],u=o[l++],-1==lce[c]||-1==lce[u]?61==c&&61==u?0!=(15&n)?null:(hvt(h,0,g=YY(Zce,DNt,25,3*d+1,15,1),0,3*d),g[f]=(e<<2|n>>4)<<24>>24,g):61!=c&&61==u?0!=(3&(i=lce[c]))?null:(hvt(h,0,g=YY(Zce,DNt,25,3*d+2,15,1),0,3*d),g[f++]=(e<<2|n>>4)<<24>>24,g[f]=((15&n)<<4|i>>2&15)<<24>>24,g):null:(i=lce[c],r=lce[u],h[f++]=(e<<2|n>>4)<<24>>24,h[f++]=((15&n)<<4|i>>2&15)<<24>>24,h[f++]=(i<<6|r)<<24>>24,h)):null}(Qwt(t,!0))))throw lm(new hy("Invalid base64Binary value: '"+t+"'"));return e}function fnt(t){var e;try{return e=t.i.Xb(t.e),t.mj(),t.g=t.e++,e}catch(e){throw TO(e=S4(e),73)?(t.mj(),lm(new Fm)):lm(e)}}function dnt(t){var e;try{return e=t.c.ki(t.e),t.mj(),t.g=t.e++,e}catch(e){throw TO(e=S4(e),73)?(t.mj(),lm(new Fm)):lm(e)}}function pnt(){pnt=O,Ikt(),zKt=$ee,AKt=Lte,PKt=xte,NKt=uee,vot(),RKt=HHt,LKt=zHt,FKt=KHt,DKt=FHt,I6(),OKt=EKt,TKt=SKt,IKt=_Kt,jKt=MKt}function bnt(t){switch(GS(),this.c=new im,this.d=t,t.g){case 0:case 2:this.a=LH(_Wt),this.b=tCt;break;case 3:case 1:this.a=_Wt,this.b=eCt}}function gnt(t,e,n){var i;if(t.c)N1(t.c,t.c.i+e),D1(t.c,t.c.j+n);else for(i=new md(t.b);i.a0&&(nL(t.b,new iL(e.a,n)),0<(i=e.a.length)?e.a=e.a.substr(0,0):0>i&&(e.a+=PO(YY(qce,hEt,25,-i,15,1))))}function wnt(t,e){var n,i,r;for(n=t.o,r=QD(QD($G(t.r,e),21),84).Kc();r.Ob();)(i=QD(r.Pb(),111)).e.a=xrt(i,n.a),i.e.b=n.b*ey(hA(i.b.We(GBt)))}function vnt(t,e){var n;return n=QD(Ast(t,(wkt(),N1t)),74),CO(e,NWt)?n?HB(n):(n=new Nw,p5(t,N1t,n)):n&&p5(t,N1t,null),n}function ynt(t){var e;return(e=new Iy).a+="n",t.k!=(bct(),VWt)&&yP(yP((e.a+="(",e),bj(t.k).toLowerCase()),")"),yP((e.a+="_",e),krt(t)),e.a}function xnt(t,e,n,i){var r;return n>=0?t.hh(e,n,i):(t.eh()&&(i=(r=t.Vg())>=0?t.Qg(i):t.eh().ih(t,-1-r,null,i)),t.Sg(e,n,i))}function knt(t,e){switch(e){case 7:return!t.e&&(t.e=new IN(eoe,t,7,4)),void Vvt(t.e);case 8:return!t.d&&(t.d=new IN(eoe,t,8,5)),void Vvt(t.d)}ott(t,e)}function Snt(t,e){var n;n=t.Zc(e);try{return n.Pb()}catch(t){throw TO(t=S4(t),109)?lm(new Bv("Can't get element "+e)):lm(t)}}function Ent(t,e){this.e=t,e=0&&(n.d=t.t);break;case 3:t.t>=0&&(n.a=t.t)}t.C&&(n.b=t.C.b,n.c=t.C.c)}function Pnt(){Pnt=O,iKt=new iC(L_t,0),nKt=new iC(R_t,1),rKt=new iC(F_t,2),oKt=new iC(z_t,3),iKt.a=!1,nKt.a=!0,rKt.a=!1,oKt.a=!0}function Tnt(){Tnt=O,bKt=new nC(L_t,0),pKt=new nC(R_t,1),gKt=new nC(F_t,2),mKt=new nC(z_t,3),bKt.a=!1,pKt.a=!0,gKt.a=!1,mKt.a=!0}function Ont(t){var e,n,i;if(n=0,0==(i=obt(t)).c.length)return 1;for(e=new md(i);e.an.b)return!0}return!1}function jnt(t,e){return aP(t)?!!Xkt[e]:t.hm?!!t.hm[e]:oP(t)?!!Ukt[e]:!!rP(t)&&!!Wkt[e]}function Ant(t,e,n){return null==n?(!t.o&&(t.o=new xQ((ckt(),Hre),yoe,t,0)),net(t.o,e)):(!t.o&&(t.o=new xQ((ckt(),Hre),yoe,t,0)),Rot(t.o,e,n)),t}function Nnt(t,e,n,i){var r,o,a;return o=OJ(t.Tg(),e),(r=e-t.Ah())<0?(a=t.Yg(o))>=0?t._g(a,n,!0):iht(t,o,n):QD(o,66).Nj().Pj(t,t.yh(),r,n,i)}function Dnt(t,e,n,i){var r,o;n.mh(e)&&(EE(),WZ(e)?function(t,e){var n,i,r,o;for(i=0,r=e.gc();i=0)return i;if(t.Fk())for(n=0;n=(r=t.gc()))throw lm(new kN(e,r));if(t.hi()&&(i=t.Xc(n))>=0&&i!=e)throw lm(new Yv(SDt));return t.mi(e,n)}function Hnt(t,e){if(this.a=QD(C$(t),245),this.b=QD(C$(e),245),t.vd(e)>0||t==(bv(),ezt)||e==(pv(),nzt))throw lm(new Yv("Invalid range: "+BX(t,e)))}function Bnt(t){var e,n;for(this.b=new im,this.c=t,this.a=!1,n=new md(t.a);n.a0),(e&-e)==e)return cV(e*Gft(t,31)*4.656612873077393e-10);do{i=(n=Gft(t,31))%e}while(n-i+(e-1)<0);return cV(i)}function Gnt(t){var e,n,i;return fD(),null!=(i=yHt[n=":"+t])?cV((wH(i),i)):(e=null==(i=vHt[n])?function(t){var e,n,i,r;for(e=0,r=(i=t.length)-4,n=0;n0)for(i=new uD(QD($G(t.a,o),21)),XB(),ZT(i,new cp(e)),r=new JU(o.b,0);r.b1&&(r=function(t,e){var n,i,r;for(n=BI(new nw,t),r=new md(e);r.a(c=null==t.d?0:t.d.length)){for(l=t.d,t.d=YY(Eoe,kLt,63,2*c+4,0,1),o=0;oJIt;){for(a=e,s=0;n.Math.abs(e-a)0),o.a.Xb(o.c=--o.b),awt(t,t.b-s,a,r,o),_j(o.b0),r.a.Xb(r.c=--r.b)}if(!t.d)for(i=0;i102?-1:t<=57?t-48:t<65?-1:t<=70?t-65+10:t<97?-1:t-97+10}function wit(t,e){if(null==t)throw lm(new Jv("null key in entry: null="+e));if(null==e)throw lm(new Jv("null value in entry: "+t+"=null"))}function vit(t,e){var i;return i=L4(Vy(Jce,1),aCt,25,15,[Q6(t.a[0],e),Q6(t.a[1],e),Q6(t.a[2],e)]),t.d&&(i[0]=n.Math.max(i[0],i[2]),i[2]=i[0]),i}function yit(t,e){var i;return i=L4(Vy(Jce,1),aCt,25,15,[Z6(t.a[0],e),Z6(t.a[1],e),Z6(t.a[2],e)]),t.d&&(i[0]=n.Math.max(i[0],i[2]),i[2]=i[0]),i}function xit(){xit=O,Lqt=new VC("GREEDY",0),Dqt=new VC(oTt,1),Fqt=new VC(rTt,2),zqt=new VC("MODEL_ORDER",3),Rqt=new VC("GREEDY_MODEL_ORDER",4)}function kit(t,e){var n,i,r;for(t.b[e.g]=1,i=ent(e.d,0);i.b!=i.d.c;)r=(n=QD(TX(i),188)).c,1==t.b[r.g]?FL(t.a,n):2==t.b[r.g]?t.b[r.g]=1:kit(t,r)}function Sit(t,e,n){var i,r,o,a;for(a=t.r+e,t.r+=e,t.d+=n,i=n/t.n.c.length,r=0,o=new md(t.n);o.a0||!a&&0==s))}(t,n,i.d,r,o,a,s)&&e.Fc(i),(u=i.a[1])&&Dit(t,e,n,u,r,o,a,s))}function Lit(t,e,n){try{return uP(Y0(t,e,n),1)}catch(i){throw TO(i=S4(i),320)?lm(new Bv(B_t+t.o+"*"+t.p+K_t+e+iSt+n+V_t)):lm(i)}}function Rit(t,e,n){try{return uP(Y0(t,e,n),0)}catch(i){throw TO(i=S4(i),320)?lm(new Bv(B_t+t.o+"*"+t.p+K_t+e+iSt+n+V_t)):lm(i)}}function Fit(t,e,n){try{return uP(Y0(t,e,n),2)}catch(i){throw TO(i=S4(i),320)?lm(new Bv(B_t+t.o+"*"+t.p+K_t+e+iSt+n+V_t)):lm(i)}}function zit(t,e){if(-1==t.g)throw lm(new Am);t.mj();try{t.d._c(t.g,e),t.f=t.d.j}catch(t){throw TO(t=S4(t),73)?lm(new Lm):lm(t)}}function $it(t,e,i){ast(i,"Linear segments node placement",1),t.b=QD(Ast(e,(jkt(),XYt)),304),function(t,e){var i,r,o,a,s,c,u,l,h,f,d,p,b,g,m,w,v,y,x,k,S,E,C,_,M,P,T,O,I,j;for(O=new im,p=new md(e.b);p.a=0){for(c=null,s=new JU(l.a,u+1);s.b0&&u[r]&&(b=fO(t.b,u[r],o)),g=n.Math.max(g,o.c.c.b+b);for(a=new md(h.e);a.ax)?(u=2,s=Jkt):0==u?(u=1,s=S):(u=0,s=S):(d=S>=s||s-S0?(h=QD(ER(f.c.a,a-1),10),E=fO(t.b,f,h),g=f.n.b-f.d.d-(h.n.b+h.o.b+h.d.a+E)):g=f.n.b-f.d.d,u=n.Math.min(g,u),ao&&L$(e,o,null),e}function Bit(t,e){var n,i,r;return n=e.cd(),r=e.dd(),i=t.xc(n),!(!(iP(r)===iP(i)||null!=r&&Q8(r,i))||null==i&&!t._b(n))}function Kit(t,e,n,i){var r,o;this.a=e,this.c=i,function(t,e){t.b=e}(this,new Y_(-(r=t.a).c,-r.d)),vN(this.b,n),o=i/2,e.a?Nj(this.b,0,o):Nj(this.b,o,0),nL(t.c,this)}function Vit(){Vit=O,o8t=new R_(dPt,0),i8t=new R_(aTt,1),r8t=new R_("EDGE_LENGTH_BY_POSITION",2),n8t=new R_("CROSSING_MINIMIZATION_BY_POSITION",3)}function Wit(t,e){var n,i;if(n=QD(m1(t.g,e),33))return n;if(i=QD(m1(t.j,e),118))return i;throw lm(new ly("Referenced shape does not exist: "+e))}function Uit(t,e){if(t.c==e)return t.d;if(t.d==e)return t.c;throw lm(new Yv("Node 'one' must be either source or target of edge 'edge'."))}function Xit(t,e){if(t.c.i==e)return t.d.i;if(t.d.i==e)return t.c.i;throw lm(new Yv("Node "+e+" is neither source nor target of edge "+t))}function qit(t,e){var n;switch(e.g){case 2:case 4:n=t.a,t.c.d.n.b0&&(c+=r),u[l]=a,a+=s*(c+i)}function Yit(t){var e,n,i;for(i=t.f,t.n=YY(Jce,aCt,25,i,15,1),t.d=YY(Jce,aCt,25,i,15,1),e=0;e0?t.c:0),++o;t.b=r,t.d=a}function ort(t,e){var i;return i=L4(Vy(Jce,1),aCt,25,15,[Xnt(t,(JJ(),aBt),e),Xnt(t,sBt,e),Xnt(t,cBt,e)]),t.f&&(i[0]=n.Math.max(i[0],i[2]),i[2]=i[0]),i}function art(t,e,n){try{sgt(t,e+t.j,n+t.k,!1,!0)}catch(t){throw TO(t=S4(t),73)?lm(new Bv(t.g+W_t+e+iSt+n+").")):lm(t)}}function srt(t,e,n){try{sgt(t,e+t.j,n+t.k,!0,!1)}catch(t){throw TO(t=S4(t),73)?lm(new Bv(t.g+W_t+e+iSt+n+").")):lm(t)}}function crt(t){var e;Oj(t,(wkt(),q1t))&&((e=QD(Ast(t,q1t),21)).Hc((Cft(),Wne))?(e.Mc(Wne),e.Fc(Xne)):e.Hc(Xne)&&(e.Mc(Xne),e.Fc(Wne)))}function urt(t){var e;Oj(t,(wkt(),q1t))&&((e=QD(Ast(t,q1t),21)).Hc((Cft(),Zne))?(e.Mc(Zne),e.Fc(Yne)):e.Hc(Yne)&&(e.Mc(Yne),e.Fc(Zne)))}function lrt(t,e,n,i){var r,o;for(r=e;r0&&(o.b+=e),o}function brt(t,e){var i,r,o;for(o=new Mx,r=t.Kc();r.Ob();)bgt(i=QD(r.Pb(),37),0,o.b),o.b+=i.f.b+e,o.a=n.Math.max(o.a,i.f.a);return o.a>0&&(o.a+=e),o}function grt(t){var e,i,r;for(r=Jkt,i=new md(t.a);i.a>16==6?t.Cb.ih(t,5,aoe,e):(n=nit(QD(OJ(QD(K3(t,16),26)||t.zh(),t.Db>>16),18)),t.Cb.ih(t,n.n,n.f,e))}function yrt(t){var e,i,r;t.b==t.c&&(r=t.a.length,i=S5(n.Math.max(8,r))<<1,0!=t.b?(t2(t,e=nN(t.a,i),r),t.a=e,t.b=0):Wm(t.a,i),t.c=r)}function xrt(t,e){var n;return(n=t.b).Xe((Ikt(),kee))?n.Hf()==(Oxt(),Vie)?-n.rf().a-ey(hA(n.We(kee))):e+ey(hA(n.We(kee))):n.Hf()==(Oxt(),Vie)?-n.rf().a:e}function krt(t){var e;return 0!=t.b.c.length&&QD(ER(t.b,0),70).a?QD(ER(t.b,0),70).a:null!=(e=PB(t))?e:""+(t.c?hZ(t.c.a,t,0):-1)}function Srt(t){var e;return 0!=t.f.c.length&&QD(ER(t.f,0),70).a?QD(ER(t.f,0),70).a:null!=(e=PB(t))?e:""+(t.i?hZ(t.i.j,t,0):-1)}function Ert(t,e){var n,i;if(e<0||e>=t.gc())return null;for(n=e;n0?t.c:0),o=n.Math.max(o,e.d),++r;t.e=a,t.b=o}function Mrt(t,e,n,i){return 0==e?i?(!t.o&&(t.o=new xQ((ckt(),Hre),yoe,t,0)),t.o):(!t.o&&(t.o=new xQ((ckt(),Hre),yoe,t,0)),XY(t.o)):Nnt(t,e,n,i)}function Prt(t){var e,n;if(t.rb)for(e=0,n=t.rb.i;e>22))>>22)<0||(t.l=n&KEt,t.m=i&KEt,t.h=r&VEt,0)))}function Irt(t,e,n){var i,r;return s8(r=new Uw,e),E2(r,n),fQ((!t.c&&(t.c=new vz(dae,t,12,10)),t.c),r),$1(i=r,0),H1(i,1),d7(i,!0),l7(i,!0),i}function jrt(t,e){var n,i;if(e>=t.i)throw lm(new HP(e,t.i));return++t.j,n=t.g[e],(i=t.i-e-1)>0&&hvt(t.g,e+1,t.g,e,i),L$(t.g,--t.i,null),t.fi(e,n),t.ci(),n}function Art(t,e){var n;return t.Db>>16==17?t.Cb.ih(t,21,oae,e):(n=nit(QD(OJ(QD(K3(t,16),26)||t.zh(),t.Db>>16),18)),t.Cb.ih(t,n.n,n.f,e))}function Nrt(t){var e,n,i,r,o;for(r=Jkt,o=null,i=new md(t.d);i.an.a.c.length))throw lm(new Yv("index must be >= 0 and <= layer node count"));t.c&&cZ(t.c.a,t),t.c=n,n&&JR(n.a,e,t)}function Wrt(t,e){var n,i,r;for(i=new jF(dI(s9(t).a.Kc(),new l));Qht(i);)return n=QD(kG(i),17),new $h(C$((r=QD(e.Kb(n),10)).n.b+r.o.b/2));return gv(),gv(),XFt}function Urt(t,e){this.c=new rm,this.a=t,this.b=e,this.d=QD(Ast(t,(jkt(),XYt)),304),iP(Ast(t,(wkt(),G1t)))===iP((aZ(),oGt))?this.e=new Tw:this.e=new Pw}function Xrt(t,e){var n,i;return i=null,t.Xe((Ikt(),Vee))&&(n=QD(t.We(Vee),94)).Xe(e)&&(i=n.We(e)),null==i&&t.yf()&&(i=t.yf().We(e)),null==i&&(i=lnt(e)),i}function qrt(t,e){var n,i;n=t.Zc(e);try{return i=n.Pb(),n.Qb(),i}catch(t){throw TO(t=S4(t),109)?lm(new Bv("Can't remove element "+e)):lm(t)}}function Grt(t,e){var n,i,r;for(wH(e),Ej(e!=t),r=t.b.c.length,i=e.Kc();i.Ob();)n=i.Pb(),nL(t.b,wH(n));return r!=t.b.c.length&&(d6(t,0),!0)}function Yrt(){Yrt=O,Ikt(),RVt=Vte,new LT(Ite,(EI(),!0)),$Vt=tee,HVt=iee,BVt=oee,zVt=Zte,KVt=cee,VVt=Mee,Drt(),LVt=IVt,NVt=PVt,DVt=OVt,FVt=jVt,AVt=MVt}function Qrt(t,e,n,i){var r,o,a;for(JV(e,QD(i.Xb(0),29)),a=i.bd(1,i.gc()),o=QD(n.Kb(e),20).Kc();o.Ob();)Qrt(t,(r=QD(o.Pb(),17)).c.i==e?r.d.i:r.c.i,n,a)}function Zrt(t){var e;return e=new rm,Oj(t,(jkt(),ZYt))?QD(Ast(t,ZYt),83):(_S(lB(new _R(null,new DW(t.j,16)),new er),new zp(e)),p5(t,ZYt,e),e)}function Jrt(t,e){var n;return t.Db>>16==6?t.Cb.ih(t,6,eoe,e):(n=nit(QD(OJ(QD(K3(t,16),26)||(ckt(),Lre),t.Db>>16),18)),t.Cb.ih(t,n.n,n.f,e))}function tot(t,e){var n;return t.Db>>16==7?t.Cb.ih(t,1,Zre,e):(n=nit(QD(OJ(QD(K3(t,16),26)||(ckt(),Fre),t.Db>>16),18)),t.Cb.ih(t,n.n,n.f,e))}function eot(t,e){var n;return t.Db>>16==9?t.Cb.ih(t,9,coe,e):(n=nit(QD(OJ(QD(K3(t,16),26)||(ckt(),$re),t.Db>>16),18)),t.Cb.ih(t,n.n,n.f,e))}function not(t,e){var n;return t.Db>>16==5?t.Cb.ih(t,9,uae,e):(n=nit(QD(OJ(QD(K3(t,16),26)||(Rkt(),Cae),t.Db>>16),18)),t.Cb.ih(t,n.n,n.f,e))}function iot(t,e){var n;return t.Db>>16==3?t.Cb.ih(t,0,ioe,e):(n=nit(QD(OJ(QD(K3(t,16),26)||(Rkt(),wae),t.Db>>16),18)),t.Cb.ih(t,n.n,n.f,e))}function rot(t,e){var n;return t.Db>>16==7?t.Cb.ih(t,6,aoe,e):(n=nit(QD(OJ(QD(K3(t,16),26)||(Rkt(),Nae),t.Db>>16),18)),t.Cb.ih(t,n.n,n.f,e))}function oot(){this.a=new dc,this.g=new oit,this.j=new oit,this.b=new rm,this.d=new oit,this.i=new oit,this.k=new rm,this.c=new rm,this.e=new rm,this.f=new rm}function aot(t,e,n){var i,r,o;for(n<0&&(n=0),o=t.i,r=n;rsCt)return sot(t,i);if(i==t)return!0}}return!1}function cot(t,e){var i,r,o;for(cZ(t.a,e),t.e-=e.r+(0==t.a.c.length?0:t.c),o=mjt,r=new md(t.a);r.a>16==3?t.Cb.ih(t,12,coe,e):(n=nit(QD(OJ(QD(K3(t,16),26)||(ckt(),Dre),t.Db>>16),18)),t.Cb.ih(t,n.n,n.f,e))}function lot(t,e){var n;return t.Db>>16==11?t.Cb.ih(t,10,coe,e):(n=nit(QD(OJ(QD(K3(t,16),26)||(ckt(),zre),t.Db>>16),18)),t.Cb.ih(t,n.n,n.f,e))}function hot(t,e){var n;return t.Db>>16==10?t.Cb.ih(t,11,oae,e):(n=nit(QD(OJ(QD(K3(t,16),26)||(Rkt(),jae),t.Db>>16),18)),t.Cb.ih(t,n.n,n.f,e))}function fot(t,e){var n;return t.Db>>16==10?t.Cb.ih(t,12,fae,e):(n=nit(QD(OJ(QD(K3(t,16),26)||(Rkt(),Dae),t.Db>>16),18)),t.Cb.ih(t,n.n,n.f,e))}function dot(t){var e;return 0==(1&t.Bb)&&t.r&&t.r.kh()&&(e=QD(t.r,49),t.r=QD(P8(t,e),138),t.r!=e&&0!=(4&t.Db)&&0==(1&t.Db)&&z3(t,new mz(t,9,8,e,t.r))),t.r}function pot(t,e,i){var r;return r=L4(Vy(Jce,1),aCt,25,15,[kst(t,(JJ(),aBt),e,i),kst(t,sBt,e,i),kst(t,cBt,e,i)]),t.f&&(r[0]=n.Math.max(r[0],r[2]),r[2]=r[0]),r}function bot(t,e){var n,i,r;if(0!=(r=function(t,e){var n,i,r;for(r=new wY(e.gc()),i=e.Kc();i.Ob();)(n=QD(i.Pb(),286)).c==n.f?nut(t,n,n.c):Qct(t,n)||(r.c[r.c.length]=n);return r}(t,e)).c.length)for(ZT(r,new ei),n=r.c.length,i=0;i>19)!=(s=e.h>>19)?s-a:(i=t.h)!=(o=e.h)?i-o:(n=t.m)!=(r=e.m)?n-r:t.l-e.l}function vot(){vot=O,Nbt(),KHt=new $P(u_t,VHt=QHt),lJ(),HHt=new $P(l_t,BHt=DHt),nnt(),zHt=new $P(h_t,$Ht=IHt),FHt=new $P(f_t,(EI(),!0))}function yot(t,e,n){var i,r;i=e*n,TO(t.g,145)?(r=MX(t)).f.d?r.f.a||(t.d.a+=i+P_t):(t.d.d-=i+P_t,t.d.a+=i+P_t):TO(t.g,10)&&(t.d.d-=i,t.d.a+=2*i)}function xot(t,e,i){var r,o,a,s,c;for(o=t[i.g],c=new md(e.d);c.a0?t.g:0),++i;e.b=r,e.e=o}function Sot(t){var e,n,i;if(i=t.b,vS(t.i,i.length)){for(n=2*i.length,t.b=YY(szt,WSt,317,n,0,1),t.c=YY(szt,WSt,317,n,0,1),t.f=n-1,t.i=0,e=t.a;e;e=e.c)vlt(t,e,e);++t.g}}function Eot(t,e,n){var i;(i=e.c.i).k==(bct(),KWt)?(p5(t,(jkt(),_Yt),QD(Ast(i,_Yt),11)),p5(t,MYt,QD(Ast(i,MYt),11))):(p5(t,(jkt(),_Yt),e.c),p5(t,MYt,n.d))}function Cot(t,e,i){var r,o,a,s,c,u;return ubt(),s=e/2,a=i/2,c=1,u=1,(r=n.Math.abs(t.a))>s&&(c=s/r),(o=n.Math.abs(t.b))>a&&(u=a/o),FO(t,n.Math.min(c,u)),t}function _ot(){sS.call(this),this.e=-1,this.a=!1,this.p=nEt,this.k=-1,this.c=-1,this.b=-1,this.g=!1,this.f=-1,this.j=-1,this.n=-1,this.i=-1,this.d=-1,this.o=nEt}function Mot(){Mot=O,YVt=yF(cR(cR(cR(new fX,(Nst(),nWt),(Nkt(),LUt)),nWt,$Ut),iWt,XUt),iWt,EUt),ZVt=cR(cR(new fX,nWt,pUt),nWt,CUt),QVt=yF(new fX,iWt,MUt)}function Pot(t,e){var n,i,r,o;for(o=new rm,e.e=null,e.f=null,i=new md(e.i);i.a0)try{i=omt(e,nEt,Jkt)}catch(t){throw TO(t=S4(t),127)?lm(new yZ(t)):lm(t)}return!t.a&&(t.a=new Gg(t)),i<(n=t.a).i&&i>=0?QD(a1(n,i),56):null}(t,0==(r=e.c.length)?"":(AW(0,e.c.length),fA(e.c[0]))),i=1;i0&&(r=rht(t,(o&Jkt)%t.d.length,o,e))?r.ed(n):(i=t.tj(o,e,n),t.c.Fc(i),null)}function Fot(t,e){var n,i,r,o;switch(X8(t,e)._k()){case 3:case 2:for(r=0,o=(n=rvt(e)).i;r=0?e:-e;i>0;)i%2==0?(n*=n,i=i/2|0):(r*=n,i-=1);return e<0?1/r:r}(t,t)/T8(2.718281828459045,t))}function Bot(t,e){var n;if(t.ni()&&null!=e){for(n=0;n0&&(t.b+=2,t.a+=r):(t.b+=1,t.a+=n.Math.min(r,o))}function qot(t,e){var n;if(n=!1,aP(e)&&(n=!0,tH(t,new W$(fA(e)))),n||TO(e,236)&&(n=!0,tH(t,new Ef(eD(QD(e,236))))),!n)throw lm(new Vv(oDt))}function Got(t){var e,n;switch(QD(Ast(bH(t),(wkt(),A1t)),420).g){case 0:return e=t.n,n=t.o,new Y_(e.a+n.a/2,e.b+n.b/2);case 1:return new hT(t.n);default:return null}}function Yot(){Yot=O,fGt=new GC(dPt,0),hGt=new GC("LEFTUP",1),pGt=new GC("RIGHTUP",2),lGt=new GC("LEFTDOWN",3),dGt=new GC("RIGHTDOWN",4),uGt=new GC("BALANCED",5)}function Qot(t,e,n){switch(e){case 1:return!t.n&&(t.n=new vz(soe,t,1,7)),Vvt(t.n),!t.n&&(t.n=new vz(soe,t,1,7)),void k$(t.n,QD(n,14));case 2:return void A0(t,fA(n))}J5(t,e,n)}function Zot(t,e,n){switch(e){case 3:return void j1(t,ey(hA(n)));case 4:return void A1(t,ey(hA(n)));case 5:return void N1(t,ey(hA(n)));case 6:return void D1(t,ey(hA(n)))}Qot(t,e,n)}function Jot(t,e,n){var i,r;(i=dst(r=new Uw,e,null))&&i.Fi(),E2(r,n),fQ((!t.c&&(t.c=new vz(dae,t,12,10)),t.c),r),$1(r,0),H1(r,1),d7(r,!0),l7(r,!0)}function tat(t,e){var n,i;return TO(n=NE(t.g,e),235)?((i=QD(n,235)).Qh(),i.Nh()):TO(n,498)?i=QD(n,1938).b:null}function eat(t,e,n,i){var r,o;return C$(e),C$(n),EZ(!!(o=QD(tD(t.d,e),19)),"Row %s not in %s",e,t.e),EZ(!!(r=QD(tD(t.b,n),19)),"Column %s not in %s",n,t.c),D4(t,o.a,r.a,i)}function nat(t,e,n,i,r,o,a){var s,c,u,l,h;if(h=ert(s=(u=o==a-1)?i:0,l=r[o]),10!=i&&L4(Vy(t,a-o),e[o],n[o],s,h),!u)for(++o,c=0;c0?t.i:0)),++e;for(function(t,e){var n,i;for(wH(e),n=!1,i=new md(t);i.a1||-1==s?(o=QD(c,15),r.Wb(function(t,e){var n,i,r;for(i=new wY(e.gc()),n=e.Kc();n.Ob();)(r=Zgt(t,QD(n.Pb(),56)))&&(i.c[i.c.length]=r);return i}(t,o))):r.Wb(Zgt(t,QD(c,56))))}function bat(t){switch(QD(Ast(t.b,(wkt(),w1t)),375).g){case 1:_S(hB(GZ(new _R(null,new DW(t.d,16)),new zr),new $r),new Hr);break;case 2:!function(t){var e,n,i,r,o,a,s;for(i=0,s=0,a=new md(t.d);a.a0&&Lrt(this,this.c-1,(Oxt(),Eie)),this.c0&&t[0].length>0&&(this.c=ty(lA(Ast(bH(t[0][0]),(jkt(),kYt))))),this.a=YY(K3t,_St,2018,t.length,0,2),this.b=YY(G3t,_St,2019,t.length,0,2),this.d=new i8}function Lat(t){return 0!=t.c.length&&((AW(0,t.c.length),QD(t.c[0],17)).c.i.k==(bct(),KWt)||Jq(hB(new _R(null,new DW(t,16)),new zo),new $o))}function Rat(t,e,n){return ast(n,"Tree layout",1),$U(t.b),Kz(t.b,($rt(),J4t),J4t),Kz(t.b,t5t,t5t),Kz(t.b,e5t,e5t),Kz(t.b,n5t,n5t),t.a=eyt(t.b,e),function(t,e,n){var i,r,o;if(!(r=n)&&(r=new av),ast(r,"Layout",t.a.c.length),ty(lA(Ast(e,(sft(),z5t)))))for(cS(),i=0;i=0?(n=Kot(t,qEt),i=Mtt(t,qEt)):(n=Kot(e=UF(t,1),5e8),i=n9(VF(i=Mtt(e,5e8),1),WW(t,1))),UW(VF(i,32),WW(n,uCt))}function Gat(t,e,n){var i;switch(_j(0!=e.b),i=QD(YJ(e,e.a.a),8),n.g){case 0:i.b=0;break;case 2:i.b=t.f;break;case 3:i.a=0;break;default:i.a=t.g}return c$(ent(e,0),i),e}function Yat(t,e,n,i){var r,o,a,s,c;switch(c=t.b,s=$et(a=(o=e.d).j,c.d[a.g],n),r=vN(bO(o.n),o.a),o.j.g){case 1:case 3:s.a+=r.a;break;case 2:case 4:s.b+=r.b}Yq(i,s,i.c.b,i.c)}function Qat(t,e,n){var i,r,o,a;for(a=hZ(t.e,e,0),(o=new mw).b=n,i=new JU(t.e,a);i.b=0;e--)X$t[e]=i,i*=.5;for(n=1,t=24;t>=0;t--)U$t[t]=n,n*=.5}function Jat(t){var e,n;if(ty(lA(Eft(t,(wkt(),O1t)))))for(n=new jF(dI(pdt(t).a.Kc(),new l));Qht(n);)if(Ylt(e=QD(kG(n),79))&&ty(lA(Eft(e,I1t))))return!0;return!1}function tst(t,e){var n,i,r;zz(t.f,e)&&(e.b=t,i=e.c,-1!=hZ(t.j,i,0)||nL(t.j,i),r=e.d,-1!=hZ(t.j,r,0)||nL(t.j,r),0!=(n=e.a.b).c.length&&(!t.i&&(t.i=new Yet(t)),function(t,e){var n,i;for(i=new md(e);i.a=t.f)break;o.c[o.c.length]=n}return o}function lst(t){var e,n,i,r;for(e=null,r=new md(t.wf());r.a0&&hvt(t.g,e,t.g,e+i,s),a=n.Kc(),t.i+=i,r=0;ro&&_z(u,AJ(n[s],$$t))&&(r=s,o=c);return r>=0&&(i[0]=e+o),r}function mst(t,e,n){ast(n,"Grow Tree",1),t.b=e.f,ty(lA(Ast(e,(x3(),fKt))))?(t.c=new ne,yW(t,null)):t.c=new ne,t.a=!1,opt(t,e.f),p5(e,dKt,(EI(),!!t.a)),zct(n)}function wst(t){var e,n;return t>=rCt?(e=oCt+(t-rCt>>10&1023)&dEt,n=56320+(t-rCt&1023)&dEt,String.fromCharCode(e)+""+String.fromCharCode(n)):String.fromCharCode(t&dEt)}function vst(t,e,n,i,r){var o,a,s;for(o=Qpt(t,e,n,i,r),s=!1;!o;)Lft(t,r,!0),s=!0,o=Qpt(t,e,n,i,r);s&&Lft(t,r,!1),0!=(a=W4(r)).c.length&&(t.d&&t.d.lg(a),vst(t,r,n,i,a))}function yst(){yst=O,kne=new nM(dPt,0),yne=new nM("DIRECTED",1),Sne=new nM("UNDIRECTED",2),wne=new nM("ASSOCIATION",3),xne=new nM("GENERALIZATION",4),vne=new nM("DEPENDENCY",5)}function xst(t,e){var n,i;for(wH(e),i=t.b.c.length,nL(t.b,e);i>0;){if(n=i,i=(i-1)/2|0,t.a.ue(ER(t.b,i),e)<=0)return Qq(t.b,n,e),!0;Qq(t.b,n,ER(t.b,i))}return Qq(t.b,i,e),!0}function kst(t,e,i,r){var o,a;if(o=0,i)o=Z6(t.a[i.g][e.g],r);else for(a=0;a=a)}function Est(t,e,n,i){var r;if(r=!1,aP(i)&&(r=!0,NL(e,n,fA(i))),r||rP(i)&&(r=!0,Est(t,e,n,i)),r||TO(i,236)&&(r=!0,tK(e,n,QD(i,236))),!r)throw lm(new Vv(oDt))}function Cst(t,e){var n,i,r,o;if(wH(e),(o=t.a.gc())=fEt?"error":"warn",t.a),t.b&&tpt(e,n,t.b,"Exception: ",!0))}function Ast(t,e){var n,i;return!t.q&&(t.q=new rm),null!=(i=H$(t.q,e))?i:(TO(n=e.wg(),4)&&(null==n?(!t.q&&(t.q=new rm),UG(t.q,e)):(!t.q&&(t.q=new rm),DH(t.q,e,n))),n)}function Nst(){Nst=O,JVt=new dC("P1_CYCLE_BREAKING",0),tWt=new dC("P2_LAYERING",1),eWt=new dC("P3_NODE_ORDERING",2),nWt=new dC("P4_NODE_PLACEMENT",3),iWt=new dC("P5_EDGE_ROUTING",4)}function Dst(t,e){var n,i,r,o;for(i=(1==e?lWt:uWt).a.ec().Kc();i.Ob();)for(n=QD(i.Pb(),103),o=QD($G(t.f.c,n),21).Kc();o.Ob();)r=QD(o.Pb(),46),cZ(t.b.b,r.b),cZ(t.b.a,QD(r.b,81).d)}function Lst(t,e){var n;if(uJ(),t.c==e.c){if(t.b==e.b||function(t,e){return $4(),t==bWt&&e==wWt||t==wWt&&e==bWt||t==mWt&&e==gWt||t==gWt&&e==mWt}(t.b,e.b)){if(n=function(t){return t==bWt||t==wWt}(t.b)?1:-1,t.a&&!e.a)return n;if(!t.a&&e.a)return-n}return nO(t.b.g,e.b.g)}return A7(t.c,e.c)}function Rst(t,e){var n,i;if(Xst(t,e))return!0;for(i=new md(e);i.a=(r=t.Vi())||e<0)throw lm(new Bv(EDt+e+CDt+r));if(n>=r||n<0)throw lm(new Bv(_Dt+n+CDt+r));return e!=n?(o=t.Ti(n),t.Hi(e,o),i=o):i=t.Oi(n),i}function Wst(t){var e,n,i;if(i=t,t)for(e=0,n=t.Ug();n;n=n.Ug()){if(++e>sCt)return Wst(n);if(i=n,n==t)throw lm(new Qv("There is a cycle in the containment hierarchy of "+t))}return i}function Ust(t){var e,n,i;for(i=new J3(iSt,"[","]"),n=t.Kc();n.Ob();)KG(i,iP(e=n.Pb())===iP(t)?"(this Collection)":null==e?cSt:T9(e));return i.a?0==i.e.length?i.a.a:i.a.a+""+i.e:i.c}function Xst(t,e){var n,i;if(i=!1,e.gc()<2)return!1;for(n=0;ni&&(NW(e-1,t.length),t.charCodeAt(e-1)<=32);)--e;return i>0||e1&&(t.j.b+=t.e)):(t.j.a+=i.a,t.j.b=n.Math.max(t.j.b,i.b),t.d.c.length>1&&(t.j.a+=t.e))}function Zst(){Zst=O,qXt=L4(Vy(nre,1),pPt,61,0,[(Oxt(),Cie),Eie,Bie]),XXt=L4(Vy(nre,1),pPt,61,0,[Eie,Bie,Vie]),GXt=L4(Vy(nre,1),pPt,61,0,[Bie,Vie,Cie]),YXt=L4(Vy(nre,1),pPt,61,0,[Vie,Cie,Eie])}function Jst(t,e,n,i){var r,o,a,s,c;if(o=t.c.d,a=t.d.d,o.j!=a.j)for(c=t.b,r=o.j,s=null;r!=a.j;)s=0==e?j7(r):O7(r),FL(i,vN($et(r,c.d[r.g],n),$et(s,c.d[s.g],n))),r=s}function tct(t,e,n,i){var r,o,a,s,c;return s=QD((a=Frt(t.a,e,n)).a,19).a,o=QD(a.b,19).a,i&&(c=QD(Ast(e,(jkt(),zYt)),10),r=QD(Ast(n,zYt),10),c&&r&&(ZX(t.b,c,r),s+=t.b.i,o+=t.b.e)),s>o}function ect(t){var e,n,i,r,o,a,s,c;for(this.a=Rnt(t),this.b=new im,i=0,r=(n=t).length;i0&&(t.a[K.p]=Z++)}for(it=0,N=0,R=(I=i).length;N0;){for(_j(X.b>0),U=0,c=new md((K=QD(X.a.Xb(X.c=--X.b),11)).e);c.a0&&(K.j==(Oxt(),Cie)?(t.a[K.p]=it,++it):(t.a[K.p]=it+F+$,++$))}it+=$}for(W=new rm,b=new cT,j=0,D=(T=e).length;jl.b&&(l.b=q)):K.i.c==Q&&(ql.c&&(l.c=q));for(RQ(g,0,g.length,null),nt=YY(Gce,MEt,25,g.length,15,1),r=YY(Gce,MEt,25,it+1,15,1),w=0;w0;)E%2>0&&(o+=at[E+1]),++at[E=(E-1)/2|0];for(_=YY(o4t,oSt,362,2*g.length,0,1),x=0;xEA(t.d).c?(t.i+=t.g.c,Ott(t.d)):EA(t.d).c>EA(t.g).c?(t.e+=t.d.c,Ott(t.g)):(t.i+=PR(t.g),t.e+=PR(t.d),Ott(t.g),Ott(t.d))}function oct(t,e,i,r){t.a.d=n.Math.min(e,i),t.a.a=n.Math.max(e,r)-t.a.d,ec&&(u=c/r),(o=n.Math.abs(e.b-t.b))>a&&(l=a/o),s=n.Math.min(u,l),t.a+=s*(e.a-t.a),t.b+=s*(e.b-t.b)}function hct(t,e,n,i,r){var o,a;for(a=!1,o=QD(ER(n.b,0),33);Pwt(t,e,o,i,r)&&(a=!0,lat(n,o),0!=n.b.c.length);)o=QD(ER(n.b,0),33);return 0==n.b.c.length&&cot(n.j,n),a&&rrt(e.q),a}function fct(t,e){var n,i,r,o;if(ubt(),e.b<2)return!1;for(i=n=QD(TX(o=ent(e,0)),8);o.b!=o.d.c;){if(zdt(t,i,r=QD(TX(o),8)))return!0;i=r}return!!zdt(t,i,n)}function dct(t,e,n,i){return 0==n?(!t.o&&(t.o=new xQ((ckt(),Hre),yoe,t,0)),QN(t.o,e,i)):QD(OJ(QD(K3(t,16),26)||t.zh(),n),66).Nj().Rj(t,met(t),n-w$(t.zh()),e,i)}function pct(t,e){var n;e!=t.sb?(n=null,t.sb&&(n=QD(t.sb,49).ih(t,1,roe,n)),e&&(n=QD(e,49).gh(t,1,roe,n)),(n=K8(t,e,n))&&n.Fi()):0!=(4&t.Db)&&0==(1&t.Db)&&z3(t,new mz(t,1,4,e,e))}function bct(){bct=O,VWt=new gC("NORMAL",0),KWt=new gC("LONG_EDGE",1),HWt=new gC("EXTERNAL_PORT",2),WWt=new gC("NORTH_SOUTH_PORT",3),BWt=new gC("LABEL",4),$Wt=new gC("BREAKING_POINT",5)}function gct(t,e,n){var i;ast(n,"Self-Loop routing",1),i=function(t){switch(QD(Ast(t,(wkt(),b1t)),218).g){case 1:return new io;case 3:return new co;default:return new no}}(e),bP(Ast(e,(nY(),$9t))),_S(hB(lB(lB(GZ(new _R(null,new DW(e.b,16)),new Wi),new Ui),new Xi),new qi),new yC(t,i)),zct(n)}function mct(t,e){var n,i,r;return(e&=63)<22?(n=t.l<>22-e,r=t.h<>22-e):e<44?(n=0,i=t.l<>44-e):(n=0,i=0,r=t.l<t)throw lm(new Yv("k must be smaller than n"));return 0==e||e==t?1:0==t?0:Hot(t)/(Hot(e)*Hot(t-e))}function xct(t,e){var n,i,r,o;for(n=new _T(t);null!=n.g||n.c?null==n.g||0!=n.i&&QD(n.g[n.i-1],47).Ob():jV(n);)if(TO(o=QD(cdt(n),56),160))for(i=QD(o,160),r=0;r0&&kgt(t,n,e),r):function(t,e,n){var i,r,o;return i=t.c[e.c.p][e.p],r=t.c[n.c.p][n.p],null!=i.a&&null!=r.a?((o=qF(i.a,r.a))<0?kgt(t,e,n):o>0&&kgt(t,n,e),o):null!=i.a?(kgt(t,e,n),-1):null!=r.a?(kgt(t,n,e),1):0}(t,e,n)}function Rct(t,e,n){var i,r,o,a;if(0!=e.b){for(i=new CS,a=ent(e,0);a.b!=a.d.c;)O2(i,V4(o=QD(TX(a),86))),(r=o.e).a=QD(Ast(o,(ayt(),j5t)),19).a,r.b=QD(Ast(o,A5t),19).a;Rct(t,i,J2(n,i.b/t.a|0))}}function Fct(t,e){var n,i,r,o,a;if(t.e<=e)return t.g;if(function(t,e,n){var i;return(i=lvt(t,e,!1)).b<=e&&i.a<=n}(t,t.g,e))return t.g;for(o=t.r,i=t.g,a=t.r,r=(o-i)/2+i;i+11&&(t.e.b+=t.a)):(t.e.a+=i.a,t.e.b=n.Math.max(t.e.b,i.b),t.d.c.length>1&&(t.e.a+=t.a))}function Kct(t){var e,n,i,r;switch(e=(r=t.i).b,i=r.j,n=r.g,r.a.g){case 0:n.a=(t.g.b.o.a-i.a)/2;break;case 1:n.a=e.d.n.a+e.d.a.a;break;case 2:n.a=e.d.n.a+e.d.a.a-i.a;break;case 3:n.b=e.d.n.b+e.d.a.b}}function Vct(t,e,n,i,r){if(ii&&(t.a=i),t.br&&(t.b=r),t}function Wct(t){if(TO(t,149))return function(t){var e,n,i,r,o;return o=sst(t),null!=t.a&&NL(o,"category",t.a),!_k(new Qf(t.d))&&(IJ(o,"knownOptions",i=new _f),e=new Cg(i),qq(new Qf(t.d),e)),!_k(t.g)&&(IJ(o,"supportedFeatures",r=new _f),n=new _g(r),qq(t.g,n)),o}(QD(t,149));if(TO(t,229))return function(t){var e,n,i;return i=sst(t),!_k(t.c)&&(IJ(i,"knownLayouters",n=new _f),e=new Mg(n),qq(t.c,e)),i}(QD(t,229));if(TO(t,23))return function(t){var e,n,i;return i=sst(t),null!=t.e&&NL(i,mDt,t.e),!!t.k&&NL(i,"type",bj(t.k)),!_k(t.j)&&(n=new _f,IJ(i,QNt,n),e=new Pg(n),qq(t.j,e)),i}(QD(t,23));throw lm(new Yv(cDt+Ust(new ay(L4(Vy(qFt,1),oSt,1,5,[t])))))}function Uct(t,e,n,i){var r,o;if(e.k==(bct(),KWt))for(o=new jF(dI(c9(e).a.Kc(),new l));Qht(o);)if((r=QD(kG(o),17)).c.i.k==KWt&&t.c.a[r.c.i.c.p]==i&&t.c.a[e.c.p]==n)return!0;return!1}function Xct(t,e,n,i){var r;this.b=i,this.e=t==(d0(),X3t),r=e[n],this.d=hR(Yce,[_St,g_t],[177,25],16,[r.length,r.length],2),this.a=hR(Gce,[_St,MEt],[48,25],15,[r.length,r.length],2),this.c=new Nat(e,n)}function qct(t){var e,n,i;for(t.k=new OW((Oxt(),L4(Vy(nre,1),pPt,61,0,[Kie,Cie,Eie,Bie,Vie])).length,t.j.c.length),i=new md(t.j);i.a=n)return nut(t,e,i.p),!0;return!1}function Zct(t){var e;return 0!=(64&t.Db)?kct(t):(e=new _I(gNt),!t.a||yP(yP((e.a+=' "',e),t.a),'"'),yP(ek(yP(ek(yP(ek(yP(ek((e.a+=" (",e),t.i),","),t.j)," | "),t.g),","),t.f),")"),e.a)}function Jct(t,e,n){var i,r,o,a,s;for(s=mpt(t.e.Tg(),e),r=QD(t.g,119),i=0,a=0;a0&&rut(t,o,n));e.p=0}function out(t){var e;this.c=new CS,this.f=t.e,this.e=t.d,this.i=t.g,this.d=t.c,this.b=t.b,this.k=t.j,this.a=t.a,t.i?this.j=t.i:this.j=new oD(e=QD(Ix(F9t),9),QD(nN(e,e.length),9),0),this.g=t.f}function aut(t,e,n){var i,r,o;if(!(n<=e+2))for(r=(n-e)/2|0,i=0;i=0?t.Bh(r):Clt(t,i)}else o7(t,n,i)}function lut(t){var e,n;if(n=null,e=!1,TO(t,204)&&(e=!0,n=QD(t,204).a),e||TO(t,258)&&(e=!0,n=""+QD(t,258).a),e||TO(t,483)&&(e=!0,n=""+QD(t,483).a),!e)throw lm(new Vv(oDt));return n}function hut(t,e){var n,i;if(t.f){for(;e.Ob();)if(TO(i=(n=QD(e.Pb(),72)).ak(),99)&&0!=(QD(i,18).Bb&MNt)&&(!t.e||i.Gj()!=Yre||0!=i.aj())&&null!=n.dd())return e.Ub(),!0;return!1}return e.Ob()}function fut(t,e){var n,i;if(t.f){for(;e.Sb();)if(TO(i=(n=QD(e.Ub(),72)).ak(),99)&&0!=(QD(i,18).Bb&MNt)&&(!t.e||i.Gj()!=Yre||0!=i.aj())&&null!=n.dd())return e.Pb(),!0;return!1}return e.Sb()}function dut(t,e,n){var i,r,o,a,s,c;for(c=mpt(t.e.Tg(),e),i=0,s=t.i,r=QD(t.g,119),a=0;a=(r/2|0))for(this.e=i?i.c:null,this.d=r;n++0;)GV(this);this.b=e,this.a=null}function Cut(t,e){var n,i;e.a?function(t,e){var n;if(!s$(t.b,e.b))throw lm(new Qv("Invalid hitboxes for scanline constraint calculation."));(O4(e.b,QD(function(t,e){return jx(Ftt(t.a,e,!0))}(t.b,e.b),57))||O4(e.b,QD(function(t,e){return jx(Rtt(t.a,e,!0))}(t.b,e.b),57)))&&(cS(),e.b),t.a[e.b.f]=QD(HN(t.b,e.b),57),(n=QD($N(t.b,e.b),57))&&(t.a[n.f]=e.b)}(t,e):(!!(n=QD(HN(t.b,e.b),57))&&n==t.a[e.b.f]&&!!n.a&&n.a!=e.b.a&&n.c.Fc(e.b),!!(i=QD($N(t.b,e.b),57))&&t.a[i.f]==e.b&&!!i.a&&i.a!=e.b.a&&e.b.c.Fc(i),RI(t.b,e.b))}function _ut(t,e){var n,i;if(n=QD(VH(t.b,e),124),QD(QD($G(t.r,e),21),84).dc())return n.n.b=0,void(n.n.c=0);n.n.b=t.C.b,n.n.c=t.C.c,t.A.Hc((jtt(),ere))&&Gbt(t,e),i=function(t,e){var n,i,r;for(r=0,i=QD(QD($G(t.r,e),21),84).Kc();i.Ob();)r+=(n=QD(i.Pb(),111)).d.b+n.b.rf().a+n.d.c,i.Ob()&&(r+=t.w);return r}(t,e),fbt(t,e)==(Jet(),iie)&&(i+=2*t.w),n.a.a=i}function Mut(t,e){var n,i;if(n=QD(VH(t.b,e),124),QD(QD($G(t.r,e),21),84).dc())return n.n.d=0,void(n.n.a=0);n.n.d=t.C.d,n.n.a=t.C.a,t.A.Hc((jtt(),ere))&&Ybt(t,e),i=function(t,e){var n,i,r;for(r=0,i=QD(QD($G(t.r,e),21),84).Kc();i.Ob();)r+=(n=QD(i.Pb(),111)).d.d+n.b.rf().b+n.d.a,i.Ob()&&(r+=t.w);return r}(t,e),fbt(t,e)==(Jet(),iie)&&(i+=2*t.w),n.a.b=i}function Put(t,e){var n,i,r,o;for(o=new im,i=new md(e);i.a=0&&zN(t.substr(s,"//".length),"//")?(c=Ket(t,s+=2,Goe,Yoe),i=t.substr(s,c-s),s=c):null==h||s!=t.length&&(NW(s,t.length),47==t.charCodeAt(s))||(a=!1,-1==(c=NI(t,wst(35),s))&&(c=t.length),i=t.substr(s,c-s),s=c);if(!n&&s0&&58==XH(l,l.length-1)&&(r=l,s=c)),s0&&(NW(0,n.length),47!=n.charCodeAt(0))))throw lm(new Yv("invalid opaquePart: "+n));if(t&&(null==e||!hS(Foe,e.toLowerCase()))&&null!=n&&A9(n,Goe,Yoe))throw lm(new Yv(CLt+n));if(t&&null!=e&&hS(Foe,e.toLowerCase())&&!function(t){if(null!=t&&t.length>0&&33==XH(t,t.length-1))try{return null==Rut(fj(t,0,t.length-1)).e}catch(t){if(!TO(t=S4(t),32))throw lm(t)}return!1}(n))throw lm(new Yv(CLt+n));if(!function(t){var e;return null==t||(e=t.length)>0&&(NW(e-1,t.length),58==t.charCodeAt(e-1))&&!A9(t,Goe,Yoe)}(i))throw lm(new Yv("invalid device: "+i));if(!function(t){var e,n;if(null==t)return!1;for(e=0,n=t.length;en.a&&(i.Hc((mat(),lte))?r=(e.a-n.a)/2:i.Hc(fte)&&(r=e.a-n.a)),e.b>n.b&&(i.Hc((mat(),pte))?o=(e.b-n.b)/2:i.Hc(dte)&&(o=e.b-n.b)),Tst(t,r,o)}function Uut(t,e,n,i,r,o,a,s,c,u,l,h,f){TO(t.Cb,88)&&alt(pG(QD(t.Cb,88)),4),E2(t,n),t.f=a,R7(t,s),z7(t,c),L7(t,u),F7(t,l),d7(t,h),K7(t,f),l7(t,!0),$1(t,r),t.ok(o),s8(t,e),null!=i&&(t.i=null,J0(t,i))}function Xut(t){var e,n;if(t.f){for(;t.n>0;){if(TO(n=(e=QD(t.k.Xb(t.n-1),72)).ak(),99)&&0!=(QD(n,18).Bb&MNt)&&(!t.e||n.Gj()!=Yre||0!=n.aj())&&null!=e.dd())return!0;--t.n}return!1}return t.n>0}function qut(t,e,n){if(t<0)return ngt(rSt,L4(Vy(qFt,1),oSt,1,5,[n,g7(t)]));if(e<0)throw lm(new Yv(aSt+e));return ngt("%s (%s) must not be greater than size (%s)",L4(Vy(qFt,1),oSt,1,5,[n,g7(t),g7(e)]))}function Gut(t,e,n,i,r,o){var a,s,c;if(i-n<7)!function(t,e,n,i){var r,o,a;for(r=e+1;re&&i.ue(t[o-1],t[o])>0;--o)a=t[o],L$(t,o,t[o-1]),L$(t,o-1,a)}(e,n,i,o);else if(Gut(e,t,s=n+r,c=s+((a=i+r)-s>>1),-r,o),Gut(e,t,c,a,-r,o),o.ue(t[c-1],t[c])<=0)for(;n=i||e=0?t.sh(o,n):vdt(t,r,n)}else E9(t,i,r,n)}function Zut(t){var e,n,i,r,o;if(n=QD(t,49).qh())try{if(i=null,(e=Vft((vE(),sae),hmt(null==(o=n).e?o:(!o.c&&(o.c=new Rbt(0!=(256&o.f),o.i,o.a,o.d,0!=(16&o.f),o.j,o.g,null)),o.c))))&&(r=e.rh())&&(i=r.Wk(function(t){return wH(t),t}(n.e))),i&&i!=t)return Zut(i)}catch(o){if(!TO(o=S4(o),60))throw lm(o)}return t}function Jut(t,e,n){var i,r,o,a;if(a=null==e?0:t.b.se(e),0==(r=null==(i=t.a.get(a))?new Array:i).length)t.a.set(a,r);else if(o=V6(t,e,r))return o.ed(n);return L$(r,r.length,new WE(e,n)),++t.c,gK(t.b),null}function tlt(t,e){var n;return $U(t.a),Kz(t.a,(w2(),f6t),f6t),Kz(t.a,d6t,d6t),cR(n=new fX,d6t,(y9(),w6t)),iP(Eft(e,(Hrt(),B6t)))!==iP((T6(),C6t))&&cR(n,d6t,g6t),cR(n,d6t,m6t),aT(t.a,n),eyt(t.a,e)}function elt(t){if(!t)return yy(),Mzt;var e=t.valueOf?t.valueOf():t;if(e!==t){var i=Pzt[typeof e];return i?i(e):t8(typeof e)}return t instanceof Array||t instanceof n.Array?new kf(t):new Cf(t)}function nlt(t,e,i){var r,o,a;switch(a=t.o,(o=(r=QD(VH(t.p,i),244)).i).b=zlt(r),o.a=Flt(r),o.b=n.Math.max(o.b,a.a),o.b>a.a&&!e&&(o.b=a.a),o.c=-(o.b-a.a)/2,i.g){case 1:o.d=-o.a;break;case 3:o.d=a.b}swt(r),fwt(r)}function ilt(t,e,i){var r,o,a;switch(a=t.o,(o=(r=QD(VH(t.p,i),244)).i).b=zlt(r),o.a=Flt(r),o.a=n.Math.max(o.a,a.b),o.a>a.b&&!e&&(o.a=a.b),o.d=-(o.a-a.b)/2,i.g){case 4:o.c=-o.b;break;case 2:o.c=a.a}swt(r),fwt(r)}function rlt(t,e){var n,i,r,o;if(ubt(),e.b<2)return!1;for(i=n=QD(TX(o=ent(e,0)),8);o.b!=o.d.c;){if(r=QD(TX(o),8),!l3(t,i)||!l3(t,r))return!1;i=r}return!(!l3(t,i)||!l3(t,n))}function olt(t,e){var n,i,r,o,a;return n=V1(a=t,"x"),function(t,e){N1(t,null==e||nD((wH(e),e))||isNaN((wH(e),e))?0:(wH(e),e))}(new fg(e).a,n),i=V1(a,"y"),function(t,e){D1(t,null==e||nD((wH(e),e))||isNaN((wH(e),e))?0:(wH(e),e))}(new dg(e).a,i),r=V1(a,WNt),function(t,e){A1(t,null==e||nD((wH(e),e))||isNaN((wH(e),e))?0:(wH(e),e))}(new pg(e).a,r),o=V1(a,VNt),function(t,e){j1(t,null==e||nD((wH(e),e))||isNaN((wH(e),e))?0:(wH(e),e))}(new bg(e).a,o),o}function alt(t,e){Ubt(t,e),0!=(1&t.b)&&(t.a.a=null),0!=(2&t.b)&&(t.a.f=null),0!=(4&t.b)&&(t.a.g=null,t.a.i=null),0!=(16&t.b)&&(t.a.d=null,t.a.e=null),0!=(8&t.b)&&(t.a.b=null),0!=(32&t.b)&&(t.a.j=null,t.a.c=null)}function slt(t){var e,n,i,r,o;if(null==t)return cSt;for(o=new J3(iSt,"[","]"),i=0,r=(n=t).length;i0)for(a=t.c.d,r=FO(yN(new Y_((s=t.d.d).a,s.b),a),1/(i+1)),o=new Y_(a.a,a.b),n=new md(t.a);n.a(AW(o+1,e.c.length),QD(e.c[o+1],19)).a-i&&++s,nL(r,(AW(o+s,e.c.length),QD(e.c[o+s],19))),a+=(AW(o+s,e.c.length),QD(e.c[o+s],19)).a-i,++n;n",lm(new Yv(i.a))}function xlt(t,e,n){var i,r;for(i=e.d,r=n.d;i.a-r.a==0&&i.b-r.b==0;)i.a+=Gft(t,26)*xCt+Gft(t,27)*kCt-.5,i.b+=Gft(t,26)*xCt+Gft(t,27)*kCt-.5,r.a+=Gft(t,26)*xCt+Gft(t,27)*kCt-.5,r.b+=Gft(t,26)*xCt+Gft(t,27)*kCt-.5}function klt(t){var e,n,i,r;for(t.g=new O9(QD(C$(nre),290)),i=0,Oxt(),n=Cie,e=0;e=0?t._g(n,!0,!0):iht(t,r,!0),153),QD(i,215).ol(e)}function _lt(t){var e,i;return t>-0x800000000000&&t<0x800000000000?0==t?0:((e=t<0)&&(t=-t),i=cV(n.Math.floor(n.Math.log(t)/.6931471805599453)),(!e||t!=n.Math.pow(2,i))&&++i,i):h4(R3(t))}function Mlt(t,e){var n,i,r;return u4(i=new ait(t),e),p5(i,(jkt(),hYt),e),p5(i,(wkt(),w0t),(zat(),uie)),p5(i,RJt,(Wnt(),U9t)),If(i,(bct(),HWt)),tW(n=new Oct,i),glt(n,(Oxt(),Vie)),tW(r=new Oct,i),glt(r,Eie),i}function Plt(t){switch(t.g){case 0:return new Wv((d0(),U3t));case 1:return new fh;case 2:return new vh;default:throw lm(new Yv("No implementation is available for the crossing minimizer "+(null!=t.f?t.f:""+t.g)))}}function Tlt(t,e){var n,i,r,o;for(t.c[e.p]=!0,nL(t.a,e),o=new md(e.j);o.a=(o=a.gc()))a.$b();else for(r=a.Kc(),i=0;i0&&(a+=n,++e);e>1&&(a+=t.c*(e-1))}else a=Hy(H2(fB(lB(Xz(t.a),new Et),new Ct)));return a>0?a+t.n.d+t.n.a:0}function zlt(t){var e,n,i,r,o,a;if(a=0,0==t.b)a=Hy(H2(fB(lB(Xz(t.a),new kt),new St)));else{for(e=0,r=0,o=(i=yit(t,!0)).length;r0&&(a+=n,++e);e>1&&(a+=t.c*(e-1))}return a>0?a+t.n.b+t.n.c:0}function $lt(t){var e,n;return(n=new Iy).a+="e_",null!=(e=function(t){return 0!=t.b.c.length&&QD(ER(t.b,0),70).a?QD(ER(t.b,0),70).a:PB(t)}(t))&&(n.a+=""+e),t.c&&t.d&&(yP((n.a+=" ",n),Srt(t.c)),yP(vP((n.a+="[",n),t.c.i),"]"),yP((n.a+=vPt,n),Srt(t.d)),yP(vP((n.a+="[",n),t.d.i),"]")),n.a}function Hlt(t){switch(t.g){case 0:return new ph;case 1:return new bh;case 2:return new dh;case 3:return new gh;default:throw lm(new Yv("No implementation is available for the layout phase "+(null!=t.f?t.f:""+t.g)))}}function Blt(t,e,i,r,o){var a;switch(a=0,o.g){case 1:a=n.Math.max(0,e.b+t.b-(i.b+r));break;case 3:a=n.Math.max(0,-t.b-r);break;case 2:a=n.Math.max(0,-t.a-r);break;case 4:a=n.Math.max(0,e.a+t.a-(i.a+r))}return a}function Klt(t){var e,n;switch(t.b){case-1:return!0;case 0:return(n=t.t)>1||-1==n||(e=dot(t))&&(EE(),e.Cj()==$Lt)?(t.b=-1,!0):(t.b=1,!1);default:return!1}}function Vlt(t,e){var n,i,r,o;if(Skt(t),0!=t.c||123!=t.a)throw lm(new py($kt((VT(),VDt))));if(o=112==e,i=t.d,(n=dj(t.i,125,i))<0)throw lm(new py($kt((VT(),WDt))));return r=fj(t.i,i,n),t.d=n+1,pQ(r,o,512==(512&t.e))}function Wlt(t,e,n,i,r){var o,a,s,c;return iP(c=tA(t,QD(r,56)))!==iP(r)?(s=QD(t.g[n],72),zO(t,n,Xat(t,0,o=YX(e,c))),gT(t.e)&&(Tat(a=FK(t,9,o.ak(),r,c,i,!1),new xZ(t.e,9,t.c,s,o,i,!1)),vZ(a)),c):r}function Ult(t,e){var n,i;try{return function(t,e){var n;return Ej(!!(n=(wH(t),t).g)),wH(e),n(e)}(t.a,e)}catch(r){if(TO(r=S4(r),32)){try{if(i=omt(e,nEt,Jkt),n=Ix(t.a),i>=0&&i=0?t._g(n,!0,!0):iht(t,r,!0),153),QD(i,215).ll(e);throw lm(new Yv(xNt+e.ne()+ENt))}function qlt(t,e){var n,i,r;if(r=0,(i=e[0])>=t.length)return-1;for(NW(i,t.length),n=t.charCodeAt(i);n>=48&&n<=57&&(r=10*r+(n-48),!(++i>=t.length));)NW(i,t.length),n=t.charCodeAt(i);return i>e[0]?e[0]=i:r=-1,r}function Glt(t,e,n){var i,r,o,a;o=t.c,a=t.d,r=(A5(L4(Vy(K9t,1),_St,8,0,[o.i.n,o.n,o.a])).b+A5(L4(Vy(K9t,1),_St,8,0,[a.i.n,a.n,a.a])).b)/2,i=o.j==(Oxt(),Eie)?new Y_(e+o.i.c.c.a+n,r):new Y_(e-n,r),Ij(t.a,0,i)}function Ylt(t){var e,n,i;for(e=null,n=qz(e0(L4(Vy(ZFt,1),oSt,20,0,[(!t.b&&(t.b=new IN(toe,t,4,7)),t.b),(!t.c&&(t.c=new IN(toe,t,5,8)),t.c)])));Qht(n);)if(i=ost(QD(kG(n),82)),e){if(e!=i)return!1}else e=i;return!0}function Qlt(t,e,n){var i;if(++t.j,e>=t.i)throw lm(new Bv(EDt+e+CDt+t.i));if(n>=t.i)throw lm(new Bv(_Dt+n+CDt+t.i));return i=t.g[n],e!=n&&(e>16)>>16&16),n+=e=(t>>=e)-256>>16&8,n+=e=(t<<=e)-nCt>>16&4,(n+=e=(t<<=e)-MSt>>16&2)+2-(e=(i=(t<<=e)>>14)&~(i>>1)))}function tht(t){var e,n,i,r;for(UB(),BKt=new im,HKt=new rm,$Kt=new im,!t.a&&(t.a=new vz(coe,t,10,11)),function(t){var e,n,i,r,o,a,s,c,u,h;for(e=new rm,a=new UO(t);a.e!=a.i.gc();){for(o=QD(fnt(a),33),n=new Ym,DH(HKt,o,n),h=new ae,i=QD(kq(new _R(null,new t$(new jF(dI(ddt(o).a.Kc(),new l)))),iF(h,yQ(new B,new H,new it,L4(Vy(gHt,1),GSt,132,0,[(O6(),cHt)])))),83),r0(n,QD(i.xc((EI(),!0)),14),new se),r=QD(kq(lB(QD(i.xc(!1),15).Lc(),new ce),yQ(new B,new H,new it,L4(Vy(gHt,1),GSt,132,0,[cHt]))),15).Kc();r.Ob();)(u=Hst(QD(r.Pb(),79)))&&((s=QD(nP(LK(e.f,u)),21))||(s=Apt(u),Jut(e.f,u,s)),O2(n,s));for(i=QD(kq(new _R(null,new t$(new jF(dI(pdt(o).a.Kc(),new l)))),iF(h,yQ(new B,new H,new it,L4(Vy(gHt,1),GSt,132,0,[cHt])))),83),r0(n,QD(i.xc(!0),14),new ue),c=QD(kq(lB(QD(i.xc(!1),15).Lc(),new le),yQ(new B,new H,new it,L4(Vy(gHt,1),GSt,132,0,[cHt]))),15).Kc();c.Ob();)(u=Bst(QD(c.Pb(),79)))&&((s=QD(nP(LK(e.f,u)),21))||(s=Apt(u),Jut(e.f,u,s)),O2(n,s))}}(e=t.a),r=new UO(e);r.e!=r.i.gc();)i=QD(fnt(r),33),-1==hZ(BKt,i,0)&&(n=new im,nL($Kt,n),Net(i,n));return $Kt}function eht(t,e){var i,r,o,a,s,c,u,l;for(l=ey(hA(Ast(e,(wkt(),Y0t)))),u=t[0].n.a+t[0].o.a+t[0].d.c+l,c=1;c0?1:YP(isNaN(r),isNaN(0)))>=0^(u0(qIt),(n.Math.abs(c)<=qIt||0==c||isNaN(c)&&isNaN(0)?0:c<0?-1:c>0?1:YP(isNaN(c),isNaN(0)))>=0)?n.Math.max(c,r):(u0(qIt),(n.Math.abs(r)<=qIt||0==r||isNaN(r)&&isNaN(0)?0:r<0?-1:r>0?1:YP(isNaN(r),isNaN(0)))>0?n.Math.sqrt(c*c+r*r):-n.Math.sqrt(c*c+r*r))}(a=r.b,s=o.b))>=0?i:(c=hH(yN(new Y_(s.c+s.b/2,s.d+s.a/2),new Y_(a.c+a.b/2,a.d+a.a/2))),-(Tmt(a,s)-1)*c)}function iht(t,e,n){var i,r,o;if(o=oyt((gut(),bse),t.Tg(),e))return EE(),QD(o,66).Oj()||(o=BW(PZ(bse,o))),r=QD((i=t.Yg(o))>=0?t._g(i,!0,!0):iht(t,o,!0),153),QD(r,215).hl(e,n);throw lm(new Yv(xNt+e.ne()+ENt))}function rht(t,e,n,i){var r,o,a,s,c;if(r=t.d[e])if(o=r.g,c=r.i,null!=i){for(s=0;s>5),15,1))[n]=1<1;e>>=1)0!=(1&e)&&(i=cJ(i,n)),n=1==n.d?cJ(n,n):new Met(dmt(n.a,n.d,YY(Gce,MEt,25,n.d<<1,15,1)));return cJ(i,n)}(t,e)}function aht(t){var e,n,i;for(qS(),this.b=hWt,this.c=(n7(),ine),this.f=(XS(),sWt),this.a=t,Qy(this,new Me),Wdt(this),i=new md(t.b);i.a=null.jm()?(cdt(t),uht(t)):e.Ob()}function lht(t,e,i){var r,o,a,s;if(!(s=i)&&(s=DL(new av,0)),ast(s,aPt,1),Nyt(t.c,e),1==(a=function(t,e){var n,i,r,o,a,s,c,u,l,h,f,d;if(t.c=t.d,f=null==(d=lA(Ast(e,(wkt(),I0t))))||(wH(d),d),o=QD(Ast(e,(jkt(),bYt)),21).Hc((rbt(),PGt)),n=!((r=QD(Ast(e,w0t),98))==(zat(),cie)||r==lie||r==uie),!f||!n&&o)h=new ay(L4(Vy(FWt,1),bPt,37,0,[e]));else{for(l=new md(e.a);l.ae.a&&(i.Hc((mat(),lte))?t.c.a+=(n.a-e.a)/2:i.Hc(fte)&&(t.c.a+=n.a-e.a)),n.b>e.b&&(i.Hc((mat(),pte))?t.c.b+=(n.b-e.b)/2:i.Hc(dte)&&(t.c.b+=n.b-e.b)),QD(Ast(t,(jkt(),bYt)),21).Hc((rbt(),PGt))&&(n.a>e.a||n.b>e.b))for(s=new md(t.a);s.a0?W9(n):I7(W9(n)),Ant(e,S0t,r)}function xht(t,e){var n,i,r,o,a;for(a=t.j,e.a!=e.b&&ZT(a,new Ur),r=a.c.length/2|0,i=0;i=0;)i=n[o],a.rl(i.ak())&&fQ(r,i);!Gxt(t,r)&&gT(t.e)&&Xm(t,e.$j()?FK(t,6,e,(XB(),_$t),null,-1,!1):FK(t,e.Kj()?2:1,e,null,null,-1,!1))}function Eht(){var t,e;for(Eht=O,S$t=YY(C$t,_St,91,32,0,1),E$t=YY(C$t,_St,91,32,0,1),t=1,e=0;e<=18;e++)S$t[e]=qet(t),E$t[e]=qet(VF(t,e)),t=i9(t,5);for(;eo)||e.q&&(o=(i=e.C).c.c.a-i.o.a/2,i.n.a-n>o)))}function _ht(t){var e,n,i,r,o,a;for(dW(),n=new pq,i=new md(t.e.b);i.a1?t.e*=ey(t.a):t.f/=ey(t.a),function(t){var e,n;for(e=t.b.a.a.ec().Kc();e.Ob();)n=new ndt(QD(e.Pb(),561),t.e,t.f),nL(t.g,n)}(t),wet(t),function(t){var e,i,r,o,a,s,c,u,l,h;for(i=function(t){var e,i,r,o,a,s,c,u,l,h;for(i=t.o,e=t.p,s=Jkt,o=nEt,c=Jkt,a=nEt,l=0;l=0?t.Qg(null):t.eh().ih(t,-1-e,null,null),t.Rg(QD(r,49),n),i&&i.Fi(),t.Lg()&&t.Mg()&&n>-1&&z3(t,new mz(t,9,n,o,r)),r):o}function Vht(t){var e,n,i,r,o,a,s;for(o=0,r=t.f.e,n=0;n>5)>=t.d)return t.e<0;if(n=t.a[r],e=1<<(31&e),t.e<0){if(r<(i=o3(t)))return!1;n=i==r?-n:~n}return 0!=(n&e)}function Ght(t,e){var n,i,r,o,a,s,c;if(o=e.e)for(n=Kht(o),i=QD(t.g,674),a=0;a>16)),15).Xc(o))>e,o=t.m>>e|n<<22-e,r=t.l>>e|t.m<<22-e):e<44?(a=i?VEt:0,o=n>>e-22,r=t.m>>e-22|n<<44-e):(a=i?VEt:0,o=i?KEt:0,r=n>>e-44),rO(r&KEt,o&KEt,a&VEt)}function rft(t){var e,i,r,o,a,s;for(this.c=new im,this.d=t,r=tCt,o=tCt,e=eCt,i=eCt,s=ent(t,0);s.b!=s.d.c;)a=QD(TX(s),8),r=n.Math.min(r,a.a),o=n.Math.min(o,a.b),e=n.Math.max(e,a.a),i=n.Math.max(i,a.b);this.a=new vB(r,o,e-r,i-o)}function oft(t,e){var n,i,r,o;for(i=new md(t.b);i.a0&&TO(e,42)&&(t.a.qj(),o=null==(c=(u=QD(e,42)).cd())?0:G5(c),a=FA(t.a,o),n=t.a.d[a]))for(i=QD(n.g,367),l=n.i,s=0;s=2)for(e=hA((i=o.Kc()).Pb());i.Ob();)a=e,e=hA(i.Pb()),r=n.Math.min(r,(wH(e),e-(wH(a),a)));return r}function wft(t,e){var n,i,r,o,a;Yq(i=new CS,e,i.c.b,i.c);do{for(_j(0!=i.b),n=QD(YJ(i,i.a.a),86),t.b[n.g]=1,o=ent(n.d,0);o.b!=o.d.c;)a=(r=QD(TX(o),188)).c,1==t.b[a.g]?FL(t.a,r):2==t.b[a.g]?t.b[a.g]=1:Yq(i,a,i.c.b,i.c)}while(0!=i.b)}function vft(t,e){var n,i,r;if(iP(e)===iP(C$(t)))return!0;if(!TO(e,15))return!1;if(i=QD(e,15),(r=t.gc())!=i.gc())return!1;if(TO(i,54)){for(n=0;n0&&(r=n),a=new md(t.f.e);a.a0&&o0):o<0&&-o0)}function jft(t,e,n,i){var r,o,a,s,c,u;for(r=(e-t.d)/t.c.c.length,o=0,t.a+=n,t.d=e,u=new md(t.c);u.a=0;e-=2)for(n=0;n<=e;n+=2)(t.b[n]>t.b[n+2]||t.b[n]===t.b[n+2]&&t.b[n+1]>t.b[n+3])&&(i=t.b[n+2],t.b[n+2]=t.b[n],t.b[n]=i,i=t.b[n+3],t.b[n+3]=t.b[n+1],t.b[n+1]=i);t.c=!0}}function Fft(t,e){var n,i,r,o,a,s;for(o=(1==e?lWt:uWt).a.ec().Kc();o.Ob();)for(r=QD(o.Pb(),103),s=QD($G(t.f.c,r),21).Kc();s.Ob();)switch(a=QD(s.Pb(),46),i=QD(a.b,81),n=QD(a.a,189).c,r.g){case 2:case 1:i.g.d+=n;break;case 4:case 3:i.g.c+=n}}function zft(t,e){var n,i,r,o,a,s,c,u,l;for(u=-1,l=0,s=0,c=(a=t).length;s0&&++l;++u}return l}function $ft(t){var e;return(e=new _I(Nx(t.gm))).a+="@",yP(e,(G5(t)>>>0).toString(16)),t.kh()?(e.a+=" (eProxyURI: ",vP(e,t.qh()),t.$g()&&(e.a+=" eClass: ",vP(e,t.$g())),e.a+=")"):t.$g()&&(e.a+=" (eClass: ",vP(e,t.$g()),e.a+=")"),e.a}function Hft(t){var e,n,i;if(t.e)throw lm(new Qv((uA(jHt),qCt+jHt.k+GCt)));for(t.d==(n7(),ine)&&rxt(t,ene),n=new md(t.a.a);n.a=0)return r;for(o=1,a=new md(e.j);a.a0&&e.ue((AW(r-1,t.c.length),QD(t.c[r-1],10)),o)>0;)Qq(t,r,(AW(r-1,t.c.length),QD(t.c[r-1],10))),--r;AW(r,t.c.length),t.c[r]=o}n.a=new rm,n.b=new rm}function Xft(t,e,n){var i;if(2==(t.c-t.b&t.a.length-1))e==(Oxt(),Cie)||e==Eie?(VJ(QD(C5(t),15),(Brt(),Fne)),VJ(QD(C5(t),15),zne)):(VJ(QD(C5(t),15),(Brt(),zne)),VJ(QD(C5(t),15),Fne));else for(i=new GH(t);i.a!=i.b;)VJ(QD(b8(i),15),n)}function qft(t,e){var n,i,r,o,a,s;for(a=new JU(i=ZD(new jg(t)),i.c.length),s=new JU(r=ZD(new jg(e)),r.c.length),o=null;a.b>0&&s.b>0&&(_j(a.b>0),n=QD(a.a.Xb(a.c=--a.b),33),_j(s.b>0),n==QD(s.a.Xb(s.c=--s.b),33));)o=n;return o}function Gft(t,e){var i,r,o,a;return o=t.a*SCt+1502*t.b,a=t.b*SCt+11,o+=i=n.Math.floor(a*ECt),a-=i*CCt,o%=CCt,t.a=o,t.b=a,e<=24?n.Math.floor(t.a*U$t[e]):((r=t.a*(1<=2147483648&&(r-=lCt),r)}function Yft(t,e,n){var i,r,o,a;GW(t,e)>GW(t,n)?(i=r9(n,(Oxt(),Eie)),t.d=i.dc()?0:eR(QD(i.Xb(0),11)),a=r9(e,Vie),t.b=a.dc()?0:eR(QD(a.Xb(0),11))):(r=r9(n,(Oxt(),Vie)),t.d=r.dc()?0:eR(QD(r.Xb(0),11)),o=r9(e,Eie),t.b=o.dc()?0:eR(QD(o.Xb(0),11)))}function Qft(t){var e,n,i,r,o,a,s;if(t&&(e=t.Hh(fRt))&&null!=(a=fA(xtt((!e.b&&(e.b=new Wj((Rkt(),Rae),use,e)),e.b),"conversionDelegates")))){for(s=new im,r=0,o=(i=jgt(a,"\\w+")).length;r>1,t.k=i-1>>1}(this,this.d,this.c),function(t){var e,n,i,r,o,a,s;for(n=zT(t.e),o=FO(Nj(bO(FT(t.e)),t.d*t.a,t.c*t.b),-.5),e=n.a-o.a,r=n.b-o.b,s=0;s0&&iyt(this,o)}function idt(t,e,n,i,r,o){var a,s,c;if(!r[e.b]){for(r[e.b]=!0,!(a=i)&&(a=new qG),nL(a.e,e),c=o[e.b].Kc();c.Ob();)(s=QD(c.Pb(),282)).d!=n&&s.c!=n&&(s.c!=e&&idt(t,s.c,e,a,r,o),s.d!=e&&idt(t,s.d,e,a,r,o),nL(a.c,s),M4(a.d,s.b));return a}return null}function rdt(t){var e,n,i;for(e=0,n=new md(t.e);n.a=2}function odt(t){var e,n;try{return null==t?cSt:T9(t)}catch(i){if(TO(i=S4(i),102))return e=i,n=Nx(Y5(t))+"@"+(cS(),(Lnt(t)>>>0).toString(16)),Det(I4(),(zS(),"Exception during lenientFormat for "+n),e),"<"+n+" threw "+Nx(e.gm)+">";throw lm(i)}}function adt(t){switch(t.g){case 0:return new oh;case 1:return new th;case 2:return new oE;case 3:return new Oo;case 4:return new fN;case 5:return new ah;default:throw lm(new Yv("No implementation is available for the layerer "+(null!=t.f?t.f:""+t.g)))}}function sdt(t,e,n){var i,r,o;for(o=new md(t.t);o.a0&&(i.b.n-=i.c,i.b.n<=0&&i.b.u>0&&FL(e,i.b));for(r=new md(t.i);r.a0&&(i.a.u-=i.c,i.a.u<=0&&i.a.n>0&&FL(n,i.a))}function cdt(t){var e,n,i;if(null==t.g&&(t.d=t.si(t.f),fQ(t,t.d),t.c))return t.f;if(i=(e=QD(t.g[t.i-1],47)).Pb(),t.e=e,(n=t.si(i)).Ob())t.d=n,fQ(t,n);else for(t.d=null;!e.Ob()&&(L$(t.g,--t.i,null),0!=t.i);)e=QD(t.g[t.i-1],47);return i}function udt(t,e,i,r){var o,a,s;for(If(o=new ait(t),(bct(),BWt)),p5(o,(jkt(),IYt),e),p5(o,KYt,r),p5(o,(wkt(),w0t),(zat(),uie)),p5(o,_Yt,e.c),p5(o,MYt,e.d),Kpt(e,o),s=n.Math.floor(i/2),a=new md(o.j);a.a=0?t._g(i,!0,!0):iht(t,o,!0),153),QD(r,215).ml(e,n)}function ydt(t,e,n){ast(n,"Eades radial",1),n.n&&e&&eU(n,FU(e),(P6(),Sre)),t.d=QD(Eft(e,(nA(),h6t)),33),t.c=ey(hA(Eft(e,(Hrt(),Z6t)))),t.e=Qnt(QD(Eft(e,J6t),293)),t.a=function(t){switch(t.g){case 0:return new Wa;case 1:return new Ua;default:throw lm(new Yv(kjt+(null!=t.f?t.f:""+t.g)))}}(QD(Eft(e,e8t),426)),t.b=function(t){switch(t.g){case 1:return new $a;case 2:return new Ha;case 3:return new za;case 0:return null;default:throw lm(new Yv(kjt+(null!=t.f?t.f:""+t.g)))}}(QD(Eft(e,q6t),340)),function(t){var e,n,i,r,o;if(i=0,r=gMt,t.b)for(e=0;e<360;e++)n=.017453292519943295*e,Wgt(t,t.d,0,0,gjt,n),(o=t.b.ig(t.d))0),o.a.Xb(o.c=--o.b),JA(o,r),_j(o.b0);n++);if(n>0&&n0);e++);return e>0&&n>16!=6&&e){if(sot(t,e))throw lm(new Yv(INt+Mht(t)));i=null,t.Cb&&(i=(n=t.Db>>16)>=0?Jrt(t,i):t.Cb.ih(t,-1-n,null,i)),e&&(i=xnt(e,t,6,i)),(i=jA(t,e,i))&&i.Fi()}else 0!=(4&t.Db)&&0==(1&t.Db)&&z3(t,new mz(t,1,6,e,e))}function Mdt(t,e){var n,i;if(e!=t.Cb||t.Db>>16!=9&&e){if(sot(t,e))throw lm(new Yv(INt+lgt(t)));i=null,t.Cb&&(i=(n=t.Db>>16)>=0?eot(t,i):t.Cb.ih(t,-1-n,null,i)),e&&(i=xnt(e,t,9,i)),(i=AA(t,e,i))&&i.Fi()}else 0!=(4&t.Db)&&0==(1&t.Db)&&z3(t,new mz(t,1,9,e,e))}function Pdt(t,e){var n,i;if(e!=t.Cb||t.Db>>16!=3&&e){if(sot(t,e))throw lm(new Yv(INt+bvt(t)));i=null,t.Cb&&(i=(n=t.Db>>16)>=0?uot(t,i):t.Cb.ih(t,-1-n,null,i)),e&&(i=xnt(e,t,12,i)),(i=IA(t,e,i))&&i.Fi()}else 0!=(4&t.Db)&&0==(1&t.Db)&&z3(t,new mz(t,1,3,e,e))}function Tdt(t){var e,n,i,r,o;if(i=dot(t),null==(o=t.j)&&i)return t.$j()?null:i.zj();if(TO(i,148)){if((n=i.Aj())&&(r=n.Nh())!=t.i){if((e=QD(i,148)).Ej())try{t.g=r.Kh(e,o)}catch(e){if(!TO(e=S4(e),78))throw lm(e);t.g=null}t.i=r}return t.g}return null}function Odt(t){var e;return nL(e=new im,new JE(new Y_(t.c,t.d),new Y_(t.c+t.b,t.d))),nL(e,new JE(new Y_(t.c,t.d),new Y_(t.c,t.d+t.a))),nL(e,new JE(new Y_(t.c+t.b,t.d+t.a),new Y_(t.c+t.b,t.d))),nL(e,new JE(new Y_(t.c+t.b,t.d+t.a),new Y_(t.c,t.d+t.a))),e}function Idt(t,e,n,i){var r,o,a;if(a=Vot(e,n),i.c[i.c.length]=e,-1==t.j[a.p]||2==t.j[a.p]||t.a[e.p])return i;for(t.j[a.p]=-1,o=new jF(dI(s9(a).a.Kc(),new l));Qht(o);)if(!tG(r=QD(kG(o),17))&&(tG(r)||r.c.i.c!=r.d.i.c)&&r!=e)return Idt(t,r,a,i);return i}function jdt(t,e,n){var i,r;for(r=e.a.ec().Kc();r.Ob();)i=QD(r.Pb(),79),!QD(H$(t.b,i),266)&&(TV($st(i))==TV(Kst(i))?Ypt(t,i,n):$st(i)==TV(Kst(i))?null==H$(t.c,i)&&null!=H$(t.b,Kst(i))&&Uyt(t,i,n,!1):null==H$(t.d,i)&&null!=H$(t.b,$st(i))&&Uyt(t,i,n,!0))}function Adt(t,e){var n,i,r,o,a,s,c;for(r=t.Kc();r.Ob();)for(i=QD(r.Pb(),10),tW(s=new Oct,i),glt(s,(Oxt(),Eie)),p5(s,(jkt(),FYt),(EI(),!0)),a=e.Kc();a.Ob();)o=QD(a.Pb(),10),tW(c=new Oct,o),glt(c,Vie),p5(c,FYt,!0),p5(n=new kK,FYt,!0),ZV(n,s),QV(n,c)}function Ndt(t,e,n,i){var r,o,a,s;r=Btt(t,e,n),o=Btt(t,n,e),a=QD(H$(t.c,e),112),s=QD(H$(t.c,n),112),r0&&p.a<=0){c.c=YY(qFt,oSt,1,0,5,1),c.c[c.c.length]=p;break}(d=p.i-p.d)>=s&&(d>s&&(c.c=YY(qFt,oSt,1,0,5,1),s=d),c.c[c.c.length]=p)}0!=c.c.length&&(a=QD(ER(c,qnt(r,c.c.length)),112),hV(v.a,a),a.g=l++,rwt(a,e,n,i),c.c=YY(qFt,oSt,1,0,5,1))}for(g=t.c.length+1,f=new md(t);f.ai.b.g&&(o.c[o.c.length]=i);return o}function Rdt(){Rdt=O,Z8t=new $_("CANDIDATE_POSITION_LAST_PLACED_RIGHT",0),Q8t=new $_("CANDIDATE_POSITION_LAST_PLACED_BELOW",1),t7t=new $_("CANDIDATE_POSITION_WHOLE_DRAWING_RIGHT",2),J8t=new $_("CANDIDATE_POSITION_WHOLE_DRAWING_BELOW",3),e7t=new $_("WHOLE_DRAWING",4)}function Fdt(t,e){var n,i;if(e!=t.Cb||t.Db>>16!=11&&e){if(sot(t,e))throw lm(new Yv(INt+ugt(t)));i=null,t.Cb&&(i=(n=t.Db>>16)>=0?lot(t,i):t.Cb.ih(t,-1-n,null,i)),e&&(i=xnt(e,t,10,i)),(i=wN(t,e,i))&&i.Fi()}else 0!=(4&t.Db)&&0==(1&t.Db)&&z3(t,new mz(t,1,11,e,e))}function zdt(t,e,n){return ubt(),(!l3(t,e)||!l3(t,n))&&(nxt(new Y_(t.c,t.d),new Y_(t.c+t.b,t.d),e,n)||nxt(new Y_(t.c+t.b,t.d),new Y_(t.c+t.b,t.d+t.a),e,n)||nxt(new Y_(t.c+t.b,t.d+t.a),new Y_(t.c,t.d+t.a),e,n)||nxt(new Y_(t.c,t.d+t.a),new Y_(t.c,t.d),e,n))}function $dt(t,e){var n,i,r,o;if(!t.dc())for(n=0,i=t.gc();n>16!=7&&e){if(sot(t,e))throw lm(new Yv(INt+Zct(t)));i=null,t.Cb&&(i=(n=t.Db>>16)>=0?tot(t,i):t.Cb.ih(t,-1-n,null,i)),e&&(i=QD(e,49).gh(t,1,Zre,i)),(i=xF(t,e,i))&&i.Fi()}else 0!=(4&t.Db)&&0==(1&t.Db)&&z3(t,new mz(t,1,7,e,e))}function Ydt(t,e){var n,i;if(e!=t.Cb||t.Db>>16!=3&&e){if(sot(t,e))throw lm(new Yv(INt+u7(t)));i=null,t.Cb&&(i=(n=t.Db>>16)>=0?iot(t,i):t.Cb.ih(t,-1-n,null,i)),e&&(i=QD(e,49).gh(t,0,ioe,i)),(i=kF(t,e,i))&&i.Fi()}else 0!=(4&t.Db)&&0==(1&t.Db)&&z3(t,new mz(t,1,3,e,e))}function Qdt(t,e){var n,i,r,o,a,s,c,u,l;return Eht(),e.d>t.d&&(s=t,t=e,e=s),e.d<63?function(t,e){var n,i,r,o,a,s,c,u,l;return o=(n=t.d)+(i=e.d),a=t.e!=e.e?-1:1,2==o?(l=qR(c=i9(WW(t.a[0],uCt),WW(e.a[0],uCt))),0==(u=qR(UF(c,32)))?new bY(a,l):new Tz(a,2,L4(Vy(Gce,1),MEt,25,15,[l,u]))):(Z8(t.a,n,e.a,i,r=YY(Gce,MEt,25,o,15,1)),MU(s=new Tz(a,o,r)),s)}(t,e):(u=xG(t,a=(-2&t.d)<<4),l=xG(e,a),i=Cwt(t,yG(u,a)),r=Cwt(e,yG(l,a)),c=Qdt(u,l),n=Qdt(i,r),o=yG(o=Pvt(Pvt(o=Qdt(Cwt(u,i),Cwt(r,l)),c),n),a),Pvt(Pvt(c=yG(c,a<<1),o),n))}function Zdt(t,e,n){var i,r,o,a,s;for(a=Y8(t,n),s=YY(UWt,SPt,10,e.length,0,1),i=0,o=a.Kc();o.Ob();)ty(lA(Ast(r=QD(o.Pb(),11),(jkt(),wYt))))&&(s[i++]=QD(Ast(r,zYt),10));if(i=0;r+=n?1:-1)o|=e.c.Sf(s,r,n,i&&!ty(lA(Ast(e.j,(jkt(),pYt))))&&!ty(lA(Ast(e.j,(jkt(),WYt))))),o|=e.q._f(s,r,n),o|=Xbt(t,s[r],n,i);return zz(t.c,e),o}function npt(t,e,n){var i,r,o,a,s,c,u,l;for(u=0,l=(c=nX(t.j)).length;u1&&(t.a=!0),lF(QD(n.b,65),vN(bO(QD(e.b,65).c),FO(yN(bO(QD(n.b,65).a),QD(e.b,65).a),r))),yW(t,e),opt(t,n)}function apt(t){var e,n,i,r,o,a;for(r=new md(t.a.a);r.a0&&o>0?e++:i>0?n++:o>0?r++:n++}XB(),ZT(t.j,new di)}function cpt(t,e){var n,i,r,o,a,s,c,u,l;for(s=e.j,a=e.g,c=QD(ER(s,s.c.length-1),113),AW(0,s.c.length),u=hrt(t,a,c,l=QD(s.c[0],113)),o=1;ou&&(c=n,l=r,u=i);e.a=l,e.c=c}function upt(t){if(!t.a.d||!t.a.e)throw lm(new Qv((uA(rBt),rBt.k+" must have a source and target "+(uA(oBt),oBt.k+" specified."))));if(t.a.d==t.a.e)throw lm(new Qv("Network simplex does not support self-loops: "+t.a+" "+t.a.d+" "+t.a.e));return qI(t.a.d.g,t.a),qI(t.a.e.b,t.a),t.a}function lpt(t,e,n){var i,r,o,a,s,c;if(i=0,0!=e.b&&0!=n.b){o=ent(e,0),a=ent(n,0),s=ey(hA(TX(o))),c=ey(hA(TX(a))),r=!0;do{if(s>c-t.b&&sc-t.a&&s