@cloudhal/cli 0.0.0-stage → 0.1.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +202 -0
- package/README.md +191 -2
- package/dist/assets/skills/comment-triage/SKILL.md +34 -0
- package/dist/assets/skills/comment-triage/evals/nightly-queue.json +13 -0
- package/dist/assets/skills/publish-article/SKILL.md +44 -0
- package/dist/assets/skills/publish-article/evals/file-under-category.json +10 -0
- package/dist/assets/skills/publish-article/evals/publish-draft.json +8 -0
- package/dist/assets/skills/publish-article/evals/schedule-draft.json +10 -0
- package/dist/assets/skills/publish-article/references/editorial-checklist.md +9 -0
- package/dist/assets/skills/rollback/SKILL.md +23 -0
- package/dist/assets/skills/rollback/evals/revert-last.json +4 -0
- package/dist/assets/skills/safe-edit/SKILL.md +29 -0
- package/dist/assets/skills/safe-edit/evals/retitle.json +4 -0
- package/dist/assets/skills/safe-edit/references/retagging.md +8 -0
- package/dist/assets/skills/site-bootstrap/SKILL.md +29 -0
- package/dist/assets/skills/site-bootstrap/evals/empty-site.json +9 -0
- package/dist/assets/skills/site-bootstrap/references/content-guidelines.md +6 -0
- package/dist/assets/skills/site-design/SKILL.md +31 -0
- package/dist/assets/skills/site-design/evals/landing-page.json +12 -0
- package/dist/assets/skills/site-design/references/checklist.md +10 -0
- package/dist/assets/skills/site-design/references/guidance.md +13 -0
- package/dist/assets/skills/site-design/references/page-recipes.md +34 -0
- package/dist/assets/skills/site-design/references/tokens.md +40 -0
- package/dist/assets/skills/stale-review/SKILL.md +40 -0
- package/dist/assets/skills/stale-review/evals/weekly-review.json +13 -0
- package/dist/assets/starters/blog/.yarnrc.yml +2 -0
- package/dist/assets/starters/blog/README.md +46 -0
- package/dist/assets/starters/blog/_gitignore +5 -0
- package/dist/assets/starters/blog/astro.config.mjs +40 -0
- package/dist/assets/starters/blog/package.json +35 -0
- package/dist/assets/starters/blog/public/favicon.ico +0 -0
- package/dist/assets/starters/blog/public/favicon.svg +1 -0
- package/dist/assets/starters/blog/public/fonts/fraunces-OFL.txt +93 -0
- package/dist/assets/starters/blog/public/fonts/fraunces-latin-ext-wght-normal.woff2 +0 -0
- package/dist/assets/starters/blog/public/fonts/fraunces-latin-wght-normal.woff2 +0 -0
- package/dist/assets/starters/blog/public/fonts/inter-OFL.txt +93 -0
- package/dist/assets/starters/blog/public/fonts/inter-latin-ext-wght-normal.woff2 +0 -0
- package/dist/assets/starters/blog/public/fonts/inter-latin-wght-normal.woff2 +0 -0
- package/dist/assets/starters/blog/public/fonts/jetbrains-mono-OFL.txt +93 -0
- package/dist/assets/starters/blog/public/fonts/jetbrains-mono-latin-ext-wght-normal.woff2 +0 -0
- package/dist/assets/starters/blog/public/fonts/jetbrains-mono-latin-wght-normal.woff2 +0 -0
- package/dist/assets/starters/blog/public/fonts/source-sans-3-OFL.txt +93 -0
- package/dist/assets/starters/blog/public/fonts/source-sans-3-latin-ext-wght-normal.woff2 +0 -0
- package/dist/assets/starters/blog/public/fonts/source-sans-3-latin-wght-normal.woff2 +0 -0
- package/dist/assets/starters/blog/public/fonts/source-serif-4-OFL.txt +93 -0
- package/dist/assets/starters/blog/public/fonts/source-serif-4-latin-ext-wght-normal.woff2 +0 -0
- package/dist/assets/starters/blog/public/fonts/source-serif-4-latin-wght-normal.woff2 +0 -0
- package/dist/assets/starters/blog/public/fonts/space-grotesk-OFL.txt +93 -0
- package/dist/assets/starters/blog/public/fonts/space-grotesk-latin-ext-wght-normal.woff2 +0 -0
- package/dist/assets/starters/blog/public/fonts/space-grotesk-latin-wght-normal.woff2 +0 -0
- package/dist/assets/starters/blog/src/DESIGN.md +42 -0
- package/dist/assets/starters/blog/src/blocks.ts +45 -0
- package/dist/assets/starters/blog/src/components/Archive.astro +108 -0
- package/dist/assets/starters/blog/src/components/Article.astro +105 -0
- package/dist/assets/starters/blog/src/components/Breadcrumbs.astro +25 -0
- package/dist/assets/starters/blog/src/components/EntryList.astro +54 -0
- package/dist/assets/starters/blog/src/components/LatestPosts.astro +30 -0
- package/dist/assets/starters/blog/src/components/MenuPanel.astro +46 -0
- package/dist/assets/starters/blog/src/components/NavLink.astro +27 -0
- package/dist/assets/starters/blog/src/components/NavMenu.astro +95 -0
- package/dist/assets/starters/blog/src/components/NotFound.astro +27 -0
- package/dist/assets/starters/blog/src/components/PostTerms.astro +33 -0
- package/dist/assets/starters/blog/src/components/RelatedPosts.astro +20 -0
- package/dist/assets/starters/blog/src/components/Search.astro +57 -0
- package/dist/assets/starters/blog/src/components/SearchDialog.astro +46 -0
- package/dist/assets/starters/blog/src/components/blocks/Testimonial.astro +18 -0
- package/dist/assets/starters/blog/src/env.d.ts +5 -0
- package/dist/assets/starters/blog/src/fonts.ts +15 -0
- package/dist/assets/starters/blog/src/icons.ts +12 -0
- package/dist/assets/starters/blog/src/layouts/Base.astro +426 -0
- package/dist/assets/starters/blog/src/middleware.ts +2 -0
- package/dist/assets/starters/blog/src/pages/[...path]/llms.txt.ts +40 -0
- package/dist/assets/starters/blog/src/pages/[...path]/rss.xml.ts +93 -0
- package/dist/assets/starters/blog/src/pages/[...path]/search.json.ts +23 -0
- package/dist/assets/starters/blog/src/pages/[...path].astro +449 -0
- package/dist/assets/starters/blog/src/pages/llms.txt.ts +21 -0
- package/dist/assets/starters/blog/src/pages/robots.txt.ts +13 -0
- package/dist/assets/starters/blog/src/pages/rss.xml.ts +25 -0
- package/dist/assets/starters/blog/src/pages/search.json.ts +21 -0
- package/dist/assets/starters/blog/src/pages/sitemap.xml.ts +23 -0
- package/dist/assets/starters/blog/src/settings.ts +312 -0
- package/dist/assets/starters/blog/src/strings.ts +269 -0
- package/dist/assets/starters/blog/src/styles/features/ambient.css +185 -0
- package/dist/assets/starters/blog/src/styles/features/article.css +215 -0
- package/dist/assets/starters/blog/src/styles/features/blocks.css +93 -0
- package/dist/assets/starters/blog/src/styles/features/carousel.css +266 -0
- package/dist/assets/starters/blog/src/styles/features/chrome-menus.css +264 -0
- package/dist/assets/starters/blog/src/styles/features/chrome.css +193 -0
- package/dist/assets/starters/blog/src/styles/features/comments.css +75 -0
- package/dist/assets/starters/blog/src/styles/features/icons.css +70 -0
- package/dist/assets/starters/blog/src/styles/features/languages.css +34 -0
- package/dist/assets/starters/blog/src/styles/features/live-surfaces.css +235 -0
- package/dist/assets/starters/blog/src/styles/features/motion-effects.css +217 -0
- package/dist/assets/starters/blog/src/styles/features/motion-scroll.css +309 -0
- package/dist/assets/starters/blog/src/styles/features/motion.css +254 -0
- package/dist/assets/starters/blog/src/styles/features/overlays.css +324 -0
- package/dist/assets/starters/blog/src/styles/features/prose.css +140 -0
- package/dist/assets/starters/blog/src/styles/features/search-dialog.css +144 -0
- package/dist/assets/starters/blog/src/styles/features/search.css +59 -0
- package/dist/assets/starters/blog/src/styles/features/surface-media.css +123 -0
- package/dist/assets/starters/blog/src/styles/features/surfaces.css +309 -0
- package/dist/assets/starters/blog/src/styles/features/tokens.css +100 -0
- package/dist/assets/starters/blog/src/styles/fonts.css +113 -0
- package/dist/assets/starters/blog/src/styles/global.css +30 -0
- package/dist/assets/starters/blog/src/theme.ts +48 -0
- package/dist/assets/starters/blog/tsconfig.json +5 -0
- package/dist/assets/studio/.assetsignore +2 -0
- package/dist/assets/studio/_headers +14 -0
- package/dist/assets/studio/assets/AccountPage-Dzr5d8sk.js +2 -0
- package/dist/assets/studio/assets/ActivityPage-C0HlgSI5.js +2 -0
- package/dist/assets/studio/assets/AgentModes-B81a2nUo.js +2 -0
- package/dist/assets/studio/assets/AgentsPage-BzCOyX4g.js +2 -0
- package/dist/assets/studio/assets/AnalyticsPage-7yb7DBOH.js +3 -0
- package/dist/assets/studio/assets/ApprovalsPage-_tqc02mk.js +3 -0
- package/dist/assets/studio/assets/Archive.es-C0uhxndN.js +2 -0
- package/dist/assets/studio/assets/ArrowClockwise.es-BA0pzb0Y.js +2 -0
- package/dist/assets/studio/assets/ArrowCounterClockwise.es-Bn2jikgp.js +2 -0
- package/dist/assets/studio/assets/ArrowSquareOut.es-BWeH9CSw.js +2 -0
- package/dist/assets/studio/assets/ArrowUp.es-Bh0pVk-S.js +2 -0
- package/dist/assets/studio/assets/ArrowsMerge.es-gfKOrxGd.js +2 -0
- package/dist/assets/studio/assets/ArticleEditorPage-Bcb81dXC.js +2 -0
- package/dist/assets/studio/assets/ArticlesPage-152INxny.js +2 -0
- package/dist/assets/studio/assets/AssetPage-ddWJt0hs.js +2 -0
- package/dist/assets/studio/assets/Audit-BCzf5vBq.js +2 -0
- package/dist/assets/studio/assets/AuditBadges-C4sNtzf9.js +2 -0
- package/dist/assets/studio/assets/AuthLayout-Cidy_2Lu.js +2 -0
- package/dist/assets/studio/assets/AutocompleteItem-drxau0wm3735nihq-C-iAptWL.js +2 -0
- package/dist/assets/studio/assets/AutomationsPage-Dc6g5v_v.js +2 -0
- package/dist/assets/studio/assets/BlockPropsForm-fj5gMAa0.js +2 -0
- package/dist/assets/studio/assets/BlockSection-CnUXl5Sg.js +2 -0
- package/dist/assets/studio/assets/BodyChanges-M0zcsivC.js +4 -0
- package/dist/assets/studio/assets/BookOpenText.es-BfXzf_Vn.js +2 -0
- package/dist/assets/studio/assets/BuildPage-C1Nwy4dt.js +2 -0
- package/dist/assets/studio/assets/CSPContext-ctyrgg64girv38ls-2UvfJ5m0.js +2 -0
- package/dist/assets/studio/assets/CalendarCheck.es-DWymuVqi.js +2 -0
- package/dist/assets/studio/assets/CalendarPlus.es-YGFiosIm.js +2 -0
- package/dist/assets/studio/assets/CaretLeft.es-BUnHcaxq.js +2 -0
- package/dist/assets/studio/assets/CaretRight.es-D_coqYai.js +2 -0
- package/dist/assets/studio/assets/CaretUp.es-DBg3pdpL.js +2 -0
- package/dist/assets/studio/assets/CheckCircle.es-XJ9Tr9Tu.js +2 -0
- package/dist/assets/studio/assets/ClockClockwise.es-1egHMnBk.js +2 -0
- package/dist/assets/studio/assets/ClockCountdown.es-BR_zz6vi.js +2 -0
- package/dist/assets/studio/assets/Columns-DGrju-Ia.js +2 -0
- package/dist/assets/studio/assets/ComboboxEmpty-o0q20j2l2syar9kx-Bf-42bzQ.js +2 -0
- package/dist/assets/studio/assets/CommandMenu-CH5CJ8Kg.js +2 -0
- package/dist/assets/studio/assets/CommentThreadControls-D04pICZT.js +2 -0
- package/dist/assets/studio/assets/CommentThreadPage-BP0N9T4z.js +2 -0
- package/dist/assets/studio/assets/CommenterPage-CeFR4pn4.js +2 -0
- package/dist/assets/studio/assets/Comments-CnfKPS2z.js +2 -0
- package/dist/assets/studio/assets/CommentsPage-BlP_knlf.js +2 -0
- package/dist/assets/studio/assets/CompositeItem-hzuk5x3e5zsfgnyj-XaSr50DG.js +2 -0
- package/dist/assets/studio/assets/CompositeRoot-g72lchaerolf5dc9-B2BokDIY.js +2 -0
- package/dist/assets/studio/assets/ConfirmDialog-DEHkMoTj.js +2 -0
- package/dist/assets/studio/assets/Crumbs-Ci_RdgHU.js +2 -0
- package/dist/assets/studio/assets/DeviceMobile.es-B4PwJ85Q.js +2 -0
- package/dist/assets/studio/assets/DeviceTablet.es-BpxIF5z6.js +2 -0
- package/dist/assets/studio/assets/DialogRoot-hl3genvzl9h8ridm-BRUDLjaw.js +2 -0
- package/dist/assets/studio/assets/DialogTrigger-g44cuem7n4wez533-B5K8lQD3.js +2 -0
- package/dist/assets/studio/assets/DirectionalIcon-BKKMj3KT.js +2 -0
- package/dist/assets/studio/assets/DotsThree.es-C-pT5SgE.js +2 -0
- package/dist/assets/studio/assets/DownloadSimple.es-Cq4-UK-k.js +2 -0
- package/dist/assets/studio/assets/EditorLayout-DVegYcZT.js +2 -0
- package/dist/assets/studio/assets/EditorPreview-DsZG4-oJ.js +2 -0
- package/dist/assets/studio/assets/Elevation-Ca3Q8sk-.js +2 -0
- package/dist/assets/studio/assets/ElevationRequest-B0_Q_gVT.js +2 -0
- package/dist/assets/studio/assets/EnvelopeSimple.es-g-hlqV74.js +2 -0
- package/dist/assets/studio/assets/Eye.es-DqovdtPt.js +2 -0
- package/dist/assets/studio/assets/EyeSlash.es-YoqigHIr.js +2 -0
- package/dist/assets/studio/assets/File.es-VYp_u8mn.js +2 -0
- package/dist/assets/studio/assets/FolderSimple.es-CbGWmBJc.js +2 -0
- package/dist/assets/studio/assets/FolderSimplePlus.es-C9Fl6ewY.js +2 -0
- package/dist/assets/studio/assets/ForgotPasswordPage-LNtBXfC8.js +2 -0
- package/dist/assets/studio/assets/Funnel.es-L1Sdi8-A.js +2 -0
- package/dist/assets/studio/assets/Gating-BdY3KxOv.js +2 -0
- package/dist/assets/studio/assets/Gauge.es-D0Pz39Z0.js +2 -0
- package/dist/assets/studio/assets/GitDiff.es-fB1csyEF.js +2 -0
- package/dist/assets/studio/assets/GlobeHemisphereWest.es-C34XiLRk.js +2 -0
- package/dist/assets/studio/assets/GovernanceDialog-DR0m4Bhp.js +2 -0
- package/dist/assets/studio/assets/HandPalm.es-CB5OlkOg.js +2 -0
- package/dist/assets/studio/assets/Heartbeat.es-DZziz772.js +2 -0
- package/dist/assets/studio/assets/Hourglass.es-aqS22q0y.js +2 -0
- package/dist/assets/studio/assets/House.es-BQyZgbwu.js +2 -0
- package/dist/assets/studio/assets/IconBase.es-BZDpYMnj.js +2 -0
- package/dist/assets/studio/assets/Image.es-BcOUS77O.js +2 -0
- package/dist/assets/studio/assets/InsetPanel-CHSg953_.js +2 -0
- package/dist/assets/studio/assets/InvitePage-CZ-4Clg6.js +2 -0
- package/dist/assets/studio/assets/Key.es-DE551dL3.js +2 -0
- package/dist/assets/studio/assets/Lightning.es-D0IF-5OW.js +2 -0
- package/dist/assets/studio/assets/LinkBreak.es-BvGThatb.js +2 -0
- package/dist/assets/studio/assets/LinkSimple.es-BB_3GfFO.js +2 -0
- package/dist/assets/studio/assets/ListBullets.es-DzSyoNA1.js +2 -0
- package/dist/assets/studio/assets/ListToolbar-CE70usqf.js +2 -0
- package/dist/assets/studio/assets/LockSimple.es-D3HQqnoN.js +2 -0
- package/dist/assets/studio/assets/LoginPage-BfUjD7n3.js +2 -0
- package/dist/assets/studio/assets/MediaPage-D7h4RBbB.js +2 -0
- package/dist/assets/studio/assets/MediaPicker-DlJLkaGR.js +2 -0
- package/dist/assets/studio/assets/MediaUpload-BpTyBTHG.js +2 -0
- package/dist/assets/studio/assets/MembersPage-BNu1FOBL.js +2 -0
- package/dist/assets/studio/assets/Menus-ChmyHrPc.js +2 -0
- package/dist/assets/studio/assets/Monitor.es-CeaPWdET.js +2 -0
- package/dist/assets/studio/assets/NavigationPage-C10U827y.js +2 -0
- package/dist/assets/studio/assets/NewSiteDialog-D7SUMMY3.js +2 -0
- package/dist/assets/studio/assets/PageEditorPage-DBJUAqjk.js +5 -0
- package/dist/assets/studio/assets/PagesPage-Bwm8b58m.js +2 -0
- package/dist/assets/studio/assets/PasswordField-Cn0g88_l.js +2 -0
- package/dist/assets/studio/assets/PencilSimple.es-CsZ-k9wK.js +2 -0
- package/dist/assets/studio/assets/Plus.es-XNm1OB5Q.js +2 -0
- package/dist/assets/studio/assets/PreviewPanel-ChFoJD1H.js +2 -0
- package/dist/assets/studio/assets/Prohibit.es-CAvPLn3v.js +2 -0
- package/dist/assets/studio/assets/ProhibitInset.es-DsnL02EX.js +2 -0
- package/dist/assets/studio/assets/ProjectPage-e5BSkkda.js +2 -0
- package/dist/assets/studio/assets/Question.es-BqQtQle2.js +2 -0
- package/dist/assets/studio/assets/Readers-CvhU7wCy.js +3 -0
- package/dist/assets/studio/assets/RedirectDialog-DCNKLV43.js +2 -0
- package/dist/assets/studio/assets/RedirectsPage-CR1Di-T6.js +2 -0
- package/dist/assets/studio/assets/ReleaseApproval-gkciKrWx.js +2 -0
- package/dist/assets/studio/assets/ReleasePage-BRa167d9.js +2 -0
- package/dist/assets/studio/assets/ReleaseParts-BEMf510p.js +2 -0
- package/dist/assets/studio/assets/ResetPasswordPage-DLpZlh7i.js +2 -0
- package/dist/assets/studio/assets/RowMenu-BTHdea9k.js +2 -0
- package/dist/assets/studio/assets/ScheduleCard-BQWUIwPX.js +2 -0
- package/dist/assets/studio/assets/ScheduleDialog-B-QQ_Z3F.js +2 -0
- package/dist/assets/studio/assets/ScheduleHistoryPage-wv3pKfaZ.js +2 -0
- package/dist/assets/studio/assets/ScheduleStatusBadge-DHGmEyDv.js +2 -0
- package/dist/assets/studio/assets/SchedulerStalled-DUmZxbV4.js +2 -0
- package/dist/assets/studio/assets/Schedules-R6HfROIM.js +3 -0
- package/dist/assets/studio/assets/SchedulesPage-CIbzmMag.js +2 -0
- package/dist/assets/studio/assets/ScopeBadge-DM2PO5Xk.js +2 -0
- package/dist/assets/studio/assets/SectionCard-SzT8t6oM.js +2 -0
- package/dist/assets/studio/assets/Seo-CYyFHl3G.js +2 -0
- package/dist/assets/studio/assets/SeoPreview-tarmyT2Y.js +2 -0
- package/dist/assets/studio/assets/Settings-C407Vxml.js +2 -0
- package/dist/assets/studio/assets/ShieldCheck.es-BOXTHH7h.js +2 -0
- package/dist/assets/studio/assets/ShieldWarning.es-DPxoDMpT.js +2 -0
- package/dist/assets/studio/assets/SignIn.es-jAzHZG6b.js +2 -0
- package/dist/assets/studio/assets/SiteAccessField-D34vIaAo.js +2 -0
- package/dist/assets/studio/assets/SiteOverviewPage-Bm0-f1bp.js +4 -0
- package/dist/assets/studio/assets/SiteSettingsPage-tq4SzyMQ.js +3 -0
- package/dist/assets/studio/assets/SitesPage-B2QS2zaq.js +4 -0
- package/dist/assets/studio/assets/SkillsPage-BtFk0bBw.js +3 -0
- package/dist/assets/studio/assets/SlidersHorizontal.es-Bg-14CTG.js +2 -0
- package/dist/assets/studio/assets/SnapshotsPage-cltqpJLv.js +2 -0
- package/dist/assets/studio/assets/SourceEditor-UA14mu6Q.js +16 -0
- package/dist/assets/studio/assets/Sparkle.es-OfyfGCDe.js +2 -0
- package/dist/assets/studio/assets/Star.es-DhrrAurR.js +2 -0
- package/dist/assets/studio/assets/StatTile-DyU32i8V.js +2 -0
- package/dist/assets/studio/assets/Status-BgB2wP8j.js +2 -0
- package/dist/assets/studio/assets/StatusActions-tY-DY4Wa.js +3 -0
- package/dist/assets/studio/assets/StopCircle.es-a6tRK2fc.js +2 -0
- package/dist/assets/studio/assets/Table.es-6S52tmK7.js +2 -0
- package/dist/assets/studio/assets/TableSkeleton-CbqPrk-p.js +2 -0
- package/dist/assets/studio/assets/TagsMigration-BggsWH7A.js +2 -0
- package/dist/assets/studio/assets/Taxonomy-CeQUBEeZ.js +2 -0
- package/dist/assets/studio/assets/TaxonomyPage-hm0h5Ug5.js +2 -0
- package/dist/assets/studio/assets/TermEditorPage-tRUgbC0f.js +2 -0
- package/dist/assets/studio/assets/TermPickers-cZIwRG5t.js +2 -0
- package/dist/assets/studio/assets/TerminalWindow.es-DRFBT_Ie.js +2 -0
- package/dist/assets/studio/assets/TextAa.es-CuNv62rI.js +2 -0
- package/dist/assets/studio/assets/Toast-BHyBhGXI.js +2 -0
- package/dist/assets/studio/assets/ToolbarRootContext-eqk40r8uh4h6r211-DBIMpkd1.js +2 -0
- package/dist/assets/studio/assets/TranslationList-Cc4K8uy_.js +2 -0
- package/dist/assets/studio/assets/TranslationsPage-MFJsWMgX.js +2 -0
- package/dist/assets/studio/assets/Trash.es-CxKLVMOQ.js +2 -0
- package/dist/assets/studio/assets/User.es-BLqDj7XT.js +2 -0
- package/dist/assets/studio/assets/UserCircle.es-D4ZFhshn.js +2 -0
- package/dist/assets/studio/assets/Warning.es-LZXqwHRF.js +2 -0
- package/dist/assets/studio/assets/XCircle.es-3fJHkmwA.js +2 -0
- package/dist/assets/studio/assets/account-BXWuYNDB.js +2 -0
- package/dist/assets/studio/assets/activity-C0we9-m8.js +2 -0
- package/dist/assets/studio/assets/agents-BBsojpg9.js +4 -0
- package/dist/assets/studio/assets/aiSettings.ar-BhZdR6qG.js +2 -0
- package/dist/assets/studio/assets/aiSettings.de-CXaCGWio.js +2 -0
- package/dist/assets/studio/assets/aiSettings.en-C8dj9xkg.js +2 -0
- package/dist/assets/studio/assets/aiSettings.es-avCBqU5-.js +2 -0
- package/dist/assets/studio/assets/aiSettings.fa-CKFnDB0Q.js +2 -0
- package/dist/assets/studio/assets/aiSettings.fr-35_A52Su.js +2 -0
- package/dist/assets/studio/assets/aiSettings.he-CbsdxPL1.js +2 -0
- package/dist/assets/studio/assets/aiSettings.hi-y4QpRZgC.js +2 -0
- package/dist/assets/studio/assets/aiSettings.id-CO4I-Nr1.js +2 -0
- package/dist/assets/studio/assets/aiSettings.it-B-OytWUY.js +2 -0
- package/dist/assets/studio/assets/aiSettings.ja-ClLGRpLX.js +2 -0
- package/dist/assets/studio/assets/aiSettings.ko-CedNf6wA.js +2 -0
- package/dist/assets/studio/assets/aiSettings.nl-DuEVpMb_.js +2 -0
- package/dist/assets/studio/assets/aiSettings.pl-wXUoviqN.js +2 -0
- package/dist/assets/studio/assets/aiSettings.pt-BR-Dm3HTskY.js +2 -0
- package/dist/assets/studio/assets/aiSettings.ru-DOWh4XHX.js +2 -0
- package/dist/assets/studio/assets/aiSettings.tr-xC2kyYK8.js +2 -0
- package/dist/assets/studio/assets/aiSettings.uk-DrE0ioQJ.js +2 -0
- package/dist/assets/studio/assets/aiSettings.zh-Hans-CBZ7ePsr.js +2 -0
- package/dist/assets/studio/assets/analytics-range-BqKm9TTo.js +2 -0
- package/dist/assets/studio/assets/analytics.ar-DFKPNZOf.js +2 -0
- package/dist/assets/studio/assets/analytics.de-CE2_NGRB.js +2 -0
- package/dist/assets/studio/assets/analytics.en-BjRe9VE9.js +2 -0
- package/dist/assets/studio/assets/analytics.es-DmWAl1lg.js +2 -0
- package/dist/assets/studio/assets/analytics.fa-YJ3Xk-rc.js +2 -0
- package/dist/assets/studio/assets/analytics.fr-BDyCguOG.js +2 -0
- package/dist/assets/studio/assets/analytics.he-BJ5kfLvV.js +2 -0
- package/dist/assets/studio/assets/analytics.hi-Cc9ZxzNg.js +2 -0
- package/dist/assets/studio/assets/analytics.id-CyUlDO82.js +2 -0
- package/dist/assets/studio/assets/analytics.it-NlLzAH3s.js +2 -0
- package/dist/assets/studio/assets/analytics.ja-DWrGTLXw.js +2 -0
- package/dist/assets/studio/assets/analytics.ko-BtZwKyZk.js +2 -0
- package/dist/assets/studio/assets/analytics.nl-CAny5E3q.js +2 -0
- package/dist/assets/studio/assets/analytics.pl-CpcS7l9b.js +2 -0
- package/dist/assets/studio/assets/analytics.pt-BR-BAK_LNqi.js +2 -0
- package/dist/assets/studio/assets/analytics.ru-BhvbWlC_.js +2 -0
- package/dist/assets/studio/assets/analytics.tr-aCP2FxF6.js +2 -0
- package/dist/assets/studio/assets/analytics.uk-CAGnu8AX.js +2 -0
- package/dist/assets/studio/assets/analytics.zh-Hans-NF-Le9KQ.js +2 -0
- package/dist/assets/studio/assets/analyticsSettings.ar-C5r58XUn.js +2 -0
- package/dist/assets/studio/assets/analyticsSettings.de-DVXtSeKl.js +2 -0
- package/dist/assets/studio/assets/analyticsSettings.en-Dn_QYKbo.js +2 -0
- package/dist/assets/studio/assets/analyticsSettings.es-BdkgtxLM.js +2 -0
- package/dist/assets/studio/assets/analyticsSettings.fa-CPuBleHO.js +2 -0
- package/dist/assets/studio/assets/analyticsSettings.fr-BSq7kZAb.js +2 -0
- package/dist/assets/studio/assets/analyticsSettings.he-Bt4A9H0D.js +2 -0
- package/dist/assets/studio/assets/analyticsSettings.hi-ii2QSWPw.js +2 -0
- package/dist/assets/studio/assets/analyticsSettings.id-CIZyEXYS.js +2 -0
- package/dist/assets/studio/assets/analyticsSettings.it-Sevpe-t4.js +2 -0
- package/dist/assets/studio/assets/analyticsSettings.ja-C_52hTsO.js +2 -0
- package/dist/assets/studio/assets/analyticsSettings.ko-Bpr2STd6.js +2 -0
- package/dist/assets/studio/assets/analyticsSettings.nl-DYfP6Uld.js +2 -0
- package/dist/assets/studio/assets/analyticsSettings.pl-BuJZVVIi.js +2 -0
- package/dist/assets/studio/assets/analyticsSettings.pt-BR-C4BNIRKw.js +2 -0
- package/dist/assets/studio/assets/analyticsSettings.ru-CiMbwjeg.js +2 -0
- package/dist/assets/studio/assets/analyticsSettings.tr-Csuqe5q9.js +2 -0
- package/dist/assets/studio/assets/analyticsSettings.uk-DVRqhoqA.js +2 -0
- package/dist/assets/studio/assets/analyticsSettings.zh-Hans-Y3Ei4xGe.js +2 -0
- package/dist/assets/studio/assets/api-Sbz4Rbu7.js +4 -0
- package/dist/assets/studio/assets/api-errors-FBnZYqCy.js +2 -0
- package/dist/assets/studio/assets/appearance.ar-CjHmVq1_.js +2 -0
- package/dist/assets/studio/assets/appearance.de-RD44SQgd.js +2 -0
- package/dist/assets/studio/assets/appearance.en-mFJuOtIH.js +2 -0
- package/dist/assets/studio/assets/appearance.es-Dn1vcVTZ.js +2 -0
- package/dist/assets/studio/assets/appearance.fa-DclMXXrQ.js +2 -0
- package/dist/assets/studio/assets/appearance.fr-CRqH6-pt.js +2 -0
- package/dist/assets/studio/assets/appearance.he-COP1zzas.js +2 -0
- package/dist/assets/studio/assets/appearance.hi-CnnlhSEx.js +2 -0
- package/dist/assets/studio/assets/appearance.id-aSp7eOOW.js +2 -0
- package/dist/assets/studio/assets/appearance.it-D4AXypSF.js +2 -0
- package/dist/assets/studio/assets/appearance.ja-BoMHIaWB.js +2 -0
- package/dist/assets/studio/assets/appearance.ko-BqysekcN.js +2 -0
- package/dist/assets/studio/assets/appearance.nl-DkQd7NMN.js +2 -0
- package/dist/assets/studio/assets/appearance.pl-YvYqfbPP.js +2 -0
- package/dist/assets/studio/assets/appearance.pt-BR-8R80D9mc.js +2 -0
- package/dist/assets/studio/assets/appearance.ru-CLiGYIyF.js +2 -0
- package/dist/assets/studio/assets/appearance.tr-T9TtsGiz.js +2 -0
- package/dist/assets/studio/assets/appearance.uk-C-AHWC43.js +2 -0
- package/dist/assets/studio/assets/appearance.zh-Hans-0HyzAidT.js +2 -0
- package/dist/assets/studio/assets/approvals-BB74ogKx.js +2 -0
- package/dist/assets/studio/assets/ar-6o5tS7uI.js +6 -0
- package/dist/assets/studio/assets/ar-CS6h3U7d.js +2 -0
- package/dist/assets/studio/assets/areArraysEqual-bcx201k1x9ziizym-DpJhDMgE.js +2 -0
- package/dist/assets/studio/assets/auth-BXDbnIpO.js +4 -0
- package/dist/assets/studio/assets/badge-dq8bx752b9dp7dst-D1xrG37q.js +2 -0
- package/dist/assets/studio/assets/banner-msnmqm7of2lck01x-DRzQHuca.js +2 -0
- package/dist/assets/studio/assets/bash-jpzh6zbf5237424t-bmc95DGl.js +1 -0
- package/dist/assets/studio/assets/blockIcon-DmMm6cQr.js +2 -0
- package/dist/assets/studio/assets/blocks-CvH3xqPj.js +3 -0
- package/dist/assets/studio/assets/body-blocks-D3YZCH_O.js +6 -0
- package/dist/assets/studio/assets/bodyEditor.ar-DIDA9Sn4.js +2 -0
- package/dist/assets/studio/assets/bodyEditor.de-qfipY5HQ.js +2 -0
- package/dist/assets/studio/assets/bodyEditor.en-B8FW4NF8.js +2 -0
- package/dist/assets/studio/assets/bodyEditor.es-t2G9FCJv.js +2 -0
- package/dist/assets/studio/assets/bodyEditor.fa-C4B5tIHm.js +2 -0
- package/dist/assets/studio/assets/bodyEditor.fr-B93u2T8B.js +2 -0
- package/dist/assets/studio/assets/bodyEditor.he-AjBYzDbH.js +2 -0
- package/dist/assets/studio/assets/bodyEditor.hi-BL4B8EIK.js +2 -0
- package/dist/assets/studio/assets/bodyEditor.id-DaiRImPk.js +2 -0
- package/dist/assets/studio/assets/bodyEditor.it-COSRU27e.js +2 -0
- package/dist/assets/studio/assets/bodyEditor.ja-4ELaS2Vi.js +2 -0
- package/dist/assets/studio/assets/bodyEditor.ko-DzXpHAYj.js +2 -0
- package/dist/assets/studio/assets/bodyEditor.nl-7a_XD53a.js +2 -0
- package/dist/assets/studio/assets/bodyEditor.pl-o2L5fJfH.js +2 -0
- package/dist/assets/studio/assets/bodyEditor.pt-BR-CRnn6BFL.js +2 -0
- package/dist/assets/studio/assets/bodyEditor.ru-BS2txhVI.js +2 -0
- package/dist/assets/studio/assets/bodyEditor.tr-DXm3ACCU.js +2 -0
- package/dist/assets/studio/assets/bodyEditor.uk-D32F3Hv3.js +2 -0
- package/dist/assets/studio/assets/bodyEditor.zh-Hans-DzWUdSMX.js +2 -0
- package/dist/assets/studio/assets/build.ar-CvCBBGmP.js +2 -0
- package/dist/assets/studio/assets/build.de-Dh25xQiI.js +2 -0
- package/dist/assets/studio/assets/build.en-Byn4-h2I.js +2 -0
- package/dist/assets/studio/assets/build.es-ClTjZJkv.js +2 -0
- package/dist/assets/studio/assets/build.fa-BKTGFm97.js +2 -0
- package/dist/assets/studio/assets/build.fr-DWmKJ0b2.js +2 -0
- package/dist/assets/studio/assets/build.he-CMkIxK5A.js +2 -0
- package/dist/assets/studio/assets/build.hi-bSlyuwEN.js +2 -0
- package/dist/assets/studio/assets/build.id-DYXKpcM4.js +2 -0
- package/dist/assets/studio/assets/build.it-DshuVK4I.js +2 -0
- package/dist/assets/studio/assets/build.ja-DUQGeTAB.js +2 -0
- package/dist/assets/studio/assets/build.ko-BgOecD0b.js +2 -0
- package/dist/assets/studio/assets/build.nl-CqcFxeNS.js +2 -0
- package/dist/assets/studio/assets/build.pl-DOh2FAZL.js +2 -0
- package/dist/assets/studio/assets/build.pt-BR-DIS1WMA1.js +2 -0
- package/dist/assets/studio/assets/build.ru-CT93GG0h.js +2 -0
- package/dist/assets/studio/assets/build.tr-BJ066yTf.js +2 -0
- package/dist/assets/studio/assets/build.uk-foNFYsBE.js +2 -0
- package/dist/assets/studio/assets/build.zh-Hans-D0aEdiJR.js +2 -0
- package/dist/assets/studio/assets/button-pa1bq9b85hawg41a-BcGpLLER.js +2 -0
- package/dist/assets/studio/assets/calendar-locale-D4aJYygH.js +2 -0
- package/dist/assets/studio/assets/charts-DL9SbRU8.js +39 -0
- package/dist/assets/studio/assets/checkbox-lbo436duy7krxcsk-BmusNS83.js +6 -0
- package/dist/assets/studio/assets/clamp-jcjhzx71s6wt1rnc-D0kAXd-u.js +2 -0
- package/dist/assets/studio/assets/clipboard-text-gd6s3n1bqse9zgt8-DXnAaY6R.js +2 -0
- package/dist/assets/studio/assets/code-eu8kzwqnlhoyin24-_5wcX_Lj.js +2 -0
- package/dist/assets/studio/assets/collapsible-l8g94on4w7qfosmn-udgP1bfF.js +2 -0
- package/dist/assets/studio/assets/combobox-hdxtsm2gqcxxgfju-BzzDlvd3.js +2 -0
- package/dist/assets/studio/assets/comment-model-CArtcrfg.js +4 -0
- package/dist/assets/studio/assets/comment-settings-M6JXROM1.js +2 -0
- package/dist/assets/studio/assets/comments-B1PIozwq.js +2 -0
- package/dist/assets/studio/assets/comments.ar-7NPLRbXL.js +2 -0
- package/dist/assets/studio/assets/comments.de-BML9h-8i.js +2 -0
- package/dist/assets/studio/assets/comments.en-DXe1aP-J.js +2 -0
- package/dist/assets/studio/assets/comments.es-B9qnqc6H.js +2 -0
- package/dist/assets/studio/assets/comments.fa-q5l6LTXH.js +2 -0
- package/dist/assets/studio/assets/comments.fr-7tNmTLTd.js +2 -0
- package/dist/assets/studio/assets/comments.he-C6eZFBr_.js +2 -0
- package/dist/assets/studio/assets/comments.hi-BBW7jI8Z.js +2 -0
- package/dist/assets/studio/assets/comments.id-XxjsE0p0.js +2 -0
- package/dist/assets/studio/assets/comments.it-3QvytToA.js +2 -0
- package/dist/assets/studio/assets/comments.ja-SEFPl5By.js +2 -0
- package/dist/assets/studio/assets/comments.ko-B_laV8JW.js +2 -0
- package/dist/assets/studio/assets/comments.nl-sc5X58Ly.js +2 -0
- package/dist/assets/studio/assets/comments.pl-DF090zb0.js +2 -0
- package/dist/assets/studio/assets/comments.pt-BR-DItdiBpU.js +2 -0
- package/dist/assets/studio/assets/comments.ru-BQjNpLAH.js +2 -0
- package/dist/assets/studio/assets/comments.tr-B22wAK59.js +2 -0
- package/dist/assets/studio/assets/comments.uk-D7MXty4-.js +2 -0
- package/dist/assets/studio/assets/comments.zh-Hans-Cuxj9eiV.js +2 -0
- package/dist/assets/studio/assets/commentsSettings.ar-CFEC5U3P.js +2 -0
- package/dist/assets/studio/assets/commentsSettings.de-B7jRspXp.js +2 -0
- package/dist/assets/studio/assets/commentsSettings.en-CjQdkMZH.js +2 -0
- package/dist/assets/studio/assets/commentsSettings.es-hozx4ts0.js +2 -0
- package/dist/assets/studio/assets/commentsSettings.fa-Idlvxfyt.js +2 -0
- package/dist/assets/studio/assets/commentsSettings.fr-CUYc20e7.js +2 -0
- package/dist/assets/studio/assets/commentsSettings.he-DXrfjejv.js +2 -0
- package/dist/assets/studio/assets/commentsSettings.hi-Bc2QmPb_.js +2 -0
- package/dist/assets/studio/assets/commentsSettings.id-BlqU87IM.js +2 -0
- package/dist/assets/studio/assets/commentsSettings.it-BxURj-49.js +2 -0
- package/dist/assets/studio/assets/commentsSettings.ja--0JkaZKL.js +2 -0
- package/dist/assets/studio/assets/commentsSettings.ko-Bc51E0cW.js +2 -0
- package/dist/assets/studio/assets/commentsSettings.nl-BAfV9gzf.js +2 -0
- package/dist/assets/studio/assets/commentsSettings.pl-CqCY2bHr.js +2 -0
- package/dist/assets/studio/assets/commentsSettings.pt-BR-C1W1xEAM.js +2 -0
- package/dist/assets/studio/assets/commentsSettings.ru-BNldyy_U.js +2 -0
- package/dist/assets/studio/assets/commentsSettings.tr-DoM2JLr_.js +2 -0
- package/dist/assets/studio/assets/commentsSettings.uk-B07IS9-u.js +2 -0
- package/dist/assets/studio/assets/commentsSettings.zh-Hans-iQA7XsFn.js +2 -0
- package/dist/assets/studio/assets/composite-ab8dmdfoj6tmhcn1-DBTnwEaq.js +2 -0
- package/dist/assets/studio/assets/core-n0de50o00ej2ecfe-gtt67pEc.js +13 -0
- package/dist/assets/studio/assets/countries-110m-CmKPZPcB.json +1 -0
- package/dist/assets/studio/assets/createToastManager-onmoqrmr8zo02rif-DtEv4lxV.js +2 -0
- package/dist/assets/studio/assets/css-j501gxq1am2gnikh-BsVw1vtW.js +2 -0
- package/dist/assets/studio/assets/date-picker-BSgojKR2.js +1 -0
- package/dist/assets/studio/assets/date-picker-cotkexrpqu5tjikv-C9Knj8LQ.js +2 -0
- package/dist/assets/studio/assets/de-BN-GS_nX.js +6 -0
- package/dist/assets/studio/assets/de-COZWf0tz.js +2 -0
- package/dist/assets/studio/assets/deleteLabels-DwQes2_M.js +2 -0
- package/dist/assets/studio/assets/dialog-glpnivujociqs9lh-BefDeRGC.js +2 -0
- package/dist/assets/studio/assets/diff-g2re0kj6fh27rgg5-woXpYk--.js +2 -0
- package/dist/assets/studio/assets/editor-C9MhZu7g.js +218 -0
- package/dist/assets/studio/assets/empty-hkvg3is3uc6dj1at-BGNUzomN.js +2 -0
- package/dist/assets/studio/assets/engine-javascript-e9xj8hhz9xfqhpnu-CaOb2Rd2.js +142 -0
- package/dist/assets/studio/assets/engine-oniguruma-ias56ildu01gf939-BO8SA_1o.js +2 -0
- package/dist/assets/studio/assets/errors-svQ83Q62.js +2 -0
- package/dist/assets/studio/assets/es-C1E3agwU.js +6 -0
- package/dist/assets/studio/assets/es-Cpr7u5Cz.js +2 -0
- package/dist/assets/studio/assets/fa-8y3tvKw6.js +2 -0
- package/dist/assets/studio/assets/fa-VZyv0VcS.js +6 -0
- package/dist/assets/studio/assets/format-DGE2c-4V.js +2 -0
- package/dist/assets/studio/assets/fr-IaaUvy1z.js +6 -0
- package/dist/assets/studio/assets/fr-IvKa5dhW.js +2 -0
- package/dist/assets/studio/assets/getElementTransform-cuiqmjglkrz4db6c-CjP1vzKy.js +2 -0
- package/dist/assets/studio/assets/github-light-hir7yctc38258pwt-EUqPIrTm.js +2 -0
- package/dist/assets/studio/assets/graphql-n9vlzkvcp2j19p7a-qc8EicCw.js +2 -0
- package/dist/assets/studio/assets/hcl-ohpfnrffs96hzyj5-Dh228itO.js +2 -0
- package/dist/assets/studio/assets/he-Ca3dnXtb.js +6 -0
- package/dist/assets/studio/assets/he-DG-oJz8N.js +2 -0
- package/dist/assets/studio/assets/hi-BXkaH5dy.js +6 -0
- package/dist/assets/studio/assets/hi-CngsNxV4.js +2 -0
- package/dist/assets/studio/assets/html-nimj6ljkkifnc9ni-_gDbiBIU.js +2 -0
- package/dist/assets/studio/assets/i18n-Cjiv6Esx.js +7 -0
- package/dist/assets/studio/assets/id-BuNEmn7g.js +6 -0
- package/dist/assets/studio/assets/id-CrWAlC6J.js +2 -0
- package/dist/assets/studio/assets/index-Boved2Nz.js +4 -0
- package/dist/assets/studio/assets/index-DaI1wvdp.css +2 -0
- package/dist/assets/studio/assets/inertValue-e0o6qvuef83v78fk-DAETOorM.js +2 -0
- package/dist/assets/studio/assets/inline-copy-text-gbd7jhwpor27l4rq-PUCnUeNZ.js +2 -0
- package/dist/assets/studio/assets/input-c8lv9ulv0kortliq-Cum0c7P1.js +5 -0
- package/dist/assets/studio/assets/input-group-fjr4r5ax0x78ppax-e-s-YUWj.js +2 -0
- package/dist/assets/studio/assets/input-h5ox92gf13ge04hp-jfy1uD8s.js +2 -0
- package/dist/assets/studio/assets/intl-C22KAx_l.js +2 -0
- package/dist/assets/studio/assets/it-BbkGji4q.js +2 -0
- package/dist/assets/studio/assets/it-DEB0m7yM.js +6 -0
- package/dist/assets/studio/assets/ja-BJv09PXI.js +6 -0
- package/dist/assets/studio/assets/ja-CLpIeite.js +2 -0
- package/dist/assets/studio/assets/javascript-b6fq9bl50fdj6813-BgS3c2Ky.js +2 -0
- package/dist/assets/studio/assets/json-h2g0z143t3cs13d7-qhed-kSA.js +2 -0
- package/dist/assets/studio/assets/jsonc-jxlzvingck161eej-CYpm1nAK.js +2 -0
- package/dist/assets/studio/assets/jsx-jp7a33937sef92sn-Bz0zcwM4.js +2 -0
- package/dist/assets/studio/assets/ko-Cikp2ojH.js +6 -0
- package/dist/assets/studio/assets/ko-u0y0T6iL.js +2 -0
- package/dist/assets/studio/assets/languages-CbQ722uB.js +2 -0
- package/dist/assets/studio/assets/layer-dialog-j5ywmzs46ccg6oqy-DyWF5y24.js +2 -0
- package/dist/assets/studio/assets/link-cqyfjezntvr53rh7-CwZJ95XT.js +10 -0
- package/dist/assets/studio/assets/markdown-eybeqjr58vfygtz1-BYOwaDjH.js +2 -0
- package/dist/assets/studio/assets/marked.esm-DCShygCS.js +68 -0
- package/dist/assets/studio/assets/media-DqHiLqTz.js +21 -0
- package/dist/assets/studio/assets/media.ar-Dx9z7Ceu.js +2 -0
- package/dist/assets/studio/assets/media.de-D6vlydhW.js +2 -0
- package/dist/assets/studio/assets/media.en-BT47PRGz.js +2 -0
- package/dist/assets/studio/assets/media.es-CDRleryS.js +2 -0
- package/dist/assets/studio/assets/media.fa-DXam9tY_.js +2 -0
- package/dist/assets/studio/assets/media.fr-DKfkWH0D.js +2 -0
- package/dist/assets/studio/assets/media.he-COj2GX3h.js +2 -0
- package/dist/assets/studio/assets/media.hi-1a0-Fk6b.js +2 -0
- package/dist/assets/studio/assets/media.id-CAgR7je9.js +2 -0
- package/dist/assets/studio/assets/media.it-huMn4qfV.js +2 -0
- package/dist/assets/studio/assets/media.ja-DIiDhxEt.js +2 -0
- package/dist/assets/studio/assets/media.ko-CEzTT9w2.js +2 -0
- package/dist/assets/studio/assets/media.nl-DAcAkgwj.js +2 -0
- package/dist/assets/studio/assets/media.pl-BIZYXHQa.js +2 -0
- package/dist/assets/studio/assets/media.pt-BR-C1Xda0__.js +2 -0
- package/dist/assets/studio/assets/media.ru-DQzNvBXO.js +2 -0
- package/dist/assets/studio/assets/media.tr-BaqtqqOw.js +2 -0
- package/dist/assets/studio/assets/media.uk-DGk-oYWc.js +2 -0
- package/dist/assets/studio/assets/media.zh-Hans-CrLAn2xd.js +2 -0
- package/dist/assets/studio/assets/menus.ar-BABqU-We.js +2 -0
- package/dist/assets/studio/assets/menus.de-Ba8EWf-g.js +2 -0
- package/dist/assets/studio/assets/menus.en-CJ5d7ms0.js +2 -0
- package/dist/assets/studio/assets/menus.es-CA6YLxuk.js +2 -0
- package/dist/assets/studio/assets/menus.fa-C7O8Jr5Z.js +2 -0
- package/dist/assets/studio/assets/menus.fr-Bq5ukcBM.js +2 -0
- package/dist/assets/studio/assets/menus.he-BiYUZo7X.js +2 -0
- package/dist/assets/studio/assets/menus.hi-CPYsx5YL.js +2 -0
- package/dist/assets/studio/assets/menus.id-B5JAh3Kk.js +2 -0
- package/dist/assets/studio/assets/menus.it-DpdTqaL4.js +2 -0
- package/dist/assets/studio/assets/menus.ja-NH9k2gC3.js +2 -0
- package/dist/assets/studio/assets/menus.ko-C_MCO4Mp.js +2 -0
- package/dist/assets/studio/assets/menus.nl-CLflbcbY.js +2 -0
- package/dist/assets/studio/assets/menus.pl-DLXN0-US.js +2 -0
- package/dist/assets/studio/assets/menus.pt-BR-Djh61S7r.js +2 -0
- package/dist/assets/studio/assets/menus.ru-Dn7rmQ8H.js +2 -0
- package/dist/assets/studio/assets/menus.tr-BOeLMbHv.js +2 -0
- package/dist/assets/studio/assets/menus.uk-BVwLEGId.js +2 -0
- package/dist/assets/studio/assets/menus.zh-Hans-X7QVgirl.js +2 -0
- package/dist/assets/studio/assets/meter-majprsslwmpbmkzg-DBo7nISC.js +2 -0
- package/dist/assets/studio/assets/names-R-Dypr9Y.js +2 -0
- package/dist/assets/studio/assets/nl-BiYEXj4B.js +6 -0
- package/dist/assets/studio/assets/nl-CraQgOQ0.js +2 -0
- package/dist/assets/studio/assets/pagination-oaenm9t7ou3lmcgw-DjC4Zsp5.js +2 -0
- package/dist/assets/studio/assets/pl-Iaem81Jv.js +6 -0
- package/dist/assets/studio/assets/pl-Z99ZIGWL.js +2 -0
- package/dist/assets/studio/assets/preload-helper-DjzSQ1t3.js +1 -0
- package/dist/assets/studio/assets/pt-BR-CM8N0OoK.js +6 -0
- package/dist/assets/studio/assets/pt-BR-CjvH9SeS.js +2 -0
- package/dist/assets/studio/assets/python-nrpnmxq4r6yp6fcd-gzcpVVnB.js +2 -0
- package/dist/assets/studio/assets/radio-35dx7y6rjrezbjsp-DY9M1ouC.js +2 -0
- package/dist/assets/studio/assets/react-CDCuUAOg.js +10 -0
- package/dist/assets/studio/assets/readers.ar-YaMfL_Lj.js +2 -0
- package/dist/assets/studio/assets/readers.de-wAkjNmXo.js +2 -0
- package/dist/assets/studio/assets/readers.en-CbmwKSip.js +2 -0
- package/dist/assets/studio/assets/readers.es-Clx8q_tO.js +2 -0
- package/dist/assets/studio/assets/readers.fa-8cssg4YZ.js +2 -0
- package/dist/assets/studio/assets/readers.fr-JJ3OFBav.js +2 -0
- package/dist/assets/studio/assets/readers.he-B0yqdtyq.js +2 -0
- package/dist/assets/studio/assets/readers.hi-i7cAeleO.js +2 -0
- package/dist/assets/studio/assets/readers.id-BdaxiKFf.js +2 -0
- package/dist/assets/studio/assets/readers.it-DXf3Um9S.js +2 -0
- package/dist/assets/studio/assets/readers.ja-B2eb6ZUO.js +2 -0
- package/dist/assets/studio/assets/readers.ko-BX4g0Q7l.js +2 -0
- package/dist/assets/studio/assets/readers.nl-cWSL2Ylr.js +2 -0
- package/dist/assets/studio/assets/readers.pl-C4WdmkML.js +2 -0
- package/dist/assets/studio/assets/readers.pt-BR-x4dMCgC9.js +2 -0
- package/dist/assets/studio/assets/readers.ru-BukUgT1q.js +2 -0
- package/dist/assets/studio/assets/readers.tr-nYS49xYR.js +2 -0
- package/dist/assets/studio/assets/readers.uk-DbcRoxdR.js +2 -0
- package/dist/assets/studio/assets/readers.zh-Hans-DcGU8fSg.js +2 -0
- package/dist/assets/studio/assets/reading-keys-CBjq-Jc-.js +2 -0
- package/dist/assets/studio/assets/resolveAriaLabelledBy-nc8mdie5shy87nsb-asx42i8W.js +2 -0
- package/dist/assets/studio/assets/resolveValueLabel-hpmsash3ektitvnb-X_gYut6U.js +2 -0
- package/dist/assets/studio/assets/roles-B7USahqW.js +2 -0
- package/dist/assets/studio/assets/rolldown-runtime-hePW80VL.js +1 -0
- package/dist/assets/studio/assets/rolldown-runtime-hi7ti5xiuxsegr96-DK3Fl9T5.js +2 -0
- package/dist/assets/studio/assets/ru-2qsjd_Gm.js +6 -0
- package/dist/assets/studio/assets/ru-CwyHst7f.js +2 -0
- package/dist/assets/studio/assets/schedule-notices-DSgNUP07.js +2 -0
- package/dist/assets/studio/assets/scheduleSettings.ar-DjCN-gPq.js +2 -0
- package/dist/assets/studio/assets/scheduleSettings.de-CkLy189g.js +2 -0
- package/dist/assets/studio/assets/scheduleSettings.en-Ke9GgFqw.js +2 -0
- package/dist/assets/studio/assets/scheduleSettings.es-DMlXyS4t.js +2 -0
- package/dist/assets/studio/assets/scheduleSettings.fa-B8pDw0e4.js +2 -0
- package/dist/assets/studio/assets/scheduleSettings.fr-D93CiYDm.js +2 -0
- package/dist/assets/studio/assets/scheduleSettings.he-Ce8vr2xp.js +2 -0
- package/dist/assets/studio/assets/scheduleSettings.hi-ClQTAEIx.js +2 -0
- package/dist/assets/studio/assets/scheduleSettings.id-TZ0m_tpl.js +2 -0
- package/dist/assets/studio/assets/scheduleSettings.it-v63UBHwg.js +2 -0
- package/dist/assets/studio/assets/scheduleSettings.ja-DjNw2QpF.js +2 -0
- package/dist/assets/studio/assets/scheduleSettings.ko-D-tIgkq1.js +2 -0
- package/dist/assets/studio/assets/scheduleSettings.nl-CQM8NRDu.js +2 -0
- package/dist/assets/studio/assets/scheduleSettings.pl-CUY8YZhH.js +2 -0
- package/dist/assets/studio/assets/scheduleSettings.pt-BR-2YkyZTua.js +2 -0
- package/dist/assets/studio/assets/scheduleSettings.ru-D-XI8CtL.js +2 -0
- package/dist/assets/studio/assets/scheduleSettings.tr-ChWn742p.js +2 -0
- package/dist/assets/studio/assets/scheduleSettings.uk-Czj_lfWV.js +2 -0
- package/dist/assets/studio/assets/scheduleSettings.zh-Hans-B1hytO83.js +2 -0
- package/dist/assets/studio/assets/schedules-BHug03zB.js +2 -0
- package/dist/assets/studio/assets/schedules-api-B7c4AXSw.js +2 -0
- package/dist/assets/studio/assets/schedules-search-B-7SpriY.js +2 -0
- package/dist/assets/studio/assets/schedules.ar-fkzR2RAY.js +2 -0
- package/dist/assets/studio/assets/schedules.de-DbgcJ6cl.js +2 -0
- package/dist/assets/studio/assets/schedules.en-D7O8u4iy.js +2 -0
- package/dist/assets/studio/assets/schedules.es-C3AvgW6g.js +2 -0
- package/dist/assets/studio/assets/schedules.fa-1UfcjmAY.js +2 -0
- package/dist/assets/studio/assets/schedules.fr-KDBHjGVO.js +2 -0
- package/dist/assets/studio/assets/schedules.he-D8Pds1dL.js +2 -0
- package/dist/assets/studio/assets/schedules.hi-DNpu7GlX.js +2 -0
- package/dist/assets/studio/assets/schedules.id-FewyiLfv.js +2 -0
- package/dist/assets/studio/assets/schedules.it-CY96E2q3.js +2 -0
- package/dist/assets/studio/assets/schedules.ja-CN3N8MH6.js +2 -0
- package/dist/assets/studio/assets/schedules.ko-B9ah4ZVM.js +2 -0
- package/dist/assets/studio/assets/schedules.nl-u3tZ7Ckd.js +2 -0
- package/dist/assets/studio/assets/schedules.pl-Bofx1Ubo.js +2 -0
- package/dist/assets/studio/assets/schedules.pt-BR-BFxLBiyp.js +2 -0
- package/dist/assets/studio/assets/schedules.ru-C5ZnKmGt.js +2 -0
- package/dist/assets/studio/assets/schedules.tr-Bfi96rHj.js +2 -0
- package/dist/assets/studio/assets/schedules.uk-BU4Kj6Az.js +2 -0
- package/dist/assets/studio/assets/schedules.zh-Hans-DDsu_SeS.js +2 -0
- package/dist/assets/studio/assets/scrollable-b6m9ze1u7ps0q1qn-BDQyLiel.js +2 -0
- package/dist/assets/studio/assets/select-futox5zqr3r80y9a-5U5PtwHa.js +2 -0
- package/dist/assets/studio/assets/seo-C-YSZ4mD.js +2 -0
- package/dist/assets/studio/assets/serializeValue-ipcakiw32jb7kany-B_EucO5O.js +2 -0
- package/dist/assets/studio/assets/shellscript-i4m7lo8wi0f5bl8b-CLZ0U2zV.js +2 -0
- package/dist/assets/studio/assets/site-settings-Cmq0DkaT.js +2 -0
- package/dist/assets/studio/assets/skeleton-line-m9dyh126t9k07jvg-CHsT8Hs3.js +4 -0
- package/dist/assets/studio/assets/sql-hqp2eekl7qhmxe92-BsFa4tDR.js +2 -0
- package/dist/assets/studio/assets/stringifyLocale-bxsgxdnzaef2vcar-CkHjdQTJ.js +2 -0
- package/dist/assets/studio/assets/styles-kl02oyrlnld7arja-BX5Ypy0Y.js +2 -0
- package/dist/assets/studio/assets/switch-cqsvolm7h69z7vgg-sFG02Szv.js +2 -0
- package/dist/assets/studio/assets/table-yf8ul2e5nbemioi1-DNq9jhfh.js +2 -0
- package/dist/assets/studio/assets/tabs-gf57qqf1wcclaejq-Cay-6qhK.js +2 -0
- package/dist/assets/studio/assets/tag-input-ohfybx5dbxy3houy-DhZt3VBi.js +2 -0
- package/dist/assets/studio/assets/tanstack-BiJ_7SEB.js +3 -0
- package/dist/assets/studio/assets/taxonomy-S-y5xbUa.js +2 -0
- package/dist/assets/studio/assets/toml-oyqrgosuct25x413-CcmNWLt0.js +2 -0
- package/dist/assets/studio/assets/toolbar-h213d8e22yjh5cwq-CipG_KSA.js +2 -0
- package/dist/assets/studio/assets/tr-BK-gVqHj.js +6 -0
- package/dist/assets/studio/assets/tr-DOAJHdbH.js +2 -0
- package/dist/assets/studio/assets/tsx-pem8x69upvmibv6l-udAQXfEw.js +2 -0
- package/dist/assets/studio/assets/typescript-pe5y016phdwbgws7-bsJCZSQ-.js +2 -0
- package/dist/assets/studio/assets/uk-9ZV1-TPI.js +2 -0
- package/dist/assets/studio/assets/uk-PoqqfkaM.js +6 -0
- package/dist/assets/studio/assets/useAnalyticsCard-MXajmsui.js +2 -0
- package/dist/assets/studio/assets/useAriaLabelledBy-ox8dum59shmgypq1-gkARNgzh.js +2 -0
- package/dist/assets/studio/assets/useBaseUiId-lg1teubxudgin0w2-CrAc3DRu.js +3 -0
- package/dist/assets/studio/assets/useButton-h7s9aq1sfw6arawe-BbWTOEat.js +4 -0
- package/dist/assets/studio/assets/useChartPalette-DXG2lo2x.js +2 -0
- package/dist/assets/studio/assets/useClick-l0p0endoxrlp0ae5-Bbq8u-IC.js +2 -0
- package/dist/assets/studio/assets/useCompositeItem-p7090ga00dpqcg5j-CiGYXm-8.js +2 -0
- package/dist/assets/studio/assets/useDebounced-DmPVYKCM.js +2 -0
- package/dist/assets/studio/assets/useListNavigation-3nyjs362qcau34in-DAKhz5rq.js +2 -0
- package/dist/assets/studio/assets/useMe-z-wff5FW.js +2 -0
- package/dist/assets/studio/assets/usePaging-BiNrjkE2.js +2 -0
- package/dist/assets/studio/assets/usePendingApprovals-BRHKM3-1.js +2 -0
- package/dist/assets/studio/assets/useRender-onwjigxa00uch2ip-DueSv9wh.js +2 -0
- package/dist/assets/studio/assets/useRenderDialogRoot-lddunc01twftravv-CpXvIQfS.js +2 -0
- package/dist/assets/studio/assets/useSettled-C0sKy_Gd.js +2 -0
- package/dist/assets/studio/assets/useTriggerFocusGuards-lz7wt484xltizro4-Dd4azd_G.js +2 -0
- package/dist/assets/studio/assets/util-B4GkKYcU.js +2 -0
- package/dist/assets/studio/assets/vesper-g839e590k3dxnwh3-DdrHHSXu.js +2 -0
- package/dist/assets/studio/assets/w3c-keyname-BOAvb0qz.js +2 -0
- package/dist/assets/studio/assets/wasm-cpasy0o9lsjrm39j-BnjxR4X6.js +2 -0
- package/dist/assets/studio/assets/workflow-D1TOv5ea.js +2 -0
- package/dist/assets/studio/assets/yaml-kzk5ddyekbyha04v-rwi0_p6S.js +2 -0
- package/dist/assets/studio/assets/zh-Hans-BYiQm8Cr.js +6 -0
- package/dist/assets/studio/assets/zh-Hans-D57DCm9K.js +2 -0
- package/dist/assets/studio/index.html +111 -0
- package/dist/bin/cloudhal.d.ts +2 -0
- package/dist/bin/cloudhal.js +10 -0
- package/dist/src/assets.d.ts +37 -0
- package/dist/src/assets.js +189 -0
- package/dist/src/blocks.d.ts +26 -0
- package/dist/src/blocks.js +102 -0
- package/dist/src/cli/commands-content.d.ts +7 -0
- package/dist/src/cli/commands-content.js +145 -0
- package/dist/src/cli/commands-local.d.ts +13 -0
- package/dist/src/cli/commands-local.js +167 -0
- package/dist/src/cli/commands-ops.d.ts +6 -0
- package/dist/src/cli/commands-ops.js +175 -0
- package/dist/src/cli/commands-remote.d.ts +8 -0
- package/dist/src/cli/commands-remote.js +131 -0
- package/dist/src/cli/commands-site.d.ts +4 -0
- package/dist/src/cli/commands-site.js +52 -0
- package/dist/src/cli/help.d.ts +2 -0
- package/dist/src/cli/help.js +83 -0
- package/dist/src/cli/prompts.d.ts +7 -0
- package/dist/src/cli/prompts.js +35 -0
- package/dist/src/cli/types.d.ts +26 -0
- package/dist/src/cli/types.js +42 -0
- package/dist/src/cli.d.ts +174 -0
- package/dist/src/cli.js +95 -0
- package/dist/src/cloudflare/admin.d.ts +54 -0
- package/dist/src/cloudflare/admin.js +156 -0
- package/dist/src/cloudflare/build.d.ts +5 -0
- package/dist/src/cloudflare/build.js +36 -0
- package/dist/src/cloudflare/config.d.ts +1082 -0
- package/dist/src/cloudflare/config.js +458 -0
- package/dist/src/cloudflare/search.d.ts +37 -0
- package/dist/src/cloudflare/search.js +47 -0
- package/dist/src/cloudflare/wrangler.d.ts +27 -0
- package/dist/src/cloudflare/wrangler.js +133 -0
- package/dist/src/commands/ai.d.ts +39 -0
- package/dist/src/commands/ai.js +264 -0
- package/dist/src/commands/analytics.d.ts +94 -0
- package/dist/src/commands/analytics.js +347 -0
- package/dist/src/commands/astro.d.ts +22 -0
- package/dist/src/commands/astro.js +87 -0
- package/dist/src/commands/chrome.d.ts +22 -0
- package/dist/src/commands/chrome.js +90 -0
- package/dist/src/commands/comments-local.d.ts +40 -0
- package/dist/src/commands/comments-local.js +114 -0
- package/dist/src/commands/comments.d.ts +45 -0
- package/dist/src/commands/comments.js +285 -0
- package/dist/src/commands/deploy/attach.d.ts +2 -0
- package/dist/src/commands/deploy/attach.js +190 -0
- package/dist/src/commands/deploy/context.d.ts +21 -0
- package/dist/src/commands/deploy/context.js +22 -0
- package/dist/src/commands/deploy/options.d.ts +98 -0
- package/dist/src/commands/deploy/options.js +106 -0
- package/dist/src/commands/deploy/prepare.d.ts +55 -0
- package/dist/src/commands/deploy/prepare.js +298 -0
- package/dist/src/commands/deploy/resources.d.ts +26 -0
- package/dist/src/commands/deploy/resources.js +157 -0
- package/dist/src/commands/deploy/schedules-guard.d.ts +24 -0
- package/dist/src/commands/deploy/schedules-guard.js +95 -0
- package/dist/src/commands/deploy/served-sites.d.ts +28 -0
- package/dist/src/commands/deploy/served-sites.js +86 -0
- package/dist/src/commands/deploy/settings.d.ts +24 -0
- package/dist/src/commands/deploy/settings.js +115 -0
- package/dist/src/commands/deploy/ship.d.ts +46 -0
- package/dist/src/commands/deploy/ship.js +174 -0
- package/dist/src/commands/deploy/state.d.ts +30 -0
- package/dist/src/commands/deploy/state.js +102 -0
- package/dist/src/commands/deploy.d.ts +52 -0
- package/dist/src/commands/deploy.js +223 -0
- package/dist/src/commands/domain.d.ts +15 -0
- package/dist/src/commands/domain.js +44 -0
- package/dist/src/commands/init.d.ts +18 -0
- package/dist/src/commands/init.js +142 -0
- package/dist/src/commands/mail-local.d.ts +7 -0
- package/dist/src/commands/mail-local.js +30 -0
- package/dist/src/commands/mcp.d.ts +22 -0
- package/dist/src/commands/mcp.js +113 -0
- package/dist/src/commands/media-placeholders.d.ts +29 -0
- package/dist/src/commands/media-placeholders.js +239 -0
- package/dist/src/commands/media.d.ts +32 -0
- package/dist/src/commands/media.js +182 -0
- package/dist/src/commands/migrate.d.ts +16 -0
- package/dist/src/commands/migrate.js +63 -0
- package/dist/src/commands/motion.d.ts +29 -0
- package/dist/src/commands/motion.js +118 -0
- package/dist/src/commands/owner.d.ts +18 -0
- package/dist/src/commands/owner.js +39 -0
- package/dist/src/commands/render.d.ts +26 -0
- package/dist/src/commands/render.js +94 -0
- package/dist/src/commands/scheduler-local.d.ts +55 -0
- package/dist/src/commands/scheduler-local.js +237 -0
- package/dist/src/commands/schedules.d.ts +32 -0
- package/dist/src/commands/schedules.js +170 -0
- package/dist/src/commands/search.d.ts +14 -0
- package/dist/src/commands/search.js +53 -0
- package/dist/src/commands/site.d.ts +46 -0
- package/dist/src/commands/site.js +151 -0
- package/dist/src/commands/snapshot.d.ts +10 -0
- package/dist/src/commands/snapshot.js +50 -0
- package/dist/src/commands/studio.d.ts +29 -0
- package/dist/src/commands/studio.js +172 -0
- package/dist/src/commands/sync.d.ts +42 -0
- package/dist/src/commands/sync.js +211 -0
- package/dist/src/commands/tokens.d.ts +12 -0
- package/dist/src/commands/tokens.js +45 -0
- package/dist/src/config-search.d.ts +24 -0
- package/dist/src/config-search.js +41 -0
- package/dist/src/config.d.ts +168 -0
- package/dist/src/config.js +348 -0
- package/dist/src/index.d.ts +16 -0
- package/dist/src/index.js +82 -0
- package/dist/src/project-setup.d.ts +21 -0
- package/dist/src/project-setup.js +50 -0
- package/dist/src/render-chrome.d.ts +9 -0
- package/dist/src/render-chrome.js +140 -0
- package/dist/src/starter-files.d.ts +4 -0
- package/dist/src/starter-files.js +51 -0
- package/dist/src/studio-build.d.ts +43 -0
- package/dist/src/studio-build.js +138 -0
- package/package.json +63 -3
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
import{n as e,r as t}from"./rolldown-runtime-hePW80VL.js";import{n,t as r}from"./IconBase.es-BZDpYMnj.js";import{i,r as a}from"./react-CDCuUAOg.js";import{n as o,t as s}from"./button-pa1bq9b85hawg41a-BcGpLLER.js";import{t as c}from"./DirectionalIcon-BKKMj3KT.js";import{n as l}from"./skeleton-line-m9dyh126t9k07jvg-CHsT8Hs3.js";import{t as u}from"./Table.es-6S52tmK7.js";import{a as d,n as f,r as p,t as m}from"./StatTile-DyU32i8V.js";import{t as h}from"./table-yf8ul2e5nbemioi1-DNq9jhfh.js";import{a as g,n as _,r as v,t as y}from"./useChartPalette-DXG2lo2x.js";import{r as b}from"./analytics-range-BqKm9TTo.js";import{st as x}from"./index-Boved2Nz.js";var S=t(i(),1),C=new Map([[`bold`,S.createElement(S.Fragment,null,S.createElement(`path`,{d:`M232.49,160.49l-48,48a12,12,0,0,1-17-17L195,164H128A108.12,108.12,0,0,1,20,56a12,12,0,0,1,24,0,84.09,84.09,0,0,0,84,84h67l-27.52-27.51a12,12,0,0,1,17-17l48,48A12,12,0,0,1,232.49,160.49Z`}))],[`fill`,S.createElement(S.Fragment,null,S.createElement(`path`,{d:`M229.66,157.66l-48,48A8,8,0,0,1,168,200V160H128A104.11,104.11,0,0,1,24,56a8,8,0,0,1,16,0,88.1,88.1,0,0,0,88,88h40V104a8,8,0,0,1,13.66-5.66l48,48A8,8,0,0,1,229.66,157.66Z`}))],[`regular`,S.createElement(S.Fragment,null,S.createElement(`path`,{d:`M229.66,157.66l-48,48a8,8,0,0,1-11.32-11.32L204.69,160H128A104.11,104.11,0,0,1,24,56a8,8,0,0,1,16,0,88.1,88.1,0,0,0,88,88h76.69l-34.35-34.34a8,8,0,0,1,11.32-11.32l48,48A8,8,0,0,1,229.66,157.66Z`}))]]),w=S.forwardRef((e,t)=>S.createElement(r,{ref:t,...e,weights:C}));w.displayName=`ArrowBendDownRightIcon`;var T=w,E=function(e,t){return E=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},E(e,t)};function D(e,t){if(typeof t!=`function`&&t!==null)throw TypeError(`Class extends value `+String(t)+` is not a constructor or null`);E(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}var O=`12px sans-serif`,k=20,A=100,j=`007LLmW'55;N0500LLLLLLLLLL00NNNLzWW\\\\WQb\\0FWLg\\bWb\\WQ\\WrWWQ000CL5LLFLL0LL**F*gLLLL5F0LF\\FFF5.5N`;function ee(e){var t={};if(typeof JSON>`u`)return t;for(var n=0;n<e.length;n++){var r=String.fromCharCode(n+32);t[r]=(e.charCodeAt(n)-k)/A}return t}var te=ee(j),M={createCanvas:function(){return typeof document<`u`&&document.createElement(`canvas`)},measureText:(function(){var e,t;return function(n,r){if(!e){var i=M.createCanvas();e=i&&i.getContext(`2d`)}if(e)return t!==r&&(t=e.font=r||`12px sans-serif`),e.measureText(n);n||=``,r||=`12px sans-serif`;var a=/((?:\d+)?\.?\d*)px/.exec(r),o=a&&+a[1]||12,s=0;if(r.indexOf(`mono`)>=0)s=o*n.length;else for(var c=0;c<n.length;c++){var l=te[n[c]];s+=l==null?o:l*o}return{width:s}}})(),loadImage:function(e,t,n){var r=new Image;return r.onload=t,r.onerror=n,r.src=e,r},getTime:function(){return Date.now?Date.now():+new Date}};function ne(e){for(var t in M)M.hasOwnProperty(t)&&e[t]&&(M[t]=e[t])}var re=e({EPSILON:()=>rt,HashMap:()=>Xe,RADIAN_TO_DEGREE:()=>nt,assert:()=>He,assignProps:()=>ye,bind:()=>H,clone:()=>P,concatArray:()=>Ze,createCanvas:()=>be,createHashMap:()=>J,createObject:()=>Qe,curry:()=>Oe,defaults:()=>L,disableUserSelect:()=>$e,each:()=>z,eqNaN:()=>Le,extend:()=>I,filter:()=>Te,find:()=>Ee,guid:()=>ge,hasOwn:()=>et,indexOf:()=>R,inherits:()=>xe,isArray:()=>U,isArrayLike:()=>Ce,isBuiltInObject:()=>je,isDom:()=>Ne,isFunction:()=>W,isGradientObject:()=>Pe,isImagePatternObject:()=>Fe,isNumber:()=>Ae,isObject:()=>K,isPrimitive:()=>Ke,isRegExp:()=>Ie,isString:()=>G,isStringSafe:()=>ke,isTypedArray:()=>Me,keys:()=>V,logError:()=>_e,map:()=>B,merge:()=>F,mergeAll:()=>ve,mixin:()=>Se,noop:()=>tt,normalizeCssArray:()=>Ve,reduce:()=>we,retrieve:()=>Re,retrieve2:()=>q,retrieve3:()=>ze,setAsPrimitive:()=>Ge,slice:()=>Be,trim:()=>Ue}),ie=we([`Function`,`RegExp`,`Date`,`Error`,`CanvasGradient`,`CanvasPattern`,`Image`,`Canvas`],function(e,t){return e[`[object `+t+`]`]=!0,e},{}),ae=we([`Int8`,`Uint8`,`Uint8Clamped`,`Int16`,`Uint16`,`Int32`,`Uint32`,`Float32`,`Float64`],function(e,t){return e[`[object `+t+`Array]`]=!0,e},{}),oe=Object.prototype.toString,se=Array.prototype,ce=se.forEach,le=se.filter,ue=se.slice,de=se.map,fe=function(){}.constructor,N=fe?fe.prototype:null,pe=`__proto__`,me=2311,he=2**53-1;function ge(){return me>=he&&(me=0),me++}function _e(){var e=[...arguments];typeof console<`u`&&console.error.apply(console,e)}function P(e){if(typeof e!=`object`||!e)return e;var t=e,n=oe.call(e);if(n===`[object Array]`){if(!Ke(e)){t=[];for(var r=0,i=e.length;r<i;r++)t[r]=P(e[r])}}else if(ae[n]){if(!Ke(e)){var a=e.constructor;if(a.from)t=a.from(e);else{t=new a(e.length);for(var r=0,i=e.length;r<i;r++)t[r]=e[r]}}}else if(!ie[n]&&!Ke(e)&&!Ne(e))for(var o in t={},e)e.hasOwnProperty(o)&&o!==pe&&(t[o]=P(e[o]));return t}function F(e,t,n){if(!K(t)||!K(e))return n?P(t):e;for(var r in t)if(t.hasOwnProperty(r)&&r!==pe){var i=e[r],a=t[r];K(a)&&K(i)&&!U(a)&&!U(i)&&!Ne(a)&&!Ne(i)&&!je(a)&&!je(i)&&!Ke(a)&&!Ke(i)?F(i,a,n):(n||!(r in e))&&(e[r]=P(t[r]))}return e}function ve(e,t){for(var n=e[0],r=1,i=e.length;r<i;r++)n=F(n,e[r],t);return n}function I(e,t){if(Object.assign)Object.assign(e,t);else for(var n in t)t.hasOwnProperty(n)&&n!==pe&&(e[n]=t[n]);return e}function ye(e,t,n){e||={};for(var r=0;r<n.length;r++){var i=n[r];e[i]=t[i]}return e}function L(e,t,n){for(var r=V(t),i=0,a=r.length;i<a;i++){var o=r[i];(n?t[o]!=null:e[o]==null)&&(e[o]=t[o])}return e}var be=M.createCanvas;function R(e,t){if(e){if(e.indexOf)return e.indexOf(t);for(var n=0,r=e.length;n<r;n++)if(e[n]===t)return n}return-1}function xe(e,t){var n=e.prototype;function r(){}for(var i in r.prototype=t.prototype,e.prototype=new r,n)n.hasOwnProperty(i)&&(e.prototype[i]=n[i]);e.prototype.constructor=e,e.superClass=t}function Se(e,t,n){if(e=`prototype`in e?e.prototype:e,t=`prototype`in t?t.prototype:t,Object.getOwnPropertyNames)for(var r=Object.getOwnPropertyNames(t),i=0;i<r.length;i++){var a=r[i];a!==`constructor`&&(n?t[a]!=null:e[a]==null)&&(e[a]=t[a])}else L(e,t,n)}function Ce(e){return!e||typeof e==`string`?!1:typeof e.length==`number`}function z(e,t,n){if(e&&t){if(e.forEach&&e.forEach===ce)e.forEach(t,n);else if(e.length===+e.length)for(var r=0,i=e.length;r<i;r++)t.call(n,e[r],r,e);else for(var a in e)e.hasOwnProperty(a)&&t.call(n,e[a],a,e)}}function B(e,t,n){if(!e)return[];if(!t)return Be(e);if(e.map&&e.map===de)return e.map(t,n);for(var r=[],i=0,a=e.length;i<a;i++)r.push(t.call(n,e[i],i,e));return r}function we(e,t,n,r){if(e&&t){for(var i=0,a=e.length;i<a;i++)n=t.call(r,n,e[i],i,e);return n}}function Te(e,t,n){if(!e)return[];if(!t)return Be(e);if(e.filter&&e.filter===le)return e.filter(t,n);for(var r=[],i=0,a=e.length;i<a;i++)t.call(n,e[i],i,e)&&r.push(e[i]);return r}function Ee(e,t,n){if(e&&t){for(var r=0,i=e.length;r<i;r++)if(t.call(n,e[r],r,e))return e[r]}}function V(e){if(!e)return[];if(Object.keys)return Object.keys(e);var t=[];for(var n in e)e.hasOwnProperty(n)&&t.push(n);return t}function De(e,t){var n=[...arguments].slice(2);return function(){return e.apply(t,n.concat(ue.call(arguments)))}}var H=N&&W(N.bind)?N.call.bind(N.bind):De;function Oe(e){var t=[...arguments].slice(1);return function(){return e.apply(this,t.concat(ue.call(arguments)))}}function U(e){return Array.isArray?Array.isArray(e):oe.call(e)===`[object Array]`}function W(e){return typeof e==`function`}function G(e){return typeof e==`string`}function ke(e){return oe.call(e)===`[object String]`}function Ae(e){return typeof e==`number`}function K(e){var t=typeof e;return t===`function`||!!e&&t===`object`}function je(e){return!!ie[oe.call(e)]}function Me(e){return!!ae[oe.call(e)]}function Ne(e){return typeof e==`object`&&typeof e.nodeType==`number`&&typeof e.ownerDocument==`object`}function Pe(e){return e.colorStops!=null}function Fe(e){return e.image!=null}function Ie(e){return oe.call(e)===`[object RegExp]`}function Le(e){return e!==e}function Re(){for(var e=[...arguments],t=0,n=e.length;t<n;t++)if(e[t]!=null)return e[t]}function q(e,t){return e??t}function ze(e,t,n){return e??t??n}function Be(e){var t=[...arguments].slice(1);return ue.apply(e,t)}function Ve(e){if(typeof e==`number`)return[e,e,e,e];var t=e.length;return t===2?[e[0],e[1],e[0],e[1]]:t===3?[e[0],e[1],e[2],e[1]]:e}function He(e,t){if(!e)throw Error(t)}function Ue(e){return e==null?null:typeof e.trim==`function`?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,``)}var We=`__ec_primitive__`;function Ge(e){e[We]=!0}function Ke(e){return e[We]}var qe=function(){function e(){this.data={}}return e.prototype.delete=function(e){var t=this.has(e);return t&&delete this.data[e],t},e.prototype.has=function(e){return this.data.hasOwnProperty(e)},e.prototype.get=function(e){return this.data[e]},e.prototype.set=function(e,t){return this.data[e]=t,this},e.prototype.keys=function(){return V(this.data)},e.prototype.forEach=function(e){var t=this.data;for(var n in t)t.hasOwnProperty(n)&&e(t[n],n)},e}(),Je=typeof Map==`function`;function Ye(){return Je?new Map:new qe}var Xe=function(){function e(t){var n=U(t);this.data=Ye();var r=this;t instanceof e?t.each(i):t&&z(t,i);function i(e,t){n?r.set(e,t):r.set(t,e)}}return e.prototype.hasKey=function(e){return this.data.has(e)},e.prototype.get=function(e){return this.data.get(e)},e.prototype.set=function(e,t){return this.data.set(e,t),t},e.prototype.each=function(e,t){this.data.forEach(function(n,r){e.call(t,n,r)})},e.prototype.keys=function(){var e=this.data.keys();return Je?Array.from(e):e},e.prototype.removeKey=function(e){this.data.delete(e)},e}();function J(e){return new Xe(e)}function Ze(e,t){for(var n=new e.constructor(e.length+t.length),r=0;r<e.length;r++)n[r]=e[r];for(var i=e.length,r=0;r<t.length;r++)n[r+i]=t[r];return n}function Qe(e,t){var n;if(Object.create)n=Object.create(e);else{var r=function(){};r.prototype=e,n=new r}return t&&I(n,t),n}function $e(e){var t=e.style;t.webkitUserSelect=`none`,t.userSelect=`none`,t.webkitTapHighlightColor=`rgba(0,0,0,0)`,t[`-webkit-touch-callout`]=`none`}function et(e,t){return e.hasOwnProperty(t)}function tt(){}var nt=180/Math.PI,rt=2**-52||2**-52,it=function(){function e(){this.firefox=!1,this.ie=!1,this.edge=!1,this.newEdge=!1,this.weChat=!1}return e}(),Y=new(function(){function e(){this.browser=new it,this.node=!1,this.wxa=!1,this.worker=!1,this.svgSupported=!1,this.touchEventsSupported=!1,this.pointerEventsSupported=!1,this.domSupported=!1,this.transformSupported=!1,this.transform3dSupported=!1,this.hasGlobalWindow=typeof window<`u`}return e}());typeof wx==`object`&&typeof wx.getSystemInfoSync==`function`?(Y.wxa=!0,Y.touchEventsSupported=!0):typeof document>`u`&&typeof self<`u`?Y.worker=!0:!Y.hasGlobalWindow||`Deno`in window||typeof navigator<`u`&&typeof navigator.userAgent==`string`&&navigator.userAgent.indexOf(`Node.js`)>-1?(Y.node=!0,Y.svgSupported=!0):at(navigator.userAgent,Y);function at(e,t){var n=t.browser,r=e.match(/Firefox\/([\d.]+)/),i=e.match(/MSIE\s([\d.]+)/)||e.match(/Trident\/.+?rv:(([\d.]+))/),a=e.match(/Edge?\/([\d.]+)/),o=/micromessenger/i.test(e);if(r&&(n.firefox=!0,n.version=r[1]),i&&(n.ie=!0,n.version=i[1]),a&&(n.edge=!0,n.version=a[1],n.newEdge=+a[1].split(`.`)[0]>18),o&&(n.weChat=!0),t.svgSupported=typeof SVGRect<`u`,t.touchEventsSupported=`ontouchstart`in window&&!n.ie&&!n.edge,t.pointerEventsSupported=`onpointerdown`in window&&(n.edge||n.ie&&+n.version>=11),t.domSupported=typeof document<`u`){var s=document.documentElement.style;t.transform3dSupported=(n.ie&&`transition`in s||n.edge||`WebKitCSSMatrix`in window&&`m11`in new WebKitCSSMatrix||`MozPerspective`in s)&&!(`OTransition`in s),t.transformSupported=t.transform3dSupported||n.ie&&+n.version>=9}}var ot=`.`,st=`___EC__COMPONENT__CONTAINER___`,ct=`___EC__EXTENDED_CLASS___`;function lt(e){var t={main:``,sub:``};if(e){var n=e.split(ot);t.main=n[0]||``,t.sub=n[1]||``}return t}function ut(e){He(/^[a-zA-Z0-9_]+([.][a-zA-Z0-9_]+)?$/.test(e),`componentType "`+e+`" illegal`)}function dt(e){return!!(e&&e[ct])}function ft(e,t){e.$constructor=e,e.extend=function(e){var t=this,n;return pt(t)?n=function(e){D(t,e);function t(){return e.apply(this,arguments)||this}return t}(t):(n=function(){(e.$constructor||t).apply(this,arguments)},xe(n,this)),I(n.prototype,e),n[ct]=!0,n.extend=this.extend,n.superCall=_t,n.superApply=vt,n.superClass=t,n}}function pt(e){return W(e)&&/^class\s/.test(Function.prototype.toString.call(e))}function mt(e,t){e.extend=t.extend}var ht=Math.round(Math.random()*10);function gt(e){var t=[`__\0is_clz`,ht++].join(`_`);e.prototype[t]=!0,e.isInstance=function(e){return!!(e&&e[t])}}function _t(e,t){var n=[...arguments].slice(2);return this.superClass.prototype[t].apply(e,n)}function vt(e,t,n){return this.superClass.prototype[t].apply(e,n)}function yt(e){var t={};e.registerClass=function(e){var r=e.type||e.prototype.type;if(r){ut(r),e.prototype.type=r;var i=lt(r);if(!i.sub)t[i.main]=e;else if(i.sub!==st){var a=n(i);a[i.sub]=e}}return e},e.getClass=function(e,n,r){var i=t[e];if(i&&i[st]&&(i=n?i[n]:null),r&&!i)throw Error(n?`Component `+e+`.`+(n||``)+` is used but not imported.`:e+`.type should be specified.`);return i},e.getClassesByMainType=function(e){var n=lt(e),r=[],i=t[n.main];return i&&i[st]?z(i,function(e,t){t!==st&&r.push(e)}):r.push(i),r},e.hasClass=function(e){return!!t[lt(e).main]},e.getAllClassMainTypes=function(){var e=[];return z(t,function(t,n){e.push(n)}),e},e.hasSubTypes=function(e){var n=t[lt(e).main];return n&&n[st]};function n(e){var n=t[e.main];return(!n||!n[st])&&(n=t[e.main]={},n[st]=!0),n}}function bt(e,t){for(var n=0;n<e.length;n++)e[n][1]||(e[n][1]=e[n][0]);return t||=!1,function(n,r,i){for(var a={},o=0;o<e.length;o++){var s=e[o][1];if(!(r&&R(r,s)>=0||i&&R(i,s)<0)){var c=n.getShallow(s,t);c!=null&&(a[e[o][0]]=c)}}return a}}var xt=bt([[`fill`,`color`],[`shadowBlur`],[`shadowOffsetX`],[`shadowOffsetY`],[`opacity`],[`shadowColor`]]),St=function(){function e(){}return e.prototype.getAreaStyle=function(e,t){return xt(this,e,t)},e}(),Ct=function(){function e(e){this.value=e}return e}(),wt=function(){function e(){this._len=0}return e.prototype.insert=function(e){var t=new Ct(e);return this.insertEntry(t),t},e.prototype.insertEntry=function(e){this.head?(this.tail.next=e,e.prev=this.tail,e.next=null,this.tail=e):this.head=this.tail=e,this._len++},e.prototype.remove=function(e){var t=e.prev,n=e.next;t?t.next=n:this.head=n,n?n.prev=t:this.tail=t,e.next=e.prev=null,this._len--},e.prototype.len=function(){return this._len},e.prototype.clear=function(){this.head=this.tail=null,this._len=0},e}(),Tt=function(){function e(e){this._list=new wt,this._maxSize=10,this._map={},this._maxSize=e}return e.prototype.put=function(e,t){var n=this._list,r=this._map,i=null;if(r[e]==null){var a=n.len(),o=this._lastRemovedEntry;if(a>=this._maxSize&&a>0){var s=n.head;n.remove(s),delete r[s.key],i=s.value,this._lastRemovedEntry=s}o?o.value=t:o=new Ct(t),o.key=e,n.insertEntry(o),r[e]=o}return i},e.prototype.get=function(e){var t=this._map[e],n=this._list;if(t!=null)return t!==n.tail&&(n.remove(t),n.insertEntry(t)),t.value},e.prototype.clear=function(){this._list.clear(),this._map={}},e.prototype.len=function(){return this._list.len()},e}(),Et=new Tt(50);function Dt(e){if(typeof e==`string`){var t=Et.get(e);return t&&t.image}return e}function Ot(e,t,n,r,i){if(!e)return t;if(typeof e==`string`){if(t&&t.__zrImageSrc===e||!n)return t;var a=Et.get(e),o={hostEl:n,cb:r,cbPayload:i};return a?(t=a.image,!At(t)&&a.pending.push(o)):(t=M.loadImage(e,kt,kt),t.__zrImageSrc=e,Et.put(e,t.__cachedImgObj={image:t,pending:[o]})),t}return e}function kt(){var e=this.__cachedImgObj;this.onload=this.onerror=this.__cachedImgObj=null;for(var t=0;t<e.pending.length;t++){var n=e.pending[t],r=n.cb;r&&r(this,n.cbPayload),n.hostEl.dirty()}e.pending.length=0}function At(e){return e&&e.width&&e.height}var jt=e({clone:()=>Bt,copy:()=>Pt,create:()=>Mt,identity:()=>Nt,invert:()=>zt,mul:()=>Ft,rotate:()=>Lt,scale:()=>Rt,translate:()=>It});function Mt(){return[1,0,0,1,0,0]}function Nt(e){return e[0]=1,e[1]=0,e[2]=0,e[3]=1,e[4]=0,e[5]=0,e}function Pt(e,t){return e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[3],e[4]=t[4],e[5]=t[5],e}function Ft(e,t,n){var r=t[0]*n[0]+t[2]*n[1],i=t[1]*n[0]+t[3]*n[1],a=t[0]*n[2]+t[2]*n[3],o=t[1]*n[2]+t[3]*n[3],s=t[0]*n[4]+t[2]*n[5]+t[4],c=t[1]*n[4]+t[3]*n[5]+t[5];return e[0]=r,e[1]=i,e[2]=a,e[3]=o,e[4]=s,e[5]=c,e}function It(e,t,n){return e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[3],e[4]=t[4]+n[0],e[5]=t[5]+n[1],e}function Lt(e,t,n,r){r===void 0&&(r=[0,0]);var i=t[0],a=t[2],o=t[4],s=t[1],c=t[3],l=t[5],u=Math.sin(n),d=Math.cos(n);return e[0]=i*d+s*u,e[1]=-i*u+s*d,e[2]=a*d+c*u,e[3]=-a*u+d*c,e[4]=d*(o-r[0])+u*(l-r[1])+r[0],e[5]=d*(l-r[1])-u*(o-r[0])+r[1],e}function Rt(e,t,n){var r=n[0],i=n[1];return e[0]=t[0]*r,e[1]=t[1]*i,e[2]=t[2]*r,e[3]=t[3]*i,e[4]=t[4]*r,e[5]=t[5]*i,e}function zt(e,t){var n=t[0],r=t[2],i=t[4],a=t[1],o=t[3],s=t[5],c=n*o-a*r;return c?(c=1/c,e[0]=o*c,e[1]=-a*c,e[2]=-r*c,e[3]=n*c,e[4]=(r*s-o*i)*c,e[5]=(a*i-n*s)*c,e):null}function Bt(e){var t=Mt();return Pt(t,e),t}var Vt=e({add:()=>Kt,applyTransform:()=>dn,clone:()=>Wt,copy:()=>Ut,create:()=>Ht,dist:()=>on,distSquare:()=>cn,distance:()=>an,distanceSquare:()=>sn,div:()=>en,dot:()=>tn,len:()=>Yt,lenSquare:()=>Zt,length:()=>Xt,lengthSquare:()=>Qt,lerp:()=>un,max:()=>pn,min:()=>fn,mul:()=>$t,negate:()=>ln,normalize:()=>rn,scale:()=>nn,scaleAndAdd:()=>qt,set:()=>Gt,sub:()=>Jt});function Ht(e,t){return e??=0,t??=0,[e,t]}function Ut(e,t){return e[0]=t[0],e[1]=t[1],e}function Wt(e){return[e[0],e[1]]}function Gt(e,t,n){return e[0]=t,e[1]=n,e}function Kt(e,t,n){return e[0]=t[0]+n[0],e[1]=t[1]+n[1],e}function qt(e,t,n,r){return e[0]=t[0]+n[0]*r,e[1]=t[1]+n[1]*r,e}function Jt(e,t,n){return e[0]=t[0]-n[0],e[1]=t[1]-n[1],e}function Yt(e){return Math.sqrt(Zt(e))}var Xt=Yt;function Zt(e){return e[0]*e[0]+e[1]*e[1]}var Qt=Zt;function $t(e,t,n){return e[0]=t[0]*n[0],e[1]=t[1]*n[1],e}function en(e,t,n){return e[0]=t[0]/n[0],e[1]=t[1]/n[1],e}function tn(e,t){return e[0]*t[0]+e[1]*t[1]}function nn(e,t,n){return e[0]=t[0]*n,e[1]=t[1]*n,e}function rn(e,t){var n=Yt(t);return n===0?(e[0]=0,e[1]=0):(e[0]=t[0]/n,e[1]=t[1]/n),e}function an(e,t){return Math.sqrt((e[0]-t[0])*(e[0]-t[0])+(e[1]-t[1])*(e[1]-t[1]))}var on=an;function sn(e,t){return(e[0]-t[0])*(e[0]-t[0])+(e[1]-t[1])*(e[1]-t[1])}var cn=sn;function ln(e,t){return e[0]=-t[0],e[1]=-t[1],e}function un(e,t,n,r){return e[0]=t[0]+r*(n[0]-t[0]),e[1]=t[1]+r*(n[1]-t[1]),e}function dn(e,t,n){var r=t[0],i=t[1];return e[0]=n[0]*r+n[2]*i+n[4],e[1]=n[1]*r+n[3]*i+n[5],e}function fn(e,t,n){return e[0]=Math.min(t[0],n[0]),e[1]=Math.min(t[1],n[1]),e}function pn(e,t,n){return e[0]=Math.max(t[0],n[0]),e[1]=Math.max(t[1],n[1]),e}var mn=function(){function e(e,t){this.x=e||0,this.y=t||0}return e.prototype.copy=function(e){return this.x=e.x,this.y=e.y,this},e.prototype.clone=function(){return new e(this.x,this.y)},e.prototype.set=function(e,t){return this.x=e,this.y=t,this},e.prototype.equal=function(e){return e.x===this.x&&e.y===this.y},e.prototype.add=function(e){return this.x+=e.x,this.y+=e.y,this},e.prototype.scale=function(e){this.x*=e,this.y*=e},e.prototype.scaleAndAdd=function(e,t){this.x+=e.x*t,this.y+=e.y*t},e.prototype.sub=function(e){return this.x-=e.x,this.y-=e.y,this},e.prototype.dot=function(e){return this.x*e.x+this.y*e.y},e.prototype.len=function(){return Math.sqrt(this.x*this.x+this.y*this.y)},e.prototype.lenSquare=function(){return this.x*this.x+this.y*this.y},e.prototype.normalize=function(){var e=this.len();return this.x/=e,this.y/=e,this},e.prototype.distance=function(e){var t=this.x-e.x,n=this.y-e.y;return Math.sqrt(t*t+n*n)},e.prototype.distanceSquare=function(e){var t=this.x-e.x,n=this.y-e.y;return t*t+n*n},e.prototype.negate=function(){return this.x=-this.x,this.y=-this.y,this},e.prototype.transform=function(e){if(e){var t=this.x,n=this.y;return this.x=e[0]*t+e[2]*n+e[4],this.y=e[1]*t+e[3]*n+e[5],this}},e.prototype.toArray=function(e){return e[0]=this.x,e[1]=this.y,e},e.prototype.fromArray=function(e){this.x=e[0],this.y=e[1]},e.set=function(e,t,n){e.x=t,e.y=n},e.copy=function(e,t){e.x=t.x,e.y=t.y},e.len=function(e){return Math.sqrt(e.x*e.x+e.y*e.y)},e.lenSquare=function(e){return e.x*e.x+e.y*e.y},e.dot=function(e,t){return e.x*t.x+e.y*t.y},e.add=function(e,t,n){e.x=t.x+n.x,e.y=t.y+n.y},e.sub=function(e,t,n){e.x=t.x-n.x,e.y=t.y-n.y},e.scale=function(e,t,n){e.x=t.x*n,e.y=t.y*n},e.scaleAndAdd=function(e,t,n,r){e.x=t.x+n.x*r,e.y=t.y+n.y*r},e.lerp=function(e,t,n,r){var i=1-r;e.x=i*t.x+r*n.x,e.y=i*t.y+r*n.y},e}(),hn=Math.min,gn=Math.max,_n=Math.abs,vn=[`x`,`y`],yn=[`width`,`height`],bn=new mn,xn=new mn,Sn=new mn,Cn=new mn,wn=Rn(),Tn=wn.minTv,En=wn.maxTv,Dn=[0,0],X=function(){function e(e,t,n,r){kn(this,e,t,n,r)}return e.set=function(e,t,n,r,i){return r<0&&(t+=r,r=-r),i<0&&(n+=i,i=-i),e.x=t,e.y=n,e.width=r,e.height=i,e},e.prototype.union=function(e){var t=hn(e.x,this.x),n=hn(e.y,this.y);this.width=isFinite(this.x)&&isFinite(this.width)?gn(e.x+e.width,this.x+this.width)-t:e.width,this.height=isFinite(this.y)&&isFinite(this.height)?gn(e.y+e.height,this.y+this.height)-n:e.height,this.x=t,this.y=n},e.prototype.applyTransform=function(t){e.applyTransform(this,this,t)},e.prototype.calculateTransform=function(e){return jn(Mt(),this,e)},e.prototype.intersect=function(t,n,r){return e.intersect(this,t,n,r)},e.intersect=function(t,n,r,i){r&&mn.set(r,0,0);var a=i&&i.outIntersectRect||null,o=i&&i.clamp;if(a&&(a.x=a.y=a.width=a.height=NaN),!t||!n)return!1;t instanceof e||(t=kn(Pn,t.x,t.y,t.width,t.height)),n instanceof e||(n=kn(Fn,n.x,n.y,n.width,n.height));var s=!!r;wn.reset(i,s);var c=wn.touchThreshold,l=t.x+c,u=t.x+t.width-c,d=t.y+c,f=t.y+t.height-c,p=n.x+c,m=n.x+n.width-c,h=n.y+c,g=n.y+n.height-c;if(l>u||d>f||p>m||h>g)return!1;var _=!(u<p||m<l||f<h||g<d);return(s||a)&&(Dn[0]=1/0,Dn[1]=0,Ln(l,u,p,m,0,s,a,o),Ln(d,f,h,g,1,s,a,o),s&&mn.copy(r,_?wn.useDir?wn.dirMinTv:Tn:En)),_},e.contain=function(e,t,n){return t>=e.x&&t<=e.x+e.width&&n>=e.y&&n<=e.y+e.height},e.prototype.contain=function(t,n){return e.contain(this,t,n)},e.prototype.clone=function(){return new e(this.x,this.y,this.width,this.height)},e.prototype.copy=function(e){An(this,e)},e.prototype.plain=function(){return{x:this.x,y:this.y,width:this.width,height:this.height}},e.prototype.isFinite=function(){return isFinite(this.x)&&isFinite(this.y)&&isFinite(this.width)&&isFinite(this.height)},e.prototype.isZero=function(){return this.width===0||this.height===0},e.create=function(t){return new e(t?t.x:0,t?t.y:0,t?t.width:0,t?t.height:0)},e.copy=function(e,t){return e.x=t.x,e.y=t.y,e.width=t.width,e.height=t.height,e},e.applyTransform=function(e,t,n){if(!n){e!==t&&An(e,t);return}if(n[1]<1e-5&&n[1]>-1e-5&&n[2]<1e-5&&n[2]>-1e-5){var r=n[0],i=n[3],a=n[4],o=n[5];e.x=t.x*r+a,e.y=t.y*i+o,e.width=t.width*r,e.height=t.height*i,e.width<0&&(e.x+=e.width,e.width=-e.width),e.height<0&&(e.y+=e.height,e.height=-e.height);return}bn.x=Sn.x=t.x,bn.y=Cn.y=t.y,xn.x=Cn.x=t.x+t.width,xn.y=Sn.y=t.y+t.height,bn.transform(n),Cn.transform(n),xn.transform(n),Sn.transform(n),e.x=hn(bn.x,xn.x,Sn.x,Cn.x),e.y=hn(bn.y,xn.y,Sn.y,Cn.y);var s=gn(bn.x,xn.x,Sn.x,Cn.x),c=gn(bn.y,xn.y,Sn.y,Cn.y);e.width=s-e.x,e.height=c-e.y},e.calculateTransform=function(e,t,n){var r=n.width/t.width,i=n.height/t.height;return e=Nt(e||[]),It(e,e,Gt(In,-t.x,-t.y)),Rt(e,e,Gt(In,r,i)),It(e,e,Gt(In,n.x,n.y)),e},e}(),On=X.create,kn=X.set,An=X.copy,jn=X.calculateTransform,Mn=X.applyTransform,Nn=X.contain,Pn=new X(0,0,0,0),Fn=new X(0,0,0,0),In=[];function Ln(e,t,n,r,i,a,o,s){var c=_n(t-n),l=_n(r-e),u=hn(c,l),d=vn[i],f=vn[1-i],p=yn[i];t<n||r<e?c<l?(a&&(En[d]=-c),s&&(o[d]=t,o[p]=0)):(a&&(En[d]=l),s&&(o[d]=e,o[p]=0)):(o&&(o[d]=gn(e,n),o[p]=hn(t,r)-o[d]),a&&(u<Dn[0]||wn.useDir)&&(Dn[0]=hn(u,Dn[0]),(c<l||!wn.bidirectional)&&(Tn[d]=c,Tn[f]=0,wn.useDir&&wn.calcDirMTV()),(c>=l||!wn.bidirectional)&&(Tn[d]=-l,Tn[f]=0,wn.useDir&&wn.calcDirMTV())))}function Rn(){var e=0,t=new mn,n=new mn,r={minTv:new mn,maxTv:new mn,useDir:!1,dirMinTv:new mn,touchThreshold:0,bidirectional:!0,negativeSize:!1,reset:function(i,a){r.touchThreshold=0,i&&i.touchThreshold!=null&&(r.touchThreshold=gn(0,i.touchThreshold)),r.negativeSize=!1,a&&(r.minTv.set(1/0,1/0),r.maxTv.set(0,0),r.useDir=!1,i&&i.direction!=null&&(r.useDir=!0,r.dirMinTv.copy(r.minTv),n.copy(r.minTv),e=i.direction,r.bidirectional=i.bidirectional==null||!!i.bidirectional,r.bidirectional||t.set(Math.cos(e),Math.sin(e))))},calcDirMTV:function(){var a=r.minTv,o=r.dirMinTv,s=a.y*a.y+a.x*a.x,c=Math.sin(e),l=Math.cos(e),u=c*a.y+l*a.x;if(i(u)){i(a.x)&&i(a.y)&&o.set(0,0);return}if(n.x=s*l/u,n.y=s*c/u,i(n.x)&&i(n.y)){o.set(0,0);return}(r.bidirectional||t.dot(n)>0)&&n.len()<o.len()&&o.copy(n)}};function i(e){return _n(e)<1e-10}return r}function zn(e){Bn||=new Tt(100),e||=`12px sans-serif`;var t=Bn.get(e);return t||(t={font:e,strWidthCache:new Tt(500),asciiWidthMap:null,asciiWidthMapTried:!1,stWideCharWidth:M.measureText(`国`,e).width,asciiCharWidth:M.measureText(`a`,e).width},Bn.put(e,t)),t}var Bn;function Vn(e){if(!(Hn>=Un)){e||=`12px sans-serif`;for(var t=[],n=+new Date,r=0;r<=127;r++)t[r]=M.measureText(String.fromCharCode(r),e).width;var i=+new Date-n;return i>16?Hn=Un:i>2&&Hn++,t}}var Hn=0,Un=5;function Wn(e,t){return e.asciiWidthMapTried||=(e.asciiWidthMap=Vn(e.font),!0),0<=t&&t<=127?e.asciiWidthMap==null?e.asciiCharWidth:e.asciiWidthMap[t]:e.stWideCharWidth}function Gn(e,t){var n=e.strWidthCache,r=n.get(t);return r??(r=M.measureText(t,e.font).width,n.put(t,r)),r}function Kn(e,t,n,r){var i=Gn(zn(t),e),a=Xn(t);return new X(Jn(0,i,n),Yn(0,a,r),i,a)}function qn(e,t,n,r){var i=((e||``)+``).split(`
|
|
2
|
+
`);if(i.length===1)return Kn(i[0],t,n,r);for(var a=new X(0,0,0,0),o=0;o<i.length;o++){var s=Kn(i[o],t,n,r);o===0?a.copy(s):a.union(s)}return a}function Jn(e,t,n,r){return n===`right`?r?e+=t:e-=t:n===`center`&&(r?e+=t/2:e-=t/2),e}function Yn(e,t,n,r){return n===`middle`?r?e+=t/2:e-=t/2:n===`bottom`&&(r?e+=t:e-=t),e}function Xn(e){return zn(e).stWideCharWidth}function Zn(e,t){return typeof e==`string`?e.lastIndexOf(`%`)>=0?parseFloat(e)/100*t:parseFloat(e):e}function Qn(e,t,n){var r=t.position||`inside`,i=t.distance==null?5:t.distance,a=n.height,o=n.width,s=a/2,c=n.x,l=n.y,u=`left`,d=`top`;if(r instanceof Array)c+=Zn(r[0],n.width),l+=Zn(r[1],n.height),u=null,d=null;else switch(r){case`left`:c-=i,l+=s,u=`right`,d=`middle`;break;case`right`:c+=i+o,l+=s,d=`middle`;break;case`top`:c+=o/2,l-=i,u=`center`,d=`bottom`;break;case`bottom`:c+=o/2,l+=a+i,u=`center`;break;case`inside`:c+=o/2,l+=s,u=`center`,d=`middle`;break;case`insideLeft`:c+=i,l+=s,d=`middle`;break;case`insideRight`:c+=o-i,l+=s,u=`right`,d=`middle`;break;case`insideTop`:c+=o/2,l+=i,u=`center`;break;case`insideBottom`:c+=o/2,l+=a-i,u=`center`,d=`bottom`;break;case`insideTopLeft`:c+=i,l+=i;break;case`insideTopRight`:c+=o-i,l+=i,u=`right`;break;case`insideBottomLeft`:c+=i,l+=a-i,d=`bottom`;break;case`insideBottomRight`:c+=o-i,l+=a-i,u=`right`,d=`bottom`}return e||={},e.x=c,e.y=l,e.align=u,e.verticalAlign=d,e}var $n=/\{([a-zA-Z0-9_]+)\|([^}]*)\}/g;function er(e,t,n,r,i){var a={};return tr(a,e,t,n,r,i),a.text}function tr(e,t,n,r,i,a){if(!n){e.text=``,e.isTruncated=!1;return}var o=(t+``).split(`
|
|
3
|
+
`);a=nr(n,r,i,a);for(var s=!1,c={},l=0,u=o.length;l<u;l++)rr(c,o[l],a),o[l]=c.textLine,s||=c.isTruncated;e.text=o.join(`
|
|
4
|
+
`),e.isTruncated=s}function nr(e,t,n,r){r||={};var i=I({},r);n=q(n,`...`),i.maxIterations=q(r.maxIterations,2);var a=i.minChar=q(r.minChar,0),o=i.fontMeasureInfo=zn(t),s=o.asciiCharWidth;i.placeholder=q(r.placeholder,``);for(var c=e=Math.max(0,e-1),l=0;l<a&&c>=s;l++)c-=s;var u=Gn(o,n);return u>c&&(n=``,u=0),c=e-u,i.ellipsis=n,i.ellipsisWidth=u,i.contentWidth=c,i.containerWidth=e,i}function rr(e,t,n){var r=n.containerWidth,i=n.contentWidth,a=n.fontMeasureInfo;if(!r){e.textLine=``,e.isTruncated=!1;return}var o=Gn(a,t);if(o<=r){e.textLine=t,e.isTruncated=!1;return}for(var s=0;;s++){if(o<=i||s>=n.maxIterations){t+=n.ellipsis;break}var c=s===0?ir(t,i,a):o>0?Math.floor(t.length*i/o):0;t=t.substr(0,c),o=Gn(a,t)}t===``&&(t=n.placeholder),e.textLine=t,e.isTruncated=!0}function ir(e,t,n){for(var r=0,i=0,a=e.length;i<a&&r<t;i++)r+=Wn(n,e.charCodeAt(i));return i}function ar(e,t,n,r){var i=vr(e),a=t.overflow,o=t.padding,s=o?o[1]+o[3]:0,c=o?o[0]+o[2]:0,l=t.font,u=a===`truncate`,d=Xn(l),f=q(t.lineHeight,d),p=t.lineOverflow===`truncate`,m=!1,h=t.width;h==null&&n!=null&&(h=n-s);var g=t.height;g==null&&r!=null&&(g=r-c);var _=h!=null&&(a===`break`||a===`breakAll`)?i?mr(i,t.font,h,a===`breakAll`,0).lines:[]:i?i.split(`
|
|
5
|
+
`):[],v=_.length*f;if(g??=v,v>g&&p){var y=Math.floor(g/f);m||=_.length>y,_=_.slice(0,y),v=_.length*f}if(i&&u&&h!=null)for(var b=nr(h,l,t.ellipsis,{minChar:t.truncateMinChar,placeholder:t.placeholder}),x={},S=0;S<_.length;S++)rr(x,_[S],b),_[S]=x.textLine,m||=x.isTruncated;for(var C=g,w=0,T=zn(l),S=0;S<_.length;S++)w=Math.max(Gn(T,_[S]),w);h??=w;var E=h;return C+=c,E+=s,{lines:_,height:g,outerWidth:E,outerHeight:C,lineHeight:f,calculatedLineHeight:d,contentWidth:w,contentHeight:v,width:h,isTruncated:m}}var or=function(){function e(){}return e}(),sr=function(){function e(e){this.tokens=[],e&&(this.tokens=e)}return e}(),cr=function(){function e(){this.width=0,this.height=0,this.contentWidth=0,this.contentHeight=0,this.outerWidth=0,this.outerHeight=0,this.lines=[],this.isTruncated=!1}return e}();function lr(e,t,n,r,i){var a=new cr,o=vr(e);if(!o)return a;var s=t.padding,c=s?s[1]+s[3]:0,l=s?s[0]+s[2]:0,u=t.width;u==null&&n!=null&&(u=n-c);var d=t.height;d==null&&r!=null&&(d=r-l);for(var f=t.overflow,p=(f===`break`||f===`breakAll`)&&u!=null?{width:u,accumWidth:0,breakAll:f===`breakAll`}:null,m=$n.lastIndex=0,h;(h=$n.exec(o))!=null;){var g=h.index;g>m&&ur(a,o.substring(m,g),t,p),ur(a,h[2],t,p,h[1]),m=$n.lastIndex}m<o.length&&ur(a,o.substring(m,o.length),t,p);var _=[],v=0,y=0,b=f===`truncate`,x=t.lineOverflow===`truncate`,S={};function C(e,t,n){e.width=t,e.lineHeight=n,v+=n,y=Math.max(y,t)}outer:for(var w=0;w<a.lines.length;w++){for(var T=a.lines[w],E=0,D=0,O=0;O<T.tokens.length;O++){var k=T.tokens[O],A=k.styleName&&t.rich[k.styleName]||{},j=k.textPadding=A.padding,ee=j?j[1]+j[3]:0,te=k.font=A.font||t.font;k.contentHeight=Xn(te);var M=q(A.height,k.contentHeight);if(k.innerHeight=M,j&&(M+=j[0]+j[2]),k.height=M,k.lineHeight=ze(A.lineHeight,t.lineHeight,M),k.align=A&&A.align||i,k.verticalAlign=A&&A.verticalAlign||`middle`,x&&d!=null&&v+k.lineHeight>d){var ne=a.lines.length;O>0?(T.tokens=T.tokens.slice(0,O),C(T,D,E),a.lines=a.lines.slice(0,w+1)):a.lines=a.lines.slice(0,w),a.isTruncated=a.isTruncated||a.lines.length<ne;break outer}var re=A.width,ie=re==null||re===`auto`;if(typeof re==`string`&&re.charAt(re.length-1)===`%`)k.percentWidth=re,_.push(k),k.contentWidth=Gn(zn(te),k.text);else{if(ie){var ae=A.backgroundColor,oe=ae&&ae.image;oe&&(oe=Dt(oe),At(oe)&&(k.width=Math.max(k.width,oe.width*M/oe.height)))}var se=b&&u!=null?u-D:null;se!=null&&se<k.width?!ie||se<ee?(k.text=``,k.width=k.contentWidth=0):(tr(S,k.text,se-ee,te,t.ellipsis,{minChar:t.truncateMinChar}),k.text=S.text,a.isTruncated=a.isTruncated||S.isTruncated,k.width=k.contentWidth=Gn(zn(te),k.text)):k.contentWidth=Gn(zn(te),k.text)}k.width+=ee,D+=k.width,A&&(E=Math.max(E,k.lineHeight))}C(T,D,E)}a.outerWidth=a.width=q(u,y),a.outerHeight=a.height=q(d,v),a.contentHeight=v,a.contentWidth=y,a.outerWidth+=c,a.outerHeight+=l;for(var w=0;w<_.length;w++){var k=_[w],ce=k.percentWidth;k.width=parseInt(ce,10)/100*a.width}return a}function ur(e,t,n,r,i){var a=t===``,o=i&&n.rich[i]||{},s=e.lines,c=o.font||n.font,l=!1,u,d;if(r){var f=o.padding,p=f?f[1]+f[3]:0;if(o.width!=null&&o.width!==`auto`){var m=Zn(o.width,r.width)+p;s.length>0&&m+r.accumWidth>r.width&&(u=t.split(`
|
|
6
|
+
`),l=!0),r.accumWidth=m}else{var h=mr(t,c,r.width,r.breakAll,r.accumWidth);r.accumWidth=h.accumWidth+p,d=h.linesWidths,u=h.lines}}u||=t.split(`
|
|
7
|
+
`);for(var g=zn(c),_=0;_<u.length;_++){var v=u[_],y=new or;if(y.styleName=i,y.text=v,y.isLineHolder=!v&&!a,y.width=typeof o.width==`number`?o.width:d?d[_]:Gn(g,v),!_&&!l){var b=(s[s.length-1]||(s[0]=new sr)).tokens,x=b.length;x===1&&b[0].isLineHolder?b[0]=y:(v||!x||a)&&b.push(y)}else s.push(new sr([y]))}}function dr(e){var t=e.charCodeAt(0);return t>=32&&t<=591||t>=880&&t<=4351||t>=4608&&t<=5119||t>=7680&&t<=8303}var fr=we(`,&?/;] `.split(``),function(e,t){return e[t]=!0,e},{});function pr(e){return!dr(e)||!!fr[e]}function mr(e,t,n,r,i){for(var a=[],o=[],s=``,c=``,l=0,u=0,d=zn(t),f=0;f<e.length;f++){var p=e.charAt(f);if(p===`
|
|
8
|
+
`){c&&(s+=c,u+=l),a.push(s),o.push(u),s=``,c=``,l=0,u=0;continue}var m=Wn(d,p.charCodeAt(0)),h=!r&&!pr(p);if(a.length?u+m>n:i+u+m>n){u?(s||c)&&(h?(s||(s=c,c=``,l=0,u=l),a.push(s),o.push(u-l),c+=p,l+=m,s=``,u=l):(c&&(s+=c,c=``,l=0),a.push(s),o.push(u),s=p,u=m)):h?(a.push(c),o.push(l),c=p,l=m):(a.push(p),o.push(m));continue}u+=m,h?(c+=p,l+=m):(c&&(s+=c,c=``,l=0),s+=p)}return c&&(s+=c),s&&(a.push(s),o.push(u)),a.length===1&&(u+=i),{accumWidth:u,lines:a,linesWidths:o}}function hr(e,t,n,r,i,a){if(e.baseX=n,e.baseY=r,e.outerWidth=e.outerHeight=null,t){var o=t.width*2,s=t.height*2;X.set(gr,Jn(n,o,i),Yn(r,s,a),o,s),X.intersect(t,gr,null,_r);var c=_r.outIntersectRect;e.outerWidth=c.width,e.outerHeight=c.height,e.baseX=Jn(c.x,c.width,i,!0),e.baseY=Yn(c.y,c.height,a,!0)}}var gr=new X(0,0,0,0),_r={outIntersectRect:{},clamp:!0};function vr(e){return e==null?e=``:e+=``}function yr(e){var t=vr(e.text),n=e.font;return br(e,Gn(zn(n),t),Xn(n),null)}function br(e,t,n,r){var i=new X(Jn(e.x||0,t,e.textAlign),Yn(e.y||0,n,e.textBaseline),t,n),a=r??(xr(e)?e.lineWidth:0);return a>0&&(i.x-=a/2,i.y-=a/2,i.width+=a,i.height+=a),i}function xr(e){var t=e.stroke;return t!=null&&t!==`none`&&e.lineWidth>0}var Sr=Nt,Cr=5e-5;function wr(e){return e>Cr||e<-Cr}var Tr=[],Er=[],Dr=Mt(),Or=Math.abs,kr=function(){function e(){}return e.prototype.getLocalTransform=function(e){return Ar(this,e)},e.prototype.setPosition=function(e){this.x=e[0],this.y=e[1]},e.prototype.setScale=function(e){this.scaleX=e[0],this.scaleY=e[1]},e.prototype.setSkew=function(e){this.skewX=e[0],this.skewY=e[1]},e.prototype.setOrigin=function(e){this.originX=e[0],this.originY=e[1]},e.prototype.needLocalTransform=function(){return wr(this.rotation)||wr(this.x)||wr(this.y)||wr(this.scaleX-1)||wr(this.scaleY-1)||wr(this.skewX)||wr(this.skewY)},e.prototype.updateTransform=function(){var e=this.parent&&this.parent.transform,t=this.needLocalTransform(),n=this.transform;if(!(t||e)){n&&(Sr(n),this.invTransform=null);return}n||=Mt(),t?this.getLocalTransform(n):Sr(n),e&&(t?Ft(n,e,n):Pt(n,e)),this.transform=n,this._resolveGlobalScaleRatio(n),this.invTransform=this.invTransform||Mt(),zt(this.invTransform,n)},e.prototype._resolveGlobalScaleRatio=function(e){var t=this.globalScaleRatio;if(t!=null&&t!==1){this.getGlobalScale(Tr);var n=Tr[0]<0?-1:1,r=Tr[1]<0?-1:1,i=((Tr[0]-n)*t+n)/Tr[0]||0,a=((Tr[1]-r)*t+r)/Tr[1]||0;e[0]*=i,e[1]*=i,e[2]*=a,e[3]*=a}},e.prototype.getComputedTransform=function(){for(var e=this,t=[];e;)t.push(e),e=e.parent;for(;e=t.pop();)e.updateTransform();return this.transform},e.prototype.setLocalTransform=function(e){if(e){var t=e[0]*e[0]+e[1]*e[1],n=e[2]*e[2]+e[3]*e[3],r=Math.atan2(e[1],e[0]),i=Math.PI/2+r-Math.atan2(e[3],e[2]);n=Math.sqrt(n)*Math.cos(i),t=Math.sqrt(t),this.skewX=i,this.skewY=0,this.rotation=-r,this.x=+e[4],this.y=+e[5],this.scaleX=t,this.scaleY=n,this.originX=0,this.originY=0}},e.prototype.decomposeTransform=function(){if(this.transform){var e=this.parent,t=this.transform;e&&e.transform&&(e.invTransform=e.invTransform||Mt(),Ft(Er,e.invTransform,t),t=Er);var n=this.originX,r=this.originY;(n||r)&&(Dr[4]=n,Dr[5]=r,Ft(Er,t,Dr),Er[4]-=n,Er[5]-=r,t=Er),this.setLocalTransform(t)}},e.prototype.getGlobalScale=function(e){var t=this.transform;return e||=[],t?(e[0]=Math.sqrt(t[0]*t[0]+t[1]*t[1]),e[1]=Math.sqrt(t[2]*t[2]+t[3]*t[3]),t[0]<0&&(e[0]=-e[0]),t[3]<0&&(e[1]=-e[1]),e):(e[0]=1,e[1]=1,e)},e.prototype.transformCoordToLocal=function(e,t){var n=[e,t],r=this.invTransform;return r&&dn(n,n,r),n},e.prototype.transformCoordToGlobal=function(e,t){var n=[e,t],r=this.transform;return r&&dn(n,n,r),n},e.prototype.getLineScale=function(){var e=this.transform;return e&&Or(e[0]-1)>1e-10&&Or(e[3]-1)>1e-10?Math.sqrt(Or(e[0]*e[3]-e[2]*e[1])):1},e.prototype.copyTransform=function(e){Nr(this,e)},e.getLocalTransform=function(e,t){t||=[];var n=e.originX||0,r=e.originY||0,i=e.scaleX,a=e.scaleY,o=e.anchorX,s=e.anchorY,c=e.rotation||0,l=e.x,u=e.y,d=e.skewX?Math.tan(e.skewX):0,f=e.skewY?Math.tan(-e.skewY):0;if(n||r||o||s){var p=n+o,m=r+s;t[4]=-p*i-d*m*a,t[5]=-m*a-f*p*i}else t[4]=t[5]=0;return t[0]=i,t[3]=a,t[1]=f*i,t[2]=d*a,c&&Lt(t,t,c),t[4]+=n+l,t[5]+=r+u,t},e.initDefaultProps=(function(){var t=e.prototype;t.scaleX=t.scaleY=t.globalScaleRatio=1,t.x=t.y=t.originX=t.originY=t.skewX=t.skewY=t.rotation=t.anchorX=t.anchorY=0})(),e}(),Ar=kr.getLocalTransform;function jr(){return new kr}var Mr=[`x`,`y`,`originX`,`originY`,`anchorX`,`anchorY`,`rotation`,`scaleX`,`scaleY`,`skewX`,`skewY`];function Nr(e,t){return ye(e,t,Mr)}var Pr={linear:function(e){return e},quadraticIn:function(e){return e*e},quadraticOut:function(e){return e*(2-e)},quadraticInOut:function(e){return(e*=2)<1?.5*e*e:-.5*(--e*(e-2)-1)},cubicIn:function(e){return e*e*e},cubicOut:function(e){return--e*e*e+1},cubicInOut:function(e){return(e*=2)<1?.5*e*e*e:.5*((e-=2)*e*e+2)},quarticIn:function(e){return e*e*e*e},quarticOut:function(e){return 1- --e*e*e*e},quarticInOut:function(e){return(e*=2)<1?.5*e*e*e*e:-.5*((e-=2)*e*e*e-2)},quinticIn:function(e){return e*e*e*e*e},quinticOut:function(e){return--e*e*e*e*e+1},quinticInOut:function(e){return(e*=2)<1?.5*e*e*e*e*e:.5*((e-=2)*e*e*e*e+2)},sinusoidalIn:function(e){return 1-Math.cos(e*Math.PI/2)},sinusoidalOut:function(e){return Math.sin(e*Math.PI/2)},sinusoidalInOut:function(e){return .5*(1-Math.cos(Math.PI*e))},exponentialIn:function(e){return e===0?0:1024**(e-1)},exponentialOut:function(e){return e===1?1:1-2**(-10*e)},exponentialInOut:function(e){return e===0?0:e===1?1:(e*=2)<1?.5*1024**(e-1):.5*(-(2**(-10*(e-1)))+2)},circularIn:function(e){return 1-Math.sqrt(1-e*e)},circularOut:function(e){return Math.sqrt(1- --e*e)},circularInOut:function(e){return(e*=2)<1?-.5*(Math.sqrt(1-e*e)-1):.5*(Math.sqrt(1-(e-=2)*e)+1)},elasticIn:function(e){var t,n=.1,r=.4;return e===0?0:e===1?1:(!n||n<1?(n=1,t=r/4):t=r*Math.asin(1/n)/(2*Math.PI),-(n*2**(10*--e)*Math.sin((e-t)*(2*Math.PI)/r)))},elasticOut:function(e){var t,n=.1,r=.4;return e===0?0:e===1?1:(!n||n<1?(n=1,t=r/4):t=r*Math.asin(1/n)/(2*Math.PI),n*2**(-10*e)*Math.sin((e-t)*(2*Math.PI)/r)+1)},elasticInOut:function(e){var t,n=.1,r=.4;return e===0?0:e===1?1:(!n||n<1?(n=1,t=r/4):t=r*Math.asin(1/n)/(2*Math.PI),(e*=2)<1?-.5*(n*2**(10*--e)*Math.sin((e-t)*(2*Math.PI)/r)):n*2**(-10*--e)*Math.sin((e-t)*(2*Math.PI)/r)*.5+1)},backIn:function(e){var t=1.70158;return e*e*((t+1)*e-t)},backOut:function(e){var t=1.70158;return--e*e*((t+1)*e+t)+1},backInOut:function(e){var t=2.5949095;return(e*=2)<1?.5*(e*e*((t+1)*e-t)):.5*((e-=2)*e*((t+1)*e+t)+2)},bounceIn:function(e){return 1-Pr.bounceOut(1-e)},bounceOut:function(e){return e<1/2.75?7.5625*e*e:e<2/2.75?7.5625*(e-=1.5/2.75)*e+.75:e<2.5/2.75?7.5625*(e-=2.25/2.75)*e+.9375:7.5625*(e-=2.625/2.75)*e+.984375},bounceInOut:function(e){return e<.5?Pr.bounceIn(e*2)*.5:Pr.bounceOut(e*2-1)*.5+.5}},Fr=Math.pow,Ir=Math.sqrt,Lr=1e-8,Rr=1e-4,zr=Ir(3),Br=1/3,Vr=Ht(),Hr=Ht(),Ur=Ht();function Wr(e){return e>-Lr&&e<Lr}function Gr(e){return e>Lr||e<-Lr}function Kr(e,t,n,r,i){var a=1-i;return a*a*(a*e+3*i*t)+i*i*(i*r+3*a*n)}function qr(e,t,n,r,i){var a=1-i;return 3*(((t-e)*a+2*(n-t)*i)*a+(r-n)*i*i)}function Jr(e,t,n,r,i,a){var o=r+3*(t-n)-e,s=3*(n-t*2+e),c=3*(t-e),l=e-i,u=s*s-3*o*c,d=s*c-9*o*l,f=c*c-3*s*l,p=0;if(Wr(u)&&Wr(d)){if(Wr(s))a[0]=0;else{var m=-c/s;m>=0&&m<=1&&(a[p++]=m)}}else{var h=d*d-4*u*f;if(Wr(h)){var g=d/u,m=-s/o+g,_=-g/2;m>=0&&m<=1&&(a[p++]=m),_>=0&&_<=1&&(a[p++]=_)}else if(h>0){var v=Ir(h),y=u*s+1.5*o*(-d+v),b=u*s+1.5*o*(-d-v);y=y<0?-Fr(-y,Br):Fr(y,Br),b=b<0?-Fr(-b,Br):Fr(b,Br);var m=(-s-(y+b))/(3*o);m>=0&&m<=1&&(a[p++]=m)}else{var x=(2*u*s-3*o*d)/(2*Ir(u*u*u)),S=Math.acos(x)/3,C=Ir(u),w=Math.cos(S),m=(-s-2*C*w)/(3*o),_=(-s+C*(w+zr*Math.sin(S)))/(3*o),T=(-s+C*(w-zr*Math.sin(S)))/(3*o);m>=0&&m<=1&&(a[p++]=m),_>=0&&_<=1&&(a[p++]=_),T>=0&&T<=1&&(a[p++]=T)}}return p}function Yr(e,t,n,r,i){var a=6*n-12*t+6*e,o=9*t+3*r-3*e-9*n,s=3*t-3*e,c=0;if(Wr(o)){if(Gr(a)){var l=-s/a;l>=0&&l<=1&&(i[c++]=l)}}else{var u=a*a-4*o*s;if(Wr(u))i[0]=-a/(2*o);else if(u>0){var d=Ir(u),l=(-a+d)/(2*o),f=(-a-d)/(2*o);l>=0&&l<=1&&(i[c++]=l),f>=0&&f<=1&&(i[c++]=f)}}return c}function Xr(e,t,n,r,i,a){var o=(t-e)*i+e,s=(n-t)*i+t,c=(r-n)*i+n,l=(s-o)*i+o,u=(c-s)*i+s,d=(u-l)*i+l;a[0]=e,a[1]=o,a[2]=l,a[3]=d,a[4]=d,a[5]=u,a[6]=c,a[7]=r}function Zr(e,t,n,r,i,a,o,s,c,l,u){var d,f=.005,p=1/0,m,h,g,_;Vr[0]=c,Vr[1]=l;for(var v=0;v<1;v+=.05)Hr[0]=Kr(e,n,i,o,v),Hr[1]=Kr(t,r,a,s,v),g=cn(Vr,Hr),g<p&&(d=v,p=g);p=1/0;for(var y=0;y<32&&!(f<Rr);y++)m=d-f,h=d+f,Hr[0]=Kr(e,n,i,o,m),Hr[1]=Kr(t,r,a,s,m),g=cn(Hr,Vr),m>=0&&g<p?(d=m,p=g):(Ur[0]=Kr(e,n,i,o,h),Ur[1]=Kr(t,r,a,s,h),_=cn(Ur,Vr),h<=1&&_<p?(d=h,p=_):f*=.5);return u&&(u[0]=Kr(e,n,i,o,d),u[1]=Kr(t,r,a,s,d)),Ir(p)}function Qr(e,t,n,r,i,a,o,s,c){for(var l=e,u=t,d=0,f=1/c,p=1;p<=c;p++){var m=p*f,h=Kr(e,n,i,o,m),g=Kr(t,r,a,s,m),_=h-l,v=g-u;d+=Math.sqrt(_*_+v*v),l=h,u=g}return d}function $r(e,t,n,r){var i=1-r;return i*(i*e+2*r*t)+r*r*n}function ei(e,t,n,r){return 2*((1-r)*(t-e)+r*(n-t))}function ti(e,t,n,r,i){var a=e-2*t+n,o=2*(t-e),s=e-r,c=0;if(Wr(a)){if(Gr(o)){var l=-s/o;l>=0&&l<=1&&(i[c++]=l)}}else{var u=o*o-4*a*s;if(Wr(u)){var l=-o/(2*a);l>=0&&l<=1&&(i[c++]=l)}else if(u>0){var d=Ir(u),l=(-o+d)/(2*a),f=(-o-d)/(2*a);l>=0&&l<=1&&(i[c++]=l),f>=0&&f<=1&&(i[c++]=f)}}return c}function ni(e,t,n){var r=e+n-2*t;return r===0?.5:(e-t)/r}function ri(e,t,n,r,i){var a=(t-e)*r+e,o=(n-t)*r+t,s=(o-a)*r+a;i[0]=e,i[1]=a,i[2]=s,i[3]=s,i[4]=o,i[5]=n}function ii(e,t,n,r,i,a,o,s,c){var l,u=.005,d=1/0;Vr[0]=o,Vr[1]=s;for(var f=0;f<1;f+=.05){Hr[0]=$r(e,n,i,f),Hr[1]=$r(t,r,a,f);var p=cn(Vr,Hr);p<d&&(l=f,d=p)}d=1/0;for(var m=0;m<32&&!(u<Rr);m++){var h=l-u,g=l+u;Hr[0]=$r(e,n,i,h),Hr[1]=$r(t,r,a,h);var p=cn(Hr,Vr);if(h>=0&&p<d)l=h,d=p;else{Ur[0]=$r(e,n,i,g),Ur[1]=$r(t,r,a,g);var _=cn(Ur,Vr);g<=1&&_<d?(l=g,d=_):u*=.5}}return c&&(c[0]=$r(e,n,i,l),c[1]=$r(t,r,a,l)),Ir(d)}function ai(e,t,n,r,i,a,o){for(var s=e,c=t,l=0,u=1/o,d=1;d<=o;d++){var f=d*u,p=$r(e,n,i,f),m=$r(t,r,a,f),h=p-s,g=m-c;l+=Math.sqrt(h*h+g*g),s=p,c=m}return l}var oi=/cubic-bezier\(([0-9,\.e ]+)\)/;function si(e){var t=e&&oi.exec(e);if(t){var n=t[1].split(`,`),r=+Ue(n[0]),i=+Ue(n[1]),a=+Ue(n[2]),o=+Ue(n[3]);if(isNaN(r+i+a+o))return;var s=[];return function(e){return e<=0?0:e>=1?1:Jr(0,r,a,1,e,s)&&Kr(0,i,o,1,s[0])}}}var ci=function(){function e(e){this._inited=!1,this._startTime=0,this._pausedTime=0,this._paused=!1,this._life=e.life||1e3,this._delay=e.delay||0,this.loop=e.loop||!1,this.onframe=e.onframe||tt,this.ondestroy=e.ondestroy||tt,this.onrestart=e.onrestart||tt,e.easing&&this.setEasing(e.easing)}return e.prototype.step=function(e,t){if(this._inited||=(this._startTime=e+this._delay,!0),this._paused){this._pausedTime+=t;return}var n=this._life,r=e-this._startTime-this._pausedTime,i=r/n;i<0&&(i=0),i=Math.min(i,1);var a=this.easingFunc,o=a?a(i):i;if(this.onframe(o),i===1){if(this.loop){var s=r%n;this._startTime=e-s,this._pausedTime=0,this.onrestart()}else return!0}return!1},e.prototype.pause=function(){this._paused=!0},e.prototype.resume=function(){this._paused=!1},e.prototype.setEasing=function(e){this.easing=e,this.easingFunc=W(e)?e:Pr[e]||si(e)},e}(),li=e({fastLerp:()=>Oi,fastMapToColor:()=>ki,lerp:()=>Ai,lift:()=>Ei,liftColor:()=>Ri,lum:()=>Fi,mapToColor:()=>ji,modifyAlpha:()=>Ni,modifyHSL:()=>Mi,parse:()=>Ci,parseCssFloat:()=>hi,parseCssInt:()=>mi,random:()=>Ii,stringify:()=>Pi,toHex:()=>Di}),ui={transparent:[0,0,0,0],aliceblue:[240,248,255,1],antiquewhite:[250,235,215,1],aqua:[0,255,255,1],aquamarine:[127,255,212,1],azure:[240,255,255,1],beige:[245,245,220,1],bisque:[255,228,196,1],black:[0,0,0,1],blanchedalmond:[255,235,205,1],blue:[0,0,255,1],blueviolet:[138,43,226,1],brown:[165,42,42,1],burlywood:[222,184,135,1],cadetblue:[95,158,160,1],chartreuse:[127,255,0,1],chocolate:[210,105,30,1],coral:[255,127,80,1],cornflowerblue:[100,149,237,1],cornsilk:[255,248,220,1],crimson:[220,20,60,1],cyan:[0,255,255,1],darkblue:[0,0,139,1],darkcyan:[0,139,139,1],darkgoldenrod:[184,134,11,1],darkgray:[169,169,169,1],darkgreen:[0,100,0,1],darkgrey:[169,169,169,1],darkkhaki:[189,183,107,1],darkmagenta:[139,0,139,1],darkolivegreen:[85,107,47,1],darkorange:[255,140,0,1],darkorchid:[153,50,204,1],darkred:[139,0,0,1],darksalmon:[233,150,122,1],darkseagreen:[143,188,143,1],darkslateblue:[72,61,139,1],darkslategray:[47,79,79,1],darkslategrey:[47,79,79,1],darkturquoise:[0,206,209,1],darkviolet:[148,0,211,1],deeppink:[255,20,147,1],deepskyblue:[0,191,255,1],dimgray:[105,105,105,1],dimgrey:[105,105,105,1],dodgerblue:[30,144,255,1],firebrick:[178,34,34,1],floralwhite:[255,250,240,1],forestgreen:[34,139,34,1],fuchsia:[255,0,255,1],gainsboro:[220,220,220,1],ghostwhite:[248,248,255,1],gold:[255,215,0,1],goldenrod:[218,165,32,1],gray:[128,128,128,1],green:[0,128,0,1],greenyellow:[173,255,47,1],grey:[128,128,128,1],honeydew:[240,255,240,1],hotpink:[255,105,180,1],indianred:[205,92,92,1],indigo:[75,0,130,1],ivory:[255,255,240,1],khaki:[240,230,140,1],lavender:[230,230,250,1],lavenderblush:[255,240,245,1],lawngreen:[124,252,0,1],lemonchiffon:[255,250,205,1],lightblue:[173,216,230,1],lightcoral:[240,128,128,1],lightcyan:[224,255,255,1],lightgoldenrodyellow:[250,250,210,1],lightgray:[211,211,211,1],lightgreen:[144,238,144,1],lightgrey:[211,211,211,1],lightpink:[255,182,193,1],lightsalmon:[255,160,122,1],lightseagreen:[32,178,170,1],lightskyblue:[135,206,250,1],lightslategray:[119,136,153,1],lightslategrey:[119,136,153,1],lightsteelblue:[176,196,222,1],lightyellow:[255,255,224,1],lime:[0,255,0,1],limegreen:[50,205,50,1],linen:[250,240,230,1],magenta:[255,0,255,1],maroon:[128,0,0,1],mediumaquamarine:[102,205,170,1],mediumblue:[0,0,205,1],mediumorchid:[186,85,211,1],mediumpurple:[147,112,219,1],mediumseagreen:[60,179,113,1],mediumslateblue:[123,104,238,1],mediumspringgreen:[0,250,154,1],mediumturquoise:[72,209,204,1],mediumvioletred:[199,21,133,1],midnightblue:[25,25,112,1],mintcream:[245,255,250,1],mistyrose:[255,228,225,1],moccasin:[255,228,181,1],navajowhite:[255,222,173,1],navy:[0,0,128,1],oldlace:[253,245,230,1],olive:[128,128,0,1],olivedrab:[107,142,35,1],orange:[255,165,0,1],orangered:[255,69,0,1],orchid:[218,112,214,1],palegoldenrod:[238,232,170,1],palegreen:[152,251,152,1],paleturquoise:[175,238,238,1],palevioletred:[219,112,147,1],papayawhip:[255,239,213,1],peachpuff:[255,218,185,1],peru:[205,133,63,1],pink:[255,192,203,1],plum:[221,160,221,1],powderblue:[176,224,230,1],purple:[128,0,128,1],red:[255,0,0,1],rosybrown:[188,143,143,1],royalblue:[65,105,225,1],saddlebrown:[139,69,19,1],salmon:[250,128,114,1],sandybrown:[244,164,96,1],seagreen:[46,139,87,1],seashell:[255,245,238,1],sienna:[160,82,45,1],silver:[192,192,192,1],skyblue:[135,206,235,1],slateblue:[106,90,205,1],slategray:[112,128,144,1],slategrey:[112,128,144,1],snow:[255,250,250,1],springgreen:[0,255,127,1],steelblue:[70,130,180,1],tan:[210,180,140,1],teal:[0,128,128,1],thistle:[216,191,216,1],tomato:[255,99,71,1],turquoise:[64,224,208,1],violet:[238,130,238,1],wheat:[245,222,179,1],white:[255,255,255,1],whitesmoke:[245,245,245,1],yellow:[255,255,0,1],yellowgreen:[154,205,50,1]};function di(e){return e=Math.round(e),e<0?0:e>255?255:e}function fi(e){return e=Math.round(e),e<0?0:e>360?360:e}function pi(e){return e<0?0:e>1?1:e}function mi(e){var t=e;return t.length&&t.charAt(t.length-1)===`%`?di(parseFloat(t)/100*255):di(parseInt(t,10))}function hi(e){var t=e;return t.length&&t.charAt(t.length-1)===`%`?pi(parseFloat(t)/100):pi(parseFloat(t))}function gi(e,t,n){return n<0?n+=1:n>1&&--n,n*6<1?e+(t-e)*n*6:n*2<1?t:n*3<2?e+(t-e)*(2/3-n)*6:e}function _i(e,t,n){return e+(t-e)*n}function vi(e,t,n,r,i){return e[0]=t,e[1]=n,e[2]=r,e[3]=i,e}function yi(e,t){return e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[3],e}var bi=new Tt(20),xi=null;function Si(e,t){xi&&yi(xi,t),xi=bi.put(e,xi||t.slice())}function Ci(e,t){if(e){t||=[];var n=bi.get(e);if(n)return yi(t,n);e+=``;var r=e.replace(/ /g,``).toLowerCase();if(r in ui)return yi(t,ui[r]),Si(e,t),t;var i=r.length;if(r.charAt(0)===`#`){if(i===4||i===5){var a=parseInt(r.slice(1,4),16);if(!(a>=0&&a<=4095)){vi(t,0,0,0,1);return}return vi(t,(a&3840)>>4|(a&3840)>>8,a&240|(a&240)>>4,a&15|(a&15)<<4,i===5?parseInt(r.slice(4),16)/15:1),Si(e,t),t}if(i===7||i===9){var a=parseInt(r.slice(1,7),16);if(!(a>=0&&a<=16777215)){vi(t,0,0,0,1);return}return vi(t,(a&16711680)>>16,(a&65280)>>8,a&255,i===9?parseInt(r.slice(7),16)/255:1),Si(e,t),t}return}var o=r.indexOf(`(`),s=r.indexOf(`)`);if(o!==-1&&s+1===i){var c=r.substr(0,o),l=r.substr(o+1,s-(o+1)).split(`,`),u=1;switch(c){case`rgba`:if(l.length!==4)return l.length===3?vi(t,+l[0],+l[1],+l[2],1):vi(t,0,0,0,1);u=hi(l.pop());case`rgb`:if(l.length>=3)return vi(t,mi(l[0]),mi(l[1]),mi(l[2]),l.length===3?u:hi(l[3])),Si(e,t),t;vi(t,0,0,0,1);return;case`hsla`:if(l.length!==4){vi(t,0,0,0,1);return}return l[3]=hi(l[3]),wi(l,t),Si(e,t),t;case`hsl`:if(l.length!==3){vi(t,0,0,0,1);return}return wi(l,t),Si(e,t),t;default:return}}vi(t,0,0,0,1)}}function wi(e,t){var n=(parseFloat(e[0])%360+360)%360/360,r=hi(e[1]),i=hi(e[2]),a=i<=.5?i*(r+1):i+r-i*r,o=i*2-a;return t||=[],vi(t,di(gi(o,a,n+1/3)*255),di(gi(o,a,n)*255),di(gi(o,a,n-1/3)*255),1),e.length===4&&(t[3]=e[3]),t}function Ti(e){if(e){var t=e[0]/255,n=e[1]/255,r=e[2]/255,i=Math.min(t,n,r),a=Math.max(t,n,r),o=a-i,s=(a+i)/2,c,l;if(o===0)c=0,l=0;else{l=s<.5?o/(a+i):o/(2-a-i);var u=((a-t)/6+o/2)/o,d=((a-n)/6+o/2)/o,f=((a-r)/6+o/2)/o;t===a?c=f-d:n===a?c=1/3+u-f:r===a&&(c=2/3+d-u),c<0&&(c+=1),c>1&&--c}var p=[c*360,l,s];return e[3]!=null&&p.push(e[3]),p}}function Ei(e,t){var n=Ci(e);if(n){for(var r=0;r<3;r++)t<0?n[r]=n[r]*(1-t)|0:n[r]=(255-n[r])*t+n[r]|0,n[r]>255?n[r]=255:n[r]<0&&(n[r]=0);return Pi(n,n.length===4?`rgba`:`rgb`)}}function Di(e){var t=Ci(e);if(t)return((1<<24)+(t[0]<<16)+(t[1]<<8)+ +t[2]).toString(16).slice(1)}function Oi(e,t,n){if(t&&t.length&&e>=0&&e<=1){n||=[];var r=e*(t.length-1),i=Math.floor(r),a=Math.ceil(r),o=t[i],s=t[a],c=r-i;return n[0]=di(_i(o[0],s[0],c)),n[1]=di(_i(o[1],s[1],c)),n[2]=di(_i(o[2],s[2],c)),n[3]=pi(_i(o[3],s[3],c)),n}}var ki=Oi;function Ai(e,t,n){if(t&&t.length&&e>=0&&e<=1){var r=e*(t.length-1),i=Math.floor(r),a=Math.ceil(r),o=Ci(t[i]),s=Ci(t[a]),c=r-i,l=Pi([di(_i(o[0],s[0],c)),di(_i(o[1],s[1],c)),di(_i(o[2],s[2],c)),pi(_i(o[3],s[3],c))],`rgba`);return n?{color:l,leftIndex:i,rightIndex:a,value:r}:l}}var ji=Ai;function Mi(e,t,n,r){var i=Ci(e);if(e)return i=Ti(i),t!=null&&(i[0]=fi(W(t)?t(i[0]):t)),n!=null&&(i[1]=hi(W(n)?n(i[1]):n)),r!=null&&(i[2]=hi(W(r)?r(i[2]):r)),Pi(wi(i),`rgba`)}function Ni(e,t){var n=Ci(e);if(n&&t!=null)return n[3]=pi(t),Pi(n,`rgba`)}function Pi(e,t){if(e&&e.length){var n=e[0]+`,`+e[1]+`,`+e[2];return(t===`rgba`||t===`hsva`||t===`hsla`)&&(n+=`,`+e[3]),t+`(`+n+`)`}}function Fi(e,t){var n=Ci(e);return n?(.299*n[0]+.587*n[1]+.114*n[2])*n[3]/255+(1-n[3])*t:0}function Ii(){return Pi([Math.round(Math.random()*255),Math.round(Math.random()*255),Math.round(Math.random()*255)],`rgb`)}var Li=new Tt(100);function Ri(e){if(G(e)){var t=Li.get(e);return t||(t=Ei(e,-.1),Li.put(e,t)),t}if(Pe(e)){var n=I({},e);return n.colorStops=B(e.colorStops,function(e){return{offset:e.offset,color:Ei(e.color,-.1)}}),n}return e}var zi=Math.round;function Bi(e){var t;if(!e||e===`transparent`)e=`none`;else if(typeof e==`string`&&e.indexOf(`rgba`)>-1){var n=Ci(e);n&&(e=`rgb(`+n[0]+`,`+n[1]+`,`+n[2]+`)`,t=n[3])}return{color:e,opacity:t??1}}var Vi=1e-4;function Hi(e){return e<Vi&&e>-Vi}function Ui(e){return zi(e*1e3)/1e3}function Wi(e){return zi(e*1e4)/1e4}function Gi(e){return`matrix(`+Ui(e[0])+`,`+Ui(e[1])+`,`+Ui(e[2])+`,`+Ui(e[3])+`,`+Wi(e[4])+`,`+Wi(e[5])+`)`}var Ki={left:`start`,right:`end`,center:`middle`,middle:`middle`};function qi(e,t,n){return n===`top`?e+=t/2:n===`bottom`&&(e-=t/2),e}function Ji(e){return e&&(e.shadowBlur||e.shadowOffsetX||e.shadowOffsetY)}function Yi(e){var t=e.style,n=e.getGlobalScale();return[t.shadowColor,(t.shadowBlur||0).toFixed(2),(t.shadowOffsetX||0).toFixed(2),(t.shadowOffsetY||0).toFixed(2),n[0],n[1]].join(`,`)}function Xi(e){return e&&!!e.image}function Zi(e){return e&&!!e.svgElement}function Qi(e){return Xi(e)||Zi(e)}function $i(e){return e.type===`linear`}function ea(e){return e.type===`radial`}function ta(e){return e&&(e.type===`linear`||e.type===`radial`)}function na(e){return`url(#`+e+`)`}function ra(e){var t=e.getGlobalScale(),n=Math.max(t[0],t[1]);return Math.max(Math.ceil(Math.log(n)/Math.log(10)),1)}function ia(e){var t=e.x||0,n=e.y||0,r=(e.rotation||0)*nt,i=q(e.scaleX,1),a=q(e.scaleY,1),o=e.skewX||0,s=e.skewY||0,c=[];return(t||n)&&c.push(`translate(`+t+`px,`+n+`px)`),r&&c.push(`rotate(`+r+`)`),(i!==1||a!==1)&&c.push(`scale(`+i+`,`+a+`)`),(o||s)&&c.push(`skew(`+zi(o*nt)+`deg, `+zi(s*nt)+`deg)`),c.join(` `)}var aa=(function(){return typeof Buffer<`u`&&typeof Buffer.from==`function`?function(e){return Buffer.from(e).toString(`base64`)}:typeof btoa==`function`&&typeof unescape==`function`&&typeof encodeURIComponent==`function`?function(e){return btoa(unescape(encodeURIComponent(e)))}:function(e){return null}})(),oa=Array.prototype.slice;function sa(e,t,n){return(t-e)*n+e}function ca(e,t,n,r){for(var i=t.length,a=0;a<i;a++)e[a]=sa(t[a],n[a],r);return e}function la(e,t,n,r){for(var i=t.length,a=i&&t[0].length,o=0;o<i;o++){e[o]||(e[o]=[]);for(var s=0;s<a;s++)e[o][s]=sa(t[o][s],n[o][s],r)}return e}function ua(e,t,n,r){for(var i=t.length,a=0;a<i;a++)e[a]=t[a]+n[a]*r;return e}function da(e,t,n,r){for(var i=t.length,a=i&&t[0].length,o=0;o<i;o++){e[o]||(e[o]=[]);for(var s=0;s<a;s++)e[o][s]=t[o][s]+n[o][s]*r}return e}function fa(e,t){for(var n=e.length,r=t.length,i=n>r?t:e,a=Math.min(n,r),o=i[a-1]||{color:[0,0,0,0],offset:0},s=a;s<Math.max(n,r);s++)i.push({offset:o.offset,color:o.color.slice()})}function pa(e,t,n){var r=e,i=t;if(r.push&&i.push){var a=r.length,o=i.length;if(a!==o){if(a>o)r.length=o;else for(var s=a;s<o;s++)r.push(n===1?i[s]:oa.call(i[s]))}for(var c=r[0]&&r[0].length,s=0;s<r.length;s++)if(n===1)isNaN(r[s])&&(r[s]=i[s]);else for(var l=0;l<c;l++)isNaN(r[s][l])&&(r[s][l]=i[s][l])}}function ma(e){if(Ce(e)){var t=e.length;if(Ce(e[0])){for(var n=[],r=0;r<t;r++)n.push(oa.call(e[r]));return n}return oa.call(e)}return e}function ha(e){return e[0]=Math.floor(e[0])||0,e[1]=Math.floor(e[1])||0,e[2]=Math.floor(e[2])||0,e[3]=e[3]==null?1:e[3],`rgba(`+e.join(`,`)+`)`}function ga(e){return Ce(e&&e[0])?2:1}var _a=0,va=1,ya=2,ba=3,xa=4,Sa=5,Ca=6;function wa(e){return e===xa||e===Sa}function Ta(e){return e===va||e===ya}var Ea=[0,0,0,0],Da=function(){function e(e){this.keyframes=[],this.discrete=!1,this._invalid=!1,this._needsSort=!1,this._lastFr=0,this._lastFrP=0,this.propName=e}return e.prototype.isFinished=function(){return this._finished},e.prototype.setFinished=function(){this._finished=!0,this._additiveTrack&&this._additiveTrack.setFinished()},e.prototype.needsAnimate=function(){return this.keyframes.length>=1},e.prototype.getAdditiveTrack=function(){return this._additiveTrack},e.prototype.addKeyframe=function(e,t,n){this._needsSort=!0;var r=this.keyframes,i=r.length,a=!1,o=Ca,s=t;if(Ce(t)){var c=ga(t);o=c,(c===1&&!Ae(t[0])||c===2&&!Ae(t[0][0]))&&(a=!0)}else if(Ae(t)&&!Le(t))o=_a;else if(G(t)){if(!isNaN(+t))o=_a;else{var l=Ci(t);l&&(s=l,o=ba)}}else if(Pe(t)){var u=I({},s);u.colorStops=B(t.colorStops,function(e){return{offset:e.offset,color:Ci(e.color)}}),$i(t)?o=xa:ea(t)&&(o=Sa),s=u}i===0?this.valType=o:(o!==this.valType||o===Ca)&&(a=!0),this.discrete=this.discrete||a;var d={time:e,value:s,rawValue:t,percent:0};return n&&(d.easing=n,d.easingFunc=W(n)?n:Pr[n]||si(n)),r.push(d),d},e.prototype.prepare=function(e,t){var n=this.keyframes;this._needsSort&&n.sort(function(e,t){return e.time-t.time});for(var r=this.valType,i=n.length,a=n[i-1],o=this.discrete,s=Ta(r),c=wa(r),l=0;l<i;l++){var u=n[l],d=u.value,f=a.value;u.percent=u.time/e,o||(s&&l!==i-1?pa(d,f,r):c&&fa(d.colorStops,f.colorStops))}if(!o&&r!==Sa&&t&&this.needsAnimate()&&t.needsAnimate()&&r===t.valType&&!t._finished){this._additiveTrack=t;for(var p=n[0].value,l=0;l<i;l++)r===_a?n[l].additiveValue=n[l].value-p:r===ba?n[l].additiveValue=ua([],n[l].value,p,-1):Ta(r)&&(n[l].additiveValue=r===va?ua([],n[l].value,p,-1):da([],n[l].value,p,-1))}},e.prototype.step=function(e,t){if(!this._finished){this._additiveTrack&&this._additiveTrack._finished&&(this._additiveTrack=null);var n=this._additiveTrack!=null,r=n?`additiveValue`:`value`,i=this.valType,a=this.keyframes,o=a.length,s=this.propName,c=i===ba,l,u=this._lastFr,d=Math.min,f,p;if(o===1)f=p=a[0];else{if(t<0)l=0;else if(t<this._lastFrP){for(l=d(u+1,o-1);l>=0&&!(a[l].percent<=t);l--);l=d(l,o-2)}else{for(l=u;l<o&&!(a[l].percent>t);l++);l=d(l-1,o-2)}p=a[l+1],f=a[l]}if(f&&p){this._lastFr=l,this._lastFrP=t;var m=p.percent-f.percent,h=m===0?1:d((t-f.percent)/m,1);p.easingFunc&&(h=p.easingFunc(h));var g=n?this._additiveValue:c?Ea:e[s];if((Ta(i)||c)&&!g&&(g=this._additiveValue=[]),this.discrete)e[s]=h<1?f.rawValue:p.rawValue;else if(Ta(i))i===va?ca(g,f[r],p[r],h):la(g,f[r],p[r],h);else if(wa(i)){var _=f[r],v=p[r],y=i===xa;e[s]={type:y?`linear`:`radial`,x:sa(_.x,v.x,h),y:sa(_.y,v.y,h),colorStops:B(_.colorStops,function(e,t){var n=v.colorStops[t];return{offset:sa(e.offset,n.offset,h),color:ha(ca([],e.color,n.color,h))}}),global:v.global},y?(e[s].x2=sa(_.x2,v.x2,h),e[s].y2=sa(_.y2,v.y2,h)):e[s].r=sa(_.r,v.r,h)}else if(c)ca(g,f[r],p[r],h),n||(e[s]=ha(g));else{var b=sa(f[r],p[r],h);n?this._additiveValue=b:e[s]=b}n&&this._addToTarget(e)}}},e.prototype._addToTarget=function(e){var t=this.valType,n=this.propName,r=this._additiveValue;t===_a?e[n]=e[n]+r:t===ba?(Ci(e[n],Ea),ua(Ea,Ea,r,1),e[n]=ha(Ea)):t===va?ua(e[n],e[n],r,1):t===ya&&da(e[n],e[n],r,1)},e}(),Oa=function(){function e(e,t,n,r){if(this._tracks={},this._trackKeys=[],this._maxTime=0,this._started=0,this._clip=null,this._target=e,this._loop=t,t&&r){_e(`Can' use additive animation on looped animation.`);return}this._additiveAnimators=r,this._allowDiscrete=n}return e.prototype.getMaxTime=function(){return this._maxTime},e.prototype.getDelay=function(){return this._delay},e.prototype.getLoop=function(){return this._loop},e.prototype.getTarget=function(){return this._target},e.prototype.changeTarget=function(e){this._target=e},e.prototype.when=function(e,t,n){return this.whenWithKeys(e,t,V(t),n)},e.prototype.whenWithKeys=function(e,t,n,r){for(var i=this._tracks,a=0;a<n.length;a++){var o=n[a],s=i[o];if(!s){s=i[o]=new Da(o);var c=void 0,l=this._getAdditiveTrack(o);if(l){var u=l.keyframes,d=u[u.length-1];c=d&&d.value,l.valType===ba&&c&&(c=ha(c))}else c=this._target[o];if(c==null)continue;e>0&&s.addKeyframe(0,ma(c),r),this._trackKeys.push(o)}s.addKeyframe(e,ma(t[o]),r)}return this._maxTime=Math.max(this._maxTime,e),this},e.prototype.pause=function(){this._clip.pause(),this._paused=!0},e.prototype.resume=function(){this._clip.resume(),this._paused=!1},e.prototype.isPaused=function(){return!!this._paused},e.prototype.duration=function(e){return this._maxTime=e,this._force=!0,this},e.prototype._doneCallback=function(){this._setTracksFinished(),this._clip=null;var e=this._doneCbs;if(e)for(var t=e.length,n=0;n<t;n++)e[n].call(this)},e.prototype._abortedCallback=function(){this._setTracksFinished();var e=this.animation,t=this._abortedCbs;if(e&&e.removeClip(this._clip),this._clip=null,t)for(var n=0;n<t.length;n++)t[n].call(this)},e.prototype._setTracksFinished=function(){for(var e=this._tracks,t=this._trackKeys,n=0;n<t.length;n++)e[t[n]].setFinished()},e.prototype._getAdditiveTrack=function(e){var t,n=this._additiveAnimators;if(n)for(var r=0;r<n.length;r++){var i=n[r].getTrack(e);i&&(t=i)}return t},e.prototype.start=function(e){if(!(this._started>0)){this._started=1;for(var t=this,n=[],r=this._maxTime||0,i=0;i<this._trackKeys.length;i++){var a=this._trackKeys[i],o=this._tracks[a],s=this._getAdditiveTrack(a),c=o.keyframes,l=c.length;if(o.prepare(r,s),o.needsAnimate()){if(!this._allowDiscrete&&o.discrete){var u=c[l-1];u&&(t._target[o.propName]=u.rawValue),o.setFinished()}else n.push(o)}}if(n.length||this._force){var d=new ci({life:r,loop:this._loop,delay:this._delay||0,onframe:function(e){t._started=2;var r=t._additiveAnimators;if(r){for(var i=!1,a=0;a<r.length;a++)if(r[a]._clip){i=!0;break}i||(t._additiveAnimators=null)}for(var a=0;a<n.length;a++)n[a].step(t._target,e);var o=t._onframeCbs;if(o)for(var a=0;a<o.length;a++)o[a](t._target,e)},ondestroy:function(){t._doneCallback()}});this._clip=d,this.animation&&this.animation.addClip(d),e&&d.setEasing(e)}else this._doneCallback();return this}},e.prototype.stop=function(e){if(this._clip){var t=this._clip;e&&t.onframe(1),this._abortedCallback()}},e.prototype.delay=function(e){return this._delay=e,this},e.prototype.during=function(e){return e&&(this._onframeCbs||=[],this._onframeCbs.push(e)),this},e.prototype.done=function(e){return e&&(this._doneCbs||=[],this._doneCbs.push(e)),this},e.prototype.aborted=function(e){return e&&(this._abortedCbs||=[],this._abortedCbs.push(e)),this},e.prototype.getClip=function(){return this._clip},e.prototype.getTrack=function(e){return this._tracks[e]},e.prototype.getTracks=function(){var e=this;return B(this._trackKeys,function(t){return e._tracks[t]})},e.prototype.stopTracks=function(e,t){if(!e.length||!this._clip)return!0;for(var n=this._tracks,r=this._trackKeys,i=0;i<e.length;i++){var a=n[e[i]];a&&!a.isFinished()&&(t?a.step(this._target,1):this._started===1&&a.step(this._target,0),a.setFinished())}for(var o=!0,i=0;i<r.length;i++)if(!n[r[i]].isFinished()){o=!1;break}return o&&this._abortedCallback(),o},e.prototype.saveTo=function(e,t,n){if(e){t||=this._trackKeys;for(var r=0;r<t.length;r++){var i=t[r],a=this._tracks[i];if(a&&!a.isFinished()){var o=a.keyframes,s=o[n?0:o.length-1];s&&(e[i]=ma(s.rawValue))}}}},e.prototype.__changeFinalValue=function(e,t){t||=V(e);for(var n=0;n<t.length;n++){var r=t[n],i=this._tracks[r];if(i){var a=i.keyframes;if(a.length>1){var o=a.pop();i.addKeyframe(o.time,e[r]),i.prepare(this._maxTime,i.getAdditiveTrack())}}}},e}(),ka=function(){function e(e){e&&(this._$eventProcessor=e)}return e.prototype.on=function(e,t,n,r){this._$handlers||={};var i=this._$handlers;if(typeof t==`function`&&(r=n,n=t,t=null),!n||!e)return this;var a=this._$eventProcessor;t!=null&&a&&a.normalizeQuery&&(t=a.normalizeQuery(t)),i[e]||(i[e]=[]);for(var o=0;o<i[e].length;o++)if(i[e][o].h===n)return this;var s={h:n,query:t,ctx:r||this,callAtLast:n.zrEventfulCallAtLast},c=i[e].length-1,l=i[e][c];return l&&l.callAtLast?i[e].splice(c,0,s):i[e].push(s),this},e.prototype.isSilent=function(e){var t=this._$handlers;return!t||!t[e]||!t[e].length},e.prototype.off=function(e,t){var n=this._$handlers;if(!n)return this;if(!e)return this._$handlers={},this;if(t){if(n[e]){for(var r=[],i=0,a=n[e].length;i<a;i++)n[e][i].h!==t&&r.push(n[e][i]);n[e]=r}n[e]&&n[e].length===0&&delete n[e]}else delete n[e];return this},e.prototype.trigger=function(e){var t=[...arguments].slice(1);if(!this._$handlers)return this;var n=this._$handlers[e],r=this._$eventProcessor;if(n)for(var i=t.length,a=n.length,o=0;o<a;o++){var s=n[o];if(!(r&&r.filter&&s.query!=null&&!r.filter(e,s.query)))switch(i){case 0:s.h.call(s.ctx);break;case 1:s.h.call(s.ctx,t[0]);break;case 2:s.h.call(s.ctx,t[0],t[1]);break;default:s.h.apply(s.ctx,t)}}return r&&r.afterTrigger&&r.afterTrigger(e),this},e.prototype.triggerWithContext=function(e){var t=[...arguments].slice(1);if(!this._$handlers)return this;var n=this._$handlers[e],r=this._$eventProcessor;if(n)for(var i=t.length,a=t[i-1],o=n.length,s=0;s<o;s++){var c=n[s];if(!(r&&r.filter&&c.query!=null&&!r.filter(e,c.query)))switch(i){case 0:c.h.call(a);break;case 1:c.h.call(a,t[0]);break;case 2:c.h.call(a,t[0],t[1]);break;default:c.h.apply(a,t.slice(1,i-1))}}return r&&r.afterTrigger&&r.afterTrigger(e),this},e}(),Aa=1;Y.hasGlobalWindow&&(Aa=Math.max(window.devicePixelRatio||window.screen&&window.screen.deviceXDPI/window.screen.logicalXDPI||1,1));var ja=Aa,Ma=.4,Na=`#333`,Pa=`#ccc`,Fa=`#eee`,Ia=`__zr_normal__`,La=Mr.concat([`ignore`]),Ra=we(Mr,function(e,t){return e[t]=!0,e},{ignore:!1}),za={},Ba=new X(0,0,0,0),Va=[],Ha=function(){function e(e){this.id=ge(),this.animators=[],this.currentStates=[],this.states={},this._init(e)}return e.prototype._init=function(e){this.attr(e)},e.prototype.drift=function(e,t,n){switch(this.draggable){case`horizontal`:t=0;break;case`vertical`:e=0}var r=this.transform;r||=this.transform=[1,0,0,1,0,0],r[4]+=e,r[5]+=t,this.decomposeTransform(),this.markRedraw()},e.prototype.beforeUpdate=function(){},e.prototype.afterUpdate=function(){},e.prototype.update=function(){this.updateTransform(),this.__dirty&&this.updateInnerText()},e.prototype.updateInnerText=function(e){var t=this._textContent;if(t&&(!t.ignore||e)){this.textConfig||={};var n=this.textConfig,r=n.local,i=t.innerTransformable,a=void 0,o=void 0,s=!1;i.parent=r?this:null;var c=!1;i.copyTransform(t);var l=n.position!=null,u=n.autoOverflowArea,d=void 0;if((u||l)&&(d=Ba,n.layoutRect?d.copy(n.layoutRect):d.copy(this.getBoundingRect()),r||d.applyTransform(this.transform)),l){this.calculateTextPosition?this.calculateTextPosition(za,n,d):Qn(za,n,d),i.x=za.x,i.y=za.y,a=za.align,o=za.verticalAlign;var f=n.origin;if(f&&n.rotation!=null){var p=void 0,m=void 0;f===`center`?(p=d.width*.5,m=d.height*.5):(p=Zn(f[0],d.width),m=Zn(f[1],d.height)),c=!0,i.originX=-i.x+p+(r?0:d.x),i.originY=-i.y+m+(r?0:d.y)}}n.rotation!=null&&(i.rotation=n.rotation);var h=n.offset;h&&(i.x+=h[0],i.y+=h[1],c||(i.originX=-h[0],i.originY=-h[1]));var g=this._innerTextDefaultStyle||={};if(u){var _=g.overflowRect=g.overflowRect||new X(0,0,0,0);i.getLocalTransform(Va),zt(Va,Va),X.copy(_,d),_.applyTransform(Va)}else g.overflowRect=null;var v=n.inside==null?typeof n.position==`string`&&n.position.indexOf(`inside`)>=0:n.inside,y=void 0,b=void 0,x=void 0;v&&this.canBeInsideText()?(y=n.insideFill,b=n.insideStroke,(y==null||y===`auto`)&&(y=this.getInsideTextFill()),(b==null||b===`auto`)&&(b=this.getInsideTextStroke(y),x=!0)):(y=n.outsideFill,b=n.outsideStroke,(y==null||y===`auto`)&&(y=this.getOutsideFill()),(b==null||b===`auto`)&&(b=this.getOutsideStroke(y),x=!0)),y||=`#000`,(y!==g.fill||b!==g.stroke||x!==g.autoStroke||a!==g.align||o!==g.verticalAlign)&&(s=!0,g.fill=y,g.stroke=b,g.autoStroke=x,g.align=a,g.verticalAlign=o,t.setDefaultTextStyle(g)),t.__dirty|=1,s&&t.dirtyStyle(!0)}},e.prototype.canBeInsideText=function(){return!0},e.prototype.getInsideTextFill=function(){return`#fff`},e.prototype.getInsideTextStroke=function(e){return`#000`},e.prototype.getOutsideFill=function(){return this.__zr&&this.__zr.isDarkMode()?Pa:Na},e.prototype.getOutsideStroke=function(e){var t=this.__zr&&this.__zr.getBackgroundColor(),n=typeof t==`string`&&Ci(t);n||=[255,255,255,1];for(var r=n[3],i=this.__zr.isDarkMode(),a=0;a<3;a++)n[a]=n[a]*r+(i?0:255)*(1-r);return n[3]=1,Pi(n,`rgba`)},e.prototype.traverse=function(e,t){},e.prototype.attrKV=function(e,t){e===`textConfig`?this.setTextConfig(t):e===`textContent`?this.setTextContent(t):e===`clipPath`?this.setClipPath(t):e===`extra`?(this.extra=this.extra||{},I(this.extra,t)):this[e]=t},e.prototype.hide=function(){this.ignore=!0,this.markRedraw()},e.prototype.show=function(){this.ignore=!1,this.markRedraw()},e.prototype.attr=function(e,t){if(typeof e==`string`)this.attrKV(e,t);else if(K(e))for(var n=V(e),r=0;r<n.length;r++){var i=n[r];this.attrKV(i,e[i])}return this.markRedraw(),this},e.prototype.saveCurrentToNormalState=function(e){this._innerSaveToNormal(e);for(var t=this._normalState,n=0;n<this.animators.length;n++){var r=this.animators[n],i=r.__fromStateTransition;if(!(r.getLoop()||i&&i!==`__zr_normal__`)){var a=r.targetName,o=a?t[a]:t;r.saveTo(o)}}},e.prototype._innerSaveToNormal=function(e){var t=this._normalState;t||=this._normalState={},e.textConfig&&!t.textConfig&&(t.textConfig=this.textConfig),this._savePrimaryToNormal(e,t,La)},e.prototype._savePrimaryToNormal=function(e,t,n){for(var r=0;r<n.length;r++){var i=n[r];e[i]!=null&&!(i in t)&&(t[i]=this[i])}},e.prototype.hasState=function(){return this.currentStates.length>0},e.prototype.getState=function(e){return this.states[e]},e.prototype.ensureState=function(e){var t=this.states;return t[e]||(t[e]={}),t[e]},e.prototype.clearStates=function(e){this.useState(Ia,!1,e)},e.prototype.useState=function(e,t,n,r){var i=e===Ia;if(this.hasState()||!i){var a=this.currentStates,o=this.stateTransition;if(!(R(a,e)>=0&&(t||a.length===1))){var s;if(this.stateProxy&&!i&&(s=this.stateProxy(e)),s||=this.states&&this.states[e],!s&&!i){_e(`State `+e+` not exists.`);return}i||this.saveCurrentToNormalState(s);var c=this._textContent,l=Xa(this,c,s,r);l&&!this.__inHover&&(this.__inHover=l),this._applyStateObj(e,s,this._normalState,t,Qa(this,n,o),o);var u=this._textGuide;return c&&c.useState(e,t,n,!!l),u&&u.useState(e,t,n,!!l),i?(this.currentStates=[],this._normalState={}):t?this.currentStates.push(e):this.currentStates=[e],this._updateAnimationTargets(),this.markRedraw(),!l&&this.__inHover&&(this.__inHover=0,this.__dirty&=-2),s}}},e.prototype.useStates=function(e,t,n){if(!e.length)this.clearStates();else{var r=[],i=this.currentStates,a=e.length,o=a===i.length;if(o){for(var s=0;s<a;s++)if(e[s]!==i[s]){o=!1;break}}if(o)return;for(var s=0;s<a;s++){var c=e[s],l=void 0;this.stateProxy&&(l=this.stateProxy(c,e)),l||=this.states[c],l&&r.push(l)}var u=r[a-1],d=this._textContent,f=Xa(this,d,u,n);f&&!this.__inHover&&(this.__inHover=f);var p=this._mergeStates(r),m=this.stateTransition;this.saveCurrentToNormalState(p),this._applyStateObj(e.join(`,`),p,this._normalState,!1,Qa(this,t,m),m);var h=this._textGuide;d&&d.useStates(e,t,!!f),h&&h.useStates(e,t,!!f),this._updateAnimationTargets(),this.currentStates=e.slice(),this.markRedraw(),!f&&this.__inHover&&(this.__inHover=0,this.__dirty&=-2)}},e.prototype.isSilent=function(){for(var e=this;e;){if(e.silent)return!0;var t=e.__hostTarget;e=t?e.ignoreHostSilent?null:t:e.parent}return!1},e.prototype._updateAnimationTargets=function(){for(var e=0;e<this.animators.length;e++){var t=this.animators[e];t.targetName&&t.changeTarget(this[t.targetName])}},e.prototype.removeState=function(e){var t=R(this.currentStates,e);if(t>=0){var n=this.currentStates.slice();n.splice(t,1),this.useStates(n)}},e.prototype.replaceState=function(e,t,n){var r=this.currentStates.slice(),i=R(r,e),a=R(r,t)>=0;i>=0?a?r.splice(i,1):r[i]=t:n&&!a&&r.push(t),this.useStates(r)},e.prototype.toggleState=function(e,t){t?this.useState(e,!0):this.removeState(e)},e.prototype._mergeStates=function(e){for(var t={},n,r=0;r<e.length;r++){var i=e[r];I(t,i),i.textConfig&&(n||={},I(n,i.textConfig))}return n&&(t.textConfig=n),t},e.prototype._applyStateObj=function(e,t,n,r,i,a){if(this.__inHover!==1){var o=!(t&&r);t&&t.textConfig?(this.textConfig=I({},r?this.textConfig:n.textConfig),I(this.textConfig,t.textConfig)):o&&n.textConfig&&(this.textConfig=n.textConfig);for(var s={},c=!1,l=0;l<La.length;l++){var u=La[l],d=i&&Ra[u];t&&t[u]!=null?d?(c=!0,s[u]=t[u]):this[u]=t[u]:o&&n[u]!=null&&(d?(c=!0,s[u]=n[u]):this[u]=n[u])}if(!i)for(var l=0;l<this.animators.length;l++){var f=this.animators[l],p=f.targetName;f.getLoop()||f.__changeFinalValue(p?(t||n)[p]:t||n)}c&&this._transitionState(e,s,a)}},e.prototype._attachComponent=function(e){if((!e.__zr||e.__hostTarget)&&e!==this){var t=this.__zr;t&&e.addSelfToZr(t),e.__zr=t,e.__hostTarget=this}},e.prototype._detachComponent=function(e){e.__zr&&e.removeSelfFromZr(e.__zr),e.__zr=null,e.__hostTarget=null},e.prototype.getClipPath=function(){return this._clipPath},e.prototype.setClipPath=function(e){this._clipPath&&this._clipPath!==e&&this.removeClipPath(),this._attachComponent(e),this._clipPath=e,this.markRedraw()},e.prototype.removeClipPath=function(){var e=this._clipPath;e&&(this._detachComponent(e),this._clipPath=null,this.markRedraw())},e.prototype.getTextContent=function(){return this._textContent},e.prototype.setTextContent=function(e){var t=this._textContent;t!==e&&(t&&t!==e&&this.removeTextContent(),e.innerTransformable=new kr,this._attachComponent(e),this._textContent=e,this.markRedraw())},e.prototype.setTextConfig=function(e){this.textConfig||={},I(this.textConfig,e),this.markRedraw()},e.prototype.removeTextConfig=function(){this.textConfig=null,this.markRedraw()},e.prototype.removeTextContent=function(){var e=this._textContent;e&&(e.innerTransformable=null,this._detachComponent(e),this._textContent=null,this._innerTextDefaultStyle=null,this.markRedraw())},e.prototype.getTextGuideLine=function(){return this._textGuide},e.prototype.setTextGuideLine=function(e){this._textGuide&&this._textGuide!==e&&this.removeTextGuideLine(),this._attachComponent(e),this._textGuide=e,this.markRedraw()},e.prototype.removeTextGuideLine=function(){var e=this._textGuide;e&&(this._detachComponent(e),this._textGuide=null,this.markRedraw())},e.prototype.markRedraw=function(){this.__dirty|=1;var e=this.__zr;e&&(this.__inHover?e.refreshHover():e.refresh()),this.__hostTarget&&this.__hostTarget.markRedraw()},e.prototype.dirty=function(){this.markRedraw()},e.prototype.addSelfToZr=function(e){if(this.__zr!==e){this.__zr=e;var t=this.animators;if(t)for(var n=0;n<t.length;n++)e.animation.addAnimator(t[n]);this._clipPath&&this._clipPath.addSelfToZr(e),this._textContent&&this._textContent.addSelfToZr(e),this._textGuide&&this._textGuide.addSelfToZr(e)}},e.prototype.removeSelfFromZr=function(e){if(this.__zr){this.__zr=null;var t=this.animators;if(t)for(var n=0;n<t.length;n++)e.animation.removeAnimator(t[n]);this._clipPath&&this._clipPath.removeSelfFromZr(e),this._textContent&&this._textContent.removeSelfFromZr(e),this._textGuide&&this._textGuide.removeSelfFromZr(e)}},e.prototype.animate=function(e,t,n){var r=new Oa(e?this[e]:this,t,n);return e&&(r.targetName=e),this.addAnimator(r,e),r},e.prototype.addAnimator=function(e,t){var n=this.__zr,r=this;e.during(function(){r.updateDuringAnimation(t)}).done(function(){var t=r.animators,n=R(t,e);n>=0&&t.splice(n,1)}),this.animators.push(e),n&&n.animation.addAnimator(e),n&&n.wakeUp()},e.prototype.updateDuringAnimation=function(e){this.markRedraw()},e.prototype.stopAnimation=function(e,t){for(var n=this.animators,r=n.length,i=[],a=0;a<r;a++){var o=n[a];!e||e===o.scope?o.stop(t):i.push(o)}return this.animators=i,this},e.prototype.animateTo=function(e,t,n){Ua(this,e,t,n)},e.prototype.animateFrom=function(e,t,n){Ua(this,e,t,n,!0)},e.prototype._transitionState=function(e,t,n,r){for(var i=Ua(this,t,n,r),a=0;a<i.length;a++)i[a].__fromStateTransition=e},e.prototype.getBoundingRect=function(){return null},e.prototype.getPaintRect=function(){return null},e.initDefaultProps=(function(){var t=e.prototype;t.type=`element`,t.name=``,t.ignore=t.silent=t.ignoreHostSilent=t.isGroup=t.draggable=t.dragging=t.ignoreClip=!1,t.__inHover=0,t.__dirty=1;function n(e,n,r,i){Object.defineProperty(t,e,{get:function(){if(!this[n]){var e=this[n]=[];a(this,e)}return this[n]},set:function(e){this[r]=e[0],this[i]=e[1],this[n]=e,a(this,e)}});function a(e,t){Object.defineProperty(t,0,{get:function(){return e[r]},set:function(t){e[r]=t}}),Object.defineProperty(t,1,{get:function(){return e[i]},set:function(t){e[i]=t}})}}Object.defineProperty&&(n(`position`,`_legacyPos`,`x`,`y`),n(`scale`,`_legacyScale`,`scaleX`,`scaleY`),n(`origin`,`_legacyOrigin`,`originX`,`originY`))})(),e}();Se(Ha,ka),Se(Ha,kr);function Ua(e,t,n,r,i){n||={};var a=[];Ya(e,``,e,t,n,r,a,i);var o=a.length,s=!1,c=n.done,l=n.aborted,u=function(){s=!0,o--,o<=0&&(s?c&&c():l&&l())},d=function(){o--,o<=0&&(s?c&&c():l&&l())};o||c&&c(),a.length>0&&n.during&&a[0].during(function(e,t){n.during(t)});for(var f=0;f<a.length;f++){var p=a[f];u&&p.done(u),d&&p.aborted(d),n.force&&p.duration(n.duration),p.start(n.easing)}return a}function Wa(e,t,n){for(var r=0;r<n;r++)e[r]=t[r]}function Ga(e){return Ce(e[0])}function Ka(e,t,n){if(Ce(t[n])){if(Ce(e[n])||(e[n]=[]),Me(t[n])){var r=t[n].length;e[n].length!==r&&(e[n]=new t[n].constructor(r),Wa(e[n],t[n],r))}else{var i=t[n],a=e[n],o=i.length;if(Ga(i))for(var s=i[0].length,c=0;c<o;c++)a[c]?Wa(a[c],i[c],s):a[c]=Array.prototype.slice.call(i[c]);else Wa(a,i,o);a.length=i.length}}else e[n]=t[n]}function qa(e,t){return e===t||Ce(e)&&Ce(t)&&Ja(e,t)}function Ja(e,t){var n=e.length;if(n!==t.length)return!1;for(var r=0;r<n;r++)if(e[r]!==t[r])return!1;return!0}function Ya(e,t,n,r,i,a,o,s){for(var c=V(r),l=i.duration,u=i.delay,d=i.additive,f=i.setToFinal,p=!K(a),m=e.animators,h=[],g=0;g<c.length;g++){var _=c[g],v=r[_];if(v!=null&&n[_]!=null&&(p||a[_])){if(K(v)&&!Ce(v)&&!Pe(v)){if(t){s||(n[_]=v,e.updateDuringAnimation(t));continue}Ya(e,_,n[_],v,i,a&&a[_],o,s)}else h.push(_)}else s||(n[_]=v,e.updateDuringAnimation(t),h.push(_))}var y=h.length;if(!d&&y)for(var b=0;b<m.length;b++){var x=m[b];if(x.targetName===t&&x.stopTracks(h)){var S=R(m,x);m.splice(S,1)}}if(i.force||(h=Te(h,function(e){return!qa(r[e],n[e])}),y=h.length),y>0||i.force&&!o.length){var C=void 0,w=void 0,T=void 0;if(s){w={},f&&(C={});for(var b=0;b<y;b++){var _=h[b];w[_]=n[_],f?C[_]=r[_]:n[_]=r[_]}}else if(f){T={};for(var b=0;b<y;b++){var _=h[b];T[_]=ma(n[_]),Ka(n,r,_)}}var x=new Oa(n,!1,!1,d?Te(m,function(e){return e.targetName===t}):null);x.targetName=t,i.scope&&(x.scope=i.scope),f&&C&&x.whenWithKeys(0,C,h),T&&x.whenWithKeys(0,T,h),x.whenWithKeys(l??500,s?w:r,h).delay(u||0),e.addAnimator(x,t),o.push(x)}}function Xa(e,t,n,r){return!(n&&n.hoverLayer||r)||Za(e)||t&&Za(t)?0:1}function Za(e){return e.type===`text`||e.type===`tspan`}function Qa(e,t,n){return!t&&!e.__inHover&&n&&n.duration>0}var $a=`__zr_style_`+Math.round(Math.random()*10),eo={shadowBlur:0,shadowOffsetX:0,shadowOffsetY:0,shadowColor:`#000`,opacity:1,blend:`source-over`},to={style:{shadowBlur:!0,shadowOffsetX:!0,shadowOffsetY:!0,shadowColor:!0,opacity:!0}};eo[$a]=!0;var no=[`z`,`z2`,`invisible`],ro=[`invisible`],io=function(e){D(t,e);function t(t){return e.call(this,t)||this}return t.prototype._init=function(t){for(var n=V(t),r=0;r<n.length;r++){var i=n[r];i===`style`?this.useStyle(t[i]):e.prototype.attrKV.call(this,i,t[i])}this.style||this.useStyle({})},t.prototype.beforeBrush=function(e){},t.prototype.afterBrush=function(){},t.prototype.innerBeforeBrush=function(){},t.prototype.innerAfterBrush=function(){},t.prototype.shouldBePainted=function(e,t,n,r){var i=this.transform;if(this.ignore||this.invisible||this.style.opacity===0||this.culling&&so(this,e,t)||i&&!i[0]&&!i[3])return!1;if(n&&this.__clipPaths&&this.__clipPaths.length){for(var a=0;a<this.__clipPaths.length;++a)if(this.__clipPaths[a].isZeroArea())return!1}if(r&&this.parent)for(var o=this.parent;o;){if(o.ignore)return!1;o=o.parent}return!0},t.prototype.contain=function(e,t){return this.rectContain(e,t)},t.prototype.traverse=function(e,t){e.call(t,this)},t.prototype.rectContain=function(e,t){var n=this.transformCoordToLocal(e,t);return this.getBoundingRect().contain(n[0],n[1])},t.prototype.getPaintRect=function(){var e=this._paintRect;if(!this._paintRect||this.__dirty){var t=this.transform,n=this.getBoundingRect(),r=this.style,i=r.shadowBlur||0,a=r.shadowOffsetX||0,o=r.shadowOffsetY||0;e=this._paintRect||=new X(0,0,0,0),t?X.applyTransform(e,n,t):e.copy(n),(i||a||o)&&(e.width+=i*2+Math.abs(a),e.height+=i*2+Math.abs(o),e.x=Math.min(e.x,e.x+a-i),e.y=Math.min(e.y,e.y+o-i));var s=this.dirtyRectTolerance;e.isZero()||(e.x=Math.floor(e.x-s),e.y=Math.floor(e.y-s),e.width=Math.ceil(e.width+1+s*2),e.height=Math.ceil(e.height+1+s*2))}return e},t.prototype.setPrevPaintRect=function(e){e?(this._prevPaintRect=this._prevPaintRect||new X(0,0,0,0),this._prevPaintRect.copy(e)):this._prevPaintRect=null},t.prototype.getPrevPaintRect=function(){return this._prevPaintRect},t.prototype.animateStyle=function(e){return this.animate(`style`,e)},t.prototype.updateDuringAnimation=function(e){e===`style`?this.dirtyStyle():this.markRedraw()},t.prototype.attrKV=function(t,n){t===`style`?this.style?this.setStyle(n):this.useStyle(n):e.prototype.attrKV.call(this,t,n)},t.prototype.setStyle=function(e,t){return typeof e==`string`?this.style[e]=t:I(this.style,e),this.dirtyStyle(),this},t.prototype.dirtyStyle=function(e){e||this.markRedraw(),this.__dirty|=2,this._rect&&=null},t.prototype.dirty=function(){this.dirtyStyle()},t.prototype.styleChanged=function(){return!!(this.__dirty&2)},t.prototype.styleUpdated=function(){this.__dirty&=-3},t.prototype.createStyle=function(e){return Qe(eo,e)},t.prototype.useStyle=function(e){e[$a]||(e=this.createStyle(e)),this.style=e,this.dirtyStyle()},t.prototype._useHoverStyle=function(e){this.__hoverStyle=e},t.prototype.isStyleObject=function(e){return e[$a]},t.prototype._innerSaveToNormal=function(t){e.prototype._innerSaveToNormal.call(this,t);var n=this._normalState;t.style&&!n.style&&(n.style=this._mergeStyle(this.createStyle(),this.style)),this._savePrimaryToNormal(t,n,no)},t.prototype._applyStateObj=function(t,n,r,i,a,o){e.prototype._applyStateObj.call(this,t,n,r,i,a,o);var s=!(n&&i),c=this.__inHover===1,l;if(n&&n.style?a?i?l=n.style:(l=this._mergeStyle(this.createStyle(),r.style),this._mergeStyle(l,n.style)):(l=this._mergeStyle(this.createStyle(),i?this.style:r.style),this._mergeStyle(l,n.style)):s&&(l=r.style),l){if(a){var u=this.style;if(this.style=this.createStyle(s?{}:u),s)for(var d=V(u),f=0;f<d.length;f++){var p=d[f];p in l&&(l[p]=l[p],this.style[p]=u[p])}for(var m=V(l),f=0;f<m.length;f++){var p=m[f];this.style[p]=this.style[p]}this._transitionState(t,{style:l},o,this.getAnimationStyleProps())}else c?this._useHoverStyle(l):this.useStyle(l)}if(!c)for(var h=this.__inHover?ro:no,f=0;f<h.length;f++){var p=h[f];n&&n[p]!=null?this[p]=n[p]:s&&r[p]!=null&&(this[p]=r[p])}},t.prototype._mergeStates=function(t){for(var n=e.prototype._mergeStates.call(this,t),r,i=0;i<t.length;i++){var a=t[i];a.style&&(r||={},this._mergeStyle(r,a.style))}return r&&(n.style=r),n},t.prototype._mergeStyle=function(e,t){return I(e,t),e},t.prototype.getAnimationStyleProps=function(){return to},t.initDefaultProps=(function(){var e=t.prototype;e.type=`displayable`,e.invisible=!1,e.z=0,e.z2=0,e.zlevel=0,e.culling=!1,e.cursor=`pointer`,e.rectHover=!1,e.incremental=0,e._rect=null,e.dirtyRectTolerance=0,e.__dirty=3})(),t}(Ha),ao=new X(0,0,0,0),oo=new X(0,0,0,0);function so(e,t,n){return ao.copy(e.getBoundingRect()),e.transform&&ao.applyTransform(e.transform),oo.width=t,oo.height=n,!ao.intersect(oo)}var co=Math.min,lo=Math.max,uo=Math.sin,fo=Math.cos,po=Math.PI*2,mo=Ht(),ho=Ht(),go=Ht();function _o(e,t,n,r,i,a){i[0]=co(e,n),i[1]=co(t,r),a[0]=lo(e,n),a[1]=lo(t,r)}var vo=[],yo=[];function bo(e,t,n,r,i,a,o,s,c,l){var u=Yr,d=Kr,f=u(e,n,i,o,vo);c[0]=1/0,c[1]=1/0,l[0]=-1/0,l[1]=-1/0;for(var p=0;p<f;p++){var m=d(e,n,i,o,vo[p]);c[0]=co(m,c[0]),l[0]=lo(m,l[0])}f=u(t,r,a,s,yo);for(var p=0;p<f;p++){var h=d(t,r,a,s,yo[p]);c[1]=co(h,c[1]),l[1]=lo(h,l[1])}c[0]=co(e,c[0]),l[0]=lo(e,l[0]),c[0]=co(o,c[0]),l[0]=lo(o,l[0]),c[1]=co(t,c[1]),l[1]=lo(t,l[1]),c[1]=co(s,c[1]),l[1]=lo(s,l[1])}function xo(e,t,n,r,i,a,o,s){var c=ni,l=$r,u=lo(co(c(e,n,i),1),0),d=lo(co(c(t,r,a),1),0),f=l(e,n,i,u),p=l(t,r,a,d);o[0]=co(e,i,f),o[1]=co(t,a,p),s[0]=lo(e,i,f),s[1]=lo(t,a,p)}function So(e,t,n,r,i,a,o,s,c){var l=fn,u=pn,d=Math.abs(i-a);if(d%po<1e-4&&d>1e-4){s[0]=e-n,s[1]=t-r,c[0]=e+n,c[1]=t+r;return}if(mo[0]=fo(i)*n+e,mo[1]=uo(i)*r+t,ho[0]=fo(a)*n+e,ho[1]=uo(a)*r+t,l(s,mo,ho),u(c,mo,ho),i%=po,i<0&&(i+=po),a%=po,a<0&&(a+=po),i>a&&!o?a+=po:i<a&&o&&(i+=po),o){var f=a;a=i,i=f}for(var p=0;p<a;p+=Math.PI/2)p>i&&(go[0]=fo(p)*n+e,go[1]=uo(p)*r+t,l(s,go,s),u(c,go,c))}var Co={M:1,L:2,C:3,Q:4,A:5,Z:6,R:7},wo=[],To=[],Eo=[],Do=[],Oo=[],ko=[],Ao=Math.min,jo=Math.max,Mo=Math.cos,No=Math.sin,Po=Math.abs,Fo=Math.PI,Io=Fo*2,Lo=typeof Float32Array<`u`,Ro=[];function zo(e){return Math.round(e/Fo*1e8)/1e8%2*Fo}function Bo(e,t){var n=zo(e[0]);n<0&&(n+=Io);var r=n-e[0],i=e[1];i+=r,!t&&i-n>=Io?i=n+Io:t&&n-i>=Io?i=n-Io:!t&&n>i?i=n+(Io-zo(n-i)):t&&n<i&&(i=n-(Io-zo(i-n))),e[0]=n,e[1]=i}var Vo=function(){function e(e){this.dpr=1,this._xi=0,this._yi=0,this._x0=0,this._y0=0,this._len=0,e&&(this._saveData=!1),this._saveData&&(this.data=[])}return e.prototype.increaseVersion=function(){this._version++},e.prototype.getVersion=function(){return this._version},e.prototype.setScale=function(e,t,n){n||=0,n>0&&(this._ux=Po(n/ja/e)||0,this._uy=Po(n/ja/t)||0)},e.prototype.setDPR=function(e){this.dpr=e},e.prototype.setContext=function(e){this._ctx=e},e.prototype.getContext=function(){return this._ctx},e.prototype.beginPath=function(){return this._ctx&&this._ctx.beginPath(),this.reset(),this},e.prototype.reset=function(){this._saveData&&(this._len=0),this._pathSegLen&&(this._pathSegLen=null,this._pathLen=0),this._version++},e.prototype.moveTo=function(e,t){return this._drawPendingPt(),this.addData(Co.M,e,t),this._ctx&&this._ctx.moveTo(e,t),this._x0=e,this._y0=t,this._xi=e,this._yi=t,this},e.prototype.lineTo=function(e,t){var n=Po(e-this._xi),r=Po(t-this._yi),i=n>this._ux||r>this._uy;if(this.addData(Co.L,e,t),this._ctx&&i&&this._ctx.lineTo(e,t),i)this._xi=e,this._yi=t,this._pendingPtDist=0;else{var a=n*n+r*r;a>this._pendingPtDist&&(this._pendingPtX=e,this._pendingPtY=t,this._pendingPtDist=a)}return this},e.prototype.bezierCurveTo=function(e,t,n,r,i,a){return this._drawPendingPt(),this.addData(Co.C,e,t,n,r,i,a),this._ctx&&this._ctx.bezierCurveTo(e,t,n,r,i,a),this._xi=i,this._yi=a,this},e.prototype.quadraticCurveTo=function(e,t,n,r){return this._drawPendingPt(),this.addData(Co.Q,e,t,n,r),this._ctx&&this._ctx.quadraticCurveTo(e,t,n,r),this._xi=n,this._yi=r,this},e.prototype.arc=function(e,t,n,r,i,a){this._drawPendingPt(),Ro[0]=r,Ro[1]=i,Bo(Ro,a),r=Ro[0],i=Ro[1];var o=i-r;return this.addData(Co.A,e,t,n,n,r,o,0,+!a),this._ctx&&this._ctx.arc(e,t,n,r,i,a),this._xi=Mo(i)*n+e,this._yi=No(i)*n+t,this},e.prototype.arcTo=function(e,t,n,r,i){return this._drawPendingPt(),this._ctx&&this._ctx.arcTo(e,t,n,r,i),this},e.prototype.rect=function(e,t,n,r){return this._drawPendingPt(),this._ctx&&this._ctx.rect(e,t,n,r),this.addData(Co.R,e,t,n,r),this},e.prototype.closePath=function(){this._drawPendingPt(),this.addData(Co.Z);var e=this._ctx,t=this._x0,n=this._y0;return e&&e.closePath(),this._xi=t,this._yi=n,this},e.prototype.fill=function(e){e&&e.fill(),this.toStatic()},e.prototype.stroke=function(e){e&&e.stroke(),this.toStatic()},e.prototype.len=function(){return this._len},e.prototype.setData=function(e){if(this._saveData){var t=e.length;!(this.data&&this.data.length===t)&&Lo&&(this.data=new Float32Array(t));for(var n=0;n<t;n++)this.data[n]=e[n];this._len=t}},e.prototype.appendPath=function(e){if(this._saveData){e instanceof Array||(e=[e]);for(var t=e.length,n=0,r=this._len,i=0;i<t;i++)n+=e[i].len();var a=this.data;if(Lo&&(a instanceof Float32Array||!a)&&(this.data=new Float32Array(r+n),r>0&&a))for(var o=0;o<r;o++)this.data[o]=a[o];for(var i=0;i<t;i++)for(var s=e[i].data,o=0;o<s.length;o++)this.data[r++]=s[o];this._len=r}},e.prototype.addData=function(e,t,n,r,i,a,o,s,c){if(this._saveData){var l=this.data;this._len+arguments.length>l.length&&(this._expandData(),l=this.data);for(var u=0;u<arguments.length;u++)l[this._len++]=arguments[u]}},e.prototype._drawPendingPt=function(){this._pendingPtDist>0&&(this._ctx&&this._ctx.lineTo(this._pendingPtX,this._pendingPtY),this._pendingPtDist=0)},e.prototype._expandData=function(){if(!(this.data instanceof Array)){for(var e=[],t=0;t<this._len;t++)e[t]=this.data[t];this.data=e}},e.prototype.toStatic=function(){if(this._saveData){this._drawPendingPt();var e=this.data;e instanceof Array&&(e.length=this._len,Lo&&this._len>11&&(this.data=new Float32Array(e)))}},e.prototype.getBoundingRect=function(){Eo[0]=Eo[1]=Oo[0]=Oo[1]=Number.MAX_VALUE,Do[0]=Do[1]=ko[0]=ko[1]=-Number.MAX_VALUE;for(var e=this.data,t=0,n=0,r=0,i=0,a=0;a<this._len;){var o=e[a++],s=a===1;switch(s&&(t=e[a],n=e[a+1],r=t,i=n),o){case Co.M:t=r=e[a++],n=i=e[a++],Oo[0]=r,Oo[1]=i,ko[0]=r,ko[1]=i;break;case Co.L:_o(t,n,e[a],e[a+1],Oo,ko),t=e[a++],n=e[a++];break;case Co.C:bo(t,n,e[a++],e[a++],e[a++],e[a++],e[a],e[a+1],Oo,ko),t=e[a++],n=e[a++];break;case Co.Q:xo(t,n,e[a++],e[a++],e[a],e[a+1],Oo,ko),t=e[a++],n=e[a++];break;case Co.A:var c=e[a++],l=e[a++],u=e[a++],d=e[a++],f=e[a++],p=e[a++]+f;a+=1;var m=!e[a++];s&&(r=Mo(f)*u+c,i=No(f)*d+l),So(c,l,u,d,f,p,m,Oo,ko),t=Mo(p)*u+c,n=No(p)*d+l;break;case Co.R:r=t=e[a++],i=n=e[a++];var h=e[a++],g=e[a++];_o(r,i,r+h,i+g,Oo,ko);break;case Co.Z:t=r,n=i}fn(Eo,Eo,Oo),pn(Do,Do,ko)}return a===0&&(Eo[0]=Eo[1]=Do[0]=Do[1]=0),new X(Eo[0],Eo[1],Do[0]-Eo[0],Do[1]-Eo[1])},e.prototype._calculateLength=function(){var e=this.data,t=this._len,n=this._ux,r=this._uy,i=0,a=0,o=0,s=0;this._pathSegLen||=[];for(var c=this._pathSegLen,l=0,u=0,d=0;d<t;){var f=e[d++],p=d===1;p&&(i=e[d],a=e[d+1],o=i,s=a);var m=-1;switch(f){case Co.M:i=o=e[d++],a=s=e[d++];break;case Co.L:var h=e[d++],g=e[d++],_=h-i,v=g-a;(Po(_)>n||Po(v)>r||d===t-1)&&(m=Math.sqrt(_*_+v*v),i=h,a=g);break;case Co.C:var y=e[d++],b=e[d++],h=e[d++],g=e[d++],x=e[d++],S=e[d++];m=Qr(i,a,y,b,h,g,x,S,10),i=x,a=S;break;case Co.Q:var y=e[d++],b=e[d++],h=e[d++],g=e[d++];m=ai(i,a,y,b,h,g,10),i=h,a=g;break;case Co.A:var C=e[d++],w=e[d++],T=e[d++],E=e[d++],D=e[d++],O=e[d++],k=O+D;d+=1,p&&(o=Mo(D)*T+C,s=No(D)*E+w),m=jo(T,E)*Ao(Io,Math.abs(O)),i=Mo(k)*T+C,a=No(k)*E+w;break;case Co.R:o=i=e[d++],s=a=e[d++];var A=e[d++],j=e[d++];m=A*2+j*2;break;case Co.Z:var _=o-i,v=s-a;m=Math.sqrt(_*_+v*v),i=o,a=s}m>=0&&(c[u++]=m,l+=m)}return this._pathLen=l,l},e.prototype.rebuildPath=function(e,t){var n=this.data,r=this._ux,i=this._uy,a=this._len,o,s,c,l,u,d,f=t<1,p,m,h=0,g=0,_,v=0,y,b;if(!(f&&(this._pathSegLen||this._calculateLength(),p=this._pathSegLen,m=this._pathLen,_=t*m,!_)))lo:for(var x=0;x<a;){var S=n[x++],C=x===1;switch(C&&(c=n[x],l=n[x+1],o=c,s=l),S!==Co.L&&v>0&&(e.lineTo(y,b),v=0),S){case Co.M:o=c=n[x++],s=l=n[x++],e.moveTo(c,l);break;case Co.L:u=n[x++],d=n[x++];var w=Po(u-c),T=Po(d-l);if(w>r||T>i){if(f){var E=p[g++];if(h+E>_){var D=(_-h)/E;e.lineTo(c*(1-D)+u*D,l*(1-D)+d*D);break lo}h+=E}e.lineTo(u,d),c=u,l=d,v=0}else{var O=w*w+T*T;O>v&&(y=u,b=d,v=O)}break;case Co.C:var k=n[x++],A=n[x++],j=n[x++],ee=n[x++],te=n[x++],M=n[x++];if(f){var E=p[g++];if(h+E>_){var D=(_-h)/E;Xr(c,k,j,te,D,wo),Xr(l,A,ee,M,D,To),e.bezierCurveTo(wo[1],To[1],wo[2],To[2],wo[3],To[3]);break lo}h+=E}e.bezierCurveTo(k,A,j,ee,te,M),c=te,l=M;break;case Co.Q:var k=n[x++],A=n[x++],j=n[x++],ee=n[x++];if(f){var E=p[g++];if(h+E>_){var D=(_-h)/E;ri(c,k,j,D,wo),ri(l,A,ee,D,To),e.quadraticCurveTo(wo[1],To[1],wo[2],To[2]);break lo}h+=E}e.quadraticCurveTo(k,A,j,ee),c=j,l=ee;break;case Co.A:var ne=n[x++],re=n[x++],ie=n[x++],ae=n[x++],oe=n[x++],se=n[x++],ce=n[x++],le=!n[x++],ue=ie>ae?ie:ae,de=Po(ie-ae)>.001,fe=oe+se,N=!1;if(f){var E=p[g++];h+E>_&&(fe=oe+se*(_-h)/E,N=!0),h+=E}if(de&&e.ellipse?e.ellipse(ne,re,ie,ae,ce,oe,fe,le):e.arc(ne,re,ue,oe,fe,le),N)break lo;C&&(o=Mo(oe)*ie+ne,s=No(oe)*ae+re),c=Mo(fe)*ie+ne,l=No(fe)*ae+re;break;case Co.R:o=c=n[x],s=l=n[x+1],u=n[x++],d=n[x++];var pe=n[x++],me=n[x++];if(f){var E=p[g++];if(h+E>_){var he=_-h;e.moveTo(u,d),e.lineTo(u+Ao(he,pe),d),he-=pe,he>0&&e.lineTo(u+pe,d+Ao(he,me)),he-=me,he>0&&e.lineTo(u+jo(pe-he,0),d+me),he-=pe,he>0&&e.lineTo(u,d+jo(me-he,0));break lo}h+=E}e.rect(u,d,pe,me);break;case Co.Z:if(f){var E=p[g++];if(h+E>_){var D=(_-h)/E;e.lineTo(c*(1-D)+o*D,l*(1-D)+s*D);break lo}h+=E}e.closePath(),c=o,l=s}}},e.prototype.clone=function(){var t=new e,n=this.data;return t.data=n.slice?n.slice():Array.prototype.slice.call(n),t._len=this._len,t},e.prototype.canSave=function(){return!!this._saveData},e.CMD=Co,e.initDefaultProps=(function(){var t=e.prototype;t._saveData=!0,t._ux=0,t._uy=0,t._pendingPtDist=0,t._version=0})(),e}();function Ho(e,t,n,r,i,a,o){if(i===0)return!1;var s=i,c=0,l=e;if(o>t+s&&o>r+s||o<t-s&&o<r-s||a>e+s&&a>n+s||a<e-s&&a<n-s)return!1;if(e!==n)c=(t-r)/(e-n),l=(e*r-n*t)/(e-n);else return Math.abs(a-e)<=s/2;var u=c*a-o+l;return u*u/(c*c+1)<=s/2*s/2}function Uo(e,t,n,r,i,a,o,s,c,l,u){if(c===0)return!1;var d=c;return u>t+d&&u>r+d&&u>a+d&&u>s+d||u<t-d&&u<r-d&&u<a-d&&u<s-d||l>e+d&&l>n+d&&l>i+d&&l>o+d||l<e-d&&l<n-d&&l<i-d&&l<o-d?!1:Zr(e,t,n,r,i,a,o,s,l,u,null)<=d/2}function Wo(e,t,n,r,i,a,o,s,c){if(o===0)return!1;var l=o;return c>t+l&&c>r+l&&c>a+l||c<t-l&&c<r-l&&c<a-l||s>e+l&&s>n+l&&s>i+l||s<e-l&&s<n-l&&s<i-l?!1:ii(e,t,n,r,i,a,s,c,null)<=l/2}var Go=Math.PI*2;function Ko(e){return e%=Go,e<0&&(e+=Go),e}var qo=Math.PI*2;function Jo(e,t,n,r,i,a,o,s,c){if(o===0)return!1;var l=o;s-=e,c-=t;var u=Math.sqrt(s*s+c*c);if(u-l>n||u+l<n)return!1;if(Math.abs(r-i)%qo<1e-4)return!0;if(a){var d=r;r=Ko(i),i=Ko(d)}else r=Ko(r),i=Ko(i);r>i&&(i+=qo);var f=Math.atan2(c,s);return f<0&&(f+=qo),f>=r&&f<=i||f+qo>=r&&f+qo<=i}function Yo(e,t,n,r,i,a){if(a>t&&a>r||a<t&&a<r||r===t)return 0;var o=(a-t)/(r-t),s=r<t?1:-1;(o===1||o===0)&&(s=r<t?.5:-.5);var c=o*(n-e)+e;return c===i?1/0:c>i?s:0}var Xo=Vo.CMD,Zo=Math.PI*2,Qo=1e-4;function $o(e,t){return Math.abs(e-t)<Qo}var es=[-1,-1,-1],ts=[-1,-1];function ns(){var e=ts[0];ts[0]=ts[1],ts[1]=e}function rs(e,t,n,r,i,a,o,s,c,l){if(l>t&&l>r&&l>a&&l>s||l<t&&l<r&&l<a&&l<s)return 0;var u=Jr(t,r,a,s,l,es);if(u===0)return 0;for(var d=0,f=-1,p=void 0,m=void 0,h=0;h<u;h++){var g=es[h],_=g===0||g===1?.5:1;Kr(e,n,i,o,g)<c||(f<0&&(f=Yr(t,r,a,s,ts),ts[1]<ts[0]&&f>1&&ns(),p=Kr(t,r,a,s,ts[0]),f>1&&(m=Kr(t,r,a,s,ts[1]))),f===2?g<ts[0]?d+=p<t?_:-_:g<ts[1]?d+=m<p?_:-_:d+=s<m?_:-_:g<ts[0]?d+=p<t?_:-_:d+=s<p?_:-_)}return d}function is(e,t,n,r,i,a,o,s){if(s>t&&s>r&&s>a||s<t&&s<r&&s<a)return 0;var c=ti(t,r,a,s,es);if(c===0)return 0;var l=ni(t,r,a);if(l>=0&&l<=1){for(var u=0,d=$r(t,r,a,l),f=0;f<c;f++){var p=es[f]===0||es[f]===1?.5:1,m=$r(e,n,i,es[f]);m<o||(es[f]<l?u+=d<t?p:-p:u+=a<d?p:-p)}return u}var p=es[0]===0||es[0]===1?.5:1,m=$r(e,n,i,es[0]);return m<o?0:a<t?p:-p}function as(e,t,n,r,i,a,o,s){if(s-=t,s>n||s<-n)return 0;var c=Math.sqrt(n*n-s*s);es[0]=-c,es[1]=c;var l=Math.abs(r-i);if(l<1e-4)return 0;if(l>=Zo-1e-4){r=0,i=Zo;var u=a?1:-1;return o>=es[0]+e&&o<=es[1]+e?u:0}if(r>i){var d=r;r=i,i=d}r<0&&(r+=Zo,i+=Zo);for(var f=0,p=0;p<2;p++){var m=es[p];if(m+e>o){var h=Math.atan2(s,m),u=a?1:-1;h<0&&(h=Zo+h),(h>=r&&h<=i||h+Zo>=r&&h+Zo<=i)&&(h>Math.PI/2&&h<Math.PI*1.5&&(u=-u),f+=u)}}return f}function os(e,t,n,r,i){for(var a=e.data,o=e.len(),s=0,c=0,l=0,u=0,d=0,f,p,m=0;m<o;){var h=a[m++],g=m===1;switch(h===Xo.M&&m>1&&(n||(s+=Yo(c,l,u,d,r,i))),g&&(c=a[m],l=a[m+1],u=c,d=l),h){case Xo.M:u=a[m++],d=a[m++],c=u,l=d;break;case Xo.L:if(n){if(Ho(c,l,a[m],a[m+1],t,r,i))return!0}else s+=Yo(c,l,a[m],a[m+1],r,i)||0;c=a[m++],l=a[m++];break;case Xo.C:if(n){if(Uo(c,l,a[m++],a[m++],a[m++],a[m++],a[m],a[m+1],t,r,i))return!0}else s+=rs(c,l,a[m++],a[m++],a[m++],a[m++],a[m],a[m+1],r,i)||0;c=a[m++],l=a[m++];break;case Xo.Q:if(n){if(Wo(c,l,a[m++],a[m++],a[m],a[m+1],t,r,i))return!0}else s+=is(c,l,a[m++],a[m++],a[m],a[m+1],r,i)||0;c=a[m++],l=a[m++];break;case Xo.A:var _=a[m++],v=a[m++],y=a[m++],b=a[m++],x=a[m++],S=a[m++];m+=1;var C=!!(1-a[m++]);f=Math.cos(x)*y+_,p=Math.sin(x)*b+v,g?(u=f,d=p):s+=Yo(c,l,f,p,r,i);var w=(r-_)*b/y+_;if(n){if(Jo(_,v,b,x,x+S,C,t,w,i))return!0}else s+=as(_,v,b,x,x+S,C,w,i);c=Math.cos(x+S)*y+_,l=Math.sin(x+S)*b+v;break;case Xo.R:u=c=a[m++],d=l=a[m++];var T=a[m++],E=a[m++];if(f=u+T,p=d+E,n){if(Ho(u,d,f,d,t,r,i)||Ho(f,d,f,p,t,r,i)||Ho(f,p,u,p,t,r,i)||Ho(u,p,u,d,t,r,i))return!0}else s+=Yo(f,d,f,p,r,i),s+=Yo(u,p,u,d,r,i);break;case Xo.Z:if(n){if(Ho(c,l,u,d,t,r,i))return!0}else s+=Yo(c,l,u,d,r,i);c=u,l=d}}return!n&&!$o(l,d)&&(s+=Yo(c,l,u,d,r,i)||0),s!==0}function ss(e,t,n){return os(e,0,!1,t,n)}function cs(e,t,n,r){return os(e,t,!0,n,r)}var ls=L({fill:`#000`,stroke:null,strokePercent:1,fillOpacity:1,strokeOpacity:1,lineDashOffset:0,lineWidth:1,lineCap:`butt`,miterLimit:10,strokeNoScale:!1,strokeFirst:!1},eo),us={style:L({fill:!0,stroke:!0,strokePercent:!0,fillOpacity:!0,strokeOpacity:!0,lineDashOffset:!0,lineWidth:!0,miterLimit:!0},to.style)},ds=Mr.concat([`invisible`,`culling`,`z`,`z2`,`zlevel`,`parent`]),fs=function(e){D(t,e);function t(t){return e.call(this,t)||this}return t.prototype.update=function(){var n=this;e.prototype.update.call(this);var r=this.style;if(r.decal){var i=this._decalEl=this._decalEl||new t;i.buildPath===t.prototype.buildPath&&(i.buildPath=function(e){n.buildPath(e,n.shape)}),i.silent=!0;var a=i.style;for(var o in r)a[o]!==r[o]&&(a[o]=r[o]);a.fill=r.fill?r.decal:null,a.decal=null,a.shadowColor=null,r.strokeFirst&&(a.stroke=null);for(var s=0;s<ds.length;++s)i[ds[s]]=this[ds[s]];i.__dirty|=1}else this._decalEl&&=null},t.prototype.getDecalElement=function(){return this._decalEl},t.prototype._init=function(t){var n=V(t);this.shape=this.getDefaultShape();var r=this.getDefaultStyle();r&&this.useStyle(r);for(var i=0;i<n.length;i++){var a=n[i],o=t[a];a===`style`?this.style?I(this.style,o):this.useStyle(o):a===`shape`?I(this.shape,o):e.prototype.attrKV.call(this,a,o)}this.style||this.useStyle({})},t.prototype.getDefaultStyle=function(){return null},t.prototype.getDefaultShape=function(){return{}},t.prototype.canBeInsideText=function(){return this.hasFill()},t.prototype.getInsideTextFill=function(){var e=this.style.fill;if(e!==`none`){if(G(e)){var t=Fi(e,0);return t>.5?Na:t>.2?Fa:Pa}if(e)return Pa}return Na},t.prototype.getInsideTextStroke=function(e){var t=this.style.fill;if(G(t)){var n=this.__zr;if(!!(n&&n.isDarkMode())==Fi(e,0)<.4)return t}},t.prototype.buildPath=function(e,t,n){},t.prototype.pathUpdated=function(){this.__dirty&=-5},t.prototype.getUpdatedPathProxy=function(e){return!this.path&&this.createPathProxy(),this.path.beginPath(),this.buildPath(this.path,this.shape,e),this.path},t.prototype.createPathProxy=function(){this.path=new Vo(!1)},t.prototype.hasStroke=function(){var e=this.style,t=e.stroke;return!(t==null||t===`none`||!(e.lineWidth>0))},t.prototype.hasFill=function(){var e=this.style.fill;return e!=null&&e!==`none`},t.prototype.getBoundingRect=function(){var e=this._rect,t=this.style,n=!e;if(n){var r=!1;this.path||(r=!0,this.createPathProxy());var i=this.path;(r||this.__dirty&4)&&(i.beginPath(),this.buildPath(i,this.shape,!1),this.pathUpdated()),e=i.getBoundingRect()}if(this._rect=e,this.hasStroke()&&this.path&&this.path.len()>0){var a=this._rectStroke||=e.clone();if(this.__dirty||n){a.copy(e);var o=t.strokeNoScale?this.getLineScale():1,s=t.lineWidth;if(!this.hasFill()){var c=this.strokeContainThreshold;s=Math.max(s,c??4)}o>1e-10&&(a.width+=s/o,a.height+=s/o,a.x-=s/o/2,a.y-=s/o/2)}return a}return e},t.prototype.contain=function(e,t){var n=this.transformCoordToLocal(e,t),r=this.getBoundingRect(),i=this.style;if(e=n[0],t=n[1],r.contain(e,t)){var a=this.path;if(this.hasStroke()){var o=i.lineWidth,s=i.strokeNoScale?this.getLineScale():1;if(s>1e-10&&(this.hasFill()||(o=Math.max(o,this.strokeContainThreshold)),cs(a,o/s,e,t)))return!0}if(this.hasFill())return ss(a,e,t)}return!1},t.prototype.dirtyShape=function(){this.__dirty|=4,this._rect&&=null,this._decalEl&&this._decalEl.dirtyShape(),this.markRedraw()},t.prototype.dirty=function(){this.dirtyStyle(),this.dirtyShape()},t.prototype.animateShape=function(e){return this.animate(`shape`,e)},t.prototype.updateDuringAnimation=function(e){e===`style`?this.dirtyStyle():e===`shape`?this.dirtyShape():this.markRedraw()},t.prototype.attrKV=function(t,n){t===`shape`?this.setShape(n):e.prototype.attrKV.call(this,t,n)},t.prototype.setShape=function(e,t){var n=this.shape;return n||=this.shape={},typeof e==`string`?n[e]=t:I(n,e),this.dirtyShape(),this},t.prototype.shapeChanged=function(){return!!(this.__dirty&4)},t.prototype.createStyle=function(e){return Qe(ls,e)},t.prototype._innerSaveToNormal=function(t){e.prototype._innerSaveToNormal.call(this,t);var n=this._normalState;t.shape&&!n.shape&&(n.shape=I({},this.shape))},t.prototype._applyStateObj=function(t,n,r,i,a,o){if(e.prototype._applyStateObj.call(this,t,n,r,i,a,o),this.__inHover!==1){var s=!(n&&i),c;if(n&&n.shape?a?i?c=n.shape:(c=I({},r.shape),I(c,n.shape)):(c=I({},i?this.shape:r.shape),I(c,n.shape)):s&&(c=r.shape),c){if(a){this.shape=I({},this.shape);for(var l={},u=V(c),d=0;d<u.length;d++){var f=u[d];typeof c[f]==`object`?this.shape[f]=c[f]:l[f]=c[f]}this._transitionState(t,{shape:l},o)}else this.shape=c,this.dirtyShape()}}},t.prototype._mergeStates=function(t){for(var n=e.prototype._mergeStates.call(this,t),r,i=0;i<t.length;i++){var a=t[i];a.shape&&(r||={},this._mergeStyle(r,a.shape))}return r&&(n.shape=r),n},t.prototype.getAnimationStyleProps=function(){return us},t.prototype.isZeroArea=function(){return!1},t.extend=function(e){var n=function(t){D(n,t);function n(n){var r=t.call(this,n)||this;return e.init&&e.init.call(r,n),r}return n.prototype.getDefaultStyle=function(){return P(e.style)},n.prototype.getDefaultShape=function(){return P(e.shape)},n}(t);for(var r in e)typeof e[r]==`function`&&(n.prototype[r]=e[r]);return n},t.initDefaultProps=(function(){var e=t.prototype;e.type=`path`,e.strokeContainThreshold=5,e.segmentIgnoreThreshold=0,e.subPixelOptimize=!1,e.autoBatch=!1,e.__dirty=7})(),t}(io),ps=L({strokeFirst:!0,font:O,x:0,y:0,textAlign:`left`,textBaseline:`top`,miterLimit:2},ls),ms=function(e){D(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.hasStroke=function(){return xr(this.style)},t.prototype.hasFill=function(){var e=this.style.fill;return e!=null&&e!==`none`},t.prototype.createStyle=function(e){return Qe(ps,e)},t.prototype.setBoundingRect=function(e){this._rect=e},t.prototype.getBoundingRect=function(){return this._rect||=yr(this.style),this._rect},t.initDefaultProps=(function(){var e=t.prototype;e.dirtyRectTolerance=10})(),t}(io);ms.prototype.type=`tspan`;var hs=L({x:0,y:0},eo),gs={style:L({x:!0,y:!0,width:!0,height:!0,sx:!0,sy:!0,sWidth:!0,sHeight:!0},to.style)};function _s(e){return!!(e&&typeof e!=`string`&&e.width&&e.height)}var vs=function(e){D(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.createStyle=function(e){return Qe(hs,e)},t.prototype._getSize=function(e){var t=this.style,n=t[e];if(n!=null)return n;var r=_s(t.image)?t.image:this.__image;if(!r)return 0;var i=e===`width`?`height`:`width`,a=t[i];return a==null?r[e]:r[e]/r[i]*a},t.prototype.getWidth=function(){return this._getSize(`width`)},t.prototype.getHeight=function(){return this._getSize(`height`)},t.prototype.getAnimationStyleProps=function(){return gs},t.prototype.getBoundingRect=function(){var e=this.style;return this._rect||=new X(e.x||0,e.y||0,this.getWidth(),this.getHeight()),this._rect},t}(io);vs.prototype.type=`image`;function ys(e,t){var n=t.x,r=t.y,i=t.width,a=t.height,o=t.r,s,c,l,u;i<0&&(n+=i,i=-i),a<0&&(r+=a,a=-a),typeof o==`number`?s=c=l=u=o:o instanceof Array?o.length===1?s=c=l=u=o[0]:o.length===2?(s=l=o[0],c=u=o[1]):o.length===3?(s=o[0],c=u=o[1],l=o[2]):(s=o[0],c=o[1],l=o[2],u=o[3]):s=c=l=u=0;var d;s+c>i&&(d=s+c,s*=i/d,c*=i/d),l+u>i&&(d=l+u,l*=i/d,u*=i/d),c+l>a&&(d=c+l,c*=a/d,l*=a/d),s+u>a&&(d=s+u,s*=a/d,u*=a/d),e.moveTo(n+s,r),e.lineTo(n+i-c,r),c!==0&&e.arc(n+i-c,r+c,c,-Math.PI/2,0),e.lineTo(n+i,r+a-l),l!==0&&e.arc(n+i-l,r+a-l,l,0,Math.PI/2),e.lineTo(n+u,r+a),u!==0&&e.arc(n+u,r+a-u,u,Math.PI/2,Math.PI),e.lineTo(n,r+s),s!==0&&e.arc(n+s,r+s,s,Math.PI,Math.PI*1.5),e.closePath()}var bs=Math.round;function xs(e,t,n){if(t){var r=t.x1,i=t.x2,a=t.y1,o=t.y2;e.x1=r,e.x2=i,e.y1=a,e.y2=o;var s=n&&n.lineWidth;return s?(bs(r*2)===bs(i*2)&&(e.x1=e.x2=Cs(r,s,!0)),bs(a*2)===bs(o*2)&&(e.y1=e.y2=Cs(a,s,!0)),e):e}}function Ss(e,t,n){if(t){var r=t.x,i=t.y,a=t.width,o=t.height;e.x=r,e.y=i,e.width=a,e.height=o;var s=n&&n.lineWidth;return s?(e.x=Cs(r,s,!0),e.y=Cs(i,s,!0),e.width=Math.max(Cs(r+a,s,!1)-e.x,a===0?0:1),e.height=Math.max(Cs(i+o,s,!1)-e.y,o===0?0:1),e):e}}function Cs(e,t,n){if(!t)return e;var r=bs(e*2);return(r+bs(t))%2==0?r/2:(r+(n?1:-1))/2}var ws=function(){function e(){this.x=0,this.y=0,this.width=0,this.height=0}return e}(),Ts={},Es=function(e){D(t,e);function t(t){return e.call(this,t)||this}return t.prototype.getDefaultShape=function(){return new ws},t.prototype.buildPath=function(e,t){var n,r,i,a;if(this.subPixelOptimize){var o=Ss(Ts,t,this.style);n=o.x,r=o.y,i=o.width,a=o.height,o.r=t.r,t=o}else n=t.x,r=t.y,i=t.width,a=t.height;t.r?ys(e,t):e.rect(n,r,i,a)},t.prototype.isZeroArea=function(){return!this.shape.width||!this.shape.height},t}(fs);Es.prototype.type=`rect`;var Ds={fill:`#000`},Os=2,ks={},As={style:L({fill:!0,stroke:!0,fillOpacity:!0,strokeOpacity:!0,lineWidth:!0,fontSize:!0,lineHeight:!0,width:!0,height:!0,textShadowColor:!0,textShadowBlur:!0,textShadowOffsetX:!0,textShadowOffsetY:!0,backgroundColor:!0,padding:!0,borderColor:!0,borderWidth:!0,borderRadius:!0},to.style)},js=function(e){D(t,e);function t(t){var n=e.call(this)||this;return n.type=`text`,n._children=[],n._defaultStyle=Ds,n.attr(t),n}return t.prototype.childrenRef=function(){return this._children},t.prototype.update=function(){e.prototype.update.call(this),this.styleChanged()&&this._updateSubTexts();for(var t=0;t<this._children.length;t++){var n=this._children[t];n.zlevel=this.zlevel,n.z=this.z,n.z2=this.z2,n.culling=this.culling,n.cursor=this.cursor,n.invisible=this.invisible}},t.prototype.updateTransform=function(){var t=this.innerTransformable;t?(t.updateTransform(),t.transform&&(this.transform=t.transform)):e.prototype.updateTransform.call(this)},t.prototype.getLocalTransform=function(t){var n=this.innerTransformable;return n?n.getLocalTransform(t):e.prototype.getLocalTransform.call(this,t)},t.prototype.getComputedTransform=function(){return this.__hostTarget&&(this.__hostTarget.getComputedTransform(),this.__hostTarget.updateInnerText(!0)),e.prototype.getComputedTransform.call(this)},t.prototype._updateSubTexts=function(){this._childCursor=0,Rs(this.style),this.style.rich?this._updateRichTexts():this._updatePlainTexts(),this._children.length=this._childCursor,this.styleUpdated()},t.prototype.addSelfToZr=function(t){e.prototype.addSelfToZr.call(this,t);for(var n=0;n<this._children.length;n++)this._children[n].__zr=t},t.prototype.removeSelfFromZr=function(t){e.prototype.removeSelfFromZr.call(this,t);for(var n=0;n<this._children.length;n++)this._children[n].__zr=null},t.prototype.getBoundingRect=function(){if(this.styleChanged()&&this._updateSubTexts(),!this._rect){for(var e=new X(0,0,0,0),t=this._children,n=[],r=null,i=0;i<t.length;i++){var a=t[i],o=a.getBoundingRect(),s=a.getLocalTransform(n);s?(e.copy(o),e.applyTransform(s),r||=e.clone(),r.union(e)):(r||=o.clone(),r.union(o))}this._rect=r||e}return this._rect},t.prototype.setDefaultTextStyle=function(e){this._defaultStyle=e||Ds},t.prototype.setTextContent=function(e){},t.prototype._mergeStyle=function(e,t){if(!t)return e;var n=t.rich,r=e.rich||n&&{};return I(e,t),n&&r?(this._mergeRich(r,n),e.rich=r):r&&(e.rich=r),e},t.prototype._mergeRich=function(e,t){for(var n=V(t),r=0;r<n.length;r++){var i=n[r];e[i]=e[i]||{},I(e[i],t[i])}},t.prototype.getAnimationStyleProps=function(){return As},t.prototype._getOrCreateChild=function(e){var t=this._children[this._childCursor];return(!t||!(t instanceof e))&&(t=new e),this._children[this._childCursor++]=t,t.__zr=this.__zr,t.parent=this,t},t.prototype._updatePlainTexts=function(){var e=this.style,t=e.font||`12px sans-serif`,n=e.padding,r=this._defaultStyle,i=e.x||0,a=e.y||0,o=e.align||r.align||`left`,s=e.verticalAlign||r.verticalAlign||`top`;hr(ks,r.overflowRect,i,a,o,s),i=ks.baseX,a=ks.baseY;var c=ar(Us(e),e,ks.outerWidth,ks.outerHeight),l=Ws(e),u=!!e.backgroundColor,d=c.outerHeight,f=c.outerWidth,p=c.lines,m=c.lineHeight;this.isTruncated=!!c.isTruncated;var h=i,g=Yn(a,c.contentHeight,s);if(l||n){var _=Jn(i,f,o),v=Yn(a,d,s);l&&this._renderBackground(e,e,_,v,f,d)}g+=m/2,n&&(h=Hs(i,o,n),s===`top`?g+=n[0]:s===`bottom`&&(g-=n[2]));for(var y=0,b=!1,x=!1,S=Vs(`fill`in e?e.fill:(x=!0,r.fill)),C=Bs(`stroke`in e?e.stroke:!u&&(!r.autoStroke||x)?(y=Os,b=!0,r.stroke):null),w=e.textShadowBlur>0,T=0;T<p.length;T++){var E=this._getOrCreateChild(ms),D=E.createStyle();E.useStyle(D),D.text=p[T],D.x=h,D.y=g,o&&(D.textAlign=o),D.textBaseline=`middle`,D.opacity=e.opacity,D.strokeFirst=!0,w&&(D.shadowBlur=e.textShadowBlur||0,D.shadowColor=e.textShadowColor||`transparent`,D.shadowOffsetX=e.textShadowOffsetX||0,D.shadowOffsetY=e.textShadowOffsetY||0),D.stroke=C,D.fill=S,C&&(D.lineWidth=e.lineWidth||y,D.lineDash=e.lineDash,D.lineDashOffset=e.lineDashOffset||0),D.font=t,Is(D,e),g+=m,E.setBoundingRect(br(D,c.contentWidth,c.calculatedLineHeight,b?0:null))}},t.prototype._updateRichTexts=function(){var e=this.style,t=this._defaultStyle,n=e.align||t.align,r=e.verticalAlign||t.verticalAlign,i=e.x||0,a=e.y||0;hr(ks,t.overflowRect,i,a,n,r),i=ks.baseX,a=ks.baseY;var o=lr(Us(e),e,ks.outerWidth,ks.outerHeight,n),s=o.width,c=o.outerWidth,l=o.outerHeight,u=e.padding;this.isTruncated=!!o.isTruncated;var d=Jn(i,c,n),f=Yn(a,l,r),p=d,m=f;u&&(p+=u[3],m+=u[0]);var h=p+s;Ws(e)&&this._renderBackground(e,e,d,f,c,l);for(var g=!!e.backgroundColor,_=0;_<o.lines.length;_++){for(var v=o.lines[_],y=v.tokens,b=y.length,x=v.lineHeight,S=v.width,C=0,w=p,T=h,E=b-1,D=void 0;C<b&&(D=y[C],!D.align||D.align===`left`);)this._placeToken(D,e,x,m,w,`left`,g),S-=D.width,w+=D.width,C++;for(;E>=0&&(D=y[E],D.align===`right`);)this._placeToken(D,e,x,m,T,`right`,g),S-=D.width,T-=D.width,E--;for(w+=(s-(w-p)-(h-T)-S)/2;C<=E;)D=y[C],this._placeToken(D,e,x,m,w+D.width/2,`center`,g),w+=D.width,C++;m+=x}},t.prototype._placeToken=function(e,t,n,r,i,a,o){var s=t.rich[e.styleName]||{};s.text=e.text;var c=e.verticalAlign,l=r+n/2;c===`top`?l=r+e.height/2:c===`bottom`&&(l=r+n-e.height/2),!e.isLineHolder&&Ws(s)&&this._renderBackground(s,t,a===`right`?i-e.width:a===`center`?i-e.width/2:i,l-e.height/2,e.width,e.height);var u=!!s.backgroundColor,d=e.textPadding;d&&(i=Hs(i,a,d),l-=e.height/2-d[0]-e.innerHeight/2);var f=this._getOrCreateChild(ms),p=f.createStyle();f.useStyle(p);var m=this._defaultStyle,h=!1,g=0,_=!1,v=Vs(`fill`in s?s.fill:`fill`in t?t.fill:(h=!0,m.fill)),y=Bs(`stroke`in s?s.stroke:`stroke`in t?t.stroke:!u&&!o&&(!m.autoStroke||h)?(g=Os,_=!0,m.stroke):null),b=s.textShadowBlur>0||t.textShadowBlur>0;p.text=e.text,p.x=i,p.y=l,b&&(p.shadowBlur=s.textShadowBlur||t.textShadowBlur||0,p.shadowColor=s.textShadowColor||t.textShadowColor||`transparent`,p.shadowOffsetX=s.textShadowOffsetX||t.textShadowOffsetX||0,p.shadowOffsetY=s.textShadowOffsetY||t.textShadowOffsetY||0),p.textAlign=a,p.textBaseline=`middle`,p.font=e.font||`12px sans-serif`,p.opacity=ze(s.opacity,t.opacity,1),Is(p,s),y&&(p.lineWidth=ze(s.lineWidth,t.lineWidth,g),p.lineDash=q(s.lineDash,t.lineDash),p.lineDashOffset=t.lineDashOffset||0,p.stroke=y),v&&(p.fill=v),f.setBoundingRect(br(p,e.contentWidth,e.contentHeight,_?0:null))},t.prototype._renderBackground=function(e,t,n,r,i,a){var o=e.backgroundColor,s=e.borderWidth,c=e.borderColor,l=o&&o.image,u=o&&!l,d=e.borderRadius,f=this,p,m;if(u||e.lineHeight||s&&c){p=this._getOrCreateChild(Es),p.useStyle(p.createStyle()),p.style.fill=null;var h=p.shape;h.x=n,h.y=r,h.width=i,h.height=a,h.r=d,p.dirtyShape()}if(u){var g=p.style;g.fill=o||null,g.fillOpacity=q(e.fillOpacity,1)}else if(l){m=this._getOrCreateChild(vs),m.onload=function(){f.dirtyStyle()};var _=m.style;_.image=o.image,_.x=n,_.y=r,_.width=i,_.height=a}if(s&&c){var g=p.style;g.lineWidth=s,g.stroke=c,g.strokeOpacity=q(e.strokeOpacity,1),g.lineDash=e.borderDash,g.lineDashOffset=e.borderDashOffset||0,p.strokeContainThreshold=0,p.hasFill()&&p.hasStroke()&&(g.strokeFirst=!0,g.lineWidth*=2)}var v=(p||m).style;v.shadowBlur=e.shadowBlur||0,v.shadowColor=e.shadowColor||`transparent`,v.shadowOffsetX=e.shadowOffsetX||0,v.shadowOffsetY=e.shadowOffsetY||0,v.opacity=ze(e.opacity,t.opacity,1)},t.makeFont=function(e){var t=``;return Ls(e)&&(t=[e.fontStyle,e.fontWeight,Fs(e.fontSize),e.fontFamily||`sans-serif`].join(` `)),t&&Ue(t)||e.textFont||e.font},t}(io),Ms={left:!0,right:1,center:1},Ns={top:1,bottom:1,middle:1},Ps=[`fontStyle`,`fontWeight`,`fontSize`,`fontFamily`];function Fs(e){return typeof e==`string`&&(e.indexOf(`px`)!==-1||e.indexOf(`rem`)!==-1||e.indexOf(`em`)!==-1)?e:isNaN(+e)?`12px`:e+`px`}function Is(e,t){for(var n=0;n<Ps.length;n++){var r=Ps[n],i=t[r];i!=null&&(e[r]=i)}}function Ls(e){return e.fontSize!=null||e.fontFamily||e.fontWeight}function Rs(e){return zs(e),z(e.rich,zs),e}function zs(e){if(e){e.font=js.makeFont(e);var t=e.align;t===`middle`&&(t=`center`),e.align=t==null||Ms[t]?t:`left`;var n=e.verticalAlign;n===`center`&&(n=`middle`),e.verticalAlign=n==null||Ns[n]?n:`top`,e.padding&&=Ve(e.padding)}}function Bs(e,t){return e==null||t<=0||e===`transparent`||e===`none`?null:e.image||e.colorStops?`#000`:e}function Vs(e){return e==null||e===`none`?null:e.image||e.colorStops?`#000`:e}function Hs(e,t,n){return t===`right`?e-n[1]:t===`center`?e+n[3]/2-n[1]/2:e+n[3]}function Us(e){var t=e.text;return t!=null&&(t+=``),t}function Ws(e){return!!(e.backgroundColor||e.lineHeight||e.borderWidth&&e.borderColor)}var Gs=1e-4,Ks=20;function qs(e){return e.replace(/^\s+|\s+$/g,``)}var Js=Math.min,Ys=Math.max,Xs=Math.abs,Zs=Math.round,Qs=Math.floor,$s=Math.ceil,ec=Math.pow,tc=Math.log,nc=Math.LN10,rc=Math.PI,ic=Math.random;function ac(e,t,n,r){var i=t[0],a=t[1],o=n[0],s=n[1],c=a-i,l=s-o;if(c===0)return l===0?o:(o+s)/2;if(r){if(c>0){if(e<=i)return o;if(e>=a)return s}else if(e>=i)return o;else if(e<=a)return s}else{if(e===i)return o;if(e===a)return s}return(e-i)/c*l+o}var oc=sc;function sc(e,t,n){switch(e){case`center`:case`middle`:e=`50%`;break;case`left`:case`top`:e=`0%`;break;case`right`:case`bottom`:e=`100%`}return cc(e,t,n)}function cc(e,t,n){return G(e)?uc(e)?parseFloat(e)/100*t+(n||0):parseFloat(e):e==null?NaN:+e}function lc(e){return G(e)&&uc(e)}function uc(e){return!!qs(e).match(/%$/)}function dc(e,t,n){return isNaN(t)?n?``+e:+e:(t=Js(Ys(0,t),Ks),e=(+e).toFixed(t),n?e:+e)}function fc(e,t,n){return t??=10,dc(e,t,n)}function pc(e){return e.sort(function(e,t){return e-t}),e}function mc(e){if(e=+e,isNaN(e))return 0;if(e>1e-14){for(var t=1,n=0;n<15;n++,t*=10)if(Zs(e*t)/t===e)return n}return hc(e)}function hc(e){var t=e.toString().toLowerCase(),n=t.indexOf(`e`),r=n>0?+t.slice(n+1):0,i=n>0?n:t.length,a=t.indexOf(`.`);return Ys(0,(a<0?0:i-1-a)-r)}function gc(e,t){var n=Qs(tc(e[1]-e[0])/nc),r=Zs(tc(Xs(t[1]-t[0]))/nc),i=Js(Ys(-n+r,0),Ks);return isFinite(i)?i:Ks}function _c(e,t,n){var r=Xs(e[1]-e[0]);if(!isFinite(r)||r===0)return NaN;var i=tc(2*Xs(n||1)*Xs(r))/nc,a=tc(Xs(t))/nc,o=Ys(0,$s(-i+a));return isFinite(o)||(o=NaN),o}function vc(e,t,n){return e[t]&&yc(e,n)[t]||0}function yc(e,t){var n=we(e,function(e,t){return e+(isNaN(t)?0:t)},0);if(n===0)return[];for(var r=ec(10,t),i=B(e,function(e){return(isNaN(e)?0:e)/n*r*100}),a=r*100,o=B(i,function(e){return Qs(e)}),s=we(o,function(e,t){return e+t},0),c=B(i,function(e,t){return e-o[t]});s<a;){for(var l=-1/0,u=null,d=0,f=c.length;d<f;++d)c[d]>l&&(l=c[d],u=d);++o[u],c[u]=0,++s}return B(o,function(e){return e/r})}function bc(e,t){var n=Ys(mc(e),mc(t)),r=e+t;return n>Ks?r:dc(r,n)}var xc=ec(2,53)-1;function Sc(e){var t=rc*2;return(e%t+t)%t}function Cc(e){return e>-Gs&&e<Gs}var wc=/^(?:(\d{4})(?:[-\/](\d{1,2})(?:[-\/](\d{1,2})(?:[T ](\d{1,2})(?::(\d{1,2})(?::(\d{1,2})(?:[.,](\d+))?)?)?(Z|[\+\-]\d\d:?\d\d)?)?)?)?)?$/;function Tc(e){if(e instanceof Date)return e;if(G(e)){var t=wc.exec(e);if(!t)return new Date(NaN);if(t[8]){var n=+t[4]||0;return t[8].toUpperCase()!==`Z`&&(n-=+t[8].slice(0,3)),new Date(Date.UTC(+t[1],(t[2]||1)-1,+t[3]||1,n,+(t[5]||0),+t[6]||0,t[7]?+t[7].substring(0,3):0))}return new Date(+t[1],(t[2]||1)-1,+t[3]||1,+t[4]||0,+(t[5]||0),+t[6]||0,t[7]?+t[7].substring(0,3):0)}return e==null?new Date(NaN):new Date(Zs(e))}function Ec(e){return ec(10,Dc(e))}function Dc(e){if(e===0)return 0;var t=Qs(tc(e)/nc);return e/ec(10,t)>=10&&t++,t}function Oc(e,t){var n=Dc(e),r=ec(10,n),i=e/r;return e=(t===2?1:t?i<1.5?1:i<2.5?2:i<4?3:i<7?5:10:i<1?1:i<2?2:i<3?3:i<5?5:10)*r,dc(e,-n)}function kc(e,t){var n=(e.length-1)*t+1,r=Qs(n),i=+e[r-1],a=n-r;return a?i+a*(e[r]-i):i}function Ac(e){e.sort(function(e,t){return s(e,t,0)?-1:1});for(var t=-1/0,n=1,r=0;r<e.length;){for(var i=e[r].interval,a=e[r].close,o=0;o<2;o++)i[o]<=t&&(i[o]=t,a[o]=o?1:1-n),t=i[o],n=a[o];i[0]===i[1]&&a[0]*a[1]!==1?e.splice(r,1):r++}return e;function s(e,t,n){return e.interval[n]<t.interval[n]||e.interval[n]===t.interval[n]&&(e.close[n]-t.close[n]===(n?-1:1)||!n&&s(e,t,1))}}function jc(e){var t=parseFloat(e);return t==e&&(t!==0||!G(e)||e.indexOf(`x`)<=0)?t:NaN}function Mc(e){return!isNaN(jc(e))}function Nc(){return Zs(ic()*9)}function Pc(e,t){return t===0?e:Pc(t,e%t)}function Fc(e,t){return e==null?t:t==null?e:e*t/Pc(e,t)}function Ic(e){return e!=null&&isFinite(e)}var Lc=`[ECharts] `,Rc={},zc=typeof console<`u`&&console.warn&&console.log;function Bc(e,t,n){if(zc){if(n){if(Rc[t])return;Rc[t]=!0}console[e](Lc+t)}}function Vc(e,t){Bc(`error`,e,t)}function Hc(e){throw Error(e)}function Uc(e,t,n){return(t-e)*n+e}var Wc=`series\0`,Gc=`\0_ec_\0`;function Kc(e){return e instanceof Array?e:e==null?[]:[e]}function qc(e,t,n){if(e){e[t]=e[t]||{},e.emphasis=e.emphasis||{},e.emphasis[t]=e.emphasis[t]||{};for(var r=0,i=n.length;r<i;r++){var a=n[r];!e.emphasis[t].hasOwnProperty(a)&&e[t].hasOwnProperty(a)&&(e.emphasis[t][a]=e[t][a])}}}var Jc=`fontStyle.fontWeight.fontSize.fontFamily.rich.tag.color.textBorderColor.textBorderWidth.width.height.lineHeight.align.verticalAlign.baseline.shadowColor.shadowBlur.shadowOffsetX.shadowOffsetY.textShadowColor.textShadowBlur.textShadowOffsetX.textShadowOffsetY.backgroundColor.borderColor.borderWidth.borderRadius.padding`.split(`.`);function Yc(e){return K(e)&&!U(e)&&!(e instanceof Date)?e.value:e}function Xc(e){return K(e)&&!(e instanceof Array)}function Zc(e,t,n){var r=n===`normalMerge`,i=n===`replaceMerge`,a=n===`replaceAll`;e||=[],t=(t||[]).slice();var o=J();z(t,function(e,n){if(!K(e)){t[n]=null;return}});var s=Qc(e,o,n);return(r||i)&&$c(s,e,o,t),r&&el(s,t),r||i?tl(s,t,i):a&&nl(s,t),rl(s),s}function Qc(e,t,n){var r=[];if(n===`replaceAll`)return r;for(var i=0;i<e.length;i++){var a=e[i];a&&a.id!=null&&t.set(a.id,i),r.push({existing:n===`replaceMerge`||cl(a)?null:a,newOption:null,keyInfo:null,brandNew:null})}return r}function $c(e,t,n,r){z(r,function(i,a){if(i&&i.id!=null){var o=al(i.id),s=n.get(o);if(s!=null){var c=e[s];He(!c.newOption,`Duplicated option on id "`+o+`".`),c.newOption=i,c.existing=t[s],r[a]=null}}})}function el(e,t){z(t,function(n,r){if(n&&n.name!=null)for(var i=0;i<e.length;i++){var a=e[i].existing;if(!e[i].newOption&&a&&(a.id==null||n.id==null)&&!cl(n)&&!cl(a)&&il(`name`,a,n)){e[i].newOption=n,t[r]=null;return}}})}function tl(e,t,n){z(t,function(t){if(t){for(var r,i=0;(r=e[i])&&(r.newOption||cl(r.existing)||r.existing&&t.id!=null&&!il(`id`,t,r.existing));)i++;r?(r.newOption=t,r.brandNew=n):e.push({newOption:t,brandNew:n,existing:null,keyInfo:null}),i++}})}function nl(e,t){z(t,function(t){e.push({newOption:t,brandNew:!0,existing:null,keyInfo:null})})}function rl(e){var t=J();z(e,function(e){var n=e.existing;n&&t.set(n.id,e)}),z(e,function(e){var n=e.newOption;He(!n||n.id==null||!t.get(n.id)||t.get(n.id)===e,`id duplicates: `+(n&&n.id)),n&&n.id!=null&&t.set(n.id,e),!e.keyInfo&&(e.keyInfo={})}),z(e,function(e,n){var r=e.existing,i=e.newOption,a=e.keyInfo;if(K(i)){if(a.name=i.name==null?r?r.name:Wc+n:al(i.name),r)a.id=al(r.id);else if(i.id!=null)a.id=al(i.id);else{var o=0;do a.id=`\0`+a.name+`\0`+o++;while(t.get(a.id))}t.set(a.id,e)}})}function il(e,t,n){var r=ol(t[e],null),i=ol(n[e],null);return r!=null&&i!=null&&r===i}function al(e){return ol(e,``)}function ol(e,t){return e==null?t:G(e)?e:Ae(e)||ke(e)?e+``:t}function sl(e){var t=e.name;return!!(t&&t.indexOf(Wc))}function cl(e){return e&&e.id!=null&&al(e.id).indexOf(Gc)===0}function ll(e){return Gc+e}function ul(e,t,n){z(e,function(e){var r=e.newOption;K(r)&&(e.keyInfo.mainType=t,e.keyInfo.subType=dl(t,r,e.existing,n))})}function dl(e,t,n,r){return t.type?t.type:n?n.subType:r.determineSubType(e,t)}function fl(e,t){var n={},r={};return i(e||[],n),i(t||[],r,n),[a(n),a(r)];function i(e,t,n){for(var r=0,i=e.length;r<i;r++){var a=ol(e[r].seriesId,null);if(a==null)return;for(var o=Kc(e[r].dataIndex),s=n&&n[a],c=0,l=o.length;c<l;c++){var u=o[c];s&&s[u]?s[u]=null:(t[a]||(t[a]={}))[u]=1}}}function a(e,t){var n=[];for(var r in e)if(e.hasOwnProperty(r)&&e[r]!=null){if(t)n.push(+r);else{var i=a(e[r],!0);i.length&&n.push({seriesId:r,dataIndex:i})}}return n}}function pl(e,t){if(t.dataIndexInside!=null)return t.dataIndexInside;if(t.dataIndex!=null)return U(t.dataIndex)?B(t.dataIndex,function(t){return e.indexOfRawIndex(t)}):e.indexOfRawIndex(t.dataIndex);if(t.name!=null)return U(t.name)?B(t.name,function(t){return e.indexOfName(t)}):e.indexOfName(t.name)}function ml(){var e=`__ec_inner_`+hl++;return function(t){return t[e]||(t[e]={})}}var hl=Nc();function gl(e,t,n){var r=_l(t,n),i=r.mainTypeSpecified,a=r.queryOptionMap,o=r.others,s=n?n.defaultMainType:null;return!i&&s&&a.set(s,{}),a.each(function(t,r){var i=bl(e,r,t,{useDefault:s===r,enableAll:n&&n.enableAll!=null?n.enableAll:!0,enableNone:n&&n.enableNone!=null?n.enableNone:!0});o[r+`Models`]=i.models,o[r+`Model`]=i.models[0]}),o}function _l(e,t){var n;if(G(e)){var r={};r[e+`Index`]=0,n=r}else n=e;var i=J(),a={},o=!1;return z(n,function(e,n){if(n===`dataIndex`||n===`dataIndexInside`){a[n]=e;return}var r=n.match(/^(\w+)(Index|Id|Name)$/)||[],s=r[1],c=(r[2]||``).toLowerCase();if(!(!s||!c||t&&t.includeMainTypes&&R(t.includeMainTypes,s)<0)){o||=!!s;var l=i.get(s)||i.set(s,{});l[c]=e}}),{mainTypeSpecified:o,queryOptionMap:i,others:a}}var vl={useDefault:!0,enableAll:!1,enableNone:!1},yl={useDefault:!1,enableAll:!0,enableNone:!0};function bl(e,t,n,r){r||=vl;var i=n.index,a=n.id,o=n.name,s={models:null,specified:i!=null||a!=null||o!=null};if(!s.specified){var c=void 0;return s.models=r.useDefault&&(c=e.getComponent(t))?[c]:[],s}if(i===`none`||i===!1){if(r.enableNone)return s.models=[],s;i=-1}return i===`all`&&(i=r.enableAll?a=o=null:-1),s.models=e.queryComponents({mainType:t,index:i,id:a,name:o}),s}function xl(e,t,n){var r={};r[t+`Id`]=e[t+`Id`],r[t+`Index`]=e[t+`Index`],r[t+`Name`]=e[t+`Name`];var i={mainType:t,query:r};return n&&(i.subType=n),i}function Sl(e,t,n){e.setAttribute?e.setAttribute(t,n):e[t]=n}function Cl(e,t){return e.getAttribute?e.getAttribute(t):e[t]}function wl(e){return e===`auto`?Y.domSupported?`html`:`richText`:e||`html`}function Tl(e,t,n,r,i){var a=t==null||t===`auto`;if(r==null)return r;if(Ae(r)){var o=Uc(n||0,r,i);return dc(o,a?Math.max(mc(n||0),mc(r)):t)}if(G(r))return i<1?n:r;for(var s=[],c=n,l=r,u=Math.max(c?c.length:0,l.length),d=0;d<u;++d){var f=e.getDimensionInfo(d);if(f&&f.type===`ordinal`)s[d]=(i<1&&c?c:l)[d];else{var p=c&&c[d]?c[d]:0,m=l[d],o=Uc(p,m,i);s[d]=dc(o,a?Math.max(mc(p),mc(m)):t)}}return s}(function(){function e(){}return e.prototype.reset=function(e,t,n,r){return this._list=e,this._step=r||=1,this._idx=t,this._end=n??(r>0?e.length:0),this.item=null,this.key=NaN,this},e.prototype.next=function(){return(this._step>0?this._idx<this._end:this._idx>=this._end)&&(this.item=this._list[this._idx],this.key=this._idx+=this._step,!0)},e})();function El(){return[1/0,-1/0]}function Dl(e,t){jl(t)&&(t<e[0]&&(e[0]=t),t>e[1]&&(e[1]=t))}function Ol(e,t){jl(t)&&t<e[0]&&(e[0]=t)}function kl(e,t){jl(t)&&t>e[1]&&(e[1]=t)}function Al(e,t){Ml(t[0],t[1])&&(t[0]<e[0]&&(e[0]=t[0]),t[1]>e[1]&&(e[1]=t[1]))}function jl(e){return e!=null&&isFinite(e)}function Ml(e,t){return jl(e)&&jl(t)&&e<=t}function Nl(e){var t=e[1]-e[0];return isFinite(t)&&t>=0}function Pl(e){Ml(e[0],e[1])&&e[0]>e[1]&&(e[0]=e[1])}function Fl(){var e=`__ec_once_`+Il++;return function(t,n){et(t,e)||(t[e]=1,n())}}var Il=Nc();function Ll(e,t,n){var r=J(),i=0;z(e,function(a){var o=t(a),s=r.get(o)||0;n&&n(a,s),!s&&!n&&(e[i++]=a),r.set(o,s+1)}),n||(e.length=i)}function Rl(e){return e.value+``}function zl(e){return e+``}function Bl(e,t){return q(t,!0)?e.seriesIndex+2:0}function Vl(e,t,n){var r=e.getData().count();return{progressiveRender:n.progressiveEnabled&&t.incrementalPrepareRender&&r>=n.threshold,large:e.get(`large`)&&r>=e.get(`largeThreshold`),modDataCount:e.get(`progressiveChunkMode`)===`mod`?e.getData().count():null}}function Hl(e,t){return{seriesType:e,overallReset:t}}function Ul(e){return{overallReset:e}}var Wl=ml(),Gl=function(e,t,n,r){if(r){var i=Wl(r);i.dataIndex=n,i.dataType=t,i.seriesIndex=e,i.ssrType=`chart`,r.type===`group`&&r.traverse(function(r){var i=Wl(r);i.seriesIndex=e,i.dataIndex=n,i.dataType=t,i.ssrType=`chart`})}},Kl=`series`,ql=J([`tooltip`,`label`,`itemName`,`itemId`,`itemGroupId`,`itemChildGroupId`,`seriesName`]),Jl=`original`,Yl=`arrayRows`,Xl=`objectRows`,Zl=`keyedColumns`,Ql=`typedArray`,$l=`unknown`,eu=`column`,tu=`Roam`,nu=[`getDom`,`getZr`,`getWidth`,`getHeight`,`getDevicePixelRatio`,`dispatchAction`,`isSSR`,`isDisposed`,`on`,`off`,`getDataURL`,`getConnectedDataURL`,`getOption`,`getId`,`updateLabelLayout`],ru=function(){function e(e){z(nu,function(t){this[t]=H(e[t],e)},this)}return e}();function iu(e,t){return t.mainType===`series`?e.getViewOfSeriesModel(t):e.getViewOfComponentModel(t)}var au=1,ou={},su=ml(),cu=ml(),lu=[`emphasis`,`blur`,`select`],uu=[`normal`,`emphasis`,`blur`,`select`],du=`highlight`,fu=`downplay`,pu=`select`,mu=`unselect`,hu=`toggleSelect`,gu=`selectchanged`;function _u(e){return e!=null&&e!==`none`}function vu(e,t,n){e.onHoverStateChange&&(e.hoverState||0)!==n&&e.onHoverStateChange(t),e.hoverState=n}function yu(e){vu(e,`emphasis`,2)}function bu(e){e.hoverState===2&&vu(e,`normal`,0)}function xu(e){vu(e,`blur`,1)}function Su(e){e.hoverState===1&&vu(e,`normal`,0)}function Cu(e){e.selected=!0}function wu(e){e.selected=!1}function Tu(e,t,n){t(e,n)}function Eu(e,t,n){Tu(e,t,n),e.isGroup&&e.traverse(function(e){Tu(e,t,n)})}function Du(e,t){switch(t){case`emphasis`:e.hoverState=2;break;case`normal`:e.hoverState=0;break;case`blur`:e.hoverState=1;break;case`select`:e.selected=!0}}function Ou(e,t,n,r){for(var i=e.style,a={},o=0;o<t.length;o++){var s=t[o];a[s]=i[s]??(r&&r[s])}for(var o=0;o<e.animators.length;o++){var c=e.animators[o];c.__fromStateTransition&&c.__fromStateTransition.indexOf(n)<0&&c.targetName===`style`&&c.saveTo(a,t)}return a}function ku(e,t,n,r){var i=n&&R(n,`select`)>=0,a=!1;if(e instanceof fs){var o=su(e),s=i&&o.selectFill||o.normalFill,c=i&&o.selectStroke||o.normalStroke;if(_u(s)||_u(c)){r||={};var l=r.style||{};l.fill===`inherit`?(a=!0,r=I({},r),l=I({},l),l.fill=s):!_u(l.fill)&&_u(s)?(a=!0,r=I({},r),l=I({},l),l.fill=Ri(s)):!_u(l.stroke)&&_u(c)&&(a||(r=I({},r),l=I({},l)),l.stroke=Ri(c)),r.style=l}}if(r&&r.z2==null){a||(r=I({},r));var u=e.z2EmphasisLift;r.z2=e.z2+(u??10)}return r}function Au(e,t,n){if(n&&n.z2==null){n=I({},n);var r=e.z2SelectLift;n.z2=e.z2+(r??9)}return n}function ju(e,t,n){var r=R(e.currentStates,t)>=0,i=e.style.opacity,a=r?null:Ou(e,[`opacity`],t,{opacity:1});n||={};var o=n.style||{};return o.opacity??(n=I({},n),o=I({opacity:r?i:a.opacity*.1},o),n.style=o),n}function Mu(e,t){var n=this.states[e];if(this.style){if(e===`emphasis`)return ku(this,e,t,n);if(e===`blur`)return ju(this,e,n);if(e===`select`)return Au(this,e,n)}return n}function Nu(e){e.stateProxy=Mu;var t=e.getTextContent(),n=e.getTextGuideLine();t&&(t.stateProxy=Mu),n&&(n.stateProxy=Mu)}function Pu(e,t){!Hu(e,t)&&!e.__highByOuter&&Eu(e,yu)}function Fu(e,t){!Hu(e,t)&&!e.__highByOuter&&Eu(e,bu)}function Iu(e,t){e.__highByOuter|=1<<(t||0),Eu(e,yu)}function Lu(e,t){!(e.__highByOuter&=~(1<<(t||0)))&&Eu(e,bu)}function Ru(e){Eu(e,xu)}function zu(e){Eu(e,Su)}function Bu(e){Eu(e,Cu)}function Vu(e){Eu(e,wu)}function Hu(e,t){return e.__highDownSilentOnTouch&&t.zrByTouch}function Uu(e){var t=e.getModel(),n=[],r=[];t.eachComponent(function(t,i){var a=cu(i),o=iu(e,i),s=t===`series`;!s&&r.push(o),a.isBlured&&(o.group.traverse(function(e){Su(e)}),s&&n.push(i)),a.isBlured=!1}),z(r,function(e){e&&e.toggleBlurSeries&&e.toggleBlurSeries(n,!1,t)})}function Wu(e,t,n,r){var i=r.getModel();n||=`coordinateSystem`;function a(e,t){for(var n=0;n<t.length;n++){var r=e.getItemGraphicEl(t[n]);r&&zu(r)}}if(e!=null&&t&&t!==`none`){var o=i.getSeriesByIndex(e),s=o.coordinateSystem;s&&s.master&&(s=s.master);var c=[];i.eachSeries(function(e){var i=o===e,l=e.coordinateSystem;if(l&&l.master&&(l=l.master),!(n===`series`&&!i||n===`coordinateSystem`&&!(l&&s?l===s:i)||t===`series`&&i)){if(r.getViewOfSeriesModel(e).group.traverse(function(e){e.__highByOuter&&i&&t===`self`||xu(e)}),Ce(t))a(e.getData(),t);else if(K(t))for(var u=V(t),d=0;d<u.length;d++)a(e.getData(u[d]),t[u[d]]);c.push(e),cu(e).isBlured=!0}}),i.eachComponent(function(e,t){if(e!==`series`){var n=r.getViewOfComponentModel(t);n&&n.toggleBlurSeries&&n.toggleBlurSeries(c,!0,i)}})}}function Gu(e,t,n){if(e!=null&&t!=null){var r=n.getModel().getComponent(e,t);if(r){cu(r).isBlured=!0;var i=n.getViewOfComponentModel(r);i&&i.focusBlurEnabled&&i.group.traverse(function(e){xu(e)})}}}function Ku(e,t,n){var r=e.seriesIndex,i=e.getData(t.dataType);if(i){var a=pl(i,t);a=(U(a)?a[0]:a)||0;var o=i.getItemGraphicEl(a);if(!o)for(var s=i.count(),c=0;!o&&c<s;)o=i.getItemGraphicEl(c++);if(o){var l=Wl(o);Wu(r,l.focus,l.blurScope,n)}else{var u=e.get([`emphasis`,`focus`]),d=e.get([`emphasis`,`blurScope`]);u!=null&&Wu(r,u,d,n)}}}function qu(e,t,n,r){var i={focusSelf:!1,dispatchers:null};if(e==null||e===`series`||t==null||n==null)return i;var a=r.getModel().getComponent(e,t);if(!a)return i;var o=r.getViewOfComponentModel(a);if(!o||!o.findHighDownDispatchers)return i;for(var s=o.findHighDownDispatchers(n),c,l=0;l<s.length;l++)if(Wl(s[l]).focus===`self`){c=!0;break}return{focusSelf:c,dispatchers:s}}function Ju(e,t,n){var r=Wl(e),i=qu(r.componentMainType,r.componentIndex,r.componentHighDownName,n),a=i.dispatchers,o=i.focusSelf;a?(o&&Gu(r.componentMainType,r.componentIndex,n),z(a,function(e){return Pu(e,t)})):(Wu(r.seriesIndex,r.focus,r.blurScope,n),r.focus===`self`&&Gu(r.componentMainType,r.componentIndex,n),Pu(e,t))}function Yu(e,t,n){Uu(n);var r=Wl(e),i=qu(r.componentMainType,r.componentIndex,r.componentHighDownName,n).dispatchers;i?z(i,function(e){return Fu(e,t)}):Fu(e,t)}function Xu(e,t,n){if(ud(t)){var r=t.dataType,i=pl(e.getData(r),t);U(i)||(i=[i]),e[t.type===`toggleSelect`?`toggleSelect`:t.type===`select`?`select`:`unselect`](i,r)}}function Zu(e){z(e.getAllData(),function(t){var n=t.data,r=t.type;n.eachItemGraphicEl(function(t,n){e.isSelected(n,r)?Bu(t):Vu(t)})})}function Qu(e){var t=[];return e.eachSeries(function(e){z(e.getAllData(),function(n){n.data;var r=n.type,i=e.getSelectedDataIndices();if(i.length>0){var a={dataIndex:i,seriesIndex:e.seriesIndex};r!=null&&(a.dataType=r),t.push(a)}})}),t}function $u(e,t,n){od(e,!0),Eu(e,Nu),nd(e,t,n)}function ed(e){od(e,!1)}function td(e,t,n,r){r?ed(e):$u(e,t,n)}function nd(e,t,n){var r=Wl(e);t==null?r.focus&&=null:(r.focus=t,r.blurScope=n)}var rd=[`emphasis`,`blur`,`select`],id={itemStyle:`getItemStyle`,lineStyle:`getLineStyle`,areaStyle:`getAreaStyle`};function ad(e,t,n,r){n||=`itemStyle`;for(var i=0;i<rd.length;i++){var a=rd[i],o=t.getModel([a,n]),s=e.ensureState(a);s.style=r?r(o):o[id[n]]()}}function od(e,t){var n=t===!1,r=e;e.highDownSilentOnTouch&&(r.__highDownSilentOnTouch=e.highDownSilentOnTouch),(!n||r.__highDownDispatcher)&&(r.__highByOuter=r.__highByOuter||0,r.__highDownDispatcher=!n)}function sd(e){return!!(e&&e.__highDownDispatcher)}function cd(e,t,n){var r=Wl(e);r.componentMainType=t.mainType,r.componentIndex=t.componentIndex,r.componentHighDownName=n}function ld(e){var t=ou[e];return t==null&&au<=32&&(t=ou[e]=au++),t}function ud(e){var t=e.type;return t===`select`||t===`unselect`||t===`toggleSelect`}function dd(e){var t=e.type;return t===`highlight`||t===`downplay`}function fd(e){var t=su(e);t.normalFill=e.style.fill,t.normalStroke=e.style.stroke;var n=e.states.select||{};t.selectFill=n.style&&n.style.fill||null,t.selectStroke=n.style&&n.style.stroke||null}var pd=Vo.CMD,md=[[],[],[]],hd=Math.sqrt,gd=Math.atan2;function _d(e,t){if(t){var n=e.data,r=e.len(),i,a,o,s,c,l,u=pd.M,d=pd.C,f=pd.L,p=pd.R,m=pd.A,h=pd.Q;for(o=0,s=0;o<r;){switch(i=n[o++],s=o,a=0,i){case u:a=1;break;case f:a=1;break;case d:a=3;break;case h:a=2;break;case m:var g=t[4],_=t[5],v=hd(t[0]*t[0]+t[1]*t[1]),y=hd(t[2]*t[2]+t[3]*t[3]),b=gd(-t[1]/y,t[0]/v);n[o]*=v,n[o++]+=g,n[o]*=y,n[o++]+=_,n[o++]*=v,n[o++]*=y,n[o++]+=b,n[o++]+=b,o+=2,s=o;break;case p:l[0]=n[o++],l[1]=n[o++],dn(l,l,t),n[s++]=l[0],n[s++]=l[1],l[0]+=n[o++],l[1]+=n[o++],dn(l,l,t),n[s++]=l[0],n[s++]=l[1]}for(c=0;c<a;c++){var x=md[c];x[0]=n[o++],x[1]=n[o++],dn(x,x,t),n[s++]=x[0],n[s++]=x[1]}}e.increaseVersion()}}var vd=Math.sqrt,yd=Math.sin,bd=Math.cos,xd=Math.PI;function Sd(e){return Math.sqrt(e[0]*e[0]+e[1]*e[1])}function Cd(e,t){return(e[0]*t[0]+e[1]*t[1])/(Sd(e)*Sd(t))}function wd(e,t){return(e[0]*t[1]<e[1]*t[0]?-1:1)*Math.acos(Cd(e,t))}function Td(e,t,n,r,i,a,o,s,c,l,u){var d=xd/180*c,f=bd(d)*(e-n)/2+yd(d)*(t-r)/2,p=-1*yd(d)*(e-n)/2+bd(d)*(t-r)/2,m=f*f/(o*o)+p*p/(s*s);m>1&&(o*=vd(m),s*=vd(m));var h=(i===a?-1:1)*vd((o*o*(s*s)-o*o*(p*p)-s*s*(f*f))/(o*o*(p*p)+s*s*(f*f)))||0,g=h*o*p/s,_=h*-s*f/o,v=(e+n)/2+bd(d)*g-yd(d)*_,y=(t+r)/2+yd(d)*g+bd(d)*_,b=wd([1,0],[(f-g)/o,(p-_)/s]),x=[(f-g)/o,(p-_)/s],S=[(-1*f-g)/o,(-1*p-_)/s],C=wd(x,S);if(Cd(x,S)<=-1&&(C=xd),Cd(x,S)>=1&&(C=0),C<0){var w=Math.round(C/xd*1e6)/1e6;C=xd*2+w%2*xd}u.addData(l,v,y,o,s,b,C,d,a)}var Ed=/([mlvhzcqtsa])([^mlvhzcqtsa]*)/gi,Dd=/-?([0-9]*\.)?[0-9]+([eE]-?[0-9]+)?/g;function Od(e){var t=new Vo;if(!e)return t;var n=0,r=0,i=n,a=r,o,s=Vo.CMD,c=e.match(Ed);if(!c)return t;for(var l=0;l<c.length;l++){for(var u=c[l],d=u.charAt(0),f=void 0,p=u.match(Dd)||[],m=p.length,h=0;h<m;h++)p[h]=parseFloat(p[h]);for(var g=0;g<m;){var _=void 0,v=void 0,y=void 0,b=void 0,x=void 0,S=void 0,C=void 0,w=n,T=r,E=void 0,D=void 0;switch(d){case`l`:n+=p[g++],r+=p[g++],f=s.L,t.addData(f,n,r);break;case`L`:n=p[g++],r=p[g++],f=s.L,t.addData(f,n,r);break;case`m`:n+=p[g++],r+=p[g++],f=s.M,t.addData(f,n,r),i=n,a=r,d=`l`;break;case`M`:n=p[g++],r=p[g++],f=s.M,t.addData(f,n,r),i=n,a=r,d=`L`;break;case`h`:n+=p[g++],f=s.L,t.addData(f,n,r);break;case`H`:n=p[g++],f=s.L,t.addData(f,n,r);break;case`v`:r+=p[g++],f=s.L,t.addData(f,n,r);break;case`V`:r=p[g++],f=s.L,t.addData(f,n,r);break;case`C`:f=s.C,t.addData(f,p[g++],p[g++],p[g++],p[g++],p[g++],p[g++]),n=p[g-2],r=p[g-1];break;case`c`:f=s.C,t.addData(f,p[g++]+n,p[g++]+r,p[g++]+n,p[g++]+r,p[g++]+n,p[g++]+r),n+=p[g-2],r+=p[g-1];break;case`S`:_=n,v=r,E=t.len(),D=t.data,o===s.C&&(_+=n-D[E-4],v+=r-D[E-3]),f=s.C,w=p[g++],T=p[g++],n=p[g++],r=p[g++],t.addData(f,_,v,w,T,n,r);break;case`s`:_=n,v=r,E=t.len(),D=t.data,o===s.C&&(_+=n-D[E-4],v+=r-D[E-3]),f=s.C,w=n+p[g++],T=r+p[g++],n+=p[g++],r+=p[g++],t.addData(f,_,v,w,T,n,r);break;case`Q`:w=p[g++],T=p[g++],n=p[g++],r=p[g++],f=s.Q,t.addData(f,w,T,n,r);break;case`q`:w=p[g++]+n,T=p[g++]+r,n+=p[g++],r+=p[g++],f=s.Q,t.addData(f,w,T,n,r);break;case`T`:_=n,v=r,E=t.len(),D=t.data,o===s.Q&&(_+=n-D[E-4],v+=r-D[E-3]),n=p[g++],r=p[g++],f=s.Q,t.addData(f,_,v,n,r);break;case`t`:_=n,v=r,E=t.len(),D=t.data,o===s.Q&&(_+=n-D[E-4],v+=r-D[E-3]),n+=p[g++],r+=p[g++],f=s.Q,t.addData(f,_,v,n,r);break;case`A`:y=p[g++],b=p[g++],x=p[g++],S=p[g++],C=p[g++],w=n,T=r,n=p[g++],r=p[g++],f=s.A,Td(w,T,n,r,S,C,y,b,x,f,t);break;case`a`:y=p[g++],b=p[g++],x=p[g++],S=p[g++],C=p[g++],w=n,T=r,n+=p[g++],r+=p[g++],f=s.A,Td(w,T,n,r,S,C,y,b,x,f,t)}}(d===`z`||d===`Z`)&&(f=s.Z,t.addData(f),n=i,r=a),o=f}return t.toStatic(),t}var kd=function(e){D(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.applyTransform=function(e){},t}(fs);function Ad(e){return e.setData!=null}function jd(e,t){var n=Od(e),r=I({},t);return r.buildPath=function(e){var t=Ad(e);if(t&&e.canSave()){e.appendPath(n);var r=e.getContext();r&&e.rebuildPath(r,1)}else{var r=t?e.getContext():e;r&&n.rebuildPath(r,1)}},r.applyTransform=function(e){_d(n,e),this.dirtyShape()},r}function Md(e,t){return new kd(jd(e,t))}function Nd(e,t){var n=jd(e,t);return function(e){D(t,e);function t(t){var r=e.call(this,t)||this;return r.applyTransform=n.applyTransform,r.buildPath=n.buildPath,r}return t}(kd)}function Pd(e,t){for(var n=[],r=e.length,i=0;i<r;i++){var a=e[i];n.push(a.getUpdatedPathProxy(!0))}var o=new fs(t);return o.createPathProxy(),o.buildPath=function(e){if(Ad(e)){e.appendPath(n);var t=e.getContext();t&&e.rebuildPath(t,1)}},o}var Fd=function(e){D(t,e);function t(t){var n=e.call(this)||this;return n.isGroup=!0,n._children=[],n.attr(t),n}return t.prototype.childrenRef=function(){return this._children},t.prototype.children=function(){return this._children.slice()},t.prototype.childAt=function(e){return this._children[e]},t.prototype.childOfName=function(e){for(var t=this._children,n=0;n<t.length;n++)if(t[n].name===e)return t[n]},t.prototype.childCount=function(){return this._children.length},t.prototype.add=function(e){return e&&e!==this&&e.parent!==this&&(this._children.push(e),this._doAdd(e)),this},t.prototype.addBefore=function(e,t){if(e&&e!==this&&e.parent!==this&&t&&t.parent===this){var n=this._children,r=n.indexOf(t);r>=0&&(n.splice(r,0,e),this._doAdd(e))}return this},t.prototype.replace=function(e,t){var n=R(this._children,e);return n>=0&&this.replaceAt(t,n),this},t.prototype.replaceAt=function(e,t){var n=this._children,r=n[t];if(e&&e!==this&&e.parent!==this&&e!==r){n[t]=e,r.parent=null;var i=this.__zr;i&&r.removeSelfFromZr(i),this._doAdd(e)}return this},t.prototype._doAdd=function(e){e.parent&&e.parent.remove(e),e.parent=this;var t=this.__zr;t&&t!==e.__zr&&e.addSelfToZr(t),t&&t.refresh()},t.prototype.remove=function(e){var t=this.__zr,n=this._children,r=R(n,e);return r<0?this:(n.splice(r,1),e.parent=null,t&&e.removeSelfFromZr(t),t&&t.refresh(),this)},t.prototype.removeAll=function(){for(var e=this._children,t=this.__zr,n=0;n<e.length;n++){var r=e[n];t&&r.removeSelfFromZr(t),r.parent=null}return e.length=0,this},t.prototype.eachChild=function(e,t){for(var n=this._children,r=0;r<n.length;r++){var i=n[r];e.call(t,i,r)}return this},t.prototype.traverse=function(e,t){for(var n=0;n<this._children.length;n++){var r=this._children[n],i=e.call(t,r);r.isGroup&&!i&&r.traverse(e,t)}return this},t.prototype.addSelfToZr=function(t){e.prototype.addSelfToZr.call(this,t);for(var n=0;n<this._children.length;n++)this._children[n].addSelfToZr(t)},t.prototype.removeSelfFromZr=function(t){e.prototype.removeSelfFromZr.call(this,t);for(var n=0;n<this._children.length;n++)this._children[n].removeSelfFromZr(t)},t.prototype.getBoundingRect=function(e){for(var t=new X(0,0,0,0),n=e||this._children,r=[],i=null,a=0;a<n.length;a++){var o=n[a];if(!(o.ignore||o.invisible)){var s=o.getBoundingRect(),c=o.getLocalTransform(r);c?(X.applyTransform(t,s,c),i||=t.clone(),i.union(t)):(i||=s.clone(),i.union(s))}}return i||t},t}(Ha);Fd.prototype.type=`group`;var Id=function(){function e(){this.cx=0,this.cy=0,this.r=0}return e}(),Ld=function(e){D(t,e);function t(t){return e.call(this,t)||this}return t.prototype.getDefaultShape=function(){return new Id},t.prototype.buildPath=function(e,t){e.moveTo(t.cx+t.r,t.cy),e.arc(t.cx,t.cy,t.r,0,Math.PI*2)},t}(fs);Ld.prototype.type=`circle`;var Rd=function(){function e(){this.cx=0,this.cy=0,this.rx=0,this.ry=0}return e}(),zd=function(e){D(t,e);function t(t){return e.call(this,t)||this}return t.prototype.getDefaultShape=function(){return new Rd},t.prototype.buildPath=function(e,t){var n=.5522848,r=t.cx,i=t.cy,a=t.rx,o=t.ry,s=a*n,c=o*n;e.moveTo(r-a,i),e.bezierCurveTo(r-a,i-c,r-s,i-o,r,i-o),e.bezierCurveTo(r+s,i-o,r+a,i-c,r+a,i),e.bezierCurveTo(r+a,i+c,r+s,i+o,r,i+o),e.bezierCurveTo(r-s,i+o,r-a,i+c,r-a,i),e.closePath()},t}(fs);zd.prototype.type=`ellipse`;var Bd=Math.PI,Vd=Bd*2,Hd=Math.sin,Ud=Math.cos,Wd=Math.acos,Gd=Math.atan2,Kd=Math.abs,qd=Math.sqrt,Jd=Math.max,Yd=Math.min,Xd=1e-4;function Zd(e,t,n,r,i,a,o,s){var c=n-e,l=r-t,u=o-i,d=s-a,f=d*c-u*l;if(!(f*f<Xd))return f=(u*(t-a)-d*(e-i))/f,[e+f*c,t+f*l]}function Qd(e,t,n,r,i,a,o){var s=e-n,c=t-r,l=(o?a:-a)/qd(s*s+c*c),u=l*c,d=-l*s,f=e+u,p=t+d,m=n+u,h=r+d,g=(f+m)/2,_=(p+h)/2,v=m-f,y=h-p,b=v*v+y*y,x=i-a,S=f*h-m*p,C=(y<0?-1:1)*qd(Jd(0,x*x*b-S*S)),w=(S*y-v*C)/b,T=(-S*v-y*C)/b,E=(S*y+v*C)/b,D=(-S*v+y*C)/b,O=w-g,k=T-_,A=E-g,j=D-_;return O*O+k*k>A*A+j*j&&(w=E,T=D),{cx:w,cy:T,x0:-u,y0:-d,x1:w*(i/x-1),y1:T*(i/x-1)}}function $d(e){var t;if(U(e)){var n=e.length;if(!n)return e;t=n===1?[e[0],e[0],0,0]:n===2?[e[0],e[0],e[1],e[1]]:n===3?e.concat(e[2]):e}else t=[e,e,e,e];return t}function ef(e,t){var n,r=Jd(t.r,0),i=Jd(t.r0||0,0),a=r>0;if(a||i>0){if(a||(r=i,i=0),i>r){var o=r;r=i,i=o}var s=t.startAngle,c=t.endAngle;if(!(isNaN(s)||isNaN(c))){var l=t.cx,u=t.cy,d=!!t.clockwise,f=Kd(c-s),p=f>Vd&&f%Vd;if(p>Xd&&(f=p),!(r>Xd))e.moveTo(l,u);else if(f>Vd-Xd)e.moveTo(l+r*Ud(s),u+r*Hd(s)),e.arc(l,u,r,s,c,!d),i>Xd&&(e.moveTo(l+i*Ud(c),u+i*Hd(c)),e.arc(l,u,i,c,s,d));else{var m=void 0,h=void 0,g=void 0,_=void 0,v=void 0,y=void 0,b=void 0,x=void 0,S=void 0,C=void 0,w=void 0,T=void 0,E=void 0,D=void 0,O=void 0,k=void 0,A=r*Ud(s),j=r*Hd(s),ee=i*Ud(c),te=i*Hd(c),M=f>Xd;if(M){var ne=t.cornerRadius;ne&&(n=$d(ne),m=n[0],h=n[1],g=n[2],_=n[3]);var re=Kd(r-i)/2;if(v=Yd(re,g),y=Yd(re,_),b=Yd(re,m),x=Yd(re,h),w=S=Jd(v,y),T=C=Jd(b,x),(S>Xd||C>Xd)&&(E=r*Ud(c),D=r*Hd(c),O=i*Ud(s),k=i*Hd(s),f<Bd)){var ie=Zd(A,j,O,k,E,D,ee,te);if(ie){var ae=A-ie[0],oe=j-ie[1],se=E-ie[0],ce=D-ie[1],le=1/Hd(Wd((ae*se+oe*ce)/(qd(ae*ae+oe*oe)*qd(se*se+ce*ce)))/2),ue=qd(ie[0]*ie[0]+ie[1]*ie[1]);w=Yd(S,(r-ue)/(le+1)),T=Yd(C,(i-ue)/(le-1))}}}if(!M)e.moveTo(l+A,u+j);else if(w>Xd){var de=Yd(g,w),fe=Yd(_,w),N=Qd(O,k,A,j,r,de,d),pe=Qd(E,D,ee,te,r,fe,d);e.moveTo(l+N.cx+N.x0,u+N.cy+N.y0),w<S&&de===fe?e.arc(l+N.cx,u+N.cy,w,Gd(N.y0,N.x0),Gd(pe.y0,pe.x0),!d):(de>0&&e.arc(l+N.cx,u+N.cy,de,Gd(N.y0,N.x0),Gd(N.y1,N.x1),!d),e.arc(l,u,r,Gd(N.cy+N.y1,N.cx+N.x1),Gd(pe.cy+pe.y1,pe.cx+pe.x1),!d),fe>0&&e.arc(l+pe.cx,u+pe.cy,fe,Gd(pe.y1,pe.x1),Gd(pe.y0,pe.x0),!d))}else e.moveTo(l+A,u+j),e.arc(l,u,r,s,c,!d);if(!(i>Xd)||!M)e.lineTo(l+ee,u+te);else if(T>Xd){var de=Yd(m,T),fe=Yd(h,T),N=Qd(ee,te,E,D,i,-fe,d),pe=Qd(A,j,O,k,i,-de,d);e.lineTo(l+N.cx+N.x0,u+N.cy+N.y0),T<C&&de===fe?e.arc(l+N.cx,u+N.cy,T,Gd(N.y0,N.x0),Gd(pe.y0,pe.x0),!d):(fe>0&&e.arc(l+N.cx,u+N.cy,fe,Gd(N.y0,N.x0),Gd(N.y1,N.x1),!d),e.arc(l,u,i,Gd(N.cy+N.y1,N.cx+N.x1),Gd(pe.cy+pe.y1,pe.cx+pe.x1),d),de>0&&e.arc(l+pe.cx,u+pe.cy,de,Gd(pe.y1,pe.x1),Gd(pe.y0,pe.x0),!d))}else e.lineTo(l+ee,u+te),e.arc(l,u,i,c,s,d)}e.closePath()}}}var tf=function(){function e(){this.cx=0,this.cy=0,this.r0=0,this.r=0,this.startAngle=0,this.endAngle=Math.PI*2,this.clockwise=!0,this.cornerRadius=0}return e}(),nf=function(e){D(t,e);function t(t){return e.call(this,t)||this}return t.prototype.getDefaultShape=function(){return new tf},t.prototype.buildPath=function(e,t){ef(e,t)},t.prototype.isZeroArea=function(){return this.shape.startAngle===this.shape.endAngle||this.shape.r===this.shape.r0},t}(fs);nf.prototype.type=`sector`;var rf=function(){function e(){this.cx=0,this.cy=0,this.r=0,this.r0=0}return e}(),af=function(e){D(t,e);function t(t){return e.call(this,t)||this}return t.prototype.getDefaultShape=function(){return new rf},t.prototype.buildPath=function(e,t){var n=t.cx,r=t.cy,i=Math.PI*2;e.moveTo(n+t.r,r),e.arc(n,r,t.r,0,i,!1),e.moveTo(n+t.r0,r),e.arc(n,r,t.r0,0,i,!0)},t}(fs);af.prototype.type=`ring`;function of(e,t,n,r){var i=[],a=[],o=[],s=[],c,l,u,d;if(r){u=[1/0,1/0],d=[-1/0,-1/0];for(var f=0,p=e.length;f<p;f++)fn(u,u,e[f]),pn(d,d,e[f]);fn(u,u,r[0]),pn(d,d,r[1])}for(var f=0,p=e.length;f<p;f++){var m=e[f];if(n)c=e[f?f-1:p-1],l=e[(f+1)%p];else if(f===0||f===p-1){i.push(Wt(e[f]));continue}else c=e[f-1],l=e[f+1];Jt(a,l,c),nn(a,a,t);var h=an(m,c),g=an(m,l),_=h+g;_!==0&&(h/=_,g/=_),nn(o,a,-h),nn(s,a,g);var v=Kt([],m,o),y=Kt([],m,s);r&&(pn(v,v,u),fn(v,v,d),pn(y,y,u),fn(y,y,d)),i.push(v),i.push(y)}return n&&i.push(i.shift()),i}function sf(e,t,n){var r=t.smooth,i=t.points;if(i&&i.length>=2){if(r){var a=of(i,r,n,t.smoothConstraint);e.moveTo(i[0][0],i[0][1]);for(var o=i.length,s=0;s<(n?o:o-1);s++){var c=a[s*2],l=a[s*2+1],u=i[(s+1)%o];e.bezierCurveTo(c[0],c[1],l[0],l[1],u[0],u[1])}}else{e.moveTo(i[0][0],i[0][1]);for(var s=1,d=i.length;s<d;s++)e.lineTo(i[s][0],i[s][1])}n&&e.closePath()}}var cf=function(){function e(){this.points=null,this.smooth=0,this.smoothConstraint=null}return e}(),lf=function(e){D(t,e);function t(t){return e.call(this,t)||this}return t.prototype.getDefaultShape=function(){return new cf},t.prototype.buildPath=function(e,t){sf(e,t,!0)},t}(fs);lf.prototype.type=`polygon`;var uf=function(){function e(){this.points=null,this.percent=1,this.smooth=0,this.smoothConstraint=null}return e}(),df=function(e){D(t,e);function t(t){return e.call(this,t)||this}return t.prototype.getDefaultStyle=function(){return{stroke:`#000`,fill:null}},t.prototype.getDefaultShape=function(){return new uf},t.prototype.buildPath=function(e,t){sf(e,t,!1)},t}(fs);df.prototype.type=`polyline`;var ff={},pf=function(){function e(){this.x1=0,this.y1=0,this.x2=0,this.y2=0,this.percent=1}return e}(),mf=function(e){D(t,e);function t(t){return e.call(this,t)||this}return t.prototype.getDefaultStyle=function(){return{stroke:`#000`,fill:null}},t.prototype.getDefaultShape=function(){return new pf},t.prototype.buildPath=function(e,t){var n,r,i,a;if(this.subPixelOptimize){var o=xs(ff,t,this.style);n=o.x1,r=o.y1,i=o.x2,a=o.y2}else n=t.x1,r=t.y1,i=t.x2,a=t.y2;var s=t.percent;s!==0&&(e.moveTo(n,r),s<1&&(i=n*(1-s)+i*s,a=r*(1-s)+a*s),e.lineTo(i,a))},t.prototype.pointAt=function(e){var t=this.shape;return[t.x1*(1-e)+t.x2*e,t.y1*(1-e)+t.y2*e]},t}(fs);mf.prototype.type=`line`;var hf=[],gf=function(){function e(){this.x1=0,this.y1=0,this.x2=0,this.y2=0,this.cpx1=0,this.cpy1=0,this.percent=1}return e}();function _f(e,t,n){var r=e.cpx2,i=e.cpy2;return r!=null||i!=null?[(n?qr:Kr)(e.x1,e.cpx1,e.cpx2,e.x2,t),(n?qr:Kr)(e.y1,e.cpy1,e.cpy2,e.y2,t)]:[(n?ei:$r)(e.x1,e.cpx1,e.x2,t),(n?ei:$r)(e.y1,e.cpy1,e.y2,t)]}var vf=function(e){D(t,e);function t(t){return e.call(this,t)||this}return t.prototype.getDefaultStyle=function(){return{stroke:`#000`,fill:null}},t.prototype.getDefaultShape=function(){return new gf},t.prototype.buildPath=function(e,t){var n=t.x1,r=t.y1,i=t.x2,a=t.y2,o=t.cpx1,s=t.cpy1,c=t.cpx2,l=t.cpy2,u=t.percent;u!==0&&(e.moveTo(n,r),c==null||l==null?(u<1&&(ri(n,o,i,u,hf),o=hf[1],i=hf[2],ri(r,s,a,u,hf),s=hf[1],a=hf[2]),e.quadraticCurveTo(o,s,i,a)):(u<1&&(Xr(n,o,c,i,u,hf),o=hf[1],c=hf[2],i=hf[3],Xr(r,s,l,a,u,hf),s=hf[1],l=hf[2],a=hf[3]),e.bezierCurveTo(o,s,c,l,i,a)))},t.prototype.pointAt=function(e){return _f(this.shape,e,!1)},t.prototype.tangentAt=function(e){var t=_f(this.shape,e,!0);return rn(t,t)},t}(fs);vf.prototype.type=`bezier-curve`;var yf=function(){function e(){this.cx=0,this.cy=0,this.r=0,this.startAngle=0,this.endAngle=Math.PI*2,this.clockwise=!0}return e}(),bf=function(e){D(t,e);function t(t){return e.call(this,t)||this}return t.prototype.getDefaultStyle=function(){return{stroke:`#000`,fill:null}},t.prototype.getDefaultShape=function(){return new yf},t.prototype.buildPath=function(e,t){var n=t.cx,r=t.cy,i=Math.max(t.r,0),a=t.startAngle,o=t.endAngle,s=t.clockwise,c=Math.cos(a),l=Math.sin(a);e.moveTo(c*i+n,l*i+r),e.arc(n,r,i,a,o,!s)},t}(fs);bf.prototype.type=`arc`;var xf=function(e){D(t,e);function t(){var t=e!==null&&e.apply(this,arguments)||this;return t.type=`compound`,t}return t.prototype._updatePathDirty=function(){for(var e=this.shape.paths,t=this.shapeChanged(),n=0;n<e.length;n++)t||=e[n].shapeChanged();t&&this.dirtyShape()},t.prototype.beforeBrush=function(){this._updatePathDirty();for(var e=this.shape.paths||[],t=this.getGlobalScale(),n=0;n<e.length;n++)e[n].path||e[n].createPathProxy(),e[n].path.setScale(t[0],t[1],e[n].segmentIgnoreThreshold)},t.prototype.buildPath=function(e,t){for(var n=t.paths||[],r=0;r<n.length;r++)n[r].buildPath(e,n[r].shape,!0)},t.prototype.afterBrush=function(){for(var e=this.shape.paths||[],t=0;t<e.length;t++)e[t].pathUpdated()},t.prototype.getBoundingRect=function(){return this._updatePathDirty.call(this),fs.prototype.getBoundingRect.call(this)},t}(fs),Sf=function(){function e(e){this.colorStops=e||[]}return e.prototype.addColorStop=function(e,t){this.colorStops.push({offset:e,color:t})},e}(),Cf=function(e){D(t,e);function t(t,n,r,i,a,o){var s=e.call(this,a)||this;return s.x=t??0,s.y=n??0,s.x2=r??1,s.y2=i??0,s.type=`linear`,s.global=o||!1,s}return t}(Sf),wf=function(e){D(t,e);function t(t,n,r,i,a){var o=e.call(this,i)||this;return o.x=t??.5,o.y=n??.5,o.r=r??.5,o.type=`radial`,o.global=a||!1,o}return t}(Sf),Tf=Math.min,Ef=Math.max,Df=Math.abs,Of=[0,0],kf=[0,0],Af=Rn(),jf=Af.minTv,Mf=Af.maxTv,Nf=function(){function e(e,t){this._corners=[],this._axes=[],this._origin=[0,0];for(var n=0;n<4;n++)this._corners[n]=new mn;for(var n=0;n<2;n++)this._axes[n]=new mn;e&&this.fromBoundingRect(e,t)}return e.prototype.fromBoundingRect=function(e,t){var n=this._corners,r=this._axes,i=e.x,a=e.y,o=i+e.width,s=a+e.height;if(n[0].set(i,a),n[1].set(o,a),n[2].set(o,s),n[3].set(i,s),t)for(var c=0;c<4;c++)n[c].transform(t);mn.sub(r[0],n[1],n[0]),mn.sub(r[1],n[3],n[0]),r[0].normalize(),r[1].normalize();for(var c=0;c<2;c++)this._origin[c]=r[c].dot(n[0])},e.prototype.intersect=function(e,t,n){var r=!0,i=!t;return t&&mn.set(t,0,0),Af.reset(n,!i),!this._intersectCheckOneSide(this,e,i,1)&&(r=!1,i)||!this._intersectCheckOneSide(e,this,i,-1)&&(r=!1,i)||!i&&!Af.negativeSize&&mn.copy(t,r?Af.useDir?Af.dirMinTv:jf:Mf),r},e.prototype._intersectCheckOneSide=function(e,t,n,r){for(var i=!0,a=0;a<2;a++){var o=e._axes[a];if(e._getProjMinMaxOnAxis(a,e._corners,Of),e._getProjMinMaxOnAxis(a,t._corners,kf),Af.negativeSize||Of[1]<kf[0]||Of[0]>kf[1]){if(i=!1,Af.negativeSize||n)return i;var s=Df(kf[0]-Of[1]),c=Df(Of[0]-kf[1]);Tf(s,c)>Mf.len()&&(s<c?mn.scale(Mf,o,-s*r):mn.scale(Mf,o,c*r))}else if(!n){var s=Df(kf[0]-Of[1]),c=Df(Of[0]-kf[1]);(Af.useDir||Tf(s,c)<jf.len())&&((s<c||!Af.bidirectional)&&(mn.scale(jf,o,s*r),Af.useDir&&Af.calcDirMTV()),(s>=c||!Af.bidirectional)&&(mn.scale(jf,o,-c*r),Af.useDir&&Af.calcDirMTV()))}}return i},e.prototype._getProjMinMaxOnAxis=function(e,t,n){for(var r=this._axes[e],i=this._origin,a=t[0].dot(r)+i[e],o=a,s=a,c=1;c<t.length;c++){var l=t[c].dot(r)+i[e];o=Tf(l,o),s=Ef(l,s)}n[0]=o+Af.touchThreshold,n[1]=s-Af.touchThreshold,Af.negativeSize=n[1]<n[0]},e}(),Pf=[],Ff=function(e){D(t,e);function t(){var t=e!==null&&e.apply(this,arguments)||this;return t.notClear=!0,t.incremental=1,t._displayables=[],t._temporaryDisplayables=[],t._cursor=0,t}return t.prototype.traverse=function(e,t){e.call(t,this)},t.prototype.useStyle=function(){this.style={}},t.prototype._useHoverStyle=function(){this.__hoverStyle=null},t.prototype.getCursor=function(){return this._cursor},t.prototype.innerAfterBrush=function(){this._cursor=this._displayables.length},t.prototype.clearDisplaybles=function(){this._displayables=[],this._temporaryDisplayables=[],this._cursor=0,this.markRedraw(),this.notClear=!1},t.prototype.clearTemporalDisplayables=function(){this._temporaryDisplayables=[]},t.prototype.addDisplayable=function(e,t){t?this._temporaryDisplayables.push(e):this._displayables.push(e),this.markRedraw()},t.prototype.addDisplayables=function(e,t){t||=!1;for(var n=0;n<e.length;n++)this.addDisplayable(e[n],t)},t.prototype.getDisplayables=function(){return this._displayables},t.prototype.getTemporalDisplayables=function(){return this._temporaryDisplayables},t.prototype.eachPendingDisplayable=function(e){for(var t=this._cursor;t<this._displayables.length;t++)e&&e(this._displayables[t]);for(var t=0;t<this._temporaryDisplayables.length;t++)e&&e(this._temporaryDisplayables[t])},t.prototype.update=function(){this.updateTransform();for(var e=this._cursor;e<this._displayables.length;e++){var t=this._displayables[e];t.parent=this,t.update(),t.parent=null}for(var e=0;e<this._temporaryDisplayables.length;e++){var t=this._temporaryDisplayables[e];t.parent=this,t.update(),t.parent=null}},t.prototype.getBoundingRect=function(){if(!this._rect){for(var e=new X(1/0,1/0,-1/0,-1/0),t=0;t<this._displayables.length;t++){var n=this._displayables[t],r=n.getBoundingRect().clone();n.needLocalTransform()&&r.applyTransform(n.getLocalTransform(Pf)),e.union(r)}this._rect=e}return this._rect},t.prototype.contain=function(e,t){var n=this.transformCoordToLocal(e,t);if(this.getBoundingRect().contain(n[0],n[1])){for(var r=0;r<this._displayables.length;r++)if(this._displayables[r].contain(e,t))return!0}return!1},t}(io),If=ml();function Lf(e,t,n,r,i){var a;if(t&&t.ecModel){var o=t.ecModel.getUpdatePayload();a=o&&o.animation}var s=t&&t.isAnimationEnabled(),c=e===`update`;if(s){var l=void 0,u=void 0,d=void 0;return r?(l=q(r.duration,200),u=q(r.easing,`cubicOut`),d=0):(l=t.getShallow(c?`animationDurationUpdate`:`animationDuration`),u=t.getShallow(c?`animationEasingUpdate`:`animationEasing`),d=t.getShallow(c?`animationDelayUpdate`:`animationDelay`)),a&&(a.duration!=null&&(l=a.duration),a.easing!=null&&(u=a.easing),a.delay!=null&&(d=a.delay)),W(d)&&(d=d(n,i)),W(l)&&(l=l(n)),{duration:l||0,delay:d,easing:u}}return null}function Rf(e,t,n,r,i,a,o){var s=!1,c;W(i)?(o=a,a=i,i=null):K(i)&&(a=i.cb,o=i.during,s=i.isFrom,c=i.removeOpt,i=i.dataIndex);var l=e===`leave`;l||t.stopAnimation(`leave`);var u=Lf(e,r,i,l?c||{}:null,r&&r.getAnimationDelayParams?r.getAnimationDelayParams(t,i):null);if(u&&u.duration>0){var d=u.duration,f=u.delay,p=u.easing,m={duration:d,delay:f||0,easing:p,done:a,force:!!a||!!o,setToFinal:!l,scope:e,during:o};s?t.animateFrom(n,m):t.animateTo(n,m)}else t.stopAnimation(),!s&&t.attr(n),o&&o(1),a&&a()}function zf(e,t,n,r,i,a){Rf(`update`,e,t,n,r,i,a)}function Bf(e,t,n,r,i,a){Rf(`enter`,e,t,n,r,i,a)}function Vf(e){if(!e.__zr)return!0;for(var t=0;t<e.animators.length;t++)if(e.animators[t].scope===`leave`)return!0;return!1}function Hf(e,t,n,r,i,a){Vf(e)||Rf(`leave`,e,t,n,r,i,a)}function Uf(e,t,n,r){e.removeTextContent(),e.removeTextGuideLine(),Hf(e,{style:{opacity:0}},t,n,r)}function Wf(e,t,n){function r(){e.parent&&e.parent.remove(e)}e.isGroup?e.traverse(function(e){e.isGroup||Uf(e,t,n,r)}):Uf(e,t,n,r)}function Gf(e){If(e).oldStyle=e.style}var Kf=e({Arc:()=>bf,BezierCurve:()=>vf,BoundingRect:()=>X,Circle:()=>Ld,CompoundPath:()=>xf,Ellipse:()=>zd,Group:()=>Fd,HOVER_LAYER_FOR_INCREMENTAL:()=>2,HOVER_LAYER_FROM_THRESHOLD:()=>1,HOVER_LAYER_NO:()=>0,Image:()=>vs,IncrementalDisplayable:()=>Ff,Line:()=>mf,LinearGradient:()=>Cf,OrientedBoundingRect:()=>Nf,Path:()=>fs,Point:()=>mn,Polygon:()=>lf,Polyline:()=>df,RadialGradient:()=>wf,Rect:()=>Es,Ring:()=>af,Sector:()=>nf,Text:()=>js,WH:()=>Yf,XY:()=>Jf,applyTransform:()=>up,calcZ2Range:()=>Np,clipPointsByRect:()=>hp,clipRectByRect:()=>gp,createIcon:()=>_p,decomposeTransform:()=>Lp,ensureCopyRect:()=>Ap,ensureCopyTransform:()=>jp,expandOrShrinkRect:()=>Sp,extendPath:()=>Qf,extendShape:()=>Xf,getCurrentCanvasPainter:()=>zp,getShapeClass:()=>ep,getTransform:()=>lp,groupTransition:()=>mp,initProps:()=>Bf,isBoundingRectAxisAligned:()=>Op,isElementRemoved:()=>Vf,lineLineIntersect:()=>yp,linePolygonIntersect:()=>vp,makeImage:()=>np,makePath:()=>tp,mergePath:()=>ip,payloadDisableAnimation:()=>Ip,registerShape:()=>$f,removeElement:()=>Hf,removeElementWithFadeOut:()=>Wf,resizePath:()=>ap,retrieveZInfo:()=>Mp,setTooltipConfig:()=>Tp,subPixelOptimize:()=>cp,subPixelOptimizeLine:()=>op,subPixelOptimizeRect:()=>sp,transformDirection:()=>dp,traverseElements:()=>Dp,traverseUpdateZ:()=>Pp,updateProps:()=>zf}),qf={},Jf=[`x`,`y`],Yf=[`width`,`height`];function Xf(e){return fs.extend(e)}var Zf=Nd;function Qf(e,t){return Zf(e,t)}function $f(e,t){qf[e]=t}function ep(e){if(qf.hasOwnProperty(e))return qf[e]}function tp(e,t,n,r){var i=Md(e,t);return n&&(r===`center`&&(n=rp(n,i.getBoundingRect())),ap(i,n)),i}function np(e,t,n){var r=new vs({style:{image:e,x:t.x,y:t.y,width:t.width,height:t.height},onload:function(e){if(n===`center`){var i={width:e.width,height:e.height};r.setStyle(rp(t,i))}}});return r}function rp(e,t){var n=t.width/t.height,r=e.height*n,i;r<=e.width?i=e.height:(r=e.width,i=r/n);var a=e.x+e.width/2,o=e.y+e.height/2;return{x:a-r/2,y:o-i/2,width:r,height:i}}var ip=Pd;function ap(e,t){if(e.applyTransform){var n=e.getBoundingRect().calculateTransform(t);e.applyTransform(n)}}function op(e,t){return xs(e,e,{lineWidth:t}),e}function sp(e,t){return Ss(e,e,t),e}var cp=Cs;function lp(e,t){for(var n=Nt([]);e&&e!==t;)Ft(n,e.getLocalTransform(),n),e=e.parent;return n}function up(e,t,n){return t&&!Ce(t)&&(t=kr.getLocalTransform(t)),n&&(t=zt([],t)),dn([],e,t)}function dp(e,t,n){var r=t[4]===0||t[5]===0||t[0]===0?1:Xs(2*t[4]/t[0]),i=t[4]===0||t[5]===0||t[2]===0?1:Xs(2*t[4]/t[2]),a=[e===`left`?-r:e===`right`?r:0,e===`top`?-i:e===`bottom`?i:0];return a=up(a,t,n),Xs(a[0])>Xs(a[1])?a[0]>0?`right`:`left`:a[1]>0?`bottom`:`top`}function fp(e){return!e.isGroup}function pp(e){return e.shape!=null}function mp(e,t,n){if(!e||!t)return;function r(e){var t={};return e.traverse(function(e){fp(e)&&e.anid&&(t[e.anid]=e)}),t}function i(e){var t={x:e.x,y:e.y,rotation:e.rotation};return pp(e)&&(t.shape=P(e.shape)),t}var a=r(e);t.traverse(function(e){if(fp(e)&&e.anid){var t=a[e.anid];if(t){var r=i(e);e.attr(i(t)),zf(e,r,n,Wl(e).dataIndex)}}})}function hp(e,t){return B(e,function(e){var n=e[0];n=Ys(n,t.x),n=Js(n,t.x+t.width);var r=e[1];return r=Ys(r,t.y),r=Js(r,t.y+t.height),[n,r]})}function gp(e,t){var n=Ys(e.x,t.x),r=Js(e.x+e.width,t.x+t.width),i=Ys(e.y,t.y),a=Js(e.y+e.height,t.y+t.height);if(r>=n&&a>=i)return{x:n,y:i,width:r-n,height:a-i}}function _p(e,t,n){var r=I({rectHover:!0},t),i=r.style={strokeNoScale:!0};if(n||={x:-1,y:-1,width:2,height:2},e)return e.indexOf(`image://`)===0?(i.image=e.slice(8),L(i,n),new vs(r)):tp(e.replace(`path://`,``),r,n,`center`)}function vp(e,t,n,r,i){for(var a=0,o=i[i.length-1];a<i.length;a++){var s=i[a];if(yp(e,t,n,r,s[0],s[1],o[0],o[1]))return!0;o=s}}function yp(e,t,n,r,i,a,o,s){var c=n-e,l=r-t,u=o-i,d=s-a,f=bp(u,d,c,l);if(xp(f))return!1;var p=e-i,m=t-a,h=bp(p,m,c,l)/f;if(h<0||h>1)return!1;var g=bp(p,m,u,d)/f;return!(g<0||g>1)}function bp(e,t,n,r){return e*r-n*t}function xp(e){return e<=1e-6&&e>=-1e-6}function Sp(e,t,n,r,i){return t==null?e:(Ae(t)?Cp[0]=Cp[1]=Cp[2]=Cp[3]=t:(Cp[0]=t[0],Cp[1]=t[1],Cp[2]=t[2],Cp[3]=t[3]),r&&(Cp[0]=Ys(0,Cp[0]),Cp[1]=Ys(0,Cp[1]),Cp[2]=Ys(0,Cp[2]),Cp[3]=Ys(0,Cp[3])),n&&(Cp[0]=-Cp[0],Cp[1]=-Cp[1],Cp[2]=-Cp[2],Cp[3]=-Cp[3]),wp(e,Cp,`x`,`width`,3,1,i&&i[0]||0),wp(e,Cp,`y`,`height`,0,2,i&&i[1]||0),e)}var Cp=[0,0,0,0];function wp(e,t,n,r,i,a,o){var s=t[a]+t[i],c=e[r];e[r]+=s,o=Ys(0,Js(o,c)),e[r]<o?(e[r]=o,e[n]+=t[i]>=0?-t[i]:t[a]>=0?c+t[a]:Xs(s)>1e-8?(c-o)*t[i]/s:0):e[n]-=t[i]}function Tp(e){var t=e.itemTooltipOption,n=e.componentModel,r=e.itemName,i=G(t)?{formatter:t}:t,a=n.mainType,o=n.componentIndex,s={componentType:a,name:r,$vars:[`name`]};s[a+`Index`]=o;var c=e.formatterParamsExtra;c&&z(V(c),function(e){et(s,e)||(s[e]=c[e],s.$vars.push(e))});var l=Wl(e.el);l.componentMainType=a,l.componentIndex=o,l.tooltipConfig={name:r,option:L({content:r,encodeHTMLContent:!0,formatterParams:s},i)}}function Ep(e,t){var n;e.isGroup&&(n=t(e)),n||e.traverse(t)}function Dp(e,t){if(e){if(U(e))for(var n=0;n<e.length;n++)Ep(e[n],t);else Ep(e,t)}}function Op(e){return!e||Xs(e[1])<kp&&Xs(e[2])<kp||Xs(e[0])<kp&&Xs(e[3])<kp}var kp=1e-5;function Ap(e,t){return e?X.copy(e,t):t.clone()}function jp(e,t){return t?Pt(e||Mt(),t):void 0}function Mp(e){return{z:e.get(`z`)||0,zlevel:e.get(`zlevel`)||0}}function Np(e){var t=-1/0,n=1/0;Ep(e,function(e){r(e),r(e.getTextContent()),r(e.getTextGuideLine())});function r(e){if(e&&!e.isGroup){var t=e.currentStates;if(t.length)for(var n=0;n<t.length;n++)i(e.states[t[n]]);i(e)}}function i(e){if(e){var r=e.z2;r>t&&(t=r),r<n&&(n=r)}}return n>t&&(n=t=0),{min:n,max:t}}function Pp(e,t,n){Fp(e,t,n,-1/0)}function Fp(e,t,n,r){if(e.ignoreModelZ)return r;var i=e.getTextContent(),a=e.getTextGuideLine();if(e.isGroup)for(var o=e.childrenRef(),s=0;s<o.length;s++)r=Ys(Fp(o[s],t,n,r),r);else e.z=t,e.zlevel=n,r=Ys(e.z2||0,r);if(i&&(i.z=t,i.zlevel=n,isFinite(r)&&(i.z2=r+2)),a){var c=e.textGuideLineConfig;a.z=t,a.zlevel=n,isFinite(r)&&(a.z2=r+(c&&c.showAbove?1:-1))}return r}function Ip(e){return e.animation={duration:0},e}function Lp(e,t){return t?Pt(Rp.transform,t):Nt(Rp.transform),Rp.decomposeTransform(),Nr(e,Rp),e}var Rp=new kr;Rp.transform=Mt();function zp(e){var t=e.getZr().painter;return t.getType()===`canvas`?t:null}$f(`circle`,Ld),$f(`ellipse`,zd),$f(`sector`,nf),$f(`ring`,af),$f(`polygon`,lf),$f(`polyline`,df),$f(`rect`,Es),$f(`line`,mf),$f(`bezierCurve`,vf),$f(`arc`,bf);var Bp={};function Vp(e,t){for(var n=0;n<lu.length;n++){var r=lu[n],i=t[r],a=e.ensureState(r);a.style=a.style||{},a.style.text=i}var o=e.currentStates.slice();e.clearStates(!0),e.setStyle({text:t.normal}),e.useStates(o,!0)}function Hp(e,t,n){var r=e.labelFetcher,i=e.labelDataIndex,a=e.labelDimIndex,o=t.normal,s;r&&(s=r.getFormattedLabel(i,`normal`,null,a,o&&o.get(`formatter`),n==null?null:{interpolatedValue:n})),s??=W(e.defaultText)?e.defaultText(i,e,n):e.defaultText;for(var c={normal:s},l=0;l<lu.length;l++){var u=lu[l],d=t[u];c[u]=q(r?r.getFormattedLabel(i,u,null,a,d&&d.get(`formatter`)):null,s)}return c}function Up(e,t,n,r){n||=Bp;for(var i=e instanceof js,a=!1,o=0;o<uu.length;o++){var s=t[uu[o]];if(s&&s.getShallow(`show`)){a=!0;break}}var c=i?e:e.getTextContent();if(a){i||(c||(c=new js,e.setTextContent(c)),e.stateProxy&&(c.stateProxy=e.stateProxy));var l=Hp(n,t),u=t.normal,d=!!u.getShallow(`show`),f=Gp(u,r&&r.normal,n,!1,!i);f.text=l.normal,i||e.setTextConfig(Kp(u,n,!1));for(var o=0;o<lu.length;o++){var p=lu[o],s=t[p];if(s){var m=c.ensureState(p),h=!!q(s.getShallow(`show`),d);if(h!==d&&(m.ignore=!h),m.style=Gp(s,r&&r[p],n,!0,!i),m.style.text=l[p],!i){var g=e.ensureState(p);g.textConfig=Kp(s,n,!0)}}}c.silent=!!u.getShallow(`silent`),c.style.x!=null&&(f.x=c.style.x),c.style.y!=null&&(f.y=c.style.y),c.ignore=!d,c.useStyle(f),c.dirty(),n.enableTextSetter&&(em(c).setLabelText=function(e){var r=Hp(n,t,e);Vp(c,r)})}else c&&(c.ignore=!0);e.dirty()}function Wp(e,t){t||=`label`;for(var n={normal:e.getModel(t)},r=0;r<lu.length;r++){var i=lu[r];n[i]=e.getModel([i,t])}return n}function Gp(e,t,n,r,i){var a={};return qp(a,e,n,r,i),t&&I(a,t),a}function Kp(e,t,n){t||={};var r={},i,a=e.getShallow(`rotate`),o=q(e.getShallow(`distance`),n?null:5),s=e.getShallow(`offset`);return i=e.getShallow(`position`)||(n?null:`inside`),i===`outside`&&(i=t.defaultOutsidePosition||`top`),i!=null&&(r.position=i),s!=null&&(r.offset=s),a!=null&&(a*=Math.PI/180,r.rotation=a),o!=null&&(r.distance=o),r.outsideFill=e.get(`color`)===`inherit`?t.inheritColor||null:`auto`,t.autoOverflowArea!=null&&(r.autoOverflowArea=t.autoOverflowArea),t.layoutRect!=null&&(r.layoutRect=t.layoutRect),r}function qp(e,t,n,r,i){n||=Bp;var a=t.ecModel,o=a&&a.option.textStyle,s=Jp(t),c;if(s){c={};var l=`richInheritPlainLabel`,u=q(t.get(l),a?a.get(l):void 0);for(var d in s)if(s.hasOwnProperty(d)){var f=t.getModel([`rich`,d]);Qp(c[d]={},f,o,t,u,n,r,i,!1,!0)}}c&&(e.rich=c);var p=t.get(`overflow`);p&&(e.overflow=p);var m=t.get(`lineOverflow`);m&&(e.lineOverflow=m);var h=e,g=t.get(`minMargin`);if(g!=null)g=Ae(g)?g/2:0,h.margin=[g,g,g,g],h.__marginType=nm.minMargin;else{var _=t.get(`textMargin`);_!=null&&(h.margin=Ve(_),h.__marginType=nm.textMargin)}Qp(e,t,o,null,null,n,r,i,!0,!1)}function Jp(e){for(var t;e&&e!==e.ecModel;){var n=(e.option||Bp).rich;if(n){t||={};for(var r=V(n),i=0;i<r.length;i++){var a=r[i];t[a]=1}}e=e.parentModel}return t}var Yp=[`fontStyle`,`fontWeight`,`fontSize`,`fontFamily`,`textShadowColor`,`textShadowBlur`,`textShadowOffsetX`,`textShadowOffsetY`],Xp=[`align`,`lineHeight`,`width`,`height`,`tag`,`verticalAlign`,`ellipsis`],Zp=[`padding`,`borderWidth`,`borderRadius`,`borderDashOffset`,`backgroundColor`,`borderColor`,`shadowColor`,`shadowBlur`,`shadowOffsetX`,`shadowOffsetY`];function Qp(e,t,n,r,i,a,o,s,c,l){n=!o&&n||Bp;var u=a&&a.inheritColor,d=t.getShallow(`color`),f=t.getShallow(`textBorderColor`),p=q(t.getShallow(`opacity`),n.opacity);(d===`inherit`||d===`auto`)&&(d=u||null),(f===`inherit`||f===`auto`)&&(f=u||null),s||(d||=n.color,f||=n.textBorderColor),d!=null&&(e.fill=d),f!=null&&(e.stroke=f);var m=q(t.getShallow(`textBorderWidth`),n.textBorderWidth);m!=null&&(e.lineWidth=m);var h=q(t.getShallow(`textBorderType`),n.textBorderType);h!=null&&(e.lineDash=h);var g=q(t.getShallow(`textBorderDashOffset`),n.textBorderDashOffset);g!=null&&(e.lineDashOffset=g),!o&&p==null&&!l&&(p=a&&a.defaultOpacity),p!=null&&(e.opacity=p),!o&&!s&&e.fill==null&&a.inheritColor&&(e.fill=a.inheritColor);for(var _=0;_<Yp.length;_++){var v=Yp[_],y=i!==!1&&r?ze(t.getShallow(v),r.getShallow(v),n[v]):q(t.getShallow(v),n[v]);y!=null&&(e[v]=y)}for(var _=0;_<Xp.length;_++){var v=Xp[_],y=t.getShallow(v);y!=null&&(e[v]=y)}if(e.verticalAlign==null){var b=t.getShallow(`baseline`);b!=null&&(e.verticalAlign=b)}if(!c||!a.disableBox){for(var _=0;_<Zp.length;_++){var v=Zp[_],y=t.getShallow(v);y!=null&&(e[v]=y)}var x=t.getShallow(`borderType`);x!=null&&(e.borderDash=x),(e.backgroundColor===`auto`||e.backgroundColor===`inherit`)&&u&&(e.backgroundColor=u),(e.borderColor===`auto`||e.borderColor===`inherit`)&&u&&(e.borderColor=u)}}function $p(e,t){var n=t&&t.getModel(`textStyle`);return Ue([e.fontStyle||n&&n.getShallow(`fontStyle`)||``,e.fontWeight||n&&n.getShallow(`fontWeight`)||``,(e.fontSize||n&&n.getShallow(`fontSize`)||12)+`px`,e.fontFamily||n&&n.getShallow(`fontFamily`)||`sans-serif`].join(` `))}var em=ml();function tm(e,t,n,r){if(e){var i=em(e);i.prevValue=i.value,i.value=n;var a=t.normal;i.valueAnimation=a.get(`valueAnimation`),i.valueAnimation&&(i.precision=a.get(`precision`),i.defaultInterpolatedText=r,i.statesModels=t)}}var nm={minMargin:1,textMargin:2},rm=[`textStyle`,`color`],im=[`fontStyle`,`fontWeight`,`fontSize`,`fontFamily`,`padding`,`lineHeight`,`rich`,`width`,`height`,`overflow`],am=new js,om=function(){function e(){}return e.prototype.getTextColor=function(e){var t=this.ecModel;return this.getShallow(`color`)||(!e&&t?t.get(rm):null)},e.prototype.getFont=function(){return $p({fontStyle:this.getShallow(`fontStyle`),fontWeight:this.getShallow(`fontWeight`),fontSize:this.getShallow(`fontSize`),fontFamily:this.getShallow(`fontFamily`)},this.ecModel)},e.prototype.getTextRect=function(e){for(var t={text:e,verticalAlign:this.getShallow(`verticalAlign`)||this.getShallow(`baseline`)},n=0;n<im.length;n++)t[im[n]]=this.getShallow(im[n]);return am.useStyle(t),am.update(),am.getBoundingRect()},e}(),sm=[[`lineWidth`,`width`],[`stroke`,`color`],[`opacity`],[`shadowBlur`],[`shadowOffsetX`],[`shadowOffsetY`],[`shadowColor`],[`lineDash`,`type`],[`lineDashOffset`,`dashOffset`],[`lineCap`,`cap`],[`lineJoin`,`join`],[`miterLimit`]],cm=bt(sm),lm=function(){function e(){}return e.prototype.getLineStyle=function(e){return cm(this,e)},e}(),um=[[`fill`,`color`],[`stroke`,`borderColor`],[`lineWidth`,`borderWidth`],[`opacity`],[`shadowBlur`],[`shadowOffsetX`],[`shadowOffsetY`],[`shadowColor`],[`lineDash`,`borderType`],[`lineDashOffset`,`borderDashOffset`],[`lineCap`,`borderCap`],[`lineJoin`,`borderJoin`],[`miterLimit`,`borderMiterLimit`]],dm=bt(um),fm=function(){function e(){}return e.prototype.getItemStyle=function(e,t){return dm(this,e,t)},e}(),pm=function(){function e(e,t,n){this.parentModel=t,this.ecModel=n,this.option=e}return e.prototype.init=function(e,t,n){},e.prototype.mergeOption=function(e,t){F(this.option,e,!0)},e.prototype.get=function(e,t){return e==null?this.option:this._doGet(this.parsePath(e),!t&&this.parentModel)},e.prototype.getShallow=function(e,t){var n=this.option,r=n==null?n:n[e];if(r==null&&!t){var i=this.parentModel;i&&(r=i.getShallow(e))}return r},e.prototype.getModel=function(t,n){var r=t!=null,i=r?this.parsePath(t):null,a=r?this._doGet(i):this.option;return n||=this.parentModel&&this.parentModel.getModel(this.resolveParentPath(i)),new e(a,n,this.ecModel)},e.prototype.isEmpty=function(){return this.option==null},e.prototype.restoreData=function(){},e.prototype.clone=function(){var e=this.constructor;return new e(P(this.option))},e.prototype.parsePath=function(e){return typeof e==`string`?e.split(`.`):e},e.prototype.resolveParentPath=function(e){return e},e.prototype.isAnimationEnabled=function(){if(!Y.node&&this.option){if(this.option.animation!=null)return!!this.option.animation;if(this.parentModel)return this.parentModel.isAnimationEnabled()}},e.prototype._doGet=function(e,t){var n=this.option;if(!e)return n;for(var r=0;r<e.length&&!(e[r]&&(n=n&&typeof n==`object`?n[e[r]]:null,n==null));r++);return n==null&&t&&(n=t._doGet(this.resolveParentPath(e),t.parentModel)),n},e}();ft(pm),gt(pm),Se(pm,lm),Se(pm,fm),Se(pm,St),Se(pm,om);function mm(e){return e==null?0:e.length||1}function hm(e){return e}var gm=function(){function e(e,t,n,r,i,a){this._old=e,this._new=t,this._oldKeyGetter=n||hm,this._newKeyGetter=r||hm,this.context=i,this._diffModeMultiple=a===`multiple`}return e.prototype.add=function(e){return this._add=e,this},e.prototype.update=function(e){return this._update=e,this},e.prototype.updateManyToOne=function(e){return this._updateManyToOne=e,this},e.prototype.updateOneToMany=function(e){return this._updateOneToMany=e,this},e.prototype.updateManyToMany=function(e){return this._updateManyToMany=e,this},e.prototype.remove=function(e){return this._remove=e,this},e.prototype.execute=function(){this[this._diffModeMultiple?`_executeMultiple`:`_executeOneToOne`]()},e.prototype._executeOneToOne=function(){var e=this._old,t=this._new,n={},r=Array(e.length),i=Array(t.length);this._initIndexMap(e,null,r,`_oldKeyGetter`),this._initIndexMap(t,n,i,`_newKeyGetter`);for(var a=0;a<e.length;a++){var o=r[a],s=n[o],c=mm(s);if(c>1){var l=s.shift();s.length===1&&(n[o]=s[0]),this._update&&this._update(l,a)}else c===1?(n[o]=null,this._update&&this._update(s,a)):this._remove&&this._remove(a)}this._performRestAdd(i,n)},e.prototype._executeMultiple=function(){var e=this._old,t=this._new,n={},r={},i=[],a=[];this._initIndexMap(e,n,i,`_oldKeyGetter`),this._initIndexMap(t,r,a,`_newKeyGetter`);for(var o=0;o<i.length;o++){var s=i[o],c=n[s],l=r[s],u=mm(c),d=mm(l);if(u>1&&d===1)this._updateManyToOne&&this._updateManyToOne(l,c),r[s]=null;else if(u===1&&d>1)this._updateOneToMany&&this._updateOneToMany(l,c),r[s]=null;else if(u===1&&d===1)this._update&&this._update(l,c),r[s]=null;else if(u>1&&d>1)this._updateManyToMany&&this._updateManyToMany(l,c),r[s]=null;else if(u>1)for(var f=0;f<u;f++)this._remove&&this._remove(c[f]);else this._remove&&this._remove(c)}this._performRestAdd(a,r)},e.prototype._performRestAdd=function(e,t){for(var n=0;n<e.length;n++){var r=e[n],i=t[r],a=mm(i);if(a>1)for(var o=0;o<a;o++)this._add&&this._add(i[o]);else a===1&&this._add&&this._add(i);t[r]=null}},e.prototype._initIndexMap=function(e,t,n,r){for(var i=this._diffModeMultiple,a=0;a<e.length;a++){var o=`_ec_`+this[r](e[a],a);if(i||(n[a]=o),t){var s=t[o],c=mm(s);c===0?(t[o]=a,i&&n.push(o)):c===1?t[o]=[s,a]:s.push(a)}}},e}(),_m={Must:1,Might:2,Not:3},vm=ml();function ym(e){vm(e).datasetMap=J()}function bm(e,t,n){var r={},i=Sm(t);if(!i||!e)return r;var a=[],o=[],s=t.ecModel,c=vm(s).datasetMap,l=i.uid+`_`+n.seriesLayoutBy,u,d;e=e.slice(),z(e,function(t,n){var i=K(t)?t:e[n]={name:t};i.type===`ordinal`&&u==null&&(u=n,d=m(i)),r[i.name]=[]});var f=c.get(l)||c.set(l,{categoryWayDim:d,valueWayDim:0});z(e,function(e,t){var n=e.name,i=m(e);if(u==null){var s=f.valueWayDim;p(r[n],s,i),p(o,s,i),f.valueWayDim+=i}else if(u===t)p(r[n],0,i),p(a,0,i);else{var s=f.categoryWayDim;p(r[n],s,i),p(o,s,i),f.categoryWayDim+=i}});function p(e,t,n){for(var r=0;r<n;r++)e.push(t+r)}function m(e){var t=e.dimsDef;return t?t.length:1}return a.length&&(r.itemName=a),o.length&&(r.seriesName=o),r}function xm(e,t,n){var r={};if(!Sm(e))return r;var i=t.sourceFormat,a=t.dimensionsDefine,o;(i===`objectRows`||i===`keyedColumns`)&&z(a,function(e,t){(K(e)?e.name:e)===`name`&&(o=t)});var s=function(){for(var e={},r={},s=[],c=0,l=Math.min(5,n);c<l;c++){var u=Tm(t.data,i,t.seriesLayoutBy,a,t.startIndex,c);s.push(u);var d=u===_m.Not;if(d&&e.v==null&&c!==o&&(e.v=c),(e.n==null||e.n===e.v||!d&&s[e.n]===_m.Not)&&(e.n=c),f(e)&&s[e.n]!==_m.Not)return e;d||(u===_m.Might&&r.v==null&&c!==o&&(r.v=c),(r.n==null||r.n===r.v)&&(r.n=c))}function f(e){return e.v!=null&&e.n!=null}return f(e)?e:f(r)?r:null}();if(s){r.value=[s.v];var c=o??s.n;r.itemName=[c],r.seriesName=[c]}return r}function Sm(e){if(!e.get(`data`,!0))return bl(e.ecModel,`dataset`,{index:e.get(`datasetIndex`,!0),id:e.get(`datasetId`,!0)},vl).models[0]}function Cm(e){return!e.get(`transform`,!0)&&!e.get(`fromTransformResult`,!0)?[]:bl(e.ecModel,`dataset`,{index:e.get(`fromDatasetIndex`,!0),id:e.get(`fromDatasetId`,!0)},vl).models}function wm(e,t){return Tm(e.data,e.sourceFormat,e.seriesLayoutBy,e.dimensionsDefine,e.startIndex,t)}function Tm(e,t,n,r,i,a){var o,s=5;if(Me(e))return _m.Not;var c,l;if(r){var u=r[a];K(u)?(c=u.name,l=u.type):G(u)&&(c=u)}if(l!=null)return l===`ordinal`?_m.Must:_m.Not;if(t===`arrayRows`){var d=e;if(n===`row`){for(var f=d[a],p=0;p<(f||[]).length&&p<s;p++)if((o=b(f[i+p]))!=null)return o}else for(var p=0;p<d.length&&p<s;p++){var m=d[i+p];if(m&&(o=b(m[a]))!=null)return o}}else if(t===`objectRows`){var h=e;if(!c)return _m.Not;for(var p=0;p<h.length&&p<s;p++){var g=h[p];if(g&&(o=b(g[c]))!=null)return o}}else if(t===`keyedColumns`){var _=e;if(!c)return _m.Not;var f=_[c];if(!f||Me(f))return _m.Not;for(var p=0;p<f.length&&p<s;p++)if((o=b(f[p]))!=null)return o}else if(t===`original`)for(var v=e,p=0;p<v.length&&p<s;p++){var g=v[p],y=Yc(g);if(!U(y))return _m.Not;if((o=b(y[a]))!=null)return o}function b(e){var t=G(e);if(e!=null&&isFinite(Number(e))&&e!==``)return t?_m.Might:_m.Not;if(t&&e!==`-`)return _m.Must}return _m.Not}var Em=function(){function e(e){this.data=e.data||(e.sourceFormat===`keyedColumns`?{}:[]),this.sourceFormat=e.sourceFormat||`unknown`,this.seriesLayoutBy=e.seriesLayoutBy||`column`,this.startIndex=e.startIndex||0,this.dimensionsDetectedCount=e.dimensionsDetectedCount,this.metaRawOption=e.metaRawOption;var t=this.dimensionsDefine=e.dimensionsDefine;if(t)for(var n=0;n<t.length;n++){var r=t[n];r.type==null&&wm(this,n)===_m.Must&&(r.type=`ordinal`)}}return e}();function Dm(e){return e instanceof Em}function Om(e,t,n){n||=jm(e);var r=t.seriesLayoutBy,i=Mm(e,n,r,t.sourceHeader,t.dimensions);return new Em({data:e,sourceFormat:n,seriesLayoutBy:r,dimensionsDefine:i.dimensionsDefine,startIndex:i.startIndex,dimensionsDetectedCount:i.dimensionsDetectedCount,metaRawOption:P(t)})}function km(e){return new Em({data:e,sourceFormat:Me(e)?Ql:Jl})}function Am(e){return new Em({data:e.data,sourceFormat:e.sourceFormat,seriesLayoutBy:e.seriesLayoutBy,dimensionsDefine:P(e.dimensionsDefine),startIndex:e.startIndex,dimensionsDetectedCount:e.dimensionsDetectedCount})}function jm(e){var t=$l;if(Me(e))t=Ql;else if(U(e)){e.length===0&&(t=Yl);for(var n=0,r=e.length;n<r;n++){var i=e[n];if(i!=null){if(U(i)||Me(i)){t=Yl;break}if(K(i)){t=Xl;break}}}}else if(K(e)){for(var a in e)if(et(e,a)&&Ce(e[a])){t=Zl;break}}return t}function Mm(e,t,n,r,i){var a,o;if(!e)return{dimensionsDefine:Pm(i),startIndex:o,dimensionsDetectedCount:a};if(t===`arrayRows`){var s=e;r===`auto`||r==null?Fm(function(e){e!=null&&e!==`-`&&(G(e)?o??=1:o=0)},n,s,10):o=Ae(r)?r:+!!r,!i&&o===1&&(i=[],Fm(function(e,t){i[t]=e==null?``:e+``},n,s,1/0)),a=i?i.length:n===`row`?s.length:s[0]?s[0].length:null}else if(t===`objectRows`)i||=Nm(e);else if(t===`keyedColumns`)i||(i=[],z(e,function(e,t){i.push(t)}));else if(t===`original`){var c=Yc(e[0]);a=U(c)&&c.length||1}return{startIndex:o,dimensionsDefine:Pm(i),dimensionsDetectedCount:a}}function Nm(e){for(var t=0,n;t<e.length&&!(n=e[t++]););if(n)return V(n)}function Pm(e){if(e){var t=J();return B(e,function(e,n){e=K(e)?e:{name:e};var r={name:e.name,displayName:e.displayName,type:e.type};if(r.name==null)return r;r.name+=``,r.displayName??=r.name;var i=t.get(r.name);return i?r.name+=`-`+i.count++:t.set(r.name,{count:1}),r})}}function Fm(e,t,n,r){if(t===`row`)for(var i=0;i<n.length&&i<r;i++)e(n[i]?n[i][0]:null,i);else for(var a=n[0]||[],i=0;i<a.length&&i<r;i++)e(a[i],i)}function Im(e){var t=e.sourceFormat;return t===`objectRows`||t===`keyedColumns`}var Lm,Rm,zm,Bm,Vm,Hm,Um=function(){function e(e,t){var n=Dm(e)?e:km(e);this._source=n;var r=this._data=n.data,i=n.sourceFormat;n.seriesLayoutBy,i===`typedArray`&&(this._offset=0,this._dimSize=t,this._data=r),Hm(this,r,n)}return e.prototype.getSource=function(){return this._source},e.prototype.count=function(){return 0},e.prototype.getItem=function(e,t){},e.prototype.appendData=function(e){},e.prototype.clean=function(){},e.protoInitialize=function(){var t=e.prototype;t.pure=!1,t.persistent=!0}(),e.internalField=function(){var e;Hm=function(e,i,a){var o=a.sourceFormat,s=a.seriesLayoutBy,c=a.startIndex,l=a.dimensionsDefine,u=Vm[eh(o,s)];I(e,u),o===`typedArray`?(e.getItem=t,e.count=r,e.fillStorage=n):(e.getItem=H(qm(o,s),null,i,c,l),e.count=H(Xm(o,s),null,i,c,l))};var t=function(e,t){e-=this._offset,t||=[];for(var n=this._data,r=this._dimSize,i=r*e,a=0;a<r;a++)t[a]=n[i+a];return t},n=function(e,t,n,r){for(var i=this._data,a=this._dimSize,o=0;o<a;o++){for(var s=r[o],c=s[0]==null?1/0:s[0],l=s[1]==null?-1/0:s[1],u=t-e,d=n[o],f=0;f<u;f++){var p=i[f*a+o];d[e+f]=p,p<c&&(c=p),p>l&&(l=p)}s[0]=c,s[1]=l}},r=function(){return this._data?this._data.length/this._dimSize:0};Vm=(e={},e[Yl+`_`+eu]={pure:!0,appendData:i},e[Yl+`_row`]={pure:!0,appendData:function(){throw Error(`Do not support appendData when set seriesLayoutBy: "row".`)}},e[Xl]={pure:!0,appendData:i},e[Zl]={pure:!0,appendData:function(e){var t=this._data;z(e,function(e,n){for(var r=t[n]||(t[n]=[]),i=0;i<(e||[]).length;i++)r.push(e[i])})}},e[Jl]={appendData:i},e[Ql]={persistent:!1,pure:!0,appendData:function(e){this._data=e},clean:function(){this._offset+=this.count(),this._data=null}},e);function i(e){for(var t=0;t<e.length;t++)this._data.push(e[t])}}(),e}(),Wm=function(e){U(e)||Vc(`series.data or dataset.source must be an array.`)};Lm={},Lm[Yl+`_`+eu]=Wm,Lm[Yl+`_row`]=Wm,Lm[Xl]=Wm,Lm[Zl]=function(e,t){for(var n=0;n<t.length;n++)t[n].name??Vc(`dimension name must not be null/undefined.`)},Lm[Jl]=Wm;var Gm=function(e,t,n,r){return e[r]},Km=(Rm={},Rm[Yl+`_`+eu]=function(e,t,n,r){return e[r+t]},Rm[Yl+`_row`]=function(e,t,n,r,i){r+=t;for(var a=i||[],o=e,s=0;s<o.length;s++){var c=o[s];a[s]=c?c[r]:null}return a},Rm[Xl]=Gm,Rm[Zl]=function(e,t,n,r,i){for(var a=i||[],o=0;o<n.length;o++){var s=n[o].name,c=s==null?null:e[s];a[o]=c?c[r]:null}return a},Rm[Jl]=Gm,Rm);function qm(e,t){return Km[eh(e,t)]}var Jm=function(e,t,n){return e.length},Ym=(zm={},zm[Yl+`_`+eu]=function(e,t,n){return Math.max(0,e.length-t)},zm[Yl+`_row`]=function(e,t,n){var r=e[0];return r?Math.max(0,r.length-t):0},zm[Xl]=Jm,zm[Zl]=function(e,t,n){var r=n[0].name,i=r==null?null:e[r];return i?i.length:0},zm[Jl]=Jm,zm);function Xm(e,t){return Ym[eh(e,t)]}var Zm=function(e,t,n){return e[t]},Qm=(Bm={},Bm[Yl]=Zm,Bm[Xl]=function(e,t,n){return e[n]},Bm[Zl]=Zm,Bm[Jl]=function(e,t,n){var r=Yc(e);return r instanceof Array?r[t]:r},Bm[Ql]=Zm,Bm);function $m(e){return Qm[e]}function eh(e,t){return e===`arrayRows`?e+`_`+t:e}function th(e,t,n){if(e){var r=e.getRawDataItem(t);if(r!=null){var i=e.getStore(),a=i.getSource().sourceFormat;if(n!=null){var o=e.getDimensionIndex(n),s=i.getDimensionProperty(o);return $m(a)(r,o,s)}var c=r;return a===`original`&&(c=Yc(r)),c}}}var nh=function(){function e(e,t){this._encode=e,this._schema=t}return e.prototype.get=function(){return{fullDimensions:this._getFullDimensionNames(),encode:this._encode}},e.prototype._getFullDimensionNames=function(){return this._cachedDimNames||=this._schema?this._schema.makeOutputDimensionNames():[],this._cachedDimNames},e}();function rh(e,t){var n={},r=n.encode={},i=J(),a=[],o=[],s={};z(e.dimensions,function(t){var n=e.getDimensionInfo(t),c=n.coordDim;if(c){var l=n.coordDimIndex;ih(r,c)[l]=t,n.isExtraCoord||(i.set(c,1),oh(n.type)&&(a[0]=t),ih(s,c)[l]=e.getDimensionIndex(n.name)),n.defaultTooltip&&o.push(t)}ql.each(function(e,t){var i=ih(r,t),a=n.otherDims[t];a!=null&&a!==!1&&(i[a]=n.name)})});var c=[],l={};i.each(function(e,t){var n=r[t];l[t]=n[0],c=c.concat(n)}),n.dataDimsOnCoord=c,n.dataDimIndicesOnCoord=B(c,function(t){return e.getDimensionInfo(t).storeDimIndex}),n.encodeFirstDimNotExtra=l;var u=r.label;u&&u.length&&(a=u.slice());var d=r.tooltip;return d&&d.length?o=d.slice():o.length||(o=a.slice()),r.defaultedLabel=a,r.defaultedTooltip=o,n.userOutput=new nh(s,t),n}function ih(e,t){return e.hasOwnProperty(t)||(e[t]=[]),e[t]}function ah(e){return e===`category`?`ordinal`:e===`time`?`time`:`float`}function oh(e){return e!==`ordinal`&&e!==`time`}var sh=function(){function e(e){this.otherDims={},e!=null&&I(this,e)}return e}();function ch(e,t){var n=t&&t.type;return n===`ordinal`?e:(n===`time`&&!Ae(e)&&e!=null&&e!==`-`&&(e=+Tc(e)),e==null||e===``?NaN:Number(e))}J({number:function(e){return parseFloat(e)},time:function(e){return+Tc(e)},trim:function(e){return G(e)?Ue(e):e}});var lh={lt:function(e,t){return e<t},lte:function(e,t){return e<=t},gt:function(e,t){return e>t},gte:function(e,t){return e>=t}};(function(){function e(e,t){Ae(t)||Hc(``),this._opFn=lh[e],this._rvalFloat=jc(t)}return e.prototype.evaluate=function(e){return Ae(e)?this._opFn(e,this._rvalFloat):this._opFn(jc(e),this._rvalFloat)},e})();var uh=function(){function e(e,t){var n=e===`desc`;this._resultLT=n?1:-1,t??=n?`min`:`max`,this._incomparable=t===`min`?-1/0:1/0}return e.prototype.evaluate=function(e,t){var n=Ae(e)?e:jc(e),r=Ae(t)?t:jc(t),i=isNaN(n),a=isNaN(r);if(i&&(n=this._incomparable),a&&(r=this._incomparable),i&&a){var o=G(e),s=G(t);o&&(n=s?e:0),s&&(r=o?t:0)}return n<r?this._resultLT:n>r?-this._resultLT:0},e}();(function(){function e(e,t){this._rval=t,this._isEQ=e,this._rvalTypeof=typeof t,this._rvalFloat=jc(t)}return e.prototype.evaluate=function(e){var t=e===this._rval;if(!t){var n=typeof e;n!==this._rvalTypeof&&(n===`number`||this._rvalTypeof===`number`)&&(t=jc(e)===this._rvalFloat)}return this._isEQ?t:!t},e})();function dh(e){var t=``,n=-1/0,r=-1/0,i=1/0,a=1/0;return e&&(e.g!=null&&(t+=`G`+e.g,n=e.g),e.ge!=null&&(t+=`GE`+e.ge,r=e.ge),e.l!=null&&(t+=`L`+e.l,i=e.l),e.le!=null&&(t+=`LE`+e.le,a=e.le)),{key:t,g:n,ge:r,l:i,le:a}}function fh(e,t){return t>e.g&&t>=e.ge&&t<e.l&&t<=e.le}var ph=typeof Uint32Array>`u`?Array:Uint32Array,mh=typeof Uint16Array>`u`?Array:Uint16Array,hh=typeof Int32Array>`u`?Array:Int32Array,gh=typeof Float64Array>`u`?Array:Float64Array,_h={float:gh,int:hh,ordinal:Array,number:Array,time:gh},vh;function yh(e){return e>65535?ph:mh}function bh(e){var t=e.constructor;return t===Array?e.slice():new t(e)}function xh(e,t,n,r,i){var a=_h[n||`float`];if(i){var o=e[t],s=o&&o.length;if(s!==r){for(var c=new a(r),l=0;l<s;l++)c[l]=o[l];e[t]=c}}else e[t]=new a(r)}var Sh=function(){function e(){this._chunks=[],this._rawExtent=[],this._extent=[],this._count=0,this._rawCount=0,this._calcDimNameToIdx=J()}return e.prototype.initData=function(e,t,n){this._provider=e,this._chunks=[],this._indices=null,this.getRawIndex=this._getRawIdxIdentity;var r=e.getSource(),i=this.defaultDimValueGetter=vh[r.sourceFormat];this._dimValueGetter=n||i,this._rawExtent=[],Im(r),this._dimensions=B(t,function(e){return{type:e.type,property:e.property}}),this._initDataFromProvider(0,e.count())},e.prototype.getProvider=function(){return this._provider},e.prototype.getSource=function(){return this._provider.getSource()},e.prototype.ensureCalculationDimension=function(e,t){var n=this._calcDimNameToIdx,r=this._dimensions,i=n.get(e);if(i!=null){if(r[i].type===t)return i}else i=r.length;return r[i]={type:t},n.set(e,i),this._chunks[i]=new _h[t||`float`](this._rawCount),this._rawExtent[i]=El(),i},e.prototype.collectOrdinalMeta=function(e,t){var n=this._chunks[e],r=this._dimensions[e],i=this._rawExtent,a=r.ordinalOffset||0,o=n.length;a===0&&(i[e]=El());for(var s=i[e],c=a;c<o;c++){var l=n[c]=t.parseAndCollect(n[c]);isNaN(l)||(s[0]=Math.min(l,s[0]),s[1]=Math.max(l,s[1]))}r.ordinalMeta=t,r.ordinalOffset=o,r.type=`ordinal`},e.prototype.getOrdinalMeta=function(e){return this._dimensions[e].ordinalMeta},e.prototype.getDimensionProperty=function(e){var t=this._dimensions[e];return t&&t.property},e.prototype.appendData=function(e){var t=this._provider,n=this.count();t.appendData(e);var r=t.count();return t.persistent||(r+=n),n<r&&this._initDataFromProvider(n,r,!0),[n,r]},e.prototype.appendValues=function(e,t){for(var n=this._chunks,r=this._dimensions,i=r.length,a=this._rawExtent,o=this.count(),s=o+Math.max(e.length,t||0),c=0;c<i;c++){var l=r[c];xh(n,c,l.type,s,!0)}for(var u=[],d=o;d<s;d++)for(var f=d-o,p=0;p<i;p++){var l=r[p],m=vh.arrayRows.call(this,e[f]||u,l.property,f,p);n[p][d]=m;var h=a[p];m<h[0]&&(h[0]=m),m>h[1]&&(h[1]=m)}return this._rawCount=this._count=s,{start:o,end:s}},e.prototype._initDataFromProvider=function(e,t,n){for(var r=this._provider,i=this._chunks,a=this._dimensions,o=a.length,s=this._rawExtent,c=B(a,function(e){return e.property}),l=0;l<o;l++){var u=a[l];s[l]||(s[l]=El()),xh(i,l,u.type,t,n)}if(r.fillStorage)r.fillStorage(e,t,i,s);else for(var d=[],f=e;f<t;f++){d=r.getItem(f,d);for(var p=0;p<o;p++){var m=i[p],h=this._dimValueGetter(d,c[p],f,p);m[f]=h;var g=s[p];h<g[0]&&(g[0]=h),h>g[1]&&(g[1]=h)}}!r.persistent&&r.clean&&r.clean(),this._rawCount=this._count=t,this._extent=[]},e.prototype.count=function(){return this._count},e.prototype.get=function(e,t){if(!(t>=0&&t<this._count))return NaN;var n=this._chunks[e];return n?n[this.getRawIndex(t)]:NaN},e.prototype.getValues=function(e,t){var n=[],r=[];if(t==null){t=e,e=[];for(var i=0;i<this._dimensions.length;i++)r.push(i)}else r=e;for(var i=0,a=r.length;i<a;i++)n.push(this.get(r[i],t));return n},e.prototype.getByRawIndex=function(e,t){if(!(t>=0&&t<this._rawCount))return NaN;var n=this._chunks[e];return n?n[t]:NaN},e.prototype.getSum=function(e){var t=this._chunks[e],n=0;if(t)for(var r=0,i=this.count();r<i;r++){var a=this.get(e,r);isNaN(a)||(n+=a)}return n},e.prototype.getMedian=function(e){var t=[];this.each([e],function(e){isNaN(e)||t.push(e)}),pc(t);var n=this.count();return n===0?0:n%2==1?t[(n-1)/2]:(t[n/2]+t[n/2-1])/2},e.prototype.indexOfRawIndex=function(e){if(e>=this._rawCount||e<0)return-1;if(!this._indices)return e;var t=this._indices,n=t[e];if(n!=null&&n<this._count&&n===e)return e;for(var r=0,i=this._count-1;r<=i;){var a=(r+i)/2|0;if(t[a]<e)r=a+1;else if(t[a]>e)i=a-1;else return a}return-1},e.prototype.getIndices=function(){var e,t=this._indices;if(t){var n=t.constructor,r=this._count;if(n===Array){e=new n(r);for(var i=0;i<r;i++)e[i]=t[i]}else e=new n(t.buffer,0,r)}else{var n=yh(this._rawCount);e=new n(this.count());for(var i=0;i<e.length;i++)e[i]=i}return e},e.prototype.filter=function(e,t){if(!this._count)return this;for(var n=this.clone(),r=n.count(),i=new(yh(n._rawCount))(r),a=[],o=e.length,s=0,c=e[0],l=n._chunks,u=0;u<r;u++){var d=void 0,f=n.getRawIndex(u);if(o===0)d=t(u);else if(o===1){var p=l[c][f];d=t(p,u)}else{for(var m=0;m<o;m++)a[m]=l[e[m]][f];a[m]=u,d=t.apply(null,a)}d&&(i[s++]=f)}return s<r&&(n._indices=i),n._count=s,n._extent=[],n._updateGetRawIdx(),n},e.prototype.selectRange=function(e){var t=this.clone(),n=t._count;if(!n)return this;var r=V(e),i=r.length;if(!i)return this;var a=t.count(),o=new(yh(t._rawCount))(a),s=0,c=r[0],l=e[c][0],u=e[c][1],d=t._chunks,f=!1;if(!t._indices){var p=0;if(i===1){for(var m=d[r[0]],h=0;h<n;h++){var g=m[h];(g>=l&&g<=u||isNaN(g))&&(o[s++]=p),p++}f=!0}else if(i===2){for(var m=d[r[0]],_=d[r[1]],v=e[r[1]][0],y=e[r[1]][1],h=0;h<n;h++){var g=m[h],b=_[h];(g>=l&&g<=u||isNaN(g))&&(b>=v&&b<=y||isNaN(b))&&(o[s++]=p),p++}f=!0}}if(!f){if(i===1)for(var h=0;h<a;h++){var x=t.getRawIndex(h),g=d[r[0]][x];(g>=l&&g<=u||isNaN(g))&&(o[s++]=x)}else for(var h=0;h<a;h++){for(var S=!0,x=t.getRawIndex(h),C=0;C<i;C++){var w=r[C],g=d[w][x];(g<e[w][0]||g>e[w][1])&&(S=!1)}S&&(o[s++]=t.getRawIndex(h))}}return s<a&&(t._indices=o),t._count=s,t._extent=[],t._updateGetRawIdx(),t},e.prototype.map=function(e,t){var n=this.clone(e);return this._updateDims(n,e,t),n},e.prototype.modify=function(e,t){this._updateDims(this,e,t)},e.prototype._updateDims=function(e,t,n){for(var r=e._chunks,i=[],a=t.length,o=e.count(),s=[],c=e._rawExtent,l=0;l<t.length;l++)c[t[l]]=El();for(var u=0;u<o;u++){for(var d=e.getRawIndex(u),f=0;f<a;f++)s[f]=r[t[f]][d];s[a]=u;var p=n&&n.apply(null,s);if(p!=null){typeof p!=`object`&&(i[0]=p,p=i);for(var l=0;l<p.length;l++){var m=t[l],h=p[l],g=c[m],_=r[m];_&&(_[d]=h),h<g[0]&&(g[0]=h),h>g[1]&&(g[1]=h)}}}},e.prototype.lttbDownSample=function(e,t){var n=this.clone([e],!0),r=n._chunks[e],i=this.count(),a=0,o=Math.floor(1/t),s=this.getRawIndex(0),c,l,u,d=new(yh(this._rawCount))(Math.min((Math.ceil(i/o)+2)*2,i));d[a++]=s;for(var f=1;f<i-1;f+=o){for(var p=Math.min(f+o,i-1),m=Math.min(f+o*2,i),h=(m+p)/2,g=0,_=p;_<m;_++){var v=this.getRawIndex(_),y=r[v];isNaN(y)||(g+=y)}g/=m-p;var b=f,x=Math.min(f+o,i),S=f-1,C=r[s];c=-1,u=b;for(var w=-1,T=0,_=b;_<x;_++){var v=this.getRawIndex(_),y=r[v];if(isNaN(y)){T++,w<0&&(w=v);continue}l=Math.abs((S-h)*(y-C)-(S-_)*(g-C)),l>c&&(c=l,u=v)}T>0&&T<x-b&&(d[a++]=Math.min(w,u),u=Math.max(w,u)),d[a++]=u,s=u}return d[a++]=this.getRawIndex(i-1),n._count=a,n._indices=d,n.getRawIndex=this._getRawIdx,n},e.prototype.minmaxDownSample=function(e,t){for(var n=this.clone([e],!0),r=n._chunks,i=Math.floor(1/t),a=r[e],o=this.count(),s=new(yh(this._rawCount))(Math.ceil(o/i)*2),c=0,l=0;l<o;l+=i){var u=l,d=a[this.getRawIndex(u)],f=l,p=a[this.getRawIndex(f)],m=i;l+i>o&&(m=o-l);for(var h=0;h<m;h++){var g=a[this.getRawIndex(l+h)];g<d&&(d=g,u=l+h),g>p&&(p=g,f=l+h)}var _=this.getRawIndex(u),v=this.getRawIndex(f);u<f?(s[c++]=_,s[c++]=v):(s[c++]=v,s[c++]=_)}return n._count=c,n._indices=s,n._updateGetRawIdx(),n},e.prototype.downSample=function(e,t,n,r){for(var i=this.clone([e],!0),a=i._chunks,o=[],s=Math.floor(1/t),c=a[e],l=this.count(),u=i._rawExtent[e]=El(),d=new(yh(this._rawCount))(Math.ceil(l/s)),f=0,p=0;p<l;p+=s){s>l-p&&(s=l-p,o.length=s);for(var m=0;m<s;m++){var h=this.getRawIndex(p+m);o[m]=c[h]}var g=n(o),_=this.getRawIndex(Math.min(p+r(o,g)||0,l-1));c[_]=g,g<u[0]&&(u[0]=g),g>u[1]&&(u[1]=g),d[f++]=_}return i._count=f,i._indices=d,i._updateGetRawIdx(),i},e.prototype.each=function(e,t){if(this._count)for(var n=e.length,r=this._chunks,i=0,a=this.count();i<a;i++){var o=this.getRawIndex(i);switch(n){case 0:t(i);break;case 1:t(r[e[0]][o],i);break;case 2:t(r[e[0]][o],r[e[1]][o],i);break;default:for(var s=0,c=[];s<n;s++)c[s]=r[e[s]][o];c[s]=i,t.apply(null,c)}}},e.prototype.getDataExtent=function(e,t){var n=this._chunks[e],r=El();if(!n)return r;var i=this.count();if(!this._indices&&!t)return this._rawExtent[e].slice();var a=this._extent,o=a[e]||(a[e]={}),s=dh(t),c=s.key,l=o[c];if(l)return l.slice();for(var u=r[0],d=r[1],f=0;f<i;f++){var p=n[this.getRawIndex(f)];(!t||fh(s,p))&&(p<u&&(u=p),p>d&&(d=p))}return o[c]=[u,d]},e.prototype.getRawDataItem=function(e){var t=this.getRawIndex(e);if(this._provider.persistent)return this._provider.getItem(t);for(var n=[],r=this._chunks,i=0;i<r.length;i++)n.push(r[i][t]);return n},e.prototype.clone=function(t,n){var r=new e,i=this._chunks,a=t&&we(t,function(e,t){return e[t]=!0,e},{});if(a)for(var o=0;o<i.length;o++)r._chunks[o]=a[o]?bh(i[o]):i[o];else r._chunks=i;return this._copyCommonProps(r),n||(r._indices=this._cloneIndices()),r._updateGetRawIdx(),r},e.prototype._copyCommonProps=function(e){e._count=this._count,e._rawCount=this._rawCount,e._provider=this._provider,e._dimensions=this._dimensions,e._extent=P(this._extent),e._rawExtent=P(this._rawExtent)},e.prototype._cloneIndices=function(){if(this._indices){var e=this._indices.constructor,t=void 0;if(e===Array){var n=this._indices.length;t=new e(n);for(var r=0;r<n;r++)t[r]=this._indices[r]}else t=new e(this._indices);return t}return null},e.prototype._getRawIdxIdentity=function(e){return e},e.prototype._getRawIdx=function(e){return e<this._count&&e>=0?this._indices[e]:-1},e.prototype._updateGetRawIdx=function(){this.getRawIndex=this._indices?this._getRawIdx:this._getRawIdxIdentity},e.internalField=function(){function e(e,t,n,r){return ch(e[r],this._dimensions[r])}vh={arrayRows:e,objectRows:function(e,t,n,r){return ch(e[t],this._dimensions[r])},keyedColumns:e,original:function(e,t,n,r){var i=e&&(e.value==null?e:e.value);return ch(i instanceof Array?i[r]:i,this._dimensions[r])},typedArray:function(e,t,n,r){return e[r]}}}(),e}(),Ch=ml(),wh={float:`f`,int:`i`,ordinal:`o`,number:`n`,time:`t`},Th=function(){function e(e){this.dimensions=e.dimensions,this._dimOmitted=e.dimensionOmitted,this.source=e.source,this._fullDimCount=e.fullDimensionCount,this._updateDimOmitted(e.dimensionOmitted)}return e.prototype.isDimensionOmitted=function(){return this._dimOmitted},e.prototype._updateDimOmitted=function(e){this._dimOmitted=e,e&&(this._dimNameMap||=Oh(this.source))},e.prototype.getSourceDimensionIndex=function(e){return q(this._dimNameMap.get(e),-1)},e.prototype.getSourceDimension=function(e){var t=this.source.dimensionsDefine;if(t)return t[e]},e.prototype.makeStoreSchema=function(){for(var e=this._fullDimCount,t=Im(this.source),n=!kh(e),r=``,i=[],a=0,o=0;a<e;a++){var s=void 0,c=void 0,l=void 0,u=this.dimensions[o];if(u&&u.storeDimIndex===a)s=t?u.name:null,c=u.type,l=u.ordinalMeta,o++;else{var d=this.getSourceDimension(a);d&&(s=t?d.name:null,c=d.type)}i.push({property:s,type:c,ordinalMeta:l}),t&&s!=null&&(!u||!u.isCalculationCoord)&&(r+=n?s.replace(/\`/g,"`1").replace(/\$/g,"`2"):s),r+=`$`,r+=wh[c]||`f`,l&&(r+=l.uid),r+=`$`}var f=this.source;return{dimensions:i,hash:[f.seriesLayoutBy,f.startIndex,r].join(`$$`)}},e.prototype.makeOutputDimensionNames=function(){for(var e=[],t=0,n=0;t<this._fullDimCount;t++){var r=void 0,i=this.dimensions[n];if(i&&i.storeDimIndex===t)i.isCalculationCoord||(r=i.name),n++;else{var a=this.getSourceDimension(t);a&&(r=a.name)}e.push(r)}return e},e.prototype.appendCalculationDimension=function(e){this.dimensions.push(e),e.isCalculationCoord=!0,this._fullDimCount++,this._updateDimOmitted(!0)},e}();function Eh(e){return e instanceof Th}function Dh(e){for(var t=J(),n=0;n<(e||[]).length;n++){var r=e[n],i=K(r)?r.name:r;i!=null&&t.get(i)==null&&t.set(i,n)}return t}function Oh(e){var t=Ch(e);return t.dimNameMap||=Dh(e.dimensionsDefine)}function kh(e){return e>30}var Ah=K,jh=B,Mh=typeof Int32Array>`u`?Array:Int32Array,Nh=`e\0\0`,Ph=-1,Fh=[`hasItemOption`,`_nameList`,`_idList`,`_invertedIndicesMap`,`_dimSummary`,`userOutput`,`_rawData`,`_dimValueGetter`,`_nameDimIdx`,`_idDimIdx`,`_nameRepeatCount`],Ih=[`_approximateExtent`],Lh,Rh,zh,Bh,Vh,Hh,Uh,Wh=function(){function e(e,t){this.type=`list`,this._dimOmitted=!1,this._nameList=[],this._idList=[],this._visual={},this._layout={},this._itemVisuals=[],this._itemLayouts=[],this._graphicEls=[],this._approximateExtent={},this._calculationInfo={},this.hasItemOption=!1,this.TRANSFERABLE_METHODS=[`cloneShallow`,`downSample`,`minmaxDownSample`,`lttbDownSample`,`map`],this.CHANGABLE_METHODS=[`filterSelf`,`selectRange`],this.DOWNSAMPLE_METHODS=[`downSample`,`minmaxDownSample`,`lttbDownSample`];var n,r=!1;Eh(e)?(n=e.dimensions,this._dimOmitted=e.isDimensionOmitted(),this._schema=e):(r=!0,n=e),n||=[`x`,`y`];for(var i={},a=[],o={},s=!1,c={},l=0;l<n.length;l++){var u=n[l],d=G(u)?new sh({name:u}):u instanceof sh?u:new sh(u),f=d.name;d.type=d.type||`float`,d.coordDim||(d.coordDim=f,d.coordDimIndex=0);var p=d.otherDims=d.otherDims||{};a.push(f),i[f]=d,c[f]!=null&&(s=!0),d.createInvertedIndices&&(o[f]=[]),r&&(d.storeDimIndex=l),p.itemName===0&&(this._nameDimIdx=d.storeDimIndex),p.itemId===0&&(this._idDimIdx=d.storeDimIndex)}if(this.dimensions=a,this._dimInfos=i,this._initGetDimensionInfo(s),this.hostModel=t,this._invertedIndicesMap=o,this._dimOmitted){var m=this._dimIdxToName=J();z(a,function(e){m.set(i[e].storeDimIndex,e)})}}return e.prototype.getDimension=function(e){var t=this._recognizeDimIndex(e);if(t==null)return e;if(t=e,!this._dimOmitted)return this.dimensions[t];var n=this._dimIdxToName.get(t);if(n!=null)return n;var r=this._schema.getSourceDimension(t);if(r)return r.name},e.prototype.getDimensionIndex=function(e){var t=this._recognizeDimIndex(e);if(t!=null)return t;if(e==null)return-1;var n=this._getDimInfo(e);return n?n.storeDimIndex:this._dimOmitted?this._schema.getSourceDimensionIndex(e):-1},e.prototype._recognizeDimIndex=function(e){if(Ae(e)||e!=null&&!isNaN(e)&&!this._getDimInfo(e)&&(!this._dimOmitted||this._schema.getSourceDimensionIndex(e)<0))return+e},e.prototype._getStoreDimIndex=function(e){return this.getDimensionIndex(e)},e.prototype.getDimensionInfo=function(e){return this._getDimInfo(this.getDimension(e))},e.prototype._initGetDimensionInfo=function(e){var t=this._dimInfos;this._getDimInfo=e?function(e){return t.hasOwnProperty(e)?t[e]:void 0}:function(e){return t[e]}},e.prototype.getDimensionsOnCoord=function(){return this._dimSummary.dataDimsOnCoord.slice()},e.prototype.mapDimension=function(e,t){var n=this._dimSummary;if(t==null)return n.encodeFirstDimNotExtra[e];var r=n.encode[e];return r?r[t]:null},e.prototype.mapDimensionsAll=function(e){return(this._dimSummary.encode[e]||[]).slice()},e.prototype.getStore=function(){return this._store},e.prototype.initData=function(e,t,n){var r=this,i;if(e instanceof Sh&&(i=e),!i){var a=this.dimensions,o=Dm(e)||Ce(e)?new Um(e,a.length):e;i=new Sh;var s=jh(a,function(e){return{type:r._dimInfos[e].type,property:e}});i.initData(o,s,n)}this._store=i,this._nameList=(t||[]).slice(),this._idList=[],this._nameRepeatCount={},this._doInit(0,i.count()),this._dimSummary=rh(this,this._schema),this.userOutput=this._dimSummary.userOutput},e.prototype.appendData=function(e){var t=this._store.appendData(e);this._doInit(t[0],t[1])},e.prototype.appendValues=function(e,t){var n=this._store.appendValues(e,t&&t.length),r=n.start,i=n.end,a=this._shouldMakeIdFromName();if(this._updateOrdinalMeta(),t)for(var o=r;o<i;o++){var s=o-r;this._nameList[o]=t[s],a&&Uh(this,o)}},e.prototype._updateOrdinalMeta=function(){for(var e=this._store,t=this.dimensions,n=0;n<t.length;n++){var r=this._dimInfos[t[n]];r.ordinalMeta&&e.collectOrdinalMeta(r.storeDimIndex,r.ordinalMeta)}},e.prototype._shouldMakeIdFromName=function(){var e=this._store.getProvider();return this._idDimIdx==null&&e.getSource().sourceFormat!==`typedArray`&&!e.fillStorage},e.prototype._doInit=function(e,t){if(!(e>=t)){var n=this._store.getProvider();this._updateOrdinalMeta();var r=this._nameList,i=this._idList;if(n.getSource().sourceFormat===`original`&&!n.pure)for(var a=[],o=e;o<t;o++){var s=n.getItem(o,a);if(!this.hasItemOption&&Xc(s)&&(this.hasItemOption=!0),s){var c=s.name;r[o]==null&&c!=null&&(r[o]=ol(c,null));var l=s.id;i[o]==null&&l!=null&&(i[o]=ol(l,null))}}if(this._shouldMakeIdFromName())for(var o=e;o<t;o++)Uh(this,o);Lh(this)}},e.prototype.getApproximateExtent=function(e,t){return this._approximateExtent[e]||this._store.getDataExtent(this._getStoreDimIndex(e),t)},e.prototype.setApproximateExtent=function(e,t){t=this.getDimension(t),this._approximateExtent[t]=e.slice()},e.prototype.getCalculationInfo=function(e){return this._calculationInfo[e]},e.prototype.setCalculationInfo=function(e,t){Ah(e)?I(this._calculationInfo,e):this._calculationInfo[e]=t},e.prototype.getName=function(e){var t=this.getRawIndex(e),n=this._nameList[t];return n==null&&this._nameDimIdx!=null&&(n=zh(this,this._nameDimIdx,t)),n??=``,n},e.prototype._getCategory=function(e,t){var n=this._store.get(e,t),r=this._store.getOrdinalMeta(e);return r?r.categories[n]:n},e.prototype.getId=function(e){return Rh(this,this.getRawIndex(e))},e.prototype.count=function(){return this._store.count()},e.prototype.get=function(e,t){var n=this._store,r=this._dimInfos[e];if(r)return n.get(r.storeDimIndex,t)},e.prototype.getByRawIndex=function(e,t){var n=this._store,r=this._dimInfos[e];if(r)return n.getByRawIndex(r.storeDimIndex,t)},e.prototype.getIndices=function(){return this._store.getIndices()},e.prototype.getDataExtent=function(e){return this._store.getDataExtent(this._getStoreDimIndex(e),null)},e.prototype.getSum=function(e){return this._store.getSum(this._getStoreDimIndex(e))},e.prototype.getMedian=function(e){return this._store.getMedian(this._getStoreDimIndex(e))},e.prototype.getValues=function(e,t){var n=this,r=this._store;return U(e)?r.getValues(jh(e,function(e){return n._getStoreDimIndex(e)}),t):r.getValues(e)},e.prototype.hasValue=function(e){for(var t=this._dimSummary.dataDimIndicesOnCoord,n=0,r=t.length;n<r;n++)if(isNaN(this._store.get(t[n],e)))return!1;return!0},e.prototype.indexOfName=function(e){for(var t=0,n=this._store.count();t<n;t++)if(this.getName(t)===e)return t;return-1},e.prototype.getRawIndex=function(e){return this._store.getRawIndex(e)},e.prototype.indexOfRawIndex=function(e){return this._store.indexOfRawIndex(e)},e.prototype.rawIndexOf=function(e,t){var n=e&&this._invertedIndicesMap[e],r=n&&n[t];return r==null||isNaN(r)?Ph:r},e.prototype.each=function(e,t,n){W(e)&&(n=t,t=e,e=[]);var r=n||this,i=jh(Bh(e),this._getStoreDimIndex,this);this._store.each(i,r?H(t,r):t)},e.prototype.filterSelf=function(e,t,n){W(e)&&(n=t,t=e,e=[]);var r=n||this,i=jh(Bh(e),this._getStoreDimIndex,this);return this._store=this._store.filter(i,r?H(t,r):t),this},e.prototype.selectRange=function(e){var t=this,n={},r=V(e),i=[];return z(r,function(r){var a=t._getStoreDimIndex(r);n[a]=e[r],i.push(a)}),this._store=this._store.selectRange(n),this},e.prototype.mapArray=function(e,t,n){W(e)&&(n=t,t=e,e=[]),n||=this;var r=[];return this.each(e,function(){r.push(t&&t.apply(this,arguments))},n),r},e.prototype.map=function(e,t,n,r){var i=n||r||this,a=jh(Bh(e),this._getStoreDimIndex,this),o=Hh(this);return o._store=this._store.map(a,i?H(t,i):t),o},e.prototype.modify=function(e,t,n,r){var i=n||r||this,a=jh(Bh(e),this._getStoreDimIndex,this);this._store.modify(a,i?H(t,i):t)},e.prototype.downSample=function(e,t,n,r){var i=Hh(this);return i._store=this._store.downSample(this._getStoreDimIndex(e),t,n,r),i},e.prototype.minmaxDownSample=function(e,t){var n=Hh(this);return n._store=this._store.minmaxDownSample(this._getStoreDimIndex(e),t),n},e.prototype.lttbDownSample=function(e,t){var n=Hh(this);return n._store=this._store.lttbDownSample(this._getStoreDimIndex(e),t),n},e.prototype.getRawDataItem=function(e){return this._store.getRawDataItem(e)},e.prototype.getItemModel=function(e){var t=this.hostModel;return new pm(this.getRawDataItem(e),t,t&&t.ecModel)},e.prototype.diff=function(e){var t=this;return new gm(e?e.getStore().getIndices():[],this.getStore().getIndices(),function(t){return Rh(e,t)},function(e){return Rh(t,e)})},e.prototype.getVisual=function(e){var t=this._visual;return t&&t[e]},e.prototype.setVisual=function(e,t){this._visual=this._visual||{},Ah(e)?I(this._visual,e):this._visual[e]=t},e.prototype.getItemVisual=function(e,t){var n=this._itemVisuals[e];return(n&&n[t])??this.getVisual(t)},e.prototype.hasItemVisual=function(){return this._itemVisuals.length>0},e.prototype.ensureUniqueItemVisual=function(e,t){var n=this._itemVisuals,r=n[e];r||=n[e]={};var i=r[t];return i??(i=this.getVisual(t),U(i)?i=i.slice():Ah(i)&&(i=I({},i)),r[t]=i),i},e.prototype.setItemVisual=function(e,t,n){var r=this._itemVisuals[e]||{};this._itemVisuals[e]=r,Ah(t)?I(r,t):r[t]=n},e.prototype.clearAllVisual=function(){this._visual={},this._itemVisuals=[]},e.prototype.setLayout=function(e,t){Ah(e)?I(this._layout,e):this._layout[e]=t},e.prototype.getLayout=function(e){return this._layout[e]},e.prototype.getItemLayout=function(e){return this._itemLayouts[e]},e.prototype.setItemLayout=function(e,t,n){this._itemLayouts[e]=n?I(this._itemLayouts[e]||{},t):t},e.prototype.clearItemLayouts=function(){this._itemLayouts.length=0},e.prototype.setItemGraphicEl=function(e,t){Gl(this.hostModel&&this.hostModel.seriesIndex,this.dataType,e,t),this._graphicEls[e]=t},e.prototype.getItemGraphicEl=function(e){return this._graphicEls[e]},e.prototype.eachItemGraphicEl=function(e,t){z(this._graphicEls,function(n,r){n&&e&&e.call(t,n,r)})},e.prototype.cloneShallow=function(t){return t||=new e(this._schema?this._schema:jh(this.dimensions,this._getDimInfo,this),this.hostModel),Vh(t,this),t._store=this._store,t},e.prototype.wrapMethod=function(e,t){var n=this[e];W(n)&&(this.__wrappedMethods=this.__wrappedMethods||[],this.__wrappedMethods.push(e),this[e]=function(){var e=n.apply(this,arguments);return t.apply(this,[e].concat(Be(arguments)))})},e.internalField=function(){Lh=function(e){var t=e._invertedIndicesMap;z(t,function(n,r){var i=e._dimInfos[r],a=i.ordinalMeta,o=e._store;if(a){n=t[r]=new Mh(a.categories.length);for(var s=0;s<n.length;s++)n[s]=Ph;for(var s=0;s<o.count();s++)n[o.get(i.storeDimIndex,s)]=s}})},zh=function(e,t,n){return ol(e._getCategory(t,n),null)},Rh=function(e,t){var n=e._idList[t];return n==null&&e._idDimIdx!=null&&(n=zh(e,e._idDimIdx,t)),n??=Nh+t,n},Bh=function(e){return U(e)||(e=e==null?[]:[e]),e},Hh=function(t){var n=new e(t._schema?t._schema:jh(t.dimensions,t._getDimInfo,t),t.hostModel);return Vh(n,t),n},Vh=function(e,t){z(Fh.concat(t.__wrappedMethods||[]),function(n){t.hasOwnProperty(n)&&(e[n]=t[n])}),e.__wrappedMethods=t.__wrappedMethods,z(Ih,function(n){e[n]=P(t[n])}),e._calculationInfo=I({},t._calculationInfo)},Uh=function(e,t){var n=e._nameList,r=e._idList,i=e._nameDimIdx,a=e._idDimIdx,o=n[t],s=r[t];if(o==null&&i!=null&&(n[t]=o=zh(e,i,t)),s==null&&a!=null&&(r[t]=s=zh(e,a,t)),s==null&&o!=null){var c=e._nameRepeatCount,l=c[o]=(c[o]||0)+1;s=o,l>1&&(s+=`__ec__`+l),r[t]=s}}}(),e}();function Gh(e,t){return Kh(e,t).dimensions}function Kh(e,t){Dm(e)||(e=km(e)),t||={};var n=t.coordDimensions||[],r=t.dimensionsDefine||e.dimensionsDefine||[],i=J(),a=[],o=qh(e,n,r,t.dimensionsCount),s=t.canOmitUnusedDimensions&&kh(o),c=r===e.dimensionsDefine,l=c?Oh(e):Dh(r),u=t.encodeDefine;!u&&t.encodeDefaulter&&(u=t.encodeDefaulter(e,o));for(var d=J(u),f=new hh(o),p=0;p<f.length;p++)f[p]=-1;function m(e){var t=f[e];if(t<0){var n=r[e],i=K(n)?n:{name:n},o=new sh,s=i.name;return s!=null&&l.get(s)!=null&&(o.name=o.displayName=s),i.type!=null&&(o.type=i.type),i.displayName!=null&&(o.displayName=i.displayName),f[e]=a.length,o.storeDimIndex=e,a.push(o),o}return a[t]}if(!s)for(var p=0;p<o;p++)m(p);d.each(function(e,t){var n=Kc(e).slice();if(n.length===1&&!G(n[0])&&n[0]<0){d.set(t,!1);return}var r=d.set(t,[]);z(n,function(e,n){var i=G(e)?l.get(e):e;i!=null&&i<o&&(r[n]=i,g(m(i),t,n))})});var h=0;z(n,function(e){var t,n,r,i;if(G(e))t=e,i={};else{i=e,t=i.name;var a=i.ordinalMeta;i.ordinalMeta=null,i=I({},i),i.ordinalMeta=a,n=i.dimsDef,r=i.otherDims,i.name=i.coordDim=i.coordDimIndex=i.dimsDef=i.otherDims=null}var s=d.get(t);if(s!==!1){if(s=Kc(s),!s.length)for(var l=0;l<(n&&n.length||1);l++){for(;h<o&&m(h).coordDim!=null;)h++;h<o&&s.push(h++)}z(s,function(e,a){var o=m(e);if(c&&i.type!=null&&(o.type=i.type),g(L(o,i),t,a),o.name==null&&n){var s=n[a];!K(s)&&(s={name:s}),o.name=o.displayName=s.name,o.defaultTooltip=s.defaultTooltip}r&&L(o.otherDims,r)})}});function g(e,t,n){ql.get(t)==null?(e.coordDim=t,e.coordDimIndex=n,i.set(t,!0)):e.otherDims[t]=n}var _=t.generateCoord,v=t.generateCoordCount,y=v!=null;v=_?v||1:0;var b=_||`value`;function x(e){e.name??=e.coordDim}if(s)z(a,function(e){x(e)}),a.sort(function(e,t){return e.storeDimIndex-t.storeDimIndex});else for(var S=0;S<o;S++){var C=m(S);C.coordDim??(C.coordDim=Jh(b,i,y),C.coordDimIndex=0,(!_||v<=0)&&(C.isExtraCoord=!0),v--),x(C),C.type==null&&(wm(e,S)===_m.Must||C.isExtraCoord&&(C.otherDims.itemName!=null||C.otherDims.seriesName!=null))&&(C.type=`ordinal`)}return Ll(a,function(e){return e.name},function(e,t){t>0&&(e.name+=t-1)}),new Th({source:e,dimensions:a,fullDimensionCount:o,dimensionOmitted:s})}function qh(e,t,n,r){var i=Math.max(e.dimensionsDetectedCount||1,t.length,n.length,r||0);return z(t,function(e){var t;K(e)&&(t=e.dimsDef)&&(i=Math.max(i,t.length))}),i}function Jh(e,t,n){if(n||t.hasKey(e)){for(var r=0;t.hasKey(e+r);)r++;e+=r}return t.set(e,!0),e}var Yh={},Xh={},Zh=function(){function e(){this._normalMasterList=[],this._nonSeriesBoxMasterList=[]}return e.prototype.create=function(e,t){this._nonSeriesBoxMasterList=n(Yh,!0),this._normalMasterList=n(Xh,!1);function n(n,r){var i=[];return z(n,function(n,r){var a=n.create(e,t);i=i.concat(a||[])}),i}},e.prototype.update=function(e,t){z(this._normalMasterList,function(n){n.update&&n.update(e,t)})},e.prototype.getCoordinateSystems=function(){return this._normalMasterList.concat(this._nonSeriesBoxMasterList)},e.register=function(e,t){if(e===`matrix`||e===`calendar`){Yh[e]=t;return}Xh[e]=t},e.get=function(e){return Xh[e]||Yh[e]},e}();function Qh(e){return!!Yh[e]}var $h=J();function eg(e){var t=e.getShallow(`coord`,!0),n=1;if(t==null){var r=$h.get(e.type);r&&r.getCoord2&&(n=2,t=r.getCoord2(e))}return{coord:t,from:n}}function tg(e,t){var n=e.getShallow(`coordinateSystem`),r=e.getShallow(`coordinateSystemUsage`,!0),i=0;if(n){var a=e.mainType===`series`;r??=a?`data`:`box`,r===`data`?(i=1,a||(i=0)):r===`box`&&(i=2,!a&&!Qh(n)&&(i=0))}return{coordSysType:n,kind:i}}function ng(e){var t=e.targetModel,n=e.coordSysType,r=e.coordSysProvider,i=e.isDefaultDataCoordSys;e.allowNotFound;var a=tg(t,!0),o=a.kind,s=a.coordSysType;if(i&&o!==1&&(o=1,s=n),o===0||s!==n)return 0;var c=r(n,t);return c?(o===1?t.coordinateSystem=c:t.boxCoordinateSystem=c,o):0}var rg=function(){function e(e){this.coordSysDims=[],this.axisMap=J(),this.categoryAxisMap=J(),this.coordSysName=e}return e}();function ig(e){var t=e.get(`coordinateSystem`),n=new rg(t),r=ag[t];if(r)return r(e,n,n.axisMap,n.categoryAxisMap),n}var ag={cartesian2d:function(e,t,n,r){var i=e.getReferringComponents(`xAxis`,vl).models[0],a=e.getReferringComponents(`yAxis`,vl).models[0];t.coordSysDims=[`x`,`y`],n.set(`x`,i),n.set(`y`,a),og(i)&&(r.set(`x`,i),t.firstCategoryDimIndex=0),og(a)&&(r.set(`y`,a),t.firstCategoryDimIndex??=1)},singleAxis:function(e,t,n,r){var i=e.getReferringComponents(`singleAxis`,vl).models[0];t.coordSysDims=[`single`],n.set(`single`,i),og(i)&&(r.set(`single`,i),t.firstCategoryDimIndex=0)},polar:function(e,t,n,r){var i=e.getReferringComponents(`polar`,vl).models[0],a=i.findAxisModel(`radiusAxis`),o=i.findAxisModel(`angleAxis`);t.coordSysDims=[`radius`,`angle`],n.set(`radius`,a),n.set(`angle`,o),og(a)&&(r.set(`radius`,a),t.firstCategoryDimIndex=0),og(o)&&(r.set(`angle`,o),t.firstCategoryDimIndex??=1)},geo:function(e,t,n,r){t.coordSysDims=[`lng`,`lat`]},parallel:function(e,t,n,r){var i=e.ecModel,a=i.getComponent(`parallel`,e.get(`parallelIndex`)),o=t.coordSysDims=a.dimensions.slice();z(a.parallelAxisIndex,function(e,a){var s=i.getComponent(`parallelAxis`,e),c=o[a];n.set(c,s),og(s)&&(r.set(c,s),t.firstCategoryDimIndex??=a)})},matrix:function(e,t,n,r){var i=e.getReferringComponents(`matrix`,vl).models[0];t.coordSysDims=[`x`,`y`];var a=i.getDimensionModel(`x`),o=i.getDimensionModel(`y`);n.set(`x`,a),n.set(`y`,o),r.set(`x`,a),r.set(`y`,o)}};function og(e){return e.get(`type`)===`category`}function sg(e,t,n){n||={};var r=n.byIndex,i=n.stackedCoordDimension,a,o,s;cg(t)?a=t:(o=t.schema,a=o.dimensions,s=t.store);var c=!!(e&&e.get(`stack`)),l,u,d,f,p=!0;function m(e){return e.type!==`ordinal`&&e.type!==`time`}if(z(a,function(e,t){G(e)&&(a[t]=e={name:e}),m(e)||(p=!1)}),z(a,function(e,t){c&&!e.isExtraCoord&&(!r&&!l&&e.ordinalMeta&&(l=e),!u&&m(e)&&(!p||e.coordDim!==`x`&&e.coordDim!==`angle`)&&(!i||i===e.coordDim)&&(u=e))}),u&&!r&&!l&&(r=!0),u){d=`__\0ecstackresult_`+e.id,f=`__\0ecstackedover_`+e.id,l&&(l.createInvertedIndices=!0);var h=u.coordDim,g=u.type,_=0;z(a,function(e){e.coordDim===h&&_++});var v={name:d,coordDim:h,coordDimIndex:_,type:g,isExtraCoord:!0,isCalculationCoord:!0,storeDimIndex:a.length},y={name:f,coordDim:f,coordDimIndex:_+1,type:g,isExtraCoord:!0,isCalculationCoord:!0,storeDimIndex:a.length+1};o?(s&&(v.storeDimIndex=s.ensureCalculationDimension(f,g),y.storeDimIndex=s.ensureCalculationDimension(d,g)),o.appendCalculationDimension(v),o.appendCalculationDimension(y)):(a.push(v),a.push(y))}return{stackedDimension:u&&u.name,stackedByDimension:l&&l.name,isStackedByIndex:r,stackedOverDimension:f,stackResultDimension:d}}function cg(e){return!Eh(e.schema)}function lg(e,t){return!!t&&t===e.getCalculationInfo(`stackedDimension`)}function ug(e,t){return lg(e,t)?e.getCalculationInfo(`stackResultDimension`):t}function dg(e,t){var n=e.get(`coordinateSystem`),r=Zh.get(n),i;return t&&t.coordSysDims&&(i=B(t.coordSysDims,function(e){var n={name:e},r=t.axisMap.get(e);return r&&(n.type=ah(r.get(`type`))),n})),i||=r&&(r.getDimensionsInfo?r.getDimensionsInfo():r.dimensions.slice())||[`x`,`y`],i}function fg(e,t,n){var r,i;return n&&z(e,function(e,a){var o=e.coordDim,s=n.categoryAxisMap.get(o);s&&(r??=a,e.ordinalMeta=s.getOrdinalMeta(),t&&(e.createInvertedIndices=!0)),e.otherDims.itemName!=null&&(i=!0)}),!i&&r!=null&&(e[r].otherDims.itemName=0),r}function pg(e,t,n){n||={};var r=t.getSourceManager(),i,a=!1;e?(a=!0,i=km(e)):(i=r.getSource(),a=i.sourceFormat===Jl);var o=ig(t),s=dg(t,o),c=n.useEncodeDefaulter,l=W(c)?c:c?Oe(bm,s,t):null,u={coordDimensions:s,generateCoord:n.generateCoord,encodeDefine:t.getEncode(),encodeDefaulter:l,canOmitUnusedDimensions:!a},d=Kh(i,u),f=fg(d.dimensions,n.createInvertedIndices,o),p=a?null:r.getSharedDataStore(d),m=sg(t,{schema:d,store:p}),h=new Wh(d,t);h.setCalculationInfo(m);var g=f!=null&&mg(i)?function(e,t,n,r){return r===f?n:this.defaultDimValueGetter(e,t,n,r)}:null;return h.hasItemOption=!1,h.initData(a?i:p,null,g),h}function mg(e){if(e.sourceFormat===`original`)return!U(Yc(hg(e.data||[])))}function hg(e){for(var t=0;t<e.length&&e[t]==null;)t++;return e[t]}var gg=Math.round(Math.random()*10);function _g(e){return[e||``,gg++].join(`_`)}function vg(e){var t={};e.registerSubTypeDefaulter=function(e,n){var r=lt(e);t[r.main]=n},e.determineSubType=function(n,r){var i=r.type;if(!i){var a=lt(n).main;e.hasSubTypes(n)&&t[a]&&(i=t[a](r))}return i}}function yg(e,t){e.topologicalTravel=function(e,t,r,i){if(!e.length)return;var a=n(t),o=a.graph,s=a.noEntryList,c={};for(z(e,function(e){c[e]=!0});s.length;){var l=s.pop(),u=o[l],d=!!c[l];d&&(r.call(i,l,u.originalDeps.slice()),delete c[l]),z(u.successor,d?p:f)}z(c,function(){throw Error(``)});function f(e){o[e].entryCount--,o[e].entryCount===0&&s.push(e)}function p(e){c[e]=!0,f(e)}};function n(e){var n={},a=[];return z(e,function(o){var s=r(n,o),c=i(s.originalDeps=t(o),e);s.entryCount=c.length,s.entryCount===0&&a.push(o),z(c,function(e){R(s.predecessor,e)<0&&s.predecessor.push(e);var t=r(n,e);R(t.successor,e)<0&&t.successor.push(o)})}),{graph:n,noEntryList:a}}function r(e,t){return e[t]||(e[t]={predecessor:[],successor:[]}),e[t]}function i(e,t){var n=[];return z(e,function(e){R(t,e)>=0&&n.push(e)}),n}}function bg(e,t){return F(F({},e,!0),t,!0)}var xg=Math.log(2);function Sg(e,t,n,r,i,a){var o=r+`-`+i,s=e.length;if(a.hasOwnProperty(o))return a[o];if(t===1){var c=Math.round(Math.log((1<<s)-1&~i)/xg);return e[n][c]}for(var l=r|1<<n,u=n+1;r&1<<u;)u++;for(var d=0,f=0,p=0;f<s;f++){var m=1<<f;m&i||(d+=(p%2?-1:1)*e[n][f]*Sg(e,t-1,u,l,i|m,a),p++)}return a[o]=d,d}function Cg(e,t){var n=[[e[0],e[1],1,0,0,0,-t[0]*e[0],-t[0]*e[1]],[0,0,0,e[0],e[1],1,-t[1]*e[0],-t[1]*e[1]],[e[2],e[3],1,0,0,0,-t[2]*e[2],-t[2]*e[3]],[0,0,0,e[2],e[3],1,-t[3]*e[2],-t[3]*e[3]],[e[4],e[5],1,0,0,0,-t[4]*e[4],-t[4]*e[5]],[0,0,0,e[4],e[5],1,-t[5]*e[4],-t[5]*e[5]],[e[6],e[7],1,0,0,0,-t[6]*e[6],-t[6]*e[7]],[0,0,0,e[6],e[7],1,-t[7]*e[6],-t[7]*e[7]]],r={},i=Sg(n,8,0,0,0,r);if(i!==0){for(var a=[],o=0;o<8;o++)for(var s=0;s<8;s++)a[s]??(a[s]=0),a[s]+=((o+s)%2?-1:1)*Sg(n,7,+(o===0),1<<o,1<<s,r)/i*t[o];return function(e,t,n){var r=t*a[6]+n*a[7]+1;e[0]=(t*a[0]+n*a[1]+a[2])/r,e[1]=(t*a[3]+n*a[4]+a[5])/r}}}var wg=`___zrEVENTSAVED`,Tg=[];function Eg(e,t,n,r,i){return Og(Tg,t,r,i,!0)&&Og(e,n,Tg[0],Tg[1])}function Dg(e,t){e&&n(e),t&&n(t);function n(e){var t=e[wg];t&&(t.clearMarkers&&t.clearMarkers(),delete e[wg])}}function Og(e,t,n,r,i){if(t.getBoundingClientRect&&Y.domSupported&&!jg(t)){var a=t[wg]||(t[wg]={}),o=Ag(kg(t,a),a,i);if(o)return o(e,n,r),!0}return!1}function kg(e,t){var n=t.markers;if(n)return n;n=t.markers=[];for(var r=[`left`,`right`],i=[`top`,`bottom`],a=0;a<4;a++){var o=document.createElement(`div`),s=o.style,c=a%2,l=(a>>1)%2;s.cssText=[`position: absolute`,`visibility: hidden`,`padding: 0`,`margin: 0`,`border-width: 0`,`user-select: none`,`width:0`,`height:0`,r[c]+`:0`,i[l]+`:0`,r[1-c]+`:auto`,i[1-l]+`:auto`,``].join(`!important;`),e.appendChild(o),n.push(o)}return t.clearMarkers=function(){z(n,function(e){e.parentNode&&e.parentNode.removeChild(e)})},n}function Ag(e,t,n){for(var r=n?`invTrans`:`trans`,i=t[r],a=t.srcCoords,o=[],s=[],c=!0,l=0;l<4;l++){var u=e[l].getBoundingClientRect(),d=2*l,f=u.left,p=u.top;o.push(f,p),c=c&&a&&f===a[d]&&p===a[d+1],s.push(e[l].offsetLeft,e[l].offsetTop)}return c&&i?i:(t.srcCoords=o,t[r]=n?Cg(s,o):Cg(o,s))}function jg(e){return e.nodeName.toUpperCase()===`CANVAS`}var Mg=/([&<>"'])/g,Ng={"&":`&`,"<":`<`,">":`>`,'"':`"`,"'":`'`};function Pg(e){return e==null?``:(e+``).replace(Mg,function(e,t){return Ng[t]})}var Fg={time:{month:[`January`,`February`,`March`,`April`,`May`,`June`,`July`,`August`,`September`,`October`,`November`,`December`],monthAbbr:[`Jan`,`Feb`,`Mar`,`Apr`,`May`,`Jun`,`Jul`,`Aug`,`Sep`,`Oct`,`Nov`,`Dec`],dayOfWeek:[`Sunday`,`Monday`,`Tuesday`,`Wednesday`,`Thursday`,`Friday`,`Saturday`],dayOfWeekAbbr:[`Sun`,`Mon`,`Tue`,`Wed`,`Thu`,`Fri`,`Sat`]},legend:{selector:{all:`All`,inverse:`Inv`}},toolbox:{brush:{title:{rect:`Box Select`,polygon:`Lasso Select`,lineX:`Horizontally Select`,lineY:`Vertically Select`,keep:`Keep Selections`,clear:`Clear Selections`}},dataView:{title:`Data View`,lang:[`Data View`,`Close`,`Refresh`]},dataZoom:{title:{zoom:`Zoom`,back:`Zoom Reset`}},magicType:{title:{line:`Switch to Line Chart`,bar:`Switch to Bar Chart`,stack:`Stack`,tiled:`Tile`}},restore:{title:`Restore`},saveAsImage:{title:`Save as Image`,lang:[`Right Click to Save Image`]}},series:{typeNames:{pie:`Pie chart`,bar:`Bar chart`,line:`Line chart`,scatter:`Scatter plot`,effectScatter:`Ripple scatter plot`,radar:`Radar chart`,tree:`Tree`,treemap:`Treemap`,boxplot:`Boxplot`,candlestick:`Candlestick`,k:`K line chart`,heatmap:`Heat map`,map:`Map`,parallel:`Parallel coordinate map`,lines:`Line graph`,graph:`Relationship graph`,sankey:`Sankey diagram`,funnel:`Funnel chart`,gauge:`Gauge`,pictorialBar:`Pictorial bar`,themeRiver:`Theme River Map`,sunburst:`Sunburst`,custom:`Custom chart`,chart:`Chart`}},aria:{general:{withTitle:`This is a chart about "{title}"`,withoutTitle:`This is a chart`},series:{single:{prefix:``,withName:` with type {seriesType} named {seriesName}.`,withoutName:` with type {seriesType}.`},multiple:{prefix:`. It consists of {seriesCount} series count.`,withName:` The {seriesId} series is a {seriesType} representing {seriesName}.`,withoutName:` The {seriesId} series is a {seriesType}.`,separator:{middle:``,end:``}}},data:{allData:`The data is as follows: `,partialData:`The first {displayCnt} items are: `,withName:`the data for {name} is {value}`,withoutName:`{value}`,separator:{middle:`, `,end:`. `}}}},Ig={time:{month:[`一月`,`二月`,`三月`,`四月`,`五月`,`六月`,`七月`,`八月`,`九月`,`十月`,`十一月`,`十二月`],monthAbbr:[`1月`,`2月`,`3月`,`4月`,`5月`,`6月`,`7月`,`8月`,`9月`,`10月`,`11月`,`12月`],dayOfWeek:[`星期日`,`星期一`,`星期二`,`星期三`,`星期四`,`星期五`,`星期六`],dayOfWeekAbbr:[`日`,`一`,`二`,`三`,`四`,`五`,`六`]},legend:{selector:{all:`全选`,inverse:`反选`}},toolbox:{brush:{title:{rect:`矩形选择`,polygon:`圈选`,lineX:`横向选择`,lineY:`纵向选择`,keep:`保持选择`,clear:`清除选择`}},dataView:{title:`数据视图`,lang:[`数据视图`,`关闭`,`刷新`]},dataZoom:{title:{zoom:`区域缩放`,back:`区域缩放还原`}},magicType:{title:{line:`切换为折线图`,bar:`切换为柱状图`,stack:`切换为堆叠`,tiled:`切换为平铺`}},restore:{title:`还原`},saveAsImage:{title:`保存为图片`,lang:[`右键另存为图片`]}},series:{typeNames:{pie:`饼图`,bar:`柱状图`,line:`折线图`,scatter:`散点图`,effectScatter:`涟漪散点图`,radar:`雷达图`,tree:`树图`,treemap:`矩形树图`,boxplot:`箱型图`,candlestick:`K线图`,k:`K线图`,heatmap:`热力图`,map:`地图`,parallel:`平行坐标图`,lines:`线图`,graph:`关系图`,sankey:`桑基图`,funnel:`漏斗图`,gauge:`仪表盘图`,pictorialBar:`象形柱图`,themeRiver:`主题河流图`,sunburst:`旭日图`,custom:`自定义图表`,chart:`图表`}},aria:{general:{withTitle:`这是一个关于“{title}”的图表。`,withoutTitle:`这是一个图表,`},series:{single:{prefix:``,withName:`图表类型是{seriesType},表示{seriesName}。`,withoutName:`图表类型是{seriesType}。`},multiple:{prefix:`它由{seriesCount}个图表系列组成。`,withName:`第{seriesId}个系列是一个表示{seriesName}的{seriesType},`,withoutName:`第{seriesId}个系列是一个{seriesType},`,separator:{middle:`;`,end:`。`}}},data:{allData:`其数据是——`,partialData:`其中,前{displayCnt}项是——`,withName:`{name}的数据是{value}`,withoutName:`{value}`,separator:{middle:`,`,end:``}}}},Lg=`ZH`,Rg=`EN`,zg=Rg,Bg={},Vg={},Hg=Y.domSupported?function(){return(document.documentElement.lang||navigator.language||navigator.browserLanguage||zg).toUpperCase().indexOf(Lg)>-1?Lg:zg}():zg;function Ug(e,t){e=e.toUpperCase(),Vg[e]=new pm(t),Bg[e]=t}function Wg(e){if(G(e)){var t=Bg[e.toUpperCase()]||{};return e===Lg||e===Rg?P(t):F(P(t),P(Bg[zg]),!1)}return F(P(e),P(Bg[zg]),!1)}function Gg(e){return Vg[e]}function Kg(){return Vg[zg]}Ug(Rg,Fg),Ug(Lg,Ig);var qg=null;function Jg(){return qg}function Yg(e,t){var n=Jg(),r=t.breakOption,i=t.breakParsed;return!i&&n&&(i=n.parseAxisBreakOption(r,e)),i}function Xg(e){var t=e.brk;return t?t.breaks:[]}function Zg(e){var t=e.brk;return t?t.hasBreaks():!1}var Qg=1e3,$g=Qg*60,e_=$g*60,t_=e_*24,n_=t_*365,r_={year:/({yyyy}|{yy})/,month:/({MMMM}|{MMM}|{MM}|{M})/,day:/({dd}|{d})/,hour:/({HH}|{H}|{hh}|{h})/,minute:/({mm}|{m})/,second:/({ss}|{s})/,millisecond:/({SSS}|{S})/},i_={year:`{yyyy}`,month:`{MMM}`,day:`{d}`,hour:`{HH}:{mm}`,minute:`{HH}:{mm}`,second:`{HH}:{mm}:{ss}`,millisecond:`{HH}:{mm}:{ss} {SSS}`},a_=`{yyyy}-{MM}-{dd} {HH}:{mm}:{ss} {SSS}`,o_=`{yyyy}-{MM}-{dd}`,s_={year:`{yyyy}`,month:`{yyyy}-{MM}`,day:o_,hour:o_+` `+i_.hour,minute:o_+` `+i_.minute,second:o_+` `+i_.second,millisecond:a_},c_=[`year`,`month`,`day`,`hour`,`minute`,`second`,`millisecond`],l_=[`year`,`half-year`,`quarter`,`month`,`week`,`half-week`,`day`,`half-day`,`quarter-day`,`hour`,`minute`,`second`,`millisecond`];function u_(e){return!G(e)&&!W(e)?d_(e):e}function d_(e){e||={};var t={},n=!0;return z(c_,function(t){n&&=e[t]==null}),z(c_,function(r,i){var a=e[r];t[r]={};for(var o=null,s=i;s>=0;s--){var c=c_[s],l=K(a)&&!U(a)?a[c]:a,u=void 0;U(l)?(u=l.slice(),o=u[0]||``):G(l)?(o=l,u=[o]):(o==null?o=i_[r]:r_[c].test(o)||(o=t[c][c][0]+` `+o),u=[o],n&&(u[1]=`{primary|`+o+`}`)),t[r][c]=u}}),t}function f_(e,t){return e+=``,`0000`.substr(0,t-e.length)+e}function p_(e){switch(e){case`half-year`:case`quarter`:return`month`;case`week`:case`half-week`:return`day`;case`half-day`:case`quarter-day`:return`hour`;default:return e}}function m_(e){return e===p_(e)}function h_(e){switch(e){case`year`:case`month`:return`day`;case`millisecond`:return`millisecond`;default:return`second`}}function g_(e,t,n,r){var i=Tc(e),a=i[b_(n)](),o=i[x_(n)]()+1,s=Math.floor((o-1)/3)+1,c=i[S_(n)](),l=i[`get`+(n?`UTC`:``)+`Day`](),u=i[C_(n)](),d=(u-1)%12+1,f=i[w_(n)](),p=i[T_(n)](),m=i[E_(n)](),h=u>=12?`pm`:`am`,g=h.toUpperCase(),_=(r instanceof pm?r:Gg(r||Hg)||Kg()).getModel(`time`),v=_.get(`month`),y=_.get(`monthAbbr`),b=_.get(`dayOfWeek`),x=_.get(`dayOfWeekAbbr`);return(t||``).replace(/{a}/g,h+``).replace(/{A}/g,g+``).replace(/{yyyy}/g,a+``).replace(/{yy}/g,f_(a%100+``,2)).replace(/{Q}/g,s+``).replace(/{MMMM}/g,v[o-1]).replace(/{MMM}/g,y[o-1]).replace(/{MM}/g,f_(o,2)).replace(/{M}/g,o+``).replace(/{dd}/g,f_(c,2)).replace(/{d}/g,c+``).replace(/{eeee}/g,b[l]).replace(/{ee}/g,x[l]).replace(/{e}/g,l+``).replace(/{HH}/g,f_(u,2)).replace(/{H}/g,u+``).replace(/{hh}/g,f_(d+``,2)).replace(/{h}/g,d+``).replace(/{mm}/g,f_(f,2)).replace(/{m}/g,f+``).replace(/{ss}/g,f_(p,2)).replace(/{s}/g,p+``).replace(/{SSS}/g,f_(m,3)).replace(/{S}/g,m+``)}function __(e,t,n,r,i){var a=null;if(G(n))a=n;else if(W(n)){var o={time:e.time,level:e.time?e.time.level:0},s=Jg();s&&s.makeAxisLabelFormatterParamBreak(o,e.break),a=n(e.value,t,o)}else{var c=e.time;if(c){var l=n[c.lowerTimeUnit][c.upperTimeUnit];a=l[Math.min(c.level,l.length-1)]||``}else{var u=v_(e.value,i);a=n[u][u][0]}}return g_(new Date(e.value),a,i,r)}function v_(e,t){var n=Tc(e),r=n[x_(t)]()+1,i=n[S_(t)](),a=n[C_(t)](),o=n[w_(t)](),s=n[T_(t)](),c=n[E_(t)]()===0,l=c&&s===0,u=l&&o===0,d=u&&a===0,f=d&&i===1;return f&&r===1?`year`:f?`month`:d?`day`:u?`hour`:l?`minute`:c?`second`:`millisecond`}function y_(e,t,n){switch(t){case`year`:e[O_(n)](0);case`month`:e[k_(n)](1);case`day`:e[A_(n)](0);case`hour`:e[j_(n)](0);case`minute`:e[M_(n)](0);case`second`:e[N_(n)](0)}return e}function b_(e){return e?`getUTCFullYear`:`getFullYear`}function x_(e){return e?`getUTCMonth`:`getMonth`}function S_(e){return e?`getUTCDate`:`getDate`}function C_(e){return e?`getUTCHours`:`getHours`}function w_(e){return e?`getUTCMinutes`:`getMinutes`}function T_(e){return e?`getUTCSeconds`:`getSeconds`}function E_(e){return e?`getUTCMilliseconds`:`getMilliseconds`}function D_(e){return e?`setUTCFullYear`:`setFullYear`}function O_(e){return e?`setUTCMonth`:`setMonth`}function k_(e){return e?`setUTCDate`:`setDate`}function A_(e){return e?`setUTCHours`:`setHours`}function j_(e){return e?`setUTCMinutes`:`setMinutes`}function M_(e){return e?`setUTCSeconds`:`setSeconds`}function N_(e){return e?`setUTCMilliseconds`:`setMilliseconds`}function P_(e,t,n,r,i,a,o,s){return new js({style:{text:e,font:t,align:n,verticalAlign:r,padding:i,rich:a,overflow:o?`truncate`:null,lineHeight:s}}).getBoundingRect()}function F_(e){if(!Mc(e))return G(e)?e:`-`;var t=(e+``).split(`.`);return t[0].replace(/(\d{1,3})(?=(?:\d{3})+(?!\d))/g,`$1,`)+(t.length>1?`.`+t[1]:``)}function I_(e,t){return e=(e||``).toLowerCase().replace(/-(.)/g,function(e,t){return t.toUpperCase()}),t&&e&&(e=e.charAt(0).toUpperCase()+e.slice(1)),e}var L_=Ve;function R_(e,t,n){var r=`{yyyy}-{MM}-{dd} {HH}:{mm}:{ss}`;function i(e){return e&&Ue(e)?e:`-`}function a(e){return Ic(e)}var o=t===`time`,s=e instanceof Date;if(o||s){var c=o?Tc(e):e;if(!isNaN(+c))return g_(c,r,n);if(s)return`-`}if(t===`ordinal`)return ke(e)?i(e):Ae(e)&&a(e)?e+``:`-`;var l=jc(e);return a(l)?F_(l):ke(e)?i(e):typeof e==`boolean`?e+``:`-`}var z_=[`a`,`b`,`c`,`d`,`e`,`f`,`g`],B_=function(e,t){return`{`+e+(t??``)+`}`};function V_(e,t,n){U(t)||(t=[t]);var r=t.length;if(!r)return``;for(var i=t[0].$vars||[],a=0;a<i.length;a++){var o=z_[a];e=e.replace(B_(o),B_(o,0))}for(var s=0;s<r;s++)for(var c=0;c<i.length;c++){var l=t[s][i[c]];e=e.replace(B_(z_[c],s),n?Pg(l):l)}return e}function H_(e,t){var n=G(e)?{color:e,extraCssText:t}:e||{},r=n.color,i=n.type;t=n.extraCssText;var a=n.renderMode||`html`;return r?a===`html`?i===`subItem`?`<span style="display:inline-block;vertical-align:middle;margin-right:8px;margin-left:3px;border-radius:4px;width:4px;height:4px;background-color:`+Pg(r)+`;`+(t||``)+`"></span>`:`<span style="display:inline-block;margin-right:4px;border-radius:10px;width:10px;height:10px;background-color:`+Pg(r)+`;`+(t||``)+`"></span>`:{renderMode:a,content:`{`+(n.markerId||`markerX`)+`|} `,style:i===`subItem`?{width:4,height:4,borderRadius:2,backgroundColor:r}:{width:10,height:10,borderRadius:5,backgroundColor:r}}:``}function U_(e,t,n){(e===`week`||e===`month`||e===`quarter`||e===`half-year`||e===`year`)&&(e=`MM-dd
|
|
9
|
+
yyyy`);var r=Tc(t),i=n?`getUTC`:`get`,a=r[i+`FullYear`](),o=r[i+`Month`]()+1,s=r[i+`Date`](),c=r[i+`Hours`](),l=r[i+`Minutes`](),u=r[i+`Seconds`](),d=r[i+`Milliseconds`]();return e=e.replace(`MM`,f_(o,2)).replace(`M`,o).replace(`yyyy`,a).replace(`yy`,f_(a%100+``,2)).replace(`dd`,f_(s,2)).replace(`d`,s).replace(`hh`,f_(c,2)).replace(`h`,c).replace(`mm`,f_(l,2)).replace(`m`,l).replace(`ss`,f_(u,2)).replace(`s`,u).replace(`SSS`,f_(d,3)),e}function W_(e){return e&&e.charAt(0).toUpperCase()+e.substr(1)}function G_(e,t){return t||=`transparent`,G(e)?e:K(e)&&e.colorStops&&(e.colorStops[0]||{}).color||t}var K_=z,q_=[`left`,`right`,`top`,`bottom`,`width`,`height`],J_=[[`width`,`left`,`right`],[`height`,`top`,`bottom`]];function Y_(e,t,n,r,i){var a=0,o=0;r??=1/0,i??=1/0;var s=0;t.eachChild(function(c,l){var u=c.getBoundingRect(),d=t.childAt(l+1),f=d&&d.getBoundingRect(),p,m;if(e===`horizontal`){var h=u.width+(f?-f.x+u.x:0);p=a+h,p>r||c.newline?(a=0,p=h,o+=s+n,s=u.height):s=Math.max(s,u.height)}else{var g=u.height+(f?-f.y+u.y:0);m=o+g,m>i||c.newline?(a+=s+n,o=0,m=g,s=u.width):s=Math.max(s,u.width)}c.newline||(c.x=a,c.y=o,c.markRedraw(),e===`horizontal`?a=p+n:o=m+n)})}var X_=Y_;Oe(Y_,`vertical`),Oe(Y_,`horizontal`);function Z_(e,t){return{left:e.getShallow(`left`,t),top:e.getShallow(`top`,t),right:e.getShallow(`right`,t),bottom:e.getShallow(`bottom`,t),width:e.getShallow(`width`,t),height:e.getShallow(`height`,t)}}function Q_(e,t,n){n=L_(n||0);var r=t.width,i=t.height,a=oc(e.left,r),o=oc(e.top,i),s=oc(e.right,r),c=oc(e.bottom,i),l=oc(e.width,r),u=oc(e.height,i),d=n[2]+n[0],f=n[1]+n[3],p=e.aspect;switch(isNaN(l)&&(l=r-s-f-a),isNaN(u)&&(u=i-c-d-o),p!=null&&(isNaN(l)&&isNaN(u)&&(p>r/i?l=r*.8:u=i*.8),isNaN(l)&&(l=p*u),isNaN(u)&&(u=l/p)),isNaN(a)&&(a=r-s-l-f),isNaN(o)&&(o=i-c-u-d),e.left||e.right){case`center`:a=r/2-l/2-n[3];break;case`right`:a=r-l-f}switch(e.top||e.bottom){case`middle`:case`center`:o=i/2-u/2-n[0];break;case`bottom`:o=i-u-d}a||=0,o||=0,isNaN(l)&&(l=r-f-a-(s||0)),isNaN(u)&&(u=i-d-o-(c||0));var m=new X((t.x||0)+a+n[3],(t.y||0)+o+n[0],l,u);return m.margin=n,m}function $_(e,t,n){var r=e.getShallow(`preserveAspect`,!0);if(!r)return t;var i=t.width/t.height;if(Math.abs(Math.atan(n)-Math.atan(i))<1e-9)return t;var a=e.getShallow(`preserveAspectAlign`,!0),o=e.getShallow(`preserveAspectVerticalAlign`,!0),s={width:t.width,height:t.height},c=r===`cover`;return i>n&&!c||i<n&&c?(s.width=t.height*n,a===`left`?s.left=0:a===`right`?s.right=0:s.left=`center`):(s.height=t.width/n,o===`top`?s.top=0:o===`bottom`?s.bottom=0:s.top=`middle`),Q_(s,t)}var ev={rect:1,point:2};function tv(e,t,n){var r,i,a,o=e.boxCoordinateSystem,s;if(o){var c=eg(e),l=c.coord,u=c.from;if(o.dataToLayout){a=ev.rect,s=u;var d=o.dataToLayout(l);r=d.contentRect||d.rect}else n&&n.enableLayoutOnlyByCenter&&o.dataToPoint&&(a=ev.point,s=u,i=o.dataToPoint(l))}return a??=ev.rect,a===ev.rect&&(r||={x:0,y:0,width:t.getWidth(),height:t.getHeight()},i=[r.x+r.width/2,r.y+r.height/2]),{type:a,refContainer:r,refPoint:i,boxCoordFrom:s}}function nv(e,t,n,r,i,a){var o=!i||!i.hv||i.hv[0],s=!i||!i.hv||i.hv[1],c=i&&i.boundingMode||`all`;if(a||=e,a.x=e.x,a.y=e.y,!o&&!s)return!1;var l;if(c===`raw`)l=e.type===`group`?new X(0,0,+t.width||0,+t.height||0):e.getBoundingRect();else if(l=e.getBoundingRect(),e.needLocalTransform()){var u=e.getLocalTransform();l=l.clone(),l.applyTransform(u)}var d=Q_(L({width:l.width,height:l.height},t),n,r),f=o?d.x-l.x:0,p=s?d.y-l.y:0;return c===`raw`?(a.x=f,a.y=p):(a.x+=f,a.y+=p),a===e&&e.markRedraw(),!0}function rv(e){var t=e.layoutMode||e.constructor.layoutMode;return K(t)?t:t?{type:t}:null}function iv(e,t,n){var r=n&&n.ignoreSize;!U(r)&&(r=[r,r]);var i=o(J_[0],0),a=o(J_[1],1);c(J_[0],e,i),c(J_[1],e,a);function o(n,i){var a={},o=0,c={},l=0,u=2;if(K_(n,function(t){c[t]=e[t]}),K_(n,function(e){et(t,e)&&(a[e]=c[e]=t[e]),s(a,e)&&o++,s(c,e)&&l++}),r[i])return s(t,n[1])?c[n[2]]=null:s(t,n[2])&&(c[n[1]]=null),c;if(l===u||!o)return c;if(o>=u)return a;for(var d=0;d<n.length;d++){var f=n[d];if(!et(a,f)&&et(e,f)){a[f]=e[f];break}}return a}function s(e,t){return e[t]!=null&&e[t]!==`auto`}function c(e,t,n){K_(e,function(e){t[e]=n[e]})}}function av(e){return ov({},e)}function ov(e,t){return t&&e&&K_(q_,function(n){et(t,n)&&(e[n]=t[n])}),e}var sv=ml(),cv=function(e){D(t,e);function t(t,n,r){var i=e.call(this,t,n,r)||this;return i.uid=_g(`ec_cpt_model`),i}return t.prototype.init=function(e,t,n){this.mergeDefaultAndTheme(e,n)},t.prototype.mergeDefaultAndTheme=function(e,t){var n=rv(this),r=n?av(e):{};F(e,t.getTheme().get(this.mainType)),F(e,this.getDefaultOption()),n&&iv(e,r,n)},t.prototype.mergeOption=function(e,t){F(this.option,e,!0);var n=rv(this);n&&iv(this.option,e,n)},t.prototype.optionUpdated=function(e,t){},t.prototype.getDefaultOption=function(){var e=this.constructor;if(!dt(e))return e.defaultOption;var t=sv(this);if(!t.defaultOption){for(var n=[],r=e;r;){var i=r.prototype.defaultOption;i&&n.push(i),r=r.superClass}for(var a={},o=n.length-1;o>=0;o--)a=F(a,n[o],!0);t.defaultOption=a}return t.defaultOption},t.prototype.getReferringComponents=function(e,t){var n=e+`Index`,r=e+`Id`;return bl(this.ecModel,e,{index:this.get(n,!0),id:this.get(r,!0)},t)},t.prototype.getBoxLayoutParams=function(){return Z_(this,!1)},t.prototype.getZLevelKey=function(){return``},t.prototype.setZLevel=function(e){this.option.zlevel=e},t.protoInitialize=function(){var e=t.prototype;e.type=`component`,e.id=``,e.name=``,e.mainType=``,e.subType=``,e.componentIndex=0}(),t}(pm);mt(cv,pm),yt(cv),vg(cv),yg(cv,lv);function lv(e){var t=[];return z(cv.getClassesByMainType(e),function(e){t=t.concat(e.dependencies||e.prototype.dependencies||[])}),t=B(t,function(e){return lt(e).main}),e!==`dataset`&&R(t,`dataset`)<=0&&t.unshift(`dataset`),t}var uv=ml(),dv=ml(),fv=function(){function e(){}return e.prototype.getColorFromPalette=function(e,t,n){var r=Kc(this.get(`color`,!0)),i=this.get(`colorLayer`,!0);return hv(this,uv,r,i,e,t,n)},e.prototype.clearColorPalette=function(){gv(this,uv)},e}();function pv(e,t,n,r){return hv(e,dv,Kc(e.get([`aria`,`decal`,`decals`])),null,t,n,r)}function mv(e,t){for(var n=e.length,r=0;r<n;r++)if(e[r].length>t)return e[r];return e[n-1]}function hv(e,t,n,r,i,a,o){a||=e;var s=t(a),c=s.paletteIdx||0,l=s.paletteNameMap=s.paletteNameMap||{};if(l.hasOwnProperty(i))return l[i];var u=o==null||!r?n:mv(r,o);if(u||=n,u&&u.length){var d=u[c];return i&&(l[i]=d),s.paletteIdx=(c+1)%u.length,d}}function gv(e,t){t(e).paletteIdx=0,t(e).paletteNameMap={}}var _v=/\{@(.+?)\}/g,vv=function(){function e(){}return e.prototype.getDataParams=function(e,t){var n=this.getData(t),r=this.getRawValue(e,t),i=n.getRawIndex(e),a=n.getName(e),o=n.getRawDataItem(e),s=n.getItemVisual(e,`style`),c=s&&s[n.getItemVisual(e,`drawType`)||`fill`],l=s&&s.stroke,u=this.mainType,d=u===`series`,f=n.userOutput&&n.userOutput.get();return{componentType:u,componentSubType:this.subType,componentIndex:this.componentIndex,seriesType:d?this.subType:null,seriesIndex:this.seriesIndex,seriesId:d?this.id:null,seriesName:d?this.name:null,name:a,dataIndex:i,data:o,dataType:t,value:r,color:c,borderColor:l,dimensionNames:f?f.fullDimensions:null,encode:f?f.encode:null,$vars:[`seriesName`,`name`,`value`]}},e.prototype.getFormattedLabel=function(e,t,n,r,i,a){t||=`normal`;var o=this.getData(n),s=this.getDataParams(e,n);if(a&&(s.value=a.interpolatedValue),r!=null&&U(s.value)&&(s.value=s.value[r]),i||=o.getItemModel(e).get(t===`normal`?[`label`,`formatter`]:[t,`label`,`formatter`]),W(i))return s.status=t,s.dimensionIndex=r,i(s);if(G(i))return V_(i,s).replace(_v,function(t,n){var r=n.length,i=n;i.charAt(0)===`[`&&i.charAt(r-1)===`]`&&(i=+i.slice(1,r-1));var s=th(o,e,i);if(a&&U(a.interpolatedValue)){var c=o.getDimensionIndex(i);c>=0&&(s=a.interpolatedValue[c])}return s==null?``:s+``})},e.prototype.getRawValue=function(e,t){return th(this.getData(t),e)},e.prototype.formatTooltip=function(e,t,n){},e}();function yv(e){var t,n;return K(e)?e.type&&(n=e):t=e,{text:t,frag:n}}function bv(e){return new xv(e)}var xv=function(){function e(e){e||={},this._reset=e.reset,this._plan=e.plan,this._count=e.count,this._onDirty=e.onDirty,this._dirty=!0}return e.prototype.perform=function(e){var t=this._upstream,n=e&&e.skip;if(this._dirty&&t){var r=this.context;r.data=r.outputData=t.context.outputData}this.__pipeline&&(this.__pipeline.currentTask=this);var i;this._plan&&!n&&(i=this._plan(this.context));var a=l(this._modBy),o=this._modDataCount||0,s=l(e&&e.modBy),c=e&&e.modDataCount||0;(a!==s||o!==c)&&(i=`reset`);function l(e){return!(e>=1)&&(e=1),e}var u;(this._dirty||i===`reset`)&&(this._dirty=!1,u=this._doReset(n)),this._modBy=s,this._modDataCount=c;var d=e&&e.step;if(this._dueEnd=t?t._outputDueEnd:this._count?this._count(this.context):1/0,this._progress){var f=this._dueIndex,p=Math.min(d==null?1/0:this._dueIndex+d,this._dueEnd);if(!n&&(u||f<p)){var m=this._progress;if(U(m))for(var h=0;h<m.length;h++)this._doProgress(m[h],f,p,s,c);else this._doProgress(m,f,p,s,c)}this._dueIndex=p;var g=this._settedOutputEnd==null?p:this._settedOutputEnd;this._outputDueEnd=g}else this._dueIndex=this._outputDueEnd=this._settedOutputEnd==null?this._dueEnd:this._settedOutputEnd;return this.unfinished()},e.prototype.dirty=function(){this._dirty=!0,this._onDirty&&this._onDirty(this.context)},e.prototype._doProgress=function(e,t,n,r,i){Sv.reset(t,n,r,i),this._callingProgress=e,this._callingProgress({start:t,end:n,count:n-t,next:Sv.next},this.context)},e.prototype._doReset=function(e){this._dueIndex=this._outputDueEnd=this._dueEnd=0,this._settedOutputEnd=null;var t,n;!e&&this._reset&&(t=this._reset(this.context),t&&t.progress&&(n=t.forceFirstProgress,t=t.progress),U(t)&&!t.length&&(t=null)),this._progress=t,this._modBy=this._modDataCount=null;var r=this._downstream;return r&&r.dirty(),n},e.prototype.unfinished=function(){return this._progress&&this._dueIndex<this._dueEnd},e.prototype.pipe=function(e){(this._downstream!==e||this._dirty)&&(this._downstream=e,e._upstream=this,e.dirty())},e.prototype.dispose=function(){this._disposed||=(this._upstream&&(this._upstream._downstream=null),this._downstream&&(this._downstream._upstream=null),this._dirty=!1,!0)},e.prototype.getUpstream=function(){return this._upstream},e.prototype.getDownstream=function(){return this._downstream},e.prototype.setOutputEnd=function(e){this._outputDueEnd=this._settedOutputEnd=e},e}(),Sv=function(){var e,t,n,r,i,a={reset:function(c,l,u,d){t=c,e=l,n=u,r=d,i=Math.ceil(r/n),a.next=n>1&&r>0?s:o}};return a;function o(){return t<e?t++:null}function s(){var a=t%i*n+Math.ceil(t/i),o=t>=e?null:a<r?a:t;return t++,o}}(),Cv=function(){function e(){}return e.prototype.getRawData=function(){throw Error(`not supported`)},e.prototype.getRawDataItem=function(e){throw Error(`not supported`)},e.prototype.cloneRawData=function(){},e.prototype.getDimensionInfo=function(e){},e.prototype.cloneAllDimensionInfo=function(){},e.prototype.count=function(){},e.prototype.retrieveValue=function(e,t){},e.prototype.retrieveValueFromItem=function(e,t){},e.prototype.convertValue=function(e,t){return ch(e,t)},e}();function wv(e,t){var n=new Cv,r=e.data,i=n.sourceFormat=e.sourceFormat,a=e.startIndex;e.seriesLayoutBy!==`column`&&Hc(``);var o=[],s={},c=e.dimensionsDefine;if(c)z(c,function(e,t){var n=e.name,r={index:t,name:n,displayName:e.displayName};o.push(r),n!=null&&(et(s,n)&&Hc(``),s[n]=r)});else for(var l=0;l<e.dimensionsDetectedCount;l++)o.push({index:l});var u=qm(i,eu);t.__isBuiltIn&&(n.getRawDataItem=function(e){return u(r,a,o,e)},n.getRawData=H(Tv,null,e)),n.cloneRawData=H(Ev,null,e),n.count=H(Xm(i,eu),null,r,a,o);var d=$m(i);n.retrieveValue=function(e,t){return f(u(r,a,o,e),t)};var f=n.retrieveValueFromItem=function(e,t){if(e!=null){var n=o[t];if(n)return d(e,t,n.name)}};return n.getDimensionInfo=H(Dv,null,o,s),n.cloneAllDimensionInfo=H(Ov,null,o),n}function Tv(e){var t=e.sourceFormat;return Nv(t)||Hc(``),e.data}function Ev(e){var t=e.sourceFormat,n=e.data;if(Nv(t)||Hc(``),t===`arrayRows`){for(var r=[],i=0,a=n.length;i<a;i++)r.push(n[i].slice());return r}if(t===`objectRows`){for(var r=[],i=0,a=n.length;i<a;i++)r.push(I({},n[i]));return r}}function Dv(e,t,n){if(n!=null){if(Ae(n)||!isNaN(n)&&!et(t,n))return e[n];if(et(t,n))return t[n]}}function Ov(e){return P(e)}var kv=J();function Av(e){e=P(e);var t=e.type,n=``;t||Hc(n);var r=t.split(`:`);r.length!==2&&Hc(n);var i=!1;r[0]===`echarts`&&(t=r[1],i=!0),e.__isBuiltIn=i,kv.set(t,e)}function jv(e,t,n){var r=Kc(e),i=r.length;i||Hc(``);for(var a=0,o=i;a<o;a++){var s=r[a];t=Mv(s,t,n,i===1?null:a),a!==o-1&&(t.length=Math.max(t.length,1))}return t}function Mv(e,t,n,r){var i=``;t.length||Hc(i),K(e)||Hc(i);var a=e.type,o=kv.get(a);o||Hc(i);var s=B(t,function(e){return wv(e,o)});return B(Kc(o.transform({upstream:s[0],upstreamList:s,config:P(e.config)})),function(e,n){var r=``;K(e)||Hc(r),e.data||Hc(r),Nv(jm(e.data))||Hc(r);var i,a=t[0];if(a&&n===0&&!e.dimensions){var o=a.startIndex;o&&(e.data=a.data.slice(0,o).concat(e.data)),i={seriesLayoutBy:eu,sourceHeader:o,dimensions:a.metaRawOption.dimensions}}else i={seriesLayoutBy:eu,sourceHeader:0,dimensions:e.dimensions};return Om(e.data,i,null)})}function Nv(e){return e===`arrayRows`||e===`objectRows`}var Pv=function(){function e(e){this._sourceList=[],this._storeList=[],this._upstreamSignList=[],this._versionSignBase=0,this._dirty=!0,this._sourceHost=e}return e.prototype.dirty=function(){this._setLocalSource([],[]),this._storeList=[],this._dirty=!0},e.prototype._setLocalSource=function(e,t){this._sourceList=e,this._upstreamSignList=t,this._versionSignBase++,this._versionSignBase>9e10&&(this._versionSignBase=0)},e.prototype._getVersionSign=function(){return this._sourceHost.uid+`_`+this._versionSignBase},e.prototype.prepareSource=function(){this._isDirty()&&(this._createSource(),this._dirty=!1)},e.prototype._createSource=function(){this._setLocalSource([],[]);var e=this._sourceHost,t=this._getUpstreamSourceManagers(),n=!!t.length,r,i;if(Fv(e)){var a=e,o=void 0,s=void 0,c=void 0;if(n){var l=t[0];l.prepareSource(),c=l.getSource(),o=c.data,s=c.sourceFormat,i=[l._getVersionSign()]}else o=a.get(`data`,!0),s=Me(o)?Ql:Jl,i=[];var u=this._getSourceMetaRawOption()||{},d=c&&c.metaRawOption||{},f=q(u.seriesLayoutBy,d.seriesLayoutBy)||null,p=q(u.sourceHeader,d.sourceHeader),m=q(u.dimensions,d.dimensions);r=f!==d.seriesLayoutBy||!!p!=!!d.sourceHeader||m?[Om(o,{seriesLayoutBy:f,sourceHeader:p,dimensions:m},s)]:[]}else{var h=e;if(n){var g=this._applyTransform(t);r=g.sourceList,i=g.upstreamSignList}else r=[Om(h.get(`source`,!0),this._getSourceMetaRawOption(),null)],i=[]}this._setLocalSource(r,i)},e.prototype._applyTransform=function(e){var t=this._sourceHost,n=t.get(`transform`,!0),r=t.get(`fromTransformResult`,!0);r!=null&&e.length!==1&&Iv(``);var i,a=[],o=[];return z(e,function(e){e.prepareSource();var t=e.getSource(r||0);r!=null&&!t&&Iv(``),a.push(t),o.push(e._getVersionSign())}),n?i=jv(n,a,{datasetIndex:t.componentIndex}):r!=null&&(i=[Am(a[0])]),{sourceList:i,upstreamSignList:o}},e.prototype._isDirty=function(){if(this._dirty)return!0;for(var e=this._getUpstreamSourceManagers(),t=0;t<e.length;t++){var n=e[t];if(n._isDirty()||this._upstreamSignList[t]!==n._getVersionSign())return!0}},e.prototype.getSource=function(e){e||=0;var t=this._sourceList[e];if(!t){var n=this._getUpstreamSourceManagers();return n[0]&&n[0].getSource(e)}return t},e.prototype.getSharedDataStore=function(e){var t=e.makeStoreSchema();return this._innerGetDataStore(t.dimensions,e.source,t.hash)},e.prototype._innerGetDataStore=function(e,t,n){var r=0,i=this._storeList,a=i[r];a||=i[r]={};var o=a[n];if(!o){var s=this._getUpstreamSourceManagers()[0];Fv(this._sourceHost)&&s?o=s._innerGetDataStore(e,t,n):(o=new Sh,o.initData(new Um(t,e.length),e)),a[n]=o}return o},e.prototype._getUpstreamSourceManagers=function(){var e=this._sourceHost;if(Fv(e)){var t=Sm(e);return t?[t.getSourceManager()]:[]}return B(Cm(e),function(e){return e.getSourceManager()})},e.prototype._getSourceMetaRawOption=function(){var e=this._sourceHost,t,n,r;if(Fv(e))t=e.get(`seriesLayoutBy`,!0),n=e.get(`sourceHeader`,!0),r=e.get(`dimensions`,!0);else if(!this._getUpstreamSourceManagers().length){var i=e;t=i.get(`seriesLayoutBy`,!0),n=i.get(`sourceHeader`,!0),r=i.get(`dimensions`,!0)}return{seriesLayoutBy:t,sourceHeader:n,dimensions:r}},e}();function Fv(e){return e.mainType===`series`}function Iv(e){throw Error(e)}var Z={color:{},darkColor:{},size:{}},Lv=Z.color={theme:[`#5070dd`,`#b6d634`,`#505372`,`#ff994d`,`#0ca8df`,`#ffd10a`,`#fb628b`,`#785db0`,`#3fbe95`],neutral00:`#fff`,neutral05:`#f4f7fd`,neutral10:`#e8ebf0`,neutral15:`#dbdee4`,neutral20:`#cfd2d7`,neutral25:`#c3c5cb`,neutral30:`#b7b9be`,neutral35:`#aaacb2`,neutral40:`#9ea0a5`,neutral45:`#929399`,neutral50:`#86878c`,neutral55:`#797b7f`,neutral60:`#6d6e73`,neutral65:`#616266`,neutral70:`#54555a`,neutral75:`#48494d`,neutral80:`#3c3c41`,neutral85:`#303034`,neutral90:`#232328`,neutral95:`#17171b`,neutral99:`#000`,accent05:`#eff1f9`,accent10:`#e0e4f2`,accent15:`#d0d6ec`,accent20:`#c0c9e6`,accent25:`#b1bbdf`,accent30:`#a1aed9`,accent35:`#91a0d3`,accent40:`#8292cc`,accent45:`#7285c6`,accent50:`#6578ba`,accent55:`#5c6da9`,accent60:`#536298`,accent65:`#4a5787`,accent70:`#404c76`,accent75:`#374165`,accent80:`#2e3654`,accent85:`#252b43`,accent90:`#1b2032`,accent95:`#121521`,transparent:`rgba(0,0,0,0)`,highlight:`rgba(255,231,130,0.8)`};for(var Rv in I(Lv,{primary:Lv.neutral80,secondary:Lv.neutral70,tertiary:Lv.neutral60,quaternary:Lv.neutral50,disabled:Lv.neutral20,border:Lv.neutral30,borderTint:Lv.neutral20,borderShade:Lv.neutral40,background:Lv.neutral05,backgroundTint:`rgba(234,237,245,0.5)`,backgroundTransparent:`rgba(255,255,255,0)`,backgroundShade:Lv.neutral10,shadow:`rgba(0,0,0,0.2)`,shadowTint:`rgba(129,130,136,0.2)`,axisLine:Lv.neutral70,axisLineTint:Lv.neutral40,axisTick:Lv.neutral70,axisTickMinor:Lv.neutral60,axisLabel:Lv.neutral70,axisSplitLine:Lv.neutral15,axisMinorSplitLine:Lv.neutral05}),Lv)if(Lv.hasOwnProperty(Rv)){var zv=Lv[Rv];Rv===`theme`?Z.darkColor.theme=Lv.theme.slice():Rv===`highlight`?Z.darkColor.highlight=`rgba(255,231,130,0.4)`:Rv.indexOf(`accent`)===0?Z.darkColor[Rv]=Mi(zv,null,function(e){return e*.5},function(e){return Math.min(1,1.3-e)}):Z.darkColor[Rv]=Mi(zv,null,function(e){return e*.9},function(e){return 1-e**1.5})}Z.size={xxs:2,xs:5,s:10,m:15,l:20,xl:30,xxl:40,xxxl:50};var Bv=`line-height:1`;function Vv(e){var t=e.lineHeight;return t==null?Bv:`line-height:`+Pg(t+``)+`px`}function Hv(e,t){var n=e.color||Z.color.tertiary,r=e.fontSize||12,i=e.fontWeight||`400`,a=e.color||Z.color.secondary,o=e.fontSize||14,s=e.fontWeight||`900`;return t===`html`?{nameStyle:`font-size:`+Pg(r+``)+`px;color:`+Pg(n)+`;font-weight:`+Pg(i+``),valueStyle:`font-size:`+Pg(o+``)+`px;color:`+Pg(a)+`;font-weight:`+Pg(s+``)}:{nameStyle:{fontSize:r,fill:n,fontWeight:i},valueStyle:{fontSize:o,fill:a,fontWeight:s}}}var Uv=[0,10,20,30],Wv=[``,`
|
|
10
|
+
`,`
|
|
11
|
+
|
|
12
|
+
`,`
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
`];function Gv(e,t){return t.type=e,t}function Kv(e){return e.type===`section`}function qv(e){return Kv(e)?Yv:Xv}function Jv(e){if(Kv(e)){var t=0,n=e.blocks.length,r=n>1||n>0&&!e.noHeader;return z(e.blocks,function(e){var n=Jv(e);n>=t&&(t=n+ +(r&&(!n||Kv(e)&&!e.noHeader)))}),t}return 0}function Yv(e,t,n,r){var i=t.noHeader,a=Qv(Jv(t)),o=[],s=t.blocks||[];He(!s||U(s)),s||=[];var c=e.orderMode;if(t.sortBlocks&&c){s=s.slice();var l={valueAsc:`asc`,valueDesc:`desc`};if(et(l,c)){var u=new uh(l[c],null);s.sort(function(e,t){return u.evaluate(e.sortParam,t.sortParam)})}else c===`seriesDesc`&&s.reverse()}z(s,function(n,i){var s=t.valueFormatter,c=qv(n)(s?I(I({},e),{valueFormatter:s}):e,n,i>0?a.html:0,r);c!=null&&o.push(c)});var d=e.renderMode===`richText`?o.join(a.richText):$v(r,o.join(``),i?n:a.html);if(i)return d;var f=R_(t.header,`ordinal`,e.useUTC),p=Hv(r,e.renderMode).nameStyle,m=Vv(r);return e.renderMode===`richText`?ny(e,f,p)+a.richText+d:$v(r,`<div style="`+p+`;`+m+`;">`+Pg(f)+`</div>`+d,n)}function Xv(e,t,n,r){var i=e.renderMode,a=t.noName,o=t.noValue,s=!t.markerType,c=t.name,l=e.useUTC,u=t.valueFormatter||e.valueFormatter||function(e){return e=U(e)?e:[e],B(e,function(e,t){return R_(e,U(p)?p[t]:p,l)})};if(!(a&&o)){var d=s?``:e.markupStyleCreator.makeTooltipMarker(t.markerType,t.markerColor||Z.color.secondary,i),f=a?``:R_(c,`ordinal`,l),p=t.valueType,m=o?[]:u(t.value,t.rawDataIndex),h=!s||!a,g=!s&&a,_=Hv(r,i),v=_.nameStyle,y=_.valueStyle;return i===`richText`?(s?``:d)+(a?``:ny(e,f,v))+(o?``:ry(e,m,h,g,y)):$v(r,(s?``:d)+(a?``:ey(f,!s,v))+(o?``:ty(m,h,g,y)),n)}}function Zv(e,t,n,r,i,a){if(e)return qv(e)({useUTC:i,renderMode:n,orderMode:r,markupStyleCreator:t,valueFormatter:e.valueFormatter},e,0,a)}function Qv(e){return{html:Uv[e],richText:Wv[e]}}function $v(e,t,n){var r=`<div style="clear:both"></div>`,i=`margin: `+n+`px 0 0`,a=Vv(e);return`<div style="`+i+`;`+a+`;">`+t+r+`</div>`}function ey(e,t,n){var r=t?`margin-left:2px`:``;return`<span style="`+n+`;`+r+`">`+Pg(e)+`</span>`}function ty(e,t,n,r){var i=t?`float:right;margin-left:`+(n?`10px`:`20px`):``;return e=U(e)?e:[e],`<span style="`+i+`;`+r+`">`+B(e,function(e){return Pg(e)}).join(` `)+`</span>`}function ny(e,t,n){return e.markupStyleCreator.wrapRichTextStyle(t,n)}function ry(e,t,n,r,i){var a=[i],o=r?10:20;return n&&a.push({padding:[0,0,0,o],align:`right`}),e.markupStyleCreator.wrapRichTextStyle(U(t)?t.join(` `):t,a)}function iy(e,t){var n=e.getData().getItemVisual(t,`style`)[e.visualDrawType];return G_(n)}function ay(e,t){return e.get(`padding`)??(t===`richText`?[8,10]:10)}var oy=function(){function e(){this.richTextStyles={},this._nextStyleNameId=Nc()}return e.prototype._generateStyleName=function(){return`__EC_aUTo_`+this._nextStyleNameId++},e.prototype.makeTooltipMarker=function(e,t,n){var r=n===`richText`?this._generateStyleName():null,i=H_({color:t,type:e,renderMode:n,markerId:r});return G(i)?i:(this.richTextStyles[r]=i.style,i.content)},e.prototype.wrapRichTextStyle=function(e,t){var n={};U(t)?z(t,function(e){return I(n,e)}):I(n,t);var r=this._generateStyleName();return this.richTextStyles[r]=n,`{`+r+`|`+e+`}`},e}();function sy(e){var t=e.series,n=e.dataIndex,r=e.multipleSeries,i=t.getData(),a=i.mapDimensionsAll(`defaultedTooltip`),o=a.length,s=t.getRawValue(n),c=U(s),l=iy(t,n),u,d,f,p;if(o>1||c&&!o){var m=cy(s,t,n,a,l);u=m.inlineValues,d=m.inlineValueTypes,f=m.blocks,p=m.inlineValues[0]}else if(o){var h=i.getDimensionInfo(a[0]);p=u=th(i,n,a[0]),d=h.type}else p=u=c?s[0]:s;var g=sl(t),_=g&&t.name||``,v=i.getName(n),y=r?_:v;return Gv(`section`,{header:_,noHeader:r||!g,sortParam:p,blocks:[Gv(`nameValue`,{markerType:`item`,markerColor:l,name:y,noName:!Ue(y),value:u,valueType:d,rawDataIndex:i.getRawIndex(n)})].concat(f||[])})}function cy(e,t,n,r,i){var a=t.getData(),o=we(e,function(e,t,n){var r=a.getDimensionInfo(n);return e||=r&&r.tooltip!==!1&&r.displayName!=null},!1),s=[],c=[],l=[];r.length?z(r,function(e){u(th(a,n,e),e)}):z(e,u);function u(e,t){var n=a.getDimensionInfo(t);n&&n.otherDims.tooltip!==!1&&(o?l.push(Gv(`nameValue`,{markerType:`subItem`,markerColor:i,name:n.displayName,value:e,valueType:n.type})):(s.push(e),c.push(n.type)))}return{inlineValues:s,inlineValueTypes:c,blocks:l}}var ly=ml();function uy(e,t){return e.getName(t)||e.getId(t)}var dy=function(e){D(t,e);function t(){var t=e!==null&&e.apply(this,arguments)||this;return t._selectedDataIndicesMap={},t}return t.prototype.init=function(e,t,n){this.seriesIndex=this.componentIndex,this.dataTask=bv({count:my,reset:hy}),this.dataTask.context={model:this},this.mergeDefaultAndTheme(e,n),(ly(this).sourceManager=new Pv(this)).prepareSource();var r=this.getInitialData(e,n);_y(r,this),this.dataTask.context.data=r,ly(this).dataBeforeProcessed=r,fy(this),this._initSelectedMapFromData(r)},t.prototype.mergeDefaultAndTheme=function(e,t){var n=rv(this),r=n?av(e):{},i=this.subType;cv.hasClass(i)&&(i+=`Series`),F(e,t.getTheme().get(this.subType)),F(e,this.getDefaultOption()),qc(e,`label`,[`show`]),this.fillDataTextStyle(e.data),n&&iv(e,r,n)},t.prototype.mergeOption=function(e,t){e=F(this.option,e,!0),this.fillDataTextStyle(e.data);var n=rv(this);n&&iv(this.option,e,n);var r=ly(this).sourceManager;r.dirty(),r.prepareSource();var i=this.getInitialData(e,t);_y(i,this),this.dataTask.dirty(),this.dataTask.context.data=i,ly(this).dataBeforeProcessed=i,fy(this),this._initSelectedMapFromData(i)},t.prototype.fillDataTextStyle=function(e){if(e&&!Me(e))for(var t=[`show`],n=0;n<e.length;n++)e[n]&&e[n].label&&qc(e[n],`label`,t)},t.prototype.getInitialData=function(e,t){},t.prototype.appendData=function(e){this.getRawData().appendData(e.data)},t.prototype.getData=function(e){var t=yy(this);if(t){var n=t.context.data;return e==null||!n.getLinkedData?n:n.getLinkedData(e)}return ly(this).data},t.prototype.getAllData=function(){var e=this.getData();return e&&e.getLinkedDataAll?e.getLinkedDataAll():[{data:e}]},t.prototype.setData=function(e){var t=yy(this);if(t){var n=t.context;n.outputData=e,t!==this.dataTask&&(n.data=e)}ly(this).data=e},t.prototype.getEncode=function(){var e=this.get(`encode`,!0);if(e)return J(e)},t.prototype.getSourceManager=function(){return ly(this).sourceManager},t.prototype.getSource=function(){return this.getSourceManager().getSource()},t.prototype.getRawData=function(){return ly(this).dataBeforeProcessed},t.prototype.getColorBy=function(){return this.get(`colorBy`)||`series`},t.prototype.isColorBySeries=function(){return this.getColorBy()===`series`},t.prototype.getBaseAxis=function(){var e=this.coordinateSystem;return e&&e.getBaseAxis&&e.getBaseAxis()},t.prototype.indicesOfNearest=function(e,t,n,r){var i=this.getData(),a=this.coordinateSystem,o=a&&a.getAxis(e);if(!a||!o)return[];var s=o.dataToCoord(n);r??=1/0;for(var c=[],l=1/0,u=-1,d=0,f=i.getDimensionIndex(t),p=i.getStore(),m=0,h=p.count();m<h;m++){var g=p.get(f,m),_=s-o.dataToCoord(g),v=Math.abs(_);v<=r&&((v<l||v===l&&_>=0&&u<0)&&(l=v,u=_,d=0),_===u&&(c[d++]=m))}return c.length=d,c},t.prototype.formatTooltip=function(e,t,n){return sy({series:this,dataIndex:e,multipleSeries:t})},t.prototype.isAnimationEnabled=function(){var e=this.ecModel;if(Y.node&&!(e&&e.ssr))return!1;var t=this.getShallow(`animation`);return t&&this.getData().count()>this.getShallow(`animationThreshold`)&&(t=!1),!!t},t.prototype.restoreData=function(){this.dataTask.dirty()},t.prototype.getColorFromPalette=function(e,t,n){var r=this.ecModel,i=fv.prototype.getColorFromPalette.call(this,e,t,n);return i||=r.getColorFromPalette(e,t,n),i},t.prototype.coordDimToDataDim=function(e){return this.getRawData().mapDimensionsAll(e)},t.prototype.getProgressive=function(){return this.get(`progressive`)},t.prototype.getProgressiveThreshold=function(){return this.get(`progressiveThreshold`)},t.prototype.select=function(e,t){this._innerSelect(this.getData(t),e)},t.prototype.unselect=function(e,t){var n=this.option.selectedMap;if(n){var r=this.option.selectedMode,i=this.getData(t);if(r===`series`||n===`all`){this.option.selectedMap={},this._selectedDataIndicesMap={};return}for(var a=0;a<e.length;a++){var o=e[a],s=uy(i,o);n[s]=!1,this._selectedDataIndicesMap[s]=-1}}},t.prototype.toggleSelect=function(e,t){for(var n=[],r=0;r<e.length;r++)n[0]=e[r],this.isSelected(e[r],t)?this.unselect(n,t):this.select(n,t)},t.prototype.getSelectedDataIndices=function(){if(this.option.selectedMap===`all`)return[].slice.call(this.getData().getIndices());for(var e=this._selectedDataIndicesMap,t=V(e),n=[],r=0;r<t.length;r++){var i=e[t[r]];i>=0&&n.push(i)}return n},t.prototype.isSelected=function(e,t){var n=this.option.selectedMap;if(!n)return!1;var r=this.getData(t);return(n===`all`||n[uy(r,e)])&&!r.getItemModel(e).get([`select`,`disabled`])},t.prototype.isUniversalTransitionEnabled=function(){if(this.__universalTransitionEnabled)return!0;var e=this.option.universalTransition;return e?e===!0||e&&e.enabled:!1},t.prototype._innerSelect=function(e,t){var n,r,i=this.option,a=i.selectedMode,o=t.length;if(a&&o){if(a===`series`)i.selectedMap=`all`;else if(a===`multiple`){K(i.selectedMap)||(i.selectedMap={});for(var s=i.selectedMap,c=0;c<o;c++){var l=t[c],u=uy(e,l);s[u]=!0,this._selectedDataIndicesMap[u]=e.getRawIndex(l)}}else if(a===`single`||a===!0){var d=t[o-1],u=uy(e,d);i.selectedMap=(n={},n[u]=!0,n),this._selectedDataIndicesMap=(r={},r[u]=e.getRawIndex(d),r)}}},t.prototype._initSelectedMapFromData=function(e){if(!this.option.selectedMap){var t=[];e.hasItemOption&&e.each(function(n){var r=e.getRawDataItem(n);r&&r.selected&&t.push(n)}),t.length>0&&this._innerSelect(e,t)}},t.registerClass=function(e){return cv.registerClass(e)},t.protoInitialize=function(){var e=t.prototype;e.type=`series.__base__`,e.seriesIndex=0,e.ignoreStyleOnData=!1,e.hasSymbolVisual=!1,e.defaultSymbol=`circle`,e.visualStyleAccessPath=`itemStyle`,e.visualDrawType=`fill`}(),t}(cv);Se(dy,vv),Se(dy,fv),mt(dy,cv);function fy(e){var t=e.name;sl(e)||(e.name=py(e)||t)}function py(e){var t=e.getRawData(),n=t.mapDimensionsAll(`seriesName`),r=[];return z(n,function(e){var n=t.getDimensionInfo(e);n.displayName&&r.push(n.displayName)}),r.join(` `)}function my(e){return e.model.getRawData().count()}function hy(e){var t=e.model;return t.setData(t.getRawData().cloneShallow()),gy}function gy(e,t){t.outputData&&e.end>t.outputData.count()&&t.model.getRawData().cloneShallow(t.outputData)}function _y(e,t){z(Ze(e.CHANGABLE_METHODS,e.DOWNSAMPLE_METHODS),function(n){e.wrapMethod(n,Oe(vy,t))})}function vy(e,t){var n=yy(e);return n&&n.setOutputEnd((t||this).count()),t}function yy(e){var t=(e.ecModel||{}).scheduler,n=t&&t.getPipeline(e.uid);if(n){var r=n.currentTask;if(r){var i=r.agentStubMap;i&&(r=i.get(e.uid))}return r}}var by=fs.extend({type:`triangle`,shape:{cx:0,cy:0,width:0,height:0},buildPath:function(e,t){var n=t.cx,r=t.cy,i=t.width/2,a=t.height/2;e.moveTo(n,r-a),e.lineTo(n+i,r+a),e.lineTo(n-i,r+a),e.closePath()}}),xy={line:mf,rect:Es,roundRect:Es,square:Es,circle:Ld,diamond:fs.extend({type:`diamond`,shape:{cx:0,cy:0,width:0,height:0},buildPath:function(e,t){var n=t.cx,r=t.cy,i=t.width/2,a=t.height/2;e.moveTo(n,r-a),e.lineTo(n+i,r),e.lineTo(n,r+a),e.lineTo(n-i,r),e.closePath()}}),pin:fs.extend({type:`pin`,shape:{x:0,y:0,width:0,height:0},buildPath:function(e,t){var n=t.x,r=t.y,i=t.width/5*3,a=Math.max(i,t.height),o=i/2,s=o*o/(a-o),c=r-a+o+s,l=Math.asin(s/o),u=Math.cos(l)*o,d=Math.sin(l),f=Math.cos(l),p=o*.6,m=o*.7;e.moveTo(n-u,c+s),e.arc(n,c,o,Math.PI-l,Math.PI*2+l),e.bezierCurveTo(n+u-d*p,c+s+f*p,n,r-m,n,r),e.bezierCurveTo(n,r-m,n-u+d*p,c+s+f*p,n-u,c+s),e.closePath()}}),arrow:fs.extend({type:`arrow`,shape:{x:0,y:0,width:0,height:0},buildPath:function(e,t){var n=t.height,r=t.width,i=t.x,a=t.y,o=r/3*2;e.moveTo(i,a),e.lineTo(i+o,a+n),e.lineTo(i,a+n/4*3),e.lineTo(i-o,a+n),e.lineTo(i,a),e.closePath()}}),triangle:by},Sy={line:function(e,t,n,r,i){i.x1=e,i.y1=t+r/2,i.x2=e+n,i.y2=t+r/2},rect:function(e,t,n,r,i){i.x=e,i.y=t,i.width=n,i.height=r},roundRect:function(e,t,n,r,i){i.x=e,i.y=t,i.width=n,i.height=r,i.r=Math.min(n,r)/4},square:function(e,t,n,r,i){var a=Math.min(n,r);i.x=e,i.y=t,i.width=a,i.height=a},circle:function(e,t,n,r,i){i.cx=e+n/2,i.cy=t+r/2,i.r=Math.min(n,r)/2},diamond:function(e,t,n,r,i){i.cx=e+n/2,i.cy=t+r/2,i.width=n,i.height=r},pin:function(e,t,n,r,i){i.x=e+n/2,i.y=t+r/2,i.width=n,i.height=r},arrow:function(e,t,n,r,i){i.x=e+n/2,i.y=t+r/2,i.width=n,i.height=r},triangle:function(e,t,n,r,i){i.cx=e+n/2,i.cy=t+r/2,i.width=n,i.height=r}},Cy={};z(xy,function(e,t){Cy[t]=new e});var wy=fs.extend({type:`symbol`,shape:{symbolType:``,x:0,y:0,width:0,height:0},calculateTextPosition:function(e,t,n){var r=Qn(e,t,n),i=this.shape;return i&&i.symbolType===`pin`&&t.position===`inside`&&(r.y=n.y+n.height*.4),r},buildPath:function(e,t,n){var r=t.symbolType;if(r!==`none`){var i=Cy[r];i||=(r=`rect`,Cy[r]),Sy[r](t.x,t.y,t.width,t.height,i.shape),i.buildPath(e,i.shape,n)}}});function Ty(e,t){if(this.type!==`image`){var n=this.style;this.__isEmptyBrush?(n.stroke=e,n.fill=t||Z.color.neutral00,n.lineWidth=2):this.shape.symbolType===`line`?n.stroke=e:n.fill=e,this.markRedraw()}}function Ey(e,t,n,r,i,a,o){var s=e.indexOf(`empty`)===0;s&&(e=e.substr(5,1).toLowerCase()+e.substr(6));var c=e.indexOf(`image://`)===0?np(e.slice(8),new X(t,n,r,i),o?`center`:`cover`):e.indexOf(`path://`)===0?tp(e.slice(7),{},new X(t,n,r,i),o?`center`:`cover`):new wy({shape:{symbolType:e,x:t,y:n,width:r,height:i}});return c.__isEmptyBrush=s,c.setColor=Ty,a&&c.setColor(a),c}function Dy(e){return U(e)||(e=[+e,+e]),[e[0]||0,e[1]||0]}function Oy(e,t){if(e!=null)return U(e)||(e=[e,e]),[oc(e[0],t[0])||0,oc(q(e[1],e[0]),t[1])||0]}var ky=function(e){D(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n.hasSymbolVisual=!0,n}return t.prototype.getInitialData=function(e){return pg(null,this,{useEncodeDefaulter:!0})},t.prototype.getLegendIcon=function(e){var t=new Fd,n=Ey(`line`,0,e.itemHeight/2,e.itemWidth,0,e.lineStyle.stroke,!1);t.add(n),n.setStyle(e.lineStyle);var r=this.getData().getVisual(`symbol`),i=this.getData().getVisual(`symbolRotate`),a=r===`none`?`circle`:r,o=e.itemHeight*.8,s=Ey(a,(e.itemWidth-o)/2,(e.itemHeight-o)/2,o,o,e.itemStyle.fill);return t.add(s),s.setStyle(e.itemStyle),s.rotation=(e.iconRotate===`inherit`?i:e.iconRotate||0)*Math.PI/180,s.setOrigin([e.itemWidth/2,e.itemHeight/2]),a.indexOf(`empty`)>-1&&(s.style.stroke=s.style.fill,s.style.fill=Z.color.neutral00,s.style.lineWidth=2),t},t.type=`series.line`,t.dependencies=[`grid`,`polar`],t.defaultOption={z:3,coordinateSystem:`cartesian2d`,legendHoverLink:!0,clip:!0,label:{position:`top`},endLabel:{show:!1,valueAnimation:!0,distance:8},lineStyle:{width:2,type:`solid`},emphasis:{scale:!0},step:!1,smooth:!1,smoothMonotone:null,symbol:`emptyCircle`,symbolSize:6,symbolRotate:null,showSymbol:!0,showAllSymbol:`auto`,connectNulls:!1,sampling:`none`,animationEasing:`linear`,progressive:0,hoverLayerThreshold:1/0,universalTransition:{divideShape:`clone`},triggerLineEvent:!1,triggerEvent:!1},t}(dy);function Ay(e,t){var n=e.mapDimensionsAll(`defaultedLabel`),r=n.length;if(r===1){var i=th(e,t,n[0]);return i==null?null:i+``}if(r){for(var a=[],o=0;o<n.length;o++)a.push(th(e,t,n[o]));return a.join(` `)}}function jy(e,t){var n=e.mapDimensionsAll(`defaultedLabel`);if(!U(t))return t+``;for(var r=[],i=0;i<n.length;i++){var a=e.getDimensionIndex(n[i]);a>=0&&r.push(t[a])}return r.join(` `)}var My=function(e){D(t,e);function t(t,n,r,i){var a=e.call(this)||this;return a.updateData(t,n,r,i),a}return t.prototype._createSymbol=function(e,t,n,r,i,a){this.removeAll();var o=Ey(e,-1,-1,2,2,null,a);o.attr({z2:q(i,100),culling:!0,scaleX:r[0]/2,scaleY:r[1]/2}),o.drift=Ny,this._symbolType=e,this.add(o)},t.prototype.stopSymbolAnimation=function(e){this.childAt(0).stopAnimation(null,e)},t.prototype.getSymbolType=function(){return this._symbolType},t.prototype.getSymbolPath=function(){return this.childAt(0)},t.prototype.highlight=function(){Iu(this.childAt(0))},t.prototype.downplay=function(){Lu(this.childAt(0))},t.prototype.setZ=function(e,t){var n=this.childAt(0);n.zlevel=e,n.z=t},t.prototype.setDraggable=function(e,t){var n=this.childAt(0);n.draggable=e,n.cursor=!t&&e?`move`:n.cursor},t.prototype.updateData=function(e,n,r,i){this.silent=!1;var a=e.getItemVisual(n,`symbol`)||`circle`,o=e.hostModel,s=t.getSymbolSize(e,n),c=t.getSymbolZ2(e,n),l=a!==this._symbolType,u=i&&i.disableAnimation;if(l){var d=e.getItemVisual(n,`symbolKeepAspect`);this._createSymbol(a,e,n,s,c,d)}else{var f=this.childAt(0);f.silent=!1;var p={scaleX:s[0]/2,scaleY:s[1]/2};u?f.attr(p):zf(f,p,o,n),Gf(f)}if(this._updateCommon(e,n,s,r,i),l){var f=this.childAt(0);if(!u){var p={scaleX:this._sizeX,scaleY:this._sizeY,style:{opacity:f.style.opacity}};f.scaleX=f.scaleY=0,f.style.opacity=0,Bf(f,p,o,n)}}u&&this.childAt(0).stopAnimation(`leave`)},t.prototype._updateCommon=function(e,t,n,r,i){var a=this.childAt(0),o=e.hostModel,s,c,l,u,d,f,p,m,h;if(r&&(s=r.emphasisItemStyle,c=r.blurItemStyle,l=r.selectItemStyle,u=r.focus,d=r.blurScope,p=r.labelStatesModels,m=r.hoverScale,h=r.cursorStyle,f=r.emphasisDisabled),!r||e.hasItemOption){var g=r&&r.itemModel?r.itemModel:e.getItemModel(t),_=g.getModel(`emphasis`);s=_.getModel(`itemStyle`).getItemStyle(),l=g.getModel([`select`,`itemStyle`]).getItemStyle(),c=g.getModel([`blur`,`itemStyle`]).getItemStyle(),u=_.get(`focus`),d=_.get(`blurScope`),f=_.get(`disabled`),p=Wp(g),m=_.getShallow(`scale`),h=g.getShallow(`cursor`)}var v=e.getItemVisual(t,`symbolRotate`);a.attr(`rotation`,(v||0)*Math.PI/180||0);var y=Oy(e.getItemVisual(t,`symbolOffset`),n);y&&(a.x=y[0],a.y=y[1]),h&&a.attr(`cursor`,h);var b=e.getItemVisual(t,`style`),x=b.fill;if(a instanceof vs){var S=a.style;a.useStyle(I({image:S.image,x:S.x,y:S.y,width:S.width,height:S.height},b))}else a.__isEmptyBrush?a.useStyle(I({},b)):a.useStyle(b),a.style.decal=null,a.setColor(x,i&&i.symbolInnerColor),a.style.strokeNoScale=!0;var C=e.getItemVisual(t,`liftZ`),w=this._z2;C==null?w!=null&&(a.z2=w,this._z2=null):w??(this._z2=a.z2,a.z2+=C);var T=i&&i.useNameLabel;Up(a,p,{labelFetcher:o,labelDataIndex:t,defaultText:E,inheritColor:x,defaultOpacity:b.opacity});function E(t){return T?e.getName(t):Ay(e,t)}this._sizeX=n[0]/2,this._sizeY=n[1]/2;var D=a.ensureState(`emphasis`);D.style=s,a.ensureState(`select`).style=l,a.ensureState(`blur`).style=c;var O=m==null||m===!0?Math.max(1.1,3/this._sizeY):isFinite(m)&&m>0?+m:1;D.scaleX=this._sizeX*O,D.scaleY=this._sizeY*O,this.setSymbolScale(1),td(this,u,d,f)},t.prototype.setSymbolScale=function(e){this.scaleX=this.scaleY=e},t.prototype.fadeOut=function(e,t,n){var r=this.childAt(0),i=Wl(this).dataIndex,a=n&&n.animation;if(this.silent=r.silent=!0,n&&n.fadeLabel){var o=r.getTextContent();o&&Hf(o,{style:{opacity:0}},t,{dataIndex:i,removeOpt:a,cb:function(){r.removeTextContent()}})}else r.removeTextContent();Hf(r,{style:{opacity:0},scaleX:0,scaleY:0},t,{dataIndex:i,cb:e,removeOpt:a})},t.getSymbolSize=function(e,t){return Dy(e.getItemVisual(t,`symbolSize`))},t.getSymbolZ2=function(e,t){return e.getItemVisual(t,`z2`)},t}(Fd);function Ny(e,t){this.parent.drift(e,t)}function Py(e,t,n,r){return t&&!isNaN(t[0])&&!isNaN(t[1])&&!(r&&r.isIgnore&&r.isIgnore(n))&&!(r&&r.clipShape&&!r.clipShape.contain(t[0],t[1]))&&e.getItemVisual(n,`symbol`)!==`none`}function Fy(e){return e!=null&&!K(e)&&(e={isIgnore:e}),e||{}}function Iy(e){var t=e.hostModel,n=t.getModel(`emphasis`);return{emphasisItemStyle:n.getModel(`itemStyle`).getItemStyle(),blurItemStyle:t.getModel([`blur`,`itemStyle`]).getItemStyle(),selectItemStyle:t.getModel([`select`,`itemStyle`]).getItemStyle(),focus:n.get(`focus`),blurScope:n.get(`blurScope`),emphasisDisabled:n.get(`disabled`),hoverScale:n.get(`scale`),labelStatesModels:Wp(t),cursorStyle:t.get(`cursor`)}}function Ly(e,t,n,r,i,a,o){var s=new e(t,n,r,i);return s.setPosition(a),t.setItemGraphicEl(n,s),o.add(s),s}var Ry=function(){function e(e){this.group=new Fd,this._SymbolCtor=e||My}return e.prototype.updateData=function(e,t){this._progressiveEls=null,t=Fy(t);var n=this.group,r=e.hostModel,i=this._data,a=this._SymbolCtor,o=t.disableAnimation,s=this._seriesScope=Iy(e),c={disableAnimation:o},l=t.getSymbolPoint||function(t){return e.getItemLayout(t)};i||n.removeAll(),e.diff(i).add(function(r){var i=l(r);Py(e,i,r,t)&&Ly(a,e,r,s,c,i,n)}).update(function(u,d){var f=i.getItemGraphicEl(d),p=l(u);if(!Py(e,p,u,t)){n.remove(f);return}var m=e.getItemVisual(u,`symbol`)||`circle`,h=f&&f.getSymbolType&&f.getSymbolType();if(!f||h&&h!==m)n.remove(f),f=new a(e,u,s,c),f.setPosition(p);else{f.updateData(e,u,s,c);var g={x:p[0],y:p[1]};o?f.attr(g):zf(f,g,r)}n.add(f),e.setItemGraphicEl(u,f)}).remove(function(e){var t=i.getItemGraphicEl(e);t&&t.fadeOut(function(){n.remove(t)},r)}).execute(),this._getSymbolPoint=l,this._data=e},e.prototype.updateLayout=function(e){var t=this._data;if(t)for(var n=this,r=t.getStore(),i=0,a=r.count();i<a;i++){var o=t.getItemGraphicEl(i),s=n._getSymbolPoint(i);Py(t,s,i,e)?(o||=Ly(n._SymbolCtor,t,i,n._seriesScope,{disableAnimation:!0},s,n.group),o.stopAnimation(),o.setPosition(s),o.markRedraw()):o&&(n.group.remove(o),t.setItemGraphicEl(i,null))}},e.prototype.incrementalPrepareUpdate=function(e){this._seriesScope=Iy(e),this._data=null,this.group.removeAll()},e.prototype.incrementalUpdate=function(e,t,n,r){this._progressiveEls=[],r=Fy(r);function i(e){e.isGroup||(e.incremental=n,e.ensureState(`emphasis`).hoverLayer=2)}for(var a=e.start;a<e.end;a++){var o=t.getItemLayout(a);if(Py(t,o,a,r)){var s=new this._SymbolCtor(t,a,this._seriesScope);s.traverse(i),s.setPosition(o),this.group.add(s),t.setItemGraphicEl(a,s),this._progressiveEls.push(s)}}},e.prototype.eachRendered=function(e){Dp(this._progressiveEls||this.group,e)},e.prototype.remove=function(e){var t=this.group,n=this._data;n&&e?n.eachItemGraphicEl(function(e){e.fadeOut(function(){t.remove(e)},n.hostModel)}):t.removeAll()},e}();function zy(e,t,n){var r=e.getBaseAxis(),i=e.getOtherAxis(r),a=By(i,n),o=r.dim,s=i.dim,c=t.mapDimension(s),l=t.mapDimension(o),u=+(s===`x`||s===`radius`),d=B(e.dimensions,function(e){return t.mapDimension(e)}),f=!1,p=t.getCalculationInfo(`stackResultDimension`);return lg(t,d[0])&&(f=!0,d[0]=p),lg(t,d[1])&&(f=!0,d[1]=p),{dataDimsForPoint:d,valueStart:a,valueAxisDim:s,baseAxisDim:o,stacked:!!f,valueDim:c,baseDim:l,baseDataOffset:u,stackedOverDimension:t.getCalculationInfo(`stackedOverDimension`)}}function By(e,t){var n=0,r=e.scale.getExtent();return t===`start`?n=r[0]:t===`end`?n=r[1]:Ae(t)&&!isNaN(t)?n=t:r[0]>0?n=r[0]:r[1]<0&&(n=r[1]),n}function Vy(e,t,n,r){var i=NaN;e.stacked&&(i=n.get(n.getCalculationInfo(`stackedOverDimension`),r)),isNaN(i)&&(i=e.valueStart);var a=e.baseDataOffset,o=[];return o[a]=n.get(e.baseDim,r),o[1-a]=i,t.dataToPoint(o)}function Hy(e,t){return!isFinite(e)||!isFinite(t)}var Uy=typeof Float32Array<`u`?Float32Array:void 0,Wy=typeof Float64Array<`u`?Float64Array:void 0;function Gy(e){return Ky({ctor:Uy},e).arr}function Ky(e,t){var n=e.arr,r=e.ctor;if(t>xc&&(t=xc),!n||e.typed&&n.length<t){var i=void 0;if(r)try{i=new r(t),e.typed=!0,n&&i.set(n)}catch{}if(!i&&(i=[],e.typed=!1,n))for(var a=0,o=n.length;a<o;a++)i[a]=n[a];e.arr=i}return e}function qy(e,t){var n=[];return t.diff(e).add(function(e){n.push({cmd:`+`,idx:e})}).update(function(e,t){n.push({cmd:`=`,idx:t,idx1:e})}).remove(function(e){n.push({cmd:`-`,idx:e})}).execute(),n}function Jy(e,t,n,r,i,a,o,s){for(var c=qy(e,t),l=[],u=[],d=[],f=[],p=[],m=[],h=[],g=zy(i,t,o),_=e.getLayout(`points`)||[],v=t.getLayout(`points`)||[],y=0;y<c.length;y++){var b=c[y],x=!0,S=void 0,C=void 0;switch(b.cmd){case`=`:S=b.idx*2,C=b.idx1*2;var w=_[S],T=_[S+1],E=v[C],D=v[C+1];(isNaN(w)||isNaN(T))&&(w=E,T=D),l.push(w,T),u.push(E,D),d.push(n[S],n[S+1]),f.push(r[C],r[C+1]),h.push(t.getRawIndex(b.idx1));break;case`+`:var O=b.idx,k=g.dataDimsForPoint,A=i.dataToPoint([t.get(k[0],O),t.get(k[1],O)]);C=O*2,l.push(A[0],A[1]),u.push(v[C],v[C+1]);var j=Vy(g,i,t,O);d.push(j[0],j[1]),f.push(r[C],r[C+1]),h.push(t.getRawIndex(O));break;case`-`:x=!1}x&&(p.push(b),m.push(m.length))}m.sort(function(e,t){return h[e]-h[t]});for(var ee=l.length,te=Gy(ee),M=Gy(ee),ne=Gy(ee),re=Gy(ee),ie=[],y=0;y<m.length;y++){var ae=m[y],oe=y*2,se=ae*2;te[oe]=l[se],te[oe+1]=l[se+1],M[oe]=u[se],M[oe+1]=u[se+1],ne[oe]=d[se],ne[oe+1]=d[se+1],re[oe]=f[se],re[oe+1]=f[se+1],ie[y]=p[ae]}return{current:te,next:M,stackedOnCurrent:ne,stackedOnNext:re,status:ie}}var Yy=Math.min,Xy=Math.max;function Zy(e,t,n,r,i,a,o,s,c){for(var l,u,d,f,p,m,h=n,g=0;g<r;g++){var _=t[h*2],v=t[h*2+1];if(h>=i||h<0)break;if(Hy(_,v)){if(c){h+=a;continue}break}if(h===n)e[a>0?`moveTo`:`lineTo`](_,v),d=_,f=v;else{var y=_-l,b=v-u;if(y*y+b*b<.5){h+=a;continue}if(o>0){for(var x=h+a,S=t[x*2],C=t[x*2+1];S===_&&C===v&&g<r;)g++,x+=a,h+=a,S=t[x*2],C=t[x*2+1],_=t[h*2],v=t[h*2+1],y=_-l,b=v-u;var w=g+1;if(c)for(;Hy(S,C)&&w<r;)w++,x+=a,S=t[x*2],C=t[x*2+1];var T=.5,E=0,D=0,O=void 0,k=void 0;if(w>=r||Hy(S,C))p=_,m=v;else{E=S-l,D=C-u;var A=_-l,j=S-_,ee=v-u,te=C-v,M=void 0,ne=void 0;if(s===`x`){M=Math.abs(A),ne=Math.abs(j);var re=E>0?1:-1;p=_-re*M*o,m=v,O=_+re*ne*o,k=v}else if(s===`y`){M=Math.abs(ee),ne=Math.abs(te);var ie=D>0?1:-1;p=_,m=v-ie*M*o,O=_,k=v+ie*ne*o}else M=Math.sqrt(A*A+ee*ee),ne=Math.sqrt(j*j+te*te),T=ne/(ne+M),p=_-E*o*(1-T),m=v-D*o*(1-T),O=_+E*o*T,k=v+D*o*T,O=Yy(O,Xy(S,_)),k=Yy(k,Xy(C,v)),O=Xy(O,Yy(S,_)),k=Xy(k,Yy(C,v)),E=O-_,D=k-v,p=_-E*M/ne,m=v-D*M/ne,p=Yy(p,Xy(l,_)),m=Yy(m,Xy(u,v)),p=Xy(p,Yy(l,_)),m=Xy(m,Yy(u,v)),E=_-p,D=v-m,O=_+E*ne/M,k=v+D*ne/M}e.bezierCurveTo(d,f,p,m,_,v),d=O,f=k}else e.lineTo(_,v)}l=_,u=v,h+=a}return g}var Qy=function(){function e(){this.smooth=0,this.smoothConstraint=!0}return e}(),$y=function(e){D(t,e);function t(t){var n=e.call(this,t)||this;return n.type=`ec-polyline`,n}return t.prototype.getDefaultStyle=function(){return{stroke:Z.color.neutral99,fill:null}},t.prototype.getDefaultShape=function(){return new Qy},t.prototype.buildPath=function(e,t){var n=t.points,r=0,i=n.length/2;if(t.connectNulls){for(;i>0&&Hy(n[i*2-2],n[i*2-1]);i--);for(;r<i&&Hy(n[r*2],n[r*2+1]);r++);}for(;r<i;)r+=Zy(e,n,r,i,i,1,t.smooth,t.smoothMonotone,t.connectNulls)+1},t.prototype.getPointOn=function(e,t){this.path||(this.createPathProxy(),this.buildPath(this.path,this.shape));for(var n=this.path.data,r=Vo.CMD,i,a,o=t===`x`,s=[],c=0;c<n.length;){var l=n[c++],u=void 0,d=void 0,f=void 0,p=void 0,m=void 0,h=void 0,g=void 0;switch(l){case r.M:i=n[c++],a=n[c++];break;case r.L:if(u=n[c++],d=n[c++],g=o?(e-i)/(u-i):(e-a)/(d-a),g<=1&&g>=0){var _=o?(d-a)*g+a:(u-i)*g+i;return o?[e,_]:[_,e]}i=u,a=d;break;case r.C:u=n[c++],d=n[c++],f=n[c++],p=n[c++],m=n[c++],h=n[c++];var v=o?Jr(i,u,f,m,e,s):Jr(a,d,p,h,e,s);if(v>0)for(var y=0;y<v;y++){var b=s[y];if(b<=1&&b>=0){var _=o?Kr(a,d,p,h,b):Kr(i,u,f,m,b);return o?[e,_]:[_,e]}}i=m,a=h}}},t}(fs),eb=function(e){D(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t}(Qy),tb=function(e){D(t,e);function t(t){var n=e.call(this,t)||this;return n.type=`ec-polygon`,n}return t.prototype.getDefaultShape=function(){return new eb},t.prototype.buildPath=function(e,t){var n=t.points,r=t.stackedOnPoints,i=0,a=n.length/2,o=t.smoothMonotone;if(t.connectNulls){for(;a>0&&Hy(n[a*2-2],n[a*2-1]);a--);for(;i<a&&Hy(n[i*2],n[i*2+1]);i++);}for(;i<a;){var s=Zy(e,n,i,a,a,1,t.smooth,o,t.connectNulls);Zy(e,r,i+s-1,s,a,-1,t.stackedOnSmooth,o,t.connectNulls),i+=s+1,e.closePath()}},t}(fs);function nb(){var e=ml();return function(t){var n=e(t),r=t.pipelineContext,i=!!n.large,a=!!n.progressiveRender,o=n.large=!!(r&&r.large),s=n.progressiveRender=!!(r&&r.progressiveRender);return(i!==o||a!==s)&&`reset`}}var rb=ml(),ib=nb(),ab=function(){function e(){this.group=new Fd,this.uid=_g(`viewChart`),this.renderTask=bv({plan:cb,reset:lb}),this.renderTask.context={view:this}}return e.prototype.init=function(e,t){},e.prototype.render=function(e,t,n,r){},e.prototype.highlight=function(e,t,n,r){var i=e.getData(r&&r.dataType);i&&sb(i,r,`emphasis`)},e.prototype.downplay=function(e,t,n,r){var i=e.getData(r&&r.dataType);i&&sb(i,r,`normal`)},e.prototype.remove=function(e,t){this.group.removeAll()},e.prototype.dispose=function(e,t){},e.prototype.updateView=function(e,t,n,r){this.render(e,t,n,r)},e.prototype.updateVisual=function(e,t,n,r){this.render(e,t,n,r)},e.prototype.eachRendered=function(e){Dp(this.group,e)},e.markUpdateMethod=function(e,t){rb(e).updateMethod=t},e.protoInitialize=function(){var t=e.prototype;t.type=`chart`}(),e}();function ob(e,t,n){e&&sd(e)&&(t===`emphasis`?Iu:Lu)(e,n)}function sb(e,t,n){var r=pl(e,t),i=t&&t.highlightKey!=null?ld(t.highlightKey):null;r==null?e.eachItemGraphicEl(function(e){ob(e,n,i)}):z(Kc(r),function(t){ob(e.getItemGraphicEl(t),n,i)})}ft(ab,[`dispose`]),yt(ab);function cb(e){return ib(e.model)}function lb(e){var t=e.model,n=e.ecModel,r=e.api,i=e.payload,a=t.pipelineContext.progressiveRender,o=e.view,s=i&&rb(i).updateMethod,c=a?`incrementalPrepareRender`:s&&o[s]?s:`render`;return c!==`render`&&o[c](t,n,r,i),ub[c]}var ub={incrementalPrepareRender:{progress:function(e,t){t.view.incrementalRender(e,t.model,t.ecModel,t.api,t.payload)}},render:{forceFirstProgress:!0,progress:function(e,t){t.view.render(t.model,t.ecModel,t.api,t.payload)}}};function db(e,t,n,r,i){var a=e.getArea(),o=a.x,s=a.y,c=a.width,l=a.height,u=n.get([`lineStyle`,`width`])||0;o-=u/2,s-=u/2,c+=u,l+=u,c=Math.ceil(c),o!==Math.floor(o)&&(o=Math.floor(o),c++);var d=new Es({shape:{x:o,y:s,width:c,height:l}});if(t){var f=e.getBaseAxis(),p=f.isHorizontal(),m=f.inverse;p?(m&&(d.shape.x+=c),d.shape.width=0):(m||(d.shape.y+=l),d.shape.height=0);var h=W(i)?function(e){i(e,d)}:null;Bf(d,{shape:{width:c,height:l,x:o,y:s}},n,null,r,h)}return d}function fb(e,t,n){var r=e.getArea(),i=dc(r.r0,1),a=dc(r.r,1),o=new nf({shape:{cx:dc(e.cx,1),cy:dc(e.cy,1),r0:i,r:a,startAngle:r.startAngle,endAngle:r.endAngle,clockwise:r.clockwise}});return t&&(e.getBaseAxis().dim===`angle`?o.shape.endAngle=r.startAngle:o.shape.r=i,Bf(o,{shape:{endAngle:r.endAngle,r:a}},n)),o}function pb(e,t,n,r,i){return e?e.type===`polar`?fb(e,t,n):e.type===`cartesian2d`?db(e,t,n,r,i):null:null}function mb(e,t){return e.type===t}var hb=function(){function e(){}return e.prototype.isBlank=function(){return this._isBlank},e.prototype.setBlank=function(e){this._isBlank=e},e}();yt(hb);var gb=0,_b=function(){function e(e){this.categories=e.categories||[],this._needCollect=e.needCollect,this._deduplication=e.deduplication,this.uid=++gb,this._onCollect=e.onCollect}return e.createByAxisModel=function(t){var n=t.option,r=n.data,i=r&&B(r,vb);return new e({categories:i,needCollect:!i,deduplication:n.dedplication!==!1})},e.prototype.getOrdinal=function(e){return this._getOrCreateMap().get(e)},e.prototype.parseAndCollect=function(e){var t,n=this._needCollect;if(!G(e)&&!n)return e;if(n&&!this._deduplication)return t=this.categories.length,this.categories[t]=e,this._onCollect&&this._onCollect(e,t),t;var r=this._getOrCreateMap();return t=r.get(e),t??(n?(t=this.categories.length,this.categories[t]=e,r.set(e,t),this._onCollect&&this._onCollect(e,t)):t=NaN),t},e.prototype._getOrCreateMap=function(){return this._map||=J(this.categories)},e}();function vb(e){return K(e)&&e.value!=null?e.value:e+``}var yb=V({needTransform:1,normalize:1,scale:1,transformIn:1,transformOut:1,contain:1,getExtent:1,getExtentUnsafe:1,setExtent:1,setExtent2:1,getFilter:1,sanitize:1,getDefaultStartValue:1,freeze:1});function bb(e,t,n){var r;e||={};var i=Jg();if(i){var a=i.createBreakScaleMapper(t,n);a.hasBreaks()&&(z(yb,function(t){a[t]&&(e[t]=H(a[t],a))}),r=a)}return r??Db(e,n),{brk:r,mapper:e}}function xb(e,t){z(yb,function(n){e[n]=t[n]})}function Sb(e,t){e.freeze=tt}function Cb(e){return e.getExtentUnsafe(0,2)}function wb(e,t){return e.getExtentUnsafe(1,t)||e.getExtentUnsafe(0,t)}function Tb(e){var t=wb(e,3);return t[1]-t[0]}function Eb(e){var t=e.getExtentUnsafe(0,3);return t[1]-t[0]}function Db(e,t){var n=e||{},r=[];return n._extents=r,r[0]=t?t.slice():El(),I(n,Ob),n}var Ob={needTransform:function(){return!1},normalize:function(e){var t=this._extents[1]||this._extents[0];return t[1]===t[0]?.5:(e-t[0])/(t[1]-t[0])},scale:function(e){var t=this._extents[1]||this._extents[0];return e*(t[1]-t[0])+t[0]},transformIn:function(e){return e},transformOut:function(e){return e},contain:function(e){var t=wb(this,null);return e>=t[0]&&e<=t[1]},getExtent:function(){return this._extents[0].slice()},getExtentUnsafe:function(e){return this._extents[e]},setExtent:function(e,t){kb(this._extents,0,e,t)},setExtent2:function(e,t,n){var r=this._extents;r[e]||(r[e]=r[0].slice()),kb(r,e,t,n)},freeze:function(){}};function kb(e,t,n,r){Ml(n,r)&&(e[t][0]=n,e[t][1]=r)}function Ab(e){return jb(e)||Nb(e)}function jb(e){return e.type===`interval`}function Mb(e){return e.type===`time`}function Nb(e){return e.type===`log`}function Pb(e){return e.type===`ordinal`}function Fb(e){var t=Dc(e),n=ec(10,t),r=Zs(e/n);return r?r===2?r=3:r===3?r=5:r*=2:r=1,dc(r*n,-t)}function Ib(e){return mc(e)+2}function Lb(e,t){return tc(e)/tc(t)}function Rb(e,t,n){var r=n&&n.lookup;if(r){for(var i=0;i<r.from.length;i++)if(e===r.from[i])return r.to[i]}return ec(t,e)}function zb(e,t,n){var r=e.slice();if(r[0]===r[1]){var i=n&&n.ctnShp;if(r[0]!==0){var a=Xs(r[0]);t[1]||(r[1]+=a/2),r[0]-=a/2}else i&&(r[0]=-1),r[1]=1}return(!jl(r[0])||!jl(r[1]))&&(r[0]=0,r[1]=1),r[1]<r[0]&&r.reverse(),r}function Bb(e,t){return[e[0]!==t[0],e[1]!==t[1]]}function Vb(e,t){return e||=t,Zs(Ys(e,1))}function Hb(e,t,n){var r=Cb(e),i=r[0],a=e.count(),o=Math.max((t||0)+1,1);i!==0&&o>1&&a/o>2&&(i=Math.round(Math.ceil(i/o)*o)),i!==r[0]&&c(r[0],!0,!0);for(var s=i;s<=r[1];s+=o)c(s,!1,s===r[0]||s===r[1]);s-o!==r[1]&&c(r[1],!0,!0);function c(e,t,r){n({value:e,offInterval:t},r)}}var Ub=function(e){D(t,e);function t(n){var r=e.call(this)||this;r.type=`ordinal`,r.parse=t.parse,xb(r,t.decoratedMethods);var i=n.ordinalMeta;i||=new _b({}),U(i)&&(i=new _b({categories:B(i,function(e){return K(e)?e.value:e})})),r._ordinalMeta=i;var a=bb(null,null,n.extent||[0,i.categories.length-1]);return r._mapper=a.mapper,Sb(r,a.mapper),r}return t.parse=function(e){return e==null?e=NaN:G(e)?(e=this._ordinalMeta.getOrdinal(e),e??=NaN):e=Zs(e),e},t.prototype.getTicks=function(){var e=[];return Hb(this,0,function(t){e.push(t)}),e},t.prototype.getMinorTicks=function(e){},t.prototype.setSortInfo=function(e){if(e==null){this._ordinalNumbersByTick=this._ticksByOrdinalNumber=null;return}for(var t=e.ordinalNumbers,n=this._ordinalNumbersByTick=[],r=this._ticksByOrdinalNumber=[],i=0,a=this._ordinalMeta.categories.length,o=Js(a,t.length);i<o;++i){var s=n[i]=t[i];r[s]=i}for(var c=0;i<a;++i){for(;r[c]!=null;)c++;n[i]=c,r[c]=i}},t.prototype._getTickNumber=function(e){var t=this._ticksByOrdinalNumber;return t&&e>=0&&e<t.length?t[e]:e},t.prototype.getRawOrdinalNumber=function(e){var t=this._ordinalNumbersByTick;return t&&e>=0&&e<t.length?t[e]:e},t.prototype.getLabel=function(e){if(!this.isBlank()){var t=this.getRawOrdinalNumber(e.value),n=this._ordinalMeta.categories[t];return n==null?``:n+``}},t.prototype.count=function(){var e=Cb(this._mapper);return e[1]-e[0]+1},t.prototype.getOrdinalMeta=function(){return this._ordinalMeta},t.type=`ordinal`,t.decoratedMethods={needTransform:function(){return this._mapper.needTransform()},contain:function(e){return this._mapper.contain(this._getTickNumber(e))&&e>=0&&e<this._ordinalMeta.categories.length},normalize:function(e){return this._mapper.normalize(this._getTickNumber(e))},scale:function(e){return this.getRawOrdinalNumber(Zs(this._mapper.scale(e)))},transformIn:function(e,t){return this._mapper.transformIn(this._getTickNumber(e),t)},transformOut:function(e,t){return this.getRawOrdinalNumber(this._mapper.transformOut(e,t))},getExtent:function(){return this._mapper.getExtent()},getExtentUnsafe:function(e,t){return this._mapper.getExtentUnsafe(e,t)},setExtent:function(e,t){return this._mapper.setExtent(e,t)},setExtent2:function(e,t,n){return this._mapper.setExtent2(e,t,n)}},t}(hb);hb.registerClass(Ub);function Wb(e,t,n,r){for(var i=e.getTicks({expandToNicedExtent:!0}),a=[],o=e.getExtent(),s=1;s<i.length;s++){var c=i[s],l=i[s-1];if(!(l.break||c.break)){for(var u=0,d=[],f=(c.value-l.value)/t,p=Ib(f);u<t-1;){var m=dc(l.value+(u+1)*f,p);m>o[0]&&m<o[1]&&d.push(m),u++}var h=Jg();h&&h.pruneTicksByBreak(`auto`,d,n,function(e){return e},r,o),a.push(d)}}return a}var Gb=function(e){D(t,e);function t(n){var r=e.call(this)||this;return r.type=`interval`,r.parse=t.parse,n||={},r.brk=bb(r,Yg(r,n),null).brk,r._cfg={interval:0,intervalPrecision:2,intervalCount:void 0,niceExtent:void 0},r}return t.parse=function(e){return e==null||e===``?NaN:Number(e)},t.prototype.getConfig=function(){return P(this._cfg)},t.prototype.setConfig=function(e){var t=Cb(this);this._cfg=e=P(e),e.niceExtent??(e.niceExtent=t.slice()),e.intervalPrecision??(e.intervalPrecision=Ib(e.interval))},t.prototype.getTicks=function(e){e||={};var t=this._cfg,n=t.interval,r=Cb(this),i=t.niceExtent,a=t.intervalPrecision,o=Jg(),s=this.brk,c=o&&s,l=[];if(!n)return l;if(e.breakTicks===`only_break`&&c)return o.addBreaksToTicks(l,s.breaks,r),l;var u=3e3;r[0]<i[0]&&l.push({value:e.expandToNicedExtent?dc(i[0]-n,a):r[0]});for(var d=function(e,t){return Zs((t-e)/n)},f=t.intervalCount,p=i[0],m=0;;m++){if(f==null){if(p>i[1]||!isFinite(p)||!isFinite(i[1]))break}else{if(m>f)break;p=Js(p,i[1]),m===f&&(p=i[1])}if(l.push({value:p}),p=dc(p+n,a),s){var h=s.calcNiceTickMultiple(p,d);h>=0&&(p=dc(p+h*n,a))}if(l.length>0&&p===l[l.length-1].value)break;if(l.length>u)return[]}var g=l.length?l[l.length-1].value:i[1];return r[1]>g&&l.push({value:e.expandToNicedExtent?dc(g+n,a):r[1]}),c&&o.pruneTicksByBreak(e.pruneByBreak,l,s.breaks,function(e){return e.value},t.interval,r),c&&e.breakTicks!==`none`&&o.addBreaksToTicks(l,s.breaks,r),l},t.prototype.getMinorTicks=function(e){return Wb(this,e,Xg(this),this._cfg.interval)},t.prototype.getLabel=function(e,t){if(e==null)return``;var n=t&&t.precision;return n==null?n=mc(e.value)||0:n===`auto`&&(n=this._cfg.intervalPrecision),F_(dc(e.value,n,!0))},t.type=`interval`,t}(hb);hb.registerClass(Gb);var Kb=function(e,t,n,r){for(;n<r;){var i=n+r>>>1;e[i][1]<t?n=i+1:r=i}return n},qb=function(e){D(t,e);function t(n){var r=e.call(this)||this;return r.type=`time`,r.parse=t.parse,r._locale=n.locale,r._useUTC=n.useUTC,r._interval=0,r.brk=bb(r,Yg(r,n),null).brk,r}return t.prototype.getLabel=function(e){return g_(e.value,s_[h_(p_(this._minLevelUnit))]||s_.second,this._useUTC,this._locale)},t.prototype.getFormattedLabel=function(e,t,n){return __(e,t,n,this._locale,this._useUTC)},t.prototype.getTicks=function(e){e||={};var t=this._interval,n=Cb(this),r=Jg(),i=this.brk,a=r&&i,o=[];if(!t)return o;var s=this._useUTC;if(a&&e.breakTicks===`only_break`)return Jg().addBreaksToTicks(o,i.breaks,n),o;o=rx(this._minLevelUnit,this._approxInterval,s,n,Eb(this),i);var c=c_.length-1,l=0;return z(o,function(e){e.time&&(c=Math.min(c,R(c_,e.time.upperTimeUnit)),l=Math.max(l,e.time.level))}),a&&Jg().pruneTicksByBreak(e.pruneByBreak,o,i.breaks,function(e){return e.value},this._approxInterval,n),a&&e.breakTicks!==`none`&&Jg().addBreaksToTicks(o,i.breaks,n,function(e){for(var t=Math.max(R(c_,v_(e.vmin,s)),R(c_,v_(e.vmax,s))),n=0,r=0;r<c_.length;r++)if(!Yb(c_[r],e.vmin,e.vmax,s)){n=r;break}var i=Math.min(n,c);return{level:l,lowerTimeUnit:c_[Math.max(i,t)],upperTimeUnit:c_[i]}}),o},t.prototype.getMinorTicks=function(e){return Wb(this,e,Xg(this),this._interval)},t.prototype.setTimeInterval=function(e){this._interval=e.interval,this._approxInterval=e.approxInterval,this._minLevelUnit=e.minLevelUnit},t.parse=function(e){return Ae(e)?Math.round(e):+Tc(e)},t.type=`time`,t}(hb),Jb=[[`second`,Qg],[`minute`,$g],[`hour`,e_],[`quarter-day`,e_*6],[`half-day`,e_*12],[`day`,t_*1.2],[`half-week`,t_*3.5],[`week`,t_*7],[`month`,t_*31],[`quarter`,t_*95],[`half-year`,n_/2],[`year`,n_]];function Yb(e,t,n,r){return y_(new Date(t),e,r).getTime()===y_(new Date(n),e,r).getTime()}function Xb(e,t){return e/=t_,e>16?16:e>7.5?7:e>3.5?4:e>1.5?2:1}function Zb(e){var t=30*t_;return e/=t,e>6?6:e>3?3:e>2?2:1}function Qb(e){return e/=e_,e>12?12:e>6?6:e>3.5?4:e>2?2:1}function $b(e,t){return e/=t?$g:Qg,e>30?30:e>20?20:e>15?15:e>10?10:e>5?5:e>2?2:1}function ex(e){return Ys(Oc(e,!0),1)}function tx(e,t,n){var r=Math.max(0,R(c_,t)-1);return y_(new Date(e),c_[r],n).getTime()}function nx(e,t){var n=new Date(0);n[e](1);var r=n.getTime();n[e](1+t);var i=n.getTime()-r;return function(e,t){return Math.max(0,Math.round((t-e)/i))}}function rx(e,t,n,r,i,a){var o=l_,s=0;function c(e,t,n,i,o,c,l){for(var u=nx(o,e),d=t,f=new Date(d);d<n&&d<=r[1]&&(l.push({value:d}),!(s++>3e3));)if(f[o](f[i]()+e),d=f.getTime(),a){var p=a.calcNiceTickMultiple(d,u);p>0&&(f[o](f[i]()+p*e),d=f.getTime())}l.push({value:d,notAdd:d>r[1]})}function l(e,i,a){var o=[],s=!i.length;if(!Yb(p_(e),r[0],r[1],n)){s&&(i=[{value:tx(r[0],e,n)},{value:r[1]}]);for(var l=0;l<i.length-1;l++){var u=i[l].value,d=i[l+1].value;if(u!==d){var f=void 0,p=void 0,m=void 0,h=!1;switch(e){case`year`:f=Math.max(1,Math.round(t/t_/365)),p=b_(n),m=D_(n);break;case`half-year`:case`quarter`:case`month`:f=Zb(t),p=x_(n),m=O_(n);break;case`week`:case`half-week`:case`day`:f=Xb(t,31),p=S_(n),m=k_(n),h=!0;break;case`half-day`:case`quarter-day`:case`hour`:f=Qb(t),p=C_(n),m=A_(n);break;case`minute`:f=$b(t,!0),p=w_(n),m=j_(n);break;case`second`:f=$b(t,!1),p=T_(n),m=M_(n);break;case`millisecond`:f=ex(t),p=E_(n),m=N_(n)}d>=r[0]&&u<=r[1]&&c(f,u,d,p,m,h,o),e===`year`&&a.length>1&&l===0&&a.unshift({value:a[0].value-f})}}for(var l=0;l<o.length;l++)a.push(o[l])}}for(var u=[],d=[],f=0,p=0,m=0;m<o.length;++m){var h=p_(o[m]);if(m_(o[m])&&(l(o[m],u[u.length-1]||[],d),h!==(o[m+1]?p_(o[m+1]):null))){if(d.length){p=f,d.sort(function(e,t){return e.value-t.value});for(var g=[],_=0;_<d.length;++_){var v=d[_].value;(_===0||d[_-1].value!==v)&&(g.push(d[_]),v>=r[0]&&v<=r[1]&&f++)}var y=i/t;if(f>y*1.5&&p>y/1.5||(u.push(g),f>y||e===o[m]))break}d=[]}}for(var b=Te(B(u,function(e){return Te(e,function(e){return e.value>=r[0]&&e.value<=r[1]&&!e.notAdd})}),function(e){return e.length>0}),x=b.length-1,S=[],m=0;m<b.length;++m)for(var C=b[m],w=0;w<C.length;++w){var T=v_(C[w].value,n);S.push({value:C[w].value,time:{level:x-m,upperTimeUnit:T,lowerTimeUnit:T}})}Ll(S,Rl,null),S.sort(function(e,t){return e.value-t.value});var E=S[0],D=S[S.length-1],O=v_(r[0],n),k=v_(r[1],n);return(!E||E.value>r[0])&&S.unshift({value:r[0],time:{level:0,upperTimeUnit:O,lowerTimeUnit:O},notNice:!0}),(!D||D.value<r[1])&&S.push({value:r[1],time:{level:0,upperTimeUnit:k,lowerTimeUnit:k},notNice:!0}),S}var ix=function(e,t){var n=e.getExtent();if(n[0]===n[1]&&(n[0]-=t_,n[1]+=t_),n[1]===-1/0&&n[0]===1/0){var r=new Date;n[1]=+new Date(r.getFullYear(),r.getMonth(),r.getDate()),n[0]=n[1]-t_}e.setExtent(n[0],n[1]);var i=Vb(t.splitNumber,10),a=Eb(e)/i,o=t.minInterval,s=t.maxInterval;o!=null&&a<o&&(a=o),s!=null&&a>s&&(a=s);var c=Jb.length,l=Math.min(Kb(Jb,a,0,c),c-1),u=Jb[l][1],d=Jb[Math.max(l-1,0)][0];e.setTimeInterval({approxInterval:a,interval:u,minLevelUnit:d})};hb.registerClass(qb);var ax=0,ox=1,sx=2,cx=function(e){D(t,e);function t(n){var r=e.call(this)||this;r.type=`log`,r.parse=Gb.parse,r.base=n.logBase||10;var i=[],a=[],o=r._lookup={from:i,to:a};i[ax]=i[ox]=a[ax]=a[ox]=NaN,xb(r,t.mapperMethods);var s=Jg(),c=n.breakOption,l={lookup:o};return s&&s.parseAxisBreakOptionInwardTransform(c,r,{noNegative:!0},sx,l),r.powStub=new Gb({breakParsed:l.original}),r.intervalStub=new Gb({breakParsed:l.transformed}),Sb(r,r.intervalStub),r}return t.prototype.getTicks=function(e){var t=this.base,n=this.powStub,r=Jg(),i=this.intervalStub,a={lookup:{from:i.getExtent(),to:n.getExtent()}};return B(i.getTicks(e||{}),function(e){var i=e.value,o=Rb(i,t,a),s;if(r){var c=r.getTicksBreakOutwardTransform(this,e,Xg(n),this._lookup);c&&(s=c.vBreak,o=c.tickVal)}return{value:o,break:s}},this)},t.prototype.getMinorTicks=function(e){return Wb(this,e,Xg(this.powStub),this.intervalStub.getConfig().interval)},t.prototype.getLabel=function(e,t){return this.intervalStub.getLabel(e,t)},t.type=`log`,t.mapperMethods={needTransform:function(){return!0},normalize:function(e){return this.intervalStub.normalize(Lb(e,this.base))},scale:function(e){return Rb(this.intervalStub.scale(e),this.base,null)},transformIn:function(e,t){return e=Lb(e,this.base),t&&t.depth===2?e:this.intervalStub.transformIn(e,t)},transformOut:function(e,t){var n=t?t.depth:null;return lx.depth=n,ux.lookup=this._lookup,Rb(n===2?e:this.intervalStub.transformOut(e,lx),this.base,ux)},contain:function(e){return this.powStub.contain(e)},setExtent:function(e,t){this.setExtent2(0,e,t)},setExtent2:function(e,t,n){if(!(!Ml(t,n)||t<=0||n<=0)){var r=dx,i=dx;if(e===0){var a=this._lookup;r=a.to,i=a.from}this.powStub.setExtent2(e,r[ax]=t,r[ox]=n);var o=this.base;this.intervalStub.setExtent2(e,i[ax]=Lb(t,o),i[ox]=Lb(n,o))}},getFilter:function(){return{g:0}},sanitize:function(e,t){return Ml(t[0],t[1])&&Ic(e)&&e<=0&&(e=t[0]),e},getDefaultStartValue:function(){return 1},getExtent:function(){return this.powStub.getExtent()},getExtentUnsafe:function(e,t){return t===null?this.powStub.getExtentUnsafe(e,null):this.intervalStub.getExtentUnsafe(e,t)}},t}(hb);hb.registerClass(cx);var lx={},ux={},dx=[],fx={value:1,category:1,time:1,log:1},px=ml();function mx(e){var t=e.get(`type`);return(t==null||!et(fx,t)&&!hb.getClass(t))&&(t=`value`),t}function hx(e,t,n){var r=Jg(),i;switch(r&&(i=Dx(e,t,n)),t){case`category`:return new Ub({ordinalMeta:e.getOrdinalMeta?e.getOrdinalMeta():e.getCategories(),extent:El()});case`time`:return new qb({locale:e.ecModel.getLocaleModel(),useUTC:e.ecModel.get(`useUTC`),breakOption:i});case`log`:return new cx({logBase:e.get(`logBase`),breakOption:i});case`value`:return new Gb({breakOption:i});default:return new((hb.getClass(t))||Gb)({})}}function gx(e,t,n){var r=n?wb(e,null):e.getExtentUnsafe(0,null),i=r[0],a=r[1];return Ml(i,a)?i===t||a===t?2:i<t&&a>t?1:3:3}function _x(e){px(e).noOnMyZero=!0}function vx(e){return px(e).noOnMyZero}function yx(e){var t=e.getLabelModel().get(`formatter`);if(e.type===`time`){var n=u_(t);return function(t,r){return e.scale.getFormattedLabel(t,r,n)}}if(G(t))return function(n){var r=e.scale.getLabel(n);return t.replace(`{value}`,r??``)};if(W(t)){if(e.type===`category`)return function(n,r){return t(bx(e,n),n.value-e.scale.getExtent()[0],null)};var r=Jg();return function(n,i){var a=null;return r&&(a=r.makeAxisLabelFormatterParamBreak(a,n.break)),t(bx(e,n),i,a)}}return function(t){return e.scale.getLabel(t)}}function bx(e,t){var n=e.scale;return Pb(n)?n.getLabel(t):t.value}function xx(e){return e.get(`interval`)??`auto`}function Sx(e){return e.type===`category`&&xx(e.getLabelModel())===0}function Cx(e,t){var n={};return z(e.mapDimensionsAll(t),function(t){n[ug(e,t)]=!0}),V(n)}function Tx(e){return e===`middle`||e===`center`}function Ex(e){return e.getShallow(`show`)}function Dx(e,t,n){var r=e.get(`breaks`,!0);if(r!=null)return!Jg()||!n||!Ox(t)?void 0:r}function Ox(e){return e!==`category`}function kx(e,t,n,r,i,a){var o=Nb(e),s=o?e.intervalStub:e;if(s.setExtent(r[0],r[1]),o){var c=e.powStub,l={depth:2},u=e.transformOut(r[0],l),d=e.transformOut(r[1],l),f=Bb(n,r);t[0]&&!f[0]&&(u=i[0]),t[1]&&!f[1]&&(d=i[1]),c.setExtent(u,d)}s.setConfig(a)}function Ax(e,t){return Pb(e)?e.getRawOrdinalNumber(t.value):t.value}function jx(e,t){return Pb(e)&&!!t.get(`boundaryGap`)}function Mx(e,t){if(e.length===t.length){for(var n=0;n<e.length;n++)if(e[n]!==t[n])return;return!0}}function Nx(e){for(var t=El(),n=El(),r=0;r<e.length;){var i=e[r++],a=e[r++];Hy(i,a)||(Dl(t,i),Dl(n,a))}return[t,n]}function Px(e,t){var n=Nx(e),r=n[0],i=n[1],a=Nx(t),o=a[0],s=a[1];return Math.max(Math.abs(r[0]-o[0]),Math.abs(i[0]-s[0]),Math.abs(r[1]-o[1]),Math.abs(i[1]-s[1]))}function Fx(e){return Ae(e)?e:e?.5:0}function Ix(e,t,n){if(n.valueDim==null)return[];for(var r=t.count(),i=Gy(r*2),a=0;a<r;a++){var o=Vy(n,e,t,a);i[a*2]=o[0],i[a*2+1]=o[1]}return i}function Lx(e,t,n,r,i){var a=n.getBaseAxis(),o=a.dim===`x`||a.dim===`radius`?0:1,s=[],c=0,l=[],u=[],d=[],f=[];if(i){for(c=0;c<e.length;c+=2){var p=t||e;Hy(p[c],p[c+1])||f.push(e[c],e[c+1])}e=f}for(c=0;c<e.length-2;c+=2)switch(d[0]=e[c+2],d[1]=e[c+3],u[0]=e[c],u[1]=e[c+1],s.push(u[0],u[1]),r){case`end`:l[o]=d[o],l[1-o]=u[1-o],s.push(l[0],l[1]);break;case`middle`:var m=(u[o]+d[o])/2,h=[];l[o]=h[o]=m,l[1-o]=u[1-o],h[1-o]=d[1-o],s.push(l[0],l[1]),s.push(h[0],h[1]);break;default:l[o]=u[o],l[1-o]=d[1-o],s.push(l[0],l[1])}return s.push(e[c++],e[c++]),s}function Rx(e,t){var n=[],r=e.length,i,a;function o(e,t,n){var r=e.coord;return{coord:n,color:Ai((n-r)/(t.coord-r),[e.color,t.color])}}for(var s=0;s<r;s++){var c=e[s],l=c.coord;if(l<0)i=c;else if(l>t){a?n.push(o(a,c,t)):i&&n.push(o(i,c,0),o(i,c,t));break}else i&&=(n.push(o(i,c,0)),null),n.push(c),a=c}return n}function zx(e,t,n){var r=e.getVisual(`visualMeta`);if(r&&r.length&&e.count()&&t.type===`cartesian2d`){for(var i,a,o=r.length-1;o>=0;o--){var s=e.getDimensionInfo(r[o].dimension);if(i=s&&s.coordDim,i===`x`||i===`y`){a=r[o];break}}if(a){var c=t.getAxis(i),l=B(a.stops,function(e){return{coord:c.toGlobalCoord(c.dataToCoord(e.value)),color:e.color}}),u=l.length,d=a.outerColors.slice();u&&l[0].coord>l[u-1].coord&&(l.reverse(),d.reverse());var f=Rx(l,i===`x`?n.getWidth():n.getHeight()),p=f.length;if(!p&&u)return l[0].coord<0?d[1]?d[1]:l[u-1].color:d[0]?d[0]:l[0].color;var m=10,h=f[0].coord-m,g=f[p-1].coord+m,_=g-h;if(_<.001)return`transparent`;z(f,function(e){e.offset=(e.coord-h)/_}),f.push({offset:p?f[p-1].offset:.5,color:d[1]||`transparent`}),f.unshift({offset:p?f[0].offset:.5,color:d[0]||`transparent`});var v=new Cf(0,0,0,0,f,!0);return v[i]=h,v[i+`2`]=g,v}}}function Bx(e,t,n){var r=e.get(`showAllSymbol`),i=r===`auto`;if(!r||i){var a=n.getAxesByScale(`ordinal`)[0];if(a&&!(i&&Vx(a,t))){var o=t.mapDimension(a.dim),s={};return z(a.getViewLabels(),function(e){e.tick.offInterval||(s[Ax(a.scale,e.tick)]=1)}),function(e){return!s.hasOwnProperty(t.get(o,e))}}}}function Vx(e,t){var n=e.getExtent(),r=Math.abs(n[1]-n[0])/e.scale.count();isNaN(r)&&(r=0);for(var i=t.count(),a=Math.max(1,Math.round(i/5)),o=0;o<i;o+=a)if(My.getSymbolSize(t,o)[+!!e.isHorizontal()]*1.5>r)return!1;return!0}function Hx(e){for(var t=e.length/2;t>0&&Hy(e[t*2-2],e[t*2-1]);t--);return t-1}function Ux(e,t){return[e[t*2],e[t*2+1]]}function Wx(e,t,n){for(var r=e.length/2,i=n===`x`?0:1,a,o,s=0,c=-1,l=0;l<r;l++)if(o=e[l*2+i],!Hy(o,e[l*2+1-i])){if(l===0){a=o;continue}if(a<=t&&o>=t||a>=t&&o<=t){c=l;break}s=l,a=o}return{range:[s,c],t:(t-a)/(o-a)}}function Gx(e){if(e.get([`endLabel`,`show`]))return!0;for(var t=0;t<lu.length;t++)if(e.get([lu[t],`endLabel`,`show`]))return!0;return!1}function Kx(e,t,n,r){if(mb(t,`cartesian2d`)){var i=r.getModel(`endLabel`),a=i.get(`valueAnimation`),o=r.getData(),s={lastFrameIndex:0},c=Gx(r)?function(n,r){e._endLabelOnDuring(n,r,o,s,a,i,t)}:null,l=t.getBaseAxis().isHorizontal(),u=db(t,n,r,function(){var t=e._endLabel;t&&n&&s.originalX!=null&&t.attr({x:s.originalX,y:s.originalY})},c);if(!r.get(`clip`,!0)){var d=u.shape,f=Math.max(d.width,d.height);l?(d.y-=f,d.height+=f*2):(d.x-=f,d.width+=f*2)}return c&&c(1,u),u}return fb(t,n,r)}function qx(e,t){var n=t.getBaseAxis(),r=n.isHorizontal(),i=n.inverse,a=r?i?`right`:`left`:`center`,o=r?`middle`:i?`top`:`bottom`;return{normal:{align:e.get(`align`)||a,verticalAlign:e.get(`verticalAlign`)||o}}}var Jx=function(e){D(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.init=function(){var e=new Fd,t=new Ry;this.group.add(t.group),this._symbolDraw=t,this._lineGroup=e,this._changePolyState=H(this._changePolyState,this)},t.prototype.render=function(e,t,n){var r=e.coordinateSystem,i=this.group,a=e.getData(),o=e.getModel(`lineStyle`),s=e.getModel(`areaStyle`),c=a.getLayout(`points`)||[],l=r.type===`polar`,u=this._coordSys,d=this._symbolDraw,f=this._polyline,p=this._polygon,m=this._lineGroup,h=!t.ssr&&e.get(`animation`),g=!s.isEmpty(),_=s.get(`origin`),v=zy(r,a,_),y=g&&Ix(r,a,v),b=e.get(`showSymbol`),x=e.get(`connectNulls`),S=b&&!l&&Bx(e,a,r),C=this._data;C&&C.eachItemGraphicEl(function(e,t){e.__temp&&(i.remove(e),C.setItemGraphicEl(t,null))}),b||d.remove(),i.add(m);var w=!l&&e.get(`step`),T;r&&r.getArea&&e.get(`clip`,!0)&&(T=r.getArea(),T.width==null?T.r0&&(T.r0-=.5,T.r+=.5):(T.x-=.1,T.y-=.1,T.width+=.2,T.height+=.2)),this._clipShapeForSymbol=T;var E=zx(a,r,n)||a.getVisual(`style`)[a.getVisual(`drawType`)];if(!(f&&u.type===r.type&&w===this._step))b&&d.updateData(a,{isIgnore:S,clipShape:T,disableAnimation:!0,getSymbolPoint:function(e){return[c[e*2],c[e*2+1]]}}),h&&this._initSymbolLabelAnimation(a,r,T),w&&(y&&=Lx(y,c,r,w,x),c=Lx(c,null,r,w,x)),f=this._newPolyline(c),g?p=this._newPolygon(c,y):p&&=(m.remove(p),this._polygon=null),l||this._initOrUpdateEndLabel(e,r,G_(E)),m.setClipPath(Kx(this,r,!0,e));else{g&&!p?p=this._newPolygon(c,y):p&&!g&&(m.remove(p),p=this._polygon=null),l||this._initOrUpdateEndLabel(e,r,G_(E));var D=m.getClipPath();D?Bf(D,{shape:Kx(this,r,!1,e).shape},e):m.setClipPath(Kx(this,r,!0,e)),b&&d.updateData(a,{isIgnore:S,clipShape:T,disableAnimation:!0,getSymbolPoint:function(e){return[c[e*2],c[e*2+1]]}}),(!Mx(this._stackedOnPoints,y)||!Mx(this._points,c))&&(h?this._doUpdateAnimation(a,y,r,n,w,_,x):(w&&(y&&=Lx(y,c,r,w,x),c=Lx(c,null,r,w,x)),f.setShape({points:c}),p&&p.setShape({points:c,stackedOnPoints:y})))}var O=e.getModel(`emphasis`),k=O.get(`focus`),A=O.get(`blurScope`),j=O.get(`disabled`);if(f.useStyle(L(o.getLineStyle(),{fill:`none`,stroke:E,lineJoin:`bevel`})),ad(f,e,`lineStyle`),f.style.lineWidth>0&&e.get([`emphasis`,`lineStyle`,`width`])===`bolder`){var ee=f.getState(`emphasis`).style;ee.lineWidth=+f.style.lineWidth+1}Wl(f).seriesIndex=e.seriesIndex,td(f,k,A,j);var te=Fx(e.get(`smooth`)),M=e.get(`smoothMonotone`);if(f.setShape({smooth:te,smoothMonotone:M,connectNulls:x}),p){var ne=a.getCalculationInfo(`stackedOnSeries`),re=0;p.useStyle(L(s.getAreaStyle(),{fill:E,opacity:.7,lineJoin:`bevel`,decal:a.getVisual(`style`).decal})),ne&&(re=Fx(ne.get(`smooth`))),p.setShape({smooth:te,stackedOnSmooth:re,smoothMonotone:M,connectNulls:x}),ad(p,e,`areaStyle`),Wl(p).seriesIndex=e.seriesIndex,td(p,k,A,j)}var ie=this._changePolyState;a.eachItemGraphicEl(function(e){e&&(e.onHoverStateChange=ie)}),this._polyline.onHoverStateChange=ie,this._data=a,this._coordSys=r,this._stackedOnPoints=y,this._points=c,this._step=w,this._valueOrigin=_;var ae=e.get(`triggerEvent`),oe=e.get(`triggerLineEvent`),se=oe===!0||ae===!0||ae===`line`,ce=oe===!0||ae===!0||ae===`area`;this.packEventData(e,f,se),p&&this.packEventData(e,p,ce)},t.prototype.packEventData=function(e,t,n){Wl(t).eventData=n?{componentType:`series`,componentSubType:`line`,componentIndex:e.componentIndex,seriesIndex:e.seriesIndex,seriesName:e.name,seriesType:`line`,selfType:t===this._polygon?`area`:`line`}:null},t.prototype.highlight=function(e,t,n,r){var i=e.getData(),a=pl(i,r);if(this._changePolyState(`emphasis`),!(a instanceof Array)&&a!=null&&a>=0){var o=i.getLayout(`points`),s=i.getItemGraphicEl(a);if(!s){var c=o[a*2],l=o[a*2+1];if(Hy(c,l)||this._clipShapeForSymbol&&!this._clipShapeForSymbol.contain(c,l))return;var u=e.get(`zlevel`)||0,d=e.get(`z`)||0;s=new My(i,a),s.x=c,s.y=l,s.setZ(u,d);var f=s.getSymbolPath().getTextContent();f&&(f.zlevel=u,f.z=d,f.z2=this._polyline.z2+1),s.__temp=!0,i.setItemGraphicEl(a,s),s.stopSymbolAnimation(!0),this.group.add(s)}s.highlight()}else ab.prototype.highlight.call(this,e,t,n,r)},t.prototype.downplay=function(e,t,n,r){var i=e.getData(),a=pl(i,r);if(this._changePolyState(`normal`),a!=null&&a>=0){var o=i.getItemGraphicEl(a);o&&(o.__temp?(i.setItemGraphicEl(a,null),this.group.remove(o)):o.downplay())}else ab.prototype.downplay.call(this,e,t,n,r)},t.prototype._changePolyState=function(e){var t=this._polygon;Du(this._polyline,e),t&&Du(t,e)},t.prototype._newPolyline=function(e){var t=this._polyline;return t&&this._lineGroup.remove(t),t=new $y({shape:{points:e},segmentIgnoreThreshold:2,z2:10}),this._lineGroup.add(t),this._polyline=t,t},t.prototype._newPolygon=function(e,t){var n=this._polygon;return n&&this._lineGroup.remove(n),n=new tb({shape:{points:e,stackedOnPoints:t},segmentIgnoreThreshold:2}),this._lineGroup.add(n),this._polygon=n,n},t.prototype._initSymbolLabelAnimation=function(e,t,n){var r,i,a=t.getBaseAxis(),o=a.inverse;t.type===`cartesian2d`?(r=a.isHorizontal(),i=!1):t.type===`polar`&&(r=a.dim===`angle`,i=!0);var s=e.hostModel,c=s.get(`animationDuration`);W(c)&&(c=c(null));var l=s.get(`animationDelay`)||0,u=W(l)?l(null):l;e.eachItemGraphicEl(function(e,a){var s=e;if(s){var d=[e.x,e.y],f=void 0,p=void 0,m=void 0;if(n){if(i){var h=n,g=t.pointToCoord(d);r?(f=h.startAngle,p=h.endAngle,m=-g[1]/180*Math.PI):(f=h.r0,p=h.r,m=g[0])}else{var _=n;r?(f=_.x,p=_.x+_.width,m=e.x):(f=_.y+_.height,p=_.y,m=e.y)}}var v=p===f?0:(m-f)/(p-f);o&&(v=1-v);var y=W(l)?l(a):c*v+u,b=s.getSymbolPath(),x=b.getTextContent();s.attr({scaleX:0,scaleY:0}),s.animateTo({scaleX:1,scaleY:1},{duration:200,setToFinal:!0,delay:y}),x&&x.animateFrom({style:{opacity:0}},{duration:300,delay:y}),b.disableLabelAnimation=!0}})},t.prototype._initOrUpdateEndLabel=function(e,t,n){var r=e.getModel(`endLabel`);if(Gx(e)){var i=e.getData(),a=this._polyline,o=i.getLayout(`points`);if(!o){a.removeTextContent(),this._endLabel=null;return}var s=this._endLabel;s||(s=this._endLabel=new js({z2:200}),s.ignoreClip=!0,a.setTextContent(this._endLabel),a.disableLabelAnimation=!0);var c=Hx(o);c>=0&&(Up(a,Wp(e,`endLabel`),{inheritColor:n,labelFetcher:e,labelDataIndex:c,defaultText:function(e,t,n){return n==null?Ay(i,e):jy(i,n)},enableTextSetter:!0},qx(r,t)),a.textConfig.position=null)}else this._endLabel&&=(this._polyline.removeTextContent(),null)},t.prototype._endLabelOnDuring=function(e,t,n,r,i,a,o){var s=this._endLabel,c=this._polyline;if(s){e<1&&r.originalX==null&&(r.originalX=s.x,r.originalY=s.y);var l=n.getLayout(`points`),u=n.hostModel,d=u.get(`connectNulls`),f=a.get(`precision`),p=a.get(`distance`)||0,m=o.getBaseAxis(),h=m.isHorizontal(),g=m.inverse,_=t.shape,v=g?h?_.x:_.y+_.height:h?_.x+_.width:_.y,y=(h?p:0)*(g?-1:1),b=(h?0:-p)*(g?-1:1),x=h?`x`:`y`,S=Wx(l,v,x),C=S.range,w=C[1]-C[0],T=void 0;if(w>=1){if(w>1&&!d){var E=Ux(l,C[0]);s.attr({x:E[0]+y,y:E[1]+b}),i&&(T=u.getRawValue(C[0]))}else{var E=c.getPointOn(v,x);E&&s.attr({x:E[0]+y,y:E[1]+b});var D=u.getRawValue(C[0]),O=u.getRawValue(C[1]);i&&(T=Tl(n,f,D,O,S.t))}r.lastFrameIndex=C[0]}else{var k=e===1||r.lastFrameIndex>0?C[0]:0,E=Ux(l,k);i&&(T=u.getRawValue(k)),s.attr({x:E[0]+y,y:E[1]+b})}if(i){var A=em(s);typeof A.setLabelText==`function`&&A.setLabelText(T)}}},t.prototype._doUpdateAnimation=function(e,t,n,r,i,a,o){var s=this._polyline,c=this._polygon,l=e.hostModel,u=Jy(this._data,e,this._stackedOnPoints,t,this._coordSys,n,this._valueOrigin,a),d=u.current,f=u.stackedOnCurrent,p=u.next,m=u.stackedOnNext;if(i&&(f=Lx(u.stackedOnCurrent,u.current,n,i,o),d=Lx(u.current,null,n,i,o),m=Lx(u.stackedOnNext,u.next,n,i,o),p=Lx(u.next,null,n,i,o)),Px(d,p)>3e3||c&&Px(f,m)>3e3){s.stopAnimation(),s.setShape({points:p}),c&&(c.stopAnimation(),c.setShape({points:p,stackedOnPoints:m}));return}s.shape.__points=u.current,s.shape.points=d;var h={shape:{points:p}};u.current!==d&&(h.shape.__points=u.next),s.stopAnimation(),zf(s,h,l),c&&(c.setShape({points:d,stackedOnPoints:f}),c.stopAnimation(),zf(c,{shape:{stackedOnPoints:m}},l),s.shape.points!==c.shape.points&&(c.shape.points=s.shape.points));for(var g=[],_=u.status,v=0;v<_.length;v++)if(_[v].cmd===`=`){var y=e.getItemGraphicEl(_[v].idx1);y&&g.push({el:y,ptIdx:v})}s.animators&&s.animators.length&&s.animators[0].during(function(){c&&c.dirtyShape();for(var e=s.shape.__points,t=0;t<g.length;t++){var n=g[t].el,r=g[t].ptIdx*2;n.x=e[r],n.y=e[r+1],n.markRedraw()}})},t.prototype.remove=function(e){var t=this.group,n=this._data;this._lineGroup.removeAll(),this._symbolDraw.remove(!0),n&&n.eachItemGraphicEl(function(e,r){e.__temp&&(t.remove(e),n.setItemGraphicEl(r,null))}),this._polyline=this._polygon=this._coordSys=this._points=this._stackedOnPoints=this._endLabel=this._data=null},t.type=`line`,t}(ab);function Yx(e,t){return{seriesType:e,plan:nb(),reset:function(e){var n=e.getData(),r=e.coordinateSystem,i=e.pipelineContext,a=t||i.large;if(r){var o=B(r.dimensions,function(e){return n.mapDimension(e)}).slice(0,2),s=o.length,c=n.getCalculationInfo(`stackResultDimension`);lg(n,o[0])&&(o[0]=c),lg(n,o[1])&&(o[1]=c);var l=n.getStore(),u=n.getDimensionIndex(o[0]),d=n.getDimensionIndex(o[1]);return s&&{progress:function(e,t){for(var n=e.end-e.start,i=a&&Gy(n*s),o=[],c=[],f=e.start,p=0;f<e.end;f++){var m=void 0;if(s===1){var h=l.get(u,f);m=r.dataToPoint(h,null,c)}else o[0]=l.get(u,f),o[1]=l.get(d,f),m=r.dataToPoint(o,null,c);a?(i[p++]=m[0],i[p++]=m[1]):t.setItemLayout(f,m.slice())}a&&(t.setLayout(`points`,i),t.setLayout(`pointsRange`,{start:e.start,end:e.end}))}}}}}}var Xx={average:function(e){for(var t=0,n=0,r=0;r<e.length;r++)isNaN(e[r])||(t+=e[r],n++);return n===0?NaN:t/n},sum:function(e){for(var t=0,n=0;n<e.length;n++)t+=e[n]||0;return t},max:function(e){for(var t=-1/0,n=0;n<e.length;n++)e[n]>t&&(t=e[n]);return isFinite(t)?t:NaN},min:function(e){for(var t=1/0,n=0;n<e.length;n++)e[n]<t&&(t=e[n]);return isFinite(t)?t:NaN},nearest:function(e){return e[0]}},Zx=function(e){return Math.round(e.length/2)};function Qx(e){return{seriesType:e,reset:function(e,t,n){var r=e.getData(),i=e.get(`sampling`),a=e.coordinateSystem,o=r.count();if(o>10&&a.type===`cartesian2d`&&i){var s=a.getBaseAxis(),c=a.getOtherAxis(s),l=s.getExtent(),u=n.getDevicePixelRatio(),d=Math.abs(l[1]-l[0])*(u||1),f=Math.round(o/d);if(isFinite(f)&&f>1){i===`lttb`?e.setData(r.lttbDownSample(r.mapDimension(c.dim),1/f)):i===`minmax`&&e.setData(r.minmaxDownSample(r.mapDimension(c.dim),1/f));var p=void 0;G(i)?p=Xx[i]:W(i)&&(p=i),p&&e.setData(r.downSample(r.mapDimension(c.dim),1/f,p,Zx))}}}}}function $x(e){e.registerChartView(Jx),e.registerSeriesModel(ky),e.registerLayout(Yx(`line`,!0)),e.registerVisual({seriesType:`line`,reset:function(e){var t=e.getData(),n=e.getModel(`lineStyle`).getLineStyle();n&&!n.stroke&&(n.stroke=t.getVisual(`style`).fill),t.setVisual(`legendLineStyle`,n)}}),e.registerProcessor(e.PRIORITY.PROCESSOR.STATISTIC,Qx(`line`))}var eS=ml(),tS=ml(),nS={estimate:1,determine:2};function rS(e){return{out:{noPxChangeTryDetermine:[]},kind:e}}function iS(e,t){var n=e.getLabelModel().get(`customValues`);if(n){var r=e.scale;return{labels:B(oS(n,r),function(t,n){return{formattedLabel:yx(e)(t,n),rawLabel:r.getLabel(t),tick:t}})}}return e.type===`category`?sS(e,t):uS(e)}function aS(e,t,n){var r=e.scale,i=e.getTickModel().get(`customValues`);return i?{ticks:oS(i,r)}:e.type===`category`?lS(e,t):{ticks:r.getTicks(n)}}function oS(e,t){var n=t.getExtent(),r=[];return z(e,function(e){e=t.parse(e),e>=n[0]&&e<=n[1]&&r.push(e)}),Ll(r,zl,null),pc(r),B(r,function(e){return{value:e}})}function sS(e,t){var n=e.getLabelModel(),r=cS(e,n,t);return!n.get(`show`)||e.scale.isBlank()?{labels:[]}:r}function cS(e,t,n){var r=fS(e),i=xx(t),a=n.kind===nS.estimate;if(!a){var o=mS(r,i);if(o)return o}var s,c;W(i)?s=xS(e,i,!1):(c=i===`auto`?gS(e,n):i,s=xS(e,c,!1));var l={labels:s,labelCategoryInterval:c};return a?n.out.noPxChangeTryDetermine.push(function(){return hS(r,i,l),!0}):hS(r,i,l),l}function lS(e,t){var n=dS(e),r=xx(t),i=mS(n,r);if(i)return i;var a,o;if((!t.get(`show`)||e.scale.isBlank())&&(a=[]),W(r))a=xS(e,r,!0);else if(r===`auto`){var s=cS(e,e.getLabelModel(),rS(nS.determine));o=s.labelCategoryInterval,a=B(s.labels,function(e){return e.tick})}else o=r,a=xS(e,o,!0);return hS(n,r,{ticks:a,tickCategoryInterval:o})}function uS(e){var t=e.scale.getTicks(),n=yx(e);return{labels:B(t,function(t,r){return{formattedLabel:n(t,r),rawLabel:e.scale.getLabel(t),tick:t}})}}var dS=pS(`axisTick`),fS=pS(`axisLabel`);function pS(e){return function(t){return tS(t)[e]||(tS(t)[e]={list:[]})}}function mS(e,t){for(var n=0;n<e.list.length;n++)if(e.list[n].key===t)return e.list[n].value}function hS(e,t,n){return e.list.push({key:t,value:n}),n}function gS(e,t){if(t.kind===nS.estimate){var n=e.calculateCategoryInterval(t);return t.out.noPxChangeTryDetermine.push(function(){return tS(e).autoInterval=n,!0}),n}return tS(e).autoInterval??(tS(e).autoInterval=e.calculateCategoryInterval(t))}function _S(e,t){var n=t.kind,r=bS(e),i=yx(e),a=(r.axisRotate-r.labelRotate)/180*Math.PI,o=e.scale,s=o.getExtent(),c=o.count();if(s[1]-s[0]<1)return 0;var l=1,u=40;c>u&&(l=Math.max(1,Math.floor(c/u)));for(var d=s[0],f=e.dataToCoord(d+1)-e.dataToCoord(d),p=Math.abs(f*Math.cos(a)),m=Math.abs(f*Math.sin(a)),h=0,g=0;d<=s[1];d+=l){var _=0,v=0,y=qn(i({value:d}),r.font,`center`,`top`);_=y.width*1.3,v=y.height*1.3,h=Math.max(h,_,7),g=Math.max(g,v,7)}var b=h/p,x=g/m;isNaN(b)&&(b=1/0),isNaN(x)&&(x=1/0);var S=Math.max(0,Math.floor(Math.min(b,x)));return n===nS.estimate?(t.out.noPxChangeTryDetermine.push(H(vS,null,e,S,c)),S):yS(e,S,c)??S}function vS(e,t,n){return yS(e,t,n)==null}function yS(e,t,n){var r=eS(e.model),i=e.getExtent(),a=r.lastAutoInterval,o=r.lastTickCount;if(a!=null&&o!=null&&Math.abs(a-t)<=1&&Math.abs(o-n)<=1&&a>t&&r.axisExtent0===i[0]&&r.axisExtent1===i[1])return a;r.lastTickCount=n,r.lastAutoInterval=t,r.axisExtent0=i[0],r.axisExtent1=i[1]}function bS(e){var t=e.getLabelModel();return{axisRotate:e.getRotate?e.getRotate():e.isHorizontal&&!e.isHorizontal()?90:0,labelRotate:t.get(`rotate`)||0,font:t.getFont()}}function xS(e,t,n){var r=yx(e),i=e.scale,a=[],o=W(t);return Hb(i,o?0:t,function(e,s){var c=i.getLabel(e);if(o){var l=!!t(e.value,c);if(e.offInterval=!l,!l&&!s)return}a.push(n?e:{formattedLabel:r(e),rawLabel:c,tick:e})}),a}var SS=ml();function CS(e){SS(e).prepare={}}function wS(e){SS(e).fullUpdate={}}function TS(e){return SS(e).prepare}function ES(e){return SS(e).fullUpdate}var DS=Fl(),OS=ml(),kS=ml();function AS(e,t){var n=e.model,r=OS(ES(n.ecModel)).keyed,i=r&&r.get(t);return i&&i.get(n.uid)}function jS(e,t){return PS(AS(e,t))}function MS(e,t){var n=[];return NS(e.model.ecModel,function(e){for(var r=0;r<t.length;r++)t[r]&&e.serByIdx[t[r].seriesIndex]&&n.push(PS(e))}),n}function NS(e,t){var n=OS(ES(e)).keyed;n&&n.each(function(e,n){e.each(function(e,r){t(e,n,r)})})}function PS(e){return{liPosMinGap:e?e.liPosMinGap:void 0}}function FS(e,t){var n=e.model.ecModel,r=OS(ES(n)).axSer;r&&LS(n,r.get(e.model.uid),t)}function IS(e,t,n){var r=AS(e,t);r&&LS(e.model.ecModel,r.sers,n)}function LS(e,t,n){if(t)for(var r=0;r<t.length;r++){var i=t[r];e.isSeriesFiltered(i)||n(i)}}function RS(e,t,n){var r=OS(ES(e)).keyed,i=r&&r.get(t);i&&i.each(function(e){n(e.axis)})}function zS(e,t){var n=e.model,r=OS(ES(n.ecModel)).keys;r&&z(r.get(n.uid),function(e){t(e)})}function BS(e){var t=kS(TS(e)),n=t.keyed||=J();NS(e,function(t,r,i){var a=n.get(r)||n.set(r,J()),o=a.get(i)||a.set(i,{});t.metrics.liPosMinGap&&HS.liPosMinGap(e,t,o)})}function VS(e,t){HS[e]=t}var HS={};function US(e,t,n){if(e){var r=t.ecModel,i=OS(ES(r)),a=e.model.uid,o=i.axSer||=J();(o.get(a)||o.set(a,[])).push(t);var s=t.subType,c=t.getBaseAxis()===e,l=KS.get(WS(s,c,n))||KS.get(WS(s,c,null));if(l){var u=i.keyed||=J(),d=i.keys||=J(),f=l.key,p=u.get(f)||u.set(f,J()),m=p.get(a);m||(m=p.set(a,{axis:e,sers:[],serByIdx:[]}),m.metrics=l.getMetrics(e),(d.get(a)||d.set(a,[])).push(f)),m.sers.push(t),m.serByIdx[t.seriesIndex]=t}}}function WS(e,t,n){return e+`|&`+q(t,!0)+`|&`+(n||``)}function GS(e,t){var n=WS(t.seriesType,t.baseAxis,t.coordSysType);KS.set(n,t),DS(e,function(){e.registerProcessor(e.PRIORITY.PROCESSOR.AXIS_STATISTICS,{overallReset:BS})})}var KS=J(),qS=.8;function JS(e,t){t||={};var n={w:NaN,w2:NaN},r=e.scale,i=t.fromStat,a=t.min,o=Tb(r);Ic(o)||(o=NaN);var s=e.getExtent(),c=Xs(s[1]-s[0]);return Pb(r)?YS(n,e,o,c):i&&XS(n,e,o,c,i),a!=null&&(n.w=Ic(n.w)?Ys(a,n.w):a),n}function YS(e,t,n,r){var i=t.onBand,a=n+ +!!i;a===0&&(a=1),e.w=r/a,!i&&n&&r&&(e.w2=e.w*n/r)}function XS(e,t,n,r,i){var a=!1,o=-1/0;z(i.key?[jS(t,i.key)]:MS(t,i.sers||[]),function(e){var t=e.liPosMinGap;t!=null&&(t>0?(t>o&&(o=t),a=!1):t===-2&&(a=!0))}),Ic(n)&&n>0&&Ic(o)?(e.w=r/n*o,e.w2=o):a&&(e.w=r*qS,e.w2=e.w*n/r)}var ZS=[0,1],QS=function(){function e(e,t,n){this.onBand=!1,this.inverse=!1,this.dim=e,this.scale=t,this._extent=n||[0,0]}return e.prototype.contain=function(e){var t=this._extent,n=Math.min(t[0],t[1]),r=Math.max(t[0],t[1]);return e>=n&&e<=r},e.prototype.containData=function(e){return this.scale.contain(this.scale.parse(e))},e.prototype.getExtent=function(){return this._extent.slice()},e.prototype.setExtent=function(e,t){var n=this._extent;n[0]=e,n[1]=t},e.prototype.dataToCoord=function(e,t){var n=this.scale;return e=n.normalize(n.parse(e)),ac(e,ZS,$S(this),t)},e.prototype.coordToData=function(e,t){var n=ac(e,$S(this),ZS,t);return this.scale.scale(n)},e.prototype.pointToData=function(e,t){},e.prototype.getTicksCoords=function(e){e||={};var t=e.tickModel||this.getTickModel(),n=B(aS(this,t,{breakTicks:e.breakTicks,pruneByBreak:e.pruneByBreak}).ticks,function(e){return{coord:this.dataToCoord(Ax(this.scale,e)),tick:e}},this),r=t.get(`alignWithLabel`),i=eC(this,n,r);return B(n,function(e){return{coord:e.coord,tickValue:e.tick.value,onBand:i}})},e.prototype.getMinorTicksCoords=function(){if(Pb(this.scale))return[];var e=this.model.getModel(`minorTick`).get(`splitNumber`);return e>0&&e<100||(e=5),B(this.scale.getMinorTicks(e),function(e){return B(e,function(e){return{coord:this.dataToCoord(e),tickValue:e}},this)},this)},e.prototype.getViewLabels=function(e){return e||=rS(nS.determine),iS(this,e).labels},e.prototype.getLabelModel=function(){return this.model.getModel(`axisLabel`)},e.prototype.getTickModel=function(){return this.model.getModel(`axisTick`)},e.prototype.getBandWidth=function(){return JS(this,{min:1}).w},e.prototype.calculateCategoryInterval=function(e){return e||=rS(nS.determine),_S(this,e)},e}();function $S(e){var t=e.getExtent();if(e.onBand){var n=(t[1]-t[0])/e.scale.count()/2;t[0]+=n,t[1]-=n}return t}function eC(e,t,n){var r=t.length;if(!e.onBand||n||!r)return!1;var i=JS(e).w;if(!i)return!1;z(t,function(e){e.coord-=i/2});var a=e.scale.getExtent(),o=t[r-1];return o.tick.offInterval&&t.pop(),t.push({coord:o.coord+i,tick:{value:a[1]+1}}),!0}var tC=function(e){D(t,e);function t(t,n,r,i,a){var o=e.call(this,t,n,r)||this;return o.index=0,o.type=i||`value`,o.position=a||`bottom`,o}return t.prototype.isHorizontal=function(){var e=this.position;return e===`top`||e===`bottom`},t.prototype.getGlobalExtent=function(e){var t=this.getExtent();return t[0]=this.toGlobalCoord(t[0]),t[1]=this.toGlobalCoord(t[1]),e&&t[0]>t[1]&&t.reverse(),t},t.prototype.pointToData=function(e,t){return this.coordToData(this.toLocalCoord(e[this.dim===`x`?0:1]),t)},t.prototype.setCategorySortInfo=function(e){if(this.type!==`category`)return!1;this.model.option.categorySortInfo=e,this.scale.setSortInfo(e)},t}(QS),nC=[`label`,`labelLine`,`layoutOption`,`priority`,`defaultAttr`,`marginForce`,`minMarginForce`,`marginDefault`,`suggestIgnore`],rC=1,iC=2,aC=rC|iC;function oC(e,t,n){n||=aC,t?e.dirty|=n:e.dirty&=~n}function sC(e,t){return t||=aC,e.dirty==null||!!(e.dirty&t)}function cC(e){if(e)return sC(e)&&lC(e,e.label,e),e}function lC(e,t,n){var r=t.getComputedTransform();e.transform=jp(e.transform,r);var i=e.localRect=Ap(e.localRect,t.getBoundingRect()),a=t.style,o=a.margin,s=n&&n.marginForce,c=n&&n.minMarginForce,l=n&&n.marginDefault,u=a.__marginType;u==null&&l&&(o=l,u=nm.textMargin);for(var d=0;d<4;d++)uC[d]=u===nm.minMargin&&c&&c[d]!=null?c[d]:s&&s[d]!=null?s[d]:o?o[d]:0;u===nm.textMargin&&Sp(i,uC,!1,!1);var f=e.rect=Ap(e.rect,i);return r&&f.applyTransform(r),u===nm.minMargin&&Sp(f,uC,!1,!1),e.axisAligned=Op(r),(e.label=e.label||{}).ignore=t.ignore,oC(e,!1),oC(e,!0,iC),e}var uC=[0,0,0,0];function dC(e,t,n){return e.transform=jp(e.transform,n),e.localRect=Ap(e.localRect,t),e.rect=Ap(e.rect,t),n&&e.rect.applyTransform(n),e.axisAligned=Op(n),e.obb=void 0,(e.label=e.label||{}).ignore=!1,e}function fC(e,t){if(e){e.label.x+=t.x,e.label.y+=t.y,e.label.markRedraw();var n=e.transform;n&&(n[4]+=t.x,n[5]+=t.y);var r=e.rect;r&&(r.x+=t.x,r.y+=t.y);var i=e.obb;i&&i.fromBoundingRect(e.localRect,n)}}function pC(e,t){for(var n=0;n<nC.length;n++){var r=nC[n];e[r]??(e[r]=t[r])}return cC(e)}function mC(e){var t=e.obb;return(!t||sC(e,iC))&&(e.obb=t||=new Nf,t.fromBoundingRect(e.localRect,e.transform),oC(e,!1,iC)),t}function hC(e){var t=[];e.sort(function(e,t){return+!!t.suggestIgnore-!!e.suggestIgnore||t.priority-e.priority});function n(e){if(!e.ignore){var t=e.ensureState(`emphasis`);t.ignore??=!1}e.ignore=!0}for(var r=0;r<e.length;r++){var i=cC(e[r]);if(!i.label.ignore){for(var a=i.label,o=i.labelLine,s=!1,c=0;c<t.length;c++)if(gC(i,t[c],null,{touchThreshold:.05})){s=!0;break}s?(n(a),o&&n(o)):t.push(i)}}}function gC(e,t,n,r){return!e||!t||e.label&&e.label.ignore||t.label&&t.label.ignore||!e.rect.intersect(t.rect,n,r)?!1:e.axisAligned&&t.axisAligned?!0:mC(e).intersect(mC(t),n,r)}var _C=null;function vC(){return _C}var yC=`expandAxisBreak`,bC=Math.PI,xC=[[1,2,1,2],[5,3,5,3],[8,3,8,3]],SC=[[0,1,0,1],[0,3,0,3],[0,3,0,3]],CC=ml(),wC=ml(),TC=function(){function e(e){this.recordMap={},this.resolveAxisNameOverlap=e}return e.prototype.ensureRecord=function(e){var t=e.axis.dim,n=e.componentIndex,r=this.recordMap,i=r[t]||(r[t]=[]);return i[n]||(i[n]={ready:{}})},e}();function EC(e,t,n,r){var i=n.axis,a=t.ensureRecord(n),o=[],s,c=XC(e.axisName)&&Tx(e.nameLocation);z(r,function(e){var t=cC(e);if(t&&!t.label.ignore){o.push(t);var n=a.transGroup;c&&(n.transform?zt(DC,n.transform):Nt(DC),t.transform&&Ft(DC,DC,t.transform),X.copy(OC,t.localRect),OC.applyTransform(DC),s?s.union(OC):X.copy(s=new X(0,0,0,0),OC))}});var l=Math.abs(a.dirVec.x)>.1?`x`:`y`,u=a.transGroup[l];if(o.sort(function(e,t){return Math.abs(e.label[l]-u)-Math.abs(t.label[l]-u)}),c&&s){var d=i.getExtent(),f=Math.min(d[0],d[1]),p=Math.max(d[0],d[1])-f;s.union(new X(f,0,p,1))}a.stOccupiedRect=s,a.labelInfoList=o}var DC=Mt(),OC=new X(0,0,0,0),kC=function(e,t,n,r,i,a){if(Tx(e.nameLocation)){var o=a.stOccupiedRect;o&&AC(dC({},o,a.transGroup.transform),r,i)}else jC(a.labelInfoList,a.dirVec,r,i)};function AC(e,t,n){var r=new mn;gC(e,t,r,{direction:Math.atan2(n.y,n.x),bidirectional:!1,touchThreshold:.05})&&fC(t,r)}function jC(e,t,n,r){for(var i=mn.dot(r,t)>=0,a=0,o=e.length;a<o;a++){var s=e[i?a:o-1-a];s.label.ignore||AC(s,n,r)}}var MC=function(){function e(e,t,n,r){this.group=new Fd,this._axisModel=e,this._api=t,this._local={},this._shared=r||new TC(kC),this._resetCfgDetermined(n)}return e.prototype.updateCfg=function(e){var t=this._cfg.raw;t.position=e.position,t.labelOffset=e.labelOffset,this._resetCfgDetermined(t)},e.prototype.__getRawCfg=function(){return this._cfg.raw},e.prototype._resetCfgDetermined=function(e){var t=this._axisModel,n=t.getDefaultOption?t.getDefaultOption():{},r=q(e.axisName,t.get(`name`)),i=t.get(`nameMoveOverlap`);(i==null||i===`auto`)&&(i=q(e.defaultNameMoveOverlap,!0));var a={raw:e,position:e.position,rotation:e.rotation,nameDirection:q(e.nameDirection,1),tickDirection:q(e.tickDirection,1),labelDirection:q(e.labelDirection,1),labelOffset:q(e.labelOffset,0),silent:q(e.silent,!0),axisName:r,nameLocation:ze(t.get(`nameLocation`),n.nameLocation,`end`),shouldNameMoveOverlap:XC(r)&&i,optionHideOverlap:t.get([`axisLabel`,`hideOverlap`]),showMinorTicks:t.get([`minorTick`,`show`])};this._cfg=a;var o=new Fd({x:a.position[0],y:a.position[1],rotation:a.rotation});o.updateTransform(),this._transformGroup=o;var s=this._shared.ensureRecord(t);s.transGroup=this._transformGroup,s.dirVec=new mn(Math.cos(-a.rotation),Math.sin(-a.rotation))},e.prototype.build=function(e,t){var n=this;return e||={axisLine:!0,axisTickLabelEstimate:!1,axisTickLabelDetermine:!0,axisName:!0},z(NC,function(r){e[r]&&PC[r](n._cfg,n._local,n._shared,n._axisModel,n.group,n._transformGroup,n._api,t||{})}),this},e.innerTextLayout=function(e,t,n){var r=Sc(t-e),i,a;return Cc(r)?(a=n>0?`top`:`bottom`,i=`center`):Cc(r-bC)?(a=n>0?`bottom`:`top`,i=`center`):(a=`middle`,i=r>0&&r<bC?n>0?`right`:`left`:n>0?`left`:`right`),{rotation:r,textAlign:i,textVerticalAlign:a}},e.makeAxisEventDataBase=function(e){var t={componentType:e.mainType,componentIndex:e.componentIndex};return t[e.mainType+`Index`]=e.componentIndex,t},e.isLabelSilent=function(e){var t=e.get(`tooltip`);return e.get(`silent`)||!(e.get(`triggerEvent`)||t&&t.show)},e}(),NC=[`axisLine`,`axisTickLabelEstimate`,`axisTickLabelDetermine`,`axisName`],PC={axisLine:function(e,t,n,r,i,a,o){var s=r.get([`axisLine`,`show`]);if(s===`auto`&&(s=!0,e.raw.axisLineAutoShow!=null&&(s=!!e.raw.axisLineAutoShow)),s){var c=r.axis.getExtent(),l=a.transform,u=[c[0],0],d=[c[1],0],f=u[0]>d[0];l&&(dn(u,u,l),dn(d,d,l));var p=I({lineCap:`round`},r.getModel([`axisLine`,`lineStyle`]).getLineStyle()),m={strokeContainThreshold:e.raw.strokeContainThreshold||5,silent:!0,z2:1,style:p};if(r.get([`axisLine`,`breakLine`])&&Zg(r.axis.scale))vC().buildAxisBreakLine(r,i,a,m);else{var h=new mf(I({shape:{x1:u[0],y1:u[1],x2:d[0],y2:d[1]}},m));op(h.shape,h.style.lineWidth),h.anid=`line`,i.add(h)}var g=r.get([`axisLine`,`symbol`]);if(g!=null){var _=r.get([`axisLine`,`symbolSize`]);G(g)&&(g=[g,g]),(G(_)||Ae(_))&&(_=[_,_]);var v=Oy(r.get([`axisLine`,`symbolOffset`])||0,_),y=_[0],b=_[1];z([{rotate:e.rotation+Math.PI/2,offset:v[0],r:0},{rotate:e.rotation-Math.PI/2,offset:v[1],r:Math.sqrt((u[0]-d[0])*(u[0]-d[0])+(u[1]-d[1])*(u[1]-d[1]))}],function(t,n){if(g[n]!==`none`&&g[n]!=null){var r=Ey(g[n],-y/2,-b/2,y,b,p.stroke,!0),a=t.r+t.offset,o=f?d:u;r.attr({rotation:t.rotate,x:o[0]+a*Math.cos(e.rotation),y:o[1]-a*Math.sin(e.rotation),silent:!0,z2:11}),i.add(r)}})}}},axisTickLabelEstimate:function(e,t,n,r,i,a,o,s){UC(t,i,s)&&FC(e,t,n,r,i,a,o,nS.estimate)},axisTickLabelDetermine:function(e,t,n,r,i,a,o,s){UC(t,i,s)&&FC(e,t,n,r,i,a,o,nS.determine);var c=VC(e,i,a,r);RC(e,t.labelLayoutList,c),HC(e,i,a,r,e.tickDirection)},axisName:function(e,t,n,r,i,a,o,s){var c=n.ensureRecord(r);t.nameEl&&=(i.remove(t.nameEl),c.nameLayout=c.nameLocation=null);var l=e.axisName;if(XC(l)){var u=e.nameLocation,d=e.nameDirection,f=r.getModel(`nameTextStyle`),p=r.get(`nameGap`)||0,m=r.axis.getExtent(),h=r.axis.inverse?-1:1,g=new mn(0,0),_=new mn(0,0);u===`start`?(g.x=m[0]-h*p,_.x=-h):u===`end`?(g.x=m[1]+h*p,_.x=h):(g.x=(m[0]+m[1])/2,g.y=e.labelOffset+d*p,_.y=d);var v=Mt();_.transform(Lt(v,v,e.rotation));var y=r.get(`nameRotate`);y!=null&&(y=y*bC/180);var b,x;Tx(u)?b=MC.innerTextLayout(e.rotation,y??e.rotation,d):(b=IC(e.rotation,u,y||0,m),x=e.raw.axisNameAvailableWidth,x!=null&&(x=Math.abs(x/Math.sin(b.rotation)),!isFinite(x)&&(x=null)));var S=f.getFont(),C=r.get(`nameTruncate`,!0)||{},w=C.ellipsis,T=Re(e.raw.nameTruncateMaxWidth,C.maxWidth,x),E=s.nameMarginLevel||0,D=new js({x:g.x,y:g.y,rotation:b.rotation,silent:MC.isLabelSilent(r),style:Gp(f,{text:l,font:S,overflow:`truncate`,width:T,ellipsis:w,fill:f.getTextColor()||r.get([`axisLine`,`lineStyle`,`color`]),align:f.get(`align`)||b.textAlign,verticalAlign:f.get(`verticalAlign`)||b.textVerticalAlign}),z2:1});if(Tp({el:D,componentModel:r,itemName:l}),D.__fullText=l,D.anid=`name`,r.get(`triggerEvent`)){var O=MC.makeAxisEventDataBase(r);O.targetType=`axisName`,O.name=l,Wl(D).eventData=O}a.add(D),D.updateTransform(),t.nameEl=D;var k=c.nameLayout=cC({label:D,priority:D.z2,defaultAttr:{ignore:D.ignore},marginDefault:Tx(u)?xC[E]:SC[E]});if(c.nameLocation=u,i.add(D),D.decomposeTransform(),e.shouldNameMoveOverlap&&k){var A=n.ensureRecord(r);n.resolveAxisNameOverlap(e,n,r,k,_,A)}}}};function FC(e,t,n,r,i,a,o,s){GC(t)||WC(e,t,i,s,r,o);var c=t.labelLayoutList;qC(e,r,c,a),QC(r,e.rotation,c);var l=e.optionHideOverlap;LC(r,c,l),l&&hC(Te(c,function(e){return e&&!e.label.ignore})),EC(e,n,r,c)}function IC(e,t,n,r){var i=Sc(n-e),a,o,s=r[0]>r[1],c=t===`start`&&!s||t!==`start`&&s;return Cc(i-bC/2)?(o=c?`bottom`:`top`,a=`center`):Cc(i-bC*1.5)?(o=c?`top`:`bottom`,a=`center`):(o=`middle`,a=i<bC*1.5&&i>bC/2?c?`left`:`right`:c?`right`:`left`),{rotation:i,textAlign:a,textVerticalAlign:o}}function LC(e,t,n){var r=e.axis,i=e.get([`axisLabel`,`customValues`]);if(Sx(r))return;function a(e,a,o){var s=cC(t[a]),c=cC(t[o]),l=r.scale;if(s&&c){if(e==null){if(!n&&i)return;var u=CC(s.label).labelInfo.tick;if(Mb(l)&&u.notNice||Pb(l)&&u.offInterval){zC(s.label);return}}if(e===!1||s.suggestIgnore){zC(s.label);return}if(c.suggestIgnore){zC(c.label);return}var d=.1;if(!n){var f=[0,0,0,0];s=pC({marginForce:f},s),c=pC({marginForce:f},c)}gC(s,c,null,{touchThreshold:d})&&zC(e?c.label:s.label)}}var o=e.get([`axisLabel`,`showMinLabel`]),s=e.get([`axisLabel`,`showMaxLabel`]),c=t.length;a(o,0,1),a(s,c-1,c-2)}function RC(e,t,n){e.showMinorTicks||z(t,function(e){if(e&&e.label.ignore)for(var t=0;t<n.length;t++){var r=n[t],i=wC(r),a=CC(e.label);if(i.tickValue!=null&&!i.onBand&&i.tickValue===a.labelInfo.tick.value){zC(r);return}}})}function zC(e){e&&(e.ignore=!0)}function BC(e,t,n,r,i){for(var a=[],o=[],s=[],c=0;c<e.length;c++){var l=e[c].coord;o[0]=l,o[1]=0,s[0]=l,s[1]=n,t&&(dn(o,o,t),dn(s,s,t));var u=new mf({shape:{x1:o[0],y1:o[1],x2:s[0],y2:s[1]},style:r,z2:2,autoBatch:!0,silent:!0});op(u.shape,u.style.lineWidth),u.anid=i+`_`+e[c].tickValue,a.push(u);var d=wC(u);d.onBand=!!e[c].onBand,d.tickValue=e[c].tickValue}return a}function VC(e,t,n,r){var i=r.axis,a=r.getModel(`axisTick`),o=a.get(`show`);if(o===`auto`&&(o=!0,e.raw.axisTickAutoShow!=null&&(o=!!e.raw.axisTickAutoShow)),!o||i.scale.isBlank())return[];for(var s=a.getModel(`lineStyle`),c=e.tickDirection*a.get(`length`),l=BC(i.getTicksCoords(),n.transform,c,L(s.getLineStyle(),{stroke:r.get([`axisLine`,`lineStyle`,`color`])}),`ticks`),u=0;u<l.length;u++)t.add(l[u]);return l}function HC(e,t,n,r,i){var a=r.axis,o=r.getModel(`minorTick`);if(e.showMinorTicks&&!a.scale.isBlank()){var s=a.getMinorTicksCoords();if(s.length)for(var c=o.getModel(`lineStyle`),l=i*o.get(`length`),u=L(c.getLineStyle(),L(r.getModel(`axisTick`).getLineStyle(),{stroke:r.get([`axisLine`,`lineStyle`,`color`])})),d=0;d<s.length;d++)for(var f=BC(s[d],n.transform,l,u,`minorticks_`+d),p=0;p<f.length;p++)t.add(f[p])}}function UC(e,t,n){if(GC(e)){var r=e.axisLabelsCreationContext.out.noPxChangeTryDetermine;if(n.noPxChange){for(var i=!0,a=0;a<r.length;a++)i&&=r[a]();if(i)return!1}r.length&&(t.remove(e.labelGroup),KC(e,null,null,null))}return!0}function WC(e,t,n,r,i,a){var o=i.axis,s=Re(e.raw.axisLabelShow,i.get([`axisLabel`,`show`])),c=new Fd;n.add(c);var l=rS(r);if(!s||o.scale.isBlank()){KC(t,[],c,l);return}var u=i.getModel(`axisLabel`),d=o.getViewLabels(l),f=(Re(e.raw.labelRotate,u.get(`rotate`))||0)*bC/180,p=MC.innerTextLayout(e.rotation,f,e.labelDirection),m=i.getCategories&&i.getCategories(!0),h=[],g=i.get(`triggerEvent`),_=1/0,v=-1/0;z(d,function(e,t){var n=e.tick,r=e.formattedLabel,s=e.rawLabel,l=u,f=Ax(o.scale,n);if(m&&m[f]){var y=m[f];K(y)&&y.textStyle&&(l=new pm(y.textStyle,u,i.ecModel))}var b=l.getTextColor()||i.get([`axisLine`,`lineStyle`,`color`]),x=l.getShallow(`align`,!0)||p.textAlign,S=q(l.getShallow(`alignMinLabel`,!0),x),C=q(l.getShallow(`alignMaxLabel`,!0),x),w=l.getShallow(`verticalAlign`,!0)||l.getShallow(`baseline`,!0)||p.textVerticalAlign,T=q(l.getShallow(`verticalAlignMinLabel`,!0),w),E=q(l.getShallow(`verticalAlignMaxLabel`,!0),w),D=10+(n.time?.level||0);_=Math.min(_,D),v=Math.max(v,D);var O=new js({x:0,y:0,rotation:0,silent:MC.isLabelSilent(i),z2:D,style:Gp(l,{text:r,align:t===0?S:t===d.length-1?C:x,verticalAlign:t===0?T:t===d.length-1?E:w,fill:W(b)?b(o.type===`category`?s:o.type===`value`?f+``:f,t):b})});O.anid=`label_`+f;var k=CC(O);if(k.labelInfo=e,k.layoutRotation=p.rotation,Tp({el:O,componentModel:i,itemName:r,formatterParamsExtra:{isTruncated:function(){return O.isTruncated},value:s,tickIndex:t}}),g){var A=MC.makeAxisEventDataBase(i);A.targetType=`axisLabel`,A.value=s,A.tickIndex=t;var j=e.tick.break;if(j){var ee=j.parsedBreak;A.break={start:ee.vmin,end:ee.vmax}}o.type===`category`&&(A.dataIndex=f),Wl(O).eventData=A,j&&ZC(i,a,O,j)}h.push(O),c.add(O)}),KC(t,B(h,function(e){return{label:e,priority:CC(e).labelInfo.tick.break?e.z2+(v-_+1):e.z2,defaultAttr:{ignore:e.ignore}}}),c,l)}function GC(e){return!!e.labelLayoutList}function KC(e,t,n,r){e.labelLayoutList=t,e.labelGroup=n,e.axisLabelsCreationContext=r}function qC(e,t,n,r){var i=t.get([`axisLabel`,`margin`]);z(n,function(n,a){var o=cC(n);if(o){var s=o.label,c=CC(s);o.suggestIgnore=s.ignore,s.ignore=!1,Nr(JC,YC);var l=t.axis;JC.x=l.dataToCoord(Ax(l.scale,c.labelInfo.tick)),JC.y=e.labelOffset+e.labelDirection*i,JC.rotation=c.layoutRotation,r.add(JC),JC.updateTransform(),r.remove(JC),JC.decomposeTransform(),Nr(s,JC),s.markRedraw(),oC(o,!0),cC(o)}})}var JC=new Es,YC=new Es;function XC(e){return!!e}function ZC(e,t,n,r){n.on(`click`,function(n){var i={type:yC,breaks:[{start:r.parsedBreak.breakOption.start,end:r.parsedBreak.breakOption.end}]};i[e.axis.dim+`AxisIndex`]=e.componentIndex,t.dispatchAction(i)})}function QC(e,t,n){var r=Jg();if(r){var i=r.retrieveAxisBreakPairs(n,function(e){return e&&CC(e.label).labelInfo.tick.break},!0),a=e.get([`breakLabelLayout`,`moveOverlap`],!0);(a===!0||a===`auto`)&&z(i,function(r){vC().adjustBreakLabelPair(e.axis.inverse,t,[cC(n[r[0]]),cC(n[r[1]])])})}}function $C(e,t,n){n||={};var r=t.axis,i={},a=r.getAxesOnZeroOf()[0],o=r.position,s=a?`onZero`:o,c=r.dim,l=[e.x,e.x+e.width,e.y,e.y+e.height],u={left:0,right:1,top:0,bottom:1,onZero:2},d=t.get(`offset`)||0,f=c===`x`?[l[2]-d,l[3]+d]:[l[0]-d,l[1]+d];if(a){var p=a.toGlobalCoord(a.dataToCoord(0));f[u.onZero]=Math.max(Math.min(p,f[1]),f[0])}i.position=[c===`y`?f[u[s]]:l[0],c===`x`?f[u[s]]:l[3]],i.rotation=Math.PI/2*(c===`x`?0:1),i.labelDirection=i.tickDirection=i.nameDirection={top:-1,bottom:1,left:-1,right:1}[o],i.labelOffset=a?f[u[o]]-f[u.onZero]:0,t.get([`axisTick`,`inside`])&&(i.tickDirection=-i.tickDirection),Re(n.labelInside,t.get([`axisLabel`,`inside`]))&&(i.labelDirection=-i.labelDirection);var m=t.get([`axisLabel`,`rotate`]);return i.labelRotate=s===`top`?-m:m,i.z2=1,i}function ew(e){return e.coordinateSystem&&e.coordinateSystem.type===`cartesian2d`}function tw(e){var t={xAxisModel:null,yAxisModel:null};return z(t,function(n,r){var i=r.replace(/Model$/,``);t[r]=e.getReferringComponents(i,vl).models[0]}),t}function nw(e,t,n,r,i,a){for(var o=$C(e,n),s=!1,c=!1,l=0;l<t.length;l++)Ab(t[l].getOtherAxis(n.axis).scale)&&(s=c=!0,n.axis.type===`category`&&n.axis.onBand&&(c=!1));return o.axisLineAutoShow=s,o.axisTickAutoShow=c,o.defaultNameMoveOverlap=a,new MC(n,r,o,i)}function rw(e,t,n){var r=$C(t,n);e.updateCfg(r)}function iw(e){return e.dim+`_`+e.index}var aw=ml(),ow=3,sw=function(){function e(e,t,n,r,i){var a=Pb(e),o=a?t.getCategories().length:null,s;if(a){var c=t.getCategories(!0);s=c&&!c.length}var l=n.slice();(jb(e)||Nb(e)||Mb(e))&&(Ol(l,lw(e,t.get(`dataMin`,!0))),kl(l,lw(e,t.get(`dataMax`,!0)))),Nl(l)||(l[0]=l[1]=NaN);var u=[],d=[!1,!1],f=t.get(`min`,!0);f===`dataMin`?(u[0]=l[0],d[0]=!0):(u[0]=lw(e,W(f)?f({min:l[0],max:l[1]}):f),d[0]=u[0]!=null);var p=t.get(`max`,!0);p===`dataMax`?(u[1]=l[1],d[1]=!0):(u[1]=lw(e,W(p)?p({min:l[0],max:l[1]}):p),d[1]=u[1]!=null);var m=uw(e,t),h=a?null:l[1]-l[0]||Math.abs(l[0]);u[0]??=a?s?l[0]:o?0:NaN:l[0]-m[0]*h,u[1]??=a?s?l[1]:o?o-1:NaN:l[1]+m[1]*h,!jl(u[0])&&(u[0]=NaN),!jl(u[1])&&(u[1]=NaN);var g=s||Le(u[0])||Le(u[1])||a&&!o,_=jb(e),v=_&&t.needIncludeZero&&t.needIncludeZero();v&&(u[0]>0&&u[1]>0&&!d[0]&&(u[0]=0),u[0]<0&&u[1]<0&&!d[1]&&(u[1]=0));var y=!1;u[0]>u[1]&&(u.reverse(),y=!0);var b=lw(e,t.get(`startValue`,!0)),x=b!=null;!Ic(b)&&r&&(b=e.getDefaultStartValue?e.getDefaultStartValue():0),Ic(b)&&(x||!_||v)&&(b<u[0]&&!d[0]?(u[0]=b,d[0]=!0):b>u[1]&&!d[1]&&(u[1]=b,d[1]=!0)),cw(this._i={scale:e,dataMM:l,noZoomEffMM:u,zoomMM:[],fixMM:d,zoomFixMM:[!1,!1],startValue:b,isBlank:g,incl0:v,tggAxInv:y,ctnShp:i},u)}return e.prototype.makeNoZoom=function(){return this._i.noZoomEffMM.slice()},e.prototype.makeFinal=function(){var e=this._i,t=e.zoomMM,n=e.noZoomEffMM,r=e.zoomFixMM,i=e.fixMM,a={fixMM:i,zoomFixMM:r,isBlank:e.isBlank,incl0:e.incl0,tggAxInv:e.tggAxInv,ctnShp:e.ctnShp,effMM:n.slice()},o=a.effMM;return t[0]!=null&&(o[0]=t[0],i[0]=r[0]=!0),t[1]!=null&&(o[1]=t[1],i[1]=r[1]=!0),cw(e,o),a},e.prototype.makeRenderInfo=function(){return{startValue:this._i.startValue}},e.prototype.setZoomMM=function(e,t){this._i.zoomMM[e]=t},e}();function cw(e,t){var n=e.scale,r=e.dataMM;n.sanitize&&(t[0]=n.sanitize(t[0],r),t[1]=n.sanitize(t[1],r),Pl(t))}function lw(e,t){return t==null?null:Le(t)?NaN:e.parse(t)}function uw(e,t){var n;if(Pb(e))n=[0,0];else{var r=t.get(`boundaryGap`);typeof r==`boolean`&&(r=null),n=U(r)?r:[r,r]}return[dw(n[0]),dw(n[1])]}function dw(e){return Zn(typeof e==`boolean`?0:e,1)||0}function fw(e){var t=aw(e.scale);return t.extent||=El(),t}function pw(e,t){fw(e).dimIdxInCoord=t.get(e.dim)}function mw(e,t){var n=e.scale,r=e.model,i=e.dim;n.rawExtentInfo||hw(n,e,i,r,t)}function hw(e,t,n,r,i){var a=fw(t),o=a.extent,s=!1;FS(t,function(r){if(r.boxCoordinateSystem){var i=eg(r).coord,c=a.dimIdxInCoord;if(c>=0&&U(i)){var l=i[c];l!=null&&!U(l)&&Dl(o,e.parse(l))}}else if(r.coordinateSystem){var u=r.getData();if(u){var d=e.getFilter?e.getFilter():null;z(Cx(u,n),function(e){Al(o,u.getApproximateExtent(e,d))})}r.__requireStartValue&&r.__requireStartValue(t)&&(s=!0)}});var c=xw(e,t,r);_w(e,new sw(e,r,o,s,c),i),a.extent=null}function gw(e,t){var n=e.scale;_w(n,new sw(n,e.model,t,!1,!1),ow)}function _w(e,t,n){e.rawExtentInfo=t,t.from=n}function vw(e,t){yw.set(e,t)}var yw=J();function bw(e,t,n,r,i){e.rawExtentInfo||gw({scale:e,model:t},i||El());var a=e.rawExtentInfo.makeFinal(),o=a.effMM;return e.setExtent(o[0],o[1]),e.setBlank(a.isBlank),r&&a.tggAxInv&&n&&!n.get(`legacyMinMaxDontInverseAxis`)&&(r.inverse=!r.inverse),a}function xw(e,t,n){var r=jx(e,n),i=n.get(`containShape`,!0);if(i==null&&!r&&(i=!0),!i)return!1;var a=!1;return zS(t,function(e){a=!!yw.get(e)||a}),a}function Sw(e,t,n,r){if(n.ctnShp){var i;if(zS(e,function(t){var n=yw.get(t);if(n){var a=n(e,r);a&&(i||=[0,0],Ol(i,a[0]),kl(i,a[1]),_x(e))}}),i){var a=t.getExtent();if(Pb(t))e.onBand||t.setExtent2(1,Js(a[0],a[0]+i[0]),Ys(a[1],a[1]+i[1]));else{var o=a.slice();n.zoomFixMM[0]||(o[0]=Js(o[0],t.transformOut(t.transformIn(o[0],null)+i[0],null))),n.zoomFixMM[1]||(o[1]=Ys(o[1],t.transformOut(t.transformIn(o[1],null)+i[1],null))),(o[0]<a[0]||o[1]>a[1])&&t.setExtent2(1,o[0],o[1])}}}}function Cw(){VS(`liPosMinGap`,ww)}function ww(e,t,n){var r=J(),i=n.serUids,a=n.liPosMinGap,o,s=t.axis,c=s.scale,l=c.needTransform(),u=c.getFilter?c.getFilter():null,d=dh(u);function f(n){LS(e,t.sers,function(e){var t=e.getRawData(),r=t.getDimensionIndex(t.mapDimension(s.dim));r>=0&&n(r,e,t.getStore())})}var p=0;if(f(function(e,t,n){r.set(t.uid,1),(!i||!i.hasKey(t.uid))&&(o=!0),p+=n.count()}),(!i||i.keys().length!==r.keys().length)&&(o=!0),!o&&a!=null){t.liPosMinGap=a;return}Ky(Tw,p);var m=0;f(function(e,t,n){for(var r=0,i=n.count();r<i;++r){var a=n.get(e,r);isFinite(a)&&(!u||fh(d,a))&&(l&&(a=c.transformIn(a,null)),Tw.arr[m++]=a)}});var h=Tw.typed?Tw.arr.subarray(0,m):(Tw.arr.length=m,Tw.arr);Tw.typed?h.sort():pc(h);for(var g=1/0,_=1;_<m;++_){var v=h[_]-h[_-1];v>0&&v<g&&(g=v)}n.liPosMinGap=t.liPosMinGap=Ic(g)?g:m>0?-2:-1,n.serUids=r}var Tw=Ky({ctor:Wy},50);function Ew(e){return function(t,n){var r=JS(t,{fromStat:{key:e}});if(Ic(r.w2))return[-r.w2/2,r.w2/2]}}function Dw(e,t){return e+`|&`+t}function Ow(e){return Cw(),{liPosMinGap:!Pb(e.scale)}}function kw(e,t,n,r){GS(e,{key:t,seriesType:n,coordSysType:r,getMetrics:Ow})}function Aw(e){return e.scale.rawExtentInfo.makeRenderInfo().startValue}var jw={left:0,right:0,top:0,bottom:0},Mw=[`25%`,`25%`],Nw=`cartesian2d`,Pw=function(e){D(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.mergeDefaultAndTheme=function(t,n){var r=av(t.outerBounds);e.prototype.mergeDefaultAndTheme.apply(this,arguments),r&&t.outerBounds&&iv(t.outerBounds,r)},t.prototype.mergeOption=function(t,n){e.prototype.mergeOption.apply(this,arguments),this.option.outerBounds&&t.outerBounds&&iv(this.option.outerBounds,t.outerBounds)},t.type=`grid`,t.dependencies=[`xAxis`,`yAxis`],t.layoutMode=`box`,t.defaultOption={show:!1,z:0,left:`15%`,top:65,right:`10%`,bottom:80,containLabel:!1,outerBoundsMode:`auto`,outerBounds:jw,outerBoundsContain:`all`,outerBoundsClampWidth:Mw[0],outerBoundsClampHeight:Mw[1],backgroundColor:Z.color.transparent,borderWidth:1,borderColor:Z.color.neutral30},t}(cv),Fw=Fl(),Iw=`__ec_stack_`;function Lw(e){return e.get(`stack`)||Iw+e.seriesIndex}function Rw(e,t){var n=zw(e,t);return n.columnMap=Bw(n),n}function zw(e,t){var n=Dw(t,Nw),r=[],i=JS(e,{fromStat:{key:n},min:1});return IS(e,n,function(e){r.push({barWidth:oc(e.get(`barWidth`),i.w),barMaxWidth:oc(e.get(`barMaxWidth`),i.w),barMinWidth:oc(e.get(`barMinWidth`)||(Uw(e)?.5:1),i.w),barGap:e.get(`barGap`),barCategoryGap:e.get(`barCategoryGap`),defaultBarGap:e.get(`defaultBarGap`),stackId:Lw(e)})}),{bandWidthResult:i,seriesInfo:r}}function Bw(e){var t=e.bandWidthResult.w,n=t,r=0,i,a,o=[],s={};z(e.seriesInfo,function(e,t){t||(a=e.defaultBarGap||0);var c=e.stackId;et(s,c)||r++;var l=s[c];l||(l=s[c]={width:0,maxWidth:0},o.push(c));var u=e.barWidth;u&&!l.width&&(l.width=u,u=Js(n,u),n-=u);var d=e.barMaxWidth;d&&(l.maxWidth=d);var f=e.barMinWidth;f&&(l.minWidth=f);var p=e.barGap;p!=null&&(a=p);var m=e.barCategoryGap;m!=null&&(i=m)}),i??=Ys(35-o.length*4,15)+`%`;var c=oc(i,t),l=oc(a,1),u=(n-c)/(r+(r-1)*l);u=Ys(u,0),z(o,function(e){var t=s[e],i=t.maxWidth,a=t.minWidth;if(t.width){var o=t.width;i&&(o=Js(o,i)),a&&(o=Ys(o,a)),t.width=o,n-=o+l*o,r--}else{var o=u;i&&i<o&&(o=Js(i,n)),a&&a>o&&(o=a),o!==u&&(t.width=o,n-=o+l*o,r--)}}),u=(n-c)/(r+(r-1)*l),u=Ys(u,0);var d=0,f;z(o,function(e){var t=s[e];t.width||=u,f=t,d+=t.width*(1+l)}),f&&(d-=f.width*l);var p={},m=-d/2;return z(o,function(e){var n=s[e];p[e]=p[e]||{bandWidth:t,offset:m,width:n.width},m+=n.width*(1+l)}),p}function Vw(e){return{seriesType:e,overallReset:function(t){var n=Dw(e,Nw);RS(t,n,function(t){var r=Rw(t,e);IS(t,n,function(e){var t=r.columnMap[Lw(e)];e.getData().setLayout({bandWidth:t.bandWidth,offset:t.offset,size:t.width})})})}}}function Hw(e){return{seriesType:e,plan:nb(),reset:function(e){if(ew(e)){var t=e.getData(),n=e.coordinateSystem,r=n.getBaseAxis(),i=n.getOtherAxis(r),a=t.getDimensionIndex(t.mapDimension(i.dim)),o=t.getDimensionIndex(t.mapDimension(r.dim)),s=e.get(`showBackground`,!0),c=t.mapDimension(i.dim),l=t.getCalculationInfo(`stackResultDimension`),u=lg(t,c)&&!!t.getCalculationInfo(`stackedOnSeries`),d=i.isHorizontal(),f=i.toGlobalCoord(i.dataToCoord(Aw(i))),p=Uw(e),m=e.get(`barMinHeight`)||0,h=l&&t.getDimensionIndex(l),g=t.getLayout(`size`),_=t.getLayout(`offset`);return{progress:function(e,t){for(var r=e.count,i=p&&Gy(r*3),c=p&&s&&Gy(r*3),l=p&&Gy(r),v=n.master.getRect(),y=d?v.width:v.height,b,x=t.getStore(),S=0;(b=e.next())!=null;){var C=x.get(u?h:a,b),w=x.get(o,b),T=f,E=void 0;u&&(E=+C-x.get(a,b));var D=void 0,O=void 0,k=void 0,A=void 0;if(d){var j=n.dataToPoint([C,w]);u&&(T=n.dataToPoint([E,w])[0]),D=T,O=j[1]+_,k=j[0]-T,A=g,Xs(k)<m&&(k=(k<0?-1:1)*m)}else{var j=n.dataToPoint([w,C]);u&&(T=n.dataToPoint([w,E])[1]),D=j[0]+_,O=T,k=g,A=j[1]-T,Xs(A)<m&&(A=(A<=0?-1:1)*m)}p?(i[S]=D,i[S+1]=O,i[S+2]=d?k:A,c&&(c[S]=d?v.x:D,c[S+1]=d?O:v.y,c[S+2]=y),l[b]=b):t.setItemLayout(b,{x:D,y:O,width:k,height:A}),S+=3}p&&t.setLayout({largePoints:i,largeDataIndices:l,largeBackgroundPoints:c,valueAxisHorizontal:d})}}}}}}function Uw(e){return e.pipelineContext&&e.pipelineContext.large}function Ww(e){return Ew(Dw(e,Nw))}function Gw(e){Fw(e,function(){function t(t){var n=Dw(t,Nw);kw(e,n,t,Nw),vw(n,Ww(t))}t(`bar`),t(`pictorialBar`)})}var Kw=function(e){D(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.prototype.getInitialData=function(e,t){return pg(null,this,{useEncodeDefaulter:!0})},t.prototype.getMarkerPosition=function(e,t,n){var r=this.coordinateSystem;if(r&&r.clampData){var i=r.clampData(e),a=r.dataToPoint(i);if(n)z(r.getAxes(),function(e,n){if(e.type===`category`&&t!=null){var r=e.getTicksCoords(),o=e.getTickModel().get(`alignWithLabel`),s=i[n],c=t[n]===`x1`||t[n]===`y1`;if(c&&!o&&(s+=1),r.length<2)return;if(r.length===2){a[n]=e.toGlobalCoord(e.getExtent()[+!!c]);return}for(var l=void 0,u=void 0,d=1,f=0;f<r.length;f++){var p=r[f].coord,m=f===r.length-1?r[f-1].tickValue+d:r[f].tickValue;if(m===s){u=p;break}if(m<s)l=p;else if(l!=null&&m>s){u=(p+l)/2;break}f===1&&(d=m-r[0].tickValue)}u??(l?l&&(u=r[r.length-1].coord):u=r[0].coord),a[n]=e.toGlobalCoord(u)}});else{var o=this.getData(),s=o.getLayout(`offset`),c=o.getLayout(`size`),l=+!r.getBaseAxis().isHorizontal();a[l]+=s+c/2}return a}return[NaN,NaN]},t.prototype.__requireStartValue=function(e){return this.getBaseAxis()!==e},t.type=`series.__base_bar__`,t.defaultOption={z:2,coordinateSystem:`cartesian2d`,legendHoverLink:!0,barMinHeight:0,barMinAngle:0,large:!1,largeThreshold:400,progressive:3e3,progressiveChunkMode:`mod`,defaultBarGap:`10%`},t}(dy);dy.registerClass(Kw);var qw=function(e){D(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.prototype.getInitialData=function(){return pg(null,this,{useEncodeDefaulter:!0,createInvertedIndices:!!this.get(`realtimeSort`,!0)||null})},t.prototype.getProgressive=function(){return this.get(`large`)?this.get(`progressive`):!1},t.prototype.__preparePipelineContext=function(e,t){var n=Vl(this,e,t);return n.progressiveRender&&(n.large=!0),n},t.prototype.brushSelector=function(e,t,n){return n.rect(t.getItemLayout(e))},t.type=`series.bar`,t.dependencies=[`grid`,`polar`],t.defaultOption=bg(Kw.defaultOption,{clip:!0,roundCap:!1,showBackground:!1,backgroundStyle:{color:`rgba(180, 180, 180, 0.2)`,borderColor:null,borderWidth:0,borderType:`solid`,borderRadius:0,shadowBlur:0,shadowColor:null,shadowOffsetX:0,shadowOffsetY:0,opacity:1},select:{itemStyle:{borderColor:Z.color.primary,borderWidth:2}},realtimeSort:!1}),t}(Kw),Jw=`\0__throttleOriginMethod`,Yw=`\0__throttleRate`,Xw=`\0__throttleType`;function Zw(e,t,n){var r,i=0,a=0,o=null,s,c,l,u;t||=0;function d(){a=new Date().getTime(),o=null,e.apply(c,l||[])}var f=function(){var e=[...arguments];r=new Date().getTime(),c=this,l=e;var f=u||t,p=u||n;u=null,s=r-(p?i:a)-f,clearTimeout(o),p?o=setTimeout(d,f):s>=0?d():o=setTimeout(d,-s),i=r};return f.clear=function(){o&&=(clearTimeout(o),null)},f.debounceNextCall=function(e){u=e},f}function Qw(e,t,n,r){var i=e[t];if(i){var a=i[Jw]||i,o=i[Xw];if(i[Yw]!==n||o!==r){if(n==null||!r)return e[t]=a;i=e[t]=Zw(a,n,r===`debounce`),i[Jw]=a,i[Xw]=r,i[Yw]=n}return i}}function $w(e,t){var n=e[t];n&&n[Jw]&&(n.clear&&n.clear(),e[t]=n[Jw])}var eT=function(){function e(){this.cx=0,this.cy=0,this.r0=0,this.r=0,this.startAngle=0,this.endAngle=Math.PI*2,this.clockwise=!0}return e}(),tT=function(e){D(t,e);function t(t){var n=e.call(this,t)||this;return n.type=`sausage`,n}return t.prototype.getDefaultShape=function(){return new eT},t.prototype.buildPath=function(e,t){var n=t.cx,r=t.cy,i=Math.max(t.r0||0,0),a=Math.max(t.r,0),o=(a-i)*.5,s=i+o,c=t.startAngle,l=t.endAngle,u=t.clockwise,d=Math.PI*2,f=u?l-c<d:c-l<d;f||(c=l-(u?d:-d));var p=Math.cos(c),m=Math.sin(c),h=Math.cos(l),g=Math.sin(l);f?(e.moveTo(p*i+n,m*i+r),e.arc(p*s+n,m*s+r,o,-Math.PI+c,c,!u)):e.moveTo(p*a+n,m*a+r),e.arc(n,r,a,c,l,!u),e.arc(h*s+n,g*s+r,o,l-Math.PI*2,l-Math.PI,!u),i!==0&&e.arc(n,r,i,l,c,u)},t}(fs);function nT(e,t){t||={};var n=t.isRoundCap;return function(t,r,i){var a=r.position;if(!a||a instanceof Array)return Qn(t,r,i);var o=e(a),s=r.distance==null?5:r.distance,c=this.shape,l=c.cx,u=c.cy,d=c.r,f=c.r0,p=(d+f)/2,m=c.startAngle,h=c.endAngle,g=(m+h)/2,_=n?Math.abs(d-f)/2:0,v=Math.cos,y=Math.sin,b=l+d*v(m),x=u+d*y(m),S=`left`,C=`top`;switch(o){case`startArc`:b=l+(f-s)*v(g),x=u+(f-s)*y(g),S=`center`,C=`top`;break;case`insideStartArc`:b=l+(f+s)*v(g),x=u+(f+s)*y(g),S=`center`,C=`bottom`;break;case`startAngle`:b=l+p*v(m)+iT(m,s+_,!1),x=u+p*y(m)+aT(m,s+_,!1),S=`right`,C=`middle`;break;case`insideStartAngle`:b=l+p*v(m)+iT(m,-s+_,!1),x=u+p*y(m)+aT(m,-s+_,!1),S=`left`,C=`middle`;break;case`middle`:b=l+p*v(g),x=u+p*y(g),S=`center`,C=`middle`;break;case`endArc`:b=l+(d+s)*v(g),x=u+(d+s)*y(g),S=`center`,C=`bottom`;break;case`insideEndArc`:b=l+(d-s)*v(g),x=u+(d-s)*y(g),S=`center`,C=`top`;break;case`endAngle`:b=l+p*v(h)+iT(h,s+_,!0),x=u+p*y(h)+aT(h,s+_,!0),S=`left`,C=`middle`;break;case`insideEndAngle`:b=l+p*v(h)+iT(h,-s+_,!0),x=u+p*y(h)+aT(h,-s+_,!0),S=`right`,C=`middle`;break;default:return Qn(t,r,i)}return t||={},t.x=b,t.y=x,t.align=S,t.verticalAlign=C,t}}function rT(e,t,n,r){if(Ae(r)){e.setTextConfig({rotation:r});return}if(U(t)){e.setTextConfig({rotation:0});return}var i=e.shape,a=i.clockwise?i.startAngle:i.endAngle,o=i.clockwise?i.endAngle:i.startAngle,s=(a+o)/2,c,l=n(t);switch(l){case`startArc`:case`insideStartArc`:case`middle`:case`insideEndArc`:case`endArc`:c=s;break;case`startAngle`:case`insideStartAngle`:c=a;break;case`endAngle`:case`insideEndAngle`:c=o;break;default:e.setTextConfig({rotation:0});return}var u=Math.PI*1.5-c;l===`middle`&&u>Math.PI/2&&u<Math.PI*1.5&&(u-=Math.PI),e.setTextConfig({rotation:u})}function iT(e,t,n){return t*Math.sin(e)*(n?-1:1)}function aT(e,t,n){return t*Math.cos(e)*(n?1:-1)}function oT(e,t,n){var r=e.get(`borderRadius`);if(r==null)return n?{cornerRadius:0}:null;U(r)||(r=[r,r,r,r]);var i=Math.abs(t.r||0-t.r0||0);return{cornerRadius:B(r,function(e){return Zn(e,i)})}}var sT=Math.max,cT=Math.min,lT=function(e){D(t,e);function t(){var t=e.call(this)||this;return t.type=`bar`,t._isFirstFrame=!0,t}return t.prototype.render=function(e,t,n,r){this._model=e,this._removeOnRenderedListener(n),this._updateDrawMode(e);var i=e.get(`coordinateSystem`);(i===`cartesian2d`||i===`polar`)&&(this._progressiveEls=null,this._isLargeDraw?this._renderLarge(e,t,n):this._renderNormal(e,t,n,r))},t.prototype.incrementalPrepareRender=function(e){this._clear(),this._updateDrawMode(e),this._updateLargeClip(e)},t.prototype.incrementalRender=function(e,t){this._progressiveEls=[],this._incrementalRenderLarge(e,t)},t.prototype.eachRendered=function(e){Dp(this._progressiveEls||this.group,e)},t.prototype._updateDrawMode=function(e){var t=e.pipelineContext.large;(this._isLargeDraw==null||t!==this._isLargeDraw)&&(this._isLargeDraw=t,this._clear())},t.prototype._renderNormal=function(e,t,n,r){var i=this.group,a=e.getData(),o=this._data,s=e.coordinateSystem,c=s.getBaseAxis(),l;s.type===`cartesian2d`?l=c.isHorizontal():s.type===`polar`&&(l=c.dim===`angle`);var u=e.isAnimationEnabled()?e:null,d=fT(e,s);d&&this._enableRealtimeSort(d,a,n);var f=e.get(`clip`,!0)||d,p=s.getArea();i.removeClipPath();var m=e.get(`roundCap`,!0),h=e.get(`showBackground`,!0),g=e.getModel(`backgroundStyle`),_=g.get(`borderRadius`)||0,v=[],y=this._backgroundEls,b=r&&r.isInitSort,x=r&&r.type===`changeAxisOrder`;function S(e){var t=vT[s.type](a,e);if(!t)return null;var n=kT(s,l,t);return n.useStyle(g.getItemStyle()),s.type===`cartesian2d`?n.setShape(`r`,_):n.setShape(`cornerRadius`,_),v[e]=n,n}a.diff(o).add(function(t){var n=a.getItemModel(t),r=vT[s.type](a,t,n);if(r&&(h&&S(t),a.hasValue(t)&&_T[s.type](r))){var o=!1;f&&(o=uT[s.type](p,r));var g=dT[s.type](e,a,t,r,l,u,c.model,!1,m);d&&(g.forceLabelAnimation=!0),xT(g,a,t,n,r,e,l,s.type===`polar`),b?g.attr({shape:r}):d?pT(d,u,g,r,t,l,!1,!1):Bf(g,{shape:r},e,t),a.setItemGraphicEl(t,g),i.add(g),g.ignore=o}}).update(function(t,n){var r=a.getItemModel(t),C=vT[s.type](a,t,r);if(C){if(h){var w=void 0;y.length===0?w=S(n):(w=y[n],w.useStyle(g.getItemStyle()),s.type===`cartesian2d`?w.setShape(`r`,_):w.setShape(`cornerRadius`,_),v[t]=w);var T=vT[s.type](a,t),E=OT(l,T,s);zf(w,{shape:E},u,t)}var D=o.getItemGraphicEl(n);if(!a.hasValue(t)||!_T[s.type](C)){i.remove(D);return}var O=!1;if(f&&(O=uT[s.type](p,C),O&&i.remove(D)),D&&(D.type===`sector`&&m||D.type===`sausage`&&!m)&&(D&&Wf(D,e,n),D=null),D?Gf(D):D=dT[s.type](e,a,t,C,l,u,c.model,!0,m),d&&(D.forceLabelAnimation=!0),x){var k=D.getTextContent();if(k){var A=em(k);A.prevValue!=null&&(A.prevValue=A.value)}}else xT(D,a,t,r,C,e,l,s.type===`polar`);b?D.attr({shape:C}):d?pT(d,u,D,C,t,l,!0,x):zf(D,{shape:C},e,t,null),a.setItemGraphicEl(t,D),D.ignore=O,i.add(D)}}).remove(function(t){var n=o.getItemGraphicEl(t);n&&Wf(n,e,t)}).execute();var C=this._backgroundGroup||=new Fd;C.removeAll();for(var w=0;w<v.length;++w)C.add(v[w]);i.add(C),this._backgroundEls=v,this._data=a},t.prototype._renderLarge=function(e,t,n){this._clear(),TT(e,this.group),this._updateLargeClip(e)},t.prototype._incrementalRenderLarge=function(e,t){this._removeBackground(),TT(t,this.group,this._progressiveEls,!0)},t.prototype._updateLargeClip=function(e){var t=e.get(`clip`,!0)&&pb(e.coordinateSystem,!1,e),n=this.group;t?n.setClipPath(t):n.removeClipPath()},t.prototype._enableRealtimeSort=function(e,t,n){var r=this;if(t.count()){var i=e.baseAxis;if(this._isFirstFrame)this._dispatchInitSort(t,e,n),this._isFirstFrame=!1;else{var a=function(e){var n=t.getItemGraphicEl(e),r=n&&n.shape;return r&&Math.abs(i.isHorizontal()?r.height:r.width)||0};this._onRendered=function(){r._updateSortWithinSameData(t,a,i,n)},n.getZr().on(`rendered`,this._onRendered)}}},t.prototype._dataSort=function(e,t,n){var r=[];return e.each(e.mapDimension(t.dim),function(e,t){var i=n(t);i??=NaN,r.push({dataIndex:t,mappedValue:i,ordinalNumber:e})}),r.sort(function(e,t){return t.mappedValue-e.mappedValue}),{ordinalNumbers:B(r,function(e){return e.ordinalNumber})}},t.prototype._isOrderChangedWithinSameData=function(e,t,n){for(var r=n.scale,i=e.mapDimension(n.dim),a=Number.MAX_VALUE,o=0,s=r.getOrdinalMeta().categories.length;o<s;++o){var c=e.rawIndexOf(i,r.getRawOrdinalNumber(o)),l=c<0?Number.MIN_VALUE:t(e.indexOfRawIndex(c));if(l>a)return!0;a=l}return!1},t.prototype._isOrderDifferentInView=function(e,t){for(var n=t.scale,r=n.getExtent(),i=Math.max(0,r[0]),a=Math.min(r[1],n.getOrdinalMeta().categories.length-1);i<=a;++i)if(e.ordinalNumbers[i]!==n.getRawOrdinalNumber(i))return!0},t.prototype._updateSortWithinSameData=function(e,t,n,r){if(this._isOrderChangedWithinSameData(e,t,n)){var i=this._dataSort(e,n,t);this._isOrderDifferentInView(i,n)&&(this._removeOnRenderedListener(r),r.dispatchAction({type:`changeAxisOrder`,componentType:n.dim+`Axis`,axisId:n.index,sortInfo:i}))}},t.prototype._dispatchInitSort=function(e,t,n){var r=t.baseAxis,i=this._dataSort(e,r,function(n){return e.get(e.mapDimension(t.otherAxis.dim),n)});n.dispatchAction({type:`changeAxisOrder`,componentType:r.dim+`Axis`,isInitSort:!0,axisId:r.index,sortInfo:i})},t.prototype.remove=function(e,t){this._clear(this._model),this._removeOnRenderedListener(t)},t.prototype.dispose=function(e,t){this._removeOnRenderedListener(t)},t.prototype._removeOnRenderedListener=function(e){this._onRendered&&=(e.getZr().off(`rendered`,this._onRendered),null)},t.prototype._clear=function(e){var t=this.group,n=this._data;e&&e.isAnimationEnabled()&&n&&!this._isLargeDraw?(this._removeBackground(),this._backgroundEls=[],n.eachItemGraphicEl(function(t){Wf(t,e,Wl(t).dataIndex)})):t.removeAll(),this._data=null,this._isFirstFrame=!0},t.prototype._removeBackground=function(){this.group.remove(this._backgroundGroup),this._backgroundGroup=null},t.type=`bar`,t}(ab),uT={cartesian2d:function(e,t){var n=t.width<0?-1:1,r=t.height<0?-1:1;n<0&&(t.x+=t.width,t.width=-t.width),r<0&&(t.y+=t.height,t.height=-t.height);var i=e.x+e.width,a=e.y+e.height,o=sT(t.x,e.x),s=cT(t.x+t.width,i),c=sT(t.y,e.y),l=cT(t.y+t.height,a),u=s<o,d=l<c;return t.x=u&&o>i?s:o,t.y=d&&c>a?l:c,t.width=u?0:s-o,t.height=d?0:l-c,n<0&&(t.x+=t.width,t.width=-t.width),r<0&&(t.y+=t.height,t.height=-t.height),u||d},polar:function(e,t){var n=t.r0<=t.r?1:-1;if(n<0){var r=t.r;t.r=t.r0,t.r0=r}var i=cT(t.r,e.r),a=sT(t.r0,e.r0);t.r=i,t.r0=a;var o=i-a<0;if(n<0){var r=t.r;t.r=t.r0,t.r0=r}return o}},dT={cartesian2d:function(e,t,n,r,i,a,o,s,c){var l=new Es({shape:I({},r),z2:1});if(l.__dataIndex=n,l.name=`item`,a){var u=l.shape,d=i?`height`:`width`;u[d]=0}return l},polar:function(e,t,n,r,i,a,o,s,c){var l=!i&&c?tT:nf,u=new l({shape:r,z2:1});if(u.name=`item`,u.calculateTextPosition=nT(bT(i),{isRoundCap:l===tT}),a){var d=u.shape,f=i?`r`:`endAngle`,p={};d[f]=i?r.r0:r.startAngle,p[f]=r[f],(s?zf:Bf)(u,{shape:p},a)}return u}};function fT(e,t){var n=e.get(`realtimeSort`,!0),r=t.getBaseAxis();if(n&&r.type===`category`&&t.type===`cartesian2d`)return{baseAxis:r,otherAxis:t.getOtherAxis(r)}}function pT(e,t,n,r,i,a,o,s){var c,l;a?(l={x:r.x,width:r.width},c={y:r.y,height:r.height}):(l={y:r.y,height:r.height},c={x:r.x,width:r.width}),s||(o?zf:Bf)(n,{shape:c},t,i,null);var u=t?e.baseAxis.model:null;(o?zf:Bf)(n,{shape:l},u,i)}function mT(e,t){for(var n=0;n<t.length;n++)if(!isFinite(e[t[n]]))return!0;return!1}var hT=[`x`,`y`,`width`,`height`],gT=[`cx`,`cy`,`r`,`startAngle`,`endAngle`],_T={cartesian2d:function(e){return!mT(e,hT)},polar:function(e){return!mT(e,gT)}},vT={cartesian2d:function(e,t,n){var r=e.getItemLayout(t);if(!r)return null;var i=n?ST(n,r):0,a=r.width>0?1:-1,o=r.height>0?1:-1;return{x:r.x+a*i/2,y:r.y+o*i/2,width:r.width-a*i,height:r.height-o*i}},polar:function(e,t,n){var r=e.getItemLayout(t);return{cx:r.cx,cy:r.cy,r0:r.r0,r:r.r,startAngle:r.startAngle,endAngle:r.endAngle,clockwise:r.clockwise}}};function yT(e){return e.startAngle!=null&&e.endAngle!=null&&e.startAngle===e.endAngle}function bT(e){return function(e){var t=e?`Arc`:`Angle`;return function(e){switch(e){case`start`:case`insideStart`:case`end`:case`insideEnd`:return e+t;default:return e}}}(e)}function xT(e,t,n,r,i,a,o,s){var c=t.getItemVisual(n,`style`);if(!s){var l=r.get([`itemStyle`,`borderRadius`])||0;e.setShape(`r`,l)}else if(!a.get(`roundCap`)){var u=e.shape;I(u,oT(r.getModel(`itemStyle`),u,!0)),e.setShape(u)}e.useStyle(c);var d=r.getShallow(`cursor`);d&&e.attr(`cursor`,d);var f=s?o?i.r>=i.r0?`endArc`:`startArc`:i.endAngle>=i.startAngle?`endAngle`:`startAngle`:o?AT(i,a.coordinateSystem):jT(i,a.coordinateSystem),p=Wp(r);Up(e,p,{labelFetcher:a,labelDataIndex:n,defaultText:Ay(a.getData(),n),inheritColor:c.fill,defaultOpacity:c.opacity,defaultOutsidePosition:f});var m=e.getTextContent();if(s&&m){var h=r.get([`label`,`position`]);e.textConfig.inside=h===`middle`||null,rT(e,h===`outside`?f:h,bT(o),r.get([`label`,`rotate`]))}tm(m,p,a.getRawValue(n),function(e){return jy(t,e)});var g=r.getModel([`emphasis`]);td(e,g.get(`focus`),g.get(`blurScope`),g.get(`disabled`)),ad(e,r),yT(i)&&(e.style.fill=`none`,e.style.stroke=`none`,z(e.states,function(e){e.style&&(e.style.fill=e.style.stroke=`none`)}))}function ST(e,t){var n=e.get([`itemStyle`,`borderColor`]);if(!n||n===`none`)return 0;var r=e.get([`itemStyle`,`borderWidth`])||0,i=isNaN(t.width)?Number.MAX_VALUE:Math.abs(t.width),a=isNaN(t.height)?Number.MAX_VALUE:Math.abs(t.height);return Math.min(r,i,a)}var CT=function(){function e(){}return e}(),wT=function(e){D(t,e);function t(t){var n=e.call(this,t)||this;return n.type=`largeBar`,n}return t.prototype.getDefaultShape=function(){return new CT},t.prototype.buildPath=function(e,t){for(var n=t.points,r=this.baseDimIdx,i=1-this.baseDimIdx,a=[],o=[],s=this.barWidth,c=0;c<n.length;c+=3)o[r]=s,o[i]=n[c+2],a[r]=n[c+r],a[i]=n[c+i],e.rect(a[0],a[1],o[0],o[1])},t}(fs);function TT(e,t,n,r){var i=e.getData(),a=+!!i.getLayout(`valueAxisHorizontal`),o=i.getLayout(`largeDataIndices`),s=i.getLayout(`size`),c=e.getModel(`backgroundStyle`),l=i.getLayout(`largeBackgroundPoints`),u=r?Bl(e):0;if(l){var d=new wT({shape:{points:l},incremental:u,silent:!0,z2:0});d.baseDimIdx=a,d.largeDataIndices=o,d.barWidth=s,d.useStyle(c.getItemStyle()),t.add(d),n&&n.push(d)}var f=new wT({shape:{points:i.getLayout(`largePoints`)},incremental:u,ignoreCoarsePointer:!0,z2:1});f.baseDimIdx=a,f.largeDataIndices=o,f.barWidth=s,t.add(f),f.useStyle(i.getVisual(`style`)),f.style.stroke=null,Wl(f).seriesIndex=e.seriesIndex,e.get(`silent`)||(f.on(`mousedown`,ET),f.on(`mousemove`,ET)),n&&n.push(f)}var ET=Zw(function(e){var t=this,n=DT(t,e.offsetX,e.offsetY);Wl(t).dataIndex=n>=0?n:null},30,!1);function DT(e,t,n){for(var r=e.baseDimIdx,i=1-r,a=e.shape.points,o=e.largeDataIndices,s=[],c=[],l=e.barWidth,u=0,d=a.length/3;u<d;u++){var f=u*3;if(c[r]=l,c[i]=a[f+2],s[r]=a[f+r],s[i]=a[f+i],c[i]<0&&(s[i]+=c[i],c[i]=-c[i]),t>=s[0]&&t<=s[0]+c[0]&&n>=s[1]&&n<=s[1]+c[1])return o[u]}return-1}function OT(e,t,n){if(mb(n,`cartesian2d`)){var r=t,i=n.getArea();return{x:e?r.x:i.x,y:e?i.y:r.y,width:e?r.width:i.width,height:e?i.height:r.height}}var i=n.getArea(),a=t;return{cx:i.cx,cy:i.cy,r0:e?i.r0:a.r0,r:e?i.r:a.r,startAngle:e?a.startAngle:0,endAngle:e?a.endAngle:Math.PI*2}}function kT(e,t,n){return new(e.type===`polar`?nf:Es)({shape:OT(t,n,e),silent:!0,z2:0})}function AT(e,t){return e.height===0?t.getOtherAxis(t.getBaseAxis()).inverse?`bottom`:`top`:e.height>0?`bottom`:`top`}function jT(e,t){return e.width===0?t.getOtherAxis(t.getBaseAxis()).inverse?`left`:`right`:e.width>=0?`right`:`left`}function MT(e){e.registerChartView(lT),e.registerSeriesModel(qw),e.registerLayout(e.PRIORITY.VISUAL.LAYOUT,Vw(`bar`)),e.registerLayout(e.PRIORITY.VISUAL.PROGRESSIVE_LAYOUT,Hw(`bar`)),e.registerProcessor(e.PRIORITY.PROCESSOR.STATISTIC,Qx(`bar`)),e.registerAction({type:`changeAxisOrder`,event:`changeAxisOrder`,update:`update`},function(e,t){var n=e.componentType||`series`;t.eachComponent({mainType:n,query:e},function(t){e.sortInfo&&t.axis.setCategorySortInfo(e.sortInfo)})}),Gw(e)}function NT(e,t){function n(t,n){var r=[];return t.eachComponent({mainType:`series`,subType:e,query:n},function(e){r.push(e.seriesIndex)}),r}z([[e+`ToggleSelect`,`toggleSelect`],[e+`Select`,`select`],[e+`UnSelect`,`unselect`]],function(e){t(e[0],function(t,r,i){t=I({},t),i.dispatchAction(I(t,{type:e[1],seriesIndex:n(r,t)}))})})}function PT(e,t,n,r,i){var a=e+t;n.isSilent(a)||r.eachComponent({mainType:`series`,subType:`pie`},function(e){for(var t=e.seriesIndex,r=e.option.selectedMap,o=i.selected,s=0;s<o.length;s++)if(o[s].seriesIndex===t){var c=e.getData(),l=pl(c,i.fromActionPayload);n.trigger(a,{type:a,seriesId:e.id,name:U(l)?c.getName(l[0]):c.getName(l),selected:G(r)?r:I({},r)})}})}function FT(e,t,n){e.on(`selectchanged`,function(e){var r=n.getModel();e.isFromClick?(PT(`map`,`selectchanged`,t,r,e),PT(`pie`,`selectchanged`,t,r,e)):e.fromAction===`select`?(PT(`map`,`selected`,t,r,e),PT(`pie`,`selected`,t,r,e)):e.fromAction===`unselect`&&(PT(`map`,`unselected`,t,r,e),PT(`pie`,`unselected`,t,r,e))})}function IT(e,t,n){t=U(t)&&{coordDimensions:t}||I({encodeDefine:e.getEncode()},t);var r=e.getSource(),i=Kh(r,t).dimensions,a=new Wh(i,e);return a.initData(r,n),a}var LT=function(){function e(e,t){this.target=e,this.topTarget=t&&t.topTarget}return e}(),RT=function(){function e(e){this.handler=e,e.on(`mousedown`,this._dragStart,this),e.on(`mousemove`,this._drag,this),e.on(`mouseup`,this._dragEnd,this)}return e.prototype._dragStart=function(e){for(var t=e.target;t&&!t.draggable;)t=t.parent||t.__hostTarget;t&&(this._draggingTarget=t,t.dragging=!0,this._x=e.offsetX,this._y=e.offsetY,this.handler.dispatchToElement(new LT(t,e),`dragstart`,e.event))},e.prototype._drag=function(e){var t=this._draggingTarget;if(t){var n=e.offsetX,r=e.offsetY,i=n-this._x,a=r-this._y;this._x=n,this._y=r,t.drift(i,a,e),this.handler.dispatchToElement(new LT(t,e),`drag`,e.event);var o=this.handler.findHover(n,r,t).target,s=this._dropTarget;this._dropTarget=o,t!==o&&(s&&o!==s&&this.handler.dispatchToElement(new LT(s,e),`dragleave`,e.event),o&&o!==s&&this.handler.dispatchToElement(new LT(o,e),`dragenter`,e.event))}},e.prototype._dragEnd=function(e){var t=this._draggingTarget;t&&(t.dragging=!1),this.handler.dispatchToElement(new LT(t,e),`dragend`,e.event),this._dropTarget&&this.handler.dispatchToElement(new LT(this._dropTarget,e),`drop`,e.event),this._draggingTarget=null,this._dropTarget=null},e}(),zT=/^(?:mouse|pointer|contextmenu|drag|drop)|click/,BT=[],VT=Y.browser.firefox&&+Y.browser.version.split(`.`)[0]<39;function HT(e,t,n,r){return n||={},r?UT(e,t,n):VT&&t.layerX!=null&&t.layerX!==t.offsetX?(n.zrX=t.layerX,n.zrY=t.layerY):t.offsetX==null?UT(e,t,n):(n.zrX=t.offsetX,n.zrY=t.offsetY),n}function UT(e,t,n){if(Y.domSupported&&e.getBoundingClientRect){var r=t.clientX,i=t.clientY;if(jg(e)){var a=e.getBoundingClientRect();n.zrX=r-a.left,n.zrY=i-a.top;return}if(Og(BT,e,r,i)){n.zrX=BT[0],n.zrY=BT[1];return}}n.zrX=n.zrY=0}function WT(e){return e||window.event}function GT(e,t,n){if(t=WT(t),t.zrX!=null)return t;var r=t.type;if(r&&r.indexOf(`touch`)>=0){var i=r===`touchend`?t.changedTouches[0]:t.targetTouches[0];i&&HT(e,i,t,n)}else{HT(e,t,t,n);var a=KT(t);t.zrDelta=a?a/120:-(t.detail||0)/3}var o=t.button;return t.which==null&&o!==void 0&&zT.test(t.type)&&(t.which=o&1?1:o&2?3:o&4?2:0),t}function KT(e){var t=e.wheelDelta;if(t)return t;var n=e.deltaX,r=e.deltaY;if(n==null||r==null)return t;var i=Math.abs(r===0?n:r),a=r>0?-1:r<0?1:n>0?-1:1;return 3*i*a}function qT(e,t,n,r){e.addEventListener(t,n,r)}function JT(e,t,n,r){e.removeEventListener(t,n,r)}var YT=function(e){e.preventDefault(),e.stopPropagation(),e.cancelBubble=!0};function XT(e){return e.which===2||e.which===3}var ZT=function(){function e(){this._track=[]}return e.prototype.recognize=function(e,t,n){return this._doTrack(e,t,n),this._recognize(e)},e.prototype.clear=function(){return this._track.length=0,this},e.prototype._doTrack=function(e,t,n){var r=e.touches;if(r){for(var i={points:[],touches:[],target:t,event:e},a=0,o=r.length;a<o;a++){var s=r[a],c=HT(n,s,{});i.points.push([c.zrX,c.zrY]),i.touches.push(s)}this._track.push(i)}},e.prototype._recognize=function(e){for(var t in eE)if(eE.hasOwnProperty(t)){var n=eE[t](this._track,e);if(n)return n}},e}();function QT(e){var t=e[1][0]-e[0][0],n=e[1][1]-e[0][1];return Math.sqrt(t*t+n*n)}function $T(e){return[(e[0][0]+e[1][0])/2,(e[0][1]+e[1][1])/2]}var eE={pinch:function(e,t){var n=e.length;if(n){var r=(e[n-1]||{}).points,i=(e[n-2]||{}).points||r;if(i&&i.length>1&&r&&r.length>1){var a=QT(r)/QT(i);!isFinite(a)&&(a=1),t.pinchScale=a;var o=$T(r);return t.pinchX=o[0],t.pinchY=o[1],{type:`pinch`,target:e[0].target,event:t}}}}},tE=`silent`;function nE(e,t,n){return{type:e,event:n,target:t.target,topTarget:t.topTarget,cancelBubble:!1,offsetX:n.zrX,offsetY:n.zrY,gestureEvent:n.gestureEvent,pinchX:n.pinchX,pinchY:n.pinchY,pinchScale:n.pinchScale,wheelDelta:n.zrDelta,zrByTouch:n.zrByTouch,which:n.which,stop:rE}}function rE(){YT(this.event)}var iE=function(e){D(t,e);function t(){var t=e!==null&&e.apply(this,arguments)||this;return t.handler=null,t}return t.prototype.dispose=function(){},t.prototype.setCursor=function(){},t}(ka),aE=function(){function e(e,t){this.x=e,this.y=t}return e}(),oE=[`click`,`dblclick`,`mousewheel`,`mouseout`,`mouseup`,`mousedown`,`mousemove`,`contextmenu`],sE=new X(0,0,0,0),cE=function(e){D(t,e);function t(t,n,r,i,a){var o=e.call(this)||this;return o._hovered=new aE(0,0),o.storage=t,o.painter=n,o.painterRoot=i,o._pointerSize=a,r||=new iE,o.proxy=null,o.setHandlerProxy(r),o._draggingMgr=new RT(o),o}return t.prototype.setHandlerProxy=function(e){this.proxy&&this.proxy.dispose(),e&&(z(oE,function(t){e.on&&e.on(t,this[t],this)},this),e.handler=this),this.proxy=e},t.prototype.mousemove=function(e){var t=e.zrX,n=e.zrY,r=dE(this,t,n),i=this._hovered,a=i.target;a&&!a.__zr&&(i=this.findHover(i.x,i.y),a=i.target);var o=this._hovered=r?new aE(t,n):this.findHover(t,n),s=o.target,c=this.proxy;c.setCursor&&c.setCursor(s?s.cursor:`default`),a&&s!==a&&this.dispatchToElement(i,`mouseout`,e),this.dispatchToElement(o,`mousemove`,e),s&&s!==a&&this.dispatchToElement(o,`mouseover`,e)},t.prototype.mouseout=function(e){var t=e.zrEventControl;t!==`only_globalout`&&this.dispatchToElement(this._hovered,`mouseout`,e),t!==`no_globalout`&&this.trigger(`globalout`,{type:`globalout`,event:e})},t.prototype.resize=function(){this._hovered=new aE(0,0)},t.prototype.dispatch=function(e,t){var n=this[e];n&&n.call(this,t)},t.prototype.dispose=function(){this.proxy.dispose(),this.storage=null,this.proxy=null,this.painter=null},t.prototype.setCursorStyle=function(e){var t=this.proxy;t.setCursor&&t.setCursor(e)},t.prototype.dispatchToElement=function(e,t,n){e||={};var r=e.target;if(!(r&&r.silent)){for(var i=`on`+t,a=nE(t,e,n);r&&(r[i]&&(a.cancelBubble=!!r[i].call(r,a)),r.trigger(t,a),r=r.__hostTarget?r.__hostTarget:r.parent,!a.cancelBubble););a.cancelBubble||(this.trigger(t,a),this.painter&&this.painter.eachOtherLayer&&this.painter.eachOtherLayer(function(e){typeof e[i]==`function`&&e[i].call(e,a),e.trigger&&e.trigger(t,a)}))}},t.prototype.findHover=function(e,t,n){var r=this.storage.getDisplayList(),i=new aE(e,t);if(uE(r,i,e,t,n),this._pointerSize&&!i.target){for(var a=[],o=this._pointerSize,s=o/2,c=new X(e-s,t-s,o,o),l=r.length-1;l>=0;l--){var u=r[l];u!==n&&!u.ignore&&!u.ignoreCoarsePointer&&(!u.parent||!u.parent.ignoreCoarsePointer)&&(sE.copy(u.getBoundingRect()),u.transform&&sE.applyTransform(u.transform),sE.intersect(c)&&a.push(u))}if(a.length){for(var d=4,f=Math.PI/12,p=Math.PI*2,m=0;m<s;m+=d)for(var h=0;h<p;h+=f)if(uE(a,i,e+m*Math.cos(h),t+m*Math.sin(h),n),i.target)return i}}return i},t.prototype.processGesture=function(e,t){this._gestureMgr||=new ZT;var n=this._gestureMgr;t===`start`&&n.clear();var r=n.recognize(e,this.findHover(e.zrX,e.zrY,null).target,this.proxy.dom);if(t===`end`&&n.clear(),r){var i=r.type;e.gestureEvent=i;var a=new aE;a.target=r.target,this.dispatchToElement(a,i,r.event)}},t}(ka);z([`click`,`mousedown`,`mouseup`,`mousewheel`,`dblclick`,`contextmenu`],function(e){cE.prototype[e]=function(t){var n=t.zrX,r=t.zrY,i=dE(this,n,r),a,o;if((e!==`mouseup`||!i)&&(a=this.findHover(n,r),o=a.target),e===`mousedown`)this._downEl=o,this._downPoint=[t.zrX,t.zrY],this._upEl=o;else if(e===`mouseup`)this._upEl=o;else if(e===`click`){if(this._downEl!==this._upEl||!this._downPoint||on(this._downPoint,[t.zrX,t.zrY])>4)return;this._downPoint=null}this.dispatchToElement(a,e,t)}});function lE(e,t,n){if(e[e.rectHover?`rectContain`:`contain`](t,n)){for(var r=e,i=void 0,a=!1;r;){if(r.ignoreClip&&(a=!0),!a){var o=r.getClipPath();if(o&&!o.contain(t,n))return!1}r.silent&&(i=!0);var s=r.__hostTarget;r=s?r.ignoreHostSilent?null:s:r.parent}return!i||tE}return!1}function uE(e,t,n,r,i){for(var a=e.length-1;a>=0;a--){var o=e[a],s=void 0;if(o!==i&&!o.ignore&&(s=lE(o,n,r))&&(!t.topTarget&&(t.topTarget=o),s!==tE)){t.target=o;break}}}function dE(e,t,n){var r=e.painter;return t<0||t>r.getWidth()||n<0||n>r.getHeight()}var fE=32,pE=7;function mE(e){for(var t=0;e>=fE;)t|=e&1,e>>=1;return e+t}function hE(e,t,n,r){var i=t+1;if(i===n)return 1;if(r(e[i++],e[t])<0){for(;i<n&&r(e[i],e[i-1])<0;)i++;gE(e,t,i)}else for(;i<n&&r(e[i],e[i-1])>=0;)i++;return i-t}function gE(e,t,n){for(n--;t<n;){var r=e[t];e[t++]=e[n],e[n--]=r}}function _E(e,t,n,r,i){for(r===t&&r++;r<n;r++){for(var a=e[r],o=t,s=r,c;o<s;)c=o+s>>>1,i(a,e[c])<0?s=c:o=c+1;var l=r-o;switch(l){case 3:e[o+3]=e[o+2];case 2:e[o+2]=e[o+1];case 1:e[o+1]=e[o];break;default:for(;l>0;)e[o+l]=e[o+l-1],l--}e[o]=a}}function vE(e,t,n,r,i,a){var o=0,s=0,c=1;if(a(e,t[n+i])>0){for(s=r-i;c<s&&a(e,t[n+i+c])>0;)o=c,c=(c<<1)+1,c<=0&&(c=s);c>s&&(c=s),o+=i,c+=i}else{for(s=i+1;c<s&&a(e,t[n+i-c])<=0;)o=c,c=(c<<1)+1,c<=0&&(c=s);c>s&&(c=s);var l=o;o=i-c,c=i-l}for(o++;o<c;){var u=o+(c-o>>>1);a(e,t[n+u])>0?o=u+1:c=u}return c}function yE(e,t,n,r,i,a){var o=0,s=0,c=1;if(a(e,t[n+i])<0){for(s=i+1;c<s&&a(e,t[n+i-c])<0;)o=c,c=(c<<1)+1,c<=0&&(c=s);c>s&&(c=s);var l=o;o=i-c,c=i-l}else{for(s=r-i;c<s&&a(e,t[n+i+c])>=0;)o=c,c=(c<<1)+1,c<=0&&(c=s);c>s&&(c=s),o+=i,c+=i}for(o++;o<c;){var u=o+(c-o>>>1);a(e,t[n+u])<0?c=u:o=u+1}return c}function bE(e,t){var n=pE,r,i,a=0,o=[];r=[],i=[];function s(e,t){r[a]=e,i[a]=t,a+=1}function c(){for(;a>1;){var e=a-2;if(e>=1&&i[e-1]<=i[e]+i[e+1]||e>=2&&i[e-2]<=i[e]+i[e-1])i[e-1]<i[e+1]&&e--;else if(i[e]>i[e+1])break;u(e)}}function l(){for(;a>1;){var e=a-2;e>0&&i[e-1]<i[e+1]&&e--,u(e)}}function u(n){var o=r[n],s=i[n],c=r[n+1],l=i[n+1];i[n]=s+l,n===a-3&&(r[n+1]=r[n+2],i[n+1]=i[n+2]),a--;var u=yE(e[c],e,o,s,0,t);o+=u,s-=u,s!==0&&(l=vE(e[o+s-1],e,c,l,l-1,t),l!==0&&(s<=l?d(o,s,c,l):f(o,s,c,l)))}function d(r,i,a,s){var c=0;for(c=0;c<i;c++)o[c]=e[r+c];var l=0,u=a,d=r;if(e[d++]=e[u++],--s===0){for(c=0;c<i;c++)e[d+c]=o[l+c];return}if(i===1){for(c=0;c<s;c++)e[d+c]=e[u+c];e[d+s]=o[l];return}for(var f=n,p,m,h;;){p=0,m=0,h=!1;do if(t(e[u],o[l])<0){if(e[d++]=e[u++],m++,p=0,--s===0){h=!0;break}}else if(e[d++]=o[l++],p++,m=0,--i===1){h=!0;break}while((p|m)<f);if(h)break;do{if(p=yE(e[u],o,l,i,0,t),p!==0){for(c=0;c<p;c++)e[d+c]=o[l+c];if(d+=p,l+=p,i-=p,i<=1){h=!0;break}}if(e[d++]=e[u++],--s===0){h=!0;break}if(m=vE(o[l],e,u,s,0,t),m!==0){for(c=0;c<m;c++)e[d+c]=e[u+c];if(d+=m,u+=m,s-=m,s===0){h=!0;break}}if(e[d++]=o[l++],--i===1){h=!0;break}f--}while(p>=pE||m>=pE);if(h)break;f<0&&(f=0),f+=2}if(n=f,n<1&&(n=1),i===1){for(c=0;c<s;c++)e[d+c]=e[u+c];e[d+s]=o[l]}else if(i===0)throw Error();else for(c=0;c<i;c++)e[d+c]=o[l+c]}function f(r,i,a,s){var c=0;for(c=0;c<s;c++)o[c]=e[a+c];var l=r+i-1,u=s-1,d=a+s-1,f=0,p=0;if(e[d--]=e[l--],--i===0){for(f=d-(s-1),c=0;c<s;c++)e[f+c]=o[c];return}if(s===1){for(d-=i,l-=i,p=d+1,f=l+1,c=i-1;c>=0;c--)e[p+c]=e[f+c];e[d]=o[u];return}for(var m=n;;){var h=0,g=0,_=!1;do if(t(o[u],e[l])<0){if(e[d--]=e[l--],h++,g=0,--i===0){_=!0;break}}else if(e[d--]=o[u--],g++,h=0,--s===1){_=!0;break}while((h|g)<m);if(_)break;do{if(h=i-yE(o[u],e,r,i,i-1,t),h!==0){for(d-=h,l-=h,i-=h,p=d+1,f=l+1,c=h-1;c>=0;c--)e[p+c]=e[f+c];if(i===0){_=!0;break}}if(e[d--]=o[u--],--s===1){_=!0;break}if(g=s-vE(e[l],o,0,s,s-1,t),g!==0){for(d-=g,u-=g,s-=g,p=d+1,f=u+1,c=0;c<g;c++)e[p+c]=o[f+c];if(s<=1){_=!0;break}}if(e[d--]=e[l--],--i===0){_=!0;break}m--}while(h>=pE||g>=pE);if(_)break;m<0&&(m=0),m+=2}if(n=m,n<1&&(n=1),s===1){for(d-=i,l-=i,p=d+1,f=l+1,c=i-1;c>=0;c--)e[p+c]=e[f+c];e[d]=o[u]}else if(s===0)throw Error();else for(f=d-(s-1),c=0;c<s;c++)e[f+c]=o[c]}return{mergeRuns:c,forceMergeRuns:l,pushRun:s}}function xE(e,t,n,r){n||=0,r||=e.length;var i=r-n;if(!(i<2)){var a=0;if(i<fE){a=hE(e,n,r,t),_E(e,n,r,n+a,t);return}var o=bE(e,t),s=mE(i);do{if(a=hE(e,n,r,t),a<s){var c=i;c>s&&(c=s),_E(e,n,n+c,n+a,t),a=c}o.pushRun(n,a),o.mergeRuns(),i-=a,n+=a}while(i!==0);o.forceMergeRuns()}}var SE=!1;function CE(){SE||(SE=!0,console.warn(`z / z2 / zlevel of displayable is invalid, which may cause unexpected errors`))}function wE(e,t){return e.zlevel===t.zlevel?e.z===t.z?e.z2-t.z2:e.z-t.z:e.zlevel-t.zlevel}var TE=function(){function e(){this._roots=[],this._displayList=[],this._displayListLen=0,this.displayableSortFunc=wE}return e.prototype.traverse=function(e,t){for(var n=0;n<this._roots.length;n++)this._roots[n].traverse(e,t)},e.prototype.getDisplayList=function(e,t){t||=!1;var n=this._displayList;return(e||!n.length)&&this.updateDisplayList(t),n},e.prototype.updateDisplayList=function(e){this._displayListLen=0;for(var t=this._roots,n=this._displayList,r=0,i=t.length;r<i;r++)this._updateAndAddDisplayable(t[r],null,e);n.length=this._displayListLen,xE(n,wE)},e.prototype._updateAndAddDisplayable=function(e,t,n){if(!e.ignore||n){e.beforeUpdate(),e.update(),e.afterUpdate();var r=e.getClipPath(),i=t&&t.length,a=0,o=e.__clipPaths;if(!e.ignoreClip&&(i||r)){if(o||=e.__clipPaths=[],i)for(var s=0;s<t.length;s++)o[a++]=t[s];for(var c=r,l=e;c;)c.parent=l,c.updateTransform(),o[a++]=c,l=c,c=c.getClipPath()}if(o&&(o.length=a),e.childrenRef){for(var u=e.childrenRef(),d=0;d<u.length;d++){var f=u[d];e.__dirty&&(f.__dirty|=1),this._updateAndAddDisplayable(f,o,n)}e.__dirty=0}else{var p=e;isNaN(p.z)&&(CE(),p.z=0),isNaN(p.z2)&&(CE(),p.z2=0),isNaN(p.zlevel)&&(CE(),p.zlevel=0),this._displayList[this._displayListLen++]=p}var m=e.getDecalElement&&e.getDecalElement();m&&this._updateAndAddDisplayable(m,o,n);var h=e.getTextGuideLine();h&&this._updateAndAddDisplayable(h,o,n);var g=e.getTextContent();g&&this._updateAndAddDisplayable(g,o,n)}},e.prototype.addRoot=function(e){e.__zr&&e.__zr.storage===this||this._roots.push(e)},e.prototype.delRoot=function(e){if(e instanceof Array){for(var t=0,n=e.length;t<n;t++)this.delRoot(e[t]);return}var r=R(this._roots,e);r>=0&&this._roots.splice(r,1)},e.prototype.delAllRoots=function(){this._roots=[],this._displayList=[],this._displayListLen=0},e.prototype.getRoots=function(){return this._roots},e.prototype.dispose=function(){this._displayList=null,this._roots=null},e}(),EE=Y.hasGlobalWindow&&(window.requestAnimationFrame&&window.requestAnimationFrame.bind(window)||window.msRequestAnimationFrame&&window.msRequestAnimationFrame.bind(window)||window.mozRequestAnimationFrame||window.webkitRequestAnimationFrame)||function(e){return setTimeout(e,16)};function DE(){return new Date().getTime()}var OE=function(e){D(t,e);function t(t){var n=e.call(this)||this;return n._running=!1,n._time=0,n._pausedTime=0,n._pauseStart=0,n._paused=!1,t||={},n.stage=t.stage||{},n}return t.prototype.addClip=function(e){e.animation&&this.removeClip(e),this._head?(this._tail.next=e,e.prev=this._tail,e.next=null,this._tail=e):this._head=this._tail=e,e.animation=this},t.prototype.addAnimator=function(e){e.animation=this;var t=e.getClip();t&&this.addClip(t)},t.prototype.removeClip=function(e){if(e.animation){var t=e.prev,n=e.next;t?t.next=n:this._head=n,n?n.prev=t:this._tail=t,e.next=e.prev=e.animation=null}},t.prototype.removeAnimator=function(e){var t=e.getClip();t&&this.removeClip(t),e.animation=null},t.prototype.update=function(e){for(var t=DE()-this._pausedTime,n=t-this._time,r=this._head;r;){var i=r.next;r.step(t,n)?(r.ondestroy(),this.removeClip(r),r=i):r=i}this._time=t,e||(this.trigger(`frame`,n),this.stage.update&&this.stage.update())},t.prototype._startLoop=function(){var e=this;this._running=!0;function t(){e._running&&(EE(t),!e._paused&&e.update())}EE(t)},t.prototype.start=function(){this._running||(this._time=DE(),this._pausedTime=0,this._startLoop())},t.prototype.stop=function(){this._running=!1},t.prototype.pause=function(){this._paused||=(this._pauseStart=DE(),!0)},t.prototype.resume=function(){this._paused&&=(this._pausedTime+=DE()-this._pauseStart,!1)},t.prototype.clear=function(){for(var e=this._head;e;){var t=e.next;e.prev=e.next=e.animation=null,e=t}this._head=this._tail=null},t.prototype.isFinished=function(){return this._head==null},t.prototype.animate=function(e,t){t||={},this.start();var n=new Oa(e,t.loop);return this.addAnimator(n),n},t}(ka),kE=300,AE=Y.domSupported,jE=(function(){var e=[`click`,`dblclick`,`mousewheel`,`wheel`,`mouseout`,`mouseup`,`mousedown`,`mousemove`,`contextmenu`],t=[`touchstart`,`touchend`,`touchmove`],n={pointerdown:1,pointerup:1,pointermove:1,pointerout:1};return{mouse:e,touch:t,pointer:B(e,function(e){var t=e.replace(`mouse`,`pointer`);return n.hasOwnProperty(t)?t:e})}})(),ME={mouse:[`mousemove`,`mouseup`],pointer:[`pointermove`,`pointerup`]},NE=!1;function PE(e){var t=e.pointerType;return t===`pen`||t===`touch`}function FE(e){e.touching=!0,e.touchTimer!=null&&(clearTimeout(e.touchTimer),e.touchTimer=null),e.touchTimer=setTimeout(function(){e.touching=!1,e.touchTimer=null},700)}function IE(e){e&&(e.zrByTouch=!0)}function LE(e,t){return GT(e.dom,new zE(e,t),!0)}function RE(e,t){for(var n=t,r=!1;n&&n.nodeType!==9&&!(r=n.domBelongToZr||n!==t&&n===e.painterRoot);)n=n.parentNode;return r}var zE=function(){function e(e,t){this.stopPropagation=tt,this.stopImmediatePropagation=tt,this.preventDefault=tt,this.type=t.type,this.target=this.currentTarget=e.dom,this.pointerType=t.pointerType,this.clientX=t.clientX,this.clientY=t.clientY}return e}(),BE={mousedown:function(e){e=GT(this.dom,e),this.__mayPointerCapture=[e.zrX,e.zrY],this.trigger(`mousedown`,e)},mousemove:function(e){e=GT(this.dom,e);var t=this.__mayPointerCapture;t&&(e.zrX!==t[0]||e.zrY!==t[1])&&this.__togglePointerCapture(!0),this.trigger(`mousemove`,e)},mouseup:function(e){e=GT(this.dom,e),this.__togglePointerCapture(!1),this.trigger(`mouseup`,e)},mouseout:function(e){e=GT(this.dom,e);var t=e.toElement||e.relatedTarget;RE(this,t)||(this.__pointerCapturing&&(e.zrEventControl=`no_globalout`),this.trigger(`mouseout`,e))},wheel:function(e){NE=!0,e=GT(this.dom,e),this.trigger(`mousewheel`,e)},mousewheel:function(e){NE||(e=GT(this.dom,e),this.trigger(`mousewheel`,e))},touchstart:function(e){e=GT(this.dom,e),IE(e),this.__lastTouchMoment=new Date,this.handler.processGesture(e,`start`),BE.mousemove.call(this,e),BE.mousedown.call(this,e)},touchmove:function(e){e=GT(this.dom,e),IE(e),this.handler.processGesture(e,`change`),BE.mousemove.call(this,e)},touchend:function(e){e=GT(this.dom,e),IE(e),this.handler.processGesture(e,`end`),BE.mouseup.call(this,e),+new Date-this.__lastTouchMoment<kE&&BE.click.call(this,e)},pointerdown:function(e){BE.mousedown.call(this,e)},pointermove:function(e){PE(e)||BE.mousemove.call(this,e)},pointerup:function(e){BE.mouseup.call(this,e)},pointerout:function(e){PE(e)||BE.mouseout.call(this,e)}};z([`click`,`dblclick`,`contextmenu`],function(e){BE[e]=function(t){t=GT(this.dom,t),this.trigger(e,t)}});var VE={pointermove:function(e){PE(e)||VE.mousemove.call(this,e)},pointerup:function(e){VE.mouseup.call(this,e)},mousemove:function(e){this.trigger(`mousemove`,e)},mouseup:function(e){var t=this.__pointerCapturing;this.__togglePointerCapture(!1),this.trigger(`mouseup`,e),t&&(e.zrEventControl=`only_globalout`,this.trigger(`mouseout`,e))}};function HE(e,t){var n=t.domHandlers;Y.pointerEventsSupported?z(jE.pointer,function(r){WE(t,r,function(t){n[r].call(e,t)})}):(Y.touchEventsSupported&&z(jE.touch,function(r){WE(t,r,function(i){n[r].call(e,i),FE(t)})}),z(jE.mouse,function(r){WE(t,r,function(i){i=WT(i),t.touching||n[r].call(e,i)})}))}function UE(e,t){Y.pointerEventsSupported?z(ME.pointer,n):Y.touchEventsSupported||z(ME.mouse,n);function n(n){function r(r){r=WT(r),RE(e,r.target)||(r=LE(e,r),t.domHandlers[n].call(e,r))}WE(t,n,r,{capture:!0})}}function WE(e,t,n,r){e.mounted[t]=n,e.listenerOpts[t]=r,qT(e.domTarget,t,n,r)}function GE(e){var t=e.mounted;for(var n in t)t.hasOwnProperty(n)&&JT(e.domTarget,n,t[n],e.listenerOpts[n]);e.mounted={}}var KE=function(){function e(e,t){this.mounted={},this.listenerOpts={},this.touching=!1,this.domTarget=e,this.domHandlers=t}return e}(),qE=function(e){D(t,e);function t(t,n){var r=e.call(this)||this;return r.__pointerCapturing=!1,r.dom=t,r.painterRoot=n,r._localHandlerScope=new KE(t,BE),AE&&(r._globalHandlerScope=new KE(document,VE)),HE(r,r._localHandlerScope),r}return t.prototype.dispose=function(){GE(this._localHandlerScope),AE&&GE(this._globalHandlerScope)},t.prototype.setCursor=function(e){this.dom.style&&(this.dom.style.cursor=e||`default`)},t.prototype.__togglePointerCapture=function(e){if(this.__mayPointerCapture=null,AE&&+this.__pointerCapturing^e){this.__pointerCapturing=e;var t=this._globalHandlerScope;e?UE(this,t):GE(t)}},t}(ka),JE=e({dispose:()=>tD,disposeAll:()=>nD,getElementSSRData:()=>oD,getInstance:()=>rD,init:()=>eD,registerPainter:()=>iD,registerSSRDataGetter:()=>sD,version:()=>cD}),YE={},XE={};function ZE(e){delete XE[e]}function QE(e){if(!e)return!1;if(typeof e==`string`)return Fi(e,1)<Ma;if(e.colorStops){for(var t=e.colorStops,n=0,r=t.length,i=0;i<r;i++)n+=Fi(t[i].color,1);return n/=r,n<Ma}return!1}var $E=function(){function e(e,t,n){var r=this;this._sleepAfterStill=10,this._stillFrameAccum=0,this._needsRefresh=!0,this._needsRefreshHover=!1,this._darkMode=!1,n||={},this.dom=t,this.id=e;var i=new TE,a=n.renderer||`canvas`;YE[a]||(a=V(YE)[0]),n.useDirtyRect=n.useDirtyRect!=null&&n.useDirtyRect;var o=new YE[a](t,i,n,e),s=n.ssr||o.ssrOnly;this.storage=i,this.painter=o;var c=!Y.node&&!Y.worker&&!s?new qE(o.getViewportRoot(),o.root):null,l=n.useCoarsePointer,u=l==null||l===`auto`?Y.touchEventsSupported:!!l,d=44,f;u&&(f=q(n.pointerSize,d)),this.handler=new cE(i,o,c,o.root,f),this.animation=new OE({stage:{update:s?null:function(){return r._flush(!1)}}}),s||this.animation.start()}return e.prototype.add=function(e){!this._disposed&&e&&(this.storage.addRoot(e),e.addSelfToZr(this),this.refresh())},e.prototype.remove=function(e){!this._disposed&&e&&(this.storage.delRoot(e),e.removeSelfFromZr(this),this.refresh())},e.prototype.configLayer=function(e,t){this._disposed||(this.painter.configLayer&&this.painter.configLayer(e,t),this.refresh())},e.prototype.setBackgroundColor=function(e){this._disposed||(this.painter.setBackgroundColor&&this.painter.setBackgroundColor(e),this.refresh(),this._backgroundColor=e,this._darkMode=QE(e))},e.prototype.getBackgroundColor=function(){return this._backgroundColor},e.prototype.setDarkMode=function(e){this._darkMode=e},e.prototype.isDarkMode=function(){return this._darkMode},e.prototype.refreshImmediately=function(e){this._disposed||this._refresh({animUpdate:!e,refresh:!0,refreshHover:!1})},e.prototype._refresh=function(e){e.animUpdate&&this.animation.update(!0),this._needsRefresh=this._needsRefreshHover=!1,this.painter.refresh({refresh:e.refresh,refreshHover:e.refreshHover}),this._needsRefresh=this._needsRefreshHover=!1},e.prototype.refresh=function(){this._disposed||(this._needsRefresh=!0,this.animation.start())},e.prototype.flush=function(){this._disposed||this._flush(!0)},e.prototype._flush=function(e){var t,n=DE(),r=this._needsRefresh,i=this._needsRefreshHover;(r||i)&&(t=!0,this._refresh({animUpdate:e,refresh:r,refreshHover:i}));var a=DE();t?(this._stillFrameAccum=0,this.trigger(`rendered`,{elapsedTime:a-n})):this._sleepAfterStill>0&&(this._stillFrameAccum++,this._stillFrameAccum>this._sleepAfterStill&&this.animation.stop())},e.prototype.setSleepAfterStill=function(e){this._sleepAfterStill=e},e.prototype.wakeUp=function(){this._disposed||(this.animation.start(),this._stillFrameAccum=0)},e.prototype.refreshHover=function(){this._needsRefreshHover=!0},e.prototype.refreshHoverImmediately=function(){this._disposed||this._refresh({animUpdate:!1,refresh:!1,refreshHover:!0})},e.prototype.resize=function(e){this._disposed||(e||={},this.painter.resize(e.width,e.height),this.handler.resize())},e.prototype.clearAnimation=function(){this._disposed||this.animation.clear()},e.prototype.getWidth=function(){if(!this._disposed)return this.painter.getWidth()},e.prototype.getHeight=function(){if(!this._disposed)return this.painter.getHeight()},e.prototype.setCursorStyle=function(e){this._disposed||this.handler.setCursorStyle(e)},e.prototype.findHover=function(e,t){if(!this._disposed)return this.handler.findHover(e,t)},e.prototype.on=function(e,t,n){return this._disposed||this.handler.on(e,t,n),this},e.prototype.off=function(e,t){this._disposed||this.handler.off(e,t)},e.prototype.trigger=function(e,t){this._disposed||this.handler.trigger(e,t)},e.prototype.clear=function(){if(!this._disposed){for(var e=this.storage.getRoots(),t=0;t<e.length;t++)e[t]instanceof Fd&&e[t].removeSelfFromZr(this);this.storage.delAllRoots(),this.painter.clear()}},e.prototype.dispose=function(){this._disposed||(this.animation.stop(),this.clear(),this.storage.dispose(),this.painter.dispose(),this.handler.dispose(),this.animation=this.storage=this.painter=this.handler=null,this._disposed=!0,ZE(this.id))},e}();function eD(e,t){var n=new $E(ge(),e,t);return XE[n.id]=n,n}function tD(e){e.dispose()}function nD(){for(var e in XE)XE.hasOwnProperty(e)&&XE[e].dispose();XE={}}function rD(e){return XE[e]}function iD(e,t){YE[e]=t}var aD;function oD(e){if(typeof aD==`function`)return aD(e)}function sD(e){aD=e}var cD=`6.1.0`,lD=``;typeof navigator<`u`&&(lD=navigator.platform||``);var uD=`rgba(0, 0, 0, 0.2)`,dD=Z.color.theme[0],fD=Mi(dD,null,null,.9),pD={darkMode:`auto`,colorBy:`series`,color:Z.color.theme,gradientColor:[fD,dD],aria:{decal:{decals:[{color:uD,dashArrayX:[1,0],dashArrayY:[2,5],symbolSize:1,rotation:Math.PI/6},{color:uD,symbol:`circle`,dashArrayX:[[8,8],[0,8,8,0]],dashArrayY:[6,0],symbolSize:.8},{color:uD,dashArrayX:[1,0],dashArrayY:[4,3],rotation:-Math.PI/4},{color:uD,dashArrayX:[[6,6],[0,6,6,0]],dashArrayY:[6,0]},{color:uD,dashArrayX:[[1,0],[1,6]],dashArrayY:[1,0,6,0],rotation:Math.PI/4},{color:uD,symbol:`triangle`,dashArrayX:[[9,9],[0,9,9,0]],dashArrayY:[7,2],symbolSize:.75}]}},textStyle:{fontFamily:lD.match(/^Win/)?`Microsoft YaHei`:`sans-serif`,fontSize:12,fontStyle:`normal`,fontWeight:`normal`},blendMode:null,stateAnimation:{duration:300,easing:`cubicOut`},animation:`auto`,animationDuration:1e3,animationDurationUpdate:500,animationEasing:`cubicInOut`,animationEasingUpdate:`cubicInOut`,animationThreshold:2e3,progressiveThreshold:3e3,progressive:400,hoverLayerThreshold:3e3,useUTC:!1},mD=J();function hD(e,t){He(mD.get(e)==null&&t),mD.set(e,t)}function gD(e,t,n){var r=mD.get(t);if(!r)return n;var i=r(e);return i?n.concat(i):n}var _D,vD,yD,bD=`\0_ec_inner`,xD=1,SD=function(e){D(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.init=function(e,t,n,r,i,a){r||={},this.option=null,this._theme=new pm(r),this._locale=new pm(i),this._optionManager=a},t.prototype.setOption=function(e,t,n){var r=DD(t);this._optionManager.setOption(e,n,r),this._resetOption(null,r)},t.prototype.resetOption=function(e,t){return this._resetOption(e,DD(t))},t.prototype._resetOption=function(e,t){var n=!1,r=this._optionManager;if(!e||e===`recreate`){var i=r.mountOption(e===`recreate`);!this.option||e===`recreate`?yD(this,i):(this.restoreData(),this._mergeOption(i,t)),n=!0}if((e===`timeline`||e===`media`)&&this.restoreData(),!e||e===`recreate`||e===`timeline`){var a=r.getTimelineOption(this);a&&(n=!0,this._mergeOption(a,t))}if(!e||e===`recreate`||e===`media`){var o=r.getMediaOption(this);o.length&&z(o,function(e){n=!0,this._mergeOption(e,t)},this)}return n},t.prototype.mergeOption=function(e){this._mergeOption(e,null)},t.prototype._mergeOption=function(e,t){var n=this.option,r=this._componentsMap,i=this._componentsCount,a=[],o=J(),s=t&&t.replaceMergeMainTypeMap;ym(this),z(e,function(e,t){e!=null&&(cv.hasClass(t)?t&&(a.push(t),o.set(t,!0)):n[t]=n[t]==null?P(e):F(n[t],e,!0))}),s&&s.each(function(e,t){cv.hasClass(t)&&!o.get(t)&&(a.push(t),o.set(t,!0))}),cv.topologicalTravel(a,cv.getAllClassMainTypes(),c,this);function c(t){var a=gD(this,t,Kc(e[t])),o=r.get(t),c=Zc(o,a,o?s&&s.get(t)?`replaceMerge`:`normalMerge`:`replaceAll`);ul(c,t,cv),n[t]=null,r.set(t,null),i.set(t,0);var l=[],u=[],d=0,f;z(c,function(e,n){var r=e.existing,i=e.newOption;if(!i)r&&(r.mergeOption({},this),r.optionUpdated({},!1));else{var a=t===`series`,o=cv.getClass(t,e.keyInfo.subType,!a);if(!o)return;if(t===`tooltip`){if(f)return;f=!0}if(r&&r.constructor===o)r.name=e.keyInfo.name,r.mergeOption(i,this),r.optionUpdated(i,!1);else{var s=I({componentIndex:n},e.keyInfo);r=new o(i,this,this,s),I(r,s),e.brandNew&&(r.__requireNewView=!0),r.init(i,this,this),r.optionUpdated(null,!0)}}r?(l.push(r.option),u.push(r),d++):(l.push(void 0),u.push(void 0))},this),n[t]=l,r.set(t,u),i.set(t,d),t===`series`&&_D(this)}this._seriesIndices||_D(this)},t.prototype.getOption=function(){var e=P(this.option);return z(e,function(t,n){if(cv.hasClass(n)){for(var r=Kc(t),i=r.length,a=!1,o=i-1;o>=0;o--)r[o]&&!cl(r[o])?a=!0:(r[o]=null,!a&&i--);r.length=i,e[n]=r}}),delete e[bD],e},t.prototype.setTheme=function(e){this._theme=new pm(e),this._resetOption(`recreate`,null)},t.prototype.getTheme=function(){return this._theme},t.prototype.getLocaleModel=function(){return this._locale},t.prototype.setUpdatePayload=function(e){this._payload=e},t.prototype.getUpdatePayload=function(){return this._payload},t.prototype.getComponent=function(e,t){var n=this._componentsMap.get(e);if(n){var r=n[t||0];if(r)return r;if(t==null){for(var i=0;i<n.length;i++)if(n[i])return n[i]}}},t.prototype.queryComponents=function(e){var t=e.mainType;if(!t)return[];var n=e.index,r=e.id,i=e.name,a=this._componentsMap.get(t);if(!a||!a.length)return[];var o;return n==null?o=r==null?i==null?Te(a,function(e){return!!e}):TD(`name`,i,a):TD(`id`,r,a):(o=[],z(Kc(n),function(e){a[e]&&o.push(a[e])})),ED(o,e)},t.prototype.findComponents=function(e){var t=e.query,n=e.mainType,r=i(t);return a(ED(r?this.queryComponents(r):Te(this._componentsMap.get(n),function(e){return!!e}),e));function i(e){var t=n+`Index`,r=n+`Id`,i=n+`Name`;return e&&(e[t]!=null||e[r]!=null||e[i]!=null)?{mainType:n,index:e[t],id:e[r],name:e[i]}:null}function a(t){return e.filter?Te(t,e.filter):t}},t.prototype.eachComponent=function(e,t,n){var r=this._componentsMap;if(W(e)){var i=t,a=e;r.each(function(e,t){for(var n=0;e&&n<e.length;n++){var r=e[n];r&&a.call(i,t,r,r.componentIndex)}})}else for(var o=G(e)?r.get(e):K(e)?this.findComponents(e):null,s=0;o&&s<o.length;s++){var c=o[s];c&&t.call(n,c,c.componentIndex)}},t.prototype.getSeriesByName=function(e){var t=ol(e,null);return Te(this._componentsMap.get(`series`),function(e){return!!e&&t!=null&&e.name===t})},t.prototype.getSeriesByIndex=function(e){return this._componentsMap.get(`series`)[e]},t.prototype.getSeriesByType=function(e){return Te(this._componentsMap.get(`series`),function(t){return!!t&&t.subType===e})},t.prototype.getSeries=function(){return Te(this._componentsMap.get(`series`),function(e){return!!e})},t.prototype.getSeriesCount=function(){return this._componentsCount.get(`series`)},t.prototype.eachSeries=function(e,t){vD(this),z(this._seriesIndices,function(n){var r=this._componentsMap.get(`series`)[n];e.call(t,r,n)},this)},t.prototype.eachRawSeries=function(e,t){z(this._componentsMap.get(`series`),function(n){n&&e.call(t,n,n.componentIndex)})},t.prototype.eachSeriesByType=function(e,t,n){vD(this),z(this._seriesIndices,function(r){var i=this._componentsMap.get(`series`)[r];i.subType===e&&t.call(n,i,r)},this)},t.prototype.eachRawSeriesByType=function(e,t,n){return z(this.getSeriesByType(e),t,n)},t.prototype.isSeriesFiltered=function(e){return vD(this),this._seriesIndicesMap.get(e.componentIndex)==null},t.prototype.getCurrentSeriesIndices=function(){return(this._seriesIndices||[]).slice()},t.prototype.filterSeries=function(e,t){vD(this);var n=[];z(this._seriesIndices,function(r){var i=this._componentsMap.get(`series`)[r];e.call(t,i,r)&&n.push(r)},this),this._seriesIndices=n,this._seriesIndicesMap=J(n)},t.prototype.restoreData=function(e){_D(this);var t=this._componentsMap,n=[];t.each(function(e,t){cv.hasClass(t)&&n.push(t)}),cv.topologicalTravel(n,cv.getAllClassMainTypes(),function(n){z(t.get(n),function(t){t&&(n!==`series`||!CD(t,e))&&t.restoreData()})})},t.internalField=function(){_D=function(e){var t=e._seriesIndices=[];z(e._componentsMap.get(`series`),function(e){e&&t.push(e.componentIndex)}),e._seriesIndicesMap=J(t)},vD=function(e){},yD=function(e,t){e.option={},e.option[bD]=xD,e._componentsMap=J({series:[]}),e._componentsCount=J();var n=t.aria;K(n)&&n.enabled==null&&(n.enabled=!0),wD(t,e._theme.option),F(t,pD,!1),e._mergeOption(t,null)}}(),t}(pm);function CD(e,t){if(t){var n=t.seriesIndex,r=t.seriesId,i=t.seriesName;return n!=null&&e.componentIndex!==n||r!=null&&e.id!==r||i!=null&&e.name!==i}}function wD(e,t){var n=e.color&&!e.colorLayer;z(t,function(t,r){r===`colorLayer`&&n||r===`color`&&e.color||cv.hasClass(r)||(typeof t==`object`?e[r]=e[r]?F(e[r],t,!1):P(t):e[r]??(e[r]=t))})}function TD(e,t,n){if(U(t)){var r=J();return z(t,function(e){e!=null&&ol(e,null)!=null&&r.set(e,!0)}),Te(n,function(t){return t&&r.get(t[e])})}var i=ol(t,null);return Te(n,function(t){return t&&i!=null&&t[e]===i})}function ED(e,t){return t.hasOwnProperty(`subType`)?Te(e,function(e){return e&&e.subType===t.subType}):e}function DD(e){var t=J();return e&&z(Kc(e.replaceMerge),function(e){t.set(e,!0)}),{replaceMergeMainTypeMap:t}}Se(SD,fv);var OD=/^(min|max)?(.+)$/,kD=function(){function e(e){this._timelineOptions=[],this._mediaList=[],this._currentMediaIndices=[],this._api=e}return e.prototype.setOption=function(e,t,n){e&&(z(Kc(e.series),function(e){e&&e.data&&Me(e.data)&&Ge(e.data)}),z(Kc(e.dataset),function(e){e&&e.source&&Me(e.source)&&Ge(e.source)})),e=P(e);var r=this._optionBackup,i=AD(e,t,!r);this._newBaseOption=i.baseOption,r?(i.timelineOptions.length&&(r.timelineOptions=i.timelineOptions),i.mediaList.length&&(r.mediaList=i.mediaList),i.mediaDefault&&(r.mediaDefault=i.mediaDefault)):this._optionBackup=i},e.prototype.mountOption=function(e){var t=this._optionBackup;return this._timelineOptions=t.timelineOptions,this._mediaList=t.mediaList,this._mediaDefault=t.mediaDefault,this._currentMediaIndices=[],P(e?t.baseOption:this._newBaseOption)},e.prototype.getTimelineOption=function(e){var t,n=this._timelineOptions;if(n.length){var r=e.getComponent(`timeline`);r&&(t=P(n[r.getCurrentIndex()]))}return t},e.prototype.getMediaOption=function(e){var t=this._api.getWidth(),n=this._api.getHeight(),r=this._mediaList,i=this._mediaDefault,a=[],o=[];if(!r.length&&!i)return o;for(var s=0,c=r.length;s<c;s++)jD(r[s].query,t,n)&&a.push(s);return!a.length&&i&&(a=[-1]),a.length&&!ND(a,this._currentMediaIndices)&&(o=B(a,function(e){return P(e===-1?i.option:r[e].option)})),this._currentMediaIndices=a,o},e}();function AD(e,t,n){var r=[],i,a,o=e.baseOption,s=e.timeline,c=e.options,l=e.media,u=!!e.media,d=!!(c||s||o&&o.timeline);o?(a=o,a.timeline||(a.timeline=s)):((d||u)&&(e.options=e.media=null),a=e),u&&U(l)&&z(l,function(e){e&&e.option&&(e.query?r.push(e):i||=e)}),f(a),z(c,function(e){return f(e)}),z(r,function(e){return f(e.option)});function f(e){z(t,function(t){t(e,n)})}return{baseOption:a,timelineOptions:c||[],mediaDefault:i,mediaList:r}}function jD(e,t,n){var r={width:t,height:n,aspectratio:t/n},i=!0;return z(e,function(e,t){var n=t.match(OD);if(n&&n[1]&&n[2]){var a=n[1];MD(r[n[2].toLowerCase()],e,a)||(i=!1)}}),i}function MD(e,t,n){return n===`min`?e>=t:n===`max`?e<=t:e===t}function ND(e,t){return e.join(`,`)===t.join(`,`)}var PD=z,FD=K,ID=[`areaStyle`,`lineStyle`,`nodeStyle`,`linkStyle`,`chordStyle`,`label`,`labelLine`];function LD(e){var t=e&&e.itemStyle;if(t)for(var n=0,r=ID.length;n<r;n++){var i=ID[n],a=t.normal,o=t.emphasis;a&&a[i]&&(e[i]=e[i]||{},e[i].normal?F(e[i].normal,a[i]):e[i].normal=a[i],a[i]=null),o&&o[i]&&(e[i]=e[i]||{},e[i].emphasis?F(e[i].emphasis,o[i]):e[i].emphasis=o[i],o[i]=null)}}function RD(e,t,n){if(e&&e[t]&&(e[t].normal||e[t].emphasis)){var r=e[t].normal,i=e[t].emphasis;r&&(n?(e[t].normal=e[t].emphasis=null,L(e[t],r)):e[t]=r),i&&(e.emphasis=e.emphasis||{},e.emphasis[t]=i,i.focus&&(e.emphasis.focus=i.focus),i.blurScope&&(e.emphasis.blurScope=i.blurScope))}}function zD(e){RD(e,`itemStyle`),RD(e,`lineStyle`),RD(e,`areaStyle`),RD(e,`label`),RD(e,`labelLine`),RD(e,`upperLabel`),RD(e,`edgeLabel`)}function BD(e,t){var n=FD(e)&&e[t],r=FD(n)&&n.textStyle;if(r)for(var i=0,a=Jc.length;i<a;i++){var o=Jc[i];r.hasOwnProperty(o)&&(n[o]=r[o])}}function VD(e){e&&(zD(e),BD(e,`label`),e.emphasis&&BD(e.emphasis,`label`))}function HD(e){if(FD(e)){LD(e),zD(e),BD(e,`label`),BD(e,`upperLabel`),BD(e,`edgeLabel`),e.emphasis&&(BD(e.emphasis,`label`),BD(e.emphasis,`upperLabel`),BD(e.emphasis,`edgeLabel`));var t=e.markPoint;t&&(LD(t),VD(t));var n=e.markLine;n&&(LD(n),VD(n));var r=e.markArea;r&&VD(r);var i=e.data;if(e.type===`graph`){i||=e.nodes;var a=e.links||e.edges;if(a&&!Me(a))for(var o=0;o<a.length;o++)VD(a[o]);z(e.categories,function(e){zD(e)})}if(i&&!Me(i))for(var o=0;o<i.length;o++)VD(i[o]);if(t=e.markPoint,t&&t.data)for(var s=t.data,o=0;o<s.length;o++)VD(s[o]);if(n=e.markLine,n&&n.data)for(var c=n.data,o=0;o<c.length;o++)U(c[o])?(VD(c[o][0]),VD(c[o][1])):VD(c[o]);e.type===`gauge`?(BD(e,`axisLabel`),BD(e,`title`),BD(e,`detail`)):e.type===`treemap`?(RD(e.breadcrumb,`itemStyle`),z(e.levels,function(e){zD(e)})):e.type===`tree`&&zD(e.leaves)}}function UD(e){return U(e)?e:e?[e]:[]}function WD(e){return(U(e)?e[0]:e)||{}}function GD(e,t){PD(UD(e.series),function(e){FD(e)&&HD(e)});var n=[`xAxis`,`yAxis`,`radiusAxis`,`angleAxis`,`singleAxis`,`parallelAxis`,`radar`];t&&n.push(`valueAxis`,`categoryAxis`,`logAxis`,`timeAxis`),PD(n,function(t){PD(UD(e[t]),function(e){e&&(BD(e,`axisLabel`),BD(e.axisPointer,`label`))})}),PD(UD(e.parallel),function(e){var t=e&&e.parallelAxisDefault;BD(t,`axisLabel`),BD(t&&t.axisPointer,`label`)}),PD(UD(e.calendar),function(e){RD(e,`itemStyle`),BD(e,`dayLabel`),BD(e,`monthLabel`),BD(e,`yearLabel`)}),PD(UD(e.radar),function(e){BD(e,`name`),e.name&&e.axisName==null&&(e.axisName=e.name,delete e.name),e.nameGap!=null&&e.axisNameGap==null&&(e.axisNameGap=e.nameGap,delete e.nameGap)}),PD(UD(e.geo),function(e){FD(e)&&(VD(e),PD(UD(e.regions),function(e){VD(e)}))}),PD(UD(e.timeline),function(e){VD(e),RD(e,`label`),RD(e,`itemStyle`),RD(e,`controlStyle`,!0);var t=e.data;U(t)&&z(t,function(e){K(e)&&(RD(e,`label`),RD(e,`itemStyle`))})}),PD(UD(e.toolbox),function(e){RD(e,`iconStyle`),PD(e.feature,function(e){RD(e,`iconStyle`)})}),BD(WD(e.axisPointer),`label`),BD(WD(e.tooltip).axisPointer,`label`)}function KD(e,t){for(var n=t.split(`,`),r=e,i=0;i<n.length&&(r&&=r[n[i]],r!=null);i++);return r}function qD(e,t,n,r){for(var i=t.split(`,`),a=e,o,s=0;s<i.length-1;s++)o=i[s],a[o]??(a[o]={}),a=a[o];(r||a[i[s]]==null)&&(a[i[s]]=n)}function JD(e){e&&z(YD,function(t){t[0]in e&&!(t[1]in e)&&(e[t[1]]=e[t[0]])})}var YD=[[`x`,`left`],[`y`,`top`],[`x2`,`right`],[`y2`,`bottom`]],XD=[`grid`,`geo`,`parallel`,`legend`,`toolbox`,`title`,`visualMap`,`dataZoom`,`timeline`],ZD=[[`borderRadius`,`barBorderRadius`],[`borderColor`,`barBorderColor`],[`borderWidth`,`barBorderWidth`]];function QD(e){var t=e&&e.itemStyle;if(t)for(var n=0;n<ZD.length;n++){var r=ZD[n][1],i=ZD[n][0];t[r]!=null&&(t[i]=t[r])}}function $D(e){e&&e.alignTo===`edge`&&e.margin!=null&&e.edgeDistance==null&&(e.edgeDistance=e.margin)}function eO(e){e&&e.downplay&&!e.blur&&(e.blur=e.downplay)}function tO(e){e&&e.focusNodeAdjacency!=null&&(e.emphasis=e.emphasis||{},e.emphasis.focus??(e.emphasis.focus=`adjacency`))}function nO(e,t){if(e)for(var n=0;n<e.length;n++)t(e[n]),e[n]&&nO(e[n].children,t)}function rO(e,t){GD(e,t),e.series=Kc(e.series),z(e.series,function(e){if(K(e)){var t=e.type;if(t===`line`)e.clipOverflow!=null&&(e.clip=e.clipOverflow);else if(t===`pie`||t===`gauge`){e.clockWise!=null&&(e.clockwise=e.clockWise),$D(e.label);var n=e.data;if(n&&!Me(n))for(var r=0;r<n.length;r++)$D(n[r]);e.hoverOffset!=null&&(e.emphasis=e.emphasis||{},(e.emphasis.scaleSize=null)&&(e.emphasis.scaleSize=e.hoverOffset))}else if(t===`gauge`){var i=KD(e,`pointer.color`);i!=null&&qD(e,`itemStyle.color`,i)}else if(t===`bar`){QD(e),QD(e.backgroundStyle),QD(e.emphasis);var n=e.data;if(n&&!Me(n))for(var r=0;r<n.length;r++)typeof n[r]==`object`&&(QD(n[r]),QD(n[r]&&n[r].emphasis))}else if(t===`sunburst`){var a=e.highlightPolicy;a&&(e.emphasis=e.emphasis||{},e.emphasis.focus||(e.emphasis.focus=a)),eO(e),nO(e.data,eO)}else t===`graph`||t===`sankey`?tO(e):t===`map`&&(e.mapType&&!e.map&&(e.map=e.mapType),e.mapLocation&&L(e,e.mapLocation));e.hoverAnimation!=null&&(e.emphasis=e.emphasis||{},e.emphasis&&e.emphasis.scale==null&&(e.emphasis.scale=e.hoverAnimation)),JD(e)}}),e.dataRange&&(e.visualMap=e.dataRange),z(XD,function(t){var n=e[t];n&&(U(n)||(n=[n]),z(n,function(e){JD(e)}))})}var iO=Ul(aO);function aO(e){var t=J();e.eachSeries(function(e){var n=e.get(`stack`);if(n){var r=t.get(n)||t.set(n,[]),i=e.getData(),a={stackResultDimension:i.getCalculationInfo(`stackResultDimension`),stackedOverDimension:i.getCalculationInfo(`stackedOverDimension`),stackedDimension:i.getCalculationInfo(`stackedDimension`),stackedByDimension:i.getCalculationInfo(`stackedByDimension`),isStackedByIndex:i.getCalculationInfo(`isStackedByIndex`),data:i,seriesModel:e};if(!a.stackedDimension||!(a.isStackedByIndex||a.stackedByDimension))return;r.push(a)}}),t.each(function(e){e.length!==0&&((e[0].seriesModel.get(`stackOrder`)||`seriesAsc`)===`seriesDesc`&&e.reverse(),z(e,function(t,n){t.data.setCalculationInfo(`stackedOnSeries`,n>0?e[n-1].seriesModel:null)}),oO(e))})}function oO(e){z(e,function(t,n){var r=[],i=[NaN,NaN],a=[t.stackResultDimension,t.stackedOverDimension],o=t.data,s=t.isStackedByIndex,c=t.seriesModel.get(`stackStrategy`)||`samesign`;o.modify(a,function(a,l,u){var d=o.get(t.stackedDimension,u);if(isNaN(d))return i;var f,p;s?p=o.getRawIndex(u):f=o.get(t.stackedByDimension,u);for(var m=NaN,h=n-1;h>=0;h--){var g=e[h];if(s||(p=g.data.rawIndexOf(g.stackedByDimension,f)),p>=0){var _=g.data.getByRawIndex(g.stackResultDimension,p);if(c===`all`||c===`positive`&&_>0||c===`negative`&&_<0||c===`samesign`&&d>=0&&_>0||c===`samesign`&&d<=0&&_<0){d=bc(d,_),m=_;break}}}return r[0]=d,r[1]=m,r})})}var sO=function(){function e(){this.group=new Fd,this.uid=_g(`viewComponent`)}return e.prototype.init=function(e,t){},e.prototype.render=function(e,t,n,r){},e.prototype.dispose=function(e,t){},e.prototype.updateView=function(e,t,n,r){},e.prototype.updateLayout=function(e,t,n,r){},e.prototype.updateVisual=function(e,t,n,r){},e.prototype.toggleBlurSeries=function(e,t,n){},e.prototype.eachRendered=function(e){var t=this.group;t&&t.traverse(e)},e}();ft(sO),yt(sO);var cO=ml(),lO={itemStyle:bt(um,!0),lineStyle:bt(sm,!0)},uO={lineStyle:`stroke`,itemStyle:`fill`};function dO(e,t){return e.visualStyleMapper||lO[t]||(console.warn(`Unknown style type '`+t+`'.`),lO.itemStyle)}function fO(e,t){return e.visualDrawType||uO[t]||(console.warn(`Unknown style type '`+t+`'.`),`fill`)}var pO={createOnAllSeries:!0,performRawSeries:!0,reset:function(e,t){var n=e.getData(),r=e.visualStyleAccessPath||`itemStyle`,i=e.getModel(r),a=dO(e,r)(i),o=i.getShallow(`decal`);o&&(n.setVisual(`decal`,o),o.dirty=!0);var s=fO(e,r),c=a[s],l=W(c)?c:null,u=a.fill===`auto`||a.stroke===`auto`;if(!a[s]||l||u){var d=e.getColorFromPalette(e.name,null,t.getSeriesCount());a[s]||(a[s]=d,n.setVisual(`colorFromPalette`,!0)),a.fill=a.fill===`auto`||W(a.fill)?d:a.fill,a.stroke=a.stroke===`auto`||W(a.stroke)?d:a.stroke}if(n.setVisual(`style`,a),n.setVisual(`drawType`,s),!t.isSeriesFiltered(e)&&l)return n.setVisual(`colorFromPalette`,!1),{dataEach:function(t,n){var r=e.getDataParams(n),i=I({},a);i[s]=l(r),t.setItemVisual(n,`style`,i)}}}},mO=new pm,hO={createOnAllSeries:!0,reset:function(e,t){if(!e.ignoreStyleOnData){var n=e.getData(),r=e.visualStyleAccessPath||`itemStyle`,i=dO(e,r),a=n.getVisual(`drawType`);return{dataEach:n.hasItemOption?function(e,t){var n=e.getRawDataItem(t);if(n&&n[r]){mO.option=n[r];var o=i(mO);I(e.ensureUniqueItemVisual(t,`style`),o),mO.option.decal&&(e.setItemVisual(t,`decal`,mO.option.decal),mO.option.decal.dirty=!0),a in o&&e.setItemVisual(t,`colorFromPalette`,!1)}}:null}}}},gO={performRawSeries:!0,overallReset:function(e){var t=J();e.eachSeries(function(e){if(!e.isColorBySeries()){var n=e.type+`-`+e.getColorBy();cO(e).scope=t.get(n)||t.set(n,{})}}),e.eachSeries(function(e){if(!e.isColorBySeries()){var t=e.getRawData(),n={},r=e.getData(),i=cO(e).scope,a=fO(e,e.visualStyleAccessPath||`itemStyle`);r.each(function(e){var t=r.getRawIndex(e);n[t]=e}),t.each(function(o){var s=n[o];if(r.getItemVisual(s,`colorFromPalette`)){var c=r.ensureUniqueItemVisual(s,`style`),l=t.getName(o)||o+``,u=t.count();c[a]=e.getColorFromPalette(l,i,u)}})}})}},_O=Math.PI;function vO(e,t){t||={},L(t,{text:`loading`,textColor:Z.color.primary,fontSize:12,fontWeight:`normal`,fontStyle:`normal`,fontFamily:`sans-serif`,maskColor:`rgba(255,255,255,0.8)`,showSpinner:!0,color:Z.color.theme[0],spinnerRadius:10,lineWidth:5,zlevel:0});var n=new Fd,r=new Es({style:{fill:t.maskColor},zlevel:t.zlevel,z:1e4});n.add(r);var i=new js({style:{text:t.text,fill:t.textColor,fontSize:t.fontSize,fontWeight:t.fontWeight,fontStyle:t.fontStyle,fontFamily:t.fontFamily},zlevel:t.zlevel,z:10001}),a=new Es({style:{fill:`none`},textContent:i,textConfig:{position:`right`,distance:10},zlevel:t.zlevel,z:10001});n.add(a);var o;return t.showSpinner&&(o=new bf({shape:{startAngle:-_O/2,endAngle:-_O/2+.1,r:t.spinnerRadius},style:{stroke:t.color,lineCap:`round`,lineWidth:t.lineWidth},zlevel:t.zlevel,z:10001}),o.animateShape(!0).when(1e3,{endAngle:_O*3/2}).start(`circularInOut`),o.animateShape(!0).when(1e3,{startAngle:_O*3/2}).delay(300).start(`circularInOut`),n.add(o)),n.resize=function(){var n=i.getBoundingRect().width,s=t.showSpinner?t.spinnerRadius:0,c=(e.getWidth()-s*2-(t.showSpinner&&n?10:0)-n)/2-(t.showSpinner&&n?0:5+n/2)+(t.showSpinner?0:n/2)+(n?0:s),l=e.getHeight()/2;t.showSpinner&&o.setShape({cx:c,cy:l}),a.setShape({x:c-s,y:l-s,width:s*2,height:s*2}),r.setShape({x:0,y:0,width:e.getWidth(),height:e.getHeight()})},n.resize(),n}var yO=function(){function e(e,t,n,r){this._stageTaskMap=J(),this.ecInstance=e,this.api=t,n=this._dataProcessorHandlers=n.slice(),r=this._visualHandlers=r.slice(),this._allHandlers=n.concat(r)}return e.prototype.restoreData=function(e,t){e.restoreData(t),this._stageTaskMap.each(function(e){var t=e.overallTask;t&&t.dirty()})},e.prototype.getPerformArgs=function(e,t){if(e.__pipeline){var n=this._pipelineMap.get(e.__pipeline.id),r=n.context,i=!t&&n.progressiveEnabled&&(!r||r.progressiveRender)&&e.__idxInPipeline>n.blockIndex?n.step:null,a=r&&r.modDataCount;return{step:i,modBy:a==null?null:Math.ceil(a/i),modDataCount:a}}},e.prototype.getPipeline=function(e){return this._pipelineMap.get(e)},e.prototype.updateStreamModes=function(e,t){var n=this._pipelineMap.get(e.uid);e.pipelineContext=n.context=e.__preparePipelineContext?e.__preparePipelineContext(t,n):Vl(e,t,n)},e.prototype.restorePipelines=function(e,t){var n=this,r=n._pipelineMap=J();t.eachSeries(function(t){var i=e.painter.type===`canvas`&&t.getProgressive(),a=t.uid;r.set(a,{id:a,head:null,tail:null,threshold:t.getProgressiveThreshold(),progressiveEnabled:i&&!(t.preventIncremental&&t.preventIncremental()),blockIndex:-1,step:Math.round(i||700),count:0}),n._pipe(t,t.dataTask)})},e.prototype.prepareStageTasks=function(){var e=this._stageTaskMap,t=this.api.getModel(),n=this.api;z(this._allHandlers,function(r){var i=e.get(r.uid)||e.set(r.uid,{});He(!(r.reset&&r.overallReset),``),r.reset&&this._createSeriesStageTask(r,i,t,n),r.overallReset&&this._createOverallStageTask(r,i,t,n)},this)},e.prototype.prepareView=function(e,t,n,r){var i=e.renderTask,a=i.context;a.model=t,a.ecModel=n,a.api=r,i.__block=!e.incrementalPrepareRender,this._pipe(t,i)},e.prototype.performDataProcessorTasks=function(e,t){this._performStageTasks(this._dataProcessorHandlers,e,t,{block:!0})},e.prototype.performVisualTasks=function(e,t,n){this._performStageTasks(this._visualHandlers,e,t,n)},e.prototype._performStageTasks=function(e,t,n,r){r||={};var i=!1,a=this;z(e,function(e,s){if(!(r.visualType&&r.visualType!==e.visualType)){var c=a._stageTaskMap.get(e.uid),l=c.seriesTaskMap,u=c.overallTask;if(u){var d,f=u.agentStubMap;f.each(function(e){o(r,e)&&(e.dirty(),d=!0)}),d&&u.dirty(),a.updatePayload(u,n);var p=a.getPerformArgs(u,r.block);f.each(function(e){e.perform(p)}),u.perform(p)&&(i=!0)}else l&&l.each(function(s,c){o(r,s)&&s.dirty();var l=a.getPerformArgs(s,r.block);l.skip=!e.performRawSeries&&t.isSeriesFiltered(s.context.model),a.updatePayload(s,n),s.perform(l)&&(i=!0)})}});function o(e,t){return e.setDirty&&(!e.dirtyMap||e.dirtyMap.get(t.__pipeline.id))}this.unfinished=i||this.unfinished},e.prototype.performSeriesTasks=function(e){var t;e.eachSeries(function(e){t=e.dataTask.perform()||t}),this.unfinished=t||this.unfinished},e.prototype.plan=function(){this._pipelineMap.each(function(e){var t=e.tail;do{if(t.__block){e.blockIndex=t.__idxInPipeline;break}t=t.getUpstream()}while(t)})},e.prototype.updatePayload=function(e,t){t!==`remain`&&(e.context.payload=t)},e.prototype._createSeriesStageTask=function(e,t,n,r){var i=this,a=t.seriesTaskMap,o=t.seriesTaskMap=J(),s=e.seriesType,c=e.getTargetSeries;e.createOnAllSeries?n.eachRawSeries(l):s?n.eachRawSeriesByType(s,l):c&&c(n,r).each(l);function l(t){var s=t.uid,c=o.set(s,a&&a.get(s)||bv({plan:wO,reset:TO,count:OO}));c.context={model:t,ecModel:n,api:r,useClearVisual:e.isVisual&&!e.isLayout,plan:e.plan,reset:e.reset,scheduler:i},i._pipe(t,c)}},e.prototype._createOverallStageTask=function(e,t,n,r){var i=this,a=t.overallTask=t.overallTask||bv({reset:bO});a.context={ecModel:n,api:r,overallReset:e.overallReset,scheduler:i};var o=a.agentStubMap,s=a.agentStubMap=J(),c=e.seriesType,l=e.getTargetSeries,u=e.dirtyOnOverallProgress,d=!1;He(!e.createOnAllSeries,``),c?n.eachRawSeriesByType(c,f):l?l(n,r).each(f):z(n.getSeries(),f);function f(e){var t=e.uid,n=s.set(t,o&&o.get(t)||(d=!0,bv({reset:xO,onDirty:CO})));n.context={model:e,dirtyOnOverallProgress:u},n.agent=a,n.__block=u,i._pipe(e,n)}d&&a.dirty()},e.prototype._pipe=function(e,t){var n=e.uid,r=this._pipelineMap.get(n);!r.head&&(r.head=t),r.tail&&r.tail.pipe(t),r.tail=t,t.__idxInPipeline=r.count++,t.__pipeline=r},e.wrapStageHandler=function(e,t){return W(e)&&(e={overallReset:e,seriesType:kO(e)}),e.uid=_g(`stageHandler`),t&&(e.visualType=t),e},e}();function bO(e){e.overallReset(e.ecModel,e.api,e.payload)}function xO(e){return e.dirtyOnOverallProgress&&SO}function SO(){this.agent.dirty(),this.getDownstream().dirty()}function CO(){this.agent&&this.agent.dirty()}function wO(e){return e.plan?e.plan(e.model,e.ecModel,e.api,e.payload):null}function TO(e){e.useClearVisual&&e.data.clearAllVisual();var t=e.resetDefines=Kc(e.reset(e.model,e.ecModel,e.api,e.payload));return t.length>1?B(t,function(e,t){return DO(t)}):EO}var EO=DO(0);function DO(e){return function(t,n){var r=n.data,i=n.resetDefines[e];if(i&&i.dataEach)for(var a=t.start;a<t.end;a++)i.dataEach(r,a);else i&&i.progress&&i.progress(t,r)}}function OO(e){return e.data.count()}function kO(e){MO=null;try{e(AO,jO)}catch{}return MO}var AO={},jO={},MO;NO(AO,SD),NO(jO,ru),AO.eachSeriesByType=AO.eachRawSeriesByType=function(e){MO=e},AO.eachComponent=function(e){e.mainType===`series`&&e.subType&&(MO=e.subType)};function NO(e,t){for(var n in t.prototype)e[n]=tt}var Q=Z.darkColor,PO=Q.background,FO=function(){return{axisLine:{lineStyle:{color:Q.axisLine}},splitLine:{lineStyle:{color:Q.axisSplitLine}},splitArea:{areaStyle:{color:[Q.backgroundTint,Q.backgroundTransparent]}},minorSplitLine:{lineStyle:{color:Q.axisMinorSplitLine}},axisLabel:{color:Q.axisLabel},axisName:{}}},IO={label:{color:Q.secondary},itemStyle:{borderColor:Q.borderTint},dividerLineStyle:{color:Q.border}},LO={darkMode:!0,color:Q.theme,backgroundColor:PO,axisPointer:{lineStyle:{color:Q.border},crossStyle:{color:Q.borderShade},label:{color:Q.tertiary}},legend:{textStyle:{color:Q.secondary},pageTextStyle:{color:Q.tertiary}},textStyle:{color:Q.secondary},title:{textStyle:{color:Q.primary},subtextStyle:{color:Q.quaternary}},toolbox:{iconStyle:{borderColor:Q.accent50},feature:{dataView:{backgroundColor:PO,textColor:Q.primary,textareaColor:Q.background,textareaBorderColor:Q.border,buttonColor:Q.accent50,buttonTextColor:Q.neutral00}}},tooltip:{backgroundColor:Q.neutral20,defaultBorderColor:Q.border,textStyle:{color:Q.tertiary}},dataZoom:{borderColor:Q.accent10,textStyle:{color:Q.tertiary},brushStyle:{color:Q.backgroundTint},handleStyle:{color:Q.neutral00,borderColor:Q.accent20},moveHandleStyle:{color:Q.accent40},emphasis:{handleStyle:{borderColor:Q.accent50}},dataBackground:{lineStyle:{color:Q.accent30},areaStyle:{color:Q.accent20}},selectedDataBackground:{lineStyle:{color:Q.accent50},areaStyle:{color:Q.accent30}}},visualMap:{textStyle:{color:Q.secondary},handleStyle:{borderColor:Q.neutral30}},timeline:{lineStyle:{color:Q.accent10},label:{color:Q.tertiary},controlStyle:{color:Q.accent30,borderColor:Q.accent30}},calendar:{itemStyle:{color:Q.neutral00,borderColor:Q.neutral20},dayLabel:{color:Q.tertiary},monthLabel:{color:Q.secondary},yearLabel:{color:Q.secondary}},matrix:{x:IO,y:IO,backgroundColor:{borderColor:Q.axisLine},body:{itemStyle:{borderColor:Q.borderTint}}},timeAxis:FO(),logAxis:FO(),valueAxis:FO(),categoryAxis:FO(),line:{symbol:`circle`},graph:{color:Q.theme},gauge:{title:{color:Q.secondary},axisLine:{lineStyle:{color:[[1,Q.neutral05]]}},axisLabel:{color:Q.axisLabel},detail:{color:Q.primary}},candlestick:{itemStyle:{color:`#f64e56`,color0:`#54ea92`,borderColor:`#f64e56`,borderColor0:`#54ea92`}},funnel:{itemStyle:{borderColor:Q.background}},radar:function(){var e=FO();return e.axisName={color:Q.axisLabel},e.axisLine.lineStyle.color=Q.neutral20,e}(),treemap:{breadcrumb:{itemStyle:{color:Q.neutral20,textStyle:{color:Q.secondary}},emphasis:{itemStyle:{color:Q.neutral30}}}},sunburst:{itemStyle:{borderColor:Q.background}},map:{itemStyle:{borderColor:Q.border,areaColor:Q.neutral10},label:{color:Q.tertiary},emphasis:{label:{color:Q.primary},itemStyle:{areaColor:Q.highlight}},select:{label:{color:Q.primary},itemStyle:{areaColor:Q.highlight}}},geo:{itemStyle:{borderColor:Q.border,areaColor:Q.neutral10},emphasis:{label:{color:Q.primary},itemStyle:{areaColor:Q.highlight}},select:{label:{color:Q.primary},itemStyle:{color:Q.highlight}}}};LO.categoryAxis.splitLine.show=!1;var RO=function(){function e(){}return e.prototype.normalizeQuery=function(e){var t={},n={},r={};if(G(e)){var i=lt(e);t.mainType=i.main||null,t.subType=i.sub||null}else{var a=[`Index`,`Name`,`Id`],o={name:1,dataIndex:1,dataType:1};z(e,function(e,i){for(var s=!1,c=0;c<a.length;c++){var l=a[c],u=i.lastIndexOf(l);if(u>0&&u===i.length-l.length){var d=i.slice(0,u);d!==`data`&&(t.mainType=d,t[l.toLowerCase()]=e,s=!0)}}o.hasOwnProperty(i)&&(n[i]=e,s=!0),s||(r[i]=e)})}return{cptQuery:t,dataQuery:n,otherQuery:r}},e.prototype.filter=function(e,t){var n=this.eventInfo;if(!n)return!0;var r=n.targetEl,i=n.packedEvent,a=n.model,o=n.view;if(!a||!o)return!0;var s=t.cptQuery,c=t.dataQuery;return l(s,a,`mainType`)&&l(s,a,`subType`)&&l(s,a,`index`,`componentIndex`)&&l(s,a,`name`)&&l(s,a,`id`)&&l(c,i,`name`)&&l(c,i,`dataIndex`)&&l(c,i,`dataType`)&&(!o.filterForExposedEvent||o.filterForExposedEvent(e,t.otherQuery,r,i));function l(e,t,n,r){return e[n]==null||t[r||n]===e[n]}},e.prototype.afterTrigger=function(){this.eventInfo=null},e}(),zO=[`symbol`,`symbolSize`,`symbolRotate`,`symbolOffset`],BO=zO.concat([`symbolKeepAspect`]),VO={createOnAllSeries:!0,performRawSeries:!0,reset:function(e,t){var n=e.getData();if(e.legendIcon&&n.setVisual(`legendIcon`,e.legendIcon),!e.hasSymbolVisual)return;for(var r={},i={},a=!1,o=0;o<zO.length;o++){var s=zO[o],c=e.get(s);W(c)?(a=!0,i[s]=c):r[s]=c}if(r.symbol=r.symbol||e.defaultSymbol,n.setVisual(I({legendIcon:e.legendIcon||r.symbol,symbolKeepAspect:e.get(`symbolKeepAspect`)},r)),t.isSeriesFiltered(e))return;var l=V(i);function u(t,n){for(var r=e.getRawValue(n),a=e.getDataParams(n),o=0;o<l.length;o++){var s=l[o];t.setItemVisual(n,s,i[s](r,a))}}return{dataEach:a?u:null}}},HO={createOnAllSeries:!0,performRawSeries:!0,reset:function(e,t){if(!e.hasSymbolVisual||t.isSeriesFiltered(e))return;var n=e.getData();function r(e,t){for(var n=e.getItemModel(t),r=0;r<BO.length;r++){var i=BO[r],a=n.getShallow(i,!0);a!=null&&e.setItemVisual(t,i,a)}}return{dataEach:n.hasItemOption?r:null}}};function UO(e,t,n){switch(n){case`color`:return e.getItemVisual(t,`style`)[e.getVisual(`drawType`)];case`opacity`:return e.getItemVisual(t,`style`).opacity;case`symbol`:case`symbolSize`:case`liftZ`:return e.getItemVisual(t,n)}}function WO(e,t){switch(t){case`color`:return e.getVisual(`style`)[e.getVisual(`drawType`)];case`opacity`:return e.getVisual(`style`).opacity;case`symbol`:case`symbolSize`:case`liftZ`:return e.getVisual(t)}}function GO(e,t,n,r){switch(n){case`color`:var i=e.ensureUniqueItemVisual(t,`style`);i[e.getVisual(`drawType`)]=r,e.setItemVisual(t,`colorFromPalette`,!1);break;case`opacity`:e.ensureUniqueItemVisual(t,`style`).opacity=r;break;case`symbol`:case`symbolSize`:case`liftZ`:e.setItemVisual(t,n,r)}}function KO(e,t,n){for(var r;e&&!(t(e)&&(r=e,n));)e=e.__hostTarget||e.parent;return r}var qO=new ka,JO={};function YO(e,t){JO[e]=t}function XO(e){return JO[e]}var ZO={};function QO(e,t){ZO[e]=t}var $O=Math.round(Math.random()*9),ek=typeof Object.defineProperty==`function`,tk=function(){function e(){this._id=`__ec_inner_`+$O++}return e.prototype.get=function(e){return this._guard(e)[this._id]},e.prototype.set=function(e,t){var n=this._guard(e);return ek?Object.defineProperty(n,this._id,{value:t,enumerable:!1,configurable:!0}):n[this._id]=t,this},e.prototype.delete=function(e){return this.has(e)?(delete this._guard(e)[this._id],!0):!1},e.prototype.has=function(e){return!!this._guard(e)[this._id]},e.prototype._guard=function(e){if(e!==Object(e))throw TypeError(`Value of WeakMap is not a non-null object.`);return e},e}();function nk(e){return isFinite(e)}function rk(e,t,n){var r=t.x==null?0:t.x,i=t.x2==null?1:t.x2,a=t.y==null?0:t.y,o=t.y2==null?0:t.y2;return t.global||(r=r*n.width+n.x,i=i*n.width+n.x,a=a*n.height+n.y,o=o*n.height+n.y),r=nk(r)?r:0,i=nk(i)?i:1,a=nk(a)?a:0,o=nk(o)?o:0,e.createLinearGradient(r,a,i,o)}function ik(e,t,n){var r=n.width,i=n.height,a=Math.min(r,i),o=t.x==null?.5:t.x,s=t.y==null?.5:t.y,c=t.r==null?.5:t.r;return t.global||(o=o*r+n.x,s=s*i+n.y,c*=a),o=nk(o)?o:.5,s=nk(s)?s:.5,c=c>=0&&nk(c)?c:.5,e.createRadialGradient(o,s,0,o,s,c)}function ak(e,t,n){for(var r=t.type===`radial`?ik(e,t,n):rk(e,t,n),i=t.colorStops,a=0;a<i.length;a++)r.addColorStop(i[a].offset,i[a].color);return r}function ok(e,t){if(e===t||!e&&!t)return!1;if(!e||!t||e.length!==t.length)return!0;for(var n=0;n<e.length;n++)if(e[n]!==t[n])return!0;return!1}function sk(e){return parseInt(e,10)}function ck(e,t,n){var r=[`width`,`height`][t],i=[`clientWidth`,`clientHeight`][t],a=[`paddingLeft`,`paddingTop`][t],o=[`paddingRight`,`paddingBottom`][t];if(n[r]!=null&&n[r]!==`auto`)return parseFloat(n[r]);var s=document.defaultView.getComputedStyle(e);return(e[i]||sk(s[r])||sk(e.style[r]))-(sk(s[a])||0)-(sk(s[o])||0)||0}function lk(e,t){return!e||e===`solid`||!(t>0)?null:e===`dashed`?[4*t,2*t]:e===`dotted`?[t]:Ae(e)?[e]:U(e)?e:null}function uk(e){var t=e.style,n=t.lineDash&&t.lineWidth>0&&lk(t.lineDash,t.lineWidth),r=t.lineDashOffset;if(n){var i=t.strokeNoScale&&e.getLineScale?e.getLineScale():1;i&&i!==1&&(n=B(n,function(e){return e/i}),r/=i)}return[n,r]}var dk=new Vo(!0);function fk(e){var t=e.stroke;return!(t==null||t===`none`||!(e.lineWidth>0))}function pk(e){return typeof e==`string`&&e!==`none`}function mk(e){var t=e.fill;return t!=null&&t!==`none`}function hk(e,t){if(t.fillOpacity!=null&&t.fillOpacity!==1){var n=e.globalAlpha;e.globalAlpha=t.fillOpacity*t.opacity,e.fill(),e.globalAlpha=n}else e.fill()}function gk(e,t){if(t.strokeOpacity!=null&&t.strokeOpacity!==1){var n=e.globalAlpha;e.globalAlpha=t.strokeOpacity*t.opacity,e.stroke(),e.globalAlpha=n}else e.stroke()}function _k(e,t,n){var r=Ot(t.image,t.__image,n);if(At(r)){var i=e.createPattern(r,t.repeat||`repeat`);if(typeof DOMMatrix==`function`&&i&&i.setTransform){var a=new DOMMatrix;a.translateSelf(t.x||0,t.y||0),a.rotateSelf(0,0,(t.rotation||0)*nt),a.scaleSelf(t.scaleX||1,t.scaleY||1),i.setTransform(a)}return i}}function vk(e,t,n,r,i){var a,o=fk(n),s=mk(n),c=n.strokePercent,l=c<1,u=!t.path;(!t.silent||l)&&u&&t.createPathProxy();var d=t.path||dk,f=t.__dirty;if(!r){var p=n.fill,m=n.stroke,h=s&&!!p.colorStops,g=o&&!!m.colorStops,_=s&&!!p.image,v=o&&!!m.image,y=void 0,b=void 0,x=void 0,S=void 0,C=void 0;(h||g)&&(C=t.getBoundingRect()),h&&(y=f?ak(e,p,C):t.__canvasFillGradient,t.__canvasFillGradient=y),g&&(b=f?ak(e,m,C):t.__canvasStrokeGradient,t.__canvasStrokeGradient=b),_&&(x=f||!t.__canvasFillPattern?_k(e,p,t):t.__canvasFillPattern,t.__canvasFillPattern=x),v&&(S=f||!t.__canvasStrokePattern?_k(e,m,t):t.__canvasStrokePattern,t.__canvasStrokePattern=S),h?e.fillStyle=y:_&&(x?e.fillStyle=x:s=!1),g?e.strokeStyle=b:v&&(S?e.strokeStyle=S:o=!1)}var w=t.getGlobalScale();d.setScale(w[0],w[1],t.segmentIgnoreThreshold);var T,E;e.setLineDash&&n.lineDash&&(a=uk(t),T=a[0],E=a[1]);var D=!0;(u||f&4)&&(d.setDPR(e.dpr),l?d.setContext(null):(d.setContext(e),D=!1),d.reset(),t.buildPath(d,t.shape,r),d.toStatic(),t.pathUpdated()),D&&d.rebuildPath(e,l?c:1),T&&(e.setLineDash(T),e.lineDashOffset=E),r?(i.batchFill=s,i.batchStroke=o):n.strokeFirst?(o&&gk(e,n),s&&hk(e,n)):(s&&hk(e,n),o&&gk(e,n)),T&&e.setLineDash([])}function yk(e,t,n){var r=t.__image=Ot(n.image,t.__image,t,t.onload);if(r&&At(r)){var i=n.x||0,a=n.y||0,o=t.getWidth(),s=t.getHeight(),c=r.width/r.height;if(o==null&&s!=null?o=s*c:s==null&&o!=null?s=o/c:o==null&&s==null&&(o=r.width,s=r.height),n.sWidth&&n.sHeight){var l=n.sx||0,u=n.sy||0;e.drawImage(r,l,u,n.sWidth,n.sHeight,i,a,o,s)}else if(n.sx&&n.sy){var l=n.sx,u=n.sy,d=o-l,f=s-u;e.drawImage(r,l,u,d,f,i,a,o,s)}else e.drawImage(r,i,a,o,s)}}function bk(e,t,n){var r,i=n.text;if(i!=null&&(i+=``),i){e.font=n.font||`12px sans-serif`,e.textAlign=n.textAlign,e.textBaseline=n.textBaseline;var a=void 0,o=void 0;e.setLineDash&&n.lineDash&&(r=uk(t),a=r[0],o=r[1]),a&&(e.setLineDash(a),e.lineDashOffset=o),n.strokeFirst?(fk(n)&&e.strokeText(i,n.x,n.y),mk(n)&&e.fillText(i,n.x,n.y)):(mk(n)&&e.fillText(i,n.x,n.y),fk(n)&&e.strokeText(i,n.x,n.y)),a&&e.setLineDash([])}}var xk=[`shadowBlur`,`shadowOffsetX`,`shadowOffsetY`],Sk=[[`lineCap`,`butt`],[`lineJoin`,`miter`],[`miterLimit`,10]];function Ck(e,t,n,r,i){var a=!1;if(!r&&(n||={},t===n))return!1;if(r||t.opacity!==n.opacity){Pk(e,i),a=!0;var o=Math.max(Math.min(t.opacity,1),0);e.globalAlpha=isNaN(o)?eo.opacity:o}(r||t.blend!==n.blend)&&(a||=(Pk(e,i),!0),e.globalCompositeOperation=t.blend||eo.blend);for(var s=0;s<xk.length;s++){var c=xk[s];(r||t[c]!==n[c])&&(a||=(Pk(e,i),!0),e[c]=e.dpr*(t[c]||0))}return(r||t.shadowColor!==n.shadowColor)&&(a||=(Pk(e,i),!0),e.shadowColor=t.shadowColor||eo.shadowColor),a}function wk(e,t,n,r,i){var a=t.style,o=r?null:n&&n.style||{};if(a===o)return!1;var s=Ck(e,a,o,r,i);if((r||a.fill!==o.fill)&&(s||=(Pk(e,i),!0),pk(a.fill)&&(e.fillStyle=a.fill)),(r||a.stroke!==o.stroke)&&(s||=(Pk(e,i),!0),pk(a.stroke)&&(e.strokeStyle=a.stroke)),(r||a.opacity!==o.opacity)&&(s||=(Pk(e,i),!0),e.globalAlpha=a.opacity==null?1:a.opacity),t.hasStroke()){var c=a.lineWidth/(a.strokeNoScale&&t.getLineScale?t.getLineScale():1);e.lineWidth!==c&&(s||=(Pk(e,i),!0),e.lineWidth=c)}for(var l=0;l<Sk.length;l++){var u=Sk[l],d=u[0];(r||a[d]!==o[d])&&(s||=(Pk(e,i),!0),e[d]=a[d]||u[1])}return s}function Tk(e,t,n,r,i){return Ck(e,t.style,n&&n.style,r,i)}function Ek(e,t){var n=t.transform,r=e.dpr||1;n?e.setTransform(r*n[0],r*n[1],r*n[2],r*n[3],r*n[4],r*n[5]):e.setTransform(r,0,0,r,0,0)}function Dk(e,t,n){for(var r=!1,i=0;i<e.length;i++){var a=e[i];r||=a.isZeroArea(),Ek(t,a),t.beginPath(),a.buildPath(t,a.shape),t.clip()}n.allClipped=r}function Ok(e,t){return e&&t?e[0]!==t[0]||e[1]!==t[1]||e[2]!==t[2]||e[3]!==t[3]||e[4]!==t[4]||e[5]!==t[5]:!(!e&&!t)}var kk=1,Ak=2,jk=3,Mk=4;function Nk(e){var t=mk(e),n=fk(e);return!(e.lineDash||!(+t^n)||t&&typeof e.fill!=`string`||n&&typeof e.stroke!=`string`||e.strokePercent<1||e.strokeOpacity<1||e.fillOpacity<1)}function Pk(e,t){t.batchFill&&(t.batchFill=!1,e.fill()),t.batchStroke&&(t.batchStroke=!1,e.stroke())}function Fk(e,t){var n={inHover:!1,viewWidth:0,viewHeight:0,beforeBrushParam:{}};Ik(e,t,n),Lk(e,n)}function Ik(e,t,n){var r=t.transform;if(!t.shouldBePainted(n.viewWidth,n.viewHeight,!1,!1)){t.__dirty&=-2,t.__isRendered=!1;return}var i=t.__clipPaths,a=n.prevElClipPaths,o=t.style,s=!1,c=!1;if((!a||ok(i,a))&&(a&&(Pk(e,n),e.restore(),c=s=!0,n.prevElClipPaths=null,n.allClipped=!1,n.prevEl=null),i&&i.length&&(Pk(e,n),e.save(),Dk(i,e,n),s=!0,n.prevElClipPaths=i)),n.allClipped){t.__dirty&=-2,t.__isRendered=!1;return}t.beforeBrush&&t.beforeBrush(n.beforeBrushParam),t.innerBeforeBrush();var l=n.prevEl;l||(c=s=!0);var u=t instanceof fs&&t.autoBatch&&Nk(o);s||Ok(r,l.transform)?(Pk(e,n),Ek(e,t)):u||Pk(e,n),t instanceof fs?(n.lastDrawType!==kk&&(c=!0,n.lastDrawType=kk),wk(e,t,l,c,n),(!u||!n.batchFill&&!n.batchStroke)&&e.beginPath(),vk(e,t,o,u,n)):t instanceof ms?(n.lastDrawType!==jk&&(c=!0,n.lastDrawType=jk),wk(e,t,l,c,n),bk(e,t,o)):t instanceof vs?(n.lastDrawType!==Ak&&(c=!0,n.lastDrawType=Ak),Tk(e,t,l,c,n),yk(e,t,o)):t.getTemporalDisplayables&&(n.lastDrawType!==Mk&&(c=!0,n.lastDrawType=Mk),Rk(e,t,n)),t.innerAfterBrush(),t.afterBrush&&(u&&Pk(e,n),t.afterBrush()),n.prevEl=t,t.__dirty=0,t.__isRendered=!0}function Lk(e,t){Pk(e,t),t.prevElClipPaths&&e.restore()}function Rk(e,t,n){var r=t.getDisplayables(),i=t.getTemporalDisplayables();e.save();for(var a={prevElClipPaths:null,prevEl:null,allClipped:!1,viewWidth:n.viewWidth,viewHeight:n.viewHeight,inHover:n.inHover,beforeBrushParam:{}},o=t.getCursor(),s=r.length;o<s;o++){var c=r[o];c.beforeBrush&&c.beforeBrush(n.beforeBrushParam),c.innerBeforeBrush(),Ik(e,c,a),c.innerAfterBrush(),c.afterBrush&&c.afterBrush(),a.prevEl=c}Lk(e,a);for(var l=0,u=i.length;l<u;l++){var c=i[l];c.beforeBrush&&c.beforeBrush(n.beforeBrushParam),c.innerBeforeBrush(),Ik(e,c,a),c.innerAfterBrush(),c.afterBrush&&c.afterBrush(),a.prevEl=c}Lk(e,a),t.clearTemporalDisplayables(),t.notClear=!0,e.restore()}var zk=new tk,Bk=new Tt(100),Vk=[`symbol`,`symbolSize`,`symbolKeepAspect`,`color`,`backgroundColor`,`dashArrayX`,`dashArrayY`,`maxTileWidth`,`maxTileHeight`];function Hk(e,t){if(e===`none`)return null;var n=t.getDevicePixelRatio(),r=t.getZr(),i=r.painter.type===`svg`;e.dirty&&zk.delete(e);var a=zk.get(e);if(a)return a;var o=L(e,{symbol:`rect`,symbolSize:1,symbolKeepAspect:!0,color:`rgba(0, 0, 0, 0.2)`,backgroundColor:null,dashArrayX:5,dashArrayY:5,rotation:0,maxTileWidth:512,maxTileHeight:512});o.backgroundColor===`none`&&(o.backgroundColor=null);var s={repeat:`repeat`};return c(s),s.rotation=o.rotation,s.scaleX=s.scaleY=i?1:1/n,zk.set(e,s),e.dirty=!1,s;function c(e){for(var t=[n],a=!0,s=0;s<Vk.length;++s){var c=o[Vk[s]];if(c!=null&&!U(c)&&!G(c)&&!Ae(c)&&typeof c!=`boolean`){a=!1;break}t.push(c)}var l;if(a){l=t.join(`,`)+(i?`-svg`:``);var u=Bk.get(l);u&&(i?e.svgElement=u:e.image=u)}var d=Wk(o.dashArrayX),f=Gk(o.dashArrayY),p=Uk(o.symbol),m=Kk(d),h=qk(f),g=!i&&M.createCanvas(),_=i&&{tag:`g`,attrs:{},key:`dcl`,children:[]},v=b(),y;g&&(g.width=v.width*n,g.height=v.height*n,y=g.getContext(`2d`)),x(),a&&Bk.put(l,g||_),e.image=g,e.svgElement=_,e.svgWidth=v.width,e.svgHeight=v.height;function b(){for(var e=1,t=0,n=m.length;t<n;++t)e=Fc(e,m[t]);for(var r=1,t=0,n=p.length;t<n;++t)r=Fc(r,p[t].length);e*=r;var i=h*m.length*p.length;return{width:Math.max(1,Math.min(e,o.maxTileWidth)),height:Math.max(1,Math.min(i,o.maxTileHeight))}}function x(){y&&(y.clearRect(0,0,g.width,g.height),o.backgroundColor&&(y.fillStyle=o.backgroundColor,y.fillRect(0,0,g.width,g.height)));for(var e=0,t=0;t<f.length;++t)e+=f[t];if(e<=0)return;for(var a=-h,s=0,c=0,l=0;a<v.height;){if(s%2==0){for(var u=c/2%p.length,m=0,b=0,x=0;m<v.width*2;){for(var S=0,t=0;t<d[l].length;++t)S+=d[l][t];if(S<=0)break;if(b%2==0){var C=(1-o.symbolSize)*.5,w=m+d[l][b]*C,T=a+f[s]*C,E=d[l][b]*o.symbolSize,D=f[s]*o.symbolSize,O=x/2%p[u].length;k(w,T,E,D,p[u][O])}m+=d[l][b],++x,++b,b===d[l].length&&(b=0)}++l,l===d.length&&(l=0)}a+=f[s],++c,++s,s===f.length&&(s=0)}function k(e,t,a,s,c){var l=i?1:n,u=Ey(c,e*l,t*l,a*l,s*l,o.color,o.symbolKeepAspect);if(i){var d=r.painter.renderOneToVNode(u);d&&_.children.push(d)}else Fk(y,u)}}}}function Uk(e){if(!e||e.length===0)return[[`rect`]];if(G(e))return[[e]];for(var t=!0,n=0;n<e.length;++n)if(!G(e[n])){t=!1;break}if(t)return Uk([e]);for(var r=[],n=0;n<e.length;++n)G(e[n])?r.push([e[n]]):r.push(e[n]);return r}function Wk(e){if(!e||e.length===0)return[[0,0]];if(Ae(e)){var t=Math.ceil(e);return[[t,t]]}for(var n=!0,r=0;r<e.length;++r)if(!Ae(e[r])){n=!1;break}if(n)return Wk([e]);for(var i=[],r=0;r<e.length;++r)if(Ae(e[r])){var t=Math.ceil(e[r]);i.push([t,t])}else{var t=B(e[r],function(e){return Math.ceil(e)});t.length%2==1?i.push(t.concat(t)):i.push(t)}return i}function Gk(e){if(!e||typeof e==`object`&&e.length===0)return[0,0];if(Ae(e)){var t=Math.ceil(e);return[t,t]}var n=B(e,function(e){return Math.ceil(e)});return e.length%2?n.concat(n):n}function Kk(e){return B(e,function(e){return qk(e)})}function qk(e){for(var t=0,n=0;n<e.length;++n)t+=e[n];return e.length%2==1?t*2:t}var Jk=Ul(Yk);function Yk(e,t){e.eachRawSeries(function(n){if(!e.isSeriesFiltered(n)){var r=n.getData();r.hasItemVisual()&&r.each(function(e){var n=r.getItemVisual(e,`decal`);if(n){var i=r.ensureUniqueItemVisual(e,`style`);i.decal=Hk(n,t)}});var i=r.getVisual(`decal`);if(i){var a=r.getVisual(`style`);a.decal=Hk(i,t)}}})}var Xk=`6.1.0`,Zk={zrender:`6.1.0`},Qk=1,$k=800,eA=900,tA=920,nA=1e3,rA=2e3,iA=5e3,aA=1e3,oA=1100,sA=2e3,cA=3e3,lA=4e3,uA=4500,dA=4600,fA=5e3,pA=6e3,mA=7e3,hA={PROCESSOR:{SERIES_FILTER:$k,AXIS_STATISTICS:tA,FILTER:nA,STATISTIC:iA,STATISTICS:iA},VISUAL:{LAYOUT:aA,PROGRESSIVE_LAYOUT:oA,GLOBAL:sA,CHART:cA,POST_CHART_LAYOUT:dA,COMPONENT:lA,BRUSH:fA,CHART_ITEM:uA,ARIA:pA,DECAL:mA}},gA=`__flagInMainProcess`,_A=`__mainProcessVersion`,vA=`__pendingUpdate`,yA=`__needsUpdateStatus`,bA=/^[a-zA-Z0-9_]+$/,xA=`__connectUpdateStatus`,SA=0,CA=1,wA=2;function TA(e){return function(){var t=[...arguments];if(this.isDisposed()){this.id;return}return DA(this,e,t)}}function EA(e){return function(){var t=[...arguments];return DA(this,e,t)}}function DA(e,t,n){return n[0]=n[0]&&n[0].toLowerCase(),ka.prototype[t].apply(e,n)}var OA=function(e){D(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t}(ka),kA=OA.prototype;kA.on=EA(`on`),kA.off=EA(`off`);var AA,jA,MA,NA,PA,FA,IA,LA,RA,zA,BA,VA,HA,UA,WA,GA,KA,qA,JA,YA=function(e){D(t,e);function t(t,n,r){var i=e.call(this,new RO)||this;i._chartsViews=[],i._chartsMap={},i._componentsViews=[],i._componentsMap={},i._pendingActions=[],r||={},i.__v_skip=!0,i._dom=t;var a=`canvas`,o=`auto`,s=!1;i[_A]=1,r.ssr&&sD(function(e){var t=Wl(e),n=t.dataIndex;if(n!=null){var r=J();return r.set(`series_index`,t.seriesIndex),r.set(`data_index`,n),t.ssrType&&r.set(`ssr_type`,t.ssrType),r}});var c=i._zr=eD(t,{renderer:r.renderer||a,devicePixelRatio:r.devicePixelRatio,width:r.width,height:r.height,ssr:r.ssr,useDirtyRect:q(r.useDirtyRect,s),useCoarsePointer:q(r.useCoarsePointer,o),pointerSize:r.pointerSize});i._ssr=r.ssr,i._throttledZrFlush=Zw(H(c.flush,c),17),i._updateTheme(n),i._locale=Wg(r.locale||Hg),i._coordSysMgr=new Zh;var l=i._api=WA(i);function u(e,t){return e.__prio-t.__prio}return xE(rj,u),xE(tj,u),i._scheduler=new yO(i,l,tj,rj),i._messageCenter=new OA,i._initEvents(),i.resize=H(i.resize,i),c.animation.on(`frame`,i._onframe,i),zA(c,i),BA(c,i),Ge(i),i}return t.prototype._onframe=function(){if(!this._disposed){var e=this._scheduler,t=this._model,n=this._api;if(qA(this),this[vA]){var r=this[vA].silent;this[gA]=!0,JA(this);try{AA(this),NA.update.call(this,null,this[vA].updateParams)}catch(e){throw this[gA]=!1,this[vA]=null,e}this._zr.flush(),this[gA]=!1,this[vA]=null,LA.call(this,r),RA.call(this,r)}else if(e.unfinished){var i=Qk;do{e.unfinished=!1;var a=M.getTime();e.performSeriesTasks(t),e.performDataProcessorTasks(t),FA(this,t),e.performVisualTasks(t),UA(this,this._model,n,`remain`,{}),i-=M.getTime()-a}while(i>0&&e.unfinished);e.unfinished||this._zr.flush()}}},t.prototype.getDom=function(){return this._dom},t.prototype.getId=function(){return this.id},t.prototype.getZr=function(){return this._zr},t.prototype.isSSR=function(){return this._ssr},t.prototype.setOption=function(e,t,n){if(!this[gA]){if(this._disposed){this.id;return}var r,i,a;if(K(t)&&(n=t.lazyUpdate,r=t.silent,i=t.replaceMerge,a=t.transition,t=t.notMerge),this[gA]=!0,JA(this),!this._model||t){var o=new kD(this._api),s=this._theme,c=this._model=new SD;c.scheduler=this._scheduler,c.ssr=this._ssr,c.init(null,null,null,s,this._locale,o)}this._model.setOption(e,{replaceMerge:i},nj);var l={seriesTransition:a,optionChanged:!0};if(n)this[vA]={silent:r,updateParams:l},this[gA]=!1,this.getZr().wakeUp();else{try{AA(this),NA.update.call(this,null,l)}catch(e){throw this[vA]=null,this[gA]=!1,e}this._ssr||this._zr.flush(),this[vA]=null,this[gA]=!1,LA.call(this,r),RA.call(this,r)}}},t.prototype.setTheme=function(e,t){if(!this[gA]){if(this._disposed){this.id;return}var n=this._model;if(n){var r=t&&t.silent,i=null;this[vA]&&(r??=this[vA].silent,i=this[vA].updateParams,this[vA]=null),this[gA]=!0,JA(this);try{this._updateTheme(e),n.setTheme(this._theme),AA(this),NA.update.call(this,{type:`setTheme`},i)}catch(e){throw this[gA]=!1,e}this[gA]=!1,LA.call(this,r),RA.call(this,r)}}},t.prototype._updateTheme=function(e){G(e)&&(e=ij[e]),e&&(e=P(e),e&&rO(e,!0),this._theme=e)},t.prototype.getModel=function(){return this._model},t.prototype.getOption=function(){return this._model&&this._model.getOption()},t.prototype.getWidth=function(){return this._zr.getWidth()},t.prototype.getHeight=function(){return this._zr.getHeight()},t.prototype.getDevicePixelRatio=function(){return this._zr.painter.dpr||Y.hasGlobalWindow&&window.devicePixelRatio||1},t.prototype.getRenderedCanvas=function(e){return this.renderToCanvas(e)},t.prototype.renderToCanvas=function(e){return e||={},this._zr.painter.getRenderedCanvas({backgroundColor:e.backgroundColor||this._model.get(`backgroundColor`),pixelRatio:e.pixelRatio||this.getDevicePixelRatio()})},t.prototype.renderToSVGString=function(e){return e||={},this._zr.painter.renderToString({useViewBox:e.useViewBox})},t.prototype.getSvgDataURL=function(){var e=this._zr;return z(e.storage.getDisplayList(),function(e){e.stopAnimation(null,!0)}),e.painter.toDataURL()},t.prototype.getDataURL=function(e){if(this._disposed){this.id;return}e||={};var t=e.excludeComponents,n=this._model,r=[],i=this;z(t,function(e){n.eachComponent({mainType:e},function(e){var t=i._componentsMap[e.__viewId];t.group.ignore||(r.push(t),t.group.ignore=!0)})});var a=this._zr.painter.getType()===`svg`?this.getSvgDataURL():this.renderToCanvas(e).toDataURL(`image/`+(e&&e.type||`png`));return z(r,function(e){e.group.ignore=!1}),a},t.prototype.getConnectedDataURL=function(e){if(this._disposed){this.id;return}var t=e.type===`svg`,n=this.group,r=Math.min,i=Math.max,a=1/0;if(sj[n]){var o=a,s=a,c=-a,l=-a,u=[],d=e&&e.pixelRatio||this.getDevicePixelRatio();z(oj,function(a,d){if(a.group===n){var f=t?a.getZr().painter.getSvgDom().innerHTML:a.renderToCanvas(P(e)),p=a.getDom().getBoundingClientRect();o=r(p.left,o),s=r(p.top,s),c=i(p.right,c),l=i(p.bottom,l),u.push({dom:f,left:p.left,top:p.top})}}),o*=d,s*=d,c*=d,l*=d;var f=c-o,p=l-s,m=M.createCanvas(),h=eD(m,{renderer:t?`svg`:`canvas`});if(h.resize({width:f,height:p}),t){var g=``;return z(u,function(e){var t=e.left-o,n=e.top-s;g+=`<g transform="translate(`+t+`,`+n+`)">`+e.dom+`</g>`}),h.painter.getSvgRoot().innerHTML=g,e.connectedBackgroundColor&&h.painter.setBackgroundColor(e.connectedBackgroundColor),h.refreshImmediately(),h.painter.toDataURL()}return e.connectedBackgroundColor&&h.add(new Es({shape:{x:0,y:0,width:f,height:p},style:{fill:e.connectedBackgroundColor}})),z(u,function(e){var t=new vs({style:{x:e.left*d-o,y:e.top*d-s,image:e.dom}});h.add(t)}),h.refreshImmediately(),m.toDataURL(`image/`+(e&&e.type||`png`))}return this.getDataURL(e)},t.prototype.convertToPixel=function(e,t,n){return PA(this,`convertToPixel`,e,t,n)},t.prototype.convertToLayout=function(e,t,n){return PA(this,`convertToLayout`,e,t,n)},t.prototype.convertFromPixel=function(e,t,n){return PA(this,`convertFromPixel`,e,t,n)},t.prototype.containPixel=function(e,t){if(this._disposed){this.id;return}var n=this._model,r;return z(gl(n,e),function(e,n){n.indexOf(`Models`)>=0&&z(e,function(e){var i=e.coordinateSystem;if(i&&i.containPoint)r||=!!i.containPoint(t);else if(n===`seriesModels`){var a=this._chartsMap[e.__viewId];a&&a.containPoint&&(r||=a.containPoint(t,e))}},this)},this),!!r},t.prototype.getVisual=function(e,t){var n=this._model,r=gl(n,e,{defaultMainType:`series`}),i=r.seriesModel.getData(),a=r.hasOwnProperty(`dataIndexInside`)?r.dataIndexInside:r.hasOwnProperty(`dataIndex`)?i.indexOfRawIndex(r.dataIndex):null;return a==null?WO(i,t):UO(i,a,t)},t.prototype.getViewOfComponentModel=function(e){return this._componentsMap[e.__viewId]},t.prototype.getViewOfSeriesModel=function(e){return this._chartsMap[e.__viewId]},t.prototype._initEvents=function(){var e=this;z(ZA,function(t){var n=function(n){var r=e.getModel(),i=n.target,a;if(t===`globalout`?a={}:i&&KO(i,function(e){var t=Wl(e);if(t&&t.dataIndex!=null){var n=t.dataModel||r.getSeriesByIndex(t.seriesIndex);return a=n&&n.getDataParams(t.dataIndex,t.dataType,i)||{},!0}if(t.eventData)return a=I({},t.eventData),!0},!0),a){var o=a.componentType,s=a.componentIndex;(o===`markLine`||o===`markPoint`||o===`markArea`)&&(o=`series`,s=a.seriesIndex);var c=o&&s!=null&&r.getComponent(o,s),l=c&&e[c.mainType===`series`?`_chartsMap`:`_componentsMap`][c.__viewId];a.event=n,a.type=t,e._$eventProcessor.eventInfo={targetEl:i,packedEvent:a,model:c,view:l},e.trigger(t,a)}};n.zrEventfulCallAtLast=!0,e._zr.on(t,n,e)});var t=this._messageCenter;z(ej,function(n,r){t.on(r,function(t){e.trigger(r,t)})}),FT(t,this,this._api)},t.prototype.isDisposed=function(){return this._disposed},t.prototype.clear=function(){if(this._disposed){this.id;return}this.setOption({series:[]},!0)},t.prototype.dispose=function(){if(this._disposed){this.id;return}this._disposed=!0,this.getDom()&&Sl(this.getDom(),uj,``);var e=this,t=e._api,n=e._model;z(e._componentsViews,function(e){e.dispose(n,t)}),z(e._chartsViews,function(e){e.dispose(n,t)}),e._zr.dispose(),e._dom=e._model=e._chartsMap=e._componentsMap=e._chartsViews=e._componentsViews=e._scheduler=e._api=e._zr=e._throttledZrFlush=e._theme=e._coordSysMgr=e._messageCenter=null,delete oj[e.id]},t.prototype.resize=function(e){if(!this[gA]){if(this._disposed){this.id;return}this._zr.resize(e);var t=this._model;if(this._loadingFX&&this._loadingFX.resize(),t){var n=t.resetOption(`media`),r=e&&e.silent;this[vA]&&(r??=this[vA].silent,n=!0,this[vA]=null),this[gA]=!0,JA(this);try{n&&AA(this),NA.update.call(this,{type:`resize`,animation:I({duration:0},e&&e.animation)})}catch(e){throw this[gA]=!1,e}this[gA]=!1,LA.call(this,r),RA.call(this,r)}}},t.prototype.showLoading=function(e,t){if(this._disposed){this.id;return}if(K(e)&&(t=e,e=``),e||=`default`,this.hideLoading(),aj[e]){var n=aj[e](this._api,t),r=this._zr;this._loadingFX=n,r.add(n)}},t.prototype.hideLoading=function(){if(this._disposed){this.id;return}this._loadingFX&&this._zr.remove(this._loadingFX),this._loadingFX=null},t.prototype.makeActionFromEvent=function(e){var t=I({},e);return t.type=$A[e.type],t},t.prototype.dispatchAction=function(e,t){if(this._disposed){this.id;return}if(K(t)||(t={silent:!!t}),QA[e.type]&&this._model){if(this[gA]){this._pendingActions.push(e);return}var n=t.silent;IA.call(this,e,n);var r=t.flush;r?this._zr.flush():r!==!1&&Y.browser.weChat&&this._throttledZrFlush(),LA.call(this,n),RA.call(this,n)}},t.prototype.updateLabelLayout=function(){qO.trigger(`series:layoutlabels`,this._model,this._api,{updatedSeries:[]})},t.prototype.appendData=function(e){if(this._disposed){this.id;return}var t=e.seriesIndex;this.getModel().getSeriesByIndex(t).appendData(e),this._scheduler.unfinished=!0,this.getZr().wakeUp()},t.internalField=function(){AA=function(e){CS(e._model);var t=e._scheduler;t.restorePipelines(e._zr,e._model),t.prepareStageTasks(),jA(e,!0),jA(e,!1),t.plan()},jA=function(e,t){for(var n=e._model,r=e._scheduler,i=t?e._componentsViews:e._chartsViews,a=t?e._componentsMap:e._chartsMap,o=e._zr,s=e._api,c=0;c<i.length;c++)i[c].__alive=!1;t?n.eachComponent(function(e,t){e!==`series`&&l(t)}):n.eachSeries(l);function l(e){var c=e.__requireNewView;e.__requireNewView=!1;var l=`_ec_`+e.id+`_`+e.type,u=!c&&a[l];if(!u){var d=lt(e.type);u=new(t?sO.getClass(d.main,d.sub):ab.getClass(d.sub)),u.init(n,s),a[l]=u,i.push(u),o.add(u.group)}e.__viewId=u.__id=l,u.__alive=!0,u.__model=e,u.group.__ecComponentInfo={mainType:e.mainType,index:e.componentIndex},!t&&r.prepareView(u,e,n,s)}for(var c=0;c<i.length;){var u=i[c];u.__alive?c++:(!t&&u.renderTask.dispose(),o.remove(u.group),u.dispose(n,s),i.splice(c,1),a[u.__id]===u&&delete a[u.__id],u.__id=u.group.__ecComponentInfo=null)}},MA=function(e,t,n,r,i){var a=e._model;if(a.setUpdatePayload(n),!r){z([].concat(e._componentsViews,e._chartsViews),l);return}var o=xl(n,r,i),s=n.excludeSeriesId,c;s!=null&&(c=J(),z(Kc(s),function(e){var t=ol(e,null);t!=null&&c.set(t,!0)})),a&&a.eachComponent(o,function(t){if(!(c&&c.get(t.id)!=null)){if(dd(n)){if(t instanceof dy)n.type===`highlight`&&!n.notBlur&&!t.get([`emphasis`,`disabled`])&&Ku(t,n,e._api);else{var r=qu(t.mainType,t.componentIndex,n.name,e._api),i=r.focusSelf,a=r.dispatchers;n.type===`highlight`&&i&&!n.notBlur&&Gu(t.mainType,t.componentIndex,e._api),a&&z(a,function(e){n.type===`highlight`?Iu(e):Lu(e)})}}else ud(n)&&t instanceof dy&&(Xu(t,n,e._api),Zu(t),KA(e))}},e),a&&a.eachComponent(o,function(t){c&&c.get(t.id)!=null||l(e[r===`series`?`_chartsMap`:`_componentsMap`][t.__viewId])},e);function l(r){r&&r.__alive&&r[t]&&r[t](r.__model,a,e._api,n)}},NA={prepareAndUpdate:function(e){AA(this),NA.update.call(this,e,e&&{optionChanged:e.newOption!=null})},update:function(e,n){var r=this._model,i=this._api,a=this._zr,o=this._coordSysMgr,s=this._scheduler;if(r){wS(r),r.setUpdatePayload(e),s.restoreData(r,e),s.performSeriesTasks(r),o.create(r,i),qO.trigger(`coordsys:aftercreate`,r,i),s.performDataProcessorTasks(r,e),FA(this,r),o.update(r,i),t(r),s.performVisualTasks(r,e);var c=r.get(`backgroundColor`)||`transparent`;a.setBackgroundColor(c);var l=r.get(`darkMode`);l!=null&&l!==`auto`&&a.setDarkMode(l),VA(this,r,i,e,n),qO.trigger(`afterupdate`,r,i)}},updateTransform:function(e){var t=this,n=t._model,r=t._api;if(n){n.setUpdatePayload(e);var i=[];n.eachComponent(function(a,o){if(a!==`series`){var s=t.getViewOfComponentModel(o);if(s&&s.__alive){if(s.updateTransform){var c=s.updateTransform(o,n,r,e);c&&c.update&&i.push(s)}else i.push(s)}}});var a=J();n.eachSeries(function(i){var o=t._chartsMap[i.__viewId],s=i.pipelineContext;if(o.updateTransform&&!s.progressiveRender){var c=o.updateTransform(i,n,r,e);c&&c.update&&a.set(i.uid,1)}else a.set(i.uid,1)}),t._scheduler.performVisualTasks(n,e,{setDirty:!0,dirtyMap:a}),UA(t,n,r,e,{},a),qO.trigger(`afterupdate`,n,r)}},updateView:function(e){var n=this._model;n&&(n.setUpdatePayload(e),ab.markUpdateMethod(e,`updateView`),t(n),this._scheduler.performVisualTasks(n,e,{setDirty:!0}),VA(this,n,this._api,e,{}),qO.trigger(`afterupdate`,n,this._api))},updateVisual:function(e){var n=this,r=this._model;r&&(r.setUpdatePayload(e),r.eachSeries(function(e){e.getData().clearAllVisual()}),ab.markUpdateMethod(e,`updateVisual`),t(r),this._scheduler.performVisualTasks(r,e,{visualType:`visual`,setDirty:!0}),r.eachComponent(function(t,i){if(t!==`series`){var a=n.getViewOfComponentModel(i);a&&a.__alive&&a.updateVisual(i,r,n._api,e)}}),r.eachSeries(function(t){n._chartsMap[t.__viewId].updateVisual(t,r,n._api,e)}),qO.trigger(`afterupdate`,r,this._api))},updateLayout:function(e){NA.update.call(this,e)}};function e(e,t,n,r,i){if(e._disposed){e.id;return}for(var a=e._model,o=e._coordSysMgr.getCoordinateSystems(),s,c=gl(a,n),l=0;l<o.length;l++){var u=o[l];if(u[t]&&(s=u[t](a,c,r,i))!=null)return s}}PA=e,FA=function(e,t){var n=e._chartsMap,r=e._scheduler;t.eachSeries(function(e){r.updateStreamModes(e,n[e.__viewId])})},IA=function(e,t){var n=this,r=this.getModel(),i=e.type,a=e.escapeConnect,o=QA[i],s=(o.update||`update`).split(`:`),c=s.pop(),l=s[0]!=null&<(s[0]);this[gA]=!0,JA(this);var u=[e],d=!1;e.batch&&(d=!0,u=B(e.batch,function(t){return t=L(I({},t),e),t.batch=null,t}));var f=[],p,m=[],h=o.nonRefinedEventType,g=ud(e),_=dd(e);if(_&&Uu(this._api),z(u,function(t){var i=o.action(t,r,n._api);if(o.refineEvent?m.push(i):p=i,p||=I({},t),p.type=h,f.push(p),_){var a=_l(e),s=a.queryOptionMap,u=a.mainTypeSpecified?s.keys()[0]:`series`;MA(n,c,t,u),KA(n)}else g?(MA(n,c,t,`series`),KA(n)):l&&MA(n,c,t,l.main,l.sub)}),c!==`none`&&!_&&!g&&!l)try{this[vA]?(AA(this),NA.update.call(this,e),this[vA]=null):NA[c].call(this,e)}catch(e){throw this[gA]=!1,e}if(p=d?{type:h,escapeConnect:a,batch:f}:f[0],this[gA]=!1,!t){var v=void 0;if(o.refineEvent){var y=o.refineEvent(m,e,r,this._api).eventContent;He(K(y)),v=L({type:o.refinedEventType},y),v.fromAction=e.type,v.fromActionPayload=e,v.escapeConnect=!0}var b=this._messageCenter;b.trigger(p.type,p),v&&b.trigger(v.type,v)}},LA=function(e){for(var t=this._pendingActions;t.length;){var n=t.shift();IA.call(this,n,e)}},RA=function(e){!e&&this.trigger(`updated`)},zA=function(e,t){e.on(`rendered`,function(n){t.trigger(`rendered`,n),e.animation.isFinished()&&!t[vA]&&!t._scheduler.unfinished&&!t._pendingActions.length?t.trigger(`finished`):e.refresh()})},BA=function(e,t){e.on(`mouseover`,function(e){var n=e.target,r=KO(n,sd);r&&(Ju(r,e,t._api),KA(t))}).on(`mouseout`,function(e){var n=e.target,r=KO(n,sd);r&&(Yu(r,e,t._api),KA(t))}).on(`click`,function(e){var n=e.target,r=KO(n,function(e){return Wl(e).dataIndex!=null},!0);if(r){var i=r.selected?`unselect`:`select`,a=Wl(r);t._api.dispatchAction({type:i,dataType:a.dataType,dataIndexInside:a.dataIndex,seriesIndex:a.seriesIndex,isFromClick:!0})}})};function t(e){e.clearColorPalette(),e.eachSeries(function(e){e.clearColorPalette()})}function n(e){var t=[],n=[],r=!1;if(e.eachComponent(function(e,i){var a=i.get(`zlevel`)||0,o=i.get(`z`)||0,s=i.getZLevelKey();r||=!!s,(e===`series`?n:t).push({zlevel:a,z:o,idx:i.componentIndex,type:e,key:s})}),r){var i=t.concat(n),a,o;xE(i,function(e,t){return e.zlevel===t.zlevel?e.z-t.z:e.zlevel-t.zlevel}),z(i,function(t){var n=e.getComponent(t.type,t.idx),r=t.zlevel,i=t.key;a!=null&&(r=Math.max(a,r)),i?(r===a&&i!==o&&r++,o=i):o&&=(r===a&&r++,``),a=r,n.setZLevel(r)})}}VA=function(e,t,r,i,a){n(t),HA(e,t,r,i,a),z(e._chartsViews,function(e){e.__alive=!1}),UA(e,t,r,i,a),z(e._chartsViews,function(e){e.__alive||e.remove(t,r)})},HA=function(e,t,n,r,i,a){z(a||e._componentsViews,function(e){var i=e.__model;s(i,e),e.render(i,t,n,r),o(i,e),c(i,e)})},UA=function(e,t,n,r,l,u){var d=e._scheduler;l=I(l||{},{updatedSeries:t.getSeries()}),qO.trigger(`series:beforeupdate`,t,n,l);var f=!1;t.eachSeries(function(t){var n=e._chartsMap[t.__viewId];n.__alive=!0;var i=n.renderTask;d.updatePayload(i,r),s(t,n),u&&u.get(t.uid)&&i.dirty(),i.perform(d.getPerformArgs(i))&&(f=!0),n.group.silent=!!t.get(`silent`),a(t,n),Zu(t)}),d.unfinished=f||d.unfinished,qO.trigger(`series:layoutlabels`,t,n,l),qO.trigger(`series:transition`,t,n,l),t.eachSeries(function(t){var n=e._chartsMap[t.__viewId];o(t,n),c(t,n)}),i(e,t),qO.trigger(`series:afterupdate`,t,n,l)},KA=function(e){e[yA]=!0,e.getZr().wakeUp()},JA=function(e){e[_A]=(e[_A]+1)%1e6},qA=function(e){e[yA]&&(e.getZr().storage.traverse(function(e){Vf(e)||r(e)}),e[yA]=!1)};function r(e){for(var t=[],n=e.currentStates,r=0;r<n.length;r++){var i=n[r];i!==`emphasis`&&i!==`blur`&&i!==`select`&&t.push(i)}e.selected&&e.states.select&&t.push(`select`),e.hoverState===2&&e.states.emphasis?t.push(`emphasis`):e.hoverState===1&&e.states.blur&&t.push(`blur`),e.useStates(t)}function i(e,t){var n=e._zr;if(n.painter.type===`canvas`){var r=n.storage,i=0;r.traverse(function(e){e.isGroup||i++});var a=i>q(t.get(`hoverLayerThreshold`),pD.hoverLayerThreshold)&&!Y.node&&!Y.worker;(e._usingTHL||a)&&(t.eachSeries(function(t){if(!t.preventUsingHoverLayer){var n=e._chartsMap[t.__viewId];n.__alive&&n.eachRendered(function(e){var t=e.states.emphasis;t&&t.hoverLayer!==2&&(t.hoverLayer=+!!a)})}}),e._usingTHL=a)}}function a(e,t){var n=e.get(`blendMode`)||null;t.eachRendered(function(e){e.isGroup||(e.style.blend=n)})}function o(e,t){if(!e.preventAutoZ){var n=Mp(e);t.eachRendered(function(e){return Pp(e,n.z,n.zlevel),!0})}}function s(e,t){t.eachRendered(function(e){if(!Vf(e)){var t=e.getTextContent(),n=e.getTextGuideLine();e.stateTransition&&=null,t&&t.stateTransition&&(t.stateTransition=null),n&&n.stateTransition&&(n.stateTransition=null),e.hasState()?(e.prevStates=e.currentStates,e.clearStates()):e.prevStates&&=null}})}function c(e,t){var n=e.getModel(`stateAnimation`),i=e.isAnimationEnabled(),a=n.get(`duration`),o=a>0?{duration:a,delay:n.get(`delay`),easing:n.get(`easing`)}:null;t.eachRendered(function(e){if(e.states&&e.states.emphasis){if(Vf(e))return;if(e instanceof fs&&fd(e),e.__dirty){var t=e.prevStates;t&&e.useStates(t)}if(i){e.stateTransition=o;var n=e.getTextContent(),a=e.getTextGuideLine();n&&(n.stateTransition=o),a&&(a.stateTransition=o)}e.__dirty&&r(e)}})}WA=function(e){return new(function(t){D(n,t);function n(){return t!==null&&t.apply(this,arguments)||this}return n.prototype.getCoordinateSystems=function(){return e._coordSysMgr.getCoordinateSystems()},n.prototype.getComponentByElement=function(t){for(;t;){var n=t.__ecComponentInfo;if(n!=null)return e._model.getComponent(n.mainType,n.index);t=t.parent}},n.prototype.enterEmphasis=function(t,n){Iu(t,n),KA(e)},n.prototype.leaveEmphasis=function(t,n){Lu(t,n),KA(e)},n.prototype.enterBlur=function(t){Ru(t),KA(e)},n.prototype.leaveBlur=function(t){zu(t),KA(e)},n.prototype.enterSelect=function(t){Bu(t),KA(e)},n.prototype.leaveSelect=function(t){Vu(t),KA(e)},n.prototype.getModel=function(){return e.getModel()},n.prototype.getViewOfComponentModel=function(t){return e.getViewOfComponentModel(t)},n.prototype.getViewOfSeriesModel=function(t){return e.getViewOfSeriesModel(t)},n.prototype.getECUpdateCycleVersion=function(){return e[_A]},n.prototype.usingTHL=function(){return e._usingTHL},n}(ru))(e)},GA=function(e){function t(e,t){for(var n=0;n<e.length;n++){var r=e[n];r[xA]=t}}z($A,function(n,r){e._messageCenter.on(r,function(n){if(sj[e.group]&&e[xA]!==SA){if(n&&n.escapeConnect)return;var r=e.makeActionFromEvent(n),i=[];z(oj,function(t){t!==e&&t.group===e.group&&i.push(t)}),t(i,SA),z(i,function(e){e[xA]!==CA&&e.dispatchAction(r)}),t(i,wA)}})})}}(),t}(ka),XA=YA.prototype;XA.on=TA(`on`),XA.off=TA(`off`),XA.one=function(e,t,n){var r=this;function i(){var n=[...arguments];t&&t.apply&&t.apply(this,n),r.off(e,i)}this.on.call(this,e,i,n)};var ZA=[`click`,`dblclick`,`mouseover`,`mouseout`,`mousemove`,`mousedown`,`mouseup`,`globalout`,`contextmenu`],QA={},$A={},ej={},tj=[],nj=[],rj=[],ij={},aj={},oj={},sj={},cj=new Date-0,lj=new Date-0,uj=`_echarts_instance_`;function dj(e,t,n){var r=!(n&&n.ssr);if(r){var i=gj(e);if(i)return i}var a=new YA(e,t,n);return a.id=`ec_`+cj++,oj[a.id]=a,r&&Sl(e,uj,a.id),GA(a),qO.trigger(`afterinit`,a),a}function fj(e){if(U(e)){var t=e;e=null,z(t,function(t){t.group!=null&&(e=t.group)}),e||=`g_`+lj++,z(t,function(t){t.group=e})}return sj[e]=!0,e}function pj(e){sj[e]=!1}var mj=pj;function hj(e){G(e)?e=oj[e]:e instanceof YA||(e=gj(e)),e instanceof YA&&!e.isDisposed()&&e.dispose()}function gj(e){return oj[Cl(e,uj)]}function _j(e){return oj[e]}function vj(e,t){ij[e]=t}function yj(e){R(nj,e)<0&&nj.push(e)}function bj(e,t){jj(tj,e,t,rA)}function xj(e){Cj(`afterinit`,e)}function Sj(e){Cj(`afterupdate`,e)}function Cj(e,t){qO.on(e,t)}function wj(e,t,n){var r,i,a,o,s;W(t)&&(n=t,t=``),K(e)?(r=e.type,i=e.event,o=e.update,s=e.publishNonRefinedEvent,n||=e.action,a=e.refineEvent):(r=e,i=t);function c(e){return e.toLowerCase()}i=c(i||r);var l=a?c(r):i;QA[r]||(He(bA.test(r)&&bA.test(i)),a&&He(i!==r),QA[r]={actionType:r,refinedEventType:i,nonRefinedEventType:l,update:o,action:n,refineEvent:a},ej[i]=1,a&&s&&(ej[l]=1),$A[l]=r)}function Tj(e,t){Zh.register(e,t)}function Ej(e){var t=Zh.get(e);if(t)return t.getDimensionsInfo?t.getDimensionsInfo():t.dimensions.slice()}function Dj(e,t){QO(e,t)}function Oj(e,t){jj(rj,e,t,aA,`layout`,!0)}function kj(e,t){jj(rj,e,t,cA,`visual`,!0)}var Aj=[];function jj(e,t,n,r,i,a){if((W(t)||K(t))&&(n=t,t=r),!(R(Aj,n)>=0)){Aj.push(n);var o=yO.wrapStageHandler(n,i);o.__prio=t,o.__raw=n,e.push(o)}}function Mj(e,t){aj[e]=t}function Nj(e){ne({createCanvas:e})}function Pj(e,t,n){var r=XO(`registerMap`);r&&r(e,t,n)}function Fj(e){var t=XO(`getMap`);return t&&t(e)}var Ij=Av;kj(sA,pO),kj(uA,hO),kj(uA,gO),kj(sA,VO),kj(uA,HO),kj(mA,Jk),yj(rO),bj(eA,iO),Mj(`default`,vO),wj({type:du,event:du,update:du},tt),wj({type:fu,event:fu,update:fu},tt),wj({type:pu,event:gu,update:pu,action:tt,refineEvent:Lj,publishNonRefinedEvent:!0}),wj({type:mu,event:gu,update:mu,action:tt,refineEvent:Lj,publishNonRefinedEvent:!0}),wj({type:hu,event:gu,update:hu,action:tt,refineEvent:Lj,publishNonRefinedEvent:!0});function Lj(e,t,n,r){return{eventContent:{selected:Qu(n),isFromClick:t.isFromClick||!1}}}vj(`default`,{}),vj(`dark`,LO);var Rj={},zj=[],Bj={registerPreprocessor:yj,registerProcessor:bj,registerPostInit:xj,registerPostUpdate:Sj,registerUpdateLifecycle:Cj,registerAction:wj,registerCoordinateSystem:Tj,registerLayout:Oj,registerVisual:kj,registerTransform:Ij,registerLoading:Mj,registerMap:Pj,registerImpl:YO,PRIORITY:hA,ComponentModel:cv,ComponentView:sO,SeriesModel:dy,ChartView:ab,registerComponentModel:function(e){cv.registerClass(e)},registerComponentView:function(e){sO.registerClass(e)},registerSeriesModel:function(e){dy.registerClass(e)},registerChartView:function(e){ab.registerClass(e)},registerCustomSeries:function(e,t){QO(e,t)},registerSubTypeDefaulter:function(e,t){cv.registerSubTypeDefaulter(e,t)},registerPainter:function(e,t){iD(e,t)}};function Vj(e){if(U(e)){z(e,function(e){Vj(e)});return}R(zj,e)>=0||(zj.push(e),W(e)&&(e={install:e}),e.install(Bj))}var Hj=function(){function e(){}return e.prototype.needIncludeZero=function(){return!this.option.scale},e.prototype.getCoordSysModel=function(){},e}(),Uj=function(e){D(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.getCoordSysModel=function(){return this.getReferringComponents(`grid`,vl).models[0]},t.type=`cartesian2dAxis`,t}(cv);Se(Uj,Hj);var Wj={show:!0,z:0,inverse:!1,name:``,nameLocation:`end`,nameRotate:null,nameTruncate:{maxWidth:null,ellipsis:`...`,placeholder:`.`},nameTextStyle:{},nameGap:15,silent:!1,triggerEvent:!1,tooltip:{show:!1},axisPointer:{},axisLine:{show:!0,onZero:`auto`,onZeroAxisIndex:null,lineStyle:{color:Z.color.axisLine,width:1,type:`solid`},symbol:[`none`,`none`],symbolSize:[10,15],breakLine:!0},axisTick:{show:!0,inside:!1,length:5,lineStyle:{width:1}},axisLabel:{show:!0,inside:!1,rotate:0,showMinLabel:null,showMaxLabel:null,margin:8,fontSize:12,color:Z.color.axisLabel,textMargin:[0,3]},splitLine:{show:!0,showMinLine:!0,showMaxLine:!0,lineStyle:{color:Z.color.axisSplitLine,width:1,type:`solid`}},splitArea:{show:!1,areaStyle:{color:[Z.color.backgroundTint,Z.color.backgroundTransparent]}},breakArea:{show:!0,itemStyle:{color:Z.color.neutral00,borderColor:Z.color.border,borderWidth:1,borderType:[3,3],opacity:.6},zigzagAmplitude:4,zigzagMinSpan:4,zigzagMaxSpan:20,zigzagZ:100,expandOnClick:!0},breakLabelLayout:{moveOverlap:`auto`}},Gj=F({boundaryGap:!0,deduplication:null,jitter:0,jitterOverlap:!0,jitterMargin:2,splitLine:{show:!1},axisTick:{alignWithLabel:!1,interval:`auto`,show:`auto`},axisLabel:{interval:`auto`}},Wj),Kj=F({boundaryGap:[0,0],axisLine:{show:`auto`},axisTick:{show:`auto`},splitNumber:5,minorTick:{show:!1,splitNumber:5,length:3,lineStyle:{}},minorSplitLine:{show:!1,lineStyle:{color:Z.color.axisMinorSplitLine,width:1}}},Wj),qj={category:Gj,value:Kj,time:F({splitNumber:6,axisLabel:{rich:{primary:{fontWeight:`bold`}}},splitLine:{show:!1}},Kj),log:L({logBase:10},Kj)};function Jj(e,t,n,r){z(fx,function(i,a){var o=F(F({},qj[a],!0),r,!0),s=function(e){D(n,e);function n(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t+`Axis.`+a,n}return n.prototype.mergeDefaultAndTheme=function(e,t){var n=rv(this),r=n?av(e):{};F(e,t.getTheme().get(a+`Axis`)),F(e,this.getDefaultOption()),e.type=Yj(e),n&&iv(e,r,n)},n.prototype.optionUpdated=function(){this.option.type===`category`&&(this.__ordinalMeta=_b.createByAxisModel(this))},n.prototype.getCategories=function(e){var t=this.option;if(t.type===`category`)return e?t.data:this.__ordinalMeta.categories},n.prototype.getOrdinalMeta=function(){return this.__ordinalMeta},n.prototype.updateAxisBreaks=function(e){var t=vC();return t?t.updateModelAxisBreak(this,e):{breaks:[]}},n.type=t+`Axis.`+a,n.defaultOption=o,n}(n);e.registerComponentModel(s)}),e.registerSubTypeDefaulter(t+`Axis`,Yj)}function Yj(e){return e.type||(e.data?`category`:`value`)}var Xj=function(){function e(e){this.type=`cartesian`,this._dimList=[],this._axes={},this.name=e||``}return e.prototype.getAxis=function(e){return this._axes[e]},e.prototype.getAxes=function(){return B(this._dimList,function(e){return this._axes[e]},this)},e.prototype.getAxesByScale=function(e){return e=e.toLowerCase(),Te(this.getAxes(),function(t){return t.scale.type===e})},e.prototype.addAxis=function(e){var t=e.dim;this._axes[t]=e,this._dimList.push(t)},e}(),Zj=[`x`,`y`];function Qj(e){return(e.type===`interval`||e.type===`time`)&&!Zg(e)}var $j=function(e){D(t,e);function t(){var t=e!==null&&e.apply(this,arguments)||this;return t.type=Nw,t.dimensions=Zj,t}return t.prototype.calcAffineTransform=function(){this._transform=this._invTransform=null;var e=this.getAxis(`x`).scale,t=this.getAxis(`y`).scale;if(Qj(e)&&Qj(t)){var n=wb(e,null),r=wb(t,null),i=this.dataToPoint([n[0],r[0]]),a=this.dataToPoint([n[1],r[1]]),o=n[1]-n[0],s=r[1]-r[0];if(o&&s){var c=(a[0]-i[0])/o,l=(a[1]-i[1])/s,u=i[0]-n[0]*c,d=i[1]-r[0]*l,f=this._transform=[c,0,0,l,u,d];this._invTransform=zt([],f)}}},t.prototype.getBaseAxis=function(){return this.getAxesByScale(`ordinal`)[0]||this.getAxesByScale(`time`)[0]||this.getAxis(`x`)},t.prototype.containPoint=function(e){var t=this.getAxis(`x`),n=this.getAxis(`y`);return t.contain(t.toLocalCoord(e[0]))&&n.contain(n.toLocalCoord(e[1]))},t.prototype.containData=function(e){return this.getAxis(`x`).containData(e[0])&&this.getAxis(`y`).containData(e[1])},t.prototype.containZone=function(e,t){var n=this.dataToPoint(e),r=this.dataToPoint(t),i=this.getArea(),a=new X(n[0],n[1],r[0]-n[0],r[1]-n[1]);return i.intersect(a)},t.prototype.dataToPoint=function(e,t,n){n||=[];var r=e[0],i=e[1];if(this._transform&&r!=null&&isFinite(r)&&i!=null&&isFinite(i))return dn(n,e,this._transform);var a=this.getAxis(`x`),o=this.getAxis(`y`);return n[0]=a.toGlobalCoord(a.dataToCoord(r,t)),n[1]=o.toGlobalCoord(o.dataToCoord(i,t)),n},t.prototype.clampData=function(e,t){var n=this.getAxis(`x`).scale,r=this.getAxis(`y`).scale,i=n.getExtent(),a=r.getExtent(),o=n.parse(e[0]),s=r.parse(e[1]);return t||=[],t[0]=Math.min(Math.max(Math.min(i[0],i[1]),o),Math.max(i[0],i[1])),t[1]=Math.min(Math.max(Math.min(a[0],a[1]),s),Math.max(a[0],a[1])),t},t.prototype.pointToData=function(e,t,n){if(n||=[],this._invTransform)return dn(n,e,this._invTransform);var r=this.getAxis(`x`),i=this.getAxis(`y`);return n[0]=r.coordToData(r.toLocalCoord(e[0]),t),n[1]=i.coordToData(i.toLocalCoord(e[1]),t),n},t.prototype.getOtherAxis=function(e){return this.getAxis(e.dim===`x`?`y`:`x`)},t.prototype.getArea=function(e){e||=0;var t=this.getAxis(`x`).getGlobalExtent(),n=this.getAxis(`y`).getGlobalExtent(),r=Math.min(t[0],t[1])-e,i=Math.min(n[0],n[1])-e;return new X(r,i,Math.max(t[0],t[1])-r+e,Math.max(n[0],n[1])-i+e)},t}(Xj);function eM(e,t){var n=e.scale,r=e.model,i=bw(n,r,r.ecModel,e,null),a=Nb(n),o=Nb(t)?t.intervalStub:t,s=a?n.intervalStub:n,c=n.base,l=o.getTicks(),u=o.getTicks({expandToNicedExtent:!0}),d=l.length-1,f,p,m;if(d===1)f=p=0,m=1;else if(d===2){var h=Xs(l[0].value-l[1].value),g=Xs(l[1].value-l[2].value);f=p=0,h===g?m=2:(m=1,h<g?f=h/g:p=g/h)}else{var _=o.getConfig().interval;f=(1-(l[0].value-u[0].value)/_)%1,p=(1-(u[d].value-l[d].value)/_)%1,m=d-+!!f-!!p}var v=i.zoomFixMM,y=v[0]||v[1],b=[i.fixMM[0]||y,i.fixMM[1]||y],x=n.getExtent(),S=s.getExtent(),C=zb(S,b),w,T,E,D,O,k;function A(e){for(var t=50,n=0;n<t&&!e();n++)E=a?E*Ys(c,2):Fb(E),D=Ib(E)}function j(){w=dc(k-E*f,D)}function ee(){T=dc(O+E*p,D)}function te(){k=f?dc(w+E*f,D):w}function M(){O=p?dc(T-E*p,D):T}if(b[0]&&b[1]){w=C[0],T=C[1],E=(T-w)/(m+f+p);var ne=e.getExtent(),re=Xs(ne[1]-ne[0]);D=_c([T,w],re,.5/m),te(),M(),Ic(D)&&(E=dc(E,D))}else{var ie=C[1]-C[0];E=a?Ys(Ec(ie),1):Oc(ie/m,2),D=Ib(E),b[0]?(w=C[0],A(function(){if(te(),O=dc(k+E*m,D),ee(),T>=C[1])return!0})):b[1]?(T=C[1],A(function(){if(M(),k=dc(O-E*m,D),j(),w<=C[0])return!0})):A(function(){k=dc($s(C[0]/E)*E,D),O=dc(Qs(C[1]/E)*E,D);var e=Zs((O-k)/E);if(e<=m){var t=m-e,n=void 0,r=i.incl0||a;if(r&&C[0]===0)n=[0,t];else if(r&&C[1]===0)n=[t,0];else{var o=Qs(t/2);n=t%2==0?[o,o]:w+T<C[0]+C[1]?[o,o+1]:[o+1,o]}if(k=dc(k-E*n[0],D),O=dc(O+E*n[1],D),j(),ee(),w<=C[0]&&T>=C[1])return!0}})}kx(n,b,S,[w,T],x,{interval:E,intervalCount:m,intervalPrecision:D,niceExtent:[k,O]})}function tM(e,t){var n=Nb(e),r=n?e.intervalStub:e,i=t.fixMinMax||[],a=n?e.getExtent():null,o=r.getExtent(),s=zb(o,i,t.rawExtentResult);r.setExtent(s[0],s[1]),s=r.getExtent();var c=n?rM(r,t):nM(r,t),l=c.intervalPrecision,u=c.interval,d=t.userInterval;d!=null&&(c.interval=d,c.intervalPrecision=Ib(d)),i[0]||(s[0]=dc(Qs(s[0]/u)*u,l)),i[1]||(s[1]=dc($s(s[1]/u)*u,l)),d!=null&&(c.niceExtent=s.slice()),kx(e,i,o,s,a,c)}function nM(e,t){var n=Vb(t.splitNumber,5),r=Eb(e),i=t.minInterval,a=t.maxInterval,o=Oc(r/n,!0);i!=null&&o<i&&(o=i),a!=null&&o>a&&(o=a);var s=Ib(o),c=e.getExtent(),l=[dc($s(c[0]/o)*o,s),dc(Qs(c[1]/o)*o,s)];return{interval:o,intervalPrecision:s,niceExtent:l}}function rM(e,t){var n=Vb(t.splitNumber,10),r=e.getExtent(),i=Eb(e),a=Ys(Ec(i),1);n/i*a<=.5&&(a*=10);var o=Ib(a),s=[dc($s(r[0]/a)*a,o),dc(Qs(r[1]/a)*a,o)];return{intervalPrecision:o,interval:a,niceExtent:s}}function iM(e){var t=e.scale,n=e.model,r=n.axis,i=n.ecModel;aM(t,n,r,i,null)}function aM(e,t,n,r,i){var a=bw(e,t,r,n,i),o=jb(e)||Mb(e);oM(e,{splitNumber:t.get(`splitNumber`),fixMinMax:a.fixMM,userInterval:t.get(`interval`),minInterval:o?t.get(`minInterval`):null,maxInterval:o?t.get(`maxInterval`):null,rawExtentResult:a}),n&&r&&Sw(n,e,a,r)}function oM(e,t){sM[e.type](e,t)}var sM={interval:tM,log:tM,time:ix,ordinal:tt},cM=[[3,1],[0,2]],lM=function(){function e(e,t,n){this.type=`grid`,this._coordsMap={},this._coordsList=[],this._axesMap={},this._axesList=[],this.axisPointerEnabled=!0,this.dimensions=Zj,this._initCartesian(e,t,n),this.model=e}return e.prototype.getRect=function(){return this._rect},e.prototype.update=function(e,t){var n=this._axesMap;z(this._axesList,function(e){mw(e,1);var t=e.scale;Pb(t)&&t.setSortInfo(e.model.get(`categorySortInfo`))});function r(e){for(var t=V(e),n=[],r=t.length-1;r>=0;r--){var i=e[+t[r]];i.__alignTo?n.push(i):iM(i)}z(n,function(e){mM(e,e.__alignTo)?iM(e):eM(e,e.__alignTo.scale)})}r(n.x),r(n.y);var i={};z(n.x,function(e){dM(n,`y`,e,i)}),z(n.y,function(e){dM(n,`x`,e,i)}),this.resize(this.model,t)},e.prototype.resize=function(e,t,n){var r=tv(e,t),i=this._rect=Q_(e.getBoxLayoutParams(),r.refContainer),a=this._axesMap,o=this._coordsList,s=e.get(`containLabel`);if(gM(a,i),!n){var c=bM(i,o,a,s,t),l=void 0;if(s)vM?(vM(this._axesList,i),gM(a,i)):l=yM(i.clone(),`axisLabel`,null,i,a,c,r);else{var u=SM(e,i,r),d=u.outerBoundsRect,f=u.parsedOuterBoundsContain,p=u.outerBoundsClamp;d&&(l=yM(d,f,p,i,a,c,r))}xM(i,a,nS.determine,null,l,r),z(this._coordsList,function(e){e.calcAffineTransform()})}},e.prototype.getAxis=function(e,t){var n=this._axesMap[e];if(n!=null)return n[t||0]},e.prototype.getAxes=function(){return this._axesList.slice()},e.prototype.getCartesian=function(e,t){if(e!=null&&t!=null){var n=`x`+e+`y`+t;return this._coordsMap[n]}K(e)&&(t=e.yAxisIndex,e=e.xAxisIndex);for(var r=0,i=this._coordsList;r<i.length;r++)if(i[r].getAxis(`x`).index===e||i[r].getAxis(`y`).index===t)return i[r]},e.prototype.getCartesians=function(){return this._coordsList.slice()},e.prototype.convertToPixel=function(e,t,n){var r=this._findConvertTarget(t);return r.cartesian?r.cartesian.dataToPoint(n):r.axis?r.axis.toGlobalCoord(r.axis.dataToCoord(n)):null},e.prototype.convertFromPixel=function(e,t,n){var r=this._findConvertTarget(t);return r.cartesian?r.cartesian.pointToData(n):r.axis?r.axis.coordToData(r.axis.toLocalCoord(n)):null},e.prototype._findConvertTarget=function(e){var t=e.seriesModel,n=e.xAxisModel||t&&t.getReferringComponents(`xAxis`,vl).models[0],r=e.yAxisModel||t&&t.getReferringComponents(`yAxis`,vl).models[0],i=e.gridModel,a=this._coordsList,o,s;return t?(o=t.coordinateSystem,R(a,o)<0&&(o=null)):n&&r?o=this.getCartesian(n.componentIndex,r.componentIndex):n?s=this.getAxis(`x`,n.componentIndex):r?s=this.getAxis(`y`,r.componentIndex):i&&i.coordinateSystem===this&&(o=this._coordsList[0]),{cartesian:o,axis:s}},e.prototype.containPoint=function(e){var t=this._coordsList[0];if(t)return t.containPoint(e)},e.prototype._initCartesian=function(e,t,n){var r=this,i=this,a={left:!1,right:!1,top:!1,bottom:!1},o={x:{},y:{}},s={x:0,y:0};if(t.eachComponent(`xAxis`,c(`x`),this),t.eachComponent(`yAxis`,c(`y`),this),!s.x||!s.y){this._axesMap={},this._axesList=[];return}this._axesMap=o,z(o.x,function(t,n){z(o.y,function(i,a){var o=`x`+n+`y`+a,s=new $j(o);s.master=r,s.model=e,r._coordsMap[o]=s,r._coordsList.push(s),s.addAxis(t),s.addAxis(i)})}),pM(o.x),pM(o.y);function c(t){return function(n,r){if(uM(n,e)){var c=n.get(`position`);t===`x`?c!==`top`&&c!==`bottom`&&(c=a.bottom?`top`:`bottom`):c!==`left`&&c!==`right`&&(c=a.left?`right`:`left`),a[c]=!0;var l=mx(n),u=new tC(t,hx(n,l,!0),[0,0],l,c);u.onBand=jx(u.scale,n),u.inverse=n.get(`inverse`),n.axis=u,u.model=n,u.grid=i,u.index=r,i._axesList.push(u),o[t][r]=u,s[t]++}}}},e.prototype.getTooltipAxes=function(e){var t=[],n=[];return z(this.getCartesians(),function(r){var i=e!=null&&e!==`auto`?r.getAxis(e):r.getBaseAxis(),a=r.getOtherAxis(i);R(t,i)<0&&t.push(i),R(n,a)<0&&n.push(a)}),{baseAxes:t,otherAxes:n}},e.create=function(t,n){var r=[];return t.eachComponent(`grid`,function(i,a){var o=new e(i,t,n);o.name=`grid_`+a,o.resize(i,n,!0),i.coordinateSystem=o,r.push(o),z(o._axesList,function(t){pw(t,e.dimIdxMap)})}),t.eachSeries(function(e){var t,n;ng({targetModel:e,coordSysType:Nw,coordSysProvider:r});function r(){var r=tw(e),i=r.xAxisModel,a=r.yAxisModel;return t=i.axis,n=a.axis,i.getCoordSysModel().coordinateSystem.getCartesian(i.componentIndex,a.componentIndex)}t&&n&&(US(t,e,Nw),US(n,e,Nw))},this),r},e.dimensions=Zj,e.dimIdxMap=Dh(Zj),e}();function uM(e,t){return e.getCoordSysModel()===t}function dM(e,t,n,r){n.getAxesOnZeroOf=function(){return a?[a]:[]};var i=e[t],a,o=n.model,s=o.get([`axisLine`,`onZero`]),c=o.get([`axisLine`,`onZeroAxisIndex`]);if(!s)return;if(c!=null)fM(s,i[c])&&(a=i[c]);else for(var l in i)if(et(i,l)&&fM(s,i[l])&&!r[u(i[l])]){a=i[l];break}a&&(r[u(a)]=!0);function u(e){return e.dim+`_`+e.index}}function fM(e,t){if(!t)return!1;var n=t.scale,r=gx(n,0,!1),i=t&&t.type!==`category`&&t.type!==`time`&&r!==3;return i&&e===`auto`&&vx(t)&&(i=!1),i}function pM(e){for(var t=V(e),n,r=[],i=t.length-1;i>=0;i--){var a=e[+t[i]];Ab(a.scale)&&Dx(a.model,a.type,!0)==null&&(a.model.get(`alignTicks`)&&a.model.get(`interval`)==null?r.push(a):n=a)}n||=r.pop(),n&&z(r,function(e){e.__alignTo=n})}function mM(e,t){return Zg(e.scale)||Zg(t.scale)||t.scale.getTicks().length<2}function hM(e,t){var n=e.getExtent(),r=n[0]+n[1];e.toGlobalCoord=e.dim===`x`?function(e){return e+t}:function(e){return r-e+t},e.toLocalCoord=e.dim===`x`?function(e){return e-t}:function(e){return r-e+t}}function gM(e,t){z(e.x,function(e){return _M(e,t.x,t.width)}),z(e.y,function(e){return _M(e,t.y,t.height)})}function _M(e,t,n){var r=[0,n],i=+!!e.inverse;e.setExtent(r[i],r[1-i]),hM(e,t)}var vM;function yM(e,t,n,r,i,a,o){xM(r,i,nS.estimate,t,!1,o);var s=[0,0,0,0];l(0),l(1),u(r,0,NaN),u(r,1,NaN);var c=Ee(s,function(e){return e>0})==null;return Sp(r,s,!0,!0,n),gM(i,r),c;function l(e){z(i[Jf[e]],function(t){if(Ex(t.model)){var n=a.ensureRecord(t.model),r=n.labelInfoList;if(r)for(var i=0;i<r.length;i++){var o=r[i],s=t.scale.normalize(Ax(t.scale,CC(o.label).labelInfo.tick));s=e===1?1-s:s,u(o.rect,e,s),u(o.rect,1-e,NaN)}var c=n.nameLayout;if(c){var s=Tx(n.nameLocation)?.5:NaN;u(c.rect,e,s),u(c.rect,1-e,NaN)}}})}function u(t,n,r){var i=e[Jf[n]]-t[Jf[n]],a=t[Yf[n]]+t[Jf[n]]-(e[Yf[n]]+e[Jf[n]]);i=d(i,1-r),a=d(a,r);var o=cM[n][0],c=cM[n][1];s[o]=Ys(s[o],i),s[c]=Ys(s[c],a)}function d(e,t){return e>0&&!Le(t)&&t>1e-4&&(e/=t),e}}function bM(e,t,n,r,i){var a=new TC(CM);return z(n,function(n){return z(n,function(n){if(Ex(n.model)){var o=!r;n.axisBuilder=nw(e,t,n.model,i,a,o)}})}),a}function xM(e,t,n,r,i,a){var o=n===nS.determine;z(t,function(t){return z(t,function(t){Ex(t.model)&&(rw(t.axisBuilder,e,t.model),t.axisBuilder.build(o?{axisTickLabelDetermine:!0}:{axisTickLabelEstimate:!0},{noPxChange:i}))})});var s={x:0,y:0};c(0),c(1);function c(t){s[Jf[1-t]]=e[Yf[t]]<=a.refContainer[Yf[t]]*.5?0:1-t==1?2:1}z(t,function(e,t){return z(e,function(e){Ex(e.model)&&((r===`all`||o)&&e.axisBuilder.build({axisName:!0},{nameMarginLevel:s[t]}),o&&e.axisBuilder.build({axisLine:!0}))})})}function SM(e,t,n){var r,i=e.get(`outerBoundsMode`,!0);i===`same`?r=t.clone():(i==null||i===`auto`)&&(r=Q_(e.get(`outerBounds`,!0)||jw,n.refContainer));var a=e.get(`outerBoundsContain`,!0),o=a==null||a===`auto`||R([`all`,`axisLabel`],a)<0?`all`:a,s=[cc(q(e.get(`outerBoundsClampWidth`,!0),Mw[0]),t.width),cc(q(e.get(`outerBoundsClampHeight`,!0),Mw[1]),t.height)];return{outerBoundsRect:r,parsedOuterBoundsContain:o,outerBoundsClamp:s}}var CM=function(e,t,n,r,i,a){var o=n.axis.dim===`x`?`y`:`x`;kC(e,t,n,r,i,a),Tx(e.nameLocation)||z(t.recordMap[o],function(e){e&&e.labelInfoList&&e.dirVec&&jC(e.labelInfoList,e.dirVec,r,i)})};function wM(e,t){var n={axesInfo:{},seriesInvolved:!1,coordSysAxesInfo:{},coordSysMap:{}};return TM(n,e,t),n.seriesInvolved&&DM(n,e),n}function TM(e,t,n){var r=t.getComponent(`tooltip`),i=t.getComponent(`axisPointer`),a=i.get(`link`,!0)||[],o=[];z(n.getCoordinateSystems(),function(n){if(!n.axisPointerEnabled)return;var s=PM(n.model),c=e.coordSysAxesInfo[s]={};e.coordSysMap[s]=n;var l=n.model.getModel(`tooltip`,r);if(z(n.getAxes(),Oe(p,!1,null)),n.getTooltipAxes&&r&&l.get(`show`)){var u=l.get(`trigger`)===`axis`,d=l.get([`axisPointer`,`type`])===`cross`,f=n.getTooltipAxes(l.get([`axisPointer`,`axis`]));(u||d)&&z(f.baseAxes,Oe(p,!d||`cross`,u)),d&&z(f.otherAxes,Oe(p,`cross`,!1))}function p(r,s,u){var d=u.model.getModel(`axisPointer`,i),f=d.get(`show`);if(f&&(f!==`auto`||r||NM(d))){s??=d.get(`triggerTooltip`),d=r?EM(u,l,i,t,r,s):d;var p=d.get(`snap`),m=d.get(`triggerEmphasis`),h=PM(u.model),g=s||p||u.type===`category`,_=e.axesInfo[h]={key:h,axis:u,coordSys:n,axisPointerModel:d,triggerTooltip:s,triggerEmphasis:m,involveSeries:g,snap:p,useHandle:NM(d),seriesModels:[],linkGroup:null};c[h]=_,e.seriesInvolved=e.seriesInvolved||g;var v=OM(a,u);if(v!=null){var y=o[v]||(o[v]={axesInfo:{}});y.axesInfo[h]=_,y.mapper=a[v].mapper,_.linkGroup=y}}}})}function EM(e,t,n,r,i,a){var o=t.getModel(`axisPointer`),s=[`type`,`snap`,`lineStyle`,`shadowStyle`,`label`,`animation`,`animationDurationUpdate`,`animationEasingUpdate`,`z`],c={};z(s,function(e){c[e]=P(o.get(e))}),c.snap=e.type!==`category`&&!!a,o.get(`type`)===`cross`&&(c.type=`line`);var l=c.label||={};if(l.show??=!1,i===`cross`&&(l.show=o.get([`label`,`show`])??!0,!a)){var u=c.lineStyle=o.get(`crossStyle`);u&&L(l,u.textStyle)}return e.model.getModel(`axisPointer`,new pm(c,n,r))}function DM(e,t){t.eachSeries(function(t){var n=t.coordinateSystem,r=t.get([`tooltip`,`trigger`],!0),i=t.get([`tooltip`,`show`],!0);n&&n.model&&r!==`none`&&r!==!1&&r!==`item`&&i!==!1&&t.get([`axisPointer`,`show`],!0)!==!1&&z(e.coordSysAxesInfo[PM(n.model)],function(e){var r=e.axis;n.getAxis(r.dim)===r&&(e.seriesModels.push(t),e.seriesDataCount??=0,e.seriesDataCount+=t.getData().count())})})}function OM(e,t){for(var n=t.model,r=t.dim,i=0;i<e.length;i++){var a=e[i]||{};if(kM(a[r+`AxisId`],n.id)||kM(a[r+`AxisIndex`],n.componentIndex)||kM(a[r+`AxisName`],n.name))return i}}function kM(e,t){return e===`all`||U(e)&&R(e,t)>=0||e===t}function AM(e){var t=jM(e);if(t){var n=t.axisPointerModel,r=t.axis.scale,i=n.option,a=n.get(`status`),o=n.get(`value`);o!=null&&(o=r.parse(o));var s=NM(n);a??(i.status=s?`show`:`hide`);var c=r.getExtent();(o==null||o>c[1])&&(o=c[1]),o<c[0]&&(o=c[0]),i.value=o,s&&(i.status=t.axis.scale.isBlank()?`hide`:`show`)}}function jM(e){var t=(e.ecModel.getComponent(`axisPointer`)||{}).coordSysAxesInfo;return t&&t.axesInfo[PM(e)]}function MM(e){var t=jM(e);return t&&t.axisPointerModel}function NM(e){return!!e.get([`handle`,`show`])}function PM(e){return e.type+`||`+e.id}var FM={},IM=function(e){D(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.prototype.render=function(t,n,r,i){this.axisPointerClass&&AM(t),e.prototype.render.apply(this,arguments),this._doUpdateAxisPointerClass(t,r,!0)},t.prototype.updateAxisPointer=function(e,t,n,r){this._doUpdateAxisPointerClass(e,n,!1)},t.prototype.remove=function(e,t){var n=this._axisPointer;n&&n.remove(t)},t.prototype.dispose=function(t,n){this._disposeAxisPointer(n),e.prototype.dispose.apply(this,arguments)},t.prototype._doUpdateAxisPointerClass=function(e,n,r){var i=t.getAxisPointerClass(this.axisPointerClass);if(i){var a=MM(e);a?(this._axisPointer||=new i).render(e,a,n,r):this._disposeAxisPointer(n)}},t.prototype._disposeAxisPointer=function(e){this._axisPointer&&this._axisPointer.dispose(e),this._axisPointer=null},t.registerAxisPointerClass=function(e,t){FM[e]=t},t.getAxisPointerClass=function(e){return e&&FM[e]},t.type=`axis`,t}(sO),LM=ml();function RM(e,t,n,r){var i=n.axis;if(!i.scale.isBlank()){var a=n.getModel(`splitArea`),o=a.getModel(`areaStyle`),s=o.get(`color`),c=r.coordinateSystem.getRect(),l=i.getTicksCoords({tickModel:a,breakTicks:`none`,pruneByBreak:`preserve_extent_bound`});if(l.length){var u=s.length,d=LM(e).splitAreaColors,f=J(),p=0;if(d)for(var m=0;m<l.length;m++){var h=d.get(l[m].tickValue);if(h!=null){p=(h+(u-1)*m)%u;break}}var g=i.toGlobalCoord(l[0].coord),_=o.getAreaStyle();s=U(s)?s:[s];for(var m=1;m<l.length;m++){var v=i.toGlobalCoord(l[m].coord),y=void 0,b=void 0,x=void 0,S=void 0;i.isHorizontal()?(y=g,b=c.y,x=v-y,S=c.height,g=y+x):(y=c.x,b=g,x=c.width,S=v-b,g=b+S);var C=l[m-1].tickValue;C!=null&&f.set(C,p),t.add(new Es({anid:C==null?null:`area_`+C,shape:{x:y,y:b,width:x,height:S},style:L({fill:s[p]},_),autoBatch:!0,silent:!0})),p=(p+1)%u}LM(e).splitAreaColors=f}}}function zM(e){LM(e).splitAreaColors=null}var BM=[`splitArea`,`splitLine`,`minorSplitLine`,`breakArea`],VM=function(e){D(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n.axisPointerClass=`CartesianAxisPointer`,n}return t.prototype.render=function(t,n,r,i){this.group.removeAll();var a=this._axisGroup;this._axisGroup=new Fd,this.group.add(this._axisGroup),Ex(t)&&(this._axisGroup.add(t.axis.axisBuilder.group),z(BM,function(e){t.get([e,`show`])&&HM[e](this,this._axisGroup,t,t.getCoordSysModel(),r)},this),i&&i.type===`changeAxisOrder`&&i.isInitSort||mp(a,this._axisGroup,t),e.prototype.render.call(this,t,n,r,i))},t.prototype.remove=function(){zM(this)},t.type=`cartesianAxis`,t}(IM),HM={splitLine:function(e,t,n,r,i){var a=n.axis;if(!a.scale.isBlank()){var o=n.getModel(`splitLine`),s=o.getModel(`lineStyle`),c=s.get(`color`),l=o.get(`showMinLine`)!==!1,u=o.get(`showMaxLine`)!==!1;c=U(c)?c:[c];for(var d=r.coordinateSystem.getRect(),f=a.isHorizontal(),p=0,m=a.getTicksCoords({tickModel:o,breakTicks:`none`,pruneByBreak:`preserve_extent_bound`}),h=[],g=[],_=s.getLineStyle(),v=0;v<m.length;v++){var y=a.toGlobalCoord(m[v].coord);if(!(v===0&&!l||v===m.length-1&&!u)){var b=m[v].tickValue;f?(h[0]=y,h[1]=d.y,g[0]=y,g[1]=d.y+d.height):(h[0]=d.x,h[1]=y,g[0]=d.x+d.width,g[1]=y);var x=p++%c.length,S=new mf({anid:b==null?null:`line_`+b,autoBatch:!0,shape:{x1:h[0],y1:h[1],x2:g[0],y2:g[1]},style:L({stroke:c[x]},_),silent:!0});op(S.shape,_.lineWidth),t.add(S)}}}},minorSplitLine:function(e,t,n,r,i){var a=n.axis,o=n.getModel(`minorSplitLine`).getModel(`lineStyle`),s=r.coordinateSystem.getRect(),c=a.isHorizontal(),l=a.getMinorTicksCoords();if(l.length)for(var u=[],d=[],f=o.getLineStyle(),p=0;p<l.length;p++)for(var m=0;m<l[p].length;m++){var h=a.toGlobalCoord(l[p][m].coord);c?(u[0]=h,u[1]=s.y,d[0]=h,d[1]=s.y+s.height):(u[0]=s.x,u[1]=h,d[0]=s.x+s.width,d[1]=h);var g=new mf({anid:`minor_line_`+l[p][m].tickValue,autoBatch:!0,shape:{x1:u[0],y1:u[1],x2:d[0],y2:d[1]},style:f,silent:!0});op(g.shape,f.lineWidth),t.add(g)}},splitArea:function(e,t,n,r,i){RM(e,t,n,r)},breakArea:function(e,t,n,r,i){var a=vC(),o=n.axis.scale;a&&o.type!==`ordinal`&&a.rectCoordBuildBreakAxis(t,e,n,r.coordinateSystem.getRect(),i)}},UM=function(e){D(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.type=`xAxis`,t}(VM),WM=function(e){D(t,e);function t(){var t=e!==null&&e.apply(this,arguments)||this;return t.type=UM.type,t}return t.type=`yAxis`,t}(VM),GM=function(e){D(t,e);function t(){var t=e!==null&&e.apply(this,arguments)||this;return t.type=`grid`,t}return t.prototype.render=function(e,t){this.group.removeAll(),e.get(`show`)&&this.group.add(new Es({shape:e.coordinateSystem.getRect(),style:L({fill:e.get(`backgroundColor`)},e.getItemStyle()),silent:!0,z2:-1}))},t.type=`grid`,t}(sO),KM={offset:0};function qM(e){e.registerComponentView(GM),e.registerComponentModel(Pw),e.registerCoordinateSystem(`cartesian2d`,lM),Jj(e,`x`,Uj,KM),Jj(e,`y`,Uj,KM),e.registerComponentView(UM),e.registerComponentView(WM),e.registerPreprocessor(function(e){e.xAxis&&e.yAxis&&!e.grid&&(e.grid={})})}var JM=ml();function YM(e,t,n){JM(e)[t]=n}function XM(e,t,n){var r=JM(e);r[t]===n&&(r[t]=null)}function ZM(e,t){return!!JM(e)[t]}wj({type:`takeGlobalCursor`,event:`globalCursorTaken`,update:`update`},tt);var QM={axisPointer:1,tooltip:1,brush:1};function $M(e,t,n){var r=t.getComponentByElement(e.topTarget);if(!r||r===n||QM.hasOwnProperty(r.mainType))return!1;var i=r.coordinateSystem;if(!i||i.model===n)return!1;var a=Mp(r),o=Mp(n);return!((a.zlevel-o.zlevel||a.z-o.z)<=0)}var eN=function(e){D(t,e);function t(t){var n=e.call(this)||this;n._zr=t;var r=H(n._mousedownHandler,n),i=H(n._mousemoveHandler,n),a=H(n._mouseupHandler,n),o=H(n._mousewheelHandler,n),s=H(n._pinchHandler,n);return n.enable=function(e,n){var c=n.zInfo,l=Mp(c.component),u=l.z,d=l.zlevel,f={component:c.component,z:u,zlevel:d,z2:q(c.z2,-1/0)},p=I({},n.triggerInfo);this._opt=L(I({},n),{zoomOnMouseWheel:!0,moveOnMouseMove:!0,moveOnMouseWheel:!1,preventDefaultMouseMove:!0,zInfoParsed:f,triggerInfo:p,cursorGrab:`grab`,cursorGrabbing:`grabbing`}),e??=!0,(!this._enabled||this._controlType!==e)&&(this.disable(),this._enabled=!0,(e===!0||e===`move`||e===`pan`)&&(iN(t,`mousedown`,r,f),iN(t,`mousemove`,i,f),iN(t,`mouseup`,a,f)),(e===!0||e===`scale`||e===`zoom`)&&(iN(t,`mousewheel`,o,f),iN(t,`pinch`,s,f)))},n.disable=function(){this._enabled&&(this._enabled=!1,aN(t,`mousedown`,r),aN(t,`mousemove`,i),aN(t,`mouseup`,a),aN(t,`mousewheel`,o),aN(t,`pinch`,s))},n}return t.prototype.isDragging=function(){return this._dragging},t.prototype.isPinching=function(){return this._pinching},t.prototype._checkPointer=function(e,t,n){var r=this._opt,i=r.zInfoParsed;if($M(e,r.api,i.component))return!1;var a=r.triggerInfo,o=a.roamTrigger,s=!1;return o===`global`&&(s=!0),s||=a.isInSelf(e,t,n),s&&a.isInClip&&!a.isInClip(e,t,n)&&(s=!1),s},t.prototype._decideCursorStyle=function(e,t,n,r){var i=e.target;if(!i&&this._checkPointer(e,t,n))return this._opt.cursorGrab;if(r)return i&&i.cursor||`default`},t.prototype.dispose=function(){this.disable()},t.prototype._mousedownHandler=function(e){if(!(XT(e)||tN(e))){for(var t=e.target;t;){if(t.draggable)return;t=t.__hostTarget||t.parent}var n=e.offsetX,r=e.offsetY;this._checkPointer(e,n,r)&&(this._x=n,this._y=r,this._dragging=!0)}},t.prototype._mousemoveHandler=function(e){var t=this._zr;if(!(e.gestureEvent===`pinch`||ZM(t,`globalPan`)||tN(e))){var n=e.offsetX,r=e.offsetY;if(!this._dragging||!lN(`moveOnMouseMove`,e,this._opt)){var i=this._decideCursorStyle(e,n,r,!1);i&&t.setCursorStyle(i);return}t.setCursorStyle(this._opt.cursorGrabbing);var a=this._x,o=this._y,s=n-a,c=r-o;this._x=n,this._y=r,this._opt.preventDefaultMouseMove&&YT(e.event),e.__ecRoamConsumed=!0,cN(this,`pan`,`moveOnMouseMove`,e,{dx:s,dy:c,oldX:a,oldY:o,newX:n,newY:r,isAvailableBehavior:null})}},t.prototype._mouseupHandler=function(e){if(!tN(e)){var t=this._zr;if(!XT(e)){this._dragging=!1;var n=this._decideCursorStyle(e,e.offsetX,e.offsetY,!0);n&&t.setCursorStyle(n)}}},t.prototype._mousewheelHandler=function(e){if(!tN(e)){var t=lN(`zoomOnMouseWheel`,e,this._opt),n=lN(`moveOnMouseWheel`,e,this._opt),r=e.wheelDelta,i=Math.abs(r),a=e.offsetX,o=e.offsetY;if(r!==0&&(t||n)){if(t){var s=i>3?1.4:i>1?1.2:1.1,c=r>0?s:1/s;this._checkTriggerMoveZoom(this,`zoom`,`zoomOnMouseWheel`,e,{scale:c,originX:a,originY:o,isAvailableBehavior:null})}if(n){var l=Math.abs(r),u=(r>0?1:-1)*(l>3?.4:l>1?.15:.05);this._checkTriggerMoveZoom(this,`scrollMove`,`moveOnMouseWheel`,e,{scrollDelta:u,originX:a,originY:o,isAvailableBehavior:null})}}}},t.prototype._pinchHandler=function(e){if(!(ZM(this._zr,`globalPan`)||tN(e))){var t=e.pinchScale>1?1.1:1/1.1;this._checkTriggerMoveZoom(this,`zoom`,null,e,{scale:t,originX:e.pinchX,originY:e.pinchY,isAvailableBehavior:null})}},t.prototype._checkTriggerMoveZoom=function(e,t,n,r,i){e._checkPointer(r,i.originX,i.originY)&&(YT(r.event),r.__ecRoamConsumed=!0,cN(e,t,n,r,i))},t}(ka);function tN(e){return e.__ecRoamConsumed}var nN=ml();function rN(e){var t=nN(e);return t.roam=t.roam||{},t.uniform=t.uniform||{},t}function iN(e,t,n,r){for(var i=rN(e).roam,a=i[t]=i[t]||[],o=0;o<a.length;o++){var s=a[o].zInfoParsed;if((s.zlevel-r.zlevel||s.z-r.z||s.z2-r.z2)<=0)break}a.splice(o,0,{listener:n,zInfoParsed:r}),oN(e,t)}function aN(e,t,n){for(var r=rN(e).roam[t]||[],i=0;i<r.length;i++)if(r[i].listener===n){r.splice(i,1),r.length||sN(e,t);return}}function oN(e,t){var n=rN(e);n.uniform[t]||e.on(t,n.uniform[t]=function(e){var r=n.roam[t];if(r)for(var i=0;i<r.length;i++)r[i].listener(e)})}function sN(e,t){var n=rN(e).uniform;n[t]&&(e.off(t,n[t]),n[t]=null)}function cN(e,t,n,r,i){i.isAvailableBehavior=H(lN,null,n,r),e.trigger(t,i)}function lN(e,t,n){var r=n[e];return!e||r&&(!G(r)||t.event[r+`Key`])}function uN(e){G(e)&&(e=new DOMParser().parseFromString(e,`text/xml`));var t=e;for(t.nodeType===9&&(t=t.firstChild);t.nodeName.toLowerCase()!==`svg`||t.nodeType!==1;)t=t.nextSibling;return t}var dN,fN={fill:`fill`,stroke:`stroke`,"stroke-width":`lineWidth`,opacity:`opacity`,"fill-opacity":`fillOpacity`,"stroke-opacity":`strokeOpacity`,"stroke-dasharray":`lineDash`,"stroke-dashoffset":`lineDashOffset`,"stroke-linecap":`lineCap`,"stroke-linejoin":`lineJoin`,"stroke-miterlimit":`miterLimit`,"font-family":`fontFamily`,"font-size":`fontSize`,"font-style":`fontStyle`,"font-weight":`fontWeight`,"text-anchor":`textAlign`,visibility:`visibility`,display:`display`},pN=V(fN),mN={"alignment-baseline":`textBaseline`,"stop-color":`stopColor`},hN=V(mN),gN=function(){function e(){this._defs={},this._root=null}return e.prototype.parse=function(e,t){t||={};var n=uN(e);this._defsUsePending=[];var r=new Fd;this._root=r;var i=[],a=n.getAttribute(`viewBox`)||``,o=parseFloat(n.getAttribute(`width`)||t.width),s=parseFloat(n.getAttribute(`height`)||t.height);isNaN(o)&&(o=null),isNaN(s)&&(s=null),SN(n,r,null,!0,!1);for(var c=n.firstChild;c;)this._parseNode(c,r,i,null,!1,!1),c=c.nextSibling;EN(this._defs,this._defsUsePending),this._defsUsePending=[];var l,u;if(a){var d=ON(a);d.length>=4&&(l={x:parseFloat(d[0]||0),y:parseFloat(d[1]||0),width:parseFloat(d[2]),height:parseFloat(d[3])})}if(l&&o!=null&&s!=null&&(u=FN(l,{x:0,y:0,width:o,height:s}),!t.ignoreViewBox)){var f=r;r=new Fd,r.add(f),f.scaleX=f.scaleY=u.scale,f.x=u.x,f.y=u.y}return!t.ignoreRootClip&&o!=null&&s!=null&&r.setClipPath(new Es({shape:{x:0,y:0,width:o,height:s}})),{root:r,width:o,height:s,viewBoxRect:l,viewBoxTransform:u,named:i}},e.prototype._parseNode=function(e,t,n,r,i,a){var o=e.nodeName.toLowerCase(),s,c=r;if(o===`defs`&&(i=!0),o===`text`&&(a=!0),o===`defs`||o===`switch`)s=t;else{if(!i){var l=dN[o];if(l&&et(dN,o)){s=l.call(this,e,t);var u=e.getAttribute(`name`);if(u){var d={name:u,namedFrom:null,svgNodeTagLower:o,el:s};n.push(d),o===`g`&&(c=d)}else r&&n.push({name:r.name,namedFrom:r,svgNodeTagLower:o,el:s});t.add(s)}}var f=_N[o];if(f&&et(_N,o)){var p=f.call(this,e),m=e.getAttribute(`id`);m&&(this._defs[m]=p)}}if(s&&s.isGroup)for(var h=e.firstChild;h;)h.nodeType===1?this._parseNode(h,s,n,c,i,a):h.nodeType===3&&a&&this._parseText(h,s),h=h.nextSibling},e.prototype._parseText=function(e,t){var n=new ms({style:{text:e.textContent},silent:!0,x:this._textX||0,y:this._textY||0});bN(t,n),SN(e,n,this._defsUsePending,!1,!1),CN(n,t);var r=n.style,i=r.fontSize;i&&i<9&&(r.fontSize=9,n.scaleX*=i/9,n.scaleY*=i/9),r.font=(r.fontSize||r.fontFamily)&&[r.fontStyle,r.fontWeight,(r.fontSize||12)+`px`,r.fontFamily||`sans-serif`].join(` `);var a=n.getBoundingRect();return this._textX+=a.width,t.add(n),n},e.internalField=(function(){dN={g:function(e,t){var n=new Fd;return bN(t,n),SN(e,n,this._defsUsePending,!1,!1),n},rect:function(e,t){var n=new Es;return bN(t,n),SN(e,n,this._defsUsePending,!1,!1),n.setShape({x:parseFloat(e.getAttribute(`x`)||`0`),y:parseFloat(e.getAttribute(`y`)||`0`),width:parseFloat(e.getAttribute(`width`)||`0`),height:parseFloat(e.getAttribute(`height`)||`0`)}),n.silent=!0,n},circle:function(e,t){var n=new Ld;return bN(t,n),SN(e,n,this._defsUsePending,!1,!1),n.setShape({cx:parseFloat(e.getAttribute(`cx`)||`0`),cy:parseFloat(e.getAttribute(`cy`)||`0`),r:parseFloat(e.getAttribute(`r`)||`0`)}),n.silent=!0,n},line:function(e,t){var n=new mf;return bN(t,n),SN(e,n,this._defsUsePending,!1,!1),n.setShape({x1:parseFloat(e.getAttribute(`x1`)||`0`),y1:parseFloat(e.getAttribute(`y1`)||`0`),x2:parseFloat(e.getAttribute(`x2`)||`0`),y2:parseFloat(e.getAttribute(`y2`)||`0`)}),n.silent=!0,n},ellipse:function(e,t){var n=new zd;return bN(t,n),SN(e,n,this._defsUsePending,!1,!1),n.setShape({cx:parseFloat(e.getAttribute(`cx`)||`0`),cy:parseFloat(e.getAttribute(`cy`)||`0`),rx:parseFloat(e.getAttribute(`rx`)||`0`),ry:parseFloat(e.getAttribute(`ry`)||`0`)}),n.silent=!0,n},polygon:function(e,t){var n=e.getAttribute(`points`),r;n&&(r=xN(n));var i=new lf({shape:{points:r||[]},silent:!0});return bN(t,i),SN(e,i,this._defsUsePending,!1,!1),i},polyline:function(e,t){var n=e.getAttribute(`points`),r;n&&(r=xN(n));var i=new df({shape:{points:r||[]},silent:!0});return bN(t,i),SN(e,i,this._defsUsePending,!1,!1),i},image:function(e,t){var n=new vs;return bN(t,n),SN(e,n,this._defsUsePending,!1,!1),n.setStyle({image:e.getAttribute(`xlink:href`)||e.getAttribute(`href`),x:+e.getAttribute(`x`),y:+e.getAttribute(`y`),width:+e.getAttribute(`width`),height:+e.getAttribute(`height`)}),n.silent=!0,n},text:function(e,t){var n=e.getAttribute(`x`)||`0`,r=e.getAttribute(`y`)||`0`,i=e.getAttribute(`dx`)||`0`,a=e.getAttribute(`dy`)||`0`;this._textX=parseFloat(n)+parseFloat(i),this._textY=parseFloat(r)+parseFloat(a);var o=new Fd;return bN(t,o),SN(e,o,this._defsUsePending,!1,!0),o},tspan:function(e,t){var n=e.getAttribute(`x`),r=e.getAttribute(`y`);n!=null&&(this._textX=parseFloat(n)),r!=null&&(this._textY=parseFloat(r));var i=e.getAttribute(`dx`)||`0`,a=e.getAttribute(`dy`)||`0`,o=new Fd;return bN(t,o),SN(e,o,this._defsUsePending,!1,!0),this._textX+=parseFloat(i),this._textY+=parseFloat(a),o},path:function(e,t){var n=Md(e.getAttribute(`d`)||``);return bN(t,n),SN(e,n,this._defsUsePending,!1,!1),n.silent=!0,n}}})(),e}(),_N={lineargradient:function(e){var t=new Cf(parseInt(e.getAttribute(`x1`)||`0`,10),parseInt(e.getAttribute(`y1`)||`0`,10),parseInt(e.getAttribute(`x2`)||`10`,10),parseInt(e.getAttribute(`y2`)||`0`,10));return vN(e,t),yN(e,t),t},radialgradient:function(e){var t=new wf(parseInt(e.getAttribute(`cx`)||`0`,10),parseInt(e.getAttribute(`cy`)||`0`,10),parseInt(e.getAttribute(`r`)||`0`,10));return vN(e,t),yN(e,t),t}};function vN(e,t){e.getAttribute(`gradientUnits`)===`userSpaceOnUse`&&(t.global=!0)}function yN(e,t){for(var n=e.firstChild;n;){if(n.nodeType===1&&n.nodeName.toLocaleLowerCase()===`stop`){var r=n.getAttribute(`offset`),i=void 0;i=r&&r.indexOf(`%`)>0?parseInt(r,10)/100:r?parseFloat(r):0;var a={};NN(n,a,a);var o=a.stopColor||n.getAttribute(`stop-color`)||`#000000`,s=a.stopOpacity||n.getAttribute(`stop-opacity`);if(s){var c=Ci(o);c&&c[3]&&(c[3]*=hi(s),o=Pi(c,`rgba`))}t.colorStops.push({offset:i,color:o})}n=n.nextSibling}}function bN(e,t){e&&e.__inheritedStyle&&(t.__inheritedStyle||={},L(t.__inheritedStyle,e.__inheritedStyle))}function xN(e){for(var t=ON(e),n=[],r=0;r<t.length;r+=2){var i=parseFloat(t[r]),a=parseFloat(t[r+1]);n.push([i,a])}return n}function SN(e,t,n,r,i){var a=t,o=a.__inheritedStyle=a.__inheritedStyle||{},s={};e.nodeType===1&&(jN(e,t),NN(e,o,s),r||PN(e,o,s)),a.style=a.style||{},o.fill!=null&&(a.style.fill=TN(a,`fill`,o.fill,n)),o.stroke!=null&&(a.style.stroke=TN(a,`stroke`,o.stroke,n)),z([`lineWidth`,`opacity`,`fillOpacity`,`strokeOpacity`,`miterLimit`,`fontSize`],function(e){o[e]!=null&&(a.style[e]=parseFloat(o[e]))}),z([`lineDashOffset`,`lineCap`,`lineJoin`,`fontWeight`,`fontFamily`,`fontStyle`,`textAlign`],function(e){o[e]!=null&&(a.style[e]=o[e])}),i&&(a.__selfStyle=s),o.lineDash&&(a.style.lineDash=B(ON(o.lineDash),function(e){return parseFloat(e)})),(o.visibility===`hidden`||o.visibility===`collapse`)&&(a.invisible=!0),o.display===`none`&&(a.ignore=!0)}function CN(e,t){var n=t.__selfStyle;if(n){var r=n.textBaseline,i=r;!r||r===`auto`||r===`baseline`?i=`alphabetic`:r===`before-edge`||r===`text-before-edge`?i=`top`:r===`after-edge`||r===`text-after-edge`?i=`bottom`:(r===`central`||r===`mathematical`)&&(i=`middle`),e.style.textBaseline=i}var a=t.__inheritedStyle;if(a){var o=a.textAlign,s=o;o&&(o===`middle`&&(s=`center`),e.style.textAlign=s)}}var wN=/^url\(\s*#(.*?)\)/;function TN(e,t,n,r){var i=n&&n.match(wN);if(i){var a=Ue(i[1]);r.push([e,t,a]);return}return n===`none`&&(n=null),n}function EN(e,t){for(var n=0;n<t.length;n++){var r=t[n];r[0].style[r[1]]=e[r[2]]}}var DN=/-?([0-9]*\.)?[0-9]+([eE]-?[0-9]+)?/g;function ON(e){return e.match(DN)||[]}var kN=/(translate|scale|rotate|skewX|skewY|matrix)\(([\-\s0-9\.eE,]*)\)/g,AN=Math.PI/180;function jN(e,t){var n=e.getAttribute(`transform`);if(n){n=n.replace(/,/g,` `);var r=[],i=null;n.replace(kN,function(e,t,n){return r.push(t,n),``});for(var a=r.length-1;a>0;a-=2){var o=r[a],s=r[a-1],c=ON(o);switch(i||=Mt(),s){case`translate`:It(i,i,[parseFloat(c[0]),parseFloat(c[1]||`0`)]);break;case`scale`:Rt(i,i,[parseFloat(c[0]),parseFloat(c[1]||c[0])]);break;case`rotate`:Lt(i,i,-parseFloat(c[0])*AN,[parseFloat(c[1]||`0`),parseFloat(c[2]||`0`)]);break;case`skewX`:var l=Math.tan(parseFloat(c[0])*AN);Ft(i,[1,0,l,1,0,0],i);break;case`skewY`:var u=Math.tan(parseFloat(c[0])*AN);Ft(i,[1,u,0,1,0,0],i);break;case`matrix`:i[0]=parseFloat(c[0]),i[1]=parseFloat(c[1]),i[2]=parseFloat(c[2]),i[3]=parseFloat(c[3]),i[4]=parseFloat(c[4]),i[5]=parseFloat(c[5])}}t.setLocalTransform(i)}}var MN=/([^\s:;]+)\s*:\s*([^:;]+)/g;function NN(e,t,n){var r=e.getAttribute(`style`);if(r){MN.lastIndex=0;for(var i;(i=MN.exec(r))!=null;){var a=i[1],o=et(fN,a)?fN[a]:null;o&&(t[o]=i[2]);var s=et(mN,a)?mN[a]:null;s&&(n[s]=i[2])}}}function PN(e,t,n){for(var r=0;r<pN.length;r++){var i=pN[r],a=e.getAttribute(i);a!=null&&(t[fN[i]]=a)}for(var r=0;r<hN.length;r++){var i=hN[r],a=e.getAttribute(i);a!=null&&(n[mN[i]]=a)}}function FN(e,t){var n=t.width/e.width,r=t.height/e.height,i=Math.min(n,r);return{scale:i,x:-(e.x+e.width/2)*i+(t.x+t.width/2),y:-(e.y+e.height/2)*i+(t.y+t.height/2)}}function IN(e,t){return new gN().parse(e,t)}var LN=1e-8;function RN(e,t){return Math.abs(e-t)<LN}function zN(e,t,n){var r=0,i=e[0];if(!i)return!1;for(var a=1;a<e.length;a++){var o=e[a];r+=Yo(i[0],i[1],o[0],o[1],t,n),i=o}var s=e[0];return(!RN(i[0],s[0])||!RN(i[1],s[1]))&&(r+=Yo(i[0],i[1],s[0],s[1],t,n)),r!==0}var BN=[];function VN(e,t){for(var n=0;n<e.length;n++)dn(e[n],e[n],t)}function HN(e,t,n,r){for(var i=0;i<e.length;i++){var a=e[i];r&&(a=r.project(a)),a&&isFinite(a[0])&&isFinite(a[1])&&(fn(t,t,a),pn(n,n,a))}}function UN(e){for(var t=0,n=0,r=0,i=e.length,a=e[i-1][0],o=e[i-1][1],s=0;s<i;s++){var c=e[s][0],l=e[s][1],u=a*l-c*o;t+=u,n+=(a+c)*u,r+=(o+l)*u,a=c,o=l}return t?[n/t/3,r/t/3,t]:[e[0][0]||0,e[0][1]||0]}var WN=function(){function e(e){this.name=e}return e.prototype.setCenter=function(e){this._center=e},e.prototype.getCenter=function(){var e=this._center;return e||=this._center=this.calcCenter(),e},e}(),GN=function(){function e(e,t){this.type=`polygon`,this.exterior=e,this.interiors=t}return e}(),KN=function(){function e(e){this.type=`linestring`,this.points=e}return e}(),qN=function(e){D(t,e);function t(t,n,r){var i=e.call(this,t)||this;return i.type=`geoJSON`,i.geometries=n,i._center=r&&[r[0],r[1]],i}return t.prototype.calcCenter=function(){for(var e=this.geometries,t,n=0,r=0;r<e.length;r++){var i=e[r],a=i.exterior,o=a&&a.length;o>n&&(t=i,n=o)}if(t)return UN(t.exterior);var s=this.getBoundingRect();return[s.x+s.width/2,s.y+s.height/2]},t.prototype.getBoundingRect=function(e){var t=this._rect;if(t&&!e)return t;var n=[1/0,1/0],r=[-1/0,-1/0],i=this.geometries;return z(i,function(t){t.type===`polygon`?HN(t.exterior,n,r,e):z(t.points,function(t){HN(t,n,r,e)})}),isFinite(n[0])&&isFinite(n[1])&&isFinite(r[0])&&isFinite(r[1])||(n[0]=n[1]=r[0]=r[1]=0),t=new X(n[0],n[1],r[0]-n[0],r[1]-n[1]),e||(this._rect=t),t},t.prototype.contain=function(e){var t=this.getBoundingRect(),n=this.geometries;if(!t.contain(e[0],e[1]))return!1;loopGeo:for(var r=0,i=n.length;r<i;r++){var a=n[r];if(a.type===`polygon`){var o=a.exterior,s=a.interiors;if(zN(o,e[0],e[1])){for(var c=0;c<(s?s.length:0);c++)if(zN(s[c],e[0],e[1]))continue loopGeo;return!0}}}return!1},t.prototype.transformTo=function(e,t,n,r){var i=this.getBoundingRect(),a=i.width/i.height;n?r||=n/a:n=a*r;for(var o=new X(e,t,n,r),s=i.calculateTransform(o),c=this.geometries,l=0;l<c.length;l++){var u=c[l];u.type===`polygon`?(VN(u.exterior,s),z(u.interiors,function(e){VN(e,s)})):z(u.points,function(e){VN(e,s)})}i=this._rect,i.copy(o),this._center=[i.x+i.width/2,i.y+i.height/2]},t.prototype.cloneShallow=function(e){e??=this.name;var n=new t(e,this.geometries,this._center);return n._rect=this._rect,n.transformTo=null,n},t}(WN),JN=function(e){D(t,e);function t(t,n){var r=e.call(this,t)||this;return r.type=`geoSVG`,r._elOnlyForCalculate=n,r}return t.prototype.calcCenter=function(){for(var e=this._elOnlyForCalculate,t=e.getBoundingRect(),n=[t.x+t.width/2,t.y+t.height/2],r=Nt(BN),i=e;i&&!i.isGeoSVGGraphicRoot;)Ft(r,i.getLocalTransform(),r),i=i.parent;return zt(r,r),dn(n,n,r),n},t}(WN),YN=J([`rect`,`circle`,`line`,`ellipse`,`polygon`,`polyline`,`path`,`text`,`tspan`,`g`]),XN=function(){function e(e,t){this.type=`geoSVG`,this._usedGraphicMap=J(),this._freedGraphics=[],this._mapName=e,this._parsedXML=uN(t)}return e.prototype.load=function(){var e=this._firstGraphic;if(!e){e=this._firstGraphic=this._buildGraphic(this._parsedXML),this._freedGraphics.push(e),this._boundingRect=this._firstGraphic.boundingRect.clone();var t=QN(e.named),n=t.regions,r=t.regionsMap;this._regions=n,this._regionsMap=r}return{boundingRect:this._boundingRect,regions:this._regions,regionsMap:this._regionsMap}},e.prototype._buildGraphic=function(e){var t,n;try{t=e&&IN(e,{ignoreViewBox:!0,ignoreRootClip:!0})||{},n=t.root,He(n!=null)}catch(e){throw Error(`Invalid svg format
|
|
16
|
+
`+e.message)}var r=new Fd;r.add(n),r.isGeoSVGGraphicRoot=!0;var i=t.width,a=t.height,o=t.viewBoxRect,s=this._boundingRect;if(!s){var c=void 0,l=void 0,u=void 0,d=void 0;if(i==null?o&&(c=o.x,u=o.width):(c=0,u=i),a==null?o&&(l=o.y,d=o.height):(l=0,d=a),c==null||l==null){var f=n.getBoundingRect();c??(c=f.x,u=f.width),l??(l=f.y,d=f.height)}s=this._boundingRect=new X(c,l,u,d)}if(o){var p=FN(o,s);n.scaleX=n.scaleY=p.scale,n.x=p.x,n.y=p.y}r.setClipPath(new Es({shape:s.plain()}));var m=[];return z(t.named,function(e){YN.get(e.svgNodeTagLower)!=null&&(m.push(e),ZN(e.el))}),{root:r,boundingRect:s,named:m}},e.prototype.useGraphic=function(e){var t=this._usedGraphicMap,n=t.get(e);return n||(n=this._freedGraphics.pop()||this._buildGraphic(this._parsedXML),t.set(e,n),n)},e.prototype.freeGraphic=function(e){var t=this._usedGraphicMap,n=t.get(e);n&&(t.removeKey(e),this._freedGraphics.push(n))},e}();function ZN(e){e.silent=!1,e.isGroup&&e.traverse(function(e){e.silent=!1})}function QN(e){var t=[],n=J();return z(e,function(e){if(e.namedFrom==null){var r=new JN(e.name,e.el);t.push(r),n.set(e.name,r)}}),{regions:t,regionsMap:n}}function $N(e){if(!e.UTF8Encoding)return e;var t=e,n=t.UTF8Scale;n??=1024;var r=t.features;return z(r,function(e){var t=e.geometry,r=t.encodeOffsets,i=t.coordinates;if(r)switch(t.type){case`LineString`:t.coordinates=tP(i,r,n);break;case`Polygon`:eP(i,r,n);break;case`MultiLineString`:eP(i,r,n);break;case`MultiPolygon`:z(i,function(e,t){return eP(e,r[t],n)})}}),t.UTF8Encoding=!1,t}function eP(e,t,n){for(var r=0;r<e.length;r++)e[r]=tP(e[r],t[r],n)}function tP(e,t,n){for(var r=[],i=t[0],a=t[1],o=0;o<e.length;o+=2){var s=e.charCodeAt(o)-64,c=e.charCodeAt(o+1)-64;s=s>>1^-(s&1),c=c>>1^-(c&1),s+=i,c+=a,i=s,a=c,r.push([s/n,c/n])}return r}function nP(e,t){return e=$N(e),B(Te(e.features,function(e){return e.geometry&&e.properties&&e.geometry.coordinates.length>0}),function(e){var n=e.properties,r=e.geometry,i=[];switch(r.type){case`Polygon`:var a=r.coordinates;i.push(new GN(a[0],a.slice(1)));break;case`MultiPolygon`:z(r.coordinates,function(e){e[0]&&i.push(new GN(e[0],e.slice(1)))});break;case`LineString`:i.push(new KN([r.coordinates]));break;case`MultiLineString`:i.push(new KN(r.coordinates))}var o=new qN(n[t||`name`],i,n.cp);return o.properties=n,o})}for(var rP=[126,25],iP=`南海诸岛`,aP=[[[0,3.5],[7,11.2],[15,11.9],[30,7],[42,.7],[52,.7],[56,7.7],[59,.7],[64,.7],[64,0],[5,0],[0,3.5]],[[13,16.1],[19,14.7],[16,21.7],[11,23.1],[13,16.1]],[[12,32.2],[14,38.5],[15,38.5],[13,32.2],[12,32.2]],[[16,47.6],[12,53.2],[13,53.2],[18,47.6],[16,47.6]],[[6,64.4],[8,70],[9,70],[8,64.4],[6,64.4]],[[23,82.6],[29,79.8],[30,79.8],[25,82.6],[23,82.6]],[[37,70.7],[43,62.3],[44,62.3],[39,70.7],[37,70.7]],[[48,51.1],[51,45.5],[53,45.5],[50,51.1],[48,51.1]],[[51,35],[51,28.7],[53,28.7],[53,35],[51,35]],[[52,22.4],[55,17.5],[56,17.5],[53,22.4],[52,22.4]],[[58,12.6],[62,7],[63,7],[60,12.6],[58,12.6]],[[0,3.5],[0,93.1],[64,93.1],[64,0],[63,0],[63,92.4],[1,92.4],[1,3.5],[0,3.5]]],oP=0;oP<aP.length;oP++)for(var sP=0;sP<aP[oP].length;sP++)aP[oP][sP][0]/=10.5,aP[oP][sP][1]/=-14,aP[oP][sP][0]+=rP[0],aP[oP][sP][1]+=rP[1];function cP(e,t){if(e===`china`){for(var n=0;n<t.length;n++)if(t[n].name===iP)return;t.push(new qN(iP,B(aP,function(e){return{type:`polygon`,exterior:e}}),rP))}}var lP={南海诸岛:[32,80],广东:[0,-10],香港:[10,5],澳门:[-10,10],天津:[5,5]};function uP(e,t){if(e===`china`){var n=lP[t.name];if(n){var r=t.getCenter();r[0]+=n[0]/10.5,r[1]+=-n[1]/14,t.setCenter(r)}}}var dP=[[[123.45165252685547,25.73527164402261],[123.49731445312499,25.73527164402261],[123.49731445312499,25.750734064600884],[123.45165252685547,25.750734064600884],[123.45165252685547,25.73527164402261]]];function fP(e,t){e===`china`&&t.name===`台湾`&&t.geometries.push({type:`polygon`,exterior:dP[0]})}var pP=`name`,mP=function(){function e(e,t,n){this.type=`geoJSON`,this._parsedMap=J(),this._mapName=e,this._specialAreas=n,this._geoJSON=gP(t)}return e.prototype.load=function(e,t){t||=pP;var n=this._parsedMap.get(t);if(!n){var r=this._parseToRegions(t);n=this._parsedMap.set(t,{regions:r,boundingRect:hP(r)})}var i=J(),a=[];return z(n.regions,function(t){var n=t.name;e&&et(e,n)&&(t=t.cloneShallow(n=e[n])),a.push(t),i.set(n,t)}),{regions:a,boundingRect:n.boundingRect||new X(0,0,0,0),regionsMap:i}},e.prototype._parseToRegions=function(e){var t=this._mapName,n=this._geoJSON,r;try{r=n?nP(n,e):[]}catch(e){throw Error(`Invalid geoJson format
|
|
17
|
+
`+e.message)}return cP(t,r),z(r,function(e){var n=e.name;uP(t,e),fP(t,e);var r=this._specialAreas&&this._specialAreas[n];r&&e.transformTo(r.left,r.top,r.width,r.height)},this),r},e.prototype.getMapForUser=function(){return{geoJson:this._geoJSON,geoJSON:this._geoJSON,specialAreas:this._specialAreas}},e}();function hP(e){for(var t,n=0;n<e.length;n++){var r=e[n].getBoundingRect();t||=r.clone(),t.union(r)}return t}function gP(e){return G(e)?typeof JSON<`u`&&JSON.parse?JSON.parse(e):Function(`return (`+e+`);`)():e}var _P=J(),vP={registerMap:function(e,t,n){if(t.svg){var r=new XN(e,t.svg);_P.set(e,r)}else{var i=t.geoJson||t.geoJSON;i&&!t.features?n=t.specialAreas:i=t;var r=new mP(e,i,n);_P.set(e,r)}},getGeoResource:function(e){return _P.get(e)},getMapForUser:function(e){var t=_P.get(e);return t&&t.type===`geoJSON`&&t.getMapForUser()},load:function(e,t,n){var r=_P.get(e);if(r)return r.load(t,n)}};function yP(e){return e}var bP=`view`,xP=function(e){D(t,e);function t(t,n,r){var i=e.call(this)||this;i.type=bP,i.dimensions=[`x`,`y`];var a=yP(i);a.invertY=t,a.lgCt=n,a.lgGeo=r;var o=a.trans=[];return o[0]=jr(),o[1]=jr(),o[2]=jr(),a.mtRaw=Mt(),a.mtRawInv=Mt(),a.mtOverall=Mt(),a.mtOverallInv=Mt(),a.zoom=1,i}return t.prototype.getBoundingRect=function(){return wP(null,this)},t.prototype.getViewRect=function(){return TP(null,this)},t.prototype.getRoamTransform=function(){return Ar(yP(this).trans[1])},t.prototype.dataToPoint=function(e,t,n){var r=t?yP(this).mtRaw:yP(this).mtOverall;return n||=[],r?dn(n,e,r):Ut(n,e)},t.prototype.pointToData=function(e,t,n){n||=[];var r=yP(this).mtOverallInv;return r?dn(n,e,r):Ut(n,e)},t.prototype.convertToPixel=function(e,t,n){var r=GP(t);return r===this?r.dataToPoint(n):null},t.prototype.convertFromPixel=function(e,t,n){var r=GP(t);return r===this?r.pointToData(n):null},t.prototype.containPoint=function(e){var t=yP(this);return An(SP,t.dataRect),Mn(SP,SP,t.mtOverall),Nn(SP,e[0],e[1])},t.dimensions=[`x`,`y`],t}(kr),SP=On();function CP(e,t){return Pt(e||[],yP(t).mtOverall)}function wP(e,t){return An(e||On(),yP(t).dataRect)}function TP(e,t){return An(e||On(),yP(t).viewRect)}function EP(e,t,n){return Nr(e||jr(),yP(t).trans[n])}function DP(e){return!!(e.dataRect&&e.viewRect)}function OP(e,t,n,r){r===1?HP(e,t.trans[0],n):Nr(e,n)}function kP(e,t,n){Ar(n,AP),Ft(AP,AP,t.mtRawInv),Lp(e,AP)}var AP=Mt();function jP(e,t){var n=yP(e);n.centerOption=t.getShallow(`center`);var r=n.zoomLimit=t.getShallow(`scaleLimit`);n.zoom=uF(t.getShallow(`zoom`)||1,r)||1,DP(n)&&PP(n)}function MP(e,t,n,r,i){var a=yP(e);a.dataRect=new X(t,n,r,i),DP(a)&&PP(a)}function NP(e,t,n,r,i){var a=yP(e);a.viewRect=new X(t,n,r,i),DP(a)&&PP(a)}function PP(e){FP(e),RP(e),BP(e)}function FP(e){var t=e.dataRect,n=e.viewRect,r=e.trans[0],i=e.invertY;i&&(t=An(LP,t),t.y=-t.y-t.height),jn(IP,t,n),Lp(r,IP),i&&(r.scaleY=-r.scaleY);var a=Ar(r,e.mtRaw);zt(e.mtRawInv,a)}var IP=Mt(),LP=On();function RP(e){var t=KP(e),n=rF(zP,e,e.centerOption)?dn(zP,zP,e.mtRaw):t,r=e.zoom,i=e.trans[1];i.x=t[0]-r*n[0],i.y=t[1]-r*n[1],i.scaleX=i.scaleY=r}var zP=[];function BP(e){var t=e.trans,n=t[1],r=t[0],i=t[2];HP(i,r,n);var a=Ar(i,e.mtOverall),o=zt(e.mtOverallInv,a);VP(e,i,a,o),VP(e.lgGeo,i,a,o)}function VP(e,t,n,r){e&&(Nr(e,t),Pt(e.transform||=[],n),Pt(e.invTransform||=[],r))}function HP(e,t,n){Ar(t,UP),Ar(n,WP),Ft(WP,WP,UP),Lp(e,WP)}var UP=Mt(),WP=Mt();function GP(e){var t=e.seriesModel;return t?t.coordinateSystem:null}function KP(e){var t=e.viewRect;return qP[0]=t.x+t.width/2,qP[1]=t.y+t.height/2,qP}var qP=[];function JP(e,t,n,r){var i=yP(n);i.syncBackEl=e,i.syncBackType=t,r?zf(e,EP(null,n,t),r):(EP(e,n,t),e.dirty())}function YP(e,t,n,r){var i=yP(e),a=i.syncBackEl;a?(a.stopAnimation(),OP(XP,i,a,i.syncBackType)):Nr(XP,i.trans[2]),kP(ZP,i,XP),r?tF(XP,ZP,i,r):Nr(XP,ZP),kP(XP,i,XP),sF(i,t,n,XP)}var XP=jr(),ZP=jr();function QP(e,t,n){var r=$P(t);r&&(YP(r,t,n,e),jP(r,t))}function $P(e){return e.__ownRoamView?e.__ownRoamView():null}function eF(e,t,n,r){n.setUpdatePayload(Ip(e));var i=iu(r,t);i&&i.__updateOnOwnRoam&&i.__updateOnOwnRoam(e,t,r)}function tF(e,t,n,r){r.dx!=null&&r.dy!=null&&(e.x+=r.dx,e.y+=r.dy);var i=r.zoom;if(i!=null){var a=nF(t),o=uF(a*i,n.zoomLimit)/a;e.x-=(r.originX-e.x)*(o-1),e.y-=(r.originY-e.y)*(o-1),e.scaleX*=o,e.scaleY*=o}}function nF(e){return e.scaleX}function rF(e,t,n){var r=t.dataRect;if(!n)return!1;var i=t.lgCt;return i?Gt(e,oc(n[0],i.w),oc(n[1],i.h)):r&&Gt(e,oc(n[0],r.width,r.x),oc(n[1],r.height,r.y)),!0}function iF(e,t){var n=e.centerOption,r=e.dataRect;return!n||e.lgCt?t.slice():[aF(0,t,n,r),aF(1,t,n,r)]}function aF(e,t,n,r){return n&&r&&r[Yf[e]]&&lc(n[e])?(t[e]-r[Jf[e]])/r[Yf[e]]*100+`%`:t[e]}function oF(e,t){return t&&e&&e.getShallow(`legacyViewCoordSysCenterBase`)?{w:t.getWidth(),h:t.getHeight()}:null}function sF(e,t,n,r){var i=KP(e),a=nF(r),o=Xs(a)>1e-6;cF[0]=o?(i[0]-r.x)/a:i[0],cF[1]=o?(i[1]-r.y)/a:i[1],dn(cF,cF,e.mtRawInv);var s=iF(e,cF);lF(t,s,a),z(n,function(e){e!==t&&lF(e,s.slice(),a)})}var cF=[];function lF(e,t,n){var r=e.option;r.center=t,r.zoom=n}function uF(e,t){if(t){var n=t.min||0,r=t.max||1/0;e=Math.max(Math.min(r,e),n)}return e}function dF(e,t,n,r,i,a,o,s){if(!$P(e)){n.disable();return}n.enable(q(e.get(`roam`),o),{api:t,zInfo:{component:e},triggerInfo:{roamTrigger:e.get(`roamTrigger`),isInSelf:r,isInClip:function(e,t,n){return!i||i.contain(t,n)}}});function c(n){var r=e.mainType,i=Ip(L({type:fF(r,e.subType,tu)},n));s&&(i.componentType=r),i[r+`Id`]=e.id,t.dispatchAction(i)}n.off(`pan`).off(`zoom`).on(`pan`,function(e){a&&a(`pan`),c({dx:e.dx,dy:e.dy})}).on(`zoom`,function(e){a&&a(`zoom`),c({zoom:e.scale,originX:e.originX,originY:e.originY})})}new X(0,0,0,0);function fF(e,t,n){return(e===`series`?t===`map`?`geo`:t:e)+n}var pF=[`rect`,`circle`,`line`,`ellipse`,`polygon`,`polyline`,`path`],mF=J(pF),hF=J(pF.concat([`g`])),gF=J(pF.concat([`g`])),_F=ml();function vF(e){var t=e.getItemStyle(),n=e.get(`areaColor`);return n!=null&&(t.fill=n),t}function yF(e){var t=e.style;t&&(t.stroke=t.stroke||t.fill,t.fill=null)}var bF=function(){function e(e){var t=this.group=new Fd,n=this._transformGroup=new Fd;t.add(n),this.uid=_g(`ec_map_draw`),this._controller=new eN(e.getZr()),n.add(this._regionsGroup=new Fd),n.add(this._svgGroup=new Fd)}return e.prototype.draw=function(e,t,n,r,i){var a=this,o=e.getData&&e.getData();DF(e)&&t.eachComponent({mainType:`series`,subType:`map`},function(t){!o&&t.getHostGeoModel()===e&&(o=t.getData())});var s=e.coordinateSystem,c=s.view,l=this._regionsGroup,u=this._transformGroup,d=!l.childAt(0)||i,f;s.shouldClip()?(f=TP(null,c),this.group.setClipPath(new Es({shape:f.clone()}))):this.group.removeClipPath(),JP(u,1,c,d?null:e);var p=o&&o.getVisual(`visualMeta`)&&o.getVisual(`visualMeta`).length>0;s.resourceType===`geoJSON`?this._buildGeoJSON(c,n,s,e,o,p):s.resourceType===`geoSVG`&&this._buildSVG(c,n,s,e,o,p),dF(e,n,this._controller,function(t,n,r){return e.coordinateSystem.containPoint([n,r])},f,function(){a._mouseDownFlag=!1},!1,!0),this._updateMapSelectHandler(e,l,n,r)},e.prototype.__updateOnOwnRoam=function(e){JP(this._transformGroup,1,e.coordinateSystem.view,null)},e.prototype._buildGeoJSON=function(e,t,n,r,i,a){var o=this._regionsGroupByName=J(),s=J(),c=this._regionsGroup,l=n.projection,u=l&&l.stream,d=Ar(EP(null,e,0));function f(e,t){return t&&(e=t(e)),e&&dn([],e,d)}function p(e){for(var t=[],n=!u&&l&&l.project,r=0;r<e.length;++r){var i=f(e[r],n);i&&t.push(i)}return t}function m(e){return{shape:{points:p(e)}}}c.removeAll(),z(n.regions,function(e){var n=e.name,d=o.get(n),p=s.get(n)||{},h=p.dataIdx,g=p.regionModel;if(!d){d=o.set(n,new Fd),c.add(d),h=i?i.indexOfName(n):null,g=DF(r)?r.getRegionModel(n):i?i.getItemModel(h):null;var _=g.get(`silent`,!0);_!=null&&(d.silent=_),s.set(n,{dataIdx:h,regionModel:g})}var v=[],y=[];z(e.geometries,function(e){if(e.type===`polygon`){var t=[e.exterior].concat(e.interiors||[]);u&&(t=EF(t,u)),z(t,function(e){v.push(new lf(m(e)))})}else{var n=e.points;u&&(n=EF(n,u,!0)),z(n,function(e){y.push(new df(m(e)))})}});var b=f(e.getCenter(),l&&l.project);function x(e,o){if(e.length){var s=new xf({culling:!0,segmentIgnoreThreshold:1,shape:{paths:e}});d.add(s),xF(t,i,a,s,h,g),SF(r,i,s,n,g,h,b),o&&(yF(s),z(s.states,yF))}}x(v),x(y,!0)}),o.each(function(e,t){var n=s.get(t),a=n.dataIdx,o=n.regionModel;CF(r,i,e,t,o,a),wF(r,i,e,t,o),TF(r,e,t,o)},this)},e.prototype._buildSVG=function(e,t,n,r,i,a){var o=n.map;EP(this._svgGroup,e,0),this._svgResourceChanged(o)&&(this._freeSVG(),this._useSVG(o));var s=this._svgDispatcherMap=J(),c=!1;z(this._svgGraphicRecord.named,function(e){var n=e.name,o=e.svgNodeTagLower,l=e.el,u=i?i.indexOfName(n):null,d=r.getRegionModel(n);mF.get(o)!=null&&l instanceof io&&xF(t,i,a,l,u,d),l instanceof io&&(l.culling=!0);var f=d.get(`silent`,!0);f!=null&&(l.silent=f),l.z2EmphasisLift=0,e.namedFrom||(gF.get(o)!=null&&SF(r,i,l,n,d,u,null),CF(r,i,l,n,d,u),wF(r,i,l,n,d),hF.get(o)!=null&&(TF(r,l,n,d)===`self`&&(c=!0),(s.get(n)||s.set(n,[])).push(l)))},this),this._enableBlurEntireSVG(c,r)},e.prototype._enableBlurEntireSVG=function(e,t){if(e&&DF(t)){var n=t.getModel([`blur`,`itemStyle`]).getItemStyle().opacity;this._svgGraphicRecord.root.traverse(function(e){if(!e.isGroup){Nu(e);var t=e.ensureState(`blur`).style||{};t.opacity==null&&n!=null&&(t.opacity=n),e.ensureState(`emphasis`)}})}},e.prototype.remove=function(){this._regionsGroup.removeAll(),this._regionsGroupByName=null,this._svgGroup.removeAll(),this._freeSVG(),this._controller.disable()},e.prototype.findHighDownDispatchers=function(e,t){if(e==null)return[];var n=t.coordinateSystem;if(n.resourceType===`geoJSON`){var r=this._regionsGroupByName;if(r){var i=r.get(e);return i?[i]:[]}}else if(n.resourceType===`geoSVG`)return this._svgDispatcherMap&&this._svgDispatcherMap.get(e)||[]},e.prototype._svgResourceChanged=function(e){return this._svgMapName!==e},e.prototype._useSVG=function(e){var t=vP.getGeoResource(e);if(t&&t.type===`geoSVG`){var n=t.useGraphic(this.uid);this._svgGroup.add(n.root),this._svgGraphicRecord=n,this._svgMapName=e}},e.prototype._freeSVG=function(){var e=this._svgMapName;if(e!=null){var t=vP.getGeoResource(e);t&&t.type===`geoSVG`&&t.freeGraphic(this.uid),this._svgGraphicRecord=null,this._svgDispatcherMap=null,this._svgGroup.removeAll(),this._svgMapName=null}},e.prototype.resetForLabelLayout=function(){this.group.traverse(function(e){var t=e.getTextContent();t&&(t.ignore=_F(t).ignore)})},e.prototype._updateMapSelectHandler=function(e,t,n,r){var i=this;t.off(`mousedown`),t.off(`click`),e.get(`selectedMode`)&&(t.on(`mousedown`,function(){i._mouseDownFlag=!0}),t.on(`click`,function(e){i._mouseDownFlag&&=!1}))},e}();function xF(e,t,n,r,i,a){var o=a.getModel(`itemStyle`),s=a.getModel([`emphasis`,`itemStyle`]),c=a.getModel([`blur`,`itemStyle`]),l=a.getModel([`select`,`itemStyle`]),u=vF(o),d=vF(s),f=vF(l),p=vF(c);if(t){var m=t.getItemVisual(i,`style`),h=t.getItemVisual(i,`decal`);n&&m.fill&&(u.fill=m.fill),h&&(u.decal=Hk(h,e))}r.setStyle(u),r.style.strokeNoScale=!0,r.ensureState(`emphasis`).style=d,r.ensureState(`select`).style=f,r.ensureState(`blur`).style=p,Nu(r)}function SF(e,t,n,r,i,a,o){var s=t&&isNaN(t.get(t.mapDimension(`value`),a)),c=t&&t.getItemLayout(a);if(DF(e)||s||c&&c.showLabel){var l=DF(e)?r:a,u=void 0;(!t||a>=0)&&(u=e);var d=o?{normal:{align:`center`,verticalAlign:`middle`}}:null;Up(n,Wp(i),{labelFetcher:u,labelDataIndex:l,defaultText:r},d);var f=n.getTextContent();if(f&&(_F(f).ignore=f.ignore,n.textConfig&&o)){var p=n.getBoundingRect().clone();n.textConfig.layoutRect=p,n.textConfig.position=[(o[0]-p.x)/p.width*100+`%`,(o[1]-p.y)/p.height*100+`%`]}n.disableLabelAnimation=!0}else n.removeTextContent(),n.removeTextConfig(),n.disableLabelAnimation=null}function CF(e,t,n,r,i,a){t?t.setItemGraphicEl(a,n):Wl(n).eventData={componentType:`geo`,componentIndex:e.componentIndex,geoIndex:e.componentIndex,name:r,region:i&&i.option||{}}}function wF(e,t,n,r,i){t||Tp({el:n,componentModel:e,itemName:r,itemTooltipOption:i.get(`tooltip`)})}function TF(e,t,n,r){t.highDownSilentOnTouch=!!e.get(`selectedMode`);var i=r.getModel(`emphasis`),a=i.get(`focus`);return td(t,a,i.get(`blurScope`),i.get(`disabled`)),DF(e)&&cd(t,e,n),a}function EF(e,t,n){var r=[],i;function a(){i=[]}function o(){i.length&&(r.push(i),i=[])}var s=t({polygonStart:a,polygonEnd:o,lineStart:a,lineEnd:o,point:function(e,t){isFinite(e)&&isFinite(t)&&i.push([e,t])},sphere:function(){}});return!n&&s.polygonStart(),z(e,function(e){s.lineStart();for(var t=0;t<e.length;t++)s.point(e[t][0],e[t][1]);s.lineEnd()}),!n&&s.polygonEnd(),r}function DF(e){return e.mainType===`geo`}var OF=function(e){D(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n.getTooltipPosition=function(e){if(e!=null){var t=this.getData().getName(e),n=this.coordinateSystem,r=n.getRegion(t);return r&&n.dataToPoint(r.getCenter())}},n}return t.prototype.getInitialData=function(e){for(var t=IT(this,{coordDimensions:[`value`],encodeDefaulter:Oe(xm,this)}),n=J(),r=[],i=0,a=t.count();i<a;i++){var o=t.getName(i);n.set(o,i)}return z(vP.load(this.getMapType(),this.option.nameMap,this.option.nameProperty).regions,function(e){var i=e.name,a=n.get(i),o=e.properties&&e.properties.echartsStyle,s;a==null?(s={name:i},r.push(s)):s=t.getRawDataItem(a),o&&F(s,o)}),t.appendData(r),t},t.prototype.getHostGeoModel=function(){if(tg(this).kind!==2)return this.getReferringComponents(`geo`,{useDefault:!1,enableAll:!1,enableNone:!1}).models[0]},t.prototype.getMapType=function(){return(this.getHostGeoModel()||this).option.map},t.prototype.getRawValue=function(e){var t=this.getData();return t.get(t.mapDimension(`value`),e)},t.prototype.getRegionModel=function(e){var t=this.getData();return t.getItemModel(t.indexOfName(e))},t.prototype.formatTooltip=function(e,t,n){var r=this.getData(),i=this.getRawValue(e),a=r.getName(e),o=[];return z(this.seriesGroup.f,function(e){var t=e.originalData.indexOfName(a),n=r.mapDimension(`value`);isNaN(e.originalData.get(n,t))||o.push(e.name)}),Gv(`section`,{header:o.join(`, `),noHeader:!o.length,blocks:[Gv(`nameValue`,{name:a,value:i})]})},t.prototype.getLegendIcon=function(e){var t=e.icon||`roundRect`,n=Ey(t,0,0,e.itemWidth,e.itemHeight,e.itemStyle.fill);return n.setStyle(e.itemStyle),n.style.stroke=`none`,t.indexOf(`empty`)>-1&&(n.style.stroke=n.style.fill,n.style.fill=Z.color.neutral00,n.style.lineWidth=2),n},t.prototype.__ownRoamView=function(){return AF(this)?this.coordinateSystem.view:null},t.type=`series.map`,t.dependencies=[`geo`],t.layoutMode=`box`,t.defaultOption={z:2,coordinateSystem:`geo`,map:``,left:`center`,top:`center`,aspectScale:null,showLegendSymbol:!0,boundingCoords:null,center:null,zoom:1,scaleLimit:null,selectedMode:!0,label:{show:!1,color:Z.color.tertiary},itemStyle:{borderWidth:.5,borderColor:Z.color.border,areaColor:Z.color.background},emphasis:{label:{show:!0,color:Z.color.primary},itemStyle:{areaColor:Z.color.highlight}},select:{label:{show:!0,color:Z.color.primary},itemStyle:{color:Z.color.highlight}},nameProperty:`name`},t}(dy);function kF(e){return e.indexOf(`i`)===0}function AF(e){return jF(e.seriesGroup)===e&&!e.getHostGeoModel()}function jF(e){return e.f[0]}function MF(e,t){var n={};return e.eachRawSeriesByType(`map`,function(r){var i=r.getHostGeoModel(),a=i?`o`+i.id:`i`+r.getMapType(),o=n[a]=n[a]||{f:[],r:[]};!e.isSeriesFiltered(r)&&!t&&o.f.push(r),o.r.push(r)}),n}var NF=function(e){D(t,e);function t(){var t=e!==null&&e.apply(this,arguments)||this;return t.type=`map`,t}return t.prototype.render=function(e,t,n,r){if(!(r&&r.type===`mapToggleSelect`&&r.from===this.uid)){var i=this.group;if(i.removeAll(),!e.getHostGeoModel()){var a=this._mapDraw;a&&r&&r.type===`geoRoam`&&a.resetForLabelLayout(),r&&r.type===`geoRoam`&&r.componentType===`series`&&r.seriesId===e.id?a&&i.add(a.group):AF(e)?(a||=this._mapDraw=new bF(n),i.add(a.group),a.draw(e,t,n,this,r)):this._clearMapDraw(),e.get(`showLegendSymbol`)&&t.getComponent(`legend`)&&this._renderSymbols(e)}}},t.prototype.__updateOnOwnRoam=function(e,t,n){var r=this._mapDraw;AF(t)&&r&&r.__updateOnOwnRoam(t)},t.prototype.remove=function(){this._clearMapDraw(),this.group.removeAll()},t.prototype.dispose=function(){this._clearMapDraw()},t.prototype._clearMapDraw=function(){this._mapDraw&&this._mapDraw.remove(),this._mapDraw=null},t.prototype._renderSymbols=function(e){var t=e.originalData,n=this.group;t.each(t.mapDimension(`value`),function(r,i){if(!isNaN(r)){var a=t.getItemLayout(i);if(a&&a.point){var o=a.point,s=a.offset,c=new Ld({style:{fill:e.getData().getVisual(`style`).fill},shape:{cx:o[0]+s*9,cy:o[1],r:3},silent:!0,z2:8+(s?0:11)});if(!s){var l=jF(e.seriesGroup).getData(),u=t.getName(i),d=l.indexOfName(u),f=t.getItemModel(i),p=f.getModel(`label`),m=l.getItemGraphicEl(d);Up(c,Wp(f),{labelFetcher:{getFormattedLabel:function(t,n){return e.getFormattedLabel(d,n)}},defaultText:u}),c.disableLabelAnimation=!0,p.get(`position`)||c.setTextConfig({position:`bottom`}),m.onHoverStateChange=function(e){Du(c,e)}}n.add(c)}}})},t.type=`map`,t}(ab),PF={geoJSON:{aspectScale:.75,invertLongitute:!0},geoSVG:{aspectScale:1,invertLongitute:!1}},FF=[`lng`,`lat`],IF=function(e){D(t,e);function t(t,n,r){var i=e.call(this)||this;i.dimensions=FF,i.type=`geo`,i._nameCoordMap=J(),i.name=t;var a=r.projection,o=vP.load(n,r.nameMap,r.nameProperty),s=vP.getGeoResource(n);i.resourceType=s?s.type:null;var c=i.regions=o.regions,l=PF[s.type];i._clip=r.clip,i.view=new xP(!a&&l.invertLongitute,oF(r.ecModel,r.api),i),i.map=n,i._regionsMap=o.regionsMap,i.regions=o.regions,i.projection=a;var u;if(a)for(var d=0;d<c.length;d++){var f=c[d].getBoundingRect(a);u||=f.clone(),u.union(f)}else u=o.boundingRect;return MP(i.view,u.x,u.y,u.width,u.height),i.aspectScale=a?1:q(r.aspectScale,l.aspectScale),i}return t.prototype.getRegion=function(e){return this._regionsMap.get(e)},t.prototype.getRegionByCoord=function(e){for(var t=this.regions,n=0;n<t.length;n++){var r=t[n];if(r.type===`geoJSON`&&r.contain(e))return t[n]}},t.prototype.addGeoCoord=function(e,t){this._nameCoordMap.set(e,t)},t.prototype.getGeoCoord=function(e){var t=this._regionsMap.get(e);return this._nameCoordMap.get(e)||t&&t.getCenter()},t.prototype.dataToPoint=function(e,t,n){if(G(e)&&(e=this.getGeoCoord(e)),e){var r=this.projection;return r&&(e=r.project(e)),e&&this.view.dataToPoint(e,t,n)}},t.prototype.pointToData=function(e,t,n){var r=this.projection;return r&&(e=r.unproject(e)),e&&this.view.pointToData(e,n)},t.prototype.convertToPixel=function(e,t,n){var r=LF(t);return r===this?r.dataToPoint(n):null},t.prototype.convertFromPixel=function(e,t,n){var r=LF(t);return r===this?r.pointToData(n):null},t.prototype.containPoint=function(e){return this.view.containPoint(e)},t.prototype.getArea=function(e){e||=0;var t=TP(null,this.view);return t.x-=e,t.y-=e,t.width+=2*e,t.height+=2*e,t},t.prototype.shouldClip=function(){return this._clip},t.prototype.getBoundingRect=function(){return this.view.getBoundingRect()},t.prototype.getViewRect=function(){return this.view.getViewRect()},t.prototype.getRoamTransform=function(){return this.view.getRoamTransform()},t}(kr);function LF(e){var t=e.geoModel,n=e.seriesModel;return t?t.coordinateSystem:n?n.coordinateSystem||(n.getReferringComponents(`geo`,vl).models[0]||{}).coordinateSystem:null}function RF(e,t){var n=this.view,r=e.get(`boundingCoords`);if(r!=null){var i=r[0],a=r[1];if(isFinite(i[0])&&isFinite(i[1])&&isFinite(a[0])&&isFinite(a[1])){var o=this.projection;if(o){var s=i[0],c=i[1],l=a[0],u=a[1];i=[1/0,1/0],a=[-1/0,-1/0];var d=function(e,t,n,r){for(var s=n-e,c=r-t,l=0;l<=100;l++){var u=l/100,d=o.project([e+s*u,t+c*u]);fn(i,i,d),pn(a,a,d)}};d(s,c,l,c),d(l,c,l,u),d(l,u,s,u),d(s,u,l,c)}MP(n,i[0],i[1],a[0]-i[0],a[1]-i[1])}}var f=n.getBoundingRect(),p=e.get(`layoutCenter`),m=e.get(`layoutSize`),h=tv(e,t).refContainer,g=f.width/f.height*this.aspectScale,_=!1,v,y;p&&m&&(v=[oc(p[0],h.width)+h.x,oc(p[1],h.height)+h.y],y=oc(m,Math.min(h.width,h.height)),!isNaN(v[0])&&!isNaN(v[1])&&!isNaN(y)&&(_=!0));var b;if(_)b={},g>1?(b.width=y,b.height=y/g):(b.height=y,b.width=y*g),b.y=v[1]-b.height/2,b.x=v[0]-b.width/2;else{var x=e.getBoxLayoutParams();x.aspect=g,b=Q_(x,h),b=$_(e,b,g)}NP(n,b.x,b.y,b.width,b.height),jP(n,e)}function zF(e,t){z(t.get(`geoCoord`),function(t,n){e.addGeoCoord(n,t)})}var BF=new(function(){function e(){this.dimensions=FF}return e.prototype.create=function(e,t){var n=[];function r(e){return{nameProperty:e.get(`nameProperty`),aspectScale:e.get(`aspectScale`),projection:e.get(`projection`),clip:e.getShallow(`clip`,!0)}}return e.eachComponent(`geo`,function(i,a){var o=i.get(`map`),s=new IF(o+a,o,I({nameMap:i.get(`nameMap`),api:t,ecModel:e},r(i)));n.push(s),i.coordinateSystem=s,s.model=i,s.resize=RF,s.resize(i,t)}),e.eachSeries(function(e){ng({targetModel:e,coordSysType:`geo`,coordSysProvider:function(){var t=e.subType===`map`?e.getHostGeoModel():e.getReferringComponents(`geo`,vl).models[0];return t&&t.coordinateSystem},allowNotFound:!0})}),z(MF(e,!0),function(i,a){if(kF(a)){var o=i.r[0],s=[];z(i.r,function(e){s.push(e.get(`nameMap`)),e.seriesGroup=null});var c=a.slice(1),l=new IF(c,c,I({nameMap:ve(s),api:t,ecModel:e},r(o))),u;z(i.r,function(e){u=q(u,e.get(`scaleLimit`))}),n.push(l),l.resize=RF,l.resize(o,t),z(i.r,function(e){e.coordinateSystem=l,zF(l,e)})}}),n},e.prototype.getFilledRegions=function(e,t,n,r){for(var i=(e||[]).slice(),a=J(),o=0;o<i.length;o++)a.set(i[o].name,i[o]);return z(vP.load(t,n,r).regions,function(e){var t=e.name,n=a.get(t),r=e.properties&&e.properties.echartsStyle;n||(n={name:t},i.push(n)),r&&F(n,r)}),i},e}()),VF=function(e){D(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.prototype.init=function(e,t,n){this.mergeDefaultAndTheme(e,n);var r=vP.getGeoResource(e.map);if(r&&r.type===`geoJSON`){var i=e.itemStyle=e.itemStyle||{};`color`in i||(i.color=e.defaultItemStyleColor||Z.color.backgroundTint)}qc(e,`label`,[`show`])},t.prototype.optionUpdated=function(){var e=this,t=this.option;t.regions=BF.getFilledRegions(t.regions,t.map,t.nameMap,t.nameProperty);var n={};this._optionModelMap=we(t.regions||[],function(t,r){var i=r.name;return i&&(t.set(i,new pm(r,e,e.ecModel)),r.selected&&(n[i]=!0)),t},J()),t.selectedMap||=n},t.prototype.getRegionModel=function(e){return this._optionModelMap.get(e)||new pm(null,this,this.ecModel)},t.prototype.getFormattedLabel=function(e,t){var n=this.getRegionModel(e),r=t===`normal`?n.get([`label`,`formatter`]):n.get([`emphasis`,`label`,`formatter`]),i={name:e};if(W(r))return i.status=t,r(i);if(G(r))return r.replace(`{a}`,e??``)},t.prototype.select=function(e){var t=this.option,n=t.selectedMode;if(n){n!==`multiple`&&(t.selectedMap=null);var r=t.selectedMap||={};r[e]=!0}},t.prototype.unSelect=function(e){var t=this.option.selectedMap;t&&(t[e]=!1)},t.prototype.toggleSelected=function(e){this[this.isSelected(e)?`unSelect`:`select`](e)},t.prototype.isSelected=function(e){var t=this.option.selectedMap;return!!(t&&t[e])},t.prototype.__ownRoamView=function(){return this.coordinateSystem.view},t.type=`geo`,t.layoutMode=`box`,t.defaultOption={z:0,show:!0,left:`center`,top:`center`,aspectScale:null,silent:!1,map:``,boundingCoords:null,center:null,zoom:1,scaleLimit:null,label:{show:!1,color:Z.color.tertiary},itemStyle:{borderWidth:.5,borderColor:Z.color.border},emphasis:{label:{show:!0,color:Z.color.primary},itemStyle:{color:Z.color.highlight}},select:{label:{show:!0,color:Z.color.primary},itemStyle:{color:Z.color.highlight}},regions:[]},t}(cv),HF=function(e){D(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n.focusBlurEnabled=!0,n}return t.prototype.init=function(e,t){this._api=t},t.prototype.render=function(e,t,n,r){if(this._model=e,!e.get(`show`)){this._mapDraw&&this._mapDraw.remove(),this._mapDraw=null;return}this._mapDraw||=new bF(n);var i=this._mapDraw;i.draw(e,t,n,this,r),i.group.on(`click`,this._handleRegionClick,this),i.group.silent=e.get(`silent`),this.group.add(i.group),this.updateSelectStatus(e,t,n)},t.prototype.__updateOnOwnRoam=function(e,t,n){var r=this._mapDraw;r&&r.__updateOnOwnRoam(t)},t.prototype._handleRegionClick=function(e){var t;KO(e.target,function(e){return(t=Wl(e).eventData)!=null},!0),t&&this._api.dispatchAction({type:`geoToggleSelect`,geoId:this._model.id,name:t.name})},t.prototype.updateSelectStatus=function(e,t,n){var r=this;this._mapDraw.group.traverse(function(e){var t=Wl(e).eventData;if(t)return r._model.isSelected(t.name)?n.enterSelect(e):n.leaveSelect(e),!0})},t.prototype.findHighDownDispatchers=function(e){return this._mapDraw&&this._mapDraw.findHighDownDispatchers(e,this._model)},t.prototype.dispose=function(){this._mapDraw&&this._mapDraw.remove()},t.type=`geo`,t}(sO);function UF(e,t,n){vP.registerMap(e,t,n)}function WF(e){e.registerCoordinateSystem(`geo`,BF),e.registerComponentModel(VF),e.registerComponentView(HF),e.registerImpl(`registerMap`,UF),e.registerImpl(`getMap`,function(e){return vP.getMapForUser(e)});function t(t,n){n.update=`geo:updateSelectStatus`,e.registerAction(n,function(e,n){var r={},i=[];return n.eachComponent({mainType:`geo`,query:e},function(n){n[t](e.name);var a=n.coordinateSystem;z(a.regions,function(e){r[e.name]=n.isSelected(e.name)||!1});var o=[];z(r,function(e,t){r[t]&&o.push(t)}),i.push({geoIndex:n.componentIndex,name:o})}),{selected:r,allSelected:i,name:e.name}})}t(`toggleSelected`,{type:`geoToggleSelect`,event:`geoselectchanged`}),t(`select`,{type:`geoSelect`,event:`geoselected`}),t(`unSelect`,{type:`geoUnSelect`,event:`geounselected`}),e.registerAction({type:`geoRoam`,event:`geoRoam`,update:`updateTransform`},function(e,t,n){var r=e.componentType||(e.geoId!=null||e.geoName!=null||e.geoIndex!=null?`geo`:`series`),i=r===Kl;if(r===`geo`||i){var a=i?`map`:null;t.eachComponent(xl(e,r,a),function(r){(!i||AF(r))&&(QP(e,r,i?r.seriesGroup.r:null),eF(e,r,t,n))})}})}var GF=Hl(`map`,KF);function KF(e){z(MF(e),function(t,n){if(jF(t)&&kF(n)){var r={};z(t.f,function(t){var n=t.coordinateSystem,i=t.originalData;t.get(`showLegendSymbol`)&&e.getComponent(`legend`)&&i.each(i.mapDimension(`value`),function(e,t){var a=i.getName(t),o=n.getRegion(a);if(o&&!isNaN(e)){var s=r[a]||0,c=n.dataToPoint(o.getCenter());r[a]=s+1,i.setItemLayout(t,{point:c,offset:s})}})});var i=jF(t).getData();i.each(function(e){var t=i.getName(e),n=i.getItemLayout(e)||{};n.showLabel=!r[t],i.setItemLayout(e,n)})}})}function qF(e,t){var n={};return z(e,function(e){e.each(e.mapDimension(`value`),function(t,r){var i=`ec-`+e.getName(r);n[i]=n[i]||[],isNaN(t)||n[i].push(t)})}),e[0].map(e[0].mapDimension(`value`),function(r,i){for(var a=`ec-`+e[0].getName(i),o=0,s=1/0,c=-1/0,l=n[a].length,u=0;u<l;u++)s=Math.min(s,n[a][u]),c=Math.max(c,n[a][u]),o+=n[a][u];var d=t===`min`?s:t===`max`?c:t===`average`?o/l:o;return l===0?NaN:d})}var JF=Hl(`map`,YF);function YF(e){z(MF(e),function(e){var t=jF(e);if(t){var n=qF(B(e.f,function(e){return e.getData()}),t.get(`mapValueCalculation`));z(e.f,function(t){t.seriesGroup=e,t.originalData=t.getData(),t.setData(n.cloneShallow())})}})}function XF(e){Vj(WF),e.registerChartView(NF),e.registerSeriesModel(OF),e.registerLayout(GF),e.registerProcessor(e.PRIORITY.PROCESSOR.STATISTIC,JF),NT(`map`,e.registerAction)}var ZF=z,QF=K,$F=-1,eI=function(){function e(t){var n=t.mappingMethod,r=t.type,i=this.option=P(t);this.type=r,this.mappingMethod=n,this._normalizeData=fI[n];var a=e.visualHandlers[r];this.applyVisual=a.applyVisual,this.getColorMapper=a.getColorMapper,this._normalizedToVisual=a._normalizedToVisual[n],n===`piecewise`?(rI(i),tI(i)):n===`category`?i.categories?nI(i):rI(i,!0):(He(n!==`linear`||i.dataExtent),rI(i))}return e.prototype.mapValueToVisual=function(e){var t=this._normalizeData(e);return this._normalizedToVisual(t,e)},e.prototype.getNormalizer=function(){return H(this._normalizeData,this)},e.listVisualTypes=function(){return V(e.visualHandlers)},e.isValidType=function(t){return e.visualHandlers.hasOwnProperty(t)},e.eachVisual=function(e,t,n){K(e)?z(e,t,n):t.call(n,e)},e.mapVisual=function(t,n,r){var i,a=U(t)?[]:K(t)?{}:(i=!0,null);return e.eachVisual(t,function(e,t){var o=n.call(r,e,t);i?a=o:a[t]=o}),a},e.retrieveVisuals=function(t){var n={},r;return t&&ZF(e.visualHandlers,function(e,i){t.hasOwnProperty(i)&&(n[i]=t[i],r=!0)}),r?n:null},e.prepareVisualTypes=function(e){if(U(e))e=e.slice();else if(QF(e)){var t=[];ZF(e,function(e,n){t.push(n)}),e=t}else return[];return e.sort(function(e,t){return t===`color`&&e!==`color`&&e.indexOf(`color`)===0?1:-1}),e},e.dependsOn=function(e,t){return t===`color`?!!(e&&e.indexOf(t)===0):e===t},e.findPieceIndex=function(e,t,n){for(var r,i=1/0,a=0,o=t.length;a<o;a++){var s=t[a].value;if(s!=null){if(s===e||G(s)&&s===e+``)return a;n&&d(s,a)}}for(var a=0,o=t.length;a<o;a++){var c=t[a],l=c.interval,u=c.close;if(l){if(l[0]===-1/0){if(pI(u[1],e,l[1]))return a}else if(l[1]===1/0){if(pI(u[0],l[0],e))return a}else if(pI(u[0],l[0],e)&&pI(u[1],e,l[1]))return a;n&&d(l[0],a),n&&d(l[1],a)}}if(n)return e===1/0?t.length-1:e===-1/0?0:r;function d(t,n){var a=Math.abs(t-e);a<i&&(i=a,r=n)}},e.visualHandlers={color:{applyVisual:oI(`color`),getColorMapper:function(){var e=this.option;return H(e.mappingMethod===`category`?function(e,t){return!t&&(e=this._normalizeData(e)),sI.call(this,e)}:function(t,n,r){var i=!!r;return!n&&(t=this._normalizeData(t)),r=Oi(t,e.parsedVisual,r),i?r:Pi(r,`rgba`)},this)},_normalizedToVisual:{linear:function(e){return Pi(Oi(e,this.option.parsedVisual),`rgba`)},category:sI,piecewise:function(e,t){var n=uI.call(this,t);return n??=Pi(Oi(e,this.option.parsedVisual),`rgba`),n},fixed:cI}},colorHue:iI(function(e,t){return Mi(e,t)}),colorSaturation:iI(function(e,t){return Mi(e,null,t)}),colorLightness:iI(function(e,t){return Mi(e,null,null,t)}),colorAlpha:iI(function(e,t){return Ni(e,t)}),decal:{applyVisual:oI(`decal`),_normalizedToVisual:{linear:null,category:sI,piecewise:null,fixed:null}},opacity:{applyVisual:oI(`opacity`),_normalizedToVisual:lI([0,1])},liftZ:{applyVisual:oI(`liftZ`),_normalizedToVisual:{linear:cI,category:cI,piecewise:cI,fixed:cI}},symbol:{applyVisual:function(e,t,n){n(`symbol`,this.mapValueToVisual(e))},_normalizedToVisual:{linear:aI,category:sI,piecewise:function(e,t){var n=uI.call(this,t);return n??=aI.call(this,e),n},fixed:cI}},symbolSize:{applyVisual:oI(`symbolSize`),_normalizedToVisual:lI([0,1])}},e}();function tI(e){var t=e.pieceList;e.hasSpecialVisual=!1,z(t,function(t,n){t.originIndex=n,t.visual!=null&&(e.hasSpecialVisual=!0)})}function nI(e){var t=e.categories,n=e.categoryMap={},r=e.visual;if(ZF(t,function(e,t){n[e]=t}),!U(r)){var i=[];K(r)?ZF(r,function(e,t){var r=n[t];i[r??$F]=e}):i[$F]=r,r=dI(e,i)}for(var a=t.length-1;a>=0;a--)r[a]??(delete n[t[a]],t.pop())}function rI(e,t){var n=e.visual,r=[];K(n)?ZF(n,function(e){r.push(e)}):n!=null&&r.push(n),!t&&r.length===1&&!{color:1,symbol:1}.hasOwnProperty(e.type)&&(r[1]=r[0]),dI(e,r)}function iI(e){return{applyVisual:function(t,n,r){var i=this.mapValueToVisual(t);r(`color`,e(n(`color`),i))},_normalizedToVisual:lI([0,1])}}function aI(e){var t=this.option.visual;return t[Math.round(ac(e,[0,1],[0,t.length-1],!0))]||{}}function oI(e){return function(t,n,r){r(e,this.mapValueToVisual(t))}}function sI(e){var t=this.option.visual;return t[this.option.loop&&e!==$F?e%t.length:e]}function cI(){return this.option.visual[0]}function lI(e){return{linear:function(t){return ac(t,e,this.option.visual,!0)},category:sI,piecewise:function(t,n){var r=uI.call(this,n);return r??=ac(t,e,this.option.visual,!0),r},fixed:cI}}function uI(e){var t=this.option,n=t.pieceList;if(t.hasSpecialVisual){var r=n[eI.findPieceIndex(e,n)];if(r&&r.visual)return r.visual[this.type]}}function dI(e,t){return e.visual=t,e.type===`color`&&(e.parsedVisual=B(t,function(e){return Ci(e)||[0,0,0,1]})),t}var fI={linear:function(e){return ac(e,this.option.dataExtent,[0,1],!0)},piecewise:function(e){var t=this.option.pieceList,n=eI.findPieceIndex(e,t,!0);if(n!=null)return ac(n,[0,t.length-1],[0,1],!0)},category:function(e){return(this.option.categories?this.option.categoryMap[e]:e)??$F},fixed:tt};function pI(e,t,n){return e?t<=n:t<n}var mI=mf.prototype,hI=vf.prototype,gI=function(){function e(){this.x1=0,this.y1=0,this.x2=0,this.y2=0,this.percent=1}return e}();(function(e){D(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t})(gI);function _I(e){return isNaN(+e.cpx1)||isNaN(+e.cpy1)}var vI=function(e){D(t,e);function t(t){var n=e.call(this,t)||this;return n.type=`ec-line`,n}return t.prototype.getDefaultStyle=function(){return{stroke:Z.color.neutral99,fill:null}},t.prototype.getDefaultShape=function(){return new gI},t.prototype.buildPath=function(e,t){_I(t)?mI.buildPath.call(this,e,t):hI.buildPath.call(this,e,t)},t.prototype.pointAt=function(e){return _I(this.shape)?mI.pointAt.call(this,e):hI.pointAt.call(this,e)},t.prototype.tangentAt=function(e){var t=this.shape,n=_I(t)?[t.x2-t.x1,t.y2-t.y1]:hI.tangentAt.call(this,e);return rn(n,n)},t}(fs),yI=[`fromSymbol`,`toSymbol`];function bI(e){return`_`+e+`Type`}function xI(e,t,n){var r=t.getItemVisual(n,e);if(!r||r===`none`)return r;var i=t.getItemVisual(n,e+`Size`),a=t.getItemVisual(n,e+`Rotate`),o=t.getItemVisual(n,e+`Offset`),s=t.getItemVisual(n,e+`KeepAspect`),c=Dy(i),l=Oy(o||0,c);return r+c+l+(a||``)+(s||``)}function SI(e,t,n){var r=t.getItemVisual(n,e);if(r&&r!==`none`){var i=t.getItemVisual(n,e+`Size`),a=t.getItemVisual(n,e+`Rotate`),o=t.getItemVisual(n,e+`Offset`),s=t.getItemVisual(n,e+`KeepAspect`),c=Dy(i),l=Oy(o||0,c),u=Ey(r,-c[0]/2+l[0],-c[1]/2+l[1],c[0],c[1],null,s);return u.__specifiedRotation=a==null||isNaN(a)?void 0:a*Math.PI/180||0,u.name=e,u}}function CI(e){var t=new vI({name:`line`,subPixelOptimize:!0});return wI(t.shape,e),t}function wI(e,t){e.x1=t[0][0],e.y1=t[0][1],e.x2=t[1][0],e.y2=t[1][1],e.percent=1;var n=t[2];n?(e.cpx1=n[0],e.cpy1=n[1]):(e.cpx1=NaN,e.cpy1=NaN)}var TI=function(e){D(t,e);function t(t,n,r){var i=e.call(this)||this;return i._createLine(t,n,r),i}return t.prototype._createLine=function(e,t,n){var r=e.hostModel,i=e.getItemLayout(t),a=e.getItemVisual(t,`z2`),o=CI(i);o.shape.percent=0,Bf(o,{z2:q(a,0),shape:{percent:1}},r,t),this.add(o),z(yI,function(n){var r=SI(n,e,t);this.add(r),this[bI(n)]=xI(n,e,t)},this),this._updateCommonStl(e,t,n)},t.prototype.updateData=function(e,t,n){var r=e.hostModel,i=this.childOfName(`line`),a=e.getItemLayout(t),o={shape:{}};wI(o.shape,a),zf(i,o,r,t),z(yI,function(n){var r=xI(n,e,t),i=bI(n);if(this[i]!==r){this.remove(this.childOfName(n));var a=SI(n,e,t);this.add(a)}this[i]=r},this),this._updateCommonStl(e,t,n)},t.prototype.getLinePath=function(){return this.childAt(0)},t.prototype._updateCommonStl=function(e,t,n){var r=e.hostModel,i=this.childOfName(`line`),a=n&&n.emphasisLineStyle,o=n&&n.blurLineStyle,s=n&&n.selectLineStyle,c=n&&n.labelStatesModels,l=n&&n.emphasisDisabled,u=n&&n.focus,d=n&&n.blurScope;if(!n||e.hasItemOption){var f=e.getItemModel(t),p=f.getModel(`emphasis`);a=p.getModel(`lineStyle`).getLineStyle(),o=f.getModel([`blur`,`lineStyle`]).getLineStyle(),s=f.getModel([`select`,`lineStyle`]).getLineStyle(),l=p.get(`disabled`),u=p.get(`focus`),d=p.get(`blurScope`),c=Wp(f)}var m=e.getItemVisual(t,`style`),h=m.stroke;i.useStyle(m),i.style.fill=null,i.style.strokeNoScale=!0,i.ensureState(`emphasis`).style=a,i.ensureState(`blur`).style=o,i.ensureState(`select`).style=s,z(yI,function(e){var t=this.childOfName(e);if(t){t.setColor(h),t.style.opacity=m.opacity;for(var n=0;n<lu.length;n++){var r=lu[n],a=i.getState(r);if(a){var o=a.style||{},s=t.ensureState(r),c=s.style||={};o.stroke!=null&&(c[t.__isEmptyBrush?`stroke`:`fill`]=o.stroke),o.opacity!=null&&(c.opacity=o.opacity)}}t.markRedraw()}},this);var g=r.getRawValue(t);Up(this,c,{labelDataIndex:t,labelFetcher:{getFormattedLabel:function(t,n){return r.getFormattedLabel(t,n,e.dataType)}},inheritColor:h||Z.color.neutral99,defaultOpacity:m.opacity,defaultText:(g==null?e.getName(t):isFinite(g)?dc(g,10):g)+``});var _=this.getTextContent();if(_){var v=c.normal;_.__align=_.style.align,_.__verticalAlign=_.style.verticalAlign,_.__position=v.get(`position`)||`middle`;var y=v.get(`distance`);U(y)||(y=[y,y]),_.__labelDistance=y}this.setTextConfig({position:null,local:!0,inside:!1}),td(this,u,d,l)},t.prototype.highlight=function(){Iu(this)},t.prototype.downplay=function(){Lu(this)},t.prototype.updateLayout=function(e,t){this.childOfName(`line`).stopAnimation(),this.setLinePoints(e.getItemLayout(t))},t.prototype.setLinePoints=function(e){var t=this.childOfName(`line`);wI(t.shape,e),t.dirty()},t.prototype.beforeUpdate=function(){var e=this,t=e.childOfName(`fromSymbol`),n=e.childOfName(`toSymbol`),r=e.getTextContent();if(!t&&!n&&(!r||r.ignore))return;for(var i=1,a=this.parent;a;)a.scaleX&&(i/=a.scaleX),a=a.parent;var o=e.childOfName(`line`);if(!this.__dirty&&!o.__dirty)return;var s=o.shape.percent,c=o.pointAt(0),l=o.pointAt(s),u=Jt([],l,c);rn(u,u);function d(e,t){var n=e.__specifiedRotation;if(n==null){var r=o.tangentAt(t);e.attr(`rotation`,(t===1?-1:1)*Math.PI/2-Math.atan2(r[1],r[0]))}else e.attr(`rotation`,n)}if(t&&(t.setPosition(c),d(t,0),t.scaleX=t.scaleY=i*s,t.markRedraw()),n&&(n.setPosition(l),d(n,1),n.scaleX=n.scaleY=i*s,n.markRedraw()),r&&!r.ignore){r.x=r.y=0,r.originX=r.originY=0;var f=void 0,p=void 0,m=r.__labelDistance,h=m[0]*i,g=m[1]*i,_=s/2,v=o.tangentAt(_),y=[v[1],-v[0]],b=o.pointAt(_);y[1]>0&&(y[0]=-y[0],y[1]=-y[1]);var x=v[0]<0?-1:1;if(r.__position!==`start`&&r.__position!==`end`){var S=-Math.atan2(v[1],v[0]);l[0]<c[0]&&(S=Math.PI+S),r.rotation=S}var C=void 0;switch(r.__position){case`insideStartTop`:case`insideMiddleTop`:case`insideEndTop`:case`middle`:C=-g,p=`bottom`;break;case`insideStartBottom`:case`insideMiddleBottom`:case`insideEndBottom`:C=g,p=`top`;break;default:C=0,p=`middle`}switch(r.__position){case`end`:r.x=u[0]*h+l[0],r.y=u[1]*g+l[1],f=u[0]>.8?`left`:u[0]<-.8?`right`:`center`,p=u[1]>.8?`top`:u[1]<-.8?`bottom`:`middle`;break;case`start`:r.x=-u[0]*h+c[0],r.y=-u[1]*g+c[1],f=u[0]>.8?`right`:u[0]<-.8?`left`:`center`,p=u[1]>.8?`bottom`:u[1]<-.8?`top`:`middle`;break;case`insideStartTop`:case`insideStart`:case`insideStartBottom`:r.x=h*x+c[0],r.y=c[1]+C,f=v[0]<0?`right`:`left`,r.originX=-h*x,r.originY=-C;break;case`insideMiddleTop`:case`insideMiddle`:case`insideMiddleBottom`:case`middle`:r.x=b[0],r.y=b[1]+C,f=`center`,r.originY=-C;break;case`insideEndTop`:case`insideEnd`:case`insideEndBottom`:r.x=-h*x+l[0],r.y=l[1]+C,f=v[0]>=0?`right`:`left`,r.originX=h*x,r.originY=-C}r.scaleX=r.scaleY=i,r.setStyle({verticalAlign:r.__verticalAlign||p,align:r.__align||f})}},t}(Fd),EI=function(){function e(e){this.group=new Fd,this._LineCtor=e||TI}return e.prototype.updateData=function(e){var t=this;this._progressiveEls=null;var n=this,r=n.group,i=n._lineData;n._lineData=e,i||r.removeAll();var a=OI(e);e.diff(i).add(function(n){t._doAdd(e,n,a)}).update(function(n,r){t._doUpdate(i,e,r,n,a)}).remove(function(e){r.remove(i.getItemGraphicEl(e))}).execute()},e.prototype.updateLayout=function(){var e=this._lineData;e&&e.eachItemGraphicEl(function(t,n){t.updateLayout(e,n)},this)},e.prototype.incrementalPrepareUpdate=function(e){this._seriesScope=OI(e),this._lineData=null,this.group.removeAll()},e.prototype.incrementalUpdate=function(e,t,n){this._progressiveEls=[];function r(e){!e.isGroup&&!DI(e)&&(e.incremental=n,e.ensureState(`emphasis`).hoverLayer=2)}for(var i=e.start;i<e.end;i++)if(AI(t.getItemLayout(i))){var a=new this._LineCtor(t,i,this._seriesScope);a.traverse(r),this.group.add(a),t.setItemGraphicEl(i,a),this._progressiveEls.push(a)}},e.prototype.remove=function(){this.group.removeAll()},e.prototype.eachRendered=function(e){Dp(this._progressiveEls||this.group,e)},e.prototype._doAdd=function(e,t,n){if(AI(e.getItemLayout(t))){var r=new this._LineCtor(e,t,n);e.setItemGraphicEl(t,r),this.group.add(r)}},e.prototype._doUpdate=function(e,t,n,r,i){var a=e.getItemGraphicEl(n);if(!AI(t.getItemLayout(r))){this.group.remove(a);return}a?a.updateData(t,r,i):a=new this._LineCtor(t,r,i),t.setItemGraphicEl(r,a),this.group.add(a)},e}();function DI(e){return e.animators&&e.animators.length>0}function OI(e){var t=e.hostModel,n=t.getModel(`emphasis`);return{lineStyle:t.getModel(`lineStyle`).getLineStyle(),emphasisLineStyle:n.getModel([`lineStyle`]).getLineStyle(),blurLineStyle:t.getModel([`blur`,`lineStyle`]).getLineStyle(),selectLineStyle:t.getModel([`select`,`lineStyle`]).getLineStyle(),emphasisDisabled:n.get(`disabled`),blurScope:n.get(`blurScope`),focus:n.get(`focus`),labelStatesModels:Wp(t)}}function kI(e){return isNaN(e[0])||isNaN(e[1])}function AI(e){return e&&!kI(e[0])&&!kI(e[1])}function jI(e,t,n,r,i,a){e||=0;var o=bc(n[1],-n[0]);if(i!=null&&(i=NI(i,[0,o])),a!=null&&(a=Math.max(a,i??0)),r===`all`){var s=Math.abs(bc(t[1],-t[0]));s=NI(s,[0,o]),i=a=NI(s,[i,a]),r=0}t[0]=NI(t[0],n),t[1]=NI(t[1],n);var c=MI(t,r);t[r]+=e;var l=i||0,u=n.slice();c.sign<0?u[0]=bc(u[0],l):u[1]=bc(u[1],-l),t[r]=NI(t[r],u);var d=MI(t,r);return i!=null&&(d.sign!==c.sign||d.span<i)&&(t[1-r]=bc(t[r],c.sign*i)),d=MI(t,r),a!=null&&d.span>a&&(t[1-r]=bc(t[r],d.sign*a)),t}function MI(e,t){var n=e[t]-e[1-t];return{span:Math.abs(n),sign:n>0?-1:n<0?1:t?-1:1}}function NI(e,t){return Math.min(t[1]==null?1/0:t[1],Math.max(t[0]==null?-1/0:t[0],e))}var PI=!0,FI=Math.min,II=Math.max,LI=Math.pow,RI=1e4,zI=6,BI=6,VI=`globalPan`,HI={w:[0,0],e:[0,1],n:[1,0],s:[1,1]},UI={w:`ew`,e:`ew`,n:`ns`,s:`ns`,ne:`nesw`,sw:`nesw`,nw:`nwse`,se:`nwse`},WI={brushStyle:{lineWidth:2,stroke:Z.color.backgroundTint,fill:Z.color.borderTint},transformable:!0,brushMode:`single`,removeOnClick:!1},GI=0,KI=function(e){D(t,e);function t(t){var n=e.call(this)||this;return n._track=[],n._covers=[],n._handlers={},n._zr=t,n.group=new Fd,n._uid=`brushController_`+GI++,z(wL,function(e,t){this._handlers[t]=H(e,this)},n),n}return t.prototype.enableBrush=function(e){return this._brushType&&this._doDisableBrush(),e.brushType&&this._doEnableBrush(e),this},t.prototype._doEnableBrush=function(e){var t=this._zr;this._enableGlobalPan||YM(t,VI,this._uid),z(this._handlers,function(e,n){t.on(n,e)}),this._brushType=e.brushType,this._brushOption=F(P(WI),e,!0)},t.prototype._doDisableBrush=function(){var e=this._zr;XM(e,VI,this._uid),z(this._handlers,function(t,n){e.off(n,t)}),this._brushType=this._brushOption=null},t.prototype.setPanels=function(e){if(e&&e.length){var t=this._panels={};z(e,function(e){t[e.panelId]=P(e)})}else this._panels=null;return this},t.prototype.mount=function(e){e||={},this._enableGlobalPan=e.enableGlobalPan;var t=this.group;return this._zr.add(t),t.attr({x:e.x||0,y:e.y||0,rotation:e.rotation||0,scaleX:e.scaleX||1,scaleY:e.scaleY||1}),this._transform=t.getLocalTransform(),this},t.prototype.updateCovers=function(e){e=B(e,function(e){return F(P(WI),e,!0)});var t=`\0-brush-index-`,n=this._covers,r=this._covers=[],i=this,a=this._creatingCover;return new gm(n,e,s,o).add(c).update(c).remove(l).execute(),this;function o(e,n){return(e.id==null?t+n:e.id)+`-`+e.brushType}function s(e,t){return o(e.__brushOption,t)}function c(t,o){var s=e[t];o!=null&&n[o]===a?r[t]=n[o]:ZI(i,r[t]=o==null?JI(i,qI(i,s)):(n[o].__brushOption=s,n[o]))}function l(e){n[e]!==a&&i.group.remove(n[e])}},t.prototype.unmount=function(){return this.enableBrush(!1),tL(this),this._zr.remove(this.group),this},t.prototype.dispose=function(){this.unmount(),this.off()},t}(ka);function qI(e,t){var n=DL[t.brushType].createCover(e,t);return n.__brushOption=t,XI(n,t),e.group.add(n),n}function JI(e,t){var n=QI(t);return n.endCreating&&(n.endCreating(e,t),XI(t,t.__brushOption)),t}function YI(e,t){var n=t.__brushOption;QI(t).updateCoverShape(e,t,n.range,n)}function XI(e,t){var n=t.z;n??=RI,e.traverse(function(e){e.z=n,e.z2=n})}function ZI(e,t){QI(t).updateCommon(e,t),YI(e,t)}function QI(e){return DL[e.__brushOption.brushType]}function $I(e,t,n){var r=e._panels;if(!r)return PI;var i,a=e._transform;return z(r,function(e){e.isTargetByCursor(t,n,a)&&(i=e)}),i}function eL(e,t){var n=e._panels;if(!n)return PI;var r=t.__brushOption.panelId;return r==null?PI:n[r]}function tL(e){var t=e._covers,n=t.length;return z(t,function(t){e.group.remove(t)},e),t.length=0,!!n}function nL(e,t){var n=B(e._covers,function(e){var t=e.__brushOption,n=P(t.range);return{brushType:t.brushType,panelId:t.panelId,range:n}});e.trigger(`brush`,{areas:n,isEnd:!!t.isEnd,removeOnClick:!!t.removeOnClick})}function rL(e){var t=e._track;if(!t.length)return!1;var n=t[t.length-1],r=t[0],i=n[0]-r[0],a=n[1]-r[1];return LI(i*i+a*a,.5)>zI}function iL(e){var t=e.length-1;return t<0&&(t=0),[e[0],e[t]]}function aL(e,t,n,r){var i=new Fd;return i.add(new Es({name:`main`,style:lL(n),silent:!0,draggable:!0,cursor:`move`,drift:Oe(mL,e,t,i,[`n`,`s`,`w`,`e`]),ondragend:Oe(nL,t,{isEnd:!0})})),z(r,function(n){i.add(new Es({name:n.join(``),style:{opacity:0},draggable:!0,silent:!0,invisible:!0,drift:Oe(mL,e,t,i,n),ondragend:Oe(nL,t,{isEnd:!0})}))}),i}function oL(e,t,n,r){var i=r.brushStyle.lineWidth||0,a=II(i,BI),o=n[0][0],s=n[1][0],c=o-i/2,l=s-i/2,u=n[0][1],d=n[1][1],f=u-a+i/2,p=d-a+i/2,m=u-o,h=d-s,g=m+i,_=h+i;cL(e,t,`main`,o,s,m,h),r.transformable&&(cL(e,t,`w`,c,l,a,_),cL(e,t,`e`,f,l,a,_),cL(e,t,`n`,c,l,g,a),cL(e,t,`s`,c,p,g,a),cL(e,t,`nw`,c,l,a,a),cL(e,t,`ne`,f,l,a,a),cL(e,t,`sw`,c,p,a,a),cL(e,t,`se`,f,p,a,a))}function sL(e,t){var n=t.__brushOption,r=n.transformable,i=t.childAt(0);i.useStyle(lL(n)),i.attr({silent:!r,cursor:r?`move`:`default`}),z([[`w`],[`e`],[`n`],[`s`],[`s`,`e`],[`s`,`w`],[`n`,`e`],[`n`,`w`]],function(n){var i=t.childOfName(n.join(``)),a=n.length===1?fL(e,n[0]):pL(e,n);i&&i.attr({silent:!r,invisible:!r,cursor:r?UI[a]+`-resize`:null})})}function cL(e,t,n,r,i,a,o){var s=t.childOfName(n);s&&s.setShape(vL(_L(e,t,[[r,i],[r+a,i+o]])))}function lL(e){return L({strokeNoScale:!0},e.brushStyle)}function uL(e,t,n,r){var i=[FI(e,n),FI(t,r)],a=[II(e,n),II(t,r)];return[[i[0],a[0]],[i[1],a[1]]]}function dL(e){return lp(e.group)}function fL(e,t){return{left:`w`,right:`e`,top:`n`,bottom:`s`}[dp({w:`left`,e:`right`,n:`top`,s:`bottom`}[t],dL(e))]}function pL(e,t){var n=[fL(e,t[0]),fL(e,t[1])];return(n[0]===`e`||n[0]===`w`)&&n.reverse(),n.join(``)}function mL(e,t,n,r,i,a){var o=n.__brushOption,s=e.toRectRange(o.range),c=gL(t,i,a);z(r,function(e){var t=HI[e];s[t[0]][t[1]]+=c[t[0]]}),o.range=e.fromRectRange(uL(s[0][0],s[1][0],s[0][1],s[1][1])),ZI(t,n),nL(t,{isEnd:!1})}function hL(e,t,n,r){var i=t.__brushOption.range,a=gL(e,n,r);z(i,function(e){e[0]+=a[0],e[1]+=a[1]}),ZI(e,t),nL(e,{isEnd:!1})}function gL(e,t,n){var r=e.group,i=r.transformCoordToLocal(t,n),a=r.transformCoordToLocal(0,0);return[i[0]-a[0],i[1]-a[1]]}function _L(e,t,n){var r=eL(e,t);return r&&r!==PI?r.clipPath(n,e._transform):P(n)}function vL(e){var t=FI(e[0][0],e[1][0]),n=FI(e[0][1],e[1][1]),r=II(e[0][0],e[1][0]),i=II(e[0][1],e[1][1]);return{x:t,y:n,width:r-t,height:i-n}}function yL(e,t,n){if(e._brushType&&!EL(e,t.offsetX,t.offsetY)){var r=e._zr,i=e._covers,a=$I(e,t,n);if(!e._dragging)for(var o=0;o<i.length;o++){var s=i[o].__brushOption;if(a&&(a===PI||s.panelId===a.panelId)&&DL[s.brushType].contain(i[o],n[0],n[1]))return}a&&r.setCursorStyle(`crosshair`)}}function bL(e){var t=e.event;t.preventDefault&&t.preventDefault()}function xL(e,t,n){return e.childOfName(`main`).contain(t,n)}function SL(e,t,n,r){var i=e._creatingCover,a=e._creatingPanel,o=e._brushOption,s;if(e._track.push(n.slice()),rL(e)||i){if(a&&!i){o.brushMode===`single`&&tL(e);var c=P(o);c.brushType=CL(c.brushType,a),c.panelId=a===PI?null:a.panelId,i=e._creatingCover=qI(e,c),e._covers.push(i)}if(i){var l=DL[CL(e._brushType,a)],u=i.__brushOption;u.range=l.getCreatingRange(_L(e,i,e._track)),r&&(JI(e,i),l.updateCommon(e,i)),YI(e,i),s={isEnd:r}}}else r&&o.brushMode===`single`&&o.removeOnClick&&$I(e,t,n)&&tL(e)&&(s={isEnd:r,removeOnClick:!0});return s}function CL(e,t){return e===`auto`?t.defaultBrushType:e}var wL={mousedown:function(e){if(this._dragging)TL(this,e);else if(!e.target||!e.target.draggable){bL(e);var t=this.group.transformCoordToLocal(e.offsetX,e.offsetY);this._creatingCover=null,(this._creatingPanel=$I(this,e,t))&&(this._dragging=!0,this._track=[t.slice()])}},mousemove:function(e){var t=e.offsetX,n=e.offsetY,r=this.group.transformCoordToLocal(t,n);if(yL(this,e,r),this._dragging){bL(e);var i=SL(this,e,r,!1);i&&nL(this,i)}},mouseup:function(e){TL(this,e)}};function TL(e,t){if(e._dragging){bL(t);var n=t.offsetX,r=t.offsetY,i=SL(e,t,e.group.transformCoordToLocal(n,r),!0);e._dragging=!1,e._track=[],e._creatingCover=null,i&&nL(e,i)}}function EL(e,t,n){var r=e._zr;return t<0||t>r.getWidth()||n<0||n>r.getHeight()}var DL={lineX:OL(0),lineY:OL(1),rect:{createCover:function(e,t){function n(e){return e}return aL({toRectRange:n,fromRectRange:n},e,t,[[`w`],[`e`],[`n`],[`s`],[`s`,`e`],[`s`,`w`],[`n`,`e`],[`n`,`w`]])},getCreatingRange:function(e){var t=iL(e);return uL(t[1][0],t[1][1],t[0][0],t[0][1])},updateCoverShape:function(e,t,n,r){oL(e,t,n,r)},updateCommon:sL,contain:xL},polygon:{createCover:function(e,t){var n=new Fd;return n.add(new df({name:`main`,style:lL(t),silent:!0})),n},getCreatingRange:function(e){return e},endCreating:function(e,t){t.remove(t.childAt(0)),t.add(new lf({name:`main`,draggable:!0,drift:Oe(hL,e,t),ondragend:Oe(nL,e,{isEnd:!0})}))},updateCoverShape:function(e,t,n,r){t.childAt(0).setShape({points:_L(e,t,n)})},updateCommon:sL,contain:xL}};function OL(e){return{createCover:function(t,n){return aL({toRectRange:function(t){var n=[t,[0,100]];return e&&n.reverse(),n},fromRectRange:function(t){return t[e]}},t,n,[[[`w`],[`e`]],[[`n`],[`s`]]][e])},getCreatingRange:function(t){var n=iL(t);return[FI(n[0][e],n[1][e]),II(n[0][e],n[1][e])]},updateCoverShape:function(t,n,r,i){var a,o=eL(t,n);if(o!==PI&&o.getLinearBrushOtherExtent)a=o.getLinearBrushOtherExtent(e);else{var s=t._zr;a=[0,[s.getWidth(),s.getHeight()][1-e]]}var c=[r,a];e&&c.reverse(),oL(t,n,c,i)},updateCommon:sL,contain:xL}}function kL(e){return e=ML(e),function(t){return hp(t,e)}}function AL(e,t){return e=ML(e),function(n){var r=t??n,i=r?e.width:e.height,a=r?e.x:e.y;return[a,a+(i||0)]}}function jL(e,t,n){var r=ML(e);return function(e,i){return r.contain(i[0],i[1])&&!$M(e,t,n)}}function ML(e){return X.create(e)}var NL=ml(),PL=P,FL=H,IL=function(){function e(){this._dragging=!1,this.animationThreshold=15}return e.prototype.render=function(e,t,n,r){var i=t.get(`value`),a=t.get(`status`);if(this._axisModel=e,this._axisPointerModel=t,this._api=n,r||this._lastValue!==i||this._lastStatus!==a){this._lastValue=i,this._lastStatus=a;var o=this._group,s=this._handle;if(!a||a===`hide`){o&&o.hide(),s&&s.hide();return}o&&o.show(),s&&s.show();var c={};this.makeElOption(c,i,e,t,n);var l=c.graphicKey;l!==this._lastGraphicKey&&this.clear(n),this._lastGraphicKey=l;var u=this._moveAnimation=this.determineAnimation(e,t);if(!o)o=this._group=new Fd,this.createPointerEl(o,c,e,t),this.createLabelEl(o,c,e,t),n.getZr().add(o);else{var d=Oe(LL,t,u);this.updatePointerEl(o,c,d),this.updateLabelEl(o,c,d,t)}VL(o,t,!0),this._renderHandle(i)}},e.prototype.remove=function(e){this.clear(e)},e.prototype.dispose=function(e){this.clear(e)},e.prototype.determineAnimation=function(e,t){var n=t.get(`animation`),r=e.axis,i=r.type===`category`,a=t.get(`snap`);if(!a&&!i)return!1;if(n===`auto`||n==null){var o=this.animationThreshold;if(i&&JS(r).w>o)return!0;if(a){var s=jM(e).seriesDataCount,c=r.getExtent();return Math.abs(c[0]-c[1])/s>o}return!1}return n===!0},e.prototype.makeElOption=function(e,t,n,r,i){},e.prototype.createPointerEl=function(e,t,n,r){var i=t.pointer;if(i){var a=NL(e).pointerEl=new Kf[i.type](PL(t.pointer));e.add(a)}},e.prototype.createLabelEl=function(e,t,n,r){if(t.label){var i=NL(e).labelEl=new js(PL(t.label));e.add(i),zL(i,r)}},e.prototype.updatePointerEl=function(e,t,n){var r=NL(e).pointerEl;r&&t.pointer&&(r.setStyle(t.pointer.style),n(r,{shape:t.pointer.shape}))},e.prototype.updateLabelEl=function(e,t,n,r){var i=NL(e).labelEl;i&&(i.setStyle(t.label.style),n(i,{x:t.label.x,y:t.label.y}),zL(i,r))},e.prototype._renderHandle=function(e){if(!this._dragging&&this.updateHandleTransform){var t=this._axisPointerModel,n=this._api.getZr(),r=this._handle,i=t.getModel(`handle`),a=t.get(`status`);if(!i.get(`show`)||!a||a===`hide`){r&&n.remove(r),this._handle=null;return}var o;this._handle||(o=!0,r=this._handle=_p(i.get(`icon`),{cursor:`move`,draggable:!0,onmousemove:function(e){YT(e.event)},onmousedown:FL(this._onHandleDragMove,this,0,0),drift:FL(this._onHandleDragMove,this),ondragend:FL(this._onHandleDragEnd,this)}),n.add(r)),VL(r,t,!1),r.setStyle(i.getItemStyle(null,[`color`,`borderColor`,`borderWidth`,`opacity`,`shadowColor`,`shadowBlur`,`shadowOffsetX`,`shadowOffsetY`]));var s=i.get(`size`);U(s)||(s=[s,s]),r.scaleX=s[0]/2,r.scaleY=s[1]/2,Qw(this,`_doDispatchAxisPointer`,i.get(`throttle`)||0,`fixRate`),this._moveHandleToValue(e,o)}},e.prototype._moveHandleToValue=function(e,t){LL(this._axisPointerModel,!t&&this._moveAnimation,this._handle,BL(this.getHandleTransform(e,this._axisModel,this._axisPointerModel)))},e.prototype._onHandleDragMove=function(e,t){var n=this._handle;if(n){this._dragging=!0;var r=this.updateHandleTransform(BL(n),[e,t],this._axisModel,this._axisPointerModel);this._payloadInfo=r,n.stopAnimation(),n.attr(BL(r)),NL(n).lastProp=null,this._doDispatchAxisPointer()}},e.prototype._doDispatchAxisPointer=function(){if(this._handle){var e=this._payloadInfo,t=this._axisModel;this._api.dispatchAction({type:`updateAxisPointer`,x:e.cursorPoint[0],y:e.cursorPoint[1],tooltipOption:e.tooltipOption,axesInfo:[{axisDim:t.axis.dim,axisIndex:t.componentIndex}]})}},e.prototype._onHandleDragEnd=function(){if(this._dragging=!1,this._handle){var e=this._axisPointerModel.get(`value`);this._moveHandleToValue(e),this._api.dispatchAction({type:`hideTip`})}},e.prototype.clear=function(e){this._lastValue=null,this._lastStatus=null;var t=e.getZr(),n=this._group,r=this._handle;t&&n&&(this._lastGraphicKey=null,n&&t.remove(n),r&&t.remove(r),this._group=null,this._handle=null,this._payloadInfo=null),$w(this,`_doDispatchAxisPointer`)},e.prototype.doClear=function(){},e.prototype.buildLabel=function(e,t,n){return n||=0,{x:e[n],y:e[1-n],width:t[n],height:t[1-n]}},e}();function LL(e,t,n,r){RL(NL(n).lastProp,r)||(NL(n).lastProp=r,t?zf(n,r,e):(n.stopAnimation(),n.attr(r)))}function RL(e,t){if(K(e)&&K(t)){var n=!0;return z(t,function(t,r){n&&=RL(e[r],t)}),!!n}return e===t}function zL(e,t){e[t.get([`label`,`show`])?`show`:`hide`]()}function BL(e){return{x:e.x||0,y:e.y||0,rotation:e.rotation||0}}function VL(e,t,n){var r=t.get(`z`),i=t.get(`zlevel`);e&&e.traverse(function(e){e.type!==`group`&&(r!=null&&(e.z=r),i!=null&&(e.zlevel=i),e.silent=n)})}function HL(e){var t=e.get(`type`),n=e.getModel(t+`Style`),r;return t===`line`?(r=n.getLineStyle(),r.fill=null):t===`shadow`&&(r=n.getAreaStyle(),r.stroke=null),r}function UL(e,t,n,r,i){var a=GL(n.get(`value`),t.axis,t.ecModel,n.get(`seriesDataIndices`),{precision:n.get([`label`,`precision`]),formatter:n.get([`label`,`formatter`])}),o=n.getModel(`label`),s=L_(o.get(`padding`)||0),c=o.getFont(),l=qn(a,c),u=i.position,d=l.width+s[1]+s[3],f=l.height+s[0]+s[2],p=i.align;p===`right`&&(u[0]-=d),p===`center`&&(u[0]-=d/2);var m=i.verticalAlign;m===`bottom`&&(u[1]-=f),m===`middle`&&(u[1]-=f/2),WL(u,d,f,r);var h=o.get(`backgroundColor`);(!h||h===`auto`)&&(h=t.get([`axisLine`,`lineStyle`,`color`])),e.label={x:u[0],y:u[1],style:Gp(o,{text:a,font:c,fill:o.getTextColor(),padding:s,backgroundColor:h}),z2:10}}function WL(e,t,n,r){var i=r.getWidth(),a=r.getHeight();e[0]=Math.min(e[0]+t,i)-t,e[1]=Math.min(e[1]+n,a)-n,e[0]=Math.max(e[0],0),e[1]=Math.max(e[1],0)}function GL(e,t,n,r,i){e=t.scale.parse(e);var a=t.scale.getLabel({value:e},{precision:i.precision}),o=i.formatter;if(o){var s={value:bx(t,{value:e}),axisDimension:t.dim,axisIndex:t.index,seriesData:[]};z(r,function(e){var t=n.getSeriesByIndex(e.seriesIndex),r=e.dataIndexInside,i=t&&t.getDataParams(r);i&&s.seriesData.push(i)}),G(o)?a=o.replace(`{value}`,a):W(o)&&(a=o(s))}return a}function KL(e,t,n){var r=Mt();return Lt(r,r,n.rotation),It(r,r,n.position),up([e.dataToCoord(t),(n.labelOffset||0)+(n.labelDirection||1)*(n.labelMargin||0)],r)}function qL(e,t,n,r,i,a){var o=MC.innerTextLayout(n.rotation,0,n.labelDirection);n.labelMargin=i.get([`label`,`margin`]),UL(t,r,i,a,{position:KL(r.axis,e,n),align:o.textAlign,verticalAlign:o.textVerticalAlign})}function JL(e,t,n){return n||=0,{x1:e[n],y1:e[1-n],x2:t[n],y2:t[1-n]}}function YL(e,t,n){return n||=0,{x:e[n],y:e[1-n],width:t[n],height:t[1-n]}}function XL(e,t,n){return JS(e,{fromStat:{sers:B(t,function(e){return n.getSeriesByIndex(e.seriesIndex)})},min:1}).w}function ZL(e,t,n){return[Ys(Js(t[0],t[1]),e-n/2),Js(e+n/2,Ys(t[0],t[1]))]}var QL=function(e){D(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.makeElOption=function(e,t,n,r,i){var a=n.axis,o=a.grid,s=r.get(`type`),c=a.getGlobalExtent(),l=$L(o,a).getOtherAxis(a).getGlobalExtent(),u=a.toGlobalCoord(a.dataToCoord(t,!0));if(s&&s!==`none`){var d=HL(r),f=eR[s](a,u,c,l,r.get(`seriesDataIndices`),r.ecModel);f.style=d,e.graphicKey=f.type,e.pointer=f}qL(t,e,$C(o.getRect(),n),n,r,i)},t.prototype.getHandleTransform=function(e,t,n){var r=$C(t.axis.grid.getRect(),t,{labelInside:!1});r.labelMargin=n.get([`handle`,`margin`]);var i=KL(t.axis,e,r);return{x:i[0],y:i[1],rotation:r.rotation+(r.labelDirection<0?Math.PI:0)}},t.prototype.updateHandleTransform=function(e,t,n,r){var i=n.axis,a=i.grid,o=i.getGlobalExtent(!0),s=$L(a,i).getOtherAxis(i).getGlobalExtent(),c=i.dim===`x`?0:1,l=[e.x,e.y];l[c]+=t[c],l[c]=Js(o[1],l[c]),l[c]=Ys(o[0],l[c]);var u=(s[1]+s[0])/2,d=[u,u];return d[c]=l[c],{x:l[0],y:l[1],rotation:e.rotation,cursorPoint:d,tooltipOption:[{verticalAlign:`middle`},{align:`center`}][c]}},t}(IL);function $L(e,t){var n={};return n[t.dim+`AxisIndex`]=t.index,e.getCartesian(n)}var eR={line:function(e,t,n,r){return{type:`Line`,subPixelOptimize:!0,shape:JL([t,r[0]],[t,r[1]],tR(e))}},shadow:function(e,t,n,r,i,a){var o=XL(e,i,a),s=r[1]-r[0],c=ZL(t,n,o),l=c[0],u=c[1];return{type:`Rect`,shape:YL([l,r[0]],[u-l,s],tR(e))}}};function tR(e){return e.dim===`x`?0:1}var nR=function(e){D(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.type=`axisPointer`,t.defaultOption={show:`auto`,z:50,type:`line`,snap:!1,triggerTooltip:!0,triggerEmphasis:!0,value:null,status:null,link:[],animation:null,animationDurationUpdate:200,lineStyle:{color:Z.color.border,width:1,type:`dashed`},shadowStyle:{color:Z.color.shadowTint},label:{show:!0,formatter:null,precision:`auto`,margin:3,color:Z.color.neutral00,padding:[5,7,5,7],backgroundColor:Z.color.accent60,borderColor:null,borderWidth:0,borderRadius:3},handle:{show:!1,icon:`M10.7,11.9v-1.3H9.3v1.3c-4.9,0.3-8.8,4.4-8.8,9.4c0,5,3.9,9.1,8.8,9.4h1.3c4.9-0.3,8.8-4.4,8.8-9.4C19.5,16.3,15.6,12.2,10.7,11.9z M13.3,24.4H6.7v-1.2h6.6z M13.3,22H6.7v-1.2h6.6z M13.3,19.6H6.7v-1.2h6.6z`,size:45,margin:50,color:Z.color.accent40,throttle:40}},t}(cv),rR=ml(),iR=z;function aR(e,t,n){if(!Y.node){var r=t.getZr();rR(r).records||(rR(r).records={}),oR(r,t);var i=rR(r).records[e]||(rR(r).records[e]={});i.handler=n}}function oR(e,t){if(rR(e).initialized)return;rR(e).initialized=!0,n(`click`,Oe(lR,`click`)),n(`mousemove`,Oe(lR,`mousemove`)),n(`mousewheel`,Oe(lR,`mousewheel`)),n(`globalout`,cR);function n(n,r){e.on(n,function(n){var i=uR(t);iR(rR(e).records,function(e){e&&r(e,n,i.dispatchAction)}),sR(i.pendings,t)})}}function sR(e,t){var n=e.showTip.length,r=e.hideTip.length,i;n?i=e.showTip[n-1]:r&&(i=e.hideTip[r-1]),i&&(i.dispatchAction=null,t.dispatchAction(i))}function cR(e,t,n){e.handler(`leave`,null,n)}function lR(e,t,n,r){t.handler(e,n,r)}function uR(e){var t={showTip:[],hideTip:[]},n=function(r){var i=t[r.type];i?i.push(r):(r.dispatchAction=n,e.dispatchAction(r))};return{dispatchAction:n,pendings:t}}function dR(e,t){if(!Y.node){var n=t.getZr();(rR(n).records||{})[e]&&(rR(n).records[e]=null)}}var fR=function(e){D(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.prototype.render=function(e,t,n){var r=t.getComponent(`tooltip`),i=e.get(`triggerOn`)||r&&r.get(`triggerOn`)||`mousemove|click|mousewheel`;aR(`axisPointer`,n,function(e,t,n){i!==`none`&&(e===`leave`||i.indexOf(e)>=0)&&n({type:`updateAxisPointer`,currTrigger:e,x:t&&t.offsetX,y:t&&t.offsetY})})},t.prototype.remove=function(e,t){dR(`axisPointer`,t)},t.prototype.dispose=function(e,t){dR(`axisPointer`,t)},t.type=`axisPointer`,t}(sO);function pR(e,t){var n=[],r=e.seriesIndex,i;if(r==null||!(i=t.getSeriesByIndex(r)))return{point:[]};var a=i.getData(),o=pl(a,e);if(o==null||o<0||U(o))return{point:[]};var s=a.getItemGraphicEl(o),c=i.coordinateSystem;if(i.getTooltipPosition)n=i.getTooltipPosition(o)||[];else if(c&&c.dataToPoint){if(e.isStacked){var l=c.getBaseAxis(),u=c.getOtherAxis(l).dim,d=l.dim,f=+(u===`x`||u===`radius`),p=a.mapDimension(d),m=[];m[f]=a.get(p,o),m[1-f]=a.get(a.getCalculationInfo(`stackResultDimension`),o),n=c.dataToPoint(m)||[]}else n=c.dataToPoint(a.getValues(B(c.dimensions,function(e){return a.mapDimension(e)}),o))||[]}else if(s){var h=s.getBoundingRect().clone();h.applyTransform(s.transform),n=[h.x+h.width/2,h.y+h.height/2]}return{point:n,el:s}}var mR=ml();function hR(e,t,n){var r=e.currTrigger,i=[e.x,e.y],a=e,o=e.dispatchAction||H(n.dispatchAction,n),s=t.getComponent(`axisPointer`).coordSysAxesInfo;if(s){TR(i)&&(i=pR({seriesIndex:a.seriesIndex,dataIndex:a.dataIndex},t).point);var c=TR(i),l=a.axesInfo,u=s.axesInfo,d=r===`leave`||TR(i),f={},p={},m={list:[],map:{}},h={showPointer:Oe(vR,p),showTooltip:Oe(yR,m)};z(s.coordSysMap,function(e,t){var n=c||e.containPoint(i);z(s.coordSysAxesInfo[t],function(e,t){var r=e.axis,a=CR(l,e);if(!d&&n&&(!l||a)){var o=a&&a.value;o==null&&!c&&(o=r.pointToData(i)),o!=null&&gR(e,o,h,!1,f)}})});var g={};return z(u,function(e,t){var n=e.linkGroup;n&&!p[t]&&z(n.axesInfo,function(t,r){var i=p[r];if(t!==e&&i){var a=i.value;n.mapper&&(a=e.axis.scale.parse(n.mapper(a,wR(t),wR(e)))),g[e.key]=a}})}),z(g,function(e,t){gR(u[t],e,h,!0,f)}),bR(p,u,f),xR(m,i,e,o),SR(u,o,n),f}}function gR(e,t,n,r,i){var a=e.axis;if(!a.scale.isBlank()&&a.containData(t)){if(!e.involveSeries){n.showPointer(e,t);return}var o=_R(t,e),s=o.payloadBatch,c=o.snapToValue;s[0]&&i.seriesIndex==null&&I(i,s[0]),!r&&e.snap&&a.containData(c)&&c!=null&&(t=c),n.showPointer(e,t,s),n.showTooltip(e,o,c)}}function _R(e,t){var n=t.axis,r=n.dim,i=e,a=[],o=Number.MAX_VALUE,s=-1;return z(t.seriesModels,function(t,c){var l=t.getData().mapDimensionsAll(r),u,d;if(t.getAxisTooltipData){var f=t.getAxisTooltipData(l,e,n);d=f.dataIndices,u=f.nestestValue}else{if(d=t.indicesOfNearest(r,l[0],e,n.type===`category`?.5:null),!d.length)return;u=t.getData().get(l[0],d[0])}if(Ic(u)){var p=e-u,m=Math.abs(p);m<=o&&((m<o||p>=0&&s<0)&&(o=m,s=p,i=u,a.length=0),z(d,function(e){a.push({seriesIndex:t.seriesIndex,dataIndexInside:e,dataIndex:t.getData().getRawIndex(e)})}))}}),{payloadBatch:a,snapToValue:i}}function vR(e,t,n,r){e[t.key]={value:n,payloadBatch:r}}function yR(e,t,n,r){var i=n.payloadBatch,a=t.axis,o=a.model,s=t.axisPointerModel;if(t.triggerTooltip&&i.length){var c=t.coordSys.model,l=PM(c),u=e.map[l];u||(u=e.map[l]={coordSysId:c.id,coordSysIndex:c.componentIndex,coordSysType:c.type,coordSysMainType:c.mainType,dataByAxis:[]},e.list.push(u)),u.dataByAxis.push({axisDim:a.dim,axisIndex:o.componentIndex,axisType:o.type,axisId:o.id,value:r,valueLabelOpt:{precision:s.get([`label`,`precision`]),formatter:s.get([`label`,`formatter`])},seriesDataIndices:i.slice()})}}function bR(e,t,n){var r=n.axesInfo=[];z(t,function(t,n){var i=t.axisPointerModel.option,a=e[n];a?(!t.useHandle&&(i.status=`show`),i.value=a.value,i.seriesDataIndices=(a.payloadBatch||[]).slice()):!t.useHandle&&(i.status=`hide`),i.status===`show`&&r.push({axisDim:t.axis.dim,axisIndex:t.axis.model.componentIndex,value:i.value})})}function xR(e,t,n,r){if(TR(t)||!e.list.length){r({type:`hideTip`});return}var i=((e.list[0].dataByAxis[0]||{}).seriesDataIndices||[])[0]||{};r({type:`showTip`,escapeConnect:!0,x:t[0],y:t[1],tooltipOption:n.tooltipOption,position:n.position,dataIndexInside:i.dataIndexInside,dataIndex:i.dataIndex,seriesIndex:i.seriesIndex,dataByCoordSys:e.list})}function SR(e,t,n){var r=n.getZr(),i=`axisPointerLastHighlights`,a=mR(r)[i]||{},o=mR(r)[i]={};z(e,function(e,t){var n=e.axisPointerModel.option;n.status===`show`&&e.triggerEmphasis&&z(n.seriesDataIndices,function(e){o[e.seriesIndex+`|`+e.dataIndex]=e})});var s=[],c=[];function l(e){return{seriesIndex:e.seriesIndex,dataIndex:e.dataIndex}}z(a,function(e,t){!o[t]&&c.push(l(e))}),z(o,function(e,t){!a[t]&&s.push(l(e))}),c.length&&n.dispatchAction({type:`downplay`,escapeConnect:!0,notBlur:!0,batch:c}),s.length&&n.dispatchAction({type:`highlight`,escapeConnect:!0,notBlur:!0,batch:s})}function CR(e,t){for(var n=0;n<(e||[]).length;n++){var r=e[n];if(t.axis.dim===r.axisDim&&t.axis.model.componentIndex===r.axisIndex)return r}}function wR(e){var t=e.axis.model,n={},r=n.axisDim=e.axis.dim;return n.axisIndex=n[r+`AxisIndex`]=t.componentIndex,n.axisName=n[r+`AxisName`]=t.name,n.axisId=n[r+`AxisId`]=t.id,n}function TR(e){return!e||e[0]==null||isNaN(e[0])||e[1]==null||isNaN(e[1])}function ER(e){IM.registerAxisPointerClass(`CartesianAxisPointer`,QL),e.registerComponentModel(nR),e.registerComponentView(fR),e.registerPreprocessor(function(e){if(e){(!e.axisPointer||e.axisPointer.length===0)&&(e.axisPointer={});var t=e.axisPointer.link;t&&!U(t)&&(e.axisPointer.link=[t])}}),e.registerProcessor(e.PRIORITY.PROCESSOR.STATISTIC,{overallReset:function(e,t){e.getComponent(`axisPointer`).coordSysAxesInfo=wM(e,t)}}),e.registerAction({type:`updateAxisPointer`,event:`updateAxisPointer`,update:`:updateAxisPointer`},hR)}function DR(e){Vj(qM),Vj(ER)}var OR=[`x`,`y`,`radius`,`angle`,`single`],kR=ml(),AR=[`cartesian2d`,`polar`,`singleAxis`];function jR(e){return R(AR,e.get(`coordinateSystem`))>=0}function MR(e){return e+`Axis`}function NR(e,t){var n=J(),r=[],i=J();e.eachComponent({mainType:`dataZoom`,query:t},function(e){i.get(e.uid)||s(e)});var a;do a=!1,e.eachComponent(`dataZoom`,o);while(a);function o(e){!i.get(e.uid)&&c(e)&&(s(e),a=!0)}function s(e){i.set(e.uid,!0),r.push(e),l(e)}function c(e){var t=!1;return e.eachTargetAxis(function(e,r){var i=n.get(e);i&&i[r]&&(t=!0)}),t}function l(e){e.eachTargetAxis(function(e,t){(n.get(e)||n.set(e,[]))[t]=!0})}return r}function PR(e){var t=kR(TS(e));return t.axisProxyMap||=J()}function FR(e){if(e)return PR(e.ecModel).get(e.uid)}function IR(e,t){PR(e.ecModel).set(e.uid,t)}function LR(e,t){var n=t.getAxisModel().axis.__alignTo;return n&&e.getAxisProxy(n.dim,n.model.componentIndex)?FR(n.model):null}var RR=function(){function e(){this.indexList=[],this.indexMap=[]}return e.prototype.add=function(e){this.indexMap[e]||(this.indexList.push(e),this.indexMap[e]=!0)},e}(),zR=function(e){D(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n._autoThrottle=!0,n._noTarget=!0,n._rangePropMode=[`percent`,`percent`],n}return t.prototype.init=function(e,t,n){var r=BR(e);this.settledOption=r,this.mergeDefaultAndTheme(e,n),this._doInit(r)},t.prototype.mergeOption=function(e){var t=BR(e);F(this.option,e,!0),F(this.settledOption,t,!0),this._doInit(t)},t.prototype._doInit=function(e){var t=this.option;this._setDefaultThrottle(e),this._updateRangeUse(e);var n=this.settledOption;z([[`start`,`startValue`],[`end`,`endValue`]],function(e,r){this._rangePropMode[r]===`value`&&(t[e[0]]=n[e[0]]=null)},this),this._resetTarget()},t.prototype._resetTarget=function(){var e=this.get(`orient`,!0),t=this._targetAxisInfoMap=J();this._fillSpecifiedTargetAxis(t)?this._orient=e||this._makeAutoOrientByTargetAxis():(this._orient=e||`horizontal`,this._fillAutoTargetAxisByOrient(t,this._orient)),this._noTarget=!0,t.each(function(e){e.indexList.length&&(this._noTarget=!1)},this)},t.prototype._fillSpecifiedTargetAxis=function(e){var t=!1;return z(OR,function(n){var r=this.getReferringComponents(MR(n),yl);if(r.specified){t=!0;var i=new RR;z(r.models,function(e){i.add(e.componentIndex)}),e.set(n,i)}},this),t},t.prototype._fillAutoTargetAxisByOrient=function(e,t){var n=this.ecModel,r=!0;if(r){var i=t===`vertical`?`y`:`x`,a=n.findComponents({mainType:i+`Axis`});o(a,i)}if(r){var a=n.findComponents({mainType:`singleAxis`,filter:function(e){return e.get(`orient`,!0)===t}});o(a,`single`)}function o(t,n){var i=t[0];if(i){var a=new RR;if(a.add(i.componentIndex),e.set(n,a),r=!1,n===`x`||n===`y`){var o=i.getReferringComponents(`grid`,vl).models[0];o&&z(t,function(e){i.componentIndex!==e.componentIndex&&o===e.getReferringComponents(`grid`,vl).models[0]&&a.add(e.componentIndex)})}}}r&&z(OR,function(t){if(r){var i=n.findComponents({mainType:MR(t),filter:function(e){return e.get(`type`,!0)===`category`}});if(i[0]){var a=new RR;a.add(i[0].componentIndex),e.set(t,a),r=!1}}},this)},t.prototype._makeAutoOrientByTargetAxis=function(){var e;return this.eachTargetAxis(function(t){!e&&(e=t)},this),e===`y`?`vertical`:`horizontal`},t.prototype._setDefaultThrottle=function(e){if(e.hasOwnProperty(`throttle`)&&(this._autoThrottle=!1),this._autoThrottle){var t=this.ecModel.option;this.option.throttle=t.animation&&t.animationDurationUpdate>0?100:20}},t.prototype._updateRangeUse=function(e){var t=this._rangePropMode,n=this.get(`rangeMode`);z([[`start`,`startValue`],[`end`,`endValue`]],function(r,i){var a=e[r[0]]!=null,o=e[r[1]]!=null;a&&!o?t[i]=`percent`:!a&&o?t[i]=`value`:n?t[i]=n[i]:a&&(t[i]=`percent`)})},t.prototype.noTarget=function(){return this._noTarget},t.prototype.getFirstTargetAxisModel=function(){var e;return this.eachTargetAxis(function(t,n){e??=this.ecModel.getComponent(MR(t),n)},this),e},t.prototype.eachTargetAxis=function(e,t){this._targetAxisInfoMap.each(function(n,r){z(n.indexList,function(n){e.call(t,r,n)})})},t.prototype.getAxisProxy=function(e,t){return FR(this.getAxisModel(e,t))},t.prototype.getAxisModel=function(e,t){var n=this._targetAxisInfoMap.get(e);if(n&&n.indexMap[t])return this.ecModel.getComponent(MR(e),t)},t.prototype.setRawRange=function(e){var t=this.option,n=this.settledOption;z([[`start`,`startValue`],[`end`,`endValue`]],function(r){(e[r[0]]!=null||e[r[1]]!=null)&&(t[r[0]]=n[r[0]]=e[r[0]],t[r[1]]=n[r[1]]=e[r[1]])},this),this._updateRangeUse(e)},t.prototype.setCalculatedRange=function(e){var t=this.option;z([`start`,`startValue`,`end`,`endValue`],function(n){t[n]=e[n]})},t.prototype.getPercentRange=function(){var e=this.findRepresentativeAxisProxy();if(e)return e.getWindow().percent},t.prototype.getValueRange=function(e,t){if(e==null&&t==null){var n=this.findRepresentativeAxisProxy();if(n)return n.getWindow().value}else return this.getAxisProxy(e,t).getWindow().value},t.prototype.findRepresentativeAxisProxy=function(e){if(e)return FR(e);for(var t,n=this._targetAxisInfoMap.keys(),r=0;r<n.length;r++)for(var i=n[r],a=this._targetAxisInfoMap.get(i),o=0;o<a.indexList.length;o++){var s=this.getAxisProxy(i,a.indexList[o]);if(s.hostedBy(this))return s;t||=s}return t},t.prototype.getRangePropMode=function(){return this._rangePropMode.slice()},t.prototype.getOrient=function(){return this._orient},t.type=`dataZoom`,t.dependencies=[`xAxis`,`yAxis`,`radiusAxis`,`angleAxis`,`singleAxis`,`series`,`toolbox`],t.defaultOption={z:4,filterMode:`filter`,start:0,end:100},t}(cv);function BR(e){var t={};return z([`start`,`end`,`startValue`,`endValue`,`throttle`],function(n){e.hasOwnProperty(n)&&(t[n]=e[n])}),t}var VR=function(e){D(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.type=`dataZoom.select`,t}(zR),HR=function(e){D(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.type=`dataZoom.select`,t}(function(e){D(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.prototype.render=function(e,t,n,r){this.dataZoomModel=e,this.ecModel=t,this.api=n},t.type=`dataZoom`,t}(sO)),UR=function(){function e(e,t,n,r){this._dimName=e,this._axisIndex=t,this.ecModel=r,this._dataZoomModel=n}return e.prototype.hostedBy=function(e){return this._dataZoomModel===e},e.prototype.getWindow=function(){return P(this._window)},e.prototype.getTargetSeriesModels=function(){var e=[];return this.ecModel.eachSeries(function(t){if(jR(t)){var n=MR(this._dimName),r=t.getReferringComponents(n,vl).models[0];r&&this._axisIndex===r.componentIndex&&e.push(t)}},this),e},e.prototype.getAxisModel=function(){return this.ecModel.getComponent(this._dimName+`Axis`,this._axisIndex)},e.prototype.getMinMaxSpan=function(){return P(this._minMaxSpan)},e.prototype.calculateDataWindow=function(e){var t=this._extent,n=this.getAxisModel().axis,r=n.scale,i=this._dataZoomModel.getRangePropMode(),a=[0,100],o=[],s=[],c,l=[!1,!1];z([`start`,`end`],function(n,u){var d=e[n],f=e[n+`Value`];i[u]===`percent`?(d??=a[u],f=ac(d,a,t),l[u]=!0):(c=!0,f==null?f=t[u]:(f=r.parse(f),r.sanitize&&(f=r.sanitize(f,t))),d=ac(f,t,a)),s[u]=f==null||isNaN(f)?t[u]:f,o[u]=d==null||isNaN(d)?a[u]:d}),pc(s),pc(o);var u=this._minMaxSpan;c?d(s,o,t,a,!1):d(o,s,a,t,!0);function d(e,t,n,r,i){var a=i?`Span`:`ValueSpan`;jI(0,e,n,`all`,u[`min`+a],u[`max`+a]);for(var o=0;o<2;o++)t[o]=ac(e[o],n,r,!0),i&&(t[o]=t[o],l[o]=!0);Pl(t)}var f=Pb(r)||Mb(r),p=n.getExtent(),m=Xs(p[1]-p[0]),h=f?0:_c(s,m,.5);z([[0,$s],[1,Qs]],function(e){var n=e[0],r=e[1];l[n]&&isFinite(h)&&(s[n]=dc(s[n],h),s[n]=Js(t[1],Ys(t[0],s[n])),o[n]===a[n]&&(s[n]=t[n],f&&(s[n]=r(s[n]))))}),Pl(s);var g=[ac(s[0],t,a,!0),ac(s[1],t,a,!0)];return Pl(g),{value:s,percent:o,percentInverted:g,valuePrecision:h}},e.prototype.reset=function(e,t){if(this.hostedBy(e)){var n=this.getAxisModel().axis;mw(n,2);var r=n.scale.rawExtentInfo;this._extent=r.makeNoZoom(),this._updateMinMaxSpan();var i=e.settledOption;t&&(i=L({start:t[0],end:t[1]},i));var a=this._window=this.calculateDataWindow(i),o=a.percent,s=a.value;o[0]!==0&&r.setZoomMM(0,s[0]),o[1]!==100&&r.setZoomMM(1,s[1])}},e.prototype.filterData=function(e,t){if(!this.hostedBy(e))return;var n=this._dimName,r=this.getTargetSeriesModels(),i=e.get(`filterMode`),a=this._window.value;if(i===`none`)return;z(r,function(e){var t=e.getData(),r=t.mapDimensionsAll(n);if(r.length){if(i===`weakFilter`){var s=t.getStore(),c=B(r,function(e){return t.getDimensionIndex(e)},t);t.filterSelf(function(e){for(var t,n,i,o=0;o<r.length;o++){var l=s.get(c[o],e),u=!isNaN(l),d=l<a[0],f=l>a[1];if(u&&!d&&!f)return!0;u&&(i=!0),d&&(t=!0),f&&(n=!0)}return i&&t&&n})}else z(r,function(n){if(i===`empty`)e.setData(t=t.map(n,function(e){return o(e)?e:NaN}));else{var r={};r[n]=a,t.selectRange(r)}});z(r,function(e){t.setApproximateExtent(a,e)})}});function o(e){return e>=a[0]&&e<=a[1]}},e.prototype._updateMinMaxSpan=function(){var e=this._minMaxSpan={},t=this._dataZoomModel,n=this._extent;z([`min`,`max`],function(r){var i=t.get(r+`Span`),a=t.get(r+`ValueSpan`);a!=null&&(a=this.getAxisModel().axis.scale.parse(a)),a==null?i!=null&&(a=ac(i,[0,100],n,!0)-n[0]):i=ac(n[0]+a,n,[0,100],!0),e[r+`Span`]=i,e[r+`ValueSpan`]=a},this)},e}(),WR={dirtyOnOverallProgress:!0,getTargetSeries:function(e){function t(t){e.eachComponent(`dataZoom`,function(n){n.eachTargetAxis(function(r,i){t(r,i,e.getComponent(MR(r),i),n)})})}var n=[];t(function(t,r,i,a){if(!FR(i)){var o=new UR(t,r,a,e);n.push(o),IR(i,o)}});var r=J();return z(n,function(e){z(e.getTargetSeriesModels(),function(e){r.set(e.uid,e)})}),r},overallReset:function(e,t){e.eachComponent(`dataZoom`,function(e){var n=[];e.eachTargetAxis(function(t,r){var i=e.getAxisProxy(t,r),a=LR(e,i);a?n.push([i,a]):i.reset(e,null)}),z(n,function(t){t[0].reset(e,t[1].getWindow().percentInverted)}),e.eachTargetAxis(function(n,r){e.getAxisProxy(n,r).filterData(e,t)})}),e.eachComponent(`dataZoom`,function(e){var t=e.findRepresentativeAxisProxy();if(t){var n=t.getWindow(),r=n.percent,i=n.value;e.setCalculatedRange({start:r[0],end:r[1],startValue:i[0],endValue:i[1]})}})}};function GR(e){e.registerAction(`dataZoom`,function(e,t){z(NR(t,e),function(t){t.setRawRange({start:e.start,end:e.end,startValue:e.startValue,endValue:e.endValue})})})}var KR=Fl();function qR(e){KR(e,function(){e.registerProcessor(e.PRIORITY.PROCESSOR.FILTER,WR),GR(e),e.registerSubTypeDefaulter(`dataZoom`,function(){return`slider`})})}function JR(e){e.registerComponentModel(VR),e.registerComponentView(HR),qR(e)}var YR=function(){function e(){}return e}(),XR={};function ZR(e,t){XR[e]=t}function QR(e){return XR[e]}var $R=function(e){D(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.prototype.init=function(t,n,r){var i=r.getTheme().get(`toolbox`),a=i?i.feature:null;a&&(this._themeFeatureOption=I({},a),i.feature={}),e.prototype.init.call(this,t,n,r),a&&(i.feature=a)},t.prototype.optionUpdated=function(){z(this.option.feature,function(e,t){var n=this._themeFeatureOption,r=QR(t);r&&(r.getDefaultOption&&(r.defaultOption=r.getDefaultOption(this.ecModel)),n&&n[t]&&(F(e,n[t]),n[t]=null),F(e,r.defaultOption))},this)},t.type=`toolbox`,t.layoutMode={type:`box`,ignoreSize:!0},t.defaultOption={show:!0,z:6,orient:`horizontal`,left:`right`,top:`top`,backgroundColor:`transparent`,borderColor:Z.color.border,borderRadius:0,borderWidth:0,padding:Z.size.m,itemSize:15,itemGap:Z.size.s,showTitle:!0,iconStyle:{borderColor:Z.color.accent50,color:`none`},emphasis:{iconStyle:{borderColor:Z.color.accent70}},tooltip:{show:!1,position:`bottom`}},t}(cv);function ez(e,t){var n=L_(t.get(`padding`)),r=t.getItemStyle([`color`,`opacity`]);return r.fill=t.get(`backgroundColor`),new Es({shape:{x:e.x-n[3],y:e.y-n[0],width:e.width+n[1]+n[3],height:e.height+n[0]+n[2],r:t.get(`borderRadius`)},style:r,silent:!0,z2:-1})}var tz=function(e){D(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.render=function(e,t,n,r){var i=this.group;if(i.removeAll(),!e.get(`show`))return;var a=+e.get(`itemSize`),o=e.get(`orient`)===`vertical`,s=e.get(`feature`)||{},c=this._features||=J(),l=[];z(s,function(e,t){l.push(t)}),new gm(this._featureNames||[],l).add(u).update(u).remove(Oe(u,null)).execute(),this._featureNames=Te(l,function(e){return c.hasKey(e)});function u(i,a){var o=i!=null&&a==null,u=i!=null&&a!=null,f=i==null,p=o||u?l[i]:l[a],m=s[p],h=o||u?new pm(m,e,t):null,g=h&&h.get(`show`),_;if(o){if(!g)return;if(nz(p))_={onclick:h.option.onclick,featureName:p};else{var v=QR(p);if(!v)return;_=new v}c.set(p,_)}else _=c.get(p);if(f||!g){rz(_)&&_.dispose&&_.dispose(t,n),c.removeKey(p);return}r&&r.newTitle!=null&&r.featureName===p&&(m.title=r.newTitle),o&&(_.uid=_g(`toolbox-feature`)),_.model=h,_.ecModel=t,_.api=n,d(h,_,p),h.setIconStatus=function(e,t){var n=this.option,r=this.iconPaths;n.iconStatus=n.iconStatus||{},n.iconStatus[e]=t,r[e]&&(t===`emphasis`?Iu:Lu)(r[e])},rz(_)&&_.render&&_.render(h,t,n,r)}function d(r,s,c){var l=r.getModel(`iconStyle`),u=r.getModel([`emphasis`,`iconStyle`]),d=s instanceof YR&&s.getIcons?s.getIcons():r.get(`icon`),f=r.get(`title`)||{},p,m;G(d)?(p={},p[c]=d):p=d,G(f)?(m={},m[c]=f):m=f;var h=r.iconPaths={};z(p,function(c,d){var f=_p(c,{},{x:-a/2,y:-a/2,width:a,height:a});f.setStyle(l.getItemStyle());var p=f.ensureState(`emphasis`);p.style=u.getItemStyle();var g=new js({style:{text:m[d],align:u.get(`textAlign`),borderRadius:u.get(`textBorderRadius`),padding:u.get(`textPadding`),fill:null,font:$p({fontStyle:u.get(`textFontStyle`),fontFamily:u.get(`textFontFamily`),fontSize:u.get(`textFontSize`),fontWeight:u.get(`textFontWeight`)},t)},ignore:!0});f.setTextContent(g),Tp({el:f,componentModel:e,itemName:d,formatterParamsExtra:{title:m[d]}}),f.__title=m[d],f.on(`mouseover`,function(){var t=u.getItemStyle(),r=o?e.get(`right`)==null&&e.get(`left`)!==`right`?`right`:`left`:e.get(`bottom`)==null&&e.get(`top`)!==`bottom`?`bottom`:`top`;g.setStyle({fill:u.get(`textFill`)||t.fill||t.stroke||Z.color.neutral99,backgroundColor:u.get(`textBackgroundColor`)}),f.setTextConfig({position:u.get(`textPosition`)||r}),g.ignore=!e.get(`showTitle`),n.enterEmphasis(this)}).on(`mouseout`,function(){r.get([`iconStatus`,d])!==`emphasis`&&n.leaveEmphasis(this),g.hide()}),(r.get([`iconStatus`,d])===`emphasis`?Iu:Lu)(f),i.add(f),f.on(`click`,H(s.onclick,s,t,n,d)),h[d]=f})}var f=tv(e,n).refContainer,p=e.getBoxLayoutParams(),m=e.get(`padding`),h=Q_(p,f,m);X_(e.get(`orient`),i,e.get(`itemGap`),h.width,h.height),nv(i,p,f,m),i.add(ez(i.getBoundingRect(),e)),o||i.eachChild(function(e){var t=e.__title,r=e.ensureState(`emphasis`),o=r.textConfig||={},s=e.getTextContent(),c=s&&s.ensureState(`emphasis`);if(c&&!W(c)&&t){var l=c.style||={},u=qn(t,js.makeFont(l)),d=e.x+i.x,f=e.y+i.y+a,p=!1;f+u.height>n.getHeight()&&(o.position=`top`,p=!0);var m=p?-5-u.height:a+10;d+u.width/2>n.getWidth()?(o.position=[`100%`,m],l.align=`right`):d-u.width/2<0&&(o.position=[0,m],l.align=`left`)}})},t.prototype.updateView=function(e,t,n,r){z(this._features,function(e){e&&e instanceof YR&&e.updateView&&e.updateView(e.model,t,n,r)})},t.prototype.dispose=function(e,t){z(this._features,function(n){n&&n instanceof YR&&n.dispose&&n.dispose(e,t)})},t.type=`toolbox`,t}(sO);function nz(e){return e.indexOf(`my`)===0}function rz(e){return e instanceof YR}var iz=function(e){D(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.onclick=function(e,t){var n=this.model,r=n.get(`name`)||e.get(`title.0.text`)||`echarts`,i=t.getZr().painter.getType()===`svg`,a=i?`svg`:n.get(`type`,!0)||`png`,o=t.getConnectedDataURL({type:a,backgroundColor:n.get(`backgroundColor`,!0)||e.get(`backgroundColor`)||Z.color.neutral00,connectedBackgroundColor:n.get(`connectedBackgroundColor`),excludeComponents:n.get(`excludeComponents`),pixelRatio:n.get(`pixelRatio`)}),s=Y.browser;if(typeof MouseEvent==`function`&&(s.newEdge||!s.ie&&!s.edge)){var c=document.createElement(`a`);c.download=r+`.`+a,c.target=`_blank`,c.href=o;var l=new MouseEvent(`click`,{view:document.defaultView,bubbles:!0,cancelable:!1});c.dispatchEvent(l)}else if(window.navigator.msSaveOrOpenBlob||i){var u=o.split(`,`),d=u[0].indexOf(`base64`)>-1,f=i?decodeURIComponent(u[1]):u[1];d&&(f=window.atob(f));var p=r+`.`+a;if(window.navigator.msSaveOrOpenBlob){for(var m=f.length,h=new Uint8Array(m);m--;)h[m]=f.charCodeAt(m);var g=new Blob([h]);window.navigator.msSaveOrOpenBlob(g,p)}else{var _=document.createElement(`iframe`);document.body.appendChild(_);var v=_.contentWindow,y=v.document;y.open(`image/svg+xml`,`replace`),y.write(f),y.close(),v.focus(),y.execCommand(`SaveAs`,!0,p),document.body.removeChild(_)}}else{var b=n.get(`lang`),x=`<body style="margin:0;"><img src="`+o+`" style="max-width:100%;" title="`+(b&&b[0]||``)+`" /></body>`,S=window.open();S.document.write(x),S.document.title=r}},t.getDefaultOption=function(e){return{show:!0,icon:`M4.7,22.9L29.3,45.5L54.7,23.4M4.6,43.6L4.6,58L53.8,58L53.8,43.6M29.2,45.1L29.2,0`,title:e.getLocaleModel().get([`toolbox`,`saveAsImage`,`title`]),type:`png`,connectedBackgroundColor:Z.color.neutral00,name:``,excludeComponents:[`toolbox`],lang:e.getLocaleModel().get([`toolbox`,`saveAsImage`,`lang`])}},t}(YR),az=`__ec_magicType_stack__`,oz=[[`line`,`bar`],[`stack`]],sz=function(e){D(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.getIcons=function(){var e=this.model,t=e.get(`icon`),n={};return z(e.get(`type`),function(e){t[e]&&(n[e]=t[e])}),n},t.getDefaultOption=function(e){return{show:!0,type:[],icon:{line:`M4.1,28.9h7.1l9.3-22l7.4,38l9.7-19.7l3,12.8h14.9M4.1,58h51.4`,bar:`M6.7,22.9h10V48h-10V22.9zM24.9,13h10v35h-10V13zM43.2,2h10v46h-10V2zM3.1,58h53.7`,stack:`M8.2,38.4l-8.4,4.1l30.6,15.3L60,42.5l-8.1-4.1l-21.5,11L8.2,38.4z M51.9,30l-8.1,4.2l-13.4,6.9l-13.9-6.9L8.2,30l-8.4,4.2l8.4,4.2l22.2,11l21.5-11l8.1-4.2L51.9,30z M51.9,21.7l-8.1,4.2L35.7,30l-5.3,2.8L24.9,30l-8.4-4.1l-8.3-4.2l-8.4,4.2L8.2,30l8.3,4.2l13.9,6.9l13.4-6.9l8.1-4.2l8.1-4.1L51.9,21.7zM30.4,2.2L-0.2,17.5l8.4,4.1l8.3,4.2l8.4,4.2l5.5,2.7l5.3-2.7l8.1-4.2l8.1-4.2l8.1-4.1L30.4,2.2z`},title:e.getLocaleModel().get([`toolbox`,`magicType`,`title`]),option:{},seriesIndex:{}}},t.prototype.onclick=function(e,t,n){var r=this.model,i=r.get([`seriesIndex`,n]);if(cz[n]){var a={series:[]};z(oz,function(e){R(e,n)>=0&&z(e,function(e){r.setIconStatus(e,`normal`)})}),r.setIconStatus(n,`emphasis`),e.eachComponent({mainType:`series`,query:i==null?null:{seriesIndex:i}},function(e){var t=e.subType,i=e.id,o=cz[n](t,i,e,r);o&&(L(o,e.option),a.series.push(o));var s=e.coordinateSystem;if(s&&s.type===`cartesian2d`&&(n===`line`||n===`bar`)){var c=s.getAxesByScale(`ordinal`)[0];if(c){var l=c.dim+`Axis`,u=e.getReferringComponents(l,vl).models[0].componentIndex;a[l]=a[l]||[];for(var d=0;d<=u;d++)a[l][u]=a[l][u]||{};a[l][u].boundaryGap=n===`bar`}}});var o,s=n;n===`stack`&&(o=F({stack:r.option.title.tiled,tiled:r.option.title.stack},r.option.title),r.get([`iconStatus`,n])!==`emphasis`&&(s=`tiled`)),t.dispatchAction({type:`changeMagicType`,currentType:s,newOption:a,newTitle:o,featureName:`magicType`})}},t}(YR),cz={line:function(e,t,n,r){if(e===`bar`)return F({id:t,type:`line`,data:n.get(`data`),stack:n.get(`stack`),markPoint:n.get(`markPoint`),markLine:n.get(`markLine`)},r.get([`option`,`line`])||{},!0)},bar:function(e,t,n,r){if(e===`line`)return F({id:t,type:`bar`,data:n.get(`data`),stack:n.get(`stack`),markPoint:n.get(`markPoint`),markLine:n.get(`markLine`)},r.get([`option`,`bar`])||{},!0)},stack:function(e,t,n,r){var i=n.get(`stack`)===az;if(e===`line`||e===`bar`)return r.setIconStatus(`stack`,i?`normal`:`emphasis`),F({id:t,stack:i?``:az},r.get([`option`,`stack`])||{},!0)}};wj({type:`changeMagicType`,event:`magicTypeChanged`,update:`prepareAndUpdate`},function(e,t){t.mergeOption(e.newOption)});var lz=Array(60).join(`-`),uz=` `;function dz(e){var t={},n=[],r=[];return e.eachRawSeries(function(e){var i=e.coordinateSystem;if(i&&(i.type===`cartesian2d`||i.type===`polar`)){var a=i.getBaseAxis();if(a.type===`category`){var o=iw(a);t[o]||(t[o]={categoryAxis:a,valueAxis:i.getOtherAxis(a),series:[]},r.push({axisDim:a.dim,axisIndex:a.index})),t[o].series.push(e)}else n.push(e)}else n.push(e)}),{seriesGroupByCategoryAxis:t,other:n,meta:r}}function fz(e){var t=[];return z(e,function(e,n){var r=e.categoryAxis,i=e.valueAxis.dim,a=[` `].concat(B(e.series,function(e){return e.name})),o=[r.model.getCategories()];z(e.series,function(e){var t=e.getRawData();o.push(e.getRawData().mapArray(t.mapDimension(i),function(e){return e}))});for(var s=[a.join(uz)],c=0;c<o[0].length;c++){for(var l=[],u=0;u<o.length;u++)l.push(o[u][c]);s.push(l.join(uz))}t.push(s.join(`
|
|
18
|
+
`))}),t.join(`
|
|
19
|
+
|
|
20
|
+
`+lz+`
|
|
21
|
+
|
|
22
|
+
`)}function pz(e){return B(e,function(e){var t=e.getRawData(),n=[e.name],r=[];return t.each(t.dimensions,function(){for(var e=arguments.length,i=arguments[e-1],a=t.getName(i),o=0;o<e-1;o++)r[o]=arguments[o];n.push((a?a+uz:``)+r.join(uz))}),n.join(`
|
|
23
|
+
`)}).join(`
|
|
24
|
+
|
|
25
|
+
`+lz+`
|
|
26
|
+
|
|
27
|
+
`)}function mz(e){var t=dz(e);return{value:Te([fz(t.seriesGroupByCategoryAxis),pz(t.other)],function(e){return!!e.replace(/[\n\t\s]/g,``)}).join(`
|
|
28
|
+
|
|
29
|
+
`+lz+`
|
|
30
|
+
|
|
31
|
+
`),meta:t.meta}}function hz(e){return e.replace(/^\s\s*/,``).replace(/\s\s*$/,``)}function gz(e){if(e.slice(0,e.indexOf(`
|
|
32
|
+
`)).indexOf(uz)>=0)return!0}var _z=RegExp(`[`+uz+`]+`,`g`);function vz(e){for(var t=e.split(/\n+/g),n=hz(t.shift()).split(_z),r=[],i=B(n,function(e){return{name:e,data:[]}}),a=0;a<t.length;a++){var o=hz(t[a]).split(_z);r.push(o.shift());for(var s=0;s<o.length;s++)i[s]&&(i[s].data[a]=o[s])}return{series:i,categories:r}}function yz(e){for(var t=e.split(/\n+/g),n=hz(t.shift()),r=[],i=0;i<t.length;i++){var a=hz(t[i]);if(a){var o=a.split(_z),s=``,c=void 0,l=!1;isNaN(o[0])?(l=!0,s=o[0],o=o.slice(1),r[i]={name:s,value:[]},c=r[i].value):c=r[i]=[];for(var u=0;u<o.length;u++)c.push(+o[u]);c.length===1&&(l?r[i].value=c[0]:r[i]=c[0])}}return{name:n,data:r}}function bz(e,t){var n=e.split(RegExp(`
|
|
33
|
+
*`+lz+`
|
|
34
|
+
*`,`g`)),r={series:[]};return z(n,function(e,n){if(gz(e)){var i=vz(e),a=t[n],o=a.axisDim+`Axis`;a&&(r[o]=r[o]||[],r[o][a.axisIndex]={data:i.categories},r.series=r.series.concat(i.series))}else{var i=yz(e);r.series.push(i)}}),r}var xz=function(e){D(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.onclick=function(e,t){setTimeout(function(){t.dispatchAction({type:`hideTip`})});var n=t.getDom(),r=this.model;this._dom&&n.removeChild(this._dom);var i=document.createElement(`div`);i.style.cssText=`position:absolute;top:0;bottom:0;left:0;right:0;padding:5px`,i.style.backgroundColor=r.get(`backgroundColor`)||Z.color.neutral00;var a=document.createElement(`h4`),o=r.get(`lang`)||[];a.innerHTML=o[0]||r.get(`title`),a.style.cssText=`margin:10px 20px`,a.style.color=r.get(`textColor`);var s=document.createElement(`div`),c=document.createElement(`textarea`);s.style.cssText=`overflow:auto`;var l=r.get(`optionToContent`),u=r.get(`contentToOption`),d=mz(e);if(W(l)){var f=l(t.getOption());G(f)?s.innerHTML=f:Ne(f)&&s.appendChild(f)}else{c.readOnly=r.get(`readOnly`);var p=c.style;p.cssText=`display:block;width:100%;height:100%;font-family:monospace;font-size:14px;line-height:1.6rem;resize:none;box-sizing:border-box;outline:none`,p.color=r.get(`textColor`),p.borderColor=r.get(`textareaBorderColor`),p.backgroundColor=r.get(`textareaColor`),c.value=d.value,s.appendChild(c)}var m=d.meta,h=document.createElement(`div`);h.style.cssText=`position:absolute;bottom:5px;left:0;right:0`;var g=`float:right;margin-right:20px;border:none;cursor:pointer;padding:2px 5px;font-size:12px;border-radius:3px`,_=document.createElement(`div`),v=document.createElement(`div`);g+=`;background-color:`+r.get(`buttonColor`),g+=`;color:`+r.get(`buttonTextColor`);var y=this;function b(){n.removeChild(i),y._dom=null}qT(_,`click`,b),qT(v,`click`,function(){if(u==null&&l!=null||u!=null&&l==null){b();return}var e;try{e=W(u)?u(s,t.getOption()):bz(c.value,m)}catch(e){throw b(),Error(`Data view format error `+e)}e&&t.dispatchAction({type:`changeDataView`,newOption:e}),b()}),_.innerHTML=o[1],v.innerHTML=o[2],v.style.cssText=_.style.cssText=g,!r.get(`readOnly`)&&h.appendChild(v),h.appendChild(_),i.appendChild(a),i.appendChild(s),i.appendChild(h),s.style.height=n.clientHeight-80+`px`,n.appendChild(i),this._dom=i},t.prototype.dispose=function(e,t){this._dom&&t.getDom().removeChild(this._dom)},t.getDefaultOption=function(e){return{show:!0,readOnly:!1,optionToContent:null,contentToOption:null,icon:`M17.5,17.3H33 M17.5,17.3H33 M45.4,29.5h-28 M11.5,2v56H51V14.8L38.4,2H11.5z M38.4,2.2v12.7H51 M45.4,41.7h-28`,title:e.getLocaleModel().get([`toolbox`,`dataView`,`title`]),lang:e.getLocaleModel().get([`toolbox`,`dataView`,`lang`]),backgroundColor:Z.color.background,textColor:Z.color.primary,textareaColor:Z.color.background,textareaBorderColor:Z.color.border,buttonColor:Z.color.accent50,buttonTextColor:Z.color.neutral00}},t}(YR);function Sz(e,t){return B(e,function(e,n){var r=t&&t[n];if(K(r)&&!U(r)){(!K(e)||U(e))&&(e={value:e});var i=r.name!=null&&e.name==null;return e=L(e,r),i&&delete e.name,e}return e})}wj({type:`changeDataView`,event:`dataViewChanged`,update:`prepareAndUpdate`},function(e,t){var n=[];z(e.newOption.series,function(e){var r=t.getSeriesByName(e.name)[0];if(!r)n.push(I({type:`scatter`},e));else{var i=r.get(`data`);n.push({name:e.name,data:Sz(e.data,i)})}}),t.mergeOption(L({series:n},e.newOption))});var Cz=z,wz=ml();function Tz(e,t){var n=kz(e);Cz(t,function(t,r){for(var i=n.length-1;i>=0&&!n[i][r];i--);if(i<0){var a=e.queryComponents({mainType:`dataZoom`,subType:`select`,id:r})[0];if(a){var o=a.getPercentRange();n[0][r]={dataZoomId:r,start:o[0],end:o[1]}}}}),n.push(t)}function Ez(e){var t=kz(e),n=t[t.length-1];t.length>1&&t.pop();var r={};return Cz(n,function(e,n){for(var i=t.length-1;i>=0;i--)if(e=t[i][n],e){r[n]=e;break}}),r}function Dz(e){wz(e).snapshots=null}function Oz(e){return kz(e).length}function kz(e){var t=wz(e);return t.snapshots||=[{}],t.snapshots}var Az=function(e){D(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.onclick=function(e,t){Dz(e),t.dispatchAction({type:`restore`,from:this.uid})},t.getDefaultOption=function(e){return{show:!0,icon:`M3.8,33.4 M47,18.9h9.8V8.7 M56.3,20.1 C52.1,9,40.5,0.6,26.8,2.1C12.6,3.7,1.6,16.2,2.1,30.6 M13,41.1H3.1v10.2 M3.7,39.9c4.2,11.1,15.8,19.5,29.5,18 c14.2-1.6,25.2-14.1,24.7-28.5`,title:e.getLocaleModel().get([`toolbox`,`restore`,`title`])}},t}(YR);wj({type:`restore`,event:`restore`,update:`prepareAndUpdate`},function(e,t){t.resetOption(`recreate`)});var jz=[`grid`,`xAxis`,`yAxis`,`geo`,`graph`,`polar`,`radiusAxis`,`angleAxis`,`bmap`],Mz=function(){function e(e,t,n){var r=this;this._targetInfoList=[];var i=Pz(t,e);z(Fz,function(e,t){(!n||!n.include||R(n.include,t)>=0)&&e(i,r._targetInfoList)})}return e.prototype.setOutputRanges=function(e,t){return this.matchOutputRanges(e,t,function(e,t,n){if((e.coordRanges||=[]).push(t),!e.coordRange){e.coordRange=t;var r=Rz[e.brushType](0,n,t);e.__rangeOffset={offset:Bz[e.brushType](r.values,e.range,[1,1]),xyMinMax:r.xyMinMax}}}),e},e.prototype.matchOutputRanges=function(e,t,n){z(e,function(e){var r=this.findTargetInfo(e,t);r&&r!==!0&&z(r.coordSyses,function(r){n(e,Rz[e.brushType](1,r,e.range,!0).values,r,t)})},this)},e.prototype.setInputRanges=function(e,t){z(e,function(e){var n=this.findTargetInfo(e,t);if(e.range=e.range||[],n&&n!==!0){e.panelId=n.panelId;var r=Rz[e.brushType](0,n.coordSys,e.coordRange),i=e.__rangeOffset;e.range=i?Bz[e.brushType](r.values,i.offset,Hz(r.xyMinMax,i.xyMinMax)):r.values}},this)},e.prototype.makePanelOpts=function(e,t){return B(this._targetInfoList,function(n){var r=n.getPanelRect();return{panelId:n.panelId,defaultBrushType:t?t(n):null,clipPath:kL(r),isTargetByCursor:jL(r,e,n.coordSysModel),getLinearBrushOtherExtent:AL(r)}})},e.prototype.controlSeries=function(e,t,n){var r=this.findTargetInfo(e,n);return r===!0||r&&R(r.coordSyses,t.coordinateSystem)>=0},e.prototype.findTargetInfo=function(e,t){for(var n=this._targetInfoList,r=Pz(t,e),i=0;i<n.length;i++){var a=n[i],o=e.panelId;if(o){if(a.panelId===o)return a}else for(var s=0;s<Iz.length;s++)if(Iz[s](r,a))return a}return!0},e}();function Nz(e){return e[0]>e[1]&&e.reverse(),e}function Pz(e,t){return gl(e,t,{includeMainTypes:jz})}var Fz={grid:function(e,t){var n=e.xAxisModels,r=e.yAxisModels,i=e.gridModels,a=J(),o={},s={};(n||r||i)&&(z(n,function(e){var t=e.axis.grid.model;a.set(t.id,t),o[t.id]=!0}),z(r,function(e){var t=e.axis.grid.model;a.set(t.id,t),s[t.id]=!0}),z(i,function(e){a.set(e.id,e),o[e.id]=!0,s[e.id]=!0}),a.each(function(e){var i=e.coordinateSystem,a=[];z(i.getCartesians(),function(e,t){(R(n,e.getAxis(`x`).model)>=0||R(r,e.getAxis(`y`).model)>=0)&&a.push(e)}),t.push({panelId:`grid--`+e.id,gridModel:e,coordSysModel:e,coordSys:a[0],coordSyses:a,getPanelRect:Lz.grid,xAxisDeclared:o[e.id],yAxisDeclared:s[e.id]})}))},geo:function(e,t){z(e.geoModels,function(e){var n=e.coordinateSystem;t.push({panelId:`geo--`+e.id,geoModel:e,coordSysModel:e,coordSys:n,coordSyses:[n],getPanelRect:Lz.geo})})}},Iz=[function(e,t){var n=e.xAxisModel,r=e.yAxisModel,i=e.gridModel;return!i&&n&&(i=n.axis.grid.model),!i&&r&&(i=r.axis.grid.model),i&&i===t.gridModel},function(e,t){var n=e.geoModel;return n&&n===t.geoModel}],Lz={grid:function(){return this.coordSys.master.getRect().clone()},geo:function(){var e=this.coordSys.view,t=wP(null,e);return Mn(t,t,CP(null,e)),t}},Rz={lineX:Oe(zz,0),lineY:Oe(zz,1),rect:function(e,t,n,r){var i=e?t.pointToData([n[0][0],n[1][0]],r):t.dataToPoint([n[0][0],n[1][0]],r),a=e?t.pointToData([n[0][1],n[1][1]],r):t.dataToPoint([n[0][1],n[1][1]],r),o=[Nz([i[0],a[0]]),Nz([i[1],a[1]])];return{values:o,xyMinMax:o}},polygon:function(e,t,n,r){var i=[El(),El()];return{values:B(n,function(n){var a=e?t.pointToData(n,r):t.dataToPoint(n,r);return i[0][0]=Math.min(i[0][0],a[0]),i[1][0]=Math.min(i[1][0],a[1]),i[0][1]=Math.max(i[0][1],a[0]),i[1][1]=Math.max(i[1][1],a[1]),a}),xyMinMax:i}}};function zz(e,t,n,r){var i=n.getAxis([`x`,`y`][e]),a=Nz(B([0,1],function(e){return t?i.coordToData(i.toLocalCoord(r[e]),!0):i.toGlobalCoord(i.dataToCoord(r[e]))})),o=[];return o[e]=a,o[1-e]=[NaN,NaN],{values:a,xyMinMax:o}}var Bz={lineX:Oe(Vz,0),lineY:Oe(Vz,1),rect:function(e,t,n){return[[e[0][0]-n[0]*t[0][0],e[0][1]-n[0]*t[0][1]],[e[1][0]-n[1]*t[1][0],e[1][1]-n[1]*t[1][1]]]},polygon:function(e,t,n){return B(e,function(e,r){return[e[0]-n[0]*t[r][0],e[1]-n[1]*t[r][1]]})}};function Vz(e,t,n,r){return[t[0]-r[e]*n[0],t[1]-r[e]*n[1]]}function Hz(e,t){var n=Uz(e),r=Uz(t),i=[n[0]/r[0],n[1]/r[1]];return isNaN(i[0])&&(i[0]=1),isNaN(i[1])&&(i[1]=1),i}function Uz(e){return e?[e[0][1]-e[0][0],e[1][1]-e[1][0]]:[NaN,NaN]}var Wz=z,Gz=ll(`toolbox-dataZoom_`),Kz={x:`width`,y:`height`},qz=function(e){D(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.render=function(e,t,n,r){this._brushController||(this._brushController=new KI(n.getZr()),this._brushController.on(`brush`,H(this._onBrush,this)).mount()),Zz(e,t,this,r,n),Xz(e,t)},t.prototype.onclick=function(e,t,n){Jz[n].call(this)},t.prototype.dispose=function(e,t){this._brushController&&this._brushController.dispose()},t.prototype._onBrush=function(e){var t=e.areas;if(!e.isEnd||!t.length)return;var n={},r=this.ecModel;this._brushController.updateCovers([]),new Mz(Yz(this.model),r,{include:[`grid`]}).matchOutputRanges(t,r,function(e,t,n){if(n.type===`cartesian2d`){var r=n.master.getRect().clone(),a=e.brushType;a===`rect`?(i(`x`,n,r,t[0]),i(`y`,n,r,t[1])):i({lineX:`x`,lineY:`y`}[a],n,r,t)}}),Tz(r,n),this._dispatchZoomAction(n);function i(e,t,i,o){var s=t.getAxis(e),c=s.model,l=a(e,c,r),u=l.findRepresentativeAxisProxy(c).getMinMaxSpan(),d=s.scale.getExtent();(u.minValueSpan!=null||u.maxValueSpan!=null)&&(o=jI(0,o.slice(),d,0,u.minValueSpan,u.maxValueSpan));var f=_c(d,i[Kz[e]],.5);l&&(n[l.id]={dataZoomId:l.id,startValue:isFinite(f)?dc(o[0],f):o[0],endValue:isFinite(f)?dc(o[1],f):o[1]})}function a(e,t,n){var r;return n.eachComponent({mainType:`dataZoom`,subType:`select`},function(n){n.getAxisModel(e,t.componentIndex)&&(r=n)}),r}},t.prototype._dispatchZoomAction=function(e){var t=[];Wz(e,function(e,n){t.push(P(e))}),t.length&&this.api.dispatchAction({type:`dataZoom`,from:this.uid,batch:t})},t.getDefaultOption=function(e){return{show:!0,filterMode:`filter`,icon:{zoom:`M0,13.5h26.9 M13.5,26.9V0 M32.1,13.5H58V58H13.5 V32.1`,back:`M22,1.4L9.9,13.5l12.3,12.3 M10.3,13.5H54.9v44.6 H10.3v-26`},title:e.getLocaleModel().get([`toolbox`,`dataZoom`,`title`]),brushStyle:{borderWidth:0,color:Z.color.backgroundTint}}},t}(YR),Jz={zoom:function(){var e=!this._isZoomActive;this.api.dispatchAction({type:`takeGlobalCursor`,key:`dataZoomSelect`,dataZoomSelectActive:e})},back:function(){this._dispatchZoomAction(Ez(this.ecModel))}};function Yz(e){var t={xAxisIndex:e.get(`xAxisIndex`,!0),yAxisIndex:e.get(`yAxisIndex`,!0),xAxisId:e.get(`xAxisId`,!0),yAxisId:e.get(`yAxisId`,!0)};return t.xAxisIndex==null&&t.xAxisId==null&&(t.xAxisIndex=`all`),t.yAxisIndex==null&&t.yAxisId==null&&(t.yAxisIndex=`all`),t}function Xz(e,t){e.setIconStatus(`back`,Oz(t)>1?`emphasis`:`normal`)}function Zz(e,t,n,r,i){var a=n._isZoomActive;r&&r.type===`takeGlobalCursor`&&(a=r.key===`dataZoomSelect`&&r.dataZoomSelectActive),n._isZoomActive=a,e.setIconStatus(`zoom`,a?`emphasis`:`normal`);var o=new Mz(Yz(e),t,{include:[`grid`]}).makePanelOpts(i,function(e){return e.xAxisDeclared&&!e.yAxisDeclared?`lineX`:!e.xAxisDeclared&&e.yAxisDeclared?`lineY`:`rect`});n._brushController.setPanels(o).enableBrush(a&&o.length?{brushType:`auto`,brushStyle:e.getModel(`brushStyle`).getItemStyle()}:!1)}hD(`dataZoom`,function(e){var t=e.getComponent(`toolbox`,0),n=[`feature`,`dataZoom`];if(!t||t.get(n)==null)return;var r=t.getModel(n),i=[],a=gl(e,Yz(r));Wz(a.xAxisModels,function(e){return o(e,`xAxis`,`xAxisIndex`)}),Wz(a.yAxisModels,function(e){return o(e,`yAxis`,`yAxisIndex`)});function o(e,t,n){var a=e.componentIndex,o={type:`select`,$fromToolbox:!0,filterMode:r.get(`filterMode`,!0)||`filter`,id:Gz+t+a};o[n]=a,i.push(o)}return i});function Qz(e){e.registerComponentModel($R),e.registerComponentView(tz),ZR(`saveAsImage`,iz),ZR(`magicType`,sz),ZR(`dataView`,xz),ZR(`dataZoom`,qz),ZR(`restore`,Az),Vj(JR)}var $z=function(e){D(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.type=`tooltip`,t.dependencies=[`axisPointer`],t.defaultOption={z:60,show:!0,showContent:!0,trigger:`item`,triggerOn:`mousemove|click|mousewheel`,alwaysShowContent:!1,renderMode:`auto`,confine:null,showDelay:0,hideDelay:100,transitionDuration:.4,displayTransition:!0,enterable:!1,backgroundColor:Z.color.neutral00,shadowBlur:10,shadowColor:`rgba(0, 0, 0, .2)`,shadowOffsetX:1,shadowOffsetY:2,borderRadius:4,borderWidth:1,defaultBorderColor:Z.color.border,padding:null,extraCssText:``,axisPointer:{type:`line`,axis:`auto`,animation:`auto`,animationDurationUpdate:200,animationEasingUpdate:`exponentialOut`,crossStyle:{color:Z.color.borderShade,width:1,type:`dashed`,textStyle:{}}},textStyle:{color:Z.color.tertiary,fontSize:14}},t}(cv);function eB(e){var t=e.get(`confine`);return t==null?e.get(`renderMode`)===`richText`:!!t}function tB(e){if(Y.domSupported){for(var t=document.documentElement.style,n=0,r=e.length;n<r;n++)if(e[n]in t)return e[n]}}var nB=tB([`transform`,`webkitTransform`,`OTransform`,`MozTransform`,`msTransform`]),rB=tB([`webkitTransition`,`transition`,`OTransition`,`MozTransition`,`msTransition`]);function iB(e,t){if(!e)return t;t=I_(t,!0);var n=e.indexOf(t);return e=n===-1?t:`-`+e.slice(0,n)+`-`+t,e.toLowerCase()}function aB(e,t){var n=e.currentStyle||document.defaultView&&document.defaultView.getComputedStyle(e);return n?t?n[t]:n:null}var oB=iB(rB,`transition`),sB=iB(nB,`transform`),cB=`position:absolute;display:block;border-style:solid;white-space:nowrap;z-index:9999999;`+(Y.transform3dSupported?`will-change:transform;`:``);function lB(e){return e=e===`left`?`right`:e===`right`?`left`:e===`top`?`bottom`:`top`,e}function uB(e,t,n){if(!G(n)||n===`inside`)return``;var r=e.get(`backgroundColor`),i=e.get(`borderWidth`);t=G_(t);var a=lB(n),o=Math.max(Math.round(i)*1.5,6),s=``,c=sB+`:`,l;R([`left`,`right`],a)>-1?(s+=`top:50%`,c+=`translateY(-50%) rotate(`+(l=a===`left`?-225:-45)+`deg)`):(s+=`left:50%`,c+=`translateX(-50%) rotate(`+(l=a===`top`?225:45)+`deg)`);var u=l*Math.PI/180,d=o+i,f=d*Math.abs(Math.cos(u))+d*Math.abs(Math.sin(u)),p=Math.round(((f-Math.SQRT2*i)/2+Math.SQRT2*i-(f-d)/2)*100)/100;s+=`;`+a+`:-`+p+`px`;var m=t+` solid `+i+`px;`;return`<div style="`+[`position:absolute;width:`+o+`px;height:`+o+`px;z-index:-1;`,s+`;`+c+`;`,`border-bottom:`+m,`border-right:`+m,`background-color:`+r+`;`].join(``)+`"></div>`}function dB(e,t,n){var r=`cubic-bezier(0.23,1,0.32,1)`,i=``,a=``;return n&&(i=` `+e/2+`s `+r,a=`opacity`+i+`,visibility`+i),t||(i=` `+e+`s `+r,a+=(a.length?`,`:``)+(Y.transformSupported?``+sB+i:`,left`+i+`,top`+i)),oB+`:`+a}function fB(e,t,n){var r=e.toFixed(0)+`px`,i=t.toFixed(0)+`px`;if(!Y.transformSupported)return n?`top:`+i+`;left:`+r+`;`:[[`top`,i],[`left`,r]];var a=Y.transform3dSupported,o=`translate`+(a?`3d`:``)+`(`+r+`,`+i+(a?`,0`:``)+`)`;return n?`top:0;left:0;`+sB+`:`+o+`;`:[[`top`,0],[`left`,0],[nB,o]]}function pB(e){var t=[],n=e.get(`fontSize`),r=e.getTextColor();r&&t.push(`color:`+r),t.push(`font:`+e.getFont());var i=q(e.get(`lineHeight`),Math.round(n*3/2));n&&t.push(`line-height:`+i+`px`);var a=e.get(`textShadowColor`),o=e.get(`textShadowBlur`)||0,s=e.get(`textShadowOffsetX`)||0,c=e.get(`textShadowOffsetY`)||0;return a&&o&&t.push(`text-shadow:`+s+`px `+c+`px `+o+`px `+a),z([`decoration`,`align`],function(n){var r=e.get(n);r&&t.push(`text-`+n+`:`+r)}),t.join(`;`)}function mB(e,t,n,r){var i=[],a=e.get(`transitionDuration`),o=e.get(`backgroundColor`),s=e.get(`shadowBlur`),c=e.get(`shadowColor`),l=e.get(`shadowOffsetX`),u=e.get(`shadowOffsetY`),d=e.getModel(`textStyle`),f=ay(e,`html`),p=l+`px `+u+`px `+s+`px `+c;return i.push(`box-shadow:`+p),t&&a>0&&i.push(dB(a,n,r)),o&&i.push(`background-color:`+o),z([`width`,`color`,`radius`],function(t){var n=`border-`+t,r=I_(n),a=e.get(r);a!=null&&i.push(n+`:`+a+(t===`color`?``:`px`))}),i.push(pB(d)),f!=null&&i.push(`padding:`+L_(f).join(`px `)+`px`),i.join(`;`)+`;`}function hB(e,t,n,r,i){var a=t&&t.painter;if(n){var o=a&&a.getViewportRoot();o&&Eg(e,o,n,r,i)}else{e[0]=r,e[1]=i;var s=a&&a.getViewportRootOffset();s&&(e[0]+=s.offsetLeft,e[1]+=s.offsetTop)}e[2]=e[0]/t.getWidth(),e[3]=e[1]/t.getHeight()}var gB=function(){function e(e,t){if(this._show=!1,this._styleCoord=[0,0,0,0],this._enterable=!0,this._alwaysShowContent=!1,this._firstShow=!0,this._longHide=!0,Y.wxa)return null;var n=document.createElement(`div`);n.domBelongToZr=!0,this.el=n;var r=this._zr=e.getZr(),i=t.appendTo,a=i&&(G(i)?document.querySelector(i):Ne(i)?i:W(i)&&i(e.getDom()));hB(this._styleCoord,r,a,e.getWidth()/2,e.getHeight()/2),(a||e.getDom()).appendChild(n),this._api=e,this._container=a;var o=this;n.onmouseenter=function(){o._enterable&&(clearTimeout(o._hideTimeout),o._show=!0),o._inContent=!0},n.onmousemove=function(e){if(e||=window.event,!o._enterable){var t=r.handler;GT(r.painter.getViewportRoot(),e,!0),t.dispatch(`mousemove`,e)}},n.onmouseleave=function(){o._inContent=!1,o._enterable&&o._show&&o.hideLater(o._hideDelay)}}return e.prototype.update=function(e){if(!this._container){var t=this._api.getDom(),n=aB(t,`position`),r=t.style;r.position!==`absolute`&&n!==`absolute`&&(r.position=`relative`)}var i=e.get(`alwaysShowContent`);i&&this._moveIfResized(),this._alwaysShowContent=i,this._enableDisplayTransition=e.get(`displayTransition`)&&e.get(`transitionDuration`)>0,this.el.className=e.get(`className`)||``},e.prototype.show=function(e,t){clearTimeout(this._hideTimeout),clearTimeout(this._longHideTimeout);var n=this.el,r=n.style,i=this._styleCoord;n.innerHTML?r.cssText=cB+mB(e,!this._firstShow,this._longHide,this._enableDisplayTransition)+fB(i[0],i[1],!0)+(`border-color:`+G_(t)+`;`)+(e.get(`extraCssText`)||``)+(`;pointer-events:`+(this._enterable?`auto`:`none`)):r.display=`none`,this._show=!0,this._firstShow=!1,this._longHide=!1},e.prototype.setContent=function(e,t,n,r,i){var a=this.el;if(e==null){a.innerHTML=``;return}var o=``;if(G(i)&&n.get(`trigger`)===`item`&&!eB(n)&&(o=uB(n,r,i)),G(e))a.innerHTML=e+o;else if(e){a.innerHTML=``,U(e)||(e=[e]);for(var s=0;s<e.length;s++)Ne(e[s])&&e[s].parentNode!==a&&a.appendChild(e[s]);if(o&&a.childNodes.length){var c=document.createElement(`div`);c.innerHTML=o,a.appendChild(c)}}},e.prototype.setEnterable=function(e){this._enterable=e},e.prototype.getSize=function(){var e=this.el;return e?[e.offsetWidth,e.offsetHeight]:[0,0]},e.prototype.moveTo=function(e,t){if(this.el){var n=this._styleCoord;if(hB(n,this._zr,this._container,e,t),n[0]!=null&&n[1]!=null){var r=this.el.style;z(fB(n[0],n[1]),function(e){r[e[0]]=e[1]})}}},e.prototype._moveIfResized=function(){var e=this._styleCoord[2],t=this._styleCoord[3];this.moveTo(e*this._zr.getWidth(),t*this._zr.getHeight())},e.prototype.hide=function(){var e=this,t=this.el.style;this._enableDisplayTransition?(t.visibility=`hidden`,t.opacity=`0`):t.display=`none`,Y.transform3dSupported&&(t.willChange=``),this._show=!1,this._longHideTimeout=setTimeout(function(){return e._longHide=!0},500)},e.prototype.hideLater=function(e){this._show&&!(this._inContent&&this._enterable)&&!this._alwaysShowContent&&(e?(this._hideDelay=e,this._show=!1,this._hideTimeout=setTimeout(H(this.hide,this),e)):this.hide())},e.prototype.isShow=function(){return this._show},e.prototype.dispose=function(){clearTimeout(this._hideTimeout),clearTimeout(this._longHideTimeout);var e=this._zr;Dg(e&&e.painter&&e.painter.getViewportRoot(),this._container);var t=this.el;if(t){t.onmouseenter=t.onmousemove=t.onmouseleave=null;var n=t.parentNode;n&&n.removeChild(t)}this.el=this._container=null},e}(),_B=function(){function e(e){this._show=!1,this._styleCoord=[0,0,0,0],this._alwaysShowContent=!1,this._enterable=!0,this._zr=e.getZr(),bB(this._styleCoord,this._zr,e.getWidth()/2,e.getHeight()/2)}return e.prototype.update=function(e){var t=e.get(`alwaysShowContent`);t&&this._moveIfResized(),this._alwaysShowContent=t},e.prototype.show=function(){this._hideTimeout&&clearTimeout(this._hideTimeout),this.el.show(),this._show=!0},e.prototype.setContent=function(e,t,n,r,i){var a=this;K(e)&&Hc(``),this.el&&this._zr.remove(this.el);var o=n.getModel(`textStyle`);this.el=new js({style:{rich:t.richTextStyles,text:e,lineHeight:22,borderWidth:1,borderColor:r,textShadowColor:o.get(`textShadowColor`),fill:n.get([`textStyle`,`color`]),padding:ay(n,`richText`),verticalAlign:`top`,align:`left`},z:n.get(`z`)}),z([`backgroundColor`,`borderRadius`,`shadowColor`,`shadowBlur`,`shadowOffsetX`,`shadowOffsetY`],function(e){a.el.style[e]=n.get(e)}),z([`textShadowBlur`,`textShadowOffsetX`,`textShadowOffsetY`],function(e){a.el.style[e]=o.get(e)||0}),this._zr.add(this.el);var s=this;this.el.on(`mouseover`,function(){s._enterable&&(clearTimeout(s._hideTimeout),s._show=!0),s._inContent=!0}),this.el.on(`mouseout`,function(){s._enterable&&s._show&&s.hideLater(s._hideDelay),s._inContent=!1})},e.prototype.setEnterable=function(e){this._enterable=e},e.prototype.getSize=function(){var e=this.el,t=this.el.getBoundingRect(),n=yB(e.style);return[t.width+n.left+n.right,t.height+n.top+n.bottom]},e.prototype.moveTo=function(e,t){var n=this.el;if(n){var r=this._styleCoord;bB(r,this._zr,e,t),e=r[0],t=r[1];var i=n.style,a=vB(i.borderWidth||0),o=yB(i);n.x=e+a+o.left,n.y=t+a+o.top,n.markRedraw()}},e.prototype._moveIfResized=function(){var e=this._styleCoord[2],t=this._styleCoord[3];this.moveTo(e*this._zr.getWidth(),t*this._zr.getHeight())},e.prototype.hide=function(){this.el&&this.el.hide(),this._show=!1},e.prototype.hideLater=function(e){this._show&&!(this._inContent&&this._enterable)&&!this._alwaysShowContent&&(e?(this._hideDelay=e,this._show=!1,this._hideTimeout=setTimeout(H(this.hide,this),e)):this.hide())},e.prototype.isShow=function(){return this._show},e.prototype.dispose=function(){this._zr.remove(this.el)},e}();function vB(e){return Math.max(0,e)}function yB(e){var t=vB(e.shadowBlur||0),n=vB(e.shadowOffsetX||0),r=vB(e.shadowOffsetY||0);return{left:vB(t-n),right:vB(t+n),top:vB(t-r),bottom:vB(t+r)}}function bB(e,t,n,r){e[0]=n,e[1]=r,e[2]=e[0]/t.getWidth(),e[3]=e[1]/t.getHeight()}var xB=new Es({shape:{x:-1,y:-1,width:2,height:2}}),SB=function(e){D(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.prototype.init=function(e,t){if(!Y.node&&t.getDom()){var n=e.getComponent(`tooltip`),r=this._renderMode=wl(n.get(`renderMode`));this._tooltipContent=r===`richText`?new _B(t):new gB(t,{appendTo:n.get(`appendToBody`,!0)?`body`:n.get(`appendTo`,!0)})}},t.prototype.render=function(e,t,n){if(!Y.node&&n.getDom()){this.group.removeAll(),this._tooltipModel=e,this._ecModel=t,this._api=n;var r=this._tooltipContent;r.update(e),r.setEnterable(e.get(`enterable`)),this._initGlobalListener(),this._keepShow(),this._renderMode!==`richText`&&e.get(`transitionDuration`)?Qw(this,`_updatePosition`,50,`fixRate`):$w(this,`_updatePosition`)}},t.prototype._initGlobalListener=function(){var e=this._tooltipModel.get(`triggerOn`);aR(`itemTooltip`,this._api,H(function(t,n,r){e!==`none`&&(e.indexOf(t)>=0?this._tryShow(n,r):t===`leave`&&this._hide(r))},this))},t.prototype._keepShow=function(){var e=this._tooltipModel,t=this._ecModel,n=this._api,r=e.get(`triggerOn`);if(e.get(`trigger`)!==`axis`&&(this._lastDataByCoordSys=null,this._cbParamsList=null),this._lastX!=null&&this._lastY!=null&&r!==`none`&&r!==`click`){var i=this;clearTimeout(this._refreshUpdateTimeout),this._refreshUpdateTimeout=setTimeout(function(){!n.isDisposed()&&i.manuallyShowTip(e,t,n,{x:i._lastX,y:i._lastY,dataByCoordSys:i._lastDataByCoordSys})})}},t.prototype.manuallyShowTip=function(e,t,n,r){if(r.from!==this.uid&&!Y.node&&n.getDom()){var i=wB(r,n);this._ticket=``;var a=r.dataByCoordSys,o=kB(r,t,n);if(o){var s=o.el.getBoundingRect().clone();s.applyTransform(o.el.transform),this._tryShow({offsetX:s.x+s.width/2,offsetY:s.y+s.height/2,target:o.el,position:r.position,positionDefault:`bottom`},i)}else if(r.tooltip&&r.x!=null&&r.y!=null){var c=xB;c.x=r.x,c.y=r.y,c.update(),Wl(c).tooltipConfig={name:null,option:r.tooltip},this._tryShow({offsetX:r.x,offsetY:r.y,target:c},i)}else if(a)this._tryShow({offsetX:r.x,offsetY:r.y,position:r.position,dataByCoordSys:a,tooltipOption:r.tooltipOption},i);else if(r.seriesIndex!=null){if(this._manuallyAxisShowTip(e,t,n,r))return;var l=pR(r,t),u=l.point[0],d=l.point[1];u!=null&&d!=null&&this._tryShow({offsetX:u,offsetY:d,target:l.el,position:r.position,positionDefault:`bottom`},i)}else r.x!=null&&r.y!=null&&(n.dispatchAction({type:`updateAxisPointer`,x:r.x,y:r.y}),this._tryShow({offsetX:r.x,offsetY:r.y,position:r.position,target:n.getZr().findHover(r.x,r.y).target},i))}},t.prototype.manuallyHideTip=function(e,t,n,r){var i=this._tooltipContent;this._tooltipModel&&i.hideLater(this._tooltipModel.get(`hideDelay`)),this._lastX=this._lastY=this._lastDataByCoordSys=null,this._cbParamsList=null,r.from!==this.uid&&this._hide(wB(r,n))},t.prototype._manuallyAxisShowTip=function(e,t,n,r){var i=r.seriesIndex,a=r.dataIndex,o=t.getComponent(`axisPointer`).coordSysAxesInfo;if(i!=null&&a!=null&&o!=null){var s=t.getSeriesByIndex(i);if(s&&CB([s.getData().getItemModel(a),s,(s.coordinateSystem||{}).model],this._tooltipModel).get(`trigger`)===`axis`)return n.dispatchAction({type:`updateAxisPointer`,seriesIndex:i,dataIndex:a,position:r.position}),!0}},t.prototype._tryShow=function(e,t){var n=e.target;if(this._tooltipModel){this._lastX=e.offsetX,this._lastY=e.offsetY;var r=e.dataByCoordSys;if(r&&r.length)this._showAxisTooltip(r,e);else if(n){if(Wl(n).ssrType===`legend`)return;this._lastDataByCoordSys=null,this._cbParamsList=null;var i,a;KO(n,function(e){if(e.tooltipDisabled)return i=a=null,!0;i||a||(Wl(e).dataIndex==null?Wl(e).tooltipConfig!=null&&(a=e):i=e)},!0),i?this._showSeriesItemTooltip(e,i,t):a?this._showComponentItemTooltip(e,a,t):this._hide(t)}else this._lastDataByCoordSys=null,this._cbParamsList=null,this._hide(t)}},t.prototype._showOrMove=function(e,t){var n=e.get(`showDelay`);t=H(t,this),clearTimeout(this._showTimout),n>0?this._showTimout=setTimeout(t,n):t()},t.prototype._showAxisTooltip=function(e,t){var n=this._ecModel,r=this._tooltipModel,i=[t.offsetX,t.offsetY],a=CB([t.tooltipOption],r),o=this._renderMode,s=[],c=Gv(`section`,{blocks:[],noHeader:!0}),l=[],u=new oy;z(e,function(e){z(e.dataByAxis,function(e){var t=n.getComponent(e.axisDim+`Axis`,e.axisIndex),i=e.value,a=t.axis,d=a.scale.parse(i);if(t&&i!=null){var f=GL(i,a,n,e.seriesDataIndices,e.valueLabelOpt),p=Gv(`section`,{header:f,noHeader:!Ue(f),sortBlocks:!0,blocks:[]});c.blocks.push(p),z(e.seriesDataIndices,function(i){var a=n.getSeriesByIndex(i.seriesIndex),c=i.dataIndexInside,m=a.getDataParams(c);if(!(m.dataIndex<0)){m.axisDim=e.axisDim,m.axisIndex=e.axisIndex,m.axisType=e.axisType,m.axisId=e.axisId,m.axisValue=bx(t.axis,{value:d}),m.axisValueLabel=f,m.marker=u.makeTooltipMarker(`item`,G_(m.color),o);var h=yv(a.formatTooltip(c,!0,null)),g=h.frag;if(g){var _=CB([a],r).get(`valueFormatter`);p.blocks.push(_?I({valueFormatter:_},g):g)}h.text&&l.push(h.text),s.push(m)}})}})}),c.blocks.reverse(),l.reverse();var d=t.position,f=Zv(c,u,o,a.get(`order`),n.get(`useUTC`),a.get(`textStyle`));f&&l.unshift(f);var p=o===`richText`?`
|
|
35
|
+
|
|
36
|
+
`:`<br/>`,m=l.join(p);this._showOrMove(a,function(){this._updateContentNotChangedOnAxis(e,s)?this._updatePosition(a,d,i[0],i[1],this._tooltipContent,s):this._showTooltipContent(a,m,s,Math.random()+``,i[0],i[1],d,null,u)})},t.prototype._showSeriesItemTooltip=function(e,t,n){var r=this._ecModel,i=Wl(t),a=i.seriesIndex,o=r.getSeriesByIndex(a),s=i.dataModel||o,c=i.dataIndex,l=i.dataType,u=s.getData(l),d=this._renderMode,f=e.positionDefault,p=CB([u.getItemModel(c),s,o&&(o.coordinateSystem||{}).model],this._tooltipModel,f?{position:f}:null),m=p.get(`trigger`);if(m==null||m===`item`){var h=s.getDataParams(c,l),g=new oy;h.marker=g.makeTooltipMarker(`item`,G_(h.color),d);var _=yv(s.formatTooltip(c,!1,l)),v=p.get(`order`),y=p.get(`valueFormatter`),b=_.frag,x=b?Zv(y?I({valueFormatter:y},b):b,g,d,v,r.get(`useUTC`),p.get(`textStyle`)):_.text,S=`item_`+s.name+`_`+c;this._showOrMove(p,function(){this._showTooltipContent(p,x,h,S,e.offsetX,e.offsetY,e.position,e.target,g)}),n({type:`showTip`,dataIndexInside:c,dataIndex:u.getRawIndex(c),seriesIndex:a,from:this.uid})}},t.prototype._showComponentItemTooltip=function(e,t,n){var r=this._renderMode===`html`,i=Wl(t),a=i.tooltipConfig.option||{},o=a.encodeHTMLContent;if(G(a)){var s=a;a={content:s,formatter:s},o=!0}o&&r&&a.content&&(a=P(a),a.content=Pg(a.content));var c=[a],l=this._ecModel.getComponent(i.componentMainType,i.componentIndex);l&&c.push(l),c.push({formatter:a.content});var u=e.positionDefault,d=CB(c,this._tooltipModel,u?{position:u}:null),f=d.get(`content`),p=Math.random()+``,m=new oy;this._showOrMove(d,function(){var n=P(d.get(`formatterParams`)||{});this._showTooltipContent(d,f,n,p,e.offsetX,e.offsetY,e.position,t,m)}),n({type:`showTip`,from:this.uid})},t.prototype._showTooltipContent=function(e,t,n,r,i,a,o,s,c){if(this._ticket=``,e.get(`showContent`)&&e.get(`show`)){var l=this._tooltipContent;l.setEnterable(e.get(`enterable`));var u=e.get(`formatter`);o||=e.get(`position`);var d=t,f=this._getNearestPoint([i,a],n,e.get(`trigger`),e.get(`borderColor`),e.get(`defaultBorderColor`,!0)).color;if(u){if(G(u)){var p=e.ecModel.get(`useUTC`),m=U(n)?n[0]:n,h=m&&m.axisType&&m.axisType.indexOf(`time`)>=0;d=u,h&&(d=g_(m.axisValue,d,p)),d=V_(d,n,!0)}else if(W(u)){var g=H(function(t,r){t===this._ticket&&(l.setContent(r,c,e,f,o),this._updatePosition(e,o,i,a,l,n,s))},this);this._ticket=r,d=u(n,r,g)}else d=u}l.setContent(d,c,e,f,o),l.show(e,f),this._updatePosition(e,o,i,a,l,n,s)}},t.prototype._getNearestPoint=function(e,t,n,r,i){if(n===`axis`||U(t))return{color:r||i};if(!U(t))return{color:r||t.color||t.borderColor}},t.prototype._updatePosition=function(e,t,n,r,i,a,o){var s=this._api.getWidth(),c=this._api.getHeight();t||=e.get(`position`);var l=i.getSize(),u=e.get(`align`),d=e.get(`verticalAlign`),f=o&&o.getBoundingRect().clone();if(o&&f.applyTransform(o.transform),W(t)&&(t=t([n,r],a,i.el,f,{viewSize:[s,c],contentSize:l.slice()})),U(t))n=oc(t[0],s),r=oc(t[1],c);else if(K(t)){var p=t;p.width=l[0],p.height=l[1];var m=Q_(p,{width:s,height:c});n=m.x,r=m.y,u=null,d=null}else if(G(t)&&o){var h=DB(t,f,l,e.get(`borderWidth`));n=h[0],r=h[1]}else{var h=TB(n,r,i,s,c,u?null:20,d?null:20);n=h[0],r=h[1]}if(u&&(n-=OB(u)?l[0]/2:u===`right`?l[0]:0),d&&(r-=OB(d)?l[1]/2:d===`bottom`?l[1]:0),eB(e)){var h=EB(n,r,i,s,c);n=h[0],r=h[1]}i.moveTo(n,r)},t.prototype._updateContentNotChangedOnAxis=function(e,t){var n=this._lastDataByCoordSys,r=this._cbParamsList,i=!!n&&n.length===e.length;return i&&z(n,function(n,a){var o=n.dataByAxis||[],s=(e[a]||{}).dataByAxis||[];i&&=o.length===s.length,i&&z(o,function(e,n){var a=s[n]||{},o=e.seriesDataIndices||[],c=a.seriesDataIndices||[];i=i&&e.value===a.value&&e.axisType===a.axisType&&e.axisId===a.axisId&&o.length===c.length,i&&z(o,function(e,t){var n=c[t];i=i&&e.seriesIndex===n.seriesIndex&&e.dataIndex===n.dataIndex}),r&&z(e.seriesDataIndices,function(e){var n=e.seriesIndex,a=t[n],o=r[n];a&&o&&o.data!==a.data&&(i=!1)})})}),this._lastDataByCoordSys=e,this._cbParamsList=t,!!i},t.prototype._hide=function(e){this._lastDataByCoordSys=null,this._cbParamsList=null,e({type:`hideTip`,from:this.uid})},t.prototype.dispose=function(e,t){!Y.node&&t.getDom()&&($w(this,`_updatePosition`),this._tooltipContent.dispose(),dR(`itemTooltip`,t),this._tooltipContent=null,this._tooltipModel=null,this._lastDataByCoordSys=null,this._cbParamsList=null)},t.type=`tooltip`,t}(sO);function CB(e,t,n){var r=t.ecModel,i;n?(i=new pm(n,r,r),i=new pm(t.option,i,r)):i=t;for(var a=e.length-1;a>=0;a--){var o=e[a];o&&(o instanceof pm&&(o=o.get(`tooltip`,!0)),G(o)&&(o={formatter:o}),o&&(i=new pm(o,i,r)))}return i}function wB(e,t){return e.dispatchAction||H(t.dispatchAction,t)}function TB(e,t,n,r,i,a,o){var s=n.getSize(),c=s[0],l=s[1];return a!=null&&(e+c+a+2>r?e-=c+a:e+=a),o!=null&&(t+l+o>i?t-=l+o:t+=o),[e,t]}function EB(e,t,n,r,i){var a=n.getSize(),o=a[0],s=a[1];return e=Math.min(e+o,r)-o,t=Math.min(t+s,i)-s,e=Math.max(e,0),t=Math.max(t,0),[e,t]}function DB(e,t,n,r){var i=n[0],a=n[1],o=Math.ceil(Math.SQRT2*r)+8,s=0,c=0,l=t.width,u=t.height;switch(e){case`inside`:s=t.x+l/2-i/2,c=t.y+u/2-a/2;break;case`top`:s=t.x+l/2-i/2,c=t.y-a-o;break;case`bottom`:s=t.x+l/2-i/2,c=t.y+u+o;break;case`left`:s=t.x-i-o,c=t.y+u/2-a/2;break;case`right`:s=t.x+l+o,c=t.y+u/2-a/2}return[s,c]}function OB(e){return e===`center`||e===`middle`}function kB(e,t,n){var r=_l(e).queryOptionMap,i=r.keys()[0];if(i&&i!==`series`){var a=bl(t,i,r.get(i),{useDefault:!1,enableAll:!1,enableNone:!1}).models[0];if(a){var o=n.getViewOfComponentModel(a),s;if(o.group.traverse(function(t){var n=Wl(t).tooltipConfig;if(n&&n.name===e.name)return s=t,!0}),s)return{componentMainType:i,componentIndex:a.componentIndex,el:s}}}}function AB(e){Vj(ER),e.registerComponentModel($z),e.registerComponentView(SB),e.registerAction({type:`showTip`,event:`showTip`,update:`tooltip:manuallyShowTip`},tt),e.registerAction({type:`hideTip`,event:`hideTip`,update:`tooltip:manuallyHideTip`},tt)}var jB=[`rect`,`polygon`,`keep`,`clear`];function MB(e,t){var n=Kc(e?e.brush:[]);if(n.length){var r=[];z(n,function(e){var t=e.hasOwnProperty(`toolbox`)?e.toolbox:[];t instanceof Array&&(r=r.concat(t))});var i=e&&e.toolbox;U(i)&&(i=i[0]),i||(i={feature:{}},e.toolbox=[i]);var a=i.feature||(i.feature={}),o=a.brush||={},s=o.type||=[];s.push.apply(s,r),Ll(s,function(e){return e+``},null),t&&!s.length&&s.push.apply(s,jB)}}var NB=z;function PB(e){if(e){for(var t in e)if(e.hasOwnProperty(t))return!0}}function FB(e,t,n){var r={};return NB(t,function(t){var a=r[t]=i();NB(e[t],function(e,r){if(eI.isValidType(r)){var i={type:r,visual:e};n&&n(i,t),a[r]=new eI(i),r===`opacity`&&(i=P(i),i.type=`colorAlpha`,a.__hidden.__alphaForOpacity=new eI(i))}})}),r;function i(){var e=function(){};return e.prototype.__hidden=e.prototype,new e}}function IB(e,t,n){var r;z(n,function(e){t.hasOwnProperty(e)&&PB(t[e])&&(r=!0)}),r&&z(n,function(n){t.hasOwnProperty(n)&&PB(t[n])?e[n]=P(t[n]):delete e[n]})}function LB(e,t,n,r,i,a){var o={};z(e,function(e){o[e]=eI.prepareVisualTypes(t[e])});var s;function c(e){return UO(n,s,e)}function l(e,t){GO(n,s,e,t)}a==null?n.each(u):n.each([a],u);function u(e,u){s=a==null?e:u;var d=n.getRawDataItem(s);if(!(d&&d.visualMap===!1))for(var f=r.call(i,e),p=t[f],m=o[f],h=0,g=m.length;h<g;h++){var _=m[h];p[_]&&p[_].applyVisual(e,c,l)}}}function RB(e,t,n,r){var i={};return z(e,function(e){i[e]=eI.prepareVisualTypes(t[e])}),{progress:function(e,a){var o;r!=null&&(o=a.getDimensionIndex(r));function s(e){return UO(a,l,e)}function c(e,t){GO(a,l,e,t)}for(var l,u=a.getStore();(l=e.next())!=null;){var d=a.getRawDataItem(l);if(!(d&&d.visualMap===!1))for(var f=r==null?l:u.get(o,l),p=n(f),m=t[p],h=i[p],g=0,_=h.length;g<_;g++){var v=h[g];m[v]&&m[v].applyVisual(f,s,c)}}}}}function zB(e){var t=e.brushType,n={point:function(r){return BB[t].point(r,n,e)},rect:function(r){return BB[t].rect(r,n,e)}};return n}var BB={lineX:VB(0),lineY:VB(1),rect:{point:function(e,t,n){return e&&n.boundingRect.contain(e[0],e[1])},rect:function(e,t,n){return e&&n.boundingRect.intersect(e)}},polygon:{point:function(e,t,n){return e&&n.boundingRect.contain(e[0],e[1])&&zN(n.range,e[0],e[1])},rect:function(e,t,n){var r=n.range;if(!e||r.length<=1)return!1;var i=e.x,a=e.y,o=e.width,s=e.height,c=r[0];if(zN(r,i,a)||zN(r,i+o,a)||zN(r,i,a+s)||zN(r,i+o,a+s)||X.create(e).contain(c[0],c[1])||vp(i,a,i+o,a,r)||vp(i,a,i,a+s,r)||vp(i+o,a,i+o,a+s,r)||vp(i,a+s,i+o,a+s,r))return!0}}};function VB(e){var t=[`x`,`y`],n=[`width`,`height`];return{point:function(t,n,r){if(t){var i=r.range,a=t[e];return HB(a,i)}},rect:function(r,i,a){if(r){var o=a.range,s=[r[t[e]],r[t[e]]+r[n[e]]];return s[1]<s[0]&&s.reverse(),HB(s[0],o)||HB(s[1],o)||HB(o[0],s)||HB(o[1],s)}}}}function HB(e,t){return t[0]<=e&&e<=t[1]}var UB=[`inBrush`,`outOfBrush`],WB=`__ecBrushSelect`,GB=`__ecInBrushSelectEvent`;function KB(e){e.eachComponent({mainType:`brush`},function(t){(t.brushTargetManager=new Mz(t.option,e)).setInputRanges(t.areas,e)})}var qB=Ul(JB);function JB(e,t,n){var r=[],i,a;e.eachComponent({mainType:`brush`},function(e){n&&n.type===`takeGlobalCursor`&&e.setBrushOption(n.key===`brush`?n.brushOption:{brushType:!1})}),KB(e),e.eachComponent({mainType:`brush`},function(t,n){var o={brushId:t.id,brushIndex:n,brushName:t.name,areas:P(t.areas),selected:[]};r.push(o);var s=t.option,c=s.brushLink,l=[],u=[],d=[],f=!1;n||(i=s.throttleType,a=s.throttleDelay);var p=B(t.areas,function(e){var t=$B[e.brushType],n=L({boundingRect:t?t(e):void 0},e);return n.selectors=zB(n),n}),m=FB(t.option,UB,function(e){e.mappingMethod=`fixed`});U(c)&&z(c,function(e){l[e]=1});function h(e){return c===`all`||!!l[e]}function g(e){return!!e.length}e.eachSeries(function(e,t){var n=d[t]=[];e.subType===`parallel`?_(e,t):v(e,t,n)});function _(e,t){var n=e.coordinateSystem;f||=n.hasAxisBrushed(),h(t)&&n.eachActiveState(e.getData(),function(e,t){e===`active`&&(u[t]=1)})}function v(n,r,i){if(n.brushSelector&&!QB(t,r)&&(z(p,function(r){t.brushTargetManager.controlSeries(r,n,e)&&i.push(r),f||=g(i)}),h(r)&&g(i))){var a=n.getData();a.each(function(e){ZB(n,i,a,e)&&(u[e]=1)})}}e.eachSeries(function(e,t){var n={seriesId:e.id,seriesIndex:t,seriesName:e.name,dataIndex:[]};o.selected.push(n);var r=d[t],i=e.getData(),a=h(t)?function(e){return u[e]?(n.dataIndex.push(i.getRawIndex(e)),`inBrush`):`outOfBrush`}:function(t){return ZB(e,r,i,t)?(n.dataIndex.push(i.getRawIndex(t)),`inBrush`):`outOfBrush`};(h(t)?f:g(r))&&LB(UB,m,i,a)})}),YB(t,i,a,r,n)}function YB(e,t,n,r,i){if(i){var a=e.getZr();a[GB]||(a[WB]||(a[WB]=XB),Qw(a,WB,n,t)(e,r))}}function XB(e,t){if(!e.isDisposed()){var n=e.getZr();n[GB]=!0,e.dispatchAction({type:`brushSelect`,batch:t}),n[GB]=!1}}function ZB(e,t,n,r){for(var i=0,a=t.length;i<a;i++){var o=t[i];if(e.brushSelector(r,n,o.selectors,o))return!0}}function QB(e,t){var n=e.option.seriesIndex;return n!=null&&n!==`all`&&(U(n)?R(n,t)<0:t!==n)}var $B={rect:function(e){return eV(e.range)},polygon:function(e){for(var t,n=e.range,r=0,i=n.length;r<i;r++){t||=[El(),El()];var a=n[r];a[0]<t[0][0]&&(t[0][0]=a[0]),a[0]>t[0][1]&&(t[0][1]=a[0]),a[1]<t[1][0]&&(t[1][0]=a[1]),a[1]>t[1][1]&&(t[1][1]=a[1])}return t&&eV(t)}};function eV(e){return new X(e[0][0],e[1][0],e[0][1]-e[0][0],e[1][1]-e[1][0])}var tV=function(e){D(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.prototype.init=function(e,t){this.ecModel=e,this.api=t,this.model,(this._brushController=new KI(t.getZr())).on(`brush`,H(this._onBrush,this)).mount()},t.prototype.render=function(e,t,n,r){this.model=e,this._updateController(e,t,n,r)},t.prototype.updateTransform=function(e,t,n,r){KB(t),this._updateController(e,t,n,r)},t.prototype.updateVisual=function(e,t,n,r){this.updateTransform(e,t,n,r)},t.prototype.updateView=function(e,t,n,r){this._updateController(e,t,n,r)},t.prototype._updateController=function(e,t,n,r){(!r||r.$from!==e.id)&&this._brushController.setPanels(e.brushTargetManager.makePanelOpts(n)).enableBrush(e.brushOption).updateCovers(e.areas.slice())},t.prototype.dispose=function(){this._brushController.dispose()},t.prototype._onBrush=function(e){var t=this.model.id,n=this.model.brushTargetManager.setOutputRanges(e.areas,this.ecModel);(!e.isEnd||e.removeOnClick)&&this.api.dispatchAction({type:`brush`,brushId:t,areas:P(n),$from:t}),e.isEnd&&this.api.dispatchAction({type:`brushEnd`,brushId:t,areas:P(n),$from:t})},t.type=`brush`,t}(sO),nV=function(e){D(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n.areas=[],n.brushOption={},n}return t.prototype.optionUpdated=function(e,t){var n=this.option;!t&&IB(n,e,[`inBrush`,`outOfBrush`]);var r=n.inBrush=n.inBrush||{};n.outOfBrush=n.outOfBrush||{color:this.option.defaultOutOfBrushColor},r.hasOwnProperty(`liftZ`)||(r.liftZ=5)},t.prototype.setAreas=function(e){e&&(this.areas=B(e,function(e){return rV(this.option,e)},this))},t.prototype.setBrushOption=function(e){this.brushOption=rV(this.option,e),this.brushType=this.brushOption.brushType},t.type=`brush`,t.dependencies=[`geo`,`grid`,`xAxis`,`yAxis`,`parallel`,`series`],t.defaultOption={seriesIndex:`all`,brushType:`rect`,brushMode:`single`,transformable:!0,brushStyle:{borderWidth:1,color:Z.color.backgroundTint,borderColor:Z.color.borderTint},throttleType:`fixRate`,throttleDelay:0,removeOnClick:!0,z:1e4,defaultOutOfBrushColor:Z.color.disabled},t}(cv);function rV(e,t){return F({brushType:e.brushType,brushMode:e.brushMode,transformable:e.transformable,brushStyle:new pm(e.brushStyle).getItemStyle(),removeOnClick:e.removeOnClick,z:e.z},t,!0)}var iV=[`rect`,`polygon`,`lineX`,`lineY`,`keep`,`clear`],aV=function(e){D(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.render=function(e,t,n){var r,i,a;t.eachComponent({mainType:`brush`},function(e){r=e.brushType,i=e.brushOption.brushMode||`single`,a||=!!e.areas.length}),this._brushType=r,this._brushMode=i,z(e.get(`type`,!0),function(t){e.setIconStatus(t,(t===`keep`?i===`multiple`:t===`clear`?a:t===r)?`emphasis`:`normal`)})},t.prototype.updateView=function(e,t,n){this.render(e,t,n)},t.prototype.getIcons=function(){var e=this.model,t=e.get(`icon`,!0),n={};return z(e.get(`type`,!0),function(e){t[e]&&(n[e]=t[e])}),n},t.prototype.onclick=function(e,t,n){var r=this._brushType,i=this._brushMode;n===`clear`?(t.dispatchAction({type:`axisAreaSelect`,intervals:[]}),t.dispatchAction({type:`brush`,command:`clear`,areas:[]})):t.dispatchAction({type:`takeGlobalCursor`,key:`brush`,brushOption:{brushType:n===`keep`?r:r!==n&&n,brushMode:n===`keep`?i===`multiple`?`single`:`multiple`:i}})},t.getDefaultOption=function(e){return{show:!0,type:iV.slice(),icon:{rect:`M7.3,34.7 M0.4,10V-0.2h9.8 M89.6,10V-0.2h-9.8 M0.4,60v10.2h9.8 M89.6,60v10.2h-9.8 M12.3,22.4V10.5h13.1 M33.6,10.5h7.8 M49.1,10.5h7.8 M77.5,22.4V10.5h-13 M12.3,31.1v8.2 M77.7,31.1v8.2 M12.3,47.6v11.9h13.1 M33.6,59.5h7.6 M49.1,59.5 h7.7 M77.5,47.6v11.9h-13`,polygon:`M55.2,34.9c1.7,0,3.1,1.4,3.1,3.1s-1.4,3.1-3.1,3.1 s-3.1-1.4-3.1-3.1S53.5,34.9,55.2,34.9z M50.4,51c1.7,0,3.1,1.4,3.1,3.1c0,1.7-1.4,3.1-3.1,3.1c-1.7,0-3.1-1.4-3.1-3.1 C47.3,52.4,48.7,51,50.4,51z M55.6,37.1l1.5-7.8 M60.1,13.5l1.6-8.7l-7.8,4 M59,19l-1,5.3 M24,16.1l6.4,4.9l6.4-3.3 M48.5,11.6 l-5.9,3.1 M19.1,12.8L9.7,5.1l1.1,7.7 M13.4,29.8l1,7.3l6.6,1.6 M11.6,18.4l1,6.1 M32.8,41.9 M26.6,40.4 M27.3,40.2l6.1,1.6 M49.9,52.1l-5.6-7.6l-4.9-1.2`,lineX:`M15.2,30 M19.7,15.6V1.9H29 M34.8,1.9H40.4 M55.3,15.6V1.9H45.9 M19.7,44.4V58.1H29 M34.8,58.1H40.4 M55.3,44.4 V58.1H45.9 M12.5,20.3l-9.4,9.6l9.6,9.8 M3.1,29.9h16.5 M62.5,20.3l9.4,9.6L62.3,39.7 M71.9,29.9H55.4`,lineY:`M38.8,7.7 M52.7,12h13.2v9 M65.9,26.6V32 M52.7,46.3h13.2v-9 M24.9,12H11.8v9 M11.8,26.6V32 M24.9,46.3H11.8v-9 M48.2,5.1l-9.3-9l-9.4,9.2 M38.9-3.9V12 M48.2,53.3l-9.3,9l-9.4-9.2 M38.9,62.3V46.4`,keep:`M4,10.5V1h10.3 M20.7,1h6.1 M33,1h6.1 M55.4,10.5V1H45.2 M4,17.3v6.6 M55.6,17.3v6.6 M4,30.5V40h10.3 M20.7,40 h6.1 M33,40h6.1 M55.4,30.5V40H45.2 M21,18.9h62.9v48.6H21V18.9z`,clear:`M22,14.7l30.9,31 M52.9,14.7L22,45.7 M4.7,16.8V4.2h13.1 M26,4.2h7.8 M41.6,4.2h7.8 M70.3,16.8V4.2H57.2 M4.7,25.9v8.6 M70.3,25.9v8.6 M4.7,43.2v12.6h13.1 M26,55.8h7.8 M41.6,55.8h7.8 M70.3,43.2v12.6H57.2`},title:e.getLocaleModel().get([`toolbox`,`brush`,`title`])}},t}(YR);function oV(e){e.registerComponentView(tV),e.registerComponentModel(nV),e.registerPreprocessor(MB),e.registerVisual(e.PRIORITY.VISUAL.BRUSH,qB),e.registerAction({type:`brush`,event:`brush`,update:`updateVisual`},function(e,t){t.eachComponent({mainType:`brush`,query:e},function(t){t.setAreas(e.areas)})}),e.registerAction({type:`brushSelect`,event:`brushSelected`,update:`none`},tt),e.registerAction({type:`brushEnd`,event:`brushEnd`,update:`none`},tt),ZR(`brush`,aV)}function sV(e,t){if(!e)return!1;for(var n=U(e)?e:[e],r=0;r<n.length;r++)if(n[r]&&n[r][t])return!0;return!1}function cV(e){qc(e,`label`,[`show`])}var lV=ml(),uV=function(e){D(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n.createdBySelf=!1,n.preventAutoZ=!0,n}return t.prototype.init=function(e,t,n){this.mergeDefaultAndTheme(e,n),this._mergeOption(e,n,!1,!0)},t.prototype.isAnimationEnabled=function(){if(Y.node)return!1;var e=this.__hostSeries;return this.getShallow(`animation`)&&e&&e.isAnimationEnabled()},t.prototype.mergeOption=function(e,t){this._mergeOption(e,t,!1,!1)},t.prototype._mergeOption=function(e,t,n,r){var i=this.mainType;n||t.eachSeries(function(e){var n=e.get(this.mainType,!0),a=lV(e)[i];if(!n||!n.data){lV(e)[i]=null;return}a?a._mergeOption(n,t,!0):(r&&cV(n),z(n.data,function(e){e instanceof Array?(cV(e[0]),cV(e[1])):cV(e)}),a=this.createMarkerModelFromSeries(n,this,t),I(a,{mainType:this.mainType,seriesIndex:e.seriesIndex,name:e.name,createdBySelf:!0}),a.__hostSeries=e),lV(e)[i]=a},this)},t.prototype.formatTooltip=function(e,t,n){var r=this.getData(),i=this.getRawValue(e),a=r.getName(e);return Gv(`section`,{header:this.name,blocks:[Gv(`nameValue`,{name:a,value:i,noName:!a,noValue:i==null})]})},t.prototype.getData=function(){return this._data},t.prototype.setData=function(e){this._data=e},t.prototype.getDataParams=function(e,t){var n=vv.prototype.getDataParams.call(this,e,t),r=this.__hostSeries;return r&&(n.seriesId=r.id,n.seriesName=r.name,n.seriesType=r.subType),n},t.getMarkerModelFromSeries=function(e,t){return lV(e)[t]},t.type=`marker`,t.dependencies=[`series`,`grid`,`polar`,`geo`],t}(cv);Se(uV,vv.prototype);function dV(e){return!(isNaN(parseFloat(e.x))&&isNaN(parseFloat(e.y)))}function fV(e){return!isNaN(parseFloat(e.x))&&!isNaN(parseFloat(e.y))}function pV(e,t,n,r,i,a,o){var s=[],c=lg(t,i)?t.getCalculationInfo(`stackResultDimension`):i,l=bV(t,c,e),u=t.hostModel.indicesOfNearest(n,c,l)[0];s[a]=t.get(r,u),s[o]=t.get(c,u);var d=t.get(i,u),f=mc(t.get(i,u));return f=Math.min(f,20),f>=0&&(s[o]=+s[o].toFixed(f)),[s,d]}var mV={min:Oe(pV,`min`),max:Oe(pV,`max`),average:Oe(pV,`average`),median:Oe(pV,`median`)};function hV(e,t){if(t){var n=e.getData(),r=e.coordinateSystem,i=r&&r.dimensions;if(!fV(t)&&!U(t.coord)&&U(i)){var a=gV(t,n,r,e);if(t=P(t),t.type&&mV[t.type]&&a.baseAxis&&a.valueAxis){var o=R(i,a.baseAxis.dim),s=R(i,a.valueAxis.dim),c=mV[t.type](n,a.valueAxis.dim,a.baseDataDim,a.valueDataDim,o,s);t.coord=c[0],t.value=c[1]}else t.coord=[t.xAxis==null?t.radiusAxis:t.xAxis,t.yAxis==null?t.angleAxis:t.yAxis]}if(t.coord==null||!U(i)){t.coord=[];var l=e.getBaseAxis();if(l&&t.type&&mV[t.type]){var u=r.getOtherAxis(l);u&&(t.value=bV(n,n.mapDimension(u.dim),t.type))}}else for(var d=t.coord,f=0;f<2;f++)mV[d[f]]&&(d[f]=bV(n,n.mapDimension(i[f]),d[f]));return t}}function gV(e,t,n,r){var i={};return e.valueIndex!=null||e.valueDim!=null?(i.valueDataDim=e.valueIndex==null?e.valueDim:t.getDimension(e.valueIndex),i.valueAxis=n.getAxis(_V(r,i.valueDataDim)),i.baseAxis=n.getOtherAxis(i.valueAxis),i.baseDataDim=t.mapDimension(i.baseAxis.dim)):(i.baseAxis=r.getBaseAxis(),i.valueAxis=n.getOtherAxis(i.baseAxis),i.baseDataDim=t.mapDimension(i.baseAxis.dim),i.valueDataDim=t.mapDimension(i.valueAxis.dim)),i}function _V(e,t){var n=e.getData().getDimensionInfo(t);return n&&n.coordDim}function vV(e,t){return e&&e.containData&&t.coord&&!dV(t)?e.containData(t.coord):!0}function yV(e,t){return e?function(e,n,r,i){return ch(i<2?e.coord&&e.coord[i]:e.value,t[i])}:function(e,n,r,i){return ch(e.value,t[i])}}function bV(e,t,n){if(n===`average`){var r=0,i=0;return e.each(t,function(e,t){isNaN(e)||(r+=e,i++)}),r/i}return n===`median`?e.getMedian(t):e.getDataExtent(t)[+(n===`max`)]}var xV=ml(),SV=function(e){D(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.prototype.init=function(){this.markerGroupMap=J()},t.prototype.render=function(e,t,n){var r=this,i=this.markerGroupMap;i.each(function(e){xV(e).keep=!1}),t.eachSeries(function(e){var i=uV.getMarkerModelFromSeries(e,r.type);i&&r.renderSeries(e,i,t,n)}),i.each(function(e){!xV(e).keep&&r.group.remove(e.group)}),CV(t,i,this.type)},t.prototype.markKeep=function(e){xV(e).keep=!0},t.prototype.toggleBlurSeries=function(e,t){var n=this;z(e,function(e){var r=uV.getMarkerModelFromSeries(e,n.type);r&&r.getData().eachItemGraphicEl(function(e){e&&(t?Ru(e):zu(e))})})},t.type=`marker`,t}(sO);function CV(e,t,n){e.eachSeries(function(e){var r=uV.getMarkerModelFromSeries(e,n),i=t.get(e.id);if(r&&i&&i.group){var a=Mp(r),o=a.z,s=a.zlevel;Pp(i.group,o,s)}})}var wV=function(e){D(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.prototype.createMarkerModelFromSeries=function(e,n,r){return new t(e,n,r)},t.type=`markLine`,t.defaultOption={z:5,symbol:[`circle`,`arrow`],symbolSize:[8,16],symbolOffset:0,precision:2,tooltip:{trigger:`item`},label:{show:!0,position:`end`,distance:5},lineStyle:{type:`dashed`},emphasis:{label:{show:!0},lineStyle:{width:3}},animationEasing:`linear`},t}(uV),TV=ml(),EV=function(e,t,n,r){var i=e.getData(),a;if(U(r))a=r;else{var o=r.type;if(o===`min`||o===`max`||o===`average`||o===`median`||r.xAxis!=null||r.yAxis!=null){var s=void 0,c=void 0;if(r.yAxis!=null||r.xAxis!=null)s=t.getAxis(r.yAxis==null?`x`:`y`),c=Re(r.yAxis,r.xAxis);else{var l=gV(r,i,t,e);s=l.valueAxis,c=bV(i,ug(i,l.valueDataDim),o)}var u=s.dim===`x`?0:1,d=1-u,f=P(r),p={coord:[]};f.type=null,f.coord=[],f.coord[d]=-1/0,p.coord[d]=1/0;var m=n.get(`precision`);m>=0&&Ae(c)&&(c=+c.toFixed(Math.min(m,20))),f.coord[u]=p.coord[u]=c,a=[f,p,{type:o,valueIndex:r.valueIndex,value:c}]}else a=[]}var h=[hV(e,a[0]),hV(e,a[1]),I({},a[2])];return h[2].type=h[2].type||null,F(h[2],h[0]),F(h[2],h[1]),h};function DV(e){return!isNaN(e)&&!isFinite(e)}function OV(e,t,n,r){var i=1-e,a=r.dimensions[e];return DV(t[i])&&DV(n[i])&&t[e]===n[e]&&r.getAxis(a).containData(t[e])}function kV(e,t){if(e.type===`cartesian2d`){var n=t[0].coord,r=t[1].coord;if(n&&r&&(OV(1,n,r,e)||OV(0,n,r,e)))return!0}return vV(e,t[0])&&vV(e,t[1])}function AV(e,t,n,r,i){var a=r.coordinateSystem,o=e.getItemModel(t),s,c=oc(o.get(`x`),i.getWidth()),l=oc(o.get(`y`),i.getHeight());if(!isNaN(c)&&!isNaN(l))s=[c,l];else{if(r.getMarkerPosition)s=r.getMarkerPosition(e.getValues(e.dimensions,t));else{var u=a.dimensions,d=e.get(u[0],t),f=e.get(u[1],t);s=a.dataToPoint([d,f])}if(mb(a,`cartesian2d`)){var p=a.getAxis(`x`),m=a.getAxis(`y`),u=a.dimensions;DV(e.get(u[0],t))?s[0]=p.toGlobalCoord(p.getExtent()[+!n]):DV(e.get(u[1],t))&&(s[1]=m.toGlobalCoord(m.getExtent()[+!n]))}isNaN(c)||(s[0]=c),isNaN(l)||(s[1]=l)}e.setItemLayout(t,s)}var jV=function(e){D(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.prototype.updateTransform=function(e,t,n){t.eachSeries(function(e){var t=uV.getMarkerModelFromSeries(e,`markLine`);if(t){var r=t.getData(),i=TV(t).from,a=TV(t).to;i.each(function(t){AV(i,t,!0,e,n),AV(a,t,!1,e,n)}),r.each(function(e){r.setItemLayout(e,[i.getItemLayout(e),a.getItemLayout(e)])}),this.markerGroupMap.get(e.id).updateLayout()}},this)},t.prototype.renderSeries=function(e,t,n,r){var i=e.coordinateSystem,a=e.id,o=e.getData(),s=this.markerGroupMap,c=s.get(a)||s.set(a,new EI);this.group.add(c.group);var l=MV(i,e,t),u=l.from,d=l.to,f=l.line;TV(t).from=u,TV(t).to=d,t.setData(f);var p=t.get(`symbol`),m=t.get(`symbolSize`),h=t.get(`symbolRotate`),g=t.get(`symbolOffset`);U(p)||(p=[p,p]),U(m)||(m=[m,m]),U(h)||(h=[h,h]),U(g)||(g=[g,g]),l.from.each(function(e){_(u,e,!0),_(d,e,!1)}),f.each(function(e){var t=f.getItemModel(e),n=t.getModel(`lineStyle`).getLineStyle();f.setItemLayout(e,[u.getItemLayout(e),d.getItemLayout(e)]);var r=t.get(`z2`);n.stroke??=u.getItemVisual(e,`style`).fill,f.setItemVisual(e,{z2:q(r,0),fromSymbolKeepAspect:u.getItemVisual(e,`symbolKeepAspect`),fromSymbolOffset:u.getItemVisual(e,`symbolOffset`),fromSymbolRotate:u.getItemVisual(e,`symbolRotate`),fromSymbolSize:u.getItemVisual(e,`symbolSize`),fromSymbol:u.getItemVisual(e,`symbol`),toSymbolKeepAspect:d.getItemVisual(e,`symbolKeepAspect`),toSymbolOffset:d.getItemVisual(e,`symbolOffset`),toSymbolRotate:d.getItemVisual(e,`symbolRotate`),toSymbolSize:d.getItemVisual(e,`symbolSize`),toSymbol:d.getItemVisual(e,`symbol`),style:n})}),c.updateData(f),l.line.eachItemGraphicEl(function(e){Wl(e).dataModel=t,e.traverse(function(e){Wl(e).dataModel=t})});function _(t,n,i){var a=t.getItemModel(n);AV(t,n,i,e,r);var s=a.getModel(`itemStyle`).getItemStyle();s.fill??=WO(o,`color`),t.setItemVisual(n,{symbolKeepAspect:a.get(`symbolKeepAspect`),symbolOffset:q(a.get(`symbolOffset`,!0),g[+!i]),symbolRotate:q(a.get(`symbolRotate`,!0),h[+!i]),symbolSize:q(a.get(`symbolSize`),m[+!i]),symbol:q(a.get(`symbol`,!0),p[+!i]),style:s})}this.markKeep(c),c.group.silent=t.get(`silent`)||e.get(`silent`)},t.type=`markLine`,t}(SV);function MV(e,t,n){var r=e?B(e&&e.dimensions,function(e){var n=t.getData();return I(I({},n.getDimensionInfo(n.mapDimension(e))||{}),{name:e,ordinalMeta:null})}):[{name:`value`,type:`float`}],i=new Wh(r,n),a=new Wh(r,n),o=new Wh([],n),s=B(n.get(`data`),Oe(EV,t,e,n));e&&(s=Te(s,Oe(kV,e)));var c=yV(!!e,r);return i.initData(B(s,function(e){return e[0]}),null,c),a.initData(B(s,function(e){return e[1]}),null,c),o.initData(B(s,function(e){return e[2]})),o.hasItemOption=!0,{from:i,to:a,line:o}}function NV(e){e.registerComponentModel(wV),e.registerComponentView(jV),e.registerPreprocessor(function(e){sV(e.series,`markLine`)&&(e.markLine=e.markLine||{})})}var PV={get:function(e,t,n){var r=P((FV[e]||{})[t]);return n&&U(r)?r[r.length-1]:r}},FV={color:{active:[`#006edd`,`#e0ffff`],inactive:[Z.color.transparent]},colorHue:{active:[0,360],inactive:[0,0]},colorSaturation:{active:[.3,1],inactive:[0,0]},colorLightness:{active:[.9,.5],inactive:[0,0]},colorAlpha:{active:[.3,1],inactive:[0,0]},opacity:{active:[.3,1],inactive:[0,0]},symbol:{active:[`circle`,`roundRect`,`diamond`],inactive:[`none`]},symbolSize:{active:[10,50],inactive:[0,0]}},IV=eI.mapVisual,LV=eI.eachVisual,RV=U,zV=z,BV=pc,VV=ac,HV=function(e){D(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n.stateList=[`inRange`,`outOfRange`],n.replacableOptionKeys=[`inRange`,`outOfRange`,`target`,`controller`,`color`],n.layoutMode={type:`box`,ignoreSize:!0},n.dataBound=[-1/0,1/0],n.targetVisuals={},n.controllerVisuals={},n}return t.prototype.init=function(e,t,n){this.mergeDefaultAndTheme(e,n)},t.prototype.optionUpdated=function(e,t){var n=this.option;!t&&IB(n,e,this.replacableOptionKeys),this.textStyleModel=this.getModel(`textStyle`),this.resetItemSize(),this.completeVisualOption()},t.prototype.resetVisual=function(e){var t=this.stateList;e=H(e,this),this.controllerVisuals=FB(this.option.controller,t,e),this.targetVisuals=FB(this.option.target,t,e)},t.prototype.getItemSymbol=function(){return null},t.prototype.getTargetSeriesIndices=function(){var e=this,t=this.option.seriesTargets;if(t){var n=[];return zV(t,function(t){if(t.seriesIndex!=null)n.push(t.seriesIndex);else if(t.seriesId!=null){var r;e.ecModel.eachSeries(function(e){e.id===t.seriesId&&(r=e)}),r&&n.push(r.componentIndex)}}),n}var r=this.option.seriesId,i=this.option.seriesIndex;i==null&&r==null&&(i=`all`);var a=bl(this.ecModel,`series`,{index:i,id:r},{useDefault:!1,enableAll:!0,enableNone:!1}).models;return B(a,function(e){return e.componentIndex})},t.prototype.eachTargetSeries=function(e,t){z(this.getTargetSeriesIndices(),function(n){var r=this.ecModel.getSeriesByIndex(n);r&&e.call(t,r)},this)},t.prototype.isTargetSeries=function(e){var t=!1;return this.eachTargetSeries(function(n){n===e&&(t=!0)}),t},t.prototype.formatValueText=function(e,t,n){var r=this.option,i=r.precision,a=this.dataBound,o=r.formatter,s;n||=[`<`,`>`],U(e)&&(e=e.slice(),s=!0);var c=t?e:s?[l(e[0]),l(e[1])]:l(e);return G(o)?o.replace(`{value}`,s?c[0]:c).replace(`{value2}`,s?c[1]:c):W(o)?s?o(e[0],e[1]):o(e):s?e[0]===a[0]?n[0]+` `+c[1]:e[1]===a[1]?n[1]+` `+c[0]:c[0]+` - `+c[1]:c;function l(e){return e===a[0]?`min`:e===a[1]?`max`:(+e).toFixed(Math.min(i,20))}},t.prototype.resetExtent=function(){var e=this.option,t=BV([e.min,e.max]);this._dataExtent=t},t.prototype.getDimension=function(e){var t=this,n=this.option.seriesTargets;if(n){var r=Ee(n,function(n){return n.seriesIndex!=null&&n.seriesIndex===e||n.seriesId!=null&&n.seriesId===t.ecModel.getSeriesByIndex(e).id});if(r)return r.dimension}return this.option.dimension},t.prototype.getDataDimensionIndex=function(e){var t=e.hostModel.seriesIndex,n=this.getDimension(t);if(n!=null)return e.getDimensionIndex(n);for(var r=e.dimensions,i=r.length-1;i>=0;i--){var a=r[i],o=e.getDimensionInfo(a);if(!o.isCalculationCoord)return o.storeDimIndex}},t.prototype.getExtent=function(){return this._dataExtent.slice()},t.prototype.completeVisualOption=function(){var e=this.ecModel,t=this.option,n={inRange:t.inRange,outOfRange:t.outOfRange},r=t.target||={},i=t.controller||={};F(r,n),F(i,n);var a=this.isCategory();o.call(this,r),o.call(this,i),s.call(this,r,`inRange`,`outOfRange`),c.call(this,i);function o(n){RV(t.color)&&!n.inRange&&(n.inRange={color:t.color.slice().reverse()}),n.inRange=n.inRange||{color:e.get(`gradientColor`)}}function s(e,t,n){var r=e[t],i=e[n];r&&!i&&(i=e[n]={},zV(r,function(e,t){if(eI.isValidType(t)){var n=PV.get(t,`inactive`,a);n!=null&&(i[t]=n,t===`color`&&!i.hasOwnProperty(`opacity`)&&!i.hasOwnProperty(`colorAlpha`)&&(i.opacity=[0,0]))}}))}function c(e){var t=(e.inRange||{}).symbol||(e.outOfRange||{}).symbol,n=(e.inRange||{}).symbolSize||(e.outOfRange||{}).symbolSize,r=this.get(`inactiveColor`),i=this.getItemSymbol()||`roundRect`;zV(this.stateList,function(o){var s=this.itemSize,c=e[o];c||=e[o]={color:a?r:[r]},c.symbol??(c.symbol=t&&P(t)||(a?i:[i])),c.symbolSize??(c.symbolSize=n&&P(n)||(a?s[0]:[s[0],s[0]])),c.symbol=IV(c.symbol,function(e){return e===`none`?i:e});var l=c.symbolSize;if(l!=null){var u=-1/0;LV(l,function(e){e>u&&(u=e)}),c.symbolSize=IV(l,function(e){return VV(e,[0,u],[0,s[0]],!0)})}},this)}},t.prototype.resetItemSize=function(){this.itemSize=[parseFloat(this.get(`itemWidth`)),parseFloat(this.get(`itemHeight`))]},t.prototype.isCategory=function(){return!!this.option.categories},t.prototype.setSelected=function(e){},t.prototype.getSelected=function(){return null},t.prototype.getValueState=function(e){return null},t.prototype.getVisualMeta=function(e){return null},t.type=`visualMap`,t.dependencies=[`series`],t.defaultOption={show:!0,z:4,min:0,max:200,left:0,right:null,top:null,bottom:0,itemWidth:null,itemHeight:null,inverse:!1,orient:`vertical`,backgroundColor:Z.color.transparent,borderColor:Z.color.borderTint,contentColor:Z.color.theme[0],inactiveColor:Z.color.disabled,borderWidth:0,padding:Z.size.m,textGap:10,precision:0,textStyle:{color:Z.color.secondary}},t}(cv),UV=[20,140],WV=function(e){D(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.prototype.optionUpdated=function(t,n){e.prototype.optionUpdated.apply(this,arguments),this.resetExtent(),this.resetVisual(function(e){e.mappingMethod=`linear`,e.dataExtent=this.getExtent()}),this._resetRange()},t.prototype.resetItemSize=function(){e.prototype.resetItemSize.apply(this,arguments);var t=this.itemSize;(t[0]==null||isNaN(t[0]))&&(t[0]=UV[0]),(t[1]==null||isNaN(t[1]))&&(t[1]=UV[1])},t.prototype._resetRange=function(){var e=this.getExtent(),t=this.option.range;!t||t.auto?(e.auto=1,this.option.range=e):U(t)&&(t[0]>t[1]&&t.reverse(),t[0]=Math.max(t[0],e[0]),t[1]=Math.min(t[1],e[1]))},t.prototype.completeVisualOption=function(){e.prototype.completeVisualOption.apply(this,arguments),z(this.stateList,function(e){var t=this.option.controller[e].symbolSize;t&&t[0]!==t[1]&&(t[0]=t[1]/3)},this)},t.prototype.setSelected=function(e){this.option.range=e.slice(),this._resetRange()},t.prototype.getSelected=function(){var e=this.getExtent(),t=pc((this.get(`range`)||[]).slice());return t[0]>e[1]&&(t[0]=e[1]),t[1]>e[1]&&(t[1]=e[1]),t[0]<e[0]&&(t[0]=e[0]),t[1]<e[0]&&(t[1]=e[0]),t},t.prototype.getValueState=function(e){var t=this.option.range,n=this.getExtent(),r=q(this.option.unboundedRange,!0);return(r&&t[0]<=n[0]||t[0]<=e)&&(r&&t[1]>=n[1]||e<=t[1])?`inRange`:`outOfRange`},t.prototype.findTargetDataIndices=function(e){var t=[];return this.eachTargetSeries(function(n){var r=[],i=n.getData();i.each(this.getDataDimensionIndex(i),function(t,n){e[0]<=t&&t<=e[1]&&r.push(n)},this),t.push({seriesId:n.id,dataIndex:r})},this),t},t.prototype.getVisualMeta=function(e){var t=GV(this,`outOfRange`,this.getExtent()),n=GV(this,`inRange`,this.option.range.slice()),r=[];function i(t,n){r.push({value:t,color:e(t,n)})}for(var a=0,o=0,s=n.length,c=t.length;o<c&&(!n.length||t[o]<=n[0]);o++)t[o]<n[a]&&i(t[o],`outOfRange`);for(var l=1;a<s;a++,l=0)l&&r.length&&i(n[a],`outOfRange`),i(n[a],`inRange`);for(var l=1;o<c;o++)(!n.length||n[n.length-1]<t[o])&&(l&&=(r.length&&i(r[r.length-1].value,`outOfRange`),0),i(t[o],`outOfRange`));var u=r.length;return{stops:r,outerColors:[u?r[0].color:`transparent`,u?r[u-1].color:`transparent`]}},t.type=`visualMap.continuous`,t.defaultOption=bg(HV.defaultOption,{align:`auto`,calculable:!1,hoverLink:!0,realtime:!0,handleIcon:`path://M-11.39,9.77h0a3.5,3.5,0,0,1-3.5,3.5h-22a3.5,3.5,0,0,1-3.5-3.5h0a3.5,3.5,0,0,1,3.5-3.5h22A3.5,3.5,0,0,1-11.39,9.77Z`,handleSize:`120%`,handleStyle:{borderColor:Z.color.neutral00,borderWidth:1},indicatorIcon:`circle`,indicatorSize:`50%`,indicatorStyle:{borderColor:Z.color.neutral00,borderWidth:2,shadowBlur:2,shadowOffsetX:1,shadowOffsetY:1,shadowColor:Z.color.shadow}}),t}(HV);function GV(e,t,n){if(n[0]===n[1])return n.slice();for(var r=200,i=(n[1]-n[0])/r,a=n[0],o=[],s=0;s<=r&&a<n[1];s++)o.push(a),a+=i;return o.push(n[1]),o}var KV=function(e){D(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n.autoPositionValues={left:1,right:1,top:1,bottom:1},n}return t.prototype.init=function(e,t){this.ecModel=e,this.api=t},t.prototype.render=function(e,t,n,r){if(this.visualMapModel=e,e.get(`show`)===!1){this.group.removeAll();return}this.doRender(e,t,n,r)},t.prototype.renderBackground=function(e){var t=this.visualMapModel,n=L_(t.get(`padding`)||0),r=e.getBoundingRect();e.add(new Es({z2:-1,silent:!0,shape:{x:r.x-n[3],y:r.y-n[0],width:r.width+n[3]+n[1],height:r.height+n[0]+n[2]},style:{fill:t.get(`backgroundColor`),stroke:t.get(`borderColor`),lineWidth:t.get(`borderWidth`)}}))},t.prototype.getControllerVisual=function(e,t,n){n||={};var r=n.forceState,i=this.visualMapModel,a={};t===`color`&&(a.color=i.get(`contentColor`));function o(e){return a[e]}function s(e,t){a[e]=t}var c=i.controllerVisuals[r||i.getValueState(e)];return z(eI.prepareVisualTypes(c),function(r){var i=c[r];n.convertOpacityToAlpha&&r===`opacity`&&(r=`colorAlpha`,i=c.__alphaForOpacity),eI.dependsOn(r,t)&&i&&i.applyVisual(e,o,s)}),a[t]},t.prototype.positionGroup=function(e){var t=this.visualMapModel,n=this.api,r=tv(t,n).refContainer;nv(e,t.getBoxLayoutParams(),r)},t.prototype.doRender=function(e,t,n,r){},t.type=`visualMap`,t}(sO),qV=[[`left`,`right`,`width`],[`top`,`bottom`,`height`]];function JV(e,t,n){var r=e.option,i=r.align;if(i!=null&&i!==`auto`)return i;for(var a={width:t.getWidth(),height:t.getHeight()},o=+(r.orient===`horizontal`),s=qV[o],c=[0,null,10],l={},u=0;u<3;u++)l[qV[1-o][u]]=c[u],l[s[u]]=u===2?n[0]:r[s[u]];var d=[[`x`,`width`,3],[`y`,`height`,0]][o],f=Q_(l,a,r.padding);return s[(f.margin[d[2]]||0)+f[d[0]]+f[d[1]]*.5<a[d[1]]*.5?0:1]}function YV(e,t){return z(e||[],function(e){e.dataIndex!=null&&(e.dataIndexInside=e.dataIndex,e.dataIndex=null),e.highlightKey=`visualMap`+(t?t.componentIndex:``)}),e}var XV=ac,ZV=z,QV=Math.min,$V=Math.max,eH=12,tH=6,nH=function(e){D(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n._shapes={},n._dataInterval=[],n._handleEnds=[],n._hoverLinkDataIndices=[],n}return t.prototype.init=function(t,n){e.prototype.init.call(this,t,n),this._hoverLinkFromSeriesMouseOver=H(this._hoverLinkFromSeriesMouseOver,this),this._hideIndicator=H(this._hideIndicator,this)},t.prototype.doRender=function(e,t,n,r){(!r||r.type!==`selectDataRange`||r.from!==this.uid)&&this._buildView()},t.prototype._buildView=function(){this.group.removeAll();var e=this.visualMapModel,t=this.group;this._orient=e.get(`orient`),this._useHandle=e.get(`calculable`),this._resetInterval(),this._renderBar(t);var n=e.get(`text`);this._renderEndsText(t,n,0),this._renderEndsText(t,n,1),this._updateView(!0),this.renderBackground(t),this._updateView(),this._enableHoverLinkToSeries(),this._enableHoverLinkFromSeries(),this.positionGroup(t)},t.prototype._renderEndsText=function(e,t,n){if(t){var r=t[1-n];r=r==null?``:r+``;var i=this.visualMapModel,a=i.get(`textGap`),o=i.itemSize,s=this._shapes.mainGroup,c=this._applyTransform([o[0]/2,n===0?-a:o[1]+a],s),l=this._applyTransform(n===0?`bottom`:`top`,s),u=this._orient,d=this.visualMapModel.textStyleModel;this.group.add(new js({style:Gp(d,{x:c[0],y:c[1],verticalAlign:d.get(`verticalAlign`)||(u===`horizontal`?`middle`:l),align:d.get(`align`)||(u===`horizontal`?l:`center`),text:r})}))}},t.prototype._renderBar=function(e){var t=this.visualMapModel,n=this._shapes,r=t.itemSize,i=this._orient,a=this._useHandle,o=JV(t,this.api,r),s=n.mainGroup=this._createBarGroup(o),c=new Fd;s.add(c),c.add(n.outOfRange=rH()),c.add(n.inRange=rH(null,a?oH(this._orient):null,H(this._dragHandle,this,`all`,!1),H(this._dragHandle,this,`all`,!0))),c.setClipPath(new Es({shape:{x:0,y:0,width:r[0],height:r[1],r:3}}));var l=t.textStyleModel.getTextRect(`国`),u=$V(l.width,l.height);a&&(n.handleThumbs=[],n.handleLabels=[],n.handleLabelPoints=[],this._createHandle(t,s,0,r,u,i),this._createHandle(t,s,1,r,u,i)),this._createIndicator(t,s,r,u,i),e.add(s)},t.prototype._createHandle=function(e,t,n,r,i,a){var o=H(this._dragHandle,this,n,!1),s=H(this._dragHandle,this,n,!0),c=Zn(e.get(`handleSize`),r[0]),l=Ey(e.get(`handleIcon`),-c/2,-c/2,c,c,null,!0),u=oH(this._orient);l.attr({cursor:u,draggable:!0,drift:o,ondragend:s,onmousemove:function(e){YT(e.event)}}),l.x=r[0]/2,l.useStyle(e.getModel(`handleStyle`).getItemStyle()),l.setStyle({strokeNoScale:!0,strokeFirst:!0}),l.style.lineWidth*=2,l.ensureState(`emphasis`).style=e.getModel([`emphasis`,`handleStyle`]).getItemStyle(),od(l,!0),t.add(l);var d=this.visualMapModel.textStyleModel,f=new js({cursor:u,draggable:!0,drift:o,onmousemove:function(e){YT(e.event)},ondragend:s,style:Gp(d,{x:0,y:0,text:``})});f.ensureState(`blur`).style={opacity:.1},f.stateTransition={duration:200},this.group.add(f);var p=[c,0],m=this._shapes;m.handleThumbs[n]=l,m.handleLabelPoints[n]=p,m.handleLabels[n]=f},t.prototype._createIndicator=function(e,t,n,r,i){var a=Zn(e.get(`indicatorSize`),n[0]),o=Ey(e.get(`indicatorIcon`),-a/2,-a/2,a,a,null,!0);o.attr({cursor:`move`,invisible:!0,silent:!0,x:n[0]/2});var s=e.getModel(`indicatorStyle`).getItemStyle();if(o instanceof vs){var c=o.style;o.useStyle(I({image:c.image,x:c.x,y:c.y,width:c.width,height:c.height},s))}else o.useStyle(s);t.add(o);var l=this.visualMapModel.textStyleModel,u=new js({silent:!0,invisible:!0,style:Gp(l,{x:0,y:0,text:``})});this.group.add(u);var d=[(i===`horizontal`?r/2:tH)+n[0]/2,0],f=this._shapes;f.indicator=o,f.indicatorLabel=u,f.indicatorLabelPoint=d,this._firstShowIndicator=!0},t.prototype._dragHandle=function(e,t,n,r){if(this._useHandle){if(this._dragging=!t,!t){var i=this._applyTransform([n,r],this._shapes.mainGroup,!0);this._updateInterval(e,i[1]),this._hideIndicator(),this._updateView()}t===!this.visualMapModel.get(`realtime`)&&this.api.dispatchAction({type:`selectDataRange`,from:this.uid,visualMapId:this.visualMapModel.id,selected:this._dataInterval.slice()}),t?!this._hovering&&this._clearHoverLinkToSeries():aH(this.visualMapModel)&&this._doHoverLinkToSeries(this._handleEnds[e],!1)}},t.prototype._resetInterval=function(){var e=this.visualMapModel,t=this._dataInterval=e.getSelected(),n=e.getExtent(),r=[0,e.itemSize[1]];this._handleEnds=[XV(t[0],n,r,!0),XV(t[1],n,r,!0)]},t.prototype._updateInterval=function(e,t){t||=0;var n=this.visualMapModel,r=this._handleEnds,i=[0,n.itemSize[1]];jI(t,r,i,e,0);var a=n.getExtent();this._dataInterval=[XV(r[0],i,a,!0),XV(r[1],i,a,!0)]},t.prototype._updateView=function(e){var t=this.visualMapModel,n=t.getExtent(),r=this._shapes,i=[0,t.itemSize[1]],a=e?i:this._handleEnds,o=this._createBarVisual(this._dataInterval,n,a,`inRange`),s=this._createBarVisual(n,n,i,`outOfRange`);r.inRange.setStyle({fill:o.barColor}).setShape(`points`,o.barPoints),r.outOfRange.setStyle({fill:s.barColor}).setShape(`points`,s.barPoints),this._updateHandle(a,o)},t.prototype._createBarVisual=function(e,t,n,r){var i={forceState:r,convertOpacityToAlpha:!0},a=this._makeColorGradient(e,i),o=[this.getControllerVisual(e[0],`symbolSize`,i),this.getControllerVisual(e[1],`symbolSize`,i)],s=this._createBarPoints(n,o);return{barColor:new Cf(0,0,0,1,a),barPoints:s,handlesColor:[a[0].color,a[a.length-1].color]}},t.prototype._makeColorGradient=function(e,t){var n=100,r=[],i=(e[1]-e[0])/n;r.push({color:this.getControllerVisual(e[0],`color`,t),offset:0});for(var a=1;a<n;a++){var o=e[0]+i*a;if(o>e[1])break;r.push({color:this.getControllerVisual(o,`color`,t),offset:a/n})}return r.push({color:this.getControllerVisual(e[1],`color`,t),offset:1}),r},t.prototype._createBarPoints=function(e,t){var n=this.visualMapModel.itemSize;return[[n[0]-t[0],e[0]],[n[0],e[0]],[n[0],e[1]],[n[0]-t[1],e[1]]]},t.prototype._createBarGroup=function(e){var t=this._orient,n=this.visualMapModel.get(`inverse`);return new Fd(t===`horizontal`&&!n?{scaleX:e===`bottom`?1:-1,rotation:Math.PI/2}:t===`horizontal`&&n?{scaleX:e===`bottom`?-1:1,rotation:-Math.PI/2}:t===`vertical`&&!n?{scaleX:e===`left`?1:-1,scaleY:-1}:{scaleX:e===`left`?1:-1})},t.prototype._updateHandle=function(e,t){if(this._useHandle){var n=this._shapes,r=this.visualMapModel,i=n.handleThumbs,a=n.handleLabels,o=r.itemSize,s=r.getExtent(),c=this._applyTransform(`left`,n.mainGroup);ZV([0,1],function(l){var u=i[l];u.setStyle(`fill`,t.handlesColor[l]),u.y=e[l];var d=XV(e[l],[0,o[1]],s,!0),f=this.getControllerVisual(d,`symbolSize`);u.scaleX=u.scaleY=f/o[0],u.x=o[0]-f/2;var p=up(n.handleLabelPoints[l],lp(u,this.group));if(this._orient===`horizontal`){var m=c===`left`||c===`top`?(o[0]-f)/2:(o[0]-f)/-2;p[1]+=m}a[l].setStyle({x:p[0],y:p[1],text:r.formatValueText(this._dataInterval[l]),verticalAlign:`middle`,align:this._orient===`vertical`?this._applyTransform(`left`,n.mainGroup):`center`})},this)}},t.prototype._showIndicator=function(e,t,n,r){var i=this.visualMapModel,a=i.getExtent(),o=i.itemSize,s=[0,o[1]],c=this._shapes,l=c.indicator;if(l){l.attr(`invisible`,!1);var u=this.getControllerVisual(e,`color`,{convertOpacityToAlpha:!0}),d=this.getControllerVisual(e,`symbolSize`),f=XV(e,a,s,!0),p=o[0]-d/2,m={x:l.x,y:l.y};l.y=f,l.x=p;var h=up(c.indicatorLabelPoint,lp(l,this.group)),g=c.indicatorLabel;g.attr(`invisible`,!1);var _=this._applyTransform(`left`,c.mainGroup),v=this._orient===`horizontal`;g.setStyle({text:(n||``)+i.formatValueText(t),verticalAlign:v?_:`middle`,align:v?`center`:_});var y={x:p,y:f,style:{fill:u}},b={style:{x:h[0],y:h[1]}};if(i.ecModel.isAnimationEnabled()&&!this._firstShowIndicator){var x={duration:100,easing:`cubicInOut`,additive:!0};l.x=m.x,l.y=m.y,l.animateTo(y,x),g.animateTo(b,x)}else l.attr(y),g.attr(b);this._firstShowIndicator=!1;var S=this._shapes.handleLabels;if(S)for(var C=0;C<S.length;C++)this.api.enterBlur(S[C])}},t.prototype._enableHoverLinkToSeries=function(){var e=this;this._shapes.mainGroup.on(`mousemove`,function(t){if(e._hovering=!0,!e._dragging){var n=e.visualMapModel.itemSize,r=e._applyTransform([t.offsetX,t.offsetY],e._shapes.mainGroup,!0,!0);r[1]=QV($V(0,r[1]),n[1]),e._doHoverLinkToSeries(r[1],0<=r[0]&&r[0]<=n[0])}}).on(`mouseout`,function(){e._hovering=!1,!e._dragging&&e._clearHoverLinkToSeries()})},t.prototype._enableHoverLinkFromSeries=function(){var e=this.api.getZr();this.visualMapModel.option.hoverLink?(e.on(`mouseover`,this._hoverLinkFromSeriesMouseOver,this),e.on(`mouseout`,this._hideIndicator,this)):this._clearHoverLinkFromSeries()},t.prototype._doHoverLinkToSeries=function(e,t){var n=this.visualMapModel,r=n.itemSize;if(n.option.hoverLink){var i=[0,r[1]],a=n.getExtent();e=QV($V(i[0],e),i[1]);var o=iH(n,a,i),s=[e-o,e+o],c=XV(e,i,a,!0),l=[XV(s[0],i,a,!0),XV(s[1],i,a,!0)];s[0]<i[0]&&(l[0]=-1/0),s[1]>i[1]&&(l[1]=1/0),t&&(l[0]===-1/0?this._showIndicator(c,l[1],`< `,o):l[1]===1/0?this._showIndicator(c,l[0],`> `,o):this._showIndicator(c,c,`≈ `,o));var u=this._hoverLinkDataIndices,d=[];(t||aH(n))&&(d=this._hoverLinkDataIndices=n.findTargetDataIndices(l));var f=fl(u,d);this._dispatchHighDown(`downplay`,YV(f[0],n)),this._dispatchHighDown(`highlight`,YV(f[1],n))}},t.prototype._hoverLinkFromSeriesMouseOver=function(e){var t;if(KO(e.target,function(e){var n=Wl(e);if(n.dataIndex!=null)return t=n,!0},!0),t){var n=this.ecModel.getSeriesByIndex(t.seriesIndex),r=this.visualMapModel;if(r.isTargetSeries(n)){var i=n.getData(t.dataType),a=i.getStore().get(r.getDataDimensionIndex(i),t.dataIndex);isNaN(a)||this._showIndicator(a,a)}}},t.prototype._hideIndicator=function(){var e=this._shapes;e.indicator&&e.indicator.attr(`invisible`,!0),e.indicatorLabel&&e.indicatorLabel.attr(`invisible`,!0);var t=this._shapes.handleLabels;if(t)for(var n=0;n<t.length;n++)this.api.leaveBlur(t[n])},t.prototype._clearHoverLinkToSeries=function(){this._hideIndicator();var e=this._hoverLinkDataIndices;this._dispatchHighDown(`downplay`,YV(e,this.visualMapModel)),e.length=0},t.prototype._clearHoverLinkFromSeries=function(){this._hideIndicator();var e=this.api.getZr();e.off(`mouseover`,this._hoverLinkFromSeriesMouseOver),e.off(`mouseout`,this._hideIndicator)},t.prototype._applyTransform=function(e,t,n,r){var i=lp(t,r?null:this.group);return U(e)?up(e,i,n):dp(e,i,n)},t.prototype._dispatchHighDown=function(e,t){t&&t.length&&this.api.dispatchAction({type:e,batch:t})},t.prototype.dispose=function(){this._clearHoverLinkFromSeries(),this._clearHoverLinkToSeries()},t.type=`visualMap.continuous`,t}(KV);function rH(e,t,n,r){return new lf({shape:{points:e},draggable:!!n,cursor:t,drift:n,onmousemove:function(e){YT(e.event)},ondragend:r})}function iH(e,t,n){var r=eH/2,i=e.get(`hoverLinkDataSize`);return i&&(r=XV(i,t,n,!0)/2),r}function aH(e){return!!(e.get(`hoverLinkOnHandle`)??e.get(`realtime`))}function oH(e){return e===`vertical`?`ns-resize`:`ew-resize`}var sH={type:`selectDataRange`,event:`dataRangeSelected`,update:`update`},cH=function(e,t){t.eachComponent({mainType:`visualMap`,query:e},function(t){t.setSelected(e.selected)})},lH=[{createOnAllSeries:!0,reset:function(e,t){var n=[];return t.eachComponent(`visualMap`,function(t){var r=e.pipelineContext;!t.isTargetSeries(e)||r&&r.large||n.push(RB(t.stateList,t.targetVisuals,H(t.getValueState,t),t.getDataDimensionIndex(e.getData())))}),n}},{createOnAllSeries:!0,reset:function(e,t){var n=e.getData(),r=[];t.eachComponent(`visualMap`,function(t){if(t.isTargetSeries(e)){var i=t.getVisualMeta(H(uH,null,e,t))||{stops:[],outerColors:[]},a=t.getDataDimensionIndex(n);a>=0&&(i.dimension=a,r.push(i))}}),e.getData().setVisual(`visualMeta`,r)}}];function uH(e,t,n,r){for(var i=t.targetVisuals[r],a=eI.prepareVisualTypes(i),o={color:WO(e.getData(),`color`)},s=0,c=a.length;s<c;s++){var l=a[s],u=i[l===`opacity`?`__alphaForOpacity`:l];u&&u.applyVisual(n,d,f)}return o.color;function d(e){return o[e]}function f(e,t){o[e]=t}}var dH=z;function fH(e){var t=e&&e.visualMap;U(t)||(t=t?[t]:[]),dH(t,function(e){if(e){pH(e,`splitList`)&&!pH(e,`pieces`)&&(e.pieces=e.splitList,delete e.splitList);var t=e.pieces;t&&U(t)&&dH(t,function(e){K(e)&&(pH(e,`start`)&&!pH(e,`min`)&&(e.min=e.start),pH(e,`end`)&&!pH(e,`max`)&&(e.max=e.end))})}})}function pH(e,t){return e&&e.hasOwnProperty&&e.hasOwnProperty(t)}var mH=!1;function hH(e){mH||(mH=!0,e.registerSubTypeDefaulter(`visualMap`,function(e){return!e.categories&&(!(e.pieces?e.pieces.length>0:e.splitNumber>0)||e.calculable)?`continuous`:`piecewise`}),e.registerAction(sH,cH),z(lH,function(t){e.registerVisual(e.PRIORITY.VISUAL.COMPONENT,t)}),e.registerPreprocessor(fH))}function gH(e){e.registerComponentModel(WV),e.registerComponentView(nH),hH(e)}var _H=function(e){D(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n._pieceList=[],n}return t.prototype.optionUpdated=function(t,n){e.prototype.optionUpdated.apply(this,arguments),this.resetExtent();var r=this._mode=this._determineMode();this._pieceList=[],vH[this._mode].call(this,this._pieceList),this._resetSelected(t,n);var i=this.option.categories;this.resetVisual(function(e,t){r===`categories`?(e.mappingMethod=`category`,e.categories=P(i)):(e.dataExtent=this.getExtent(),e.mappingMethod=`piecewise`,e.pieceList=B(this._pieceList,function(e){return e=P(e),t!==`inRange`&&(e.visual=null),e}))})},t.prototype.completeVisualOption=function(){var t=this.option,n={},r=eI.listVisualTypes(),i=this.isCategory();z(t.pieces,function(e){z(r,function(t){e.hasOwnProperty(t)&&(n[t]=1)})}),z(n,function(e,n){var r=!1;z(this.stateList,function(e){r=r||a(t,e,n)||a(t.target,e,n)},this),!r&&z(this.stateList,function(e){(t[e]||(t[e]={}))[n]=PV.get(n,e===`inRange`?`active`:`inactive`,i)})},this);function a(e,t,n){return e&&e[t]&&e[t].hasOwnProperty(n)}e.prototype.completeVisualOption.apply(this,arguments)},t.prototype._resetSelected=function(e,t){var n=this.option,r=this._pieceList,i=(t?n:e).selected||{};if(n.selected=i,z(r,function(e,t){var n=this.getSelectedMapKey(e);i.hasOwnProperty(n)||(i[n]=!0)},this),n.selectedMode===`single`){var a=!1;z(r,function(e,t){var n=this.getSelectedMapKey(e);i[n]&&(a?i[n]=!1:a=!0)},this)}},t.prototype.getItemSymbol=function(){return this.get(`itemSymbol`)},t.prototype.getSelectedMapKey=function(e){return this._mode===`categories`?e.value+``:e.index+``},t.prototype.getPieceList=function(){return this._pieceList},t.prototype._determineMode=function(){var e=this.option;return e.pieces&&e.pieces.length>0?`pieces`:this.option.categories?`categories`:`splitNumber`},t.prototype.setSelected=function(e){this.option.selected=P(e)},t.prototype.getValueState=function(e){var t=eI.findPieceIndex(e,this._pieceList);return t==null?`outOfRange`:this.option.selected[this.getSelectedMapKey(this._pieceList[t])]?`inRange`:`outOfRange`},t.prototype.findTargetDataIndices=function(e){var t=[],n=this._pieceList;return this.eachTargetSeries(function(r){var i=[],a=r.getData();a.each(this.getDataDimensionIndex(a),function(t,r){eI.findPieceIndex(t,n)===e&&i.push(r)},this),t.push({seriesId:r.id,dataIndex:i})},this),t},t.prototype.getRepresentValue=function(e){var t;if(this.isCategory())t=e.value;else if(e.value!=null)t=e.value;else{var n=e.interval||[];t=n[0]===-1/0&&n[1]===1/0?0:(n[0]+n[1])/2}return t},t.prototype.getVisualMeta=function(e){if(this.isCategory())return;var t=[],n=[``,``],r=this;function i(i,a){var o=r.getRepresentValue({interval:i});a||=r.getValueState(o);var s=e(o,a);i[0]===-1/0?n[0]=s:i[1]===1/0?n[1]=s:t.push({value:i[0],color:s},{value:i[1],color:s})}var a=this._pieceList.slice();if(!a.length)a.push({interval:[-1/0,1/0]});else{var o=a[0].interval[0];o!==-1/0&&a.unshift({interval:[-1/0,o]}),o=a[a.length-1].interval[1],o!==1/0&&a.push({interval:[o,1/0]})}var s=-1/0;return z(a,function(e){var t=e.interval;t&&(t[0]>s&&i([s,t[0]],`outOfRange`),i(t.slice()),s=t[1])},this),{stops:t,outerColors:n}},t.type=`visualMap.piecewise`,t.defaultOption=bg(HV.defaultOption,{selected:null,minOpen:!1,maxOpen:!1,align:`auto`,itemWidth:20,itemHeight:14,itemSymbol:`roundRect`,pieces:null,categories:null,splitNumber:5,selectedMode:`multiple`,itemGap:10,hoverLink:!0}),t}(HV),vH={splitNumber:function(e){var t=this.option,n=Math.min(t.precision,20),r=this.getExtent(),i=t.splitNumber;i=Math.max(parseInt(i,10),1),t.splitNumber=i;for(var a=(r[1]-r[0])/i;+a.toFixed(n)!==a&&n<5;)n++;t.precision=n,a=+a.toFixed(n),t.minOpen&&e.push({interval:[-1/0,r[0]],close:[0,0]});for(var o=0,s=r[0];o<i;s+=a,o++){var c=o===i-1?r[1]:s+a;e.push({interval:[s,c],close:[1,1]})}t.maxOpen&&e.push({interval:[r[1],1/0],close:[0,0]}),Ac(e),z(e,function(e,t){e.index=t,e.text=this.formatValueText(e.interval)},this)},categories:function(e){var t=this.option;z(t.categories,function(t){e.push({text:this.formatValueText(t,!0),value:t})},this),yH(t,e)},pieces:function(e){var t=this.option;z(t.pieces,function(t,n){K(t)||(t={value:t});var r={text:``,index:n};if(t.label!=null&&(r.text=t.label),t.hasOwnProperty(`value`)){var i=r.value=t.value;r.interval=[i,i],r.close=[1,1]}else{for(var a=r.interval=[],o=r.close=[0,0],s=[1,0,1],c=[-1/0,1/0],l=[],u=0;u<2;u++){for(var d=[[`gte`,`gt`,`min`],[`lte`,`lt`,`max`]][u],f=0;f<3&&a[u]==null;f++)a[u]=t[d[f]],o[u]=s[f],l[u]=f===2;a[u]??(a[u]=c[u])}l[0]&&a[1]===1/0&&(o[0]=0),l[1]&&a[0]===-1/0&&(o[1]=0),a[0]===a[1]&&o[0]&&o[1]&&(r.value=a[0])}r.visual=eI.retrieveVisuals(t),e.push(r)},this),yH(t,e),Ac(e),z(e,function(e){var t=e.close,n=[[`<`,`≤`][t[1]],[`>`,`≥`][t[0]]];e.text=e.text||this.formatValueText(e.value==null?e.interval:e.value,!1,n)},this)}};function yH(e,t){var n=e.inverse;(e.orient===`vertical`?!n:n)&&t.reverse()}var bH=function(e){D(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.prototype.doRender=function(){var e=this.group;e.removeAll();var t=this.visualMapModel,n=t.get(`textGap`),r=t.textStyleModel,i=this._getItemAlign(),a=t.itemSize,o=this._getViewData(),s=o.endsText,c=Re(t.get(`showLabel`,!0),!s),l=!t.get(`selectedMode`);s&&this._renderEndsText(e,s[0],a,c,i),z(o.viewPieceList,function(o){var s=o.piece,u=new Fd;u.onclick=H(this._onItemClick,this,s),this._enableHoverLink(u,o.indexInModelPieceList);var d=t.getRepresentValue(s);if(this._createItemSymbol(u,d,[0,0,a[0],a[1]],l),c){var f=this.visualMapModel.getValueState(d),p=r.get(`align`)||i;u.add(new js({style:Gp(r,{x:p===`right`?-n:a[0]+n,y:a[1]/2,text:s.text,verticalAlign:r.get(`verticalAlign`)||`middle`,align:p,opacity:q(r.get(`opacity`),f===`outOfRange`?.5:1)}),silent:l}))}e.add(u)},this),s&&this._renderEndsText(e,s[1],a,c,i),X_(t.get(`orient`),e,t.get(`itemGap`)),this.renderBackground(e),this.positionGroup(e)},t.prototype._enableHoverLink=function(e,t){var n=this;e.on(`mouseover`,function(){return r(`highlight`)}).on(`mouseout`,function(){return r(`downplay`)});var r=function(e){var r=n.visualMapModel;r.option.hoverLink&&n.api.dispatchAction({type:e,batch:YV(r.findTargetDataIndices(t),r)})}},t.prototype._getItemAlign=function(){var e=this.visualMapModel,t=e.option;if(t.orient===`vertical`)return JV(e,this.api,e.itemSize);var n=t.align;return(!n||n===`auto`)&&(n=`left`),n},t.prototype._renderEndsText=function(e,t,n,r,i){if(t){var a=new Fd,o=this.visualMapModel.textStyleModel;a.add(new js({style:Gp(o,{x:r?i===`right`?n[0]:0:n[0]/2,y:n[1]/2,verticalAlign:`middle`,align:r?i:`center`,text:t})})),e.add(a)}},t.prototype._getViewData=function(){var e=this.visualMapModel,t=B(e.getPieceList(),function(e,t){return{piece:e,indexInModelPieceList:t}}),n=e.get(`text`),r=e.get(`orient`),i=e.get(`inverse`);return(r===`horizontal`?i:!i)?t.reverse():n&&=n.slice().reverse(),{viewPieceList:t,endsText:n}},t.prototype._createItemSymbol=function(e,t,n,r){var i=Ey(this.getControllerVisual(t,`symbol`),n[0],n[1],n[2],n[3],this.getControllerVisual(t,`color`));i.silent=r,e.add(i)},t.prototype._onItemClick=function(e){var t=this.visualMapModel,n=t.option,r=n.selectedMode;if(r){var i=P(n.selected),a=t.getSelectedMapKey(e);r===`single`||r===!0?(i[a]=!0,z(i,function(e,t){i[t]=t===a})):i[a]=!i[a],this.api.dispatchAction({type:`selectDataRange`,from:this.uid,visualMapId:this.visualMapModel.id,selected:i})}},t.type=`visualMap.piecewise`,t}(KV);function xH(e){e.registerComponentModel(_H),e.registerComponentView(bH),hH(e)}function SH(e){Vj(gH),Vj(xH)}var CH={label:{enabled:!0},decal:{show:!1}},wH=ml(),TH=ml(),EH=Ul(DH);function DH(e,t){var n=e.getModel(`aria`);if(!n.get(`enabled`))return;var r=TH(e).scope||(TH(e).scope={}),i=P(CH);F(i.label,e.getLocaleModel().get(`aria`),!1),F(n.option,i,!1),a(),o();function a(){if(n.getModel(`decal`).get(`show`)){var t=J();e.eachSeries(function(e){e.isColorBySeries()||(wH(e).scope=t.get(e.type)||t.set(e.type,{}))}),e.eachSeries(function(t){if(W(t.enableAriaDecal)){t.enableAriaDecal();return}var n=t.getData();if(t.isColorBySeries()){var i=pv(t.ecModel,t.name,r,e.getSeriesCount()),a=n.getVisual(`decal`);n.setVisual(`decal`,u(a,i))}else{var o=t.getRawData(),s={},c=wH(t).scope;n.each(function(e){var t=n.getRawIndex(e);s[t]=e});var l=o.count();o.each(function(e){var r=s[e],i=o.getName(e)||e+``,a=pv(t.ecModel,i,c,l),d=n.getItemVisual(r,`decal`);n.setItemVisual(r,`decal`,u(d,a))})}function u(e,t){var n=e?I(I({},t),e):t;return n.dirty=!0,n}})}}function o(){var r=t.getZr().dom;if(r){var i=e.getLocaleModel().get(`aria`),a=n.getModel(`label`);if(a.option=L(a.option,i),a.get(`enabled`)){if(r.setAttribute(`role`,`img`),a.get(`description`)){r.setAttribute(`aria-label`,a.get(`description`));return}var o=e.getSeriesCount(),u=a.get([`data`,`maxCount`])||10,d=a.get([`series`,`maxCount`])||10,f=Math.min(o,d),p;if(!(o<1)){var m=c();p=m?s(a.get([`general`,`withTitle`]),{title:m}):a.get([`general`,`withoutTitle`]);var h=[],g=o>1?a.get([`series`,`multiple`,`prefix`]):a.get([`series`,`single`,`prefix`]);p+=s(g,{seriesCount:o}),e.eachSeries(function(e,t){if(t<f){var n=void 0,r=e.get(`name`)?`withName`:`withoutName`;n=o>1?a.get([`series`,`multiple`,r]):a.get([`series`,`single`,r]),n=s(n,{seriesId:e.seriesIndex,seriesName:e.get(`name`),seriesType:l(e.subType)});var i=e.getData();if(i.count()>u){var c=a.get([`data`,`partialData`]);n+=s(c,{displayCnt:u})}else n+=a.get([`data`,`allData`]);for(var d=a.get([`data`,`separator`,`middle`]),p=a.get([`data`,`separator`,`end`]),m=a.get([`data`,`excludeDimensionId`]),g=[],_=0;_<i.count();_++)if(_<u){var v=i.getName(_),y=m?Te(i.getValues(_),function(e,t){return R(m,t)===-1}):i.getValues(_),b=a.get([`data`,v?`withName`:`withoutName`]);g.push(s(b,{name:v,value:y.join(d)}))}n+=g.join(d)+p,h.push(n)}});var _=a.getModel([`series`,`multiple`,`separator`]),v=_.get(`middle`),y=_.get(`end`);p+=h.join(v)+y,r.setAttribute(`aria-label`,p)}}}}function s(e,t){if(!G(e))return e;var n=e;return z(t,function(e,t){n=n.replace(RegExp(`\\{\\s*`+t+`\\s*\\}`,`g`),e)}),n}function c(){var t=e.get(`title`);return t&&t.length&&(t=t[0]),t&&t.text}function l(t){var n=e.getLocaleModel().get([`series`,`typeNames`]);return n[t]||n.chart}}function OH(e){if(e&&e.aria){var t=e.aria;t.show!=null&&(t.enabled=t.show),t.label=t.label||{},z([`description`,`general`,`series`,`data`],function(e){t[e]!=null&&(t.label[e]=t[e])})}}function kH(e){e.registerPreprocessor(OH),e.registerVisual(e.PRIORITY.VISUAL.ARIA,EH)}var AH=e({createDimensions:()=>Gh,createList:()=>jH,createScale:()=>NH,createSymbol:()=>Ey,createTextStyle:()=>FH,dataStack:()=>MH,enableHoverEmphasis:()=>$u,getECData:()=>Wl,getLayoutRect:()=>Q_,mixinAxisModelCommonMethods:()=>PH});function jH(e){return pg(null,e)}var MH={isDimensionStacked:lg,enableDataStack:sg,getStackedDimension:ug};function NH(e,t){var n=t;t instanceof pm||(n=new pm(t));var r=mx(n),i=hx(n,r,!1);return e[1]<e[0]&&(e=e.slice().reverse()),aM(i,n,null,null,e),i}function PH(e){Se(e,Hj)}function FH(e,t){return t||={},Gp(e,null,null,t.state!==`normal`)}var IH=e({MAX_SAFE_INTEGER:()=>xc,asc:()=>pc,getPercentWithPrecision:()=>vc,getPixelPrecision:()=>gc,getPrecision:()=>mc,getPrecisionSafe:()=>hc,isNumeric:()=>Mc,isRadianAroundZero:()=>Cc,linearMap:()=>ac,nice:()=>Oc,numericToNumber:()=>jc,parseDate:()=>Tc,parsePercent:()=>oc,quantile:()=>kc,quantity:()=>Ec,quantityExponent:()=>Dc,reformIntervals:()=>Ac,remRadian:()=>Sc,round:()=>fc}),LH=e({format:()=>g_,parse:()=>Tc,roundTime:()=>y_}),RH=e({Arc:()=>bf,BezierCurve:()=>vf,BoundingRect:()=>X,Circle:()=>Ld,CompoundPath:()=>xf,Ellipse:()=>zd,Group:()=>Fd,Image:()=>vs,IncrementalDisplayable:()=>Ff,Line:()=>mf,LinearGradient:()=>Cf,Polygon:()=>lf,Polyline:()=>df,RadialGradient:()=>wf,Rect:()=>Es,Ring:()=>af,Sector:()=>nf,Text:()=>js,clipPointsByRect:()=>hp,clipRectByRect:()=>gp,createIcon:()=>_p,extendPath:()=>Qf,extendShape:()=>Xf,getShapeClass:()=>ep,getTransform:()=>lp,initProps:()=>Bf,makeImage:()=>np,makePath:()=>tp,mergePath:()=>ip,registerShape:()=>$f,resizePath:()=>ap,updateProps:()=>zf}),zH=e({addCommas:()=>F_,capitalFirst:()=>W_,encodeHTML:()=>Pg,formatTime:()=>U_,formatTpl:()=>V_,getTextRect:()=>P_,getTooltipMarker:()=>H_,normalizeCssArray:()=>L_,toCamelCase:()=>I_,truncateText:()=>er}),BH=e({bind:()=>H,clone:()=>P,curry:()=>Oe,defaults:()=>L,each:()=>z,extend:()=>I,filter:()=>Te,indexOf:()=>R,inherits:()=>xe,isArray:()=>U,isFunction:()=>W,isObject:()=>K,isString:()=>G,map:()=>B,merge:()=>F,reduce:()=>we});function VH(e){var t=cv.extend(e);return cv.registerClass(t),t}function HH(e){var t=sO.extend(e);return sO.registerClass(t),t}function UH(e){var t=dy.extend(e);return dy.registerClass(t),t}function WH(e){var t=ab.extend(e);return ab.registerClass(t),t}var GH=e({Axis:()=>QS,ChartView:()=>ab,ComponentModel:()=>cv,ComponentView:()=>sO,List:()=>Wh,Model:()=>pm,PRIORITY:()=>hA,SeriesModel:()=>dy,color:()=>li,connect:()=>fj,dataTool:()=>Rj,dependencies:()=>Zk,disConnect:()=>mj,disconnect:()=>pj,dispose:()=>hj,env:()=>Y,extendChartView:()=>WH,extendComponentModel:()=>VH,extendComponentView:()=>HH,extendSeriesModel:()=>UH,format:()=>zH,getCoordinateSystemDimensions:()=>Ej,getInstanceByDom:()=>gj,getInstanceById:()=>_j,getMap:()=>Fj,graphic:()=>RH,helper:()=>AH,init:()=>dj,innerDrawElementOnCanvas:()=>Fk,matrix:()=>jt,number:()=>IH,parseGeoJSON:()=>nP,parseGeoJson:()=>nP,registerAction:()=>wj,registerCoordinateSystem:()=>Tj,registerCustomSeries:()=>Dj,registerLayout:()=>Oj,registerLoading:()=>Mj,registerLocale:()=>Ug,registerMap:()=>Pj,registerPostInit:()=>xj,registerPostUpdate:()=>Sj,registerPreprocessor:()=>yj,registerProcessor:()=>bj,registerTheme:()=>vj,registerTransform:()=>Ij,registerUpdateLifecycle:()=>Cj,registerVisual:()=>kj,setCanvasCreator:()=>Nj,setPlatformAPI:()=>ne,throttle:()=>Zw,time:()=>LH,use:()=>Vj,util:()=>BH,vector:()=>Vt,version:()=>Xk,zrUtil:()=>re,zrender:()=>JE}),KH=Math.sin,qH=Math.cos,JH=Math.PI,YH=Math.PI*2,XH=180/JH,ZH=function(){function e(){}return e.prototype.reset=function(e){this._start=!0,this._d=[],this._str=``,this._p=10**(e||4)},e.prototype.moveTo=function(e,t){this._add(`M`,e,t)},e.prototype.lineTo=function(e,t){this._add(`L`,e,t)},e.prototype.bezierCurveTo=function(e,t,n,r,i,a){this._add(`C`,e,t,n,r,i,a)},e.prototype.quadraticCurveTo=function(e,t,n,r){this._add(`Q`,e,t,n,r)},e.prototype.arc=function(e,t,n,r,i,a){this.ellipse(e,t,n,n,0,r,i,a)},e.prototype.ellipse=function(e,t,n,r,i,a,o,s){var c=o-a,l=!s,u=Math.abs(c),d=Hi(u-YH)||(l?c>=YH:-c>=YH),f=c>0?c%YH:c%YH+YH,p=!1;p=d?!0:!Hi(u)&&f>=JH==!!l;var m=e+n*qH(a),h=t+r*KH(a);this._start&&this._add(`M`,m,h);var g=Math.round(i*XH);if(d){var _=1/this._p,v=(l?1:-1)*(YH-_);this._add(`A`,n,r,g,1,+l,e+n*qH(a+v),t+r*KH(a+v)),_>.01&&this._add(`A`,n,r,g,0,+l,m,h)}else{var y=e+n*qH(o),b=t+r*KH(o);this._add(`A`,n,r,g,+p,+l,y,b)}},e.prototype.rect=function(e,t,n,r){this._add(`M`,e,t),this._add(`l`,n,0),this._add(`l`,0,r),this._add(`l`,-n,0),this._add(`Z`)},e.prototype.closePath=function(){this._d.length>0&&this._add(`Z`)},e.prototype._add=function(e,t,n,r,i,a,o,s,c){for(var l=[],u=this._p,d=1;d<arguments.length;d++){var f=arguments[d];if(isNaN(f)){this._invalid=!0;return}l.push(Math.round(f*u)/u)}this._d.push(e+l.join(` `)),this._start=e===`Z`},e.prototype.generateStr=function(){this._str=this._invalid?``:this._d.join(``),this._d=[]},e.prototype.getStr=function(){return this._str},e}(),QH=`none`,$H=Math.round;function eU(e){var t=e.fill;return t!=null&&t!==QH}function tU(e){var t=e.stroke;return t!=null&&t!==QH}var nU=[`lineCap`,`miterLimit`,`lineJoin`],rU=B(nU,function(e){return`stroke-`+e.toLowerCase()});function iU(e,t,n,r){var i=t.opacity==null?1:t.opacity;if(n instanceof vs){e(`opacity`,i);return}if(eU(t)){var a=Bi(t.fill);e(`fill`,a.color);var o=t.fillOpacity==null?a.opacity*i:t.fillOpacity*a.opacity*i;(r||o<1)&&e(`fill-opacity`,o)}else e(`fill`,QH);if(tU(t)){var s=Bi(t.stroke);e(`stroke`,s.color);var c=t.strokeNoScale?n.getLineScale():1,l=c?(t.lineWidth||0)/c:0,u=t.strokeOpacity==null?s.opacity*i:t.strokeOpacity*s.opacity*i,d=t.strokeFirst;if((r||l!==1)&&e(`stroke-width`,l),(r||d)&&e(`paint-order`,d?`stroke`:`fill`),(r||u<1)&&e(`stroke-opacity`,u),t.lineDash){var f=uk(n),p=f[0],m=f[1];p&&(m=$H(m||0),e(`stroke-dasharray`,p.join(`,`)),(m||r)&&e(`stroke-dashoffset`,m))}else r&&e(`stroke-dasharray`,QH);for(var h=0;h<nU.length;h++){var g=nU[h];if(r||t[g]!==ls[g]){var _=t[g]||ls[g];_&&e(rU[h],_)}}}else r&&e(`stroke`,QH)}var aU=`http://www.w3.org/2000/svg`,oU=`http://www.w3.org/1999/xlink`,sU=`http://www.w3.org/2000/xmlns/`,cU=`http://www.w3.org/XML/1998/namespace`,lU=`ecmeta_`;function uU(e){return document.createElementNS(aU,e)}function dU(e,t,n,r,i){return{tag:e,attrs:n||{},children:r,text:i,key:t}}function fU(e,t){var n=[];if(t)for(var r in t){var i=t[r],a=r;i!==!1&&(i!==!0&&i!=null&&(a+=`="`+i+`"`),n.push(a))}return`<`+e+` `+n.join(` `)+`>`}function pU(e){return`</`+e+`>`}function mU(e,t){t||={};var n=t.newline?`
|
|
37
|
+
`:``;function r(e){var t=e.children,i=e.tag,a=e.attrs,o=e.text;return fU(i,a)+(i===`style`?o||``:Pg(o))+(t?``+n+B(t,function(e){return r(e)}).join(n)+n:``)+pU(i)}return r(e)}function hU(e,t,n){n||={};var r=n.newline?`
|
|
38
|
+
`:``,i=` {`+r,a=r+`}`,o=B(V(e),function(t){return t+i+B(V(e[t]),function(n){return n+`:`+e[t][n]+`;`}).join(r)+a}).join(r),s=B(V(t),function(e){return`@keyframes `+e+i+B(V(t[e]),function(n){return n+i+B(V(t[e][n]),function(r){var i=t[e][n][r];return r===`d`&&(i=`path("`+i+`")`),r+`:`+i+`;`}).join(r)+a}).join(r)+a}).join(r);return!o&&!s?``:[`<![CDATA[`,o,s,`]]>`].join(r)}function gU(e){return{zrId:e,shadowCache:{},patternCache:{},gradientCache:{},clipPathCache:{},defs:{},cssNodes:{},cssAnims:{},cssStyleCache:{},cssAnimIdx:0,shadowIdx:0,gradientIdx:0,patternIdx:0,clipPathIdx:0}}function _U(e,t,n,r){return dU(`svg`,`root`,{width:e,height:t,xmlns:aU,"xmlns:xlink":oU,version:`1.1`,baseProfile:`full`,viewBox:r?`0 0 `+e+` `+t:!1},n)}var vU=0;function yU(){return vU++}var bU={cubicIn:`0.32,0,0.67,0`,cubicOut:`0.33,1,0.68,1`,cubicInOut:`0.65,0,0.35,1`,quadraticIn:`0.11,0,0.5,0`,quadraticOut:`0.5,1,0.89,1`,quadraticInOut:`0.45,0,0.55,1`,quarticIn:`0.5,0,0.75,0`,quarticOut:`0.25,1,0.5,1`,quarticInOut:`0.76,0,0.24,1`,quinticIn:`0.64,0,0.78,0`,quinticOut:`0.22,1,0.36,1`,quinticInOut:`0.83,0,0.17,1`,sinusoidalIn:`0.12,0,0.39,0`,sinusoidalOut:`0.61,1,0.88,1`,sinusoidalInOut:`0.37,0,0.63,1`,exponentialIn:`0.7,0,0.84,0`,exponentialOut:`0.16,1,0.3,1`,exponentialInOut:`0.87,0,0.13,1`,circularIn:`0.55,0,1,0.45`,circularOut:`0,0.55,0.45,1`,circularInOut:`0.85,0,0.15,1`},xU=`transform-origin`;function SU(e,t,n){var r=I({},e.shape);I(r,t),e.buildPath(n,r);var i=new ZH;return i.reset(ra(e)),n.rebuildPath(i,1),i.generateStr(),i.getStr()}function CU(e,t){var n=t.originX,r=t.originY;(n||r)&&(e[xU]=n+`px `+r+`px`)}var wU={fill:`fill`,opacity:`opacity`,lineWidth:`stroke-width`,lineDashOffset:`stroke-dashoffset`};function TU(e,t){var n=t.zrId+`-ani-`+t.cssAnimIdx++;return t.cssAnims[n]=e,n}function EU(e,t,n){var r=e.shape.paths,i={},a,o;if(z(r,function(e){var t=gU(n.zrId);t.animation=!0,OU(e,{},t,!0);var r=t.cssAnims,s=t.cssNodes,c=V(r),l=c.length;if(l){o=c[l-1];var u=r[o];for(var d in u){var f=u[d];i[d]=i[d]||{d:``},i[d].d+=f.d||``}for(var p in s){var m=s[p].animation;m.indexOf(o)>=0&&(a=m)}}}),a){t.d=!1;var s=TU(i,n);return a.replace(o,s)}}function DU(e){return G(e)?bU[e]?`cubic-bezier(`+bU[e]+`)`:si(e)?e:``:``}function OU(e,t,n,r){var i=e.animators,a=i.length,o=[];if(e instanceof xf){var s=EU(e,t,n);if(s)o.push(s);else if(!a)return}else if(!a)return;for(var c={},l=0;l<a;l++){var u=i[l],d=[u.getMaxTime()/1e3+`s`],f=DU(u.getClip().easing),p=u.getDelay();f?d.push(f):d.push(`linear`),p&&d.push(p/1e3+`s`),u.getLoop()&&d.push(`infinite`);var m=d.join(` `);c[m]=c[m]||[m,[]],c[m][1].push(u)}function h(i){var a=i[1],o=a.length,s={},c={},l={},u=`animation-timing-function`;function d(e,t,n){for(var r=e.getTracks(),i=e.getMaxTime(),a=0;a<r.length;a++){var o=r[a];if(o.needsAnimate()){var s=o.keyframes,c=o.propName;if(n&&(c=n(c)),c)for(var l=0;l<s.length;l++){var d=s[l],f=Math.round(d.time/i*100)+`%`,p=DU(d.easing),m=d.rawValue;(G(m)||Ae(m))&&(t[f]=t[f]||{},t[f][c]=d.rawValue,p&&(t[f][u]=p))}}}}for(var f=0;f<o;f++){var p=a[f],m=p.targetName;m?m===`shape`&&d(p,c):!r&&d(p,s)}for(var h in s){var g={};Nr(g,e),I(g,s[h]);var _=ia(g),v=s[h][u];l[h]=_?{transform:_}:{},CU(l[h],g),v&&(l[h][u]=v)}var y,b=!0;for(var h in c){l[h]=l[h]||{};var x=!y,v=c[h][u];x&&(y=new Vo);var S=y.len();y.reset(),l[h].d=SU(e,c[h],y);var C=y.len();if(!x&&S!==C){b=!1;break}v&&(l[h][u]=v)}if(!b)for(var h in l)delete l[h].d;if(!r)for(var f=0;f<o;f++){var p=a[f],m=p.targetName;m===`style`&&d(p,l,function(e){return wU[e]})}for(var w=V(l),T=!0,E,f=1;f<w.length;f++){var D=w[f-1],O=w[f];if(l[D][xU]!==l[O][xU]){T=!1;break}E=l[D][xU]}if(T&&E){for(var h in l)l[h][xU]&&delete l[h][xU];t[xU]=E}if(Te(w,function(e){return V(l[e]).length>0}).length)return TU(l,n)+` `+i[0]+` both`}for(var g in c){var s=h(c[g]);s&&o.push(s)}if(o.length){var _=n.zrId+`-cls-`+yU();n.cssNodes[`.`+_]={animation:o.join(`,`)},t.class=_}}function kU(e,t,n){if(!e.ignore){if(e.isSilent()){var r={"pointer-events":`none`};AU(r,t,n,!0)}else{var i=e.states.emphasis&&e.states.emphasis.style?e.states.emphasis.style:{},a=i.fill;if(!a){var o=e.style&&e.style.fill,s=e.states.select&&e.states.select.style&&e.states.select.style.fill,c=e.currentStates.indexOf(`select`)>=0&&s||o;c&&(a=Ri(c))}var l=i.lineWidth;if(l){var u=!i.strokeNoScale&&e.transform?e.transform[0]:1;l/=u}var r={cursor:`pointer`};a&&(r.fill=a),i.stroke&&(r.stroke=i.stroke),l&&(r[`stroke-width`]=l),AU(r,t,n,!0)}}}function AU(e,t,n,r){var i=JSON.stringify(e),a=n.cssStyleCache[i];a||(a=n.zrId+`-cls-`+yU(),n.cssStyleCache[i]=a,n.cssNodes[`.`+a+(r?`:hover`:``)]=e),t.class=t.class?t.class+` `+a:a}var jU=Math.round;function MU(e){return e&&G(e.src)}function NU(e){return e&&W(e.toDataURL)}function PU(e,t,n,r){iU(function(i,a){var o=i===`fill`||i===`stroke`;o&&ta(a)?YU(t,e,i,r):o&&Qi(a)?XU(n,e,i,r):e[i]=a,o&&r.ssr&&a===`none`&&(e[`pointer-events`]=`visible`)},t,n,!1),JU(n,e,r)}function FU(e,t){var n=oD(t);n&&(n.each(function(t,n){t!=null&&(e[(`ecmeta_`+n).toLowerCase()]=t+``)}),t.isSilent()&&(e[lU+`silent`]=`true`))}function IU(e){return Hi(e[0]-1)&&Hi(e[1])&&Hi(e[2])&&Hi(e[3]-1)}function LU(e){return Hi(e[4])&&Hi(e[5])}function RU(e,t,n){if(t&&!(LU(t)&&IU(t))){var r=n?10:1e4;e.transform=IU(t)?`translate(`+jU(t[4]*r)/r+` `+jU(t[5]*r)/r+`)`:Gi(t)}}function zU(e,t,n){for(var r=e.points,i=[],a=0;a<r.length;a++)i.push(jU(r[a][0]*n)/n),i.push(jU(r[a][1]*n)/n);t.points=i.join(` `)}function BU(e){return!e.smooth}function VU(e){var t=B(e,function(e){return typeof e==`string`?[e,e]:e});return function(e,n,r){for(var i=0;i<t.length;i++){var a=t[i],o=e[a[0]];o!=null&&(n[a[1]]=jU(o*r)/r)}}}var HU={circle:[VU([`cx`,`cy`,`r`])],polyline:[zU,BU],polygon:[zU,BU]};function UU(e){for(var t=e.animators,n=0;n<t.length;n++)if(t[n].targetName===`shape`)return!0;return!1}function WU(e,t){var n=e.style,r=e.shape,i=HU[e.type],a={},o=t.animation,s=`path`,c=e.style.strokePercent,l=t.compress&&ra(e)||4;if(i&&!t.willUpdate&&(!i[1]||i[1](r))&&!(o&&UU(e))&&!(c<1)){s=e.type;var u=10**l;i[0](r,a,u)}else{var d=!e.path||e.shapeChanged();e.path||e.createPathProxy();var f=e.path;d&&(f.beginPath(),e.buildPath(f,e.shape),e.pathUpdated());var p=f.getVersion(),m=e,h=m.__svgPathBuilder;(m.__svgPathVersion!==p||!h||c!==m.__svgPathStrokePercent)&&(h||=m.__svgPathBuilder=new ZH,h.reset(l),f.rebuildPath(h,c),h.generateStr(),m.__svgPathVersion=p,m.__svgPathStrokePercent=c),a.d=h.getStr()}return RU(a,e.transform),PU(a,n,e,t),FU(a,e),t.animation&&OU(e,a,t),t.emphasis&&kU(e,a,t),dU(s,e.id+``,a)}function GU(e,t){var n=e.style,r=n.image;if(r&&!G(r)&&(MU(r)?r=r.src:NU(r)&&(r=r.toDataURL())),r){var i=n.x||0,a=n.y||0,o=n.width,s=n.height,c={href:r,width:o,height:s};return i&&(c.x=i),a&&(c.y=a),RU(c,e.transform),PU(c,n,e,t),FU(c,e),t.animation&&OU(e,c,t),dU(`image`,e.id+``,c)}}function KU(e,t){var n=e.style,r=n.text;if(r!=null&&(r+=``),!(!r||isNaN(n.x)||isNaN(n.y))){var i=n.font||`12px sans-serif`,a=n.x||0,o=qi(n.y||0,Xn(i),n.textBaseline),s={"dominant-baseline":`central`,"text-anchor":Ki[n.textAlign]||n.textAlign};if(Ls(n)){var c=``,l=n.fontStyle,u=Fs(n.fontSize);if(!parseFloat(u))return;var d=n.fontFamily||`sans-serif`,f=n.fontWeight;c+=`font-size:`+u+`;font-family:`+d+`;`,l&&l!==`normal`&&(c+=`font-style:`+l+`;`),f&&f!==`normal`&&(c+=`font-weight:`+f+`;`),s.style=c}else s.style=`font: `+i;return r.match(/\s/)&&(s[`xml:space`]=`preserve`),a&&(s.x=a),o&&(s.y=o),RU(s,e.transform),PU(s,n,e,t),FU(s,e),t.animation&&OU(e,s,t),dU(`text`,e.id+``,s,void 0,r)}}function qU(e,t){if(e instanceof fs)return WU(e,t);if(e instanceof vs)return GU(e,t);if(e instanceof ms)return KU(e,t)}function JU(e,t,n){var r=e.style;if(Ji(r)){var i=Yi(e),a=n.shadowCache,o=a[i];if(!o){var s=e.getGlobalScale(),c=s[0],l=s[1];if(!c||!l)return;var u=r.shadowOffsetX||0,d=r.shadowOffsetY||0,f=r.shadowBlur,p=Bi(r.shadowColor),m=p.opacity,h=p.color,g=f/2/c,_=f/2/l,v=g+` `+_;o=n.zrId+`-s`+n.shadowIdx++,n.defs[o]=dU(`filter`,o,{id:o,x:`-100%`,y:`-100%`,width:`300%`,height:`300%`},[dU(`feDropShadow`,``,{dx:u/c,dy:d/l,stdDeviation:v,"flood-color":h,"flood-opacity":m})]),a[i]=o}t.filter=na(o)}}function YU(e,t,n,r){var i=e[n],a,o={gradientUnits:i.global?`userSpaceOnUse`:`objectBoundingBox`};if($i(i))a=`linearGradient`,o.x1=i.x,o.y1=i.y,o.x2=i.x2,o.y2=i.y2;else if(ea(i))a=`radialGradient`,o.cx=q(i.x,.5),o.cy=q(i.y,.5),o.r=q(i.r,.5);else return;for(var s=i.colorStops,c=[],l=0,u=s.length;l<u;++l){var d=Wi(s[l].offset)*100+`%`,f=s[l].color,p=Bi(f),m=p.color,h=p.opacity,g={offset:d};g[`stop-color`]=m,h<1&&(g[`stop-opacity`]=h),c.push(dU(`stop`,l+``,g))}var _=mU(dU(a,``,o,c)),v=r.gradientCache,y=v[_];y||(y=r.zrId+`-g`+r.gradientIdx++,v[_]=y,o.id=y,r.defs[y]=dU(a,y,o,c)),t[n]=na(y)}function XU(e,t,n,r){var i=e.style[n],a=e.getBoundingRect(),o={},s=i.repeat,c=s===`no-repeat`,l=s===`repeat-x`,u=s===`repeat-y`,d;if(Xi(i)){var f=i.imageWidth,p=i.imageHeight,m=void 0,h=i.image;if(G(h)?m=h:MU(h)?m=h.src:NU(h)&&(m=h.toDataURL()),typeof Image>`u`){var g=`Image width/height must been given explictly in svg-ssr renderer.`;He(f,g),He(p,g)}else if(f==null||p==null){var _=function(e,t){if(e){var n=e.elm,r=f||t.width,i=p||t.height;e.tag===`pattern`&&(l?(i=1,r/=a.width):u&&(r=1,i/=a.height)),e.attrs.width=r,e.attrs.height=i,n&&(n.setAttribute(`width`,r),n.setAttribute(`height`,i))}},v=Ot(m,null,e,function(e){c||_(S,e),_(d,e)});v&&v.width&&v.height&&(f||=v.width,p||=v.height)}d=dU(`image`,`img`,{href:m,width:f,height:p}),o.width=f,o.height=p}else i.svgElement&&(d=P(i.svgElement),o.width=i.svgWidth,o.height=i.svgHeight);if(d){var y,b;c?y=b=1:l?(b=1,y=o.width/a.width):u?(y=1,b=o.height/a.height):o.patternUnits=`userSpaceOnUse`,y!=null&&!isNaN(y)&&(o.width=y),b!=null&&!isNaN(b)&&(o.height=b);var x=ia(i);x&&(o.patternTransform=x);var S=dU(`pattern`,``,o,[d]),C=mU(S),w=r.patternCache,T=w[C];T||(T=r.zrId+`-p`+r.patternIdx++,w[C]=T,o.id=T,S=r.defs[T]=dU(`pattern`,T,o,[d])),t[n]=na(T)}}function ZU(e,t,n){var r=n.clipPathCache,i=n.defs,a=r[e.id];if(!a){a=n.zrId+`-c`+n.clipPathIdx++;var o={id:a};r[e.id]=a,i[a]=dU(`clipPath`,a,o,[WU(e,n)])}t[`clip-path`]=na(a)}function QU(e){return document.createTextNode(e)}function $U(e,t,n){e.insertBefore(t,n)}function eW(e,t){e.removeChild(t)}function tW(e,t){e.appendChild(t)}function nW(e){return e.parentNode}function rW(e){return e.nextSibling}function iW(e,t){e.textContent=t}var aW=58,oW=120,sW=dU(``,``);function cW(e){return e===void 0}function lW(e){return e!==void 0}function uW(e,t,n){for(var r={},i=t;i<=n;++i){var a=e[i].key;a!==void 0&&(r[a]=i)}return r}function dW(e,t){var n=e.key===t.key;return e.tag===t.tag&&n}function fW(e){var t,n=e.children,r=e.tag;if(lW(r)){var i=e.elm=uU(r);if(hW(sW,e),U(n))for(t=0;t<n.length;++t){var a=n[t];a!=null&&tW(i,fW(a))}else lW(e.text)&&!K(e.text)&&tW(i,QU(e.text))}else e.elm=QU(e.text);return e.elm}function pW(e,t,n,r,i){for(;r<=i;++r){var a=n[r];a!=null&&$U(e,fW(a),t)}}function mW(e,t,n,r){for(;n<=r;++n){var i=t[n];i!=null&&(lW(i.tag)?eW(nW(i.elm),i.elm):eW(e,i.elm))}}function hW(e,t){var n,r=t.elm,i=e&&e.attrs||{},a=t.attrs||{};if(i!==a){for(n in a){var o=a[n];i[n]!==o&&(o===!0?r.setAttribute(n,``):o===!1?r.removeAttribute(n):n===`style`?r.style.cssText=o:n.charCodeAt(0)===oW?n===`xmlns:xlink`||n===`xmlns`?r.setAttributeNS(sU,n,o):n.charCodeAt(3)===aW?r.setAttributeNS(cU,n,o):n.charCodeAt(5)===aW?r.setAttributeNS(oU,n,o):r.setAttribute(n,o):r.setAttribute(n,o))}for(n in i)n in a||r.removeAttribute(n)}}function gW(e,t,n){for(var r=0,i=0,a=t.length-1,o=t[0],s=t[a],c=n.length-1,l=n[0],u=n[c],d,f,p,m;r<=a&&i<=c;)o==null?o=t[++r]:s==null?s=t[--a]:l==null?l=n[++i]:u==null?u=n[--c]:dW(o,l)?(_W(o,l),o=t[++r],l=n[++i]):dW(s,u)?(_W(s,u),s=t[--a],u=n[--c]):dW(o,u)?(_W(o,u),$U(e,o.elm,rW(s.elm)),o=t[++r],u=n[--c]):dW(s,l)?(_W(s,l),$U(e,s.elm,o.elm),s=t[--a],l=n[++i]):(cW(d)&&(d=uW(t,r,a)),f=d[l.key],cW(f)?$U(e,fW(l),o.elm):(p=t[f],p.tag===l.tag?(_W(p,l),t[f]=void 0,$U(e,p.elm,o.elm)):$U(e,fW(l),o.elm)),l=n[++i]);(r<=a||i<=c)&&(r>a?(m=n[c+1]==null?null:n[c+1].elm,pW(e,m,n,i,c)):mW(e,t,r,a))}function _W(e,t){var n=t.elm=e.elm,r=e.children,i=t.children;e!==t&&(hW(e,t),cW(t.text)?lW(r)&&lW(i)?r!==i&&gW(n,r,i):lW(i)?(lW(e.text)&&iW(n,``),pW(n,null,i,0,i.length-1)):lW(r)?mW(n,r,0,r.length-1):lW(e.text)&&iW(n,``):e.text!==t.text&&(lW(r)&&mW(n,r,0,r.length-1),iW(n,t.text)))}function vW(e,t){if(dW(e,t))_W(e,t);else{var n=e.elm,r=nW(n);fW(t),r!==null&&($U(r,t.elm,rW(n)),mW(r,[e],0,0))}return t}var yW=0,bW=function(){function e(e,t,n){if(this.type=`svg`,this.configLayer=xW(`configLayer`),this.storage=t,this._opts=n=I({},n),this.root=e,this._id=`zr`+yW++,this._oldVNode=_U(n.width,n.height),e&&!n.ssr){var r=this._viewport=document.createElement(`div`);r.style.cssText=`position:relative;overflow:hidden`;var i=this._svgDom=this._oldVNode.elm=uU(`svg`);hW(null,this._oldVNode),r.appendChild(i),e.appendChild(r)}this.resize(n.width,n.height)}return e.prototype.getType=function(){return this.type},e.prototype.getViewportRoot=function(){return this._viewport},e.prototype.getViewportRootOffset=function(){var e=this.getViewportRoot();if(e)return{offsetLeft:e.offsetLeft||0,offsetTop:e.offsetTop||0}},e.prototype.getSvgDom=function(){return this._svgDom},e.prototype.refresh=function(){if(this.root){var e=this.renderToVNode({willUpdate:!0});e.attrs.style=`position:absolute;left:0;top:0;user-select:none`,vW(this._oldVNode,e),this._oldVNode=e}},e.prototype.renderOneToVNode=function(e){return qU(e,gU(this._id))},e.prototype.renderToVNode=function(e){e||={};var t=this.storage.getDisplayList(!0),n=this._width,r=this._height,i=gU(this._id);i.animation=e.animation,i.willUpdate=e.willUpdate,i.compress=e.compress,i.emphasis=e.emphasis,i.ssr=this._opts.ssr;var a=[],o=this._bgVNode=SW(n,r,this._backgroundColor,i);o&&a.push(o);var s=e.compress?null:this._mainVNode=dU(`g`,`main`,{},[]);this._paintList(t,i,s?s.children:a),s&&a.push(s);var c=B(V(i.defs),function(e){return i.defs[e]});if(c.length&&a.push(dU(`defs`,`defs`,{},c)),e.animation){var l=hU(i.cssNodes,i.cssAnims,{newline:!0});if(l){var u=dU(`style`,`stl`,{},[],l);a.push(u)}}return _U(n,r,a,e.useViewBox)},e.prototype.renderToString=function(e){return e||={},mU(this.renderToVNode({animation:q(e.cssAnimation,!0),emphasis:q(e.cssEmphasis,!0),willUpdate:!1,compress:!0,useViewBox:q(e.useViewBox,!0)}),{newline:!0})},e.prototype.setBackgroundColor=function(e){this._backgroundColor=e},e.prototype.getSvgRoot=function(){return this._mainVNode&&this._mainVNode.elm},e.prototype._paintList=function(e,t,n){for(var r=e.length,i=[],a=0,o,s,c=0,l=0;l<r;l++){var u=e[l];if(!u.invisible){var d=u.__clipPaths,f=d&&d.length||0,p=s&&s.length||0,m=void 0;for(m=Math.max(f-1,p-1);m>=0&&!(d&&s&&d[m]===s[m]);m--);for(var h=p-1;h>m;h--)a--,o=i[a-1];for(var g=m+1;g<f;g++){var _={};ZU(d[g],_,t);var v=dU(`g`,`clip-g-`+c++,_,[]);(o?o.children:n).push(v),i[a++]=v,o=v}s=d;var y=qU(u,t);y&&(o?o.children:n).push(y)}}},e.prototype.resize=function(e,t){var n=this._opts,r=this.root,i=this._viewport;if(e!=null&&(n.width=e),t!=null&&(n.height=t),r&&i&&(i.style.display=`none`,e=ck(r,0,n),t=ck(r,1,n),i.style.display=``),this._width!==e||this._height!==t){if(this._width=e,this._height=t,i){var a=i.style;a.width=e+`px`,a.height=t+`px`}if(Qi(this._backgroundColor))this.refresh();else{var o=this._svgDom;o&&(o.setAttribute(`width`,e),o.setAttribute(`height`,t));var s=this._bgVNode&&this._bgVNode.elm;s&&(s.setAttribute(`width`,e),s.setAttribute(`height`,t))}}},e.prototype.getWidth=function(){return this._width},e.prototype.getHeight=function(){return this._height},e.prototype.dispose=function(){this.root&&(this.root.innerHTML=``),this._svgDom=this._viewport=this.storage=this._oldVNode=this._bgVNode=this._mainVNode=null},e.prototype.clear=function(){this._svgDom&&(this._svgDom.innerHTML=null),this._oldVNode=null},e.prototype.toDataURL=function(e){var t=this.renderToString(),n=`data:image/svg+xml;`;return e?(t=aa(t),t&&n+`base64,`+t):n+`charset=UTF-8,`+encodeURIComponent(t)},e}();function xW(e){return function(){}}function SW(e,t,n,r){var i;if(n&&n!==`none`){if(i=dU(`rect`,`bg`,{width:e,height:t,x:`0`,y:`0`}),ta(n))YU({fill:n},i.attrs,`fill`,r);else if(Qi(n))XU({style:{fill:n},dirty:tt,getBoundingRect:function(){return{width:e,height:t}}},i.attrs,`fill`,r);else{var a=Bi(n),o=a.color,s=a.opacity;i.attrs.fill=o,s<1&&(i.attrs[`fill-opacity`]=s)}}return i}function CW(e){e.registerPainter(`svg`,bW)}Vj([$x,MT,XF,DR,AB,SH,kH,NV,oV,Qz,CW]);function wW(e){return e?[...e.querySelectorAll(`[_echarts_instance_]`)].map(e=>gj(e)).filter(e=>e!==void 0&&!e.isDisposed()):[]}function TW(e){let t=(0,S.useRef)(null),n=_();return(0,S.useEffect)(()=>{let e=t.current;if(!e||typeof ResizeObserver>`u`)return;let n,r=-1,i=new ResizeObserver(t=>{let i=t[0]?.contentRect.width??0;i!==r&&(r=i,clearTimeout(n),n=setTimeout(()=>{for(let t of wW(e))t.resize()},50))});return i.observe(e),()=>{clearTimeout(n),i.disconnect()}},[]),(0,S.useEffect)(()=>{for(let r of wW(t.current))e&&r.setOption(e,{lazyUpdate:!0}),n&&r.setOption({animation:!1})}),t}var $=a(),EW=e=>e+new Date(e).getTimezoneOffset()*6e4,DW=e=>e-new Date(e).getTimezoneOffset()*6e4,OW={xAxis:{axisLabel:{hideOverlap:!0}}};function kW({series:e,granularity:t,locale:r,labels:i,type:a=`line`,height:o=280,incompleteAfter:c,compact:f=!1,loading:p=!1,now:m,className:_}){let C=(0,S.useMemo)(()=>d(r),[r]),w=y(),[T,E]=(0,S.useState)(`chart`),D=TW(OW),O=(0,S.useId)(),k=(0,S.useMemo)(()=>e.map((e,t)=>({name:e.name,color:w.series[t%w.series.length],data:e.points.map(([e,t])=>[EW(e),t])})),[e,w]),A=c===null?void 0:c??b(t,m),j=(0,S.useMemo)(()=>{let t=new Set;for(let n of e)for(let[e]of n.points)t.add(e);return[...t].sort((e,t)=>e-t)},[e]);return(0,$.jsxs)(`div`,{ref:D,className:n(`grid min-w-0 grid-cols-1 gap-3`,_),"data-testid":`analytics-timeseries`,children:[(0,$.jsxs)(`div`,{className:n(`flex min-w-0 flex-wrap items-center gap-x-4 gap-y-2`,f?`justify-end`:`justify-between`),children:[f?null:(0,$.jsx)(`div`,{className:`flex min-w-0 flex-wrap items-center gap-x-4 gap-y-1`,children:p?e.map(e=>(0,$.jsx)(v.SmallItem,{loading:!0},e.id)):e.map((e,t)=>(0,$.jsx)(v.SmallItem,{name:e.name,color:w.series[t%w.series.length],value:C.number(e.total??e.points.reduce((e,[,t])=>e+t,0))},e.id))}),(0,$.jsx)(s,{variant:`ghost`,size:`xs`,icon:T===`chart`?(0,$.jsx)(u,{size:14}):(0,$.jsx)(x,{size:14}),"aria-expanded":T===`table`,"aria-controls":O,disabled:p,onClick:()=>E(e=>e===`chart`?`table`:`chart`),children:T===`chart`?i.showTable:i.showChart})]}),T===`chart`&&p?(0,$.jsx)(`span`,{role:`status`,className:`sr-only`,children:i.loading}):null,T===`chart`?(0,$.jsx)(`div`,{"aria-hidden":p||void 0,className:`min-w-0`,children:(0,$.jsx)(g,{echarts:GH,type:a,data:k,gradient:a===`line`,height:o,isDarkMode:w.isDarkMode,loading:p,yAxisMinInterval:1,...f?{yAxisTickCount:2,xAxisTickCount:3}:{},xAxisTickFormat:e=>C.tick(DW(e),t),yAxisTickFormat:e=>C.compact(e),tooltipValueFormat:e=>C.number(e),tooltipTimestampFormat:e=>C.bucket(DW(e),t),tooltipFooter:i.timezone,tooltipFollowCursor:`x`,...A===void 0?{}:{incomplete:{after:EW(A)}},ariaDescription:i.description})}):null,(0,$.jsx)(`section`,{id:O,hidden:T!==`table`,"aria-label":i.description,tabIndex:T===`table`?0:-1,className:`max-h-80 min-w-0 overflow-auto rounded-lg ring ring-kumo-hairline`,children:T===`table`&&(0,$.jsxs)(h,{children:[(0,$.jsx)(`caption`,{className:`sr-only`,children:i.description}),(0,$.jsx)(h.Header,{children:(0,$.jsxs)(h.Row,{children:[(0,$.jsx)(h.Head,{children:i.time}),e.map(e=>(0,$.jsx)(h.Head,{className:`text-end whitespace-nowrap`,children:e.name},e.id))]})}),(0,$.jsx)(h.Body,{children:j.map(n=>(0,$.jsxs)(h.Row,{children:[(0,$.jsx)(h.Cell,{className:`whitespace-nowrap`,children:(0,$.jsx)(l,{as:`span`,children:C.bucket(n,t)})}),e.map(e=>{let t=e.points.find(([e])=>e===n)?.[1];return(0,$.jsx)(h.Cell,{className:`text-end whitespace-nowrap tabular-nums`,children:t===void 0?`—`:C.number(t)},e.id)})]},n))})]})}),T===`table`&&(0,$.jsx)(l,{variant:`secondary`,size:`xs`,children:i.timezone})]})}function AW({locale:e,labels:t,pageviews:n,visits:r,series:i,channels:a,redirects:s,href:u,loading:d=!1,empty:h}){if(h!=null&&h!==!1)return(0,$.jsx)($.Fragment,{children:h});let g=a.reduce((e,t)=>e+t.value,0);return(0,$.jsxs)(`div`,{className:`grid min-w-0 gap-5`,"data-testid":`readers-summary`,children:[(0,$.jsxs)(f,{label:t.figures,density:`compact`,children:[(0,$.jsx)(m,{label:t.pageviews,value:n.value,previous:n.previous??null,locale:e,loading:d,...t.describeDelta?{describeDelta:t.describeDelta}:{}}),(0,$.jsx)(m,{label:t.visits,value:r.value,previous:r.previous??null,locale:e,loading:d,...t.describeDelta?{describeDelta:t.describeDelta}:{}})]}),(0,$.jsx)(kW,{series:[{id:`pageviews`,name:t.pageviews,points:i}],granularity:`day`,type:`bar`,height:120,compact:!0,locale:e,labels:t.chart,loading:d}),(0,$.jsx)(p,{rows:a,locale:e,limit:3,total:g,showOther:!1,otherLabel:t.other,label:t.channels,loading:d}),s&&!d&&(0,$.jsxs)(`div`,{className:`flex min-w-0 items-start gap-2`,children:[(0,$.jsx)(`span`,{className:`flex h-lh shrink-0 items-center text-kumo-subtle`,"aria-hidden":!0,children:(0,$.jsx)(c,{icon:T,size:16})}),(0,$.jsx)(l,{variant:`secondary`,size:`sm`,children:s})]}),(0,$.jsx)(`div`,{className:`flex justify-start`,children:(0,$.jsx)(o,{variant:`ghost`,size:`sm`,href:u,icon:(0,$.jsx)(x,{size:16}),children:t.open})})]})}var jW=e({AnalyticsTimeseries:()=>kW,ReadersSummary:()=>AW});export{GH as i,kW as n,TW as r,jW as t};
|
|
39
|
+
//# sourceMappingURL=charts-DL9SbRU8.js.map
|