diff --git a/404.html b/404.html index fccb89c..74078c4 100644 --- a/404.html +++ b/404.html @@ -3,11 +3,11 @@ -找不到页面 | ol-echarts Documentation - - +找不到页面 | ol-echarts Documentation + + -
跳到主要内容

找不到页面

我们找不到您要找的页面。

请联系原始链接来源网站的所有者,并告知他们链接已损坏。

+
跳到主要内容

找不到页面

我们找不到您要找的页面。

请联系原始链接来源网站的所有者,并告知他们链接已损坏。

\ No newline at end of file diff --git a/assets/css/styles.8c9c519d.css b/assets/css/styles.b60971d3.css similarity index 55% rename from assets/css/styles.8c9c519d.css rename to assets/css/styles.b60971d3.css index 68b6b33..c4b67f8 100644 --- a/assets/css/styles.8c9c519d.css +++ b/assets/css/styles.b60971d3.css @@ -1 +1 @@ -.col,.container{padding:0 var(--ifm-spacing-horizontal)}.markdown>h2,.markdown>h3,.markdown>h4,.markdown>h5,.markdown>h6{margin-bottom:calc(var(--ifm-heading-vertical-rhythm-bottom)*var(--ifm-leading))}a,a code{color:inherit}blockquote,pre{margin:0 0 var(--ifm-spacing-vertical)}.breadcrumbs__link,.button{transition-timing-function:var(--ifm-transition-timing-default)}.button--outline.button--active,.button--outline:active,.button--outline:hover,:root{--ifm-button-color:var(--ifm-font-color-base-inverse)}.avatar__photo,.card,.text--truncate{overflow:hidden}.menu__link:hover,a{transition:color var(--ifm-transition-fast) var(--ifm-transition-timing-default)}.navbar--dark,:root{--ifm-navbar-link-hover-color:var(--ifm-color-primary)}.menu,.navbar-sidebar{overflow-x:hidden}:root,html[data-theme=dark]{--ifm-color-emphasis-500:var(--ifm-color-gray-500)}.markdown li,body{word-wrap:break-word}pre,table{overflow:auto}progress,sub,sup{vertical-align:initial}.button,code{vertical-align:middle}.DocSearch-Hit-content-wrapper,.navbar__link,.text--truncate{text-overflow:ellipsis;white-space:nowrap}*,.DocSearch-Container,.DocSearch-Container *,.ol-box,.ol-scale-singlebar,:after,:before{box-sizing:border-box}.ol-unselectable,.ol-viewport,.toggleButton_pU7A,html{-webkit-tap-highlight-color:transparent}:root{--ifm-color-scheme:light;--ifm-dark-value:10%;--ifm-darker-value:15%;--ifm-darkest-value:30%;--ifm-light-value:15%;--ifm-lighter-value:30%;--ifm-lightest-value:50%;--ifm-contrast-background-value:90%;--ifm-contrast-foreground-value:70%;--ifm-contrast-background-dark-value:70%;--ifm-contrast-foreground-dark-value:90%;--ifm-color-primary:#3578e5;--ifm-color-secondary:#ebedf0;--ifm-color-success:#00a400;--ifm-color-info:#54c7ec;--ifm-color-warning:#ffba00;--ifm-color-danger:#fa383e;--ifm-color-primary-dark:#306cce;--ifm-color-primary-darker:#2d66c3;--ifm-color-primary-darkest:#2554a0;--ifm-color-primary-light:#538ce9;--ifm-color-primary-lighter:#72a1ed;--ifm-color-primary-lightest:#9abcf2;--ifm-color-primary-contrast-background:#ebf2fc;--ifm-color-primary-contrast-foreground:#102445;--ifm-color-secondary-dark:#d4d5d8;--ifm-color-secondary-darker:#c8c9cc;--ifm-color-secondary-darkest:#a4a6a8;--ifm-color-secondary-light:#eef0f2;--ifm-color-secondary-lighter:#f1f2f5;--ifm-color-secondary-lightest:#f5f6f8;--ifm-color-secondary-contrast-background:#fdfdfe;--ifm-color-secondary-contrast-foreground:#474748;--ifm-color-success-dark:#009400;--ifm-color-success-darker:#008b00;--ifm-color-success-darkest:#007300;--ifm-color-success-light:#26b226;--ifm-color-success-lighter:#4dbf4d;--ifm-color-success-lightest:#80d280;--ifm-color-success-contrast-background:#e6f6e6;--ifm-color-success-contrast-foreground:#003100;--ifm-color-info-dark:#4cb3d4;--ifm-color-info-darker:#47a9c9;--ifm-color-info-darkest:#3b8ba5;--ifm-color-info-light:#6ecfef;--ifm-color-info-lighter:#87d8f2;--ifm-color-info-lightest:#aae3f6;--ifm-color-info-contrast-background:#eef9fd;--ifm-color-info-contrast-foreground:#193c47;--ifm-color-warning-dark:#e6a700;--ifm-color-warning-darker:#d99e00;--ifm-color-warning-darkest:#b38200;--ifm-color-warning-light:#ffc426;--ifm-color-warning-lighter:#ffcf4d;--ifm-color-warning-lightest:#ffdd80;--ifm-color-warning-contrast-background:#fff8e6;--ifm-color-warning-contrast-foreground:#4d3800;--ifm-color-danger-dark:#e13238;--ifm-color-danger-darker:#d53035;--ifm-color-danger-darkest:#af272b;--ifm-color-danger-light:#fb565b;--ifm-color-danger-lighter:#fb7478;--ifm-color-danger-lightest:#fd9c9f;--ifm-color-danger-contrast-background:#ffebec;--ifm-color-danger-contrast-foreground:#4b1113;--ifm-color-white:#fff;--ifm-color-black:#000;--ifm-color-gray-0:var(--ifm-color-white);--ifm-color-gray-100:#f5f6f7;--ifm-color-gray-200:#ebedf0;--ifm-color-gray-300:#dadde1;--ifm-color-gray-400:#ccd0d5;--ifm-color-gray-500:#bec3c9;--ifm-color-gray-600:#8d949e;--ifm-color-gray-700:#606770;--ifm-color-gray-800:#444950;--ifm-color-gray-900:#1c1e21;--ifm-color-gray-1000:var(--ifm-color-black);--ifm-color-emphasis-0:var(--ifm-color-gray-0);--ifm-color-emphasis-100:var(--ifm-color-gray-100);--ifm-color-emphasis-200:var(--ifm-color-gray-200);--ifm-color-emphasis-300:var(--ifm-color-gray-300);--ifm-color-emphasis-400:var(--ifm-color-gray-400);--ifm-color-emphasis-600:var(--ifm-color-gray-600);--ifm-color-emphasis-700:var(--ifm-color-gray-700);--ifm-color-emphasis-800:var(--ifm-color-gray-800);--ifm-color-emphasis-900:var(--ifm-color-gray-900);--ifm-color-emphasis-1000:var(--ifm-color-gray-1000);--ifm-color-content:var(--ifm-color-emphasis-900);--ifm-color-content-inverse:var(--ifm-color-emphasis-0);--ifm-color-content-secondary:#525860;--ifm-background-color:#0000;--ifm-background-surface-color:var(--ifm-color-content-inverse);--ifm-global-border-width:1px;--ifm-global-radius:0.4rem;--ifm-hover-overlay:#0000000d;--ifm-font-color-base:var(--ifm-color-content);--ifm-font-color-base-inverse:var(--ifm-color-content-inverse);--ifm-font-color-secondary:var(--ifm-color-content-secondary);--ifm-font-family-base:system-ui,-apple-system,Segoe UI,Roboto,Ubuntu,Cantarell,Noto Sans,sans-serif,BlinkMacSystemFont,"Segoe UI",Helvetica,Arial,sans-serif,"Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol";--ifm-font-family-monospace:SFMono-Regular,Menlo,Monaco,Consolas,"Liberation Mono","Courier New",monospace;--ifm-font-size-base:100%;--ifm-font-weight-light:300;--ifm-font-weight-normal:400;--ifm-font-weight-semibold:500;--ifm-font-weight-bold:700;--ifm-font-weight-base:var(--ifm-font-weight-normal);--ifm-line-height-base:1.65;--ifm-global-spacing:1rem;--ifm-spacing-vertical:var(--ifm-global-spacing);--ifm-spacing-horizontal:var(--ifm-global-spacing);--ifm-transition-fast:200ms;--ifm-transition-slow:400ms;--ifm-transition-timing-default:cubic-bezier(0.08,0.52,0.52,1);--ifm-global-shadow-lw:0 1px 2px 0 #0000001a;--ifm-global-shadow-md:0 5px 40px #0003;--ifm-global-shadow-tl:0 12px 28px 0 #0003,0 2px 4px 0 #0000001a;--ifm-z-index-dropdown:100;--ifm-z-index-fixed:200;--ifm-z-index-overlay:400;--ifm-code-background:#f6f7f8;--ifm-code-border-radius:var(--ifm-global-radius);--ifm-code-font-size:90%;--ifm-code-padding-horizontal:0.1rem;--ifm-code-padding-vertical:0.1rem;--ifm-pre-background:var(--ifm-code-background);--ifm-pre-border-radius:var(--ifm-code-border-radius);--ifm-pre-color:inherit;--ifm-pre-line-height:1.45;--ifm-pre-padding:1rem;--ifm-heading-color:inherit;--ifm-heading-margin-top:0;--ifm-heading-margin-bottom:var(--ifm-spacing-vertical);--ifm-heading-font-family:var(--ifm-font-family-base);--ifm-heading-font-weight:var(--ifm-font-weight-bold);--ifm-heading-line-height:1.25;--ifm-h1-font-size:2rem;--ifm-h2-font-size:1.5rem;--ifm-h3-font-size:1.25rem;--ifm-h4-font-size:1rem;--ifm-h5-font-size:0.875rem;--ifm-h6-font-size:0.85rem;--ifm-image-alignment-padding:1.25rem;--ifm-leading-desktop:1.25;--ifm-leading:calc(var(--ifm-leading-desktop)*1rem);--ifm-list-left-padding:2rem;--ifm-list-margin:1rem;--ifm-list-item-margin:0.25rem;--ifm-list-paragraph-margin:1rem;--ifm-table-cell-padding:0.75rem;--ifm-table-background:#0000;--ifm-table-stripe-background:#00000008;--ifm-table-border-width:1px;--ifm-table-border-color:var(--ifm-color-emphasis-300);--ifm-table-head-background:inherit;--ifm-table-head-color:inherit;--ifm-table-head-font-weight:var(--ifm-font-weight-bold);--ifm-table-cell-color:inherit;--ifm-link-color:var(--ifm-color-primary);--ifm-link-decoration:none;--ifm-link-hover-color:var(--ifm-link-color);--ifm-link-hover-decoration:underline;--ifm-paragraph-margin-bottom:var(--ifm-leading);--ifm-blockquote-font-size:var(--ifm-font-size-base);--ifm-blockquote-border-left-width:2px;--ifm-blockquote-padding-horizontal:var(--ifm-spacing-horizontal);--ifm-blockquote-padding-vertical:0;--ifm-blockquote-shadow:none;--ifm-blockquote-color:var(--ifm-color-emphasis-800);--ifm-blockquote-border-color:var(--ifm-color-emphasis-300);--ifm-hr-background-color:var(--ifm-color-emphasis-500);--ifm-hr-height:1px;--ifm-hr-margin-vertical:1.5rem;--ifm-scrollbar-size:7px;--ifm-scrollbar-track-background-color:#f1f1f1;--ifm-scrollbar-thumb-background-color:silver;--ifm-scrollbar-thumb-hover-background-color:#a7a7a7;--ifm-alert-background-color:inherit;--ifm-alert-border-color:inherit;--ifm-alert-border-radius:var(--ifm-global-radius);--ifm-alert-border-width:0px;--ifm-alert-border-left-width:5px;--ifm-alert-color:var(--ifm-font-color-base);--ifm-alert-padding-horizontal:var(--ifm-spacing-horizontal);--ifm-alert-padding-vertical:var(--ifm-spacing-vertical);--ifm-alert-shadow:var(--ifm-global-shadow-lw);--ifm-avatar-intro-margin:1rem;--ifm-avatar-intro-alignment:inherit;--ifm-avatar-photo-size:3rem;--ifm-badge-background-color:inherit;--ifm-badge-border-color:inherit;--ifm-badge-border-radius:var(--ifm-global-radius);--ifm-badge-border-width:var(--ifm-global-border-width);--ifm-badge-color:var(--ifm-color-white);--ifm-badge-padding-horizontal:calc(var(--ifm-spacing-horizontal)*0.5);--ifm-badge-padding-vertical:calc(var(--ifm-spacing-vertical)*0.25);--ifm-breadcrumb-border-radius:1.5rem;--ifm-breadcrumb-spacing:0.5rem;--ifm-breadcrumb-color-active:var(--ifm-color-primary);--ifm-breadcrumb-item-background-active:var(--ifm-hover-overlay);--ifm-breadcrumb-padding-horizontal:0.8rem;--ifm-breadcrumb-padding-vertical:0.4rem;--ifm-breadcrumb-size-multiplier:1;--ifm-breadcrumb-separator:url('data:image/svg+xml;utf8,');--ifm-breadcrumb-separator-filter:none;--ifm-breadcrumb-separator-size:0.5rem;--ifm-breadcrumb-separator-size-multiplier:1.25;--ifm-button-background-color:inherit;--ifm-button-border-color:var(--ifm-button-background-color);--ifm-button-border-width:var(--ifm-global-border-width);--ifm-button-font-weight:var(--ifm-font-weight-bold);--ifm-button-padding-horizontal:1.5rem;--ifm-button-padding-vertical:0.375rem;--ifm-button-size-multiplier:1;--ifm-button-transition-duration:var(--ifm-transition-fast);--ifm-button-border-radius:calc(var(--ifm-global-radius)*var(--ifm-button-size-multiplier));--ifm-button-group-spacing:2px;--ifm-card-background-color:var(--ifm-background-surface-color);--ifm-card-border-radius:calc(var(--ifm-global-radius)*2);--ifm-card-horizontal-spacing:var(--ifm-global-spacing);--ifm-card-vertical-spacing:var(--ifm-global-spacing);--ifm-toc-border-color:var(--ifm-color-emphasis-300);--ifm-toc-link-color:var(--ifm-color-content-secondary);--ifm-toc-padding-vertical:0.5rem;--ifm-toc-padding-horizontal:0.5rem;--ifm-dropdown-background-color:var(--ifm-background-surface-color);--ifm-dropdown-font-weight:var(--ifm-font-weight-semibold);--ifm-dropdown-link-color:var(--ifm-font-color-base);--ifm-dropdown-hover-background-color:var(--ifm-hover-overlay);--ifm-footer-background-color:var(--ifm-color-emphasis-100);--ifm-footer-color:inherit;--ifm-footer-link-color:var(--ifm-color-emphasis-700);--ifm-footer-link-hover-color:var(--ifm-color-primary);--ifm-footer-link-horizontal-spacing:0.5rem;--ifm-footer-padding-horizontal:calc(var(--ifm-spacing-horizontal)*2);--ifm-footer-padding-vertical:calc(var(--ifm-spacing-vertical)*2);--ifm-footer-title-color:inherit;--ifm-footer-logo-max-width:min(30rem,90vw);--ifm-hero-background-color:var(--ifm-background-surface-color);--ifm-hero-text-color:var(--ifm-color-emphasis-800);--ifm-menu-color:var(--ifm-color-emphasis-700);--ifm-menu-color-active:var(--ifm-color-primary);--ifm-menu-color-background-active:var(--ifm-hover-overlay);--ifm-menu-color-background-hover:var(--ifm-hover-overlay);--ifm-menu-link-padding-horizontal:0.75rem;--ifm-menu-link-padding-vertical:0.375rem;--ifm-menu-link-sublist-icon:url('data:image/svg+xml;utf8,');--ifm-menu-link-sublist-icon-filter:none;--ifm-navbar-background-color:var(--ifm-background-surface-color);--ifm-navbar-height:3.75rem;--ifm-navbar-item-padding-horizontal:0.75rem;--ifm-navbar-item-padding-vertical:0.25rem;--ifm-navbar-link-color:var(--ifm-font-color-base);--ifm-navbar-link-active-color:var(--ifm-link-color);--ifm-navbar-padding-horizontal:var(--ifm-spacing-horizontal);--ifm-navbar-padding-vertical:calc(var(--ifm-spacing-vertical)*0.5);--ifm-navbar-shadow:var(--ifm-global-shadow-lw);--ifm-navbar-search-input-background-color:var(--ifm-color-emphasis-200);--ifm-navbar-search-input-color:var(--ifm-color-emphasis-800);--ifm-navbar-search-input-placeholder-color:var(--ifm-color-emphasis-500);--ifm-navbar-search-input-icon:url('data:image/svg+xml;utf8,');--ifm-navbar-sidebar-width:83vw;--ifm-pagination-border-radius:var(--ifm-global-radius);--ifm-pagination-color-active:var(--ifm-color-primary);--ifm-pagination-font-size:1rem;--ifm-pagination-item-active-background:var(--ifm-hover-overlay);--ifm-pagination-page-spacing:0.2em;--ifm-pagination-padding-horizontal:calc(var(--ifm-spacing-horizontal)*1);--ifm-pagination-padding-vertical:calc(var(--ifm-spacing-vertical)*0.25);--ifm-pagination-nav-border-radius:var(--ifm-global-radius);--ifm-pagination-nav-color-hover:var(--ifm-color-primary);--ifm-pills-color-active:var(--ifm-color-primary);--ifm-pills-color-background-active:var(--ifm-hover-overlay);--ifm-pills-spacing:0.125rem;--ifm-tabs-color:var(--ifm-font-color-secondary);--ifm-tabs-color-active:var(--ifm-color-primary);--ifm-tabs-color-active-border:var(--ifm-tabs-color-active);--ifm-tabs-padding-horizontal:1rem;--ifm-tabs-padding-vertical:1rem;--docusaurus-progress-bar-color:var(--ifm-color-primary);--ifm-color-primary:#398ccb;--ifm-color-primary-dark:#317eb9;--ifm-color-primary-darker:#2e77af;--ifm-color-primary-darkest:#266290;--ifm-color-primary-light:#4e98d0;--ifm-color-primary-lighter:#589ed3;--ifm-color-primary-lightest:#77b0db;--ifm-code-font-size:95%;--ifm-container-width:1140px;--ifm-container-width-xl:1320px;--ifm-navbar-shadow:none;--docsearch-key-shadow:none!important;--docsearch-footer-shadow:none!important;--docsearch-key-gradient:#f4f4f5!important;--tweet-border:1px solid var(--ifm-color-emphasis-300);--docusaurus-tag-list-border:var(--ifm-color-emphasis-300);--docsearch-primary-color:#5468ff;--docsearch-text-color:#1c1e21;--docsearch-spacing:12px;--docsearch-icon-stroke-width:1.4;--docsearch-highlight-color:var(--docsearch-primary-color);--docsearch-muted-color:#969faf;--docsearch-container-background:#656c85cc;--docsearch-logo-color:#5468ff;--docsearch-modal-width:560px;--docsearch-modal-height:600px;--docsearch-modal-background:#f5f6f7;--docsearch-modal-shadow:inset 1px 1px 0 0 #ffffff80,0 3px 8px 0 #555a64;--docsearch-searchbox-height:56px;--docsearch-searchbox-background:#ebedf0;--docsearch-searchbox-focus-background:#fff;--docsearch-searchbox-shadow:inset 0 0 0 2px var(--docsearch-primary-color);--docsearch-hit-height:56px;--docsearch-hit-color:#444950;--docsearch-hit-active-color:#fff;--docsearch-hit-background:#fff;--docsearch-hit-shadow:0 1px 3px 0 #d4d9e1;--docsearch-key-gradient:linear-gradient(-225deg,#d5dbe4,#f8f8f8);--docsearch-key-shadow:inset 0 -2px 0 0 #cdcde6,inset 0 0 1px 1px #fff,0 1px 2px 1px #1e235a66;--docsearch-key-pressed-shadow:inset 0 -2px 0 0 #cdcde6,inset 0 0 1px 1px #fff,0 1px 1px 0 #1e235a66;--docsearch-footer-height:44px;--docsearch-footer-background:#fff;--docsearch-footer-shadow:0 -1px 0 0 #e0e3e8,0 -3px 6px 0 #45629b1f;--docsearch-primary-color:var(--ifm-color-primary);--docsearch-text-color:var(--ifm-font-color-base);--docusaurus-announcement-bar-height:auto;--docusaurus-collapse-button-bg:#0000;--docusaurus-collapse-button-bg-hover:#0000001a;--doc-sidebar-width:300px;--doc-sidebar-hidden-width:30px}.badge--danger,.badge--info,.badge--primary,.badge--secondary,.badge--success,.badge--warning{--ifm-badge-border-color:var(--ifm-badge-background-color)}.button--link,.button--outline{--ifm-button-background-color:#0000}html{background-color:var(--ifm-background-color);color:var(--ifm-font-color-base);color-scheme:var(--ifm-color-scheme);font:var(--ifm-font-size-base)/var(--ifm-line-height-base) var(--ifm-font-family-base);-webkit-font-smoothing:antialiased;text-rendering:optimizelegibility;-webkit-text-size-adjust:100%;text-size-adjust:100%}iframe{border:0;color-scheme:auto}.container{margin:0 auto;max-width:var(--ifm-container-width)}.container--fluid{max-width:inherit}.row{display:flex;flex-wrap:wrap;margin:0 calc(var(--ifm-spacing-horizontal)*-1)}.margin-bottom--none,.margin-vert--none,.markdown>:last-child{margin-bottom:0!important}.margin-top--none,.margin-vert--none{margin-top:0!important}.row--no-gutters{margin-left:0;margin-right:0}.margin-horiz--none,.margin-right--none{margin-right:0!important}.row--no-gutters>.col{padding-left:0;padding-right:0}.row--align-top{align-items:flex-start}.row--align-bottom{align-items:flex-end}.menuExternalLink_u1WH,.row--align-center{align-items:center}.row--align-stretch{align-items:stretch}.row--align-baseline{align-items:baseline}.col{--ifm-col-width:100%;flex:1 0;margin-left:0;max-width:var(--ifm-col-width);width:100%}.padding-bottom--none,.padding-vert--none{padding-bottom:0!important}.padding-top--none,.padding-vert--none{padding-top:0!important}.padding-horiz--none,.padding-left--none{padding-left:0!important}.padding-horiz--none,.padding-right--none{padding-right:0!important}.col[class*=col--]{flex:0 0 var(--ifm-col-width)}.col--1{--ifm-col-width:8.33333%}.col--offset-1{margin-left:8.33333%}.col--2{--ifm-col-width:16.66667%}.col--offset-2{margin-left:16.66667%}.col--3{--ifm-col-width:25%}.col--offset-3{margin-left:25%}.col--4{--ifm-col-width:33.33333%}.col--offset-4{margin-left:33.33333%}.col--5{--ifm-col-width:41.66667%}.col--offset-5{margin-left:41.66667%}.col--6{--ifm-col-width:50%}.col--offset-6{margin-left:50%}.col--7{--ifm-col-width:58.33333%}.col--offset-7{margin-left:58.33333%}.col--8{--ifm-col-width:66.66667%}.col--offset-8{margin-left:66.66667%}.col--9{--ifm-col-width:75%}.col--offset-9{margin-left:75%}.col--10{--ifm-col-width:83.33333%}.col--offset-10{margin-left:83.33333%}.col--11{--ifm-col-width:91.66667%}.col--offset-11{margin-left:91.66667%}.col--12{--ifm-col-width:100%}.col--offset-12{margin-left:100%}.margin-horiz--none,.margin-left--none{margin-left:0!important}.margin--none{margin:0!important}.margin-bottom--xs,.margin-vert--xs{margin-bottom:.25rem!important}.margin-top--xs,.margin-vert--xs{margin-top:.25rem!important}.margin-horiz--xs,.margin-left--xs{margin-left:.25rem!important}.margin-horiz--xs,.margin-right--xs{margin-right:.25rem!important}.margin--xs{margin:.25rem!important}.margin-bottom--sm,.margin-vert--sm{margin-bottom:.5rem!important}.margin-top--sm,.margin-vert--sm{margin-top:.5rem!important}.margin-horiz--sm,.margin-left--sm{margin-left:.5rem!important}.margin-horiz--sm,.margin-right--sm{margin-right:.5rem!important}.margin--sm{margin:.5rem!important}.margin-bottom--md,.margin-vert--md{margin-bottom:1rem!important}.margin-top--md,.margin-vert--md{margin-top:1rem!important}.margin-horiz--md,.margin-left--md{margin-left:1rem!important}.margin-horiz--md,.margin-right--md{margin-right:1rem!important}.margin--md{margin:1rem!important}.margin-bottom--lg,.margin-vert--lg{margin-bottom:2rem!important}.margin-top--lg,.margin-vert--lg{margin-top:2rem!important}.margin-horiz--lg,.margin-left--lg{margin-left:2rem!important}.margin-horiz--lg,.margin-right--lg{margin-right:2rem!important}.margin--lg{margin:2rem!important}.margin-bottom--xl,.margin-vert--xl{margin-bottom:5rem!important}.margin-top--xl,.margin-vert--xl{margin-top:5rem!important}.margin-horiz--xl,.margin-left--xl{margin-left:5rem!important}.margin-horiz--xl,.margin-right--xl{margin-right:5rem!important}.margin--xl{margin:5rem!important}.padding--none{padding:0!important}.padding-bottom--xs,.padding-vert--xs{padding-bottom:.25rem!important}.padding-top--xs,.padding-vert--xs{padding-top:.25rem!important}.padding-horiz--xs,.padding-left--xs{padding-left:.25rem!important}.padding-horiz--xs,.padding-right--xs{padding-right:.25rem!important}.padding--xs{padding:.25rem!important}.padding-bottom--sm,.padding-vert--sm{padding-bottom:.5rem!important}.padding-top--sm,.padding-vert--sm{padding-top:.5rem!important}.padding-horiz--sm,.padding-left--sm{padding-left:.5rem!important}.padding-horiz--sm,.padding-right--sm{padding-right:.5rem!important}.padding--sm{padding:.5rem!important}.padding-bottom--md,.padding-vert--md{padding-bottom:1rem!important}.padding-top--md,.padding-vert--md{padding-top:1rem!important}.padding-horiz--md,.padding-left--md{padding-left:1rem!important}.padding-horiz--md,.padding-right--md{padding-right:1rem!important}.padding--md{padding:1rem!important}.padding-bottom--lg,.padding-vert--lg{padding-bottom:2rem!important}.padding-top--lg,.padding-vert--lg{padding-top:2rem!important}.padding-horiz--lg,.padding-left--lg{padding-left:2rem!important}.padding-horiz--lg,.padding-right--lg{padding-right:2rem!important}.padding--lg{padding:2rem!important}.padding-bottom--xl,.padding-vert--xl{padding-bottom:5rem!important}.padding-top--xl,.padding-vert--xl{padding-top:5rem!important}.padding-horiz--xl,.padding-left--xl{padding-left:5rem!important}.padding-horiz--xl,.padding-right--xl{padding-right:5rem!important}.padding--xl{padding:5rem!important}code{background-color:var(--ifm-code-background);border:.1rem solid #0000001a;border-radius:var(--ifm-code-border-radius);font-family:var(--ifm-font-family-monospace);font-size:var(--ifm-code-font-size);padding:var(--ifm-code-padding-vertical) var(--ifm-code-padding-horizontal)}pre{background-color:var(--ifm-pre-background);border-radius:var(--ifm-pre-border-radius);color:var(--ifm-pre-color);font:var(--ifm-code-font-size)/var(--ifm-pre-line-height) var(--ifm-font-family-monospace);padding:var(--ifm-pre-padding)}pre code{background-color:initial;border:none;font-size:100%;line-height:inherit;padding:0}kbd{background-color:var(--ifm-color-emphasis-0);border:1px solid var(--ifm-color-emphasis-400);border-radius:.2rem;box-shadow:inset 0 -1px 0 var(--ifm-color-emphasis-400);color:var(--ifm-color-emphasis-800);font:80% var(--ifm-font-family-monospace);padding:.15rem .3rem}h1,h2,h3,h4,h5,h6{color:var(--ifm-heading-color);font-family:var(--ifm-heading-font-family);font-weight:var(--ifm-heading-font-weight);line-height:var(--ifm-heading-line-height);margin:var(--ifm-heading-margin-top) 0 var(--ifm-heading-margin-bottom) 0}h1{font-size:var(--ifm-h1-font-size)}h2{font-size:var(--ifm-h2-font-size)}h3{font-size:var(--ifm-h3-font-size)}h4{font-size:var(--ifm-h4-font-size)}h5{font-size:var(--ifm-h5-font-size)}h6{font-size:var(--ifm-h6-font-size)}img[align=right]{padding-left:var(--image-alignment-padding)}img[align=left]{padding-right:var(--image-alignment-padding)}.markdown{--ifm-h1-vertical-rhythm-top:3;--ifm-h2-vertical-rhythm-top:2;--ifm-h3-vertical-rhythm-top:1.5;--ifm-heading-vertical-rhythm-top:1.25;--ifm-h1-vertical-rhythm-bottom:1.25;--ifm-heading-vertical-rhythm-bottom:1}.markdown:after,.markdown:before{content:"";display:table}.markdown:after{clear:both}.markdown h1:first-child{--ifm-h1-font-size:3rem;margin-bottom:calc(var(--ifm-h1-vertical-rhythm-bottom)*var(--ifm-leading))}.markdown>h2{--ifm-h2-font-size:2rem;margin-top:calc(var(--ifm-h2-vertical-rhythm-top)*var(--ifm-leading))}.markdown>h3{--ifm-h3-font-size:1.5rem;margin-top:calc(var(--ifm-h3-vertical-rhythm-top)*var(--ifm-leading))}.markdown>h4,.markdown>h5,.markdown>h6{margin-top:calc(var(--ifm-heading-vertical-rhythm-top)*var(--ifm-leading))}.markdown>p,.markdown>pre,.markdown>ul,details p{margin-bottom:var(--ifm-leading)}.markdown li>p{margin-top:var(--ifm-list-paragraph-margin);display:inline}.markdown li+li{margin-top:var(--ifm-list-item-margin)}ol,ul{margin:0 0 var(--ifm-list-margin);padding-left:var(--ifm-list-left-padding)}ol ol,ul ol{list-style-type:lower-roman}ol ol,ol ul,ul ol,ul ul{margin:0}ol ol ol,ol ul ol,ul ol ol,ul ul ol{list-style-type:lower-alpha}table thead tr{border-bottom:2px solid var(--ifm-table-border-color)}table thead,table tr:nth-child(2n){background-color:var(--ifm-table-stripe-background)}table tr{background-color:var(--ifm-table-background);border-top:var(--ifm-table-border-width) solid var(--ifm-table-border-color)}table td,table th{border:var(--ifm-table-border-width) solid var(--ifm-table-border-color);padding:var(--ifm-table-cell-padding)}table th{background-color:var(--ifm-table-head-background);color:var(--ifm-table-head-color);font-weight:var(--ifm-table-head-font-weight)}table td{color:var(--ifm-table-cell-color)}strong{font-weight:var(--ifm-font-weight-bold)}a{text-decoration:inherit;color:var(--ifm-link-color);-webkit-text-decoration:var(--ifm-link-decoration);text-decoration:var(--ifm-link-decoration)}a:hover{color:var(--ifm-link-hover-color);text-decoration:var(--ifm-link-hover-decoration)}.button:hover,.text--no-decoration,.text--no-decoration:hover,a:not([href]){text-decoration:none}p{margin:0 0 var(--ifm-paragraph-margin-bottom)}blockquote{border-left:var(--ifm-blockquote-border-left-width) solid var(--ifm-blockquote-border-color);box-shadow:var(--ifm-blockquote-shadow);color:var(--ifm-blockquote-color);font-size:var(--ifm-blockquote-font-size);padding:var(--ifm-blockquote-padding-vertical) var(--ifm-blockquote-padding-horizontal)}blockquote>:first-child{margin-top:0}blockquote>:last-child{margin-bottom:0}hr{background-color:var(--ifm-hr-background-color);border:0;height:var(--ifm-hr-height);margin:var(--ifm-hr-margin-vertical) 0}.shadow--lw{box-shadow:var(--ifm-global-shadow-lw)!important}.shadow--md{box-shadow:var(--ifm-global-shadow-md)!important}.shadow--tl{box-shadow:var(--ifm-global-shadow-tl)!important}.text--primary{color:var(--ifm-color-primary)}.text--secondary{color:var(--ifm-color-secondary)}.text--success{color:var(--ifm-color-success)}.text--info{color:var(--ifm-color-info)}.text--warning{color:var(--ifm-color-warning)}.text--danger{color:var(--ifm-color-danger)}.clean-btn,hr{color:inherit}.text--center{text-align:center}.text--left{text-align:left}.text--justify{text-align:justify}.text--right{text-align:right}.text--capitalize{text-transform:capitalize}.text--lowercase{text-transform:lowercase}.admonitionHeading_S86Y,.alert__heading,.playgroundHeader_kiMI,.text--uppercase{text-transform:uppercase}.text--light{font-weight:var(--ifm-font-weight-light)}.text--normal{font-weight:var(--ifm-font-weight-normal)}.text--semibold{font-weight:var(--ifm-font-weight-semibold)}.text--bold{font-weight:var(--ifm-font-weight-bold)}.text--italic{font-style:italic}.text--break{word-wrap:break-word!important;word-break:break-word!important}.clean-btn{background:none;border:none;cursor:pointer;font-family:inherit;padding:0}.alert,.alert .close{color:var(--ifm-alert-foreground-color)}.clean-list{list-style:none;padding-left:0}.alert--primary{--ifm-alert-background-color:var(--ifm-color-primary-contrast-background);--ifm-alert-background-color-highlight:#3578e526;--ifm-alert-foreground-color:var(--ifm-color-primary-contrast-foreground);--ifm-alert-border-color:var(--ifm-color-primary-dark)}.alert--secondary{--ifm-alert-background-color:var(--ifm-color-secondary-contrast-background);--ifm-alert-background-color-highlight:#ebedf026;--ifm-alert-foreground-color:var(--ifm-color-secondary-contrast-foreground);--ifm-alert-border-color:var(--ifm-color-secondary-dark)}.alert--success{--ifm-alert-background-color:var(--ifm-color-success-contrast-background);--ifm-alert-background-color-highlight:#00a40026;--ifm-alert-foreground-color:var(--ifm-color-success-contrast-foreground);--ifm-alert-border-color:var(--ifm-color-success-dark)}.alert--info{--ifm-alert-background-color:var(--ifm-color-info-contrast-background);--ifm-alert-background-color-highlight:#54c7ec26;--ifm-alert-foreground-color:var(--ifm-color-info-contrast-foreground);--ifm-alert-border-color:var(--ifm-color-info-dark)}.alert--warning{--ifm-alert-background-color:var(--ifm-color-warning-contrast-background);--ifm-alert-background-color-highlight:#ffba0026;--ifm-alert-foreground-color:var(--ifm-color-warning-contrast-foreground);--ifm-alert-border-color:var(--ifm-color-warning-dark)}.alert--danger{--ifm-alert-background-color:var(--ifm-color-danger-contrast-background);--ifm-alert-background-color-highlight:#fa383e26;--ifm-alert-foreground-color:var(--ifm-color-danger-contrast-foreground);--ifm-alert-border-color:var(--ifm-color-danger-dark)}.alert{--ifm-code-background:var(--ifm-alert-background-color-highlight);--ifm-link-color:var(--ifm-alert-foreground-color);--ifm-link-hover-color:var(--ifm-alert-foreground-color);--ifm-link-decoration:underline;--ifm-tabs-color:var(--ifm-alert-foreground-color);--ifm-tabs-color-active:var(--ifm-alert-foreground-color);--ifm-tabs-color-active-border:var(--ifm-alert-border-color);background-color:var(--ifm-alert-background-color);border:var(--ifm-alert-border-width) solid var(--ifm-alert-border-color);border-left-width:var(--ifm-alert-border-left-width);border-radius:var(--ifm-alert-border-radius);box-shadow:var(--ifm-alert-shadow);padding:var(--ifm-alert-padding-vertical) var(--ifm-alert-padding-horizontal)}.alert__heading{align-items:center;display:flex;font:700 var(--ifm-h5-font-size)/var(--ifm-heading-line-height) var(--ifm-heading-font-family);margin-bottom:.5rem}.alert__icon{display:inline-flex;margin-right:.4em}.alert__icon svg{fill:var(--ifm-alert-foreground-color);stroke:var(--ifm-alert-foreground-color);stroke-width:0}.alert .close{margin:calc(var(--ifm-alert-padding-vertical)*-1) calc(var(--ifm-alert-padding-horizontal)*-1) 0 0;opacity:.75}.alert .close:focus,.alert .close:hover{opacity:1}.alert a{text-decoration-color:var(--ifm-alert-border-color)}.alert a:hover{text-decoration-thickness:2px}.avatar{column-gap:var(--ifm-avatar-intro-margin);display:flex}.avatar__photo{border-radius:50%;display:block;height:var(--ifm-avatar-photo-size);width:var(--ifm-avatar-photo-size)}.card--full-height,.navbar__logo img,body,html{height:100%}.avatar__photo--sm{--ifm-avatar-photo-size:2rem}.avatar__photo--lg{--ifm-avatar-photo-size:4rem}.avatar__photo--xl{--ifm-avatar-photo-size:6rem}.avatar__intro{display:flex;flex:1 1;flex-direction:column;justify-content:center;text-align:var(--ifm-avatar-intro-alignment)}.badge,.breadcrumbs__item,.breadcrumbs__link,.button,.dropdown>.navbar__link:after{display:inline-block}.avatar__name{font:700 var(--ifm-h4-font-size)/var(--ifm-heading-line-height) var(--ifm-font-family-base)}.avatar__subtitle{margin-top:.25rem}.avatar--vertical{--ifm-avatar-intro-alignment:center;--ifm-avatar-intro-margin:0.5rem;align-items:center;flex-direction:column}.badge{background-color:var(--ifm-badge-background-color);border:var(--ifm-badge-border-width) solid var(--ifm-badge-border-color);border-radius:var(--ifm-badge-border-radius);color:var(--ifm-badge-color);font-size:75%;font-weight:var(--ifm-font-weight-bold);line-height:1;padding:var(--ifm-badge-padding-vertical) var(--ifm-badge-padding-horizontal)}.badge--primary{--ifm-badge-background-color:var(--ifm-color-primary)}.badge--secondary{--ifm-badge-background-color:var(--ifm-color-secondary);color:var(--ifm-color-black)}.breadcrumbs__link,.button.button--secondary.button--outline:not(.button--active):not(:hover){color:var(--ifm-font-color-base)}.badge--success{--ifm-badge-background-color:var(--ifm-color-success)}.badge--info{--ifm-badge-background-color:var(--ifm-color-info)}.badge--warning{--ifm-badge-background-color:var(--ifm-color-warning)}.badge--danger{--ifm-badge-background-color:var(--ifm-color-danger)}.breadcrumbs{margin-bottom:0;padding-left:0}.breadcrumbs__item:not(:last-child):after{background:var(--ifm-breadcrumb-separator) center;content:" ";display:inline-block;filter:var(--ifm-breadcrumb-separator-filter);height:calc(var(--ifm-breadcrumb-separator-size)*var(--ifm-breadcrumb-size-multiplier)*var(--ifm-breadcrumb-separator-size-multiplier));margin:0 var(--ifm-breadcrumb-spacing);opacity:.5;width:calc(var(--ifm-breadcrumb-separator-size)*var(--ifm-breadcrumb-size-multiplier)*var(--ifm-breadcrumb-separator-size-multiplier))}.breadcrumbs__item--active .breadcrumbs__link{background:var(--ifm-breadcrumb-item-background-active);color:var(--ifm-breadcrumb-color-active)}.breadcrumbs__link{border-radius:var(--ifm-breadcrumb-border-radius);font-size:calc(1rem*var(--ifm-breadcrumb-size-multiplier));padding:calc(var(--ifm-breadcrumb-padding-vertical)*var(--ifm-breadcrumb-size-multiplier)) calc(var(--ifm-breadcrumb-padding-horizontal)*var(--ifm-breadcrumb-size-multiplier));transition-duration:var(--ifm-transition-fast);transition-property:background,color}.breadcrumbs__link:any-link:hover,.breadcrumbs__link:link:hover,.breadcrumbs__link:visited:hover,area[href].breadcrumbs__link:hover{background:var(--ifm-breadcrumb-item-background-active);text-decoration:none}.breadcrumbs--sm{--ifm-breadcrumb-size-multiplier:0.8}.breadcrumbs--lg{--ifm-breadcrumb-size-multiplier:1.2}.button{background-color:var(--ifm-button-background-color);border:var(--ifm-button-border-width) solid var(--ifm-button-border-color);border-radius:var(--ifm-button-border-radius);cursor:pointer;font-size:calc(.875rem*var(--ifm-button-size-multiplier));font-weight:var(--ifm-button-font-weight);line-height:1.5;padding:calc(var(--ifm-button-padding-vertical)*var(--ifm-button-size-multiplier)) calc(var(--ifm-button-padding-horizontal)*var(--ifm-button-size-multiplier));text-align:center;transition-duration:var(--ifm-button-transition-duration);transition-property:color,background,border-color;-webkit-user-select:none;user-select:none;white-space:nowrap}.button,.button:hover{color:var(--ifm-button-color)}.button--outline{--ifm-button-color:var(--ifm-button-border-color)}.button--outline:hover{--ifm-button-background-color:var(--ifm-button-border-color)}.button--link{--ifm-button-border-color:#0000;color:var(--ifm-link-color);text-decoration:var(--ifm-link-decoration)}.button--link.button--active,.button--link:active,.button--link:hover{color:var(--ifm-link-hover-color);text-decoration:var(--ifm-link-hover-decoration)}.button.disabled,.button:disabled,.button[disabled]{opacity:.65;pointer-events:none}.button--sm{--ifm-button-size-multiplier:0.8}.button--lg{--ifm-button-size-multiplier:1.35}.button--block{display:block;width:100%}.button.button--secondary{color:var(--ifm-color-gray-900)}:where(.button--primary){--ifm-button-background-color:var(--ifm-color-primary);--ifm-button-border-color:var(--ifm-color-primary)}:where(.button--primary):not(.button--outline):hover{--ifm-button-background-color:var(--ifm-color-primary-dark);--ifm-button-border-color:var(--ifm-color-primary-dark)}.button--primary.button--active,.button--primary:active{--ifm-button-background-color:var(--ifm-color-primary-darker);--ifm-button-border-color:var(--ifm-color-primary-darker)}:where(.button--secondary){--ifm-button-background-color:var(--ifm-color-secondary);--ifm-button-border-color:var(--ifm-color-secondary)}:where(.button--secondary):not(.button--outline):hover{--ifm-button-background-color:var(--ifm-color-secondary-dark);--ifm-button-border-color:var(--ifm-color-secondary-dark)}.button--secondary.button--active,.button--secondary:active{--ifm-button-background-color:var(--ifm-color-secondary-darker);--ifm-button-border-color:var(--ifm-color-secondary-darker)}:where(.button--success){--ifm-button-background-color:var(--ifm-color-success);--ifm-button-border-color:var(--ifm-color-success)}:where(.button--success):not(.button--outline):hover{--ifm-button-background-color:var(--ifm-color-success-dark);--ifm-button-border-color:var(--ifm-color-success-dark)}.button--success.button--active,.button--success:active{--ifm-button-background-color:var(--ifm-color-success-darker);--ifm-button-border-color:var(--ifm-color-success-darker)}:where(.button--info){--ifm-button-background-color:var(--ifm-color-info);--ifm-button-border-color:var(--ifm-color-info)}:where(.button--info):not(.button--outline):hover{--ifm-button-background-color:var(--ifm-color-info-dark);--ifm-button-border-color:var(--ifm-color-info-dark)}.button--info.button--active,.button--info:active{--ifm-button-background-color:var(--ifm-color-info-darker);--ifm-button-border-color:var(--ifm-color-info-darker)}:where(.button--warning){--ifm-button-background-color:var(--ifm-color-warning);--ifm-button-border-color:var(--ifm-color-warning)}:where(.button--warning):not(.button--outline):hover{--ifm-button-background-color:var(--ifm-color-warning-dark);--ifm-button-border-color:var(--ifm-color-warning-dark)}.button--warning.button--active,.button--warning:active{--ifm-button-background-color:var(--ifm-color-warning-darker);--ifm-button-border-color:var(--ifm-color-warning-darker)}:where(.button--danger){--ifm-button-background-color:var(--ifm-color-danger);--ifm-button-border-color:var(--ifm-color-danger)}:where(.button--danger):not(.button--outline):hover{--ifm-button-background-color:var(--ifm-color-danger-dark);--ifm-button-border-color:var(--ifm-color-danger-dark)}.button--danger.button--active,.button--danger:active{--ifm-button-background-color:var(--ifm-color-danger-darker);--ifm-button-border-color:var(--ifm-color-danger-darker)}.button-group{display:inline-flex;gap:var(--ifm-button-group-spacing)}.button-group>.button:not(:first-child){border-bottom-left-radius:0;border-top-left-radius:0}.button-group>.button:not(:last-child){border-bottom-right-radius:0;border-top-right-radius:0}.button-group--block{display:flex;justify-content:stretch}.button-group--block>.button{flex-grow:1}.card{background-color:var(--ifm-card-background-color);border-radius:var(--ifm-card-border-radius);box-shadow:var(--ifm-global-shadow-lw);display:flex;flex-direction:column}.card__image{padding-top:var(--ifm-card-vertical-spacing)}.card__image:first-child{padding-top:0}.card__body,.card__footer,.card__header{padding:var(--ifm-card-vertical-spacing) var(--ifm-card-horizontal-spacing)}.card__body:not(:last-child),.card__footer:not(:last-child),.card__header:not(:last-child){padding-bottom:0}.card__body>:last-child,.card__footer>:last-child,.card__header>:last-child{margin-bottom:0}.card__footer{margin-top:auto}.table-of-contents{font-size:.8rem;margin-bottom:0;padding:var(--ifm-toc-padding-vertical) 0}.footer__links,.markdown ol li,.theme-doc-version-badge{margin-bottom:1rem}.table-of-contents,.table-of-contents ul{list-style:none;padding-left:var(--ifm-toc-padding-horizontal)}.table-of-contents li{margin:var(--ifm-toc-padding-vertical) var(--ifm-toc-padding-horizontal)}.table-of-contents__left-border{border-left:1px solid var(--ifm-toc-border-color)}.table-of-contents__link{color:var(--ifm-toc-link-color);display:block}.table-of-contents__link--active,.table-of-contents__link--active code,.table-of-contents__link:hover,.table-of-contents__link:hover code{color:var(--ifm-color-primary);text-decoration:none}.close{color:var(--ifm-color-black);float:right;font-size:1.5rem;font-weight:var(--ifm-font-weight-bold);line-height:1;opacity:.5;padding:1rem;transition:opacity var(--ifm-transition-fast) var(--ifm-transition-timing-default)}.close:hover{opacity:.7}.close:focus,.theme-code-block-highlighted-line .codeLineNumber_SZe5:before{opacity:.8}.dropdown{display:inline-flex;font-weight:var(--ifm-dropdown-font-weight);position:relative;vertical-align:top}.dropdown--hoverable:hover .dropdown__menu,.dropdown--show .dropdown__menu{opacity:1;pointer-events:all;transform:translateY(-1px);visibility:visible}#nprogress,.dropdown__menu,.navbar__item.dropdown .navbar__link:not([href]){pointer-events:none}.dropdown--right .dropdown__menu{left:inherit;right:0}.dropdown--nocaret .navbar__link:after{content:none!important}.dropdown__menu{background-color:var(--ifm-dropdown-background-color);border-radius:var(--ifm-global-radius);box-shadow:var(--ifm-global-shadow-md);left:0;list-style:none;max-height:80vh;min-width:10rem;opacity:0;overflow-y:auto;padding:.5rem;position:absolute;top:calc(100% - var(--ifm-navbar-item-padding-vertical) + .3rem);transform:translateY(-.625rem);transition-duration:var(--ifm-transition-fast);transition-property:opacity,transform,visibility;transition-timing-function:var(--ifm-transition-timing-default);visibility:hidden;z-index:var(--ifm-z-index-dropdown)}.menu__caret,.menu__link,.menu__list-item-collapsible{border-radius:.25rem;transition:background var(--ifm-transition-fast) var(--ifm-transition-timing-default)}.navbar--fixed-top,div[class^=announcementBar_]{z-index:var(--ifm-z-index-fixed)}.dropdown__link{border-radius:.25rem;color:var(--ifm-dropdown-link-color);display:block;font-size:.875rem;margin-top:.2rem;padding:.25rem .5rem;white-space:nowrap}.dropdown__link--active,.dropdown__link:hover{background-color:var(--ifm-dropdown-hover-background-color);color:var(--ifm-dropdown-link-color);text-decoration:none}.dropdown__link--active,.dropdown__link--active:hover{--ifm-dropdown-link-color:var(--ifm-link-color)}.dropdown>.navbar__link:after{border-color:currentcolor #0000;border-style:solid;border-width:.4em .4em 0;content:"";margin-left:.3em;position:relative;top:2px;transform:translateY(-50%)}.footer{background-color:var(--ifm-footer-background-color);color:var(--ifm-footer-color);padding:var(--ifm-footer-padding-vertical) var(--ifm-footer-padding-horizontal)}.footer--dark{--ifm-footer-background-color:#303846;--ifm-footer-color:var(--ifm-footer-link-color);--ifm-footer-link-color:var(--ifm-color-secondary);--ifm-footer-title-color:var(--ifm-color-white)}.footer__link-item{color:var(--ifm-footer-link-color);line-height:2}.footer__link-item:hover{color:var(--ifm-footer-link-hover-color)}.footer__link-separator{margin:0 var(--ifm-footer-link-horizontal-spacing)}.footer__logo{margin-top:1rem;max-width:var(--ifm-footer-logo-max-width)}.footer__title{color:var(--ifm-footer-title-color);font:700 var(--ifm-h4-font-size)/var(--ifm-heading-line-height) var(--ifm-font-family-base);margin-bottom:var(--ifm-heading-margin-bottom)}.menu,.navbar__link{font-weight:var(--ifm-font-weight-semibold)}.hero__title,.markdown h1{font-size:3rem}.docItemContainer_nzch article>:first-child,.docItemContainer_nzch header+*,.footer__item{margin-top:0}.admonitionContent_esOg>:last-child,.collapsibleContent_HeMa p:last-child,.details_ulot>summary>p:last-child,.footer__items{margin-bottom:0}.codeBlockStandalone__j3A,[type=checkbox],dialog,fieldset,legend{padding:0}.hero{align-items:center;background-color:var(--ifm-hero-background-color);color:var(--ifm-hero-text-color);display:flex;padding:4rem 2rem}.hero--primary{--ifm-hero-background-color:var(--ifm-color-primary);--ifm-hero-text-color:var(--ifm-font-color-base-inverse)}.hero--dark{--ifm-hero-background-color:#303846;--ifm-hero-text-color:var(--ifm-color-white)}.hero__subtitle{font-size:1.5rem}.menu__list{list-style:none;margin:0;padding-left:0}.menu__caret,.menu__link{padding:var(--ifm-menu-link-padding-vertical) var(--ifm-menu-link-padding-horizontal)}.menu__list .menu__list{flex:0 0 100%;margin-top:.25rem;padding-left:var(--ifm-menu-link-padding-horizontal)}.menu__list-item:not(:first-child){margin-top:.25rem}.menu__list-item--collapsed .menu__list{height:0;overflow:hidden}.details_ulot[data-collapsed=false].isBrowser_qya_>summary:before,.details_ulot[open]:not(.isBrowser_qya_)>summary:before,.menu__list-item--collapsed .menu__caret:before,.menu__list-item--collapsed .menu__link--sublist:after{transform:rotate(90deg)}.menu__list-item-collapsible{display:flex;flex-wrap:wrap;position:relative}.menu__caret:hover,.menu__link:hover,.menu__list-item-collapsible--active,.menu__list-item-collapsible:hover{background:var(--ifm-menu-color-background-hover)}.menu__list-item-collapsible .menu__link--active,.menu__list-item-collapsible .menu__link:hover{background:none!important}.menu__caret,.menu__link{align-items:center;display:flex}.navbar-sidebar,.navbar-sidebar__backdrop{opacity:0;transition-duration:var(--ifm-transition-fast);transition-timing-function:ease-in-out;visibility:hidden;top:0;left:0;bottom:0}.menu__link{color:var(--ifm-menu-color);flex:1;line-height:1.25}.menu__link:hover{color:var(--ifm-menu-color);text-decoration:none}.menu__caret:before,.menu__link--sublist-caret:after{content:"";height:1.25rem;transform:rotate(180deg);transition:transform var(--ifm-transition-fast) linear;width:1.25rem;filter:var(--ifm-menu-link-sublist-icon-filter)}.menu__link--sublist-caret:after{background:var(--ifm-menu-link-sublist-icon) 50%/2rem 2rem;margin-left:auto;min-width:1.25rem}.navbar__items--center .navbar__brand,blockquote,body,dd,dl,fieldset,figure,h1,h2,h3,h4,h5,h6,hr,menu,ol,p,pre,ul{margin:0}.menu__link--active,.menu__link--active:hover{color:var(--ifm-menu-color-active)}.navbar__brand,.navbar__link{color:var(--ifm-navbar-link-color)}.menu__link--active:not(.menu__link--sublist){background-color:var(--ifm-menu-color-background-active)}.menu__caret:before{background:var(--ifm-menu-link-sublist-icon) 50%/2rem 2rem}.navbar--dark,html[data-theme=dark]{--ifm-menu-link-sublist-icon-filter:invert(100%) sepia(94%) saturate(17%) hue-rotate(223deg) brightness(104%) contrast(98%)}.navbar{background-color:var(--ifm-navbar-background-color);box-shadow:var(--ifm-navbar-shadow);height:var(--ifm-navbar-height);padding:var(--ifm-navbar-padding-vertical) var(--ifm-navbar-padding-horizontal)}.navbar,.navbar>.container,.navbar>.container-fluid{display:flex}.navbar--fixed-top{position:sticky;top:0}.navbar__inner{display:flex;flex-wrap:wrap;justify-content:space-between;width:100%}.navbar__brand{align-items:center;display:flex;margin-right:1rem;min-width:0}.navbar__brand:hover{color:var(--ifm-navbar-link-hover-color);text-decoration:none}.announcementBarContent_py2S,.navbar__title{flex:1 1 auto}.navbar__toggle{display:none;margin-right:.5rem}.navbar__logo{flex:0 0 auto;height:2rem;margin-right:.5rem}.navbar__items{align-items:center;display:flex;flex:1;min-width:0}.navbar__items--center{flex:0 0 auto}.navbar__items--center+.navbar__items--right{flex:1}.navbar__items--right{flex:0 0 auto;justify-content:flex-end}.navbar__items--right>:last-child{padding-right:0}.navbar__item{display:inline-block;padding:var(--ifm-navbar-item-padding-vertical) var(--ifm-navbar-item-padding-horizontal)}.navbar__link--active,.navbar__link:hover{color:var(--ifm-navbar-link-hover-color);text-decoration:none}.navbar--dark,.navbar--primary{--ifm-menu-color:var(--ifm-color-gray-300);--ifm-navbar-link-color:var(--ifm-color-gray-100);--ifm-navbar-search-input-background-color:#ffffff1a;--ifm-navbar-search-input-placeholder-color:#ffffff80;color:var(--ifm-color-white)}.navbar--dark{--ifm-navbar-background-color:#242526;--ifm-menu-color-background-active:#ffffff0d;--ifm-navbar-search-input-color:var(--ifm-color-white)}.navbar--primary{--ifm-navbar-background-color:var(--ifm-color-primary);--ifm-navbar-link-hover-color:var(--ifm-color-white);--ifm-menu-color-active:var(--ifm-color-white);--ifm-navbar-search-input-color:var(--ifm-color-emphasis-500)}.navbar__search-input{appearance:none;background:var(--ifm-navbar-search-input-background-color) var(--ifm-navbar-search-input-icon) no-repeat .75rem center/1rem 1rem;border:none;border-radius:2rem;color:var(--ifm-navbar-search-input-color);cursor:text;display:inline-block;font-size:1rem;height:2rem;padding:0 .5rem 0 2.25rem;width:12.5rem}.dropdownNavbarItemMobile_onuu,.pills__item,.tabs__item,[role=button],button{cursor:pointer}.navbar__search-input::placeholder{color:var(--ifm-navbar-search-input-placeholder-color)}.navbar-sidebar{background-color:var(--ifm-navbar-background-color);box-shadow:var(--ifm-global-shadow-md);position:fixed;transform:translate3d(-100%,0,0);transition-property:opacity,visibility,transform;width:var(--ifm-navbar-sidebar-width)}.navbar-sidebar--show .navbar-sidebar,.navbar-sidebar__items{transform:translateZ(0)}.navbar-sidebar--show .navbar-sidebar,.navbar-sidebar--show .navbar-sidebar__backdrop{opacity:1;visibility:visible}.navbar-sidebar__backdrop{background-color:#0009;position:fixed;right:0;transition-property:opacity,visibility}.navbar-sidebar__brand{align-items:center;box-shadow:var(--ifm-navbar-shadow);display:flex;flex:1;height:var(--ifm-navbar-height);padding:var(--ifm-navbar-padding-vertical) var(--ifm-navbar-padding-horizontal)}.navbar-sidebar__items{display:flex;height:calc(100% - var(--ifm-navbar-height));transition:transform var(--ifm-transition-fast) ease-in-out}.navbar-sidebar__items--show-secondary{transform:translate3d(calc((var(--ifm-navbar-sidebar-width))*-1),0,0)}.navbar-sidebar__item{flex-shrink:0;padding:.5rem;width:calc(var(--ifm-navbar-sidebar-width))}.navbar-sidebar__back{background:var(--ifm-menu-color-background-active);font-size:15px;font-weight:var(--ifm-button-font-weight);margin:0 0 .2rem -.5rem;padding:.6rem 1.5rem;position:relative;text-align:left;top:-.5rem;width:calc(100% + 1rem)}.navbar-sidebar__close{display:flex;margin-left:auto}.pagination{column-gap:var(--ifm-pagination-page-spacing);display:flex;font-size:var(--ifm-pagination-font-size);padding-left:0}.pagination--sm{--ifm-pagination-font-size:0.8rem;--ifm-pagination-padding-horizontal:0.8rem;--ifm-pagination-padding-vertical:0.2rem}.pagination--lg{--ifm-pagination-font-size:1.2rem;--ifm-pagination-padding-horizontal:1.2rem;--ifm-pagination-padding-vertical:0.3rem}.pagination__item{display:inline-flex}.pagination__item>span{padding:var(--ifm-pagination-padding-vertical)}.pagination__item--active .pagination__link{color:var(--ifm-pagination-color-active)}.pagination__item--active .pagination__link,.pagination__item:not(.pagination__item--active):hover .pagination__link{background:var(--ifm-pagination-item-active-background)}.pagination__item--disabled,.pagination__item[disabled]{opacity:.25;pointer-events:none}.pagination__link{border-radius:var(--ifm-pagination-border-radius);color:var(--ifm-font-color-base);display:inline-block;padding:var(--ifm-pagination-padding-vertical) var(--ifm-pagination-padding-horizontal);transition:background var(--ifm-transition-fast) var(--ifm-transition-timing-default)}.pagination__link:hover{text-decoration:none}.pagination-nav{display:grid;grid-gap:var(--ifm-spacing-horizontal);gap:var(--ifm-spacing-horizontal);grid-template-columns:repeat(2,1fr)}.pagination-nav__link{border:1px solid var(--ifm-color-emphasis-300);border-radius:var(--ifm-pagination-nav-border-radius);display:block;height:100%;line-height:var(--ifm-heading-line-height);padding:var(--ifm-global-spacing);transition:border-color var(--ifm-transition-fast) var(--ifm-transition-timing-default)}.pagination-nav__link:hover{border-color:var(--ifm-pagination-nav-color-hover);text-decoration:none}.pagination-nav__link--next{grid-column:2/3;text-align:right}.pagination-nav__label{font-size:var(--ifm-h4-font-size);font-weight:var(--ifm-heading-font-weight);word-break:break-word}.pagination-nav__link--prev .pagination-nav__label:before{content:"« "}.pagination-nav__link--next .pagination-nav__label:after{content:" »"}.pagination-nav__sublabel{color:var(--ifm-color-content-secondary);font-size:var(--ifm-h5-font-size);font-weight:var(--ifm-font-weight-semibold);margin-bottom:.25rem}.pills__item,.tabs{font-weight:var(--ifm-font-weight-bold)}.pills{display:flex;gap:var(--ifm-pills-spacing);padding-left:0}.pills__item{border-radius:.5rem;display:inline-block;padding:.25rem 1rem;transition:background var(--ifm-transition-fast) var(--ifm-transition-timing-default)}.tabs,:not(.containsTaskList_dMzw>li)>.containsTaskList_dMzw{padding-left:0}.pills__item--active{color:var(--ifm-pills-color-active)}.pills__item--active,.pills__item:not(.pills__item--active):hover{background:var(--ifm-pills-color-background-active)}.pills--block{justify-content:stretch}.pills--block .pills__item{flex-grow:1;text-align:center}.tabs{color:var(--ifm-tabs-color);display:flex;margin-bottom:0;overflow-x:auto}.tabs__item{border-bottom:3px solid #0000;border-radius:var(--ifm-global-radius);display:inline-flex;padding:var(--ifm-tabs-padding-vertical) var(--ifm-tabs-padding-horizontal);transition:background-color var(--ifm-transition-fast) var(--ifm-transition-timing-default)}.tabs__item--active{border-bottom-color:var(--ifm-tabs-color-active-border);border-bottom-left-radius:0;border-bottom-right-radius:0;color:var(--ifm-tabs-color-active)}.tabs__item:hover{background-color:var(--ifm-hover-overlay)}.tabs--block{justify-content:stretch}.tabs--block .tabs__item{flex-grow:1;justify-content:center}html[data-theme=dark]{--ifm-color-scheme:dark;--ifm-color-emphasis-0:var(--ifm-color-gray-1000);--ifm-color-emphasis-100:var(--ifm-color-gray-900);--ifm-color-emphasis-200:var(--ifm-color-gray-800);--ifm-color-emphasis-300:var(--ifm-color-gray-700);--ifm-color-emphasis-400:var(--ifm-color-gray-600);--ifm-color-emphasis-600:var(--ifm-color-gray-400);--ifm-color-emphasis-700:var(--ifm-color-gray-300);--ifm-color-emphasis-800:var(--ifm-color-gray-200);--ifm-color-emphasis-900:var(--ifm-color-gray-100);--ifm-color-emphasis-1000:var(--ifm-color-gray-0);--ifm-background-color:#1b1b1d;--ifm-background-surface-color:#242526;--ifm-hover-overlay:#ffffff0d;--ifm-color-content:#e3e3e3;--ifm-color-content-secondary:#fff;--ifm-breadcrumb-separator-filter:invert(64%) sepia(11%) saturate(0%) hue-rotate(149deg) brightness(99%) contrast(95%);--ifm-code-background:#ffffff1a;--ifm-scrollbar-track-background-color:#444;--ifm-scrollbar-thumb-background-color:#686868;--ifm-scrollbar-thumb-hover-background-color:#7a7a7a;--ifm-table-stripe-background:#ffffff12;--ifm-toc-border-color:var(--ifm-color-emphasis-200);--ifm-color-primary-contrast-background:#102445;--ifm-color-primary-contrast-foreground:#ebf2fc;--ifm-color-secondary-contrast-background:#474748;--ifm-color-secondary-contrast-foreground:#fdfdfe;--ifm-color-success-contrast-background:#003100;--ifm-color-success-contrast-foreground:#e6f6e6;--ifm-color-info-contrast-background:#193c47;--ifm-color-info-contrast-foreground:#eef9fd;--ifm-color-warning-contrast-background:#4d3800;--ifm-color-warning-contrast-foreground:#fff8e6;--ifm-color-danger-contrast-background:#4b1113;--ifm-color-danger-contrast-foreground:#ffebec;--docsearch-text-color:#f5f6f7;--docsearch-container-background:#090a11cc;--docsearch-modal-background:#15172a;--docsearch-modal-shadow:inset 1px 1px 0 0 #2c2e40,0 3px 8px 0 #000309;--docsearch-searchbox-background:#090a11;--docsearch-searchbox-focus-background:#000;--docsearch-hit-color:#bec3c9;--docsearch-hit-shadow:none;--docsearch-hit-background:#090a11;--docsearch-key-gradient:linear-gradient(-26.5deg,#565872,#31355b);--docsearch-key-shadow:inset 0 -2px 0 0 #282d55,inset 0 0 1px 1px #51577d,0 2px 2px 0 #0304094d;--docsearch-key-pressed-shadow:inset 0 -2px 0 0 #282d55,inset 0 0 1px 1px #51577d,0 1px 1px 0 rgba(3,4,9,.302);--docsearch-footer-background:#1e2136;--docsearch-footer-shadow:inset 0 1px 0 0 #494c6a80,0 -4px 8px 0 #0003;--docsearch-logo-color:#fff;--docsearch-muted-color:#7f8497}#nprogress .bar{background:var(--docusaurus-progress-bar-color);height:2px;left:0;position:fixed;top:0;width:100%;z-index:1031}#nprogress .peg{box-shadow:0 0 10px var(--docusaurus-progress-bar-color),0 0 5px var(--docusaurus-progress-bar-color);height:100%;opacity:1;position:absolute;right:0;transform:rotate(3deg) translateY(-4px);width:100px}*,::backdrop,:after,:before{--tw-border-spacing-x:0;--tw-border-spacing-y:0;--tw-translate-x:0;--tw-translate-y:0;--tw-rotate:0;--tw-skew-x:0;--tw-skew-y:0;--tw-scale-x:1;--tw-scale-y:1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness:proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-color:#3b82f680;--tw-ring-offset-shadow:0 0 #0000;--tw-ring-shadow:0 0 #0000;--tw-shadow:0 0 #0000;--tw-shadow-colored:0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: ;--tw-contain-size: ;--tw-contain-layout: ;--tw-contain-paint: ;--tw-contain-style: }*,:after,:before{border:0 solid #e5e7eb}:after,:before{--tw-content:""}:host,html{line-height:1.5;-webkit-text-size-adjust:100%;font-family:ui-sans-serif,system-ui,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol,Noto Color Emoji;font-feature-settings:normal;font-variation-settings:normal;tab-size:4;-webkit-tap-highlight-color:transparent}body{line-height:inherit}hr{border-top-width:1px;height:0}abbr:where([title]){-webkit-text-decoration:underline dotted;text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}b,strong{font-weight:bolder}code,kbd,pre,samp{font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace;font-feature-settings:normal;font-size:1em;font-variation-settings:normal}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative}sub{bottom:-.25em}sup{top:-.5em}table{display:block;margin-bottom:var(--ifm-spacing-vertical);border-collapse:collapse;border-color:inherit;text-indent:0}button,input,optgroup,select,textarea{color:inherit;font-family:inherit;font-feature-settings:inherit;font-size:100%;font-variation-settings:inherit;font-weight:inherit;letter-spacing:inherit;line-height:inherit;margin:0;padding:0}.admonitionHeading_S86Y code,button,select{text-transform:none}button,input:where([type=button]),input:where([type=reset]),input:where([type=submit]){-webkit-appearance:button;background-color:initial;background-image:none}:-moz-focusring{outline:auto}:-moz-ui-invalid{box-shadow:none}::-webkit-inner-spin-button,::-webkit-outer-spin-button{height:auto}[type=search]{-webkit-appearance:textfield;outline-offset:-2px}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}summary{display:list-item}menu,ol,ul{list-style:none;padding:0}textarea{resize:vertical}input::placeholder,textarea::placeholder{color:#9ca3af;opacity:1}:disabled{cursor:default}audio,canvas,embed,iframe,img,object,svg,video{display:block;vertical-align:middle}img,video{height:auto;max-width:100%}[hidden]:where(:not([hidden=until-found])){display:none}.visible{visibility:visible}.static{position:static}.absolute{position:absolute}.InstallationSnippet__CodeBlock,.live-wrap{position:relative}.grid{display:grid}.transform{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.resize{resize:both}.shadow{--tw-shadow:0 1px 3px 0 #0000001a,0 1px 2px -1px #0000001a;--tw-shadow-colored:0 1px 3px 0 var(--tw-shadow-color),0 1px 2px -1px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow,0 0 #0000),var(--tw-ring-shadow,0 0 #0000),var(--tw-shadow)}:root[data-theme=dark]{--ifm-footer-background-color:#171717;--ifm-navbar-background-color:#111;--ifm-background-color:#111;--ifm-toc-border-color:#27272a;--docsearch-modal-background:#18181b;--docsearch-footer-background:#18181b;--docsearch-searchbox-focus-background:#18181b;--docsearch-key-gradient:#27272a;--docsearch-key-shadow:none;--docsearch-footer-shadow:none;--docsearch-hit-background:#27272a}.live-wrap{height:350px;width:100%}}html ::selection{background-color:#0ea5e9bf;--tw-text-opacity:1;color:rgb(255 255 255/var(--tw-text-opacity))}html::selection{background-color:#0ea5e9bf;--tw-text-opacity:1;color:rgb(255 255 255/var(--tw-text-opacity))}.navbar{border-bottom:1px solid var(--ifm-toc-border-color)}[data-theme=dark] .shiki .code-title,[data-theme=dark] .shiki.github-dark{border-color:rgb(63 63 70/var(--tw-border-opacity));--tw-border-opacity:1}.buttons_AeoN,.docs-wrapper main>.container>.row,.docs-wrapper main>.homepage .navbar__inner>.row{justify-content:center}.container,.homepage .navbar__inner{margin-left:auto;margin-right:auto;max-width:var(--ifm-container-width-xl);width:100%}.homepage .main-wrapper{background:linear-gradient(180deg,#fff0,#fff 300px),radial-gradient(#d1d1d1 1px,#0000 0) 0 0/20px 20px fixed,radial-gradient(#d1d1d1 1px,#0000 0) 10px 10px/20px 20px fixed}[data-theme=dark] .homepage .main-wrapper{background:linear-gradient(180deg,#0000,#111 300px),radial-gradient(#313131 1px,#0000 0) 0 0/20px 20px fixed,radial-gradient(#313131 1px,#0000 0) 10px 10px/20px 20px fixed}.navbar-external-link svg{display:none}.markdown a,.pagination-nav__label,.theme-edit-this-page,.wordWrapButtonEnabled_xVKH .wordWrapButtonIcon_lZZU{color:var(--ifm-color-primary)}.markdown a:hover,.theme-edit-this-page:hover{color:var(--ifm-color-primary-dark)}.markdown hr{background-color:var(--ifm-toc-border-color);height:var(--ifm-hr-height);margin-bottom:1.5rem;margin-top:.5rem}.docusaurus-highlight-code-line{background-color:#484d5b;display:block;margin:0 calc(var(--ifm-pre-padding)*-1);padding:0 var(--ifm-pre-padding)}article{counter-reset:a}[aria-describedby=footnote-label]{color:inherit;counter-increment:a;cursor:default;outline:0;text-decoration:none}[aria-describedby=footnote-label]:after{color:#00f;content:"[" counter(a) "]";cursor:pointer;font-size:.5em;margin-left:2px;text-decoration:underline;vertical-align:super}.header-discord-link:before,.header-github-link:before,.header-twitter-link:before{height:1.5rem;width:1.5rem;--tw-content:"";content:var(--tw-content)}.DocSearch-Container a,.tag_OQUs:hover{text-decoration:none}[aria-describedby=footnote-label]:focus:after{outline:dotted thin;outline-offset:2px}[aria-label="Back to content"]{font-size:.8em}.footnotes{font-size:.9em;margin:auto;max-width:605px;padding:10px 0 60px}.footnotes :target{background:#ff0}.header-discord-link:before,.header-github-link:before,.header-twitter-link:before,[data-theme=dark] .header-discord-link:before,[data-theme=dark] .header-github-link:before,[data-theme=dark] .header-twitter-link:before{background-position:50%;background-repeat:no-repeat}.theme-doc-markdown.markdown table{display:table}.navbar-external-link,.theme-edit-this-page{align-items:center;display:none}.footer__item{height:2rem}.markdown h1,h2,h3,h4,h5{font-weight:700;line-height:1.5;margin-bottom:.25rem}.markdown h1{line-height:1}.markdown h2{font-size:2rem}.markdown h3{font-size:1.5rem;line-height:2rem}.markdown h4{font-size:1.25rem;line-height:1.75rem}.admonition-heading h5,.markdown h5{font-size:1.125rem;line-height:1.75rem}.markdown ul{padding-left:2rem;list-style-type:disc}.markdown blockquote{margin:0 0 var(--ifm-spacing-vertical)}.admonition-heading h5{align-items:center;display:flex}.theme-admonition a{font-weight:600}#sponsor-button,#tweet{--ifm-link-hover-decoration:none}.footer__item svg,[data-theme=dark] .shiki.min-light-with-diff,[data-theme=light] .shiki.github-dark{display:none}[data-theme=dark] .shiki.github-dark{background-color:#27272a80!important}[data-theme=dark] .shiki.github-dark .popover{border-width:1px;box-shadow:0 2px 4px -1px #0003,0 4px 5px 0 #00000024,0 1px 10px 0 #0000001f}[data-theme=dark] .shiki.github-dark .popover,[data-theme=dark] .shiki.github-dark .popover .arrow{--tw-border-opacity:1;border-color:rgb(63 63 70/var(--tw-border-opacity));--tw-bg-opacity:1;background-color:rgb(39 39 42/var(--tw-bg-opacity))}[data-theme=light] .shiki.min-light-with-diff .popover{border-width:1px}[data-theme=light] .shiki.min-light-with-diff .popover,[data-theme=light] .shiki.min-light-with-diff .popover .arrow{--tw-border-opacity:1;border-color:rgb(212 212 216/var(--tw-border-opacity));--tw-bg-opacity:1;background-color:rgb(244 244 245/var(--tw-bg-opacity))}.markdown ol,.markdown ul{list-style-position:inside}.markdown ol{list-style-type:decimal}.markdown ol li{margin-top:1rem}.DocSearch-Button-Container,.breadcrumbs,.breadcrumbs__item{align-items:center;display:flex}.header-social-link:hover{opacity:.6;transition-duration:.15s;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke;transition-timing-function:cubic-bezier(.4,0,.2,1)}.header-github-link:before{display:flex;background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 496 512'%3E%3C!--! Font Awesome Pro 6.2.0 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license (Commercial License) Copyright 2022 Fonticons Inc.--%3E%3Cpath d='M165.9 397.4c0 2-2.3 3.6-5.2 3.6-3.3.3-5.6-1.3-5.6-3.6 0-2 2.3-3.6 5.2-3.6 3-.3 5.6 1.3 5.6 3.6m-31.1-4.5c-.7 2 1.3 4.3 4.3 4.9 2.6 1 5.6 0 6.2-2s-1.3-4.3-4.3-5.2c-2.6-.7-5.5.3-6.2 2.3m44.2-1.7c-2.9.7-4.9 2.6-4.6 4.9.3 2 2.9 3.3 5.9 2.6 2.9-.7 4.9-2.6 4.6-4.6-.3-1.9-3-3.2-5.9-2.9M244.8 8C106.1 8 0 113.3 0 252c0 110.9 69.8 205.8 169.5 239.2 12.8 2.3 17.3-5.6 17.3-12.1 0-6.2-.3-40.4-.3-61.4 0 0-70 15-84.7-29.8 0 0-11.4-29.1-27.8-36.6 0 0-22.9-15.7 1.6-15.4 0 0 24.9 2 38.6 25.8 21.9 38.6 58.6 27.5 72.9 20.9 2.3-16 8.8-27.1 16-33.7-55.9-6.2-112.3-14.3-112.3-110.5 0-27.5 7.6-41.3 23.6-58.9-2.6-6.5-11.1-33.3 2.6-67.9 20.9-6.5 69 27 69 27 20-5.6 41.5-8.5 62.8-8.5s42.8 2.9 62.8 8.5c0 0 48.1-33.6 69-27 13.7 34.7 5.2 61.4 2.6 67.9 16 17.7 25.8 31.5 25.8 58.9 0 96.5-58.9 104.2-114.8 110.5 9.2 7.9 17 22.9 17 46.4 0 33.7-.3 75.4-.3 83.6 0 6.5 4.6 14.4 17.3 12.1C428.2 457.8 496 362.9 496 252 496 113.3 383.5 8 244.8 8M97.2 352.9c-1.3 1-1 3.3.7 5.2 1.6 1.6 3.9 2.3 5.2 1 1.3-1 1-3.3-.7-5.2-1.6-1.6-3.9-2.3-5.2-1m-10.8-8.1c-.7 1.3.3 2.9 2.3 3.9 1.6 1 3.6.7 4.3-.7.7-1.3-.3-2.9-2.3-3.9-2-.6-3.6-.3-4.3.7m32.4 35.6c-1.6 1.3-1 4.3 1.3 6.2 2.3 2.3 5.2 2.6 6.5 1 1.3-1.3.7-4.3-1.3-6.2-2.2-2.3-5.2-2.6-6.5-1m-11.4-14.7c-1.6 1-1.6 3.6 0 5.9s4.3 3.3 5.6 2.3c1.6-1.3 1.6-3.9 0-6.2-1.4-2.3-4-3.3-5.6-2'/%3E%3C/svg%3E")}[data-theme=dark] .header-github-link:before{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='%23fff' viewBox='0 0 496 512'%3E%3C!--! Font Awesome Pro 6.2.0 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license (Commercial License) Copyright 2022 Fonticons Inc.--%3E%3Cpath d='M165.9 397.4c0 2-2.3 3.6-5.2 3.6-3.3.3-5.6-1.3-5.6-3.6 0-2 2.3-3.6 5.2-3.6 3-.3 5.6 1.3 5.6 3.6m-31.1-4.5c-.7 2 1.3 4.3 4.3 4.9 2.6 1 5.6 0 6.2-2s-1.3-4.3-4.3-5.2c-2.6-.7-5.5.3-6.2 2.3m44.2-1.7c-2.9.7-4.9 2.6-4.6 4.9.3 2 2.9 3.3 5.9 2.6 2.9-.7 4.9-2.6 4.6-4.6-.3-1.9-3-3.2-5.9-2.9M244.8 8C106.1 8 0 113.3 0 252c0 110.9 69.8 205.8 169.5 239.2 12.8 2.3 17.3-5.6 17.3-12.1 0-6.2-.3-40.4-.3-61.4 0 0-70 15-84.7-29.8 0 0-11.4-29.1-27.8-36.6 0 0-22.9-15.7 1.6-15.4 0 0 24.9 2 38.6 25.8 21.9 38.6 58.6 27.5 72.9 20.9 2.3-16 8.8-27.1 16-33.7-55.9-6.2-112.3-14.3-112.3-110.5 0-27.5 7.6-41.3 23.6-58.9-2.6-6.5-11.1-33.3 2.6-67.9 20.9-6.5 69 27 69 27 20-5.6 41.5-8.5 62.8-8.5s42.8 2.9 62.8 8.5c0 0 48.1-33.6 69-27 13.7 34.7 5.2 61.4 2.6 67.9 16 17.7 25.8 31.5 25.8 58.9 0 96.5-58.9 104.2-114.8 110.5 9.2 7.9 17 22.9 17 46.4 0 33.7-.3 75.4-.3 83.6 0 6.5 4.6 14.4 17.3 12.1C428.2 457.8 496 362.9 496 252 496 113.3 383.5 8 244.8 8M97.2 352.9c-1.3 1-1 3.3.7 5.2 1.6 1.6 3.9 2.3 5.2 1 1.3-1 1-3.3-.7-5.2-1.6-1.6-3.9-2.3-5.2-1m-10.8-8.1c-.7 1.3.3 2.9 2.3 3.9 1.6 1 3.6.7 4.3-.7.7-1.3-.3-2.9-2.3-3.9-2-.6-3.6-.3-4.3.7m32.4 35.6c-1.6 1.3-1 4.3 1.3 6.2 2.3 2.3 5.2 2.6 6.5 1 1.3-1.3.7-4.3-1.3-6.2-2.2-2.3-5.2-2.6-6.5-1m-11.4-14.7c-1.6 1-1.6 3.6 0 5.9s4.3 3.3 5.6 2.3c1.6-1.3 1.6-3.9 0-6.2-1.4-2.3-4-3.3-5.6-2'/%3E%3C/svg%3E")}.header-twitter-link:before{display:flex;background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 512 512'%3E%3C!--! Font Awesome Pro 6.2.0 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license (Commercial License) Copyright 2022 Fonticons Inc.--%3E%3Cpath d='M389.2 48h70.6L305.6 224.2 487 464H345L233.7 318.6 106.5 464H35.8l164.9-188.5L26.8 48h145.6l100.5 132.9zm-24.8 373.8h39.1L151.1 88h-42z'/%3E%3C/svg%3E")}[data-theme=dark] .header-twitter-link:before{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='%23fff' viewBox='0 0 512 512'%3E%3C!--! Font Awesome Pro 6.2.0 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license (Commercial License) Copyright 2022 Fonticons Inc.--%3E%3Cpath d='M389.2 48h70.6L305.6 224.2 487 464H345L233.7 318.6 106.5 464H35.8l164.9-188.5L26.8 48h145.6l100.5 132.9zm-24.8 373.8h39.1L151.1 88h-42z'/%3E%3C/svg%3E")}.header-discord-link:before{display:flex;background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 640 512'%3E%3C!--! Font Awesome Pro 6.2.0 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license (Commercial License) Copyright 2022 Fonticons Inc.--%3E%3Cpath d='M524.531 69.836a1.5 1.5 0 0 0-.764-.7A485 485 0 0 0 404.081 32.03a1.82 1.82 0 0 0-1.923.91 338 338 0 0 0-14.9 30.6 447.9 447.9 0 0 0-134.426 0 310 310 0 0 0-15.135-30.6 1.89 1.89 0 0 0-1.924-.91 483.7 483.7 0 0 0-119.688 37.107 1.7 1.7 0 0 0-.788.676C39.068 183.651 18.186 294.69 28.43 404.354a2.02 2.02 0 0 0 .765 1.375 487.7 487.7 0 0 0 146.825 74.189 1.9 1.9 0 0 0 2.063-.676A348 348 0 0 0 208.12 430.4a1.86 1.86 0 0 0-1.019-2.588 321 321 0 0 1-45.868-21.853 1.885 1.885 0 0 1-.185-3.126 251 251 0 0 0 9.109-7.137 1.82 1.82 0 0 1 1.9-.256c96.229 43.917 200.41 43.917 295.5 0a1.81 1.81 0 0 1 1.924.233 235 235 0 0 0 9.132 7.16 1.884 1.884 0 0 1-.162 3.126 301.4 301.4 0 0 1-45.89 21.83 1.875 1.875 0 0 0-1 2.611 391 391 0 0 0 30.014 48.815 1.86 1.86 0 0 0 2.063.7A486 486 0 0 0 610.7 405.729a1.88 1.88 0 0 0 .765-1.352c12.264-126.783-20.532-236.912-86.934-334.541M222.491 337.58c-28.972 0-52.844-26.587-52.844-59.239s23.409-59.241 52.844-59.241c29.665 0 53.306 26.82 52.843 59.239 0 32.654-23.41 59.241-52.843 59.241m195.38 0c-28.971 0-52.843-26.587-52.843-59.239s23.409-59.241 52.843-59.241c29.667 0 53.307 26.82 52.844 59.239 0 32.654-23.177 59.241-52.844 59.241'/%3E%3C/svg%3E")}[data-theme=dark] .header-discord-link:before{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='%23fff' viewBox='0 0 640 512'%3E%3C!--! Font Awesome Pro 6.2.0 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license (Commercial License) Copyright 2022 Fonticons Inc.--%3E%3Cpath d='M524.531 69.836a1.5 1.5 0 0 0-.764-.7A485 485 0 0 0 404.081 32.03a1.82 1.82 0 0 0-1.923.91 338 338 0 0 0-14.9 30.6 447.9 447.9 0 0 0-134.426 0 310 310 0 0 0-15.135-30.6 1.89 1.89 0 0 0-1.924-.91 483.7 483.7 0 0 0-119.688 37.107 1.7 1.7 0 0 0-.788.676C39.068 183.651 18.186 294.69 28.43 404.354a2.02 2.02 0 0 0 .765 1.375 487.7 487.7 0 0 0 146.825 74.189 1.9 1.9 0 0 0 2.063-.676A348 348 0 0 0 208.12 430.4a1.86 1.86 0 0 0-1.019-2.588 321 321 0 0 1-45.868-21.853 1.885 1.885 0 0 1-.185-3.126 251 251 0 0 0 9.109-7.137 1.82 1.82 0 0 1 1.9-.256c96.229 43.917 200.41 43.917 295.5 0a1.81 1.81 0 0 1 1.924.233 235 235 0 0 0 9.132 7.16 1.884 1.884 0 0 1-.162 3.126 301.4 301.4 0 0 1-45.89 21.83 1.875 1.875 0 0 0-1 2.611 391 391 0 0 0 30.014 48.815 1.86 1.86 0 0 0 2.063.7A486 486 0 0 0 610.7 405.729a1.88 1.88 0 0 0 .765-1.352c12.264-126.783-20.532-236.912-86.934-334.541M222.491 337.58c-28.972 0-52.844-26.587-52.844-59.239s23.409-59.241 52.844-59.241c29.665 0 53.306 26.82 52.843 59.239 0 32.654-23.41 59.241-52.843 59.241m195.38 0c-28.971 0-52.843-26.587-52.843-59.239s23.409-59.241 52.843-59.241c29.667 0 53.307 26.82 52.844 59.239 0 32.654-23.177 59.241-52.844 59.241'/%3E%3C/svg%3E")}#from-github{margin-top:50px}.markdown .github-comment{margin-bottom:2rem}.navbar__link{overflow:hidden}.pagination-nav__link{border-style:none}.shiki .code-container{font-size:.75rem;line-height:1rem}.DocSearch.DocSearch-Button{border-radius:.375rem;--tw-bg-opacity:1;background-color:rgb(244 244 245/var(--tw-bg-opacity))}.DocSearch.DocSearch-Button:is([data-theme=dark] *){--tw-bg-opacity:1;background-color:rgb(39 39 42/var(--tw-bg-opacity))}.DocSearch-Button-Keys{border-radius:.125rem!important;border-width:1px!important;gap:.25rem!important;margin-right:.25rem!important;min-width:auto!important;padding-left:.25rem!important;padding-right:.25rem!important}.DocSearch-Button-Keys:is([data-theme=dark] *){background-color:#3f3f4680!important;border-color:#52525b80!important}.DocSearch-Button-Key{background:#0000!important;border-style:none!important;font-size:.875rem!important;height:auto!important;line-height:1.25rem!important;margin-right:0!important;padding:0!important;top:0!important;width:auto!important;--tw-shadow:0 0 #0000!important;--tw-shadow-colored:0 0 #0000!important;box-shadow:var(--tw-ring-offset-shadow,0 0 #0000),var(--tw-ring-shadow,0 0 #0000),var(--tw-shadow)!important}.DocSearch-Button-Container svg{height:1rem;margin-left:.25rem;margin-right:.25rem;width:1rem}.DocSearch-Button-Container span{font-size:.875rem;line-height:1.25rem}.DocSearch-Logo a{align-items:center;font-size:.75rem;line-height:1rem}.DocSearch-Logo a svg{width:4rem}.InstallationSnippet__CodeBlock .copy-button{display:none}.tag_OQUs{border:1px solid var(--docusaurus-tag-list-border);transition:border var(--ifm-transition-fast)}.tag_OQUs:hover{--docusaurus-tag-list-border:var(--ifm-link-color)}.tagRegular_x8qX{border-radius:var(--ifm-global-radius);font-size:90%;padding:.2rem .5rem .3rem}.tagWithCount_rnOv{align-items:center;border-left:0;display:flex;padding:0 .5rem 0 1rem;position:relative}.tagWithCount_rnOv:after,.tagWithCount_rnOv:before{border:1px solid var(--docusaurus-tag-list-border);content:"";position:absolute;top:50%;transition:inherit}.tagWithCount_rnOv:before{border-bottom:0;border-right:0;height:1.18rem;right:100%;transform:translate(50%,-50%) rotate(-45deg);width:1.18rem}.tagWithCount_rnOv:after{border-radius:50%;height:.5rem;left:0;transform:translateY(-50%);width:.5rem}.tagWithCount_rnOv span{background:var(--ifm-color-secondary);border-radius:var(--ifm-global-radius);color:var(--ifm-color-black);font-size:.7rem;line-height:1.2;margin-left:.3rem;padding:.1rem .4rem}.tags_ipvP{display:inline}.tag_E4pg{display:inline-block;margin:0 .4rem .5rem 0}.iconEdit_V72j{margin-right:.3em;vertical-align:sub}.lastUpdated_LloW{font-size:smaller;font-style:italic;margin-top:.2rem}.tocCollapsibleButton_yTCM{align-items:center;display:flex;font-size:inherit;justify-content:space-between;padding:.4rem .8rem;width:100%}.tocCollapsibleButton_yTCM:after{background:var(--ifm-menu-link-sublist-icon) 50% 50%/2rem 2rem no-repeat;content:"";filter:var(--ifm-menu-link-sublist-icon-filter);height:1.25rem;transform:rotate(180deg);transition:transform var(--ifm-transition-fast);width:1.25rem}.tocCollapsibleButtonExpanded_ldvk:after,.tocCollapsibleExpanded_bf6e{transform:none}.tocCollapsible_snip{background-color:var(--ifm-menu-color-background-active);border-radius:var(--ifm-global-radius);margin:1rem 0}.tocCollapsibleContent_RPSy>ul{border-left:none;border-top:1px solid var(--ifm-color-emphasis-300);font-size:15px;padding:.2rem 0}.tocCollapsibleContent_RPSy ul li{margin:.4rem .8rem}.tocCollapsibleContent_RPSy a{display:block}.tableOfContents_GM8w{max-height:calc(100vh - var(--ifm-navbar-height) - 2rem);overflow-y:auto;position:sticky;top:calc(var(--ifm-navbar-height) + 1rem)}.backToTopButton_vwdS{background-color:var(--ifm-color-emphasis-200);border-radius:50%;bottom:1.3rem;box-shadow:var(--ifm-global-shadow-lw);height:3rem;opacity:0;position:fixed;right:1.3rem;transform:scale(0);transition:all var(--ifm-transition-fast) var(--ifm-transition-timing-default);visibility:hidden;width:3rem;z-index:calc(var(--ifm-z-index-fixed) - 1)}.backToTopButton_vwdS:after{background-color:var(--ifm-color-emphasis-1000);content:" ";display:inline-block;height:100%;-webkit-mask:var(--ifm-menu-link-sublist-icon) 50%/2rem 2rem no-repeat;mask:var(--ifm-menu-link-sublist-icon) 50%/2rem 2rem no-repeat;width:100%}.backToTopButtonShow_WR2R{opacity:1;transform:scale(1);visibility:visible}.DocSearch-Button{align-items:center;background:var(--docsearch-searchbox-background);border:0;border-radius:40px;color:var(--docsearch-muted-color);cursor:pointer;display:flex;font-weight:500;height:36px;justify-content:space-between;padding:0 8px;-webkit-user-select:none;user-select:none}.DocSearch-Button:active,.DocSearch-Button:focus,.DocSearch-Button:hover{background:var(--docsearch-searchbox-focus-background);box-shadow:var(--docsearch-searchbox-shadow);color:var(--docsearch-text-color);outline:0}.DocSearch-Search-Icon{stroke-width:1.6}.DocSearch-Hit-Tree,.DocSearch-Hit-action,.DocSearch-Hit-icon,.DocSearch-Reset{stroke-width:var(--docsearch-icon-stroke-width)}.DocSearch-Button .DocSearch-Search-Icon{color:var(--docsearch-text-color)}.DocSearch-Button-Placeholder{font-size:1rem;padding:0 12px 0 6px}.DocSearch-Button-Keys{display:flex;min-width:calc(40px + .8em)}.DocSearch-Button-Key{align-items:center;background:var(--docsearch-key-gradient);border:0;border-radius:3px;box-shadow:var(--docsearch-key-shadow);color:var(--docsearch-muted-color);display:flex;justify-content:center;position:relative}.DocSearch-Button-Key--pressed{box-shadow:var(--docsearch-key-pressed-shadow);transform:translate3d(0,1px,0)}.DocSearch--active{overflow:hidden!important}.DocSearch-Container{background-color:var(--docsearch-container-background);height:100vh;left:0;position:fixed;top:0;width:100vw;z-index:200}.DocSearch-Hit[aria-selected=true] mark,.content_fPKB a{text-decoration:underline}.DocSearch-Link{appearance:none;background:none;border:0;color:var(--docsearch-highlight-color);cursor:pointer;font:inherit;margin:0;padding:0}.DocSearch-Modal{background:var(--docsearch-modal-background);border-radius:6px;box-shadow:var(--docsearch-modal-shadow);flex-direction:column;margin:60px auto auto;max-width:var(--docsearch-modal-width);position:relative}.DocSearch-SearchBar{display:flex;padding:var(--docsearch-spacing) var(--docsearch-spacing) 0}.DocSearch-Form{align-items:center;background:var(--docsearch-searchbox-focus-background);border-radius:4px;box-shadow:var(--docsearch-searchbox-shadow);display:flex;height:var(--docsearch-searchbox-height);margin:0;padding:0 var(--docsearch-spacing);position:relative;width:100%}.DocSearch-Input{appearance:none;background:#0000;border:0;color:var(--docsearch-text-color);flex:1;font:inherit;font-size:1.2em;height:100%;outline:0;padding:0 0 0 8px;width:80%}.DocSearch-Input::placeholder{color:var(--docsearch-muted-color);opacity:1}.DocSearch-Input::-webkit-search-cancel-button,.DocSearch-Input::-webkit-search-decoration,.DocSearch-Input::-webkit-search-results-button,.DocSearch-Input::-webkit-search-results-decoration{display:none}.DocSearch-LoadingIndicator,.DocSearch-MagnifierLabel,.DocSearch-Reset{margin:0;padding:0}.DocSearch-Container--Stalled .DocSearch-LoadingIndicator,.DocSearch-MagnifierLabel,.DocSearch-Reset{align-items:center;color:var(--docsearch-highlight-color);display:flex;justify-content:center}.DocSearch-Cancel,.DocSearch-Container--Stalled .DocSearch-MagnifierLabel,.DocSearch-LoadingIndicator,.DocSearch-Reset[hidden]{display:none}.DocSearch-Reset{animation:.1s ease-in forwards a;appearance:none;background:none;border:0;border-radius:50%;color:var(--docsearch-icon-color);cursor:pointer;padding:2px;right:0}.DocSearch-Help,.DocSearch-HitsFooter,.DocSearch-Label{color:var(--docsearch-muted-color)}.DocSearch-Reset:hover{color:var(--docsearch-highlight-color)}.DocSearch-LoadingIndicator svg,.DocSearch-MagnifierLabel svg{height:24px;width:24px}.DocSearch-Dropdown{max-height:calc(var(--docsearch-modal-height) - var(--docsearch-searchbox-height) - var(--docsearch-spacing) - var(--docsearch-footer-height));min-height:var(--docsearch-spacing);overflow-y:auto;overflow-y:overlay;padding:0 var(--docsearch-spacing);scrollbar-color:var(--docsearch-muted-color) var(--docsearch-modal-background);scrollbar-width:thin}.DocSearch-Dropdown::-webkit-scrollbar{width:12px}.DocSearch-Dropdown::-webkit-scrollbar-track{background:#0000}.DocSearch-Dropdown::-webkit-scrollbar-thumb{background-color:var(--docsearch-muted-color);border:3px solid var(--docsearch-modal-background);border-radius:20px}.DocSearch-Dropdown ul{list-style:none;margin:0;padding:0}.DocSearch-Label{font-size:.75em;line-height:1.6em}.DocSearch-Help{font-size:.9em;margin:0;-webkit-user-select:none;user-select:none}.DocSearch-Title{font-size:1.2em}.DocSearch-Logo a,.ol-scale-bar-inner{display:flex}.DocSearch-Logo svg{color:var(--docsearch-logo-color);margin-left:8px}.DocSearch-Hits:last-of-type{margin-bottom:24px}.DocSearch-Hits mark{background:none;color:var(--docsearch-highlight-color)}.DocSearch-HitsFooter{display:flex;font-size:.85em;justify-content:center;margin-bottom:var(--docsearch-spacing);padding:var(--docsearch-spacing)}.DocSearch-HitsFooter a{border-bottom:1px solid;color:inherit}.DocSearch-Hit{border-radius:4px;display:flex;padding-bottom:4px;position:relative}.DocSearch-Hit--deleting{opacity:0;transition:.25s linear}.DocSearch-Hit--favoriting{transform:scale(0);transform-origin:top center;transition:.25s linear .25s}.DocSearch-Hit a{background:var(--docsearch-hit-background);border-radius:4px;box-shadow:var(--docsearch-hit-shadow);display:block;padding-left:var(--docsearch-spacing);width:100%}.DocSearch-Hit-source{background:var(--docsearch-modal-background);color:var(--docsearch-highlight-color);font-size:.85em;font-weight:600;line-height:32px;margin:0 -4px;padding:8px 4px 0;position:sticky;top:0;z-index:10}.DocSearch-Hit-Tree{color:var(--docsearch-muted-color);height:var(--docsearch-hit-height);opacity:.5;width:24px}.DocSearch-Hit[aria-selected=true] a{background-color:var(--docsearch-highlight-color)}.DocSearch-Hit-Container{align-items:center;color:var(--docsearch-hit-color);display:flex;flex-direction:row;height:var(--docsearch-hit-height);padding:0 var(--docsearch-spacing) 0 0}.DocSearch-Hit-icon{height:20px;width:20px}.DocSearch-Hit-action,.DocSearch-Hit-icon{color:var(--docsearch-muted-color)}.DocSearch-Hit-action{align-items:center;display:flex;height:22px;width:22px}.DocSearch-Hit-action svg{display:block;height:18px;width:18px}.DocSearch-Hit-action+.DocSearch-Hit-action{margin-left:6px}.DocSearch-Hit-action-button{appearance:none;background:none;border:0;border-radius:50%;color:inherit;cursor:pointer;padding:2px}#__docusaurus-base-url-issue-banner-container,.docSidebarContainer_jkcN,.navbarSearchContainer_Wtr3:empty,.ol-attribution.ol-collapsed ul,.ol-attribution.ol-uncollapsible button,.ol-overviewmap.ol-collapsed .ol-overviewmap-map,.ol-overviewmap.ol-uncollapsible button,.ol-unsupported,.sidebarLogo_B5uc,.themedComponent_F81p,[data-theme=dark] .lightToggleIcon_QtBs,[data-theme=light] .darkToggleIcon_tOQc,html[data-announcement-bar-initially-dismissed=true] .announcementBar_qOfF,svg.DocSearch-Hit-Select-Icon{display:none}.DocSearch-Hit[aria-selected=true] .DocSearch-Hit-Select-Icon,.ol-overviewmap .ol-overviewmap-map,.ol-overviewmap button{display:block}.DocSearch-Hit-action-button:focus,.DocSearch-Hit-action-button:hover{background:#0003;transition:background-color .1s ease-in}.DocSearch-Hit-action-button:focus path,.DocSearch-Hit-action-button:hover path{fill:#fff}.DocSearch-Hit-content-wrapper{display:flex;flex:1 1 auto;flex-direction:column;font-weight:500;justify-content:center;line-height:1.2em;margin:0 8px;overflow-x:hidden;position:relative;width:80%}.DocSearch-Hit-title{font-size:.9em}.DocSearch-Hit-path{color:var(--docsearch-muted-color);font-size:.75em}.DocSearch-Hit[aria-selected=true] .DocSearch-Hit-Tree,.DocSearch-Hit[aria-selected=true] .DocSearch-Hit-action,.DocSearch-Hit[aria-selected=true] .DocSearch-Hit-icon,.DocSearch-Hit[aria-selected=true] .DocSearch-Hit-path,.DocSearch-Hit[aria-selected=true] .DocSearch-Hit-text,.DocSearch-Hit[aria-selected=true] .DocSearch-Hit-title,.DocSearch-Hit[aria-selected=true] mark{color:var(--docsearch-hit-active-color)!important}.DocSearch-ErrorScreen,.DocSearch-NoResults,.DocSearch-StartScreen{font-size:.9em;margin:0 auto;padding:36px 0;text-align:center;width:80%}.DocSearch-Screen-Icon{color:var(--docsearch-muted-color);padding-bottom:12px}.DocSearch-NoResults-Prefill-List{display:inline-block;padding-bottom:24px;text-align:left}.DocSearch-NoResults-Prefill-List ul{display:inline-block;padding:8px 0 0}.DocSearch-NoResults-Prefill-List li{list-style-position:inside;list-style-type:"» "}.DocSearch-Prefill{appearance:none;background:none;border:0;border-radius:1em;color:var(--docsearch-highlight-color);cursor:pointer;display:inline-block;font-size:1em;font-weight:700;padding:0}.DocSearch-Prefill:focus,.DocSearch-Prefill:hover{outline:0;text-decoration:underline}.DocSearch-Footer{align-items:center;background:var(--docsearch-footer-background);border-radius:0 0 8px 8px;box-shadow:var(--docsearch-footer-shadow);display:flex;flex-direction:row-reverse;flex-shrink:0;height:var(--docsearch-footer-height);justify-content:space-between;padding:0 var(--docsearch-spacing);position:relative;-webkit-user-select:none;user-select:none;width:100%;z-index:300}.DocSearch-Commands li,.DocSearch-Commands-Key,.buttons_AeoN,.features_cAfv{align-items:center;display:flex}.DocSearch-Commands{color:var(--docsearch-muted-color);display:flex;list-style:none;margin:0;padding:0}.DocSearch-Commands li:not(:last-of-type){margin-right:.8em}.DocSearch-Commands-Key{background:var(--docsearch-key-gradient);border:0;border-radius:2px;box-shadow:var(--docsearch-key-shadow);color:var(--docsearch-muted-color);height:18px;justify-content:center;margin-right:.4em;padding:0 0 1px;width:20px}.DocSearch-VisuallyHiddenForAccessibility{clip:rect(0 0 0 0);clip-path:inset(50%);height:1px;overflow:hidden;position:absolute;white-space:nowrap;width:1px}@keyframes a{0%{opacity:0}to{opacity:1}}.DocSearch-Button{margin:0;transition:all var(--ifm-transition-fast) var(--ifm-transition-timing-default)}.DocSearch-Container,.skipToContent_QVIQ{z-index:calc(var(--ifm-z-index-fixed) + 1)}.skipToContent_QVIQ{background-color:var(--ifm-background-surface-color);color:var(--ifm-color-emphasis-900);left:100%;padding:calc(var(--ifm-global-spacing)/2) var(--ifm-global-spacing);position:fixed;top:1rem}.skipToContent_QVIQ:focus{box-shadow:var(--ifm-global-shadow-md);left:1rem}.closeButton_S1mM{line-height:0;padding:0}.content_fPKB{font-size:85%;padding:5px 0;text-align:center}.content_fPKB a{color:inherit}.ol-attribution a,.ol-control button{color:var(--ol-subtle-foreground-color)}.announcementBar_qOfF{align-items:center;background-color:var(--ifm-color-white);border-bottom:1px solid var(--ifm-color-emphasis-100);color:var(--ifm-color-black);display:flex;height:var(--docusaurus-announcement-bar-height)}.playgroundHeader_kiMI,.toggleButton_pU7A:hover{background:var(--ifm-color-emphasis-200)}.announcementBarPlaceholder_YaKJ{flex:0 0 10px}.announcementBarClose_eKj2{align-self:stretch;flex:0 0 30px}.toggle_SFT4{height:2rem;width:2rem}.toggleButton_pU7A{align-items:center;border-radius:50%;display:flex;height:100%;justify-content:center;transition:background var(--ifm-transition-fast);width:100%}.toggleButtonDisabled_QGDp{cursor:not-allowed}.darkNavbarColorModeToggle_ndZT:hover{background:var(--ifm-color-gray-800)}[data-theme=dark] .themedComponent--dark_mJqq,[data-theme=light] .themedComponent--light_Z2yz,html:not([data-theme]) .themedComponent--light_Z2yz{display:initial}[data-theme=dark]:root{--docusaurus-collapse-button-bg:#ffffff0d;--docusaurus-collapse-button-bg-hover:#ffffff1a}.collapseSidebarButton_Vrli{display:none;margin:0}.iconExternalLink_xJs0{margin-left:.3rem}.docMainContainer_CVH1,.docRoot_qIk4{display:flex;width:100%}.docsWrapper_hY5S{display:flex;flex:1 0 auto}.iconLanguage_tic_{margin-right:5px;vertical-align:text-bottom}.navbarHideable_ni0E{transition:transform var(--ifm-transition-fast) ease}.navbarHidden_fixI{transform:translate3d(0,calc(-100% - 2px),0)}.errorBoundaryError_tglG{color:red;white-space:pre-wrap}.errorBoundaryFallback_0ktV{color:red;padding:.55rem}body:not(.navigation-with-keyboard) :not(input):focus{outline:0}.footerLogoLink_ohi1{opacity:.5;transition:opacity var(--ifm-transition-fast) var(--ifm-transition-timing-default)}.footerLogoLink_ohi1:hover,.hash-link:focus,:hover>.hash-link{opacity:1}.anchorWithStickyNavbar_UZ0k{scroll-margin-top:calc(var(--ifm-navbar-height) + .5rem)}.anchorWithHideOnScrollNavbar_xFlu{scroll-margin-top:.5rem}.hash-link{opacity:0;padding-left:.5rem;transition:opacity var(--ifm-transition-fast);-webkit-user-select:none;user-select:none}.hash-link:before{content:"#"}.mainWrapper_nb_y{display:flex;flex:1 0 auto;flex-direction:column}.docusaurus-mt-lg{margin-top:3rem}#__docusaurus{display:flex;flex-direction:column;min-height:100%}.playgroundContainer_MGRv{border-radius:var(--ifm-global-radius);box-shadow:var(--ifm-global-shadow-lw);margin-bottom:var(--ifm-leading);overflow:hidden}.playgroundHeader_kiMI{color:var(--ifm-color-content);font-size:var(--ifm-code-font-size);font-weight:700;letter-spacing:.08rem;padding:.75rem}.playgroundHeader_kiMI:first-of-type{background:var(--ifm-color-emphasis-600);color:var(--ifm-color-content-inverse)}.playgroundEditor_UV9g{direction:ltr;font:var(--ifm-code-font-size)/var(--ifm-pre-line-height) var(--ifm-font-family-monospace)!important}.playgroundPreview_myh2{background-color:var(--ifm-pre-background);padding:1rem}.ol-attribution:not(.ol-collapsed),.ol-scale-line{background:var(--ol-partial-background-color)}:host,:root{--ol-background-color:#fff;--ol-accent-background-color:#f5f5f5;--ol-subtle-background-color:#80808040;--ol-partial-background-color:#ffffffbf;--ol-foreground-color:#333;--ol-subtle-foreground-color:#666;--ol-brand-color:#0af}.ol-box{background-color:var(--ol-partial-background-color);border:1.5px solid var(--ol-background-color);border-radius:2px}.ol-mouse-position{position:absolute;right:8px;top:8px}.ol-scale-line{border-radius:4px;bottom:8px;left:8px;padding:2px;position:absolute}.ol-scale-line-inner{border:1px solid var(--ol-subtle-foreground-color);border-top:none;color:var(--ol-foreground-color);font-size:10px;margin:1px;text-align:center;transition:.25s;will-change:contents,width}.ol-scale-bar{bottom:8px;left:8px;position:absolute}.ol-scale-step-marker{background-color:var(--ol-foreground-color);float:right;height:15px;width:1px;z-index:10}.ol-scale-step-text{bottom:-5px;font-size:10px;z-index:11}.ol-scale-step-text,.ol-scale-text{color:var(--ol-foreground-color);position:absolute;text-shadow:-1.5px 0 var(--ol-partial-background-color),0 1.5px var(--ol-partial-background-color),1.5px 0 var(--ol-partial-background-color),0 -1.5px var(--ol-partial-background-color)}.ol-scale-text{bottom:25px;font-size:12px;text-align:center}.ol-scale-singlebar{border:1px solid var(--ol-foreground-color);height:10px;position:relative;z-index:9}.ol-scale-singlebar-even{background-color:var(--ol-subtle-foreground-color)}.ol-control button,.ol-scale-singlebar-odd{background-color:var(--ol-background-color)}.ol-unselectable,.ol-viewport{-webkit-touch-callout:none;-webkit-user-select:none;user-select:none}.ol-viewport canvas{all:unset}.ol-viewport{touch-action:none}.ol-selectable{-webkit-touch-callout:default;-webkit-user-select:text;user-select:text}.ol-grabbing{cursor:grabbing}.ol-grab,.ol-overviewmap .ol-overviewmap-box:hover{cursor:move}.ol-grab{cursor:grab}.ol-control{background-color:var(--ol-subtle-background-color);border-radius:4px;position:absolute}.ol-zoom{left:.5em;top:.5em}.ol-rotate{right:.5em;top:.5em;transition:opacity .25s linear,visibility linear}.ol-rotate.ol-hidden{opacity:0;transition:opacity .25s linear,visibility 0s linear .25s;visibility:hidden}.ol-zoom-extent{left:.5em;top:4.643em}.ol-full-screen{right:.5em;top:.5em}.ol-control button{border:none;border-radius:2px;display:block;font-size:inherit;font-weight:700;height:1.375em;line-height:.4em;margin:1px;padding:0;text-align:center;text-decoration:none;width:1.375em}.ol-control button::-moz-focus-inner{border:none;padding:0}.ol-zoom-extent button{line-height:1.4em}.ol-compass{display:block;font-weight:400;will-change:transform}.ol-touch .ol-control button{font-size:1.5em}.ol-touch .ol-zoom-extent,.ol-touch .ol-zoomslider{top:5.5em}.ol-control button:focus,.ol-control button:hover{color:var(--ol-foreground-color);outline:1px solid var(--ol-subtle-foreground-color);text-decoration:none}.ol-zoom .ol-zoom-in{border-radius:2px 2px 0 0}.ol-zoom .ol-zoom-out{border-radius:0 0 2px 2px}.ol-attribution{align-items:center;bottom:.5em;display:flex;flex-flow:row-reverse;max-width:calc(100% - 1.3em);right:.5em;text-align:right}.ol-attribution a{text-decoration:none}.ol-attribution ul{color:var(--ol-foreground-color);font-size:12px;margin:0;padding:1px .5em;text-shadow:0 0 2px var(--ol-background-color)}.buttonGroup_MV67 button,.codeBlockContainer_uieF{background:var(--prism-background-color);color:var(--prism-color)}.ol-attribution li{display:inline;list-style:none}.ol-attribution li:not(:last-child):after{content:" "}.ol-attribution img{max-height:2em;max-width:inherit;vertical-align:middle}.ol-attribution button{flex-shrink:0}.ol-attribution.ol-uncollapsible{border-radius:4px 0 0;bottom:0;right:0}.ol-attribution.ol-uncollapsible img{margin-top:-.2em;max-height:1.6em}.ol-zoomslider{height:200px;left:.5em;top:4.5em}.ol-zoomslider button{height:10px;position:relative}.ol-overviewmap{bottom:.5em;left:.5em}.ol-overviewmap.ol-uncollapsible{border-radius:0 4px 0 0;bottom:0;left:0}.ol-overviewmap .ol-overviewmap-map{border:1px solid var(--ol-subtle-foreground-color);height:150px;width:150px}.ol-overviewmap:not(.ol-collapsed) button{bottom:0;left:0;position:absolute}.ol-overviewmap:not(.ol-collapsed){background:var(--ol-subtle-background-color)}.ol-overviewmap-box{border:1.5px dotted var(--ol-subtle-foreground-color)}.codeBlockContainer_uieF{border-radius:var(--ifm-code-border-radius);box-shadow:var(--ifm-global-shadow-lw);margin-bottom:var(--ifm-leading)}.codeBlockContent_rt_a{border-radius:inherit;direction:ltr;position:relative}.codeBlockTitle_bnm4{border-bottom:1px solid var(--ifm-color-emphasis-300);border-top-left-radius:inherit;border-top-right-radius:inherit;font-size:var(--ifm-code-font-size);font-weight:500;padding:.75rem var(--ifm-pre-padding)}.codeBlock_XD3N{--ifm-pre-background:var(--prism-background-color);margin:0;padding:0}.codeBlockTitle_bnm4+.codeBlockContent_rt_a .codeBlock_XD3N{border-top-left-radius:0;border-top-right-radius:0}.codeBlockLines_sPP1{float:left;font:inherit;min-width:100%;padding:var(--ifm-pre-padding)}.codeBlockLinesWithNumbering_OLR7{display:table;padding:var(--ifm-pre-padding) 0}.buttonGroup_MV67{column-gap:.2rem;display:flex;position:absolute;right:calc(var(--ifm-pre-padding)/2);top:calc(var(--ifm-pre-padding)/2)}.buttonGroup_MV67 button{align-items:center;border:1px solid var(--ifm-color-emphasis-300);border-radius:var(--ifm-global-radius);display:flex;line-height:0;opacity:0;padding:.4rem;transition:opacity var(--ifm-transition-fast) ease-in-out}.buttonGroup_MV67 button:focus-visible,.buttonGroup_MV67 button:hover{opacity:1!important}.theme-code-block:hover .buttonGroup_MV67 button{opacity:.4}:where(:root){--docusaurus-highlighted-code-line-bg:#484d5b}:where([data-theme=dark]){--docusaurus-highlighted-code-line-bg:#646464}.theme-code-block-highlighted-line{background-color:var(--docusaurus-highlighted-code-line-bg);display:block;margin:0 calc(var(--ifm-pre-padding)*-1);padding:0 var(--ifm-pre-padding)}.codeLine_w1Pp{counter-increment:b;display:table-row}.codeLineNumber_SZe5{background:var(--ifm-pre-background);display:table-cell;left:0;overflow-wrap:normal;padding:0 var(--ifm-pre-padding);position:sticky;text-align:right;width:1%}.codeLineNumber_SZe5:before{content:counter(b);opacity:.4}.codeLineContent_fZ_3{padding-right:var(--ifm-pre-padding)}.theme-code-block:hover .copyButtonCopied_W2uY{opacity:1!important}.copyButtonIcons_Evtz{height:1.125rem;position:relative;width:1.125rem}.copyButtonIcon_lhxN,.copyButtonSuccessIcon_oPjr{left:0;position:absolute;top:0;fill:currentColor;height:inherit;opacity:inherit;transition:all var(--ifm-transition-fast) ease;width:inherit}.copyButtonSuccessIcon_oPjr{color:#00d600;left:50%;opacity:0;top:50%;transform:translate(-50%,-50%) scale(.33)}.copyButtonCopied_W2uY .copyButtonIcon_lhxN{opacity:0;transform:scale(.33)}.copyButtonCopied_W2uY .copyButtonSuccessIcon_oPjr{opacity:1;transform:translate(-50%,-50%) scale(1);transition-delay:75ms}.wordWrapButtonIcon_lZZU{height:1.2rem;width:1.2rem}.details_ulot{--docusaurus-details-summary-arrow-size:0.38rem;--docusaurus-details-transition:transform 200ms ease;--docusaurus-details-decoration-color:grey}.details_ulot>summary{cursor:pointer;list-style:none;padding-left:1rem;position:relative}.details_ulot>summary::-webkit-details-marker{display:none}.details_ulot>summary:before{border-color:#0000 #0000 #0000 var(--docusaurus-details-decoration-color);border-style:solid;border-width:var(--docusaurus-details-summary-arrow-size);content:"";left:0;position:absolute;top:.45rem;transform:rotate(0);transform-origin:calc(var(--docusaurus-details-summary-arrow-size)/2) 50%;transition:var(--docusaurus-details-transition)}.collapsibleContent_HeMa{border-top:1px solid var(--docusaurus-details-decoration-color);margin-top:1rem;padding-top:1rem}.details_ylfE{--docusaurus-details-decoration-color:var(--ifm-alert-border-color);--docusaurus-details-transition:transform var(--ifm-transition-fast) ease;border:1px solid var(--ifm-alert-border-color);margin:0 0 var(--ifm-spacing-vertical)}.containsTaskList_dMzw{list-style:none}.img_SvlX{height:auto}.admonition_N4vE{margin-bottom:1em}.admonitionHeading_S86Y{font:var(--ifm-heading-font-weight) var(--ifm-h5-font-size)/var(--ifm-heading-line-height) var(--ifm-heading-font-family)}.admonitionHeading_S86Y:not(:last-child){margin-bottom:.3rem}.admonitionIcon_jXEK{display:inline-block;margin-right:.4em;vertical-align:middle}.admonitionIcon_jXEK svg{display:inline-block;height:1.6em;width:1.6em;fill:var(--ifm-alert-foreground-color)}.breadcrumbHomeIcon_YW6c{height:1.1rem;position:relative;top:1px;vertical-align:top;width:1.1rem}.breadcrumbsContainer_IULu{--ifm-breadcrumb-size-multiplier:0.8;margin-bottom:.8rem}.searchQueryInput_q6x8,.searchVersionInput_UXnc{background:var(--docsearch-searchbox-focus-background);border:2px solid var(--ifm-toc-border-color);border-radius:var(--ifm-global-radius);color:var(--docsearch-text-color);font:var(--ifm-font-size-base) var(--ifm-font-family-base);margin-bottom:.5rem;padding:.8rem;transition:border var(--ifm-transition-fast) ease;width:100%}.searchQueryInput_q6x8:focus,.searchVersionInput_UXnc:focus{border-color:var(--docsearch-primary-color);outline:0}.searchQueryInput_q6x8::placeholder{color:var(--docsearch-muted-color)}.searchResultsColumn_KLrb{font-size:.9rem;font-weight:700}.algoliaLogo_C6L2{max-width:150px}.algoliaLogoPathFill___zV{fill:var(--ifm-font-color-base)}.searchResultItem_T_J5{border-bottom:1px solid var(--ifm-toc-border-color);padding:1rem 0}.searchResultItemHeading_ftmU{font-weight:400;margin-bottom:0}.searchResultItemPath_Nuyq{color:var(--ifm-color-content-secondary);font-size:.8rem;--ifm-breadcrumb-separator-size-multiplier:1}.searchResultItemSummary_NdV5{font-style:italic;margin:.5rem 0 0}.loadingSpinner_L4FA{animation:1s linear infinite b;border:.4em solid #eee;border-radius:50%;border-top:.4em solid var(--ifm-color-primary);height:3rem;margin:0 auto;width:3rem}@keyframes b{to{transform:rotate(1turn)}}.loader_HWAH{margin-top:2rem}.search-result-match{background:#ffd78e40;color:var(--docsearch-hit-color);padding:.09em 0}.heroBanner_qdFl{overflow:hidden;padding:4rem 0;position:relative;text-align:center}.heroBannerLogo_TelY{max-height:150px;max-width:150px}.features_cAfv{padding:2rem 0;width:100%}.featureImage_wMIZ{height:200px;max-width:300px}@media (min-width:640px){.container,.homepage .navbar__inner{max-width:640px}}@media (min-width:768px){.container,.homepage .navbar__inner{max-width:768px}}@media (min-width:997px){.collapseSidebarButton_Vrli,.expandButton_SRTn{background-color:var(--docusaurus-collapse-button-bg)}.lastUpdated_LloW{text-align:right}.tocMobile_Y16I{display:none}:root{--docusaurus-announcement-bar-height:30px}.announcementBarClose_eKj2,.announcementBarPlaceholder_YaKJ{flex-basis:50px}.collapseSidebarButton_Vrli{border:1px solid var(--ifm-toc-border-color);border-radius:0;bottom:0;display:block!important;height:40px;position:sticky}.collapseSidebarButtonIcon_OPrI{margin-top:4px;transform:rotate(180deg)}.expandButtonIcon_JV83,[dir=rtl] .collapseSidebarButtonIcon_OPrI{transform:rotate(0)}.collapseSidebarButton_Vrli:focus,.collapseSidebarButton_Vrli:hover,.expandButton_SRTn:focus,.expandButton_SRTn:hover{background-color:var(--docusaurus-collapse-button-bg-hover)}.menuHtmlItem_RMLi{padding:var(--ifm-menu-link-padding-vertical) var(--ifm-menu-link-padding-horizontal)}.menu_HSvT{flex-grow:1;padding:.5rem}@supports (scrollbar-gutter:stable){.menu_HSvT{padding:.5rem 0 .5rem .5rem;scrollbar-gutter:stable}}.menuWithAnnouncementBar_sngD{margin-bottom:var(--docusaurus-announcement-bar-height)}.sidebar_EImT{display:flex;flex-direction:column;height:100%;padding-top:var(--ifm-navbar-height);width:var(--doc-sidebar-width)}.sidebarWithHideableNavbar_FwPM{padding-top:0}.sidebarHidden_szwU{opacity:0;visibility:hidden}.sidebarLogo_B5uc{align-items:center;color:inherit!important;display:flex!important;margin:0 var(--ifm-navbar-padding-horizontal);max-height:var(--ifm-navbar-height);min-height:var(--ifm-navbar-height);text-decoration:none!important}.sidebarLogo_B5uc img{height:2rem;margin-right:.5rem}.expandButton_SRTn{align-items:center;display:flex;height:100%;justify-content:center;position:absolute;right:0;top:0;transition:background-color var(--ifm-transition-fast) ease;width:100%}[dir=rtl] .expandButtonIcon_JV83{transform:rotate(180deg)}.docSidebarContainer_jkcN{border-right:1px solid var(--ifm-toc-border-color);clip-path:inset(0);display:block;margin-top:calc(var(--ifm-navbar-height)*-1);transition:width var(--ifm-transition-fast) ease;width:var(--doc-sidebar-width);will-change:width}.docSidebarContainerHidden_T0hi{cursor:pointer;width:var(--doc-sidebar-hidden-width)}.sidebarViewport_c_cf{height:100%;max-height:100vh;position:sticky;top:0}.docMainContainer_CVH1{flex-grow:1;max-width:calc(100% - var(--doc-sidebar-width))}.docMainContainerEnhanced_EK95{max-width:calc(100% - var(--doc-sidebar-hidden-width))}.docItemWrapperEnhanced_zEMR{max-width:calc(var(--ifm-container-width) + var(--doc-sidebar-width))!important}.navbarSearchContainer_Wtr3{padding:var(--ifm-navbar-item-padding-vertical) var(--ifm-navbar-item-padding-horizontal)}.docItemCol_t5Ua{max-width:75%!important}}@media (min-width:1024px){.container,.homepage .navbar__inner{max-width:1024px}.shiki .code-container{font-size:1rem;line-height:1.5rem}}@media (min-width:1280px){.container,.homepage .navbar__inner{max-width:1280px}.navbar-external-link,.theme-edit-this-page{display:flex}}@media (min-width:1440px){.container{max-width:var(--ifm-container-width-xl)}}@media (min-width:1536px){.container,.homepage .navbar__inner{max-width:1536px}}@media (max-width:996px){.col{--ifm-col-width:100%;flex-basis:var(--ifm-col-width);margin-left:0}.footer{--ifm-footer-padding-horizontal:0}.colorModeToggle_HeSv,.footer__link-separator,.navbar__item,.tableOfContents_GM8w{display:none}.footer__col{margin-bottom:calc(var(--ifm-spacing-vertical)*3)}.footer__link-item{display:block}.hero{padding-left:0;padding-right:0}.navbar>.container,.navbar>.container-fluid{padding:0}.navbar__toggle{display:inherit}.navbar__search-input{width:9rem}.pills--block,.tabs--block{flex-direction:column}.docItemContainer_iv4V{padding:0 .3rem}.navbarSearchContainer_Wtr3{position:absolute;right:var(--ifm-navbar-padding-horizontal)}}@media only screen and (max-width:996px){.searchQueryColumn_HR0E,.searchResultsColumn_KLrb{max-width:60%!important}.searchLogoColumn_pCVy,.searchVersionColumn_f2vw{max-width:40%!important}.searchLogoColumn_pCVy{padding-left:0!important}}@media screen and (max-width:966px){.heroBanner_qdFl{padding:2rem}}@media (max-width:768px){.DocSearch-Button-Keys,.DocSearch-Button-Placeholder,.DocSearch-Commands,.DocSearch-Hit-Tree{display:none}:root{--docsearch-spacing:10px;--docsearch-footer-height:40px}.DocSearch-Dropdown{height:100%;max-height:calc(var(--docsearch-vh,1vh)*100 - var(--docsearch-searchbox-height) - var(--docsearch-spacing) - var(--docsearch-footer-height))}.DocSearch-Container{height:100vh;height:-webkit-fill-available;height:calc(var(--docsearch-vh,1vh)*100);position:absolute}.DocSearch-Footer{border-radius:0;bottom:0;position:absolute}.DocSearch-Hit-content-wrapper{display:flex;position:relative;width:80%}.DocSearch-Modal{border-radius:0;box-shadow:none;height:100vh;height:-webkit-fill-available;height:calc(var(--docsearch-vh,1vh)*100);margin:0;max-width:100%;width:100%}.DocSearch-Cancel{appearance:none;background:none;border:0;color:var(--docsearch-highlight-color);cursor:pointer;display:inline-block;flex:none;font:inherit;font-size:1em;font-weight:500;margin-left:var(--docsearch-spacing);outline:0;overflow:hidden;padding:0;-webkit-user-select:none;user-select:none;white-space:nowrap}}@media (max-width:576px){.markdown h1:first-child{--ifm-h1-font-size:2rem}.markdown>h2{--ifm-h2-font-size:1.5rem}.markdown>h3{--ifm-h3-font-size:1.25rem}}@media screen and (max-width:576px){.searchQueryColumn_HR0E,.searchVersionColumn_f2vw{max-width:100%!important}.searchVersionColumn_f2vw{padding-left:var(--ifm-spacing-horizontal)!important}}@media (hover:hover){.backToTopButton_vwdS:hover{background-color:var(--ifm-color-emphasis-300)}}@media (pointer:fine){.thin-scrollbar{scrollbar-width:thin}.thin-scrollbar::-webkit-scrollbar{height:var(--ifm-scrollbar-size);width:var(--ifm-scrollbar-size)}.thin-scrollbar::-webkit-scrollbar-track{background:var(--ifm-scrollbar-track-background-color);border-radius:10px}.thin-scrollbar::-webkit-scrollbar-thumb{background:var(--ifm-scrollbar-thumb-background-color);border-radius:10px}.thin-scrollbar::-webkit-scrollbar-thumb:hover{background:var(--ifm-scrollbar-thumb-hover-background-color)}}@media (prefers-reduced-motion:reduce){:root{--ifm-transition-fast:0ms;--ifm-transition-slow:0ms}}@media screen and (prefers-reduced-motion:reduce){.DocSearch-Reset{animation:none;appearance:none;background:none;border:0;border-radius:50%;color:var(--docsearch-icon-color);cursor:pointer;right:0;stroke-width:var(--docsearch-icon-stroke-width)}.DocSearch-Hit--deleting,.DocSearch-Hit--favoriting{transition:none}.DocSearch-Hit-action-button:focus,.DocSearch-Hit-action-button:hover{background:#0003;transition:none}}@media print{.announcementBar_qOfF,.footer,.menu,.navbar,.pagination-nav,.table-of-contents,.tocMobile_Y16I{display:none}.tabs{page-break-inside:avoid}.codeBlockLines_sPP1{white-space:pre-wrap}} \ No newline at end of file +.col,.container{padding:0 var(--ifm-spacing-horizontal)}.markdown>h2,.markdown>h3,.markdown>h4,.markdown>h5,.markdown>h6{margin-bottom:calc(var(--ifm-heading-vertical-rhythm-bottom)*var(--ifm-leading))}a,a code{color:inherit}blockquote,pre{margin:0 0 var(--ifm-spacing-vertical)}.breadcrumbs__link,.button{transition-timing-function:var(--ifm-transition-timing-default)}.button--outline.button--active,.button--outline:active,.button--outline:hover,:root{--ifm-button-color:var(--ifm-font-color-base-inverse)}.avatar__photo,.card,.text--truncate{overflow:hidden}.menu__link:hover,a{transition:color var(--ifm-transition-fast) var(--ifm-transition-timing-default)}.navbar--dark,:root{--ifm-navbar-link-hover-color:var(--ifm-color-primary)}.menu,.navbar-sidebar{overflow-x:hidden}:root,html[data-theme=dark]{--ifm-color-emphasis-500:var(--ifm-color-gray-500)}.markdown li,body{word-wrap:break-word}pre,table{overflow:auto}progress,sub,sup{vertical-align:initial}.button,code{vertical-align:middle}.DocSearch-Hit-content-wrapper,.navbar__link,.text--truncate{text-overflow:ellipsis;white-space:nowrap}*,.DocSearch-Container,.DocSearch-Container *,.ol-box,.ol-scale-singlebar,:after,:before{box-sizing:border-box}.ol-unselectable,.ol-viewport,.toggleButton_sG8X,html{-webkit-tap-highlight-color:transparent}:root{--ifm-color-scheme:light;--ifm-dark-value:10%;--ifm-darker-value:15%;--ifm-darkest-value:30%;--ifm-light-value:15%;--ifm-lighter-value:30%;--ifm-lightest-value:50%;--ifm-contrast-background-value:90%;--ifm-contrast-foreground-value:70%;--ifm-contrast-background-dark-value:70%;--ifm-contrast-foreground-dark-value:90%;--ifm-color-primary:#3578e5;--ifm-color-secondary:#ebedf0;--ifm-color-success:#00a400;--ifm-color-info:#54c7ec;--ifm-color-warning:#ffba00;--ifm-color-danger:#fa383e;--ifm-color-primary-dark:#306cce;--ifm-color-primary-darker:#2d66c3;--ifm-color-primary-darkest:#2554a0;--ifm-color-primary-light:#538ce9;--ifm-color-primary-lighter:#72a1ed;--ifm-color-primary-lightest:#9abcf2;--ifm-color-primary-contrast-background:#ebf2fc;--ifm-color-primary-contrast-foreground:#102445;--ifm-color-secondary-dark:#d4d5d8;--ifm-color-secondary-darker:#c8c9cc;--ifm-color-secondary-darkest:#a4a6a8;--ifm-color-secondary-light:#eef0f2;--ifm-color-secondary-lighter:#f1f2f5;--ifm-color-secondary-lightest:#f5f6f8;--ifm-color-secondary-contrast-background:#fdfdfe;--ifm-color-secondary-contrast-foreground:#474748;--ifm-color-success-dark:#009400;--ifm-color-success-darker:#008b00;--ifm-color-success-darkest:#007300;--ifm-color-success-light:#26b226;--ifm-color-success-lighter:#4dbf4d;--ifm-color-success-lightest:#80d280;--ifm-color-success-contrast-background:#e6f6e6;--ifm-color-success-contrast-foreground:#003100;--ifm-color-info-dark:#4cb3d4;--ifm-color-info-darker:#47a9c9;--ifm-color-info-darkest:#3b8ba5;--ifm-color-info-light:#6ecfef;--ifm-color-info-lighter:#87d8f2;--ifm-color-info-lightest:#aae3f6;--ifm-color-info-contrast-background:#eef9fd;--ifm-color-info-contrast-foreground:#193c47;--ifm-color-warning-dark:#e6a700;--ifm-color-warning-darker:#d99e00;--ifm-color-warning-darkest:#b38200;--ifm-color-warning-light:#ffc426;--ifm-color-warning-lighter:#ffcf4d;--ifm-color-warning-lightest:#ffdd80;--ifm-color-warning-contrast-background:#fff8e6;--ifm-color-warning-contrast-foreground:#4d3800;--ifm-color-danger-dark:#e13238;--ifm-color-danger-darker:#d53035;--ifm-color-danger-darkest:#af272b;--ifm-color-danger-light:#fb565b;--ifm-color-danger-lighter:#fb7478;--ifm-color-danger-lightest:#fd9c9f;--ifm-color-danger-contrast-background:#ffebec;--ifm-color-danger-contrast-foreground:#4b1113;--ifm-color-white:#fff;--ifm-color-black:#000;--ifm-color-gray-0:var(--ifm-color-white);--ifm-color-gray-100:#f5f6f7;--ifm-color-gray-200:#ebedf0;--ifm-color-gray-300:#dadde1;--ifm-color-gray-400:#ccd0d5;--ifm-color-gray-500:#bec3c9;--ifm-color-gray-600:#8d949e;--ifm-color-gray-700:#606770;--ifm-color-gray-800:#444950;--ifm-color-gray-900:#1c1e21;--ifm-color-gray-1000:var(--ifm-color-black);--ifm-color-emphasis-0:var(--ifm-color-gray-0);--ifm-color-emphasis-100:var(--ifm-color-gray-100);--ifm-color-emphasis-200:var(--ifm-color-gray-200);--ifm-color-emphasis-300:var(--ifm-color-gray-300);--ifm-color-emphasis-400:var(--ifm-color-gray-400);--ifm-color-emphasis-600:var(--ifm-color-gray-600);--ifm-color-emphasis-700:var(--ifm-color-gray-700);--ifm-color-emphasis-800:var(--ifm-color-gray-800);--ifm-color-emphasis-900:var(--ifm-color-gray-900);--ifm-color-emphasis-1000:var(--ifm-color-gray-1000);--ifm-color-content:var(--ifm-color-emphasis-900);--ifm-color-content-inverse:var(--ifm-color-emphasis-0);--ifm-color-content-secondary:#525860;--ifm-background-color:#0000;--ifm-background-surface-color:var(--ifm-color-content-inverse);--ifm-global-border-width:1px;--ifm-global-radius:0.4rem;--ifm-hover-overlay:#0000000d;--ifm-font-color-base:var(--ifm-color-content);--ifm-font-color-base-inverse:var(--ifm-color-content-inverse);--ifm-font-color-secondary:var(--ifm-color-content-secondary);--ifm-font-family-base:system-ui,-apple-system,Segoe UI,Roboto,Ubuntu,Cantarell,Noto Sans,sans-serif,BlinkMacSystemFont,"Segoe UI",Helvetica,Arial,sans-serif,"Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol";--ifm-font-family-monospace:SFMono-Regular,Menlo,Monaco,Consolas,"Liberation Mono","Courier New",monospace;--ifm-font-size-base:100%;--ifm-font-weight-light:300;--ifm-font-weight-normal:400;--ifm-font-weight-semibold:500;--ifm-font-weight-bold:700;--ifm-font-weight-base:var(--ifm-font-weight-normal);--ifm-line-height-base:1.65;--ifm-global-spacing:1rem;--ifm-spacing-vertical:var(--ifm-global-spacing);--ifm-spacing-horizontal:var(--ifm-global-spacing);--ifm-transition-fast:200ms;--ifm-transition-slow:400ms;--ifm-transition-timing-default:cubic-bezier(0.08,0.52,0.52,1);--ifm-global-shadow-lw:0 1px 2px 0 #0000001a;--ifm-global-shadow-md:0 5px 40px #0003;--ifm-global-shadow-tl:0 12px 28px 0 #0003,0 2px 4px 0 #0000001a;--ifm-z-index-dropdown:100;--ifm-z-index-fixed:200;--ifm-z-index-overlay:400;--ifm-code-background:#f6f7f8;--ifm-code-border-radius:var(--ifm-global-radius);--ifm-code-font-size:90%;--ifm-code-padding-horizontal:0.1rem;--ifm-code-padding-vertical:0.1rem;--ifm-pre-background:var(--ifm-code-background);--ifm-pre-border-radius:var(--ifm-code-border-radius);--ifm-pre-color:inherit;--ifm-pre-line-height:1.45;--ifm-pre-padding:1rem;--ifm-heading-color:inherit;--ifm-heading-margin-top:0;--ifm-heading-margin-bottom:var(--ifm-spacing-vertical);--ifm-heading-font-family:var(--ifm-font-family-base);--ifm-heading-font-weight:var(--ifm-font-weight-bold);--ifm-heading-line-height:1.25;--ifm-h1-font-size:2rem;--ifm-h2-font-size:1.5rem;--ifm-h3-font-size:1.25rem;--ifm-h4-font-size:1rem;--ifm-h5-font-size:0.875rem;--ifm-h6-font-size:0.85rem;--ifm-image-alignment-padding:1.25rem;--ifm-leading-desktop:1.25;--ifm-leading:calc(var(--ifm-leading-desktop)*1rem);--ifm-list-left-padding:2rem;--ifm-list-margin:1rem;--ifm-list-item-margin:0.25rem;--ifm-list-paragraph-margin:1rem;--ifm-table-cell-padding:0.75rem;--ifm-table-background:#0000;--ifm-table-stripe-background:#00000008;--ifm-table-border-width:1px;--ifm-table-border-color:var(--ifm-color-emphasis-300);--ifm-table-head-background:inherit;--ifm-table-head-color:inherit;--ifm-table-head-font-weight:var(--ifm-font-weight-bold);--ifm-table-cell-color:inherit;--ifm-link-color:var(--ifm-color-primary);--ifm-link-decoration:none;--ifm-link-hover-color:var(--ifm-link-color);--ifm-link-hover-decoration:underline;--ifm-paragraph-margin-bottom:var(--ifm-leading);--ifm-blockquote-font-size:var(--ifm-font-size-base);--ifm-blockquote-border-left-width:2px;--ifm-blockquote-padding-horizontal:var(--ifm-spacing-horizontal);--ifm-blockquote-padding-vertical:0;--ifm-blockquote-shadow:none;--ifm-blockquote-color:var(--ifm-color-emphasis-800);--ifm-blockquote-border-color:var(--ifm-color-emphasis-300);--ifm-hr-background-color:var(--ifm-color-emphasis-500);--ifm-hr-height:1px;--ifm-hr-margin-vertical:1.5rem;--ifm-scrollbar-size:7px;--ifm-scrollbar-track-background-color:#f1f1f1;--ifm-scrollbar-thumb-background-color:silver;--ifm-scrollbar-thumb-hover-background-color:#a7a7a7;--ifm-alert-background-color:inherit;--ifm-alert-border-color:inherit;--ifm-alert-border-radius:var(--ifm-global-radius);--ifm-alert-border-width:0px;--ifm-alert-border-left-width:5px;--ifm-alert-color:var(--ifm-font-color-base);--ifm-alert-padding-horizontal:var(--ifm-spacing-horizontal);--ifm-alert-padding-vertical:var(--ifm-spacing-vertical);--ifm-alert-shadow:var(--ifm-global-shadow-lw);--ifm-avatar-intro-margin:1rem;--ifm-avatar-intro-alignment:inherit;--ifm-avatar-photo-size:3rem;--ifm-badge-background-color:inherit;--ifm-badge-border-color:inherit;--ifm-badge-border-radius:var(--ifm-global-radius);--ifm-badge-border-width:var(--ifm-global-border-width);--ifm-badge-color:var(--ifm-color-white);--ifm-badge-padding-horizontal:calc(var(--ifm-spacing-horizontal)*0.5);--ifm-badge-padding-vertical:calc(var(--ifm-spacing-vertical)*0.25);--ifm-breadcrumb-border-radius:1.5rem;--ifm-breadcrumb-spacing:0.5rem;--ifm-breadcrumb-color-active:var(--ifm-color-primary);--ifm-breadcrumb-item-background-active:var(--ifm-hover-overlay);--ifm-breadcrumb-padding-horizontal:0.8rem;--ifm-breadcrumb-padding-vertical:0.4rem;--ifm-breadcrumb-size-multiplier:1;--ifm-breadcrumb-separator:url('data:image/svg+xml;utf8,');--ifm-breadcrumb-separator-filter:none;--ifm-breadcrumb-separator-size:0.5rem;--ifm-breadcrumb-separator-size-multiplier:1.25;--ifm-button-background-color:inherit;--ifm-button-border-color:var(--ifm-button-background-color);--ifm-button-border-width:var(--ifm-global-border-width);--ifm-button-font-weight:var(--ifm-font-weight-bold);--ifm-button-padding-horizontal:1.5rem;--ifm-button-padding-vertical:0.375rem;--ifm-button-size-multiplier:1;--ifm-button-transition-duration:var(--ifm-transition-fast);--ifm-button-border-radius:calc(var(--ifm-global-radius)*var(--ifm-button-size-multiplier));--ifm-button-group-spacing:2px;--ifm-card-background-color:var(--ifm-background-surface-color);--ifm-card-border-radius:calc(var(--ifm-global-radius)*2);--ifm-card-horizontal-spacing:var(--ifm-global-spacing);--ifm-card-vertical-spacing:var(--ifm-global-spacing);--ifm-toc-border-color:var(--ifm-color-emphasis-300);--ifm-toc-link-color:var(--ifm-color-content-secondary);--ifm-toc-padding-vertical:0.5rem;--ifm-toc-padding-horizontal:0.5rem;--ifm-dropdown-background-color:var(--ifm-background-surface-color);--ifm-dropdown-font-weight:var(--ifm-font-weight-semibold);--ifm-dropdown-link-color:var(--ifm-font-color-base);--ifm-dropdown-hover-background-color:var(--ifm-hover-overlay);--ifm-footer-background-color:var(--ifm-color-emphasis-100);--ifm-footer-color:inherit;--ifm-footer-link-color:var(--ifm-color-emphasis-700);--ifm-footer-link-hover-color:var(--ifm-color-primary);--ifm-footer-link-horizontal-spacing:0.5rem;--ifm-footer-padding-horizontal:calc(var(--ifm-spacing-horizontal)*2);--ifm-footer-padding-vertical:calc(var(--ifm-spacing-vertical)*2);--ifm-footer-title-color:inherit;--ifm-footer-logo-max-width:min(30rem,90vw);--ifm-hero-background-color:var(--ifm-background-surface-color);--ifm-hero-text-color:var(--ifm-color-emphasis-800);--ifm-menu-color:var(--ifm-color-emphasis-700);--ifm-menu-color-active:var(--ifm-color-primary);--ifm-menu-color-background-active:var(--ifm-hover-overlay);--ifm-menu-color-background-hover:var(--ifm-hover-overlay);--ifm-menu-link-padding-horizontal:0.75rem;--ifm-menu-link-padding-vertical:0.375rem;--ifm-menu-link-sublist-icon:url('data:image/svg+xml;utf8,');--ifm-menu-link-sublist-icon-filter:none;--ifm-navbar-background-color:var(--ifm-background-surface-color);--ifm-navbar-height:3.75rem;--ifm-navbar-item-padding-horizontal:0.75rem;--ifm-navbar-item-padding-vertical:0.25rem;--ifm-navbar-link-color:var(--ifm-font-color-base);--ifm-navbar-link-active-color:var(--ifm-link-color);--ifm-navbar-padding-horizontal:var(--ifm-spacing-horizontal);--ifm-navbar-padding-vertical:calc(var(--ifm-spacing-vertical)*0.5);--ifm-navbar-shadow:var(--ifm-global-shadow-lw);--ifm-navbar-search-input-background-color:var(--ifm-color-emphasis-200);--ifm-navbar-search-input-color:var(--ifm-color-emphasis-800);--ifm-navbar-search-input-placeholder-color:var(--ifm-color-emphasis-500);--ifm-navbar-search-input-icon:url('data:image/svg+xml;utf8,');--ifm-navbar-sidebar-width:83vw;--ifm-pagination-border-radius:var(--ifm-global-radius);--ifm-pagination-color-active:var(--ifm-color-primary);--ifm-pagination-font-size:1rem;--ifm-pagination-item-active-background:var(--ifm-hover-overlay);--ifm-pagination-page-spacing:0.2em;--ifm-pagination-padding-horizontal:calc(var(--ifm-spacing-horizontal)*1);--ifm-pagination-padding-vertical:calc(var(--ifm-spacing-vertical)*0.25);--ifm-pagination-nav-border-radius:var(--ifm-global-radius);--ifm-pagination-nav-color-hover:var(--ifm-color-primary);--ifm-pills-color-active:var(--ifm-color-primary);--ifm-pills-color-background-active:var(--ifm-hover-overlay);--ifm-pills-spacing:0.125rem;--ifm-tabs-color:var(--ifm-font-color-secondary);--ifm-tabs-color-active:var(--ifm-color-primary);--ifm-tabs-color-active-border:var(--ifm-tabs-color-active);--ifm-tabs-padding-horizontal:1rem;--ifm-tabs-padding-vertical:1rem;--docusaurus-progress-bar-color:var(--ifm-color-primary);--ifm-color-primary:#398ccb;--ifm-color-primary-dark:#317eb9;--ifm-color-primary-darker:#2e77af;--ifm-color-primary-darkest:#266290;--ifm-color-primary-light:#4e98d0;--ifm-color-primary-lighter:#589ed3;--ifm-color-primary-lightest:#77b0db;--ifm-code-font-size:95%;--ifm-container-width:1140px;--ifm-container-width-xl:1320px;--ifm-navbar-shadow:none;--docsearch-key-shadow:none!important;--docsearch-footer-shadow:none!important;--docsearch-key-gradient:#f4f4f5!important;--tweet-border:1px solid var(--ifm-color-emphasis-300);--docusaurus-tag-list-border:var(--ifm-color-emphasis-300);--docsearch-primary-color:#5468ff;--docsearch-text-color:#1c1e21;--docsearch-spacing:12px;--docsearch-icon-stroke-width:1.4;--docsearch-highlight-color:var(--docsearch-primary-color);--docsearch-muted-color:#969faf;--docsearch-container-background:#656c85cc;--docsearch-logo-color:#5468ff;--docsearch-modal-width:560px;--docsearch-modal-height:600px;--docsearch-modal-background:#f5f6f7;--docsearch-modal-shadow:inset 1px 1px 0 0 #ffffff80,0 3px 8px 0 #555a64;--docsearch-searchbox-height:56px;--docsearch-searchbox-background:#ebedf0;--docsearch-searchbox-focus-background:#fff;--docsearch-searchbox-shadow:inset 0 0 0 2px var(--docsearch-primary-color);--docsearch-hit-height:56px;--docsearch-hit-color:#444950;--docsearch-hit-active-color:#fff;--docsearch-hit-background:#fff;--docsearch-hit-shadow:0 1px 3px 0 #d4d9e1;--docsearch-key-gradient:linear-gradient(-225deg,#d5dbe4,#f8f8f8);--docsearch-key-shadow:inset 0 -2px 0 0 #cdcde6,inset 0 0 1px 1px #fff,0 1px 2px 1px #1e235a66;--docsearch-key-pressed-shadow:inset 0 -2px 0 0 #cdcde6,inset 0 0 1px 1px #fff,0 1px 1px 0 #1e235a66;--docsearch-footer-height:44px;--docsearch-footer-background:#fff;--docsearch-footer-shadow:0 -1px 0 0 #e0e3e8,0 -3px 6px 0 #45629b1f;--docsearch-primary-color:var(--ifm-color-primary);--docsearch-text-color:var(--ifm-font-color-base);--docusaurus-announcement-bar-height:auto;--docusaurus-collapse-button-bg:#0000;--docusaurus-collapse-button-bg-hover:#0000001a;--doc-sidebar-width:300px;--doc-sidebar-hidden-width:30px}.badge--danger,.badge--info,.badge--primary,.badge--secondary,.badge--success,.badge--warning{--ifm-badge-border-color:var(--ifm-badge-background-color)}.button--link,.button--outline{--ifm-button-background-color:#0000}html{background-color:var(--ifm-background-color);color:var(--ifm-font-color-base);color-scheme:var(--ifm-color-scheme);font:var(--ifm-font-size-base)/var(--ifm-line-height-base) var(--ifm-font-family-base);-webkit-font-smoothing:antialiased;text-rendering:optimizelegibility;-webkit-text-size-adjust:100%;text-size-adjust:100%}iframe{border:0;color-scheme:auto}.container{margin:0 auto;max-width:var(--ifm-container-width)}.container--fluid{max-width:inherit}.row{display:flex;flex-wrap:wrap;margin:0 calc(var(--ifm-spacing-horizontal)*-1)}.margin-bottom--none,.margin-vert--none,.markdown>:last-child{margin-bottom:0!important}.margin-top--none,.margin-vert--none{margin-top:0!important}.row--no-gutters{margin-left:0;margin-right:0}.margin-horiz--none,.margin-right--none{margin-right:0!important}.row--no-gutters>.col{padding-left:0;padding-right:0}.row--align-top{align-items:flex-start}.row--align-bottom{align-items:flex-end}.menuExternalLink_O2Du,.row--align-center{align-items:center}.row--align-stretch{align-items:stretch}.row--align-baseline{align-items:baseline}.col{--ifm-col-width:100%;flex:1 0;margin-left:0;max-width:var(--ifm-col-width);width:100%}.padding-bottom--none,.padding-vert--none{padding-bottom:0!important}.padding-top--none,.padding-vert--none{padding-top:0!important}.padding-horiz--none,.padding-left--none{padding-left:0!important}.padding-horiz--none,.padding-right--none{padding-right:0!important}.col[class*=col--]{flex:0 0 var(--ifm-col-width)}.col--1{--ifm-col-width:8.33333%}.col--offset-1{margin-left:8.33333%}.col--2{--ifm-col-width:16.66667%}.col--offset-2{margin-left:16.66667%}.col--3{--ifm-col-width:25%}.col--offset-3{margin-left:25%}.col--4{--ifm-col-width:33.33333%}.col--offset-4{margin-left:33.33333%}.col--5{--ifm-col-width:41.66667%}.col--offset-5{margin-left:41.66667%}.col--6{--ifm-col-width:50%}.col--offset-6{margin-left:50%}.col--7{--ifm-col-width:58.33333%}.col--offset-7{margin-left:58.33333%}.col--8{--ifm-col-width:66.66667%}.col--offset-8{margin-left:66.66667%}.col--9{--ifm-col-width:75%}.col--offset-9{margin-left:75%}.col--10{--ifm-col-width:83.33333%}.col--offset-10{margin-left:83.33333%}.col--11{--ifm-col-width:91.66667%}.col--offset-11{margin-left:91.66667%}.col--12{--ifm-col-width:100%}.col--offset-12{margin-left:100%}.margin-horiz--none,.margin-left--none{margin-left:0!important}.margin--none{margin:0!important}.margin-bottom--xs,.margin-vert--xs{margin-bottom:.25rem!important}.margin-top--xs,.margin-vert--xs{margin-top:.25rem!important}.margin-horiz--xs,.margin-left--xs{margin-left:.25rem!important}.margin-horiz--xs,.margin-right--xs{margin-right:.25rem!important}.margin--xs{margin:.25rem!important}.margin-bottom--sm,.margin-vert--sm{margin-bottom:.5rem!important}.margin-top--sm,.margin-vert--sm{margin-top:.5rem!important}.margin-horiz--sm,.margin-left--sm{margin-left:.5rem!important}.margin-horiz--sm,.margin-right--sm{margin-right:.5rem!important}.margin--sm{margin:.5rem!important}.margin-bottom--md,.margin-vert--md{margin-bottom:1rem!important}.margin-top--md,.margin-vert--md{margin-top:1rem!important}.margin-horiz--md,.margin-left--md{margin-left:1rem!important}.margin-horiz--md,.margin-right--md{margin-right:1rem!important}.margin--md{margin:1rem!important}.margin-bottom--lg,.margin-vert--lg{margin-bottom:2rem!important}.margin-top--lg,.margin-vert--lg{margin-top:2rem!important}.margin-horiz--lg,.margin-left--lg{margin-left:2rem!important}.margin-horiz--lg,.margin-right--lg{margin-right:2rem!important}.margin--lg{margin:2rem!important}.margin-bottom--xl,.margin-vert--xl{margin-bottom:5rem!important}.margin-top--xl,.margin-vert--xl{margin-top:5rem!important}.margin-horiz--xl,.margin-left--xl{margin-left:5rem!important}.margin-horiz--xl,.margin-right--xl{margin-right:5rem!important}.margin--xl{margin:5rem!important}.padding--none{padding:0!important}.padding-bottom--xs,.padding-vert--xs{padding-bottom:.25rem!important}.padding-top--xs,.padding-vert--xs{padding-top:.25rem!important}.padding-horiz--xs,.padding-left--xs{padding-left:.25rem!important}.padding-horiz--xs,.padding-right--xs{padding-right:.25rem!important}.padding--xs{padding:.25rem!important}.padding-bottom--sm,.padding-vert--sm{padding-bottom:.5rem!important}.padding-top--sm,.padding-vert--sm{padding-top:.5rem!important}.padding-horiz--sm,.padding-left--sm{padding-left:.5rem!important}.padding-horiz--sm,.padding-right--sm{padding-right:.5rem!important}.padding--sm{padding:.5rem!important}.padding-bottom--md,.padding-vert--md{padding-bottom:1rem!important}.padding-top--md,.padding-vert--md{padding-top:1rem!important}.padding-horiz--md,.padding-left--md{padding-left:1rem!important}.padding-horiz--md,.padding-right--md{padding-right:1rem!important}.padding--md{padding:1rem!important}.padding-bottom--lg,.padding-vert--lg{padding-bottom:2rem!important}.padding-top--lg,.padding-vert--lg{padding-top:2rem!important}.padding-horiz--lg,.padding-left--lg{padding-left:2rem!important}.padding-horiz--lg,.padding-right--lg{padding-right:2rem!important}.padding--lg{padding:2rem!important}.padding-bottom--xl,.padding-vert--xl{padding-bottom:5rem!important}.padding-top--xl,.padding-vert--xl{padding-top:5rem!important}.padding-horiz--xl,.padding-left--xl{padding-left:5rem!important}.padding-horiz--xl,.padding-right--xl{padding-right:5rem!important}.padding--xl{padding:5rem!important}code{background-color:var(--ifm-code-background);border:.1rem solid #0000001a;border-radius:var(--ifm-code-border-radius);font-family:var(--ifm-font-family-monospace);font-size:var(--ifm-code-font-size);padding:var(--ifm-code-padding-vertical) var(--ifm-code-padding-horizontal)}pre{background-color:var(--ifm-pre-background);border-radius:var(--ifm-pre-border-radius);color:var(--ifm-pre-color);font:var(--ifm-code-font-size)/var(--ifm-pre-line-height) var(--ifm-font-family-monospace);padding:var(--ifm-pre-padding)}pre code{background-color:initial;border:none;font-size:100%;line-height:inherit;padding:0}kbd{background-color:var(--ifm-color-emphasis-0);border:1px solid var(--ifm-color-emphasis-400);border-radius:.2rem;box-shadow:inset 0 -1px 0 var(--ifm-color-emphasis-400);color:var(--ifm-color-emphasis-800);font:80% var(--ifm-font-family-monospace);padding:.15rem .3rem}h1,h2,h3,h4,h5,h6{color:var(--ifm-heading-color);font-family:var(--ifm-heading-font-family);font-weight:var(--ifm-heading-font-weight);line-height:var(--ifm-heading-line-height);margin:var(--ifm-heading-margin-top) 0 var(--ifm-heading-margin-bottom) 0}h1{font-size:var(--ifm-h1-font-size)}h2{font-size:var(--ifm-h2-font-size)}h3{font-size:var(--ifm-h3-font-size)}h4{font-size:var(--ifm-h4-font-size)}h5{font-size:var(--ifm-h5-font-size)}h6{font-size:var(--ifm-h6-font-size)}img[align=right]{padding-left:var(--image-alignment-padding)}img[align=left]{padding-right:var(--image-alignment-padding)}.markdown{--ifm-h1-vertical-rhythm-top:3;--ifm-h2-vertical-rhythm-top:2;--ifm-h3-vertical-rhythm-top:1.5;--ifm-heading-vertical-rhythm-top:1.25;--ifm-h1-vertical-rhythm-bottom:1.25;--ifm-heading-vertical-rhythm-bottom:1}.markdown:after,.markdown:before{content:"";display:table}.markdown:after{clear:both}.markdown h1:first-child{--ifm-h1-font-size:3rem;margin-bottom:calc(var(--ifm-h1-vertical-rhythm-bottom)*var(--ifm-leading))}.markdown>h2{--ifm-h2-font-size:2rem;margin-top:calc(var(--ifm-h2-vertical-rhythm-top)*var(--ifm-leading))}.markdown>h3{--ifm-h3-font-size:1.5rem;margin-top:calc(var(--ifm-h3-vertical-rhythm-top)*var(--ifm-leading))}.markdown>h4,.markdown>h5,.markdown>h6{margin-top:calc(var(--ifm-heading-vertical-rhythm-top)*var(--ifm-leading))}.markdown>p,.markdown>pre,.markdown>ul,details p{margin-bottom:var(--ifm-leading)}.markdown li>p{margin-top:var(--ifm-list-paragraph-margin);display:inline}.markdown li+li{margin-top:var(--ifm-list-item-margin)}ol,ul{margin:0 0 var(--ifm-list-margin);padding-left:var(--ifm-list-left-padding)}ol ol,ul ol{list-style-type:lower-roman}ol ol,ol ul,ul ol,ul ul{margin:0}ol ol ol,ol ul ol,ul ol ol,ul ul ol{list-style-type:lower-alpha}table thead tr{border-bottom:2px solid var(--ifm-table-border-color)}table thead,table tr:nth-child(2n){background-color:var(--ifm-table-stripe-background)}table tr{background-color:var(--ifm-table-background);border-top:var(--ifm-table-border-width) solid var(--ifm-table-border-color)}table td,table th{border:var(--ifm-table-border-width) solid var(--ifm-table-border-color);padding:var(--ifm-table-cell-padding)}table th{background-color:var(--ifm-table-head-background);color:var(--ifm-table-head-color);font-weight:var(--ifm-table-head-font-weight)}table td{color:var(--ifm-table-cell-color)}strong{font-weight:var(--ifm-font-weight-bold)}a{text-decoration:inherit;color:var(--ifm-link-color);-webkit-text-decoration:var(--ifm-link-decoration);text-decoration:var(--ifm-link-decoration)}a:hover{color:var(--ifm-link-hover-color);text-decoration:var(--ifm-link-hover-decoration)}.button:hover,.text--no-decoration,.text--no-decoration:hover,a:not([href]){text-decoration:none}p{margin:0 0 var(--ifm-paragraph-margin-bottom)}blockquote{border-left:var(--ifm-blockquote-border-left-width) solid var(--ifm-blockquote-border-color);box-shadow:var(--ifm-blockquote-shadow);color:var(--ifm-blockquote-color);font-size:var(--ifm-blockquote-font-size);padding:var(--ifm-blockquote-padding-vertical) var(--ifm-blockquote-padding-horizontal)}blockquote>:first-child{margin-top:0}blockquote>:last-child{margin-bottom:0}hr{background-color:var(--ifm-hr-background-color);border:0;height:var(--ifm-hr-height);margin:var(--ifm-hr-margin-vertical) 0}.shadow--lw{box-shadow:var(--ifm-global-shadow-lw)!important}.shadow--md{box-shadow:var(--ifm-global-shadow-md)!important}.shadow--tl{box-shadow:var(--ifm-global-shadow-tl)!important}.text--primary{color:var(--ifm-color-primary)}.text--secondary{color:var(--ifm-color-secondary)}.text--success{color:var(--ifm-color-success)}.text--info{color:var(--ifm-color-info)}.text--warning{color:var(--ifm-color-warning)}.text--danger{color:var(--ifm-color-danger)}.clean-btn,hr{color:inherit}.text--center{text-align:center}.text--left{text-align:left}.text--justify{text-align:justify}.text--right{text-align:right}.text--capitalize{text-transform:capitalize}.text--lowercase{text-transform:lowercase}.admonitionHeading_p0PH,.alert__heading,.playgroundHeader_NXZH,.text--uppercase{text-transform:uppercase}.text--light{font-weight:var(--ifm-font-weight-light)}.text--normal{font-weight:var(--ifm-font-weight-normal)}.text--semibold{font-weight:var(--ifm-font-weight-semibold)}.text--bold{font-weight:var(--ifm-font-weight-bold)}.text--italic{font-style:italic}.text--break{word-wrap:break-word!important;word-break:break-word!important}.clean-btn{background:none;border:none;cursor:pointer;font-family:inherit;padding:0}.alert,.alert .close{color:var(--ifm-alert-foreground-color)}.clean-list{list-style:none;padding-left:0}.alert--primary{--ifm-alert-background-color:var(--ifm-color-primary-contrast-background);--ifm-alert-background-color-highlight:#3578e526;--ifm-alert-foreground-color:var(--ifm-color-primary-contrast-foreground);--ifm-alert-border-color:var(--ifm-color-primary-dark)}.alert--secondary{--ifm-alert-background-color:var(--ifm-color-secondary-contrast-background);--ifm-alert-background-color-highlight:#ebedf026;--ifm-alert-foreground-color:var(--ifm-color-secondary-contrast-foreground);--ifm-alert-border-color:var(--ifm-color-secondary-dark)}.alert--success{--ifm-alert-background-color:var(--ifm-color-success-contrast-background);--ifm-alert-background-color-highlight:#00a40026;--ifm-alert-foreground-color:var(--ifm-color-success-contrast-foreground);--ifm-alert-border-color:var(--ifm-color-success-dark)}.alert--info{--ifm-alert-background-color:var(--ifm-color-info-contrast-background);--ifm-alert-background-color-highlight:#54c7ec26;--ifm-alert-foreground-color:var(--ifm-color-info-contrast-foreground);--ifm-alert-border-color:var(--ifm-color-info-dark)}.alert--warning{--ifm-alert-background-color:var(--ifm-color-warning-contrast-background);--ifm-alert-background-color-highlight:#ffba0026;--ifm-alert-foreground-color:var(--ifm-color-warning-contrast-foreground);--ifm-alert-border-color:var(--ifm-color-warning-dark)}.alert--danger{--ifm-alert-background-color:var(--ifm-color-danger-contrast-background);--ifm-alert-background-color-highlight:#fa383e26;--ifm-alert-foreground-color:var(--ifm-color-danger-contrast-foreground);--ifm-alert-border-color:var(--ifm-color-danger-dark)}.alert{--ifm-code-background:var(--ifm-alert-background-color-highlight);--ifm-link-color:var(--ifm-alert-foreground-color);--ifm-link-hover-color:var(--ifm-alert-foreground-color);--ifm-link-decoration:underline;--ifm-tabs-color:var(--ifm-alert-foreground-color);--ifm-tabs-color-active:var(--ifm-alert-foreground-color);--ifm-tabs-color-active-border:var(--ifm-alert-border-color);background-color:var(--ifm-alert-background-color);border:var(--ifm-alert-border-width) solid var(--ifm-alert-border-color);border-left-width:var(--ifm-alert-border-left-width);border-radius:var(--ifm-alert-border-radius);box-shadow:var(--ifm-alert-shadow);padding:var(--ifm-alert-padding-vertical) var(--ifm-alert-padding-horizontal)}.alert__heading{align-items:center;display:flex;font:700 var(--ifm-h5-font-size)/var(--ifm-heading-line-height) var(--ifm-heading-font-family);margin-bottom:.5rem}.alert__icon{display:inline-flex;margin-right:.4em}.alert__icon svg{fill:var(--ifm-alert-foreground-color);stroke:var(--ifm-alert-foreground-color);stroke-width:0}.alert .close{margin:calc(var(--ifm-alert-padding-vertical)*-1) calc(var(--ifm-alert-padding-horizontal)*-1) 0 0;opacity:.75}.alert .close:focus,.alert .close:hover{opacity:1}.alert a{text-decoration-color:var(--ifm-alert-border-color)}.alert a:hover{text-decoration-thickness:2px}.avatar{column-gap:var(--ifm-avatar-intro-margin);display:flex}.avatar__photo{border-radius:50%;display:block;height:var(--ifm-avatar-photo-size);width:var(--ifm-avatar-photo-size)}.card--full-height,.navbar__logo img,body,html{height:100%}.avatar__photo--sm{--ifm-avatar-photo-size:2rem}.avatar__photo--lg{--ifm-avatar-photo-size:4rem}.avatar__photo--xl{--ifm-avatar-photo-size:6rem}.avatar__intro{display:flex;flex:1 1;flex-direction:column;justify-content:center;text-align:var(--ifm-avatar-intro-alignment)}.badge,.breadcrumbs__item,.breadcrumbs__link,.button,.dropdown>.navbar__link:after{display:inline-block}.avatar__name{font:700 var(--ifm-h4-font-size)/var(--ifm-heading-line-height) var(--ifm-font-family-base)}.avatar__subtitle{margin-top:.25rem}.avatar--vertical{--ifm-avatar-intro-alignment:center;--ifm-avatar-intro-margin:0.5rem;align-items:center;flex-direction:column}.badge{background-color:var(--ifm-badge-background-color);border:var(--ifm-badge-border-width) solid var(--ifm-badge-border-color);border-radius:var(--ifm-badge-border-radius);color:var(--ifm-badge-color);font-size:75%;font-weight:var(--ifm-font-weight-bold);line-height:1;padding:var(--ifm-badge-padding-vertical) var(--ifm-badge-padding-horizontal)}.badge--primary{--ifm-badge-background-color:var(--ifm-color-primary)}.badge--secondary{--ifm-badge-background-color:var(--ifm-color-secondary);color:var(--ifm-color-black)}.breadcrumbs__link,.button.button--secondary.button--outline:not(.button--active):not(:hover){color:var(--ifm-font-color-base)}.badge--success{--ifm-badge-background-color:var(--ifm-color-success)}.badge--info{--ifm-badge-background-color:var(--ifm-color-info)}.badge--warning{--ifm-badge-background-color:var(--ifm-color-warning)}.badge--danger{--ifm-badge-background-color:var(--ifm-color-danger)}.breadcrumbs{margin-bottom:0;padding-left:0}.breadcrumbs__item:not(:last-child):after{background:var(--ifm-breadcrumb-separator) center;content:" ";display:inline-block;filter:var(--ifm-breadcrumb-separator-filter);height:calc(var(--ifm-breadcrumb-separator-size)*var(--ifm-breadcrumb-size-multiplier)*var(--ifm-breadcrumb-separator-size-multiplier));margin:0 var(--ifm-breadcrumb-spacing);opacity:.5;width:calc(var(--ifm-breadcrumb-separator-size)*var(--ifm-breadcrumb-size-multiplier)*var(--ifm-breadcrumb-separator-size-multiplier))}.breadcrumbs__item--active .breadcrumbs__link{background:var(--ifm-breadcrumb-item-background-active);color:var(--ifm-breadcrumb-color-active)}.breadcrumbs__link{border-radius:var(--ifm-breadcrumb-border-radius);font-size:calc(1rem*var(--ifm-breadcrumb-size-multiplier));padding:calc(var(--ifm-breadcrumb-padding-vertical)*var(--ifm-breadcrumb-size-multiplier)) calc(var(--ifm-breadcrumb-padding-horizontal)*var(--ifm-breadcrumb-size-multiplier));transition-duration:var(--ifm-transition-fast);transition-property:background,color}.breadcrumbs__link:any-link:hover,.breadcrumbs__link:link:hover,.breadcrumbs__link:visited:hover,area[href].breadcrumbs__link:hover{background:var(--ifm-breadcrumb-item-background-active);text-decoration:none}.breadcrumbs--sm{--ifm-breadcrumb-size-multiplier:0.8}.breadcrumbs--lg{--ifm-breadcrumb-size-multiplier:1.2}.button{background-color:var(--ifm-button-background-color);border:var(--ifm-button-border-width) solid var(--ifm-button-border-color);border-radius:var(--ifm-button-border-radius);cursor:pointer;font-size:calc(.875rem*var(--ifm-button-size-multiplier));font-weight:var(--ifm-button-font-weight);line-height:1.5;padding:calc(var(--ifm-button-padding-vertical)*var(--ifm-button-size-multiplier)) calc(var(--ifm-button-padding-horizontal)*var(--ifm-button-size-multiplier));text-align:center;transition-duration:var(--ifm-button-transition-duration);transition-property:color,background,border-color;-webkit-user-select:none;user-select:none;white-space:nowrap}.button,.button:hover{color:var(--ifm-button-color)}.button--outline{--ifm-button-color:var(--ifm-button-border-color)}.button--outline:hover{--ifm-button-background-color:var(--ifm-button-border-color)}.button--link{--ifm-button-border-color:#0000;color:var(--ifm-link-color);text-decoration:var(--ifm-link-decoration)}.button--link.button--active,.button--link:active,.button--link:hover{color:var(--ifm-link-hover-color);text-decoration:var(--ifm-link-hover-decoration)}.button.disabled,.button:disabled,.button[disabled]{opacity:.65;pointer-events:none}.button--sm{--ifm-button-size-multiplier:0.8}.button--lg{--ifm-button-size-multiplier:1.35}.button--block{display:block;width:100%}.button.button--secondary{color:var(--ifm-color-gray-900)}:where(.button--primary){--ifm-button-background-color:var(--ifm-color-primary);--ifm-button-border-color:var(--ifm-color-primary)}:where(.button--primary):not(.button--outline):hover{--ifm-button-background-color:var(--ifm-color-primary-dark);--ifm-button-border-color:var(--ifm-color-primary-dark)}.button--primary.button--active,.button--primary:active{--ifm-button-background-color:var(--ifm-color-primary-darker);--ifm-button-border-color:var(--ifm-color-primary-darker)}:where(.button--secondary){--ifm-button-background-color:var(--ifm-color-secondary);--ifm-button-border-color:var(--ifm-color-secondary)}:where(.button--secondary):not(.button--outline):hover{--ifm-button-background-color:var(--ifm-color-secondary-dark);--ifm-button-border-color:var(--ifm-color-secondary-dark)}.button--secondary.button--active,.button--secondary:active{--ifm-button-background-color:var(--ifm-color-secondary-darker);--ifm-button-border-color:var(--ifm-color-secondary-darker)}:where(.button--success){--ifm-button-background-color:var(--ifm-color-success);--ifm-button-border-color:var(--ifm-color-success)}:where(.button--success):not(.button--outline):hover{--ifm-button-background-color:var(--ifm-color-success-dark);--ifm-button-border-color:var(--ifm-color-success-dark)}.button--success.button--active,.button--success:active{--ifm-button-background-color:var(--ifm-color-success-darker);--ifm-button-border-color:var(--ifm-color-success-darker)}:where(.button--info){--ifm-button-background-color:var(--ifm-color-info);--ifm-button-border-color:var(--ifm-color-info)}:where(.button--info):not(.button--outline):hover{--ifm-button-background-color:var(--ifm-color-info-dark);--ifm-button-border-color:var(--ifm-color-info-dark)}.button--info.button--active,.button--info:active{--ifm-button-background-color:var(--ifm-color-info-darker);--ifm-button-border-color:var(--ifm-color-info-darker)}:where(.button--warning){--ifm-button-background-color:var(--ifm-color-warning);--ifm-button-border-color:var(--ifm-color-warning)}:where(.button--warning):not(.button--outline):hover{--ifm-button-background-color:var(--ifm-color-warning-dark);--ifm-button-border-color:var(--ifm-color-warning-dark)}.button--warning.button--active,.button--warning:active{--ifm-button-background-color:var(--ifm-color-warning-darker);--ifm-button-border-color:var(--ifm-color-warning-darker)}:where(.button--danger){--ifm-button-background-color:var(--ifm-color-danger);--ifm-button-border-color:var(--ifm-color-danger)}:where(.button--danger):not(.button--outline):hover{--ifm-button-background-color:var(--ifm-color-danger-dark);--ifm-button-border-color:var(--ifm-color-danger-dark)}.button--danger.button--active,.button--danger:active{--ifm-button-background-color:var(--ifm-color-danger-darker);--ifm-button-border-color:var(--ifm-color-danger-darker)}.button-group{display:inline-flex;gap:var(--ifm-button-group-spacing)}.button-group>.button:not(:first-child){border-bottom-left-radius:0;border-top-left-radius:0}.button-group>.button:not(:last-child){border-bottom-right-radius:0;border-top-right-radius:0}.button-group--block{display:flex;justify-content:stretch}.button-group--block>.button{flex-grow:1}.card{background-color:var(--ifm-card-background-color);border-radius:var(--ifm-card-border-radius);box-shadow:var(--ifm-global-shadow-lw);display:flex;flex-direction:column}.card__image{padding-top:var(--ifm-card-vertical-spacing)}.card__image:first-child{padding-top:0}.card__body,.card__footer,.card__header{padding:var(--ifm-card-vertical-spacing) var(--ifm-card-horizontal-spacing)}.card__body:not(:last-child),.card__footer:not(:last-child),.card__header:not(:last-child){padding-bottom:0}.card__body>:last-child,.card__footer>:last-child,.card__header>:last-child{margin-bottom:0}.card__footer{margin-top:auto}.table-of-contents{font-size:.8rem;margin-bottom:0;padding:var(--ifm-toc-padding-vertical) 0}.footer__links,.markdown ol li,.theme-doc-version-badge{margin-bottom:1rem}.table-of-contents,.table-of-contents ul{list-style:none;padding-left:var(--ifm-toc-padding-horizontal)}.table-of-contents li{margin:var(--ifm-toc-padding-vertical) var(--ifm-toc-padding-horizontal)}.table-of-contents__left-border{border-left:1px solid var(--ifm-toc-border-color)}.table-of-contents__link{color:var(--ifm-toc-link-color);display:block}.table-of-contents__link--active,.table-of-contents__link--active code,.table-of-contents__link:hover,.table-of-contents__link:hover code{color:var(--ifm-color-primary);text-decoration:none}.close{color:var(--ifm-color-black);float:right;font-size:1.5rem;font-weight:var(--ifm-font-weight-bold);line-height:1;opacity:.5;padding:1rem;transition:opacity var(--ifm-transition-fast) var(--ifm-transition-timing-default)}.close:hover{opacity:.7}.close:focus,.theme-code-block-highlighted-line .codeLineNumber_sl1z:before{opacity:.8}.dropdown{display:inline-flex;font-weight:var(--ifm-dropdown-font-weight);position:relative;vertical-align:top}.dropdown--hoverable:hover .dropdown__menu,.dropdown--show .dropdown__menu{opacity:1;pointer-events:all;transform:translateY(-1px);visibility:visible}#nprogress,.dropdown__menu,.navbar__item.dropdown .navbar__link:not([href]){pointer-events:none}.dropdown--right .dropdown__menu{left:inherit;right:0}.dropdown--nocaret .navbar__link:after{content:none!important}.dropdown__menu{background-color:var(--ifm-dropdown-background-color);border-radius:var(--ifm-global-radius);box-shadow:var(--ifm-global-shadow-md);left:0;list-style:none;max-height:80vh;min-width:10rem;opacity:0;overflow-y:auto;padding:.5rem;position:absolute;top:calc(100% - var(--ifm-navbar-item-padding-vertical) + .3rem);transform:translateY(-.625rem);transition-duration:var(--ifm-transition-fast);transition-property:opacity,transform,visibility;transition-timing-function:var(--ifm-transition-timing-default);visibility:hidden;z-index:var(--ifm-z-index-dropdown)}.menu__caret,.menu__link,.menu__list-item-collapsible{border-radius:.25rem;transition:background var(--ifm-transition-fast) var(--ifm-transition-timing-default)}.navbar--fixed-top,div[class^=announcementBar_]{z-index:var(--ifm-z-index-fixed)}.dropdown__link{border-radius:.25rem;color:var(--ifm-dropdown-link-color);display:block;font-size:.875rem;margin-top:.2rem;padding:.25rem .5rem;white-space:nowrap}.dropdown__link--active,.dropdown__link:hover{background-color:var(--ifm-dropdown-hover-background-color);color:var(--ifm-dropdown-link-color);text-decoration:none}.dropdown__link--active,.dropdown__link--active:hover{--ifm-dropdown-link-color:var(--ifm-link-color)}.dropdown>.navbar__link:after{border-color:currentcolor #0000;border-style:solid;border-width:.4em .4em 0;content:"";margin-left:.3em;position:relative;top:2px;transform:translateY(-50%)}.footer{background-color:var(--ifm-footer-background-color);color:var(--ifm-footer-color);padding:var(--ifm-footer-padding-vertical) var(--ifm-footer-padding-horizontal)}.footer--dark{--ifm-footer-background-color:#303846;--ifm-footer-color:var(--ifm-footer-link-color);--ifm-footer-link-color:var(--ifm-color-secondary);--ifm-footer-title-color:var(--ifm-color-white)}.footer__link-item{color:var(--ifm-footer-link-color);line-height:2}.footer__link-item:hover{color:var(--ifm-footer-link-hover-color)}.footer__link-separator{margin:0 var(--ifm-footer-link-horizontal-spacing)}.footer__logo{margin-top:1rem;max-width:var(--ifm-footer-logo-max-width)}.footer__title{color:var(--ifm-footer-title-color);font:700 var(--ifm-h4-font-size)/var(--ifm-heading-line-height) var(--ifm-font-family-base);margin-bottom:var(--ifm-heading-margin-bottom)}.menu,.navbar__link{font-weight:var(--ifm-font-weight-semibold)}.hero__title,.markdown h1{font-size:3rem}.docItemContainer_I_qr article>:first-child,.docItemContainer_I_qr header+*,.footer__item{margin-top:0}.admonitionContent_SALh>:last-child,.collapsibleContent_FqHA p:last-child,.details_s9GI>summary>p:last-child,.footer__items{margin-bottom:0}.codeBlockStandalone_XmbL,[type=checkbox],dialog,fieldset,legend{padding:0}.hero{align-items:center;background-color:var(--ifm-hero-background-color);color:var(--ifm-hero-text-color);display:flex;padding:4rem 2rem}.hero--primary{--ifm-hero-background-color:var(--ifm-color-primary);--ifm-hero-text-color:var(--ifm-font-color-base-inverse)}.hero--dark{--ifm-hero-background-color:#303846;--ifm-hero-text-color:var(--ifm-color-white)}.hero__subtitle{font-size:1.5rem}.menu__list{list-style:none;margin:0;padding-left:0}.menu__caret,.menu__link{padding:var(--ifm-menu-link-padding-vertical) var(--ifm-menu-link-padding-horizontal)}.menu__list .menu__list{flex:0 0 100%;margin-top:.25rem;padding-left:var(--ifm-menu-link-padding-horizontal)}.menu__list-item:not(:first-child){margin-top:.25rem}.menu__list-item--collapsed .menu__list{height:0;overflow:hidden}.details_s9GI[data-collapsed=false].isBrowser_Qo8t>summary:before,.details_s9GI[open]:not(.isBrowser_Qo8t)>summary:before,.menu__list-item--collapsed .menu__caret:before,.menu__list-item--collapsed .menu__link--sublist:after{transform:rotate(90deg)}.menu__list-item-collapsible{display:flex;flex-wrap:wrap;position:relative}.menu__caret:hover,.menu__link:hover,.menu__list-item-collapsible--active,.menu__list-item-collapsible:hover{background:var(--ifm-menu-color-background-hover)}.menu__list-item-collapsible .menu__link--active,.menu__list-item-collapsible .menu__link:hover{background:none!important}.menu__caret,.menu__link{align-items:center;display:flex}.navbar-sidebar,.navbar-sidebar__backdrop{opacity:0;transition-duration:var(--ifm-transition-fast);transition-timing-function:ease-in-out;visibility:hidden;top:0;left:0;bottom:0}.menu__link{color:var(--ifm-menu-color);flex:1;line-height:1.25}.menu__link:hover{color:var(--ifm-menu-color);text-decoration:none}.menu__caret:before,.menu__link--sublist-caret:after{content:"";height:1.25rem;transform:rotate(180deg);transition:transform var(--ifm-transition-fast) linear;width:1.25rem;filter:var(--ifm-menu-link-sublist-icon-filter)}.menu__link--sublist-caret:after{background:var(--ifm-menu-link-sublist-icon) 50%/2rem 2rem;margin-left:auto;min-width:1.25rem}.navbar__items--center .navbar__brand,blockquote,body,dd,dl,fieldset,figure,h1,h2,h3,h4,h5,h6,hr,menu,ol,p,pre,ul{margin:0}.menu__link--active,.menu__link--active:hover{color:var(--ifm-menu-color-active)}.navbar__brand,.navbar__link{color:var(--ifm-navbar-link-color)}.menu__link--active:not(.menu__link--sublist){background-color:var(--ifm-menu-color-background-active)}.menu__caret:before{background:var(--ifm-menu-link-sublist-icon) 50%/2rem 2rem}.navbar--dark,html[data-theme=dark]{--ifm-menu-link-sublist-icon-filter:invert(100%) sepia(94%) saturate(17%) hue-rotate(223deg) brightness(104%) contrast(98%)}.navbar{background-color:var(--ifm-navbar-background-color);box-shadow:var(--ifm-navbar-shadow);height:var(--ifm-navbar-height);padding:var(--ifm-navbar-padding-vertical) var(--ifm-navbar-padding-horizontal)}.navbar,.navbar>.container,.navbar>.container-fluid{display:flex}.navbar--fixed-top{position:sticky;top:0}.navbar__inner{display:flex;flex-wrap:wrap;justify-content:space-between;width:100%}.navbar__brand{align-items:center;display:flex;margin-right:1rem;min-width:0}.navbar__brand:hover{color:var(--ifm-navbar-link-hover-color);text-decoration:none}.announcementBarContent_WC4t,.navbar__title{flex:1 1 auto}.navbar__toggle{display:none;margin-right:.5rem}.navbar__logo{flex:0 0 auto;height:2rem;margin-right:.5rem}.navbar__items{align-items:center;display:flex;flex:1;min-width:0}.navbar__items--center{flex:0 0 auto}.navbar__items--center+.navbar__items--right{flex:1}.navbar__items--right{flex:0 0 auto;justify-content:flex-end}.navbar__items--right>:last-child{padding-right:0}.navbar__item{display:inline-block;padding:var(--ifm-navbar-item-padding-vertical) var(--ifm-navbar-item-padding-horizontal)}.navbar__link--active,.navbar__link:hover{color:var(--ifm-navbar-link-hover-color);text-decoration:none}.navbar--dark,.navbar--primary{--ifm-menu-color:var(--ifm-color-gray-300);--ifm-navbar-link-color:var(--ifm-color-gray-100);--ifm-navbar-search-input-background-color:#ffffff1a;--ifm-navbar-search-input-placeholder-color:#ffffff80;color:var(--ifm-color-white)}.navbar--dark{--ifm-navbar-background-color:#242526;--ifm-menu-color-background-active:#ffffff0d;--ifm-navbar-search-input-color:var(--ifm-color-white)}.navbar--primary{--ifm-navbar-background-color:var(--ifm-color-primary);--ifm-navbar-link-hover-color:var(--ifm-color-white);--ifm-menu-color-active:var(--ifm-color-white);--ifm-navbar-search-input-color:var(--ifm-color-emphasis-500)}.navbar__search-input{appearance:none;background:var(--ifm-navbar-search-input-background-color) var(--ifm-navbar-search-input-icon) no-repeat .75rem center/1rem 1rem;border:none;border-radius:2rem;color:var(--ifm-navbar-search-input-color);cursor:text;display:inline-block;font-size:1rem;height:2rem;padding:0 .5rem 0 2.25rem;width:12.5rem}.dropdownNavbarItemMobile_jOJe,.pills__item,.tabs__item,[role=button],button{cursor:pointer}.navbar__search-input::placeholder{color:var(--ifm-navbar-search-input-placeholder-color)}.navbar-sidebar{background-color:var(--ifm-navbar-background-color);box-shadow:var(--ifm-global-shadow-md);position:fixed;transform:translate3d(-100%,0,0);transition-property:opacity,visibility,transform;width:var(--ifm-navbar-sidebar-width)}.navbar-sidebar--show .navbar-sidebar,.navbar-sidebar__items{transform:translateZ(0)}.navbar-sidebar--show .navbar-sidebar,.navbar-sidebar--show .navbar-sidebar__backdrop{opacity:1;visibility:visible}.navbar-sidebar__backdrop{background-color:#0009;position:fixed;right:0;transition-property:opacity,visibility}.navbar-sidebar__brand{align-items:center;box-shadow:var(--ifm-navbar-shadow);display:flex;flex:1;height:var(--ifm-navbar-height);padding:var(--ifm-navbar-padding-vertical) var(--ifm-navbar-padding-horizontal)}.navbar-sidebar__items{display:flex;height:calc(100% - var(--ifm-navbar-height));transition:transform var(--ifm-transition-fast) ease-in-out}.navbar-sidebar__items--show-secondary{transform:translate3d(calc((var(--ifm-navbar-sidebar-width))*-1),0,0)}.navbar-sidebar__item{flex-shrink:0;padding:.5rem;width:calc(var(--ifm-navbar-sidebar-width))}.navbar-sidebar__back{background:var(--ifm-menu-color-background-active);font-size:15px;font-weight:var(--ifm-button-font-weight);margin:0 0 .2rem -.5rem;padding:.6rem 1.5rem;position:relative;text-align:left;top:-.5rem;width:calc(100% + 1rem)}.navbar-sidebar__close{display:flex;margin-left:auto}.pagination{column-gap:var(--ifm-pagination-page-spacing);display:flex;font-size:var(--ifm-pagination-font-size);padding-left:0}.pagination--sm{--ifm-pagination-font-size:0.8rem;--ifm-pagination-padding-horizontal:0.8rem;--ifm-pagination-padding-vertical:0.2rem}.pagination--lg{--ifm-pagination-font-size:1.2rem;--ifm-pagination-padding-horizontal:1.2rem;--ifm-pagination-padding-vertical:0.3rem}.pagination__item{display:inline-flex}.pagination__item>span{padding:var(--ifm-pagination-padding-vertical)}.pagination__item--active .pagination__link{color:var(--ifm-pagination-color-active)}.pagination__item--active .pagination__link,.pagination__item:not(.pagination__item--active):hover .pagination__link{background:var(--ifm-pagination-item-active-background)}.pagination__item--disabled,.pagination__item[disabled]{opacity:.25;pointer-events:none}.pagination__link{border-radius:var(--ifm-pagination-border-radius);color:var(--ifm-font-color-base);display:inline-block;padding:var(--ifm-pagination-padding-vertical) var(--ifm-pagination-padding-horizontal);transition:background var(--ifm-transition-fast) var(--ifm-transition-timing-default)}.pagination__link:hover{text-decoration:none}.pagination-nav{display:grid;grid-gap:var(--ifm-spacing-horizontal);gap:var(--ifm-spacing-horizontal);grid-template-columns:repeat(2,1fr)}.pagination-nav__link{border:1px solid var(--ifm-color-emphasis-300);border-radius:var(--ifm-pagination-nav-border-radius);display:block;height:100%;line-height:var(--ifm-heading-line-height);padding:var(--ifm-global-spacing);transition:border-color var(--ifm-transition-fast) var(--ifm-transition-timing-default)}.pagination-nav__link:hover{border-color:var(--ifm-pagination-nav-color-hover);text-decoration:none}.pagination-nav__link--next{grid-column:2/3;text-align:right}.pagination-nav__label{font-size:var(--ifm-h4-font-size);font-weight:var(--ifm-heading-font-weight);word-break:break-word}.pagination-nav__link--prev .pagination-nav__label:before{content:"« "}.pagination-nav__link--next .pagination-nav__label:after{content:" »"}.pagination-nav__sublabel{color:var(--ifm-color-content-secondary);font-size:var(--ifm-h5-font-size);font-weight:var(--ifm-font-weight-semibold);margin-bottom:.25rem}.pills__item,.tabs{font-weight:var(--ifm-font-weight-bold)}.pills{display:flex;gap:var(--ifm-pills-spacing);padding-left:0}.pills__item{border-radius:.5rem;display:inline-block;padding:.25rem 1rem;transition:background var(--ifm-transition-fast) var(--ifm-transition-timing-default)}.tabs,:not(.containsTaskList_U4D4>li)>.containsTaskList_U4D4{padding-left:0}.pills__item--active{color:var(--ifm-pills-color-active)}.pills__item--active,.pills__item:not(.pills__item--active):hover{background:var(--ifm-pills-color-background-active)}.pills--block{justify-content:stretch}.pills--block .pills__item{flex-grow:1;text-align:center}.tabs{color:var(--ifm-tabs-color);display:flex;margin-bottom:0;overflow-x:auto}.tabs__item{border-bottom:3px solid #0000;border-radius:var(--ifm-global-radius);display:inline-flex;padding:var(--ifm-tabs-padding-vertical) var(--ifm-tabs-padding-horizontal);transition:background-color var(--ifm-transition-fast) var(--ifm-transition-timing-default)}.tabs__item--active{border-bottom-color:var(--ifm-tabs-color-active-border);border-bottom-left-radius:0;border-bottom-right-radius:0;color:var(--ifm-tabs-color-active)}.tabs__item:hover{background-color:var(--ifm-hover-overlay)}.tabs--block{justify-content:stretch}.tabs--block .tabs__item{flex-grow:1;justify-content:center}html[data-theme=dark]{--ifm-color-scheme:dark;--ifm-color-emphasis-0:var(--ifm-color-gray-1000);--ifm-color-emphasis-100:var(--ifm-color-gray-900);--ifm-color-emphasis-200:var(--ifm-color-gray-800);--ifm-color-emphasis-300:var(--ifm-color-gray-700);--ifm-color-emphasis-400:var(--ifm-color-gray-600);--ifm-color-emphasis-600:var(--ifm-color-gray-400);--ifm-color-emphasis-700:var(--ifm-color-gray-300);--ifm-color-emphasis-800:var(--ifm-color-gray-200);--ifm-color-emphasis-900:var(--ifm-color-gray-100);--ifm-color-emphasis-1000:var(--ifm-color-gray-0);--ifm-background-color:#1b1b1d;--ifm-background-surface-color:#242526;--ifm-hover-overlay:#ffffff0d;--ifm-color-content:#e3e3e3;--ifm-color-content-secondary:#fff;--ifm-breadcrumb-separator-filter:invert(64%) sepia(11%) saturate(0%) hue-rotate(149deg) brightness(99%) contrast(95%);--ifm-code-background:#ffffff1a;--ifm-scrollbar-track-background-color:#444;--ifm-scrollbar-thumb-background-color:#686868;--ifm-scrollbar-thumb-hover-background-color:#7a7a7a;--ifm-table-stripe-background:#ffffff12;--ifm-toc-border-color:var(--ifm-color-emphasis-200);--ifm-color-primary-contrast-background:#102445;--ifm-color-primary-contrast-foreground:#ebf2fc;--ifm-color-secondary-contrast-background:#474748;--ifm-color-secondary-contrast-foreground:#fdfdfe;--ifm-color-success-contrast-background:#003100;--ifm-color-success-contrast-foreground:#e6f6e6;--ifm-color-info-contrast-background:#193c47;--ifm-color-info-contrast-foreground:#eef9fd;--ifm-color-warning-contrast-background:#4d3800;--ifm-color-warning-contrast-foreground:#fff8e6;--ifm-color-danger-contrast-background:#4b1113;--ifm-color-danger-contrast-foreground:#ffebec;--docsearch-text-color:#f5f6f7;--docsearch-container-background:#090a11cc;--docsearch-modal-background:#15172a;--docsearch-modal-shadow:inset 1px 1px 0 0 #2c2e40,0 3px 8px 0 #000309;--docsearch-searchbox-background:#090a11;--docsearch-searchbox-focus-background:#000;--docsearch-hit-color:#bec3c9;--docsearch-hit-shadow:none;--docsearch-hit-background:#090a11;--docsearch-key-gradient:linear-gradient(-26.5deg,#565872,#31355b);--docsearch-key-shadow:inset 0 -2px 0 0 #282d55,inset 0 0 1px 1px #51577d,0 2px 2px 0 #0304094d;--docsearch-key-pressed-shadow:inset 0 -2px 0 0 #282d55,inset 0 0 1px 1px #51577d,0 1px 1px 0 rgba(3,4,9,.302);--docsearch-footer-background:#1e2136;--docsearch-footer-shadow:inset 0 1px 0 0 #494c6a80,0 -4px 8px 0 #0003;--docsearch-logo-color:#fff;--docsearch-muted-color:#7f8497}#nprogress .bar{background:var(--docusaurus-progress-bar-color);height:2px;left:0;position:fixed;top:0;width:100%;z-index:1031}#nprogress .peg{box-shadow:0 0 10px var(--docusaurus-progress-bar-color),0 0 5px var(--docusaurus-progress-bar-color);height:100%;opacity:1;position:absolute;right:0;transform:rotate(3deg) translateY(-4px);width:100px}*,::backdrop,:after,:before{--tw-border-spacing-x:0;--tw-border-spacing-y:0;--tw-translate-x:0;--tw-translate-y:0;--tw-rotate:0;--tw-skew-x:0;--tw-skew-y:0;--tw-scale-x:1;--tw-scale-y:1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness:proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-color:#3b82f680;--tw-ring-offset-shadow:0 0 #0000;--tw-ring-shadow:0 0 #0000;--tw-shadow:0 0 #0000;--tw-shadow-colored:0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: ;--tw-contain-size: ;--tw-contain-layout: ;--tw-contain-paint: ;--tw-contain-style: }*,:after,:before{border:0 solid #e5e7eb}:after,:before{--tw-content:""}:host,html{line-height:1.5;-webkit-text-size-adjust:100%;font-family:ui-sans-serif,system-ui,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol,Noto Color Emoji;font-feature-settings:normal;font-variation-settings:normal;tab-size:4;-webkit-tap-highlight-color:transparent}body{line-height:inherit}hr{border-top-width:1px;height:0}abbr:where([title]){-webkit-text-decoration:underline dotted;text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}b,strong{font-weight:bolder}code,kbd,pre,samp{font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace;font-feature-settings:normal;font-size:1em;font-variation-settings:normal}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative}sub{bottom:-.25em}sup{top:-.5em}table{display:block;margin-bottom:var(--ifm-spacing-vertical);border-collapse:collapse;border-color:inherit;text-indent:0}button,input,optgroup,select,textarea{color:inherit;font-family:inherit;font-feature-settings:inherit;font-size:100%;font-variation-settings:inherit;font-weight:inherit;letter-spacing:inherit;line-height:inherit;margin:0;padding:0}.admonitionHeading_p0PH code,button,select{text-transform:none}button,input:where([type=button]),input:where([type=reset]),input:where([type=submit]){-webkit-appearance:button;background-color:initial;background-image:none}:-moz-focusring{outline:auto}:-moz-ui-invalid{box-shadow:none}::-webkit-inner-spin-button,::-webkit-outer-spin-button{height:auto}[type=search]{-webkit-appearance:textfield;outline-offset:-2px}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}summary{display:list-item}menu,ol,ul{list-style:none;padding:0}textarea{resize:vertical}input::placeholder,textarea::placeholder{color:#9ca3af;opacity:1}:disabled{cursor:default}audio,canvas,embed,iframe,img,object,svg,video{display:block;vertical-align:middle}img,video{height:auto;max-width:100%}[hidden]:where(:not([hidden=until-found])){display:none}.visible{visibility:visible}.static{position:static}.absolute{position:absolute}.InstallationSnippet__CodeBlock,.live-wrap{position:relative}.grid{display:grid}.transform{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.resize{resize:both}.shadow{--tw-shadow:0 1px 3px 0 #0000001a,0 1px 2px -1px #0000001a;--tw-shadow-colored:0 1px 3px 0 var(--tw-shadow-color),0 1px 2px -1px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow,0 0 #0000),var(--tw-ring-shadow,0 0 #0000),var(--tw-shadow)}:root[data-theme=dark]{--ifm-footer-background-color:#171717;--ifm-navbar-background-color:#111;--ifm-background-color:#111;--ifm-toc-border-color:#27272a;--docsearch-modal-background:#18181b;--docsearch-footer-background:#18181b;--docsearch-searchbox-focus-background:#18181b;--docsearch-key-gradient:#27272a;--docsearch-key-shadow:none;--docsearch-footer-shadow:none;--docsearch-hit-background:#27272a}.live-wrap{height:350px;width:100%}.live-wrap .map-content{height:100%;width:100%}html ::selection{background-color:#0ea5e9bf;--tw-text-opacity:1;color:rgb(255 255 255/var(--tw-text-opacity))}html::selection{background-color:#0ea5e9bf;--tw-text-opacity:1;color:rgb(255 255 255/var(--tw-text-opacity))}.navbar{border-bottom:1px solid var(--ifm-toc-border-color)}[data-theme=dark] .shiki .code-title,[data-theme=dark] .shiki.github-dark{border-color:rgb(63 63 70/var(--tw-border-opacity));--tw-border-opacity:1}.buttons_AeoN,.docs-wrapper main>.container>.row,.docs-wrapper main>.homepage .navbar__inner>.row{justify-content:center}.container,.homepage .navbar__inner{margin-left:auto;margin-right:auto;max-width:var(--ifm-container-width-xl);width:100%}.homepage .main-wrapper{background:linear-gradient(180deg,#fff0,#fff 300px),radial-gradient(#d1d1d1 1px,#0000 0) 0 0/20px 20px fixed,radial-gradient(#d1d1d1 1px,#0000 0) 10px 10px/20px 20px fixed}[data-theme=dark] .homepage .main-wrapper{background:linear-gradient(180deg,#0000,#111 300px),radial-gradient(#313131 1px,#0000 0) 0 0/20px 20px fixed,radial-gradient(#313131 1px,#0000 0) 10px 10px/20px 20px fixed}.navbar-external-link svg{display:none}.markdown a,.pagination-nav__label,.theme-edit-this-page,.wordWrapButtonEnabled_CSzN .wordWrapButtonIcon_mXWl{color:var(--ifm-color-primary)}.markdown a:hover,.theme-edit-this-page:hover{color:var(--ifm-color-primary-dark)}.markdown hr{background-color:var(--ifm-toc-border-color);height:var(--ifm-hr-height);margin-bottom:1.5rem;margin-top:.5rem}.docusaurus-highlight-code-line{background-color:#484d5b;display:block;margin:0 calc(var(--ifm-pre-padding)*-1);padding:0 var(--ifm-pre-padding)}article{counter-reset:a}[aria-describedby=footnote-label]{color:inherit;counter-increment:a;cursor:default;outline:0;text-decoration:none}[aria-describedby=footnote-label]:after{color:#00f;content:"[" counter(a) "]";cursor:pointer;font-size:.5em;margin-left:2px;text-decoration:underline;vertical-align:super}.header-discord-link:before,.header-github-link:before,.header-twitter-link:before{height:1.5rem;width:1.5rem;--tw-content:"";content:var(--tw-content)}.DocSearch-Container a,.tag_VUvg:hover{text-decoration:none}[aria-describedby=footnote-label]:focus:after{outline:dotted thin;outline-offset:2px}[aria-label="Back to content"]{font-size:.8em}.footnotes{font-size:.9em;margin:auto;max-width:605px;padding:10px 0 60px}.footnotes :target{background:#ff0}.header-discord-link:before,.header-github-link:before,.header-twitter-link:before,[data-theme=dark] .header-discord-link:before,[data-theme=dark] .header-github-link:before,[data-theme=dark] .header-twitter-link:before{background-position:50%;background-repeat:no-repeat}.theme-doc-markdown.markdown table{display:table}.navbar-external-link,.theme-edit-this-page{align-items:center;display:none}.footer__item{height:2rem}.markdown h1,h2,h3,h4,h5{font-weight:700;line-height:1.5;margin-bottom:.25rem}.markdown h1{line-height:1}.markdown h2{font-size:2rem}.markdown h3{font-size:1.5rem;line-height:2rem}.markdown h4{font-size:1.25rem;line-height:1.75rem}.admonition-heading h5,.markdown h5{font-size:1.125rem;line-height:1.75rem}.markdown ul{padding-left:2rem;list-style-type:disc}.markdown blockquote{margin:0 0 var(--ifm-spacing-vertical)}.admonition-heading h5{align-items:center;display:flex}.theme-admonition a{font-weight:600}#sponsor-button,#tweet{--ifm-link-hover-decoration:none}.footer__item svg,[data-theme=dark] .shiki.min-light-with-diff,[data-theme=light] .shiki.github-dark{display:none}[data-theme=dark] .shiki.github-dark{background-color:#27272a80!important}[data-theme=dark] .shiki.github-dark .popover{border-width:1px;box-shadow:0 2px 4px -1px #0003,0 4px 5px 0 #00000024,0 1px 10px 0 #0000001f}[data-theme=dark] .shiki.github-dark .popover,[data-theme=dark] .shiki.github-dark .popover .arrow{--tw-border-opacity:1;border-color:rgb(63 63 70/var(--tw-border-opacity));--tw-bg-opacity:1;background-color:rgb(39 39 42/var(--tw-bg-opacity))}[data-theme=light] .shiki.min-light-with-diff .popover{border-width:1px}[data-theme=light] .shiki.min-light-with-diff .popover,[data-theme=light] .shiki.min-light-with-diff .popover .arrow{--tw-border-opacity:1;border-color:rgb(212 212 216/var(--tw-border-opacity));--tw-bg-opacity:1;background-color:rgb(244 244 245/var(--tw-bg-opacity))}.markdown ol,.markdown ul{list-style-position:inside}.markdown ol{list-style-type:decimal}.markdown ol li{margin-top:1rem}.DocSearch-Button-Container,.breadcrumbs,.breadcrumbs__item{align-items:center;display:flex}.header-social-link:hover{opacity:.6;transition-duration:.15s;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke;transition-timing-function:cubic-bezier(.4,0,.2,1)}.header-github-link:before{display:flex;background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 496 512'%3E%3C!--! Font Awesome Pro 6.2.0 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license (Commercial License) Copyright 2022 Fonticons Inc.--%3E%3Cpath d='M165.9 397.4c0 2-2.3 3.6-5.2 3.6-3.3.3-5.6-1.3-5.6-3.6 0-2 2.3-3.6 5.2-3.6 3-.3 5.6 1.3 5.6 3.6m-31.1-4.5c-.7 2 1.3 4.3 4.3 4.9 2.6 1 5.6 0 6.2-2s-1.3-4.3-4.3-5.2c-2.6-.7-5.5.3-6.2 2.3m44.2-1.7c-2.9.7-4.9 2.6-4.6 4.9.3 2 2.9 3.3 5.9 2.6 2.9-.7 4.9-2.6 4.6-4.6-.3-1.9-3-3.2-5.9-2.9M244.8 8C106.1 8 0 113.3 0 252c0 110.9 69.8 205.8 169.5 239.2 12.8 2.3 17.3-5.6 17.3-12.1 0-6.2-.3-40.4-.3-61.4 0 0-70 15-84.7-29.8 0 0-11.4-29.1-27.8-36.6 0 0-22.9-15.7 1.6-15.4 0 0 24.9 2 38.6 25.8 21.9 38.6 58.6 27.5 72.9 20.9 2.3-16 8.8-27.1 16-33.7-55.9-6.2-112.3-14.3-112.3-110.5 0-27.5 7.6-41.3 23.6-58.9-2.6-6.5-11.1-33.3 2.6-67.9 20.9-6.5 69 27 69 27 20-5.6 41.5-8.5 62.8-8.5s42.8 2.9 62.8 8.5c0 0 48.1-33.6 69-27 13.7 34.7 5.2 61.4 2.6 67.9 16 17.7 25.8 31.5 25.8 58.9 0 96.5-58.9 104.2-114.8 110.5 9.2 7.9 17 22.9 17 46.4 0 33.7-.3 75.4-.3 83.6 0 6.5 4.6 14.4 17.3 12.1C428.2 457.8 496 362.9 496 252 496 113.3 383.5 8 244.8 8M97.2 352.9c-1.3 1-1 3.3.7 5.2 1.6 1.6 3.9 2.3 5.2 1 1.3-1 1-3.3-.7-5.2-1.6-1.6-3.9-2.3-5.2-1m-10.8-8.1c-.7 1.3.3 2.9 2.3 3.9 1.6 1 3.6.7 4.3-.7.7-1.3-.3-2.9-2.3-3.9-2-.6-3.6-.3-4.3.7m32.4 35.6c-1.6 1.3-1 4.3 1.3 6.2 2.3 2.3 5.2 2.6 6.5 1 1.3-1.3.7-4.3-1.3-6.2-2.2-2.3-5.2-2.6-6.5-1m-11.4-14.7c-1.6 1-1.6 3.6 0 5.9s4.3 3.3 5.6 2.3c1.6-1.3 1.6-3.9 0-6.2-1.4-2.3-4-3.3-5.6-2'/%3E%3C/svg%3E")}[data-theme=dark] .header-github-link:before{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='%23fff' viewBox='0 0 496 512'%3E%3C!--! Font Awesome Pro 6.2.0 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license (Commercial License) Copyright 2022 Fonticons Inc.--%3E%3Cpath d='M165.9 397.4c0 2-2.3 3.6-5.2 3.6-3.3.3-5.6-1.3-5.6-3.6 0-2 2.3-3.6 5.2-3.6 3-.3 5.6 1.3 5.6 3.6m-31.1-4.5c-.7 2 1.3 4.3 4.3 4.9 2.6 1 5.6 0 6.2-2s-1.3-4.3-4.3-5.2c-2.6-.7-5.5.3-6.2 2.3m44.2-1.7c-2.9.7-4.9 2.6-4.6 4.9.3 2 2.9 3.3 5.9 2.6 2.9-.7 4.9-2.6 4.6-4.6-.3-1.9-3-3.2-5.9-2.9M244.8 8C106.1 8 0 113.3 0 252c0 110.9 69.8 205.8 169.5 239.2 12.8 2.3 17.3-5.6 17.3-12.1 0-6.2-.3-40.4-.3-61.4 0 0-70 15-84.7-29.8 0 0-11.4-29.1-27.8-36.6 0 0-22.9-15.7 1.6-15.4 0 0 24.9 2 38.6 25.8 21.9 38.6 58.6 27.5 72.9 20.9 2.3-16 8.8-27.1 16-33.7-55.9-6.2-112.3-14.3-112.3-110.5 0-27.5 7.6-41.3 23.6-58.9-2.6-6.5-11.1-33.3 2.6-67.9 20.9-6.5 69 27 69 27 20-5.6 41.5-8.5 62.8-8.5s42.8 2.9 62.8 8.5c0 0 48.1-33.6 69-27 13.7 34.7 5.2 61.4 2.6 67.9 16 17.7 25.8 31.5 25.8 58.9 0 96.5-58.9 104.2-114.8 110.5 9.2 7.9 17 22.9 17 46.4 0 33.7-.3 75.4-.3 83.6 0 6.5 4.6 14.4 17.3 12.1C428.2 457.8 496 362.9 496 252 496 113.3 383.5 8 244.8 8M97.2 352.9c-1.3 1-1 3.3.7 5.2 1.6 1.6 3.9 2.3 5.2 1 1.3-1 1-3.3-.7-5.2-1.6-1.6-3.9-2.3-5.2-1m-10.8-8.1c-.7 1.3.3 2.9 2.3 3.9 1.6 1 3.6.7 4.3-.7.7-1.3-.3-2.9-2.3-3.9-2-.6-3.6-.3-4.3.7m32.4 35.6c-1.6 1.3-1 4.3 1.3 6.2 2.3 2.3 5.2 2.6 6.5 1 1.3-1.3.7-4.3-1.3-6.2-2.2-2.3-5.2-2.6-6.5-1m-11.4-14.7c-1.6 1-1.6 3.6 0 5.9s4.3 3.3 5.6 2.3c1.6-1.3 1.6-3.9 0-6.2-1.4-2.3-4-3.3-5.6-2'/%3E%3C/svg%3E")}.header-twitter-link:before{display:flex;background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 512 512'%3E%3C!--! Font Awesome Pro 6.2.0 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license (Commercial License) Copyright 2022 Fonticons Inc.--%3E%3Cpath d='M389.2 48h70.6L305.6 224.2 487 464H345L233.7 318.6 106.5 464H35.8l164.9-188.5L26.8 48h145.6l100.5 132.9zm-24.8 373.8h39.1L151.1 88h-42z'/%3E%3C/svg%3E")}[data-theme=dark] .header-twitter-link:before{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='%23fff' viewBox='0 0 512 512'%3E%3C!--! Font Awesome Pro 6.2.0 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license (Commercial License) Copyright 2022 Fonticons Inc.--%3E%3Cpath d='M389.2 48h70.6L305.6 224.2 487 464H345L233.7 318.6 106.5 464H35.8l164.9-188.5L26.8 48h145.6l100.5 132.9zm-24.8 373.8h39.1L151.1 88h-42z'/%3E%3C/svg%3E")}.header-discord-link:before{display:flex;background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 640 512'%3E%3C!--! Font Awesome Pro 6.2.0 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license (Commercial License) Copyright 2022 Fonticons Inc.--%3E%3Cpath d='M524.531 69.836a1.5 1.5 0 0 0-.764-.7A485 485 0 0 0 404.081 32.03a1.82 1.82 0 0 0-1.923.91 338 338 0 0 0-14.9 30.6 447.9 447.9 0 0 0-134.426 0 310 310 0 0 0-15.135-30.6 1.89 1.89 0 0 0-1.924-.91 483.7 483.7 0 0 0-119.688 37.107 1.7 1.7 0 0 0-.788.676C39.068 183.651 18.186 294.69 28.43 404.354a2.02 2.02 0 0 0 .765 1.375 487.7 487.7 0 0 0 146.825 74.189 1.9 1.9 0 0 0 2.063-.676A348 348 0 0 0 208.12 430.4a1.86 1.86 0 0 0-1.019-2.588 321 321 0 0 1-45.868-21.853 1.885 1.885 0 0 1-.185-3.126 251 251 0 0 0 9.109-7.137 1.82 1.82 0 0 1 1.9-.256c96.229 43.917 200.41 43.917 295.5 0a1.81 1.81 0 0 1 1.924.233 235 235 0 0 0 9.132 7.16 1.884 1.884 0 0 1-.162 3.126 301.4 301.4 0 0 1-45.89 21.83 1.875 1.875 0 0 0-1 2.611 391 391 0 0 0 30.014 48.815 1.86 1.86 0 0 0 2.063.7A486 486 0 0 0 610.7 405.729a1.88 1.88 0 0 0 .765-1.352c12.264-126.783-20.532-236.912-86.934-334.541M222.491 337.58c-28.972 0-52.844-26.587-52.844-59.239s23.409-59.241 52.844-59.241c29.665 0 53.306 26.82 52.843 59.239 0 32.654-23.41 59.241-52.843 59.241m195.38 0c-28.971 0-52.843-26.587-52.843-59.239s23.409-59.241 52.843-59.241c29.667 0 53.307 26.82 52.844 59.239 0 32.654-23.177 59.241-52.844 59.241'/%3E%3C/svg%3E")}[data-theme=dark] .header-discord-link:before{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='%23fff' viewBox='0 0 640 512'%3E%3C!--! Font Awesome Pro 6.2.0 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license (Commercial License) Copyright 2022 Fonticons Inc.--%3E%3Cpath d='M524.531 69.836a1.5 1.5 0 0 0-.764-.7A485 485 0 0 0 404.081 32.03a1.82 1.82 0 0 0-1.923.91 338 338 0 0 0-14.9 30.6 447.9 447.9 0 0 0-134.426 0 310 310 0 0 0-15.135-30.6 1.89 1.89 0 0 0-1.924-.91 483.7 483.7 0 0 0-119.688 37.107 1.7 1.7 0 0 0-.788.676C39.068 183.651 18.186 294.69 28.43 404.354a2.02 2.02 0 0 0 .765 1.375 487.7 487.7 0 0 0 146.825 74.189 1.9 1.9 0 0 0 2.063-.676A348 348 0 0 0 208.12 430.4a1.86 1.86 0 0 0-1.019-2.588 321 321 0 0 1-45.868-21.853 1.885 1.885 0 0 1-.185-3.126 251 251 0 0 0 9.109-7.137 1.82 1.82 0 0 1 1.9-.256c96.229 43.917 200.41 43.917 295.5 0a1.81 1.81 0 0 1 1.924.233 235 235 0 0 0 9.132 7.16 1.884 1.884 0 0 1-.162 3.126 301.4 301.4 0 0 1-45.89 21.83 1.875 1.875 0 0 0-1 2.611 391 391 0 0 0 30.014 48.815 1.86 1.86 0 0 0 2.063.7A486 486 0 0 0 610.7 405.729a1.88 1.88 0 0 0 .765-1.352c12.264-126.783-20.532-236.912-86.934-334.541M222.491 337.58c-28.972 0-52.844-26.587-52.844-59.239s23.409-59.241 52.844-59.241c29.665 0 53.306 26.82 52.843 59.239 0 32.654-23.41 59.241-52.843 59.241m195.38 0c-28.971 0-52.843-26.587-52.843-59.239s23.409-59.241 52.843-59.241c29.667 0 53.307 26.82 52.844 59.239 0 32.654-23.177 59.241-52.844 59.241'/%3E%3C/svg%3E")}#from-github{margin-top:50px}.markdown .github-comment{margin-bottom:2rem}.navbar__link{overflow:hidden}.pagination-nav__link{border-style:none}.shiki .code-container{font-size:.75rem;line-height:1rem}.DocSearch.DocSearch-Button{border-radius:.375rem;--tw-bg-opacity:1;background-color:rgb(244 244 245/var(--tw-bg-opacity))}.DocSearch.DocSearch-Button:is([data-theme=dark] *){--tw-bg-opacity:1;background-color:rgb(39 39 42/var(--tw-bg-opacity))}.DocSearch-Button-Keys{border-radius:.125rem!important;border-width:1px!important;gap:.25rem!important;margin-right:.25rem!important;min-width:auto!important;padding-left:.25rem!important;padding-right:.25rem!important}.DocSearch-Button-Keys:is([data-theme=dark] *){background-color:#3f3f4680!important;border-color:#52525b80!important}.DocSearch-Button-Key{background:#0000!important;border-style:none!important;font-size:.875rem!important;height:auto!important;line-height:1.25rem!important;margin-right:0!important;padding:0!important;top:0!important;width:auto!important;--tw-shadow:0 0 #0000!important;--tw-shadow-colored:0 0 #0000!important;box-shadow:var(--tw-ring-offset-shadow,0 0 #0000),var(--tw-ring-shadow,0 0 #0000),var(--tw-shadow)!important}.DocSearch-Button-Container svg{height:1rem;margin-left:.25rem;margin-right:.25rem;width:1rem}.DocSearch-Button-Container span{font-size:.875rem;line-height:1.25rem}.DocSearch-Logo a{align-items:center;font-size:.75rem;line-height:1rem}.DocSearch-Logo a svg{width:4rem}.InstallationSnippet__CodeBlock .copy-button{display:none}.tag_VUvg{border:1px solid var(--docusaurus-tag-list-border);transition:border var(--ifm-transition-fast)}.tag_VUvg:hover{--docusaurus-tag-list-border:var(--ifm-link-color)}.tagRegular_N_kg{border-radius:var(--ifm-global-radius);font-size:90%;padding:.2rem .5rem .3rem}.tagWithCount_VvhF{align-items:center;border-left:0;display:flex;padding:0 .5rem 0 1rem;position:relative}.tagWithCount_VvhF:after,.tagWithCount_VvhF:before{border:1px solid var(--docusaurus-tag-list-border);content:"";position:absolute;top:50%;transition:inherit}.tagWithCount_VvhF:before{border-bottom:0;border-right:0;height:1.18rem;right:100%;transform:translate(50%,-50%) rotate(-45deg);width:1.18rem}.tagWithCount_VvhF:after{border-radius:50%;height:.5rem;left:0;transform:translateY(-50%);width:.5rem}.tagWithCount_VvhF span{background:var(--ifm-color-secondary);border-radius:var(--ifm-global-radius);color:var(--ifm-color-black);font-size:.7rem;line-height:1.2;margin-left:.3rem;padding:.1rem .4rem}.tags_x9EF{display:inline}.tag_TC8p{display:inline-block;margin:0 .4rem .5rem 0}.iconEdit_eR_g{margin-right:.3em;vertical-align:sub}.lastUpdated_cSz_{font-size:smaller;font-style:italic;margin-top:.2rem}.tocCollapsibleButton_QWaa{align-items:center;display:flex;font-size:inherit;justify-content:space-between;padding:.4rem .8rem;width:100%}.tocCollapsibleButton_QWaa:after{background:var(--ifm-menu-link-sublist-icon) 50% 50%/2rem 2rem no-repeat;content:"";filter:var(--ifm-menu-link-sublist-icon-filter);height:1.25rem;transform:rotate(180deg);transition:transform var(--ifm-transition-fast);width:1.25rem}.tocCollapsibleButtonExpanded_LKh4:after,.tocCollapsibleExpanded_ivxb{transform:none}.tocCollapsible_I5Su{background-color:var(--ifm-menu-color-background-active);border-radius:var(--ifm-global-radius);margin:1rem 0}.tocCollapsibleContent_p67m>ul{border-left:none;border-top:1px solid var(--ifm-color-emphasis-300);font-size:15px;padding:.2rem 0}.tocCollapsibleContent_p67m ul li{margin:.4rem .8rem}.tocCollapsibleContent_p67m a{display:block}.tableOfContents_o7P6{max-height:calc(100vh - var(--ifm-navbar-height) - 2rem);overflow-y:auto;position:sticky;top:calc(var(--ifm-navbar-height) + 1rem)}.backToTopButton_Hgz6{background-color:var(--ifm-color-emphasis-200);border-radius:50%;bottom:1.3rem;box-shadow:var(--ifm-global-shadow-lw);height:3rem;opacity:0;position:fixed;right:1.3rem;transform:scale(0);transition:all var(--ifm-transition-fast) var(--ifm-transition-timing-default);visibility:hidden;width:3rem;z-index:calc(var(--ifm-z-index-fixed) - 1)}.backToTopButton_Hgz6:after{background-color:var(--ifm-color-emphasis-1000);content:" ";display:inline-block;height:100%;-webkit-mask:var(--ifm-menu-link-sublist-icon) 50%/2rem 2rem no-repeat;mask:var(--ifm-menu-link-sublist-icon) 50%/2rem 2rem no-repeat;width:100%}.backToTopButtonShow_mRSN{opacity:1;transform:scale(1);visibility:visible}.DocSearch-Button{align-items:center;background:var(--docsearch-searchbox-background);border:0;border-radius:40px;color:var(--docsearch-muted-color);cursor:pointer;display:flex;font-weight:500;height:36px;justify-content:space-between;padding:0 8px;-webkit-user-select:none;user-select:none}.DocSearch-Button:active,.DocSearch-Button:focus,.DocSearch-Button:hover{background:var(--docsearch-searchbox-focus-background);box-shadow:var(--docsearch-searchbox-shadow);color:var(--docsearch-text-color);outline:0}.DocSearch-Search-Icon{stroke-width:1.6}.DocSearch-Hit-Tree,.DocSearch-Hit-action,.DocSearch-Hit-icon,.DocSearch-Reset{stroke-width:var(--docsearch-icon-stroke-width)}.DocSearch-Button .DocSearch-Search-Icon{color:var(--docsearch-text-color)}.DocSearch-Button-Placeholder{font-size:1rem;padding:0 12px 0 6px}.DocSearch-Button-Keys{display:flex;min-width:calc(40px + .8em)}.DocSearch-Button-Key{align-items:center;background:var(--docsearch-key-gradient);border:0;border-radius:3px;box-shadow:var(--docsearch-key-shadow);color:var(--docsearch-muted-color);display:flex;justify-content:center;position:relative}.DocSearch-Button-Key--pressed{box-shadow:var(--docsearch-key-pressed-shadow);transform:translate3d(0,1px,0)}.DocSearch--active{overflow:hidden!important}.DocSearch-Container{background-color:var(--docsearch-container-background);height:100vh;left:0;position:fixed;top:0;width:100vw;z-index:200}.DocSearch-Hit[aria-selected=true] mark,.content_u__I a{text-decoration:underline}.DocSearch-Link{appearance:none;background:none;border:0;color:var(--docsearch-highlight-color);cursor:pointer;font:inherit;margin:0;padding:0}.DocSearch-Modal{background:var(--docsearch-modal-background);border-radius:6px;box-shadow:var(--docsearch-modal-shadow);flex-direction:column;margin:60px auto auto;max-width:var(--docsearch-modal-width);position:relative}.DocSearch-SearchBar{display:flex;padding:var(--docsearch-spacing) var(--docsearch-spacing) 0}.DocSearch-Form{align-items:center;background:var(--docsearch-searchbox-focus-background);border-radius:4px;box-shadow:var(--docsearch-searchbox-shadow);display:flex;height:var(--docsearch-searchbox-height);margin:0;padding:0 var(--docsearch-spacing);position:relative;width:100%}.DocSearch-Input{appearance:none;background:#0000;border:0;color:var(--docsearch-text-color);flex:1;font:inherit;font-size:1.2em;height:100%;outline:0;padding:0 0 0 8px;width:80%}.DocSearch-Input::placeholder{color:var(--docsearch-muted-color);opacity:1}.DocSearch-Input::-webkit-search-cancel-button,.DocSearch-Input::-webkit-search-decoration,.DocSearch-Input::-webkit-search-results-button,.DocSearch-Input::-webkit-search-results-decoration{display:none}.DocSearch-LoadingIndicator,.DocSearch-MagnifierLabel,.DocSearch-Reset{margin:0;padding:0}.DocSearch-Container--Stalled .DocSearch-LoadingIndicator,.DocSearch-MagnifierLabel,.DocSearch-Reset{align-items:center;color:var(--docsearch-highlight-color);display:flex;justify-content:center}.DocSearch-Cancel,.DocSearch-Container--Stalled .DocSearch-MagnifierLabel,.DocSearch-LoadingIndicator,.DocSearch-Reset[hidden]{display:none}.DocSearch-Reset{animation:.1s ease-in forwards a;appearance:none;background:none;border:0;border-radius:50%;color:var(--docsearch-icon-color);cursor:pointer;padding:2px;right:0}.DocSearch-Help,.DocSearch-HitsFooter,.DocSearch-Label{color:var(--docsearch-muted-color)}.DocSearch-Reset:hover{color:var(--docsearch-highlight-color)}.DocSearch-LoadingIndicator svg,.DocSearch-MagnifierLabel svg{height:24px;width:24px}.DocSearch-Dropdown{max-height:calc(var(--docsearch-modal-height) - var(--docsearch-searchbox-height) - var(--docsearch-spacing) - var(--docsearch-footer-height));min-height:var(--docsearch-spacing);overflow-y:auto;overflow-y:overlay;padding:0 var(--docsearch-spacing);scrollbar-color:var(--docsearch-muted-color) var(--docsearch-modal-background);scrollbar-width:thin}.DocSearch-Dropdown::-webkit-scrollbar{width:12px}.DocSearch-Dropdown::-webkit-scrollbar-track{background:#0000}.DocSearch-Dropdown::-webkit-scrollbar-thumb{background-color:var(--docsearch-muted-color);border:3px solid var(--docsearch-modal-background);border-radius:20px}.DocSearch-Dropdown ul{list-style:none;margin:0;padding:0}.DocSearch-Label{font-size:.75em;line-height:1.6em}.DocSearch-Help{font-size:.9em;margin:0;-webkit-user-select:none;user-select:none}.DocSearch-Title{font-size:1.2em}.DocSearch-Logo a,.ol-scale-bar-inner{display:flex}.DocSearch-Logo svg{color:var(--docsearch-logo-color);margin-left:8px}.DocSearch-Hits:last-of-type{margin-bottom:24px}.DocSearch-Hits mark{background:none;color:var(--docsearch-highlight-color)}.DocSearch-HitsFooter{display:flex;font-size:.85em;justify-content:center;margin-bottom:var(--docsearch-spacing);padding:var(--docsearch-spacing)}.DocSearch-HitsFooter a{border-bottom:1px solid;color:inherit}.DocSearch-Hit{border-radius:4px;display:flex;padding-bottom:4px;position:relative}.DocSearch-Hit--deleting{opacity:0;transition:.25s linear}.DocSearch-Hit--favoriting{transform:scale(0);transform-origin:top center;transition:.25s linear .25s}.DocSearch-Hit a{background:var(--docsearch-hit-background);border-radius:4px;box-shadow:var(--docsearch-hit-shadow);display:block;padding-left:var(--docsearch-spacing);width:100%}.DocSearch-Hit-source{background:var(--docsearch-modal-background);color:var(--docsearch-highlight-color);font-size:.85em;font-weight:600;line-height:32px;margin:0 -4px;padding:8px 4px 0;position:sticky;top:0;z-index:10}.DocSearch-Hit-Tree{color:var(--docsearch-muted-color);height:var(--docsearch-hit-height);opacity:.5;width:24px}.DocSearch-Hit[aria-selected=true] a{background-color:var(--docsearch-highlight-color)}.DocSearch-Hit-Container{align-items:center;color:var(--docsearch-hit-color);display:flex;flex-direction:row;height:var(--docsearch-hit-height);padding:0 var(--docsearch-spacing) 0 0}.DocSearch-Hit-icon{height:20px;width:20px}.DocSearch-Hit-action,.DocSearch-Hit-icon{color:var(--docsearch-muted-color)}.DocSearch-Hit-action{align-items:center;display:flex;height:22px;width:22px}.DocSearch-Hit-action svg{display:block;height:18px;width:18px}.DocSearch-Hit-action+.DocSearch-Hit-action{margin-left:6px}.DocSearch-Hit-action-button{appearance:none;background:none;border:0;border-radius:50%;color:inherit;cursor:pointer;padding:2px}#__docusaurus-base-url-issue-banner-container,.docSidebarContainer_O1my,.navbarSearchContainer_VZH1:empty,.ol-attribution.ol-collapsed ul,.ol-attribution.ol-uncollapsible button,.ol-overviewmap.ol-collapsed .ol-overviewmap-map,.ol-overviewmap.ol-uncollapsible button,.ol-unsupported,.sidebarLogo_fWgJ,.themedComponent_m4b1,[data-theme=dark] .lightToggleIcon_RzfO,[data-theme=light] .darkToggleIcon_pRhd,html[data-announcement-bar-initially-dismissed=true] .announcementBar_Pmrh,svg.DocSearch-Hit-Select-Icon{display:none}.DocSearch-Hit[aria-selected=true] .DocSearch-Hit-Select-Icon,.ol-overviewmap .ol-overviewmap-map,.ol-overviewmap button{display:block}.DocSearch-Hit-action-button:focus,.DocSearch-Hit-action-button:hover{background:#0003;transition:background-color .1s ease-in}.DocSearch-Hit-action-button:focus path,.DocSearch-Hit-action-button:hover path{fill:#fff}.DocSearch-Hit-content-wrapper{display:flex;flex:1 1 auto;flex-direction:column;font-weight:500;justify-content:center;line-height:1.2em;margin:0 8px;overflow-x:hidden;position:relative;width:80%}.DocSearch-Hit-title{font-size:.9em}.DocSearch-Hit-path{color:var(--docsearch-muted-color);font-size:.75em}.DocSearch-Hit[aria-selected=true] .DocSearch-Hit-Tree,.DocSearch-Hit[aria-selected=true] .DocSearch-Hit-action,.DocSearch-Hit[aria-selected=true] .DocSearch-Hit-icon,.DocSearch-Hit[aria-selected=true] .DocSearch-Hit-path,.DocSearch-Hit[aria-selected=true] .DocSearch-Hit-text,.DocSearch-Hit[aria-selected=true] .DocSearch-Hit-title,.DocSearch-Hit[aria-selected=true] mark{color:var(--docsearch-hit-active-color)!important}.DocSearch-ErrorScreen,.DocSearch-NoResults,.DocSearch-StartScreen{font-size:.9em;margin:0 auto;padding:36px 0;text-align:center;width:80%}.DocSearch-Screen-Icon{color:var(--docsearch-muted-color);padding-bottom:12px}.DocSearch-NoResults-Prefill-List{display:inline-block;padding-bottom:24px;text-align:left}.DocSearch-NoResults-Prefill-List ul{display:inline-block;padding:8px 0 0}.DocSearch-NoResults-Prefill-List li{list-style-position:inside;list-style-type:"» "}.DocSearch-Prefill{appearance:none;background:none;border:0;border-radius:1em;color:var(--docsearch-highlight-color);cursor:pointer;display:inline-block;font-size:1em;font-weight:700;padding:0}.DocSearch-Prefill:focus,.DocSearch-Prefill:hover{outline:0;text-decoration:underline}.DocSearch-Footer{align-items:center;background:var(--docsearch-footer-background);border-radius:0 0 8px 8px;box-shadow:var(--docsearch-footer-shadow);display:flex;flex-direction:row-reverse;flex-shrink:0;height:var(--docsearch-footer-height);justify-content:space-between;padding:0 var(--docsearch-spacing);position:relative;-webkit-user-select:none;user-select:none;width:100%;z-index:300}.DocSearch-Commands li,.DocSearch-Commands-Key,.buttons_AeoN,.features_cAfv{align-items:center;display:flex}.DocSearch-Commands{color:var(--docsearch-muted-color);display:flex;list-style:none;margin:0;padding:0}.DocSearch-Commands li:not(:last-of-type){margin-right:.8em}.DocSearch-Commands-Key{background:var(--docsearch-key-gradient);border:0;border-radius:2px;box-shadow:var(--docsearch-key-shadow);color:var(--docsearch-muted-color);height:18px;justify-content:center;margin-right:.4em;padding:0 0 1px;width:20px}.DocSearch-VisuallyHiddenForAccessibility{clip:rect(0 0 0 0);clip-path:inset(50%);height:1px;overflow:hidden;position:absolute;white-space:nowrap;width:1px}@keyframes a{0%{opacity:0}to{opacity:1}}.DocSearch-Button{margin:0;transition:all var(--ifm-transition-fast) var(--ifm-transition-timing-default)}.DocSearch-Container,.skipToContent_JWZn{z-index:calc(var(--ifm-z-index-fixed) + 1)}.skipToContent_JWZn{background-color:var(--ifm-background-surface-color);color:var(--ifm-color-emphasis-900);left:100%;padding:calc(var(--ifm-global-spacing)/2) var(--ifm-global-spacing);position:fixed;top:1rem}.skipToContent_JWZn:focus{box-shadow:var(--ifm-global-shadow-md);left:1rem}.closeButton_zgxI{line-height:0;padding:0}.content_u__I{font-size:85%;padding:5px 0;text-align:center}.content_u__I a{color:inherit}.ol-attribution a,.ol-control button{color:var(--ol-subtle-foreground-color)}.announcementBar_Pmrh{align-items:center;background-color:var(--ifm-color-white);border-bottom:1px solid var(--ifm-color-emphasis-100);color:var(--ifm-color-black);display:flex;height:var(--docusaurus-announcement-bar-height)}.playgroundHeader_NXZH,.toggleButton_sG8X:hover{background:var(--ifm-color-emphasis-200)}.announcementBarPlaceholder_mBQ1{flex:0 0 10px}.announcementBarClose_Xukh{align-self:stretch;flex:0 0 30px}.toggle_YmgI{height:2rem;width:2rem}.toggleButton_sG8X{align-items:center;border-radius:50%;display:flex;height:100%;justify-content:center;transition:background var(--ifm-transition-fast);width:100%}.toggleButtonDisabled_L03o{cursor:not-allowed}.darkNavbarColorModeToggle_MBLh:hover{background:var(--ifm-color-gray-800)}[data-theme=dark] .themedComponent--dark_u3xw,[data-theme=light] .themedComponent--light_IQaf,html:not([data-theme]) .themedComponent--light_IQaf{display:initial}[data-theme=dark]:root{--docusaurus-collapse-button-bg:#ffffff0d;--docusaurus-collapse-button-bg-hover:#ffffff1a}.collapseSidebarButton_ZU5q{display:none;margin:0}.iconExternalLink_Dz2U{margin-left:.3rem}.docMainContainer_NQ0t,.docRoot__xOH{display:flex;width:100%}.docsWrapper_mq5I{display:flex;flex:1 0 auto}.iconLanguage_UzTA{margin-right:5px;vertical-align:text-bottom}.navbarHideable_JLM_{transition:transform var(--ifm-transition-fast) ease}.navbarHidden_rzEO{transform:translate3d(0,calc(-100% - 2px),0)}.errorBoundaryError_vIb3{color:red;white-space:pre-wrap}.errorBoundaryFallback_COUJ{color:red;padding:.55rem}body:not(.navigation-with-keyboard) :not(input):focus{outline:0}.footerLogoLink_W7fx{opacity:.5;transition:opacity var(--ifm-transition-fast) var(--ifm-transition-timing-default)}.footerLogoLink_W7fx:hover,.hash-link:focus,:hover>.hash-link{opacity:1}.anchorWithStickyNavbar_Cs0R{scroll-margin-top:calc(var(--ifm-navbar-height) + .5rem)}.anchorWithHideOnScrollNavbar_pXO1{scroll-margin-top:.5rem}.hash-link{opacity:0;padding-left:.5rem;transition:opacity var(--ifm-transition-fast);-webkit-user-select:none;user-select:none}.hash-link:before{content:"#"}.mainWrapper_e8ts{display:flex;flex:1 0 auto;flex-direction:column}.docusaurus-mt-lg{margin-top:3rem}#__docusaurus{display:flex;flex-direction:column;min-height:100%}.playgroundContainer_ovbv{border-radius:var(--ifm-global-radius);box-shadow:var(--ifm-global-shadow-lw);margin-bottom:var(--ifm-leading);overflow:hidden}.playgroundHeader_NXZH{color:var(--ifm-color-content);font-size:var(--ifm-code-font-size);font-weight:700;letter-spacing:.08rem;padding:.75rem}.playgroundHeader_NXZH:first-of-type{background:var(--ifm-color-emphasis-600);color:var(--ifm-color-content-inverse)}.playgroundEditor_GESO{direction:ltr;font:var(--ifm-code-font-size)/var(--ifm-pre-line-height) var(--ifm-font-family-monospace)!important}.playgroundPreview_Di3k{background-color:var(--ifm-pre-background);padding:1rem}.ol-attribution:not(.ol-collapsed),.ol-scale-line{background:var(--ol-partial-background-color)}:host,:root{--ol-background-color:#fff;--ol-accent-background-color:#f5f5f5;--ol-subtle-background-color:#80808040;--ol-partial-background-color:#ffffffbf;--ol-foreground-color:#333;--ol-subtle-foreground-color:#666;--ol-brand-color:#0af}.ol-box{background-color:var(--ol-partial-background-color);border:1.5px solid var(--ol-background-color);border-radius:2px}.ol-mouse-position{position:absolute;right:8px;top:8px}.ol-scale-line{border-radius:4px;bottom:8px;left:8px;padding:2px;position:absolute}.ol-scale-line-inner{border:1px solid var(--ol-subtle-foreground-color);border-top:none;color:var(--ol-foreground-color);font-size:10px;margin:1px;text-align:center;transition:.25s;will-change:contents,width}.ol-scale-bar{bottom:8px;left:8px;position:absolute}.ol-scale-step-marker{background-color:var(--ol-foreground-color);float:right;height:15px;width:1px;z-index:10}.ol-scale-step-text{bottom:-5px;font-size:10px;z-index:11}.ol-scale-step-text,.ol-scale-text{color:var(--ol-foreground-color);position:absolute;text-shadow:-1.5px 0 var(--ol-partial-background-color),0 1.5px var(--ol-partial-background-color),1.5px 0 var(--ol-partial-background-color),0 -1.5px var(--ol-partial-background-color)}.ol-scale-text{bottom:25px;font-size:12px;text-align:center}.ol-scale-singlebar{border:1px solid var(--ol-foreground-color);height:10px;position:relative;z-index:9}.ol-scale-singlebar-even{background-color:var(--ol-subtle-foreground-color)}.ol-control button,.ol-scale-singlebar-odd{background-color:var(--ol-background-color)}.ol-unselectable,.ol-viewport{-webkit-touch-callout:none;-webkit-user-select:none;user-select:none}.ol-viewport canvas{all:unset}.ol-viewport{touch-action:none}.ol-selectable{-webkit-touch-callout:default;-webkit-user-select:text;user-select:text}.ol-grabbing{cursor:grabbing}.ol-grab,.ol-overviewmap .ol-overviewmap-box:hover{cursor:move}.ol-grab{cursor:grab}.ol-control{background-color:var(--ol-subtle-background-color);border-radius:4px;position:absolute}.ol-zoom{left:.5em;top:.5em}.ol-rotate{right:.5em;top:.5em;transition:opacity .25s linear,visibility linear}.ol-rotate.ol-hidden{opacity:0;transition:opacity .25s linear,visibility 0s linear .25s;visibility:hidden}.ol-zoom-extent{left:.5em;top:4.643em}.ol-full-screen{right:.5em;top:.5em}.ol-control button{border:none;border-radius:2px;display:block;font-size:inherit;font-weight:700;height:1.375em;line-height:.4em;margin:1px;padding:0;text-align:center;text-decoration:none;width:1.375em}.ol-control button::-moz-focus-inner{border:none;padding:0}.ol-zoom-extent button{line-height:1.4em}.ol-compass{display:block;font-weight:400;will-change:transform}.ol-touch .ol-control button{font-size:1.5em}.ol-touch .ol-zoom-extent,.ol-touch .ol-zoomslider{top:5.5em}.ol-control button:focus,.ol-control button:hover{color:var(--ol-foreground-color);outline:1px solid var(--ol-subtle-foreground-color);text-decoration:none}.ol-zoom .ol-zoom-in{border-radius:2px 2px 0 0}.ol-zoom .ol-zoom-out{border-radius:0 0 2px 2px}.ol-attribution{align-items:center;bottom:.5em;display:flex;flex-flow:row-reverse;max-width:calc(100% - 1.3em);right:.5em;text-align:right}.ol-attribution a{text-decoration:none}.ol-attribution ul{color:var(--ol-foreground-color);font-size:12px;margin:0;padding:1px .5em;text-shadow:0 0 2px var(--ol-background-color)}.buttonGroup_pzim button,.codeBlockContainer_GRsX{background:var(--prism-background-color);color:var(--prism-color)}.ol-attribution li{display:inline;list-style:none}.ol-attribution li:not(:last-child):after{content:" "}.ol-attribution img{max-height:2em;max-width:inherit;vertical-align:middle}.ol-attribution button{flex-shrink:0}.ol-attribution.ol-uncollapsible{border-radius:4px 0 0;bottom:0;right:0}.ol-attribution.ol-uncollapsible img{margin-top:-.2em;max-height:1.6em}.ol-zoomslider{height:200px;left:.5em;top:4.5em}.ol-zoomslider button{height:10px;position:relative}.ol-overviewmap{bottom:.5em;left:.5em}.ol-overviewmap.ol-uncollapsible{border-radius:0 4px 0 0;bottom:0;left:0}.ol-overviewmap .ol-overviewmap-map{border:1px solid var(--ol-subtle-foreground-color);height:150px;width:150px}.ol-overviewmap:not(.ol-collapsed) button{bottom:0;left:0;position:absolute}.ol-overviewmap:not(.ol-collapsed){background:var(--ol-subtle-background-color)}.ol-overviewmap-box{border:1.5px dotted var(--ol-subtle-foreground-color)}.codeBlockContainer_GRsX{border-radius:var(--ifm-code-border-radius);box-shadow:var(--ifm-global-shadow-lw);margin-bottom:var(--ifm-leading)}.codeBlockContent_cB0A{border-radius:inherit;direction:ltr;position:relative}.codeBlockTitle_LC3P{border-bottom:1px solid var(--ifm-color-emphasis-300);border-top-left-radius:inherit;border-top-right-radius:inherit;font-size:var(--ifm-code-font-size);font-weight:500;padding:.75rem var(--ifm-pre-padding)}.codeBlock_PmWK{--ifm-pre-background:var(--prism-background-color);margin:0;padding:0}.codeBlockTitle_LC3P+.codeBlockContent_cB0A .codeBlock_PmWK{border-top-left-radius:0;border-top-right-radius:0}.codeBlockLines_QIPa{float:left;font:inherit;min-width:100%;padding:var(--ifm-pre-padding)}.codeBlockLinesWithNumbering_Yh6m{display:table;padding:var(--ifm-pre-padding) 0}.buttonGroup_pzim{column-gap:.2rem;display:flex;position:absolute;right:calc(var(--ifm-pre-padding)/2);top:calc(var(--ifm-pre-padding)/2)}.buttonGroup_pzim button{align-items:center;border:1px solid var(--ifm-color-emphasis-300);border-radius:var(--ifm-global-radius);display:flex;line-height:0;opacity:0;padding:.4rem;transition:opacity var(--ifm-transition-fast) ease-in-out}.buttonGroup_pzim button:focus-visible,.buttonGroup_pzim button:hover{opacity:1!important}.theme-code-block:hover .buttonGroup_pzim button{opacity:.4}:where(:root){--docusaurus-highlighted-code-line-bg:#484d5b}:where([data-theme=dark]){--docusaurus-highlighted-code-line-bg:#646464}.theme-code-block-highlighted-line{background-color:var(--docusaurus-highlighted-code-line-bg);display:block;margin:0 calc(var(--ifm-pre-padding)*-1);padding:0 var(--ifm-pre-padding)}.codeLine__sKW{counter-increment:b;display:table-row}.codeLineNumber_sl1z{background:var(--ifm-pre-background);display:table-cell;left:0;overflow-wrap:normal;padding:0 var(--ifm-pre-padding);position:sticky;text-align:right;width:1%}.codeLineNumber_sl1z:before{content:counter(b);opacity:.4}.codeLineContent_xrHk{padding-right:var(--ifm-pre-padding)}.theme-code-block:hover .copyButtonCopied_vnqC{opacity:1!important}.copyButtonIcons_hpTp{height:1.125rem;position:relative;width:1.125rem}.copyButtonIcon_y7Ui,.copyButtonSuccessIcon_zEDM{left:0;position:absolute;top:0;fill:currentColor;height:inherit;opacity:inherit;transition:all var(--ifm-transition-fast) ease;width:inherit}.copyButtonSuccessIcon_zEDM{color:#00d600;left:50%;opacity:0;top:50%;transform:translate(-50%,-50%) scale(.33)}.copyButtonCopied_vnqC .copyButtonIcon_y7Ui{opacity:0;transform:scale(.33)}.copyButtonCopied_vnqC .copyButtonSuccessIcon_zEDM{opacity:1;transform:translate(-50%,-50%) scale(1);transition-delay:75ms}.wordWrapButtonIcon_mXWl{height:1.2rem;width:1.2rem}.details_s9GI{--docusaurus-details-summary-arrow-size:0.38rem;--docusaurus-details-transition:transform 200ms ease;--docusaurus-details-decoration-color:grey}.details_s9GI>summary{cursor:pointer;list-style:none;padding-left:1rem;position:relative}.details_s9GI>summary::-webkit-details-marker{display:none}.details_s9GI>summary:before{border-color:#0000 #0000 #0000 var(--docusaurus-details-decoration-color);border-style:solid;border-width:var(--docusaurus-details-summary-arrow-size);content:"";left:0;position:absolute;top:.45rem;transform:rotate(0);transform-origin:calc(var(--docusaurus-details-summary-arrow-size)/2) 50%;transition:var(--docusaurus-details-transition)}.collapsibleContent_FqHA{border-top:1px solid var(--docusaurus-details-decoration-color);margin-top:1rem;padding-top:1rem}.details_opvo{--docusaurus-details-decoration-color:var(--ifm-alert-border-color);--docusaurus-details-transition:transform var(--ifm-transition-fast) ease;border:1px solid var(--ifm-alert-border-color);margin:0 0 var(--ifm-spacing-vertical)}.containsTaskList_U4D4{list-style:none}.img_MP5o{height:auto}.admonition_nvq2{margin-bottom:1em}.admonitionHeading_p0PH{font:var(--ifm-heading-font-weight) var(--ifm-h5-font-size)/var(--ifm-heading-line-height) var(--ifm-heading-font-family)}.admonitionHeading_p0PH:not(:last-child){margin-bottom:.3rem}.admonitionIcon_rB9Z{display:inline-block;margin-right:.4em;vertical-align:middle}.admonitionIcon_rB9Z svg{display:inline-block;height:1.6em;width:1.6em;fill:var(--ifm-alert-foreground-color)}.breadcrumbHomeIcon_SGwQ{height:1.1rem;position:relative;top:1px;vertical-align:top;width:1.1rem}.breadcrumbsContainer_pff_{--ifm-breadcrumb-size-multiplier:0.8;margin-bottom:.8rem}.searchQueryInput_ISfi,.searchVersionInput_kF_k{background:var(--docsearch-searchbox-focus-background);border:2px solid var(--ifm-toc-border-color);border-radius:var(--ifm-global-radius);color:var(--docsearch-text-color);font:var(--ifm-font-size-base) var(--ifm-font-family-base);margin-bottom:.5rem;padding:.8rem;transition:border var(--ifm-transition-fast) ease;width:100%}.searchQueryInput_ISfi:focus,.searchVersionInput_kF_k:focus{border-color:var(--docsearch-primary-color);outline:0}.searchQueryInput_ISfi::placeholder{color:var(--docsearch-muted-color)}.searchResultsColumn_lS2A{font-size:.9rem;font-weight:700}.algoliaLogo_E52w{max-width:150px}.algoliaLogoPathFill_iXnF{fill:var(--ifm-font-color-base)}.searchResultItem_DkoN{border-bottom:1px solid var(--ifm-toc-border-color);padding:1rem 0}.searchResultItemHeading_kgxq{font-weight:400;margin-bottom:0}.searchResultItemPath_TIJI{color:var(--ifm-color-content-secondary);font-size:.8rem;--ifm-breadcrumb-separator-size-multiplier:1}.searchResultItemSummary_qD5k{font-style:italic;margin:.5rem 0 0}.loadingSpinner_TNi7{animation:1s linear infinite b;border:.4em solid #eee;border-radius:50%;border-top:.4em solid var(--ifm-color-primary);height:3rem;margin:0 auto;width:3rem}@keyframes b{to{transform:rotate(1turn)}}.loader_RCTQ{margin-top:2rem}.search-result-match{background:#ffd78e40;color:var(--docsearch-hit-color);padding:.09em 0}.heroBanner_qdFl{overflow:hidden;padding:4rem 0;position:relative;text-align:center}.heroBannerLogo_TelY{max-height:150px;max-width:150px}.features_cAfv{padding:2rem 0;width:100%}.featureImage_wMIZ{height:200px;max-width:300px}@media (min-width:640px){.container,.homepage .navbar__inner{max-width:640px}}@media (min-width:768px){.container,.homepage .navbar__inner{max-width:768px}}@media (min-width:997px){.collapseSidebarButton_ZU5q,.expandButton_beqS{background-color:var(--docusaurus-collapse-button-bg)}.lastUpdated_cSz_{text-align:right}.tocMobile_zzjx{display:none}:root{--docusaurus-announcement-bar-height:30px}.announcementBarClose_Xukh,.announcementBarPlaceholder_mBQ1{flex-basis:50px}.collapseSidebarButton_ZU5q{border:1px solid var(--ifm-toc-border-color);border-radius:0;bottom:0;display:block!important;height:40px;position:sticky}.collapseSidebarButtonIcon_Gifv{margin-top:4px;transform:rotate(180deg)}.expandButtonIcon_DjCc,[dir=rtl] .collapseSidebarButtonIcon_Gifv{transform:rotate(0)}.collapseSidebarButton_ZU5q:focus,.collapseSidebarButton_ZU5q:hover,.expandButton_beqS:focus,.expandButton_beqS:hover{background-color:var(--docusaurus-collapse-button-bg-hover)}.menuHtmlItem_B12n{padding:var(--ifm-menu-link-padding-vertical) var(--ifm-menu-link-padding-horizontal)}.menu_VJcS{flex-grow:1;padding:.5rem}@supports (scrollbar-gutter:stable){.menu_VJcS{padding:.5rem 0 .5rem .5rem;scrollbar-gutter:stable}}.menuWithAnnouncementBar_vh4M{margin-bottom:var(--docusaurus-announcement-bar-height)}.sidebar_FPkI{display:flex;flex-direction:column;height:100%;padding-top:var(--ifm-navbar-height);width:var(--doc-sidebar-width)}.sidebarWithHideableNavbar_unek{padding-top:0}.sidebarHidden_NnBA{opacity:0;visibility:hidden}.sidebarLogo_fWgJ{align-items:center;color:inherit!important;display:flex!important;margin:0 var(--ifm-navbar-padding-horizontal);max-height:var(--ifm-navbar-height);min-height:var(--ifm-navbar-height);text-decoration:none!important}.sidebarLogo_fWgJ img{height:2rem;margin-right:.5rem}.expandButton_beqS{align-items:center;display:flex;height:100%;justify-content:center;position:absolute;right:0;top:0;transition:background-color var(--ifm-transition-fast) ease;width:100%}[dir=rtl] .expandButtonIcon_DjCc{transform:rotate(180deg)}.docSidebarContainer_O1my{border-right:1px solid var(--ifm-toc-border-color);clip-path:inset(0);display:block;margin-top:calc(var(--ifm-navbar-height)*-1);transition:width var(--ifm-transition-fast) ease;width:var(--doc-sidebar-width);will-change:width}.docSidebarContainerHidden_zIbV{cursor:pointer;width:var(--doc-sidebar-hidden-width)}.sidebarViewport_FfFF{height:100%;max-height:100vh;position:sticky;top:0}.docMainContainer_NQ0t{flex-grow:1;max-width:calc(100% - var(--doc-sidebar-width))}.docMainContainerEnhanced_kkbP{max-width:calc(100% - var(--doc-sidebar-hidden-width))}.docItemWrapperEnhanced_Yofc{max-width:calc(var(--ifm-container-width) + var(--doc-sidebar-width))!important}.navbarSearchContainer_VZH1{padding:var(--ifm-navbar-item-padding-vertical) var(--ifm-navbar-item-padding-horizontal)}.docItemCol_ZVOF{max-width:75%!important}}@media (min-width:1024px){.container,.homepage .navbar__inner{max-width:1024px}.shiki .code-container{font-size:1rem;line-height:1.5rem}}@media (min-width:1280px){.container,.homepage .navbar__inner{max-width:1280px}.navbar-external-link,.theme-edit-this-page{display:flex}}@media (min-width:1440px){.container{max-width:var(--ifm-container-width-xl)}}@media (min-width:1536px){.container,.homepage .navbar__inner{max-width:1536px}}@media (max-width:996px){.col{--ifm-col-width:100%;flex-basis:var(--ifm-col-width);margin-left:0}.footer{--ifm-footer-padding-horizontal:0}.colorModeToggle_qvwE,.footer__link-separator,.navbar__item,.tableOfContents_o7P6{display:none}.footer__col{margin-bottom:calc(var(--ifm-spacing-vertical)*3)}.footer__link-item{display:block}.hero{padding-left:0;padding-right:0}.navbar>.container,.navbar>.container-fluid{padding:0}.navbar__toggle{display:inherit}.navbar__search-input{width:9rem}.pills--block,.tabs--block{flex-direction:column}.docItemContainer_DrVw{padding:0 .3rem}.navbarSearchContainer_VZH1{position:absolute;right:var(--ifm-navbar-padding-horizontal)}}@media only screen and (max-width:996px){.searchQueryColumn_EwZm,.searchResultsColumn_lS2A{max-width:60%!important}.searchLogoColumn_rCCn,.searchVersionColumn_ysYg{max-width:40%!important}.searchLogoColumn_rCCn{padding-left:0!important}}@media screen and (max-width:966px){.heroBanner_qdFl{padding:2rem}}@media (max-width:768px){.DocSearch-Button-Keys,.DocSearch-Button-Placeholder,.DocSearch-Commands,.DocSearch-Hit-Tree{display:none}:root{--docsearch-spacing:10px;--docsearch-footer-height:40px}.DocSearch-Dropdown{height:100%;max-height:calc(var(--docsearch-vh,1vh)*100 - var(--docsearch-searchbox-height) - var(--docsearch-spacing) - var(--docsearch-footer-height))}.DocSearch-Container{height:100vh;height:-webkit-fill-available;height:calc(var(--docsearch-vh,1vh)*100);position:absolute}.DocSearch-Footer{border-radius:0;bottom:0;position:absolute}.DocSearch-Hit-content-wrapper{display:flex;position:relative;width:80%}.DocSearch-Modal{border-radius:0;box-shadow:none;height:100vh;height:-webkit-fill-available;height:calc(var(--docsearch-vh,1vh)*100);margin:0;max-width:100%;width:100%}.DocSearch-Cancel{appearance:none;background:none;border:0;color:var(--docsearch-highlight-color);cursor:pointer;display:inline-block;flex:none;font:inherit;font-size:1em;font-weight:500;margin-left:var(--docsearch-spacing);outline:0;overflow:hidden;padding:0;-webkit-user-select:none;user-select:none;white-space:nowrap}}@media (max-width:576px){.markdown h1:first-child{--ifm-h1-font-size:2rem}.markdown>h2{--ifm-h2-font-size:1.5rem}.markdown>h3{--ifm-h3-font-size:1.25rem}}@media screen and (max-width:576px){.searchQueryColumn_EwZm,.searchVersionColumn_ysYg{max-width:100%!important}.searchVersionColumn_ysYg{padding-left:var(--ifm-spacing-horizontal)!important}}@media (hover:hover){.backToTopButton_Hgz6:hover{background-color:var(--ifm-color-emphasis-300)}}@media (pointer:fine){.thin-scrollbar{scrollbar-width:thin}.thin-scrollbar::-webkit-scrollbar{height:var(--ifm-scrollbar-size);width:var(--ifm-scrollbar-size)}.thin-scrollbar::-webkit-scrollbar-track{background:var(--ifm-scrollbar-track-background-color);border-radius:10px}.thin-scrollbar::-webkit-scrollbar-thumb{background:var(--ifm-scrollbar-thumb-background-color);border-radius:10px}.thin-scrollbar::-webkit-scrollbar-thumb:hover{background:var(--ifm-scrollbar-thumb-hover-background-color)}}@media (prefers-reduced-motion:reduce){:root{--ifm-transition-fast:0ms;--ifm-transition-slow:0ms}}@media screen and (prefers-reduced-motion:reduce){.DocSearch-Reset{animation:none;appearance:none;background:none;border:0;border-radius:50%;color:var(--docsearch-icon-color);cursor:pointer;right:0;stroke-width:var(--docsearch-icon-stroke-width)}.DocSearch-Hit--deleting,.DocSearch-Hit--favoriting{transition:none}.DocSearch-Hit-action-button:focus,.DocSearch-Hit-action-button:hover{background:#0003;transition:none}}@media print{.announcementBar_Pmrh,.footer,.menu,.navbar,.pagination-nav,.table-of-contents,.tocMobile_zzjx{display:none}.tabs{page-break-inside:avoid}.codeBlockLines_QIPa{white-space:pre-wrap}} \ No newline at end of file diff --git a/assets/js/0278b943.53e5fe7d.js b/assets/js/0278b943.0e8b0b1c.js similarity index 98% rename from assets/js/0278b943.53e5fe7d.js rename to assets/js/0278b943.0e8b0b1c.js index f2cb0da..e36f7c0 100644 --- a/assets/js/0278b943.53e5fe7d.js +++ b/assets/js/0278b943.0e8b0b1c.js @@ -1 +1 @@ -"use strict";(self.webpackChunkol_echarts_docs=self.webpackChunkol_echarts_docs||[]).push([[120],{4906:(n,t,e)=>{e.r(t),e.d(t,{assets:()=>i,contentTitle:()=>s,default:()=>u,frontMatter:()=>o,metadata:()=>c,toc:()=>l});var a=e(6106),r=e(2036);const o={id:"incremental",title:"\u589e\u91cf\u6e32\u67d3"},s=void 0,c={id:"playgrounds/incremental",title:"\u589e\u91cf\u6e32\u67d3",description:"\u793a\u4f8b",source:"@site/docs/playgrounds/incremental.mdx",sourceDirName:"playgrounds",slug:"/playgrounds/incremental",permalink:"/ol3Echarts/docs/playgrounds/incremental",draft:!1,unlisted:!1,editUrl:"https://github.com/sakitam-fdd/ol3Echarts/edit/master/documents/docs/docs/playgrounds/incremental.mdx",tags:[],version:"current",lastUpdatedBy:"sakitam-fdd",lastUpdatedAt:1730645386e3,frontMatter:{id:"incremental",title:"\u589e\u91cf\u6e32\u67d3"},sidebar:"docs",previous:{title:"\u70ed\u529b\u56fe",permalink:"/ol3Echarts/docs/playgrounds/heatmap"},next:{title:"\u89e3\u6790 echarts\u4e2d\u7684 geojson",permalink:"/ol3Echarts/docs/playgrounds/echarts-geojson"}},i={},l=[{value:"\u793a\u4f8b",id:"\u793a\u4f8b",level:3}];function d(n){const t={code:"code",h3:"h3",pre:"pre",...(0,r.R)(),...n.components};return(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(t.h3,{id:"\u793a\u4f8b",children:"\u793a\u4f8b"}),"\n",(0,a.jsx)(t.pre,{children:(0,a.jsx)(t.code,{className:"language-jsx",metastring:"live",live:!0,children:"function render(props) {\n const CHUNK_COUNT = 10;\n\n const container = useRef(null);\n\n const dataUrl = useBaseUrl('/examples/incremental/data/links_ny_{idx}.bin');\n\n const initChat = (map, option) => {\n const chart = new EChartsLayer(option, {\n hideOnMoving: true,\n hideOnZooming: true,\n });\n\n const fetchData = async (idx) => {\n if (idx >= CHUNK_COUNT) {\n return;\n }\n const url = dataUrl.replace('{idx}', idx);\n const d = await fetch(url).then((res) => res.arrayBuffer());\n\n const rawData = new Float32Array(d);\n const data = new Float64Array(rawData.length - 2);\n const offsetX = rawData[0];\n const offsetY = rawData[1];\n let off = 0;\n for (let i = 2; i < rawData.length;) {\n const count = rawData[i++];\n data[off++] = count;\n for (let k = 0; k < count; k++) {\n const x = rawData[i++] + offsetX;\n const y = rawData[i++] + offsetY;\n data[off++] = x;\n data[off++] = y;\n }\n }\n chart.appendData({\n seriesIndex: 0,\n data,\n }, true);\n fetchData(idx + 1);\n }\n\n fetchData(0);\n\n chart.appendTo(map);\n };\n\n const init = async () => {\n const map = new ol.Map({\n target: container.current,\n view: new ol.View({\n projection: 'EPSG:4326',\n zoom: 10,\n rotation: 0,\n center: [-74.04327099998152, 40.86737600240287],\n }),\n layers: [\n new TileLayer({\n source: new XYZ({\n url: 'https://{a-c}.basemaps.cartocdn.com/dark_all/{z}/{x}/{y}.png',\n }),\n }),\n ],\n });\n\n const option = {\n progressive: 20000,\n backgroundColor: 'transparent',\n series: [\n {\n type: 'lines',\n blendMode: 'lighter',\n dimensions: ['value'],\n data: new Float64Array(),\n polyline: true,\n large: true,\n lineStyle: {\n color: 'orange',\n width: 0.5,\n opacity: 0.3,\n },\n },\n ],\n };\n\n initChat(map, option);\n\n function resize(target) {}\n\n return {\n resize,\n };\n };\n\n useEffect(() => {\n const { resize } = init();\n\n return () => {};\n }, []);\n\n return (\n
\n
\n
\n );\n}\n"})})]})}function u(n={}){const{wrapper:t}={...(0,r.R)(),...n.components};return t?(0,a.jsx)(t,{...n,children:(0,a.jsx)(d,{...n})}):d(n)}},2036:(n,t,e)=>{e.d(t,{R:()=>s,x:()=>c});var a=e(7378);const r={},o=a.createContext(r);function s(n){const t=a.useContext(o);return a.useMemo((function(){return"function"==typeof n?n(t):{...t,...n}}),[t,n])}function c(n){let t;return t=n.disableParentContext?"function"==typeof n.components?n.components(r):n.components||r:s(n.components),a.createElement(o.Provider,{value:t},n.children)}}}]); \ No newline at end of file +"use strict";(self.webpackChunkol_echarts_docs=self.webpackChunkol_echarts_docs||[]).push([[120],{7404:(n,t,e)=>{e.r(t),e.d(t,{assets:()=>i,contentTitle:()=>s,default:()=>u,frontMatter:()=>o,metadata:()=>c,toc:()=>l});var a=e(6106),r=e(2036);const o={id:"incremental",title:"\u589e\u91cf\u6e32\u67d3"},s=void 0,c={id:"playgrounds/incremental",title:"\u589e\u91cf\u6e32\u67d3",description:"\u793a\u4f8b",source:"@site/docs/playgrounds/incremental.mdx",sourceDirName:"playgrounds",slug:"/playgrounds/incremental",permalink:"/ol3Echarts/docs/playgrounds/incremental",draft:!1,unlisted:!1,editUrl:"https://github.com/sakitam-fdd/ol3Echarts/edit/master/documents/docs/docs/playgrounds/incremental.mdx",tags:[],version:"current",lastUpdatedBy:"sakitam-fdd",lastUpdatedAt:1730645386e3,frontMatter:{id:"incremental",title:"\u589e\u91cf\u6e32\u67d3"},sidebar:"docs",previous:{title:"\u70ed\u529b\u56fe",permalink:"/ol3Echarts/docs/playgrounds/heatmap"},next:{title:"\u89e3\u6790 echarts\u4e2d\u7684 geojson",permalink:"/ol3Echarts/docs/playgrounds/echarts-geojson"}},i={},l=[{value:"\u793a\u4f8b",id:"\u793a\u4f8b",level:3}];function d(n){const t={code:"code",h3:"h3",pre:"pre",...(0,r.R)(),...n.components};return(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(t.h3,{id:"\u793a\u4f8b",children:"\u793a\u4f8b"}),"\n",(0,a.jsx)(t.pre,{children:(0,a.jsx)(t.code,{className:"language-jsx",metastring:"live",live:!0,children:"function render(props) {\n const CHUNK_COUNT = 10;\n\n const container = useRef(null);\n\n const dataUrl = useBaseUrl('/examples/incremental/data/links_ny_{idx}.bin');\n\n const initChat = (map, option) => {\n const chart = new EChartsLayer(option, {\n hideOnMoving: true,\n hideOnZooming: true,\n });\n\n const fetchData = async (idx) => {\n if (idx >= CHUNK_COUNT) {\n return;\n }\n const url = dataUrl.replace('{idx}', idx);\n const d = await fetch(url).then((res) => res.arrayBuffer());\n\n const rawData = new Float32Array(d);\n const data = new Float64Array(rawData.length - 2);\n const offsetX = rawData[0];\n const offsetY = rawData[1];\n let off = 0;\n for (let i = 2; i < rawData.length;) {\n const count = rawData[i++];\n data[off++] = count;\n for (let k = 0; k < count; k++) {\n const x = rawData[i++] + offsetX;\n const y = rawData[i++] + offsetY;\n data[off++] = x;\n data[off++] = y;\n }\n }\n chart.appendData({\n seriesIndex: 0,\n data,\n }, true);\n fetchData(idx + 1);\n }\n\n fetchData(0);\n\n chart.appendTo(map);\n };\n\n const init = async () => {\n const map = new ol.Map({\n target: container.current,\n view: new ol.View({\n projection: 'EPSG:4326',\n zoom: 10,\n rotation: 0,\n center: [-74.04327099998152, 40.86737600240287],\n }),\n layers: [\n new TileLayer({\n source: new XYZ({\n url: 'https://{a-c}.basemaps.cartocdn.com/dark_all/{z}/{x}/{y}.png',\n }),\n }),\n ],\n });\n\n const option = {\n progressive: 20000,\n backgroundColor: 'transparent',\n series: [\n {\n type: 'lines',\n blendMode: 'lighter',\n dimensions: ['value'],\n data: new Float64Array(),\n polyline: true,\n large: true,\n lineStyle: {\n color: 'orange',\n width: 0.5,\n opacity: 0.3,\n },\n },\n ],\n };\n\n initChat(map, option);\n\n function resize(target) {}\n\n return {\n resize,\n };\n };\n\n useEffect(() => {\n const { resize } = init();\n\n return () => {};\n }, []);\n\n return (\n
\n
\n
\n );\n}\n"})})]})}function u(n={}){const{wrapper:t}={...(0,r.R)(),...n.components};return t?(0,a.jsx)(t,{...n,children:(0,a.jsx)(d,{...n})}):d(n)}},2036:(n,t,e)=>{e.d(t,{R:()=>s,x:()=>c});var a=e(7378);const r={},o=a.createContext(r);function s(n){const t=a.useContext(o);return a.useMemo((function(){return"function"==typeof n?n(t):{...t,...n}}),[t,n])}function c(n){let t;return t=n.disableParentContext?"function"==typeof n.components?n.components(r):n.components||r:s(n.components),a.createElement(o.Provider,{value:t},n.children)}}}]); \ No newline at end of file diff --git a/assets/js/082c4949.214a4cb0.js b/assets/js/082c4949.214a4cb0.js new file mode 100644 index 0000000..b48b833 --- /dev/null +++ b/assets/js/082c4949.214a4cb0.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunkol_echarts_docs=self.webpackChunkol_echarts_docs||[]).push([[198],{410:(n,e,t)=>{t.r(e),t.d(e,{assets:()=>c,contentTitle:()=>s,default:()=>u,frontMatter:()=>r,metadata:()=>l,toc:()=>i});var o=t(6106),a=t(2036);const r={id:"scatter-charts",title:"\u5168\u56fd\u4e3b\u8981\u57ce\u5e02\u7a7a\u6c14\u8d28\u91cf"},s=void 0,l={id:"playgrounds/scatter-charts",title:"\u5168\u56fd\u4e3b\u8981\u57ce\u5e02\u7a7a\u6c14\u8d28\u91cf",description:"\u793a\u4f8b",source:"@site/docs/playgrounds/scatter-charts.mdx",sourceDirName:"playgrounds",slug:"/playgrounds/scatter-charts",permalink:"/ol3Echarts/docs/playgrounds/scatter-charts",draft:!1,unlisted:!1,editUrl:"https://github.com/sakitam-fdd/ol3Echarts/edit/master/documents/docs/docs/playgrounds/scatter-charts.mdx",tags:[],version:"current",lastUpdatedBy:"sakitam-fdd",lastUpdatedAt:1730645386e3,frontMatter:{id:"scatter-charts",title:"\u5168\u56fd\u4e3b\u8981\u57ce\u5e02\u7a7a\u6c14\u8d28\u91cf"},sidebar:"docs",previous:{title:"Bridger for openlayers and echarts",permalink:"/ol3Echarts/docs/"},next:{title:"\u6a21\u62df\u8fc1\u5f99",permalink:"/ol3Echarts/docs/playgrounds/migration"}},c={},i=[{value:"\u793a\u4f8b",id:"\u793a\u4f8b",level:3}];function d(n){const e={code:"code",h3:"h3",pre:"pre",...(0,a.R)(),...n.components};return(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)(e.h3,{id:"\u793a\u4f8b",children:"\u793a\u4f8b"}),"\n",(0,o.jsx)(e.pre,{children:(0,o.jsx)(e.code,{className:"language-jsx",metastring:"live",live:!0,children:"function render(props) {\n const container = useRef(null);\n\n const data = useBaseUrl('/json/scatter.json');\n\n const initChat = (map, option) => {\n const chart = new EChartsLayer(option, {\n stopEvent: false,\n hideOnMoving: true,\n hideOnZooming: true,\n });\n\n chart.on('load', (data) => {\n data.value.on('click', (event) => {\n console.log('click', event);\n });\n\n data.value.on('dblclick', (event) => {\n console.log('dblclick', event);\n });\n\n data.value.on('mousedown', (event) => {\n console.log('mousedown', event);\n });\n\n data.value.on('mousemove', (event) => {\n console.log('mousemove', event);\n });\n\n data.value.on('mouseup', (event) => {\n console.log('mouseup', event);\n });\n\n data.value.on('mouseover', (event) => {\n console.log('mouseover', event);\n });\n\n data.value.on('mouseout', (event) => {\n console.log('mouseout', event);\n });\n\n data.value.on('globalout', (event) => {\n console.log('globalout', event);\n });\n\n data.value.on('contextmenu', (event) => {\n console.log('contextmenu', event);\n });\n });\n\n chart.appendTo(map);\n }\n\n const init = () => {\n const map = new ol.Map({\n target: container.current,\n view: new ol.View({\n center: [113.53450137499999, 34.44104525],\n projection: 'EPSG:4326',\n zoom: 5, // resolution\n rotation: 0,\n }),\n layers: [\n new TileLayer({\n source: new XYZ({\n url: 'https://a.basemaps.cartocdn.com/dark_all/{z}/{x}/{y}.png',\n }),\n }),\n ],\n });\n\n fetch(data).then(res => res.json()).then(res => {\n const data = res.locations;\n const geoCoordMap = res.coordinates;\n const convertData = (_data) => {\n const _res = [];\n for (let i = 0; i < _data.length; i++) {\n const geoCoord = geoCoordMap[_data[i].name];\n if (geoCoord) {\n _res.push({\n name: _data[i].name,\n value: geoCoord.concat(_data[i].value),\n });\n }\n }\n return _res;\n };\n const option = {\n title: {\n text: '\u5168\u56fd\u4e3b\u8981\u57ce\u5e02\u7a7a\u6c14\u8d28\u91cf',\n subtext: 'data from PM25.in',\n sublink: 'http://www.pm25.in',\n left: 'center',\n textStyle: {\n color: '#fff',\n },\n },\n tooltip: {\n trigger: 'item',\n },\n openlayers: {},\n legend: {\n orient: 'vertical',\n y: 'top',\n x: 'right',\n data: ['pm2.5'],\n textStyle: {\n color: '#fff',\n },\n },\n series: [\n {\n name: 'pm2.5',\n type: 'scatter',\n data: convertData(data),\n symbolSize(val) {\n return val[2] / 10;\n },\n label: {\n normal: {\n formatter: '{b}',\n position: 'right',\n show: false,\n },\n emphasis: {\n show: true,\n },\n },\n itemStyle: {\n normal: {\n color: '#ddb926',\n },\n },\n },\n {\n name: 'Top 5',\n type: 'effectScatter',\n data: convertData(data.sort((\n a,\n b,\n ) => b.value - a.value).slice(0, 6)),\n symbolSize(val) {\n return val[2] / 10;\n },\n showEffectOn: 'render',\n rippleEffect: {\n brushType: 'stroke',\n },\n hoverAnimation: true,\n label: {\n normal: {\n formatter: '{b}',\n position: 'right',\n show: true,\n },\n },\n itemStyle: {\n normal: {\n color: '#f4e925',\n shadowBlur: 10,\n shadowColor: '#333',\n },\n },\n zlevel: 1,\n }],\n };\n\n initChat(map, option);\n })\n\n function resize(target) {}\n\n return {\n resize,\n }\n }\n\n useEffect(() => {\n const { resize } = init();\n\n return () => {\n };\n }, []);\n\n return (\n
\n
\n
\n );\n}\n"})})]})}function u(n={}){const{wrapper:e}={...(0,a.R)(),...n.components};return e?(0,o.jsx)(e,{...n,children:(0,o.jsx)(d,{...n})}):d(n)}},2036:(n,e,t)=>{t.d(e,{R:()=>s,x:()=>l});var o=t(7378);const a={},r=o.createContext(a);function s(n){const e=o.useContext(r);return o.useMemo((function(){return"function"==typeof n?n(e):{...e,...n}}),[e,n])}function l(n){let e;return e=n.disableParentContext?"function"==typeof n.components?n.components(a):n.components||a:s(n.components),o.createElement(r.Provider,{value:e},n.children)}}}]); \ No newline at end of file diff --git a/assets/js/082c4949.850749de.js b/assets/js/082c4949.850749de.js deleted file mode 100644 index ff335dd..0000000 --- a/assets/js/082c4949.850749de.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunkol_echarts_docs=self.webpackChunkol_echarts_docs||[]).push([[198],{8460:(n,e,t)=>{t.r(e),t.d(e,{assets:()=>c,contentTitle:()=>s,default:()=>u,frontMatter:()=>r,metadata:()=>l,toc:()=>i});var o=t(6106),a=t(2036);const r={id:"scatter-charts",title:"\u5168\u56fd\u4e3b\u8981\u57ce\u5e02\u7a7a\u6c14\u8d28\u91cf"},s=void 0,l={id:"playgrounds/scatter-charts",title:"\u5168\u56fd\u4e3b\u8981\u57ce\u5e02\u7a7a\u6c14\u8d28\u91cf",description:"\u793a\u4f8b",source:"@site/docs/playgrounds/scatter-charts.mdx",sourceDirName:"playgrounds",slug:"/playgrounds/scatter-charts",permalink:"/ol3Echarts/docs/playgrounds/scatter-charts",draft:!1,unlisted:!1,editUrl:"https://github.com/sakitam-fdd/ol3Echarts/edit/master/documents/docs/docs/playgrounds/scatter-charts.mdx",tags:[],version:"current",lastUpdatedBy:"sakitam-fdd",lastUpdatedAt:1730645386e3,frontMatter:{id:"scatter-charts",title:"\u5168\u56fd\u4e3b\u8981\u57ce\u5e02\u7a7a\u6c14\u8d28\u91cf"},sidebar:"docs",previous:{title:"Bridger for openlayers and echarts",permalink:"/ol3Echarts/docs/"},next:{title:"\u6a21\u62df\u8fc1\u5f99",permalink:"/ol3Echarts/docs/playgrounds/migration"}},c={},i=[{value:"\u793a\u4f8b",id:"\u793a\u4f8b",level:3}];function d(n){const e={code:"code",h3:"h3",pre:"pre",...(0,a.R)(),...n.components};return(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)(e.h3,{id:"\u793a\u4f8b",children:"\u793a\u4f8b"}),"\n",(0,o.jsx)(e.pre,{children:(0,o.jsx)(e.code,{className:"language-jsx",metastring:"live",live:!0,children:"function render(props) {\n const container = useRef(null);\n\n const data = useBaseUrl('/json/scatter.json');\n\n const initChat = (map, option) => {\n const chart = new EChartsLayer(option, {\n stopEvent: false,\n hideOnMoving: true,\n hideOnZooming: true,\n });\n\n chart.on('load', (data) => {\n data.value.on('click', (event) => {\n console.log('click', event);\n });\n\n data.value.on('dblclick', (event) => {\n console.log('dblclick', event);\n });\n\n data.value.on('mousedown', (event) => {\n console.log('mousedown', event);\n });\n\n data.value.on('mousemove', (event) => {\n console.log('mousemove', event);\n });\n\n data.value.on('mouseup', (event) => {\n console.log('mouseup', event);\n });\n\n data.value.on('mouseover', (event) => {\n console.log('mouseover', event);\n });\n\n data.value.on('mouseout', (event) => {\n console.log('mouseout', event);\n });\n\n data.value.on('globalout', (event) => {\n console.log('globalout', event);\n });\n\n data.value.on('contextmenu', (event) => {\n console.log('contextmenu', event);\n });\n });\n\n chart.appendTo(map);\n }\n\n const init = () => {\n const map = new ol.Map({\n target: container.current,\n view: new ol.View({\n center: [113.53450137499999, 34.44104525],\n projection: 'EPSG:4326',\n zoom: 5, // resolution\n rotation: 0,\n }),\n layers: [\n new TileLayer({\n source: new XYZ({\n url: 'https://a.basemaps.cartocdn.com/dark_all/{z}/{x}/{y}.png',\n }),\n }),\n ],\n });\n\n fetch(data).then(res => res.json()).then(res => {\n const data = res.locations;\n const geoCoordMap = res.coordinates;\n const convertData = (_data) => {\n const _res = [];\n for (let i = 0; i < _data.length; i++) {\n const geoCoord = geoCoordMap[_data[i].name];\n if (geoCoord) {\n _res.push({\n name: _data[i].name,\n value: geoCoord.concat(_data[i].value),\n });\n }\n }\n return _res;\n };\n const option = {\n title: {\n text: '\u5168\u56fd\u4e3b\u8981\u57ce\u5e02\u7a7a\u6c14\u8d28\u91cf',\n subtext: 'data from PM25.in',\n sublink: 'http://www.pm25.in',\n left: 'center',\n textStyle: {\n color: '#fff',\n },\n },\n tooltip: {\n trigger: 'item',\n },\n openlayers: {},\n legend: {\n orient: 'vertical',\n y: 'top',\n x: 'right',\n data: ['pm2.5'],\n textStyle: {\n color: '#fff',\n },\n },\n series: [\n {\n name: 'pm2.5',\n type: 'scatter',\n data: convertData(data),\n symbolSize(val) {\n return val[2] / 10;\n },\n label: {\n normal: {\n formatter: '{b}',\n position: 'right',\n show: false,\n },\n emphasis: {\n show: true,\n },\n },\n itemStyle: {\n normal: {\n color: '#ddb926',\n },\n },\n },\n {\n name: 'Top 5',\n type: 'effectScatter',\n data: convertData(data.sort((\n a,\n b,\n ) => b.value - a.value).slice(0, 6)),\n symbolSize(val) {\n return val[2] / 10;\n },\n showEffectOn: 'render',\n rippleEffect: {\n brushType: 'stroke',\n },\n hoverAnimation: true,\n label: {\n normal: {\n formatter: '{b}',\n position: 'right',\n show: true,\n },\n },\n itemStyle: {\n normal: {\n color: '#f4e925',\n shadowBlur: 10,\n shadowColor: '#333',\n },\n },\n zlevel: 1,\n }],\n };\n\n initChat(map, option);\n })\n\n function resize(target) {}\n\n return {\n resize,\n }\n }\n\n useEffect(() => {\n const { resize } = init();\n\n return () => {\n };\n }, []);\n\n return (\n
\n
\n
\n );\n}\n"})})]})}function u(n={}){const{wrapper:e}={...(0,a.R)(),...n.components};return e?(0,o.jsx)(e,{...n,children:(0,o.jsx)(d,{...n})}):d(n)}},2036:(n,e,t)=>{t.d(e,{R:()=>s,x:()=>l});var o=t(7378);const a={},r=o.createContext(a);function s(n){const e=o.useContext(r);return o.useMemo((function(){return"function"==typeof n?n(e):{...e,...n}}),[e,n])}function l(n){let e;return e=n.disableParentContext?"function"==typeof n.components?n.components(a):n.components||a:s(n.components),o.createElement(r.Provider,{value:e},n.children)}}}]); \ No newline at end of file diff --git a/assets/js/123.e1509178.js b/assets/js/123.e1509178.js deleted file mode 100644 index cda9002..0000000 --- a/assets/js/123.e1509178.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunkol_echarts_docs=self.webpackChunkol_echarts_docs||[]).push([[123],{7583:(e,t,n)=>{n.d(t,{A:()=>a});n(7378);var o=n(3372),s=n(265),i=n(7719),r=n(6106);function a(e){let{className:t}=e;return(0,r.jsx)("main",{className:(0,o.A)("container margin-vert--xl",t),children:(0,r.jsx)("div",{className:"row",children:(0,r.jsxs)("div",{className:"col col--6 col--offset-3",children:[(0,r.jsx)(i.A,{as:"h1",className:"hero__title",children:(0,r.jsx)(s.A,{id:"theme.NotFound.title",description:"The title of the 404 page",children:"Page Not Found"})}),(0,r.jsx)("p",{children:(0,r.jsx)(s.A,{id:"theme.NotFound.p1",description:"The first paragraph of the 404 page",children:"We could not find what you were looking for."})}),(0,r.jsx)("p",{children:(0,r.jsx)(s.A,{id:"theme.NotFound.p2",description:"The 2nd paragraph of the 404 page",children:"Please contact the owner of the site that linked you to the original URL and let them know their link is broken."})})]})})})}},5361:(e,t,n)=>{n.r(t),n.d(t,{default:()=>l});n(7378);var o=n(265),s=n(4001),i=n(4296),r=n(7583),a=n(6106);function l(){const e=(0,o.T)({id:"theme.NotFound.title",message:"Page Not Found"});return(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(s.be,{title:e}),(0,a.jsx)(i.A,{children:(0,a.jsx)(r.A,{})})]})}}}]); \ No newline at end of file diff --git a/assets/js/1676bf81.ce567b4d.js b/assets/js/1676bf81.9dc05a9d.js similarity index 98% rename from assets/js/1676bf81.ce567b4d.js rename to assets/js/1676bf81.9dc05a9d.js index f1ebb85..a49828d 100644 --- a/assets/js/1676bf81.ce567b4d.js +++ b/assets/js/1676bf81.9dc05a9d.js @@ -1 +1 @@ -"use strict";(self.webpackChunkol_echarts_docs=self.webpackChunkol_echarts_docs||[]).push([[656],{4731:(n,e,t)=>{t.r(e),t.d(e,{assets:()=>c,contentTitle:()=>a,default:()=>p,frontMatter:()=>s,metadata:()=>i,toc:()=>l});var o=t(6106),r=t(2036);const s={id:"lines-tourism",title:"\u6e58\u897f\u65c5\u6e38\u666f\u70b9\u5ba2\u6e90\u5206\u5e03\u56fe_\u57ce\u89c4\u6240"},a=void 0,i={id:"playgrounds/lines-tourism",title:"\u6e58\u897f\u65c5\u6e38\u666f\u70b9\u5ba2\u6e90\u5206\u5e03\u56fe_\u57ce\u89c4\u6240",description:"\u793a\u4f8b",source:"@site/docs/playgrounds/lines-tourism.mdx",sourceDirName:"playgrounds",slug:"/playgrounds/lines-tourism",permalink:"/ol3Echarts/docs/playgrounds/lines-tourism",draft:!1,unlisted:!1,editUrl:"https://github.com/sakitam-fdd/ol3Echarts/edit/master/documents/docs/docs/playgrounds/lines-tourism.mdx",tags:[],version:"current",lastUpdatedBy:"sakitam-fdd",lastUpdatedAt:1730645386e3,frontMatter:{id:"lines-tourism",title:"\u6e58\u897f\u65c5\u6e38\u666f\u70b9\u5ba2\u6e90\u5206\u5e03\u56fe_\u57ce\u89c4\u6240"},sidebar:"docs",previous:{title:"\u6625\u8282\u4eba\u53e3\u8fc1\u5f99",permalink:"/ol3Echarts/docs/playgrounds/china-migration"},next:{title:"\u5e7f\u5dde\u4eba\u53e3\u8fc1\u5f99",permalink:"/ol3Echarts/docs/playgrounds/guangzhou-migration-map"}},c={},l=[{value:"\u793a\u4f8b",id:"\u793a\u4f8b",level:3}];function d(n){const e={code:"code",h3:"h3",pre:"pre",...(0,r.R)(),...n.components};return(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)(e.h3,{id:"\u793a\u4f8b",children:"\u793a\u4f8b"}),"\n",(0,o.jsx)(e.pre,{children:(0,o.jsx)(e.code,{className:"language-jsx",metastring:"live",live:!0,children:"function render(props) {\n const container = useRef(null);\n\n const dataUrl = useBaseUrl('/json/toursim.json');\n\n const initChat = (map, option) => {\n const chart = new EChartsLayer(option, {\n stopEvent: false,\n hideOnMoving: false,\n hideOnZooming: false,\n forcedPrecomposeRerender: true,\n });\n\n chart.appendTo(map);\n }\n\n const init = async () => {\n const map = new ol.Map({\n target: container.current,\n view: new ol.View({\n projection: 'EPSG:4326',\n zoom: 5,\n rotation: 0,\n center: [113.53450137499999, 34.44104525],\n }),\n layers: [\n new TileLayer({\n source: new XYZ({\n url: 'https://{a-c}.basemaps.cartocdn.com/dark_all/{z}/{x}/{y}.png',\n }),\n }),\n ],\n });\n\n const data = await fetch(dataUrl).then(res => res.json());\n\n const option = {\n backgroundColor: 'transparent',\n title: {\n text: '\u6e58\u897f\u65c5\u6e38\u666f\u70b9\u5ba2\u6e90\u5206\u5e03\u56fe_\u57ce\u89c4\u6240',\n left: 'center',\n textStyle: {\n color: '#fff'\n }\n },\n legend: {\n show: false,\n orient: 'vertical',\n top: 'top',\n left: 'right',\n data: ['\u5730\u70b9', '\u7ebf\u8def'],\n textStyle: {\n color: '#fff'\n }\n },\n series: [\n {\n name: '\u5730\u70b9',\n type: 'effectScatter',\n zlevel: 2,\n rippleEffect: {\n brushType: 'stroke'\n },\n label: {\n emphasis: {\n show: true,\n position: 'right',\n formatter: '{b}'\n }\n },\n symbolSize: 2,\n showEffectOn: 'render',\n itemStyle: {\n color: '#46bee9'\n },\n data: data.citys\n },\n {\n name: '\u7ebf\u8def',\n type: 'lines',\n zlevel: 2,\n large: true,\n effect: {\n show: true,\n constantSpeed: 30,\n symbol: 'pin',\n symbolSize: 3,\n trailLength: 0,\n },\n lineStyle: {\n color: new echarts.graphic.LinearGradient(0, 0, 0, 1, [{\n offset: 0, color: '#58B3CC'\n }, {\n offset: 1, color: '#F58158'\n }], false),\n width: 1,\n opacity: 0.2,\n curveness: 0.1\n },\n data: data.moveLines\n }\n ]\n };\n\n initChat(map, option);\n\n function resize(target) {}\n\n return {\n resize,\n }\n }\n\n useEffect(() => {\n const { resize } = init();\n\n return () => {\n };\n }, []);\n\n return (\n
\n
\n
\n );\n}\n"})})]})}function p(n={}){const{wrapper:e}={...(0,r.R)(),...n.components};return e?(0,o.jsx)(e,{...n,children:(0,o.jsx)(d,{...n})}):d(n)}},2036:(n,e,t)=>{t.d(e,{R:()=>a,x:()=>i});var o=t(7378);const r={},s=o.createContext(r);function a(n){const e=o.useContext(s);return o.useMemo((function(){return"function"==typeof n?n(e):{...e,...n}}),[e,n])}function i(n){let e;return e=n.disableParentContext?"function"==typeof n.components?n.components(r):n.components||r:a(n.components),o.createElement(s.Provider,{value:e},n.children)}}}]); \ No newline at end of file +"use strict";(self.webpackChunkol_echarts_docs=self.webpackChunkol_echarts_docs||[]).push([[656],{4265:(n,e,t)=>{t.r(e),t.d(e,{assets:()=>c,contentTitle:()=>a,default:()=>p,frontMatter:()=>s,metadata:()=>i,toc:()=>l});var o=t(6106),r=t(2036);const s={id:"lines-tourism",title:"\u6e58\u897f\u65c5\u6e38\u666f\u70b9\u5ba2\u6e90\u5206\u5e03\u56fe_\u57ce\u89c4\u6240"},a=void 0,i={id:"playgrounds/lines-tourism",title:"\u6e58\u897f\u65c5\u6e38\u666f\u70b9\u5ba2\u6e90\u5206\u5e03\u56fe_\u57ce\u89c4\u6240",description:"\u793a\u4f8b",source:"@site/docs/playgrounds/lines-tourism.mdx",sourceDirName:"playgrounds",slug:"/playgrounds/lines-tourism",permalink:"/ol3Echarts/docs/playgrounds/lines-tourism",draft:!1,unlisted:!1,editUrl:"https://github.com/sakitam-fdd/ol3Echarts/edit/master/documents/docs/docs/playgrounds/lines-tourism.mdx",tags:[],version:"current",lastUpdatedBy:"sakitam-fdd",lastUpdatedAt:1730645386e3,frontMatter:{id:"lines-tourism",title:"\u6e58\u897f\u65c5\u6e38\u666f\u70b9\u5ba2\u6e90\u5206\u5e03\u56fe_\u57ce\u89c4\u6240"},sidebar:"docs",previous:{title:"\u6625\u8282\u4eba\u53e3\u8fc1\u5f99",permalink:"/ol3Echarts/docs/playgrounds/china-migration"},next:{title:"\u5e7f\u5dde\u4eba\u53e3\u8fc1\u5f99",permalink:"/ol3Echarts/docs/playgrounds/guangzhou-migration-map"}},c={},l=[{value:"\u793a\u4f8b",id:"\u793a\u4f8b",level:3}];function d(n){const e={code:"code",h3:"h3",pre:"pre",...(0,r.R)(),...n.components};return(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)(e.h3,{id:"\u793a\u4f8b",children:"\u793a\u4f8b"}),"\n",(0,o.jsx)(e.pre,{children:(0,o.jsx)(e.code,{className:"language-jsx",metastring:"live",live:!0,children:"function render(props) {\n const container = useRef(null);\n\n const dataUrl = useBaseUrl('/json/toursim.json');\n\n const initChat = (map, option) => {\n const chart = new EChartsLayer(option, {\n stopEvent: false,\n hideOnMoving: false,\n hideOnZooming: false,\n forcedPrecomposeRerender: true,\n });\n\n chart.appendTo(map);\n }\n\n const init = async () => {\n const map = new ol.Map({\n target: container.current,\n view: new ol.View({\n projection: 'EPSG:4326',\n zoom: 5,\n rotation: 0,\n center: [113.53450137499999, 34.44104525],\n }),\n layers: [\n new TileLayer({\n source: new XYZ({\n url: 'https://{a-c}.basemaps.cartocdn.com/dark_all/{z}/{x}/{y}.png',\n }),\n }),\n ],\n });\n\n const data = await fetch(dataUrl).then(res => res.json());\n\n const option = {\n backgroundColor: 'transparent',\n title: {\n text: '\u6e58\u897f\u65c5\u6e38\u666f\u70b9\u5ba2\u6e90\u5206\u5e03\u56fe_\u57ce\u89c4\u6240',\n left: 'center',\n textStyle: {\n color: '#fff'\n }\n },\n legend: {\n show: false,\n orient: 'vertical',\n top: 'top',\n left: 'right',\n data: ['\u5730\u70b9', '\u7ebf\u8def'],\n textStyle: {\n color: '#fff'\n }\n },\n series: [\n {\n name: '\u5730\u70b9',\n type: 'effectScatter',\n zlevel: 2,\n rippleEffect: {\n brushType: 'stroke'\n },\n label: {\n emphasis: {\n show: true,\n position: 'right',\n formatter: '{b}'\n }\n },\n symbolSize: 2,\n showEffectOn: 'render',\n itemStyle: {\n color: '#46bee9'\n },\n data: data.citys\n },\n {\n name: '\u7ebf\u8def',\n type: 'lines',\n zlevel: 2,\n large: true,\n effect: {\n show: true,\n constantSpeed: 30,\n symbol: 'pin',\n symbolSize: 3,\n trailLength: 0,\n },\n lineStyle: {\n color: new echarts.graphic.LinearGradient(0, 0, 0, 1, [{\n offset: 0, color: '#58B3CC'\n }, {\n offset: 1, color: '#F58158'\n }], false),\n width: 1,\n opacity: 0.2,\n curveness: 0.1\n },\n data: data.moveLines\n }\n ]\n };\n\n initChat(map, option);\n\n function resize(target) {}\n\n return {\n resize,\n }\n }\n\n useEffect(() => {\n const { resize } = init();\n\n return () => {\n };\n }, []);\n\n return (\n
\n
\n
\n );\n}\n"})})]})}function p(n={}){const{wrapper:e}={...(0,r.R)(),...n.components};return e?(0,o.jsx)(e,{...n,children:(0,o.jsx)(d,{...n})}):d(n)}},2036:(n,e,t)=>{t.d(e,{R:()=>a,x:()=>i});var o=t(7378);const r={},s=o.createContext(r);function a(n){const e=o.useContext(s);return o.useMemo((function(){return"function"==typeof n?n(e):{...e,...n}}),[e,n])}function i(n){let e;return e=n.disableParentContext?"function"==typeof n.components?n.components(r):n.components||r:a(n.components),o.createElement(s.Provider,{value:e},n.children)}}}]); \ No newline at end of file diff --git a/assets/js/17896441.aae0018b.js b/assets/js/17896441.350fcdbc.js similarity index 99% rename from assets/js/17896441.aae0018b.js rename to assets/js/17896441.350fcdbc.js index d992a10..697e86b 100644 --- a/assets/js/17896441.aae0018b.js +++ b/assets/js/17896441.350fcdbc.js @@ -1 +1 @@ -"use strict";(self.webpackChunkol_echarts_docs=self.webpackChunkol_echarts_docs||[]).push([[401],{8002:(t,e,i)=>{i.d(e,{A:()=>nt});i(3739);var n=i(7378),o=i(9231),s=i(247),r=i(8675),a=i(3682),h=i(5209),c=i(3264),p=i(9255),u=i(8941),l=i(6365),d=i(3698),y=i(9091),f=i(5505),g=i(6859),m=i(4347),v=(i(7289),i(5191)),w=i(9532),x=i(6916);function _(t,e,i){var n=e[0]*i[0]+e[2]*i[1],o=e[1]*i[0]+e[3]*i[1],s=e[0]*i[2]+e[2]*i[3],r=e[1]*i[2]+e[3]*i[3],a=e[0]*i[4]+e[2]*i[5]+e[4],h=e[1]*i[4]+e[3]*i[5]+e[5];return t[0]=n,t[1]=o,t[2]=s,t[3]=r,t[4]=a,t[5]=h,t}function S(t,e,i){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3],t[4]=e[4]+i[0],t[5]=e[5]+i[1],t}function $(t,e,i){var n=e[0],o=e[1];return t[0]=i[0]*n+i[2]*o+i[4],t[1]=i[1]*n+i[3]*o+i[5],t}var E=function(t){return t[0]=1,t[1]=0,t[2]=0,t[3]=1,t[4]=0,t[5]=0,t},M=5e-5;function b(t){return t>M||t<-5e-5}var T=[],A=[],C=[1,0,0,1,0,0],R=Math.abs,O=function(){function t(){}var e;return t.prototype.getLocalTransform=function(e){return t.getLocalTransform(this,e)},t.prototype.setPosition=function(t){this.x=t[0],this.y=t[1]},t.prototype.setScale=function(t){this.scaleX=t[0],this.scaleY=t[1]},t.prototype.setSkew=function(t){this.skewX=t[0],this.skewY=t[1]},t.prototype.setOrigin=function(t){this.originX=t[0],this.originY=t[1]},t.prototype.needLocalTransform=function(){return b(this.rotation)||b(this.x)||b(this.y)||b(this.scaleX-1)||b(this.scaleY-1)||b(this.skewX)||b(this.skewY)},t.prototype.updateTransform=function(){var t=this.parent&&this.parent.transform,e=this.needLocalTransform(),i=this.transform;e||t?(i=i||[1,0,0,1,0,0],e?this.getLocalTransform(i):E(i),t&&(e?_(i,t,i):function(t,e){t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3],t[4]=e[4],t[5]=e[5]}(i,t)),this.transform=i,this._resolveGlobalScaleRatio(i)):i&&(E(i),this.invTransform=null)},t.prototype._resolveGlobalScaleRatio=function(t){var e,i,n,o,s,r,a,h,c,p=this.globalScaleRatio;if(null!=p&&1!==p){this.getGlobalScale(T);var u=T[0]<0?-1:1,l=T[1]<0?-1:1,d=((T[0]-u)*p+u)/T[0]||0,y=((T[1]-l)*p+l)/T[1]||0;t[0]*=d,t[1]*=d,t[2]*=y,t[3]*=y}this.invTransform=this.invTransform||[1,0,0,1,0,0],e=this.invTransform,n=(i=t)[0],o=i[2],s=i[4],r=i[1],a=i[3],h=i[5],(c=n*a-r*o)&&(c=1/c,e[0]=a*c,e[1]=-r*c,e[2]=-o*c,e[3]=n*c,e[4]=(o*h-a*s)*c,e[5]=(r*s-n*h)*c)},t.prototype.getComputedTransform=function(){for(var t=this,e=[];t;)e.push(t),t=t.parent;for(;t=e.pop();)t.updateTransform();return this.transform},t.prototype.setLocalTransform=function(t){if(t){var e=t[0]*t[0]+t[1]*t[1],i=t[2]*t[2]+t[3]*t[3],n=Math.atan2(t[1],t[0]),o=Math.PI/2+n-Math.atan2(t[3],t[2]);i=Math.sqrt(i)*Math.cos(o),e=Math.sqrt(e),this.skewX=o,this.skewY=0,this.rotation=-n,this.x=+t[4],this.y=+t[5],this.scaleX=e,this.scaleY=i,this.originX=0,this.originY=0}},t.prototype.decomposeTransform=function(){if(this.transform){var t=this.parent,e=this.transform;t&&t.transform&&(t.invTransform=t.invTransform||[1,0,0,1,0,0],_(A,t.invTransform,e),e=A);var i=this.originX,n=this.originY;(i||n)&&(C[4]=i,C[5]=n,_(A,e,C),A[4]-=i,A[5]-=n,e=A),this.setLocalTransform(e)}},t.prototype.getGlobalScale=function(t){var e=this.transform;return t=t||[],e?(t[0]=Math.sqrt(e[0]*e[0]+e[1]*e[1]),t[1]=Math.sqrt(e[2]*e[2]+e[3]*e[3]),e[0]<0&&(t[0]=-t[0]),e[3]<0&&(t[1]=-t[1]),t):(t[0]=1,t[1]=1,t)},t.prototype.transformCoordToLocal=function(t,e){var i=[t,e],n=this.invTransform;return n&&$(i,i,n),i},t.prototype.transformCoordToGlobal=function(t,e){var i=[t,e],n=this.transform;return n&&$(i,i,n),i},t.prototype.getLineScale=function(){var t=this.transform;return t&&R(t[0]-1)>1e-10&&R(t[3]-1)>1e-10?Math.sqrt(R(t[0]*t[3]-t[2]*t[1])):1},t.prototype.copyTransform=function(t){!function(t,e){for(var i=0;iy&&(y=w,fy&&(y=x,m=i.x&&t<=i.x+i.width&&e>=i.y&&e<=i.y+i.height},t.prototype.clone=function(){return new t(this.x,this.y,this.width,this.height)},t.prototype.copy=function(e){t.copy(this,e)},t.prototype.plain=function(){return{x:this.x,y:this.y,width:this.width,height:this.height}},t.prototype.isFinite=function(){return isFinite(this.x)&&isFinite(this.y)&&isFinite(this.width)&&isFinite(this.height)},t.prototype.isZero=function(){return 0===this.width||0===this.height},t.create=function(e){return new t(e.x,e.y,e.width,e.height)},t.copy=function(t,e){t.x=e.x,t.y=e.y,t.width=e.width,t.height=e.height},t.applyTransform=function(e,i,n){if(n){if(n[1]<1e-5&&n[1]>-1e-5&&n[2]<1e-5&&n[2]>-1e-5){var o=n[0],s=n[3],r=n[4],a=n[5];return e.x=i.x*o+r,e.y=i.y*s+a,e.width=i.width*o,e.height=i.height*s,e.width<0&&(e.x+=e.width,e.width=-e.width),void(e.height<0&&(e.y+=e.height,e.height=-e.height))}P.x=Z.x=i.x,P.y=F.y=i.y,z.x=F.x=i.x+i.width,z.y=Z.y=i.y+i.height,P.transform(n),F.transform(n),z.transform(n),Z.transform(n),e.x=Y(P.x,z.x,Z.x,F.x),e.y=Y(P.y,z.y,Z.y,F.y);var h=k(P.x,z.x,Z.x,F.x),c=k(P.y,z.y,Z.y,F.y);e.width=h-e.x,e.height=c-e.y}else e!==i&&t.copy(e,i)},t}();const I=t=>{const e=typeof t;return null!==t&&("object"===e||"function"===e)},j=(t,e)=>(Object.keys(e).forEach((i=>{I(e[i])&&I(t[i])?j(t[i],e[i]):t[i]=e[i]})),t),q=function(t,e){for(var i=arguments.length,n=new Array(i>2?i-2:0),o=2;o>e/4).toString(16):([1e7]+-[1e3]+-4e3+-8e3+-1e11).replace(/[018]/g,t)}()};function B(t,e){t.forEach((t=>{e[t]&&(e[t]=e[t].bind(e))}))}function H(t){return t&&t.parentNode?t.parentNode.removeChild(t):null}function J(t,e){const i=new MouseEvent(t,{bubbles:!0,cancelable:!0,button:e.pointerEvent.button,buttons:e.pointerEvent.buttons,clientX:e.pointerEvent.clientX,clientY:e.pointerEvent.clientY,movementX:e.pointerEvent.movementX,movementY:e.pointerEvent.movementY,relatedTarget:e.pointerEvent.relatedTarget,screenX:e.pointerEvent.screenX,screenY:e.pointerEvent.screenY,view:window});return i.zrX=e.pointerEvent.offsetX,i.zrY=e.pointerEvent.offsetY,i.event=i,i}const W=(t,e,i)=>{const n=[];let[o,s]=[e[0],e[1]];for(let r=0;r>1^-(1&e),a=a>>1^-(1&a),e+=o,a+=s,o=e,s=a,n.push([e/i,a/i])}return n};function K(t){const e=(t=>{if((t=>!t.UTF8Encoding)(t))return t;let e=t.UTF8Scale;null==e&&(e=1024);const i=t.features;for(let n=0;nt.geometry&&t.properties&&t.geometry.coordinates.length>0)).map((t=>{const e=t.properties,i=t.geometry,n=i.coordinates,o=[];return"Polygon"===i.type&&o.push(n[0]),"MultiPolygon"===i.type&&n.forEach((t=>{t[0]&&o.push(t[0])})),{properties:e,type:"Feature",geometry:{type:"Polygon",coordinates:o}}}))}}var Q=Object.freeze({__proto__:null,bar:function(t,e,i){return I(t.grid)&&!Array.isArray(t.grid)?console.log(t):Array.isArray(t.grid)&&(t.grid=t.grid.map(((e,n)=>{const o=i.dataToPoint(t.series[n].coordinates);return e.left=o[0]-parseFloat(e.width)/2,e.top=o[1]-parseFloat(e.height)/2,e}))),e},line:function(t,e,i){return I(t.grid)&&!Array.isArray(t.grid)?console.log(t):Array.isArray(t.grid)&&(t.grid=t.grid.map(((e,n)=>{const o=i.dataToPoint(t.series[n].coordinates);return e.left=o[0]-parseFloat(e.width)/2,e.top=o[1]-parseFloat(e.height)/2,e}))),e},pie:function(t,e,i){return e.center=i.dataToPoint(e.coordinates),e}});const tt={forcedRerender:!1,forcedPrecomposeRerender:!1,hideOnZooming:!1,hideOnMoving:!1,hideOnRotating:!1,convertTypes:["pie","line","bar"],insertFirst:!1,stopEvent:!1,polyfillEvents:function(t,e){const i=t.split("."),n=e.split(".");for(let o=0;o<3;o++){const t=Number(i[o]),e=Number(n[o]);if(t>e)return 1;if(e>t)return-1;if(!isNaN(t)&&isNaN(e))return 1;if(isNaN(t)&&!isNaN(e))return-1}return 0}(x.xv,"6.1.1")<=0};class et extends v.A{static#t=(()=>this.formatGeoJSON=K)();static#e=(()=>this.bind=q)();static#i=(()=>this.merge=j)();static#n=(()=>this.uuid=U)();static#o=(()=>this.bindAll=B)();static#s=(()=>this.arrayAdd=G)();static#r=(()=>this.removeNode=H)();static#a=(()=>this.isObject=I)();constructor(t,e,i){const n=Object.assign(tt,e);super(n),this._options=n,this._chartOptions=t,this.set("chartOptions",t),this.$chart=null,this.$container=void 0,this._isRegistered=!1,this._initEvent=!1,this._incremental=[],this._coordinateSystem=null,this.coordinateSystemId="",this.prevVisibleState="",B(["redraw","onResize","onZoomStart","onZoomEnd","onCenterChange","onDragRotateEnd","onMoveStart","onMoveEnd","mouseDown","mouseUp","onClick","mouseMove"],this),i&&this.setMap(i)}appendTo(t,e){void 0===e&&(e=!1),this.setMap(t,e)}getMap(){return this._map}setMap(t,e){if(void 0===e&&(e=!1),!t||!(e||t instanceof w.A))throw new Error("not ol map object");this._map=t,this._map.once("postrender",(()=>{this.handleMapChanged()})),this._map.renderSync()}getChartOptions(){return this.get("chartOptions")}setChartOptions(t){return void 0===t&&(t={}),this._chartOptions=t,this.set("chartOptions",t),this.clearAndRedraw(),this}appendData(t,e){return void 0===e&&(e=!0),t&&(e&&(this._incremental=G(this._incremental,{index:this._incremental.length,data:t.data,seriesIndex:t.seriesIndex})),this.$chart.appendData({data:t.data.copyWithin(),seriesIndex:t.seriesIndex})),this}clear(t){t||(this._incremental=[]),this.$chart&&this.$chart.clear()}remove(){this.clear(),this.$chart&&this.$chart.dispose(),this._initEvent&&this.$container&&(this.$container&&H(this.$container),this.unBindEvent()),delete this.$chart,delete this._map}show(){this.setVisible(!0)}innerShow(){this.$container&&(this.$container.style.display=this.prevVisibleState,this.prevVisibleState="")}hide(){this.setVisible(!1)}innerHide(){this.$container&&(this.prevVisibleState=this.$container.style.display,this.$container.style.display="none")}isVisible(){return this.$container&&"none"!==this.$container.style.display}showLoading(){this.$chart&&this.$chart.showLoading()}hideLoading(){this.$chart&&this.$chart.hideLoading()}setZIndex(t){this.$container&&("number"==typeof t&&(t=String(t)),this.$container.style.zIndex=t)}getZIndex(){return this.$container&&this.$container.style.zIndex}setVisible(t){t?(this.$container&&(this.$container.style.display=""),this._chartOptions=this.getChartOptions(),this.clearAndRedraw()):(this.$container&&(this.$container.style.display="none"),this.clear(!0),this._chartOptions={},this.clearAndRedraw())}render(){!this.$chart&&this.$container?(this.$chart=m.init(this.$container),this._chartOptions&&(this.registerMap(),this.$chart.setOption(this.convertData(this._chartOptions),!1)),this.dispatchEvent({type:"load",source:this,value:this.$chart})):this.isVisible()&&this.redraw()}redraw(){this.clearAndRedraw()}updateViewSize(t){this.$container&&t&&(this.$container.style.width=`${t[0]}px`,this.$container.style.height=`${t[1]}px`,this.$container.setAttribute("width",String(t[0])),this.$container.setAttribute("height",String(t[1])))}onResize(t){const e=this.getMap();if(e){const i=e.getSize();this.updateViewSize(i),this.clearAndRedraw(),t&&this.dispatchEvent({type:"change:size",source:this,value:i})}}onZoomStart(){this._options.hideOnZooming&&this.innerHide();const t=this.getMap();t&&t.getView()&&this.dispatchEvent({type:"zoomstart",source:this,value:t.getView().getZoom()})}onZoomEnd(){this._options.hideOnZooming&&this.innerShow();const t=this.getMap();t&&t.getView()&&(this.clearAndRedraw(),this.dispatchEvent({type:"zoomend",source:this,value:t.getView().getZoom()}))}onDragRotateEnd(){this._options.hideOnRotating&&this.innerShow();const t=this.getMap();t&&t.getView()&&(this.clearAndRedraw(),this.dispatchEvent({type:"change:rotation",source:this,value:t.getView().getRotation()}))}onMoveStart(t){const e=this.getMap();if(!e||!e.getView())return;t.frameState.viewState.zoom!==e.getView().getZoom()?this.onZoomStart():this.onZoomEnd(),this._options.hideOnMoving&&this.innerHide(),this.dispatchEvent({type:"movestart",source:this,value:e.getView().getCenter()})}onMoveEnd(t){this._options.hideOnMoving&&this.innerShow();const e=this.getMap();if(!e||!e.getView())return;t.frameState.viewState.zoom===e.getView().getZoom()&&this.onZoomEnd(),this.clearAndRedraw(),this.dispatchEvent({type:"moveend",source:this,value:e.getView().getCenter()})}onClick(t){this.$chart&&this.$chart.getZr().painter.getViewportRoot().dispatchEvent(J("click",t))}mouseDown(t){this.$chart&&this.$chart.getZr().painter.getViewportRoot().dispatchEvent(J("mousedown",t))}mouseUp(t){this.$chart&&this.$chart.getZr().painter.getViewportRoot().dispatchEvent(J("mouseup",t))}mouseMove(t){if(this.$chart){let e=t.originalEvent.target;for(;e;){if("ol-overlaycontainer-stopevent"===e.className)return void this.$chart.getZr().painter.getViewportRoot().dispatchEvent(J("mousemove",t));e=e.parentElement}}}onCenterChange(){const t=this.getMap();t&&t.getView()&&(this.clearAndRedraw(),this.dispatchEvent({type:"change:center",source:this,value:t.getView().getCenter()}))}handleMapChanged(){const t=this.getMap();if(this._initEvent&&this.$container&&(this.$container&&H(this.$container),this.unBindEvent()),this.$container||(this.createLayerContainer(),this.onResize(!1)),t){const e=this._options.stopEvent?t.getOverlayContainerStopEvent():t.getOverlayContainer();this._options.insertFirst?e.insertBefore(this.$container,e.childNodes[0]||null):e.appendChild(this.$container),this.render(),this.bindEvent(t)}}createLayerContainer(){this.$container=document.createElement("div"),this.$container.style.position="absolute",this.$container.style.top="0px",this.$container.style.left="0px",this.$container.style.right="0px",this.$container.style.bottom="0px",this.$container.style.pointerEvents="auto"}bindEvent(t){const e=t.getView();this._options.forcedPrecomposeRerender&&t.on("precompose",this.redraw),t.on("change:size",this.onResize),e.on("change:center",this.onCenterChange),e.on("change:rotation",this.onDragRotateEnd),t.on("movestart",this.onMoveStart),t.on("moveend",this.onMoveEnd),this._options.polyfillEvents&&(t.on("pointerdown",this.mouseDown),t.on("pointerup",this.mouseUp),t.on("pointermove",this.mouseMove),t.on("click",this.onClick)),this._initEvent=!0}unBindEvent(){const t=this.getMap();if(!t)return;const e=t.getView();e&&(t.un("precompose",this.redraw),t.un("change:size",this.onResize),e.un("change:center",this.onCenterChange),e.un("change:rotation",this.onDragRotateEnd),t.un("movestart",this.onMoveStart),t.un("moveend",this.onMoveEnd),this._options.polyfillEvents&&(t.un("pointerdown",this.mouseDown),t.un("pointerup",this.mouseUp),t.un("pointermove",this.mouseMove),t.un("click",this.onClick)),this._initEvent=!1)}clearAndRedraw(){if(this.$chart&&this.isVisible()){if(this._options.forcedRerender&&this.$chart.clear(),this.$chart.resize(),this._chartOptions&&(this.registerMap(),this.$chart.setOption(this.convertData(this._chartOptions),!1),this._incremental&&this._incremental.length>0))for(let t=0;t=0;i--)e.indexOf(t[i].type)>-1||(t[i].coordinateSystem=this.coordinateSystemId),t[i].animation=!1}}}convertData(t){const e=t.series;if(e&&e.length>0){if(!this._coordinateSystem){const t=this.getCoordinateSystem(this._options);this._coordinateSystem=new t(this.getMap())}if(e&&I(e)){const i=this._options.convertTypes;if(i)for(let n=e.length-1;n>=0;n--){const{type:o}=e[n];i.indexOf(o)>-1&&e[n]&&e[n].hasOwnProperty("coordinates")&&(e[n]=Q[e[n].type](t,e[n],this._coordinateSystem))}}}return t}getCoordinateSystem(t){const e=this.getMap(),i=this.coordinateSystemId;class n{constructor(t){this._mapOffset=[0,0],this.dimensions=["lng","lat"],this._roamTransformable=new O,this._rawTransformable=new O,this.map=t,this.dimensions=["lng","lat"],this.projCode=n.getProjectionCode(this.map)}static#t=(()=>this.dimensions=n.prototype.dimensions||["lng","lat"])();static#e=(()=>this.create=function(t){t.eachSeries((t=>{t.get("coordinateSystem")===i&&(t.coordinateSystem=new n(e))}))})();static#i=(()=>this.getProjectionCode=function(t){let e="";return e=t?t.getView()&&t.getView().getProjection().getCode():"EPSG:3857",e})();getZoom(){return this.map.getView().getZoom()}setZoom(t){return this.map.getView().setZoom(t)}getViewRectAfterRoam(){return this.getViewRect().clone()}setMapOffset(t){this._mapOffset=t}dataToPoint(e){let i;if(e&&Array.isArray(e)&&e.length>0){i=e.map((t=>{let e=0;return e="string"==typeof t?Number(t):t,e}));const n=t&&t.source||"EPSG:4326",o=t&&t.destination||this.projCode,s=this.map.getPixelFromCoordinate((0,g.pd)(i,n,o)),r=this._mapOffset;return[s[0]-r[0],s[1]-r[1]]}return[0,0]}pointToData(t){const e=this._mapOffset;return this.map.getCoordinateFromPixel([t[0]+e[0],t[1]+e[1]])}setViewRect(){const t=this.map.getSize();this._viewRect=new D(0,0,t[0],t[1])}getViewRect(){return this._viewRect||this.setViewRect(),this._viewRect}getRoamTransform(){return this._roamTransformable.getLocalTransform()}prepareCustoms(){const t=this.getViewRect();return{coordSys:{type:i,x:t.x,y:t.y,width:t.width,height:t.height},api:{coord:q(this.dataToPoint,this),size:q(this.dataToCoordsSize,this)}}}dataToCoordsSize(t,e){return void 0===e&&(e=[0,0]),[0,1].map((i=>{const n=e[i],o=[],s=[],r=t[i]/2;o[i]=n-r,s[i]=n+r,o[1-i]=e[1-i],s[1-i]=e[1-i];const a=this.dataToPoint(o)[i]-this.dataToPoint(s)[i];return Math.abs(a)}))}getTransformInfo(){const t=this._rawTransformable,e=this._roamTransformable,i=new O;return i.transform=e.transform,i.decomposeTransform(),{roam:{x:i.x,y:i.y,scaleX:i.scaleX,scaleY:i.scaleY},raw:{x:t.x,y:t.y,scaleX:t.scaleX,scaleY:t.scaleY}}}}return n}dispatchEvent(t){return super.dispatchEvent(t)}set(t,e,i){return super.set(t,e,i)}get(t){return super.get(t)}on(t,e){return super.on(t,e)}un(t,e){return super.un(t,e)}}var it=i(6930);const nt={React:n,...n,useBaseUrl:it.Ay,proj4:r.A,ol:s,TileLayer:a.A,XYZ:c.A,VectorSource:p.A,VectorLayer:h.A,GeoJSON:u.A,Stroke:d.A,Fill:y.A,Style:l.Ay,echarts:m,EChartsLayer:et,Projection:g.MF,register:f.kz,leva:o,Leva:o.Leva,LevaPanel:o.LevaPanel}}}]); \ No newline at end of file +"use strict";(self.webpackChunkol_echarts_docs=self.webpackChunkol_echarts_docs||[]).push([[401],{8002:(t,e,i)=>{i.d(e,{A:()=>nt});i(3739);var n=i(7378),o=i(9231),s=i(247),r=i(8675),a=i(3682),h=i(5209),c=i(3264),p=i(9255),u=i(8941),l=i(6365),d=i(3698),y=i(9091),f=i(5505),g=i(6859),m=i(4347),v=(i(7289),i(5191)),w=i(9532),x=i(6916);function _(t,e,i){var n=e[0]*i[0]+e[2]*i[1],o=e[1]*i[0]+e[3]*i[1],s=e[0]*i[2]+e[2]*i[3],r=e[1]*i[2]+e[3]*i[3],a=e[0]*i[4]+e[2]*i[5]+e[4],h=e[1]*i[4]+e[3]*i[5]+e[5];return t[0]=n,t[1]=o,t[2]=s,t[3]=r,t[4]=a,t[5]=h,t}function S(t,e,i){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3],t[4]=e[4]+i[0],t[5]=e[5]+i[1],t}function $(t,e,i){var n=e[0],o=e[1];return t[0]=i[0]*n+i[2]*o+i[4],t[1]=i[1]*n+i[3]*o+i[5],t}var E=function(t){return t[0]=1,t[1]=0,t[2]=0,t[3]=1,t[4]=0,t[5]=0,t},M=5e-5;function b(t){return t>M||t<-5e-5}var T=[],A=[],C=[1,0,0,1,0,0],R=Math.abs,O=function(){function t(){}var e;return t.prototype.getLocalTransform=function(e){return t.getLocalTransform(this,e)},t.prototype.setPosition=function(t){this.x=t[0],this.y=t[1]},t.prototype.setScale=function(t){this.scaleX=t[0],this.scaleY=t[1]},t.prototype.setSkew=function(t){this.skewX=t[0],this.skewY=t[1]},t.prototype.setOrigin=function(t){this.originX=t[0],this.originY=t[1]},t.prototype.needLocalTransform=function(){return b(this.rotation)||b(this.x)||b(this.y)||b(this.scaleX-1)||b(this.scaleY-1)||b(this.skewX)||b(this.skewY)},t.prototype.updateTransform=function(){var t=this.parent&&this.parent.transform,e=this.needLocalTransform(),i=this.transform;e||t?(i=i||[1,0,0,1,0,0],e?this.getLocalTransform(i):E(i),t&&(e?_(i,t,i):function(t,e){t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3],t[4]=e[4],t[5]=e[5]}(i,t)),this.transform=i,this._resolveGlobalScaleRatio(i)):i&&(E(i),this.invTransform=null)},t.prototype._resolveGlobalScaleRatio=function(t){var e,i,n,o,s,r,a,h,c,p=this.globalScaleRatio;if(null!=p&&1!==p){this.getGlobalScale(T);var u=T[0]<0?-1:1,l=T[1]<0?-1:1,d=((T[0]-u)*p+u)/T[0]||0,y=((T[1]-l)*p+l)/T[1]||0;t[0]*=d,t[1]*=d,t[2]*=y,t[3]*=y}this.invTransform=this.invTransform||[1,0,0,1,0,0],e=this.invTransform,n=(i=t)[0],o=i[2],s=i[4],r=i[1],a=i[3],h=i[5],(c=n*a-r*o)&&(c=1/c,e[0]=a*c,e[1]=-r*c,e[2]=-o*c,e[3]=n*c,e[4]=(o*h-a*s)*c,e[5]=(r*s-n*h)*c)},t.prototype.getComputedTransform=function(){for(var t=this,e=[];t;)e.push(t),t=t.parent;for(;t=e.pop();)t.updateTransform();return this.transform},t.prototype.setLocalTransform=function(t){if(t){var e=t[0]*t[0]+t[1]*t[1],i=t[2]*t[2]+t[3]*t[3],n=Math.atan2(t[1],t[0]),o=Math.PI/2+n-Math.atan2(t[3],t[2]);i=Math.sqrt(i)*Math.cos(o),e=Math.sqrt(e),this.skewX=o,this.skewY=0,this.rotation=-n,this.x=+t[4],this.y=+t[5],this.scaleX=e,this.scaleY=i,this.originX=0,this.originY=0}},t.prototype.decomposeTransform=function(){if(this.transform){var t=this.parent,e=this.transform;t&&t.transform&&(t.invTransform=t.invTransform||[1,0,0,1,0,0],_(A,t.invTransform,e),e=A);var i=this.originX,n=this.originY;(i||n)&&(C[4]=i,C[5]=n,_(A,e,C),A[4]-=i,A[5]-=n,e=A),this.setLocalTransform(e)}},t.prototype.getGlobalScale=function(t){var e=this.transform;return t=t||[],e?(t[0]=Math.sqrt(e[0]*e[0]+e[1]*e[1]),t[1]=Math.sqrt(e[2]*e[2]+e[3]*e[3]),e[0]<0&&(t[0]=-t[0]),e[3]<0&&(t[1]=-t[1]),t):(t[0]=1,t[1]=1,t)},t.prototype.transformCoordToLocal=function(t,e){var i=[t,e],n=this.invTransform;return n&&$(i,i,n),i},t.prototype.transformCoordToGlobal=function(t,e){var i=[t,e],n=this.transform;return n&&$(i,i,n),i},t.prototype.getLineScale=function(){var t=this.transform;return t&&R(t[0]-1)>1e-10&&R(t[3]-1)>1e-10?Math.sqrt(R(t[0]*t[3]-t[2]*t[1])):1},t.prototype.copyTransform=function(t){!function(t,e){for(var i=0;iy&&(y=w,fy&&(y=x,m=i.x&&t<=i.x+i.width&&e>=i.y&&e<=i.y+i.height},t.prototype.clone=function(){return new t(this.x,this.y,this.width,this.height)},t.prototype.copy=function(e){t.copy(this,e)},t.prototype.plain=function(){return{x:this.x,y:this.y,width:this.width,height:this.height}},t.prototype.isFinite=function(){return isFinite(this.x)&&isFinite(this.y)&&isFinite(this.width)&&isFinite(this.height)},t.prototype.isZero=function(){return 0===this.width||0===this.height},t.create=function(e){return new t(e.x,e.y,e.width,e.height)},t.copy=function(t,e){t.x=e.x,t.y=e.y,t.width=e.width,t.height=e.height},t.applyTransform=function(e,i,n){if(n){if(n[1]<1e-5&&n[1]>-1e-5&&n[2]<1e-5&&n[2]>-1e-5){var o=n[0],s=n[3],r=n[4],a=n[5];return e.x=i.x*o+r,e.y=i.y*s+a,e.width=i.width*o,e.height=i.height*s,e.width<0&&(e.x+=e.width,e.width=-e.width),void(e.height<0&&(e.y+=e.height,e.height=-e.height))}P.x=Z.x=i.x,P.y=F.y=i.y,z.x=F.x=i.x+i.width,z.y=Z.y=i.y+i.height,P.transform(n),F.transform(n),z.transform(n),Z.transform(n),e.x=Y(P.x,z.x,Z.x,F.x),e.y=Y(P.y,z.y,Z.y,F.y);var h=k(P.x,z.x,Z.x,F.x),c=k(P.y,z.y,Z.y,F.y);e.width=h-e.x,e.height=c-e.y}else e!==i&&t.copy(e,i)},t}();const I=t=>{const e=typeof t;return null!==t&&("object"===e||"function"===e)},j=(t,e)=>(Object.keys(e).forEach((i=>{I(e[i])&&I(t[i])?j(t[i],e[i]):t[i]=e[i]})),t),q=function(t,e){for(var i=arguments.length,n=new Array(i>2?i-2:0),o=2;o>e/4).toString(16):([1e7]+-[1e3]+-4e3+-8e3+-1e11).replace(/[018]/g,t)}()};function B(t,e){t.forEach((t=>{e[t]&&(e[t]=e[t].bind(e))}))}function H(t){return t&&t.parentNode?t.parentNode.removeChild(t):null}function J(t,e){const i=new MouseEvent(t,{bubbles:!0,cancelable:!0,button:e.pointerEvent.button,buttons:e.pointerEvent.buttons,clientX:e.pointerEvent.clientX,clientY:e.pointerEvent.clientY,movementX:e.pointerEvent.movementX,movementY:e.pointerEvent.movementY,relatedTarget:e.pointerEvent.relatedTarget,screenX:e.pointerEvent.screenX,screenY:e.pointerEvent.screenY,view:window});return i.zrX=e.pointerEvent.offsetX,i.zrY=e.pointerEvent.offsetY,i.event=i,i}const W=(t,e,i)=>{const n=[];let[o,s]=[e[0],e[1]];for(let r=0;r>1^-(1&e),a=a>>1^-(1&a),e+=o,a+=s,o=e,s=a,n.push([e/i,a/i])}return n};function K(t){const e=(t=>{if((t=>!t.UTF8Encoding)(t))return t;let e=t.UTF8Scale;null==e&&(e=1024);const i=t.features;for(let n=0;nt.geometry&&t.properties&&t.geometry.coordinates.length>0)).map((t=>{const e=t.properties,i=t.geometry,n=i.coordinates,o=[];return"Polygon"===i.type&&o.push(n[0]),"MultiPolygon"===i.type&&n.forEach((t=>{t[0]&&o.push(t[0])})),{properties:e,type:"Feature",geometry:{type:"Polygon",coordinates:o}}}))}}var Q=Object.freeze({__proto__:null,bar:function(t,e,i){return I(t.grid)&&!Array.isArray(t.grid)?console.log(t):Array.isArray(t.grid)&&(t.grid=t.grid.map(((e,n)=>{const o=i.dataToPoint(t.series[n].coordinates);return e.left=o[0]-parseFloat(e.width)/2,e.top=o[1]-parseFloat(e.height)/2,e}))),e},line:function(t,e,i){return I(t.grid)&&!Array.isArray(t.grid)?console.log(t):Array.isArray(t.grid)&&(t.grid=t.grid.map(((e,n)=>{const o=i.dataToPoint(t.series[n].coordinates);return e.left=o[0]-parseFloat(e.width)/2,e.top=o[1]-parseFloat(e.height)/2,e}))),e},pie:function(t,e,i){return e.center=i.dataToPoint(e.coordinates),e}});const tt={forcedRerender:!1,forcedPrecomposeRerender:!1,hideOnZooming:!1,hideOnMoving:!1,hideOnRotating:!1,convertTypes:["pie","line","bar"],insertFirst:!1,stopEvent:!1,polyfillEvents:function(t,e){const i=t.split("."),n=e.split(".");for(let o=0;o<3;o++){const t=Number(i[o]),e=Number(n[o]);if(t>e)return 1;if(e>t)return-1;if(!isNaN(t)&&isNaN(e))return 1;if(isNaN(t)&&!isNaN(e))return-1}return 0}(x.xv,"6.1.1")<=0};class et extends v.A{static#t=(()=>this.formatGeoJSON=K)();static#e=(()=>this.bind=q)();static#i=(()=>this.merge=j)();static#n=(()=>this.uuid=U)();static#o=(()=>this.bindAll=B)();static#s=(()=>this.arrayAdd=G)();static#r=(()=>this.removeNode=H)();static#a=(()=>this.isObject=I)();constructor(t,e,i){const n=Object.assign(tt,e);super(n),this._options=n,this._chartOptions=t,this.set("chartOptions",t),this.$chart=null,this.$container=void 0,this._isRegistered=!1,this._initEvent=!1,this._incremental=[],this._coordinateSystem=null,this.coordinateSystemId="",this.prevVisibleState="",B(["redraw","onResize","onZoomStart","onZoomEnd","onCenterChange","onDragRotateEnd","onMoveStart","onMoveEnd","mouseDown","mouseUp","onClick","mouseMove"],this),i&&this.setMap(i)}appendTo(t,e){void 0===e&&(e=!1),this.setMap(t,e)}getMap(){return this._map}setMap(t,e){if(void 0===e&&(e=!1),!t||!(e||t instanceof w.A))throw new Error("not ol map object");this._map=t,this._map.once("postrender",(()=>{this.handleMapChanged()})),this._map.renderSync()}getChartOptions(){return this.get("chartOptions")}setChartOptions(t){return void 0===t&&(t={}),this._chartOptions=t,this.set("chartOptions",t),this.clearAndRedraw(),this}appendData(t,e){return void 0===e&&(e=!0),t&&(e&&(this._incremental=G(this._incremental,{index:this._incremental.length,data:t.data,seriesIndex:t.seriesIndex})),this.$chart.appendData({data:t.data.copyWithin(),seriesIndex:t.seriesIndex})),this}clear(t){t||(this._incremental=[]),this.$chart&&this.$chart.clear()}remove(){this.clear(),this.$chart&&this.$chart.dispose(),this._initEvent&&this.$container&&(this.$container&&H(this.$container),this.unBindEvent()),delete this.$chart,delete this._map}show(){this.setVisible(!0)}innerShow(){this.$container&&(this.$container.style.display=this.prevVisibleState,this.prevVisibleState="")}hide(){this.setVisible(!1)}innerHide(){this.$container&&(this.prevVisibleState=this.$container.style.display,this.$container.style.display="none")}isVisible(){return this.$container&&"none"!==this.$container.style.display}showLoading(){this.$chart&&this.$chart.showLoading()}hideLoading(){this.$chart&&this.$chart.hideLoading()}setZIndex(t){this.$container&&("number"==typeof t&&(t=String(t)),this.$container.style.zIndex=t)}getZIndex(){return this.$container&&this.$container.style.zIndex}setVisible(t){t?(this.$container&&(this.$container.style.display=""),this._chartOptions=this.getChartOptions(),this.clearAndRedraw()):(this.$container&&(this.$container.style.display="none"),this.clear(!0),this._chartOptions={},this.clearAndRedraw())}render(){!this.$chart&&this.$container?(this.$chart=m.init(this.$container),this._chartOptions&&(this.registerMap(),this.$chart.setOption(this.convertData(this._chartOptions),!1)),this.dispatchEvent({type:"load",source:this,value:this.$chart})):this.isVisible()&&this.redraw()}redraw(){this.clearAndRedraw()}updateViewSize(t){this.$container&&t&&(this.$container.style.width=`${t[0]}px`,this.$container.style.height=`${t[1]}px`,this.$container.setAttribute("width",String(t[0])),this.$container.setAttribute("height",String(t[1])))}onResize(t){const e=this.getMap();if(e){const i=e.getSize();this.updateViewSize(i),this.clearAndRedraw(),t&&this.dispatchEvent({type:"change:size",source:this,value:i})}}onZoomStart(){this._options.hideOnZooming&&this.innerHide();const t=this.getMap();t&&t.getView()&&this.dispatchEvent({type:"zoomstart",source:this,value:t.getView().getZoom()})}onZoomEnd(){this._options.hideOnZooming&&this.innerShow();const t=this.getMap();t&&t.getView()&&(this.clearAndRedraw(),this.dispatchEvent({type:"zoomend",source:this,value:t.getView().getZoom()}))}onDragRotateEnd(){this._options.hideOnRotating&&this.innerShow();const t=this.getMap();t&&t.getView()&&(this.clearAndRedraw(),this.dispatchEvent({type:"change:rotation",source:this,value:t.getView().getRotation()}))}onMoveStart(t){const e=this.getMap();if(!e||!e.getView())return;t.frameState.viewState.zoom!==e.getView().getZoom()?this.onZoomStart():this.onZoomEnd(),this._options.hideOnMoving&&this.innerHide(),this.dispatchEvent({type:"movestart",source:this,value:e.getView().getCenter()})}onMoveEnd(t){this._options.hideOnMoving&&this.innerShow();const e=this.getMap();if(!e||!e.getView())return;t.frameState.viewState.zoom===e.getView().getZoom()&&this.onZoomEnd(),this.clearAndRedraw(),this.dispatchEvent({type:"moveend",source:this,value:e.getView().getCenter()})}onClick(t){this.$chart&&this.$chart.getZr().painter.getViewportRoot().dispatchEvent(J("click",t))}mouseDown(t){this.$chart&&this.$chart.getZr().painter.getViewportRoot().dispatchEvent(J("mousedown",t))}mouseUp(t){this.$chart&&this.$chart.getZr().painter.getViewportRoot().dispatchEvent(J("mouseup",t))}mouseMove(t){if(this.$chart){let e=t.originalEvent.target;for(;e;){if("ol-overlaycontainer-stopevent"===e.className)return void this.$chart.getZr().painter.getViewportRoot().dispatchEvent(J("mousemove",t));e=e.parentElement}}}onCenterChange(){const t=this.getMap();t&&t.getView()&&(this.clearAndRedraw(),this.dispatchEvent({type:"change:center",source:this,value:t.getView().getCenter()}))}handleMapChanged(){const t=this.getMap();if(this._initEvent&&this.$container&&(this.$container&&H(this.$container),this.unBindEvent()),this.$container||(this.createLayerContainer(),this.onResize(!1)),t){const e=this._options.stopEvent?t.getOverlayContainerStopEvent():t.getOverlayContainer();this._options.insertFirst?e.insertBefore(this.$container,e.childNodes[0]||null):e.appendChild(this.$container),this.render(),this.bindEvent(t)}}createLayerContainer(){this.$container=document.createElement("div"),this.$container.style.position="absolute",this.$container.style.top="0px",this.$container.style.left="0px",this.$container.style.right="0px",this.$container.style.bottom="0px",this.$container.style.pointerEvents="auto"}bindEvent(t){const e=t.getView();this._options.forcedPrecomposeRerender&&t.on("precompose",this.redraw),t.on("change:size",this.onResize),e.on("change:center",this.onCenterChange),e.on("change:rotation",this.onDragRotateEnd),t.on("movestart",this.onMoveStart),t.on("moveend",this.onMoveEnd),this._options.polyfillEvents&&(t.on("pointerdown",this.mouseDown),t.on("pointerup",this.mouseUp),t.on("pointermove",this.mouseMove),t.on("click",this.onClick)),this._initEvent=!0}unBindEvent(){const t=this.getMap();if(!t)return;const e=t.getView();e&&(t.un("precompose",this.redraw),t.un("change:size",this.onResize),e.un("change:center",this.onCenterChange),e.un("change:rotation",this.onDragRotateEnd),t.un("movestart",this.onMoveStart),t.un("moveend",this.onMoveEnd),this._options.polyfillEvents&&(t.un("pointerdown",this.mouseDown),t.un("pointerup",this.mouseUp),t.un("pointermove",this.mouseMove),t.un("click",this.onClick)),this._initEvent=!1)}clearAndRedraw(){if(this.$chart&&this.isVisible()){if(this._options.forcedRerender&&this.$chart.clear(),this.$chart.resize(),this._chartOptions&&(this.registerMap(),this.$chart.setOption(this.convertData(this._chartOptions),!1),this._incremental&&this._incremental.length>0))for(let t=0;t=0;i--)e.indexOf(t[i].type)>-1||(t[i].coordinateSystem=this.coordinateSystemId),t[i].animation=!1}}}convertData(t){const e=t.series;if(e&&e.length>0){if(!this._coordinateSystem){const t=this.getCoordinateSystem(this._options);this._coordinateSystem=new t(this.getMap())}if(e&&I(e)){const i=this._options.convertTypes;if(i)for(let n=e.length-1;n>=0;n--){const{type:o}=e[n];i.indexOf(o)>-1&&e[n]&&e[n].hasOwnProperty("coordinates")&&(e[n]=Q[e[n].type](t,e[n],this._coordinateSystem))}}}return t}getCoordinateSystem(t){const e=this.getMap(),i=this.coordinateSystemId;class n{constructor(t){this._mapOffset=[0,0],this.dimensions=["lng","lat"],this._roamTransformable=new O,this._rawTransformable=new O,this.map=t,this.dimensions=["lng","lat"],this.projCode=n.getProjectionCode(this.map)}static#t=(()=>this.dimensions=n.prototype.dimensions||["lng","lat"])();static#e=(()=>this.create=function(t){t.eachSeries((t=>{t.get("coordinateSystem")===i&&(t.coordinateSystem=new n(e))}))})();static#i=(()=>this.getProjectionCode=function(t){let e="";return e=t?t.getView()&&t.getView().getProjection().getCode():"EPSG:3857",e})();getZoom(){return this.map.getView().getZoom()}setZoom(t){return this.map.getView().setZoom(t)}getViewRectAfterRoam(){return this.getViewRect().clone()}setMapOffset(t){this._mapOffset=t}dataToPoint(e){let i;if(e&&Array.isArray(e)&&e.length>0){i=e.map((t=>{let e=0;return e="string"==typeof t?Number(t):t,e}));const n=t&&t.source||"EPSG:4326",o=t&&t.destination||this.projCode,s=this.map.getPixelFromCoordinate((0,g.pd)(i,n,o)),r=this._mapOffset;return[s[0]-r[0],s[1]-r[1]]}return[0,0]}pointToData(t){const e=this._mapOffset;return this.map.getCoordinateFromPixel([t[0]+e[0],t[1]+e[1]])}setViewRect(){const t=this.map.getSize();this._viewRect=new D(0,0,t[0],t[1])}getViewRect(){return this._viewRect||this.setViewRect(),this._viewRect}getRoamTransform(){return this._roamTransformable.getLocalTransform()}prepareCustoms(){const t=this.getViewRect();return{coordSys:{type:i,x:t.x,y:t.y,width:t.width,height:t.height},api:{coord:q(this.dataToPoint,this),size:q(this.dataToCoordsSize,this)}}}dataToCoordsSize(t,e){return void 0===e&&(e=[0,0]),[0,1].map((i=>{const n=e[i],o=[],s=[],r=t[i]/2;o[i]=n-r,s[i]=n+r,o[1-i]=e[1-i],s[1-i]=e[1-i];const a=this.dataToPoint(o)[i]-this.dataToPoint(s)[i];return Math.abs(a)}))}getTransformInfo(){const t=this._rawTransformable,e=this._roamTransformable,i=new O;return i.transform=e.transform,i.decomposeTransform(),{roam:{x:i.x,y:i.y,scaleX:i.scaleX,scaleY:i.scaleY},raw:{x:t.x,y:t.y,scaleX:t.scaleX,scaleY:t.scaleY}}}}return n}dispatchEvent(t){return super.dispatchEvent(t)}set(t,e,i){return super.set(t,e,i)}get(t){return super.get(t)}on(t,e){return super.on(t,e)}un(t,e){return super.un(t,e)}}var it=i(1975);const nt={React:n,...n,useBaseUrl:it.Ay,proj4:r.A,ol:s,TileLayer:a.A,XYZ:c.A,VectorSource:p.A,VectorLayer:h.A,GeoJSON:u.A,Stroke:d.A,Fill:y.A,Style:l.Ay,echarts:m,EChartsLayer:et,Projection:g.MF,register:f.kz,leva:o,Leva:o.Leva,LevaPanel:o.LevaPanel}}}]); \ No newline at end of file diff --git a/assets/js/1a4e3797.ad913112.js b/assets/js/1a4e3797.0d4e4a27.js similarity index 96% rename from assets/js/1a4e3797.ad913112.js rename to assets/js/1a4e3797.0d4e4a27.js index 82bf9e0..5808614 100644 --- a/assets/js/1a4e3797.ad913112.js +++ b/assets/js/1a4e3797.0d4e4a27.js @@ -1,2 +1,2 @@ -/*! For license information please see 1a4e3797.ad913112.js.LICENSE.txt */ -(self.webpackChunkol_echarts_docs=self.webpackChunkol_echarts_docs||[]).push([[138],{4529:e=>{function t(){this._events=this._events||{},this._maxListeners=this._maxListeners||void 0}function r(e){return"function"==typeof e}function n(e){return"object"==typeof e&&null!==e}function i(e){return void 0===e}e.exports=t,t.prototype._events=void 0,t.prototype._maxListeners=void 0,t.defaultMaxListeners=10,t.prototype.setMaxListeners=function(e){if("number"!=typeof e||e<0||isNaN(e))throw TypeError("n must be a positive number");return this._maxListeners=e,this},t.prototype.emit=function(e){var t,s,a,c,o,u;if(this._events||(this._events={}),"error"===e&&(!this._events.error||n(this._events.error)&&!this._events.error.length)){if((t=arguments[1])instanceof Error)throw t;var h=new Error('Uncaught, unspecified "error" event. ('+t+")");throw h.context=t,h}if(i(s=this._events[e]))return!1;if(r(s))switch(arguments.length){case 1:s.call(this);break;case 2:s.call(this,arguments[1]);break;case 3:s.call(this,arguments[1],arguments[2]);break;default:c=Array.prototype.slice.call(arguments,1),s.apply(this,c)}else if(n(s))for(c=Array.prototype.slice.call(arguments,1),a=(u=s.slice()).length,o=0;o0&&this._events[e].length>a&&(this._events[e].warned=!0,console.error("(node) warning: possible EventEmitter memory leak detected. %d listeners added. Use emitter.setMaxListeners() to increase limit.",this._events[e].length),"function"==typeof console.trace&&console.trace()),this},t.prototype.on=t.prototype.addListener,t.prototype.once=function(e,t){if(!r(t))throw TypeError("listener must be a function");var n=!1;function i(){this.removeListener(e,i),n||(n=!0,t.apply(this,arguments))}return i.listener=t,this.on(e,i),this},t.prototype.removeListener=function(e,t){var i,s,a,c;if(!r(t))throw TypeError("listener must be a function");if(!this._events||!this._events[e])return this;if(a=(i=this._events[e]).length,s=-1,i===t||r(i.listener)&&i.listener===t)delete this._events[e],this._events.removeListener&&this.emit("removeListener",e,t);else if(n(i)){for(c=a;c-- >0;)if(i[c]===t||i[c].listener&&i[c].listener===t){s=c;break}if(s<0)return this;1===i.length?(i.length=0,delete this._events[e]):i.splice(s,1),this._events.removeListener&&this.emit("removeListener",e,t)}return this},t.prototype.removeAllListeners=function(e){var t,n;if(!this._events)return this;if(!this._events.removeListener)return 0===arguments.length?this._events={}:this._events[e]&&delete this._events[e],this;if(0===arguments.length){for(t in this._events)"removeListener"!==t&&this.removeAllListeners(t);return this.removeAllListeners("removeListener"),this._events={},this}if(r(n=this._events[e]))this.removeListener(e,n);else if(n)for(;n.length;)this.removeListener(e,n[n.length-1]);return delete this._events[e],this},t.prototype.listeners=function(e){return this._events&&this._events[e]?r(this._events[e])?[this._events[e]]:this._events[e].slice():[]},t.prototype.listenerCount=function(e){if(this._events){var t=this._events[e];if(r(t))return 1;if(t)return t.length}return 0},t.listenerCount=function(e,t){return e.listenerCount(t)}},6479:(e,t,r)=>{"use strict";var n=r(2099),i=r(1903),s=r(4583),a=r(6579),c=r(5571);function o(e,t,r,i){return new n(e,t,r,i)}o.version=r(6674),o.AlgoliaSearchHelper=n,o.SearchParameters=a,o.RecommendParameters=i,o.SearchResults=c,o.RecommendResults=s,e.exports=o},6484:(e,t,r)=>{"use strict";var n=r(4529);function i(e,t,r){this.main=e,this.fn=t,this.recommendFn=r,this.lastResults=null,this.lastRecommendResults=null}r(3966)(i,n),i.prototype.detach=function(){this.removeAllListeners(),this.main.detachDerivedHelper(this)},i.prototype.getModifiedState=function(e){return this.fn(e)},i.prototype.getModifiedRecommendState=function(e){return this.recommendFn(e)},e.exports=i},1903:e=>{"use strict";function t(e){e=e||{},this.params=e.params||[]}t.prototype={constructor:t,addParams:function(e){var r=this.params.slice();return r.push(e),new t({params:r})},removeParams:function(e){return new t({params:this.params.filter((function(t){return t.$$id!==e}))})},addFrequentlyBoughtTogether:function(e){return this.addParams(Object.assign({},e,{model:"bought-together"}))},addRelatedProducts:function(e){return this.addParams(Object.assign({},e,{model:"related-products"}))},addTrendingItems:function(e){return this.addParams(Object.assign({},e,{model:"trending-items"}))},addTrendingFacets:function(e){return this.addParams(Object.assign({},e,{model:"trending-facets"}))},addLookingSimilar:function(e){return this.addParams(Object.assign({},e,{model:"looking-similar"}))},_buildQueries:function(e,t){return this.params.filter((function(e){return void 0===t[e.$$id]})).map((function(t){var r=Object.assign({},t,{indexName:e,threshold:t.threshold||0});return delete r.$$id,r}))}},e.exports=t},4583:e=>{"use strict";function t(e,t){this._state=e,this._rawResults={};var r=this;e.params.forEach((function(e){var n=e.$$id;r[n]=t[n],r._rawResults[n]=t[n]}))}t.prototype={constructor:t},e.exports=t},3502:(e,t,r)=>{"use strict";var n=r(8814),i=r(7333),s=r(5055),a={addRefinement:function(e,t,r){if(a.isRefined(e,t,r))return e;var i=""+r,s=e[t]?e[t].concat(i):[i],c={};return c[t]=s,n({},c,e)},removeRefinement:function(e,t,r){if(void 0===r)return a.clearRefinement(e,(function(e,r){return t===r}));var n=""+r;return a.clearRefinement(e,(function(e,r){return t===r&&n===e}))},toggleRefinement:function(e,t,r){if(void 0===r)throw new Error("toggleRefinement should be used with a value");return a.isRefined(e,t,r)?a.removeRefinement(e,t,r):a.addRefinement(e,t,r)},clearRefinement:function(e,t,r){if(void 0===t)return i(e)?{}:e;if("string"==typeof t)return s(e,[t]);if("function"==typeof t){var n=!1,a=Object.keys(e).reduce((function(i,s){var a=e[s]||[],c=a.filter((function(e){return!t(e,s,r)}));return c.length!==a.length&&(n=!0),i[s]=c,i}),{});return n?a:e}},isRefined:function(e,t,r){var n=Boolean(e[t])&&e[t].length>0;if(void 0===r||!n)return n;var i=""+r;return-1!==e[t].indexOf(i)}};e.exports=a},6579:(e,t,r)=>{"use strict";var n=r(8814),i=r(5241),s=r(6739),a=r(3744),c=r(7333),o=r(5055),u=r(3467),h=r(9592),f=r(3502);function l(e,t){return Array.isArray(e)&&Array.isArray(t)?e.length===t.length&&e.every((function(e,r){return l(t[r],e)})):e===t}function m(e){var t=e?m._parseNumbers(e):{};void 0===t.userToken||h(t.userToken)||console.warn("[algoliasearch-helper] The `userToken` parameter is invalid. This can lead to wrong analytics.\n - Format: [a-zA-Z0-9_-]{1,64}"),this.facets=t.facets||[],this.disjunctiveFacets=t.disjunctiveFacets||[],this.hierarchicalFacets=t.hierarchicalFacets||[],this.facetsRefinements=t.facetsRefinements||{},this.facetsExcludes=t.facetsExcludes||{},this.disjunctiveFacetsRefinements=t.disjunctiveFacetsRefinements||{},this.numericRefinements=t.numericRefinements||{},this.tagRefinements=t.tagRefinements||[],this.hierarchicalFacetsRefinements=t.hierarchicalFacetsRefinements||{};var r=this;Object.keys(t).forEach((function(e){var n=-1!==m.PARAMETERS.indexOf(e),i=void 0!==t[e];!n&&i&&(r[e]=t[e])}))}m.PARAMETERS=Object.keys(new m),m._parseNumbers=function(e){if(e instanceof m)return e;var t={};if(["aroundPrecision","aroundRadius","getRankingInfo","minWordSizefor2Typos","minWordSizefor1Typo","page","maxValuesPerFacet","distinct","minimumAroundRadius","hitsPerPage","minProximity"].forEach((function(r){var n=e[r];if("string"==typeof n){var i=parseFloat(n);t[r]=isNaN(i)?n:i}})),Array.isArray(e.insideBoundingBox)&&(t.insideBoundingBox=e.insideBoundingBox.map((function(e){return Array.isArray(e)?e.map((function(e){return parseFloat(e)})):e}))),e.numericRefinements){var r={};Object.keys(e.numericRefinements).forEach((function(t){var n=e.numericRefinements[t]||{};r[t]={},Object.keys(n).forEach((function(e){var i=n[e].map((function(e){return Array.isArray(e)?e.map((function(e){return"string"==typeof e?parseFloat(e):e})):"string"==typeof e?parseFloat(e):e}));r[t][e]=i}))})),t.numericRefinements=r}return a(e,t)},m.make=function(e){var t=new m(e);return(e.hierarchicalFacets||[]).forEach((function(e){if(e.rootPath){var r=t.getHierarchicalRefinement(e.name);r.length>0&&0!==r[0].indexOf(e.rootPath)&&(t=t.clearRefinements(e.name)),0===(r=t.getHierarchicalRefinement(e.name)).length&&(t=t.toggleHierarchicalFacetRefinement(e.name,e.rootPath))}})),t},m.validate=function(e,t){var r=t||{};return e.tagFilters&&r.tagRefinements&&r.tagRefinements.length>0?new Error("[Tags] Cannot switch from the managed tag API to the advanced API. It is probably an error, if it is really what you want, you should first clear the tags with clearTags method."):e.tagRefinements.length>0&&r.tagFilters?new Error("[Tags] Cannot switch from the advanced tag API to the managed API. It is probably an error, if it is not, you should first clear the tags with clearTags method."):e.numericFilters&&r.numericRefinements&&c(r.numericRefinements)?new Error("[Numeric filters] Can't switch from the advanced to the managed API. It is probably an error, if this is really what you want, you have to first clear the numeric filters."):c(e.numericRefinements)&&r.numericFilters?new Error("[Numeric filters] Can't switch from the managed API to the advanced. It is probably an error, if this is really what you want, you have to first clear the numeric filters."):null},m.prototype={constructor:m,clearRefinements:function(e){var t={numericRefinements:this._clearNumericRefinements(e),facetsRefinements:f.clearRefinement(this.facetsRefinements,e,"conjunctiveFacet"),facetsExcludes:f.clearRefinement(this.facetsExcludes,e,"exclude"),disjunctiveFacetsRefinements:f.clearRefinement(this.disjunctiveFacetsRefinements,e,"disjunctiveFacet"),hierarchicalFacetsRefinements:f.clearRefinement(this.hierarchicalFacetsRefinements,e,"hierarchicalFacet")};return t.numericRefinements===this.numericRefinements&&t.facetsRefinements===this.facetsRefinements&&t.facetsExcludes===this.facetsExcludes&&t.disjunctiveFacetsRefinements===this.disjunctiveFacetsRefinements&&t.hierarchicalFacetsRefinements===this.hierarchicalFacetsRefinements?this:this.setQueryParameters(t)},clearTags:function(){return void 0===this.tagFilters&&0===this.tagRefinements.length?this:this.setQueryParameters({tagFilters:void 0,tagRefinements:[]})},setIndex:function(e){return e===this.index?this:this.setQueryParameters({index:e})},setQuery:function(e){return e===this.query?this:this.setQueryParameters({query:e})},setPage:function(e){return e===this.page?this:this.setQueryParameters({page:e})},setFacets:function(e){return this.setQueryParameters({facets:e})},setDisjunctiveFacets:function(e){return this.setQueryParameters({disjunctiveFacets:e})},setHitsPerPage:function(e){return this.hitsPerPage===e?this:this.setQueryParameters({hitsPerPage:e})},setTypoTolerance:function(e){return this.typoTolerance===e?this:this.setQueryParameters({typoTolerance:e})},addNumericRefinement:function(e,t,r){var n=u(r);if(this.isNumericRefined(e,t,n))return this;var i=a({},this.numericRefinements);return i[e]=a({},i[e]),i[e][t]?(i[e][t]=i[e][t].slice(),i[e][t].push(n)):i[e][t]=[n],this.setQueryParameters({numericRefinements:i})},getConjunctiveRefinements:function(e){return this.isConjunctiveFacet(e)&&this.facetsRefinements[e]||[]},getDisjunctiveRefinements:function(e){return this.isDisjunctiveFacet(e)&&this.disjunctiveFacetsRefinements[e]||[]},getHierarchicalRefinement:function(e){return this.hierarchicalFacetsRefinements[e]||[]},getExcludeRefinements:function(e){return this.isConjunctiveFacet(e)&&this.facetsExcludes[e]||[]},removeNumericRefinement:function(e,t,r){var n=r;return void 0!==n?this.isNumericRefined(e,t,n)?this.setQueryParameters({numericRefinements:this._clearNumericRefinements((function(r,i){return i===e&&r.op===t&&l(r.val,u(n))}))}):this:void 0!==t?this.isNumericRefined(e,t)?this.setQueryParameters({numericRefinements:this._clearNumericRefinements((function(r,n){return n===e&&r.op===t}))}):this:this.isNumericRefined(e)?this.setQueryParameters({numericRefinements:this._clearNumericRefinements((function(t,r){return r===e}))}):this},getNumericRefinements:function(e){return this.numericRefinements[e]||{}},getNumericRefinement:function(e,t){return this.numericRefinements[e]&&this.numericRefinements[e][t]},_clearNumericRefinements:function(e){if(void 0===e)return c(this.numericRefinements)?{}:this.numericRefinements;if("string"==typeof e)return o(this.numericRefinements,[e]);if("function"==typeof e){var t=!1,r=this.numericRefinements,n=Object.keys(r).reduce((function(n,i){var s=r[i],a={};return s=s||{},Object.keys(s).forEach((function(r){var n=s[r]||[],c=[];n.forEach((function(t){e({val:t,op:r},i,"numeric")||c.push(t)})),c.length!==n.length&&(t=!0),a[r]=c})),n[i]=a,n}),{});return t?n:this.numericRefinements}},addFacet:function(e){return this.isConjunctiveFacet(e)?this:this.setQueryParameters({facets:this.facets.concat([e])})},addDisjunctiveFacet:function(e){return this.isDisjunctiveFacet(e)?this:this.setQueryParameters({disjunctiveFacets:this.disjunctiveFacets.concat([e])})},addHierarchicalFacet:function(e){if(this.isHierarchicalFacet(e.name))throw new Error("Cannot declare two hierarchical facets with the same name: `"+e.name+"`");return this.setQueryParameters({hierarchicalFacets:this.hierarchicalFacets.concat([e])})},addFacetRefinement:function(e,t){if(!this.isConjunctiveFacet(e))throw new Error(e+" is not defined in the facets attribute of the helper configuration");return f.isRefined(this.facetsRefinements,e,t)?this:this.setQueryParameters({facetsRefinements:f.addRefinement(this.facetsRefinements,e,t)})},addExcludeRefinement:function(e,t){if(!this.isConjunctiveFacet(e))throw new Error(e+" is not defined in the facets attribute of the helper configuration");return f.isRefined(this.facetsExcludes,e,t)?this:this.setQueryParameters({facetsExcludes:f.addRefinement(this.facetsExcludes,e,t)})},addDisjunctiveFacetRefinement:function(e,t){if(!this.isDisjunctiveFacet(e))throw new Error(e+" is not defined in the disjunctiveFacets attribute of the helper configuration");return f.isRefined(this.disjunctiveFacetsRefinements,e,t)?this:this.setQueryParameters({disjunctiveFacetsRefinements:f.addRefinement(this.disjunctiveFacetsRefinements,e,t)})},addTagRefinement:function(e){if(this.isTagRefined(e))return this;var t={tagRefinements:this.tagRefinements.concat(e)};return this.setQueryParameters(t)},removeFacet:function(e){return this.isConjunctiveFacet(e)?this.clearRefinements(e).setQueryParameters({facets:this.facets.filter((function(t){return t!==e}))}):this},removeDisjunctiveFacet:function(e){return this.isDisjunctiveFacet(e)?this.clearRefinements(e).setQueryParameters({disjunctiveFacets:this.disjunctiveFacets.filter((function(t){return t!==e}))}):this},removeHierarchicalFacet:function(e){return this.isHierarchicalFacet(e)?this.clearRefinements(e).setQueryParameters({hierarchicalFacets:this.hierarchicalFacets.filter((function(t){return t.name!==e}))}):this},removeFacetRefinement:function(e,t){if(!this.isConjunctiveFacet(e))throw new Error(e+" is not defined in the facets attribute of the helper configuration");return f.isRefined(this.facetsRefinements,e,t)?this.setQueryParameters({facetsRefinements:f.removeRefinement(this.facetsRefinements,e,t)}):this},removeExcludeRefinement:function(e,t){if(!this.isConjunctiveFacet(e))throw new Error(e+" is not defined in the facets attribute of the helper configuration");return f.isRefined(this.facetsExcludes,e,t)?this.setQueryParameters({facetsExcludes:f.removeRefinement(this.facetsExcludes,e,t)}):this},removeDisjunctiveFacetRefinement:function(e,t){if(!this.isDisjunctiveFacet(e))throw new Error(e+" is not defined in the disjunctiveFacets attribute of the helper configuration");return f.isRefined(this.disjunctiveFacetsRefinements,e,t)?this.setQueryParameters({disjunctiveFacetsRefinements:f.removeRefinement(this.disjunctiveFacetsRefinements,e,t)}):this},removeTagRefinement:function(e){if(!this.isTagRefined(e))return this;var t={tagRefinements:this.tagRefinements.filter((function(t){return t!==e}))};return this.setQueryParameters(t)},toggleRefinement:function(e,t){return this.toggleFacetRefinement(e,t)},toggleFacetRefinement:function(e,t){if(this.isHierarchicalFacet(e))return this.toggleHierarchicalFacetRefinement(e,t);if(this.isConjunctiveFacet(e))return this.toggleConjunctiveFacetRefinement(e,t);if(this.isDisjunctiveFacet(e))return this.toggleDisjunctiveFacetRefinement(e,t);throw new Error("Cannot refine the undeclared facet "+e+"; it should be added to the helper options facets, disjunctiveFacets or hierarchicalFacets")},toggleConjunctiveFacetRefinement:function(e,t){if(!this.isConjunctiveFacet(e))throw new Error(e+" is not defined in the facets attribute of the helper configuration");return this.setQueryParameters({facetsRefinements:f.toggleRefinement(this.facetsRefinements,e,t)})},toggleExcludeFacetRefinement:function(e,t){if(!this.isConjunctiveFacet(e))throw new Error(e+" is not defined in the facets attribute of the helper configuration");return this.setQueryParameters({facetsExcludes:f.toggleRefinement(this.facetsExcludes,e,t)})},toggleDisjunctiveFacetRefinement:function(e,t){if(!this.isDisjunctiveFacet(e))throw new Error(e+" is not defined in the disjunctiveFacets attribute of the helper configuration");return this.setQueryParameters({disjunctiveFacetsRefinements:f.toggleRefinement(this.disjunctiveFacetsRefinements,e,t)})},toggleHierarchicalFacetRefinement:function(e,t){if(!this.isHierarchicalFacet(e))throw new Error(e+" is not defined in the hierarchicalFacets attribute of the helper configuration");var r=this._getHierarchicalFacetSeparator(this.getHierarchicalFacetByName(e)),i={};return void 0!==this.hierarchicalFacetsRefinements[e]&&this.hierarchicalFacetsRefinements[e].length>0&&(this.hierarchicalFacetsRefinements[e][0]===t||0===this.hierarchicalFacetsRefinements[e][0].indexOf(t+r))?-1===t.indexOf(r)?i[e]=[]:i[e]=[t.slice(0,t.lastIndexOf(r))]:i[e]=[t],this.setQueryParameters({hierarchicalFacetsRefinements:n({},i,this.hierarchicalFacetsRefinements)})},addHierarchicalFacetRefinement:function(e,t){if(this.isHierarchicalFacetRefined(e))throw new Error(e+" is already refined.");if(!this.isHierarchicalFacet(e))throw new Error(e+" is not defined in the hierarchicalFacets attribute of the helper configuration.");var r={};return r[e]=[t],this.setQueryParameters({hierarchicalFacetsRefinements:n({},r,this.hierarchicalFacetsRefinements)})},removeHierarchicalFacetRefinement:function(e){if(!this.isHierarchicalFacetRefined(e))return this;var t={};return t[e]=[],this.setQueryParameters({hierarchicalFacetsRefinements:n({},t,this.hierarchicalFacetsRefinements)})},toggleTagRefinement:function(e){return this.isTagRefined(e)?this.removeTagRefinement(e):this.addTagRefinement(e)},isDisjunctiveFacet:function(e){return this.disjunctiveFacets.indexOf(e)>-1},isHierarchicalFacet:function(e){return void 0!==this.getHierarchicalFacetByName(e)},isConjunctiveFacet:function(e){return this.facets.indexOf(e)>-1},isFacetRefined:function(e,t){return!!this.isConjunctiveFacet(e)&&f.isRefined(this.facetsRefinements,e,t)},isExcludeRefined:function(e,t){return!!this.isConjunctiveFacet(e)&&f.isRefined(this.facetsExcludes,e,t)},isDisjunctiveFacetRefined:function(e,t){return!!this.isDisjunctiveFacet(e)&&f.isRefined(this.disjunctiveFacetsRefinements,e,t)},isHierarchicalFacetRefined:function(e,t){if(!this.isHierarchicalFacet(e))return!1;var r=this.getHierarchicalRefinement(e);return t?-1!==r.indexOf(t):r.length>0},isNumericRefined:function(e,t,r){if(void 0===r&&void 0===t)return Boolean(this.numericRefinements[e]);var n=this.numericRefinements[e]&&void 0!==this.numericRefinements[e][t];if(void 0===r||!n)return n;var s,a,c=u(r),o=void 0!==(s=this.numericRefinements[e][t],a=c,i(s,(function(e){return l(e,a)})));return n&&o},isTagRefined:function(e){return-1!==this.tagRefinements.indexOf(e)},getRefinedDisjunctiveFacets:function(){var e=this,t=s(Object.keys(this.numericRefinements).filter((function(t){return Object.keys(e.numericRefinements[t]).length>0})),this.disjunctiveFacets);return Object.keys(this.disjunctiveFacetsRefinements).filter((function(t){return e.disjunctiveFacetsRefinements[t].length>0})).concat(t).concat(this.getRefinedHierarchicalFacets()).sort()},getRefinedHierarchicalFacets:function(){var e=this;return s(this.hierarchicalFacets.map((function(e){return e.name})),Object.keys(this.hierarchicalFacetsRefinements).filter((function(t){return e.hierarchicalFacetsRefinements[t].length>0}))).sort()},getUnrefinedDisjunctiveFacets:function(){var e=this.getRefinedDisjunctiveFacets();return this.disjunctiveFacets.filter((function(t){return-1===e.indexOf(t)}))},managedParameters:["index","facets","disjunctiveFacets","facetsRefinements","hierarchicalFacets","facetsExcludes","disjunctiveFacetsRefinements","numericRefinements","tagRefinements","hierarchicalFacetsRefinements"],getQueryParams:function(){var e=this.managedParameters,t={},r=this;return Object.keys(this).forEach((function(n){var i=r[n];-1===e.indexOf(n)&&void 0!==i&&(t[n]=i)})),t},setQueryParameter:function(e,t){if(this[e]===t)return this;var r={};return r[e]=t,this.setQueryParameters(r)},setQueryParameters:function(e){if(!e)return this;var t=m.validate(this,e);if(t)throw t;var r=this,n=m._parseNumbers(e),i=Object.keys(this).reduce((function(e,t){return e[t]=r[t],e}),{}),s=Object.keys(n).reduce((function(e,t){var r=void 0!==e[t],i=void 0!==n[t];return r&&!i?o(e,[t]):(i&&(e[t]=n[t]),e)}),i);return new this.constructor(s)},resetPage:function(){return void 0===this.page?this:this.setPage(0)},_getHierarchicalFacetSortBy:function(e){return e.sortBy||["isRefined:desc","name:asc"]},_getHierarchicalFacetSeparator:function(e){return e.separator||" > "},_getHierarchicalRootPath:function(e){return e.rootPath||null},_getHierarchicalShowParentLevel:function(e){return"boolean"!=typeof e.showParentLevel||e.showParentLevel},getHierarchicalFacetByName:function(e){return i(this.hierarchicalFacets,(function(t){return t.name===e}))},getHierarchicalFacetBreadcrumb:function(e){if(!this.isHierarchicalFacet(e))return[];var t=this.getHierarchicalRefinement(e)[0];if(!t)return[];var r=this._getHierarchicalFacetSeparator(this.getHierarchicalFacetByName(e));return t.split(r).map((function(e){return e.trim()}))},toString:function(){return JSON.stringify(this,null,2)}},e.exports=m},6185:(e,t,r)=>{"use strict";e.exports=function(e){return function(t,r){var n=e.hierarchicalFacets[r],u=e.hierarchicalFacetsRefinements[n.name]&&e.hierarchicalFacetsRefinements[n.name][0]||"",h=e._getHierarchicalFacetSeparator(n),f=e._getHierarchicalRootPath(n),l=e._getHierarchicalShowParentLevel(n),m=s(e._getHierarchicalFacetSortBy(n)),d=t.every((function(e){return e.exhaustive})),p=function(e,t,r,n,s){return function(u,h,f){var l=u;if(f>0){var m=0;for(l=u;m{"use strict";var n=r(4317),i=r(8814),s=r(1173),a=r(5241),c=r(5829),o=r(3905),u=r(3744),h=r(1489),f=s.escapeFacetValue,l=s.unescapeFacetValue,m=r(6185);function d(e){var t={};return e.forEach((function(e,r){t[e]=r})),t}function p(e,t,r){t&&t[r]&&(e.stats=t[r])}function g(e,t,r){var s=t[0]||{};this._rawResults=t;var o=this;Object.keys(s).forEach((function(e){o[e]=s[e]}));var h=u({persistHierarchicalRootCount:!1},r);Object.keys(h).forEach((function(e){o[e]=h[e]})),this.processingTimeMS=t.reduce((function(e,t){return void 0===t.processingTimeMS?e:e+t.processingTimeMS}),0),this.disjunctiveFacets=[],this.hierarchicalFacets=e.hierarchicalFacets.map((function(){return[]})),this.facets=[];var f=e.getRefinedDisjunctiveFacets(),g=d(e.facets),v=d(e.disjunctiveFacets),y=1,R=s.facets||{};Object.keys(R).forEach((function(t){var r,n,i=R[t],u=(r=e.hierarchicalFacets,n=t,a(r,(function(e){return(e.attributes||[]).indexOf(n)>-1})));if(u){var h=u.attributes.indexOf(t),f=c(e.hierarchicalFacets,(function(e){return e.name===u.name}));o.hierarchicalFacets[f][h]={attribute:t,data:i,exhaustive:s.exhaustiveFacetsCount}}else{var l,m=-1!==e.disjunctiveFacets.indexOf(t),d=-1!==e.facets.indexOf(t);m&&(l=v[t],o.disjunctiveFacets[l]={name:t,data:i,exhaustive:s.exhaustiveFacetsCount},p(o.disjunctiveFacets[l],s.facets_stats,t)),d&&(l=g[t],o.facets[l]={name:t,data:i,exhaustive:s.exhaustiveFacetsCount},p(o.facets[l],s.facets_stats,t))}})),this.hierarchicalFacets=n(this.hierarchicalFacets),f.forEach((function(r){var n=t[y],a=n&&n.facets?n.facets:{},h=e.getHierarchicalFacetByName(r);Object.keys(a).forEach((function(t){var r,f=a[t];if(h){r=c(e.hierarchicalFacets,(function(e){return e.name===h.name}));var m=c(o.hierarchicalFacets[r],(function(e){return e.attribute===t}));if(-1===m)return;o.hierarchicalFacets[r][m].data=u({},o.hierarchicalFacets[r][m].data,f)}else{r=v[t];var d=s.facets&&s.facets[t]||{};o.disjunctiveFacets[r]={name:t,data:i({},f,d),exhaustive:n.exhaustiveFacetsCount},p(o.disjunctiveFacets[r],n.facets_stats,t),e.disjunctiveFacetsRefinements[t]&&e.disjunctiveFacetsRefinements[t].forEach((function(n){!o.disjunctiveFacets[r].data[n]&&e.disjunctiveFacetsRefinements[t].indexOf(l(n))>-1&&(o.disjunctiveFacets[r].data[n]=0)}))}})),y++})),e.getRefinedHierarchicalFacets().forEach((function(r){var n=e.getHierarchicalFacetByName(r),s=e._getHierarchicalFacetSeparator(n),a=e.getHierarchicalRefinement(r);0===a.length||a[0].split(s).length<2||t.slice(y).forEach((function(t){var r=t&&t.facets?t.facets:{};Object.keys(r).forEach((function(t){var u=r[t],h=c(e.hierarchicalFacets,(function(e){return e.name===n.name})),f=c(o.hierarchicalFacets[h],(function(e){return e.attribute===t}));if(-1!==f){var l={};if(a.length>0&&!o.persistHierarchicalRootCount){var m=a[0].split(s)[0];l[m]=o.hierarchicalFacets[h][f].data[m]}o.hierarchicalFacets[h][f].data=i(l,u,o.hierarchicalFacets[h][f].data)}})),y++}))})),Object.keys(e.facetsExcludes).forEach((function(t){var r=e.facetsExcludes[t],n=g[t];o.facets[n]={name:t,data:R[t],exhaustive:s.exhaustiveFacetsCount},r.forEach((function(e){o.facets[n]=o.facets[n]||{name:t},o.facets[n].data=o.facets[n].data||{},o.facets[n].data[e]=0}))})),this.hierarchicalFacets=this.hierarchicalFacets.map(m(e)),this.facets=n(this.facets),this.disjunctiveFacets=n(this.disjunctiveFacets),this._state=e}function v(e,t){function r(e){return e.name===t}if(e._state.isConjunctiveFacet(t)){var n=a(e.facets,r);return n?Object.keys(n.data).map((function(r){var i=f(r);return{name:r,escapedValue:i,count:n.data[r],isRefined:e._state.isFacetRefined(t,i),isExcluded:e._state.isExcludeRefined(t,r)}})):[]}if(e._state.isDisjunctiveFacet(t)){var i=a(e.disjunctiveFacets,r);return i?Object.keys(i.data).map((function(r){var n=f(r);return{name:r,escapedValue:n,count:i.data[r],isRefined:e._state.isDisjunctiveFacetRefined(t,n)}})):[]}if(e._state.isHierarchicalFacet(t)){var s=a(e.hierarchicalFacets,r);if(!s)return s;var c=e._state.getHierarchicalFacetByName(t),o=e._state._getHierarchicalFacetSeparator(c),u=l(e._state.getHierarchicalRefinement(t)[0]||"");0===u.indexOf(c.rootPath)&&(u=u.replace(c.rootPath+o,""));var h=u.split(o);return h.unshift(t),y(s,h,0),s}}function y(e,t,r){e.isRefined=e.name===(t[r]&&t[r].trim()),e.data&&e.data.forEach((function(e){y(e,t,r+1)}))}function R(e,t,r,n){if(n=n||0,Array.isArray(t))return e(t,r[n]);if(!t.data||0===t.data.length)return t;var s=t.data.map((function(t){return R(e,t,r,n+1)})),a=e(s,r[n]);return i({data:a},t)}function F(e,t){var r=a(e,(function(e){return e.name===t}));return r&&r.stats}function b(e,t,r,n,i){var s=a(i,(function(e){return e.name===r})),c=s&&s.data&&s.data[n]?s.data[n]:0,o=s&&s.exhaustive||!1;return{type:t,attributeName:r,name:n,count:c,exhaustive:o}}g.prototype.getFacetByName=function(e){function t(t){return t.name===e}return a(this.facets,t)||a(this.disjunctiveFacets,t)||a(this.hierarchicalFacets,t)},g.DEFAULT_SORT=["isRefined:desc","count:desc","name:asc"],g.prototype.getFacetValues=function(e,t){var r=v(this,e);if(r){var n,s=i({},t,{sortBy:g.DEFAULT_SORT,facetOrdering:!(t&&t.sortBy)}),a=this;if(Array.isArray(r))n=[e];else n=a._state.getHierarchicalFacetByName(r.name).attributes;return R((function(e,t){if(s.facetOrdering){var r=function(e,t){return e.renderingContent&&e.renderingContent.facetOrdering&&e.renderingContent.facetOrdering.values&&e.renderingContent.facetOrdering.values[t]}(a,t);if(r)return function(e,t){var r=[],n=[],i=t.hide||[],s=(t.order||[]).reduce((function(e,t,r){return e[t]=r,e}),{});e.forEach((function(e){var t=e.path||e.name,a=i.indexOf(t)>-1;a||void 0===s[t]?a||n.push(e):r[s[t]]=e})),r=r.filter((function(e){return e}));var a,c=t.sortRemainingBy;return"hidden"===c?r:(a="alpha"===c?[["path","name"],["asc","asc"]]:[["count"],["desc"]],r.concat(h(n,a[0],a[1])))}(e,r)}if(Array.isArray(s.sortBy)){var n=o(s.sortBy,g.DEFAULT_SORT);return h(e,n[0],n[1])}if("function"==typeof s.sortBy)return function(e,t){return t.sort(e)}(s.sortBy,e);throw new Error("options.sortBy is optional but if defined it must be either an array of string (predicates) or a sorting function")}),r,n)}},g.prototype.getFacetStats=function(e){return this._state.isConjunctiveFacet(e)?F(this.facets,e):this._state.isDisjunctiveFacet(e)?F(this.disjunctiveFacets,e):void 0},g.prototype.getRefinements=function(){var e=this._state,t=this,r=[];return Object.keys(e.facetsRefinements).forEach((function(n){e.facetsRefinements[n].forEach((function(i){r.push(b(e,"facet",n,i,t.facets))}))})),Object.keys(e.facetsExcludes).forEach((function(n){e.facetsExcludes[n].forEach((function(i){r.push(b(e,"exclude",n,i,t.facets))}))})),Object.keys(e.disjunctiveFacetsRefinements).forEach((function(n){e.disjunctiveFacetsRefinements[n].forEach((function(i){r.push(b(e,"disjunctive",n,i,t.disjunctiveFacets))}))})),Object.keys(e.hierarchicalFacetsRefinements).forEach((function(n){e.hierarchicalFacetsRefinements[n].forEach((function(i){r.push(function(e,t,r,n){var i=e.getHierarchicalFacetByName(t),s=e._getHierarchicalFacetSeparator(i),c=r.split(s),o=a(n,(function(e){return e.name===t})),u=c.reduce((function(e,t){var r=e&&a(e.data,(function(e){return e.name===t}));return void 0!==r?r:e}),o),h=u&&u.count||0,f=u&&u.exhaustive||!1,l=u&&u.path||"";return{type:"hierarchical",attributeName:t,name:l,count:h,exhaustive:f}}(e,n,i,t.hierarchicalFacets))}))})),Object.keys(e.numericRefinements).forEach((function(t){var n=e.numericRefinements[t];Object.keys(n).forEach((function(e){n[e].forEach((function(n){r.push({type:"numeric",attributeName:t,name:n,numericValue:n,operator:e})}))}))})),e.tagRefinements.forEach((function(e){r.push({type:"tag",attributeName:"_tags",name:e})})),r},e.exports=g},2099:(e,t,r)=>{"use strict";var n=r(4529),i=r(6484),s=r(1173).escapeFacetValue,a=r(3966),c=r(3744),o=r(7333),u=r(5055),h=r(1903),f=r(4583),l=r(2423),m=r(6579),d=r(5571),p=r(5821),g=r(6674);function v(e,t,r,n){"function"==typeof e.addAlgoliaAgent&&e.addAlgoliaAgent("JS Helper ("+g+")"),this.setClient(e);var i=r||{};i.index=t,this.state=m.make(i),this.recommendState=new h({params:i.recommendState}),this.lastResults=null,this.lastRecommendResults=null,this._queryId=0,this._recommendQueryId=0,this._lastQueryIdReceived=-1,this._lastRecommendQueryIdReceived=-1,this.derivedHelpers=[],this._currentNbQueries=0,this._currentNbRecommendQueries=0,this._searchResultsOptions=n,this._recommendCache={}}function y(e){if(e<0)throw new Error("Page requested below 0.");return this._change({state:this.state.setPage(e),isPageReset:!1}),this}function R(){return this.state.page}a(v,n),v.prototype.search=function(){return this._search({onlyWithDerivedHelpers:!1}),this},v.prototype.searchOnlyWithDerivedHelpers=function(){return this._search({onlyWithDerivedHelpers:!0}),this},v.prototype.recommend=function(){return this._recommend(),this},v.prototype.getQuery=function(){var e=this.state;return l._getHitsSearchParams(e)},v.prototype.searchOnce=function(e,t){var r=e?this.state.setQueryParameters(e):this.state,n=l._getQueries(r.index,r),i=this;if(this._currentNbQueries++,this.emit("searchOnce",{state:r}),!t)return this.client.search(n).then((function(e){return i._currentNbQueries--,0===i._currentNbQueries&&i.emit("searchQueueEmpty"),{content:new d(r,e.results),state:r,_originalResponse:e}}),(function(e){throw i._currentNbQueries--,0===i._currentNbQueries&&i.emit("searchQueueEmpty"),e}));this.client.search(n).then((function(e){i._currentNbQueries--,0===i._currentNbQueries&&i.emit("searchQueueEmpty"),t(null,new d(r,e.results),r)})).catch((function(e){i._currentNbQueries--,0===i._currentNbQueries&&i.emit("searchQueueEmpty"),t(e,null,r)}))},v.prototype.findAnswers=function(e){console.warn("[algoliasearch-helper] answers is no longer supported");var t=this.state,r=this.derivedHelpers[0];if(!r)return Promise.resolve([]);var n=r.getModifiedState(t),i=c({attributesForPrediction:e.attributesForPrediction,nbHits:e.nbHits},{params:u(l._getHitsSearchParams(n),["attributesToSnippet","hitsPerPage","restrictSearchableAttributes","snippetEllipsisText"])}),s="search for answers was called, but this client does not have a function client.initIndex(index).findAnswers";if("function"!=typeof this.client.initIndex)throw new Error(s);var a=this.client.initIndex(n.index);if("function"!=typeof a.findAnswers)throw new Error(s);return a.findAnswers(n.query,e.queryLanguages,i)},v.prototype.searchForFacetValues=function(e,t,r,n){var i="function"==typeof this.client.searchForFacetValues&&"function"!=typeof this.client.searchForFacets,a="function"==typeof this.client.initIndex;if(!i&&!a&&"function"!=typeof this.client.search)throw new Error("search for facet values (searchable) was called, but this client does not have a function client.searchForFacetValues or client.initIndex(index).searchForFacetValues");var c=this.state.setQueryParameters(n||{}),o=c.isDisjunctiveFacet(e),u=l.getSearchForFacetQuery(e,t,r,c);this._currentNbQueries++;var h,f=this;return i?h=this.client.searchForFacetValues([{indexName:c.index,params:u}]):a?h=this.client.initIndex(c.index).searchForFacetValues(u):(delete u.facetName,h=this.client.search([{type:"facet",facet:e,indexName:c.index,params:u}]).then((function(e){return e.results[0]}))),this.emit("searchForFacetValues",{state:c,facet:e,query:t}),h.then((function(t){return f._currentNbQueries--,0===f._currentNbQueries&&f.emit("searchQueueEmpty"),(t=Array.isArray(t)?t[0]:t).facetHits.forEach((function(t){t.escapedValue=s(t.value),t.isRefined=o?c.isDisjunctiveFacetRefined(e,t.escapedValue):c.isFacetRefined(e,t.escapedValue)})),t}),(function(e){throw f._currentNbQueries--,0===f._currentNbQueries&&f.emit("searchQueueEmpty"),e}))},v.prototype.setQuery=function(e){return this._change({state:this.state.resetPage().setQuery(e),isPageReset:!0}),this},v.prototype.clearRefinements=function(e){return this._change({state:this.state.resetPage().clearRefinements(e),isPageReset:!0}),this},v.prototype.clearTags=function(){return this._change({state:this.state.resetPage().clearTags(),isPageReset:!0}),this},v.prototype.addDisjunctiveFacetRefinement=function(e,t){return this._change({state:this.state.resetPage().addDisjunctiveFacetRefinement(e,t),isPageReset:!0}),this},v.prototype.addDisjunctiveRefine=function(){return this.addDisjunctiveFacetRefinement.apply(this,arguments)},v.prototype.addHierarchicalFacetRefinement=function(e,t){return this._change({state:this.state.resetPage().addHierarchicalFacetRefinement(e,t),isPageReset:!0}),this},v.prototype.addNumericRefinement=function(e,t,r){return this._change({state:this.state.resetPage().addNumericRefinement(e,t,r),isPageReset:!0}),this},v.prototype.addFacetRefinement=function(e,t){return this._change({state:this.state.resetPage().addFacetRefinement(e,t),isPageReset:!0}),this},v.prototype.addRefine=function(){return this.addFacetRefinement.apply(this,arguments)},v.prototype.addFacetExclusion=function(e,t){return this._change({state:this.state.resetPage().addExcludeRefinement(e,t),isPageReset:!0}),this},v.prototype.addExclude=function(){return this.addFacetExclusion.apply(this,arguments)},v.prototype.addTag=function(e){return this._change({state:this.state.resetPage().addTagRefinement(e),isPageReset:!0}),this},v.prototype.addFrequentlyBoughtTogether=function(e){return this._recommendChange({state:this.recommendState.addFrequentlyBoughtTogether(e)}),this},v.prototype.addRelatedProducts=function(e){return this._recommendChange({state:this.recommendState.addRelatedProducts(e)}),this},v.prototype.addTrendingItems=function(e){return this._recommendChange({state:this.recommendState.addTrendingItems(e)}),this},v.prototype.addTrendingFacets=function(e){return this._recommendChange({state:this.recommendState.addTrendingFacets(e)}),this},v.prototype.addLookingSimilar=function(e){return this._recommendChange({state:this.recommendState.addLookingSimilar(e)}),this},v.prototype.removeNumericRefinement=function(e,t,r){return this._change({state:this.state.resetPage().removeNumericRefinement(e,t,r),isPageReset:!0}),this},v.prototype.removeDisjunctiveFacetRefinement=function(e,t){return this._change({state:this.state.resetPage().removeDisjunctiveFacetRefinement(e,t),isPageReset:!0}),this},v.prototype.removeDisjunctiveRefine=function(){return this.removeDisjunctiveFacetRefinement.apply(this,arguments)},v.prototype.removeHierarchicalFacetRefinement=function(e){return this._change({state:this.state.resetPage().removeHierarchicalFacetRefinement(e),isPageReset:!0}),this},v.prototype.removeFacetRefinement=function(e,t){return this._change({state:this.state.resetPage().removeFacetRefinement(e,t),isPageReset:!0}),this},v.prototype.removeRefine=function(){return this.removeFacetRefinement.apply(this,arguments)},v.prototype.removeFacetExclusion=function(e,t){return this._change({state:this.state.resetPage().removeExcludeRefinement(e,t),isPageReset:!0}),this},v.prototype.removeExclude=function(){return this.removeFacetExclusion.apply(this,arguments)},v.prototype.removeTag=function(e){return this._change({state:this.state.resetPage().removeTagRefinement(e),isPageReset:!0}),this},v.prototype.removeFrequentlyBoughtTogether=function(e){return this._recommendChange({state:this.recommendState.removeParams(e)}),this},v.prototype.removeRelatedProducts=function(e){return this._recommendChange({state:this.recommendState.removeParams(e)}),this},v.prototype.removeTrendingItems=function(e){return this._recommendChange({state:this.recommendState.removeParams(e)}),this},v.prototype.removeTrendingFacets=function(e){return this._recommendChange({state:this.recommendState.removeParams(e)}),this},v.prototype.removeLookingSimilar=function(e){return this._recommendChange({state:this.recommendState.removeParams(e)}),this},v.prototype.toggleFacetExclusion=function(e,t){return this._change({state:this.state.resetPage().toggleExcludeFacetRefinement(e,t),isPageReset:!0}),this},v.prototype.toggleExclude=function(){return this.toggleFacetExclusion.apply(this,arguments)},v.prototype.toggleRefinement=function(e,t){return this.toggleFacetRefinement(e,t)},v.prototype.toggleFacetRefinement=function(e,t){return this._change({state:this.state.resetPage().toggleFacetRefinement(e,t),isPageReset:!0}),this},v.prototype.toggleRefine=function(){return this.toggleFacetRefinement.apply(this,arguments)},v.prototype.toggleTag=function(e){return this._change({state:this.state.resetPage().toggleTagRefinement(e),isPageReset:!0}),this},v.prototype.nextPage=function(){var e=this.state.page||0;return this.setPage(e+1)},v.prototype.previousPage=function(){var e=this.state.page||0;return this.setPage(e-1)},v.prototype.setCurrentPage=y,v.prototype.setPage=y,v.prototype.setIndex=function(e){return this._change({state:this.state.resetPage().setIndex(e),isPageReset:!0}),this},v.prototype.setQueryParameter=function(e,t){return this._change({state:this.state.resetPage().setQueryParameter(e,t),isPageReset:!0}),this},v.prototype.setState=function(e){return this._change({state:m.make(e),isPageReset:!1}),this},v.prototype.overrideStateWithoutTriggeringChangeEvent=function(e){return this.state=new m(e),this},v.prototype.hasRefinements=function(e){return!!o(this.state.getNumericRefinements(e))||(this.state.isConjunctiveFacet(e)?this.state.isFacetRefined(e):this.state.isDisjunctiveFacet(e)?this.state.isDisjunctiveFacetRefined(e):!!this.state.isHierarchicalFacet(e)&&this.state.isHierarchicalFacetRefined(e))},v.prototype.isExcluded=function(e,t){return this.state.isExcludeRefined(e,t)},v.prototype.isDisjunctiveRefined=function(e,t){return this.state.isDisjunctiveFacetRefined(e,t)},v.prototype.hasTag=function(e){return this.state.isTagRefined(e)},v.prototype.isTagRefined=function(){return this.hasTagRefinements.apply(this,arguments)},v.prototype.getIndex=function(){return this.state.index},v.prototype.getCurrentPage=R,v.prototype.getPage=R,v.prototype.getTags=function(){return this.state.tagRefinements},v.prototype.getRefinements=function(e){var t=[];if(this.state.isConjunctiveFacet(e))this.state.getConjunctiveRefinements(e).forEach((function(e){t.push({value:e,type:"conjunctive"})})),this.state.getExcludeRefinements(e).forEach((function(e){t.push({value:e,type:"exclude"})}));else if(this.state.isDisjunctiveFacet(e)){this.state.getDisjunctiveRefinements(e).forEach((function(e){t.push({value:e,type:"disjunctive"})}))}var r=this.state.getNumericRefinements(e);return Object.keys(r).forEach((function(e){var n=r[e];t.push({value:n,operator:e,type:"numeric"})})),t},v.prototype.getNumericRefinement=function(e,t){return this.state.getNumericRefinement(e,t)},v.prototype.getHierarchicalFacetBreadcrumb=function(e){return this.state.getHierarchicalFacetBreadcrumb(e)},v.prototype._search=function(e){var t=this.state,r=[],n=[];e.onlyWithDerivedHelpers||(n=l._getQueries(t.index,t),r.push({state:t,queriesCount:n.length,helper:this}),this.emit("search",{state:t,results:this.lastResults}));var i=this.derivedHelpers.map((function(e){var n=e.getModifiedState(t),i=n.index?l._getQueries(n.index,n):[];return r.push({state:n,queriesCount:i.length,helper:e}),e.emit("search",{state:n,results:e.lastResults}),i})),s=Array.prototype.concat.apply(n,i),a=this._queryId++;if(this._currentNbQueries++,!s.length)return Promise.resolve({results:[]}).then(this._dispatchAlgoliaResponse.bind(this,r,a));try{this.client.search(s).then(this._dispatchAlgoliaResponse.bind(this,r,a)).catch(this._dispatchAlgoliaError.bind(this,a))}catch(c){this.emit("error",{error:c})}},v.prototype._recommend=function(){var e=this.state,t=this.recommendState,r=this.getIndex(),n=[{state:t,index:r,helper:this}],i=t.params.map((function(e){return e.$$id}));this.emit("fetch",{recommend:{state:t,results:this.lastRecommendResults}});var s=this._recommendCache,a=this.derivedHelpers.map((function(t){var r=t.getModifiedState(e).index;if(!r)return[];var a=t.getModifiedRecommendState(new h);return n.push({state:a,index:r,helper:t}),i=Array.prototype.concat.apply(i,a.params.map((function(e){return e.$$id}))),t.emit("fetch",{recommend:{state:a,results:t.lastRecommendResults}}),a._buildQueries(r,s)})),c=Array.prototype.concat.apply(this.recommendState._buildQueries(r,s),a);if(0!==c.length)if(c.length>0&&void 0===this.client.getRecommendations)console.warn("Please update algoliasearch/lite to the latest version in order to use recommend widgets.");else{var o=this._recommendQueryId++;this._currentNbRecommendQueries++;try{this.client.getRecommendations(c).then(this._dispatchRecommendResponse.bind(this,o,n,i)).catch(this._dispatchRecommendError.bind(this,o))}catch(u){this.emit("error",{error:u})}}},v.prototype._dispatchAlgoliaResponse=function(e,t,r){var n=this;if(!(t0},v.prototype._change=function(e){var t=e.state,r=e.isPageReset;t!==this.state&&(this.state=t,this.emit("change",{state:this.state,results:this.lastResults,isPageReset:r}))},v.prototype._recommendChange=function(e){var t=e.state;t!==this.recommendState&&(this.recommendState=t,this.emit("recommend:change",{search:{results:this.lastResults,state:this.state},recommend:{results:this.lastRecommendResults,state:this.recommendState}}))},v.prototype.clearCache=function(){return this.client.clearCache&&this.client.clearCache(),this},v.prototype.setClient=function(e){return this.client===e||("function"==typeof e.addAlgoliaAgent&&e.addAlgoliaAgent("JS Helper ("+g+")"),this.client=e),this},v.prototype.getClient=function(){return this.client},v.prototype.derive=function(e,t){var r=new i(this,e,t);return this.derivedHelpers.push(r),r},v.prototype.detachDerivedHelper=function(e){var t=this.derivedHelpers.indexOf(e);if(-1===t)throw new Error("Derived helper already detached");this.derivedHelpers.splice(t,1)},v.prototype.hasPendingRequests=function(){return this._currentNbQueries>0},e.exports=v},4317:e=>{"use strict";e.exports=function(e){return Array.isArray(e)?e.filter(Boolean):[]}},8814:e=>{"use strict";e.exports=function(){return Array.prototype.slice.call(arguments).reduceRight((function(e,t){return Object.keys(Object(t)).forEach((function(r){void 0!==t[r]&&(void 0!==e[r]&&delete e[r],e[r]=t[r])})),e}),{})}},1173:e=>{"use strict";e.exports={escapeFacetValue:function(e){return"string"!=typeof e?e:String(e).replace(/^-/,"\\-")},unescapeFacetValue:function(e){return"string"!=typeof e?e:e.replace(/^\\-/,"-")}}},5241:e=>{"use strict";e.exports=function(e,t){if(Array.isArray(e))for(var r=0;r{"use strict";e.exports=function(e,t){if(!Array.isArray(e))return-1;for(var r=0;r{e.exports=function(e){return e.reduce((function(e,t){return e.concat(t)}),[])}},3905:(e,t,r)=>{"use strict";var n=r(5241);e.exports=function(e,t){var r=(t||[]).map((function(e){return e.split(":")}));return e.reduce((function(e,t){var i=t.split(":"),s=n(r,(function(e){return e[0]===i[0]}));return i.length>1||!s?(e[0].push(i[0]),e[1].push(i[1]),e):(e[0].push(s[0]),e[1].push(s[1]),e)}),[[],[]])}},3966:e=>{"use strict";e.exports=function(e,t){e.prototype=Object.create(t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}})}},6739:e=>{"use strict";e.exports=function(e,t){return e.filter((function(r,n){return t.indexOf(r)>-1&&e.indexOf(r)===n}))}},3744:e=>{"use strict";function t(e){return"function"==typeof e||Array.isArray(e)||"[object Object]"===Object.prototype.toString.call(e)}function r(e,n){if(e===n)return e;for(var i in n)if(Object.prototype.hasOwnProperty.call(n,i)&&"__proto__"!==i&&"constructor"!==i){var s=n[i],a=e[i];void 0!==a&&void 0===s||(t(a)&&t(s)?e[i]=r(a,s):e[i]="object"==typeof(c=s)&&null!==c?r(Array.isArray(c)?[]:{},c):c)}var c;return e}e.exports=function(e){t(e)||(e={});for(var n=1,i=arguments.length;n{"use strict";e.exports=function(e){return e&&Object.keys(e).length>0}},5055:e=>{"use strict";e.exports=function(e,t){if(null===e)return{};var r,n,i={},s=Object.keys(e);for(n=0;n=0||(i[r]=e[r]);return i}},1489:e=>{"use strict";function t(e,t){if(e!==t){var r=void 0!==e,n=null===e,i=void 0!==t,s=null===t;if(!s&&e>t||n&&i||!r)return 1;if(!n&&e=n.length?s:"desc"===n[i]?-s:s}return e.index-r.index})),i.map((function(e){return e.value}))}},3467:e=>{"use strict";e.exports=function e(t){if("number"==typeof t)return t;if("string"==typeof t)return parseFloat(t);if(Array.isArray(t))return t.map(e);throw new Error("The value should be a number, a parsable string or an array of those.")}},2423:(e,t,r)=>{"use strict";var n=r(3744);function i(e){return Object.keys(e).sort().reduce((function(t,r){return t[r]=e[r],t}),{})}var s={_getQueries:function(e,t){var r=[];return r.push({indexName:e,params:s._getHitsSearchParams(t)}),t.getRefinedDisjunctiveFacets().forEach((function(n){r.push({indexName:e,params:s._getDisjunctiveFacetSearchParams(t,n)})})),t.getRefinedHierarchicalFacets().forEach((function(n){var i=t.getHierarchicalFacetByName(n),a=t.getHierarchicalRefinement(n),c=t._getHierarchicalFacetSeparator(i);if(a.length>0&&a[0].split(c).length>1){var o=a[0].split(c).slice(0,-1).reduce((function(e,t,r){return e.concat({attribute:i.attributes[r],value:0===r?t:[e[e.length-1].value,t].join(c)})}),[]);o.forEach((function(n,a){var c=s._getDisjunctiveFacetSearchParams(t,n.attribute,0===a);function u(e){return i.attributes.some((function(t){return t===e.split(":")[0]}))}var h=(c.facetFilters||[]).reduce((function(e,t){if(Array.isArray(t)){var r=t.filter((function(e){return!u(e)}));r.length>0&&e.push(r)}return"string"!=typeof t||u(t)||e.push(t),e}),[]),f=o[a-1];a>0?c.facetFilters=h.concat(f.attribute+":"+f.value):h.length>0?c.facetFilters=h:delete c.facetFilters,r.push({indexName:e,params:c})}))}})),r},_getHitsSearchParams:function(e){var t=e.facets.concat(e.disjunctiveFacets).concat(s._getHitsHierarchicalFacetsAttributes(e)).sort(),r=s._getFacetFilters(e),a=s._getNumericFilters(e),c=s._getTagFilters(e),o={};return t.length>0&&(o.facets=t.indexOf("*")>-1?["*"]:t),c.length>0&&(o.tagFilters=c),r.length>0&&(o.facetFilters=r),a.length>0&&(o.numericFilters=a),i(n({},e.getQueryParams(),o))},_getDisjunctiveFacetSearchParams:function(e,t,r){var a=s._getFacetFilters(e,t,r),c=s._getNumericFilters(e,t),o=s._getTagFilters(e),u={hitsPerPage:0,page:0,analytics:!1,clickAnalytics:!1};o.length>0&&(u.tagFilters=o);var h=e.getHierarchicalFacetByName(t);return u.facets=h?s._getDisjunctiveHierarchicalFacetAttribute(e,h,r):t,c.length>0&&(u.numericFilters=c),a.length>0&&(u.facetFilters=a),i(n({},e.getQueryParams(),u))},_getNumericFilters:function(e,t){if(e.numericFilters)return e.numericFilters;var r=[];return Object.keys(e.numericRefinements).forEach((function(n){var i=e.numericRefinements[n]||{};Object.keys(i).forEach((function(e){var s=i[e]||[];t!==n&&s.forEach((function(t){if(Array.isArray(t)){var i=t.map((function(t){return n+e+t}));r.push(i)}else r.push(n+e+t)}))}))})),r},_getTagFilters:function(e){return e.tagFilters?e.tagFilters:e.tagRefinements.join(",")},_getFacetFilters:function(e,t,r){var n=[],i=e.facetsRefinements||{};Object.keys(i).sort().forEach((function(e){(i[e]||[]).slice().sort().forEach((function(t){n.push(e+":"+t)}))}));var s=e.facetsExcludes||{};Object.keys(s).sort().forEach((function(e){(s[e]||[]).sort().forEach((function(t){n.push(e+":-"+t)}))}));var a=e.disjunctiveFacetsRefinements||{};Object.keys(a).sort().forEach((function(e){var r=a[e]||[];if(e!==t&&r&&0!==r.length){var i=[];r.slice().sort().forEach((function(t){i.push(e+":"+t)})),n.push(i)}}));var c=e.hierarchicalFacetsRefinements||{};return Object.keys(c).sort().forEach((function(i){var s=(c[i]||[])[0];if(void 0!==s){var a,o,u=e.getHierarchicalFacetByName(i),h=e._getHierarchicalFacetSeparator(u),f=e._getHierarchicalRootPath(u);if(t===i){if(-1===s.indexOf(h)||!f&&!0===r||f&&f.split(h).length===s.split(h).length)return;f?(o=f.split(h).length-1,s=f):(o=s.split(h).length-2,s=s.slice(0,s.lastIndexOf(h))),a=u.attributes[o]}else o=s.split(h).length-1,a=u.attributes[o];a&&n.push([a+":"+s])}})),n},_getHitsHierarchicalFacetsAttributes:function(e){return e.hierarchicalFacets.reduce((function(t,r){var n=e.getHierarchicalRefinement(r.name)[0];if(!n)return t.push(r.attributes[0]),t;var i=e._getHierarchicalFacetSeparator(r),s=n.split(i).length,a=r.attributes.slice(0,s+1);return t.concat(a)}),[])},_getDisjunctiveHierarchicalFacetAttribute:function(e,t,r){var n=e._getHierarchicalFacetSeparator(t);if(!0===r){var i=e._getHierarchicalRootPath(t),s=0;return i&&(s=i.split(n).length),[t.attributes[s]]}var a=(e.getHierarchicalRefinement(t.name)[0]||"").split(n).length-1;return t.attributes.slice(0,a+1)},getSearchForFacetQuery:function(e,t,r,a){var c=a.isDisjunctiveFacet(e)?a.clearRefinements(e):a,o={facetQuery:t,facetName:e};return"number"==typeof r&&(o.maxFacetHits=r),i(n({},s._getHitsSearchParams(c),o))}};e.exports=s},9592:e=>{"use strict";e.exports=function(e){return null!==e&&/^[a-zA-Z0-9_-]{1,64}$/.test(e)}},5821:(e,t,r)=>{"use strict";var n=r(5241),i=r(5897);e.exports=function(e){var t={};return e.forEach((function(e){e.forEach((function(e,r){t[e.objectID]?t[e.objectID]={indexSum:t[e.objectID].indexSum+r,count:t[e.objectID].count+1}:t[e.objectID]={indexSum:r,count:1}}))})),function(e,t){var r=[];return Object.keys(e).forEach((function(n){e[n].count<2&&(e[n].indexSum+=100),r.push({objectID:n,avgOfIndices:e[n].indexSum/t})})),r.sort((function(e,t){return e.avgOfIndices>t.avgOfIndices?1:-1}))}(t,e.length).reduce((function(t,r){var s=n(i(e),(function(e){return e.objectID===r.objectID}));return s?t.concat(s):t}),[])}},6674:e=>{"use strict";e.exports="3.22.5"},4966:function(e){e.exports=function(){"use strict";function e(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function t(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function r(r){for(var n=1;n=0||(i[r]=e[r]);return i}(e,t);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(e);for(n=0;n=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(i[r]=e[r])}return i}function i(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if(Symbol.iterator in Object(e)||"[object Arguments]"===Object.prototype.toString.call(e)){var r=[],n=!0,i=!1,s=void 0;try{for(var a,c=e[Symbol.iterator]();!(n=(a=c.next()).done)&&(r.push(a.value),!t||r.length!==t);n=!0);}catch(e){i=!0,s=e}finally{try{n||null==c.return||c.return()}finally{if(i)throw s}}return r}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}()}function s(e){return function(e){if(Array.isArray(e)){for(var t=0,r=new Array(e.length);t2&&void 0!==arguments[2]?arguments[2]:{miss:function(){return Promise.resolve()}};return Promise.resolve().then((function(){c();var t=JSON.stringify(e);return s()[t]})).then((function(e){return Promise.all([e?e.value:t(),void 0!==e])})).then((function(e){var t=i(e,2),n=t[0],s=t[1];return Promise.all([n,s||r.miss(n)])})).then((function(e){return i(e,1)[0]}))},set:function(e,t){return Promise.resolve().then((function(){var i=s();return i[JSON.stringify(e)]={timestamp:(new Date).getTime(),value:t},n().setItem(r,JSON.stringify(i)),t}))},delete:function(e){return Promise.resolve().then((function(){var t=s();delete t[JSON.stringify(e)],n().setItem(r,JSON.stringify(t))}))},clear:function(){return Promise.resolve().then((function(){n().removeItem(r)}))}}}function c(e){var t=s(e.caches),r=t.shift();return void 0===r?{get:function(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{miss:function(){return Promise.resolve()}};return t().then((function(e){return Promise.all([e,r.miss(e)])})).then((function(e){return i(e,1)[0]}))},set:function(e,t){return Promise.resolve(t)},delete:function(e){return Promise.resolve()},clear:function(){return Promise.resolve()}}:{get:function(e,n){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{miss:function(){return Promise.resolve()}};return r.get(e,n,i).catch((function(){return c({caches:t}).get(e,n,i)}))},set:function(e,n){return r.set(e,n).catch((function(){return c({caches:t}).set(e,n)}))},delete:function(e){return r.delete(e).catch((function(){return c({caches:t}).delete(e)}))},clear:function(){return r.clear().catch((function(){return c({caches:t}).clear()}))}}}function o(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{serializable:!0},t={};return{get:function(r,n){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{miss:function(){return Promise.resolve()}},s=JSON.stringify(r);if(s in t)return Promise.resolve(e.serializable?JSON.parse(t[s]):t[s]);var a=n(),c=i&&i.miss||function(){return Promise.resolve()};return a.then((function(e){return c(e)})).then((function(){return a}))},set:function(r,n){return t[JSON.stringify(r)]=e.serializable?JSON.stringify(n):n,Promise.resolve(n)},delete:function(e){return delete t[JSON.stringify(e)],Promise.resolve()},clear:function(){return t={},Promise.resolve()}}}function u(e){for(var t=e.length-1;t>0;t--){var r=Math.floor(Math.random()*(t+1)),n=e[t];e[t]=e[r],e[r]=n}return e}function h(e,t){return t?(Object.keys(t).forEach((function(r){e[r]=t[r](e)})),e):e}function f(e){for(var t=arguments.length,r=new Array(t>1?t-1:0),n=1;n0?n:void 0,timeout:r.timeout||t,headers:r.headers||{},queryParameters:r.queryParameters||{},cacheable:r.cacheable}}var d={Read:1,Write:2,Any:3},p=1,g=2,v=3;function y(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:p;return r(r({},e),{},{status:t,lastUpdate:Date.now()})}function R(e){return"string"==typeof e?{protocol:"https",url:e,accept:d.Any}:{protocol:e.protocol||"https",url:e.url,accept:e.accept||d.Any}}var F="GET",b="POST";function j(e,t){return Promise.all(t.map((function(t){return e.get(t,(function(){return Promise.resolve(y(t))}))}))).then((function(e){var r=e.filter((function(e){return function(e){return e.status===p||Date.now()-e.lastUpdate>12e4}(e)})),n=e.filter((function(e){return function(e){return e.status===v&&Date.now()-e.lastUpdate<=12e4}(e)})),i=[].concat(s(r),s(n));return{getTimeout:function(e,t){return(0===n.length&&0===e?1:n.length+3+e)*t},statelessHosts:i.length>0?i.map((function(e){return R(e)})):t}}))}function _(e,t,n,i){var a=[],c=function(e,t){if(e.method!==F&&(void 0!==e.data||void 0!==t.data)){var n=Array.isArray(e.data)?e.data:r(r({},e.data),t.data);return JSON.stringify(n)}}(n,i),o=function(e,t){var n=r(r({},e.headers),t.headers),i={};return Object.keys(n).forEach((function(e){var t=n[e];i[e.toLowerCase()]=t})),i}(e,i),u=n.method,h=n.method!==F?{}:r(r({},n.data),i.data),f=r(r(r({"x-algolia-agent":e.userAgent.value},e.queryParameters),h),i.queryParameters),l=0,m=function t(r,s){var h=r.pop();if(void 0===h)throw{name:"RetryError",message:"Unreachable hosts - your application id may be incorrect. If the error persists, please reach out to the Algolia Support team: https://alg.li/support .",transporterStackTrace:O(a)};var m={data:c,headers:o,method:u,url:x(h,n.path,f),connectTimeout:s(l,e.timeouts.connect),responseTimeout:s(l,i.timeout)},d=function(e){var t={request:m,response:e,host:h,triesLeft:r.length};return a.push(t),t},p={onSuccess:function(e){return function(e){try{return JSON.parse(e.content)}catch(t){throw function(e,t){return{name:"DeserializationError",message:e,response:t}}(t.message,e)}}(e)},onRetry:function(n){var i=d(n);return n.isTimedOut&&l++,Promise.all([e.logger.info("Retryable failure",w(i)),e.hostsCache.set(h,y(h,n.isTimedOut?v:g))]).then((function(){return t(r,s)}))},onFail:function(e){throw d(e),function(e,t){var r=e.content,n=e.status,i=r;try{i=JSON.parse(r).message}catch(e){}return function(e,t,r){return{name:"ApiError",message:e,status:t,transporterStackTrace:r}}(i,n,t)}(e,O(a))}};return e.requester.send(m).then((function(e){return function(e,t){return function(e){var t=e.status;return e.isTimedOut||function(e){var t=e.isTimedOut,r=e.status;return!t&&!~~r}(e)||2!=~~(t/100)&&4!=~~(t/100)}(e)?t.onRetry(e):2==~~(e.status/100)?t.onSuccess(e):t.onFail(e)}(e,p)}))};return j(e.hostsCache,t).then((function(e){return m(s(e.statelessHosts).reverse(),e.getTimeout)}))}function P(e){var t={value:"Algolia for JavaScript (".concat(e,")"),add:function(e){var r="; ".concat(e.segment).concat(void 0!==e.version?" (".concat(e.version,")"):"");return-1===t.value.indexOf(r)&&(t.value="".concat(t.value).concat(r)),t}};return t}function x(e,t,r){var n=E(r),i="".concat(e.protocol,"://").concat(e.url,"/").concat("/"===t.charAt(0)?t.substr(1):t);return n.length&&(i+="?".concat(n)),i}function E(e){return Object.keys(e).map((function(t){return f("%s=%s",t,(r=e[t],"[object Object]"===Object.prototype.toString.call(r)||"[object Array]"===Object.prototype.toString.call(r)?JSON.stringify(e[t]):e[t]));var r})).join("&")}function O(e){return e.map((function(e){return w(e)}))}function w(e){var t=e.request.headers["x-algolia-api-key"]?{"x-algolia-api-key":"*****"}:{};return r(r({},e),{},{request:r(r({},e.request),{},{headers:r(r({},e.request.headers),t)})})}var S=function(e){var t=e.appId,n=function(e,t,r){var n={"x-algolia-api-key":r,"x-algolia-application-id":t};return{headers:function(){return e===l.WithinHeaders?n:{}},queryParameters:function(){return e===l.WithinQueryParameters?n:{}}}}(void 0!==e.authMode?e.authMode:l.WithinHeaders,t,e.apiKey),s=function(e){var t=e.hostsCache,r=e.logger,n=e.requester,s=e.requestsCache,a=e.responsesCache,c=e.timeouts,o=e.userAgent,u=e.hosts,h=e.queryParameters,f={hostsCache:t,logger:r,requester:n,requestsCache:s,responsesCache:a,timeouts:c,userAgent:o,headers:e.headers,queryParameters:h,hosts:u.map((function(e){return R(e)})),read:function(e,t){var r=m(t,f.timeouts.read),n=function(){return _(f,f.hosts.filter((function(e){return!!(e.accept&d.Read)})),e,r)};if(!0!==(void 0!==r.cacheable?r.cacheable:e.cacheable))return n();var s={request:e,mappedRequestOptions:r,transporter:{queryParameters:f.queryParameters,headers:f.headers}};return f.responsesCache.get(s,(function(){return f.requestsCache.get(s,(function(){return f.requestsCache.set(s,n()).then((function(e){return Promise.all([f.requestsCache.delete(s),e])}),(function(e){return Promise.all([f.requestsCache.delete(s),Promise.reject(e)])})).then((function(e){var t=i(e,2);return t[0],t[1]}))}))}),{miss:function(e){return f.responsesCache.set(s,e)}})},write:function(e,t){return _(f,f.hosts.filter((function(e){return!!(e.accept&d.Write)})),e,m(t,f.timeouts.write))}};return f}(r(r({hosts:[{url:"".concat(t,"-dsn.algolia.net"),accept:d.Read},{url:"".concat(t,".algolia.net"),accept:d.Write}].concat(u([{url:"".concat(t,"-1.algolianet.com")},{url:"".concat(t,"-2.algolianet.com")},{url:"".concat(t,"-3.algolianet.com")}]))},e),{},{headers:r(r(r({},n.headers()),{"content-type":"application/x-www-form-urlencoded"}),e.headers),queryParameters:r(r({},n.queryParameters()),e.queryParameters)}));return h({transporter:s,appId:t,addAlgoliaAgent:function(e,t){s.userAgent.add({segment:e,version:t})},clearCache:function(){return Promise.all([s.requestsCache.clear(),s.responsesCache.clear()]).then((function(){}))}},e.methods)},A=function(e){return function(t,r){return t.method===F?e.transporter.read(t,r):e.transporter.write(t,r)}},N=function(e){return function(t){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return h({transporter:e.transporter,appId:e.appId,indexName:t},r.methods)}},H=function(e){return function(t,n){var i=t.map((function(e){return r(r({},e),{},{params:E(e.params||{})})}));return e.transporter.read({method:b,path:"1/indexes/*/queries",data:{requests:i},cacheable:!0},n)}},T=function(e){return function(t,i){return Promise.all(t.map((function(t){var s=t.params,a=s.facetName,c=s.facetQuery,o=n(s,["facetName","facetQuery"]);return N(e)(t.indexName,{methods:{searchForFacetValues:I}}).searchForFacetValues(a,c,r(r({},i),o))})))}},Q=function(e){return function(t,r,n){return e.transporter.read({method:b,path:f("1/answers/%s/prediction",e.indexName),data:{query:t,queryLanguages:r},cacheable:!0},n)}},C=function(e){return function(t,r){return e.transporter.read({method:b,path:f("1/indexes/%s/query",e.indexName),data:{query:t},cacheable:!0},r)}},I=function(e){return function(t,r,n){return e.transporter.read({method:b,path:f("1/indexes/%s/facets/%s/query",e.indexName,t),data:{facetQuery:r},cacheable:!0},n)}},D=1,k=2,q=3,L=function(e){return function(t,n){var i=t.map((function(e){return r(r({},e),{},{threshold:e.threshold||0})}));return e.transporter.read({method:b,path:"1/indexes/*/recommendations",data:{requests:i},cacheable:!0},n)}};function V(e,t,n){var i,s={appId:e,apiKey:t,timeouts:{connect:1,read:2,write:30},requester:{send:function(e){return new Promise((function(t){var r=new XMLHttpRequest;r.open(e.method,e.url,!0),Object.keys(e.headers).forEach((function(t){return r.setRequestHeader(t,e.headers[t])}));var n,i=function(e,n){return setTimeout((function(){r.abort(),t({status:0,content:n,isTimedOut:!0})}),1e3*e)},s=i(e.connectTimeout,"Connection timeout");r.onreadystatechange=function(){r.readyState>r.OPENED&&void 0===n&&(clearTimeout(s),n=i(e.responseTimeout,"Socket timeout"))},r.onerror=function(){0===r.status&&(clearTimeout(s),clearTimeout(n),t({content:r.responseText||"Network request failed",status:r.status,isTimedOut:!1}))},r.onload=function(){clearTimeout(s),clearTimeout(n),t({content:r.responseText,status:r.status,isTimedOut:!1})},r.send(e.data)}))}},logger:(i=q,{debug:function(e,t){return D>=i&&console.debug(e,t),Promise.resolve()},info:function(e,t){return k>=i&&console.info(e,t),Promise.resolve()},error:function(e,t){return console.error(e,t),Promise.resolve()}}),responsesCache:o(),requestsCache:o({serializable:!1}),hostsCache:c({caches:[a({key:"".concat("4.24.0","-").concat(e)}),o()]}),userAgent:P("4.24.0").add({segment:"Browser",version:"lite"}),authMode:l.WithinQueryParameters};return S(r(r(r({},s),n),{},{methods:{search:H,searchForFacetValues:T,multipleQueries:H,multipleSearchForFacetValues:T,customRequest:A,initIndex:function(e){return function(t){return N(e)(t,{methods:{search:C,searchForFacetValues:I,findAnswers:Q}})}},getRecommendations:L}}))}return V.version="4.24.0",V}()},2303:(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>H});var n=r(7378),i=r(3372),s=r(6479),a=r.n(s),c=r(4966),o=r.n(c),u=r(6682),h=r(2827),f=r(8821),l=r(9894),m=r(9377);const d=["zero","one","two","few","many","other"];function p(e){return d.filter((t=>e.includes(t)))}const g={locale:"en",pluralForms:p(["one","other"]),select:e=>1===e?"one":"other"};function v(){const{i18n:{currentLocale:e}}=(0,m.A)();return(0,n.useMemo)((()=>{try{return function(e){const t=new Intl.PluralRules(e);return{locale:e,pluralForms:p(t.resolvedOptions().pluralCategories),select:e=>t.select(e)}}(e)}catch(t){return console.error(`Failed to use Intl.PluralRules for locale "${e}".\nDocusaurus will fallback to the default (English) implementation.\nError: ${t.message}\n`),g}}),[e])}function y(){const e=v();return{selectMessage:(t,r)=>function(e,t,r){const n=e.split("|");if(1===n.length)return n[0];n.length>r.pluralForms.length&&console.error(`For locale=${r.locale}, a maximum of ${r.pluralForms.length} plural forms are expected (${r.pluralForms.join(",")}), but the message contains ${n.length}: ${e}`);const i=r.select(t),s=r.pluralForms.indexOf(i);return n[Math.min(s,n.length-1)]}(r,t,e)}}var R=r(4139),F=r(3656),b=r(4001),j=r(7765),_=r(265),P=r(4889),x=r(7101),E=r(4296),O=r(7719);const w={searchQueryInput:"searchQueryInput_q6x8",searchVersionInput:"searchVersionInput_UXnc",searchResultsColumn:"searchResultsColumn_KLrb",algoliaLogo:"algoliaLogo_C6L2",algoliaLogoPathFill:"algoliaLogoPathFill___zV",searchResultItem:"searchResultItem_T_J5",searchResultItemHeading:"searchResultItemHeading_ftmU",searchResultItemPath:"searchResultItemPath_Nuyq",searchResultItemSummary:"searchResultItemSummary_NdV5",searchQueryColumn:"searchQueryColumn_HR0E",searchVersionColumn:"searchVersionColumn_f2vw",searchLogoColumn:"searchLogoColumn_pCVy",loadingSpinner:"loadingSpinner_L4FA","loading-spin":"loading-spin_fNm6",loader:"loader_HWAH"};var S=r(6106);function A(e){let{docsSearchVersionsHelpers:t}=e;const r=Object.entries(t.allDocsData).filter((e=>{let[,t]=e;return t.versions.length>1}));return(0,S.jsx)("div",{className:(0,i.A)("col","col--3","padding-left--none",w.searchVersionColumn),children:r.map((e=>{let[n,i]=e;const s=r.length>1?`${n}: `:"";return(0,S.jsx)("select",{onChange:e=>t.setSearchVersion(n,e.target.value),defaultValue:t.searchVersions[n],className:w.searchVersionInput,children:i.versions.map(((e,t)=>(0,S.jsx)("option",{label:`${s}${e.label}`,value:e.name},t)))},n)}))})}function N(){const{i18n:{currentLocale:e}}=(0,m.A)(),{algolia:{appId:t,apiKey:r,indexName:s,contextualSearch:c}}=(0,P.c)(),d=(0,x.C)(),p=function(){const{selectMessage:e}=y();return t=>e(t,(0,_.T)({id:"theme.SearchPage.documentsFound.plurals",description:'Pluralized label for "{count} documents found". Use as much plural forms (separated by "|") as your language support (see https://www.unicode.org/cldr/cldr-aux/charts/34/supplemental/language_plural_rules.html)',message:"One document found|{count} documents found"},{count:t}))}(),g=function(){const e=(0,l.Gy)(),[t,r]=(0,n.useState)((()=>Object.entries(e).reduce(((e,t)=>{let[r,n]=t;return{...e,[r]:n.versions[0].name}}),{}))),i=Object.values(e).some((e=>e.versions.length>1));return{allDocsData:e,versioningEnabled:i,searchVersions:t,setSearchVersion:(e,t)=>r((r=>({...r,[e]:t})))}}(),[v,b]=(0,R.b)(),N={items:[],query:null,totalResults:null,totalPages:null,lastPage:null,hasMore:null,loading:null},[H,T]=(0,n.useReducer)(((e,t)=>{switch(t.type){case"reset":return N;case"loading":return{...e,loading:!0};case"update":return v!==t.value.query?e:{...t.value,items:0===t.value.lastPage?t.value.items:e.items.concat(t.value.items)};case"advance":{const t=e.totalPages>e.lastPage+1;return{...e,lastPage:t?e.lastPage+1:e.lastPage,hasMore:t}}default:return e}}),N),Q=c?["language","docusaurus_tag"]:[],C=o()(t,r),I=a()(C,s,{hitsPerPage:15,advancedSyntax:!0,disjunctiveFacets:Q});I.on("result",(e=>{let{results:{query:t,hits:r,page:n,nbHits:i,nbPages:s}}=e;if(""===t||!Array.isArray(r))return void T({type:"reset"});const a=e=>e.replace(/algolia-docsearch-suggestion--highlight/g,"search-result-match"),c=r.map((e=>{let{url:t,_highlightResult:{hierarchy:r},_snippetResult:n={}}=e;const i=Object.keys(r).map((e=>a(r[e].value)));return{title:i.pop(),url:d(t),summary:n.content?`${a(n.content.value)}...`:"",breadcrumbs:i}}));T({type:"update",value:{items:c,query:t,totalResults:i,totalPages:s,lastPage:n,hasMore:s>n+1,loading:!1}})}));const[D,k]=(0,n.useState)(null),q=(0,n.useRef)(0),L=(0,n.useRef)(u.A.canUseIntersectionObserver&&new IntersectionObserver((e=>{const{isIntersecting:t,boundingClientRect:{y:r}}=e[0];t&&q.current>r&&T({type:"advance"}),q.current=r}),{threshold:1})),V=()=>v?(0,_.T)({id:"theme.SearchPage.existingResultsTitle",message:'Search results for "{query}"',description:"The search page title for non-empty query"},{query:v}):(0,_.T)({id:"theme.SearchPage.emptyResultsTitle",message:"Search the documentation",description:"The search page title for empty query"}),B=(0,F._q)((function(t){void 0===t&&(t=0),c&&(I.addDisjunctiveFacetRefinement("docusaurus_tag","default"),I.addDisjunctiveFacetRefinement("language",e),Object.entries(g.searchVersions).forEach((e=>{let[t,r]=e;I.addDisjunctiveFacetRefinement("docusaurus_tag",`docs-${t}-${r}`)}))),I.setQuery(v).setPage(t).search()}));return(0,n.useEffect)((()=>{if(!D)return;const e=L.current;return e?(e.observe(D),()=>e.unobserve(D)):()=>!0}),[D]),(0,n.useEffect)((()=>{T({type:"reset"}),v&&(T({type:"loading"}),setTimeout((()=>{B()}),300))}),[v,g.searchVersions,B]),(0,n.useEffect)((()=>{H.lastPage&&0!==H.lastPage&&B(H.lastPage)}),[B,H.lastPage]),(0,S.jsxs)(E.A,{children:[(0,S.jsxs)(h.A,{children:[(0,S.jsx)("title",{children:(0,j.s)(V())}),(0,S.jsx)("meta",{property:"robots",content:"noindex, follow"})]}),(0,S.jsxs)("div",{className:"container margin-vert--lg",children:[(0,S.jsx)(O.A,{as:"h1",children:V()}),(0,S.jsxs)("form",{className:"row",onSubmit:e=>e.preventDefault(),children:[(0,S.jsx)("div",{className:(0,i.A)("col",w.searchQueryColumn,{"col--9":g.versioningEnabled,"col--12":!g.versioningEnabled}),children:(0,S.jsx)("input",{type:"search",name:"q",className:w.searchQueryInput,placeholder:(0,_.T)({id:"theme.SearchPage.inputPlaceholder",message:"Type your search here",description:"The placeholder for search page input"}),"aria-label":(0,_.T)({id:"theme.SearchPage.inputLabel",message:"Search",description:"The ARIA label for search page input"}),onChange:e=>b(e.target.value),value:v,autoComplete:"off",autoFocus:!0})}),c&&g.versioningEnabled&&(0,S.jsx)(A,{docsSearchVersionsHelpers:g})]}),(0,S.jsxs)("div",{className:"row",children:[(0,S.jsx)("div",{className:(0,i.A)("col","col--8",w.searchResultsColumn),children:!!H.totalResults&&p(H.totalResults)}),(0,S.jsx)("div",{className:(0,i.A)("col","col--4","text--right",w.searchLogoColumn),children:(0,S.jsx)(f.A,{to:"https://www.algolia.com/","aria-label":(0,_.T)({id:"theme.SearchPage.algoliaLabel",message:"Search by Algolia",description:"The ARIA label for Algolia mention"}),children:(0,S.jsx)("svg",{viewBox:"0 0 168 24",className:w.algoliaLogo,children:(0,S.jsxs)("g",{fill:"none",children:[(0,S.jsx)("path",{className:w.algoliaLogoPathFill,d:"M120.925 18.804c-4.386.02-4.386-3.54-4.386-4.106l-.007-13.336 2.675-.424v13.254c0 .322 0 2.358 1.718 2.364v2.248zm-10.846-2.18c.821 0 1.43-.047 1.855-.129v-2.719a6.334 6.334 0 0 0-1.574-.199 5.7 5.7 0 0 0-.897.069 2.699 2.699 0 0 0-.814.24c-.24.116-.439.28-.582.491-.15.212-.219.335-.219.656 0 .628.219.991.616 1.23s.938.362 1.615.362zm-.233-9.7c.883 0 1.629.109 2.231.328.602.218 1.088.525 1.444.915.363.396.609.922.76 1.483.157.56.232 1.175.232 1.85v6.874a32.5 32.5 0 0 1-1.868.314c-.834.123-1.772.185-2.813.185-.69 0-1.327-.069-1.895-.198a4.001 4.001 0 0 1-1.471-.636 3.085 3.085 0 0 1-.951-1.134c-.226-.465-.343-1.12-.343-1.803 0-.656.13-1.073.384-1.525a3.24 3.24 0 0 1 1.047-1.106c.445-.287.95-.492 1.532-.615a8.8 8.8 0 0 1 1.82-.185 8.404 8.404 0 0 1 1.972.24v-.438c0-.307-.035-.6-.11-.874a1.88 1.88 0 0 0-.384-.73 1.784 1.784 0 0 0-.724-.493 3.164 3.164 0 0 0-1.143-.205c-.616 0-1.177.075-1.69.164a7.735 7.735 0 0 0-1.26.307l-.321-2.192c.335-.117.834-.233 1.478-.349a10.98 10.98 0 0 1 2.073-.178zm52.842 9.626c.822 0 1.43-.048 1.854-.13V13.7a6.347 6.347 0 0 0-1.574-.199c-.294 0-.595.021-.896.069a2.7 2.7 0 0 0-.814.24 1.46 1.46 0 0 0-.582.491c-.15.212-.218.335-.218.656 0 .628.218.991.615 1.23.404.245.938.362 1.615.362zm-.226-9.694c.883 0 1.629.108 2.231.327.602.219 1.088.526 1.444.915.355.39.609.923.759 1.483a6.8 6.8 0 0 1 .233 1.852v6.873c-.41.088-1.034.19-1.868.314-.834.123-1.772.184-2.813.184-.69 0-1.327-.068-1.895-.198a4.001 4.001 0 0 1-1.471-.635 3.085 3.085 0 0 1-.951-1.134c-.226-.465-.343-1.12-.343-1.804 0-.656.13-1.073.384-1.524.26-.45.608-.82 1.047-1.107.445-.286.95-.491 1.532-.614a8.803 8.803 0 0 1 2.751-.13c.329.034.671.096 1.04.185v-.437a3.3 3.3 0 0 0-.109-.875 1.873 1.873 0 0 0-.384-.731 1.784 1.784 0 0 0-.724-.492 3.165 3.165 0 0 0-1.143-.205c-.616 0-1.177.075-1.69.164a7.75 7.75 0 0 0-1.26.307l-.321-2.193c.335-.116.834-.232 1.478-.348a11.633 11.633 0 0 1 2.073-.177zm-8.034-1.271a1.626 1.626 0 0 1-1.628-1.62c0-.895.725-1.62 1.628-1.62.904 0 1.63.725 1.63 1.62 0 .895-.733 1.62-1.63 1.62zm1.348 13.22h-2.689V7.27l2.69-.423v11.956zm-4.714 0c-4.386.02-4.386-3.54-4.386-4.107l-.008-13.336 2.676-.424v13.254c0 .322 0 2.358 1.718 2.364v2.248zm-8.698-5.903c0-1.156-.253-2.119-.746-2.788-.493-.677-1.183-1.01-2.067-1.01-.882 0-1.574.333-2.065 1.01-.493.676-.733 1.632-.733 2.788 0 1.168.246 1.953.74 2.63.492.683 1.183 1.018 2.066 1.018.882 0 1.574-.342 2.067-1.019.492-.683.738-1.46.738-2.63zm2.737-.007c0 .902-.13 1.584-.397 2.33a5.52 5.52 0 0 1-1.128 1.906 4.986 4.986 0 0 1-1.752 1.223c-.685.286-1.739.45-2.265.45-.528-.006-1.574-.157-2.252-.45a5.096 5.096 0 0 1-1.744-1.223c-.487-.527-.863-1.162-1.137-1.906a6.345 6.345 0 0 1-.41-2.33c0-.902.123-1.77.397-2.508a5.554 5.554 0 0 1 1.15-1.892 5.133 5.133 0 0 1 1.75-1.216c.679-.287 1.425-.423 2.232-.423.808 0 1.553.142 2.237.423a4.88 4.88 0 0 1 1.753 1.216 5.644 5.644 0 0 1 1.135 1.892c.287.738.431 1.606.431 2.508zm-20.138 0c0 1.12.246 2.363.738 2.882.493.52 1.13.78 1.91.78.424 0 .828-.062 1.204-.178.377-.116.677-.253.917-.417V9.33a10.476 10.476 0 0 0-1.766-.226c-.971-.028-1.71.37-2.23 1.004-.513.636-.773 1.75-.773 2.788zm7.438 5.274c0 1.824-.466 3.156-1.404 4.004-.936.846-2.367 1.27-4.296 1.27-.705 0-2.17-.137-3.34-.396l.431-2.118c.98.205 2.272.26 2.95.26 1.074 0 1.84-.219 2.299-.656.459-.437.684-1.086.684-1.948v-.437a8.07 8.07 0 0 1-1.047.397c-.43.13-.93.198-1.492.198-.739 0-1.41-.116-2.018-.349a4.206 4.206 0 0 1-1.567-1.025c-.431-.45-.774-1.017-1.013-1.694-.24-.677-.363-1.885-.363-2.773 0-.834.13-1.88.384-2.577.26-.696.629-1.298 1.129-1.796.493-.498 1.095-.881 1.8-1.162a6.605 6.605 0 0 1 2.428-.457c.87 0 1.67.109 2.45.24.78.129 1.444.265 1.985.415V18.17zM6.972 6.677v1.627c-.712-.446-1.52-.67-2.425-.67-.585 0-1.045.13-1.38.391a1.24 1.24 0 0 0-.502 1.03c0 .425.164.765.494 1.02.33.256.835.532 1.516.83.447.192.795.356 1.045.495.25.138.537.332.862.582.324.25.563.548.718.894.154.345.23.741.23 1.188 0 .947-.334 1.691-1.004 2.234-.67.542-1.537.814-2.601.814-1.18 0-2.16-.229-2.936-.686v-1.708c.84.628 1.814.942 2.92.942.585 0 1.048-.136 1.388-.407.34-.271.51-.646.51-1.125 0-.287-.1-.55-.302-.79-.203-.24-.42-.42-.655-.542-.234-.123-.585-.29-1.053-.503a61.27 61.27 0 0 1-.582-.271 13.67 13.67 0 0 1-.55-.287 4.275 4.275 0 0 1-.567-.351 6.92 6.92 0 0 1-.455-.4c-.18-.17-.31-.34-.39-.51-.08-.17-.155-.37-.224-.598a2.553 2.553 0 0 1-.104-.742c0-.915.333-1.638.998-2.17.664-.532 1.523-.798 2.576-.798.968 0 1.793.17 2.473.51zm7.468 5.696v-.287c-.022-.607-.187-1.088-.495-1.444-.309-.357-.75-.535-1.324-.535-.532 0-.99.194-1.373.583-.382.388-.622.949-.717 1.683h3.909zm1.005 2.792v1.404c-.596.34-1.383.51-2.362.51-1.255 0-2.255-.377-3-1.132-.744-.755-1.116-1.744-1.116-2.968 0-1.297.34-2.316 1.021-3.055.68-.74 1.548-1.11 2.6-1.11 1.033 0 1.852.323 2.458.966.606.644.91 1.572.91 2.784 0 .33-.033.676-.096 1.038h-5.314c.107.702.405 1.239.894 1.611.49.372 1.106.558 1.85.558.862 0 1.58-.202 2.155-.606zm6.605-1.77h-1.212c-.596 0-1.045.116-1.349.35-.303.234-.454.532-.454.894 0 .372.117.664.35.877.235.213.575.32 1.022.32.51 0 .912-.142 1.204-.424.293-.281.44-.651.44-1.108v-.91zm-4.068-2.554V9.325c.627-.361 1.457-.542 2.489-.542 2.116 0 3.175 1.026 3.175 3.08V17h-1.548v-.957c-.415.68-1.143 1.02-2.186 1.02-.766 0-1.38-.22-1.843-.661-.462-.442-.694-1.003-.694-1.684 0-.776.293-1.38.878-1.81.585-.431 1.404-.647 2.457-.647h1.34V11.8c0-.554-.133-.971-.399-1.253-.266-.282-.707-.423-1.324-.423a4.07 4.07 0 0 0-2.345.718zm9.333-1.93v1.42c.394-1 1.101-1.5 2.123-1.5.148 0 .313.016.494.048v1.531a1.885 1.885 0 0 0-.75-.143c-.542 0-.989.24-1.34.718-.351.479-.527 1.048-.527 1.707V17h-1.563V8.91h1.563zm5.01 4.084c.022.82.272 1.492.75 2.019.479.526 1.15.79 2.01.79.639 0 1.235-.176 1.788-.527v1.404c-.521.319-1.186.479-1.995.479-1.265 0-2.276-.4-3.031-1.197-.755-.798-1.133-1.792-1.133-2.984 0-1.16.38-2.151 1.14-2.975.761-.825 1.79-1.237 3.088-1.237.702 0 1.346.149 1.93.447v1.436a3.242 3.242 0 0 0-1.77-.495c-.84 0-1.513.266-2.019.798-.505.532-.758 1.213-.758 2.042zM40.24 5.72v4.579c.458-1 1.293-1.5 2.505-1.5.787 0 1.42.245 1.899.734.479.49.718 1.17.718 2.042V17h-1.564v-5.106c0-.553-.14-.98-.422-1.284-.282-.303-.652-.455-1.11-.455-.531 0-1.002.202-1.411.606-.41.405-.615 1.022-.615 1.851V17h-1.563V5.72h1.563zm14.966 10.02c.596 0 1.096-.253 1.5-.758.404-.506.606-1.157.606-1.955 0-.915-.202-1.62-.606-2.114-.404-.495-.92-.742-1.548-.742-.553 0-1.05.224-1.491.67-.442.447-.662 1.133-.662 2.058 0 .958.212 1.67.638 2.138.425.469.946.703 1.563.703zM53.004 5.72v4.42c.574-.894 1.388-1.341 2.44-1.341 1.022 0 1.857.383 2.506 1.149.649.766.973 1.781.973 3.047 0 1.138-.309 2.109-.925 2.912-.617.803-1.463 1.205-2.537 1.205-1.075 0-1.894-.447-2.457-1.34V17h-1.58V5.72h1.58zm9.908 11.104l-3.223-7.913h1.739l1.005 2.632 1.26 3.415c.096-.32.48-1.458 1.15-3.415l.909-2.632h1.66l-2.92 7.866c-.777 2.074-1.963 3.11-3.559 3.11a2.92 2.92 0 0 1-.734-.079v-1.34c.17.042.351.064.543.064 1.032 0 1.755-.57 2.17-1.708z"}),(0,S.jsx)("path",{fill:"#5468FF",d:"M78.988.938h16.594a2.968 2.968 0 0 1 2.966 2.966V20.5a2.967 2.967 0 0 1-2.966 2.964H78.988a2.967 2.967 0 0 1-2.966-2.964V3.897A2.961 2.961 0 0 1 78.988.938z"}),(0,S.jsx)("path",{fill:"white",d:"M89.632 5.967v-.772a.978.978 0 0 0-.978-.977h-2.28a.978.978 0 0 0-.978.977v.793c0 .088.082.15.171.13a7.127 7.127 0 0 1 1.984-.28c.65 0 1.295.088 1.917.259.082.02.164-.04.164-.13m-6.248 1.01l-.39-.389a.977.977 0 0 0-1.382 0l-.465.465a.973.973 0 0 0 0 1.38l.383.383c.062.061.15.047.205-.014.226-.307.472-.601.746-.874.281-.28.568-.526.883-.751.068-.042.075-.137.02-.2m4.16 2.453v3.341c0 .096.104.165.192.117l2.97-1.537c.068-.034.089-.117.055-.184a3.695 3.695 0 0 0-3.08-1.866c-.068 0-.136.054-.136.13m0 8.048a4.489 4.489 0 0 1-4.49-4.482 4.488 4.488 0 0 1 4.49-4.482 4.488 4.488 0 0 1 4.489 4.482 4.484 4.484 0 0 1-4.49 4.482m0-10.85a6.363 6.363 0 1 0 0 12.729 6.37 6.37 0 0 0 6.372-6.368 6.358 6.358 0 0 0-6.371-6.36"})]})})})})]}),H.items.length>0?(0,S.jsx)("main",{children:H.items.map(((e,t)=>{let{title:r,url:n,summary:s,breadcrumbs:a}=e;return(0,S.jsxs)("article",{className:w.searchResultItem,children:[(0,S.jsx)(O.A,{as:"h2",className:w.searchResultItemHeading,children:(0,S.jsx)(f.A,{to:n,dangerouslySetInnerHTML:{__html:r}})}),a.length>0&&(0,S.jsx)("nav",{"aria-label":"breadcrumbs",children:(0,S.jsx)("ul",{className:(0,i.A)("breadcrumbs",w.searchResultItemPath),children:a.map(((e,t)=>(0,S.jsx)("li",{className:"breadcrumbs__item",dangerouslySetInnerHTML:{__html:e}},t)))})}),s&&(0,S.jsx)("p",{className:w.searchResultItemSummary,dangerouslySetInnerHTML:{__html:s}})]},t)}))}):[v&&!H.loading&&(0,S.jsx)("p",{children:(0,S.jsx)(_.A,{id:"theme.SearchPage.noResultsText",description:"The paragraph for empty search result",children:"No results were found"})},"no-results"),!!H.loading&&(0,S.jsx)("div",{className:w.loadingSpinner},"spinner")],H.hasMore&&(0,S.jsx)("div",{className:w.loader,ref:k,children:(0,S.jsx)(_.A,{id:"theme.SearchPage.fetchingNewResults",description:"The paragraph for fetching new search results",children:"Fetching new results..."})})]})]})}function H(){return(0,S.jsx)(b.e3,{className:"search-page-wrapper",children:(0,S.jsx)(N,{})})}}}]); \ No newline at end of file +/*! For license information please see 1a4e3797.0d4e4a27.js.LICENSE.txt */ +(self.webpackChunkol_echarts_docs=self.webpackChunkol_echarts_docs||[]).push([[138],{4529:e=>{function t(){this._events=this._events||{},this._maxListeners=this._maxListeners||void 0}function r(e){return"function"==typeof e}function n(e){return"object"==typeof e&&null!==e}function i(e){return void 0===e}e.exports=t,t.prototype._events=void 0,t.prototype._maxListeners=void 0,t.defaultMaxListeners=10,t.prototype.setMaxListeners=function(e){if("number"!=typeof e||e<0||isNaN(e))throw TypeError("n must be a positive number");return this._maxListeners=e,this},t.prototype.emit=function(e){var t,s,a,c,o,u;if(this._events||(this._events={}),"error"===e&&(!this._events.error||n(this._events.error)&&!this._events.error.length)){if((t=arguments[1])instanceof Error)throw t;var h=new Error('Uncaught, unspecified "error" event. ('+t+")");throw h.context=t,h}if(i(s=this._events[e]))return!1;if(r(s))switch(arguments.length){case 1:s.call(this);break;case 2:s.call(this,arguments[1]);break;case 3:s.call(this,arguments[1],arguments[2]);break;default:c=Array.prototype.slice.call(arguments,1),s.apply(this,c)}else if(n(s))for(c=Array.prototype.slice.call(arguments,1),a=(u=s.slice()).length,o=0;o0&&this._events[e].length>a&&(this._events[e].warned=!0,console.error("(node) warning: possible EventEmitter memory leak detected. %d listeners added. Use emitter.setMaxListeners() to increase limit.",this._events[e].length),"function"==typeof console.trace&&console.trace()),this},t.prototype.on=t.prototype.addListener,t.prototype.once=function(e,t){if(!r(t))throw TypeError("listener must be a function");var n=!1;function i(){this.removeListener(e,i),n||(n=!0,t.apply(this,arguments))}return i.listener=t,this.on(e,i),this},t.prototype.removeListener=function(e,t){var i,s,a,c;if(!r(t))throw TypeError("listener must be a function");if(!this._events||!this._events[e])return this;if(a=(i=this._events[e]).length,s=-1,i===t||r(i.listener)&&i.listener===t)delete this._events[e],this._events.removeListener&&this.emit("removeListener",e,t);else if(n(i)){for(c=a;c-- >0;)if(i[c]===t||i[c].listener&&i[c].listener===t){s=c;break}if(s<0)return this;1===i.length?(i.length=0,delete this._events[e]):i.splice(s,1),this._events.removeListener&&this.emit("removeListener",e,t)}return this},t.prototype.removeAllListeners=function(e){var t,n;if(!this._events)return this;if(!this._events.removeListener)return 0===arguments.length?this._events={}:this._events[e]&&delete this._events[e],this;if(0===arguments.length){for(t in this._events)"removeListener"!==t&&this.removeAllListeners(t);return this.removeAllListeners("removeListener"),this._events={},this}if(r(n=this._events[e]))this.removeListener(e,n);else if(n)for(;n.length;)this.removeListener(e,n[n.length-1]);return delete this._events[e],this},t.prototype.listeners=function(e){return this._events&&this._events[e]?r(this._events[e])?[this._events[e]]:this._events[e].slice():[]},t.prototype.listenerCount=function(e){if(this._events){var t=this._events[e];if(r(t))return 1;if(t)return t.length}return 0},t.listenerCount=function(e,t){return e.listenerCount(t)}},6479:(e,t,r)=>{"use strict";var n=r(2099),i=r(1903),s=r(4583),a=r(6579),c=r(5571);function o(e,t,r,i){return new n(e,t,r,i)}o.version=r(6674),o.AlgoliaSearchHelper=n,o.SearchParameters=a,o.RecommendParameters=i,o.SearchResults=c,o.RecommendResults=s,e.exports=o},6484:(e,t,r)=>{"use strict";var n=r(4529);function i(e,t,r){this.main=e,this.fn=t,this.recommendFn=r,this.lastResults=null,this.lastRecommendResults=null}r(3966)(i,n),i.prototype.detach=function(){this.removeAllListeners(),this.main.detachDerivedHelper(this)},i.prototype.getModifiedState=function(e){return this.fn(e)},i.prototype.getModifiedRecommendState=function(e){return this.recommendFn(e)},e.exports=i},1903:e=>{"use strict";function t(e){e=e||{},this.params=e.params||[]}t.prototype={constructor:t,addParams:function(e){var r=this.params.slice();return r.push(e),new t({params:r})},removeParams:function(e){return new t({params:this.params.filter((function(t){return t.$$id!==e}))})},addFrequentlyBoughtTogether:function(e){return this.addParams(Object.assign({},e,{model:"bought-together"}))},addRelatedProducts:function(e){return this.addParams(Object.assign({},e,{model:"related-products"}))},addTrendingItems:function(e){return this.addParams(Object.assign({},e,{model:"trending-items"}))},addTrendingFacets:function(e){return this.addParams(Object.assign({},e,{model:"trending-facets"}))},addLookingSimilar:function(e){return this.addParams(Object.assign({},e,{model:"looking-similar"}))},_buildQueries:function(e,t){return this.params.filter((function(e){return void 0===t[e.$$id]})).map((function(t){var r=Object.assign({},t,{indexName:e,threshold:t.threshold||0});return delete r.$$id,r}))}},e.exports=t},4583:e=>{"use strict";function t(e,t){this._state=e,this._rawResults={};var r=this;e.params.forEach((function(e){var n=e.$$id;r[n]=t[n],r._rawResults[n]=t[n]}))}t.prototype={constructor:t},e.exports=t},3502:(e,t,r)=>{"use strict";var n=r(8814),i=r(7333),s=r(5055),a={addRefinement:function(e,t,r){if(a.isRefined(e,t,r))return e;var i=""+r,s=e[t]?e[t].concat(i):[i],c={};return c[t]=s,n({},c,e)},removeRefinement:function(e,t,r){if(void 0===r)return a.clearRefinement(e,(function(e,r){return t===r}));var n=""+r;return a.clearRefinement(e,(function(e,r){return t===r&&n===e}))},toggleRefinement:function(e,t,r){if(void 0===r)throw new Error("toggleRefinement should be used with a value");return a.isRefined(e,t,r)?a.removeRefinement(e,t,r):a.addRefinement(e,t,r)},clearRefinement:function(e,t,r){if(void 0===t)return i(e)?{}:e;if("string"==typeof t)return s(e,[t]);if("function"==typeof t){var n=!1,a=Object.keys(e).reduce((function(i,s){var a=e[s]||[],c=a.filter((function(e){return!t(e,s,r)}));return c.length!==a.length&&(n=!0),i[s]=c,i}),{});return n?a:e}},isRefined:function(e,t,r){var n=Boolean(e[t])&&e[t].length>0;if(void 0===r||!n)return n;var i=""+r;return-1!==e[t].indexOf(i)}};e.exports=a},6579:(e,t,r)=>{"use strict";var n=r(8814),i=r(5241),s=r(6739),a=r(3744),c=r(7333),o=r(5055),u=r(3467),h=r(9592),f=r(3502);function l(e,t){return Array.isArray(e)&&Array.isArray(t)?e.length===t.length&&e.every((function(e,r){return l(t[r],e)})):e===t}function m(e){var t=e?m._parseNumbers(e):{};void 0===t.userToken||h(t.userToken)||console.warn("[algoliasearch-helper] The `userToken` parameter is invalid. This can lead to wrong analytics.\n - Format: [a-zA-Z0-9_-]{1,64}"),this.facets=t.facets||[],this.disjunctiveFacets=t.disjunctiveFacets||[],this.hierarchicalFacets=t.hierarchicalFacets||[],this.facetsRefinements=t.facetsRefinements||{},this.facetsExcludes=t.facetsExcludes||{},this.disjunctiveFacetsRefinements=t.disjunctiveFacetsRefinements||{},this.numericRefinements=t.numericRefinements||{},this.tagRefinements=t.tagRefinements||[],this.hierarchicalFacetsRefinements=t.hierarchicalFacetsRefinements||{};var r=this;Object.keys(t).forEach((function(e){var n=-1!==m.PARAMETERS.indexOf(e),i=void 0!==t[e];!n&&i&&(r[e]=t[e])}))}m.PARAMETERS=Object.keys(new m),m._parseNumbers=function(e){if(e instanceof m)return e;var t={};if(["aroundPrecision","aroundRadius","getRankingInfo","minWordSizefor2Typos","minWordSizefor1Typo","page","maxValuesPerFacet","distinct","minimumAroundRadius","hitsPerPage","minProximity"].forEach((function(r){var n=e[r];if("string"==typeof n){var i=parseFloat(n);t[r]=isNaN(i)?n:i}})),Array.isArray(e.insideBoundingBox)&&(t.insideBoundingBox=e.insideBoundingBox.map((function(e){return Array.isArray(e)?e.map((function(e){return parseFloat(e)})):e}))),e.numericRefinements){var r={};Object.keys(e.numericRefinements).forEach((function(t){var n=e.numericRefinements[t]||{};r[t]={},Object.keys(n).forEach((function(e){var i=n[e].map((function(e){return Array.isArray(e)?e.map((function(e){return"string"==typeof e?parseFloat(e):e})):"string"==typeof e?parseFloat(e):e}));r[t][e]=i}))})),t.numericRefinements=r}return a(e,t)},m.make=function(e){var t=new m(e);return(e.hierarchicalFacets||[]).forEach((function(e){if(e.rootPath){var r=t.getHierarchicalRefinement(e.name);r.length>0&&0!==r[0].indexOf(e.rootPath)&&(t=t.clearRefinements(e.name)),0===(r=t.getHierarchicalRefinement(e.name)).length&&(t=t.toggleHierarchicalFacetRefinement(e.name,e.rootPath))}})),t},m.validate=function(e,t){var r=t||{};return e.tagFilters&&r.tagRefinements&&r.tagRefinements.length>0?new Error("[Tags] Cannot switch from the managed tag API to the advanced API. It is probably an error, if it is really what you want, you should first clear the tags with clearTags method."):e.tagRefinements.length>0&&r.tagFilters?new Error("[Tags] Cannot switch from the advanced tag API to the managed API. It is probably an error, if it is not, you should first clear the tags with clearTags method."):e.numericFilters&&r.numericRefinements&&c(r.numericRefinements)?new Error("[Numeric filters] Can't switch from the advanced to the managed API. It is probably an error, if this is really what you want, you have to first clear the numeric filters."):c(e.numericRefinements)&&r.numericFilters?new Error("[Numeric filters] Can't switch from the managed API to the advanced. It is probably an error, if this is really what you want, you have to first clear the numeric filters."):null},m.prototype={constructor:m,clearRefinements:function(e){var t={numericRefinements:this._clearNumericRefinements(e),facetsRefinements:f.clearRefinement(this.facetsRefinements,e,"conjunctiveFacet"),facetsExcludes:f.clearRefinement(this.facetsExcludes,e,"exclude"),disjunctiveFacetsRefinements:f.clearRefinement(this.disjunctiveFacetsRefinements,e,"disjunctiveFacet"),hierarchicalFacetsRefinements:f.clearRefinement(this.hierarchicalFacetsRefinements,e,"hierarchicalFacet")};return t.numericRefinements===this.numericRefinements&&t.facetsRefinements===this.facetsRefinements&&t.facetsExcludes===this.facetsExcludes&&t.disjunctiveFacetsRefinements===this.disjunctiveFacetsRefinements&&t.hierarchicalFacetsRefinements===this.hierarchicalFacetsRefinements?this:this.setQueryParameters(t)},clearTags:function(){return void 0===this.tagFilters&&0===this.tagRefinements.length?this:this.setQueryParameters({tagFilters:void 0,tagRefinements:[]})},setIndex:function(e){return e===this.index?this:this.setQueryParameters({index:e})},setQuery:function(e){return e===this.query?this:this.setQueryParameters({query:e})},setPage:function(e){return e===this.page?this:this.setQueryParameters({page:e})},setFacets:function(e){return this.setQueryParameters({facets:e})},setDisjunctiveFacets:function(e){return this.setQueryParameters({disjunctiveFacets:e})},setHitsPerPage:function(e){return this.hitsPerPage===e?this:this.setQueryParameters({hitsPerPage:e})},setTypoTolerance:function(e){return this.typoTolerance===e?this:this.setQueryParameters({typoTolerance:e})},addNumericRefinement:function(e,t,r){var n=u(r);if(this.isNumericRefined(e,t,n))return this;var i=a({},this.numericRefinements);return i[e]=a({},i[e]),i[e][t]?(i[e][t]=i[e][t].slice(),i[e][t].push(n)):i[e][t]=[n],this.setQueryParameters({numericRefinements:i})},getConjunctiveRefinements:function(e){return this.isConjunctiveFacet(e)&&this.facetsRefinements[e]||[]},getDisjunctiveRefinements:function(e){return this.isDisjunctiveFacet(e)&&this.disjunctiveFacetsRefinements[e]||[]},getHierarchicalRefinement:function(e){return this.hierarchicalFacetsRefinements[e]||[]},getExcludeRefinements:function(e){return this.isConjunctiveFacet(e)&&this.facetsExcludes[e]||[]},removeNumericRefinement:function(e,t,r){var n=r;return void 0!==n?this.isNumericRefined(e,t,n)?this.setQueryParameters({numericRefinements:this._clearNumericRefinements((function(r,i){return i===e&&r.op===t&&l(r.val,u(n))}))}):this:void 0!==t?this.isNumericRefined(e,t)?this.setQueryParameters({numericRefinements:this._clearNumericRefinements((function(r,n){return n===e&&r.op===t}))}):this:this.isNumericRefined(e)?this.setQueryParameters({numericRefinements:this._clearNumericRefinements((function(t,r){return r===e}))}):this},getNumericRefinements:function(e){return this.numericRefinements[e]||{}},getNumericRefinement:function(e,t){return this.numericRefinements[e]&&this.numericRefinements[e][t]},_clearNumericRefinements:function(e){if(void 0===e)return c(this.numericRefinements)?{}:this.numericRefinements;if("string"==typeof e)return o(this.numericRefinements,[e]);if("function"==typeof e){var t=!1,r=this.numericRefinements,n=Object.keys(r).reduce((function(n,i){var s=r[i],a={};return s=s||{},Object.keys(s).forEach((function(r){var n=s[r]||[],c=[];n.forEach((function(t){e({val:t,op:r},i,"numeric")||c.push(t)})),c.length!==n.length&&(t=!0),a[r]=c})),n[i]=a,n}),{});return t?n:this.numericRefinements}},addFacet:function(e){return this.isConjunctiveFacet(e)?this:this.setQueryParameters({facets:this.facets.concat([e])})},addDisjunctiveFacet:function(e){return this.isDisjunctiveFacet(e)?this:this.setQueryParameters({disjunctiveFacets:this.disjunctiveFacets.concat([e])})},addHierarchicalFacet:function(e){if(this.isHierarchicalFacet(e.name))throw new Error("Cannot declare two hierarchical facets with the same name: `"+e.name+"`");return this.setQueryParameters({hierarchicalFacets:this.hierarchicalFacets.concat([e])})},addFacetRefinement:function(e,t){if(!this.isConjunctiveFacet(e))throw new Error(e+" is not defined in the facets attribute of the helper configuration");return f.isRefined(this.facetsRefinements,e,t)?this:this.setQueryParameters({facetsRefinements:f.addRefinement(this.facetsRefinements,e,t)})},addExcludeRefinement:function(e,t){if(!this.isConjunctiveFacet(e))throw new Error(e+" is not defined in the facets attribute of the helper configuration");return f.isRefined(this.facetsExcludes,e,t)?this:this.setQueryParameters({facetsExcludes:f.addRefinement(this.facetsExcludes,e,t)})},addDisjunctiveFacetRefinement:function(e,t){if(!this.isDisjunctiveFacet(e))throw new Error(e+" is not defined in the disjunctiveFacets attribute of the helper configuration");return f.isRefined(this.disjunctiveFacetsRefinements,e,t)?this:this.setQueryParameters({disjunctiveFacetsRefinements:f.addRefinement(this.disjunctiveFacetsRefinements,e,t)})},addTagRefinement:function(e){if(this.isTagRefined(e))return this;var t={tagRefinements:this.tagRefinements.concat(e)};return this.setQueryParameters(t)},removeFacet:function(e){return this.isConjunctiveFacet(e)?this.clearRefinements(e).setQueryParameters({facets:this.facets.filter((function(t){return t!==e}))}):this},removeDisjunctiveFacet:function(e){return this.isDisjunctiveFacet(e)?this.clearRefinements(e).setQueryParameters({disjunctiveFacets:this.disjunctiveFacets.filter((function(t){return t!==e}))}):this},removeHierarchicalFacet:function(e){return this.isHierarchicalFacet(e)?this.clearRefinements(e).setQueryParameters({hierarchicalFacets:this.hierarchicalFacets.filter((function(t){return t.name!==e}))}):this},removeFacetRefinement:function(e,t){if(!this.isConjunctiveFacet(e))throw new Error(e+" is not defined in the facets attribute of the helper configuration");return f.isRefined(this.facetsRefinements,e,t)?this.setQueryParameters({facetsRefinements:f.removeRefinement(this.facetsRefinements,e,t)}):this},removeExcludeRefinement:function(e,t){if(!this.isConjunctiveFacet(e))throw new Error(e+" is not defined in the facets attribute of the helper configuration");return f.isRefined(this.facetsExcludes,e,t)?this.setQueryParameters({facetsExcludes:f.removeRefinement(this.facetsExcludes,e,t)}):this},removeDisjunctiveFacetRefinement:function(e,t){if(!this.isDisjunctiveFacet(e))throw new Error(e+" is not defined in the disjunctiveFacets attribute of the helper configuration");return f.isRefined(this.disjunctiveFacetsRefinements,e,t)?this.setQueryParameters({disjunctiveFacetsRefinements:f.removeRefinement(this.disjunctiveFacetsRefinements,e,t)}):this},removeTagRefinement:function(e){if(!this.isTagRefined(e))return this;var t={tagRefinements:this.tagRefinements.filter((function(t){return t!==e}))};return this.setQueryParameters(t)},toggleRefinement:function(e,t){return this.toggleFacetRefinement(e,t)},toggleFacetRefinement:function(e,t){if(this.isHierarchicalFacet(e))return this.toggleHierarchicalFacetRefinement(e,t);if(this.isConjunctiveFacet(e))return this.toggleConjunctiveFacetRefinement(e,t);if(this.isDisjunctiveFacet(e))return this.toggleDisjunctiveFacetRefinement(e,t);throw new Error("Cannot refine the undeclared facet "+e+"; it should be added to the helper options facets, disjunctiveFacets or hierarchicalFacets")},toggleConjunctiveFacetRefinement:function(e,t){if(!this.isConjunctiveFacet(e))throw new Error(e+" is not defined in the facets attribute of the helper configuration");return this.setQueryParameters({facetsRefinements:f.toggleRefinement(this.facetsRefinements,e,t)})},toggleExcludeFacetRefinement:function(e,t){if(!this.isConjunctiveFacet(e))throw new Error(e+" is not defined in the facets attribute of the helper configuration");return this.setQueryParameters({facetsExcludes:f.toggleRefinement(this.facetsExcludes,e,t)})},toggleDisjunctiveFacetRefinement:function(e,t){if(!this.isDisjunctiveFacet(e))throw new Error(e+" is not defined in the disjunctiveFacets attribute of the helper configuration");return this.setQueryParameters({disjunctiveFacetsRefinements:f.toggleRefinement(this.disjunctiveFacetsRefinements,e,t)})},toggleHierarchicalFacetRefinement:function(e,t){if(!this.isHierarchicalFacet(e))throw new Error(e+" is not defined in the hierarchicalFacets attribute of the helper configuration");var r=this._getHierarchicalFacetSeparator(this.getHierarchicalFacetByName(e)),i={};return void 0!==this.hierarchicalFacetsRefinements[e]&&this.hierarchicalFacetsRefinements[e].length>0&&(this.hierarchicalFacetsRefinements[e][0]===t||0===this.hierarchicalFacetsRefinements[e][0].indexOf(t+r))?-1===t.indexOf(r)?i[e]=[]:i[e]=[t.slice(0,t.lastIndexOf(r))]:i[e]=[t],this.setQueryParameters({hierarchicalFacetsRefinements:n({},i,this.hierarchicalFacetsRefinements)})},addHierarchicalFacetRefinement:function(e,t){if(this.isHierarchicalFacetRefined(e))throw new Error(e+" is already refined.");if(!this.isHierarchicalFacet(e))throw new Error(e+" is not defined in the hierarchicalFacets attribute of the helper configuration.");var r={};return r[e]=[t],this.setQueryParameters({hierarchicalFacetsRefinements:n({},r,this.hierarchicalFacetsRefinements)})},removeHierarchicalFacetRefinement:function(e){if(!this.isHierarchicalFacetRefined(e))return this;var t={};return t[e]=[],this.setQueryParameters({hierarchicalFacetsRefinements:n({},t,this.hierarchicalFacetsRefinements)})},toggleTagRefinement:function(e){return this.isTagRefined(e)?this.removeTagRefinement(e):this.addTagRefinement(e)},isDisjunctiveFacet:function(e){return this.disjunctiveFacets.indexOf(e)>-1},isHierarchicalFacet:function(e){return void 0!==this.getHierarchicalFacetByName(e)},isConjunctiveFacet:function(e){return this.facets.indexOf(e)>-1},isFacetRefined:function(e,t){return!!this.isConjunctiveFacet(e)&&f.isRefined(this.facetsRefinements,e,t)},isExcludeRefined:function(e,t){return!!this.isConjunctiveFacet(e)&&f.isRefined(this.facetsExcludes,e,t)},isDisjunctiveFacetRefined:function(e,t){return!!this.isDisjunctiveFacet(e)&&f.isRefined(this.disjunctiveFacetsRefinements,e,t)},isHierarchicalFacetRefined:function(e,t){if(!this.isHierarchicalFacet(e))return!1;var r=this.getHierarchicalRefinement(e);return t?-1!==r.indexOf(t):r.length>0},isNumericRefined:function(e,t,r){if(void 0===r&&void 0===t)return Boolean(this.numericRefinements[e]);var n=this.numericRefinements[e]&&void 0!==this.numericRefinements[e][t];if(void 0===r||!n)return n;var s,a,c=u(r),o=void 0!==(s=this.numericRefinements[e][t],a=c,i(s,(function(e){return l(e,a)})));return n&&o},isTagRefined:function(e){return-1!==this.tagRefinements.indexOf(e)},getRefinedDisjunctiveFacets:function(){var e=this,t=s(Object.keys(this.numericRefinements).filter((function(t){return Object.keys(e.numericRefinements[t]).length>0})),this.disjunctiveFacets);return Object.keys(this.disjunctiveFacetsRefinements).filter((function(t){return e.disjunctiveFacetsRefinements[t].length>0})).concat(t).concat(this.getRefinedHierarchicalFacets()).sort()},getRefinedHierarchicalFacets:function(){var e=this;return s(this.hierarchicalFacets.map((function(e){return e.name})),Object.keys(this.hierarchicalFacetsRefinements).filter((function(t){return e.hierarchicalFacetsRefinements[t].length>0}))).sort()},getUnrefinedDisjunctiveFacets:function(){var e=this.getRefinedDisjunctiveFacets();return this.disjunctiveFacets.filter((function(t){return-1===e.indexOf(t)}))},managedParameters:["index","facets","disjunctiveFacets","facetsRefinements","hierarchicalFacets","facetsExcludes","disjunctiveFacetsRefinements","numericRefinements","tagRefinements","hierarchicalFacetsRefinements"],getQueryParams:function(){var e=this.managedParameters,t={},r=this;return Object.keys(this).forEach((function(n){var i=r[n];-1===e.indexOf(n)&&void 0!==i&&(t[n]=i)})),t},setQueryParameter:function(e,t){if(this[e]===t)return this;var r={};return r[e]=t,this.setQueryParameters(r)},setQueryParameters:function(e){if(!e)return this;var t=m.validate(this,e);if(t)throw t;var r=this,n=m._parseNumbers(e),i=Object.keys(this).reduce((function(e,t){return e[t]=r[t],e}),{}),s=Object.keys(n).reduce((function(e,t){var r=void 0!==e[t],i=void 0!==n[t];return r&&!i?o(e,[t]):(i&&(e[t]=n[t]),e)}),i);return new this.constructor(s)},resetPage:function(){return void 0===this.page?this:this.setPage(0)},_getHierarchicalFacetSortBy:function(e){return e.sortBy||["isRefined:desc","name:asc"]},_getHierarchicalFacetSeparator:function(e){return e.separator||" > "},_getHierarchicalRootPath:function(e){return e.rootPath||null},_getHierarchicalShowParentLevel:function(e){return"boolean"!=typeof e.showParentLevel||e.showParentLevel},getHierarchicalFacetByName:function(e){return i(this.hierarchicalFacets,(function(t){return t.name===e}))},getHierarchicalFacetBreadcrumb:function(e){if(!this.isHierarchicalFacet(e))return[];var t=this.getHierarchicalRefinement(e)[0];if(!t)return[];var r=this._getHierarchicalFacetSeparator(this.getHierarchicalFacetByName(e));return t.split(r).map((function(e){return e.trim()}))},toString:function(){return JSON.stringify(this,null,2)}},e.exports=m},6185:(e,t,r)=>{"use strict";e.exports=function(e){return function(t,r){var n=e.hierarchicalFacets[r],u=e.hierarchicalFacetsRefinements[n.name]&&e.hierarchicalFacetsRefinements[n.name][0]||"",h=e._getHierarchicalFacetSeparator(n),f=e._getHierarchicalRootPath(n),l=e._getHierarchicalShowParentLevel(n),m=s(e._getHierarchicalFacetSortBy(n)),d=t.every((function(e){return e.exhaustive})),p=function(e,t,r,n,s){return function(u,h,f){var l=u;if(f>0){var m=0;for(l=u;m{"use strict";var n=r(4317),i=r(8814),s=r(1173),a=r(5241),c=r(5829),o=r(3905),u=r(3744),h=r(1489),f=s.escapeFacetValue,l=s.unescapeFacetValue,m=r(6185);function d(e){var t={};return e.forEach((function(e,r){t[e]=r})),t}function p(e,t,r){t&&t[r]&&(e.stats=t[r])}function g(e,t,r){var s=t[0]||{};this._rawResults=t;var o=this;Object.keys(s).forEach((function(e){o[e]=s[e]}));var h=u({persistHierarchicalRootCount:!1},r);Object.keys(h).forEach((function(e){o[e]=h[e]})),this.processingTimeMS=t.reduce((function(e,t){return void 0===t.processingTimeMS?e:e+t.processingTimeMS}),0),this.disjunctiveFacets=[],this.hierarchicalFacets=e.hierarchicalFacets.map((function(){return[]})),this.facets=[];var f=e.getRefinedDisjunctiveFacets(),g=d(e.facets),v=d(e.disjunctiveFacets),y=1,R=s.facets||{};Object.keys(R).forEach((function(t){var r,n,i=R[t],u=(r=e.hierarchicalFacets,n=t,a(r,(function(e){return(e.attributes||[]).indexOf(n)>-1})));if(u){var h=u.attributes.indexOf(t),f=c(e.hierarchicalFacets,(function(e){return e.name===u.name}));o.hierarchicalFacets[f][h]={attribute:t,data:i,exhaustive:s.exhaustiveFacetsCount}}else{var l,m=-1!==e.disjunctiveFacets.indexOf(t),d=-1!==e.facets.indexOf(t);m&&(l=v[t],o.disjunctiveFacets[l]={name:t,data:i,exhaustive:s.exhaustiveFacetsCount},p(o.disjunctiveFacets[l],s.facets_stats,t)),d&&(l=g[t],o.facets[l]={name:t,data:i,exhaustive:s.exhaustiveFacetsCount},p(o.facets[l],s.facets_stats,t))}})),this.hierarchicalFacets=n(this.hierarchicalFacets),f.forEach((function(r){var n=t[y],a=n&&n.facets?n.facets:{},h=e.getHierarchicalFacetByName(r);Object.keys(a).forEach((function(t){var r,f=a[t];if(h){r=c(e.hierarchicalFacets,(function(e){return e.name===h.name}));var m=c(o.hierarchicalFacets[r],(function(e){return e.attribute===t}));if(-1===m)return;o.hierarchicalFacets[r][m].data=u({},o.hierarchicalFacets[r][m].data,f)}else{r=v[t];var d=s.facets&&s.facets[t]||{};o.disjunctiveFacets[r]={name:t,data:i({},f,d),exhaustive:n.exhaustiveFacetsCount},p(o.disjunctiveFacets[r],n.facets_stats,t),e.disjunctiveFacetsRefinements[t]&&e.disjunctiveFacetsRefinements[t].forEach((function(n){!o.disjunctiveFacets[r].data[n]&&e.disjunctiveFacetsRefinements[t].indexOf(l(n))>-1&&(o.disjunctiveFacets[r].data[n]=0)}))}})),y++})),e.getRefinedHierarchicalFacets().forEach((function(r){var n=e.getHierarchicalFacetByName(r),s=e._getHierarchicalFacetSeparator(n),a=e.getHierarchicalRefinement(r);0===a.length||a[0].split(s).length<2||t.slice(y).forEach((function(t){var r=t&&t.facets?t.facets:{};Object.keys(r).forEach((function(t){var u=r[t],h=c(e.hierarchicalFacets,(function(e){return e.name===n.name})),f=c(o.hierarchicalFacets[h],(function(e){return e.attribute===t}));if(-1!==f){var l={};if(a.length>0&&!o.persistHierarchicalRootCount){var m=a[0].split(s)[0];l[m]=o.hierarchicalFacets[h][f].data[m]}o.hierarchicalFacets[h][f].data=i(l,u,o.hierarchicalFacets[h][f].data)}})),y++}))})),Object.keys(e.facetsExcludes).forEach((function(t){var r=e.facetsExcludes[t],n=g[t];o.facets[n]={name:t,data:R[t],exhaustive:s.exhaustiveFacetsCount},r.forEach((function(e){o.facets[n]=o.facets[n]||{name:t},o.facets[n].data=o.facets[n].data||{},o.facets[n].data[e]=0}))})),this.hierarchicalFacets=this.hierarchicalFacets.map(m(e)),this.facets=n(this.facets),this.disjunctiveFacets=n(this.disjunctiveFacets),this._state=e}function v(e,t){function r(e){return e.name===t}if(e._state.isConjunctiveFacet(t)){var n=a(e.facets,r);return n?Object.keys(n.data).map((function(r){var i=f(r);return{name:r,escapedValue:i,count:n.data[r],isRefined:e._state.isFacetRefined(t,i),isExcluded:e._state.isExcludeRefined(t,r)}})):[]}if(e._state.isDisjunctiveFacet(t)){var i=a(e.disjunctiveFacets,r);return i?Object.keys(i.data).map((function(r){var n=f(r);return{name:r,escapedValue:n,count:i.data[r],isRefined:e._state.isDisjunctiveFacetRefined(t,n)}})):[]}if(e._state.isHierarchicalFacet(t)){var s=a(e.hierarchicalFacets,r);if(!s)return s;var c=e._state.getHierarchicalFacetByName(t),o=e._state._getHierarchicalFacetSeparator(c),u=l(e._state.getHierarchicalRefinement(t)[0]||"");0===u.indexOf(c.rootPath)&&(u=u.replace(c.rootPath+o,""));var h=u.split(o);return h.unshift(t),y(s,h,0),s}}function y(e,t,r){e.isRefined=e.name===(t[r]&&t[r].trim()),e.data&&e.data.forEach((function(e){y(e,t,r+1)}))}function R(e,t,r,n){if(n=n||0,Array.isArray(t))return e(t,r[n]);if(!t.data||0===t.data.length)return t;var s=t.data.map((function(t){return R(e,t,r,n+1)})),a=e(s,r[n]);return i({data:a},t)}function F(e,t){var r=a(e,(function(e){return e.name===t}));return r&&r.stats}function b(e,t,r,n,i){var s=a(i,(function(e){return e.name===r})),c=s&&s.data&&s.data[n]?s.data[n]:0,o=s&&s.exhaustive||!1;return{type:t,attributeName:r,name:n,count:c,exhaustive:o}}g.prototype.getFacetByName=function(e){function t(t){return t.name===e}return a(this.facets,t)||a(this.disjunctiveFacets,t)||a(this.hierarchicalFacets,t)},g.DEFAULT_SORT=["isRefined:desc","count:desc","name:asc"],g.prototype.getFacetValues=function(e,t){var r=v(this,e);if(r){var n,s=i({},t,{sortBy:g.DEFAULT_SORT,facetOrdering:!(t&&t.sortBy)}),a=this;if(Array.isArray(r))n=[e];else n=a._state.getHierarchicalFacetByName(r.name).attributes;return R((function(e,t){if(s.facetOrdering){var r=function(e,t){return e.renderingContent&&e.renderingContent.facetOrdering&&e.renderingContent.facetOrdering.values&&e.renderingContent.facetOrdering.values[t]}(a,t);if(r)return function(e,t){var r=[],n=[],i=t.hide||[],s=(t.order||[]).reduce((function(e,t,r){return e[t]=r,e}),{});e.forEach((function(e){var t=e.path||e.name,a=i.indexOf(t)>-1;a||void 0===s[t]?a||n.push(e):r[s[t]]=e})),r=r.filter((function(e){return e}));var a,c=t.sortRemainingBy;return"hidden"===c?r:(a="alpha"===c?[["path","name"],["asc","asc"]]:[["count"],["desc"]],r.concat(h(n,a[0],a[1])))}(e,r)}if(Array.isArray(s.sortBy)){var n=o(s.sortBy,g.DEFAULT_SORT);return h(e,n[0],n[1])}if("function"==typeof s.sortBy)return function(e,t){return t.sort(e)}(s.sortBy,e);throw new Error("options.sortBy is optional but if defined it must be either an array of string (predicates) or a sorting function")}),r,n)}},g.prototype.getFacetStats=function(e){return this._state.isConjunctiveFacet(e)?F(this.facets,e):this._state.isDisjunctiveFacet(e)?F(this.disjunctiveFacets,e):void 0},g.prototype.getRefinements=function(){var e=this._state,t=this,r=[];return Object.keys(e.facetsRefinements).forEach((function(n){e.facetsRefinements[n].forEach((function(i){r.push(b(e,"facet",n,i,t.facets))}))})),Object.keys(e.facetsExcludes).forEach((function(n){e.facetsExcludes[n].forEach((function(i){r.push(b(e,"exclude",n,i,t.facets))}))})),Object.keys(e.disjunctiveFacetsRefinements).forEach((function(n){e.disjunctiveFacetsRefinements[n].forEach((function(i){r.push(b(e,"disjunctive",n,i,t.disjunctiveFacets))}))})),Object.keys(e.hierarchicalFacetsRefinements).forEach((function(n){e.hierarchicalFacetsRefinements[n].forEach((function(i){r.push(function(e,t,r,n){var i=e.getHierarchicalFacetByName(t),s=e._getHierarchicalFacetSeparator(i),c=r.split(s),o=a(n,(function(e){return e.name===t})),u=c.reduce((function(e,t){var r=e&&a(e.data,(function(e){return e.name===t}));return void 0!==r?r:e}),o),h=u&&u.count||0,f=u&&u.exhaustive||!1,l=u&&u.path||"";return{type:"hierarchical",attributeName:t,name:l,count:h,exhaustive:f}}(e,n,i,t.hierarchicalFacets))}))})),Object.keys(e.numericRefinements).forEach((function(t){var n=e.numericRefinements[t];Object.keys(n).forEach((function(e){n[e].forEach((function(n){r.push({type:"numeric",attributeName:t,name:n,numericValue:n,operator:e})}))}))})),e.tagRefinements.forEach((function(e){r.push({type:"tag",attributeName:"_tags",name:e})})),r},e.exports=g},2099:(e,t,r)=>{"use strict";var n=r(4529),i=r(6484),s=r(1173).escapeFacetValue,a=r(3966),c=r(3744),o=r(7333),u=r(5055),h=r(1903),f=r(4583),l=r(2423),m=r(6579),d=r(5571),p=r(5821),g=r(6674);function v(e,t,r,n){"function"==typeof e.addAlgoliaAgent&&e.addAlgoliaAgent("JS Helper ("+g+")"),this.setClient(e);var i=r||{};i.index=t,this.state=m.make(i),this.recommendState=new h({params:i.recommendState}),this.lastResults=null,this.lastRecommendResults=null,this._queryId=0,this._recommendQueryId=0,this._lastQueryIdReceived=-1,this._lastRecommendQueryIdReceived=-1,this.derivedHelpers=[],this._currentNbQueries=0,this._currentNbRecommendQueries=0,this._searchResultsOptions=n,this._recommendCache={}}function y(e){if(e<0)throw new Error("Page requested below 0.");return this._change({state:this.state.setPage(e),isPageReset:!1}),this}function R(){return this.state.page}a(v,n),v.prototype.search=function(){return this._search({onlyWithDerivedHelpers:!1}),this},v.prototype.searchOnlyWithDerivedHelpers=function(){return this._search({onlyWithDerivedHelpers:!0}),this},v.prototype.recommend=function(){return this._recommend(),this},v.prototype.getQuery=function(){var e=this.state;return l._getHitsSearchParams(e)},v.prototype.searchOnce=function(e,t){var r=e?this.state.setQueryParameters(e):this.state,n=l._getQueries(r.index,r),i=this;if(this._currentNbQueries++,this.emit("searchOnce",{state:r}),!t)return this.client.search(n).then((function(e){return i._currentNbQueries--,0===i._currentNbQueries&&i.emit("searchQueueEmpty"),{content:new d(r,e.results),state:r,_originalResponse:e}}),(function(e){throw i._currentNbQueries--,0===i._currentNbQueries&&i.emit("searchQueueEmpty"),e}));this.client.search(n).then((function(e){i._currentNbQueries--,0===i._currentNbQueries&&i.emit("searchQueueEmpty"),t(null,new d(r,e.results),r)})).catch((function(e){i._currentNbQueries--,0===i._currentNbQueries&&i.emit("searchQueueEmpty"),t(e,null,r)}))},v.prototype.findAnswers=function(e){console.warn("[algoliasearch-helper] answers is no longer supported");var t=this.state,r=this.derivedHelpers[0];if(!r)return Promise.resolve([]);var n=r.getModifiedState(t),i=c({attributesForPrediction:e.attributesForPrediction,nbHits:e.nbHits},{params:u(l._getHitsSearchParams(n),["attributesToSnippet","hitsPerPage","restrictSearchableAttributes","snippetEllipsisText"])}),s="search for answers was called, but this client does not have a function client.initIndex(index).findAnswers";if("function"!=typeof this.client.initIndex)throw new Error(s);var a=this.client.initIndex(n.index);if("function"!=typeof a.findAnswers)throw new Error(s);return a.findAnswers(n.query,e.queryLanguages,i)},v.prototype.searchForFacetValues=function(e,t,r,n){var i="function"==typeof this.client.searchForFacetValues&&"function"!=typeof this.client.searchForFacets,a="function"==typeof this.client.initIndex;if(!i&&!a&&"function"!=typeof this.client.search)throw new Error("search for facet values (searchable) was called, but this client does not have a function client.searchForFacetValues or client.initIndex(index).searchForFacetValues");var c=this.state.setQueryParameters(n||{}),o=c.isDisjunctiveFacet(e),u=l.getSearchForFacetQuery(e,t,r,c);this._currentNbQueries++;var h,f=this;return i?h=this.client.searchForFacetValues([{indexName:c.index,params:u}]):a?h=this.client.initIndex(c.index).searchForFacetValues(u):(delete u.facetName,h=this.client.search([{type:"facet",facet:e,indexName:c.index,params:u}]).then((function(e){return e.results[0]}))),this.emit("searchForFacetValues",{state:c,facet:e,query:t}),h.then((function(t){return f._currentNbQueries--,0===f._currentNbQueries&&f.emit("searchQueueEmpty"),(t=Array.isArray(t)?t[0]:t).facetHits.forEach((function(t){t.escapedValue=s(t.value),t.isRefined=o?c.isDisjunctiveFacetRefined(e,t.escapedValue):c.isFacetRefined(e,t.escapedValue)})),t}),(function(e){throw f._currentNbQueries--,0===f._currentNbQueries&&f.emit("searchQueueEmpty"),e}))},v.prototype.setQuery=function(e){return this._change({state:this.state.resetPage().setQuery(e),isPageReset:!0}),this},v.prototype.clearRefinements=function(e){return this._change({state:this.state.resetPage().clearRefinements(e),isPageReset:!0}),this},v.prototype.clearTags=function(){return this._change({state:this.state.resetPage().clearTags(),isPageReset:!0}),this},v.prototype.addDisjunctiveFacetRefinement=function(e,t){return this._change({state:this.state.resetPage().addDisjunctiveFacetRefinement(e,t),isPageReset:!0}),this},v.prototype.addDisjunctiveRefine=function(){return this.addDisjunctiveFacetRefinement.apply(this,arguments)},v.prototype.addHierarchicalFacetRefinement=function(e,t){return this._change({state:this.state.resetPage().addHierarchicalFacetRefinement(e,t),isPageReset:!0}),this},v.prototype.addNumericRefinement=function(e,t,r){return this._change({state:this.state.resetPage().addNumericRefinement(e,t,r),isPageReset:!0}),this},v.prototype.addFacetRefinement=function(e,t){return this._change({state:this.state.resetPage().addFacetRefinement(e,t),isPageReset:!0}),this},v.prototype.addRefine=function(){return this.addFacetRefinement.apply(this,arguments)},v.prototype.addFacetExclusion=function(e,t){return this._change({state:this.state.resetPage().addExcludeRefinement(e,t),isPageReset:!0}),this},v.prototype.addExclude=function(){return this.addFacetExclusion.apply(this,arguments)},v.prototype.addTag=function(e){return this._change({state:this.state.resetPage().addTagRefinement(e),isPageReset:!0}),this},v.prototype.addFrequentlyBoughtTogether=function(e){return this._recommendChange({state:this.recommendState.addFrequentlyBoughtTogether(e)}),this},v.prototype.addRelatedProducts=function(e){return this._recommendChange({state:this.recommendState.addRelatedProducts(e)}),this},v.prototype.addTrendingItems=function(e){return this._recommendChange({state:this.recommendState.addTrendingItems(e)}),this},v.prototype.addTrendingFacets=function(e){return this._recommendChange({state:this.recommendState.addTrendingFacets(e)}),this},v.prototype.addLookingSimilar=function(e){return this._recommendChange({state:this.recommendState.addLookingSimilar(e)}),this},v.prototype.removeNumericRefinement=function(e,t,r){return this._change({state:this.state.resetPage().removeNumericRefinement(e,t,r),isPageReset:!0}),this},v.prototype.removeDisjunctiveFacetRefinement=function(e,t){return this._change({state:this.state.resetPage().removeDisjunctiveFacetRefinement(e,t),isPageReset:!0}),this},v.prototype.removeDisjunctiveRefine=function(){return this.removeDisjunctiveFacetRefinement.apply(this,arguments)},v.prototype.removeHierarchicalFacetRefinement=function(e){return this._change({state:this.state.resetPage().removeHierarchicalFacetRefinement(e),isPageReset:!0}),this},v.prototype.removeFacetRefinement=function(e,t){return this._change({state:this.state.resetPage().removeFacetRefinement(e,t),isPageReset:!0}),this},v.prototype.removeRefine=function(){return this.removeFacetRefinement.apply(this,arguments)},v.prototype.removeFacetExclusion=function(e,t){return this._change({state:this.state.resetPage().removeExcludeRefinement(e,t),isPageReset:!0}),this},v.prototype.removeExclude=function(){return this.removeFacetExclusion.apply(this,arguments)},v.prototype.removeTag=function(e){return this._change({state:this.state.resetPage().removeTagRefinement(e),isPageReset:!0}),this},v.prototype.removeFrequentlyBoughtTogether=function(e){return this._recommendChange({state:this.recommendState.removeParams(e)}),this},v.prototype.removeRelatedProducts=function(e){return this._recommendChange({state:this.recommendState.removeParams(e)}),this},v.prototype.removeTrendingItems=function(e){return this._recommendChange({state:this.recommendState.removeParams(e)}),this},v.prototype.removeTrendingFacets=function(e){return this._recommendChange({state:this.recommendState.removeParams(e)}),this},v.prototype.removeLookingSimilar=function(e){return this._recommendChange({state:this.recommendState.removeParams(e)}),this},v.prototype.toggleFacetExclusion=function(e,t){return this._change({state:this.state.resetPage().toggleExcludeFacetRefinement(e,t),isPageReset:!0}),this},v.prototype.toggleExclude=function(){return this.toggleFacetExclusion.apply(this,arguments)},v.prototype.toggleRefinement=function(e,t){return this.toggleFacetRefinement(e,t)},v.prototype.toggleFacetRefinement=function(e,t){return this._change({state:this.state.resetPage().toggleFacetRefinement(e,t),isPageReset:!0}),this},v.prototype.toggleRefine=function(){return this.toggleFacetRefinement.apply(this,arguments)},v.prototype.toggleTag=function(e){return this._change({state:this.state.resetPage().toggleTagRefinement(e),isPageReset:!0}),this},v.prototype.nextPage=function(){var e=this.state.page||0;return this.setPage(e+1)},v.prototype.previousPage=function(){var e=this.state.page||0;return this.setPage(e-1)},v.prototype.setCurrentPage=y,v.prototype.setPage=y,v.prototype.setIndex=function(e){return this._change({state:this.state.resetPage().setIndex(e),isPageReset:!0}),this},v.prototype.setQueryParameter=function(e,t){return this._change({state:this.state.resetPage().setQueryParameter(e,t),isPageReset:!0}),this},v.prototype.setState=function(e){return this._change({state:m.make(e),isPageReset:!1}),this},v.prototype.overrideStateWithoutTriggeringChangeEvent=function(e){return this.state=new m(e),this},v.prototype.hasRefinements=function(e){return!!o(this.state.getNumericRefinements(e))||(this.state.isConjunctiveFacet(e)?this.state.isFacetRefined(e):this.state.isDisjunctiveFacet(e)?this.state.isDisjunctiveFacetRefined(e):!!this.state.isHierarchicalFacet(e)&&this.state.isHierarchicalFacetRefined(e))},v.prototype.isExcluded=function(e,t){return this.state.isExcludeRefined(e,t)},v.prototype.isDisjunctiveRefined=function(e,t){return this.state.isDisjunctiveFacetRefined(e,t)},v.prototype.hasTag=function(e){return this.state.isTagRefined(e)},v.prototype.isTagRefined=function(){return this.hasTagRefinements.apply(this,arguments)},v.prototype.getIndex=function(){return this.state.index},v.prototype.getCurrentPage=R,v.prototype.getPage=R,v.prototype.getTags=function(){return this.state.tagRefinements},v.prototype.getRefinements=function(e){var t=[];if(this.state.isConjunctiveFacet(e))this.state.getConjunctiveRefinements(e).forEach((function(e){t.push({value:e,type:"conjunctive"})})),this.state.getExcludeRefinements(e).forEach((function(e){t.push({value:e,type:"exclude"})}));else if(this.state.isDisjunctiveFacet(e)){this.state.getDisjunctiveRefinements(e).forEach((function(e){t.push({value:e,type:"disjunctive"})}))}var r=this.state.getNumericRefinements(e);return Object.keys(r).forEach((function(e){var n=r[e];t.push({value:n,operator:e,type:"numeric"})})),t},v.prototype.getNumericRefinement=function(e,t){return this.state.getNumericRefinement(e,t)},v.prototype.getHierarchicalFacetBreadcrumb=function(e){return this.state.getHierarchicalFacetBreadcrumb(e)},v.prototype._search=function(e){var t=this.state,r=[],n=[];e.onlyWithDerivedHelpers||(n=l._getQueries(t.index,t),r.push({state:t,queriesCount:n.length,helper:this}),this.emit("search",{state:t,results:this.lastResults}));var i=this.derivedHelpers.map((function(e){var n=e.getModifiedState(t),i=n.index?l._getQueries(n.index,n):[];return r.push({state:n,queriesCount:i.length,helper:e}),e.emit("search",{state:n,results:e.lastResults}),i})),s=Array.prototype.concat.apply(n,i),a=this._queryId++;if(this._currentNbQueries++,!s.length)return Promise.resolve({results:[]}).then(this._dispatchAlgoliaResponse.bind(this,r,a));try{this.client.search(s).then(this._dispatchAlgoliaResponse.bind(this,r,a)).catch(this._dispatchAlgoliaError.bind(this,a))}catch(c){this.emit("error",{error:c})}},v.prototype._recommend=function(){var e=this.state,t=this.recommendState,r=this.getIndex(),n=[{state:t,index:r,helper:this}],i=t.params.map((function(e){return e.$$id}));this.emit("fetch",{recommend:{state:t,results:this.lastRecommendResults}});var s=this._recommendCache,a=this.derivedHelpers.map((function(t){var r=t.getModifiedState(e).index;if(!r)return[];var a=t.getModifiedRecommendState(new h);return n.push({state:a,index:r,helper:t}),i=Array.prototype.concat.apply(i,a.params.map((function(e){return e.$$id}))),t.emit("fetch",{recommend:{state:a,results:t.lastRecommendResults}}),a._buildQueries(r,s)})),c=Array.prototype.concat.apply(this.recommendState._buildQueries(r,s),a);if(0!==c.length)if(c.length>0&&void 0===this.client.getRecommendations)console.warn("Please update algoliasearch/lite to the latest version in order to use recommend widgets.");else{var o=this._recommendQueryId++;this._currentNbRecommendQueries++;try{this.client.getRecommendations(c).then(this._dispatchRecommendResponse.bind(this,o,n,i)).catch(this._dispatchRecommendError.bind(this,o))}catch(u){this.emit("error",{error:u})}}},v.prototype._dispatchAlgoliaResponse=function(e,t,r){var n=this;if(!(t0},v.prototype._change=function(e){var t=e.state,r=e.isPageReset;t!==this.state&&(this.state=t,this.emit("change",{state:this.state,results:this.lastResults,isPageReset:r}))},v.prototype._recommendChange=function(e){var t=e.state;t!==this.recommendState&&(this.recommendState=t,this.emit("recommend:change",{search:{results:this.lastResults,state:this.state},recommend:{results:this.lastRecommendResults,state:this.recommendState}}))},v.prototype.clearCache=function(){return this.client.clearCache&&this.client.clearCache(),this},v.prototype.setClient=function(e){return this.client===e||("function"==typeof e.addAlgoliaAgent&&e.addAlgoliaAgent("JS Helper ("+g+")"),this.client=e),this},v.prototype.getClient=function(){return this.client},v.prototype.derive=function(e,t){var r=new i(this,e,t);return this.derivedHelpers.push(r),r},v.prototype.detachDerivedHelper=function(e){var t=this.derivedHelpers.indexOf(e);if(-1===t)throw new Error("Derived helper already detached");this.derivedHelpers.splice(t,1)},v.prototype.hasPendingRequests=function(){return this._currentNbQueries>0},e.exports=v},4317:e=>{"use strict";e.exports=function(e){return Array.isArray(e)?e.filter(Boolean):[]}},8814:e=>{"use strict";e.exports=function(){return Array.prototype.slice.call(arguments).reduceRight((function(e,t){return Object.keys(Object(t)).forEach((function(r){void 0!==t[r]&&(void 0!==e[r]&&delete e[r],e[r]=t[r])})),e}),{})}},1173:e=>{"use strict";e.exports={escapeFacetValue:function(e){return"string"!=typeof e?e:String(e).replace(/^-/,"\\-")},unescapeFacetValue:function(e){return"string"!=typeof e?e:e.replace(/^\\-/,"-")}}},5241:e=>{"use strict";e.exports=function(e,t){if(Array.isArray(e))for(var r=0;r{"use strict";e.exports=function(e,t){if(!Array.isArray(e))return-1;for(var r=0;r{e.exports=function(e){return e.reduce((function(e,t){return e.concat(t)}),[])}},3905:(e,t,r)=>{"use strict";var n=r(5241);e.exports=function(e,t){var r=(t||[]).map((function(e){return e.split(":")}));return e.reduce((function(e,t){var i=t.split(":"),s=n(r,(function(e){return e[0]===i[0]}));return i.length>1||!s?(e[0].push(i[0]),e[1].push(i[1]),e):(e[0].push(s[0]),e[1].push(s[1]),e)}),[[],[]])}},3966:e=>{"use strict";e.exports=function(e,t){e.prototype=Object.create(t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}})}},6739:e=>{"use strict";e.exports=function(e,t){return e.filter((function(r,n){return t.indexOf(r)>-1&&e.indexOf(r)===n}))}},3744:e=>{"use strict";function t(e){return"function"==typeof e||Array.isArray(e)||"[object Object]"===Object.prototype.toString.call(e)}function r(e,n){if(e===n)return e;for(var i in n)if(Object.prototype.hasOwnProperty.call(n,i)&&"__proto__"!==i&&"constructor"!==i){var s=n[i],a=e[i];void 0!==a&&void 0===s||(t(a)&&t(s)?e[i]=r(a,s):e[i]="object"==typeof(c=s)&&null!==c?r(Array.isArray(c)?[]:{},c):c)}var c;return e}e.exports=function(e){t(e)||(e={});for(var n=1,i=arguments.length;n{"use strict";e.exports=function(e){return e&&Object.keys(e).length>0}},5055:e=>{"use strict";e.exports=function(e,t){if(null===e)return{};var r,n,i={},s=Object.keys(e);for(n=0;n=0||(i[r]=e[r]);return i}},1489:e=>{"use strict";function t(e,t){if(e!==t){var r=void 0!==e,n=null===e,i=void 0!==t,s=null===t;if(!s&&e>t||n&&i||!r)return 1;if(!n&&e=n.length?s:"desc"===n[i]?-s:s}return e.index-r.index})),i.map((function(e){return e.value}))}},3467:e=>{"use strict";e.exports=function e(t){if("number"==typeof t)return t;if("string"==typeof t)return parseFloat(t);if(Array.isArray(t))return t.map(e);throw new Error("The value should be a number, a parsable string or an array of those.")}},2423:(e,t,r)=>{"use strict";var n=r(3744);function i(e){return Object.keys(e).sort().reduce((function(t,r){return t[r]=e[r],t}),{})}var s={_getQueries:function(e,t){var r=[];return r.push({indexName:e,params:s._getHitsSearchParams(t)}),t.getRefinedDisjunctiveFacets().forEach((function(n){r.push({indexName:e,params:s._getDisjunctiveFacetSearchParams(t,n)})})),t.getRefinedHierarchicalFacets().forEach((function(n){var i=t.getHierarchicalFacetByName(n),a=t.getHierarchicalRefinement(n),c=t._getHierarchicalFacetSeparator(i);if(a.length>0&&a[0].split(c).length>1){var o=a[0].split(c).slice(0,-1).reduce((function(e,t,r){return e.concat({attribute:i.attributes[r],value:0===r?t:[e[e.length-1].value,t].join(c)})}),[]);o.forEach((function(n,a){var c=s._getDisjunctiveFacetSearchParams(t,n.attribute,0===a);function u(e){return i.attributes.some((function(t){return t===e.split(":")[0]}))}var h=(c.facetFilters||[]).reduce((function(e,t){if(Array.isArray(t)){var r=t.filter((function(e){return!u(e)}));r.length>0&&e.push(r)}return"string"!=typeof t||u(t)||e.push(t),e}),[]),f=o[a-1];a>0?c.facetFilters=h.concat(f.attribute+":"+f.value):h.length>0?c.facetFilters=h:delete c.facetFilters,r.push({indexName:e,params:c})}))}})),r},_getHitsSearchParams:function(e){var t=e.facets.concat(e.disjunctiveFacets).concat(s._getHitsHierarchicalFacetsAttributes(e)).sort(),r=s._getFacetFilters(e),a=s._getNumericFilters(e),c=s._getTagFilters(e),o={};return t.length>0&&(o.facets=t.indexOf("*")>-1?["*"]:t),c.length>0&&(o.tagFilters=c),r.length>0&&(o.facetFilters=r),a.length>0&&(o.numericFilters=a),i(n({},e.getQueryParams(),o))},_getDisjunctiveFacetSearchParams:function(e,t,r){var a=s._getFacetFilters(e,t,r),c=s._getNumericFilters(e,t),o=s._getTagFilters(e),u={hitsPerPage:0,page:0,analytics:!1,clickAnalytics:!1};o.length>0&&(u.tagFilters=o);var h=e.getHierarchicalFacetByName(t);return u.facets=h?s._getDisjunctiveHierarchicalFacetAttribute(e,h,r):t,c.length>0&&(u.numericFilters=c),a.length>0&&(u.facetFilters=a),i(n({},e.getQueryParams(),u))},_getNumericFilters:function(e,t){if(e.numericFilters)return e.numericFilters;var r=[];return Object.keys(e.numericRefinements).forEach((function(n){var i=e.numericRefinements[n]||{};Object.keys(i).forEach((function(e){var s=i[e]||[];t!==n&&s.forEach((function(t){if(Array.isArray(t)){var i=t.map((function(t){return n+e+t}));r.push(i)}else r.push(n+e+t)}))}))})),r},_getTagFilters:function(e){return e.tagFilters?e.tagFilters:e.tagRefinements.join(",")},_getFacetFilters:function(e,t,r){var n=[],i=e.facetsRefinements||{};Object.keys(i).sort().forEach((function(e){(i[e]||[]).slice().sort().forEach((function(t){n.push(e+":"+t)}))}));var s=e.facetsExcludes||{};Object.keys(s).sort().forEach((function(e){(s[e]||[]).sort().forEach((function(t){n.push(e+":-"+t)}))}));var a=e.disjunctiveFacetsRefinements||{};Object.keys(a).sort().forEach((function(e){var r=a[e]||[];if(e!==t&&r&&0!==r.length){var i=[];r.slice().sort().forEach((function(t){i.push(e+":"+t)})),n.push(i)}}));var c=e.hierarchicalFacetsRefinements||{};return Object.keys(c).sort().forEach((function(i){var s=(c[i]||[])[0];if(void 0!==s){var a,o,u=e.getHierarchicalFacetByName(i),h=e._getHierarchicalFacetSeparator(u),f=e._getHierarchicalRootPath(u);if(t===i){if(-1===s.indexOf(h)||!f&&!0===r||f&&f.split(h).length===s.split(h).length)return;f?(o=f.split(h).length-1,s=f):(o=s.split(h).length-2,s=s.slice(0,s.lastIndexOf(h))),a=u.attributes[o]}else o=s.split(h).length-1,a=u.attributes[o];a&&n.push([a+":"+s])}})),n},_getHitsHierarchicalFacetsAttributes:function(e){return e.hierarchicalFacets.reduce((function(t,r){var n=e.getHierarchicalRefinement(r.name)[0];if(!n)return t.push(r.attributes[0]),t;var i=e._getHierarchicalFacetSeparator(r),s=n.split(i).length,a=r.attributes.slice(0,s+1);return t.concat(a)}),[])},_getDisjunctiveHierarchicalFacetAttribute:function(e,t,r){var n=e._getHierarchicalFacetSeparator(t);if(!0===r){var i=e._getHierarchicalRootPath(t),s=0;return i&&(s=i.split(n).length),[t.attributes[s]]}var a=(e.getHierarchicalRefinement(t.name)[0]||"").split(n).length-1;return t.attributes.slice(0,a+1)},getSearchForFacetQuery:function(e,t,r,a){var c=a.isDisjunctiveFacet(e)?a.clearRefinements(e):a,o={facetQuery:t,facetName:e};return"number"==typeof r&&(o.maxFacetHits=r),i(n({},s._getHitsSearchParams(c),o))}};e.exports=s},9592:e=>{"use strict";e.exports=function(e){return null!==e&&/^[a-zA-Z0-9_-]{1,64}$/.test(e)}},5821:(e,t,r)=>{"use strict";var n=r(5241),i=r(5897);e.exports=function(e){var t={};return e.forEach((function(e){e.forEach((function(e,r){t[e.objectID]?t[e.objectID]={indexSum:t[e.objectID].indexSum+r,count:t[e.objectID].count+1}:t[e.objectID]={indexSum:r,count:1}}))})),function(e,t){var r=[];return Object.keys(e).forEach((function(n){e[n].count<2&&(e[n].indexSum+=100),r.push({objectID:n,avgOfIndices:e[n].indexSum/t})})),r.sort((function(e,t){return e.avgOfIndices>t.avgOfIndices?1:-1}))}(t,e.length).reduce((function(t,r){var s=n(i(e),(function(e){return e.objectID===r.objectID}));return s?t.concat(s):t}),[])}},6674:e=>{"use strict";e.exports="3.22.5"},4966:function(e){e.exports=function(){"use strict";function e(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function t(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function r(r){for(var n=1;n=0||(i[r]=e[r]);return i}(e,t);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(e);for(n=0;n=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(i[r]=e[r])}return i}function i(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if(Symbol.iterator in Object(e)||"[object Arguments]"===Object.prototype.toString.call(e)){var r=[],n=!0,i=!1,s=void 0;try{for(var a,c=e[Symbol.iterator]();!(n=(a=c.next()).done)&&(r.push(a.value),!t||r.length!==t);n=!0);}catch(e){i=!0,s=e}finally{try{n||null==c.return||c.return()}finally{if(i)throw s}}return r}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}()}function s(e){return function(e){if(Array.isArray(e)){for(var t=0,r=new Array(e.length);t2&&void 0!==arguments[2]?arguments[2]:{miss:function(){return Promise.resolve()}};return Promise.resolve().then((function(){c();var t=JSON.stringify(e);return s()[t]})).then((function(e){return Promise.all([e?e.value:t(),void 0!==e])})).then((function(e){var t=i(e,2),n=t[0],s=t[1];return Promise.all([n,s||r.miss(n)])})).then((function(e){return i(e,1)[0]}))},set:function(e,t){return Promise.resolve().then((function(){var i=s();return i[JSON.stringify(e)]={timestamp:(new Date).getTime(),value:t},n().setItem(r,JSON.stringify(i)),t}))},delete:function(e){return Promise.resolve().then((function(){var t=s();delete t[JSON.stringify(e)],n().setItem(r,JSON.stringify(t))}))},clear:function(){return Promise.resolve().then((function(){n().removeItem(r)}))}}}function c(e){var t=s(e.caches),r=t.shift();return void 0===r?{get:function(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{miss:function(){return Promise.resolve()}};return t().then((function(e){return Promise.all([e,r.miss(e)])})).then((function(e){return i(e,1)[0]}))},set:function(e,t){return Promise.resolve(t)},delete:function(e){return Promise.resolve()},clear:function(){return Promise.resolve()}}:{get:function(e,n){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{miss:function(){return Promise.resolve()}};return r.get(e,n,i).catch((function(){return c({caches:t}).get(e,n,i)}))},set:function(e,n){return r.set(e,n).catch((function(){return c({caches:t}).set(e,n)}))},delete:function(e){return r.delete(e).catch((function(){return c({caches:t}).delete(e)}))},clear:function(){return r.clear().catch((function(){return c({caches:t}).clear()}))}}}function o(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{serializable:!0},t={};return{get:function(r,n){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{miss:function(){return Promise.resolve()}},s=JSON.stringify(r);if(s in t)return Promise.resolve(e.serializable?JSON.parse(t[s]):t[s]);var a=n(),c=i&&i.miss||function(){return Promise.resolve()};return a.then((function(e){return c(e)})).then((function(){return a}))},set:function(r,n){return t[JSON.stringify(r)]=e.serializable?JSON.stringify(n):n,Promise.resolve(n)},delete:function(e){return delete t[JSON.stringify(e)],Promise.resolve()},clear:function(){return t={},Promise.resolve()}}}function u(e){for(var t=e.length-1;t>0;t--){var r=Math.floor(Math.random()*(t+1)),n=e[t];e[t]=e[r],e[r]=n}return e}function h(e,t){return t?(Object.keys(t).forEach((function(r){e[r]=t[r](e)})),e):e}function f(e){for(var t=arguments.length,r=new Array(t>1?t-1:0),n=1;n0?n:void 0,timeout:r.timeout||t,headers:r.headers||{},queryParameters:r.queryParameters||{},cacheable:r.cacheable}}var d={Read:1,Write:2,Any:3},p=1,g=2,v=3;function y(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:p;return r(r({},e),{},{status:t,lastUpdate:Date.now()})}function R(e){return"string"==typeof e?{protocol:"https",url:e,accept:d.Any}:{protocol:e.protocol||"https",url:e.url,accept:e.accept||d.Any}}var F="GET",b="POST";function j(e,t){return Promise.all(t.map((function(t){return e.get(t,(function(){return Promise.resolve(y(t))}))}))).then((function(e){var r=e.filter((function(e){return function(e){return e.status===p||Date.now()-e.lastUpdate>12e4}(e)})),n=e.filter((function(e){return function(e){return e.status===v&&Date.now()-e.lastUpdate<=12e4}(e)})),i=[].concat(s(r),s(n));return{getTimeout:function(e,t){return(0===n.length&&0===e?1:n.length+3+e)*t},statelessHosts:i.length>0?i.map((function(e){return R(e)})):t}}))}function _(e,t,n,i){var a=[],c=function(e,t){if(e.method!==F&&(void 0!==e.data||void 0!==t.data)){var n=Array.isArray(e.data)?e.data:r(r({},e.data),t.data);return JSON.stringify(n)}}(n,i),o=function(e,t){var n=r(r({},e.headers),t.headers),i={};return Object.keys(n).forEach((function(e){var t=n[e];i[e.toLowerCase()]=t})),i}(e,i),u=n.method,h=n.method!==F?{}:r(r({},n.data),i.data),f=r(r(r({"x-algolia-agent":e.userAgent.value},e.queryParameters),h),i.queryParameters),l=0,m=function t(r,s){var h=r.pop();if(void 0===h)throw{name:"RetryError",message:"Unreachable hosts - your application id may be incorrect. If the error persists, please reach out to the Algolia Support team: https://alg.li/support .",transporterStackTrace:O(a)};var m={data:c,headers:o,method:u,url:x(h,n.path,f),connectTimeout:s(l,e.timeouts.connect),responseTimeout:s(l,i.timeout)},d=function(e){var t={request:m,response:e,host:h,triesLeft:r.length};return a.push(t),t},p={onSuccess:function(e){return function(e){try{return JSON.parse(e.content)}catch(t){throw function(e,t){return{name:"DeserializationError",message:e,response:t}}(t.message,e)}}(e)},onRetry:function(n){var i=d(n);return n.isTimedOut&&l++,Promise.all([e.logger.info("Retryable failure",w(i)),e.hostsCache.set(h,y(h,n.isTimedOut?v:g))]).then((function(){return t(r,s)}))},onFail:function(e){throw d(e),function(e,t){var r=e.content,n=e.status,i=r;try{i=JSON.parse(r).message}catch(e){}return function(e,t,r){return{name:"ApiError",message:e,status:t,transporterStackTrace:r}}(i,n,t)}(e,O(a))}};return e.requester.send(m).then((function(e){return function(e,t){return function(e){var t=e.status;return e.isTimedOut||function(e){var t=e.isTimedOut,r=e.status;return!t&&!~~r}(e)||2!=~~(t/100)&&4!=~~(t/100)}(e)?t.onRetry(e):2==~~(e.status/100)?t.onSuccess(e):t.onFail(e)}(e,p)}))};return j(e.hostsCache,t).then((function(e){return m(s(e.statelessHosts).reverse(),e.getTimeout)}))}function P(e){var t={value:"Algolia for JavaScript (".concat(e,")"),add:function(e){var r="; ".concat(e.segment).concat(void 0!==e.version?" (".concat(e.version,")"):"");return-1===t.value.indexOf(r)&&(t.value="".concat(t.value).concat(r)),t}};return t}function x(e,t,r){var n=E(r),i="".concat(e.protocol,"://").concat(e.url,"/").concat("/"===t.charAt(0)?t.substr(1):t);return n.length&&(i+="?".concat(n)),i}function E(e){return Object.keys(e).map((function(t){return f("%s=%s",t,(r=e[t],"[object Object]"===Object.prototype.toString.call(r)||"[object Array]"===Object.prototype.toString.call(r)?JSON.stringify(e[t]):e[t]));var r})).join("&")}function O(e){return e.map((function(e){return w(e)}))}function w(e){var t=e.request.headers["x-algolia-api-key"]?{"x-algolia-api-key":"*****"}:{};return r(r({},e),{},{request:r(r({},e.request),{},{headers:r(r({},e.request.headers),t)})})}var S=function(e){var t=e.appId,n=function(e,t,r){var n={"x-algolia-api-key":r,"x-algolia-application-id":t};return{headers:function(){return e===l.WithinHeaders?n:{}},queryParameters:function(){return e===l.WithinQueryParameters?n:{}}}}(void 0!==e.authMode?e.authMode:l.WithinHeaders,t,e.apiKey),s=function(e){var t=e.hostsCache,r=e.logger,n=e.requester,s=e.requestsCache,a=e.responsesCache,c=e.timeouts,o=e.userAgent,u=e.hosts,h=e.queryParameters,f={hostsCache:t,logger:r,requester:n,requestsCache:s,responsesCache:a,timeouts:c,userAgent:o,headers:e.headers,queryParameters:h,hosts:u.map((function(e){return R(e)})),read:function(e,t){var r=m(t,f.timeouts.read),n=function(){return _(f,f.hosts.filter((function(e){return!!(e.accept&d.Read)})),e,r)};if(!0!==(void 0!==r.cacheable?r.cacheable:e.cacheable))return n();var s={request:e,mappedRequestOptions:r,transporter:{queryParameters:f.queryParameters,headers:f.headers}};return f.responsesCache.get(s,(function(){return f.requestsCache.get(s,(function(){return f.requestsCache.set(s,n()).then((function(e){return Promise.all([f.requestsCache.delete(s),e])}),(function(e){return Promise.all([f.requestsCache.delete(s),Promise.reject(e)])})).then((function(e){var t=i(e,2);return t[0],t[1]}))}))}),{miss:function(e){return f.responsesCache.set(s,e)}})},write:function(e,t){return _(f,f.hosts.filter((function(e){return!!(e.accept&d.Write)})),e,m(t,f.timeouts.write))}};return f}(r(r({hosts:[{url:"".concat(t,"-dsn.algolia.net"),accept:d.Read},{url:"".concat(t,".algolia.net"),accept:d.Write}].concat(u([{url:"".concat(t,"-1.algolianet.com")},{url:"".concat(t,"-2.algolianet.com")},{url:"".concat(t,"-3.algolianet.com")}]))},e),{},{headers:r(r(r({},n.headers()),{"content-type":"application/x-www-form-urlencoded"}),e.headers),queryParameters:r(r({},n.queryParameters()),e.queryParameters)}));return h({transporter:s,appId:t,addAlgoliaAgent:function(e,t){s.userAgent.add({segment:e,version:t})},clearCache:function(){return Promise.all([s.requestsCache.clear(),s.responsesCache.clear()]).then((function(){}))}},e.methods)},A=function(e){return function(t,r){return t.method===F?e.transporter.read(t,r):e.transporter.write(t,r)}},N=function(e){return function(t){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return h({transporter:e.transporter,appId:e.appId,indexName:t},r.methods)}},T=function(e){return function(t,n){var i=t.map((function(e){return r(r({},e),{},{params:E(e.params||{})})}));return e.transporter.read({method:b,path:"1/indexes/*/queries",data:{requests:i},cacheable:!0},n)}},Q=function(e){return function(t,i){return Promise.all(t.map((function(t){var s=t.params,a=s.facetName,c=s.facetQuery,o=n(s,["facetName","facetQuery"]);return N(e)(t.indexName,{methods:{searchForFacetValues:I}}).searchForFacetValues(a,c,r(r({},i),o))})))}},H=function(e){return function(t,r,n){return e.transporter.read({method:b,path:f("1/answers/%s/prediction",e.indexName),data:{query:t,queryLanguages:r},cacheable:!0},n)}},C=function(e){return function(t,r){return e.transporter.read({method:b,path:f("1/indexes/%s/query",e.indexName),data:{query:t},cacheable:!0},r)}},I=function(e){return function(t,r,n){return e.transporter.read({method:b,path:f("1/indexes/%s/facets/%s/query",e.indexName,t),data:{facetQuery:r},cacheable:!0},n)}},D=1,k=2,q=3,L=function(e){return function(t,n){var i=t.map((function(e){return r(r({},e),{},{threshold:e.threshold||0})}));return e.transporter.read({method:b,path:"1/indexes/*/recommendations",data:{requests:i},cacheable:!0},n)}};function V(e,t,n){var i,s={appId:e,apiKey:t,timeouts:{connect:1,read:2,write:30},requester:{send:function(e){return new Promise((function(t){var r=new XMLHttpRequest;r.open(e.method,e.url,!0),Object.keys(e.headers).forEach((function(t){return r.setRequestHeader(t,e.headers[t])}));var n,i=function(e,n){return setTimeout((function(){r.abort(),t({status:0,content:n,isTimedOut:!0})}),1e3*e)},s=i(e.connectTimeout,"Connection timeout");r.onreadystatechange=function(){r.readyState>r.OPENED&&void 0===n&&(clearTimeout(s),n=i(e.responseTimeout,"Socket timeout"))},r.onerror=function(){0===r.status&&(clearTimeout(s),clearTimeout(n),t({content:r.responseText||"Network request failed",status:r.status,isTimedOut:!1}))},r.onload=function(){clearTimeout(s),clearTimeout(n),t({content:r.responseText,status:r.status,isTimedOut:!1})},r.send(e.data)}))}},logger:(i=q,{debug:function(e,t){return D>=i&&console.debug(e,t),Promise.resolve()},info:function(e,t){return k>=i&&console.info(e,t),Promise.resolve()},error:function(e,t){return console.error(e,t),Promise.resolve()}}),responsesCache:o(),requestsCache:o({serializable:!1}),hostsCache:c({caches:[a({key:"".concat("4.24.0","-").concat(e)}),o()]}),userAgent:P("4.24.0").add({segment:"Browser",version:"lite"}),authMode:l.WithinQueryParameters};return S(r(r(r({},s),n),{},{methods:{search:T,searchForFacetValues:Q,multipleQueries:T,multipleSearchForFacetValues:Q,customRequest:A,initIndex:function(e){return function(t){return N(e)(t,{methods:{search:C,searchForFacetValues:I,findAnswers:H}})}},getRecommendations:L}}))}return V.version="4.24.0",V}()},4089:(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>T});var n=r(7378),i=r(3372),s=r(6479),a=r.n(s),c=r(4966),o=r.n(c),u=r(6419),h=r(8202),f=r(652),l=r(6329),m=r(6228);const d=["zero","one","two","few","many","other"];function p(e){return d.filter((t=>e.includes(t)))}const g={locale:"en",pluralForms:p(["one","other"]),select:e=>1===e?"one":"other"};function v(){const{i18n:{currentLocale:e}}=(0,m.A)();return(0,n.useMemo)((()=>{try{return function(e){const t=new Intl.PluralRules(e);return{locale:e,pluralForms:p(t.resolvedOptions().pluralCategories),select:e=>t.select(e)}}(e)}catch(t){return console.error(`Failed to use Intl.PluralRules for locale "${e}".\nDocusaurus will fallback to the default (English) implementation.\nError: ${t.message}\n`),g}}),[e])}function y(){const e=v();return{selectMessage:(t,r)=>function(e,t,r){const n=e.split("|");if(1===n.length)return n[0];n.length>r.pluralForms.length&&console.error(`For locale=${r.locale}, a maximum of ${r.pluralForms.length} plural forms are expected (${r.pluralForms.join(",")}), but the message contains ${n.length}: ${e}`);const i=r.select(t),s=r.pluralForms.indexOf(i);return n[Math.min(s,n.length-1)]}(r,t,e)}}var R=r(6201),F=r(3494),b=r(1217),j=r(4623),_=r(3892),P=r(7011),x=r(8895),E=r(8458),O=r(9032);const w={searchQueryInput:"searchQueryInput_ISfi",searchVersionInput:"searchVersionInput_kF_k",searchResultsColumn:"searchResultsColumn_lS2A",algoliaLogo:"algoliaLogo_E52w",algoliaLogoPathFill:"algoliaLogoPathFill_iXnF",searchResultItem:"searchResultItem_DkoN",searchResultItemHeading:"searchResultItemHeading_kgxq",searchResultItemPath:"searchResultItemPath_TIJI",searchResultItemSummary:"searchResultItemSummary_qD5k",searchQueryColumn:"searchQueryColumn_EwZm",searchVersionColumn:"searchVersionColumn_ysYg",searchLogoColumn:"searchLogoColumn_rCCn",loadingSpinner:"loadingSpinner_TNi7","loading-spin":"loading-spin_P3cm",loader:"loader_RCTQ"};var S=r(6106);function A(e){let{docsSearchVersionsHelpers:t}=e;const r=Object.entries(t.allDocsData).filter((e=>{let[,t]=e;return t.versions.length>1}));return(0,S.jsx)("div",{className:(0,i.A)("col","col--3","padding-left--none",w.searchVersionColumn),children:r.map((e=>{let[n,i]=e;const s=r.length>1?`${n}: `:"";return(0,S.jsx)("select",{onChange:e=>t.setSearchVersion(n,e.target.value),defaultValue:t.searchVersions[n],className:w.searchVersionInput,children:i.versions.map(((e,t)=>(0,S.jsx)("option",{label:`${s}${e.label}`,value:e.name},t)))},n)}))})}function N(){const{i18n:{currentLocale:e}}=(0,m.A)(),{algolia:{appId:t,apiKey:r,indexName:s,contextualSearch:c}}=(0,P.c)(),d=(0,x.C)(),p=function(){const{selectMessage:e}=y();return t=>e(t,(0,_.T)({id:"theme.SearchPage.documentsFound.plurals",description:'Pluralized label for "{count} documents found". Use as much plural forms (separated by "|") as your language support (see https://www.unicode.org/cldr/cldr-aux/charts/34/supplemental/language_plural_rules.html)',message:"One document found|{count} documents found"},{count:t}))}(),g=function(){const e=(0,l.Gy)(),[t,r]=(0,n.useState)((()=>Object.entries(e).reduce(((e,t)=>{let[r,n]=t;return{...e,[r]:n.versions[0].name}}),{}))),i=Object.values(e).some((e=>e.versions.length>1));return{allDocsData:e,versioningEnabled:i,searchVersions:t,setSearchVersion:(e,t)=>r((r=>({...r,[e]:t})))}}(),[v,b]=(0,R.b)(),N={items:[],query:null,totalResults:null,totalPages:null,lastPage:null,hasMore:null,loading:null},[T,Q]=(0,n.useReducer)(((e,t)=>{switch(t.type){case"reset":return N;case"loading":return{...e,loading:!0};case"update":return v!==t.value.query?e:{...t.value,items:0===t.value.lastPage?t.value.items:e.items.concat(t.value.items)};case"advance":{const t=e.totalPages>e.lastPage+1;return{...e,lastPage:t?e.lastPage+1:e.lastPage,hasMore:t}}default:return e}}),N),H=c?["language","docusaurus_tag"]:[],C=o()(t,r),I=a()(C,s,{hitsPerPage:15,advancedSyntax:!0,disjunctiveFacets:H});I.on("result",(e=>{let{results:{query:t,hits:r,page:n,nbHits:i,nbPages:s}}=e;if(""===t||!Array.isArray(r))return void Q({type:"reset"});const a=e=>e.replace(/algolia-docsearch-suggestion--highlight/g,"search-result-match"),c=r.map((e=>{let{url:t,_highlightResult:{hierarchy:r},_snippetResult:n={}}=e;const i=Object.keys(r).map((e=>a(r[e].value)));return{title:i.pop(),url:d(t),summary:n.content?`${a(n.content.value)}...`:"",breadcrumbs:i}}));Q({type:"update",value:{items:c,query:t,totalResults:i,totalPages:s,lastPage:n,hasMore:s>n+1,loading:!1}})}));const[D,k]=(0,n.useState)(null),q=(0,n.useRef)(0),L=(0,n.useRef)(u.A.canUseIntersectionObserver&&new IntersectionObserver((e=>{const{isIntersecting:t,boundingClientRect:{y:r}}=e[0];t&&q.current>r&&Q({type:"advance"}),q.current=r}),{threshold:1})),V=()=>v?(0,_.T)({id:"theme.SearchPage.existingResultsTitle",message:'Search results for "{query}"',description:"The search page title for non-empty query"},{query:v}):(0,_.T)({id:"theme.SearchPage.emptyResultsTitle",message:"Search the documentation",description:"The search page title for empty query"}),B=(0,F._q)((function(t){void 0===t&&(t=0),c&&(I.addDisjunctiveFacetRefinement("docusaurus_tag","default"),I.addDisjunctiveFacetRefinement("language",e),Object.entries(g.searchVersions).forEach((e=>{let[t,r]=e;I.addDisjunctiveFacetRefinement("docusaurus_tag",`docs-${t}-${r}`)}))),I.setQuery(v).setPage(t).search()}));return(0,n.useEffect)((()=>{if(!D)return;const e=L.current;return e?(e.observe(D),()=>e.unobserve(D)):()=>!0}),[D]),(0,n.useEffect)((()=>{Q({type:"reset"}),v&&(Q({type:"loading"}),setTimeout((()=>{B()}),300))}),[v,g.searchVersions,B]),(0,n.useEffect)((()=>{T.lastPage&&0!==T.lastPage&&B(T.lastPage)}),[B,T.lastPage]),(0,S.jsxs)(E.A,{children:[(0,S.jsxs)(h.A,{children:[(0,S.jsx)("title",{children:(0,j.s)(V())}),(0,S.jsx)("meta",{property:"robots",content:"noindex, follow"})]}),(0,S.jsxs)("div",{className:"container margin-vert--lg",children:[(0,S.jsx)(O.A,{as:"h1",children:V()}),(0,S.jsxs)("form",{className:"row",onSubmit:e=>e.preventDefault(),children:[(0,S.jsx)("div",{className:(0,i.A)("col",w.searchQueryColumn,{"col--9":g.versioningEnabled,"col--12":!g.versioningEnabled}),children:(0,S.jsx)("input",{type:"search",name:"q",className:w.searchQueryInput,placeholder:(0,_.T)({id:"theme.SearchPage.inputPlaceholder",message:"Type your search here",description:"The placeholder for search page input"}),"aria-label":(0,_.T)({id:"theme.SearchPage.inputLabel",message:"Search",description:"The ARIA label for search page input"}),onChange:e=>b(e.target.value),value:v,autoComplete:"off",autoFocus:!0})}),c&&g.versioningEnabled&&(0,S.jsx)(A,{docsSearchVersionsHelpers:g})]}),(0,S.jsxs)("div",{className:"row",children:[(0,S.jsx)("div",{className:(0,i.A)("col","col--8",w.searchResultsColumn),children:!!T.totalResults&&p(T.totalResults)}),(0,S.jsx)("div",{className:(0,i.A)("col","col--4","text--right",w.searchLogoColumn),children:(0,S.jsx)(f.A,{to:"https://www.algolia.com/","aria-label":(0,_.T)({id:"theme.SearchPage.algoliaLabel",message:"Search by Algolia",description:"The ARIA label for Algolia mention"}),children:(0,S.jsx)("svg",{viewBox:"0 0 168 24",className:w.algoliaLogo,children:(0,S.jsxs)("g",{fill:"none",children:[(0,S.jsx)("path",{className:w.algoliaLogoPathFill,d:"M120.925 18.804c-4.386.02-4.386-3.54-4.386-4.106l-.007-13.336 2.675-.424v13.254c0 .322 0 2.358 1.718 2.364v2.248zm-10.846-2.18c.821 0 1.43-.047 1.855-.129v-2.719a6.334 6.334 0 0 0-1.574-.199 5.7 5.7 0 0 0-.897.069 2.699 2.699 0 0 0-.814.24c-.24.116-.439.28-.582.491-.15.212-.219.335-.219.656 0 .628.219.991.616 1.23s.938.362 1.615.362zm-.233-9.7c.883 0 1.629.109 2.231.328.602.218 1.088.525 1.444.915.363.396.609.922.76 1.483.157.56.232 1.175.232 1.85v6.874a32.5 32.5 0 0 1-1.868.314c-.834.123-1.772.185-2.813.185-.69 0-1.327-.069-1.895-.198a4.001 4.001 0 0 1-1.471-.636 3.085 3.085 0 0 1-.951-1.134c-.226-.465-.343-1.12-.343-1.803 0-.656.13-1.073.384-1.525a3.24 3.24 0 0 1 1.047-1.106c.445-.287.95-.492 1.532-.615a8.8 8.8 0 0 1 1.82-.185 8.404 8.404 0 0 1 1.972.24v-.438c0-.307-.035-.6-.11-.874a1.88 1.88 0 0 0-.384-.73 1.784 1.784 0 0 0-.724-.493 3.164 3.164 0 0 0-1.143-.205c-.616 0-1.177.075-1.69.164a7.735 7.735 0 0 0-1.26.307l-.321-2.192c.335-.117.834-.233 1.478-.349a10.98 10.98 0 0 1 2.073-.178zm52.842 9.626c.822 0 1.43-.048 1.854-.13V13.7a6.347 6.347 0 0 0-1.574-.199c-.294 0-.595.021-.896.069a2.7 2.7 0 0 0-.814.24 1.46 1.46 0 0 0-.582.491c-.15.212-.218.335-.218.656 0 .628.218.991.615 1.23.404.245.938.362 1.615.362zm-.226-9.694c.883 0 1.629.108 2.231.327.602.219 1.088.526 1.444.915.355.39.609.923.759 1.483a6.8 6.8 0 0 1 .233 1.852v6.873c-.41.088-1.034.19-1.868.314-.834.123-1.772.184-2.813.184-.69 0-1.327-.068-1.895-.198a4.001 4.001 0 0 1-1.471-.635 3.085 3.085 0 0 1-.951-1.134c-.226-.465-.343-1.12-.343-1.804 0-.656.13-1.073.384-1.524.26-.45.608-.82 1.047-1.107.445-.286.95-.491 1.532-.614a8.803 8.803 0 0 1 2.751-.13c.329.034.671.096 1.04.185v-.437a3.3 3.3 0 0 0-.109-.875 1.873 1.873 0 0 0-.384-.731 1.784 1.784 0 0 0-.724-.492 3.165 3.165 0 0 0-1.143-.205c-.616 0-1.177.075-1.69.164a7.75 7.75 0 0 0-1.26.307l-.321-2.193c.335-.116.834-.232 1.478-.348a11.633 11.633 0 0 1 2.073-.177zm-8.034-1.271a1.626 1.626 0 0 1-1.628-1.62c0-.895.725-1.62 1.628-1.62.904 0 1.63.725 1.63 1.62 0 .895-.733 1.62-1.63 1.62zm1.348 13.22h-2.689V7.27l2.69-.423v11.956zm-4.714 0c-4.386.02-4.386-3.54-4.386-4.107l-.008-13.336 2.676-.424v13.254c0 .322 0 2.358 1.718 2.364v2.248zm-8.698-5.903c0-1.156-.253-2.119-.746-2.788-.493-.677-1.183-1.01-2.067-1.01-.882 0-1.574.333-2.065 1.01-.493.676-.733 1.632-.733 2.788 0 1.168.246 1.953.74 2.63.492.683 1.183 1.018 2.066 1.018.882 0 1.574-.342 2.067-1.019.492-.683.738-1.46.738-2.63zm2.737-.007c0 .902-.13 1.584-.397 2.33a5.52 5.52 0 0 1-1.128 1.906 4.986 4.986 0 0 1-1.752 1.223c-.685.286-1.739.45-2.265.45-.528-.006-1.574-.157-2.252-.45a5.096 5.096 0 0 1-1.744-1.223c-.487-.527-.863-1.162-1.137-1.906a6.345 6.345 0 0 1-.41-2.33c0-.902.123-1.77.397-2.508a5.554 5.554 0 0 1 1.15-1.892 5.133 5.133 0 0 1 1.75-1.216c.679-.287 1.425-.423 2.232-.423.808 0 1.553.142 2.237.423a4.88 4.88 0 0 1 1.753 1.216 5.644 5.644 0 0 1 1.135 1.892c.287.738.431 1.606.431 2.508zm-20.138 0c0 1.12.246 2.363.738 2.882.493.52 1.13.78 1.91.78.424 0 .828-.062 1.204-.178.377-.116.677-.253.917-.417V9.33a10.476 10.476 0 0 0-1.766-.226c-.971-.028-1.71.37-2.23 1.004-.513.636-.773 1.75-.773 2.788zm7.438 5.274c0 1.824-.466 3.156-1.404 4.004-.936.846-2.367 1.27-4.296 1.27-.705 0-2.17-.137-3.34-.396l.431-2.118c.98.205 2.272.26 2.95.26 1.074 0 1.84-.219 2.299-.656.459-.437.684-1.086.684-1.948v-.437a8.07 8.07 0 0 1-1.047.397c-.43.13-.93.198-1.492.198-.739 0-1.41-.116-2.018-.349a4.206 4.206 0 0 1-1.567-1.025c-.431-.45-.774-1.017-1.013-1.694-.24-.677-.363-1.885-.363-2.773 0-.834.13-1.88.384-2.577.26-.696.629-1.298 1.129-1.796.493-.498 1.095-.881 1.8-1.162a6.605 6.605 0 0 1 2.428-.457c.87 0 1.67.109 2.45.24.78.129 1.444.265 1.985.415V18.17zM6.972 6.677v1.627c-.712-.446-1.52-.67-2.425-.67-.585 0-1.045.13-1.38.391a1.24 1.24 0 0 0-.502 1.03c0 .425.164.765.494 1.02.33.256.835.532 1.516.83.447.192.795.356 1.045.495.25.138.537.332.862.582.324.25.563.548.718.894.154.345.23.741.23 1.188 0 .947-.334 1.691-1.004 2.234-.67.542-1.537.814-2.601.814-1.18 0-2.16-.229-2.936-.686v-1.708c.84.628 1.814.942 2.92.942.585 0 1.048-.136 1.388-.407.34-.271.51-.646.51-1.125 0-.287-.1-.55-.302-.79-.203-.24-.42-.42-.655-.542-.234-.123-.585-.29-1.053-.503a61.27 61.27 0 0 1-.582-.271 13.67 13.67 0 0 1-.55-.287 4.275 4.275 0 0 1-.567-.351 6.92 6.92 0 0 1-.455-.4c-.18-.17-.31-.34-.39-.51-.08-.17-.155-.37-.224-.598a2.553 2.553 0 0 1-.104-.742c0-.915.333-1.638.998-2.17.664-.532 1.523-.798 2.576-.798.968 0 1.793.17 2.473.51zm7.468 5.696v-.287c-.022-.607-.187-1.088-.495-1.444-.309-.357-.75-.535-1.324-.535-.532 0-.99.194-1.373.583-.382.388-.622.949-.717 1.683h3.909zm1.005 2.792v1.404c-.596.34-1.383.51-2.362.51-1.255 0-2.255-.377-3-1.132-.744-.755-1.116-1.744-1.116-2.968 0-1.297.34-2.316 1.021-3.055.68-.74 1.548-1.11 2.6-1.11 1.033 0 1.852.323 2.458.966.606.644.91 1.572.91 2.784 0 .33-.033.676-.096 1.038h-5.314c.107.702.405 1.239.894 1.611.49.372 1.106.558 1.85.558.862 0 1.58-.202 2.155-.606zm6.605-1.77h-1.212c-.596 0-1.045.116-1.349.35-.303.234-.454.532-.454.894 0 .372.117.664.35.877.235.213.575.32 1.022.32.51 0 .912-.142 1.204-.424.293-.281.44-.651.44-1.108v-.91zm-4.068-2.554V9.325c.627-.361 1.457-.542 2.489-.542 2.116 0 3.175 1.026 3.175 3.08V17h-1.548v-.957c-.415.68-1.143 1.02-2.186 1.02-.766 0-1.38-.22-1.843-.661-.462-.442-.694-1.003-.694-1.684 0-.776.293-1.38.878-1.81.585-.431 1.404-.647 2.457-.647h1.34V11.8c0-.554-.133-.971-.399-1.253-.266-.282-.707-.423-1.324-.423a4.07 4.07 0 0 0-2.345.718zm9.333-1.93v1.42c.394-1 1.101-1.5 2.123-1.5.148 0 .313.016.494.048v1.531a1.885 1.885 0 0 0-.75-.143c-.542 0-.989.24-1.34.718-.351.479-.527 1.048-.527 1.707V17h-1.563V8.91h1.563zm5.01 4.084c.022.82.272 1.492.75 2.019.479.526 1.15.79 2.01.79.639 0 1.235-.176 1.788-.527v1.404c-.521.319-1.186.479-1.995.479-1.265 0-2.276-.4-3.031-1.197-.755-.798-1.133-1.792-1.133-2.984 0-1.16.38-2.151 1.14-2.975.761-.825 1.79-1.237 3.088-1.237.702 0 1.346.149 1.93.447v1.436a3.242 3.242 0 0 0-1.77-.495c-.84 0-1.513.266-2.019.798-.505.532-.758 1.213-.758 2.042zM40.24 5.72v4.579c.458-1 1.293-1.5 2.505-1.5.787 0 1.42.245 1.899.734.479.49.718 1.17.718 2.042V17h-1.564v-5.106c0-.553-.14-.98-.422-1.284-.282-.303-.652-.455-1.11-.455-.531 0-1.002.202-1.411.606-.41.405-.615 1.022-.615 1.851V17h-1.563V5.72h1.563zm14.966 10.02c.596 0 1.096-.253 1.5-.758.404-.506.606-1.157.606-1.955 0-.915-.202-1.62-.606-2.114-.404-.495-.92-.742-1.548-.742-.553 0-1.05.224-1.491.67-.442.447-.662 1.133-.662 2.058 0 .958.212 1.67.638 2.138.425.469.946.703 1.563.703zM53.004 5.72v4.42c.574-.894 1.388-1.341 2.44-1.341 1.022 0 1.857.383 2.506 1.149.649.766.973 1.781.973 3.047 0 1.138-.309 2.109-.925 2.912-.617.803-1.463 1.205-2.537 1.205-1.075 0-1.894-.447-2.457-1.34V17h-1.58V5.72h1.58zm9.908 11.104l-3.223-7.913h1.739l1.005 2.632 1.26 3.415c.096-.32.48-1.458 1.15-3.415l.909-2.632h1.66l-2.92 7.866c-.777 2.074-1.963 3.11-3.559 3.11a2.92 2.92 0 0 1-.734-.079v-1.34c.17.042.351.064.543.064 1.032 0 1.755-.57 2.17-1.708z"}),(0,S.jsx)("path",{fill:"#5468FF",d:"M78.988.938h16.594a2.968 2.968 0 0 1 2.966 2.966V20.5a2.967 2.967 0 0 1-2.966 2.964H78.988a2.967 2.967 0 0 1-2.966-2.964V3.897A2.961 2.961 0 0 1 78.988.938z"}),(0,S.jsx)("path",{fill:"white",d:"M89.632 5.967v-.772a.978.978 0 0 0-.978-.977h-2.28a.978.978 0 0 0-.978.977v.793c0 .088.082.15.171.13a7.127 7.127 0 0 1 1.984-.28c.65 0 1.295.088 1.917.259.082.02.164-.04.164-.13m-6.248 1.01l-.39-.389a.977.977 0 0 0-1.382 0l-.465.465a.973.973 0 0 0 0 1.38l.383.383c.062.061.15.047.205-.014.226-.307.472-.601.746-.874.281-.28.568-.526.883-.751.068-.042.075-.137.02-.2m4.16 2.453v3.341c0 .096.104.165.192.117l2.97-1.537c.068-.034.089-.117.055-.184a3.695 3.695 0 0 0-3.08-1.866c-.068 0-.136.054-.136.13m0 8.048a4.489 4.489 0 0 1-4.49-4.482 4.488 4.488 0 0 1 4.49-4.482 4.488 4.488 0 0 1 4.489 4.482 4.484 4.484 0 0 1-4.49 4.482m0-10.85a6.363 6.363 0 1 0 0 12.729 6.37 6.37 0 0 0 6.372-6.368 6.358 6.358 0 0 0-6.371-6.36"})]})})})})]}),T.items.length>0?(0,S.jsx)("main",{children:T.items.map(((e,t)=>{let{title:r,url:n,summary:s,breadcrumbs:a}=e;return(0,S.jsxs)("article",{className:w.searchResultItem,children:[(0,S.jsx)(O.A,{as:"h2",className:w.searchResultItemHeading,children:(0,S.jsx)(f.A,{to:n,dangerouslySetInnerHTML:{__html:r}})}),a.length>0&&(0,S.jsx)("nav",{"aria-label":"breadcrumbs",children:(0,S.jsx)("ul",{className:(0,i.A)("breadcrumbs",w.searchResultItemPath),children:a.map(((e,t)=>(0,S.jsx)("li",{className:"breadcrumbs__item",dangerouslySetInnerHTML:{__html:e}},t)))})}),s&&(0,S.jsx)("p",{className:w.searchResultItemSummary,dangerouslySetInnerHTML:{__html:s}})]},t)}))}):[v&&!T.loading&&(0,S.jsx)("p",{children:(0,S.jsx)(_.A,{id:"theme.SearchPage.noResultsText",description:"The paragraph for empty search result",children:"No results were found"})},"no-results"),!!T.loading&&(0,S.jsx)("div",{className:w.loadingSpinner},"spinner")],T.hasMore&&(0,S.jsx)("div",{className:w.loader,ref:k,children:(0,S.jsx)(_.A,{id:"theme.SearchPage.fetchingNewResults",description:"The paragraph for fetching new search results",children:"Fetching new results..."})})]})]})}function T(){return(0,S.jsx)(b.e3,{className:"search-page-wrapper",children:(0,S.jsx)(N,{})})}}}]); \ No newline at end of file diff --git a/assets/js/1a4e3797.ad913112.js.LICENSE.txt b/assets/js/1a4e3797.0d4e4a27.js.LICENSE.txt similarity index 100% rename from assets/js/1a4e3797.ad913112.js.LICENSE.txt rename to assets/js/1a4e3797.0d4e4a27.js.LICENSE.txt diff --git a/assets/js/1df59f0a.8077eb3f.js b/assets/js/1df59f0a.8077eb3f.js new file mode 100644 index 0000000..9616690 --- /dev/null +++ b/assets/js/1df59f0a.8077eb3f.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunkol_echarts_docs=self.webpackChunkol_echarts_docs||[]).push([[11],{4482:(n,t,e)=>{e.r(t),e.d(t,{assets:()=>c,contentTitle:()=>i,default:()=>p,frontMatter:()=>a,metadata:()=>s,toc:()=>l});var o=e(6106),r=e(2036);const a={id:"china-migration",title:"\u6625\u8282\u4eba\u53e3\u8fc1\u5f99"},i=void 0,s={id:"playgrounds/china-migration",title:"\u6625\u8282\u4eba\u53e3\u8fc1\u5f99",description:"\u4e00\u4e2a\u7b80\u5355\u7684\u793a\u4f8b",source:"@site/docs/playgrounds/china-migration.mdx",sourceDirName:"playgrounds",slug:"/playgrounds/china-migration",permalink:"/ol3Echarts/docs/playgrounds/china-migration",draft:!1,unlisted:!1,editUrl:"https://github.com/sakitam-fdd/ol3Echarts/edit/master/documents/docs/docs/playgrounds/china-migration.mdx",tags:[],version:"current",lastUpdatedBy:"sakitam-fdd",lastUpdatedAt:1730645386e3,frontMatter:{id:"china-migration",title:"\u6625\u8282\u4eba\u53e3\u8fc1\u5f99"},sidebar:"docs",previous:{title:"\u676d\u5dde\u70ed\u95e8\u6b65\u884c\u8def\u7ebf",permalink:"/ol3Echarts/docs/playgrounds/track-line"},next:{title:"\u6e58\u897f\u65c5\u6e38\u666f\u70b9\u5ba2\u6e90\u5206\u5e03\u56fe_\u57ce\u89c4\u6240",permalink:"/ol3Echarts/docs/playgrounds/lines-tourism"}},c={},l=[{value:"\u4e00\u4e2a\u7b80\u5355\u7684\u793a\u4f8b",id:"\u4e00\u4e2a\u7b80\u5355\u7684\u793a\u4f8b",level:3}];function d(n){const t={code:"code",h3:"h3",pre:"pre",...(0,r.R)(),...n.components};return(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)(t.h3,{id:"\u4e00\u4e2a\u7b80\u5355\u7684\u793a\u4f8b",children:"\u4e00\u4e2a\u7b80\u5355\u7684\u793a\u4f8b"}),"\n",(0,o.jsx)(t.pre,{children:(0,o.jsx)(t.code,{className:"language-jsx",metastring:"live",live:!0,children:"function render(props) {\n const container = useRef(null);\n\n const dataUrl = useBaseUrl('/json/china-migration.json');\n const airlineUrl = useBaseUrl('/json/china-airline.json');\n\n // \u7ecf\u7eac\u5ea6\u83b7\u53d6\n function getGeoCoord(geoCoord, name) {\n const city = name.split('_').pop();\n if (city) {\n const coord = geoCoord[city];\n return coord;\n }\n\n return null;\n }\n\n // \u7ebf\u8def\u83b7\u53d6\n function getLineCoord(geoCoord, fromname, toname) {\n if (fromname && toname) {\n const _start = fromname.split('_').pop();\n const _end = toname.split('_').pop();\n if (_start && _end) {\n const fromCoord = geoCoord[_start];\n const toCoord = geoCoord[_end];\n return {\n fromName: _start,\n toName: _end,\n coords: [fromCoord, toCoord],\n };\n }\n return null;\n }\n return null;\n }\n\n const initChat = (map, option) => {\n const chart = new EChartsLayer(option, {\n stopEvent: false,\n hideOnMoving: false,\n hideOnZooming: false,\n forcedPrecomposeRerender: true,\n });\n\n chart.appendTo(map);\n }\n\n const init = async () => {\n const map = new ol.Map({\n target: container.current,\n view: new ol.View({\n projection: 'EPSG:4326',\n zoom: 5,\n rotation: 0,\n center: [113.53450137499999, 34.44104525],\n }),\n layers: [\n new TileLayer({\n source: new XYZ({\n url: 'https://{a-c}.basemaps.cartocdn.com/dark_all/{z}/{x}/{y}.png',\n }),\n }),\n ],\n });\n\n function convertData(sourceData) {\n return [].concat.apply(\n [],\n sourceData.map((busLine) => {\n let prevPoint = null;\n const points = [];\n const value = busLine.shift();\n for (let i = 0; i < busLine.length; i += 2) {\n let point = [busLine[i], busLine[i + 1]];\n if (i > 0) {\n point = [prevPoint[0] + point[0], prevPoint[1] + point[1]];\n }\n prevPoint = point;\n points.push([point[0] / 1e5, point[1] / 1e5]);\n }\n return {\n value,\n coords: points,\n };\n }),\n );\n }\n\n const geoCoord = await fetch(dataUrl).then(res => res.json());\n const data = await fetch(airlineUrl).then(res => res.json());\n\n const option = {\n backgroundColor: 'transparent',\n title: {\n text: '\u6625\u8282\u4eba\u53e3\u8fc1\u5f99',\n x: 'center',\n y: 'top',\n textStyle: {\n color: 'white',\n },\n },\n legend: {\n show: true,\n selected: {},\n x: 'left',\n orient: 'vertical',\n textStyle: {\n color: 'white',\n },\n data: [],\n },\n series: [\n {\n name: 'Migration',\n type: 'lines',\n effect: {\n constantSpeed: 30,\n show: true,\n trailLength: 1,\n symbolSize: 1.5,\n color: 'rgba(204, 246, 255, 1)',\n },\n\n itemStyle: {\n lineStyle: {\n color: 'rgba(2, 166, 253, 1)',\n type: 'solid',\n width: 0.5,\n opacity: 0.4,\n },\n },\n data: [],\n },\n {\n symbol: 'circle',\n type: 'effectScatter',\n symbolSize: 1.5,\n itemStyle: {\n color: 'rgba(255, 0, 0, 1)',\n },\n data: [],\n },\n ],\n };\n data.allLine\n .sort((a, b) => b.num - a.num)\n .slice(0, 3000)\n .forEach((line) => {\n const callData = getLineCoord(geoCoord, line.start, line.end);\n if (callData) {\n option.series[0].data.push();\n }\n });\n option.series[1].data = data.topCityOut.map((point) => ({\n value: getGeoCoord(geoCoord, point.name),\n }));\n\n initChat(map, option);\n\n function resize(target) {}\n\n return {\n resize,\n }\n }\n\n useEffect(() => {\n const { resize } = init();\n\n return () => {\n };\n }, []);\n\n return (\n
\n
\n
\n );\n}\n"})})]})}function p(n={}){const{wrapper:t}={...(0,r.R)(),...n.components};return t?(0,o.jsx)(t,{...n,children:(0,o.jsx)(d,{...n})}):d(n)}},2036:(n,t,e)=>{e.d(t,{R:()=>i,x:()=>s});var o=e(7378);const r={},a=o.createContext(r);function i(n){const t=o.useContext(a);return o.useMemo((function(){return"function"==typeof n?n(t):{...t,...n}}),[t,n])}function s(n){let t;return t=n.disableParentContext?"function"==typeof n.components?n.components(r):n.components||r:i(n.components),o.createElement(a.Provider,{value:t},n.children)}}}]); \ No newline at end of file diff --git a/assets/js/1df59f0a.fa74a664.js b/assets/js/1df59f0a.fa74a664.js deleted file mode 100644 index f6b029d..0000000 --- a/assets/js/1df59f0a.fa74a664.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunkol_echarts_docs=self.webpackChunkol_echarts_docs||[]).push([[11],{816:(n,t,e)=>{e.r(t),e.d(t,{assets:()=>c,contentTitle:()=>i,default:()=>p,frontMatter:()=>a,metadata:()=>s,toc:()=>l});var o=e(6106),r=e(2036);const a={id:"china-migration",title:"\u6625\u8282\u4eba\u53e3\u8fc1\u5f99"},i=void 0,s={id:"playgrounds/china-migration",title:"\u6625\u8282\u4eba\u53e3\u8fc1\u5f99",description:"\u4e00\u4e2a\u7b80\u5355\u7684\u793a\u4f8b",source:"@site/docs/playgrounds/china-migration.mdx",sourceDirName:"playgrounds",slug:"/playgrounds/china-migration",permalink:"/ol3Echarts/docs/playgrounds/china-migration",draft:!1,unlisted:!1,editUrl:"https://github.com/sakitam-fdd/ol3Echarts/edit/master/documents/docs/docs/playgrounds/china-migration.mdx",tags:[],version:"current",lastUpdatedBy:"sakitam-fdd",lastUpdatedAt:1730645386e3,frontMatter:{id:"china-migration",title:"\u6625\u8282\u4eba\u53e3\u8fc1\u5f99"},sidebar:"docs",previous:{title:"\u676d\u5dde\u70ed\u95e8\u6b65\u884c\u8def\u7ebf",permalink:"/ol3Echarts/docs/playgrounds/track-line"},next:{title:"\u6e58\u897f\u65c5\u6e38\u666f\u70b9\u5ba2\u6e90\u5206\u5e03\u56fe_\u57ce\u89c4\u6240",permalink:"/ol3Echarts/docs/playgrounds/lines-tourism"}},c={},l=[{value:"\u4e00\u4e2a\u7b80\u5355\u7684\u793a\u4f8b",id:"\u4e00\u4e2a\u7b80\u5355\u7684\u793a\u4f8b",level:3}];function d(n){const t={code:"code",h3:"h3",pre:"pre",...(0,r.R)(),...n.components};return(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)(t.h3,{id:"\u4e00\u4e2a\u7b80\u5355\u7684\u793a\u4f8b",children:"\u4e00\u4e2a\u7b80\u5355\u7684\u793a\u4f8b"}),"\n",(0,o.jsx)(t.pre,{children:(0,o.jsx)(t.code,{className:"language-jsx",metastring:"live",live:!0,children:"function render(props) {\n const container = useRef(null);\n\n const dataUrl = useBaseUrl('/json/china-migration.json');\n const airlineUrl = useBaseUrl('/json/china-airline.json');\n\n // \u7ecf\u7eac\u5ea6\u83b7\u53d6\n function getGeoCoord(geoCoord, name) {\n const city = name.split('_').pop();\n if (city) {\n const coord = geoCoord[city];\n return coord;\n }\n\n return null;\n }\n\n // \u7ebf\u8def\u83b7\u53d6\n function getLineCoord(geoCoord, fromname, toname) {\n if (fromname && toname) {\n const _start = fromname.split('_').pop();\n const _end = toname.split('_').pop();\n if (_start && _end) {\n const fromCoord = geoCoord[_start];\n const toCoord = geoCoord[_end];\n return {\n fromName: _start,\n toName: _end,\n coords: [fromCoord, toCoord],\n };\n }\n return null;\n }\n return null;\n }\n\n const initChat = (map, option) => {\n const chart = new EChartsLayer(option, {\n stopEvent: false,\n hideOnMoving: false,\n hideOnZooming: false,\n forcedPrecomposeRerender: true,\n });\n\n chart.appendTo(map);\n }\n\n const init = async () => {\n const map = new ol.Map({\n target: container.current,\n view: new ol.View({\n projection: 'EPSG:4326',\n zoom: 5,\n rotation: 0,\n center: [113.53450137499999, 34.44104525],\n }),\n layers: [\n new TileLayer({\n source: new XYZ({\n url: 'https://{a-c}.basemaps.cartocdn.com/dark_all/{z}/{x}/{y}.png',\n }),\n }),\n ],\n });\n\n function convertData(sourceData) {\n return [].concat.apply(\n [],\n sourceData.map((busLine) => {\n let prevPoint = null;\n const points = [];\n const value = busLine.shift();\n for (let i = 0; i < busLine.length; i += 2) {\n let point = [busLine[i], busLine[i + 1]];\n if (i > 0) {\n point = [prevPoint[0] + point[0], prevPoint[1] + point[1]];\n }\n prevPoint = point;\n points.push([point[0] / 1e5, point[1] / 1e5]);\n }\n return {\n value,\n coords: points,\n };\n }),\n );\n }\n\n const geoCoord = await fetch(dataUrl).then(res => res.json());\n const data = await fetch(airlineUrl).then(res => res.json());\n\n const option = {\n backgroundColor: 'transparent',\n title: {\n text: '\u6625\u8282\u4eba\u53e3\u8fc1\u5f99',\n x: 'center',\n y: 'top',\n textStyle: {\n color: 'white',\n },\n },\n legend: {\n show: true,\n selected: {},\n x: 'left',\n orient: 'vertical',\n textStyle: {\n color: 'white',\n },\n data: [],\n },\n series: [\n {\n name: 'Migration',\n type: 'lines',\n effect: {\n constantSpeed: 30,\n show: true,\n trailLength: 1,\n symbolSize: 1.5,\n color: 'rgba(204, 246, 255, 1)',\n },\n\n itemStyle: {\n lineStyle: {\n color: 'rgba(2, 166, 253, 1)',\n type: 'solid',\n width: 0.5,\n opacity: 0.4,\n },\n },\n data: [],\n },\n {\n symbol: 'circle',\n type: 'effectScatter',\n symbolSize: 1.5,\n itemStyle: {\n color: 'rgba(255, 0, 0, 1)',\n },\n data: [],\n },\n ],\n };\n data.allLine\n .sort((a, b) => b.num - a.num)\n .slice(0, 3000)\n .forEach((line) => {\n const callData = getLineCoord(geoCoord, line.start, line.end);\n if (callData) {\n option.series[0].data.push();\n }\n });\n option.series[1].data = data.topCityOut.map((point) => ({\n value: getGeoCoord(geoCoord, point.name),\n }));\n\n initChat(map, option);\n\n function resize(target) {}\n\n return {\n resize,\n }\n }\n\n useEffect(() => {\n const { resize } = init();\n\n return () => {\n };\n }, []);\n\n return (\n
\n
\n
\n );\n}\n"})})]})}function p(n={}){const{wrapper:t}={...(0,r.R)(),...n.components};return t?(0,o.jsx)(t,{...n,children:(0,o.jsx)(d,{...n})}):d(n)}},2036:(n,t,e)=>{e.d(t,{R:()=>i,x:()=>s});var o=e(7378);const r={},a=o.createContext(r);function i(n){const t=o.useContext(a);return o.useMemo((function(){return"function"==typeof n?n(t):{...t,...n}}),[t,n])}function s(n){let t;return t=n.disableParentContext?"function"==typeof n.components?n.components(r):n.components||r:i(n.components),o.createElement(a.Provider,{value:t},n.children)}}}]); \ No newline at end of file diff --git a/assets/js/1df93b7f.3973ae45.js b/assets/js/1df93b7f.3973ae45.js new file mode 100644 index 0000000..de000f7 --- /dev/null +++ b/assets/js/1df93b7f.3973ae45.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunkol_echarts_docs=self.webpackChunkol_echarts_docs||[]).push([[583],{7766:(e,t,s)=>{s.r(t),s.d(t,{default:()=>m});s(7378);var r=s(3372),i=s(8458),n=s(652),a=s(6228),o=s(1975);const l={heroBanner:"heroBanner_qdFl",heroBannerLogo:"heroBannerLogo_TelY",buttons:"buttons_AeoN",features:"features_cAfv",featureImage:"featureImage_wMIZ"};var c=s(6106);const h=[{title:"Easy to use?",description:(0,c.jsx)(c.Fragment,{children:"I'm not sure whether it is easy to use. It comes from three.js. There are many similar designs, but it is more concise."})},{title:"High-performance?",description:(0,c.jsx)(c.Fragment,{children:"I'm not sure whether the performance is better. It's a toy, but I will try my best to optimize it."})},{title:"Flexible",description:(0,c.jsx)(c.Fragment,{children:"Easy to expand, I will try my best to ensure its scalability."})}];function d(e){let{title:t,description:s}=e;return(0,c.jsx)("div",{className:(0,r.A)("col col--4",l.feature),children:(0,c.jsxs)("div",{className:"text--center",children:[(0,c.jsx)("h3",{children:t}),(0,c.jsx)("p",{children:s})]})})}function m(){const e=(0,a.A)(),{siteConfig:t={}}=e;return(0,c.jsxs)(i.A,{title:`${t.title}`,description:"Description will go into a meta tag in ",children:[(0,c.jsx)("header",{className:(0,r.A)("hero hero--primary",l.heroBanner),children:(0,c.jsxs)("div",{className:"container",children:[(0,c.jsx)("img",{className:(0,r.A)(l.heroBannerLogo,"margin-vert--md"),alt:`${t.title} logo`,src:(0,o.Ay)("images/logo.png")}),(0,c.jsx)("h1",{className:"hero__title",children:t.title}),(0,c.jsx)("p",{className:"hero__subtitle",children:t.tagline}),(0,c.jsx)("div",{className:l.buttons,children:(0,c.jsx)(n.A,{className:(0,r.A)("button button--secondary button--lg",l.getStarted),to:(0,o.Ay)("docs/"),children:"Get Started"})})]})}),(0,c.jsx)("main",{children:h&&h.length>0&&(0,c.jsx)("section",{className:l.features,children:(0,c.jsx)("div",{className:"container",children:(0,c.jsx)("div",{className:"row",children:h.map((e=>{let{title:t,description:s}=e;return(0,c.jsx)(d,{title:t,description:s},t)}))})})})})]})}}}]); \ No newline at end of file diff --git a/assets/js/1df93b7f.62decd4e.js b/assets/js/1df93b7f.62decd4e.js deleted file mode 100644 index 686eefe..0000000 --- a/assets/js/1df93b7f.62decd4e.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunkol_echarts_docs=self.webpackChunkol_echarts_docs||[]).push([[583],{7766:(e,t,s)=>{s.r(t),s.d(t,{default:()=>m});s(7378);var r=s(3372),i=s(4296),n=s(8821),a=s(9377),o=s(6930);const l={heroBanner:"heroBanner_qdFl",heroBannerLogo:"heroBannerLogo_TelY",buttons:"buttons_AeoN",features:"features_cAfv",featureImage:"featureImage_wMIZ"};var c=s(6106);const h=[{title:"Easy to use?",description:(0,c.jsx)(c.Fragment,{children:"I'm not sure whether it is easy to use. It comes from three.js. There are many similar designs, but it is more concise."})},{title:"High-performance?",description:(0,c.jsx)(c.Fragment,{children:"I'm not sure whether the performance is better. It's a toy, but I will try my best to optimize it."})},{title:"Flexible",description:(0,c.jsx)(c.Fragment,{children:"Easy to expand, I will try my best to ensure its scalability."})}];function d(e){let{title:t,description:s}=e;return(0,c.jsx)("div",{className:(0,r.A)("col col--4",l.feature),children:(0,c.jsxs)("div",{className:"text--center",children:[(0,c.jsx)("h3",{children:t}),(0,c.jsx)("p",{children:s})]})})}function m(){const e=(0,a.A)(),{siteConfig:t={}}=e;return(0,c.jsxs)(i.A,{title:`${t.title}`,description:"Description will go into a meta tag in ",children:[(0,c.jsx)("header",{className:(0,r.A)("hero hero--primary",l.heroBanner),children:(0,c.jsxs)("div",{className:"container",children:[(0,c.jsx)("img",{className:(0,r.A)(l.heroBannerLogo,"margin-vert--md"),alt:`${t.title} logo`,src:(0,o.Ay)("images/logo.png")}),(0,c.jsx)("h1",{className:"hero__title",children:t.title}),(0,c.jsx)("p",{className:"hero__subtitle",children:t.tagline}),(0,c.jsx)("div",{className:l.buttons,children:(0,c.jsx)(n.A,{className:(0,r.A)("button button--secondary button--lg",l.getStarted),to:(0,o.Ay)("docs/"),children:"Get Started"})})]})}),(0,c.jsx)("main",{children:h&&h.length>0&&(0,c.jsx)("section",{className:l.features,children:(0,c.jsx)("div",{className:"container",children:(0,c.jsx)("div",{className:"row",children:h.map((e=>{let{title:t,description:s}=e;return(0,c.jsx)(d,{title:t,description:s},t)}))})})})})]})}}}]); \ No newline at end of file diff --git a/assets/js/21092e26.f73fba95.js b/assets/js/21092e26.b1f3f95c.js similarity index 98% rename from assets/js/21092e26.f73fba95.js rename to assets/js/21092e26.b1f3f95c.js index 26ce71c..b2cae35 100644 --- a/assets/js/21092e26.f73fba95.js +++ b/assets/js/21092e26.b1f3f95c.js @@ -1 +1 @@ -"use strict";(self.webpackChunkol_echarts_docs=self.webpackChunkol_echarts_docs||[]).push([[106],{5820:(n,e,t)=>{t.r(e),t.d(e,{assets:()=>l,contentTitle:()=>s,default:()=>u,frontMatter:()=>r,metadata:()=>i,toc:()=>c});var a=t(6106),o=t(2036);const r={id:"pie",title:"\u997c\u56fe"},s=void 0,i={id:"playgrounds/pie",title:"\u997c\u56fe",description:"\u793a\u4f8b",source:"@site/docs/playgrounds/pie.mdx",sourceDirName:"playgrounds",slug:"/playgrounds/pie",permalink:"/ol3Echarts/docs/playgrounds/pie",draft:!1,unlisted:!1,editUrl:"https://github.com/sakitam-fdd/ol3Echarts/edit/master/documents/docs/docs/playgrounds/pie.mdx",tags:[],version:"current",lastUpdatedBy:"sakitam-fdd",lastUpdatedAt:1730645386e3,frontMatter:{id:"pie",title:"\u997c\u56fe"},sidebar:"docs",previous:{title:"\u81ea\u5b9a\u4e49\u70b9\u89c6\u56fe",permalink:"/ol3Echarts/docs/playgrounds/point"},next:{title:"\u67f1\u72b6\u56fe",permalink:"/ol3Echarts/docs/playgrounds/bar"}},l={},c=[{value:"\u793a\u4f8b",id:"\u793a\u4f8b",level:3}];function d(n){const e={code:"code",h3:"h3",pre:"pre",...(0,o.R)(),...n.components};return(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(e.h3,{id:"\u793a\u4f8b",children:"\u793a\u4f8b"}),"\n",(0,a.jsx)(e.pre,{children:(0,a.jsx)(e.code,{className:"language-jsx",metastring:"live",live:!0,children:"function render(props) {\n const container = useRef(null);\n\n const initChat = (map, option) => {\n const chart = new EChartsLayer(option, {\n hideOnMoving: false,\n hideOnZooming: true,\n });\n\n chart.appendTo(map);\n }\n\n const init = async () => {\n const map = new ol.Map({\n target: container.current,\n view: new ol.View({\n projection: 'EPSG:4326',\n zoom: 5,\n rotation: 0,\n center: [113.53450137499999, 34.44104525],\n }),\n layers: [\n new TileLayer({\n source: new XYZ({\n url: 'https://{a-c}.basemaps.cartocdn.com/dark_all/{z}/{x}/{y}.png',\n }),\n }),\n ],\n });\n\n const option = {\n tooltip: {\n trigger: 'item',\n formatter: '{a}
{b} : {c} ({d}%)',\n },\n legend: {\n orient: 'vertical',\n left: 'right',\n textStyle: {\n color: '#fff'\n },\n data: ['\u76f4\u63a5\u8bbf\u95ee', '\u90ae\u4ef6\u8425\u9500', '\u8054\u76df\u5e7f\u544a', '\u89c6\u9891\u5e7f\u544a', '\u641c\u7d22\u5f15\u64ce'],\n },\n series: [\n {\n name: '\u8bbf\u95ee\u6765\u6e90',\n type: 'pie',\n radius: '30',\n coordinates: [110.53450137499999, 33.44104525],\n data: [\n { value: 335, name: '\u76f4\u63a5\u8bbf\u95ee' },\n { value: 310, name: '\u90ae\u4ef6\u8425\u9500' },\n { value: 234, name: '\u8054\u76df\u5e7f\u544a' },\n { value: 135, name: '\u89c6\u9891\u5e7f\u544a' },\n { value: 1548, name: '\u641c\u7d22\u5f15\u64ce' },\n ],\n itemStyle: {\n emphasis: {\n shadowBlur: 10,\n shadowOffsetX: 0,\n shadowColor: 'rgba(255, 255, 255, 0.5)',\n },\n },\n },\n {\n name: '\u8bbf\u95ee\u6765\u6e90',\n type: 'pie',\n radius: '30',\n coordinates: [113.53450137499999, 34.44104525],\n data: [\n { value: 335, name: '\u76f4\u63a5\u8bbf\u95ee' },\n { value: 310, name: '\u90ae\u4ef6\u8425\u9500' },\n { value: 234, name: '\u8054\u76df\u5e7f\u544a' },\n { value: 135, name: '\u89c6\u9891\u5e7f\u544a' },\n { value: 1548, name: '\u641c\u7d22\u5f15\u64ce' },\n ],\n itemStyle: {\n emphasis: {\n shadowBlur: 10,\n shadowOffsetX: 0,\n shadowColor: 'rgba(0, 0, 0, 0.5)',\n },\n },\n },\n {\n name: '\u8bbf\u95ee\u6765\u6e90',\n type: 'pie',\n radius: '30',\n coordinates: [110.53450137499999, 38.44104525],\n data: [\n { value: 335, name: '\u76f4\u63a5\u8bbf\u95ee' },\n { value: 310, name: '\u90ae\u4ef6\u8425\u9500' },\n { value: 234, name: '\u8054\u76df\u5e7f\u544a' },\n { value: 135, name: '\u89c6\u9891\u5e7f\u544a' },\n { value: 1548, name: '\u641c\u7d22\u5f15\u64ce' },\n ],\n itemStyle: {\n emphasis: {\n shadowBlur: 10,\n shadowOffsetX: 0,\n shadowColor: 'rgba(0, 0, 0, 0.5)',\n },\n },\n },\n ],\n };\n\n initChat(map, option);\n\n function resize(target) {}\n\n return {\n resize,\n }\n }\n\n useEffect(() => {\n const { resize } = init();\n\n return () => {\n };\n }, []);\n\n return (\n
\n
\n
\n );\n}\n"})})]})}function u(n={}){const{wrapper:e}={...(0,o.R)(),...n.components};return e?(0,a.jsx)(e,{...n,children:(0,a.jsx)(d,{...n})}):d(n)}},2036:(n,e,t)=>{t.d(e,{R:()=>s,x:()=>i});var a=t(7378);const o={},r=a.createContext(o);function s(n){const e=a.useContext(r);return a.useMemo((function(){return"function"==typeof n?n(e):{...e,...n}}),[e,n])}function i(n){let e;return e=n.disableParentContext?"function"==typeof n.components?n.components(o):n.components||o:s(n.components),a.createElement(r.Provider,{value:e},n.children)}}}]); \ No newline at end of file +"use strict";(self.webpackChunkol_echarts_docs=self.webpackChunkol_echarts_docs||[]).push([[106],{7566:(n,e,t)=>{t.r(e),t.d(e,{assets:()=>l,contentTitle:()=>s,default:()=>u,frontMatter:()=>r,metadata:()=>i,toc:()=>c});var a=t(6106),o=t(2036);const r={id:"pie",title:"\u997c\u56fe"},s=void 0,i={id:"playgrounds/pie",title:"\u997c\u56fe",description:"\u793a\u4f8b",source:"@site/docs/playgrounds/pie.mdx",sourceDirName:"playgrounds",slug:"/playgrounds/pie",permalink:"/ol3Echarts/docs/playgrounds/pie",draft:!1,unlisted:!1,editUrl:"https://github.com/sakitam-fdd/ol3Echarts/edit/master/documents/docs/docs/playgrounds/pie.mdx",tags:[],version:"current",lastUpdatedBy:"sakitam-fdd",lastUpdatedAt:1730645386e3,frontMatter:{id:"pie",title:"\u997c\u56fe"},sidebar:"docs",previous:{title:"\u81ea\u5b9a\u4e49\u70b9\u89c6\u56fe",permalink:"/ol3Echarts/docs/playgrounds/point"},next:{title:"\u67f1\u72b6\u56fe",permalink:"/ol3Echarts/docs/playgrounds/bar"}},l={},c=[{value:"\u793a\u4f8b",id:"\u793a\u4f8b",level:3}];function d(n){const e={code:"code",h3:"h3",pre:"pre",...(0,o.R)(),...n.components};return(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(e.h3,{id:"\u793a\u4f8b",children:"\u793a\u4f8b"}),"\n",(0,a.jsx)(e.pre,{children:(0,a.jsx)(e.code,{className:"language-jsx",metastring:"live",live:!0,children:"function render(props) {\n const container = useRef(null);\n\n const initChat = (map, option) => {\n const chart = new EChartsLayer(option, {\n hideOnMoving: false,\n hideOnZooming: true,\n });\n\n chart.appendTo(map);\n }\n\n const init = async () => {\n const map = new ol.Map({\n target: container.current,\n view: new ol.View({\n projection: 'EPSG:4326',\n zoom: 5,\n rotation: 0,\n center: [113.53450137499999, 34.44104525],\n }),\n layers: [\n new TileLayer({\n source: new XYZ({\n url: 'https://{a-c}.basemaps.cartocdn.com/dark_all/{z}/{x}/{y}.png',\n }),\n }),\n ],\n });\n\n const option = {\n tooltip: {\n trigger: 'item',\n formatter: '{a}
{b} : {c} ({d}%)',\n },\n legend: {\n orient: 'vertical',\n left: 'right',\n textStyle: {\n color: '#fff'\n },\n data: ['\u76f4\u63a5\u8bbf\u95ee', '\u90ae\u4ef6\u8425\u9500', '\u8054\u76df\u5e7f\u544a', '\u89c6\u9891\u5e7f\u544a', '\u641c\u7d22\u5f15\u64ce'],\n },\n series: [\n {\n name: '\u8bbf\u95ee\u6765\u6e90',\n type: 'pie',\n radius: '30',\n coordinates: [110.53450137499999, 33.44104525],\n data: [\n { value: 335, name: '\u76f4\u63a5\u8bbf\u95ee' },\n { value: 310, name: '\u90ae\u4ef6\u8425\u9500' },\n { value: 234, name: '\u8054\u76df\u5e7f\u544a' },\n { value: 135, name: '\u89c6\u9891\u5e7f\u544a' },\n { value: 1548, name: '\u641c\u7d22\u5f15\u64ce' },\n ],\n itemStyle: {\n emphasis: {\n shadowBlur: 10,\n shadowOffsetX: 0,\n shadowColor: 'rgba(255, 255, 255, 0.5)',\n },\n },\n },\n {\n name: '\u8bbf\u95ee\u6765\u6e90',\n type: 'pie',\n radius: '30',\n coordinates: [113.53450137499999, 34.44104525],\n data: [\n { value: 335, name: '\u76f4\u63a5\u8bbf\u95ee' },\n { value: 310, name: '\u90ae\u4ef6\u8425\u9500' },\n { value: 234, name: '\u8054\u76df\u5e7f\u544a' },\n { value: 135, name: '\u89c6\u9891\u5e7f\u544a' },\n { value: 1548, name: '\u641c\u7d22\u5f15\u64ce' },\n ],\n itemStyle: {\n emphasis: {\n shadowBlur: 10,\n shadowOffsetX: 0,\n shadowColor: 'rgba(0, 0, 0, 0.5)',\n },\n },\n },\n {\n name: '\u8bbf\u95ee\u6765\u6e90',\n type: 'pie',\n radius: '30',\n coordinates: [110.53450137499999, 38.44104525],\n data: [\n { value: 335, name: '\u76f4\u63a5\u8bbf\u95ee' },\n { value: 310, name: '\u90ae\u4ef6\u8425\u9500' },\n { value: 234, name: '\u8054\u76df\u5e7f\u544a' },\n { value: 135, name: '\u89c6\u9891\u5e7f\u544a' },\n { value: 1548, name: '\u641c\u7d22\u5f15\u64ce' },\n ],\n itemStyle: {\n emphasis: {\n shadowBlur: 10,\n shadowOffsetX: 0,\n shadowColor: 'rgba(0, 0, 0, 0.5)',\n },\n },\n },\n ],\n };\n\n initChat(map, option);\n\n function resize(target) {}\n\n return {\n resize,\n }\n }\n\n useEffect(() => {\n const { resize } = init();\n\n return () => {\n };\n }, []);\n\n return (\n
\n
\n
\n );\n}\n"})})]})}function u(n={}){const{wrapper:e}={...(0,o.R)(),...n.components};return e?(0,a.jsx)(e,{...n,children:(0,a.jsx)(d,{...n})}):d(n)}},2036:(n,e,t)=>{t.d(e,{R:()=>s,x:()=>i});var a=t(7378);const o={},r=a.createContext(o);function s(n){const e=a.useContext(r);return a.useMemo((function(){return"function"==typeof n?n(e):{...e,...n}}),[e,n])}function i(n){let e;return e=n.disableParentContext?"function"==typeof n.components?n.components(o):n.components||o:s(n.components),a.createElement(r.Provider,{value:e},n.children)}}}]); \ No newline at end of file diff --git a/assets/js/250.35307fdb.js b/assets/js/250.35307fdb.js deleted file mode 100644 index 4cd33d4..0000000 --- a/assets/js/250.35307fdb.js +++ /dev/null @@ -1,2 +0,0 @@ -/*! For license information please see 250.35307fdb.js.LICENSE.txt */ -(self.webpackChunkol_echarts_docs=self.webpackChunkol_echarts_docs||[]).push([[250],{6455:function(t,e,n){!function(t,e,n,i){"use strict";const r=0,o=1,a=2,s=3,l=4,h=-1;class c{constructor({file:t,sourceRoot:n}={}){this._names=new e.SetArray,this._sources=new e.SetArray,this._sourcesContent=[],this._mappings=[],this.file=t,this.sourceRoot=n,this._ignoreList=new e.SetArray}}function u(t){return t}function d(t,e,n,i,r,o,a,s){return w(!1,t,e,n,i,r,o,a,s)}function p(t,e){return k(!1,t,e)}const f=(t,e,n,i,r,o,a,s)=>w(!0,t,e,n,i,r,o,a,s),g=(t,e)=>k(!0,t,e);function m(t,n,i){const{_sources:r,_sourcesContent:o}=u(t);o[e.put(r,n)]=i}function v(t,n,i=!0){const{_sources:r,_sourcesContent:o,_ignoreList:a}=u(t),s=e.put(r,n);s===o.length&&(o[s]=null),i?e.put(a,s):e.remove(a,s)}function y(t){const{_mappings:e,_sources:n,_sourcesContent:i,_names:r,_ignoreList:o}=u(t);return A(e),{version:3,file:t.file||void 0,names:r.array,sourceRoot:t.sourceRoot||void 0,sources:n.array,sourcesContent:i,mappings:e,ignoreList:o.array}}function _(t){const e=y(t);return Object.assign(Object.assign({},e),{mappings:n.encode(e.mappings)})}function x(t){const e=new i.TraceMap(t),n=new c({file:e.file,sourceRoot:e.sourceRoot});return C(u(n)._names,e.names),C(u(n)._sources,e.sources),u(n)._sourcesContent=e.sourcesContent||e.sources.map((()=>null)),u(n)._mappings=i.decodedMappings(e),e.ignoreList&&C(u(n)._ignoreList,e.ignoreList),n}function b(t){const e=[],{_mappings:n,_sources:i,_names:h}=u(t);for(let c=0;c=0&&!(e>=t[i][r]);n=i--);return n}function M(t,e,n){for(let i=t.length;i>e;i--)t[i]=t[i-1];t[e]=n}function A(t){const{length:e}=t;let n=e;for(let i=n-1;i>=0&&!(t[i].length>0);n=i,i--);ni&&(i=r)}f(n,i);const r=n.query+n.hash;switch(i){case 2:case 3:return r;case 4:{const i=n.path.slice(1);return i?s(e||t)&&!s(i)?"./"+i+r:i+r:r||"."}case 5:return n.path+r;default:return n.scheme+"//"+n.user+n.host+n.port+n.path+r}}return g}()},572:function(t,e){!function(t){"use strict";class e{constructor(){this._indexes={__proto__:null},this.array=[]}}function n(t){return t}function i(t,e){return n(t)._indexes[e]}function r(t,e){const r=i(t,e);if(void 0!==r)return r;const{array:o,_indexes:a}=n(t),s=o.push(e);return a[e]=s-1}function o(t){const{array:e,_indexes:i}=n(t);0!==e.length&&(i[e.pop()]=void 0)}function a(t,e){const r=i(t,e);if(void 0===r)return;const{array:o,_indexes:a}=n(t);for(let n=r+1;n>>=1,a&&(n=-2147483648|-n),e+n}function s(t,e,n){let i=e-n;i=i<0?-i<<1|1:i<<1;do{let e=31&i;i>>>=5,i>0&&(e|=32),t.write(r[e])}while(i>0);return e}function l(t,n){return!(t.pos>=n)&&t.peek()!==e}const h=16384,c="undefined"!=typeof TextDecoder?new TextDecoder:"undefined"!=typeof Buffer?{decode:t=>Buffer.from(t.buffer,t.byteOffset,t.byteLength).toString()}:{decode(t){let e="";for(let n=0;n0?e+c.decode(t.subarray(0,n)):e}}class d{constructor(t){this.pos=0,this.buffer=t}next(){return this.buffer.charCodeAt(this.pos++)}peek(){return this.buffer.charCodeAt(this.pos)}indexOf(t){const{buffer:e,pos:n}=this,i=e.indexOf(t,n);return-1===i?e.length:i}}const p=[];function f(t){const{length:e}=t,n=new d(t),i=[],r=[];let o=0;for(;n.pos0&&i.write(e),r[0]=s(i,a,r[0]),s(i,l,0),s(i,u,0),s(i,6===o.length?1:0,0),6===o.length&&s(i,o[5],0);for(const e of d)s(i,e,0);for(n++;nh||o===h&&a>=c)break;n=m(t,n,i,r)}return i.write(e),r[0]=s(i,h,r[0]),s(i,c,0),n}function v(t){const{length:e}=t,n=new d(t),i=[],r=[];let o=0,s=0,h=0,c=0,u=0,f=0,g=0,m=0;do{const t=n.indexOf(";");let e=0;for(;n.post;e--){const t=g;g=a(n,g),m=a(n,g===t?m:0);const e=a(n,0);i.push([e,g,m])}}else i=[[t]];b.push(i)}while(l(n,t))}_.bindings=b,i.push(_),r.push(_)}o++,n.pos=t+1}while(n.pos0&&i.write(e),r[1]=s(i,o[1],r[1]),s(i,(6===o.length?1:0)|(d?2:0)|(u?4:0),0),6===o.length){const{4:t,5:e}=o;t!==r[2]&&(r[3]=0),r[2]=s(i,t,r[2]),r[3]=s(i,e,r[3])}if(d){const{0:t,1:e,2:n}=o.callsite;t!==r[4]?(r[5]=0,r[6]=0):e!==r[5]&&(r[6]=0),r[4]=s(i,t,r[4]),r[5]=s(i,e,r[5]),r[6]=s(i,n,r[6])}if(p)for(const e of p){e.length>1&&s(i,-e.length,0),s(i,e[0][0],0);let t=a,n=l;for(let r=1;rh||o===h&&a>=c)break;n=_(t,n,i,r)}return r[0]0&&i.write(n),0===c.length)continue;let u=0;for(let t=0;t0&&i.write(e),u=s(i,n[0],u),1!==n.length&&(r=s(i,n[1],r),o=s(i,n[2],o),a=s(i,n[3],a),4!==n.length&&(l=s(i,n[4],l)))}}return i.flush()}t.decode=b,t.decodeGeneratedRanges=v,t.decodeOriginalScopes=f,t.encode=T,t.encodeGeneratedRanges=y,t.encodeOriginalScopes=g,Object.defineProperty(t,"__esModule",{value:!0})}(e)},9544:function(t,e,n){!function(t,e,n){"use strict";function i(t,e){return e&&!e.endsWith("/")&&(e+="/"),n(t,e)}function r(t){if(!t)return"";const e=t.lastIndexOf("/");return t.slice(0,e+1)}const o=0,a=1,s=2,l=3,h=4,c=1,u=2;function d(t,e){const n=p(t,0);if(n===t.length)return t;e||(t=t.slice());for(let i=n;i>1),a=t[r][o]-e;if(0===a)return v=!0,r;a<0?n=r+1:i=r-1}return v=!1,n-1}function _(t,e,n){for(let i=n+1;i=0&&t[i][o]===e;n=i--);return n}function b(){return{lastKey:-1,lastNeedle:-1,lastIndex:-1}}function w(t,e,n,i){const{lastKey:r,lastNeedle:a,lastIndex:s}=n;let l=0,h=t.length-1;if(i===r){if(e===a)return v=-1!==s&&t[s][o]===e,s;e>=a?l=-1===s?0:s:h=s}return n.lastKey=i,n.lastNeedle=e,n.lastIndex=y(t,e,l,h)}function S(t,e){const n=e.map(M);for(let i=0;ie;i--)t[i]=t[i-1];t[e]=n}function M(){return{__proto__:null}}const A=function(t,e){const n=C(t);if(!("sections"in n))return new N(n,e);const i=[],r=[],o=[],a=[],s=[];return I(n,e,i,r,o,a,s,0,0,1/0,1/0),Y({version:3,file:n.file,names:a,sources:r,sourcesContent:o,mappings:i,ignoreList:s})};function C(t){return"string"==typeof t?JSON.parse(t):t}function I(t,e,n,i,r,o,a,s,l,h,c){const{sections:u}=t;for(let d=0;df)return;const e=L(n,t),i=0===T?p:0,r=x[T];for(let n=0;n=g)return;if(1===c.length){e.push([u]);continue}const d=y+c[a],p=c[s],m=c[l];e.push(4===c.length?[u,d,p,m]:[u,d,p,m,_+c[h]])}}}function k(t,e){for(let n=0;ni(t||"",p)));const{mappings:f}=o;"string"==typeof f?(this._encoded=f,this._decoded=void 0):(this._encoded=void 0,this._decoded=d(f,n)),this._decodedMemo=b(),this._bySources=void 0,this._bySourceMemos=void 0}}function F(t){return t}function B(t){var n,i;return null!==(n=(i=F(t))._encoded)&&void 0!==n?n:i._encoded=e.encode(F(t)._decoded)}function z(t){var n;return(n=F(t))._decoded||(n._decoded=e.decode(F(t)._encoded))}function G(t,e,n){const i=z(t);if(e>=i.length)return null;const r=i[e],o=tt(r,F(t)._decodedMemo,e,n,O);return-1===o?null:r[o]}function V(t,e){let{line:n,column:i,bias:r}=e;if(n--,n<0)throw new Error(D);if(i<0)throw new Error(P);const o=z(t);if(n>=o.length)return J(null,null,null,null);const c=o[n],u=tt(c,F(t)._decodedMemo,n,i,r||O);if(-1===u)return J(null,null,null,null);const d=c[u];if(1===d.length)return J(null,null,null,null);const{names:p,resolvedSources:f}=t;return J(f[d[a]],d[s]+1,d[l],5===d.length?p[d[h]]:null)}function j(t,e){const{source:n,line:i,column:r,bias:o}=e;return nt(t,n,i,r,o||O,!1)}function H(t,e){const{source:n,line:i,column:r,bias:o}=e;return nt(t,n,i,r,o||R,!0)}function W(t,e){const n=z(t),{names:i,resolvedSources:r}=t;for(let o=0;o{"use strict";t.exports=function(t,e){if(null==t)throw new TypeError("expected first argument to be an object.");if(void 0===e||"undefined"==typeof Symbol)return t;if("function"!=typeof Object.getOwnPropertySymbols)return t;for(var n=Object.prototype.propertyIsEnumerable,i=Object(t),r=arguments.length,o=0;++o{"use strict";e.A=function(t,e){if(t&&e){var n=Array.isArray(e)?e:e.split(",");if(0===n.length)return!0;var i=t.name||"",r=(t.type||"").toLowerCase(),o=r.replace(/\/.*$/,"");return n.some((function(t){var e=t.trim().toLowerCase();return"."===e.charAt(0)?i.toLowerCase().endsWith(e):e.endsWith("/*")?o===e.replace(/\/.*$/,""):r===e}))}return!0}},735:(t,e,n)=>{"use strict";n.r(e),n.d(e,{default:()=>fl});var i={};n.r(i);var r=n(7378),o=n(4001),a=n(3656),s=n(6106);const l=r.createContext(null);function h(t){let{children:e,content:n}=t;const i=function(t){return(0,r.useMemo)((()=>({metadata:t.metadata,frontMatter:t.frontMatter,assets:t.assets,contentTitle:t.contentTitle,toc:t.toc})),[t])}(n);return(0,s.jsx)(l.Provider,{value:i,children:e})}function c(){const t=(0,r.useContext)(l);if(null===t)throw new a.dV("DocProvider");return t}function u(){const{metadata:t,frontMatter:e,assets:n}=c();return(0,s.jsx)(o.be,{title:t.title,description:t.description,keywords:e.keywords,image:n.image??e.image})}var d=n(3372),p=n(3577),f=n(265),g=n(8821);function m(t){const{permalink:e,title:n,subLabel:i,isNext:r}=t;return(0,s.jsxs)(g.A,{className:(0,d.A)("pagination-nav__link",r?"pagination-nav__link--next":"pagination-nav__link--prev"),to:e,children:[i&&(0,s.jsx)("div",{className:"pagination-nav__sublabel",children:i}),(0,s.jsx)("div",{className:"pagination-nav__label",children:n})]})}function v(t){const{previous:e,next:n}=t;return(0,s.jsxs)("nav",{className:"pagination-nav docusaurus-mt-lg","aria-label":(0,f.T)({id:"theme.docs.paginator.navAriaLabel",message:"Docs pages",description:"The ARIA label for the docs pagination"}),children:[e&&(0,s.jsx)(m,{...e,subLabel:(0,s.jsx)(f.A,{id:"theme.docs.paginator.previous",description:"The label used to navigate to the previous doc",children:"Previous"})}),n&&(0,s.jsx)(m,{...n,subLabel:(0,s.jsx)(f.A,{id:"theme.docs.paginator.next",description:"The label used to navigate to the next doc",children:"Next"}),isNext:!0})]})}function y(){const{metadata:t}=c();return(0,s.jsx)(v,{previous:t.previous,next:t.next})}var _=n(9377),x=n(9894),b=n(5971),w=n(1129),S=n(3368);const T={unreleased:function(t){let{siteTitle:e,versionMetadata:n}=t;return(0,s.jsx)(f.A,{id:"theme.docs.versions.unreleasedVersionLabel",description:"The label used to tell the user that he's browsing an unreleased doc version",values:{siteTitle:e,versionLabel:(0,s.jsx)("b",{children:n.label})},children:"This is unreleased documentation for {siteTitle} {versionLabel} version."})},unmaintained:function(t){let{siteTitle:e,versionMetadata:n}=t;return(0,s.jsx)(f.A,{id:"theme.docs.versions.unmaintainedVersionLabel",description:"The label used to tell the user that he's browsing an unmaintained doc version",values:{siteTitle:e,versionLabel:(0,s.jsx)("b",{children:n.label})},children:"This is documentation for {siteTitle} {versionLabel}, which is no longer actively maintained."})}};function M(t){const e=T[t.versionMetadata.banner];return(0,s.jsx)(e,{...t})}function A(t){let{versionLabel:e,to:n,onClick:i}=t;return(0,s.jsx)(f.A,{id:"theme.docs.versions.latestVersionSuggestionLabel",description:"The label used to tell the user to check the latest version",values:{versionLabel:e,latestVersionLink:(0,s.jsx)("b",{children:(0,s.jsx)(g.A,{to:n,onClick:i,children:(0,s.jsx)(f.A,{id:"theme.docs.versions.latestVersionLinkLabel",description:"The label used for the latest version suggestion link label",children:"latest version"})})})},children:"For up-to-date documentation, see the {latestVersionLink} ({versionLabel})."})}function C(t){let{className:e,versionMetadata:n}=t;const{siteConfig:{title:i}}=(0,_.A)(),{pluginId:r}=(0,x.vT)({failfast:!0}),{savePreferredVersionName:o}=(0,w.g1)(r),{latestDocSuggestion:a,latestVersionSuggestion:l}=(0,x.HW)(r),h=a??(c=l).docs.find((t=>t.id===c.mainDocId));var c;return(0,s.jsxs)("div",{className:(0,d.A)(e,b.G.docs.docVersionBanner,"alert alert--warning margin-bottom--md"),role:"alert",children:[(0,s.jsx)("div",{children:(0,s.jsx)(M,{siteTitle:i,versionMetadata:n})}),(0,s.jsx)("div",{className:"margin-top--md",children:(0,s.jsx)(A,{versionLabel:l.label,to:h.path,onClick:()=>o(l.name)})})]})}function I(t){let{className:e}=t;const n=(0,S.r)();return n.banner?(0,s.jsx)(C,{className:e,versionMetadata:n}):null}function E(t){let{className:e}=t;const n=(0,S.r)();return n.badge?(0,s.jsx)("span",{className:(0,d.A)(e,b.G.docs.docVersionBadge,"badge badge--secondary"),children:(0,s.jsx)(f.A,{id:"theme.docs.versionBadge.label",values:{versionLabel:n.label},children:"Version: {versionLabel}"})}):null}const k={tag:"tag_OQUs",tagRegular:"tagRegular_x8qX",tagWithCount:"tagWithCount_rnOv"};function L(t){let{permalink:e,label:n,count:i,description:r}=t;return(0,s.jsxs)(g.A,{href:e,title:r,className:(0,d.A)(k.tag,i?k.tagWithCount:k.tagRegular),children:[n,i&&(0,s.jsx)("span",{children:i})]})}const D={tags:"tags_ipvP",tag:"tag_E4pg"};function P(t){let{tags:e}=t;return(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)("b",{children:(0,s.jsx)(f.A,{id:"theme.tags.tagsListLabel",description:"The label alongside a tag list",children:"Tags:"})}),(0,s.jsx)("ul",{className:(0,d.A)(D.tags,"padding--none","margin-left--sm"),children:e.map((t=>(0,s.jsx)("li",{className:D.tag,children:(0,s.jsx)(L,{...t})},t.permalink)))})]})}const R={iconEdit:"iconEdit_V72j"};function O(t){let{className:e,...n}=t;return(0,s.jsx)("svg",{fill:"currentColor",height:"20",width:"20",viewBox:"0 0 40 40",className:(0,d.A)(R.iconEdit,e),"aria-hidden":"true",...n,children:(0,s.jsx)("g",{children:(0,s.jsx)("path",{d:"m34.5 11.7l-3 3.1-6.3-6.3 3.1-3q0.5-0.5 1.2-0.5t1.1 0.5l3.9 3.9q0.5 0.4 0.5 1.1t-0.5 1.2z m-29.5 17.1l18.4-18.5 6.3 6.3-18.4 18.4h-6.3v-6.2z"})})})}function N(t){let{editUrl:e}=t;return(0,s.jsxs)(g.A,{to:e,className:b.G.common.editThisPage,children:[(0,s.jsx)(O,{}),(0,s.jsx)(f.A,{id:"theme.common.editThisPage",description:"The link label to edit the current page",children:"Edit this page"})]})}function F(t){void 0===t&&(t={});const{i18n:{currentLocale:e}}=(0,_.A)(),n=function(){const{i18n:{currentLocale:t,localeConfigs:e}}=(0,_.A)();return e[t].calendar}();return new Intl.DateTimeFormat(e,{calendar:n,...t})}function B(t){let{lastUpdatedAt:e}=t;const n=new Date(e),i=F({day:"numeric",month:"short",year:"numeric",timeZone:"UTC"}).format(n);return(0,s.jsx)(f.A,{id:"theme.lastUpdated.atDate",description:"The words used to describe on which date a page has been last updated",values:{date:(0,s.jsx)("b",{children:(0,s.jsx)("time",{dateTime:n.toISOString(),itemProp:"dateModified",children:i})})},children:" on {date}"})}function z(t){let{lastUpdatedBy:e}=t;return(0,s.jsx)(f.A,{id:"theme.lastUpdated.byUser",description:"The words used to describe by who the page has been last updated",values:{user:(0,s.jsx)("b",{children:e})},children:" by {user}"})}function G(t){let{lastUpdatedAt:e,lastUpdatedBy:n}=t;return(0,s.jsxs)("span",{className:b.G.common.lastUpdated,children:[(0,s.jsx)(f.A,{id:"theme.lastUpdated.lastUpdatedAtBy",description:"The sentence used to display when a page has been last updated, and by who",values:{atDate:e?(0,s.jsx)(B,{lastUpdatedAt:e}):"",byUser:n?(0,s.jsx)(z,{lastUpdatedBy:n}):""},children:"Last updated{atDate}{byUser}"}),!1]})}const V={lastUpdated:"lastUpdated_LloW"};function j(t){let{className:e,editUrl:n,lastUpdatedAt:i,lastUpdatedBy:r}=t;return(0,s.jsxs)("div",{className:(0,d.A)("row",e),children:[(0,s.jsx)("div",{className:"col",children:n&&(0,s.jsx)(N,{editUrl:n})}),(0,s.jsx)("div",{className:(0,d.A)("col",V.lastUpdated),children:(i||r)&&(0,s.jsx)(G,{lastUpdatedAt:i,lastUpdatedBy:r})})]})}function H(){const{metadata:t}=c(),{editUrl:e,lastUpdatedAt:n,lastUpdatedBy:i,tags:r}=t,o=r.length>0,a=!!(e||n||i);return o||a?(0,s.jsxs)("footer",{className:(0,d.A)(b.G.docs.docFooter,"docusaurus-mt-lg"),children:[o&&(0,s.jsx)("div",{className:(0,d.A)("row margin-top--sm",b.G.docs.docFooterTagsRow),children:(0,s.jsx)("div",{className:"col",children:(0,s.jsx)(P,{tags:r})})}),a&&(0,s.jsx)(j,{className:(0,d.A)("margin-top--sm",b.G.docs.docFooterEditMetaRow),editUrl:e,lastUpdatedAt:n,lastUpdatedBy:i})]}):null}var W=n(4522),U=n(7322);function q(t){const e=t.map((t=>({...t,parentIndex:-1,children:[]}))),n=Array(7).fill(-1);e.forEach(((t,e)=>{const i=n.slice(2,t.level);t.parentIndex=Math.max(...i),n[t.level]=e}));const i=[];return e.forEach((t=>{const{parentIndex:n,...r}=t;n>=0?e[n].children.push(r):i.push(r)})),i}function X(t){let{toc:e,minHeadingLevel:n,maxHeadingLevel:i}=t;return e.flatMap((t=>{const e=X({toc:t.children,minHeadingLevel:n,maxHeadingLevel:i});return function(t){return t.level>=n&&t.level<=i}(t)?[{...t,children:e}]:e}))}function Y(t){const e=t.getBoundingClientRect();return e.top===e.bottom?Y(t.parentNode):e}function Z(t,e){let{anchorTopOffset:n}=e;const i=t.find((t=>Y(t).top>=n));if(i){return function(t){return t.top>0&&t.bottom{t.current=e?0:document.querySelector(".navbar").clientHeight}),[e]),t}function K(t){const e=(0,r.useRef)(void 0),n=$();(0,r.useEffect)((()=>{if(!t)return()=>{};const{linkClassName:i,linkActiveClassName:r,minHeadingLevel:o,maxHeadingLevel:a}=t;function s(){const t=function(t){return Array.from(document.getElementsByClassName(t))}(i),s=function(t){let{minHeadingLevel:e,maxHeadingLevel:n}=t;const i=[];for(let r=e;r<=n;r+=1)i.push(`h${r}.anchor`);return Array.from(document.querySelectorAll(i.join()))}({minHeadingLevel:o,maxHeadingLevel:a}),l=Z(s,{anchorTopOffset:n.current}),h=t.find((t=>l&&l.id===function(t){return decodeURIComponent(t.href.substring(t.href.indexOf("#")+1))}(t)));t.forEach((t=>{!function(t,n){n?(e.current&&e.current!==t&&e.current.classList.remove(r),t.classList.add(r),e.current=t):t.classList.remove(r)}(t,t===h)}))}return document.addEventListener("scroll",s),document.addEventListener("resize",s),s(),()=>{document.removeEventListener("scroll",s),document.removeEventListener("resize",s)}}),[t,n])}function J(t){let{toc:e,className:n,linkClassName:i,isChild:r}=t;return e.length?(0,s.jsx)("ul",{className:r?void 0:n,children:e.map((t=>(0,s.jsxs)("li",{children:[(0,s.jsx)(g.A,{to:`#${t.id}`,className:i??void 0,dangerouslySetInnerHTML:{__html:t.value}}),(0,s.jsx)(J,{isChild:!0,toc:t.children,className:n,linkClassName:i})]},t.id)))}):null}const Q=r.memo(J);function tt(t){let{toc:e,className:n="table-of-contents table-of-contents__left-border",linkClassName:i="table-of-contents__link",linkActiveClassName:o,minHeadingLevel:a,maxHeadingLevel:l,...h}=t;const c=(0,U.p)(),u=a??c.tableOfContents.minHeadingLevel,d=l??c.tableOfContents.maxHeadingLevel,p=function(t){let{toc:e,minHeadingLevel:n,maxHeadingLevel:i}=t;return(0,r.useMemo)((()=>X({toc:q(e),minHeadingLevel:n,maxHeadingLevel:i})),[e,n,i])}({toc:e,minHeadingLevel:u,maxHeadingLevel:d});return K((0,r.useMemo)((()=>{if(i&&o)return{linkClassName:i,linkActiveClassName:o,minHeadingLevel:u,maxHeadingLevel:d}}),[i,o,u,d])),(0,s.jsx)(Q,{toc:p,className:n,linkClassName:i,...h})}const et={tocCollapsibleButton:"tocCollapsibleButton_yTCM",tocCollapsibleButtonExpanded:"tocCollapsibleButtonExpanded_ldvk"};function nt(t){let{collapsed:e,...n}=t;return(0,s.jsx)("button",{type:"button",...n,className:(0,d.A)("clean-btn",et.tocCollapsibleButton,!e&&et.tocCollapsibleButtonExpanded,n.className),children:(0,s.jsx)(f.A,{id:"theme.TOCCollapsible.toggleButtonLabel",description:"The label used by the button on the collapsible TOC component",children:"On this page"})})}const it={tocCollapsible:"tocCollapsible_snip",tocCollapsibleContent:"tocCollapsibleContent_RPSy",tocCollapsibleExpanded:"tocCollapsibleExpanded_bf6e"};function rt(t){let{toc:e,className:n,minHeadingLevel:i,maxHeadingLevel:r}=t;const{collapsed:o,toggleCollapsed:a}=(0,W.u)({initialState:!0});return(0,s.jsxs)("div",{className:(0,d.A)(it.tocCollapsible,!o&&it.tocCollapsibleExpanded,n),children:[(0,s.jsx)(nt,{collapsed:o,onClick:a}),(0,s.jsx)(W.N,{lazy:!0,className:it.tocCollapsibleContent,collapsed:o,children:(0,s.jsx)(tt,{toc:e,minHeadingLevel:i,maxHeadingLevel:r})})]})}const ot={tocMobile:"tocMobile_Y16I"};function at(){const{toc:t,frontMatter:e}=c();return(0,s.jsx)(rt,{toc:t,minHeadingLevel:e.toc_min_heading_level,maxHeadingLevel:e.toc_max_heading_level,className:(0,d.A)(b.G.docs.docTocMobile,ot.tocMobile)})}const st={tableOfContents:"tableOfContents_GM8w",docItemContainer:"docItemContainer_iv4V"},lt="table-of-contents__link toc-highlight",ht="table-of-contents__link--active";function ct(t){let{className:e,...n}=t;return(0,s.jsx)("div",{className:(0,d.A)(st.tableOfContents,"thin-scrollbar",e),children:(0,s.jsx)(tt,{...n,linkClassName:lt,linkActiveClassName:ht})})}function ut(){const{toc:t,frontMatter:e}=c();return(0,s.jsx)(ct,{toc:t,minHeadingLevel:e.toc_min_heading_level,maxHeadingLevel:e.toc_max_heading_level,className:b.G.docs.docTocDesktop})}var dt,pt,ft,gt=n(7719),mt=n(2036),vt=n(2827),yt=n(9436),_t=n(7733),xt={characterData:!0,characterDataOldValue:!0,childList:!0,subtree:!0};function bt(t){var e=window.getSelection();e.empty(),e.addRange(t)}function wt(t){return(t.metaKey||t.ctrlKey)&&!t.altKey&&"KeyZ"===t.code}function St(t){t=[t.firstChild];for(var e,n="";e=t.pop();)e.nodeType===Node.TEXT_NODE?n+=e.textContent:e.nodeType===Node.ELEMENT_NODE&&"BR"===e.nodeName&&(n+="\n"),e.nextSibling&&t.push(e.nextSibling),e.firstChild&&t.push(e.firstChild);return"\n"!==n[n.length-1]&&(n+="\n"),n}function Tt(t){var e=window.getSelection().getRangeAt(0),n=e.collapsed?0:e.toString().length,i=document.createRange();return i.setStart(t,0),i.setEnd(e.startContainer,e.startOffset),{position:t=(i=i.toString()).length,extent:n,content:i=(i=i.split("\n"))[e=i.length-1],line:e}}function Mt(t,e,n){0>=e&&(e=0),(!n||0>n)&&(n=e);var i=document.createRange();t=[t.firstChild];for(var r,o=0,a=e;r=t[t.length-1];){if(r.nodeType===Node.TEXT_NODE){if(o+r.textContent.length>=a){var s=a-o;if(a===e){if(a=i,s=a){if(a===e){if(s=i,0";case pt.template:return"template";case pt.ellipsis:return"...";case pt.backQuote:return"`";case pt.dollarBraceL:return"${";case pt.at:return"@";case pt.hash:return"#";case pt.eq:return"=";case pt.assign:return"_=";case pt.preIncDec:case pt.postIncDec:return"++/--";case pt.bang:return"!";case pt.tilde:return"~";case pt.pipeline:return"|>";case pt.nullishCoalescing:return"??";case pt.logicalOR:return"||";case pt.logicalAND:return"&&";case pt.bitwiseOR:return"|";case pt.bitwiseXOR:return"^";case pt.bitwiseAND:return"&";case pt.equality:return"==/!=";case pt.lessThan:return"<";case pt.greaterThan:return">";case pt.relationalOrEqual:return"<=/>=";case pt.bitShiftL:return"<<";case pt.bitShiftR:return">>/>>>";case pt.plus:return"+";case pt.minus:return"-";case pt.modulo:return"%";case pt.star:return"*";case pt.slash:return"/";case pt.exponent:return"**";case pt.jsxName:return"jsxName";case pt.jsxText:return"jsxText";case pt.jsxEmptyText:return"jsxEmptyText";case pt.jsxTagStart:return"jsxTagStart";case pt.jsxTagEnd:return"jsxTagEnd";case pt.typeParameterStart:return"typeParameterStart";case pt.nonNullAssertion:return"nonNullAssertion";case pt._break:return"break";case pt._case:return"case";case pt._catch:return"catch";case pt._continue:return"continue";case pt._debugger:return"debugger";case pt._default:return"default";case pt._do:return"do";case pt._else:return"else";case pt._finally:return"finally";case pt._for:return"for";case pt._function:return"function";case pt._if:return"if";case pt._return:return"return";case pt._switch:return"switch";case pt._throw:return"throw";case pt._try:return"try";case pt._var:return"var";case pt._let:return"let";case pt._const:return"const";case pt._while:return"while";case pt._with:return"with";case pt._new:return"new";case pt._this:return"this";case pt._super:return"super";case pt._class:return"class";case pt._extends:return"extends";case pt._export:return"export";case pt._import:return"import";case pt._yield:return"yield";case pt._null:return"null";case pt._true:return"true";case pt._false:return"false";case pt._in:return"in";case pt._instanceof:return"instanceof";case pt._typeof:return"typeof";case pt._void:return"void";case pt._delete:return"delete";case pt._async:return"async";case pt._get:return"get";case pt._set:return"set";case pt._declare:return"declare";case pt._readonly:return"readonly";case pt._abstract:return"abstract";case pt._static:return"static";case pt._public:return"public";case pt._private:return"private";case pt._protected:return"protected";case pt._override:return"override";case pt._as:return"as";case pt._enum:return"enum";case pt._type:return"type";case pt._implements:return"implements";default:return""}}(t)}"`)}function Zt(t="Unexpected token",e=Dt.start){if(Dt.error)return;const n=new SyntaxError(t);n.pos=e,Dt.error=n,Dt.pos=Pt.length,ke(pt.eof)}const $t=[9,11,12,ft.space,ft.nonBreakingSpace,ft.oghamSpaceMark,8192,8193,8194,8195,8196,8197,8198,8199,8200,8201,8202,8239,8287,12288,65279],Kt=/(?:\s|\/\/.*|\/\*[^]*?\*\/)*/g,Jt=new Uint8Array(65536);for(const gl of $t)Jt[gl]=1;function Qt(t){if(t<48)return 36===t;if(t<58)return!0;if(t<65)return!1;if(t<91)return!0;if(t<97)return 95===t;if(t<123)return!0;if(t<128)return!1;throw new Error("Should not be called with non-ASCII char code.")}const te=new Uint8Array(65536);for(let gl=0;gl<128;gl++)te[gl]=Qt(gl)?1:0;for(let gl=128;gl<65536;gl++)te[gl]=1;for(const gl of $t)te[gl]=0;te[8232]=0,te[8233]=0;const ee=te.slice();for(let gl=ft.digit0;gl<=ft.digit9;gl++)ee[gl]=0;const ne=new Int32Array([-1,27,783,918,1755,2376,2862,3483,-1,3699,-1,4617,4752,4833,5130,5508,5940,-1,6480,6939,7749,8181,8451,8613,-1,8829,-1,-1,-1,54,243,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,432,-1,-1,-1,675,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,81,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,108,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,135,-1,-1,-1,-1,-1,-1,-1,-1,-1,162,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,189,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,216,-1,-1,-1,-1,-1,-1,dt._abstract<<1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,270,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,297,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,324,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,351,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,378,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,405,-1,-1,-1,-1,-1,-1,-1,-1,dt._accessor<<1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,dt._as<<1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,459,-1,-1,-1,-1,-1,594,-1,-1,-1,-1,-1,-1,486,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,513,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,540,-1,-1,-1,-1,-1,-1,dt._assert<<1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,567,-1,-1,-1,-1,-1,-1,-1,dt._asserts<<1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,621,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,648,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,dt._async<<1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,702,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,729,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,756,-1,-1,-1,-1,-1,-1,dt._await<<1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,810,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,837,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,864,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,891,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,1+(pt._break<<1),-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,945,-1,-1,-1,-1,-1,-1,1107,-1,-1,-1,1242,-1,-1,1350,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,972,1026,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,999,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,1+(pt._case<<1),-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,1053,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,1080,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,1+(pt._catch<<1),-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,1134,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,1161,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,1188,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,1215,-1,-1,-1,-1,-1,-1,-1,dt._checks<<1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,1269,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,1296,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,1323,-1,-1,-1,-1,-1,-1,-1,1+(pt._class<<1),-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,1377,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,1404,1620,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,1431,-1,-1,-1,-1,-1,-1,1+(pt._const<<1),-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,1458,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,1485,-1,-1,-1,-1,-1,-1,-1,-1,1512,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,1539,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,1566,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,1593,-1,-1,-1,-1,-1,-1,-1,-1,dt._constructor<<1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,1647,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,1674,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,1701,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,1728,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,1+(pt._continue<<1),-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,1782,-1,-1,-1,-1,-1,-1,-1,-1,-1,2349,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,1809,1971,-1,-1,2106,-1,-1,-1,-1,-1,2241,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,1836,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,1863,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,1890,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,1917,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,1944,-1,-1,-1,-1,-1,-1,-1,-1,1+(pt._debugger<<1),-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,1998,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,2025,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,2052,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,2079,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,dt._declare<<1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,2133,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,2160,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,2187,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,2214,-1,-1,-1,-1,-1,-1,1+(pt._default<<1),-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,2268,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,2295,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,2322,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,1+(pt._delete<<1),-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,1+(pt._do<<1),-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,2403,-1,2484,-1,-1,-1,-1,-1,-1,-1,-1,-1,2565,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,2430,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,2457,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,1+(pt._else<<1),-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,2511,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,2538,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,dt._enum<<1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,2592,-1,-1,-1,2727,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,2619,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,2646,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,2673,-1,-1,-1,-1,-1,-1,1+(pt._export<<1),-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,2700,-1,-1,-1,-1,-1,-1,-1,dt._exports<<1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,2754,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,2781,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,2808,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,2835,-1,-1,-1,-1,-1,-1,-1,1+(pt._extends<<1),-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,2889,-1,-1,-1,-1,-1,-1,-1,2997,-1,-1,-1,-1,-1,3159,-1,-1,3213,-1,-1,3294,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,2916,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,2943,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,2970,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,1+(pt._false<<1),-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,3024,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,3051,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,3078,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,3105,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,3132,-1,1+(pt._finally<<1),-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,3186,-1,-1,-1,-1,-1,-1,-1,-1,1+(pt._for<<1),-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,3240,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,3267,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,dt._from<<1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,3321,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,3348,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,3375,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,3402,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,3429,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,3456,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,1+(pt._function<<1),-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,3510,-1,-1,-1,-1,-1,-1,3564,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,3537,-1,-1,-1,-1,-1,-1,dt._get<<1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,3591,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,3618,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,3645,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,3672,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,dt._global<<1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,3726,-1,-1,-1,-1,-1,-1,3753,4077,-1,-1,-1,-1,4590,-1,-1,-1,-1,-1,-1,-1,1+(pt._if<<1),-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,3780,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,3807,-1,-1,3996,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,3834,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,3861,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,3888,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,3915,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,3942,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,3969,-1,-1,-1,-1,-1,-1,-1,dt._implements<<1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,4023,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,4050,-1,-1,-1,-1,-1,-1,1+(pt._import<<1),-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,1+(pt._in<<1),-1,-1,-1,-1,-1,4104,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,4185,4401,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,4131,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,4158,-1,-1,-1,-1,-1,-1,-1,-1,dt._infer<<1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,4212,-1,-1,-1,-1,-1,-1,-1,4239,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,4266,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,4293,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,4320,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,4347,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,4374,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,1+(pt._instanceof<<1),-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,4428,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,4455,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,4482,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,4509,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,4536,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,4563,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,dt._interface<<1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,dt._is<<1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,4644,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,4671,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,4698,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,4725,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,dt._keyof<<1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,4779,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,4806,-1,-1,-1,-1,-1,-1,1+(pt._let<<1),-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,4860,-1,-1,-1,-1,-1,4995,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,4887,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,4914,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,4941,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,4968,-1,-1,-1,-1,-1,-1,-1,dt._mixins<<1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,5022,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,5049,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,5076,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,5103,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,dt._module<<1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,5157,-1,-1,-1,5373,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,5427,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,5184,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,5211,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,5238,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,5265,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,5292,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,5319,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,5346,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,dt._namespace<<1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,5400,-1,-1,-1,1+(pt._new<<1),-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,5454,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,5481,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,1+(pt._null<<1),-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,5535,-1,-1,-1,-1,-1,-1,-1,-1,-1,5562,-1,-1,-1,-1,5697,5751,-1,-1,-1,-1,dt._of<<1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,5589,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,5616,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,5643,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,5670,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,dt._opaque<<1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,5724,-1,-1,-1,-1,-1,-1,dt._out<<1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,5778,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,5805,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,5832,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,5859,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,5886,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,5913,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,dt._override<<1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,5967,-1,-1,6345,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,5994,-1,-1,-1,-1,-1,6129,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,6021,-1,-1,-1,-1,-1,6048,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,6075,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,6102,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,dt._private<<1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,6156,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,6183,-1,-1,-1,-1,-1,-1,-1,-1,-1,6318,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,6210,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,6237,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,6264,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,6291,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,dt._protected<<1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,dt._proto<<1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,6372,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,6399,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,6426,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,6453,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,dt._public<<1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,6507,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,6534,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,6696,-1,-1,6831,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,6561,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,6588,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,6615,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,6642,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,6669,-1,dt._readonly<<1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,6723,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,6750,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,6777,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,6804,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,dt._require<<1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,6858,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,6885,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,6912,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,1+(pt._return<<1),-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,6966,-1,-1,-1,7182,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,7236,7371,-1,7479,-1,7614,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,6993,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,7020,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,7047,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,7074,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,7101,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,7128,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,7155,-1,-1,-1,-1,-1,-1,-1,dt._satisfies<<1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,7209,-1,-1,-1,-1,-1,-1,dt._set<<1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,7263,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,7290,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,7317,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,7344,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,dt._static<<1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,7398,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,7425,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,7452,-1,-1,-1,-1,-1,-1,-1,-1,1+(pt._super<<1),-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,7506,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,7533,-1,-1,-1,-1,-1,-1,-1,-1,-1,7560,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,7587,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,1+(pt._switch<<1),-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,7641,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,7668,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,7695,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,7722,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,dt._symbol<<1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,7776,-1,-1,-1,-1,-1,-1,-1,-1,-1,7938,-1,-1,-1,-1,-1,-1,8046,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,7803,-1,-1,-1,-1,-1,-1,-1,-1,7857,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,7830,-1,-1,-1,-1,-1,-1,-1,1+(pt._this<<1),-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,7884,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,7911,-1,-1,-1,1+(pt._throw<<1),-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,7965,-1,-1,-1,8019,-1,-1,-1,-1,-1,-1,7992,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,1+(pt._true<<1),-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,1+(pt._try<<1),-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,8073,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,8100,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,dt._type<<1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,8127,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,8154,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,1+(pt._typeof<<1),-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,8208,-1,-1,-1,-1,8343,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,8235,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,8262,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,8289,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,8316,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,dt._unique<<1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,8370,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,8397,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,8424,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,dt._using<<1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,8478,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,8532,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,8505,-1,-1,-1,-1,-1,-1,-1,-1,1+(pt._var<<1),-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,8559,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,8586,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,1+(pt._void<<1),-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,8640,8748,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,8667,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,8694,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,8721,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,1+(pt._while<<1),-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,8775,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,8802,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,1+(pt._with<<1),-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,8856,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,8883,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,8910,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,8937,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,1+(pt._yield<<1),-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1]);var ie,re;function oe(t){const e=t.identifierRole;return e===ie.TopLevelDeclaration||e===ie.FunctionScopedDeclaration||e===ie.BlockScopedDeclaration||e===ie.ObjectShorthandTopLevelDeclaration||e===ie.ObjectShorthandFunctionScopedDeclaration||e===ie.ObjectShorthandBlockScopedDeclaration}function ae(t){const e=t.identifierRole;return e===ie.FunctionScopedDeclaration||e===ie.BlockScopedDeclaration||e===ie.ObjectShorthandFunctionScopedDeclaration||e===ie.ObjectShorthandBlockScopedDeclaration}function se(t){const e=t.identifierRole;return e===ie.TopLevelDeclaration||e===ie.ObjectShorthandTopLevelDeclaration||e===ie.ImportDeclaration}function le(t){const e=t.identifierRole;return e===ie.TopLevelDeclaration||e===ie.BlockScopedDeclaration||e===ie.ObjectShorthandTopLevelDeclaration||e===ie.ObjectShorthandBlockScopedDeclaration}function he(t){const e=t.identifierRole;return e===ie.FunctionScopedDeclaration||e===ie.ObjectShorthandFunctionScopedDeclaration}function ce(t){return t.identifierRole===ie.ObjectShorthandTopLevelDeclaration||t.identifierRole===ie.ObjectShorthandBlockScopedDeclaration||t.identifierRole===ie.ObjectShorthandFunctionScopedDeclaration}!function(t){t[t.Access=0]="Access";t[t.ExportAccess=1]="ExportAccess";t[t.TopLevelDeclaration=2]="TopLevelDeclaration";t[t.FunctionScopedDeclaration=3]="FunctionScopedDeclaration";t[t.BlockScopedDeclaration=4]="BlockScopedDeclaration";t[t.ObjectShorthandTopLevelDeclaration=5]="ObjectShorthandTopLevelDeclaration";t[t.ObjectShorthandFunctionScopedDeclaration=6]="ObjectShorthandFunctionScopedDeclaration";t[t.ObjectShorthandBlockScopedDeclaration=7]="ObjectShorthandBlockScopedDeclaration";t[t.ObjectShorthand=8]="ObjectShorthand";t[t.ImportDeclaration=9]="ImportDeclaration";t[t.ObjectKey=10]="ObjectKey";t[t.ImportAccess=11]="ImportAccess"}(ie||(ie={})),function(t){t[t.NoChildren=0]="NoChildren";t[t.OneChild=1]="OneChild";t[t.StaticChildren=2]="StaticChildren";t[t.KeyAfterPropSpread=3]="KeyAfterPropSpread"}(re||(re={}));class ue{constructor(){this.type=Dt.type,this.contextualKeyword=Dt.contextualKeyword,this.start=Dt.start,this.end=Dt.end,this.scopeDepth=Dt.scopeDepth,this.isType=Dt.isType,this.identifierRole=null,this.jsxRole=null,this.shadowsGlobal=!1,this.isAsyncOperation=!1,this.contextId=null,this.rhsEndIndex=null,this.isExpression=!1,this.numNullishCoalesceStarts=0,this.numNullishCoalesceEnds=0,this.isOptionalChainStart=!1,this.isOptionalChainEnd=!1,this.subscriptStartIndex=null,this.nullishStartIndex=null}}function de(){Dt.tokens.push(new ue),Ae()}function pe(){Dt.tokens.push(new ue),Dt.start=Dt.pos,function(){for(;;){if(Dt.pos>=Pt.length)return void Zt("Unterminated template");const t=Pt.charCodeAt(Dt.pos);if(t===ft.graveAccent||t===ft.dollarSign&&Pt.charCodeAt(Dt.pos+1)===ft.leftCurlyBrace)return Dt.pos===Dt.start&&_e(pt.template)?t===ft.dollarSign?(Dt.pos+=2,void ke(pt.dollarBraceL)):(++Dt.pos,void ke(pt.backQuote)):void ke(pt.template);t===ft.backslash&&Dt.pos++,Dt.pos++}}()}function fe(){Dt.type===pt.assign&&--Dt.pos,function(){const t=Dt.pos;let e=!1,n=!1;for(;;){if(Dt.pos>=Pt.length)return void Zt("Unterminated regular expression",t);const i=Pt.charCodeAt(Dt.pos);if(e)e=!1;else{if(i===ft.leftSquareBracket)n=!0;else if(i===ft.rightSquareBracket&&n)n=!1;else if(i===ft.slash&&!n)break;e=i===ft.backslash}++Dt.pos}++Dt.pos,function(){for(;Dt.pos=Pt.length){const t=Dt.tokens;return t.length>=2&&t[t.length-1].start>=Pt.length&&t[t.length-2].start>=Pt.length&&Zt("Unexpectedly reached the end of input."),void ke(pt.eof)}var t;t=Pt.charCodeAt(Dt.pos),ee[t]||t===ft.backslash||t===ft.atSign&&Pt.charCodeAt(Dt.pos+1)===ft.atSign?function(){let t=0,e=0,n=Dt.pos;for(;nft.lowercaseZ));){const i=ne[t+(e-ft.lowercaseA)+1];if(-1===i)break;t=i,n++}const i=ne[t];if(i>-1&&!te[e])return Dt.pos=n,void(1&i?ke(i>>>1):ke(pt.name,i>>>1));for(;nPt.length)return void Zt("Unterminated comment",Dt.pos-2);Dt.pos+=2}function Ie(t){let e=Pt.charCodeAt(Dt.pos+=t);if(Dt.pos=ft.digit0&&t<=ft.digit9?Ne(!0):t===ft.dot&&Pt.charCodeAt(Dt.pos+2)===ft.dot?(Dt.pos+=3,ke(pt.ellipsis)):(++Dt.pos,ke(pt.dot))}();case ft.leftParenthesis:return++Dt.pos,void ke(pt.parenL);case ft.rightParenthesis:return++Dt.pos,void ke(pt.parenR);case ft.semicolon:return++Dt.pos,void ke(pt.semi);case ft.comma:return++Dt.pos,void ke(pt.comma);case ft.leftSquareBracket:return++Dt.pos,void ke(pt.bracketL);case ft.rightSquareBracket:return++Dt.pos,void ke(pt.bracketR);case ft.leftCurlyBrace:return void(Lt&&Pt.charCodeAt(Dt.pos+1)===ft.verticalBar?Re(pt.braceBarL,2):(++Dt.pos,ke(pt.braceL)));case ft.rightCurlyBrace:return++Dt.pos,void ke(pt.braceR);case ft.colon:return void(Pt.charCodeAt(Dt.pos+1)===ft.colon?Re(pt.doubleColon,2):(++Dt.pos,ke(pt.colon)));case ft.questionMark:return void function(){const t=Pt.charCodeAt(Dt.pos+1),e=Pt.charCodeAt(Dt.pos+2);t!==ft.questionMark||Lt&&Dt.isType?t!==ft.dot||e>=ft.digit0&&e<=ft.digit9?(++Dt.pos,ke(pt.question)):(Dt.pos+=2,ke(pt.questionDot)):e===ft.equalsTo?Re(pt.assign,3):Re(pt.nullishCoalescing,2)}();case ft.atSign:return++Dt.pos,void ke(pt.at);case ft.graveAccent:return++Dt.pos,void ke(pt.backQuote);case ft.digit0:{const t=Pt.charCodeAt(Dt.pos+1);if(t===ft.lowercaseX||t===ft.uppercaseX||t===ft.lowercaseO||t===ft.uppercaseO||t===ft.lowercaseB||t===ft.uppercaseB)return void function(){Dt.pos+=2;for(;;){const t=Pt.charCodeAt(Dt.pos);if(!(t>=ft.digit0&&t<=ft.digit9||t>=ft.lowercaseA&&t<=ft.lowercaseF||t>=ft.uppercaseA&&t<=ft.uppercaseF||t===ft.underscore))break;Dt.pos++}const t=Pt.charCodeAt(Dt.pos);t===ft.lowercaseN?(++Dt.pos,ke(pt.bigint)):ke(pt.num)}()}case ft.digit1:case ft.digit2:case ft.digit3:case ft.digit4:case ft.digit5:case ft.digit6:case ft.digit7:case ft.digit8:case ft.digit9:return void Ne(!1);case ft.quotationMark:case ft.apostrophe:return void function(t){for(Dt.pos++;;){if(Dt.pos>=Pt.length)return void Zt("Unterminated string constant");const e=Pt.charCodeAt(Dt.pos);if(e===ft.backslash)Dt.pos++;else if(e===t)break;Dt.pos++}Dt.pos++,ke(pt.string)}(t);case ft.slash:return void(Pt.charCodeAt(Dt.pos+1)===ft.equalsTo?Re(pt.assign,2):Re(pt.slash,1));case ft.percentSign:case ft.asterisk:return void function(t){let e=t===ft.asterisk?pt.star:pt.modulo,n=1,i=Pt.charCodeAt(Dt.pos+1);t===ft.asterisk&&i===ft.asterisk&&(n++,i=Pt.charCodeAt(Dt.pos+2),e=pt.exponent),i===ft.equalsTo&&Pt.charCodeAt(Dt.pos+2)!==ft.greaterThan&&(n++,e=pt.assign),Re(e,n)}(t);case ft.verticalBar:case ft.ampersand:return void function(t){const e=Pt.charCodeAt(Dt.pos+1);if(e!==t){if(t===ft.verticalBar){if(e===ft.greaterThan)return void Re(pt.pipeline,2);if(e===ft.rightCurlyBrace&&Lt)return void Re(pt.braceBarR,2)}e!==ft.equalsTo?Re(t===ft.verticalBar?pt.bitwiseOR:pt.bitwiseAND,1):Re(pt.assign,2)}else Pt.charCodeAt(Dt.pos+2)===ft.equalsTo?Re(pt.assign,3):Re(t===ft.verticalBar?pt.logicalOR:pt.logicalAND,2)}(t);case ft.caret:return void(Pt.charCodeAt(Dt.pos+1)===ft.equalsTo?Re(pt.assign,2):Re(pt.bitwiseXOR,1));case ft.plusSign:case ft.dash:return void function(t){const e=Pt.charCodeAt(Dt.pos+1);e!==t?e===ft.equalsTo?Re(pt.assign,2):t===ft.plusSign?Re(pt.plus,1):Re(pt.minus,1):Re(pt.preIncDec,2)}(t);case ft.lessThan:return void function(){const t=Pt.charCodeAt(Dt.pos+1);if(t===ft.lessThan)return Pt.charCodeAt(Dt.pos+2)===ft.equalsTo?void Re(pt.assign,3):void(Dt.isType?Re(pt.lessThan,1):Re(pt.bitShiftL,2));t===ft.equalsTo?Re(pt.relationalOrEqual,2):Re(pt.lessThan,1)}();case ft.greaterThan:return void Le();case ft.equalsTo:case ft.exclamationMark:return void function(t){const e=Pt.charCodeAt(Dt.pos+1);if(e!==ft.equalsTo)return t===ft.equalsTo&&e===ft.greaterThan?(Dt.pos+=2,void ke(pt.arrow)):void Re(t===ft.equalsTo?pt.eq:pt.bang,1);Re(pt.equality,Pt.charCodeAt(Dt.pos+2)===ft.equalsTo?3:2)}(t);case ft.tilde:return void Re(pt.tilde,1)}Zt(`Unexpected character '${String.fromCharCode(t)}'`,Dt.pos)}function Re(t,e){Dt.pos+=e,ke(t)}function Oe(){for(;;){const t=Pt.charCodeAt(Dt.pos);if(!(t>=ft.digit0&&t<=ft.digit9||t===ft.underscore))break;Dt.pos++}}function Ne(t){let e=!1,n=!1;t||Oe();let i=Pt.charCodeAt(Dt.pos);i===ft.dot&&(++Dt.pos,Oe(),i=Pt.charCodeAt(Dt.pos)),i!==ft.uppercaseE&&i!==ft.lowercaseE||(i=Pt.charCodeAt(++Dt.pos),i!==ft.plusSign&&i!==ft.dash||++Dt.pos,Oe(),i=Pt.charCodeAt(Dt.pos)),i===ft.lowercaseN?(++Dt.pos,e=!0):i===ft.lowercaseM&&(++Dt.pos,n=!0),ke(e?pt.bigint:n?pt.decimal:pt.num)}function Fe(t,e=t.currentIndex()){let n=e+1;if(Be(t,n)){const i=t.identifierNameAtIndex(e);return{isType:!1,leftName:i,rightName:i,endIndex:n}}if(n++,Be(t,n))return{isType:!0,leftName:null,rightName:null,endIndex:n};if(n++,Be(t,n))return{isType:!1,leftName:t.identifierNameAtIndex(e),rightName:t.identifierNameAtIndex(e+2),endIndex:n};if(n++,Be(t,n))return{isType:!0,leftName:null,rightName:null,endIndex:n};throw new Error(`Unexpected import/export specifier at ${e}`)}function Be(t,e){const n=t.tokens[e];return n.type===pt.braceR||n.type===pt.comma}const ze=new Map([["quot",'"'],["amp","&"],["apos","'"],["lt","<"],["gt",">"],["nbsp","\xa0"],["iexcl","\xa1"],["cent","\xa2"],["pound","\xa3"],["curren","\xa4"],["yen","\xa5"],["brvbar","\xa6"],["sect","\xa7"],["uml","\xa8"],["copy","\xa9"],["ordf","\xaa"],["laquo","\xab"],["not","\xac"],["shy","\xad"],["reg","\xae"],["macr","\xaf"],["deg","\xb0"],["plusmn","\xb1"],["sup2","\xb2"],["sup3","\xb3"],["acute","\xb4"],["micro","\xb5"],["para","\xb6"],["middot","\xb7"],["cedil","\xb8"],["sup1","\xb9"],["ordm","\xba"],["raquo","\xbb"],["frac14","\xbc"],["frac12","\xbd"],["frac34","\xbe"],["iquest","\xbf"],["Agrave","\xc0"],["Aacute","\xc1"],["Acirc","\xc2"],["Atilde","\xc3"],["Auml","\xc4"],["Aring","\xc5"],["AElig","\xc6"],["Ccedil","\xc7"],["Egrave","\xc8"],["Eacute","\xc9"],["Ecirc","\xca"],["Euml","\xcb"],["Igrave","\xcc"],["Iacute","\xcd"],["Icirc","\xce"],["Iuml","\xcf"],["ETH","\xd0"],["Ntilde","\xd1"],["Ograve","\xd2"],["Oacute","\xd3"],["Ocirc","\xd4"],["Otilde","\xd5"],["Ouml","\xd6"],["times","\xd7"],["Oslash","\xd8"],["Ugrave","\xd9"],["Uacute","\xda"],["Ucirc","\xdb"],["Uuml","\xdc"],["Yacute","\xdd"],["THORN","\xde"],["szlig","\xdf"],["agrave","\xe0"],["aacute","\xe1"],["acirc","\xe2"],["atilde","\xe3"],["auml","\xe4"],["aring","\xe5"],["aelig","\xe6"],["ccedil","\xe7"],["egrave","\xe8"],["eacute","\xe9"],["ecirc","\xea"],["euml","\xeb"],["igrave","\xec"],["iacute","\xed"],["icirc","\xee"],["iuml","\xef"],["eth","\xf0"],["ntilde","\xf1"],["ograve","\xf2"],["oacute","\xf3"],["ocirc","\xf4"],["otilde","\xf5"],["ouml","\xf6"],["divide","\xf7"],["oslash","\xf8"],["ugrave","\xf9"],["uacute","\xfa"],["ucirc","\xfb"],["uuml","\xfc"],["yacute","\xfd"],["thorn","\xfe"],["yuml","\xff"],["OElig","\u0152"],["oelig","\u0153"],["Scaron","\u0160"],["scaron","\u0161"],["Yuml","\u0178"],["fnof","\u0192"],["circ","\u02c6"],["tilde","\u02dc"],["Alpha","\u0391"],["Beta","\u0392"],["Gamma","\u0393"],["Delta","\u0394"],["Epsilon","\u0395"],["Zeta","\u0396"],["Eta","\u0397"],["Theta","\u0398"],["Iota","\u0399"],["Kappa","\u039a"],["Lambda","\u039b"],["Mu","\u039c"],["Nu","\u039d"],["Xi","\u039e"],["Omicron","\u039f"],["Pi","\u03a0"],["Rho","\u03a1"],["Sigma","\u03a3"],["Tau","\u03a4"],["Upsilon","\u03a5"],["Phi","\u03a6"],["Chi","\u03a7"],["Psi","\u03a8"],["Omega","\u03a9"],["alpha","\u03b1"],["beta","\u03b2"],["gamma","\u03b3"],["delta","\u03b4"],["epsilon","\u03b5"],["zeta","\u03b6"],["eta","\u03b7"],["theta","\u03b8"],["iota","\u03b9"],["kappa","\u03ba"],["lambda","\u03bb"],["mu","\u03bc"],["nu","\u03bd"],["xi","\u03be"],["omicron","\u03bf"],["pi","\u03c0"],["rho","\u03c1"],["sigmaf","\u03c2"],["sigma","\u03c3"],["tau","\u03c4"],["upsilon","\u03c5"],["phi","\u03c6"],["chi","\u03c7"],["psi","\u03c8"],["omega","\u03c9"],["thetasym","\u03d1"],["upsih","\u03d2"],["piv","\u03d6"],["ensp","\u2002"],["emsp","\u2003"],["thinsp","\u2009"],["zwnj","\u200c"],["zwj","\u200d"],["lrm","\u200e"],["rlm","\u200f"],["ndash","\u2013"],["mdash","\u2014"],["lsquo","\u2018"],["rsquo","\u2019"],["sbquo","\u201a"],["ldquo","\u201c"],["rdquo","\u201d"],["bdquo","\u201e"],["dagger","\u2020"],["Dagger","\u2021"],["bull","\u2022"],["hellip","\u2026"],["permil","\u2030"],["prime","\u2032"],["Prime","\u2033"],["lsaquo","\u2039"],["rsaquo","\u203a"],["oline","\u203e"],["frasl","\u2044"],["euro","\u20ac"],["image","\u2111"],["weierp","\u2118"],["real","\u211c"],["trade","\u2122"],["alefsym","\u2135"],["larr","\u2190"],["uarr","\u2191"],["rarr","\u2192"],["darr","\u2193"],["harr","\u2194"],["crarr","\u21b5"],["lArr","\u21d0"],["uArr","\u21d1"],["rArr","\u21d2"],["dArr","\u21d3"],["hArr","\u21d4"],["forall","\u2200"],["part","\u2202"],["exist","\u2203"],["empty","\u2205"],["nabla","\u2207"],["isin","\u2208"],["notin","\u2209"],["ni","\u220b"],["prod","\u220f"],["sum","\u2211"],["minus","\u2212"],["lowast","\u2217"],["radic","\u221a"],["prop","\u221d"],["infin","\u221e"],["ang","\u2220"],["and","\u2227"],["or","\u2228"],["cap","\u2229"],["cup","\u222a"],["int","\u222b"],["there4","\u2234"],["sim","\u223c"],["cong","\u2245"],["asymp","\u2248"],["ne","\u2260"],["equiv","\u2261"],["le","\u2264"],["ge","\u2265"],["sub","\u2282"],["sup","\u2283"],["nsub","\u2284"],["sube","\u2286"],["supe","\u2287"],["oplus","\u2295"],["otimes","\u2297"],["perp","\u22a5"],["sdot","\u22c5"],["lceil","\u2308"],["rceil","\u2309"],["lfloor","\u230a"],["rfloor","\u230b"],["lang","\u2329"],["rang","\u232a"],["loz","\u25ca"],["spades","\u2660"],["clubs","\u2663"],["hearts","\u2665"],["diams","\u2666"]]);function Ge(t){const[e,n]=Ve(t.jsxPragma||"React.createElement"),[i,r]=Ve(t.jsxFragmentPragma||"React.Fragment");return{base:e,suffix:n,fragmentBase:i,fragmentSuffix:r}}function Ve(t){let e=t.indexOf(".");return-1===e&&(e=t.length),[t.slice(0,e),t.slice(e)]}class je{getPrefixCode(){return""}getHoistedCode(){return""}getSuffixCode(){return""}}class He extends je{__init(){this.lastLineNumber=1}__init2(){this.lastIndex=0}__init3(){this.filenameVarName=null}__init4(){this.esmAutomaticImportNameResolutions={}}__init5(){this.cjsAutomaticModuleNameResolutions={}}constructor(t,e,n,i,r){super(),this.rootTransformer=t,this.tokens=e,this.importProcessor=n,this.nameManager=i,this.options=r,He.prototype.__init.call(this),He.prototype.__init2.call(this),He.prototype.__init3.call(this),He.prototype.__init4.call(this),He.prototype.__init5.call(this),this.jsxPragmaInfo=Ge(r),this.isAutomaticRuntime="automatic"===r.jsxRuntime,this.jsxImportSource=r.jsxImportSource||"react"}process(){return!!this.tokens.matches1(pt.jsxTagStart)&&(this.processJSXTag(),!0)}getPrefixCode(){let t="";if(this.filenameVarName&&(t+=`const ${this.filenameVarName} = ${JSON.stringify(this.options.filePath||"")};`),this.isAutomaticRuntime)if(this.importProcessor)for(const[e,n]of Object.entries(this.cjsAutomaticModuleNameResolutions))t+=`var ${n} = require("${e}");`;else{const{createElement:e,...n}=this.esmAutomaticImportNameResolutions;e&&(t+=`import {createElement as ${e}} from "${this.jsxImportSource}";`);const i=Object.entries(n).map((([t,e])=>`${t} as ${e}`)).join(", ");if(i){t+=`import {${i}} from "${this.jsxImportSource+(this.options.production?"/jsx-runtime":"/jsx-dev-runtime")}";`}}return t}processJSXTag(){const{jsxRole:t,start:e}=this.tokens.currentToken(),n=this.options.production?null:this.getElementLocationCode(e);this.isAutomaticRuntime&&t!==re.KeyAfterPropSpread?this.transformTagToJSXFunc(n,t):this.transformTagToCreateElement(n)}getElementLocationCode(t){return`lineNumber: ${this.getLineNumberForIndex(t)}`}getLineNumberForIndex(t){const e=this.tokens.code;for(;this.lastIndex or > at the end of the tag.");this.tokens.removeToken(),this.processAutomaticChildrenAndEndProps(e)}i&&this.tokens.appendCode(`, ${i}`)}for(this.options.production||(null===i&&this.tokens.appendCode(", void 0"),this.tokens.appendCode(`, ${n}, ${this.getDevSource(t)}, this`)),this.tokens.removeInitialToken();!this.tokens.matches1(pt.jsxTagEnd);)this.tokens.removeToken();this.tokens.replaceToken(")")}transformTagToCreateElement(t){if(this.tokens.replaceToken(this.getCreateElementInvocationCode()),this.tokens.matches1(pt.jsxTagEnd))this.tokens.replaceToken(`${this.getFragmentCode()}, null`),this.processChildren(!0);else if(this.processTagIntro(),this.processPropsObjectWithDevInfo(t),this.tokens.matches2(pt.slash,pt.jsxTagEnd));else{if(!this.tokens.matches1(pt.jsxTagEnd))throw new Error("Expected either /> or > at the end of the tag.");this.tokens.removeToken(),this.processChildren(!0)}for(this.tokens.removeInitialToken();!this.tokens.matches1(pt.jsxTagEnd);)this.tokens.removeToken();this.tokens.replaceToken(")")}getJSXFuncInvocationCode(t){return this.options.production?t?this.claimAutoImportedFuncInvocation("jsxs","/jsx-runtime"):this.claimAutoImportedFuncInvocation("jsx","/jsx-runtime"):this.claimAutoImportedFuncInvocation("jsxDEV","/jsx-dev-runtime")}getCreateElementInvocationCode(){if(this.isAutomaticRuntime)return this.claimAutoImportedFuncInvocation("createElement","");{const{jsxPragmaInfo:t}=this;return`${this.importProcessor&&this.importProcessor.getIdentifierReplacement(t.base)||t.base}${t.suffix}(`}}getFragmentCode(){if(this.isAutomaticRuntime)return this.claimAutoImportedName("Fragment",this.options.production?"/jsx-runtime":"/jsx-dev-runtime");{const{jsxPragmaInfo:t}=this;return(this.importProcessor&&this.importProcessor.getIdentifierReplacement(t.fragmentBase)||t.fragmentBase)+t.fragmentSuffix}}claimAutoImportedFuncInvocation(t,e){const n=this.claimAutoImportedName(t,e);return this.importProcessor?`${n}.call(void 0, `:`${n}(`}claimAutoImportedName(t,e){if(this.importProcessor){const n=this.jsxImportSource+e;return this.cjsAutomaticModuleNameResolutions[n]||(this.cjsAutomaticModuleNameResolutions[n]=this.importProcessor.getFreeIdentifierForPath(n)),`${this.cjsAutomaticModuleNameResolutions[n]}.${t}`}return this.esmAutomaticImportNameResolutions[t]||(this.esmAutomaticImportNameResolutions[t]=this.nameManager.claimFreeName(`_${t}`)),this.esmAutomaticImportNameResolutions[t]}processTagIntro(){let t=this.tokens.currentIndex()+1;for(;this.tokens.tokens[t].isType||!this.tokens.matches2AtIndex(t-1,pt.jsxName,pt.jsxName)&&!this.tokens.matches2AtIndex(t-1,pt.greaterThan,pt.jsxName)&&!this.tokens.matches1AtIndex(t,pt.braceL)&&!this.tokens.matches1AtIndex(t,pt.jsxTagEnd)&&!this.tokens.matches2AtIndex(t,pt.slash,pt.jsxTagEnd);)t++;if(t===this.tokens.currentIndex()+1){const t=this.tokens.identifierName();We(t)&&this.tokens.replaceToken(`'${t}'`)}for(;this.tokens.currentIndex()=ft.lowercaseA&&e<=ft.lowercaseZ}function Ue(t){let e=0,n=0;for(const i of t)"\n"===i?(e++,n=0):" "===i&&n++;return"\n".repeat(e)+" ".repeat(n)}function qe(t,e){let n,i="",r=0,o=e;if("#"===t[o]){let e,i=10;if(o++,"x"===t[o])for(i=16,o++,e=o;o=ft.digit0&&a<=ft.digit9||a>=ft.lowercaseA&&a<=ft.lowercaseF||a>=ft.uppercaseA&&a<=ft.uppercaseF);)o++;else for(e=o;o=ft.digit0&&t<=ft.digit9}function Ye(t,e){const n=Ge(e),i=new Set;for(let r=0;r0||e.namedExports.length>0)continue;[...e.defaultNames,...e.wildcardNames,...e.namedImports.map((({localName:t})=>t))].every((t=>this.shouldAutomaticallyElideImportedName(t)))&&this.importsToReplace.set(t,"")}}shouldAutomaticallyElideImportedName(t){return this.isTypeScriptTransformEnabled&&!this.keepUnusedImports&&!this.nonTypeIdentifiers.has(t)}generateImportReplacements(){for(const[t,e]of this.importInfoByPath.entries()){const{defaultNames:n,wildcardNames:i,namedImports:r,namedExports:o,exportStarNames:a,hasStarExport:s}=e;if(0===n.length&&0===i.length&&0===r.length&&0===o.length&&0===a.length&&!s){this.importsToReplace.set(t,`require('${t}');`);continue}const l=this.getFreeIdentifierForPath(t);let h;h=this.enableLegacyTypeScriptModuleInterop?l:i.length>0?i[0]:this.getFreeIdentifierForPath(t);let c=`var ${l} = require('${t}');`;if(i.length>0)for(const t of i){c+=` var ${t} = ${this.enableLegacyTypeScriptModuleInterop?l:`${this.helperManager.getHelperName("interopRequireWildcard")}(${l})`};`}else a.length>0&&h!==l?c+=` var ${h} = ${this.helperManager.getHelperName("interopRequireWildcard")}(${l});`:n.length>0&&h!==l&&(c+=` var ${h} = ${this.helperManager.getHelperName("interopRequireDefault")}(${l});`);for(const{importedName:t,localName:e}of o)c+=` ${this.helperManager.getHelperName("createNamedExportFrom")}(${l}, '${e}', '${t}');`;for(const t of a)c+=` exports.${t} = ${h};`;s&&(c+=` ${this.helperManager.getHelperName("createStarExport")}(${l});`),this.importsToReplace.set(t,c);for(const t of n)this.identifierReplacements.set(t,`${h}.default`);for(const{importedName:t,localName:e}of r)this.identifierReplacements.set(e,`${l}.${t}`)}}getFreeIdentifierForPath(t){const e=t.split("/"),n=e[e.length-1].replace(/\W/g,"");return this.nameManager.claimFreeName(`_${n}`)}preprocessImportAtIndex(t){const e=[],n=[],i=[];if(t++,(this.tokens.matchesContextualAtIndex(t,dt._type)||this.tokens.matches1AtIndex(t,pt._typeof))&&!this.tokens.matches1AtIndex(t+1,pt.comma)&&!this.tokens.matchesContextualAtIndex(t+1,dt._from))return;if(this.tokens.matches1AtIndex(t,pt.parenL))return;if(this.tokens.matches1AtIndex(t,pt.name)&&(e.push(this.tokens.identifierNameAtIndex(t)),t++,this.tokens.matches1AtIndex(t,pt.comma)&&t++),this.tokens.matches1AtIndex(t,pt.star)&&(t+=2,n.push(this.tokens.identifierNameAtIndex(t)),t++),this.tokens.matches1AtIndex(t,pt.braceL)){const n=this.getNamedImports(t+1);t=n.newIndex;for(const t of n.namedImports)"default"===t.importedName?e.push(t.localName):i.push(t)}if(this.tokens.matchesContextualAtIndex(t,dt._from)&&t++,!this.tokens.matches1AtIndex(t,pt.string))throw new Error("Expected string token at the end of import statement.");const r=this.tokens.stringValueAtIndex(t),o=this.getImportInfo(r);o.defaultNames.push(...e),o.wildcardNames.push(...n),o.namedImports.push(...i),0===e.length&&0===n.length&&0===i.length&&(o.hasBareImport=!0)}preprocessExportAtIndex(t){if(this.tokens.matches2AtIndex(t,pt._export,pt._var)||this.tokens.matches2AtIndex(t,pt._export,pt._let)||this.tokens.matches2AtIndex(t,pt._export,pt._const))this.preprocessVarExportAtIndex(t);else if(this.tokens.matches2AtIndex(t,pt._export,pt._function)||this.tokens.matches2AtIndex(t,pt._export,pt._class)){const e=this.tokens.identifierNameAtIndex(t+2);this.addExportBinding(e,e)}else if(this.tokens.matches3AtIndex(t,pt._export,pt.name,pt._function)){const e=this.tokens.identifierNameAtIndex(t+3);this.addExportBinding(e,e)}else this.tokens.matches2AtIndex(t,pt._export,pt.braceL)?this.preprocessNamedExportAtIndex(t):this.tokens.matches2AtIndex(t,pt._export,pt.star)&&this.preprocessExportStarAtIndex(t)}preprocessVarExportAtIndex(t){let e=0;for(let n=t+2;;n++)if(this.tokens.matches1AtIndex(n,pt.braceL)||this.tokens.matches1AtIndex(n,pt.dollarBraceL)||this.tokens.matches1AtIndex(n,pt.bracketL))e++;else if(this.tokens.matches1AtIndex(n,pt.braceR)||this.tokens.matches1AtIndex(n,pt.bracketR))e--;else{if(0===e&&!this.tokens.matches1AtIndex(n,pt.name))break;if(this.tokens.matches1AtIndex(1,pt.eq)){const t=this.tokens.currentToken().rhsEndIndex;if(null==t)throw new Error("Expected = token with an end index.");n=t-1}else{if(oe(this.tokens.tokens[n])){const t=this.tokens.identifierNameAtIndex(n);this.identifierReplacements.set(t,`exports.${t}`)}}}}preprocessNamedExportAtIndex(t){t+=2;const{newIndex:e,namedImports:n}=this.getNamedImports(t);if(t=e,!this.tokens.matchesContextualAtIndex(t,dt._from)){for(const{importedName:t,localName:e}of n)this.addExportBinding(t,e);return}if(t++,!this.tokens.matches1AtIndex(t,pt.string))throw new Error("Expected string token at the end of import statement.");const i=this.tokens.stringValueAtIndex(t);this.getImportInfo(i).namedExports.push(...n)}preprocessExportStarAtIndex(t){let e=null;if(this.tokens.matches3AtIndex(t,pt._export,pt.star,pt._as)?(t+=3,e=this.tokens.identifierNameAtIndex(t),t+=2):t+=3,!this.tokens.matches1AtIndex(t,pt.string))throw new Error("Expected string token at the end of star export statement.");const n=this.tokens.stringValueAtIndex(t),i=this.getImportInfo(n);null!==e?i.exportStarNames.push(e):i.hasStarExport=!0}getNamedImports(t){const e=[];for(;;){if(this.tokens.matches1AtIndex(t,pt.braceR)){t++;break}const n=Fe(this.tokens,t);if(t=n.endIndex,n.isType||e.push({importedName:n.leftName,localName:n.rightName}),this.tokens.matches2AtIndex(t,pt.comma,pt.braceR)){t+=2;break}if(this.tokens.matches1AtIndex(t,pt.braceR)){t++;break}if(!this.tokens.matches1AtIndex(t,pt.comma))throw new Error(`Unexpected token: ${JSON.stringify(this.tokens.tokens[t])}`);t++}return{newIndex:t,namedImports:e}}getImportInfo(t){const e=this.importInfoByPath.get(t);if(e)return e;const n={defaultNames:[],wildcardNames:[],namedImports:[],namedExports:[],hasBareImport:!1,exportStarNames:[],hasStarExport:!1};return this.importInfoByPath.set(t,n),n}addExportBinding(t,e){this.exportBindingsByLocalName.has(t)||this.exportBindingsByLocalName.set(t,[]),this.exportBindingsByLocalName.get(t).push(e)}claimImportCode(t){const e=this.importsToReplace.get(t);return this.importsToReplace.set(t,""),e||""}getIdentifierReplacement(t){return this.identifierReplacements.get(t)||null}resolveExportBinding(t){const e=this.exportBindingsByLocalName.get(t);return e&&0!==e.length?e.map((t=>`exports.${t}`)).join(" = "):null}getGlobalNames(){return new Set([...this.identifierReplacements.keys(),...this.exportBindingsByLocalName.keys()])}}var $e=n(6455);function Ke({code:t,mappings:e},n,i,r,o){const a=function(t,e){const n=new Array(e.length);let i=0,r=e[i].start,o=0;for(let a=0;a obj[importedName]});\n }\n ",createStarExport:'\n function createStarExport(obj) {\n Object.keys(obj)\n .filter((key) => key !== "default" && key !== "__esModule")\n .forEach((key) => {\n if (exports.hasOwnProperty(key)) {\n return;\n }\n Object.defineProperty(exports, key, {enumerable: true, configurable: true, get: () => obj[key]});\n });\n }\n ',nullishCoalesce:"\n function nullishCoalesce(lhs, rhsFn) {\n if (lhs != null) {\n return lhs;\n } else {\n return rhsFn();\n }\n }\n ",asyncNullishCoalesce:"\n async function asyncNullishCoalesce(lhs, rhsFn) {\n if (lhs != null) {\n return lhs;\n } else {\n return await rhsFn();\n }\n }\n ",optionalChain:"\n function optionalChain(ops) {\n let lastAccessLHS = undefined;\n let value = ops[0];\n let i = 1;\n while (i < ops.length) {\n const op = ops[i];\n const fn = ops[i + 1];\n i += 2;\n if ((op === 'optionalAccess' || op === 'optionalCall') && value == null) {\n return undefined;\n }\n if (op === 'access' || op === 'optionalAccess') {\n lastAccessLHS = value;\n value = fn(value);\n } else if (op === 'call' || op === 'optionalCall') {\n value = fn((...args) => value.call(lastAccessLHS, ...args));\n lastAccessLHS = undefined;\n }\n }\n return value;\n }\n ",asyncOptionalChain:"\n async function asyncOptionalChain(ops) {\n let lastAccessLHS = undefined;\n let value = ops[0];\n let i = 1;\n while (i < ops.length) {\n const op = ops[i];\n const fn = ops[i + 1];\n i += 2;\n if ((op === 'optionalAccess' || op === 'optionalCall') && value == null) {\n return undefined;\n }\n if (op === 'access' || op === 'optionalAccess') {\n lastAccessLHS = value;\n value = await fn(value);\n } else if (op === 'call' || op === 'optionalCall') {\n value = await fn((...args) => value.call(lastAccessLHS, ...args));\n lastAccessLHS = undefined;\n }\n }\n return value;\n }\n ",optionalChainDelete:"\n function optionalChainDelete(ops) {\n const result = OPTIONAL_CHAIN_NAME(ops);\n return result == null ? true : result;\n }\n ",asyncOptionalChainDelete:"\n async function asyncOptionalChainDelete(ops) {\n const result = await ASYNC_OPTIONAL_CHAIN_NAME(ops);\n return result == null ? true : result;\n }\n "};class Qe{__init(){this.helperNames={}}__init2(){this.createRequireName=null}constructor(t){this.nameManager=t,Qe.prototype.__init.call(this),Qe.prototype.__init2.call(this)}getHelperName(t){let e=this.helperNames[t];return e||(e=this.nameManager.claimFreeName(`_${t}`),this.helperNames[t]=e,e)}emitHelpers(){let t="";this.helperNames.optionalChainDelete&&this.getHelperName("optionalChain"),this.helperNames.asyncOptionalChainDelete&&this.getHelperName("asyncOptionalChain");for(const[e,n]of Object.entries(Je)){const i=this.helperNames[e];let r=n;"optionalChainDelete"===e?r=r.replace("OPTIONAL_CHAIN_NAME",this.helperNames.optionalChain):"asyncOptionalChainDelete"===e?r=r.replace("ASYNC_OPTIONAL_CHAIN_NAME",this.helperNames.asyncOptionalChain):"require"===e&&(null===this.createRequireName&&(this.createRequireName=this.nameManager.claimFreeName("_createRequire")),r=r.replace(/CREATE_REQUIRE_NAME/g,this.createRequireName)),i&&(t+=" ",t+=r.replace(e,i).replace(/\s+/g," ").trim())}return t}}function tn(t,e,n){(function(t,e){for(const n of t.tokens)if(n.type===pt.name&&!n.isType&&ae(n)&&e.has(t.identifierNameForToken(n)))return!0;return!1})(t,n)&&function(t,e,n){const i=[];let r=e.length-1;for(let o=t.tokens.length-1;;o--){for(;i.length>0&&i[i.length-1].startTokenIndex===o+1;)i.pop();for(;r>=0&&e[r].endTokenIndex===o+1;)i.push(e[r]),r--;if(o<0)break;const a=t.tokens[o],s=t.identifierNameForToken(a);if(i.length>1&&!a.isType&&a.type===pt.name&&n.has(s))if(le(a))en(i[i.length-1],t,s);else if(he(a)){let e=i.length-1;for(;e>0&&!i[e].isFunctionScope;)e--;if(e<0)throw new Error("Did not find parent function scope.");en(i[e],t,s)}}if(i.length>0)throw new Error("Expected empty scope stack after processing file.")}(t,e,n)}function en(t,e,n){for(let i=t.startTokenIndex;i0&&!Dt.error;)_e(pt.braceL)||_e(pt.bracketL)?t++:(_e(pt.braceR)||_e(pt.bracketR))&&t--,de();return!0}return!1}()){if(_e(pt.colon)||_e(pt.comma)||_e(pt.question)||_e(pt.eq))return!0;if(_e(pt.parenR)&&(de(),_e(pt.arrow)))return!0}return!1}();return Dt.restoreFromSnapshot(t),e}()}function jn(t){const e=ge(0);Yt(t);(function(){const t=Dt.snapshot();if(zt(dt._asserts))return de(),Vt(dt._is)?(Un(),!0):vn()||_e(pt._this)?(de(),Vt(dt._is)&&Un(),!0):(Dt.restoreFromSnapshot(t),!1);if(vn()||_e(pt._this))return de(),zt(dt._is)&&!Wt()?(de(),Un(),!0):(Dt.restoreFromSnapshot(t),!1);return!1})()||Un(),me(e)}function Hn(){_e(pt.colon)&&Wn()}function Wn(){const t=ge(0);Yt(pt.colon),Un(),me(t)}function Un(){if(qn(),Dt.inDisallowConditionalTypesContext||Wt()||!ve(pt._extends))return;const t=Dt.inDisallowConditionalTypesContext;Dt.inDisallowConditionalTypesContext=!0,qn(),Dt.inDisallowConditionalTypesContext=t,Yt(pt.question),Un(),Yt(pt.colon),Un()}function qn(){Vn()?Fn(Nn.TSFunctionType):_e(pt._new)?Fn(Nn.TSConstructorType):zt(dt._abstract)&&xe()===pt._new?Fn(Nn.TSAbstractConstructorType):function(){if(ve(pt.bitwiseOR),Gn(),_e(pt.bitwiseOR))for(;ve(pt.bitwiseOR);)Gn()}()}function Xn(){for(;!_e(pt.braceL)&&!Dt.error;)Yn(),ve(pt.comma)}function Yn(){bn(),_e(pt.lessThan)&&si()}function Zn(){if(_e(pt.string)?Ni():Ji(),ve(pt.eq)){const t=Dt.tokens.length-1;bi(),Dt.tokens[t].rhsEndIndex=Dt.tokens.length}}function $n(){for(hn(!1),Yt(pt.braceL);!ve(pt.braceR)&&!Dt.error;)Zn(),ve(pt.comma)}function Kn(){Yt(pt.braceL),Fr(pt.braceR)}function Jn(){hn(!1),ve(pt.dot)?Jn():Kn()}function Qn(){zt(dt._global)?Ji():_e(pt.string)?Ri():Zt(),_e(pt.braceL)?Kn():Xt()}function ti(){cn(),Yt(pt.eq),zt(dt._require)&&xe()===pt.parenL?(jt(dt._require),Yt(pt.parenL),_e(pt.string)||Zt(),Ni(),Yt(pt.parenR)):bn(),Xt()}function ei(){return ii(Dt.contextualKeyword,!0)}function ni(t){switch(t){case dt._declare:{const t=Dt.tokens.length-1,e=function(){if(qt())return!1;switch(Dt.type){case pt._function:{const t=ge(1);return de(),jr(Dt.start,!0),me(t),!0}case pt._class:{const t=ge(1);return Wr(!0,!1),me(t),!0}case pt._const:if(_e(pt._const)&&Gt(dt._enum)){const t=ge(1);return Yt(pt._const),jt(dt._enum),Dt.tokens[Dt.tokens.length-1].type=pt._enum,$n(),me(t),!0}case pt._var:case pt._let:{const t=ge(1);return Or(Dt.type!==pt._var),me(t),!0}case pt.name:{const t=ge(1),e=Dt.contextualKeyword;let n=!1;return e===dt._global?(Qn(),n=!0):n=ii(e,!0),me(t),n}default:return!1}}();if(e)return Dt.tokens[t].type=pt._declare,!0;break}case dt._global:if(_e(pt.braceL))return Kn(),!0;break;default:return ii(t,!1)}return!1}function ii(t,e){switch(t){case dt._abstract:if(ri(e)&&_e(pt._class))return Dt.tokens[Dt.tokens.length-1].type=pt._abstract,Wr(!0,!1),!0;break;case dt._enum:if(ri(e)&&_e(pt.name))return Dt.tokens[Dt.tokens.length-1].type=pt._enum,$n(),!0;break;case dt._interface:if(ri(e)&&_e(pt.name)){const t=ge(e?2:1);return hn(!1),Tn(),ve(pt._extends)&&Xn(),Dn(),me(t),!0}break;case dt._module:if(ri(e)){if(_e(pt.string)){const t=ge(e?2:1);return Qn(),me(t),!0}if(_e(pt.name)){const t=ge(e?2:1);return Jn(),me(t),!0}}break;case dt._namespace:if(ri(e)&&_e(pt.name)){const t=ge(e?2:1);return Jn(),me(t),!0}break;case dt._type:if(ri(e)&&_e(pt.name)){const t=ge(e?2:1);return hn(!1),Tn(),Yt(pt.eq),Un(),Xt(),me(t),!0}}return!1}function ri(t){return t?(de(),!0):!qt()}function oi(){const t=Dt.snapshot();return Mn(),Hr(),_e(pt.colon)&&jn(pt.colon),Yt(pt.arrow),Dt.error?(Dt.restoreFromSnapshot(t),!1):(Zi(!0),!0)}function ai(){Dt.type===pt.bitShiftL&&(Dt.pos-=1,ke(pt.lessThan)),si()}function si(){const t=ge(0);for(Yt(pt.lessThan);!_e(pt.greaterThan)&&!Dt.error;)Un(),ve(pt.comma);t?(Yt(pt.greaterThan),me(t)):(me(t),De(),Yt(pt.greaterThan),Dt.tokens[Dt.tokens.length-1].isType=!0)}function li(){if(_e(pt.name))switch(Dt.contextualKeyword){case dt._abstract:case dt._declare:case dt._enum:case dt._interface:case dt._module:case dt._namespace:case dt._type:return!0}return!1}function hi(t,e){return Et?function(t,e){if(!_e(pt.lessThan))return wi(t,e);const n=Dt.snapshot();let i=wi(t,e);if(!Dt.error)return i;Dt.restoreFromSnapshot(n);Dt.type=pt.typeParameterStart,Mn(),i=wi(t,e),i||Zt();return i}(t,e):function(t,e){if(!_e(pt.lessThan))return wi(t,e);const n=Dt.snapshot();Mn();const i=wi(t,e);i||Zt();if(!Dt.error)return i;Dt.restoreFromSnapshot(n);return wi(t,e)}(t,e)}function ci(){vi()}function ui(t){ci(),ve(pt.colon)?ci():Dt.tokens[Dt.tokens.length-1].identifierRole=t}function di(){const t=Dt.tokens.length;ui(ie.Access);let e=!1;for(;_e(pt.dot);)e=!0,vi(),ci();if(!e){const e=Dt.tokens[t],n=Pt.charCodeAt(e.start);n>=ft.lowercaseA&&n<=ft.lowercaseZ&&(e.identifierRole=null)}}function pi(){switch(Dt.type){case pt.braceL:return de(),xi(),void vi();case pt.jsxTagStart:return mi(),void vi();case pt.string:return void vi();default:Zt("JSX value should be either an expression or a quoted JSX text")}}function fi(t){if(_e(pt.jsxTagEnd))return!1;di(),kt&&function(){if(ve(pt.jsxTagStart)){Dt.tokens[Dt.tokens.length-1].type=pt.typeParameterStart;const t=ge(1);for(;!_e(pt.greaterThan)&&!Dt.error;)Un(),ve(pt.comma);vi(),me(t)}}();let e=!1;for(;!_e(pt.slash)&&!_e(pt.jsxTagEnd)&&!Dt.error;)ve(pt.braceL)?(e=!0,Yt(pt.ellipsis),bi(),vi()):(e&&Dt.end-Dt.start==3&&Pt.charCodeAt(Dt.start)===ft.lowercaseK&&Pt.charCodeAt(Dt.start+1)===ft.lowercaseE&&Pt.charCodeAt(Dt.start+2)===ft.lowercaseY&&(Dt.tokens[t].jsxRole=re.KeyAfterPropSpread),ui(ie.ObjectKey),_e(pt.eq)&&(vi(),pi()));const n=_e(pt.slash);return n&&vi(),n}function gi(){const t=Dt.tokens.length-1;Dt.tokens[t].jsxRole=re.NoChildren;let e=0;if(!fi(t))for(yi();;)switch(Dt.type){case pt.jsxTagStart:if(vi(),_e(pt.slash))return vi(),_e(pt.jsxTagEnd)||di(),void(Dt.tokens[t].jsxRole!==re.KeyAfterPropSpread&&(1===e?Dt.tokens[t].jsxRole=re.OneChild:e>1&&(Dt.tokens[t].jsxRole=re.StaticChildren)));e++,gi(),yi();break;case pt.jsxText:e++,yi();break;case pt.jsxEmptyText:yi();break;case pt.braceL:de(),_e(pt.ellipsis)?(Yt(pt.ellipsis),xi(),yi(),e+=2):(_e(pt.braceR)||(e++,xi()),yi());break;default:return void Zt()}}function mi(){vi(),gi()}function vi(){Dt.tokens.push(new ue),Ee(),Dt.start=Dt.pos;const t=Pt.charCodeAt(Dt.pos);if(ee[t])!function(){let t;do{if(Dt.pos>Pt.length)return void Zt("Unexpectedly reached the end of input.");t=Pt.charCodeAt(++Dt.pos)}while(te[t]||t===ft.dash);ke(pt.jsxName)}();else if(t===ft.quotationMark||t===ft.apostrophe)!function(t){for(Dt.pos++;;){if(Dt.pos>=Pt.length)return void Zt("Unterminated string constant");if(Pt.charCodeAt(Dt.pos)===t){Dt.pos++;break}Dt.pos++}ke(pt.string)}(t);else switch(++Dt.pos,t){case ft.greaterThan:ke(pt.jsxTagEnd);break;case ft.lessThan:ke(pt.jsxTagStart);break;case ft.slash:ke(pt.slash);break;case ft.equalsTo:ke(pt.eq);break;case ft.leftCurlyBrace:ke(pt.braceL);break;case ft.dot:ke(pt.dot);break;case ft.colon:ke(pt.colon);break;default:Zt()}}function yi(){Dt.tokens.push(new ue),Dt.start=Dt.pos,function(){let t=!1,e=!1;for(;;){if(Dt.pos>=Pt.length)return void Zt("Unterminated JSX contents");const n=Pt.charCodeAt(Dt.pos);if(n===ft.lessThan||n===ft.leftCurlyBrace)return Dt.pos===Dt.start?n===ft.lessThan?(Dt.pos++,void ke(pt.jsxTagStart)):void Pe(n):void ke(t&&!e?pt.jsxEmptyText:pt.jsxText);n===ft.lineFeed?t=!0:n!==ft.space&&n!==ft.carriageReturn&&n!==ft.tab&&(e=!0),Dt.pos++}}()}!function(t){t[t.TSFunctionType=0]="TSFunctionType";t[t.TSConstructorType=1]="TSConstructorType";t[t.TSAbstractConstructorType=2]="TSAbstractConstructorType"}(Nn||(Nn={}));class _i{constructor(t){this.stop=t}}function xi(t=!1){if(bi(t),_e(pt.comma))for(;ve(pt.comma);)bi(t)}function bi(t=!1,e=!1){return kt?hi(t,e):Lt?function(t,e){if(_e(pt.lessThan)){const n=Dt.snapshot();let i=wi(t,e);if(!Dt.error)return i;Dt.restoreFromSnapshot(n),Dt.type=pt.typeParameterStart;const r=ge(0);if(hr(),me(r),i=wi(t,e),i)return!0;Zt()}return wi(t,e)}(t,e):wi(t,e)}function wi(t,e){if(_e(pt._yield))return de(),_e(pt.semi)||Ht()||(ve(pt.star),bi()),!1;(_e(pt.parenL)||_e(pt.name)||_e(pt._yield))&&(Dt.potentialArrowAt=Dt.start);const n=function(t){const e=function(t){const e=Dt.tokens.length,n=Mi();if(n)return!0;return Ti(e,-1,t),!1}(t);if(e)return!0;return function(t){kt||Lt?function(t){if(_e(pt.question)){const t=xe();if(t===pt.colon||t===pt.comma||t===pt.parenR)return}Si(t)}(t):Si(t)}(t),!1}(t);return e&&Gi(),Dt.type&pt.IS_ASSIGN?(de(),bi(t),!1):n}function Si(t){ve(pt.question)&&(bi(),Yt(pt.colon),bi(t))}function Ti(t,e,n){if(kt&&(pt._in&pt.PRECEDENCE_MASK)>e&&!Wt()&&(Vt(dt._as)||Vt(dt._satisfies))){const i=ge(1);return Un(),me(i),De(),void Ti(t,e,n)}const i=Dt.type&pt.PRECEDENCE_MASK;if(i>0&&(!n||!_e(pt._in))&&i>e){const r=Dt.type;de(),r===pt.nullishCoalescing&&(Dt.tokens[Dt.tokens.length-1].nullishStartIndex=t);const o=Dt.tokens.length;Mi(),Ti(o,r&pt.IS_RIGHT_ASSOCIATIVE?i-1:i,n),r===pt.nullishCoalescing&&(Dt.tokens[t].numNullishCoalesceStarts++,Dt.tokens[Dt.tokens.length-1].numNullishCoalesceEnds++),Ti(t,e,n)}}function Mi(){if(kt&&!Et&&ve(pt.lessThan))return function(){const t=ge(1);Un(),Yt(pt.greaterThan),me(t),Mi()}(),!1;if(zt(dt._module)&&Me()===ft.leftCurlyBrace&&!Ut())return jt(dt._module),Yt(pt.braceL),Fr(pt.braceR),!1;if(Dt.type&pt.IS_PREFIX)return de(),Mi(),!1;if(Ai())return!0;for(;Dt.type&pt.IS_POSTFIX&&!Ht();)Dt.type===pt.preIncDec&&(Dt.type=pt.postIncDec),de();return!1}function Ai(){const t=Dt.tokens.length;return!!Ri()||(Ci(t),Dt.tokens.length>t&&Dt.tokens[t].isOptionalChainStart&&(Dt.tokens[Dt.tokens.length-1].isOptionalChainEnd=!0),!1)}function Ci(t,e=!1){Lt?function(t,e=!1){if(Dt.tokens[Dt.tokens.length-1].contextualKeyword===dt._async&&_e(pt.lessThan)){const t=Dt.snapshot(),e=function(){Dt.scopeDepth++;const t=Dt.tokens.length;if(Hr(),!zi())return!1;return Xi(t),!0}();if(e&&!Dt.error)return;Dt.restoreFromSnapshot(t)}Ii(t,e)}(t,e):Ii(t,e)}function Ii(t,e=!1){const n=new _i(!1);do{Ei(t,e,n)}while(!n.stop&&!Dt.error)}function Ei(t,e,n){kt?function(t,e,n){if(Wt()||!ve(pt.bang)){if(_e(pt.lessThan)||_e(pt.bitShiftL)){const n=Dt.snapshot();if(!e&&Li()&&oi())return;if(ai(),!e&&ve(pt.parenL)?(Dt.tokens[Dt.tokens.length-1].subscriptStartIndex=t,Di()):_e(pt.backQuote)?Vi():(Dt.type===pt.greaterThan||Dt.type!==pt.parenL&&Boolean(Dt.type&pt.IS_EXPRESSION_START)&&!Wt())&&Zt(),!Dt.error)return;Dt.restoreFromSnapshot(n)}else!e&&_e(pt.questionDot)&&xe()===pt.lessThan&&(de(),Dt.tokens[t].isOptionalChainStart=!0,Dt.tokens[Dt.tokens.length-1].subscriptStartIndex=t,si(),Yt(pt.parenL),Di());ki(t,e,n)}else Dt.tokens[Dt.tokens.length-1].type=pt.nonNullAssertion}(t,e,n):Lt?function(t,e,n){if(_e(pt.questionDot)&&xe()===pt.lessThan)return e?void(n.stop=!0):(de(),cr(),Yt(pt.parenL),void Di());if(!e&&_e(pt.lessThan)){const t=Dt.snapshot();if(cr(),Yt(pt.parenL),Di(),!Dt.error)return;Dt.restoreFromSnapshot(t)}ki(t,e,n)}(t,e,n):ki(t,e,n)}function ki(t,e,n){if(!e&&ve(pt.doubleColon))Pi(),n.stop=!0,Ci(t,e);else if(_e(pt.questionDot)){if(Dt.tokens[t].isOptionalChainStart=!0,e&&xe()===pt.parenL)return void(n.stop=!0);de(),Dt.tokens[Dt.tokens.length-1].subscriptStartIndex=t,ve(pt.bracketL)?(xi(),Yt(pt.bracketR)):ve(pt.parenL)?Di():Oi()}else if(ve(pt.dot))Dt.tokens[Dt.tokens.length-1].subscriptStartIndex=t,Oi();else if(ve(pt.bracketL))Dt.tokens[Dt.tokens.length-1].subscriptStartIndex=t,xi(),Yt(pt.bracketR);else if(!e&&_e(pt.parenL))if(Li()){const e=Dt.snapshot(),i=Dt.tokens.length;de(),Dt.tokens[Dt.tokens.length-1].subscriptStartIndex=t;const r=Ot();Dt.tokens[Dt.tokens.length-1].contextId=r,Di(),Dt.tokens[Dt.tokens.length-1].contextId=r,(_e(pt.colon)||_e(pt.arrow))&&(Dt.restoreFromSnapshot(e),n.stop=!0,Dt.scopeDepth++,Hr(),function(t){kt?_e(pt.colon)&&Wn():Lt&&function(){if(_e(pt.colon)){const t=Dt.noAnonFunctionType;Dt.noAnonFunctionType=!0,Tr(),Dt.noAnonFunctionType=t}}();Yt(pt.arrow),Xi(t)}(i))}else{de(),Dt.tokens[Dt.tokens.length-1].subscriptStartIndex=t;const e=Ot();Dt.tokens[Dt.tokens.length-1].contextId=e,Di(),Dt.tokens[Dt.tokens.length-1].contextId=e}else _e(pt.backQuote)?Vi():n.stop=!0}function Li(){return Dt.tokens[Dt.tokens.length-1].contextualKeyword===dt._async&&!Ht()}function Di(){let t=!0;for(;!ve(pt.parenR)&&!Dt.error;){if(t)t=!1;else if(Yt(pt.comma),ve(pt.parenR))break;Ki(!1)}}function Pi(){const t=Dt.tokens.length;Ri(),Ci(t,!0)}function Ri(){if(ve(pt.modulo))return Ji(),!1;if(_e(pt.jsxText)||_e(pt.jsxEmptyText))return Ni(),!1;if(_e(pt.lessThan)&&Et)return Dt.type=pt.jsxTagStart,mi(),de(),!1;const t=Dt.potentialArrowAt===Dt.start;switch(Dt.type){case pt.slash:case pt.assign:fe();case pt._super:case pt._this:case pt.regexp:case pt.num:case pt.bigint:case pt.decimal:case pt.string:case pt._null:case pt._true:case pt._false:return de(),!1;case pt._import:return de(),_e(pt.dot)&&(Dt.tokens[Dt.tokens.length-1].type=pt.name,de(),Ji()),!1;case pt.name:{const e=Dt.tokens.length,n=Dt.start,i=Dt.contextualKeyword;return Ji(),i===dt._await?(Mi(),!1):i===dt._async&&_e(pt._function)&&!Ht()?(de(),jr(n,!1),!1):t&&i===dt._async&&!Ht()&&_e(pt.name)?(Dt.scopeDepth++,hn(!1),Yt(pt.arrow),Xi(e),!0):_e(pt._do)&&!Ht()?(de(),Nr(),!1):t&&!Ht()&&_e(pt.arrow)?(Dt.scopeDepth++,un(!1),Yt(pt.arrow),Xi(e),!0):(Dt.tokens[Dt.tokens.length-1].identifierRole=ie.Access,!1)}case pt._do:return de(),Nr(),!1;case pt.parenL:return Bi(t);case pt.bracketL:return de(),$i(pt.bracketR,!0),!1;case pt.braceL:return ji(!1,!1),!1;case pt._function:return function(){const t=Dt.start;Ji(),ve(pt.dot)&&Ji();jr(t,!1)}(),!1;case pt.at:Dr();case pt._class:return Wr(!1),!1;case pt._new:return function(){if(Yt(pt._new),ve(pt.dot))return void Ji();Pi(),void ve(pt.questionDot),Lt&&function(){if(_e(pt.lessThan)){const t=Dt.snapshot();cr(),Dt.error&&Dt.restoreFromSnapshot(t)}}();ve(pt.parenL)&&$i(pt.parenR)}(),!1;case pt.backQuote:return Vi(),!1;case pt.doubleColon:return de(),Pi(),!1;case pt.hash:{const t=Me();return ee[t]||t===ft.backslash?Oi():de(),!1}default:return Zt(),!1}}function Oi(){ve(pt.hash),Ji()}function Ni(){de()}function Fi(){Yt(pt.parenL),xi(),Yt(pt.parenR)}function Bi(t){const e=Dt.snapshot(),n=Dt.tokens.length;Yt(pt.parenL);let i=!0;for(;!_e(pt.parenR)&&!Dt.error;){if(i)i=!1;else if(Yt(pt.comma),_e(pt.parenR))break;if(_e(pt.ellipsis)){ln(!1),Gi();break}bi(!1,!0)}if(Yt(pt.parenR),t&&(_e(pt.colon)||!Ht())){if(zi())return Dt.restoreFromSnapshot(e),Dt.scopeDepth++,Hr(),zi(),Xi(n),!Dt.error||(Dt.restoreFromSnapshot(e),Bi(!1),!1)}return!1}function zi(){return kt?function(){if(_e(pt.colon)){const t=Dt.snapshot();jn(pt.colon),Ht()&&Zt(),_e(pt.arrow)||Zt(),Dt.error&&Dt.restoreFromSnapshot(t)}return ve(pt.arrow)}():Lt?function(){if(_e(pt.colon)){const t=ge(0),e=Dt.snapshot(),n=Dt.noAnonFunctionType;Dt.noAnonFunctionType=!0,er(),Dt.noAnonFunctionType=n,Ht()&&Zt(),_e(pt.arrow)||Zt(),Dt.error&&Dt.restoreFromSnapshot(e),me(t)}return ve(pt.arrow)}():ve(pt.arrow)}function Gi(){(kt||Lt)&&(ye(pt.question),_e(pt.colon)&&(kt?Wn():Lt&&Tr()))}function Vi(){for(pe(),pe();!_e(pt.backQuote)&&!Dt.error;)Yt(pt.dollarBraceL),xi(),pe(),pe();de()}function ji(t,e){const n=Ot();let i=!0;for(de(),Dt.tokens[Dt.tokens.length-1].contextId=n;!ve(pt.braceR)&&!Dt.error;){if(i)i=!1;else if(Yt(pt.comma),ve(pt.braceR))break;let r=!1;if(_e(pt.ellipsis)){const n=Dt.tokens.length;if(sn(),t&&(Dt.tokens.length===n+2&&un(e),ve(pt.braceR)))break}else t||(r=ve(pt.star)),!t&&zt(dt._async)?(r&&Zt(),Ji(),_e(pt.colon)||_e(pt.parenL)||_e(pt.braceR)||_e(pt.eq)||_e(pt.comma)||(_e(pt.star)&&(de(),r=!0),Ui(n))):Ui(n),Wi(t,e,n)}Dt.tokens[Dt.tokens.length-1].contextId=n}function Hi(t,e){const n=Dt.start;return _e(pt.parenL)?(t&&Zt(),qi(n,!1),!0):!!function(t){return!t&&(_e(pt.string)||_e(pt.num)||_e(pt.bracketL)||_e(pt.name)||!!(Dt.type&pt.IS_KEYWORD))}(t)&&(Ui(e),qi(n,!1),!0)}function Wi(t,e,n){kt?Tn():Lt&&_e(pt.lessThan)&&(hr(),_e(pt.parenL)||Zt());Hi(t,n)||function(t,e){if(ve(pt.colon))return void(t?mn(e):bi(!1));let n;n=t?0===Dt.scopeDepth?ie.ObjectShorthandTopLevelDeclaration:e?ie.ObjectShorthandBlockScopedDeclaration:ie.ObjectShorthandFunctionScopedDeclaration:ie.ObjectShorthand,Dt.tokens[Dt.tokens.length-1].identifierRole=n,mn(e,!0)}(t,e)}function Ui(t){Lt&&Ar(),ve(pt.bracketL)?(Dt.tokens[Dt.tokens.length-1].contextId=t,bi(),Yt(pt.bracketR),Dt.tokens[Dt.tokens.length-1].contextId=t):(_e(pt.num)||_e(pt.string)||_e(pt.bigint)||_e(pt.decimal)?Ri():Oi(),Dt.tokens[Dt.tokens.length-1].identifierRole=ie.ObjectKey,Dt.tokens[Dt.tokens.length-1].contextId=t)}function qi(t,e){const n=Ot();Dt.scopeDepth++;const i=Dt.tokens.length;Hr(e,n),Yi(t,n);const r=Dt.tokens.length;Dt.scopes.push(new At(i,r,!0)),Dt.scopeDepth--}function Xi(t){Zi(!0);const e=Dt.tokens.length;Dt.scopes.push(new At(t,e,!0)),Dt.scopeDepth--}function Yi(t,e=0){kt?function(t,e){if(_e(pt.colon)&&jn(pt.colon),_e(pt.braceL)||!qt())Zi(!1,e);else{let e=Dt.tokens.length-1;for(;e>=0&&(Dt.tokens[e].start>=t||Dt.tokens[e].type===pt._default||Dt.tokens[e].type===pt._export);)Dt.tokens[e].isType=!0,e--}}(t,e):Lt?function(t){_e(pt.colon)&&er();Zi(!1,t)}(e):Zi(!1,e)}function Zi(t,e=0){t&&!_e(pt.braceL)?bi():Nr(!0,e)}function $i(t,e=!1){let n=!0;for(;!ve(t)&&!Dt.error;){if(n)n=!1;else if(Yt(pt.comma),ve(t))break;Ki(e)}}function Ki(t){t&&_e(pt.comma)||(_e(pt.ellipsis)?(sn(),Gi()):_e(pt.question)?de():bi(!1,!0))}function Ji(){de(),Dt.tokens[Dt.tokens.length-1].type=pt.name}function Qi(t){const e=ge(0);Yt(t||pt.colon),Sr(),me(e)}function tr(){Yt(pt.modulo),jt(dt._checks),ve(pt.parenL)&&(xi(),Yt(pt.parenR))}function er(){const t=ge(0);Yt(pt.colon),_e(pt.modulo)?tr():(Sr(),_e(pt.modulo)&&tr()),me(t)}function nr(){_e(pt._class)?(de(),ir(!0)):_e(pt._function)?(de(),Ji(),_e(pt.lessThan)&&hr(),Yt(pt.parenL),yr(),Yt(pt.parenR),er(),Xt()):_e(pt._var)?(de(),Mr(),Xt()):Vt(dt._module)?ve(pt.dot)?(jt(dt._exports),Tr(),Xt()):function(){_e(pt.string)?Ri():Ji();Yt(pt.braceL);for(;!_e(pt.braceR)&&!Dt.error;)_e(pt._import)?(de(),oo()):Zt();Yt(pt.braceR)}():zt(dt._type)?(de(),sr()):zt(dt._opaque)?(de(),lr(!0)):zt(dt._interface)?(de(),ir()):_e(pt._export)?(Yt(pt._export),ve(pt._default)?_e(pt._function)||_e(pt._class)?nr():(Sr(),Xt()):_e(pt._var)||_e(pt._function)||_e(pt._class)||zt(dt._opaque)?nr():_e(pt.star)||_e(pt.braceL)||zt(dt._interface)||zt(dt._type)||zt(dt._opaque)?Jr():Zt()):Zt()}function ir(t=!1){if(ar(),_e(pt.lessThan)&&hr(),ve(pt._extends))do{rr()}while(!t&&ve(pt.comma));if(zt(dt._mixins)){de();do{rr()}while(ve(pt.comma))}if(zt(dt._implements)){de();do{rr()}while(ve(pt.comma))}pr(t,!1,t)}function rr(){mr(!1),_e(pt.lessThan)&&cr()}function or(){ir()}function ar(){Ji()}function sr(){ar(),_e(pt.lessThan)&&hr(),Qi(pt.eq),Xt()}function lr(t){jt(dt._type),ar(),_e(pt.lessThan)&&hr(),_e(pt.colon)&&Qi(pt.colon),t||Qi(pt.eq),Xt()}function hr(){const t=ge(0);_e(pt.lessThan)||_e(pt.typeParameterStart)?de():Zt();do{Ar(),Mr(),ve(pt.eq)&&Sr(),_e(pt.greaterThan)||Yt(pt.comma)}while(!_e(pt.greaterThan)&&!Dt.error);Yt(pt.greaterThan),me(t)}function cr(){const t=ge(0);for(Yt(pt.lessThan);!_e(pt.greaterThan)&&!Dt.error;)Sr(),_e(pt.greaterThan)||Yt(pt.comma);Yt(pt.greaterThan),me(t)}function ur(){_e(pt.num)||_e(pt.string)?Ri():Ji()}function dr(){for(_e(pt.lessThan)&&hr(),Yt(pt.parenL);!_e(pt.parenR)&&!_e(pt.ellipsis)&&!Dt.error;)vr(),_e(pt.parenR)||Yt(pt.comma);ve(pt.ellipsis)&&vr(),Yt(pt.parenR),Qi()}function pr(t,e,n){let i;for(e&&_e(pt.braceBarL)?(Yt(pt.braceBarL),i=pt.braceBarR):(Yt(pt.braceL),i=pt.braceR);!_e(i)&&!Dt.error;){if(n&&zt(dt._proto)){const e=xe();e!==pt.colon&&e!==pt.question&&(de(),t=!1)}if(t&&zt(dt._static)){const t=xe();t!==pt.colon&&t!==pt.question&&de()}if(Ar(),ve(pt.bracketL))ve(pt.bracketL)?(ur(),Yt(pt.bracketR),Yt(pt.bracketR),_e(pt.lessThan)||_e(pt.parenL)?dr():(ve(pt.question),Qi())):(xe()===pt.colon?(ur(),Qi()):Sr(),Yt(pt.bracketR),Qi());else if(_e(pt.parenL)||_e(pt.lessThan))dr();else{if(zt(dt._get)||zt(dt._set)){const t=xe();t!==pt.name&&t!==pt.string&&t!==pt.num||de()}fr()}gr()}Yt(i)}function fr(){if(_e(pt.ellipsis)){if(Yt(pt.ellipsis),ve(pt.comma)||ve(pt.semi),_e(pt.braceR))return;Sr()}else ur(),_e(pt.lessThan)||_e(pt.parenL)?dr():(ve(pt.question),Qi())}function gr(){ve(pt.semi)||ve(pt.comma)||_e(pt.braceR)||_e(pt.braceBarR)||Zt()}function mr(t){for(t||Ji();ve(pt.dot);)Ji()}function vr(){const t=xe();t===pt.colon||t===pt.question?(Ji(),ve(pt.question),Qi()):Sr()}function yr(){for(;!_e(pt.parenR)&&!_e(pt.ellipsis)&&!Dt.error;)vr(),_e(pt.parenR)||Yt(pt.comma);ve(pt.ellipsis)&&vr()}function _r(){let t=!1;const e=Dt.noAnonFunctionType;switch(Dt.type){case pt.name:return zt(dt._interface)?void function(){if(jt(dt._interface),ve(pt._extends))do{rr()}while(ve(pt.comma));pr(!1,!1,!1)}():(Ji(),mr(!0),void(_e(pt.lessThan)&&cr()));case pt.braceL:return void pr(!1,!1,!1);case pt.braceBarL:return void pr(!1,!0,!1);case pt.bracketL:return void function(){for(Yt(pt.bracketL);Dt.pos0?this.tokens[this.tokenIndex-1].end:0,this.tokenIndex0&&e0&&this.tokenAtRelativeIndex(-1).type===pt._delete?t.isAsyncOperation?this.resultCode+=this.helperManager.getHelperName("asyncOptionalChainDelete"):this.resultCode+=this.helperManager.getHelperName("optionalChainDelete"):t.isAsyncOperation?this.resultCode+=this.helperManager.getHelperName("asyncOptionalChain"):this.resultCode+=this.helperManager.getHelperName("optionalChain"),this.resultCode+="([")}}appendTokenSuffix(){const t=this.currentToken();if(t.isOptionalChainEnd&&!this.disableESTransforms&&(this.resultCode+="])"),t.numNullishCoalesceEnds&&!this.disableESTransforms)for(let e=0;e ${t}require`);const e=this.tokens.currentToken().contextId;if(null==e)throw new Error("Expected context ID on dynamic import invocation.");for(this.tokens.copyToken();!this.tokens.matchesContextIdAndLabel(pt.parenR,e);)this.rootTransformer.processToken();return void this.tokens.replaceToken(t?")))":"))")}if(this.removeImportAndDetectIfShouldElide())this.tokens.removeToken();else{const t=this.tokens.stringValue();this.tokens.replaceTokenTrimmingLeftWhitespace(this.importProcessor.claimImportCode(t)),this.tokens.appendCode(this.importProcessor.claimImportCode(t))}wo(this.tokens),this.tokens.matches1(pt.semi)&&this.tokens.removeToken()}removeImportAndDetectIfShouldElide(){if(this.tokens.removeInitialToken(),this.tokens.matchesContextual(dt._type)&&!this.tokens.matches1AtIndex(this.tokens.currentIndex()+1,pt.comma)&&!this.tokens.matchesContextualAtIndex(this.tokens.currentIndex()+1,dt._from))return this.removeRemainingImport(),!0;if(this.tokens.matches1(pt.name)||this.tokens.matches1(pt.star))return this.removeRemainingImport(),!1;if(this.tokens.matches1(pt.string))return!1;let t=!1,e=!1;for(;!this.tokens.matches1(pt.string);)(!t&&this.tokens.matches1(pt.braceL)||this.tokens.matches1(pt.comma))&&(this.tokens.removeToken(),this.tokens.matches1(pt.braceR)||(e=!0),(this.tokens.matches2(pt.name,pt.comma)||this.tokens.matches2(pt.name,pt.braceR)||this.tokens.matches4(pt.name,pt.name,pt.name,pt.comma)||this.tokens.matches4(pt.name,pt.name,pt.name,pt.braceR))&&(t=!0)),this.tokens.removeToken();return!this.keepUnusedImports&&(this.isTypeScriptTransformEnabled?!t:!!this.isFlowTransformEnabled&&(e&&!t))}removeRemainingImport(){for(;!this.tokens.matches1(pt.string);)this.tokens.removeToken()}processIdentifier(){const t=this.tokens.currentToken();if(t.shadowsGlobal)return!1;if(t.identifierRole===ie.ObjectShorthand)return this.processObjectShorthand();if(t.identifierRole!==ie.Access)return!1;const e=this.importProcessor.getIdentifierReplacement(this.tokens.identifierNameForToken(t));if(!e)return!1;let n=this.tokens.currentIndex()+1;for(;n=2&&this.tokens.matches1AtIndex(t-2,pt.dot))return!1;if(t>=2&&[pt._var,pt._let,pt._const].includes(this.tokens.tokens[t-2].type))return!1;const n=this.importProcessor.resolveExportBinding(this.tokens.identifierNameForToken(e));return!!n&&(this.tokens.copyToken(),this.tokens.appendCode(` ${n} =`),!0)}processComplexAssignment(){const t=this.tokens.currentIndex(),e=this.tokens.tokens[t-1];if(e.type!==pt.name)return!1;if(e.shadowsGlobal)return!1;if(t>=2&&this.tokens.matches1AtIndex(t-2,pt.dot))return!1;const n=this.importProcessor.resolveExportBinding(this.tokens.identifierNameForToken(e));return!!n&&(this.tokens.appendCode(` = ${n}`),this.tokens.copyToken(),!0)}processPreIncDec(){const t=this.tokens.currentIndex(),e=this.tokens.tokens[t+1];if(e.type!==pt.name)return!1;if(e.shadowsGlobal)return!1;if(t+2=1&&this.tokens.matches1AtIndex(t-1,pt.dot))return!1;const i=this.tokens.identifierNameForToken(e),r=this.importProcessor.resolveExportBinding(i);if(!r)return!1;const o=this.tokens.rawCodeForToken(n),a=this.importProcessor.getIdentifierReplacement(i)||i;if("++"===o)this.tokens.replaceToken(`(${a} = ${r} = ${a} + 1, ${a} - 1)`);else{if("--"!==o)throw new Error(`Unexpected operator: ${o}`);this.tokens.replaceToken(`(${a} = ${r} = ${a} - 1, ${a} + 1)`)}return this.tokens.removeToken(),!0}processExportDefault(){let t=!0;if(this.tokens.matches4(pt._export,pt._default,pt._function,pt.name)||this.tokens.matches5(pt._export,pt._default,pt.name,pt._function,pt.name)&&this.tokens.matchesContextualAtIndex(this.tokens.currentIndex()+2,dt._async)){this.tokens.removeInitialToken(),this.tokens.removeToken();const t=this.processNamedFunction();this.tokens.appendCode(` exports.default = ${t};`)}else if(this.tokens.matches4(pt._export,pt._default,pt._class,pt.name)||this.tokens.matches5(pt._export,pt._default,pt._abstract,pt._class,pt.name)||this.tokens.matches3(pt._export,pt._default,pt.at)){this.tokens.removeInitialToken(),this.tokens.removeToken(),this.copyDecorators(),this.tokens.matches1(pt._abstract)&&this.tokens.removeToken();const t=this.rootTransformer.processNamedClass();this.tokens.appendCode(` exports.default = ${t};`)}else if(So(this.isTypeScriptTransformEnabled,this.keepUnusedImports,this.tokens,this.declarationInfo))t=!1,this.tokens.removeInitialToken(),this.tokens.removeToken(),this.tokens.removeToken();else if(this.reactHotLoaderTransformer){const t=this.nameManager.claimFreeName("_default");this.tokens.replaceToken(`let ${t}; exports.`),this.tokens.copyToken(),this.tokens.appendCode(` = ${t} =`),this.reactHotLoaderTransformer.setExtractedDefaultExportName(t)}else this.tokens.replaceToken("exports."),this.tokens.copyToken(),this.tokens.appendCode(" =");t&&(this.hadDefaultExport=!0)}copyDecorators(){for(;this.tokens.matches1(pt.at);)if(this.tokens.copyToken(),this.tokens.matches1(pt.parenL))this.tokens.copyExpectedToken(pt.parenL),this.rootTransformer.processBalancedCode(),this.tokens.copyExpectedToken(pt.parenR);else{for(this.tokens.copyExpectedToken(pt.name);this.tokens.matches1(pt.dot);)this.tokens.copyExpectedToken(pt.dot),this.tokens.copyExpectedToken(pt.name);this.tokens.matches1(pt.parenL)&&(this.tokens.copyExpectedToken(pt.parenL),this.rootTransformer.processBalancedCode(),this.tokens.copyExpectedToken(pt.parenR))}}processExportVar(){this.isSimpleExportVar()?this.processSimpleExportVar():this.processComplexExportVar()}isSimpleExportVar(){let t=this.tokens.currentIndex();if(t++,t++,!this.tokens.matches1AtIndex(t,pt.name))return!1;for(t++;tn.call(e,...t))),e=void 0)}return n}([this,"access",t=>t.importProcessor,"optionalAccess",t=>t.getGlobalNames,"call",t=>t(),"optionalAccess",t=>t.has,"call",t=>t(Co)])&&this.extractHoistedCalls())}getHoistedCode(){return this.hoistedFunctionNames.length>0?this.hoistedFunctionNames.map((t=>`${t}();`)).join(""):""}extractHoistedCalls(){this.tokens.removeToken();let t=!1;for(;this.tokens.matches3(pt.dot,pt.name,pt.parenL);){const e=this.tokens.identifierNameAtIndex(this.tokens.currentIndex()+1);if(Io.includes(e)){const e=this.nameManager.claimFreeName("__jestHoist");this.hoistedFunctionNames.push(e),this.tokens.replaceToken(`function ${e}(){${Co}.`),this.tokens.copyToken(),this.tokens.copyToken(),this.rootTransformer.processBalancedCode(),this.tokens.copyExpectedToken(pt.parenR),this.tokens.appendCode(";}"),t=!1}else t?this.tokens.copyToken():this.tokens.replaceToken(`${Co}.`),this.tokens.copyToken(),this.tokens.copyToken(),this.rootTransformer.processBalancedCode(),this.tokens.copyExpectedToken(pt.parenR),t=!0}return!0}}class ko extends je{constructor(t){super(),this.tokens=t}process(){if(this.tokens.matches1(pt.num)){const t=this.tokens.currentTokenCode();if(t.includes("_"))return this.tokens.replaceToken(t.replace(/_/g,"")),!0}return!1}}class Lo extends je{constructor(t,e){super(),this.tokens=t,this.nameManager=e}process(){return!!this.tokens.matches2(pt._catch,pt.braceL)&&(this.tokens.copyToken(),this.tokens.appendCode(` (${this.nameManager.claimFreeName("e")})`),!0)}}class Do extends je{constructor(t,e){super(),this.tokens=t,this.nameManager=e}process(){if(this.tokens.matches1(pt.nullishCoalescing)){const t=this.tokens.currentToken();return this.tokens.tokens[t.nullishStartIndex].isAsyncOperation?this.tokens.replaceTokenTrimmingLeftWhitespace(", async () => ("):this.tokens.replaceTokenTrimmingLeftWhitespace(", () => ("),!0}if(this.tokens.matches1(pt._delete)){if(this.tokens.tokenAtRelativeIndex(1).isOptionalChainStart)return this.tokens.removeInitialToken(),!0}const t=this.tokens.currentToken().subscriptStartIndex;if(null!=t&&this.tokens.tokens[t].isOptionalChainStart&&this.tokens.tokenAtRelativeIndex(-1).type!==pt._super){const e=this.nameManager.claimFreeName("_");let n;if(n=t>0&&this.tokens.matches1AtIndex(t-1,pt._delete)&&this.isLastSubscriptInChain()?`${e} => delete ${e}`:`${e} => ${e}`,this.tokens.tokens[t].isAsyncOperation&&(n=`async ${n}`),this.tokens.matches2(pt.questionDot,pt.parenL)||this.tokens.matches2(pt.questionDot,pt.lessThan))this.justSkippedSuper()&&this.tokens.appendCode(".bind(this)"),this.tokens.replaceTokenTrimmingLeftWhitespace(`, 'optionalCall', ${n}`);else if(this.tokens.matches2(pt.questionDot,pt.bracketL))this.tokens.replaceTokenTrimmingLeftWhitespace(`, 'optionalAccess', ${n}`);else if(this.tokens.matches1(pt.questionDot))this.tokens.replaceTokenTrimmingLeftWhitespace(`, 'optionalAccess', ${n}.`);else if(this.tokens.matches1(pt.dot))this.tokens.replaceTokenTrimmingLeftWhitespace(`, 'access', ${n}.`);else if(this.tokens.matches1(pt.bracketL))this.tokens.replaceTokenTrimmingLeftWhitespace(`, 'access', ${n}[`);else{if(!this.tokens.matches1(pt.parenL))throw new Error("Unexpected subscript operator in optional chain.");this.justSkippedSuper()&&this.tokens.appendCode(".bind(this)"),this.tokens.replaceTokenTrimmingLeftWhitespace(`, 'call', ${n}(`)}return!0}return!1}isLastSubscriptInChain(){let t=0;for(let e=this.tokens.currentIndex()+1;;e++){if(e>=this.tokens.tokens.length)throw new Error("Reached the end of the code while finding the end of the access chain.");if(this.tokens.tokens[e].isOptionalChainStart?t++:this.tokens.tokens[e].isOptionalChainEnd&&t--,t<0)return!0;if(0===t&&null!=this.tokens.tokens[e].subscriptStartIndex)return!1}}justSkippedSuper(){let t=0,e=this.tokens.currentIndex()-1;for(;;){if(e<0)throw new Error("Reached the start of the code while finding the start of the access chain.");if(this.tokens.tokens[e].isOptionalChainStart?t--:this.tokens.tokens[e].isOptionalChainEnd&&t++,t<0)return!1;if(0===t&&null!=this.tokens.tokens[e].subscriptStartIndex)return this.tokens.tokens[e-1].type===pt._super;e--}}}class Po extends je{constructor(t,e,n,i){super(),this.rootTransformer=t,this.tokens=e,this.importProcessor=n,this.options=i}process(){const t=this.tokens.currentIndex();if("createReactClass"===this.tokens.identifierName()){const e=this.importProcessor&&this.importProcessor.getIdentifierReplacement("createReactClass");return e?this.tokens.replaceToken(`(0, ${e})`):this.tokens.copyToken(),this.tryProcessCreateClassCall(t),!0}if(this.tokens.matches3(pt.name,pt.dot,pt.name)&&"React"===this.tokens.identifierName()&&"createClass"===this.tokens.identifierNameAtIndex(this.tokens.currentIndex()+2)){const e=this.importProcessor&&this.importProcessor.getIdentifierReplacement("React")||"React";return e?(this.tokens.replaceToken(e),this.tokens.copyToken(),this.tokens.copyToken()):(this.tokens.copyToken(),this.tokens.copyToken(),this.tokens.copyToken()),this.tryProcessCreateClassCall(t),!0}return!1}tryProcessCreateClassCall(t){const e=this.findDisplayName(t);e&&this.classNeedsDisplayName()&&(this.tokens.copyExpectedToken(pt.parenL),this.tokens.copyExpectedToken(pt.braceL),this.tokens.appendCode(`displayName: '${e}',`),this.rootTransformer.processBalancedCode(),this.tokens.copyExpectedToken(pt.braceR),this.tokens.copyExpectedToken(pt.parenR))}findDisplayName(t){return t<2?null:this.tokens.matches2AtIndex(t-2,pt.name,pt.eq)||t>=2&&this.tokens.tokens[t-2].identifierRole===ie.ObjectKey?this.tokens.identifierNameAtIndex(t-2):this.tokens.matches2AtIndex(t-2,pt._export,pt._default)?this.getDisplayNameFromFilename():null}getDisplayNameFromFilename(){const t=(this.options.filePath||"unknown").split("/"),e=t[t.length-1],n=e.lastIndexOf("."),i=-1===n?e:e.slice(0,n);return"index"===i&&t[t.length-2]?t[t.length-2]:i}classNeedsDisplayName(){let t=this.tokens.currentIndex();if(!this.tokens.matches2(pt.parenL,pt.braceL))return!1;const e=t+1,n=this.tokens.tokens[e].contextId;if(null==n)throw new Error("Expected non-null context ID on object open-brace.");for(;t({variableName:t,uniqueLocalName:t})));return this.extractedDefaultExportName&&e.push({variableName:this.extractedDefaultExportName,uniqueLocalName:"default"}),`\n;(function () {\n var reactHotLoader = require('react-hot-loader').default;\n var leaveModule = require('react-hot-loader').leaveModule;\n if (!reactHotLoader) {\n return;\n }\n${e.map((({variableName:t,uniqueLocalName:e})=>` reactHotLoader.register(${t}, "${e}", ${JSON.stringify(this.filePath||"")});`)).join("\n")}\n leaveModule(module);\n})();`}process(){return!1}}const Oo=new Set(["break","case","catch","class","const","continue","debugger","default","delete","do","else","export","extends","finally","for","function","if","import","in","instanceof","new","return","super","switch","this","throw","try","typeof","var","void","while","with","yield","enum","implements","interface","let","package","private","protected","public","static","await","false","null","true"]);function No(t){if(0===t.length)return!1;if(!ee[t.charCodeAt(0)])return!1;for(let e=1;e` var ${t};`)).join("");for(const r of this.transformers)t+=r.getHoistedCode();let e="";for(const r of this.transformers)e+=r.getSuffixCode();const n=this.tokens.finish();let{code:i}=n;if(i.startsWith("#!")){let r=i.indexOf("\n");return-1===r&&(r=i.length,i+="\n"),{code:i.slice(0,r+1)+t+i.slice(r+1)+e,mappings:this.shiftMappings(n.mappings,t.length)}}return{code:t+i+e,mappings:this.shiftMappings(n.mappings,t.length)}}processBalancedCode(){let t=0,e=0;for(;!this.tokens.isAtEnd();){if(this.tokens.matches1(pt.braceL)||this.tokens.matches1(pt.dollarBraceL))t++;else if(this.tokens.matches1(pt.braceR)){if(0===t)return;t--}if(this.tokens.matches1(pt.parenL))e++;else if(this.tokens.matches1(pt.parenR)){if(0===e)return;e--}this.processToken()}}processToken(){if(this.tokens.matches1(pt._class))this.processClass();else{for(const t of this.transformers){if(t.process())return}this.tokens.copyToken()}}processNamedClass(){if(!this.tokens.matches2(pt._class,pt.name))throw new Error("Expected identifier for exported class name.");const t=this.tokens.identifierNameAtIndex(this.tokens.currentIndex()+1);return this.processClass(),t}processClass(){const t=po(this,this.tokens,this.nameManager,this.disableESTransforms),e=(t.headerInfo.isExpression||!t.headerInfo.className)&&t.staticInitializerNames.length+t.instanceInitializerNames.length>0;let n=t.headerInfo.className;e&&(n=this.nameManager.claimFreeName("_class"),this.generatedVariables.push(n),this.tokens.appendCode(` (${n} =`));const i=this.tokens.currentToken().contextId;if(null==i)throw new Error("Expected class to have a context ID.");for(this.tokens.copyExpectedToken(pt._class);!this.tokens.matchesContextIdAndLabel(pt.braceL,i);)this.processToken();this.processClassBody(t,n);const r=t.staticInitializerNames.map((t=>`${n}.${t}()`));e?this.tokens.appendCode(`, ${r.map((t=>`${t}, `)).join("")}${n})`):t.staticInitializerNames.length>0&&this.tokens.appendCode(` ${r.map((t=>`${t};`)).join(" ")}`)}processClassBody(t,e){const{headerInfo:n,constructorInsertPos:i,constructorInitializerStatements:r,fields:o,instanceInitializerNames:a,rangesToRemove:s}=t;let l=0,h=0;const c=this.tokens.currentToken().contextId;if(null==c)throw new Error("Expected non-null context ID on class.");this.tokens.copyExpectedToken(pt.braceL),this.isReactHotLoaderTransformEnabled&&this.tokens.appendCode("__reactstandin__regenerateByEval(key, code) {this[key] = eval(code);}");const u=r.length+a.length>0;if(null===i&&u){const t=this.makeConstructorInitCode(r,a,e);if(n.hasSuperclass){const e=this.nameManager.claimFreeName("args");this.tokens.appendCode(`constructor(...${e}) { super(...${e}); ${t}; }`)}else this.tokens.appendCode(`constructor() { ${t}; }`)}for(;!this.tokens.matchesContextIdAndLabel(pt.braceR,c);)if(l=s[h].start){for(this.tokens.currentIndex()`${n}.prototype.${t}.call(this)`))].join(";")}processPossibleArrowParamEnd(){if(this.tokens.matches2(pt.parenR,pt.colon)&&this.tokens.tokenAtRelativeIndex(1).isType){let t=this.tokens.currentIndex()+1;for(;this.tokens.tokens[t].isType;)t++;if(this.tokens.matches1AtIndex(t,pt.arrow)){for(this.tokens.removeInitialToken();this.tokens.currentIndex()"),!0}}return!1}processPossibleAsyncArrowWithTypeParams(){if(!this.tokens.matchesContextual(dt._async)&&!this.tokens.matches1(pt._async))return!1;const t=this.tokens.tokenAtRelativeIndex(1);if(t.type!==pt.lessThan||!t.isType)return!1;let e=this.tokens.currentIndex()+1;for(;this.tokens.tokens[e].isType;)e++;if(this.tokens.matches1AtIndex(e,pt.parenL)){for(this.tokens.replaceToken("async ("),this.tokens.removeInitialToken();this.tokens.currentIndex()e in t?jo(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,Zo=(t,e)=>{for(var n in e||(e={}))qo.call(e,n)&&Yo(t,n,e[n]);if(Uo)for(var n of Uo(e))Xo.call(e,n)&&Yo(t,n,e[n]);return t},$o=(t,e)=>Ho(t,Wo(e)),Ko=t=>{const{tabMode:e="indentation"}=t,n=(0,r.useRef)(null),[i,o]=(0,r.useState)(t.code||""),{theme:a}=t;return(0,r.useEffect)((()=>{o(t.code)}),[t.code]),function(t,e,n){function i(e){var n=t.current;if(n){var i=Tt(n);n=St(n),i.position+=e.length-n.length,c.position=i,c.onChange(e,i)}}function o(e,n){var i=t.current;if(i){var r=window.getSelection().getRangeAt(0);r.deleteContents(),r.collapse();var o=n||0;(r=Mt(i,n=(r=Tt(i)).position+(0>o?o:0),r.position+(0o-l||a&&a[1]===i?l=o:(n=++c.historyAt,c.history[n]=[r,i],c.history.splice(n+1),500o(t.slice(0,-1))),{disabled:t.disabled,indentation:"indentation"===e?2:void 0}),(0,r.useEffect)((()=>{t.onChange&&t.onChange(i)}),[i]),(0,s.jsx)("div",{className:t.className,style:t.style,children:(0,s.jsx)(_t.f4,{code:i,theme:t.theme||_t.Zj.nightOwl,language:t.language,children:({className:t,tokens:e,getLineProps:i,getTokenProps:r,style:o})=>(0,s.jsx)("pre",{className:t,style:Zo(Zo({margin:0,outline:"none",padding:10,fontFamily:"inherit"},a&&"object"==typeof a.plain?a.plain:{}),o),ref:n,spellCheck:"false",children:e.map(((t,e)=>(0,s.jsxs)("span",$o(Zo({},i({line:t})),{children:[t.filter((t=>!t.empty)).map(((t,e)=>(0,s.jsx)("span",Zo({},r({token:t})),`token-${e}`))),"\n"]}),`line-${e}`)))})})})},Jo=(0,r.createContext)({}),Qo=["jsx","imports"];function ta(t={}){const e=Array.isArray(t.transforms)?t.transforms.filter(Boolean):Qo;return t=>Go(t,{transforms:e}).code}var ea=(t,e)=>class extends r.Component{componentDidCatch(t){e(t)}render(){return"function"==typeof t?(0,s.jsx)(t,{}):r.isValidElement(t)?t:null}},na=(t,e)=>{const n=Object.keys(e),i=n.map((t=>e[t]));return new Function(...n,t)(...i)};var ia='const _jsxFileName = "";',ra=t=>t.trim().replace(/;$/,""),oa=t=>t.replace(ia,"").trim(),aa=t=>ia+t,sa=t=>`return (${t})`;var la=function({children:t,code:e="",language:n="tsx",theme:i,enableTypeScript:o=!0,disabled:a=!1,scope:l,transformCode:h,noInline:c=!1}){const[u,d]=(0,r.useState)({error:void 0,element:void 0});function p(t){return e=this,n=null,i=function*(){const e=t=>{d({error:t.toString(),element:void 0})};try{const i=h?h(t):t;try{const t=yield Promise.resolve(i),n=t=>d({error:void 0,element:t});if("string"!=typeof t)throw new Error("Code failed to transform");const a={code:t,scope:l,enableTypeScript:o};c?(d({error:void 0,element:null}),(({code:t="",scope:e={},enableTypeScript:n=!0},i,o)=>{if(!/render\s*\(/.test(t))return o(new SyntaxError("No-Inline evaluations must call `render`."));const a=["jsx","imports"];n&&a.splice(1,0,"typescript"),na(ta({transforms:a})(t),$o(Zo({React:r},e),{render:t=>{void 0===t?o(new SyntaxError("`render` must be called with valid JSX.")):i(ea(t,o))}}))})(a,n,e)):n((({code:t="",scope:e={},enableTypeScript:n=!0},i)=>{const o=["jsx"];n&&o.push("typescript");const a=function(...t){return t.reduce(((t,e)=>(...n)=>t(e(...n))))}(aa,ta({transforms:["imports"]}),oa,ra,ta({transforms:o}),sa,ra)(t);return ea(na(a,Zo({React:r},e)),i)})(a,e))}catch(n){return e(n)}}catch(i){return e(i),Promise.resolve()}},new Promise(((t,r)=>{var o=t=>{try{s(i.next(t))}catch(e){r(e)}},a=t=>{try{s(i.throw(t))}catch(e){r(e)}},s=e=>e.done?t(e.value):Promise.resolve(e.value).then(o,a);s((i=i.apply(e,n)).next())}));var e,n,i}const f=t=>d({error:t.toString()});return(0,r.useEffect)((()=>{p(e).catch(f)}),[e,l,c,h]),(0,s.jsx)(Jo.Provider,{value:$o(Zo({},u),{code:e,language:n,theme:i,disabled:a,onError:f,onChange:t=>{p(t).catch(f)}}),children:t})};function ha(t){const{code:e,language:n,theme:i,disabled:o,onChange:a}=(0,r.useContext)(Jo);return(0,s.jsx)(Ko,Zo({theme:i,code:e,language:n,disabled:o,onChange:a},t))}function ca(t){const{error:e}=(0,r.useContext)(Jo);return e?(0,s.jsx)("pre",$o(Zo({},t),{children:e})):null}var ua=function(t){var e=t,{Component:n="div"}=e,i=((t,e)=>{var n={};for(var i in t)qo.call(t,i)&&e.indexOf(i)<0&&(n[i]=t[i]);if(null!=t&&Uo)for(var i of Uo(t))e.indexOf(i)<0&&Xo.call(t,i)&&(n[i]=t[i]);return n})(e,["Component"]);const{element:o}=(0,r.useContext)(Jo);return(0,s.jsx)(n,$o(Zo({},i),{children:o?(0,s.jsx)(o,{}):null}))};function da(t){let{children:e,fallback:n}=t;return(0,yt.A)()?(0,s.jsx)(s.Fragment,{children:e?.()}):n??null}var pa=n(3962),fa=n(6393);function ga(){const{prism:t}=(0,U.p)(),{colorMode:e}=(0,fa.G)(),n=t.theme,i=t.darkTheme||n;return"dark"===e?i:n}var ma=n(2357);const va="playgroundContainer_MGRv",ya="playgroundHeader_kiMI",_a="playgroundEditor_UV9g",xa="playgroundPreview_myh2";function ba(t){let{children:e}=t;return(0,s.jsx)("div",{className:(0,d.A)(ya),children:e})}function wa(){return(0,s.jsx)("div",{children:"Loading..."})}function Sa(){return(0,s.jsx)(da,{fallback:(0,s.jsx)(wa,{}),children:()=>(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(ma.A,{fallback:t=>(0,s.jsx)(pa.MN,{...t}),children:(0,s.jsx)(ua,{})}),(0,s.jsx)(ca,{})]})})}function Ta(){return(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(ba,{children:(0,s.jsx)(f.A,{id:"theme.Playground.result",description:"The result label of the live codeblocks",children:"Result"})}),(0,s.jsx)("div",{className:xa,children:(0,s.jsx)(Sa,{})})]})}function Ma(){const t=(0,yt.A)();return(0,s.jsx)(ha,{className:_a},String(t))}function Aa(){return(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(ba,{children:(0,s.jsx)(f.A,{id:"theme.Playground.liveEditor",description:"The live editor label of the live codeblocks",children:"Live Editor"})}),(0,s.jsx)(Ma,{})]})}const Ca=t=>`${t};`;function Ia(t){let{children:e,transformCode:n,...i}=t;const{siteConfig:{themeConfig:r}}=(0,_.A)(),{liveCodeBlock:{playgroundPosition:o}}=r,a=ga(),l=i.metastring?.includes("noInline")??!1;return(0,s.jsx)("div",{className:va,children:(0,s.jsx)(la,{code:e?.replace(/\n$/,""),noInline:l,transformCode:n??Ca,theme:a,...i,children:"top"===o?(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(Ta,{}),(0,s.jsx)(Aa,{})]}):(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(Aa,{}),(0,s.jsx)(Ta,{})]})})})}var Ea=n(8002),ka=n(1357),La=n.n(ka);const Da=/title=(?["'])(?.*?)\1/,Pa=/\{(?<range>[\d,-]+)\}/,Ra={js:{start:"\\/\\/",end:""},jsBlock:{start:"\\/\\*",end:"\\*\\/"},jsx:{start:"\\{\\s*\\/\\*",end:"\\*\\/\\s*\\}"},bash:{start:"#",end:""},html:{start:"\x3c!--",end:"--\x3e"}},Oa={...Ra,lua:{start:"--",end:""},wasm:{start:"\\;\\;",end:""},tex:{start:"%",end:""},vb:{start:"['\u2018\u2019]",end:""},vbnet:{start:"(?:_\\s*)?['\u2018\u2019]",end:""},rem:{start:"[Rr][Ee][Mm]\\b",end:""},f90:{start:"!",end:""},ml:{start:"\\(\\*",end:"\\*\\)"},cobol:{start:"\\*>",end:""}},Na=Object.keys(Ra);function Fa(t,e){const n=t.map((t=>{const{start:n,end:i}=Oa[t];return`(?:${n}\\s*(${e.flatMap((t=>[t.line,t.block?.start,t.block?.end].filter(Boolean))).join("|")})\\s*${i})`})).join("|");return new RegExp(`^\\s*(?:${n})\\s*$`)}function Ba(t,e){let n=t.replace(/\n$/,"");const{language:i,magicComments:r,metastring:o}=e;if(o&&Pa.test(o)){const t=o.match(Pa).groups.range;if(0===r.length)throw new Error(`A highlight range has been given in code block's metastring (\`\`\` ${o}), but no magic comment config is available. Docusaurus applies the first magic comment entry's className for metastring ranges.`);const e=r[0].className,i=La()(t).filter((t=>t>0)).map((t=>[t-1,[e]]));return{lineClassNames:Object.fromEntries(i),code:n}}if(void 0===i)return{lineClassNames:{},code:n};const a=function(t,e){switch(t){case"js":case"javascript":case"ts":case"typescript":return Fa(["js","jsBlock"],e);case"jsx":case"tsx":return Fa(["js","jsBlock","jsx"],e);case"html":return Fa(["js","jsBlock","html"],e);case"python":case"py":case"bash":return Fa(["bash"],e);case"markdown":case"md":return Fa(["html","jsx","bash"],e);case"tex":case"latex":case"matlab":return Fa(["tex"],e);case"lua":case"haskell":case"sql":return Fa(["lua"],e);case"wasm":return Fa(["wasm"],e);case"vb":case"vba":case"visual-basic":return Fa(["vb","rem"],e);case"vbnet":return Fa(["vbnet","rem"],e);case"batch":return Fa(["rem"],e);case"basic":return Fa(["rem","f90"],e);case"fsharp":return Fa(["js","ml"],e);case"ocaml":case"sml":return Fa(["ml"],e);case"fortran":return Fa(["f90"],e);case"cobol":return Fa(["cobol"],e);default:return Fa(Na,e)}}(i,r),s=n.split("\n"),l=Object.fromEntries(r.map((t=>[t.className,{start:0,range:""}]))),h=Object.fromEntries(r.filter((t=>t.line)).map((t=>{let{className:e,line:n}=t;return[n,e]}))),c=Object.fromEntries(r.filter((t=>t.block)).map((t=>{let{className:e,block:n}=t;return[n.start,e]}))),u=Object.fromEntries(r.filter((t=>t.block)).map((t=>{let{className:e,block:n}=t;return[n.end,e]})));for(let p=0;p<s.length;){const t=s[p].match(a);if(!t){p+=1;continue}const e=t.slice(1).find((t=>void 0!==t));h[e]?l[h[e]].range+=`${p},`:c[e]?l[c[e]].start=p:u[e]&&(l[u[e]].range+=`${l[u[e]].start}-${p-1},`),s.splice(p,1)}n=s.join("\n");const d={};return Object.entries(l).forEach((t=>{let[e,{range:n}]=t;La()(n).forEach((t=>{d[t]??=[],d[t].push(e)}))})),{lineClassNames:d,code:n}}const za="codeBlockContainer_uieF";function Ga(t){let{as:e,...n}=t;const i=function(t){const e={color:"--prism-color",backgroundColor:"--prism-background-color"},n={};return Object.entries(t.plain).forEach((t=>{let[i,r]=t;const o=e[i];o&&"string"==typeof r&&(n[o]=r)})),n}(ga());return(0,s.jsx)(e,{...n,style:i,className:(0,d.A)(n.className,za,b.G.common.codeBlock)})}const Va={codeBlockContent:"codeBlockContent_rt_a",codeBlockTitle:"codeBlockTitle_bnm4",codeBlock:"codeBlock_XD3N",codeBlockStandalone:"codeBlockStandalone__j3A",codeBlockLines:"codeBlockLines_sPP1",codeBlockLinesWithNumbering:"codeBlockLinesWithNumbering_OLR7",buttonGroup:"buttonGroup_MV67"};function ja(t){let{children:e,className:n}=t;return(0,s.jsx)(Ga,{as:"pre",tabIndex:0,className:(0,d.A)(Va.codeBlockStandalone,"thin-scrollbar",n),children:(0,s.jsx)("code",{className:Va.codeBlockLines,children:e})})}const Ha={attributes:!0,characterData:!0,childList:!0,subtree:!0};function Wa(t,e){const[n,i]=(0,r.useState)(),o=(0,r.useCallback)((()=>{i(t.current?.closest("[role=tabpanel][hidden]"))}),[t,i]);(0,r.useEffect)((()=>{o()}),[o]),function(t,e,n){void 0===n&&(n=Ha);const i=(0,a._q)(e),o=(0,a.Be)(n);(0,r.useEffect)((()=>{const e=new MutationObserver(i);return t&&e.observe(t,o),()=>e.disconnect()}),[t,i,o])}(n,(t=>{t.forEach((t=>{"attributes"===t.type&&"hidden"===t.attributeName&&(e(),o())}))}),{attributes:!0,characterData:!1,childList:!1,subtree:!1})}const Ua="codeLine_w1Pp",qa="codeLineNumber_SZe5",Xa="codeLineContent_fZ_3";function Ya(t){let{line:e,classNames:n,showLineNumbers:i,getLineProps:r,getTokenProps:o}=t;1===e.length&&"\n"===e[0].content&&(e[0].content="");const a=r({line:e,className:(0,d.A)(n,i&&Ua)}),l=e.map(((t,e)=>(0,s.jsx)("span",{...o({token:t})},e)));return(0,s.jsxs)("span",{...a,children:[i?(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)("span",{className:qa}),(0,s.jsx)("span",{className:Xa,children:l})]}):l,(0,s.jsx)("br",{})]})}function Za(t){return(0,s.jsx)("svg",{viewBox:"0 0 24 24",...t,children:(0,s.jsx)("path",{fill:"currentColor",d:"M19,21H8V7H19M19,5H8A2,2 0 0,0 6,7V21A2,2 0 0,0 8,23H19A2,2 0 0,0 21,21V7A2,2 0 0,0 19,5M16,1H4A2,2 0 0,0 2,3V17H4V3H16V1Z"})})}function $a(t){return(0,s.jsx)("svg",{viewBox:"0 0 24 24",...t,children:(0,s.jsx)("path",{fill:"currentColor",d:"M21,7L9,19L3.5,13.5L4.91,12.09L9,16.17L19.59,5.59L21,7Z"})})}const Ka={copyButtonCopied:"copyButtonCopied_W2uY",copyButtonIcons:"copyButtonIcons_Evtz",copyButtonIcon:"copyButtonIcon_lhxN",copyButtonSuccessIcon:"copyButtonSuccessIcon_oPjr"};function Ja(t){let{code:e,className:n}=t;const[i,o]=(0,r.useState)(!1),a=(0,r.useRef)(void 0),l=(0,r.useCallback)((()=>{!function(t,e){let{target:n=document.body}=void 0===e?{}:e;if("string"!=typeof t)throw new TypeError(`Expected parameter \`text\` to be a \`string\`, got \`${typeof t}\`.`);const i=document.createElement("textarea"),r=document.activeElement;i.value=t,i.setAttribute("readonly",""),i.style.contain="strict",i.style.position="absolute",i.style.left="-9999px",i.style.fontSize="12pt";const o=document.getSelection(),a=o.rangeCount>0&&o.getRangeAt(0);n.append(i),i.select(),i.selectionStart=0,i.selectionEnd=t.length;let s=!1;try{s=document.execCommand("copy")}catch{}i.remove(),a&&(o.removeAllRanges(),o.addRange(a)),r&&r.focus()}(e),o(!0),a.current=window.setTimeout((()=>{o(!1)}),1e3)}),[e]);return(0,r.useEffect)((()=>()=>window.clearTimeout(a.current)),[]),(0,s.jsx)("button",{type:"button","aria-label":i?(0,f.T)({id:"theme.CodeBlock.copied",message:"Copied",description:"The copied button label on code blocks"}):(0,f.T)({id:"theme.CodeBlock.copyButtonAriaLabel",message:"Copy code to clipboard",description:"The ARIA label for copy code blocks button"}),title:(0,f.T)({id:"theme.CodeBlock.copy",message:"Copy",description:"The copy button label on code blocks"}),className:(0,d.A)("clean-btn",n,Ka.copyButton,i&&Ka.copyButtonCopied),onClick:l,children:(0,s.jsxs)("span",{className:Ka.copyButtonIcons,"aria-hidden":"true",children:[(0,s.jsx)(Za,{className:Ka.copyButtonIcon}),(0,s.jsx)($a,{className:Ka.copyButtonSuccessIcon})]})})}function Qa(t){return(0,s.jsx)("svg",{viewBox:"0 0 24 24",...t,children:(0,s.jsx)("path",{fill:"currentColor",d:"M4 19h6v-2H4v2zM20 5H4v2h16V5zm-3 6H4v2h13.25c1.1 0 2 .9 2 2s-.9 2-2 2H15v-2l-3 3l3 3v-2h2c2.21 0 4-1.79 4-4s-1.79-4-4-4z"})})}const ts="wordWrapButtonIcon_lZZU",es="wordWrapButtonEnabled_xVKH";function ns(t){let{className:e,onClick:n,isEnabled:i}=t;const r=(0,f.T)({id:"theme.CodeBlock.wordWrapToggle",message:"Toggle word wrap",description:"The title attribute for toggle word wrapping button of code block lines"});return(0,s.jsx)("button",{type:"button",onClick:n,className:(0,d.A)("clean-btn",e,i&&es),"aria-label":r,title:r,children:(0,s.jsx)(Qa,{className:ts,"aria-hidden":"true"})})}function is(t){let{children:e,className:n="",metastring:i,title:o,showLineNumbers:a,language:l}=t;const{prism:{defaultLanguage:h,magicComments:c}}=(0,U.p)(),u=function(t){return t?.toLowerCase()}(l??function(t){const e=t.split(" ").find((t=>t.startsWith("language-")));return e?.replace(/language-/,"")}(n)??h),p=ga(),f=function(){const[t,e]=(0,r.useState)(!1),[n,i]=(0,r.useState)(!1),o=(0,r.useRef)(null),a=(0,r.useCallback)((()=>{const n=o.current.querySelector("code");t?n.removeAttribute("style"):(n.style.whiteSpace="pre-wrap",n.style.overflowWrap="anywhere"),e((t=>!t))}),[o,t]),s=(0,r.useCallback)((()=>{const{scrollWidth:t,clientWidth:e}=o.current,n=t>e||o.current.querySelector("code").hasAttribute("style");i(n)}),[o]);return Wa(o,s),(0,r.useEffect)((()=>{s()}),[t,s]),(0,r.useEffect)((()=>(window.addEventListener("resize",s,{passive:!0}),()=>{window.removeEventListener("resize",s)})),[s]),{codeBlockRef:o,isEnabled:t,isCodeScrollable:n,toggle:a}}(),g=function(t){return t?.match(Da)?.groups.title??""}(i)||o,{lineClassNames:m,code:v}=Ba(e,{metastring:i,language:u,magicComments:c}),y=a??function(t){return Boolean(t?.includes("showLineNumbers"))}(i);return(0,s.jsxs)(Ga,{as:"div",className:(0,d.A)(n,u&&!n.includes(`language-${u}`)&&`language-${u}`),children:[g&&(0,s.jsx)("div",{className:Va.codeBlockTitle,children:g}),(0,s.jsxs)("div",{className:Va.codeBlockContent,children:[(0,s.jsx)(_t.f4,{theme:p,code:v,language:u??"text",children:t=>{let{className:e,style:n,tokens:i,getLineProps:r,getTokenProps:o}=t;return(0,s.jsx)("pre",{tabIndex:0,ref:f.codeBlockRef,className:(0,d.A)(e,Va.codeBlock,"thin-scrollbar"),style:n,children:(0,s.jsx)("code",{className:(0,d.A)(Va.codeBlockLines,y&&Va.codeBlockLinesWithNumbering),children:i.map(((t,e)=>(0,s.jsx)(Ya,{line:t,getLineProps:r,getTokenProps:o,classNames:m[e],showLineNumbers:y},e)))})})}}),(0,s.jsxs)("div",{className:Va.buttonGroup,children:[(f.isEnabled||f.isCodeScrollable)&&(0,s.jsx)(ns,{className:Va.codeButton,onClick:()=>f.toggle(),isEnabled:f.isEnabled}),(0,s.jsx)(Ja,{className:Va.codeButton,code:v})]})]})]})}const rs=(os=function(t){let{children:e,...n}=t;const i=(0,yt.A)(),o=function(t){return r.Children.toArray(t).some((t=>(0,r.isValidElement)(t)))?t:Array.isArray(t)?t.join(""):t}(e),a="string"==typeof o?is:ja;return(0,s.jsx)(a,{...n,children:o},String(i))},function(t){return t.live?(0,s.jsx)(Ia,{scope:Ea.A,...t}):(0,s.jsx)(os,{...t})});var os;function as(t){return(0,s.jsx)("code",{...t})}var ss=n(6282);const ls="details_ulot",hs="isBrowser_qya_",cs="collapsibleContent_HeMa";function us(t){return!!t&&("SUMMARY"===t.tagName||us(t.parentElement))}function ds(t,e){return!!t&&(t===e||ds(t.parentElement,e))}function ps(t){let{summary:e,children:n,...i}=t;(0,ss.A)().collectAnchor(i.id);const o=(0,yt.A)(),a=(0,r.useRef)(null),{collapsed:l,setCollapsed:h}=(0,W.u)({initialState:!i.open}),[c,u]=(0,r.useState)(i.open),p=r.isValidElement(e)?e:(0,s.jsx)("summary",{children:e??"Details"});return(0,s.jsxs)("details",{...i,ref:a,open:c,"data-collapsed":l,className:(0,d.A)(ls,o&&hs,i.className),onMouseDown:t=>{us(t.target)&&t.detail>1&&t.preventDefault()},onClick:t=>{t.stopPropagation();const e=t.target;us(e)&&ds(e,a.current)&&(t.preventDefault(),l?(h(!1),u(!0)):h(!0))},children:[p,(0,s.jsx)(W.N,{lazy:!1,collapsed:l,disableSSRStyle:!0,onCollapseTransitionEnd:t=>{h(t),u(!t)},children:(0,s.jsx)("div",{className:cs,children:n})})]})}const fs="details_ylfE";function gs(t){let{...e}=t;return(0,s.jsx)(ps,{...e,className:(0,d.A)("alert alert--info",fs,e.className)})}function ms(t){const e=r.Children.toArray(t.children),n=e.find((t=>r.isValidElement(t)&&"summary"===t.type)),i=(0,s.jsx)(s.Fragment,{children:e.filter((t=>t!==n))});return(0,s.jsx)(gs,{...t,summary:n,children:i})}function vs(t){return(0,s.jsx)(gt.A,{...t})}const ys="containsTaskList_dMzw";function _s(t){if(void 0!==t)return(0,d.A)(t,t?.includes("contains-task-list")&&ys)}const xs="img_SvlX";function bs(t){const{mdxAdmonitionTitle:e,rest:n}=function(t){const e=r.Children.toArray(t),n=e.find((t=>r.isValidElement(t)&&"mdxAdmonitionTitle"===t.type)),i=e.filter((t=>t!==n)),o=n?.props.children;return{mdxAdmonitionTitle:o,rest:i.length>0?(0,s.jsx)(s.Fragment,{children:i}):null}}(t.children),i=t.title??e;return{...t,...i&&{title:i},children:n}}const ws="admonition_N4vE",Ss="admonitionHeading_S86Y",Ts="admonitionIcon_jXEK",Ms="admonitionContent_esOg";function As(t){let{type:e,className:n,children:i}=t;return(0,s.jsx)("div",{className:(0,d.A)(b.G.common.admonition,b.G.common.admonitionType(e),ws,n),children:i})}function Cs(t){let{icon:e,title:n}=t;return(0,s.jsxs)("div",{className:Ss,children:[(0,s.jsx)("span",{className:Ts,children:e}),n]})}function Is(t){let{children:e}=t;return e?(0,s.jsx)("div",{className:Ms,children:e}):null}function Es(t){const{type:e,icon:n,title:i,children:r,className:o}=t;return(0,s.jsxs)(As,{type:e,className:o,children:[i||n?(0,s.jsx)(Cs,{title:i,icon:n}):null,(0,s.jsx)(Is,{children:r})]})}function ks(t){return(0,s.jsx)("svg",{viewBox:"0 0 14 16",...t,children:(0,s.jsx)("path",{fillRule:"evenodd",d:"M6.3 5.69a.942.942 0 0 1-.28-.7c0-.28.09-.52.28-.7.19-.18.42-.28.7-.28.28 0 .52.09.7.28.18.19.28.42.28.7 0 .28-.09.52-.28.7a1 1 0 0 1-.7.3c-.28 0-.52-.11-.7-.3zM8 7.99c-.02-.25-.11-.48-.31-.69-.2-.19-.42-.3-.69-.31H6c-.27.02-.48.13-.69.31-.2.2-.3.44-.31.69h1v3c.02.27.11.5.31.69.2.2.42.31.69.31h1c.27 0 .48-.11.69-.31.2-.19.3-.42.31-.69H8V7.98v.01zM7 2.3c-3.14 0-5.7 2.54-5.7 5.68 0 3.14 2.56 5.7 5.7 5.7s5.7-2.55 5.7-5.7c0-3.15-2.56-5.69-5.7-5.69v.01zM7 .98c3.86 0 7 3.14 7 7s-3.14 7-7 7-7-3.12-7-7 3.14-7 7-7z"})})}const Ls={icon:(0,s.jsx)(ks,{}),title:(0,s.jsx)(f.A,{id:"theme.admonition.note",description:"The default label used for the Note admonition (:::note)",children:"note"})};function Ds(t){return(0,s.jsx)(Es,{...Ls,...t,className:(0,d.A)("alert alert--secondary",t.className),children:t.children})}function Ps(t){return(0,s.jsx)("svg",{viewBox:"0 0 12 16",...t,children:(0,s.jsx)("path",{fillRule:"evenodd",d:"M6.5 0C3.48 0 1 2.19 1 5c0 .92.55 2.25 1 3 1.34 2.25 1.78 2.78 2 4v1h5v-1c.22-1.22.66-1.75 2-4 .45-.75 1-2.08 1-3 0-2.81-2.48-5-5.5-5zm3.64 7.48c-.25.44-.47.8-.67 1.11-.86 1.41-1.25 2.06-1.45 3.23-.02.05-.02.11-.02.17H5c0-.06 0-.13-.02-.17-.2-1.17-.59-1.83-1.45-3.23-.2-.31-.42-.67-.67-1.11C2.44 6.78 2 5.65 2 5c0-2.2 2.02-4 4.5-4 1.22 0 2.36.42 3.22 1.19C10.55 2.94 11 3.94 11 5c0 .66-.44 1.78-.86 2.48zM4 14h5c-.23 1.14-1.3 2-2.5 2s-2.27-.86-2.5-2z"})})}const Rs={icon:(0,s.jsx)(Ps,{}),title:(0,s.jsx)(f.A,{id:"theme.admonition.tip",description:"The default label used for the Tip admonition (:::tip)",children:"tip"})};function Os(t){return(0,s.jsx)(Es,{...Rs,...t,className:(0,d.A)("alert alert--success",t.className),children:t.children})}function Ns(t){return(0,s.jsx)("svg",{viewBox:"0 0 14 16",...t,children:(0,s.jsx)("path",{fillRule:"evenodd",d:"M7 2.3c3.14 0 5.7 2.56 5.7 5.7s-2.56 5.7-5.7 5.7A5.71 5.71 0 0 1 1.3 8c0-3.14 2.56-5.7 5.7-5.7zM7 1C3.14 1 0 4.14 0 8s3.14 7 7 7 7-3.14 7-7-3.14-7-7-7zm1 3H6v5h2V4zm0 6H6v2h2v-2z"})})}const Fs={icon:(0,s.jsx)(Ns,{}),title:(0,s.jsx)(f.A,{id:"theme.admonition.info",description:"The default label used for the Info admonition (:::info)",children:"info"})};function Bs(t){return(0,s.jsx)(Es,{...Fs,...t,className:(0,d.A)("alert alert--info",t.className),children:t.children})}function zs(t){return(0,s.jsx)("svg",{viewBox:"0 0 16 16",...t,children:(0,s.jsx)("path",{fillRule:"evenodd",d:"M8.893 1.5c-.183-.31-.52-.5-.887-.5s-.703.19-.886.5L.138 13.499a.98.98 0 0 0 0 1.001c.193.31.53.501.886.501h13.964c.367 0 .704-.19.877-.5a1.03 1.03 0 0 0 .01-1.002L8.893 1.5zm.133 11.497H6.987v-2.003h2.039v2.003zm0-3.004H6.987V5.987h2.039v4.006z"})})}const Gs={icon:(0,s.jsx)(zs,{}),title:(0,s.jsx)(f.A,{id:"theme.admonition.warning",description:"The default label used for the Warning admonition (:::warning)",children:"warning"})};function Vs(t){return(0,s.jsx)("svg",{viewBox:"0 0 12 16",...t,children:(0,s.jsx)("path",{fillRule:"evenodd",d:"M5.05.31c.81 2.17.41 3.38-.52 4.31C3.55 5.67 1.98 6.45.9 7.98c-1.45 2.05-1.7 6.53 3.53 7.7-2.2-1.16-2.67-4.52-.3-6.61-.61 2.03.53 3.33 1.94 2.86 1.39-.47 2.3.53 2.27 1.67-.02.78-.31 1.44-1.13 1.81 3.42-.59 4.78-3.42 4.78-5.56 0-2.84-2.53-3.22-1.25-5.61-1.52.13-2.03 1.13-1.89 2.75.09 1.08-1.02 1.8-1.86 1.33-.67-.41-.66-1.19-.06-1.78C8.18 5.31 8.68 2.45 5.05.32L5.03.3l.02.01z"})})}const js={icon:(0,s.jsx)(Vs,{}),title:(0,s.jsx)(f.A,{id:"theme.admonition.danger",description:"The default label used for the Danger admonition (:::danger)",children:"danger"})};const Hs={icon:(0,s.jsx)(zs,{}),title:(0,s.jsx)(f.A,{id:"theme.admonition.caution",description:"The default label used for the Caution admonition (:::caution)",children:"caution"})};const Ws={...{note:Ds,tip:Os,info:Bs,warning:function(t){return(0,s.jsx)(Es,{...Gs,...t,className:(0,d.A)("alert alert--warning",t.className),children:t.children})},danger:function(t){return(0,s.jsx)(Es,{...js,...t,className:(0,d.A)("alert alert--danger",t.className),children:t.children})}},...{secondary:t=>(0,s.jsx)(Ds,{title:"secondary",...t}),important:t=>(0,s.jsx)(Bs,{title:"important",...t}),success:t=>(0,s.jsx)(Os,{title:"success",...t}),caution:function(t){return(0,s.jsx)(Es,{...Hs,...t,className:(0,d.A)("alert alert--warning",t.className),children:t.children})}}};function Us(t){const e=bs(t),n=(i=e.type,Ws[i]||(console.warn(`No admonition component found for admonition type "${i}". Using Info as fallback.`),Ws.info));var i;return(0,s.jsx)(n,{...e})}const qs={Head:vt.A,details:ms,Details:ms,code:function(t){return function(t){return void 0!==t.children&&r.Children.toArray(t.children).every((t=>"string"==typeof t&&!t.includes("\n")))}(t)?(0,s.jsx)(as,{...t}):(0,s.jsx)(rs,{...t})},a:function(t){return(0,s.jsx)(g.A,{...t})},pre:function(t){return(0,s.jsx)(s.Fragment,{children:t.children})},ul:function(t){return(0,s.jsx)("ul",{...t,className:_s(t.className)})},li:function(t){return(0,ss.A)().collectAnchor(t.id),(0,s.jsx)("li",{...t})},img:function(t){return(0,s.jsx)("img",{decoding:"async",loading:"lazy",...t,className:(e=t.className,(0,d.A)(e,xs))});var e},h1:t=>(0,s.jsx)(vs,{as:"h1",...t}),h2:t=>(0,s.jsx)(vs,{as:"h2",...t}),h3:t=>(0,s.jsx)(vs,{as:"h3",...t}),h4:t=>(0,s.jsx)(vs,{as:"h4",...t}),h5:t=>(0,s.jsx)(vs,{as:"h5",...t}),h6:t=>(0,s.jsx)(vs,{as:"h6",...t}),admonition:Us,mermaid:()=>null};function Xs(t){let{children:e}=t;return(0,s.jsx)(mt.x,{components:qs,children:e})}function Ys(t){let{children:e}=t;const n=function(){const{metadata:t,frontMatter:e,contentTitle:n}=c();return e.hide_title||void 0!==n?null:t.title}();return(0,s.jsxs)("div",{className:(0,d.A)(b.G.docs.docMarkdown,"markdown"),children:[n&&(0,s.jsx)("header",{children:(0,s.jsx)(gt.A,{as:"h1",children:n})}),(0,s.jsx)(Xs,{children:e})]})}var Zs=n(3288),$s=n(5989),Ks=n(6930);function Js(t){return(0,s.jsx)("svg",{viewBox:"0 0 24 24",...t,children:(0,s.jsx)("path",{d:"M10 19v-5h4v5c0 .55.45 1 1 1h3c.55 0 1-.45 1-1v-7h1.7c.46 0 .68-.57.33-.87L12.67 3.6c-.38-.34-.96-.34-1.34 0l-8.36 7.53c-.34.3-.13.87.33.87H5v7c0 .55.45 1 1 1h3c.55 0 1-.45 1-1z",fill:"currentColor"})})}const Qs={breadcrumbHomeIcon:"breadcrumbHomeIcon_YW6c"};function tl(){const t=(0,Ks.Ay)("/");return(0,s.jsx)("li",{className:"breadcrumbs__item",children:(0,s.jsx)(g.A,{"aria-label":(0,f.T)({id:"theme.docs.breadcrumbs.home",message:"Home page",description:"The ARIA label for the home page in the breadcrumbs"}),className:"breadcrumbs__link",href:t,children:(0,s.jsx)(Js,{className:Qs.breadcrumbHomeIcon})})})}const el={breadcrumbsContainer:"breadcrumbsContainer_IULu"};function nl(t){let{children:e,href:n,isLast:i}=t;const r="breadcrumbs__link";return i?(0,s.jsx)("span",{className:r,itemProp:"name",children:e}):n?(0,s.jsx)(g.A,{className:r,href:n,itemProp:"item",children:(0,s.jsx)("span",{itemProp:"name",children:e})}):(0,s.jsx)("span",{className:r,children:e})}function il(t){let{children:e,active:n,index:i,addMicrodata:r}=t;return(0,s.jsxs)("li",{...r&&{itemScope:!0,itemProp:"itemListElement",itemType:"https://schema.org/ListItem"},className:(0,d.A)("breadcrumbs__item",{"breadcrumbs__item--active":n}),children:[e,(0,s.jsx)("meta",{itemProp:"position",content:String(i+1)})]})}function rl(){const t=(0,Zs.OF)(),e=(0,$s.Dt)();return t?(0,s.jsx)("nav",{className:(0,d.A)(b.G.docs.docBreadcrumbs,el.breadcrumbsContainer),"aria-label":(0,f.T)({id:"theme.docs.breadcrumbs.navAriaLabel",message:"Breadcrumbs",description:"The ARIA label for the breadcrumbs"}),children:(0,s.jsxs)("ul",{className:"breadcrumbs",itemScope:!0,itemType:"https://schema.org/BreadcrumbList",children:[e&&(0,s.jsx)(tl,{}),t.map(((e,n)=>{const i=n===t.length-1,r="category"===e.type&&e.linkUnlisted?void 0:e.href;return(0,s.jsx)(il,{active:i,index:n,addMicrodata:!!r,children:(0,s.jsx)(nl,{href:r,isLast:i,children:e.label})},n)}))]})}):null}function ol(t){let{className:e}=t;return(0,s.jsx)(Us,{type:"caution",title:(0,s.jsx)(i.DraftBannerTitle,{}),className:(0,d.A)(e,b.G.common.draftBanner),children:(0,s.jsx)(i.DraftBannerMessage,{})})}function al(){return(0,s.jsx)(f.A,{id:"theme.unlistedContent.title",description:"The unlisted content banner title",children:"Unlisted page"})}function sl(){return(0,s.jsx)(f.A,{id:"theme.unlistedContent.message",description:"The unlisted content banner message",children:"This page is unlisted. Search engines will not index it, and only users having a direct link can access it."})}function ll(){return(0,s.jsx)(vt.A,{children:(0,s.jsx)("meta",{name:"robots",content:"noindex, nofollow"})})}function hl(t){let{className:e}=t;return(0,s.jsx)(Us,{type:"caution",title:(0,s.jsx)(al,{}),className:(0,d.A)(e,b.G.common.unlistedBanner),children:(0,s.jsx)(sl,{})})}function cl(t){return(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(ll,{}),(0,s.jsx)(hl,{...t})]})}function ul(t){let{metadata:e}=t;const{unlisted:n,frontMatter:i}=e;return(0,s.jsxs)(s.Fragment,{children:[(n||i.unlisted)&&(0,s.jsx)(cl,{}),i.draft&&(0,s.jsx)(ol,{})]})}const dl={docItemContainer:"docItemContainer_nzch",docItemCol:"docItemCol_t5Ua"};function pl(t){let{children:e}=t;const n=function(){const{frontMatter:t,toc:e}=c(),n=(0,p.l)(),i=t.hide_table_of_contents,r=!i&&e.length>0;return{hidden:i,mobile:r?(0,s.jsx)(at,{}):void 0,desktop:!r||"desktop"!==n&&"ssr"!==n?void 0:(0,s.jsx)(ut,{})}}(),{metadata:i}=c();return(0,s.jsxs)("div",{className:"row",children:[(0,s.jsxs)("div",{className:(0,d.A)("col",!n.hidden&&dl.docItemCol),children:[(0,s.jsx)(ul,{metadata:i}),(0,s.jsx)(I,{}),(0,s.jsxs)("div",{className:dl.docItemContainer,children:[(0,s.jsxs)("article",{children:[(0,s.jsx)(rl,{}),(0,s.jsx)(E,{}),n.mobile,(0,s.jsx)(Ys,{children:e}),(0,s.jsx)(H,{})]}),(0,s.jsx)(y,{})]})]}),n.desktop&&(0,s.jsx)("div",{className:"col col--3",children:n.desktop})]})}function fl(t){const e=`docs-doc-id-${t.content.metadata.id}`,n=t.content;return(0,s.jsx)(h,{content:t.content,children:(0,s.jsxs)(o.e3,{className:e,children:[(0,s.jsx)(u,{}),(0,s.jsx)(pl,{children:(0,s.jsx)(n,{})})]})})}},7289:(t,e,n)=>{"use strict";var i=n(889),r=n(585),o=(n(3352),n(1829)),a=n(2287),s=n(4971);(0,r.Y)([o.a,a.a]);function l(t,e,n){"object"==typeof e&&(n=e,e=null);var i,r=this;if(!(t instanceof Function))for(var o in i=[],t)t.hasOwnProperty(o)&&i.push(o);var a=function(e){if(r.apply(this,arguments),t instanceof Function?h(this,t.call(this,e)):function(t,e,n){for(var i=0;i<n.length;i++){var r=n[i];t[r]=e[r]}}(this,t,i),this.constructor===a)for(var n=a.__initializers__,o=0;o<n.length;o++)n[o].apply(this,arguments)};a.__super__=r,r.__initializers__?a.__initializers__=r.__initializers__.slice():a.__initializers__=[],e&&a.__initializers__.push(e);var s=function(){};return s.prototype=r.prototype,a.prototype=new s,a.prototype.constructor=a,h(a.prototype,n),a.extend=r.extend,a.derive=r.extend,a}function h(t,e){if(e)for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])}(0,r.Y)(s._);const c={extend:l,derive:l};function u(t,e){this.action=t,this.context=e}const d={trigger:function(t){if(this.hasOwnProperty("__handlers__")&&this.__handlers__.hasOwnProperty(t)){var e=this.__handlers__[t],n=e.length,i=-1,r=arguments;switch(r.length){case 1:for(;++i<n;)e[i].action.call(e[i].context);return;case 2:for(;++i<n;)e[i].action.call(e[i].context,r[1]);return;case 3:for(;++i<n;)e[i].action.call(e[i].context,r[1],r[2]);return;case 4:for(;++i<n;)e[i].action.call(e[i].context,r[1],r[2],r[3]);return;case 5:for(;++i<n;)e[i].action.call(e[i].context,r[1],r[2],r[3],r[4]);return;default:for(;++i<n;)e[i].action.apply(e[i].context,Array.prototype.slice.call(r,1));return}}},on:function(t,e,n){if(t&&e){var i=this.__handlers__||(this.__handlers__={});if(i[t]){if(this.has(t,e))return}else i[t]=[];var r=new u(e,n||this);return i[t].push(r),this}},once:function(t,e,n){if(t&&e){var i=this;return this.on(t,(function n(){i.off(t,n),e.apply(this,arguments)}),n)}},before:function(t,e,n){if(t&&e)return t="before"+t,this.on(t,e,n)},after:function(t,e,n){if(t&&e)return t="after"+t,this.on(t,e,n)},success:function(t,e){return this.once("success",t,e)},error:function(t,e){return this.once("error",t,e)},off:function(t,e){var n=this.__handlers__||(this.__handlers__={});if(e){if(n[t]){for(var i=n[t],r=[],o=0;o<i.length;o++)e&&i[o].action!==e&&r.push(i[o]);n[t]=r}return this}n[t]=[]},has:function(t,e){var n=this.__handlers__;if(!n||!n[t])return!1;for(var i=n[t],r=0;r<i.length;r++)if(i[r].action===e)return!0}};var p=0,f=Array.prototype.forEach,g={genGUID:function(){return++p},relative2absolute:function(t,e){if(!e||t.match(/^\//))return t;for(var n=t.split("/"),i=e.split("/"),r=n[0];"."===r||".."===r;)".."===r&&i.pop(),n.shift(),r=n[0];return i.join("/")+"/"+n.join("/")},extend:function(t,e){if(e)for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n]);return t},defaults:function(t,e){if(e)for(var n in e)void 0===t[n]&&(t[n]=e[n]);return t},extendWithPropList:function(t,e,n){if(e)for(var i=0;i<n.length;i++){var r=n[i];t[r]=e[r]}return t},defaultsWithPropList:function(t,e,n){if(e)for(var i=0;i<n.length;i++){var r=n[i];null==t[r]&&(t[r]=e[r])}return t},each:function(t,e,n){if(t&&e)if(t.forEach&&t.forEach===f)t.forEach(e,n);else if(t.length===+t.length)for(var i=0,r=t.length;i<r;i++)e.call(n,t[i],i,t);else for(var o in t)t.hasOwnProperty(o)&&e.call(n,t[o],o,t)},isObject:function(t){return t===Object(t)},isArray:function(t){return Array.isArray(t)},isArrayLike:function(t){return!!t&&t.length===+t.length},clone:function(t){if(g.isObject(t)){if(g.isArray(t))return t.slice();if(g.isArrayLike(t)){for(var e=new t.constructor(t.length),n=0;n<t.length;n++)e[n]=t[n];return e}return g.extend({},t)}return t}};const m=g;var v=function(){this.__uid__=m.genGUID()};v.__initializers__=[function(t){m.extend(this,t)}],m.extend(v,c),m.extend(v.prototype,d);const y=v;var _=["OES_texture_float","OES_texture_half_float","OES_texture_float_linear","OES_texture_half_float_linear","OES_standard_derivatives","OES_vertex_array_object","OES_element_index_uint","WEBGL_compressed_texture_s3tc","WEBGL_depth_texture","EXT_texture_filter_anisotropic","EXT_shader_texture_lod","WEBGL_draw_buffers","EXT_frag_depth","EXT_sRGB","ANGLE_instanced_arrays"],x=["MAX_TEXTURE_SIZE","MAX_CUBE_MAP_TEXTURE_SIZE"];const b=function(t){for(var e={},n={},i=0;i<_.length;i++){o(_[i])}for(i=0;i<x.length;i++){var r=x[i];n[r]=t.getParameter(t[r])}function o(n){if(t.getExtension){var i=t.getExtension(n);i||(i=t.getExtension("MOZ_"+n)),i||(i=t.getExtension("WEBKIT_"+n)),e[n]=i}}this.getExtension=function(t){return t in e||o(t),e[t]},this.getParameter=function(t){return n[t]}},w=256,S=1024,T=16384,M=0,A=1,C=2,I=3,E=4,k=5,L=6,D=35040,P=35044,R=35048,O=1028,N=1029,F=1032,B=2304,z=2305,G=5120,V=5121,j=5122,H=5123,W=5124,U=5125,q=5126,X=6402,Y=6406,Z=6407,$=6408,K=6409,J=6410,Q=9728,tt=9729,et=9984,nt=9985,it=9986,rt=9987,ot=3553,at=34067,st=10497,lt=33071,ht=33648,ct=36160,ut=36161,dt=34041,pt=36064,ft=36096,gt=36128,mt=33306;const vt={get:function(t){var e=new XMLHttpRequest;e.open("get",t.url),e.responseType=t.responseType||"text",t.onprogress&&(e.onprogress=function(e){if(e.lengthComputable){var n=e.loaded/e.total;t.onprogress(n,e.loaded,e.total)}else t.onprogress(null)}),e.onload=function(n){e.status>=400?t.onerror&&t.onerror():t.onload&&t.onload(e.response)},t.onerror&&(e.onerror=t.onerror),e.send(null)}};var yt,_t={supportWebGL:function(){if(null==yt)try{var t=document.createElement("canvas");if(!(t.getContext("webgl")||t.getContext("experimental-webgl")))throw new Error}catch(Jh){yt=!1}return yt}};_t.Int8Array="undefined"==typeof Int8Array?Array:Int8Array,_t.Uint8Array="undefined"==typeof Uint8Array?Array:Uint8Array,_t.Uint16Array="undefined"==typeof Uint16Array?Array:Uint16Array,_t.Uint32Array="undefined"==typeof Uint32Array?Array:Uint32Array,_t.Int16Array="undefined"==typeof Int16Array?Array:Int16Array,_t.Float32Array="undefined"==typeof Float32Array?Array:Float32Array,_t.Float64Array="undefined"==typeof Float64Array?Array:Float64Array;var xt={};"undefined"!=typeof window?xt=window:void 0!==n.g&&(xt=n.g),_t.requestAnimationFrame=xt.requestAnimationFrame||xt.msRequestAnimationFrame||xt.mozRequestAnimationFrame||xt.webkitRequestAnimationFrame||function(t){setTimeout(t,16)},_t.createCanvas=function(){return document.createElement("canvas")},_t.createImage=function(){return new xt.Image},_t.request={get:vt.get},_t.addEventListener=function(t,e,n,i){t.addEventListener(e,n,i)},_t.removeEventListener=function(t,e,n){t.removeEventListener(e,n)};const bt=_t;var wt=function(){this.head=null,this.tail=null,this._length=0};wt.prototype.insert=function(t){var e=new wt.Entry(t);return this.insertEntry(e),e},wt.prototype.insertAt=function(t,e){if(!(t<0)){for(var n=this.head,i=0;n&&i!=t;)n=n.next,i++;if(n){var r=new wt.Entry(e),o=n.prev;o?(o.next=r,r.prev=o):this.head=r,r.next=n,n.prev=r}else this.insert(e)}},wt.prototype.insertBeforeEntry=function(t,e){var n=new wt.Entry(t),i=e.prev;i?(i.next=n,n.prev=i):this.head=n,n.next=e,e.prev=n,this._length++},wt.prototype.insertEntry=function(t){this.head?(this.tail.next=t,t.prev=this.tail,this.tail=t):this.head=this.tail=t,this._length++},wt.prototype.remove=function(t){var e=t.prev,n=t.next;e?e.next=n:this.head=n,n?n.prev=e:this.tail=e,t.next=t.prev=null,this._length--},wt.prototype.removeAt=function(t){if(!(t<0)){for(var e=this.head,n=0;e&&n!=t;)e=e.next,n++;return e?(this.remove(e),e.value):void 0}},wt.prototype.getHead=function(){if(this.head)return this.head.value},wt.prototype.getTail=function(){if(this.tail)return this.tail.value},wt.prototype.getAt=function(t){if(!(t<0)){for(var e=this.head,n=0;e&&n!=t;)e=e.next,n++;return e.value}},wt.prototype.indexOf=function(t){for(var e=this.head,n=0;e;){if(e.value===t)return n;e=e.next,n++}},wt.prototype.length=function(){return this._length},wt.prototype.isEmpty=function(){return 0===this._length},wt.prototype.forEach=function(t,e){for(var n=this.head,i=0,r=void 0!==e;n;)r?t.call(e,n.value,i):t(n.value,i),n=n.next,i++},wt.prototype.clear=function(){this.tail=this.head=null,this._length=0},wt.Entry=function(t){this.value=t,this.next=null,this.prev=null};const St=wt;var Tt=function(t){this._list=new St,this._map={},this._maxSize=t||10};Tt.prototype.setMaxSize=function(t){this._maxSize=t},Tt.prototype.put=function(t,e){if(!this._map.hasOwnProperty(t)){var n=this._list.length();if(n>=this._maxSize&&n>0){var i=this._list.head;this._list.remove(i),delete this._map[i.key]}var r=this._list.insert(e);r.key=t,this._map[t]=r}},Tt.prototype.get=function(t){var e=this._map[t];if(this._map.hasOwnProperty(t))return e!==this._list.tail&&(this._list.remove(e),this._list.insertEntry(e)),e.value},Tt.prototype.remove=function(t){var e=this._map[t];void 0!==e&&(delete this._map[t],this._list.remove(e))},Tt.prototype.clear=function(){this._list.clear(),this._map={}};const Mt=Tt;var At={},Ct={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 It(t){return(t=Math.round(t))<0?0:t>255?255:t}function Et(t){return t<0?0:t>1?1:t}function kt(t){return t.length&&"%"===t.charAt(t.length-1)?It(parseFloat(t)/100*255):It(parseInt(t,10))}function Lt(t){return t.length&&"%"===t.charAt(t.length-1)?Et(parseFloat(t)/100):Et(parseFloat(t))}function Dt(t,e,n){return n<0?n+=1:n>1&&(n-=1),6*n<1?t+(e-t)*n*6:2*n<1?e:3*n<2?t+(e-t)*(2/3-n)*6:t}function Pt(t,e,n){return t+(e-t)*n}function Rt(t,e,n,i,r){return t[0]=e,t[1]=n,t[2]=i,t[3]=r,t}function Ot(t,e){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3],t}var Nt=new Mt(20),Ft=null;function Bt(t,e){Ft&&Ot(Ft,e),Ft=Nt.put(t,Ft||e.slice())}function zt(t,e){var n=(parseFloat(t[0])%360+360)%360/360,i=Lt(t[1]),r=Lt(t[2]),o=r<=.5?r*(i+1):r+i-r*i,a=2*r-o;return Rt(e=e||[],It(255*Dt(a,o,n+1/3)),It(255*Dt(a,o,n)),It(255*Dt(a,o,n-1/3)),1),4===t.length&&(e[3]=t[3]),e}At.parse=function(t,e){if(t){e=e||[];var n=Nt.get(t);if(n)return Ot(e,n);var i,r=(t+="").replace(/ /g,"").toLowerCase();if(r in Ct)return Ot(e,Ct[r]),Bt(t,e),e;if("#"===r.charAt(0))return 4===r.length?(i=parseInt(r.substr(1),16))>=0&&i<=4095?(Rt(e,(3840&i)>>4|(3840&i)>>8,240&i|(240&i)>>4,15&i|(15&i)<<4,1),Bt(t,e),e):void Rt(e,0,0,0,1):7===r.length?(i=parseInt(r.substr(1),16))>=0&&i<=16777215?(Rt(e,(16711680&i)>>16,(65280&i)>>8,255&i,1),Bt(t,e),e):void Rt(e,0,0,0,1):void 0;var o=r.indexOf("("),a=r.indexOf(")");if(-1!==o&&a+1===r.length){var s=r.substr(0,o),l=r.substr(o+1,a-(o+1)).split(","),h=1;switch(s){case"rgba":if(4!==l.length)return void Rt(e,0,0,0,1);h=Lt(l.pop());case"rgb":return 3!==l.length?void Rt(e,0,0,0,1):(Rt(e,kt(l[0]),kt(l[1]),kt(l[2]),h),Bt(t,e),e);case"hsla":return 4!==l.length?void Rt(e,0,0,0,1):(l[3]=Lt(l[3]),zt(l,e),Bt(t,e),e);case"hsl":return 3!==l.length?void Rt(e,0,0,0,1):(zt(l,e),Bt(t,e),e);default:return}}Rt(e,0,0,0,1)}},At.parseToFloat=function(t,e){if(e=At.parse(t,e))return e[0]/=255,e[1]/=255,e[2]/=255,e},At.lift=function(t,e){var n=At.parse(t);if(n){for(var i=0;i<3;i++)n[i]=e<0?n[i]*(1-e)|0:(255-n[i])*e+n[i]|0;return At.stringify(n,4===n.length?"rgba":"rgb")}},At.toHex=function(t){var e=At.parse(t);if(e)return((1<<24)+(e[0]<<16)+(e[1]<<8)+ +e[2]).toString(16).slice(1)},At.fastLerp=function(t,e,n){if(e&&e.length&&t>=0&&t<=1){n=n||[];var i=t*(e.length-1),r=Math.floor(i),o=Math.ceil(i),a=e[r],s=e[o],l=i-r;return n[0]=It(Pt(a[0],s[0],l)),n[1]=It(Pt(a[1],s[1],l)),n[2]=It(Pt(a[2],s[2],l)),n[3]=Et(Pt(a[3],s[3],l)),n}},At.fastMapToColor=At.fastLerp,At.lerp=function(t,e,n){if(e&&e.length&&t>=0&&t<=1){var i=t*(e.length-1),r=Math.floor(i),o=Math.ceil(i),a=At.parse(e[r]),s=At.parse(e[o]),l=i-r,h=At.stringify([It(Pt(a[0],s[0],l)),It(Pt(a[1],s[1],l)),It(Pt(a[2],s[2],l)),Et(Pt(a[3],s[3],l))],"rgba");return n?{color:h,leftIndex:r,rightIndex:o,value:i}:h}},At.mapToColor=At.lerp,At.modifyHSL=function(t,e,n,i){if(t=At.parse(t))return t=function(t){if(t){var e,n,i=t[0]/255,r=t[1]/255,o=t[2]/255,a=Math.min(i,r,o),s=Math.max(i,r,o),l=s-a,h=(s+a)/2;if(0===l)e=0,n=0;else{n=h<.5?l/(s+a):l/(2-s-a);var c=((s-i)/6+l/2)/l,u=((s-r)/6+l/2)/l,d=((s-o)/6+l/2)/l;i===s?e=d-u:r===s?e=1/3+c-d:o===s&&(e=2/3+u-c),e<0&&(e+=1),e>1&&(e-=1)}var p=[360*e,n,h];return null!=t[3]&&p.push(t[3]),p}}(t),null!=e&&(t[0]=(r=e,(r=Math.round(r))<0?0:r>360?360:r)),null!=n&&(t[1]=Lt(n)),null!=i&&(t[2]=Lt(i)),At.stringify(zt(t),"rgba");var r},At.modifyAlpha=function(t,e){if((t=At.parse(t))&&null!=e)return t[3]=Et(e),At.stringify(t,"rgba")},At.stringify=function(t,e){if(t&&t.length){var n=t[0]+","+t[1]+","+t[2];return"rgba"!==e&&"hsva"!==e&&"hsla"!==e||(n+=","+t[3]),e+"("+n+")"}};var Gt=At.parseToFloat,Vt={};function jt(t){var e=Object.keys(t);e.sort();for(var n=[],i=0;i<e.length;i++){var r=e[i],o=t[r];null===o?n.push(r):n.push(r+" "+o.toString())}return n.join("\n")}const Ht=y.extend((function(){return{name:"",depthTest:!0,depthMask:!0,transparent:!1,blend:null,autoUpdateTextureStatus:!0,uniforms:{},vertexDefines:{},fragmentDefines:{},_textureStatus:{},_enabledUniforms:null}}),(function(){this.name||(this.name="MATERIAL_"+this.__uid__),this.shader&&this.attachShader(this.shader,!0)}),{precision:"highp",setUniform:function(t,e){void 0===e&&console.warn('Uniform value "'+t+'" is undefined');var n=this.uniforms[t];n&&("string"==typeof e&&(e=Gt(e)||e),n.value=e,this.autoUpdateTextureStatus&&"t"===n.type&&(e?this.enableTexture(t):this.disableTexture(t)))},setUniforms:function(t){for(var e in t){var n=t[e];this.setUniform(e,n)}},isUniformEnabled:function(t){return this._enabledUniforms.indexOf(t)>=0},getEnabledUniforms:function(){return this._enabledUniforms},getTextureUniforms:function(){return this._textureUniforms},set:function(t,e){if("object"==typeof t)for(var n in t){var i=t[n];this.setUniform(n,i)}else this.setUniform(t,e)},get:function(t){var e=this.uniforms[t];if(e)return e.value},attachShader:function(t,e){var n=this.uniforms;this.uniforms=t.createUniforms(),this.shader=t;var i=this.uniforms;this._enabledUniforms=Object.keys(i),this._enabledUniforms.sort(),this._textureUniforms=this._enabledUniforms.filter((function(t){var e=this.uniforms[t].type;return"t"===e||"tv"===e}),this);var r=this.vertexDefines,o=this.fragmentDefines;if(this.vertexDefines=m.clone(t.vertexDefines),this.fragmentDefines=m.clone(t.fragmentDefines),e){for(var a in n)i[a]&&(i[a].value=n[a].value);m.defaults(this.vertexDefines,r),m.defaults(this.fragmentDefines,o)}var s={};for(var l in t.textures)s[l]={shaderType:t.textures[l].shaderType,type:t.textures[l].type,enabled:!(!e||!this._textureStatus[l])&&this._textureStatus[l].enabled};this._textureStatus=s,this._programKey=""},clone:function(){var t=new this.constructor({name:this.name,shader:this.shader});for(var e in this.uniforms)t.uniforms[e].value=this.uniforms[e].value;return t.depthTest=this.depthTest,t.depthMask=this.depthMask,t.transparent=this.transparent,t.blend=this.blend,t.vertexDefines=m.clone(this.vertexDefines),t.fragmentDefines=m.clone(this.fragmentDefines),t.enableTexture(this.getEnabledTextures()),t.precision=this.precision,t},define:function(t,e,n){var i=this.vertexDefines,r=this.fragmentDefines;"vertex"!==t&&"fragment"!==t&&"both"!==t&&arguments.length<3&&(n=e,e=t,t="both"),n=null!=n?n:null,"vertex"!==t&&"both"!==t||i[e]!==n&&(i[e]=n,this._programKey=""),"fragment"!==t&&"both"!==t||r[e]!==n&&(r[e]=n,"both"!==t&&(this._programKey=""))},undefine:function(t,e){"vertex"!==t&&"fragment"!==t&&"both"!==t&&arguments.length<2&&(e=t,t="both"),"vertex"!==t&&"both"!==t||this.isDefined("vertex",e)&&(delete this.vertexDefines[e],this._programKey=""),"fragment"!==t&&"both"!==t||this.isDefined("fragment",e)&&(delete this.fragmentDefines[e],"both"!==t&&(this._programKey=""))},isDefined:function(t,e){switch(t){case"vertex":return void 0!==this.vertexDefines[e];case"fragment":return void 0!==this.fragmentDefines[e]}},getDefine:function(t,e){switch(t){case"vertex":return this.vertexDefines[e];case"fragment":return this.fragmentDefines[e]}},enableTexture:function(t){if(Array.isArray(t))for(var e=0;e<t.length;e++)this.enableTexture(t[e]);else{var n=this._textureStatus[t];if(n)n.enabled||(n.enabled=!0,this._programKey="")}},enableTexturesAll:function(){var t=this._textureStatus;for(var e in t)t[e].enabled=!0;this._programKey=""},disableTexture:function(t){if(Array.isArray(t))for(var e=0;e<t.length;e++)this.disableTexture(t[e]);else{var n=this._textureStatus[t];if(n)!n.enabled||(n.enabled=!1,this._programKey="")}},disableTexturesAll:function(){var t=this._textureStatus;for(var e in t)t[e].enabled=!1;this._programKey=""},isTextureEnabled:function(t){var e=this._textureStatus;return!!e[t]&&e[t].enabled},getEnabledTextures:function(){var t=[],e=this._textureStatus;for(var n in e)e[n].enabled&&t.push(n);return t},dirtyDefines:function(){this._programKey=""},getProgramKey:function(){return this._programKey||(this._programKey=function(t,e,n){n.sort();for(var i=[],r=0;r<n.length;r++){var o=n[r];i.push(o)}var a=jt(t)+"\n"+jt(e)+"\n"+i.join("\n");if(Vt[a])return Vt[a];var s=m.genGUID();return Vt[a]=s,s}(this.vertexDefines,this.fragmentDefines,this.getEnabledTextures())),this._programKey}});var Wt,Ut=1e-6,qt=Array,Xt=Math.random,Yt={};Yt.create=function(){var t=new qt(2);return t[0]=0,t[1]=0,t},Yt.clone=function(t){var e=new qt(2);return e[0]=t[0],e[1]=t[1],e},Yt.fromValues=function(t,e){var n=new qt(2);return n[0]=t,n[1]=e,n},Yt.copy=function(t,e){return t[0]=e[0],t[1]=e[1],t},Yt.set=function(t,e,n){return t[0]=e,t[1]=n,t},Yt.add=function(t,e,n){return t[0]=e[0]+n[0],t[1]=e[1]+n[1],t},Yt.subtract=function(t,e,n){return t[0]=e[0]-n[0],t[1]=e[1]-n[1],t},Yt.sub=Yt.subtract,Yt.multiply=function(t,e,n){return t[0]=e[0]*n[0],t[1]=e[1]*n[1],t},Yt.mul=Yt.multiply,Yt.divide=function(t,e,n){return t[0]=e[0]/n[0],t[1]=e[1]/n[1],t},Yt.div=Yt.divide,Yt.min=function(t,e,n){return t[0]=Math.min(e[0],n[0]),t[1]=Math.min(e[1],n[1]),t},Yt.max=function(t,e,n){return t[0]=Math.max(e[0],n[0]),t[1]=Math.max(e[1],n[1]),t},Yt.scale=function(t,e,n){return t[0]=e[0]*n,t[1]=e[1]*n,t},Yt.scaleAndAdd=function(t,e,n,i){return t[0]=e[0]+n[0]*i,t[1]=e[1]+n[1]*i,t},Yt.distance=function(t,e){var n=e[0]-t[0],i=e[1]-t[1];return Math.sqrt(n*n+i*i)},Yt.dist=Yt.distance,Yt.squaredDistance=function(t,e){var n=e[0]-t[0],i=e[1]-t[1];return n*n+i*i},Yt.sqrDist=Yt.squaredDistance,Yt.length=function(t){var e=t[0],n=t[1];return Math.sqrt(e*e+n*n)},Yt.len=Yt.length,Yt.squaredLength=function(t){var e=t[0],n=t[1];return e*e+n*n},Yt.sqrLen=Yt.squaredLength,Yt.negate=function(t,e){return t[0]=-e[0],t[1]=-e[1],t},Yt.inverse=function(t,e){return t[0]=1/e[0],t[1]=1/e[1],t},Yt.normalize=function(t,e){var n=e[0],i=e[1],r=n*n+i*i;return r>0&&(r=1/Math.sqrt(r),t[0]=e[0]*r,t[1]=e[1]*r),t},Yt.dot=function(t,e){return t[0]*e[0]+t[1]*e[1]},Yt.cross=function(t,e,n){var i=e[0]*n[1]-e[1]*n[0];return t[0]=t[1]=0,t[2]=i,t},Yt.lerp=function(t,e,n,i){var r=e[0],o=e[1];return t[0]=r+i*(n[0]-r),t[1]=o+i*(n[1]-o),t},Yt.random=function(t,e){e=e||1;var n=2*GLMAT_RANDOM()*Math.PI;return t[0]=Math.cos(n)*e,t[1]=Math.sin(n)*e,t},Yt.transformMat2=function(t,e,n){var i=e[0],r=e[1];return t[0]=n[0]*i+n[2]*r,t[1]=n[1]*i+n[3]*r,t},Yt.transformMat2d=function(t,e,n){var i=e[0],r=e[1];return t[0]=n[0]*i+n[2]*r+n[4],t[1]=n[1]*i+n[3]*r+n[5],t},Yt.transformMat3=function(t,e,n){var i=e[0],r=e[1];return t[0]=n[0]*i+n[3]*r+n[6],t[1]=n[1]*i+n[4]*r+n[7],t},Yt.transformMat4=function(t,e,n){var i=e[0],r=e[1];return t[0]=n[0]*i+n[4]*r+n[12],t[1]=n[1]*i+n[5]*r+n[13],t},Yt.forEach=(Wt=Yt.create(),function(t,e,n,i,r,o){var a,s;for(e||(e=2),n||(n=0),s=i?Math.min(i*e+n,t.length):t.length,a=n;a<s;a+=e)Wt[0]=t[a],Wt[1]=t[a+1],r(Wt,Wt,o),t[a]=Wt[0],t[a+1]=Wt[1];return t});const Zt=Yt;var $t=function(t,e){t=t||0,e=e||0,this.array=Zt.fromValues(t,e),this._dirty=!0};if($t.prototype={constructor:$t,add:function(t){return Zt.add(this.array,this.array,t.array),this._dirty=!0,this},set:function(t,e){return this.array[0]=t,this.array[1]=e,this._dirty=!0,this},setArray:function(t){return this.array[0]=t[0],this.array[1]=t[1],this._dirty=!0,this},clone:function(){return new $t(this.x,this.y)},copy:function(t){return Zt.copy(this.array,t.array),this._dirty=!0,this},cross:function(t,e){return Zt.cross(t.array,this.array,e.array),t._dirty=!0,this},dist:function(t){return Zt.dist(this.array,t.array)},distance:function(t){return Zt.distance(this.array,t.array)},div:function(t){return Zt.div(this.array,this.array,t.array),this._dirty=!0,this},divide:function(t){return Zt.divide(this.array,this.array,t.array),this._dirty=!0,this},dot:function(t){return Zt.dot(this.array,t.array)},len:function(){return Zt.len(this.array)},length:function(){return Zt.length(this.array)},lerp:function(t,e,n){return Zt.lerp(this.array,t.array,e.array,n),this._dirty=!0,this},min:function(t){return Zt.min(this.array,this.array,t.array),this._dirty=!0,this},max:function(t){return Zt.max(this.array,this.array,t.array),this._dirty=!0,this},mul:function(t){return Zt.mul(this.array,this.array,t.array),this._dirty=!0,this},multiply:function(t){return Zt.multiply(this.array,this.array,t.array),this._dirty=!0,this},negate:function(){return Zt.negate(this.array,this.array),this._dirty=!0,this},normalize:function(){return Zt.normalize(this.array,this.array),this._dirty=!0,this},random:function(t){return Zt.random(this.array,t),this._dirty=!0,this},scale:function(t){return Zt.scale(this.array,this.array,t),this._dirty=!0,this},scaleAndAdd:function(t,e){return Zt.scaleAndAdd(this.array,this.array,t.array,e),this._dirty=!0,this},sqrDist:function(t){return Zt.sqrDist(this.array,t.array)},squaredDistance:function(t){return Zt.squaredDistance(this.array,t.array)},sqrLen:function(){return Zt.sqrLen(this.array)},squaredLength:function(){return Zt.squaredLength(this.array)},sub:function(t){return Zt.sub(this.array,this.array,t.array),this._dirty=!0,this},subtract:function(t){return Zt.subtract(this.array,this.array,t.array),this._dirty=!0,this},transformMat2:function(t){return Zt.transformMat2(this.array,this.array,t.array),this._dirty=!0,this},transformMat2d:function(t){return Zt.transformMat2d(this.array,this.array,t.array),this._dirty=!0,this},transformMat3:function(t){return Zt.transformMat3(this.array,this.array,t.array),this._dirty=!0,this},transformMat4:function(t){return Zt.transformMat4(this.array,this.array,t.array),this._dirty=!0,this},toString:function(){return"["+Array.prototype.join.call(this.array,",")+"]"},toArray:function(){return Array.prototype.slice.call(this.array)}},Object.defineProperty){var Kt=$t.prototype;Object.defineProperty(Kt,"x",{get:function(){return this.array[0]},set:function(t){this.array[0]=t,this._dirty=!0}}),Object.defineProperty(Kt,"y",{get:function(){return this.array[1]},set:function(t){this.array[1]=t,this._dirty=!0}})}$t.add=function(t,e,n){return Zt.add(t.array,e.array,n.array),t._dirty=!0,t},$t.set=function(t,e,n){return Zt.set(t.array,e,n),t._dirty=!0,t},$t.copy=function(t,e){return Zt.copy(t.array,e.array),t._dirty=!0,t},$t.cross=function(t,e,n){return Zt.cross(t.array,e.array,n.array),t._dirty=!0,t},$t.distance=$t.dist=function(t,e){return Zt.distance(t.array,e.array)},$t.divide=$t.div=function(t,e,n){return Zt.divide(t.array,e.array,n.array),t._dirty=!0,t},$t.dot=function(t,e){return Zt.dot(t.array,e.array)},$t.len=function(t){return Zt.length(t.array)},$t.lerp=function(t,e,n,i){return Zt.lerp(t.array,e.array,n.array,i),t._dirty=!0,t},$t.min=function(t,e,n){return Zt.min(t.array,e.array,n.array),t._dirty=!0,t},$t.max=function(t,e,n){return Zt.max(t.array,e.array,n.array),t._dirty=!0,t},$t.multiply=$t.mul=function(t,e,n){return Zt.multiply(t.array,e.array,n.array),t._dirty=!0,t},$t.negate=function(t,e){return Zt.negate(t.array,e.array),t._dirty=!0,t},$t.normalize=function(t,e){return Zt.normalize(t.array,e.array),t._dirty=!0,t},$t.random=function(t,e){return Zt.random(t.array,e),t._dirty=!0,t},$t.scale=function(t,e,n){return Zt.scale(t.array,e.array,n),t._dirty=!0,t},$t.scaleAndAdd=function(t,e,n,i){return Zt.scaleAndAdd(t.array,e.array,n.array,i),t._dirty=!0,t},$t.squaredDistance=$t.sqrDist=function(t,e){return Zt.sqrDist(t.array,e.array)},$t.squaredLength=$t.sqrLen=function(t){return Zt.sqrLen(t.array)},$t.subtract=$t.sub=function(t,e,n){return Zt.subtract(t.array,e.array,n.array),t._dirty=!0,t},$t.transformMat2=function(t,e,n){return Zt.transformMat2(t.array,e.array,n.array),t._dirty=!0,t},$t.transformMat2d=function(t,e,n){return Zt.transformMat2d(t.array,e.array,n.array),t._dirty=!0,t},$t.transformMat3=function(t,e,n){return Zt.transformMat3(t.array,e.array,n.array),t._dirty=!0,t},$t.transformMat4=function(t,e,n){return Zt.transformMat4(t.array,e.array,n.array),t._dirty=!0,t};const Jt=$t;var Qt={};function te(t){for(var e=t.split("\n"),n=0,i=e.length;n<i;n++)e[n]=n+1+": "+e[n];return e.join("\n")}function ee(t,e,n){if(!t.getShaderParameter(e,t.COMPILE_STATUS))return[t.getShaderInfoLog(e),te(n)].join("\n")}var ne=new bt.Float32Array(16);const ie=y.extend({uniformSemantics:{},attributes:{}},(function(){this._locations={},this._textureSlot=0,this._program=null}),{bind:function(t){this._textureSlot=0,t.gl.useProgram(this._program)},hasUniform:function(t){var e=this._locations[t];return null!=e},useTextureSlot:function(t,e,n){e&&(t.gl.activeTexture(t.gl.TEXTURE0+n),e.isRenderable()?e.bind(t):e.unbind(t))},currentTextureSlot:function(){return this._textureSlot},resetTextureSlot:function(t){this._textureSlot=t||0},takeCurrentTextureSlot:function(t,e){var n=this._textureSlot;return this.useTextureSlot(t,e,n),this._textureSlot++,n},setUniform:function(t,e,n,i){var r=this._locations[n];if(null==r)return!1;switch(e){case"m4":if(!(i instanceof Float32Array)){for(var o=0;o<i.length;o++)ne[o]=i[o];i=ne}t.uniformMatrix4fv(r,!1,i);break;case"2i":t.uniform2i(r,i[0],i[1]);break;case"2f":t.uniform2f(r,i[0],i[1]);break;case"3i":t.uniform3i(r,i[0],i[1],i[2]);break;case"3f":t.uniform3f(r,i[0],i[1],i[2]);break;case"4i":t.uniform4i(r,i[0],i[1],i[2],i[3]);break;case"4f":t.uniform4f(r,i[0],i[1],i[2],i[3]);break;case"1i":t.uniform1i(r,i);break;case"1f":t.uniform1f(r,i);break;case"1fv":t.uniform1fv(r,i);break;case"1iv":t.uniform1iv(r,i);break;case"2iv":t.uniform2iv(r,i);break;case"2fv":t.uniform2fv(r,i);break;case"3iv":t.uniform3iv(r,i);break;case"3fv":t.uniform3fv(r,i);break;case"4iv":t.uniform4iv(r,i);break;case"4fv":t.uniform4fv(r,i);break;case"m2":case"m2v":t.uniformMatrix2fv(r,!1,i);break;case"m3":case"m3v":t.uniformMatrix3fv(r,!1,i);break;case"m4v":if(Array.isArray(i)&&Array.isArray(i[0])){var a=new bt.Float32Array(16*i.length),s=0;for(o=0;o<i.length;o++)for(var l=i[o],h=0;h<16;h++)a[s++]=l[h];t.uniformMatrix4fv(r,!1,a)}else t.uniformMatrix4fv(r,!1,i)}return!0},setUniformOfSemantic:function(t,e,n){var i=this.uniformSemantics[e];return!!i&&this.setUniform(t,i.type,i.symbol,n)},enableAttributes:function(t,e,n){var i,r=t.gl,o=this._program,a=this._locations;(i=n?n.__enabledAttributeList:Qt[t.__uid__])||(i=n?n.__enabledAttributeList=[]:Qt[t.__uid__]=[]);for(var s=[],l=0;l<e.length;l++){var h=e[l];if(this.attributes[h]){var c=a[h];if(null==c){if(-1===(c=r.getAttribLocation(o,h))){s[l]=-1;continue}a[h]=c}s[l]=c,i[c]?i[c]=2:i[c]=1}else s[l]=-1}for(l=0;l<i.length;l++)switch(i[l]){case 1:r.enableVertexAttribArray(l),i[l]=3;break;case 2:i[l]=3;break;case 3:r.disableVertexAttribArray(l),i[l]=0}return s},getAttribLocation:function(t,e){var n=this._locations,i=n[e];return null==i&&(i=t.getAttribLocation(this._program,e),n[e]=i),i},buildProgram:function(t,e,n,i){var r=t.createShader(t.VERTEX_SHADER),o=t.createProgram();t.shaderSource(r,n),t.compileShader(r);var a=t.createShader(t.FRAGMENT_SHADER);t.shaderSource(a,i),t.compileShader(a);var s=ee(t,r,n);if(s)return s;if(s=ee(t,a,i))return s;if(t.attachShader(o,r),t.attachShader(o,a),e.attributeSemantics.POSITION)t.bindAttribLocation(o,0,e.attributeSemantics.POSITION.symbol);else{var l=Object.keys(this.attributes);t.bindAttribLocation(o,0,l[0])}if(t.linkProgram(o),t.deleteShader(r),t.deleteShader(a),this._program=o,this.vertexCode=n,this.fragmentCode=i,!t.getProgramParameter(o,t.LINK_STATUS))return"Could not link program\n"+t.getProgramInfoLog(o);for(var h=0;h<e.uniforms.length;h++){var c=e.uniforms[h];this._locations[c]=t.getUniformLocation(o,c)}}});var re=/for\s*?\(int\s*?_idx_\s*\=\s*([\w-]+)\;\s*_idx_\s*<\s*([\w-]+);\s*_idx_\s*\+\+\s*\)\s*\{\{([\s\S]+?)(?=\}\})\}\}/g;function oe(t,e,n){var i={};for(var r in n)i[r+"_COUNT"]=n[r];return t.replace(re,(function(t,n,r,o){var a="";isNaN(n)&&(n=n in e?e[n]:i[n]),isNaN(r)&&(r=r in e?e[r]:i[r]);for(var s=parseInt(n);s<parseInt(r);s++)a+="{"+o.replace(/float\s*\(\s*_idx_\s*\)/g,s.toFixed(1)).replace(/_idx_/g,s)+"}";return a}))}function ae(t,e,n){var i=[];if(e)for(var r in e){var o=e[r];o>0&&i.push("#define "+r.toUpperCase()+"_COUNT "+o)}if(n)for(var a=0;a<n.length;a++){var s=n[a];i.push("#define "+s.toUpperCase()+"_ENABLED")}for(var s in t){var l=t[s];null===l?i.push("#define "+s):i.push("#define "+s+" "+l.toString())}return i.join("\n")}function se(t){this._renderer=t,this._cache={}}se.prototype.getProgram=function(t,e,n){var i=this._cache,r=t.isSkinnedMesh&&t.isSkinnedMesh(),o=t.isInstancedMesh&&t.isInstancedMesh(),a="s"+e.shader.shaderID+"m"+e.getProgramKey();if(n&&(a+="se"+n.getProgramKey(t.lightGroup)),r&&(a+=",sk"+t.joints.length),o&&(a+=",is"),y=i[a])return y;var s=n?n.getLightsNumbers(t.lightGroup):{},l=this._renderer,h=l.gl,c=e.getEnabledTextures(),u="";if(r){var d={SKINNING:null,JOINT_COUNT:t.joints.length};t.joints.length>l.getMaxJointNumber()&&(d.USE_SKIN_MATRICES_TEXTURE=null),u+="\n"+ae(d)+"\n"}o&&(u+="\n#define INSTANCING\n");var p=u+ae(e.vertexDefines,s,c),f=u+ae(e.fragmentDefines,s,c),g=p+"\n"+e.shader.vertex,m=["OES_standard_derivatives","EXT_shader_texture_lod"].filter((function(t){return null!=l.getGLExtension(t)}));m.indexOf("EXT_shader_texture_lod")>=0&&(f+="\n#define SUPPORT_TEXTURE_LOD"),m.indexOf("OES_standard_derivatives")>=0&&(f+="\n#define SUPPORT_STANDARD_DERIVATIVES");var v,y,_=function(t){for(var e=[],n=0;n<t.length;n++)e.push("#extension GL_"+t[n]+" : enable");return e.join("\n")}(m)+"\n"+(["precision",v=e.precision,"float"].join(" ")+";\n"+["precision",v,"int"].join(" ")+";\n"+["precision",v,"sampler2D"].join(" ")+";\n\n")+f+"\n"+e.shader.fragment,x=oe(g,e.vertexDefines,s),b=oe(_,e.fragmentDefines,s);(y=new ie).uniformSemantics=e.shader.uniformSemantics,y.attributes=e.shader.attributes;var w=y.buildProgram(h,e.shader,x,b);return y.__error=w,i[a]=y,y};const le=se;var he=/uniform\s+(bool|float|int|vec2|vec3|vec4|ivec2|ivec3|ivec4|mat2|mat3|mat4|sampler2D|samplerCube)\s+([\s\S]*?);/g,ce=/attribute\s+(float|int|vec2|vec3|vec4)\s+([\s\S]*?);/g,ue=/#define\s+(\w+)?(\s+[\d-.]+)?\s*;?\s*\n/g,de={bool:"1i",int:"1i",sampler2D:"t",samplerCube:"t",float:"1f",vec2:"2f",vec3:"3f",vec4:"4f",ivec2:"2i",ivec3:"3i",ivec4:"4i",mat2:"m2",mat3:"m3",mat4:"m4"};function pe(t){for(var e=[],n=0;n<t;n++)e[n]=0;return e}var fe={bool:function(){return!0},int:function(){return 0},float:function(){return 0},sampler2D:function(){return null},samplerCube:function(){return null},vec2:function(){return pe(2)},vec3:function(){return pe(3)},vec4:function(){return pe(4)},ivec2:function(){return pe(2)},ivec3:function(){return pe(3)},ivec4:function(){return pe(4)},mat2:function(){return pe(4)},mat3:function(){return pe(9)},mat4:function(){return pe(16)},array:function(){return[]}},ge=["POSITION","NORMAL","BINORMAL","TANGENT","TEXCOORD","TEXCOORD_0","TEXCOORD_1","COLOR","JOINT","WEIGHT"],me=["SKIN_MATRIX","VIEWPORT_SIZE","VIEWPORT","DEVICEPIXELRATIO","WINDOW_SIZE","NEAR","FAR","TIME"],ve=["WORLD","VIEW","PROJECTION","WORLDVIEW","VIEWPROJECTION","WORLDVIEWPROJECTION","WORLDINVERSE","VIEWINVERSE","PROJECTIONINVERSE","WORLDVIEWINVERSE","VIEWPROJECTIONINVERSE","WORLDVIEWPROJECTIONINVERSE","WORLDTRANSPOSE","VIEWTRANSPOSE","PROJECTIONTRANSPOSE","WORLDVIEWTRANSPOSE","VIEWPROJECTIONTRANSPOSE","WORLDVIEWPROJECTIONTRANSPOSE","WORLDINVERSETRANSPOSE","VIEWINVERSETRANSPOSE","PROJECTIONINVERSETRANSPOSE","WORLDVIEWINVERSETRANSPOSE","VIEWPROJECTIONINVERSETRANSPOSE","WORLDVIEWPROJECTIONINVERSETRANSPOSE"],ye={vec4:4,vec3:3,vec2:2,float:1},_e={},xe={};function be(t){return t.replace(/[ \t]*\/\/.*\n/g,"").replace(/[ \t]*\/\*[\s\S]*?\*\//g,"")}function we(){console.error("Wrong uniform/attributes syntax")}function Se(t,e){for(var n=/[,=\(\):]/,i=e.replace(/:\s*\[\s*(.*)\s*\]/g,"="+t+"($1)").replace(/\s+/g,"").split(/(?=[,=\(\):])/g),r=[],o=0;o<i.length;o++)i[o].match(n)?r.push(i[o].charAt(0),i[o].slice(1)):r.push(i[o]);var a,s=0,l={},h=null;function c(t){t||we();var e=t.match(/\[(.*?)\]/);a=t.replace(/\[(.*?)\]/,""),l[a]={},e&&(l[a].isArray=!0,l[a].arraySize=e[1])}c((i=r)[0]);for(o=1;o<i.length;o++){var u=i[o];if(u)if("="!==u)if(":"!==u)if(","!==u)if(")"!==u)if("("!==u)if(u.indexOf("vec")>=0){if(1!==s&&4!==s){we();break}s=2,h=[]}else if(1!==s)if(4!==s)c(u),s=0;else{var d=u;ge.indexOf(d)>=0||me.indexOf(d)>=0||ve.indexOf(d)>=0?l[a].semantic=d:"ignore"===d||"unconfigurable"===d?l[a].ignore=!0:l[a].value="bool"===t?"true"===d:parseFloat(d)}else l[a].value="bool"===t?"true"===u:parseFloat(u),h=null;else{if(2!==s){we();break}if(!(h instanceof Array)){we();break}h.push(+i[++o])}else l[a].value=new bt.Float32Array(h),h=null,s=5;else if(2===s){if(!(h instanceof Array)){we();break}h.push(+i[++o])}else s=5;else s=4;else{if(0!==s&&3!==s){we();break}s=1}}return l}function Te(t,e){"object"==typeof t&&(e=t.fragment,t=t.vertex),t=be(t),e=be(e),this._shaderID=function(t,e){var n="vertex:"+t+"fragment:"+e;if(_e[n])return _e[n];var i=m.genGUID();return _e[n]=i,xe[i]={vertex:t,fragment:e},i}(t,e),this._vertexCode=Te.parseImport(t),this._fragmentCode=Te.parseImport(e),this.attributeSemantics={},this.matrixSemantics={},this.uniformSemantics={},this.matrixSemanticKeys=[],this.uniformTemplates={},this.attributes={},this.textures={},this.vertexDefines={},this.fragmentDefines={},this._parseAttributes(),this._parseUniforms(),this._parseDefines()}Te.prototype={constructor:Te,createUniforms:function(){var t={};for(var e in this.uniformTemplates){var n=this.uniformTemplates[e];t[e]={type:n.type,value:n.value()}}return t},_parseImport:function(){this._vertexCode=Te.parseImport(this.vertex),this._fragmentCode=Te.parseImport(this.fragment)},_addSemanticUniform:function(t,e,n){if(ge.indexOf(n)>=0)this.attributeSemantics[n]={symbol:t,type:e};else if(ve.indexOf(n)>=0){var i=!1,r=n;n.match(/TRANSPOSE$/)&&(i=!0,r=n.slice(0,-9)),this.matrixSemantics[n]={symbol:t,type:e,isTranspose:i,semanticNoTranspose:r}}else me.indexOf(n)>=0&&(this.uniformSemantics[n]={symbol:t,type:e})},_addMaterialUniform:function(t,e,n,i,r,o){o[t]={type:n,value:r?fe.array:i||fe[e],semantic:null}},_parseUniforms:function(){var t={},e=this,n="vertex";function i(t){return null!=t?function(){return t}:null}function r(r,o,a){var s=Se(o,a),l=[];for(var h in s){var c=s[h],u=c.semantic,d=h,p=de[o],f=i(s[h].value);s[h].isArray&&(d+="["+s[h].arraySize+"]",p+="v"),l.push(d),e._uniformList.push(h),c.ignore||("sampler2D"!==o&&"samplerCube"!==o||(e.textures[h]={shaderType:n,type:o}),u?e._addSemanticUniform(h,p,u):e._addMaterialUniform(h,o,p,f,s[h].isArray,t))}return l.length>0?"uniform "+o+" "+l.join(",")+";\n":""}this._uniformList=[],this._vertexCode=this._vertexCode.replace(he,r),n="fragment",this._fragmentCode=this._fragmentCode.replace(he,r),e.matrixSemanticKeys=Object.keys(this.matrixSemantics),this.uniformTemplates=t},_parseAttributes:function(){var t={},e=this;this._vertexCode=this._vertexCode.replace(ce,(function(n,i,r){var o=Se(i,r),a=ye[i]||1,s=[];for(var l in o){var h=o[l].semantic;if(t[l]={type:"float",size:a,semantic:h||null},h){if(ge.indexOf(h)<0)throw new Error('Unkown semantic "'+h+'"');e.attributeSemantics[h]={symbol:l,type:i}}s.push(l)}return"attribute "+i+" "+s.join(",")+";\n"})),this.attributes=t},_parseDefines:function(){var t=this,e="vertex";function n(n,i,r){var o="vertex"===e?t.vertexDefines:t.fragmentDefines;return o[i]||(o[i]="false"!==r&&("true"===r||(r?isNaN(parseFloat(r))?r.trim():parseFloat(r):null))),""}this._vertexCode=this._vertexCode.replace(ue,n),e="fragment",this._fragmentCode=this._fragmentCode.replace(ue,n)},clone:function(){var t=xe[this._shaderID];return new Te(t.vertex,t.fragment)}},Object.defineProperty&&(Object.defineProperty(Te.prototype,"shaderID",{get:function(){return this._shaderID}}),Object.defineProperty(Te.prototype,"vertex",{get:function(){return this._vertexCode}}),Object.defineProperty(Te.prototype,"fragment",{get:function(){return this._fragmentCode}}),Object.defineProperty(Te.prototype,"uniforms",{get:function(){return this._uniformList}}));var Me=/(@import)\s*([0-9a-zA-Z_\-\.]*)/g;Te.parseImport=function(t){return t=t.replace(Me,(function(t,e,n){return(t=Te.source(n))?Te.parseImport(t):(console.error('Shader chunk "'+n+'" not existed in library'),"")}))};var Ae=/(@export)\s*([0-9a-zA-Z_\-\.]*)\s*\n([\s\S]*?)@end/g;Te.import=function(t){t.replace(Ae,(function(t,e,n,i){if(i=i.replace(/(^[\s\t\xa0\u3000]+)|([\u3000\xa0\s\t]+\x24)/g,"")){for(var r,o=n.split("."),a=Te.codes,s=0;s<o.length-1;)a[r=o[s++]]||(a[r]={}),a=a[r];a[r=o[s]]=i}return i}))},Te.codes={},Te.source=function(t){for(var e=t.split("."),n=Te.codes,i=0;n&&i<e.length;){n=n[e[i++]]}return"string"!=typeof n?(console.error('Shader "'+t+'" not existed in library'),""):n};const Ce=Te,Ie="@export clay.prez.vertex\nuniform mat4 WVP : WORLDVIEWPROJECTION;\nattribute vec3 pos : POSITION;\nattribute vec2 uv : TEXCOORD_0;\nuniform vec2 uvRepeat : [1.0, 1.0];\nuniform vec2 uvOffset : [0.0, 0.0];\n@import clay.chunk.skinning_header\n@import clay.chunk.instancing_header\nvarying vec2 v_Texcoord;\nvoid main()\n{\n vec4 P = vec4(pos, 1.0);\n#ifdef SKINNING\n @import clay.chunk.skin_matrix\n P = skinMatrixWS * P;\n#endif\n#ifdef INSTANCING\n @import clay.chunk.instancing_matrix\n P = instanceMat * P;\n#endif\n gl_Position = WVP * P;\n v_Texcoord = uv * uvRepeat + uvOffset;\n}\n@end\n@export clay.prez.fragment\nuniform sampler2D alphaMap;\nuniform float alphaCutoff: 0.0;\nvarying vec2 v_Texcoord;\nvoid main()\n{\n if (alphaCutoff > 0.0) {\n if (texture2D(alphaMap, v_Texcoord).a <= alphaCutoff) {\n discard;\n }\n }\n gl_FragColor = vec4(0.0,0.0,0.0,1.0);\n}\n@end";var Ee={create:function(){var t=new qt(16);return t[0]=1,t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=1,t[6]=0,t[7]=0,t[8]=0,t[9]=0,t[10]=1,t[11]=0,t[12]=0,t[13]=0,t[14]=0,t[15]=1,t},clone:function(t){var e=new qt(16);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[6]=t[6],e[7]=t[7],e[8]=t[8],e[9]=t[9],e[10]=t[10],e[11]=t[11],e[12]=t[12],e[13]=t[13],e[14]=t[14],e[15]=t[15],e},copy:function(t,e){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3],t[4]=e[4],t[5]=e[5],t[6]=e[6],t[7]=e[7],t[8]=e[8],t[9]=e[9],t[10]=e[10],t[11]=e[11],t[12]=e[12],t[13]=e[13],t[14]=e[14],t[15]=e[15],t},identity:function(t){return t[0]=1,t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=1,t[6]=0,t[7]=0,t[8]=0,t[9]=0,t[10]=1,t[11]=0,t[12]=0,t[13]=0,t[14]=0,t[15]=1,t},transpose:function(t,e){if(t===e){var n=e[1],i=e[2],r=e[3],o=e[6],a=e[7],s=e[11];t[1]=e[4],t[2]=e[8],t[3]=e[12],t[4]=n,t[6]=e[9],t[7]=e[13],t[8]=i,t[9]=o,t[11]=e[14],t[12]=r,t[13]=a,t[14]=s}else t[0]=e[0],t[1]=e[4],t[2]=e[8],t[3]=e[12],t[4]=e[1],t[5]=e[5],t[6]=e[9],t[7]=e[13],t[8]=e[2],t[9]=e[6],t[10]=e[10],t[11]=e[14],t[12]=e[3],t[13]=e[7],t[14]=e[11],t[15]=e[15];return t},invert:function(t,e){var n=e[0],i=e[1],r=e[2],o=e[3],a=e[4],s=e[5],l=e[6],h=e[7],c=e[8],u=e[9],d=e[10],p=e[11],f=e[12],g=e[13],m=e[14],v=e[15],y=n*s-i*a,_=n*l-r*a,x=n*h-o*a,b=i*l-r*s,w=i*h-o*s,S=r*h-o*l,T=c*g-u*f,M=c*m-d*f,A=c*v-p*f,C=u*m-d*g,I=u*v-p*g,E=d*v-p*m,k=y*E-_*I+x*C+b*A-w*M+S*T;return k?(k=1/k,t[0]=(s*E-l*I+h*C)*k,t[1]=(r*I-i*E-o*C)*k,t[2]=(g*S-m*w+v*b)*k,t[3]=(d*w-u*S-p*b)*k,t[4]=(l*A-a*E-h*M)*k,t[5]=(n*E-r*A+o*M)*k,t[6]=(m*x-f*S-v*_)*k,t[7]=(c*S-d*x+p*_)*k,t[8]=(a*I-s*A+h*T)*k,t[9]=(i*A-n*I-o*T)*k,t[10]=(f*w-g*x+v*y)*k,t[11]=(u*x-c*w-p*y)*k,t[12]=(s*M-a*C-l*T)*k,t[13]=(n*C-i*M+r*T)*k,t[14]=(g*_-f*b-m*y)*k,t[15]=(c*b-u*_+d*y)*k,t):null},adjoint:function(t,e){var n=e[0],i=e[1],r=e[2],o=e[3],a=e[4],s=e[5],l=e[6],h=e[7],c=e[8],u=e[9],d=e[10],p=e[11],f=e[12],g=e[13],m=e[14],v=e[15];return t[0]=s*(d*v-p*m)-u*(l*v-h*m)+g*(l*p-h*d),t[1]=-(i*(d*v-p*m)-u*(r*v-o*m)+g*(r*p-o*d)),t[2]=i*(l*v-h*m)-s*(r*v-o*m)+g*(r*h-o*l),t[3]=-(i*(l*p-h*d)-s*(r*p-o*d)+u*(r*h-o*l)),t[4]=-(a*(d*v-p*m)-c*(l*v-h*m)+f*(l*p-h*d)),t[5]=n*(d*v-p*m)-c*(r*v-o*m)+f*(r*p-o*d),t[6]=-(n*(l*v-h*m)-a*(r*v-o*m)+f*(r*h-o*l)),t[7]=n*(l*p-h*d)-a*(r*p-o*d)+c*(r*h-o*l),t[8]=a*(u*v-p*g)-c*(s*v-h*g)+f*(s*p-h*u),t[9]=-(n*(u*v-p*g)-c*(i*v-o*g)+f*(i*p-o*u)),t[10]=n*(s*v-h*g)-a*(i*v-o*g)+f*(i*h-o*s),t[11]=-(n*(s*p-h*u)-a*(i*p-o*u)+c*(i*h-o*s)),t[12]=-(a*(u*m-d*g)-c*(s*m-l*g)+f*(s*d-l*u)),t[13]=n*(u*m-d*g)-c*(i*m-r*g)+f*(i*d-r*u),t[14]=-(n*(s*m-l*g)-a*(i*m-r*g)+f*(i*l-r*s)),t[15]=n*(s*d-l*u)-a*(i*d-r*u)+c*(i*l-r*s),t},determinant:function(t){var e=t[0],n=t[1],i=t[2],r=t[3],o=t[4],a=t[5],s=t[6],l=t[7],h=t[8],c=t[9],u=t[10],d=t[11],p=t[12],f=t[13],g=t[14],m=t[15];return(e*a-n*o)*(u*m-d*g)-(e*s-i*o)*(c*m-d*f)+(e*l-r*o)*(c*g-u*f)+(n*s-i*a)*(h*m-d*p)-(n*l-r*a)*(h*g-u*p)+(i*l-r*s)*(h*f-c*p)},multiply:function(t,e,n){var i=e[0],r=e[1],o=e[2],a=e[3],s=e[4],l=e[5],h=e[6],c=e[7],u=e[8],d=e[9],p=e[10],f=e[11],g=e[12],m=e[13],v=e[14],y=e[15],_=n[0],x=n[1],b=n[2],w=n[3];return t[0]=_*i+x*s+b*u+w*g,t[1]=_*r+x*l+b*d+w*m,t[2]=_*o+x*h+b*p+w*v,t[3]=_*a+x*c+b*f+w*y,_=n[4],x=n[5],b=n[6],w=n[7],t[4]=_*i+x*s+b*u+w*g,t[5]=_*r+x*l+b*d+w*m,t[6]=_*o+x*h+b*p+w*v,t[7]=_*a+x*c+b*f+w*y,_=n[8],x=n[9],b=n[10],w=n[11],t[8]=_*i+x*s+b*u+w*g,t[9]=_*r+x*l+b*d+w*m,t[10]=_*o+x*h+b*p+w*v,t[11]=_*a+x*c+b*f+w*y,_=n[12],x=n[13],b=n[14],w=n[15],t[12]=_*i+x*s+b*u+w*g,t[13]=_*r+x*l+b*d+w*m,t[14]=_*o+x*h+b*p+w*v,t[15]=_*a+x*c+b*f+w*y,t},multiplyAffine:function(t,e,n){var i=e[0],r=e[1],o=e[2],a=e[4],s=e[5],l=e[6],h=e[8],c=e[9],u=e[10],d=e[12],p=e[13],f=e[14],g=n[0],m=n[1],v=n[2];return t[0]=g*i+m*a+v*h,t[1]=g*r+m*s+v*c,t[2]=g*o+m*l+v*u,g=n[4],m=n[5],v=n[6],t[4]=g*i+m*a+v*h,t[5]=g*r+m*s+v*c,t[6]=g*o+m*l+v*u,g=n[8],m=n[9],v=n[10],t[8]=g*i+m*a+v*h,t[9]=g*r+m*s+v*c,t[10]=g*o+m*l+v*u,g=n[12],m=n[13],v=n[14],t[12]=g*i+m*a+v*h+d,t[13]=g*r+m*s+v*c+p,t[14]=g*o+m*l+v*u+f,t}};Ee.mul=Ee.multiply,Ee.mulAffine=Ee.multiplyAffine,Ee.translate=function(t,e,n){var i,r,o,a,s,l,h,c,u,d,p,f,g=n[0],m=n[1],v=n[2];return e===t?(t[12]=e[0]*g+e[4]*m+e[8]*v+e[12],t[13]=e[1]*g+e[5]*m+e[9]*v+e[13],t[14]=e[2]*g+e[6]*m+e[10]*v+e[14],t[15]=e[3]*g+e[7]*m+e[11]*v+e[15]):(i=e[0],r=e[1],o=e[2],a=e[3],s=e[4],l=e[5],h=e[6],c=e[7],u=e[8],d=e[9],p=e[10],f=e[11],t[0]=i,t[1]=r,t[2]=o,t[3]=a,t[4]=s,t[5]=l,t[6]=h,t[7]=c,t[8]=u,t[9]=d,t[10]=p,t[11]=f,t[12]=i*g+s*m+u*v+e[12],t[13]=r*g+l*m+d*v+e[13],t[14]=o*g+h*m+p*v+e[14],t[15]=a*g+c*m+f*v+e[15]),t},Ee.scale=function(t,e,n){var i=n[0],r=n[1],o=n[2];return t[0]=e[0]*i,t[1]=e[1]*i,t[2]=e[2]*i,t[3]=e[3]*i,t[4]=e[4]*r,t[5]=e[5]*r,t[6]=e[6]*r,t[7]=e[7]*r,t[8]=e[8]*o,t[9]=e[9]*o,t[10]=e[10]*o,t[11]=e[11]*o,t[12]=e[12],t[13]=e[13],t[14]=e[14],t[15]=e[15],t},Ee.rotate=function(t,e,n,i){var r,o,a,s,l,h,c,u,d,p,f,g,m,v,y,_,x,b,w,S,T,M,A,C,I=i[0],E=i[1],k=i[2],L=Math.sqrt(I*I+E*E+k*k);return Math.abs(L)<Ut?null:(I*=L=1/L,E*=L,k*=L,r=Math.sin(n),a=1-(o=Math.cos(n)),s=e[0],l=e[1],h=e[2],c=e[3],u=e[4],d=e[5],p=e[6],f=e[7],g=e[8],m=e[9],v=e[10],y=e[11],_=I*I*a+o,x=E*I*a+k*r,b=k*I*a-E*r,w=I*E*a-k*r,S=E*E*a+o,T=k*E*a+I*r,M=I*k*a+E*r,A=E*k*a-I*r,C=k*k*a+o,t[0]=s*_+u*x+g*b,t[1]=l*_+d*x+m*b,t[2]=h*_+p*x+v*b,t[3]=c*_+f*x+y*b,t[4]=s*w+u*S+g*T,t[5]=l*w+d*S+m*T,t[6]=h*w+p*S+v*T,t[7]=c*w+f*S+y*T,t[8]=s*M+u*A+g*C,t[9]=l*M+d*A+m*C,t[10]=h*M+p*A+v*C,t[11]=c*M+f*A+y*C,e!==t&&(t[12]=e[12],t[13]=e[13],t[14]=e[14],t[15]=e[15]),t)},Ee.rotateX=function(t,e,n){var i=Math.sin(n),r=Math.cos(n),o=e[4],a=e[5],s=e[6],l=e[7],h=e[8],c=e[9],u=e[10],d=e[11];return e!==t&&(t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3],t[12]=e[12],t[13]=e[13],t[14]=e[14],t[15]=e[15]),t[4]=o*r+h*i,t[5]=a*r+c*i,t[6]=s*r+u*i,t[7]=l*r+d*i,t[8]=h*r-o*i,t[9]=c*r-a*i,t[10]=u*r-s*i,t[11]=d*r-l*i,t},Ee.rotateY=function(t,e,n){var i=Math.sin(n),r=Math.cos(n),o=e[0],a=e[1],s=e[2],l=e[3],h=e[8],c=e[9],u=e[10],d=e[11];return e!==t&&(t[4]=e[4],t[5]=e[5],t[6]=e[6],t[7]=e[7],t[12]=e[12],t[13]=e[13],t[14]=e[14],t[15]=e[15]),t[0]=o*r-h*i,t[1]=a*r-c*i,t[2]=s*r-u*i,t[3]=l*r-d*i,t[8]=o*i+h*r,t[9]=a*i+c*r,t[10]=s*i+u*r,t[11]=l*i+d*r,t},Ee.rotateZ=function(t,e,n){var i=Math.sin(n),r=Math.cos(n),o=e[0],a=e[1],s=e[2],l=e[3],h=e[4],c=e[5],u=e[6],d=e[7];return e!==t&&(t[8]=e[8],t[9]=e[9],t[10]=e[10],t[11]=e[11],t[12]=e[12],t[13]=e[13],t[14]=e[14],t[15]=e[15]),t[0]=o*r+h*i,t[1]=a*r+c*i,t[2]=s*r+u*i,t[3]=l*r+d*i,t[4]=h*r-o*i,t[5]=c*r-a*i,t[6]=u*r-s*i,t[7]=d*r-l*i,t},Ee.fromRotationTranslation=function(t,e,n){var i=e[0],r=e[1],o=e[2],a=e[3],s=i+i,l=r+r,h=o+o,c=i*s,u=i*l,d=i*h,p=r*l,f=r*h,g=o*h,m=a*s,v=a*l,y=a*h;return t[0]=1-(p+g),t[1]=u+y,t[2]=d-v,t[3]=0,t[4]=u-y,t[5]=1-(c+g),t[6]=f+m,t[7]=0,t[8]=d+v,t[9]=f-m,t[10]=1-(c+p),t[11]=0,t[12]=n[0],t[13]=n[1],t[14]=n[2],t[15]=1,t},Ee.fromQuat=function(t,e){var n=e[0],i=e[1],r=e[2],o=e[3],a=n+n,s=i+i,l=r+r,h=n*a,c=i*a,u=i*s,d=r*a,p=r*s,f=r*l,g=o*a,m=o*s,v=o*l;return t[0]=1-u-f,t[1]=c+v,t[2]=d-m,t[3]=0,t[4]=c-v,t[5]=1-h-f,t[6]=p+g,t[7]=0,t[8]=d+m,t[9]=p-g,t[10]=1-h-u,t[11]=0,t[12]=0,t[13]=0,t[14]=0,t[15]=1,t},Ee.frustum=function(t,e,n,i,r,o,a){var s=1/(n-e),l=1/(r-i),h=1/(o-a);return t[0]=2*o*s,t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=2*o*l,t[6]=0,t[7]=0,t[8]=(n+e)*s,t[9]=(r+i)*l,t[10]=(a+o)*h,t[11]=-1,t[12]=0,t[13]=0,t[14]=a*o*2*h,t[15]=0,t},Ee.perspective=function(t,e,n,i,r){var o=1/Math.tan(e/2),a=1/(i-r);return t[0]=o/n,t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=o,t[6]=0,t[7]=0,t[8]=0,t[9]=0,t[10]=(r+i)*a,t[11]=-1,t[12]=0,t[13]=0,t[14]=2*r*i*a,t[15]=0,t},Ee.ortho=function(t,e,n,i,r,o,a){var s=1/(e-n),l=1/(i-r),h=1/(o-a);return t[0]=-2*s,t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=-2*l,t[6]=0,t[7]=0,t[8]=0,t[9]=0,t[10]=2*h,t[11]=0,t[12]=(e+n)*s,t[13]=(r+i)*l,t[14]=(a+o)*h,t[15]=1,t},Ee.lookAt=function(t,e,n,i){var r,o,a,s,l,h,c,u,d,p,f=e[0],g=e[1],m=e[2],v=i[0],y=i[1],_=i[2],x=n[0],b=n[1],w=n[2];return Math.abs(f-x)<Ut&&Math.abs(g-b)<Ut&&Math.abs(m-w)<Ut?Ee.identity(t):(c=f-x,u=g-b,d=m-w,r=y*(d*=p=1/Math.sqrt(c*c+u*u+d*d))-_*(u*=p),o=_*(c*=p)-v*d,a=v*u-y*c,(p=Math.sqrt(r*r+o*o+a*a))?(r*=p=1/p,o*=p,a*=p):(r=0,o=0,a=0),s=u*a-d*o,l=d*r-c*a,h=c*o-u*r,(p=Math.sqrt(s*s+l*l+h*h))?(s*=p=1/p,l*=p,h*=p):(s=0,l=0,h=0),t[0]=r,t[1]=s,t[2]=c,t[3]=0,t[4]=o,t[5]=l,t[6]=u,t[7]=0,t[8]=a,t[9]=h,t[10]=d,t[11]=0,t[12]=-(r*f+o*g+a*m),t[13]=-(s*f+l*g+h*m),t[14]=-(c*f+u*g+d*m),t[15]=1,t)},Ee.frob=function(t){return Math.sqrt(Math.pow(t[0],2)+Math.pow(t[1],2)+Math.pow(t[2],2)+Math.pow(t[3],2)+Math.pow(t[4],2)+Math.pow(t[5],2)+Math.pow(t[6],2)+Math.pow(t[7],2)+Math.pow(t[8],2)+Math.pow(t[9],2)+Math.pow(t[10],2)+Math.pow(t[11],2)+Math.pow(t[12],2)+Math.pow(t[13],2)+Math.pow(t[14],2)+Math.pow(t[15],2))};const ke=Ee;var Le={create:function(){var t=new qt(3);return t[0]=0,t[1]=0,t[2]=0,t},clone:function(t){var e=new qt(3);return e[0]=t[0],e[1]=t[1],e[2]=t[2],e},fromValues:function(t,e,n){var i=new qt(3);return i[0]=t,i[1]=e,i[2]=n,i},copy:function(t,e){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t},set:function(t,e,n,i){return t[0]=e,t[1]=n,t[2]=i,t},add:function(t,e,n){return t[0]=e[0]+n[0],t[1]=e[1]+n[1],t[2]=e[2]+n[2],t},subtract:function(t,e,n){return t[0]=e[0]-n[0],t[1]=e[1]-n[1],t[2]=e[2]-n[2],t}};Le.sub=Le.subtract,Le.multiply=function(t,e,n){return t[0]=e[0]*n[0],t[1]=e[1]*n[1],t[2]=e[2]*n[2],t},Le.mul=Le.multiply,Le.divide=function(t,e,n){return t[0]=e[0]/n[0],t[1]=e[1]/n[1],t[2]=e[2]/n[2],t},Le.div=Le.divide,Le.min=function(t,e,n){return t[0]=Math.min(e[0],n[0]),t[1]=Math.min(e[1],n[1]),t[2]=Math.min(e[2],n[2]),t},Le.max=function(t,e,n){return t[0]=Math.max(e[0],n[0]),t[1]=Math.max(e[1],n[1]),t[2]=Math.max(e[2],n[2]),t},Le.scale=function(t,e,n){return t[0]=e[0]*n,t[1]=e[1]*n,t[2]=e[2]*n,t},Le.scaleAndAdd=function(t,e,n,i){return t[0]=e[0]+n[0]*i,t[1]=e[1]+n[1]*i,t[2]=e[2]+n[2]*i,t},Le.distance=function(t,e){var n=e[0]-t[0],i=e[1]-t[1],r=e[2]-t[2];return Math.sqrt(n*n+i*i+r*r)},Le.dist=Le.distance,Le.squaredDistance=function(t,e){var n=e[0]-t[0],i=e[1]-t[1],r=e[2]-t[2];return n*n+i*i+r*r},Le.sqrDist=Le.squaredDistance,Le.length=function(t){var e=t[0],n=t[1],i=t[2];return Math.sqrt(e*e+n*n+i*i)},Le.len=Le.length,Le.squaredLength=function(t){var e=t[0],n=t[1],i=t[2];return e*e+n*n+i*i},Le.sqrLen=Le.squaredLength,Le.negate=function(t,e){return t[0]=-e[0],t[1]=-e[1],t[2]=-e[2],t},Le.inverse=function(t,e){return t[0]=1/e[0],t[1]=1/e[1],t[2]=1/e[2],t},Le.normalize=function(t,e){var n=e[0],i=e[1],r=e[2],o=n*n+i*i+r*r;return o>0&&(o=1/Math.sqrt(o),t[0]=e[0]*o,t[1]=e[1]*o,t[2]=e[2]*o),t},Le.dot=function(t,e){return t[0]*e[0]+t[1]*e[1]+t[2]*e[2]},Le.cross=function(t,e,n){var i=e[0],r=e[1],o=e[2],a=n[0],s=n[1],l=n[2];return t[0]=r*l-o*s,t[1]=o*a-i*l,t[2]=i*s-r*a,t},Le.lerp=function(t,e,n,i){var r=e[0],o=e[1],a=e[2];return t[0]=r+i*(n[0]-r),t[1]=o+i*(n[1]-o),t[2]=a+i*(n[2]-a),t},Le.random=function(t,e){e=e||1;var n=2*Xt()*Math.PI,i=2*Xt()-1,r=Math.sqrt(1-i*i)*e;return t[0]=Math.cos(n)*r,t[1]=Math.sin(n)*r,t[2]=i*e,t},Le.transformMat4=function(t,e,n){var i=e[0],r=e[1],o=e[2],a=n[3]*i+n[7]*r+n[11]*o+n[15];return a=a||1,t[0]=(n[0]*i+n[4]*r+n[8]*o+n[12])/a,t[1]=(n[1]*i+n[5]*r+n[9]*o+n[13])/a,t[2]=(n[2]*i+n[6]*r+n[10]*o+n[14])/a,t},Le.transformMat3=function(t,e,n){var i=e[0],r=e[1],o=e[2];return t[0]=i*n[0]+r*n[3]+o*n[6],t[1]=i*n[1]+r*n[4]+o*n[7],t[2]=i*n[2]+r*n[5]+o*n[8],t},Le.transformQuat=function(t,e,n){var i=e[0],r=e[1],o=e[2],a=n[0],s=n[1],l=n[2],h=n[3],c=h*i+s*o-l*r,u=h*r+l*i-a*o,d=h*o+a*r-s*i,p=-a*i-s*r-l*o;return t[0]=c*h+p*-a+u*-l-d*-s,t[1]=u*h+p*-s+d*-a-c*-l,t[2]=d*h+p*-l+c*-s-u*-a,t},Le.rotateX=function(t,e,n,i){var r=[],o=[];return r[0]=e[0]-n[0],r[1]=e[1]-n[1],r[2]=e[2]-n[2],o[0]=r[0],o[1]=r[1]*Math.cos(i)-r[2]*Math.sin(i),o[2]=r[1]*Math.sin(i)+r[2]*Math.cos(i),t[0]=o[0]+n[0],t[1]=o[1]+n[1],t[2]=o[2]+n[2],t},Le.rotateY=function(t,e,n,i){var r=[],o=[];return r[0]=e[0]-n[0],r[1]=e[1]-n[1],r[2]=e[2]-n[2],o[0]=r[2]*Math.sin(i)+r[0]*Math.cos(i),o[1]=r[1],o[2]=r[2]*Math.cos(i)-r[0]*Math.sin(i),t[0]=o[0]+n[0],t[1]=o[1]+n[1],t[2]=o[2]+n[2],t},Le.rotateZ=function(t,e,n,i){var r=[],o=[];return r[0]=e[0]-n[0],r[1]=e[1]-n[1],r[2]=e[2]-n[2],o[0]=r[0]*Math.cos(i)-r[1]*Math.sin(i),o[1]=r[0]*Math.sin(i)+r[1]*Math.cos(i),o[2]=r[2],t[0]=o[0]+n[0],t[1]=o[1]+n[1],t[2]=o[2]+n[2],t},Le.forEach=function(){var t=Le.create();return function(e,n,i,r,o,a){var s,l;for(n||(n=3),i||(i=0),l=r?Math.min(r*n+i,e.length):e.length,s=i;s<l;s+=n)t[0]=e[s],t[1]=e[s+1],t[2]=e[s+2],o(t,t,a),e[s]=t[0],e[s+1]=t[1],e[s+2]=t[2];return e}}(),Le.angle=function(t,e){var n=Le.fromValues(t[0],t[1],t[2]),i=Le.fromValues(e[0],e[1],e[2]);Le.normalize(n,n),Le.normalize(i,i);var r=Le.dot(n,i);return r>1?0:Math.acos(r)};const De=Le;Ce.import(Ie);var Pe=ke.create,Re={};function Oe(t){return t.material}function Ne(t,e,n){return e.uniforms[n].value}function Fe(t,e,n,i){return n!==i}function Be(t){return!0}function ze(){}var Ge={float:q,byte:G,ubyte:V,short:j,ushort:H};function Ve(t,e,n){this.availableAttributes=t,this.availableAttributeSymbols=e,this.indicesBuffer=n,this.vao=null}function je(t){var e,n;this.bind=function(t){e||((e=bt.createCanvas()).width=e.height=1,e.getContext("2d"));var i=t.gl,r=!n;r&&(n=i.createTexture()),i.bindTexture(i.TEXTURE_2D,n),r&&i.texImage2D(i.TEXTURE_2D,0,i.RGBA,i.RGBA,i.UNSIGNED_BYTE,e)},this.unbind=function(t){t.gl.bindTexture(t.gl.TEXTURE_2D,null)},this.isRenderable=function(){return!0}}var He=y.extend((function(){return{canvas:null,_width:100,_height:100,devicePixelRatio:"undefined"!=typeof window&&window.devicePixelRatio||1,clearColor:[0,0,0,0],clearBit:17664,alpha:!0,depth:!0,stencil:!1,antialias:!0,premultipliedAlpha:!0,preserveDrawingBuffer:!1,throwError:!0,gl:null,viewport:{},maxJointNumber:20,__currentFrameBuffer:null,_viewportStack:[],_clearStack:[],_sceneRendering:null}}),(function(){this.canvas||(this.canvas=bt.createCanvas());var t=this.canvas;try{var e={alpha:this.alpha,depth:this.depth,stencil:this.stencil,antialias:this.antialias,premultipliedAlpha:this.premultipliedAlpha,preserveDrawingBuffer:this.preserveDrawingBuffer};if(this.gl=t.getContext("webgl",e)||t.getContext("experimental-webgl",e),!this.gl)throw new Error;this._glinfo=new b(this.gl),this.gl.targetRenderer&&console.error("Already created a renderer"),this.gl.targetRenderer=this,this.resize()}catch(Jh){throw"Error creating WebGL Context "+Jh}this._programMgr=new le(this),this._placeholderTexture=new je(this)}),{resize:function(t,e){var n=this.canvas,i=this.devicePixelRatio;null!=t?(n.style&&(n.style.width=t+"px",n.style.height=e+"px"),n.width=t*i,n.height=e*i,this._width=t,this._height=e):(this._width=n.width/i,this._height=n.height/i),this.setViewport(0,0,this._width,this._height)},getWidth:function(){return this._width},getHeight:function(){return this._height},getViewportAspect:function(){var t=this.viewport;return t.width/t.height},setDevicePixelRatio:function(t){this.devicePixelRatio=t,this.resize(this._width,this._height)},getDevicePixelRatio:function(){return this.devicePixelRatio},getGLExtension:function(t){return this._glinfo.getExtension(t)},getGLParameter:function(t){return this._glinfo.getParameter(t)},setViewport:function(t,e,n,i,r){if("object"==typeof t){var o=t;t=o.x,e=o.y,n=o.width,i=o.height,r=o.devicePixelRatio}r=r||this.devicePixelRatio,this.gl.viewport(t*r,e*r,n*r,i*r),this.viewport={x:t,y:e,width:n,height:i,devicePixelRatio:r}},saveViewport:function(){this._viewportStack.push(this.viewport)},restoreViewport:function(){this._viewportStack.length>0&&this.setViewport(this._viewportStack.pop())},saveClear:function(){this._clearStack.push({clearBit:this.clearBit,clearColor:this.clearColor})},restoreClear:function(){if(this._clearStack.length>0){var t=this._clearStack.pop();this.clearColor=t.clearColor,this.clearBit=t.clearBit}},bindSceneRendering:function(t){this._sceneRendering=t},render:function(t,e,n,i){var r=this.gl,o=this.clearColor;if(this.clearBit){r.colorMask(!0,!0,!0,!0),r.depthMask(!0);var a=this.viewport,s=!1,l=a.devicePixelRatio;(a.width!==this._width||a.height!==this._height||l&&l!==this.devicePixelRatio||a.x||a.y)&&(s=!0,r.enable(r.SCISSOR_TEST),r.scissor(a.x*l,a.y*l,a.width*l,a.height*l)),r.clearColor(o[0],o[1],o[2],o[3]),r.clear(this.clearBit),s&&r.disable(r.SCISSOR_TEST)}if(n||t.update(!1),t.updateLights(),e=e||t.getMainCamera()){e.update();var h=t.updateRenderList(e,!0);this._sceneRendering=t;var c=h.opaque,u=h.transparent,d=t.material;t.trigger("beforerender",this,t,e,h),i?(this.renderPreZ(c,t,e),r.depthFunc(r.LEQUAL)):r.depthFunc(r.LESS);for(var p=Pe(),f=De.create(),g=0;g<u.length;g++){var m=u[g];ke.multiplyAffine(p,e.viewMatrix.array,m.worldTransform.array),De.transformMat4(f,m.position.array,p),m.__depth=f[2]}this.renderPass(c,e,{getMaterial:function(t){return d||t.material},sortCompare:this.opaqueSortCompare}),this.renderPass(u,e,{getMaterial:function(t){return d||t.material},sortCompare:this.transparentSortCompare}),t.trigger("afterrender",this,t,e,h),this._sceneRendering=null}else console.error("Can't find camera in the scene.")},getProgram:function(t,e,n){return e=e||t.material,this._programMgr.getProgram(t,e,n)},validateProgram:function(t){if(t.__error){var e=t.__error;if(Re[t.__uid__])return;if(Re[t.__uid__]=!0,this.throwError)throw new Error(e);this.trigger("error",e)}},updatePrograms:function(t,e,n){var i=n&&n.getMaterial||Oe;e=e||null;for(var r=0;r<t.length;r++){var o=t[r],a=i.call(this,o);if(r>0){var s=t[r-1],l=s.joints?s.joints.length:0;if((o.joints?o.joints.length:0)===l&&o.material===s.material&&o.lightGroup===s.lightGroup){o.__program=s.__program;continue}}var h=this._programMgr.getProgram(o,a,e);this.validateProgram(h),o.__program=h}},renderPass:function(t,e,n){this.trigger("beforerenderpass",this,t,e,n),(n=n||{}).getMaterial=n.getMaterial||Oe,n.getUniform=n.getUniform||Ne,n.isMaterialChanged=n.isMaterialChanged||Fe,n.beforeRender=n.beforeRender||ze,n.afterRender=n.afterRender||ze;var i=n.ifRender||Be;this.updatePrograms(t,this._sceneRendering,n),n.sortCompare&&t.sort(n.sortCompare);var r=this.viewport,o=r.devicePixelRatio,a=[r.x*o,r.y*o,r.width*o,r.height*o],s=this.devicePixelRatio,l=this.__currentFrameBuffer?[this.__currentFrameBuffer.getTextureWidth(),this.__currentFrameBuffer.getTextureHeight()]:[this._width*s,this._height*s],h=[a[2],a[3]],c=Date.now();e?(ke.copy(We.VIEW,e.viewMatrix.array),ke.copy(We.PROJECTION,e.projectionMatrix.array),ke.copy(We.VIEWINVERSE,e.worldTransform.array)):(ke.identity(We.VIEW),ke.identity(We.PROJECTION),ke.identity(We.VIEWINVERSE)),ke.multiply(We.VIEWPROJECTION,We.PROJECTION,We.VIEW),ke.invert(We.PROJECTIONINVERSE,We.PROJECTION),ke.invert(We.VIEWPROJECTIONINVERSE,We.VIEWPROJECTION);for(var u,d,p,f,g,m,v,y,_,x,b,w,S=this.gl,T=this._sceneRendering,M=null,A=0;A<t.length;A++){var C,I=t[A],E=null!=I.worldTransform;if(i(I)){E&&(C=I.isSkinnedMesh&&I.isSkinnedMesh()?I.offsetMatrix?I.offsetMatrix.array:We.IDENTITY:I.worldTransform.array);var k=I.geometry,L=n.getMaterial.call(this,I),D=I.__program,P=L.shader,R=k.__uid__+"-"+D.__uid__,O=R!==x;x=R,E&&(ke.copy(We.WORLD,C),ke.multiply(We.WORLDVIEWPROJECTION,We.VIEWPROJECTION,C),ke.multiplyAffine(We.WORLDVIEW,We.VIEW,C),(P.matrixSemantics.WORLDINVERSE||P.matrixSemantics.WORLDINVERSETRANSPOSE)&&ke.invert(We.WORLDINVERSE,C),(P.matrixSemantics.WORLDVIEWINVERSE||P.matrixSemantics.WORLDVIEWINVERSETRANSPOSE)&&ke.invert(We.WORLDVIEWINVERSE,We.WORLDVIEW),(P.matrixSemantics.WORLDVIEWPROJECTIONINVERSE||P.matrixSemantics.WORLDVIEWPROJECTIONINVERSETRANSPOSE)&&ke.invert(We.WORLDVIEWPROJECTIONINVERSE,We.WORLDVIEWPROJECTION)),I.beforeRender&&I.beforeRender(this),n.beforeRender.call(this,I,L,u);var N=D!==d;N?(D.bind(this),D.setUniformOfSemantic(S,"VIEWPORT",a),D.setUniformOfSemantic(S,"WINDOW_SIZE",l),e&&(D.setUniformOfSemantic(S,"NEAR",e.near),D.setUniformOfSemantic(S,"FAR",e.far)),D.setUniformOfSemantic(S,"DEVICEPIXELRATIO",o),D.setUniformOfSemantic(S,"TIME",c),D.setUniformOfSemantic(S,"VIEWPORT_SIZE",h),T&&T.setLightUniforms(D,I.lightGroup,this)):D=d,(N||n.isMaterialChanged(I,p,L,u))&&(L.depthTest!==f&&(L.depthTest?S.enable(S.DEPTH_TEST):S.disable(S.DEPTH_TEST),f=L.depthTest),L.depthMask!==g&&(S.depthMask(L.depthMask),g=L.depthMask),L.transparent!==_&&(L.transparent?S.enable(S.BLEND):S.disable(S.BLEND),_=L.transparent),L.transparent&&(L.blend?L.blend(S):(S.blendEquationSeparate(S.FUNC_ADD,S.FUNC_ADD),S.blendFuncSeparate(S.SRC_ALPHA,S.ONE_MINUS_SRC_ALPHA,S.ONE,S.ONE_MINUS_SRC_ALPHA))),w=this._bindMaterial(I,L,D,p||null,u||null,d||null,n.getUniform),u=L);var F=P.matrixSemanticKeys;if(E)for(var B=0;B<F.length;B++){var z=F[B],G=P.matrixSemantics[z],V=We[z];if(G.isTranspose){var j=We[G.semanticNoTranspose];ke.transpose(V,j)}D.setUniform(S,G.type,G.symbol,V)}I.cullFace!==v&&(v=I.cullFace,S.cullFace(v)),I.frontFace!==y&&(y=I.frontFace,S.frontFace(y)),I.culling!==m&&((m=I.culling)?S.enable(S.CULL_FACE):S.disable(S.CULL_FACE)),this._updateSkeleton(I,D,w),O&&(b=this._bindVAO(M,P,k,D)),this._renderObject(I,b,D),n.afterRender(this,I),I.afterRender&&I.afterRender(this),d=D,p=I}}this.trigger("afterrenderpass",this,t,e,n)},getMaxJointNumber:function(){return this.maxJointNumber},_updateSkeleton:function(t,e,n){var i=this.gl,r=t.skeleton;if(r)if(r.update(),t.joints.length>this.getMaxJointNumber()){var o=r.getSubSkinMatricesTexture(t.__uid__,t.joints);e.useTextureSlot(this,o,n),e.setUniform(i,"1i","skinMatricesTexture",n),e.setUniform(i,"1f","skinMatricesTextureSize",o.width)}else{var a=r.getSubSkinMatrices(t.__uid__,t.joints);e.setUniformOfSemantic(i,"SKIN_MATRIX",a)}},_renderObject:function(t,e,n){var i=this.gl,r=t.geometry,o=t.mode;null==o&&(o=4);var a=null,s=t.isInstancedMesh&&t.isInstancedMesh();if(!s||(a=this.getGLExtension("ANGLE_instanced_arrays"))){var l;if(s&&(l=this._bindInstancedAttributes(t,n,a)),e.indicesBuffer){var h=this.getGLExtension("OES_element_index_uint")&&r.indices instanceof Uint32Array?i.UNSIGNED_INT:i.UNSIGNED_SHORT;s?a.drawElementsInstancedANGLE(o,e.indicesBuffer.count,h,0,t.getInstanceCount()):i.drawElements(o,e.indicesBuffer.count,h,0)}else s?a.drawArraysInstancedANGLE(o,0,r.vertexCount,t.getInstanceCount()):i.drawArrays(o,0,r.vertexCount);if(s)for(var c=0;c<l.length;c++)i.disableVertexAttribArray(l[c])}else console.warn("Device not support ANGLE_instanced_arrays extension")},_bindInstancedAttributes:function(t,e,n){for(var i=this.gl,r=t.getInstancedAttributesBuffers(this),o=[],a=0;a<r.length;a++){var s=r[a],l=e.getAttribLocation(i,s.symbol);if(!(l<0)){var h=Ge[s.type]||i.FLOAT;i.enableVertexAttribArray(l),i.bindBuffer(i.ARRAY_BUFFER,s.buffer),i.vertexAttribPointer(l,s.size,h,!1,0,0),n.vertexAttribDivisorANGLE(l,s.divisor),o.push(l)}}return o},_bindMaterial:function(t,e,n,i,r,o,a){for(var s=this.gl,l=o===n,h=n.currentTextureSlot(),c=e.getEnabledUniforms(),u=e.getTextureUniforms(),d=this._placeholderTexture,p=0;p<u.length;p++){var f=a(t,e,v=u[p]);if("t"===(m=e.uniforms[v].type)&&f)f.__slot=-1;else if("tv"===m)for(var g=0;g<f.length;g++)f[g]&&(f[g].__slot=-1)}d.__slot=-1;for(p=0;p<c.length;p++){var m,v=c[p],y=e.uniforms[v],_=(f=a(t,e,v),"t"===(m=y.type));if(_&&(f&&f.isRenderable()||(f=d)),r&&l){var x=a(i,r,v);if(_&&(x&&x.isRenderable()||(x=d)),x===f){if(_)n.takeCurrentTextureSlot(this,null);else if("tv"===m&&f)for(g=0;g<f.length;g++)n.takeCurrentTextureSlot(this,null);continue}}if(null!=f)if(_)if(f.__slot<0){var b=n.currentTextureSlot();n.setUniform(s,"1i",v,b)&&(n.takeCurrentTextureSlot(this,f),f.__slot=b)}else n.setUniform(s,"1i",v,f.__slot);else if(Array.isArray(f)){if(0===f.length)continue;if("tv"===m){if(!n.hasUniform(v))continue;var w=[];for(g=0;g<f.length;g++){var S=f[g];if(S.__slot<0){b=n.currentTextureSlot();w.push(b),n.takeCurrentTextureSlot(this,S),S.__slot=b}else w.push(S.__slot)}n.setUniform(s,"1iv",v,w)}else n.setUniform(s,y.type,v,f)}else n.setUniform(s,y.type,v,f)}var T=n.currentTextureSlot();return n.resetTextureSlot(h),T},_bindVAO:function(t,e,n,i){var r=!n.dynamic,o=this.gl,a=this.__uid__+"-"+i.__uid__,s=n.__vaoCache[a];if(!s){var l=n.getBufferChunks(this);if(!l||!l.length)return;for(var h=l[0],c=h.attributeBuffers,u=h.indicesBuffer,d=[],p=[],f=0;f<c.length;f++){var g,m=(w=c[f]).name,v=w.semantic;if(v){var y=e.attributeSemantics[v];g=y&&y.symbol}else g=m;g&&i.attributes[g]&&(d.push(w),p.push(g))}s=new Ve(d,p,u),r&&(n.__vaoCache[a]=s)}var _=!0;t&&r&&(null==s.vao?s.vao=t.createVertexArrayOES():_=!1,t.bindVertexArrayOES(s.vao));d=s.availableAttributes,u=s.indicesBuffer;if(_){var x=i.enableAttributes(this,s.availableAttributeSymbols,t&&r&&s);for(f=0;f<d.length;f++){var b=x[f];if(-1!==b){var w,S=(w=d[f]).buffer,T=w.size,M=Ge[w.type]||o.FLOAT;o.bindBuffer(o.ARRAY_BUFFER,S),o.vertexAttribPointer(b,T,M,!1,0,0)}}n.isUseIndices()&&o.bindBuffer(o.ELEMENT_ARRAY_BUFFER,u.buffer)}return s},renderPreZ:function(t,e,n){var i=this.gl,r=this._prezMaterial||new Ht({shader:new Ce(Ce.source("clay.prez.vertex"),Ce.source("clay.prez.fragment"))});this._prezMaterial=r,i.colorMask(!1,!1,!1,!1),i.depthMask(!0),this.renderPass(t,n,{ifRender:function(t){return!t.ignorePreZ},isMaterialChanged:function(t,e){var n=t.material,i=e.material;return n.get("diffuseMap")!==i.get("diffuseMap")||(n.get("alphaCutoff")||0)!==(i.get("alphaCutoff")||0)},getUniform:function(t,e,n){return"alphaMap"===n?t.material.get("diffuseMap"):"alphaCutoff"===n?t.material.isDefined("fragment","ALPHA_TEST")&&t.material.get("diffuseMap")&&t.material.get("alphaCutoff")||0:"uvRepeat"===n?t.material.get("uvRepeat"):"uvOffset"===n?t.material.get("uvOffset"):e.get(n)},getMaterial:function(){return r},sort:this.opaqueSortCompare}),i.colorMask(!0,!0,!0,!0),i.depthMask(!0)},disposeScene:function(t){this.disposeNode(t,!0,!0),t.dispose()},disposeNode:function(t,e,n){t.getParent()&&t.getParent().remove(t);var i={};t.traverse((function(t){var r=t.material;if(t.geometry&&e&&t.geometry.dispose(this),n&&r&&!i[r.__uid__]){for(var o=r.getTextureUniforms(),a=0;a<o.length;a++){var s=o[a],l=r.uniforms[s].value,h=r.uniforms[s].type;if(l)if("t"===h)l.dispose&&l.dispose(this);else if("tv"===h)for(var c=0;c<l.length;c++)l[c]&&l[c].dispose&&l[c].dispose(this)}i[r.__uid__]=!0}t.dispose&&t.dispose(this)}),this)},disposeGeometry:function(t){t.dispose(this)},disposeTexture:function(t){t.dispose(this)},disposeFrameBuffer:function(t){t.dispose(this)},dispose:function(){},screenToNDC:function(t,e,n){n||(n=new Jt),e=this._height-e;var i=this.viewport,r=n.array;return r[0]=(t-i.x)/i.width,r[0]=2*r[0]-1,r[1]=(e-i.y)/i.height,r[1]=2*r[1]-1,n}});He.opaqueSortCompare=He.prototype.opaqueSortCompare=function(t,e){return t.renderOrder===e.renderOrder?t.__program===e.__program?t.material===e.material?t.geometry.__uid__-e.geometry.__uid__:t.material.__uid__-e.material.__uid__:t.__program&&e.__program?t.__program.__uid__-e.__program.__uid__:0:t.renderOrder-e.renderOrder},He.transparentSortCompare=He.prototype.transparentSortCompare=function(t,e){return t.renderOrder===e.renderOrder?t.__depth===e.__depth?t.__program===e.__program?t.material===e.material?t.geometry.__uid__-e.geometry.__uid__:t.material.__uid__-e.material.__uid__:t.__program&&e.__program?t.__program.__uid__-e.__program.__uid__:0:t.__depth-e.__depth:t.renderOrder-e.renderOrder};var We={IDENTITY:Pe(),WORLD:Pe(),VIEW:Pe(),PROJECTION:Pe(),WORLDVIEW:Pe(),VIEWPROJECTION:Pe(),WORLDVIEWPROJECTION:Pe(),WORLDINVERSE:Pe(),VIEWINVERSE:Pe(),PROJECTIONINVERSE:Pe(),WORLDVIEWINVERSE:Pe(),VIEWPROJECTIONINVERSE:Pe(),WORLDVIEWPROJECTIONINVERSE:Pe(),WORLDTRANSPOSE:Pe(),VIEWTRANSPOSE:Pe(),PROJECTIONTRANSPOSE:Pe(),WORLDVIEWTRANSPOSE:Pe(),VIEWPROJECTIONTRANSPOSE:Pe(),WORLDVIEWPROJECTIONTRANSPOSE:Pe(),WORLDINVERSETRANSPOSE:Pe(),VIEWINVERSETRANSPOSE:Pe(),PROJECTIONINVERSETRANSPOSE:Pe(),WORLDVIEWINVERSETRANSPOSE:Pe(),VIEWPROJECTIONINVERSETRANSPOSE:Pe(),WORLDVIEWPROJECTIONINVERSETRANSPOSE:Pe()};He.COLOR_BUFFER_BIT=T,He.DEPTH_BUFFER_BIT=w,He.STENCIL_BUFFER_BIT=S;const Ue=He;var qe=function(t,e,n){t=t||0,e=e||0,n=n||0,this.array=De.fromValues(t,e,n),this._dirty=!0};qe.prototype={constructor:qe,add:function(t){return De.add(this.array,this.array,t.array),this._dirty=!0,this},set:function(t,e,n){return this.array[0]=t,this.array[1]=e,this.array[2]=n,this._dirty=!0,this},setArray:function(t){return this.array[0]=t[0],this.array[1]=t[1],this.array[2]=t[2],this._dirty=!0,this},clone:function(){return new qe(this.x,this.y,this.z)},copy:function(t){return De.copy(this.array,t.array),this._dirty=!0,this},cross:function(t,e){return De.cross(this.array,t.array,e.array),this._dirty=!0,this},dist:function(t){return De.dist(this.array,t.array)},distance:function(t){return De.distance(this.array,t.array)},div:function(t){return De.div(this.array,this.array,t.array),this._dirty=!0,this},divide:function(t){return De.divide(this.array,this.array,t.array),this._dirty=!0,this},dot:function(t){return De.dot(this.array,t.array)},len:function(){return De.len(this.array)},length:function(){return De.length(this.array)},lerp:function(t,e,n){return De.lerp(this.array,t.array,e.array,n),this._dirty=!0,this},min:function(t){return De.min(this.array,this.array,t.array),this._dirty=!0,this},max:function(t){return De.max(this.array,this.array,t.array),this._dirty=!0,this},mul:function(t){return De.mul(this.array,this.array,t.array),this._dirty=!0,this},multiply:function(t){return De.multiply(this.array,this.array,t.array),this._dirty=!0,this},negate:function(){return De.negate(this.array,this.array),this._dirty=!0,this},normalize:function(){return De.normalize(this.array,this.array),this._dirty=!0,this},random:function(t){return De.random(this.array,t),this._dirty=!0,this},scale:function(t){return De.scale(this.array,this.array,t),this._dirty=!0,this},scaleAndAdd:function(t,e){return De.scaleAndAdd(this.array,this.array,t.array,e),this._dirty=!0,this},sqrDist:function(t){return De.sqrDist(this.array,t.array)},squaredDistance:function(t){return De.squaredDistance(this.array,t.array)},sqrLen:function(){return De.sqrLen(this.array)},squaredLength:function(){return De.squaredLength(this.array)},sub:function(t){return De.sub(this.array,this.array,t.array),this._dirty=!0,this},subtract:function(t){return De.subtract(this.array,this.array,t.array),this._dirty=!0,this},transformMat3:function(t){return De.transformMat3(this.array,this.array,t.array),this._dirty=!0,this},transformMat4:function(t){return De.transformMat4(this.array,this.array,t.array),this._dirty=!0,this},transformQuat:function(t){return De.transformQuat(this.array,this.array,t.array),this._dirty=!0,this},applyProjection:function(t){var e=this.array;if(0===(t=t.array)[15]){var n=-1/e[2];e[0]=t[0]*e[0]*n,e[1]=t[5]*e[1]*n,e[2]=(t[10]*e[2]+t[14])*n}else e[0]=t[0]*e[0]+t[12],e[1]=t[5]*e[1]+t[13],e[2]=t[10]*e[2]+t[14];return this._dirty=!0,this},eulerFromQuat:function(t,e){qe.eulerFromQuat(this,t,e)},eulerFromMat3:function(t,e){qe.eulerFromMat3(this,t,e)},toString:function(){return"["+Array.prototype.join.call(this.array,",")+"]"},toArray:function(){return Array.prototype.slice.call(this.array)}};var Xe=Object.defineProperty;if(Xe){var Ye=qe.prototype;Xe(Ye,"x",{get:function(){return this.array[0]},set:function(t){this.array[0]=t,this._dirty=!0}}),Xe(Ye,"y",{get:function(){return this.array[1]},set:function(t){this.array[1]=t,this._dirty=!0}}),Xe(Ye,"z",{get:function(){return this.array[2]},set:function(t){this.array[2]=t,this._dirty=!0}})}function Ze(t,e,n){return t<e?e:t>n?n:t}qe.add=function(t,e,n){return De.add(t.array,e.array,n.array),t._dirty=!0,t},qe.set=function(t,e,n,i){De.set(t.array,e,n,i),t._dirty=!0},qe.copy=function(t,e){return De.copy(t.array,e.array),t._dirty=!0,t},qe.cross=function(t,e,n){return De.cross(t.array,e.array,n.array),t._dirty=!0,t},qe.distance=qe.dist=function(t,e){return De.distance(t.array,e.array)},qe.divide=qe.div=function(t,e,n){return De.divide(t.array,e.array,n.array),t._dirty=!0,t},qe.dot=function(t,e){return De.dot(t.array,e.array)},qe.len=function(t){return De.length(t.array)},qe.lerp=function(t,e,n,i){return De.lerp(t.array,e.array,n.array,i),t._dirty=!0,t},qe.min=function(t,e,n){return De.min(t.array,e.array,n.array),t._dirty=!0,t},qe.max=function(t,e,n){return De.max(t.array,e.array,n.array),t._dirty=!0,t},qe.multiply=qe.mul=function(t,e,n){return De.multiply(t.array,e.array,n.array),t._dirty=!0,t},qe.negate=function(t,e){return De.negate(t.array,e.array),t._dirty=!0,t},qe.normalize=function(t,e){return De.normalize(t.array,e.array),t._dirty=!0,t},qe.random=function(t,e){return De.random(t.array,e),t._dirty=!0,t},qe.scale=function(t,e,n){return De.scale(t.array,e.array,n),t._dirty=!0,t},qe.scaleAndAdd=function(t,e,n,i){return De.scaleAndAdd(t.array,e.array,n.array,i),t._dirty=!0,t},qe.squaredDistance=qe.sqrDist=function(t,e){return De.sqrDist(t.array,e.array)},qe.squaredLength=qe.sqrLen=function(t){return De.sqrLen(t.array)},qe.subtract=qe.sub=function(t,e,n){return De.subtract(t.array,e.array,n.array),t._dirty=!0,t},qe.transformMat3=function(t,e,n){return De.transformMat3(t.array,e.array,n.array),t._dirty=!0,t},qe.transformMat4=function(t,e,n){return De.transformMat4(t.array,e.array,n.array),t._dirty=!0,t},qe.transformQuat=function(t,e,n){return De.transformQuat(t.array,e.array,n.array),t._dirty=!0,t};var $e=Math.atan2,Ke=Math.asin,Je=Math.abs;qe.eulerFromQuat=function(t,e,n){t._dirty=!0,e=e.array;var i=t.array,r=e[0],o=e[1],a=e[2],s=e[3],l=r*r,h=o*o,c=a*a,u=s*s;switch(n=(n||"XYZ").toUpperCase()){case"XYZ":i[0]=$e(2*(r*s-o*a),u-l-h+c),i[1]=Ke(Ze(2*(r*a+o*s),-1,1)),i[2]=$e(2*(a*s-r*o),u+l-h-c);break;case"YXZ":i[0]=Ke(Ze(2*(r*s-o*a),-1,1)),i[1]=$e(2*(r*a+o*s),u-l-h+c),i[2]=$e(2*(r*o+a*s),u-l+h-c);break;case"ZXY":i[0]=Ke(Ze(2*(r*s+o*a),-1,1)),i[1]=$e(2*(o*s-a*r),u-l-h+c),i[2]=$e(2*(a*s-r*o),u-l+h-c);break;case"ZYX":i[0]=$e(2*(r*s+a*o),u-l-h+c),i[1]=Ke(Ze(2*(o*s-r*a),-1,1)),i[2]=$e(2*(r*o+a*s),u+l-h-c);break;case"YZX":i[0]=$e(2*(r*s-a*o),u-l+h-c),i[1]=$e(2*(o*s-r*a),u+l-h-c),i[2]=Ke(Ze(2*(r*o+a*s),-1,1));break;case"XZY":i[0]=$e(2*(r*s+o*a),u-l+h-c),i[1]=$e(2*(r*a+o*s),u+l-h-c),i[2]=Ke(Ze(2*(a*s-r*o),-1,1));break;default:console.warn("Unkown order: "+n)}return t},qe.eulerFromMat3=function(t,e,n){var i=e.array,r=i[0],o=i[3],a=i[6],s=i[1],l=i[4],h=i[7],c=i[2],u=i[5],d=i[8],p=t.array;switch(n=(n||"XYZ").toUpperCase()){case"XYZ":p[1]=Ke(Ze(a,-1,1)),Je(a)<.99999?(p[0]=$e(-h,d),p[2]=$e(-o,r)):(p[0]=$e(u,l),p[2]=0);break;case"YXZ":p[0]=Ke(-Ze(h,-1,1)),Je(h)<.99999?(p[1]=$e(a,d),p[2]=$e(s,l)):(p[1]=$e(-c,r),p[2]=0);break;case"ZXY":p[0]=Ke(Ze(u,-1,1)),Je(u)<.99999?(p[1]=$e(-c,d),p[2]=$e(-o,l)):(p[1]=0,p[2]=$e(s,r));break;case"ZYX":p[1]=Ke(-Ze(c,-1,1)),Je(c)<.99999?(p[0]=$e(u,d),p[2]=$e(s,r)):(p[0]=0,p[2]=$e(-o,l));break;case"YZX":p[2]=Ke(Ze(s,-1,1)),Je(s)<.99999?(p[0]=$e(-h,l),p[1]=$e(-c,r)):(p[0]=0,p[1]=$e(a,d));break;case"XZY":p[2]=Ke(-Ze(o,-1,1)),Je(o)<.99999?(p[0]=$e(u,l),p[1]=$e(a,r)):(p[0]=$e(-h,d),p[1]=0);break;default:console.warn("Unkown order: "+n)}return t._dirty=!0,t},Object.defineProperties(qe,{POSITIVE_X:{get:function(){return new qe(1,0,0)}},NEGATIVE_X:{get:function(){return new qe(-1,0,0)}},POSITIVE_Y:{get:function(){return new qe(0,1,0)}},NEGATIVE_Y:{get:function(){return new qe(0,-1,0)}},POSITIVE_Z:{get:function(){return new qe(0,0,1)}},NEGATIVE_Z:{get:function(){return new qe(0,0,-1)}},UP:{get:function(){return new qe(0,1,0)}},ZERO:{get:function(){return new qe}}});const Qe=qe;var tn,en,nn,rn,on,an=1e-5,sn=function(t,e){this.origin=t||new Qe,this.direction=e||new Qe};sn.prototype={constructor:sn,intersectPlane:function(t,e){var n=t.normal.array,i=t.distance,r=this.origin.array,o=this.direction.array,a=De.dot(n,o);if(0===a)return null;e||(e=new Qe);var s=(De.dot(n,r)-i)/a;return De.scaleAndAdd(e.array,r,o,-s),e._dirty=!0,e},mirrorAgainstPlane:function(t){var e=De.dot(t.normal.array,this.direction.array);De.scaleAndAdd(this.direction.array,this.direction.array,t.normal.array,2*-e),this.direction._dirty=!0},distanceToPoint:(on=De.create(),function(t){De.sub(on,t,this.origin.array);var e=De.dot(on,this.direction.array);if(e<0)return De.distance(this.origin.array,t);var n=De.lenSquared(on);return Math.sqrt(n-e*e)}),intersectSphere:function(){var t=De.create();return function(e,n,i){var r=this.origin.array,o=this.direction.array;e=e.array,De.sub(t,e,r);var a=De.dot(t,o),s=De.squaredLength(t)-a*a,l=n*n;if(!(s>l)){var h=Math.sqrt(l-s),c=a-h,u=a+h;return i||(i=new Qe),c<0?u<0?null:(De.scaleAndAdd(i.array,r,o,u),i):(De.scaleAndAdd(i.array,r,o,c),i)}}}(),intersectBoundingBox:function(t,e){var n,i,r,o,a,s,l=this.direction.array,h=this.origin.array,c=t.min.array,u=t.max.array,d=1/l[0],p=1/l[1],f=1/l[2];if(d>=0?(n=(c[0]-h[0])*d,i=(u[0]-h[0])*d):(i=(c[0]-h[0])*d,n=(u[0]-h[0])*d),p>=0?(r=(c[1]-h[1])*p,o=(u[1]-h[1])*p):(o=(c[1]-h[1])*p,r=(u[1]-h[1])*p),n>o||r>i)return null;if((r>n||n!=n)&&(n=r),(o<i||i!=i)&&(i=o),f>=0?(a=(c[2]-h[2])*f,s=(u[2]-h[2])*f):(s=(c[2]-h[2])*f,a=(u[2]-h[2])*f),n>s||a>i)return null;if((a>n||n!=n)&&(n=a),(s<i||i!=i)&&(i=s),i<0)return null;var g=n>=0?n:i;return e||(e=new Qe),De.scaleAndAdd(e.array,h,l,g),e},intersectTriangle:(tn=De.create(),en=De.create(),nn=De.create(),rn=De.create(),function(t,e,n,i,r,o){var a=this.direction.array,s=this.origin.array;t=t.array,e=e.array,n=n.array,De.sub(tn,e,t),De.sub(en,n,t),De.cross(rn,en,a);var l=De.dot(tn,rn);if(i){if(l>-1e-5)return null}else if(l>-1e-5&&l<an)return null;De.sub(nn,s,t);var h=De.dot(rn,nn)/l;if(h<0||h>1)return null;De.cross(rn,tn,nn);var c=De.dot(a,rn)/l;if(c<0||c>1||h+c>1)return null;De.cross(rn,tn,en);var u=-De.dot(nn,rn)/l;return u<0?null:(r||(r=new Qe),o&&Qe.set(o,1-h-c,h,c),De.scaleAndAdd(r.array,s,a,u),r)}),applyTransform:function(t){Qe.add(this.direction,this.direction,this.origin),Qe.transformMat4(this.origin,this.origin,t),Qe.transformMat4(this.direction,this.direction,t),Qe.sub(this.direction,this.direction,this.origin),Qe.normalize(this.direction,this.direction)},copy:function(t){Qe.copy(this.origin,t.origin),Qe.copy(this.direction,t.direction)},clone:function(){var t=new sn;return t.copy(this),t}};const ln=sn;var hn={create:function(){var t=new qt(4);return t[0]=0,t[1]=0,t[2]=0,t[3]=0,t},clone:function(t){var e=new qt(4);return e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[3],e},fromValues:function(t,e,n,i){var r=new qt(4);return r[0]=t,r[1]=e,r[2]=n,r[3]=i,r},copy:function(t,e){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3],t},set:function(t,e,n,i,r){return t[0]=e,t[1]=n,t[2]=i,t[3]=r,t},add:function(t,e,n){return t[0]=e[0]+n[0],t[1]=e[1]+n[1],t[2]=e[2]+n[2],t[3]=e[3]+n[3],t},subtract:function(t,e,n){return t[0]=e[0]-n[0],t[1]=e[1]-n[1],t[2]=e[2]-n[2],t[3]=e[3]-n[3],t}};hn.sub=hn.subtract,hn.multiply=function(t,e,n){return t[0]=e[0]*n[0],t[1]=e[1]*n[1],t[2]=e[2]*n[2],t[3]=e[3]*n[3],t},hn.mul=hn.multiply,hn.divide=function(t,e,n){return t[0]=e[0]/n[0],t[1]=e[1]/n[1],t[2]=e[2]/n[2],t[3]=e[3]/n[3],t},hn.div=hn.divide,hn.min=function(t,e,n){return t[0]=Math.min(e[0],n[0]),t[1]=Math.min(e[1],n[1]),t[2]=Math.min(e[2],n[2]),t[3]=Math.min(e[3],n[3]),t},hn.max=function(t,e,n){return t[0]=Math.max(e[0],n[0]),t[1]=Math.max(e[1],n[1]),t[2]=Math.max(e[2],n[2]),t[3]=Math.max(e[3],n[3]),t},hn.scale=function(t,e,n){return t[0]=e[0]*n,t[1]=e[1]*n,t[2]=e[2]*n,t[3]=e[3]*n,t},hn.scaleAndAdd=function(t,e,n,i){return t[0]=e[0]+n[0]*i,t[1]=e[1]+n[1]*i,t[2]=e[2]+n[2]*i,t[3]=e[3]+n[3]*i,t},hn.distance=function(t,e){var n=e[0]-t[0],i=e[1]-t[1],r=e[2]-t[2],o=e[3]-t[3];return Math.sqrt(n*n+i*i+r*r+o*o)},hn.dist=hn.distance,hn.squaredDistance=function(t,e){var n=e[0]-t[0],i=e[1]-t[1],r=e[2]-t[2],o=e[3]-t[3];return n*n+i*i+r*r+o*o},hn.sqrDist=hn.squaredDistance,hn.length=function(t){var e=t[0],n=t[1],i=t[2],r=t[3];return Math.sqrt(e*e+n*n+i*i+r*r)},hn.len=hn.length,hn.squaredLength=function(t){var e=t[0],n=t[1],i=t[2],r=t[3];return e*e+n*n+i*i+r*r},hn.sqrLen=hn.squaredLength,hn.negate=function(t,e){return t[0]=-e[0],t[1]=-e[1],t[2]=-e[2],t[3]=-e[3],t},hn.inverse=function(t,e){return t[0]=1/e[0],t[1]=1/e[1],t[2]=1/e[2],t[3]=1/e[3],t},hn.normalize=function(t,e){var n=e[0],i=e[1],r=e[2],o=e[3],a=n*n+i*i+r*r+o*o;return a>0&&(a=1/Math.sqrt(a),t[0]=e[0]*a,t[1]=e[1]*a,t[2]=e[2]*a,t[3]=e[3]*a),t},hn.dot=function(t,e){return t[0]*e[0]+t[1]*e[1]+t[2]*e[2]+t[3]*e[3]},hn.lerp=function(t,e,n,i){var r=e[0],o=e[1],a=e[2],s=e[3];return t[0]=r+i*(n[0]-r),t[1]=o+i*(n[1]-o),t[2]=a+i*(n[2]-a),t[3]=s+i*(n[3]-s),t},hn.random=function(t,e){return e=e||1,t[0]=Xt(),t[1]=Xt(),t[2]=Xt(),t[3]=Xt(),hn.normalize(t,t),hn.scale(t,t,e),t},hn.transformMat4=function(t,e,n){var i=e[0],r=e[1],o=e[2],a=e[3];return t[0]=n[0]*i+n[4]*r+n[8]*o+n[12]*a,t[1]=n[1]*i+n[5]*r+n[9]*o+n[13]*a,t[2]=n[2]*i+n[6]*r+n[10]*o+n[14]*a,t[3]=n[3]*i+n[7]*r+n[11]*o+n[15]*a,t},hn.transformQuat=function(t,e,n){var i=e[0],r=e[1],o=e[2],a=n[0],s=n[1],l=n[2],h=n[3],c=h*i+s*o-l*r,u=h*r+l*i-a*o,d=h*o+a*r-s*i,p=-a*i-s*r-l*o;return t[0]=c*h+p*-a+u*-l-d*-s,t[1]=u*h+p*-s+d*-a-c*-l,t[2]=d*h+p*-l+c*-s-u*-a,t},hn.forEach=function(){var t=hn.create();return function(e,n,i,r,o,a){var s,l;for(n||(n=4),i||(i=0),l=r?Math.min(r*n+i,e.length):e.length,s=i;s<l;s+=n)t[0]=e[s],t[1]=e[s+1],t[2]=e[s+2],t[3]=e[s+3],o(t,t,a),e[s]=t[0],e[s+1]=t[1],e[s+2]=t[2],e[s+3]=t[3];return e}}();const cn=hn;var un={create:function(){var t=new qt(9);return t[0]=1,t[1]=0,t[2]=0,t[3]=0,t[4]=1,t[5]=0,t[6]=0,t[7]=0,t[8]=1,t},fromMat4:function(t,e){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[4],t[4]=e[5],t[5]=e[6],t[6]=e[8],t[7]=e[9],t[8]=e[10],t},clone:function(t){var e=new qt(9);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[6]=t[6],e[7]=t[7],e[8]=t[8],e},copy:function(t,e){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3],t[4]=e[4],t[5]=e[5],t[6]=e[6],t[7]=e[7],t[8]=e[8],t},identity:function(t){return t[0]=1,t[1]=0,t[2]=0,t[3]=0,t[4]=1,t[5]=0,t[6]=0,t[7]=0,t[8]=1,t},transpose:function(t,e){if(t===e){var n=e[1],i=e[2],r=e[5];t[1]=e[3],t[2]=e[6],t[3]=n,t[5]=e[7],t[6]=i,t[7]=r}else t[0]=e[0],t[1]=e[3],t[2]=e[6],t[3]=e[1],t[4]=e[4],t[5]=e[7],t[6]=e[2],t[7]=e[5],t[8]=e[8];return t},invert:function(t,e){var n=e[0],i=e[1],r=e[2],o=e[3],a=e[4],s=e[5],l=e[6],h=e[7],c=e[8],u=c*a-s*h,d=-c*o+s*l,p=h*o-a*l,f=n*u+i*d+r*p;return f?(f=1/f,t[0]=u*f,t[1]=(-c*i+r*h)*f,t[2]=(s*i-r*a)*f,t[3]=d*f,t[4]=(c*n-r*l)*f,t[5]=(-s*n+r*o)*f,t[6]=p*f,t[7]=(-h*n+i*l)*f,t[8]=(a*n-i*o)*f,t):null},adjoint:function(t,e){var n=e[0],i=e[1],r=e[2],o=e[3],a=e[4],s=e[5],l=e[6],h=e[7],c=e[8];return t[0]=a*c-s*h,t[1]=r*h-i*c,t[2]=i*s-r*a,t[3]=s*l-o*c,t[4]=n*c-r*l,t[5]=r*o-n*s,t[6]=o*h-a*l,t[7]=i*l-n*h,t[8]=n*a-i*o,t},determinant:function(t){var e=t[0],n=t[1],i=t[2],r=t[3],o=t[4],a=t[5],s=t[6],l=t[7],h=t[8];return e*(h*o-a*l)+n*(-h*r+a*s)+i*(l*r-o*s)},multiply:function(t,e,n){var i=e[0],r=e[1],o=e[2],a=e[3],s=e[4],l=e[5],h=e[6],c=e[7],u=e[8],d=n[0],p=n[1],f=n[2],g=n[3],m=n[4],v=n[5],y=n[6],_=n[7],x=n[8];return t[0]=d*i+p*a+f*h,t[1]=d*r+p*s+f*c,t[2]=d*o+p*l+f*u,t[3]=g*i+m*a+v*h,t[4]=g*r+m*s+v*c,t[5]=g*o+m*l+v*u,t[6]=y*i+_*a+x*h,t[7]=y*r+_*s+x*c,t[8]=y*o+_*l+x*u,t}};un.mul=un.multiply,un.translate=function(t,e,n){var i=e[0],r=e[1],o=e[2],a=e[3],s=e[4],l=e[5],h=e[6],c=e[7],u=e[8],d=n[0],p=n[1];return t[0]=i,t[1]=r,t[2]=o,t[3]=a,t[4]=s,t[5]=l,t[6]=d*i+p*a+h,t[7]=d*r+p*s+c,t[8]=d*o+p*l+u,t},un.rotate=function(t,e,n){var i=e[0],r=e[1],o=e[2],a=e[3],s=e[4],l=e[5],h=e[6],c=e[7],u=e[8],d=Math.sin(n),p=Math.cos(n);return t[0]=p*i+d*a,t[1]=p*r+d*s,t[2]=p*o+d*l,t[3]=p*a-d*i,t[4]=p*s-d*r,t[5]=p*l-d*o,t[6]=h,t[7]=c,t[8]=u,t},un.scale=function(t,e,n){var i=n[0],r=n[1];return t[0]=i*e[0],t[1]=i*e[1],t[2]=i*e[2],t[3]=r*e[3],t[4]=r*e[4],t[5]=r*e[5],t[6]=e[6],t[7]=e[7],t[8]=e[8],t},un.fromMat2d=function(t,e){return t[0]=e[0],t[1]=e[1],t[2]=0,t[3]=e[2],t[4]=e[3],t[5]=0,t[6]=e[4],t[7]=e[5],t[8]=1,t},un.fromQuat=function(t,e){var n=e[0],i=e[1],r=e[2],o=e[3],a=n+n,s=i+i,l=r+r,h=n*a,c=i*a,u=i*s,d=r*a,p=r*s,f=r*l,g=o*a,m=o*s,v=o*l;return t[0]=1-u-f,t[3]=c-v,t[6]=d+m,t[1]=c+v,t[4]=1-h-f,t[7]=p-g,t[2]=d-m,t[5]=p+g,t[8]=1-h-u,t},un.normalFromMat4=function(t,e){var n=e[0],i=e[1],r=e[2],o=e[3],a=e[4],s=e[5],l=e[6],h=e[7],c=e[8],u=e[9],d=e[10],p=e[11],f=e[12],g=e[13],m=e[14],v=e[15],y=n*s-i*a,_=n*l-r*a,x=n*h-o*a,b=i*l-r*s,w=i*h-o*s,S=r*h-o*l,T=c*g-u*f,M=c*m-d*f,A=c*v-p*f,C=u*m-d*g,I=u*v-p*g,E=d*v-p*m,k=y*E-_*I+x*C+b*A-w*M+S*T;return k?(k=1/k,t[0]=(s*E-l*I+h*C)*k,t[1]=(l*A-a*E-h*M)*k,t[2]=(a*I-s*A+h*T)*k,t[3]=(r*I-i*E-o*C)*k,t[4]=(n*E-r*A+o*M)*k,t[5]=(i*A-n*I-o*T)*k,t[6]=(g*S-m*w+v*b)*k,t[7]=(m*x-f*S-v*_)*k,t[8]=(f*w-g*x+v*y)*k,t):null},un.frob=function(t){return Math.sqrt(Math.pow(t[0],2)+Math.pow(t[1],2)+Math.pow(t[2],2)+Math.pow(t[3],2)+Math.pow(t[4],2)+Math.pow(t[5],2)+Math.pow(t[6],2)+Math.pow(t[7],2)+Math.pow(t[8],2))};const dn=un;var pn,fn,gn,mn,vn={};vn.create=function(){var t=new qt(4);return t[0]=0,t[1]=0,t[2]=0,t[3]=1,t},vn.rotationTo=(pn=De.create(),fn=De.fromValues(1,0,0),gn=De.fromValues(0,1,0),function(t,e,n){var i=De.dot(e,n);return i<-.999999?(De.cross(pn,fn,e),De.length(pn)<1e-6&&De.cross(pn,gn,e),De.normalize(pn,pn),vn.setAxisAngle(t,pn,Math.PI),t):i>.999999?(t[0]=0,t[1]=0,t[2]=0,t[3]=1,t):(De.cross(pn,e,n),t[0]=pn[0],t[1]=pn[1],t[2]=pn[2],t[3]=1+i,vn.normalize(t,t))}),vn.setAxes=(mn=dn.create(),function(t,e,n,i){return mn[0]=n[0],mn[3]=n[1],mn[6]=n[2],mn[1]=i[0],mn[4]=i[1],mn[7]=i[2],mn[2]=-e[0],mn[5]=-e[1],mn[8]=-e[2],vn.normalize(t,vn.fromMat3(t,mn))}),vn.clone=cn.clone,vn.fromValues=cn.fromValues,vn.copy=cn.copy,vn.set=cn.set,vn.identity=function(t){return t[0]=0,t[1]=0,t[2]=0,t[3]=1,t},vn.setAxisAngle=function(t,e,n){n*=.5;var i=Math.sin(n);return t[0]=i*e[0],t[1]=i*e[1],t[2]=i*e[2],t[3]=Math.cos(n),t},vn.add=cn.add,vn.multiply=function(t,e,n){var i=e[0],r=e[1],o=e[2],a=e[3],s=n[0],l=n[1],h=n[2],c=n[3];return t[0]=i*c+a*s+r*h-o*l,t[1]=r*c+a*l+o*s-i*h,t[2]=o*c+a*h+i*l-r*s,t[3]=a*c-i*s-r*l-o*h,t},vn.mul=vn.multiply,vn.scale=cn.scale,vn.rotateX=function(t,e,n){n*=.5;var i=e[0],r=e[1],o=e[2],a=e[3],s=Math.sin(n),l=Math.cos(n);return t[0]=i*l+a*s,t[1]=r*l+o*s,t[2]=o*l-r*s,t[3]=a*l-i*s,t},vn.rotateY=function(t,e,n){n*=.5;var i=e[0],r=e[1],o=e[2],a=e[3],s=Math.sin(n),l=Math.cos(n);return t[0]=i*l-o*s,t[1]=r*l+a*s,t[2]=o*l+i*s,t[3]=a*l-r*s,t},vn.rotateZ=function(t,e,n){n*=.5;var i=e[0],r=e[1],o=e[2],a=e[3],s=Math.sin(n),l=Math.cos(n);return t[0]=i*l+r*s,t[1]=r*l-i*s,t[2]=o*l+a*s,t[3]=a*l-o*s,t},vn.calculateW=function(t,e){var n=e[0],i=e[1],r=e[2];return t[0]=n,t[1]=i,t[2]=r,t[3]=Math.sqrt(Math.abs(1-n*n-i*i-r*r)),t},vn.dot=cn.dot,vn.lerp=cn.lerp,vn.slerp=function(t,e,n,i){var r,o,a,s,l,h=e[0],c=e[1],u=e[2],d=e[3],p=n[0],f=n[1],g=n[2],m=n[3];return(o=h*p+c*f+u*g+d*m)<0&&(o=-o,p=-p,f=-f,g=-g,m=-m),1-o>1e-6?(r=Math.acos(o),a=Math.sin(r),s=Math.sin((1-i)*r)/a,l=Math.sin(i*r)/a):(s=1-i,l=i),t[0]=s*h+l*p,t[1]=s*c+l*f,t[2]=s*u+l*g,t[3]=s*d+l*m,t},vn.invert=function(t,e){var n=e[0],i=e[1],r=e[2],o=e[3],a=n*n+i*i+r*r+o*o,s=a?1/a:0;return t[0]=-n*s,t[1]=-i*s,t[2]=-r*s,t[3]=o*s,t},vn.conjugate=function(t,e){return t[0]=-e[0],t[1]=-e[1],t[2]=-e[2],t[3]=e[3],t},vn.length=cn.length,vn.len=vn.length,vn.squaredLength=cn.squaredLength,vn.sqrLen=vn.squaredLength,vn.normalize=cn.normalize,vn.fromMat3=function(t,e){var n,i=e[0]+e[4]+e[8];if(i>0)n=Math.sqrt(i+1),t[3]=.5*n,n=.5/n,t[0]=(e[5]-e[7])*n,t[1]=(e[6]-e[2])*n,t[2]=(e[1]-e[3])*n;else{var r=0;e[4]>e[0]&&(r=1),e[8]>e[3*r+r]&&(r=2);var o=(r+1)%3,a=(r+2)%3;n=Math.sqrt(e[3*r+r]-e[3*o+o]-e[3*a+a]+1),t[r]=.5*n,n=.5/n,t[3]=(e[3*o+a]-e[3*a+o])*n,t[o]=(e[3*o+r]+e[3*r+o])*n,t[a]=(e[3*a+r]+e[3*r+a])*n}return t};const yn=vn;var _n,xn,bn,wn,Sn=function(){this._axisX=new Qe,this._axisY=new Qe,this._axisZ=new Qe,this.array=ke.create(),this._dirty=!0};Sn.prototype={constructor:Sn,setArray:function(t){for(var e=0;e<this.array.length;e++)this.array[e]=t[e];return this._dirty=!0,this},adjoint:function(){return ke.adjoint(this.array,this.array),this._dirty=!0,this},clone:function(){return(new Sn).copy(this)},copy:function(t){return ke.copy(this.array,t.array),this._dirty=!0,this},determinant:function(){return ke.determinant(this.array)},fromQuat:function(t){return ke.fromQuat(this.array,t.array),this._dirty=!0,this},fromRotationTranslation:function(t,e){return ke.fromRotationTranslation(this.array,t.array,e.array),this._dirty=!0,this},fromMat2d:function(t){return Sn.fromMat2d(this,t),this},frustum:function(t,e,n,i,r,o){return ke.frustum(this.array,t,e,n,i,r,o),this._dirty=!0,this},identity:function(){return ke.identity(this.array),this._dirty=!0,this},invert:function(){return ke.invert(this.array,this.array),this._dirty=!0,this},lookAt:function(t,e,n){return ke.lookAt(this.array,t.array,e.array,n.array),this._dirty=!0,this},mul:function(t){return ke.mul(this.array,this.array,t.array),this._dirty=!0,this},mulLeft:function(t){return ke.mul(this.array,t.array,this.array),this._dirty=!0,this},multiply:function(t){return ke.multiply(this.array,this.array,t.array),this._dirty=!0,this},multiplyLeft:function(t){return ke.multiply(this.array,t.array,this.array),this._dirty=!0,this},ortho:function(t,e,n,i,r,o){return ke.ortho(this.array,t,e,n,i,r,o),this._dirty=!0,this},perspective:function(t,e,n,i){return ke.perspective(this.array,t,e,n,i),this._dirty=!0,this},rotate:function(t,e){return ke.rotate(this.array,this.array,t,e.array),this._dirty=!0,this},rotateX:function(t){return ke.rotateX(this.array,this.array,t),this._dirty=!0,this},rotateY:function(t){return ke.rotateY(this.array,this.array,t),this._dirty=!0,this},rotateZ:function(t){return ke.rotateZ(this.array,this.array,t),this._dirty=!0,this},scale:function(t){return ke.scale(this.array,this.array,t.array),this._dirty=!0,this},translate:function(t){return ke.translate(this.array,this.array,t.array),this._dirty=!0,this},transpose:function(){return ke.transpose(this.array,this.array),this._dirty=!0,this},decomposeMatrix:(_n=De.create(),xn=De.create(),bn=De.create(),wn=dn.create(),function(t,e,n){var i=this.array;De.set(_n,i[0],i[1],i[2]),De.set(xn,i[4],i[5],i[6]),De.set(bn,i[8],i[9],i[10]);var r=De.length(_n),o=De.length(xn),a=De.length(bn);this.determinant()<0&&(r=-r),t&&t.set(r,o,a),n.set(i[12],i[13],i[14]),dn.fromMat4(wn,i),wn[0]/=r,wn[1]/=r,wn[2]/=r,wn[3]/=o,wn[4]/=o,wn[5]/=o,wn[6]/=a,wn[7]/=a,wn[8]/=a,yn.fromMat3(e.array,wn),yn.normalize(e.array,e.array),e._dirty=!0,n._dirty=!0}),toString:function(){return"["+Array.prototype.join.call(this.array,",")+"]"},toArray:function(){return Array.prototype.slice.call(this.array)}};var Tn=Object.defineProperty;if(Tn){var Mn=Sn.prototype;Tn(Mn,"z",{get:function(){var t=this.array;return this._axisZ.set(t[8],t[9],t[10]),this._axisZ},set:function(t){var e=this.array;t=t.array,e[8]=t[0],e[9]=t[1],e[10]=t[2],this._dirty=!0}}),Tn(Mn,"y",{get:function(){var t=this.array;return this._axisY.set(t[4],t[5],t[6]),this._axisY},set:function(t){var e=this.array;t=t.array,e[4]=t[0],e[5]=t[1],e[6]=t[2],this._dirty=!0}}),Tn(Mn,"x",{get:function(){var t=this.array;return this._axisX.set(t[0],t[1],t[2]),this._axisX},set:function(t){var e=this.array;t=t.array,e[0]=t[0],e[1]=t[1],e[2]=t[2],this._dirty=!0}})}Sn.adjoint=function(t,e){return ke.adjoint(t.array,e.array),t._dirty=!0,t},Sn.copy=function(t,e){return ke.copy(t.array,e.array),t._dirty=!0,t},Sn.determinant=function(t){return ke.determinant(t.array)},Sn.identity=function(t){return ke.identity(t.array),t._dirty=!0,t},Sn.ortho=function(t,e,n,i,r,o,a){return ke.ortho(t.array,e,n,i,r,o,a),t._dirty=!0,t},Sn.perspective=function(t,e,n,i,r){return ke.perspective(t.array,e,n,i,r),t._dirty=!0,t},Sn.lookAt=function(t,e,n,i){return ke.lookAt(t.array,e.array,n.array,i.array),t._dirty=!0,t},Sn.invert=function(t,e){return ke.invert(t.array,e.array),t._dirty=!0,t},Sn.multiply=Sn.mul=function(t,e,n){return ke.mul(t.array,e.array,n.array),t._dirty=!0,t},Sn.fromQuat=function(t,e){return ke.fromQuat(t.array,e.array),t._dirty=!0,t},Sn.fromRotationTranslation=function(t,e,n){return ke.fromRotationTranslation(t.array,e.array,n.array),t._dirty=!0,t},Sn.fromMat2d=function(t,e){t._dirty=!0;e=e.array;return(t=t.array)[0]=e[0],t[4]=e[2],t[12]=e[4],t[1]=e[1],t[5]=e[3],t[13]=e[5],t},Sn.rotate=function(t,e,n,i){return ke.rotate(t.array,e.array,n,i.array),t._dirty=!0,t},Sn.rotateX=function(t,e,n){return ke.rotateX(t.array,e.array,n),t._dirty=!0,t},Sn.rotateY=function(t,e,n){return ke.rotateY(t.array,e.array,n),t._dirty=!0,t},Sn.rotateZ=function(t,e,n){return ke.rotateZ(t.array,e.array,n),t._dirty=!0,t},Sn.scale=function(t,e,n){return ke.scale(t.array,e.array,n.array),t._dirty=!0,t},Sn.transpose=function(t,e){return ke.transpose(t.array,e.array),t._dirty=!0,t},Sn.translate=function(t,e,n){return ke.translate(t.array,e.array,n.array),t._dirty=!0,t};const An=Sn;var Cn=function(t,e,n,i){t=t||0,e=e||0,n=n||0,i=void 0===i?1:i,this.array=yn.fromValues(t,e,n,i),this._dirty=!0};Cn.prototype={constructor:Cn,add:function(t){return yn.add(this.array,this.array,t.array),this._dirty=!0,this},calculateW:function(){return yn.calculateW(this.array,this.array),this._dirty=!0,this},set:function(t,e,n,i){return this.array[0]=t,this.array[1]=e,this.array[2]=n,this.array[3]=i,this._dirty=!0,this},setArray:function(t){return this.array[0]=t[0],this.array[1]=t[1],this.array[2]=t[2],this.array[3]=t[3],this._dirty=!0,this},clone:function(){return new Cn(this.x,this.y,this.z,this.w)},conjugate:function(){return yn.conjugate(this.array,this.array),this._dirty=!0,this},copy:function(t){return yn.copy(this.array,t.array),this._dirty=!0,this},dot:function(t){return yn.dot(this.array,t.array)},fromMat3:function(t){return yn.fromMat3(this.array,t.array),this._dirty=!0,this},fromMat4:function(){var t=dn.create();return function(e){return dn.fromMat4(t,e.array),dn.transpose(t,t),yn.fromMat3(this.array,t),this._dirty=!0,this}}(),identity:function(){return yn.identity(this.array),this._dirty=!0,this},invert:function(){return yn.invert(this.array,this.array),this._dirty=!0,this},len:function(){return yn.len(this.array)},length:function(){return yn.length(this.array)},lerp:function(t,e,n){return yn.lerp(this.array,t.array,e.array,n),this._dirty=!0,this},mul:function(t){return yn.mul(this.array,this.array,t.array),this._dirty=!0,this},mulLeft:function(t){return yn.multiply(this.array,t.array,this.array),this._dirty=!0,this},multiply:function(t){return yn.multiply(this.array,this.array,t.array),this._dirty=!0,this},multiplyLeft:function(t){return yn.multiply(this.array,t.array,this.array),this._dirty=!0,this},normalize:function(){return yn.normalize(this.array,this.array),this._dirty=!0,this},rotateX:function(t){return yn.rotateX(this.array,this.array,t),this._dirty=!0,this},rotateY:function(t){return yn.rotateY(this.array,this.array,t),this._dirty=!0,this},rotateZ:function(t){return yn.rotateZ(this.array,this.array,t),this._dirty=!0,this},rotationTo:function(t,e){return yn.rotationTo(this.array,t.array,e.array),this._dirty=!0,this},setAxes:function(t,e,n){return yn.setAxes(this.array,t.array,e.array,n.array),this._dirty=!0,this},setAxisAngle:function(t,e){return yn.setAxisAngle(this.array,t.array,e),this._dirty=!0,this},slerp:function(t,e,n){return yn.slerp(this.array,t.array,e.array,n),this._dirty=!0,this},sqrLen:function(){return yn.sqrLen(this.array)},squaredLength:function(){return yn.squaredLength(this.array)},fromEuler:function(t,e){return Cn.fromEuler(this,t,e)},toString:function(){return"["+Array.prototype.join.call(this.array,",")+"]"},toArray:function(){return Array.prototype.slice.call(this.array)}};var In=Object.defineProperty;if(In){var En=Cn.prototype;In(En,"x",{get:function(){return this.array[0]},set:function(t){this.array[0]=t,this._dirty=!0}}),In(En,"y",{get:function(){return this.array[1]},set:function(t){this.array[1]=t,this._dirty=!0}}),In(En,"z",{get:function(){return this.array[2]},set:function(t){this.array[2]=t,this._dirty=!0}}),In(En,"w",{get:function(){return this.array[3]},set:function(t){this.array[3]=t,this._dirty=!0}})}Cn.add=function(t,e,n){return yn.add(t.array,e.array,n.array),t._dirty=!0,t},Cn.set=function(t,e,n,i,r){yn.set(t.array,e,n,i,r),t._dirty=!0},Cn.copy=function(t,e){return yn.copy(t.array,e.array),t._dirty=!0,t},Cn.calculateW=function(t,e){return yn.calculateW(t.array,e.array),t._dirty=!0,t},Cn.conjugate=function(t,e){return yn.conjugate(t.array,e.array),t._dirty=!0,t},Cn.identity=function(t){return yn.identity(t.array),t._dirty=!0,t},Cn.invert=function(t,e){return yn.invert(t.array,e.array),t._dirty=!0,t},Cn.dot=function(t,e){return yn.dot(t.array,e.array)},Cn.len=function(t){return yn.length(t.array)},Cn.lerp=function(t,e,n,i){return yn.lerp(t.array,e.array,n.array,i),t._dirty=!0,t},Cn.slerp=function(t,e,n,i){return yn.slerp(t.array,e.array,n.array,i),t._dirty=!0,t},Cn.multiply=Cn.mul=function(t,e,n){return yn.multiply(t.array,e.array,n.array),t._dirty=!0,t},Cn.rotateX=function(t,e,n){return yn.rotateX(t.array,e.array,n),t._dirty=!0,t},Cn.rotateY=function(t,e,n){return yn.rotateY(t.array,e.array,n),t._dirty=!0,t},Cn.rotateZ=function(t,e,n){return yn.rotateZ(t.array,e.array,n),t._dirty=!0,t},Cn.setAxisAngle=function(t,e,n){return yn.setAxisAngle(t.array,e.array,n),t._dirty=!0,t},Cn.normalize=function(t,e){return yn.normalize(t.array,e.array),t._dirty=!0,t},Cn.squaredLength=Cn.sqrLen=function(t){return yn.sqrLen(t.array)},Cn.fromMat3=function(t,e){return yn.fromMat3(t.array,e.array),t._dirty=!0,t},Cn.setAxes=function(t,e,n,i){return yn.setAxes(t.array,e.array,n.array,i.array),t._dirty=!0,t},Cn.rotationTo=function(t,e,n){return yn.rotationTo(t.array,e.array,n.array),t._dirty=!0,t},Cn.fromEuler=function(t,e,n){t._dirty=!0,e=e.array;var i=t.array,r=Math.cos(e[0]/2),o=Math.cos(e[1]/2),a=Math.cos(e[2]/2),s=Math.sin(e[0]/2),l=Math.sin(e[1]/2),h=Math.sin(e[2]/2);switch(n=(n||"XYZ").toUpperCase()){case"XYZ":i[0]=s*o*a+r*l*h,i[1]=r*l*a-s*o*h,i[2]=r*o*h+s*l*a,i[3]=r*o*a-s*l*h;break;case"YXZ":i[0]=s*o*a+r*l*h,i[1]=r*l*a-s*o*h,i[2]=r*o*h-s*l*a,i[3]=r*o*a+s*l*h;break;case"ZXY":i[0]=s*o*a-r*l*h,i[1]=r*l*a+s*o*h,i[2]=r*o*h+s*l*a,i[3]=r*o*a-s*l*h;break;case"ZYX":i[0]=s*o*a-r*l*h,i[1]=r*l*a+s*o*h,i[2]=r*o*h-s*l*a,i[3]=r*o*a+s*l*h;break;case"YZX":i[0]=s*o*a+r*l*h,i[1]=r*l*a+s*o*h,i[2]=r*o*h-s*l*a,i[3]=r*o*a-s*l*h;break;case"XZY":i[0]=s*o*a-r*l*h,i[1]=r*l*a-s*o*h,i[2]=r*o*h+s*l*a,i[3]=r*o*a+s*l*h}};const kn=Cn;var Ln,Dn,Pn,Rn,On,Nn,Fn=De.set,Bn=De.copy,zn=function(t,e){this.min=t||new Qe(1/0,1/0,1/0),this.max=e||new Qe(-1/0,-1/0,-1/0),this.vertices=null};zn.prototype={constructor:zn,updateFromVertices:function(t){if(t.length>0){var e=this.min,n=this.max,i=e.array,r=n.array;Bn(i,t[0]),Bn(r,t[0]);for(var o=1;o<t.length;o++){var a=t[o];a[0]<i[0]&&(i[0]=a[0]),a[1]<i[1]&&(i[1]=a[1]),a[2]<i[2]&&(i[2]=a[2]),a[0]>r[0]&&(r[0]=a[0]),a[1]>r[1]&&(r[1]=a[1]),a[2]>r[2]&&(r[2]=a[2])}e._dirty=!0,n._dirty=!0}},union:function(t){var e=this.min,n=this.max;return De.min(e.array,e.array,t.min.array),De.max(n.array,n.array,t.max.array),e._dirty=!0,n._dirty=!0,this},intersection:function(t){var e=this.min,n=this.max;return De.max(e.array,e.array,t.min.array),De.min(n.array,n.array,t.max.array),e._dirty=!0,n._dirty=!0,this},intersectBoundingBox:function(t){var e=this.min.array,n=this.max.array,i=t.min.array,r=t.max.array;return!(e[0]>r[0]||e[1]>r[1]||e[2]>r[2]||n[0]<i[0]||n[1]<i[1]||n[2]<i[2])},containBoundingBox:function(t){var e=this.min.array,n=this.max.array,i=t.min.array,r=t.max.array;return e[0]<=i[0]&&e[1]<=i[1]&&e[2]<=i[2]&&n[0]>=r[0]&&n[1]>=r[1]&&n[2]>=r[2]},containPoint:function(t){var e=this.min.array,n=this.max.array,i=t.array;return e[0]<=i[0]&&e[1]<=i[1]&&e[2]<=i[2]&&n[0]>=i[0]&&n[1]>=i[1]&&n[2]>=i[2]},isFinite:function(){var t=this.min.array,e=this.max.array;return isFinite(t[0])&&isFinite(t[1])&&isFinite(t[2])&&isFinite(e[0])&&isFinite(e[1])&&isFinite(e[2])},applyTransform:function(t){this.transformFrom(this,t)},transformFrom:(Ln=De.create(),Dn=De.create(),Pn=De.create(),Rn=De.create(),On=De.create(),Nn=De.create(),function(t,e){var n=t.min.array,i=t.max.array,r=e.array;return Ln[0]=r[0]*n[0],Ln[1]=r[1]*n[0],Ln[2]=r[2]*n[0],Dn[0]=r[0]*i[0],Dn[1]=r[1]*i[0],Dn[2]=r[2]*i[0],Pn[0]=r[4]*n[1],Pn[1]=r[5]*n[1],Pn[2]=r[6]*n[1],Rn[0]=r[4]*i[1],Rn[1]=r[5]*i[1],Rn[2]=r[6]*i[1],On[0]=r[8]*n[2],On[1]=r[9]*n[2],On[2]=r[10]*n[2],Nn[0]=r[8]*i[2],Nn[1]=r[9]*i[2],Nn[2]=r[10]*i[2],n=this.min.array,i=this.max.array,n[0]=Math.min(Ln[0],Dn[0])+Math.min(Pn[0],Rn[0])+Math.min(On[0],Nn[0])+r[12],n[1]=Math.min(Ln[1],Dn[1])+Math.min(Pn[1],Rn[1])+Math.min(On[1],Nn[1])+r[13],n[2]=Math.min(Ln[2],Dn[2])+Math.min(Pn[2],Rn[2])+Math.min(On[2],Nn[2])+r[14],i[0]=Math.max(Ln[0],Dn[0])+Math.max(Pn[0],Rn[0])+Math.max(On[0],Nn[0])+r[12],i[1]=Math.max(Ln[1],Dn[1])+Math.max(Pn[1],Rn[1])+Math.max(On[1],Nn[1])+r[13],i[2]=Math.max(Ln[2],Dn[2])+Math.max(Pn[2],Rn[2])+Math.max(On[2],Nn[2])+r[14],this.min._dirty=!0,this.max._dirty=!0,this}),applyProjection:function(t){var e=this.min.array,n=this.max.array,i=t.array,r=e[0],o=e[1],a=e[2],s=n[0],l=n[1],h=e[2],c=n[0],u=n[1],d=n[2];if(1===i[15])e[0]=i[0]*r+i[12],e[1]=i[5]*o+i[13],n[2]=i[10]*a+i[14],n[0]=i[0]*c+i[12],n[1]=i[5]*u+i[13],e[2]=i[10]*d+i[14];else{var p=-1/a;e[0]=i[0]*r*p,e[1]=i[5]*o*p,n[2]=(i[10]*a+i[14])*p,p=-1/h,n[0]=i[0]*s*p,n[1]=i[5]*l*p,p=-1/d,e[2]=(i[10]*d+i[14])*p}return this.min._dirty=!0,this.max._dirty=!0,this},updateVertices:function(){var t=this.vertices;if(!t){t=[];for(var e=0;e<8;e++)t[e]=De.fromValues(0,0,0);this.vertices=t}var n=this.min.array,i=this.max.array;return Fn(t[0],n[0],n[1],n[2]),Fn(t[1],n[0],i[1],n[2]),Fn(t[2],i[0],n[1],n[2]),Fn(t[3],i[0],i[1],n[2]),Fn(t[4],n[0],n[1],i[2]),Fn(t[5],n[0],i[1],i[2]),Fn(t[6],i[0],n[1],i[2]),Fn(t[7],i[0],i[1],i[2]),this},copy:function(t){var e=this.min,n=this.max;return Bn(e.array,t.min.array),Bn(n.array,t.max.array),e._dirty=!0,n._dirty=!0,this},clone:function(){var t=new zn;return t.copy(this),t}};const Gn=zn;var Vn,jn,Hn=0,Wn=y.extend({name:"",position:null,rotation:null,scale:null,worldTransform:null,localTransform:null,autoUpdateLocalTransform:!0,_parent:null,_scene:null,_needsUpdateWorldTransform:!0,_inIterating:!1,__depth:0},(function(){this.name||(this.name=(this.type||"NODE")+"_"+Hn++),this.position||(this.position=new Qe),this.rotation||(this.rotation=new kn),this.scale||(this.scale=new Qe(1,1,1)),this.worldTransform=new An,this.localTransform=new An,this._children=[]}),{target:null,invisible:!1,isSkinnedMesh:function(){return!1},isRenderable:function(){return!1},setName:function(t){var e=this._scene;if(e){var n=e._nodeRepository;delete n[this.name],n[t]=this}this.name=t},add:function(t){var e=t._parent;if(e!==this){e&&e.remove(t),t._parent=this,this._children.push(t);var n=this._scene;n&&n!==t.scene&&t.traverse(this._addSelfToScene,this),t._needsUpdateWorldTransform=!0}},remove:function(t){var e=this._children,n=e.indexOf(t);n<0||(e.splice(n,1),t._parent=null,this._scene&&t.traverse(this._removeSelfFromScene,this))},removeAll:function(){for(var t=this._children,e=0;e<t.length;e++)t[e]._parent=null,this._scene&&t[e].traverse(this._removeSelfFromScene,this);this._children=[]},getScene:function(){return this._scene},getParent:function(){return this._parent},_removeSelfFromScene:function(t){t._scene.removeFromScene(t),t._scene=null},_addSelfToScene:function(t){this._scene.addToScene(t),t._scene=this._scene},isAncestor:function(t){for(var e=t._parent;e;){if(e===this)return!0;e=e._parent}return!1},children:function(){return this._children.slice()},childAt:function(t){return this._children[t]},getChildByName:function(t){for(var e=this._children,n=0;n<e.length;n++)if(e[n].name===t)return e[n]},getDescendantByName:function(t){for(var e=this._children,n=0;n<e.length;n++){var i=e[n];if(i.name===t)return i;var r=i.getDescendantByName(t);if(r)return r}},queryNode:function(t){if(t){for(var e=t.split("/"),n=this,i=0;i<e.length;i++){var r=e[i];if(r){for(var o=!1,a=n._children,s=0;s<a.length;s++){var l=a[s];if(l.name===r){n=l,o=!0;break}}if(!o)return}}return n}},getPath:function(t){if(!this._parent)return"/";for(var e=this._parent,n=this.name;e._parent&&(n=e.name+"/"+n,e._parent!=t);)e=e._parent;return!e._parent&&t?null:n},traverse:function(t,e){t.call(e,this);for(var n=this._children,i=0,r=n.length;i<r;i++)n[i].traverse(t,e)},eachChild:function(t,e){for(var n=this._children,i=0,r=n.length;i<r;i++){var o=n[i];t.call(e,o,i)}},setLocalTransform:function(t){ke.copy(this.localTransform.array,t.array),this.decomposeLocalTransform()},decomposeLocalTransform:function(t){var e=t?null:this.scale;this.localTransform.decomposeMatrix(e,this.rotation,this.position)},setWorldTransform:function(t){ke.copy(this.worldTransform.array,t.array),this.decomposeWorldTransform()},decomposeWorldTransform:(jn=ke.create(),function(t){var e=this.localTransform,n=this.worldTransform;this._parent?(ke.invert(jn,this._parent.worldTransform.array),ke.multiply(e.array,jn,n.array)):ke.copy(e.array,n.array);var i=t?null:this.scale;e.decomposeMatrix(i,this.rotation,this.position)}),transformNeedsUpdate:function(){return this.position._dirty||this.rotation._dirty||this.scale._dirty},updateLocalTransform:function(){var t=this.position,e=this.rotation,n=this.scale;if(this.transformNeedsUpdate()){var i=this.localTransform.array;ke.fromRotationTranslation(i,e.array,t.array),ke.scale(i,i,n.array),e._dirty=!1,n._dirty=!1,t._dirty=!1,this._needsUpdateWorldTransform=!0}},_updateWorldTransformTopDown:function(){var t=this.localTransform.array,e=this.worldTransform.array;this._parent?ke.multiplyAffine(e,this._parent.worldTransform.array,t):ke.copy(e,t)},updateWorldTransform:function(){for(var t=this;t&&t.getParent()&&t.getParent().transformNeedsUpdate();)t=t.getParent();t.update()},update:function(t){this.autoUpdateLocalTransform?this.updateLocalTransform():t=!0,(t||this._needsUpdateWorldTransform)&&(this._updateWorldTransformTopDown(),t=!0,this._needsUpdateWorldTransform=!1);for(var e=this._children,n=0,i=e.length;n<i;n++)e[n].update(t)},getBoundingBox:function(){function t(t){return!t.invisible&&t.geometry}var e=new Gn,n=new An,i=new An;return function(r,o){return o=o||new Gn,r=r||t,this._parent?An.invert(i,this._parent.worldTransform):An.identity(i),this.traverse((function(t){t.geometry&&t.geometry.boundingBox&&(e.copy(t.geometry.boundingBox),An.multiply(n,i,t.worldTransform),e.applyTransform(n),o.union(e))}),this,t),o}}(),getWorldPosition:function(t){this.transformNeedsUpdate()&&this.updateWorldTransform();var e=this.worldTransform.array;if(t){var n=t.array;return n[0]=e[12],n[1]=e[13],n[2]=e[14],t}return new Qe(e[12],e[13],e[14])},clone:function(){var t=new this.constructor,e=this._children;t.setName(this.name),t.position.copy(this.position),t.rotation.copy(this.rotation),t.scale.copy(this.scale);for(var n=0;n<e.length;n++)t.add(e[n].clone());return t},rotateAround:function(){var t=new Qe,e=new An;return function(n,i,r){t.copy(this.position).subtract(n);var o=this.localTransform;o.identity(),o.translate(n),o.rotate(r,i),e.fromRotationTranslation(this.rotation,t),o.multiply(e),o.scale(this.scale),this.decomposeLocalTransform(),this._needsUpdateWorldTransform=!0}}(),lookAt:(Vn=new An,function(t,e){Vn.lookAt(this.position,t,e||this.localTransform.y).invert(),this.setLocalTransform(Vn),this.target=t})});const Un=Wn;var qn,Xn=Un.extend({material:null,geometry:null,mode:E,_renderInfo:null},{__program:null,lightGroup:0,renderOrder:0,culling:!0,cullFace:N,frontFace:z,frustumCulling:!0,receiveShadow:!0,castShadow:!0,ignorePicking:!1,ignorePreZ:!1,ignoreGBuffer:!1,isRenderable:function(){return this.geometry&&this.material&&this.material.shader&&!this.invisible&&this.geometry.vertexCount>0},beforeRender:function(t){},afterRender:function(t,e){},getBoundingBox:function(t,e){return e=Un.prototype.getBoundingBox.call(this,t,e),this.geometry&&this.geometry.boundingBox&&e.union(this.geometry.boundingBox),e},clone:(qn=["castShadow","receiveShadow","mode","culling","cullFace","frontFace","frustumCulling","renderOrder","lineWidth","ignorePicking","ignorePreZ","ignoreGBuffer"],function(){var t=Un.prototype.clone.call(this);t.geometry=this.geometry,t.material=this.material;for(var e=0;e<qn.length;e++){var n=qn[e];t[n]!==this[n]&&(t[n]=this[n])}return t})});Xn.POINTS=M,Xn.LINES=A,Xn.LINE_LOOP=C,Xn.LINE_STRIP=I,Xn.TRIANGLES=E,Xn.TRIANGLE_STRIP=k,Xn.TRIANGLE_FAN=L,Xn.BACK=N,Xn.FRONT=O,Xn.FRONT_AND_BACK=F,Xn.CW=B,Xn.CCW=z;const Yn=Xn;var Zn,$n,Kn,Jn,Qn,ti=y.extend({scene:null,camera:null,renderer:null},(function(){this._ray=new ln,this._ndc=new Jt}),{pick:function(t,e,n){return this.pickAll(t,e,[],n)[0]||null},pickAll:function(t,e,n,i){return this.renderer.screenToNDC(t,e,this._ndc),this.camera.castRay(this._ndc,this._ray),n=n||[],this._intersectNode(this.scene,n,i||!1),n.sort(this._intersectionCompareFunc),n},_intersectNode:function(t,e,n){t instanceof Yn&&t.isRenderable()&&(t.ignorePicking&&!n||!(t.mode===E&&t.geometry.isUseIndices()||t.geometry.pickByRay||t.geometry.pick)||this._intersectRenderable(t,e));for(var i=0;i<t._children.length;i++)this._intersectNode(t._children[i],e,n)},_intersectRenderable:(Zn=new Qe,$n=new Qe,Kn=new Qe,Jn=new ln,Qn=new An,function(t,e){var n=t.isSkinnedMesh();Jn.copy(this._ray),An.invert(Qn,t.worldTransform),n||Jn.applyTransform(Qn);var i=t.geometry,r=n?t.skeleton.boundingBox:i.boundingBox;if(!r||Jn.intersectBoundingBox(r))if(i.pick)i.pick(this._ndc.x,this._ndc.y,this.renderer,this.camera,t,e);else if(i.pickByRay)i.pickByRay(Jn,t,e);else{var o,a,s=t.cullFace===N&&t.frontFace===z||t.cullFace===O&&t.frontFace===B,l=i.indices,h=i.attributes.position,c=i.attributes.weight,u=i.attributes.joint,d=[];if(h&&h.value&&l){if(n){a=t.skeleton.getSubSkinMatrices(t.__uid__,t.joints);for(var p=0;p<t.joints.length;p++){d[p]=d[p]||[];for(var f=0;f<16;f++)d[p][f]=a[16*p+f]}var g=[],m=[],v=[],y=[],_=[],x=i.attributes.skinnedPosition;for(x&&x.value||(i.createAttribute("skinnedPosition","f",3),(x=i.attributes.skinnedPosition).init(i.vertexCount)),p=0;p<i.vertexCount;p++){for(h.get(p,g),c.get(p,m),u.get(p,v),m[3]=1-m[0]-m[1]-m[2],De.set(y,0,0,0),f=0;f<4;f++)v[f]>=0&&m[f]>1e-4&&(De.transformMat4(_,g,d[v[f]]),De.scaleAndAdd(y,y,_,m[f]));x.set(p,y)}}for(p=0;p<l.length;p+=3){var b=l[p],w=l[p+1],S=l[p+2],T=n?i.attributes.skinnedPosition:h;if(T.get(b,Zn.array),T.get(w,$n.array),T.get(S,Kn.array),o=s?Jn.intersectTriangle(Zn,$n,Kn,t.culling):Jn.intersectTriangle(Zn,Kn,$n,t.culling)){var M=new Qe;n?Qe.copy(M,o):Qe.transformMat4(M,o,t.worldTransform),e.push(new ti.Intersection(o,M,t,[b,w,S],p/3,Qe.dist(M,this._ray.origin)))}}}}}),_intersectionCompareFunc:function(t,e){return t.distance-e.distance}});ti.Intersection=function(t,e,n,i,r,o){this.point=t,this.pointWorld=e,this.target=n,this.triangle=i,this.triangleIndex=r,this.distance=o};const ei=ti;var ni="__dt__",ii=function(){this._contextId=0,this._caches=[],this._context={}};(ii.prototype={use:function(t,e){var n=this._caches;n[t]||(n[t]={},e&&(n[t]=e())),this._contextId=t,this._context=n[t]},put:function(t,e){this._context[t]=e},get:function(t){return this._context[t]},dirty:function(t){var e=ni+(t=t||"");this.put(e,!0)},dirtyAll:function(t){for(var e=ni+(t=t||""),n=this._caches,i=0;i<n.length;i++)n[i]&&(n[i][e]=!0)},fresh:function(t){var e=ni+(t=t||"");this.put(e,!1)},freshAll:function(t){for(var e=ni+(t=t||""),n=this._caches,i=0;i<n.length;i++)n[i]&&(n[i][e]=!1)},isDirty:function(t){var e=ni+(t=t||""),n=this._context;return!n.hasOwnProperty(e)||!0===n[e]},deleteContext:function(t){delete this._caches[t],this._context={}},delete:function(t){delete this._context[t]},clearAll:function(){this._caches={}},getContext:function(){return this._context},eachContext:function(t,e){Object.keys(this._caches).forEach((function(n){t&&t.call(e,n)}))},miss:function(t){return!this._context.hasOwnProperty(t)}}).constructor=ii;const ri=ii;var oi=y.extend({width:512,height:512,type:V,format:$,wrapS:st,wrapT:st,minFilter:rt,magFilter:tt,useMipmap:!0,anisotropic:1,flipY:!0,sRGB:!0,unpackAlignment:4,premultiplyAlpha:!1,dynamic:!1,NPOT:!1,__used:0},(function(){this._cache=new ri}),{getWebGLTexture:function(t){var e=t.gl,n=this._cache;return n.use(t.__uid__),n.miss("webgl_texture")&&n.put("webgl_texture",e.createTexture()),this.dynamic?this.update(t):n.isDirty()&&(this.update(t),n.fresh()),n.get("webgl_texture")},bind:function(){},unbind:function(){},dirty:function(){this._cache&&this._cache.dirtyAll()},update:function(t){},updateCommon:function(t){var e=t.gl;e.pixelStorei(e.UNPACK_FLIP_Y_WEBGL,this.flipY),e.pixelStorei(e.UNPACK_PREMULTIPLY_ALPHA_WEBGL,this.premultiplyAlpha),e.pixelStorei(e.UNPACK_ALIGNMENT,this.unpackAlignment),this.format===X&&(this.useMipmap=!1);var n=t.getGLExtension("EXT_sRGB");this.format!==oi.SRGB||n||(this.format=oi.RGB),this.format!==oi.SRGB_ALPHA||n||(this.format=oi.RGBA),this.NPOT=!this.isPowerOfTwo()},getAvailableWrapS:function(){return this.NPOT?lt:this.wrapS},getAvailableWrapT:function(){return this.NPOT?lt:this.wrapT},getAvailableMinFilter:function(){var t=this.minFilter;return this.NPOT||!this.useMipmap?t===et||t===it?Q:t===rt||t===nt?tt:t:t},getAvailableMagFilter:function(){return this.magFilter},nextHighestPowerOfTwo:function(t){--t;for(var e=1;e<32;e<<=1)t|=t>>e;return t+1},dispose:function(t){var e=this._cache;e.use(t.__uid__);var n=e.get("webgl_texture");n&&t.gl.deleteTexture(n),e.deleteContext(t.__uid__)},isRenderable:function(){},isPowerOfTwo:function(){}});Object.defineProperty(oi.prototype,"width",{get:function(){return this._width},set:function(t){this._width=t}}),Object.defineProperty(oi.prototype,"height",{get:function(){return this._height},set:function(t){this._height=t}}),oi.BYTE=G,oi.UNSIGNED_BYTE=V,oi.SHORT=j,oi.UNSIGNED_SHORT=H,oi.INT=W,oi.UNSIGNED_INT=U,oi.FLOAT=q,oi.HALF_FLOAT=36193,oi.UNSIGNED_INT_24_8_WEBGL=34042,oi.DEPTH_COMPONENT=X,oi.DEPTH_STENCIL=dt,oi.ALPHA=Y,oi.RGB=Z,oi.RGBA=$,oi.LUMINANCE=K,oi.LUMINANCE_ALPHA=J,oi.SRGB=35904,oi.SRGB_ALPHA=35906,oi.COMPRESSED_RGB_S3TC_DXT1_EXT=33776,oi.COMPRESSED_RGBA_S3TC_DXT1_EXT=33777,oi.COMPRESSED_RGBA_S3TC_DXT3_EXT=33778,oi.COMPRESSED_RGBA_S3TC_DXT5_EXT=33779,oi.NEAREST=Q,oi.LINEAR=tt,oi.NEAREST_MIPMAP_NEAREST=et,oi.LINEAR_MIPMAP_NEAREST=nt,oi.NEAREST_MIPMAP_LINEAR=it,oi.LINEAR_MIPMAP_LINEAR=rt,oi.REPEAT=st,oi.CLAMP_TO_EDGE=lt,oi.MIRRORED_REPEAT=ht;const ai=oi;var si=Yn.extend({skeleton:null,joints:null},(function(){this.joints||(this.joints=[])}),{offsetMatrix:null,isInstancedMesh:function(){return!1},isSkinnedMesh:function(){return!!(this.skeleton&&this.joints&&this.joints.length>0)},clone:function(){var t=Yn.prototype.clone.call(this);return t.skeleton=this.skeleton,this.joints&&(t.joints=this.joints.slice()),t}});si.POINTS=M,si.LINES=A,si.LINE_LOOP=C,si.LINE_STRIP=I,si.TRIANGLES=E,si.TRIANGLE_STRIP=k,si.TRIANGLE_FAN=L,si.BACK=N,si.FRONT=O,si.FRONT_AND_BACK=F,si.CW=B,si.CCW=z;const li=si;var hi={isPowerOfTwo:function(t){return!(t&t-1)},nextPowerOfTwo:function(t){return t--,t|=t>>1,t|=t>>2,t|=t>>4,t|=t>>8,t|=t>>16,++t},nearestPowerOfTwo:function(t){return Math.pow(2,Math.round(Math.log(t)/Math.LN2))}};const ci=hi;var ui=ci.isPowerOfTwo;function di(t){return Math.pow(2,Math.round(Math.log(t)/Math.LN2))}var pi=ai.extend((function(){return{image:null,pixels:null,mipmaps:[],convertToPOT:!1}}),{textureType:"texture2D",update:function(t){var e=t.gl;e.bindTexture(e.TEXTURE_2D,this._cache.get("webgl_texture")),this.updateCommon(t);var n=this.format,i=this.type,r=!(!this.convertToPOT||this.mipmaps.length||!this.image||this.wrapS!==ai.REPEAT&&this.wrapT!==ai.REPEAT||!this.NPOT);e.texParameteri(e.TEXTURE_2D,e.TEXTURE_WRAP_S,r?this.wrapS:this.getAvailableWrapS()),e.texParameteri(e.TEXTURE_2D,e.TEXTURE_WRAP_T,r?this.wrapT:this.getAvailableWrapT()),e.texParameteri(e.TEXTURE_2D,e.TEXTURE_MAG_FILTER,r?this.magFilter:this.getAvailableMagFilter()),e.texParameteri(e.TEXTURE_2D,e.TEXTURE_MIN_FILTER,r?this.minFilter:this.getAvailableMinFilter());var o=t.getGLExtension("EXT_texture_filter_anisotropic");(o&&this.anisotropic>1&&e.texParameterf(e.TEXTURE_2D,o.TEXTURE_MAX_ANISOTROPY_EXT,this.anisotropic),36193===i)&&(t.getGLExtension("OES_texture_half_float")||(i=q));if(this.mipmaps.length)for(var a=this.width,s=this.height,l=0;l<this.mipmaps.length;l++){var h=this.mipmaps[l];this._updateTextureData(e,h,l,a,s,n,i,!1),a/=2,s/=2}else this._updateTextureData(e,this,0,this.width,this.height,n,i,r),!this.useMipmap||this.NPOT&&!r||e.generateMipmap(e.TEXTURE_2D);e.bindTexture(e.TEXTURE_2D,null)},_updateTextureData:function(t,e,n,i,r,o,a,s){if(e.image){var l=e.image;s&&(this._potCanvas=function(t,e){var n=di(t.width),i=di(t.height);return(e=e||document.createElement("canvas")).width=n,e.height=i,e.getContext("2d").drawImage(t.image,0,0,n,i),e}(this,this._potCanvas),l=this._potCanvas),t.texImage2D(t.TEXTURE_2D,n,o,o,a,l)}else o<=ai.COMPRESSED_RGBA_S3TC_DXT5_EXT&&o>=ai.COMPRESSED_RGB_S3TC_DXT1_EXT?t.compressedTexImage2D(t.TEXTURE_2D,n,o,i,r,0,e.pixels):t.texImage2D(t.TEXTURE_2D,n,o,i,r,0,o,a,e.pixels)},generateMipmap:function(t){var e=t.gl;this.useMipmap&&!this.NPOT&&(e.bindTexture(e.TEXTURE_2D,this._cache.get("webgl_texture")),e.generateMipmap(e.TEXTURE_2D))},isPowerOfTwo:function(){return ui(this.width)&&ui(this.height)},isRenderable:function(){return this.image?this.image.width>0&&this.image.height>0:!(!this.width||!this.height)},bind:function(t){t.gl.bindTexture(t.gl.TEXTURE_2D,this.getWebGLTexture(t))},unbind:function(t){t.gl.bindTexture(t.gl.TEXTURE_2D,null)},load:function(t,e){var n=bt.createImage();e&&(n.crossOrigin=e);var i=this;return n.onload=function(){i.dirty(),i.trigger("success",i)},n.onerror=function(){i.trigger("error",i)},n.src=t,this.image=n,this}});Object.defineProperty(pi.prototype,"width",{get:function(){return this.image?this.image.width:this._width},set:function(t){this.image?console.warn("Texture from image can't set width"):(this._width!==t&&this.dirty(),this._width=t)}}),Object.defineProperty(pi.prototype,"height",{get:function(){return this.image?this.image.height:this._height},set:function(t){this.image?console.warn("Texture from image can't set height"):(this._height!==t&&this.dirty(),this._height=t)}});const fi=pi;function gi(t){return{byte:bt.Int8Array,ubyte:bt.Uint8Array,short:bt.Int16Array,ushort:bt.Uint16Array}[t]||bt.Float32Array}function mi(t){return"attr_"+t}function vi(t,e,n,i){switch(this.name=t,this.type=e,this.size=n,this.semantic=i||"",this.value=null,n){case 1:this.get=function(t){return this.value[t]},this.set=function(t,e){this.value[t]=e},this.copy=function(t,e){this.value[t]=this.value[t]};break;case 2:this.get=function(t,e){var n=this.value;return e[0]=n[2*t],e[1]=n[2*t+1],e},this.set=function(t,e){var n=this.value;n[2*t]=e[0],n[2*t+1]=e[1]},this.copy=function(t,e){var n=this.value;e*=2,n[t*=2]=n[e],n[t+1]=n[e+1]};break;case 3:this.get=function(t,e){var n=3*t,i=this.value;return e[0]=i[n],e[1]=i[n+1],e[2]=i[n+2],e},this.set=function(t,e){var n=3*t,i=this.value;i[n]=e[0],i[n+1]=e[1],i[n+2]=e[2]},this.copy=function(t,e){var n=this.value;e*=3,n[t*=3]=n[e],n[t+1]=n[e+1],n[t+2]=n[e+2]};break;case 4:this.get=function(t,e){var n=this.value,i=4*t;return e[0]=n[i],e[1]=n[i+1],e[2]=n[i+2],e[3]=n[i+3],e},this.set=function(t,e){var n=this.value,i=4*t;n[i]=e[0],n[i+1]=e[1],n[i+2]=e[2],n[i+3]=e[3]},this.copy=function(t,e){var n=this.value;e*=4,n[t*=4]=n[e],n[t+1]=n[e+1],n[t+2]=n[e+2],n[t+3]=n[e+3]}}}function yi(t,e,n,i,r){this.name=t,this.type=e,this.buffer=n,this.size=i,this.semantic=r,this.symbol="",this.needsRemove=!1}function _i(t){this.buffer=t,this.count=0}vi.prototype.init=function(t){if(!this.value||this.value.length!==t*this.size){var e=gi(this.type);this.value=new e(t*this.size)}},vi.prototype.fromArray=function(t){var e,n=gi(this.type);if(t[0]&&t[0].length){var i=0,r=this.size;e=new n(t.length*r);for(var o=0;o<t.length;o++)for(var a=0;a<r;a++)e[i++]=t[o][a]}else e=new n(t);this.value=e},vi.prototype.clone=function(t){var e=new vi(this.name,this.type,this.size,this.semantic);return t&&console.warn("todo"),e};var xi=y.extend((function(){return{attributes:{},indices:null,dynamic:!0,_enabledAttributes:null,__used:0}}),(function(){this._cache=new ri,this._attributeList=Object.keys(this.attributes),this.__vaoCache={}}),{mainAttribute:"",pick:null,pickByRay:null,dirty:function(){for(var t=this.getEnabledAttributes(),e=0;e<t.length;e++)this.dirtyAttribute(t[e]);this.dirtyIndices(),this._enabledAttributes=null,this._cache.dirty("any")},dirtyIndices:function(){this._cache.dirtyAll("indices")},dirtyAttribute:function(t){this._cache.dirtyAll(mi(t)),this._cache.dirtyAll("attributes")},getTriangleIndices:function(t,e){if(t<this.triangleCount&&t>=0){e||(e=[]);var n=this.indices;return e[0]=n[3*t],e[1]=n[3*t+1],e[2]=n[3*t+2],e}},setTriangleIndices:function(t,e){var n=this.indices;n[3*t]=e[0],n[3*t+1]=e[1],n[3*t+2]=e[2]},isUseIndices:function(){return!!this.indices},initIndicesFromArray:function(t){var e,n=this.vertexCount>65535?bt.Uint32Array:bt.Uint16Array;if(t[0]&&t[0].length){var i=0;e=new n(3*t.length);for(var r=0;r<t.length;r++)for(var o=0;o<3;o++)e[i++]=t[r][o]}else e=new n(t);this.indices=e},createAttribute:function(t,e,n,i){var r=new vi(t,e,n,i);return this.attributes[t]&&this.removeAttribute(t),this.attributes[t]=r,this._attributeList.push(t),r},removeAttribute:function(t){var e=this._attributeList,n=e.indexOf(t);return n>=0&&(e.splice(n,1),delete this.attributes[t],!0)},getAttribute:function(t){return this.attributes[t]},getEnabledAttributes:function(){var t=this._enabledAttributes,e=this._attributeList;if(t)return t;for(var n=[],i=this.vertexCount,r=0;r<e.length;r++){var o=e[r],a=this.attributes[o];a.value&&a.value.length===i*a.size&&n.push(o)}return this._enabledAttributes=n,n},getBufferChunks:function(t){var e=this._cache;e.use(t.__uid__);var n=e.isDirty("attributes"),i=e.isDirty("indices");if(n||i){this._updateBuffer(t.gl,n,i);for(var r=this.getEnabledAttributes(),o=0;o<r.length;o++)e.fresh(mi(r[o]));e.fresh("attributes"),e.fresh("indices")}return e.fresh("any"),e.get("chunks")},_updateBuffer:function(t,e,n){var i=this._cache,r=i.get("chunks"),o=!1;r||((r=[])[0]={attributeBuffers:[],indicesBuffer:null},i.put("chunks",r),o=!0);var a=r[0],s=a.attributeBuffers,l=a.indicesBuffer;if(e||o){var h=this.getEnabledAttributes(),c={};if(!o)for(var u=0;u<s.length;u++)c[s[u].name]=s[u];for(var d=0;d<h.length;d++){var p,f,g=h[d],m=this.attributes[g];o||(p=c[g]),f=p?p.buffer:t.createBuffer(),i.isDirty(mi(g))&&(t.bindBuffer(t.ARRAY_BUFFER,f),t.bufferData(t.ARRAY_BUFFER,m.value,this.dynamic?t.DYNAMIC_DRAW:t.STATIC_DRAW)),s[d]=new yi(g,m.type,f,m.size,m.semantic)}for(u=d;u<s.length;u++)t.deleteBuffer(s[u].buffer);s.length=d}this.isUseIndices()&&(n||o)&&(l||(l=new _i(t.createBuffer()),a.indicesBuffer=l),l.count=this.indices.length,t.bindBuffer(t.ELEMENT_ARRAY_BUFFER,l.buffer),t.bufferData(t.ELEMENT_ARRAY_BUFFER,this.indices,this.dynamic?t.DYNAMIC_DRAW:t.STATIC_DRAW))},dispose:function(t){var e=this._cache;e.use(t.__uid__);var n=e.get("chunks");if(n)for(var i=0;i<n.length;i++){for(var r=n[i],o=0;o<r.attributeBuffers.length;o++){var a=r.attributeBuffers[o];t.gl.deleteBuffer(a.buffer)}r.indicesBuffer&&t.gl.deleteBuffer(r.indicesBuffer.buffer)}if(this.__vaoCache){var s=t.getGLExtension("OES_vertex_array_object");for(var l in this.__vaoCache){var h=this.__vaoCache[l].vao;h&&s.deleteVertexArrayOES(h)}}this.__vaoCache={},e.deleteContext(t.__uid__)}});Object.defineProperty&&(Object.defineProperty(xi.prototype,"vertexCount",{enumerable:!1,get:function(){var t=this.attributes[this.mainAttribute];return t||(t=this.attributes[this._attributeList[0]]),t&&t.value?t.value.length/t.size:0}}),Object.defineProperty(xi.prototype,"triangleCount",{enumerable:!1,get:function(){var t=this.indices;return t?t.length/3:0}})),xi.STATIC_DRAW=P,xi.DYNAMIC_DRAW=R,xi.STREAM_DRAW=D,xi.AttributeBuffer=yi,xi.IndicesBuffer=_i,xi.Attribute=vi;const bi=xi;var wi=De.create,Si=De.add,Ti=De.set,Mi=bi.Attribute,Ai=bi.extend((function(){return{attributes:{position:new Mi("position","float",3,"POSITION"),texcoord0:new Mi("texcoord0","float",2,"TEXCOORD_0"),texcoord1:new Mi("texcoord1","float",2,"TEXCOORD_1"),normal:new Mi("normal","float",3,"NORMAL"),tangent:new Mi("tangent","float",4,"TANGENT"),color:new Mi("color","float",4,"COLOR"),weight:new Mi("weight","float",3,"WEIGHT"),joint:new Mi("joint","float",4,"JOINT"),barycentric:new Mi("barycentric","float",3,null)},boundingBox:null}}),{mainAttribute:"position",updateBoundingBox:function(){var t=this.boundingBox;t||(t=this.boundingBox=new Gn);var e=this.attributes.position.value;if(e&&e.length){var n=t.min,i=t.max,r=n.array,o=i.array;De.set(r,e[0],e[1],e[2]),De.set(o,e[0],e[1],e[2]);for(var a=3;a<e.length;){var s=e[a++],l=e[a++],h=e[a++];s<r[0]&&(r[0]=s),l<r[1]&&(r[1]=l),h<r[2]&&(r[2]=h),s>o[0]&&(o[0]=s),l>o[1]&&(o[1]=l),h>o[2]&&(o[2]=h)}n._dirty=!0,i._dirty=!0}},generateVertexNormals:function(){if(this.vertexCount){var t=this.indices,e=this.attributes,n=e.position.value,i=e.normal.value;if(i&&i.length===n.length)for(var r=0;r<i.length;r++)i[r]=0;else i=e.normal.value=new bt.Float32Array(n.length);for(var o,a,s,l=wi(),h=wi(),c=wi(),u=wi(),d=wi(),p=wi(),f=t?t.length:this.vertexCount,g=0;g<f;){t?(o=t[g++],a=t[g++],s=t[g++]):(o=g++,a=g++,s=g++),Ti(l,n[3*o],n[3*o+1],n[3*o+2]),Ti(h,n[3*a],n[3*a+1],n[3*a+2]),Ti(c,n[3*s],n[3*s+1],n[3*s+2]),De.sub(u,l,h),De.sub(d,h,c),De.cross(p,u,d);for(r=0;r<3;r++)i[3*o+r]=i[3*o+r]+p[r],i[3*a+r]=i[3*a+r]+p[r],i[3*s+r]=i[3*s+r]+p[r]}for(r=0;r<i.length;)Ti(p,i[r],i[r+1],i[r+2]),De.normalize(p,p),i[r++]=p[0],i[r++]=p[1],i[r++]=p[2];this.dirty()}},generateFaceNormals:function(){if(this.vertexCount){this.isUniqueVertex()||this.generateUniqueVertex();var t=this.indices,e=this.attributes,n=e.position.value,i=e.normal.value,r=wi(),o=wi(),a=wi(),s=wi(),l=wi(),h=wi();i||(i=e.normal.value=new Float32Array(n.length));for(var c,u,d,p=t?t.length:this.vertexCount,f=0;f<p;){t?(c=t[f++],u=t[f++],d=t[f++]):(c=f++,u=f++,d=f++),Ti(r,n[3*c],n[3*c+1],n[3*c+2]),Ti(o,n[3*u],n[3*u+1],n[3*u+2]),Ti(a,n[3*d],n[3*d+1],n[3*d+2]),De.sub(s,r,o),De.sub(l,o,a),De.cross(h,s,l),De.normalize(h,h);for(var g=0;g<3;g++)i[3*c+g]=h[g],i[3*u+g]=h[g],i[3*d+g]=h[g]}this.dirty()}},generateTangents:function(){if(this.vertexCount){var t=this.vertexCount,e=this.attributes;e.tangent.value||(e.tangent.value=new Float32Array(4*t));var n=e.texcoord0.value,i=e.position.value,r=e.tangent.value,o=e.normal.value;if(n){for(var a=[],s=[],l=0;l<t;l++)a[l]=[0,0,0],s[l]=[0,0,0];var h,c,u,d=[0,0,0],p=[0,0,0],f=this.indices,g=f?f.length:this.vertexCount;for(l=0;l<g;){f?(h=f[l++],c=f[l++],u=f[l++]):(h=l++,c=l++,u=l++);var m=n[2*h],v=n[2*c],y=n[2*u],_=n[2*h+1],x=n[2*c+1],b=n[2*u+1],w=i[3*h],S=i[3*c],T=i[3*u],M=i[3*h+1],A=i[3*c+1],C=i[3*u+1],I=i[3*h+2],E=S-w,k=T-w,L=A-M,D=C-M,P=i[3*c+2]-I,R=i[3*u+2]-I,O=v-m,N=y-m,F=x-_,B=b-_,z=1/(O*B-F*N);d[0]=(B*E-F*k)*z,d[1]=(B*L-F*D)*z,d[2]=(B*P-F*R)*z,p[0]=(O*k-N*E)*z,p[1]=(O*D-N*L)*z,p[2]=(O*R-N*P)*z,Si(a[h],a[h],d),Si(a[c],a[c],d),Si(a[u],a[u],d),Si(s[h],s[h],p),Si(s[c],s[c],p),Si(s[u],s[u],p)}var G=wi(),V=wi(),j=wi();for(l=0;l<t;l++){j[0]=o[3*l],j[1]=o[3*l+1],j[2]=o[3*l+2];var H=a[l];De.scale(G,j,De.dot(j,H)),De.sub(G,H,G),De.normalize(G,G),De.cross(V,j,H),r[4*l]=G[0],r[4*l+1]=G[1],r[4*l+2]=G[2],r[4*l+3]=De.dot(V,s[l])<0?-1:1}this.dirty()}else console.warn("Geometry without texcoords can't generate tangents.")}},isUniqueVertex:function(){return!this.isUseIndices()||this.vertexCount===this.indices.length},generateUniqueVertex:function(){if(this.vertexCount&&this.indices){this.indices.length>65535&&(this.indices=new bt.Uint32Array(this.indices));for(var t=this.attributes,e=this.indices,n=this.getEnabledAttributes(),i={},r=0;r<n.length;r++){i[l=n[r]]=t[l].value,t[l].init(this.indices.length)}for(var o=0,a=0;a<e.length;a++){var s=e[a];for(r=0;r<n.length;r++)for(var l,h=t[l=n[r]].value,c=t[l].size,u=0;u<c;u++)h[o*c+u]=i[l][s*c+u];e[a]=o,o++}this.dirty()}},generateBarycentric:function(){if(this.vertexCount){this.isUniqueVertex()||this.generateUniqueVertex();var t=this.attributes,e=t.barycentric.value,n=this.indices;if(!e||e.length!==3*n.length){e=t.barycentric.value=new Float32Array(3*n.length);for(var i=0;i<(n?n.length:this.vertexCount/3);)for(var r=0;r<3;r++){e[3*(n?n[i++]:3*i+r)+r]=1}this.dirty()}}},applyTransform:function(t){var e=this.attributes,n=e.position.value,i=e.normal.value,r=e.tangent.value;t=t.array;var o=ke.create();ke.invert(o,t),ke.transpose(o,o);var a=De.transformMat4,s=De.forEach;s(n,3,0,null,a,t),i&&s(i,3,0,null,a,o),r&&s(r,4,0,null,a,o),this.boundingBox&&this.updateBoundingBox()},dispose:function(t){var e=this._cache;e.use(t.__uid__);var n=e.get("chunks");if(n)for(var i=0;i<n.length;i++){for(var r=n[i],o=0;o<r.attributeBuffers.length;o++){var a=r.attributeBuffers[o];t.gl.deleteBuffer(a.buffer)}r.indicesBuffer&&t.gl.deleteBuffer(r.indicesBuffer.buffer)}if(this.__vaoCache){var s=t.getGLExtension("OES_vertex_array_object");for(var l in this.__vaoCache){var h=this.__vaoCache[l].vao;h&&s.deleteVertexArrayOES(h)}}this.__vaoCache={},e.deleteContext(t.__uid__)}});Ai.STATIC_DRAW=bi.STATIC_DRAW,Ai.DYNAMIC_DRAW=bi.DYNAMIC_DRAW,Ai.STREAM_DRAW=bi.STREAM_DRAW,Ai.AttributeBuffer=bi.AttributeBuffer,Ai.IndicesBuffer=bi.IndicesBuffer,Ai.Attribute=Mi;const Ci=Ai;var Ii="uniform vec3 ",Ei="uniform float ",ki="@export clay.header.",Li="@end",Di=":unconfigurable;";const Pi=[ki+"directional_light",Ii+"directionalLightDirection[DIRECTIONAL_LIGHT_COUNT]"+Di,Ii+"directionalLightColor[DIRECTIONAL_LIGHT_COUNT]"+Di,Li,ki+"ambient_light",Ii+"ambientLightColor[AMBIENT_LIGHT_COUNT]"+Di,Li,ki+"ambient_sh_light",Ii+"ambientSHLightColor[AMBIENT_SH_LIGHT_COUNT]"+Di,Ii+"ambientSHLightCoefficients[AMBIENT_SH_LIGHT_COUNT * 9]"+Di,"vec3 calcAmbientSHLight(int idx, vec3 N) {\n int offset = 9 * idx;\n return ambientSHLightCoefficients[0]\n + ambientSHLightCoefficients[1] * N.x\n + ambientSHLightCoefficients[2] * N.y\n + ambientSHLightCoefficients[3] * N.z\n + ambientSHLightCoefficients[4] * N.x * N.z\n + ambientSHLightCoefficients[5] * N.z * N.y\n + ambientSHLightCoefficients[6] * N.y * N.x\n + ambientSHLightCoefficients[7] * (3.0 * N.z * N.z - 1.0)\n + ambientSHLightCoefficients[8] * (N.x * N.x - N.y * N.y);\n}",Li,ki+"ambient_cubemap_light",Ii+"ambientCubemapLightColor[AMBIENT_CUBEMAP_LIGHT_COUNT]"+Di,"uniform samplerCube ambientCubemapLightCubemap[AMBIENT_CUBEMAP_LIGHT_COUNT]"+Di,"uniform sampler2D ambientCubemapLightBRDFLookup[AMBIENT_CUBEMAP_LIGHT_COUNT]"+Di,Li,ki+"point_light",Ii+"pointLightPosition[POINT_LIGHT_COUNT]"+Di,Ei+"pointLightRange[POINT_LIGHT_COUNT]"+Di,Ii+"pointLightColor[POINT_LIGHT_COUNT]"+Di,Li,ki+"spot_light",Ii+"spotLightPosition[SPOT_LIGHT_COUNT]"+Di,Ii+"spotLightDirection[SPOT_LIGHT_COUNT]"+Di,Ei+"spotLightRange[SPOT_LIGHT_COUNT]"+Di,Ei+"spotLightUmbraAngleCosine[SPOT_LIGHT_COUNT]"+Di,Ei+"spotLightPenumbraAngleCosine[SPOT_LIGHT_COUNT]"+Di,Ei+"spotLightFalloffFactor[SPOT_LIGHT_COUNT]"+Di,Ii+"spotLightColor[SPOT_LIGHT_COUNT]"+Di,Li].join("\n");Ce.import(Pi);var Ri=Un.extend((function(){return{color:[1,1,1],intensity:1,castShadow:!0,shadowResolution:512,group:0}}),{type:"",clone:function(){var t=Un.prototype.clone.call(this);return t.color=Array.prototype.slice.call(this.color),t.intensity=this.intensity,t.castShadow=this.castShadow,t.shadowResolution=this.shadowResolution,t}});const Oi=Ri;var Ni,Fi,Bi,zi,Gi=function(t,e){this.normal=t||new Qe(0,1,0),this.distance=e||0};Gi.prototype={constructor:Gi,distanceToPoint:function(t){return De.dot(t.array,this.normal.array)-this.distance},projectPoint:function(t,e){e||(e=new Qe);var n=this.distanceToPoint(t);return De.scaleAndAdd(e.array,t.array,this.normal.array,-n),e._dirty=!0,e},normalize:function(){var t=1/De.len(this.normal.array);De.scale(this.normal.array,t),this.distance*=t},intersectFrustum:function(t){for(var e=t.vertices,n=this.normal.array,i=De.dot(e[0].array,n)>this.distance,r=1;r<8;r++)if(De.dot(e[r].array,n)>this.distance!=i)return!0},intersectLine:(zi=De.create(),function(t,e,n){var i=this.distanceToPoint(t),r=this.distanceToPoint(e);if(i>0&&r>0||i<0&&r<0)return null;var o=this.normal.array,a=this.distance,s=t.array;De.sub(zi,e.array,t.array),De.normalize(zi,zi);var l=De.dot(o,zi);if(0===l)return null;n||(n=new Qe);var h=(De.dot(o,s)-a)/l;return De.scaleAndAdd(n.array,s,zi,-h),n._dirty=!0,n}),applyTransform:(Ni=ke.create(),Fi=cn.create(),Bi=cn.create(),Bi[3]=1,function(t){t=t.array,De.scale(Bi,this.normal.array,this.distance),cn.transformMat4(Bi,Bi,t),this.distance=De.dot(Bi,this.normal.array),ke.invert(Ni,t),ke.transpose(Ni,Ni),Fi[3]=0,De.copy(Fi,this.normal.array),cn.transformMat4(Fi,Fi,Ni),De.copy(this.normal.array,Fi)}),copy:function(t){De.copy(this.normal.array,t.normal.array),this.normal._dirty=!0,this.distance=t.distance},clone:function(){var t=new Gi;return t.copy(this),t}};const Vi=Gi;var ji,Hi=De.set,Wi=De.copy,Ui=De.transformMat4,qi=Math.min,Xi=Math.max,Yi=function(){this.planes=[];for(var t=0;t<6;t++)this.planes.push(new Vi);this.boundingBox=new Gn,this.vertices=[];for(t=0;t<8;t++)this.vertices[t]=De.fromValues(0,0,0)};Yi.prototype={setFromProjection:function(t){var e=this.planes,n=t.array,i=n[0],r=n[1],o=n[2],a=n[3],s=n[4],l=n[5],h=n[6],c=n[7],u=n[8],d=n[9],p=n[10],f=n[11],g=n[12],m=n[13],v=n[14],y=n[15];Hi(e[0].normal.array,a-i,c-s,f-u),e[0].distance=-(y-g),e[0].normalize(),Hi(e[1].normal.array,a+i,c+s,f+u),e[1].distance=-(y+g),e[1].normalize(),Hi(e[2].normal.array,a+r,c+l,f+d),e[2].distance=-(y+m),e[2].normalize(),Hi(e[3].normal.array,a-r,c-l,f-d),e[3].distance=-(y-m),e[3].normalize(),Hi(e[4].normal.array,a-o,c-h,f-p),e[4].distance=-(y-v),e[4].normalize(),Hi(e[5].normal.array,a+o,c+h,f+p),e[5].distance=-(y+v),e[5].normalize();var _=this.boundingBox,x=this.vertices;if(0===y){var b=l/i,w=-v/(p-1),S=-v/(p+1),T=-S/l,M=-w/l;_.min.set(-T*b,-T,S),_.max.set(T*b,T,w),Hi(x[0],-T*b,-T,S),Hi(x[1],-T*b,T,S),Hi(x[2],T*b,-T,S),Hi(x[3],T*b,T,S),Hi(x[4],-M*b,-M,w),Hi(x[5],-M*b,M,w),Hi(x[6],M*b,-M,w),Hi(x[7],M*b,M,w)}else{var A=(-1-g)/i,C=(1-g)/i,I=(1-m)/l,E=(-1-m)/l,k=(-1-v)/p,L=(1-v)/p;_.min.set(Math.min(A,C),Math.min(E,I),Math.min(L,k)),_.max.set(Math.max(C,A),Math.max(I,E),Math.max(k,L));var D=_.min.array,P=_.max.array;Hi(x[0],D[0],D[1],D[2]),Hi(x[1],D[0],P[1],D[2]),Hi(x[2],P[0],D[1],D[2]),Hi(x[3],P[0],P[1],D[2]),Hi(x[4],D[0],D[1],P[2]),Hi(x[5],D[0],P[1],P[2]),Hi(x[6],P[0],D[1],P[2]),Hi(x[7],P[0],P[1],P[2])}},getTransformedBoundingBox:(ji=De.create(),function(t,e){var n=this.vertices,i=e.array,r=t.min,o=t.max,a=r.array,s=o.array,l=n[0];Ui(ji,l,i),Wi(a,ji),Wi(s,ji);for(var h=1;h<8;h++)l=n[h],Ui(ji,l,i),a[0]=qi(ji[0],a[0]),a[1]=qi(ji[1],a[1]),a[2]=qi(ji[2],a[2]),s[0]=Xi(ji[0],s[0]),s[1]=Xi(ji[1],s[1]),s[2]=Xi(ji[2],s[2]);return r._dirty=!0,o._dirty=!0,t})};const Zi=Yi;var $i,Ki=Un.extend((function(){return{projectionMatrix:new An,invProjectionMatrix:new An,viewMatrix:new An,frustum:new Zi}}),(function(){this.update(!0)}),{update:function(t){Un.prototype.update.call(this,t),An.invert(this.viewMatrix,this.worldTransform),this.updateProjectionMatrix(),An.invert(this.invProjectionMatrix,this.projectionMatrix),this.frustum.setFromProjection(this.projectionMatrix)},setViewMatrix:function(t){An.copy(this.viewMatrix,t),An.invert(this.worldTransform,t),this.decomposeWorldTransform()},decomposeProjectionMatrix:function(){},setProjectionMatrix:function(t){An.copy(this.projectionMatrix,t),An.invert(this.invProjectionMatrix,t),this.decomposeProjectionMatrix()},updateProjectionMatrix:function(){},castRay:($i=cn.create(),function(t,e){var n=void 0!==e?e:new ln,i=t.array[0],r=t.array[1];return cn.set($i,i,r,-1,1),cn.transformMat4($i,$i,this.invProjectionMatrix.array),cn.transformMat4($i,$i,this.worldTransform.array),De.scale(n.origin.array,$i,1/$i[3]),cn.set($i,i,r,1,1),cn.transformMat4($i,$i,this.invProjectionMatrix.array),cn.transformMat4($i,$i,this.worldTransform.array),De.scale($i,$i,1/$i[3]),De.sub(n.direction.array,$i,n.origin.array),De.normalize(n.direction.array,n.direction.array),n.direction._dirty=!0,n.origin._dirty=!0,n})});const Ji=Ki;var Qi=ke.create(),tr=ke.create(),er={};function nr(t){var e=[],n=Object.keys(t);n.sort();for(var i=0;i<n.length;i++){var r=n[i];e.push(r+" "+t[r])}var o=e.join("\n");if(er[o])return er[o];var a=m.genGUID();return er[o]=a,a}function ir(){this.opaque=[],this.transparent=[],this._opaqueCount=0,this._transparentCount=0}ir.prototype.startCount=function(){this._opaqueCount=0,this._transparentCount=0},ir.prototype.add=function(t,e){e?this.transparent[this._transparentCount++]=t:this.opaque[this._opaqueCount++]=t},ir.prototype.endCount=function(){this.transparent.length=this._transparentCount,this.opaque.length=this._opaqueCount};var rr,or,ar=Un.extend((function(){return{material:null,lights:[],viewBoundingBoxLastFrame:new Gn,shadowUniforms:{},_cameraList:[],_lightUniforms:{},_previousLightNumber:{},_lightNumber:{},_lightProgramKeys:{},_nodeRepository:{},_renderLists:new Mt(20)}}),(function(){this._scene=this}),{addToScene:function(t){t instanceof Ji?(this._cameraList.length>0&&console.warn("Found multiple camera in one scene. Use the fist one."),this._cameraList.push(t)):t instanceof Oi&&this.lights.push(t),t.name&&(this._nodeRepository[t.name]=t)},removeFromScene:function(t){var e;t instanceof Ji?(e=this._cameraList.indexOf(t))>=0&&this._cameraList.splice(e,1):t instanceof Oi&&(e=this.lights.indexOf(t))>=0&&this.lights.splice(e,1),t.name&&delete this._nodeRepository[t.name]},getNode:function(t){return this._nodeRepository[t]},setMainCamera:function(t){var e=this._cameraList.indexOf(t);e>=0&&this._cameraList.splice(e,1),this._cameraList.unshift(t)},getMainCamera:function(){return this._cameraList[0]},getLights:function(){return this.lights},updateLights:function(){var t=this.lights;this._previousLightNumber=this._lightNumber;for(var e={},n=0;n<t.length;n++){var i=t[n];if(!i.invisible){var r=i.group;e[r]||(e[r]={}),e[r][i.type]=e[r][i.type]||0,e[r][i.type]++}}for(var o in this._lightNumber=e,e)this._lightProgramKeys[o]=nr(e[o]);this._updateLightUniforms()},cloneNode:function(t){var e=t.clone(),n={};return function t(e,i){n[e.__uid__]=i;for(var r=0;r<e._children.length;r++){t(e._children[r],i._children[r])}}(t,e),e.traverse((function(t){t.skeleton&&(t.skeleton=t.skeleton.clone(n)),t.material&&(t.material=t.material.clone())})),e},updateRenderList:function(t,e){var n=t.__uid__,i=this._renderLists.get(n);i||(i=new ir,this._renderLists.put(n,i)),i.startCount(),e&&(this.viewBoundingBoxLastFrame.min.set(1/0,1/0,1/0),this.viewBoundingBoxLastFrame.max.set(-1/0,-1/0,-1/0));var r=this.material&&this.material.transparent||!1;return this._doUpdateRenderList(this,t,r,i,e),i.endCount(),i},getRenderList:function(t){return this._renderLists.get(t.__uid__)},_doUpdateRenderList:function(t,e,n,i,r){if(!t.invisible)for(var o=0;o<t._children.length;o++){var a=t._children[o];if(a.isRenderable()){var s=a.isSkinnedMesh()?Qi:a.worldTransform.array,l=a.geometry;ke.multiplyAffine(tr,e.viewMatrix.array,s),(r&&!l.boundingBox||!this.isFrustumCulled(a,e,tr))&&i.add(a,a.material.transparent||n)}a._children.length>0&&this._doUpdateRenderList(a,e,n,i,r)}},isFrustumCulled:(rr=new Gn,or=new An,function(t,e,n){var i=t.boundingBox;if(i||(i=t.skeleton&&t.skeleton.boundingBox?t.skeleton.boundingBox:t.geometry.boundingBox),!i)return!1;if(or.array=n,rr.transformFrom(i,or),t.castShadow&&this.viewBoundingBoxLastFrame.union(rr),t.frustumCulling){if(!rr.intersectBoundingBox(e.frustum.boundingBox))return!0;or.array=e.projectionMatrix.array,rr.max.array[2]>0&&rr.min.array[2]<0&&(rr.max.array[2]=-1e-20),rr.applyProjection(or);var r=rr.min.array,o=rr.max.array;if(o[0]<-1||r[0]>1||o[1]<-1||r[1]>1||o[2]<-1||r[2]>1)return!0}return!1}),_updateLightUniforms:function(){var t=this.lights;t.sort(sr);var e=this._lightUniforms;for(var n in e)for(var i in e[n])e[n][i].value.length=0;for(var r=0;r<t.length;r++){var o=t[r];if(!o.invisible){n=o.group;for(var i in o.uniformTemplates){var a=o.uniformTemplates[i],s=a.value(o);if(null!=s){e[n]||(e[n]={}),e[n][i]||(e[n][i]={type:"",value:[]});var l=e[n][i];switch(l.type=a.type+"v",a.type){case"1i":case"1f":case"t":l.value.push(s);break;case"2f":case"3f":case"4f":for(var h=0;h<s.length;h++)l.value.push(s[h]);break;default:console.error("Unkown light uniform type "+a.type)}}}}}},getLightGroups:function(){var t=[];for(var e in this._lightNumber)t.push(e);return t},getNumberChangedLightGroups:function(){var t=[];for(var e in this._lightNumber)this.isLightNumberChanged(e)&&t.push(e);return t},isLightNumberChanged:function(t){var e=this._previousLightNumber,n=this._lightNumber;for(var i in n[t]){if(!e[t])return!0;if(n[t][i]!==e[t][i])return!0}for(var i in e[t]){if(!n[t])return!0;if(n[t][i]!==e[t][i])return!0}return!1},getLightsNumbers:function(t){return this._lightNumber[t]},getProgramKey:function(t){return this._lightProgramKeys[t]},setLightUniforms:function(){function t(t,e,n){for(var i in t){var r=t[i];if("tv"===r.type){if(!e.hasUniform(i))continue;for(var o=[],a=0;a<r.value.length;a++){var s=r.value[a],l=e.takeCurrentTextureSlot(n,s);o.push(l)}e.setUniform(n.gl,"1iv",i,o)}else e.setUniform(n.gl,r.type,i,r.value)}}return function(e,n,i){t(this._lightUniforms[n],e,i),t(this.shadowUniforms,e,i)}}(),dispose:function(){this.material=null,this._opaqueList=[],this._transparentList=[],this.lights=[],this._lightUniforms={},this._lightNumber={},this._nodeRepository={}}});function sr(t,e){if(e.castShadow&&!t.castShadow)return!0}const lr=ar;var hr=n(6552),cr=ci.isPowerOfTwo,ur=["px","nx","py","ny","pz","nz"],dr=ai.extend((function(){return{image:{px:null,nx:null,py:null,ny:null,pz:null,nz:null},pixels:{px:null,nx:null,py:null,ny:null,pz:null,nz:null},mipmaps:[]}}),{textureType:"textureCube",update:function(t){var e=t.gl;e.bindTexture(e.TEXTURE_CUBE_MAP,this._cache.get("webgl_texture")),this.updateCommon(t);var n=this.format,i=this.type;e.texParameteri(e.TEXTURE_CUBE_MAP,e.TEXTURE_WRAP_S,this.getAvailableWrapS()),e.texParameteri(e.TEXTURE_CUBE_MAP,e.TEXTURE_WRAP_T,this.getAvailableWrapT()),e.texParameteri(e.TEXTURE_CUBE_MAP,e.TEXTURE_MAG_FILTER,this.getAvailableMagFilter()),e.texParameteri(e.TEXTURE_CUBE_MAP,e.TEXTURE_MIN_FILTER,this.getAvailableMinFilter());var r=t.getGLExtension("EXT_texture_filter_anisotropic");(r&&this.anisotropic>1&&e.texParameterf(e.TEXTURE_CUBE_MAP,r.TEXTURE_MAX_ANISOTROPY_EXT,this.anisotropic),36193===i)&&(t.getGLExtension("OES_texture_half_float")||(i=q));if(this.mipmaps.length)for(var o=this.width,a=this.height,s=0;s<this.mipmaps.length;s++){var l=this.mipmaps[s];this._updateTextureData(e,l,s,o,a,n,i),o/=2,a/=2}else this._updateTextureData(e,this,0,this.width,this.height,n,i),!this.NPOT&&this.useMipmap&&e.generateMipmap(e.TEXTURE_CUBE_MAP);e.bindTexture(e.TEXTURE_CUBE_MAP,null)},_updateTextureData:function(t,e,n,i,r,o,a){for(var s=0;s<6;s++){var l=ur[s],h=e.image&&e.image[l];h?t.texImage2D(t.TEXTURE_CUBE_MAP_POSITIVE_X+s,n,o,o,a,h):t.texImage2D(t.TEXTURE_CUBE_MAP_POSITIVE_X+s,n,o,i,r,0,o,a,e.pixels&&e.pixels[l])}},generateMipmap:function(t){var e=t.gl;this.useMipmap&&!this.NPOT&&(e.bindTexture(e.TEXTURE_CUBE_MAP,this._cache.get("webgl_texture")),e.generateMipmap(e.TEXTURE_CUBE_MAP))},bind:function(t){t.gl.bindTexture(t.gl.TEXTURE_CUBE_MAP,this.getWebGLTexture(t))},unbind:function(t){t.gl.bindTexture(t.gl.TEXTURE_CUBE_MAP,null)},isPowerOfTwo:function(){return this.image.px?cr(this.image.px.width)&&cr(this.image.px.height):cr(this.width)&&cr(this.height)},isRenderable:function(){return this.image.px?pr(this.image.px)&&pr(this.image.nx)&&pr(this.image.py)&&pr(this.image.ny)&&pr(this.image.pz)&&pr(this.image.nz):!(!this.width||!this.height)},load:function(t,e){var n=0,i=this;return m.each(t,(function(t,r){var o=bt.createImage();e&&(o.crossOrigin=e),o.onload=function(){0===--n&&(i.dirty(),i.trigger("success",i))},o.onerror=function(){n--},n++,o.src=t,i.image[r]=o})),this}});function pr(t){return t.width>0&&t.height>0}Object.defineProperty(dr.prototype,"width",{get:function(){return this.image&&this.image.px?this.image.px.width:this._width},set:function(t){this.image&&this.image.px?console.warn("Texture from image can't set width"):(this._width!==t&&this.dirty(),this._width=t)}}),Object.defineProperty(dr.prototype,"height",{get:function(){return this.image&&this.image.px?this.image.px.height:this._height},set:function(t){this.image&&this.image.px?console.warn("Texture from image can't set height"):(this._height!==t&&this.dirty(),this._height=t)}});const fr=dr;var gr=Ji.extend({fov:50,aspect:1,near:.1,far:2e3},{updateProjectionMatrix:function(){var t=this.fov/180*Math.PI;this.projectionMatrix.perspective(t,this.aspect,this.near,this.far)},decomposeProjectionMatrix:function(){var t=this.projectionMatrix.array,e=2*Math.atan(1/t[5]);this.fov=e/Math.PI*180,this.aspect=t[5]/t[0],this.near=t[14]/(t[10]-1),this.far=t[14]/(t[10]+1)},clone:function(){var t=Ji.prototype.clone.call(this);return t.fov=this.fov,t.aspect=this.aspect,t.near=this.near,t.far=this.far,t}});const mr=gr;var vr="framebuffer",yr="renderbuffer",_r=yr+"_width",xr=yr+"_height",br=yr+"_attached",wr="depthtexture_attached",Sr=ct,Tr=ut,Mr=ft,Ar=pt,Cr=y.extend({depthBuffer:!0,viewport:null,_width:0,_height:0,_textures:null,_boundRenderer:null},(function(){this._cache=new ri,this._textures={}}),{getTextureWidth:function(){return this._width},getTextureHeight:function(){return this._height},bind:function(t){if(t.__currentFrameBuffer){if(t.__currentFrameBuffer===this)return;console.warn("Renderer already bound with another framebuffer. Unbind it first")}t.__currentFrameBuffer=this;var e=t.gl;e.bindFramebuffer(Sr,this._getFrameBufferGL(t)),this._boundRenderer=t;var n=this._cache;n.put("viewport",t.viewport);var i,r,o=!1;for(var a in this._textures){o=!0;var s=this._textures[a];s&&(i=s.texture.width,r=s.texture.height,this._doAttach(t,s.texture,a,s.target))}this._width=i,this._height=r,!o&&this.depthBuffer&&console.error("Must attach texture before bind, or renderbuffer may have incorrect width and height."),this.viewport?t.setViewport(this.viewport):t.setViewport(0,0,i,r,1);var l=n.get("attached_textures");if(l)for(var a in l)if(!this._textures[a]){var h=l[a];this._doDetach(e,a,h)}if(!n.get(wr)&&this.depthBuffer){n.miss(yr)&&n.put(yr,e.createRenderbuffer());var c=n.get(yr);i===n.get(_r)&&r===n.get(xr)||(e.bindRenderbuffer(Tr,c),e.renderbufferStorage(Tr,e.DEPTH_COMPONENT16,i,r),n.put(_r,i),n.put(xr,r),e.bindRenderbuffer(Tr,null)),n.get(br)||(e.framebufferRenderbuffer(Sr,Mr,Tr,c),n.put(br,!0))}},unbind:function(t){t.__currentFrameBuffer=null,t.gl.bindFramebuffer(Sr,null),this._boundRenderer=null,this._cache.use(t.__uid__);var e=this._cache.get("viewport");e&&t.setViewport(e),this.updateMipmap(t)},updateMipmap:function(t){var e=t.gl;for(var n in this._textures){var i=this._textures[n];if(i){var r=i.texture;if(!r.NPOT&&r.useMipmap&&r.minFilter===ai.LINEAR_MIPMAP_LINEAR){var o="textureCube"===r.textureType?at:ot;e.bindTexture(o,r.getWebGLTexture(t)),e.generateMipmap(o),e.bindTexture(o,null)}}}},checkStatus:function(t){return t.checkFramebufferStatus(Sr)},_getFrameBufferGL:function(t){var e=this._cache;return e.use(t.__uid__),e.miss(vr)&&e.put(vr,t.gl.createFramebuffer()),e.get(vr)},attach:function(t,e,n){if(!t.width)throw new Error("The texture attached to color buffer is not a valid.");e=e||Ar,n=n||ot;var i,r=this._boundRenderer;if(r&&r.gl){var o=this._cache;o.use(r.__uid__),i=o.get("attached_textures")}var a=this._textures[e];if(!a||a.target!==n||a.texture!==t||!i||null==i[e]){var s=!0;r&&(s=this._doAttach(r,t,e,n),this.viewport||r.setViewport(0,0,t.width,t.height,1)),s&&(this._textures[e]=this._textures[e]||{},this._textures[e].texture=t,this._textures[e].target=n)}},_doAttach:function(t,e,n,i){var r=t.gl,o=e.getWebGLTexture(t),a=this._cache.get("attached_textures");if(a&&a[n]){var s=a[n];if(s.texture===e&&s.target===i)return}var l=!0;if(((n=+n)===Mr||n===mt)&&(t.getGLExtension("WEBGL_depth_texture")||(console.error("Depth texture is not supported by the browser"),l=!1),e.format!==X&&e.format!==dt&&(console.error("The texture attached to depth buffer is not a valid."),l=!1),l)){var h=this._cache.get(yr);h&&(r.framebufferRenderbuffer(Sr,Mr,Tr,null),r.deleteRenderbuffer(h),this._cache.put(yr,!1)),this._cache.put(br,!1),this._cache.put(wr,!0)}return r.framebufferTexture2D(Sr,n,i,o,0),a||(a={},this._cache.put("attached_textures",a)),a[n]=a[n]||{},a[n].texture=e,a[n].target=i,l},_doDetach:function(t,e,n){t.framebufferTexture2D(Sr,e,n,null,0);var i=this._cache.get("attached_textures");i&&i[e]&&(i[e]=null),e!==Mr&&e!==mt||this._cache.put(wr,!1)},detach:function(t,e){(this._textures[t]=null,this._boundRenderer)&&(this._cache.use(this._boundRenderer.__uid__),this._doDetach(this._boundRenderer.gl,t,e))},dispose:function(t){var e=t.gl,n=this._cache;n.use(t.__uid__);var i=n.get(yr);i&&e.deleteRenderbuffer(i);var r=n.get(vr);r&&e.deleteFramebuffer(r),n.deleteContext(t.__uid__),this._textures={}}});Cr.DEPTH_ATTACHMENT=Mr,Cr.COLOR_ATTACHMENT0=Ar,Cr.STENCIL_ATTACHMENT=gt,Cr.DEPTH_STENCIL_ATTACHMENT=mt;const Ir=Cr;var Er=["px","nx","py","ny","pz","nz"],kr=y.extend((function(){var t={position:new Qe,far:1e3,near:.1,texture:null,shadowMapPass:null},e=t._cameras={px:new mr({fov:90}),nx:new mr({fov:90}),py:new mr({fov:90}),ny:new mr({fov:90}),pz:new mr({fov:90}),nz:new mr({fov:90})};return e.px.lookAt(Qe.POSITIVE_X,Qe.NEGATIVE_Y),e.nx.lookAt(Qe.NEGATIVE_X,Qe.NEGATIVE_Y),e.py.lookAt(Qe.POSITIVE_Y,Qe.POSITIVE_Z),e.ny.lookAt(Qe.NEGATIVE_Y,Qe.NEGATIVE_Z),e.pz.lookAt(Qe.POSITIVE_Z,Qe.NEGATIVE_Y),e.nz.lookAt(Qe.NEGATIVE_Z,Qe.NEGATIVE_Y),t._frameBuffer=new Ir,t}),{getCamera:function(t){return this._cameras[t]},render:function(t,e,n){var i=t.gl;n||e.update();for(var r=this.texture.width,o=2*Math.atan(r/(r-.5))/Math.PI*180,a=0;a<6;a++){var s=Er[a],l=this._cameras[s];if(Qe.copy(l.position,this.position),l.far=this.far,l.near=this.near,l.fov=o,this.shadowMapPass){l.update();var h=e.getBoundingBox();h.applyTransform(l.viewMatrix),e.viewBoundingBoxLastFrame.copy(h),this.shadowMapPass.render(t,e,l,!0)}this._frameBuffer.attach(this.texture,i.COLOR_ATTACHMENT0,i.TEXTURE_CUBE_MAP_POSITIVE_X+a),this._frameBuffer.bind(t),t.render(e,l,!0),this._frameBuffer.unbind(t)}},dispose:function(t){this._frameBuffer.dispose(t)}});const Lr=kr;var Dr=Ci.extend({dynamic:!1,widthSegments:1,heightSegments:1},(function(){this.build()}),{build:function(){for(var t=this.heightSegments,e=this.widthSegments,n=this.attributes,i=[],r=[],o=[],a=[],s=0;s<=t;s++)for(var l=s/t,h=0;h<=e;h++){var c=h/e;if(i.push([2*c-1,2*l-1,0]),r&&r.push([c,l]),o&&o.push([0,0,1]),h<e&&s<t){var u=h+s*(e+1);a.push([u,u+1,u+e+1]),a.push([u+e+1,u+1,u+e+2])}}n.position.fromArray(i),n.texcoord0.fromArray(r),n.normal.fromArray(o),this.initIndicesFromArray(a),this.boundingBox=new Gn,this.boundingBox.min.set(-1,-1,0),this.boundingBox.max.set(1,1,0)}});const Pr=Dr;var Rr=new An;function Or(t,e,n){Rr.identity();var i=new Pr({widthSegments:e,heightSegments:n});switch(t){case"px":An.translate(Rr,Rr,Qe.POSITIVE_X),An.rotateY(Rr,Rr,Math.PI/2);break;case"nx":An.translate(Rr,Rr,Qe.NEGATIVE_X),An.rotateY(Rr,Rr,-Math.PI/2);break;case"py":An.translate(Rr,Rr,Qe.POSITIVE_Y),An.rotateX(Rr,Rr,-Math.PI/2);break;case"ny":An.translate(Rr,Rr,Qe.NEGATIVE_Y),An.rotateX(Rr,Rr,Math.PI/2);break;case"pz":An.translate(Rr,Rr,Qe.POSITIVE_Z);break;case"nz":An.translate(Rr,Rr,Qe.NEGATIVE_Z),An.rotateY(Rr,Rr,Math.PI)}return i.applyTransform(Rr),i}const Nr=Ci.extend({dynamic:!1,widthSegments:1,heightSegments:1,depthSegments:1,inside:!1},(function(){this.build()}),{build:function(){var t={px:Or("px",this.depthSegments,this.heightSegments),nx:Or("nx",this.depthSegments,this.heightSegments),py:Or("py",this.widthSegments,this.depthSegments),ny:Or("ny",this.widthSegments,this.depthSegments),pz:Or("pz",this.widthSegments,this.heightSegments),nz:Or("nz",this.widthSegments,this.heightSegments)},e=["position","texcoord0","normal"],n=0,i=0;for(var r in t)n+=t[r].vertexCount,i+=t[r].indices.length;for(var o=0;o<e.length;o++)this.attributes[e[o]].init(n);this.indices=new bt.Uint16Array(i);var a=0,s=0;for(var r in t){var l=t[r];for(o=0;o<e.length;o++)for(var h=e[o],c=l.attributes[h].value,u=l.attributes[h].size,d="normal"===h,p=0;p<c.length;p++){var f=c[p];this.inside&&d&&(f=-f),this.attributes[h].value[p+u*s]=f}var g=l.indices.length;for(p=0;p<l.indices.length;p++)this.indices[p+a]=s+l.indices[this.inside?g-p-1:p];a+=l.indices.length,s+=l.vertexCount}this.boundingBox=new Gn,this.boundingBox.max.set(1,1,1),this.boundingBox.min.set(-1,-1,-1)}});Ce.import("@export clay.skybox.vertex\n#define SHADER_NAME skybox\nuniform mat4 world : WORLD;\nuniform mat4 worldViewProjection : WORLDVIEWPROJECTION;\nattribute vec3 position : POSITION;\nvarying vec3 v_WorldPosition;\nvoid main()\n{\n v_WorldPosition = (world * vec4(position, 1.0)).xyz;\n gl_Position = worldViewProjection * vec4(position, 1.0);\n}\n@end\n@export clay.skybox.fragment\n#define PI 3.1415926\nuniform mat4 viewInverse : VIEWINVERSE;\n#ifdef EQUIRECTANGULAR\nuniform sampler2D environmentMap;\n#else\nuniform samplerCube environmentMap;\n#endif\nuniform float lod: 0.0;\nvarying vec3 v_WorldPosition;\n@import clay.util.rgbm\n@import clay.util.srgb\n@import clay.util.ACES\nvoid main()\n{\n vec3 eyePos = viewInverse[3].xyz;\n vec3 V = normalize(v_WorldPosition - eyePos);\n#ifdef EQUIRECTANGULAR\n float phi = acos(V.y);\n float theta = atan(-V.x, V.z) + PI * 0.5;\n vec2 uv = vec2(theta / 2.0 / PI, phi / PI);\n vec4 texel = decodeHDR(texture2D(environmentMap, fract(uv)));\n#else\n #if defined(LOD) || defined(SUPPORT_TEXTURE_LOD)\n vec4 texel = decodeHDR(textureCubeLodEXT(environmentMap, V, lod));\n #else\n vec4 texel = decodeHDR(textureCube(environmentMap, V));\n #endif\n#endif\n#ifdef SRGB_DECODE\n texel = sRGBToLinear(texel);\n#endif\n#ifdef TONEMAPPING\n texel.rgb = ACESToneMapping(texel.rgb);\n#endif\n#ifdef SRGB_ENCODE\n texel = linearTosRGB(texel);\n#endif\n gl_FragColor = encodeHDR(vec4(texel.rgb, 1.0));\n}\n@end");var Fr=li.extend((function(){var t=new Ce({vertex:Ce.source("clay.skybox.vertex"),fragment:Ce.source("clay.skybox.fragment")}),e=new Ht({shader:t,depthMask:!1});return{scene:null,geometry:new Nr,material:e,environmentMap:null,culling:!1,_dummyCamera:new mr}}),(function(){var t=this.scene;t&&this.attachScene(t),this.environmentMap&&this.setEnvironmentMap(this.environmentMap)}),{attachScene:function(t){this.scene&&this.detachScene(),t.skybox=this,this.scene=t,t.on("beforerender",this._beforeRenderScene,this)},detachScene:function(){this.scene&&(this.scene.off("beforerender",this._beforeRenderScene),this.scene.skybox=null),this.scene=null},dispose:function(t){this.detachScene(),this.geometry.dispose(t)},setEnvironmentMap:function(t){"texture2D"===t.textureType?(this.material.define("EQUIRECTANGULAR"),t.minFilter=ai.LINEAR):this.material.undefine("EQUIRECTANGULAR"),this.material.set("environmentMap",t)},getEnvironmentMap:function(){return this.material.get("environmentMap")},_beforeRenderScene:function(t,e,n){this.renderSkybox(t,n)},renderSkybox:function(t,e){var n=this._dummyCamera;n.aspect=t.getViewportAspect(),n.fov=e.fov||50,n.updateProjectionMatrix(),An.invert(n.invProjectionMatrix,n.projectionMatrix),n.worldTransform.copy(e.worldTransform),n.viewMatrix.copy(e.viewMatrix),this.position.copy(e.getWorldPosition()),this.update(),t.gl.disable(t.gl.BLEND),this.material.get("lod")>0?this.material.define("fragment","LOD"):this.material.undefine("fragment","LOD"),t.renderPass([this],n)}});const Br=Fr,zr=Br;function Gr(t){return t.charCodeAt(0)+(t.charCodeAt(1)<<8)+(t.charCodeAt(2)<<16)+(t.charCodeAt(3)<<24)}var Vr=Gr("DXT1"),jr=Gr("DXT3"),Hr=Gr("DXT5");const Wr={parse:function(t,e){var n=new Int32Array(t,0,31);if(542327876!==n[0])return null;if(4&!n(20))return null;var i,r,o=n(21),a=n[4],s=n[3],l=512&n[28],h=131072&n[2];switch(o){case Vr:i=8,r=ai.COMPRESSED_RGB_S3TC_DXT1_EXT;break;case jr:i=16,r=ai.COMPRESSED_RGBA_S3TC_DXT3_EXT;break;case Hr:i=16,r=ai.COMPRESSED_RGBA_S3TC_DXT5_EXT;break;default:return null}var c=n[1]+4,u=l?6:1,d=1;h&&(d=Math.max(1,n[7]));for(var p=[],f=0;f<u;f++){var g=a,m=s;p[f]=new fi({width:g,height:m,format:r});for(var v=[],y=0;y<d;y++){var _=Math.max(4,g)/4*Math.max(4,m)/4*i,x=new Uint8Array(t,c,_);c+=_,g*=.5,m*=.5,v[y]=x}p[f].pixels=v[0],h&&(p[f].mipmaps=v)}if(!e)return p[0];e.width=p[0].width,e.height=p[0].height,e.format=p[0].format,e.pixels=p[0].pixels,e.mipmaps=p[0].mipmaps}};var Ur=String.fromCharCode;function qr(t,e,n,i){if(t[3]>0){var r=Math.pow(2,t[3]-128-8+i);e[n+0]=t[0]*r,e[n+1]=t[1]*r,e[n+2]=t[2]*r}else e[n+0]=0,e[n+1]=0,e[n+2]=0;return e[n+3]=1,e}function Xr(t,e,n,i){for(var r,o,a=0,s=0,l=i;l>0;)if(t[s][0]=e[n++],t[s][1]=e[n++],t[s][2]=e[n++],t[s][3]=e[n++],1===t[s][0]&&1===t[s][1]&&1===t[s][2]){for(var h=t[s][3]<<a>>>0;h>0;h--)r=t[s-1],(o=t[s])[0]=r[0],o[1]=r[1],o[2]=r[2],o[3]=r[3],s++,l--;a+=8}else s++,l--,a=0;return n}function Yr(t,e,n,i){if(i<8|i>32767)return Xr(t,e,n,i);if(2!=(r=e[n++]))return Xr(t,e,n-1,i);if(t[0][1]=e[n++],t[0][2]=e[n++],r=e[n++],(t[0][2]<<8>>>0|r)>>>0!==i)return null;for(var r=0;r<4;r++)for(var o=0;o<i;){var a=e[n++];if(a>128){a=(127&a)>>>0;for(var s=e[n++];a--;)t[o++][r]=s}else for(;a--;)t[o++][r]=e[n++]}return n}var Zr={parseRGBE:function(t,e,n){null==n&&(n=0);var i=new Uint8Array(t),r=i.length;if("#?"===function(t,e,n){for(var i="",r=e;r<n;r++)i+=Ur(t[r]);return i}(i,0,2)){for(var o=2;o<r&&("\n"!==Ur(i[o])||"\n"!==Ur(i[o+1]));o++);if(!(o>=r)){o+=2;for(var a="";o<r;o++){var s=Ur(i[o]);if("\n"===s)break;a+=s}var l=a.split(" "),h=parseInt(l[1]),c=parseInt(l[3]);if(c&&h){for(var u=o+1,d=[],p=0;p<c;p++){d[p]=[];for(var f=0;f<4;f++)d[p][f]=0}for(var g=new Float32Array(c*h*4),m=0,v=0;v<h;v++){if(!(u=Yr(d,i,u,c)))return null;for(p=0;p<c;p++)qr(d[p],g,m,n),m+=4}return e||(e=new fi),e.width=c,e.height=h,e.pixels=g,e.type=ai.FLOAT,e}}}},parseRGBEFromPNG:function(t){}};const $r=Zr;var Kr={loadTexture:function(t,e,n,i){var r;if("function"==typeof e?(i=n=e,e={}):e=e||{},"string"==typeof t){if(t.match(/.hdr$/)||"hdr"===e.fileType)return r=new fi({width:0,height:0,sRGB:!1}),Kr._fetchTexture(t,(function(t){$r.parseRGBE(t,r,e.exposure),r.dirty(),n&&n(r)}),i),r;t.match(/.dds$/)||"dds"===e.fileType?(r=new fi({width:0,height:0}),Kr._fetchTexture(t,(function(t){Wr.parse(t,r),r.dirty(),n&&n(r)}),i)):((r=new fi).load(t),r.success(n),r.error(i))}else"object"==typeof t&&void 0!==t.px&&((r=new fr).load(t),r.success(n),r.error(i));return r},loadPanorama:function(t,e,n,i,r,o){var a=this;"function"==typeof i?(o=r=i,i={}):i=i||{},Kr.loadTexture(e,i,(function(e){e.flipY=i.flipY||!1,a.panoramaToCubeMap(t,e,n,i),e.dispose(t),r&&r(n)}),o)},panoramaToCubeMap:function(t,e,n,i){var r=new Lr,o=new zr({scene:new lr});return o.setEnvironmentMap(e),(i=i||{}).encodeRGBM&&o.material.define("fragment","RGBM_ENCODE"),n.sRGB=e.sRGB,r.texture=n,r.render(t,o.scene),r.texture=null,r.dispose(t),n},heightToNormal:function(t,e){var n=document.createElement("canvas"),i=n.width=t.width,r=n.height=t.height,o=n.getContext("2d");o.drawImage(t,0,0,i,r),e=e||!1;for(var a=o.getImageData(0,0,i,r),s=o.createImageData(i,r),l=0;l<a.data.length;l+=4){if(e){var h=a.data[l],c=a.data[l+1],u=a.data[l+2];if(Math.abs(h-c)+Math.abs(c-u)>20)return console.warn("Given image is not a height map"),t}var d,p,f,g;l%(4*i)==0?(d=a.data[l],f=a.data[l+4]):l%(4*i)==4*(i-1)?(d=a.data[l-4],f=a.data[l]):(d=a.data[l-4],f=a.data[l+4]),l<4*i?(p=a.data[l],g=a.data[l+4*i]):l>i*(r-1)*4?(p=a.data[l-4*i],g=a.data[l]):(p=a.data[l-4*i],g=a.data[l+4*i]),s.data[l]=d-f+127,s.data[l+1]=p-g+127,s.data[l+2]=255,s.data[l+3]=255}return o.putImageData(s,0,0),n},isHeightImage:function(t,e,n){if(!t||!t.width||!t.height)return!1;var i=document.createElement("canvas"),r=i.getContext("2d"),o=e||32;n=n||20,i.width=i.height=o,r.drawImage(t,0,0,o,o);for(var a=r.getImageData(0,0,o,o),s=0;s<a.data.length;s+=4){var l=a.data[s],h=a.data[s+1],c=a.data[s+2];if(Math.abs(l-h)+Math.abs(h-c)>n)return!1}return!0},_fetchTexture:function(t,e,n){bt.request.get({url:t,responseType:"arraybuffer",onload:e,onerror:n})},createChessboard:function(t,e,n,i){t=t||512,e=e||64,n=n||"black",i=i||"white";var r=Math.ceil(t/e),o=document.createElement("canvas");o.width=t,o.height=t;var a=o.getContext("2d");a.fillStyle=i,a.fillRect(0,0,t,t),a.fillStyle=n;for(var s=0;s<r;s++)for(var l=0;l<r;l++){(l%2?s%2:s%2-1)&&a.fillRect(s*e,l*e,e,e)}return new fi({image:o,anisotropic:8})},createBlank:function(t){var e=document.createElement("canvas");e.width=1,e.height=1;var n=e.getContext("2d");return n.fillStyle=t,n.fillRect(0,0,1,1),new fi({image:e})}};const Jr=Kr;var Qr=["mousedown","mouseup","mousemove","mouseover","mouseout","click","dblclick","contextmenu"];function to(t){return"_on"+t}var eo=function(t){var e=this;this._texture=new fi({anisotropic:32,flipY:!1,surface:this,dispose:function(t){e.dispose(),fi.prototype.dispose.call(this,t)}}),Qr.forEach((function(t){this[to(t)]=function(e){e.triangle&&this._meshes.forEach((function(n){this.dispatchEvent(t,n,e.triangle,e.point)}),this)}}),this),this._meshes=[],t&&this.setECharts(t),this.onupdate=null};eo.prototype={constructor:eo,getTexture:function(){return this._texture},setECharts:function(t){this._chart=t;var e=t.getDom();if(e instanceof HTMLCanvasElement){var n=this,i=t.getZr(),r=i.__oldRefreshImmediately||i.refreshImmediately;i.refreshImmediately=function(){r.call(this),n._texture.dirty(),n.onupdate&&n.onupdate()},i.__oldRefreshImmediately=r}else console.error("ECharts must init on canvas if it is used as texture."),e=document.createElement("canvas");this._texture.image=e,this._texture.dirty(),this.onupdate&&this.onupdate()},dispatchEvent:function(){var t=new Qe,e=new Qe,n=new Qe,i=new Jt,r=new Jt,o=new Jt,a=new Jt,s=new Qe;return function(l,h,c,u){var d=h.geometry,p=d.attributes.position,f=d.attributes.texcoord0,g=Qe.dot,m=Qe.cross;p.get(c[0],t.array),p.get(c[1],e.array),p.get(c[2],n.array),f.get(c[0],i.array),f.get(c[1],r.array),f.get(c[2],o.array),m(s,e,n);var v=g(t,s),y=g(u,s)/v;m(s,n,t);var _=g(u,s)/v;m(s,t,e);var x=g(u,s)/v;Jt.scale(a,i,y),Jt.scaleAndAdd(a,a,r,_),Jt.scaleAndAdd(a,a,o,x);var b=a.x*this._chart.getWidth(),w=a.y*this._chart.getHeight();this._chart.getZr().handler.dispatch(l,{zrX:b,zrY:w})}}(),attachToMesh:function(t){this._meshes.indexOf(t)>=0||(Qr.forEach((function(e){t.on(e,this[to(e)],this)}),this),this._meshes.push(t))},detachFromMesh:function(t){var e=this._meshes.indexOf(t);e>=0&&this._meshes.splice(e,1),Qr.forEach((function(e){t.off(e,this[to(e)])}),this)},dispose:function(){this._meshes.forEach((function(t){this.detachFromMesh(t)}),this)}};const no=eo;var io=Ji.extend({left:-1,right:1,near:-1,far:1,top:1,bottom:-1},{updateProjectionMatrix:function(){this.projectionMatrix.ortho(this.left,this.right,this.bottom,this.top,this.near,this.far)},decomposeProjectionMatrix:function(){var t=this.projectionMatrix.array;this.left=(-1-t[12])/t[0],this.right=(1-t[12])/t[0],this.top=(1-t[13])/t[5],this.bottom=(-1-t[13])/t[5],this.near=-(-1-t[14])/t[10],this.far=-(1-t[14])/t[10]},clone:function(){var t=Ji.prototype.clone.call(this);return t.left=this.left,t.right=this.right,t.near=this.near,t.far=this.far,t.top=this.top,t.bottom=this.bottom,t}});const ro=io;Ce.import("\n@export clay.compositor.vertex\nuniform mat4 worldViewProjection : WORLDVIEWPROJECTION;\nattribute vec3 position : POSITION;\nattribute vec2 texcoord : TEXCOORD_0;\nvarying vec2 v_Texcoord;\nvoid main()\n{\n v_Texcoord = texcoord;\n gl_Position = worldViewProjection * vec4(position, 1.0);\n}\n@end");var oo=new Pr,ao=new li({geometry:oo,frustumCulling:!1}),so=new ro;const lo=y.extend((function(){return{fragment:"",outputs:null,material:null,blendWithPrevious:!1,clearColor:!1,clearDepth:!0}}),(function(){var t=new Ce(Ce.source("clay.compositor.vertex"),this.fragment),e=new Ht({shader:t});e.enableTexturesAll(),this.material=e}),{setUniform:function(t,e){this.material.setUniform(t,e)},getUniform:function(t){var e=this.material.uniforms[t];if(e)return e.value},attachOutput:function(t,e){this.outputs||(this.outputs={}),e=e||pt,this.outputs[e]=t},detachOutput:function(t){for(var e in this.outputs)this.outputs[e]===t&&(this.outputs[e]=null)},bind:function(t,e){if(this.outputs)for(var n in this.outputs){var i=this.outputs[n];i&&e.attach(i,n)}e&&e.bind(t)},unbind:function(t,e){e.unbind(t)},render:function(t,e){var n=t.gl;if(e){this.bind(t,e);var i=t.getGLExtension("EXT_draw_buffers");if(i&&this.outputs){var r=[];for(var o in this.outputs)(o=+o)>=n.COLOR_ATTACHMENT0&&o<=n.COLOR_ATTACHMENT0+8&&r.push(o);i.drawBuffersEXT(r)}}this.trigger("beforerender",this,t);var a=this.clearDepth?n.DEPTH_BUFFER_BIT:0;if(n.depthMask(!0),this.clearColor){a|=n.COLOR_BUFFER_BIT,n.colorMask(!0,!0,!0,!0);var s=this.clearColor;Array.isArray(s)&&n.clearColor(s[0],s[1],s[2],s[3])}n.clear(a),this.blendWithPrevious?(n.enable(n.BLEND),this.material.transparent=!0):(n.disable(n.BLEND),this.material.transparent=!1),this.renderQuad(t),this.trigger("afterrender",this,t),e&&this.unbind(t,e)},renderQuad:function(t){ao.material=this.material,t.renderPass([ao],so)},dispose:function(t){}});var ho={},co=["px","nx","py","ny","pz","nz"];ho.prefilterEnvironmentMap=function(t,e,n,i,r){r&&i||(i=ho.generateNormalDistribution(),r=ho.integrateBRDF(t,i));var o=(n=n||{}).width||64,a=n.height||64,s=n.type||e.type,l=new fr({width:o,height:a,type:s,flipY:!1,mipmaps:[]});l.isPowerOfTwo()||console.warn("Width and height must be power of two to enable mipmap.");var h=Math.min(o,a),c=Math.log(h)/Math.log(2)+1,u=new Ht({shader:new Ce({vertex:Ce.source("clay.skybox.vertex"),fragment:"#define SHADER_NAME prefilter\n#define SAMPLE_NUMBER 1024\n#define PI 3.14159265358979\nuniform mat4 viewInverse : VIEWINVERSE;\nuniform samplerCube environmentMap;\nuniform sampler2D normalDistribution;\nuniform float roughness : 0.5;\nvarying vec2 v_Texcoord;\nvarying vec3 v_WorldPosition;\n@import clay.util.rgbm\nvec3 importanceSampleNormal(float i, float roughness, vec3 N) {\n vec3 H = texture2D(normalDistribution, vec2(roughness, i)).rgb;\n vec3 upVector = abs(N.y) > 0.999 ? vec3(1.0, 0.0, 0.0) : vec3(0.0, 1.0, 0.0);\n vec3 tangentX = normalize(cross(N, upVector));\n vec3 tangentZ = cross(N, tangentX);\n return normalize(tangentX * H.x + N * H.y + tangentZ * H.z);\n}\nvoid main() {\n vec3 eyePos = viewInverse[3].xyz;\n vec3 V = normalize(v_WorldPosition - eyePos);\n vec3 N = V;\n vec3 prefilteredColor = vec3(0.0);\n float totalWeight = 0.0;\n float fMaxSampleNumber = float(SAMPLE_NUMBER);\n for (int i = 0; i < SAMPLE_NUMBER; i++) {\n vec3 H = importanceSampleNormal(float(i) / fMaxSampleNumber, roughness, N);\n vec3 L = reflect(-V, H);\n float NoL = clamp(dot(N, L), 0.0, 1.0);\n if (NoL > 0.0) {\n prefilteredColor += decodeHDR(textureCube(environmentMap, L)).rgb * NoL;\n totalWeight += NoL;\n }\n }\n gl_FragColor = encodeHDR(vec4(prefilteredColor / totalWeight, 1.0));\n}\n"})});u.set("normalDistribution",i),n.encodeRGBM&&u.define("fragment","RGBM_ENCODE"),n.decodeRGBM&&u.define("fragment","RGBM_DECODE");var d,p=new lr;if("texture2D"===e.textureType){var f=new fr({width:o,height:a,type:s===ai.FLOAT?ai.HALF_FLOAT:s});Jr.panoramaToCubeMap(t,e,f,{encodeRGBM:n.decodeRGBM}),e=f}(d=new Br({scene:p,material:u})).material.set("environmentMap",e);var g=new Lr({texture:l});n.encodeRGBM&&(s=l.type=ai.UNSIGNED_BYTE);for(var m=new fi({width:o,height:a,type:s}),v=new Ir({depthBuffer:!1}),y=bt[s===ai.UNSIGNED_BYTE?"Uint8Array":"Float32Array"],_=0;_<c;_++){l.mipmaps[_]={pixels:{}},d.material.set("roughness",_/(c-1));for(var x=m.width,b=2*Math.atan(x/(x-.5))/Math.PI*180,w=0;w<co.length;w++){var S=new y(m.width*m.height*4);v.attach(m),v.bind(t);var T=g.getCamera(co[w]);T.fov=b,t.render(p,T),t.gl.readPixels(0,0,m.width,m.height,ai.RGBA,s,S),v.unbind(t),l.mipmaps[_].pixels[co[w]]=S}m.width/=2,m.height/=2,m.dirty()}return v.dispose(t),m.dispose(t),d.dispose(t),i.dispose(t),{environmentMap:l,brdfLookup:r,normalDistribution:i,maxMipmapLevel:c}},ho.integrateBRDF=function(t,e){e=e||ho.generateNormalDistribution();var n=new Ir({depthBuffer:!1}),i=new lo({fragment:"#define SAMPLE_NUMBER 1024\n#define PI 3.14159265358979\nuniform sampler2D normalDistribution;\nuniform vec2 viewportSize : [512, 256];\nconst vec3 N = vec3(0.0, 0.0, 1.0);\nconst float fSampleNumber = float(SAMPLE_NUMBER);\nvec3 importanceSampleNormal(float i, float roughness, vec3 N) {\n vec3 H = texture2D(normalDistribution, vec2(roughness, i)).rgb;\n vec3 upVector = abs(N.y) > 0.999 ? vec3(1.0, 0.0, 0.0) : vec3(0.0, 1.0, 0.0);\n vec3 tangentX = normalize(cross(N, upVector));\n vec3 tangentZ = cross(N, tangentX);\n return normalize(tangentX * H.x + N * H.y + tangentZ * H.z);\n}\nfloat G_Smith(float roughness, float NoV, float NoL) {\n float k = roughness * roughness / 2.0;\n float G1V = NoV / (NoV * (1.0 - k) + k);\n float G1L = NoL / (NoL * (1.0 - k) + k);\n return G1L * G1V;\n}\nvoid main() {\n vec2 uv = gl_FragCoord.xy / viewportSize;\n float NoV = uv.x;\n float roughness = uv.y;\n vec3 V;\n V.x = sqrt(1.0 - NoV * NoV);\n V.y = 0.0;\n V.z = NoV;\n float A = 0.0;\n float B = 0.0;\n for (int i = 0; i < SAMPLE_NUMBER; i++) {\n vec3 H = importanceSampleNormal(float(i) / fSampleNumber, roughness, N);\n vec3 L = reflect(-V, H);\n float NoL = clamp(L.z, 0.0, 1.0);\n float NoH = clamp(H.z, 0.0, 1.0);\n float VoH = clamp(dot(V, H), 0.0, 1.0);\n if (NoL > 0.0) {\n float G = G_Smith(roughness, NoV, NoL);\n float G_Vis = G * VoH / (NoH * NoV);\n float Fc = pow(1.0 - VoH, 5.0);\n A += (1.0 - Fc) * G_Vis;\n B += Fc * G_Vis;\n }\n }\n gl_FragColor = vec4(vec2(A, B) / fSampleNumber, 0.0, 1.0);\n}\n"}),r=new fi({width:512,height:256,type:ai.HALF_FLOAT,wrapS:ai.CLAMP_TO_EDGE,wrapT:ai.CLAMP_TO_EDGE,minFilter:ai.NEAREST,magFilter:ai.NEAREST,useMipmap:!1});return i.setUniform("normalDistribution",e),i.setUniform("viewportSize",[512,256]),i.attachOutput(r),i.render(t,n),n.dispose(t),r},ho.generateNormalDistribution=function(t,e){for(var n=new fi({width:t=t||256,height:e=e||1024,type:ai.FLOAT,minFilter:ai.NEAREST,magFilter:ai.NEAREST,wrapS:ai.CLAMP_TO_EDGE,wrapT:ai.CLAMP_TO_EDGE,useMipmap:!1}),i=new Float32Array(e*t*4),r=[],o=0;o<t;o++){for(var a=o/t,s=a*a,l=0;l<e;l++){var h=(l<<16|l>>>16)>>>0;h=(((16711935&(h=((252645135&(h=((858993459&(h=((1431655765&h)<<1|(2863311530&h)>>>1)>>>0))<<2|(3435973836&h)>>>2)>>>0))<<4|(4042322160&h)>>>4)>>>0))<<8|(4278255360&h)>>>8)>>>0)/4294967296;var c=Math.sqrt((1-h)/(1+(s*s-1)*h));r[l]=c}for(l=0;l<e;l++){var u=4*(l*t+o),d=(c=r[l],Math.sqrt(1-c*c)),p=l/e,f=2*Math.PI*p;i[u]=d*Math.cos(f),i[u+1]=c,i[u+2]=d*Math.sin(f),i[u+3]=1}}return n.pixels=i,n};const uo=ho;var po=Oi.extend({cubemap:null,castShadow:!1,_normalDistribution:null,_brdfLookup:null},{type:"AMBIENT_CUBEMAP_LIGHT",prefilter:function(t,e){if(t.getGLExtension("EXT_shader_texture_lod")){this._brdfLookup||(this._normalDistribution=uo.generateNormalDistribution(),this._brdfLookup=uo.integrateBRDF(t,this._normalDistribution));var n=this.cubemap;if(!n.__prefiltered){var i=uo.prefilterEnvironmentMap(t,n,{encodeRGBM:!0,width:e,height:e},this._normalDistribution,this._brdfLookup);this.cubemap=i.environmentMap,this.cubemap.__prefiltered=!0,n.dispose(t)}}else console.warn("Device not support textureCubeLodEXT")},getBRDFLookup:function(){return this._brdfLookup},uniformTemplates:{ambientCubemapLightColor:{type:"3f",value:function(t){var e=t.color,n=t.intensity;return[e[0]*n,e[1]*n,e[2]*n]}},ambientCubemapLightCubemap:{type:"t",value:function(t){return t.cubemap}},ambientCubemapLightBRDFLookup:{type:"t",value:function(t){return t._brdfLookup}}}});const fo=po;var go=Oi.extend({castShadow:!1,coefficients:[]},(function(){this._coefficientsTmpArr=new bt.Float32Array(27)}),{type:"AMBIENT_SH_LIGHT",uniformTemplates:{ambientSHLightColor:{type:"3f",value:function(t){var e=t.color,n=t.intensity;return[e[0]*n,e[1]*n,e[2]*n]}},ambientSHLightCoefficients:{type:"3f",value:function(t){for(var e=t._coefficientsTmpArr,n=0;n<t.coefficients.length;n++)e[n]=t.coefficients[n];return e}}}});const mo=go;var vo={},yo=["px","nx","py","ny","pz","nz"];function _o(t,e){var n=t[0],i=t[1],r=t[2];return 0===e?1:1===e?n:2===e?i:3===e?r:4===e?n*r:5===e?i*r:6===e?n*i:7===e?3*r*r-1:n*n-i*i}var xo={px:[2,1,0,-1,-1,1],nx:[2,1,0,1,-1,-1],py:[0,2,1,1,-1,-1],ny:[0,2,1,1,1,1],pz:[0,1,2,-1,-1,-1],nz:[0,1,2,1,-1,1]};vo.projectEnvironmentMap=function(t,e,n){var i;(n=n||{}).lod=n.lod||0;var r=new lr,o=64;"texture2D"===e.textureType?i=new zr({scene:r,environmentMap:e}):(o=e.image&&e.image.px?e.image.px.width:e.width,i=new Br({scene:r,environmentMap:e}));var a=Math.ceil(o/Math.pow(2,n.lod)),s=Math.ceil(o/Math.pow(2,n.lod)),l=new fi({width:a,height:s}),h=new Ir;i.material.define("fragment","RGBM_ENCODE"),n.decodeRGBM&&i.material.define("fragment","RGBM_DECODE"),i.material.set("lod",n.lod);for(var c=new Lr({texture:l}),u={},d=0;d<yo.length;d++){u[yo[d]]=new Uint8Array(a*s*4);var p=c.getCamera(yo[d]);p.fov=90,h.attach(l),h.bind(t),t.render(r,p),t.gl.readPixels(0,0,a,s,ai.RGBA,ai.UNSIGNED_BYTE,u[yo[d]]),h.unbind(t)}return i.dispose(t),h.dispose(t),l.dispose(t),function(t,e,n,i){for(var r=new bt.Float32Array(27),o=De.create(),a=De.create(),s=De.create(),l=0;l<9;l++){for(var h=De.create(),c=0;c<yo.length;c++){for(var u=e[yo[c]],d=De.create(),p=0,f=0,g=xo[yo[c]],m=0;m<i;m++)for(var v=0;v<n;v++){o[0]=v/(n-1)*2-1,o[1]=m/(i-1)*2-1,o[2]=-1,De.normalize(o,o),s[0]=o[g[0]]*g[3],s[1]=o[g[1]]*g[4],s[2]=o[g[2]]*g[5],a[0]=u[f++]/255,a[1]=u[f++]/255,a[2]=u[f++]/255;var y=u[f++]/255*8.12;a[0]*=y,a[1]*=y,a[2]*=y,De.scaleAndAdd(d,d,a,_o(s,l)*-o[2]),p+=-o[2]}De.scaleAndAdd(h,h,d,1/p)}r[3*l]=h[0]/6,r[3*l+1]=h[1]/6,r[3*l+2]=h[2]/6}return r}(0,u,a,s)};const bo=vo;const wo={firstNotNull:function(){for(var t=0,e=arguments.length;t<e;t++)if(null!=arguments[t])return arguments[t]},queryDataIndex:function(t,e){return null!=e.dataIndexInside?e.dataIndexInside:null!=e.dataIndex?i.ZS.isArray(e.dataIndex)?i.ZS.map(e.dataIndex,(function(e){return t.indexOfRawIndex(e)})):t.indexOfRawIndex(e.dataIndex):null!=e.name?i.ZS.isArray(e.name)?i.ZS.map(e.name,(function(e){return t.indexOfName(e)})):t.indexOfName(e.name):void 0}};var So=Ci.extend({dynamic:!1,widthSegments:40,heightSegments:20,phiStart:0,phiLength:2*Math.PI,thetaStart:0,thetaLength:Math.PI,radius:1},(function(){this.build()}),{build:function(){var t=this.heightSegments,e=this.widthSegments,n=this.attributes.position,i=this.attributes.texcoord0,r=this.attributes.normal,o=(e+1)*(t+1);n.init(o),i.init(o),r.init(o);var a,s,l,h,c,u,d,p,f,g,m,v=o>65535?Uint32Array:Uint16Array,y=this.indices=new v(e*t*6),_=this.radius,x=this.phiStart,b=this.phiLength,w=this.thetaStart,S=this.thetaLength,T=[],M=[],A=0,C=1/(_=this.radius);for(d=0;d<=t;d++)for(u=0;u<=e;u++)h=u/e,c=d/t,a=-_*Math.cos(x+h*b)*Math.sin(w+c*S),s=_*Math.cos(w+c*S),l=_*Math.sin(x+h*b)*Math.sin(w+c*S),T[0]=a,T[1]=s,T[2]=l,M[0]=h,M[1]=c,n.set(A,T),i.set(A,M),T[0]*=C,T[1]*=C,T[2]*=C,r.set(A,T),A++;var I=e+1,E=0;for(d=0;d<t;d++)for(u=0;u<e;u++)f=d*I+u,p=d*I+u+1,m=(d+1)*I+u+1,g=(d+1)*I+u,y[E++]=p,y[E++]=f,y[E++]=m,y[E++]=f,y[E++]=g,y[E++]=m;this.boundingBox=new Gn,this.boundingBox.max.set(_,_,_),this.boundingBox.min.set(-_,-_,-_)}});const To=So;var Mo=Oi.extend({castShadow:!1},{type:"AMBIENT_LIGHT",uniformTemplates:{ambientLightColor:{type:"3f",value:function(t){var e=t.color,n=t.intensity;return[e[0]*n,e[1]*n,e[2]*n]}}}});const Ao=Mo;var Co=Oi.extend({shadowBias:.001,shadowSlopeScale:2,shadowCascade:1,cascadeSplitLogFactor:.2},{type:"DIRECTIONAL_LIGHT",uniformTemplates:{directionalLightDirection:{type:"3f",value:function(t){return t.__dir=t.__dir||new Qe,t.__dir.copy(t.worldTransform.z).normalize().negate().array}},directionalLightColor:{type:"3f",value:function(t){var e=t.color,n=t.intensity;return[e[0]*n,e[1]*n,e[2]*n]}}},clone:function(){var t=Oi.prototype.clone.call(this);return t.shadowBias=this.shadowBias,t.shadowSlopeScale=this.shadowSlopeScale,t}});const Io=Co;var Eo=Oi.extend({range:100,castShadow:!1},{type:"POINT_LIGHT",uniformTemplates:{pointLightPosition:{type:"3f",value:function(t){return t.getWorldPosition().array}},pointLightRange:{type:"1f",value:function(t){return t.range}},pointLightColor:{type:"3f",value:function(t){var e=t.color,n=t.intensity;return[e[0]*n,e[1]*n,e[2]*n]}}},clone:function(){var t=Oi.prototype.clone.call(this);return t.range=this.range,t}});const ko=Eo;var Lo=Oi.extend({range:20,umbraAngle:30,penumbraAngle:45,falloffFactor:2,shadowBias:.001,shadowSlopeScale:2},{type:"SPOT_LIGHT",uniformTemplates:{spotLightPosition:{type:"3f",value:function(t){return t.getWorldPosition().array}},spotLightRange:{type:"1f",value:function(t){return t.range}},spotLightUmbraAngleCosine:{type:"1f",value:function(t){return Math.cos(t.umbraAngle*Math.PI/180)}},spotLightPenumbraAngleCosine:{type:"1f",value:function(t){return Math.cos(t.penumbraAngle*Math.PI/180)}},spotLightFalloffFactor:{type:"1f",value:function(t){return t.falloffFactor}},spotLightDirection:{type:"3f",value:function(t){return t.__dir=t.__dir||new Qe,t.__dir.copy(t.worldTransform.z).negate().array}},spotLightColor:{type:"3f",value:function(t){var e=t.color,n=t.intensity;return[e[0]*n,e[1]*n,e[2]*n]}}},clone:function(){var t=Oi.prototype.clone.call(this);return t.range=this.range,t.umbraAngle=this.umbraAngle,t.penumbraAngle=this.penumbraAngle,t.falloffFactor=this.falloffFactor,t.shadowBias=this.shadowBias,t.shadowSlopeScale=this.shadowSlopeScale,t}});const Do=Lo;var Po=function(t,e,n,i){t=t||0,e=e||0,n=n||0,i=i||0,this.array=cn.fromValues(t,e,n,i),this._dirty=!0};Po.prototype={constructor:Po,add:function(t){return cn.add(this.array,this.array,t.array),this._dirty=!0,this},set:function(t,e,n,i){return this.array[0]=t,this.array[1]=e,this.array[2]=n,this.array[3]=i,this._dirty=!0,this},setArray:function(t){return this.array[0]=t[0],this.array[1]=t[1],this.array[2]=t[2],this.array[3]=t[3],this._dirty=!0,this},clone:function(){return new Po(this.x,this.y,this.z,this.w)},copy:function(t){return cn.copy(this.array,t.array),this._dirty=!0,this},dist:function(t){return cn.dist(this.array,t.array)},distance:function(t){return cn.distance(this.array,t.array)},div:function(t){return cn.div(this.array,this.array,t.array),this._dirty=!0,this},divide:function(t){return cn.divide(this.array,this.array,t.array),this._dirty=!0,this},dot:function(t){return cn.dot(this.array,t.array)},len:function(){return cn.len(this.array)},length:function(){return cn.length(this.array)},lerp:function(t,e,n){return cn.lerp(this.array,t.array,e.array,n),this._dirty=!0,this},min:function(t){return cn.min(this.array,this.array,t.array),this._dirty=!0,this},max:function(t){return cn.max(this.array,this.array,t.array),this._dirty=!0,this},mul:function(t){return cn.mul(this.array,this.array,t.array),this._dirty=!0,this},multiply:function(t){return cn.multiply(this.array,this.array,t.array),this._dirty=!0,this},negate:function(){return cn.negate(this.array,this.array),this._dirty=!0,this},normalize:function(){return cn.normalize(this.array,this.array),this._dirty=!0,this},random:function(t){return cn.random(this.array,t),this._dirty=!0,this},scale:function(t){return cn.scale(this.array,this.array,t),this._dirty=!0,this},scaleAndAdd:function(t,e){return cn.scaleAndAdd(this.array,this.array,t.array,e),this._dirty=!0,this},sqrDist:function(t){return cn.sqrDist(this.array,t.array)},squaredDistance:function(t){return cn.squaredDistance(this.array,t.array)},sqrLen:function(){return cn.sqrLen(this.array)},squaredLength:function(){return cn.squaredLength(this.array)},sub:function(t){return cn.sub(this.array,this.array,t.array),this._dirty=!0,this},subtract:function(t){return cn.subtract(this.array,this.array,t.array),this._dirty=!0,this},transformMat4:function(t){return cn.transformMat4(this.array,this.array,t.array),this._dirty=!0,this},transformQuat:function(t){return cn.transformQuat(this.array,this.array,t.array),this._dirty=!0,this},toString:function(){return"["+Array.prototype.join.call(this.array,",")+"]"},toArray:function(){return Array.prototype.slice.call(this.array)}};var Ro=Object.defineProperty;if(Ro){var Oo=Po.prototype;Ro(Oo,"x",{get:function(){return this.array[0]},set:function(t){this.array[0]=t,this._dirty=!0}}),Ro(Oo,"y",{get:function(){return this.array[1]},set:function(t){this.array[1]=t,this._dirty=!0}}),Ro(Oo,"z",{get:function(){return this.array[2]},set:function(t){this.array[2]=t,this._dirty=!0}}),Ro(Oo,"w",{get:function(){return this.array[3]},set:function(t){this.array[3]=t,this._dirty=!0}})}Po.add=function(t,e,n){return cn.add(t.array,e.array,n.array),t._dirty=!0,t},Po.set=function(t,e,n,i,r){cn.set(t.array,e,n,i,r),t._dirty=!0},Po.copy=function(t,e){return cn.copy(t.array,e.array),t._dirty=!0,t},Po.distance=Po.dist=function(t,e){return cn.distance(t.array,e.array)},Po.divide=Po.div=function(t,e,n){return cn.divide(t.array,e.array,n.array),t._dirty=!0,t},Po.dot=function(t,e){return cn.dot(t.array,e.array)},Po.len=function(t){return cn.length(t.array)},Po.lerp=function(t,e,n,i){return cn.lerp(t.array,e.array,n.array,i),t._dirty=!0,t},Po.min=function(t,e,n){return cn.min(t.array,e.array,n.array),t._dirty=!0,t},Po.max=function(t,e,n){return cn.max(t.array,e.array,n.array),t._dirty=!0,t},Po.multiply=Po.mul=function(t,e,n){return cn.multiply(t.array,e.array,n.array),t._dirty=!0,t},Po.negate=function(t,e){return cn.negate(t.array,e.array),t._dirty=!0,t},Po.normalize=function(t,e){return cn.normalize(t.array,e.array),t._dirty=!0,t},Po.random=function(t,e){return cn.random(t.array,e),t._dirty=!0,t},Po.scale=function(t,e,n){return cn.scale(t.array,e.array,n),t._dirty=!0,t},Po.scaleAndAdd=function(t,e,n,i){return cn.scaleAndAdd(t.array,e.array,n.array,i),t._dirty=!0,t},Po.squaredDistance=Po.sqrDist=function(t,e){return cn.sqrDist(t.array,e.array)},Po.squaredLength=Po.sqrLen=function(t){return cn.sqrLen(t.array)},Po.subtract=Po.sub=function(t,e,n){return cn.subtract(t.array,e.array,n.array),t._dirty=!0,t},Po.transformMat4=function(t,e,n){return cn.transformMat4(t.array,e.array,n.array),t._dirty=!0,t},Po.transformQuat=function(t,e,n){return cn.transformQuat(t.array,e.array,n.array),t._dirty=!0,t};const No=Po;var Fo={create:function(){var t=new qt(4);return t[0]=1,t[1]=0,t[2]=0,t[3]=1,t},clone:function(t){var e=new qt(4);return e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[3],e},copy:function(t,e){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3],t},identity:function(t){return t[0]=1,t[1]=0,t[2]=0,t[3]=1,t},transpose:function(t,e){if(t===e){var n=e[1];t[1]=e[2],t[2]=n}else t[0]=e[0],t[1]=e[2],t[2]=e[1],t[3]=e[3];return t},invert:function(t,e){var n=e[0],i=e[1],r=e[2],o=e[3],a=n*o-r*i;return a?(a=1/a,t[0]=o*a,t[1]=-i*a,t[2]=-r*a,t[3]=n*a,t):null},adjoint:function(t,e){var n=e[0];return t[0]=e[3],t[1]=-e[1],t[2]=-e[2],t[3]=n,t},determinant:function(t){return t[0]*t[3]-t[2]*t[1]},multiply:function(t,e,n){var i=e[0],r=e[1],o=e[2],a=e[3],s=n[0],l=n[1],h=n[2],c=n[3];return t[0]=i*s+o*l,t[1]=r*s+a*l,t[2]=i*h+o*c,t[3]=r*h+a*c,t}};Fo.mul=Fo.multiply,Fo.rotate=function(t,e,n){var i=e[0],r=e[1],o=e[2],a=e[3],s=Math.sin(n),l=Math.cos(n);return t[0]=i*l+o*s,t[1]=r*l+a*s,t[2]=i*-s+o*l,t[3]=r*-s+a*l,t},Fo.scale=function(t,e,n){var i=e[0],r=e[1],o=e[2],a=e[3],s=n[0],l=n[1];return t[0]=i*s,t[1]=r*s,t[2]=o*l,t[3]=a*l,t},Fo.frob=function(t){return Math.sqrt(Math.pow(t[0],2)+Math.pow(t[1],2)+Math.pow(t[2],2)+Math.pow(t[3],2))},Fo.LDU=function(t,e,n,i){return t[2]=i[2]/i[0],n[0]=i[0],n[1]=i[1],n[3]=i[3]-t[2]*n[1],[t,e,n]};const Bo=Fo;var zo=function(){this.array=Bo.create(),this._dirty=!0};zo.prototype={constructor:zo,setArray:function(t){for(var e=0;e<this.array.length;e++)this.array[e]=t[e];return this._dirty=!0,this},clone:function(){return(new zo).copy(this)},copy:function(t){return Bo.copy(this.array,t.array),this._dirty=!0,this},adjoint:function(){return Bo.adjoint(this.array,this.array),this._dirty=!0,this},determinant:function(){return Bo.determinant(this.array)},identity:function(){return Bo.identity(this.array),this._dirty=!0,this},invert:function(){return Bo.invert(this.array,this.array),this._dirty=!0,this},mul:function(t){return Bo.mul(this.array,this.array,t.array),this._dirty=!0,this},mulLeft:function(t){return Bo.mul(this.array,t.array,this.array),this._dirty=!0,this},multiply:function(t){return Bo.multiply(this.array,this.array,t.array),this._dirty=!0,this},multiplyLeft:function(t){return Bo.multiply(this.array,t.array,this.array),this._dirty=!0,this},rotate:function(t){return Bo.rotate(this.array,this.array,t),this._dirty=!0,this},scale:function(t){return Bo.scale(this.array,this.array,t.array),this._dirty=!0,this},transpose:function(){return Bo.transpose(this.array,this.array),this._dirty=!0,this},toString:function(){return"["+Array.prototype.join.call(this.array,",")+"]"},toArray:function(){return Array.prototype.slice.call(this.array)}},zo.adjoint=function(t,e){return Bo.adjoint(t.array,e.array),t._dirty=!0,t},zo.copy=function(t,e){return Bo.copy(t.array,e.array),t._dirty=!0,t},zo.determinant=function(t){return Bo.determinant(t.array)},zo.identity=function(t){return Bo.identity(t.array),t._dirty=!0,t},zo.invert=function(t,e){return Bo.invert(t.array,e.array),t._dirty=!0,t},zo.multiply=zo.mul=function(t,e,n){return Bo.mul(t.array,e.array,n.array),t._dirty=!0,t},zo.rotate=function(t,e,n){return Bo.rotate(t.array,e.array,n),t._dirty=!0,t},zo.scale=function(t,e,n){return Bo.scale(t.array,e.array,n.array),t._dirty=!0,t},zo.transpose=function(t,e){return Bo.transpose(t.array,e.array),t._dirty=!0,t};const Go=zo;var Vo={create:function(){var t=new qt(6);return t[0]=1,t[1]=0,t[2]=0,t[3]=1,t[4]=0,t[5]=0,t},clone:function(t){var e=new qt(6);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},copy:function(t,e){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3],t[4]=e[4],t[5]=e[5],t},identity:function(t){return t[0]=1,t[1]=0,t[2]=0,t[3]=1,t[4]=0,t[5]=0,t},invert:function(t,e){var n=e[0],i=e[1],r=e[2],o=e[3],a=e[4],s=e[5],l=n*o-i*r;return l?(l=1/l,t[0]=o*l,t[1]=-i*l,t[2]=-r*l,t[3]=n*l,t[4]=(r*s-o*a)*l,t[5]=(i*a-n*s)*l,t):null},determinant:function(t){return t[0]*t[3]-t[1]*t[2]},multiply:function(t,e,n){var i=e[0],r=e[1],o=e[2],a=e[3],s=e[4],l=e[5],h=n[0],c=n[1],u=n[2],d=n[3],p=n[4],f=n[5];return t[0]=i*h+o*c,t[1]=r*h+a*c,t[2]=i*u+o*d,t[3]=r*u+a*d,t[4]=i*p+o*f+s,t[5]=r*p+a*f+l,t}};Vo.mul=Vo.multiply,Vo.rotate=function(t,e,n){var i=e[0],r=e[1],o=e[2],a=e[3],s=e[4],l=e[5],h=Math.sin(n),c=Math.cos(n);return t[0]=i*c+o*h,t[1]=r*c+a*h,t[2]=i*-h+o*c,t[3]=r*-h+a*c,t[4]=s,t[5]=l,t},Vo.scale=function(t,e,n){var i=e[0],r=e[1],o=e[2],a=e[3],s=e[4],l=e[5],h=n[0],c=n[1];return t[0]=i*h,t[1]=r*h,t[2]=o*c,t[3]=a*c,t[4]=s,t[5]=l,t},Vo.translate=function(t,e,n){var i=e[0],r=e[1],o=e[2],a=e[3],s=e[4],l=e[5],h=n[0],c=n[1];return t[0]=i,t[1]=r,t[2]=o,t[3]=a,t[4]=i*h+o*c+s,t[5]=r*h+a*c+l,t},Vo.frob=function(t){return Math.sqrt(Math.pow(t[0],2)+Math.pow(t[1],2)+Math.pow(t[2],2)+Math.pow(t[3],2)+Math.pow(t[4],2)+Math.pow(t[5],2)+1)};const jo=Vo;var Ho=function(){this.array=jo.create(),this._dirty=!0};Ho.prototype={constructor:Ho,setArray:function(t){for(var e=0;e<this.array.length;e++)this.array[e]=t[e];return this._dirty=!0,this},clone:function(){return(new Ho).copy(this)},copy:function(t){return jo.copy(this.array,t.array),this._dirty=!0,this},determinant:function(){return jo.determinant(this.array)},identity:function(){return jo.identity(this.array),this._dirty=!0,this},invert:function(){return jo.invert(this.array,this.array),this._dirty=!0,this},mul:function(t){return jo.mul(this.array,this.array,t.array),this._dirty=!0,this},mulLeft:function(t){return jo.mul(this.array,t.array,this.array),this._dirty=!0,this},multiply:function(t){return jo.multiply(this.array,this.array,t.array),this._dirty=!0,this},multiplyLeft:function(t){return jo.multiply(this.array,t.array,this.array),this._dirty=!0,this},rotate:function(t){return jo.rotate(this.array,this.array,t),this._dirty=!0,this},scale:function(t){return jo.scale(this.array,this.array,t.array),this._dirty=!0,this},translate:function(t){return jo.translate(this.array,this.array,t.array),this._dirty=!0,this},toString:function(){return"["+Array.prototype.join.call(this.array,",")+"]"},toArray:function(){return Array.prototype.slice.call(this.array)}},Ho.copy=function(t,e){return jo.copy(t.array,e.array),t._dirty=!0,t},Ho.determinant=function(t){return jo.determinant(t.array)},Ho.identity=function(t){return jo.identity(t.array),t._dirty=!0,t},Ho.invert=function(t,e){return jo.invert(t.array,e.array),t._dirty=!0,t},Ho.multiply=Ho.mul=function(t,e,n){return jo.mul(t.array,e.array,n.array),t._dirty=!0,t},Ho.rotate=function(t,e,n){return jo.rotate(t.array,e.array,n),t._dirty=!0,t},Ho.scale=function(t,e,n){return jo.scale(t.array,e.array,n.array),t._dirty=!0,t},Ho.translate=function(t,e,n){return jo.translate(t.array,e.array,n.array),t._dirty=!0,t};const Wo=Ho;var Uo=function(){this.array=dn.create(),this._dirty=!0};Uo.prototype={constructor:Uo,setArray:function(t){for(var e=0;e<this.array.length;e++)this.array[e]=t[e];return this._dirty=!0,this},adjoint:function(){return dn.adjoint(this.array,this.array),this._dirty=!0,this},clone:function(){return(new Uo).copy(this)},copy:function(t){return dn.copy(this.array,t.array),this._dirty=!0,this},determinant:function(){return dn.determinant(this.array)},fromMat2d:function(t){return dn.fromMat2d(this.array,t.array),this._dirty=!0,this},fromMat4:function(t){return dn.fromMat4(this.array,t.array),this._dirty=!0,this},fromQuat:function(t){return dn.fromQuat(this.array,t.array),this._dirty=!0,this},identity:function(){return dn.identity(this.array),this._dirty=!0,this},invert:function(){return dn.invert(this.array,this.array),this._dirty=!0,this},mul:function(t){return dn.mul(this.array,this.array,t.array),this._dirty=!0,this},mulLeft:function(t){return dn.mul(this.array,t.array,this.array),this._dirty=!0,this},multiply:function(t){return dn.multiply(this.array,this.array,t.array),this._dirty=!0,this},multiplyLeft:function(t){return dn.multiply(this.array,t.array,this.array),this._dirty=!0,this},rotate:function(t){return dn.rotate(this.array,this.array,t),this._dirty=!0,this},scale:function(t){return dn.scale(this.array,this.array,t.array),this._dirty=!0,this},translate:function(t){return dn.translate(this.array,this.array,t.array),this._dirty=!0,this},normalFromMat4:function(t){return dn.normalFromMat4(this.array,t.array),this._dirty=!0,this},transpose:function(){return dn.transpose(this.array,this.array),this._dirty=!0,this},toString:function(){return"["+Array.prototype.join.call(this.array,",")+"]"},toArray:function(){return Array.prototype.slice.call(this.array)}},Uo.adjoint=function(t,e){return dn.adjoint(t.array,e.array),t._dirty=!0,t},Uo.copy=function(t,e){return dn.copy(t.array,e.array),t._dirty=!0,t},Uo.determinant=function(t){return dn.determinant(t.array)},Uo.identity=function(t){return dn.identity(t.array),t._dirty=!0,t},Uo.invert=function(t,e){return dn.invert(t.array,e.array),t},Uo.multiply=Uo.mul=function(t,e,n){return dn.mul(t.array,e.array,n.array),t._dirty=!0,t},Uo.fromMat2d=function(t,e){return dn.fromMat2d(t.array,e.array),t._dirty=!0,t},Uo.fromMat4=function(t,e){return dn.fromMat4(t.array,e.array),t._dirty=!0,t},Uo.fromQuat=function(t,e){return dn.fromQuat(t.array,e.array),t._dirty=!0,t},Uo.normalFromMat4=function(t,e){return dn.normalFromMat4(t.array,e.array),t._dirty=!0,t},Uo.rotate=function(t,e,n){return dn.rotate(t.array,e.array,n),t._dirty=!0,t},Uo.scale=function(t,e,n){return dn.scale(t.array,e.array,n.array),t._dirty=!0,t},Uo.transpose=function(t,e){return dn.transpose(t.array,e.array),t._dirty=!0,t},Uo.translate=function(t,e,n){return dn.translate(t.array,e.array,n.array),t._dirty=!0,t};const qo=Uo;var Xo=n(8854);const Yo={_animators:null,getAnimators:function(){return this._animators=this._animators||[],this._animators},animate:function(t,e){this._animators=this._animators||[];var n;if(t){for(var i=t.split("."),r=this,o=0,a=i.length;o<a;o++)r&&(r=r[i[o]]);r&&(n=r)}else n=this;if(null==n)throw new Error("Target "+t+" not exists");var s=this._animators,l=new Xo.A(n,e),h=this;return l.during((function(){h.__zr&&h.__zr.refresh()})).done((function(){var t=s.indexOf(l);t>=0&&s.splice(t,1)})),s.push(l),this.__zr&&this.__zr.animation.addAnimator(l),l},stopAnimation:function(t){this._animators=this._animators||[];for(var e=this._animators,n=e.length,i=0;i<n;i++)e[i].stop(t);return e.length=0,this},addAnimatorsToZr:function(t){if(this._animators)for(var e=0;e<this._animators.length;e++)t.animation.addAnimator(this._animators[e])},removeAnimatorsFromZr:function(t){if(this._animators)for(var e=0;e<this._animators.length;e++)t.animation.removeAnimator(this._animators[e])}},Zo="\n@export clay.util.rand\nhighp float rand(vec2 uv) {\n const highp float a = 12.9898, b = 78.233, c = 43758.5453;\n highp float dt = dot(uv.xy, vec2(a,b)), sn = mod(dt, 3.141592653589793);\n return fract(sin(sn) * c);\n}\n@end\n@export clay.util.calculate_attenuation\nuniform float attenuationFactor : 5.0;\nfloat lightAttenuation(float dist, float range)\n{\n float attenuation = 1.0;\n attenuation = dist*dist/(range*range+1.0);\n float att_s = attenuationFactor;\n attenuation = 1.0/(attenuation*att_s+1.0);\n att_s = 1.0/(att_s+1.0);\n attenuation = attenuation - att_s;\n attenuation /= 1.0 - att_s;\n return clamp(attenuation, 0.0, 1.0);\n}\n@end\n@export clay.util.edge_factor\n#ifdef SUPPORT_STANDARD_DERIVATIVES\nfloat edgeFactor(float width)\n{\n vec3 d = fwidth(v_Barycentric);\n vec3 a3 = smoothstep(vec3(0.0), d * width, v_Barycentric);\n return min(min(a3.x, a3.y), a3.z);\n}\n#else\nfloat edgeFactor(float width)\n{\n return 1.0;\n}\n#endif\n@end\n@export clay.util.encode_float\nvec4 encodeFloat(const in float depth)\n{\n const vec4 bitShifts = vec4(256.0*256.0*256.0, 256.0*256.0, 256.0, 1.0);\n const vec4 bit_mask = vec4(0.0, 1.0/256.0, 1.0/256.0, 1.0/256.0);\n vec4 res = fract(depth * bitShifts);\n res -= res.xxyz * bit_mask;\n return res;\n}\n@end\n@export clay.util.decode_float\nfloat decodeFloat(const in vec4 color)\n{\n const vec4 bitShifts = vec4(1.0/(256.0*256.0*256.0), 1.0/(256.0*256.0), 1.0/256.0, 1.0);\n return dot(color, bitShifts);\n}\n@end\n@export clay.util.float\n@import clay.util.encode_float\n@import clay.util.decode_float\n@end\n@export clay.util.rgbm_decode\nvec3 RGBMDecode(vec4 rgbm, float range) {\n return range * rgbm.rgb * rgbm.a;\n}\n@end\n@export clay.util.rgbm_encode\nvec4 RGBMEncode(vec3 color, float range) {\n if (dot(color, color) == 0.0) {\n return vec4(0.0);\n }\n vec4 rgbm;\n color /= range;\n rgbm.a = clamp(max(max(color.r, color.g), max(color.b, 1e-6)), 0.0, 1.0);\n rgbm.a = ceil(rgbm.a * 255.0) / 255.0;\n rgbm.rgb = color / rgbm.a;\n return rgbm;\n}\n@end\n@export clay.util.rgbm\n@import clay.util.rgbm_decode\n@import clay.util.rgbm_encode\nvec4 decodeHDR(vec4 color)\n{\n#if defined(RGBM_DECODE) || defined(RGBM)\n return vec4(RGBMDecode(color, 8.12), 1.0);\n#else\n return color;\n#endif\n}\nvec4 encodeHDR(vec4 color)\n{\n#if defined(RGBM_ENCODE) || defined(RGBM)\n return RGBMEncode(color.xyz, 8.12);\n#else\n return color;\n#endif\n}\n@end\n@export clay.util.srgb\nvec4 sRGBToLinear(in vec4 value) {\n return vec4(mix(pow(value.rgb * 0.9478672986 + vec3(0.0521327014), vec3(2.4)), value.rgb * 0.0773993808, vec3(lessThanEqual(value.rgb, vec3(0.04045)))), value.w);\n}\nvec4 linearTosRGB(in vec4 value) {\n return vec4(mix(pow(value.rgb, vec3(0.41666)) * 1.055 - vec3(0.055), value.rgb * 12.92, vec3(lessThanEqual(value.rgb, vec3(0.0031308)))), value.w);\n}\n@end\n@export clay.chunk.skinning_header\n#ifdef SKINNING\nattribute vec3 weight : WEIGHT;\nattribute vec4 joint : JOINT;\n#ifdef USE_SKIN_MATRICES_TEXTURE\nuniform sampler2D skinMatricesTexture : ignore;\nuniform float skinMatricesTextureSize: ignore;\nmat4 getSkinMatrix(sampler2D tex, float idx) {\n float j = idx * 4.0;\n float x = mod(j, skinMatricesTextureSize);\n float y = floor(j / skinMatricesTextureSize) + 0.5;\n vec2 scale = vec2(skinMatricesTextureSize);\n return mat4(\n texture2D(tex, vec2(x + 0.5, y) / scale),\n texture2D(tex, vec2(x + 1.5, y) / scale),\n texture2D(tex, vec2(x + 2.5, y) / scale),\n texture2D(tex, vec2(x + 3.5, y) / scale)\n );\n}\nmat4 getSkinMatrix(float idx) {\n return getSkinMatrix(skinMatricesTexture, idx);\n}\n#else\nuniform mat4 skinMatrix[JOINT_COUNT] : SKIN_MATRIX;\nmat4 getSkinMatrix(float idx) {\n return skinMatrix[int(idx)];\n}\n#endif\n#endif\n@end\n@export clay.chunk.skin_matrix\nmat4 skinMatrixWS = getSkinMatrix(joint.x) * weight.x;\nif (weight.y > 1e-4)\n{\n skinMatrixWS += getSkinMatrix(joint.y) * weight.y;\n}\nif (weight.z > 1e-4)\n{\n skinMatrixWS += getSkinMatrix(joint.z) * weight.z;\n}\nfloat weightW = 1.0-weight.x-weight.y-weight.z;\nif (weightW > 1e-4)\n{\n skinMatrixWS += getSkinMatrix(joint.w) * weightW;\n}\n@end\n@export clay.chunk.instancing_header\n#ifdef INSTANCING\nattribute vec4 instanceMat1;\nattribute vec4 instanceMat2;\nattribute vec4 instanceMat3;\n#endif\n@end\n@export clay.chunk.instancing_matrix\nmat4 instanceMat = mat4(\n vec4(instanceMat1.xyz, 0.0),\n vec4(instanceMat2.xyz, 0.0),\n vec4(instanceMat3.xyz, 0.0),\n vec4(instanceMat1.w, instanceMat2.w, instanceMat3.w, 1.0)\n);\n@end\n@export clay.util.parallax_correct\nvec3 parallaxCorrect(in vec3 dir, in vec3 pos, in vec3 boxMin, in vec3 boxMax) {\n vec3 first = (boxMax - pos) / dir;\n vec3 second = (boxMin - pos) / dir;\n vec3 further = max(first, second);\n float dist = min(further.x, min(further.y, further.z));\n vec3 fixedPos = pos + dir * dist;\n vec3 boxCenter = (boxMax + boxMin) * 0.5;\n return normalize(fixedPos - boxCenter);\n}\n@end\n@export clay.util.clamp_sample\nvec4 clampSample(const in sampler2D texture, const in vec2 coord)\n{\n#ifdef STEREO\n float eye = step(0.5, coord.x) * 0.5;\n vec2 coordClamped = clamp(coord, vec2(eye, 0.0), vec2(0.5 + eye, 1.0));\n#else\n vec2 coordClamped = clamp(coord, vec2(0.0), vec2(1.0));\n#endif\n return texture2D(texture, coordClamped);\n}\n@end\n@export clay.util.ACES\nvec3 ACESToneMapping(vec3 color)\n{\n const float A = 2.51;\n const float B = 0.03;\n const float C = 2.43;\n const float D = 0.59;\n const float E = 0.14;\n return (color * (A * color + B)) / (color * (C * color + D) + E);\n}\n@end";function $o(t){return t instanceof HTMLCanvasElement||t instanceof HTMLImageElement||t instanceof Image}Object.assign(Un.prototype,Yo),Ce.import(Zo),Ce.import(Ie),Ce.import("\n@export ecgl.common.transformUniforms\nuniform mat4 worldViewProjection : WORLDVIEWPROJECTION;\nuniform mat4 worldInverseTranspose : WORLDINVERSETRANSPOSE;\nuniform mat4 world : WORLD;\n@end\n\n@export ecgl.common.attributes\nattribute vec3 position : POSITION;\nattribute vec2 texcoord : TEXCOORD_0;\nattribute vec3 normal : NORMAL;\n@end\n\n@export ecgl.common.uv.header\nuniform vec2 uvRepeat : [1.0, 1.0];\nuniform vec2 uvOffset : [0.0, 0.0];\nuniform vec2 detailUvRepeat : [1.0, 1.0];\nuniform vec2 detailUvOffset : [0.0, 0.0];\n\nvarying vec2 v_Texcoord;\nvarying vec2 v_DetailTexcoord;\n@end\n\n@export ecgl.common.uv.main\nv_Texcoord = texcoord * uvRepeat + uvOffset;\nv_DetailTexcoord = texcoord * detailUvRepeat + detailUvOffset;\n@end\n\n@export ecgl.common.uv.fragmentHeader\nvarying vec2 v_Texcoord;\nvarying vec2 v_DetailTexcoord;\n@end\n\n\n@export ecgl.common.albedo.main\n\n vec4 albedoTexel = vec4(1.0);\n#ifdef DIFFUSEMAP_ENABLED\n albedoTexel = texture2D(diffuseMap, v_Texcoord);\n #ifdef SRGB_DECODE\n albedoTexel = sRGBToLinear(albedoTexel);\n #endif\n#endif\n\n#ifdef DETAILMAP_ENABLED\n vec4 detailTexel = texture2D(detailMap, v_DetailTexcoord);\n #ifdef SRGB_DECODE\n detailTexel = sRGBToLinear(detailTexel);\n #endif\n albedoTexel.rgb = mix(albedoTexel.rgb, detailTexel.rgb, detailTexel.a);\n albedoTexel.a = detailTexel.a + (1.0 - detailTexel.a) * albedoTexel.a;\n#endif\n\n@end\n\n@export ecgl.common.wireframe.vertexHeader\n\n#ifdef WIREFRAME_QUAD\nattribute vec4 barycentric;\nvarying vec4 v_Barycentric;\n#elif defined(WIREFRAME_TRIANGLE)\nattribute vec3 barycentric;\nvarying vec3 v_Barycentric;\n#endif\n\n@end\n\n@export ecgl.common.wireframe.vertexMain\n\n#if defined(WIREFRAME_QUAD) || defined(WIREFRAME_TRIANGLE)\n v_Barycentric = barycentric;\n#endif\n\n@end\n\n\n@export ecgl.common.wireframe.fragmentHeader\n\nuniform float wireframeLineWidth : 1;\nuniform vec4 wireframeLineColor: [0, 0, 0, 0.5];\n\n#ifdef WIREFRAME_QUAD\nvarying vec4 v_Barycentric;\nfloat edgeFactor () {\n vec4 d = fwidth(v_Barycentric);\n vec4 a4 = smoothstep(vec4(0.0), d * wireframeLineWidth, v_Barycentric);\n return min(min(min(a4.x, a4.y), a4.z), a4.w);\n}\n#elif defined(WIREFRAME_TRIANGLE)\nvarying vec3 v_Barycentric;\nfloat edgeFactor () {\n vec3 d = fwidth(v_Barycentric);\n vec3 a3 = smoothstep(vec3(0.0), d * wireframeLineWidth, v_Barycentric);\n return min(min(a3.x, a3.y), a3.z);\n}\n#endif\n\n@end\n\n\n@export ecgl.common.wireframe.fragmentMain\n\n#if defined(WIREFRAME_QUAD) || defined(WIREFRAME_TRIANGLE)\n if (wireframeLineWidth > 0.) {\n vec4 lineColor = wireframeLineColor;\n#ifdef SRGB_DECODE\n lineColor = sRGBToLinear(lineColor);\n#endif\n\n gl_FragColor.rgb = mix(gl_FragColor.rgb, lineColor.rgb, (1.0 - edgeFactor()) * lineColor.a);\n }\n#endif\n@end\n\n\n\n\n@export ecgl.common.bumpMap.header\n\n#ifdef BUMPMAP_ENABLED\nuniform sampler2D bumpMap;\nuniform float bumpScale : 1.0;\n\n\nvec3 bumpNormal(vec3 surfPos, vec3 surfNormal, vec3 baseNormal)\n{\n vec2 dSTdx = dFdx(v_Texcoord);\n vec2 dSTdy = dFdy(v_Texcoord);\n\n float Hll = bumpScale * texture2D(bumpMap, v_Texcoord).x;\n float dHx = bumpScale * texture2D(bumpMap, v_Texcoord + dSTdx).x - Hll;\n float dHy = bumpScale * texture2D(bumpMap, v_Texcoord + dSTdy).x - Hll;\n\n vec3 vSigmaX = dFdx(surfPos);\n vec3 vSigmaY = dFdy(surfPos);\n vec3 vN = surfNormal;\n\n vec3 R1 = cross(vSigmaY, vN);\n vec3 R2 = cross(vN, vSigmaX);\n\n float fDet = dot(vSigmaX, R1);\n\n vec3 vGrad = sign(fDet) * (dHx * R1 + dHy * R2);\n return normalize(abs(fDet) * baseNormal - vGrad);\n\n}\n#endif\n\n@end\n\n@export ecgl.common.normalMap.vertexHeader\n\n#ifdef NORMALMAP_ENABLED\nattribute vec4 tangent : TANGENT;\nvarying vec3 v_Tangent;\nvarying vec3 v_Bitangent;\n#endif\n\n@end\n\n@export ecgl.common.normalMap.vertexMain\n\n#ifdef NORMALMAP_ENABLED\n if (dot(tangent, tangent) > 0.0) {\n v_Tangent = normalize((worldInverseTranspose * vec4(tangent.xyz, 0.0)).xyz);\n v_Bitangent = normalize(cross(v_Normal, v_Tangent) * tangent.w);\n }\n#endif\n\n@end\n\n\n@export ecgl.common.normalMap.fragmentHeader\n\n#ifdef NORMALMAP_ENABLED\nuniform sampler2D normalMap;\nvarying vec3 v_Tangent;\nvarying vec3 v_Bitangent;\n#endif\n\n@end\n\n@export ecgl.common.normalMap.fragmentMain\n#ifdef NORMALMAP_ENABLED\n if (dot(v_Tangent, v_Tangent) > 0.0) {\n vec3 normalTexel = texture2D(normalMap, v_DetailTexcoord).xyz;\n if (dot(normalTexel, normalTexel) > 0.0) { N = normalTexel * 2.0 - 1.0;\n mat3 tbn = mat3(v_Tangent, v_Bitangent, v_Normal);\n N = normalize(tbn * N);\n }\n }\n#endif\n@end\n\n\n\n@export ecgl.common.vertexAnimation.header\n\n#ifdef VERTEX_ANIMATION\nattribute vec3 prevPosition;\nattribute vec3 prevNormal;\nuniform float percent;\n#endif\n\n@end\n\n@export ecgl.common.vertexAnimation.main\n\n#ifdef VERTEX_ANIMATION\n vec3 pos = mix(prevPosition, position, percent);\n vec3 norm = mix(prevNormal, normal, percent);\n#else\n vec3 pos = position;\n vec3 norm = normal;\n#endif\n\n@end\n\n\n@export ecgl.common.ssaoMap.header\n#ifdef SSAOMAP_ENABLED\nuniform sampler2D ssaoMap;\nuniform vec4 viewport : VIEWPORT;\n#endif\n@end\n\n@export ecgl.common.ssaoMap.main\n float ao = 1.0;\n#ifdef SSAOMAP_ENABLED\n ao = texture2D(ssaoMap, (gl_FragCoord.xy - viewport.xy) / viewport.zw).r;\n#endif\n@end\n\n\n\n\n@export ecgl.common.diffuseLayer.header\n\n#if (LAYER_DIFFUSEMAP_COUNT > 0)\nuniform float layerDiffuseIntensity[LAYER_DIFFUSEMAP_COUNT];\nuniform sampler2D layerDiffuseMap[LAYER_DIFFUSEMAP_COUNT];\n#endif\n\n@end\n\n@export ecgl.common.emissiveLayer.header\n\n#if (LAYER_EMISSIVEMAP_COUNT > 0)\nuniform float layerEmissionIntensity[LAYER_EMISSIVEMAP_COUNT];\nuniform sampler2D layerEmissiveMap[LAYER_EMISSIVEMAP_COUNT];\n#endif\n\n@end\n\n@export ecgl.common.layers.header\n@import ecgl.common.diffuseLayer.header\n@import ecgl.common.emissiveLayer.header\n@end\n\n@export ecgl.common.diffuseLayer.main\n\n#if (LAYER_DIFFUSEMAP_COUNT > 0)\n for (int _idx_ = 0; _idx_ < LAYER_DIFFUSEMAP_COUNT; _idx_++) {{\n float intensity = layerDiffuseIntensity[_idx_];\n vec4 texel2 = texture2D(layerDiffuseMap[_idx_], v_Texcoord);\n #ifdef SRGB_DECODE\n texel2 = sRGBToLinear(texel2);\n #endif\n albedoTexel.rgb = mix(albedoTexel.rgb, texel2.rgb * intensity, texel2.a);\n albedoTexel.a = texel2.a + (1.0 - texel2.a) * albedoTexel.a;\n }}\n#endif\n\n@end\n\n@export ecgl.common.emissiveLayer.main\n\n#if (LAYER_EMISSIVEMAP_COUNT > 0)\n for (int _idx_ = 0; _idx_ < LAYER_EMISSIVEMAP_COUNT; _idx_++)\n {{\n vec4 texel2 = texture2D(layerEmissiveMap[_idx_], v_Texcoord) * layerEmissionIntensity[_idx_];\n #ifdef SRGB_DECODE\n texel2 = sRGBToLinear(texel2);\n #endif\n float intensity = layerEmissionIntensity[_idx_];\n gl_FragColor.rgb += texel2.rgb * texel2.a * intensity;\n }}\n#endif\n\n@end\n"),Ce.import("@export ecgl.color.vertex\n\nuniform mat4 worldViewProjection : WORLDVIEWPROJECTION;\n\n@import ecgl.common.uv.header\n\nattribute vec2 texcoord : TEXCOORD_0;\nattribute vec3 position: POSITION;\n\n@import ecgl.common.wireframe.vertexHeader\n\n#ifdef VERTEX_COLOR\nattribute vec4 a_Color : COLOR;\nvarying vec4 v_Color;\n#endif\n\n#ifdef VERTEX_ANIMATION\nattribute vec3 prevPosition;\nuniform float percent : 1.0;\n#endif\n\n#ifdef ATMOSPHERE_ENABLED\nattribute vec3 normal: NORMAL;\nuniform mat4 worldInverseTranspose : WORLDINVERSETRANSPOSE;\nvarying vec3 v_Normal;\n#endif\n\nvoid main()\n{\n#ifdef VERTEX_ANIMATION\n vec3 pos = mix(prevPosition, position, percent);\n#else\n vec3 pos = position;\n#endif\n\n gl_Position = worldViewProjection * vec4(pos, 1.0);\n\n @import ecgl.common.uv.main\n\n#ifdef VERTEX_COLOR\n v_Color = a_Color;\n#endif\n\n#ifdef ATMOSPHERE_ENABLED\n v_Normal = normalize((worldInverseTranspose * vec4(normal, 0.0)).xyz);\n#endif\n\n @import ecgl.common.wireframe.vertexMain\n\n}\n\n@end\n\n@export ecgl.color.fragment\n\n#define LAYER_DIFFUSEMAP_COUNT 0\n#define LAYER_EMISSIVEMAP_COUNT 0\n\nuniform sampler2D diffuseMap;\nuniform sampler2D detailMap;\n\nuniform vec4 color : [1.0, 1.0, 1.0, 1.0];\n\n#ifdef ATMOSPHERE_ENABLED\nuniform mat4 viewTranspose: VIEWTRANSPOSE;\nuniform vec3 glowColor;\nuniform float glowPower;\nvarying vec3 v_Normal;\n#endif\n\n#ifdef VERTEX_COLOR\nvarying vec4 v_Color;\n#endif\n\n@import ecgl.common.layers.header\n\n@import ecgl.common.uv.fragmentHeader\n\n@import ecgl.common.wireframe.fragmentHeader\n\n@import clay.util.srgb\n\nvoid main()\n{\n#ifdef SRGB_DECODE\n gl_FragColor = sRGBToLinear(color);\n#else\n gl_FragColor = color;\n#endif\n\n#ifdef VERTEX_COLOR\n gl_FragColor *= v_Color;\n#endif\n\n @import ecgl.common.albedo.main\n\n @import ecgl.common.diffuseLayer.main\n\n gl_FragColor *= albedoTexel;\n\n#ifdef ATMOSPHERE_ENABLED\n float atmoIntensity = pow(1.0 - dot(v_Normal, (viewTranspose * vec4(0.0, 0.0, 1.0, 0.0)).xyz), glowPower);\n gl_FragColor.rgb += glowColor * atmoIntensity;\n#endif\n\n @import ecgl.common.emissiveLayer.main\n\n @import ecgl.common.wireframe.fragmentMain\n\n}\n@end"),Ce.import("/**\n * http: */\n\n@export ecgl.lambert.vertex\n\n@import ecgl.common.transformUniforms\n\n@import ecgl.common.uv.header\n\n\n@import ecgl.common.attributes\n\n@import ecgl.common.wireframe.vertexHeader\n\n#ifdef VERTEX_COLOR\nattribute vec4 a_Color : COLOR;\nvarying vec4 v_Color;\n#endif\n\n\n@import ecgl.common.vertexAnimation.header\n\n\nvarying vec3 v_Normal;\nvarying vec3 v_WorldPosition;\n\nvoid main()\n{\n @import ecgl.common.uv.main\n\n @import ecgl.common.vertexAnimation.main\n\n\n gl_Position = worldViewProjection * vec4(pos, 1.0);\n\n v_Normal = normalize((worldInverseTranspose * vec4(norm, 0.0)).xyz);\n v_WorldPosition = (world * vec4(pos, 1.0)).xyz;\n\n#ifdef VERTEX_COLOR\n v_Color = a_Color;\n#endif\n\n @import ecgl.common.wireframe.vertexMain\n}\n\n@end\n\n\n@export ecgl.lambert.fragment\n\n#define LAYER_DIFFUSEMAP_COUNT 0\n#define LAYER_EMISSIVEMAP_COUNT 0\n\n#define NORMAL_UP_AXIS 1\n#define NORMAL_FRONT_AXIS 2\n\n@import ecgl.common.uv.fragmentHeader\n\nvarying vec3 v_Normal;\nvarying vec3 v_WorldPosition;\n\nuniform sampler2D diffuseMap;\nuniform sampler2D detailMap;\n\n@import ecgl.common.layers.header\n\nuniform float emissionIntensity: 1.0;\n\nuniform vec4 color : [1.0, 1.0, 1.0, 1.0];\n\nuniform mat4 viewInverse : VIEWINVERSE;\n\n#ifdef ATMOSPHERE_ENABLED\nuniform mat4 viewTranspose: VIEWTRANSPOSE;\nuniform vec3 glowColor;\nuniform float glowPower;\n#endif\n\n#ifdef AMBIENT_LIGHT_COUNT\n@import clay.header.ambient_light\n#endif\n#ifdef AMBIENT_SH_LIGHT_COUNT\n@import clay.header.ambient_sh_light\n#endif\n\n#ifdef DIRECTIONAL_LIGHT_COUNT\n@import clay.header.directional_light\n#endif\n\n#ifdef VERTEX_COLOR\nvarying vec4 v_Color;\n#endif\n\n\n@import ecgl.common.ssaoMap.header\n\n@import ecgl.common.bumpMap.header\n\n@import clay.util.srgb\n\n@import ecgl.common.wireframe.fragmentHeader\n\n@import clay.plugin.compute_shadow_map\n\nvoid main()\n{\n#ifdef SRGB_DECODE\n gl_FragColor = sRGBToLinear(color);\n#else\n gl_FragColor = color;\n#endif\n\n#ifdef VERTEX_COLOR\n #ifdef SRGB_DECODE\n gl_FragColor *= sRGBToLinear(v_Color);\n #else\n gl_FragColor *= v_Color;\n #endif\n#endif\n\n @import ecgl.common.albedo.main\n\n @import ecgl.common.diffuseLayer.main\n\n gl_FragColor *= albedoTexel;\n\n vec3 N = v_Normal;\n#ifdef DOUBLE_SIDED\n vec3 eyePos = viewInverse[3].xyz;\n vec3 V = normalize(eyePos - v_WorldPosition);\n\n if (dot(N, V) < 0.0) {\n N = -N;\n }\n#endif\n\n float ambientFactor = 1.0;\n\n#ifdef BUMPMAP_ENABLED\n N = bumpNormal(v_WorldPosition, v_Normal, N);\n ambientFactor = dot(v_Normal, N);\n#endif\n\n vec3 N2 = vec3(N.x, N[NORMAL_UP_AXIS], N[NORMAL_FRONT_AXIS]);\n\n vec3 diffuseColor = vec3(0.0, 0.0, 0.0);\n\n @import ecgl.common.ssaoMap.main\n\n#ifdef AMBIENT_LIGHT_COUNT\n for(int i = 0; i < AMBIENT_LIGHT_COUNT; i++)\n {\n diffuseColor += ambientLightColor[i] * ambientFactor * ao;\n }\n#endif\n#ifdef AMBIENT_SH_LIGHT_COUNT\n for(int _idx_ = 0; _idx_ < AMBIENT_SH_LIGHT_COUNT; _idx_++)\n {{\n diffuseColor += calcAmbientSHLight(_idx_, N2) * ambientSHLightColor[_idx_] * ao;\n }}\n#endif\n#ifdef DIRECTIONAL_LIGHT_COUNT\n#if defined(DIRECTIONAL_LIGHT_SHADOWMAP_COUNT)\n float shadowContribsDir[DIRECTIONAL_LIGHT_COUNT];\n if(shadowEnabled)\n {\n computeShadowOfDirectionalLights(v_WorldPosition, shadowContribsDir);\n }\n#endif\n for(int i = 0; i < DIRECTIONAL_LIGHT_COUNT; i++)\n {\n vec3 lightDirection = -directionalLightDirection[i];\n vec3 lightColor = directionalLightColor[i];\n\n float shadowContrib = 1.0;\n#if defined(DIRECTIONAL_LIGHT_SHADOWMAP_COUNT)\n if (shadowEnabled)\n {\n shadowContrib = shadowContribsDir[i];\n }\n#endif\n\n float ndl = dot(N, normalize(lightDirection)) * shadowContrib;\n\n diffuseColor += lightColor * clamp(ndl, 0.0, 1.0);\n }\n#endif\n\n gl_FragColor.rgb *= diffuseColor;\n\n#ifdef ATMOSPHERE_ENABLED\n float atmoIntensity = pow(1.0 - dot(v_Normal, (viewTranspose * vec4(0.0, 0.0, 1.0, 0.0)).xyz), glowPower);\n gl_FragColor.rgb += glowColor * atmoIntensity;\n#endif\n\n @import ecgl.common.emissiveLayer.main\n\n @import ecgl.common.wireframe.fragmentMain\n}\n\n@end"),Ce.import("@export ecgl.realistic.vertex\n\n@import ecgl.common.transformUniforms\n\n@import ecgl.common.uv.header\n\n@import ecgl.common.attributes\n\n\n@import ecgl.common.wireframe.vertexHeader\n\n#ifdef VERTEX_COLOR\nattribute vec4 a_Color : COLOR;\nvarying vec4 v_Color;\n#endif\n\n#ifdef NORMALMAP_ENABLED\nattribute vec4 tangent : TANGENT;\nvarying vec3 v_Tangent;\nvarying vec3 v_Bitangent;\n#endif\n\n@import ecgl.common.vertexAnimation.header\n\nvarying vec3 v_Normal;\nvarying vec3 v_WorldPosition;\n\nvoid main()\n{\n\n @import ecgl.common.uv.main\n\n @import ecgl.common.vertexAnimation.main\n\n gl_Position = worldViewProjection * vec4(pos, 1.0);\n\n v_Normal = normalize((worldInverseTranspose * vec4(norm, 0.0)).xyz);\n v_WorldPosition = (world * vec4(pos, 1.0)).xyz;\n\n#ifdef VERTEX_COLOR\n v_Color = a_Color;\n#endif\n\n#ifdef NORMALMAP_ENABLED\n v_Tangent = normalize((worldInverseTranspose * vec4(tangent.xyz, 0.0)).xyz);\n v_Bitangent = normalize(cross(v_Normal, v_Tangent) * tangent.w);\n#endif\n\n @import ecgl.common.wireframe.vertexMain\n\n}\n\n@end\n\n\n\n@export ecgl.realistic.fragment\n\n#define LAYER_DIFFUSEMAP_COUNT 0\n#define LAYER_EMISSIVEMAP_COUNT 0\n#define PI 3.14159265358979\n#define ROUGHNESS_CHANEL 0\n#define METALNESS_CHANEL 1\n\n#define NORMAL_UP_AXIS 1\n#define NORMAL_FRONT_AXIS 2\n\n#ifdef VERTEX_COLOR\nvarying vec4 v_Color;\n#endif\n\n@import ecgl.common.uv.fragmentHeader\n\nvarying vec3 v_Normal;\nvarying vec3 v_WorldPosition;\n\nuniform sampler2D diffuseMap;\n\nuniform sampler2D detailMap;\nuniform sampler2D metalnessMap;\nuniform sampler2D roughnessMap;\n\n@import ecgl.common.layers.header\n\nuniform float emissionIntensity: 1.0;\n\nuniform vec4 color : [1.0, 1.0, 1.0, 1.0];\n\nuniform float metalness : 0.0;\nuniform float roughness : 0.5;\n\nuniform mat4 viewInverse : VIEWINVERSE;\n\n#ifdef ATMOSPHERE_ENABLED\nuniform mat4 viewTranspose: VIEWTRANSPOSE;\nuniform vec3 glowColor;\nuniform float glowPower;\n#endif\n\n#ifdef AMBIENT_LIGHT_COUNT\n@import clay.header.ambient_light\n#endif\n\n#ifdef AMBIENT_SH_LIGHT_COUNT\n@import clay.header.ambient_sh_light\n#endif\n\n#ifdef AMBIENT_CUBEMAP_LIGHT_COUNT\n@import clay.header.ambient_cubemap_light\n#endif\n\n#ifdef DIRECTIONAL_LIGHT_COUNT\n@import clay.header.directional_light\n#endif\n\n@import ecgl.common.normalMap.fragmentHeader\n\n@import ecgl.common.ssaoMap.header\n\n@import ecgl.common.bumpMap.header\n\n@import clay.util.srgb\n\n@import clay.util.rgbm\n\n@import ecgl.common.wireframe.fragmentHeader\n\n@import clay.plugin.compute_shadow_map\n\nvec3 F_Schlick(float ndv, vec3 spec) {\n return spec + (1.0 - spec) * pow(1.0 - ndv, 5.0);\n}\n\nfloat D_Phong(float g, float ndh) {\n float a = pow(8192.0, g);\n return (a + 2.0) / 8.0 * pow(ndh, a);\n}\n\nvoid main()\n{\n vec4 albedoColor = color;\n\n vec3 eyePos = viewInverse[3].xyz;\n vec3 V = normalize(eyePos - v_WorldPosition);\n#ifdef VERTEX_COLOR\n #ifdef SRGB_DECODE\n albedoColor *= sRGBToLinear(v_Color);\n #else\n albedoColor *= v_Color;\n #endif\n#endif\n\n @import ecgl.common.albedo.main\n\n @import ecgl.common.diffuseLayer.main\n\n albedoColor *= albedoTexel;\n\n float m = metalness;\n\n#ifdef METALNESSMAP_ENABLED\n float m2 = texture2D(metalnessMap, v_DetailTexcoord)[METALNESS_CHANEL];\n m = clamp(m2 + (m - 0.5) * 2.0, 0.0, 1.0);\n#endif\n\n vec3 baseColor = albedoColor.rgb;\n albedoColor.rgb = baseColor * (1.0 - m);\n vec3 specFactor = mix(vec3(0.04), baseColor, m);\n\n float g = 1.0 - roughness;\n\n#ifdef ROUGHNESSMAP_ENABLED\n float g2 = 1.0 - texture2D(roughnessMap, v_DetailTexcoord)[ROUGHNESS_CHANEL];\n g = clamp(g2 + (g - 0.5) * 2.0, 0.0, 1.0);\n#endif\n\n vec3 N = v_Normal;\n\n#ifdef DOUBLE_SIDED\n if (dot(N, V) < 0.0) {\n N = -N;\n }\n#endif\n\n float ambientFactor = 1.0;\n\n#ifdef BUMPMAP_ENABLED\n N = bumpNormal(v_WorldPosition, v_Normal, N);\n ambientFactor = dot(v_Normal, N);\n#endif\n\n@import ecgl.common.normalMap.fragmentMain\n\n vec3 N2 = vec3(N.x, N[NORMAL_UP_AXIS], N[NORMAL_FRONT_AXIS]);\n\n vec3 diffuseTerm = vec3(0.0);\n vec3 specularTerm = vec3(0.0);\n\n float ndv = clamp(dot(N, V), 0.0, 1.0);\n vec3 fresnelTerm = F_Schlick(ndv, specFactor);\n\n @import ecgl.common.ssaoMap.main\n\n#ifdef AMBIENT_LIGHT_COUNT\n for(int _idx_ = 0; _idx_ < AMBIENT_LIGHT_COUNT; _idx_++)\n {{\n diffuseTerm += ambientLightColor[_idx_] * ambientFactor * ao;\n }}\n#endif\n\n#ifdef AMBIENT_SH_LIGHT_COUNT\n for(int _idx_ = 0; _idx_ < AMBIENT_SH_LIGHT_COUNT; _idx_++)\n {{\n diffuseTerm += calcAmbientSHLight(_idx_, N2) * ambientSHLightColor[_idx_] * ao;\n }}\n#endif\n\n#ifdef DIRECTIONAL_LIGHT_COUNT\n#if defined(DIRECTIONAL_LIGHT_SHADOWMAP_COUNT)\n float shadowContribsDir[DIRECTIONAL_LIGHT_COUNT];\n if(shadowEnabled)\n {\n computeShadowOfDirectionalLights(v_WorldPosition, shadowContribsDir);\n }\n#endif\n for(int _idx_ = 0; _idx_ < DIRECTIONAL_LIGHT_COUNT; _idx_++)\n {{\n vec3 L = -directionalLightDirection[_idx_];\n vec3 lc = directionalLightColor[_idx_];\n\n vec3 H = normalize(L + V);\n float ndl = clamp(dot(N, normalize(L)), 0.0, 1.0);\n float ndh = clamp(dot(N, H), 0.0, 1.0);\n\n float shadowContrib = 1.0;\n#if defined(DIRECTIONAL_LIGHT_SHADOWMAP_COUNT)\n if (shadowEnabled)\n {\n shadowContrib = shadowContribsDir[_idx_];\n }\n#endif\n\n vec3 li = lc * ndl * shadowContrib;\n\n diffuseTerm += li;\n specularTerm += li * fresnelTerm * D_Phong(g, ndh);\n }}\n#endif\n\n\n#ifdef AMBIENT_CUBEMAP_LIGHT_COUNT\n vec3 L = reflect(-V, N);\n L = vec3(L.x, L[NORMAL_UP_AXIS], L[NORMAL_FRONT_AXIS]);\n float rough2 = clamp(1.0 - g, 0.0, 1.0);\n float bias2 = rough2 * 5.0;\n vec2 brdfParam2 = texture2D(ambientCubemapLightBRDFLookup[0], vec2(rough2, ndv)).xy;\n vec3 envWeight2 = specFactor * brdfParam2.x + brdfParam2.y;\n vec3 envTexel2;\n for(int _idx_ = 0; _idx_ < AMBIENT_CUBEMAP_LIGHT_COUNT; _idx_++)\n {{\n envTexel2 = RGBMDecode(textureCubeLodEXT(ambientCubemapLightCubemap[_idx_], L, bias2), 8.12);\n specularTerm += ambientCubemapLightColor[_idx_] * envTexel2 * envWeight2 * ao;\n }}\n#endif\n\n gl_FragColor.rgb = albedoColor.rgb * diffuseTerm + specularTerm;\n gl_FragColor.a = albedoColor.a;\n\n#ifdef ATMOSPHERE_ENABLED\n float atmoIntensity = pow(1.0 - dot(v_Normal, (viewTranspose * vec4(0.0, 0.0, 1.0, 0.0)).xyz), glowPower);\n gl_FragColor.rgb += glowColor * atmoIntensity;\n#endif\n\n#ifdef SRGB_ENCODE\n gl_FragColor = linearTosRGB(gl_FragColor);\n#endif\n\n @import ecgl.common.emissiveLayer.main\n\n @import ecgl.common.wireframe.fragmentMain\n}\n\n@end"),Ce.import("@export ecgl.hatching.vertex\n\n@import ecgl.realistic.vertex\n\n@end\n\n\n@export ecgl.hatching.fragment\n\n#define NORMAL_UP_AXIS 1\n#define NORMAL_FRONT_AXIS 2\n\n@import ecgl.common.uv.fragmentHeader\n\nvarying vec3 v_Normal;\nvarying vec3 v_WorldPosition;\n\nuniform vec4 color : [0.0, 0.0, 0.0, 1.0];\nuniform vec4 paperColor : [1.0, 1.0, 1.0, 1.0];\n\nuniform mat4 viewInverse : VIEWINVERSE;\n\n#ifdef AMBIENT_LIGHT_COUNT\n@import clay.header.ambient_light\n#endif\n#ifdef AMBIENT_SH_LIGHT_COUNT\n@import clay.header.ambient_sh_light\n#endif\n\n#ifdef DIRECTIONAL_LIGHT_COUNT\n@import clay.header.directional_light\n#endif\n\n#ifdef VERTEX_COLOR\nvarying vec4 v_Color;\n#endif\n\n\n@import ecgl.common.ssaoMap.header\n\n@import ecgl.common.bumpMap.header\n\n@import clay.util.srgb\n\n@import ecgl.common.wireframe.fragmentHeader\n\n@import clay.plugin.compute_shadow_map\n\nuniform sampler2D hatch1;\nuniform sampler2D hatch2;\nuniform sampler2D hatch3;\nuniform sampler2D hatch4;\nuniform sampler2D hatch5;\nuniform sampler2D hatch6;\n\nfloat shade(in float tone) {\n vec4 c = vec4(1. ,1., 1., 1.);\n float step = 1. / 6.;\n vec2 uv = v_DetailTexcoord;\n if (tone <= step / 2.0) {\n c = mix(vec4(0.), texture2D(hatch6, uv), 12. * tone);\n }\n else if (tone <= step) {\n c = mix(texture2D(hatch6, uv), texture2D(hatch5, uv), 6. * tone);\n }\n if(tone > step && tone <= 2. * step){\n c = mix(texture2D(hatch5, uv), texture2D(hatch4, uv) , 6. * (tone - step));\n }\n if(tone > 2. * step && tone <= 3. * step){\n c = mix(texture2D(hatch4, uv), texture2D(hatch3, uv), 6. * (tone - 2. * step));\n }\n if(tone > 3. * step && tone <= 4. * step){\n c = mix(texture2D(hatch3, uv), texture2D(hatch2, uv), 6. * (tone - 3. * step));\n }\n if(tone > 4. * step && tone <= 5. * step){\n c = mix(texture2D(hatch2, uv), texture2D(hatch1, uv), 6. * (tone - 4. * step));\n }\n if(tone > 5. * step){\n c = mix(texture2D(hatch1, uv), vec4(1.), 6. * (tone - 5. * step));\n }\n\n return c.r;\n}\n\nconst vec3 w = vec3(0.2125, 0.7154, 0.0721);\n\nvoid main()\n{\n#ifdef SRGB_DECODE\n vec4 inkColor = sRGBToLinear(color);\n#else\n vec4 inkColor = color;\n#endif\n\n#ifdef VERTEX_COLOR\n #ifdef SRGB_DECODE\n inkColor *= sRGBToLinear(v_Color);\n #else\n inkColor *= v_Color;\n #endif\n#endif\n\n vec3 N = v_Normal;\n#ifdef DOUBLE_SIDED\n vec3 eyePos = viewInverse[3].xyz;\n vec3 V = normalize(eyePos - v_WorldPosition);\n\n if (dot(N, V) < 0.0) {\n N = -N;\n }\n#endif\n\n float tone = 0.0;\n\n float ambientFactor = 1.0;\n\n#ifdef BUMPMAP_ENABLED\n N = bumpNormal(v_WorldPosition, v_Normal, N);\n ambientFactor = dot(v_Normal, N);\n#endif\n\n vec3 N2 = vec3(N.x, N[NORMAL_UP_AXIS], N[NORMAL_FRONT_AXIS]);\n\n @import ecgl.common.ssaoMap.main\n\n#ifdef AMBIENT_LIGHT_COUNT\n for(int i = 0; i < AMBIENT_LIGHT_COUNT; i++)\n {\n tone += dot(ambientLightColor[i], w) * ambientFactor * ao;\n }\n#endif\n#ifdef AMBIENT_SH_LIGHT_COUNT\n for(int _idx_ = 0; _idx_ < AMBIENT_SH_LIGHT_COUNT; _idx_++)\n {{\n tone += dot(calcAmbientSHLight(_idx_, N2) * ambientSHLightColor[_idx_], w) * ao;\n }}\n#endif\n#ifdef DIRECTIONAL_LIGHT_COUNT\n#if defined(DIRECTIONAL_LIGHT_SHADOWMAP_COUNT)\n float shadowContribsDir[DIRECTIONAL_LIGHT_COUNT];\n if(shadowEnabled)\n {\n computeShadowOfDirectionalLights(v_WorldPosition, shadowContribsDir);\n }\n#endif\n for(int i = 0; i < DIRECTIONAL_LIGHT_COUNT; i++)\n {\n vec3 lightDirection = -directionalLightDirection[i];\n float lightTone = dot(directionalLightColor[i], w);\n\n float shadowContrib = 1.0;\n#if defined(DIRECTIONAL_LIGHT_SHADOWMAP_COUNT)\n if (shadowEnabled)\n {\n shadowContrib = shadowContribsDir[i];\n }\n#endif\n\n float ndl = dot(N, normalize(lightDirection)) * shadowContrib;\n\n tone += lightTone * clamp(ndl, 0.0, 1.0);\n }\n#endif\n\n gl_FragColor = mix(inkColor, paperColor, shade(clamp(tone, 0.0, 1.0)));\n }\n@end\n"),Ce.import("@export ecgl.sm.depth.vertex\n\nuniform mat4 worldViewProjection : WORLDVIEWPROJECTION;\n\nattribute vec3 position : POSITION;\nattribute vec2 texcoord : TEXCOORD_0;\n\n#ifdef VERTEX_ANIMATION\nattribute vec3 prevPosition;\nuniform float percent : 1.0;\n#endif\n\nvarying vec4 v_ViewPosition;\nvarying vec2 v_Texcoord;\n\nvoid main(){\n\n#ifdef VERTEX_ANIMATION\n vec3 pos = mix(prevPosition, position, percent);\n#else\n vec3 pos = position;\n#endif\n\n v_ViewPosition = worldViewProjection * vec4(pos, 1.0);\n gl_Position = v_ViewPosition;\n\n v_Texcoord = texcoord;\n\n}\n@end\n\n\n\n@export ecgl.sm.depth.fragment\n\n@import clay.sm.depth.fragment\n\n@end");var Ko=lr.prototype.addToScene,Jo=lr.prototype.removeFromScene;lr.prototype.addToScene=function(t){if(Ko.call(this,t),this.__zr){var e=this.__zr;t.traverse((function(t){t.__zr=e,t.addAnimatorsToZr&&t.addAnimatorsToZr(e)}))}},lr.prototype.removeFromScene=function(t){Jo.call(this,t),t.traverse((function(t){var e=t.__zr;t.__zr=null,e&&t.removeAnimatorsFromZr&&t.removeAnimatorsFromZr(e)}))},Ht.prototype.setTextureImage=function(t,e,n,i){if(this.shader){var r,o,a=n.getZr(),s=this;return s.autoUpdateTextureStatus=!1,s.disableTexture(t),(o=e)&&"none"!==o&&(r=Qo.loadTexture(e,n,i,(function(e){s.enableTexture(t),a&&a.refresh()})),s.set(t,r)),r}};var Qo={};Qo.Renderer=Ue,Qo.Node=Un,Qo.Mesh=li,Qo.Shader=Ce,Qo.Material=Ht,Qo.Texture=ai,Qo.Texture2D=fi,Qo.Geometry=Ci,Qo.SphereGeometry=To,Qo.PlaneGeometry=Pr,Qo.CubeGeometry=Nr,Qo.AmbientLight=Ao,Qo.DirectionalLight=Io,Qo.PointLight=ko,Qo.SpotLight=Do,Qo.PerspectiveCamera=mr,Qo.OrthographicCamera=ro,Qo.Vector2=Jt,Qo.Vector3=Qe,Qo.Vector4=No,Qo.Quaternion=kn,Qo.Matrix2=Go,Qo.Matrix2d=Wo,Qo.Matrix3=qo,Qo.Matrix4=An,Qo.Plane=Vi,Qo.Ray=ln,Qo.BoundingBox=Gn,Qo.Frustum=Zi;var ta=null;function ea(t){return Math.pow(2,Math.round(Math.log(t)/Math.LN2))}function na(t){if((t.wrapS===ai.REPEAT||t.wrapT===ai.REPEAT)&&t.image){var e=ea(t.width),n=ea(t.height);if(e!==t.width||n!==t.height){var i=document.createElement("canvas");i.width=e,i.height=n,i.getContext("2d").drawImage(t.image,0,0,e,n),t.image=i}}}Qo.loadTexture=function(t,e,n,i){"function"==typeof n&&(i=n,n={}),n=n||{};for(var r=Object.keys(n).sort(),o="",a=0;a<r.length;a++)o+=r[a]+"_"+n[r[a]]+"_";var s,l=e.__textureCache=e.__textureCache||new hr.Ay(20);if((s=t).getZr&&s.setOption){var h=t.__textureid__;if(u=l.get(o+h))u.texture.surface.setECharts(t),i&&i(u.texture);else{var c=new no(t);c.onupdate=function(){e.getZr().refresh()},u={texture:c.getTexture()};for(a=0;a<r.length;a++)u.texture[r[a]]=n[r[a]];h=t.__textureid__||"__ecgl_ec__"+u.texture.__uid__,t.__textureid__=h,l.put(o+h,u),i&&i(u.texture)}return u.texture}if($o(t)){var u;h=t.__textureid__;if(!(u=l.get(o+h))){u={texture:new Qo.Texture2D({image:t})};for(a=0;a<r.length;a++)u.texture[r[a]]=n[r[a]];h=t.__textureid__||"__ecgl_image__"+u.texture.__uid__,t.__textureid__=h,l.put(o+h,u),na(u.texture),i&&i(u.texture)}return u.texture}if(u=l.get(o+t))u.callbacks?u.callbacks.push(i):i&&i(u.texture);else if(t.match(/.hdr$|^data:application\/octet-stream/)){u={callbacks:[i]};var d=Jr.loadTexture(t,{exposure:n.exposure,fileType:"hdr"},(function(){d.dirty(),u.callbacks.forEach((function(t){t&&t(d)})),u.callbacks=null}));u.texture=d,l.put(o+t,u)}else{for(d=new Qo.Texture2D({image:new Image}),a=0;a<r.length;a++)d[r[a]]=n[r[a]];u={texture:d,callbacks:[i]};var p=d.image;p.onload=function(){d.image=p,na(d),d.dirty(),u.callbacks.forEach((function(t){t&&t(d)})),u.callbacks=null},p.crossOrigin="Anonymous",p.src=t,d.image=null!==ta?ta:ta=Jr.createBlank("rgba(255,255,255,0)").image,l.put(o+t,u)}return u.texture},Qo.createAmbientCubemap=function(t,e,n,i){var r=(t=t||{}).texture,o=wo.firstNotNull(t.exposure,1),a=new fo({intensity:wo.firstNotNull(t.specularIntensity,1)}),s=new mo({intensity:wo.firstNotNull(t.diffuseIntensity,1),coefficients:[.844,.712,.691,-.037,.083,.167,.343,.288,.299,-.041,-.021,-.009,-.003,-.041,-.064,-.011,-.007,-.004,-.031,.034,.081,-.06,-.049,-.06,.046,.056,.05]});return a.cubemap=Qo.loadTexture(r,n,{exposure:o},(function(){a.cubemap.flipY=!1,a.prefilter(e,32),s.coefficients=bo.projectEnvironmentMap(e,a.cubemap,{lod:1}),i&&i()})),{specular:a,diffuse:s}},Qo.createBlankTexture=Jr.createBlank,Qo.isImage=$o,Qo.additiveBlend=function(t){t.blendEquation(t.FUNC_ADD),t.blendFunc(t.SRC_ALPHA,t.ONE)},Qo.parseColor=function(t,e){return t instanceof Array?(e||(e=[]),e[0]=t[0],e[1]=t[1],e[2]=t[2],t.length>3?e[3]=t[3]:e[3]=1,e):((e=i.yW.parse(t||"#000",e)||[0,0,0,0])[0]/=255,e[1]/=255,e[2]/=255,e)},Qo.directionFromAlphaBeta=function(t,e){var n=t/180*Math.PI+Math.PI/2,i=-e/180*Math.PI+Math.PI/2,r=[],o=Math.sin(n);return r[0]=o*Math.cos(i),r[1]=-Math.cos(n),r[2]=o*Math.sin(i),r},Qo.getShadowResolution=function(t){var e=1024;switch(t){case"low":e=512;break;case"medium":break;case"high":e=2048;break;case"ultra":e=4096}return e},Qo.COMMON_SHADERS=["lambert","color","realistic","hatching","shadow"],Qo.createShader=function(t){"ecgl.shadow"===t&&(t="ecgl.displayShadow");var e=Ce.source(t+".vertex"),n=Ce.source(t+".fragment");e||console.error("Vertex shader of '%s' not exits",t),n||console.error("Fragment shader of '%s' not exits",t);var i=new Ce(e,n);return i.name=t,i},Qo.createMaterial=function(t,e){e instanceof Array||(e=[e]);var n=Qo.createShader(t),i=new Ht({shader:n});return e.forEach((function(t){"string"==typeof t&&i.define(t)})),i},Qo.setMaterialFromModel=function(t,e,n,i){e.autoUpdateTextureStatus=!1;var r=n.getModel(t+"Material"),o=r.get("detailTexture"),a=wo.firstNotNull(r.get("textureTiling"),1),s=wo.firstNotNull(r.get("textureOffset"),0);"number"==typeof a&&(a=[a,a]),"number"==typeof s&&(s=[s,s]);var l=a[0]>1||a[1]>1?Qo.Texture.REPEAT:Qo.Texture.CLAMP_TO_EDGE,h={anisotropic:8,wrapS:l,wrapT:l};if("realistic"===t){var c=r.get("roughness"),u=r.get("metalness");null!=u?isNaN(u)&&(e.setTextureImage("metalnessMap",u,i,h),u=wo.firstNotNull(r.get("metalnessAdjust"),.5)):u=0,null!=c?isNaN(c)&&(e.setTextureImage("roughnessMap",c,i,h),c=wo.firstNotNull(r.get("roughnessAdjust"),.5)):c=.5;var d=r.get("normalTexture");e.setTextureImage("detailMap",o,i,h),e.setTextureImage("normalMap",d,i,h),e.set({roughness:c,metalness:u,detailUvRepeat:a,detailUvOffset:s})}else if("lambert"===t)e.setTextureImage("detailMap",o,i,h),e.set({detailUvRepeat:a,detailUvOffset:s});else if("color"===t)e.setTextureImage("detailMap",o,i,h),e.set({detailUvRepeat:a,detailUvOffset:s});else if("hatching"===t){var p=r.get("hatchingTextures")||[];p.length;for(var f=0;f<6;f++)e.setTextureImage("hatch"+(f+1),p[f],i,{anisotropic:8,wrapS:Qo.Texture.REPEAT,wrapT:Qo.Texture.REPEAT});e.set({detailUvRepeat:a,detailUvOffset:s})}},Qo.updateVertexAnimation=function(t,e,n,i){var r=i.get("animation"),o=i.get("animationDurationUpdate"),a=i.get("animationEasingUpdate"),s=n.shadowDepthMaterial;if(r&&e&&o>0&&e.geometry.vertexCount===n.geometry.vertexCount){n.material.define("vertex","VERTEX_ANIMATION"),n.ignorePreZ=!0,s&&s.define("vertex","VERTEX_ANIMATION");for(var l=0;l<t.length;l++)n.geometry.attributes[t[l][0]].value=e.geometry.attributes[t[l][1]].value;n.geometry.dirty(),n.__percent=0,n.material.set("percent",0),n.stopAnimation(),n.animate().when(o,{__percent:1}).during((function(){n.material.set("percent",n.__percent),s&&s.set("percent",n.__percent)})).done((function(){n.ignorePreZ=!1,n.material.undefine("vertex","VERTEX_ANIMATION"),s&&s.undefine("vertex","VERTEX_ANIMATION")})).start(a)}else n.material.undefine("vertex","VERTEX_ANIMATION"),s&&s.undefine("vertex","VERTEX_ANIMATION")};const ia=Qo;var ra=n(3358),oa=function(t,e){this.id=t,this.zr=e;try{this.renderer=new Ue({clearBit:0,devicePixelRatio:e.painter.dpr,preserveDrawingBuffer:!0,premultipliedAlpha:!0}),this.renderer.resize(e.painter.getWidth(),e.painter.getHeight())}catch(Jh){return this.renderer=null,this.dom=document.createElement("div"),this.dom.style.cssText="position:absolute; left: 0; top: 0; right: 0; bottom: 0;",this.dom.className="ecgl-nowebgl",this.dom.innerHTML="Sorry, your browser does not support WebGL",void console.error(Jh)}this.onglobalout=this.onglobalout.bind(this),e.on("globalout",this.onglobalout),this.dom=this.renderer.canvas;var n=this.dom.style;n.position="absolute",n.left="0",n.top="0",this.views=[],this._picking=new ei({renderer:this.renderer}),this._viewsToDispose=[],this._accumulatingId=0,this._zrEventProxy=new i.fA.Rect({shape:{x:-1,y:-1,width:2,height:2},__isGLToZRProxy:!0}),this._backgroundColor=null,this._disposed=!1};function aa(t){var e=t.__zr;t.__zr=null,e&&t.removeAnimatorsFromZr&&t.removeAnimatorsFromZr(e)}oa.prototype.setUnpainted=function(){},oa.prototype.addView=function(t){if(t.layer!==this){var e=this._viewsToDispose.indexOf(t);e>=0&&this._viewsToDispose.splice(e,1),this.views.push(t),t.layer=this;var n=this.zr;t.scene.traverse((function(t){t.__zr=n,t.addAnimatorsToZr&&t.addAnimatorsToZr(n)}))}},oa.prototype.removeView=function(t){if(t.layer===this){var e=this.views.indexOf(t);e>=0&&(this.views.splice(e,1),t.scene.traverse(aa,this),t.layer=null,this._viewsToDispose.push(t))}},oa.prototype.removeViewsAll=function(){this.views.forEach((function(t){t.scene.traverse(aa,this),t.layer=null,this._viewsToDispose.push(t)}),this),this.views.length=0},oa.prototype.resize=function(t,e){this.renderer.resize(t,e)},oa.prototype.clear=function(){var t=this.renderer.gl,e=this._backgroundColor||[0,0,0,0];t.clearColor(e[0],e[1],e[2],e[3]),t.depthMask(!0),t.colorMask(!0,!0,!0,!0),t.clear(t.DEPTH_BUFFER_BIT|t.COLOR_BUFFER_BIT)},oa.prototype.clearDepth=function(){var t=this.renderer.gl;t.clear(t.DEPTH_BUFFER_BIT)},oa.prototype.clearColor=function(){var t=this.renderer.gl;t.clearColor(0,0,0,0),t.clear(t.COLOR_BUFFER_BIT)},oa.prototype.needsRefresh=function(){this.zr.refresh()},oa.prototype.refresh=function(t){this._backgroundColor=t?ia.parseColor(t):[0,0,0,0],this.renderer.clearColor=this._backgroundColor;for(var e=0;e<this.views.length;e++)this.views[e].prepareRender(this.renderer);this._doRender(!1),this._trackAndClean();for(e=0;e<this._viewsToDispose.length;e++)this._viewsToDispose[e].dispose(this.renderer);this._viewsToDispose.length=0,this._startAccumulating()},oa.prototype.renderToCanvas=function(t){this._startAccumulating(!0),t.drawImage(this.dom,0,0,t.canvas.width,t.canvas.height)},oa.prototype._doRender=function(t){this.clear(),this.renderer.saveViewport();for(var e=0;e<this.views.length;e++)this.views[e].render(this.renderer,t);this.renderer.restoreViewport()},oa.prototype._stopAccumulating=function(){this._accumulatingId=0,clearTimeout(this._accumulatingTimeout)};var sa=1;function la(t){for(var e=0;e<t.length;e++)t[e].__used__=0}function ha(t,e){for(var n=0;n<e.length;n++)e[n].__used__||e[n].dispose(t)}function ca(t,e){t.__used__=t.__used__||0,t.__used__++,1===t.__used__&&e.push(t)}function ua(t,e,n){var i,r;t.traverse((function(t){if(t.isRenderable()){var o=t.geometry,a=t.material;if(a!==i)for(var s=a.getTextureUniforms(),l=0;l<s.length;l++){var h=s[l],c=a.uniforms[h].value;if(c)if(c instanceof ai)ca(c,e);else if(c instanceof Array)for(var u=0;u<c.length;u++)c[u]instanceof ai&&ca(c[u],e)}o!==r&&ca(o,n),i=a,r=o}}));for(var o=0;o<t.lights.length;o++)t.lights[o].cubemap&&ca(t.lights[o].cubemap,e)}oa.prototype._startAccumulating=function(t){var e=this;this._stopAccumulating();for(var n=!1,i=0;i<this.views.length;i++)n=this.views[i].needsAccumulate()||n;function r(i){if(e._accumulatingId&&i===e._accumulatingId){for(var o=!0,a=0;a<e.views.length;a++)o=e.views[a].isAccumulateFinished()&&n;o||(e._doRender(!0),t?r(i):(0,ra.A)((function(){r(i)})))}}n&&(this._accumulatingId=sa++,t?r(e._accumulatingId):this._accumulatingTimeout=setTimeout((function(){r(e._accumulatingId)}),50))},oa.prototype._trackAndClean=function(){var t=[],e=[];this._textureList&&(la(this._textureList),la(this._geometriesList));for(var n=0;n<this.views.length;n++)ua(this.views[n].scene,t,e);this._textureList&&(ha(this.renderer,this._textureList),ha(this.renderer,this._geometriesList)),this._textureList=t,this._geometriesList=e},oa.prototype.dispose=function(){this._disposed||(this._stopAccumulating(),this._textureList&&(la(this._textureList),la(this._geometriesList),ha(this.renderer,this._textureList),ha(this.renderer,this._geometriesList)),this.zr.off("globalout",this.onglobalout),this._disposed=!0)},oa.prototype.onmousedown=function(t){if(!t.target||!t.target.__isGLToZRProxy){t=t.event;var e=this.pickObject(t.offsetX,t.offsetY);e&&(this._dispatchEvent("mousedown",t,e),this._dispatchDataEvent("mousedown",t,e)),this._downX=t.offsetX,this._downY=t.offsetY}},oa.prototype.onmousemove=function(t){if(!t.target||!t.target.__isGLToZRProxy){t=t.event;var e=this.pickObject(t.offsetX,t.offsetY),n=e&&e.target,i=this._hovered;this._hovered=e,i&&n!==i.target&&(i.relatedTarget=n,this._dispatchEvent("mouseout",t,i),this.zr.setCursorStyle("default")),this._dispatchEvent("mousemove",t,e),e&&(this.zr.setCursorStyle("pointer"),i&&n===i.target||this._dispatchEvent("mouseover",t,e)),this._dispatchDataEvent("mousemove",t,e)}},oa.prototype.onmouseup=function(t){if(!t.target||!t.target.__isGLToZRProxy){t=t.event;var e=this.pickObject(t.offsetX,t.offsetY);e&&(this._dispatchEvent("mouseup",t,e),this._dispatchDataEvent("mouseup",t,e)),this._upX=t.offsetX,this._upY=t.offsetY}},oa.prototype.onclick=oa.prototype.dblclick=function(t){if(!t.target||!t.target.__isGLToZRProxy){var e=this._upX-this._downX,n=this._upY-this._downY;if(!(Math.sqrt(e*e+n*n)>20)){t=t.event;var i=this.pickObject(t.offsetX,t.offsetY);i&&(this._dispatchEvent(t.type,t,i),this._dispatchDataEvent(t.type,t,i));var r=this._clickToSetFocusPoint(t);if(r)r.view.setDOFFocusOnPoint(r.distance)&&this.zr.refresh()}}},oa.prototype._clickToSetFocusPoint=function(t){for(var e=this.renderer,n=e.viewport,i=this.views.length-1;i>=0;i--){var r=this.views[i];if(r.hasDOF()&&r.containPoint(t.offsetX,t.offsetY)){this._picking.scene=r.scene,this._picking.camera=r.camera,e.viewport=r.viewport;var o=this._picking.pick(t.offsetX,t.offsetY,!0);if(o)return o.view=r,o}}e.viewport=n},oa.prototype.onglobalout=function(t){var e=this._hovered;e&&this._dispatchEvent("mouseout",t,{target:e.target})},oa.prototype.pickObject=function(t,e){for(var n=[],i=this.renderer,r=i.viewport,o=0;o<this.views.length;o++){var a=this.views[o];a.containPoint(t,e)&&(this._picking.scene=a.scene,this._picking.camera=a.camera,i.viewport=a.viewport,this._picking.pickAll(t,e,n))}return i.viewport=r,n.sort((function(t,e){return t.distance-e.distance})),n[0]},oa.prototype._dispatchEvent=function(t,e,n){n||(n={});var i=n.target;for(n.cancelBubble=!1,n.event=e,n.type=t,n.offsetX=e.offsetX,n.offsetY=e.offsetY;i&&(i.trigger(t,n),i=i.getParent(),!n.cancelBubble););this._dispatchToView(t,n)},oa.prototype._dispatchDataEvent=function(t,e,n){var r=n&&n.target,o=r&&r.dataIndex,a=r&&r.seriesIndex,s=r&&r.eventData,l=!1,h=this._zrEventProxy;h.x=e.offsetX,h.y=e.offsetY,h.update();var c={target:h};const u=i.dw.getECData(h);"mousemove"===t&&(null!=o?o!==this._lastDataIndex&&(parseInt(this._lastDataIndex,10)>=0&&(u.dataIndex=this._lastDataIndex,u.seriesIndex=this._lastSeriesIndex,this.zr.handler.dispatchToElement(c,"mouseout",e)),l=!0):null!=s&&s!==this._lastEventData&&(null!=this._lastEventData&&(u.eventData=this._lastEventData,this.zr.handler.dispatchToElement(c,"mouseout",e)),l=!0),this._lastEventData=s,this._lastDataIndex=o,this._lastSeriesIndex=a),u.eventData=s,u.dataIndex=o,u.seriesIndex=a,(null!=s||parseInt(o,10)>=0&&parseInt(a,10)>=0)&&(this.zr.handler.dispatchToElement(c,t,e),l&&this.zr.handler.dispatchToElement(c,"mouseover",e))},oa.prototype._dispatchToView=function(t,e){for(var n=0;n<this.views.length;n++)this.views[n].containPoint(e.offsetX,e.offsetY)&&this.views[n].trigger(t,e)},Object.assign(oa.prototype,d);const da=oa;var pa=["bar3D","line3D","map3D","scatter3D","surface","lines3D","scatterGL","scatter3D"];function fa(t,e){if(t&&t[e]&&(t[e].normal||t[e].emphasis)){var n=t[e].normal,i=t[e].emphasis;n&&(t[e]=n),i&&(t.emphasis=t.emphasis||{},t.emphasis[e]=i)}}function ga(t){t&&(t instanceof Array||(t=[t]),i.ZS.each(t,(function(t){if(t.axisLabel){var e=t.axisLabel;Object.assign(e,e.textStyle),e.textStyle=null}})))}function ma(t){this._layers={},this._zr=t}ma.prototype.update=function(t,e){var n=this,r=e.getZr();if(r.getWidth()&&r.getHeight()){for(var o in this._layers)this._layers[o].removeViewsAll();t.eachComponent((function(n,i){if("series"!==n){var r=e.getViewOfComponentModel(i),o=i.coordinateSystem;if(r.__ecgl__){if(o){if(!o.viewGL)return void console.error("Can't find viewGL in coordinateSystem of component "+i.id);l=o.viewGL}else{if(!i.viewGL)return void console.error("Can't find viewGL of component "+i.id);l=o.viewGL}var l=o.viewGL,h=a(i);h.addView(l),r.afterRender&&r.afterRender(i,t,e,h),s(r.groupGL,i.get("silent"))}}})),t.eachSeries((function(n){var i=e.getViewOfSeriesModel(n),r=n.coordinateSystem;if(i.__ecgl__){if(r&&!r.viewGL&&!i.viewGL)return void console.error("Can't find viewGL of series "+i.id);var o=r&&r.viewGL||i.viewGL,l=a(n);l.addView(o),i.afterRender&&i.afterRender(n,t,e,l),s(i.groupGL,n.get("silent"))}}))}else console.warn("Dom has no width or height");function a(t){var e;r.setSleepAfterStill(0),e=(t.coordinateSystem&&t.coordinateSystem.model,t.get("zlevel"));var o=n._layers,a=o[e];if(!a){if(a=o[e]=new da("gl-"+e,r),r.painter.isSingleCanvas()){a.virtual=!0;var s=new i.fA.Image({z:1e4,style:{image:a.renderer.canvas},silent:!0});a.__hostImage=s,r.add(s)}r.painter.insertLayer(e,a)}return a.__hostImage&&a.__hostImage.setStyle({width:a.renderer.getWidth(),height:a.renderer.getHeight()}),a}function s(t,e){t&&t.traverse((function(t){t.isRenderable&&t.isRenderable()&&(t.ignorePicking=null!=t.$ignorePicking?t.$ignorePicking:e)}))}},i.cf((function(t){var e=t.getZr(),n=e.painter.dispose;e.painter.dispose=function(){"function"==typeof this.eachOtherLayer&&this.eachOtherLayer((function(t){t instanceof da&&t.dispose()})),n.call(this)},e.painter.getRenderedCanvas=function(t){if(t=t||{},this._singleCanvas)return this._layers[0].dom;var e=document.createElement("canvas"),n=t.pixelRatio||this.dpr;e.width=this.getWidth()*n,e.height=this.getHeight()*n;var i=e.getContext("2d");i.dpr=n,i.clearRect(0,0,e.width,e.height),t.backgroundColor&&(i.fillStyle=t.backgroundColor,i.fillRect(0,0,e.width,e.height));var r,o=this.storage.getDisplayList(!0),a={},s=this;function l(t,e){var n,r=s._zlevelList;null==t&&(t=-1/0);for(var o=0;o<r.length;o++){var a=r[o],l=s._layers[a];if(!l.__builtin__&&a>t&&a<e){n=l;break}}n&&n.renderToCanvas&&(i.save(),n.renderToCanvas(i),i.restore())}for(var h={ctx:i},c=0;c<o.length;c++){var u=o[c];u.zlevel!==r&&(l(r,u.zlevel),r=u.zlevel),this._doPaintEl(u,h,!0,null,a)}return l(r,1/0),e}})),i.tb((function(t,e){var n=e.getZr();(n.__egl=n.__egl||new ma(n)).update(t,e)})),i.lP((function(t){i.ZS.each(t.series,(function(e){i.ZS.indexOf(pa,e.type)>=0&&(!function(t){fa(t,"itemStyle"),fa(t,"lineStyle"),fa(t,"areaStyle"),fa(t,"label")}(e),"mapbox"===e.coordinateSystem&&(e.coordinateSystem="mapbox3D",t.mapbox3D=t.mapbox))})),ga(t.xAxis3D),ga(t.yAxis3D),ga(t.zAxis3D),ga(t.grid3D),fa(t.geo3D)}));const va={defaultOption:{viewControl:{projection:"perspective",autoRotate:!1,autoRotateDirection:"cw",autoRotateSpeed:10,autoRotateAfterStill:3,damping:.8,rotateSensitivity:1,zoomSensitivity:1,panSensitivity:1,panMouseButton:"middle",rotateMouseButton:"left",distance:150,minDistance:40,maxDistance:400,orthographicSize:150,maxOrthographicSize:400,minOrthographicSize:20,center:[0,0,0],alpha:0,beta:0,minAlpha:-90,maxAlpha:90}},setView:function(t){t=t||{},this.option.viewControl=this.option.viewControl||{},null!=t.alpha&&(this.option.viewControl.alpha=t.alpha),null!=t.beta&&(this.option.viewControl.beta=t.beta),null!=t.distance&&(this.option.viewControl.distance=t.distance),null!=t.center&&(this.option.viewControl.center=t.center)}},ya={defaultOption:{postEffect:{enable:!1,bloom:{enable:!0,intensity:.1},depthOfField:{enable:!1,focalRange:20,focalDistance:50,blurRadius:10,fstop:2.8,quality:"medium"},screenSpaceAmbientOcclusion:{enable:!1,radius:2,quality:"medium",intensity:1},screenSpaceReflection:{enable:!1,quality:"medium",maxRoughness:.8},colorCorrection:{enable:!0,exposure:0,brightness:0,contrast:1,saturation:1,lookupTexture:""},edge:{enable:!1},FXAA:{enable:!1}},temporalSuperSampling:{enable:"auto"}}},_a={defaultOption:{light:{main:{shadow:!1,shadowQuality:"high",color:"#fff",intensity:1,alpha:0,beta:0},ambient:{color:"#fff",intensity:.2},ambientCubemap:{texture:null,exposure:1,diffuseIntensity:.5,specularIntensity:.5}}}};var xa=i.jT.extend({type:"grid3D",dependencies:["xAxis3D","yAxis3D","zAxis3D"],defaultOption:{show:!0,zlevel:-10,left:0,top:0,width:"100%",height:"100%",environment:"auto",boxWidth:100,boxHeight:100,boxDepth:100,axisPointer:{show:!0,lineStyle:{color:"rgba(0, 0, 0, 0.8)",width:1},label:{show:!0,formatter:null,margin:8,textStyle:{fontSize:14,color:"#fff",backgroundColor:"rgba(0,0,0,0.5)",padding:3,borderRadius:3}}},axisLine:{show:!0,lineStyle:{color:"#333",width:2,type:"solid"}},axisTick:{show:!0,inside:!1,length:3,lineStyle:{width:1}},axisLabel:{show:!0,inside:!1,rotate:0,margin:8,textStyle:{fontSize:12}},splitLine:{show:!0,lineStyle:{color:["#ccc"],width:1,type:"solid"}},splitArea:{show:!1,areaStyle:{color:["rgba(250,250,250,0.3)","rgba(200,200,200,0.3)"]}},light:{main:{alpha:30,beta:40},ambient:{intensity:.4}},viewControl:{alpha:20,beta:40,autoRotate:!1,distance:200,minDistance:40,maxDistance:400}}});i.ZS.merge(xa.prototype,va),i.ZS.merge(xa.prototype,ya),i.ZS.merge(xa.prototype,_a);const ba=xa;var wa=n(6547),Sa=wo.firstNotNull,Ta={left:0,middle:1,right:2};function Ma(t){return t instanceof Array||(t=[t,t]),t}var Aa=y.extend((function(){return{zr:null,viewGL:null,_center:new Qe,minDistance:.5,maxDistance:1.5,maxOrthographicSize:300,minOrthographicSize:30,minAlpha:-90,maxAlpha:90,minBeta:-1/0,maxBeta:1/0,autoRotateAfterStill:0,autoRotateDirection:"cw",autoRotateSpeed:60,damping:.8,rotateSensitivity:1,zoomSensitivity:1,panSensitivity:1,panMouseButton:"middle",rotateMouseButton:"left",_mode:"rotate",_camera:null,_needsUpdate:!1,_rotating:!1,_phi:0,_theta:0,_mouseX:0,_mouseY:0,_rotateVelocity:new Jt,_panVelocity:new Jt,_distance:500,_zoomSpeed:0,_stillTimeout:0,_animators:[]}}),(function(){["_mouseDownHandler","_mouseWheelHandler","_mouseMoveHandler","_mouseUpHandler","_pinchHandler","_contextMenuHandler","_update"].forEach((function(t){this[t]=this[t].bind(this)}),this)}),{init:function(){var t=this.zr;t&&(t.on("mousedown",this._mouseDownHandler),t.on("globalout",this._mouseUpHandler),t.on("mousewheel",this._mouseWheelHandler),t.on("pinch",this._pinchHandler),t.animation.on("frame",this._update),t.dom.addEventListener("contextmenu",this._contextMenuHandler))},dispose:function(){var t=this.zr;t&&(t.off("mousedown",this._mouseDownHandler),t.off("mousemove",this._mouseMoveHandler),t.off("mouseup",this._mouseUpHandler),t.off("mousewheel",this._mouseWheelHandler),t.off("pinch",this._pinchHandler),t.off("globalout",this._mouseUpHandler),t.dom.removeEventListener("contextmenu",this._contextMenuHandler),t.animation.off("frame",this._update)),this.stopAllAnimation()},getDistance:function(){return this._distance},setDistance:function(t){this._distance=t,this._needsUpdate=!0},getOrthographicSize:function(){return this._orthoSize},setOrthographicSize:function(t){this._orthoSize=t,this._needsUpdate=!0},getAlpha:function(){return this._theta/Math.PI*180},getBeta:function(){return-this._phi/Math.PI*180},getCenter:function(){return this._center.toArray()},setAlpha:function(t){t=Math.max(Math.min(this.maxAlpha,t),this.minAlpha),this._theta=t/180*Math.PI,this._needsUpdate=!0},setBeta:function(t){t=Math.max(Math.min(this.maxBeta,t),this.minBeta),this._phi=-t/180*Math.PI,this._needsUpdate=!0},setCenter:function(t){this._center.setArray(t)},setViewGL:function(t){this.viewGL=t},getCamera:function(){return this.viewGL.camera},setFromViewControlModel:function(t,e){var n=(e=e||{}).baseDistance||0,i=e.baseOrthoSize||1,r=t.get("projection");"perspective"!==r&&"orthographic"!==r&&"isometric"!==r&&(r="perspective"),this._projection=r,this.viewGL.setProjection(r);var o=t.get("distance")+n,a=t.get("orthographicSize")+i;[["damping",.8],["autoRotate",!1],["autoRotateAfterStill",3],["autoRotateDirection","cw"],["autoRotateSpeed",10],["minDistance",30],["maxDistance",400],["minOrthographicSize",30],["maxOrthographicSize",300],["minAlpha",-90],["maxAlpha",90],["minBeta",-1/0],["maxBeta",1/0],["rotateSensitivity",1],["zoomSensitivity",1],["panSensitivity",1],["panMouseButton","left"],["rotateMouseButton","middle"]].forEach((function(e){this[e[0]]=Sa(t.get(e[0]),e[1])}),this),this.minDistance+=n,this.maxDistance+=n,this.minOrthographicSize+=i,this.maxOrthographicSize+=i;var s=t.ecModel,l={};["animation","animationDurationUpdate","animationEasingUpdate"].forEach((function(e){l[e]=Sa(t.get(e),s&&s.get(e))}));var h=Sa(e.alpha,t.get("alpha"))||0,c=Sa(e.beta,t.get("beta"))||0,u=Sa(e.center,t.get("center"))||[0,0,0];l.animation&&l.animationDurationUpdate>0&&this._notFirst?this.animateTo({alpha:h,beta:c,center:u,distance:o,orthographicSize:a,easing:l.animationEasingUpdate,duration:l.animationDurationUpdate}):(this.setDistance(o),this.setAlpha(h),this.setBeta(c),this.setCenter(u),this.setOrthographicSize(a)),this._notFirst=!0,this._validateProperties()},_validateProperties:function(){0},animateTo:function(t){var e=this.zr,n=this,i={},r={};return null!=t.distance&&(i.distance=this.getDistance(),r.distance=t.distance),null!=t.orthographicSize&&(i.orthographicSize=this.getOrthographicSize(),r.orthographicSize=t.orthographicSize),null!=t.alpha&&(i.alpha=this.getAlpha(),r.alpha=t.alpha),null!=t.beta&&(i.beta=this.getBeta(),r.beta=t.beta),null!=t.center&&(i.center=this.getCenter(),r.center=t.center),this._addAnimator(e.animation.animate(i).when(t.duration||1e3,r).during((function(){null!=i.alpha&&n.setAlpha(i.alpha),null!=i.beta&&n.setBeta(i.beta),null!=i.distance&&n.setDistance(i.distance),null!=i.center&&n.setCenter(i.center),null!=i.orthographicSize&&n.setOrthographicSize(i.orthographicSize),n._needsUpdate=!0}))).start(t.easing||"linear")},stopAllAnimation:function(){for(var t=0;t<this._animators.length;t++)this._animators[t].stop();this._animators.length=0},update:function(){this._needsUpdate=!0,this._update(20)},_isAnimating:function(){return this._animators.length>0},_update:function(t){if(this._rotating){var e=("cw"===this.autoRotateDirection?1:-1)*this.autoRotateSpeed/180*Math.PI;this._phi-=e*t/1e3,this._needsUpdate=!0}else this._rotateVelocity.len()>0&&(this._needsUpdate=!0);(Math.abs(this._zoomSpeed)>.1||this._panVelocity.len()>0)&&(this._needsUpdate=!0),this._needsUpdate&&(t=Math.min(t,50),this._updateDistanceOrSize(t),this._updatePan(t),this._updateRotate(t),this._updateTransform(),this.getCamera().update(),this.zr&&this.zr.refresh(),this.trigger("update"),this._needsUpdate=!1)},_updateRotate:function(t){var e=this._rotateVelocity;this._phi=e.y*t/20+this._phi,this._theta=e.x*t/20+this._theta,this.setAlpha(this.getAlpha()),this.setBeta(this.getBeta()),this._vectorDamping(e,Math.pow(this.damping,t/16))},_updateDistanceOrSize:function(t){"perspective"===this._projection?this._setDistance(this._distance+this._zoomSpeed*t/20):this._setOrthoSize(this._orthoSize+this._zoomSpeed*t/20),this._zoomSpeed*=Math.pow(this.damping,t/16)},_setDistance:function(t){this._distance=Math.max(Math.min(t,this.maxDistance),this.minDistance)},_setOrthoSize:function(t){this._orthoSize=Math.max(Math.min(t,this.maxOrthographicSize),this.minOrthographicSize);var e=this.getCamera(),n=this._orthoSize,i=n/this.viewGL.viewport.height*this.viewGL.viewport.width;e.left=-i/2,e.right=i/2,e.top=n/2,e.bottom=-n/2},_updatePan:function(t){var e=this._panVelocity,n=this._distance,i=this.getCamera(),r=i.worldTransform.y,o=i.worldTransform.x;this._center.scaleAndAdd(o,-e.x*n/200).scaleAndAdd(r,-e.y*n/200),this._vectorDamping(e,0)},_updateTransform:function(){var t=this.getCamera(),e=new Qe,n=this._theta+Math.PI/2,i=this._phi+Math.PI/2,r=Math.sin(n);e.x=r*Math.cos(i),e.y=-Math.cos(n),e.z=r*Math.sin(i),t.position.copy(this._center).scaleAndAdd(e,this._distance),t.rotation.identity().rotateY(-this._phi).rotateX(-this._theta)},_startCountingStill:function(){clearTimeout(this._stillTimeout);var t=this.autoRotateAfterStill,e=this;!isNaN(t)&&t>0&&(this._stillTimeout=setTimeout((function(){e._rotating=!0}),1e3*t))},_vectorDamping:function(t,e){var n=t.len();(n*=e)<1e-4&&(n=0),t.normalize().scale(n)},_decomposeTransform:function(){if(this.getCamera()){this.getCamera().updateWorldTransform();var t=this.getCamera().worldTransform.z,e=Math.asin(t.y),n=Math.atan2(t.x,t.z);this._theta=e,this._phi=-n,this.setBeta(this.getBeta()),this.setAlpha(this.getAlpha()),this.getCamera().aspect?this._setDistance(this.getCamera().position.dist(this._center)):this._setOrthoSize(this.getCamera().top-this.getCamera().bottom)}},_mouseDownHandler:function(t){if(!t.target&&!this._isAnimating()){var e=t.offsetX,n=t.offsetY;this.viewGL&&!this.viewGL.containPoint(e,n)||(this.zr.on("mousemove",this._mouseMoveHandler),this.zr.on("mouseup",this._mouseUpHandler),t.event.targetTouches?1===t.event.targetTouches.length&&(this._mode="rotate"):t.event.button===Ta[this.rotateMouseButton]?this._mode="rotate":t.event.button===Ta[this.panMouseButton]?this._mode="pan":this._mode="",this._rotateVelocity.set(0,0),this._rotating=!1,this.autoRotate&&this._startCountingStill(),this._mouseX=t.offsetX,this._mouseY=t.offsetY)}},_mouseMoveHandler:function(t){if(!(t.target&&t.target.__isGLToZRProxy||this._isAnimating())){var e=Ma(this.panSensitivity),n=Ma(this.rotateSensitivity);"rotate"===this._mode?(this._rotateVelocity.y=(t.offsetX-this._mouseX)/this.zr.getHeight()*2*n[0],this._rotateVelocity.x=(t.offsetY-this._mouseY)/this.zr.getWidth()*2*n[1]):"pan"===this._mode&&(this._panVelocity.x=(t.offsetX-this._mouseX)/this.zr.getWidth()*e[0]*400,this._panVelocity.y=(-t.offsetY+this._mouseY)/this.zr.getHeight()*e[1]*400),this._mouseX=t.offsetX,this._mouseY=t.offsetY,t.event.preventDefault()}},_mouseWheelHandler:function(t){if(!this._isAnimating()){var e=t.event.wheelDelta||-t.event.detail;this._zoomHandler(t,e)}},_pinchHandler:function(t){this._isAnimating()||(this._zoomHandler(t,t.pinchScale>1?1:-1),this._mode="")},_zoomHandler:function(t,e){if(0!==e){var n,i=t.offsetX,r=t.offsetY;if(!this.viewGL||this.viewGL.containPoint(i,r))n="perspective"===this._projection?Math.max(Math.max(Math.min(this._distance-this.minDistance,this.maxDistance-this._distance))/20,.5):Math.max(Math.max(Math.min(this._orthoSize-this.minOrthographicSize,this.maxOrthographicSize-this._orthoSize))/20,.5),this._zoomSpeed=(e>0?-1:1)*n*this.zoomSensitivity,this._rotating=!1,this.autoRotate&&"rotate"===this._mode&&this._startCountingStill(),t.event.preventDefault()}},_mouseUpHandler:function(){this.zr.off("mousemove",this._mouseMoveHandler),this.zr.off("mouseup",this._mouseUpHandler)},_isRightMouseButtonUsed:function(){return"right"===this.rotateMouseButton||"right"===this.panMouseButton},_contextMenuHandler:function(t){this._isRightMouseButtonUsed()&&t.preventDefault()},_addAnimator:function(t){var e=this._animators;return e.push(t),t.done((function(){var n=e.indexOf(t);n>=0&&e.splice(n,1)})),t}});Object.defineProperty(Aa.prototype,"autoRotate",{get:function(t){return this._autoRotate},set:function(t){this._autoRotate=t,this._rotating=t}});const Ca=Aa,Ia={convertToDynamicArray:function(t){t&&this.resetOffset();var e=this.attributes;for(var n in e)t||!e[n].value?e[n].value=[]:e[n].value=Array.prototype.slice.call(e[n].value);t||!this.indices?this.indices=[]:this.indices=Array.prototype.slice.call(this.indices)},convertToTypedArray:function(){var t=this.attributes;for(var e in t)t[e].value&&t[e].value.length>0?t[e].value=new Float32Array(t[e].value):t[e].value=null;this.indices&&this.indices.length>0&&(this.indices=this.vertexCount>65535?new Uint32Array(this.indices):new Uint16Array(this.indices)),this.dirty()}},Ea={vec2:Zt,vec3:De,vec4:cn,mat2:Bo,mat2d:jo,mat3:dn,mat4:ke,quat:yn};var ka=Ea.vec3,La=[[0,0],[1,1]],Da=Ci.extend((function(){return{segmentScale:1,dynamic:!0,useNativeLine:!0,attributes:{position:new Ci.Attribute("position","float",3,"POSITION"),positionPrev:new Ci.Attribute("positionPrev","float",3),positionNext:new Ci.Attribute("positionNext","float",3),prevPositionPrev:new Ci.Attribute("prevPositionPrev","float",3),prevPosition:new Ci.Attribute("prevPosition","float",3),prevPositionNext:new Ci.Attribute("prevPositionNext","float",3),offset:new Ci.Attribute("offset","float",1),color:new Ci.Attribute("color","float",4,"COLOR")}}}),{resetOffset:function(){this._vertexOffset=0,this._triangleOffset=0,this._itemVertexOffsets=[]},setVertexCount:function(t){var e=this.attributes;this.vertexCount!==t&&(e.position.init(t),e.color.init(t),this.useNativeLine||(e.positionPrev.init(t),e.positionNext.init(t),e.offset.init(t)),t>65535?this.indices instanceof Uint16Array&&(this.indices=new Uint32Array(this.indices)):this.indices instanceof Uint32Array&&(this.indices=new Uint16Array(this.indices)))},setTriangleCount:function(t){this.triangleCount!==t&&(this.indices=0===t?null:this.vertexCount>65535?new Uint32Array(3*t):new Uint16Array(3*t))},_getCubicCurveApproxStep:function(t,e,n,i){return 1/(ka.dist(t,e)+ka.dist(n,e)+ka.dist(i,n)+1)*this.segmentScale},getCubicCurveVertexCount:function(t,e,n,i){var r=this._getCubicCurveApproxStep(t,e,n,i),o=Math.ceil(1/r);return this.useNativeLine?2*o:2*o+2},getCubicCurveTriangleCount:function(t,e,n,i){var r=this._getCubicCurveApproxStep(t,e,n,i),o=Math.ceil(1/r);return this.useNativeLine?0:2*o},getLineVertexCount:function(){return this.getPolylineVertexCount(La)},getLineTriangleCount:function(){return this.getPolylineTriangleCount(La)},getPolylineVertexCount:function(t){var e;"number"==typeof t?e=t:e="number"!=typeof t[0]?t.length:t.length/3;return this.useNativeLine?2*(e-1):2*(e-1)+2},getPolylineTriangleCount:function(t){var e;"number"==typeof t?e=t:e="number"!=typeof t[0]?t.length:t.length/3;return this.useNativeLine?0:2*Math.max(e-1,0)},addCubicCurve:function(t,e,n,i,r,o){null==o&&(o=1);var a=t[0],s=t[1],l=t[2],h=e[0],c=e[1],u=e[2],d=n[0],p=n[1],f=n[2],g=i[0],m=i[1],v=i[2],y=this._getCubicCurveApproxStep(t,e,n,i),_=y*y,x=_*y,b=3*y,w=3*_,S=6*_,T=6*x,M=a-2*h+d,A=s-2*c+p,C=l-2*u+f,I=3*(h-d)-a+g,E=3*(c-p)-s+m,k=3*(u-f)-l+v,L=a,D=s,P=l,R=(h-a)*b+M*w+I*x,O=(c-s)*b+A*w+E*x,N=(u-l)*b+C*w+k*x,F=M*S+I*T,B=A*S+E*T,z=C*S+k*T,G=I*T,V=E*T,j=k*T,H=0,W=0,U=Math.ceil(1/y),q=new Float32Array(3*(U+1)),X=(q=[],0);for(W=0;W<U+1;W++)q[X++]=L,q[X++]=D,q[X++]=P,L+=R,D+=O,P+=N,R+=F,O+=B,N+=z,F+=G,B+=V,z+=j,(H+=y)>1&&(L=R>0?Math.min(L,g):Math.max(L,g),D=O>0?Math.min(D,m):Math.max(D,m),P=N>0?Math.min(P,v):Math.max(P,v));return this.addPolyline(q,r,o)},addLine:function(t,e,n,i){return this.addPolyline([t,e],n,i)},addPolyline:function(t,e,n,i,r){if(t.length){var o="number"!=typeof t[0];if(null==r&&(r=o?t.length:t.length/3),!(r<2)){null==i&&(i=0),null==n&&(n=1),this._itemVertexOffsets.push(this._vertexOffset);var a,s,l=(o="number"!=typeof t[0])?"number"!=typeof e[0]:e.length/4===r,h=this.attributes.position,c=this.attributes.positionPrev,u=this.attributes.positionNext,d=this.attributes.color,p=this.attributes.offset,f=this.indices,g=this._vertexOffset;n=Math.max(n,.01);for(var m=i;m<r;m++){if(o)a=t[m],s=l?e[m]:e;else{var v=3*m;if((a=a||[])[0]=t[v],a[1]=t[v+1],a[2]=t[v+2],l){var y=4*m;(s=s||[])[0]=e[y],s[1]=e[y+1],s[2]=e[y+2],s[3]=e[y+3]}else s=e}if(this.useNativeLine?m>1&&(h.copy(g,g-1),d.copy(g,g-1),g++):(m<r-1&&(c.set(g+2,a),c.set(g+3,a)),m>0&&(u.set(g-2,a),u.set(g-1,a)),h.set(g,a),h.set(g+1,a),d.set(g,s),d.set(g+1,s),p.set(g,n/2),p.set(g+1,-n/2),g+=2),this.useNativeLine)d.set(g,s),h.set(g,a),g++;else if(m>0){var _=3*this._triangleOffset;(f=this.indices)[_]=g-4,f[_+1]=g-3,f[_+2]=g-2,f[_+3]=g-3,f[_+4]=g-1,f[_+5]=g-2,this._triangleOffset+=2}}if(!this.useNativeLine){var x=this._vertexOffset,b=this._vertexOffset+2*r;c.copy(x,x+2),c.copy(x+1,x+3),u.copy(b-1,b-3),u.copy(b-2,b-4)}return this._vertexOffset=g,this._vertexOffset}}},setItemColor:function(t,e){for(var n=this._itemVertexOffsets[t],i=t<this._itemVertexOffsets.length-1?this._itemVertexOffsets[t+1]:this._vertexOffset,r=n;r<i;r++)this.attributes.color.set(r,e);this.dirty("color")},currentTriangleOffset:function(){return this._triangleOffset},currentVertexOffset:function(){return this._vertexOffset}});i.ZS.defaults(Da.prototype,Ia);const Pa=Da;function Ra(t,e,n,i,r,o,a){this._zr=t,this._x=0,this._y=0,this._rowHeight=0,this.width=i,this.height=r,this.offsetX=e,this.offsetY=n,this.dpr=a,this.gap=o}function Oa(t){(t=t||{}).width=t.width||512,t.height=t.height||512,t.devicePixelRatio=t.devicePixelRatio||1,t.gap=null==t.gap?2:t.gap;var e=document.createElement("canvas");e.width=t.width*t.devicePixelRatio,e.height=t.height*t.devicePixelRatio,this._canvas=e,this._texture=new fi({image:e,flipY:!1});var n=this;this._zr=i.nd.init(e);var r=this._zr.refreshImmediately;this._zr.refreshImmediately=function(){r.call(this),n._texture.dirty(),n.onupdate&&n.onupdate()},this._dpr=t.devicePixelRatio,this._coords={},this.onupdate=t.onupdate,this._gap=t.gap,this._textureAtlasNodes=[new Ra(this._zr,0,0,t.width,t.height,this._gap,this._dpr)],this._nodeWidth=t.width,this._nodeHeight=t.height,this._currentNodeIdx=0}Ra.prototype={constructor:Ra,clear:function(){this._x=0,this._y=0,this._rowHeight=0},add:function(t,e,n){var i=t.getBoundingRect();null==e&&(e=i.width),null==n&&(n=i.height),e*=this.dpr,n*=this.dpr,this._fitElement(t,e,n);var r=this._x,o=this._y,a=this.width*this.dpr,s=this.height*this.dpr,l=this.gap;if(r+e+l>a&&(r=this._x=0,o+=this._rowHeight+l,this._y=o,this._rowHeight=0),this._x+=e+l,this._rowHeight=Math.max(this._rowHeight,n),o+n+l>s)return null;t.x+=this.offsetX*this.dpr+r,t.y+=this.offsetY*this.dpr+o,this._zr.add(t);var h=[this.offsetX/this.width,this.offsetY/this.height];return[[r/a+h[0],o/s+h[1]],[(r+e)/a+h[0],(o+n)/s+h[1]]]},_fitElement:function(t,e,n){var i=t.getBoundingRect(),r=e/i.width,o=n/i.height;t.x=-i.x*r,t.y=-i.y*o,t.scaleX=r,t.scaleY=o,t.update()}},Oa.prototype={clear:function(){for(var t=0;t<this._textureAtlasNodes.length;t++)this._textureAtlasNodes[t].clear();this._currentNodeIdx=0,this._zr.clear(),this._coords={}},getWidth:function(){return this._width},getHeight:function(){return this._height},getTexture:function(){return this._texture},getDevicePixelRatio:function(){return this._dpr},getZr:function(){return this._zr},_getCurrentNode:function(){return this._textureAtlasNodes[this._currentNodeIdx]},_expand:function(){if(this._currentNodeIdx++,this._textureAtlasNodes[this._currentNodeIdx])return this._textureAtlasNodes[this._currentNodeIdx];var t=4096/this._dpr,e=this._textureAtlasNodes.length,n=e*this._nodeWidth%t,i=Math.floor(e*this._nodeWidth/t)*this._nodeHeight;if(!(i>=t)){var r=(n+this._nodeWidth)*this._dpr,o=(i+this._nodeHeight)*this._dpr;try{this._zr.resize({width:r,height:o})}catch(Jh){this._canvas.width=r,this._canvas.height=o}var a=new Ra(this._zr,n,i,this._nodeWidth,this._nodeHeight,this._gap,this._dpr);return this._textureAtlasNodes.push(a),a}},add:function(t,e,n){if(this._coords[t.id])return this._coords[t.id];var i=this._getCurrentNode().add(t,e,n);if(!i){var r=this._expand();if(!r)return;i=r.add(t,e,n)}return this._coords[t.id]=i,i},getCoordsScale:function(){var t=this._dpr;return[this._nodeWidth/this._canvas.width*t,this._nodeHeight/this._canvas.height*t]},getCoords:function(t){return this._coords[t]},dispose:function(){this._zr.dispose()}};const Na=Oa;function Fa(){}Fa.prototype={constructor:Fa,setScene:function(t){this._scene=t,this._skybox&&this._skybox.attachScene(this._scene)},initLight:function(t){this._lightRoot=t,this.mainLight=new ia.DirectionalLight({shadowBias:.005}),this.ambientLight=new ia.AmbientLight,t.add(this.mainLight),t.add(this.ambientLight)},dispose:function(){this._lightRoot&&(this._lightRoot.remove(this.mainLight),this._lightRoot.remove(this.ambientLight))},updateLight:function(t){var e=this.mainLight,n=this.ambientLight,i=t.getModel("light"),r=i.getModel("main"),o=i.getModel("ambient");e.intensity=r.get("intensity"),n.intensity=o.get("intensity"),e.color=ia.parseColor(r.get("color")).slice(0,3),n.color=ia.parseColor(o.get("color")).slice(0,3);var a=r.get("alpha")||0,s=r.get("beta")||0;e.position.setArray(ia.directionFromAlphaBeta(a,s)),e.lookAt(ia.Vector3.ZERO),e.castShadow=r.get("shadow"),e.shadowResolution=ia.getShadowResolution(r.get("shadowQuality"))},updateAmbientCubemap:function(t,e,n){var i=e.getModel("light.ambientCubemap"),r=i.get("texture");if(r){this._cubemapLightsCache=this._cubemapLightsCache||{};var o=this._cubemapLightsCache[r];if(!o){var a=this;o=this._cubemapLightsCache[r]=ia.createAmbientCubemap(i.option,t,n,(function(){a._isSkyboxFromAmbientCubemap&&a._skybox.setEnvironmentMap(o.specular.cubemap),n.getZr().refresh()}))}this._lightRoot.add(o.diffuse),this._lightRoot.add(o.specular),this._currentCubemapLights=o}else this._currentCubemapLights&&(this._lightRoot.remove(this._currentCubemapLights.diffuse),this._lightRoot.remove(this._currentCubemapLights.specular),this._currentCubemapLights=null)},updateSkybox:function(t,e,n){var r=e.get("environment"),o=this;var a=(o._skybox=o._skybox||new Br,o._skybox);if(r&&"none"!==r)if("auto"===r)if(this._isSkyboxFromAmbientCubemap=!0,this._currentCubemapLights){var s=this._currentCubemapLights.specular.cubemap;a.setEnvironmentMap(s),this._scene&&a.attachScene(this._scene),a.material.set("lod",3)}else this._skybox&&this._skybox.detachScene();else if("object"==typeof r&&r.colorStops||"string"==typeof r&&i.yW.parse(r)){this._isSkyboxFromAmbientCubemap=!1;var l=new ia.Texture2D({anisotropic:8,flipY:!1});a.setEnvironmentMap(l);var h=l.image=document.createElement("canvas");h.width=h.height=16;var c=h.getContext("2d"),u=new i.fA.Rect({shape:{x:0,y:0,width:16,height:16},style:{fill:r}});i.UU(c,u),a.attachScene(this._scene)}else{this._isSkyboxFromAmbientCubemap=!1;l=ia.loadTexture(r,n,{anisotropic:8,flipY:!1});a.setEnvironmentMap(l),a.attachScene(this._scene)}else this._skybox&&this._skybox.detachScene(this._scene),this._skybox=null;var d=e.coordinateSystem;if(this._skybox)if(!d||!d.viewGL||"auto"===r||r.match&&r.match(/.hdr$/))this._skybox.material.undefine("fragment","SRGB_DECODE");else{var p=d.viewGL.isLinearSpace()?"define":"undefine";this._skybox.material[p]("fragment","SRGB_DECODE")}}};const Ba=Fa;var za=Ea.vec3,Ga=Ci.extend((function(){return{segmentScale:1,useNativeLine:!0,attributes:{position:new Ci.Attribute("position","float",3,"POSITION"),normal:new Ci.Attribute("normal","float",3,"NORMAL"),color:new Ci.Attribute("color","float",4,"COLOR")}}}),{resetOffset:function(){this._vertexOffset=0,this._faceOffset=0},setQuadCount:function(t){var e=this.attributes,n=this.getQuadVertexCount()*t,i=this.getQuadTriangleCount()*t;this.vertexCount!==n&&(e.position.init(n),e.normal.init(n),e.color.init(n)),this.triangleCount!==i&&(this.indices=n>65535?new Uint32Array(3*i):new Uint16Array(3*i))},getQuadVertexCount:function(){return 4},getQuadTriangleCount:function(){return 2},addQuad:function(){var t=za.create(),e=za.create(),n=za.create(),i=[0,3,1,3,2,1];return function(r,o){var a=this.attributes.position,s=this.attributes.normal,l=this.attributes.color;za.sub(t,r[1],r[0]),za.sub(e,r[2],r[1]),za.cross(n,t,e),za.normalize(n,n);for(var h=0;h<4;h++)a.set(this._vertexOffset+h,r[h]),l.set(this._vertexOffset+h,o),s.set(this._vertexOffset+h,n);var c=3*this._faceOffset;for(h=0;h<6;h++)this.indices[c+h]=i[h]+this._vertexOffset;this._vertexOffset+=4,this._faceOffset+=2}}()});i.ZS.defaults(Ga.prototype,Ia);const Va=Ga;var ja=wo.firstNotNull,Ha={x:0,y:2,z:1};function Wa(t,e,n){this.rootNode=new ia.Node;var i=new ia.Mesh({geometry:new Pa({useNativeLine:!1}),material:e,castShadow:!1,ignorePicking:!0,$ignorePicking:!0,renderOrder:1}),r=new ia.Mesh({geometry:new Va,material:n,castShadow:!1,culling:!1,ignorePicking:!0,$ignorePicking:!0,renderOrder:0});this.rootNode.add(r),this.rootNode.add(i),this.faceInfo=t,this.plane=new ia.Plane,this.linesMesh=i,this.quadsMesh=r}Wa.prototype.update=function(t,e,n){var i=t.coordinateSystem,r=[i.getAxis(this.faceInfo[0]),i.getAxis(this.faceInfo[1])],o=this.linesMesh.geometry,a=this.quadsMesh.geometry;o.convertToDynamicArray(!0),a.convertToDynamicArray(!0),this._updateSplitLines(o,r,t,n),this._udpateSplitAreas(a,r,t,n),o.convertToTypedArray(),a.convertToTypedArray();var s=i.getAxis(this.faceInfo[2]);!function(t,e,n,i){var r=[0,0,0],o=i<0?n.getExtentMin():n.getExtentMax();r[Ha[n.dim]]=o,t.position.setArray(r),t.rotation.identity(),e.distance=-Math.abs(o),e.normal.set(0,0,0),"x"===n.dim?(t.rotation.rotateY(i*Math.PI/2),e.normal.x=-i):"z"===n.dim?(t.rotation.rotateX(-i*Math.PI/2),e.normal.y=-i):(i>0&&t.rotation.rotateY(Math.PI),e.normal.z=-i)}(this.rootNode,this.plane,s,this.faceInfo[3])},Wa.prototype._updateSplitLines=function(t,e,n,r){var o=r.getDevicePixelRatio();e.forEach((function(r,a){var s=r.model,l=e[1-a].getExtent();if(!r.scale.isBlank()){var h=s.getModel("splitLine",n.getModel("splitLine"));if(h.get("show")){var c=h.getModel("lineStyle"),u=c.get("color"),d=ja(c.get("opacity"),1),p=ja(c.get("width"),1);u=i.ZS.isArray(u)?u:[u];for(var f=r.getTicksCoords({tickModel:h}),g=0,m=0;m<f.length;m++){var v=f[m].coord,y=ia.parseColor(u[g%u.length]);y[3]*=d;var _=[0,0,0],x=[0,0,0];_[a]=x[a]=v,_[1-a]=l[0],x[1-a]=l[1],t.addLine(_,x,y,p*o),g++}}}}))},Wa.prototype._udpateSplitAreas=function(t,e,n,r){e.forEach((function(r,o){var a=r.model,s=e[1-o].getExtent();if(!r.scale.isBlank()){var l=a.getModel("splitArea",n.getModel("splitArea"));if(l.get("show")){var h=l.getModel("areaStyle"),c=h.get("color"),u=ja(h.get("opacity"),1);c=i.ZS.isArray(c)?c:[c];for(var d=r.getTicksCoords({tickModel:l,clamp:!0}),p=0,f=[0,0,0],g=[0,0,0],m=0;m<d.length;m++){var v=d[m].coord,y=[0,0,0],_=[0,0,0];if(y[o]=_[o]=v,y[1-o]=s[0],_[1-o]=s[1],0!==m){var x=ia.parseColor(c[p%c.length]);x[3]*=u,t.addQuad([f,y,_,g],x),f=y,g=_,p++}else f=y,g=_}}}}))};const Ua=Wa;var qa=[0,1,2,0,2,3],Xa=Ci.extend((function(){return{attributes:{position:new Ci.Attribute("position","float",3,"POSITION"),texcoord:new Ci.Attribute("texcoord","float",2,"TEXCOORD_0"),offset:new Ci.Attribute("offset","float",2),color:new Ci.Attribute("color","float",4,"COLOR")}}}),{resetOffset:function(){this._vertexOffset=0,this._faceOffset=0},setSpriteCount:function(t){this._spriteCount=t;var e=4*t,n=2*t;this.vertexCount!==e&&(this.attributes.position.init(e),this.attributes.offset.init(e),this.attributes.color.init(e)),this.triangleCount!==n&&(this.indices=e>65535?new Uint32Array(3*n):new Uint16Array(3*n))},setSpriteAlign:function(t,e,n,i,r){var o,a,s,l;switch(null==n&&(n="left"),null==i&&(i="top"),r=r||0,n){case"left":o=r,s=e[0]+r;break;case"center":case"middle":o=-e[0]/2,s=e[0]/2;break;case"right":o=-e[0]-r,s=-r}switch(i){case"bottom":a=r,l=e[1]+r;break;case"middle":a=-e[1]/2,l=e[1]/2;break;case"top":a=-e[1]-r,l=-r}var h=4*t,c=this.attributes.offset;c.set(h,[o,l]),c.set(h+1,[s,l]),c.set(h+2,[s,a]),c.set(h+3,[o,a])},addSprite:function(t,e,n,i,r,o){var a=this._vertexOffset;this.setSprite(this._vertexOffset/4,t,e,n,i,r,o);for(var s=0;s<qa.length;s++)this.indices[3*this._faceOffset+s]=qa[s]+a;return this._faceOffset+=2,this._vertexOffset+=4,a/4},setSprite:function(t,e,n,i,r,o,a){for(var s=4*t,l=this.attributes,h=0;h<4;h++)l.position.set(s+h,e);var c=l.texcoord;c.set(s,[i[0][0],i[0][1]]),c.set(s+1,[i[1][0],i[0][1]]),c.set(s+2,[i[1][0],i[1][1]]),c.set(s+3,[i[0][0],i[1][1]]),this.setSpriteAlign(t,n,r,o,a)}});i.ZS.defaults(Xa.prototype,Ia);const Ya=Xa;ia.Shader.import("@export ecgl.labels.vertex\n\nattribute vec3 position: POSITION;\nattribute vec2 texcoord: TEXCOORD_0;\nattribute vec2 offset;\n#ifdef VERTEX_COLOR\nattribute vec4 a_Color : COLOR;\nvarying vec4 v_Color;\n#endif\n\nuniform mat4 worldViewProjection : WORLDVIEWPROJECTION;\nuniform vec4 viewport : VIEWPORT;\n\nvarying vec2 v_Texcoord;\n\nvoid main()\n{\n vec4 proj = worldViewProjection * vec4(position, 1.0);\n\n vec2 screen = (proj.xy / abs(proj.w) + 1.0) * 0.5 * viewport.zw;\n\n screen += offset;\n\n proj.xy = (screen / viewport.zw - 0.5) * 2.0 * abs(proj.w);\n gl_Position = proj;\n#ifdef VERTEX_COLOR\n v_Color = a_Color;\n#endif\n v_Texcoord = texcoord;\n}\n@end\n\n\n@export ecgl.labels.fragment\n\nuniform vec3 color : [1.0, 1.0, 1.0];\nuniform float alpha : 1.0;\nuniform sampler2D textureAtlas;\nuniform vec2 uvScale: [1.0, 1.0];\n\n#ifdef VERTEX_COLOR\nvarying vec4 v_Color;\n#endif\nvarying float v_Miter;\n\nvarying vec2 v_Texcoord;\n\nvoid main()\n{\n gl_FragColor = vec4(color, alpha) * texture2D(textureAtlas, v_Texcoord * uvScale);\n#ifdef VERTEX_COLOR\n gl_FragColor *= v_Color;\n#endif\n}\n\n@end");const Za=ia.Mesh.extend((function(){return{geometry:new Ya({dynamic:!0}),material:new ia.Material({shader:ia.createShader("ecgl.labels"),transparent:!0,depthMask:!1}),culling:!1,castShadow:!1,ignorePicking:!0}}));var $a=wo.firstNotNull,Ka={x:0,y:2,z:1};function Ja(t,e){var n=new ia.Mesh({geometry:new Pa({useNativeLine:!1}),material:e,castShadow:!1,ignorePicking:!0,renderOrder:2}),i=new Za;i.material.depthMask=!1;var r=new ia.Node;r.add(n),r.add(i),this.rootNode=r,this.dim=t,this.linesMesh=n,this.labelsMesh=i,this.axisLineCoords=null,this.labelElements=[]}var Qa={x:"y",y:"x",z:"y"};Ja.prototype.update=function(t,e,n){var r=t.coordinateSystem.getAxis(this.dim),o=this.linesMesh.geometry,a=this.labelsMesh.geometry;o.convertToDynamicArray(!0),a.convertToDynamicArray(!0);var s=r.model,l=r.getExtent(),h=n.getDevicePixelRatio(),c=s.getModel("axisLine",t.getModel("axisLine")),u=s.getModel("axisTick",t.getModel("axisTick")),d=s.getModel("axisLabel",t.getModel("axisLabel")),p=c.get("lineStyle.color");if(c.get("show")){var f=c.getModel("lineStyle"),g=[0,0,0];(M=[0,0,0])[A=Ka[r.dim]]=l[0],g[A]=l[1],this.axisLineCoords=[M,g];var m=ia.parseColor(p),v=$a(f.get("width"),1),y=$a(f.get("opacity"),1);m[3]*=y,o.addLine(M,g,m,v*h)}if(u.get("show")){var _=u.getModel("lineStyle"),x=ia.parseColor($a(_.get("color"),p));v=$a(_.get("width"),1);x[3]*=$a(_.get("opacity"),1);for(var b=r.getTicksCoords(),w=u.get("length"),S=0;S<b.length;S++){var T=b[S].coord,M=[0,0,0],A=(g=[0,0,0],Ka[r.dim]),C=Ka[Qa[r.dim]];M[A]=g[A]=T,g[C]=w,o.addLine(M,g,x,v*h)}}this.labelElements=[];h=n.getDevicePixelRatio();if(d.get("show")){b=r.getTicksCoords();var I=s.get("data"),E=d.get("margin"),k=r.getViewLabels();for(S=0;S<k.length;S++){var L=k[S].tickValue,D=k[S].formattedLabel,P=k[S].rawLabel,R=(T=r.dataToCoord(L),[0,0,0]);A=Ka[r.dim],C=Ka[Qa[r.dim]];R[A]=R[A]=T,R[C]=E;var O=d;I&&I[L]&&I[L].textStyle&&(O=new i.Kx(I[L].textStyle,d,s.ecModel));var N=$a(O.get("color"),p),F=new i.fA.Text({style:(0,wa.VB)(O,{text:D,fill:"function"==typeof N?N("category"===r.type?P:"value"===r.type?L+"":L,S):N,verticalAlign:"top",align:"left"})}),B=e.add(F),z=F.getBoundingRect();a.addSprite(R,[z.width*h,z.height*h],B),this.labelElements.push(F)}}if(s.get("name")){var G=s.getModel("nameTextStyle"),V=(R=[0,0,0],A=Ka[r.dim],C=Ka[Qa[r.dim]],$a(G.get("color"),p)),j=G.get("borderColor");v=G.get("borderWidth");R[A]=R[A]=(l[0]+l[1])/2,R[C]=s.get("nameGap");F=new i.fA.Text({style:(0,wa.VB)(G,{text:s.get("name"),fill:V,stroke:j,lineWidth:v})}),B=e.add(F),z=F.getBoundingRect();a.addSprite(R,[z.width*h,z.height*h],B),F.__idx=this.labelElements.length,this.nameLabelElement=F}this.labelsMesh.material.set("textureAtlas",e.getTexture()),this.labelsMesh.material.set("uvScale",e.getCoordsScale()),o.convertToTypedArray(),a.convertToTypedArray()},Ja.prototype.setSpriteAlign=function(t,e,n){for(var i=n.getDevicePixelRatio(),r=this.labelsMesh.geometry,o=0;o<this.labelElements.length;o++){var a=this.labelElements[o].getBoundingRect();r.setSpriteAlign(o,[a.width*i,a.height*i],t,e)}var s=this.nameLabelElement;if(s){a=s.getBoundingRect();r.setSpriteAlign(s.__idx,[a.width*i,a.height*i],t,e),r.dirty()}this.textAlign=t,this.textVerticalAlign=e};const ts=Ja,es="@export ecgl.lines3D.vertex\n\nuniform mat4 worldViewProjection : WORLDVIEWPROJECTION;\n\nattribute vec3 position: POSITION;\nattribute vec4 a_Color : COLOR;\nvarying vec4 v_Color;\n\nvoid main()\n{\n gl_Position = worldViewProjection * vec4(position, 1.0);\n v_Color = a_Color;\n}\n\n@end\n\n@export ecgl.lines3D.fragment\n\nuniform vec4 color : [1.0, 1.0, 1.0, 1.0];\n\nvarying vec4 v_Color;\n\n@import clay.util.srgb\n\nvoid main()\n{\n#ifdef SRGB_DECODE\n gl_FragColor = sRGBToLinear(color * v_Color);\n#else\n gl_FragColor = color * v_Color;\n#endif\n}\n@end\n\n\n\n@export ecgl.lines3D.clipNear\n\nvec4 clipNear(vec4 p1, vec4 p2) {\n float n = (p1.w - near) / (p1.w - p2.w);\n return vec4(mix(p1.xy, p2.xy, n), -near, near);\n}\n\n@end\n\n@export ecgl.lines3D.expandLine\n#ifdef VERTEX_ANIMATION\n vec4 prevProj = worldViewProjection * vec4(mix(prevPositionPrev, positionPrev, percent), 1.0);\n vec4 currProj = worldViewProjection * vec4(mix(prevPosition, position, percent), 1.0);\n vec4 nextProj = worldViewProjection * vec4(mix(prevPositionNext, positionNext, percent), 1.0);\n#else\n vec4 prevProj = worldViewProjection * vec4(positionPrev, 1.0);\n vec4 currProj = worldViewProjection * vec4(position, 1.0);\n vec4 nextProj = worldViewProjection * vec4(positionNext, 1.0);\n#endif\n\n if (currProj.w < 0.0) {\n if (nextProj.w > 0.0) {\n currProj = clipNear(currProj, nextProj);\n }\n else if (prevProj.w > 0.0) {\n currProj = clipNear(currProj, prevProj);\n }\n }\n\n vec2 prevScreen = (prevProj.xy / abs(prevProj.w) + 1.0) * 0.5 * viewport.zw;\n vec2 currScreen = (currProj.xy / abs(currProj.w) + 1.0) * 0.5 * viewport.zw;\n vec2 nextScreen = (nextProj.xy / abs(nextProj.w) + 1.0) * 0.5 * viewport.zw;\n\n vec2 dir;\n float len = offset;\n if (position == positionPrev) {\n dir = normalize(nextScreen - currScreen);\n }\n else if (position == positionNext) {\n dir = normalize(currScreen - prevScreen);\n }\n else {\n vec2 dirA = normalize(currScreen - prevScreen);\n vec2 dirB = normalize(nextScreen - currScreen);\n\n vec2 tanget = normalize(dirA + dirB);\n\n float miter = 1.0 / max(dot(tanget, dirA), 0.5);\n len *= miter;\n dir = tanget;\n }\n\n dir = vec2(-dir.y, dir.x) * len;\n currScreen += dir;\n\n currProj.xy = (currScreen / viewport.zw - 0.5) * 2.0 * abs(currProj.w);\n@end\n\n\n@export ecgl.meshLines3D.vertex\n\nattribute vec3 position: POSITION;\nattribute vec3 positionPrev;\nattribute vec3 positionNext;\nattribute float offset;\nattribute vec4 a_Color : COLOR;\n\n#ifdef VERTEX_ANIMATION\nattribute vec3 prevPosition;\nattribute vec3 prevPositionPrev;\nattribute vec3 prevPositionNext;\nuniform float percent : 1.0;\n#endif\n\nuniform mat4 worldViewProjection : WORLDVIEWPROJECTION;\nuniform vec4 viewport : VIEWPORT;\nuniform float near : NEAR;\n\nvarying vec4 v_Color;\n\n@import ecgl.common.wireframe.vertexHeader\n\n@import ecgl.lines3D.clipNear\n\nvoid main()\n{\n @import ecgl.lines3D.expandLine\n\n gl_Position = currProj;\n\n v_Color = a_Color;\n\n @import ecgl.common.wireframe.vertexMain\n}\n@end\n\n\n@export ecgl.meshLines3D.fragment\n\nuniform vec4 color : [1.0, 1.0, 1.0, 1.0];\n\nvarying vec4 v_Color;\n\n@import ecgl.common.wireframe.fragmentHeader\n\n@import clay.util.srgb\n\nvoid main()\n{\n#ifdef SRGB_DECODE\n gl_FragColor = sRGBToLinear(color * v_Color);\n#else\n gl_FragColor = color * v_Color;\n#endif\n\n @import ecgl.common.wireframe.fragmentMain\n}\n\n@end";var ns=wo.firstNotNull;ia.Shader.import(es);var is={x:0,y:2,z:1};const rs=i.bR.extend({type:"grid3D",__ecgl__:!0,init:function(t,e){var n=new ia.Material({shader:ia.createShader("ecgl.color"),depthMask:!1,transparent:!0}),i=new ia.Material({shader:ia.createShader("ecgl.meshLines3D"),depthMask:!1,transparent:!0});n.define("fragment","DOUBLE_SIDED"),n.define("both","VERTEX_COLOR"),this.groupGL=new ia.Node,this._control=new Ca({zr:e.getZr()}),this._control.init(),this._faces=[["y","z","x",-1,"left"],["y","z","x",1,"right"],["x","y","z",-1,"bottom"],["x","y","z",1,"top"],["x","z","y",-1,"far"],["x","z","y",1,"near"]].map((function(t){var e=new Ua(t,i,n);return this.groupGL.add(e.rootNode),e}),this),this._axes=["x","y","z"].map((function(t){var e=new ts(t,i);return this.groupGL.add(e.rootNode),e}),this);var r=e.getDevicePixelRatio();this._axisLabelSurface=new Na({width:256,height:256,devicePixelRatio:r}),this._axisLabelSurface.onupdate=function(){e.getZr().refresh()},this._axisPointerLineMesh=new ia.Mesh({geometry:new Pa({useNativeLine:!1}),material:i,castShadow:!1,ignorePicking:!0,renderOrder:3}),this.groupGL.add(this._axisPointerLineMesh),this._axisPointerLabelsSurface=new Na({width:128,height:128,devicePixelRatio:r}),this._axisPointerLabelsMesh=new Za({ignorePicking:!0,renderOrder:4,castShadow:!1}),this._axisPointerLabelsMesh.material.set("textureAtlas",this._axisPointerLabelsSurface.getTexture()),this.groupGL.add(this._axisPointerLabelsMesh),this._lightRoot=new ia.Node,this._sceneHelper=new Ba,this._sceneHelper.initLight(this._lightRoot)},render:function(t,e,n){this._model=t,this._api=n;var i=t.coordinateSystem;i.viewGL.add(this._lightRoot),t.get("show")?i.viewGL.add(this.groupGL):i.viewGL.remove(this.groupGL);var r=this._control;r.setViewGL(i.viewGL);var o=t.getModel("viewControl");r.setFromViewControlModel(o,0),this._axisLabelSurface.clear(),r.off("update"),t.get("show")&&(this._faces.forEach((function(i){i.update(t,e,n)}),this),this._axes.forEach((function(e){e.update(t,this._axisLabelSurface,n)}),this)),r.on("update",this._onCameraChange.bind(this,t,n),this),this._sceneHelper.setScene(i.viewGL.scene),this._sceneHelper.updateLight(t),i.viewGL.setPostEffect(t.getModel("postEffect"),n),i.viewGL.setTemporalSuperSampling(t.getModel("temporalSuperSampling")),this._initMouseHandler(t)},afterRender:function(t,e,n,i){var r=i.renderer;this._sceneHelper.updateAmbientCubemap(r,t,n),this._sceneHelper.updateSkybox(r,t,n)},showAxisPointer:function(t,e,n,i){this._doShowAxisPointer(),this._updateAxisPointer(i.value)},hideAxisPointer:function(t,e,n,i){this._doHideAxisPointer()},_initMouseHandler:function(t){var e=t.coordinateSystem.viewGL;t.get("show")&&t.get("axisPointer.show")?e.on("mousemove",this._updateAxisPointerOnMousePosition,this):e.off("mousemove",this._updateAxisPointerOnMousePosition)},_updateAxisPointerOnMousePosition:function(t){if(!t.target){for(var e,n=this._model.coordinateSystem,i=n.viewGL,r=i.castRay(t.offsetX,t.offsetY,new ia.Ray),o=0;o<this._faces.length;o++){var a=this._faces[o];if(!a.rootNode.invisible){a.plane.normal.dot(i.camera.worldTransform.z)<0&&a.plane.normal.negate();var s=r.intersectPlane(a.plane);if(s){var l=n.getAxis(a.faceInfo[0]),h=n.getAxis(a.faceInfo[1]),c=is[a.faceInfo[0]],u=is[a.faceInfo[1]];l.contain(s.array[c])&&h.contain(s.array[u])&&(e=s)}}}if(e){var d=n.pointToData(e.array,[],!0);this._updateAxisPointer(d),this._doShowAxisPointer()}else this._doHideAxisPointer()}},_onCameraChange:function(t,e){t.get("show")&&(this._updateFaceVisibility(),this._updateAxisLinePosition());var n=this._control;e.dispatchAction({type:"grid3DChangeCamera",alpha:n.getAlpha(),beta:n.getBeta(),distance:n.getDistance(),center:n.getCenter(),from:this.uid,grid3DId:t.id})},_updateFaceVisibility:function(){var t=this._control.getCamera(),e=new ia.Vector3;t.update();for(var n=0;n<this._faces.length/2;n++){for(var i=[],r=0;r<2;r++){this._faces[2*n+r].rootNode.getWorldPosition(e),e.transformMat4(t.viewMatrix),i[r]=e.z}var o=i[0]>i[1]?0:1,a=this._faces[2*n+o],s=this._faces[2*n+1-o];a.rootNode.invisible=!0,s.rootNode.invisible=!1}},_updateAxisLinePosition:function(){var t=this._model.coordinateSystem,e=t.getAxis("x"),n=t.getAxis("y"),i=t.getAxis("z"),r=i.getExtentMax(),o=i.getExtentMin(),a=e.getExtentMin(),s=e.getExtentMax(),l=n.getExtentMax(),h=n.getExtentMin(),c=this._axes[0].rootNode,u=this._axes[1].rootNode,d=this._axes[2].rootNode,p=this._faces,f=p[4].rootNode.invisible?h:l,g=p[2].rootNode.invisible?r:o,m=p[0].rootNode.invisible?a:s,v=p[2].rootNode.invisible?r:o,y=p[0].rootNode.invisible?s:a,_=p[4].rootNode.invisible?h:l;c.rotation.identity(),u.rotation.identity(),d.rotation.identity(),p[4].rootNode.invisible&&(this._axes[0].flipped=!0,c.rotation.rotateX(Math.PI)),p[0].rootNode.invisible&&(this._axes[1].flipped=!0,u.rotation.rotateZ(Math.PI)),p[4].rootNode.invisible&&(this._axes[2].flipped=!0,d.rotation.rotateY(Math.PI)),c.position.set(0,g,f),u.position.set(m,v,0),d.position.set(y,0,_),c.update(),u.update(),d.update(),this._updateAxisLabelAlign()},_updateAxisLabelAlign:function(){var t=this._control.getCamera(),e=[new ia.Vector4,new ia.Vector4],n=new ia.Vector4;this.groupGL.getWorldPosition(n),n.w=1,n.transformMat4(t.viewMatrix).transformMat4(t.projectionMatrix),n.x/=n.w,n.y/=n.w,this._axes.forEach((function(i){for(var r=i.axisLineCoords,o=(i.labelsMesh.geometry,0);o<e.length;o++)e[o].setArray(r[o]),e[o].w=1,e[o].transformMat4(i.rootNode.worldTransform).transformMat4(t.viewMatrix).transformMat4(t.projectionMatrix),e[o].x/=e[o].w,e[o].y/=e[o].w;var a,s,l=e[1].x-e[0].x,h=e[1].y-e[0].y,c=(e[1].x+e[0].x)/2,u=(e[1].y+e[0].y)/2;Math.abs(h/l)<.5?(a="center",s=u>n.y?"bottom":"top"):(s="middle",a=c>n.x?"left":"right"),i.setSpriteAlign(a,s,this._api)}),this)},_doShowAxisPointer:function(){this._axisPointerLineMesh.invisible&&(this._axisPointerLineMesh.invisible=!1,this._axisPointerLabelsMesh.invisible=!1,this._api.getZr().refresh())},_doHideAxisPointer:function(){this._axisPointerLineMesh.invisible||(this._axisPointerLineMesh.invisible=!0,this._axisPointerLabelsMesh.invisible=!0,this._api.getZr().refresh())},_updateAxisPointer:function(t){var e=this._model.coordinateSystem,n=e.dataToPoint(t),i=this._axisPointerLineMesh.geometry,r=this._model.getModel("axisPointer"),o=this._api.getDevicePixelRatio();function a(t){return wo.firstNotNull(t.model.get("axisPointer.show"),r.get("show"))}function s(t){var e=t.model.getModel("axisPointer",r).getModel("lineStyle"),n=ia.parseColor(e.get("color")),i=ns(e.get("width"),1),o=ns(e.get("opacity"),1);return n[3]*=o,{color:n,lineWidth:i}}i.convertToDynamicArray(!0);for(var l=0;l<this._faces.length;l++){var h=this._faces[l];if(!h.rootNode.invisible){for(var c=h.faceInfo,u=c[3]<0?e.getAxis(c[2]).getExtentMin():e.getAxis(c[2]).getExtentMax(),d=is[c[2]],p=0;p<2;p++){var f=c[p],g=c[1-p],m=e.getAxis(f),v=e.getAxis(g);if(a(m)){var y=is[f],_=is[g];(w=[0,0,0])[y]=(b=[0,0,0])[y]=n[y],w[d]=b[d]=u,w[_]=v.getExtentMin(),b[_]=v.getExtentMax();var x=s(m);i.addLine(w,b,x.color,x.lineWidth*o)}}if(a(e.getAxis(c[2]))){var b,w=n.slice();(b=n.slice())[d]=u;x=s(e.getAxis(c[2]));i.addLine(w,b,x.color,x.lineWidth*o)}}}i.convertToTypedArray(),this._updateAxisPointerLabelsMesh(t),this._api.getZr().refresh()},_updateAxisPointerLabelsMesh:function(t){var e=this._model,n=this._axisPointerLabelsMesh,r=this._axisPointerLabelsSurface,o=e.coordinateSystem,a=e.getModel("axisPointer");n.geometry.convertToDynamicArray(!0),r.clear();var s={x:"y",y:"x",z:"y"};this._axes.forEach((function(e,l){var h=o.getAxis(e.dim),c=h.model.getModel("axisPointer",a),u=c.getModel("label"),d=c.get("lineStyle.color");if(u.get("show")&&c.get("show")){var p=t[l],f=u.get("formatter"),g=h.scale.getLabel({value:p});if(null!=f)g=f(g,t);else if("interval"===h.scale.type||"log"===h.scale.type){var m=i.ai.getPrecisionSafe(h.scale.getTicks()[0]);g=p.toFixed(m+2)}var v=u.get("color"),y=new i.fA.Text({style:(0,wa.VB)(u,{text:g,fill:v||d,align:"left",verticalAlign:"top"})}),_=r.add(y),x=y.getBoundingRect(),b=this._api.getDevicePixelRatio(),w=e.rootNode.position.toArray();w[is[s[e.dim]]]+=(e.flipped?-1:1)*u.get("margin"),w[is[e.dim]]=h.dataToCoord(t[l]),n.geometry.addSprite(w,[x.width*b,x.height*b],_,e.textAlign,e.textVerticalAlign)}}),this),r.getZr().refreshImmediately(),n.material.set("uvScale",r.getCoordsScale()),n.geometry.convertToTypedArray()},dispose:function(){this.groupGL.removeAll(),this._control.dispose(),this._axisLabelSurface.dispose(),this._axisPointerLabelsSurface.dispose()}});var os=n(5202);function as(t){os.A.call(this,t),this.type="cartesian3D",this.dimensions=["x","y","z"],this.size=[0,0,0]}as.prototype={constructor:as,model:null,containPoint:function(t){return this.getAxis("x").contain(t[0])&&this.getAxis("y").contain(t[2])&&this.getAxis("z").contain(t[1])},containData:function(t){return this.getAxis("x").containData(t[0])&&this.getAxis("y").containData(t[1])&&this.getAxis("z").containData(t[2])},dataToPoint:function(t,e,n){return(e=e||[])[0]=this.getAxis("x").dataToCoord(t[0],n),e[2]=this.getAxis("y").dataToCoord(t[1],n),e[1]=this.getAxis("z").dataToCoord(t[2],n),e},pointToData:function(t,e,n){return(e=e||[])[0]=this.getAxis("x").coordToData(t[0],n),e[1]=this.getAxis("y").coordToData(t[2],n),e[2]=this.getAxis("z").coordToData(t[1],n),e}},i.ZS.inherits(as,os.A);const ss=as;function ls(t,e,n){i._0.call(this,t,e,n)}ls.prototype={constructor:ls,getExtentMin:function(){var t=this._extent;return Math.min(t[0],t[1])},getExtentMax:function(){var t=this._extent;return Math.max(t[0],t[1])},calculateCategoryInterval:function(){return Math.floor(this.scale.count()/8)}},i.ZS.inherits(ls,i._0);const hs=ls;var cs=n(5872),us=function(){this._pool={},this._allocatedTextures=[]};us.prototype={constructor:us,get:function(t){var e=fs(t);this._pool.hasOwnProperty(e)||(this._pool[e]=[]);var n=this._pool[e];if(!n.length){var i=new fi(t);return this._allocatedTextures.push(i),i}return n.pop()},put:function(t){var e=fs(t);this._pool.hasOwnProperty(e)||(this._pool[e]=[]),this._pool[e].push(t)},clear:function(t){for(var e=0;e<this._allocatedTextures.length;e++)this._allocatedTextures[e].dispose(t);this._pool={},this._allocatedTextures=[]}};var ds={width:512,height:512,type:V,format:$,wrapS:lt,wrapT:lt,minFilter:rt,magFilter:tt,useMipmap:!0,anisotropic:1,flipY:!0,unpackAlignment:4,premultiplyAlpha:!1},ps=Object.keys(ds);function fs(t){m.defaultsWithPropList(t,ds,ps),function(t){var e=(n=t.width,i=t.height,!(n&n-1||i&i-1));var n,i;t.format===X&&(t.useMipmap=!1);e&&t.useMipmap||(t.minFilter==et||t.minFilter==it?t.minFilter=Q:t.minFilter!=rt&&t.minFilter!=nt||(t.minFilter=tt));e||(t.wrapS=lt,t.wrapT=lt)}(t);for(var e="",n=0;n<ps.length;n++){e+=t[ps[n]].toString()}return e}const gs=us;var ms=["px","nx","py","ny","pz","nz"];function vs(t,e,n){return"alphaMap"===n?t.material.get("diffuseMap"):"alphaCutoff"===n?t.material.isDefined("fragment","ALPHA_TEST")&&t.material.get("diffuseMap")&&t.material.get("alphaCutoff")||0:"uvRepeat"===n?t.material.get("uvRepeat"):"uvOffset"===n?t.material.get("uvOffset"):e.get(n)}function ys(t,e){var n=t.material,i=e.material;return n.get("diffuseMap")!==i.get("diffuseMap")||(n.get("alphaCutoff")||0)!==(i.get("alphaCutoff")||0)}Ce.import("@export clay.sm.depth.vertex\nuniform mat4 worldViewProjection : WORLDVIEWPROJECTION;\nattribute vec3 position : POSITION;\nattribute vec2 texcoord : TEXCOORD_0;\nuniform vec2 uvRepeat = vec2(1.0, 1.0);\nuniform vec2 uvOffset = vec2(0.0, 0.0);\n@import clay.chunk.skinning_header\n@import clay.chunk.instancing_header\nvarying vec4 v_ViewPosition;\nvarying vec2 v_Texcoord;\nvoid main(){\n vec4 P = vec4(position, 1.0);\n#ifdef SKINNING\n @import clay.chunk.skin_matrix\n P = skinMatrixWS * P;\n#endif\n#ifdef INSTANCING\n @import clay.chunk.instancing_matrix\n P = instanceMat * P;\n#endif\n v_ViewPosition = worldViewProjection * P;\n gl_Position = v_ViewPosition;\n v_Texcoord = texcoord * uvRepeat + uvOffset;\n}\n@end\n@export clay.sm.depth.fragment\nvarying vec4 v_ViewPosition;\nvarying vec2 v_Texcoord;\nuniform float bias : 0.001;\nuniform float slopeScale : 1.0;\nuniform sampler2D alphaMap;\nuniform float alphaCutoff: 0.0;\n@import clay.util.encode_float\nvoid main(){\n float depth = v_ViewPosition.z / v_ViewPosition.w;\n if (alphaCutoff > 0.0) {\n if (texture2D(alphaMap, v_Texcoord).a <= alphaCutoff) {\n discard;\n }\n }\n#ifdef USE_VSM\n depth = depth * 0.5 + 0.5;\n float moment1 = depth;\n float moment2 = depth * depth;\n #ifdef SUPPORT_STANDARD_DERIVATIVES\n float dx = dFdx(depth);\n float dy = dFdy(depth);\n moment2 += 0.25*(dx*dx+dy*dy);\n #endif\n gl_FragColor = vec4(moment1, moment2, 0.0, 1.0);\n#else\n #ifdef SUPPORT_STANDARD_DERIVATIVES\n float dx = dFdx(depth);\n float dy = dFdy(depth);\n depth += sqrt(dx*dx + dy*dy) * slopeScale + bias;\n #else\n depth += bias;\n #endif\n gl_FragColor = encodeFloat(depth * 0.5 + 0.5);\n#endif\n}\n@end\n@export clay.sm.debug_depth\nuniform sampler2D depthMap;\nvarying vec2 v_Texcoord;\n@import clay.util.decode_float\nvoid main() {\n vec4 tex = texture2D(depthMap, v_Texcoord);\n#ifdef USE_VSM\n gl_FragColor = vec4(tex.rgb, 1.0);\n#else\n float depth = decodeFloat(tex);\n gl_FragColor = vec4(depth, depth, depth, 1.0);\n#endif\n}\n@end\n@export clay.sm.distance.vertex\nuniform mat4 worldViewProjection : WORLDVIEWPROJECTION;\nuniform mat4 world : WORLD;\nattribute vec3 position : POSITION;\n@import clay.chunk.skinning_header\nvarying vec3 v_WorldPosition;\nvoid main (){\n vec4 P = vec4(position, 1.0);\n#ifdef SKINNING\n @import clay.chunk.skin_matrix\n P = skinMatrixWS * P;\n#endif\n#ifdef INSTANCING\n @import clay.chunk.instancing_matrix\n P = instanceMat * P;\n#endif\n gl_Position = worldViewProjection * P;\n v_WorldPosition = (world * P).xyz;\n}\n@end\n@export clay.sm.distance.fragment\nuniform vec3 lightPosition;\nuniform float range : 100;\nvarying vec3 v_WorldPosition;\n@import clay.util.encode_float\nvoid main(){\n float dist = distance(lightPosition, v_WorldPosition);\n#ifdef USE_VSM\n gl_FragColor = vec4(dist, dist * dist, 0.0, 0.0);\n#else\n dist = dist / range;\n gl_FragColor = encodeFloat(dist);\n#endif\n}\n@end\n@export clay.plugin.shadow_map_common\n@import clay.util.decode_float\nfloat tapShadowMap(sampler2D map, vec2 uv, float z){\n vec4 tex = texture2D(map, uv);\n return step(z, decodeFloat(tex) * 2.0 - 1.0);\n}\nfloat pcf(sampler2D map, vec2 uv, float z, float textureSize, vec2 scale) {\n float shadowContrib = tapShadowMap(map, uv, z);\n vec2 offset = vec2(1.0 / textureSize) * scale;\n#ifdef PCF_KERNEL_SIZE\n for (int _idx_ = 0; _idx_ < PCF_KERNEL_SIZE; _idx_++) {{\n shadowContrib += tapShadowMap(map, uv + offset * pcfKernel[_idx_], z);\n }}\n return shadowContrib / float(PCF_KERNEL_SIZE + 1);\n#else\n shadowContrib += tapShadowMap(map, uv+vec2(offset.x, 0.0), z);\n shadowContrib += tapShadowMap(map, uv+vec2(offset.x, offset.y), z);\n shadowContrib += tapShadowMap(map, uv+vec2(-offset.x, offset.y), z);\n shadowContrib += tapShadowMap(map, uv+vec2(0.0, offset.y), z);\n shadowContrib += tapShadowMap(map, uv+vec2(-offset.x, 0.0), z);\n shadowContrib += tapShadowMap(map, uv+vec2(-offset.x, -offset.y), z);\n shadowContrib += tapShadowMap(map, uv+vec2(offset.x, -offset.y), z);\n shadowContrib += tapShadowMap(map, uv+vec2(0.0, -offset.y), z);\n return shadowContrib / 9.0;\n#endif\n}\nfloat pcf(sampler2D map, vec2 uv, float z, float textureSize) {\n return pcf(map, uv, z, textureSize, vec2(1.0));\n}\nfloat chebyshevUpperBound(vec2 moments, float z){\n float p = 0.0;\n z = z * 0.5 + 0.5;\n if (z <= moments.x) {\n p = 1.0;\n }\n float variance = moments.y - moments.x * moments.x;\n variance = max(variance, 0.0000001);\n float mD = moments.x - z;\n float pMax = variance / (variance + mD * mD);\n pMax = clamp((pMax-0.4)/(1.0-0.4), 0.0, 1.0);\n return max(p, pMax);\n}\nfloat computeShadowContrib(\n sampler2D map, mat4 lightVPM, vec3 position, float textureSize, vec2 scale, vec2 offset\n) {\n vec4 posInLightSpace = lightVPM * vec4(position, 1.0);\n posInLightSpace.xyz /= posInLightSpace.w;\n float z = posInLightSpace.z;\n if(all(greaterThan(posInLightSpace.xyz, vec3(-0.99, -0.99, -1.0))) &&\n all(lessThan(posInLightSpace.xyz, vec3(0.99, 0.99, 1.0)))){\n vec2 uv = (posInLightSpace.xy+1.0) / 2.0;\n #ifdef USE_VSM\n vec2 moments = texture2D(map, uv * scale + offset).xy;\n return chebyshevUpperBound(moments, z);\n #else\n return pcf(map, uv * scale + offset, z, textureSize, scale);\n #endif\n }\n return 1.0;\n}\nfloat computeShadowContrib(sampler2D map, mat4 lightVPM, vec3 position, float textureSize) {\n return computeShadowContrib(map, lightVPM, position, textureSize, vec2(1.0), vec2(0.0));\n}\nfloat computeShadowContribOmni(samplerCube map, vec3 direction, float range)\n{\n float dist = length(direction);\n vec4 shadowTex = textureCube(map, direction);\n#ifdef USE_VSM\n vec2 moments = shadowTex.xy;\n float variance = moments.y - moments.x * moments.x;\n float mD = moments.x - dist;\n float p = variance / (variance + mD * mD);\n if(moments.x + 0.001 < dist){\n return clamp(p, 0.0, 1.0);\n }else{\n return 1.0;\n }\n#else\n return step(dist, (decodeFloat(shadowTex) + 0.0002) * range);\n#endif\n}\n@end\n@export clay.plugin.compute_shadow_map\n#if defined(SPOT_LIGHT_SHADOWMAP_COUNT) || defined(DIRECTIONAL_LIGHT_SHADOWMAP_COUNT) || defined(POINT_LIGHT_SHADOWMAP_COUNT)\n#ifdef SPOT_LIGHT_SHADOWMAP_COUNT\nuniform sampler2D spotLightShadowMaps[SPOT_LIGHT_SHADOWMAP_COUNT]:unconfigurable;\nuniform mat4 spotLightMatrices[SPOT_LIGHT_SHADOWMAP_COUNT]:unconfigurable;\nuniform float spotLightShadowMapSizes[SPOT_LIGHT_SHADOWMAP_COUNT]:unconfigurable;\n#endif\n#ifdef DIRECTIONAL_LIGHT_SHADOWMAP_COUNT\n#if defined(SHADOW_CASCADE)\nuniform sampler2D directionalLightShadowMaps[1]:unconfigurable;\nuniform mat4 directionalLightMatrices[SHADOW_CASCADE]:unconfigurable;\nuniform float directionalLightShadowMapSizes[1]:unconfigurable;\nuniform float shadowCascadeClipsNear[SHADOW_CASCADE]:unconfigurable;\nuniform float shadowCascadeClipsFar[SHADOW_CASCADE]:unconfigurable;\n#else\nuniform sampler2D directionalLightShadowMaps[DIRECTIONAL_LIGHT_SHADOWMAP_COUNT]:unconfigurable;\nuniform mat4 directionalLightMatrices[DIRECTIONAL_LIGHT_SHADOWMAP_COUNT]:unconfigurable;\nuniform float directionalLightShadowMapSizes[DIRECTIONAL_LIGHT_SHADOWMAP_COUNT]:unconfigurable;\n#endif\n#endif\n#ifdef POINT_LIGHT_SHADOWMAP_COUNT\nuniform samplerCube pointLightShadowMaps[POINT_LIGHT_SHADOWMAP_COUNT]:unconfigurable;\n#endif\nuniform bool shadowEnabled : true;\n#ifdef PCF_KERNEL_SIZE\nuniform vec2 pcfKernel[PCF_KERNEL_SIZE];\n#endif\n@import clay.plugin.shadow_map_common\n#if defined(SPOT_LIGHT_SHADOWMAP_COUNT)\nvoid computeShadowOfSpotLights(vec3 position, inout float shadowContribs[SPOT_LIGHT_COUNT] ) {\n float shadowContrib;\n for(int _idx_ = 0; _idx_ < SPOT_LIGHT_SHADOWMAP_COUNT; _idx_++) {{\n shadowContrib = computeShadowContrib(\n spotLightShadowMaps[_idx_], spotLightMatrices[_idx_], position,\n spotLightShadowMapSizes[_idx_]\n );\n shadowContribs[_idx_] = shadowContrib;\n }}\n for(int _idx_ = SPOT_LIGHT_SHADOWMAP_COUNT; _idx_ < SPOT_LIGHT_COUNT; _idx_++){{\n shadowContribs[_idx_] = 1.0;\n }}\n}\n#endif\n#if defined(DIRECTIONAL_LIGHT_SHADOWMAP_COUNT)\n#ifdef SHADOW_CASCADE\nvoid computeShadowOfDirectionalLights(vec3 position, inout float shadowContribs[DIRECTIONAL_LIGHT_COUNT]){\n float depth = (2.0 * gl_FragCoord.z - gl_DepthRange.near - gl_DepthRange.far)\n / (gl_DepthRange.far - gl_DepthRange.near);\n float shadowContrib;\n shadowContribs[0] = 1.0;\n for (int _idx_ = 0; _idx_ < SHADOW_CASCADE; _idx_++) {{\n if (\n depth >= shadowCascadeClipsNear[_idx_] &&\n depth <= shadowCascadeClipsFar[_idx_]\n ) {\n shadowContrib = computeShadowContrib(\n directionalLightShadowMaps[0], directionalLightMatrices[_idx_], position,\n directionalLightShadowMapSizes[0],\n vec2(1.0 / float(SHADOW_CASCADE), 1.0),\n vec2(float(_idx_) / float(SHADOW_CASCADE), 0.0)\n );\n shadowContribs[0] = shadowContrib;\n }\n }}\n for(int _idx_ = DIRECTIONAL_LIGHT_SHADOWMAP_COUNT; _idx_ < DIRECTIONAL_LIGHT_COUNT; _idx_++) {{\n shadowContribs[_idx_] = 1.0;\n }}\n}\n#else\nvoid computeShadowOfDirectionalLights(vec3 position, inout float shadowContribs[DIRECTIONAL_LIGHT_COUNT]){\n float shadowContrib;\n for(int _idx_ = 0; _idx_ < DIRECTIONAL_LIGHT_SHADOWMAP_COUNT; _idx_++) {{\n shadowContrib = computeShadowContrib(\n directionalLightShadowMaps[_idx_], directionalLightMatrices[_idx_], position,\n directionalLightShadowMapSizes[_idx_]\n );\n shadowContribs[_idx_] = shadowContrib;\n }}\n for(int _idx_ = DIRECTIONAL_LIGHT_SHADOWMAP_COUNT; _idx_ < DIRECTIONAL_LIGHT_COUNT; _idx_++) {{\n shadowContribs[_idx_] = 1.0;\n }}\n}\n#endif\n#endif\n#if defined(POINT_LIGHT_SHADOWMAP_COUNT)\nvoid computeShadowOfPointLights(vec3 position, inout float shadowContribs[POINT_LIGHT_COUNT] ){\n vec3 lightPosition;\n vec3 direction;\n for(int _idx_ = 0; _idx_ < POINT_LIGHT_SHADOWMAP_COUNT; _idx_++) {{\n lightPosition = pointLightPosition[_idx_];\n direction = position - lightPosition;\n shadowContribs[_idx_] = computeShadowContribOmni(pointLightShadowMaps[_idx_], direction, pointLightRange[_idx_]);\n }}\n for(int _idx_ = POINT_LIGHT_SHADOWMAP_COUNT; _idx_ < POINT_LIGHT_COUNT; _idx_++) {{\n shadowContribs[_idx_] = 1.0;\n }}\n}\n#endif\n#endif\n@end");var _s,xs,bs,ws,Ss,Ts,Ms,As=y.extend((function(){return{softShadow:As.PCF,shadowBlur:1,lightFrustumBias:"auto",kernelPCF:new Float32Array([1,0,1,1,-1,1,0,1,-1,0,-1,-1,1,-1,0,-1]),precision:"highp",_lastRenderNotCastShadow:!1,_frameBuffer:new Ir,_textures:{},_shadowMapNumber:{POINT_LIGHT:0,DIRECTIONAL_LIGHT:0,SPOT_LIGHT:0},_depthMaterials:{},_distanceMaterials:{},_receivers:[],_lightsCastShadow:[],_lightCameras:{},_lightMaterials:{},_texturePool:new gs}}),(function(){this._gaussianPassH=new lo({fragment:Ce.source("clay.compositor.gaussian_blur")}),this._gaussianPassV=new lo({fragment:Ce.source("clay.compositor.gaussian_blur")}),this._gaussianPassH.setUniform("blurSize",this.shadowBlur),this._gaussianPassH.setUniform("blurDir",0),this._gaussianPassV.setUniform("blurSize",this.shadowBlur),this._gaussianPassV.setUniform("blurDir",1),this._outputDepthPass=new lo({fragment:Ce.source("clay.sm.debug_depth")})}),{render:function(t,e,n,i){n||(n=e.getMainCamera()),this.trigger("beforerender",this,t,e,n),this._renderShadowPass(t,e,n,i),this.trigger("afterrender",this,t,e,n)},renderDebug:function(t,e){t.saveClear();var n=t.viewport,i=0,r=e||n.width/4,o=r;for(var a in this.softShadow===As.VSM?this._outputDepthPass.material.define("fragment","USE_VSM"):this._outputDepthPass.material.undefine("fragment","USE_VSM"),this._textures){var s=this._textures[a];t.setViewport(i,0,r*s.width/s.height,o),this._outputDepthPass.setUniform("depthMap",s),this._outputDepthPass.render(t),i+=r*s.width/s.height}t.setViewport(n),t.restoreClear()},_updateReceivers:function(t,e){if(e.receiveShadow?(this._receivers.push(e),e.material.set("shadowEnabled",1),e.material.set("pcfKernel",this.kernelPCF)):e.material.set("shadowEnabled",0),this.softShadow===As.VSM)e.material.define("fragment","USE_VSM"),e.material.undefine("fragment","PCF_KERNEL_SIZE");else{e.material.undefine("fragment","USE_VSM");var n=this.kernelPCF;n&&n.length?e.material.define("fragment","PCF_KERNEL_SIZE",n.length/2):e.material.undefine("fragment","PCF_KERNEL_SIZE")}},_update:function(t,e){var n=this;e.traverse((function(e){e.isRenderable()&&n._updateReceivers(t,e)}));for(var i=0;i<e.lights.length;i++){var r=e.lights[i];r.castShadow&&!r.invisible&&this._lightsCastShadow.push(r)}},_renderShadowPass:function(t,e,n,i){for(var r in this._shadowMapNumber)this._shadowMapNumber[r]=0;this._lightsCastShadow.length=0,this._receivers.length=0;var o=t.gl;if(i||e.update(),n&&n.update(),e.updateLights(),this._update(t,e),this._lightsCastShadow.length||!this._lastRenderNotCastShadow){this._lastRenderNotCastShadow=0===this._lightsCastShadow,o.enable(o.DEPTH_TEST),o.depthMask(!0),o.disable(o.BLEND),o.clearColor(1,1,1,1);for(var a,s=[],l=[],h=[],c=[],u=[],d=[],p=0;p<this._lightsCastShadow.length;p++){var f=this._lightsCastShadow[p];if("DIRECTIONAL_LIGHT"===f.type){if(a){console.warn("Only one direectional light supported with shadow cascade");continue}if(f.shadowCascade>4){console.warn("Support at most 4 cascade");continue}f.shadowCascade>1&&(a=f),this.renderDirectionalLightShadow(t,e,n,f,u,c,h)}else"SPOT_LIGHT"===f.type?this.renderSpotLightShadow(t,e,f,l,s):"POINT_LIGHT"===f.type&&this.renderPointLightShadow(t,e,f,d);this._shadowMapNumber[f.type]++}for(var g in this._shadowMapNumber){var m=this._shadowMapNumber[g],v=g+"_SHADOWMAP_COUNT";for(p=0;p<this._receivers.length;p++){(y=this._receivers[p].material).fragmentDefines[v]!==m&&(m>0?y.define("fragment",v,m):y.isDefined("fragment",v)&&y.undefine("fragment",v))}}for(p=0;p<this._receivers.length;p++){var y=this._receivers[p].material;a?y.define("fragment","SHADOW_CASCADE",a.shadowCascade):y.undefine("fragment","SHADOW_CASCADE")}var _=e.shadowUniforms;if(h.length>0){var x=h.map(T);if(_.directionalLightShadowMaps={value:h,type:"tv"},_.directionalLightMatrices={value:c,type:"m4v"},_.directionalLightShadowMapSizes={value:x,type:"1fv"},a){var b=u.slice(),w=u.slice();b.pop(),w.shift(),b.reverse(),w.reverse(),c.reverse(),_.shadowCascadeClipsNear={value:b,type:"1fv"},_.shadowCascadeClipsFar={value:w,type:"1fv"}}}if(s.length>0){var S=s.map(T);(_=e.shadowUniforms).spotLightShadowMaps={value:s,type:"tv"},_.spotLightMatrices={value:l,type:"m4v"},_.spotLightShadowMapSizes={value:S,type:"1fv"}}d.length>0&&(_.pointLightShadowMaps={value:d,type:"tv"})}function T(t){return t.height}},renderDirectionalLightShadow:(_s=new Zi,xs=new An,bs=new Gn,ws=new An,Ss=new An,Ts=new An,Ms=new An,function(t,e,n,i,r,o,a){var s=this._getDepthMaterial(i),l={getMaterial:function(t){return t.shadowDepthMaterial||s},isMaterialChanged:ys,getUniform:vs,ifRender:function(t){return t.castShadow},sortCompare:Ue.opaqueSortCompare};if(!e.viewBoundingBoxLastFrame.isFinite()){var h=e.getBoundingBox();e.viewBoundingBoxLastFrame.copy(h).applyTransform(n.viewMatrix)}var c=Math.min(-e.viewBoundingBoxLastFrame.min.z,n.far),u=Math.max(-e.viewBoundingBoxLastFrame.max.z,n.near),d=this._getDirectionalLightCamera(i,e,n),p=Ts.array;Ms.copy(d.projectionMatrix),ke.invert(Ss.array,d.worldTransform.array),ke.multiply(Ss.array,Ss.array,n.worldTransform.array),ke.multiply(p,Ms.array,Ss.array);for(var f=[],g=n instanceof mr,m=(n.near+n.far)/(n.near-n.far),v=2*n.near*n.far/(n.near-n.far),y=0;y<=i.shadowCascade;y++){var _=u*Math.pow(c/u,y/i.shadowCascade),x=u+(c-u)*y/i.shadowCascade,b=_*i.cascadeSplitLogFactor+x*(1-i.cascadeSplitLogFactor);f.push(b),r.push(-(-b*m+v)/-b)}var w=this._getTexture(i,i.shadowCascade);a.push(w);var S=t.viewport,T=t.gl;for(this._frameBuffer.attach(w),this._frameBuffer.bind(t),T.clear(T.COLOR_BUFFER_BIT|T.DEPTH_BUFFER_BIT),y=0;y<i.shadowCascade;y++){var M=f[y],A=f[y+1];g?ke.perspective(xs.array,n.fov/180*Math.PI,n.aspect,M,A):ke.ortho(xs.array,n.left,n.right,n.bottom,n.top,M,A),_s.setFromProjection(xs),_s.getTransformedBoundingBox(bs,Ss),bs.applyProjection(Ms);var C=bs.min.array,I=bs.max.array;C[0]=Math.max(C[0],-1),C[1]=Math.max(C[1],-1),I[0]=Math.min(I[0],1),I[1]=Math.min(I[1],1),ws.ortho(C[0],I[0],C[1],I[1],1,-1),d.projectionMatrix.multiplyLeft(ws);var E=i.shadowResolution||512;t.setViewport((i.shadowCascade-y-1)*E,0,E,E,1);var k=e.updateRenderList(d);t.renderPass(k.opaque,d,l),this.softShadow===As.VSM&&this._gaussianFilter(t,w,w.width);var L=new An;L.copy(d.viewMatrix).multiplyLeft(d.projectionMatrix),o.push(L.array),d.projectionMatrix.copy(Ms)}this._frameBuffer.unbind(t),t.setViewport(S)}),renderSpotLightShadow:function(t,e,n,i,r){var o=this._getTexture(n),a=this._getSpotLightCamera(n),s=t.gl;this._frameBuffer.attach(o),this._frameBuffer.bind(t),s.clear(s.COLOR_BUFFER_BIT|s.DEPTH_BUFFER_BIT);var l=this._getDepthMaterial(n),h={getMaterial:function(t){return t.shadowDepthMaterial||l},isMaterialChanged:ys,getUniform:vs,ifRender:function(t){return t.castShadow},sortCompare:Ue.opaqueSortCompare},c=e.updateRenderList(a);t.renderPass(c.opaque,a,h),this._frameBuffer.unbind(t),this.softShadow===As.VSM&&this._gaussianFilter(t,o,o.width);var u=new An;u.copy(a.worldTransform).invert().multiplyLeft(a.projectionMatrix),r.push(o),i.push(u.array)},renderPointLightShadow:function(t,e,n,i){var r=this._getTexture(n),o=t.gl;i.push(r);var a=this._getDepthMaterial(n),s={getMaterial:function(t){return t.shadowDepthMaterial||a},getUniform:vs,sortCompare:Ue.opaqueSortCompare},l={px:[],py:[],pz:[],nx:[],ny:[],nz:[]},h=new Gn,c=n.getWorldPosition().array,u=new Gn,d=n.range;u.min.setArray(c),u.max.setArray(c);var p=new Qe(d,d,d);u.max.add(p),u.min.sub(p);var f={px:!1,py:!1,pz:!1,nx:!1,ny:!1,nz:!1};e.traverse((function(t){if(t.isRenderable()&&t.castShadow){var e=t.geometry;if(!e.boundingBox){for(var n=0;n<ms.length;n++)l[ms[n]].push(t);return}if(h.transformFrom(e.boundingBox,t.worldTransform),!h.intersectBoundingBox(u))return;h.updateVertices();for(n=0;n<ms.length;n++)f[ms[n]]=!1;for(n=0;n<8;n++){var i=h.vertices[n],r=i[0]-c[0],o=i[1]-c[1],a=i[2]-c[2],s=Math.abs(r),d=Math.abs(o),p=Math.abs(a);s>d?s>p?f[r>0?"px":"nx"]=!0:f[a>0?"pz":"nz"]=!0:d>p?f[o>0?"py":"ny"]=!0:f[a>0?"pz":"nz"]=!0}for(n=0;n<ms.length;n++)f[ms[n]]&&l[ms[n]].push(t)}}));for(var g=0;g<6;g++){var m=ms[g],v=this._getPointLightCamera(n,m);this._frameBuffer.attach(r,o.COLOR_ATTACHMENT0,o.TEXTURE_CUBE_MAP_POSITIVE_X+g),this._frameBuffer.bind(t),o.clear(o.COLOR_BUFFER_BIT|o.DEPTH_BUFFER_BIT),t.renderPass(l[m],v,s)}this._frameBuffer.unbind(t)},_getDepthMaterial:function(t){var e=this._lightMaterials[t.__uid__],n="POINT_LIGHT"===t.type;if(!e){var i=n?"clay.sm.distance.":"clay.sm.depth.";e=new Ht({precision:this.precision,shader:new Ce(Ce.source(i+"vertex"),Ce.source(i+"fragment"))}),this._lightMaterials[t.__uid__]=e}return null!=t.shadowSlopeScale&&e.setUniform("slopeScale",t.shadowSlopeScale),null!=t.shadowBias&&e.setUniform("bias",t.shadowBias),this.softShadow===As.VSM?e.define("fragment","USE_VSM"):e.undefine("fragment","USE_VSM"),n&&(e.set("lightPosition",t.getWorldPosition().array),e.set("range",t.range)),e},_gaussianFilter:function(t,e,n){var i={width:n,height:n,type:ai.FLOAT},r=this._texturePool.get(i);this._frameBuffer.attach(r),this._frameBuffer.bind(t),this._gaussianPassH.setUniform("texture",e),this._gaussianPassH.setUniform("textureWidth",n),this._gaussianPassH.render(t),this._frameBuffer.attach(e),this._gaussianPassV.setUniform("texture",r),this._gaussianPassV.setUniform("textureHeight",n),this._gaussianPassV.render(t),this._frameBuffer.unbind(t),this._texturePool.put(r)},_getTexture:function(t,e){var n=t.__uid__,i=this._textures[n],r=t.shadowResolution||512;return e=e||1,i||((i="POINT_LIGHT"===t.type?new fr:new fi).width=r*e,i.height=r,this.softShadow===As.VSM?(i.type=ai.FLOAT,i.anisotropic=4):(i.minFilter=Q,i.magFilter=Q,i.useMipmap=!1),this._textures[n]=i),i},_getPointLightCamera:function(t,e){this._lightCameras.point||(this._lightCameras.point={px:new mr,nx:new mr,py:new mr,ny:new mr,pz:new mr,nz:new mr});var n=this._lightCameras.point[e];switch(n.far=t.range,n.fov=90,n.position.set(0,0,0),e){case"px":n.lookAt(Qe.POSITIVE_X,Qe.NEGATIVE_Y);break;case"nx":n.lookAt(Qe.NEGATIVE_X,Qe.NEGATIVE_Y);break;case"py":n.lookAt(Qe.POSITIVE_Y,Qe.POSITIVE_Z);break;case"ny":n.lookAt(Qe.NEGATIVE_Y,Qe.NEGATIVE_Z);break;case"pz":n.lookAt(Qe.POSITIVE_Z,Qe.NEGATIVE_Y);break;case"nz":n.lookAt(Qe.NEGATIVE_Z,Qe.NEGATIVE_Y)}return t.getWorldPosition(n.position),n.update(),n},_getDirectionalLightCamera:function(){var t=new An,e=new Gn,n=new Gn;return function(i,r,o){this._lightCameras.directional||(this._lightCameras.directional=new ro);var a=this._lightCameras.directional;e.copy(r.viewBoundingBoxLastFrame),e.intersection(o.frustum.boundingBox),a.position.copy(e.min).add(e.max).scale(.5).transformMat4(o.worldTransform),a.rotation.copy(i.rotation),a.scale.copy(i.scale),a.updateWorldTransform(),An.invert(t,a.worldTransform),An.multiply(t,t,o.worldTransform),n.copy(e).applyTransform(t);var s=n.min.array,l=n.max.array;return a.position.set((s[0]+l[0])/2,(s[1]+l[1])/2,l[2]).transformMat4(a.worldTransform),a.near=0,a.far=-s[2]+l[2],isNaN(this.lightFrustumBias)?a.far*=4:a.far+=this.lightFrustumBias,a.left=s[0],a.right=l[0],a.top=l[1],a.bottom=s[1],a.update(!0),a}}(),_getSpotLightCamera:function(t){this._lightCameras.spot||(this._lightCameras.spot=new mr);var e=this._lightCameras.spot;return e.fov=2*t.penumbraAngle,e.far=t.range,e.worldTransform.copy(t.worldTransform),e.updateProjectionMatrix(),ke.invert(e.viewMatrix.array,e.worldTransform.array),e},dispose:function(t){var e=t.gl||t;for(var n in this._frameBuffer&&this._frameBuffer.dispose(e),this._textures)this._textures[n].dispose(e);this._texturePool.clear(t.gl),this._depthMaterials={},this._distanceMaterials={},this._textures={},this._lightCameras={},this._shadowMapNumber={POINT_LIGHT:0,DIRECTIONAL_LIGHT:0,SPOT_LIGHT:0},this._meshMaterials={};for(var i=0;i<this._receivers.length;i++){var r=this._receivers[i];if(r.material){var o=r.material;o.undefine("fragment","POINT_LIGHT_SHADOW_COUNT"),o.undefine("fragment","DIRECTIONAL_LIGHT_SHADOW_COUNT"),o.undefine("fragment","AMBIENT_LIGHT_SHADOW_COUNT"),o.set("shadowEnabled",0)}}this._receivers=[],this._lightsCastShadow=[]}});As.VSM=1,As.PCF=2;const Cs=As;const Is=y.extend((function(){return{name:"",inputLinks:{},outputLinks:{},_prevOutputTextures:{},_outputTextures:{},_outputReferences:{},_rendering:!1,_rendered:!1,_compositor:null}}),{updateParameter:function(t,e){var n,i,r=this.outputs[t],o=r.parameters,a=r._parametersCopy;if(a||(a=r._parametersCopy={}),o)for(var s in o)"width"!==s&&"height"!==s&&(a[s]=o[s]);return n=o.width instanceof Function?o.width.call(this,e):o.width,i=o.height instanceof Function?o.height.call(this,e):o.height,a.width===n&&a.height===i||this._outputTextures[t]&&this._outputTextures[t].dispose(e.gl),a.width=n,a.height=i,a},setParameter:function(t,e){},getParameter:function(t){},setParameters:function(t){for(var e in t)this.setParameter(e,t[e])},render:function(){},getOutput:function(t,e){if(null==e)return e=t,this._outputTextures[e];var n=this.outputs[e];return n?this._rendered?n.outputLastFrame?this._prevOutputTextures[e]:this._outputTextures[e]:this._rendering?(this._prevOutputTextures[e]||(this._prevOutputTextures[e]=this._compositor.allocateTexture(n.parameters||{})),this._prevOutputTextures[e]):(this.render(t),this._outputTextures[e]):void 0},removeReference:function(t){(this._outputReferences[t]--,0===this._outputReferences[t])&&(this.outputs[t].keepLastFrame?(this._prevOutputTextures[t]&&this._compositor.releaseTexture(this._prevOutputTextures[t]),this._prevOutputTextures[t]=this._outputTextures[t]):this._compositor.releaseTexture(this._outputTextures[t]))},link:function(t,e,n){this.inputLinks[t]={node:e,pin:n},e.outputLinks[n]||(e.outputLinks[n]=[]),e.outputLinks[n].push({node:this,pin:t}),this.pass.material.enableTexture(t)},clear:function(){this.inputLinks={},this.outputLinks={}},updateReference:function(t){if(!this._rendering){for(var e in this._rendering=!0,this.inputLinks){var n=this.inputLinks[e];n.node.updateReference(n.pin)}this._rendering=!1}t&&this._outputReferences[t]++},beforeFrame:function(){for(var t in this._rendered=!1,this.outputLinks)this._outputReferences[t]=0},afterFrame:function(){for(var t in this.outputLinks){if(this._outputReferences[t]>0)this.outputs[t].keepLastFrame?(this._prevOutputTextures[t]&&this._compositor.releaseTexture(this._prevOutputTextures[t]),this._prevOutputTextures[t]=this._outputTextures[t]):this._compositor.releaseTexture(this._outputTextures[t])}}});var Es=y.extend((function(){return{nodes:[]}}),{dirty:function(){this._dirty=!0},addNode:function(t){this.nodes.indexOf(t)>=0||(this.nodes.push(t),this._dirty=!0)},removeNode:function(t){"string"==typeof t&&(t=this.getNodeByName(t));var e=this.nodes.indexOf(t);e>=0&&(this.nodes.splice(e,1),this._dirty=!0)},getNodeByName:function(t){for(var e=0;e<this.nodes.length;e++)if(this.nodes[e].name===t)return this.nodes[e]},update:function(){for(var t=0;t<this.nodes.length;t++)this.nodes[t].clear();for(t=0;t<this.nodes.length;t++){var e=this.nodes[t];if(e.inputs)for(var n in e.inputs)if(e.inputs[n])if(!e.pass||e.pass.material.isUniformEnabled(n)){var i=e.inputs[n],r=this.findPin(i);r?e.link(n,r.node,r.pin):"string"==typeof i?console.warn("Node "+i+" not exist"):console.warn("Pin of "+i.node+"."+i.pin+" not exist")}else console.warn("Pin "+e.name+"."+n+" not used.")}},findPin:function(t){var e;if(("string"==typeof t||t instanceof Is)&&(t={node:t}),"string"==typeof t.node)for(var n=0;n<this.nodes.length;n++){var i=this.nodes[n];i.name===t.node&&(e=i)}else e=t.node;if(e){var r=t.pin;if(r||e.outputs&&(r=Object.keys(e.outputs)[0]),e.outputs[r])return{node:e,pin:r}}}});const ks=Es;const Ls=ks.extend((function(){return{_outputs:[],_texturePool:new gs,_frameBuffer:new Ir({depthBuffer:!1})}}),{addNode:function(t){ks.prototype.addNode.call(this,t),t._compositor=this},render:function(t,e){if(this._dirty){this.update(),this._dirty=!1,this._outputs.length=0;for(var n=0;n<this.nodes.length;n++)this.nodes[n].outputs||this._outputs.push(this.nodes[n])}for(n=0;n<this.nodes.length;n++)this.nodes[n].beforeFrame();for(n=0;n<this._outputs.length;n++)this._outputs[n].updateReference();for(n=0;n<this._outputs.length;n++)this._outputs[n].render(t,e);for(n=0;n<this.nodes.length;n++)this.nodes[n].afterFrame()},allocateTexture:function(t){return this._texturePool.get(t)},releaseTexture:function(t){this._texturePool.put(t)},getFrameBuffer:function(){return this._frameBuffer},dispose:function(t){this._texturePool.clear(t)}});const Ds=Is.extend({name:"scene",scene:null,camera:null,autoUpdateScene:!0,preZ:!1},(function(){this.frameBuffer=new Ir}),{render:function(t){this._rendering=!0;var e,n=t.gl;if(this.trigger("beforerender"),this.outputs){var i=this.frameBuffer;for(var r in this.outputs){var o=this.updateParameter(r,t),a=this.outputs[r],s=this._compositor.allocateTexture(o);this._outputTextures[r]=s,"string"==typeof(c=a.attachment||n.COLOR_ATTACHMENT0)&&(c=n[c]),i.attach(s,c)}i.bind(t);var l=t.getGLExtension("EXT_draw_buffers");if(l){var h=[];for(var c in this.outputs)(c=parseInt(c))>=n.COLOR_ATTACHMENT0&&c<=n.COLOR_ATTACHMENT0+8&&h.push(c);l.drawBuffersEXT(h)}t.saveClear(),t.clearBit=w|T,e=t.render(this.scene,this.camera,!this.autoUpdateScene,this.preZ),t.restoreClear(),i.unbind(t)}else e=t.render(this.scene,this.camera,!this.autoUpdateScene,this.preZ);this.trigger("afterrender",e),this._rendering=!1,this._rendered=!0}});const Ps=Is.extend((function(){return{texture:null,outputs:{color:{}}}}),(function(){}),{getOutput:function(t,e){return this.texture},beforeFrame:function(){},afterFrame:function(){}});const Rs=Is.extend((function(){return{name:"",inputs:{},outputs:null,shader:"",inputLinks:{},outputLinks:{},pass:null,_prevOutputTextures:{},_outputTextures:{},_outputReferences:{},_rendering:!1,_rendered:!1,_compositor:null}}),(function(){var t=new lo({fragment:this.shader});this.pass=t}),{render:function(t,e){this.trigger("beforerender",t),this._rendering=!0;var n=t.gl;for(var i in this.inputLinks){var r=(u=this.inputLinks[i]).node.getOutput(t,u.pin);this.pass.setUniform(i,r)}if(this.outputs){this.pass.outputs={};var o={};for(var a in this.outputs){var s=this.updateParameter(a,t);isNaN(s.width)&&this.updateParameter(a,t);var l=this.outputs[a],h=this._compositor.allocateTexture(s);this._outputTextures[a]=h,"string"==typeof(c=l.attachment||n.COLOR_ATTACHMENT0)&&(c=n[c]),o[c]=h}for(var c in this._compositor.getFrameBuffer().bind(t),o)this._compositor.getFrameBuffer().attach(o[c],c);this.pass.render(t),this._compositor.getFrameBuffer().updateMipmap(t)}else this.pass.outputs=null,this._compositor.getFrameBuffer().unbind(t),this.pass.render(t,e);for(var i in this.inputLinks){var u;(u=this.inputLinks[i]).node.removeReference(u.pin)}this._rendering=!1,this._rendered=!0,this.trigger("afterrender",t)},updateParameter:function(t,e){var n,i,r=this.outputs[t],o=r.parameters,a=r._parametersCopy;if(a||(a=r._parametersCopy={}),o)for(var s in o)"width"!==s&&"height"!==s&&(a[s]=o[s]);return n="function"==typeof o.width?o.width.call(this,e):o.width,i="function"==typeof o.height?o.height.call(this,e):o.height,n=Math.ceil(n),i=Math.ceil(i),a.width===n&&a.height===i||this._outputTextures[t]&&this._outputTextures[t].dispose(e),a.width=n,a.height=i,a},setParameter:function(t,e){this.pass.setUniform(t,e)},getParameter:function(t){return this.pass.getUniform(t)},setParameters:function(t){for(var e in t)this.setParameter(e,t[e])},define:function(t,e){this.pass.material.define("fragment",t,e)},undefine:function(t){this.pass.material.undefine("fragment",t)},removeReference:function(t){(this._outputReferences[t]--,0===this._outputReferences[t])&&(this.outputs[t].keepLastFrame?(this._prevOutputTextures[t]&&this._compositor.releaseTexture(this._prevOutputTextures[t]),this._prevOutputTextures[t]=this._outputTextures[t]):this._compositor.releaseTexture(this._outputTextures[t]))},clear:function(){Is.prototype.clear.call(this),this.pass.material.disableTexturesAll()}}),Os="@export clay.compositor.kernel.gaussian_9\nfloat gaussianKernel[9];\ngaussianKernel[0] = 0.07;\ngaussianKernel[1] = 0.09;\ngaussianKernel[2] = 0.12;\ngaussianKernel[3] = 0.14;\ngaussianKernel[4] = 0.16;\ngaussianKernel[5] = 0.14;\ngaussianKernel[6] = 0.12;\ngaussianKernel[7] = 0.09;\ngaussianKernel[8] = 0.07;\n@end\n@export clay.compositor.kernel.gaussian_13\nfloat gaussianKernel[13];\ngaussianKernel[0] = 0.02;\ngaussianKernel[1] = 0.03;\ngaussianKernel[2] = 0.06;\ngaussianKernel[3] = 0.08;\ngaussianKernel[4] = 0.11;\ngaussianKernel[5] = 0.13;\ngaussianKernel[6] = 0.14;\ngaussianKernel[7] = 0.13;\ngaussianKernel[8] = 0.11;\ngaussianKernel[9] = 0.08;\ngaussianKernel[10] = 0.06;\ngaussianKernel[11] = 0.03;\ngaussianKernel[12] = 0.02;\n@end\n@export clay.compositor.gaussian_blur\n#define SHADER_NAME gaussian_blur\nuniform sampler2D texture;varying vec2 v_Texcoord;\nuniform float blurSize : 2.0;\nuniform vec2 textureSize : [512.0, 512.0];\nuniform float blurDir : 0.0;\n@import clay.util.rgbm\n@import clay.util.clamp_sample\nvoid main (void)\n{\n @import clay.compositor.kernel.gaussian_9\n vec2 off = blurSize / textureSize;\n off *= vec2(1.0 - blurDir, blurDir);\n vec4 sum = vec4(0.0);\n float weightAll = 0.0;\n for (int i = 0; i < 9; i++) {\n float w = gaussianKernel[i];\n vec4 texel = decodeHDR(clampSample(texture, v_Texcoord + float(i - 4) * off));\n sum += texel * w;\n weightAll += w;\n }\n gl_FragColor = encodeHDR(sum / max(weightAll, 0.01));\n}\n@end\n",Ns="\n@export clay.compositor.lut\nvarying vec2 v_Texcoord;\nuniform sampler2D texture;\nuniform sampler2D lookup;\nvoid main()\n{\n vec4 tex = texture2D(texture, v_Texcoord);\n float blueColor = tex.b * 63.0;\n vec2 quad1;\n quad1.y = floor(floor(blueColor) / 8.0);\n quad1.x = floor(blueColor) - (quad1.y * 8.0);\n vec2 quad2;\n quad2.y = floor(ceil(blueColor) / 8.0);\n quad2.x = ceil(blueColor) - (quad2.y * 8.0);\n vec2 texPos1;\n texPos1.x = (quad1.x * 0.125) + 0.5/512.0 + ((0.125 - 1.0/512.0) * tex.r);\n texPos1.y = (quad1.y * 0.125) + 0.5/512.0 + ((0.125 - 1.0/512.0) * tex.g);\n vec2 texPos2;\n texPos2.x = (quad2.x * 0.125) + 0.5/512.0 + ((0.125 - 1.0/512.0) * tex.r);\n texPos2.y = (quad2.y * 0.125) + 0.5/512.0 + ((0.125 - 1.0/512.0) * tex.g);\n vec4 newColor1 = texture2D(lookup, texPos1);\n vec4 newColor2 = texture2D(lookup, texPos2);\n vec4 newColor = mix(newColor1, newColor2, fract(blueColor));\n gl_FragColor = vec4(newColor.rgb, tex.w);\n}\n@end",Fs="@export clay.compositor.output\n#define OUTPUT_ALPHA\nvarying vec2 v_Texcoord;\nuniform sampler2D texture;\n@import clay.util.rgbm\nvoid main()\n{\n vec4 tex = decodeHDR(texture2D(texture, v_Texcoord));\n gl_FragColor.rgb = tex.rgb;\n#ifdef OUTPUT_ALPHA\n gl_FragColor.a = tex.a;\n#else\n gl_FragColor.a = 1.0;\n#endif\n gl_FragColor = encodeHDR(gl_FragColor);\n#ifdef PREMULTIPLY_ALPHA\n gl_FragColor.rgb *= gl_FragColor.a;\n#endif\n}\n@end",Bs="@export clay.compositor.bright\nuniform sampler2D texture;\nuniform float threshold : 1;\nuniform float scale : 1.0;\nuniform vec2 textureSize: [512, 512];\nvarying vec2 v_Texcoord;\nconst vec3 lumWeight = vec3(0.2125, 0.7154, 0.0721);\n@import clay.util.rgbm\nvec4 median(vec4 a, vec4 b, vec4 c)\n{\n return a + b + c - min(min(a, b), c) - max(max(a, b), c);\n}\nvoid main()\n{\n vec4 texel = decodeHDR(texture2D(texture, v_Texcoord));\n#ifdef ANTI_FLICKER\n vec3 d = 1.0 / textureSize.xyx * vec3(1.0, 1.0, 0.0);\n vec4 s1 = decodeHDR(texture2D(texture, v_Texcoord - d.xz));\n vec4 s2 = decodeHDR(texture2D(texture, v_Texcoord + d.xz));\n vec4 s3 = decodeHDR(texture2D(texture, v_Texcoord - d.zy));\n vec4 s4 = decodeHDR(texture2D(texture, v_Texcoord + d.zy));\n texel = median(median(texel, s1, s2), s3, s4);\n#endif\n float lum = dot(texel.rgb , lumWeight);\n vec4 color;\n if (lum > threshold && texel.a > 0.0)\n {\n color = vec4(texel.rgb * scale, texel.a * scale);\n }\n else\n {\n color = vec4(0.0);\n }\n gl_FragColor = encodeHDR(color);\n}\n@end\n",zs="@export clay.compositor.downsample\nuniform sampler2D texture;\nuniform vec2 textureSize : [512, 512];\nvarying vec2 v_Texcoord;\n@import clay.util.rgbm\nfloat brightness(vec3 c)\n{\n return max(max(c.r, c.g), c.b);\n}\n@import clay.util.clamp_sample\nvoid main()\n{\n vec4 d = vec4(-1.0, -1.0, 1.0, 1.0) / textureSize.xyxy;\n#ifdef ANTI_FLICKER\n vec3 s1 = decodeHDR(clampSample(texture, v_Texcoord + d.xy)).rgb;\n vec3 s2 = decodeHDR(clampSample(texture, v_Texcoord + d.zy)).rgb;\n vec3 s3 = decodeHDR(clampSample(texture, v_Texcoord + d.xw)).rgb;\n vec3 s4 = decodeHDR(clampSample(texture, v_Texcoord + d.zw)).rgb;\n float s1w = 1.0 / (brightness(s1) + 1.0);\n float s2w = 1.0 / (brightness(s2) + 1.0);\n float s3w = 1.0 / (brightness(s3) + 1.0);\n float s4w = 1.0 / (brightness(s4) + 1.0);\n float oneDivideSum = 1.0 / (s1w + s2w + s3w + s4w);\n vec4 color = vec4(\n (s1 * s1w + s2 * s2w + s3 * s3w + s4 * s4w) * oneDivideSum,\n 1.0\n );\n#else\n vec4 color = decodeHDR(clampSample(texture, v_Texcoord + d.xy));\n color += decodeHDR(clampSample(texture, v_Texcoord + d.zy));\n color += decodeHDR(clampSample(texture, v_Texcoord + d.xw));\n color += decodeHDR(clampSample(texture, v_Texcoord + d.zw));\n color *= 0.25;\n#endif\n gl_FragColor = encodeHDR(color);\n}\n@end",Gs="\n@export clay.compositor.upsample\n#define HIGH_QUALITY\nuniform sampler2D texture;\nuniform vec2 textureSize : [512, 512];\nuniform float sampleScale: 0.5;\nvarying vec2 v_Texcoord;\n@import clay.util.rgbm\n@import clay.util.clamp_sample\nvoid main()\n{\n#ifdef HIGH_QUALITY\n vec4 d = vec4(1.0, 1.0, -1.0, 0.0) / textureSize.xyxy * sampleScale;\n vec4 s;\n s = decodeHDR(clampSample(texture, v_Texcoord - d.xy));\n s += decodeHDR(clampSample(texture, v_Texcoord - d.wy)) * 2.0;\n s += decodeHDR(clampSample(texture, v_Texcoord - d.zy));\n s += decodeHDR(clampSample(texture, v_Texcoord + d.zw)) * 2.0;\n s += decodeHDR(clampSample(texture, v_Texcoord )) * 4.0;\n s += decodeHDR(clampSample(texture, v_Texcoord + d.xw)) * 2.0;\n s += decodeHDR(clampSample(texture, v_Texcoord + d.zy));\n s += decodeHDR(clampSample(texture, v_Texcoord + d.wy)) * 2.0;\n s += decodeHDR(clampSample(texture, v_Texcoord + d.xy));\n gl_FragColor = encodeHDR(s / 16.0);\n#else\n vec4 d = vec4(-1.0, -1.0, +1.0, +1.0) / textureSize.xyxy;\n vec4 s;\n s = decodeHDR(clampSample(texture, v_Texcoord + d.xy));\n s += decodeHDR(clampSample(texture, v_Texcoord + d.zy));\n s += decodeHDR(clampSample(texture, v_Texcoord + d.xw));\n s += decodeHDR(clampSample(texture, v_Texcoord + d.zw));\n gl_FragColor = encodeHDR(s / 4.0);\n#endif\n}\n@end",Vs="@export clay.compositor.hdr.composite\n#define TONEMAPPING\nuniform sampler2D texture;\n#ifdef BLOOM_ENABLED\nuniform sampler2D bloom;\n#endif\n#ifdef LENSFLARE_ENABLED\nuniform sampler2D lensflare;\nuniform sampler2D lensdirt;\n#endif\n#ifdef LUM_ENABLED\nuniform sampler2D lum;\n#endif\n#ifdef LUT_ENABLED\nuniform sampler2D lut;\n#endif\n#ifdef COLOR_CORRECTION\nuniform float brightness : 0.0;\nuniform float contrast : 1.0;\nuniform float saturation : 1.0;\n#endif\n#ifdef VIGNETTE\nuniform float vignetteDarkness: 1.0;\nuniform float vignetteOffset: 1.0;\n#endif\nuniform float exposure : 1.0;\nuniform float bloomIntensity : 0.25;\nuniform float lensflareIntensity : 1;\nvarying vec2 v_Texcoord;\n@import clay.util.srgb\nvec3 ACESToneMapping(vec3 color)\n{\n const float A = 2.51;\n const float B = 0.03;\n const float C = 2.43;\n const float D = 0.59;\n const float E = 0.14;\n return (color * (A * color + B)) / (color * (C * color + D) + E);\n}\nfloat eyeAdaption(float fLum)\n{\n return mix(0.2, fLum, 0.5);\n}\n#ifdef LUT_ENABLED\nvec3 lutTransform(vec3 color) {\n float blueColor = color.b * 63.0;\n vec2 quad1;\n quad1.y = floor(floor(blueColor) / 8.0);\n quad1.x = floor(blueColor) - (quad1.y * 8.0);\n vec2 quad2;\n quad2.y = floor(ceil(blueColor) / 8.0);\n quad2.x = ceil(blueColor) - (quad2.y * 8.0);\n vec2 texPos1;\n texPos1.x = (quad1.x * 0.125) + 0.5/512.0 + ((0.125 - 1.0/512.0) * color.r);\n texPos1.y = (quad1.y * 0.125) + 0.5/512.0 + ((0.125 - 1.0/512.0) * color.g);\n vec2 texPos2;\n texPos2.x = (quad2.x * 0.125) + 0.5/512.0 + ((0.125 - 1.0/512.0) * color.r);\n texPos2.y = (quad2.y * 0.125) + 0.5/512.0 + ((0.125 - 1.0/512.0) * color.g);\n vec4 newColor1 = texture2D(lut, texPos1);\n vec4 newColor2 = texture2D(lut, texPos2);\n vec4 newColor = mix(newColor1, newColor2, fract(blueColor));\n return newColor.rgb;\n}\n#endif\n@import clay.util.rgbm\nvoid main()\n{\n vec4 texel = vec4(0.0);\n vec4 originalTexel = vec4(0.0);\n#ifdef TEXTURE_ENABLED\n texel = decodeHDR(texture2D(texture, v_Texcoord));\n originalTexel = texel;\n#endif\n#ifdef BLOOM_ENABLED\n vec4 bloomTexel = decodeHDR(texture2D(bloom, v_Texcoord));\n texel.rgb += bloomTexel.rgb * bloomIntensity;\n texel.a += bloomTexel.a * bloomIntensity;\n#endif\n#ifdef LENSFLARE_ENABLED\n texel += decodeHDR(texture2D(lensflare, v_Texcoord)) * texture2D(lensdirt, v_Texcoord) * lensflareIntensity;\n#endif\n texel.a = min(texel.a, 1.0);\n#ifdef LUM_ENABLED\n float fLum = texture2D(lum, vec2(0.5, 0.5)).r;\n float adaptedLumDest = 3.0 / (max(0.1, 1.0 + 10.0*eyeAdaption(fLum)));\n float exposureBias = adaptedLumDest * exposure;\n#else\n float exposureBias = exposure;\n#endif\n#ifdef TONEMAPPING\n texel.rgb *= exposureBias;\n texel.rgb = ACESToneMapping(texel.rgb);\n#endif\n texel = linearTosRGB(texel);\n#ifdef LUT_ENABLED\n texel.rgb = lutTransform(clamp(texel.rgb,vec3(0.0),vec3(1.0)));\n#endif\n#ifdef COLOR_CORRECTION\n texel.rgb = clamp(texel.rgb + vec3(brightness), 0.0, 1.0);\n texel.rgb = clamp((texel.rgb - vec3(0.5))*contrast+vec3(0.5), 0.0, 1.0);\n float lum = dot(texel.rgb, vec3(0.2125, 0.7154, 0.0721));\n texel.rgb = mix(vec3(lum), texel.rgb, saturation);\n#endif\n#ifdef VIGNETTE\n vec2 uv = (v_Texcoord - vec2(0.5)) * vec2(vignetteOffset);\n texel.rgb = mix(texel.rgb, vec3(1.0 - vignetteDarkness), dot(uv, uv));\n#endif\n gl_FragColor = encodeHDR(texel);\n#ifdef DEBUG\n #if DEBUG == 1\n gl_FragColor = encodeHDR(decodeHDR(texture2D(texture, v_Texcoord)));\n #elif DEBUG == 2\n gl_FragColor = encodeHDR(decodeHDR(texture2D(bloom, v_Texcoord)) * bloomIntensity);\n #elif DEBUG == 3\n gl_FragColor = encodeHDR(decodeHDR(texture2D(lensflare, v_Texcoord) * lensflareIntensity));\n #endif\n#endif\n if (originalTexel.a <= 0.01 && gl_FragColor.a > 1e-5) {\n gl_FragColor.a = dot(gl_FragColor.rgb, vec3(0.2125, 0.7154, 0.0721));\n }\n#ifdef PREMULTIPLY_ALPHA\n gl_FragColor.rgb *= gl_FragColor.a;\n#endif\n}\n@end",js="@export clay.compositor.blend\n#define SHADER_NAME blend\n#ifdef TEXTURE1_ENABLED\nuniform sampler2D texture1;\nuniform float weight1 : 1.0;\n#endif\n#ifdef TEXTURE2_ENABLED\nuniform sampler2D texture2;\nuniform float weight2 : 1.0;\n#endif\n#ifdef TEXTURE3_ENABLED\nuniform sampler2D texture3;\nuniform float weight3 : 1.0;\n#endif\n#ifdef TEXTURE4_ENABLED\nuniform sampler2D texture4;\nuniform float weight4 : 1.0;\n#endif\n#ifdef TEXTURE5_ENABLED\nuniform sampler2D texture5;\nuniform float weight5 : 1.0;\n#endif\n#ifdef TEXTURE6_ENABLED\nuniform sampler2D texture6;\nuniform float weight6 : 1.0;\n#endif\nvarying vec2 v_Texcoord;\n@import clay.util.rgbm\nvoid main()\n{\n vec4 tex = vec4(0.0);\n#ifdef TEXTURE1_ENABLED\n tex += decodeHDR(texture2D(texture1, v_Texcoord)) * weight1;\n#endif\n#ifdef TEXTURE2_ENABLED\n tex += decodeHDR(texture2D(texture2, v_Texcoord)) * weight2;\n#endif\n#ifdef TEXTURE3_ENABLED\n tex += decodeHDR(texture2D(texture3, v_Texcoord)) * weight3;\n#endif\n#ifdef TEXTURE4_ENABLED\n tex += decodeHDR(texture2D(texture4, v_Texcoord)) * weight4;\n#endif\n#ifdef TEXTURE5_ENABLED\n tex += decodeHDR(texture2D(texture5, v_Texcoord)) * weight5;\n#endif\n#ifdef TEXTURE6_ENABLED\n tex += decodeHDR(texture2D(texture6, v_Texcoord)) * weight6;\n#endif\n gl_FragColor = encodeHDR(tex);\n}\n@end",Hs="@export clay.compositor.fxaa\nuniform sampler2D texture;\nuniform vec4 viewport : VIEWPORT;\nvarying vec2 v_Texcoord;\n#define FXAA_REDUCE_MIN (1.0/128.0)\n#define FXAA_REDUCE_MUL (1.0/8.0)\n#define FXAA_SPAN_MAX 8.0\n@import clay.util.rgbm\nvoid main()\n{\n vec2 resolution = 1.0 / viewport.zw;\n vec3 rgbNW = decodeHDR( texture2D( texture, ( gl_FragCoord.xy + vec2( -1.0, -1.0 ) ) * resolution ) ).xyz;\n vec3 rgbNE = decodeHDR( texture2D( texture, ( gl_FragCoord.xy + vec2( 1.0, -1.0 ) ) * resolution ) ).xyz;\n vec3 rgbSW = decodeHDR( texture2D( texture, ( gl_FragCoord.xy + vec2( -1.0, 1.0 ) ) * resolution ) ).xyz;\n vec3 rgbSE = decodeHDR( texture2D( texture, ( gl_FragCoord.xy + vec2( 1.0, 1.0 ) ) * resolution ) ).xyz;\n vec4 rgbaM = decodeHDR( texture2D( texture, gl_FragCoord.xy * resolution ) );\n vec3 rgbM = rgbaM.xyz;\n float opacity = rgbaM.w;\n vec3 luma = vec3( 0.299, 0.587, 0.114 );\n float lumaNW = dot( rgbNW, luma );\n float lumaNE = dot( rgbNE, luma );\n float lumaSW = dot( rgbSW, luma );\n float lumaSE = dot( rgbSE, luma );\n float lumaM = dot( rgbM, luma );\n float lumaMin = min( lumaM, min( min( lumaNW, lumaNE ), min( lumaSW, lumaSE ) ) );\n float lumaMax = max( lumaM, max( max( lumaNW, lumaNE) , max( lumaSW, lumaSE ) ) );\n vec2 dir;\n dir.x = -((lumaNW + lumaNE) - (lumaSW + lumaSE));\n dir.y = ((lumaNW + lumaSW) - (lumaNE + lumaSE));\n float dirReduce = max( ( lumaNW + lumaNE + lumaSW + lumaSE ) * ( 0.25 * FXAA_REDUCE_MUL ), FXAA_REDUCE_MIN );\n float rcpDirMin = 1.0 / ( min( abs( dir.x ), abs( dir.y ) ) + dirReduce );\n dir = min( vec2( FXAA_SPAN_MAX, FXAA_SPAN_MAX),\n max( vec2(-FXAA_SPAN_MAX, -FXAA_SPAN_MAX),\n dir * rcpDirMin)) * resolution;\n vec3 rgbA = decodeHDR( texture2D( texture, gl_FragCoord.xy * resolution + dir * ( 1.0 / 3.0 - 0.5 ) ) ).xyz;\n rgbA += decodeHDR( texture2D( texture, gl_FragCoord.xy * resolution + dir * ( 2.0 / 3.0 - 0.5 ) ) ).xyz;\n rgbA *= 0.5;\n vec3 rgbB = decodeHDR( texture2D( texture, gl_FragCoord.xy * resolution + dir * -0.5 ) ).xyz;\n rgbB += decodeHDR( texture2D( texture, gl_FragCoord.xy * resolution + dir * 0.5 ) ).xyz;\n rgbB *= 0.25;\n rgbB += rgbA * 0.5;\n float lumaB = dot( rgbB, luma );\n if ( ( lumaB < lumaMin ) || ( lumaB > lumaMax ) )\n {\n gl_FragColor = vec4( rgbA, opacity );\n }\n else {\n gl_FragColor = vec4( rgbB, opacity );\n }\n}\n@end";!function(t){t.import("@export clay.compositor.coloradjust\nvarying vec2 v_Texcoord;\nuniform sampler2D texture;\nuniform float brightness : 0.0;\nuniform float contrast : 1.0;\nuniform float exposure : 0.0;\nuniform float gamma : 1.0;\nuniform float saturation : 1.0;\nconst vec3 w = vec3(0.2125, 0.7154, 0.0721);\nvoid main()\n{\n vec4 tex = texture2D( texture, v_Texcoord);\n vec3 color = clamp(tex.rgb + vec3(brightness), 0.0, 1.0);\n color = clamp( (color-vec3(0.5))*contrast+vec3(0.5), 0.0, 1.0);\n color = clamp( color * pow(2.0, exposure), 0.0, 1.0);\n color = clamp( pow(color, vec3(gamma)), 0.0, 1.0);\n float luminance = dot( color, w );\n color = mix(vec3(luminance), color, saturation);\n gl_FragColor = vec4(color, tex.a);\n}\n@end\n@export clay.compositor.brightness\nvarying vec2 v_Texcoord;\nuniform sampler2D texture;\nuniform float brightness : 0.0;\nvoid main()\n{\n vec4 tex = texture2D( texture, v_Texcoord);\n vec3 color = tex.rgb + vec3(brightness);\n gl_FragColor = vec4(color, tex.a);\n}\n@end\n@export clay.compositor.contrast\nvarying vec2 v_Texcoord;\nuniform sampler2D texture;\nuniform float contrast : 1.0;\nvoid main()\n{\n vec4 tex = texture2D( texture, v_Texcoord);\n vec3 color = (tex.rgb-vec3(0.5))*contrast+vec3(0.5);\n gl_FragColor = vec4(color, tex.a);\n}\n@end\n@export clay.compositor.exposure\nvarying vec2 v_Texcoord;\nuniform sampler2D texture;\nuniform float exposure : 0.0;\nvoid main()\n{\n vec4 tex = texture2D(texture, v_Texcoord);\n vec3 color = tex.rgb * pow(2.0, exposure);\n gl_FragColor = vec4(color, tex.a);\n}\n@end\n@export clay.compositor.gamma\nvarying vec2 v_Texcoord;\nuniform sampler2D texture;\nuniform float gamma : 1.0;\nvoid main()\n{\n vec4 tex = texture2D(texture, v_Texcoord);\n vec3 color = pow(tex.rgb, vec3(gamma));\n gl_FragColor = vec4(color, tex.a);\n}\n@end\n@export clay.compositor.saturation\nvarying vec2 v_Texcoord;\nuniform sampler2D texture;\nuniform float saturation : 1.0;\nconst vec3 w = vec3(0.2125, 0.7154, 0.0721);\nvoid main()\n{\n vec4 tex = texture2D(texture, v_Texcoord);\n vec3 color = tex.rgb;\n float luminance = dot(color, w);\n color = mix(vec3(luminance), color, saturation);\n gl_FragColor = vec4(color, tex.a);\n}\n@end"),t.import(Os),t.import("@export clay.compositor.hdr.log_lum\nvarying vec2 v_Texcoord;\nuniform sampler2D texture;\nconst vec3 w = vec3(0.2125, 0.7154, 0.0721);\n@import clay.util.rgbm\nvoid main()\n{\n vec4 tex = decodeHDR(texture2D(texture, v_Texcoord));\n float luminance = dot(tex.rgb, w);\n luminance = log(luminance + 0.001);\n gl_FragColor = encodeHDR(vec4(vec3(luminance), 1.0));\n}\n@end\n@export clay.compositor.hdr.lum_adaption\nvarying vec2 v_Texcoord;\nuniform sampler2D adaptedLum;\nuniform sampler2D currentLum;\nuniform float frameTime : 0.02;\n@import clay.util.rgbm\nvoid main()\n{\n float fAdaptedLum = decodeHDR(texture2D(adaptedLum, vec2(0.5, 0.5))).r;\n float fCurrentLum = exp(encodeHDR(texture2D(currentLum, vec2(0.5, 0.5))).r);\n fAdaptedLum += (fCurrentLum - fAdaptedLum) * (1.0 - pow(0.98, 30.0 * frameTime));\n gl_FragColor = encodeHDR(vec4(vec3(fAdaptedLum), 1.0));\n}\n@end\n@export clay.compositor.lum\nvarying vec2 v_Texcoord;\nuniform sampler2D texture;\nconst vec3 w = vec3(0.2125, 0.7154, 0.0721);\nvoid main()\n{\n vec4 tex = texture2D( texture, v_Texcoord );\n float luminance = dot(tex.rgb, w);\n gl_FragColor = vec4(vec3(luminance), 1.0);\n}\n@end"),t.import(Ns),t.import("@export clay.compositor.vignette\n#define OUTPUT_ALPHA\nvarying vec2 v_Texcoord;\nuniform sampler2D texture;\nuniform float darkness: 1;\nuniform float offset: 1;\n@import clay.util.rgbm\nvoid main()\n{\n vec4 texel = decodeHDR(texture2D(texture, v_Texcoord));\n gl_FragColor.rgb = texel.rgb;\n vec2 uv = (v_Texcoord - vec2(0.5)) * vec2(offset);\n gl_FragColor = encodeHDR(vec4(mix(texel.rgb, vec3(1.0 - darkness), dot(uv, uv)), texel.a));\n}\n@end"),t.import(Fs),t.import(Bs),t.import(zs),t.import(Gs),t.import(Vs),t.import("@export clay.compositor.lensflare\n#define SAMPLE_NUMBER 8\nuniform sampler2D texture;\nuniform sampler2D lenscolor;\nuniform vec2 textureSize : [512, 512];\nuniform float dispersal : 0.3;\nuniform float haloWidth : 0.4;\nuniform float distortion : 1.0;\nvarying vec2 v_Texcoord;\n@import clay.util.rgbm\nvec4 textureDistorted(\n in vec2 texcoord,\n in vec2 direction,\n in vec3 distortion\n) {\n return vec4(\n decodeHDR(texture2D(texture, texcoord + direction * distortion.r)).r,\n decodeHDR(texture2D(texture, texcoord + direction * distortion.g)).g,\n decodeHDR(texture2D(texture, texcoord + direction * distortion.b)).b,\n 1.0\n );\n}\nvoid main()\n{\n vec2 texcoord = -v_Texcoord + vec2(1.0); vec2 textureOffset = 1.0 / textureSize;\n vec2 ghostVec = (vec2(0.5) - texcoord) * dispersal;\n vec2 haloVec = normalize(ghostVec) * haloWidth;\n vec3 distortion = vec3(-textureOffset.x * distortion, 0.0, textureOffset.x * distortion);\n vec4 result = vec4(0.0);\n for (int i = 0; i < SAMPLE_NUMBER; i++)\n {\n vec2 offset = fract(texcoord + ghostVec * float(i));\n float weight = length(vec2(0.5) - offset) / length(vec2(0.5));\n weight = pow(1.0 - weight, 10.0);\n result += textureDistorted(offset, normalize(ghostVec), distortion) * weight;\n }\n result *= texture2D(lenscolor, vec2(length(vec2(0.5) - texcoord)) / length(vec2(0.5)));\n float weight = length(vec2(0.5) - fract(texcoord + haloVec)) / length(vec2(0.5));\n weight = pow(1.0 - weight, 10.0);\n vec2 offset = fract(texcoord + haloVec);\n result += textureDistorted(offset, normalize(ghostVec), distortion) * weight;\n gl_FragColor = result;\n}\n@end"),t.import(js),t.import(Hs)}(Ce);var Ws=/^#source\((.*?)\)/;function Us(t,e,n){var i,r,o,a,s=t.type||"filter";if("filter"===s){var l=t.shader.trim(),h=Ws.exec(l);if(h?i=Ce.source(h[1].trim()):"#"===l.charAt(0)&&(i=e.shaders[l.substr(1)]),i||(i=l),!i)return}if(t.inputs)for(var c in r={},t.inputs)"string"==typeof t.inputs[c]?r[c]=t.inputs[c]:r[c]={node:t.inputs[c].node,pin:t.inputs[c].pin};if(t.outputs)for(var c in o={},t.outputs){var u=t.outputs[c];o[c]={},null!=u.attachment&&(o[c].attachment=u.attachment),null!=u.keepLastFrame&&(o[c].keepLastFrame=u.keepLastFrame),null!=u.outputLastFrame&&(o[c].outputLastFrame=u.outputLastFrame),u.parameters&&(o[c].parameters=Ys(u.parameters))}if(a="scene"===s?new Ds({name:t.name,scene:n.scene,camera:n.camera,outputs:o}):"texture"===s?new Ps({name:t.name,outputs:o}):new Rs({name:t.name,shader:i,inputs:r,outputs:o})){if(t.parameters)for(var c in t.parameters){"string"==typeof(d=t.parameters[c])?"#"===(d=d.trim()).charAt(0)?d=e.textures[d.substr(1)]:a.on("beforerender",Zs(c,$s(d))):"function"==typeof d&&a.on("beforerender",d),a.setParameter(c,d)}if(t.defines&&a.pass)for(var c in t.defines){var d=t.defines[c];a.pass.material.define("fragment",c,d)}}return a}function qs(t,e){return t}function Xs(t,e){return e}function Ys(t){var e={};if(!t)return e;["type","minFilter","magFilter","wrapS","wrapT","flipY","useMipmap"].forEach((function(n){var i=t[n];null!=i&&("string"==typeof i&&(i=ai[i]),e[n]=i)}));var n=t.scale||1;return["width","height"].forEach((function(i){if(null!=t[i]){var r=t[i];"string"==typeof r?(r=r.trim(),e[i]=(o=$s(r),a=(a=n)||1,function(t){var e=t.getDevicePixelRatio(),n=t.getWidth()*a,i=t.getHeight()*a;return o(n,i,e)})):e[i]=r}var o,a})),e.width||(e.width=qs),e.height||(e.height=Xs),null!=t.useMipmap&&(e.useMipmap=t.useMipmap),e}function Zs(t,e){return function(n){var i=n.getDevicePixelRatio(),r=n.getWidth(),o=n.getHeight(),a=e(r,o,i);this.setParameter(t,a)}}function $s(t){var e=/^expr\((.*)\)$/.exec(t);if(e)try{var n=new Function("width","height","dpr","return "+e[1]);return n(1,1),n}catch(Jh){throw new Error("Invalid expression.")}}const Ks=function(t,e){var n=new Ls;e=e||{};var i={textures:{},parameters:{}};for(var r in t.parameters){var o=t.parameters[r];i.parameters[r]=Ys(o)}return function(t,e,n,i){if(!t.textures)return void i({});var r={},o=0,a=!1,s=n.textureRootPath;m.each(t.textures,(function(t,e){var n,l=t.path,h=Ys(t.parameters);if(Array.isArray(l)&&6===l.length)s&&(l=l.map((function(t){return m.relative2absolute(t,s)}))),n=new fr(h);else{if("string"!=typeof l)return;s&&(l=m.relative2absolute(l,s)),n=new fi(h)}n.load(l),o++,n.once("success",(function(){r[e]=n,0===--o&&(i(r),a=!0)}))})),0!==o||a||i(r)}(t,0,e,(function(r){i.textures=r,function(){for(var r=0;r<t.nodes.length;r++){var o=Us(t.nodes[r],i,e);o&&n.addNode(o)}}()})),n};const Js=function(t,e){for(var n=0,i=1/e,r=t;r>0;)n+=i*(r%e),r=Math.floor(r/e),i/=e;return n};function Qs(t){for(var e=new Uint8Array(t*t*4),n=0,i=new Qe,r=0;r<t;r++)for(var o=0;o<t;o++)i.set(2*Math.random()-1,2*Math.random()-1,0).normalize(),e[n++]=255*(.5*i.x+.5),e[n++]=255*(.5*i.y+.5),e[n++]=0,e[n++]=255;return e}function tl(t){return new fi({pixels:Qs(t),wrapS:ai.REPEAT,wrapT:ai.REPEAT,width:t,height:t})}function el(t,e,n){var i=new Float32Array(3*t);e=e||0;for(var r=0;r<t;r++){var o=Js(r+e,2)*(n?1:2)*Math.PI,a=Js(r+e,3)*Math.PI,s=Math.random(),l=Math.cos(o)*Math.sin(a)*s,h=Math.cos(a)*s,c=Math.sin(o)*Math.sin(a)*s;i[3*r]=l,i[3*r+1]=h,i[3*r+2]=c}return i}function nl(t){t=t||{},this._ssaoPass=new lo({fragment:Ce.source("ecgl.ssao.estimate")}),this._blurPass=new lo({fragment:Ce.source("ecgl.ssao.blur")}),this._framebuffer=new Ir({depthBuffer:!1}),this._ssaoTexture=new fi,this._blurTexture=new fi,this._blurTexture2=new fi,this._depthTex=t.depthTexture,this._normalTex=t.normalTexture,this.setNoiseSize(4),this.setKernelSize(t.kernelSize||12),null!=t.radius&&this.setParameter("radius",t.radius),null!=t.power&&this.setParameter("power",t.power),this._normalTex||(this._ssaoPass.material.disableTexture("normalTex"),this._blurPass.material.disableTexture("normalTex")),this._depthTex||this._blurPass.material.disableTexture("depthTex"),this._blurPass.material.setUniform("normalTex",this._normalTex),this._blurPass.material.setUniform("depthTex",this._depthTex)}Ce.import("@export ecgl.ssao.estimate\n\nuniform sampler2D depthTex;\n\nuniform sampler2D normalTex;\n\nuniform sampler2D noiseTex;\n\nuniform vec2 depthTexSize;\n\nuniform vec2 noiseTexSize;\n\nuniform mat4 projection;\n\nuniform mat4 projectionInv;\n\nuniform mat4 viewInverseTranspose;\n\nuniform vec3 kernel[KERNEL_SIZE];\n\nuniform float radius : 1;\n\nuniform float power : 1;\n\nuniform float bias: 1e-2;\n\nuniform float intensity: 1.0;\n\nvarying vec2 v_Texcoord;\n\nfloat ssaoEstimator(in vec3 originPos, in mat3 kernelBasis) {\n float occlusion = 0.0;\n\n for (int i = 0; i < KERNEL_SIZE; i++) {\n vec3 samplePos = kernel[i];\n#ifdef NORMALTEX_ENABLED\n samplePos = kernelBasis * samplePos;\n#endif\n samplePos = samplePos * radius + originPos;\n\n vec4 texCoord = projection * vec4(samplePos, 1.0);\n texCoord.xy /= texCoord.w;\n\n vec4 depthTexel = texture2D(depthTex, texCoord.xy * 0.5 + 0.5);\n\n float sampleDepth = depthTexel.r * 2.0 - 1.0;\n if (projection[3][3] == 0.0) {\n sampleDepth = projection[3][2] / (sampleDepth * projection[2][3] - projection[2][2]);\n }\n else {\n sampleDepth = (sampleDepth - projection[3][2]) / projection[2][2];\n }\n \n float rangeCheck = smoothstep(0.0, 1.0, radius / abs(originPos.z - sampleDepth));\n occlusion += rangeCheck * step(samplePos.z, sampleDepth - bias);\n }\n#ifdef NORMALTEX_ENABLED\n occlusion = 1.0 - occlusion / float(KERNEL_SIZE);\n#else\n occlusion = 1.0 - clamp((occlusion / float(KERNEL_SIZE) - 0.6) * 2.5, 0.0, 1.0);\n#endif\n return pow(occlusion, power);\n}\n\nvoid main()\n{\n\n vec4 depthTexel = texture2D(depthTex, v_Texcoord);\n\n#ifdef NORMALTEX_ENABLED\n vec4 tex = texture2D(normalTex, v_Texcoord);\n if (dot(tex.rgb, tex.rgb) == 0.0) {\n gl_FragColor = vec4(1.0);\n return;\n }\n vec3 N = tex.rgb * 2.0 - 1.0;\n N = (viewInverseTranspose * vec4(N, 0.0)).xyz;\n\n vec2 noiseTexCoord = depthTexSize / vec2(noiseTexSize) * v_Texcoord;\n vec3 rvec = texture2D(noiseTex, noiseTexCoord).rgb * 2.0 - 1.0;\n vec3 T = normalize(rvec - N * dot(rvec, N));\n vec3 BT = normalize(cross(N, T));\n mat3 kernelBasis = mat3(T, BT, N);\n#else\n if (depthTexel.r > 0.99999) {\n gl_FragColor = vec4(1.0);\n return;\n }\n mat3 kernelBasis;\n#endif\n\n float z = depthTexel.r * 2.0 - 1.0;\n\n vec4 projectedPos = vec4(v_Texcoord * 2.0 - 1.0, z, 1.0);\n vec4 p4 = projectionInv * projectedPos;\n\n vec3 position = p4.xyz / p4.w;\n\n float ao = ssaoEstimator(position, kernelBasis);\n ao = clamp(1.0 - (1.0 - ao) * intensity, 0.0, 1.0);\n gl_FragColor = vec4(vec3(ao), 1.0);\n}\n\n@end\n\n\n@export ecgl.ssao.blur\n#define SHADER_NAME SSAO_BLUR\n\nuniform sampler2D ssaoTexture;\n\n#ifdef NORMALTEX_ENABLED\nuniform sampler2D normalTex;\n#endif\n\nvarying vec2 v_Texcoord;\n\nuniform vec2 textureSize;\nuniform float blurSize : 1.0;\n\nuniform int direction: 0.0;\n\n#ifdef DEPTHTEX_ENABLED\nuniform sampler2D depthTex;\nuniform mat4 projection;\nuniform float depthRange : 0.5;\n\nfloat getLinearDepth(vec2 coord)\n{\n float depth = texture2D(depthTex, coord).r * 2.0 - 1.0;\n return projection[3][2] / (depth * projection[2][3] - projection[2][2]);\n}\n#endif\n\nvoid main()\n{\n float kernel[5];\n kernel[0] = 0.122581;\n kernel[1] = 0.233062;\n kernel[2] = 0.288713;\n kernel[3] = 0.233062;\n kernel[4] = 0.122581;\n\n vec2 off = vec2(0.0);\n if (direction == 0) {\n off[0] = blurSize / textureSize.x;\n }\n else {\n off[1] = blurSize / textureSize.y;\n }\n\n vec2 coord = v_Texcoord;\n\n float sum = 0.0;\n float weightAll = 0.0;\n\n#ifdef NORMALTEX_ENABLED\n vec3 centerNormal = texture2D(normalTex, v_Texcoord).rgb * 2.0 - 1.0;\n#endif\n#if defined(DEPTHTEX_ENABLED)\n float centerDepth = getLinearDepth(v_Texcoord);\n#endif\n\n for (int i = 0; i < 5; i++) {\n vec2 coord = clamp(v_Texcoord + vec2(float(i) - 2.0) * off, vec2(0.0), vec2(1.0));\n\n float w = kernel[i];\n#ifdef NORMALTEX_ENABLED\n vec3 normal = texture2D(normalTex, coord).rgb * 2.0 - 1.0;\n w *= clamp(dot(normal, centerNormal), 0.0, 1.0);\n#endif\n#ifdef DEPTHTEX_ENABLED\n float d = getLinearDepth(coord);\n w *= (1.0 - smoothstep(abs(centerDepth - d) / depthRange, 0.0, 1.0));\n#endif\n\n weightAll += w;\n sum += texture2D(ssaoTexture, coord).r * w;\n }\n\n gl_FragColor = vec4(vec3(sum / weightAll), 1.0);\n}\n\n@end\n"),nl.prototype.setDepthTexture=function(t){this._depthTex=t},nl.prototype.setNormalTexture=function(t){this._normalTex=t,this._ssaoPass.material[t?"enableTexture":"disableTexture"]("normalTex"),this.setKernelSize(this._kernelSize)},nl.prototype.update=function(t,e,n){var i=t.getWidth(),r=t.getHeight(),o=this._ssaoPass,a=this._blurPass;o.setUniform("kernel",this._kernels[n%this._kernels.length]),o.setUniform("depthTex",this._depthTex),null!=this._normalTex&&o.setUniform("normalTex",this._normalTex),o.setUniform("depthTexSize",[this._depthTex.width,this._depthTex.height]);var s=new An;An.transpose(s,e.worldTransform),o.setUniform("projection",e.projectionMatrix.array),o.setUniform("projectionInv",e.invProjectionMatrix.array),o.setUniform("viewInverseTranspose",s.array);var l=this._ssaoTexture,h=this._blurTexture,c=this._blurTexture2;l.width=i/2,l.height=r/2,h.width=i,h.height=r,c.width=i,c.height=r,this._framebuffer.attach(l),this._framebuffer.bind(t),t.gl.clearColor(1,1,1,1),t.gl.clear(t.gl.COLOR_BUFFER_BIT),o.render(t),a.setUniform("textureSize",[i/2,r/2]),a.setUniform("projection",e.projectionMatrix.array),this._framebuffer.attach(h),a.setUniform("direction",0),a.setUniform("ssaoTexture",l),a.render(t),this._framebuffer.attach(c),a.setUniform("textureSize",[i,r]),a.setUniform("direction",1),a.setUniform("ssaoTexture",h),a.render(t),this._framebuffer.unbind(t);var u=t.clearColor;t.gl.clearColor(u[0],u[1],u[2],u[3])},nl.prototype.getTargetTexture=function(){return this._blurTexture2},nl.prototype.setParameter=function(t,e){"noiseTexSize"===t?this.setNoiseSize(e):"kernelSize"===t?this.setKernelSize(e):"intensity"===t?this._ssaoPass.material.set("intensity",e):this._ssaoPass.setUniform(t,e)},nl.prototype.setKernelSize=function(t){this._kernelSize=t,this._ssaoPass.material.define("fragment","KERNEL_SIZE",t),this._kernels=this._kernels||[];for(var e=0;e<30;e++)this._kernels[e]=el(t,e*t,!!this._normalTex)},nl.prototype.setNoiseSize=function(t){var e=this._ssaoPass.getUniform("noiseTex");e?(e.data=Qs(t),e.width=e.height=t,e.dirty()):(e=tl(t),this._ssaoPass.setUniform("noiseTex",tl(t))),this._ssaoPass.setUniform("noiseTexSize",[t,t])},nl.prototype.dispose=function(t){this._blurTexture.dispose(t),this._ssaoTexture.dispose(t),this._blurTexture2.dispose(t)};const il=nl;function rl(t){t=t||{},this._ssrPass=new lo({fragment:Ce.source("ecgl.ssr.main"),clearColor:[0,0,0,0]}),this._blurPass1=new lo({fragment:Ce.source("ecgl.ssr.blur"),clearColor:[0,0,0,0]}),this._blurPass2=new lo({fragment:Ce.source("ecgl.ssr.blur"),clearColor:[0,0,0,0]}),this._blendPass=new lo({fragment:Ce.source("clay.compositor.blend")}),this._blendPass.material.disableTexturesAll(),this._blendPass.material.enableTexture(["texture1","texture2"]),this._ssrPass.setUniform("gBufferTexture1",t.normalTexture),this._ssrPass.setUniform("gBufferTexture2",t.depthTexture),this._blurPass1.setUniform("gBufferTexture1",t.normalTexture),this._blurPass1.setUniform("gBufferTexture2",t.depthTexture),this._blurPass2.setUniform("gBufferTexture1",t.normalTexture),this._blurPass2.setUniform("gBufferTexture2",t.depthTexture),this._blurPass2.material.define("fragment","VERTICAL"),this._blurPass2.material.define("fragment","BLEND"),this._ssrTexture=new fi({type:ai.HALF_FLOAT}),this._texture2=new fi({type:ai.HALF_FLOAT}),this._texture3=new fi({type:ai.HALF_FLOAT}),this._prevTexture=new fi({type:ai.HALF_FLOAT}),this._currentTexture=new fi({type:ai.HALF_FLOAT}),this._frameBuffer=new Ir({depthBuffer:!1}),this._normalDistribution=null,this._totalSamples=256,this._samplePerFrame=4,this._ssrPass.material.define("fragment","SAMPLE_PER_FRAME",this._samplePerFrame),this._ssrPass.material.define("fragment","TOTAL_SAMPLES",this._totalSamples),this._downScale=1}Ce.import("@export ecgl.ssr.main\n\n#define SHADER_NAME SSR\n#define MAX_ITERATION 20;\n#define SAMPLE_PER_FRAME 5;\n#define TOTAL_SAMPLES 128;\n\nuniform sampler2D sourceTexture;\nuniform sampler2D gBufferTexture1;\nuniform sampler2D gBufferTexture2;\nuniform sampler2D gBufferTexture3;\nuniform samplerCube specularCubemap;\nuniform float specularIntensity: 1;\n\nuniform mat4 projection;\nuniform mat4 projectionInv;\nuniform mat4 toViewSpace;\nuniform mat4 toWorldSpace;\n\nuniform float maxRayDistance: 200;\n\nuniform float pixelStride: 16;\nuniform float pixelStrideZCutoff: 50; \nuniform float screenEdgeFadeStart: 0.9; \nuniform float eyeFadeStart : 0.2; uniform float eyeFadeEnd: 0.8; \nuniform float minGlossiness: 0.2; uniform float zThicknessThreshold: 1;\n\nuniform float nearZ;\nuniform vec2 viewportSize : VIEWPORT_SIZE;\n\nuniform float jitterOffset: 0;\n\nvarying vec2 v_Texcoord;\n\n#ifdef DEPTH_DECODE\n@import clay.util.decode_float\n#endif\n\n#ifdef PHYSICALLY_CORRECT\nuniform sampler2D normalDistribution;\nuniform float sampleOffset: 0;\nuniform vec2 normalDistributionSize;\n\nvec3 transformNormal(vec3 H, vec3 N) {\n vec3 upVector = N.y > 0.999 ? vec3(1.0, 0.0, 0.0) : vec3(0.0, 1.0, 0.0);\n vec3 tangentX = normalize(cross(N, upVector));\n vec3 tangentZ = cross(N, tangentX);\n return normalize(tangentX * H.x + N * H.y + tangentZ * H.z);\n}\nvec3 importanceSampleNormalGGX(float i, float roughness, vec3 N) {\n float p = fract((i + sampleOffset) / float(TOTAL_SAMPLES));\n vec3 H = texture2D(normalDistribution,vec2(roughness, p)).rgb;\n return transformNormal(H, N);\n}\nfloat G_Smith(float g, float ndv, float ndl) {\n float roughness = 1.0 - g;\n float k = roughness * roughness / 2.0;\n float G1V = ndv / (ndv * (1.0 - k) + k);\n float G1L = ndl / (ndl * (1.0 - k) + k);\n return G1L * G1V;\n}\nvec3 F_Schlick(float ndv, vec3 spec) {\n return spec + (1.0 - spec) * pow(1.0 - ndv, 5.0);\n}\n#endif\n\nfloat fetchDepth(sampler2D depthTexture, vec2 uv)\n{\n vec4 depthTexel = texture2D(depthTexture, uv);\n return depthTexel.r * 2.0 - 1.0;\n}\n\nfloat linearDepth(float depth)\n{\n if (projection[3][3] == 0.0) {\n return projection[3][2] / (depth * projection[2][3] - projection[2][2]);\n }\n else {\n return (depth - projection[3][2]) / projection[2][2];\n }\n}\n\nbool rayIntersectDepth(float rayZNear, float rayZFar, vec2 hitPixel)\n{\n if (rayZFar > rayZNear)\n {\n float t = rayZFar; rayZFar = rayZNear; rayZNear = t;\n }\n float cameraZ = linearDepth(fetchDepth(gBufferTexture2, hitPixel));\n return rayZFar <= cameraZ && rayZNear >= cameraZ - zThicknessThreshold;\n}\n\n\nbool traceScreenSpaceRay(\n vec3 rayOrigin, vec3 rayDir, float jitter,\n out vec2 hitPixel, out vec3 hitPoint, out float iterationCount\n)\n{\n float rayLength = ((rayOrigin.z + rayDir.z * maxRayDistance) > -nearZ)\n ? (-nearZ - rayOrigin.z) / rayDir.z : maxRayDistance;\n\n vec3 rayEnd = rayOrigin + rayDir * rayLength;\n\n vec4 H0 = projection * vec4(rayOrigin, 1.0);\n vec4 H1 = projection * vec4(rayEnd, 1.0);\n\n float k0 = 1.0 / H0.w, k1 = 1.0 / H1.w;\n\n vec3 Q0 = rayOrigin * k0, Q1 = rayEnd * k1;\n\n vec2 P0 = (H0.xy * k0 * 0.5 + 0.5) * viewportSize;\n vec2 P1 = (H1.xy * k1 * 0.5 + 0.5) * viewportSize;\n\n P1 += dot(P1 - P0, P1 - P0) < 0.0001 ? 0.01 : 0.0;\n vec2 delta = P1 - P0;\n\n bool permute = false;\n if (abs(delta.x) < abs(delta.y)) {\n permute = true;\n delta = delta.yx;\n P0 = P0.yx;\n P1 = P1.yx;\n }\n float stepDir = sign(delta.x);\n float invdx = stepDir / delta.x;\n\n vec3 dQ = (Q1 - Q0) * invdx;\n float dk = (k1 - k0) * invdx;\n\n vec2 dP = vec2(stepDir, delta.y * invdx);\n\n float strideScaler = 1.0 - min(1.0, -rayOrigin.z / pixelStrideZCutoff);\n float pixStride = 1.0 + strideScaler * pixelStride;\n\n dP *= pixStride; dQ *= pixStride; dk *= pixStride;\n\n vec4 pqk = vec4(P0, Q0.z, k0);\n vec4 dPQK = vec4(dP, dQ.z, dk);\n\n pqk += dPQK * jitter;\n float rayZFar = (dPQK.z * 0.5 + pqk.z) / (dPQK.w * 0.5 + pqk.w);\n float rayZNear;\n\n bool intersect = false;\n\n vec2 texelSize = 1.0 / viewportSize;\n\n iterationCount = 0.0;\n\n for (int i = 0; i < MAX_ITERATION; i++)\n {\n pqk += dPQK;\n\n rayZNear = rayZFar;\n rayZFar = (dPQK.z * 0.5 + pqk.z) / (dPQK.w * 0.5 + pqk.w);\n\n hitPixel = permute ? pqk.yx : pqk.xy;\n hitPixel *= texelSize;\n\n intersect = rayIntersectDepth(rayZNear, rayZFar, hitPixel);\n\n iterationCount += 1.0;\n\n dPQK *= 1.2;\n\n if (intersect) {\n break;\n }\n }\n\n Q0.xy += dQ.xy * iterationCount;\n Q0.z = pqk.z;\n hitPoint = Q0 / pqk.w;\n\n return intersect;\n}\n\nfloat calculateAlpha(\n float iterationCount, float reflectivity,\n vec2 hitPixel, vec3 hitPoint, float dist, vec3 rayDir\n)\n{\n float alpha = clamp(reflectivity, 0.0, 1.0);\n alpha *= 1.0 - (iterationCount / float(MAX_ITERATION));\n vec2 hitPixelNDC = hitPixel * 2.0 - 1.0;\n float maxDimension = min(1.0, max(abs(hitPixelNDC.x), abs(hitPixelNDC.y)));\n alpha *= 1.0 - max(0.0, maxDimension - screenEdgeFadeStart) / (1.0 - screenEdgeFadeStart);\n\n float _eyeFadeStart = eyeFadeStart;\n float _eyeFadeEnd = eyeFadeEnd;\n if (_eyeFadeStart > _eyeFadeEnd) {\n float tmp = _eyeFadeEnd;\n _eyeFadeEnd = _eyeFadeStart;\n _eyeFadeStart = tmp;\n }\n\n float eyeDir = clamp(rayDir.z, _eyeFadeStart, _eyeFadeEnd);\n alpha *= 1.0 - (eyeDir - _eyeFadeStart) / (_eyeFadeEnd - _eyeFadeStart);\n\n alpha *= 1.0 - clamp(dist / maxRayDistance, 0.0, 1.0);\n\n return alpha;\n}\n\n@import clay.util.rand\n\n@import clay.util.rgbm\n\nvoid main()\n{\n vec4 normalAndGloss = texture2D(gBufferTexture1, v_Texcoord);\n\n if (dot(normalAndGloss.rgb, vec3(1.0)) == 0.0) {\n discard;\n }\n\n float g = normalAndGloss.a;\n#if !defined(PHYSICALLY_CORRECT)\n if (g <= minGlossiness) {\n discard;\n }\n#endif\n\n float reflectivity = (g - minGlossiness) / (1.0 - minGlossiness);\n\n vec3 N = normalize(normalAndGloss.rgb * 2.0 - 1.0);\n N = normalize((toViewSpace * vec4(N, 0.0)).xyz);\n\n vec4 projectedPos = vec4(v_Texcoord * 2.0 - 1.0, fetchDepth(gBufferTexture2, v_Texcoord), 1.0);\n vec4 pos = projectionInv * projectedPos;\n vec3 rayOrigin = pos.xyz / pos.w;\n vec3 V = -normalize(rayOrigin);\n\n float ndv = clamp(dot(N, V), 0.0, 1.0);\n float iterationCount;\n float jitter = rand(fract(v_Texcoord + jitterOffset));\n\n#ifdef PHYSICALLY_CORRECT\n vec4 color = vec4(vec3(0.0), 1.0);\n vec4 albedoMetalness = texture2D(gBufferTexture3, v_Texcoord);\n vec3 albedo = albedoMetalness.rgb;\n float m = albedoMetalness.a;\n vec3 diffuseColor = albedo * (1.0 - m);\n vec3 spec = mix(vec3(0.04), albedo, m);\n\n float jitter2 = rand(fract(v_Texcoord)) * float(TOTAL_SAMPLES);\n\n for (int i = 0; i < SAMPLE_PER_FRAME; i++) {\n vec3 H = importanceSampleNormalGGX(float(i) + jitter2, 1.0 - g, N);\n vec3 rayDir = normalize(reflect(-V, H));\n#else\n vec3 rayDir = normalize(reflect(-V, N));\n#endif\n vec2 hitPixel;\n vec3 hitPoint;\n\n bool intersect = traceScreenSpaceRay(rayOrigin, rayDir, jitter, hitPixel, hitPoint, iterationCount);\n\n float dist = distance(rayOrigin, hitPoint);\n\n vec3 hitNormal = texture2D(gBufferTexture1, hitPixel).rgb * 2.0 - 1.0;\n hitNormal = normalize((toViewSpace * vec4(hitNormal, 0.0)).xyz);\n#ifdef PHYSICALLY_CORRECT\n float ndl = clamp(dot(N, rayDir), 0.0, 1.0);\n float vdh = clamp(dot(V, H), 0.0, 1.0);\n float ndh = clamp(dot(N, H), 0.0, 1.0);\n vec3 litTexel = vec3(0.0);\n if (dot(hitNormal, rayDir) < 0.0 && intersect) {\n litTexel = texture2D(sourceTexture, hitPixel).rgb;\n litTexel *= pow(clamp(1.0 - dist / 200.0, 0.0, 1.0), 3.0);\n\n }\n else {\n #ifdef SPECULARCUBEMAP_ENABLED\n vec3 rayDirW = normalize(toWorldSpace * vec4(rayDir, 0.0)).rgb;\n litTexel = RGBMDecode(textureCubeLodEXT(specularCubemap, rayDirW, 0.0), 8.12).rgb * specularIntensity;\n#endif\n }\n color.rgb += ndl * litTexel * (\n F_Schlick(ndl, spec) * G_Smith(g, ndv, ndl) * vdh / (ndh * ndv + 0.001)\n );\n }\n color.rgb /= float(SAMPLE_PER_FRAME);\n#else\n #if !defined(SPECULARCUBEMAP_ENABLED)\n if (dot(hitNormal, rayDir) >= 0.0) {\n discard;\n }\n if (!intersect) {\n discard;\n }\n#endif\n float alpha = clamp(calculateAlpha(iterationCount, reflectivity, hitPixel, hitPoint, dist, rayDir), 0.0, 1.0);\n vec4 color = texture2D(sourceTexture, hitPixel);\n color.rgb *= alpha;\n\n#ifdef SPECULARCUBEMAP_ENABLED\n vec3 rayDirW = normalize(toWorldSpace * vec4(rayDir, 0.0)).rgb;\n alpha = alpha * (intersect ? 1.0 : 0.0);\n float bias = (1.0 -g) * 5.0;\n color.rgb += (1.0 - alpha)\n * RGBMDecode(textureCubeLodEXT(specularCubemap, rayDirW, bias), 8.12).rgb\n * specularIntensity;\n#endif\n\n#endif\n\n gl_FragColor = encodeHDR(color);\n}\n@end\n\n@export ecgl.ssr.blur\n\nuniform sampler2D texture;\nuniform sampler2D gBufferTexture1;\nuniform sampler2D gBufferTexture2;\nuniform mat4 projection;\nuniform float depthRange : 0.05;\n\nvarying vec2 v_Texcoord;\n\nuniform vec2 textureSize;\nuniform float blurSize : 1.0;\n\n#ifdef BLEND\n #ifdef SSAOTEX_ENABLED\nuniform sampler2D ssaoTex;\n #endif\nuniform sampler2D sourceTexture;\n#endif\n\nfloat getLinearDepth(vec2 coord)\n{\n float depth = texture2D(gBufferTexture2, coord).r * 2.0 - 1.0;\n return projection[3][2] / (depth * projection[2][3] - projection[2][2]);\n}\n\n@import clay.util.rgbm\n\n\nvoid main()\n{\n @import clay.compositor.kernel.gaussian_9\n\n vec4 centerNTexel = texture2D(gBufferTexture1, v_Texcoord);\n float g = centerNTexel.a;\n float maxBlurSize = clamp(1.0 - g, 0.0, 1.0) * blurSize;\n#ifdef VERTICAL\n vec2 off = vec2(0.0, maxBlurSize / textureSize.y);\n#else\n vec2 off = vec2(maxBlurSize / textureSize.x, 0.0);\n#endif\n\n vec2 coord = v_Texcoord;\n\n vec4 sum = vec4(0.0);\n float weightAll = 0.0;\n\n vec3 cN = centerNTexel.rgb * 2.0 - 1.0;\n float cD = getLinearDepth(v_Texcoord);\n for (int i = 0; i < 9; i++) {\n vec2 coord = clamp((float(i) - 4.0) * off + v_Texcoord, vec2(0.0), vec2(1.0));\n float w = gaussianKernel[i]\n * clamp(dot(cN, texture2D(gBufferTexture1, coord).rgb * 2.0 - 1.0), 0.0, 1.0);\n float d = getLinearDepth(coord);\n w *= (1.0 - smoothstep(abs(cD - d) / depthRange, 0.0, 1.0));\n\n weightAll += w;\n sum += decodeHDR(texture2D(texture, coord)) * w;\n }\n\n#ifdef BLEND\n float aoFactor = 1.0;\n #ifdef SSAOTEX_ENABLED\n aoFactor = texture2D(ssaoTex, v_Texcoord).r;\n #endif\n gl_FragColor = encodeHDR(\n sum / weightAll * aoFactor + decodeHDR(texture2D(sourceTexture, v_Texcoord))\n );\n#else\n gl_FragColor = encodeHDR(sum / weightAll);\n#endif\n}\n\n@end"),rl.prototype.setAmbientCubemap=function(t,e){this._ssrPass.material.set("specularCubemap",t),this._ssrPass.material.set("specularIntensity",e);var n=t&&e;this._ssrPass.material[n?"enableTexture":"disableTexture"]("specularCubemap")},rl.prototype.update=function(t,e,n,i){var r=t.getWidth(),o=t.getHeight(),a=this._ssrTexture,s=this._texture2,l=this._texture3;a.width=this._prevTexture.width=this._currentTexture.width=r/this._downScale,a.height=this._prevTexture.height=this._currentTexture.height=o/this._downScale,s.width=l.width=r,s.height=l.height=o;var h=this._frameBuffer,c=this._ssrPass,u=this._blurPass1,d=this._blurPass2,p=this._blendPass,f=new An,g=new An;An.transpose(f,e.worldTransform),An.transpose(g,e.viewMatrix),c.setUniform("sourceTexture",n),c.setUniform("projection",e.projectionMatrix.array),c.setUniform("projectionInv",e.invProjectionMatrix.array),c.setUniform("toViewSpace",f.array),c.setUniform("toWorldSpace",g.array),c.setUniform("nearZ",e.near);var m=i/this._totalSamples*this._samplePerFrame;if(c.setUniform("jitterOffset",m),c.setUniform("sampleOffset",i*this._samplePerFrame),u.setUniform("textureSize",[a.width,a.height]),d.setUniform("textureSize",[r,o]),d.setUniform("sourceTexture",n),u.setUniform("projection",e.projectionMatrix.array),d.setUniform("projection",e.projectionMatrix.array),h.attach(a),h.bind(t),c.render(t),this._physicallyCorrect&&(h.attach(this._currentTexture),p.setUniform("texture1",this._prevTexture),p.setUniform("texture2",a),p.material.set({weight1:i>=1?.95:0,weight2:i>=1?.05:1}),p.render(t)),h.attach(s),u.setUniform("texture",this._physicallyCorrect?this._currentTexture:a),u.render(t),h.attach(l),d.setUniform("texture",s),d.render(t),h.unbind(t),this._physicallyCorrect){var v=this._prevTexture;this._prevTexture=this._currentTexture,this._currentTexture=v}},rl.prototype.getTargetTexture=function(){return this._texture3},rl.prototype.setParameter=function(t,e){"maxIteration"===t?this._ssrPass.material.define("fragment","MAX_ITERATION",e):this._ssrPass.setUniform(t,e)},rl.prototype.setPhysicallyCorrect=function(t){t?(this._normalDistribution||(this._normalDistribution=uo.generateNormalDistribution(64,this._totalSamples)),this._ssrPass.material.define("fragment","PHYSICALLY_CORRECT"),this._ssrPass.material.set("normalDistribution",this._normalDistribution),this._ssrPass.material.set("normalDistributionSize",[64,this._totalSamples])):this._ssrPass.material.undefine("fragment","PHYSICALLY_CORRECT"),this._physicallyCorrect=t},rl.prototype.setSSAOTexture=function(t){var e=this._blurPass2;t?(e.material.enableTexture("ssaoTex"),e.material.set("ssaoTex",t)):e.material.disableTexture("ssaoTex")},rl.prototype.isFinished=function(t){return!this._physicallyCorrect||t>this._totalSamples/this._samplePerFrame},rl.prototype.dispose=function(t){this._ssrTexture.dispose(t),this._texture2.dispose(t),this._texture3.dispose(t),this._prevTexture.dispose(t),this._currentTexture.dispose(t),this._frameBuffer.dispose(t)};const ol=rl,al=[0,0,-.321585265978,-.154972575841,.458126042375,.188473391593,.842080129861,.527766490688,.147304551086,-.659453822776,-.331943915203,-.940619700594,.0479226680259,.54812163202,.701581552186,-.709825561388,-.295436780218,.940589268233,-.901489676764,.237713156085,.973570876096,-.109899459384,-.866792314779,-.451805525005,.330975007087,.800048655954,-.344275183665,.381779221166,-.386139432542,-.437418421534,-.576478634965,-.0148463392551,.385798197415,-.262426961053,-.666302061145,.682427250835,-.628010632582,-.732836215494,.10163141741,-.987658134403,.711995289051,-.320024291314,.0296005138058,.950296523438,.0130612307608,-.351024443122,-.879596633704,-.10478487883,.435712737232,.504254490347,.779203817497,.206477676721,.388264289969,-.896736162545,-.153106280781,-.629203242522,-.245517550697,.657969239148,.126830499058,.26862328493,-.634888119007,-.302301223431,.617074219636,.779817204925];function sl(t,e,n,i,r){var o=t.gl;e.setUniform(o,"1i",n,r),o.activeTexture(o.TEXTURE0+r),i.isRenderable()?i.bind(t):i.unbind(t)}function ll(t,e,n,i,r){var o,a,s,l,h=t.gl;return function(r,c,u){if(!l||l.material!==r.material){var d=r.material,p=r.__program,f=d.get("roughness");null==f&&(f=1);var g=d.get("normalMap")||e,m=d.get("roughnessMap"),v=d.get("bumpMap"),y=d.get("uvRepeat"),_=d.get("uvOffset"),x=d.get("detailUvRepeat"),b=d.get("detailUvOffset"),w=!!v&&d.isTextureEnabled("bumpMap"),S=!!m&&d.isTextureEnabled("roughnessMap"),T=d.isDefined("fragment","DOUBLE_SIDED");v=v||n,m=m||i,u!==c?(c.set("normalMap",g),c.set("bumpMap",v),c.set("roughnessMap",m),c.set("useBumpMap",w),c.set("useRoughnessMap",S),c.set("doubleSide",T),null!=y&&c.set("uvRepeat",y),null!=_&&c.set("uvOffset",_),null!=x&&c.set("detailUvRepeat",x),null!=b&&c.set("detailUvOffset",b),c.set("roughness",f)):(p.setUniform(h,"1f","roughness",f),o!==g&&sl(t,p,"normalMap",g,0),a!==v&&v&&sl(t,p,"bumpMap",v,1),s!==m&&m&&sl(t,p,"roughnessMap",m,2),null!=y&&p.setUniform(h,"2f","uvRepeat",y),null!=_&&p.setUniform(h,"2f","uvOffset",_),null!=x&&p.setUniform(h,"2f","detailUvRepeat",x),null!=b&&p.setUniform(h,"2f","detailUvOffset",b),p.setUniform(h,"1i","useBumpMap",+w),p.setUniform(h,"1i","useRoughnessMap",+S),p.setUniform(h,"1i","doubleSide",+T)),o=g,a=v,s=m,l=r}}}function hl(t){t=t||{},this._depthTex=new fi({format:ai.DEPTH_COMPONENT,type:ai.UNSIGNED_INT}),this._normalTex=new fi({type:ai.HALF_FLOAT}),this._framebuffer=new Ir,this._framebuffer.attach(this._normalTex),this._framebuffer.attach(this._depthTex,Ir.DEPTH_ATTACHMENT),this._normalMaterial=new Ht({shader:new Ce(Ce.source("ecgl.normal.vertex"),Ce.source("ecgl.normal.fragment"))}),this._normalMaterial.enableTexture(["normalMap","bumpMap","roughnessMap"]),this._defaultNormalMap=Jr.createBlank("#000"),this._defaultBumpMap=Jr.createBlank("#000"),this._defaultRoughessMap=Jr.createBlank("#000"),this._debugPass=new lo({fragment:Ce.source("clay.compositor.output")}),this._debugPass.setUniform("texture",this._normalTex),this._debugPass.material.undefine("fragment","OUTPUT_ALPHA")}Ce.import("@export ecgl.normal.vertex\n\n@import ecgl.common.transformUniforms\n\n@import ecgl.common.uv.header\n\n@import ecgl.common.attributes\n\nvarying vec3 v_Normal;\nvarying vec3 v_WorldPosition;\n\n@import ecgl.common.normalMap.vertexHeader\n\n@import ecgl.common.vertexAnimation.header\n\nvoid main()\n{\n\n @import ecgl.common.vertexAnimation.main\n\n @import ecgl.common.uv.main\n\n v_Normal = normalize((worldInverseTranspose * vec4(normal, 0.0)).xyz);\n v_WorldPosition = (world * vec4(pos, 1.0)).xyz;\n\n @import ecgl.common.normalMap.vertexMain\n\n gl_Position = worldViewProjection * vec4(pos, 1.0);\n\n}\n\n\n@end\n\n\n@export ecgl.normal.fragment\n\n#define ROUGHNESS_CHANEL 0\n\nuniform bool useBumpMap;\nuniform bool useRoughnessMap;\nuniform bool doubleSide;\nuniform float roughness;\n\n@import ecgl.common.uv.fragmentHeader\n\nvarying vec3 v_Normal;\nvarying vec3 v_WorldPosition;\n\nuniform mat4 viewInverse : VIEWINVERSE;\n\n@import ecgl.common.normalMap.fragmentHeader\n@import ecgl.common.bumpMap.header\n\nuniform sampler2D roughnessMap;\n\nvoid main()\n{\n vec3 N = v_Normal;\n \n bool flipNormal = false;\n if (doubleSide) {\n vec3 eyePos = viewInverse[3].xyz;\n vec3 V = normalize(eyePos - v_WorldPosition);\n\n if (dot(N, V) < 0.0) {\n flipNormal = true;\n }\n }\n\n @import ecgl.common.normalMap.fragmentMain\n\n if (useBumpMap) {\n N = bumpNormal(v_WorldPosition, v_Normal, N);\n }\n\n float g = 1.0 - roughness;\n\n if (useRoughnessMap) {\n float g2 = 1.0 - texture2D(roughnessMap, v_DetailTexcoord)[ROUGHNESS_CHANEL];\n g = clamp(g2 + (g - 0.5) * 2.0, 0.0, 1.0);\n }\n\n if (flipNormal) {\n N = -N;\n }\n\n gl_FragColor.rgb = (N.xyz + 1.0) * 0.5;\n gl_FragColor.a = g;\n}\n@end"),hl.prototype.getDepthTexture=function(){return this._depthTex},hl.prototype.getNormalTexture=function(){return this._normalTex},hl.prototype.update=function(t,e,n){var i=t.getWidth(),r=t.getHeight(),o=this._depthTex,a=this._normalTex,s=this._normalMaterial;o.width=i,o.height=r,a.width=i,a.height=r;var l=e.getRenderList(n).opaque;this._framebuffer.bind(t),t.gl.clearColor(0,0,0,0),t.gl.clear(t.gl.COLOR_BUFFER_BIT|t.gl.DEPTH_BUFFER_BIT),t.gl.disable(t.gl.BLEND),t.renderPass(l,n,{getMaterial:function(){return s},ifRender:function(t){return t.renderNormal},beforeRender:ll(t,this._defaultNormalMap,this._defaultBumpMap,this._defaultRoughessMap,this._normalMaterial),sort:t.opaqueSortCompare}),this._framebuffer.unbind(t)},hl.prototype.renderDebug=function(t){this._debugPass.render(t)},hl.prototype.dispose=function(t){this._depthTex.dispose(t),this._normalTex.dispose(t)};const cl=hl;function ul(t){t=t||{},this._edgePass=new lo({fragment:Ce.source("ecgl.edge")}),this._edgePass.setUniform("normalTexture",t.normalTexture),this._edgePass.setUniform("depthTexture",t.depthTexture),this._targetTexture=new fi({type:ai.HALF_FLOAT}),this._frameBuffer=new Ir,this._frameBuffer.attach(this._targetTexture)}ul.prototype.update=function(t,e,n,i){var r=t.getWidth(),o=t.getHeight(),a=this._targetTexture;a.width=r,a.height=o;var s=this._frameBuffer;s.bind(t),this._edgePass.setUniform("projectionInv",e.invProjectionMatrix.array),this._edgePass.setUniform("textureSize",[r,o]),this._edgePass.setUniform("texture",n),this._edgePass.render(t),s.unbind(t)},ul.prototype.getTargetTexture=function(){return this._targetTexture},ul.prototype.setParameter=function(t,e){this._edgePass.setUniform(t,e)},ul.prototype.dispose=function(t){this._targetTexture.dispose(t),this._frameBuffer.dispose(t)};const dl=ul,pl={type:"compositor",nodes:[{name:"source",type:"texture",outputs:{color:{}}},{name:"source_half",shader:"#source(clay.compositor.downsample)",inputs:{texture:"source"},outputs:{color:{parameters:{width:"expr(width * 1.0 / 2)",height:"expr(height * 1.0 / 2)",type:"HALF_FLOAT"}}},parameters:{textureSize:"expr( [width * 1.0, height * 1.0] )"}},{name:"bright",shader:"#source(clay.compositor.bright)",inputs:{texture:"source_half"},outputs:{color:{parameters:{width:"expr(width * 1.0 / 2)",height:"expr(height * 1.0 / 2)",type:"HALF_FLOAT"}}},parameters:{threshold:2,scale:4,textureSize:"expr([width * 1.0 / 2, height / 2])"}},{name:"bright_downsample_4",shader:"#source(clay.compositor.downsample)",inputs:{texture:"bright"},outputs:{color:{parameters:{width:"expr(width * 1.0 / 4)",height:"expr(height * 1.0 / 4)",type:"HALF_FLOAT"}}},parameters:{textureSize:"expr( [width * 1.0 / 2, height / 2] )"}},{name:"bright_downsample_8",shader:"#source(clay.compositor.downsample)",inputs:{texture:"bright_downsample_4"},outputs:{color:{parameters:{width:"expr(width * 1.0 / 8)",height:"expr(height * 1.0 / 8)",type:"HALF_FLOAT"}}},parameters:{textureSize:"expr( [width * 1.0 / 4, height / 4] )"}},{name:"bright_downsample_16",shader:"#source(clay.compositor.downsample)",inputs:{texture:"bright_downsample_8"},outputs:{color:{parameters:{width:"expr(width * 1.0 / 16)",height:"expr(height * 1.0 / 16)",type:"HALF_FLOAT"}}},parameters:{textureSize:"expr( [width * 1.0 / 8, height / 8] )"}},{name:"bright_downsample_32",shader:"#source(clay.compositor.downsample)",inputs:{texture:"bright_downsample_16"},outputs:{color:{parameters:{width:"expr(width * 1.0 / 32)",height:"expr(height * 1.0 / 32)",type:"HALF_FLOAT"}}},parameters:{textureSize:"expr( [width * 1.0 / 16, height / 16] )"}},{name:"bright_upsample_16_blur_h",shader:"#source(clay.compositor.gaussian_blur)",inputs:{texture:"bright_downsample_32"},outputs:{color:{parameters:{width:"expr(width * 1.0 / 16)",height:"expr(height * 1.0 / 16)",type:"HALF_FLOAT"}}},parameters:{blurSize:1,blurDir:0,textureSize:"expr( [width * 1.0 / 32, height / 32] )"}},{name:"bright_upsample_16_blur_v",shader:"#source(clay.compositor.gaussian_blur)",inputs:{texture:"bright_upsample_16_blur_h"},outputs:{color:{parameters:{width:"expr(width * 1.0 / 16)",height:"expr(height * 1.0 / 16)",type:"HALF_FLOAT"}}},parameters:{blurSize:1,blurDir:1,textureSize:"expr( [width * 1.0 / 16, height * 1.0 / 16] )"}},{name:"bright_upsample_8_blur_h",shader:"#source(clay.compositor.gaussian_blur)",inputs:{texture:"bright_downsample_16"},outputs:{color:{parameters:{width:"expr(width * 1.0 / 8)",height:"expr(height * 1.0 / 8)",type:"HALF_FLOAT"}}},parameters:{blurSize:1,blurDir:0,textureSize:"expr( [width * 1.0 / 16, height * 1.0 / 16] )"}},{name:"bright_upsample_8_blur_v",shader:"#source(clay.compositor.gaussian_blur)",inputs:{texture:"bright_upsample_8_blur_h"},outputs:{color:{parameters:{width:"expr(width * 1.0 / 8)",height:"expr(height * 1.0 / 8)",type:"HALF_FLOAT"}}},parameters:{blurSize:1,blurDir:1,textureSize:"expr( [width * 1.0 / 8, height * 1.0 / 8] )"}},{name:"bright_upsample_8_blend",shader:"#source(clay.compositor.blend)",inputs:{texture1:"bright_upsample_8_blur_v",texture2:"bright_upsample_16_blur_v"},outputs:{color:{parameters:{width:"expr(width * 1.0 / 8)",height:"expr(height * 1.0 / 8)",type:"HALF_FLOAT"}}},parameters:{weight1:.3,weight2:.7}},{name:"bright_upsample_4_blur_h",shader:"#source(clay.compositor.gaussian_blur)",inputs:{texture:"bright_downsample_8"},outputs:{color:{parameters:{width:"expr(width * 1.0 / 4)",height:"expr(height * 1.0 / 4)",type:"HALF_FLOAT"}}},parameters:{blurSize:1,blurDir:0,textureSize:"expr( [width * 1.0 / 8, height * 1.0 / 8] )"}},{name:"bright_upsample_4_blur_v",shader:"#source(clay.compositor.gaussian_blur)",inputs:{texture:"bright_upsample_4_blur_h"},outputs:{color:{parameters:{width:"expr(width * 1.0 / 4)",height:"expr(height * 1.0 / 4)",type:"HALF_FLOAT"}}},parameters:{blurSize:1,blurDir:1,textureSize:"expr( [width * 1.0 / 4, height * 1.0 / 4] )"}},{name:"bright_upsample_4_blend",shader:"#source(clay.compositor.blend)",inputs:{texture1:"bright_upsample_4_blur_v",texture2:"bright_upsample_8_blend"},outputs:{color:{parameters:{width:"expr(width * 1.0 / 4)",height:"expr(height * 1.0 / 4)",type:"HALF_FLOAT"}}},parameters:{weight1:.3,weight2:.7}},{name:"bright_upsample_2_blur_h",shader:"#source(clay.compositor.gaussian_blur)",inputs:{texture:"bright_downsample_4"},outputs:{color:{parameters:{width:"expr(width * 1.0 / 2)",height:"expr(height * 1.0 / 2)",type:"HALF_FLOAT"}}},parameters:{blurSize:1,blurDir:0,textureSize:"expr( [width * 1.0 / 4, height * 1.0 / 4] )"}},{name:"bright_upsample_2_blur_v",shader:"#source(clay.compositor.gaussian_blur)",inputs:{texture:"bright_upsample_2_blur_h"},outputs:{color:{parameters:{width:"expr(width * 1.0 / 2)",height:"expr(height * 1.0 / 2)",type:"HALF_FLOAT"}}},parameters:{blurSize:1,blurDir:1,textureSize:"expr( [width * 1.0 / 2, height * 1.0 / 2] )"}},{name:"bright_upsample_2_blend",shader:"#source(clay.compositor.blend)",inputs:{texture1:"bright_upsample_2_blur_v",texture2:"bright_upsample_4_blend"},outputs:{color:{parameters:{width:"expr(width * 1.0 / 2)",height:"expr(height * 1.0 / 2)",type:"HALF_FLOAT"}}},parameters:{weight1:.3,weight2:.7}},{name:"bright_upsample_full_blur_h",shader:"#source(clay.compositor.gaussian_blur)",inputs:{texture:"bright"},outputs:{color:{parameters:{width:"expr(width * 1.0)",height:"expr(height * 1.0)",type:"HALF_FLOAT"}}},parameters:{blurSize:1,blurDir:0,textureSize:"expr( [width * 1.0 / 2, height * 1.0 / 2] )"}},{name:"bright_upsample_full_blur_v",shader:"#source(clay.compositor.gaussian_blur)",inputs:{texture:"bright_upsample_full_blur_h"},outputs:{color:{parameters:{width:"expr(width * 1.0)",height:"expr(height * 1.0)",type:"HALF_FLOAT"}}},parameters:{blurSize:1,blurDir:1,textureSize:"expr( [width * 1.0, height * 1.0] )"}},{name:"bloom_composite",shader:"#source(clay.compositor.blend)",inputs:{texture1:"bright_upsample_full_blur_v",texture2:"bright_upsample_2_blend"},outputs:{color:{parameters:{width:"expr(width * 1.0)",height:"expr(height * 1.0)",type:"HALF_FLOAT"}}},parameters:{weight1:.3,weight2:.7}},{name:"coc",shader:"#source(ecgl.dof.coc)",outputs:{color:{parameters:{minFilter:"NEAREST",magFilter:"NEAREST",width:"expr(width * 1.0)",height:"expr(height * 1.0)"}}},parameters:{focalDist:50,focalRange:30}},{name:"dof_far_blur",shader:"#source(ecgl.dof.diskBlur)",inputs:{texture:"source",coc:"coc"},outputs:{color:{parameters:{width:"expr(width * 1.0)",height:"expr(height * 1.0)",type:"HALF_FLOAT"}}},parameters:{textureSize:"expr( [width * 1.0, height * 1.0] )"}},{name:"dof_near_blur",shader:"#source(ecgl.dof.diskBlur)",inputs:{texture:"source",coc:"coc"},outputs:{color:{parameters:{width:"expr(width * 1.0)",height:"expr(height * 1.0)",type:"HALF_FLOAT"}}},parameters:{textureSize:"expr( [width * 1.0, height * 1.0] )"},defines:{BLUR_NEARFIELD:null}},{name:"dof_coc_blur",shader:"#source(ecgl.dof.diskBlur)",inputs:{texture:"coc"},outputs:{color:{parameters:{minFilter:"NEAREST",magFilter:"NEAREST",width:"expr(width * 1.0)",height:"expr(height * 1.0)"}}},parameters:{textureSize:"expr( [width * 1.0, height * 1.0] )"},defines:{BLUR_COC:null}},{name:"dof_composite",shader:"#source(ecgl.dof.composite)",inputs:{original:"source",blurred:"dof_far_blur",nearfield:"dof_near_blur",coc:"coc",nearcoc:"dof_coc_blur"},outputs:{color:{parameters:{width:"expr(width * 1.0)",height:"expr(height * 1.0)",type:"HALF_FLOAT"}}}},{name:"composite",shader:"#source(clay.compositor.hdr.composite)",inputs:{texture:"source",bloom:"bloom_composite"},outputs:{color:{parameters:{width:"expr(width * 1.0)",height:"expr(height * 1.0)"}}},defines:{}},{name:"FXAA",shader:"#source(clay.compositor.fxaa)",inputs:{texture:"composite"}}]};function fl(t,e){return{color:{parameters:{width:t,height:e}}}}Ce.import(Os),Ce.import(Ns),Ce.import(Fs),Ce.import(Bs),Ce.import(zs),Ce.import(Gs),Ce.import(Vs),Ce.import(js),Ce.import(Hs),Ce.import("@export ecgl.dof.coc\n\nuniform sampler2D depth;\n\nuniform float zNear: 0.1;\nuniform float zFar: 2000;\n\nuniform float focalDistance: 3;\nuniform float focalRange: 1;\nuniform float focalLength: 30;\nuniform float fstop: 2.8;\n\nvarying vec2 v_Texcoord;\n\n@import clay.util.encode_float\n\nvoid main()\n{\n float z = texture2D(depth, v_Texcoord).r * 2.0 - 1.0;\n\n float dist = 2.0 * zNear * zFar / (zFar + zNear - z * (zFar - zNear));\n\n float aperture = focalLength / fstop;\n\n float coc;\n\n float uppper = focalDistance + focalRange;\n float lower = focalDistance - focalRange;\n if (dist <= uppper && dist >= lower) {\n coc = 0.5;\n }\n else {\n float focalAdjusted = dist > uppper ? uppper : lower;\n\n coc = abs(aperture * (focalLength * (dist - focalAdjusted)) / (dist * (focalAdjusted - focalLength)));\n coc = clamp(coc, 0.0, 2.0) / 2.00001;\n\n if (dist < lower) {\n coc = -coc;\n }\n coc = coc * 0.5 + 0.5;\n }\n\n gl_FragColor = encodeFloat(coc);\n}\n@end\n\n\n@export ecgl.dof.composite\n\n#define DEBUG 0\n\nuniform sampler2D original;\nuniform sampler2D blurred;\nuniform sampler2D nearfield;\nuniform sampler2D coc;\nuniform sampler2D nearcoc;\nvarying vec2 v_Texcoord;\n\n@import clay.util.rgbm\n@import clay.util.float\n\nvoid main()\n{\n vec4 blurredColor = texture2D(blurred, v_Texcoord);\n vec4 originalColor = texture2D(original, v_Texcoord);\n\n float fCoc = decodeFloat(texture2D(coc, v_Texcoord));\n\n fCoc = abs(fCoc * 2.0 - 1.0);\n\n float weight = smoothstep(0.0, 1.0, fCoc);\n \n#ifdef NEARFIELD_ENABLED\n vec4 nearfieldColor = texture2D(nearfield, v_Texcoord);\n float fNearCoc = decodeFloat(texture2D(nearcoc, v_Texcoord));\n fNearCoc = abs(fNearCoc * 2.0 - 1.0);\n\n gl_FragColor = encodeHDR(\n mix(\n nearfieldColor, mix(originalColor, blurredColor, weight),\n pow(1.0 - fNearCoc, 4.0)\n )\n );\n#else\n gl_FragColor = encodeHDR(mix(originalColor, blurredColor, weight));\n#endif\n\n}\n\n@end\n\n\n\n@export ecgl.dof.diskBlur\n\n#define POISSON_KERNEL_SIZE 16;\n\nuniform sampler2D texture;\nuniform sampler2D coc;\nvarying vec2 v_Texcoord;\n\nuniform float blurRadius : 10.0;\nuniform vec2 textureSize : [512.0, 512.0];\n\nuniform vec2 poissonKernel[POISSON_KERNEL_SIZE];\n\nuniform float percent;\n\nfloat nrand(const in vec2 n) {\n return fract(sin(dot(n.xy ,vec2(12.9898,78.233))) * 43758.5453);\n}\n\n@import clay.util.rgbm\n@import clay.util.float\n\n\nvoid main()\n{\n vec2 offset = blurRadius / textureSize;\n\n float rnd = 6.28318 * nrand(v_Texcoord + 0.07 * percent );\n float cosa = cos(rnd);\n float sina = sin(rnd);\n vec4 basis = vec4(cosa, -sina, sina, cosa);\n\n#if !defined(BLUR_NEARFIELD) && !defined(BLUR_COC)\n offset *= abs(decodeFloat(texture2D(coc, v_Texcoord)) * 2.0 - 1.0);\n#endif\n\n#ifdef BLUR_COC\n float cocSum = 0.0;\n#else\n vec4 color = vec4(0.0);\n#endif\n\n\n float weightSum = 0.0;\n\n for (int i = 0; i < POISSON_KERNEL_SIZE; i++) {\n vec2 ofs = poissonKernel[i];\n\n ofs = vec2(dot(ofs, basis.xy), dot(ofs, basis.zw));\n\n vec2 uv = v_Texcoord + ofs * offset;\n vec4 texel = texture2D(texture, uv);\n\n float w = 1.0;\n#ifdef BLUR_COC\n float fCoc = decodeFloat(texel) * 2.0 - 1.0;\n cocSum += clamp(fCoc, -1.0, 0.0) * w;\n#else\n texel = texel;\n #if !defined(BLUR_NEARFIELD)\n float fCoc = decodeFloat(texture2D(coc, uv)) * 2.0 - 1.0;\n w *= abs(fCoc);\n #endif\n texel.rgb *= texel.a;\n color += texel * w;\n#endif\n\n weightSum += w;\n }\n\n#ifdef BLUR_COC\n gl_FragColor = encodeFloat(clamp(cocSum / weightSum, -1.0, 0.0) * 0.5 + 0.5);\n#else\n color /= weightSum;\n color.rgb /= (color.a + 0.0001);\n gl_FragColor = color;\n#endif\n}\n\n@end"),Ce.import("@export ecgl.edge\n\nuniform sampler2D texture;\n\nuniform sampler2D normalTexture;\nuniform sampler2D depthTexture;\n\nuniform mat4 projectionInv;\n\nuniform vec2 textureSize;\n\nuniform vec4 edgeColor: [0,0,0,0.8];\n\nvarying vec2 v_Texcoord;\n\nvec3 packColor(vec2 coord) {\n float z = texture2D(depthTexture, coord).r * 2.0 - 1.0;\n vec4 p = vec4(v_Texcoord * 2.0 - 1.0, z, 1.0);\n vec4 p4 = projectionInv * p;\n\n return vec3(\n texture2D(normalTexture, coord).rg,\n -p4.z / p4.w / 5.0\n );\n}\n\nvoid main() {\n vec2 cc = v_Texcoord;\n vec3 center = packColor(cc);\n\n float size = clamp(1.0 - (center.z - 10.0) / 100.0, 0.0, 1.0) * 0.5;\n float dx = size / textureSize.x;\n float dy = size / textureSize.y;\n\n vec2 coord;\n vec3 topLeft = packColor(cc+vec2(-dx, -dy));\n vec3 top = packColor(cc+vec2(0.0, -dy));\n vec3 topRight = packColor(cc+vec2(dx, -dy));\n vec3 left = packColor(cc+vec2(-dx, 0.0));\n vec3 right = packColor(cc+vec2(dx, 0.0));\n vec3 bottomLeft = packColor(cc+vec2(-dx, dy));\n vec3 bottom = packColor(cc+vec2(0.0, dy));\n vec3 bottomRight = packColor(cc+vec2(dx, dy));\n\n vec3 v = -topLeft-2.0*top-topRight+bottomLeft+2.0*bottom+bottomRight;\n vec3 h = -bottomLeft-2.0*left-topLeft+bottomRight+2.0*right+topRight;\n\n float edge = sqrt(dot(h, h) + dot(v, v));\n\n edge = smoothstep(0.8, 1.0, edge);\n\n gl_FragColor = mix(texture2D(texture, v_Texcoord), vec4(edgeColor.rgb, 1.0), edgeColor.a * edge);\n}\n@end");var gl=["composite","FXAA"];function ml(){this._width,this._height,this._dpr,this._sourceTexture=new fi({type:ai.HALF_FLOAT}),this._depthTexture=new fi({format:ai.DEPTH_COMPONENT,type:ai.UNSIGNED_INT}),this._framebuffer=new Ir,this._framebuffer.attach(this._sourceTexture),this._framebuffer.attach(this._depthTexture,Ir.DEPTH_ATTACHMENT),this._normalPass=new cl,this._compositor=Ks(pl);var t=this._compositor.getNodeByName("source");t.texture=this._sourceTexture;var e=this._compositor.getNodeByName("coc");this._sourceNode=t,this._cocNode=e,this._compositeNode=this._compositor.getNodeByName("composite"),this._fxaaNode=this._compositor.getNodeByName("FXAA"),this._dofBlurNodes=["dof_far_blur","dof_near_blur","dof_coc_blur"].map((function(t){return this._compositor.getNodeByName(t)}),this),this._dofBlurKernel=0,this._dofBlurKernelSize=new Float32Array(0),this._finalNodesChain=gl.map((function(t){return this._compositor.getNodeByName(t)}),this);var n={normalTexture:this._normalPass.getNormalTexture(),depthTexture:this._normalPass.getDepthTexture()};this._ssaoPass=new il(n),this._ssrPass=new ol(n),this._edgePass=new dl(n)}ml.prototype.resize=function(t,e,n){t*=n=n||1,e*=n;var i=this._sourceTexture,r=this._depthTexture;i.width=t,i.height=e,r.width=t,r.height=e;var o={getWidth:function(){return t},getHeight:function(){return e},getDevicePixelRatio:function(){return n}};function a(t,e){if("function"==typeof t[e]){var n=t[e].__original||t[e];t[e]=function(t){return n.call(this,o)},t[e].__original=n}}this._compositor.nodes.forEach((function(t){for(var e in t.outputs){var n=t.outputs[e].parameters;n&&(a(n,"width"),a(n,"height"))}for(var i in t.parameters)a(t.parameters,i)})),this._width=t,this._height=e,this._dpr=n},ml.prototype.getWidth=function(){return this._width},ml.prototype.getHeight=function(){return this._height},ml.prototype._ifRenderNormalPass=function(){return this._enableSSAO||this._enableEdge||this._enableSSR},ml.prototype._getPrevNode=function(t){for(var e=gl.indexOf(t.name)-1,n=this._finalNodesChain[e];n&&!this._compositor.getNodeByName(n.name);)e-=1,n=this._finalNodesChain[e];return n},ml.prototype._getNextNode=function(t){for(var e=gl.indexOf(t.name)+1,n=this._finalNodesChain[e];n&&!this._compositor.getNodeByName(n.name);)e+=1,n=this._finalNodesChain[e];return n},ml.prototype._addChainNode=function(t){var e=this._getPrevNode(t),n=this._getNextNode(t);e&&(t.inputs.texture=e.name,n?(t.outputs=fl(this.getWidth.bind(this),this.getHeight.bind(this)),n.inputs.texture=t.name):t.outputs=null,this._compositor.addNode(t))},ml.prototype._removeChainNode=function(t){var e=this._getPrevNode(t),n=this._getNextNode(t);e&&(n?(e.outputs=fl(this.getWidth.bind(this),this.getHeight.bind(this)),n.inputs.texture=e.name):e.outputs=null,this._compositor.removeNode(t))},ml.prototype.updateNormal=function(t,e,n,i){this._ifRenderNormalPass()&&this._normalPass.update(t,e,n)},ml.prototype.updateSSAO=function(t,e,n,i){this._ssaoPass.update(t,n,i)},ml.prototype.enableSSAO=function(){this._enableSSAO=!0},ml.prototype.disableSSAO=function(){this._enableSSAO=!1},ml.prototype.enableSSR=function(){this._enableSSR=!0},ml.prototype.disableSSR=function(){this._enableSSR=!1},ml.prototype.getSSAOTexture=function(){return this._ssaoPass.getTargetTexture()},ml.prototype.getSourceFrameBuffer=function(){return this._framebuffer},ml.prototype.getSourceTexture=function(){return this._sourceTexture},ml.prototype.disableFXAA=function(){this._removeChainNode(this._fxaaNode)},ml.prototype.enableFXAA=function(){this._addChainNode(this._fxaaNode)},ml.prototype.enableBloom=function(){this._compositeNode.inputs.bloom="bloom_composite",this._compositor.dirty()},ml.prototype.disableBloom=function(){this._compositeNode.inputs.bloom=null,this._compositor.dirty()},ml.prototype.enableDOF=function(){this._compositeNode.inputs.texture="dof_composite",this._compositor.dirty()},ml.prototype.disableDOF=function(){this._compositeNode.inputs.texture="source",this._compositor.dirty()},ml.prototype.enableColorCorrection=function(){this._compositeNode.define("COLOR_CORRECTION"),this._enableColorCorrection=!0},ml.prototype.disableColorCorrection=function(){this._compositeNode.undefine("COLOR_CORRECTION"),this._enableColorCorrection=!1},ml.prototype.enableEdge=function(){this._enableEdge=!0},ml.prototype.disableEdge=function(){this._enableEdge=!1},ml.prototype.setBloomIntensity=function(t){this._compositeNode.setParameter("bloomIntensity",t)},ml.prototype.setSSAOParameter=function(t,e){switch(t){case"quality":var n={low:6,medium:12,high:32,ultra:62}[e]||12;this._ssaoPass.setParameter("kernelSize",n);break;case"radius":this._ssaoPass.setParameter(t,e),this._ssaoPass.setParameter("bias",e/200);break;case"intensity":this._ssaoPass.setParameter(t,e)}},ml.prototype.setDOFParameter=function(t,e){switch(t){case"focalDistance":case"focalRange":case"fstop":this._cocNode.setParameter(t,e);break;case"blurRadius":for(var n=0;n<this._dofBlurNodes.length;n++)this._dofBlurNodes[n].setParameter("blurRadius",e);break;case"quality":var i={low:4,medium:8,high:16,ultra:32}[e]||8;this._dofBlurKernelSize=i;for(n=0;n<this._dofBlurNodes.length;n++)this._dofBlurNodes[n].pass.material.define("POISSON_KERNEL_SIZE",i);this._dofBlurKernel=new Float32Array(2*i)}},ml.prototype.setSSRParameter=function(t,e){if(null!=e)switch(t){case"quality":var n={low:10,medium:15,high:30,ultra:80}[e]||20,i={low:32,medium:16,high:8,ultra:4}[e]||16;this._ssrPass.setParameter("maxIteration",n),this._ssrPass.setParameter("pixelStride",i);break;case"maxRoughness":this._ssrPass.setParameter("minGlossiness",Math.max(Math.min(1-e,1),0));break;case"physical":this.setPhysicallyCorrectSSR(e);break;default:console.warn("Unkown SSR parameter "+t)}},ml.prototype.setPhysicallyCorrectSSR=function(t){this._ssrPass.setPhysicallyCorrect(t)},ml.prototype.setEdgeColor=function(t){var e=ia.parseColor(t);this._edgePass.setParameter("edgeColor",e)},ml.prototype.setExposure=function(t){this._compositeNode.setParameter("exposure",Math.pow(2,t))},ml.prototype.setColorLookupTexture=function(t,e){this._compositeNode.pass.material.setTextureImage("lut",this._enableColorCorrection?t:"none",e,{minFilter:ia.Texture.NEAREST,magFilter:ia.Texture.NEAREST,flipY:!1})},ml.prototype.setColorCorrection=function(t,e){this._compositeNode.setParameter(t,e)},ml.prototype.isSSREnabled=function(){return this._enableSSR},ml.prototype.composite=function(t,e,n,i,r){var o=this._sourceTexture,a=o;this._enableEdge&&(this._edgePass.update(t,n,o,r),o=a=this._edgePass.getTargetTexture()),this._enableSSR&&(this._ssrPass.update(t,n,o,r),a=this._ssrPass.getTargetTexture(),this._ssrPass.setSSAOTexture(this._enableSSAO?this._ssaoPass.getTargetTexture():null)),this._sourceNode.texture=a,this._cocNode.setParameter("depth",this._depthTexture);for(var s=this._dofBlurKernel,l=this._dofBlurKernelSize,h=r%Math.floor(al.length/2/l),c=0;c<2*l;c++)s[c]=al[c+h*l*2];for(c=0;c<this._dofBlurNodes.length;c++)this._dofBlurNodes[c].setParameter("percent",r/30),this._dofBlurNodes[c].setParameter("poissonKernel",s);this._cocNode.setParameter("zNear",n.near),this._cocNode.setParameter("zFar",n.far),this._compositor.render(t,i)},ml.prototype.dispose=function(t){this._sourceTexture.dispose(t),this._depthTexture.dispose(t),this._framebuffer.dispose(t),this._compositor.dispose(t),this._normalPass.dispose(t),this._ssaoPass.dispose(t)};const vl=ml;function yl(t){for(var e=[],n=0;n<30;n++)e.push([Js(n,2),Js(n,3)]);this._haltonSequence=e,this._frame=0,this._sourceTex=new fi,this._sourceFb=new Ir,this._sourceFb.attach(this._sourceTex),this._prevFrameTex=new fi,this._outputTex=new fi;var i=this._blendPass=new lo({fragment:Ce.source("clay.compositor.blend")});i.material.disableTexturesAll(),i.material.enableTexture(["texture1","texture2"]),this._blendFb=new Ir({depthBuffer:!1}),this._outputPass=new lo({fragment:Ce.source("clay.compositor.output"),blendWithPrevious:!0}),this._outputPass.material.define("fragment","OUTPUT_ALPHA"),this._outputPass.material.blend=function(t){t.blendEquationSeparate(t.FUNC_ADD,t.FUNC_ADD),t.blendFuncSeparate(t.ONE,t.ONE_MINUS_SRC_ALPHA,t.ONE,t.ONE_MINUS_SRC_ALPHA)}}yl.prototype={constructor:yl,jitterProjection:function(t,e){var n=t.viewport,i=n.devicePixelRatio||t.getDevicePixelRatio(),r=n.width*i,o=n.height*i,a=this._haltonSequence[this._frame%this._haltonSequence.length],s=new An;s.array[12]=(2*a[0]-1)/r,s.array[13]=(2*a[1]-1)/o,An.mul(e.projectionMatrix,s,e.projectionMatrix),An.invert(e.invProjectionMatrix,e.projectionMatrix)},resetFrame:function(){this._frame=0},getFrame:function(){return this._frame},getSourceFrameBuffer:function(){return this._sourceFb},getOutputTexture:function(){return this._outputTex},resize:function(t,e){this._prevFrameTex.width=t,this._prevFrameTex.height=e,this._outputTex.width=t,this._outputTex.height=e,this._sourceTex.width=t,this._sourceTex.height=e,this._prevFrameTex.dirty(),this._outputTex.dirty(),this._sourceTex.dirty()},isFinished:function(){return this._frame>=this._haltonSequence.length},render:function(t,e,n){var i=this._blendPass;0===this._frame?(i.setUniform("weight1",0),i.setUniform("weight2",1)):(i.setUniform("weight1",.9),i.setUniform("weight2",.1)),i.setUniform("texture1",this._prevFrameTex),i.setUniform("texture2",e||this._sourceTex),this._blendFb.attach(this._outputTex),this._blendFb.bind(t),i.render(t),this._blendFb.unbind(t),n||(this._outputPass.setUniform("texture",this._outputTex),this._outputPass.render(t));var r=this._prevFrameTex;this._prevFrameTex=this._outputTex,this._outputTex=r,this._frame++},dispose:function(t){this._sourceFb.dispose(t),this._blendFb.dispose(t),this._prevFrameTex.dispose(t),this._outputTex.dispose(t),this._sourceTex.dispose(t),this._outputPass.dispose(t),this._blendPass.dispose(t)}};const _l=yl;function xl(t){t=t||"perspective",this.layer=null,this.scene=new lr,this.rootNode=this.scene,this.viewport={x:0,y:0,width:0,height:0},this.setProjection(t),this._compositor=new vl,this._temporalSS=new _l,this._shadowMapPass=new Cs;for(var e=[],n=0,i=0;i<30;i++){for(var r=[],o=0;o<6;o++)r.push(4*Js(n,2)-2),r.push(4*Js(n,3)-2),n++;e.push(r)}this._pcfKernels=e,this.scene.on("beforerender",(function(t,e,n){this.needsTemporalSS()&&this._temporalSS.jitterProjection(t,n)}),this)}xl.prototype.setProjection=function(t){var e=this.camera;e&&e.update(),"perspective"===t?this.camera instanceof mr||(this.camera=new mr,e&&this.camera.setLocalTransform(e.localTransform)):this.camera instanceof ro||(this.camera=new ro,e&&this.camera.setLocalTransform(e.localTransform)),this.camera.near=.1,this.camera.far=2e3},xl.prototype.setViewport=function(t,e,n,i,r){this.camera instanceof mr&&(this.camera.aspect=n/i),r=r||1,this.viewport.x=t,this.viewport.y=e,this.viewport.width=n,this.viewport.height=i,this.viewport.devicePixelRatio=r,this._compositor.resize(n*r,i*r),this._temporalSS.resize(n*r,i*r)},xl.prototype.containPoint=function(t,e){var n=this.viewport;return e=this.layer.renderer.getHeight()-e,t>=n.x&&e>=n.y&&t<=n.x+n.width&&e<=n.y+n.height};var bl=new Jt;xl.prototype.castRay=function(t,e,n){var i=this.layer.renderer,r=i.viewport;return i.viewport=this.viewport,i.screenToNDC(t,e,bl),this.camera.castRay(bl,n),i.viewport=r,n},xl.prototype.prepareRender=function(){this.scene.update(),this.camera.update(),this.scene.updateLights();var t=this.scene.updateRenderList(this.camera);this._needsSortProgressively=!1;for(var e=0;e<t.transparent.length;e++){var n=t.transparent[e].geometry;n.needsSortVerticesProgressively&&n.needsSortVerticesProgressively()&&(this._needsSortProgressively=!0),n.needsSortTrianglesProgressively&&n.needsSortTrianglesProgressively()&&(this._needsSortProgressively=!0)}this._frame=0,this._temporalSS.resetFrame()},xl.prototype.render=function(t,e){this._doRender(t,e,this._frame),this._frame++},xl.prototype.needsAccumulate=function(){return this.needsTemporalSS()||this._needsSortProgressively},xl.prototype.needsTemporalSS=function(){var t=this._enableTemporalSS;return"auto"===t&&(t=this._enablePostEffect),t},xl.prototype.hasDOF=function(){return this._enableDOF},xl.prototype.isAccumulateFinished=function(){return this.needsTemporalSS()?this._temporalSS.isFinished():this._frame>30},xl.prototype._doRender=function(t,e,n){var i=this.scene,r=this.camera;n=n||0,this._updateTransparent(t,i,r,n),e||(this._shadowMapPass.kernelPCF=this._pcfKernels[0],this._shadowMapPass.render(t,i,r,!0)),this._updateShadowPCFKernel(n);var o,a=t.clearColor;(t.gl.clearColor(a[0],a[1],a[2],a[3]),this._enablePostEffect&&(this.needsTemporalSS()&&this._temporalSS.jitterProjection(t,r),this._compositor.updateNormal(t,i,r,this._temporalSS.getFrame())),this._updateSSAO(t,i,r,this._temporalSS.getFrame()),this._enablePostEffect)?((o=this._compositor.getSourceFrameBuffer()).bind(t),t.gl.clear(t.gl.DEPTH_BUFFER_BIT|t.gl.COLOR_BUFFER_BIT),t.render(i,r,!0,!0),o.unbind(t),this.needsTemporalSS()&&e?(this._compositor.composite(t,i,r,this._temporalSS.getSourceFrameBuffer(),this._temporalSS.getFrame()),t.setViewport(this.viewport),this._temporalSS.render(t)):(t.setViewport(this.viewport),this._compositor.composite(t,i,r,null,0))):this.needsTemporalSS()&&e?((o=this._temporalSS.getSourceFrameBuffer()).bind(t),t.saveClear(),t.clearBit=t.gl.DEPTH_BUFFER_BIT|t.gl.COLOR_BUFFER_BIT,t.render(i,r,!0,!0),t.restoreClear(),o.unbind(t),t.setViewport(this.viewport),this._temporalSS.render(t)):(t.setViewport(this.viewport),t.render(i,r,!0,!0))},xl.prototype._updateTransparent=function(t,e,n,i){for(var r=new Qe,o=new An,a=n.getWorldPosition(),s=e.getRenderList(n).transparent,l=0;l<s.length;l++){var h=s[l],c=h.geometry;An.invert(o,h.worldTransform),Qe.transformMat4(r,a,o),c.needsSortTriangles&&c.needsSortTriangles()&&c.doSortTriangles(r,i),c.needsSortVertices&&c.needsSortVertices()&&c.doSortVertices(r,i)}},xl.prototype._updateSSAO=function(t,e,n){var i=this._enableSSAO&&this._enablePostEffect;i&&this._compositor.updateSSAO(t,e,n,this._temporalSS.getFrame());for(var r=e.getRenderList(n),o=0;o<r.opaque.length;o++){var a=r.opaque[o];a.renderNormal&&a.material[i?"enableTexture":"disableTexture"]("ssaoMap"),i&&a.material.set("ssaoMap",this._compositor.getSSAOTexture())}},xl.prototype._updateShadowPCFKernel=function(t){for(var e=this._pcfKernels[t%this._pcfKernels.length],n=this.scene.getRenderList(this.camera).opaque,i=0;i<n.length;i++)n[i].receiveShadow&&(n[i].material.set("pcfKernel",e),n[i].material.define("fragment","PCF_KERNEL_SIZE",e.length/2))},xl.prototype.dispose=function(t){this._compositor.dispose(t.gl),this._temporalSS.dispose(t.gl),this._shadowMapPass.dispose(t)},xl.prototype.setPostEffect=function(t,e){var n=this._compositor;this._enablePostEffect=t.get("enable");var i=t.getModel("bloom"),r=t.getModel("edge"),o=t.getModel("DOF",t.getModel("depthOfField")),a=t.getModel("SSAO",t.getModel("screenSpaceAmbientOcclusion")),s=t.getModel("SSR",t.getModel("screenSpaceReflection")),l=t.getModel("FXAA"),h=t.getModel("colorCorrection");i.get("enable")?n.enableBloom():n.disableBloom(),o.get("enable")?n.enableDOF():n.disableDOF(),s.get("enable")?n.enableSSR():n.disableSSR(),h.get("enable")?n.enableColorCorrection():n.disableColorCorrection(),r.get("enable")?n.enableEdge():n.disableEdge(),l.get("enable")?n.enableFXAA():n.disableFXAA(),this._enableDOF=o.get("enable"),this._enableSSAO=a.get("enable"),this._enableSSAO?n.enableSSAO():n.disableSSAO(),n.setBloomIntensity(i.get("intensity")),n.setEdgeColor(r.get("color")),n.setColorLookupTexture(h.get("lookupTexture"),e),n.setExposure(h.get("exposure")),["radius","quality","intensity"].forEach((function(t){n.setSSAOParameter(t,a.get(t))})),["quality","maxRoughness","physical"].forEach((function(t){n.setSSRParameter(t,s.get(t))})),["quality","focalDistance","focalRange","blurRadius","fstop"].forEach((function(t){n.setDOFParameter(t,o.get(t))})),["brightness","contrast","saturation"].forEach((function(t){n.setColorCorrection(t,h.get(t))}))},xl.prototype.setDOFFocusOnPoint=function(t){if(this._enablePostEffect){if(t>this.camera.far||t<this.camera.near)return;return this._compositor.setDOFParameter("focalDistance",t),!0}},xl.prototype.setTemporalSuperSampling=function(t){this._enableTemporalSS=t.get("enable")},xl.prototype.isLinearSpace=function(){return this._enablePostEffect},xl.prototype.setRootNode=function(t){if(this.rootNode!==t){for(var e=this.rootNode.children(),n=0;n<e.length;n++)t.add(e[n]);t!==this.scene&&this.scene.add(t),this.rootNode=t}},xl.prototype.add=function(t){this.rootNode.add(t)},xl.prototype.remove=function(t){this.rootNode.remove(t)},xl.prototype.removeAll=function(t){this.rootNode.removeAll(t)},Object.assign(xl.prototype,d);const wl=xl;function Sl(t,e){var n=t.getBoxLayoutParams(),i=(0,cs.dV)(n,{width:e.getWidth(),height:e.getHeight()});i.y=e.getHeight()-i.y-i.height,this.viewGL.setViewport(i.x,i.y,i.width,i.height,e.getDevicePixelRatio());var r=t.get("boxWidth"),o=t.get("boxHeight"),a=t.get("boxDepth");this.getAxis("x").setExtent(-r/2,r/2),this.getAxis("y").setExtent(a/2,-a/2),this.getAxis("z").setExtent(-o/2,o/2),this.size=[r,o,a]}function Tl(t,e){var n={};t.eachSeries((function(t){if(t.coordinateSystem===this){var e=t.getData();["x","y","z"].forEach((function(t){e.mapDimensionsAll(t,!0).forEach((function(i){var r,o;r=t,o=e.getDataExtent(i,!0),n[r]=n[r]||[1/0,-1/0],n[r][0]=Math.min(o[0],n[r][0]),n[r][1]=Math.max(o[1],n[r][1])}))}))}}),this),["xAxis3D","yAxis3D","zAxis3D"].forEach((function(e){t.eachComponent(e,(function(t){var r=e.charAt(0),o=t.getReferringComponents("grid3D").models[0],a=o.coordinateSystem;if(a===this){var s=a.getAxis(r);if(!s){var l=i.dw.createScale(n[r]||[1/0,-1/0],t);(s=new hs(r,l)).type=t.get("type");var h="category"===s.type;s.onBand=h&&t.get("boundaryGap"),s.inverse=t.get("inverse"),t.axis=s,s.model=t,s.getLabelModel=function(){return t.getModel("axisLabel",o.getModel("axisLabel"))},s.getTickModel=function(){return t.getModel("axisTick",o.getModel("axisTick"))},a.addAxis(s)}}}),this)}),this),this.resize(this.model,e)}const Ml={dimensions:ss.prototype.dimensions,create:function(t,e){var n=[];t.eachComponent("grid3D",(function(t){t.__viewGL=t.__viewGL||new wl;var e=new ss;e.model=t,e.viewGL=t.__viewGL,t.coordinateSystem=e,n.push(e),e.resize=Sl,e.update=Tl}));var i=["xAxis3D","yAxis3D","zAxis3D"];return t.eachSeries((function(e){if("cartesian3D"===e.get("coordinateSystem")){if(null==(r=e.getReferringComponents("grid3D").models[0])){var n=function(t,e){return i.map((function(n){var i=t.getReferringComponents(n).models[0];return null==i&&(i=e.getComponent(n)),i}))}(e,t),r=n[0].getCoordSysModel();n.forEach((function(t){t.getCoordSysModel()}))}var o=r.coordinateSystem;e.coordinateSystem=o}})),n}};var Al=i.jT.extend({type:"cartesian3DAxis",axis:null,getCoordSysModel:function(){return this.ecModel.queryComponents({mainType:"grid3D",index:this.option.gridIndex,id:this.option.gridId})[0]}});i.dw.mixinAxisModelCommonMethods(Al);const Cl=Al;var Il={show:!0,grid3DIndex:0,inverse:!1,name:"",nameLocation:"middle",nameTextStyle:{fontSize:16},nameGap:20,axisPointer:{},axisLine:{},axisTick:{},axisLabel:{},splitArea:{}},El=i.ZS.merge({boundaryGap:!0,axisTick:{alignWithLabel:!1,interval:"auto"},axisLabel:{interval:"auto"},axisPointer:{label:{show:!1}}},Il),kl=i.ZS.merge({boundaryGap:[0,0],splitNumber:5,axisPointer:{label:{}}},Il),Ll=i.ZS.defaults({scale:!0,min:"dataMin",max:"dataMax"},kl),Dl=i.ZS.defaults({logBase:10},kl);Dl.scale=!0;const Pl={categoryAxis3D:El,valueAxis3D:kl,timeAxis3D:Ll,logAxis3D:Dl};var Rl=n(3519),Ol=["value","category","time","log"];function Nl(t,e){return e.type||(e.data?"category":"value")}(0,i.Yx)((function(t){t.registerComponentModel(ba),t.registerComponentView(rs),t.registerCoordinateSystem("grid3D",Ml),["x","y","z"].forEach((function(e){!function(t,e,n,r,o){Ol.forEach((function(a){var s=n.extend({type:e+"Axis3D."+a,__ordinalMeta:null,mergeDefaultAndTheme:function(t,n){var o=n.getTheme();i.ZS.merge(t,o.get(a+"Axis3D")),i.ZS.merge(t,this.getDefaultOption()),t.type=r(e,t)},optionUpdated:function(){"category"===this.option.type&&(this.__ordinalMeta=Rl.A.createByAxisModel(this))},getCategories:function(){if("category"===this.option.type)return this.__ordinalMeta.categories},getOrdinalMeta:function(){return this.__ordinalMeta},defaultOption:i.ZS.merge(i.ZS.clone(Pl[a+"Axis3D"]),o||{},!0)});t.registerComponentModel(s)})),t.registerSubTypeDefaulter(e+"Axis3D",i.ZS.curry(r,e))}(t,e,Cl,Nl,{name:e.toUpperCase()});const n=t.ComponentView.extend({type:e+"Axis3D"});t.registerComponentView(n)})),t.registerAction({type:"grid3DChangeCamera",event:"grid3dcamerachanged",update:"series:updateCamera"},(function(t,e){e.eachComponent({mainType:"grid3D",query:t},(function(e){e.setView(t)}))})),t.registerAction({type:"grid3DShowAxisPointer",event:"grid3dshowaxispointer",update:"grid3D:showAxisPointer"},(function(t,e){})),t.registerAction({type:"grid3DHideAxisPointer",event:"grid3dhideaxispointer",update:"grid3D:hideAxisPointer"},(function(t,e){}))}));const Fl={defaultOption:{shading:null,realisticMaterial:{textureTiling:1,textureOffset:0,detailTexture:null},lambertMaterial:{textureTiling:1,textureOffset:0,detailTexture:null},colorMaterial:{textureTiling:1,textureOffset:0,detailTexture:null},hatchingMaterial:{textureTiling:1,textureOffset:0,paperColor:"#fff"}}},Bl={getFilledRegions:function(t,e){var n,r=(t||[]).slice();if("string"==typeof e?n=(e=i.ZB(e))&&e.geoJson:e&&e.features&&(n=e),!n)return[];for(var o={},a=n.features,s=0;s<r.length;s++)o[r[s].name]=r[s];for(s=0;s<a.length;s++){var l=a[s].properties.name;o[l]||r.push({name:l})}return r},defaultOption:{show:!0,zlevel:-10,map:"",left:0,top:0,width:"100%",height:"100%",boxWidth:100,boxHeight:10,boxDepth:"auto",regionHeight:3,environment:"auto",groundPlane:{show:!1,color:"#aaa"},shading:"lambert",light:{main:{alpha:40,beta:30}},viewControl:{alpha:40,beta:0,distance:100,orthographicSize:60,minAlpha:5,minBeta:-80,maxBeta:80},label:{show:!1,distance:2,textStyle:{fontSize:20,color:"#000",backgroundColor:"rgba(255,255,255,0.7)",padding:3,borderRadius:4}},itemStyle:{color:"#fff",borderWidth:0,borderColor:"#333"},emphasis:{itemStyle:{color:"#639fc0"},label:{show:!0}}}};var zl=i.jT.extend({type:"geo3D",layoutMode:"box",coordinateSystem:null,optionUpdated:function(){var t=this.option;t.regions=this.getFilledRegions(t.regions,t.map);var e=i.dw.createDimensions(t.data||[],{coordDimensions:["value"],encodeDefine:this.get("encode"),dimensionsDefine:this.get("dimensions")}),n=new i.B8(e,this);n.initData(t.regions);var r={};n.each((function(t){var e=n.getName(t),i=n.getItemModel(t);r[e]=i})),this._regionModelMap=r,this._data=n},getData:function(){return this._data},getRegionModel:function(t){var e=this.getData().getName(t);return this._regionModelMap[e]||new i.Kx(null,this)},getRegionPolygonCoords:function(t){var e=this.getData().getName(t),n=this.coordinateSystem.getRegion(e);return n?n.geometries:[]},getFormattedLabel:function(t,e){var n=this._data.getName(t),i=this.getRegionModel(t),r=i.get("normal"===e?["label","formatter"]:["emphasis","label","formatter"]);null==r&&(r=i.get(["label","formatter"]));var o={name:n};if("function"==typeof r)return o.status=e,r(o);if("string"==typeof r){var a=o.seriesName;return r.replace("{a}",null!=a?a:"")}return n},defaultOption:{regions:[]}});i.ZS.merge(zl.prototype,Bl),i.ZS.merge(zl.prototype,va),i.ZS.merge(zl.prototype,ya),i.ZS.merge(zl.prototype,_a),i.ZS.merge(zl.prototype,Fl);const Gl=zl,Vl=jl;function jl(t,e,n){n=n||2;var i,r,o,a,s,l,h,c=e&&e.length,u=c?e[0]*n:t.length,d=Hl(t,0,u,n,!0),p=[];if(!d)return p;if(c&&(d=function(t,e,n,i){var r,o,a,s=[];for(r=0,o=e.length;r<o;r++)(a=Hl(t,e[r]*i,r<o-1?e[r+1]*i:t.length,i,!1))===a.next&&(a.steiner=!0),s.push(Ql(a));for(s.sort($l),r=0;r<s.length;r++)Kl(s[r],n),n=Wl(n,n.next);return n}(t,e,d,n)),t.length>80*n){i=o=t[0],r=a=t[1];for(var f=n;f<u;f+=n)(s=t[f])<i&&(i=s),(l=t[f+1])<r&&(r=l),s>o&&(o=s),l>a&&(a=l);h=Math.max(o-i,a-r)}return Ul(d,p,n,i,r,h),p}function Hl(t,e,n,i,r){var o,a;if(r===ch(t,e,n,i)>0)for(o=e;o<n;o+=i)a=sh(o,t[o],t[o+1],a);else for(o=n-i;o>=e;o-=i)a=sh(o,t[o],t[o+1],a);return a&&ih(a,a.next)&&(lh(a),a=a.next),a}function Wl(t,e){if(!t)return t;e||(e=t);var n,i=t;do{if(n=!1,i.steiner||!ih(i,i.next)&&0!==nh(i.prev,i,i.next))i=i.next;else{if(lh(i),(i=e=i.prev)===i.next)return null;n=!0}}while(n||i!==e);return e}function Ul(t,e,n,i,r,o,a){if(t){!a&&o&&function(t,e,n,i){var r=t;do{null===r.z&&(r.z=Jl(r.x,r.y,e,n,i)),r.prevZ=r.prev,r.nextZ=r.next,r=r.next}while(r!==t);r.prevZ.nextZ=null,r.prevZ=null,function(t){var e,n,i,r,o,a,s,l,h=1;do{for(n=t,t=null,o=null,a=0;n;){for(a++,i=n,s=0,e=0;e<h&&(s++,i=i.nextZ);e++);for(l=h;s>0||l>0&&i;)0!==s&&(0===l||!i||n.z<=i.z)?(r=n,n=n.nextZ,s--):(r=i,i=i.nextZ,l--),o?o.nextZ=r:t=r,r.prevZ=o,o=r;n=i}o.nextZ=null,h*=2}while(a>1)}(r)}(t,i,r,o);for(var s,l,h=t;t.prev!==t.next;)if(s=t.prev,l=t.next,o?Xl(t,i,r,o):ql(t))e.push(s.i/n),e.push(t.i/n),e.push(l.i/n),lh(t),t=l.next,h=l.next;else if((t=l)===h){a?1===a?Ul(t=Yl(t,e,n),e,n,i,r,o,2):2===a&&Zl(t,e,n,i,r,o):Ul(Wl(t),e,n,i,r,o,1);break}}}function ql(t){var e=t.prev,n=t,i=t.next;if(nh(e,n,i)>=0)return!1;for(var r=t.next.next;r!==t.prev;){if(th(e.x,e.y,n.x,n.y,i.x,i.y,r.x,r.y)&&nh(r.prev,r,r.next)>=0)return!1;r=r.next}return!0}function Xl(t,e,n,i){var r=t.prev,o=t,a=t.next;if(nh(r,o,a)>=0)return!1;for(var s=r.x<o.x?r.x<a.x?r.x:a.x:o.x<a.x?o.x:a.x,l=r.y<o.y?r.y<a.y?r.y:a.y:o.y<a.y?o.y:a.y,h=r.x>o.x?r.x>a.x?r.x:a.x:o.x>a.x?o.x:a.x,c=r.y>o.y?r.y>a.y?r.y:a.y:o.y>a.y?o.y:a.y,u=Jl(s,l,e,n,i),d=Jl(h,c,e,n,i),p=t.nextZ;p&&p.z<=d;){if(p!==t.prev&&p!==t.next&&th(r.x,r.y,o.x,o.y,a.x,a.y,p.x,p.y)&&nh(p.prev,p,p.next)>=0)return!1;p=p.nextZ}for(p=t.prevZ;p&&p.z>=u;){if(p!==t.prev&&p!==t.next&&th(r.x,r.y,o.x,o.y,a.x,a.y,p.x,p.y)&&nh(p.prev,p,p.next)>=0)return!1;p=p.prevZ}return!0}function Yl(t,e,n){var i=t;do{var r=i.prev,o=i.next.next;!ih(r,o)&&rh(r,i,i.next,o)&&oh(r,o)&&oh(o,r)&&(e.push(r.i/n),e.push(i.i/n),e.push(o.i/n),lh(i),lh(i.next),i=t=o),i=i.next}while(i!==t);return i}function Zl(t,e,n,i,r,o){var a=t;do{for(var s=a.next.next;s!==a.prev;){if(a.i!==s.i&&eh(a,s)){var l=ah(a,s);return a=Wl(a,a.next),l=Wl(l,l.next),Ul(a,e,n,i,r,o),void Ul(l,e,n,i,r,o)}s=s.next}a=a.next}while(a!==t)}function $l(t,e){return t.x-e.x}function Kl(t,e){if(e=function(t,e){var n,i=e,r=t.x,o=t.y,a=-1/0;do{if(o<=i.y&&o>=i.next.y&&i.next.y!==i.y){var s=i.x+(o-i.y)*(i.next.x-i.x)/(i.next.y-i.y);if(s<=r&&s>a){if(a=s,s===r){if(o===i.y)return i;if(o===i.next.y)return i.next}n=i.x<i.next.x?i:i.next}}i=i.next}while(i!==e);if(!n)return null;if(r===a)return n.prev;var l,h=n,c=n.x,u=n.y,d=1/0;i=n.next;for(;i!==h;)r>=i.x&&i.x>=c&&r!==i.x&&th(o<u?r:a,o,c,u,o<u?a:r,o,i.x,i.y)&&((l=Math.abs(o-i.y)/(r-i.x))<d||l===d&&i.x>n.x)&&oh(i,t)&&(n=i,d=l),i=i.next;return n}(t,e),e){var n=ah(e,t);Wl(n,n.next)}}function Jl(t,e,n,i,r){return(t=1431655765&((t=858993459&((t=252645135&((t=16711935&((t=32767*(t-n)/r)|t<<8))|t<<4))|t<<2))|t<<1))|(e=1431655765&((e=858993459&((e=252645135&((e=16711935&((e=32767*(e-i)/r)|e<<8))|e<<4))|e<<2))|e<<1))<<1}function Ql(t){var e=t,n=t;do{e.x<n.x&&(n=e),e=e.next}while(e!==t);return n}function th(t,e,n,i,r,o,a,s){return(r-a)*(e-s)-(t-a)*(o-s)>=0&&(t-a)*(i-s)-(n-a)*(e-s)>=0&&(n-a)*(o-s)-(r-a)*(i-s)>=0}function eh(t,e){return t.next.i!==e.i&&t.prev.i!==e.i&&!function(t,e){var n=t;do{if(n.i!==t.i&&n.next.i!==t.i&&n.i!==e.i&&n.next.i!==e.i&&rh(n,n.next,t,e))return!0;n=n.next}while(n!==t);return!1}(t,e)&&oh(t,e)&&oh(e,t)&&function(t,e){var n=t,i=!1,r=(t.x+e.x)/2,o=(t.y+e.y)/2;do{n.y>o!=n.next.y>o&&n.next.y!==n.y&&r<(n.next.x-n.x)*(o-n.y)/(n.next.y-n.y)+n.x&&(i=!i),n=n.next}while(n!==t);return i}(t,e)}function nh(t,e,n){return(e.y-t.y)*(n.x-e.x)-(e.x-t.x)*(n.y-e.y)}function ih(t,e){return t.x===e.x&&t.y===e.y}function rh(t,e,n,i){return!!(ih(t,e)&&ih(n,i)||ih(t,i)&&ih(n,e))||nh(t,e,n)>0!=nh(t,e,i)>0&&nh(n,i,t)>0!=nh(n,i,e)>0}function oh(t,e){return nh(t.prev,t,t.next)<0?nh(t,e,t.next)>=0&&nh(t,t.prev,e)>=0:nh(t,e,t.prev)<0||nh(t,t.next,e)<0}function ah(t,e){var n=new hh(t.i,t.x,t.y),i=new hh(e.i,e.x,e.y),r=t.next,o=e.prev;return t.next=e,e.prev=t,n.next=r,r.prev=n,i.next=n,n.prev=i,o.next=i,i.prev=o,i}function sh(t,e,n,i){var r=new hh(t,e,n);return i?(r.next=i.next,r.prev=i,i.next.prev=r,i.next=r):(r.prev=r,r.next=r),r}function lh(t){t.next.prev=t.prev,t.prev.next=t.next,t.prevZ&&(t.prevZ.nextZ=t.nextZ),t.nextZ&&(t.nextZ.prevZ=t.prevZ)}function hh(t,e,n){this.i=t,this.x=e,this.y=n,this.prev=null,this.next=null,this.z=null,this.prevZ=null,this.nextZ=null,this.steiner=!1}function ch(t,e,n,i){for(var r=0,o=e,a=n-i;o<n;o+=i)r+=(t[a]-t[o])*(t[o+1]+t[a+1]),a=o;return r}function uh(t,e,n){var i=t[e];t[e]=t[n],t[n]=i}function dh(t,e,n,i,r){var o=n,a=t[e];uh(t,e,i);for(var s=n;s<i;s++)r(t[s],a)<0&&(uh(t,s,o),o++);return uh(t,i,o),o}function ph(t,e,n,i){if(n<i){var r=dh(t,Math.floor((n+i)/2),n,i,e);ph(t,e,n,r-1),ph(t,e,r+1,i)}}function fh(){this._parts=[]}jl.deviation=function(t,e,n,i){var r=e&&e.length,o=r?e[0]*n:t.length,a=Math.abs(ch(t,0,o,n));if(r)for(var s=0,l=e.length;s<l;s++){var h=e[s]*n,c=s<l-1?e[s+1]*n:t.length;a-=Math.abs(ch(t,h,c,n))}var u=0;for(s=0;s<i.length;s+=3){var d=i[s]*n,p=i[s+1]*n,f=i[s+2]*n;u+=Math.abs((t[d]-t[f])*(t[p+1]-t[d+1])-(t[d]-t[p])*(t[f+1]-t[d+1]))}return 0===a&&0===u?0:Math.abs((u-a)/a)},fh.prototype.step=function(t,e,n){var i=t.length;if(0===n){this._parts=[],this._sorted=!1;var r=Math.floor(i/2);this._parts.push({pivot:r,left:0,right:i-1}),this._currentSortPartIdx=0}if(!this._sorted){var o=this._parts;if(0===o.length)return this._sorted=!0,!0;if(o.length<512){for(var a=0;a<o.length;a++)o[a].pivot=dh(t,o[a].pivot,o[a].left,o[a].right,e);var s=[];for(a=0;a<o.length;a++){var l=o[a].left;(h=o[a].pivot-1)>l&&s.push({pivot:Math.floor((h+l)/2),left:l,right:h});var h;l=o[a].pivot+1;(h=o[a].right)>l&&s.push({pivot:Math.floor((h+l)/2),left:l,right:h})}o=this._parts=s}else for(a=0;a<Math.floor(o.length/10);a++){var c=o.length-1-this._currentSortPartIdx;if(ph(t,e,o[c].left,o[c].right),this._currentSortPartIdx++,this._currentSortPartIdx===o.length)return this._sorted=!0,!0}return!1}},fh.sort=ph;const gh=fh;var mh=Ea.vec3,vh=mh.create(),yh=mh.create(),_h=mh.create();const xh={needsSortTriangles:function(){return this.indices&&this.sortTriangles},needsSortTrianglesProgressively:function(){return this.needsSortTriangles()&&this.triangleCount>=2e4},doSortTriangles:function(t,e){var n=this.indices;if(0===e){var i=this.attributes.position;t=t.array;this._triangleZList&&this._triangleZList.length===this.triangleCount||(this._triangleZList=new Float32Array(this.triangleCount),this._sortedTriangleIndices=new Uint32Array(this.triangleCount),this._indicesTmp=new n.constructor(n.length),this._triangleZListTmp=new Float32Array(this.triangleCount));for(var r,o=0,a=0;a<n.length;){i.get(n[a++],vh),i.get(n[a++],yh),i.get(n[a++],_h);var s=mh.sqrDist(vh,t),l=mh.sqrDist(yh,t),h=mh.sqrDist(_h,t),c=Math.min(s,l);c=Math.min(c,h),3===a?(r=c,c=0):c-=r,this._triangleZList[o++]=c}}var u=this._sortedTriangleIndices;for(a=0;a<u.length;a++)u[a]=a;if(this.triangleCount<2e4)0===e&&this._simpleSort(!0);else for(a=0;a<3;a++)this._progressiveQuickSort(3*e+a);var d=this._indicesTmp,p=this._triangleZListTmp,f=this._triangleZList;for(a=0;a<this.triangleCount;a++){var g=3*u[a],m=3*a;d[m++]=n[g++],d[m++]=n[g++],d[m]=n[g],p[a]=f[u[a]]}var v=this._indicesTmp;this._indicesTmp=this.indices,this.indices=v;v=this._triangleZListTmp;this._triangleZListTmp=this._triangleZList,this._triangleZList=v,this.dirtyIndices()},_simpleSort:function(t){var e=this._triangleZList,n=this._sortedTriangleIndices;function i(t,n){return e[n]-e[t]}t?Array.prototype.sort.call(n,i):gh.sort(n,i,0,n.length-1)},_progressiveQuickSort:function(t){var e=this._triangleZList,n=this._sortedTriangleIndices;this._quickSort=this._quickSort||new gh,this._quickSort.step(n,(function(t,n){return e[n]-e[t]}),t)}};function bh(t,e){const n=t.getItemVisual(e,"style");if(n){return n[t.getVisual("drawType")]}}function wh(t,e){const n=t.getItemVisual(e,"style");return n&&n.opacity}function Sh(t,e,n){this._labelsMesh=new Za,this._labelTextureSurface=new Na({width:512,height:512,devicePixelRatio:n.getDevicePixelRatio(),onupdate:function(){n.getZr().refresh()}}),this._api=n,this._labelsMesh.material.set("textureAtlas",this._labelTextureSurface.getTexture())}Sh.prototype.getLabelPosition=function(t,e,n){return[0,0,0]},Sh.prototype.getLabelDistance=function(t,e,n){return 0},Sh.prototype.getMesh=function(){return this._labelsMesh},Sh.prototype.updateData=function(t,e,n){null==e&&(e=0),null==n&&(n=t.count()),this._labelsVisibilitiesBits&&this._labelsVisibilitiesBits.length===n-e||(this._labelsVisibilitiesBits=new Uint8Array(n-e));for(var i=["label","show"],r=["emphasis","label","show"],o=e;o<n;o++){var a=t.getItemModel(o),s=a.get(i),l=a.get(r);null==l&&(l=s);var h=(s?1:0)|(l?2:0);this._labelsVisibilitiesBits[o-e]=h}this._start=e,this._end=n,this._data=t},Sh.prototype.updateLabels=function(t){if(this._data){for(var e=(t=t||[]).length>0,n={},r=0;r<t.length;r++)n[t[r]]=!0;this._labelsMesh.geometry.convertToDynamicArray(!0),this._labelTextureSurface.clear();for(var o=["label"],a=["emphasis","label"],s=this._data.hostModel,l=this._data,h=s.getModel(o),c=s.getModel(a,h),u={left:"right",right:"left",top:"center",bottom:"center"},d={left:"middle",right:"middle",top:"bottom",bottom:"top"},p=this._start;p<this._end;p++){var f=!1;if(e&&n[p]&&(f=!0),this._labelsVisibilitiesBits[p-this._start]&(f?2:1)){var g=l.getItemModel(p).getModel(f?a:o,f?c:h),m=g.get("distance")||0,v=g.get("position"),y=this._api.getDevicePixelRatio(),_=s.getFormattedLabel(p,f?"emphasis":"normal");if(null==_||""===_)return;var x=new i.fA.Text({style:(0,wa.VB)(g,{text:_,fill:g.get("color")||bh(l,p)||"#000",align:"left",verticalAlign:"top",opacity:wo.firstNotNull(g.get("opacity"),wh(l,p),1)})}),b=x.getBoundingRect();b.height*=1.2;var w=this._labelTextureSurface.add(x),S=u[v]||"center",T=d[v]||"bottom";this._labelsMesh.geometry.addSprite(this.getLabelPosition(p,v,m),[b.width*y,b.height*y],w,S,T,this.getLabelDistance(p,v,m)*y)}}this._labelsMesh.material.set("uvScale",this._labelTextureSurface.getCoordsScale()),this._labelTextureSurface.getZr().refreshImmediately(),this._labelsMesh.geometry.convertToTypedArray(),this._labelsMesh.geometry.dirty()}},Sh.prototype.dispose=function(){this._labelTextureSurface.dispose()};const Th=Sh;var Mh=Ea.vec3;function Ah(t){this.rootNode=new ia.Node,this._triangulationResults={},this._shadersMap=ia.COMMON_SHADERS.filter((function(t){return"shadow"!==t})).reduce((function(t,e){return t[e]=ia.createShader("ecgl."+e),t}),{}),this._linesShader=ia.createShader("ecgl.meshLines3D");var e={};ia.COMMON_SHADERS.forEach((function(t){e[t]=new ia.Material({shader:ia.createShader("ecgl."+t)})})),this._groundMaterials=e,this._groundMesh=new ia.Mesh({geometry:new ia.PlaneGeometry({dynamic:!0}),castShadow:!1,renderNormal:!0,$ignorePicking:!0}),this._groundMesh.rotation.rotateX(-Math.PI/2),this._labelsBuilder=new Th(512,512,t),this._labelsBuilder.getMesh().renderOrder=100,this._labelsBuilder.getMesh().material.depthTest=!1,this.rootNode.add(this._labelsBuilder.getMesh()),this._initMeshes(),this._api=t}ia.Shader.import(es),Ah.prototype={constructor:Ah,extrudeY:!0,update:function(t,e,n,i,r){var o=t.getData();null==i&&(i=0),null==r&&(r=o.count()),this._startIndex=i,this._endIndex=r-1,this._triangulation(t,i,r);var a=this._getShader(t.get("shading"));this._prepareMesh(t,a,n,i,r),this.rootNode.updateWorldTransform(),this._updateRegionMesh(t,n,i,r);var s=t.coordinateSystem;"geo3D"===s.type&&this._updateGroundPlane(t,s,n);var l=this;this._labelsBuilder.updateData(o,i,r),this._labelsBuilder.getLabelPosition=function(t,e,n){var i=o.getName(t),r=n;if("geo3D"===s.type){var a=s.getRegion(i);return a?(c=a.getCenter(),s.dataToPoint([c[0],c[1],r])):[NaN,NaN,NaN]}var h=l._triangulationResults[t-l._startIndex],c=l.extrudeY?[(h.max[0]+h.min[0])/2,h.max[1]+r,(h.max[2]+h.min[2])/2]:[(h.max[0]+h.min[0])/2,(h.max[1]+h.min[1])/2,h.max[2]+r]},this._data=o,this._labelsBuilder.updateLabels(),this._updateDebugWireframe(t),this._lastHoverDataIndex=0},_initMeshes:function(){var t=this;var e=function(){var e=new ia.Mesh({name:"Polygon",material:new ia.Material({shader:t._shadersMap.lambert}),geometry:new ia.Geometry({sortTriangles:!0,dynamic:!0}),culling:!1,ignorePicking:!0,renderNormal:!0});return Object.assign(e.geometry,xh),e}(),n=new ia.Mesh({material:new ia.Material({shader:this._linesShader}),castShadow:!1,ignorePicking:!0,$ignorePicking:!0,geometry:new Pa({useNativeLine:!1})});this.rootNode.add(e),this.rootNode.add(n),e.material.define("both","VERTEX_COLOR"),e.material.define("fragment","DOUBLE_SIDED"),this._polygonMesh=e,this._linesMesh=n,this.rootNode.add(this._groundMesh)},_getShader:function(t){var e=this._shadersMap[t];return e||(e=this._shadersMap.lambert),e.__shading=t,e},_prepareMesh:function(t,e,n,i,r){for(var o=0,a=0,s=0,l=0,h=i;h<r;h++){var c=this._getRegionPolygonInfo(h),u=this._getRegionLinesInfo(h,t,this._linesMesh.geometry);o+=c.vertexCount,a+=c.triangleCount,s+=u.vertexCount,l+=u.triangleCount}var d=this._polygonMesh,p=d.geometry;["position","normal","texcoord0","color"].forEach((function(t){p.attributes[t].init(o)})),p.indices=o>65535?new Uint32Array(3*a):new Uint16Array(3*a),d.material.shader!==e&&d.material.attachShader(e,!0),ia.setMaterialFromModel(e.__shading,d.material,t,n),s>0&&(this._linesMesh.geometry.resetOffset(),this._linesMesh.geometry.setVertexCount(s),this._linesMesh.geometry.setTriangleCount(l)),this._dataIndexOfVertex=new Uint32Array(o),this._vertexRangeOfDataIndex=new Uint32Array(2*(r-i))},_updateRegionMesh:function(t,e,n,i){for(var r=t.getData(),o=0,a=0,s=!1,l=this._polygonMesh,h=this._linesMesh,c=n;c<i;c++){var u=t.getRegionModel(c),d=u.getModel("itemStyle"),p=wo.firstNotNull(bh(r,c),d.get("color"),"#fff"),f=wo.firstNotNull(wh(r,c),d.get("opacity"),1),g=ia.parseColor(p),m=ia.parseColor(d.get("borderColor"));g[3]*=f,m[3]*=f;var v=g[3]<.99;l.material.set("color",[1,1,1,1]),s=s||v;for(var y=wo.firstNotNull(u.get("height",!0),t.get("regionHeight")),_=this._updatePolygonGeometry(t,l.geometry,c,y,o,a,g),x=o;x<_.vertexOffset;x++)this._dataIndexOfVertex[x]=c;this._vertexRangeOfDataIndex[2*(c-n)]=o,this._vertexRangeOfDataIndex[2*(c-n)+1]=_.vertexOffset,o=_.vertexOffset,a=_.triangleOffset;var b=d.get("borderWidth"),w=b>0;w&&(b*=e.getDevicePixelRatio(),this._updateLinesGeometry(h.geometry,t,c,y,b,t.coordinateSystem.transform)),h.invisible=!w,h.material.set({color:m})}(l=this._polygonMesh).material.transparent=s,l.material.depthMask=!s,l.geometry.updateBoundingBox(),l.frontFace=this.extrudeY?ia.Mesh.CCW:ia.Mesh.CW,l.material.get("normalMap")&&l.geometry.generateTangents(),l.seriesIndex=t.seriesIndex,l.on("mousemove",this._onmousemove,this),l.on("mouseout",this._onmouseout,this)},_updateDebugWireframe:function(t){var e=t.getModel("debug.wireframe");if(e.get("show")){var n=ia.parseColor(e.get("lineStyle.color")||"rgba(0,0,0,0.5)"),i=wo.firstNotNull(e.get("lineStyle.width"),1),r=this._polygonMesh;r.geometry.generateBarycentric(),r.material.define("both","WIREFRAME_TRIANGLE"),r.material.set("wireframeLineColor",n),r.material.set("wireframeLineWidth",i)}},_onmousemove:function(t){var e=this._dataIndexOfVertex[t.triangle[0]];null==e&&(e=-1),e!==this._lastHoverDataIndex&&(this.downplay(this._lastHoverDataIndex),this.highlight(e),this._labelsBuilder.updateLabels([e])),this._lastHoverDataIndex=e,this._polygonMesh.dataIndex=e},_onmouseout:function(t){t.target&&(this.downplay(this._lastHoverDataIndex),this._lastHoverDataIndex=-1,this._polygonMesh.dataIndex=-1),this._labelsBuilder.updateLabels([])},_updateGroundPlane:function(t,e,n){var i=t.getModel("groundPlane",t);if(this._groundMesh.invisible=!i.get("show",!0),!this._groundMesh.invisible){var r=t.get("shading"),o=this._groundMaterials[r];o||(o=this._groundMaterials.lambert),ia.setMaterialFromModel(r,o,i,n),o.get("normalMap")&&this._groundMesh.geometry.generateTangents(),this._groundMesh.material=o,this._groundMesh.material.set("color",ia.parseColor(i.get("color"))),this._groundMesh.scale.set(e.size[0],e.size[2],1)}},_triangulation:function(t,e,n){this._triangulationResults=[];for(var i=[1/0,1/0,1/0],r=[-1/0,-1/0,-1/0],o=t.coordinateSystem,a=e;a<n;a++){for(var s=[],l=t.getRegionPolygonCoords(a),h=0;h<l.length;h++){var c=l[h].exterior,u=l[h].interiors,d=[],p=[];if(!(c.length<3)){for(var f=0,g=0;g<c.length;g++){var m=c[g];d[f++]=m[0],d[f++]=m[1]}for(g=0;g<u.length;g++)if(!(u[g].length<3)){for(var v=d.length/2,y=0;y<u[g].length;y++){m=u[g][y];d.push(m[0]),d.push(m[1])}p.push(v)}var _=Vl(d,p),x=new Float64Array(d.length/2*3),b=[],w=[1/0,1/0,1/0],S=[-1/0,-1/0,-1/0],T=0;for(g=0;g<d.length;)Mh.set(b,d[g++],0,d[g++]),o&&o.transform&&Mh.transformMat4(b,b,o.transform),Mh.min(w,w,b),Mh.max(S,S,b),x[T++]=b[0],x[T++]=b[1],x[T++]=b[2];Mh.min(i,i,w),Mh.max(r,r,S),s.push({points:x,indices:_,min:w,max:S})}}this._triangulationResults.push(s)}this._geoBoundingBox=[i,r]},_getRegionPolygonInfo:function(t){for(var e=this._triangulationResults[t-this._startIndex],n=0,i=0,r=0;r<e.length;r++)n+=e[r].points.length/3,i+=e[r].indices.length/3;return{vertexCount:2*n+4*n,triangleCount:2*i+2*n}},_updatePolygonGeometry:function(t,e,n,i,r,o,a){var s=t.get("projectUVOnGround"),l=e.attributes.position,h=e.attributes.normal,c=e.attributes.texcoord0,u=e.attributes.color,d=this._triangulationResults[n-this._startIndex],p=u.value&&a,f=e.indices,g=this.extrudeY?1:2,m=this.extrudeY?2:1,v=[this.rootNode.worldTransform.x.len(),this.rootNode.worldTransform.y.len(),this.rootNode.worldTransform.z.len()],y=Mh.mul([],this._geoBoundingBox[0],v),_=Mh.mul([],this._geoBoundingBox[1],v),x=Math.max(_[0]-y[0],_[2]-y[2]);function b(t,e,n){var i=r;!function(t,e){for(var n=t.points,i=n.length,o=[],s=[],h=0;h<i;h+=3)o[0]=n[h],o[g]=e,o[m]=n[h+2],s[0]=(n[h]*v[0]-y[0])/x,s[1]=(n[h+2]*v[m]-y[2])/x,l.set(r,o),p&&u.set(r,a),c.set(r++,s)}(t,e);for(var s=t.indices.length,h=0;h<s;h++)f[3*o+h]=t.indices[h]+i;o+=t.indices.length/3}for(var w=this.extrudeY?[0,1,0]:[0,0,1],S=Mh.negate([],w),T=0;T<d.length;T++){var M=r,A=d[T];b(A,0),b(A,i);for(var C=A.points.length/3,I=0;I<C;I++)h.set(M+I,S),h.set(M+I+C,w);var E=[0,3,1,1,3,2],k=[[],[],[],[]],L=[],D=[],P=[],R=[],O=0;for(I=0;I<C;I++){for(var N=(I+1)%C,F=(A.points[3*N]-A.points[3*I])*v[0],B=(A.points[3*N+2]-A.points[3*I+2])*v[m],z=Math.sqrt(F*F+B*B),G=0;G<4;G++){var V=0===G||3===G,j=3*(V?I:N);k[G][0]=A.points[j],k[G][g]=G>1?i:0,k[G][m]=A.points[j+2],l.set(r+G,k[G]),s?(R[0]=(A.points[j]*v[0]-y[0])/x,R[1]=(A.points[j+2]*v[m]-y[m])/x):(R[0]=(V?O:O+z)/x,R[1]=(k[G][g]*v[g]-y[g])/x),c.set(r+G,R)}Mh.sub(L,k[1],k[0]),Mh.sub(D,k[3],k[0]),Mh.cross(P,L,D),Mh.normalize(P,P);for(G=0;G<4;G++)h.set(r+G,P),p&&u.set(r+G,a);for(G=0;G<6;G++)f[3*o+G]=E[G]+r;r+=4,o+=2,O+=z}}return e.dirty(),{vertexOffset:r,triangleOffset:o}},_getRegionLinesInfo:function(t,e,n){var i=0,r=0;e.getRegionModel(t).getModel("itemStyle").get("borderWidth")>0&&e.getRegionPolygonCoords(t).forEach((function(t){var e=t.exterior,o=t.interiors;i+=n.getPolylineVertexCount(e),r+=n.getPolylineTriangleCount(e);for(var a=0;a<o.length;a++)i+=n.getPolylineVertexCount(o[a]),r+=n.getPolylineTriangleCount(o[a])}),this);return{vertexCount:i,triangleCount:r}},_updateLinesGeometry:function(t,e,n,i,r,o){function a(t){for(var e=new Float64Array(3*t.length),n=0,r=[],a=0;a<t.length;a++)r[0]=t[a][0],r[1]=i+.1,r[2]=t[a][1],o&&Mh.transformMat4(r,r,o),e[n++]=r[0],e[n++]=r[1],e[n++]=r[2];return e}var s=[1,1,1,1];e.getRegionPolygonCoords(n).forEach((function(e){var n=e.exterior,i=e.interiors;t.addPolyline(a(n),s,r);for(var o=0;o<i.length;o++)t.addPolyline(a(i[o]),s,r)}))},highlight:function(t){var e=this._data;if(e){var n=e.getItemModel(t).getModel(["emphasis","itemStyle"]),r=n.get("color"),o=wo.firstNotNull(n.get("opacity"),wh(e,t),1);if(null==r){var a=bh(e,t);r=i.yW.lift(a,-.4)}null==o&&(o=wh(e,t));var s=ia.parseColor(r);s[3]*=o,this._setColorOfDataIndex(e,t,s)}},downplay:function(t){var e=this._data;if(e){var n=e.getItemModel(t),i=wo.firstNotNull(bh(e,t),n.get(["itemStyle","color"]),"#fff"),r=wo.firstNotNull(wh(e,t),n.get(["itemStyle","opacity"]),1),o=ia.parseColor(i);o[3]*=r,this._setColorOfDataIndex(e,t,o)}},dispose:function(){this._labelsBuilder.dispose()},_setColorOfDataIndex:function(t,e,n){if(!(e<this._startIndex&&e>this._endIndex)){e-=this._startIndex;for(var i=this._vertexRangeOfDataIndex[2*e];i<this._vertexRangeOfDataIndex[2*e+1];i++)this._polygonMesh.geometry.attributes.color.set(i,n);this._polygonMesh.geometry.dirty(),this._api.getZr().refresh()}}};const Ch=Ah,Ih=i.bR.extend({type:"geo3D",__ecgl__:!0,init:function(t,e){this._geo3DBuilder=new Ch(e),this.groupGL=new ia.Node,this._lightRoot=new ia.Node,this._sceneHelper=new Ba(this._lightRoot),this._sceneHelper.initLight(this._lightRoot),this._control=new Ca({zr:e.getZr()}),this._control.init()},render:function(t,e,n){this.groupGL.add(this._geo3DBuilder.rootNode);var i=t.coordinateSystem;if(i&&i.viewGL){i.viewGL.add(this._lightRoot),t.get("show")?i.viewGL.add(this.groupGL):i.viewGL.remove(this.groupGL);var r=this._control;r.setViewGL(i.viewGL);var o=t.getModel("viewControl");r.setFromViewControlModel(o,0),this._sceneHelper.setScene(i.viewGL.scene),this._sceneHelper.updateLight(t),i.viewGL.setPostEffect(t.getModel("postEffect"),n),i.viewGL.setTemporalSuperSampling(t.getModel("temporalSuperSampling")),this._geo3DBuilder.update(t,e,n,0,t.getData().count());var a=i.viewGL.isLinearSpace()?"define":"undefine";this._geo3DBuilder.rootNode.traverse((function(t){t.material&&t.material[a]("fragment","SRGB_DECODE")})),r.off("update"),r.on("update",(function(){n.dispatchAction({type:"geo3DChangeCamera",alpha:r.getAlpha(),beta:r.getBeta(),distance:r.getDistance(),center:r.getCenter(),from:this.uid,geo3DId:t.id})})),r.update()}},afterRender:function(t,e,n,i){var r=i.renderer;this._sceneHelper.updateAmbientCubemap(r,t,n),this._sceneHelper.updateSkybox(r,t,n)},dispose:function(){this._control.dispose(),this._geo3DBuilder.dispose()}});var Eh=n(6771),kh={Russia:[100,60],"United States":[-99,38],"United States of America":[-99,38]};var Lh=Ea.vec3,Dh=Ea.mat4,Ph=[Eh.A,function(t,e){if("world"===t){var n=kh[e.name];if(n){var i=[n[0],n[1]];e.setCenter(i)}}}];function Rh(t,e,n,i,r){this.name=t,this.map=e,this.regionHeight=0,this.regions=[],this._nameCoordMap={},this.loadGeoJson(n,i,r),this.transform=Dh.identity(new Float64Array(16)),this.invTransform=Dh.identity(new Float64Array(16)),this.extrudeY=!0,this.altitudeAxis}Rh.prototype={constructor:Rh,type:"geo3D",dimensions:["lng","lat","alt"],containPoint:function(){},loadGeoJson:function(t,e,n){var r=i.l3||i.zI;try{this.regions=t?r(t):[]}catch(Jh){throw"Invalid geoJson format\n"+Jh}e=e||{},n=n||{};for(var o=this.regions,a={},s=0;s<o.length;s++){var l=o[s].name;l=n[l]||l,o[s].name=l,a[l]=o[s],this.addGeoCoord(l,o[s].getCenter());var h=e[l];h&&o[s].transformTo(h.left,h.top,h.width,h.height)}this._regionsMap=a,this._geoRect=null,Ph.forEach((function(t){t(this)}),this)},getGeoBoundingRect:function(){if(this._geoRect)return this._geoRect;for(var t,e=this.regions,n=0;n<e.length;n++){var r=e[n].getBoundingRect();(t=t||r.clone()).union(r)}return this._geoRect=t||new i.fA.BoundingRect(0,0,0,0)},addGeoCoord:function(t,e){this._nameCoordMap[t]=e},getRegion:function(t){return this._regionsMap[t]},getRegionByCoord:function(t){for(var e=this.regions,n=0;n<e.length;n++)if(e[n].contain(t))return e[n]},setSize:function(t,e,n){this.size=[t,e,n];var i=this.getGeoBoundingRect(),r=t/i.width,o=-n/i.height,a=-t/2-i.x*r,s=n/2-i.y*o,l=this.extrudeY?[a,0,s]:[a,s,0],h=this.extrudeY?[r,1,o]:[r,o,1],c=this.transform;Dh.identity(c),Dh.translate(c,c,l),Dh.scale(c,c,h),Dh.invert(this.invTransform,c)},dataToPoint:function(t,e){e=e||[];var n=this.extrudeY?1:2,i=this.extrudeY?2:1,r=t[2];return isNaN(r)&&(r=0),e[0]=t[0],e[i]=t[1],this.altitudeAxis?e[n]=this.altitudeAxis.dataToCoord(r):e[n]=0,e[n]+=this.regionHeight,Lh.transformMat4(e,e,this.transform),e},pointToData:function(t,e){}};const Oh=Rh;function Nh(t,e){var n=t.getBoxLayoutParams(),i=(0,cs.dV)(n,{width:e.getWidth(),height:e.getHeight()});i.y=e.getHeight()-i.y-i.height,this.viewGL.setViewport(i.x,i.y,i.width,i.height,e.getDevicePixelRatio());var r=this.getGeoBoundingRect(),o=r.width/r.height*(t.get("aspectScale")||.75),a=t.get("boxWidth"),s=t.get("boxDepth"),l=t.get("boxHeight");null==l&&(l=5),isNaN(a)&&isNaN(s)&&(a=100),isNaN(s)?s=a/o:isNaN(a)&&(a=s/o),this.setSize(a,l,s),this.regionHeight=t.get("regionHeight"),this.altitudeAxis&&this.altitudeAxis.setExtent(0,Math.max(l-this.regionHeight,0))}function Fh(t,e){var n=[1/0,-1/0];if(t.eachSeries((function(t){if(t.coordinateSystem===this&&"series.map3D"!==t.type){var e=t.getData(),i=t.coordDimToDataDim("alt"),r=i&&i[0];if(r){var o=e.getDataExtent(r,!0);n[0]=Math.min(n[0],o[0]),n[1]=Math.max(n[1],o[1])}}}),this),n&&isFinite(n[1]-n[0])){var r=i.dw.createScale(n,{type:"value",min:"dataMin",max:"dataMax"});this.altitudeAxis=new i._0("altitude",r),this.resize(this.model,e)}}var Bh=0,zh={dimensions:Oh.prototype.dimensions,create:function(t,e){var n=[];if(!i.ZB)throw new Error("geo3D component depends on geo component");function r(t,i){var r=zh.createGeo3D(t);t.__viewGL=t.__viewGL||new wl,r.viewGL=t.__viewGL,t.coordinateSystem=r,r.model=t,n.push(r),r.resize=Nh,r.resize(t,e),r.update=Fh}return t.eachComponent("geo3D",(function(t,e){r(t)})),t.eachSeriesByType("map3D",(function(t,e){var n=t.get("coordinateSystem");null==n&&(n="geo3D"),"geo3D"===n&&r(t)})),t.eachSeries((function(e){if("geo3D"===e.get("coordinateSystem")){if("series.map3D"===e.type)return;var n=e.getReferringComponents("geo3D").models[0];if(n||(n=t.getComponent("geo3D")),!n)throw new Error('geo "'+wo.firstNotNull(e.get("geo3DIndex"),e.get("geo3DId"),0)+'" not found');e.coordinateSystem=n.coordinateSystem}})),n},createGeo3D:function(t){var e,n=t.get("map");return"string"==typeof n?(e=n,n=i.ZB(n)):n&&n.features&&(n={geoJson:n}),null==e&&(e="GEO_ANONYMOUS_"+Bh++),new Oh(e+Bh++,e,n&&n.geoJson,n&&n.specialAreas,t.get("nameMap"))}};const Gh=zh;function Vh(t){t.registerComponentModel(Gl),t.registerComponentView(Ih),t.registerAction({type:"geo3DChangeCamera",event:"geo3dcamerachanged",update:"series:updateCamera"},(function(t,e){e.eachComponent({mainType:"geo3D",query:t},(function(e){e.setView(t)}))})),t.registerCoordinateSystem("geo3D",Gh)}function jh(t,e){t.id=t.id||t.name||e+""}(0,i.Yx)(Vh);var Hh=i.jT.extend({type:"globe",layoutMode:"box",coordinateSystem:null,init:function(){Hh.superApply(this,"init",arguments),i.ZS.each(this.option.layers,(function(t,e){i.ZS.merge(t,this.defaultLayerOption),jh(t,e)}),this)},mergeOption:function(t){var e=this.option.layers;function n(t){return i.ZS.reduce(t,(function(t,e,n){return jh(e,n),t[e.id]=e,t}),{})}if(this.option.layers=null,Hh.superApply(this,"mergeOption",arguments),e&&e.length){var r=n(t.layers),o=n(e);for(var a in r)o[a]?i.ZS.merge(o[a],r[a],!0):e.push(t.layers[a]);this.option.layers=e}i.ZS.each(this.option.layers,(function(t){i.ZS.merge(t,this.defaultLayerOption)}),this)},optionUpdated:function(){this.updateDisplacementHash()},defaultLayerOption:{show:!0,type:"overlay"},defaultOption:{show:!0,zlevel:-10,left:0,top:0,width:"100%",height:"100%",environment:"auto",baseColor:"#fff",baseTexture:"",heightTexture:"",displacementTexture:"",displacementScale:0,displacementQuality:"medium",globeRadius:100,globeOuterRadius:150,shading:"lambert",light:{main:{time:""}},atmosphere:{show:!1,offset:5,color:"#ffffff",glowPower:6,innerGlowPower:2},viewControl:{autoRotate:!0,panSensitivity:0,targetCoord:null},layers:[]},setDisplacementData:function(t,e,n){this.displacementData=t,this.displacementWidth=e,this.displacementHeight=n},getDisplacementTexture:function(){return this.get("displacementTexture")||this.get("heightTexture")},getDisplacemenScale:function(){var t=this.getDisplacementTexture(),e=this.get("displacementScale");return t&&"none"!==t||(e=0),e},hasDisplacement:function(){return this.getDisplacemenScale()>0},_displacementChanged:!0,_displacementScale:0,updateDisplacementHash:function(){var t=this.getDisplacementTexture(),e=this.getDisplacemenScale();this._displacementChanged=this._displacementTexture!==t||this._displacementScale!==e,this._displacementTexture=t,this._displacementScale=e},isDisplacementChanged:function(){return this._displacementChanged}});i.ZS.merge(Hh.prototype,va),i.ZS.merge(Hh.prototype,ya),i.ZS.merge(Hh.prototype,_a),i.ZS.merge(Hh.prototype,Fl);const Wh=Hh;var Uh=Math.PI,qh=Math.sin,Xh=Math.cos,Yh=Math.tan,Zh=Math.asin,$h=Math.atan2,Kh=Uh/180;var Jh=23.4397*Kh;function Qh(t,e){return $h(qh(t)*Xh(Jh)-Yh(e)*qh(Jh),Xh(t))}function tc(t,e,n){return $h(qh(t),Xh(t)*qh(e)-Yh(n)*Xh(e))}function ec(t,e,n){return Zh(qh(e)*qh(n)+Xh(e)*Xh(n)*Xh(t))}function nc(t){var e,n,i=function(t){return Kh*(357.5291+.98560028*t)}(t),r=function(t){return t+Kh*(1.9148*qh(t)+.02*qh(2*t)+3e-4*qh(3*t))+102.9372*Kh+Uh}(i);return{dec:(e=r,n=0,Zh(qh(n)*Xh(Jh)+Xh(n)*qh(Jh)*qh(e))),ra:Qh(r,0)}}var ic={};ic.getPosition=function(t,e,n){var i=Kh*-n,r=Kh*e,o=function(t){return function(t){return t.valueOf()/864e5-.5+2440588}(t)-2451545}(t),a=nc(o),s=function(t,e){return Kh*(280.16+360.9856235*t)-e}(o,i)-a.ra;return{azimuth:tc(s,r,a.dec),altitude:ec(s,r,a.dec)}};const rc=ic;ia.Shader.import(Zo),ia.Shader.import("@export ecgl.atmosphere.vertex\nattribute vec3 position: POSITION;\nattribute vec3 normal : NORMAL;\nuniform mat4 worldViewProjection : WORLDVIEWPROJECTION;\nuniform mat4 normalMatrix : WORLDINVERSETRANSPOSE;\n\nvarying vec3 v_Normal;\n\nvoid main() {\n v_Normal = normalize((normalMatrix * vec4(normal, 0.0)).xyz);\n gl_Position = worldViewProjection * vec4(position, 1.0);\n}\n@end\n\n\n@export ecgl.atmosphere.fragment\nuniform mat4 viewTranspose: VIEWTRANSPOSE;\nuniform float glowPower;\nuniform vec3 glowColor;\n\nvarying vec3 v_Normal;\n\nvoid main() {\n float intensity = pow(1.0 - dot(v_Normal, (viewTranspose * vec4(0.0, 0.0, 1.0, 0.0)).xyz), glowPower);\n gl_FragColor = vec4(glowColor, intensity * intensity);\n}\n@end");const oc=i.bR.extend({type:"globe",__ecgl__:!0,_displacementScale:0,init:function(t,e){this.groupGL=new ia.Node,this._sphereGeometry=new ia.SphereGeometry({widthSegments:200,heightSegments:100,dynamic:!0}),this._overlayGeometry=new ia.SphereGeometry({widthSegments:80,heightSegments:40}),this._planeGeometry=new ia.PlaneGeometry,this._earthMesh=new ia.Mesh({renderNormal:!0}),this._atmosphereMesh=new ia.Mesh,this._atmosphereGeometry=new ia.SphereGeometry({widthSegments:80,heightSegments:40}),this._atmosphereMaterial=new ia.Material({shader:new ia.Shader(ia.Shader.source("ecgl.atmosphere.vertex"),ia.Shader.source("ecgl.atmosphere.fragment")),transparent:!0}),this._atmosphereMesh.geometry=this._atmosphereGeometry,this._atmosphereMesh.material=this._atmosphereMaterial,this._atmosphereMesh.frontFace=ia.Mesh.CW,this._lightRoot=new ia.Node,this._sceneHelper=new Ba,this._sceneHelper.initLight(this._lightRoot),this.groupGL.add(this._atmosphereMesh),this.groupGL.add(this._earthMesh),this._control=new Ca({zr:e.getZr()}),this._control.init(),this._layerMeshes={}},render:function(t,e,n){var i=t.coordinateSystem,r=t.get("shading");i.viewGL.add(this._lightRoot),t.get("show")?i.viewGL.add(this.groupGL):i.viewGL.remove(this.groupGL),this._sceneHelper.setScene(i.viewGL.scene),i.viewGL.setPostEffect(t.getModel("postEffect"),n),i.viewGL.setTemporalSuperSampling(t.getModel("temporalSuperSampling"));var o=this._earthMesh;o.geometry=this._sphereGeometry;var a="ecgl."+r;o.material&&o.material.shader.name===a||(o.material=ia.createMaterial(a)),ia.setMaterialFromModel(r,o.material,t,n),["roughnessMap","metalnessMap","detailMap","normalMap"].forEach((function(t){var e=o.material.get(t);e&&(e.flipY=!1)})),o.material.set("color",ia.parseColor(t.get("baseColor")));var s=.99*i.radius;if(o.scale.set(s,s,s),t.get("atmosphere.show")){o.material.define("both","ATMOSPHERE_ENABLED"),this._atmosphereMesh.invisible=!1,this._atmosphereMaterial.setUniforms({glowPower:t.get("atmosphere.glowPower")||6,glowColor:t.get("atmosphere.color")||"#ffffff"}),o.material.setUniforms({glowPower:t.get("atmosphere.innerGlowPower")||2,glowColor:t.get("atmosphere.color")||"#ffffff"});var l=t.get("atmosphere.offset")||5;this._atmosphereMesh.scale.set(s+l,s+l,s+l)}else o.material.undefine("both","ATMOSPHERE_ENABLED"),this._atmosphereMesh.invisible=!0;var h=o.material.setTextureImage("diffuseMap",t.get("baseTexture"),n,{flipY:!1,anisotropic:8});h&&h.surface&&h.surface.attachToMesh(o);var c=o.material.setTextureImage("bumpMap",t.get("heightTexture"),n,{flipY:!1,anisotropic:8});c&&c.surface&&c.surface.attachToMesh(o),o.material[t.get("postEffect.enable")?"define":"undefine"]("fragment","SRGB_DECODE"),this._updateLight(t,n),this._displaceVertices(t,n),this._updateViewControl(t,n),this._updateLayers(t,n)},afterRender:function(t,e,n,i){var r=i.renderer;this._sceneHelper.updateAmbientCubemap(r,t,n),this._sceneHelper.updateSkybox(r,t,n)},_updateLayers:function(t,e){var n=t.coordinateSystem,r=t.get("layers"),o=n.radius,a=[],s=[],l=[],h=[];i.ZS.each(r,(function(t){var r=new i.Kx(t),c=r.get("type"),u=ia.loadTexture(r.get("texture"),e,{flipY:!1,anisotropic:8});if(u.surface&&u.surface.attachToMesh(this._earthMesh),"blend"===c){var d=r.get("blendTo"),p=wo.firstNotNull(r.get("intensity"),1);"emission"===d?(l.push(u),h.push(p)):(a.push(u),s.push(p))}else{var f=r.get("id"),g=this._layerMeshes[f];g||(g=this._layerMeshes[f]=new ia.Mesh({geometry:this._overlayGeometry,castShadow:!1,ignorePicking:!0})),"lambert"===r.get("shading")?(g.material=g.__lambertMaterial||new ia.Material({autoUpdateTextureStatus:!1,shader:ia.createShader("ecgl.lambert"),transparent:!0,depthMask:!1}),g.__lambertMaterial=g.material):(g.material=g.__colorMaterial||new ia.Material({autoUpdateTextureStatus:!1,shader:ia.createShader("ecgl.color"),transparent:!0,depthMask:!1}),g.__colorMaterial=g.material),g.material.enableTexture("diffuseMap");var m=r.get("distance"),v=o+(null==m?n.radius/100:m);g.scale.set(v,v,v),o=v;var y=this._blankTexture||(this._blankTexture=ia.createBlankTexture("rgba(255, 255, 255, 0)"));g.material.set("diffuseMap",y),ia.loadTexture(r.get("texture"),e,{flipY:!1,anisotropic:8},(function(t){t.surface&&t.surface.attachToMesh(g),g.material.set("diffuseMap",t),e.getZr().refresh()})),r.get("show")?this.groupGL.add(g):this.groupGL.remove(g)}}),this);var c=this._earthMesh.material;c.define("fragment","LAYER_DIFFUSEMAP_COUNT",a.length),c.define("fragment","LAYER_EMISSIVEMAP_COUNT",l.length),c.set("layerDiffuseMap",a),c.set("layerDiffuseIntensity",s),c.set("layerEmissiveMap",l),c.set("layerEmissionIntensity",h);var u=t.getModel("debug.wireframe");if(u.get("show")){c.define("both","WIREFRAME_TRIANGLE");var d=ia.parseColor(u.get("lineStyle.color")||"rgba(0,0,0,0.5)"),p=wo.firstNotNull(u.get("lineStyle.width"),1);c.set("wireframeLineWidth",p),c.set("wireframeLineColor",d)}else c.undefine("both","WIREFRAME_TRIANGLE")},_updateViewControl:function(t,e){var n=t.coordinateSystem,i=t.getModel("viewControl"),r=(n.viewGL.camera,this);var o=this._control;o.setViewGL(n.viewGL);var a,s,l=i.get("targetCoord");null!=l&&(s=l[0]+90,a=l[1]),o.setFromViewControlModel(i,{baseDistance:n.radius,alpha:a,beta:s}),o.off("update"),o.on("update",(function(){e.dispatchAction({type:"globeChangeCamera",alpha:o.getAlpha(),beta:o.getBeta(),distance:o.getDistance()-n.radius,center:o.getCenter(),from:r.uid,globeId:t.id})}))},_displaceVertices:function(t,e){var n=t.get("displacementQuality"),i=t.get("debug.wireframe.show"),r=t.coordinateSystem;if(t.isDisplacementChanged()||n!==this._displacementQuality||i!==this._showDebugWireframe){this._displacementQuality=n,this._showDebugWireframe=i;var o=this._sphereGeometry,a={low:100,medium:200,high:400,ultra:800}[n]||200,s=a/2;(o.widthSegments!==a||i)&&(o.widthSegments=a,o.heightSegments=s,o.build()),this._doDisplaceVertices(o,r),i&&o.generateBarycentric()}},_doDisplaceVertices:function(t,e){var n=t.attributes.position.value,i=t.attributes.texcoord0.value,r=t.__originalPosition;r&&r.length===n.length||((r=new Float32Array(n.length)).set(n),t.__originalPosition=r);for(var o=e.displacementWidth,a=e.displacementHeight,s=e.displacementData,l=0;l<t.vertexCount;l++){var h=3*l,c=2*l,u=r[h+1],d=r[h+2],p=r[h+3],f=i[c++],g=i[c++],m=Math.round(f*(o-1)),v=Math.round(g*(a-1)),y=s?s[v*o+m]:0;n[h+1]=u+u*y,n[h+2]=d+d*y,n[h+3]=p+p*y}t.generateVertexNormals(),t.dirty(),t.updateBoundingBox()},_updateLight:function(t,e){var n=this._earthMesh;this._sceneHelper.updateLight(t);var r=this._sceneHelper.mainLight,o=t.get("light.main.time")||new Date,a=rc.getPosition(i.ai.parseDate(o),0,0),s=Math.cos(a.altitude);r.position.y=-s*Math.cos(a.azimuth),r.position.x=Math.sin(a.altitude),r.position.z=s*Math.sin(a.azimuth),r.lookAt(n.getWorldPosition())},dispose:function(t,e){this.groupGL.removeAll(),this._control.dispose()}});var ac=Ea.vec3;function sc(t){this.radius=t,this.viewGL=null,this.altitudeAxis,this.displacementData=null,this.displacementWidth,this.displacementHeight}sc.prototype={constructor:sc,dimensions:["lng","lat","alt"],type:"globe",containPoint:function(){},setDisplacementData:function(t,e,n){this.displacementData=t,this.displacementWidth=e,this.displacementHeight=n},_getDisplacementScale:function(t,e){var n=(t+180)/360*(this.displacementWidth-1),i=(90-e)/180*(this.displacementHeight-1),r=Math.round(n)+Math.round(i)*this.displacementWidth;return this.displacementData[r]},dataToPoint:function(t,e){var n=t[0],i=t[1],r=t[2]||0,o=this.radius;this.displacementData&&(o*=1+this._getDisplacementScale(n,i)),this.altitudeAxis&&(o+=this.altitudeAxis.dataToCoord(r)),n=n*Math.PI/180,i=i*Math.PI/180;var a=Math.cos(i)*o;return(e=e||[])[0]=-a*Math.cos(n+Math.PI),e[1]=Math.sin(i)*o,e[2]=a*Math.sin(n+Math.PI),e},pointToData:function(t,e){var n=t[0],i=t[1],r=t[2],o=ac.len(t);n/=o,i/=o,r/=o;var a=Math.asin(i),s=Math.atan2(r,-n);s<0&&(s=2*Math.PI+s);var l=180*a/Math.PI,h=180*s/Math.PI-180;return(e=e||[])[0]=h,e[1]=l,e[2]=o-this.radius,this.altitudeAxis&&(e[2]=this.altitudeAxis.coordToData(e[2])),e}};const lc=sc;function hc(t,e){var n=t.getBoxLayoutParams(),i=(0,cs.dV)(n,{width:e.getWidth(),height:e.getHeight()});i.y=e.getHeight()-i.y-i.height,this.viewGL.setViewport(i.x,i.y,i.width,i.height,e.getDevicePixelRatio()),this.radius=t.get("globeRadius");var r=t.get("globeOuterRadius");this.altitudeAxis&&this.altitudeAxis.setExtent(0,r-this.radius)}function cc(t,e){var n=[1/0,-1/0];if(t.eachSeries((function(t){if(t.coordinateSystem===this){var e=t.getData(),i=t.coordDimToDataDim("alt"),r=i&&i[0];if(r){var o=e.getDataExtent(r,!0);n[0]=Math.min(n[0],o[0]),n[1]=Math.max(n[1],o[1])}}}),this),n&&isFinite(n[1]-n[0])){var r=i.dw.createScale(n,{type:"value",min:"dataMin",max:"dataMax"});this.altitudeAxis=new i._0("altitude",r),this.resize(this.model,e)}}var uc={dimensions:lc.prototype.dimensions,create:function(t,e){var n=[];return t.eachComponent("globe",(function(t){t.__viewGL=t.__viewGL||new wl;var i=new lc;i.viewGL=t.__viewGL,t.coordinateSystem=i,i.model=t,n.push(i),i.resize=hc,i.resize(t,e),i.update=cc})),t.eachSeries((function(e){if("globe"===e.get("coordinateSystem")){var n=e.getReferringComponents("globe").models[0];if(n||(n=t.getComponent("globe")),!n)throw new Error('globe "'+wo.firstNotNull(e.get("globe3DIndex"),e.get("globe3DId"),0)+'" not found');var i=n.coordinateSystem;e.coordinateSystem=i}})),t.eachComponent("globe",(function(t,n){var i=t.coordinateSystem,r=t.getDisplacementTexture(),o=t.getDisplacemenScale();if(t.isDisplacementChanged()){if(t.hasDisplacement()){var a=!0;ia.loadTexture(r,e,(function(n){var i=function(t,e){var n=document.createElement("canvas"),i=n.getContext("2d"),r=t.width,o=t.height;n.width=r,n.height=o,i.drawImage(t,0,0,r,o);for(var a=i.getImageData(0,0,r,o).data,s=new Float32Array(a.length/4),l=0;l<a.length/4;l++){var h=a[4*l];s[l]=h/255*e}return{data:s,width:r,height:o}}(n.image,o);t.setDisplacementData(i.data,i.width,i.height),a||e.dispatchAction({type:"globeUpdateDisplacment"})})),a=!1}else i.setDisplacementData(null,0,0);i.setDisplacementData(t.displacementData,t.displacementWidth,t.displacementHeight)}})),n}};const dc=uc;(0,i.Yx)((function(t){t.registerComponentModel(Wh),t.registerComponentView(oc),t.registerCoordinateSystem("globe",dc),t.registerAction({type:"globeChangeCamera",event:"globecamerachanged",update:"series:updateCamera"},(function(t,e){e.eachComponent({mainType:"globe",query:t},(function(e){e.setView(t)}))})),t.registerAction({type:"globeUpdateDisplacment",event:"globedisplacementupdated",update:"update"},(function(t,e){}))}));var pc=["zoom","center","pitch","bearing"],fc=i.jT.extend({type:"mapbox3D",layoutMode:"box",coordinateSystem:null,defaultOption:{zlevel:-10,style:"mapbox://styles/mapbox/light-v9",center:[0,0],zoom:0,pitch:0,bearing:0,light:{main:{alpha:20,beta:30}},altitudeScale:1,boxHeight:"auto"},getMapboxCameraOption:function(){var t=this;return pc.reduce((function(e,n){return e[n]=t.get(n),e}),{})},setMapboxCameraOption:function(t){null!=t&&pc.forEach((function(e){null!=t[e]&&(this.option[e]=t[e])}),this)},getMapbox:function(){return this._mapbox},setMapbox:function(t){this._mapbox=t}});i.ZS.merge(fc.prototype,ya),i.ZS.merge(fc.prototype,_a);const gc=fc;function mc(t,e){if(this.id=t,this.zr=e,this.dom=document.createElement("div"),this.dom.style.cssText="position:absolute;left:0;right:0;top:0;bottom:0;",!mapboxgl)throw new Error("Mapbox GL library must be included. See https://www.mapbox.com/mapbox-gl-js/api/");this._mapbox=new mapboxgl.Map({container:this.dom}),this._initEvents()}mc.prototype.setUnpainted=function(){},mc.prototype.resize=function(){this._mapbox.resize()},mc.prototype.getMapbox=function(){return this._mapbox},mc.prototype.clear=function(){},mc.prototype.refresh=function(){this._mapbox.resize()};var vc=["mousedown","mouseup","click","dblclick","mousemove","mousewheel","wheel","touchstart","touchend","touchmove","touchcancel"];mc.prototype._initEvents=function(){var t=this._mapbox.getCanvasContainer();this._handlers=this._handlers||{contextmenu:function(t){return t.preventDefault(),!1}},vc.forEach((function(e){this._handlers[e]=function(e){var n={};for(var i in e)n[i]=e[i];n.bubbles=!1;var r=new e.constructor(e.type,n);t.dispatchEvent(r)},this.zr.dom.addEventListener(e,this._handlers[e])}),this),this.zr.dom.addEventListener("contextmenu",this._handlers.contextmenu)},mc.prototype.dispose=function(){vc.forEach((function(t){this.zr.dom.removeEventListener(t,this._handlers[t])}),this)};const yc=mc,_c="\n@export ecgl.displayShadow.vertex\n\n@import ecgl.common.transformUniforms\n\n@import ecgl.common.uv.header\n\n@import ecgl.common.attributes\n\nvarying vec3 v_WorldPosition;\n\nvarying vec3 v_Normal;\n\nvoid main()\n{\n @import ecgl.common.uv.main\n v_Normal = normalize((worldInverseTranspose * vec4(normal, 0.0)).xyz);\n\n v_WorldPosition = (world * vec4(position, 1.0)).xyz;\n gl_Position = worldViewProjection * vec4(position, 1.0);\n}\n\n@end\n\n\n@export ecgl.displayShadow.fragment\n\n@import ecgl.common.uv.fragmentHeader\n\nvarying vec3 v_Normal;\nvarying vec3 v_WorldPosition;\n\nuniform float roughness: 0.2;\n\n#ifdef DIRECTIONAL_LIGHT_COUNT\n@import clay.header.directional_light\n#endif\n\n@import ecgl.common.ssaoMap.header\n\n@import clay.plugin.compute_shadow_map\n\nvoid main()\n{\n float shadow = 1.0;\n\n @import ecgl.common.ssaoMap.main\n\n#if defined(DIRECTIONAL_LIGHT_COUNT) && defined(DIRECTIONAL_LIGHT_SHADOWMAP_COUNT)\n float shadowContribsDir[DIRECTIONAL_LIGHT_COUNT];\n if(shadowEnabled)\n {\n computeShadowOfDirectionalLights(v_WorldPosition, shadowContribsDir);\n }\n for (int i = 0; i < DIRECTIONAL_LIGHT_COUNT; i++) {\n shadow = min(shadow, shadowContribsDir[i] * 0.5 + 0.5);\n }\n#endif\n\n shadow *= 0.5 + ao * 0.5;\n shadow = clamp(shadow, 0.0, 1.0);\n\n gl_FragColor = vec4(vec3(0.0), 1.0 - shadow);\n}\n\n@end";ia.Shader.import(_c);const xc=i.bR.extend({type:"mapbox3D",__ecgl__:!0,init:function(t,e){var n=e.getZr();this._zrLayer=new yc("mapbox3D",n),n.painter.insertLayer(-1e3,this._zrLayer),this._lightRoot=new ia.Node,this._sceneHelper=new Ba(this._lightRoot),this._sceneHelper.initLight(this._lightRoot);var i=this._zrLayer.getMapbox(),r=this._dispatchInteractAction.bind(this,e,i);["zoom","rotate","drag","pitch","rotate","move"].forEach((function(t){i.on(t,r)})),this._groundMesh=new ia.Mesh({geometry:new ia.PlaneGeometry,material:new ia.Material({shader:new ia.Shader({vertex:ia.Shader.source("ecgl.displayShadow.vertex"),fragment:ia.Shader.source("ecgl.displayShadow.fragment")}),depthMask:!1}),renderOrder:-100,culling:!1,castShadow:!1,$ignorePicking:!0,renderNormal:!0})},render:function(t,e,n){var i=this._zrLayer.getMapbox(),r=t.get("style"),o=JSON.stringify(r);o!==this._oldStyleStr&&r&&i.setStyle(r),this._oldStyleStr=o,i.setCenter(t.get("center")),i.setZoom(t.get("zoom")),i.setPitch(t.get("pitch")),i.setBearing(t.get("bearing")),t.setMapbox(i);var a=t.coordinateSystem;a.viewGL.scene.add(this._lightRoot),a.viewGL.add(this._groundMesh),this._updateGroundMesh(),this._sceneHelper.setScene(a.viewGL.scene),this._sceneHelper.updateLight(t),a.viewGL.setPostEffect(t.getModel("postEffect"),n),a.viewGL.setTemporalSuperSampling(t.getModel("temporalSuperSampling")),this._mapbox3DModel=t},afterRender:function(t,e,n,i){var r=i.renderer;this._sceneHelper.updateAmbientCubemap(r,t,n),this._sceneHelper.updateSkybox(r,t,n),t.coordinateSystem.viewGL.scene.traverse((function(t){t.material&&(t.material.define("fragment","NORMAL_UP_AXIS",2),t.material.define("fragment","NORMAL_FRONT_AXIS",1))}))},updateCamera:function(t,e,n,i){t.coordinateSystem.setCameraOption(i),this._updateGroundMesh(),n.getZr().refresh()},_dispatchInteractAction:function(t,e,n){t.dispatchAction({type:"mapbox3DChangeCamera",pitch:e.getPitch(),zoom:e.getZoom(),center:e.getCenter().toArray(),bearing:e.getBearing(),mapbox3DId:this._mapbox3DModel&&this._mapbox3DModel.id})},_updateGroundMesh:function(){if(this._mapbox3DModel){var t=this._mapbox3DModel.coordinateSystem,e=t.dataToPoint(t.center);this._groundMesh.position.set(e[0],e[1],-.001);var n=new ia.Plane(new ia.Vector3(0,0,1),0),i=t.viewGL.camera.castRay(new ia.Vector2(-1,-1)),r=t.viewGL.camera.castRay(new ia.Vector2(1,1)),o=i.intersectPlane(n),a=r.intersectPlane(n),s=o.dist(a)/t.viewGL.rootNode.scale.x;this._groundMesh.scale.set(s,s,1)}},dispose:function(t,e){this._zrLayer&&this._zrLayer.dispose(),e.getZr().painter.delLayer(-1e3)}});var bc=Ea.mat4,wc=512,Sc=.6435011087932844,Tc=Math.PI,Mc=.1;function Ac(){this.width=0,this.height=0,this.altitudeScale=1,this.boxHeight="auto",this.altitudeExtent,this.bearing=0,this.pitch=0,this.center=[0,0],this._origin,this.zoom=0,this._initialZoom,this.maxPitch=60,this.zoomOffset=0}Ac.prototype={constructor:Ac,dimensions:["lng","lat","alt"],containPoint:function(){},setCameraOption:function(t){this.bearing=t.bearing,this.pitch=t.pitch,this.center=t.center,this.zoom=t.zoom,this._origin||(this._origin=this.projectOnTileWithScale(this.center,wc)),null==this._initialZoom&&(this._initialZoom=this.zoom),this.updateTransform()},updateTransform:function(){if(this.height){var t=.5/Math.tan(Sc/2)*this.height*Mc,e=Math.max(Math.min(this.pitch,this.maxPitch),0)/180*Math.PI,n=Sc/2,i=Math.PI/2+e,r=Math.sin(n)*t/Math.sin(Math.PI-i-n),o=1.1*(Math.cos(Math.PI/2-e)*r+t);this.pitch>50&&(o=1e3);var a=[];bc.perspective(a,Sc,this.width/this.height,1,o),this.viewGL.camera.projectionMatrix.setArray(a),this.viewGL.camera.decomposeProjectionMatrix();a=bc.identity([]);var s=this.dataToPoint(this.center);bc.scale(a,a,[1,-1,1]),bc.translate(a,a,[0,0,-t]),bc.rotateX(a,a,e),bc.rotateZ(a,a,-this.bearing/180*Math.PI),bc.translate(a,a,[-s[0]*this.getScale()*Mc,-s[1]*this.getScale()*Mc,0]),this.viewGL.camera.viewMatrix.array=a;var l=[];bc.invert(l,a),this.viewGL.camera.worldTransform.array=l,this.viewGL.camera.decomposeWorldTransform();var h,c=wc*this.getScale();if(this.altitudeExtent&&!isNaN(this.boxHeight)){var u=this.altitudeExtent[1]-this.altitudeExtent[0];h=this.boxHeight/u*this.getScale()/Math.pow(2,this._initialZoom-this.zoomOffset)}else h=c/(2*Math.PI*6378e3*Math.abs(Math.cos(this.center[1]*(Math.PI/180))))*this.altitudeScale*Mc;this.viewGL.rootNode.scale.set(this.getScale()*Mc,this.getScale()*Mc,h)}},getScale:function(){return Math.pow(2,this.zoom-this.zoomOffset)},projectOnTile:function(t,e){return this.projectOnTileWithScale(t,this.getScale()*wc,e)},projectOnTileWithScale:function(t,e,n){var i=t[0],r=t[1]*Tc/180,o=e*(i*Tc/180+Tc)/(2*Tc),a=e*(Tc-Math.log(Math.tan(Tc/4+.5*r)))/(2*Tc);return(n=n||[])[0]=o,n[1]=a,n},unprojectFromTile:function(t,e){return this.unprojectOnTileWithScale(t,this.getScale()*wc,e)},unprojectOnTileWithScale:function(t,e,n){var i=t[0],r=t[1],o=i/e*(2*Tc)-Tc,a=2*(Math.atan(Math.exp(Tc-r/e*(2*Tc)))-Tc/4);return(n=n||[])[0]=180*o/Tc,n[1]=180*a/Tc,n},dataToPoint:function(t,e){return(e=this.projectOnTileWithScale(t,wc,e))[0]-=this._origin[0],e[1]-=this._origin[1],e[2]=isNaN(t[2])?0:t[2],isNaN(t[2])||(e[2]=t[2],this.altitudeExtent&&(e[2]-=this.altitudeExtent[0])),e}};const Cc=Ac;function Ic(){Cc.apply(this,arguments)}Ic.prototype=new Cc,Ic.prototype.constructor=Ic,Ic.prototype.type="mapbox3D";function Ec(t,e,n){function i(t,e){var n=e.getWidth(),i=e.getHeight(),r=e.getDevicePixelRatio();this.viewGL.setViewport(0,0,n,i,r),this.width=n,this.height=i,this.altitudeScale=t.get("altitudeScale"),this.boxHeight=t.get("boxHeight")}function r(t,e){if("auto"!==this.model.get("boxHeight")){var n=[1/0,-1/0];t.eachSeries((function(t){if(t.coordinateSystem===this){var e=t.getData(),i=t.coordDimToDataDim("alt")[0];if(i){var r=e.getDataExtent(i,!0);n[0]=Math.min(n[0],r[0]),n[1]=Math.max(n[1],r[1])}}}),this),n&&isFinite(n[1]-n[0])&&(this.altitudeExtent=n)}}return{dimensions:e.prototype.dimensions,create:function(o,a){var s=[];return o.eachComponent(t,(function(t){var n=t.__viewGL;n||(n=t.__viewGL=new wl).setRootNode(new ia.Node);var o=new e;o.viewGL=t.__viewGL,o.resize=i,o.resize(t,a),s.push(o),t.coordinateSystem=o,o.model=t,o.update=r})),o.eachSeries((function(e){if(e.get("coordinateSystem")===t){var n=e.getReferringComponents(t).models[0];if(n||(n=o.getComponent(t)),!n)throw new Error(t+' "'+wo.firstNotNull(e.get(t+"Index"),e.get(t+"Id"),0)+'" not found');e.coordinateSystem=n.coordinateSystem}})),n&&n(s,o,a),s}}}const kc=Ec("mapbox3D",Ic,(function(t){t.forEach((function(t){t.setCameraOption(t.model.getMapboxCameraOption())}))}));(0,i.Yx)((function(t){t.registerComponentModel(gc),t.registerComponentView(xc),t.registerCoordinateSystem("mapbox3D",kc),t.registerAction({type:"mapbox3DChangeCamera",event:"mapbox3dcamerachanged",update:"mapbox3D:updateCamera"},(function(t,e){e.eachComponent({mainType:"mapbox3D",query:t},(function(e){e.setMapboxCameraOption(t)}))}))}));var Lc=["zoom","center","pitch","bearing"],Dc=i.jT.extend({type:"maptalks3D",layoutMode:"box",coordinateSystem:null,defaultOption:{zlevel:-10,urlTemplate:"http://{s}.basemaps.cartocdn.com/light_all/{z}/{x}/{y}.png",attribution:'© <a href="http://osm.org">OpenStreetMap</a> contributors, © <a href="https://carto.com/">CARTO</a>',center:[0,0],zoom:0,pitch:0,bearing:0,light:{main:{alpha:20,beta:30}},altitudeScale:1,boxHeight:"auto"},getMaptalksCameraOption:function(){var t=this;return Lc.reduce((function(e,n){return e[n]=t.get(n),e}),{})},setMaptalksCameraOption:function(t){null!=t&&Lc.forEach((function(e){null!=t[e]&&(this.option[e]=t[e])}),this)},getMaptalks:function(){return this._maptalks},setMaptalks:function(t){this._maptalks=t}});i.ZS.merge(Dc.prototype,ya),i.ZS.merge(Dc.prototype,_a);const Pc=Dc;function Rc(t,e,n,i){if(this.id=t,this.zr=e,this.dom=document.createElement("div"),this.dom.style.cssText="position:absolute;left:0;right:0;top:0;bottom:0;",!maptalks)throw new Error("Maptalks library must be included. See https://maptalks.org");this._maptalks=new maptalks.Map(this.dom,{center:n,zoom:i,doubleClickZoom:!1,fog:!1}),this._initEvents()}Rc.prototype.setUnpainted=function(){},Rc.prototype.resize=function(){this._maptalks.checkSize()},Rc.prototype.getMaptalks=function(){return this._maptalks},Rc.prototype.clear=function(){},Rc.prototype.refresh=function(){this._maptalks.checkSize()};var Oc=["mousedown","mouseup","click","dblclick","mousemove","mousewheel","DOMMouseScroll","touchstart","touchend","touchmove","touchcancel"];Rc.prototype._initEvents=function(){var t=this.dom;this._handlers=this._handlers||{contextmenu:function(t){return t.preventDefault(),!1}},Oc.forEach((function(e){this._handlers[e]=function(n){var i={};for(var r in n)i[r]=n[r];i.bubbles=!1;var o=new n.constructor(n.type,i);"mousewheel"===e||"DOMMouseScroll"===e?t.dispatchEvent(o):t.firstElementChild.dispatchEvent(o)},this.zr.dom.addEventListener(e,this._handlers[e])}),this),this.zr.dom.addEventListener("contextmenu",this._handlers.contextmenu)},Rc.prototype.dispose=function(){Oc.forEach((function(t){this.zr.dom.removeEventListener(t,this._handlers[t])}),this),this._maptalks.remove()};const Nc=Rc;ia.Shader.import(_c);const Fc=i.bR.extend({type:"maptalks3D",__ecgl__:!0,init:function(t,e){this._groundMesh=new ia.Mesh({geometry:new ia.PlaneGeometry,material:new ia.Material({shader:new ia.Shader({vertex:ia.Shader.source("ecgl.displayShadow.vertex"),fragment:ia.Shader.source("ecgl.displayShadow.fragment")}),depthMask:!1}),renderOrder:-100,culling:!1,castShadow:!1,$ignorePicking:!0,renderNormal:!0})},_initMaptalksLayer:function(t,e){var n=e.getZr();this._zrLayer=new Nc("maptalks3D",n,t.get("center"),t.get("zoom")),n.painter.insertLayer(-1e3,this._zrLayer),this._lightRoot=new ia.Node,this._sceneHelper=new Ba(this._lightRoot),this._sceneHelper.initLight(this._lightRoot);var i=this._zrLayer.getMaptalks(),r=this._dispatchInteractAction.bind(this,e,i);["zoomend","zooming","zoomstart","dragrotating","pitch","pitchend","movestart","moving","moveend","resize","touchstart","touchmove","touchend","animating"].forEach((function(t){i.on(t,r)}))},render:function(t,e,n){this._zrLayer||this._initMaptalksLayer(t,n);var i=this._zrLayer.getMaptalks(),r=t.get("urlTemplate"),o=i.getBaseLayer();r!==this._oldUrlTemplate&&(o?o.setOptions({urlTemplate:r,attribution:t.get("attribution")}):(o=new maptalks.TileLayer("maptalks-echarts-gl-baselayer",{urlTemplate:r,subdomains:["a","b","c"],attribution:t.get("attribution")}),i.setBaseLayer(o))),this._oldUrlTemplate=r,i.setCenter(t.get("center")),i.setZoom(t.get("zoom"),{animation:!1}),i.setPitch(t.get("pitch")),i.setBearing(t.get("bearing")),t.setMaptalks(i);var a=t.coordinateSystem;a.viewGL.scene.add(this._lightRoot),a.viewGL.add(this._groundMesh),this._updateGroundMesh(),this._sceneHelper.setScene(a.viewGL.scene),this._sceneHelper.updateLight(t),a.viewGL.setPostEffect(t.getModel("postEffect"),n),a.viewGL.setTemporalSuperSampling(t.getModel("temporalSuperSampling")),this._maptalks3DModel=t},afterRender:function(t,e,n,i){var r=i.renderer;this._sceneHelper.updateAmbientCubemap(r,t,n),this._sceneHelper.updateSkybox(r,t,n),t.coordinateSystem.viewGL.scene.traverse((function(t){t.material&&(t.material.define("fragment","NORMAL_UP_AXIS",2),t.material.define("fragment","NORMAL_FRONT_AXIS",1))}))},updateCamera:function(t,e,n,i){t.coordinateSystem.setCameraOption(i),this._updateGroundMesh(),n.getZr().refresh()},_dispatchInteractAction:function(t,e,n){var i;t.dispatchAction({type:"maptalks3DChangeCamera",pitch:e.getPitch(),zoom:(i=e.getResolution(),19-Math.log(i/Bc)/Math.LN2+1),center:e.getCenter().toArray(),bearing:e.getBearing(),maptalks3DId:this._maptalks3DModel&&this._maptalks3DModel.id})},_updateGroundMesh:function(){if(this._maptalks3DModel){var t=this._maptalks3DModel.coordinateSystem,e=t.dataToPoint(t.center);this._groundMesh.position.set(e[0],e[1],-.001);var n=new ia.Plane(new ia.Vector3(0,0,1),0),i=t.viewGL.camera.castRay(new ia.Vector2(-1,-1)),r=t.viewGL.camera.castRay(new ia.Vector2(1,1)),o=i.intersectPlane(n),a=r.intersectPlane(n),s=o.dist(a)/t.viewGL.rootNode.scale.x;this._groundMesh.scale.set(s,s,1)}},dispose:function(t,e){this._zrLayer&&this._zrLayer.dispose(),e.getZr().painter.delLayer(-1e3)}}),Bc=12756274*Math.PI/(256*Math.pow(2,20));function zc(){Cc.apply(this,arguments),this.maxPitch=85,this.zoomOffset=1}zc.prototype=new Cc,zc.prototype.constructor=zc,zc.prototype.type="maptalks3D";const Gc=Ec("maptalks3D",zc,(function(t){t.forEach((function(t){t.setCameraOption(t.model.getMaptalksCameraOption())}))}));(0,i.Yx)((function(t){t.registerComponentModel(Pc),t.registerComponentView(Fc),t.registerCoordinateSystem("maptalks3D",Gc),t.registerAction({type:"maptalks3DChangeCamera",event:"maptalks3dcamerachanged",update:"maptalks3D:updateCamera"},(function(t,e){e.eachComponent({mainType:"maptalks3D",query:t},(function(e){e.setMaptalksCameraOption(t)}))}))}));var Vc=Ea.vec3,jc=i.dw.dataStack.isDimensionStacked;const Hc=function(t,e){var n=t.getData(),r=t.get("barSize");if(null==r){var o,a,s=e.size,l=e.getAxis("x"),h=e.getAxis("y");o="category"===l.type?.7*l.getBandWidth():.6*Math.round(s[0]/Math.sqrt(n.count())),a="category"===h.type?.7*h.getBandWidth():.6*Math.round(s[1]/Math.sqrt(n.count())),r=[o,a]}else i.ZS.isArray(r)||(r=[r,r]);var c=e.getAxis("z").scale.getExtent(),u=function(t){var e=t[0],n=t[1];return!(e>0&&n>0||e<0&&n<0)}(c),d=["x","y","z"].map((function(e){return t.coordDimToDataDim(e)[0]})),p=jc(n,d[2]),f=p?n.getCalculationInfo("stackResultDimension"):d[2];n.each(d,(function(t,i,o,a){var s=n.get(f,a),l=p?s-o:u?0:c[0],h=e.dataToPoint([t,i,l]),d=e.dataToPoint([t,i,s]),g=Vc.dist(h,d),m=[0,d[1]<h[1]?-1:1,0];0===Math.abs(g)&&(g=.1);var v=[r[0],g,r[1]];n.setItemLayout(a,[h,m,v])})),n.setLayout("orient",[1,0,0])};function Wc(t,e,n){for(var i=t.getDataExtent(e),r=t.getDataExtent(n),o=i[1]-i[0]||i[0],a=r[1]-r[0]||r[0],s=new Uint8Array(2500),l=0;l<t.count();l++){var h=t.get(e,l),c=t.get(n,l),u=Math.floor((h-i[0])/o*49),d=50*Math.floor((c-r[0])/a*49)+u;s[d]=s[d]||1}var p=0;for(l=0;l<s.length;l++)s[l]&&p++;return p/s.length}var Uc=Ea.vec3,qc=i.dw.dataStack.isDimensionStacked;function Xc(t,e){var n=qc(t,e[2]);return{dimension:n?t.getCalculationInfo("stackResultDimension"):e[2],isStacked:n}}function Yc(t){t.registerLayout((function(t,e){t.eachSeriesByType("bar3D",(function(t){var e=t.coordinateSystem,n=e&&e.type;"globe"===n?function(t,e){var n=t.getData(),r=t.get("minHeight")||0,o=t.get("barSize"),a=["lng","lat","alt"].map((function(e){return t.coordDimToDataDim(e)[0]}));if(null==o){var s=e.radius*Math.PI,l=Wc(n,a[0],a[1]);o=[s/Math.sqrt(n.count()/l),s/Math.sqrt(n.count()/l)]}else i.ZS.isArray(o)||(o=[o,o]);var h=Xc(n,a);n.each(a,(function(t,i,a,s){var l=n.get(h.dimension,s),c=h.isStacked?l-a:e.altitudeAxis.scale.getExtent()[0],u=Math.max(e.altitudeAxis.dataToCoord(a),r),d=e.dataToPoint([t,i,c]),p=e.dataToPoint([t,i,l]),f=Uc.sub([],p,d);Uc.normalize(f,f);var g=[o[0],u,o[1]];n.setItemLayout(s,[d,f,g])})),n.setLayout("orient",Qe.UP.array)}(t,e):"cartesian3D"===n?Hc(t,e):"geo3D"===n?function(t,e){var n=t.getData(),r=t.get("barSize"),o=t.get("minHeight")||0,a=["lng","lat","alt"].map((function(e){return t.coordDimToDataDim(e)[0]}));if(null==r){var s=Math.min(e.size[0],e.size[2]),l=Wc(n,a[0],a[1]);r=[s/Math.sqrt(n.count()/l),s/Math.sqrt(n.count()/l)]}else i.ZS.isArray(r)||(r=[r,r]);var h=[0,1,0],c=Xc(n,a);n.each(a,(function(t,i,a,s){var l=n.get(c.dimension,s),u=c.isStacked?l-a:e.altitudeAxis.scale.getExtent()[0],d=Math.max(e.altitudeAxis.dataToCoord(a),o),p=e.dataToPoint([t,i,u]),f=[r[0],d,r[1]];n.setItemLayout(s,[p,h,f])})),n.setLayout("orient",[1,0,0])}(t,e):("mapbox3D"===n||"maptalks3D"===n)&&function(t,e){var n=t.getData(),r=t.coordDimToDataDim("lng")[0],o=t.coordDimToDataDim("lat")[0],a=t.coordDimToDataDim("alt")[0],s=t.get("barSize"),l=t.get("minHeight")||0;if(null==s){var h=n.getDataExtent(r),c=n.getDataExtent(o),u=e.dataToPoint([h[0],c[0]]),d=e.dataToPoint([h[1],c[1]]),p=Math.min(Math.abs(u[0]-d[0]),Math.abs(u[1]-d[1]))||1,f=Wc(n,r,o);s=[p/Math.sqrt(n.count()/f),p/Math.sqrt(n.count()/f)]}else i.ZS.isArray(s)||(s=[s,s]),s[0]/=e.getScale()/16,s[1]/=e.getScale()/16;var g=[0,0,1],m=[r,o,a],v=Xc(n,m);n.each(m,(function(t,i,r,o){var a=n.get(v.dimension,o),h=v.isStacked?a-r:0,c=e.dataToPoint([t,i,h]),u=e.dataToPoint([t,i,a]),d=Math.max(u[2]-c[2],l),p=[s[0],d,s[1]];n.setItemLayout(o,[c,g,p])})),n.setLayout("orient",[1,0,0])}(t,e)}))}))}var Zc={getFormattedLabel:function(t,e,n,r,o){n=n||"normal";var a=t.getData(r).getItemModel(e),s=t.getDataParams(e,r);null!=o&&s.value instanceof Array&&(s.value=s.value[o]);var l,h=a.get("normal"===n?["label","formatter"]:["emphasis","label","formatter"]);return null==h&&(h=a.get(["label","formatter"])),"function"==typeof h?(s.status=n,l=h(s)):"string"==typeof h&&(l=i.GP.formatTpl(h,s)),l},normalizeToArray:function(t){return t instanceof Array?t:null==t?[]:[t]}};const $c=Zc;function Kc(t,e,n){var r=t.getData(),o=t.getRawValue(e),a=i.ZS.isArray(o)?function(t){var o=[],a=function(t,e){var n=[];return i.ZS.each(t.dimensions,(function(i){var r=t.getDimensionInfo(i),o=r.otherDims[e];null!=o&&!1!==o&&(n[o]=r.name)})),n}(r,"tooltip");function s(t,e){var a=r.getDimensionInfo(e);if(a&&!1!==a.otherDims.tooltip){var s=a.type,l="- "+(a.tooltipName||a.name)+": "+("ordinal"===s?t+"":"time"===s?n?"":i.GP.formatTime("yyyy/MM/dd hh:mm:ss",t):i.GP.addCommas(t));l&&o.push(i.GP.encodeHTML(l))}}return a.length?i.ZS.each(a,(function(t){s(r.get(t,e),t)})):i.ZS.each(t,s),"<br/>"+o.join("<br/>")}(o):i.GP.encodeHTML(i.GP.addCommas(o)),s=r.getName(e),l=bh(r,e);i.ZS.isObject(l)&&l.colorStops&&(l=(l.colorStops[0]||{}).color),l=l||"transparent";var h=i.GP.getTooltipMarker(l),c=t.name;return"\0-"===c&&(c=""),c=c?i.GP.encodeHTML(c)+(n?": ":"<br/>"):"",n?h+c+a:c+h+(s?i.GP.encodeHTML(s)+": "+a:a)}function Jc(t,e,n){n=n||t.getSource();var r=e||i.Bo(t.get("coordinateSystem"))||["x","y","z"],o=i.dw.createDimensions(n,{dimensionsDefine:n.dimensionsDefine||t.get("dimensions"),encodeDefine:n.encodeDefine||t.get("encode"),coordDimensions:r.map((function(e){var n=t.getReferringComponents(e+"Axis3D").models[0];return{type:n&&"category"===n.get("type")?"ordinal":"float",name:e}}))});"cartesian3D"===t.get("coordinateSystem")&&o.forEach((function(e){if(r.indexOf(e.coordDim)>=0){var n=t.getReferringComponents(e.coordDim+"Axis3D").models[0];n&&"category"===n.get("type")&&(e.ordinalMeta=n.getOrdinalMeta())}}));var a=i.dw.dataStack.enableDataStack(t,o,{byIndex:!0,stackedCoordDimension:"z"}),s=new i.B8(o,t);return s.setCalculationInfo(a),s.initData(n),s}var Qc=i.rP.extend({type:"series.bar3D",dependencies:["globe"],visualStyleAccessPathvisu:"itemStyle",getInitialData:function(t,e){return Jc(this)},getFormattedLabel:function(t,e,n,i){var r=$c.getFormattedLabel(this,t,e,n,i);return null==r&&(r=this.getData().get("z",t)),r},formatTooltip:function(t){return Kc(this,t)},defaultOption:{coordinateSystem:"cartesian3D",globeIndex:0,grid3DIndex:0,zlevel:-10,bevelSize:0,bevelSmoothness:2,onGridPlane:"xy",shading:"color",minHeight:0,itemStyle:{opacity:1},label:{show:!1,distance:2,textStyle:{fontSize:14,color:"#000",backgroundColor:"rgba(255,255,255,0.7)",padding:3,borderRadius:3}},emphasis:{label:{show:!0}},animationDurationUpdate:500}});i.ZS.merge(Qc.prototype,Fl);const tu=Qc;var eu,nu,iu,ru,ou,au,su,lu,hu=Ea.vec3,cu=Ea.mat3,uu=Ci.extend((function(){return{attributes:{position:new Ci.Attribute("position","float",3,"POSITION"),normal:new Ci.Attribute("normal","float",3,"NORMAL"),color:new Ci.Attribute("color","float",4,"COLOR"),prevPosition:new Ci.Attribute("prevPosition","float",3),prevNormal:new Ci.Attribute("prevNormal","float",3)},dynamic:!0,enableNormal:!1,bevelSize:1,bevelSegments:0,_dataIndices:null,_vertexOffset:0,_triangleOffset:0}}),{resetOffset:function(){this._vertexOffset=0,this._triangleOffset=0},setBarCount:function(t){var e=this.enableNormal,n=this.getBarVertexCount()*t,i=this.getBarTriangleCount()*t;this.vertexCount!==n&&(this.attributes.position.init(n),e?this.attributes.normal.init(n):this.attributes.normal.value=null,this.attributes.color.init(n)),this.triangleCount!==i&&(this.indices=n>65535?new Uint32Array(3*i):new Uint16Array(3*i),this._dataIndices=new Uint32Array(n))},getBarVertexCount:function(){var t=this.bevelSize>0?this.bevelSegments:0;return t>0?this._getBevelBarVertexCount(t):this.enableNormal?24:8},getBarTriangleCount:function(){var t=this.bevelSize>0?this.bevelSegments:0;return t>0?this._getBevelBarTriangleCount(t):12},_getBevelBarVertexCount:function(t){return 4*(t+1)*(t+1)*2},_getBevelBarTriangleCount:function(t){return(4*t+3+1)*(2*t+1)*2+4},setColor:function(t,e){for(var n=this.getBarVertexCount(),i=n*(t+1),r=n*t;r<i;r++)this.attributes.color.set(r,e);this.dirtyAttribute("color")},getDataIndexOfVertex:function(t){return this._dataIndices?this._dataIndices[t]:null},addBar:function(){for(var t=hu.create,e=hu.scaleAndAdd,n=t(),i=t(),r=t(),o=t(),a=t(),s=t(),l=t(),h=[],c=[],u=0;u<8;u++)h[u]=t();var d=[[0,1,5,4],[2,3,7,6],[4,5,6,7],[3,2,1,0],[0,4,7,3],[1,2,6,5]],p=[0,1,2,0,2,3],f=[];for(u=0;u<d.length;u++)for(var g=d[u],m=0;m<2;m++){for(var v=[],y=0;y<3;y++)v.push(g[p[3*m+y]]);f.push(v)}return function(t,u,g,m,v,y){var _=this._vertexOffset;if(this.bevelSize>0&&this.bevelSegments>0)this._addBevelBar(t,u,g,m,this.bevelSize,this.bevelSegments,v);else{hu.copy(r,u),hu.normalize(r,r),hu.cross(o,g,r),hu.normalize(o,o),hu.cross(i,r,o),hu.normalize(o,o),hu.negate(a,i),hu.negate(s,r),hu.negate(l,o),e(h[0],t,i,m[0]/2),e(h[0],h[0],o,m[2]/2),e(h[1],t,i,m[0]/2),e(h[1],h[1],l,m[2]/2),e(h[2],t,a,m[0]/2),e(h[2],h[2],l,m[2]/2),e(h[3],t,a,m[0]/2),e(h[3],h[3],o,m[2]/2),e(n,t,r,m[1]),e(h[4],n,i,m[0]/2),e(h[4],h[4],o,m[2]/2),e(h[5],n,i,m[0]/2),e(h[5],h[5],l,m[2]/2),e(h[6],n,a,m[0]/2),e(h[6],h[6],l,m[2]/2),e(h[7],n,a,m[0]/2),e(h[7],h[7],o,m[2]/2);var x=this.attributes;if(this.enableNormal){c[0]=i,c[1]=a,c[2]=r,c[3]=s,c[4]=o,c[5]=l;for(var b=this._vertexOffset,w=0;w<d.length;w++){for(var S=3*this._triangleOffset,T=0;T<6;T++)this.indices[S++]=b+p[T];b+=4,this._triangleOffset+=2}for(w=0;w<d.length;w++){var M=c[w];for(T=0;T<4;T++){var A=d[w][T];x.position.set(this._vertexOffset,h[A]),x.normal.set(this._vertexOffset,M),x.color.set(this._vertexOffset++,v)}}}else{for(w=0;w<f.length;w++){for(S=3*this._triangleOffset,T=0;T<3;T++)this.indices[S+T]=f[w][T]+this._vertexOffset;this._triangleOffset++}for(w=0;w<h.length;w++)x.position.set(this._vertexOffset,h[w]),x.color.set(this._vertexOffset++,v)}}var C=this._vertexOffset;for(w=_;w<C;w++)this._dataIndices[w]=y}}(),_addBevelBar:(eu=hu.create(),nu=hu.create(),iu=hu.create(),ru=cu.create(),ou=[],au=[1,-1,-1,1],su=[1,1,-1,-1],lu=[2,0],function(t,e,n,i,r,o,a){hu.copy(nu,e),hu.normalize(nu,nu),hu.cross(iu,n,nu),hu.normalize(iu,iu),hu.cross(eu,nu,iu),hu.normalize(iu,iu),ru[0]=eu[0],ru[1]=eu[1],ru[2]=eu[2],ru[3]=nu[0],ru[4]=nu[1],ru[5]=nu[2],ru[6]=iu[0],ru[7]=iu[1],ru[8]=iu[2],r=Math.min(i[0],i[2])/2*r;for(var s=0;s<3;s++)ou[s]=Math.max(i[s]-2*r,0);var l=(i[0]-ou[0])/2,h=(i[1]-ou[1])/2,c=(i[2]-ou[2])/2,u=[],d=[],p=this._vertexOffset,f=[];for(s=0;s<2;s++){f[s]=f[s]=[];for(var g=0;g<=o;g++)for(var m=0;m<4;m++){(0===g&&0===s||1===s&&g===o)&&f[s].push(p);for(var v=0;v<=o;v++){var y=v/o*Math.PI/2+Math.PI/2*m,_=g/o*Math.PI/2+Math.PI/2*s;d[0]=l*Math.cos(y)*Math.sin(_),d[1]=h*Math.cos(_),d[2]=c*Math.sin(y)*Math.sin(_),u[0]=d[0]+au[m]*ou[0]/2,u[1]=d[1]+h+lu[s]*ou[1]/2,u[2]=d[2]+su[m]*ou[2]/2,Math.abs(l-h)<1e-6&&Math.abs(h-c)<1e-6||(d[0]/=l*l,d[1]/=h*h,d[2]/=c*c),hu.normalize(d,d),hu.transformMat3(u,u,ru),hu.transformMat3(d,d,ru),hu.add(u,u,t),this.attributes.position.set(p,u),this.enableNormal&&this.attributes.normal.set(p,d),this.attributes.color.set(p,a),p++}}}var x=4*o+3,b=2*o+1,w=x+1;for(m=0;m<b;m++)for(s=0;s<=x;s++){var S=m*w+s+this._vertexOffset,T=m*w+(s+1)%w+this._vertexOffset,M=(m+1)*w+(s+1)%w+this._vertexOffset,A=(m+1)*w+s+this._vertexOffset;this.setTriangleIndices(this._triangleOffset++,[M,S,T]),this.setTriangleIndices(this._triangleOffset++,[M,A,S])}this.setTriangleIndices(this._triangleOffset++,[f[0][0],f[0][2],f[0][1]]),this.setTriangleIndices(this._triangleOffset++,[f[0][0],f[0][3],f[0][2]]),this.setTriangleIndices(this._triangleOffset++,[f[1][0],f[1][1],f[1][2]]),this.setTriangleIndices(this._triangleOffset++,[f[1][0],f[1][2],f[1][3]]),this._vertexOffset=p})});i.ZS.defaults(uu.prototype,Ia),i.ZS.defaults(uu.prototype,xh);const du=uu;var pu=Ea.vec3;const fu=i.OZ.extend({type:"bar3D",__ecgl__:!0,init:function(t,e){this.groupGL=new ia.Node,this._api=e,this._labelsBuilder=new Th(256,256,e);var n=this;this._labelsBuilder.getLabelPosition=function(t,e,i){if(n._data){var r=n._data.getItemLayout(t),o=r[0],a=r[1],s=r[2][1];return pu.scaleAndAdd([],o,a,i+s)}return[0,0]},this._labelsBuilder.getMesh().renderOrder=100},render:function(t,e,n){var i=this._prevBarMesh;this._prevBarMesh=this._barMesh,this._barMesh=i,this._barMesh||(this._barMesh=new ia.Mesh({geometry:new du,shadowDepthMaterial:new ia.Material({shader:new ia.Shader(ia.Shader.source("ecgl.sm.depth.vertex"),ia.Shader.source("ecgl.sm.depth.fragment"))}),culling:"cartesian3D"===t.coordinateSystem.type,renderOrder:10,renderNormal:!0})),this.groupGL.remove(this._prevBarMesh),this.groupGL.add(this._barMesh),this.groupGL.add(this._labelsBuilder.getMesh());var r=t.coordinateSystem;if(this._doRender(t,n),r&&r.viewGL){r.viewGL.add(this.groupGL);var o=r.viewGL.isLinearSpace()?"define":"undefine";this._barMesh.material[o]("fragment","SRGB_DECODE")}this._data=t.getData(),this._labelsBuilder.updateData(this._data),this._labelsBuilder.updateLabels(),this._updateAnimation(t)},_updateAnimation:function(t){ia.updateVertexAnimation([["prevPosition","position"],["prevNormal","normal"]],this._prevBarMesh,this._barMesh,t)},_doRender:function(t,e){var n=t.getData(),i=t.get("shading"),r="color"!==i,o=this,a=this._barMesh,s="ecgl."+i;a.material&&a.material.shader.name===s||(a.material=ia.createMaterial(s,["VERTEX_COLOR"])),ia.setMaterialFromModel(i,a.material,t,e),a.geometry.enableNormal=r,a.geometry.resetOffset();var l=t.get("bevelSize"),h=t.get("bevelSmoothness");a.geometry.bevelSegments=h,a.geometry.bevelSize=l;var c=[],u=new Float32Array(4*n.count()),d=0,p=0,f=!1;n.each((function(t){if(n.hasValue(t)){var e=bh(n,t),i=wh(n,t);null==i&&(i=1),ia.parseColor(e,c),c[3]*=i,u[d++]=c[0],u[d++]=c[1],u[d++]=c[2],u[d++]=c[3],c[3]>0&&(p++,c[3]<.99&&(f=!0))}})),a.geometry.setBarCount(p);var g=n.getLayout("orient"),m=this._barIndexOfData=new Int32Array(n.count());p=0;n.each((function(t){if(n.hasValue(t)){var e=n.getItemLayout(t),i=e[0],r=e[1],a=e[2],s=4*t;c[0]=u[s++],c[1]=u[s++],c[2]=u[s++],c[3]=u[s++],c[3]>0&&(o._barMesh.geometry.addBar(i,r,g,a,c,t),m[t]=p++)}else m[t]=-1})),a.geometry.dirty(),a.geometry.updateBoundingBox();var v=a.material;v.transparent=f,v.depthMask=!f,a.geometry.sortTriangles=f,this._initHandler(t,e)},_initHandler:function(t,e){var n=t.getData(),i=this._barMesh,r="cartesian3D"===t.coordinateSystem.type;i.seriesIndex=t.seriesIndex;var o=-1;i.off("mousemove"),i.off("mouseout"),i.on("mousemove",(function(t){var a=i.geometry.getDataIndexOfVertex(t.triangle[0]);a!==o&&(this._downplay(o),this._highlight(a),this._labelsBuilder.updateLabels([a]),r&&e.dispatchAction({type:"grid3DShowAxisPointer",value:[n.get("x",a),n.get("y",a),n.get("z",a,!0)]})),o=a,i.dataIndex=a}),this),i.on("mouseout",(function(t){this._downplay(o),this._labelsBuilder.updateLabels(),o=-1,i.dataIndex=-1,r&&e.dispatchAction({type:"grid3DHideAxisPointer"})}),this)},_highlight:function(t){var e=this._data;if(e){var n=this._barIndexOfData[t];if(!(n<0)){var r=e.getItemModel(t).getModel("emphasis.itemStyle"),o=r.get("color"),a=r.get("opacity");if(null==o){var s=bh(e,t);o=i.yW.lift(s,-.4)}null==a&&(a=wh(e,t));var l=ia.parseColor(o);l[3]*=a,this._barMesh.geometry.setColor(n,l),this._api.getZr().refresh()}}},_downplay:function(t){var e=this._data;if(e){var n=this._barIndexOfData[t];if(!(n<0)){var i=bh(e,t),r=wh(e,t),o=ia.parseColor(i);o[3]*=r,this._barMesh.geometry.setColor(n,o),this._api.getZr().refresh()}}},highlight:function(t,e,n,i){this._toggleStatus("highlight",t,e,n,i)},downplay:function(t,e,n,i){this._toggleStatus("downplay",t,e,n,i)},_toggleStatus:function(t,e,n,r,o){var a=e.getData(),s=wo.queryDataIndex(a,o),l=this;null!=s?i.ZS.each($c.normalizeToArray(s),(function(e){"highlight"===t?this._highlight(e):this._downplay(e)}),this):a.each((function(e){"highlight"===t?l._highlight(e):l._downplay(e)}))},remove:function(){this.groupGL.removeAll()},dispose:function(){this._labelsBuilder.dispose(),this.groupGL.removeAll()}});(0,i.Yx)((function(t){t.registerChartView(fu),t.registerSeriesModel(tu),Yc(t),t.registerProcessor((function(t,e){t.eachSeriesByType("bar3d",(function(t){var e=t.getData();e.filterSelf((function(t){return e.hasValue(t)}))}))}))}));const gu=i.rP.extend({type:"series.line3D",dependencies:["grid3D"],visualStyleAccessPath:"lineStyle",visualDrawType:"stroke",getInitialData:function(t,e){return Jc(this)},formatTooltip:function(t){return Kc(this,t)},defaultOption:{coordinateSystem:"cartesian3D",zlevel:-10,grid3DIndex:0,lineStyle:{width:2},animationDurationUpdate:500}});var mu=n(58),vu=Ea.vec3;ia.Shader.import(es);const yu=i.OZ.extend({type:"line3D",__ecgl__:!0,init:function(t,e){this.groupGL=new ia.Node,this._api=e},render:function(t,e,n){var i=this._prevLine3DMesh;this._prevLine3DMesh=this._line3DMesh,this._line3DMesh=i,this._line3DMesh||(this._line3DMesh=new ia.Mesh({geometry:new Pa({useNativeLine:!1,sortTriangles:!0}),material:new ia.Material({shader:ia.createShader("ecgl.meshLines3D")}),renderOrder:10}),this._line3DMesh.geometry.pick=this._pick.bind(this)),this.groupGL.remove(this._prevLine3DMesh),this.groupGL.add(this._line3DMesh);var r=t.coordinateSystem;if(r&&r.viewGL){r.viewGL.add(this.groupGL);var o=r.viewGL.isLinearSpace()?"define":"undefine";this._line3DMesh.material[o]("fragment","SRGB_DECODE")}this._doRender(t,n),this._data=t.getData(),this._camera=r.viewGL.camera,this.updateCamera(),this._updateAnimation(t)},updateCamera:function(){this._updateNDCPosition()},_doRender:function(t,e){var n=t.getData(),i=this._line3DMesh;i.geometry.resetOffset();var r=n.getLayout("points"),o=[],a=new Float32Array(r.length/3*4),s=0,l=!1;n.each((function(t){var e=bh(n,t),i=wh(n,t);null==i&&(i=1),ia.parseColor(e,o),o[3]*=i,a[s++]=o[0],a[s++]=o[1],a[s++]=o[2],a[s++]=o[3],o[3]<.99&&(l=!0)})),i.geometry.setVertexCount(i.geometry.getPolylineVertexCount(r)),i.geometry.setTriangleCount(i.geometry.getPolylineTriangleCount(r)),i.geometry.addPolyline(r,a,wo.firstNotNull(t.get("lineStyle.width"),1)),i.geometry.dirty(),i.geometry.updateBoundingBox();var h=i.material;h.transparent=l,h.depthMask=!l;var c=t.getModel("debug.wireframe");c.get("show")?(i.geometry.createAttribute("barycentric","float",3),i.geometry.generateBarycentric(),i.material.set("both","WIREFRAME_TRIANGLE"),i.material.set("wireframeLineColor",ia.parseColor(c.get("lineStyle.color")||"rgba(0,0,0,0.5)")),i.material.set("wireframeLineWidth",wo.firstNotNull(c.get("lineStyle.width"),1))):i.material.set("both","WIREFRAME_TRIANGLE"),this._points=r,this._initHandler(t,e)},_updateAnimation:function(t){ia.updateVertexAnimation([["prevPosition","position"],["prevPositionPrev","positionPrev"],["prevPositionNext","positionNext"]],this._prevLine3DMesh,this._line3DMesh,t)},_initHandler:function(t,e){var n=t.getData(),i=t.coordinateSystem,r=this._line3DMesh,o=-1;r.seriesIndex=t.seriesIndex,r.off("mousemove"),r.off("mouseout"),r.on("mousemove",(function(t){var a=i.pointToData(t.point.array),s=n.indicesOfNearest("x",a[0])[0];s!==o&&(e.dispatchAction({type:"grid3DShowAxisPointer",value:[n.get("x",s),n.get("y",s),n.get("z",s)]}),r.dataIndex=s),o=s}),this),r.on("mouseout",(function(t){o=-1,r.dataIndex=-1,e.dispatchAction({type:"grid3DHideAxisPointer"})}),this)},_updateNDCPosition:function(){var t=new An,e=this._camera;An.multiply(t,e.projectionMatrix,e.viewMatrix);var n=this._positionNDC,i=this._points,r=i.length/3;n&&n.length/2===r||(n=this._positionNDC=new Float32Array(2*r));for(var o=[],a=0;a<r;a++){var s=3*a,l=2*a;o[0]=i[s],o[1]=i[s+1],o[2]=i[s+2],o[3]=1,vu.transformMat4(o,o,t.array),n[l]=o[0]/o[3],n[l+1]=o[1]/o[3]}},_pick:function(t,e,n,i,r,o){var a=this._positionNDC,s=this._data.hostModel.get("lineStyle.width"),l=-1,h=.5*n.viewport.width,c=.5*n.viewport.height;t=(t+1)*h,e=(e+1)*c;for(var u=1;u<a.length/2;u++){var d=(a[2*(u-1)]+1)*h,p=(a[2*(u-1)+1]+1)*c,f=(a[2*u]+1)*h,g=(a[2*u+1]+1)*c;if(mu.l(d,p,f,g,s,t,e))l=(d-t)*(d-t)+(p-e)*(p-e)<(f-t)*(f-t)+(g-e)*(g-e)?u-1:u}if(l>=0){var m=3*l,v=new Qe(this._points[m],this._points[m+1],this._points[m+2]);o.push({dataIndex:l,point:v,pointWorld:v.clone(),target:this._line3DMesh,distance:this._camera.getWorldPosition().dist(v)})}},remove:function(){this.groupGL.removeAll()},dispose:function(){this.groupGL.removeAll()}});(0,i.Yx)((function(t){t.registerChartView(yu),t.registerSeriesModel(gu),t.registerLayout((function(t,e){t.eachSeriesByType("line3D",(function(t){var e=t.getData(),n=t.coordinateSystem;if(n){if("cartesian3D"!==n.type)return void 0;var i=new Float32Array(3*e.count()),r=[],o=[],a=n.dimensions.map((function(e){return t.coordDimToDataDim(e)[0]}));n&&e.each(a,(function(t,e,a,s){r[0]=t,r[1]=e,r[2]=a,n.dataToPoint(r,o),i[3*s]=o[0],i[3*s+1]=o[1],i[3*s+2]=o[2]})),e.setLayout("points",i)}}))}))}));const _u=i.rP.extend({type:"series.scatter3D",dependencies:["globe","grid3D","geo3D"],visualStyleAccessPath:"itemStyle",hasSymbolVisual:!0,getInitialData:function(t,e){return Jc(this)},getFormattedLabel:function(t,e,n,i){var r=$c.getFormattedLabel(this,t,e,n,i);if(null==r){var o=this.getData(),a=o.dimensions[o.dimensions.length-1];r=o.get(a,t)}return r},formatTooltip:function(t){return Kc(this,t)},defaultOption:{coordinateSystem:"cartesian3D",zlevel:-10,progressive:1e5,progressiveThreshold:1e5,grid3DIndex:0,globeIndex:0,symbol:"circle",symbolSize:10,blendMode:"source-over",label:{show:!1,position:"right",distance:5,textStyle:{fontSize:14,color:"#000",backgroundColor:"rgba(255,255,255,0.7)",padding:3,borderRadius:3}},itemStyle:{opacity:.8},emphasis:{label:{show:!0}},animationDurationUpdate:500}});function xu(t,e,n){(e=e||document.createElement("canvas")).width=t,e.height=t;var i=e.getContext("2d");return n&&n(i),e}var bu={getMarginByStyle:function(t){var e=t.minMargin||0,n=0;t.stroke&&"none"!==t.stroke&&(n=null==t.lineWidth?1:t.lineWidth);var i=t.shadowBlur||0,r=t.shadowOffsetX||0,o=t.shadowOffsetY||0,a={};return a.left=Math.max(n/2,-r+i,e),a.right=Math.max(n/2,r+i,e),a.top=Math.max(n/2,-o+i,e),a.bottom=Math.max(n/2,o+i,e),a},createSymbolSprite:function(t,e,n,r){var o=function(t,e,n,r){i.ZS.isArray(e)||(e=[e,e]);var o=bu.getMarginByStyle(n,r),a=e[0]+o.left+o.right,s=e[1]+o.top+o.bottom,l=i.dw.createSymbol(t,0,0,e[0],e[1]),h=Math.max(a,s);l.x=o.left,l.y=o.top,a>s?l.y+=(h-s)/2:l.x+=(h-a)/2;var c=l.getBoundingRect();return l.x-=c.x,l.y-=c.y,l.setStyle(n),l.update(),l.__size=h,l}(t,e,n),a=bu.getMarginByStyle(n);return{image:xu(o.__size,r,(function(t){i.UU(t,o)})),margin:a}},createSDFFromCanvas:function(t,e,n,i){return xu(e,i,(function(e){var i=t.getContext("2d").getImageData(0,0,t.width,t.height);e.putImageData(function(t,e,n){var i=e.width,r=e.height,o=t.canvas.width,a=t.canvas.height,s=i/o,l=r/a;function h(t){return t<128?1:-1}function c(t,o){var a=1/0;t=Math.floor(t*s);for(var c=(o=Math.floor(o*l))*i+t,u=h(e.data[4*c]),d=Math.max(o-n,0);d<Math.min(o+n,r);d++)for(var p=Math.max(t-n,0);p<Math.min(t+n,i);p++){c=d*i+p;var f=p-t,g=d-o;if(u!==h(e.data[4*c])){var m=f*f+g*g;m<a&&(a=m)}}return u*Math.sqrt(a)}for(var u=t.createImageData(o,a),d=0;d<a;d++)for(var p=0;p<o;p++){var f=c(p,d)/n*.5+.5,g=4*(d*o+p);u.data[g++]=255*(1-f),u.data[g++]=255*(1-f),u.data[g++]=255*(1-f),u.data[g++]=255}return u}(e,i,n),0,0)}))},createSimpleSprite:function(t,e){return xu(t,e,(function(e){var n=t/2;e.beginPath(),e.arc(n,n,60,0,2*Math.PI,!1),e.closePath();var i=e.createRadialGradient(n,n,0,n,n,n);i.addColorStop(0,"rgba(255, 255, 255, 1)"),i.addColorStop(.5,"rgba(255, 255, 255, 0.5)"),i.addColorStop(1,"rgba(255, 255, 255, 0)"),e.fillStyle=i,e.fill()}))}};const wu=bu;var Su=Ea.vec3;const Tu={needsSortVertices:function(){return this.sortVertices},needsSortVerticesProgressively:function(){return this.needsSortVertices()&&this.vertexCount>=2e4},doSortVertices:function(t,e){var n=this.indices,i=Su.create();if(!n){n=this.indices=this.vertexCount>65535?new Uint32Array(this.vertexCount):new Uint16Array(this.vertexCount);for(var r=0;r<n.length;r++)n[r]=r}if(0===e){var o,a=this.attributes.position,s=(t=t.array,0);this._zList&&this._zList.length===this.vertexCount||(this._zList=new Float32Array(this.vertexCount));for(r=0;r<this.vertexCount;r++){a.get(r,i);var l=Su.sqrDist(i,t);isNaN(l)&&(l=1e7,s++),0===r?(o=l,l=0):l-=o,this._zList[r]=l}this._noneCount=s}if(this.vertexCount<2e4)0===e&&this._simpleSort(this._noneCount/this.vertexCount>.05);else for(r=0;r<3;r++)this._progressiveQuickSort(3*e+r);this.dirtyIndices()},_simpleSort:function(t){var e=this._zList,n=this.indices;function i(t,n){return e[n]-e[t]}t?Array.prototype.sort.call(n,i):gh.sort(n,i,0,n.length-1)},_progressiveQuickSort:function(t){var e=this._zList,n=this.indices;this._quickSort=this._quickSort||new gh,this._quickSort.step(n,(function(t,n){return e[n]-e[t]}),t)}};var Mu=Ea.vec4;ia.Shader.import("@export ecgl.sdfSprite.vertex\n\nuniform mat4 worldViewProjection : WORLDVIEWPROJECTION;\nuniform float elapsedTime : 0;\n\nattribute vec3 position : POSITION;\n\n#ifdef VERTEX_SIZE\nattribute float size;\n#else\nuniform float u_Size;\n#endif\n\n#ifdef VERTEX_COLOR\nattribute vec4 a_FillColor: COLOR;\nvarying vec4 v_Color;\n#endif\n\n#ifdef VERTEX_ANIMATION\nattribute vec3 prevPosition;\nattribute float prevSize;\nuniform float percent : 1.0;\n#endif\n\n\n#ifdef POSITIONTEXTURE_ENABLED\nuniform sampler2D positionTexture;\n#endif\n\nvarying float v_Size;\n\nvoid main()\n{\n\n#ifdef POSITIONTEXTURE_ENABLED\n gl_Position = worldViewProjection * vec4(texture2D(positionTexture, position.xy).xy, -10.0, 1.0);\n#else\n\n #ifdef VERTEX_ANIMATION\n vec3 pos = mix(prevPosition, position, percent);\n #else\n vec3 pos = position;\n #endif\n gl_Position = worldViewProjection * vec4(pos, 1.0);\n#endif\n\n#ifdef VERTEX_SIZE\n#ifdef VERTEX_ANIMATION\n v_Size = mix(prevSize, size, percent);\n#else\n v_Size = size;\n#endif\n#else\n v_Size = u_Size;\n#endif\n\n#ifdef VERTEX_COLOR\n v_Color = a_FillColor;\n #endif\n\n gl_PointSize = v_Size;\n}\n\n@end\n\n@export ecgl.sdfSprite.fragment\n\nuniform vec4 color: [1, 1, 1, 1];\nuniform vec4 strokeColor: [1, 1, 1, 1];\nuniform float smoothing: 0.07;\n\nuniform float lineWidth: 0.0;\n\n#ifdef VERTEX_COLOR\nvarying vec4 v_Color;\n#endif\n\nvarying float v_Size;\n\nuniform sampler2D sprite;\n\n@import clay.util.srgb\n\nvoid main()\n{\n gl_FragColor = color;\n\n vec4 _strokeColor = strokeColor;\n\n#ifdef VERTEX_COLOR\n gl_FragColor *= v_Color;\n #endif\n\n#ifdef SPRITE_ENABLED\n float d = texture2D(sprite, gl_PointCoord).r;\n gl_FragColor.a *= smoothstep(0.5 - smoothing, 0.5 + smoothing, d);\n\n if (lineWidth > 0.0) {\n float sLineWidth = lineWidth / 2.0;\n\n float outlineMaxValue0 = 0.5 + sLineWidth;\n float outlineMaxValue1 = 0.5 + sLineWidth + smoothing;\n float outlineMinValue0 = 0.5 - sLineWidth - smoothing;\n float outlineMinValue1 = 0.5 - sLineWidth;\n\n if (d <= outlineMaxValue1 && d >= outlineMinValue0) {\n float a = _strokeColor.a;\n if (d <= outlineMinValue1) {\n a = a * smoothstep(outlineMinValue0, outlineMinValue1, d);\n }\n else {\n a = a * smoothstep(outlineMaxValue1, outlineMaxValue0, d);\n }\n gl_FragColor.rgb = mix(gl_FragColor.rgb * gl_FragColor.a, _strokeColor.rgb, a);\n gl_FragColor.a = gl_FragColor.a * (1.0 - a) + a;\n }\n }\n#endif\n\n#ifdef SRGB_DECODE\n gl_FragColor = sRGBToLinear(gl_FragColor);\n#endif\n}\n@end");var Au=ia.Mesh.extend((function(){var t=new ia.Geometry({dynamic:!0,attributes:{color:new ia.Geometry.Attribute("color","float",4,"COLOR"),position:new ia.Geometry.Attribute("position","float",3,"POSITION"),size:new ia.Geometry.Attribute("size","float",1),prevPosition:new ia.Geometry.Attribute("prevPosition","float",3),prevSize:new ia.Geometry.Attribute("prevSize","float",1)}});Object.assign(t,Tu);var e=new ia.Material({shader:ia.createShader("ecgl.sdfSprite"),transparent:!0,depthMask:!1});e.enableTexture("sprite"),e.define("both","VERTEX_COLOR"),e.define("both","VERTEX_SIZE");var n=new ia.Texture2D({image:document.createElement("canvas"),flipY:!1});return e.set("sprite",n),t.pick=this._pick.bind(this),{geometry:t,material:e,mode:ia.Mesh.POINTS,sizeScale:1}}),{_pick:function(t,e,n,i,r,o){var a=this._positionNDC;if(a)for(var s=n.viewport,l=2/s.width,h=2/s.height,c=this.geometry.vertexCount-1;c>=0;c--){var u,d=a[2*(u=this.geometry.indices?this.geometry.indices[c]:c)],p=a[2*u+1],f=this.geometry.attributes.size.get(u)/this.sizeScale/2;if(t>d-f*l&&t<d+f*l&&e>p-f*h&&e<p+f*h){var g=new ia.Vector3,m=new ia.Vector3;this.geometry.attributes.position.get(u,g.array),ia.Vector3.transformMat4(m,g,this.worldTransform),o.push({vertexIndex:u,point:g,pointWorld:m,target:this,distance:m.distance(i.getWorldPosition())})}}},updateNDCPosition:function(t,e,n){var i=this._positionNDC,r=this.geometry;i&&i.length/2===r.vertexCount||(i=this._positionNDC=new Float32Array(2*r.vertexCount));for(var o=Mu.create(),a=0;a<r.vertexCount;a++)r.attributes.position.get(a,o),o[3]=1,Mu.transformMat4(o,o,t.array),Mu.scale(o,o,1/o[3]),i[2*a]=o[0],i[2*a+1]=o[1]}});const Cu=Au;function Iu(t,e){this.rootNode=new ia.Node,this.is2D=t,this._labelsBuilder=new Th(256,256,e),this._labelsBuilder.getMesh().renderOrder=100,this.rootNode.add(this._labelsBuilder.getMesh()),this._api=e,this._spriteImageCanvas=document.createElement("canvas"),this._startDataIndex=0,this._endDataIndex=0,this._sizeScale=1}Iu.prototype={constructor:Iu,highlightOnMouseover:!0,update:function(t,e,n,i,r){var o=this._prevMesh;this._prevMesh=this._mesh,this._mesh=o;var a=t.getData();if(null==i&&(i=0),null==r&&(r=a.count()),this._startDataIndex=i,this._endDataIndex=r-1,!this._mesh){var s=this._prevMesh&&this._prevMesh.material;this._mesh=new Cu({renderOrder:10,frustumCulling:!1}),s&&(this._mesh.material=s)}s=this._mesh.material;var l=this._mesh.geometry,h=l.attributes;this.rootNode.remove(this._prevMesh),this.rootNode.add(this._mesh),this._setPositionTextureToMesh(this._mesh,this._positionTexture);var c=this._getSymbolInfo(t,i,r),u=n.getDevicePixelRatio(),d=t.getModel("itemStyle").getItemStyle(),p=t.get("large"),f=1;c.maxSize>2?(f=this._updateSymbolSprite(t,d,c,u),s.enableTexture("sprite")):s.disableTexture("sprite"),h.position.init(r-i);var g=[];if(p){s.undefine("VERTEX_SIZE"),s.undefine("VERTEX_COLOR");var m=function(t){const e=t.getVisual("style");if(e)return e[t.getVisual("drawType")]}(a),v=function(t){return t.getVisual("style").opacity}(a);ia.parseColor(m,g),g[3]*=v,s.set({color:g,u_Size:c.maxSize*this._sizeScale})}else s.set({color:[1,1,1,1]}),s.define("VERTEX_SIZE"),s.define("VERTEX_COLOR"),h.size.init(r-i),h.color.init(r-i),this._originalOpacity=new Float32Array(r-i);for(var y=a.getLayout("points"),_=h.position.value,x=0;x<r-i;x++){var b=3*x,w=2*x;if(this.is2D?(_[b]=y[w],_[b+1]=y[w+1],_[b+2]=-10):(_[b]=y[b],_[b+1]=y[b+1],_[b+2]=y[b+2]),!p){m=bh(a,x),v=wh(a,x);ia.parseColor(m,g),g[3]*=v,h.color.set(x,g),g[3]<.99&&!0;var S=a.getItemVisual(x,"symbolSize");S=S instanceof Array?Math.max(S[0],S[1]):S,isNaN(S)&&(S=0),h.size.value[x]=S*f*this._sizeScale,this._originalOpacity[x]=g[3]}}this._mesh.sizeScale=f,l.updateBoundingBox(),l.dirty(),this._updateMaterial(t,d);var T=t.coordinateSystem;T&&T.viewGL&&s[T.viewGL.isLinearSpace()?"define":"undefine"]("fragment","SRGB_DECODE");p||this._updateLabelBuilder(t,i,r),this._updateHandler(t,e,n),this._updateAnimation(t),this._api=n},getPointsMesh:function(){return this._mesh},updateLabels:function(t){this._labelsBuilder.updateLabels(t)},hideLabels:function(){this.rootNode.remove(this._labelsBuilder.getMesh())},showLabels:function(){this.rootNode.add(this._labelsBuilder.getMesh())},dispose:function(){this._labelsBuilder.dispose()},_updateSymbolSprite:function(t,e,n,i){n.maxSize=Math.min(2*n.maxSize,200);var r=[];return n.aspect>1?(r[0]=n.maxSize,r[1]=n.maxSize/n.aspect):(r[1]=n.maxSize,r[0]=n.maxSize*n.aspect),r[0]=r[0]||1,r[1]=r[1]||1,this._symbolType===n.type&&function(t,e){return t&&e&&t[0]===e[0]&&t[1]===e[1]}(this._symbolSize,r)&&this._lineWidth===e.lineWidth||(wu.createSymbolSprite(n.type,r,{fill:"#fff",lineWidth:e.lineWidth,stroke:"transparent",shadowColor:"transparent",minMargin:Math.min(r[0]/2,10)},this._spriteImageCanvas),wu.createSDFFromCanvas(this._spriteImageCanvas,Math.min(this._spriteImageCanvas.width,32),20,this._mesh.material.get("sprite").image),this._symbolType=n.type,this._symbolSize=r,this._lineWidth=e.lineWidth),this._spriteImageCanvas.width/n.maxSize*i},_updateMaterial:function(t,e){var n="lighter"===t.get("blendMode")?ia.additiveBlend:null,i=this._mesh.material;i.blend=n,i.set("lineWidth",e.lineWidth/20);var r=ia.parseColor(e.stroke);i.set("strokeColor",r),i.transparent=!0,i.depthMask=!1,i.depthTest=!this.is2D,i.sortVertices=!this.is2D},_updateLabelBuilder:function(t,e,n){var i=t.getData(),r=this._mesh.geometry,o=r.attributes.position.value,a=(e=this._startDataIndex,this._mesh.sizeScale);this._labelsBuilder.updateData(i,e,n),this._labelsBuilder.getLabelPosition=function(t,n,i){var r=3*(t-e);return[o[r],o[r+1],o[r+2]]},this._labelsBuilder.getLabelDistance=function(t,n,i){return r.attributes.size.get(t-e)/a/2+i},this._labelsBuilder.updateLabels()},_updateAnimation:function(t){ia.updateVertexAnimation([["prevPosition","position"],["prevSize","size"]],this._prevMesh,this._mesh,t)},_updateHandler:function(t,e,n){var i,r=t.getData(),o=this._mesh,a=this,s=-1,l=t.coordinateSystem&&"cartesian3D"===t.coordinateSystem.type;l&&(i=t.coordinateSystem.model),o.seriesIndex=t.seriesIndex,o.off("mousemove"),o.off("mouseout"),o.on("mousemove",(function(e){var h=e.vertexIndex+a._startDataIndex;h!==s&&(this.highlightOnMouseover&&(this.downplay(r,s),this.highlight(r,h),this._labelsBuilder.updateLabels([h])),l&&n.dispatchAction({type:"grid3DShowAxisPointer",value:[r.get(t.coordDimToDataDim("x")[0],h),r.get(t.coordDimToDataDim("y")[0],h),r.get(t.coordDimToDataDim("z")[0],h)],grid3DIndex:i.componentIndex})),o.dataIndex=h,s=h}),this),o.on("mouseout",(function(t){var e=t.vertexIndex+a._startDataIndex;this.highlightOnMouseover&&(this.downplay(r,e),this._labelsBuilder.updateLabels()),s=-1,o.dataIndex=-1,l&&n.dispatchAction({type:"grid3DHideAxisPointer",grid3DIndex:i.componentIndex})}),this)},updateLayout:function(t,e,n){var i=t.getData();if(this._mesh){var r=this._mesh.geometry.attributes.position.value,o=i.getLayout("points");if(this.is2D)for(var a=0;a<o.length/2;a++){var s=3*a,l=2*a;r[s]=o[l],r[s+1]=o[l+1],r[s+2]=-10}else for(a=0;a<o.length;a++)r[a]=o[a];this._mesh.geometry.dirty(),n.getZr().refresh()}},updateView:function(t){if(this._mesh){var e=new An;An.mul(e,t.viewMatrix,this._mesh.worldTransform),An.mul(e,t.projectionMatrix,e),this._mesh.updateNDCPosition(e,this.is2D,this._api)}},highlight:function(t,e){if(!(e>this._endDataIndex||e<this._startDataIndex)){var n=t.getItemModel(e).getModel("emphasis.itemStyle"),r=n.get("color"),o=n.get("opacity");if(null==r){var a=bh(t,e);r=i.yW.lift(a,-.4)}null==o&&(o=wh(t,e));var s=ia.parseColor(r);s[3]*=o,this._mesh.geometry.attributes.color.set(e-this._startDataIndex,s),this._mesh.geometry.dirtyAttribute("color"),this._api.getZr().refresh()}},downplay:function(t,e){if(!(e>this._endDataIndex||e<this._startDataIndex)){var n=bh(t,e),i=wh(t,e),r=ia.parseColor(n);r[3]*=i,this._mesh.geometry.attributes.color.set(e-this._startDataIndex,r),this._mesh.geometry.dirtyAttribute("color"),this._api.getZr().refresh()}},fadeOutAll:function(t){if(this._originalOpacity){for(var e=this._mesh.geometry,n=0;n<e.vertexCount;n++){var i=this._originalOpacity[n]*t;e.attributes.color.value[4*n+3]=i}e.dirtyAttribute("color"),this._api.getZr().refresh()}},fadeInAll:function(){this.fadeOutAll(1)},setPositionTexture:function(t){this._mesh&&this._setPositionTextureToMesh(this._mesh,t),this._positionTexture=t},removePositionTexture:function(){this._positionTexture=null,this._mesh&&this._setPositionTextureToMesh(this._mesh,null)},setSizeScale:function(t){if(t!==this._sizeScale){if(this._mesh){var e=this._mesh.material.get("u_Size");this._mesh.material.set("u_Size",e/this._sizeScale*t);var n=this._mesh.geometry.attributes;if(n.size.value)for(var i=0;i<n.size.value.length;i++)n.size.value[i]=n.size.value[i]/this._sizeScale*t}this._sizeScale=t}},_setPositionTextureToMesh:function(t,e){e&&t.material.set("positionTexture",e),t.material[e?"enableTexture":"disableTexture"]("positionTexture")},_getSymbolInfo:function(t,e,n){if(t.get("large"))return(h=wo.firstNotNull(t.get("symbolSize"),1))instanceof Array?(a=Math.max(h[0],h[1]),i=h[0]/h[1]):(a=h,i=1),{maxSize:h,type:t.get("symbol"),aspect:i};for(var i,r=t.getData(),o=r.getItemVisual(0,"symbol")||"circle",a=0,s=e;s<n;s++){var l,h=r.getItemVisual(s,"symbolSize"),c=r.getItemVisual(s,"symbol");if(h instanceof Array)l=h[0]/h[1],a=Math.max(Math.max(h[0],h[1]),a);else{if(isNaN(h))continue;l=1,a=Math.max(h,a)}0,o=c,i=l}return{maxSize:a,type:o,aspect:i}}};const Eu=Iu,ku=i.OZ.extend({type:"scatter3D",hasSymbolVisual:!0,__ecgl__:!0,init:function(t,e){this.groupGL=new ia.Node,this._pointsBuilderList=[],this._currentStep=0},render:function(t,e,n){if(this.groupGL.removeAll(),t.getData().count()){var i=t.coordinateSystem;if(i&&i.viewGL){i.viewGL.add(this.groupGL),this._camera=i.viewGL.camera;var r=this._pointsBuilderList[0];r||(r=this._pointsBuilderList[0]=new Eu(!1,n)),this._pointsBuilderList.length=1,this.groupGL.add(r.rootNode),r.update(t,e,n),r.updateView(i.viewGL.camera)}else 0}},incrementalPrepareRender:function(t,e,n){var i=t.coordinateSystem;i&&i.viewGL&&(i.viewGL.add(this.groupGL),this._camera=i.viewGL.camera),this.groupGL.removeAll(),this._currentStep=0},incrementalRender:function(t,e,n,i){if(!(t.end<=t.start)){var r=this._pointsBuilderList[this._currentStep];r||(r=new Eu(!1,i),this._pointsBuilderList[this._currentStep]=r),this.groupGL.add(r.rootNode),r.update(e,n,i,t.start,t.end),r.updateView(e.coordinateSystem.viewGL.camera),this._currentStep++}},updateCamera:function(){this._pointsBuilderList.forEach((function(t){t.updateView(this._camera)}),this)},highlight:function(t,e,n,i){this._toggleStatus("highlight",t,e,n,i)},downplay:function(t,e,n,i){this._toggleStatus("downplay",t,e,n,i)},_toggleStatus:function(t,e,n,r,o){var a=e.getData(),s=wo.queryDataIndex(a,o),l="highlight"===t;null!=s?i.ZS.each($c.normalizeToArray(s),(function(t){for(var e=0;e<this._pointsBuilderList.length;e++){var n=this._pointsBuilderList[e];l?n.highlight(a,t):n.downplay(a,t)}}),this):a.each((function(t){for(var e=0;e<this._pointsBuilderList.length;e++){var n=this._pointsBuilderList[e];l?n.highlight(a,t):n.downplay(a,t)}}))},dispose:function(){this._pointsBuilderList.forEach((function(t){t.dispose()})),this.groupGL.removeAll()},remove:function(){this.groupGL.removeAll()}});(0,i.Yx)((function(t){t.registerChartView(ku),t.registerSeriesModel(_u),t.registerLayout({seriesType:"scatter3D",reset:function(t){var e=t.coordinateSystem;if(e){var n=e.dimensions;if(n.length<3)return void 0;var i=n.map((function(e){return t.coordDimToDataDim(e)[0]})),r=[],o=[];return{progress:function(t,n){for(var a=new Float32Array(3*(t.end-t.start)),s=t.start;s<t.end;s++){var l=3*(s-t.start);r[0]=n.get(i[0],s),r[1]=n.get(i[1],s),r[2]=n.get(i[2],s),e.dataToPoint(r,o),a[l]=o[0],a[l+1]=o[1],a[l+2]=o[2]}n.setLayout("points",a)}}}}})}));var Lu=Ea.vec3,Du=Ea.vec2,Pu=Lu.normalize,Ru=Lu.cross,Ou=Lu.sub,Nu=Lu.add,Fu=Lu.create,Bu=Fu(),zu=Fu(),Gu=Fu(),Vu=Fu(),ju=[],Hu=[];function Wu(t,e){Du.copy(ju,t[0]),Du.copy(Hu,t[1]);var n=[],i=n[0]=Fu(),r=n[1]=Fu(),o=n[2]=Fu(),a=n[3]=Fu();e.dataToPoint(ju,i),e.dataToPoint(Hu,a),Pu(Bu,i),Ou(zu,a,i),Pu(zu,zu),Ru(Gu,zu,Bu),Pu(Gu,Gu),Ru(zu,Bu,Gu),Nu(r,Bu,zu),Pu(r,r),Pu(Bu,a),Ou(zu,i,a),Pu(zu,zu),Ru(Gu,zu,Bu),Pu(Gu,Gu),Ru(zu,Bu,Gu),Nu(o,Bu,zu),Pu(o,o),Nu(Vu,i,a),Pu(Vu,Vu);var s=Lu.dot(i,Vu),l=Lu.dot(Vu,r),h=(Math.max(Lu.len(i),Lu.len(a))-s)/l*2;return Lu.scaleAndAdd(r,i,r,h),Lu.scaleAndAdd(o,a,o,h),n}function Uu(t,e){for(var n=new Float32Array(3*t.length),i=0,r=[],o=0;o<t.length;o++)e.dataToPoint(t[o],r),n[i++]=r[0],n[i++]=r[1],n[i++]=r[2];return n}function qu(t){var e=[];return t.each((function(n){var i=t.getItemModel(n),r=i.option instanceof Array?i.option:i.getShallow("coords",!0);e.push(r)})),{coordsList:e}}function Xu(t,e,n){var i=t.getData(),r=t.get("polyline"),o=qu(i);i.setLayout("lineType",r?"polyline":"cubicBezier"),i.each((function(t){var a=o.coordsList[t],s=r?Uu(a,e):function(t,e,n){var i=[],r=i[0]=Lu.create(),o=i[1]=Lu.create(),a=i[2]=Lu.create(),s=i[3]=Lu.create();e.dataToPoint(t[0],r),e.dataToPoint(t[1],s);var l=Lu.dist(r,s);return Lu.lerp(o,r,s,.3),Lu.lerp(a,r,s,.3),Lu.scaleAndAdd(o,o,n,Math.min(.1*l,10)),Lu.scaleAndAdd(a,a,n,Math.min(.1*l,10)),i}(a,e,n);i.setItemLayout(t,s)}))}function Yu(t,e){t.eachSeriesByType("lines3D",(function(t){var e=t.coordinateSystem;"globe"===e.type?function(t,e){var n=t.getData(),i=t.get("polyline");n.setLayout("lineType",i?"polyline":"cubicBezier");var r=qu(n);n.each((function(t){var o=r.coordsList[t],a=i?Uu:Wu;n.setItemLayout(t,a(o,e))}))}(t,e):"geo3D"===e.type?Xu(t,e,[0,1,0]):"mapbox3D"!==e.type&&"maptalks3D"!==e.type||Xu(t,e,[0,0,1])}))}const Zu=i.rP.extend({type:"series.lines3D",dependencies:["globe"],visualStyleAccessPath:"lineStyle",visualDrawType:"stroke",getInitialData:function(t,e){var n=new i.B8(["value"],this);return n.hasItemOption=!1,n.initData(t.data,[],(function(t,e,i,r){if(t instanceof Array)return NaN;n.hasItemOption=!0;var o=t.value;return null!=o?o instanceof Array?o[r]:o:void 0})),n},defaultOption:{coordinateSystem:"globe",globeIndex:0,geo3DIndex:0,zlevel:-10,polyline:!1,effect:{show:!1,period:4,trailWidth:4,trailLength:.2,spotIntensity:6},silent:!0,blendMode:"source-over",lineStyle:{width:1,opacity:.5}}});var $u=Ea.vec3;function Ku(t){return t>0?1:-1}ia.Shader.import("@export ecgl.trail2.vertex\nattribute vec3 position: POSITION;\nattribute vec3 positionPrev;\nattribute vec3 positionNext;\nattribute float offset;\nattribute float dist;\nattribute float distAll;\nattribute float start;\n\nattribute vec4 a_Color : COLOR;\n\nuniform mat4 worldViewProjection : WORLDVIEWPROJECTION;\nuniform vec4 viewport : VIEWPORT;\nuniform float near : NEAR;\n\nuniform float speed : 0;\nuniform float trailLength: 0.3;\nuniform float time;\nuniform float period: 1000;\n\nuniform float spotSize: 1;\n\nvarying vec4 v_Color;\nvarying float v_Percent;\nvarying float v_SpotPercent;\n\n@import ecgl.common.wireframe.vertexHeader\n\n@import ecgl.lines3D.clipNear\n\nvoid main()\n{\n @import ecgl.lines3D.expandLine\n\n gl_Position = currProj;\n\n v_Color = a_Color;\n\n @import ecgl.common.wireframe.vertexMain\n\n#ifdef CONSTANT_SPEED\n float t = mod((speed * time + start) / distAll, 1. + trailLength) - trailLength;\n#else\n float t = mod((time + start) / period, 1. + trailLength) - trailLength;\n#endif\n\n float trailLen = distAll * trailLength;\n\n v_Percent = (dist - t * distAll) / trailLen;\n\n v_SpotPercent = spotSize / distAll;\n\n }\n@end\n\n\n@export ecgl.trail2.fragment\n\nuniform vec4 color : [1.0, 1.0, 1.0, 1.0];\nuniform float spotIntensity: 5;\n\nvarying vec4 v_Color;\nvarying float v_Percent;\nvarying float v_SpotPercent;\n\n@import ecgl.common.wireframe.fragmentHeader\n\n@import clay.util.srgb\n\nvoid main()\n{\n if (v_Percent > 1.0 || v_Percent < 0.0) {\n discard;\n }\n\n float fade = v_Percent;\n\n#ifdef SRGB_DECODE\n gl_FragColor = sRGBToLinear(color * v_Color);\n#else\n gl_FragColor = color * v_Color;\n#endif\n\n @import ecgl.common.wireframe.fragmentMain\n\n if (v_Percent > (1.0 - v_SpotPercent)) {\n gl_FragColor.rgb *= spotIntensity;\n }\n\n gl_FragColor.a *= fade;\n}\n\n@end");const Ju=ia.Mesh.extend((function(){var t=new ia.Material({shader:new ia.Shader(ia.Shader.source("ecgl.trail2.vertex"),ia.Shader.source("ecgl.trail2.fragment")),transparent:!0,depthMask:!1}),e=new Pa({dynamic:!0});return e.createAttribute("dist","float",1),e.createAttribute("distAll","float",1),e.createAttribute("start","float",1),{geometry:e,material:t,culling:!1,$ignorePicking:!0}}),{updateData:function(t,e,n){var i=t.hostModel,r=this.geometry,o=i.getModel("effect"),a=o.get("trailWidth")*e.getDevicePixelRatio(),s=o.get("trailLength"),l=i.get("effect.constantSpeed"),h=1e3*i.get("effect.period"),c=null!=l;c?this.material.set("speed",l/1e3):this.material.set("period",h),this.material[c?"define":"undefine"]("vertex","CONSTANT_SPEED");var u=i.get("polyline");r.trailLength=s,this.material.set("trailLength",s),r.resetOffset(),["position","positionPrev","positionNext"].forEach((function(t){r.attributes[t].value=n.attributes[t].value}));["dist","distAll","start","offset","color"].forEach((function(t){r.attributes[t].init(r.vertexCount)})),r.indices=n.indices;var d=[],p=o.get("trailColor"),f=o.get("trailOpacity"),g=null!=p,m=null!=f;this.updateWorldTransform();var v=this.worldTransform.x.len(),y=this.worldTransform.y.len(),_=this.worldTransform.z.len(),x=0,b=0;t.each((function(e){var i=t.getItemLayout(e),o=m?f:wh(t,e),s=bh(t,e);null==o&&(o=1),(d=ia.parseColor(g?p:s,d))[3]*=o;for(var l=u?n.getPolylineVertexCount(i):n.getCubicCurveVertexCount(i[0],i[1],i[2],i[3]),w=0,S=[],T=[],M=x;M<x+l;M++)r.attributes.position.get(M,S),S[0]*=v,S[1]*=y,S[2]*=_,M>x&&(w+=$u.dist(S,T)),r.attributes.dist.set(M,w),$u.copy(T,S);b=Math.max(b,w);var A=Math.random()*(c?w:h);for(M=x;M<x+l;M++)r.attributes.distAll.set(M,w),r.attributes.start.set(M,A),r.attributes.offset.set(M,Ku(n.attributes.offset.get(M))*a/2),r.attributes.color.set(M,d);x+=l})),this.material.set("spotSize",.1*b*s),this.material.set("spotIntensity",o.get("spotIntensity")),r.dirty()},setAnimationTime:function(t){this.material.set("time",t)}});ia.Shader.import(es);const Qu=i.OZ.extend({type:"lines3D",__ecgl__:!0,init:function(t,e){this.groupGL=new ia.Node,this._meshLinesMaterial=new ia.Material({shader:ia.createShader("ecgl.meshLines3D"),transparent:!0,depthMask:!1}),this._linesMesh=new ia.Mesh({geometry:new Pa,material:this._meshLinesMaterial,$ignorePicking:!0}),this._trailMesh=new Ju},render:function(t,e,n){this.groupGL.add(this._linesMesh);var i=t.coordinateSystem,r=t.getData();if(i&&i.viewGL){i.viewGL.add(this.groupGL),this._updateLines(t,e,n);var o=i.viewGL.isLinearSpace()?"define":"undefine";this._linesMesh.material[o]("fragment","SRGB_DECODE"),this._trailMesh.material[o]("fragment","SRGB_DECODE")}var a=this._trailMesh;if(a.stopAnimation(),t.get("effect.show")){this.groupGL.add(a),a.updateData(r,n,this._linesMesh.geometry),a.__time=a.__time||0;var s=36e5;this._curveEffectsAnimator=a.animate("",{loop:!0}).when(s,{__time:s}).during((function(){a.setAnimationTime(a.__time)})).start()}else this.groupGL.remove(a),this._curveEffectsAnimator=null;this._linesMesh.material.blend=this._trailMesh.material.blend="lighter"===t.get("blendMode")?ia.additiveBlend:null},pauseEffect:function(){this._curveEffectsAnimator&&this._curveEffectsAnimator.pause()},resumeEffect:function(){this._curveEffectsAnimator&&this._curveEffectsAnimator.resume()},toggleEffect:function(){var t=this._curveEffectsAnimator;t&&(t.isPaused()?t.resume():t.pause())},_updateLines:function(t,e,n){var i=t.getData(),r=t.coordinateSystem,o=this._linesMesh.geometry,a=t.get("polyline");o.expandLine=!0;var s=function(t){return null!=t.radius?t.radius:null!=t.size?Math.max(t.size[0],t.size[1],t.size[2]):100}(r);o.segmentScale=s/20;var l="lineStyle.width".split("."),h=n.getDevicePixelRatio(),c=0;i.each((function(t){var e=i.getItemModel(t).get(l);null==e&&(e=1),i.setItemVisual(t,"lineWidth",e),c=Math.max(e,c)})),o.useNativeLine=!1;var u=0,d=0;i.each((function(t){var e=i.getItemLayout(t);a?(u+=o.getPolylineVertexCount(e),d+=o.getPolylineTriangleCount(e)):(u+=o.getCubicCurveVertexCount(e[0],e[1],e[2],e[3]),d+=o.getCubicCurveTriangleCount(e[0],e[1],e[2],e[3]))})),o.setVertexCount(u),o.setTriangleCount(d),o.resetOffset();var p=[];i.each((function(t){var e=i.getItemLayout(t),n=bh(i,t),r=wh(i,t),s=i.getItemVisual(t,"lineWidth")*h;null==r&&(r=1),(p=ia.parseColor(n,p))[3]*=r,a?o.addPolyline(e,p,s):o.addCubicCurve(e[0],e[1],e[2],e[3],p,s)})),o.dirty()},remove:function(){this.groupGL.removeAll()},dispose:function(){this.groupGL.removeAll()}});function td(t,e){for(var n=[],i=0;i<e.length;i++)n.push(t.dataToPoint(e[i]));return n}(0,i.Yx)((function(t){t.registerChartView(Qu),t.registerSeriesModel(Zu),t.registerLayout(Yu),t.registerAction({type:"lines3DPauseEffect",event:"lines3deffectpaused",update:"series.lines3D:pauseEffect"},(function(){})),t.registerAction({type:"lines3DResumeEffect",event:"lines3deffectresumed",update:"series.lines3D:resumeEffect"},(function(){})),t.registerAction({type:"lines3DToggleEffect",event:"lines3deffectchanged",update:"series.lines3D:toggleEffect"},(function(){}))}));var ed=i.rP.extend({type:"series.polygons3D",getRegionModel:function(t){return this.getData().getItemModel(t)},getRegionPolygonCoords:function(t){var e=this.coordinateSystem,n=this.getData().getItemModel(t),i=n.option instanceof Array?n.option:n.getShallow("coords");n.get("multiPolygon")||(i=[i]);for(var r=[],o=0;o<i.length;o++){for(var a=[],s=1;s<i[o].length;s++)a.push(td(e,i[o][s]));r.push({exterior:td(e,i[o][0]),interiors:a})}return r},getInitialData:function(t){var e=new i.B8(["value"],this);return e.hasItemOption=!1,e.initData(t.data,[],(function(t,n,i,r){if(t instanceof Array)return NaN;e.hasItemOption=!0;var o=t.value;return null!=o?o instanceof Array?o[r]:o:void 0})),e},defaultOption:{show:!0,data:null,multiPolygon:!1,progressiveThreshold:1e3,progressive:1e3,zlevel:-10,label:{show:!1,distance:2,textStyle:{fontSize:20,color:"#000",backgroundColor:"rgba(255,255,255,0.7)",padding:3,borderRadius:4}},itemStyle:{color:"#fff",borderWidth:0,borderColor:"#333"},emphasis:{itemStyle:{color:"#639fc0"},label:{show:!0}}}});i.ZS.merge(ed.prototype,Fl);const nd=ed,id=i.OZ.extend({type:"polygons3D",__ecgl__:!0,init:function(t,e){this.groupGL=new ia.Node,this._geo3DBuilderList=[],this._currentStep=0},render:function(t,e,n){this.groupGL.removeAll();var i=t.coordinateSystem;i&&i.viewGL&&i.viewGL.add(this.groupGL);var r=this._geo3DBuilderList[0];r||((r=new Ch(n)).extrudeY="mapbox3D"!==i.type&&"maptalks3D"!==i.type,this._geo3DBuilderList[0]=r),this._updateShaderDefines(i,r),r.update(t,e,n),this._geo3DBuilderList.length=1,this.groupGL.add(r.rootNode)},incrementalPrepareRender:function(t,e,n){this.groupGL.removeAll();var i=t.coordinateSystem;i&&i.viewGL&&i.viewGL.add(this.groupGL),this._currentStep=0},incrementalRender:function(t,e,n,i){var r=this._geo3DBuilderList[this._currentStep],o=e.coordinateSystem;r||((r=new Ch(i)).extrudeY="mapbox3D"!==o.type&&"maptalks3D"!==o.type,this._geo3DBuilderList[this._currentStep]=r),r.update(e,n,i,t.start,t.end),this.groupGL.add(r.rootNode),this._updateShaderDefines(o,r),this._currentStep++},_updateShaderDefines:function(t,e){var n=t.viewGL.isLinearSpace()?"define":"undefine";e.rootNode.traverse((function(e){e.material&&(e.material[n]("fragment","SRGB_DECODE"),"mapbox3D"!==t.type&&"maptalks3D"!==t.type||(e.material.define("fragment","NORMAL_UP_AXIS",2),e.material.define("fragment","NORMAL_FRONT_AXIS",1)))}))},remove:function(){this.groupGL.removeAll()},dispose:function(){this.groupGL.removeAll(),this._geo3DBuilderList.forEach((function(t){t.dispose()}))}});(0,i.Yx)((function(t){t.registerChartView(id),t.registerSeriesModel(nd)}));var rd=i.rP.extend({type:"series.surface",dependencies:["globe","grid3D","geo3D"],visualStyleAccessPath:"itemStyle",formatTooltip:function(t){return Kc(this,t)},getInitialData:function(t,e){var n=t.data;function r(t){return!(isNaN(t.min)||isNaN(t.max)||isNaN(t.step))}function o(t){var e=i.ai.getPrecisionSafe;return Math.max(e(t.min),e(t.max),e(t.step))+1}if(!n)if(t.parametric){var a=t.parametricEquation||{},s=a.u||{},l=a.v||{};["u","v"].forEach((function(t){r(a[t])})),["x","y","z"].forEach((function(t){a[t]}));var h=Math.floor((s.max+s.step-s.min)/s.step),c=Math.floor((l.max+l.step-l.min)/l.step);n=new Float32Array(h*c*5);var u=o(s),d=o(l);for(T=0,M=0;M<c;M++)for(A=0;A<h;A++){var p=A*s.step+s.min,f=M*l.step+l.min,g=i.ai.round(Math.min(p,s.max),u),m=i.ai.round(Math.min(f,l.max),d);C=a.x(g,m),I=a.y(g,m),L=a.z(g,m);n[T++]=C,n[T++]=I,n[T++]=L,n[T++]=g,n[T++]=m}}else{var v=t.equation||{},y=v.x||{},_=v.y||{};if(["x","y"].forEach((function(t){r(v[t])})),"function"!=typeof v.z)return void 0;var x=Math.floor((y.max+y.step-y.min)/y.step),b=Math.floor((_.max+_.step-_.min)/_.step);n=new Float32Array(x*b*3);for(var w=o(y),S=o(_),T=0,M=0;M<b;M++)for(var A=0;A<x;A++){var C=A*y.step+y.min,I=M*_.step+_.min,E=i.ai.round(Math.min(C,y.max),w),k=i.ai.round(Math.min(I,_.max),S),L=v.z(E,k);n[T++]=E,n[T++]=k,n[T++]=L}}var D=["x","y","z"];return t.parametric&&D.push("u","v"),Jc(this,D,n)},defaultOption:{coordinateSystem:"cartesian3D",zlevel:-10,grid3DIndex:0,shading:"lambert",parametric:!1,wireframe:{show:!0,lineStyle:{color:"rgba(0,0,0,0.5)",width:1}},equation:{x:{min:-1,max:1,step:.1},y:{min:-1,max:1,step:.1},z:null},parametricEquation:{u:{min:-1,max:1,step:.1},v:{min:-1,max:1,step:.1},x:null,y:null,z:null},dataShape:null,itemStyle:{},animationDurationUpdate:500}});i.ZS.merge(rd.prototype,Fl);const od=rd;var ad=Ea.vec3;const sd=i.OZ.extend({type:"surface",__ecgl__:!0,init:function(t,e){this.groupGL=new ia.Node},render:function(t,e,n){var i=this._prevSurfaceMesh;this._prevSurfaceMesh=this._surfaceMesh,this._surfaceMesh=i,this._surfaceMesh||(this._surfaceMesh=this._createSurfaceMesh()),this.groupGL.remove(this._prevSurfaceMesh),this.groupGL.add(this._surfaceMesh);var r=t.coordinateSystem,o=t.get("shading"),a=t.getData(),s="ecgl."+o;if(this._surfaceMesh.material&&this._surfaceMesh.material.shader.name===s||(this._surfaceMesh.material=ia.createMaterial(s,["VERTEX_COLOR","DOUBLE_SIDED"])),ia.setMaterialFromModel(o,this._surfaceMesh.material,t,n),r&&r.viewGL){r.viewGL.add(this.groupGL);var l=r.viewGL.isLinearSpace()?"define":"undefine";this._surfaceMesh.material[l]("fragment","SRGB_DECODE")}var h=t.get("parametric"),c=t.get("dataShape");c||(c=this._getDataShape(a,h));var u=t.getModel("wireframe"),d=u.get("lineStyle.width"),p=u.get("show")&&d>0;this._updateSurfaceMesh(this._surfaceMesh,t,c,p);var f=this._surfaceMesh.material;p?(f.define("WIREFRAME_QUAD"),f.set("wireframeLineWidth",d),f.set("wireframeLineColor",ia.parseColor(u.get("lineStyle.color")))):f.undefine("WIREFRAME_QUAD"),this._initHandler(t,n),this._updateAnimation(t)},_updateAnimation:function(t){ia.updateVertexAnimation([["prevPosition","position"],["prevNormal","normal"]],this._prevSurfaceMesh,this._surfaceMesh,t)},_createSurfaceMesh:function(){var t=new ia.Mesh({geometry:new ia.Geometry({dynamic:!0,sortTriangles:!0}),shadowDepthMaterial:new ia.Material({shader:new ia.Shader(ia.Shader.source("ecgl.sm.depth.vertex"),ia.Shader.source("ecgl.sm.depth.fragment"))}),culling:!1,renderOrder:10,renderNormal:!0});return t.geometry.createAttribute("barycentric","float",4),t.geometry.createAttribute("prevPosition","float",3),t.geometry.createAttribute("prevNormal","float",3),Object.assign(t.geometry,xh),t},_initHandler:function(t,e){var n=t.getData(),i=this._surfaceMesh,r=t.coordinateSystem;i.seriesIndex=t.seriesIndex;var o=-1;i.off("mousemove"),i.off("mouseout"),i.on("mousemove",(function(t){var a=function(t,e){for(var n=1/0,r=-1,o=[],a=0;a<t.length;a++){i.geometry.attributes.position.get(t[a],o);var s=ad.dist(e.array,o);s<n&&(n=s,r=t[a])}return r}(t.triangle,t.point);if(a>=0){var s=[];i.geometry.attributes.position.get(a,s);for(var l=r.pointToData(s),h=1/0,c=-1,u=[],d=0;d<n.count();d++){u[0]=n.get("x",d),u[1]=n.get("y",d),u[2]=n.get("z",d);var p=ad.squaredDistance(u,l);p<h&&(c=d,h=p)}c!==o&&e.dispatchAction({type:"grid3DShowAxisPointer",value:l}),o=c,i.dataIndex=c}else i.dataIndex=-1}),this),i.on("mouseout",(function(t){o=-1,i.dataIndex=-1,e.dispatchAction({type:"grid3DHideAxisPointer"})}),this)},_updateSurfaceMesh:function(t,e,n,i){var r=t.geometry,o=e.getData(),a=o.getLayout("points"),s=0;o.each((function(t){o.hasValue(t)||s++}));var l=s||i,h=r.attributes.position,c=r.attributes.normal,u=r.attributes.texcoord0,d=r.attributes.barycentric,p=r.attributes.color,f=n[0],g=n[1],m="color"!==e.get("shading");if(l){var v=(f-1)*(g-1)*4;h.init(v),i&&d.init(v)}else h.value=new Float32Array(a);p.init(r.vertexCount),u.init(r.vertexCount);var y,_=[0,3,1,1,3,2],x=[[1,1,0,0],[0,1,0,1],[1,0,0,1],[1,0,1,0]],b=r.indices=new(r.vertexCount>65535?Uint32Array:Uint16Array)((f-1)*(g-1)*6),w=function(t,e,n){n[1]=t*g+e,n[0]=t*g+e+1,n[3]=(t+1)*g+e+1,n[2]=(t+1)*g+e},S=!1;if(l){var T=[],M=[],A=0;m?c.init(r.vertexCount):c.value=null;for(var C=[[],[],[]],I=[],E=[],k=ad.create(),L=function(t,e,n){var i=3*e;return n[0]=t[i],n[1]=t[i+1],n[2]=t[i+2],n},D=new Float32Array(a.length),P=new Float32Array(a.length/3*4),R=0;R<o.count();R++)if(o.hasValue(R)){var O=ia.parseColor(bh(o,R));null!=(q=wh(o,R))&&(O[3]*=q),O[3]<.99&&(S=!0);for(var N=0;N<4;N++)P[4*R+N]=O[N]}var F=[1e7,1e7,1e7];for(R=0;R<f-1;R++)for(var B=0;B<g-1;B++){var z=4*(R*(g-1)+B);w(R,B,T);var G=!1;for(N=0;N<4;N++)L(a,T[N],M),y=M,(isNaN(y[0])||isNaN(y[1])||isNaN(y[2]))&&(G=!0);for(N=0;N<4;N++)G?h.set(z+N,F):(L(a,T[N],M),h.set(z+N,M)),i&&d.set(z+N,x[N]);for(N=0;N<6;N++)b[A++]=_[N]+z;if(m&&!G)for(N=0;N<2;N++){for(var V=3*N,j=0;j<3;j++){L(a,U=T[_[V]+j],C[j])}ad.sub(I,C[0],C[1]),ad.sub(E,C[1],C[2]),ad.cross(k,I,E);for(j=0;j<3;j++){var H=3*T[_[V]+j];D[H]=D[H]+k[0],D[H+1]=D[H+1]+k[1],D[H+2]=D[H+2]+k[2]}}}if(m)for(R=0;R<D.length/3;R++)L(D,R,k),ad.normalize(k,k),D[3*R]=k[0],D[3*R+1]=k[1],D[3*R+2]=k[2];O=[];var W=[];for(R=0;R<f-1;R++)for(B=0;B<g-1;B++){z=4*(R*(g-1)+B);w(R,B,T);for(N=0;N<4;N++){for(j=0;j<4;j++)O[j]=P[4*T[N]+j];p.set(z+N,O),m&&(L(D,T[N],k),c.set(z+N,k));var U=T[N];W[0]=U%g/(g-1),W[1]=Math.floor(U/g)/(f-1),u.set(z+N,W)}0}}else{for(W=[],R=0;R<o.count();R++){W[0]=R%g/(g-1),W[1]=Math.floor(R/g)/(f-1);var q;O=ia.parseColor(bh(o,R));null!=(q=wh(o,R))&&(O[3]*=q),O[3]<.99&&(S=!0),p.set(R,O),u.set(R,W)}T=[];var X=0;for(R=0;R<f-1;R++)for(B=0;B<g-1;B++){w(R,B,T);for(N=0;N<6;N++)b[X++]=T[_[N]]}m?r.generateVertexNormals():c.value=null}t.material.get("normalMap")&&r.generateTangents(),r.updateBoundingBox(),r.dirty(),t.material.transparent=S,t.material.depthMask=!S},_getDataShape:function(t,e){for(var n=-1/0,i=0,r=0,o=!1,a=e?"u":"x",s=t.count(),l=0;l<s;l++){var h=t.get(a,l);h<n&&(r=0,i++),n=h,r++}if(i&&1!==r||(o=!0),!o)return[i+1,r];for(var c=Math.floor(Math.sqrt(s));c>0;){if(Math.floor(s/c)===s/c)return[c,s/c];c--}return[c=Math.floor(Math.sqrt(s)),c]},dispose:function(){this.groupGL.removeAll()},remove:function(){this.groupGL.removeAll()}});function ld(t,e){for(var n=[],i=0;i<e.length;i++)n.push(t.dataToPoint(e[i]));return n}(0,i.Yx)((function(t){t.registerChartView(sd),t.registerSeriesModel(od),t.registerLayout((function(t,e){t.eachSeriesByType("surface",(function(t){var e=t.coordinateSystem;e&&e.type;var n=t.getData(),i=new Float32Array(3*n.count()),r=[NaN,NaN,NaN];if(e&&"cartesian3D"===e.type){var o=e.dimensions.map((function(e){return t.coordDimToDataDim(e)[0]}));n.each(o,(function(t,o,a,s){var l;l=n.hasValue(s)?e.dataToPoint([t,o,a]):r,i[3*s]=l[0],i[3*s+1]=l[1],i[3*s+2]=l[2]}))}n.setLayout("points",i)}))}))}));var hd=i.rP.extend({type:"series.map3D",layoutMode:"box",coordinateSystem:null,visualStyleAccessPath:"itemStyle",optionUpdated:function(t){t=t||{};var e=this.get("coordinateSystem");null!=e&&"geo3D"!==e&&(this.get("groundPlane.show")&&(this.option.groundPlane.show=!1),this._geo=null)},getInitialData:function(t){t.data=this.getFilledRegions(t.data,t.map);var e=i.dw.createDimensions(t.data,{coordDimensions:["value"]}),n=new i.B8(e,this);n.initData(t.data);var r={};return n.each((function(t){var e=n.getName(t),i=n.getItemModel(t);r[e]=i})),this._regionModelMap=r,n},formatTooltip:function(t){return Kc(this,t)},getRegionModel:function(t){var e=this.getData().getName(t);return this._regionModelMap[e]||new i.Kx(null,this)},getRegionPolygonCoords:function(t){var e=this.coordinateSystem,n=this.getData().getName(t);if(e.transform)return(i=e.getRegion(n))?i.geometries:[];this._geo||(this._geo=Gh.createGeo3D(this));for(var i=this._geo.getRegion(n),r=[],o=0;o<i.geometries.length;o++){var a=i.geometries[o],s=[],l=ld(e,a.exterior);if(s&&s.length)for(var h=0;h<a.interiors.length;h++)s.push(ld(e,s[h]));r.push({interiors:s,exterior:l})}return r},getFormattedLabel:function(t,e){var n=$c.getFormattedLabel(this,t,e);return null==n&&(n=this.getData().getName(t)),n},defaultOption:{coordinateSystem:"geo3D",data:null}});i.ZS.merge(hd.prototype,Bl),i.ZS.merge(hd.prototype,va),i.ZS.merge(hd.prototype,ya),i.ZS.merge(hd.prototype,_a),i.ZS.merge(hd.prototype,Fl);const cd=hd,ud=i.OZ.extend({type:"map3D",__ecgl__:!0,init:function(t,e){this._geo3DBuilder=new Ch(e),this.groupGL=new ia.Node},render:function(t,e,n){var i=t.coordinateSystem;if(i&&i.viewGL){if(this.groupGL.add(this._geo3DBuilder.rootNode),i.viewGL.add(this.groupGL),"geo3D"===i.type){this._sceneHelper||(this._sceneHelper=new Ba,this._sceneHelper.initLight(this.groupGL)),this._sceneHelper.setScene(i.viewGL.scene),this._sceneHelper.updateLight(t),i.viewGL.setPostEffect(t.getModel("postEffect"),n),i.viewGL.setTemporalSuperSampling(t.getModel("temporalSuperSampling"));var r=this._control;r||(r=this._control=new Ca({zr:n.getZr()}),this._control.init());var o=t.getModel("viewControl");r.setViewGL(i.viewGL),r.setFromViewControlModel(o,0),r.off("update"),r.on("update",(function(){n.dispatchAction({type:"map3DChangeCamera",alpha:r.getAlpha(),beta:r.getBeta(),distance:r.getDistance(),from:this.uid,map3DId:t.id})})),this._geo3DBuilder.extrudeY=!0}else this._control&&(this._control.dispose(),this._control=null),this._sceneHelper&&(this._sceneHelper.dispose(),this._sceneHelper=null),t.getData().getLayout("geo3D"),this._geo3DBuilder.extrudeY=!1;this._geo3DBuilder.update(t,e,n,0,t.getData().count());var a=i.viewGL.isLinearSpace()?"define":"undefine";this._geo3DBuilder.rootNode.traverse((function(t){t.material&&t.material[a]("fragment","SRGB_DECODE")}))}},afterRender:function(t,e,n,i){var r=i.renderer,o=t.coordinateSystem;o&&"geo3D"===o.type&&(this._sceneHelper.updateAmbientCubemap(r,t,n),this._sceneHelper.updateSkybox(r,t,n))},dispose:function(){this.groupGL.removeAll(),this._control.dispose(),this._geo3DBuilder.dispose()}});(0,i.Yx)((function(t){Vh(t),t.registerChartView(ud),t.registerSeriesModel(cd),t.registerAction({type:"map3DChangeCamera",event:"map3dcamerachanged",update:"series:updateCamera"},(function(t,e){e.eachComponent({mainType:"series",subType:"map3D",query:t},(function(e){e.setView(t)}))}))}));const dd=i.rP.extend({type:"series.scatterGL",dependencies:["grid","polar","geo","singleAxis"],visualStyleAccessPath:"itemStyle",hasSymbolVisual:!0,getInitialData:function(){return i.dw.createList(this)},defaultOption:{coordinateSystem:"cartesian2d",zlevel:10,progressive:1e5,progressiveThreshold:1e5,large:!1,symbol:"circle",symbolSize:10,zoomScale:0,blendMode:"source-over",itemStyle:{opacity:.8},postEffect:{enable:!1,colorCorrection:{exposure:0,brightness:0,contrast:1,saturation:1,enable:!0}}}});var pd=n(3968),fd=n(4070);function gd(t){this.viewGL=t}gd.prototype.reset=function(t,e){this._updateCamera(e.getWidth(),e.getHeight(),e.getDevicePixelRatio()),this._viewTransform=pd.create(),this.updateTransform(t,e)},gd.prototype.updateTransform=function(t,e){var n=t.coordinateSystem;n.getRoamTransform&&(pd.invert(this._viewTransform,n.getRoamTransform()),this._setCameraTransform(this._viewTransform),e.getZr().refresh())},gd.prototype.dataToPoint=function(t,e,n){n=t.dataToPoint(e,null,n);var i=this._viewTransform;i&&fd.applyTransform(n,n,i)},gd.prototype.removeTransformInPoint=function(t){return this._viewTransform&&fd.applyTransform(t,t,this._viewTransform),t},gd.prototype.getZoom=function(){if(this._viewTransform){var t=this._viewTransform;return 1/Math.max(Math.sqrt(t[0]*t[0]+t[1]*t[1]),Math.sqrt(t[2]*t[2]+t[3]*t[3]))}return 1},gd.prototype._setCameraTransform=function(t){var e=this.viewGL.camera;e.position.set(t[4],t[5],0),e.scale.set(Math.sqrt(t[0]*t[0]+t[1]*t[1]),Math.sqrt(t[2]*t[2]+t[3]*t[3]),1)},gd.prototype._updateCamera=function(t,e,n){this.viewGL.setViewport(0,0,t,e,n);var i=this.viewGL.camera;i.left=i.top=0,i.bottom=e,i.right=t,i.near=0,i.far=100};const md=gd,vd=i.OZ.extend({type:"scatterGL",__ecgl__:!0,init:function(t,e){this.groupGL=new ia.Node,this.viewGL=new wl("orthographic"),this.viewGL.add(this.groupGL),this._pointsBuilderList=[],this._currentStep=0,this._sizeScale=1,this._glViewHelper=new md(this.viewGL)},render:function(t,e,n){if(this.groupGL.removeAll(),this._glViewHelper.reset(t,n),t.getData().count()){var i=this._pointsBuilderList[0];i||(i=this._pointsBuilderList[0]=new Eu(!0,n)),this._pointsBuilderList.length=1,this.groupGL.add(i.rootNode),this._removeTransformInPoints(t.getData().getLayout("points")),i.update(t,e,n),this.viewGL.setPostEffect(t.getModel("postEffect"),n)}},incrementalPrepareRender:function(t,e,n){this.groupGL.removeAll(),this._glViewHelper.reset(t,n),this._currentStep=0,this.viewGL.setPostEffect(t.getModel("postEffect"),n)},incrementalRender:function(t,e,n,i){if(!(t.end<=t.start)){var r=this._pointsBuilderList[this._currentStep];r||(r=new Eu(!0,i),this._pointsBuilderList[this._currentStep]=r),this.groupGL.add(r.rootNode),this._removeTransformInPoints(e.getData().getLayout("points")),r.setSizeScale(this._sizeScale),r.update(e,n,i,t.start,t.end),i.getZr().refresh(),this._currentStep++}},updateTransform:function(t,e,n){if(t.coordinateSystem.getRoamTransform){this._glViewHelper.updateTransform(t,n);var i=this._glViewHelper.getZoom(),r=Math.max((t.get("zoomScale")||0)*(i-1)+1,0);this._sizeScale=r,this._pointsBuilderList.forEach((function(t){t.setSizeScale(r)}))}},_removeTransformInPoints:function(t){if(t)for(var e=[],n=0;n<t.length;n+=2)e[0]=t[n],e[1]=t[n+1],this._glViewHelper.removeTransformInPoint(e),t[n]=e[0],t[n+1]=e[1]},dispose:function(){this.groupGL.removeAll(),this._pointsBuilderList.forEach((function(t){t.dispose()}))},remove:function(){this.groupGL.removeAll()}});(0,i.Yx)((function(t){t.registerChartView(vd),t.registerSeriesModel(dd),t.registerLayout({seriesType:"scatterGL",reset:function(t){var e,n=t.coordinateSystem,i=t.getData();if(n){var r=n.dimensions.map((function(t){return i.mapDimension(t)})).slice(0,2),o=[];1===r.length?e=function(t){for(var e=new Float32Array(2*(t.end-t.start)),o=t.start;o<t.end;o++){var a=2*(o-t.start),s=i.get(r[0],o),l=n.dataToPoint(s);e[a]=l[0],e[a+1]=l[1]}i.setLayout("points",e)}:2===r.length&&(e=function(t){for(var e=new Float32Array(2*(t.end-t.start)),a=t.start;a<t.end;a++){var s=2*(a-t.start),l=i.get(r[0],a),h=i.get(r[1],a);o[0]=l,o[1]=h,o=n.dataToPoint(o),e[s]=o[0],e[s+1]=o[1]}i.setLayout("points",e)})}return{progress:e}}})}));var yd=n(9588);const _d=n(8052).A;var xd=i.rP.extend({type:"series.graphGL",visualStyleAccessPath:"itemStyle",hasSymbolVisual:!0,init:function(t){xd.superApply(this,"init",arguments),this.legendDataProvider=function(){return this._categoriesData},this._updateCategoriesData()},mergeOption:function(t){xd.superApply(this,"mergeOption",arguments),this._updateCategoriesData()},getFormattedLabel:function(t,e,n,i){var r=$c.getFormattedLabel(this,t,e,n,i);if(null==r){var o=this.getData(),a=o.dimensions[o.dimensions.length-1];r=o.get(a,t)}return r},getInitialData:function(t,e){var n=t.edges||t.links||[],r=t.data||t.nodes||[],o=this;if(r&&n)return function(t,e,n,r,o){for(var a=new yd.Ay(r),s=0;s<t.length;s++)a.addNode(wo.firstNotNull(t[s].id,t[s].name,s),s);var l,h=[],c=[],u=0;for(s=0;s<e.length;s++){var d=e[s],p=d.source,f=d.target;a.addEdge(p,f,u)&&(c.push(d),h.push(wo.firstNotNull(d.id,p+" > "+f)),u++)}var g=i.dw.createDimensions(t,{coordDimensions:["value"]});(l=new i.B8(g,n)).initData(t);var m=new i.B8(["value"],n);return m.initData(c,h),o&&o(l,m),_d({mainData:l,struct:a,structAttr:"graph",datas:{node:l,edge:m},datasAttr:{node:"data",edge:"edgeData"}}),a.update(),a}(r,n,this,!0,(function(t,n){t.wrapMethod("getItemModel",(function(t){const e=o._categoriesModels[t.getShallow("category")];return e&&(e.parentModel=t.parentModel,t.parentModel=e),t}));const i=e.getModel([]).getModel;function r(t,e){const n=i.call(this,t,e);return n.resolveParentPath=a,n}function a(t){if(t&&("label"===t[0]||"label"===t[1])){const e=t.slice();return"label"===t[0]?e[0]="edgeLabel":"label"===t[1]&&(e[1]="edgeLabel"),e}return t}n.wrapMethod("getItemModel",(function(t){return t.resolveParentPath=a,t.getModel=r,t}))})).data},getGraph:function(){return this.getData().graph},getEdgeData:function(){return this.getGraph().edgeData},getCategoriesData:function(){return this._categoriesData},formatTooltip:function(t,e,n){if("edge"===n){var r=this.getData(),o=this.getDataParams(t,n),a=r.graph.getEdgeByIndex(t),s=r.getName(a.node1.dataIndex),l=r.getName(a.node2.dataIndex),h=[];return null!=s&&h.push(s),null!=l&&h.push(l),h=i.GP.encodeHTML(h.join(" > ")),o.value&&(h+=" : "+i.GP.encodeHTML(o.value)),h}return xd.superApply(this,"formatTooltip",arguments)},_updateCategoriesData:function(){var t=(this.option.categories||[]).map((function(t){return null!=t.value?t:Object.assign({value:0},t)})),e=new i.B8(["value"],this);e.initData(t),this._categoriesData=e,this._categoriesModels=e.mapArray((function(t){return e.getItemModel(t,!0)}))},setView:function(t){null!=t.zoom&&(this.option.zoom=t.zoom),null!=t.offset&&(this.option.offset=t.offset)},setNodePosition:function(t){for(var e=0;e<t.length/2;e++){var n=t[2*e],i=t[2*e+1],r=this.getData().getRawDataItem(e);r.x=n,r.y=i}},isAnimationEnabled:function(){return xd.superCall(this,"isAnimationEnabled")&&!("force"===this.get("layout")&&this.get("force.layoutAnimation"))},defaultOption:{zlevel:10,z:2,legendHoverLink:!0,layout:"forceAtlas2",forceAtlas2:{initLayout:null,GPU:!0,steps:1,maxSteps:1e3,repulsionByDegree:!0,linLogMode:!1,strongGravityMode:!1,gravity:1,edgeWeightInfluence:1,edgeWeight:[1,4],nodeWeight:[1,4],preventOverlap:!1,gravityCenter:null},focusNodeAdjacency:!0,focusNodeAdjacencyOn:"mouseover",left:"center",top:"center",symbol:"circle",symbolSize:5,roam:!1,center:null,zoom:1,label:{show:!1,formatter:"{b}",position:"right",distance:5,textStyle:{fontSize:14}},itemStyle:{},lineStyle:{color:"#aaa",width:1,opacity:.5},emphasis:{label:{show:!0}},animation:!1}});const bd=xd;var wd=Ea.vec2,Sd=[[0,0],[1,1]],Td=Ci.extend((function(){return{segmentScale:4,dynamic:!0,useNativeLine:!0,attributes:{position:new Ci.Attribute("position","float",2,"POSITION"),normal:new Ci.Attribute("normal","float",2),offset:new Ci.Attribute("offset","float",1),color:new Ci.Attribute("color","float",4,"COLOR")}}}),{resetOffset:function(){this._vertexOffset=0,this._faceOffset=0,this._itemVertexOffsets=[]},setVertexCount:function(t){var e=this.attributes;this.vertexCount!==t&&(e.position.init(t),e.color.init(t),this.useNativeLine||(e.offset.init(t),e.normal.init(t)),t>65535?this.indices instanceof Uint16Array&&(this.indices=new Uint32Array(this.indices)):this.indices instanceof Uint32Array&&(this.indices=new Uint16Array(this.indices)))},setTriangleCount:function(t){this.triangleCount!==t&&(this.indices=0===t?null:this.vertexCount>65535?new Uint32Array(3*t):new Uint16Array(3*t))},_getCubicCurveApproxStep:function(t,e,n,i){return 1/(wd.dist(t,e)+wd.dist(n,e)+wd.dist(i,n)+1)*this.segmentScale},getCubicCurveVertexCount:function(t,e,n,i){var r=this._getCubicCurveApproxStep(t,e,n,i),o=Math.ceil(1/r);return this.useNativeLine?2*o:2*o+2},getCubicCurveTriangleCount:function(t,e,n,i){var r=this._getCubicCurveApproxStep(t,e,n,i),o=Math.ceil(1/r);return this.useNativeLine?0:2*o},getLineVertexCount:function(){return this.getPolylineVertexCount(Sd)},getLineTriangleCount:function(){return this.getPolylineTriangleCount(Sd)},getPolylineVertexCount:function(t){var e;"number"==typeof t?e=t:e="number"!=typeof t[0]?t.length:t.length/2;return this.useNativeLine?2*(e-1):2*(e-1)+2},getPolylineTriangleCount:function(t){var e;"number"==typeof t?e=t:e="number"!=typeof t[0]?t.length:t.length/2;return this.useNativeLine?0:2*(e-1)},addCubicCurve:function(t,e,n,i,r,o){null==o&&(o=1);var a=t[0],s=t[1],l=e[0],h=e[1],c=n[0],u=n[1],d=i[0],p=i[1],f=this._getCubicCurveApproxStep(t,e,n,i),g=f*f,m=g*f,v=3*f,y=3*g,_=6*g,x=6*m,b=a-2*l+c,w=s-2*h+u,S=3*(l-c)-a+d,T=3*(h-u)-s+p,M=a,A=s,C=(l-a)*v+b*y+S*m,I=(h-s)*v+w*y+T*m,E=b*_+S*x,k=w*_+T*x,L=S*x,D=T*x,P=0,R=0,O=Math.ceil(1/f),N=new Float32Array(3*(O+1)),F=(N=[],0);for(R=0;R<O+1;R++)N[F++]=M,N[F++]=A,M+=C,A+=I,C+=E,I+=k,E+=L,k+=D,(P+=f)>1&&(M=C>0?Math.min(M,d):Math.max(M,d),A=I>0?Math.min(A,p):Math.max(A,p));this.addPolyline(N,r,o)},addLine:function(t,e,n,i){this.addPolyline([t,e],n,i)},addPolyline:function(){var t=wd.create(),e=wd.create(),n=wd.create(),i=wd.create(),r=[],o=[],a=[];return function(s,l,h,c,u){if(s.length){var d="number"!=typeof s[0];if(null==u&&(u=d?s.length:s.length/2),!(u<2)){null==c&&(c=0),null==h&&(h=1),this._itemVertexOffsets.push(this._vertexOffset);for(var p,f=d?"number"!=typeof l[0]:l.length/4===u,g=this.attributes.position,m=this.attributes.color,v=this.attributes.offset,y=this.attributes.normal,_=this.indices,x=this._vertexOffset,b=0;b<u;b++){if(d)r=s[b+c],p=f?l[b+c]:l;else{var w=2*b+c;if((r=r||[])[0]=s[w],r[1]=s[w+1],f){var S=4*b+c;(p=p||[])[0]=l[S],p[1]=l[S+1],p[2]=l[S+2],p[3]=l[S+3]}else p=l}if(this.useNativeLine)b>1&&(g.copy(x,x-1),m.copy(x,x-1),x++);else{var T;if(b<u-1){if(d)wd.copy(o,s[b+1]);else{w=2*(b+1)+c;(o=o||[])[0]=s[w],o[1]=s[w+1]}if(b>0){wd.sub(t,r,a),wd.sub(e,o,r),wd.normalize(t,t),wd.normalize(e,e),wd.add(i,t,e),wd.normalize(i,i);var M=h/2*Math.min(1/wd.dot(t,i),2);n[0]=-i[1],n[1]=i[0],T=M}else wd.sub(t,o,r),wd.normalize(t,t),n[0]=-t[1],n[1]=t[0],T=h/2}else wd.sub(t,r,a),wd.normalize(t,t),n[0]=-t[1],n[1]=t[0],T=h/2;y.set(x,n),y.set(x+1,n),v.set(x,T),v.set(x+1,-T),wd.copy(a,r),g.set(x,r),g.set(x+1,r),m.set(x,p),m.set(x+1,p),x+=2}if(this.useNativeLine)m.set(x,p),g.set(x,r),x++;else if(b>0){var A=3*this._faceOffset;(_=this.indices)[A]=x-4,_[A+1]=x-3,_[A+2]=x-2,_[A+3]=x-3,_[A+4]=x-1,_[A+5]=x-2,this._faceOffset+=2}}this._vertexOffset=x}}}}(),setItemColor:function(t,e){for(var n=this._itemVertexOffsets[t],i=t<this._itemVertexOffsets.length-1?this._itemVertexOffsets[t+1]:this._vertexOffset,r=n;r<i;r++)this.attributes.color.set(r,e);this.dirty("color")}});i.ZS.defaults(Td.prototype,Ia);const Md=Td;ia.Shader.import("@export ecgl.forceAtlas2.updateNodeRepulsion\n\n#define NODE_COUNT 0\n\nuniform sampler2D positionTex;\n\nuniform vec2 textureSize;\nuniform float gravity;\nuniform float scaling;\nuniform vec2 gravityCenter;\n\nuniform bool strongGravityMode;\nuniform bool preventOverlap;\n\nvarying vec2 v_Texcoord;\n\nvoid main() {\n\n vec4 n0 = texture2D(positionTex, v_Texcoord);\n\n vec2 force = vec2(0.0);\n for (int i = 0; i < NODE_COUNT; i++) {\n vec2 uv = vec2(\n mod(float(i), textureSize.x) / (textureSize.x - 1.0),\n floor(float(i) / textureSize.x) / (textureSize.y - 1.0)\n );\n vec4 n1 = texture2D(positionTex, uv);\n\n vec2 dir = n0.xy - n1.xy;\n float d2 = dot(dir, dir);\n\n if (d2 > 0.0) {\n float factor = 0.0;\n if (preventOverlap) {\n float d = sqrt(d2);\n d = d - n0.w - n1.w;\n if (d > 0.0) {\n factor = scaling * n0.z * n1.z / (d * d);\n }\n else if (d < 0.0) {\n factor = scaling * 100.0 * n0.z * n1.z;\n }\n }\n else {\n factor = scaling * n0.z * n1.z / d2;\n }\n force += dir * factor;\n }\n }\n\n vec2 dir = gravityCenter - n0.xy;\n float d = 1.0;\n if (!strongGravityMode) {\n d = length(dir);\n }\n\n force += dir * n0.z * gravity / (d + 1.0);\n\n gl_FragColor = vec4(force, 0.0, 1.0);\n}\n@end\n\n@export ecgl.forceAtlas2.updateEdgeAttraction.vertex\n\nattribute vec2 node1;\nattribute vec2 node2;\nattribute float weight;\n\nuniform sampler2D positionTex;\nuniform float edgeWeightInfluence;\nuniform bool preventOverlap;\nuniform bool linLogMode;\n\nuniform vec2 windowSize: WINDOW_SIZE;\n\nvarying vec2 v_Force;\n\nvoid main() {\n\n vec4 n0 = texture2D(positionTex, node1);\n vec4 n1 = texture2D(positionTex, node2);\n\n vec2 dir = n1.xy - n0.xy;\n float d = length(dir);\n float w;\n if (edgeWeightInfluence == 0.0) {\n w = 1.0;\n }\n else if (edgeWeightInfluence == 1.0) {\n w = weight;\n }\n else {\n w = pow(weight, edgeWeightInfluence);\n }\n vec2 offset = vec2(1.0 / windowSize.x, 1.0 / windowSize.y);\n vec2 scale = vec2((windowSize.x - 1.0) / windowSize.x, (windowSize.y - 1.0) / windowSize.y);\n vec2 pos = node1 * scale * 2.0 - 1.0;\n gl_Position = vec4(pos + offset, 0.0, 1.0);\n gl_PointSize = 1.0;\n\n float factor;\n if (preventOverlap) {\n d = d - n1.w - n0.w;\n }\n if (d <= 0.0) {\n v_Force = vec2(0.0);\n return;\n }\n\n if (linLogMode) {\n factor = w * log(d) / d;\n }\n else {\n factor = w;\n }\n v_Force = dir * factor;\n}\n@end\n\n@export ecgl.forceAtlas2.updateEdgeAttraction.fragment\n\nvarying vec2 v_Force;\n\nvoid main() {\n gl_FragColor = vec4(v_Force, 0.0, 0.0);\n}\n@end\n\n@export ecgl.forceAtlas2.calcWeightedSum.vertex\n\nattribute vec2 node;\n\nvarying vec2 v_NodeUv;\n\nvoid main() {\n\n v_NodeUv = node;\n gl_Position = vec4(0.0, 0.0, 0.0, 1.0);\n gl_PointSize = 1.0;\n}\n@end\n\n@export ecgl.forceAtlas2.calcWeightedSum.fragment\n\nvarying vec2 v_NodeUv;\n\nuniform sampler2D positionTex;\nuniform sampler2D forceTex;\nuniform sampler2D forcePrevTex;\n\nvoid main() {\n vec2 force = texture2D(forceTex, v_NodeUv).rg;\n vec2 forcePrev = texture2D(forcePrevTex, v_NodeUv).rg;\n\n float mass = texture2D(positionTex, v_NodeUv).z;\n float swing = length(force - forcePrev) * mass;\n float traction = length(force + forcePrev) * 0.5 * mass;\n\n gl_FragColor = vec4(swing, traction, 0.0, 0.0);\n}\n@end\n\n@export ecgl.forceAtlas2.calcGlobalSpeed\n\nuniform sampler2D globalSpeedPrevTex;\nuniform sampler2D weightedSumTex;\nuniform float jitterTolerence;\n\nvoid main() {\n vec2 weightedSum = texture2D(weightedSumTex, vec2(0.5)).xy;\n float prevGlobalSpeed = texture2D(globalSpeedPrevTex, vec2(0.5)).x;\n float globalSpeed = jitterTolerence * jitterTolerence\n * weightedSum.y / weightedSum.x;\n if (prevGlobalSpeed > 0.0) {\n globalSpeed = min(globalSpeed / prevGlobalSpeed, 1.5) * prevGlobalSpeed;\n }\n gl_FragColor = vec4(globalSpeed, 0.0, 0.0, 1.0);\n}\n@end\n\n@export ecgl.forceAtlas2.updatePosition\n\nuniform sampler2D forceTex;\nuniform sampler2D forcePrevTex;\nuniform sampler2D positionTex;\nuniform sampler2D globalSpeedTex;\n\nvarying vec2 v_Texcoord;\n\nvoid main() {\n vec2 force = texture2D(forceTex, v_Texcoord).xy;\n vec2 forcePrev = texture2D(forcePrevTex, v_Texcoord).xy;\n vec4 node = texture2D(positionTex, v_Texcoord);\n\n float globalSpeed = texture2D(globalSpeedTex, vec2(0.5)).r;\n float swing = length(force - forcePrev);\n float speed = 0.1 * globalSpeed / (0.1 + globalSpeed * sqrt(swing));\n\n float df = length(force);\n if (df > 0.0) {\n speed = min(df * speed, 10.0) / df;\n\n gl_FragColor = vec4(node.xy + speed * force, node.zw);\n }\n else {\n gl_FragColor = node;\n }\n}\n@end\n\n@export ecgl.forceAtlas2.edges.vertex\nuniform mat4 worldViewProjection : WORLDVIEWPROJECTION;\n\nattribute vec2 node;\nattribute vec4 a_Color : COLOR;\nvarying vec4 v_Color;\n\nuniform sampler2D positionTex;\n\nvoid main()\n{\n gl_Position = worldViewProjection * vec4(\n texture2D(positionTex, node).xy, -10.0, 1.0\n );\n v_Color = a_Color;\n}\n@end\n\n@export ecgl.forceAtlas2.edges.fragment\nuniform vec4 color : [1.0, 1.0, 1.0, 1.0];\nvarying vec4 v_Color;\nvoid main() {\n gl_FragColor = color * v_Color;\n}\n@end");var Ad={repulsionByDegree:!0,linLogMode:!1,strongGravityMode:!1,gravity:1,scaling:1,edgeWeightInfluence:1,jitterTolerence:.1,preventOverlap:!1,dissuadeHubs:!1,gravityCenter:null};function Cd(t){var e={type:ia.Texture.FLOAT,minFilter:ia.Texture.NEAREST,magFilter:ia.Texture.NEAREST};this._positionSourceTex=new ia.Texture2D(e),this._positionSourceTex.flipY=!1,this._positionTex=new ia.Texture2D(e),this._positionPrevTex=new ia.Texture2D(e),this._forceTex=new ia.Texture2D(e),this._forcePrevTex=new ia.Texture2D(e),this._weightedSumTex=new ia.Texture2D(e),this._weightedSumTex.width=this._weightedSumTex.height=1,this._globalSpeedTex=new ia.Texture2D(e),this._globalSpeedPrevTex=new ia.Texture2D(e),this._globalSpeedTex.width=this._globalSpeedTex.height=1,this._globalSpeedPrevTex.width=this._globalSpeedPrevTex.height=1,this._nodeRepulsionPass=new lo({fragment:ia.Shader.source("ecgl.forceAtlas2.updateNodeRepulsion")}),this._positionPass=new lo({fragment:ia.Shader.source("ecgl.forceAtlas2.updatePosition")}),this._globalSpeedPass=new lo({fragment:ia.Shader.source("ecgl.forceAtlas2.calcGlobalSpeed")}),this._copyPass=new lo({fragment:ia.Shader.source("clay.compositor.output")});var n=function(t){t.blendEquation(t.FUNC_ADD),t.blendFunc(t.ONE,t.ONE)};this._edgeForceMesh=new ia.Mesh({geometry:new ia.Geometry({attributes:{node1:new ia.Geometry.Attribute("node1","float",2),node2:new ia.Geometry.Attribute("node2","float",2),weight:new ia.Geometry.Attribute("weight","float",1)},dynamic:!0,mainAttribute:"node1"}),material:new ia.Material({transparent:!0,shader:ia.createShader("ecgl.forceAtlas2.updateEdgeAttraction"),blend:n,depthMask:!1,depthText:!1}),mode:ia.Mesh.POINTS}),this._weightedSumMesh=new ia.Mesh({geometry:new ia.Geometry({attributes:{node:new ia.Geometry.Attribute("node","float",2)},dynamic:!0,mainAttribute:"node"}),material:new ia.Material({transparent:!0,shader:ia.createShader("ecgl.forceAtlas2.calcWeightedSum"),blend:n,depthMask:!1,depthText:!1}),mode:ia.Mesh.POINTS}),this._framebuffer=new Ir({depthBuffer:!1}),this._dummyCamera=new ia.OrthographicCamera({left:-1,right:1,top:1,bottom:-1,near:0,far:100}),this._globalSpeed=0}Cd.prototype.updateOption=function(t){for(var e in Ad)this[e]=Ad[e];var n=this._nodes.length;if(this.jitterTolerence=n>5e4?10:n>5e3?1:.1,this.scaling=n>100?2:10,t)for(var e in Ad)null!=t[e]&&(this[e]=t[e]);if(this.repulsionByDegree)for(var i=this._positionSourceTex.pixels,r=0;r<this._nodes.length;r++)i[4*r+2]=(this._nodes[r].degree||0)+1},Cd.prototype._updateGravityCenter=function(t){var e=this._nodes,n=this._edges;if(this.gravityCenter)this._gravityCenter=this.gravityCenter;else{for(var i=[1/0,1/0],r=[-1/0,-1/0],o=0;o<e.length;o++)i[0]=Math.min(e[o].x,i[0]),i[1]=Math.min(e[o].y,i[1]),r[0]=Math.max(e[o].x,r[0]),r[1]=Math.max(e[o].y,r[1]);this._gravityCenter=[.5*(i[0]+r[0]),.5*(i[1]+r[1])]}for(o=0;o<n.length;o++){var a=n[o].node1,s=n[o].node2;e[a].degree=(e[a].degree||0)+1,e[s].degree=(e[s].degree||0)+1}},Cd.prototype.initData=function(t,e){this._nodes=t,this._edges=e,this._updateGravityCenter();var n=Math.ceil(Math.sqrt(t.length)),i=n,r=new Float32Array(n*i*4);this._resize(n,i);for(var o=0,a=0;a<t.length;a++){var s=t[a];r[o++]=s.x||0,r[o++]=s.y||0,r[o++]=s.mass||1,r[o++]=s.size||1}this._positionSourceTex.pixels=r;var l=this._edgeForceMesh.geometry,h=e.length;l.attributes.node1.init(2*h),l.attributes.node2.init(2*h),l.attributes.weight.init(2*h);var c=[];for(a=0;a<e.length;a++){var u=l.attributes,d=e[a].weight;null==d&&(d=1),u.node1.set(a,this.getNodeUV(e[a].node1,c)),u.node2.set(a,this.getNodeUV(e[a].node2,c)),u.weight.set(a,d),u.node1.set(a+h,this.getNodeUV(e[a].node2,c)),u.node2.set(a+h,this.getNodeUV(e[a].node1,c)),u.weight.set(a+h,d)}var p=this._weightedSumMesh.geometry;p.attributes.node.init(t.length);for(a=0;a<t.length;a++)p.attributes.node.set(a,this.getNodeUV(a,c));l.dirty(),p.dirty(),this._nodeRepulsionPass.material.define("fragment","NODE_COUNT",t.length),this._nodeRepulsionPass.material.setUniform("textureSize",[n,i]),this._inited=!1,this._frame=0},Cd.prototype.getNodes=function(){return this._nodes},Cd.prototype.getEdges=function(){return this._edges},Cd.prototype.step=function(t){this._inited||(this._initFromSource(t),this._inited=!0),this._frame++,this._framebuffer.attach(this._forceTex),this._framebuffer.bind(t);var e=this._nodeRepulsionPass;e.setUniform("strongGravityMode",this.strongGravityMode),e.setUniform("gravity",this.gravity),e.setUniform("gravityCenter",this._gravityCenter),e.setUniform("scaling",this.scaling),e.setUniform("preventOverlap",this.preventOverlap),e.setUniform("positionTex",this._positionPrevTex),e.render(t);var n=this._edgeForceMesh;n.material.set("linLogMode",this.linLogMode),n.material.set("edgeWeightInfluence",this.edgeWeightInfluence),n.material.set("preventOverlap",this.preventOverlap),n.material.set("positionTex",this._positionPrevTex),t.gl.enable(t.gl.BLEND),t.renderPass([n],this._dummyCamera),this._framebuffer.attach(this._weightedSumTex),t.gl.clearColor(0,0,0,0),t.gl.clear(t.gl.COLOR_BUFFER_BIT),t.gl.enable(t.gl.BLEND);var i=this._weightedSumMesh;i.material.set("positionTex",this._positionPrevTex),i.material.set("forceTex",this._forceTex),i.material.set("forcePrevTex",this._forcePrevTex),t.renderPass([i],this._dummyCamera),this._framebuffer.attach(this._globalSpeedTex);var r=this._globalSpeedPass;r.setUniform("globalSpeedPrevTex",this._globalSpeedPrevTex),r.setUniform("weightedSumTex",this._weightedSumTex),r.setUniform("jitterTolerence",this.jitterTolerence),t.gl.disable(t.gl.BLEND),r.render(t);var o=this._positionPass;this._framebuffer.attach(this._positionTex),o.setUniform("globalSpeedTex",this._globalSpeedTex),o.setUniform("positionTex",this._positionPrevTex),o.setUniform("forceTex",this._forceTex),o.setUniform("forcePrevTex",this._forcePrevTex),o.render(t),this._framebuffer.unbind(t),this._swapTexture()},Cd.prototype.update=function(t,e,n){null==e&&(e=1),e=Math.max(e,1);for(var i=0;i<e;i++)this.step(t);n&&n()},Cd.prototype.getNodePositionTexture=function(){return this._inited?this._positionPrevTex:this._positionSourceTex},Cd.prototype.getNodeUV=function(t,e){e=e||[];var n=this._positionTex.width,i=this._positionTex.height;return e[0]=t%n/(n-1),e[1]=Math.floor(t/n)/(i-1)||0,e},Cd.prototype.getNodePosition=function(t,e){var n=this._positionArr,i=this._positionTex.width,r=this._positionTex.height,o=i*r;n&&n.length===4*o||(n=this._positionArr=new Float32Array(4*o)),this._framebuffer.bind(t),this._framebuffer.attach(this._positionPrevTex),t.gl.readPixels(0,0,i,r,t.gl.RGBA,t.gl.FLOAT,n),this._framebuffer.unbind(t),e||(e=new Float32Array(2*this._nodes.length));for(var a=0;a<this._nodes.length;a++)e[2*a]=n[4*a],e[2*a+1]=n[4*a+1];return e},Cd.prototype.getTextureData=function(t,e){var n=this["_"+e+"Tex"],i=n.width,r=n.height;this._framebuffer.bind(t),this._framebuffer.attach(n);var o=new Float32Array(i*r*4);return t.gl.readPixels(0,0,i,r,t.gl.RGBA,t.gl.FLOAT,o),this._framebuffer.unbind(t),o},Cd.prototype.getTextureSize=function(){return{width:this._positionTex.width,height:this._positionTex.height}},Cd.prototype.isFinished=function(t){return this._frame>t},Cd.prototype._swapTexture=function(){var t=this._positionPrevTex;this._positionPrevTex=this._positionTex,this._positionTex=t;t=this._forcePrevTex;this._forcePrevTex=this._forceTex,this._forceTex=t;t=this._globalSpeedPrevTex;this._globalSpeedPrevTex=this._globalSpeedTex,this._globalSpeedTex=t},Cd.prototype._initFromSource=function(t){this._framebuffer.attach(this._positionPrevTex),this._framebuffer.bind(t),this._copyPass.setUniform("texture",this._positionSourceTex),this._copyPass.render(t),t.gl.clearColor(0,0,0,0),this._framebuffer.attach(this._forcePrevTex),t.gl.clear(t.gl.COLOR_BUFFER_BIT),this._framebuffer.attach(this._globalSpeedPrevTex),t.gl.clear(t.gl.COLOR_BUFFER_BIT),this._framebuffer.unbind(t)},Cd.prototype._resize=function(t,e){["_positionSourceTex","_positionTex","_positionPrevTex","_forceTex","_forcePrevTex"].forEach((function(n){this[n].width=t,this[n].height=e,this[n].dirty()}),this)},Cd.prototype.dispose=function(t){this._framebuffer.dispose(t),this._copyPass.dispose(t),this._nodeRepulsionPass.dispose(t),this._positionPass.dispose(t),this._globalSpeedPass.dispose(t),this._edgeForceMesh.geometry.dispose(t),this._weightedSumMesh.geometry.dispose(t),this._positionSourceTex.dispose(t),this._positionTex.dispose(t),this._positionPrevTex.dispose(t),this._forceTex.dispose(t),this._forcePrevTex.dispose(t),this._weightedSumTex.dispose(t),this._globalSpeedTex.dispose(t),this._globalSpeedPrevTex.dispose(t)};const Id=Cd;const Ed=function(){var t=function(){return new Float32Array(2)},e=function(t,e){var n=e[0]-t[0],i=e[1]-t[1];return Math.sqrt(n*n+i*i)},n=function(t){var e=t[0],n=t[1];return Math.sqrt(e*e+n*n)},i=function(t,e,n,i){return t[0]=e[0]+n[0]*i,t[1]=e[1]+n[1]*i,t},r=function(t,e,n){return t[0]=e[0]+n[0],t[1]=e[1]+n[1],t},o=function(t,e,n){return t[0]=e[0]-n[0],t[1]=e[1]-n[1],t},a=function(t,e){return t[0]=e[0],t[1]=e[1],t},s=function(t,e,n){return t[0]=e,t[1]=n,t};function l(){this.subRegions=[],this.nSubRegions=0,this.node=null,this.mass=0,this.centerOfMass=null,this.bbox=new Float32Array(4),this.size=0}var h=l.prototype;function c(){this.position=new Float32Array(2),this.force=t(),this.forcePrev=t(),this.mass=1,this.inDegree=0,this.outDegree=0}function u(t,e){this.source=t,this.target=e,this.weight=1}function d(){this.autoSettings=!0,this.barnesHutOptimize=!0,this.barnesHutTheta=1.5,this.repulsionByDegree=!0,this.linLogMode=!1,this.strongGravityMode=!1,this.gravity=1,this.scaling=1,this.edgeWeightInfluence=1,this.jitterTolerence=.1,this.preventOverlap=!1,this.dissuadeHubs=!1,this.rootRegion=new l,this.rootRegion.centerOfMass=t(),this.nodes=[],this.edges=[],this.bbox=new Float32Array(4),this.gravityCenter=null,this._massArr=null,this._swingingArr=null,this._sizeArr=null,this._globalSpeed=0}h.beforeUpdate=function(){for(var t=0;t<this.nSubRegions;t++)this.subRegions[t].beforeUpdate();this.mass=0,this.centerOfMass&&(this.centerOfMass[0]=0,this.centerOfMass[1]=0),this.nSubRegions=0,this.node=null},h.afterUpdate=function(){this.subRegions.length=this.nSubRegions;for(var t=0;t<this.nSubRegions;t++)this.subRegions[t].afterUpdate()},h.addNode=function(t){if(0===this.nSubRegions){if(null==this.node)return void(this.node=t);this._addNodeToSubRegion(this.node),this.node=null}this._addNodeToSubRegion(t),this._updateCenterOfMass(t)},h.findSubRegion=function(t,e){for(var n=0;n<this.nSubRegions;n++){var i=this.subRegions[n];if(i.contain(t,e))return i}},h.contain=function(t,e){return this.bbox[0]<=t&&this.bbox[2]>=t&&this.bbox[1]<=e&&this.bbox[3]>=e},h.setBBox=function(t,e,n,i){this.bbox[0]=t,this.bbox[1]=e,this.bbox[2]=n,this.bbox[3]=i,this.size=(n-t+i-e)/2},h._newSubRegion=function(){var t=this.subRegions[this.nSubRegions];return t||(t=new l,this.subRegions[this.nSubRegions]=t),this.nSubRegions++,t},h._addNodeToSubRegion=function(t){var e=this.findSubRegion(t.position[0],t.position[1]),n=this.bbox;if(!e){var i=(n[0]+n[2])/2,r=(n[1]+n[3])/2,o=(n[2]-n[0])/2,a=(n[3]-n[1])/2,s=t.position[0]>=i?1:0,l=t.position[1]>=r?1:0;(e=this._newSubRegion()).setBBox(s*o+n[0],l*a+n[1],(s+1)*o+n[0],(l+1)*a+n[1])}e.addNode(t)},h._updateCenterOfMass=function(t){null==this.centerOfMass&&(this.centerOfMass=new Float32Array(2));var e=this.centerOfMass[0]*this.mass,n=this.centerOfMass[1]*this.mass;e+=t.position[0]*t.mass,n+=t.position[1]*t.mass,this.mass+=t.mass,this.centerOfMass[0]=e/this.mass,this.centerOfMass[1]=n/this.mass};var p=d.prototype;p.initNodes=function(t,e,n){var i=e.length;this.nodes.length=0;for(var r=void 0!==n,o=0;o<i;o++){var a=new c;a.position[0]=t[2*o],a.position[1]=t[2*o+1],a.mass=e[o],r&&(a.size=n[o]),this.nodes.push(a)}this._massArr=e,this._swingingArr=new Float32Array(i),r&&(this._sizeArr=n)},p.initEdges=function(t,e){var n=t.length/2;this.edges.length=0;for(var i=0;i<n;i++){var r=t[2*i],o=t[2*i+1],a=this.nodes[r],s=this.nodes[o];if(!a||!s)return void console.error("Node not exists, try initNodes before initEdges");a.outDegree++,s.inDegree++;var l=new u(a,s);e&&(l.weight=e[i]),this.edges.push(l)}},p.updateSettings=function(){if(this.repulsionByDegree)for(var t=0;t<this.nodes.length;t++){(e=this.nodes[t]).mass=e.inDegree+e.outDegree+1}else for(t=0;t<this.nodes.length;t++){var e;(e=this.nodes[t]).mass=this._massArr[t]}},p.update=function(){var o=this.nodes.length;if(this.updateSettings(),this.updateBBox(),this.barnesHutOptimize){this.rootRegion.setBBox(this.bbox[0],this.bbox[1],this.bbox[2],this.bbox[3]),this.rootRegion.beforeUpdate();for(var l=0;l<o;l++)this.rootRegion.addNode(this.nodes[l]);this.rootRegion.afterUpdate()}for(l=0;l<o;l++){var h=this.nodes[l];a(h.forcePrev,h.force),s(h.force,0,0)}for(l=0;l<o;l++){var c=this.nodes[l];if(this.barnesHutOptimize)this.applyRegionToNodeRepulsion(this.rootRegion,c);else for(var u=l+1;u<o;u++){var d=this.nodes[u];this.applyNodeToNodeRepulsion(c,d,!1)}this.gravity>0&&(this.strongGravityMode?this.applyNodeStrongGravity(c):this.applyNodeGravity(c))}for(l=0;l<this.edges.length;l++)this.applyEdgeAttraction(this.edges[l]);var p=0,f=0,g=t();for(l=0;l<o;l++){h=this.nodes[l];p+=(v=e(h.force,h.forcePrev))*h.mass,r(g,h.force,h.forcePrev),f+=.5*n(g)*h.mass,this._swingingArr[l]=v}var m=this.jitterTolerence*this.jitterTolerence*f/p;this._globalSpeed>0&&(m=Math.min(m/this._globalSpeed,1.5)*this._globalSpeed),this._globalSpeed=m;for(l=0;l<o;l++){h=this.nodes[l];var v=this._swingingArr[l],y=.1*m/(1+m*Math.sqrt(v)),_=n(h.force);_>0&&(y=Math.min(_*y,10)/_,i(h.position,h.position,h.force,y))}},p.applyRegionToNodeRepulsion=function(){var e=t();return function(t,n){if(t.node)this.applyNodeToNodeRepulsion(t.node,n,!0);else{o(e,n.position,t.centerOfMass);var r=e[0]*e[0]+e[1]*e[1];if(r>this.barnesHutTheta*t.size*t.size){var a=this.scaling*n.mass*t.mass/r;i(n.force,n.force,e,a)}else for(var s=0;s<t.nSubRegions;s++)this.applyRegionToNodeRepulsion(t.subRegions[s],n)}}}(),p.applyNodeToNodeRepulsion=function(){var e=t();return function(t,n,r){if(t!=n){o(e,t.position,n.position);var a=e[0]*e[0]+e[1]*e[1];if(0!==a){var s;if(this.preventOverlap){var l=Math.sqrt(a);if((l=l-t.size-n.size)>0)s=this.scaling*t.mass*n.mass/(l*l);else{if(!(l<0))return;s=100*this.scaling*t.mass*n.mass}}else s=this.scaling*t.mass*n.mass/a;i(t.force,t.force,e,s),i(n.force,n.force,e,-s)}}}}(),p.applyEdgeAttraction=function(){var e=t();return function(t){var r=t.source,a=t.target;o(e,r.position,a.position);var s,l,h=n(e);s=0===this.edgeWeightInfluence?1:1===this.edgeWeightInfluence?t.weight:Math.pow(t.weight,this.edgeWeightInfluence),this.preventOverlap&&(h=h-r.size-a.size)<=0||(l=this.linLogMode?-s*Math.log(h+1)/(h+1):-s,i(r.force,r.force,e,l),i(a.force,a.force,e,-l))}}(),p.applyNodeGravity=function(){var e=t();return function(t){o(e,this.gravityCenter,t.position);var r=n(e);i(t.force,t.force,e,this.gravity*t.mass/(r+1))}}(),p.applyNodeStrongGravity=function(){var e=t();return function(t){o(e,this.gravityCenter,t.position),i(t.force,t.force,e,this.gravity*t.mass)}}(),p.updateBBox=function(){for(var t=1/0,e=1/0,n=-1/0,i=-1/0,r=0;r<this.nodes.length;r++){var o=this.nodes[r].position;t=Math.min(t,o[0]),e=Math.min(e,o[1]),n=Math.max(n,o[0]),i=Math.max(i,o[1])}this.bbox[0]=t,this.bbox[1]=e,this.bbox[2]=n,this.bbox[3]=i},p.getGlobalSpeed=function(){return this._globalSpeed};var f=null;self.onmessage=function(t){switch(t.data.cmd){case"init":(f=new d).initNodes(t.data.nodesPosition,t.data.nodesMass,t.data.nodesSize),f.initEdges(t.data.edges,t.data.edgesWeight);break;case"updateConfig":if(f)for(var e in t.data.config)f[e]=t.data.config[e];break;case"update":var n=t.data.steps;if(f){for(var i=0;i<n;i++)f.update();var r=f.nodes.length,o=new Float32Array(2*r);for(i=0;i<r;i++){var a=f.nodes[i];o[2*i]=a.position[0],o[2*i+1]=a.position[1]}self.postMessage({buffer:o.buffer,globalSpeed:f.getGlobalSpeed()},[o.buffer])}else{var s=new Float32Array;self.postMessage({buffer:s.buffer,globalSpeed:f.getGlobalSpeed()},[s.buffer])}}}};var kd=Ed.toString();kd=kd.slice(kd.indexOf("{")+1,kd.lastIndexOf("}"));var Ld={barnesHutOptimize:!0,barnesHutTheta:1.5,repulsionByDegree:!0,linLogMode:!1,strongGravityMode:!1,gravity:1,scaling:1,edgeWeightInfluence:1,jitterTolerence:.1,preventOverlap:!1,dissuadeHubs:!1,gravityCenter:null},Dd=function(t){for(var e in Ld)this[e]=Ld[e];if(t)for(var e in t)this[e]=t[e];this._nodes=[],this._edges=[],this._disposed=!1,this._positionTex=new fi({type:ai.FLOAT,flipY:!1,minFilter:ai.NEAREST,magFilter:ai.NEAREST})};Dd.prototype.initData=function(t,e){var n=new Blob([kd]),i=window.URL.createObjectURL(n);this._worker=new Worker(i),this._worker.onmessage=this._$onupdate.bind(this),this._nodes=t,this._edges=e,this._frame=0;for(var r=t.length,o=e.length,a=new Float32Array(2*r),s=new Float32Array(r),l=new Float32Array(r),h=new Float32Array(2*o),c=new Float32Array(o),u=0;u<t.length;u++){var d=t[u];a[2*u]=d.x,a[2*u+1]=d.y,s[u]=null==d.mass?1:d.mass,l[u]=null==d.size?1:d.size}for(u=0;u<e.length;u++){var p=e[u],f=p.node1,g=p.node2;h[2*u]=f,h[2*u+1]=g,c[u]=null==p.weight?1:p.weight}var m=Math.ceil(Math.sqrt(t.length)),v=m,y=new Float32Array(m*v*4),_=this._positionTex;_.width=m,_.height=v,_.pixels=y,this._worker.postMessage({cmd:"init",nodesPosition:a,nodesMass:s,nodesSize:l,edges:h,edgesWeight:c}),this._globalSpeed=1/0},Dd.prototype.updateOption=function(t){var e={};for(var n in Ld)e[n]=Ld[n];var i=this._nodes,r=this._edges,o=i.length;if(e.jitterTolerence=o>5e4?10:o>5e3?1:.1,e.scaling=o>100?2:10,e.barnesHutOptimize=o>1e3,t)for(var n in Ld)null!=t[n]&&(e[n]=t[n]);if(!e.gravityCenter){for(var a=[1/0,1/0],s=[-1/0,-1/0],l=0;l<i.length;l++)a[0]=Math.min(i[l].x,a[0]),a[1]=Math.min(i[l].y,a[1]),s[0]=Math.max(i[l].x,s[0]),s[1]=Math.max(i[l].y,s[1]);e.gravityCenter=[.5*(a[0]+s[0]),.5*(a[1]+s[1])]}for(l=0;l<r.length;l++){var h=r[l].node1,c=r[l].node2;i[h].degree=(i[h].degree||0)+1,i[c].degree=(i[c].degree||0)+1}this._worker&&this._worker.postMessage({cmd:"updateConfig",config:e})},Dd.prototype.update=function(t,e,n){null==e&&(e=1),e=Math.max(e,1),this._frame+=e,this._onupdate=n,this._worker&&this._worker.postMessage({cmd:"update",steps:Math.round(e)})},Dd.prototype._$onupdate=function(t){if(!this._disposed){var e=new Float32Array(t.data.buffer);this._globalSpeed=t.data.globalSpeed,this._positionArr=e,this._updateTexture(e),this._onupdate&&this._onupdate()}},Dd.prototype.getNodePositionTexture=function(){return this._positionTex},Dd.prototype.getNodeUV=function(t,e){e=e||[];var n=this._positionTex.width,i=this._positionTex.height;return e[0]=t%n/(n-1),e[1]=Math.floor(t/n)/(i-1),e},Dd.prototype.getNodes=function(){return this._nodes},Dd.prototype.getEdges=function(){return this._edges},Dd.prototype.isFinished=function(t){return this._frame>t},Dd.prototype.getNodePosition=function(t,e){if(e||(e=new Float32Array(2*this._nodes.length)),this._positionArr)for(var n=0;n<this._positionArr.length;n++)e[n]=this._positionArr[n];return e},Dd.prototype._updateTexture=function(t){for(var e=this._positionTex.pixels,n=0,i=0;i<t.length;)e[n++]=t[i++],e[n++]=t[i++],e[n++]=1,e[n++]=1;this._positionTex.dirty()},Dd.prototype.dispose=function(t){this._disposed=!0,this._worker=null};const Pd=Dd;var Rd=y.extend((function(){return{zr:null,viewGL:null,minZoom:.2,maxZoom:5,_needsUpdate:!1,_dx:0,_dy:0,_zoom:1}}),(function(){this._mouseDownHandler=this._mouseDownHandler.bind(this),this._mouseWheelHandler=this._mouseWheelHandler.bind(this),this._mouseMoveHandler=this._mouseMoveHandler.bind(this),this._mouseUpHandler=this._mouseUpHandler.bind(this),this._update=this._update.bind(this)}),{init:function(){var t=this.zr;t.on("mousedown",this._mouseDownHandler),t.on("mousewheel",this._mouseWheelHandler),t.on("globalout",this._mouseUpHandler),t.animation.on("frame",this._update)},setTarget:function(t){this._target=t},setZoom:function(t){this._zoom=Math.max(Math.min(t,this.maxZoom),this.minZoom),this._needsUpdate=!0},setOffset:function(t){this._dx=t[0],this._dy=t[1],this._needsUpdate=!0},getZoom:function(){return this._zoom},getOffset:function(){return[this._dx,this._dy]},_update:function(){if(this._target&&this._needsUpdate){var t=this._target,e=this._zoom;t.position.x=this._dx,t.position.y=this._dy,t.scale.set(e,e,e),this.zr.refresh(),this._needsUpdate=!1,this.trigger("update")}},_mouseDownHandler:function(t){if(!t.target){var e=t.offsetX,n=t.offsetY;if(!this.viewGL||this.viewGL.containPoint(e,n)){this.zr.on("mousemove",this._mouseMoveHandler),this.zr.on("mouseup",this._mouseUpHandler);var i=this._convertPos(e,n);this._x=i.x,this._y=i.y}}},_convertPos:function(t,e){var n=this.viewGL.camera,i=this.viewGL.viewport;return{x:(t-i.x)/i.width*(n.right-n.left)+n.left,y:(e-i.y)/i.height*(n.bottom-n.top)+n.top}},_mouseMoveHandler:function(t){var e=this._convertPos(t.offsetX,t.offsetY);this._dx+=e.x-this._x,this._dy+=e.y-this._y,this._x=e.x,this._y=e.y,this._needsUpdate=!0},_mouseUpHandler:function(t){this.zr.off("mousemove",this._mouseMoveHandler),this.zr.off("mouseup",this._mouseUpHandler)},_mouseWheelHandler:function(t){var e=(t=t.event).wheelDelta||-t.detail;if(0!==e){var n=t.offsetX,i=t.offsetY;if(!this.viewGL||this.viewGL.containPoint(n,i)){var r=e>0?1.1:.9,o=Math.max(Math.min(this._zoom*r,this.maxZoom),this.minZoom);r=o/this._zoom;var a=this._convertPos(n,i),s=(a.x-this._dx)*(r-1),l=(a.y-this._dy)*(r-1);this._dx-=s,this._dy-=l,this._zoom=o,this._needsUpdate=!0}}},dispose:function(){var t=this.zr;t.off("mousedown",this._mouseDownHandler),t.off("mousemove",this._mouseMoveHandler),t.off("mouseup",this._mouseUpHandler),t.off("mousewheel",this._mouseWheelHandler),t.off("globalout",this._mouseUpHandler),t.animation.off("frame",this._update)}});const Od=Rd;var Nd=Ea.vec2;ia.Shader.import("@export ecgl.lines2D.vertex\n\nuniform mat4 worldViewProjection : WORLDVIEWPROJECTION;\n\nattribute vec2 position: POSITION;\nattribute vec4 a_Color : COLOR;\nvarying vec4 v_Color;\n\n#ifdef POSITIONTEXTURE_ENABLED\nuniform sampler2D positionTexture;\n#endif\n\nvoid main()\n{\n gl_Position = worldViewProjection * vec4(position, -10.0, 1.0);\n\n v_Color = a_Color;\n}\n\n@end\n\n@export ecgl.lines2D.fragment\n\nuniform vec4 color : [1.0, 1.0, 1.0, 1.0];\n\nvarying vec4 v_Color;\n\nvoid main()\n{\n gl_FragColor = color * v_Color;\n}\n@end\n\n\n@export ecgl.meshLines2D.vertex\n\nattribute vec2 position: POSITION;\nattribute vec2 normal;\nattribute float offset;\nattribute vec4 a_Color : COLOR;\n\nuniform mat4 worldViewProjection : WORLDVIEWPROJECTION;\nuniform vec4 viewport : VIEWPORT;\n\nvarying vec4 v_Color;\nvarying float v_Miter;\n\nvoid main()\n{\n vec4 p2 = worldViewProjection * vec4(position + normal, -10.0, 1.0);\n gl_Position = worldViewProjection * vec4(position, -10.0, 1.0);\n\n p2.xy /= p2.w;\n gl_Position.xy /= gl_Position.w;\n\n vec2 N = normalize(p2.xy - gl_Position.xy);\n gl_Position.xy += N * offset / viewport.zw * 2.0;\n\n gl_Position.xy *= gl_Position.w;\n\n v_Color = a_Color;\n}\n@end\n\n\n@export ecgl.meshLines2D.fragment\n\nuniform vec4 color : [1.0, 1.0, 1.0, 1.0];\n\nvarying vec4 v_Color;\nvarying float v_Miter;\n\nvoid main()\n{\n gl_FragColor = color * v_Color;\n}\n\n@end");var Fd=1;const Bd=i.OZ.extend({type:"graphGL",__ecgl__:!0,init:function(t,e){this.groupGL=new ia.Node,this.viewGL=new wl("orthographic"),this.viewGL.camera.left=this.viewGL.camera.right=0,this.viewGL.add(this.groupGL),this._pointsBuilder=new Eu(!0,e),this._forceEdgesMesh=new ia.Mesh({material:new ia.Material({shader:ia.createShader("ecgl.forceAtlas2.edges"),transparent:!0,depthMask:!1,depthTest:!1}),$ignorePicking:!0,geometry:new ia.Geometry({attributes:{node:new ia.Geometry.Attribute("node","float",2),color:new ia.Geometry.Attribute("color","float",4,"COLOR")},dynamic:!0,mainAttribute:"node"}),renderOrder:-1,mode:ia.Mesh.LINES}),this._edgesMesh=new ia.Mesh({material:new ia.Material({shader:ia.createShader("ecgl.meshLines2D"),transparent:!0,depthMask:!1,depthTest:!1}),$ignorePicking:!0,geometry:new Md({useNativeLine:!1,dynamic:!0}),renderOrder:-1,culling:!1}),this._layoutId=0,this._control=new Od({zr:e.getZr(),viewGL:this.viewGL}),this._control.setTarget(this.groupGL),this._control.init(),this._clickHandler=this._clickHandler.bind(this)},render:function(t,e,n){this.groupGL.add(this._pointsBuilder.rootNode),this._model=t,this._api=n,this._initLayout(t,e,n),this._pointsBuilder.update(t,e,n),this._forceLayoutInstance instanceof Id||this.groupGL.remove(this._forceEdgesMesh),this._updateCamera(t,n),this._control.off("update"),this._control.on("update",(function(){n.dispatchAction({type:"graphGLRoam",seriesId:t.id,zoom:this._control.getZoom(),offset:this._control.getOffset()}),this._pointsBuilder.updateView(this.viewGL.camera)}),this),this._control.setZoom(wo.firstNotNull(t.get("zoom"),1)),this._control.setOffset(t.get("offset")||[0,0]);var i=this._pointsBuilder.getPointsMesh();if(i.off("mousemove",this._mousemoveHandler),i.off("mouseout",this._mouseOutHandler,this),n.getZr().off("click",this._clickHandler),this._pointsBuilder.highlightOnMouseover=!0,t.get("focusNodeAdjacency")){var r=t.get("focusNodeAdjacencyOn");"click"===r?n.getZr().on("click",this._clickHandler):"mouseover"===r&&(i.on("mousemove",this._mousemoveHandler,this),i.on("mouseout",this._mouseOutHandler,this),this._pointsBuilder.highlightOnMouseover=!1)}this._lastMouseOverDataIndex=-1},_clickHandler:function(t){if(!this._layouting){var e=this._pointsBuilder.getPointsMesh().dataIndex;e>=0?this._api.dispatchAction({type:"graphGLFocusNodeAdjacency",seriesId:this._model.id,dataIndex:e}):this._api.dispatchAction({type:"graphGLUnfocusNodeAdjacency",seriesId:this._model.id})}},_mousemoveHandler:function(t){if(!this._layouting){var e=this._pointsBuilder.getPointsMesh().dataIndex;e>=0?e!==this._lastMouseOverDataIndex&&this._api.dispatchAction({type:"graphGLFocusNodeAdjacency",seriesId:this._model.id,dataIndex:e}):this._mouseOutHandler(t),this._lastMouseOverDataIndex=e}},_mouseOutHandler:function(t){this._layouting||(this._api.dispatchAction({type:"graphGLUnfocusNodeAdjacency",seriesId:this._model.id}),this._lastMouseOverDataIndex=-1)},_updateForceEdgesGeometry:function(t,e){var n=this._forceEdgesMesh.geometry,i=e.getEdgeData(),r=0,o=this._forceLayoutInstance,a=2*i.count();n.attributes.node.init(a),n.attributes.color.init(a),i.each((function(e){var a=t[e];n.attributes.node.set(r,o.getNodeUV(a.node1)),n.attributes.node.set(r+1,o.getNodeUV(a.node2));var s=bh(i,a.dataIndex),l=ia.parseColor(s);l[3]*=wo.firstNotNull(wh(i,a.dataIndex),1),n.attributes.color.set(r,l),n.attributes.color.set(r+1,l),r+=2})),n.dirty()},_updateMeshLinesGeometry:function(){var t=this._model.getEdgeData(),e=this._edgesMesh.geometry,n=(t=this._model.getEdgeData(),this._model.getData().getLayout("points"));e.resetOffset(),e.setVertexCount(t.count()*e.getLineVertexCount()),e.setTriangleCount(t.count()*e.getLineTriangleCount());var i=[],r=[],o=["lineStyle","width"];this._originalEdgeColors=new Float32Array(4*t.count()),this._edgeIndicesMap=new Float32Array(t.count()),t.each((function(a){var s=t.graph.getEdgeByIndex(a),l=2*s.node1.dataIndex,h=2*s.node2.dataIndex;i[0]=n[l],i[1]=n[l+1],r[0]=n[h],r[1]=n[h+1];var c=bh(t,s.dataIndex),u=ia.parseColor(c);u[3]*=wo.firstNotNull(wh(t,s.dataIndex),1);var d=t.getItemModel(s.dataIndex),p=wo.firstNotNull(d.get(o),1)*this._api.getDevicePixelRatio();e.addLine(i,r,u,p);for(var f=0;f<4;f++)this._originalEdgeColors[4*s.dataIndex+f]=u[f];this._edgeIndicesMap[s.dataIndex]=a}),this),e.dirty()},_updateForceNodesGeometry:function(t){for(var e=this._pointsBuilder.getPointsMesh(),n=[],i=0;i<t.count();i++)this._forceLayoutInstance.getNodeUV(i,n),e.geometry.attributes.position.set(i,n);e.geometry.dirty("position")},_initLayout:function(t,e,n){var r=t.get("layout"),o=t.getGraph(),a=t.getBoxLayoutParams(),s=(0,cs.dV)(a,{width:n.getWidth(),height:n.getHeight()});"force"===r&&(r="forceAtlas2"),this.stopLayout(t,e,n,{beforeLayout:!0});var l=t.getData(),h=t.getData();if("forceAtlas2"===r){var c=t.getModel("forceAtlas2"),u=this._forceLayoutInstance,d=[],p=[],f=l.getDataExtent("value"),g=h.getDataExtent("value"),m=wo.firstNotNull(c.get("edgeWeight"),1),v=wo.firstNotNull(c.get("nodeWeight"),1);"number"==typeof m&&(m=[m,m]),"number"==typeof v&&(v=[v,v]);var y=0,_={},x=new Float32Array(2*l.count());if(o.eachNode((function(t){var e,n,r=t.dataIndex,o=l.get("value",r);if(l.hasItemOption){var a=l.getItemModel(r);e=a.get("x"),n=a.get("y")}null==e&&(e=s.x+Math.random()*s.width,n=s.y+Math.random()*s.height),x[2*y]=e,x[2*y+1]=n,_[t.id]=y++;var h=i.ai.linearMap(o,f,v);isNaN(h)&&(h=isNaN(v[0])?1:v[0]),d.push({x:e,y:n,mass:h,size:l.getItemVisual(r,"symbolSize")})})),l.setLayout("points",x),o.eachEdge((function(t){var e=t.dataIndex,n=l.get("value",e),r=i.ai.linearMap(n,g,m);isNaN(r)&&(r=isNaN(m[0])?1:m[0]),p.push({node1:_[t.node1.id],node2:_[t.node2.id],weight:r,dataIndex:e})})),!u){var b=c.get("GPU");this._forceLayoutInstance&&((!b||this._forceLayoutInstance instanceof Id)&&(b||this._forceLayoutInstance instanceof Pd)||(this._forceLayoutInstanceToDispose=this._forceLayoutInstance)),u=this._forceLayoutInstance=b?new Id:new Pd}u.initData(d,p),u.updateOption(c.option),this._updateForceEdgesGeometry(u.getEdges(),t),this._updatePositionTexture(),n.dispatchAction({type:"graphGLStartLayout",from:this.uid})}else{x=new Float32Array(2*l.count()),y=0;o.eachNode((function(t){var e,n,i=t.dataIndex;if(l.hasItemOption){var r=l.getItemModel(i);e=r.get("x"),n=r.get("y")}x[y++]=e,x[y++]=n})),l.setLayout("points",x),this._updateAfterLayout(t,e,n)}},_updatePositionTexture:function(){var t=this._forceLayoutInstance.getNodePositionTexture();this._pointsBuilder.setPositionTexture(t),this._forceEdgesMesh.material.set("positionTex",t)},startLayout:function(t,e,n,i){if(!i||null==i.from||i.from===this.uid){var r=this.viewGL,o=(n=this._api,this._forceLayoutInstance),a=this._model.getData(),s=this._model.getModel("forceAtlas2");if(o&&(this.groupGL.remove(this._edgesMesh),this.groupGL.add(this._forceEdgesMesh),this._forceLayoutInstance)){this._updateForceNodesGeometry(t.getData()),this._pointsBuilder.hideLabels();var l=this,h=this._layoutId=Fd++,c=s.getShallow("maxSteps"),u=s.getShallow("steps"),d=0,p=Math.max(2*u,20),f=function(e){if(e===l._layoutId)return o.isFinished(c)?(n.dispatchAction({type:"graphGLStopLayout",from:l.uid}),void n.dispatchAction({type:"graphGLFinishLayout",points:a.getLayout("points"),from:l.uid})):void o.update(r.layer.renderer,u,(function(){l._updatePositionTexture(),(d+=u)>=p&&(l._syncNodePosition(t),d=0),n.getZr().refresh(),(0,ra.A)((function(){f(e)}))}))};(0,ra.A)((function(){l._forceLayoutInstanceToDispose&&(l._forceLayoutInstanceToDispose.dispose(r.layer.renderer),l._forceLayoutInstanceToDispose=null),f(h)})),this._layouting=!0}}},stopLayout:function(t,e,n,i){i&&null!=i.from&&i.from!==this.uid||(this._layoutId=0,this.groupGL.remove(this._forceEdgesMesh),this.groupGL.add(this._edgesMesh),this._forceLayoutInstance&&this.viewGL.layer&&(i&&i.beforeLayout||(this._syncNodePosition(t),this._updateAfterLayout(t,e,n)),this._api.getZr().refresh(),this._layouting=!1))},_syncNodePosition:function(t){var e=this._forceLayoutInstance.getNodePosition(this.viewGL.layer.renderer);t.getData().setLayout("points",e),t.setNodePosition(e)},_updateAfterLayout:function(t,e,n){this._updateMeshLinesGeometry(),this._pointsBuilder.removePositionTexture(),this._pointsBuilder.updateLayout(t,e,n),this._pointsBuilder.updateView(this.viewGL.camera),this._pointsBuilder.updateLabels(),this._pointsBuilder.showLabels()},focusNodeAdjacency:function(t,e,n,i){var r=this._model.getData();this._downplayAll();var o=i.dataIndex,a=r.graph,s=[],l=a.getNodeByIndex(o);s.push(l),l.edges.forEach((function(t){t.dataIndex<0||(t.node1!==l&&s.push(t.node1),t.node2!==l&&s.push(t.node2))}),this),this._pointsBuilder.fadeOutAll(.05),this._fadeOutEdgesAll(.05),s.forEach((function(t){this._pointsBuilder.highlight(r,t.dataIndex)}),this),this._pointsBuilder.updateLabels(s.map((function(t){return t.dataIndex})));var h=[];l.edges.forEach((function(t){t.dataIndex>=0&&(this._highlightEdge(t.dataIndex),h.push(t))}),this),this._focusNodes=s,this._focusEdges=h},unfocusNodeAdjacency:function(t,e,n,i){this._downplayAll(),this._pointsBuilder.fadeInAll(),this._fadeInEdgesAll(),this._pointsBuilder.updateLabels()},_highlightEdge:function(t){var e=this._model.getEdgeData().getItemModel(t),n=ia.parseColor(e.get("emphasis.lineStyle.color")||e.get("lineStyle.color")),i=wo.firstNotNull(e.get("emphasis.lineStyle.opacity"),e.get("lineStyle.opacity"),1);n[3]*=i,this._edgesMesh.geometry.setItemColor(this._edgeIndicesMap[t],n)},_downplayAll:function(){this._focusNodes&&this._focusNodes.forEach((function(t){this._pointsBuilder.downplay(this._model.getData(),t.dataIndex)}),this),this._focusEdges&&this._focusEdges.forEach((function(t){this._downplayEdge(t.dataIndex)}),this)},_downplayEdge:function(t){var e=this._getColor(t,[]);this._edgesMesh.geometry.setItemColor(this._edgeIndicesMap[t],e)},_setEdgeFade:function(){var t=[];return function(e,n){this._getColor(e,t),t[3]*=n,this._edgesMesh.geometry.setItemColor(this._edgeIndicesMap[e],t)}}(),_getColor:function(t,e){for(var n=0;n<4;n++)e[n]=this._originalEdgeColors[4*t+n];return e},_fadeOutEdgesAll:function(t){this._model.getData().graph.eachEdge((function(e){this._setEdgeFade(e.dataIndex,t)}),this)},_fadeInEdgesAll:function(){this._fadeOutEdgesAll(1)},_updateCamera:function(t,e){this.viewGL.setViewport(0,0,e.getWidth(),e.getHeight(),e.getDevicePixelRatio());for(var n=this.viewGL.camera,i=t.getData().getLayout("points"),r=Nd.create(1/0,1/0),o=Nd.create(-1/0,-1/0),a=[],s=0;s<i.length;)a[0]=i[s++],a[1]=i[s++],Nd.min(r,r,a),Nd.max(o,o,a);var l=(o[1]+r[1])/2,h=(o[0]+r[0])/2;if(!(h>n.left&&h<n.right&&l<n.bottom&&l>n.top)){var c=Math.max(o[0]-r[0],10),u=c/e.getWidth()*e.getHeight();c*=1.4,u*=1.4,r[0]-=.2*c,n.left=r[0],n.top=l-u/2,n.bottom=l+u/2,n.right=c+r[0],n.near=0,n.far=100}},dispose:function(){var t=this.viewGL.layer.renderer;this._forceLayoutInstance&&this._forceLayoutInstance.dispose(t),this.groupGL.removeAll(),this._layoutId=-1,this._pointsBuilder.dispose()},remove:function(){this.groupGL.removeAll(),this._control.dispose()}});function zd(t){return t instanceof Array||(t=[t,t]),t}(0,i.Yx)((function(t){function e(){}t.registerChartView(Bd),t.registerSeriesModel(bd),t.registerVisual((function(t){const e={};t.eachSeriesByType("graphGL",(function(t){var n=t.getCategoriesData(),r=t.getData(),o={};n.each((function(i){var r=n.getName(i);o["ec-"+r]=i;var a=n.getItemModel(i),s=a.getModel("itemStyle").getItemStyle();s.fill||(s.fill=t.getColorFromPalette(r,e)),n.setItemVisual(i,"style",s);var l=["symbol","symbolSize","symbolKeepAspect"];for(let t=0;t<l.length;t++){var h=a.getShallow(l[t],!0);null!=h&&n.setItemVisual(i,l[t],h)}})),n.count()&&r.each((function(t){let e=r.getItemModel(t).getShallow("category");if(null!=e){"string"==typeof e&&(e=o["ec-"+e]);var a=n.getItemVisual(e,"style"),s=r.ensureUniqueItemVisual(t,"style");i.ZS.extend(s,a);var l=["symbol","symbolSize","symbolKeepAspect"];for(let i=0;i<l.length;i++)r.setItemVisual(t,l[i],n.getItemVisual(e,l[i]))}}))}))})),t.registerVisual((function(t){t.eachSeriesByType("graphGL",(function(t){var e=t.getGraph(),n=t.getEdgeData(),r=zd(t.get("edgeSymbol")),o=zd(t.get("edgeSymbolSize"));n.setVisual("drawType","stroke"),n.setVisual("fromSymbol",r&&r[0]),n.setVisual("toSymbol",r&&r[1]),n.setVisual("fromSymbolSize",o&&o[0]),n.setVisual("toSymbolSize",o&&o[1]),n.setVisual("style",t.getModel("lineStyle").getLineStyle()),n.each((function(t){var r=n.getItemModel(t),o=e.getEdgeByIndex(t),a=zd(r.getShallow("symbol",!0)),s=zd(r.getShallow("symbolSize",!0)),l=r.getModel("lineStyle").getLineStyle(),h=n.ensureUniqueItemVisual(t,"style");switch(i.ZS.extend(h,l),h.stroke){case"source":var c=o.node1.getVisual("style");h.stroke=c&&c.fill;break;case"target":c=o.node2.getVisual("style");h.stroke=c&&c.fill}a[0]&&o.setVisual("fromSymbol",a[0]),a[1]&&o.setVisual("toSymbol",a[1]),s[0]&&o.setVisual("fromSymbolSize",s[0]),s[1]&&o.setVisual("toSymbolSize",s[1])}))}))})),t.registerAction({type:"graphGLRoam",event:"graphglroam",update:"series.graphGL:roam"},(function(t,e){e.eachComponent({mainType:"series",query:t},(function(e){e.setView(t)}))})),t.registerAction({type:"graphGLStartLayout",event:"graphgllayoutstarted",update:"series.graphGL:startLayout"},e),t.registerAction({type:"graphGLStopLayout",event:"graphgllayoutstopped",update:"series.graphGL:stopLayout"},e),t.registerAction({type:"graphGLFocusNodeAdjacency",event:"graphGLFocusNodeAdjacency",update:"series.graphGL:focusNodeAdjacency"},e),t.registerAction({type:"graphGLUnfocusNodeAdjacency",event:"graphGLUnfocusNodeAdjacency",update:"series.graphGL:unfocusNodeAdjacency"},e)}));const Gd=i.rP.extend({type:"series.flowGL",dependencies:["geo","grid","bmap"],visualStyleAccessPath:"itemStyle",getInitialData:function(t,e){var n=this.get("coordinateSystem"),r="geo"===n?["lng","lat"]:i.Bo(n)||["x","y"];r.push("vx","vy");var o=i.dw.createDimensions(this.getSource(),{coordDimensions:r,encodeDefine:this.get("encode"),dimensionsDefine:this.get("dimensions")}),a=new i.B8(o,this);return a.initData(this.getSource()),a},defaultOption:{coordinateSystem:"cartesian2d",zlevel:10,supersampling:1,particleType:"point",particleDensity:128,particleSize:1,particleSpeed:1,particleTrail:2,colorTexture:null,gridWidth:"auto",gridHeight:"auto",itemStyle:{color:"#fff",opacity:.8}}});const Vd=Ci.extend((function(){return{dynamic:!0,attributes:{position:new Ci.Attribute("position","float",3,"POSITION")}}}),{resetOffset:function(){this._vertexOffset=0,this._faceOffset=0},setLineCount:function(t){var e=this.attributes,n=4*t,i=2*t;this.vertexCount!==n&&e.position.init(n),this.triangleCount!==i&&(this.indices=0===i?null:this.vertexCount>65535?new Uint32Array(3*i):new Uint16Array(3*i))},addLine:function(t){var e=this._vertexOffset;this.attributes.position.set(e,[t[0],t[1],1]),this.attributes.position.set(e+1,[t[0],t[1],-1]),this.attributes.position.set(e+2,[t[0],t[1],2]),this.attributes.position.set(e+3,[t[0],t[1],-2]),this.setTriangleIndices(this._faceOffset++,[e,e+1,e+2]),this.setTriangleIndices(this._faceOffset++,[e+1,e+2,e+3]),this._vertexOffset+=4}});Ce.import("@export ecgl.vfParticle.particle.fragment\n\nuniform sampler2D particleTexture;\nuniform sampler2D spawnTexture;\nuniform sampler2D velocityTexture;\n\nuniform float deltaTime;\nuniform float elapsedTime;\n\nuniform float speedScaling : 1.0;\n\nuniform vec2 textureSize;\nuniform vec4 region : [0, 0, 1, 1];\nuniform float firstFrameTime;\n\nvarying vec2 v_Texcoord;\n\n\nvoid main()\n{\n vec4 p = texture2D(particleTexture, v_Texcoord);\n bool spawn = false;\n if (p.w <= 0.0) {\n p = texture2D(spawnTexture, fract(v_Texcoord + elapsedTime / 10.0));\n p.w -= firstFrameTime;\n spawn = true;\n }\n vec2 v = texture2D(velocityTexture, fract(p.xy * region.zw + region.xy)).xy;\n v = (v - 0.5) * 2.0;\n p.z = length(v);\n p.xy += v * deltaTime / 10.0 * speedScaling;\n p.w -= deltaTime;\n\n if (spawn || p.xy != fract(p.xy)) {\n p.z = 0.0;\n }\n p.xy = fract(p.xy);\n\n gl_FragColor = p;\n}\n@end\n\n@export ecgl.vfParticle.renderPoints.vertex\n\n#define PI 3.1415926\n\nattribute vec2 texcoord : TEXCOORD_0;\n\nuniform sampler2D particleTexture;\nuniform mat4 worldViewProjection : WORLDVIEWPROJECTION;\n\nuniform float size : 1.0;\n\nvarying float v_Mag;\nvarying vec2 v_Uv;\n\nvoid main()\n{\n vec4 p = texture2D(particleTexture, texcoord);\n\n if (p.w > 0.0 && p.z > 1e-5) {\n gl_Position = worldViewProjection * vec4(p.xy * 2.0 - 1.0, 0.0, 1.0);\n }\n else {\n gl_Position = vec4(100000.0, 100000.0, 100000.0, 1.0);\n }\n\n v_Mag = p.z;\n v_Uv = p.xy;\n\n gl_PointSize = size;\n}\n\n@end\n\n@export ecgl.vfParticle.renderPoints.fragment\n\nuniform vec4 color : [1.0, 1.0, 1.0, 1.0];\nuniform sampler2D gradientTexture;\nuniform sampler2D colorTexture;\nuniform sampler2D spriteTexture;\n\nvarying float v_Mag;\nvarying vec2 v_Uv;\n\nvoid main()\n{\n gl_FragColor = color;\n#ifdef SPRITETEXTURE_ENABLED\n gl_FragColor *= texture2D(spriteTexture, gl_PointCoord);\n if (color.a == 0.0) {\n discard;\n }\n#endif\n#ifdef GRADIENTTEXTURE_ENABLED\n gl_FragColor *= texture2D(gradientTexture, vec2(v_Mag, 0.5));\n#endif\n#ifdef COLORTEXTURE_ENABLED\n gl_FragColor *= texture2D(colorTexture, v_Uv);\n#endif\n}\n\n@end\n\n@export ecgl.vfParticle.renderLines.vertex\n\n#define PI 3.1415926\n\nattribute vec3 position : POSITION;\n\nuniform sampler2D particleTexture;\nuniform sampler2D prevParticleTexture;\n\nuniform float size : 1.0;\nuniform vec4 vp: VIEWPORT;\nuniform mat4 worldViewProjection : WORLDVIEWPROJECTION;\n\nvarying float v_Mag;\nvarying vec2 v_Uv;\n\n@import clay.util.rand\n\nvoid main()\n{\n vec4 p = texture2D(particleTexture, position.xy);\n vec4 p2 = texture2D(prevParticleTexture, position.xy);\n\n p.xy = p.xy * 2.0 - 1.0;\n p2.xy = p2.xy * 2.0 - 1.0;\n\n if (p.w > 0.0 && p.z > 1e-5) {\n vec2 dir = normalize(p.xy - p2.xy);\n vec2 norm = vec2(dir.y / vp.z, -dir.x / vp.w) * sign(position.z) * size;\n if (abs(position.z) == 2.0) {\n gl_Position = vec4(p.xy + norm, 0.0, 1.0);\n v_Uv = p.xy;\n v_Mag = p.z;\n }\n else {\n gl_Position = vec4(p2.xy + norm, 0.0, 1.0);\n v_Mag = p2.z;\n v_Uv = p2.xy;\n }\n gl_Position = worldViewProjection * gl_Position;\n }\n else {\n gl_Position = vec4(100000.0, 100000.0, 100000.0, 1.0);\n }\n}\n\n@end\n\n@export ecgl.vfParticle.renderLines.fragment\n\nuniform vec4 color : [1.0, 1.0, 1.0, 1.0];\nuniform sampler2D gradientTexture;\nuniform sampler2D colorTexture;\n\nvarying float v_Mag;\nvarying vec2 v_Uv;\n\nvoid main()\n{\n gl_FragColor = color;\n #ifdef GRADIENTTEXTURE_ENABLED\n gl_FragColor *= texture2D(gradientTexture, vec2(v_Mag, 0.5));\n#endif\n#ifdef COLORTEXTURE_ENABLED\n gl_FragColor *= texture2D(colorTexture, v_Uv);\n#endif\n}\n\n@end\n");var jd=function(){this.motionBlurFactor=.99,this.vectorFieldTexture=new fi({type:ai.FLOAT,flipY:!1}),this.particleLife=[5,20],this._particleType="point",this._particleSize=1,this.particleColor=[1,1,1,1],this.particleSpeedScaling=1,this._thisFrameTexture=null,this._particlePass=null,this._spawnTexture=null,this._particleTexture0=null,this._particleTexture1=null,this._particlePointsMesh=null,this._surfaceFrameBuffer=null,this._elapsedTime=0,this._scene=null,this._camera=null,this._lastFrameTexture=null,this._supersampling=1,this._downsampleTextures=[],this._width=512,this._height=512,this.init()};jd.prototype={constructor:jd,init:function(){var t={type:ai.FLOAT,minFilter:ai.NEAREST,magFilter:ai.NEAREST,useMipmap:!1};this._spawnTexture=new fi(t),this._particleTexture0=new fi(t),this._particleTexture1=new fi(t),this._frameBuffer=new Ir({depthBuffer:!1}),this._particlePass=new lo({fragment:Ce.source("ecgl.vfParticle.particle.fragment")}),this._particlePass.setUniform("velocityTexture",this.vectorFieldTexture),this._particlePass.setUniform("spawnTexture",this._spawnTexture),this._downsamplePass=new lo({fragment:Ce.source("clay.compositor.downsample")});var e=new li({renderOrder:10,material:new Ht({shader:new Ce(Ce.source("ecgl.vfParticle.renderPoints.vertex"),Ce.source("ecgl.vfParticle.renderPoints.fragment"))}),mode:li.POINTS,geometry:new Ci({dynamic:!0,mainAttribute:"texcoord0"})}),n=new li({renderOrder:10,material:new Ht({shader:new Ce(Ce.source("ecgl.vfParticle.renderLines.vertex"),Ce.source("ecgl.vfParticle.renderLines.fragment"))}),geometry:new Vd,culling:!1}),i=new li({material:new Ht({shader:new Ce(Ce.source("ecgl.color.vertex"),Ce.source("ecgl.color.fragment"))}),geometry:new Pr});i.material.enableTexture("diffuseMap"),this._particlePointsMesh=e,this._particleLinesMesh=n,this._lastFrameFullQuadMesh=i,this._camera=new ro,this._thisFrameTexture=new fi,this._lastFrameTexture=new fi},setParticleDensity:function(t,e){for(var n=new Float32Array(4*(t*e)),i=0,r=this.particleLife,o=0;o<t;o++)for(var a=0;a<e;a++,i++){n[4*i]=Math.random(),n[4*i+1]=Math.random(),n[4*i+2]=Math.random();var s=(r[1]-r[0])*Math.random()+r[0];n[4*i+3]=s}"line"===this._particleType?this._setLineGeometry(t,e):this._setPointsGeometry(t,e),this._spawnTexture.width=t,this._spawnTexture.height=e,this._spawnTexture.pixels=n,this._particleTexture0.width=this._particleTexture1.width=t,this._particleTexture0.height=this._particleTexture1.height=e,this._particlePass.setUniform("textureSize",[t,e])},_setPointsGeometry:function(t,e){var n=t*e,i=this._particlePointsMesh.geometry,r=i.attributes;r.texcoord0.init(n);for(var o=0,a=0;a<t;a++)for(var s=0;s<e;s++,o++)r.texcoord0.value[2*o]=a/t,r.texcoord0.value[2*o+1]=s/e;i.dirty()},_setLineGeometry:function(t,e){var n=t*e,i=this._getParticleMesh().geometry;i.setLineCount(n),i.resetOffset();for(var r=0;r<t;r++)for(var o=0;o<e;o++)i.addLine([r/t,o/e]);i.dirty()},_getParticleMesh:function(){return"line"===this._particleType?this._particleLinesMesh:this._particlePointsMesh},update:function(t,e,n,i){var r=this._getParticleMesh(),o=this._frameBuffer,a=this._particlePass;i&&this._updateDownsampleTextures(t,e),r.material.set("size",this._particleSize*this._supersampling),r.material.set("color",this.particleColor),a.setUniform("speedScaling",this.particleSpeedScaling),o.attach(this._particleTexture1),a.setUniform("firstFrameTime",i?(this.particleLife[1]+this.particleLife[0])/2:0),a.setUniform("particleTexture",this._particleTexture0),a.setUniform("deltaTime",n),a.setUniform("elapsedTime",this._elapsedTime),a.render(t,o),r.material.set("particleTexture",this._particleTexture1),r.material.set("prevParticleTexture",this._particleTexture0),o.attach(this._thisFrameTexture),o.bind(t),t.gl.clear(t.gl.DEPTH_BUFFER_BIT|t.gl.COLOR_BUFFER_BIT);var s=this._lastFrameFullQuadMesh;s.material.set("diffuseMap",this._lastFrameTexture),s.material.set("color",[1,1,1,this.motionBlurFactor]),this._camera.update(!0),t.renderPass([s,r],this._camera),o.unbind(t),this._downsample(t),this._swapTexture(),this._elapsedTime+=n},_downsample:function(t){var e=this._downsampleTextures;if(0!==e.length)for(var n=0,i=this._thisFrameTexture,r=e[n];r;)this._frameBuffer.attach(r),this._downsamplePass.setUniform("texture",i),this._downsamplePass.setUniform("textureSize",[i.width,i.height]),this._downsamplePass.render(t,this._frameBuffer),i=r,r=e[++n]},getSurfaceTexture:function(){var t=this._downsampleTextures;return t.length>0?t[t.length-1]:this._lastFrameTexture},setRegion:function(t){this._particlePass.setUniform("region",t)},resize:function(t,e){this._lastFrameTexture.width=t*this._supersampling,this._lastFrameTexture.height=e*this._supersampling,this._thisFrameTexture.width=t*this._supersampling,this._thisFrameTexture.height=e*this._supersampling,this._width=t,this._height=e},setParticleSize:function(t){var e=this._getParticleMesh();if(t<=2)return e.material.disableTexture("spriteTexture"),void(e.material.transparent=!1);this._spriteTexture||(this._spriteTexture=new fi),this._spriteTexture.image&&this._spriteTexture.image.width===t||(this._spriteTexture.image=function(t){var e=document.createElement("canvas");e.width=e.height=t;var n=e.getContext("2d");return n.fillStyle="#fff",n.arc(t/2,t/2,t/2,0,2*Math.PI),n.fill(),e}(t),this._spriteTexture.dirty()),e.material.transparent=!0,e.material.enableTexture("spriteTexture"),e.material.set("spriteTexture",this._spriteTexture),this._particleSize=t},setGradientTexture:function(t){var e=this._getParticleMesh().material;e[t?"enableTexture":"disableTexture"]("gradientTexture"),e.setUniform("gradientTexture",t)},setColorTextureImage:function(t,e){this._getParticleMesh().material.setTextureImage("colorTexture",t,e,{flipY:!0})},setParticleType:function(t){this._particleType=t},clearFrame:function(t){var e=this._frameBuffer;e.attach(this._lastFrameTexture),e.bind(t),t.gl.clear(t.gl.DEPTH_BUFFER_BIT|t.gl.COLOR_BUFFER_BIT),e.unbind(t)},setSupersampling:function(t){this._supersampling=t,this.resize(this._width,this._height)},_updateDownsampleTextures:function(t,e){for(var n=this._downsampleTextures,i=Math.max(Math.floor(Math.log(this._supersampling/e.getDevicePixelRatio())/Math.log(2)),0),r=2,o=this._width*this._supersampling,a=this._height*this._supersampling,s=0;s<i;s++)n[s]=n[s]||new fi,n[s].width=o/r,n[s].height=a/r,r*=2;for(;s<n.length;s++)n[s].dispose(t);n.length=i},_swapTexture:function(){var t=this._particleTexture0;this._particleTexture0=this._particleTexture1,this._particleTexture1=t;t=this._thisFrameTexture;this._thisFrameTexture=this._lastFrameTexture,this._lastFrameTexture=t},dispose:function(t){t.disposeFrameBuffer(this._frameBuffer),t.disposeTexture(this.vectorFieldTexture),t.disposeTexture(this._spawnTexture),t.disposeTexture(this._particleTexture0),t.disposeTexture(this._particleTexture1),t.disposeTexture(this._thisFrameTexture),t.disposeTexture(this._lastFrameTexture),t.disposeGeometry(this._particleLinesMesh.geometry),t.disposeGeometry(this._particlePointsMesh.geometry),t.disposeGeometry(this._lastFrameFullQuadMesh.geometry),this._spriteTexture&&t.disposeTexture(this._spriteTexture),this._particlePass.dispose(t),this._downsamplePass.dispose(t),this._downsampleTextures.forEach((function(e){e.dispose(t)}))}};const Hd=jd,Wd=i.OZ.extend({type:"flowGL",__ecgl__:!0,init:function(t,e){this.viewGL=new wl("orthographic"),this.groupGL=new ia.Node,this.viewGL.add(this.groupGL),this._particleSurface=new Hd;var n=new ia.Mesh({geometry:new ia.PlaneGeometry,material:new ia.Material({shader:new ia.Shader({vertex:ia.Shader.source("ecgl.color.vertex"),fragment:ia.Shader.source("ecgl.color.fragment")}),transparent:!0})});n.material.enableTexture("diffuseMap"),this.groupGL.add(n),this._planeMesh=n},render:function(t,e,n){var i=this._particleSurface;i.setParticleType(t.get("particleType")),i.setSupersampling(t.get("supersampling")),this._updateData(t,n),this._updateCamera(n.getWidth(),n.getHeight(),n.getDevicePixelRatio());var r=wo.firstNotNull(t.get("particleDensity"),128);i.setParticleDensity(r,r);var o=this._planeMesh,a=+new Date,s=this,l=!0;o.__percent=0,o.stopAnimation(),o.animate("",{loop:!0}).when(1e5,{__percent:1}).during((function(){var t=+new Date,e=Math.min(t-a,20);a+=e,s._renderer&&(i.update(s._renderer,n,e/1e3,l),o.material.set("diffuseMap",i.getSurfaceTexture())),l=!1})).start();var h=t.getModel("itemStyle"),c=ia.parseColor(h.get("color"));c[3]*=wo.firstNotNull(h.get("opacity"),1),o.material.set("color",c),i.setColorTextureImage(t.get("colorTexture"),n),i.setParticleSize(t.get("particleSize")),i.particleSpeedScaling=t.get("particleSpeed"),i.motionBlurFactor=1-Math.pow(.1,t.get("particleTrail"))},updateTransform:function(t,e,n){this._updateData(t,n)},afterRender:function(t,e,n,i){var r=i.renderer;this._renderer=r},_updateData:function(t,e){var n=t.coordinateSystem,i=n.dimensions.map((function(e){return t.coordDimToDataDim(e)[0]})),r=t.getData(),o=r.getDataExtent(i[0]),a=r.getDataExtent(i[1]),s=t.get("gridWidth"),l=t.get("gridHeight");if(null==s||"auto"===s){var h=(o[1]-o[0])/(a[1]-a[0]);s=Math.round(Math.sqrt(h*r.count()))}null!=l&&"auto"!==l||(l=Math.ceil(r.count()/s));var c=this._particleSurface.vectorFieldTexture,u=c.pixels;if(u&&u.length===l*s*4)for(var d=0;d<u.length;d++)u[d]=0;else u=c.pixels=new Float32Array(s*l*4);var p=0,f=1/0,g=new Float32Array(2*r.count()),m=0,v=[[1/0,1/0],[-1/0,-1/0]];r.each([i[0],i[1],"vx","vy"],(function(t,e,i,r){var o=n.dataToPoint([t,e]);g[m++]=o[0],g[m++]=o[1],v[0][0]=Math.min(o[0],v[0][0]),v[0][1]=Math.min(o[1],v[0][1]),v[1][0]=Math.max(o[0],v[1][0]),v[1][1]=Math.max(o[1],v[1][1]);var a=Math.sqrt(i*i+r*r);p=Math.max(p,a),f=Math.min(f,a)})),r.each(["vx","vy"],(function(t,e,n){var i=Math.round((g[2*n]-v[0][0])/(v[1][0]-v[0][0])*(s-1)),r=4*((l-1-Math.round((g[2*n+1]-v[0][1])/(v[1][1]-v[0][1])*(l-1)))*s+i);u[r]=t/p*.5+.5,u[r+1]=e/p*.5+.5,u[r+3]=1})),c.width=s,c.height=l,"bmap"===t.get("coordinateSystem")&&this._fillEmptyPixels(c),c.dirty(),this._updatePlanePosition(v[0],v[1],t,e),this._updateGradientTexture(r.getVisual("visualMeta"),[f,p])},_fillEmptyPixels:function(t){var e=t.pixels,n=t.width,i=t.height;function r(t,r,o){t=Math.max(Math.min(t,n-1),0);var a=4*((r=Math.max(Math.min(r,i-1),0))*(n-1)+t);return 0!==e[a+3]&&(o[0]=e[a],o[1]=e[a+1],!0)}function o(t,e,n){n[0]=t[0]+e[0],n[1]=t[1]+e[1]}for(var a=[],s=[],l=[],h=[],c=[],u=0,d=0;d<i;d++)for(var p=0;p<n;p++){var f=4*(d*(n-1)+p);0===e[f+3]&&(u=a[0]=a[1]=0,r(p-1,d,s)&&(u++,o(s,a,a)),r(p+1,d,l)&&(u++,o(l,a,a)),r(p,d-1,h)&&(u++,o(h,a,a)),r(p,d+1,c)&&(u++,o(c,a,a)),a[0]/=u,a[1]/=u,e[f]=a[0],e[f+1]=a[1]),e[f+3]=1}},_updateGradientTexture:function(t,e){if(t&&t.length){this._gradientTexture=this._gradientTexture||new ia.Texture2D({image:document.createElement("canvas")});var n=this._gradientTexture,i=n.image;i.width=200,i.height=1;var r=i.getContext("2d"),o=r.createLinearGradient(0,.5,i.width,.5);t[0].stops.forEach((function(t){var n;e[1]===e[0]?n=0:(n=t.value/e[1],n=Math.min(Math.max(n,0),1)),o.addColorStop(n,t.color)})),r.fillStyle=o,r.fillRect(0,0,i.width,i.height),n.dirty(),this._particleSurface.setGradientTexture(this._gradientTexture)}else this._particleSurface.setGradientTexture(null)},_updatePlanePosition:function(t,e,n,i){var r=this._limitInViewportAndFullFill(t,e,n,i);t=r.leftTop,e=r.rightBottom,this._particleSurface.setRegion(r.region),this._planeMesh.position.set((t[0]+e[0])/2,i.getHeight()-(t[1]+e[1])/2,0);var o=e[0]-t[0],a=e[1]-t[1];this._planeMesh.scale.set(o/2,a/2,1),this._particleSurface.resize(Math.max(Math.min(o,2048),1),Math.max(Math.min(a,2048),1)),this._renderer&&this._particleSurface.clearFrame(this._renderer)},_limitInViewportAndFullFill:function(t,e,n,i){var r=[Math.max(t[0],0),Math.max(t[1],0)],o=[Math.min(e[0],i.getWidth()),Math.min(e[1],i.getHeight())];if("bmap"===n.get("coordinateSystem")){var a=n.getData().getDataExtent(n.coordDimToDataDim("lng")[0]);Math.floor(a[1]-a[0])>=359&&(r[0]>0&&(r[0]=0),o[0]<i.getWidth()&&(o[0]=i.getWidth()))}var s=e[0]-t[0],l=e[1]-t[1],h=o[0]-r[0],c=o[1]-r[1];return{leftTop:r,rightBottom:o,region:[(r[0]-t[0])/s,1-c/l-(r[1]-t[1])/l,h/s,c/l]}},_updateCamera:function(t,e,n){this.viewGL.setViewport(0,0,t,e,n);var i=this.viewGL.camera;i.left=i.bottom=0,i.top=e,i.right=t,i.near=0,i.far=100,i.position.z=10},remove:function(){this._planeMesh.stopAnimation(),this.groupGL.removeAll()},dispose:function(){this._renderer&&this._particleSurface.dispose(this._renderer),this.groupGL.removeAll()}});(0,i.Yx)((function(t){t.registerChartView(Wd),t.registerSeriesModel(Gd)}));var Ud=n(7845),qd=i.rP.extend({type:"series.linesGL",dependencies:["grid","geo"],visualStyleAccessPath:"lineStyle",visualDrawType:"stroke",streamEnabled:!0,init:function(t){var e=this._processFlatCoordsArray(t.data);this._flatCoords=e.flatCoords,this._flatCoordsOffset=e.flatCoordsOffset,e.flatCoords&&(t.data=new Float32Array(e.count)),qd.superApply(this,"init",arguments)},mergeOption:function(t){var e=this._processFlatCoordsArray(t.data);this._flatCoords=e.flatCoords,this._flatCoordsOffset=e.flatCoordsOffset,e.flatCoords&&(t.data=new Float32Array(e.count)),qd.superApply(this,"mergeOption",arguments)},appendData:function(t){var e=this._processFlatCoordsArray(t.data);e.flatCoords&&(this._flatCoords?(this._flatCoords=(0,Ud.concatArray)(this._flatCoords,e.flatCoords),this._flatCoordsOffset=(0,Ud.concatArray)(this._flatCoordsOffset,e.flatCoordsOffset)):(this._flatCoords=e.flatCoords,this._flatCoordsOffset=e.flatCoordsOffset),t.data=new Float32Array(e.count)),this.getRawData().appendData(t.data)},_getCoordsFromItemModel:function(t){var e=this.getData().getItemModel(t);return e.option instanceof Array?e.option:e.getShallow("coords")},getLineCoordsCount:function(t){return this._flatCoordsOffset?this._flatCoordsOffset[2*t+1]:this._getCoordsFromItemModel(t).length},getLineCoords:function(t,e){if(this._flatCoordsOffset){for(var n=this._flatCoordsOffset[2*t],i=this._flatCoordsOffset[2*t+1],r=0;r<i;r++)e[r]=e[r]||[],e[r][0]=this._flatCoords[n+2*r],e[r][1]=this._flatCoords[n+2*r+1];return i}var o=this._getCoordsFromItemModel(t);for(r=0;r<o.length;r++)e[r]=e[r]||[],e[r][0]=o[r][0],e[r][1]=o[r][1];return o.length},_processFlatCoordsArray:function(t){var e=0;if(this._flatCoords&&(e=this._flatCoords.length),"number"==typeof t[0]){for(var n=t.length,i=new Uint32Array(n),r=new Float64Array(n),o=0,a=0,s=0,l=0;l<n;){s++;var h=t[l++];i[a++]=o+e,i[a++]=h;for(var c=0;c<h;c++){var u=t[l++],d=t[l++];r[o++]=u,r[o++]=d}}return{flatCoordsOffset:new Uint32Array(i.buffer,0,a),flatCoords:r,count:s}}return{flatCoordsOffset:null,flatCoords:null,count:t.length}},getInitialData:function(t,e){var n=new i.B8(["value"],this);return n.hasItemOption=!1,n.initData(t.data,[],(function(t,e,i,r){if(t instanceof Array)return NaN;n.hasItemOption=!0;var o=t.value;return null!=o?o instanceof Array?o[r]:o:void 0})),n},defaultOption:{coordinateSystem:"geo",zlevel:10,progressive:1e4,progressiveThreshold:5e4,blendMode:"source-over",lineStyle:{opacity:.8},postEffect:{enable:!1,colorCorrection:{exposure:0,brightness:0,contrast:1,saturation:1,enable:!0}}}});const Xd=qd,Yd=i.OZ.extend({type:"linesGL",__ecgl__:!0,init:function(t,e){this.groupGL=new ia.Node,this.viewGL=new wl("orthographic"),this.viewGL.add(this.groupGL),this._glViewHelper=new md(this.viewGL),this._nativeLinesShader=ia.createShader("ecgl.lines3D"),this._meshLinesShader=ia.createShader("ecgl.meshLines3D"),this._linesMeshes=[],this._currentStep=0},render:function(t,e,n){this.groupGL.removeAll(),this._glViewHelper.reset(t,n);var i=this._linesMeshes[0];i||(i=this._linesMeshes[0]=this._createLinesMesh(t)),this._linesMeshes.length=1,this.groupGL.add(i),this._updateLinesMesh(t,i,0,t.getData().count()),this.viewGL.setPostEffect(t.getModel("postEffect"),n)},incrementalPrepareRender:function(t,e,n){this.groupGL.removeAll(),this._glViewHelper.reset(t,n),this._currentStep=0,this.viewGL.setPostEffect(t.getModel("postEffect"),n)},incrementalRender:function(t,e,n,i){var r=this._linesMeshes[this._currentStep];r||(r=this._createLinesMesh(e),this._linesMeshes[this._currentStep]=r),this._updateLinesMesh(e,r,t.start,t.end),this.groupGL.add(r),i.getZr().refresh(),this._currentStep++},updateTransform:function(t,e,n){t.coordinateSystem.getRoamTransform&&this._glViewHelper.updateTransform(t,n)},_createLinesMesh:function(t){return new ia.Mesh({$ignorePicking:!0,material:new ia.Material({shader:ia.createShader("ecgl.lines3D"),transparent:!0,depthMask:!1,depthTest:!1}),geometry:new Md({segmentScale:10,useNativeLine:!0,dynamic:!1}),mode:ia.Mesh.LINES,culling:!1})},_updateLinesMesh:function(t,e,n,i){var r=t.getData();e.material.blend="lighter"===t.get("blendMode")?ia.additiveBlend:null;var o=t.get("lineStyle.curveness")||0,a=t.get("polyline"),s=e.geometry,l=t.coordinateSystem,h=wo.firstNotNull(t.get("lineStyle.width"),1);h>1?(e.material.shader!==this._meshLinesShader&&e.material.attachShader(this._meshLinesShader),e.mode=ia.Mesh.TRIANGLES):(e.material.shader!==this._nativeLinesShader&&e.material.attachShader(this._nativeLinesShader),e.mode=ia.Mesh.LINES),n=n||0,i=i||r.count(),s.resetOffset();var c=0,u=0,d=[],p=[],f=[],g=[],m=[],v=.3,y=.7;function _(){p[0]=d[0]*y+g[0]*v-(d[1]-g[1])*o,p[1]=d[1]*y+g[1]*v-(g[0]-d[0])*o,f[0]=d[0]*v+g[0]*y-(d[1]-g[1])*o,f[1]=d[1]*v+g[1]*y-(g[0]-d[0])*o}if(a||0!==o)for(var x=n;x<i;x++)if(a){var b=t.getLineCoordsCount(x);c+=s.getPolylineVertexCount(b),u+=s.getPolylineTriangleCount(b)}else t.getLineCoords(x,m),this._glViewHelper.dataToPoint(l,m[0],d),this._glViewHelper.dataToPoint(l,m[1],g),_(),c+=s.getCubicCurveVertexCount(d,p,f,g),u+=s.getCubicCurveTriangleCount(d,p,f,g);else{var w=i-n;c+=w*s.getLineVertexCount(),u+=w*s.getLineVertexCount()}s.setVertexCount(c),s.setTriangleCount(u);var S=n,T=[];for(x=n;x<i;x++){ia.parseColor(bh(r,S),T);var M=wo.firstNotNull(wh(r,S),1);T[3]*=M;b=t.getLineCoords(x,m);for(var A=0;A<b;A++)this._glViewHelper.dataToPoint(l,m[A],m[A]);a?s.addPolyline(m,T,h,0,b):0!==o?(d=m[0],g=m[1],_(),s.addCubicCurve(d,p,f,g,T,h)):s.addPolyline(m,T,h,0,2),S++}},dispose:function(){this.groupGL.removeAll()},remove:function(){this.groupGL.removeAll()}});(0,i.Yx)((function(t){t.registerChartView(Yd),t.registerSeriesModel(Xd)}))},1216:(t,e,n)=>{"use strict";var i=n(4979);function r(t,e){for(var n in e)o(e,n)&&(t[n]=e[n])}function o(t,e){return Object.prototype.hasOwnProperty.call(t,e)}t.exports=function(t){i(t)||(t={});for(var e=arguments.length,n=1;n<e;n++){var o=arguments[n];i(o)&&r(t,o)}return t}},4146:(t,e,n)=>{"use strict";var i=n(6999),r=n(5034);function o(t,e){for(var n in e)h(e,n)&&(t[n]=e[n])}function a(t){return t&&"string"==typeof t}function s(t){var e={};for(var n in t)e[n]=t[n];return e}function l(t){return t&&"object"==typeof t||i(t)}function h(t,e){return Object.prototype.hasOwnProperty.call(t,e)}t.exports=Object.assign||function(t){if(null==t)throw new TypeError("Cannot convert undefined or null to object");l(t)||(t={});for(var e=1;e<arguments.length;e++){var n=arguments[e];a(n)&&(n=s(n)),l(n)&&(o(t,n),r(t,n))}return t}},8096:t=>{"use strict";t.exports=function(t,e,n){for(var i in t)if(!1===e.call(n,t[i],i,t))break}},5417:t=>{function e(t){return t?Array.isArray(t)?t.join("."):t:""}t.exports=function(t,n,i,r,o){if(null===(a=t)||"object"!=typeof a&&"function"!=typeof a||!n)return t;var a;if(n=e(n),i&&(n+="."+e(i)),r&&(n+="."+e(r)),o&&(n+="."+e(o)),n in t)return t[n];for(var s=n.split("."),l=s.length,h=-1;t&&++h<l;){for(var c=s[h];"\\"===c[c.length-1];)c=c.slice(0,-1)+"."+s[++h];t=t[c]}return t}},4979:t=>{"use strict";t.exports=function(t){return null!=t&&("object"==typeof t||"function"==typeof t)}},6999:(t,e,n)=>{"use strict";var i=n(9133);t.exports=function(t){return i(t)||"function"==typeof t||Array.isArray(t)}},9133:(t,e,n)=>{"use strict";var i=n(5231);function r(t){return!0===i(t)&&"[object Object]"===Object.prototype.toString.call(t)}t.exports=function(t){var e,n;return!1!==r(t)&&("function"==typeof(e=t.constructor)&&(!1!==r(n=e.prototype)&&!1!==n.hasOwnProperty("isPrototypeOf")))}},5231:t=>{"use strict";t.exports=function(t){return null!=t&&"object"==typeof t&&!1===Array.isArray(t)}},9231:(t,e,n)=>{"use strict";n.r(e),n.d(e,{Leva:()=>Wc,LevaInputs:()=>io,LevaPanel:()=>Xc,LevaStoreProvider:()=>Co,button:()=>hc,buttonGroup:()=>cc,folder:()=>sc,levaStore:()=>rc,monitor:()=>dc,useControls:()=>Yc,useCreateStore:()=>oc,useStoreContext:()=>Ao});var i=n(4059),r=n(7378),o=n.t(r,2);function a(...t){return e=>t.forEach((t=>function(t,e){"function"==typeof t?t(e):null!=t&&(t.current=e)}(t,e)))}function s(...t){return r.useCallback(a(...t),t)}var l=n(6106),h=r.forwardRef(((t,e)=>{const{children:n,...i}=t,o=r.Children.toArray(n),a=o.find(d);if(a){const t=a.props.children,n=o.map((e=>e===a?r.Children.count(t)>1?r.Children.only(null):r.isValidElement(t)?t.props.children:null:e));return(0,l.jsx)(c,{...i,ref:e,children:r.isValidElement(t)?r.cloneElement(t,void 0,n):null})}return(0,l.jsx)(c,{...i,ref:e,children:n})}));h.displayName="Slot";var c=r.forwardRef(((t,e)=>{const{children:n,...i}=t;if(r.isValidElement(n)){const t=function(t){let e=Object.getOwnPropertyDescriptor(t.props,"ref")?.get,n=e&&"isReactWarning"in e&&e.isReactWarning;if(n)return t.ref;if(e=Object.getOwnPropertyDescriptor(t,"ref")?.get,n=e&&"isReactWarning"in e&&e.isReactWarning,n)return t.props.ref;return t.props.ref||t.ref}(n);return r.cloneElement(n,{...p(i,n.props),ref:e?a(e,t):t})}return r.Children.count(n)>1?r.Children.only(null):null}));c.displayName="SlotClone";var u=({children:t})=>(0,l.jsx)(l.Fragment,{children:t});function d(t){return r.isValidElement(t)&&t.type===u}function p(t,e){const n={...e};for(const i in e){const r=t[i],o=e[i];/^on[A-Z]/.test(i)?r&&o?n[i]=(...t)=>{o(...t),r(...t)}:r&&(n[i]=r):"style"===i?n[i]={...r,...o}:"className"===i&&(n[i]=[r,o].filter(Boolean).join(" "))}return{...t,...n}}var f=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","span","svg","ul"].reduce(((t,e)=>{const n=r.forwardRef(((t,n)=>{const{asChild:i,...r}=t,o=i?h:e;return"undefined"!=typeof window&&(window[Symbol.for("radix-ui")]=!0),(0,l.jsx)(o,{...r,ref:n})}));return n.displayName=`Primitive.${e}`,{...t,[e]:n}}),{});var g=Boolean(globalThis?.document)?r.useLayoutEffect:()=>{},m=r.forwardRef(((t,e)=>{const{container:n,...o}=t,[a,s]=r.useState(!1);g((()=>s(!0)),[]);const h=n||a&&globalThis?.document?.body;return h?i.createPortal((0,l.jsx)(f.div,{...o,ref:e}),h):null}));m.displayName="Portal";var v=m,y=Object.prototype.hasOwnProperty;function _(t,e){var n,i;if(t===e)return!0;if(t&&e&&(n=t.constructor)===e.constructor){if(n===Date)return t.getTime()===e.getTime();if(n===RegExp)return t.toString()===e.toString();if(n===Array){if((i=t.length)===e.length)for(;i--&&_(t[i],e[i]););return-1===i}if(!n||"object"==typeof t){for(n in i=0,t){if(y.call(t,n)&&++i&&!y.call(e,n))return!1;if(!(n in e)||!_(t[n],e[n]))return!1}return Object.keys(e).length===i}}return t!=t&&e!=e}function x(t,e){if(Object.is(t,e))return!0;if("object"!=typeof t||null===t||"object"!=typeof e||null===e)return!1;const n=Object.keys(t);if(n.length!==Object.keys(e).length)return!1;for(let i=0;i<n.length;i++)if(!Object.prototype.hasOwnProperty.call(e,n[i])||!Object.is(t[n[i]],e[n[i]]))return!1;return!0}var b=function(t,e,n,i){this.name=t,this.fn=e,this.args=n,this.modifiers=i};function w(t,e){return void 0===e&&(e="simple"),"object"==typeof t?t[e]:t}function S(t,e,n){if(t.length){var i=t.shift(),r=S(t,e,n);return i.perform(r,n)}return w(e)}function T(t,e,n){if(t.length){var i=t.shift(),r=T(t,e,n);return i.performAsync(r,n)}return function(t){return Promise.resolve(w(e,"async")(t))}}b.prototype._test=function(t){var e=this.fn;try{S(this.modifiers.slice(),e,this)(t)}catch(n){e=function(){return!1}}try{return S(this.modifiers.slice(),e,this)(t)}catch(i){return!1}},b.prototype._check=function(t){try{S(this.modifiers.slice(),this.fn,this)(t)}catch(e){if(S(this.modifiers.slice(),(function(t){return t}),this)(!1))return}if(!S(this.modifiers.slice(),this.fn,this)(t))throw null},b.prototype._testAsync=function(t){var e=this;return new Promise((function(n,i){T(e.modifiers.slice(),e.fn,e)(t).then((function(e){e?n(t):i(null)})).catch((function(t){return i(t)}))}))};var M=function(t,e,n){this.name=t,this.perform=e,this.performAsync=n},A=function(t){function e(n,i,r,o){for(var a=[],s=arguments.length-4;s-- >0;)a[s]=arguments[s+4];t.call(this,a),t.captureStackTrace&&t.captureStackTrace(this,e),this.rule=n,this.value=i,this.cause=r,this.target=o}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e}(Error),C=function(t,e){void 0===t&&(t=[]),void 0===e&&(e=[]),this.chain=t,this.nextRuleModifiers=e};function I(t,e,n,i){if(e.length){var r=e.shift();r._testAsync(t).then((function(){I(t,e,n,i)}),(function(e){i(new A(r,t,e))}))}else n(t)}C.prototype._applyRule=function(t,e){var n=this;return function(){for(var i=[],r=arguments.length;r--;)i[r]=arguments[r];return n.chain.push(new b(e,t.apply(n,i),i,n.nextRuleModifiers)),n.nextRuleModifiers=[],n}},C.prototype._applyModifier=function(t,e){return this.nextRuleModifiers.push(new M(e,t.simple,t.async)),this},C.prototype._clone=function(){return new C(this.chain.slice(),this.nextRuleModifiers.slice())},C.prototype.test=function(t){return this.chain.every((function(e){return e._test(t)}))},C.prototype.testAll=function(t){var e=[];return this.chain.forEach((function(n){try{n._check(t)}catch(i){e.push(new A(n,t,i))}})),e},C.prototype.check=function(t){this.chain.forEach((function(e){try{e._check(t)}catch(n){throw new A(e,t,n)}}))},C.prototype.testAsync=function(t){var e=this;return new Promise((function(n,i){I(t,e.chain.slice(),n,i)}))};var E=function(t,e){return!(!e||"string"!=typeof t||0!==t.trim().length)||null==t};function k(){return"undefined"!=typeof Proxy?D(new C):P(new C)}var L={};function D(t){return new Proxy(t,{get:function(e,n){if(n in e)return e[n];var i=D(t._clone());return n in R?i._applyModifier(R[n],n):n in L?i._applyRule(L[n],n):n in F?i._applyRule(F[n],n):void 0}})}function P(t){var e=function(t,e){return Object.keys(t).forEach((function(n){e[n]=function(){for(var i=[],r=arguments.length;r--;)i[r]=arguments[r];return P(e._clone())._applyRule(t[n],n).apply(void 0,i)}})),e},n=e(F,t),i=e(L,n);return Object.keys(R).forEach((function(t){Object.defineProperty(i,t,{get:function(){return P(i._clone())._applyModifier(R[t],t)}})})),i}k.extend=function(t){Object.assign(L,t)},k.clearCustomRules=function(){L={}};var R={not:{simple:function(t){return function(e){return!t(e)}},async:function(t){return function(e){return Promise.resolve(t(e)).then((function(t){return!t})).catch((function(){return!0}))}}},some:{simple:function(t){return function(e){return N(e).some((function(e){try{return t(e)}catch(n){return!1}}))}},async:function(t){return function(e){return Promise.all(N(e).map((function(e){try{return t(e).catch((function(){return!1}))}catch(n){return!1}}))).then((function(t){return t.some(Boolean)}))}}},every:{simple:function(t){return function(e){return!1!==e&&N(e).every(t)}},async:function(t){return function(e){return Promise.all(N(e).map(t)).then((function(t){return t.every(Boolean)}))}}},strict:{simple:function(t,e){return function(n){return O(e)&&n&&"object"==typeof n?Object.keys(e.args[0]).length===Object.keys(n).length&&t(n):t(n)}},async:function(t,e){return function(n){return Promise.resolve(t(n)).then((function(t){return O(e)&&n&&"object"==typeof n?Object.keys(e.args[0]).length===Object.keys(n).length&&t:t})).catch((function(){return!1}))}}}};function O(t){return t&&"schema"===t.name&&t.args.length>0&&"object"==typeof t.args[0]}function N(t){return"string"==typeof t?t.split(""):t}var F={equal:function(t){return function(e){return e==t}},exact:function(t){return function(e){return e===t}},number:function(t){return void 0===t&&(t=!0),function(e){return"number"==typeof e&&(t||isFinite(e))}},integer:function(){return function(t){return(Number.isInteger||z)(t)}},numeric:function(){return function(t){return!isNaN(parseFloat(t))&&isFinite(t)}},string:function(){return B("string")},boolean:function(){return B("boolean")},undefined:function(){return B("undefined")},null:function(){return B("null")},array:function(){return B("array")},object:function(){return B("object")},instanceOf:function(t){return function(e){return e instanceof t}},pattern:function(t){return function(e){return t.test(e)}},lowercase:function(){return function(t){return"boolean"==typeof t||t===t.toLowerCase()&&""!==t.trim()}},uppercase:function(){return function(t){return t===t.toUpperCase()&&""!==t.trim()}},vowel:function(){return function(t){return/^[aeiou]+$/i.test(t)}},consonant:function(){return function(t){return/^(?=[^aeiou])([a-z]+)$/i.test(t)}},first:function(t){return function(e){return e[0]==t}},last:function(t){return function(e){return e[e.length-1]==t}},empty:function(){return function(t){return 0===t.length}},length:function(t,e){return function(n){return n.length>=t&&n.length<=(e||t)}},minLength:function(t){return function(e){return e.length>=t}},maxLength:function(t){return function(e){return e.length<=t}},negative:function(){return function(t){return t<0}},positive:function(){return function(t){return t>=0}},between:function(t,e){return function(n){return n>=t&&n<=e}},range:function(t,e){return function(n){return n>=t&&n<=e}},lessThan:function(t){return function(e){return e<t}},lessThanOrEqual:function(t){return function(e){return e<=t}},greaterThan:function(t){return function(e){return e>t}},greaterThanOrEqual:function(t){return function(e){return e>=t}},even:function(){return function(t){return t%2==0}},odd:function(){return function(t){return t%2!=0}},includes:function(t){return function(e){return~e.indexOf(t)}},schema:function(t){return function(t){return{simple:function(e){var n=[];if(Object.keys(t).forEach((function(i){var r=t[i];try{r.check((e||{})[i])}catch(o){o.target=i,n.push(o)}})),n.length>0)throw n;return!0},async:function(e){var n=[],i=Object.keys(t).map((function(i){return t[i].testAsync((e||{})[i]).catch((function(t){t.target=i,n.push(t)}))}));return Promise.all(i).then((function(){if(n.length>0)throw n;return!0}))}}}(t)},passesAnyOf:function(){for(var t=[],e=arguments.length;e--;)t[e]=arguments[e];return function(e){return t.some((function(t){return t.test(e)}))}},optional:function(t,e){return void 0===e&&(e=!1),{simple:function(n){return E(n,e)||void 0===t.check(n)},async:function(n){return E(n,e)||t.testAsync(n)}}}};function B(t){return function(e){return Array.isArray(e)&&"array"===t||null===e&&"null"===t||typeof e===t}}function z(t){return"number"==typeof t&&isFinite(t)&&Math.floor(t)===t}const G=k;var V="colors",j="sizes",H="space",W={gap:H,gridGap:H,columnGap:H,gridColumnGap:H,rowGap:H,gridRowGap:H,inset:H,insetBlock:H,insetBlockEnd:H,insetBlockStart:H,insetInline:H,insetInlineEnd:H,insetInlineStart:H,margin:H,marginTop:H,marginRight:H,marginBottom:H,marginLeft:H,marginBlock:H,marginBlockEnd:H,marginBlockStart:H,marginInline:H,marginInlineEnd:H,marginInlineStart:H,padding:H,paddingTop:H,paddingRight:H,paddingBottom:H,paddingLeft:H,paddingBlock:H,paddingBlockEnd:H,paddingBlockStart:H,paddingInline:H,paddingInlineEnd:H,paddingInlineStart:H,top:H,right:H,bottom:H,left:H,scrollMargin:H,scrollMarginTop:H,scrollMarginRight:H,scrollMarginBottom:H,scrollMarginLeft:H,scrollMarginX:H,scrollMarginY:H,scrollMarginBlock:H,scrollMarginBlockEnd:H,scrollMarginBlockStart:H,scrollMarginInline:H,scrollMarginInlineEnd:H,scrollMarginInlineStart:H,scrollPadding:H,scrollPaddingTop:H,scrollPaddingRight:H,scrollPaddingBottom:H,scrollPaddingLeft:H,scrollPaddingX:H,scrollPaddingY:H,scrollPaddingBlock:H,scrollPaddingBlockEnd:H,scrollPaddingBlockStart:H,scrollPaddingInline:H,scrollPaddingInlineEnd:H,scrollPaddingInlineStart:H,fontSize:"fontSizes",background:V,backgroundColor:V,backgroundImage:V,borderImage:V,border:V,borderBlock:V,borderBlockEnd:V,borderBlockStart:V,borderBottom:V,borderBottomColor:V,borderColor:V,borderInline:V,borderInlineEnd:V,borderInlineStart:V,borderLeft:V,borderLeftColor:V,borderRight:V,borderRightColor:V,borderTop:V,borderTopColor:V,caretColor:V,color:V,columnRuleColor:V,fill:V,outline:V,outlineColor:V,stroke:V,textDecorationColor:V,fontFamily:"fonts",fontWeight:"fontWeights",lineHeight:"lineHeights",letterSpacing:"letterSpacings",blockSize:j,minBlockSize:j,maxBlockSize:j,inlineSize:j,minInlineSize:j,maxInlineSize:j,width:j,minWidth:j,maxWidth:j,height:j,minHeight:j,maxHeight:j,flexBasis:j,gridTemplateColumns:j,gridTemplateRows:j,borderWidth:"borderWidths",borderTopWidth:"borderWidths",borderRightWidth:"borderWidths",borderBottomWidth:"borderWidths",borderLeftWidth:"borderWidths",borderStyle:"borderStyles",borderTopStyle:"borderStyles",borderRightStyle:"borderStyles",borderBottomStyle:"borderStyles",borderLeftStyle:"borderStyles",borderRadius:"radii",borderTopLeftRadius:"radii",borderTopRightRadius:"radii",borderBottomRightRadius:"radii",borderBottomLeftRadius:"radii",boxShadow:"shadows",textShadow:"shadows",transition:"transitions",zIndex:"zIndices"},U=(t,e)=>"function"==typeof e?{"()":Function.prototype.toString.call(e)}:e,q=()=>{const t=Object.create(null);return(e,n,...i)=>{const r=(t=>JSON.stringify(t,U))(e);return r in t?t[r]:t[r]=n(e,...i)}},X=Symbol.for("sxs.internal"),Y=(t,e)=>Object.defineProperties(t,Object.getOwnPropertyDescriptors(e)),Z=t=>{for(const e in t)return!0;return!1},{hasOwnProperty:$}=Object.prototype,K=t=>t.includes("-")?t:t.replace(/[A-Z]/g,(t=>"-"+t.toLowerCase())),J=/\s+(?![^()]*\))/,Q=t=>e=>t(..."string"==typeof e?String(e).split(J):[e]),tt={appearance:t=>({WebkitAppearance:t,appearance:t}),backfaceVisibility:t=>({WebkitBackfaceVisibility:t,backfaceVisibility:t}),backdropFilter:t=>({WebkitBackdropFilter:t,backdropFilter:t}),backgroundClip:t=>({WebkitBackgroundClip:t,backgroundClip:t}),boxDecorationBreak:t=>({WebkitBoxDecorationBreak:t,boxDecorationBreak:t}),clipPath:t=>({WebkitClipPath:t,clipPath:t}),content:t=>({content:t.includes('"')||t.includes("'")||/^([A-Za-z]+\([^]*|[^]*-quote|inherit|initial|none|normal|revert|unset)$/.test(t)?t:`"${t}"`}),hyphens:t=>({WebkitHyphens:t,hyphens:t}),maskImage:t=>({WebkitMaskImage:t,maskImage:t}),maskSize:t=>({WebkitMaskSize:t,maskSize:t}),tabSize:t=>({MozTabSize:t,tabSize:t}),textSizeAdjust:t=>({WebkitTextSizeAdjust:t,textSizeAdjust:t}),userSelect:t=>({WebkitUserSelect:t,userSelect:t}),marginBlock:Q(((t,e)=>({marginBlockStart:t,marginBlockEnd:e||t}))),marginInline:Q(((t,e)=>({marginInlineStart:t,marginInlineEnd:e||t}))),maxSize:Q(((t,e)=>({maxBlockSize:t,maxInlineSize:e||t}))),minSize:Q(((t,e)=>({minBlockSize:t,minInlineSize:e||t}))),paddingBlock:Q(((t,e)=>({paddingBlockStart:t,paddingBlockEnd:e||t}))),paddingInline:Q(((t,e)=>({paddingInlineStart:t,paddingInlineEnd:e||t})))},et=/([\d.]+)([^]*)/,nt=(t,e)=>t.length?t.reduce(((t,n)=>(t.push(...e.map((t=>t.includes("&")?t.replace(/&/g,/[ +>|~]/.test(n)&&/&.*&/.test(t)?`:is(${n})`:n):n+" "+t))),t)),[]):e,it=(t,e)=>t in rt&&"string"==typeof e?e.replace(/^((?:[^]*[^\w-])?)(fit-content|stretch)((?:[^\w-][^]*)?)$/,((e,n,i,r)=>n+("stretch"===i?`-moz-available${r};${K(t)}:${n}-webkit-fill-available`:`-moz-fit-content${r};${K(t)}:${n}fit-content`)+r)):String(e),rt={blockSize:1,height:1,inlineSize:1,maxBlockSize:1,maxHeight:1,maxInlineSize:1,maxWidth:1,minBlockSize:1,minHeight:1,minInlineSize:1,minWidth:1,width:1},ot=t=>t?t+"-":"",at=(t,e,n)=>t.replace(/([+-])?((?:\d+(?:\.\d*)?|\.\d+)(?:[Ee][+-]?\d+)?)?(\$|--)([$\w-]+)/g,((t,i,r,o,a)=>"$"==o==!!r?t:(i||"--"==o?"calc(":"")+"var(--"+("$"===o?ot(e)+(a.includes("$")?"":ot(n))+a.replace(/\$/g,"-"):a)+")"+(i||"--"==o?"*"+(i||"")+(r||"1")+")":""))),st=/\s*,\s*(?![^()]*\))/,lt=Object.prototype.toString,ht=(t,e,n,i,r)=>{let o,a,s;const l=(t,e,n)=>{let h,c;const u=t=>{for(h in t){const f=64===h.charCodeAt(0),g=f&&Array.isArray(t[h])?t[h]:[t[h]];for(c of g){const t=/[A-Z]/.test(p=h)?p:p.replace(/-[^]/g,(t=>t[1].toUpperCase())),g="object"==typeof c&&c&&c.toString===lt&&(!i.utils[t]||!e.length);if(t in i.utils&&!g){const e=i.utils[t];if(e!==a){a=e,u(e(c)),a=null;continue}}else if(t in tt){const e=tt[t];if(e!==s){s=e,u(e(c)),s=null;continue}}if(f&&(d=h.slice(1)in i.media?"@media "+i.media[h.slice(1)]:h,h=d.replace(/\(\s*([\w-]+)\s*(=|<|<=|>|>=)\s*([\w-]+)\s*(?:(<|<=|>|>=)\s*([\w-]+)\s*)?\)/g,((t,e,n,i,r,o)=>{const a=et.test(e),s=.0625*(a?-1:1),[l,h]=a?[i,e]:[e,i];return"("+("="===n[0]?"":">"===n[0]===a?"max-":"min-")+l+":"+("="!==n[0]&&1===n.length?h.replace(et,((t,e,i)=>Number(e)+s*(">"===n?1:-1)+i)):h)+(r?") and ("+(">"===r[0]?"min-":"max-")+l+":"+(1===r.length?o.replace(et,((t,e,n)=>Number(e)+s*(">"===r?-1:1)+n)):o):"")+")"}))),g){const t=f?n.concat(h):[...n],i=f?[...e]:nt(e,h.split(st));void 0!==o&&r(ct(...o)),o=void 0,l(c,i,t)}else void 0===o&&(o=[[],e,n]),h=f||36!==h.charCodeAt(0)?h:`--${ot(i.prefix)}${h.slice(1).replace(/\$/g,"-")}`,c=g?c:"number"==typeof c?c&&t in ut?String(c)+"px":String(c):at(it(t,null==c?"":c),i.prefix,i.themeMap[t]),o[0].push(`${f?`${h} `:`${K(h)}:`}${c}`)}}var d,p};u(t),void 0!==o&&r(ct(...o)),o=void 0};l(t,e,n)},ct=(t,e,n)=>`${n.map((t=>`${t}{`)).join("")}${e.length?`${e.join(",")}{`:""}${t.join(";")}${e.length?"}":""}${Array(n.length?n.length+1:0).join("}")}`,ut={animationDelay:1,animationDuration:1,backgroundSize:1,blockSize:1,border:1,borderBlock:1,borderBlockEnd:1,borderBlockEndWidth:1,borderBlockStart:1,borderBlockStartWidth:1,borderBlockWidth:1,borderBottom:1,borderBottomLeftRadius:1,borderBottomRightRadius:1,borderBottomWidth:1,borderEndEndRadius:1,borderEndStartRadius:1,borderInlineEnd:1,borderInlineEndWidth:1,borderInlineStart:1,borderInlineStartWidth:1,borderInlineWidth:1,borderLeft:1,borderLeftWidth:1,borderRadius:1,borderRight:1,borderRightWidth:1,borderSpacing:1,borderStartEndRadius:1,borderStartStartRadius:1,borderTop:1,borderTopLeftRadius:1,borderTopRightRadius:1,borderTopWidth:1,borderWidth:1,bottom:1,columnGap:1,columnRule:1,columnRuleWidth:1,columnWidth:1,containIntrinsicSize:1,flexBasis:1,fontSize:1,gap:1,gridAutoColumns:1,gridAutoRows:1,gridTemplateColumns:1,gridTemplateRows:1,height:1,inlineSize:1,inset:1,insetBlock:1,insetBlockEnd:1,insetBlockStart:1,insetInline:1,insetInlineEnd:1,insetInlineStart:1,left:1,letterSpacing:1,margin:1,marginBlock:1,marginBlockEnd:1,marginBlockStart:1,marginBottom:1,marginInline:1,marginInlineEnd:1,marginInlineStart:1,marginLeft:1,marginRight:1,marginTop:1,maxBlockSize:1,maxHeight:1,maxInlineSize:1,maxWidth:1,minBlockSize:1,minHeight:1,minInlineSize:1,minWidth:1,offsetDistance:1,offsetRotate:1,outline:1,outlineOffset:1,outlineWidth:1,overflowClipMargin:1,padding:1,paddingBlock:1,paddingBlockEnd:1,paddingBlockStart:1,paddingBottom:1,paddingInline:1,paddingInlineEnd:1,paddingInlineStart:1,paddingLeft:1,paddingRight:1,paddingTop:1,perspective:1,right:1,rowGap:1,scrollMargin:1,scrollMarginBlock:1,scrollMarginBlockEnd:1,scrollMarginBlockStart:1,scrollMarginBottom:1,scrollMarginInline:1,scrollMarginInlineEnd:1,scrollMarginInlineStart:1,scrollMarginLeft:1,scrollMarginRight:1,scrollMarginTop:1,scrollPadding:1,scrollPaddingBlock:1,scrollPaddingBlockEnd:1,scrollPaddingBlockStart:1,scrollPaddingBottom:1,scrollPaddingInline:1,scrollPaddingInlineEnd:1,scrollPaddingInlineStart:1,scrollPaddingLeft:1,scrollPaddingRight:1,scrollPaddingTop:1,shapeMargin:1,textDecoration:1,textDecorationThickness:1,textIndent:1,textUnderlineOffset:1,top:1,transitionDelay:1,transitionDuration:1,verticalAlign:1,width:1,wordSpacing:1},dt=t=>String.fromCharCode(t+(t>25?39:97)),pt=t=>(t=>{let e,n="";for(e=Math.abs(t);e>52;e=e/52|0)n=dt(e%52)+n;return dt(e%52)+n})(((t,e)=>{let n=e.length;for(;n;)t=33*t^e.charCodeAt(--n);return t})(5381,JSON.stringify(t))>>>0),ft=["themed","global","styled","onevar","resonevar","allvar","inline"],gt=t=>{if(t.href&&!t.href.startsWith(location.origin))return!1;try{return!!t.cssRules}catch(t){return!1}},mt=t=>{let e;const n=()=>{const{cssRules:t}=e.sheet;return[].map.call(t,((n,i)=>{const{cssText:r}=n;let o="";if(r.startsWith("--sxs"))return"";if(t[i-1]&&(o=t[i-1].cssText).startsWith("--sxs")){if(!n.cssRules.length)return"";for(const t in e.rules)if(e.rules[t].group===n)return`--sxs{--sxs:${[...e.rules[t].cache].join(" ")}}${r}`;return n.cssRules.length?`${o}${r}`:""}return r})).join("")},i=()=>{if(e){const{rules:t,sheet:n}=e;if(!n.deleteRule){for(;3===Object(Object(n.cssRules)[0]).type;)n.cssRules.splice(0,1);n.cssRules=[]}for(const e in t)delete t[e]}const r=Object(t).styleSheets||[];for(const t of r)if(gt(t)){for(let r=0,o=t.cssRules;o[r];++r){const a=Object(o[r]);if(1!==a.type)continue;const s=Object(o[r+1]);if(4!==s.type)continue;++r;const{cssText:l}=a;if(!l.startsWith("--sxs"))continue;const h=l.slice(14,-3).trim().split(/\s+/),c=ft[h[0]];c&&(e||(e={sheet:t,reset:i,rules:{},toString:n}),e.rules[c]={group:s,index:r,cache:new Set(h)})}if(e)break}if(!e){const r=(t,e)=>({type:e,cssRules:[],insertRule(t,e){this.cssRules.splice(e,0,r(t,{import:3,undefined:1}[(t.toLowerCase().match(/^@([a-z]+)/)||[])[1]]||4))},get cssText(){return"@media{}"===t?`@media{${[].map.call(this.cssRules,(t=>t.cssText)).join("")}}`:t}});e={sheet:t?(t.head||t).appendChild(document.createElement("style")).sheet:r("","text/css"),rules:{},reset:i,toString:n}}const{sheet:o,rules:a}=e;for(let t=ft.length-1;t>=0;--t){const e=ft[t];if(!a[e]){const n=ft[t+1],i=a[n]?a[n].index:o.cssRules.length;o.insertRule("@media{}",i),o.insertRule(`--sxs{--sxs:${t}}`,i),a[e]={group:o.cssRules[i+1],index:i,cache:new Set([t])}}vt(a[e])}};return i(),e},vt=t=>{const e=t.group;let n=e.cssRules.length;t.apply=t=>{try{e.insertRule(t,n),++n}catch(t){}}},yt=Symbol(),_t=q(),xt=(t,e)=>_t(t,(()=>(...n)=>{let i={type:null,composers:new Set};for(const e of n)if(null!=e)if(e[X]){null==i.type&&(i.type=e[X].type);for(const t of e[X].composers)i.composers.add(t)}else e.constructor!==Object||e.$$typeof?null==i.type&&(i.type=e):i.composers.add(bt(e,t));return null==i.type&&(i.type="span"),i.composers.size||i.composers.add(["PJLV",{},[],[],{},[]]),wt(t,i,e)})),bt=({variants:t,compoundVariants:e,defaultVariants:n,...i},r)=>{const o=`${ot(r.prefix)}c-${pt(i)}`,a=[],s=[],l=Object.create(null),h=[];for(const d in n)l[d]=String(n[d]);if("object"==typeof t&&t)for(const d in t){c=l,u=d,$.call(c,u)||(l[d]="undefined");const e=t[d];for(const t in e){const n={[d]:String(t)};"undefined"===String(t)&&h.push(d);const i=e[t],r=[n,i,!Z(i)];a.push(r)}}var c,u;if("object"==typeof e&&e)for(const d of e){let{css:t,...e}=d;t="object"==typeof t&&t||{};for(const i in e)e[i]=String(e[i]);const n=[e,t,!Z(t)];s.push(n)}return[o,i,a,s,l,h]},wt=(t,e,n)=>{const[i,r,o,a]=St(e.composers),s="function"==typeof e.type||e.type.$$typeof?(t=>{function e(){for(let n=0;n<e[yt].length;n++){const[i,r]=e[yt][n];t.rules[i].apply(r)}return e[yt]=[],null}return e[yt]=[],e.rules={},ft.forEach((t=>e.rules[t]={apply:n=>e[yt].push([t,n])})),e})(n):null,l=(s||n).rules,h=`.${i}${r.length>1?`:where(.${r.slice(1).join(".")})`:""}`,c=c=>{c="object"==typeof c&&c||Mt;const{css:u,...d}=c,p={};for(const t in o)if(delete d[t],t in c){let e=c[t];"object"==typeof e&&e?p[t]={"@initial":o[t],...e}:(e=String(e),p[t]="undefined"!==e||a.has(t)?e:o[t])}else p[t]=o[t];const f=new Set([...r]);for(const[i,r,o,a]of e.composers){n.rules.styled.cache.has(i)||(n.rules.styled.cache.add(i),ht(r,[`.${i}`],[],t,(t=>{l.styled.apply(t)})));const e=Tt(o,p,t.media),s=Tt(a,p,t.media,!0);for(const r of e)if(void 0!==r)for(const[e,o,a]of r){const r=`${i}-${pt(o)}-${e}`;f.add(r);const s=(a?n.rules.resonevar:n.rules.onevar).cache,h=a?l.resonevar:l.onevar;s.has(r)||(s.add(r),ht(o,[`.${r}`],[],t,(t=>{h.apply(t)})))}for(const r of s)if(void 0!==r)for(const[e,o]of r){const r=`${i}-${pt(o)}-${e}`;f.add(r),n.rules.allvar.cache.has(r)||(n.rules.allvar.cache.add(r),ht(o,[`.${r}`],[],t,(t=>{l.allvar.apply(t)})))}}if("object"==typeof u&&u){const e=`${i}-i${pt(u)}-css`;f.add(e),n.rules.inline.cache.has(e)||(n.rules.inline.cache.add(e),ht(u,[`.${e}`],[],t,(t=>{l.inline.apply(t)})))}for(const t of String(c.className||"").trim().split(/\s+/))t&&f.add(t);const g=d.className=[...f].join(" ");return{type:e.type,className:g,selector:h,props:d,toString:()=>g,deferredInjector:s}};return Y(c,{className:i,selector:h,[X]:e,toString:()=>(n.rules.styled.cache.has(i)||c(),i)})},St=t=>{let e="";const n=[],i={},r=[];for(const[o,,,,a,s]of t){""===e&&(e=o),n.push(o),r.push(...s);for(const t in a){const e=a[t];(void 0===i[t]||"undefined"!==e||s.includes(e))&&(i[t]=e)}}return[e,n,i,new Set(r)]},Tt=(t,e,n,i)=>{const r=[];t:for(let[o,a,s]of t){if(s)continue;let t,l=0,h=!1;for(t in o){const i=o[t];let r=e[t];if(r!==i){if("object"!=typeof r||!r)continue t;{let t,e,o=0;for(const a in r){if(i===String(r[a])){if("@initial"!==a){const t=a.slice(1);(e=e||[]).push(t in n?n[t]:a.replace(/^@media ?/,"")),h=!0}l+=o,t=!0}++o}if(e&&e.length&&(a={["@media "+e.join(", ")]:a}),!t)continue t}}}(r[l]=r[l]||[]).push([i?"cv":`${t}-${o[t]}`,a,h])}return r},Mt={},At=q(),Ct=(t,e)=>At(t,(()=>(...n)=>{const i=()=>{for(let i of n){i="object"==typeof i&&i||{};let n=pt(i);if(!e.rules.global.cache.has(n)){if(e.rules.global.cache.add(n),"@import"in i){let t=[].indexOf.call(e.sheet.cssRules,e.rules.themed.group)-1;for(let n of[].concat(i["@import"]))n=n.includes('"')||n.includes("'")?n:`"${n}"`,e.sheet.insertRule(`@import ${n};`,t++);delete i["@import"]}ht(i,[],[],t,(t=>{e.rules.global.apply(t)}))}}return""};return Y(i,{toString:i})})),It=q(),Et=(t,e)=>It(t,(()=>n=>{const i=`${ot(t.prefix)}k-${pt(n)}`,r=()=>{if(!e.rules.global.cache.has(i)){e.rules.global.cache.add(i);const r=[];ht(n,[],[],t,(t=>r.push(t)));const o=`@keyframes ${i}{${r.join("")}}`;e.rules.global.apply(o)}return i};return Y(r,{get name(){return r()},toString:r})})),kt=class{constructor(t,e,n,i){this.token=null==t?"":String(t),this.value=null==e?"":String(e),this.scale=null==n?"":String(n),this.prefix=null==i?"":String(i)}get computedValue(){return"var("+this.variable+")"}get variable(){return"--"+ot(this.prefix)+ot(this.scale)+this.token}toString(){return this.computedValue}},Lt=q(),Dt=(t,e)=>Lt(t,(()=>(n,i)=>{i="object"==typeof n&&n||Object(i);const r=`.${n=(n="string"==typeof n?n:"")||`${ot(t.prefix)}t-${pt(i)}`}`,o={},a=[];for(const e in i){o[e]={};for(const n in i[e]){const r=`--${ot(t.prefix)}${e}-${n}`,s=at(String(i[e][n]),t.prefix,e);o[e][n]=new kt(n,s,e,t.prefix),a.push(`${r}:${s}`)}}const s=()=>{if(a.length&&!e.rules.themed.cache.has(n)){e.rules.themed.cache.add(n);const r=`${i===t.theme?":root,":""}.${n}{${a.join(";")}}`;e.rules.themed.apply(r)}return n};return{...o,get className(){return s()},selector:r,toString:s}})),Pt=q(),Rt=q(),Ot=t=>{const e=(t=>{let e=!1;const n=Pt(t,(t=>{e=!0;const n="prefix"in(t="object"==typeof t&&t||{})?String(t.prefix):"",i="object"==typeof t.media&&t.media||{},r="object"==typeof t.root?t.root||null:globalThis.document||null,o="object"==typeof t.theme&&t.theme||{},a={prefix:n,media:i,theme:o,themeMap:"object"==typeof t.themeMap&&t.themeMap||{...W},utils:"object"==typeof t.utils&&t.utils||{}},s=mt(r),l={css:xt(a,s),globalCss:Ct(a,s),keyframes:Et(a,s),createTheme:Dt(a,s),reset(){s.reset(),l.theme.toString()},theme:{},sheet:s,config:a,prefix:n,getCssText:s.toString,toString:s.toString};return String(l.theme=l.createTheme(o)),l}));return e||n.reset(),n})(t);return e.styled=(({config:t,sheet:e})=>Rt(t,(()=>{const n=xt(t,e);return(...t)=>{const e=n(...t),i=e[X].type,o=r.forwardRef(((t,n)=>{const o=t&&t.as||i,{props:a,deferredInjector:s}=e(t);return delete a.as,a.ref=n,s?r.createElement(r.Fragment,null,r.createElement(o,a),r.createElement(s,null)):r.createElement(o,a)}));return o.className=e.className,o.displayName=`Styled.${i.displayName||i.name||i}`,o.selector=e.selector,o.toString=()=>e.selector,o[X]=e[X],o}})))(e),e};const Nt={toVector:(t,e)=>(void 0===t&&(t=e),Array.isArray(t)?t:[t,t]),add:(t,e)=>[t[0]+e[0],t[1]+e[1]],sub:(t,e)=>[t[0]-e[0],t[1]-e[1]],addTo(t,e){t[0]+=e[0],t[1]+=e[1]},subTo(t,e){t[0]-=e[0],t[1]-=e[1]}};function Ft(t,e,n){return 0===e||Math.abs(e)===1/0?Math.pow(t,5*n):t*e*n/(e+n*t)}function Bt(t,e,n,i=.15){return 0===i?function(t,e,n){return Math.max(e,Math.min(t,n))}(t,e,n):t<e?-Ft(e-t,n-e,i)+e:t>n?+Ft(t-n,n-e,i)+n:t}function zt(t){var e=function(t,e){if("object"!=typeof t||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var i=n.call(t,e||"default");if("object"!=typeof i)return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==typeof e?e:String(e)}function Gt(t,e,n){return(e=zt(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function Vt(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);e&&(i=i.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,i)}return n}function jt(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?Vt(Object(n),!0).forEach((function(e){Gt(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):Vt(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}const Ht={pointer:{start:"down",change:"move",end:"up"},mouse:{start:"down",change:"move",end:"up"},touch:{start:"start",change:"move",end:"end"},gesture:{start:"start",change:"change",end:"end"}};function Wt(t){return t?t[0].toUpperCase()+t.slice(1):""}const Ut=["enter","leave"];function qt(t,e="",n=!1){const i=Ht[t],r=i&&i[e]||e;return"on"+Wt(t)+Wt(r)+(function(t=!1,e){return t&&!Ut.includes(e)}(n,r)?"Capture":"")}const Xt=["gotpointercapture","lostpointercapture"];function Yt(t){let e=t.substring(2).toLowerCase();const n=!!~e.indexOf("passive");n&&(e=e.replace("passive",""));const i=Xt.includes(e)?"capturecapture":"capture",r=!!~e.indexOf(i);return r&&(e=e.replace("capture","")),{device:e,capture:r,passive:n}}function Zt(t){return"touches"in t}function $t(t){return Zt(t)?"touch":"pointerType"in t?t.pointerType:"mouse"}function Kt(t){return Zt(t)?function(t){return"touchend"===t.type||"touchcancel"===t.type?t.changedTouches:t.targetTouches}(t)[0]:t}function Jt(t){return function(t){return Array.from(t.touches).filter((e=>{var n,i;return e.target===t.currentTarget||(null===(n=t.currentTarget)||void 0===n||null===(i=n.contains)||void 0===i?void 0:i.call(n,e.target))}))}(t).map((t=>t.identifier))}function Qt(t){const e=Kt(t);return Zt(t)?e.identifier:e.pointerId}function te(t){const e=Kt(t);return[e.clientX,e.clientY]}function ee(t,...e){return"function"==typeof t?t(...e):t}function ne(){}function ie(...t){return 0===t.length?ne:1===t.length?t[0]:function(){let e;for(const n of t)e=n.apply(this,arguments)||e;return e}}function re(t,e){return Object.assign({},e,t||{})}class oe{constructor(t,e,n){this.ctrl=t,this.args=e,this.key=n,this.state||(this.state={},this.computeValues([0,0]),this.computeInitial(),this.init&&this.init(),this.reset())}get state(){return this.ctrl.state[this.key]}set state(t){this.ctrl.state[this.key]=t}get shared(){return this.ctrl.state.shared}get eventStore(){return this.ctrl.gestureEventStores[this.key]}get timeoutStore(){return this.ctrl.gestureTimeoutStores[this.key]}get config(){return this.ctrl.config[this.key]}get sharedConfig(){return this.ctrl.config.shared}get handler(){return this.ctrl.handlers[this.key]}reset(){const{state:t,shared:e,ingKey:n,args:i}=this;e[n]=t._active=t.active=t._blocked=t._force=!1,t._step=[!1,!1],t.intentional=!1,t._movement=[0,0],t._distance=[0,0],t._direction=[0,0],t._delta=[0,0],t._bounds=[[-1/0,1/0],[-1/0,1/0]],t.args=i,t.axis=void 0,t.memo=void 0,t.elapsedTime=t.timeDelta=0,t.direction=[0,0],t.distance=[0,0],t.overflow=[0,0],t._movementBound=[!1,!1],t.velocity=[0,0],t.movement=[0,0],t.delta=[0,0],t.timeStamp=0}start(t){const e=this.state,n=this.config;e._active||(this.reset(),this.computeInitial(),e._active=!0,e.target=t.target,e.currentTarget=t.currentTarget,e.lastOffset=n.from?ee(n.from,e):e.offset,e.offset=e.lastOffset,e.startTime=e.timeStamp=t.timeStamp)}computeValues(t){const e=this.state;e._values=t,e.values=this.config.transform(t)}computeInitial(){const t=this.state;t._initial=t._values,t.initial=t.values}compute(t){const{state:e,config:n,shared:i}=this;e.args=this.args;let r=0;if(t&&(e.event=t,n.preventDefault&&t.cancelable&&e.event.preventDefault(),e.type=t.type,i.touches=this.ctrl.pointerIds.size||this.ctrl.touchIds.size,i.locked=!!document.pointerLockElement,Object.assign(i,function(t){const e={};if("buttons"in t&&(e.buttons=t.buttons),"shiftKey"in t){const{shiftKey:n,altKey:i,metaKey:r,ctrlKey:o}=t;Object.assign(e,{shiftKey:n,altKey:i,metaKey:r,ctrlKey:o})}return e}(t)),i.down=i.pressed=i.buttons%2==1||i.touches>0,r=t.timeStamp-e.timeStamp,e.timeStamp=t.timeStamp,e.elapsedTime=e.timeStamp-e.startTime),e._active){const t=e._delta.map(Math.abs);Nt.addTo(e._distance,t)}this.axisIntent&&this.axisIntent(t);const[o,a]=e._movement,[s,l]=n.threshold,{_step:h,values:c}=e;if(n.hasCustomTransform?(!1===h[0]&&(h[0]=Math.abs(o)>=s&&c[0]),!1===h[1]&&(h[1]=Math.abs(a)>=l&&c[1])):(!1===h[0]&&(h[0]=Math.abs(o)>=s&&Math.sign(o)*s),!1===h[1]&&(h[1]=Math.abs(a)>=l&&Math.sign(a)*l)),e.intentional=!1!==h[0]||!1!==h[1],!e.intentional)return;const u=[0,0];if(n.hasCustomTransform){const[t,e]=c;u[0]=!1!==h[0]?t-h[0]:0,u[1]=!1!==h[1]?e-h[1]:0}else u[0]=!1!==h[0]?o-h[0]:0,u[1]=!1!==h[1]?a-h[1]:0;this.restrictToAxis&&!e._blocked&&this.restrictToAxis(u);const d=e.offset,p=e._active&&!e._blocked||e.active;p&&(e.first=e._active&&!e.active,e.last=!e._active&&e.active,e.active=i[this.ingKey]=e._active,t&&(e.first&&("bounds"in n&&(e._bounds=ee(n.bounds,e)),this.setup&&this.setup()),e.movement=u,this.computeOffset()));const[f,g]=e.offset,[[m,v],[y,_]]=e._bounds;e.overflow=[f<m?-1:f>v?1:0,g<y?-1:g>_?1:0],e._movementBound[0]=!!e.overflow[0]&&(!1===e._movementBound[0]?e._movement[0]:e._movementBound[0]),e._movementBound[1]=!!e.overflow[1]&&(!1===e._movementBound[1]?e._movement[1]:e._movementBound[1]);const x=e._active&&n.rubberband||[0,0];if(e.offset=function(t,[e,n],[i,r]){const[[o,a],[s,l]]=t;return[Bt(e,o,a,i),Bt(n,s,l,r)]}(e._bounds,e.offset,x),e.delta=Nt.sub(e.offset,d),this.computeMovement(),p&&(!e.last||r>32)){e.delta=Nt.sub(e.offset,d);const t=e.delta.map(Math.abs);Nt.addTo(e.distance,t),e.direction=e.delta.map(Math.sign),e._direction=e._delta.map(Math.sign),!e.first&&r>0&&(e.velocity=[t[0]/r,t[1]/r],e.timeDelta=r)}}emit(){const t=this.state,e=this.shared,n=this.config;if(t._active||this.clean(),(t._blocked||!t.intentional)&&!t._force&&!n.triggerAllEvents)return;const i=this.handler(jt(jt(jt({},e),t),{},{[this.aliasKey]:t.values}));void 0!==i&&(t.memo=i)}clean(){this.eventStore.clean(),this.timeoutStore.clean()}}class ae extends oe{constructor(...t){super(...t),Gt(this,"aliasKey","xy")}reset(){super.reset(),this.state.axis=void 0}init(){this.state.offset=[0,0],this.state.lastOffset=[0,0]}computeOffset(){this.state.offset=Nt.add(this.state.lastOffset,this.state.movement)}computeMovement(){this.state.movement=Nt.sub(this.state.offset,this.state.lastOffset)}axisIntent(t){const e=this.state,n=this.config;if(!e.axis&&t){const i="object"==typeof n.axisThreshold?n.axisThreshold[$t(t)]:n.axisThreshold;e.axis=function([t,e],n){const i=Math.abs(t),r=Math.abs(e);return i>r&&i>n?"x":r>i&&r>n?"y":void 0}(e._movement,i)}e._blocked=(n.lockDirection||!!n.axis)&&!e.axis||!!n.axis&&n.axis!==e.axis}restrictToAxis(t){if(this.config.axis||this.config.lockDirection)switch(this.state.axis){case"x":t[1]=0;break;case"y":t[0]=0}}}const se=t=>t,le={enabled:(t=!0)=>t,eventOptions:(t,e,n)=>jt(jt({},n.shared.eventOptions),t),preventDefault:(t=!1)=>t,triggerAllEvents:(t=!1)=>t,rubberband(t=0){switch(t){case!0:return[.15,.15];case!1:return[0,0];default:return Nt.toVector(t)}},from:t=>"function"==typeof t?t:null!=t?Nt.toVector(t):void 0,transform(t,e,n){const i=t||n.shared.transform;return this.hasCustomTransform=!!i,i||se},threshold:t=>Nt.toVector(t,0)};const he=jt(jt({},le),{},{axis(t,e,{axis:n}){if(this.lockDirection="lock"===n,!this.lockDirection)return n},axisThreshold:(t=0)=>t,bounds(t={}){if("function"==typeof t)return e=>he.bounds(t(e));if("current"in t)return()=>t.current;if("function"==typeof HTMLElement&&t instanceof HTMLElement)return t;const{left:e=-1/0,right:n=1/0,top:i=-1/0,bottom:r=1/0}=t;return[[e,n],[i,r]]}}),ce={ArrowRight:(t,e=1)=>[t*e,0],ArrowLeft:(t,e=1)=>[-1*t*e,0],ArrowUp:(t,e=1)=>[0,-1*t*e],ArrowDown:(t,e=1)=>[0,t*e]};const ue="undefined"!=typeof window&&window.document&&window.document.createElement;function de(){return ue&&"ontouchstart"in window}const pe={isBrowser:ue,gesture:function(){try{return"constructor"in GestureEvent}catch(t){return!1}}(),touch:de(),touchscreen:de()||ue&&window.navigator.maxTouchPoints>1,pointer:ue&&"onpointerdown"in window,pointerLock:ue&&"exitPointerLock"in window.document},fe={mouse:0,touch:0,pen:8},ge=jt(jt({},he),{},{device(t,e,{pointer:{touch:n=!1,lock:i=!1,mouse:r=!1}={}}){return this.pointerLock=i&&pe.pointerLock,pe.touch&&n?"touch":this.pointerLock?"mouse":pe.pointer&&!r?"pointer":pe.touch?"touch":"mouse"},preventScrollAxis(t,e,{preventScroll:n}){if(this.preventScrollDelay="number"==typeof n?n:n||void 0===n&&t?250:void 0,pe.touchscreen&&!1!==n)return t||(void 0!==n?"y":void 0)},pointerCapture(t,e,{pointer:{capture:n=!0,buttons:i=1,keys:r=!0}={}}){return this.pointerButtons=i,this.keys=r,!this.pointerLock&&"pointer"===this.device&&n},threshold(t,e,{filterTaps:n=!1,tapsThreshold:i=3,axis:r}){const o=Nt.toVector(t,n?i:r?1:0);return this.filterTaps=n,this.tapsThreshold=i,o},swipe({velocity:t=.5,distance:e=50,duration:n=250}={}){return{velocity:this.transform(Nt.toVector(t)),distance:this.transform(Nt.toVector(e)),duration:n}},delay(t=0){switch(t){case!0:return 180;case!1:return 0;default:return t}},axisThreshold:t=>t?jt(jt({},fe),t):fe,keyboardDisplacement:(t=10)=>t});jt(jt({},le),{},{device(t,e,{shared:n,pointer:{touch:i=!1}={}}){if(n.target&&!pe.touch&&pe.gesture)return"gesture";if(pe.touch&&i)return"touch";if(pe.touchscreen){if(pe.pointer)return"pointer";if(pe.touch)return"touch"}},bounds(t,e,{scaleBounds:n={},angleBounds:i={}}){const r=t=>{const e=re(ee(n,t),{min:-1/0,max:1/0});return[e.min,e.max]},o=t=>{const e=re(ee(i,t),{min:-1/0,max:1/0});return[e.min,e.max]};return"function"!=typeof n&&"function"!=typeof i?[r(),o()]:t=>[r(t),o(t)]},threshold(t,e,n){this.lockDirection="lock"===n.axis;return Nt.toVector(t,this.lockDirection?[.1,3]:0)},modifierKey:t=>void 0===t?"ctrlKey":t,pinchOnWheel:(t=!0)=>t});jt(jt({},he),{},{mouseOnly:(t=!0)=>t});jt(jt({},he),{},{mouseOnly:(t=!0)=>t});const me=new Map,ve=new Map;const ye={key:"drag",engine:class extends ae{constructor(...t){super(...t),Gt(this,"ingKey","dragging")}reset(){super.reset();const t=this.state;t._pointerId=void 0,t._pointerActive=!1,t._keyboardActive=!1,t._preventScroll=!1,t._delayed=!1,t.swipe=[0,0],t.tap=!1,t.canceled=!1,t.cancel=this.cancel.bind(this)}setup(){const t=this.state;if(t._bounds instanceof HTMLElement){const e=t._bounds.getBoundingClientRect(),n=t.currentTarget.getBoundingClientRect(),i={left:e.left-n.left+t.offset[0],right:e.right-n.right+t.offset[0],top:e.top-n.top+t.offset[1],bottom:e.bottom-n.bottom+t.offset[1]};t._bounds=he.bounds(i)}}cancel(){const t=this.state;t.canceled||(t.canceled=!0,t._active=!1,setTimeout((()=>{this.compute(),this.emit()}),0))}setActive(){this.state._active=this.state._pointerActive||this.state._keyboardActive}clean(){this.pointerClean(),this.state._pointerActive=!1,this.state._keyboardActive=!1,super.clean()}pointerDown(t){const e=this.config,n=this.state;if(null!=t.buttons&&(Array.isArray(e.pointerButtons)?!e.pointerButtons.includes(t.buttons):-1!==e.pointerButtons&&e.pointerButtons!==t.buttons))return;const i=this.ctrl.setEventIds(t);e.pointerCapture&&t.target.setPointerCapture(t.pointerId),i&&i.size>1&&n._pointerActive||(this.start(t),this.setupPointer(t),n._pointerId=Qt(t),n._pointerActive=!0,this.computeValues(te(t)),this.computeInitial(),e.preventScrollAxis&&"mouse"!==$t(t)?(n._active=!1,this.setupScrollPrevention(t)):e.delay>0?(this.setupDelayTrigger(t),e.triggerAllEvents&&(this.compute(t),this.emit())):this.startPointerDrag(t))}startPointerDrag(t){const e=this.state;e._active=!0,e._preventScroll=!0,e._delayed=!1,this.compute(t),this.emit()}pointerMove(t){const e=this.state,n=this.config;if(!e._pointerActive)return;const i=Qt(t);if(void 0!==e._pointerId&&i!==e._pointerId)return;const r=te(t);return document.pointerLockElement===t.target?e._delta=[t.movementX,t.movementY]:(e._delta=Nt.sub(r,e._values),this.computeValues(r)),Nt.addTo(e._movement,e._delta),this.compute(t),e._delayed&&e.intentional?(this.timeoutStore.remove("dragDelay"),e.active=!1,void this.startPointerDrag(t)):n.preventScrollAxis&&!e._preventScroll?e.axis?e.axis===n.preventScrollAxis||"xy"===n.preventScrollAxis?(e._active=!1,void this.clean()):(this.timeoutStore.remove("startPointerDrag"),void this.startPointerDrag(t)):void 0:void this.emit()}pointerUp(t){this.ctrl.setEventIds(t);try{this.config.pointerCapture&&t.target.hasPointerCapture(t.pointerId)&&t.target.releasePointerCapture(t.pointerId)}catch(a){0}const e=this.state,n=this.config;if(!e._active||!e._pointerActive)return;const i=Qt(t);if(void 0!==e._pointerId&&i!==e._pointerId)return;this.state._pointerActive=!1,this.setActive(),this.compute(t);const[r,o]=e._distance;if(e.tap=r<=n.tapsThreshold&&o<=n.tapsThreshold,e.tap&&n.filterTaps)e._force=!0;else{const[t,i]=e._delta,[r,o]=e._movement,[a,s]=n.swipe.velocity,[l,h]=n.swipe.distance,c=n.swipe.duration;if(e.elapsedTime<c){const n=Math.abs(t/e.timeDelta),c=Math.abs(i/e.timeDelta);n>a&&Math.abs(r)>l&&(e.swipe[0]=Math.sign(t)),c>s&&Math.abs(o)>h&&(e.swipe[1]=Math.sign(i))}}this.emit()}pointerClick(t){!this.state.tap&&t.detail>0&&(t.preventDefault(),t.stopPropagation())}setupPointer(t){const e=this.config,n=e.device;e.pointerLock&&t.currentTarget.requestPointerLock(),e.pointerCapture||(this.eventStore.add(this.sharedConfig.window,n,"change",this.pointerMove.bind(this)),this.eventStore.add(this.sharedConfig.window,n,"end",this.pointerUp.bind(this)),this.eventStore.add(this.sharedConfig.window,n,"cancel",this.pointerUp.bind(this)))}pointerClean(){this.config.pointerLock&&document.pointerLockElement===this.state.currentTarget&&document.exitPointerLock()}preventScroll(t){this.state._preventScroll&&t.cancelable&&t.preventDefault()}setupScrollPrevention(t){this.state._preventScroll=!1,function(t){"persist"in t&&"function"==typeof t.persist&&t.persist()}(t);const e=this.eventStore.add(this.sharedConfig.window,"touch","change",this.preventScroll.bind(this),{passive:!1});this.eventStore.add(this.sharedConfig.window,"touch","end",e),this.eventStore.add(this.sharedConfig.window,"touch","cancel",e),this.timeoutStore.add("startPointerDrag",this.startPointerDrag.bind(this),this.config.preventScrollDelay,t)}setupDelayTrigger(t){this.state._delayed=!0,this.timeoutStore.add("dragDelay",(()=>{this.state._step=[0,0],this.startPointerDrag(t)}),this.config.delay)}keyDown(t){const e=ce[t.key];if(e){const n=this.state,i=t.shiftKey?10:t.altKey?.1:1;this.start(t),n._delta=e(this.config.keyboardDisplacement,i),n._keyboardActive=!0,Nt.addTo(n._movement,n._delta),this.compute(t),this.emit()}}keyUp(t){t.key in ce&&(this.state._keyboardActive=!1,this.setActive(),this.compute(t),this.emit())}bind(t){const e=this.config.device;t(e,"start",this.pointerDown.bind(this)),this.config.pointerCapture&&(t(e,"change",this.pointerMove.bind(this)),t(e,"end",this.pointerUp.bind(this)),t(e,"cancel",this.pointerUp.bind(this)),t("lostPointerCapture","",this.pointerUp.bind(this))),this.config.keys&&(t("key","down",this.keyDown.bind(this)),t("key","up",this.keyUp.bind(this))),this.config.filterTaps&&t("click","",this.pointerClick.bind(this),{capture:!0,passive:!1})}},resolver:ge};function _e(t,e){if(null==t)return{};var n,i,r=function(t,e){if(null==t)return{};var n,i,r={},o=Object.keys(t);for(i=0;i<o.length;i++)n=o[i],e.indexOf(n)>=0||(r[n]=t[n]);return r}(t,e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);for(i=0;i<o.length;i++)n=o[i],e.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(t,n)&&(r[n]=t[n])}return r}const xe={target(t){if(t)return()=>"current"in t?t.current:t},enabled:(t=!0)=>t,window:(t=(pe.isBrowser?window:void 0))=>t,eventOptions:({passive:t=!0,capture:e=!1}={})=>({passive:t,capture:e}),transform:t=>t},be=["target","eventOptions","window","enabled","transform"];function we(t={},e){const n={};for(const[i,r]of Object.entries(e))switch(typeof r){case"function":n[i]=r.call(n,t[i],i,t);break;case"object":n[i]=we(t[i],r);break;case"boolean":r&&(n[i]=t[i])}return n}class Se{constructor(t,e){Gt(this,"_listeners",new Set),this._ctrl=t,this._gestureKey=e}add(t,e,n,i,r){const o=this._listeners,a=function(t,e=""){const n=Ht[t];return t+(n&&n[e]||e)}(e,n),s=jt(jt({},this._gestureKey?this._ctrl.config[this._gestureKey].eventOptions:{}),r);t.addEventListener(a,i,s);const l=()=>{t.removeEventListener(a,i,s),o.delete(l)};return o.add(l),l}clean(){this._listeners.forEach((t=>t())),this._listeners.clear()}}class Te{constructor(){Gt(this,"_timeouts",new Map)}add(t,e,n=140,...i){this.remove(t),this._timeouts.set(t,window.setTimeout(e,n,...i))}remove(t){const e=this._timeouts.get(t);e&&window.clearTimeout(e)}clean(){this._timeouts.forEach((t=>{window.clearTimeout(t)})),this._timeouts.clear()}}class Me{constructor(t){Gt(this,"gestures",new Set),Gt(this,"_targetEventStore",new Se(this)),Gt(this,"gestureEventStores",{}),Gt(this,"gestureTimeoutStores",{}),Gt(this,"handlers",{}),Gt(this,"config",{}),Gt(this,"pointerIds",new Set),Gt(this,"touchIds",new Set),Gt(this,"state",{shared:{shiftKey:!1,metaKey:!1,ctrlKey:!1,altKey:!1}}),function(t,e){e.drag&&Ae(t,"drag");e.wheel&&Ae(t,"wheel");e.scroll&&Ae(t,"scroll");e.move&&Ae(t,"move");e.pinch&&Ae(t,"pinch");e.hover&&Ae(t,"hover")}(this,t)}setEventIds(t){return Zt(t)?(this.touchIds=new Set(Jt(t)),this.touchIds):"pointerId"in t?("pointerup"===t.type||"pointercancel"===t.type?this.pointerIds.delete(t.pointerId):"pointerdown"===t.type&&this.pointerIds.add(t.pointerId),this.pointerIds):void 0}applyHandlers(t,e){this.handlers=t,this.nativeHandlers=e}applyConfig(t,e){this.config=function(t,e,n={}){const i=t,{target:r,eventOptions:o,window:a,enabled:s,transform:l}=i,h=_e(i,be);if(n.shared=we({target:r,eventOptions:o,window:a,enabled:s,transform:l},xe),e){const t=ve.get(e);n[e]=we(jt({shared:n.shared},h),t)}else for(const c in h){const t=ve.get(c);t&&(n[c]=we(jt({shared:n.shared},h[c]),t))}return n}(t,e,this.config)}clean(){this._targetEventStore.clean();for(const t of this.gestures)this.gestureEventStores[t].clean(),this.gestureTimeoutStores[t].clean()}effect(){return this.config.shared.target&&this.bind(),()=>this._targetEventStore.clean()}bind(...t){const e=this.config.shared,n={};let i;if(!e.target||(i=e.target(),i)){if(e.enabled){for(const e of this.gestures){const r=this.config[e],o=Ce(n,r.eventOptions,!!i);if(r.enabled){new(me.get(e))(this,t,e).bind(o)}}const r=Ce(n,e.eventOptions,!!i);for(const e in this.nativeHandlers)r(e,"",(n=>this.nativeHandlers[e](jt(jt({},this.state.shared),{},{event:n,args:t}))),void 0,!0)}for(const t in n)n[t]=ie(...n[t]);if(!i)return n;for(const t in n){const{device:e,capture:r,passive:o}=Yt(t);this._targetEventStore.add(i,e,"",n[t],{capture:r,passive:o})}}}}function Ae(t,e){t.gestures.add(e),t.gestureEventStores[e]=new Se(t,e),t.gestureTimeoutStores[e]=new Te}const Ce=(t,e,n)=>(i,r,o,a={},s=!1)=>{var l,h;const c=null!==(l=a.capture)&&void 0!==l?l:e.capture,u=null!==(h=a.passive)&&void 0!==h?h:e.passive;let d=s?i:qt(i,r,c);n&&u&&(d+="Passive"),t[d]=t[d]||[],t[d].push(o)};function Ie(t,e={},n,i){const o=r.useMemo((()=>new Me(t)),[]);if(o.applyHandlers(t,i),o.applyConfig(e,n),r.useEffect(o.effect.bind(o)),r.useEffect((()=>o.clean.bind(o)),[]),void 0===e.target)return o.bind.bind(o)}function Ee(t,e){var n;return n=ye,me.set(n.key,n.engine),ve.set(n.key,n.resolver),Ie({drag:t},e||{},"drag")}function ke(t,e,{checkForDefaultPrevented:n=!0}={}){return function(i){if(t?.(i),!1===n||!i.defaultPrevented)return e?.(i)}}function Le(...t){const e=t[0];if(1===t.length)return e;const n=()=>{const n=t.map((t=>({useScope:t(),scopeName:t.scopeName})));return function(t){const i=n.reduce(((e,{useScope:n,scopeName:i})=>({...e,...n(t)[`__scope${i}`]})),{});return r.useMemo((()=>({[`__scope${e.scopeName}`]:i})),[i])}};return n.scopeName=e.scopeName,n}function De(t){const e=r.useRef(t);return r.useEffect((()=>{e.current=t})),r.useMemo((()=>(...t)=>e.current?.(...t)),[])}var Pe,Re="dismissableLayer.update",Oe="dismissableLayer.pointerDownOutside",Ne="dismissableLayer.focusOutside",Fe=r.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),Be=r.forwardRef(((t,e)=>{const{disableOutsidePointerEvents:n=!1,onEscapeKeyDown:i,onPointerDownOutside:o,onFocusOutside:a,onInteractOutside:h,onDismiss:c,...u}=t,d=r.useContext(Fe),[p,g]=r.useState(null),m=p?.ownerDocument??globalThis?.document,[,v]=r.useState({}),y=s(e,(t=>g(t))),_=Array.from(d.layers),[x]=[...d.layersWithOutsidePointerEventsDisabled].slice(-1),b=_.indexOf(x),w=p?_.indexOf(p):-1,S=d.layersWithOutsidePointerEventsDisabled.size>0,T=w>=b,M=function(t,e=globalThis?.document){const n=De(t),i=r.useRef(!1),o=r.useRef((()=>{}));return r.useEffect((()=>{const t=t=>{if(t.target&&!i.current){let i=function(){Ve(Oe,n,r,{discrete:!0})};const r={originalEvent:t};"touch"===t.pointerType?(e.removeEventListener("click",o.current),o.current=i,e.addEventListener("click",o.current,{once:!0})):i()}else e.removeEventListener("click",o.current);i.current=!1},r=window.setTimeout((()=>{e.addEventListener("pointerdown",t)}),0);return()=>{window.clearTimeout(r),e.removeEventListener("pointerdown",t),e.removeEventListener("click",o.current)}}),[e,n]),{onPointerDownCapture:()=>i.current=!0}}((t=>{const e=t.target,n=[...d.branches].some((t=>t.contains(e)));T&&!n&&(o?.(t),h?.(t),t.defaultPrevented||c?.())}),m),A=function(t,e=globalThis?.document){const n=De(t),i=r.useRef(!1);return r.useEffect((()=>{const t=t=>{if(t.target&&!i.current){Ve(Ne,n,{originalEvent:t},{discrete:!1})}};return e.addEventListener("focusin",t),()=>e.removeEventListener("focusin",t)}),[e,n]),{onFocusCapture:()=>i.current=!0,onBlurCapture:()=>i.current=!1}}((t=>{const e=t.target;[...d.branches].some((t=>t.contains(e)))||(a?.(t),h?.(t),t.defaultPrevented||c?.())}),m);return function(t,e=globalThis?.document){const n=De(t);r.useEffect((()=>{const t=t=>{"Escape"===t.key&&n(t)};return e.addEventListener("keydown",t,{capture:!0}),()=>e.removeEventListener("keydown",t,{capture:!0})}),[n,e])}((t=>{w===d.layers.size-1&&(i?.(t),!t.defaultPrevented&&c&&(t.preventDefault(),c()))}),m),r.useEffect((()=>{if(p)return n&&(0===d.layersWithOutsidePointerEventsDisabled.size&&(Pe=m.body.style.pointerEvents,m.body.style.pointerEvents="none"),d.layersWithOutsidePointerEventsDisabled.add(p)),d.layers.add(p),Ge(),()=>{n&&1===d.layersWithOutsidePointerEventsDisabled.size&&(m.body.style.pointerEvents=Pe)}}),[p,m,n,d]),r.useEffect((()=>()=>{p&&(d.layers.delete(p),d.layersWithOutsidePointerEventsDisabled.delete(p),Ge())}),[p,d]),r.useEffect((()=>{const t=()=>v({});return document.addEventListener(Re,t),()=>document.removeEventListener(Re,t)}),[]),(0,l.jsx)(f.div,{...u,ref:y,style:{pointerEvents:S?T?"auto":"none":void 0,...t.style},onFocusCapture:ke(t.onFocusCapture,A.onFocusCapture),onBlurCapture:ke(t.onBlurCapture,A.onBlurCapture),onPointerDownCapture:ke(t.onPointerDownCapture,M.onPointerDownCapture)})}));Be.displayName="DismissableLayer";var ze=r.forwardRef(((t,e)=>{const n=r.useContext(Fe),i=r.useRef(null),o=s(e,i);return r.useEffect((()=>{const t=i.current;if(t)return n.branches.add(t),()=>{n.branches.delete(t)}}),[n.branches]),(0,l.jsx)(f.div,{...t,ref:o})}));function Ge(){const t=new CustomEvent(Re);document.dispatchEvent(t)}function Ve(t,e,n,{discrete:r}){const o=n.originalEvent.target,a=new CustomEvent(t,{bubbles:!1,cancelable:!0,detail:n});e&&o.addEventListener(t,e,{once:!0}),r?function(t,e){t&&i.flushSync((()=>t.dispatchEvent(e)))}(o,a):o.dispatchEvent(a)}ze.displayName="DismissableLayerBranch";var je=o["useId".toString()]||(()=>{}),He=0;const We=["top","right","bottom","left"],Ue=Math.min,qe=Math.max,Xe=Math.round,Ye=Math.floor,Ze=t=>({x:t,y:t}),$e={left:"right",right:"left",bottom:"top",top:"bottom"},Ke={start:"end",end:"start"};function Je(t,e,n){return qe(t,Ue(e,n))}function Qe(t,e){return"function"==typeof t?t(e):t}function tn(t){return t.split("-")[0]}function en(t){return t.split("-")[1]}function nn(t){return"x"===t?"y":"x"}function rn(t){return"y"===t?"height":"width"}function on(t){return["top","bottom"].includes(tn(t))?"y":"x"}function an(t){return nn(on(t))}function sn(t){return t.replace(/start|end/g,(t=>Ke[t]))}function ln(t){return t.replace(/left|right|bottom|top/g,(t=>$e[t]))}function hn(t){return"number"!=typeof t?function(t){return{top:0,right:0,bottom:0,left:0,...t}}(t):{top:t,right:t,bottom:t,left:t}}function cn(t){const{x:e,y:n,width:i,height:r}=t;return{width:i,height:r,top:n,left:e,right:e+i,bottom:n+r,x:e,y:n}}function un(t,e,n){let{reference:i,floating:r}=t;const o=on(e),a=an(e),s=rn(a),l=tn(e),h="y"===o,c=i.x+i.width/2-r.width/2,u=i.y+i.height/2-r.height/2,d=i[s]/2-r[s]/2;let p;switch(l){case"top":p={x:c,y:i.y-r.height};break;case"bottom":p={x:c,y:i.y+i.height};break;case"right":p={x:i.x+i.width,y:u};break;case"left":p={x:i.x-r.width,y:u};break;default:p={x:i.x,y:i.y}}switch(en(e)){case"start":p[a]-=d*(n&&h?-1:1);break;case"end":p[a]+=d*(n&&h?-1:1)}return p}async function dn(t,e){var n;void 0===e&&(e={});const{x:i,y:r,platform:o,rects:a,elements:s,strategy:l}=t,{boundary:h="clippingAncestors",rootBoundary:c="viewport",elementContext:u="floating",altBoundary:d=!1,padding:p=0}=Qe(e,t),f=hn(p),g=s[d?"floating"===u?"reference":"floating":u],m=cn(await o.getClippingRect({element:null==(n=await(null==o.isElement?void 0:o.isElement(g)))||n?g:g.contextElement||await(null==o.getDocumentElement?void 0:o.getDocumentElement(s.floating)),boundary:h,rootBoundary:c,strategy:l})),v="floating"===u?{x:i,y:r,width:a.floating.width,height:a.floating.height}:a.reference,y=await(null==o.getOffsetParent?void 0:o.getOffsetParent(s.floating)),_=await(null==o.isElement?void 0:o.isElement(y))&&await(null==o.getScale?void 0:o.getScale(y))||{x:1,y:1},x=cn(o.convertOffsetParentRelativeRectToViewportRelativeRect?await o.convertOffsetParentRelativeRectToViewportRelativeRect({elements:s,rect:v,offsetParent:y,strategy:l}):v);return{top:(m.top-x.top+f.top)/_.y,bottom:(x.bottom-m.bottom+f.bottom)/_.y,left:(m.left-x.left+f.left)/_.x,right:(x.right-m.right+f.right)/_.x}}function pn(t,e){return{top:t.top-e.height,right:t.right-e.width,bottom:t.bottom-e.height,left:t.left-e.width}}function fn(t){return We.some((e=>t[e]>=0))}function gn(){return"undefined"!=typeof window}function mn(t){return _n(t)?(t.nodeName||"").toLowerCase():"#document"}function vn(t){var e;return(null==t||null==(e=t.ownerDocument)?void 0:e.defaultView)||window}function yn(t){var e;return null==(e=(_n(t)?t.ownerDocument:t.document)||window.document)?void 0:e.documentElement}function _n(t){return!!gn()&&(t instanceof Node||t instanceof vn(t).Node)}function xn(t){return!!gn()&&(t instanceof Element||t instanceof vn(t).Element)}function bn(t){return!!gn()&&(t instanceof HTMLElement||t instanceof vn(t).HTMLElement)}function wn(t){return!(!gn()||"undefined"==typeof ShadowRoot)&&(t instanceof ShadowRoot||t instanceof vn(t).ShadowRoot)}function Sn(t){const{overflow:e,overflowX:n,overflowY:i,display:r}=En(t);return/auto|scroll|overlay|hidden|clip/.test(e+i+n)&&!["inline","contents"].includes(r)}function Tn(t){return["table","td","th"].includes(mn(t))}function Mn(t){return[":popover-open",":modal"].some((e=>{try{return t.matches(e)}catch(n){return!1}}))}function An(t){const e=Cn(),n=xn(t)?En(t):t;return"none"!==n.transform||"none"!==n.perspective||!!n.containerType&&"normal"!==n.containerType||!e&&!!n.backdropFilter&&"none"!==n.backdropFilter||!e&&!!n.filter&&"none"!==n.filter||["transform","perspective","filter"].some((t=>(n.willChange||"").includes(t)))||["paint","layout","strict","content"].some((t=>(n.contain||"").includes(t)))}function Cn(){return!("undefined"==typeof CSS||!CSS.supports)&&CSS.supports("-webkit-backdrop-filter","none")}function In(t){return["html","body","#document"].includes(mn(t))}function En(t){return vn(t).getComputedStyle(t)}function kn(t){return xn(t)?{scrollLeft:t.scrollLeft,scrollTop:t.scrollTop}:{scrollLeft:t.scrollX,scrollTop:t.scrollY}}function Ln(t){if("html"===mn(t))return t;const e=t.assignedSlot||t.parentNode||wn(t)&&t.host||yn(t);return wn(e)?e.host:e}function Dn(t){const e=Ln(t);return In(e)?t.ownerDocument?t.ownerDocument.body:t.body:bn(e)&&Sn(e)?e:Dn(e)}function Pn(t,e,n){var i;void 0===e&&(e=[]),void 0===n&&(n=!0);const r=Dn(t),o=r===(null==(i=t.ownerDocument)?void 0:i.body),a=vn(r);if(o){const t=Rn(a);return e.concat(a,a.visualViewport||[],Sn(r)?r:[],t&&n?Pn(t):[])}return e.concat(r,Pn(r,[],n))}function Rn(t){return t.parent&&Object.getPrototypeOf(t.parent)?t.frameElement:null}function On(t){const e=En(t);let n=parseFloat(e.width)||0,i=parseFloat(e.height)||0;const r=bn(t),o=r?t.offsetWidth:n,a=r?t.offsetHeight:i,s=Xe(n)!==o||Xe(i)!==a;return s&&(n=o,i=a),{width:n,height:i,$:s}}function Nn(t){return xn(t)?t:t.contextElement}function Fn(t){const e=Nn(t);if(!bn(e))return Ze(1);const n=e.getBoundingClientRect(),{width:i,height:r,$:o}=On(e);let a=(o?Xe(n.width):n.width)/i,s=(o?Xe(n.height):n.height)/r;return a&&Number.isFinite(a)||(a=1),s&&Number.isFinite(s)||(s=1),{x:a,y:s}}const Bn=Ze(0);function zn(t){const e=vn(t);return Cn()&&e.visualViewport?{x:e.visualViewport.offsetLeft,y:e.visualViewport.offsetTop}:Bn}function Gn(t,e,n,i){void 0===e&&(e=!1),void 0===n&&(n=!1);const r=t.getBoundingClientRect(),o=Nn(t);let a=Ze(1);e&&(i?xn(i)&&(a=Fn(i)):a=Fn(t));const s=function(t,e,n){return void 0===e&&(e=!1),!(!n||e&&n!==vn(t))&&e}(o,n,i)?zn(o):Ze(0);let l=(r.left+s.x)/a.x,h=(r.top+s.y)/a.y,c=r.width/a.x,u=r.height/a.y;if(o){const t=vn(o),e=i&&xn(i)?vn(i):i;let n=t,r=Rn(n);for(;r&&i&&e!==n;){const t=Fn(r),e=r.getBoundingClientRect(),i=En(r),o=e.left+(r.clientLeft+parseFloat(i.paddingLeft))*t.x,a=e.top+(r.clientTop+parseFloat(i.paddingTop))*t.y;l*=t.x,h*=t.y,c*=t.x,u*=t.y,l+=o,h+=a,n=vn(r),r=Rn(n)}}return cn({width:c,height:u,x:l,y:h})}function Vn(t,e){const n=kn(t).scrollLeft;return e?e.left+n:Gn(yn(t)).left+n}function jn(t,e,n){void 0===n&&(n=!1);const i=t.getBoundingClientRect();return{x:i.left+e.scrollLeft-(n?0:Vn(t,i)),y:i.top+e.scrollTop}}function Hn(t,e,n){let i;if("viewport"===e)i=function(t,e){const n=vn(t),i=yn(t),r=n.visualViewport;let o=i.clientWidth,a=i.clientHeight,s=0,l=0;if(r){o=r.width,a=r.height;const t=Cn();(!t||t&&"fixed"===e)&&(s=r.offsetLeft,l=r.offsetTop)}return{width:o,height:a,x:s,y:l}}(t,n);else if("document"===e)i=function(t){const e=yn(t),n=kn(t),i=t.ownerDocument.body,r=qe(e.scrollWidth,e.clientWidth,i.scrollWidth,i.clientWidth),o=qe(e.scrollHeight,e.clientHeight,i.scrollHeight,i.clientHeight);let a=-n.scrollLeft+Vn(t);const s=-n.scrollTop;return"rtl"===En(i).direction&&(a+=qe(e.clientWidth,i.clientWidth)-r),{width:r,height:o,x:a,y:s}}(yn(t));else if(xn(e))i=function(t,e){const n=Gn(t,!0,"fixed"===e),i=n.top+t.clientTop,r=n.left+t.clientLeft,o=bn(t)?Fn(t):Ze(1);return{width:t.clientWidth*o.x,height:t.clientHeight*o.y,x:r*o.x,y:i*o.y}}(e,n);else{const n=zn(t);i={x:e.x-n.x,y:e.y-n.y,width:e.width,height:e.height}}return cn(i)}function Wn(t,e){const n=Ln(t);return!(n===e||!xn(n)||In(n))&&("fixed"===En(n).position||Wn(n,e))}function Un(t,e,n){const i=bn(e),r=yn(e),o="fixed"===n,a=Gn(t,!0,o,e);let s={scrollLeft:0,scrollTop:0};const l=Ze(0);if(i||!i&&!o)if(("body"!==mn(e)||Sn(r))&&(s=kn(e)),i){const t=Gn(e,!0,o,e);l.x=t.x+e.clientLeft,l.y=t.y+e.clientTop}else r&&(l.x=Vn(r));const h=!r||i||o?Ze(0):jn(r,s);return{x:a.left+s.scrollLeft-l.x-h.x,y:a.top+s.scrollTop-l.y-h.y,width:a.width,height:a.height}}function qn(t){return"static"===En(t).position}function Xn(t,e){if(!bn(t)||"fixed"===En(t).position)return null;if(e)return e(t);let n=t.offsetParent;return yn(t)===n&&(n=n.ownerDocument.body),n}function Yn(t,e){const n=vn(t);if(Mn(t))return n;if(!bn(t)){let e=Ln(t);for(;e&&!In(e);){if(xn(e)&&!qn(e))return e;e=Ln(e)}return n}let i=Xn(t,e);for(;i&&Tn(i)&&qn(i);)i=Xn(i,e);return i&&In(i)&&qn(i)&&!An(i)?n:i||function(t){let e=Ln(t);for(;bn(e)&&!In(e);){if(An(e))return e;if(Mn(e))return null;e=Ln(e)}return null}(t)||n}const Zn={convertOffsetParentRelativeRectToViewportRelativeRect:function(t){let{elements:e,rect:n,offsetParent:i,strategy:r}=t;const o="fixed"===r,a=yn(i),s=!!e&&Mn(e.floating);if(i===a||s&&o)return n;let l={scrollLeft:0,scrollTop:0},h=Ze(1);const c=Ze(0),u=bn(i);if((u||!u&&!o)&&(("body"!==mn(i)||Sn(a))&&(l=kn(i)),bn(i))){const t=Gn(i);h=Fn(i),c.x=t.x+i.clientLeft,c.y=t.y+i.clientTop}const d=!a||u||o?Ze(0):jn(a,l,!0);return{width:n.width*h.x,height:n.height*h.y,x:n.x*h.x-l.scrollLeft*h.x+c.x+d.x,y:n.y*h.y-l.scrollTop*h.y+c.y+d.y}},getDocumentElement:yn,getClippingRect:function(t){let{element:e,boundary:n,rootBoundary:i,strategy:r}=t;const o=[..."clippingAncestors"===n?Mn(e)?[]:function(t,e){const n=e.get(t);if(n)return n;let i=Pn(t,[],!1).filter((t=>xn(t)&&"body"!==mn(t))),r=null;const o="fixed"===En(t).position;let a=o?Ln(t):t;for(;xn(a)&&!In(a);){const e=En(a),n=An(a);n||"fixed"!==e.position||(r=null),(o?!n&&!r:!n&&"static"===e.position&&r&&["absolute","fixed"].includes(r.position)||Sn(a)&&!n&&Wn(t,a))?i=i.filter((t=>t!==a)):r=e,a=Ln(a)}return e.set(t,i),i}(e,this._c):[].concat(n),i],a=o[0],s=o.reduce(((t,n)=>{const i=Hn(e,n,r);return t.top=qe(i.top,t.top),t.right=Ue(i.right,t.right),t.bottom=Ue(i.bottom,t.bottom),t.left=qe(i.left,t.left),t}),Hn(e,a,r));return{width:s.right-s.left,height:s.bottom-s.top,x:s.left,y:s.top}},getOffsetParent:Yn,getElementRects:async function(t){const e=this.getOffsetParent||Yn,n=this.getDimensions,i=await n(t.floating);return{reference:Un(t.reference,await e(t.floating),t.strategy),floating:{x:0,y:0,width:i.width,height:i.height}}},getClientRects:function(t){return Array.from(t.getClientRects())},getDimensions:function(t){const{width:e,height:n}=On(t);return{width:e,height:n}},getScale:Fn,isElement:xn,isRTL:function(t){return"rtl"===En(t).direction}};function $n(t,e,n,i){void 0===i&&(i={});const{ancestorScroll:r=!0,ancestorResize:o=!0,elementResize:a="function"==typeof ResizeObserver,layoutShift:s="function"==typeof IntersectionObserver,animationFrame:l=!1}=i,h=Nn(t),c=r||o?[...h?Pn(h):[],...Pn(e)]:[];c.forEach((t=>{r&&t.addEventListener("scroll",n,{passive:!0}),o&&t.addEventListener("resize",n)}));const u=h&&s?function(t,e){let n,i=null;const r=yn(t);function o(){var t;clearTimeout(n),null==(t=i)||t.disconnect(),i=null}return function a(s,l){void 0===s&&(s=!1),void 0===l&&(l=1),o();const{left:h,top:c,width:u,height:d}=t.getBoundingClientRect();if(s||e(),!u||!d)return;const p={rootMargin:-Ye(c)+"px "+-Ye(r.clientWidth-(h+u))+"px "+-Ye(r.clientHeight-(c+d))+"px "+-Ye(h)+"px",threshold:qe(0,Ue(1,l))||1};let f=!0;function g(t){const e=t[0].intersectionRatio;if(e!==l){if(!f)return a();e?a(!1,e):n=setTimeout((()=>{a(!1,1e-7)}),1e3)}f=!1}try{i=new IntersectionObserver(g,{...p,root:r.ownerDocument})}catch(m){i=new IntersectionObserver(g,p)}i.observe(t)}(!0),o}(h,n):null;let d,p=-1,f=null;a&&(f=new ResizeObserver((t=>{let[i]=t;i&&i.target===h&&f&&(f.unobserve(e),cancelAnimationFrame(p),p=requestAnimationFrame((()=>{var t;null==(t=f)||t.observe(e)}))),n()})),h&&!l&&f.observe(h),f.observe(e));let g=l?Gn(t):null;return l&&function e(){const i=Gn(t);!g||i.x===g.x&&i.y===g.y&&i.width===g.width&&i.height===g.height||n();g=i,d=requestAnimationFrame(e)}(),n(),()=>{var t;c.forEach((t=>{r&&t.removeEventListener("scroll",n),o&&t.removeEventListener("resize",n)})),null==u||u(),null==(t=f)||t.disconnect(),f=null,l&&cancelAnimationFrame(d)}}const Kn=function(t){return void 0===t&&(t=0),{name:"offset",options:t,async fn(e){var n,i;const{x:r,y:o,placement:a,middlewareData:s}=e,l=await async function(t,e){const{placement:n,platform:i,elements:r}=t,o=await(null==i.isRTL?void 0:i.isRTL(r.floating)),a=tn(n),s=en(n),l="y"===on(n),h=["left","top"].includes(a)?-1:1,c=o&&l?-1:1,u=Qe(e,t);let{mainAxis:d,crossAxis:p,alignmentAxis:f}="number"==typeof u?{mainAxis:u,crossAxis:0,alignmentAxis:null}:{mainAxis:u.mainAxis||0,crossAxis:u.crossAxis||0,alignmentAxis:u.alignmentAxis};return s&&"number"==typeof f&&(p="end"===s?-1*f:f),l?{x:p*c,y:d*h}:{x:d*h,y:p*c}}(e,t);return a===(null==(n=s.offset)?void 0:n.placement)&&null!=(i=s.arrow)&&i.alignmentOffset?{}:{x:r+l.x,y:o+l.y,data:{...l,placement:a}}}}},Jn=function(t){return void 0===t&&(t={}),{name:"shift",options:t,async fn(e){const{x:n,y:i,placement:r}=e,{mainAxis:o=!0,crossAxis:a=!1,limiter:s={fn:t=>{let{x:e,y:n}=t;return{x:e,y:n}}},...l}=Qe(t,e),h={x:n,y:i},c=await dn(e,l),u=on(tn(r)),d=nn(u);let p=h[d],f=h[u];if(o){const t="y"===d?"bottom":"right";p=Je(p+c["y"===d?"top":"left"],p,p-c[t])}if(a){const t="y"===u?"bottom":"right";f=Je(f+c["y"===u?"top":"left"],f,f-c[t])}const g=s.fn({...e,[d]:p,[u]:f});return{...g,data:{x:g.x-n,y:g.y-i,enabled:{[d]:o,[u]:a}}}}}},Qn=function(t){return void 0===t&&(t={}),{name:"flip",options:t,async fn(e){var n,i;const{placement:r,middlewareData:o,rects:a,initialPlacement:s,platform:l,elements:h}=e,{mainAxis:c=!0,crossAxis:u=!0,fallbackPlacements:d,fallbackStrategy:p="bestFit",fallbackAxisSideDirection:f="none",flipAlignment:g=!0,...m}=Qe(t,e);if(null!=(n=o.arrow)&&n.alignmentOffset)return{};const v=tn(r),y=on(s),_=tn(s)===s,x=await(null==l.isRTL?void 0:l.isRTL(h.floating)),b=d||(_||!g?[ln(s)]:function(t){const e=ln(t);return[sn(t),e,sn(e)]}(s)),w="none"!==f;!d&&w&&b.push(...function(t,e,n,i){const r=en(t);let o=function(t,e,n){const i=["left","right"],r=["right","left"],o=["top","bottom"],a=["bottom","top"];switch(t){case"top":case"bottom":return n?e?r:i:e?i:r;case"left":case"right":return e?o:a;default:return[]}}(tn(t),"start"===n,i);return r&&(o=o.map((t=>t+"-"+r)),e&&(o=o.concat(o.map(sn)))),o}(s,g,f,x));const S=[s,...b],T=await dn(e,m),M=[];let A=(null==(i=o.flip)?void 0:i.overflows)||[];if(c&&M.push(T[v]),u){const t=function(t,e,n){void 0===n&&(n=!1);const i=en(t),r=an(t),o=rn(r);let a="x"===r?i===(n?"end":"start")?"right":"left":"start"===i?"bottom":"top";return e.reference[o]>e.floating[o]&&(a=ln(a)),[a,ln(a)]}(r,a,x);M.push(T[t[0]],T[t[1]])}if(A=[...A,{placement:r,overflows:M}],!M.every((t=>t<=0))){var C,I;const t=((null==(C=o.flip)?void 0:C.index)||0)+1,e=S[t];if(e)return{data:{index:t,overflows:A},reset:{placement:e}};let n=null==(I=A.filter((t=>t.overflows[0]<=0)).sort(((t,e)=>t.overflows[1]-e.overflows[1]))[0])?void 0:I.placement;if(!n)switch(p){case"bestFit":{var E;const t=null==(E=A.filter((t=>{if(w){const e=on(t.placement);return e===y||"y"===e}return!0})).map((t=>[t.placement,t.overflows.filter((t=>t>0)).reduce(((t,e)=>t+e),0)])).sort(((t,e)=>t[1]-e[1]))[0])?void 0:E[0];t&&(n=t);break}case"initialPlacement":n=s}if(r!==n)return{reset:{placement:n}}}return{}}}},ti=function(t){return void 0===t&&(t={}),{name:"size",options:t,async fn(e){var n,i;const{placement:r,rects:o,platform:a,elements:s}=e,{apply:l=()=>{},...h}=Qe(t,e),c=await dn(e,h),u=tn(r),d=en(r),p="y"===on(r),{width:f,height:g}=o.floating;let m,v;"top"===u||"bottom"===u?(m=u,v=d===(await(null==a.isRTL?void 0:a.isRTL(s.floating))?"start":"end")?"left":"right"):(v=u,m="end"===d?"top":"bottom");const y=g-c.top-c.bottom,_=f-c.left-c.right,x=Ue(g-c[m],y),b=Ue(f-c[v],_),w=!e.middlewareData.shift;let S=x,T=b;if(null!=(n=e.middlewareData.shift)&&n.enabled.x&&(T=_),null!=(i=e.middlewareData.shift)&&i.enabled.y&&(S=y),w&&!d){const t=qe(c.left,0),e=qe(c.right,0),n=qe(c.top,0),i=qe(c.bottom,0);p?T=f-2*(0!==t||0!==e?t+e:qe(c.left,c.right)):S=g-2*(0!==n||0!==i?n+i:qe(c.top,c.bottom))}await l({...e,availableWidth:T,availableHeight:S});const M=await a.getDimensions(s.floating);return f!==M.width||g!==M.height?{reset:{rects:!0}}:{}}}},ei=function(t){return void 0===t&&(t={}),{name:"hide",options:t,async fn(e){const{rects:n}=e,{strategy:i="referenceHidden",...r}=Qe(t,e);switch(i){case"referenceHidden":{const t=pn(await dn(e,{...r,elementContext:"reference"}),n.reference);return{data:{referenceHiddenOffsets:t,referenceHidden:fn(t)}}}case"escaped":{const t=pn(await dn(e,{...r,altBoundary:!0}),n.floating);return{data:{escapedOffsets:t,escaped:fn(t)}}}default:return{}}}}},ni=t=>({name:"arrow",options:t,async fn(e){const{x:n,y:i,placement:r,rects:o,platform:a,elements:s,middlewareData:l}=e,{element:h,padding:c=0}=Qe(t,e)||{};if(null==h)return{};const u=hn(c),d={x:n,y:i},p=an(r),f=rn(p),g=await a.getDimensions(h),m="y"===p,v=m?"top":"left",y=m?"bottom":"right",_=m?"clientHeight":"clientWidth",x=o.reference[f]+o.reference[p]-d[p]-o.floating[f],b=d[p]-o.reference[p],w=await(null==a.getOffsetParent?void 0:a.getOffsetParent(h));let S=w?w[_]:0;S&&await(null==a.isElement?void 0:a.isElement(w))||(S=s.floating[_]||o.floating[f]);const T=x/2-b/2,M=S/2-g[f]/2-1,A=Ue(u[v],M),C=Ue(u[y],M),I=A,E=S-g[f]-C,k=S/2-g[f]/2+T,L=Je(I,k,E),D=!l.arrow&&null!=en(r)&&k!==L&&o.reference[f]/2-(k<I?A:C)-g[f]/2<0,P=D?k<I?k-I:k-E:0;return{[p]:d[p]+P,data:{[p]:L,centerOffset:k-L-P,...D&&{alignmentOffset:P}},reset:D}}}),ii=function(t){return void 0===t&&(t={}),{options:t,fn(e){const{x:n,y:i,placement:r,rects:o,middlewareData:a}=e,{offset:s=0,mainAxis:l=!0,crossAxis:h=!0}=Qe(t,e),c={x:n,y:i},u=on(r),d=nn(u);let p=c[d],f=c[u];const g=Qe(s,e),m="number"==typeof g?{mainAxis:g,crossAxis:0}:{mainAxis:0,crossAxis:0,...g};if(l){const t="y"===d?"height":"width",e=o.reference[d]-o.floating[t]+m.mainAxis,n=o.reference[d]+o.reference[t]-m.mainAxis;p<e?p=e:p>n&&(p=n)}if(h){var v,y;const t="y"===d?"width":"height",e=["top","left"].includes(tn(r)),n=o.reference[u]-o.floating[t]+(e&&(null==(v=a.offset)?void 0:v[u])||0)+(e?0:m.crossAxis),i=o.reference[u]+o.reference[t]+(e?0:(null==(y=a.offset)?void 0:y[u])||0)-(e?m.crossAxis:0);f<n?f=n:f>i&&(f=i)}return{[d]:p,[u]:f}}}},ri=(t,e,n)=>{const i=new Map,r={platform:Zn,...n},o={...r.platform,_c:i};return(async(t,e,n)=>{const{placement:i="bottom",strategy:r="absolute",middleware:o=[],platform:a}=n,s=o.filter(Boolean),l=await(null==a.isRTL?void 0:a.isRTL(e));let h=await a.getElementRects({reference:t,floating:e,strategy:r}),{x:c,y:u}=un(h,i,l),d=i,p={},f=0;for(let g=0;g<s.length;g++){const{name:n,fn:o}=s[g],{x:m,y:v,data:y,reset:_}=await o({x:c,y:u,initialPlacement:i,placement:d,strategy:r,middlewareData:p,rects:h,platform:a,elements:{reference:t,floating:e}});c=null!=m?m:c,u=null!=v?v:u,p={...p,[n]:{...p[n],...y}},_&&f<=50&&(f++,"object"==typeof _&&(_.placement&&(d=_.placement),_.rects&&(h=!0===_.rects?await a.getElementRects({reference:t,floating:e,strategy:r}):_.rects),({x:c,y:u}=un(h,d,l))),g=-1)}return{x:c,y:u,placement:d,strategy:r,middlewareData:p}})(t,e,{...r,platform:o})};var oi="undefined"!=typeof document?r.useLayoutEffect:r.useEffect;function ai(t,e){if(t===e)return!0;if(typeof t!=typeof e)return!1;if("function"==typeof t&&t.toString()===e.toString())return!0;let n,i,r;if(t&&e&&"object"==typeof t){if(Array.isArray(t)){if(n=t.length,n!==e.length)return!1;for(i=n;0!=i--;)if(!ai(t[i],e[i]))return!1;return!0}if(r=Object.keys(t),n=r.length,n!==Object.keys(e).length)return!1;for(i=n;0!=i--;)if(!{}.hasOwnProperty.call(e,r[i]))return!1;for(i=n;0!=i--;){const n=r[i];if(("_owner"!==n||!t.$$typeof)&&!ai(t[n],e[n]))return!1}return!0}return t!=t&&e!=e}function si(t){if("undefined"==typeof window)return 1;return(t.ownerDocument.defaultView||window).devicePixelRatio||1}function li(t,e){const n=si(t);return Math.round(e*n)/n}function hi(t){const e=r.useRef(t);return oi((()=>{e.current=t})),e}const ci=t=>({name:"arrow",options:t,fn(e){const{element:n,padding:i}="function"==typeof t?t(e):t;return n&&(r=n,{}.hasOwnProperty.call(r,"current"))?null!=n.current?ni({element:n.current,padding:i}).fn(e):{}:n?ni({element:n,padding:i}).fn(e):{};var r}}),ui=(t,e)=>({...Jn(t),options:[t,e]}),di=(t,e)=>({...ii(t),options:[t,e]}),pi=(t,e)=>({...Qn(t),options:[t,e]}),fi=(t,e)=>({...ti(t),options:[t,e]}),gi=(t,e)=>({...ei(t),options:[t,e]}),mi=(t,e)=>({...ci(t),options:[t,e]});var vi=r.forwardRef(((t,e)=>{const{children:n,width:i=10,height:r=5,...o}=t;return(0,l.jsx)(f.svg,{...o,ref:e,width:i,height:r,viewBox:"0 0 30 10",preserveAspectRatio:"none",children:t.asChild?n:(0,l.jsx)("polygon",{points:"0,0 30,0 15,10"})})}));vi.displayName="Arrow";var yi=vi;function _i(...t){const e=t[0];if(1===t.length)return e;const n=()=>{const n=t.map((t=>({useScope:t(),scopeName:t.scopeName})));return function(t){const i=n.reduce(((e,{useScope:n,scopeName:i})=>({...e,...n(t)[`__scope${i}`]})),{});return r.useMemo((()=>({[`__scope${e.scopeName}`]:i})),[i])}};return n.scopeName=e.scopeName,n}var xi="Popper",[bi,wi]=function(t,e=[]){let n=[];const i=()=>{const e=n.map((t=>r.createContext(t)));return function(n){const i=n?.[t]||e;return r.useMemo((()=>({[`__scope${t}`]:{...n,[t]:i}})),[n,i])}};return i.scopeName=t,[function(e,i){const o=r.createContext(i),a=n.length;function s(e){const{scope:n,children:i,...s}=e,h=n?.[t][a]||o,c=r.useMemo((()=>s),Object.values(s));return(0,l.jsx)(h.Provider,{value:c,children:i})}return n=[...n,i],s.displayName=e+"Provider",[s,function(n,s){const l=s?.[t][a]||o,h=r.useContext(l);if(h)return h;if(void 0!==i)return i;throw new Error(`\`${n}\` must be used within \`${e}\``)}]},_i(i,...e)]}(xi),[Si,Ti]=bi(xi),Mi=t=>{const{__scopePopper:e,children:n}=t,[i,o]=r.useState(null);return(0,l.jsx)(Si,{scope:e,anchor:i,onAnchorChange:o,children:n})};Mi.displayName=xi;var Ai="PopperAnchor",Ci=r.forwardRef(((t,e)=>{const{__scopePopper:n,virtualRef:i,...o}=t,a=Ti(Ai,n),h=r.useRef(null),c=s(e,h);return r.useEffect((()=>{a.onAnchorChange(i?.current||h.current)})),i?null:(0,l.jsx)(f.div,{...o,ref:c})}));Ci.displayName=Ai;var Ii="PopperContent",[Ei,ki]=bi(Ii),Li=r.forwardRef(((t,e)=>{const{__scopePopper:n,side:o="bottom",sideOffset:a=0,align:h="center",alignOffset:c=0,arrowPadding:u=0,avoidCollisions:d=!0,collisionBoundary:p=[],collisionPadding:m=0,sticky:v="partial",hideWhenDetached:y=!1,updatePositionStrategy:_="optimized",onPlaced:x,...b}=t,w=Ti(Ii,n),[S,T]=r.useState(null),M=s(e,(t=>T(t))),[A,C]=r.useState(null),I=function(t){const[e,n]=r.useState(void 0);return g((()=>{if(t){n({width:t.offsetWidth,height:t.offsetHeight});const e=new ResizeObserver((e=>{if(!Array.isArray(e))return;if(!e.length)return;const i=e[0];let r,o;if("borderBoxSize"in i){const t=i.borderBoxSize,e=Array.isArray(t)?t[0]:t;r=e.inlineSize,o=e.blockSize}else r=t.offsetWidth,o=t.offsetHeight;n({width:r,height:o})}));return e.observe(t,{box:"border-box"}),()=>e.unobserve(t)}n(void 0)}),[t]),e}(A),E=I?.width??0,k=I?.height??0,L=o+("center"!==h?"-"+h:""),D="number"==typeof m?m:{top:0,right:0,bottom:0,left:0,...m},P=Array.isArray(p)?p:[p],R=P.length>0,O={padding:D,boundary:P.filter(Oi),altBoundary:R},{refs:N,floatingStyles:F,placement:B,isPositioned:z,middlewareData:G}=function(t){void 0===t&&(t={});const{placement:e="bottom",strategy:n="absolute",middleware:o=[],platform:a,elements:{reference:s,floating:l}={},transform:h=!0,whileElementsMounted:c,open:u}=t,[d,p]=r.useState({x:0,y:0,strategy:n,placement:e,middlewareData:{},isPositioned:!1}),[f,g]=r.useState(o);ai(f,o)||g(o);const[m,v]=r.useState(null),[y,_]=r.useState(null),x=r.useCallback((t=>{t!==T.current&&(T.current=t,v(t))}),[]),b=r.useCallback((t=>{t!==M.current&&(M.current=t,_(t))}),[]),w=s||m,S=l||y,T=r.useRef(null),M=r.useRef(null),A=r.useRef(d),C=null!=c,I=hi(c),E=hi(a),k=hi(u),L=r.useCallback((()=>{if(!T.current||!M.current)return;const t={placement:e,strategy:n,middleware:f};E.current&&(t.platform=E.current),ri(T.current,M.current,t).then((t=>{const e={...t,isPositioned:!1!==k.current};D.current&&!ai(A.current,e)&&(A.current=e,i.flushSync((()=>{p(e)})))}))}),[f,e,n,E,k]);oi((()=>{!1===u&&A.current.isPositioned&&(A.current.isPositioned=!1,p((t=>({...t,isPositioned:!1}))))}),[u]);const D=r.useRef(!1);oi((()=>(D.current=!0,()=>{D.current=!1})),[]),oi((()=>{if(w&&(T.current=w),S&&(M.current=S),w&&S){if(I.current)return I.current(w,S,L);L()}}),[w,S,L,I,C]);const P=r.useMemo((()=>({reference:T,floating:M,setReference:x,setFloating:b})),[x,b]),R=r.useMemo((()=>({reference:w,floating:S})),[w,S]),O=r.useMemo((()=>{const t={position:n,left:0,top:0};if(!R.floating)return t;const e=li(R.floating,d.x),i=li(R.floating,d.y);return h?{...t,transform:"translate("+e+"px, "+i+"px)",...si(R.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:e,top:i}}),[n,h,R.floating,d.x,d.y]);return r.useMemo((()=>({...d,update:L,refs:P,elements:R,floatingStyles:O})),[d,L,P,R,O])}({strategy:"fixed",placement:L,whileElementsMounted:(...t)=>$n(...t,{animationFrame:"always"===_}),elements:{reference:w.anchor},middleware:[(V={mainAxis:a+k,alignmentAxis:c},{...Kn(V),options:[V,j]}),d&&ui({mainAxis:!0,crossAxis:!1,limiter:"partial"===v?di():void 0,...O}),d&&pi({...O}),fi({...O,apply:({elements:t,rects:e,availableWidth:n,availableHeight:i})=>{const{width:r,height:o}=e.reference,a=t.floating.style;a.setProperty("--radix-popper-available-width",`${n}px`),a.setProperty("--radix-popper-available-height",`${i}px`),a.setProperty("--radix-popper-anchor-width",`${r}px`),a.setProperty("--radix-popper-anchor-height",`${o}px`)}}),A&&mi({element:A,padding:u}),Ni({arrowWidth:E,arrowHeight:k}),y&&gi({strategy:"referenceHidden",...O})]});var V,j;const[H,W]=Fi(B),U=De(x);g((()=>{z&&U?.()}),[z,U]);const q=G.arrow?.x,X=G.arrow?.y,Y=0!==G.arrow?.centerOffset,[Z,$]=r.useState();return g((()=>{S&&$(window.getComputedStyle(S).zIndex)}),[S]),(0,l.jsx)("div",{ref:N.setFloating,"data-radix-popper-content-wrapper":"",style:{...F,transform:z?F.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:Z,"--radix-popper-transform-origin":[G.transformOrigin?.x,G.transformOrigin?.y].join(" "),...G.hide?.referenceHidden&&{visibility:"hidden",pointerEvents:"none"}},dir:t.dir,children:(0,l.jsx)(Ei,{scope:n,placedSide:H,onArrowChange:C,arrowX:q,arrowY:X,shouldHideArrow:Y,children:(0,l.jsx)(f.div,{"data-side":H,"data-align":W,...b,ref:M,style:{...b.style,animation:z?void 0:"none"}})})})}));Li.displayName=Ii;var Di="PopperArrow",Pi={top:"bottom",right:"left",bottom:"top",left:"right"},Ri=r.forwardRef((function(t,e){const{__scopePopper:n,...i}=t,r=ki(Di,n),o=Pi[r.placedSide];return(0,l.jsx)("span",{ref:r.onArrowChange,style:{position:"absolute",left:r.arrowX,top:r.arrowY,[o]:0,transformOrigin:{top:"",right:"0 0",bottom:"center 0",left:"100% 0"}[r.placedSide],transform:{top:"translateY(100%)",right:"translateY(50%) rotate(90deg) translateX(-50%)",bottom:"rotate(180deg)",left:"translateY(50%) rotate(-90deg) translateX(50%)"}[r.placedSide],visibility:r.shouldHideArrow?"hidden":void 0},children:(0,l.jsx)(yi,{...i,ref:e,style:{...i.style,display:"block"}})})}));function Oi(t){return null!==t}Ri.displayName=Di;var Ni=t=>({name:"transformOrigin",options:t,fn(e){const{placement:n,rects:i,middlewareData:r}=e,o=0!==r.arrow?.centerOffset,a=o?0:t.arrowWidth,s=o?0:t.arrowHeight,[l,h]=Fi(n),c={start:"0%",center:"50%",end:"100%"}[h],u=(r.arrow?.x??0)+a/2,d=(r.arrow?.y??0)+s/2;let p="",f="";return"bottom"===l?(p=o?c:`${u}px`,f=-s+"px"):"top"===l?(p=o?c:`${u}px`,f=`${i.floating.height+s}px`):"right"===l?(p=-s+"px",f=o?c:`${d}px`):"left"===l&&(p=`${i.floating.width+s}px`,f=o?c:`${d}px`),{data:{x:p,y:f}}}});function Fi(t){const[e,n="center"]=t.split("-");return[e,n]}var Bi=Mi,zi=Ci,Gi=Li,Vi=Ri;var ji=t=>{const{present:e,children:n}=t,i=function(t){const[e,n]=r.useState(),i=r.useRef({}),o=r.useRef(t),a=r.useRef("none"),s=t?"mounted":"unmounted",[l,h]=function(t,e){return r.useReducer(((t,n)=>e[t][n]??t),t)}(s,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return r.useEffect((()=>{const t=Hi(i.current);a.current="mounted"===l?t:"none"}),[l]),g((()=>{const e=i.current,n=o.current;if(n!==t){const i=a.current,r=Hi(e);if(t)h("MOUNT");else if("none"===r||"none"===e?.display)h("UNMOUNT");else{h(n&&i!==r?"ANIMATION_OUT":"UNMOUNT")}o.current=t}}),[t,h]),g((()=>{if(e){let t;const n=e.ownerDocument.defaultView??window,r=r=>{const a=Hi(i.current).includes(r.animationName);if(r.target===e&&a&&(h("ANIMATION_END"),!o.current)){const i=e.style.animationFillMode;e.style.animationFillMode="forwards",t=n.setTimeout((()=>{"forwards"===e.style.animationFillMode&&(e.style.animationFillMode=i)}))}},s=t=>{t.target===e&&(a.current=Hi(i.current))};return e.addEventListener("animationstart",s),e.addEventListener("animationcancel",r),e.addEventListener("animationend",r),()=>{n.clearTimeout(t),e.removeEventListener("animationstart",s),e.removeEventListener("animationcancel",r),e.removeEventListener("animationend",r)}}h("ANIMATION_END")}),[e,h]),{isPresent:["mounted","unmountSuspended"].includes(l),ref:r.useCallback((t=>{t&&(i.current=getComputedStyle(t)),n(t)}),[])}}(e),o="function"==typeof n?n({present:i.isPresent}):r.Children.only(n),a=s(i.ref,function(t){let e=Object.getOwnPropertyDescriptor(t.props,"ref")?.get,n=e&&"isReactWarning"in e&&e.isReactWarning;if(n)return t.ref;if(e=Object.getOwnPropertyDescriptor(t,"ref")?.get,n=e&&"isReactWarning"in e&&e.isReactWarning,n)return t.props.ref;return t.props.ref||t.ref}(o));return"function"==typeof n||i.isPresent?r.cloneElement(o,{ref:a}):null};function Hi(t){return t?.animationName||"none"}function Wi({prop:t,defaultProp:e,onChange:n=()=>{}}){const[i,o]=function({defaultProp:t,onChange:e}){const n=r.useState(t),[i]=n,o=r.useRef(i),a=De(e);return r.useEffect((()=>{o.current!==i&&(a(i),o.current=i)}),[i,o,a]),n}({defaultProp:e,onChange:n}),a=void 0!==t,s=a?t:i,l=De(n);return[s,r.useCallback((e=>{if(a){const n="function"==typeof e?e(t):e;n!==t&&l(n)}else o(e)}),[a,t,o,l])]}ji.displayName="Presence";var Ui=r.forwardRef(((t,e)=>(0,l.jsx)(f.span,{...t,ref:e,style:{position:"absolute",border:0,width:1,height:1,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",wordWrap:"normal",...t.style}})));Ui.displayName="VisuallyHidden";var qi=Ui,[Xi,Yi]=function(t,e=[]){let n=[];const i=()=>{const e=n.map((t=>r.createContext(t)));return function(n){const i=n?.[t]||e;return r.useMemo((()=>({[`__scope${t}`]:{...n,[t]:i}})),[n,i])}};return i.scopeName=t,[function(e,i){const o=r.createContext(i),a=n.length;n=[...n,i];const s=e=>{const{scope:n,children:i,...s}=e,h=n?.[t]?.[a]||o,c=r.useMemo((()=>s),Object.values(s));return(0,l.jsx)(h.Provider,{value:c,children:i})};return s.displayName=e+"Provider",[s,function(n,s){const l=s?.[t]?.[a]||o,h=r.useContext(l);if(h)return h;if(void 0!==i)return i;throw new Error(`\`${n}\` must be used within \`${e}\``)}]},Le(i,...e)]}("Tooltip",[wi]),Zi=wi(),$i="TooltipProvider",Ki=700,Ji="tooltip.open",[Qi,tr]=Xi($i),er=t=>{const{__scopeTooltip:e,delayDuration:n=Ki,skipDelayDuration:i=300,disableHoverableContent:o=!1,children:a}=t,[s,h]=r.useState(!0),c=r.useRef(!1),u=r.useRef(0);return r.useEffect((()=>{const t=u.current;return()=>window.clearTimeout(t)}),[]),(0,l.jsx)(Qi,{scope:e,isOpenDelayed:s,delayDuration:n,onOpen:r.useCallback((()=>{window.clearTimeout(u.current),h(!1)}),[]),onClose:r.useCallback((()=>{window.clearTimeout(u.current),u.current=window.setTimeout((()=>h(!0)),i)}),[i]),isPointerInTransitRef:c,onPointerInTransitChange:r.useCallback((t=>{c.current=t}),[]),disableHoverableContent:o,children:a})};er.displayName=$i;var nr="Tooltip",[ir,rr]=Xi(nr),or=t=>{const{__scopeTooltip:e,children:n,open:i,defaultOpen:o=!1,onOpenChange:a,disableHoverableContent:s,delayDuration:h}=t,c=tr(nr,t.__scopeTooltip),u=Zi(e),[d,p]=r.useState(null),f=function(t){const[e,n]=r.useState(je());return g((()=>{t||n((t=>t??String(He++)))}),[t]),t||(e?`radix-${e}`:"")}(),m=r.useRef(0),v=s??c.disableHoverableContent,y=h??c.delayDuration,_=r.useRef(!1),[x=!1,b]=Wi({prop:i,defaultProp:o,onChange:t=>{t?(c.onOpen(),document.dispatchEvent(new CustomEvent(Ji))):c.onClose(),a?.(t)}}),w=r.useMemo((()=>x?_.current?"delayed-open":"instant-open":"closed"),[x]),S=r.useCallback((()=>{window.clearTimeout(m.current),_.current=!1,b(!0)}),[b]),T=r.useCallback((()=>{window.clearTimeout(m.current),b(!1)}),[b]),M=r.useCallback((()=>{window.clearTimeout(m.current),m.current=window.setTimeout((()=>{_.current=!0,b(!0)}),y)}),[y,b]);return r.useEffect((()=>()=>window.clearTimeout(m.current)),[]),(0,l.jsx)(Bi,{...u,children:(0,l.jsx)(ir,{scope:e,contentId:f,open:x,stateAttribute:w,trigger:d,onTriggerChange:p,onTriggerEnter:r.useCallback((()=>{c.isOpenDelayed?M():S()}),[c.isOpenDelayed,M,S]),onTriggerLeave:r.useCallback((()=>{v?T():window.clearTimeout(m.current)}),[T,v]),onOpen:S,onClose:T,disableHoverableContent:v,children:n})})};or.displayName=nr;var ar="TooltipTrigger",sr=r.forwardRef(((t,e)=>{const{__scopeTooltip:n,...i}=t,o=rr(ar,n),a=tr(ar,n),h=Zi(n),c=s(e,r.useRef(null),o.onTriggerChange),u=r.useRef(!1),d=r.useRef(!1),p=r.useCallback((()=>u.current=!1),[]);return r.useEffect((()=>()=>document.removeEventListener("pointerup",p)),[p]),(0,l.jsx)(zi,{asChild:!0,...h,children:(0,l.jsx)(f.button,{"aria-describedby":o.open?o.contentId:void 0,"data-state":o.stateAttribute,...i,ref:c,onPointerMove:ke(t.onPointerMove,(t=>{"touch"!==t.pointerType&&(d.current||a.isPointerInTransitRef.current||(o.onTriggerEnter(),d.current=!0))})),onPointerLeave:ke(t.onPointerLeave,(()=>{o.onTriggerLeave(),d.current=!1})),onPointerDown:ke(t.onPointerDown,(()=>{u.current=!0,document.addEventListener("pointerup",p,{once:!0})})),onFocus:ke(t.onFocus,(()=>{u.current||o.onOpen()})),onBlur:ke(t.onBlur,o.onClose),onClick:ke(t.onClick,o.onClose)})})}));sr.displayName=ar;var lr="TooltipPortal",[hr,cr]=Xi(lr,{forceMount:void 0}),ur=t=>{const{__scopeTooltip:e,forceMount:n,children:i,container:r}=t,o=rr(lr,e);return(0,l.jsx)(hr,{scope:e,forceMount:n,children:(0,l.jsx)(ji,{present:n||o.open,children:(0,l.jsx)(m,{asChild:!0,container:r,children:i})})})};ur.displayName=lr;var dr="TooltipContent",pr=r.forwardRef(((t,e)=>{const n=cr(dr,t.__scopeTooltip),{forceMount:i=n.forceMount,side:r="top",...o}=t,a=rr(dr,t.__scopeTooltip);return(0,l.jsx)(ji,{present:i||a.open,children:a.disableHoverableContent?(0,l.jsx)(vr,{side:r,...o,ref:e}):(0,l.jsx)(fr,{side:r,...o,ref:e})})})),fr=r.forwardRef(((t,e)=>{const n=rr(dr,t.__scopeTooltip),i=tr(dr,t.__scopeTooltip),o=r.useRef(null),a=s(e,o),[h,c]=r.useState(null),{trigger:u,onClose:d}=n,p=o.current,{onPointerInTransitChange:f}=i,g=r.useCallback((()=>{c(null),f(!1)}),[f]),m=r.useCallback(((t,e)=>{const n=t.currentTarget,i={x:t.clientX,y:t.clientY},r=function(t,e,n=5){const i=[];switch(e){case"top":i.push({x:t.x-n,y:t.y+n},{x:t.x+n,y:t.y+n});break;case"bottom":i.push({x:t.x-n,y:t.y-n},{x:t.x+n,y:t.y-n});break;case"left":i.push({x:t.x+n,y:t.y-n},{x:t.x+n,y:t.y+n});break;case"right":i.push({x:t.x-n,y:t.y-n},{x:t.x-n,y:t.y+n})}return i}(i,function(t,e){const n=Math.abs(e.top-t.y),i=Math.abs(e.bottom-t.y),r=Math.abs(e.right-t.x),o=Math.abs(e.left-t.x);switch(Math.min(n,i,r,o)){case o:return"left";case r:return"right";case n:return"top";case i:return"bottom";default:throw new Error("unreachable")}}(i,n.getBoundingClientRect())),o=function(t){const e=t.slice();return e.sort(((t,e)=>t.x<e.x?-1:t.x>e.x?1:t.y<e.y?-1:t.y>e.y?1:0)),function(t){if(t.length<=1)return t.slice();const e=[];for(let i=0;i<t.length;i++){const n=t[i];for(;e.length>=2;){const t=e[e.length-1],i=e[e.length-2];if(!((t.x-i.x)*(n.y-i.y)>=(t.y-i.y)*(n.x-i.x)))break;e.pop()}e.push(n)}e.pop();const n=[];for(let i=t.length-1;i>=0;i--){const e=t[i];for(;n.length>=2;){const t=n[n.length-1],i=n[n.length-2];if(!((t.x-i.x)*(e.y-i.y)>=(t.y-i.y)*(e.x-i.x)))break;n.pop()}n.push(e)}return n.pop(),1===e.length&&1===n.length&&e[0].x===n[0].x&&e[0].y===n[0].y?e:e.concat(n)}(e)}([...r,...function(t){const{top:e,right:n,bottom:i,left:r}=t;return[{x:r,y:e},{x:n,y:e},{x:n,y:i},{x:r,y:i}]}(e.getBoundingClientRect())]);c(o),f(!0)}),[f]);return r.useEffect((()=>()=>g()),[g]),r.useEffect((()=>{if(u&&p){const t=t=>m(t,p),e=t=>m(t,u);return u.addEventListener("pointerleave",t),p.addEventListener("pointerleave",e),()=>{u.removeEventListener("pointerleave",t),p.removeEventListener("pointerleave",e)}}}),[u,p,m,g]),r.useEffect((()=>{if(h){const t=t=>{const e=t.target,n={x:t.clientX,y:t.clientY},i=u?.contains(e)||p?.contains(e),r=!function(t,e){const{x:n,y:i}=t;let r=!1;for(let o=0,a=e.length-1;o<e.length;a=o++){const t=e[o].x,s=e[o].y,l=e[a].x,h=e[a].y;s>i!=h>i&&n<(l-t)*(i-s)/(h-s)+t&&(r=!r)}return r}(n,h);i?g():r&&(g(),d())};return document.addEventListener("pointermove",t),()=>document.removeEventListener("pointermove",t)}}),[u,p,h,d,g]),(0,l.jsx)(vr,{...t,ref:a})})),[gr,mr]=Xi(nr,{isInside:!1}),vr=r.forwardRef(((t,e)=>{const{__scopeTooltip:n,children:i,"aria-label":o,onEscapeKeyDown:a,onPointerDownOutside:s,...h}=t,c=rr(dr,n),d=Zi(n),{onClose:p}=c;return r.useEffect((()=>(document.addEventListener(Ji,p),()=>document.removeEventListener(Ji,p))),[p]),r.useEffect((()=>{if(c.trigger){const t=t=>{const e=t.target;e?.contains(c.trigger)&&p()};return window.addEventListener("scroll",t,{capture:!0}),()=>window.removeEventListener("scroll",t,{capture:!0})}}),[c.trigger,p]),(0,l.jsx)(Be,{asChild:!0,disableOutsidePointerEvents:!1,onEscapeKeyDown:a,onPointerDownOutside:s,onFocusOutside:t=>t.preventDefault(),onDismiss:p,children:(0,l.jsxs)(Gi,{"data-state":c.stateAttribute,...d,...h,ref:e,style:{...h.style,"--radix-tooltip-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-tooltip-content-available-width":"var(--radix-popper-available-width)","--radix-tooltip-content-available-height":"var(--radix-popper-available-height)","--radix-tooltip-trigger-width":"var(--radix-popper-anchor-width)","--radix-tooltip-trigger-height":"var(--radix-popper-anchor-height)"},children:[(0,l.jsx)(u,{children:i}),(0,l.jsx)(gr,{scope:n,isInside:!0,children:(0,l.jsx)(qi,{id:c.contentId,role:"tooltip",children:o||i})})]})})}));pr.displayName=dr;var yr="TooltipArrow",_r=r.forwardRef(((t,e)=>{const{__scopeTooltip:n,...i}=t,r=Zi(n);return mr(yr,n).isInside?null:(0,l.jsx)(Vi,{...r,...i,ref:e})}));_r.displayName=yr;var xr=or,br=sr,wr=pr,Sr=_r;function Tr(t,e){if(null==t)return{};var n,i,r=function(t,e){if(null==t)return{};var n,i,r={},o=Object.keys(t);for(i=0;i<o.length;i++)n=o[i],e.indexOf(n)>=0||(r[n]=t[n]);return r}(t,e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);for(i=0;i<o.length;i++)n=o[i],e.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(t,n)&&(r[n]=t[n])}return r}let Mr;!function(t){t[t.UNSUPPORTED_INPUT=0]="UNSUPPORTED_INPUT",t[t.NO_COMPONENT_FOR_TYPE=1]="NO_COMPONENT_FOR_TYPE",t[t.UNKNOWN_INPUT=2]="UNKNOWN_INPUT",t[t.DUPLICATE_KEYS=3]="DUPLICATE_KEYS",t[t.ALREADY_REGISTERED_TYPE=4]="ALREADY_REGISTERED_TYPE",t[t.CLIPBOARD_ERROR=5]="CLIPBOARD_ERROR",t[t.THEME_ERROR=6]="THEME_ERROR",t[t.PATH_DOESNT_EXIST=7]="PATH_DOESNT_EXIST",t[t.INPUT_TYPE_OVERRIDE=8]="INPUT_TYPE_OVERRIDE",t[t.EMPTY_KEY=9]="EMPTY_KEY"}(Mr||(Mr={}));const Ar={[Mr.UNSUPPORTED_INPUT]:(t,e)=>[`An input with type \`${t}\` input was found at path \`${e}\` but it's not supported yet.`],[Mr.NO_COMPONENT_FOR_TYPE]:(t,e)=>[`Type \`${t}\` found at path \`${e}\` can't be displayed in panel because no component supports it yet.`],[Mr.UNKNOWN_INPUT]:(t,e)=>[`input at path \`${t}\` is not recognized.`,e],[Mr.DUPLICATE_KEYS]:(t,e,n)=>[`Key \`${t}\` of path \`${e}\` already exists at path \`${n}\`. Even nested keys need to be unique. Rename one of the keys.`],[Mr.ALREADY_REGISTERED_TYPE]:t=>[`Type ${t} has already been registered. You can't register a component with the same type.`],[Mr.CLIPBOARD_ERROR]:t=>["Error copying the value",t],[Mr.THEME_ERROR]:(t,e)=>[`Error accessing the theme \`${t}.${e}\` value.`],[Mr.PATH_DOESNT_EXIST]:t=>[`Error getting the value at path \`${t}\`. There is probably an error in your \`render\` function.`],[Mr.PATH_DOESNT_EXIST]:t=>[`Error accessing the value at path \`${t}\``],[Mr.INPUT_TYPE_OVERRIDE]:(t,e,n)=>[`Input at path \`${t}\` already exists with type: \`${e}\`. Its type cannot be overridden with type \`${n}\`.`],[Mr.EMPTY_KEY]:()=>["Keys can not be empty, if you want to hide a label use whitespace."]};function Cr(t,e,...n){const[i,...r]=Ar[e](...n);console[t]("LEVA: "+i,...r)}const Ir=Cr.bind(null,"warn"),Er=Cr.bind(null,"log"),kr=["value"],Lr=["schema"],Dr=["value"],Pr=[],Rr={};function Or(t){let{value:e}=t,n=Tr(t,kr);for(let i of Pr){const t=i(e,n);if(t)return t}}function Nr(t,e){let{schema:n}=e,i=Tr(e,Lr);t in Rr?Ir(Mr.ALREADY_REGISTERED_TYPE,t):(Pr.push(((e,i)=>n(e,i)&&t)),Rr[t]=i)}function Fr(t,e,n,i){const{normalize:r}=Rr[t];if(r)return r(e,n,i);if("object"!=typeof e||!("value"in e))return{value:e};const{value:o}=e;return{value:o,settings:Tr(e,Dr)}}function Br(t,e,n){const{format:i}=Rr[t];return i?i(e,n):e}function zr(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function Gr(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);e&&(i=i.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,i)}return n}function Vr(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?Gr(Object(n),!0).forEach((function(e){zr(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):Gr(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}const jr=(t,e,n)=>t>n?n:t<e?e:t,Hr=t=>{if(""===t||"number"==typeof t)return t;try{const e=to(t);if(!isNaN(e))return e}catch(e){}return parseFloat(t)},Wr=Math.log(10);function Ur(t){let e=Math.abs(+String(t).replace(".",""));if(0===e)return.01;for(;0!==e&&e%10==0;)e/=10;const n=Math.floor(Math.log(e)/Wr)+1,i=Math.floor(Math.log10(Math.abs(t))),r=Math.pow(10,i-n);return Math.max(r,.001)}const qr=(t,e,n)=>{if(n===e)return 0;return(jr(t,e,n)-e)/(n-e)},Xr=(t,e,n)=>t*(n-e)+e,Yr=/\(([0-9+\-*/^ .]+)\)/,Zr=/(\d+(?:\.\d+)?) ?\^ ?(\d+(?:\.\d+)?)/,$r=/(\d+(?:\.\d+)?) ?\* ?(\d+(?:\.\d+)?)/,Kr=/(\d+(?:\.\d+)?) ?\/ ?(\d+(?:\.\d+)?)/,Jr=/(\d+(?:\.\d+)?) ?\+ ?(\d+(?:\.\d+)?)/,Qr=/(\d+(?:\.\d+)?) ?- ?(\d+(?:\.\d+)?)/;function to(t){if(isNaN(Number(t))){if(Yr.test(t)){const e=t.replace(Yr,((t,e)=>String(to(e))));return to(e)}if(Zr.test(t)){return to(t.replace(Zr,((t,e,n)=>String(Math.pow(Number(e),Number(n))))))}if($r.test(t)){const e=t.replace($r,((t,e,n)=>String(Number(e)*Number(n))));return to(e)}if(Kr.test(t)){const e=t.replace(Kr,((t,e,n)=>{if(0!=n)return String(Number(e)/Number(n));throw new Error("Division by zero")}));return to(e)}if(Jr.test(t)){const e=t.replace(Jr,((t,e,n)=>String(Number(e)+Number(n))));return to(e)}if(Qr.test(t)){const e=t.replace(Qr,((t,e,n)=>String(Number(e)-Number(n))));return to(e)}return Number(t)}return Number(t)}function eo(t){return"[object Object]"===Object.prototype.toString.call(t)}let no,io;!function(t){t.BUTTON="BUTTON",t.BUTTON_GROUP="BUTTON_GROUP",t.MONITOR="MONITOR",t.FOLDER="FOLDER"}(no||(no={})),function(t){t.SELECT="SELECT",t.IMAGE="IMAGE",t.NUMBER="NUMBER",t.COLOR="COLOR",t.STRING="STRING",t.BOOLEAN="BOOLEAN",t.INTERVAL="INTERVAL",t.VECTOR3D="VECTOR3D",t.VECTOR2D="VECTOR2D"}(io||(io={}));const ro=["type","__customInput"],oo=["render","label","optional","order","disabled","hint","onChange","onEditStart","onEditEnd","transient"],ao=["type"];function so(t,e,n={},i){var r,o;if("object"!=typeof t||Array.isArray(t))return{type:i,input:t,options:Vr({key:e,label:e,optional:!1,disabled:!1,order:0},n)};if("__customInput"in t){const{type:n,__customInput:i}=t;return so(i,e,Tr(t,ro),n)}const{render:a,label:s,optional:l,order:h=0,disabled:c,hint:u,onChange:d,onEditStart:p,onEditEnd:f,transient:g}=t,m=Tr(t,oo),v=Vr({render:a,key:e,label:null!=s?s:e,hint:u,transient:null!=g?g:!!d,onEditStart:p,onEditEnd:f,disabled:c,optional:l,order:h},n);let y,{type:_}=m,x=Tr(m,ao);return _=null!=i?i:_,_ in no?{type:_,input:x,options:v}:(i&&eo(x)&&"value"in x?y=x.value:y=eo(b=x)&&0===Object.keys(b).length?void 0:x,{type:_,input:y,options:Vr(Vr({},v),{},{onChange:d,optional:null!==(r=v.optional)&&void 0!==r&&r,disabled:null!==(o=v.disabled)&&void 0!==o&&o})});var b}function lo(t,e,n,i,r){const{value:o,type:a,settings:s}=t;t.value=co({type:a,value:o,settings:s},e,n,i),t.fromPanel=r}const ho=function(t,e,n){this.type="LEVA_ERROR",this.message="LEVA: "+t,this.previousValue=e,this.error=n};function co({type:t,value:e,settings:n},i,r,o){const a="SELECT"!==t&&"function"==typeof i?i(e):i;let s;try{s=function(t,e,n,i,r,o){const{sanitize:a}=Rr[t];return a?a(e,n,i,r,o):e}(t,a,n,e,r,o)}catch(l){throw new ho(`The value \`${i}\` did not result in a correct value.`,e,l)}return _(s,e)?e:s}const uo=(t,e,n=!1)=>{let i=0;return function(){const r=arguments,o=n&&!i,a=()=>t.apply(this,r);window.clearTimeout(i),i=window.setTimeout(a,e),o&&a()}},po=t=>t.shiftKey?5:t.altKey?.2:1;const fo=["value"],go=["min","max"],mo=(t,{min:e=-1/0,max:n=1/0,suffix:i})=>{const r=parseFloat(t);if(""===t||isNaN(r))throw Error("Invalid number");const o=jr(r,e,n);return i?o+i:o},vo=t=>{let{value:e}=t,n=Tr(t,fo);const{min:i=-1/0,max:r=1/0}=n,o=Tr(n,go);let a=parseFloat(e);const s="string"==typeof e?e.substring((""+a).length):void 0;a=jr(a,i,r);let l=n.step;l||(Number.isFinite(i)?l=Number.isFinite(r)?+(Math.abs(r-i)/100).toPrecision(1):+(Math.abs(a-i)/100).toPrecision(1):Number.isFinite(r)&&(l=+(Math.abs(r-a)/100).toPrecision(1)));const h=l?10*Ur(l):Ur(a);l=l||h/10;return{value:s?a+s:a,settings:Vr({initialValue:a,step:l,pad:Math.round(jr(Math.log10(1/h),0,2)),min:i,max:r,suffix:s},o)}},yo=(t,{step:e,initialValue:n})=>n+Math.round((t-n)/e)*e;var _o=Object.freeze({__proto__:null,schema:t=>{if("number"==typeof t)return!0;if("string"==typeof t){const e=parseFloat(t);if(isNaN(e))return!1;return t.substring((""+e).length).trim().length<4}return!1},sanitize:mo,format:(t,{pad:e=0,suffix:n})=>{const i=parseFloat(t).toFixed(e);return n?i+n:i},normalize:vo,sanitizeStep:yo});function xo(){return xo=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(t[i]=n[i])}return t},xo.apply(this,arguments)}const bo=(0,r.createContext)({});function wo(){return(0,r.useContext)(bo)}const So=(0,r.createContext)(null),To=(0,r.createContext)(null),Mo=(0,r.createContext)(null);function Ao(){return(0,r.useContext)(To)}function Co({children:t,store:e}){return r.createElement(To.Provider,{value:e},t)}const Io=()=>({colors:{elevation1:"#292d39",elevation2:"#181c20",elevation3:"#373c4b",accent1:"#0066dc",accent2:"#007bff",accent3:"#3c93ff",highlight1:"#535760",highlight2:"#8c92a4",highlight3:"#fefefe",vivid1:"#ffcc00",folderWidgetColor:"$highlight2",folderTextColor:"$highlight3",toolTipBackground:"$highlight3",toolTipText:"$elevation2"},radii:{xs:"2px",sm:"3px",lg:"10px"},space:{xs:"3px",sm:"6px",md:"10px",rowGap:"7px",colGap:"7px"},fonts:{mono:"ui-monospace, SFMono-Regular, Menlo, 'Roboto Mono', monospace",sans:"system-ui, sans-serif"},fontSizes:{root:"11px",toolTip:"$root"},sizes:{rootWidth:"280px",controlWidth:"160px",numberInputMinWidth:"38px",scrubberWidth:"8px",scrubberHeight:"16px",rowHeight:"24px",folderTitleHeight:"20px",checkboxSize:"16px",joystickWidth:"100px",joystickHeight:"100px",colorPickerWidth:"$controlWidth",colorPickerHeight:"100px",imagePreviewWidth:"$controlWidth",imagePreviewHeight:"100px",monitorHeight:"60px",titleBarHeight:"39px"},shadows:{level1:"0 0 9px 0 #00000088",level2:"0 4px 14px #00000033"},borderWidths:{root:"0px",input:"1px",focus:"1px",hover:"1px",active:"1px",folder:"1px"},fontWeights:{label:"normal",folder:"normal",button:"normal"}});function Eo(t,e){const[n,i]=t.split(" "),r={};return"none"!==n&&(r.boxShadow=`${e.inset?"inset ":""}0 0 0 $borderWidths${[e.key]} $colors${"default"!==n&&n||e.borderColor}`),i&&(r.backgroundColor=i),r}const ko={$inputStyle:()=>t=>Eo(t,{key:"$input",borderColor:"$highlight1",inset:!0}),$focusStyle:()=>t=>Eo(t,{key:"$focus",borderColor:"$accent2"}),$hoverStyle:()=>t=>Eo(t,{key:"$hover",borderColor:"$accent1",inset:!0}),$activeStyle:()=>t=>Eo(t,{key:"$active",borderColor:"$accent1",inset:!0})},{styled:Lo,css:Do,createTheme:Po,globalCss:Ro,keyframes:Oo}=Ot({prefix:"leva",theme:Io(),utils:Vr(Vr({},ko),{},{$flex:()=>({display:"flex",alignItems:"center"}),$flexCenter:()=>({display:"flex",alignItems:"center",justifyContent:"center"}),$reset:()=>({outline:"none",fontSize:"inherit",fontWeight:"inherit",color:"inherit",fontFamily:"inherit",border:"none",backgroundColor:"transparent",appearance:"none"}),$draggable:()=>({touchAction:"none",WebkitUserDrag:"none",userSelect:"none"}),$focus:t=>({"&:focus":ko.$focusStyle()(t)}),$focusWithin:t=>({"&:focus-within":ko.$focusStyle()(t)}),$hover:t=>({"&:hover":ko.$hoverStyle()(t)}),$active:t=>({"&:active":ko.$activeStyle()(t)})})}),No=Ro({".leva__panel__dragged":{WebkitUserDrag:"none",userSelect:"none",input:{userSelect:"none"},"*":{cursor:"ew-resize !important"}}});function Fo(t,e){const{theme:n}=(0,r.useContext)(So);if(!(t in n)||!(e in n[t]))return Ir(Mr.THEME_ERROR,t,e),"";let i=e;for(;;){let e=n[t][i];if("string"!=typeof e||"$"!==e.charAt(0))return e;i=e.substr(1)}}const Bo=Lo("input",{$reset:"",padding:"0 $sm",width:0,minWidth:0,flex:1,height:"100%",variants:{levaType:{number:{textAlign:"right"}},as:{textarea:{padding:"$sm"}}}}),zo=Lo("div",{$draggable:"",height:"100%",$flexCenter:"",position:"relative",padding:"0 $xs",fontSize:"0.8em",opacity:.8,cursor:"default",touchAction:"none",[`& + ${Bo}`]:{paddingLeft:0}}),Go=Lo(zo,{cursor:"ew-resize",marginRight:"-$xs",textTransform:"uppercase",opacity:.3,"&:hover":{opacity:1},variants:{dragging:{true:{backgroundColor:"$accent2",opacity:1}}}}),Vo=Lo("div",{$flex:"",position:"relative",borderRadius:"$sm",overflow:"hidden",color:"inherit",height:"$rowHeight",backgroundColor:"$elevation3",$inputStyle:"$elevation1",$hover:"",$focusWithin:"",variants:{textArea:{true:{height:"auto"}}}}),jo=["innerLabel","value","onUpdate","onChange","onKeyDown","type","id","inputType","rows"],Ho=["onUpdate"];function Wo(t){let{innerLabel:e,value:n,onUpdate:i,onChange:o,onKeyDown:a,type:s,id:l,inputType:h="text",rows:c=0}=t,u=Tr(t,jo);const{id:d,emitOnEditStart:p,emitOnEditEnd:f,disabled:g}=wo(),m=l||d,v=(0,r.useRef)(null),y=c>0,_=y?"textarea":"input",x=(0,r.useCallback)((t=>e=>{const n=e.currentTarget.value;t(n)}),[]);r.useEffect((()=>{const t=v.current,e=x((t=>{i(t),f()}));return null==t||t.addEventListener("blur",e),()=>null==t?void 0:t.removeEventListener("blur",e)}),[x,i,f]);const b=(0,r.useCallback)((t=>{"Enter"===t.key&&x(i)(t)}),[x,i]),w=Object.assign({as:_},y?{rows:c}:{},u);return r.createElement(Vo,{textArea:y},e&&"string"==typeof e?r.createElement(zo,null,e):e,r.createElement(Bo,xo({levaType:s,ref:v,id:m,type:h,autoComplete:"off",spellCheck:"false",value:n,onChange:x(o),onFocus:()=>p(),onKeyPress:b,onKeyDown:a,disabled:g},w)))}function Uo(t){let{onUpdate:e}=t,n=Tr(t,Ho);const i=(0,r.useCallback)((t=>e(Hr(t))),[e]),o=(0,r.useCallback)((t=>{const n="ArrowUp"===t.key?1:"ArrowDown"===t.key?-1:0;if(n){t.preventDefault();const i=t.altKey?.1:t.shiftKey?10:1;e((t=>parseFloat(t)+n*i))}}),[e]);return r.createElement(Wo,xo({},n,{onUpdate:i,onKeyDown:o,type:"number"}))}const qo=Lo("div",{}),Xo=Lo("div",{position:"relative",background:"$elevation2",transition:"height 300ms ease",variants:{fill:{true:{},false:{}},flat:{false:{},true:{}},isRoot:{true:{},false:{paddingLeft:"$md","&::after":{content:'""',position:"absolute",left:0,top:0,width:"$borderWidths$folder",height:"100%",backgroundColor:"$folderWidgetColor",opacity:.4,transform:"translateX(-50%)"}}}},compoundVariants:[{isRoot:!0,fill:!1,css:{overflowY:"auto",maxHeight:"calc(100vh - 20px - $$titleBarHeight)"}},{isRoot:!0,flat:!1,css:{borderRadius:"$lg"}}]}),Yo=Lo("div",{$flex:"",color:"$folderTextColor",userSelect:"none",cursor:"pointer",height:"$folderTitleHeight",fontWeight:"$folder","> svg":{marginLeft:-4,marginRight:4,cursor:"pointer",fill:"$folderWidgetColor",opacity:.6},"&:hover > svg":{fill:"$folderWidgetColor"},[`&:hover + ${Xo}::after`]:{opacity:.6},[`${qo}:hover > & + ${Xo}::after`]:{opacity:.6},[`${qo}:hover > & > svg`]:{opacity:1}}),Zo=Lo("div",{position:"relative",display:"grid",gridTemplateColumns:"100%",rowGap:"$rowGap",transition:"opacity 250ms ease",variants:{toggled:{true:{opacity:1,transitionDelay:"250ms"},false:{opacity:0,transitionDelay:"0ms",pointerEvents:"none"}},isRoot:{true:{"& > div":{paddingLeft:"$md",paddingRight:"$md"},"& > div:first-of-type":{paddingTop:"$sm"},"& > div:last-of-type":{paddingBottom:"$sm"},[`> ${qo}:not(:first-of-type)`]:{paddingTop:"$sm",marginTop:"$md",borderTop:"$borderWidths$folder solid $colors$elevation1"}}}}}),$o=Lo("div",{position:"relative",zIndex:100,display:"grid",rowGap:"$rowGap",gridTemplateRows:"minmax($sizes$rowHeight, max-content)",alignItems:"center",color:"$highlight2",[`${Zo} > &`]:{"&:first-of-type":{marginTop:"$rowGap"},"&:last-of-type":{marginBottom:"$rowGap"}},variants:{disabled:{true:{pointerEvents:"none"},false:{"&:hover,&:focus-within":{color:"$highlight3"}}}}}),Ko=Lo($o,{gridTemplateColumns:"auto $sizes$controlWidth",columnGap:"$colGap"}),Jo=Lo("div",{$flex:"",height:"100%",position:"relative",overflow:"hidden","& > div":{marginLeft:"$colGap",padding:"0 $xs",opacity:.4},"& > div:hover":{opacity:.8},"& > div > svg":{display:"none",cursor:"pointer",width:13,minWidth:13,height:13,backgroundColor:"$elevation2"},"&:hover > div > svg":{display:"block"},variants:{align:{top:{height:"100%",alignItems:"flex-start",paddingTop:"$sm"}}}}),Qo=Lo("input",{$reset:"",height:0,width:0,opacity:0,margin:0,"& + label":{position:"relative",$flexCenter:"",height:"100%",userSelect:"none",cursor:"pointer",paddingLeft:2,paddingRight:"$sm",pointerEvents:"auto"},"& + label:after":{content:'""',width:6,height:6,backgroundColor:"$elevation3",borderRadius:"50%",$activeStyle:""},"&:focus + label:after":{$focusStyle:""},"& + label:active:after":{backgroundColor:"$accent1",$focusStyle:""},"&:checked + label:after":{backgroundColor:"$accent1"}}),ta=Lo("label",{fontWeight:"$label",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap","& > svg":{display:"block"}}),ea=Lo("div",{opacity:1,variants:{disabled:{true:{opacity:.6,pointerEvents:"none",[`& ${ta}`]:{pointerEvents:"auto"}}}}}),na=Lo("div",{position:"fixed",top:0,bottom:0,right:0,left:0,zIndex:1e3,userSelect:"none"}),ia=Lo("div",{background:"$toolTipBackground",fontFamily:"$sans",fontSize:"$toolTip",padding:"$xs $sm",color:"$toolTipText",borderRadius:"$xs",boxShadow:"$level2",maxWidth:260}),ra=Lo(Sr,{fill:"$toolTipBackground"});function oa({children:t}){const{className:e}=(0,r.useContext)(So);return r.createElement(v,{className:e},t)}const aa=["align"];function sa(){const{id:t,disable:e,disabled:n}=wo();return r.createElement(r.Fragment,null,r.createElement(Qo,{id:t+"__disable",type:"checkbox",checked:!n,onChange:()=>e(!n)}),r.createElement("label",{htmlFor:t+"__disable"}))}function la(t){const{id:e,optional:n,hint:i}=wo(),o=t.htmlFor||(e?{htmlFor:e}:null),a=i||"string"!=typeof t.children?null:{title:t.children};return r.createElement(r.Fragment,null,n&&r.createElement(sa,null),void 0!==i?r.createElement(xr,null,r.createElement(br,{asChild:!0},r.createElement(ta,xo({},o,t))),r.createElement(wr,{side:"top",sideOffset:2},r.createElement(ia,null,i,r.createElement(ra,null)))):r.createElement(ta,xo({},o,a,t)))}function ha(t){let{align:e}=t,n=Tr(t,aa);const{value:i,label:o,key:a,disabled:s}=wo(),{hideCopyButton:l}=(0,r.useContext)(Mo),h=!l&&void 0!==a,[c,u]=(0,r.useState)(!1);return r.createElement(Jo,{align:e,onPointerLeave:()=>u(!1)},r.createElement(la,n),h&&!s&&r.createElement("div",{title:`Click to copy ${"string"==typeof o?o:a} value`},c?r.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor"},r.createElement("path",{d:"M9 2a1 1 0 000 2h2a1 1 0 100-2H9z"}),r.createElement("path",{fillRule:"evenodd",d:"M4 5a2 2 0 012-2 3 3 0 003 3h2a3 3 0 003-3 2 2 0 012 2v11a2 2 0 01-2 2H6a2 2 0 01-2-2V5zm9.707 5.707a1 1 0 00-1.414-1.414L9 12.586l-1.293-1.293a1 1 0 00-1.414 1.414l2 2a1 1 0 001.414 0l4-4z",clipRule:"evenodd"})):r.createElement("svg",{onClick:async()=>{try{await navigator.clipboard.writeText(JSON.stringify({[a]:null!=i?i:""})),u(!0)}catch(t){Ir(Mr.CLIPBOARD_ERROR,{[a]:i})}},xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor"},r.createElement("path",{d:"M8 3a1 1 0 011-1h2a1 1 0 110 2H9a1 1 0 01-1-1z"}),r.createElement("path",{d:"M6 3a2 2 0 00-2 2v11a2 2 0 002 2h8a2 2 0 002-2V5a2 2 0 00-2-2 3 3 0 01-3 3H9a3 3 0 01-3-3z"}))))}const ca=["toggled"],ua=Lo("svg",{fill:"currentColor",transition:"transform 350ms ease, fill 250ms ease"});function da(t){let{toggled:e}=t,n=Tr(t,ca);return r.createElement(ua,xo({width:"9",height:"5",viewBox:"0 0 9 5",xmlns:"http://www.w3.org/2000/svg",style:{transform:`rotate(${e?0:-90}deg)`}},n),r.createElement("path",{d:"M3.8 4.4c.4.3 1 .3 1.4 0L8 1.7A1 1 0 007.4 0H1.6a1 1 0 00-.7 1.7l3 2.7z"}))}const pa=["input"];function fa(t){let{input:e}=t,n=Tr(t,pa);return e?r.createElement(Ko,n):r.createElement($o,n)}function ga({value:t,type:e,settings:n,setValue:i}){const[o,a]=(0,r.useState)(Br(e,t,n)),s=(0,r.useRef)(t),l=(0,r.useRef)(n);l.current=n;const h=(0,r.useCallback)((t=>a(Br(e,t,l.current))),[e]),c=(0,r.useCallback)((t=>{try{i(t)}catch(e){const{type:t,previousValue:n}=e;if("LEVA_ERROR"!==t)throw e;h(n)}}),[h,i]);return(0,r.useEffect)((()=>{_(t,s.current)||h(t),s.current=t}),[t,h]),{displayValue:o,onChange:a,onUpdate:c}}function ma(t,e){const{emitOnEditStart:n,emitOnEditEnd:i}=wo();return Ee((e=>{e.first&&(document.body.classList.add("leva__panel__dragged"),null==n||n());const r=t(e);return e.last&&(document.body.classList.remove("leva__panel__dragged"),null==i||i()),r}),e)}function va(){const t=(0,r.useRef)(null),e=(0,r.useRef)({x:0,y:0}),n=(0,r.useCallback)((n=>{Object.assign(e.current,n),t.current&&(t.current.style.transform=`translate3d(${e.current.x}px, ${e.current.y}px, 0)`)}),[]);return[t,n]}const ya=["__refCount"],_a=(t,e)=>{if(!t[e])return null;return Tr(t[e],ya)};const xa=Lo("div",{variants:{hasRange:{true:{position:"relative",display:"grid",gridTemplateColumns:"auto $sizes$numberInputMinWidth",columnGap:"$colGap",alignItems:"center"}}}}),ba=Lo("div",{position:"relative",width:"100%",height:2,borderRadius:"$xs",backgroundColor:"$elevation1"}),wa=Lo("div",{position:"absolute",width:"$scrubberWidth",height:"$scrubberHeight",borderRadius:"$xs",boxShadow:"0 0 0 2px $colors$elevation2",backgroundColor:"$accent2",cursor:"pointer",$active:"none $accent1",$hover:"none $accent3",variants:{position:{left:{borderTopRightRadius:0,borderBottomRightRadius:0,transform:"translateX(calc(-0.5 * ($sizes$scrubberWidth + 4px)))"},right:{borderTopLeftRadius:0,borderBottomLeftRadius:0,transform:"translateX(calc(0.5 * ($sizes$scrubberWidth + 4px)))"}}}}),Sa=Lo("div",{position:"relative",$flex:"",height:"100%",cursor:"pointer",touchAction:"none"}),Ta=Lo("div",{position:"absolute",height:"100%",backgroundColor:"$accent2"});function Ma({value:t,min:e,max:n,onDrag:i,step:o,initialValue:a}){const s=(0,r.useRef)(null),l=(0,r.useRef)(null),h=(0,r.useRef)(0),c=Fo("sizes","scrubberWidth"),u=ma((({event:r,first:u,xy:[d],movement:[p],memo:f})=>{if(u){const{width:i,left:o}=s.current.getBoundingClientRect();h.current=i-parseFloat(c);f=(null==r?void 0:r.target)===l.current?t:Xr((d-o)/i,e,n)}const g=f+Xr(p/h.current,0,n-e);return i(yo(g,{step:o,initialValue:a})),f})),d=qr(t,e,n);return r.createElement(Sa,xo({ref:s},u()),r.createElement(ba,null,r.createElement(Ta,{style:{left:0,right:100*(1-d)+"%"}})),r.createElement(wa,{ref:l,style:{left:`calc(${d} * (100% - ${c}))`}}))}const Aa=r.memo((({label:t,onUpdate:e,step:n,innerLabelTrim:i})=>{const[o,a]=(0,r.useState)(!1),s=ma((({active:t,delta:[i],event:r,memo:o=0})=>(a(t),o+=i/2,Math.abs(o)>=1&&(e((t=>parseFloat(t)+Math.floor(o)*n*po(r))),o=0),o)));return r.createElement(Go,xo({dragging:o,title:t.length>1?t:""},s()),t.slice(0,i))}));function Ca({label:t,id:e,displayValue:n,onUpdate:i,onChange:o,settings:a,innerLabelTrim:s=1}){const l=s>0&&r.createElement(Aa,{label:t,step:a.step,onUpdate:i,innerLabelTrim:s});return r.createElement(Uo,{id:e,value:String(n),onUpdate:i,onChange:o,innerLabel:l})}const{sanitizeStep:Ia}=_o;var Ea=Vr({component:function(){const t=wo(),{label:e,value:n,onUpdate:i,settings:o,id:a}=t,{min:s,max:l}=o,h=l!==1/0&&s!==-1/0;return r.createElement(fa,{input:!0},r.createElement(ha,null,e),r.createElement(xa,{hasRange:h},h&&r.createElement(Ma,xo({value:parseFloat(n),onDrag:i},o)),r.createElement(Ca,xo({},t,{id:a,label:"value",innerLabelTrim:h?0:1}))))}},Tr(_o,["sanitizeStep"]));var ka=Object.freeze({__proto__:null,schema:(t,e)=>G().schema({options:G().passesAnyOf(G().object(),G().array())}).test(e),sanitize:(t,{values:e})=>{if(e.indexOf(t)<0)throw Error("Selected value doesn't match Select options");return t},format:(t,{values:e})=>e.indexOf(t),normalize:t=>{let e,n,{value:i,options:r}=t;return Array.isArray(r)?(n=r,e=r.map((t=>String(t)))):(n=Object.values(r),e=Object.keys(r)),"value"in t?n.includes(i)||(e.unshift(String(i)),n.unshift(i)):i=n[0],Object.values(r).includes(i)||(r[String(i)]=i),{value:i,settings:{keys:e,values:n}}}});const La=Lo("div",{$flexCenter:"",position:"relative","> svg":{pointerEvents:"none",position:"absolute",right:"$md"}}),Da=Lo("select",{position:"absolute",top:0,left:0,width:"100%",height:"100%",opacity:0}),Pa=Lo("div",{display:"flex",alignItems:"center",width:"100%",height:"$rowHeight",backgroundColor:"$elevation3",borderRadius:"$sm",padding:"0 $sm",cursor:"pointer",[`${Da}:focus + &`]:{$focusStyle:""},[`${Da}:hover + &`]:{$hoverStyle:""}});function Ra({displayValue:t,value:e,onUpdate:n,id:i,settings:o,disabled:a}){const{keys:s,values:l}=o,h=(0,r.useRef)();return e===l[t]&&(h.current=s[t]),r.createElement(La,null,r.createElement(Da,{id:i,value:t,onChange:t=>n(l[Number(t.currentTarget.value)]),disabled:a},s.map(((t,e)=>r.createElement("option",{key:t,value:e},t)))),r.createElement(Pa,null,h.current),r.createElement(da,{toggled:!0}))}var Oa=Vr({component:function(){const{label:t,value:e,displayValue:n,onUpdate:i,id:o,disabled:a,settings:s}=wo();return r.createElement(fa,{input:!0},r.createElement(ha,null,t),r.createElement(Ra,{id:o,value:e,displayValue:n,onUpdate:i,settings:s,disabled:a}))}},ka);var Na=Object.freeze({__proto__:null,schema:t=>G().string().test(t),sanitize:t=>{if("string"!=typeof t)throw Error("Invalid string");return t},normalize:({value:t,editable:e=!0,rows:n=!1})=>({value:t,settings:{editable:e,rows:"number"==typeof n?n:n?5:0}})});const Fa=["displayValue","onUpdate","onChange","editable"],Ba=Lo("div",{whiteSpace:"pre-wrap"});function za(t){let{displayValue:e,onUpdate:n,onChange:i,editable:o=!0}=t,a=Tr(t,Fa);return o?r.createElement(Wo,xo({value:e,onUpdate:n,onChange:i},a)):r.createElement(Ba,null,e)}var Ga=Vr({component:function(){const{label:t,settings:e,displayValue:n,onUpdate:i,onChange:o}=wo();return r.createElement(fa,{input:!0},r.createElement(ha,null,t),r.createElement(za,xo({displayValue:n,onUpdate:i,onChange:o},e)))}},Na);var Va=Object.freeze({__proto__:null,schema:t=>G().boolean().test(t),sanitize:t=>{if("boolean"!=typeof t)throw Error("Invalid boolean");return t}});const ja=Lo("div",{position:"relative",$flex:"",height:"$rowHeight",input:{$reset:"",height:0,width:0,opacity:0,margin:0},label:{position:"relative",$flexCenter:"",userSelect:"none",cursor:"pointer",height:"$checkboxSize",width:"$checkboxSize",backgroundColor:"$elevation3",borderRadius:"$sm",$hover:""},"input:focus + label":{$focusStyle:""},"input:focus:checked + label, input:checked + label:hover":{$hoverStyle:"$accent3"},"input + label:active":{backgroundColor:"$accent1"},"input:checked + label:active":{backgroundColor:"$accent1"},"label > svg":{display:"none",width:"90%",height:"90%",stroke:"$highlight3"},"input:checked + label":{backgroundColor:"$accent2"},"input:checked + label > svg":{display:"block"}});function Ha({value:t,onUpdate:e,id:n,disabled:i}){return r.createElement(ja,null,r.createElement("input",{id:n,type:"checkbox",checked:t,onChange:t=>e(t.currentTarget.checked),disabled:i}),r.createElement("label",{htmlFor:n},r.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24"},r.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M5 13l4 4L19 7"}))))}var Wa=Vr({component:function(){const{label:t,value:e,onUpdate:n,disabled:i,id:o}=wo();return r.createElement(fa,{input:!0},r.createElement(ha,null,t),r.createElement(Ha,{value:e,onUpdate:n,id:o,disabled:i}))}},Va);const Ua=["locked"];function qa({value:t,id:e,valueKey:n,settings:i,onUpdate:o,innerLabelTrim:a}){const s=(0,r.useRef)(t[n]);s.current=t[n];const l=(0,r.useCallback)((t=>o({[n]:co({type:"NUMBER",value:s.current,settings:i},t)})),[o,i,n]),h=ga({type:"NUMBER",value:t[n],settings:i,setValue:l});return r.createElement(Ca,{id:e,label:n,value:t[n],displayValue:h.displayValue,onUpdate:h.onUpdate,onChange:h.onChange,settings:i,innerLabelTrim:a})}const Xa=Lo("div",{display:"grid",columnGap:"$colGap",gridAutoFlow:"column dense",alignItems:"center",variants:{withLock:{true:{gridTemplateColumns:"10px auto","> svg":{cursor:"pointer"}}}}});function Ya(t){let{locked:e}=t,n=Tr(t,Ua);return r.createElement("svg",xo({width:"10",height:"10",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},n),e?r.createElement("path",{d:"M5 4.63601C5 3.76031 5.24219 3.1054 5.64323 2.67357C6.03934 2.24705 6.64582 1.9783 7.5014 1.9783C8.35745 1.9783 8.96306 2.24652 9.35823 2.67208C9.75838 3.10299 10 3.75708 10 4.63325V5.99999H5V4.63601ZM4 5.99999V4.63601C4 3.58148 4.29339 2.65754 4.91049 1.99307C5.53252 1.32329 6.42675 0.978302 7.5014 0.978302C8.57583 0.978302 9.46952 1.32233 10.091 1.99162C10.7076 2.65557 11 3.57896 11 4.63325V5.99999H12C12.5523 5.99999 13 6.44771 13 6.99999V13C13 13.5523 12.5523 14 12 14H3C2.44772 14 2 13.5523 2 13V6.99999C2 6.44771 2.44772 5.99999 3 5.99999H4ZM3 6.99999H12V13H3V6.99999Z",fill:"currentColor",fillRule:"evenodd",clipRule:"evenodd"}):r.createElement("path",{d:"M9 3.63601C9 2.76044 9.24207 2.11211 9.64154 1.68623C10.0366 1.26502 10.6432 1 11.5014 1C12.4485 1 13.0839 1.30552 13.4722 1.80636C13.8031 2.23312 14 2.84313 14 3.63325H15C15 2.68242 14.7626 1.83856 14.2625 1.19361C13.6389 0.38943 12.6743 0 11.5014 0C10.4294 0 9.53523 0.337871 8.91218 1.0021C8.29351 1.66167 8 2.58135 8 3.63601V6H1C0.447715 6 0 6.44772 0 7V13C0 13.5523 0.447715 14 1 14H10C10.5523 14 11 13.5523 11 13V7C11 6.44772 10.5523 6 10 6H9V3.63601ZM1 7H10V13H1V7Z",fill:"currentColor",fillRule:"evenodd",clipRule:"evenodd"}))}function Za({value:t,onUpdate:e,settings:n,innerLabelTrim:i}){const{id:o,setSettings:a}=wo(),{lock:s,locked:l}=n;return r.createElement(Xa,{withLock:s},s&&r.createElement(Ya,{locked:l,onClick:()=>a({locked:!l})}),Object.keys(t).map(((a,s)=>r.createElement(qa,{id:0===s?o:`${o}.${a}`,key:a,valueKey:a,value:t,settings:n[a],onUpdate:e,innerLabelTrim:i}))))}const $a=(t,e)=>{const n={};let i=0,r=1/0;Object.entries(t).forEach((([t,o])=>{n[t]=vo(Vr({value:o},e[t])).settings,i=Math.max(i,n[t].step),r=Math.min(r,n[t].pad)}));for(let o in n){const{step:t,min:a,max:s}=e[o]||{};isFinite(t)||isFinite(a)&&isFinite(s)||(n[o].step=i,n[o].pad=r)}return n},Ka=["lock"],Ja=["value"];function Qa(t){const e=G().array().length(t).every.number();return n=>e.test(n)||(e=>{if(!e||"object"!=typeof e)return!1;const n=Object.values(e);return n.length===t&&n.every((t=>isFinite(t)))})(n)}function ts(t,e,n){return function(t){return Array.isArray(t)?"array":"object"}(t)===e?t:"array"===e?Object.values(t):function(t,e){return t.reduce(((t,n,i)=>Object.assign(t,{[e[i]]:n})),{})}(t,n)}function es(t){return{schema:Qa(t.length),normalize:e=>{let{value:n}=e;return function(t,e,n=[]){const{lock:i=!1}=e,r=Tr(e,Ka),o=Array.isArray(t)?"array":"object",a="object"===o?Object.keys(t):n,s=ts(t,"object",a),l=(t=>!!t&&("step"in t||"min"in t||"max"in t))(r)?a.reduce(((t,e)=>Object.assign(t,{[e]:r})),{}):r;return{value:"array"===o?t:s,settings:Vr(Vr({},$a(s,l)),{},{format:o,keys:a,lock:i,locked:!1})}}(n,Tr(e,Ja),t)},format:(t,e)=>((t,e)=>ts(t,"object",e.keys))(t,e),sanitize:(t,e,n)=>((t,e,n)=>{const i=ts(t,"object",e.keys);for(let a in i)i[a]=mo(i[a],e[a]);const r=Object.keys(i);let o={};if(r.length===e.keys.length)o=i;else{const t=ts(n,"object",e.keys);if(1===r.length&&e.locked){const e=r[0],n=i[e],a=t[e],s=0!==a?n/a:1;for(let i in t)i===e?o[e]=n:o[i]=t[i]*s}else o=Vr(Vr({},t),i)}return ts(o,e.format,e.keys)})(t,e,n)}}var ns={grad:.9,turn:360,rad:360/(2*Math.PI)},is=function(t){return"string"==typeof t?t.length>0:"number"==typeof t},rs=function(t,e,n){return void 0===e&&(e=0),void 0===n&&(n=Math.pow(10,e)),Math.round(n*t)/n+0},os=function(t,e,n){return void 0===e&&(e=0),void 0===n&&(n=1),t>n?n:t>e?t:e},as=function(t){return(t=isFinite(t)?t%360:0)>0?t:t+360},ss=function(t){return{r:os(t.r,0,255),g:os(t.g,0,255),b:os(t.b,0,255),a:os(t.a)}},ls=function(t){return{r:rs(t.r),g:rs(t.g),b:rs(t.b),a:rs(t.a,3)}},hs=/^#([0-9a-f]{3,8})$/i,cs=function(t){var e=t.toString(16);return e.length<2?"0"+e:e},us=function(t){var e=t.r,n=t.g,i=t.b,r=t.a,o=Math.max(e,n,i),a=o-Math.min(e,n,i),s=a?o===e?(n-i)/a:o===n?2+(i-e)/a:4+(e-n)/a:0;return{h:60*(s<0?s+6:s),s:o?a/o*100:0,v:o/255*100,a:r}},ds=function(t){var e=t.h,n=t.s,i=t.v,r=t.a;e=e/360*6,n/=100,i/=100;var o=Math.floor(e),a=i*(1-n),s=i*(1-(e-o)*n),l=i*(1-(1-e+o)*n),h=o%6;return{r:255*[i,s,a,a,l,i][h],g:255*[l,i,i,s,a,a][h],b:255*[a,a,l,i,i,s][h],a:r}},ps=function(t){return{h:as(t.h),s:os(t.s,0,100),l:os(t.l,0,100),a:os(t.a)}},fs=function(t){return{h:rs(t.h),s:rs(t.s),l:rs(t.l),a:rs(t.a,3)}},gs=function(t){return ds((n=(e=t).s,{h:e.h,s:(n*=((i=e.l)<50?i:100-i)/100)>0?2*n/(i+n)*100:0,v:i+n,a:e.a}));var e,n,i},ms=function(t){return{h:(e=us(t)).h,s:(r=(200-(n=e.s))*(i=e.v)/100)>0&&r<200?n*i/100/(r<=100?r:200-r)*100:0,l:r/2,a:e.a};var e,n,i,r},vs=/^hsla?\(\s*([+-]?\d*\.?\d+)(deg|rad|grad|turn)?\s*,\s*([+-]?\d*\.?\d+)%\s*,\s*([+-]?\d*\.?\d+)%\s*(?:,\s*([+-]?\d*\.?\d+)(%)?\s*)?\)$/i,ys=/^hsla?\(\s*([+-]?\d*\.?\d+)(deg|rad|grad|turn)?\s+([+-]?\d*\.?\d+)%\s+([+-]?\d*\.?\d+)%\s*(?:\/\s*([+-]?\d*\.?\d+)(%)?\s*)?\)$/i,_s=/^rgba?\(\s*([+-]?\d*\.?\d+)(%)?\s*,\s*([+-]?\d*\.?\d+)(%)?\s*,\s*([+-]?\d*\.?\d+)(%)?\s*(?:,\s*([+-]?\d*\.?\d+)(%)?\s*)?\)$/i,xs=/^rgba?\(\s*([+-]?\d*\.?\d+)(%)?\s+([+-]?\d*\.?\d+)(%)?\s+([+-]?\d*\.?\d+)(%)?\s*(?:\/\s*([+-]?\d*\.?\d+)(%)?\s*)?\)$/i,bs={string:[[function(t){var e=hs.exec(t);return e?(t=e[1]).length<=4?{r:parseInt(t[0]+t[0],16),g:parseInt(t[1]+t[1],16),b:parseInt(t[2]+t[2],16),a:4===t.length?rs(parseInt(t[3]+t[3],16)/255,2):1}:6===t.length||8===t.length?{r:parseInt(t.substr(0,2),16),g:parseInt(t.substr(2,2),16),b:parseInt(t.substr(4,2),16),a:8===t.length?rs(parseInt(t.substr(6,2),16)/255,2):1}:null:null},"hex"],[function(t){var e=_s.exec(t)||xs.exec(t);return e?e[2]!==e[4]||e[4]!==e[6]?null:ss({r:Number(e[1])/(e[2]?100/255:1),g:Number(e[3])/(e[4]?100/255:1),b:Number(e[5])/(e[6]?100/255:1),a:void 0===e[7]?1:Number(e[7])/(e[8]?100:1)}):null},"rgb"],[function(t){var e=vs.exec(t)||ys.exec(t);if(!e)return null;var n,i,r=ps({h:(n=e[1],i=e[2],void 0===i&&(i="deg"),Number(n)*(ns[i]||1)),s:Number(e[3]),l:Number(e[4]),a:void 0===e[5]?1:Number(e[5])/(e[6]?100:1)});return gs(r)},"hsl"]],object:[[function(t){var e=t.r,n=t.g,i=t.b,r=t.a,o=void 0===r?1:r;return is(e)&&is(n)&&is(i)?ss({r:Number(e),g:Number(n),b:Number(i),a:Number(o)}):null},"rgb"],[function(t){var e=t.h,n=t.s,i=t.l,r=t.a,o=void 0===r?1:r;if(!is(e)||!is(n)||!is(i))return null;var a=ps({h:Number(e),s:Number(n),l:Number(i),a:Number(o)});return gs(a)},"hsl"],[function(t){var e=t.h,n=t.s,i=t.v,r=t.a,o=void 0===r?1:r;if(!is(e)||!is(n)||!is(i))return null;var a=function(t){return{h:as(t.h),s:os(t.s,0,100),v:os(t.v,0,100),a:os(t.a)}}({h:Number(e),s:Number(n),v:Number(i),a:Number(o)});return ds(a)},"hsv"]]},ws=function(t,e){for(var n=0;n<e.length;n++){var i=e[n][0](t);if(i)return[i,e[n][1]]}return[null,void 0]},Ss=function(t){return"string"==typeof t?ws(t.trim(),bs.string):"object"==typeof t&&null!==t?ws(t,bs.object):[null,void 0]},Ts=function(t,e){var n=ms(t);return{h:n.h,s:os(n.s+100*e,0,100),l:n.l,a:n.a}},Ms=function(t){return(299*t.r+587*t.g+114*t.b)/1e3/255},As=function(t,e){var n=ms(t);return{h:n.h,s:n.s,l:os(n.l+100*e,0,100),a:n.a}},Cs=function(){function t(t){this.parsed=Ss(t)[0],this.rgba=this.parsed||{r:0,g:0,b:0,a:1}}return t.prototype.isValid=function(){return null!==this.parsed},t.prototype.brightness=function(){return rs(Ms(this.rgba),2)},t.prototype.isDark=function(){return Ms(this.rgba)<.5},t.prototype.isLight=function(){return Ms(this.rgba)>=.5},t.prototype.toHex=function(){return e=(t=ls(this.rgba)).r,n=t.g,i=t.b,o=(r=t.a)<1?cs(rs(255*r)):"","#"+cs(e)+cs(n)+cs(i)+o;var t,e,n,i,r,o},t.prototype.toRgb=function(){return ls(this.rgba)},t.prototype.toRgbString=function(){return e=(t=ls(this.rgba)).r,n=t.g,i=t.b,(r=t.a)<1?"rgba("+e+", "+n+", "+i+", "+r+")":"rgb("+e+", "+n+", "+i+")";var t,e,n,i,r},t.prototype.toHsl=function(){return fs(ms(this.rgba))},t.prototype.toHslString=function(){return e=(t=fs(ms(this.rgba))).h,n=t.s,i=t.l,(r=t.a)<1?"hsla("+e+", "+n+"%, "+i+"%, "+r+")":"hsl("+e+", "+n+"%, "+i+"%)";var t,e,n,i,r},t.prototype.toHsv=function(){return t=us(this.rgba),{h:rs(t.h),s:rs(t.s),v:rs(t.v),a:rs(t.a,3)};var t},t.prototype.invert=function(){return Is({r:255-(t=this.rgba).r,g:255-t.g,b:255-t.b,a:t.a});var t},t.prototype.saturate=function(t){return void 0===t&&(t=.1),Is(Ts(this.rgba,t))},t.prototype.desaturate=function(t){return void 0===t&&(t=.1),Is(Ts(this.rgba,-t))},t.prototype.grayscale=function(){return Is(Ts(this.rgba,-1))},t.prototype.lighten=function(t){return void 0===t&&(t=.1),Is(As(this.rgba,t))},t.prototype.darken=function(t){return void 0===t&&(t=.1),Is(As(this.rgba,-t))},t.prototype.rotate=function(t){return void 0===t&&(t=15),this.hue(this.hue()+t)},t.prototype.alpha=function(t){return"number"==typeof t?Is({r:(e=this.rgba).r,g:e.g,b:e.b,a:t}):rs(this.rgba.a,3);var e},t.prototype.hue=function(t){var e=ms(this.rgba);return"number"==typeof t?Is({h:t,s:e.s,l:e.l,a:e.a}):rs(e.h)},t.prototype.isEqual=function(t){return this.toHex()===Is(t).toHex()},t}(),Is=function(t){return t instanceof Cs?t:new Cs(t)},Es=[];function ks(){return(ks=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(t[i]=n[i])}return t}).apply(this,arguments)}function Ls(t,e){if(null==t)return{};var n,i,r={},o=Object.keys(t);for(i=0;i<o.length;i++)e.indexOf(n=o[i])>=0||(r[n]=t[n]);return r}function Ds(t){var e=(0,r.useRef)(t),n=(0,r.useRef)((function(t){e.current&&e.current(t)}));return e.current=t,n.current}var Ps=function(t,e,n){return void 0===e&&(e=0),void 0===n&&(n=1),t>n?n:t<e?e:t},Rs=function(t){return"touches"in t},Os=function(t){return t&&t.ownerDocument.defaultView||self},Ns=function(t,e,n){var i=t.getBoundingClientRect(),r=Rs(e)?function(t,e){for(var n=0;n<t.length;n++)if(t[n].identifier===e)return t[n];return t[0]}(e.touches,n):e;return{left:Ps((r.pageX-(i.left+Os(t).pageXOffset))/i.width),top:Ps((r.pageY-(i.top+Os(t).pageYOffset))/i.height)}},Fs=function(t){!Rs(t)&&t.preventDefault()},Bs=r.memo((function(t){var e=t.onMove,n=t.onKey,i=Ls(t,["onMove","onKey"]),o=(0,r.useRef)(null),a=Ds(e),s=Ds(n),l=(0,r.useRef)(null),h=(0,r.useRef)(!1),c=(0,r.useMemo)((function(){var t=function(t){Fs(t),(Rs(t)?t.touches.length>0:t.buttons>0)&&o.current?a(Ns(o.current,t,l.current)):n(!1)},e=function(){return n(!1)};function n(n){var i=h.current,r=Os(o.current),a=n?r.addEventListener:r.removeEventListener;a(i?"touchmove":"mousemove",t),a(i?"touchend":"mouseup",e)}return[function(t){var e=t.nativeEvent,i=o.current;if(i&&(Fs(e),!function(t,e){return e&&!Rs(t)}(e,h.current)&&i)){if(Rs(e)){h.current=!0;var r=e.changedTouches||[];r.length&&(l.current=r[0].identifier)}i.focus(),a(Ns(i,e,l.current)),n(!0)}},function(t){var e=t.which||t.keyCode;e<37||e>40||(t.preventDefault(),s({left:39===e?.05:37===e?-.05:0,top:40===e?.05:38===e?-.05:0}))},n]}),[s,a]),u=c[0],d=c[1],p=c[2];return(0,r.useEffect)((function(){return p}),[p]),r.createElement("div",ks({},i,{onTouchStart:u,onMouseDown:u,className:"react-colorful__interactive",ref:o,onKeyDown:d,tabIndex:0,role:"slider"}))})),zs=function(t){return t.filter(Boolean).join(" ")},Gs=function(t){var e=t.color,n=t.left,i=t.top,o=void 0===i?.5:i,a=zs(["react-colorful__pointer",t.className]);return r.createElement("div",{className:a,style:{top:100*o+"%",left:100*n+"%"}},r.createElement("div",{className:"react-colorful__pointer-fill",style:{backgroundColor:e}}))},Vs=function(t,e,n){return void 0===e&&(e=0),void 0===n&&(n=Math.pow(10,e)),Math.round(n*t)/n},js=(Math.PI,function(t){var e=t.s,n=t.v,i=t.a,r=(200-e)*n/100;return{h:Vs(t.h),s:Vs(r>0&&r<200?e*n/100/(r<=100?r:200-r)*100:0),l:Vs(r/2),a:Vs(i,2)}}),Hs=function(t){var e=js(t);return"hsl("+e.h+", "+e.s+"%, "+e.l+"%)"},Ws=function(t){var e=js(t);return"hsla("+e.h+", "+e.s+"%, "+e.l+"%, "+e.a+")"},Us=function(t){var e=t.h,n=t.s,i=t.v,r=t.a;e=e/360*6,n/=100,i/=100;var o=Math.floor(e),a=i*(1-n),s=i*(1-(e-o)*n),l=i*(1-(1-e+o)*n),h=o%6;return{r:Vs(255*[i,s,a,a,l,i][h]),g:Vs(255*[l,i,i,s,a,a][h]),b:Vs(255*[a,a,l,i,i,s][h]),a:Vs(r,2)}},qs=function(t){var e=t.r,n=t.g,i=t.b,r=t.a,o=Math.max(e,n,i),a=o-Math.min(e,n,i),s=a?o===e?(n-i)/a:o===n?2+(i-e)/a:4+(e-n)/a:0;return{h:Vs(60*(s<0?s+6:s)),s:Vs(o?a/o*100:0),v:Vs(o/255*100),a:r}},Xs=r.memo((function(t){var e=t.hue,n=t.onChange,i=zs(["react-colorful__hue",t.className]);return r.createElement("div",{className:i},r.createElement(Bs,{onMove:function(t){n({h:360*t.left})},onKey:function(t){n({h:Ps(e+360*t.left,0,360)})},"aria-label":"Hue","aria-valuenow":Vs(e),"aria-valuemax":"360","aria-valuemin":"0"},r.createElement(Gs,{className:"react-colorful__hue-pointer",left:e/360,color:Hs({h:e,s:100,v:100,a:1})})))})),Ys=r.memo((function(t){var e=t.hsva,n=t.onChange,i={backgroundColor:Hs({h:e.h,s:100,v:100,a:1})};return r.createElement("div",{className:"react-colorful__saturation",style:i},r.createElement(Bs,{onMove:function(t){n({s:100*t.left,v:100-100*t.top})},onKey:function(t){n({s:Ps(e.s+100*t.left,0,100),v:Ps(e.v-100*t.top,0,100)})},"aria-label":"Color","aria-valuetext":"Saturation "+Vs(e.s)+"%, Brightness "+Vs(e.v)+"%"},r.createElement(Gs,{className:"react-colorful__saturation-pointer",top:1-e.v/100,left:e.s/100,color:Hs(e)})))})),Zs=function(t,e){if(t===e)return!0;for(var n in t)if(t[n]!==e[n])return!1;return!0};function $s(t,e,n){var i=Ds(n),o=(0,r.useState)((function(){return t.toHsva(e)})),a=o[0],s=o[1],l=(0,r.useRef)({color:e,hsva:a});(0,r.useEffect)((function(){if(!t.equal(e,l.current.color)){var n=t.toHsva(e);l.current={hsva:n,color:e},s(n)}}),[e,t]),(0,r.useEffect)((function(){var e;Zs(a,l.current.hsva)||t.equal(e=t.fromHsva(a),l.current.color)||(l.current={hsva:a,color:e},i(e))}),[a,t,i]);var h=(0,r.useCallback)((function(t){s((function(e){return Object.assign({},e,t)}))}),[]);return[a,h]}var Ks,Js="undefined"!=typeof window?r.useLayoutEffect:r.useEffect,Qs=new Map,tl=function(t){Js((function(){var e=t.current?t.current.ownerDocument:document;if(void 0!==e&&!Qs.has(e)){var i=e.createElement("style");i.innerHTML='.react-colorful{position:relative;display:flex;flex-direction:column;width:200px;height:200px;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:default}.react-colorful__saturation{position:relative;flex-grow:1;border-color:transparent;border-bottom:12px solid #000;border-radius:8px 8px 0 0;background-image:linear-gradient(0deg,#000,transparent),linear-gradient(90deg,#fff,hsla(0,0%,100%,0))}.react-colorful__alpha-gradient,.react-colorful__pointer-fill{content:"";position:absolute;left:0;top:0;right:0;bottom:0;pointer-events:none;border-radius:inherit}.react-colorful__alpha-gradient,.react-colorful__saturation{box-shadow:inset 0 0 0 1px rgba(0,0,0,.05)}.react-colorful__alpha,.react-colorful__hue{position:relative;height:24px}.react-colorful__hue{background:linear-gradient(90deg,red 0,#ff0 17%,#0f0 33%,#0ff 50%,#00f 67%,#f0f 83%,red)}.react-colorful__last-control{border-radius:0 0 8px 8px}.react-colorful__interactive{position:absolute;left:0;top:0;right:0;bottom:0;border-radius:inherit;outline:none;touch-action:none}.react-colorful__pointer{position:absolute;z-index:1;box-sizing:border-box;width:28px;height:28px;transform:translate(-50%,-50%);background-color:#fff;border:2px solid #fff;border-radius:50%;box-shadow:0 2px 4px rgba(0,0,0,.2)}.react-colorful__interactive:focus .react-colorful__pointer{transform:translate(-50%,-50%) scale(1.1)}.react-colorful__alpha,.react-colorful__alpha-pointer{background-color:#fff;background-image:url(\'data:image/svg+xml;charset=utf-8,<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill-opacity=".05"><path d="M8 0h8v8H8zM0 8h8v8H0z"/></svg>\')}.react-colorful__saturation-pointer{z-index:3}.react-colorful__hue-pointer{z-index:2}',Qs.set(e,i);var r=Ks||n.nc;r&&i.setAttribute("nonce",r),e.head.appendChild(i)}}),[])},el=function(t){var e=t.className,n=t.colorModel,i=t.color,o=void 0===i?n.defaultColor:i,a=t.onChange,s=Ls(t,["className","colorModel","color","onChange"]),l=(0,r.useRef)(null);tl(l);var h=$s(n,o,a),c=h[0],u=h[1],d=zs(["react-colorful",e]);return r.createElement("div",ks({},s,{ref:l,className:d}),r.createElement(Ys,{hsva:c,onChange:u}),r.createElement(Xs,{hue:c.h,onChange:u,className:"react-colorful__last-control"}))},nl=function(t){var e=t.className,n=t.hsva,i=t.onChange,o={backgroundImage:"linear-gradient(90deg, "+Ws(Object.assign({},n,{a:0}))+", "+Ws(Object.assign({},n,{a:1}))+")"},a=zs(["react-colorful__alpha",e]),s=Vs(100*n.a);return r.createElement("div",{className:a},r.createElement("div",{className:"react-colorful__alpha-gradient",style:o}),r.createElement(Bs,{onMove:function(t){i({a:t.left})},onKey:function(t){i({a:Ps(n.a+t.left)})},"aria-label":"Alpha","aria-valuetext":s+"%","aria-valuenow":s,"aria-valuemin":"0","aria-valuemax":"100"},r.createElement(Gs,{className:"react-colorful__alpha-pointer",left:n.a,color:Ws(n)})))},il=function(t){var e=t.className,n=t.colorModel,i=t.color,o=void 0===i?n.defaultColor:i,a=t.onChange,s=Ls(t,["className","colorModel","color","onChange"]),l=(0,r.useRef)(null);tl(l);var h=$s(n,o,a),c=h[0],u=h[1],d=zs(["react-colorful",e]);return r.createElement("div",ks({},s,{ref:l,className:d}),r.createElement(Ys,{hsva:c,onChange:u}),r.createElement(Xs,{hue:c.h,onChange:u}),r.createElement(nl,{hsva:c,onChange:u,className:"react-colorful__last-control"}))},rl={defaultColor:{r:0,g:0,b:0,a:1},toHsva:qs,fromHsva:Us,equal:Zs},ol=function(t){return r.createElement(il,ks({},t,{colorModel:rl}))},al={defaultColor:{r:0,g:0,b:0},toHsva:function(t){return qs({r:t.r,g:t.g,b:t.b,a:1})},fromHsva:function(t){return{r:(e=Us(t)).r,g:e.g,b:e.b};var e},equal:Zs},sl=function(t){return r.createElement(el,ks({},t,{colorModel:al}))},ll=n(3108),hl=n.n(ll),cl=n(6636),ul=new Map([["aac","audio/aac"],["abw","application/x-abiword"],["arc","application/x-freearc"],["avif","image/avif"],["avi","video/x-msvideo"],["azw","application/vnd.amazon.ebook"],["bin","application/octet-stream"],["bmp","image/bmp"],["bz","application/x-bzip"],["bz2","application/x-bzip2"],["cda","application/x-cdf"],["csh","application/x-csh"],["css","text/css"],["csv","text/csv"],["doc","application/msword"],["docx","application/vnd.openxmlformats-officedocument.wordprocessingml.document"],["eot","application/vnd.ms-fontobject"],["epub","application/epub+zip"],["gz","application/gzip"],["gif","image/gif"],["heic","image/heic"],["heif","image/heif"],["htm","text/html"],["html","text/html"],["ico","image/vnd.microsoft.icon"],["ics","text/calendar"],["jar","application/java-archive"],["jpeg","image/jpeg"],["jpg","image/jpeg"],["js","text/javascript"],["json","application/json"],["jsonld","application/ld+json"],["mid","audio/midi"],["midi","audio/midi"],["mjs","text/javascript"],["mp3","audio/mpeg"],["mp4","video/mp4"],["mpeg","video/mpeg"],["mpkg","application/vnd.apple.installer+xml"],["odp","application/vnd.oasis.opendocument.presentation"],["ods","application/vnd.oasis.opendocument.spreadsheet"],["odt","application/vnd.oasis.opendocument.text"],["oga","audio/ogg"],["ogv","video/ogg"],["ogx","application/ogg"],["opus","audio/opus"],["otf","font/otf"],["png","image/png"],["pdf","application/pdf"],["php","application/x-httpd-php"],["ppt","application/vnd.ms-powerpoint"],["pptx","application/vnd.openxmlformats-officedocument.presentationml.presentation"],["rar","application/vnd.rar"],["rtf","application/rtf"],["sh","application/x-sh"],["svg","image/svg+xml"],["swf","application/x-shockwave-flash"],["tar","application/x-tar"],["tif","image/tiff"],["tiff","image/tiff"],["ts","video/mp2t"],["ttf","font/ttf"],["txt","text/plain"],["vsd","application/vnd.visio"],["wav","audio/wav"],["weba","audio/webm"],["webm","video/webm"],["webp","image/webp"],["woff","font/woff"],["woff2","font/woff2"],["xhtml","application/xhtml+xml"],["xls","application/vnd.ms-excel"],["xlsx","application/vnd.openxmlformats-officedocument.spreadsheetml.sheet"],["xml","application/xml"],["xul","application/vnd.mozilla.xul+xml"],["zip","application/zip"],["7z","application/x-7z-compressed"],["mkv","video/x-matroska"],["mov","video/quicktime"],["msg","application/vnd.ms-outlook"]]);function dl(t,e){var n=function(t){var e=t.name;if(e&&-1!==e.lastIndexOf(".")&&!t.type){var n=e.split(".").pop().toLowerCase(),i=ul.get(n);i&&Object.defineProperty(t,"type",{value:i,writable:!1,configurable:!1,enumerable:!0})}return t}(t);if("string"!=typeof n.path){var i=t.webkitRelativePath;Object.defineProperty(n,"path",{value:"string"==typeof e?e:"string"==typeof i&&i.length>0?i:t.name,writable:!1,configurable:!1,enumerable:!0})}return n}var pl=[".DS_Store","Thumbs.db"];function fl(t){return"object"==typeof t&&null!==t}function gl(t){return _l(t.target.files).map((function(t){return dl(t)}))}function ml(t){return(0,cl.__awaiter)(this,void 0,void 0,(function(){return(0,cl.__generator)(this,(function(e){switch(e.label){case 0:return[4,Promise.all(t.map((function(t){return t.getFile()})))];case 1:return[2,e.sent().map((function(t){return dl(t)}))]}}))}))}function vl(t,e){return(0,cl.__awaiter)(this,void 0,void 0,(function(){var n;return(0,cl.__generator)(this,(function(i){switch(i.label){case 0:return null===t?[2,[]]:t.items?(n=_l(t.items).filter((function(t){return"file"===t.kind})),"drop"!==e?[2,n]:[4,Promise.all(n.map(xl))]):[3,2];case 1:return[2,yl(bl(i.sent()))];case 2:return[2,yl(_l(t.files).map((function(t){return dl(t)})))]}}))}))}function yl(t){return t.filter((function(t){return-1===pl.indexOf(t.name)}))}function _l(t){if(null===t)return[];for(var e=[],n=0;n<t.length;n++){var i=t[n];e.push(i)}return e}function xl(t){if("function"!=typeof t.webkitGetAsEntry)return wl(t);var e=t.webkitGetAsEntry();return e&&e.isDirectory?Tl(e):wl(t)}function bl(t){return t.reduce((function(t,e){return(0,cl.__spread)(t,Array.isArray(e)?bl(e):[e])}),[])}function wl(t){var e=t.getAsFile();if(!e)return Promise.reject(t+" is not a File");var n=dl(e);return Promise.resolve(n)}function Sl(t){return(0,cl.__awaiter)(this,void 0,void 0,(function(){return(0,cl.__generator)(this,(function(e){return[2,t.isDirectory?Tl(t):Ml(t)]}))}))}function Tl(t){var e=t.createReader();return new Promise((function(t,n){var i=[];!function r(){var o=this;e.readEntries((function(e){return(0,cl.__awaiter)(o,void 0,void 0,(function(){var o,a,s;return(0,cl.__generator)(this,(function(l){switch(l.label){case 0:if(e.length)return[3,5];l.label=1;case 1:return l.trys.push([1,3,,4]),[4,Promise.all(i)];case 2:return o=l.sent(),t(o),[3,4];case 3:return a=l.sent(),n(a),[3,4];case 4:return[3,6];case 5:s=Promise.all(e.map(Sl)),i.push(s),r(),l.label=6;case 6:return[2]}}))}))}),(function(t){n(t)}))}()}))}function Ml(t){return(0,cl.__awaiter)(this,void 0,void 0,(function(){return(0,cl.__generator)(this,(function(e){return[2,new Promise((function(e,n){t.file((function(n){var i=dl(n,t.fullPath);e(i)}),(function(t){n(t)}))}))]}))}))}var Al=n(8275);function Cl(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);e&&(i=i.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,i)}return n}function Il(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?Cl(Object(n),!0).forEach((function(e){El(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):Cl(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function El(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function kl(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var n=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null==n)return;var i,r,o=[],a=!0,s=!1;try{for(n=n.call(t);!(a=(i=n.next()).done)&&(o.push(i.value),!e||o.length!==e);a=!0);}catch(l){s=!0,r=l}finally{try{a||null==n.return||n.return()}finally{if(s)throw r}}return o}(t,e)||function(t,e){if(!t)return;if("string"==typeof t)return Ll(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);"Object"===n&&t.constructor&&(n=t.constructor.name);if("Map"===n||"Set"===n)return Array.from(t);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Ll(t,e)}(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Ll(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,i=new Array(e);n<e;n++)i[n]=t[n];return i}var Dl="file-invalid-type",Pl="file-too-large",Rl="file-too-small",Ol="too-many-files",Nl=function(t){t=Array.isArray(t)&&1===t.length?t[0]:t;var e=Array.isArray(t)?"one of ".concat(t.join(", ")):t;return{code:Dl,message:"File type must be ".concat(e)}},Fl=function(t){return{code:Pl,message:"File is larger than ".concat(t," ").concat(1===t?"byte":"bytes")}},Bl=function(t){return{code:Rl,message:"File is smaller than ".concat(t," ").concat(1===t?"byte":"bytes")}},zl={code:Ol,message:"Too many files"};function Gl(t,e){var n="application/x-moz-file"===t.type||(0,Al.A)(t,e);return[n,n?null:Nl(e)]}function Vl(t,e,n){if(jl(t.size))if(jl(e)&&jl(n)){if(t.size>n)return[!1,Fl(n)];if(t.size<e)return[!1,Bl(e)]}else{if(jl(e)&&t.size<e)return[!1,Bl(e)];if(jl(n)&&t.size>n)return[!1,Fl(n)]}return[!0,null]}function jl(t){return null!=t}function Hl(t){return"function"==typeof t.isPropagationStopped?t.isPropagationStopped():void 0!==t.cancelBubble&&t.cancelBubble}function Wl(t){return t.dataTransfer?Array.prototype.some.call(t.dataTransfer.types,(function(t){return"Files"===t||"application/x-moz-file"===t})):!!t.target&&!!t.target.files}function Ul(t){t.preventDefault()}function ql(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];return function(t){for(var n=arguments.length,i=new Array(n>1?n-1:0),r=1;r<n;r++)i[r-1]=arguments[r];return e.some((function(e){return!Hl(t)&&e&&e.apply(void 0,[t].concat(i)),Hl(t)}))}}function Xl(t){return t="string"==typeof t?t.split(","):t,[{description:"everything",accept:Array.isArray(t)?t.filter((function(t){return"audio/*"===t||"video/*"===t||"image/*"===t||"text/*"===t||/\w+\/[-+.\w]+/g.test(t)})).reduce((function(t,e){return Il(Il({},t),{},El({},e,[]))}),{}):{}}]}var Yl=["children"],Zl=["open"],$l=["refKey","role","onKeyDown","onFocus","onBlur","onClick","onDragEnter","onDragOver","onDragLeave","onDrop"],Kl=["refKey","onChange","onClick"];function Jl(t){return function(t){if(Array.isArray(t))return eh(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||th(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Ql(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var n=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null==n)return;var i,r,o=[],a=!0,s=!1;try{for(n=n.call(t);!(a=(i=n.next()).done)&&(o.push(i.value),!e||o.length!==e);a=!0);}catch(l){s=!0,r=l}finally{try{a||null==n.return||n.return()}finally{if(s)throw r}}return o}(t,e)||th(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function th(t,e){if(t){if("string"==typeof t)return eh(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?eh(t,e):void 0}}function eh(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,i=new Array(e);n<e;n++)i[n]=t[n];return i}function nh(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);e&&(i=i.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,i)}return n}function ih(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?nh(Object(n),!0).forEach((function(e){rh(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):nh(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function rh(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function oh(t,e){if(null==t)return{};var n,i,r=function(t,e){if(null==t)return{};var n,i,r={},o=Object.keys(t);for(i=0;i<o.length;i++)n=o[i],e.indexOf(n)>=0||(r[n]=t[n]);return r}(t,e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);for(i=0;i<o.length;i++)n=o[i],e.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(t,n)&&(r[n]=t[n])}return r}var ah=(0,r.forwardRef)((function(t,e){var n=t.children,i=hh(oh(t,Yl)),o=i.open,a=oh(i,Zl);return(0,r.useImperativeHandle)(e,(function(){return{open:o}}),[o]),r.createElement(r.Fragment,null,n(ih(ih({},a),{},{open:o})))}));ah.displayName="Dropzone";var sh={disabled:!1,getFilesFromEvent:function(t){return(0,cl.__awaiter)(this,void 0,void 0,(function(){return(0,cl.__generator)(this,(function(e){return fl(t)&&fl(t.dataTransfer)?[2,vl(t.dataTransfer,t.type)]:function(t){return fl(t)&&fl(t.target)}(t)?[2,gl(t)]:Array.isArray(t)&&t.every((function(t){return"getFile"in t&&"function"==typeof t.getFile}))?[2,ml(t)]:[2,[]]}))}))},maxSize:1/0,minSize:0,multiple:!0,maxFiles:0,preventDropOnDocument:!0,noClick:!1,noKeyboard:!1,noDrag:!1,noDragEventsBubbling:!1,validator:null,useFsAccessApi:!0};ah.defaultProps=sh,ah.propTypes={children:hl().func,accept:hl().oneOfType([hl().string,hl().arrayOf(hl().string)]),multiple:hl().bool,preventDropOnDocument:hl().bool,noClick:hl().bool,noKeyboard:hl().bool,noDrag:hl().bool,noDragEventsBubbling:hl().bool,minSize:hl().number,maxSize:hl().number,maxFiles:hl().number,disabled:hl().bool,getFilesFromEvent:hl().func,onFileDialogCancel:hl().func,onFileDialogOpen:hl().func,useFsAccessApi:hl().bool,onDragEnter:hl().func,onDragLeave:hl().func,onDragOver:hl().func,onDrop:hl().func,onDropAccepted:hl().func,onDropRejected:hl().func,validator:hl().func};var lh={isFocused:!1,isFileDialogActive:!1,isDragActive:!1,isDragAccept:!1,isDragReject:!1,draggedFiles:[],acceptedFiles:[],fileRejections:[]};function hh(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=ih(ih({},sh),t),n=e.accept,i=e.disabled,o=e.getFilesFromEvent,a=e.maxSize,s=e.minSize,l=e.multiple,h=e.maxFiles,c=e.onDragEnter,u=e.onDragLeave,d=e.onDragOver,p=e.onDrop,f=e.onDropAccepted,g=e.onDropRejected,m=e.onFileDialogCancel,v=e.onFileDialogOpen,y=e.useFsAccessApi,_=e.preventDropOnDocument,x=e.noClick,b=e.noKeyboard,w=e.noDrag,S=e.noDragEventsBubbling,T=e.validator,M=(0,r.useMemo)((function(){return"function"==typeof v?v:uh}),[v]),A=(0,r.useMemo)((function(){return"function"==typeof m?m:uh}),[m]),C=(0,r.useRef)(null),I=(0,r.useRef)(null),E=Ql((0,r.useReducer)(ch,lh),2),k=E[0],L=E[1],D=k.isFocused,P=k.isFileDialogActive,R=k.draggedFiles,O=(0,r.useRef)("undefined"!=typeof window&&window.isSecureContext&&y&&"showOpenFilePicker"in window),N=function(){!O.current&&P&&setTimeout((function(){I.current&&(I.current.files.length||(L({type:"closeDialog"}),A()))}),300)};(0,r.useEffect)((function(){return window.addEventListener("focus",N,!1),function(){window.removeEventListener("focus",N,!1)}}),[I,P,A,O]);var F=(0,r.useRef)([]),B=function(t){C.current&&C.current.contains(t.target)||(t.preventDefault(),F.current=[])};(0,r.useEffect)((function(){return _&&(document.addEventListener("dragover",Ul,!1),document.addEventListener("drop",B,!1)),function(){_&&(document.removeEventListener("dragover",Ul),document.removeEventListener("drop",B))}}),[C,_]);var z=(0,r.useCallback)((function(t){t.preventDefault(),t.persist(),J(t),F.current=[].concat(Jl(F.current),[t.target]),Wl(t)&&Promise.resolve(o(t)).then((function(e){Hl(t)&&!S||(L({draggedFiles:e,isDragActive:!0,type:"setDraggedFiles"}),c&&c(t))}))}),[o,c,S]),G=(0,r.useCallback)((function(t){t.preventDefault(),t.persist(),J(t);var e=Wl(t);if(e&&t.dataTransfer)try{t.dataTransfer.dropEffect="copy"}catch(n){}return e&&d&&d(t),!1}),[d,S]),V=(0,r.useCallback)((function(t){t.preventDefault(),t.persist(),J(t);var e=F.current.filter((function(t){return C.current&&C.current.contains(t)})),n=e.indexOf(t.target);-1!==n&&e.splice(n,1),F.current=e,e.length>0||(L({isDragActive:!1,type:"setDraggedFiles",draggedFiles:[]}),Wl(t)&&u&&u(t))}),[C,u,S]),j=(0,r.useCallback)((function(t,e){var i=[],r=[];t.forEach((function(t){var e=Ql(Gl(t,n),2),o=e[0],l=e[1],h=Ql(Vl(t,s,a),2),c=h[0],u=h[1],d=T?T(t):null;if(o&&c&&!d)i.push(t);else{var p=[l,u];d&&(p=p.concat(d)),r.push({file:t,errors:p.filter((function(t){return t}))})}})),(!l&&i.length>1||l&&h>=1&&i.length>h)&&(i.forEach((function(t){r.push({file:t,errors:[zl]})})),i.splice(0)),L({acceptedFiles:i,fileRejections:r,type:"setFiles"}),p&&p(i,r,e),r.length>0&&g&&g(r,e),i.length>0&&f&&f(i,e)}),[L,l,n,s,a,h,p,f,g,T]),H=(0,r.useCallback)((function(t){t.preventDefault(),t.persist(),J(t),F.current=[],Wl(t)&&Promise.resolve(o(t)).then((function(e){Hl(t)&&!S||j(e,t)})),L({type:"reset"})}),[o,j,S]),W=(0,r.useCallback)((function(){if(O.current){L({type:"openDialog"}),M();var t={multiple:l,types:Xl(n)};window.showOpenFilePicker(t).then((function(t){return o(t)})).then((function(t){j(t,null),L({type:"closeDialog"})})).catch((function(t){!function(t){return t instanceof DOMException&&("AbortError"===t.name||t.code===t.ABORT_ERR)}(t)?function(t){return t instanceof DOMException&&("SecurityError"===t.name||t.code===t.SECURITY_ERR)}(t)&&(O.current=!1,I.current&&(I.current.value=null,I.current.click())):(A(t),L({type:"closeDialog"}))}))}else I.current&&(L({type:"openDialog"}),M(),I.current.value=null,I.current.click())}),[L,M,A,y,j,n,l]),U=(0,r.useCallback)((function(t){C.current&&C.current.isEqualNode(t.target)&&(" "!==t.key&&"Enter"!==t.key&&32!==t.keyCode&&13!==t.keyCode||(t.preventDefault(),W()))}),[C,W]),q=(0,r.useCallback)((function(){L({type:"focus"})}),[]),X=(0,r.useCallback)((function(){L({type:"blur"})}),[]),Y=(0,r.useCallback)((function(){x||(!function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:window.navigator.userAgent;return function(t){return-1!==t.indexOf("MSIE")||-1!==t.indexOf("Trident/")}(t)||function(t){return-1!==t.indexOf("Edge/")}(t)}()?W():setTimeout(W,0))}),[x,W]),Z=function(t){return i?null:t},$=function(t){return b?null:Z(t)},K=function(t){return w?null:Z(t)},J=function(t){S&&t.stopPropagation()},Q=(0,r.useMemo)((function(){return function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=t.refKey,n=void 0===e?"ref":e,r=t.role,o=t.onKeyDown,a=t.onFocus,s=t.onBlur,l=t.onClick,h=t.onDragEnter,c=t.onDragOver,u=t.onDragLeave,d=t.onDrop,p=oh(t,$l);return ih(ih(rh({onKeyDown:$(ql(o,U)),onFocus:$(ql(a,q)),onBlur:$(ql(s,X)),onClick:Z(ql(l,Y)),onDragEnter:K(ql(h,z)),onDragOver:K(ql(c,G)),onDragLeave:K(ql(u,V)),onDrop:K(ql(d,H)),role:"string"==typeof r&&""!==r?r:"button"},n,C),i||b?{}:{tabIndex:0}),p)}}),[C,U,q,X,Y,z,G,V,H,b,w,i]),tt=(0,r.useCallback)((function(t){t.stopPropagation()}),[]),et=(0,r.useMemo)((function(){return function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=t.refKey,i=void 0===e?"ref":e,r=t.onChange,o=t.onClick,a=oh(t,Kl);return ih(ih({},rh({accept:n,multiple:l,type:"file",style:{display:"none"},onChange:Z(ql(r,H)),onClick:Z(ql(o,tt)),tabIndex:-1},i,I)),a)}}),[I,n,l,H,i]),nt=R.length,it=nt>0&&function(t){var e=t.files,n=t.accept,i=t.minSize,r=t.maxSize,o=t.multiple,a=t.maxFiles;return!(!o&&e.length>1||o&&a>=1&&e.length>a)&&e.every((function(t){var e=kl(Gl(t,n),1)[0],o=kl(Vl(t,i,r),1)[0];return e&&o}))}({files:R,accept:n,minSize:s,maxSize:a,multiple:l,maxFiles:h}),rt=nt>0&&!it;return ih(ih({},k),{},{isDragAccept:it,isDragReject:rt,isFocused:D&&!i,getRootProps:Q,getInputProps:et,rootRef:C,inputRef:I,open:Z(W)})}function ch(t,e){switch(e.type){case"focus":return ih(ih({},t),{},{isFocused:!0});case"blur":return ih(ih({},t),{},{isFocused:!1});case"openDialog":return ih(ih({},lh),{},{isFileDialogActive:!0});case"closeDialog":return ih(ih({},t),{},{isFileDialogActive:!1});case"setDraggedFiles":var n=e.isDragActive,i=e.draggedFiles;return ih(ih({},t),{},{draggedFiles:i,isDragActive:n});case"setFiles":return ih(ih({},t),{},{acceptedFiles:e.acceptedFiles,fileRejections:e.fileRejections});case"reset":return ih({},lh);default:return t}}function uh(){}function dh(t){let e;const n=new Set,i=(t,i)=>{const r="function"==typeof t?t(e):t;if(r!==e){const t=e;e=i?r:Object.assign({},e,r),n.forEach((n=>n(e,t)))}},r=()=>e,o={setState:i,getState:r,subscribe:(t,i,o)=>i||o?((t,i=r,o=Object.is)=>{console.warn("[DEPRECATED] Please use `subscribeWithSelector` middleware");let a=i(e);function s(){const n=i(e);if(!o(a,n)){const e=a;t(a=n,e)}}return n.add(s),()=>n.delete(s)})(t,i,o):(n.add(t),()=>n.delete(t)),destroy:()=>n.clear()};return e=t(i,r,o),o}const ph="undefined"==typeof window||!window.navigator||/ServerSideRendering|^Deno\//.test(window.navigator.userAgent)?r.useEffect:r.useLayoutEffect;Object.defineProperty,Object.getOwnPropertySymbols,Object.prototype.hasOwnProperty,Object.prototype.propertyIsEnumerable;Object.defineProperty,Object.getOwnPropertySymbols,Object.prototype.hasOwnProperty,Object.prototype.propertyIsEnumerable;var fh=n(1876),gh=n.n(fh);const mh=(...t)=>t.filter(Boolean).join(".");function vh(t,e){return(0,r.useMemo)(t,function(t,e){const n=(0,r.useRef)();return(e?_:x)(t,n.current)||(n.current=t),n.current}(e,!0))}function yh(t,e,n){const i=t.useStore((t=>function(t,e){return Object.entries((n=t,i=e,i.reduce(((t,e)=>(n&&n.hasOwnProperty(e)&&(t[e]=n[e]),t)),{}))).reduce(((t,[,{value:e,disabled:n,key:i}])=>(t[i]=n?void 0:e,t)),{});var n,i}(Vr(Vr({},n),t.data),e)),x);return i}function _h(t=3){const e=(0,r.useRef)(null),n=(0,r.useRef)(null),[i,o]=(0,r.useState)(!1),a=(0,r.useCallback)((()=>o(!0)),[]),s=(0,r.useCallback)((()=>o(!1)),[]);return(0,r.useLayoutEffect)((()=>{if(i){const{bottom:i,top:r,left:o}=e.current.getBoundingClientRect(),{height:a}=n.current.getBoundingClientRect(),s=i+a>window.innerHeight-40?"up":"down";n.current.style.position="fixed",n.current.style.zIndex="10000",n.current.style.left=o+"px","down"===s?n.current.style.top=i+t+"px":n.current.style.bottom=window.innerHeight-r+t+"px"}}),[t,i]),{popinRef:e,wrapperRef:n,shown:i,show:a,hide:s}}!function(t){t.forEach((function(t){Es.indexOf(t)<0&&(t(Cs,bs),Es.push(t))}))}([function(t,e){var n={white:"#ffffff",bisque:"#ffe4c4",blue:"#0000ff",cadetblue:"#5f9ea0",chartreuse:"#7fff00",chocolate:"#d2691e",coral:"#ff7f50",antiquewhite:"#faebd7",aqua:"#00ffff",azure:"#f0ffff",whitesmoke:"#f5f5f5",papayawhip:"#ffefd5",plum:"#dda0dd",blanchedalmond:"#ffebcd",black:"#000000",gold:"#ffd700",goldenrod:"#daa520",gainsboro:"#dcdcdc",cornsilk:"#fff8dc",cornflowerblue:"#6495ed",burlywood:"#deb887",aquamarine:"#7fffd4",beige:"#f5f5dc",crimson:"#dc143c",cyan:"#00ffff",darkblue:"#00008b",darkcyan:"#008b8b",darkgoldenrod:"#b8860b",darkkhaki:"#bdb76b",darkgray:"#a9a9a9",darkgreen:"#006400",darkgrey:"#a9a9a9",peachpuff:"#ffdab9",darkmagenta:"#8b008b",darkred:"#8b0000",darkorchid:"#9932cc",darkorange:"#ff8c00",darkslateblue:"#483d8b",gray:"#808080",darkslategray:"#2f4f4f",darkslategrey:"#2f4f4f",deeppink:"#ff1493",deepskyblue:"#00bfff",wheat:"#f5deb3",firebrick:"#b22222",floralwhite:"#fffaf0",ghostwhite:"#f8f8ff",darkviolet:"#9400d3",magenta:"#ff00ff",green:"#008000",dodgerblue:"#1e90ff",grey:"#808080",honeydew:"#f0fff0",hotpink:"#ff69b4",blueviolet:"#8a2be2",forestgreen:"#228b22",lawngreen:"#7cfc00",indianred:"#cd5c5c",indigo:"#4b0082",fuchsia:"#ff00ff",brown:"#a52a2a",maroon:"#800000",mediumblue:"#0000cd",lightcoral:"#f08080",darkturquoise:"#00ced1",lightcyan:"#e0ffff",ivory:"#fffff0",lightyellow:"#ffffe0",lightsalmon:"#ffa07a",lightseagreen:"#20b2aa",linen:"#faf0e6",mediumaquamarine:"#66cdaa",lemonchiffon:"#fffacd",lime:"#00ff00",khaki:"#f0e68c",mediumseagreen:"#3cb371",limegreen:"#32cd32",mediumspringgreen:"#00fa9a",lightskyblue:"#87cefa",lightblue:"#add8e6",midnightblue:"#191970",lightpink:"#ffb6c1",mistyrose:"#ffe4e1",moccasin:"#ffe4b5",mintcream:"#f5fffa",lightslategray:"#778899",lightslategrey:"#778899",navajowhite:"#ffdead",navy:"#000080",mediumvioletred:"#c71585",powderblue:"#b0e0e6",palegoldenrod:"#eee8aa",oldlace:"#fdf5e6",paleturquoise:"#afeeee",mediumturquoise:"#48d1cc",mediumorchid:"#ba55d3",rebeccapurple:"#663399",lightsteelblue:"#b0c4de",mediumslateblue:"#7b68ee",thistle:"#d8bfd8",tan:"#d2b48c",orchid:"#da70d6",mediumpurple:"#9370db",purple:"#800080",pink:"#ffc0cb",skyblue:"#87ceeb",springgreen:"#00ff7f",palegreen:"#98fb98",red:"#ff0000",yellow:"#ffff00",slateblue:"#6a5acd",lavenderblush:"#fff0f5",peru:"#cd853f",palevioletred:"#db7093",violet:"#ee82ee",teal:"#008080",slategray:"#708090",slategrey:"#708090",aliceblue:"#f0f8ff",darkseagreen:"#8fbc8f",darkolivegreen:"#556b2f",greenyellow:"#adff2f",seagreen:"#2e8b57",seashell:"#fff5ee",tomato:"#ff6347",silver:"#c0c0c0",sienna:"#a0522d",lavender:"#e6e6fa",lightgreen:"#90ee90",orange:"#ffa500",orangered:"#ff4500",steelblue:"#4682b4",royalblue:"#4169e1",turquoise:"#40e0d0",yellowgreen:"#9acd32",salmon:"#fa8072",saddlebrown:"#8b4513",sandybrown:"#f4a460",rosybrown:"#bc8f8f",darksalmon:"#e9967a",lightgoldenrodyellow:"#fafad2",snow:"#fffafa",lightgrey:"#d3d3d3",lightgray:"#d3d3d3",dimgray:"#696969",dimgrey:"#696969",olivedrab:"#6b8e23",olive:"#808000"},i={};for(var r in n)i[n[r]]=r;var o={};t.prototype.toName=function(e){if(!(this.rgba.a||this.rgba.r||this.rgba.g||this.rgba.b))return"transparent";var r,a,s=i[this.toHex()];if(s)return s;if(null==e?void 0:e.closest){var l=this.toRgb(),h=1/0,c="black";if(!o.length)for(var u in n)o[u]=new t(n[u]).toRgb();for(var d in n){var p=(r=l,a=o[d],Math.pow(r.r-a.r,2)+Math.pow(r.g-a.g,2)+Math.pow(r.b-a.b,2));p<h&&(h=p,c=d)}return c}},e.string.push([function(e){var i=e.toLowerCase(),r="transparent"===i?"#0000":n[i];return r?new t(r).toRgb():null},"name"])}]);const xh={rgb:"toRgb",hsl:"toHsl",hsv:"toHsv",hex:"toHex"};G.extend({color:()=>t=>Is(t).isValid()});function bh(t,{format:e,hasAlpha:n,isString:i}){const r=t[xh[e]+(i&&"hex"!==e?"String":"")]();return"object"!=typeof r||n?r:function(t,e){const n=Vr({},t);return e.forEach((e=>e in t&&delete n[e])),n}(r,["a"])}const wh=(t,e)=>{const n=Is(t);if(!n.isValid())throw Error("Invalid color");return bh(n,e)};var Sh=Object.freeze({__proto__:null,schema:t=>G().color().test(t),sanitize:wh,format:(t,e)=>bh(Is(t),Vr(Vr({},e),{},{isString:!0,format:"hex"})),normalize:({value:t})=>{const e=function(t){return Ss(t)[1]}(t),n={format:"name"===e?"hex":e,hasAlpha:"object"==typeof t?"a"in t:"hex"===e&&8===t.length||/^(rgba)|(hsla)|(hsva)/.test(t),isString:"string"==typeof t};return{value:wh(t,n),settings:n}}});const Th=Lo("div",{position:"relative",boxSizing:"border-box",borderRadius:"$sm",overflow:"hidden",cursor:"pointer",height:"$rowHeight",width:"$rowHeight",backgroundColor:"#fff",backgroundImage:'url(\'data:image/svg+xml;charset=utf-8,<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill-opacity=".05"><path d="M8 0h8v8H8zM0 8h8v8H0z"/></svg>\')',$inputStyle:"",$hover:"",zIndex:1,variants:{active:{true:{$inputStyle:"$accent1"}}},"&::before":{content:'""',position:"absolute",top:0,bottom:0,right:0,left:0,backgroundColor:"currentColor",zIndex:1}}),Mh=Lo("div",{position:"relative",display:"grid",gridTemplateColumns:"$sizes$rowHeight auto",columnGap:"$colGap",alignItems:"center"}),Ah=Lo("div",{width:"$colorPickerWidth",height:"$colorPickerHeight",".react-colorful":{width:"100%",height:"100%",boxShadow:"$level2",cursor:"crosshair"},".react-colorful__saturation":{borderRadius:"$sm $sm 0 0"},".react-colorful__alpha, .react-colorful__hue":{height:10},".react-colorful__last-control":{borderRadius:"0 0 $sm $sm"},".react-colorful__pointer":{height:12,width:12}});function Ch(t,e){return"rgb"!==e?Is(t).toRgb():t}function Ih({value:t,displayValue:e,settings:n,onUpdate:i}){const{emitOnEditStart:o,emitOnEditEnd:a}=wo(),{format:s,hasAlpha:l}=n,{popinRef:h,wrapperRef:c,shown:u,show:d,hide:p}=_h(),f=(0,r.useRef)(0),[g,m]=(0,r.useState)((()=>Ch(t,s))),v=l?ol:sl,y=()=>{p(),a(),window.clearTimeout(f.current)};return(0,r.useEffect)((()=>()=>window.clearTimeout(f.current)),[]),r.createElement(r.Fragment,null,r.createElement(Th,{ref:h,active:u,onClick:()=>(m(Ch(t,s)),d(),void o()),style:{color:e}}),u&&r.createElement(oa,null,r.createElement(na,{onPointerUp:y}),r.createElement(Ah,{ref:c,onMouseEnter:()=>window.clearTimeout(f.current),onMouseLeave:t=>0===t.buttons&&void(f.current=window.setTimeout(y,500))},r.createElement(v,{color:g,onChange:i}))))}var Eh=Vr({component:function(){const{value:t,displayValue:e,label:n,onChange:i,onUpdate:o,settings:a}=wo();return r.createElement(fa,{input:!0},r.createElement(ha,null,n),r.createElement(Mh,null,r.createElement(Ih,{value:t,displayValue:e,onChange:i,onUpdate:o,settings:a}),r.createElement(Wo,{value:e,onChange:i,onUpdate:o})))}},Sh);var kh=Vr({component:function(){const{label:t,displayValue:e,onUpdate:n,settings:i}=wo();return r.createElement(fa,{input:!0},r.createElement(ha,null,t),r.createElement(Za,{value:e,settings:i,onUpdate:n}))}},es(["x","y","z"]));const Lh=Lo("div",{$flexCenter:"",position:"relative",backgroundColor:"$elevation3",borderRadius:"$sm",cursor:"pointer",height:"$rowHeight",width:"$rowHeight",touchAction:"none",$draggable:"",$hover:"","&:active":{cursor:"none"},"&::after":{content:'""',backgroundColor:"$accent2",height:4,width:4,borderRadius:2}}),Dh=Lo("div",{$flexCenter:"",width:"$joystickWidth",height:"$joystickHeight",borderRadius:"$sm",boxShadow:"$level2",position:"fixed",zIndex:1e4,overflow:"hidden",$draggable:"",transform:"translate(-50%, -50%)",variants:{isOutOfBounds:{true:{backgroundColor:"$elevation1"},false:{backgroundColor:"$elevation3"}}},"> div":{position:"absolute",$flexCenter:"",borderStyle:"solid",borderWidth:1,borderColor:"$highlight1",backgroundColor:"$elevation3",width:"80%",height:"80%","&::after,&::before":{content:'""',position:"absolute",zindex:10,backgroundColor:"$highlight1"},"&::before":{width:"100%",height:1},"&::after":{height:"100%",width:1}},"> span":{position:"relative",zindex:100,width:10,height:10,backgroundColor:"$accent2",borderRadius:"50%"}});function Ph({value:t,settings:e,onUpdate:n}){const i=(0,r.useRef)(),o=(0,r.useRef)(0),a=(0,r.useRef)(0),s=(0,r.useRef)(1),[l,h]=(0,r.useState)(!1),[c,u]=(0,r.useState)(!1),[d,p]=va(),f=(0,r.useRef)(null),g=(0,r.useRef)(null);(0,r.useLayoutEffect)((()=>{if(l){const{top:t,left:e,width:n,height:i}=f.current.getBoundingClientRect();g.current.style.left=e+n/2+"px",g.current.style.top=t+i/2+"px"}}),[l]);const{keys:[m,v],joystick:y}=e,_="invertY"===y?1:-1,{[m]:{step:x},[v]:{step:b}}=e,w=Fo("sizes","joystickWidth"),S=Fo("sizes","joystickHeight"),T=.8*parseFloat(w)/2,M=.8*parseFloat(S)/2,A=(0,r.useCallback)((()=>{i.current||(u(!0),o.current&&p({x:o.current*T}),a.current&&p({y:a.current*-M}),i.current=window.setInterval((()=>{n((t=>{const e=x*o.current*s.current,n=_*b*a.current*s.current;return Array.isArray(t)?{[m]:t[0]+e,[v]:t[1]+n}:{[m]:t[m]+e,[v]:t[v]+n}}))}),16))}),[T,M,n,p,x,b,m,v,_]),C=(0,r.useCallback)((()=>{window.clearTimeout(i.current),i.current=void 0,u(!1)}),[]);(0,r.useEffect)((()=>{function t(t){s.current=po(t)}return window.addEventListener("keydown",t),window.addEventListener("keyup",t),()=>{window.clearTimeout(i.current),window.removeEventListener("keydown",t),window.removeEventListener("keyup",t)}}),[]);const I=ma((({first:e,active:i,delta:[r,l],movement:[c,u]})=>{e&&h(!0);const d=jr(c,-T,T),f=jr(u,-M,M);o.current=Math.abs(c)>Math.abs(d)?Math.sign(c-d):0,a.current=Math.abs(u)>Math.abs(f)?Math.sign(f-u):0;let g=t[m],y=t[v];i?(o.current||(g+=r*x*s.current,p({x:d})),a.current||(y-=_*l*b*s.current,p({y:f})),o.current||a.current?A():C(),n({[m]:g,[v]:y})):(h(!1),o.current=0,a.current=0,p({x:0,y:0}),C())}));return r.createElement(Lh,xo({ref:f},I()),l&&r.createElement(oa,null,r.createElement(Dh,{ref:g,isOutOfBounds:c},r.createElement("div",null),r.createElement("span",{ref:d}))))}const Rh=Lo("div",{display:"grid",columnGap:"$colGap",variants:{withJoystick:{true:{gridTemplateColumns:"$sizes$rowHeight auto"},false:{gridTemplateColumns:"auto"}}}});const Oh=["joystick"],Nh=es(["x","y"]);var Fh=Vr(Vr({component:function(){const{label:t,displayValue:e,onUpdate:n,settings:i}=wo();return r.createElement(fa,{input:!0},r.createElement(ha,null,t),r.createElement(Rh,{withJoystick:!!i.joystick},i.joystick&&r.createElement(Ph,{value:e,settings:i,onUpdate:n}),r.createElement(Za,{value:e,settings:i,onUpdate:n})))}},Nh),{},{normalize:t=>{let{joystick:e=!0}=t,n=Tr(t,Oh);const{value:i,settings:r}=Nh.normalize(n);return{value:i,settings:Vr(Vr({},r),{},{joystick:e})}}});var Bh=Object.freeze({__proto__:null,sanitize:t=>{if(void 0!==t){if(t instanceof File)try{return URL.createObjectURL(t)}catch(e){return}if("string"==typeof t&&0===t.indexOf("blob:"))return t;throw Error("Invalid image format [undefined | blob |\xa0File].")}},schema:(t,e)=>"object"==typeof e&&"image"in e,normalize:({image:t})=>({value:t})});const zh=Lo("div",{position:"relative",display:"grid",gridTemplateColumns:"$sizes$rowHeight auto 20px",columnGap:"$colGap",alignItems:"center"}),Gh=Lo("div",{$flexCenter:"",overflow:"hidden",height:"$rowHeight",background:"$elevation3",textAlign:"center",color:"inherit",borderRadius:"$sm",outline:"none",userSelect:"none",cursor:"pointer",$inputStyle:"",$hover:"",$focusWithin:"",$active:"$accent1 $elevation1",variants:{isDragAccept:{true:{$inputStyle:"$accent1",backgroundColor:"$elevation1"}}}}),Vh=Lo("div",{boxSizing:"border-box",borderRadius:"$sm",height:"$rowHeight",width:"$rowHeight",$inputStyle:"",backgroundSize:"cover",backgroundPosition:"center",variants:{hasImage:{true:{cursor:"pointer",$hover:"",$active:""}}}}),jh=Lo("div",{$flexCenter:"",width:"$imagePreviewWidth",height:"$imagePreviewHeight",borderRadius:"$sm",boxShadow:"$level2",pointerEvents:"none",$inputStyle:"",backgroundSize:"cover",backgroundPosition:"center"}),Hh=Lo("div",{fontSize:"0.8em",height:"100%",padding:"$rowGap $md"}),Wh=Lo("div",{$flexCenter:"",top:"0",right:"0",marginRight:"$sm",height:"100%",cursor:"pointer",variants:{disabled:{true:{color:"$elevation3",cursor:"default"}}},"&::after,&::before":{content:'""',position:"absolute",height:2,width:10,borderRadius:1,backgroundColor:"currentColor"},"&::after":{transform:"rotate(45deg)"},"&::before":{transform:"rotate(-45deg)"}});var Uh=Vr({component:function(){const{label:t,value:e,onUpdate:n,disabled:i}=wo(),{popinRef:o,wrapperRef:a,shown:s,show:l,hide:h}=_h(),c=(0,r.useCallback)((t=>{t.length&&n(t[0])}),[n]),u=(0,r.useCallback)((t=>{t.stopPropagation(),n(void 0)}),[n]),{getRootProps:d,getInputProps:p,isDragAccept:f}=hh({maxFiles:1,accept:"image/*",onDrop:c,disabled:i});return r.createElement(fa,{input:!0},r.createElement(ha,null,t),r.createElement(zh,null,r.createElement(Vh,{ref:o,hasImage:!!e,onPointerDown:()=>!!e&&l(),onPointerUp:h,style:{backgroundImage:e?`url(${e})`:"none"}}),s&&!!e&&r.createElement(oa,null,r.createElement(na,{onPointerUp:h,style:{cursor:"pointer"}}),r.createElement(jh,{ref:a,style:{backgroundImage:`url(${e})`}})),r.createElement(Gh,d({isDragAccept:f}),r.createElement("input",p()),r.createElement(Hh,null,f?"drop image":"click or drop")),r.createElement(Wh,{onClick:u,disabled:!e})))}},Bh);const qh=G().number(),Xh=t=>({min:t[0],max:t[1]}),Yh=(t,{bounds:[e,n]},i)=>{const r=Array.isArray(t)?Xh(t):t,o={min:i[0],max:i[1]},{min:a,max:s}=Vr(Vr({},o),r);return[jr(Number(a),e,Math.max(e,s)),jr(Number(s),Math.min(n,a),n)]};var Zh=Object.freeze({__proto__:null,schema:(t,e)=>G().array().length(2).every.number().test(t)&&G().schema({min:qh,max:qh}).test(e),format:Xh,sanitize:Yh,normalize:({value:t,min:e,max:n})=>{const i={min:e,max:n},r=[e,n],o=Vr(Vr({},$a(Xh(t),{min:i,max:i})),{},{bounds:r});return{value:Yh(Xh(t),o,t),settings:o}}});const $h=["value","bounds","onDrag"],Kh=["bounds"],Jh=Lo("div",{display:"grid",columnGap:"$colGap",gridTemplateColumns:"auto calc($sizes$numberInputMinWidth * 2 + $space$rowGap)"});function Qh(t){let{value:e,bounds:[n,i],onDrag:o}=t,a=Tr(t,$h);const s=(0,r.useRef)(null),l=(0,r.useRef)(null),h=(0,r.useRef)(null),c=(0,r.useRef)(0),u=Fo("sizes","scrubberWidth"),d=ma((({event:t,first:r,xy:[d],movement:[p],memo:f={}})=>{if(r){const{width:r,left:o}=s.current.getBoundingClientRect();c.current=r-parseFloat(u);const a=(null==t?void 0:t.target)===l.current||(null==t?void 0:t.target)===h.current;f.pos=Xr((d-o)/r,n,i);const p=Math.abs(f.pos-e.min)-Math.abs(f.pos-e.max);f.key=p<0||0===p&&f.pos<=e.min?"min":"max",a&&(f.pos=e[f.key])}const g=f.pos+Xr(p/c.current,0,i-n);return o({[f.key]:Ia(g,a[f.key])}),f})),p=`calc(${qr(e.min,n,i)} * (100% - ${u} - 8px) + 4px)`,f=`calc(${1-qr(e.max,n,i)} * (100% - ${u} - 8px) + 4px)`;return r.createElement(Sa,xo({ref:s},d()),r.createElement(ba,null,r.createElement(Ta,{style:{left:p,right:f}})),r.createElement(wa,{position:"left",ref:l,style:{left:p}}),r.createElement(wa,{position:"right",ref:h,style:{right:f}}))}var tc=Vr({component:function(){const{label:t,displayValue:e,onUpdate:n,settings:i}=wo(),o=Tr(i,Kh);return r.createElement(r.Fragment,null,r.createElement(fa,{input:!0},r.createElement(ha,null,t),r.createElement(Jh,null,r.createElement(Qh,xo({value:e},i,{onDrag:n})),r.createElement(Za,{value:e,settings:o,onUpdate:n,innerLabelTrim:0}))))}},Zh);const ec=["type","value"],nc=["onChange","transient","onEditStart","onEditEnd"],ic=function(){const t=function(t){const e="function"==typeof t?dh(t):t,n=(t=e.getState,n=Object.is)=>{const[,i]=(0,r.useReducer)((t=>t+1),0),o=e.getState(),a=(0,r.useRef)(o),s=(0,r.useRef)(t),l=(0,r.useRef)(n),h=(0,r.useRef)(!1),c=(0,r.useRef)();let u;void 0===c.current&&(c.current=t(o));let d=!1;(a.current!==o||s.current!==t||l.current!==n||h.current)&&(u=t(o),d=!n(c.current,u)),ph((()=>{d&&(c.current=u),a.current=o,s.current=t,l.current=n,h.current=!1}));const p=(0,r.useRef)(o);ph((()=>{const t=()=>{try{const t=e.getState(),n=s.current(t);l.current(c.current,n)||(a.current=t,c.current=n,i())}catch(t){h.current=!0,i()}},n=e.subscribe(t);return e.getState()!==p.current&&t(),n}),[]);const f=d?u:c.current;return(0,r.useDebugValue)(f),f};return Object.assign(n,e),n[Symbol.iterator]=function(){console.warn("[useStore, api] = create() is deprecated and will be removed in v4");const t=[n,e];return{next(){const e=t.length<=0;return{value:t.shift(),done:e}}}},n}((e=()=>({data:{}}),(t,n,i)=>{const r=i.subscribe;return i.subscribe=(t,e,n)=>{let o=t;if(e){const r=(null==n?void 0:n.equalityFn)||Object.is;let a=t(i.getState());o=n=>{const i=t(n);if(!r(a,i)){const t=a;e(a=i,t)}},(null==n?void 0:n.fireImmediately)&&e(a,a)}return r(o)},e(t,n,i)}));var e;const n=(()=>{const t=new Map;return{on:(e,n)=>{let i=t.get(e);void 0===i&&(i=new Set,t.set(e,i)),i.add(n)},off:(e,n)=>{const i=t.get(e);void 0!==i&&(i.delete(n),0===i.size&&t.delete(e))},emit:(e,...n)=>{const i=t.get(e);if(void 0!==i)for(const t of i)t(...n)}}})();this.storeId="_"+Math.random().toString(36).substr(2,9),this.useStore=t;const i={},o=new Set;this.getVisiblePaths=()=>{const t=this.getData(),e=Object.keys(t),n=[];Object.entries(i).forEach((([t,i])=>{i.render&&e.some((e=>0===e.indexOf(t)))&&!i.render(this.get)&&n.push(t+".")}));const r=[];return o.forEach((e=>{e in t&&t[e].__refCount>0&&n.every((t=>-1===e.indexOf(t)))&&(!t[e].render||t[e].render(this.get))&&r.push(e)})),r},this.setOrderedPaths=t=>{t.forEach((t=>o.add(t)))},this.orderPaths=t=>(this.setOrderedPaths(t),t),this.disposePaths=e=>{t.setState((t=>{const n=t.data;return e.forEach((t=>{if(t in n){const e=n[t];e.__refCount--,0===e.__refCount&&e.type in no&&delete n[t]}})),{data:n}}))},this.dispose=()=>{t.setState((()=>({data:{}})))},this.getFolderSettings=t=>i[t]||{},this.getData=()=>t.getState().data,this.addData=(e,n)=>{t.setState((t=>{const i=t.data;return Object.entries(e).forEach((([t,e])=>{let r=i[t];if(r){const{type:t,value:i}=e,o=Tr(e,ec);t!==r.type?Ir(Mr.INPUT_TYPE_OVERRIDE,t):((0===r.__refCount||n)&&Object.assign(r,o),r.__refCount++)}else i[t]=Vr(Vr({},e),{},{__refCount:1})})),{data:i}}))},this.setValueAtPath=(e,n,i)=>{t.setState((t=>{const r=t.data;return lo(r[e],n,e,this,i),{data:r}}))},this.setSettingsAtPath=(e,n)=>{t.setState((t=>{const i=t.data;return i[e].settings=Vr(Vr({},i[e].settings),n),{data:i}}))},this.disableInputAtPath=(e,n)=>{t.setState((t=>{const i=t.data;return i[e].disabled=n,{data:i}}))},this.set=(e,n)=>{t.setState((t=>{const i=t.data;return Object.entries(e).forEach((([t,e])=>{try{lo(i[t],e,void 0,void 0,n)}catch(r){0}})),{data:i}}))},this.getInput=t=>{try{return this.getData()[t]}catch(e){Ir(Mr.PATH_DOESNT_EXIST,t)}},this.get=t=>{var e;return null===(e=this.getInput(t))||void 0===e?void 0:e.value},this.emitOnEditStart=t=>{n.emit(`onEditStart:${t}`,this.get(t),t,Vr(Vr({},this.getInput(t)),{},{get:this.get}))},this.emitOnEditEnd=t=>{n.emit(`onEditEnd:${t}`,this.get(t),t,Vr(Vr({},this.getInput(t)),{},{get:this.get}))},this.subscribeToEditStart=(t,e)=>{const i=`onEditStart:${t}`;return n.on(i,e),()=>n.off(i,e)},this.subscribeToEditEnd=(t,e)=>{const i=`onEditEnd:${t}`;return n.on(i,e),()=>n.off(i,e)};const a=(t,e,n)=>{const r={};return Object.entries(t).forEach((([t,o])=>{if(""===t)return Ir(Mr.EMPTY_KEY);let s=mh(e,t);if(o.type===no.FOLDER){const t=a(o.schema,s,n);Object.assign(r,t),s in i||(i[s]=o.settings)}else if(t in n)Ir(Mr.DUPLICATE_KEYS,t,s,n[t].path);else{const e=function(t,e,n,i){const r=so(t,e),{type:o,input:a,options:s}=r;if(o)return o in no?r:{type:o,input:Fr(o,a,n,i),options:s};let l=Or(a);return l?{type:l,input:Fr(l,a,n,i),options:s}:(l=Or({value:a}),!!l&&{type:l,input:Fr(l,{value:a},n,i),options:s})}(o,t,s,r);if(e){const{type:i,options:o,input:a}=e,{onChange:l,transient:h,onEditStart:c,onEditEnd:u}=o,d=Tr(o,nc);r[s]=Vr(Vr(Vr({type:i},d),a),{},{fromPanel:!0}),n[t]={path:s,onChange:l,transient:h,onEditStart:c,onEditEnd:u}}else Ir(Mr.UNKNOWN_INPUT,s,o)}})),r};this.getDataFromSchema=t=>{const e={};return[a(t,"",e),e]}},rc=new ic;function oc(){return(0,r.useMemo)((()=>new ic),[])}const ac={collapsed:!1};function sc(t,e){return{type:no.FOLDER,schema:t,settings:Vr(Vr({},ac),e)}}const lc={disabled:!1};function hc(t,e){return{type:no.BUTTON,onClick:t,settings:Vr(Vr({},lc),e)}}function cc(t){return{type:no.BUTTON_GROUP,opts:t}}const uc={graph:!1,interval:100};function dc(t,e){return{type:no.MONITOR,objectOrFn:t,settings:Vr(Vr({},uc),e)}}const pc=t=>"__levaInput"in t,fc=["type","label","path","valueKey","value","settings","setValue","disabled"];function gc(t){let{type:e,label:n,path:i,valueKey:o,value:a,settings:s,setValue:l,disabled:h}=t,c=Tr(t,fc);const{displayValue:u,onChange:d,onUpdate:p}=ga({type:e,value:a,settings:s,setValue:l}),f=Rr[e].component;return f?r.createElement(bo.Provider,{value:Vr({key:o,path:i,id:""+i,label:n,displayValue:u,value:a,onChange:d,onUpdate:p,settings:s,setValue:l,disabled:h},c)},r.createElement(ea,{disabled:h},r.createElement(f,null))):(Ir(Mr.NO_COMPONENT_FOR_TYPE,e,i),null)}const mc=Lo("button",{display:"block",$reset:"",fontWeight:"$button",height:"$rowHeight",borderStyle:"none",borderRadius:"$sm",backgroundColor:"$elevation1",color:"$highlight1","&:not(:disabled)":{color:"$highlight3",backgroundColor:"$accent2",cursor:"pointer",$hover:"$accent3",$active:"$accent3 $accent1",$focus:""}});const vc=Lo("div",{$flex:"",justifyContent:"flex-end",gap:"$colGap"}),yc=Lo("button",{$reset:"",cursor:"pointer",borderRadius:"$xs","&:hover":{backgroundColor:"$elevation3"}});const _c=Lo("canvas",{height:"$monitorHeight",width:"100%",display:"block",borderRadius:"$sm"});const xc=(0,r.forwardRef)((function({initialValue:t},e){const n=Fo("colors","highlight3"),i=Fo("colors","elevation2"),o=Fo("colors","highlight1"),[a,s]=(0,r.useMemo)((()=>[Is(o).alpha(.4).toRgbString(),Is(o).alpha(.1).toRgbString()]),[o]),l=(0,r.useRef)([t]),h=(0,r.useRef)(t),c=(0,r.useRef)(t),u=(0,r.useRef)(),d=(0,r.useCallback)(((t,e)=>{if(!t)return;const{width:r,height:o}=t,u=new Path2D,d=r/100,p=.05*o;for(let n=0;n<l.current.length;n++){const t=d*n,e=o-qr(l.current[n],h.current,c.current)*(o-2*p)-p;u.lineTo(t,e)}e.clearRect(0,0,r,o);const f=new Path2D(u);f.lineTo(d*(l.current.length+1),o),f.lineTo(0,o),f.lineTo(0,0);const g=e.createLinearGradient(0,0,0,o);g.addColorStop(0,a),g.addColorStop(1,s),e.fillStyle=g,e.fill(f),e.strokeStyle=i,e.lineJoin="round",e.lineWidth=14,e.stroke(u),e.strokeStyle=n,e.lineWidth=2,e.stroke(u)}),[n,i,a,s]),[p,f]=function(t){const e=(0,r.useRef)(null),n=(0,r.useRef)(null),i=(0,r.useRef)(!1);return(0,r.useEffect)((()=>{const r=uo((()=>{e.current.width=e.current.offsetWidth*window.devicePixelRatio,e.current.height=e.current.offsetHeight*window.devicePixelRatio,t(e.current,n.current)}),250);return window.addEventListener("resize",r),i.current||(r(),i.current=!0),()=>window.removeEventListener("resize",r)}),[t]),(0,r.useEffect)((()=>{n.current=e.current.getContext("2d")}),[]),[e,n]}(d);return(0,r.useImperativeHandle)(e,(()=>({frame:t=>{(void 0===h.current||t<h.current)&&(h.current=t),(void 0===c.current||t>c.current)&&(c.current=t),function(t,e){t.push(e),t.length>100&&t.shift()}(l.current,t),u.current=requestAnimationFrame((()=>d(p.current,f.current)))}})),[p,f,d]),(0,r.useEffect)((()=>()=>cancelAnimationFrame(u.current)),[]),r.createElement(_c,{ref:p})})),bc=t=>Number.isFinite(t)?t.toPrecision(2):t.toString(),wc=(0,r.forwardRef)((function({initialValue:t},e){const[n,i]=(0,r.useState)(bc(t));return(0,r.useImperativeHandle)(e,(()=>({frame:t=>i(bc(t))})),[]),r.createElement("div",null,n)}));function Sc(t){return"function"==typeof t?t():t.current}const Tc=["type","label","key"],Mc={[no.BUTTON]:function({onClick:t,settings:e,label:n}){const i=Ao();return r.createElement(fa,null,r.createElement(mc,{disabled:e.disabled,onClick:()=>t(i.get)},n))},[no.BUTTON_GROUP]:function(t){const{label:e,opts:n}=(({label:t,opts:e})=>{let n="string"==typeof t&&""===t.trim()?null:t,i=e;return"object"==typeof e.opts&&(void 0!==i.label&&(n=e.label),i=e.opts),{label:n,opts:i}})(t),i=Ao();return r.createElement(fa,{input:!!e},e&&r.createElement(ha,null,e),r.createElement(vc,null,Object.entries(n).map((([t,e])=>r.createElement(yc,{key:t,onClick:()=>e(i.get)},t)))))},[no.MONITOR]:function({label:t,objectOrFn:e,settings:n}){const i=(0,r.useRef)(),o=(0,r.useRef)(Sc(e));return(0,r.useEffect)((()=>{const t=window.setInterval((()=>{var t;document.hidden||null===(t=i.current)||void 0===t||t.frame(Sc(e))}),n.interval);return()=>window.clearInterval(t)}),[e,n.interval]),r.createElement(fa,{input:!0},r.createElement(ha,{align:"top"},t),n.graph?r.createElement(xc,{ref:i,initialValue:o.current}):r.createElement(wc,{ref:i,initialValue:o.current}))}},Ac=r.memo((({path:t})=>{const[e,{set:n,setSettings:i,disable:o,storeId:a,emitOnEditStart:s,emitOnEditEnd:l}]=function(t){const e=Ao(),[n,i]=(0,r.useState)(_a(e.getData(),t)),o=(0,r.useCallback)((n=>e.setValueAtPath(t,n,!0)),[t,e]),a=(0,r.useCallback)((n=>e.setSettingsAtPath(t,n)),[t,e]),s=(0,r.useCallback)((n=>e.disableInputAtPath(t,n)),[t,e]),l=(0,r.useCallback)((()=>e.emitOnEditStart(t)),[t,e]),h=(0,r.useCallback)((()=>e.emitOnEditEnd(t)),[t,e]);return(0,r.useEffect)((()=>{i(_a(e.getData(),t));const n=e.useStore.subscribe((e=>_a(e.data,t)),i,{equalityFn:x});return()=>n()}),[e,t]),[n,{set:o,setSettings:a,disable:s,storeId:e.storeId,emitOnEditStart:l,emitOnEditEnd:h}]}(t);if(!e)return null;const{type:h,label:c,key:u}=e,d=Tr(e,Tc);if(h in no){const e=Mc[h];return r.createElement(e,xo({label:c,path:t},d))}return h in Rr?r.createElement(gc,xo({key:a+t,type:h,label:c,storeId:a,path:t,valueKey:u,setValue:n,setSettings:i,disable:o,emitOnEditStart:s,emitOnEditEnd:l},d)):(Er(Mr.UNSUPPORTED_INPUT,h,t),null)}));function Cc({toggle:t,toggled:e,name:n}){return r.createElement(Yo,{onClick:()=>t()},r.createElement(da,{toggled:e}),r.createElement("div",null,n))}const Ic=({name:t,path:e,tree:n})=>{const i=Ao(),o=mh(e,t),{collapsed:a,color:s}=i.getFolderSettings(o),[l,h]=(0,r.useState)(!a),c=(0,r.useRef)(null),u=Fo("colors","folderWidgetColor"),d=Fo("colors","folderTextColor");return(0,r.useLayoutEffect)((()=>{c.current.style.setProperty("--leva-colors-folderWidgetColor",s||u),c.current.style.setProperty("--leva-colors-folderTextColor",s||d)}),[s,u,d]),r.createElement(qo,{ref:c},r.createElement(Cc,{name:t,toggled:l,toggle:()=>h((t=>!t))}),r.createElement(Ec,{parent:o,tree:n,toggled:l}))},Ec=r.memo((({isRoot:t=!1,fill:e=!1,flat:n=!1,parent:i,tree:o,toggled:a})=>{const{wrapperRef:s,contentRef:l}=function(t){const e=(0,r.useRef)(null),n=(0,r.useRef)(null),i=(0,r.useRef)(!0);return(0,r.useLayoutEffect)((()=>{t||(e.current.style.height="0px",e.current.style.overflow="hidden")}),[]),(0,r.useEffect)((()=>{if(i.current)return void(i.current=!1);let r;const o=e.current,a=()=>{t&&(o.style.removeProperty("height"),o.style.removeProperty("overflow"),n.current.scrollIntoView({behavior:"smooth",block:"nearest"}))};o.addEventListener("transitionend",a,{once:!0});const{height:s}=n.current.getBoundingClientRect();return o.style.height=s+"px",t||(o.style.overflow="hidden",r=window.setTimeout((()=>o.style.height="0px"),50)),()=>{o.removeEventListener("transitionend",a),clearTimeout(r)}}),[t]),{wrapperRef:e,contentRef:n}}(a),h=Ao(),c=([t,e])=>{var n;return(pc(e)?null===(n=h.getInput(e.path))||void 0===n?void 0:n.order:h.getFolderSettings(mh(i,t)).order)||0},u=Object.entries(o).sort(((t,e)=>c(t)-c(e)));return r.createElement(Xo,{ref:s,isRoot:t,fill:e,flat:n},r.createElement(Zo,{ref:l,isRoot:t,toggled:a},u.map((([t,e])=>pc(e)?r.createElement(Ac,{key:e.path,valueKey:e.valueKey,path:e.path}):r.createElement(Ic,{key:t,name:t,path:i,tree:e})))))})),kc=Lo("div",{position:"relative",fontFamily:"$mono",fontSize:"$root",color:"$rootText",backgroundColor:"$elevation1",variants:{fill:{false:{position:"fixed",top:"10px",right:"10px",zIndex:1e3,width:"$rootWidth"},true:{position:"relative",width:"100%"}},flat:{false:{borderRadius:"$lg",boxShadow:"$level1"}},oneLineLabels:{true:{[`${Ko}`]:{gridTemplateColumns:"auto",gridAutoColumns:"minmax(max-content, 1fr)",gridAutoRows:"minmax($sizes$rowHeight), auto)",rowGap:0,columnGap:0,marginTop:"$rowGap"}}},hideTitleBar:{true:{$$titleBarHeight:"0px"},false:{$$titleBarHeight:"$sizes$titleBarHeight"}}},"&,*,*:after,*:before":{boxSizing:"border-box"},"*::selection":{backgroundColor:"$accent2"}}),Lc=Lo("i",{$flexCenter:"",width:40,userSelect:"none",cursor:"pointer","> svg":{fill:"$highlight1",transition:"transform 350ms ease, fill 250ms ease"},"&:hover > svg":{fill:"$highlight3"},variants:{active:{true:{"> svg":{fill:"$highlight2"}}}}}),Dc=Lo("div",{display:"flex",alignItems:"stretch",justifyContent:"space-between",height:"$titleBarHeight",variants:{mode:{drag:{cursor:"grab"}}}}),Pc=Lo("div",{$flex:"",position:"relative",width:"100%",overflow:"hidden",transition:"height 250ms ease",color:"$highlight3",paddingLeft:"$md",[`> ${Lc}`]:{height:30},variants:{toggled:{true:{height:30},false:{height:0}}}}),Rc=Lo("input",{$reset:"",flex:1,position:"relative",height:30,width:"100%",backgroundColor:"transparent",fontSize:"10px",borderRadius:"$root","&:focus":{},"&::placeholder":{color:"$highlight2"}}),Oc=Lo("div",{touchAction:"none",$flexCenter:"",flex:1,"> svg":{fill:"$highlight1"},color:"$highlight1",variants:{drag:{true:{$draggable:"","> svg":{transition:"fill 250ms ease"},"&:hover":{color:"$highlight3"},"&:hover > svg":{fill:"$highlight3"}}},filterEnabled:{false:{paddingRight:40}}}}),Nc=r.forwardRef((({setFilter:t,toggle:e},n)=>{const[i,o]=(0,r.useState)(""),a=(0,r.useMemo)((()=>uo(t,250)),[t]);return(0,r.useEffect)((()=>{a(i)}),[i,a]),r.createElement(r.Fragment,null,r.createElement(Rc,{ref:n,value:i,placeholder:"[Open filter with CMD+SHIFT+L]",onPointerDown:t=>t.stopPropagation(),onChange:t=>{const n=t.currentTarget.value;e(!0),o(n)}}),r.createElement(Lc,{onClick:()=>(t(""),void o("")),style:{visibility:i?"visible":"hidden"}},r.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",height:"14",width:"14",viewBox:"0 0 20 20",fill:"currentColor"},r.createElement("path",{fillRule:"evenodd",d:"M10 18a8 8 0 100-16 8 8 0 000 16zM8.707 7.293a1 1 0 00-1.414 1.414L8.586 10l-1.293 1.293a1 1 0 101.414 1.414L10 11.414l1.293 1.293a1 1 0 001.414-1.414L11.414 10l1.293-1.293a1 1 0 00-1.414-1.414L10 8.586 8.707 7.293z",clipRule:"evenodd"}))))}));function Fc({setFilter:t,onDrag:e,onDragStart:n,onDragEnd:i,toggle:o,toggled:a,title:s,drag:l,filterEnabled:h,from:c}){const[u,d]=(0,r.useState)(!1),p=(0,r.useRef)(null);(0,r.useEffect)((()=>{var t,e;u?null===(t=p.current)||void 0===t||t.focus():null===(e=p.current)||void 0===e||e.blur()}),[u]);const f=ma((({offset:[t,r],first:o,last:a})=>{e({x:t,y:r}),o&&n({x:t,y:r}),a&&i({x:t,y:r})}),{filterTaps:!0,from:({offset:[t,e]})=>[(null==c?void 0:c.x)||t,(null==c?void 0:c.y)||e]});return(0,r.useEffect)((()=>{const t=t=>{"L"===t.key&&t.shiftKey&&t.metaKey&&d((t=>!t))};return window.addEventListener("keydown",t),()=>window.removeEventListener("keydown",t)}),[]),r.createElement(r.Fragment,null,r.createElement(Dc,{mode:l?"drag":void 0},r.createElement(Lc,{active:!a,onClick:()=>o()},r.createElement(da,{toggled:a,width:12,height:8})),r.createElement(Oc,xo({},l?f():{},{drag:l,filterEnabled:h}),void 0===s&&l?r.createElement("svg",{width:"20",height:"10",viewBox:"0 0 28 14",xmlns:"http://www.w3.org/2000/svg"},r.createElement("circle",{cx:"2",cy:"2",r:"2"}),r.createElement("circle",{cx:"14",cy:"2",r:"2"}),r.createElement("circle",{cx:"26",cy:"2",r:"2"}),r.createElement("circle",{cx:"2",cy:"12",r:"2"}),r.createElement("circle",{cx:"14",cy:"12",r:"2"}),r.createElement("circle",{cx:"26",cy:"12",r:"2"})):s),h&&r.createElement(Lc,{active:u,onClick:()=>d((t=>!t))},r.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",height:"20",viewBox:"0 0 20 20"},r.createElement("path",{d:"M9 9a2 2 0 114 0 2 2 0 01-4 0z"}),r.createElement("path",{fillRule:"evenodd",d:"M10 18a8 8 0 100-16 8 8 0 000 16zm1-13a4 4 0 00-3.446 6.032l-2.261 2.26a1 1 0 101.414 1.415l2.261-2.261A4 4 0 1011 5z",clipRule:"evenodd"})))),r.createElement(Pc,{toggled:u},r.createElement(Nc,{ref:p,setFilter:t,toggle:o})))}const Bc=["store","hidden","theme","collapsed"];function zc(t){let{store:e,hidden:n=!1,theme:i,collapsed:o=!1}=t,a=Tr(t,Bc);const s=vh((()=>function(t){const e=Io();if(!t)return{theme:e,className:""};Object.keys(t).forEach((n=>{Object.assign(e[n],t[n])}));const n=Po(e);return{theme:e,className:n.className}}(i)),[i]),[l,h]=(0,r.useState)(!o),c="object"==typeof o?!o.collapsed:l,u=(0,r.useMemo)((()=>"object"==typeof o?t=>{"function"==typeof t?o.onChange(!t(!o.collapsed)):o.onChange(!t)}:h),[o]);return!e||n?null:r.createElement(So.Provider,{value:s},r.createElement(Gc,xo({store:e},a,{toggled:c,setToggle:u,rootClass:s.className})))}const Gc=r.memo((({store:t,rootClass:e,fill:n=!1,flat:i=!1,neverHide:o=!1,oneLineLabels:a=!1,titleBar:s={title:void 0,drag:!0,filter:!0,position:void 0,onDrag:void 0,onDragStart:void 0,onDragEnd:void 0},hideCopyButton:l=!1,toggled:h,setToggle:c})=>{var u,d;const p=(t=>{const[e,n]=(0,r.useState)(t.getVisiblePaths());return(0,r.useEffect)((()=>{n(t.getVisiblePaths());const e=t.useStore.subscribe(t.getVisiblePaths,n,{equalityFn:x});return()=>e()}),[t]),e})(t),[f,g]=(0,r.useState)(""),m=(0,r.useMemo)((()=>((t,e)=>{const n={},i=e?e.toLowerCase():null;return t.forEach((t=>{const[e,r]=function(t){const e=t.split(".");return[e.pop(),e.join(".")||void 0]}(t);(!i||e.toLowerCase().indexOf(i)>-1)&&gh()(n,r,{[e]:{__levaInput:!0,path:t}})})),n})(p,f)),[p,f]),[v,y]=va(),_=o||p.length>0,b="object"==typeof s&&s.title||void 0,w="object"!=typeof s||(null===(u=s.drag)||void 0===u||u),S="object"!=typeof s||(null===(d=s.filter)||void 0===d||d),T="object"==typeof s&&s.position||void 0,M="object"==typeof s&&s.onDrag||void 0,A="object"==typeof s&&s.onDragStart||void 0,C="object"==typeof s&&s.onDragEnd||void 0;return r.useEffect((()=>{y({x:null==T?void 0:T.x,y:null==T?void 0:T.y})}),[T,y]),No(),r.createElement(Mo.Provider,{value:{hideCopyButton:l}},r.createElement(kc,{ref:v,className:e,fill:n,flat:i,oneLineLabels:a,hideTitleBar:!s,style:{display:_?"block":"none"}},s&&r.createElement(Fc,{onDrag:t=>{y(t),null==M||M(t)},onDragStart:t=>null==A?void 0:A(t),onDragEnd:t=>null==C?void 0:C(t),setFilter:g,toggle:t=>c((e=>null!=t?t:!e)),toggled:h,title:b,drag:w,filterEnabled:S,from:T}),_&&r.createElement(To.Provider,{value:t},r.createElement(Ec,{isRoot:!0,fill:n,flat:i,tree:m,toggled:h}))))})),Vc=["isRoot"];let jc=!1,Hc=null;function Wc(t){let{isRoot:e=!1}=t,n=Tr(t,Vc);return(0,r.useEffect)((()=>(jc=!0,!e&&Hc&&(Hc.remove(),Hc=null),()=>{e||(jc=!1)})),[e]),r.createElement(zc,xo({store:rc},n))}function Uc(t){(0,r.useEffect)((()=>{t&&!jc&&(Hc||(Hc=document.getElementById("leva__root")||Object.assign(document.createElement("div"),{id:"leva__root"}),document.body&&(document.body.appendChild(Hc),function(t,e){const n=console.error;console.error=()=>{},i.render(t,e),console.error=n}(r.createElement(Wc,{isRoot:!0}),Hc))),jc=!0)}),[t])}const qc=["store"];function Xc(t){let{store:e}=t,n=Tr(t,qc);const i=Ao(),o=void 0===e?i:e;return r.createElement(zc,xo({store:o},n))}function Yc(t,e,n,i,o){const{folderName:a,schema:s,folderSettings:l,hookSettings:h,deps:c}=function(t,e,n,i,r){let o,a,s,l,h;return"string"==typeof t?(a=t,o=e,Array.isArray(n)?h=n:n&&("store"in n?(l=n,h=i):(s=n,Array.isArray(i)?h=i:(l=i,h=r)))):(o=t,Array.isArray(e)?h=e:(l=e,h=n)),{schema:o,folderName:a,folderSettings:s,hookSettings:l,deps:h||[]}}(t,e,n,i,o),u="function"==typeof s,d=(0,r.useRef)(!1),p=(0,r.useRef)(!0),f=vh((()=>{d.current=!0;const t="function"==typeof s?s():s;return a?{[a]:sc(t,l)}:t}),c);Uc(!(null!=h&&h.store));const[g]=(0,r.useState)((()=>(null==h?void 0:h.store)||rc)),[m,v]=(0,r.useMemo)((()=>g.getDataFromSchema(f)),[g,f]),[y,_,b,w,S]=(0,r.useMemo)((()=>{const t=[],e=[],n={},i={},r={};return Object.values(v).forEach((({path:o,onChange:a,onEditStart:s,onEditEnd:l,transient:h})=>{t.push(o),a?(n[o]=a,h||e.push(o)):e.push(o),s&&(i[o]=s),l&&(r[o]=l)})),[t,e,n,i,r]}),[v]),T=(0,r.useMemo)((()=>g.orderPaths(y)),[y,g]),M=yh(g,_,m),A=(0,r.useCallback)((t=>{const e=Object.entries(t).reduce(((t,[e,n])=>Object.assign(t,{[v[e].path]:n})),{});g.set(e,!1)}),[g,v]),C=(0,r.useCallback)((t=>g.get(v[t].path)),[g,v]);return(0,r.useEffect)((()=>{const t=!p.current&&d.current;return g.addData(m,t),p.current=!1,d.current=!1,()=>g.disposePaths(T)}),[g,T,m]),(0,r.useEffect)((()=>{const t=[];return Object.entries(b).forEach((([e,n])=>{n(g.get(e),e,Vr({initial:!0,get:g.get},g.getInput(e)));const i=g.useStore.subscribe((t=>{const n=t.data[e];return[n.disabled?void 0:n.value,n]}),(([t,i])=>n(t,e,Vr({initial:!1,get:g.get},i))),{equalityFn:x});t.push(i)})),()=>t.forEach((t=>t()))}),[g,b]),(0,r.useEffect)((()=>{const t=[];return Object.entries(w).forEach((([e,n])=>t.push(g.subscribeToEditStart(e,n)))),Object.entries(S).forEach((([e,n])=>t.push(g.subscribeToEditEnd(e,n)))),()=>t.forEach((t=>t()))}),[w,S,g]),u?[M,A,C]:M}Nr(io.SELECT,Oa),Nr(io.IMAGE,Uh),Nr(io.NUMBER,Ea),Nr(io.COLOR,Eh),Nr(io.STRING,Ga),Nr(io.BOOLEAN,Wa),Nr(io.INTERVAL,tc),Nr(io.VECTOR3D,kh),Nr(io.VECTOR2D,Fh)},8527:(t,e)=>{"use strict";var n="\n",i=function(){function t(t){this.string=t;for(var e=[0],i=0;i<t.length;)switch(t[i]){case n:i+=1,e.push(i);break;case"\r":t[i+=1]===n&&(i+=1),e.push(i);break;default:i++}this.offsets=e}return t.prototype.locationForIndex=function(t){if(t<0||t>this.string.length)return null;for(var e=0,n=this.offsets;n[e+1]<=t;)e++;return{line:e,column:t-n[e]}},t.prototype.indexForLocation=function(t){var e=t.line,n=t.column;return e<0||e>=this.offsets.length||n<0||n>this.lengthOfLine(e)?null:this.offsets[e]+n},t.prototype.lengthOfLine=function(t){var e=this.offsets[t];return(t===this.offsets.length-1?this.string.length:this.offsets[t+1])-e},t}()},1876:(t,e,n)=>{"use strict";var i=n(6999),r=n(2177),o=n(5417),a=n(7998);t.exports=function(t,e,n){if(!i(t))throw new TypeError("expected an object");if("string"!=typeof e||null==n)return r.apply(null,arguments);if("string"==typeof n)return a(t,e,n),t;var s=o(t,e);return i(n)&&i(s)&&(n=r({},s,n)),a(t,e,n),t}},3739:()=>{},2177:(t,e,n)=>{"use strict";var i=n(6999),r=n(8096);function o(t,e){for(var n=arguments.length,i=0;++i<n;){var o=arguments[i];s(o)&&r(o,a,t)}return t}function a(t,e){if(function(t){return"__proto__"!==t&&"constructor"!==t&&"prototype"!==t}(e)){var n=this[e];s(t)&&s(n)?o(n,t):this[e]=t}}function s(t){return i(t)&&!Array.isArray(t)}t.exports=o},1357:(t,e)=>{function n(t){let e,n=[];for(let i of t.split(",").map((t=>t.trim())))if(/^-?\d+$/.test(i))n.push(parseInt(i,10));else if(e=i.match(/^(-?\d+)(-|\.\.\.?|\u2025|\u2026|\u22EF)(-?\d+)$/)){let[t,i,r,o]=e;if(i&&o){i=parseInt(i),o=parseInt(o);const t=i<o?1:-1;"-"!==r&&".."!==r&&"\u2025"!==r||(o+=t);for(let e=i;e!==o;e+=t)n.push(e)}}return n}e.default=n,t.exports=n},8675:(t,e,n)=>{"use strict";n.d(e,{A:()=>On});var i=6378137,r=.0066943799901413165,o=484813681109536e-20,a=Math.PI/2,s=1e-10,l=.017453292519943295,h=57.29577951308232,c=Math.PI/4,u=2*Math.PI,d=3.14159265359,p={greenwich:0,lisbon:-9.131906111111,paris:2.337229166667,bogota:-74.080916666667,madrid:-3.687938888889,rome:12.452333333333,bern:7.439583333333,jakarta:106.807719444444,ferro:-17.666666666667,brussels:4.367975,stockholm:18.058277777778,athens:23.7163375,oslo:10.722916666667};const f={mm:{to_meter:.001},cm:{to_meter:.01},ft:{to_meter:.3048},"us-ft":{to_meter:1200/3937},fath:{to_meter:1.8288},kmi:{to_meter:1852},"us-ch":{to_meter:20.1168402336805},"us-mi":{to_meter:1609.34721869444},km:{to_meter:1e3},"ind-ft":{to_meter:.30479841},"ind-yd":{to_meter:.91439523},mi:{to_meter:1609.344},yd:{to_meter:.9144},ch:{to_meter:20.1168},link:{to_meter:.201168},dm:{to_meter:.01},in:{to_meter:.0254},"ind-ch":{to_meter:20.11669506},"us-in":{to_meter:.025400050800101},"us-yd":{to_meter:.914401828803658}};var g=/[\s_\-\/\(\)]/g;function m(t,e){if(t[e])return t[e];for(var n,i=Object.keys(t),r=e.toLowerCase().replace(g,""),o=-1;++o<i.length;)if((n=i[o]).toLowerCase().replace(g,"")===r)return t[n]}function v(t){var e,n,i,r={},o=t.split("+").map((function(t){return t.trim()})).filter((function(t){return t})).reduce((function(t,e){var n=e.split("=");return n.push(!0),t[n[0].toLowerCase()]=n[1],t}),{}),a={proj:"projName",datum:"datumCode",rf:function(t){r.rf=parseFloat(t)},lat_0:function(t){r.lat0=t*l},lat_1:function(t){r.lat1=t*l},lat_2:function(t){r.lat2=t*l},lat_ts:function(t){r.lat_ts=t*l},lon_0:function(t){r.long0=t*l},lon_1:function(t){r.long1=t*l},lon_2:function(t){r.long2=t*l},alpha:function(t){r.alpha=parseFloat(t)*l},gamma:function(t){r.rectified_grid_angle=parseFloat(t)},lonc:function(t){r.longc=t*l},x_0:function(t){r.x0=parseFloat(t)},y_0:function(t){r.y0=parseFloat(t)},k_0:function(t){r.k0=parseFloat(t)},k:function(t){r.k0=parseFloat(t)},a:function(t){r.a=parseFloat(t)},b:function(t){r.b=parseFloat(t)},r:function(t){r.a=r.b=parseFloat(t)},r_a:function(){r.R_A=!0},zone:function(t){r.zone=parseInt(t,10)},south:function(){r.utmSouth=!0},towgs84:function(t){r.datum_params=t.split(",").map((function(t){return parseFloat(t)}))},to_meter:function(t){r.to_meter=parseFloat(t)},units:function(t){r.units=t;var e=m(f,t);e&&(r.to_meter=e.to_meter)},from_greenwich:function(t){r.from_greenwich=t*l},pm:function(t){var e=m(p,t);r.from_greenwich=(e||parseFloat(t))*l},nadgrids:function(t){"@null"===t?r.datumCode="none":r.nadgrids=t},axis:function(t){var e="ewnsud";3===t.length&&-1!==e.indexOf(t.substr(0,1))&&-1!==e.indexOf(t.substr(1,1))&&-1!==e.indexOf(t.substr(2,1))&&(r.axis=t)},approx:function(){r.approx=!0}};for(e in o)n=o[e],e in a?"function"==typeof(i=a[e])?i(n):r[i]=n:r[e]=n;return"string"==typeof r.datumCode&&"WGS84"!==r.datumCode&&(r.datumCode=r.datumCode.toLowerCase()),r}const y=function(t){var e=new M(t);return e.output()};var _=1,x=/\s/,b=/[A-Za-z]/,w=/[A-Za-z84_]/,S=/[,\]]/,T=/[\d\.E\-\+]/;function M(t){if("string"!=typeof t)throw new Error("not a string");this.text=t.trim(),this.level=0,this.place=0,this.root=null,this.stack=[],this.currentObject=null,this.state=_}function A(t,e,n){Array.isArray(e)&&(n.unshift(e),e=null);var i=e?{}:t,r=n.reduce((function(t,e){return C(e,t),t}),i);e&&(t[e]=r)}function C(t,e){if(Array.isArray(t)){var n=t.shift();if("PARAMETER"===n&&(n=t.shift()),1===t.length)return Array.isArray(t[0])?(e[n]={},void C(t[0],e[n])):void(e[n]=t[0]);if(t.length)if("TOWGS84"!==n){if("AXIS"===n)return n in e||(e[n]=[]),void e[n].push(t);var i;switch(Array.isArray(n)||(e[n]={}),n){case"UNIT":case"PRIMEM":case"VERT_DATUM":return e[n]={name:t[0].toLowerCase(),convert:t[1]},void(3===t.length&&C(t[2],e[n]));case"SPHEROID":case"ELLIPSOID":return e[n]={name:t[0],a:t[1],rf:t[2]},void(4===t.length&&C(t[3],e[n]));case"EDATUM":case"ENGINEERINGDATUM":case"LOCAL_DATUM":case"DATUM":case"VERT_CS":case"VERTCRS":case"VERTICALCRS":return t[0]=["name",t[0]],void A(e,n,t);case"COMPD_CS":case"COMPOUNDCRS":case"FITTED_CS":case"PROJECTEDCRS":case"PROJCRS":case"GEOGCS":case"GEOCCS":case"PROJCS":case"LOCAL_CS":case"GEODCRS":case"GEODETICCRS":case"GEODETICDATUM":case"ENGCRS":case"ENGINEERINGCRS":return t[0]=["name",t[0]],A(e,n,t),void(e[n].type=n);default:for(i=-1;++i<t.length;)if(!Array.isArray(t[i]))return C(t,e[n]);return A(e,n,t)}}else e[n]=t;else e[n]=!0}else e[t]=!0}M.prototype.readCharicter=function(){var t=this.text[this.place++];if(4!==this.state)for(;x.test(t);){if(this.place>=this.text.length)return;t=this.text[this.place++]}switch(this.state){case _:return this.neutral(t);case 2:return this.keyword(t);case 4:return this.quoted(t);case 5:return this.afterquote(t);case 3:return this.number(t);case-1:return}},M.prototype.afterquote=function(t){if('"'===t)return this.word+='"',void(this.state=4);if(S.test(t))return this.word=this.word.trim(),void this.afterItem(t);throw new Error("havn't handled \""+t+'" in afterquote yet, index '+this.place)},M.prototype.afterItem=function(t){return","===t?(null!==this.word&&this.currentObject.push(this.word),this.word=null,void(this.state=_)):"]"===t?(this.level--,null!==this.word&&(this.currentObject.push(this.word),this.word=null),this.state=_,this.currentObject=this.stack.pop(),void(this.currentObject||(this.state=-1))):void 0},M.prototype.number=function(t){if(!T.test(t)){if(S.test(t))return this.word=parseFloat(this.word),void this.afterItem(t);throw new Error("havn't handled \""+t+'" in number yet, index '+this.place)}this.word+=t},M.prototype.quoted=function(t){'"'!==t?this.word+=t:this.state=5},M.prototype.keyword=function(t){if(w.test(t))this.word+=t;else{if("["===t){var e=[];return e.push(this.word),this.level++,null===this.root?this.root=e:this.currentObject.push(e),this.stack.push(this.currentObject),this.currentObject=e,void(this.state=_)}if(!S.test(t))throw new Error("havn't handled \""+t+'" in keyword yet, index '+this.place);this.afterItem(t)}},M.prototype.neutral=function(t){if(b.test(t))return this.word=t,void(this.state=2);if('"'===t)return this.word="",void(this.state=4);if(T.test(t))return this.word=t,void(this.state=3);if(!S.test(t))throw new Error("havn't handled \""+t+'" in neutral yet, index '+this.place);this.afterItem(t)},M.prototype.output=function(){for(;this.place<this.text.length;)this.readCharicter();if(-1===this.state)return this.root;throw new Error('unable to parse string "'+this.text+'". State is '+this.state)};var I=["PROJECTEDCRS","PROJCRS","GEOGCS","GEOCCS","PROJCS","LOCAL_CS","GEODCRS","GEODETICCRS","GEODETICDATUM","ENGCRS","ENGINEERINGCRS"];function E(t){return.017453292519943295*t}function k(t){for(var e=Object.keys(t),n=0,i=e.length;n<i;++n){var r=e[n];-1!==I.indexOf(r)&&L(t[r]),"object"==typeof t[r]&&k(t[r])}}function L(t){if(t.AUTHORITY){var e=Object.keys(t.AUTHORITY)[0];e&&e in t.AUTHORITY&&(t.title=e+":"+t.AUTHORITY[e])}if("GEOGCS"===t.type?t.projName="longlat":"LOCAL_CS"===t.type?(t.projName="identity",t.local=!0):"object"==typeof t.PROJECTION?t.projName=Object.keys(t.PROJECTION)[0]:t.projName=t.PROJECTION,t.AXIS){for(var n="",i=0,r=t.AXIS.length;i<r;++i){var o=[t.AXIS[i][0].toLowerCase(),t.AXIS[i][1].toLowerCase()];-1!==o[0].indexOf("north")||("y"===o[0]||"lat"===o[0])&&"north"===o[1]?n+="n":-1!==o[0].indexOf("south")||("y"===o[0]||"lat"===o[0])&&"south"===o[1]?n+="s":-1!==o[0].indexOf("east")||("x"===o[0]||"lon"===o[0])&&"east"===o[1]?n+="e":-1===o[0].indexOf("west")&&("x"!==o[0]&&"lon"!==o[0]||"west"!==o[1])||(n+="w")}2===n.length&&(n+="u"),3===n.length&&(t.axis=n)}t.UNIT&&(t.units=t.UNIT.name.toLowerCase(),"metre"===t.units&&(t.units="meter"),t.UNIT.convert&&("GEOGCS"===t.type?t.DATUM&&t.DATUM.SPHEROID&&(t.to_meter=t.UNIT.convert*t.DATUM.SPHEROID.a):t.to_meter=t.UNIT.convert));var a=t.GEOGCS;function s(e){return e*(t.to_meter||1)}"GEOGCS"===t.type&&(a=t),a&&(a.DATUM?t.datumCode=a.DATUM.name.toLowerCase():t.datumCode=a.name.toLowerCase(),"d_"===t.datumCode.slice(0,2)&&(t.datumCode=t.datumCode.slice(2)),"new_zealand_1949"===t.datumCode&&(t.datumCode="nzgd49"),"wgs_1984"!==t.datumCode&&"world_geodetic_system_1984"!==t.datumCode||("Mercator_Auxiliary_Sphere"===t.PROJECTION&&(t.sphere=!0),t.datumCode="wgs84"),"belge_1972"===t.datumCode&&(t.datumCode="rnb72"),a.DATUM&&a.DATUM.SPHEROID&&(t.ellps=a.DATUM.SPHEROID.name.replace("_19","").replace(/[Cc]larke\_18/,"clrk"),"international"===t.ellps.toLowerCase().slice(0,13)&&(t.ellps="intl"),t.a=a.DATUM.SPHEROID.a,t.rf=parseFloat(a.DATUM.SPHEROID.rf,10)),a.DATUM&&a.DATUM.TOWGS84&&(t.datum_params=a.DATUM.TOWGS84),~t.datumCode.indexOf("osgb_1936")&&(t.datumCode="osgb36"),~t.datumCode.indexOf("osni_1952")&&(t.datumCode="osni52"),(~t.datumCode.indexOf("tm65")||~t.datumCode.indexOf("geodetic_datum_of_1965"))&&(t.datumCode="ire65"),"ch1903+"===t.datumCode&&(t.datumCode="ch1903"),~t.datumCode.indexOf("israel")&&(t.datumCode="isr93")),t.b&&!isFinite(t.b)&&(t.b=t.a);[["standard_parallel_1","Standard_Parallel_1"],["standard_parallel_1","Latitude of 1st standard parallel"],["standard_parallel_2","Standard_Parallel_2"],["standard_parallel_2","Latitude of 2nd standard parallel"],["false_easting","False_Easting"],["false_easting","False easting"],["false-easting","Easting at false origin"],["false_northing","False_Northing"],["false_northing","False northing"],["false_northing","Northing at false origin"],["central_meridian","Central_Meridian"],["central_meridian","Longitude of natural origin"],["central_meridian","Longitude of false origin"],["latitude_of_origin","Latitude_Of_Origin"],["latitude_of_origin","Central_Parallel"],["latitude_of_origin","Latitude of natural origin"],["latitude_of_origin","Latitude of false origin"],["scale_factor","Scale_Factor"],["k0","scale_factor"],["latitude_of_center","Latitude_Of_Center"],["latitude_of_center","Latitude_of_center"],["lat0","latitude_of_center",E],["longitude_of_center","Longitude_Of_Center"],["longitude_of_center","Longitude_of_center"],["longc","longitude_of_center",E],["x0","false_easting",s],["y0","false_northing",s],["long0","central_meridian",E],["lat0","latitude_of_origin",E],["lat0","standard_parallel_1",E],["lat1","standard_parallel_1",E],["lat2","standard_parallel_2",E],["azimuth","Azimuth"],["alpha","azimuth",E],["srsCode","name"]].forEach((function(e){return function(t,e){var n=e[0],i=e[1];!(n in t)&&i in t&&(t[n]=t[i],3===e.length&&(t[n]=e[2](t[n])))}(t,e)})),t.long0||!t.longc||"Albers_Conic_Equal_Area"!==t.projName&&"Lambert_Azimuthal_Equal_Area"!==t.projName||(t.long0=t.longc),t.lat_ts||!t.lat1||"Stereographic_South_Pole"!==t.projName&&"Polar Stereographic (variant B)"!==t.projName?!t.lat_ts&&t.lat0&&"Polar_Stereographic"===t.projName&&(t.lat_ts=t.lat0,t.lat0=E(t.lat0>0?90:-90)):(t.lat0=E(t.lat1>0?90:-90),t.lat_ts=t.lat1)}function D(t){var e=y(t),n=e[0],i={};return C(e,i),k(i),i[n]}function P(t){var e=this;if(2===arguments.length){var n=arguments[1];"string"==typeof n?"+"===n.charAt(0)?P[t]=v(arguments[1]):P[t]=D(arguments[1]):P[t]=n}else if(1===arguments.length){if(Array.isArray(t))return t.map((function(t){Array.isArray(t)?P.apply(e,t):P(t)}));if("string"==typeof t){if(t in P)return P[t]}else"EPSG"in t?P["EPSG:"+t.EPSG]=t:"ESRI"in t?P["ESRI:"+t.ESRI]=t:"IAU2000"in t?P["IAU2000:"+t.IAU2000]=t:console.log(t);return}}!function(t){t("EPSG:4326","+title=WGS 84 (long/lat) +proj=longlat +ellps=WGS84 +datum=WGS84 +units=degrees"),t("EPSG:4269","+title=NAD83 (long/lat) +proj=longlat +a=6378137.0 +b=6356752.31414036 +ellps=GRS80 +datum=NAD83 +units=degrees"),t("EPSG:3857","+title=WGS 84 / Pseudo-Mercator +proj=merc +a=6378137 +b=6378137 +lat_ts=0.0 +lon_0=0.0 +x_0=0.0 +y_0=0 +k=1.0 +units=m +nadgrids=@null +no_defs");for(var e=0;e<=60;++e)t("EPSG:"+(32600+e),"+proj=utm +zone="+e+" +datum=WGS84 +units=m"),t("EPSG:"+(32700+e),"+proj=utm +zone="+e+" +south +datum=WGS84 +units=m");t.WGS84=t["EPSG:4326"],t["EPSG:3785"]=t["EPSG:3857"],t.GOOGLE=t["EPSG:3857"],t["EPSG:900913"]=t["EPSG:3857"],t["EPSG:102113"]=t["EPSG:3857"]}(P);const R=P;var O=["PROJECTEDCRS","PROJCRS","GEOGCS","GEOCCS","PROJCS","LOCAL_CS","GEODCRS","GEODETICCRS","GEODETICDATUM","ENGCRS","ENGINEERINGCRS"];var N=["3857","900913","3785","102113"];const F=function(t){if(!function(t){return"string"==typeof t}(t))return t;if(function(t){return t in R}(t))return R[t];if(function(t){return O.some((function(e){return t.indexOf(e)>-1}))}(t)){var e=D(t);if(function(t){var e=m(t,"authority");if(e){var n=m(e,"epsg");return n&&N.indexOf(n)>-1}}(e))return R["EPSG:3857"];var n=function(t){var e=m(t,"extension");if(e)return m(e,"proj4")}(e);return n?v(n):e}return function(t){return"+"===t[0]}(t)?v(t):void 0};function B(t,e){var n,i;if(t=t||{},!e)return t;for(i in e)void 0!==(n=e[i])&&(t[i]=n);return t}function z(t,e,n){var i=t*e;return n/Math.sqrt(1-i*i)}function G(t){return t<0?-1:1}function V(t){return Math.abs(t)<=d?t:t-G(t)*u}function j(t,e,n){var i=t*n,r=.5*t;return i=Math.pow((1-i)/(1+i),r),Math.tan(.5*(a-e))/i}function H(t,e){for(var n,i,r=.5*t,o=a-2*Math.atan(e),s=0;s<=15;s++)if(n=t*Math.sin(o),o+=i=a-2*Math.atan(e*Math.pow((1-n)/(1+n),r))-o,Math.abs(i)<=1e-10)return o;return-9999}function W(t){return t}var U=[{init:function(){var t=this.b/this.a;this.es=1-t*t,"x0"in this||(this.x0=0),"y0"in this||(this.y0=0),this.e=Math.sqrt(this.es),this.lat_ts?this.sphere?this.k0=Math.cos(this.lat_ts):this.k0=z(this.e,Math.sin(this.lat_ts),Math.cos(this.lat_ts)):this.k0||(this.k?this.k0=this.k:this.k0=1)},forward:function(t){var e,n,i=t.x,r=t.y;if(r*h>90&&r*h<-90&&i*h>180&&i*h<-180)return null;if(Math.abs(Math.abs(r)-a)<=s)return null;if(this.sphere)e=this.x0+this.a*this.k0*V(i-this.long0),n=this.y0+this.a*this.k0*Math.log(Math.tan(c+.5*r));else{var o=Math.sin(r),l=j(this.e,r,o);e=this.x0+this.a*this.k0*V(i-this.long0),n=this.y0-this.a*this.k0*Math.log(l)}return t.x=e,t.y=n,t},inverse:function(t){var e,n,i=t.x-this.x0,r=t.y-this.y0;if(this.sphere)n=a-2*Math.atan(Math.exp(-r/(this.a*this.k0)));else{var o=Math.exp(-r/(this.a*this.k0));if(-9999===(n=H(this.e,o)))return null}return e=V(this.long0+i/(this.a*this.k0)),t.x=e,t.y=n,t},names:["Mercator","Popular Visualisation Pseudo Mercator","Mercator_1SP","Mercator_Auxiliary_Sphere","merc"]},{init:function(){},forward:W,inverse:W,names:["longlat","identity"]}],q={},X=[];function Y(t,e){var n=X.length;return t.names?(X[n]=t,t.names.forEach((function(t){q[t.toLowerCase()]=n})),this):(console.log(e),!0)}const Z={start:function(){U.forEach(Y)},add:Y,get:function(t){if(!t)return!1;var e=t.toLowerCase();return void 0!==q[e]&&X[q[e]]?X[q[e]]:void 0}};var $={MERIT:{a:6378137,rf:298.257,ellipseName:"MERIT 1983"},SGS85:{a:6378136,rf:298.257,ellipseName:"Soviet Geodetic System 85"},GRS80:{a:6378137,rf:298.257222101,ellipseName:"GRS 1980(IUGG, 1980)"},IAU76:{a:6378140,rf:298.257,ellipseName:"IAU 1976"},airy:{a:6377563.396,b:6356256.91,ellipseName:"Airy 1830"},APL4:{a:6378137,rf:298.25,ellipseName:"Appl. Physics. 1965"},NWL9D:{a:6378145,rf:298.25,ellipseName:"Naval Weapons Lab., 1965"},mod_airy:{a:6377340.189,b:6356034.446,ellipseName:"Modified Airy"},andrae:{a:6377104.43,rf:300,ellipseName:"Andrae 1876 (Den., Iclnd.)"},aust_SA:{a:6378160,rf:298.25,ellipseName:"Australian Natl & S. Amer. 1969"},GRS67:{a:6378160,rf:298.247167427,ellipseName:"GRS 67(IUGG 1967)"},bessel:{a:6377397.155,rf:299.1528128,ellipseName:"Bessel 1841"},bess_nam:{a:6377483.865,rf:299.1528128,ellipseName:"Bessel 1841 (Namibia)"},clrk66:{a:6378206.4,b:6356583.8,ellipseName:"Clarke 1866"},clrk80:{a:6378249.145,rf:293.4663,ellipseName:"Clarke 1880 mod."},clrk80ign:{a:6378249.2,b:6356515,rf:293.4660213,ellipseName:"Clarke 1880 (IGN)"},clrk58:{a:6378293.645208759,rf:294.2606763692654,ellipseName:"Clarke 1858"},CPM:{a:6375738.7,rf:334.29,ellipseName:"Comm. des Poids et Mesures 1799"},delmbr:{a:6376428,rf:311.5,ellipseName:"Delambre 1810 (Belgium)"},engelis:{a:6378136.05,rf:298.2566,ellipseName:"Engelis 1985"},evrst30:{a:6377276.345,rf:300.8017,ellipseName:"Everest 1830"},evrst48:{a:6377304.063,rf:300.8017,ellipseName:"Everest 1948"},evrst56:{a:6377301.243,rf:300.8017,ellipseName:"Everest 1956"},evrst69:{a:6377295.664,rf:300.8017,ellipseName:"Everest 1969"},evrstSS:{a:6377298.556,rf:300.8017,ellipseName:"Everest (Sabah & Sarawak)"},fschr60:{a:6378166,rf:298.3,ellipseName:"Fischer (Mercury Datum) 1960"},fschr60m:{a:6378155,rf:298.3,ellipseName:"Fischer 1960"},fschr68:{a:6378150,rf:298.3,ellipseName:"Fischer 1968"},helmert:{a:6378200,rf:298.3,ellipseName:"Helmert 1906"},hough:{a:6378270,rf:297,ellipseName:"Hough"},intl:{a:6378388,rf:297,ellipseName:"International 1909 (Hayford)"},kaula:{a:6378163,rf:298.24,ellipseName:"Kaula 1961"},lerch:{a:6378139,rf:298.257,ellipseName:"Lerch 1979"},mprts:{a:6397300,rf:191,ellipseName:"Maupertius 1738"},new_intl:{a:6378157.5,b:6356772.2,ellipseName:"New International 1967"},plessis:{a:6376523,rf:6355863,ellipseName:"Plessis 1817 (France)"},krass:{a:6378245,rf:298.3,ellipseName:"Krassovsky, 1942"},SEasia:{a:6378155,b:6356773.3205,ellipseName:"Southeast Asia"},walbeck:{a:6376896,b:6355834.8467,ellipseName:"Walbeck"},WGS60:{a:6378165,rf:298.3,ellipseName:"WGS 60"},WGS66:{a:6378145,rf:298.25,ellipseName:"WGS 66"},WGS7:{a:6378135,rf:298.26,ellipseName:"WGS 72"}},K=$.WGS84={a:6378137,rf:298.257223563,ellipseName:"WGS 84"};$.sphere={a:6370997,b:6370997,ellipseName:"Normal Sphere (r=6370997)"};var J={wgs84:{towgs84:"0,0,0",ellipse:"WGS84",datumName:"WGS84"},ch1903:{towgs84:"674.374,15.056,405.346",ellipse:"bessel",datumName:"swiss"},ggrs87:{towgs84:"-199.87,74.79,246.62",ellipse:"GRS80",datumName:"Greek_Geodetic_Reference_System_1987"},nad83:{towgs84:"0,0,0",ellipse:"GRS80",datumName:"North_American_Datum_1983"},nad27:{nadgrids:"@conus,@alaska,@ntv2_0.gsb,@ntv1_can.dat",ellipse:"clrk66",datumName:"North_American_Datum_1927"},potsdam:{towgs84:"598.1,73.7,418.2,0.202,0.045,-2.455,6.7",ellipse:"bessel",datumName:"Potsdam Rauenberg 1950 DHDN"},carthage:{towgs84:"-263.0,6.0,431.0",ellipse:"clark80",datumName:"Carthage 1934 Tunisia"},hermannskogel:{towgs84:"577.326,90.129,463.919,5.137,1.474,5.297,2.4232",ellipse:"bessel",datumName:"Hermannskogel"},militargeographische_institut:{towgs84:"577.326,90.129,463.919,5.137,1.474,5.297,2.4232",ellipse:"bessel",datumName:"Militar-Geographische Institut"},osni52:{towgs84:"482.530,-130.596,564.557,-1.042,-0.214,-0.631,8.15",ellipse:"airy",datumName:"Irish National"},ire65:{towgs84:"482.530,-130.596,564.557,-1.042,-0.214,-0.631,8.15",ellipse:"mod_airy",datumName:"Ireland 1965"},rassadiran:{towgs84:"-133.63,-157.5,-158.62",ellipse:"intl",datumName:"Rassadiran"},nzgd49:{towgs84:"59.47,-5.04,187.44,0.47,-0.1,1.024,-4.5993",ellipse:"intl",datumName:"New Zealand Geodetic Datum 1949"},osgb36:{towgs84:"446.448,-125.157,542.060,0.1502,0.2470,0.8421,-20.4894",ellipse:"airy",datumName:"Ordnance Survey of Great Britain 1936"},s_jtsk:{towgs84:"589,76,480",ellipse:"bessel",datumName:"S-JTSK (Ferro)"},beduaram:{towgs84:"-106,-87,188",ellipse:"clrk80",datumName:"Beduaram"},gunung_segara:{towgs84:"-403,684,41",ellipse:"bessel",datumName:"Gunung Segara Jakarta"},rnb72:{towgs84:"106.869,-52.2978,103.724,-0.33657,0.456955,-1.84218,1",ellipse:"intl",datumName:"Reseau National Belge 1972"}};for(var Q in J){var tt=J[Q];J[tt.datumName]=tt}const et=J;const nt=function(t,e,n,i,r,a,s){var l={};return l.datum_type=void 0===t||"none"===t?5:4,e&&(l.datum_params=e.map(parseFloat),0===l.datum_params[0]&&0===l.datum_params[1]&&0===l.datum_params[2]||(l.datum_type=1),l.datum_params.length>3&&(0===l.datum_params[3]&&0===l.datum_params[4]&&0===l.datum_params[5]&&0===l.datum_params[6]||(l.datum_type=2,l.datum_params[3]*=o,l.datum_params[4]*=o,l.datum_params[5]*=o,l.datum_params[6]=l.datum_params[6]/1e6+1))),s&&(l.datum_type=3,l.grids=s),l.a=n,l.b=i,l.es=r,l.ep2=a,l};var it={};function rt(t){if(0===t.length)return null;var e="@"===t[0];return e&&(t=t.slice(1)),"null"===t?{name:"null",mandatory:!e,grid:null,isNull:!0}:{name:t,mandatory:!e,grid:it[t]||null,isNull:!1}}function ot(t){return t/3600*Math.PI/180}function at(t,e,n){return String.fromCharCode.apply(null,new Uint8Array(t.buffer.slice(e,n)))}function st(t){return t.map((function(t){return[ot(t.longitudeShift),ot(t.latitudeShift)]}))}function lt(t,e,n){return{name:at(t,e+8,e+16).trim(),parent:at(t,e+24,e+24+8).trim(),lowerLatitude:t.getFloat64(e+72,n),upperLatitude:t.getFloat64(e+88,n),lowerLongitude:t.getFloat64(e+104,n),upperLongitude:t.getFloat64(e+120,n),latitudeInterval:t.getFloat64(e+136,n),longitudeInterval:t.getFloat64(e+152,n),gridNodeCount:t.getInt32(e+168,n)}}function ht(t,e,n,i){for(var r=e+176,o=[],a=0;a<n.gridNodeCount;a++){var s={latitudeShift:t.getFloat32(r+16*a,i),longitudeShift:t.getFloat32(r+16*a+4,i),latitudeAccuracy:t.getFloat32(r+16*a+8,i),longitudeAccuracy:t.getFloat32(r+16*a+12,i)};o.push(s)}return o}function ct(t,e){if(!(this instanceof ct))return new ct(t);e=e||function(t){if(t)throw t};var n=F(t);if("object"==typeof n){var i=ct.projections.get(n.projName);if(i){if(n.datumCode&&"none"!==n.datumCode){var r=m(et,n.datumCode);r&&(n.datum_params=n.datum_params||(r.towgs84?r.towgs84.split(","):null),n.ellps=r.ellipse,n.datumName=r.datumName?r.datumName:n.datumCode)}n.k0=n.k0||1,n.axis=n.axis||"enu",n.ellps=n.ellps||"wgs84",n.lat1=n.lat1||n.lat0;var o=function(t,e,n,i,r){if(!t){var o=m($,i);o||(o=K),t=o.a,e=o.b,n=o.rf}return n&&!e&&(e=(1-1/n)*t),(0===n||Math.abs(t-e)<s)&&(r=!0,e=t),{a:t,b:e,rf:n,sphere:r}}(n.a,n.b,n.rf,n.ellps,n.sphere),a=function(t,e,n,i){var r=t*t,o=e*e,a=(r-o)/r,s=0;return i?(r=(t*=1-a*(.16666666666666666+a*(.04722222222222222+.022156084656084655*a)))*t,a=0):s=Math.sqrt(a),{es:a,e:s,ep2:(r-o)/o}}(o.a,o.b,o.rf,n.R_A),l=function(t){return void 0===t?null:t.split(",").map(rt)}(n.nadgrids),h=n.datum||nt(n.datumCode,n.datum_params,o.a,o.b,a.es,a.ep2,l);B(this,n),B(this,i),this.a=o.a,this.b=o.b,this.rf=o.rf,this.sphere=o.sphere,this.es=a.es,this.e=a.e,this.ep2=a.ep2,this.datum=h,this.init(),e(null,this)}else e("Could not get projection name from: "+t)}else e("Could not parse to valid json: "+t)}ct.projections=Z,ct.projections.start();const ut=ct;function dt(t,e,n){var i,r,o,s,l=t.x,h=t.y,c=t.z?t.z:0;if(h<-a&&h>-1.001*a)h=-a;else if(h>a&&h<1.001*a)h=a;else{if(h<-a)return{x:-1/0,y:-1/0,z:t.z};if(h>a)return{x:1/0,y:1/0,z:t.z}}return l>Math.PI&&(l-=2*Math.PI),r=Math.sin(h),s=Math.cos(h),o=r*r,{x:((i=n/Math.sqrt(1-e*o))+c)*s*Math.cos(l),y:(i+c)*s*Math.sin(l),z:(i*(1-e)+c)*r}}function pt(t,e,n,i){var r,o,a,s,l,h,c,u,d,p,f,g,m,v,y,_=1e-12,x=t.x,b=t.y,w=t.z?t.z:0;if(r=Math.sqrt(x*x+b*b),o=Math.sqrt(x*x+b*b+w*w),r/n<_){if(v=0,o/n<_)return y=-i,{x:t.x,y:t.y,z:t.z}}else v=Math.atan2(b,x);a=w/o,u=(s=r/o)*(1-e)*(l=1/Math.sqrt(1-e*(2-e)*s*s)),d=a*l,m=0;do{m++,h=e*(c=n/Math.sqrt(1-e*d*d))/(c+(y=r*u+w*d-c*(1-e*d*d))),g=(f=a*(l=1/Math.sqrt(1-h*(2-h)*s*s)))*u-(p=s*(1-h)*l)*d,u=p,d=f}while(g*g>1e-24&&m<30);return{x:v,y:Math.atan(f/Math.abs(p)),z:y}}function ft(t){return 1===t||2===t}function gt(t,e,n){if(function(t,e){return t.datum_type===e.datum_type&&!(t.a!==e.a||Math.abs(t.es-e.es)>5e-11)&&(1===t.datum_type?t.datum_params[0]===e.datum_params[0]&&t.datum_params[1]===e.datum_params[1]&&t.datum_params[2]===e.datum_params[2]:2!==t.datum_type||t.datum_params[0]===e.datum_params[0]&&t.datum_params[1]===e.datum_params[1]&&t.datum_params[2]===e.datum_params[2]&&t.datum_params[3]===e.datum_params[3]&&t.datum_params[4]===e.datum_params[4]&&t.datum_params[5]===e.datum_params[5]&&t.datum_params[6]===e.datum_params[6])}(t,e))return n;if(5===t.datum_type||5===e.datum_type)return n;var o=t.a,a=t.es;if(3===t.datum_type){if(0!==mt(t,!1,n))return;o=i,a=r}var s=e.a,l=e.b,h=e.es;if(3===e.datum_type&&(s=i,l=6356752.314,h=r),a===h&&o===s&&!ft(t.datum_type)&&!ft(e.datum_type))return n;if((n=dt(n,a,o),ft(t.datum_type)&&(n=function(t,e,n){if(1===e)return{x:t.x+n[0],y:t.y+n[1],z:t.z+n[2]};if(2===e){var i=n[0],r=n[1],o=n[2],a=n[3],s=n[4],l=n[5],h=n[6];return{x:h*(t.x-l*t.y+s*t.z)+i,y:h*(l*t.x+t.y-a*t.z)+r,z:h*(-s*t.x+a*t.y+t.z)+o}}}(n,t.datum_type,t.datum_params)),ft(e.datum_type)&&(n=function(t,e,n){if(1===e)return{x:t.x-n[0],y:t.y-n[1],z:t.z-n[2]};if(2===e){var i=n[0],r=n[1],o=n[2],a=n[3],s=n[4],l=n[5],h=n[6],c=(t.x-i)/h,u=(t.y-r)/h,d=(t.z-o)/h;return{x:c+l*u-s*d,y:-l*c+u+a*d,z:s*c-a*u+d}}}(n,e.datum_type,e.datum_params)),n=pt(n,h,s,l),3===e.datum_type)&&0!==mt(e,!0,n))return;return n}function mt(t,e,n){if(null===t.grids||0===t.grids.length)return console.log("Grid shift grids not found"),-1;var i={x:-n.x,y:n.y},r={x:Number.NaN,y:Number.NaN},o=[];t:for(var a=0;a<t.grids.length;a++){var s=t.grids[a];if(o.push(s.name),s.isNull){r=i;break}if(s.mandatory,null!==s.grid)for(var l=s.grid.subgrids,c=0,u=l.length;c<u;c++){var d=l[c],p=(Math.abs(d.del[1])+Math.abs(d.del[0]))/1e4,f=d.ll[0]-p,g=d.ll[1]-p,m=d.ll[0]+(d.lim[0]-1)*d.del[0]+p,v=d.ll[1]+(d.lim[1]-1)*d.del[1]+p;if(!(g>i.y||f>i.x||v<i.y||m<i.x)&&(r=vt(i,e,d),!isNaN(r.x)))break t}else if(s.mandatory)return console.log("Unable to find mandatory grid '"+s.name+"'"),-1}return isNaN(r.x)?(console.log("Failed to find a grid shift table for location '"+-i.x*h+" "+i.y*h+" tried: '"+o+"'"),-1):(n.x=-r.x,n.y=r.y,0)}function vt(t,e,n){var i={x:Number.NaN,y:Number.NaN};if(isNaN(t.x))return i;var r={x:t.x,y:t.y};r.x-=n.ll[0],r.y-=n.ll[1],r.x=V(r.x-Math.PI)+Math.PI;var o=yt(r,n);if(e){if(isNaN(o.x))return i;o.x=r.x-o.x,o.y=r.y-o.y;var a,s,l=9;do{if(s=yt(o,n),isNaN(s.x)){console.log("Inverse grid shift iteration failed, presumably at grid edge. Using first approximation.");break}a={x:r.x-(s.x+o.x),y:r.y-(s.y+o.y)},o.x+=a.x,o.y+=a.y}while(l--&&Math.abs(a.x)>1e-12&&Math.abs(a.y)>1e-12);if(l<0)return console.log("Inverse grid shift iterator failed to converge."),i;i.x=V(o.x+n.ll[0]),i.y=o.y+n.ll[1]}else isNaN(o.x)||(i.x=t.x+o.x,i.y=t.y+o.y);return i}function yt(t,e){var n,i={x:t.x/e.del[0],y:t.y/e.del[1]},r=Math.floor(i.x),o=Math.floor(i.y),a=i.x-1*r,s=i.y-1*o,l={x:Number.NaN,y:Number.NaN};if(r<0||r>=e.lim[0])return l;if(o<0||o>=e.lim[1])return l;n=o*e.lim[0]+r;var h=e.cvs[n][0],c=e.cvs[n][1];n++;var u=e.cvs[n][0],d=e.cvs[n][1];n+=e.lim[0];var p=e.cvs[n][0],f=e.cvs[n][1];n--;var g=e.cvs[n][0],m=e.cvs[n][1],v=a*s,y=a*(1-s),_=(1-a)*(1-s),x=(1-a)*s;return l.x=_*h+y*u+x*g+v*p,l.y=_*c+y*d+x*m+v*f,l}function _t(t,e,n){var i,r,o,a=n.x,s=n.y,l=n.z||0,h={};for(o=0;o<3;o++)if(!e||2!==o||void 0!==n.z)switch(0===o?(i=a,r=-1!=="ew".indexOf(t.axis[o])?"x":"y"):1===o?(i=s,r=-1!=="ns".indexOf(t.axis[o])?"y":"x"):(i=l,r="z"),t.axis[o]){case"e":case"n":h[r]=i;break;case"w":case"s":h[r]=-i;break;case"u":void 0!==n[r]&&(h.z=i);break;case"d":void 0!==n[r]&&(h.z=-i);break;default:return null}return h}function xt(t){var e={x:t[0],y:t[1]};return t.length>2&&(e.z=t[2]),t.length>3&&(e.m=t[3]),e}function bt(t){if("function"==typeof Number.isFinite){if(Number.isFinite(t))return;throw new TypeError("coordinates must be finite numbers")}if("number"!=typeof t||t!=t||!isFinite(t))throw new TypeError("coordinates must be finite numbers")}function wt(t,e,n,i){var r,o=void 0!==(n=Array.isArray(n)?xt(n):{x:n.x,y:n.y,z:n.z,m:n.m}).z;if(function(t){bt(t.x),bt(t.y)}(n),t.datum&&e.datum&&function(t,e){return(1===t.datum.datum_type||2===t.datum.datum_type||3===t.datum.datum_type)&&"WGS84"!==e.datumCode||(1===e.datum.datum_type||2===e.datum.datum_type||3===e.datum.datum_type)&&"WGS84"!==t.datumCode}(t,e)&&(n=wt(t,r=new ut("WGS84"),n,i),t=r),i&&"enu"!==t.axis&&(n=_t(t,!1,n)),"longlat"===t.projName)n={x:n.x*l,y:n.y*l,z:n.z||0};else if(t.to_meter&&(n={x:n.x*t.to_meter,y:n.y*t.to_meter,z:n.z||0}),!(n=t.inverse(n)))return;if(t.from_greenwich&&(n.x+=t.from_greenwich),n=gt(t.datum,e.datum,n))return e.from_greenwich&&(n={x:n.x-e.from_greenwich,y:n.y,z:n.z||0}),"longlat"===e.projName?n={x:n.x*h,y:n.y*h,z:n.z||0}:(n=e.forward(n),e.to_meter&&(n={x:n.x/e.to_meter,y:n.y/e.to_meter,z:n.z||0})),i&&"enu"!==e.axis?_t(e,!0,n):(n&&!o&&delete n.z,n)}var St=ut("WGS84");function Tt(t,e,n,i){var r,o,a;return Array.isArray(n)?(r=wt(t,e,n,i)||{x:NaN,y:NaN},n.length>2?void 0!==t.name&&"geocent"===t.name||void 0!==e.name&&"geocent"===e.name?"number"==typeof r.z?[r.x,r.y,r.z].concat(n.slice(3)):[r.x,r.y,n[2]].concat(n.slice(3)):[r.x,r.y].concat(n.slice(2)):[r.x,r.y]):(o=wt(t,e,n,i),2===(a=Object.keys(n)).length||a.forEach((function(i){if(void 0!==t.name&&"geocent"===t.name||void 0!==e.name&&"geocent"===e.name){if("x"===i||"y"===i||"z"===i)return}else if("x"===i||"y"===i)return;o[i]=n[i]})),o)}function Mt(t){return t instanceof ut?t:t.oProj?t.oProj:ut(t)}const At=function(t,e,n){t=Mt(t);var i,r=!1;return void 0===e?(e=t,t=St,r=!0):(void 0!==e.x||Array.isArray(e))&&(n=e,e=t,t=St,r=!0),e=Mt(e),n?Tt(t,e,n):(i={forward:function(n,i){return Tt(t,e,n,i)},inverse:function(n,i){return Tt(e,t,n,i)}},r&&(i.oProj=e),i)};var Ct="AJSAJS",It="AFAFAF",Et=65,kt=73,Lt=79,Dt=86,Pt=90;const Rt={forward:Ot,inverse:function(t){var e=zt(jt(t.toUpperCase()));if(e.lat&&e.lon)return[e.lon,e.lat,e.lon,e.lat];return[e.left,e.bottom,e.right,e.top]},toPoint:Nt};function Ot(t,e){return e=e||5,function(t,e){var n="00000"+t.easting,i="00000"+t.northing;return t.zoneNumber+t.zoneLetter+(p=t.easting,f=t.northing,g=t.zoneNumber,m=Vt(g),v=Math.floor(p/1e5),y=Math.floor(f/1e5)%20,r=v,o=y,a=m,s=a-1,l=Ct.charCodeAt(s),h=It.charCodeAt(s),c=l+r-1,u=h+o,d=!1,c>Pt&&(c=c-Pt+Et-1,d=!0),(c===kt||l<kt&&c>kt||(c>kt||l<kt)&&d)&&c++,(c===Lt||l<Lt&&c>Lt||(c>Lt||l<Lt)&&d)&&++c===kt&&c++,c>Pt&&(c=c-Pt+Et-1),u>Dt?(u=u-Dt+Et-1,d=!0):d=!1,(u===kt||h<kt&&u>kt||(u>kt||h<kt)&&d)&&u++,(u===Lt||h<Lt&&u>Lt||(u>Lt||h<Lt)&&d)&&++u===kt&&u++,u>Dt&&(u=u-Dt+Et-1),String.fromCharCode(c)+String.fromCharCode(u))+n.substr(n.length-5,e)+i.substr(i.length-5,e);var r,o,a,s,l,h,c,u,d;var p,f,g,m,v,y}(function(t){var e,n,i,r,o,a,s,l,h=t.lat,c=t.lon,u=6378137,d=.00669438,p=.9996,f=Ft(h),g=Ft(c);l=Math.floor((c+180)/6)+1,180===c&&(l=60);h>=56&&h<64&&c>=3&&c<12&&(l=32);h>=72&&h<84&&(c>=0&&c<9?l=31:c>=9&&c<21?l=33:c>=21&&c<33?l=35:c>=33&&c<42&&(l=37));s=Ft(6*(l-1)-180+3),e=d/(1-d),n=u/Math.sqrt(1-d*Math.sin(f)*Math.sin(f)),i=Math.tan(f)*Math.tan(f),r=e*Math.cos(f)*Math.cos(f),o=Math.cos(f)*(g-s),a=u*((1-d/4-3*d*d/64-5*d*d*d/256)*f-(3*d/8+3*d*d/32+45*d*d*d/1024)*Math.sin(2*f)+(15*d*d/256+45*d*d*d/1024)*Math.sin(4*f)-35*d*d*d/3072*Math.sin(6*f));var m=p*n*(o+(1-i+r)*o*o*o/6+(5-18*i+i*i+72*r-58*e)*o*o*o*o*o/120)+5e5,v=p*(a+n*Math.tan(f)*(o*o/2+(5-i+9*r+4*r*r)*o*o*o*o/24+(61-58*i+i*i+600*r-330*e)*o*o*o*o*o*o/720));h<0&&(v+=1e7);return{northing:Math.round(v),easting:Math.round(m),zoneNumber:l,zoneLetter:Gt(h)}}({lat:t[1],lon:t[0]}),e)}function Nt(t){var e=zt(jt(t.toUpperCase()));return e.lat&&e.lon?[e.lon,e.lat]:[(e.left+e.right)/2,(e.top+e.bottom)/2]}function Ft(t){return t*(Math.PI/180)}function Bt(t){return t/Math.PI*180}function zt(t){var e=t.northing,n=t.easting,i=t.zoneLetter,r=t.zoneNumber;if(r<0||r>60)return null;var o,a,s,l,h,c,u,d,p,f=.9996,g=6378137,m=.00669438,v=(1-Math.sqrt(.99330562))/(1+Math.sqrt(.99330562)),y=n-5e5,_=e;i<"N"&&(_-=1e7),u=6*(r-1)-180+3,o=.006739496752268451,p=(d=_/f/6367449.145945056)+(3*v/2-27*v*v*v/32)*Math.sin(2*d)+(21*v*v/16-55*v*v*v*v/32)*Math.sin(4*d)+151*v*v*v/96*Math.sin(6*d),a=g/Math.sqrt(1-m*Math.sin(p)*Math.sin(p)),s=Math.tan(p)*Math.tan(p),l=o*Math.cos(p)*Math.cos(p),h=.99330562*g/Math.pow(1-m*Math.sin(p)*Math.sin(p),1.5),c=y/(a*f);var x=p-a*Math.tan(p)/h*(c*c/2-(5+3*s+10*l-4*l*l-9*o)*c*c*c*c/24+(61+90*s+298*l+45*s*s-1.6983531815716497-3*l*l)*c*c*c*c*c*c/720);x=Bt(x);var b,w=(c-(1+2*s+l)*c*c*c/6+(5-2*l+28*s-3*l*l+8*o+24*s*s)*c*c*c*c*c/120)/Math.cos(p);if(w=u+Bt(w),t.accuracy){var S=zt({northing:t.northing+t.accuracy,easting:t.easting+t.accuracy,zoneLetter:t.zoneLetter,zoneNumber:t.zoneNumber});b={top:S.lat,right:S.lon,bottom:x,left:w}}else b={lat:x,lon:w};return b}function Gt(t){var e="Z";return 84>=t&&t>=72?e="X":72>t&&t>=64?e="W":64>t&&t>=56?e="V":56>t&&t>=48?e="U":48>t&&t>=40?e="T":40>t&&t>=32?e="S":32>t&&t>=24?e="R":24>t&&t>=16?e="Q":16>t&&t>=8?e="P":8>t&&t>=0?e="N":0>t&&t>=-8?e="M":-8>t&&t>=-16?e="L":-16>t&&t>=-24?e="K":-24>t&&t>=-32?e="J":-32>t&&t>=-40?e="H":-40>t&&t>=-48?e="G":-48>t&&t>=-56?e="F":-56>t&&t>=-64?e="E":-64>t&&t>=-72?e="D":-72>t&&t>=-80&&(e="C"),e}function Vt(t){var e=t%6;return 0===e&&(e=6),e}function jt(t){if(t&&0===t.length)throw"MGRSPoint coverting from nothing";for(var e,n=t.length,i=null,r="",o=0;!/[A-Z]/.test(e=t.charAt(o));){if(o>=2)throw"MGRSPoint bad conversion from: "+t;r+=e,o++}var a=parseInt(r,10);if(0===o||o+3>n)throw"MGRSPoint bad conversion from: "+t;var s=t.charAt(o++);if(s<="A"||"B"===s||"Y"===s||s>="Z"||"I"===s||"O"===s)throw"MGRSPoint zone letter "+s+" not handled: "+t;i=t.substring(o,o+=2);for(var l=Vt(a),h=function(t,e){var n=Ct.charCodeAt(e-1),i=1e5,r=!1;for(;n!==t.charCodeAt(0);){if(++n===kt&&n++,n===Lt&&n++,n>Pt){if(r)throw"Bad character: "+t;n=Et,r=!0}i+=1e5}return i}(i.charAt(0),l),c=function(t,e){if(t>"V")throw"MGRSPoint given invalid Northing "+t;var n=It.charCodeAt(e-1),i=0,r=!1;for(;n!==t.charCodeAt(0);){if(++n===kt&&n++,n===Lt&&n++,n>Dt){if(r)throw"Bad character: "+t;n=Et,r=!0}i+=1e5}return i}(i.charAt(1),l);c<Ht(s);)c+=2e6;var u=n-o;if(u%2!=0)throw"MGRSPoint has to have an even number \nof digits after the zone letter and two 100km letters - front \nhalf for easting meters, second half for \nnorthing meters"+t;var d,p,f,g=u/2,m=0,v=0;return g>0&&(d=1e5/Math.pow(10,g),p=t.substring(o,o+g),m=parseFloat(p)*d,f=t.substring(o+g),v=parseFloat(f)*d),{easting:m+h,northing:v+c,zoneLetter:s,zoneNumber:a,accuracy:d}}function Ht(t){var e;switch(t){case"C":e=11e5;break;case"D":e=2e6;break;case"E":e=28e5;break;case"F":e=37e5;break;case"G":e=46e5;break;case"H":e=55e5;break;case"J":e=64e5;break;case"K":e=73e5;break;case"L":e=82e5;break;case"M":e=91e5;break;case"N":e=0;break;case"P":e=8e5;break;case"Q":e=17e5;break;case"R":e=26e5;break;case"S":e=35e5;break;case"T":e=44e5;break;case"U":e=53e5;break;case"V":e=62e5;break;case"W":e=7e6;break;case"X":e=79e5;break;default:e=-1}if(e>=0)return e;throw"Invalid zone letter: "+t}function Wt(t,e,n){if(!(this instanceof Wt))return new Wt(t,e,n);if(Array.isArray(t))this.x=t[0],this.y=t[1],this.z=t[2]||0;else if("object"==typeof t)this.x=t.x,this.y=t.y,this.z=t.z||0;else if("string"==typeof t&&void 0===e){var i=t.split(",");this.x=parseFloat(i[0],10),this.y=parseFloat(i[1],10),this.z=parseFloat(i[2],10)||0}else this.x=t,this.y=e,this.z=n||0;console.warn("proj4.Point will be removed in version 3, use proj4.toPoint")}Wt.fromMGRS=function(t){return new Wt(Nt(t))},Wt.prototype.toMGRS=function(t){return Ot([this.x,this.y],t)};const Ut=Wt;var qt=.046875,Xt=.01953125,Yt=.01068115234375;function Zt(t){var e=[];e[0]=1-t*(.25+t*(qt+t*(Xt+t*Yt))),e[1]=t*(.75-t*(qt+t*(Xt+t*Yt)));var n=t*t;return e[2]=n*(.46875-t*(.013020833333333334+.007120768229166667*t)),n*=t,e[3]=n*(.3645833333333333-.005696614583333333*t),e[4]=n*t*.3076171875,e}function $t(t,e,n,i){return n*=e,e*=e,i[0]*t-n*(i[1]+e*(i[2]+e*(i[3]+e*i[4])))}function Kt(t,e,n){for(var i=1/(1-e),r=t,o=20;o;--o){var a=Math.sin(r),l=1-e*a*a;if(r-=l=($t(r,a,Math.cos(r),n)-t)*(l*Math.sqrt(l))*i,Math.abs(l)<s)return r}return r}const Jt={init:function(){this.x0=void 0!==this.x0?this.x0:0,this.y0=void 0!==this.y0?this.y0:0,this.long0=void 0!==this.long0?this.long0:0,this.lat0=void 0!==this.lat0?this.lat0:0,this.es&&(this.en=Zt(this.es),this.ml0=$t(this.lat0,Math.sin(this.lat0),Math.cos(this.lat0),this.en))},forward:function(t){var e,n,i,r=t.x,o=t.y,a=V(r-this.long0),l=Math.sin(o),h=Math.cos(o);if(this.es){var c=h*a,u=Math.pow(c,2),d=this.ep2*Math.pow(h,2),p=Math.pow(d,2),f=Math.abs(h)>s?Math.tan(o):0,g=Math.pow(f,2),m=Math.pow(g,2);e=1-this.es*Math.pow(l,2),c/=Math.sqrt(e);var v=$t(o,l,h,this.en);n=this.a*(this.k0*c*(1+u/6*(1-g+d+u/20*(5-18*g+m+14*d-58*g*d+u/42*(61+179*m-m*g-479*g)))))+this.x0,i=this.a*(this.k0*(v-this.ml0+l*a*c/2*(1+u/12*(5-g+9*d+4*p+u/30*(61+m-58*g+270*d-330*g*d+u/56*(1385+543*m-m*g-3111*g))))))+this.y0}else{var y=h*Math.sin(a);if(Math.abs(Math.abs(y)-1)<s)return 93;if(n=.5*this.a*this.k0*Math.log((1+y)/(1-y))+this.x0,i=h*Math.cos(a)/Math.sqrt(1-Math.pow(y,2)),(y=Math.abs(i))>=1){if(y-1>s)return 93;i=0}else i=Math.acos(i);o<0&&(i=-i),i=this.a*this.k0*(i-this.lat0)+this.y0}return t.x=n,t.y=i,t},inverse:function(t){var e,n,i,r,o=(t.x-this.x0)*(1/this.a),l=(t.y-this.y0)*(1/this.a);if(this.es)if(n=Kt(e=this.ml0+l/this.k0,this.es,this.en),Math.abs(n)<a){var h=Math.sin(n),c=Math.cos(n),u=Math.abs(c)>s?Math.tan(n):0,d=this.ep2*Math.pow(c,2),p=Math.pow(d,2),f=Math.pow(u,2),g=Math.pow(f,2);e=1-this.es*Math.pow(h,2);var m=o*Math.sqrt(e)/this.k0,v=Math.pow(m,2);i=n-(e*=u)*v/(1-this.es)*.5*(1-v/12*(5+3*f-9*d*f+d-4*p-v/30*(61+90*f-252*d*f+45*g+46*d-v/56*(1385+3633*f+4095*g+1574*g*f)))),r=V(this.long0+m*(1-v/6*(1+2*f+d-v/20*(5+28*f+24*g+8*d*f+6*d-v/42*(61+662*f+1320*g+720*g*f))))/c)}else i=a*G(l),r=0;else{var y=Math.exp(o/this.k0),_=.5*(y-1/y),x=this.lat0+l/this.k0,b=Math.cos(x);e=Math.sqrt((1-Math.pow(b,2))/(1+Math.pow(_,2))),i=Math.asin(e),l<0&&(i=-i),r=0===_&&0===b?0:V(Math.atan2(_,b)+this.long0)}return t.x=r,t.y=i,t},names:["Fast_Transverse_Mercator","Fast Transverse Mercator"]};function Qt(t){var e=Math.exp(t);return e=(e-1/e)/2}function te(t,e){t=Math.abs(t),e=Math.abs(e);var n=Math.max(t,e),i=Math.min(t,e)/(n||1);return n*Math.sqrt(1+Math.pow(i,2))}function ee(t){var e=Math.abs(t);return e=function(t){var e=1+t,n=e-1;return 0===n?t:t*Math.log(e)/n}(e*(1+e/(te(1,e)+1))),t<0?-e:e}function ne(t,e){for(var n,i=2*Math.cos(2*e),r=t.length-1,o=t[r],a=0;--r>=0;)n=i*o-a+t[r],a=o,o=n;return e+n*Math.sin(2*e)}function ie(t,e,n){for(var i,r,o=Math.sin(e),a=Math.cos(e),s=Qt(n),l=function(t){var e=Math.exp(t);return(e+1/e)/2}(n),h=2*a*l,c=-2*o*s,u=t.length-1,d=t[u],p=0,f=0,g=0;--u>=0;)i=f,r=p,d=h*(f=d)-i-c*(p=g)+t[u],g=c*f-r+h*p;return[(h=o*l)*d-(c=a*s)*g,h*g+c*d]}const re={init:function(){if(!this.approx&&(isNaN(this.es)||this.es<=0))throw new Error('Incorrect elliptical usage. Try using the +approx option in the proj string, or PROJECTION["Fast_Transverse_Mercator"] in the WKT.');this.approx&&(Jt.init.apply(this),this.forward=Jt.forward,this.inverse=Jt.inverse),this.x0=void 0!==this.x0?this.x0:0,this.y0=void 0!==this.y0?this.y0:0,this.long0=void 0!==this.long0?this.long0:0,this.lat0=void 0!==this.lat0?this.lat0:0,this.cgb=[],this.cbg=[],this.utg=[],this.gtu=[];var t=this.es/(1+Math.sqrt(1-this.es)),e=t/(2-t),n=e;this.cgb[0]=e*(2+e*(-2/3+e*(e*(116/45+e*(26/45+e*(-2854/675)))-2))),this.cbg[0]=e*(e*(2/3+e*(4/3+e*(-82/45+e*(32/45+e*(4642/4725)))))-2),n*=e,this.cgb[1]=n*(7/3+e*(e*(-227/45+e*(2704/315+e*(2323/945)))-1.6)),this.cbg[1]=n*(5/3+e*(-16/15+e*(-13/9+e*(904/315+e*(-1522/945))))),n*=e,this.cgb[2]=n*(56/15+e*(-136/35+e*(-1262/105+e*(73814/2835)))),this.cbg[2]=n*(-26/15+e*(34/21+e*(1.6+e*(-12686/2835)))),n*=e,this.cgb[3]=n*(4279/630+e*(-332/35+e*(-399572/14175))),this.cbg[3]=n*(1237/630+e*(e*(-24832/14175)-2.4)),n*=e,this.cgb[4]=n*(4174/315+e*(-144838/6237)),this.cbg[4]=n*(-734/315+e*(109598/31185)),n*=e,this.cgb[5]=n*(601676/22275),this.cbg[5]=n*(444337/155925),n=Math.pow(e,2),this.Qn=this.k0/(1+e)*(1+n*(1/4+n*(1/64+n/256))),this.utg[0]=e*(e*(2/3+e*(-37/96+e*(1/360+e*(81/512+e*(-96199/604800)))))-.5),this.gtu[0]=e*(.5+e*(-2/3+e*(5/16+e*(41/180+e*(-127/288+e*(7891/37800)))))),this.utg[1]=n*(-1/48+e*(-1/15+e*(437/1440+e*(-46/105+e*(1118711/3870720))))),this.gtu[1]=n*(13/48+e*(e*(557/1440+e*(281/630+e*(-1983433/1935360)))-.6)),n*=e,this.utg[2]=n*(-17/480+e*(37/840+e*(209/4480+e*(-5569/90720)))),this.gtu[2]=n*(61/240+e*(-103/140+e*(15061/26880+e*(167603/181440)))),n*=e,this.utg[3]=n*(-4397/161280+e*(11/504+e*(830251/7257600))),this.gtu[3]=n*(49561/161280+e*(-179/168+e*(6601661/7257600))),n*=e,this.utg[4]=n*(-4583/161280+e*(108847/3991680)),this.gtu[4]=n*(34729/80640+e*(-3418889/1995840)),n*=e,this.utg[5]=n*(-20648693/638668800),this.gtu[5]=.6650675310896665*n;var i=ne(this.cbg,this.lat0);this.Zb=-this.Qn*(i+function(t,e){for(var n,i=2*Math.cos(e),r=t.length-1,o=t[r],a=0;--r>=0;)n=i*o-a+t[r],a=o,o=n;return Math.sin(e)*n}(this.gtu,2*i))},forward:function(t){var e=V(t.x-this.long0),n=t.y;n=ne(this.cbg,n);var i=Math.sin(n),r=Math.cos(n),o=Math.sin(e),a=Math.cos(e);n=Math.atan2(i,a*r),e=Math.atan2(o*r,te(i,r*a)),e=ee(Math.tan(e));var s,l,h=ie(this.gtu,2*n,2*e);return n+=h[0],e+=h[1],Math.abs(e)<=2.623395162778?(s=this.a*(this.Qn*e)+this.x0,l=this.a*(this.Qn*n+this.Zb)+this.y0):(s=1/0,l=1/0),t.x=s,t.y=l,t},inverse:function(t){var e,n,i=(t.x-this.x0)*(1/this.a),r=(t.y-this.y0)*(1/this.a);if(r=(r-this.Zb)/this.Qn,i/=this.Qn,Math.abs(i)<=2.623395162778){var o=ie(this.utg,2*r,2*i);r+=o[0],i+=o[1],i=Math.atan(Qt(i));var a=Math.sin(r),s=Math.cos(r),l=Math.sin(i),h=Math.cos(i);r=Math.atan2(a*h,te(l,h*s)),e=V((i=Math.atan2(l,h*s))+this.long0),n=ne(this.cgb,r)}else e=1/0,n=1/0;return t.x=e,t.y=n,t},names:["Extended_Transverse_Mercator","Extended Transverse Mercator","etmerc","Transverse_Mercator","Transverse Mercator","Gauss Kruger","Gauss_Kruger","tmerc"]};const oe={init:function(){var t=function(t,e){if(void 0===t){if((t=Math.floor(30*(V(e)+Math.PI)/Math.PI)+1)<0)return 0;if(t>60)return 60}return t}(this.zone,this.long0);if(void 0===t)throw new Error("unknown utm zone");this.lat0=0,this.long0=(6*Math.abs(t)-183)*l,this.x0=5e5,this.y0=this.utmSouth?1e7:0,this.k0=.9996,re.init.apply(this),this.forward=re.forward,this.inverse=re.inverse},names:["Universal Transverse Mercator System","utm"],dependsOn:"etmerc"};function ae(t,e){return Math.pow((1-t)/(1+t),e)}const se={init:function(){var t=Math.sin(this.lat0),e=Math.cos(this.lat0);e*=e,this.rc=Math.sqrt(1-this.es)/(1-this.es*t*t),this.C=Math.sqrt(1+this.es*e*e/(1-this.es)),this.phic0=Math.asin(t/this.C),this.ratexp=.5*this.C*this.e,this.K=Math.tan(.5*this.phic0+c)/(Math.pow(Math.tan(.5*this.lat0+c),this.C)*ae(this.e*t,this.ratexp))},forward:function(t){var e=t.x,n=t.y;return t.y=2*Math.atan(this.K*Math.pow(Math.tan(.5*n+c),this.C)*ae(this.e*Math.sin(n),this.ratexp))-a,t.x=this.C*e,t},inverse:function(t){for(var e=t.x/this.C,n=t.y,i=Math.pow(Math.tan(.5*n+c)/this.K,1/this.C),r=20;r>0&&(n=2*Math.atan(i*ae(this.e*Math.sin(t.y),-.5*this.e))-a,!(Math.abs(n-t.y)<1e-14));--r)t.y=n;return r?(t.x=e,t.y=n,t):null},names:["gauss"]};const le={init:function(){se.init.apply(this),this.rc&&(this.sinc0=Math.sin(this.phic0),this.cosc0=Math.cos(this.phic0),this.R2=2*this.rc,this.title||(this.title="Oblique Stereographic Alternative"))},forward:function(t){var e,n,i,r;return t.x=V(t.x-this.long0),se.forward.apply(this,[t]),e=Math.sin(t.y),n=Math.cos(t.y),i=Math.cos(t.x),r=this.k0*this.R2/(1+this.sinc0*e+this.cosc0*n*i),t.x=r*n*Math.sin(t.x),t.y=r*(this.cosc0*e-this.sinc0*n*i),t.x=this.a*t.x+this.x0,t.y=this.a*t.y+this.y0,t},inverse:function(t){var e,n,i,r,o;if(t.x=(t.x-this.x0)/this.a,t.y=(t.y-this.y0)/this.a,t.x/=this.k0,t.y/=this.k0,o=te(t.x,t.y)){var a=2*Math.atan2(o,this.R2);e=Math.sin(a),n=Math.cos(a),r=Math.asin(n*this.sinc0+t.y*e*this.cosc0/o),i=Math.atan2(t.x*e,o*this.cosc0*n-t.y*this.sinc0*e)}else r=this.phic0,i=0;return t.x=i,t.y=r,se.inverse.apply(this,[t]),t.x=V(t.x+this.long0),t},names:["Stereographic_North_Pole","Oblique_Stereographic","sterea","Oblique Stereographic Alternative","Double_Stereographic"]};const he={init:function(){this.x0=this.x0||0,this.y0=this.y0||0,this.lat0=this.lat0||0,this.long0=this.long0||0,this.coslat0=Math.cos(this.lat0),this.sinlat0=Math.sin(this.lat0),this.sphere?1===this.k0&&!isNaN(this.lat_ts)&&Math.abs(this.coslat0)<=s&&(this.k0=.5*(1+G(this.lat0)*Math.sin(this.lat_ts))):(Math.abs(this.coslat0)<=s&&(this.lat0>0?this.con=1:this.con=-1),this.cons=Math.sqrt(Math.pow(1+this.e,1+this.e)*Math.pow(1-this.e,1-this.e)),1===this.k0&&!isNaN(this.lat_ts)&&Math.abs(this.coslat0)<=s&&Math.abs(Math.cos(this.lat_ts))>s&&(this.k0=.5*this.cons*z(this.e,Math.sin(this.lat_ts),Math.cos(this.lat_ts))/j(this.e,this.con*this.lat_ts,this.con*Math.sin(this.lat_ts))),this.ms1=z(this.e,this.sinlat0,this.coslat0),this.X0=2*Math.atan(this.ssfn_(this.lat0,this.sinlat0,this.e))-a,this.cosX0=Math.cos(this.X0),this.sinX0=Math.sin(this.X0))},forward:function(t){var e,n,i,r,o,l,h=t.x,c=t.y,u=Math.sin(c),d=Math.cos(c),p=V(h-this.long0);return Math.abs(Math.abs(h-this.long0)-Math.PI)<=s&&Math.abs(c+this.lat0)<=s?(t.x=NaN,t.y=NaN,t):this.sphere?(e=2*this.k0/(1+this.sinlat0*u+this.coslat0*d*Math.cos(p)),t.x=this.a*e*d*Math.sin(p)+this.x0,t.y=this.a*e*(this.coslat0*u-this.sinlat0*d*Math.cos(p))+this.y0,t):(n=2*Math.atan(this.ssfn_(c,u,this.e))-a,r=Math.cos(n),i=Math.sin(n),Math.abs(this.coslat0)<=s?(o=j(this.e,c*this.con,this.con*u),l=2*this.a*this.k0*o/this.cons,t.x=this.x0+l*Math.sin(h-this.long0),t.y=this.y0-this.con*l*Math.cos(h-this.long0),t):(Math.abs(this.sinlat0)<s?(e=2*this.a*this.k0/(1+r*Math.cos(p)),t.y=e*i):(e=2*this.a*this.k0*this.ms1/(this.cosX0*(1+this.sinX0*i+this.cosX0*r*Math.cos(p))),t.y=e*(this.cosX0*i-this.sinX0*r*Math.cos(p))+this.y0),t.x=e*r*Math.sin(p)+this.x0,t))},inverse:function(t){var e,n,i,r,o;t.x-=this.x0,t.y-=this.y0;var l=Math.sqrt(t.x*t.x+t.y*t.y);if(this.sphere){var h=2*Math.atan(l/(2*this.a*this.k0));return e=this.long0,n=this.lat0,l<=s?(t.x=e,t.y=n,t):(n=Math.asin(Math.cos(h)*this.sinlat0+t.y*Math.sin(h)*this.coslat0/l),e=Math.abs(this.coslat0)<s?this.lat0>0?V(this.long0+Math.atan2(t.x,-1*t.y)):V(this.long0+Math.atan2(t.x,t.y)):V(this.long0+Math.atan2(t.x*Math.sin(h),l*this.coslat0*Math.cos(h)-t.y*this.sinlat0*Math.sin(h))),t.x=e,t.y=n,t)}if(Math.abs(this.coslat0)<=s){if(l<=s)return n=this.lat0,e=this.long0,t.x=e,t.y=n,t;t.x*=this.con,t.y*=this.con,i=l*this.cons/(2*this.a*this.k0),n=this.con*H(this.e,i),e=this.con*V(this.con*this.long0+Math.atan2(t.x,-1*t.y))}else r=2*Math.atan(l*this.cosX0/(2*this.a*this.k0*this.ms1)),e=this.long0,l<=s?o=this.X0:(o=Math.asin(Math.cos(r)*this.sinX0+t.y*Math.sin(r)*this.cosX0/l),e=V(this.long0+Math.atan2(t.x*Math.sin(r),l*this.cosX0*Math.cos(r)-t.y*this.sinX0*Math.sin(r)))),n=-1*H(this.e,Math.tan(.5*(a+o)));return t.x=e,t.y=n,t},names:["stere","Stereographic_South_Pole","Polar Stereographic (variant B)","Polar_Stereographic"],ssfn_:function(t,e,n){return e*=n,Math.tan(.5*(a+t))*Math.pow((1-e)/(1+e),.5*n)}};const ce={init:function(){var t=this.lat0;this.lambda0=this.long0;var e=Math.sin(t),n=this.a,i=1/this.rf,r=2*i-Math.pow(i,2),o=this.e=Math.sqrt(r);this.R=this.k0*n*Math.sqrt(1-r)/(1-r*Math.pow(e,2)),this.alpha=Math.sqrt(1+r/(1-r)*Math.pow(Math.cos(t),4)),this.b0=Math.asin(e/this.alpha);var a=Math.log(Math.tan(Math.PI/4+this.b0/2)),s=Math.log(Math.tan(Math.PI/4+t/2)),l=Math.log((1+o*e)/(1-o*e));this.K=a-this.alpha*s+this.alpha*o/2*l},forward:function(t){var e=Math.log(Math.tan(Math.PI/4-t.y/2)),n=this.e/2*Math.log((1+this.e*Math.sin(t.y))/(1-this.e*Math.sin(t.y))),i=-this.alpha*(e+n)+this.K,r=2*(Math.atan(Math.exp(i))-Math.PI/4),o=this.alpha*(t.x-this.lambda0),a=Math.atan(Math.sin(o)/(Math.sin(this.b0)*Math.tan(r)+Math.cos(this.b0)*Math.cos(o))),s=Math.asin(Math.cos(this.b0)*Math.sin(r)-Math.sin(this.b0)*Math.cos(r)*Math.cos(o));return t.y=this.R/2*Math.log((1+Math.sin(s))/(1-Math.sin(s)))+this.y0,t.x=this.R*a+this.x0,t},inverse:function(t){for(var e=t.x-this.x0,n=t.y-this.y0,i=e/this.R,r=2*(Math.atan(Math.exp(n/this.R))-Math.PI/4),o=Math.asin(Math.cos(this.b0)*Math.sin(r)+Math.sin(this.b0)*Math.cos(r)*Math.cos(i)),a=Math.atan(Math.sin(i)/(Math.cos(this.b0)*Math.cos(i)-Math.sin(this.b0)*Math.tan(r))),s=this.lambda0+a/this.alpha,l=0,h=o,c=-1e3,u=0;Math.abs(h-c)>1e-7;){if(++u>20)return;l=1/this.alpha*(Math.log(Math.tan(Math.PI/4+o/2))-this.K)+this.e*Math.log(Math.tan(Math.PI/4+Math.asin(this.e*Math.sin(h))/2)),c=h,h=2*Math.atan(Math.exp(l))-Math.PI/2}return t.x=s,t.y=h,t},names:["somerc"]};var ue=1e-7;const de={init:function(){var t,e,n,i,r,o,h,d,p,f,g,m,v,y=0,_=0,x=0,b=0,w=0,S=0,T=0;this.no_off=(v="object"==typeof(m=this).PROJECTION?Object.keys(m.PROJECTION)[0]:m.PROJECTION,"no_uoff"in m||"no_off"in m||-1!==["Hotine_Oblique_Mercator","Hotine_Oblique_Mercator_Azimuth_Natural_Origin"].indexOf(v)),this.no_rot="no_rot"in this;var M=!1;"alpha"in this&&(M=!0);var A=!1;if("rectified_grid_angle"in this&&(A=!0),M&&(T=this.alpha),A&&(y=this.rectified_grid_angle*l),M||A)_=this.longc;else if(x=this.long1,w=this.lat1,b=this.long2,S=this.lat2,Math.abs(w-S)<=ue||(t=Math.abs(w))<=ue||Math.abs(t-a)<=ue||Math.abs(Math.abs(this.lat0)-a)<=ue||Math.abs(Math.abs(S)-a)<=ue)throw new Error;var C=1-this.es;e=Math.sqrt(C),Math.abs(this.lat0)>s?(d=Math.sin(this.lat0),n=Math.cos(this.lat0),t=1-this.es*d*d,this.B=n*n,this.B=Math.sqrt(1+this.es*this.B*this.B/C),this.A=this.B*this.k0*e/t,(r=(i=this.B*e/(n*Math.sqrt(t)))*i-1)<=0?r=0:(r=Math.sqrt(r),this.lat0<0&&(r=-r)),this.E=r+=i,this.E*=Math.pow(j(this.e,this.lat0,d),this.B)):(this.B=1/e,this.A=this.k0,this.E=i=r=1),M||A?(M?(g=Math.asin(Math.sin(T)/i),A||(y=T)):(g=y,T=Math.asin(i*Math.sin(g))),this.lam0=_-Math.asin(.5*(r-1/r)*Math.tan(g))/this.B):(o=Math.pow(j(this.e,w,Math.sin(w)),this.B),h=Math.pow(j(this.e,S,Math.sin(S)),this.B),r=this.E/o,p=(h-o)/(h+o),f=((f=this.E*this.E)-h*o)/(f+h*o),(t=x-b)<-Math.pi?b-=u:t>Math.pi&&(b+=u),this.lam0=V(.5*(x+b)-Math.atan(f*Math.tan(.5*this.B*(x-b))/p)/this.B),g=Math.atan(2*Math.sin(this.B*V(x-this.lam0))/(r-1/r)),y=T=Math.asin(i*Math.sin(g))),this.singam=Math.sin(g),this.cosgam=Math.cos(g),this.sinrot=Math.sin(y),this.cosrot=Math.cos(y),this.rB=1/this.B,this.ArB=this.A*this.rB,this.BrA=1/this.ArB,this.A,this.B,this.no_off?this.u_0=0:(this.u_0=Math.abs(this.ArB*Math.atan(Math.sqrt(i*i-1)/Math.cos(T))),this.lat0<0&&(this.u_0=-this.u_0)),r=.5*g,this.v_pole_n=this.ArB*Math.log(Math.tan(c-r)),this.v_pole_s=this.ArB*Math.log(Math.tan(c+r))},forward:function(t){var e,n,i,r,o,l,h,c,u={};if(t.x=t.x-this.lam0,Math.abs(Math.abs(t.y)-a)>s){if(e=.5*((o=this.E/Math.pow(j(this.e,t.y,Math.sin(t.y)),this.B))-(l=1/o)),n=.5*(o+l),r=Math.sin(this.B*t.x),i=(e*this.singam-r*this.cosgam)/n,Math.abs(Math.abs(i)-1)<s)throw new Error;c=.5*this.ArB*Math.log((1-i)/(1+i)),l=Math.cos(this.B*t.x),h=Math.abs(l)<ue?this.A*t.x:this.ArB*Math.atan2(e*this.cosgam+r*this.singam,l)}else c=t.y>0?this.v_pole_n:this.v_pole_s,h=this.ArB*t.y;return this.no_rot?(u.x=h,u.y=c):(h-=this.u_0,u.x=c*this.cosrot+h*this.sinrot,u.y=h*this.cosrot-c*this.sinrot),u.x=this.a*u.x+this.x0,u.y=this.a*u.y+this.y0,u},inverse:function(t){var e,n,i,r,o,l,h,c={};if(t.x=(t.x-this.x0)*(1/this.a),t.y=(t.y-this.y0)*(1/this.a),this.no_rot?(n=t.y,e=t.x):(n=t.x*this.cosrot-t.y*this.sinrot,e=t.y*this.cosrot+t.x*this.sinrot+this.u_0),r=.5*((i=Math.exp(-this.BrA*n))-1/i),o=.5*(i+1/i),h=((l=Math.sin(this.BrA*e))*this.cosgam+r*this.singam)/o,Math.abs(Math.abs(h)-1)<s)c.x=0,c.y=h<0?-a:a;else{if(c.y=this.E/Math.sqrt((1+h)/(1-h)),c.y=H(this.e,Math.pow(c.y,1/this.B)),c.y===1/0)throw new Error;c.x=-this.rB*Math.atan2(r*this.cosgam-l*this.singam,Math.cos(this.BrA*e))}return c.x+=this.lam0,c},names:["Hotine_Oblique_Mercator","Hotine Oblique Mercator","Hotine_Oblique_Mercator_Azimuth_Natural_Origin","Hotine_Oblique_Mercator_Two_Point_Natural_Origin","Hotine_Oblique_Mercator_Azimuth_Center","Oblique_Mercator","omerc"]};const pe={init:function(){if(this.lat2||(this.lat2=this.lat1),this.k0||(this.k0=1),this.x0=this.x0||0,this.y0=this.y0||0,!(Math.abs(this.lat1+this.lat2)<s)){var t=this.b/this.a;this.e=Math.sqrt(1-t*t);var e=Math.sin(this.lat1),n=Math.cos(this.lat1),i=z(this.e,e,n),r=j(this.e,this.lat1,e),o=Math.sin(this.lat2),a=Math.cos(this.lat2),l=z(this.e,o,a),h=j(this.e,this.lat2,o),c=j(this.e,this.lat0,Math.sin(this.lat0));Math.abs(this.lat1-this.lat2)>s?this.ns=Math.log(i/l)/Math.log(r/h):this.ns=e,isNaN(this.ns)&&(this.ns=e),this.f0=i/(this.ns*Math.pow(r,this.ns)),this.rh=this.a*this.f0*Math.pow(c,this.ns),this.title||(this.title="Lambert Conformal Conic")}},forward:function(t){var e=t.x,n=t.y;Math.abs(2*Math.abs(n)-Math.PI)<=s&&(n=G(n)*(a-2e-10));var i,r,o=Math.abs(Math.abs(n)-a);if(o>s)i=j(this.e,n,Math.sin(n)),r=this.a*this.f0*Math.pow(i,this.ns);else{if((o=n*this.ns)<=0)return null;r=0}var l=this.ns*V(e-this.long0);return t.x=this.k0*(r*Math.sin(l))+this.x0,t.y=this.k0*(this.rh-r*Math.cos(l))+this.y0,t},inverse:function(t){var e,n,i,r,o,s=(t.x-this.x0)/this.k0,l=this.rh-(t.y-this.y0)/this.k0;this.ns>0?(e=Math.sqrt(s*s+l*l),n=1):(e=-Math.sqrt(s*s+l*l),n=-1);var h=0;if(0!==e&&(h=Math.atan2(n*s,n*l)),0!==e||this.ns>0){if(n=1/this.ns,i=Math.pow(e/(this.a*this.f0),n),-9999===(r=H(this.e,i)))return null}else r=-a;return o=V(h/this.ns+this.long0),t.x=o,t.y=r,t},names:["Lambert Tangential Conformal Conic Projection","Lambert_Conformal_Conic","Lambert_Conformal_Conic_1SP","Lambert_Conformal_Conic_2SP","lcc","Lambert Conic Conformal (1SP)","Lambert Conic Conformal (2SP)"]};const fe={init:function(){this.a=6377397.155,this.es=.006674372230614,this.e=Math.sqrt(this.es),this.lat0||(this.lat0=.863937979737193),this.long0||(this.long0=.4334234309119251),this.k0||(this.k0=.9999),this.s45=.785398163397448,this.s90=2*this.s45,this.fi0=this.lat0,this.e2=this.es,this.e=Math.sqrt(this.e2),this.alfa=Math.sqrt(1+this.e2*Math.pow(Math.cos(this.fi0),4)/(1-this.e2)),this.uq=1.04216856380474,this.u0=Math.asin(Math.sin(this.fi0)/this.alfa),this.g=Math.pow((1+this.e*Math.sin(this.fi0))/(1-this.e*Math.sin(this.fi0)),this.alfa*this.e/2),this.k=Math.tan(this.u0/2+this.s45)/Math.pow(Math.tan(this.fi0/2+this.s45),this.alfa)*this.g,this.k1=this.k0,this.n0=this.a*Math.sqrt(1-this.e2)/(1-this.e2*Math.pow(Math.sin(this.fi0),2)),this.s0=1.37008346281555,this.n=Math.sin(this.s0),this.ro0=this.k1*this.n0/Math.tan(this.s0),this.ad=this.s90-this.uq},forward:function(t){var e,n,i,r,o,a,s,l=t.x,h=t.y,c=V(l-this.long0);return e=Math.pow((1+this.e*Math.sin(h))/(1-this.e*Math.sin(h)),this.alfa*this.e/2),n=2*(Math.atan(this.k*Math.pow(Math.tan(h/2+this.s45),this.alfa)/e)-this.s45),i=-c*this.alfa,r=Math.asin(Math.cos(this.ad)*Math.sin(n)+Math.sin(this.ad)*Math.cos(n)*Math.cos(i)),o=Math.asin(Math.cos(n)*Math.sin(i)/Math.cos(r)),a=this.n*o,s=this.ro0*Math.pow(Math.tan(this.s0/2+this.s45),this.n)/Math.pow(Math.tan(r/2+this.s45),this.n),t.y=s*Math.cos(a)/1,t.x=s*Math.sin(a)/1,this.czech||(t.y*=-1,t.x*=-1),t},inverse:function(t){var e,n,i,r,o,a,s,l=t.x;t.x=t.y,t.y=l,this.czech||(t.y*=-1,t.x*=-1),o=Math.sqrt(t.x*t.x+t.y*t.y),r=Math.atan2(t.y,t.x)/Math.sin(this.s0),i=2*(Math.atan(Math.pow(this.ro0/o,1/this.n)*Math.tan(this.s0/2+this.s45))-this.s45),e=Math.asin(Math.cos(this.ad)*Math.sin(i)-Math.sin(this.ad)*Math.cos(i)*Math.cos(r)),n=Math.asin(Math.cos(i)*Math.sin(r)/Math.cos(e)),t.x=this.long0-n/this.alfa,a=e,s=0;var h=0;do{t.y=2*(Math.atan(Math.pow(this.k,-1/this.alfa)*Math.pow(Math.tan(e/2+this.s45),1/this.alfa)*Math.pow((1+this.e*Math.sin(a))/(1-this.e*Math.sin(a)),this.e/2))-this.s45),Math.abs(a-t.y)<1e-10&&(s=1),a=t.y,h+=1}while(0===s&&h<15);return h>=15?null:t},names:["Krovak","krovak"]};function ge(t,e,n,i,r){return t*r-e*Math.sin(2*r)+n*Math.sin(4*r)-i*Math.sin(6*r)}function me(t){return 1-.25*t*(1+t/16*(3+1.25*t))}function ve(t){return.375*t*(1+.25*t*(1+.46875*t))}function ye(t){return.05859375*t*t*(1+.75*t)}function _e(t){return t*t*t*(35/3072)}function xe(t,e,n){var i=e*n;return t/Math.sqrt(1-i*i)}function be(t){return Math.abs(t)<a?t:t-G(t)*Math.PI}function we(t,e,n,i,r){var o,a;o=t/e;for(var s=0;s<15;s++)if(o+=a=(t-(e*o-n*Math.sin(2*o)+i*Math.sin(4*o)-r*Math.sin(6*o)))/(e-2*n*Math.cos(2*o)+4*i*Math.cos(4*o)-6*r*Math.cos(6*o)),Math.abs(a)<=1e-10)return o;return NaN}const Se={init:function(){this.sphere||(this.e0=me(this.es),this.e1=ve(this.es),this.e2=ye(this.es),this.e3=_e(this.es),this.ml0=this.a*ge(this.e0,this.e1,this.e2,this.e3,this.lat0))},forward:function(t){var e,n,i=t.x,r=t.y;if(i=V(i-this.long0),this.sphere)e=this.a*Math.asin(Math.cos(r)*Math.sin(i)),n=this.a*(Math.atan2(Math.tan(r),Math.cos(i))-this.lat0);else{var o=Math.sin(r),a=Math.cos(r),s=xe(this.a,this.e,o),l=Math.tan(r)*Math.tan(r),h=i*Math.cos(r),c=h*h,u=this.es*a*a/(1-this.es);e=s*h*(1-c*l*(1/6-(8-l+8*u)*c/120)),n=this.a*ge(this.e0,this.e1,this.e2,this.e3,r)-this.ml0+s*o/a*c*(.5+(5-l+6*u)*c/24)}return t.x=e+this.x0,t.y=n+this.y0,t},inverse:function(t){t.x-=this.x0,t.y-=this.y0;var e,n,i=t.x/this.a,r=t.y/this.a;if(this.sphere){var o=r+this.lat0;e=Math.asin(Math.sin(o)*Math.cos(i)),n=Math.atan2(Math.tan(i),Math.cos(o))}else{var l=we(this.ml0/this.a+r,this.e0,this.e1,this.e2,this.e3);if(Math.abs(Math.abs(l)-a)<=s)return t.x=this.long0,t.y=a,r<0&&(t.y*=-1),t;var h=xe(this.a,this.e,Math.sin(l)),c=h*h*h/this.a/this.a*(1-this.es),u=Math.pow(Math.tan(l),2),d=i*this.a/h,p=d*d;e=l-h*Math.tan(l)/c*d*d*(.5-(1+3*u)*d*d/24),n=d*(1-p*(u/3+(1+3*u)*u*p/15))/Math.cos(l)}return t.x=V(n+this.long0),t.y=be(e),t},names:["Cassini","Cassini_Soldner","cass"]};function Te(t,e){var n;return t>1e-7?(1-t*t)*(e/(1-(n=t*e)*n)-.5/t*Math.log((1-n)/(1+n))):2*e}var Me=.3333333333333333,Ae=.17222222222222222,Ce=.10257936507936508,Ie=.06388888888888888,Ee=.0664021164021164,ke=.016415012942191543;const Le={init:function(){var t,e=Math.abs(this.lat0);if(Math.abs(e-a)<s?this.mode=this.lat0<0?this.S_POLE:this.N_POLE:Math.abs(e)<s?this.mode=this.EQUIT:this.mode=this.OBLIQ,this.es>0)switch(this.qp=Te(this.e,1),this.mmf=.5/(1-this.es),this.apa=function(t){var e,n=[];return n[0]=t*Me,e=t*t,n[0]+=e*Ae,n[1]=e*Ie,e*=t,n[0]+=e*Ce,n[1]+=e*Ee,n[2]=e*ke,n}(this.es),this.mode){case this.N_POLE:case this.S_POLE:this.dd=1;break;case this.EQUIT:this.rq=Math.sqrt(.5*this.qp),this.dd=1/this.rq,this.xmf=1,this.ymf=.5*this.qp;break;case this.OBLIQ:this.rq=Math.sqrt(.5*this.qp),t=Math.sin(this.lat0),this.sinb1=Te(this.e,t)/this.qp,this.cosb1=Math.sqrt(1-this.sinb1*this.sinb1),this.dd=Math.cos(this.lat0)/(Math.sqrt(1-this.es*t*t)*this.rq*this.cosb1),this.ymf=(this.xmf=this.rq)/this.dd,this.xmf*=this.dd}else this.mode===this.OBLIQ&&(this.sinph0=Math.sin(this.lat0),this.cosph0=Math.cos(this.lat0))},forward:function(t){var e,n,i,r,o,l,h,u,d,p,f=t.x,g=t.y;if(f=V(f-this.long0),this.sphere){if(o=Math.sin(g),p=Math.cos(g),i=Math.cos(f),this.mode===this.OBLIQ||this.mode===this.EQUIT){if((n=this.mode===this.EQUIT?1+p*i:1+this.sinph0*o+this.cosph0*p*i)<=s)return null;e=(n=Math.sqrt(2/n))*p*Math.sin(f),n*=this.mode===this.EQUIT?o:this.cosph0*o-this.sinph0*p*i}else if(this.mode===this.N_POLE||this.mode===this.S_POLE){if(this.mode===this.N_POLE&&(i=-i),Math.abs(g+this.lat0)<s)return null;n=c-.5*g,e=(n=2*(this.mode===this.S_POLE?Math.cos(n):Math.sin(n)))*Math.sin(f),n*=i}}else{switch(h=0,u=0,d=0,i=Math.cos(f),r=Math.sin(f),o=Math.sin(g),l=Te(this.e,o),this.mode!==this.OBLIQ&&this.mode!==this.EQUIT||(h=l/this.qp,u=Math.sqrt(1-h*h)),this.mode){case this.OBLIQ:d=1+this.sinb1*h+this.cosb1*u*i;break;case this.EQUIT:d=1+u*i;break;case this.N_POLE:d=a+g,l=this.qp-l;break;case this.S_POLE:d=g-a,l=this.qp+l}if(Math.abs(d)<s)return null;switch(this.mode){case this.OBLIQ:case this.EQUIT:d=Math.sqrt(2/d),n=this.mode===this.OBLIQ?this.ymf*d*(this.cosb1*h-this.sinb1*u*i):(d=Math.sqrt(2/(1+u*i)))*h*this.ymf,e=this.xmf*d*u*r;break;case this.N_POLE:case this.S_POLE:l>=0?(e=(d=Math.sqrt(l))*r,n=i*(this.mode===this.S_POLE?d:-d)):e=n=0}}return t.x=this.a*e+this.x0,t.y=this.a*n+this.y0,t},inverse:function(t){t.x-=this.x0,t.y-=this.y0;var e,n,i,r,o,l,h,c,u,d,p=t.x/this.a,f=t.y/this.a;if(this.sphere){var g,m=0,v=0;if((n=.5*(g=Math.sqrt(p*p+f*f)))>1)return null;switch(n=2*Math.asin(n),this.mode!==this.OBLIQ&&this.mode!==this.EQUIT||(v=Math.sin(n),m=Math.cos(n)),this.mode){case this.EQUIT:n=Math.abs(g)<=s?0:Math.asin(f*v/g),p*=v,f=m*g;break;case this.OBLIQ:n=Math.abs(g)<=s?this.lat0:Math.asin(m*this.sinph0+f*v*this.cosph0/g),p*=v*this.cosph0,f=(m-Math.sin(n)*this.sinph0)*g;break;case this.N_POLE:f=-f,n=a-n;break;case this.S_POLE:n-=a}e=0!==f||this.mode!==this.EQUIT&&this.mode!==this.OBLIQ?Math.atan2(p,f):0}else{if(h=0,this.mode===this.OBLIQ||this.mode===this.EQUIT){if(p/=this.dd,f*=this.dd,(l=Math.sqrt(p*p+f*f))<s)return t.x=this.long0,t.y=this.lat0,t;r=2*Math.asin(.5*l/this.rq),i=Math.cos(r),p*=r=Math.sin(r),this.mode===this.OBLIQ?(h=i*this.sinb1+f*r*this.cosb1/l,o=this.qp*h,f=l*this.cosb1*i-f*this.sinb1*r):(h=f*r/l,o=this.qp*h,f=l*i)}else if(this.mode===this.N_POLE||this.mode===this.S_POLE){if(this.mode===this.N_POLE&&(f=-f),!(o=p*p+f*f))return t.x=this.long0,t.y=this.lat0,t;h=1-o/this.qp,this.mode===this.S_POLE&&(h=-h)}e=Math.atan2(p,f),c=Math.asin(h),u=this.apa,d=c+c,n=c+u[0]*Math.sin(d)+u[1]*Math.sin(d+d)+u[2]*Math.sin(d+d+d)}return t.x=V(this.long0+e),t.y=n,t},names:["Lambert Azimuthal Equal Area","Lambert_Azimuthal_Equal_Area","laea"],S_POLE:1,N_POLE:2,EQUIT:3,OBLIQ:4};function De(t){return Math.abs(t)>1&&(t=t>1?1:-1),Math.asin(t)}const Pe={init:function(){Math.abs(this.lat1+this.lat2)<s||(this.temp=this.b/this.a,this.es=1-Math.pow(this.temp,2),this.e3=Math.sqrt(this.es),this.sin_po=Math.sin(this.lat1),this.cos_po=Math.cos(this.lat1),this.t1=this.sin_po,this.con=this.sin_po,this.ms1=z(this.e3,this.sin_po,this.cos_po),this.qs1=Te(this.e3,this.sin_po),this.sin_po=Math.sin(this.lat2),this.cos_po=Math.cos(this.lat2),this.t2=this.sin_po,this.ms2=z(this.e3,this.sin_po,this.cos_po),this.qs2=Te(this.e3,this.sin_po),this.sin_po=Math.sin(this.lat0),this.cos_po=Math.cos(this.lat0),this.t3=this.sin_po,this.qs0=Te(this.e3,this.sin_po),Math.abs(this.lat1-this.lat2)>s?this.ns0=(this.ms1*this.ms1-this.ms2*this.ms2)/(this.qs2-this.qs1):this.ns0=this.con,this.c=this.ms1*this.ms1+this.ns0*this.qs1,this.rh=this.a*Math.sqrt(this.c-this.ns0*this.qs0)/this.ns0)},forward:function(t){var e=t.x,n=t.y;this.sin_phi=Math.sin(n),this.cos_phi=Math.cos(n);var i=Te(this.e3,this.sin_phi),r=this.a*Math.sqrt(this.c-this.ns0*i)/this.ns0,o=this.ns0*V(e-this.long0),a=r*Math.sin(o)+this.x0,s=this.rh-r*Math.cos(o)+this.y0;return t.x=a,t.y=s,t},inverse:function(t){var e,n,i,r,o,a;return t.x-=this.x0,t.y=this.rh-t.y+this.y0,this.ns0>=0?(e=Math.sqrt(t.x*t.x+t.y*t.y),i=1):(e=-Math.sqrt(t.x*t.x+t.y*t.y),i=-1),r=0,0!==e&&(r=Math.atan2(i*t.x,i*t.y)),i=e*this.ns0/this.a,this.sphere?a=Math.asin((this.c-i*i)/(2*this.ns0)):(n=(this.c-i*i)/this.ns0,a=this.phi1z(this.e3,n)),o=V(r/this.ns0+this.long0),t.x=o,t.y=a,t},names:["Albers_Conic_Equal_Area","Albers","aea"],phi1z:function(t,e){var n,i,r,o,a=De(.5*e);if(t<s)return a;for(var l=t*t,h=1;h<=25;h++)if(a+=o=.5*(r=1-(i=t*(n=Math.sin(a)))*i)*r/Math.cos(a)*(e/(1-l)-n/r+.5/t*Math.log((1-i)/(1+i))),Math.abs(o)<=1e-7)return a;return null}};const Re={init:function(){this.sin_p14=Math.sin(this.lat0),this.cos_p14=Math.cos(this.lat0),this.infinity_dist=1e3*this.a,this.rc=1},forward:function(t){var e,n,i,r,o,a,l,h=t.x,c=t.y;return i=V(h-this.long0),e=Math.sin(c),n=Math.cos(c),r=Math.cos(i),(o=this.sin_p14*e+this.cos_p14*n*r)>0||Math.abs(o)<=s?(a=this.x0+1*this.a*n*Math.sin(i)/o,l=this.y0+1*this.a*(this.cos_p14*e-this.sin_p14*n*r)/o):(a=this.x0+this.infinity_dist*n*Math.sin(i),l=this.y0+this.infinity_dist*(this.cos_p14*e-this.sin_p14*n*r)),t.x=a,t.y=l,t},inverse:function(t){var e,n,i,r,o,a;return t.x=(t.x-this.x0)/this.a,t.y=(t.y-this.y0)/this.a,t.x/=this.k0,t.y/=this.k0,(e=Math.sqrt(t.x*t.x+t.y*t.y))?(r=Math.atan2(e,this.rc),n=Math.sin(r),a=De((i=Math.cos(r))*this.sin_p14+t.y*n*this.cos_p14/e),o=Math.atan2(t.x*n,e*this.cos_p14*i-t.y*this.sin_p14*n),o=V(this.long0+o)):(a=this.phic0,o=0),t.x=o,t.y=a,t},names:["gnom"]};const Oe={init:function(){this.sphere||(this.k0=z(this.e,Math.sin(this.lat_ts),Math.cos(this.lat_ts)))},forward:function(t){var e,n,i=t.x,r=t.y,o=V(i-this.long0);if(this.sphere)e=this.x0+this.a*o*Math.cos(this.lat_ts),n=this.y0+this.a*Math.sin(r)/Math.cos(this.lat_ts);else{var a=Te(this.e,Math.sin(r));e=this.x0+this.a*this.k0*o,n=this.y0+this.a*a*.5/this.k0}return t.x=e,t.y=n,t},inverse:function(t){var e,n;return t.x-=this.x0,t.y-=this.y0,this.sphere?(e=V(this.long0+t.x/this.a/Math.cos(this.lat_ts)),n=Math.asin(t.y/this.a*Math.cos(this.lat_ts))):(n=function(t,e){var n=1-(1-t*t)/(2*t)*Math.log((1-t)/(1+t));if(Math.abs(Math.abs(e)-n)<1e-6)return e<0?-1*a:a;for(var i,r,o,s,l=Math.asin(.5*e),h=0;h<30;h++)if(r=Math.sin(l),o=Math.cos(l),s=t*r,l+=i=Math.pow(1-s*s,2)/(2*o)*(e/(1-t*t)-r/(1-s*s)+.5/t*Math.log((1-s)/(1+s))),Math.abs(i)<=1e-10)return l;return NaN}(this.e,2*t.y*this.k0/this.a),e=V(this.long0+t.x/(this.a*this.k0))),t.x=e,t.y=n,t},names:["cea"]};const Ne={init:function(){this.x0=this.x0||0,this.y0=this.y0||0,this.lat0=this.lat0||0,this.long0=this.long0||0,this.lat_ts=this.lat_ts||0,this.title=this.title||"Equidistant Cylindrical (Plate Carre)",this.rc=Math.cos(this.lat_ts)},forward:function(t){var e=t.x,n=t.y,i=V(e-this.long0),r=be(n-this.lat0);return t.x=this.x0+this.a*i*this.rc,t.y=this.y0+this.a*r,t},inverse:function(t){var e=t.x,n=t.y;return t.x=V(this.long0+(e-this.x0)/(this.a*this.rc)),t.y=be(this.lat0+(n-this.y0)/this.a),t},names:["Equirectangular","Equidistant_Cylindrical","eqc"]};const Fe={init:function(){this.temp=this.b/this.a,this.es=1-Math.pow(this.temp,2),this.e=Math.sqrt(this.es),this.e0=me(this.es),this.e1=ve(this.es),this.e2=ye(this.es),this.e3=_e(this.es),this.ml0=this.a*ge(this.e0,this.e1,this.e2,this.e3,this.lat0)},forward:function(t){var e,n,i,r=t.x,o=t.y,a=V(r-this.long0);if(i=a*Math.sin(o),this.sphere)Math.abs(o)<=s?(e=this.a*a,n=-1*this.a*this.lat0):(e=this.a*Math.sin(i)/Math.tan(o),n=this.a*(be(o-this.lat0)+(1-Math.cos(i))/Math.tan(o)));else if(Math.abs(o)<=s)e=this.a*a,n=-1*this.ml0;else{var l=xe(this.a,this.e,Math.sin(o))/Math.tan(o);e=l*Math.sin(i),n=this.a*ge(this.e0,this.e1,this.e2,this.e3,o)-this.ml0+l*(1-Math.cos(i))}return t.x=e+this.x0,t.y=n+this.y0,t},inverse:function(t){var e,n,i,r,o,a,l,h,c;if(i=t.x-this.x0,r=t.y-this.y0,this.sphere)if(Math.abs(r+this.a*this.lat0)<=s)e=V(i/this.a+this.long0),n=0;else{var u;for(a=this.lat0+r/this.a,l=i*i/this.a/this.a+a*a,h=a,o=20;o;--o)if(h+=c=-1*(a*(h*(u=Math.tan(h))+1)-h-.5*(h*h+l)*u)/((h-a)/u-1),Math.abs(c)<=s){n=h;break}e=V(this.long0+Math.asin(i*Math.tan(h)/this.a)/Math.sin(n))}else if(Math.abs(r+this.ml0)<=s)n=0,e=V(this.long0+i/this.a);else{var d,p,f,g,m;for(a=(this.ml0+r)/this.a,l=i*i/this.a/this.a+a*a,h=a,o=20;o;--o)if(m=this.e*Math.sin(h),d=Math.sqrt(1-m*m)*Math.tan(h),p=this.a*ge(this.e0,this.e1,this.e2,this.e3,h),f=this.e0-2*this.e1*Math.cos(2*h)+4*this.e2*Math.cos(4*h)-6*this.e3*Math.cos(6*h),h-=c=(a*(d*(g=p/this.a)+1)-g-.5*d*(g*g+l))/(this.es*Math.sin(2*h)*(g*g+l-2*a*g)/(4*d)+(a-g)*(d*f-2/Math.sin(2*h))-f),Math.abs(c)<=s){n=h;break}d=Math.sqrt(1-this.es*Math.pow(Math.sin(n),2))*Math.tan(n),e=V(this.long0+Math.asin(i*d/this.a)/Math.sin(n))}return t.x=e,t.y=n,t},names:["Polyconic","poly"]};const Be={init:function(){this.A=[],this.A[1]=.6399175073,this.A[2]=-.1358797613,this.A[3]=.063294409,this.A[4]=-.02526853,this.A[5]=.0117879,this.A[6]=-.0055161,this.A[7]=.0026906,this.A[8]=-.001333,this.A[9]=67e-5,this.A[10]=-34e-5,this.B_re=[],this.B_im=[],this.B_re[1]=.7557853228,this.B_im[1]=0,this.B_re[2]=.249204646,this.B_im[2]=.003371507,this.B_re[3]=-.001541739,this.B_im[3]=.04105856,this.B_re[4]=-.10162907,this.B_im[4]=.01727609,this.B_re[5]=-.26623489,this.B_im[5]=-.36249218,this.B_re[6]=-.6870983,this.B_im[6]=-1.1651967,this.C_re=[],this.C_im=[],this.C_re[1]=1.3231270439,this.C_im[1]=0,this.C_re[2]=-.577245789,this.C_im[2]=-.007809598,this.C_re[3]=.508307513,this.C_im[3]=-.112208952,this.C_re[4]=-.15094762,this.C_im[4]=.18200602,this.C_re[5]=1.01418179,this.C_im[5]=1.64497696,this.C_re[6]=1.9660549,this.C_im[6]=2.5127645,this.D=[],this.D[1]=1.5627014243,this.D[2]=.5185406398,this.D[3]=-.03333098,this.D[4]=-.1052906,this.D[5]=-.0368594,this.D[6]=.007317,this.D[7]=.0122,this.D[8]=.00394,this.D[9]=-.0013},forward:function(t){var e,n=t.x,i=t.y-this.lat0,r=n-this.long0,a=i/o*1e-5,s=r,l=1,h=0;for(e=1;e<=10;e++)l*=a,h+=this.A[e]*l;var c,u=h,d=s,p=1,f=0,g=0,m=0;for(e=1;e<=6;e++)c=f*u+p*d,p=p*u-f*d,f=c,g=g+this.B_re[e]*p-this.B_im[e]*f,m=m+this.B_im[e]*p+this.B_re[e]*f;return t.x=m*this.a+this.x0,t.y=g*this.a+this.y0,t},inverse:function(t){var e,n,i=t.x,r=t.y,a=i-this.x0,s=(r-this.y0)/this.a,l=a/this.a,h=1,c=0,u=0,d=0;for(e=1;e<=6;e++)n=c*s+h*l,h=h*s-c*l,c=n,u=u+this.C_re[e]*h-this.C_im[e]*c,d=d+this.C_im[e]*h+this.C_re[e]*c;for(var p=0;p<this.iterations;p++){var f,g=u,m=d,v=s,y=l;for(e=2;e<=6;e++)f=m*u+g*d,g=g*u-m*d,m=f,v+=(e-1)*(this.B_re[e]*g-this.B_im[e]*m),y+=(e-1)*(this.B_im[e]*g+this.B_re[e]*m);g=1,m=0;var _=this.B_re[1],x=this.B_im[1];for(e=2;e<=6;e++)f=m*u+g*d,g=g*u-m*d,m=f,_+=e*(this.B_re[e]*g-this.B_im[e]*m),x+=e*(this.B_im[e]*g+this.B_re[e]*m);var b=_*_+x*x;u=(v*_+y*x)/b,d=(y*_-v*x)/b}var w=u,S=d,T=1,M=0;for(e=1;e<=9;e++)T*=w,M+=this.D[e]*T;var A=this.lat0+M*o*1e5,C=this.long0+S;return t.x=C,t.y=A,t},names:["New_Zealand_Map_Grid","nzmg"]};const ze={init:function(){},forward:function(t){var e=t.x,n=t.y,i=V(e-this.long0),r=this.x0+this.a*i,o=this.y0+this.a*Math.log(Math.tan(Math.PI/4+n/2.5))*1.25;return t.x=r,t.y=o,t},inverse:function(t){t.x-=this.x0,t.y-=this.y0;var e=V(this.long0+t.x/this.a),n=2.5*(Math.atan(Math.exp(.8*t.y/this.a))-Math.PI/4);return t.x=e,t.y=n,t},names:["Miller_Cylindrical","mill"]};const Ge={init:function(){this.sphere?(this.n=1,this.m=0,this.es=0,this.C_y=Math.sqrt((this.m+1)/this.n),this.C_x=this.C_y/(this.m+1)):this.en=Zt(this.es)},forward:function(t){var e,n,i=t.x,r=t.y;if(i=V(i-this.long0),this.sphere){if(this.m)for(var o=this.n*Math.sin(r),a=20;a;--a){var l=(this.m*r+Math.sin(r)-o)/(this.m+Math.cos(r));if(r-=l,Math.abs(l)<s)break}else r=1!==this.n?Math.asin(this.n*Math.sin(r)):r;e=this.a*this.C_x*i*(this.m+Math.cos(r)),n=this.a*this.C_y*r}else{var h=Math.sin(r),c=Math.cos(r);n=this.a*$t(r,h,c,this.en),e=this.a*i*c/Math.sqrt(1-this.es*h*h)}return t.x=e,t.y=n,t},inverse:function(t){var e,n,i;return t.x-=this.x0,n=t.x/this.a,t.y-=this.y0,e=t.y/this.a,this.sphere?(e/=this.C_y,n/=this.C_x*(this.m+Math.cos(e)),this.m?e=De((this.m*e+Math.sin(e))/this.n):1!==this.n&&(e=De(Math.sin(e)/this.n)),n=V(n+this.long0),e=be(e)):(e=Kt(t.y/this.a,this.es,this.en),(i=Math.abs(e))<a?(i=Math.sin(e),n=V(this.long0+t.x*Math.sqrt(1-this.es*i*i)/(this.a*Math.cos(e)))):i-s<a&&(n=this.long0)),t.x=n,t.y=e,t},names:["Sinusoidal","sinu"]};const Ve={init:function(){},forward:function(t){for(var e=t.x,n=t.y,i=V(e-this.long0),r=n,o=Math.PI*Math.sin(n);;){var a=-(r+Math.sin(r)-o)/(1+Math.cos(r));if(r+=a,Math.abs(a)<s)break}r/=2,Math.PI/2-Math.abs(n)<s&&(i=0);var l=.900316316158*this.a*i*Math.cos(r)+this.x0,h=1.4142135623731*this.a*Math.sin(r)+this.y0;return t.x=l,t.y=h,t},inverse:function(t){var e,n;t.x-=this.x0,t.y-=this.y0,n=t.y/(1.4142135623731*this.a),Math.abs(n)>.999999999999&&(n=.999999999999),e=Math.asin(n);var i=V(this.long0+t.x/(.900316316158*this.a*Math.cos(e)));i<-Math.PI&&(i=-Math.PI),i>Math.PI&&(i=Math.PI),n=(2*e+Math.sin(2*e))/Math.PI,Math.abs(n)>1&&(n=1);var r=Math.asin(n);return t.x=i,t.y=r,t},names:["Mollweide","moll"]};const je={init:function(){Math.abs(this.lat1+this.lat2)<s||(this.lat2=this.lat2||this.lat1,this.temp=this.b/this.a,this.es=1-Math.pow(this.temp,2),this.e=Math.sqrt(this.es),this.e0=me(this.es),this.e1=ve(this.es),this.e2=ye(this.es),this.e3=_e(this.es),this.sinphi=Math.sin(this.lat1),this.cosphi=Math.cos(this.lat1),this.ms1=z(this.e,this.sinphi,this.cosphi),this.ml1=ge(this.e0,this.e1,this.e2,this.e3,this.lat1),Math.abs(this.lat1-this.lat2)<s?this.ns=this.sinphi:(this.sinphi=Math.sin(this.lat2),this.cosphi=Math.cos(this.lat2),this.ms2=z(this.e,this.sinphi,this.cosphi),this.ml2=ge(this.e0,this.e1,this.e2,this.e3,this.lat2),this.ns=(this.ms1-this.ms2)/(this.ml2-this.ml1)),this.g=this.ml1+this.ms1/this.ns,this.ml0=ge(this.e0,this.e1,this.e2,this.e3,this.lat0),this.rh=this.a*(this.g-this.ml0))},forward:function(t){var e,n=t.x,i=t.y;if(this.sphere)e=this.a*(this.g-i);else{var r=ge(this.e0,this.e1,this.e2,this.e3,i);e=this.a*(this.g-r)}var o=this.ns*V(n-this.long0),a=this.x0+e*Math.sin(o),s=this.y0+this.rh-e*Math.cos(o);return t.x=a,t.y=s,t},inverse:function(t){var e,n,i,r;t.x-=this.x0,t.y=this.rh-t.y+this.y0,this.ns>=0?(n=Math.sqrt(t.x*t.x+t.y*t.y),e=1):(n=-Math.sqrt(t.x*t.x+t.y*t.y),e=-1);var o=0;return 0!==n&&(o=Math.atan2(e*t.x,e*t.y)),this.sphere?(r=V(this.long0+o/this.ns),i=be(this.g-n/this.a),t.x=r,t.y=i,t):(i=we(this.g-n/this.a,this.e0,this.e1,this.e2,this.e3),r=V(this.long0+o/this.ns),t.x=r,t.y=i,t)},names:["Equidistant_Conic","eqdc"]};const He={init:function(){this.R=this.a},forward:function(t){var e,n,i=t.x,r=t.y,o=V(i-this.long0);Math.abs(r)<=s&&(e=this.x0+this.R*o,n=this.y0);var l=De(2*Math.abs(r/Math.PI));(Math.abs(o)<=s||Math.abs(Math.abs(r)-a)<=s)&&(e=this.x0,n=r>=0?this.y0+Math.PI*this.R*Math.tan(.5*l):this.y0+Math.PI*this.R*-Math.tan(.5*l));var h=.5*Math.abs(Math.PI/o-o/Math.PI),c=h*h,u=Math.sin(l),d=Math.cos(l),p=d/(u+d-1),f=p*p,g=p*(2/u-1),m=g*g,v=Math.PI*this.R*(h*(p-m)+Math.sqrt(c*(p-m)*(p-m)-(m+c)*(f-m)))/(m+c);o<0&&(v=-v),e=this.x0+v;var y=c+p;return v=Math.PI*this.R*(g*y-h*Math.sqrt((m+c)*(c+1)-y*y))/(m+c),n=r>=0?this.y0+v:this.y0-v,t.x=e,t.y=n,t},inverse:function(t){var e,n,i,r,o,a,l,h,c,u,d,p;return t.x-=this.x0,t.y-=this.y0,d=Math.PI*this.R,o=(i=t.x/d)*i+(r=t.y/d)*r,d=3*(r*r/(h=-2*(a=-Math.abs(r)*(1+o))+1+2*r*r+o*o)+(2*(l=a-2*r*r+i*i)*l*l/h/h/h-9*a*l/h/h)/27)/(c=(a-l*l/3/h)/h)/(u=2*Math.sqrt(-c/3)),Math.abs(d)>1&&(d=d>=0?1:-1),p=Math.acos(d)/3,n=t.y>=0?(-u*Math.cos(p+Math.PI/3)-l/3/h)*Math.PI:-(-u*Math.cos(p+Math.PI/3)-l/3/h)*Math.PI,e=Math.abs(i)<s?this.long0:V(this.long0+Math.PI*(o-1+Math.sqrt(1+2*(i*i-r*r)+o*o))/2/i),t.x=e,t.y=n,t},names:["Van_der_Grinten_I","VanDerGrinten","vandg"]};const We={init:function(){this.sin_p12=Math.sin(this.lat0),this.cos_p12=Math.cos(this.lat0)},forward:function(t){var e,n,i,r,o,l,h,c,u,d,p,f,g,m,v,y,_,x,b,w,S,T,M=t.x,A=t.y,C=Math.sin(t.y),I=Math.cos(t.y),E=V(M-this.long0);return this.sphere?Math.abs(this.sin_p12-1)<=s?(t.x=this.x0+this.a*(a-A)*Math.sin(E),t.y=this.y0-this.a*(a-A)*Math.cos(E),t):Math.abs(this.sin_p12+1)<=s?(t.x=this.x0+this.a*(a+A)*Math.sin(E),t.y=this.y0+this.a*(a+A)*Math.cos(E),t):(x=this.sin_p12*C+this.cos_p12*I*Math.cos(E),_=(y=Math.acos(x))?y/Math.sin(y):1,t.x=this.x0+this.a*_*I*Math.sin(E),t.y=this.y0+this.a*_*(this.cos_p12*C-this.sin_p12*I*Math.cos(E)),t):(e=me(this.es),n=ve(this.es),i=ye(this.es),r=_e(this.es),Math.abs(this.sin_p12-1)<=s?(o=this.a*ge(e,n,i,r,a),l=this.a*ge(e,n,i,r,A),t.x=this.x0+(o-l)*Math.sin(E),t.y=this.y0-(o-l)*Math.cos(E),t):Math.abs(this.sin_p12+1)<=s?(o=this.a*ge(e,n,i,r,a),l=this.a*ge(e,n,i,r,A),t.x=this.x0+(o+l)*Math.sin(E),t.y=this.y0+(o+l)*Math.cos(E),t):(h=C/I,c=xe(this.a,this.e,this.sin_p12),u=xe(this.a,this.e,C),d=Math.atan((1-this.es)*h+this.es*c*this.sin_p12/(u*I)),b=0===(p=Math.atan2(Math.sin(E),this.cos_p12*Math.tan(d)-this.sin_p12*Math.cos(E)))?Math.asin(this.cos_p12*Math.sin(d)-this.sin_p12*Math.cos(d)):Math.abs(Math.abs(p)-Math.PI)<=s?-Math.asin(this.cos_p12*Math.sin(d)-this.sin_p12*Math.cos(d)):Math.asin(Math.sin(E)*Math.cos(d)/Math.sin(p)),f=this.e*this.sin_p12/Math.sqrt(1-this.es),y=c*b*(1-(w=b*b)*(v=(g=this.e*this.cos_p12*Math.cos(p)/Math.sqrt(1-this.es))*g)*(1-v)/6+(S=w*b)/8*(m=f*g)*(1-2*v)+(T=S*b)/120*(v*(4-7*v)-3*f*f*(1-7*v))-T*b/48*m),t.x=this.x0+y*Math.sin(p),t.y=this.y0+y*Math.cos(p),t))},inverse:function(t){var e,n,i,r,o,l,h,c,u,d,p,f,g,m,v,y,_,x,b,w,S,T,M;if(t.x-=this.x0,t.y-=this.y0,this.sphere){if((e=Math.sqrt(t.x*t.x+t.y*t.y))>2*a*this.a)return;return n=e/this.a,i=Math.sin(n),r=Math.cos(n),o=this.long0,Math.abs(e)<=s?l=this.lat0:(l=De(r*this.sin_p12+t.y*i*this.cos_p12/e),h=Math.abs(this.lat0)-a,o=Math.abs(h)<=s?this.lat0>=0?V(this.long0+Math.atan2(t.x,-t.y)):V(this.long0-Math.atan2(-t.x,t.y)):V(this.long0+Math.atan2(t.x*i,e*this.cos_p12*r-t.y*this.sin_p12*i))),t.x=o,t.y=l,t}return c=me(this.es),u=ve(this.es),d=ye(this.es),p=_e(this.es),Math.abs(this.sin_p12-1)<=s?(l=we(((f=this.a*ge(c,u,d,p,a))-(e=Math.sqrt(t.x*t.x+t.y*t.y)))/this.a,c,u,d,p),o=V(this.long0+Math.atan2(t.x,-1*t.y)),t.x=o,t.y=l,t):Math.abs(this.sin_p12+1)<=s?(f=this.a*ge(c,u,d,p,a),l=we(((e=Math.sqrt(t.x*t.x+t.y*t.y))-f)/this.a,c,u,d,p),o=V(this.long0+Math.atan2(t.x,t.y)),t.x=o,t.y=l,t):(e=Math.sqrt(t.x*t.x+t.y*t.y),v=Math.atan2(t.x,t.y),g=xe(this.a,this.e,this.sin_p12),y=Math.cos(v),x=-(_=this.e*this.cos_p12*y)*_/(1-this.es),b=3*this.es*(1-x)*this.sin_p12*this.cos_p12*y/(1-this.es),T=1-x*(S=(w=e/g)-x*(1+x)*Math.pow(w,3)/6-b*(1+3*x)*Math.pow(w,4)/24)*S/2-w*S*S*S/6,m=Math.asin(this.sin_p12*Math.cos(S)+this.cos_p12*Math.sin(S)*y),o=V(this.long0+Math.asin(Math.sin(v)*Math.sin(S)/Math.cos(m))),M=Math.sin(m),l=Math.atan2((M-this.es*T*this.sin_p12)*Math.tan(m),M*(1-this.es)),t.x=o,t.y=l,t)},names:["Azimuthal_Equidistant","aeqd"]};const Ue={init:function(){this.sin_p14=Math.sin(this.lat0),this.cos_p14=Math.cos(this.lat0)},forward:function(t){var e,n,i,r,o,a,l,h=t.x,c=t.y;return i=V(h-this.long0),e=Math.sin(c),n=Math.cos(c),r=Math.cos(i),((o=this.sin_p14*e+this.cos_p14*n*r)>0||Math.abs(o)<=s)&&(a=1*this.a*n*Math.sin(i),l=this.y0+1*this.a*(this.cos_p14*e-this.sin_p14*n*r)),t.x=a,t.y=l,t},inverse:function(t){var e,n,i,r,o,l,h;return t.x-=this.x0,t.y-=this.y0,n=De((e=Math.sqrt(t.x*t.x+t.y*t.y))/this.a),i=Math.sin(n),r=Math.cos(n),l=this.long0,Math.abs(e)<=s?(h=this.lat0,t.x=l,t.y=h,t):(h=De(r*this.sin_p14+t.y*i*this.cos_p14/e),o=Math.abs(this.lat0)-a,Math.abs(o)<=s?(l=this.lat0>=0?V(this.long0+Math.atan2(t.x,-t.y)):V(this.long0-Math.atan2(-t.x,t.y)),t.x=l,t.y=h,t):(l=V(this.long0+Math.atan2(t.x*i,e*this.cos_p14*r-t.y*this.sin_p14*i)),t.x=l,t.y=h,t))},names:["ortho"]};var qe=1,Xe=2,Ye=3,Ze=4,$e=5,Ke=6,Je=1,Qe=2,tn=3,en=4;function nn(t,e,n,i){var r;return t<s?(i.value=Je,r=0):(r=Math.atan2(e,n),Math.abs(r)<=c?i.value=Je:r>c&&r<=a+c?(i.value=Qe,r-=a):r>a+c||r<=-(a+c)?(i.value=tn,r=r>=0?r-d:r+d):(i.value=en,r+=a)),r}function rn(t,e){var n=t+e;return n<-d?n+=u:n>+d&&(n-=u),n}const on={init:function(){this.x0=this.x0||0,this.y0=this.y0||0,this.lat0=this.lat0||0,this.long0=this.long0||0,this.lat_ts=this.lat_ts||0,this.title=this.title||"Quadrilateralized Spherical Cube",this.lat0>=a-c/2?this.face=$e:this.lat0<=-(a-c/2)?this.face=Ke:Math.abs(this.long0)<=c?this.face=qe:Math.abs(this.long0)<=a+c?this.face=this.long0>0?Xe:Ze:this.face=Ye,0!==this.es&&(this.one_minus_f=1-(this.a-this.b)/this.a,this.one_minus_f_squared=this.one_minus_f*this.one_minus_f)},forward:function(t){var e,n,i,r,o,s,l={x:0,y:0},h={value:0};if(t.x-=this.long0,e=0!==this.es?Math.atan(this.one_minus_f_squared*Math.tan(t.y)):t.y,n=t.x,this.face===$e)r=a-e,n>=c&&n<=a+c?(h.value=Je,i=n-a):n>a+c||n<=-(a+c)?(h.value=Qe,i=n>0?n-d:n+d):n>-(a+c)&&n<=-c?(h.value=tn,i=n+a):(h.value=en,i=n);else if(this.face===Ke)r=a+e,n>=c&&n<=a+c?(h.value=Je,i=-n+a):n<c&&n>=-c?(h.value=Qe,i=-n):n<-c&&n>=-(a+c)?(h.value=tn,i=-n-a):(h.value=en,i=n>0?-n+d:-n-d);else{var u,p,f,g,m,v;this.face===Xe?n=rn(n,+a):this.face===Ye?n=rn(n,+d):this.face===Ze&&(n=rn(n,-a)),g=Math.sin(e),m=Math.cos(e),v=Math.sin(n),u=m*Math.cos(n),p=m*v,f=g,this.face===qe?i=nn(r=Math.acos(u),f,p,h):this.face===Xe?i=nn(r=Math.acos(p),f,-u,h):this.face===Ye?i=nn(r=Math.acos(-u),f,-p,h):this.face===Ze?i=nn(r=Math.acos(-p),f,u,h):(r=i=0,h.value=Je)}return s=Math.atan(12/d*(i+Math.acos(Math.sin(i)*Math.cos(c))-a)),o=Math.sqrt((1-Math.cos(r))/(Math.cos(s)*Math.cos(s))/(1-Math.cos(Math.atan(1/Math.cos(i))))),h.value===Qe?s+=a:h.value===tn?s+=d:h.value===en&&(s+=1.5*d),l.x=o*Math.cos(s),l.y=o*Math.sin(s),l.x=l.x*this.a+this.x0,l.y=l.y*this.a+this.y0,t.x=l.x,t.y=l.y,t},inverse:function(t){var e,n,i,r,o,s,l,h,c,u,p,f,g={lam:0,phi:0},m={value:0};if(t.x=(t.x-this.x0)/this.a,t.y=(t.y-this.y0)/this.a,n=Math.atan(Math.sqrt(t.x*t.x+t.y*t.y)),e=Math.atan2(t.y,t.x),t.x>=0&&t.x>=Math.abs(t.y)?m.value=Je:t.y>=0&&t.y>=Math.abs(t.x)?(m.value=Qe,e-=a):t.x<0&&-t.x>=Math.abs(t.y)?(m.value=tn,e=e<0?e+d:e-d):(m.value=en,e+=a),c=d/12*Math.tan(e),o=Math.sin(c)/(Math.cos(c)-1/Math.sqrt(2)),s=Math.atan(o),(l=1-(i=Math.cos(e))*i*(r=Math.tan(n))*r*(1-Math.cos(Math.atan(1/Math.cos(s)))))<-1?l=-1:l>1&&(l=1),this.face===$e)h=Math.acos(l),g.phi=a-h,m.value===Je?g.lam=s+a:m.value===Qe?g.lam=s<0?s+d:s-d:m.value===tn?g.lam=s-a:g.lam=s;else if(this.face===Ke)h=Math.acos(l),g.phi=h-a,m.value===Je?g.lam=-s+a:m.value===Qe?g.lam=-s:m.value===tn?g.lam=-s-a:g.lam=s<0?-s-d:-s+d;else{var v,y,_;c=(v=l)*v,y=(c+=(_=c>=1?0:Math.sqrt(1-c)*Math.sin(s))*_)>=1?0:Math.sqrt(1-c),m.value===Qe?(c=y,y=-_,_=c):m.value===tn?(y=-y,_=-_):m.value===en&&(c=y,y=_,_=-c),this.face===Xe?(c=v,v=-y,y=c):this.face===Ye?(v=-v,y=-y):this.face===Ze&&(c=v,v=y,y=-c),g.phi=Math.acos(-_)-a,g.lam=Math.atan2(y,v),this.face===Xe?g.lam=rn(g.lam,-a):this.face===Ye?g.lam=rn(g.lam,-d):this.face===Ze&&(g.lam=rn(g.lam,+a))}return 0!==this.es&&(u=g.phi<0?1:0,p=Math.tan(g.phi),f=this.b/Math.sqrt(p*p+this.one_minus_f_squared),g.phi=Math.atan(Math.sqrt(this.a*this.a-f*f)/(this.one_minus_f*f)),u&&(g.phi=-g.phi)),g.lam+=this.long0,t.x=g.lam,t.y=g.phi,t},names:["Quadrilateralized Spherical Cube","Quadrilateralized_Spherical_Cube","qsc"]};var an=[[1,22199e-21,-715515e-10,31103e-10],[.9986,-482243e-9,-24897e-9,-13309e-10],[.9954,-83103e-8,-448605e-10,-9.86701e-7],[.99,-.00135364,-59661e-9,36777e-10],[.9822,-.00167442,-449547e-11,-572411e-11],[.973,-.00214868,-903571e-10,1.8736e-8],[.96,-.00305085,-900761e-10,164917e-11],[.9427,-.00382792,-653386e-10,-26154e-10],[.9216,-.00467746,-10457e-8,481243e-11],[.8962,-.00536223,-323831e-10,-543432e-11],[.8679,-.00609363,-113898e-9,332484e-11],[.835,-.00698325,-640253e-10,9.34959e-7],[.7986,-.00755338,-500009e-10,9.35324e-7],[.7597,-.00798324,-35971e-9,-227626e-11],[.7186,-.00851367,-701149e-10,-86303e-10],[.6732,-.00986209,-199569e-9,191974e-10],[.6213,-.010418,883923e-10,624051e-11],[.5722,-.00906601,182e-6,624051e-11],[.5322,-.00677797,275608e-9,624051e-11]],sn=[[-520417e-23,.0124,121431e-23,-845284e-16],[.062,.0124,-1.26793e-9,4.22642e-10],[.124,.0124,5.07171e-9,-1.60604e-9],[.186,.0123999,-1.90189e-8,6.00152e-9],[.248,.0124002,7.10039e-8,-2.24e-8],[.31,.0123992,-2.64997e-7,8.35986e-8],[.372,.0124029,9.88983e-7,-3.11994e-7],[.434,.0123893,-369093e-11,-4.35621e-7],[.4958,.0123198,-102252e-10,-3.45523e-7],[.5571,.0121916,-154081e-10,-5.82288e-7],[.6176,.0119938,-241424e-10,-5.25327e-7],[.6769,.011713,-320223e-10,-5.16405e-7],[.7346,.0113541,-397684e-10,-6.09052e-7],[.7903,.0109107,-489042e-10,-104739e-11],[.8435,.0103431,-64615e-9,-1.40374e-9],[.8936,.00969686,-64636e-9,-8547e-9],[.9394,.00840947,-192841e-9,-42106e-10],[.9761,.00616527,-256e-6,-42106e-10],[1,.00328947,-319159e-9,-42106e-10]],ln=.8487,hn=1.3523,cn=h/5,un=1/cn,dn=18,pn=function(t,e){return t[0]+e*(t[1]+e*(t[2]+e*t[3]))};const fn={init:function(){this.x0=this.x0||0,this.y0=this.y0||0,this.long0=this.long0||0,this.es=0,this.title=this.title||"Robinson"},forward:function(t){var e=V(t.x-this.long0),n=Math.abs(t.y),i=Math.floor(n*cn);i<0?i=0:i>=dn&&(i=17);var r={x:pn(an[i],n=h*(n-un*i))*e,y:pn(sn[i],n)};return t.y<0&&(r.y=-r.y),r.x=r.x*this.a*ln+this.x0,r.y=r.y*this.a*hn+this.y0,r},inverse:function(t){var e={x:(t.x-this.x0)/(this.a*ln),y:Math.abs(t.y-this.y0)/(this.a*hn)};if(e.y>=1)e.x/=an[18][0],e.y=t.y<0?-a:a;else{var n=Math.floor(e.y*dn);for(n<0?n=0:n>=dn&&(n=17);;)if(sn[n][0]>e.y)--n;else{if(!(sn[n+1][0]<=e.y))break;++n}var i=sn[n],r=5*(e.y-i[0])/(sn[n+1][0]-i[0]);r=function(t,e,n,i){for(var r=e;i;--i){var o=t(r);if(r-=o,Math.abs(o)<n)break}return r}((function(t){return(pn(i,t)-e.y)/function(t,e){return t[1]+e*(2*t[2]+3*e*t[3])}(i,t)}),r,s,100),e.x/=pn(an[n],r),e.y=(5*n+r)*l,t.y<0&&(e.y=-e.y)}return e.x=V(e.x+this.long0),e},names:["Robinson","robin"]};const gn={init:function(){this.name="geocent"},forward:function(t){return dt(t,this.es,this.a)},inverse:function(t){return pt(t,this.es,this.a,this.b)},names:["Geocentric","geocentric","geocent","Geocent"]};var mn=0,vn=1,yn=2,_n=3,xn={h:{def:1e5,num:!0},azi:{def:0,num:!0,degrees:!0},tilt:{def:0,num:!0,degrees:!0},long0:{def:0,num:!0},lat0:{def:0,num:!0}};const bn={init:function(){if(Object.keys(xn).forEach(function(t){if(void 0===this[t])this[t]=xn[t].def;else{if(xn[t].num&&isNaN(this[t]))throw new Error("Invalid parameter value, must be numeric "+t+" = "+this[t]);xn[t].num&&(this[t]=parseFloat(this[t]))}xn[t].degrees&&(this[t]=this[t]*l)}.bind(this)),Math.abs(Math.abs(this.lat0)-a)<s?this.mode=this.lat0<0?vn:mn:Math.abs(this.lat0)<s?this.mode=yn:(this.mode=_n,this.sinph0=Math.sin(this.lat0),this.cosph0=Math.cos(this.lat0)),this.pn1=this.h/this.a,this.pn1<=0||this.pn1>1e10)throw new Error("Invalid height");this.p=1+this.pn1,this.rp=1/this.p,this.h1=1/this.pn1,this.pfact=(this.p+1)*this.h1,this.es=0;var t=this.tilt,e=this.azi;this.cg=Math.cos(e),this.sg=Math.sin(e),this.cw=Math.cos(t),this.sw=Math.sin(t)},forward:function(t){t.x-=this.long0;var e,n,i,r,o=Math.sin(t.y),a=Math.cos(t.y),s=Math.cos(t.x);switch(this.mode){case _n:n=this.sinph0*o+this.cosph0*a*s;break;case yn:n=a*s;break;case vn:n=-o;break;case mn:n=o}switch(e=(n=this.pn1/(this.p-n))*a*Math.sin(t.x),this.mode){case _n:n*=this.cosph0*o-this.sinph0*a*s;break;case yn:n*=o;break;case mn:n*=-a*s;break;case vn:n*=a*s}return r=1/((i=n*this.cg+e*this.sg)*this.sw*this.h1+this.cw),e=(e*this.cg-n*this.sg)*this.cw*r,n=i*r,t.x=e*this.a,t.y=n*this.a,t},inverse:function(t){t.x/=this.a,t.y/=this.a;var e,n,i,r={x:t.x,y:t.y};i=1/(this.pn1-t.y*this.sw),e=this.pn1*t.x*i,n=this.pn1*t.y*this.cw*i,t.x=e*this.cg+n*this.sg,t.y=n*this.cg-e*this.sg;var o=te(t.x,t.y);if(Math.abs(o)<s)r.x=0,r.y=t.y;else{var a,l;switch(l=1-o*o*this.pfact,l=(this.p-Math.sqrt(l))/(this.pn1/o+o/this.pn1),a=Math.sqrt(1-l*l),this.mode){case _n:r.y=Math.asin(a*this.sinph0+t.y*l*this.cosph0/o),t.y=(a-this.sinph0*Math.sin(r.y))*o,t.x*=l*this.cosph0;break;case yn:r.y=Math.asin(t.y*l/o),t.y=a*o,t.x*=l;break;case mn:r.y=Math.asin(a),t.y=-t.y;break;case vn:r.y=-Math.asin(a)}r.x=Math.atan2(t.x,t.y)}return t.x=r.x+this.long0,t.y=r.y,t},names:["Tilted_Perspective","tpers"]};const wn={init:function(){if(this.flip_axis="x"===this.sweep?1:0,this.h=Number(this.h),this.radius_g_1=this.h/this.a,this.radius_g_1<=0||this.radius_g_1>1e10)throw new Error;if(this.radius_g=1+this.radius_g_1,this.C=this.radius_g*this.radius_g-1,0!==this.es){var t=1-this.es,e=1/t;this.radius_p=Math.sqrt(t),this.radius_p2=t,this.radius_p_inv2=e,this.shape="ellipse"}else this.radius_p=1,this.radius_p2=1,this.radius_p_inv2=1,this.shape="sphere";this.title||(this.title="Geostationary Satellite View")},forward:function(t){var e,n,i,r,o=t.x,a=t.y;if(o-=this.long0,"ellipse"===this.shape){a=Math.atan(this.radius_p2*Math.tan(a));var s=this.radius_p/te(this.radius_p*Math.cos(a),Math.sin(a));if(n=s*Math.cos(o)*Math.cos(a),i=s*Math.sin(o)*Math.cos(a),r=s*Math.sin(a),(this.radius_g-n)*n-i*i-r*r*this.radius_p_inv2<0)return t.x=Number.NaN,t.y=Number.NaN,t;e=this.radius_g-n,this.flip_axis?(t.x=this.radius_g_1*Math.atan(i/te(r,e)),t.y=this.radius_g_1*Math.atan(r/e)):(t.x=this.radius_g_1*Math.atan(i/e),t.y=this.radius_g_1*Math.atan(r/te(i,e)))}else"sphere"===this.shape&&(e=Math.cos(a),n=Math.cos(o)*e,i=Math.sin(o)*e,r=Math.sin(a),e=this.radius_g-n,this.flip_axis?(t.x=this.radius_g_1*Math.atan(i/te(r,e)),t.y=this.radius_g_1*Math.atan(r/e)):(t.x=this.radius_g_1*Math.atan(i/e),t.y=this.radius_g_1*Math.atan(r/te(i,e))));return t.x=t.x*this.a,t.y=t.y*this.a,t},inverse:function(t){var e,n,i,r,o=-1,a=0,s=0;if(t.x=t.x/this.a,t.y=t.y/this.a,"ellipse"===this.shape){this.flip_axis?(s=Math.tan(t.y/this.radius_g_1),a=Math.tan(t.x/this.radius_g_1)*te(1,s)):(a=Math.tan(t.x/this.radius_g_1),s=Math.tan(t.y/this.radius_g_1)*te(1,a));var l=s/this.radius_p;if(e=a*a+l*l+o*o,(i=(n=2*this.radius_g*o)*n-4*e*this.C)<0)return t.x=Number.NaN,t.y=Number.NaN,t;r=(-n-Math.sqrt(i))/(2*e),o=this.radius_g+r*o,a*=r,s*=r,t.x=Math.atan2(a,o),t.y=Math.atan(s*Math.cos(t.x)/o),t.y=Math.atan(this.radius_p_inv2*Math.tan(t.y))}else if("sphere"===this.shape){if(this.flip_axis?(s=Math.tan(t.y/this.radius_g_1),a=Math.tan(t.x/this.radius_g_1)*Math.sqrt(1+s*s)):(a=Math.tan(t.x/this.radius_g_1),s=Math.tan(t.y/this.radius_g_1)*Math.sqrt(1+a*a)),e=a*a+s*s+o*o,(i=(n=2*this.radius_g*o)*n-4*e*this.C)<0)return t.x=Number.NaN,t.y=Number.NaN,t;r=(-n-Math.sqrt(i))/(2*e),o=this.radius_g+r*o,a*=r,s*=r,t.x=Math.atan2(a,o),t.y=Math.atan(s*Math.cos(t.x)/o)}return t.x=t.x+this.long0,t},names:["Geostationary Satellite View","Geostationary_Satellite","geos"]};var Sn=1.340264,Tn=-.081106,Mn=893e-6,An=.003796,Cn=Math.sqrt(3)/2;const In={init:function(){this.es=0,this.long0=void 0!==this.long0?this.long0:0},forward:function(t){var e=V(t.x-this.long0),n=t.y,i=Math.asin(Cn*Math.sin(n)),r=i*i,o=r*r*r;return t.x=e*Math.cos(i)/(Cn*(Sn+3*Tn*r+o*(7*Mn+9*An*r))),t.y=i*(Sn+Tn*r+o*(Mn+An*r)),t.x=this.a*t.x+this.x0,t.y=this.a*t.y+this.y0,t},inverse:function(t){t.x=(t.x-this.x0)/this.a,t.y=(t.y-this.y0)/this.a;var e,n,i,r,o=t.y;for(r=0;r<12&&(o-=i=(o*(Sn+Tn*(e=o*o)+(n=e*e*e)*(Mn+An*e))-t.y)/(Sn+3*Tn*e+n*(7*Mn+9*An*e)),!(Math.abs(i)<1e-9));++r);return n=(e=o*o)*e*e,t.x=Cn*t.x*(Sn+3*Tn*e+n*(7*Mn+9*An*e))/Math.cos(o),t.y=Math.asin(Math.sin(o)/Cn),t.x=V(t.x+this.long0),t},names:["eqearth","Equal Earth","Equal_Earth"]};var En=1e-10;function kn(t){var e,n,i,r=V(t.x-(this.long0||0)),o=t.y;return e=this.am1+this.m1-$t(o,n=Math.sin(o),i=Math.cos(o),this.en),n=i*r/(e*Math.sqrt(1-this.es*n*n)),t.x=e*Math.sin(n),t.y=this.am1-e*Math.cos(n),t.x=this.a*t.x+(this.x0||0),t.y=this.a*t.y+(this.y0||0),t}function Ln(t){var e,n,i,r;if(t.x=(t.x-(this.x0||0))/this.a,t.y=(t.y-(this.y0||0))/this.a,n=te(t.x,t.y=this.am1-t.y),r=Kt(this.am1+this.m1-n,this.es,this.en),(e=Math.abs(r))<a)e=Math.sin(r),i=n*Math.atan2(t.x,t.y)*Math.sqrt(1-this.es*e*e)/Math.cos(r);else{if(!(Math.abs(e-a)<=En))throw new Error;i=0}return t.x=V(i+(this.long0||0)),t.y=be(r),t}function Dn(t){var e,n,i=V(t.x-(this.long0||0)),r=t.y;return n=this.cphi1+this.phi1-r,Math.abs(n)>En?(t.x=n*Math.sin(e=i*Math.cos(r)/n),t.y=this.cphi1-n*Math.cos(e)):t.x=t.y=0,t.x=this.a*t.x+(this.x0||0),t.y=this.a*t.y+(this.y0||0),t}function Pn(t){var e,n;t.x=(t.x-(this.x0||0))/this.a,t.y=(t.y-(this.y0||0))/this.a;var i=te(t.x,t.y=this.cphi1-t.y);if(n=this.cphi1+this.phi1-i,Math.abs(n)>a)throw new Error;return e=Math.abs(Math.abs(n)-a)<=En?0:i*Math.atan2(t.x,t.y)/Math.cos(n),t.x=V(e+(this.long0||0)),t.y=be(n),t}const Rn={init:function(){var t;if(this.phi1=this.lat1,Math.abs(this.phi1)<En)throw new Error;this.es?(this.en=Zt(this.es),this.m1=$t(this.phi1,this.am1=Math.sin(this.phi1),t=Math.cos(this.phi1),this.en),this.am1=t/(Math.sqrt(1-this.es*this.am1*this.am1)*this.am1),this.inverse=Ln,this.forward=kn):(Math.abs(this.phi1)+En>=a?this.cphi1=0:this.cphi1=1/Math.tan(this.phi1),this.inverse=Pn,this.forward=Dn)},names:["bonne","Bonne (Werner lat_1=90)"]};At.defaultDatum="WGS84",At.Proj=ut,At.WGS84=new At.Proj("WGS84"),At.Point=Ut,At.toPoint=xt,At.defs=R,At.nadgrid=function(t,e){var n=new DataView(e),i=function(t){var e=t.getInt32(8,!1);if(11===e)return!1;e=t.getInt32(8,!0),11!==e&&console.warn("Failed to detect nadgrid endian-ness, defaulting to little-endian");return!0}(n),r=function(t,e){return{nFields:t.getInt32(8,e),nSubgridFields:t.getInt32(24,e),nSubgrids:t.getInt32(40,e),shiftType:at(t,56,64).trim(),fromSemiMajorAxis:t.getFloat64(120,e),fromSemiMinorAxis:t.getFloat64(136,e),toSemiMajorAxis:t.getFloat64(152,e),toSemiMinorAxis:t.getFloat64(168,e)}}(n,i),o=function(t,e,n){for(var i=176,r=[],o=0;o<e.nSubgrids;o++){var a=lt(t,i,n),s=ht(t,i,a,n),l=Math.round(1+(a.upperLongitude-a.lowerLongitude)/a.longitudeInterval),h=Math.round(1+(a.upperLatitude-a.lowerLatitude)/a.latitudeInterval);r.push({ll:[ot(a.lowerLongitude),ot(a.lowerLatitude)],del:[ot(a.longitudeInterval),ot(a.latitudeInterval)],lim:[l,h],count:a.gridNodeCount,cvs:st(s)}),i+=176+16*a.gridNodeCount}return r}(n,r,i),a={header:r,subgrids:o};return it[t]=a,a},At.transform=wt,At.mgrs=Rt,At.version="__VERSION__",function(t){t.Proj.projections.add(Jt),t.Proj.projections.add(re),t.Proj.projections.add(oe),t.Proj.projections.add(le),t.Proj.projections.add(he),t.Proj.projections.add(ce),t.Proj.projections.add(de),t.Proj.projections.add(pe),t.Proj.projections.add(fe),t.Proj.projections.add(Se),t.Proj.projections.add(Le),t.Proj.projections.add(Pe),t.Proj.projections.add(Re),t.Proj.projections.add(Oe),t.Proj.projections.add(Ne),t.Proj.projections.add(Fe),t.Proj.projections.add(Be),t.Proj.projections.add(ze),t.Proj.projections.add(Ge),t.Proj.projections.add(Ve),t.Proj.projections.add(je),t.Proj.projections.add(He),t.Proj.projections.add(We),t.Proj.projections.add(Ue),t.Proj.projections.add(on),t.Proj.projections.add(fn),t.Proj.projections.add(gn),t.Proj.projections.add(bn),t.Proj.projections.add(wn),t.Proj.projections.add(In),t.Proj.projections.add(Rn)}(At);const On=At},3269:function(t){t.exports=function(){"use strict";function t(t,i,r,o,a){!function t(n,i,r,o,a){for(;o>r;){if(o-r>600){var s=o-r+1,l=i-r+1,h=Math.log(s),c=.5*Math.exp(2*h/3),u=.5*Math.sqrt(h*c*(s-c)/s)*(l-s/2<0?-1:1);t(n,i,Math.max(r,Math.floor(i-l*c/s+u)),Math.min(o,Math.floor(i+(s-l)*c/s+u)),a)}var d=n[i],p=r,f=o;for(e(n,r,i),a(n[o],d)>0&&e(n,r,o);p<f;){for(e(n,p,f),p++,f--;a(n[p],d)<0;)p++;for(;a(n[f],d)>0;)f--}0===a(n[r],d)?e(n,r,f):e(n,++f,o),f<=i&&(r=f+1),i<=f&&(o=f-1)}}(t,i,r||0,o||t.length-1,a||n)}function e(t,e,n){var i=t[e];t[e]=t[n],t[n]=i}function n(t,e){return t<e?-1:t>e?1:0}var i=function(t){void 0===t&&(t=9),this._maxEntries=Math.max(4,t),this._minEntries=Math.max(2,Math.ceil(.4*this._maxEntries)),this.clear()};function r(t,e,n){if(!n)return e.indexOf(t);for(var i=0;i<e.length;i++)if(n(t,e[i]))return i;return-1}function o(t,e){a(t,0,t.children.length,e,t)}function a(t,e,n,i,r){r||(r=f(null)),r.minX=1/0,r.minY=1/0,r.maxX=-1/0,r.maxY=-1/0;for(var o=e;o<n;o++){var a=t.children[o];s(r,t.leaf?i(a):a)}return r}function s(t,e){return t.minX=Math.min(t.minX,e.minX),t.minY=Math.min(t.minY,e.minY),t.maxX=Math.max(t.maxX,e.maxX),t.maxY=Math.max(t.maxY,e.maxY),t}function l(t,e){return t.minX-e.minX}function h(t,e){return t.minY-e.minY}function c(t){return(t.maxX-t.minX)*(t.maxY-t.minY)}function u(t){return t.maxX-t.minX+(t.maxY-t.minY)}function d(t,e){return t.minX<=e.minX&&t.minY<=e.minY&&e.maxX<=t.maxX&&e.maxY<=t.maxY}function p(t,e){return e.minX<=t.maxX&&e.minY<=t.maxY&&e.maxX>=t.minX&&e.maxY>=t.minY}function f(t){return{children:t,height:1,leaf:!0,minX:1/0,minY:1/0,maxX:-1/0,maxY:-1/0}}function g(e,n,i,r,o){for(var a=[n,i];a.length;)if(!((i=a.pop())-(n=a.pop())<=r)){var s=n+Math.ceil((i-n)/r/2)*r;t(e,s,n,i,o),a.push(n,s,s,i)}}return i.prototype.all=function(){return this._all(this.data,[])},i.prototype.search=function(t){var e=this.data,n=[];if(!p(t,e))return n;for(var i=this.toBBox,r=[];e;){for(var o=0;o<e.children.length;o++){var a=e.children[o],s=e.leaf?i(a):a;p(t,s)&&(e.leaf?n.push(a):d(t,s)?this._all(a,n):r.push(a))}e=r.pop()}return n},i.prototype.collides=function(t){var e=this.data;if(!p(t,e))return!1;for(var n=[];e;){for(var i=0;i<e.children.length;i++){var r=e.children[i],o=e.leaf?this.toBBox(r):r;if(p(t,o)){if(e.leaf||d(t,o))return!0;n.push(r)}}e=n.pop()}return!1},i.prototype.load=function(t){if(!t||!t.length)return this;if(t.length<this._minEntries){for(var e=0;e<t.length;e++)this.insert(t[e]);return this}var n=this._build(t.slice(),0,t.length-1,0);if(this.data.children.length)if(this.data.height===n.height)this._splitRoot(this.data,n);else{if(this.data.height<n.height){var i=this.data;this.data=n,n=i}this._insert(n,this.data.height-n.height-1,!0)}else this.data=n;return this},i.prototype.insert=function(t){return t&&this._insert(t,this.data.height-1),this},i.prototype.clear=function(){return this.data=f([]),this},i.prototype.remove=function(t,e){if(!t)return this;for(var n,i,o,a=this.data,s=this.toBBox(t),l=[],h=[];a||l.length;){if(a||(a=l.pop(),i=l[l.length-1],n=h.pop(),o=!0),a.leaf){var c=r(t,a.children,e);if(-1!==c)return a.children.splice(c,1),l.push(a),this._condense(l),this}o||a.leaf||!d(a,s)?i?(n++,a=i.children[n],o=!1):a=null:(l.push(a),h.push(n),n=0,i=a,a=a.children[0])}return this},i.prototype.toBBox=function(t){return t},i.prototype.compareMinX=function(t,e){return t.minX-e.minX},i.prototype.compareMinY=function(t,e){return t.minY-e.minY},i.prototype.toJSON=function(){return this.data},i.prototype.fromJSON=function(t){return this.data=t,this},i.prototype._all=function(t,e){for(var n=[];t;)t.leaf?e.push.apply(e,t.children):n.push.apply(n,t.children),t=n.pop();return e},i.prototype._build=function(t,e,n,i){var r,a=n-e+1,s=this._maxEntries;if(a<=s)return o(r=f(t.slice(e,n+1)),this.toBBox),r;i||(i=Math.ceil(Math.log(a)/Math.log(s)),s=Math.ceil(a/Math.pow(s,i-1))),(r=f([])).leaf=!1,r.height=i;var l=Math.ceil(a/s),h=l*Math.ceil(Math.sqrt(s));g(t,e,n,h,this.compareMinX);for(var c=e;c<=n;c+=h){var u=Math.min(c+h-1,n);g(t,c,u,l,this.compareMinY);for(var d=c;d<=u;d+=l){var p=Math.min(d+l-1,u);r.children.push(this._build(t,d,p,i-1))}}return o(r,this.toBBox),r},i.prototype._chooseSubtree=function(t,e,n,i){for(;i.push(e),!e.leaf&&i.length-1!==n;){for(var r=1/0,o=1/0,a=void 0,s=0;s<e.children.length;s++){var l=e.children[s],h=c(l),u=(d=t,p=l,(Math.max(p.maxX,d.maxX)-Math.min(p.minX,d.minX))*(Math.max(p.maxY,d.maxY)-Math.min(p.minY,d.minY))-h);u<o?(o=u,r=h<r?h:r,a=l):u===o&&h<r&&(r=h,a=l)}e=a||e.children[0]}var d,p;return e},i.prototype._insert=function(t,e,n){var i=n?t:this.toBBox(t),r=[],o=this._chooseSubtree(i,this.data,e,r);for(o.children.push(t),s(o,i);e>=0&&r[e].children.length>this._maxEntries;)this._split(r,e),e--;this._adjustParentBBoxes(i,r,e)},i.prototype._split=function(t,e){var n=t[e],i=n.children.length,r=this._minEntries;this._chooseSplitAxis(n,r,i);var a=this._chooseSplitIndex(n,r,i),s=f(n.children.splice(a,n.children.length-a));s.height=n.height,s.leaf=n.leaf,o(n,this.toBBox),o(s,this.toBBox),e?t[e-1].children.push(s):this._splitRoot(n,s)},i.prototype._splitRoot=function(t,e){this.data=f([t,e]),this.data.height=t.height+1,this.data.leaf=!1,o(this.data,this.toBBox)},i.prototype._chooseSplitIndex=function(t,e,n){for(var i,r,o,s,l,h,u,d=1/0,p=1/0,f=e;f<=n-e;f++){var g=a(t,0,f,this.toBBox),m=a(t,f,n,this.toBBox),v=(r=g,o=m,s=void 0,l=void 0,h=void 0,u=void 0,s=Math.max(r.minX,o.minX),l=Math.max(r.minY,o.minY),h=Math.min(r.maxX,o.maxX),u=Math.min(r.maxY,o.maxY),Math.max(0,h-s)*Math.max(0,u-l)),y=c(g)+c(m);v<d?(d=v,i=f,p=y<p?y:p):v===d&&y<p&&(p=y,i=f)}return i||n-e},i.prototype._chooseSplitAxis=function(t,e,n){var i=t.leaf?this.compareMinX:l,r=t.leaf?this.compareMinY:h;this._allDistMargin(t,e,n,i)<this._allDistMargin(t,e,n,r)&&t.children.sort(i)},i.prototype._allDistMargin=function(t,e,n,i){t.children.sort(i);for(var r=this.toBBox,o=a(t,0,e,r),l=a(t,n-e,n,r),h=u(o)+u(l),c=e;c<n-e;c++){var d=t.children[c];s(o,t.leaf?r(d):d),h+=u(o)}for(var p=n-e-1;p>=e;p--){var f=t.children[p];s(l,t.leaf?r(f):f),h+=u(l)}return h},i.prototype._adjustParentBBoxes=function(t,e,n){for(var i=n;i>=0;i--)s(e[i],t)},i.prototype._condense=function(t){for(var e=t.length-1,n=void 0;e>=0;e--)0===t[e].children.length?e>0?(n=t[e-1].children).splice(n.indexOf(t[e]),1):this.clear():o(t[e],this.toBBox)},i}()},7998:(t,e,n)=>{"use strict";var i=n(3491),r=n(1216),o=n(9133),a=n(4979);function s(t){return"__proto__"!==t&&"constructor"!==t&&"prototype"!==t}t.exports=function(t,e,n){if(!a(t))return t;if(Array.isArray(e)&&(e=[].concat.apply([],e).join(".")),"string"!=typeof e)return t;for(var l=i(e,{sep:".",brackets:!0}).filter(s),h=l.length,c=-1,u=t;++c<h;){var d=l[c];c===h-1?o(u[d])&&o(n)?u[d]=r({},u[d],n):u[d]=n:(a(u[d])||(u[d]={}),u=u[d])}return t}},3491:(t,e,n)=>{"use strict";var i=n(4146);function r(t,e,n,i){var o=t.indexOf(e,n);return"\\"===t.charAt(o-1)?r(t,e,o+1):o}function o(t,e){return!0===e.keepDoubleQuotes&&'"'===t||(!0===e.keepSingleQuotes&&"'"===t||e.keepQuotes)}function a(t,e,n){return"function"==typeof t.keepEscaping?t.keepEscaping(e,n):!0===t.keepEscaping||"\\"===e[n+1]}t.exports=function(t,e,n){if("string"!=typeof t)throw new TypeError("expected a string");"function"==typeof e&&(n=e,e=null),"string"==typeof e&&(e={sep:e});var s,l=i({sep:"."},e),h=l.quotes||['"',"'","`"];!0===l.brackets?s={"<":">","(":")","[":"]","{":"}"}:l.brackets&&(s=l.brackets);var c,u=[],d=[],p=[""],f=l.sep,g=t.length,m=-1;function v(){if(s&&d.length)return s[d[d.length-1]]}for(;++m<g;){var y=t[m],_=t[m+1],x={val:y,idx:m,arr:p,str:t};if(u.push(x),"\\"!==y){if(s&&s[y]){d.push(y);var b=v(),w=m+1;if(-1!==t.indexOf(b,w+1))for(;d.length&&w<g;){var S=t[++w];if("\\"!==S)if(-1===h.indexOf(S)){if(b=v(),d.length&&-1===t.indexOf(b,w+1))break;s[S]?d.push(S):b===S&&d.pop()}else w=r(t,S,w+1);else S++}if(-1===(c=w)){p[p.length-1]+=y;continue}y=t.slice(m,c+1),x.val=y,x.idx=m=c}if(-1!==h.indexOf(y)){if(-1===(c=r(t,y,m+1))){p[p.length-1]+=y;continue}y=!0===o(y,l)?t.slice(m,c+1):t.slice(m+1,c),x.val=y,x.idx=m=c}"function"==typeof n&&(n(x,u),y=x.val,m=x.idx),x.val!==f||!1===x.split?p[p.length-1]+=x.val:p.push("")}else x.val=!0===a(l,t,m)?y+_:_,x.escaped=!0,"function"==typeof n&&n(x),p[p.length-1]+=x.val,m++}return p}},1981:function(t,e,n){"use strict";var i=this&&this.__spreadArrays||function(){for(var t=0,e=0,n=arguments.length;e<n;e++)t+=arguments[e].length;var i=Array(t),r=0;for(e=0;e<n;e++)for(var o=arguments[e],a=0,s=o.length;a<s;a++,r++)i[r]=o[a];return i};Object.defineProperty(e,"__esModule",{value:!0}),e.Checker=e.createCheckers=void 0;var r=n(9332),o=n(7389),a=n(9332);Object.defineProperty(e,"TArray",{enumerable:!0,get:function(){return a.TArray}}),Object.defineProperty(e,"TEnumType",{enumerable:!0,get:function(){return a.TEnumType}}),Object.defineProperty(e,"TEnumLiteral",{enumerable:!0,get:function(){return a.TEnumLiteral}}),Object.defineProperty(e,"TFunc",{enumerable:!0,get:function(){return a.TFunc}}),Object.defineProperty(e,"TIface",{enumerable:!0,get:function(){return a.TIface}}),Object.defineProperty(e,"TLiteral",{enumerable:!0,get:function(){return a.TLiteral}}),Object.defineProperty(e,"TName",{enumerable:!0,get:function(){return a.TName}}),Object.defineProperty(e,"TOptional",{enumerable:!0,get:function(){return a.TOptional}}),Object.defineProperty(e,"TParam",{enumerable:!0,get:function(){return a.TParam}}),Object.defineProperty(e,"TParamList",{enumerable:!0,get:function(){return a.TParamList}}),Object.defineProperty(e,"TProp",{enumerable:!0,get:function(){return a.TProp}}),Object.defineProperty(e,"TTuple",{enumerable:!0,get:function(){return a.TTuple}}),Object.defineProperty(e,"TType",{enumerable:!0,get:function(){return a.TType}}),Object.defineProperty(e,"TUnion",{enumerable:!0,get:function(){return a.TUnion}}),Object.defineProperty(e,"TIntersection",{enumerable:!0,get:function(){return a.TIntersection}}),Object.defineProperty(e,"array",{enumerable:!0,get:function(){return a.array}}),Object.defineProperty(e,"enumlit",{enumerable:!0,get:function(){return a.enumlit}}),Object.defineProperty(e,"enumtype",{enumerable:!0,get:function(){return a.enumtype}}),Object.defineProperty(e,"func",{enumerable:!0,get:function(){return a.func}}),Object.defineProperty(e,"iface",{enumerable:!0,get:function(){return a.iface}}),Object.defineProperty(e,"lit",{enumerable:!0,get:function(){return a.lit}}),Object.defineProperty(e,"name",{enumerable:!0,get:function(){return a.name}}),Object.defineProperty(e,"opt",{enumerable:!0,get:function(){return a.opt}}),Object.defineProperty(e,"param",{enumerable:!0,get:function(){return a.param}}),Object.defineProperty(e,"tuple",{enumerable:!0,get:function(){return a.tuple}}),Object.defineProperty(e,"union",{enumerable:!0,get:function(){return a.union}}),Object.defineProperty(e,"intersection",{enumerable:!0,get:function(){return a.intersection}}),Object.defineProperty(e,"BasicType",{enumerable:!0,get:function(){return a.BasicType}});var s=n(7389);Object.defineProperty(e,"VError",{enumerable:!0,get:function(){return s.VError}}),e.createCheckers=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];for(var n=Object.assign.apply(Object,i([{},r.basicTypes],t)),o={},a=0,s=t;a<s.length;a++)for(var h=s[a],c=0,u=Object.keys(h);c<u.length;c++){var d=u[c];o[d]=new l(n,h[d])}return o};var l=function(){function t(t,e,n){if(void 0===n&&(n="value"),this.suite=t,this.ttype=e,this._path=n,this.props=new Map,e instanceof r.TIface)for(var i=0,o=e.props;i<o.length;i++){var a=o[i];this.props.set(a.name,a.ttype)}this.checkerPlain=this.ttype.getChecker(t,!1),this.checkerStrict=this.ttype.getChecker(t,!0)}return t.prototype.setReportedPath=function(t){this._path=t},t.prototype.check=function(t){return this._doCheck(this.checkerPlain,t)},t.prototype.test=function(t){return this.checkerPlain(t,new o.NoopContext)},t.prototype.validate=function(t){return this._doValidate(this.checkerPlain,t)},t.prototype.strictCheck=function(t){return this._doCheck(this.checkerStrict,t)},t.prototype.strictTest=function(t){return this.checkerStrict(t,new o.NoopContext)},t.prototype.strictValidate=function(t){return this._doValidate(this.checkerStrict,t)},t.prototype.getProp=function(e){var n=this.props.get(e);if(!n)throw new Error("Type has no property "+e);return new t(this.suite,n,this._path+"."+e)},t.prototype.methodArgs=function(e){var n=this._getMethod(e);return new t(this.suite,n.paramList)},t.prototype.methodResult=function(e){var n=this._getMethod(e);return new t(this.suite,n.result)},t.prototype.getArgs=function(){if(!(this.ttype instanceof r.TFunc))throw new Error("getArgs() applied to non-function");return new t(this.suite,this.ttype.paramList)},t.prototype.getResult=function(){if(!(this.ttype instanceof r.TFunc))throw new Error("getResult() applied to non-function");return new t(this.suite,this.ttype.result)},t.prototype.getType=function(){return this.ttype},t.prototype._doCheck=function(t,e){if(!t(e,new o.NoopContext)){var n=new o.DetailContext;throw t(e,n),n.getError(this._path)}},t.prototype._doValidate=function(t,e){if(t(e,new o.NoopContext))return null;var n=new o.DetailContext;return t(e,n),n.getErrorDetail(this._path)},t.prototype._getMethod=function(t){var e=this.props.get(t);if(!e)throw new Error("Type has no property "+t);if(!(e instanceof r.TFunc))throw new Error("Property "+t+" is not a method");return e},t}();e.Checker=l},9332:function(t,e,n){"use strict";var i,r=this&&this.__extends||(i=function(t,e){return i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])},i(t,e)},function(t,e){function n(){this.constructor=t}i(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)});Object.defineProperty(e,"__esModule",{value:!0}),e.basicTypes=e.BasicType=e.TParamList=e.TParam=e.param=e.TFunc=e.func=e.TProp=e.TOptional=e.opt=e.TIface=e.iface=e.TEnumLiteral=e.enumlit=e.TEnumType=e.enumtype=e.TIntersection=e.intersection=e.TUnion=e.union=e.TTuple=e.tuple=e.TArray=e.array=e.TLiteral=e.lit=e.TName=e.name=e.TType=void 0;var o=n(7389),a=function(){};function s(t){return"string"==typeof t?h(t):t}function l(t,e){var n=t[e];if(!n)throw new Error("Unknown type "+e);return n}function h(t){return new c(t)}e.TType=a,e.name=h;var c=function(t){function e(e){var n=t.call(this)||this;return n.name=e,n._failMsg="is not a "+e,n}return r(e,t),e.prototype.getChecker=function(t,n,i){var r=this,o=l(t,this.name),a=o.getChecker(t,n,i);return o instanceof M||o instanceof e?a:function(t,e){return!!a(t,e)||e.fail(null,r._failMsg,0)}},e}(a);e.TName=c,e.lit=function(t){return new u(t)};var u=function(t){function e(e){var n=t.call(this)||this;return n.value=e,n.name=JSON.stringify(e),n._failMsg="is not "+n.name,n}return r(e,t),e.prototype.getChecker=function(t,e){var n=this;return function(t,e){return t===n.value||e.fail(null,n._failMsg,-1)}},e}(a);e.TLiteral=u,e.array=function(t){return new d(s(t))};var d=function(t){function e(e){var n=t.call(this)||this;return n.ttype=e,n}return r(e,t),e.prototype.getChecker=function(t,e){var n=this.ttype.getChecker(t,e);return function(t,e){if(!Array.isArray(t))return e.fail(null,"is not an array",0);for(var i=0;i<t.length;i++){if(!n(t[i],e))return e.fail(i,null,1)}return!0}},e}(a);e.TArray=d,e.tuple=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return new p(t.map((function(t){return s(t)})))};var p=function(t){function e(e){var n=t.call(this)||this;return n.ttypes=e,n}return r(e,t),e.prototype.getChecker=function(t,e){var n=this.ttypes.map((function(n){return n.getChecker(t,e)})),i=function(t,e){if(!Array.isArray(t))return e.fail(null,"is not an array",0);for(var i=0;i<n.length;i++){if(!n[i](t[i],e))return e.fail(i,null,1)}return!0};return e?function(t,e){return!!i(t,e)&&(t.length<=n.length||e.fail(n.length,"is extraneous",2))}:i},e}(a);e.TTuple=p,e.union=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return new f(t.map((function(t){return s(t)})))};var f=function(t){function e(e){var n=t.call(this)||this;n.ttypes=e;var i=e.map((function(t){return t instanceof c||t instanceof u?t.name:null})).filter((function(t){return t})),r=e.length-i.length;return i.length?(r>0&&i.push(r+" more"),n._failMsg="is none of "+i.join(", ")):n._failMsg="is none of "+r+" types",n}return r(e,t),e.prototype.getChecker=function(t,e){var n=this,i=this.ttypes.map((function(n){return n.getChecker(t,e)}));return function(t,e){for(var r=e.unionResolver(),o=0;o<i.length;o++){if(i[o](t,r.createContext()))return!0}return e.resolveUnion(r),e.fail(null,n._failMsg,0)}},e}(a);e.TUnion=f,e.intersection=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return new g(t.map((function(t){return s(t)})))};var g=function(t){function e(e){var n=t.call(this)||this;return n.ttypes=e,n}return r(e,t),e.prototype.getChecker=function(t,e){var n=new Set,i=this.ttypes.map((function(i){return i.getChecker(t,e,n)}));return function(t,e){return!!i.every((function(n){return n(t,e)}))||e.fail(null,null,0)}},e}(a);e.TIntersection=g,e.enumtype=function(t){return new m(t)};var m=function(t){function e(e){var n=t.call(this)||this;return n.members=e,n.validValues=new Set,n._failMsg="is not a valid enum value",n.validValues=new Set(Object.keys(e).map((function(t){return e[t]}))),n}return r(e,t),e.prototype.getChecker=function(t,e){var n=this;return function(t,e){return!!n.validValues.has(t)||e.fail(null,n._failMsg,0)}},e}(a);e.TEnumType=m,e.enumlit=function(t,e){return new v(t,e)};var v=function(t){function e(e,n){var i=t.call(this)||this;return i.enumName=e,i.prop=n,i._failMsg="is not "+e+"."+n,i}return r(e,t),e.prototype.getChecker=function(t,e){var n=this,i=l(t,this.enumName);if(!(i instanceof m))throw new Error("Type "+this.enumName+" used in enumlit is not an enum type");var r=i.members[this.prop];if(!i.members.hasOwnProperty(this.prop))throw new Error("Unknown value "+this.enumName+"."+this.prop+" used in enumlit");return function(t,e){return t===r||e.fail(null,n._failMsg,-1)}},e}(a);function y(t){return Object.keys(t).map((function(e){return function(t,e){return e instanceof x?new b(t,e.ttype,!0):new b(t,s(e),!1)}(e,t[e])}))}e.TEnumLiteral=v,e.iface=function(t,e){return new _(t,y(e))};var _=function(t){function e(e,n){var i=t.call(this)||this;return i.bases=e,i.props=n,i.propSet=new Set(n.map((function(t){return t.name}))),i}return r(e,t),e.prototype.getChecker=function(t,e,n){var i=this,r=this.bases.map((function(n){return l(t,n).getChecker(t,e)})),a=this.props.map((function(n){return n.ttype.getChecker(t,e)})),s=new o.NoopContext,h=this.props.map((function(t,e){return!t.isOpt&&!a[e](void 0,s)})),c=function(t,e){if("object"!=typeof t||null===t)return e.fail(null,"is not an object",0);for(var n=0;n<r.length;n++)if(!r[n](t,e))return!1;for(n=0;n<a.length;n++){var o=i.props[n].name,s=t[o];if(void 0===s){if(h[n])return e.fail(o,"is missing",1)}else if(!a[n](s,e))return e.fail(o,null,1)}return!0};if(!e)return c;var u=this.propSet;return n&&(this.propSet.forEach((function(t){return n.add(t)})),u=n),function(t,e){if(!c(t,e))return!1;for(var n in t)if(!u.has(n))return e.fail(n,"is extraneous",2);return!0}},e}(a);e.TIface=_,e.opt=function(t){return new x(s(t))};var x=function(t){function e(e){var n=t.call(this)||this;return n.ttype=e,n}return r(e,t),e.prototype.getChecker=function(t,e){var n=this.ttype.getChecker(t,e);return function(t,e){return void 0===t||n(t,e)}},e}(a);e.TOptional=x;var b=function(t,e,n){this.name=t,this.ttype=e,this.isOpt=n};e.TProp=b,e.func=function(t){for(var e=[],n=1;n<arguments.length;n++)e[n-1]=arguments[n];return new w(new T(e),s(t))};var w=function(t){function e(e,n){var i=t.call(this)||this;return i.paramList=e,i.result=n,i}return r(e,t),e.prototype.getChecker=function(t,e){return function(t,e){return"function"==typeof t||e.fail(null,"is not a function",0)}},e}(a);e.TFunc=w,e.param=function(t,e,n){return new S(t,s(e),Boolean(n))};var S=function(t,e,n){this.name=t,this.ttype=e,this.isOpt=n};e.TParam=S;var T=function(t){function e(e){var n=t.call(this)||this;return n.params=e,n}return r(e,t),e.prototype.getChecker=function(t,e){var n=this,i=this.params.map((function(n){return n.ttype.getChecker(t,e)})),r=new o.NoopContext,a=this.params.map((function(t,e){return!t.isOpt&&!i[e](void 0,r)})),s=function(t,e){if(!Array.isArray(t))return e.fail(null,"is not an array",0);for(var r=0;r<i.length;r++){var o=n.params[r];if(void 0===t[r]){if(a[r])return e.fail(o.name,"is missing",1)}else if(!i[r](t[r],e))return e.fail(o.name,null,1)}return!0};return e?function(t,e){return!!s(t,e)&&(t.length<=i.length||e.fail(i.length,"is extraneous",2))}:s},e}(a);e.TParamList=T;var M=function(t){function e(e,n){var i=t.call(this)||this;return i.validator=e,i.message=n,i}return r(e,t),e.prototype.getChecker=function(t,e){var n=this;return function(t,e){return!!n.validator(t)||e.fail(null,n.message,0)}},e}(a);e.BasicType=M,e.basicTypes={any:new M((function(t){return!0}),"is invalid"),number:new M((function(t){return"number"==typeof t}),"is not a number"),object:new M((function(t){return"object"==typeof t&&t}),"is not an object"),boolean:new M((function(t){return"boolean"==typeof t}),"is not a boolean"),string:new M((function(t){return"string"==typeof t}),"is not a string"),symbol:new M((function(t){return"symbol"==typeof t}),"is not a symbol"),void:new M((function(t){return null==t}),"is not void"),undefined:new M((function(t){return void 0===t}),"is not undefined"),null:new M((function(t){return null===t}),"is not null"),never:new M((function(t){return!1}),"is unexpected"),Date:new M(C("[object Date]"),"is not a Date"),RegExp:new M(C("[object RegExp]"),"is not a RegExp")};var A=Object.prototype.toString;function C(t){return function(e){return"object"==typeof e&&e&&A.call(e)===t}}"undefined"!=typeof Buffer&&(e.basicTypes.Buffer=new M((function(t){return Buffer.isBuffer(t)}),"is not a Buffer"));for(var I=function(t){e.basicTypes[t.name]=new M((function(e){return e instanceof t}),"is not a "+t.name)},E=0,k=[Int8Array,Uint8Array,Uint8ClampedArray,Int16Array,Uint16Array,Int32Array,Uint32Array,Float32Array,Float64Array,ArrayBuffer];E<k.length;E++){I(k[E])}},7389:function(t,e){"use strict";var n,i=this&&this.__extends||(n=function(t,e){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])},n(t,e)},function(t,e){function i(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)});Object.defineProperty(e,"__esModule",{value:!0}),e.DetailContext=e.NoopContext=e.VError=void 0;var r=function(t){function e(n,i){var r=t.call(this,i)||this;return r.path=n,Object.setPrototypeOf(r,e.prototype),r}return i(e,t),e}(Error);e.VError=r;var o=function(){function t(){}return t.prototype.fail=function(t,e,n){return!1},t.prototype.unionResolver=function(){return this},t.prototype.createContext=function(){return this},t.prototype.resolveUnion=function(t){},t}();e.NoopContext=o;var a=function(){function t(){this._propNames=[""],this._messages=[null],this._score=0}return t.prototype.fail=function(t,e,n){return this._propNames.push(t),this._messages.push(e),this._score+=n,!1},t.prototype.unionResolver=function(){return new s},t.prototype.resolveUnion=function(t){for(var e,n,i=null,r=0,o=t.contexts;r<o.length;r++){var a=o[r];(!i||a._score>=i._score)&&(i=a)}i&&i._score>0&&((e=this._propNames).push.apply(e,i._propNames),(n=this._messages).push.apply(n,i._messages))},t.prototype.getError=function(t){for(var e=[],n=this._propNames.length-1;n>=0;n--){var i=this._propNames[n];t+="number"==typeof i?"["+i+"]":i?"."+i:"";var o=this._messages[n];o&&e.push(t+" "+o)}return new r(t,e.join("; "))},t.prototype.getErrorDetail=function(t){for(var e=[],n=this._propNames.length-1;n>=0;n--){var i=this._propNames[n];t+="number"==typeof i?"["+i+"]":i?"."+i:"";var r=this._messages[n];r&&e.push({path:t,message:r})}var o=null;for(n=e.length-1;n>=0;n--)o&&(e[n].nested=[o]),o=e[n];return o},t}();e.DetailContext=a;var s=function(){function t(){this.contexts=[]}return t.prototype.createContext=function(){var t=new a;return this.contexts.push(t),t},t}()},528:(t,e,n)=>{"use strict";n.d(e,{C6:()=>r});var i=function(t,e){return i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},i(t,e)};function r(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function n(){this.constructor=t}i(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}Object.create;Object.create},2036:(t,e,n)=>{"use strict";n.d(e,{R:()=>a,x:()=>s});var i=n(7378);const r={},o=i.createContext(r);function a(t){const e=i.useContext(o);return i.useMemo((function(){return"function"==typeof t?t(e):{...e,...t}}),[e,t])}function s(t){let e;return e=t.disableParentContext?"function"==typeof t.components?t.components(r):t.components||r:a(t.components),i.createElement(o.Provider,{value:e},t.children)}},4347:(t,e,n)=>{"use strict";n.r(e),n.d(e,{Axis:()=>r._0,ChartView:()=>r.OZ,ComponentModel:()=>r.jT,ComponentView:()=>r.bR,List:()=>r.B8,Model:()=>r.Kx,PRIORITY:()=>r.FQ,SeriesModel:()=>r.rP,color:()=>r.yW,connect:()=>r.Ng,dataTool:()=>r.p5,dependencies:()=>r.El,disConnect:()=>r.zm,disconnect:()=>r.Zf,dispose:()=>r.AS,env:()=>r._K,extendChartView:()=>r.yX,extendComponentModel:()=>r.rt,extendComponentView:()=>r.NO,extendSeriesModel:()=>r.NA,format:()=>r.GP,getCoordinateSystemDimensions:()=>r.Bo,getInstanceByDom:()=>r.FP,getInstanceById:()=>r.aQ,getMap:()=>r.ZB,graphic:()=>r.fA,helper:()=>r.dw,init:()=>r.Ts,innerDrawElementOnCanvas:()=>r.UU,matrix:()=>r.UP,number:()=>r.ai,parseGeoJSON:()=>r.l3,parseGeoJson:()=>r.zI,registerAction:()=>r.OH,registerCoordinateSystem:()=>r.pX,registerLayout:()=>r.Oh,registerLoading:()=>r.Ej,registerLocale:()=>r.E,registerMap:()=>r.mz,registerPostInit:()=>r.cf,registerPostUpdate:()=>r.tb,registerPreprocessor:()=>r.lP,registerProcessor:()=>r.qg,registerTheme:()=>r.bf,registerTransform:()=>r.iY,registerUpdateLifecycle:()=>r.xV,registerVisual:()=>r.AF,setCanvasCreator:()=>r.vV,setPlatformAPI:()=>r.Gs,throttle:()=>r.nF,time:()=>r.kB,use:()=>r.Yx,util:()=>r.ZS,vector:()=>r.i1,version:()=>r.rE,zrUtil:()=>r.F_,zrender:()=>r.nd});var i=n(585),r=n(889),o=n(1829),a=n(9934),s=n(1885),l=n(5975),h=n(4611),c=n(3554),u=Math.sin,d=Math.cos,p=Math.PI,f=2*Math.PI,g=180/p,m=function(){function t(){}return t.prototype.reset=function(t){this._start=!0,this._d=[],this._str="",this._p=Math.pow(10,t||4)},t.prototype.moveTo=function(t,e){this._add("M",t,e)},t.prototype.lineTo=function(t,e){this._add("L",t,e)},t.prototype.bezierCurveTo=function(t,e,n,i,r,o){this._add("C",t,e,n,i,r,o)},t.prototype.quadraticCurveTo=function(t,e,n,i){this._add("Q",t,e,n,i)},t.prototype.arc=function(t,e,n,i,r,o){this.ellipse(t,e,n,n,0,i,r,o)},t.prototype.ellipse=function(t,e,n,i,r,o,s,l){var h=s-o,c=!l,m=Math.abs(h),v=(0,a.Cv)(m-f)||(c?h>=f:-h>=f),y=h>0?h%f:h%f+f,_=!1;_=!!v||!(0,a.Cv)(m)&&y>=p==!!c;var x=t+n*d(o),b=e+i*u(o);this._start&&this._add("M",x,b);var w=Math.round(r*g);if(v){var S=1/this._p,T=(c?1:-1)*(f-S);this._add("A",n,i,w,1,+c,t+n*d(o+T),e+i*u(o+T)),S>.01&&this._add("A",n,i,w,0,+c,x,b)}else{var M=t+n*d(s),A=e+i*u(s);this._add("A",n,i,w,+_,+c,M,A)}},t.prototype.rect=function(t,e,n,i){this._add("M",t,e),this._add("l",n,0),this._add("l",0,i),this._add("l",-n,0),this._add("Z")},t.prototype.closePath=function(){this._d.length>0&&this._add("Z")},t.prototype._add=function(t,e,n,i,r,o,a,s,l){for(var h=[],c=this._p,u=1;u<arguments.length;u++){var d=arguments[u];if(isNaN(d))return void(this._invalid=!0);h.push(Math.round(d*c)/c)}this._d.push(t+h.join(" ")),this._start="Z"===t},t.prototype.generateStr=function(){this._str=this._invalid?"":this._d.join(""),this._d=[]},t.prototype.getStr=function(){return this._str},t}();const v=m;var y=n(2703),_=n(7845),x="none",b=Math.round;var w=["lineCap","miterLimit","lineJoin"],S=(0,_.map)(w,(function(t){return"stroke-"+t.toLowerCase()}));function T(t,e,n,i){var r=null==e.opacity?1:e.opacity;if(n instanceof l.Ay)t("opacity",r);else{if(function(t){var e=t.fill;return null!=e&&e!==x}(e)){var o=(0,a.$2)(e.fill);t("fill",o.color);var h=null!=e.fillOpacity?e.fillOpacity*o.opacity*r:o.opacity*r;(i||h<1)&&t("fill-opacity",h)}else t("fill",x);if(function(t){var e=t.stroke;return null!=e&&e!==x}(e)){var c=(0,a.$2)(e.stroke);t("stroke",c.color);var u=e.strokeNoScale?n.getLineScale():1,d=u?(e.lineWidth||0)/u:0,p=null!=e.strokeOpacity?e.strokeOpacity*c.opacity*r:c.opacity*r,f=e.strokeFirst;if((i||1!==d)&&t("stroke-width",d),(i||f)&&t("paint-order",f?"stroke":"fill"),(i||p<1)&&t("stroke-opacity",p),e.lineDash){var g=(0,y.V)(n),m=g[0],v=g[1];m&&(v=b(v||0),t("stroke-dasharray",m.join(",")),(v||i)&&t("stroke-dashoffset",v))}else i&&t("stroke-dasharray",x);for(var _=0;_<w.length;_++){var T=w[_];if(i||e[T]!==s.MW[T]){var M=e[T]||s.MW[T];M&&t(S[_],M)}}}else i&&t("stroke",x)}}var M=n(4178),A="http://www.w3.org/2000/svg",C="http://www.w3.org/1999/xlink",I="ecmeta_";function E(t){return document.createElementNS(A,t)}function k(t,e,n,i,r){return{tag:t,attrs:n||{},children:i,text:r,key:e}}function L(t,e){var n=(e=e||{}).newline?"\n":"";return function t(e){var i=e.children,r=e.tag,o=e.attrs,a=e.text;return function(t,e){var n=[];if(e)for(var i in e){var r=e[i],o=i;!1!==r&&(!0!==r&&null!=r&&(o+='="'+r+'"'),n.push(o))}return"<"+t+" "+n.join(" ")+">"}(r,o)+("style"!==r?(0,M.Me)(a):a||"")+(i?""+n+(0,_.map)(i,(function(e){return t(e)})).join(n)+n:"")+("</"+r+">")}(t)}function D(t){return{zrId:t,shadowCache:{},patternCache:{},gradientCache:{},clipPathCache:{},defs:{},cssNodes:{},cssAnims:{},cssStyleCache:{},cssAnimIdx:0,shadowIdx:0,gradientIdx:0,patternIdx:0,clipPathIdx:0}}function P(t,e,n,i){return k("svg","root",{width:t,height:e,xmlns:A,"xmlns:xlink":C,version:"1.1",baseProfile:"full",viewBox:!!i&&"0 0 "+t+" "+e},n)}var R=n(3822),O=n(5853),N=n(584),F=n(7298),B=n(1799),z=0;function G(){return z++}var V={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"},j="transform-origin";function H(t,e,n){var i=(0,_.extend)({},t.shape);(0,_.extend)(i,e),t.buildPath(n,i);var r=new v;return r.reset((0,a.MD)(t)),n.rebuildPath(r,1),r.generateStr(),r.getStr()}function W(t,e){var n=e.originX,i=e.originY;(n||i)&&(t[j]=n+"px "+i+"px")}var U={fill:"fill",opacity:"opacity",lineWidth:"stroke-width",lineDashOffset:"stroke-dashoffset"};function q(t,e){var n=e.zrId+"-ani-"+e.cssAnimIdx++;return e.cssAnims[n]=t,n}function X(t){return(0,_.isString)(t)?V[t]?"cubic-bezier("+V[t]+")":(0,B.w)(t)?t:"":""}function Y(t,e,n,i){var r=t.animators,o=r.length,s=[];if(t instanceof F.A){var l=function(t,e,n){var i,r,o=t.shape.paths,a={};if((0,_.each)(o,(function(t){var e=D(n.zrId);e.animation=!0,Y(t,{},e,!0);var o=e.cssAnims,s=e.cssNodes,l=(0,_.keys)(o),h=l.length;if(h){var c=o[r=l[h-1]];for(var u in c){var d=c[u];a[u]=a[u]||{d:""},a[u].d+=d.d||""}for(var p in s){var f=s[p].animation;f.indexOf(r)>=0&&(i=f)}}})),i){e.d=!1;var s=q(a,n);return i.replace(r,s)}}(t,e,n);if(l)s.push(l);else if(!o)return}else if(!o)return;for(var h={},c=0;c<o;c++){var u=r[c],d=[u.getMaxTime()/1e3+"s"],p=X(u.getClip().easing),f=u.getDelay();p?d.push(p):d.push("linear"),f&&d.push(f/1e3+"s"),u.getLoop()&&d.push("infinite");var g=d.join(" ");h[g]=h[g]||[g,[]],h[g][1].push(u)}function m(r){var o,s=r[1],l=s.length,h={},c={},u={},d="animation-timing-function";function p(t,e,n){for(var i=t.getTracks(),r=t.getMaxTime(),o=0;o<i.length;o++){var a=i[o];if(a.needsAnimate()){var s=a.keyframes,l=a.propName;if(n&&(l=n(l)),l)for(var h=0;h<s.length;h++){var c=s[h],u=Math.round(c.time/r*100)+"%",p=X(c.easing),f=c.rawValue;((0,_.isString)(f)||(0,_.isNumber)(f))&&(e[u]=e[u]||{},e[u][l]=c.rawValue,p&&(e[u][d]=p))}}}}for(var f=0;f<l;f++){(M=(T=s[f]).targetName)?"shape"===M&&p(T,c):!i&&p(T,h)}for(var g in h){var m={};(0,O.IT)(m,t),(0,_.extend)(m,h[g]);var v=(0,a.Z1)(m),y=h[g][d];u[g]=v?{transform:v}:{},W(u[g],m),y&&(u[g][d]=y)}var x=!0;for(var g in c){u[g]=u[g]||{};var b=!o;y=c[g][d];b&&(o=new N.A);var w=o.len();o.reset(),u[g].d=H(t,c[g],o);var S=o.len();if(!b&&w!==S){x=!1;break}y&&(u[g][d]=y)}if(!x)for(var g in u)delete u[g].d;if(!i)for(f=0;f<l;f++){var T,M;"style"===(M=(T=s[f]).targetName)&&p(T,u,(function(t){return U[t]}))}var A,C=(0,_.keys)(u),I=!0;for(f=1;f<C.length;f++){var E=C[f-1],k=C[f];if(u[E][j]!==u[k][j]){I=!1;break}A=u[E][j]}if(I&&A){for(var g in u)u[g][j]&&delete u[g][j];e[j]=A}if((0,_.filter)(C,(function(t){return(0,_.keys)(u[t]).length>0})).length)return q(u,n)+" "+r[0]+" both"}for(var v in h){(l=m(h[v]))&&s.push(l)}if(s.length){var y=n.zrId+"-cls-"+G();n.cssNodes["."+y]={animation:s.join(",")},e.class=y}}var Z=n(1251),$=n(9142),K=n(7219);function J(t,e,n,i){var r=JSON.stringify(t),o=n.cssStyleCache[r];o||(o=n.zrId+"-cls-"+G(),n.cssStyleCache[r]=o,n.cssNodes["."+o+(i?":hover":"")]=t),e.class=e.class?e.class+" "+o:o}var Q=n(2563),tt=Math.round;function et(t){return t&&(0,_.isString)(t.src)}function nt(t){return t&&(0,_.isFunction)(t.toDataURL)}function it(t,e,n,i){T((function(r,o){var s="fill"===r||"stroke"===r;s&&(0,a.bn)(o)?ft(e,t,r,i):s&&(0,a.Pt)(o)?gt(n,t,r,i):t[r]=s&&"none"===o?"transparent":o}),e,n,!1),function(t,e,n){var i=t.style;if((0,a.dX)(i)){var r=(0,a.si)(t),o=n.shadowCache,s=o[r];if(!s){var l=t.getGlobalScale(),h=l[0],c=l[1];if(!h||!c)return;var u=i.shadowOffsetX||0,d=i.shadowOffsetY||0,p=i.shadowBlur,f=(0,a.$2)(i.shadowColor),g=f.opacity,m=f.color,v=p/2/h+" "+p/2/c;s=n.zrId+"-s"+n.shadowIdx++,n.defs[s]=k("filter",s,{id:s,x:"-100%",y:"-100%",width:"300%",height:"300%"},[k("feDropShadow","",{dx:u/h,dy:d/c,stdDeviation:v,"flood-color":m,"flood-opacity":g})]),o[r]=s}e.filter=(0,a.Xu)(s)}}(n,t,i)}function rt(t,e){var n=(0,Q.getElementSSRData)(e);n&&(n.each((function(e,n){null!=e&&(t[(I+n).toLowerCase()]=e+"")})),e.isSilent()&&(t[I+"silent"]="true"))}function ot(t){return(0,a.Cv)(t[0]-1)&&(0,a.Cv)(t[1])&&(0,a.Cv)(t[2])&&(0,a.Cv)(t[3]-1)}function at(t,e,n){if(e&&(!function(t){return(0,a.Cv)(t[4])&&(0,a.Cv)(t[5])}(e)||!ot(e))){var i=n?10:1e4;t.transform=ot(e)?"translate("+tt(e[4]*i)/i+" "+tt(e[5]*i)/i+")":(0,a.nV)(e)}}function st(t,e,n){for(var i=t.points,r=[],o=0;o<i.length;o++)r.push(tt(i[o][0]*n)/n),r.push(tt(i[o][1]*n)/n);e.points=r.join(" ")}function lt(t){return!t.smooth}var ht,ct,ut={circle:[(ht=["cx","cy","r"],ct=(0,_.map)(ht,(function(t){return"string"==typeof t?[t,t]:t})),function(t,e,n){for(var i=0;i<ct.length;i++){var r=ct[i],o=t[r[0]];null!=o&&(e[r[1]]=tt(o*n)/n)}})],polyline:[st,lt],polygon:[st,lt]};function dt(t,e){var n=t.style,i=t.shape,r=ut[t.type],o={},s=e.animation,l="path",h=t.style.strokePercent,c=e.compress&&(0,a.MD)(t)||4;if(!r||e.willUpdate||r[1]&&!r[1](i)||s&&function(t){for(var e=t.animators,n=0;n<e.length;n++)if("shape"===e[n].targetName)return!0;return!1}(t)||h<1){var u=!t.path||t.shapeChanged();t.path||t.createPathProxy();var d=t.path;u&&(d.beginPath(),t.buildPath(d,t.shape),t.pathUpdated());var p=d.getVersion(),f=t,g=f.__svgPathBuilder;f.__svgPathVersion===p&&g&&h===f.__svgPathStrokePercent||(g||(g=f.__svgPathBuilder=new v),g.reset(c),d.rebuildPath(g,h),g.generateStr(),f.__svgPathVersion=p,f.__svgPathStrokePercent=h),o.d=g.getStr()}else{l=t.type;var m=Math.pow(10,c);r[0](i,o,m)}return at(o,t.transform),it(o,n,t,e),rt(o,t),e.animation&&Y(t,o,e),e.emphasis&&function(t,e,n){if(!t.ignore)if(t.isSilent())J(h={"pointer-events":"none"},e,n,!0);else{var i=t.states.emphasis&&t.states.emphasis.style?t.states.emphasis.style:{},r=i.fill;if(!r){var o=t.style&&t.style.fill,a=t.states.select&&t.states.select.style&&t.states.select.style.fill,s=t.currentStates.indexOf("select")>=0&&a||o;s&&(r=(0,K.liftColor)(s))}var l=i.lineWidth;l&&(l/=!i.strokeNoScale&&t.transform?t.transform[0]:1);var h={cursor:"pointer"};r&&(h.fill=r),i.stroke&&(h.stroke=i.stroke),l&&(h["stroke-width"]=l),J(h,e,n,!0)}}(t,o,e),k(l,t.id+"",o)}function pt(t,e){return t instanceof s.Ay?dt(t,e):t instanceof l.Ay?function(t,e){var n=t.style,i=n.image;if(i&&!(0,_.isString)(i)&&(et(i)?i=i.src:nt(i)&&(i=i.toDataURL())),i){var r=n.x||0,o=n.y||0,a={href:i,width:n.width,height:n.height};return r&&(a.x=r),o&&(a.y=o),at(a,t.transform),it(a,n,t,e),rt(a,t),e.animation&&Y(t,a,e),k("image",t.id+"",a)}}(t,e):t instanceof c.A?function(t,e){var n=t.style,i=n.text;if(null!=i&&(i+=""),i&&!isNaN(n.x)&&!isNaN(n.y)){var r=n.font||$.OH,o=n.x||0,s=(0,a.sZ)(n.y||0,(0,h.ks)(r),n.textBaseline),l={"dominant-baseline":"central","text-anchor":a.eQ[n.textAlign]||n.textAlign};if((0,Z.XE)(n)){var c="",u=n.fontStyle,d=(0,Z.I5)(n.fontSize);if(!parseFloat(d))return;var p=n.fontFamily||$.zs,f=n.fontWeight;c+="font-size:"+d+";font-family:"+p+";",u&&"normal"!==u&&(c+="font-style:"+u+";"),f&&"normal"!==f&&(c+="font-weight:"+f+";"),l.style=c}else l.style="font: "+r;return i.match(/\s/)&&(l["xml:space"]="preserve"),o&&(l.x=o),s&&(l.y=s),at(l,t.transform),it(l,n,t,e),rt(l,t),e.animation&&Y(t,l,e),k("text",t.id+"",l,void 0,i)}}(t,e):void 0}function ft(t,e,n,i){var r,o=t[n],s={gradientUnits:o.global?"userSpaceOnUse":"objectBoundingBox"};if((0,a.OS)(o))r="linearGradient",s.x1=o.x,s.y1=o.y,s.x2=o.x2,s.y2=o.y2;else{if(!(0,a.OH)(o))return void 0;r="radialGradient",s.cx=(0,_.retrieve2)(o.x,.5),s.cy=(0,_.retrieve2)(o.y,.5),s.r=(0,_.retrieve2)(o.r,.5)}for(var l=o.colorStops,h=[],c=0,u=l.length;c<u;++c){var d=100*(0,a.XP)(l[c].offset)+"%",p=l[c].color,f=(0,a.$2)(p),g=f.color,m=f.opacity,v={offset:d};v["stop-color"]=g,m<1&&(v["stop-opacity"]=m),h.push(k("stop",c+"",v))}var y=L(k(r,"",s,h)),x=i.gradientCache,b=x[y];b||(b=i.zrId+"-g"+i.gradientIdx++,x[y]=b,s.id=b,i.defs[b]=k(r,b,s,h)),e[n]=(0,a.Xu)(b)}function gt(t,e,n,i){var r,o=t.style[n],s=t.getBoundingRect(),l={},h=o.repeat,c="no-repeat"===h,u="repeat-x"===h,d="repeat-y"===h;if((0,a.sL)(o)){var p=o.imageWidth,f=o.imageHeight,g=void 0,m=o.image;if((0,_.isString)(m)?g=m:et(m)?g=m.src:nt(m)&&(g=m.toDataURL()),"undefined"==typeof Image){var v="Image width/height must been given explictly in svg-ssr renderer.";(0,_.assert)(p,v),(0,_.assert)(f,v)}else if(null==p||null==f){var y=function(t,e){if(t){var n=t.elm,i=p||e.width,r=f||e.height;"pattern"===t.tag&&(u?(r=1,i/=s.width):d&&(i=1,r/=s.height)),t.attrs.width=i,t.attrs.height=r,n&&(n.setAttribute("width",i),n.setAttribute("height",r))}},x=(0,R.OD)(g,null,t,(function(t){c||y(T,t),y(r,t)}));x&&x.width&&x.height&&(p=p||x.width,f=f||x.height)}r=k("image","img",{href:g,width:p,height:f}),l.width=p,l.height=f}else o.svgElement&&(r=(0,_.clone)(o.svgElement),l.width=o.svgWidth,l.height=o.svgHeight);if(r){var b,w;c?b=w=1:u?(w=1,b=l.width/s.width):d?(b=1,w=l.height/s.height):l.patternUnits="userSpaceOnUse",null==b||isNaN(b)||(l.width=b),null==w||isNaN(w)||(l.height=w);var S=(0,a.Z1)(o);S&&(l.patternTransform=S);var T=k("pattern","",l,[r]),M=L(T),A=i.patternCache,C=A[M];C||(C=i.zrId+"-p"+i.patternIdx++,A[M]=C,l.id=C,T=i.defs[C]=k("pattern",C,l,[r])),e[n]=(0,a.Xu)(C)}}function mt(t,e,n){var i=n.clipPathCache,r=n.defs,o=i[t.id];if(!o){var s={id:o=n.zrId+"-c"+n.clipPathIdx++};i[t.id]=o,r[o]=k("clipPath",o,s,[dt(t,n)])}e["clip-path"]=(0,a.Xu)(o)}function vt(t){return document.createTextNode(t)}function yt(t,e,n){t.insertBefore(e,n)}function _t(t,e){t.removeChild(e)}function xt(t,e){t.appendChild(e)}function bt(t){return t.parentNode}function wt(t){return t.nextSibling}function St(t,e){t.textContent=e}var Tt=k("","");function Mt(t){return void 0===t}function At(t){return void 0!==t}function Ct(t,e,n){for(var i={},r=e;r<=n;++r){var o=t[r].key;void 0!==o&&(i[o]=r)}return i}function It(t,e){var n=t.key===e.key;return t.tag===e.tag&&n}function Et(t){var e,n=t.children,i=t.tag;if(At(i)){var r=t.elm=E(i);if(Dt(Tt,t),(0,_.isArray)(n))for(e=0;e<n.length;++e){var o=n[e];null!=o&&xt(r,Et(o))}else At(t.text)&&!(0,_.isObject)(t.text)&&xt(r,vt(t.text))}else t.elm=vt(t.text);return t.elm}function kt(t,e,n,i,r){for(;i<=r;++i){var o=n[i];null!=o&&yt(t,Et(o),e)}}function Lt(t,e,n,i){for(;n<=i;++n){var r=e[n];if(null!=r)if(At(r.tag))_t(bt(r.elm),r.elm);else _t(t,r.elm)}}function Dt(t,e){var n,i=e.elm,r=t&&t.attrs||{},o=e.attrs||{};if(r!==o){for(n in o){var a=o[n];r[n]!==a&&(!0===a?i.setAttribute(n,""):!1===a?i.removeAttribute(n):"style"===n?i.style.cssText=a:120!==n.charCodeAt(0)?i.setAttribute(n,a):"xmlns:xlink"===n||"xmlns"===n?i.setAttributeNS("http://www.w3.org/2000/xmlns/",n,a):58===n.charCodeAt(3)?i.setAttributeNS("http://www.w3.org/XML/1998/namespace",n,a):58===n.charCodeAt(5)?i.setAttributeNS(C,n,a):i.setAttribute(n,a))}for(n in r)n in o||i.removeAttribute(n)}}function Pt(t,e){var n=e.elm=t.elm,i=t.children,r=e.children;t!==e&&(Dt(t,e),Mt(e.text)?At(i)&&At(r)?i!==r&&function(t,e,n){for(var i,r,o,a=0,s=0,l=e.length-1,h=e[0],c=e[l],u=n.length-1,d=n[0],p=n[u];a<=l&&s<=u;)null==h?h=e[++a]:null==c?c=e[--l]:null==d?d=n[++s]:null==p?p=n[--u]:It(h,d)?(Pt(h,d),h=e[++a],d=n[++s]):It(c,p)?(Pt(c,p),c=e[--l],p=n[--u]):It(h,p)?(Pt(h,p),yt(t,h.elm,wt(c.elm)),h=e[++a],p=n[--u]):It(c,d)?(Pt(c,d),yt(t,c.elm,h.elm),c=e[--l],d=n[++s]):(Mt(i)&&(i=Ct(e,a,l)),Mt(r=i[d.key])||(o=e[r]).tag!==d.tag?yt(t,Et(d),h.elm):(Pt(o,d),e[r]=void 0,yt(t,o.elm,h.elm)),d=n[++s]);(a<=l||s<=u)&&(a>l?kt(t,null==n[u+1]?null:n[u+1].elm,n,s,u):Lt(t,e,a,l))}(n,i,r):At(r)?(At(t.text)&&St(n,""),kt(n,null,r,0,r.length-1)):At(i)?Lt(n,i,0,i.length-1):At(t.text)&&St(n,""):t.text!==e.text&&(At(i)&&Lt(n,i,0,i.length-1),St(n,e.text)))}var Rt=n(4804),Ot=0,Nt=function(){function t(t,e,n){if(this.type="svg",this.refreshHover=function(){0},this.configLayer=function(){0},this.storage=e,this._opts=n=(0,_.extend)({},n),this.root=t,this._id="zr"+Ot++,this._oldVNode=P(n.width,n.height),t&&!n.ssr){var i=this._viewport=document.createElement("div");i.style.cssText="position:relative;overflow:hidden";var r=this._svgDom=this._oldVNode.elm=E("svg");Dt(null,this._oldVNode),i.appendChild(r),t.appendChild(i)}this.resize(n.width,n.height)}return t.prototype.getType=function(){return this.type},t.prototype.getViewportRoot=function(){return this._viewport},t.prototype.getViewportRootOffset=function(){var t=this.getViewportRoot();if(t)return{offsetLeft:t.offsetLeft||0,offsetTop:t.offsetTop||0}},t.prototype.getSvgDom=function(){return this._svgDom},t.prototype.refresh=function(){if(this.root){var t=this.renderToVNode({willUpdate:!0});t.attrs.style="position:absolute;left:0;top:0;user-select:none",function(t,e){if(It(t,e))Pt(t,e);else{var n=t.elm,i=bt(n);Et(e),null!==i&&(yt(i,e.elm,wt(n)),Lt(i,[t],0,0))}}(this._oldVNode,t),this._oldVNode=t}},t.prototype.renderOneToVNode=function(t){return pt(t,D(this._id))},t.prototype.renderToVNode=function(t){t=t||{};var e=this.storage.getDisplayList(!0),n=this._width,i=this._height,r=D(this._id);r.animation=t.animation,r.willUpdate=t.willUpdate,r.compress=t.compress,r.emphasis=t.emphasis;var o=[],s=this._bgVNode=function(t,e,n,i){var r;if(n&&"none"!==n)if(r=k("rect","bg",{width:t,height:e,x:"0",y:"0"}),(0,a.bn)(n))ft({fill:n},r.attrs,"fill",i);else if((0,a.Pt)(n))gt({style:{fill:n},dirty:_.noop,getBoundingRect:function(){return{width:t,height:e}}},r.attrs,"fill",i);else{var o=(0,a.$2)(n),s=o.color,l=o.opacity;r.attrs.fill=s,l<1&&(r.attrs["fill-opacity"]=l)}return r}(n,i,this._backgroundColor,r);s&&o.push(s);var l=t.compress?null:this._mainVNode=k("g","main",{},[]);this._paintList(e,r,l?l.children:o),l&&o.push(l);var h=(0,_.map)((0,_.keys)(r.defs),(function(t){return r.defs[t]}));if(h.length&&o.push(k("defs","defs",{},h)),t.animation){var c=function(t,e,n){var i=(n=n||{}).newline?"\n":"",r=" {"+i,o=i+"}",a=(0,_.map)((0,_.keys)(t),(function(e){return e+r+(0,_.map)((0,_.keys)(t[e]),(function(n){return n+":"+t[e][n]+";"})).join(i)+o})).join(i),s=(0,_.map)((0,_.keys)(e),(function(t){return"@keyframes "+t+r+(0,_.map)((0,_.keys)(e[t]),(function(n){return n+r+(0,_.map)((0,_.keys)(e[t][n]),(function(i){var r=e[t][n][i];return"d"===i&&(r='path("'+r+'")'),i+":"+r+";"})).join(i)+o})).join(i)+o})).join(i);return a||s?["<![CDATA[",a,s,"]]>"].join(i):""}(r.cssNodes,r.cssAnims,{newline:!0});if(c){var u=k("style","stl",{},[],c);o.push(u)}}return P(n,i,o,t.useViewBox)},t.prototype.renderToString=function(t){return t=t||{},L(this.renderToVNode({animation:(0,_.retrieve2)(t.cssAnimation,!0),emphasis:(0,_.retrieve2)(t.cssEmphasis,!0),willUpdate:!1,compress:!0,useViewBox:(0,_.retrieve2)(t.useViewBox,!0)}),{newline:!0})},t.prototype.setBackgroundColor=function(t){this._backgroundColor=t},t.prototype.getSvgRoot=function(){return this._mainVNode&&this._mainVNode.elm},t.prototype._paintList=function(t,e,n){for(var i,r,o=t.length,a=[],s=0,l=0,h=0;h<o;h++){var c=t[h];if(!c.invisible){var u=c.__clipPaths,d=u&&u.length||0,p=r&&r.length||0,f=void 0;for(f=Math.max(d-1,p-1);f>=0&&(!u||!r||u[f]!==r[f]);f--);for(var g=p-1;g>f;g--)i=a[--s-1];for(var m=f+1;m<d;m++){var v={};mt(u[m],v,e);var y=k("g","clip-g-"+l++,v,[]);(i?i.children:n).push(y),a[s++]=y,i=y}r=u;var _=pt(c,e);_&&(i?i.children:n).push(_)}}},t.prototype.resize=function(t,e){var n=this._opts,i=this.root,r=this._viewport;if(null!=t&&(n.width=t),null!=e&&(n.height=e),i&&r&&(r.style.display="none",t=(0,Rt.YC)(i,0,n),e=(0,Rt.YC)(i,1,n),r.style.display=""),this._width!==t||this._height!==e){if(this._width=t,this._height=e,r){var o=r.style;o.width=t+"px",o.height=e+"px"}if((0,a.Pt)(this._backgroundColor))this.refresh();else{var s=this._svgDom;s&&(s.setAttribute("width",t),s.setAttribute("height",e));var l=this._bgVNode&&this._bgVNode.elm;l&&(l.setAttribute("width",t),l.setAttribute("height",e))}}},t.prototype.getWidth=function(){return this._width},t.prototype.getHeight=function(){return this._height},t.prototype.dispose=function(){this.root&&(this.root.innerHTML=""),this._svgDom=this._viewport=this.storage=this._oldVNode=this._bgVNode=this._mainVNode=null},t.prototype.clear=function(){this._svgDom&&(this._svgDom.innerHTML=null),this._oldVNode=null},t.prototype.toDataURL=function(t){var e=this.renderToString(),n="data:image/svg+xml;";return t?(e=(0,a.WG)(e))&&n+"base64,"+e:n+"charset=UTF-8,"+encodeURIComponent(e)},t}();const Ft=Nt;var Bt=n(528),zt=n(1577),Gt=n(1996),Vt=n(4926),jt=n(8829),Ht=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n.hasSymbolVisual=!0,n}return(0,Bt.C6)(e,t),e.prototype.getInitialData=function(t){return(0,zt.A)(null,this,{useEncodeDefaulter:!0})},e.prototype.getLegendIcon=function(t){var e=new jt.A,n=(0,Vt.v5)("line",0,t.itemHeight/2,t.itemWidth,0,t.lineStyle.stroke,!1);e.add(n),n.setStyle(t.lineStyle);var i=this.getData().getVisual("symbol"),r=this.getData().getVisual("symbolRotate"),o="none"===i?"circle":i,a=.8*t.itemHeight,s=(0,Vt.v5)(o,(t.itemWidth-a)/2,(t.itemHeight-a)/2,a,a,t.itemStyle.fill);e.add(s),s.setStyle(t.itemStyle);var l="inherit"===t.iconRotate?r:t.iconRotate||0;return s.rotation=l*Math.PI/180,s.setOrigin([t.itemWidth/2,t.itemHeight/2]),o.indexOf("empty")>-1&&(s.style.stroke=s.style.fill,s.style.fill="#fff",s.style.lineWidth=2),e},e.type="series.line",e.dependencies=["grid","polar"],e.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:4,symbolRotate:null,showSymbol:!0,showAllSymbol:"auto",connectNulls:!1,sampling:"none",animationEasing:"linear",progressive:0,hoverLayerThreshold:1/0,universalTransition:{divideShape:"clone"},triggerLineEvent:!1},e}(Gt.A);const Wt=Ht;var Ut=n(5203),qt=n(6004),Xt=n(6195),Yt=n(1632),Zt=n(6112);function $t(t,e){var n=t.mapDimensionsAll("defaultedLabel"),i=n.length;if(1===i){var r=(0,Zt.QE)(t,e,n[0]);return null!=r?r+"":null}if(i){for(var o=[],a=0;a<n.length;a++)o.push((0,Zt.QE)(t,e,n[a]));return o.join(" ")}}function Kt(t,e){var n=t.mapDimensionsAll("defaultedLabel");if(!(0,_.isArray)(e))return e+"";for(var i=[],r=0;r<n.length;r++){var o=t.getDimensionIndex(n[r]);o>=0&&i.push(e[o])}return i.join(" ")}var Jt=n(6547);function Qt(t,e){this.parent.drift(t,e)}const te=function(t){function e(e,n,i,r){var o=t.call(this)||this;return o.updateData(e,n,i,r),o}return(0,Bt.C6)(e,t),e.prototype._createSymbol=function(t,e,n,i,r){this.removeAll();var o=(0,Vt.v5)(t,-1,-1,2,2,null,r);o.attr({z2:100,culling:!0,scaleX:i[0]/2,scaleY:i[1]/2}),o.drift=Qt,this._symbolType=t,this.add(o)},e.prototype.stopSymbolAnimation=function(t){this.childAt(0).stopAnimation(null,t)},e.prototype.getSymbolType=function(){return this._symbolType},e.prototype.getSymbolPath=function(){return this.childAt(0)},e.prototype.highlight=function(){(0,Yt.HY)(this.childAt(0))},e.prototype.downplay=function(){(0,Yt.SD)(this.childAt(0))},e.prototype.setZ=function(t,e){var n=this.childAt(0);n.zlevel=t,n.z=e},e.prototype.setDraggable=function(t,e){var n=this.childAt(0);n.draggable=t,n.cursor=!e&&t?"move":n.cursor},e.prototype.updateData=function(t,n,i,r){this.silent=!1;var o=t.getItemVisual(n,"symbol")||"circle",a=t.hostModel,s=e.getSymbolSize(t,n),l=o!==this._symbolType,h=r&&r.disableAnimation;if(l){var c=t.getItemVisual(n,"symbolKeepAspect");this._createSymbol(o,t,n,s,c)}else{(d=this.childAt(0)).silent=!1;var u={scaleX:s[0]/2,scaleY:s[1]/2};h?d.attr(u):Ut.oi(d,u,a,n),(0,Ut.ap)(d)}if(this._updateCommon(t,n,s,i,r),l){var d=this.childAt(0);if(!h){u={scaleX:this._sizeX,scaleY:this._sizeY,style:{opacity:d.style.opacity}};d.scaleX=d.scaleY=0,d.style.opacity=0,Ut.LW(d,u,a,n)}}h&&this.childAt(0).stopAnimation("leave")},e.prototype._updateCommon=function(t,e,n,i,r){var o,a,s,h,c,u,d,p,f,g=this.childAt(0),m=t.hostModel;if(i&&(o=i.emphasisItemStyle,a=i.blurItemStyle,s=i.selectItemStyle,h=i.focus,c=i.blurScope,d=i.labelStatesModels,p=i.hoverScale,f=i.cursorStyle,u=i.emphasisDisabled),!i||t.hasItemOption){var v=i&&i.itemModel?i.itemModel:t.getItemModel(e),y=v.getModel("emphasis");o=y.getModel("itemStyle").getItemStyle(),s=v.getModel(["select","itemStyle"]).getItemStyle(),a=v.getModel(["blur","itemStyle"]).getItemStyle(),h=y.get("focus"),c=y.get("blurScope"),u=y.get("disabled"),d=(0,Jt.lx)(v),p=y.getShallow("scale"),f=v.getShallow("cursor")}var x=t.getItemVisual(e,"symbolRotate");g.attr("rotation",(x||0)*Math.PI/180||0);var b=(0,Vt.hV)(t.getItemVisual(e,"symbolOffset"),n);b&&(g.x=b[0],g.y=b[1]),f&&g.attr("cursor",f);var w=t.getItemVisual(e,"style"),S=w.fill;if(g instanceof l.Ay){var T=g.style;g.useStyle((0,_.extend)({image:T.image,x:T.x,y:T.y,width:T.width,height:T.height},w))}else g.__isEmptyBrush?g.useStyle((0,_.extend)({},w)):g.useStyle(w),g.style.decal=null,g.setColor(S,r&&r.symbolInnerColor),g.style.strokeNoScale=!0;var M=t.getItemVisual(e,"liftZ"),A=this._z2;null!=M?null==A&&(this._z2=g.z2,g.z2+=M):null!=A&&(g.z2=A,this._z2=null);var C=r&&r.useNameLabel;(0,Jt.qM)(g,d,{labelFetcher:m,labelDataIndex:e,defaultText:function(e){return C?t.getName(e):$t(t,e)},inheritColor:S,defaultOpacity:w.opacity}),this._sizeX=n[0]/2,this._sizeY=n[1]/2;var I=g.ensureState("emphasis");I.style=o,g.ensureState("select").style=s,g.ensureState("blur").style=a;var E=null==p||!0===p?Math.max(1.1,3/this._sizeY):isFinite(p)&&p>0?+p:1;I.scaleX=this._sizeX*E,I.scaleY=this._sizeY*E,this.setSymbolScale(1),(0,Yt.Lm)(this,h,c,u)},e.prototype.setSymbolScale=function(t){this.scaleX=this.scaleY=t},e.prototype.fadeOut=function(t,e,n){var i=this.childAt(0),r=(0,Xt.z)(this).dataIndex,o=n&&n.animation;if(this.silent=i.silent=!0,n&&n.fadeLabel){var a=i.getTextContent();a&&Ut.Nz(a,{style:{opacity:0}},e,{dataIndex:r,removeOpt:o,cb:function(){i.removeTextContent()}})}else i.removeTextContent();Ut.Nz(i,{style:{opacity:0},scaleX:0,scaleY:0},e,{dataIndex:r,cb:t,removeOpt:o})},e.getSymbolSize=function(t,e){return(0,Vt.xU)(t.getItemVisual(e,"symbolSize"))},e}(jt.A);function ee(t,e,n,i){return e&&!isNaN(e[0])&&!isNaN(e[1])&&!(i.isIgnore&&i.isIgnore(n))&&!(i.clipShape&&!i.clipShape.contain(e[0],e[1]))&&"none"!==t.getItemVisual(n,"symbol")}function ne(t){return null==t||(0,_.isObject)(t)||(t={isIgnore:t}),t||{}}function ie(t){var e=t.hostModel,n=e.getModel("emphasis");return{emphasisItemStyle:n.getModel("itemStyle").getItemStyle(),blurItemStyle:e.getModel(["blur","itemStyle"]).getItemStyle(),selectItemStyle:e.getModel(["select","itemStyle"]).getItemStyle(),focus:n.get("focus"),blurScope:n.get("blurScope"),emphasisDisabled:n.get("disabled"),hoverScale:n.get("scale"),labelStatesModels:(0,Jt.lx)(e),cursorStyle:e.get("cursor")}}const re=function(){function t(t){this.group=new jt.A,this._SymbolCtor=t||te}return t.prototype.updateData=function(t,e){this._progressiveEls=null,e=ne(e);var n=this.group,i=t.hostModel,r=this._data,o=this._SymbolCtor,a=e.disableAnimation,s=ie(t),l={disableAnimation:a},h=e.getSymbolPoint||function(e){return t.getItemLayout(e)};r||n.removeAll(),t.diff(r).add((function(i){var r=h(i);if(ee(t,r,i,e)){var a=new o(t,i,s,l);a.setPosition(r),t.setItemGraphicEl(i,a),n.add(a)}})).update((function(c,u){var d=r.getItemGraphicEl(u),p=h(c);if(ee(t,p,c,e)){var f=t.getItemVisual(c,"symbol")||"circle",g=d&&d.getSymbolType&&d.getSymbolType();if(!d||g&&g!==f)n.remove(d),(d=new o(t,c,s,l)).setPosition(p);else{d.updateData(t,c,s,l);var m={x:p[0],y:p[1]};a?d.attr(m):Ut.oi(d,m,i)}n.add(d),t.setItemGraphicEl(c,d)}else n.remove(d)})).remove((function(t){var e=r.getItemGraphicEl(t);e&&e.fadeOut((function(){n.remove(e)}),i)})).execute(),this._getSymbolPoint=h,this._data=t},t.prototype.updateLayout=function(){var t=this,e=this._data;e&&e.eachItemGraphicEl((function(e,n){var i=t._getSymbolPoint(n);e.setPosition(i),e.markRedraw()}))},t.prototype.incrementalPrepareUpdate=function(t){this._seriesScope=ie(t),this._data=null,this.group.removeAll()},t.prototype.incrementalUpdate=function(t,e,n){function i(t){t.isGroup||(t.incremental=!0,t.ensureState("emphasis").hoverLayer=!0)}this._progressiveEls=[],n=ne(n);for(var r=t.start;r<t.end;r++){var o=e.getItemLayout(r);if(ee(e,o,r,n)){var a=new this._SymbolCtor(e,r,this._seriesScope);a.traverse(i),a.setPosition(o),this.group.add(a),e.setItemGraphicEl(r,a),this._progressiveEls.push(a)}}},t.prototype.eachRendered=function(t){qt.traverseElements(this._progressiveEls||this.group,t)},t.prototype.remove=function(t){var e=this.group,n=this._data;n&&t?n.eachItemGraphicEl((function(t){t.fadeOut((function(){e.remove(t)}),n.hostModel)})):e.removeAll()},t}();var oe=n(933);function ae(t,e,n){var i=t.getBaseAxis(),r=t.getOtherAxis(i),o=function(t,e){var n=0,i=t.scale.getExtent();"start"===e?n=i[0]:"end"===e?n=i[1]:(0,_.isNumber)(e)&&!isNaN(e)?n=e:i[0]>0?n=i[0]:i[1]<0&&(n=i[1]);return n}(r,n),a=i.dim,s=r.dim,l=e.mapDimension(s),h=e.mapDimension(a),c="x"===s||"radius"===s?1:0,u=(0,_.map)(t.dimensions,(function(t){return e.mapDimension(t)})),d=!1,p=e.getCalculationInfo("stackResultDimension");return(0,oe.sJ)(e,u[0])&&(d=!0,u[0]=p),(0,oe.sJ)(e,u[1])&&(d=!0,u[1]=p),{dataDimsForPoint:u,valueStart:o,valueAxisDim:s,baseAxisDim:a,stacked:!!d,valueDim:l,baseDim:h,baseDataOffset:c,stackedOverDimension:e.getCalculationInfo("stackedOverDimension")}}function se(t,e,n,i){var r=NaN;t.stacked&&(r=n.get(n.getCalculationInfo("stackedOverDimension"),i)),isNaN(r)&&(r=t.valueStart);var o=t.baseDataOffset,a=[];return a[o]=n.get(t.baseDim,i),a[1-o]=r,e.dataToPoint(a)}var le=n(3180);var he=n(7789),ce=n(2577),ue=n(5162),de=Math.min,pe=Math.max;function fe(t,e){return isNaN(t)||isNaN(e)}function ge(t,e,n,i,r,o,a,s,l){for(var h,c,u,d,p,f,g=n,m=0;m<i;m++){var v=e[2*g],y=e[2*g+1];if(g>=r||g<0)break;if(fe(v,y)){if(l){g+=o;continue}break}if(g===n)t[o>0?"moveTo":"lineTo"](v,y),u=v,d=y;else{var _=v-h,x=y-c;if(_*_+x*x<.5){g+=o;continue}if(a>0){for(var b=g+o,w=e[2*b],S=e[2*b+1];w===v&&S===y&&m<i;)m++,g+=o,w=e[2*(b+=o)],S=e[2*b+1],_=(v=e[2*g])-h,x=(y=e[2*g+1])-c;var T=m+1;if(l)for(;fe(w,S)&&T<i;)T++,w=e[2*(b+=o)],S=e[2*b+1];var M=.5,A=0,C=0,I=void 0,E=void 0;if(T>=i||fe(w,S))p=v,f=y;else{A=w-h,C=S-c;var k=v-h,L=w-v,D=y-c,P=S-y,R=void 0,O=void 0;if("x"===s){var N=A>0?1:-1;p=v-N*(R=Math.abs(k))*a,f=y,I=v+N*(O=Math.abs(L))*a,E=y}else if("y"===s){var F=C>0?1:-1;p=v,f=y-F*(R=Math.abs(D))*a,I=v,E=y+F*(O=Math.abs(P))*a}else R=Math.sqrt(k*k+D*D),p=v-A*a*(1-(M=(O=Math.sqrt(L*L+P*P))/(O+R))),f=y-C*a*(1-M),E=y+C*a*M,I=de(I=v+A*a*M,pe(w,v)),E=de(E,pe(S,y)),I=pe(I,de(w,v)),f=y-(C=(E=pe(E,de(S,y)))-y)*R/O,p=de(p=v-(A=I-v)*R/O,pe(h,v)),f=de(f,pe(c,y)),I=v+(A=v-(p=pe(p,de(h,v))))*O/R,E=y+(C=y-(f=pe(f,de(c,y))))*O/R}t.bezierCurveTo(u,d,p,f,v,y),u=I,d=E}else t.lineTo(v,y)}h=v,c=y,g+=o}return m}var me=function(){this.smooth=0,this.smoothConstraint=!0},ve=function(t){function e(e){var n=t.call(this,e)||this;return n.type="ec-polyline",n}return(0,Bt.C6)(e,t),e.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},e.prototype.getDefaultShape=function(){return new me},e.prototype.buildPath=function(t,e){var n=e.points,i=0,r=n.length/2;if(e.connectNulls){for(;r>0&&fe(n[2*r-2],n[2*r-1]);r--);for(;i<r&&fe(n[2*i],n[2*i+1]);i++);}for(;i<r;)i+=ge(t,n,i,r,r,1,e.smooth,e.smoothMonotone,e.connectNulls)+1},e.prototype.getPointOn=function(t,e){this.path||(this.createPathProxy(),this.buildPath(this.path,this.shape));for(var n,i,r=this.path.data,o=N.A.CMD,a="x"===e,s=[],l=0;l<r.length;){var h=void 0,c=void 0,u=void 0,d=void 0,p=void 0,f=void 0,g=void 0;switch(r[l++]){case o.M:n=r[l++],i=r[l++];break;case o.L:if(h=r[l++],c=r[l++],(g=a?(t-n)/(h-n):(t-i)/(c-i))<=1&&g>=0){var m=a?(c-i)*g+i:(h-n)*g+n;return a?[t,m]:[m,t]}n=h,i=c;break;case o.C:h=r[l++],c=r[l++],u=r[l++],d=r[l++],p=r[l++],f=r[l++];var v=a?(0,ue._E)(n,h,u,p,t,s):(0,ue._E)(i,c,d,f,t,s);if(v>0)for(var y=0;y<v;y++){var _=s[y];if(_<=1&&_>=0){m=a?(0,ue.Yb)(i,c,d,f,_):(0,ue.Yb)(n,h,u,p,_);return a?[t,m]:[m,t]}}n=p,i=f}}},e}(s.Ay),ye=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return(0,Bt.C6)(e,t),e}(me),_e=function(t){function e(e){var n=t.call(this,e)||this;return n.type="ec-polygon",n}return(0,Bt.C6)(e,t),e.prototype.getDefaultShape=function(){return new ye},e.prototype.buildPath=function(t,e){var n=e.points,i=e.stackedOnPoints,r=0,o=n.length/2,a=e.smoothMonotone;if(e.connectNulls){for(;o>0&&fe(n[2*o-2],n[2*o-1]);o--);for(;r<o&&fe(n[2*r],n[2*r+1]);r++);}for(;r<o;){var s=ge(t,n,r,o,o,1,e.smooth,a,e.connectNulls);ge(t,i,r+s-1,s,o,-1,e.stackedOnSmooth,a,e.connectNulls),r+=s+1,t.closePath()}},e}(s.Ay),xe=n(6145),be=n(7551),we=n(7532),Se=n(8883);function Te(t,e,n,i,r){var o=t.getArea(),a=o.x,s=o.y,l=o.width,h=o.height,c=n.get(["lineStyle","width"])||2;a-=c/2,s-=c/2,l+=c,h+=c,l=Math.ceil(l),a!==Math.floor(a)&&(a=Math.floor(a),l++);var u=new be.A({shape:{x:a,y:s,width:l,height:h}});if(e){var d=t.getBaseAxis(),p=d.isHorizontal(),f=d.inverse;p?(f&&(u.shape.x+=l),u.shape.width=0):(f||(u.shape.y+=h),u.shape.height=0);var g=(0,_.isFunction)(r)?function(t){r(t,u)}:null;Ut.LW(u,{shape:{width:l,height:h,x:a,y:s}},n,null,i,g)}return u}function Me(t,e,n){var i=t.getArea(),r=(0,Se.LI)(i.r0,1),o=(0,Se.LI)(i.r,1),a=new we.A({shape:{cx:(0,Se.LI)(t.cx,1),cy:(0,Se.LI)(t.cy,1),r0:r,r:o,startAngle:i.startAngle,endAngle:i.endAngle,clockwise:i.clockwise}});e&&("angle"===t.getBaseAxis().dim?a.shape.endAngle=i.startAngle:a.shape.r=r,Ut.LW(a,{shape:{endAngle:i.endAngle,r:o}},n));return a}function Ae(t,e,n,i,r){return t?"polar"===t.type?Me(t,e,n):"cartesian2d"===t.type?Te(t,e,n,i,r):null:null}function Ce(t,e){return t.type===e}var Ie=n(5065);function Ee(t,e){if(t.length===e.length){for(var n=0;n<t.length;n++)if(t[n]!==e[n])return;return!0}}function ke(t){for(var e=1/0,n=1/0,i=-1/0,r=-1/0,o=0;o<t.length;){var a=t[o++],s=t[o++];isNaN(a)||(e=Math.min(a,e),i=Math.max(a,i)),isNaN(s)||(n=Math.min(s,n),r=Math.max(s,r))}return[[e,n],[i,r]]}function Le(t,e){var n=ke(t),i=n[0],r=n[1],o=ke(e),a=o[0],s=o[1];return Math.max(Math.abs(i[0]-a[0]),Math.abs(i[1]-a[1]),Math.abs(r[0]-s[0]),Math.abs(r[1]-s[1]))}function De(t){return _.isNumber(t)?t:t?.5:0}function Pe(t,e,n,i){var r=e.getBaseAxis(),o="x"===r.dim||"radius"===r.dim?0:1,a=[],s=0,l=[],h=[],c=[],u=[];if(i){for(s=0;s<t.length;s+=2)isNaN(t[s])||isNaN(t[s+1])||u.push(t[s],t[s+1]);t=u}for(s=0;s<t.length-2;s+=2)switch(c[0]=t[s+2],c[1]=t[s+3],h[0]=t[s],h[1]=t[s+1],a.push(h[0],h[1]),n){case"end":l[o]=c[o],l[1-o]=h[1-o],a.push(l[0],l[1]);break;case"middle":var d=(h[o]+c[o])/2,p=[];l[o]=p[o]=d,l[1-o]=h[1-o],p[1-o]=c[1-o],a.push(l[0],l[1]),a.push(p[0],p[1]);break;default:l[o]=h[o],l[1-o]=c[1-o],a.push(l[0],l[1])}return a.push(t[s++],t[s++]),a}function Re(t,e,n){var i=t.getVisual("visualMeta");if(i&&i.length&&t.count()&&"cartesian2d"===e.type){for(var r,o,a=i.length-1;a>=0;a--){var s=t.getDimensionInfo(i[a].dimension);if("x"===(r=s&&s.coordDim)||"y"===r){o=i[a];break}}if(o){var l=e.getAxis(r),h=_.map(o.stops,(function(t){return{coord:l.toGlobalCoord(l.dataToCoord(t.value)),color:t.color}})),c=h.length,u=o.outerColors.slice();c&&h[0].coord>h[c-1].coord&&(h.reverse(),u.reverse());var d=function(t,e){var n,i,r=[],o=t.length;function a(t,e,n){var i=t.coord,r=(n-i)/(e.coord-i);return{coord:n,color:(0,K.lerp)(r,[t.color,e.color])}}for(var s=0;s<o;s++){var l=t[s],h=l.coord;if(h<0)n=l;else{if(h>e){i?r.push(a(i,l,e)):n&&r.push(a(n,l,0),a(n,l,e));break}n&&(r.push(a(n,l,0)),n=null),r.push(l),i=l}}return r}(h,"x"===r?n.getWidth():n.getHeight()),p=d.length;if(!p&&c)return h[0].coord<0?u[1]?u[1]:h[c-1].color:u[0]?u[0]:h[0].color;var f=d[0].coord-10,g=d[p-1].coord+10,m=g-f;if(m<.001)return"transparent";_.each(d,(function(t){t.offset=(t.coord-f)/m})),d.push({offset:p?d[p-1].offset:.5,color:u[1]||"transparent"}),d.unshift({offset:p?d[0].offset:.5,color:u[0]||"transparent"});var v=new he.A(0,0,0,0,d,!0);return v[r]=f,v[r+"2"]=g,v}}}function Oe(t,e,n){var i=t.get("showAllSymbol"),r="auto"===i;if(!i||r){var o=n.getAxesByScale("ordinal")[0];if(o&&(!r||!function(t,e){var n=t.getExtent(),i=Math.abs(n[1]-n[0])/t.scale.count();isNaN(i)&&(i=0);for(var r=e.count(),o=Math.max(1,Math.round(r/5)),a=0;a<r;a+=o)if(1.5*te.getSymbolSize(e,a)[t.isHorizontal()?1:0]>i)return!1;return!0}(o,e))){var a=e.mapDimension(o.dim),s={};return _.each(o.getViewLabels(),(function(t){var e=o.scale.getRawOrdinalNumber(t.tickValue);s[e]=1})),function(t){return!s.hasOwnProperty(e.get(a,t))}}}}function Ne(t,e){return[t[2*e],t[2*e+1]]}function Fe(t){if(t.get(["endLabel","show"]))return!0;for(var e=0;e<Yt.BV.length;e++)if(t.get([Yt.BV[e],"endLabel","show"]))return!0;return!1}function Be(t,e,n,i){if(Ce(e,"cartesian2d")){var r=i.getModel("endLabel"),o=r.get("valueAnimation"),a=i.getData(),s={lastFrameIndex:0},l=Fe(i)?function(n,i){t._endLabelOnDuring(n,i,a,s,o,r,e)}:null,h=e.getBaseAxis().isHorizontal(),c=Te(e,n,i,(function(){var e=t._endLabel;e&&n&&null!=s.originalX&&e.attr({x:s.originalX,y:s.originalY})}),l);if(!i.get("clip",!0)){var u=c.shape,d=Math.max(u.width,u.height);h?(u.y-=d,u.height+=2*d):(u.x-=d,u.width+=2*d)}return l&&l(1,c),c}return Me(e,n,i)}var ze=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return(0,Bt.C6)(e,t),e.prototype.init=function(){var t=new jt.A,e=new re;this.group.add(e.group),this._symbolDraw=e,this._lineGroup=t},e.prototype.render=function(t,e,n){var i=this,r=t.coordinateSystem,o=this.group,a=t.getData(),s=t.getModel("lineStyle"),l=t.getModel("areaStyle"),h=a.getLayout("points")||[],c="polar"===r.type,u=this._coordSys,d=this._symbolDraw,p=this._polyline,f=this._polygon,g=this._lineGroup,m=!e.ssr&&t.get("animation"),v=!l.isEmpty(),y=l.get("origin"),x=ae(r,a,y),b=v&&function(t,e,n){if(!n.valueDim)return[];for(var i=e.count(),r=(0,le.J)(2*i),o=0;o<i;o++){var a=se(n,t,e,o);r[2*o]=a[0],r[2*o+1]=a[1]}return r}(r,a,x),w=t.get("showSymbol"),S=t.get("connectNulls"),T=w&&!c&&Oe(t,a,r),M=this._data;M&&M.eachItemGraphicEl((function(t,e){t.__temp&&(o.remove(t),M.setItemGraphicEl(e,null))})),w||d.remove(),o.add(g);var A,C=!c&&t.get("step");r&&r.getArea&&t.get("clip",!0)&&(null!=(A=r.getArea()).width?(A.x-=.1,A.y-=.1,A.width+=.2,A.height+=.2):A.r0&&(A.r0-=.5,A.r+=.5)),this._clipShapeForSymbol=A;var I=Re(a,r,n)||a.getVisual("style")[a.getVisual("drawType")];if(p&&u.type===r.type&&C===this._step){v&&!f?f=this._newPolygon(h,b):f&&!v&&(g.remove(f),f=this._polygon=null),c||this._initOrUpdateEndLabel(t,r,(0,Ie.he)(I));var E=g.getClipPath();if(E){var k=Be(this,r,!1,t);Ut.LW(E,{shape:k.shape},t)}else g.setClipPath(Be(this,r,!0,t));w&&d.updateData(a,{isIgnore:T,clipShape:A,disableAnimation:!0,getSymbolPoint:function(t){return[h[2*t],h[2*t+1]]}}),Ee(this._stackedOnPoints,b)&&Ee(this._points,h)||(m?this._doUpdateAnimation(a,b,r,n,C,y,S):(C&&(h=Pe(h,r,C,S),b&&(b=Pe(b,r,C,S))),p.setShape({points:h}),f&&f.setShape({points:h,stackedOnPoints:b})))}else w&&d.updateData(a,{isIgnore:T,clipShape:A,disableAnimation:!0,getSymbolPoint:function(t){return[h[2*t],h[2*t+1]]}}),m&&this._initSymbolLabelAnimation(a,r,A),C&&(h=Pe(h,r,C,S),b&&(b=Pe(b,r,C,S))),p=this._newPolyline(h),v?f=this._newPolygon(h,b):f&&(g.remove(f),f=this._polygon=null),c||this._initOrUpdateEndLabel(t,r,(0,Ie.he)(I)),g.setClipPath(Be(this,r,!0,t));var L=t.getModel("emphasis"),D=L.get("focus"),P=L.get("blurScope"),R=L.get("disabled");(p.useStyle(_.defaults(s.getLineStyle(),{fill:"none",stroke:I,lineJoin:"bevel"})),(0,Yt.Mx)(p,t,"lineStyle"),p.style.lineWidth>0&&"bolder"===t.get(["emphasis","lineStyle","width"]))&&(p.getState("emphasis").style.lineWidth=+p.style.lineWidth+1);(0,Xt.z)(p).seriesIndex=t.seriesIndex,(0,Yt.Lm)(p,D,P,R);var O=De(t.get("smooth")),N=t.get("smoothMonotone");if(p.setShape({smooth:O,smoothMonotone:N,connectNulls:S}),f){var F=a.getCalculationInfo("stackedOnSeries"),B=0;f.useStyle(_.defaults(l.getAreaStyle(),{fill:I,opacity:.7,lineJoin:"bevel",decal:a.getVisual("style").decal})),F&&(B=De(F.get("smooth"))),f.setShape({smooth:O,stackedOnSmooth:B,smoothMonotone:N,connectNulls:S}),(0,Yt.Mx)(f,t,"areaStyle"),(0,Xt.z)(f).seriesIndex=t.seriesIndex,(0,Yt.Lm)(f,D,P,R)}var z=function(t){i._changePolyState(t)};a.eachItemGraphicEl((function(t){t&&(t.onHoverStateChange=z)})),this._polyline.onHoverStateChange=z,this._data=a,this._coordSys=r,this._stackedOnPoints=b,this._points=h,this._step=C,this._valueOrigin=y,t.get("triggerLineEvent")&&(this.packEventData(t,p),f&&this.packEventData(t,f))},e.prototype.packEventData=function(t,e){(0,Xt.z)(e).eventData={componentType:"series",componentSubType:"line",componentIndex:t.componentIndex,seriesIndex:t.seriesIndex,seriesName:t.name,seriesType:"line"}},e.prototype.highlight=function(t,e,n,i){var r=t.getData(),o=ce.le(r,i);if(this._changePolyState("emphasis"),!(o instanceof Array)&&null!=o&&o>=0){var a=r.getLayout("points"),s=r.getItemGraphicEl(o);if(!s){var l=a[2*o],h=a[2*o+1];if(isNaN(l)||isNaN(h))return;if(this._clipShapeForSymbol&&!this._clipShapeForSymbol.contain(l,h))return;var c=t.get("zlevel")||0,u=t.get("z")||0;(s=new te(r,o)).x=l,s.y=h,s.setZ(c,u);var d=s.getSymbolPath().getTextContent();d&&(d.zlevel=c,d.z=u,d.z2=this._polyline.z2+1),s.__temp=!0,r.setItemGraphicEl(o,s),s.stopSymbolAnimation(!0),this.group.add(s)}s.highlight()}else xe.A.prototype.highlight.call(this,t,e,n,i)},e.prototype.downplay=function(t,e,n,i){var r=t.getData(),o=ce.le(r,i);if(this._changePolyState("normal"),null!=o&&o>=0){var a=r.getItemGraphicEl(o);a&&(a.__temp?(r.setItemGraphicEl(o,null),this.group.remove(a)):a.downplay())}else xe.A.prototype.downplay.call(this,t,e,n,i)},e.prototype._changePolyState=function(t){var e=this._polygon;(0,Yt.Pk)(this._polyline,t),e&&(0,Yt.Pk)(e,t)},e.prototype._newPolyline=function(t){var e=this._polyline;return e&&this._lineGroup.remove(e),e=new ve({shape:{points:t},segmentIgnoreThreshold:2,z2:10}),this._lineGroup.add(e),this._polyline=e,e},e.prototype._newPolygon=function(t,e){var n=this._polygon;return n&&this._lineGroup.remove(n),n=new _e({shape:{points:t,stackedOnPoints:e},segmentIgnoreThreshold:2}),this._lineGroup.add(n),this._polygon=n,n},e.prototype._initSymbolLabelAnimation=function(t,e,n){var i,r,o=e.getBaseAxis(),a=o.inverse;"cartesian2d"===e.type?(i=o.isHorizontal(),r=!1):"polar"===e.type&&(i="angle"===o.dim,r=!0);var s=t.hostModel,l=s.get("animationDuration");_.isFunction(l)&&(l=l(null));var h=s.get("animationDelay")||0,c=_.isFunction(h)?h(null):h;t.eachItemGraphicEl((function(t,o){var s=t;if(s){var u=[t.x,t.y],d=void 0,p=void 0,f=void 0;if(n)if(r){var g=n,m=e.pointToCoord(u);i?(d=g.startAngle,p=g.endAngle,f=-m[1]/180*Math.PI):(d=g.r0,p=g.r,f=m[0])}else{var v=n;i?(d=v.x,p=v.x+v.width,f=t.x):(d=v.y+v.height,p=v.y,f=t.y)}var y=p===d?0:(f-d)/(p-d);a&&(y=1-y);var x=_.isFunction(h)?h(o):l*y+c,b=s.getSymbolPath(),w=b.getTextContent();s.attr({scaleX:0,scaleY:0}),s.animateTo({scaleX:1,scaleY:1},{duration:200,setToFinal:!0,delay:x}),w&&w.animateFrom({style:{opacity:0}},{duration:300,delay:x}),b.disableLabelAnimation=!0}}))},e.prototype._initOrUpdateEndLabel=function(t,e,n){var i=t.getModel("endLabel");if(Fe(t)){var r=t.getData(),o=this._polyline,a=r.getLayout("points");if(!a)return o.removeTextContent(),void(this._endLabel=null);var s=this._endLabel;s||((s=this._endLabel=new Z.Ay({z2:200})).ignoreClip=!0,o.setTextContent(this._endLabel),o.disableLabelAnimation=!0);var l=function(t){for(var e,n,i=t.length/2;i>0&&(e=t[2*i-2],n=t[2*i-1],isNaN(e)||isNaN(n));i--);return i-1}(a);l>=0&&((0,Jt.qM)(o,(0,Jt.lx)(t,"endLabel"),{inheritColor:n,labelFetcher:t,labelDataIndex:l,defaultText:function(t,e,n){return null!=n?Kt(r,n):$t(r,t)},enableTextSetter:!0},function(t,e){var n=e.getBaseAxis(),i=n.isHorizontal(),r=n.inverse,o=i?r?"right":"left":"center",a=i?"middle":r?"top":"bottom";return{normal:{align:t.get("align")||o,verticalAlign:t.get("verticalAlign")||a}}}(i,e)),o.textConfig.position=null)}else this._endLabel&&(this._polyline.removeTextContent(),this._endLabel=null)},e.prototype._endLabelOnDuring=function(t,e,n,i,r,o,a){var s=this._endLabel,l=this._polyline;if(s){t<1&&null==i.originalX&&(i.originalX=s.x,i.originalY=s.y);var h=n.getLayout("points"),c=n.hostModel,u=c.get("connectNulls"),d=o.get("precision"),p=o.get("distance")||0,f=a.getBaseAxis(),g=f.isHorizontal(),m=f.inverse,v=e.shape,y=m?g?v.x:v.y+v.height:g?v.x+v.width:v.y,_=(g?p:0)*(m?-1:1),x=(g?0:-p)*(m?-1:1),b=g?"x":"y",w=function(t,e,n){for(var i,r,o=t.length/2,a="x"===n?0:1,s=0,l=-1,h=0;h<o;h++)if(r=t[2*h+a],!isNaN(r)&&!isNaN(t[2*h+1-a]))if(0!==h){if(i<=e&&r>=e||i>=e&&r<=e){l=h;break}s=h,i=r}else i=r;return{range:[s,l],t:(e-i)/(r-i)}}(h,y,b),S=w.range,T=S[1]-S[0],M=void 0;if(T>=1){if(T>1&&!u){var A=Ne(h,S[0]);s.attr({x:A[0]+_,y:A[1]+x}),r&&(M=c.getRawValue(S[0]))}else{(A=l.getPointOn(y,b))&&s.attr({x:A[0]+_,y:A[1]+x});var C=c.getRawValue(S[0]),I=c.getRawValue(S[1]);r&&(M=ce.Il(n,d,C,I,w.t))}i.lastFrameIndex=S[0]}else{var E=1===t||i.lastFrameIndex>0?S[0]:0;A=Ne(h,E);r&&(M=c.getRawValue(E)),s.attr({x:A[0]+_,y:A[1]+x})}if(r){var k=(0,Jt.Lu)(s);"function"==typeof k.setLabelText&&k.setLabelText(M)}}},e.prototype._doUpdateAnimation=function(t,e,n,i,r,o,a){var s=this._polyline,l=this._polygon,h=t.hostModel,c=function(t,e,n,i,r,o,a){for(var s=function(t,e){var n=[];return e.diff(t).add((function(t){n.push({cmd:"+",idx:t})})).update((function(t,e){n.push({cmd:"=",idx:e,idx1:t})})).remove((function(t){n.push({cmd:"-",idx:t})})).execute(),n}(t,e),l=[],h=[],c=[],u=[],d=[],p=[],f=[],g=ae(r,e,a),m=t.getLayout("points")||[],v=e.getLayout("points")||[],y=0;y<s.length;y++){var _=s[y],x=!0,b=void 0,w=void 0;switch(_.cmd){case"=":b=2*_.idx,w=2*_.idx1;var S=m[b],T=m[b+1],M=v[w],A=v[w+1];(isNaN(S)||isNaN(T))&&(S=M,T=A),l.push(S,T),h.push(M,A),c.push(n[b],n[b+1]),u.push(i[w],i[w+1]),f.push(e.getRawIndex(_.idx1));break;case"+":var C=_.idx,I=g.dataDimsForPoint,E=r.dataToPoint([e.get(I[0],C),e.get(I[1],C)]);w=2*C,l.push(E[0],E[1]),h.push(v[w],v[w+1]);var k=se(g,r,e,C);c.push(k[0],k[1]),u.push(i[w],i[w+1]),f.push(e.getRawIndex(C));break;case"-":x=!1}x&&(d.push(_),p.push(p.length))}p.sort((function(t,e){return f[t]-f[e]}));var L=l.length,D=(0,le.J)(L),P=(0,le.J)(L),R=(0,le.J)(L),O=(0,le.J)(L),N=[];for(y=0;y<p.length;y++){var F=p[y],B=2*y,z=2*F;D[B]=l[z],D[B+1]=l[z+1],P[B]=h[z],P[B+1]=h[z+1],R[B]=c[z],R[B+1]=c[z+1],O[B]=u[z],O[B+1]=u[z+1],N[y]=d[F]}return{current:D,next:P,stackedOnCurrent:R,stackedOnNext:O,status:N}}(this._data,t,this._stackedOnPoints,e,this._coordSys,0,this._valueOrigin),u=c.current,d=c.stackedOnCurrent,p=c.next,f=c.stackedOnNext;if(r&&(u=Pe(c.current,n,r,a),d=Pe(c.stackedOnCurrent,n,r,a),p=Pe(c.next,n,r,a),f=Pe(c.stackedOnNext,n,r,a)),Le(u,p)>3e3||l&&Le(d,f)>3e3)return s.stopAnimation(),s.setShape({points:p}),void(l&&(l.stopAnimation(),l.setShape({points:p,stackedOnPoints:f})));s.shape.__points=c.current,s.shape.points=u;var g={shape:{points:p}};c.current!==u&&(g.shape.__points=c.next),s.stopAnimation(),Ut.oi(s,g,h),l&&(l.setShape({points:u,stackedOnPoints:d}),l.stopAnimation(),Ut.oi(l,{shape:{stackedOnPoints:f}},h),s.shape.points!==l.shape.points&&(l.shape.points=s.shape.points));for(var m=[],v=c.status,y=0;y<v.length;y++){if("="===v[y].cmd){var _=t.getItemGraphicEl(v[y].idx1);_&&m.push({el:_,ptIdx:y})}}s.animators&&s.animators.length&&s.animators[0].during((function(){l&&l.dirtyShape();for(var t=s.shape.__points,e=0;e<m.length;e++){var n=m[e].el,i=2*m[e].ptIdx;n.x=t[i],n.y=t[i+1],n.markRedraw()}}))},e.prototype.remove=function(t){var e=this.group,n=this._data;this._lineGroup.removeAll(),this._symbolDraw.remove(!0),n&&n.eachItemGraphicEl((function(t,i){t.__temp&&(e.remove(t),n.setItemGraphicEl(i,null))})),this._polyline=this._polygon=this._coordSys=this._points=this._stackedOnPoints=this._endLabel=this._data=null},e.type="line",e}(xe.A);const Ge=ze;var Ve=n(9421);function je(t,e){return{seriesType:t,plan:(0,Ve.A)(),reset:function(t){var n=t.getData(),i=t.coordinateSystem,r=t.pipelineContext,o=e||r.large;if(i){var a=(0,_.map)(i.dimensions,(function(t){return n.mapDimension(t)})).slice(0,2),s=a.length,l=n.getCalculationInfo("stackResultDimension");(0,oe.sJ)(n,a[0])&&(a[0]=l),(0,oe.sJ)(n,a[1])&&(a[1]=l);var h=n.getStore(),c=n.getDimensionIndex(a[0]),u=n.getDimensionIndex(a[1]);return s&&{progress:function(t,e){for(var n=t.end-t.start,r=o&&(0,le.J)(n*s),a=[],l=[],d=t.start,p=0;d<t.end;d++){var f=void 0;if(1===s){var g=h.get(c,d);f=i.dataToPoint(g,null,l)}else a[0]=h.get(c,d),a[1]=h.get(u,d),f=i.dataToPoint(a,null,l);o?(r[p++]=f[0],r[p++]=f[1]):e.setItemLayout(d,f.slice())}o&&e.setLayout("points",r)}}}}}}var He={average:function(t){for(var e=0,n=0,i=0;i<t.length;i++)isNaN(t[i])||(e+=t[i],n++);return 0===n?NaN:e/n},sum:function(t){for(var e=0,n=0;n<t.length;n++)e+=t[n]||0;return e},max:function(t){for(var e=-1/0,n=0;n<t.length;n++)t[n]>e&&(e=t[n]);return isFinite(e)?e:NaN},min:function(t){for(var e=1/0,n=0;n<t.length;n++)t[n]<e&&(e=t[n]);return isFinite(e)?e:NaN},minmax:function(t){for(var e=-1/0,n=-1/0,i=0;i<t.length;i++){var r=t[i],o=Math.abs(r);o>e&&(e=o,n=r)}return isFinite(n)?n:NaN},nearest:function(t){return t[0]}},We=function(t){return Math.round(t.length/2)};function Ue(t){return{seriesType:t,reset:function(t,e,n){var i=t.getData(),r=t.get("sampling"),o=t.coordinateSystem,a=i.count();if(a>10&&"cartesian2d"===o.type&&r){var s=o.getBaseAxis(),l=o.getOtherAxis(s),h=s.getExtent(),c=n.getDevicePixelRatio(),u=Math.abs(h[1]-h[0])*(c||1),d=Math.round(a/u);if(isFinite(d)&&d>1){"lttb"===r&&t.setData(i.lttbDownSample(i.mapDimension(l.dim),1/d));var p=void 0;(0,_.isString)(r)?p=He[r]:(0,_.isFunction)(r)&&(p=r),p&&t.setData(i.downSample(i.mapDimension(l.dim),1/d,p,We))}}}}}var qe=n(6291),Xe=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return(0,Bt.C6)(e,t),e.prototype.getInitialData=function(t,e){return(0,zt.A)(null,this,{useEncodeDefaulter:!0})},e.prototype.getMarkerPosition=function(t,e,n){var i=this.coordinateSystem;if(i&&i.clampData){var r=i.clampData(t),o=i.dataToPoint(r);if(n)(0,_.each)(i.getAxes(),(function(t,n){if("category"===t.type&&null!=e){var i=t.getTicksCoords(),a=t.getTickModel().get("alignWithLabel"),s=r[n],l="x1"===e[n]||"y1"===e[n];if(l&&!a&&(s+=1),i.length<2)return;if(2===i.length)return void(o[n]=t.toGlobalCoord(t.getExtent()[l?1:0]));for(var h=void 0,c=void 0,u=1,d=0;d<i.length;d++){var p=i[d].coord,f=d===i.length-1?i[d-1].tickValue+u:i[d].tickValue;if(f===s){c=p;break}if(f<s)h=p;else if(null!=h&&f>s){c=(p+h)/2;break}1===d&&(u=f-i[0].tickValue)}null==c&&(h?h&&(c=i[i.length-1].coord):c=i[0].coord),o[n]=t.toGlobalCoord(c)}}));else{var a=this.getData(),s=a.getLayout("offset"),l=a.getLayout("size"),h=i.getBaseAxis().isHorizontal()?0:1;o[h]+=s+l/2}return o}return[NaN,NaN]},e.type="series.__base_bar__",e.defaultOption={z:2,coordinateSystem:"cartesian2d",legendHoverLink:!0,barMinHeight:0,barMinAngle:0,large:!1,largeThreshold:400,progressive:3e3,progressiveChunkMode:"mod"},e}(Gt.A);Gt.A.registerClass(Xe);const Ye=Xe;var Ze=n(1987);const $e=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return(0,Bt.C6)(e,t),e.prototype.getInitialData=function(){return(0,zt.A)(null,this,{useEncodeDefaulter:!0,createInvertedIndices:!!this.get("realtimeSort",!0)||null})},e.prototype.getProgressive=function(){return!!this.get("large")&&this.get("progressive")},e.prototype.getProgressiveThreshold=function(){var t=this.get("progressiveThreshold"),e=this.get("largeThreshold");return e>t&&(t=e),t},e.prototype.brushSelector=function(t,e,n){return n.rect(e.getItemLayout(t))},e.type="series.bar",e.dependencies=["grid","polar"],e.defaultOption=(0,Ze.G_)(Ye.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:"#212121"}},realtimeSort:!1}),e}(Ye);var Ke=n(3490),Je=function(){this.cx=0,this.cy=0,this.r0=0,this.r=0,this.startAngle=0,this.endAngle=2*Math.PI,this.clockwise=!0},Qe=function(t){function e(e){var n=t.call(this,e)||this;return n.type="sausage",n}return(0,Bt.C6)(e,t),e.prototype.getDefaultShape=function(){return new Je},e.prototype.buildPath=function(t,e){var n=e.cx,i=e.cy,r=Math.max(e.r0||0,0),o=Math.max(e.r,0),a=.5*(o-r),s=r+a,l=e.startAngle,h=e.endAngle,c=e.clockwise,u=2*Math.PI,d=c?h-l<u:l-h<u;d||(l=h-(c?u:-u));var p=Math.cos(l),f=Math.sin(l),g=Math.cos(h),m=Math.sin(h);d?(t.moveTo(p*r+n,f*r+i),t.arc(p*s+n,f*s+i,a,-Math.PI+l,l,!c)):t.moveTo(p*o+n,f*o+i),t.arc(n,i,o,l,h,!c),t.arc(g*s+n,m*s+i,a,h-2*Math.PI,h-Math.PI,!c),0!==r&&t.arc(n,i,r,h,l,c)},e}(s.Ay);const tn=Qe;function en(t,e,n){return e*Math.sin(t)*(n?-1:1)}function nn(t,e,n){return e*Math.cos(t)*(n?1:-1)}function rn(t,e,n){var i=t.get("borderRadius");if(null==i)return n?{cornerRadius:0}:null;(0,_.isArray)(i)||(i=[i,i,i,i]);var r=Math.abs(e.r||0-e.r0||0);return{cornerRadius:(0,_.map)(i,(function(t){return(0,h.lo)(t,r)}))}}var on=Math.max,an=Math.min;var sn=function(t){function e(){var n=t.call(this)||this;return n.type=e.type,n._isFirstFrame=!0,n}return(0,Bt.C6)(e,t),e.prototype.render=function(t,e,n,i){this._model=t,this._removeOnRenderedListener(n),this._updateDrawMode(t);var r=t.get("coordinateSystem");("cartesian2d"===r||"polar"===r)&&(this._progressiveEls=null,this._isLargeDraw?this._renderLarge(t,e,n):this._renderNormal(t,e,n,i))},e.prototype.incrementalPrepareRender=function(t){this._clear(),this._updateDrawMode(t),this._updateLargeClip(t)},e.prototype.incrementalRender=function(t,e){this._progressiveEls=[],this._incrementalRenderLarge(t,e)},e.prototype.eachRendered=function(t){(0,qt.traverseElements)(this._progressiveEls||this.group,t)},e.prototype._updateDrawMode=function(t){var e=t.pipelineContext.large;null!=this._isLargeDraw&&e===this._isLargeDraw||(this._isLargeDraw=e,this._clear())},e.prototype._renderNormal=function(t,e,n,i){var r,o=this.group,a=t.getData(),s=this._data,l=t.coordinateSystem,h=l.getBaseAxis();"cartesian2d"===l.type?r=h.isHorizontal():"polar"===l.type&&(r="angle"===h.dim);var c=t.isAnimationEnabled()?t:null,u=function(t,e){var n=t.get("realtimeSort",!0),i=e.getBaseAxis();0;if(n&&"category"===i.type&&"cartesian2d"===e.type)return{baseAxis:i,otherAxis:e.getOtherAxis(i)}}(t,l);u&&this._enableRealtimeSort(u,a,n);var d=t.get("clip",!0)||u,p=function(t,e){var n=t.getArea&&t.getArea();if(Ce(t,"cartesian2d")){var i=t.getBaseAxis();if("category"!==i.type||!i.onBand){var r=e.getLayout("bandWidth");i.isHorizontal()?(n.x-=r,n.width+=2*r):(n.y-=r,n.height+=2*r)}}return n}(l,a);o.removeClipPath();var f=t.get("roundCap",!0),g=t.get("showBackground",!0),m=t.getModel("backgroundStyle"),v=m.get("borderRadius")||0,y=[],_=this._backgroundEls,x=i&&i.isInitSort,b=i&&"changeAxisOrder"===i.type;function w(t){var e=gn[l.type](a,t),n=function(t,e,n){var i="polar"===t.type?we.A:be.A;return new i({shape:wn(e,n,t),silent:!0,z2:0})}(l,r,e);return n.useStyle(m.getItemStyle()),"cartesian2d"===l.type?n.setShape("r",v):n.setShape("cornerRadius",v),y[t]=n,n}a.diff(s).add((function(e){var n=a.getItemModel(e),i=gn[l.type](a,e,n);if(g&&w(e),a.hasValue(e)&&fn[l.type](i)){var s=!1;d&&(s=ln[l.type](p,i));var m=hn[l.type](t,a,e,i,r,c,h.model,!1,f);u&&(m.forceLabelAnimation=!0),vn(m,a,e,n,i,t,r,"polar"===l.type),x?m.attr({shape:i}):u?cn(u,c,m,i,e,r,!1,!1):(0,Ut.LW)(m,{shape:i},t,e),a.setItemGraphicEl(e,m),o.add(m),m.ignore=s}})).update((function(e,n){var i=a.getItemModel(e),S=gn[l.type](a,e,i);if(g){var T=void 0;0===_.length?T=w(n):((T=_[n]).useStyle(m.getItemStyle()),"cartesian2d"===l.type?T.setShape("r",v):T.setShape("cornerRadius",v),y[e]=T);var M=gn[l.type](a,e),A=wn(r,M,l);(0,Ut.oi)(T,{shape:A},c,e)}var C=s.getItemGraphicEl(n);if(a.hasValue(e)&&fn[l.type](S)){var I=!1;if(d&&(I=ln[l.type](p,S))&&o.remove(C),C?(0,Ut.ap)(C):C=hn[l.type](t,a,e,S,r,c,h.model,!!C,f),u&&(C.forceLabelAnimation=!0),b){var E=C.getTextContent();if(E){var k=(0,Jt.Lu)(E);null!=k.prevValue&&(k.prevValue=k.value)}}else vn(C,a,e,i,S,t,r,"polar"===l.type);x?C.attr({shape:S}):u?cn(u,c,C,S,e,r,!0,b):(0,Ut.oi)(C,{shape:S},t,e,null),a.setItemGraphicEl(e,C),C.ignore=I,o.add(C)}else o.remove(C)})).remove((function(e){var n=s.getItemGraphicEl(e);n&&(0,Ut.t5)(n,t,e)})).execute();var S=this._backgroundGroup||(this._backgroundGroup=new jt.A);S.removeAll();for(var T=0;T<y.length;++T)S.add(y[T]);o.add(S),this._backgroundEls=y,this._data=a},e.prototype._renderLarge=function(t,e,n){this._clear(),xn(t,this.group),this._updateLargeClip(t)},e.prototype._incrementalRenderLarge=function(t,e){this._removeBackground(),xn(e,this.group,this._progressiveEls,!0)},e.prototype._updateLargeClip=function(t){var e=t.get("clip",!0)&&Ae(t.coordinateSystem,!1,t),n=this.group;e?n.setClipPath(e):n.removeClipPath()},e.prototype._enableRealtimeSort=function(t,e,n){var i=this;if(e.count()){var r=t.baseAxis;if(this._isFirstFrame)this._dispatchInitSort(e,t,n),this._isFirstFrame=!1;else{var o=function(t){var n=e.getItemGraphicEl(t),i=n&&n.shape;return i&&Math.abs(r.isHorizontal()?i.height:i.width)||0};this._onRendered=function(){i._updateSortWithinSameData(e,o,r,n)},n.getZr().on("rendered",this._onRendered)}}},e.prototype._dataSort=function(t,e,n){var i=[];return t.each(t.mapDimension(e.dim),(function(t,e){var r=n(e);r=null==r?NaN:r,i.push({dataIndex:e,mappedValue:r,ordinalNumber:t})})),i.sort((function(t,e){return e.mappedValue-t.mappedValue})),{ordinalNumbers:(0,_.map)(i,(function(t){return t.ordinalNumber}))}},e.prototype._isOrderChangedWithinSameData=function(t,e,n){for(var i=n.scale,r=t.mapDimension(n.dim),o=Number.MAX_VALUE,a=0,s=i.getOrdinalMeta().categories.length;a<s;++a){var l=t.rawIndexOf(r,i.getRawOrdinalNumber(a)),h=l<0?Number.MIN_VALUE:e(t.indexOfRawIndex(l));if(h>o)return!0;o=h}return!1},e.prototype._isOrderDifferentInView=function(t,e){for(var n=e.scale,i=n.getExtent(),r=Math.max(0,i[0]),o=Math.min(i[1],n.getOrdinalMeta().categories.length-1);r<=o;++r)if(t.ordinalNumbers[r]!==n.getRawOrdinalNumber(r))return!0},e.prototype._updateSortWithinSameData=function(t,e,n,i){if(this._isOrderChangedWithinSameData(t,e,n)){var r=this._dataSort(t,n,e);this._isOrderDifferentInView(r,n)&&(this._removeOnRenderedListener(i),i.dispatchAction({type:"changeAxisOrder",componentType:n.dim+"Axis",axisId:n.index,sortInfo:r}))}},e.prototype._dispatchInitSort=function(t,e,n){var i=e.baseAxis,r=this._dataSort(t,i,(function(n){return t.get(t.mapDimension(e.otherAxis.dim),n)}));n.dispatchAction({type:"changeAxisOrder",componentType:i.dim+"Axis",isInitSort:!0,axisId:i.index,sortInfo:r})},e.prototype.remove=function(t,e){this._clear(this._model),this._removeOnRenderedListener(e)},e.prototype.dispose=function(t,e){this._removeOnRenderedListener(e)},e.prototype._removeOnRenderedListener=function(t){this._onRendered&&(t.getZr().off("rendered",this._onRendered),this._onRendered=null)},e.prototype._clear=function(t){var e=this.group,n=this._data;t&&t.isAnimationEnabled()&&n&&!this._isLargeDraw?(this._removeBackground(),this._backgroundEls=[],n.eachItemGraphicEl((function(e){(0,Ut.t5)(e,t,(0,Xt.z)(e).dataIndex)}))):e.removeAll(),this._data=null,this._isFirstFrame=!0},e.prototype._removeBackground=function(){this.group.remove(this._backgroundGroup),this._backgroundGroup=null},e.type="bar",e}(xe.A),ln={cartesian2d:function(t,e){var n=e.width<0?-1:1,i=e.height<0?-1:1;n<0&&(e.x+=e.width,e.width=-e.width),i<0&&(e.y+=e.height,e.height=-e.height);var r=t.x+t.width,o=t.y+t.height,a=on(e.x,t.x),s=an(e.x+e.width,r),l=on(e.y,t.y),h=an(e.y+e.height,o),c=s<a,u=h<l;return e.x=c&&a>r?s:a,e.y=u&&l>o?h:l,e.width=c?0:s-a,e.height=u?0:h-l,n<0&&(e.x+=e.width,e.width=-e.width),i<0&&(e.y+=e.height,e.height=-e.height),c||u},polar:function(t,e){var n=e.r0<=e.r?1:-1;if(n<0){var i=e.r;e.r=e.r0,e.r0=i}var r=an(e.r,t.r),o=on(e.r0,t.r0);e.r=r,e.r0=o;var a=r-o<0;if(n<0){i=e.r;e.r=e.r0,e.r0=i}return a}},hn={cartesian2d:function(t,e,n,i,r,o,a,s,l){var h=new be.A({shape:(0,_.extend)({},i),z2:1});(h.__dataIndex=n,h.name="item",o)&&(h.shape[r?"height":"width"]=0);return h},polar:function(t,e,n,i,r,o,a,s,l){var c=!r&&l?tn:we.A,u=new c({shape:i,z2:1});u.name="item";var d,p,f=mn(r);if(u.calculateTextPosition=(d=f,p=({isRoundCap:c===tn}||{}).isRoundCap,function(t,e,n){var i=e.position;if(!i||i instanceof Array)return(0,h.X4)(t,e,n);var r=d(i),o=null!=e.distance?e.distance:5,a=this.shape,s=a.cx,l=a.cy,c=a.r,u=a.r0,f=(c+u)/2,g=a.startAngle,m=a.endAngle,v=(g+m)/2,y=p?Math.abs(c-u)/2:0,_=Math.cos,x=Math.sin,b=s+c*_(g),w=l+c*x(g),S="left",T="top";switch(r){case"startArc":b=s+(u-o)*_(v),w=l+(u-o)*x(v),S="center",T="top";break;case"insideStartArc":b=s+(u+o)*_(v),w=l+(u+o)*x(v),S="center",T="bottom";break;case"startAngle":b=s+f*_(g)+en(g,o+y,!1),w=l+f*x(g)+nn(g,o+y,!1),S="right",T="middle";break;case"insideStartAngle":b=s+f*_(g)+en(g,-o+y,!1),w=l+f*x(g)+nn(g,-o+y,!1),S="left",T="middle";break;case"middle":b=s+f*_(v),w=l+f*x(v),S="center",T="middle";break;case"endArc":b=s+(c+o)*_(v),w=l+(c+o)*x(v),S="center",T="bottom";break;case"insideEndArc":b=s+(c-o)*_(v),w=l+(c-o)*x(v),S="center",T="top";break;case"endAngle":b=s+f*_(m)+en(m,o+y,!0),w=l+f*x(m)+nn(m,o+y,!0),S="left",T="middle";break;case"insideEndAngle":b=s+f*_(m)+en(m,-o+y,!0),w=l+f*x(m)+nn(m,-o+y,!0),S="right",T="middle";break;default:return(0,h.X4)(t,e,n)}return(t=t||{}).x=b,t.y=w,t.align=S,t.verticalAlign=T,t}),o){var g=r?"r":"endAngle",m={};u.shape[g]=r?i.r0:i.startAngle,m[g]=i[g],(s?Ut.oi:Ut.LW)(u,{shape:m},o)}return u}};function cn(t,e,n,i,r,o,a,s){var l,h;o?(h={x:i.x,width:i.width},l={y:i.y,height:i.height}):(h={y:i.y,height:i.height},l={x:i.x,width:i.width}),s||(a?Ut.oi:Ut.LW)(n,{shape:l},e,r,null);var c=e?t.baseAxis.model:null;(a?Ut.oi:Ut.LW)(n,{shape:h},c,r)}function un(t,e){for(var n=0;n<e.length;n++)if(!isFinite(t[e[n]]))return!0;return!1}var dn=["x","y","width","height"],pn=["cx","cy","r","startAngle","endAngle"],fn={cartesian2d:function(t){return!un(t,dn)},polar:function(t){return!un(t,pn)}},gn={cartesian2d:function(t,e,n){var i=t.getItemLayout(e),r=n?function(t,e){var n=t.get(["itemStyle","borderColor"]);if(!n||"none"===n)return 0;var i=t.get(["itemStyle","borderWidth"])||0,r=isNaN(e.width)?Number.MAX_VALUE:Math.abs(e.width),o=isNaN(e.height)?Number.MAX_VALUE:Math.abs(e.height);return Math.min(i,r,o)}(n,i):0,o=i.width>0?1:-1,a=i.height>0?1:-1;return{x:i.x+o*r/2,y:i.y+a*r/2,width:i.width-o*r,height:i.height-a*r}},polar:function(t,e,n){var i=t.getItemLayout(e);return{cx:i.cx,cy:i.cy,r0:i.r0,r:i.r,startAngle:i.startAngle,endAngle:i.endAngle,clockwise:i.clockwise}}};function mn(t){return function(t){var e=t?"Arc":"Angle";return function(t){switch(t){case"start":case"insideStart":case"end":case"insideEnd":return t+e;default:return t}}}(t)}function vn(t,e,n,i,r,o,a,s){var l=e.getItemVisual(n,"style");if(s){if(!o.get("roundCap")){var h=t.shape,c=rn(i.getModel("itemStyle"),h,!0);(0,_.extend)(h,c),t.setShape(h)}}else{var u=i.get(["itemStyle","borderRadius"])||0;t.setShape("r",u)}t.useStyle(l);var d=i.getShallow("cursor");d&&t.attr("cursor",d);var p=s?a?r.r>=r.r0?"endArc":"startArc":r.endAngle>=r.startAngle?"endAngle":"startAngle":a?r.height>=0?"bottom":"top":r.width>=0?"right":"left",f=(0,Jt.lx)(i);(0,Jt.qM)(t,f,{labelFetcher:o,labelDataIndex:n,defaultText:$t(o.getData(),n),inheritColor:l.fill,defaultOpacity:l.opacity,defaultOutsidePosition:p});var g=t.getTextContent();if(s&&g){var m=i.get(["label","position"]);t.textConfig.inside="middle"===m||null,function(t,e,n,i){if((0,_.isNumber)(i))t.setTextConfig({rotation:i});else if((0,_.isArray)(e))t.setTextConfig({rotation:0});else{var r,o=t.shape,a=o.clockwise?o.startAngle:o.endAngle,s=o.clockwise?o.endAngle:o.startAngle,l=(a+s)/2,h=n(e);switch(h){case"startArc":case"insideStartArc":case"middle":case"insideEndArc":case"endArc":r=l;break;case"startAngle":case"insideStartAngle":r=a;break;case"endAngle":case"insideEndAngle":r=s;break;default:return void t.setTextConfig({rotation:0})}var c=1.5*Math.PI-r;"middle"===h&&c>Math.PI/2&&c<1.5*Math.PI&&(c-=Math.PI),t.setTextConfig({rotation:c})}}(t,"outside"===m?p:m,mn(a),i.get(["label","rotate"]))}(0,Jt.Oh)(g,f,o.getRawValue(n),(function(t){return Kt(e,t)}));var v=i.getModel(["emphasis"]);(0,Yt.Lm)(t,v.get("focus"),v.get("blurScope"),v.get("disabled")),(0,Yt.Mx)(t,i),function(t){return null!=t.startAngle&&null!=t.endAngle&&t.startAngle===t.endAngle}(r)&&(t.style.fill="none",t.style.stroke="none",(0,_.each)(t.states,(function(t){t.style&&(t.style.fill=t.style.stroke="none")})))}var yn=function(){},_n=function(t){function e(e){var n=t.call(this,e)||this;return n.type="largeBar",n}return(0,Bt.C6)(e,t),e.prototype.getDefaultShape=function(){return new yn},e.prototype.buildPath=function(t,e){for(var n=e.points,i=this.baseDimIdx,r=1-this.baseDimIdx,o=[],a=[],s=this.barWidth,l=0;l<n.length;l+=3)a[i]=s,a[r]=n[l+2],o[i]=n[l+i],o[r]=n[l+r],t.rect(o[0],o[1],a[0],a[1])},e}(s.Ay);function xn(t,e,n,i){var r=t.getData(),o=r.getLayout("valueAxisHorizontal")?1:0,a=r.getLayout("largeDataIndices"),s=r.getLayout("size"),l=t.getModel("backgroundStyle"),h=r.getLayout("largeBackgroundPoints");if(h){var c=new _n({shape:{points:h},incremental:!!i,silent:!0,z2:0});c.baseDimIdx=o,c.largeDataIndices=a,c.barWidth=s,c.useStyle(l.getItemStyle()),e.add(c),n&&n.push(c)}var u=new _n({shape:{points:r.getLayout("largePoints")},incremental:!!i,ignoreCoarsePointer:!0,z2:1});u.baseDimIdx=o,u.largeDataIndices=a,u.barWidth=s,e.add(u),u.useStyle(r.getVisual("style")),(0,Xt.z)(u).seriesIndex=t.seriesIndex,t.get("silent")||(u.on("mousedown",bn),u.on("mousemove",bn)),n&&n.push(u)}var bn=(0,Ke.nF)((function(t){var e=function(t,e,n){for(var i=t.baseDimIdx,r=1-i,o=t.shape.points,a=t.largeDataIndices,s=[],l=[],h=t.barWidth,c=0,u=o.length/3;c<u;c++){var d=3*c;if(l[i]=h,l[r]=o[d+2],s[i]=o[d+i],s[r]=o[d+r],l[r]<0&&(s[r]+=l[r],l[r]=-l[r]),e>=s[0]&&e<=s[0]+l[0]&&n>=s[1]&&n<=s[1]+l[1])return a[c]}return-1}(this,t.offsetX,t.offsetY);(0,Xt.z)(this).dataIndex=e>=0?e:null}),30,!1);function wn(t,e,n){if(Ce(n,"cartesian2d")){var i=e,r=n.getArea();return{x:t?i.x:r.x,y:t?r.y:i.y,width:t?i.width:r.width,height:t?r.height:i.height}}var o=e;return{cx:(r=n.getArea()).cx,cy:r.cy,r0:t?r.r0:o.r0,r:t?r.r:o.r,startAngle:t?o.startAngle:0,endAngle:t?o.endAngle:2*Math.PI}}const Sn=sn;var Tn=n(6093),Mn=n(5872),An=2*Math.PI,Cn=Math.PI/180;function In(t,e){return Mn.dV(t.getBoxLayoutParams(),{width:e.getWidth(),height:e.getHeight()})}function En(t,e){var n=In(t,e),i=t.get("center"),r=t.get("radius");_.isArray(r)||(r=[0,r]);var o,a,s=(0,Se.lo)(n.width,e.getWidth()),l=(0,Se.lo)(n.height,e.getHeight()),h=Math.min(s,l),c=(0,Se.lo)(r[0],h/2),u=(0,Se.lo)(r[1],h/2),d=t.coordinateSystem;if(d){var p=d.dataToPoint(i);o=p[0]||0,a=p[1]||0}else _.isArray(i)||(i=[i,i]),o=(0,Se.lo)(i[0],s)+n.x,a=(0,Se.lo)(i[1],l)+n.y;return{cx:o,cy:a,r0:c,r:u}}function kn(t,e,n){e.eachSeriesByType(t,(function(t){var e=t.getData(),i=e.mapDimension("value"),r=In(t,n),o=En(t,n),a=o.cx,s=o.cy,l=o.r,h=o.r0,c=-t.get("startAngle")*Cn,u=t.get("endAngle"),d=t.get("padAngle")*Cn;u="auto"===u?c-An:-u*Cn;var p=t.get("minAngle")*Cn+d,f=0;e.each(i,(function(t){!isNaN(t)&&f++}));var g=e.getSum(i),m=Math.PI/(g||f)*2,v=t.get("clockwise"),y=t.get("roseType"),_=t.get("stillShowZeroSum"),x=e.getDataExtent(i);x[0]=0;var b=v?1:-1,w=[c,u],S=b*d/2;(0,N.q)(w,!v),c=w[0],u=w[1];var T=Ln(t);T.startAngle=c,T.endAngle=u,T.clockwise=v;var M=Math.abs(u-c),A=M,C=0,I=c;if(e.setLayout({viewRect:r,r:l}),e.each(i,(function(t,n){var i;if(isNaN(t))e.setItemLayout(n,{angle:NaN,startAngle:NaN,endAngle:NaN,clockwise:v,cx:a,cy:s,r0:h,r:y?NaN:l});else{(i="area"!==y?0===g&&_?m:t*m:M/f)<p?(i=p,A-=p):C+=t;var r=I+b*i,o=0,c=0;d>i?c=o=I+b*i/2:(o=I+S,c=r-S),e.setItemLayout(n,{angle:i,startAngle:o,endAngle:c,clockwise:v,cx:a,cy:s,r0:h,r:y?(0,Se.Cb)(t,x,[h,l]):l}),I=r}})),A<An&&f)if(A<=.001){var E=M/f;e.each(i,(function(t,n){if(!isNaN(t)){var i=e.getItemLayout(n);i.angle=E;var r=0,o=0;E<d?o=r=c+b*(n+.5)*E:(r=c+b*n*E+S,o=c+b*(n+1)*E-S),i.startAngle=r,i.endAngle=o}}))}else m=A/C,I=c,e.each(i,(function(t,n){if(!isNaN(t)){var i=e.getItemLayout(n),r=i.angle===p?p:t*m,o=0,a=0;r<d?a=o=I+b*r/2:(o=I+S,a=I+b*r-S),i.startAngle=o,i.endAngle=a,I+=b*r}}))}))}var Ln=(0,ce.$r)();function Dn(t){return{seriesType:t,reset:function(t,e){var n=e.findComponents({mainType:"legend"});if(n&&n.length){var i=t.getData();i.filterSelf((function(t){for(var e=i.getName(t),r=0;r<n.length;r++)if(!n[r].isSelected(e))return!1;return!0}))}}}}var Pn=n(1106),Rn=n(4063),On=n(4250),Nn=n(658),Fn=Math.PI/180;function Bn(t,e,n,i,r,o,a,s,l,h){if(!(t.length<2)){for(var c=t.length,u=0;u<c;u++)if("outer"===t[u].position&&"labelLine"===t[u].labelAlignTo){var d=t[u].label.x-h;t[u].linePoints[1][0]+=d,t[u].label.x=h}(0,Nn.Xe)(t,l,l+a)&&function(t){for(var o={list:[],maxY:0},a={list:[],maxY:0},s=0;s<t.length;s++)if("none"===t[s].labelAlignTo){var l=t[s],h=l.label.y>n?a:o,c=Math.abs(l.label.y-n);if(c>=h.maxY){var u=l.label.x-e-l.len2*r,d=i+l.len,f=Math.abs(u)<d?Math.sqrt(c*c/(1-u*u/d/d)):d;h.rB=f,h.maxY=c}h.list.push(l)}p(o),p(a)}(t)}function p(t){for(var o=t.rB,a=o*o,s=0;s<t.list.length;s++){var l=t.list[s],h=Math.abs(l.label.y-n),c=i+l.len,u=c*c,d=Math.sqrt((1-Math.abs(h*h/a))*u),p=e+(d+l.len2)*r,f=p-l.label.x;zn(l,l.targetTextWidth-f*r,!0),l.label.x=p}}}function zn(t,e,n){if(void 0===n&&(n=!1),null==t.labelStyleWidth){var i=t.label,r=i.style,o=t.rect,a=r.backgroundColor,s=r.padding,l=s?s[1]+s[3]:0,h=r.overflow,c=o.width+(a?0:l);if(e<c||n){var u=o.height;if(h&&h.match("break")){i.setStyle("backgroundColor",null),i.setStyle("width",e-l);var d=i.getBoundingRect();i.setStyle("width",Math.ceil(d.width)),i.setStyle("backgroundColor",a)}else{var p=e-l,f=e<c?p:n?p>t.unconstrainedWidth?null:p:null;i.setStyle("width",f)}var g=i.getBoundingRect();o.width=g.width;var m=(i.style.margin||0)+2.1;o.height=g.height+m,o.y-=(o.height-u)/2}}}function Gn(t){return"center"===t.position}function Vn(t){var e,n,i=t.getData(),r=[],o=!1,a=(t.get("minShowLabelAngle")||0)*Fn,s=i.getLayout("viewRect"),l=i.getLayout("r"),h=s.width,c=s.x,u=s.y,d=s.height;function p(t){t.ignore=!0}i.each((function(t){var s=i.getItemGraphicEl(t),u=s.shape,d=s.getTextContent(),f=s.getTextGuideLine(),g=i.getItemModel(t),m=g.getModel("label"),v=m.get("position")||g.get(["emphasis","label","position"]),y=m.get("distanceToLabelLine"),x=m.get("alignTo"),b=(0,Se.lo)(m.get("edgeDistance"),h),w=m.get("bleedMargin"),S=g.getModel("labelLine"),T=S.get("length");T=(0,Se.lo)(T,h);var M=S.get("length2");if(M=(0,Se.lo)(M,h),Math.abs(u.endAngle-u.startAngle)<a)return(0,_.each)(d.states,p),d.ignore=!0,void(f&&((0,_.each)(f.states,p),f.ignore=!0));if(function(t){if(!t.ignore)return!0;for(var e in t.states)if(!1===t.states[e].ignore)return!0;return!1}(d)){var A,C,I,E,k=(u.startAngle+u.endAngle)/2,L=Math.cos(k),D=Math.sin(k);e=u.cx,n=u.cy;var P="inside"===v||"inner"===v;if("center"===v)A=u.cx,C=u.cy,E="center";else{var R=(P?(u.r+u.r0)/2*L:u.r*L)+e,O=(P?(u.r+u.r0)/2*D:u.r*D)+n;if(A=R+3*L,C=O+3*D,!P){var N=R+L*(T+l-u.r),F=O+D*(T+l-u.r),B=N+(L<0?-1:1)*M;A="edge"===x?L<0?c+b:c+h-b:B+(L<0?-y:y),C=F,I=[[R,O],[N,F],[B,F]]}E=P?"center":"edge"===x?L>0?"right":"left":L>0?"left":"right"}var z=Math.PI,G=0,V=m.get("rotate");if((0,_.isNumber)(V))G=V*(z/180);else if("center"===v)G=0;else if("radial"===V||!0===V){G=L<0?-k+z:-k}else if("tangential"===V&&"outside"!==v&&"outer"!==v){var j=Math.atan2(L,D);j<0&&(j=2*z+j),D>0&&(j=z+j),G=j-z}if(o=!!G,d.x=A,d.y=C,d.rotation=G,d.setStyle({verticalAlign:"middle"}),P){d.setStyle({align:E});var H=d.states.select;H&&(H.x+=d.x,H.y+=d.y)}else{var W=d.getBoundingRect().clone();W.applyTransform(d.getComputedTransform());var U=(d.style.margin||0)+2.1;W.y-=U/2,W.height+=U,r.push({label:d,labelLine:f,position:v,len:T,len2:M,minTurnAngle:S.get("minTurnAngle"),maxSurfaceAngle:S.get("maxSurfaceAngle"),surfaceNormal:new Rn.A(L,D),linePoints:I,textAlign:E,labelDistance:y,labelAlignTo:x,edgeDistance:b,bleedMargin:w,rect:W,unconstrainedWidth:W.width,labelStyleWidth:d.style.width})}s.setTextConfig({inside:P})}})),!o&&t.get("avoidLabelOverlap")&&function(t,e,n,i,r,o,a,s){for(var l=[],h=[],c=Number.MAX_VALUE,u=-Number.MAX_VALUE,d=0;d<t.length;d++){var p=t[d].label;Gn(t[d])||(p.x<e?(c=Math.min(c,p.x),l.push(t[d])):(u=Math.max(u,p.x),h.push(t[d])))}for(d=0;d<t.length;d++)if(!Gn(m=t[d])&&m.linePoints){if(null!=m.labelStyleWidth)continue;p=m.label;var f=m.linePoints,g=void 0;g="edge"===m.labelAlignTo?p.x<e?f[2][0]-m.labelDistance-a-m.edgeDistance:a+r-m.edgeDistance-f[2][0]-m.labelDistance:"labelLine"===m.labelAlignTo?p.x<e?c-a-m.bleedMargin:a+r-u-m.bleedMargin:p.x<e?p.x-a-m.bleedMargin:a+r-p.x-m.bleedMargin,m.targetTextWidth=g,zn(m,g)}for(Bn(h,e,n,i,1,0,o,0,s,u),Bn(l,e,n,i,-1,0,o,0,s,c),d=0;d<t.length;d++){var m;if(!Gn(m=t[d])&&m.linePoints){p=m.label,f=m.linePoints;var v="edge"===m.labelAlignTo,y=p.style.padding,_=y?y[1]+y[3]:0,x=p.style.backgroundColor?0:_,b=m.rect.width+x,w=f[1][0]-f[2][0];v?p.x<e?f[2][0]=a+m.edgeDistance+b+m.labelDistance:f[2][0]=a+r-m.edgeDistance-b-m.labelDistance:(p.x<e?f[2][0]=p.x+m.labelDistance:f[2][0]=p.x-m.labelDistance,f[1][0]=f[2][0]+w),f[1][1]=f[2][1]=p.y}}}(r,e,n,l,h,d,c,u);for(var f=0;f<r.length;f++){var g=r[f],m=g.label,v=g.labelLine,y=isNaN(m.x)||isNaN(m.y);if(m){m.setStyle({align:g.textAlign}),y&&((0,_.each)(m.states,p),m.ignore=!0);var x=m.states.select;x&&(x.x+=m.x,x.y+=m.y)}if(v){var b=g.linePoints;y||!b?((0,_.each)(v.states,p),v.ignore=!0):((0,On.YI)(b,g.minTurnAngle),(0,On.QK)(b,g.surfaceNormal,g.maxSurfaceAngle),v.setShape({points:b}),m.__hostTarget.textGuideLineConfig={anchor:new Rn.A(b[0][0],b[0][1])})}}}var jn=function(t){function e(e,n,i){var r=t.call(this)||this;r.z2=2;var o=new Z.Ay;return r.setTextContent(o),r.updateData(e,n,i,!0),r}return(0,Bt.C6)(e,t),e.prototype.updateData=function(t,e,n,i){var r=this,o=t.hostModel,a=t.getItemModel(e),s=a.getModel("emphasis"),l=t.getItemLayout(e),h=(0,_.extend)(rn(a.getModel("itemStyle"),l,!0),l);if(isNaN(h.startAngle))r.setShape(h);else{if(i){r.setShape(h);var c=o.getShallow("animationType");o.ecModel.ssr?(Ut.LW(r,{scaleX:0,scaleY:0},o,{dataIndex:e,isFrom:!0}),r.originX=h.cx,r.originY=h.cy):"scale"===c?(r.shape.r=l.r0,Ut.LW(r,{shape:{r:l.r}},o,e)):null!=n?(r.setShape({startAngle:n,endAngle:n}),Ut.LW(r,{shape:{startAngle:l.startAngle,endAngle:l.endAngle}},o,e)):(r.shape.endAngle=l.startAngle,Ut.oi(r,{shape:{endAngle:l.endAngle}},o,e))}else(0,Ut.ap)(r),Ut.oi(r,{shape:h},o,e);r.useStyle(t.getItemVisual(e,"style")),(0,Yt.Mx)(r,a);var u=(l.startAngle+l.endAngle)/2,d=o.get("selectedOffset"),p=Math.cos(u)*d,f=Math.sin(u)*d,g=a.getShallow("cursor");g&&r.attr("cursor",g),this._updateLabel(o,t,e),r.ensureState("emphasis").shape=(0,_.extend)({r:l.r+(s.get("scale")&&s.get("scaleSize")||0)},rn(s.getModel("itemStyle"),l)),(0,_.extend)(r.ensureState("select"),{x:p,y:f,shape:rn(a.getModel(["select","itemStyle"]),l)}),(0,_.extend)(r.ensureState("blur"),{shape:rn(a.getModel(["blur","itemStyle"]),l)});var m=r.getTextGuideLine(),v=r.getTextContent();m&&(0,_.extend)(m.ensureState("select"),{x:p,y:f}),(0,_.extend)(v.ensureState("select"),{x:p,y:f}),(0,Yt.Lm)(this,s.get("focus"),s.get("blurScope"),s.get("disabled"))}},e.prototype._updateLabel=function(t,e,n){var i=this,r=e.getItemModel(n),o=r.getModel("labelLine"),a=e.getItemVisual(n,"style"),s=a&&a.fill,l=a&&a.opacity;(0,Jt.qM)(i,(0,Jt.lx)(r),{labelFetcher:e.hostModel,labelDataIndex:n,inheritColor:s,defaultOpacity:l,defaultText:t.getFormattedLabel(n,"normal")||e.getName(n)});var h=i.getTextContent();i.setTextConfig({position:null,rotation:null}),h.attr({z2:10});var c=t.get(["label","position"]);if("outside"!==c&&"outer"!==c)i.removeTextGuideLine();else{var u=this.getTextGuideLine();u||(u=new Pn.A,this.setTextGuideLine(u)),(0,On.eR)(this,(0,On.rv)(r),{stroke:s,opacity:(0,_.retrieve3)(o.get(["lineStyle","opacity"]),l,1)})}},e}(we.A);const Hn=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.ignoreLabelLineUpdate=!0,e}return(0,Bt.C6)(e,t),e.prototype.render=function(t,e,n,i){var r,o=t.getData(),a=this._data,s=this.group;if(!a&&o.count()>0){for(var l=o.getItemLayout(0),h=1;isNaN(l&&l.startAngle)&&h<o.count();++h)l=o.getItemLayout(h);l&&(r=l.startAngle)}if(this._emptyCircleSector&&s.remove(this._emptyCircleSector),0===o.count()&&t.get("showEmptyCircle")){var c=Ln(t),u=new we.A({shape:(0,_.extend)(En(t,n),c)});u.useStyle(t.getModel("emptyCircleStyle").getItemStyle()),this._emptyCircleSector=u,s.add(u)}o.diff(a).add((function(t){var e=new jn(o,t,r);o.setItemGraphicEl(t,e),s.add(e)})).update((function(t,e){var n=a.getItemGraphicEl(e);n.updateData(o,t,r),n.off("click"),s.add(n),o.setItemGraphicEl(t,n)})).remove((function(e){var n=a.getItemGraphicEl(e);Ut.t5(n,t,e)})).execute(),Vn(t),"expansion"!==t.get("animationTypeUpdate")&&(this._data=o)},e.prototype.dispose=function(){},e.prototype.containPoint=function(t,e){var n=e.getData().getItemLayout(0);if(n){var i=t[0]-n.cx,r=t[1]-n.cy,o=Math.sqrt(i*i+r*r);return o<=n.r&&o>=n.r0}},e.type="pie",e}(xe.A);var Wn=n(7984),Un=n(919);function qn(t,e,n){e=(0,_.isArray)(e)&&{coordDimensions:e}||(0,_.extend)({encodeDefine:t.getEncode()},e);var i=t.getSource(),r=(0,Wn.A)(i,e).dimensions,o=new Un.A(r,t);return o.initData(i,n),o}var Xn=n(6660);const Yn=function(){function t(t,e){this._getDataWithEncodedVisual=t,this._getRawData=e}return t.prototype.getAllNames=function(){var t=this._getRawData();return t.mapArray(t.getName)},t.prototype.containName=function(t){return this._getRawData().indexOfName(t)>=0},t.prototype.indexOfName=function(t){return this._getDataWithEncodedVisual().indexOfName(t)},t.prototype.getItemVisual=function(t,e){return this._getDataWithEncodedVisual().getItemVisual(t,e)},t}();var Zn=ce.$r();const $n=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return(0,Bt.C6)(e,t),e.prototype.init=function(e){t.prototype.init.apply(this,arguments),this.legendVisualProvider=new Yn(_.bind(this.getData,this),_.bind(this.getRawData,this)),this._defaultLabelLine(e)},e.prototype.mergeOption=function(){t.prototype.mergeOption.apply(this,arguments)},e.prototype.getInitialData=function(){return qn(this,{coordDimensions:["value"],encodeDefaulter:_.curry(Xn.ln,this)})},e.prototype.getDataParams=function(e){var n=this.getData(),i=Zn(n),r=i.seats;if(!r){var o=[];n.each(n.mapDimension("value"),(function(t){o.push(t)})),r=i.seats=(0,Se.kM)(o,n.hostModel.get("percentPrecision"))}var a=t.prototype.getDataParams.call(this,e);return a.percent=r[e]||0,a.$vars.push("percent"),a},e.prototype._defaultLabelLine=function(t){ce.M5(t,"labelLine",["show"]);var e=t.labelLine,n=t.emphasis.labelLine;e.show=e.show&&t.label.show,n.show=n.show&&t.emphasis.label.show},e.type="series.pie",e.defaultOption={z:2,legendHoverLink:!0,colorBy:"data",center:["50%","50%"],radius:[0,"75%"],clockwise:!0,startAngle:90,endAngle:"auto",padAngle:0,minAngle:0,minShowLabelAngle:0,selectedOffset:10,percentPrecision:2,stillShowZeroSum:!0,left:0,top:0,right:0,bottom:0,width:null,height:null,label:{rotate:0,show:!0,overflow:"truncate",position:"outer",alignTo:"none",edgeDistance:"25%",bleedMargin:10,distanceToLabelLine:5},labelLine:{show:!0,length:15,length2:15,smooth:!1,minTurnAngle:90,maxSurfaceAngle:90,lineStyle:{width:1,type:"solid"}},itemStyle:{borderWidth:1,borderJoin:"round"},showEmptyCircle:!0,emptyCircleStyle:{color:"lightgray",opacity:1},labelLayout:{hideOverlap:!0},emphasis:{scale:!0,scaleSize:5},avoidLabelOverlap:!0,animationType:"expansion",animationDuration:1e3,animationTypeUpdate:"transition",animationEasingUpdate:"cubicInOut",animationDurationUpdate:500,animationEasing:"cubicInOut"},e}(Gt.A);const Kn=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n.hasSymbolVisual=!0,n}return(0,Bt.C6)(e,t),e.prototype.getInitialData=function(t,e){return(0,zt.A)(null,this,{useEncodeDefaulter:!0})},e.prototype.getProgressive=function(){var t=this.option.progressive;return null==t?this.option.large?5e3:this.get("progressive"):t},e.prototype.getProgressiveThreshold=function(){var t=this.option.progressiveThreshold;return null==t?this.option.large?1e4:this.get("progressiveThreshold"):t},e.prototype.brushSelector=function(t,e,n){return n.point(e.getItemLayout(t))},e.prototype.getZLevelKey=function(){return this.getData().count()>this.getProgressiveThreshold()?this.id:""},e.type="series.scatter",e.dependencies=["grid","polar","geo","singleAxis","calendar"],e.defaultOption={coordinateSystem:"cartesian2d",z:2,legendHoverLink:!0,symbolSize:10,large:!1,largeThreshold:2e3,itemStyle:{opacity:.8},emphasis:{scale:!0},clip:!0,select:{itemStyle:{borderColor:"#212121"}},universalTransition:{divideShape:"clone"}},e}(Gt.A);var Jn=n(5383),Qn=function(){},ti=function(t){function e(e){var n=t.call(this,e)||this;return n._off=0,n.hoverDataIdx=-1,n}return(0,Bt.C6)(e,t),e.prototype.getDefaultShape=function(){return new Qn},e.prototype.reset=function(){this.notClear=!1,this._off=0},e.prototype.buildPath=function(t,e){var n,i=e.points,r=e.size,o=this.symbolProxy,a=o.shape,s=t.getContext?t.getContext():t,l=s&&r[0]<4,h=this.softClipShape;if(l)this._ctx=s;else{for(this._ctx=null,n=this._off;n<i.length;){var c=i[n++],u=i[n++];isNaN(c)||isNaN(u)||(h&&!h.contain(c,u)||(a.x=c-r[0]/2,a.y=u-r[1]/2,a.width=r[0],a.height=r[1],o.buildPath(t,a,!0)))}this.incremental&&(this._off=n,this.notClear=!0)}},e.prototype.afterBrush=function(){var t,e=this.shape,n=e.points,i=e.size,r=this._ctx,o=this.softClipShape;if(r){for(t=this._off;t<n.length;){var a=n[t++],s=n[t++];isNaN(a)||isNaN(s)||(o&&!o.contain(a,s)||r.fillRect(a-i[0]/2,s-i[1]/2,i[0],i[1]))}this.incremental&&(this._off=t,this.notClear=!0)}},e.prototype.findDataIndex=function(t,e){for(var n=this.shape,i=n.points,r=n.size,o=Math.max(r[0],4),a=Math.max(r[1],4),s=i.length/2-1;s>=0;s--){var l=2*s,h=i[l]-o/2,c=i[l+1]-a/2;if(t>=h&&e>=c&&t<=h+o&&e<=c+a)return s}return-1},e.prototype.contain=function(t,e){var n=this.transformCoordToLocal(t,e),i=this.getBoundingRect();return t=n[0],e=n[1],i.contain(t,e)?(this.hoverDataIdx=this.findDataIndex(t,e))>=0:(this.hoverDataIdx=-1,!1)},e.prototype.getBoundingRect=function(){var t=this._rect;if(!t){for(var e=this.shape,n=e.points,i=e.size,r=i[0],o=i[1],a=1/0,s=1/0,l=-1/0,h=-1/0,c=0;c<n.length;){var u=n[c++],d=n[c++];a=Math.min(u,a),l=Math.max(u,l),s=Math.min(d,s),h=Math.max(d,h)}t=this._rect=new Jn.A(a-r/2,s-o/2,l-a+r,h-s+o)}return t},e}(s.Ay),ei=function(){function t(){this.group=new jt.A}return t.prototype.updateData=function(t,e){this._clear();var n=this._create();n.setShape({points:t.getLayout("points")}),this._setCommon(n,t,e)},t.prototype.updateLayout=function(t){var e=t.getLayout("points");this.group.eachChild((function(t){if(null!=t.startIndex){var n=2*(t.endIndex-t.startIndex),i=4*t.startIndex*2;e=new Float32Array(e.buffer,i,n)}t.setShape("points",e),t.reset()}))},t.prototype.incrementalPrepareUpdate=function(t){this._clear()},t.prototype.incrementalUpdate=function(t,e,n){var i=this._newAdded[0],r=e.getLayout("points"),o=i&&i.shape.points;if(o&&o.length<2e4){var a=o.length,s=new Float32Array(a+r.length);s.set(o),s.set(r,a),i.endIndex=t.end,i.setShape({points:s})}else{this._newAdded=[];var l=this._create();l.startIndex=t.start,l.endIndex=t.end,l.incremental=!0,l.setShape({points:r}),this._setCommon(l,e,n)}},t.prototype.eachRendered=function(t){this._newAdded[0]&&t(this._newAdded[0])},t.prototype._create=function(){var t=new ti({cursor:"default"});return t.ignoreCoarsePointer=!0,this.group.add(t),this._newAdded.push(t),t},t.prototype._setCommon=function(t,e,n){var i=e.hostModel;n=n||{};var r=e.getVisual("symbolSize");t.setShape("size",r instanceof Array?r:[r,r]),t.softClipShape=n.clipShape||null,t.symbolProxy=(0,Vt.v5)(e.getVisual("symbol"),0,0,0,0),t.setColor=t.symbolProxy.setColor;var o=t.shape.size[0]<4;t.useStyle(i.getModel("itemStyle").getItemStyle(o?["color","shadowBlur","shadowColor"]:["color"]));var a=e.getVisual("style"),s=a&&a.fill;s&&t.setColor(s);var l=(0,Xt.z)(t);l.seriesIndex=i.seriesIndex,t.on("mousemove",(function(e){l.dataIndex=null;var n=t.hoverDataIdx;n>=0&&(l.dataIndex=n+(t.startIndex||0))}))},t.prototype.remove=function(){this._clear()},t.prototype._clear=function(){this._newAdded=[],this.group.removeAll()},t}();const ni=ei;const ii=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return(0,Bt.C6)(e,t),e.prototype.render=function(t,e,n){var i=t.getData();this._updateSymbolDraw(i,t).updateData(i,{clipShape:this._getClipShape(t)}),this._finished=!0},e.prototype.incrementalPrepareRender=function(t,e,n){var i=t.getData();this._updateSymbolDraw(i,t).incrementalPrepareUpdate(i),this._finished=!1},e.prototype.incrementalRender=function(t,e,n){this._symbolDraw.incrementalUpdate(t,e.getData(),{clipShape:this._getClipShape(e)}),this._finished=t.end===e.getData().count()},e.prototype.updateTransform=function(t,e,n){var i=t.getData();if(this.group.dirty(),!this._finished||i.count()>1e4)return{update:!0};var r=je("").reset(t,e,n);r.progress&&r.progress({start:0,end:i.count(),count:i.count()},i),this._symbolDraw.updateLayout(i)},e.prototype.eachRendered=function(t){this._symbolDraw&&this._symbolDraw.eachRendered(t)},e.prototype._getClipShape=function(t){if(t.get("clip",!0)){var e=t.coordinateSystem;return e&&e.getArea&&e.getArea(.1)}},e.prototype._updateSymbolDraw=function(t,e){var n=this._symbolDraw,i=e.pipelineContext.large;return n&&i===this._isLargeDraw||(n&&n.remove(),n=this._symbolDraw=i?new ni:new re,this._isLargeDraw=i,this.group.removeAll()),this.group.add(n.group),n},e.prototype.remove=function(t,e){this._symbolDraw&&this._symbolDraw.remove(!0),this._symbolDraw=null},e.prototype.dispose=function(){},e.type="scatter",e}(xe.A);var ri=n(5370),oi=n(9078);const ai=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return(0,Bt.C6)(e,t),e.type="grid",e.dependencies=["xAxis","yAxis"],e.layoutMode="box",e.defaultOption={show:!1,z:0,left:"10%",top:60,right:"10%",bottom:70,containLabel:!1,backgroundColor:"rgba(0,0,0,0)",borderWidth:1,borderColor:"#ccc"},e}(oi.A);var si=n(5357),li=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return(0,Bt.C6)(e,t),e.prototype.getCoordSysModel=function(){return this.getReferringComponents("grid",ce.US).models[0]},e.type="cartesian2dAxis",e}(oi.A);_.mixin(li,si.L);var hi={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:!0,onZeroAxisIndex:null,lineStyle:{color:"#6E7079",width:1,type:"solid"},symbol:["none","none"],symbolSize:[10,15]},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},splitLine:{show:!0,lineStyle:{color:["#E0E6F1"],width:1,type:"solid"}},splitArea:{show:!1,areaStyle:{color:["rgba(250,250,250,0.2)","rgba(210,219,238,0.2)"]}}},ci=_.merge({boundaryGap:!0,deduplication:null,splitLine:{show:!1},axisTick:{alignWithLabel:!1,interval:"auto"},axisLabel:{interval:"auto"}},hi),ui=_.merge({boundaryGap:[0,0],axisLine:{show:"auto"},axisTick:{show:"auto"},splitNumber:5,minorTick:{show:!1,splitNumber:5,length:3,lineStyle:{}},minorSplitLine:{show:!1,lineStyle:{color:"#F4F7FD",width:1}}},hi);const di={category:ci,value:ui,time:_.merge({splitNumber:6,axisLabel:{showMinLabel:!1,showMaxLabel:!1,rich:{primary:{fontWeight:"bold"}}},splitLine:{show:!1}},ui),log:_.defaults({logBase:10},ui)};var pi=n(3519),fi={value:1,category:1,time:1,log:1};function gi(t,e,n,i){(0,_.each)(fi,(function(r,o){var a=(0,_.merge)((0,_.merge)({},di[o],!0),i,!0),s=function(t){function n(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e+"Axis."+o,n}return(0,Bt.C6)(n,t),n.prototype.mergeDefaultAndTheme=function(t,e){var n=(0,Mn.ad)(this),i=n?(0,Mn.vs)(t):{},r=e.getTheme();(0,_.merge)(t,r.get(o+"Axis")),(0,_.merge)(t,this.getDefaultOption()),t.type=mi(t),n&&(0,Mn.YA)(t,i,n)},n.prototype.optionUpdated=function(){"category"===this.option.type&&(this.__ordinalMeta=pi.A.createByAxisModel(this))},n.prototype.getCategories=function(t){var e=this.option;if("category"===e.type)return t?e.data:this.__ordinalMeta.categories},n.prototype.getOrdinalMeta=function(){return this.__ordinalMeta},n.type=e+"Axis."+o,n.defaultOption=a,n}(n);t.registerComponentModel(s)})),t.registerSubTypeDefaulter(e+"Axis",mi)}function mi(t){return t.type||(t.data?"category":"value")}var vi=n(5067),yi=n(5202),_i=n(3968),xi=n(4070),bi=["x","y"];function wi(t){return"interval"===t.type||"time"===t.type}const Si=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="cartesian2d",e.dimensions=bi,e}return(0,Bt.C6)(e,t),e.prototype.calcAffineTransform=function(){this._transform=this._invTransform=null;var t=this.getAxis("x").scale,e=this.getAxis("y").scale;if(wi(t)&&wi(e)){var n=t.getExtent(),i=e.getExtent(),r=this.dataToPoint([n[0],i[0]]),o=this.dataToPoint([n[1],i[1]]),a=n[1]-n[0],s=i[1]-i[0];if(a&&s){var l=(o[0]-r[0])/a,h=(o[1]-r[1])/s,c=r[0]-n[0]*l,u=r[1]-i[0]*h,d=this._transform=[l,0,0,h,c,u];this._invTransform=(0,_i.invert)([],d)}}},e.prototype.getBaseAxis=function(){return this.getAxesByScale("ordinal")[0]||this.getAxesByScale("time")[0]||this.getAxis("x")},e.prototype.containPoint=function(t){var e=this.getAxis("x"),n=this.getAxis("y");return e.contain(e.toLocalCoord(t[0]))&&n.contain(n.toLocalCoord(t[1]))},e.prototype.containData=function(t){return this.getAxis("x").containData(t[0])&&this.getAxis("y").containData(t[1])},e.prototype.containZone=function(t,e){var n=this.dataToPoint(t),i=this.dataToPoint(e),r=this.getArea(),o=new Jn.A(n[0],n[1],i[0]-n[0],i[1]-n[1]);return r.intersect(o)},e.prototype.dataToPoint=function(t,e,n){n=n||[];var i=t[0],r=t[1];if(this._transform&&null!=i&&isFinite(i)&&null!=r&&isFinite(r))return(0,xi.applyTransform)(n,t,this._transform);var o=this.getAxis("x"),a=this.getAxis("y");return n[0]=o.toGlobalCoord(o.dataToCoord(i,e)),n[1]=a.toGlobalCoord(a.dataToCoord(r,e)),n},e.prototype.clampData=function(t,e){var n=this.getAxis("x").scale,i=this.getAxis("y").scale,r=n.getExtent(),o=i.getExtent(),a=n.parse(t[0]),s=i.parse(t[1]);return(e=e||[])[0]=Math.min(Math.max(Math.min(r[0],r[1]),a),Math.max(r[0],r[1])),e[1]=Math.min(Math.max(Math.min(o[0],o[1]),s),Math.max(o[0],o[1])),e},e.prototype.pointToData=function(t,e){var n=[];if(this._invTransform)return(0,xi.applyTransform)(n,t,this._invTransform);var i=this.getAxis("x"),r=this.getAxis("y");return n[0]=i.coordToData(i.toLocalCoord(t[0]),e),n[1]=r.coordToData(r.toLocalCoord(t[1]),e),n},e.prototype.getOtherAxis=function(t){return this.getAxis("x"===t.dim?"y":"x")},e.prototype.getArea=function(t){t=t||0;var e=this.getAxis("x").getGlobalExtent(),n=this.getAxis("y").getGlobalExtent(),i=Math.min(e[0],e[1])-t,r=Math.min(n[0],n[1])-t,o=Math.max(e[0],e[1])-i+t,a=Math.max(n[0],n[1])-r+t;return new Jn.A(i,r,o,a)},e}(yi.A);var Ti=n(7994),Mi=function(t){function e(e,n,i,r,o){var a=t.call(this,e,n,i)||this;return a.index=0,a.type=r||"value",a.position=o||"bottom",a}return(0,Bt.C6)(e,t),e.prototype.isHorizontal=function(){var t=this.position;return"top"===t||"bottom"===t},e.prototype.getGlobalExtent=function(t){var e=this.getExtent();return e[0]=this.toGlobalCoord(e[0]),e[1]=this.toGlobalCoord(e[1]),t&&e[0]>e[1]&&e.reverse(),e},e.prototype.pointToData=function(t,e){return this.coordToData(this.toLocalCoord(t["x"===this.dim?0:1]),e)},e.prototype.setCategorySortInfo=function(t){if("category"!==this.type)return!1;this.model.option.categorySortInfo=t,this.scale.setSortInfo(t)},e}(Ti.A);const Ai=Mi;function Ci(t,e,n){n=n||{};var i=t.coordinateSystem,r=e.axis,o={},a=r.getAxesOnZeroOf()[0],s=r.position,l=a?"onZero":s,h=r.dim,c=i.getRect(),u=[c.x,c.x+c.width,c.y,c.y+c.height],d={left:0,right:1,top:0,bottom:1,onZero:2},p=e.get("offset")||0,f="x"===h?[u[2]-p,u[3]+p]:[u[0]-p,u[1]+p];if(a){var g=a.toGlobalCoord(a.dataToCoord(0));f[d.onZero]=Math.max(Math.min(g,f[1]),f[0])}o.position=["y"===h?f[d[l]]:u[0],"x"===h?f[d[l]]:u[3]],o.rotation=Math.PI/2*("x"===h?0:1);o.labelDirection=o.tickDirection=o.nameDirection={top:-1,bottom:1,left:-1,right:1}[s],o.labelOffset=a?f[d[s]]-f[d.onZero]:0,e.get(["axisTick","inside"])&&(o.tickDirection=-o.tickDirection),_.retrieve(n.labelInside,e.get(["axisLabel","inside"]))&&(o.labelDirection=-o.labelDirection);var m=e.get(["axisLabel","rotate"]);return o.labelRotate="top"===l?-m:m,o.z2=1,o}function Ii(t){return"cartesian2d"===t.get("coordinateSystem")}function Ei(t){var e={xAxisModel:null,yAxisModel:null};return _.each(e,(function(n,i){var r=i.replace(/Model$/,""),o=t.getReferringComponents(r,ce.US).models[0];e[i]=o})),e}var ki=n(3115),Li=n(2670),Di=Math.log;function Pi(t,e,n){var i=Li.A.prototype,r=i.getTicks.call(n),o=i.getTicks.call(n,!0),a=r.length-1,s=i.getInterval.call(n),l=(0,vi.Rx)(t,e),h=l.extent,c=l.fixMin,u=l.fixMax;if("log"===t.type){var d=Di(t.base);h=[Di(h[0])/d,Di(h[1])/d]}t.setExtent(h[0],h[1]),t.calcNiceExtent({splitNumber:a,fixMin:c,fixMax:u});var p=i.getExtent.call(t);c&&(h[0]=p[0]),u&&(h[1]=p[1]);var f=i.getInterval.call(t),g=h[0],m=h[1];if(c&&u)f=(m-g)/a;else if(c)for(m=h[0]+f*a;m<h[1]&&isFinite(m)&&isFinite(h[1]);)f=(0,ki.kH)(f),m=h[0]+f*a;else if(u)for(g=h[1]-f*a;g>h[0]&&isFinite(g)&&isFinite(h[0]);)f=(0,ki.kH)(f),g=h[1]-f*a;else{t.getTicks().length-1>a&&(f=(0,ki.kH)(f));var v=f*a;m=Math.ceil(h[1]/f)*f,(g=(0,Se.LI)(m-v))<0&&h[0]>=0?(g=0,m=(0,Se.LI)(v)):m>0&&h[1]<=0&&(m=0,g=-(0,Se.LI)(v))}var y=(r[0].value-o[0].value)/s,_=(r[a].value-o[a].value)/s;i.setExtent.call(t,g+f*y,m+f*_),i.setInterval.call(t,f),(y||_)&&i.setNiceExtent.call(t,g+f,m-f)}var Ri=function(){function t(t,e,n){this.type="grid",this._coordsMap={},this._coordsList=[],this._axesMap={},this._axesList=[],this.axisPointerEnabled=!0,this.dimensions=bi,this._initCartesian(t,e,n),this.model=t}return t.prototype.getRect=function(){return this._rect},t.prototype.update=function(t,e){var n=this._axesMap;function i(t){var e,n=(0,_.keys)(t),i=n.length;if(i){for(var r=[],o=i-1;o>=0;o--){var a=t[+n[o]],s=a.model,l=a.scale;(0,ki.rf)(l)&&s.get("alignTicks")&&null==s.get("interval")?r.push(a):((0,vi.af)(l,s),(0,ki.rf)(l)&&(e=a))}r.length&&(e||(e=r.pop(),(0,vi.af)(e.scale,e.model)),(0,_.each)(r,(function(t){Pi(t.scale,t.model,e.scale)})))}}this._updateScale(t,this.model),i(n.x),i(n.y);var r={};(0,_.each)(n.x,(function(t){Ni(n,"y",t,r)})),(0,_.each)(n.y,(function(t){Ni(n,"x",t,r)})),this.resize(this.model,e)},t.prototype.resize=function(t,e,n){var i=t.getBoxLayoutParams(),r=!n&&t.get("containLabel"),o=(0,Mn.dV)(i,{width:e.getWidth(),height:e.getHeight()});this._rect=o;var a=this._axesList;function s(){(0,_.each)(a,(function(t){var e=t.isHorizontal(),n=e?[0,o.width]:[0,o.height],i=t.inverse?1:0;t.setExtent(n[i],n[1-i]),function(t,e){var n=t.getExtent(),i=n[0]+n[1];t.toGlobalCoord="x"===t.dim?function(t){return t+e}:function(t){return i-t+e},t.toLocalCoord="x"===t.dim?function(t){return t-e}:function(t){return i-t+e}}(t,e?o.x:o.y)}))}s(),r&&((0,_.each)(a,(function(t){if(!t.model.get(["axisLabel","inside"])){var e=(0,vi.Og)(t);if(e){var n=t.isHorizontal()?"height":"width",i=t.model.get(["axisLabel","margin"]);o[n]-=e[n]+i,"top"===t.position?o.y+=e.height+i:"left"===t.position&&(o.x+=e.width+i)}}})),s()),(0,_.each)(this._coordsList,(function(t){t.calcAffineTransform()}))},t.prototype.getAxis=function(t,e){var n=this._axesMap[t];if(null!=n)return n[e||0]},t.prototype.getAxes=function(){return this._axesList.slice()},t.prototype.getCartesian=function(t,e){if(null!=t&&null!=e){var n="x"+t+"y"+e;return this._coordsMap[n]}(0,_.isObject)(t)&&(e=t.yAxisIndex,t=t.xAxisIndex);for(var i=0,r=this._coordsList;i<r.length;i++)if(r[i].getAxis("x").index===t||r[i].getAxis("y").index===e)return r[i]},t.prototype.getCartesians=function(){return this._coordsList.slice()},t.prototype.convertToPixel=function(t,e,n){var i=this._findConvertTarget(e);return i.cartesian?i.cartesian.dataToPoint(n):i.axis?i.axis.toGlobalCoord(i.axis.dataToCoord(n)):null},t.prototype.convertFromPixel=function(t,e,n){var i=this._findConvertTarget(e);return i.cartesian?i.cartesian.pointToData(n):i.axis?i.axis.coordToData(i.axis.toLocalCoord(n)):null},t.prototype._findConvertTarget=function(t){var e,n,i=t.seriesModel,r=t.xAxisModel||i&&i.getReferringComponents("xAxis",ce.US).models[0],o=t.yAxisModel||i&&i.getReferringComponents("yAxis",ce.US).models[0],a=t.gridModel,s=this._coordsList;if(i)e=i.coordinateSystem,(0,_.indexOf)(s,e)<0&&(e=null);else if(r&&o)e=this.getCartesian(r.componentIndex,o.componentIndex);else if(r)n=this.getAxis("x",r.componentIndex);else if(o)n=this.getAxis("y",o.componentIndex);else if(a){a.coordinateSystem===this&&(e=this._coordsList[0])}return{cartesian:e,axis:n}},t.prototype.containPoint=function(t){var e=this._coordsList[0];if(e)return e.containPoint(t)},t.prototype._initCartesian=function(t,e,n){var i=this,r=this,o={left:!1,right:!1,top:!1,bottom:!1},a={x:{},y:{}},s={x:0,y:0};if(e.eachComponent("xAxis",l("x"),this),e.eachComponent("yAxis",l("y"),this),!s.x||!s.y)return this._axesMap={},void(this._axesList=[]);function l(e){return function(n,i){if(Oi(n,t)){var l=n.get("position");"x"===e?"top"!==l&&"bottom"!==l&&(l=o.bottom?"top":"bottom"):"left"!==l&&"right"!==l&&(l=o.left?"right":"left"),o[l]=!0;var h=new Ai(e,(0,vi.f$)(n),[0,0],n.get("type"),l),c="category"===h.type;h.onBand=c&&n.get("boundaryGap"),h.inverse=n.get("inverse"),n.axis=h,h.model=n,h.grid=r,h.index=i,r._axesList.push(h),a[e][i]=h,s[e]++}}}this._axesMap=a,(0,_.each)(a.x,(function(e,n){(0,_.each)(a.y,(function(r,o){var a="x"+n+"y"+o,s=new Si(a);s.master=i,s.model=t,i._coordsMap[a]=s,i._coordsList.push(s),s.addAxis(e),s.addAxis(r)}))}))},t.prototype._updateScale=function(t,e){function n(t,e){(0,_.each)((0,vi.wq)(t,e.dim),(function(n){e.scale.unionExtentFromData(t,n)}))}(0,_.each)(this._axesList,(function(t){if(t.scale.setExtent(1/0,-1/0),"category"===t.type){var e=t.model.get("categorySortInfo");t.scale.setSortInfo(e)}})),t.eachSeries((function(t){if(Ii(t)){var i=Ei(t),r=i.xAxisModel,o=i.yAxisModel;if(!Oi(r,e)||!Oi(o,e))return;var a=this.getCartesian(r.componentIndex,o.componentIndex),s=t.getData(),l=a.getAxis("x"),h=a.getAxis("y");n(s,l),n(s,h)}}),this)},t.prototype.getTooltipAxes=function(t){var e=[],n=[];return(0,_.each)(this.getCartesians(),(function(i){var r=null!=t&&"auto"!==t?i.getAxis(t):i.getBaseAxis(),o=i.getOtherAxis(r);(0,_.indexOf)(e,r)<0&&e.push(r),(0,_.indexOf)(n,o)<0&&n.push(o)})),{baseAxes:e,otherAxes:n}},t.create=function(e,n){var i=[];return e.eachComponent("grid",(function(r,o){var a=new t(r,e,n);a.name="grid_"+o,a.resize(r,n,!0),r.coordinateSystem=a,i.push(a)})),e.eachSeries((function(t){if(Ii(t)){var e=Ei(t),n=e.xAxisModel,i=e.yAxisModel;0;var r=n.getCoordSysModel().coordinateSystem;t.coordinateSystem=r.getCartesian(n.componentIndex,i.componentIndex)}})),i},t.dimensions=bi,t}();function Oi(t,e){return t.getCoordSysModel()===e}function Ni(t,e,n,i){n.getAxesOnZeroOf=function(){return r?[r]:[]};var r,o=t[e],a=n.model,s=a.get(["axisLine","onZero"]),l=a.get(["axisLine","onZeroAxisIndex"]);if(s){if(null!=l)Fi(o[l])&&(r=o[l]);else for(var h in o)if(o.hasOwnProperty(h)&&Fi(o[h])&&!i[c(o[h])]){r=o[h];break}r&&(i[c(r)]=!0)}function c(t){return t.dim+"_"+t.index}}function Fi(t){return t&&"category"!==t.type&&"time"!==t.type&&(0,vi.JJ)(t)}const Bi=Ri;var zi=n(5840),Gi=n(6217),Vi=Math.PI,ji=function(){function t(t,e){this.group=new jt.A,this.opt=e,this.axisModel=t,(0,_.defaults)(e,{labelOffset:0,nameDirection:1,tickDirection:1,labelDirection:1,silent:!0,handleAutoShown:function(){return!0}});var n=new jt.A({x:e.position[0],y:e.position[1],rotation:e.rotation});n.updateTransform(),this._transformGroup=n}return t.prototype.hasBuilder=function(t){return!!Hi[t]},t.prototype.add=function(t){Hi[t](this.opt,this.axisModel,this.group,this._transformGroup)},t.prototype.getGroup=function(){return this.group},t.innerTextLayout=function(t,e,n){var i,r,o=(0,Se._7)(e-t);return(0,Se.dh)(o)?(r=n>0?"top":"bottom",i="center"):(0,Se.dh)(o-Vi)?(r=n>0?"bottom":"top",i="center"):(r="middle",i=o>0&&o<Vi?n>0?"right":"left":n>0?"left":"right"),{rotation:o,textAlign:i,textVerticalAlign:r}},t.makeAxisEventDataBase=function(t){var e={componentType:t.mainType,componentIndex:t.componentIndex};return e[t.mainType+"Index"]=t.componentIndex,e},t.isLabelSilent=function(t){var e=t.get("tooltip");return t.get("silent")||!(t.get("triggerEvent")||e&&e.show)},t}(),Hi={axisLine:function(t,e,n,i){var r=e.get(["axisLine","show"]);if("auto"===r&&t.handleAutoShown&&(r=t.handleAutoShown("axisLine")),r){var o=e.axis.getExtent(),a=i.transform,s=[o[0],0],l=[o[1],0],h=s[0]>l[0];a&&((0,xi.applyTransform)(s,s,a),(0,xi.applyTransform)(l,l,a));var c=(0,_.extend)({lineCap:"round"},e.getModel(["axisLine","lineStyle"]).getLineStyle()),u=new zi.A({shape:{x1:s[0],y1:s[1],x2:l[0],y2:l[1]},style:c,strokeContainThreshold:t.strokeContainThreshold||5,silent:!0,z2:1});qt.subPixelOptimizeLine(u.shape,u.style.lineWidth),u.anid="line",n.add(u);var d=e.get(["axisLine","symbol"]);if(null!=d){var p=e.get(["axisLine","symbolSize"]);(0,_.isString)(d)&&(d=[d,d]),((0,_.isString)(p)||(0,_.isNumber)(p))&&(p=[p,p]);var f=(0,Vt.hV)(e.get(["axisLine","symbolOffset"])||0,p),g=p[0],m=p[1];(0,_.each)([{rotate:t.rotation+Math.PI/2,offset:f[0],r:0},{rotate:t.rotation-Math.PI/2,offset:f[1],r:Math.sqrt((s[0]-l[0])*(s[0]-l[0])+(s[1]-l[1])*(s[1]-l[1]))}],(function(e,i){if("none"!==d[i]&&null!=d[i]){var r=(0,Vt.v5)(d[i],-g/2,-m/2,g,m,c.stroke,!0),o=e.r+e.offset,a=h?l:s;r.attr({rotation:e.rotate,x:a[0]+o*Math.cos(t.rotation),y:a[1]-o*Math.sin(t.rotation),silent:!0,z2:11}),n.add(r)}}))}}},axisTickLabel:function(t,e,n,i){var r=function(t,e,n,i){var r=n.axis,o=n.getModel("axisTick"),a=o.get("show");"auto"===a&&i.handleAutoShown&&(a=i.handleAutoShown("axisTick"));if(!a||r.scale.isBlank())return;for(var s=o.getModel("lineStyle"),l=i.tickDirection*o.get("length"),h=Xi(r.getTicksCoords(),e.transform,l,(0,_.defaults)(s.getLineStyle(),{stroke:n.get(["axisLine","lineStyle","color"])}),"ticks"),c=0;c<h.length;c++)t.add(h[c]);return h}(n,i,e,t),o=function(t,e,n,i){var r=n.axis,o=(0,_.retrieve)(i.axisLabelShow,n.get(["axisLabel","show"]));if(!o||r.scale.isBlank())return;var a=n.getModel("axisLabel"),s=a.get("margin"),l=r.getViewLabels(),h=((0,_.retrieve)(i.labelRotate,a.get("rotate"))||0)*Vi/180,c=ji.innerTextLayout(i.rotation,h,i.labelDirection),u=n.getCategories&&n.getCategories(!0),d=[],p=ji.isLabelSilent(n),f=n.get("triggerEvent");return(0,_.each)(l,(function(o,h){var g="ordinal"===r.scale.type?r.scale.getRawOrdinalNumber(o.tickValue):o.tickValue,m=o.formattedLabel,v=o.rawLabel,y=a;if(u&&u[g]){var x=u[g];(0,_.isObject)(x)&&x.textStyle&&(y=new Gi.A(x.textStyle,a,n.ecModel))}var b=y.getTextColor()||n.get(["axisLine","lineStyle","color"]),w=r.dataToCoord(g),S=y.getShallow("align",!0)||c.textAlign,T=(0,_.retrieve2)(y.getShallow("alignMinLabel",!0),S),M=(0,_.retrieve2)(y.getShallow("alignMaxLabel",!0),S),A=y.getShallow("verticalAlign",!0)||y.getShallow("baseline",!0)||c.textVerticalAlign,C=(0,_.retrieve2)(y.getShallow("verticalAlignMinLabel",!0),A),I=(0,_.retrieve2)(y.getShallow("verticalAlignMaxLabel",!0),A),E=new Z.Ay({x:w,y:i.labelOffset+i.labelDirection*s,rotation:c.rotation,silent:p,z2:10+(o.level||0),style:(0,Jt.VB)(y,{text:m,align:0===h?T:h===l.length-1?M:S,verticalAlign:0===h?C:h===l.length-1?I:A,fill:(0,_.isFunction)(b)?b("category"===r.type?v:"value"===r.type?g+"":g,h):b})});if(E.anid="label_"+g,f){var k=ji.makeAxisEventDataBase(n);k.targetType="axisLabel",k.value=v,k.tickIndex=h,"category"===r.type&&(k.dataIndex=g),(0,Xt.z)(E).eventData=k}e.add(E),E.updateTransform(),d.push(E),t.add(E),E.decomposeTransform()})),d}(n,i,e,t);if(function(t,e,n){if((0,vi.PJ)(t.axis))return;var i=t.get(["axisLabel","showMinLabel"]),r=t.get(["axisLabel","showMaxLabel"]);e=e||[],n=n||[];var o=e[0],a=e[1],s=e[e.length-1],l=e[e.length-2],h=n[0],c=n[1],u=n[n.length-1],d=n[n.length-2];!1===i?(Wi(o),Wi(h)):Ui(o,a)&&(i?(Wi(a),Wi(c)):(Wi(o),Wi(h)));!1===r?(Wi(s),Wi(u)):Ui(l,s)&&(r?(Wi(l),Wi(d)):(Wi(s),Wi(u)))}(e,o,r),function(t,e,n,i){var r=n.axis,o=n.getModel("minorTick");if(!o.get("show")||r.scale.isBlank())return;var a=r.getMinorTicksCoords();if(!a.length)return;for(var s=o.getModel("lineStyle"),l=i*o.get("length"),h=(0,_.defaults)(s.getLineStyle(),(0,_.defaults)(n.getModel("axisTick").getLineStyle(),{stroke:n.get(["axisLine","lineStyle","color"])})),c=0;c<a.length;c++)for(var u=Xi(a[c],e.transform,l,h,"minorticks_"+c),d=0;d<u.length;d++)t.add(u[d])}(n,i,e,t.tickDirection),e.get(["axisLabel","hideOverlap"])){var a=(0,Nn.os)((0,_.map)(o,(function(t){return{label:t,priority:t.z2,defaultAttr:{ignore:t.ignore}}})));(0,Nn.If)(a)}},axisName:function(t,e,n,i){var r=(0,_.retrieve)(t.axisName,e.get("name"));if(r){var o,a,s=e.get("nameLocation"),l=t.nameDirection,h=e.getModel("nameTextStyle"),c=e.get("nameGap")||0,u=e.axis.getExtent(),d=u[0]>u[1]?-1:1,p=["start"===s?u[0]-d*c:"end"===s?u[1]+d*c:(u[0]+u[1])/2,qi(s)?t.labelOffset+l*c:0],f=e.get("nameRotate");null!=f&&(f=f*Vi/180),qi(s)?o=ji.innerTextLayout(t.rotation,null!=f?f:t.rotation,l):(o=function(t,e,n,i){var r,o,a=(0,Se._7)(n-t),s=i[0]>i[1],l="start"===e&&!s||"start"!==e&&s;(0,Se.dh)(a-Vi/2)?(o=l?"bottom":"top",r="center"):(0,Se.dh)(a-1.5*Vi)?(o=l?"top":"bottom",r="center"):(o="middle",r=a<1.5*Vi&&a>Vi/2?l?"left":"right":l?"right":"left");return{rotation:a,textAlign:r,textVerticalAlign:o}}(t.rotation,s,f||0,u),null!=(a=t.axisNameAvailableWidth)&&(a=Math.abs(a/Math.sin(o.rotation)),!isFinite(a)&&(a=null)));var g=h.getFont(),m=e.get("nameTruncate",!0)||{},v=m.ellipsis,y=(0,_.retrieve)(t.nameTruncateMaxWidth,m.maxWidth,a),x=new Z.Ay({x:p[0],y:p[1],rotation:o.rotation,silent:ji.isLabelSilent(e),style:(0,Jt.VB)(h,{text:r,font:g,overflow:"truncate",width:y,ellipsis:v,fill:h.getTextColor()||e.get(["axisLine","lineStyle","color"]),align:h.get("align")||o.textAlign,verticalAlign:h.get("verticalAlign")||o.textVerticalAlign}),z2:1});if(qt.setTooltipConfig({el:x,componentModel:e,itemName:r}),x.__fullText=r,x.anid="name",e.get("triggerEvent")){var b=ji.makeAxisEventDataBase(e);b.targetType="axisName",b.name=r,(0,Xt.z)(x).eventData=b}i.add(x),x.updateTransform(),n.add(x),x.decomposeTransform()}}};function Wi(t){t&&(t.ignore=!0)}function Ui(t,e){var n=t&&t.getBoundingRect().clone(),i=e&&e.getBoundingRect().clone();if(n&&i){var r=_i.identity([]);return _i.rotate(r,r,-t.rotation),n.applyTransform(_i.mul([],r,t.getLocalTransform())),i.applyTransform(_i.mul([],r,e.getLocalTransform())),n.intersect(i)}}function qi(t){return"middle"===t||"center"===t}function Xi(t,e,n,i,r){for(var o=[],a=[],s=[],l=0;l<t.length;l++){var h=t[l].coord;a[0]=h,a[1]=0,s[0]=h,s[1]=n,e&&((0,xi.applyTransform)(a,a,e),(0,xi.applyTransform)(s,s,e));var c=new zi.A({shape:{x1:a[0],y1:a[1],x2:s[0],y2:s[1]},style:i,z2:2,autoBatch:!0,silent:!0});qt.subPixelOptimizeLine(c.shape,c.style.lineWidth),c.anid=r+"_"+t[l].tickValue,o.push(c)}return o}const Yi=ji;function Zi(t,e){var n={axesInfo:{},seriesInvolved:!1,coordSysAxesInfo:{},coordSysMap:{}};return function(t,e,n){var i=e.getComponent("tooltip"),r=e.getComponent("axisPointer"),o=r.get("link",!0)||[],a=[];(0,_.each)(n.getCoordinateSystems(),(function(n){if(n.axisPointerEnabled){var s=Qi(n.model),l=t.coordSysAxesInfo[s]={};t.coordSysMap[s]=n;var h=n.model.getModel("tooltip",i);if((0,_.each)(n.getAxes(),(0,_.curry)(p,!1,null)),n.getTooltipAxes&&i&&h.get("show")){var c="axis"===h.get("trigger"),u="cross"===h.get(["axisPointer","type"]),d=n.getTooltipAxes(h.get(["axisPointer","axis"]));(c||u)&&(0,_.each)(d.baseAxes,(0,_.curry)(p,!u||"cross",c)),u&&(0,_.each)(d.otherAxes,(0,_.curry)(p,"cross",!1))}}function p(i,s,c){var u=c.model.getModel("axisPointer",r),d=u.get("show");if(d&&("auto"!==d||i||Ji(u))){null==s&&(s=u.get("triggerTooltip")),u=i?function(t,e,n,i,r,o){var a=e.getModel("axisPointer"),s=["type","snap","lineStyle","shadowStyle","label","animation","animationDurationUpdate","animationEasingUpdate","z"],l={};(0,_.each)(s,(function(t){l[t]=(0,_.clone)(a.get(t))})),l.snap="category"!==t.type&&!!o,"cross"===a.get("type")&&(l.type="line");var h=l.label||(l.label={});if(null==h.show&&(h.show=!1),"cross"===r){var c=a.get(["label","show"]);if(h.show=null==c||c,!o){var u=l.lineStyle=a.get("crossStyle");u&&(0,_.defaults)(h,u.textStyle)}}return t.model.getModel("axisPointer",new Gi.A(l,n,i))}(c,h,r,e,i,s):u;var p=u.get("snap"),f=u.get("triggerEmphasis"),g=Qi(c.model),m=s||p||"category"===c.type,v=t.axesInfo[g]={key:g,axis:c,coordSys:n,axisPointerModel:u,triggerTooltip:s,triggerEmphasis:f,involveSeries:m,snap:p,useHandle:Ji(u),seriesModels:[],linkGroup:null};l[g]=v,t.seriesInvolved=t.seriesInvolved||m;var y=function(t,e){for(var n=e.model,i=e.dim,r=0;r<t.length;r++){var o=t[r]||{};if($i(o[i+"AxisId"],n.id)||$i(o[i+"AxisIndex"],n.componentIndex)||$i(o[i+"AxisName"],n.name))return r}}(o,c);if(null!=y){var x=a[y]||(a[y]={axesInfo:{}});x.axesInfo[g]=v,x.mapper=o[y].mapper,v.linkGroup=x}}}}))}(n,t,e),n.seriesInvolved&&function(t,e){e.eachSeries((function(e){var n=e.coordinateSystem,i=e.get(["tooltip","trigger"],!0),r=e.get(["tooltip","show"],!0);n&&"none"!==i&&!1!==i&&"item"!==i&&!1!==r&&!1!==e.get(["axisPointer","show"],!0)&&(0,_.each)(t.coordSysAxesInfo[Qi(n.model)],(function(t){var i=t.axis;n.getAxis(i.dim)===i&&(t.seriesModels.push(e),null==t.seriesDataCount&&(t.seriesDataCount=0),t.seriesDataCount+=e.getData().count())}))}))}(n,t),n}function $i(t,e){return"all"===t||(0,_.isArray)(t)&&(0,_.indexOf)(t,e)>=0||t===e}function Ki(t){var e=(t.ecModel.getComponent("axisPointer")||{}).coordSysAxesInfo;return e&&e.axesInfo[Qi(t)]}function Ji(t){return!!t.get(["handle","show"])}function Qi(t){return t.type+"||"+t.id}var tr={};const er=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return(0,Bt.C6)(e,t),e.prototype.render=function(e,n,i,r){this.axisPointerClass&&function(t){var e=Ki(t);if(e){var n=e.axisPointerModel,i=e.axis.scale,r=n.option,o=n.get("status"),a=n.get("value");null!=a&&(a=i.parse(a));var s=Ji(n);null==o&&(r.status=s?"show":"hide");var l=i.getExtent().slice();l[0]>l[1]&&l.reverse(),(null==a||a>l[1])&&(a=l[1]),a<l[0]&&(a=l[0]),r.value=a,s&&(r.status=e.axis.scale.isBlank()?"hide":"show")}}(e),t.prototype.render.apply(this,arguments),this._doUpdateAxisPointerClass(e,i,!0)},e.prototype.updateAxisPointer=function(t,e,n,i){this._doUpdateAxisPointerClass(t,n,!1)},e.prototype.remove=function(t,e){var n=this._axisPointer;n&&n.remove(e)},e.prototype.dispose=function(e,n){this._disposeAxisPointer(n),t.prototype.dispose.apply(this,arguments)},e.prototype._doUpdateAxisPointerClass=function(t,n,i){var r=e.getAxisPointerClass(this.axisPointerClass);if(r){var o=function(t){var e=Ki(t);return e&&e.axisPointerModel}(t);o?(this._axisPointer||(this._axisPointer=new r)).render(t,o,n,i):this._disposeAxisPointer(n)}},e.prototype._disposeAxisPointer=function(t){this._axisPointer&&this._axisPointer.dispose(t),this._axisPointer=null},e.registerAxisPointerClass=function(t,e){tr[t]=e},e.getAxisPointerClass=function(t){return t&&tr[t]},e.type="axis",e}(ri.A);var nr=(0,ce.$r)();function ir(t,e,n,i){var r=n.axis;if(!r.scale.isBlank()){var o=n.getModel("splitArea"),a=o.getModel("areaStyle"),s=a.get("color"),l=i.coordinateSystem.getRect(),h=r.getTicksCoords({tickModel:o,clamp:!0});if(h.length){var c=s.length,u=nr(t).splitAreaColors,d=_.createHashMap(),p=0;if(u)for(var f=0;f<h.length;f++){var g=u.get(h[f].tickValue);if(null!=g){p=(g+(c-1)*f)%c;break}}var m=r.toGlobalCoord(h[0].coord),v=a.getAreaStyle();s=_.isArray(s)?s:[s];for(f=1;f<h.length;f++){var y=r.toGlobalCoord(h[f].coord),x=void 0,b=void 0,w=void 0,S=void 0;r.isHorizontal()?(x=m,b=l.y,w=y-x,S=l.height,m=x+w):(x=l.x,b=m,w=l.width,m=b+(S=y-b));var T=h[f-1].tickValue;null!=T&&d.set(T,p),e.add(new be.A({anid:null!=T?"area_"+T:null,shape:{x:x,y:b,width:w,height:S},style:_.defaults({fill:s[p]},v),autoBatch:!0,silent:!0})),p=(p+1)%c}nr(t).splitAreaColors=d}}}function rr(t){nr(t).splitAreaColors=null}var or=["axisLine","axisTickLabel","axisName"],ar=["splitArea","splitLine","minorSplitLine"],sr=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n.axisPointerClass="CartesianAxisPointer",n}return(0,Bt.C6)(e,t),e.prototype.render=function(e,n,i,r){this.group.removeAll();var o=this._axisGroup;if(this._axisGroup=new jt.A,this.group.add(this._axisGroup),e.get("show")){var a=e.getCoordSysModel(),s=Ci(a,e),l=new Yi(e,_.extend({handleAutoShown:function(t){for(var n=a.coordinateSystem.getCartesians(),i=0;i<n.length;i++)if((0,ki.rf)(n[i].getOtherAxis(e.axis).scale))return!0;return!1}},s));_.each(or,l.add,l),this._axisGroup.add(l.getGroup()),_.each(ar,(function(t){e.get([t,"show"])&&lr[t](this,this._axisGroup,e,a)}),this),r&&"changeAxisOrder"===r.type&&r.isInitSort||qt.groupTransition(o,this._axisGroup,e),t.prototype.render.call(this,e,n,i,r)}},e.prototype.remove=function(){rr(this)},e.type="cartesianAxis",e}(er),lr={splitLine:function(t,e,n,i){var r=n.axis;if(!r.scale.isBlank()){var o=n.getModel("splitLine"),a=o.getModel("lineStyle"),s=a.get("color");s=_.isArray(s)?s:[s];for(var l=i.coordinateSystem.getRect(),h=r.isHorizontal(),c=0,u=r.getTicksCoords({tickModel:o}),d=[],p=[],f=a.getLineStyle(),g=0;g<u.length;g++){var m=r.toGlobalCoord(u[g].coord);h?(d[0]=m,d[1]=l.y,p[0]=m,p[1]=l.y+l.height):(d[0]=l.x,d[1]=m,p[0]=l.x+l.width,p[1]=m);var v=c++%s.length,y=u[g].tickValue,x=new zi.A({anid:null!=y?"line_"+u[g].tickValue:null,autoBatch:!0,shape:{x1:d[0],y1:d[1],x2:p[0],y2:p[1]},style:_.defaults({stroke:s[v]},f),silent:!0});qt.subPixelOptimizeLine(x.shape,f.lineWidth),e.add(x)}}},minorSplitLine:function(t,e,n,i){var r=n.axis,o=n.getModel("minorSplitLine").getModel("lineStyle"),a=i.coordinateSystem.getRect(),s=r.isHorizontal(),l=r.getMinorTicksCoords();if(l.length)for(var h=[],c=[],u=o.getLineStyle(),d=0;d<l.length;d++)for(var p=0;p<l[d].length;p++){var f=r.toGlobalCoord(l[d][p].coord);s?(h[0]=f,h[1]=a.y,c[0]=f,c[1]=a.y+a.height):(h[0]=a.x,h[1]=f,c[0]=a.x+a.width,c[1]=f);var g=new zi.A({anid:"minor_line_"+l[d][p].tickValue,autoBatch:!0,shape:{x1:h[0],y1:h[1],x2:c[0],y2:c[1]},style:u,silent:!0});qt.subPixelOptimizeLine(g.shape,u.lineWidth),e.add(g)}},splitArea:function(t,e,n,i){ir(t,e,n,i)}},hr=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return(0,Bt.C6)(e,t),e.type="xAxis",e}(sr),cr=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type=hr.type,e}return(0,Bt.C6)(e,t),e.type="yAxis",e}(sr);var ur=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="grid",e}return(0,Bt.C6)(e,t),e.prototype.render=function(t,e){this.group.removeAll(),t.get("show")&&this.group.add(new be.A({shape:t.coordinateSystem.getRect(),style:(0,_.defaults)({fill:t.get("backgroundColor")},t.getItemStyle()),silent:!0,z2:-1}))},e.type="grid",e}(ri.A),dr={offset:0};function pr(t){t.registerComponentView(ur),t.registerComponentModel(ai),t.registerCoordinateSystem("cartesian2d",Bi),gi(t,"x",li,dr),gi(t,"y",li,dr),t.registerComponentView(hr),t.registerComponentView(cr),t.registerPreprocessor((function(t){t.xAxis&&t.yAxis&&!t.grid&&(t.grid={})}))}function fr(t){t.eachSeriesByType("radar",(function(t){var e=t.getData(),n=[],i=t.coordinateSystem;if(i){var r=i.getIndicatorAxes();_.each(r,(function(t,o){e.each(e.mapDimension(r[o].dim),(function(t,e){n[e]=n[e]||[];var r=i.dataToPoint(t,o);n[e][o]=gr(r)?r:mr(i)}))})),e.each((function(t){var r=_.find(n[t],(function(t){return gr(t)}))||mr(i);n[t].push(r.slice()),e.setItemLayout(t,n[t])}))}}))}function gr(t){return!isNaN(t[0])&&!isNaN(t[1])}function mr(t){return[t.cx,t.cy]}function vr(t){var e=t.polar;if(e){_.isArray(e)||(e=[e]);var n=[];_.each(e,(function(e,i){e.indicator?(e.type&&!e.shape&&(e.shape=e.type),t.radar=t.radar||[],_.isArray(t.radar)||(t.radar=[t.radar]),t.radar.push(e)):n.push(e)})),t.polar=n}_.each(t.series,(function(t){t&&"radar"===t.type&&t.polarIndex&&(t.radarIndex=t.polarIndex)}))}var yr=n(4942),_r=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return(0,Bt.C6)(e,t),e.prototype.render=function(t,e,n){var i=t.coordinateSystem,r=this.group,o=t.getData(),a=this._data;function s(t,e){var n=t.getItemVisual(e,"symbol")||"circle";if("none"!==n){var i=Vt.xU(t.getItemVisual(e,"symbolSize")),r=Vt.v5(n,-1,-1,2,2),o=t.getItemVisual(e,"symbolRotate")||0;return r.attr({style:{strokeNoScale:!0},z2:100,scaleX:i[0]/2,scaleY:i[1]/2,rotation:o*Math.PI/180||0}),r}}function h(e,n,i,r,o,a){i.removeAll();for(var l=0;l<n.length-1;l++){var h=s(r,o);h&&(h.__dimIdx=l,e[l]?(h.setPosition(e[l]),qt[a?"initProps":"updateProps"](h,{x:n[l][0],y:n[l][1]},t,o)):h.setPosition(n[l]),i.add(h))}}function c(t){return _.map(t,(function(t){return[i.cx,i.cy]}))}o.diff(a).add((function(e){var n=o.getItemLayout(e);if(n){var i=new yr.A,r=new Pn.A,a={shape:{points:n}};i.shape.points=c(n),r.shape.points=c(n),Ut.LW(i,a,t,e),Ut.LW(r,a,t,e);var s=new jt.A,l=new jt.A;s.add(r),s.add(i),s.add(l),h(r.shape.points,n,l,o,e,!0),o.setItemGraphicEl(e,s)}})).update((function(e,n){var i=a.getItemGraphicEl(n),r=i.childAt(0),s=i.childAt(1),l=i.childAt(2),c={shape:{points:o.getItemLayout(e)}};c.shape.points&&(h(r.shape.points,c.shape.points,l,o,e,!1),(0,Ut.ap)(s),(0,Ut.ap)(r),Ut.oi(r,c,t),Ut.oi(s,c,t),o.setItemGraphicEl(e,i))})).remove((function(t){r.remove(a.getItemGraphicEl(t))})).execute(),o.eachItemGraphicEl((function(t,e){var n=o.getItemModel(e),i=t.childAt(0),a=t.childAt(1),s=t.childAt(2),h=o.getItemVisual(e,"style"),c=h.fill;r.add(t),i.useStyle(_.defaults(n.getModel("lineStyle").getLineStyle(),{fill:"none",stroke:c})),(0,Yt.Mx)(i,n,"lineStyle"),(0,Yt.Mx)(a,n,"areaStyle");var u=n.getModel("areaStyle"),d=u.isEmpty()&&u.parentModel.isEmpty();a.ignore=d,_.each(["emphasis","select","blur"],(function(t){var e=n.getModel([t,"areaStyle"]),i=e.isEmpty()&&e.parentModel.isEmpty();a.ensureState(t).ignore=i&&d})),a.useStyle(_.defaults(u.getAreaStyle(),{fill:c,opacity:.7,decal:h.decal}));var p=n.getModel("emphasis"),f=p.getModel("itemStyle").getItemStyle();s.eachChild((function(t){if(t instanceof l.Ay){var i=t.style;t.useStyle(_.extend({image:i.image,x:i.x,y:i.y,width:i.width,height:i.height},h))}else t.useStyle(h),t.setColor(c),t.style.strokeNoScale=!0;t.ensureState("emphasis").style=_.clone(f);var r=o.getStore().get(o.getDimensionIndex(t.__dimIdx),e);(null==r||isNaN(r))&&(r=""),(0,Jt.qM)(t,(0,Jt.lx)(n),{labelFetcher:o.hostModel,labelDataIndex:e,labelDimIndex:t.__dimIdx,defaultText:r,inheritColor:c,defaultOpacity:h.opacity})})),(0,Yt.Lm)(t,p.get("focus"),p.get("blurScope"),p.get("disabled"))})),this._data=o},e.prototype.remove=function(){this.group.removeAll(),this._data=null},e.type="radar",e}(xe.A);const xr=_r;var br=n(7276),wr=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n.hasSymbolVisual=!0,n}return(0,Bt.C6)(e,t),e.prototype.init=function(e){t.prototype.init.apply(this,arguments),this.legendVisualProvider=new Yn(_.bind(this.getData,this),_.bind(this.getRawData,this))},e.prototype.getInitialData=function(t,e){return qn(this,{generateCoord:"indicator_",generateCoordCount:1/0})},e.prototype.formatTooltip=function(t,e,n){var i=this.getData(),r=this.coordinateSystem.getIndicatorAxes(),o=this.getData().getName(t),a=""===o?this.name:o,s=(0,br.aw)(this,t);return(0,br.Qx)("section",{header:a,sortBlocks:!0,blocks:_.map(r,(function(e){var n=i.get(i.mapDimension(e.dim),t);return(0,br.Qx)("nameValue",{markerType:"subItem",markerColor:s,name:e.name,value:n,sortParam:n})}))})},e.prototype.getTooltipPosition=function(t){if(null!=t)for(var e=this.getData(),n=this.coordinateSystem,i=e.getValues(_.map(n.dimensions,(function(t){return e.mapDimension(t)})),t),r=0,o=i.length;r<o;r++)if(!isNaN(i[r])){var a=n.getIndicatorAxes();return n.coordToPoint(a[r].dataToCoord(i[r]),r)}},e.type="series.radar",e.dependencies=["radar"],e.defaultOption={z:2,colorBy:"data",coordinateSystem:"radar",legendHoverLink:!0,radarIndex:0,lineStyle:{width:2,type:"solid",join:"round"},label:{position:"top"},symbolSize:8},e}(Gt.A);const Sr=wr;var Tr=di.value;function Mr(t,e){return _.defaults({show:e},t)}const Ar=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return(0,Bt.C6)(e,t),e.prototype.optionUpdated=function(){var t=this.get("boundaryGap"),e=this.get("splitNumber"),n=this.get("scale"),i=this.get("axisLine"),r=this.get("axisTick"),o=this.get("axisLabel"),a=this.get("axisName"),s=this.get(["axisName","show"]),l=this.get(["axisName","formatter"]),h=this.get("axisNameGap"),c=this.get("triggerEvent"),u=_.map(this.get("indicator")||[],(function(u){null!=u.max&&u.max>0&&!u.min?u.min=0:null!=u.min&&u.min<0&&!u.max&&(u.max=0);var d=a;null!=u.color&&(d=_.defaults({color:u.color},a));var p=_.merge(_.clone(u),{boundaryGap:t,splitNumber:e,scale:n,axisLine:i,axisTick:r,axisLabel:o,name:u.text,showName:s,nameLocation:"end",nameGap:h,nameTextStyle:d,triggerEvent:c},!1);if(_.isString(l)){var f=p.name;p.name=l.replace("{value}",null!=f?f:"")}else _.isFunction(l)&&(p.name=l(p.name,p));var g=new Gi.A(p,null,this.ecModel);return _.mixin(g,si.L.prototype),g.mainType="radar",g.componentIndex=this.componentIndex,g}),this);this._indicatorModels=u},e.prototype.getIndicatorModels=function(){return this._indicatorModels},e.type="radar",e.defaultOption={z:0,center:["50%","50%"],radius:"75%",startAngle:90,axisName:{show:!0},boundaryGap:[0,0],splitNumber:5,axisNameGap:15,scale:!1,shape:"polygon",axisLine:_.merge({lineStyle:{color:"#bbb"}},Tr.axisLine),axisLabel:Mr(Tr.axisLabel,!1),axisTick:Mr(Tr.axisTick,!1),splitLine:Mr(Tr.splitLine,!0),splitArea:Mr(Tr.splitArea,!0),indicator:[]},e}(oi.A);var Cr=n(1262),Ir=n(9804),Er=["axisLine","axisTickLabel","axisName"],kr=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return(0,Bt.C6)(e,t),e.prototype.render=function(t,e,n){this.group.removeAll(),this._buildAxes(t),this._buildSplitLineAndArea(t)},e.prototype._buildAxes=function(t){var e=t.coordinateSystem,n=e.getIndicatorAxes(),i=_.map(n,(function(t){var n=t.model.get("showName")?t.name:"";return new Yi(t.model,{axisName:n,position:[e.cx,e.cy],rotation:t.angle,labelDirection:-1,tickDirection:-1,nameDirection:1})}));_.each(i,(function(t){_.each(Er,t.add,t),this.group.add(t.getGroup())}),this)},e.prototype._buildSplitLineAndArea=function(t){var e=t.coordinateSystem,n=e.getIndicatorAxes();if(n.length){var i=t.get("shape"),r=t.getModel("splitLine"),o=t.getModel("splitArea"),a=r.getModel("lineStyle"),s=o.getModel("areaStyle"),l=r.get("show"),h=o.get("show"),c=a.get("color"),u=s.get("color"),d=_.isArray(c)?c:[c],p=_.isArray(u)?u:[u],f=[],g=[];if("circle"===i)for(var m=n[0].getTicksCoords(),v=e.cx,y=e.cy,x=0;x<m.length;x++){if(l)f[I(f,d,x)].push(new Cr.A({shape:{cx:v,cy:y,r:m[x].coord}}));if(h&&x<m.length-1)g[I(g,p,x)].push(new Ir.A({shape:{cx:v,cy:y,r0:m[x].coord,r:m[x+1].coord}}))}else{var b,w=_.map(n,(function(t,n){var i=t.getTicksCoords();return b=null==b?i.length-1:Math.min(i.length-1,b),_.map(i,(function(t){return e.coordToPoint(t.coord,n)}))})),S=[];for(x=0;x<=b;x++){for(var T=[],M=0;M<n.length;M++)T.push(w[M][x]);if(T[0]&&T.push(T[0].slice()),l)f[I(f,d,x)].push(new Pn.A({shape:{points:T}}));if(h&&S)g[I(g,p,x-1)].push(new yr.A({shape:{points:T.concat(S)}}));S=T.slice().reverse()}}var A=a.getLineStyle(),C=s.getAreaStyle();_.each(g,(function(t,e){this.group.add(qt.mergePath(t,{style:_.defaults({stroke:"none",fill:p[e%p.length]},C),silent:!0}))}),this),_.each(f,(function(t,e){this.group.add(qt.mergePath(t,{style:_.defaults({fill:"none",stroke:d[e%d.length]},A),silent:!0}))}),this)}function I(t,e,n){var i=n%e.length;return t[i]=t[i]||[],i}},e.type="radar",e}(ri.A);const Lr=kr;const Dr=function(t){function e(e,n,i){var r=t.call(this,e,n,i)||this;return r.type="value",r.angle=0,r.name="",r}return(0,Bt.C6)(e,t),e}(Ti.A);var Pr=function(){function t(t,e,n){this.dimensions=[],this._model=t,this._indicatorAxes=(0,_.map)(t.getIndicatorModels(),(function(t,e){var n="indicator_"+e,i=new Dr(n,new Li.A);return i.name=t.get("name"),i.model=t,t.axis=i,this.dimensions.push(n),i}),this),this.resize(t,n)}return t.prototype.getIndicatorAxes=function(){return this._indicatorAxes},t.prototype.dataToPoint=function(t,e){var n=this._indicatorAxes[e];return this.coordToPoint(n.dataToCoord(t),e)},t.prototype.coordToPoint=function(t,e){var n=this._indicatorAxes[e].angle;return[this.cx+t*Math.cos(n),this.cy-t*Math.sin(n)]},t.prototype.pointToData=function(t){var e=t[0]-this.cx,n=t[1]-this.cy,i=Math.sqrt(e*e+n*n);e/=i,n/=i;for(var r,o=Math.atan2(-n,e),a=1/0,s=-1,l=0;l<this._indicatorAxes.length;l++){var h=this._indicatorAxes[l],c=Math.abs(o-h.angle);c<a&&(r=h,s=l,a=c)}return[s,+(r&&r.coordToData(i))]},t.prototype.resize=function(t,e){var n=t.get("center"),i=e.getWidth(),r=e.getHeight(),o=Math.min(i,r)/2;this.cx=Se.lo(n[0],i),this.cy=Se.lo(n[1],r),this.startAngle=t.get("startAngle")*Math.PI/180;var a=t.get("radius");((0,_.isString)(a)||(0,_.isNumber)(a))&&(a=[0,a]),this.r0=Se.lo(a[0],o),this.r=Se.lo(a[1],o),(0,_.each)(this._indicatorAxes,(function(t,e){t.setExtent(this.r0,this.r);var n=this.startAngle+e*Math.PI*2/this._indicatorAxes.length;n=Math.atan2(Math.sin(n),Math.cos(n)),t.angle=n}),this)},t.prototype.update=function(t,e){var n=this._indicatorAxes,i=this._model;(0,_.each)(n,(function(t){t.scale.setExtent(1/0,-1/0)})),t.eachSeriesByType("radar",(function(e,r){if("radar"===e.get("coordinateSystem")&&t.getComponent("radar",e.get("radarIndex"))===i){var o=e.getData();(0,_.each)(n,(function(t){t.scale.unionExtentFromData(o,o.mapDimension(t.dim))}))}}),this);var r=i.get("splitNumber"),o=new Li.A;o.setExtent(0,r),o.setInterval(1),(0,_.each)(n,(function(t,e){Pi(t.scale,t.model,o)}))},t.prototype.convertToPixel=function(t,e,n){return console.warn("Not implemented."),null},t.prototype.convertFromPixel=function(t,e,n){return console.warn("Not implemented."),null},t.prototype.containPoint=function(t){return console.warn("Not implemented."),!1},t.create=function(e,n){var i=[];return e.eachComponent("radar",(function(r){var o=new t(r,e,n);i.push(o),r.coordinateSystem=o})),e.eachSeriesByType("radar",(function(t){"radar"===t.get("coordinateSystem")&&(t.coordinateSystem=i[t.get("radarIndex")||0])})),i},t.dimensions=[],t}();const Rr=Pr;function Or(t){t.registerCoordinateSystem("radar",Rr),t.registerComponentModel(Ar),t.registerComponentView(Lr),t.registerVisual({seriesType:"radar",reset:function(t){var e=t.getData();e.each((function(t){e.setItemVisual(t,"legendIcon","roundRect")})),e.setVisual("legendIcon","roundRect")}})}var Nr=n(2510),Fr=n(1469),Br=n(3352),zr="\0_ec_interaction_mutex";function Gr(t,e){return!!Vr(t)[e]}function Vr(t){return t[zr]||(t[zr]={})}function jr(t,e,n,i,r){t.pointerChecker&&t.pointerChecker(i,r.originX,r.originY)&&(Fr.ds(i.event),Hr(t,e,n,i,r))}function Hr(t,e,n,i,r){r.isAvailableBehavior=(0,_.bind)(Wr,null,n,i),t.trigger(e,r)}function Wr(t,e,n){var i=n[t];return!t||i&&(!(0,_.isString)(i)||e.event[i+"Key"])}Br.OH({type:"takeGlobalCursor",event:"globalCursorTaken",update:"update"},_.noop);const Ur=function(t){function e(e){var n=t.call(this)||this;n._zr=e;var i=(0,_.bind)(n._mousedownHandler,n),r=(0,_.bind)(n._mousemoveHandler,n),o=(0,_.bind)(n._mouseupHandler,n),a=(0,_.bind)(n._mousewheelHandler,n),s=(0,_.bind)(n._pinchHandler,n);return n.enable=function(t,n){this.disable(),this._opt=(0,_.defaults)((0,_.clone)(n)||{},{zoomOnMouseWheel:!0,moveOnMouseMove:!0,moveOnMouseWheel:!1,preventDefaultMouseMove:!0}),null==t&&(t=!0),!0!==t&&"move"!==t&&"pan"!==t||(e.on("mousedown",i),e.on("mousemove",r),e.on("mouseup",o)),!0!==t&&"scale"!==t&&"zoom"!==t||(e.on("mousewheel",a),e.on("pinch",s))},n.disable=function(){e.off("mousedown",i),e.off("mousemove",r),e.off("mouseup",o),e.off("mousewheel",a),e.off("pinch",s)},n}return(0,Bt.C6)(e,t),e.prototype.isDragging=function(){return this._dragging},e.prototype.isPinching=function(){return this._pinching},e.prototype.setPointerChecker=function(t){this.pointerChecker=t},e.prototype.dispose=function(){this.disable()},e.prototype._mousedownHandler=function(t){if(!Fr.W5(t)){for(var e=t.target;e;){if(e.draggable)return;e=e.__hostTarget||e.parent}var n=t.offsetX,i=t.offsetY;this.pointerChecker&&this.pointerChecker(t,n,i)&&(this._x=n,this._y=i,this._dragging=!0)}},e.prototype._mousemoveHandler=function(t){if(this._dragging&&Wr("moveOnMouseMove",t,this._opt)&&"pinch"!==t.gestureEvent&&!Gr(this._zr,"globalPan")){var e=t.offsetX,n=t.offsetY,i=this._x,r=this._y,o=e-i,a=n-r;this._x=e,this._y=n,this._opt.preventDefaultMouseMove&&Fr.ds(t.event),Hr(this,"pan","moveOnMouseMove",t,{dx:o,dy:a,oldX:i,oldY:r,newX:e,newY:n,isAvailableBehavior:null})}},e.prototype._mouseupHandler=function(t){Fr.W5(t)||(this._dragging=!1)},e.prototype._mousewheelHandler=function(t){var e=Wr("zoomOnMouseWheel",t,this._opt),n=Wr("moveOnMouseWheel",t,this._opt),i=t.wheelDelta,r=Math.abs(i),o=t.offsetX,a=t.offsetY;if(0!==i&&(e||n)){if(e){var s=r>3?1.4:r>1?1.2:1.1;jr(this,"zoom","zoomOnMouseWheel",t,{scale:i>0?s:1/s,originX:o,originY:a,isAvailableBehavior:null})}if(n){var l=Math.abs(i);jr(this,"scrollMove","moveOnMouseWheel",t,{scrollDelta:(i>0?1:-1)*(l>3?.4:l>1?.15:.05),originX:o,originY:a,isAvailableBehavior:null})}}},e.prototype._pinchHandler=function(t){Gr(this._zr,"globalPan")||jr(this,"zoom",null,t,{scale:t.pinchScale>1?1.1:1/1.1,originX:t.pinchX,originY:t.pinchY,isAvailableBehavior:null})},e}(Nr.A);function qr(t,e,n){var i=t.target;i.x+=e,i.y+=n,i.dirty()}function Xr(t,e,n,i){var r=t.target,o=t.zoomLimit,a=t.zoom=t.zoom||1;if(a*=e,o){var s=o.min||0,l=o.max||1/0;a=Math.max(Math.min(l,a),s)}var h=a/t.zoom;t.zoom=a,r.x-=(n-r.x)*(h-1),r.y-=(i-r.y)*(h-1),r.scaleX*=h,r.scaleY*=h,r.dirty()}var Yr={axisPointer:1,tooltip:1,brush:1};function Zr(t,e,n){var i=e.getComponentByElement(t.topTarget),r=i&&i.coordinateSystem;return i&&i!==n&&!Yr.hasOwnProperty(i.mainType)&&r&&r.model!==n}var $r,Kr=n(1478),Jr=n(5496),Qr=n(6575);function to(t){(0,_.isString)(t)&&(t=(new DOMParser).parseFromString(t,"text/xml"));var e=t;for(9===e.nodeType&&(e=e.firstChild);"svg"!==e.nodeName.toLowerCase()||1!==e.nodeType;)e=e.nextSibling;return e}var eo={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"},no=(0,_.keys)(eo),io={"alignment-baseline":"textBaseline","stop-color":"stopColor"},ro=(0,_.keys)(io),oo=function(){function t(){this._defs={},this._root=null}return t.prototype.parse=function(t,e){e=e||{};var n=to(t);this._defsUsePending=[];var i=new jt.A;this._root=i;var r=[],o=n.getAttribute("viewBox")||"",a=parseFloat(n.getAttribute("width")||e.width),s=parseFloat(n.getAttribute("height")||e.height);isNaN(a)&&(a=null),isNaN(s)&&(s=null),uo(n,i,null,!0,!1);for(var l,h,c=n.firstChild;c;)this._parseNode(c,i,r,null,!1,!1),c=c.nextSibling;if(function(t,e){for(var n=0;n<e.length;n++){var i=e[n];i[0].style[i[1]]=t[i[2]]}}(this._defs,this._defsUsePending),this._defsUsePending=[],o){var u=mo(o);u.length>=4&&(l={x:parseFloat(u[0]||0),y:parseFloat(u[1]||0),width:parseFloat(u[2]),height:parseFloat(u[3])})}if(l&&null!=a&&null!=s&&(h=bo(l,{x:0,y:0,width:a,height:s}),!e.ignoreViewBox)){var d=i;(i=new jt.A).add(d),d.scaleX=d.scaleY=h.scale,d.x=h.x,d.y=h.y}return e.ignoreRootClip||null==a||null==s||i.setClipPath(new be.A({shape:{x:0,y:0,width:a,height:s}})),{root:i,width:a,height:s,viewBoxRect:l,viewBoxTransform:h,named:r}},t.prototype._parseNode=function(t,e,n,i,r,o){var a,s=t.nodeName.toLowerCase(),l=i;if("defs"===s&&(r=!0),"text"===s&&(o=!0),"defs"===s||"switch"===s)a=e;else{if(!r){var h=$r[s];if(h&&(0,_.hasOwn)($r,s)){a=h.call(this,t,e);var c=t.getAttribute("name");if(c){var u={name:c,namedFrom:null,svgNodeTagLower:s,el:a};n.push(u),"g"===s&&(l=u)}else i&&n.push({name:i.name,namedFrom:i,svgNodeTagLower:s,el:a});e.add(a)}}var d=ao[s];if(d&&(0,_.hasOwn)(ao,s)){var p=d.call(this,t),f=t.getAttribute("id");f&&(this._defs[f]=p)}}if(a&&a.isGroup)for(var g=t.firstChild;g;)1===g.nodeType?this._parseNode(g,a,n,l,r,o):3===g.nodeType&&o&&this._parseText(g,a),g=g.nextSibling},t.prototype._parseText=function(t,e){var n=new c.A({style:{text:t.textContent},silent:!0,x:this._textX||0,y:this._textY||0});ho(e,n),uo(t,n,this._defsUsePending,!1,!1),function(t,e){var n=e.__selfStyle;if(n){var i=n.textBaseline,r=i;i&&"auto"!==i?"baseline"===i?r="alphabetic":"before-edge"===i||"text-before-edge"===i?r="top":"after-edge"===i||"text-after-edge"===i?r="bottom":"central"!==i&&"mathematical"!==i||(r="middle"):r="alphabetic",t.style.textBaseline=r}var o=e.__inheritedStyle;if(o){var a=o.textAlign,s=a;a&&("middle"===a&&(s="center"),t.style.textAlign=s)}}(n,e);var i=n.style,r=i.fontSize;r&&r<9&&(i.fontSize=9,n.scaleX*=r/9,n.scaleY*=r/9);var o=(i.fontSize||i.fontFamily)&&[i.fontStyle,i.fontWeight,(i.fontSize||12)+"px",i.fontFamily||"sans-serif"].join(" ");i.font=o;var a=n.getBoundingRect();return this._textX+=a.width,e.add(n),n},t.internalField=void($r={g:function(t,e){var n=new jt.A;return ho(e,n),uo(t,n,this._defsUsePending,!1,!1),n},rect:function(t,e){var n=new be.A;return ho(e,n),uo(t,n,this._defsUsePending,!1,!1),n.setShape({x:parseFloat(t.getAttribute("x")||"0"),y:parseFloat(t.getAttribute("y")||"0"),width:parseFloat(t.getAttribute("width")||"0"),height:parseFloat(t.getAttribute("height")||"0")}),n.silent=!0,n},circle:function(t,e){var n=new Cr.A;return ho(e,n),uo(t,n,this._defsUsePending,!1,!1),n.setShape({cx:parseFloat(t.getAttribute("cx")||"0"),cy:parseFloat(t.getAttribute("cy")||"0"),r:parseFloat(t.getAttribute("r")||"0")}),n.silent=!0,n},line:function(t,e){var n=new zi.A;return ho(e,n),uo(t,n,this._defsUsePending,!1,!1),n.setShape({x1:parseFloat(t.getAttribute("x1")||"0"),y1:parseFloat(t.getAttribute("y1")||"0"),x2:parseFloat(t.getAttribute("x2")||"0"),y2:parseFloat(t.getAttribute("y2")||"0")}),n.silent=!0,n},ellipse:function(t,e){var n=new Kr.A;return ho(e,n),uo(t,n,this._defsUsePending,!1,!1),n.setShape({cx:parseFloat(t.getAttribute("cx")||"0"),cy:parseFloat(t.getAttribute("cy")||"0"),rx:parseFloat(t.getAttribute("rx")||"0"),ry:parseFloat(t.getAttribute("ry")||"0")}),n.silent=!0,n},polygon:function(t,e){var n,i=t.getAttribute("points");i&&(n=co(i));var r=new yr.A({shape:{points:n||[]},silent:!0});return ho(e,r),uo(t,r,this._defsUsePending,!1,!1),r},polyline:function(t,e){var n,i=t.getAttribute("points");i&&(n=co(i));var r=new Pn.A({shape:{points:n||[]},silent:!0});return ho(e,r),uo(t,r,this._defsUsePending,!1,!1),r},image:function(t,e){var n=new l.Ay;return ho(e,n),uo(t,n,this._defsUsePending,!1,!1),n.setStyle({image:t.getAttribute("xlink:href")||t.getAttribute("href"),x:+t.getAttribute("x"),y:+t.getAttribute("y"),width:+t.getAttribute("width"),height:+t.getAttribute("height")}),n.silent=!0,n},text:function(t,e){var n=t.getAttribute("x")||"0",i=t.getAttribute("y")||"0",r=t.getAttribute("dx")||"0",o=t.getAttribute("dy")||"0";this._textX=parseFloat(n)+parseFloat(r),this._textY=parseFloat(i)+parseFloat(o);var a=new jt.A;return ho(e,a),uo(t,a,this._defsUsePending,!1,!0),a},tspan:function(t,e){var n=t.getAttribute("x"),i=t.getAttribute("y");null!=n&&(this._textX=parseFloat(n)),null!=i&&(this._textY=parseFloat(i));var r=t.getAttribute("dx")||"0",o=t.getAttribute("dy")||"0",a=new jt.A;return ho(e,a),uo(t,a,this._defsUsePending,!1,!0),this._textX+=parseFloat(r),this._textY+=parseFloat(o),a},path:function(t,e){var n=t.getAttribute("d")||"",i=(0,Jr.UJ)(n);return ho(e,i),uo(t,i,this._defsUsePending,!1,!1),i.silent=!0,i}}),t}(),ao={lineargradient:function(t){var e=parseInt(t.getAttribute("x1")||"0",10),n=parseInt(t.getAttribute("y1")||"0",10),i=parseInt(t.getAttribute("x2")||"10",10),r=parseInt(t.getAttribute("y2")||"0",10),o=new he.A(e,n,i,r);return so(t,o),lo(t,o),o},radialgradient:function(t){var e=parseInt(t.getAttribute("cx")||"0",10),n=parseInt(t.getAttribute("cy")||"0",10),i=parseInt(t.getAttribute("r")||"0",10),r=new Qr.A(e,n,i);return so(t,r),lo(t,r),r}};function so(t,e){"userSpaceOnUse"===t.getAttribute("gradientUnits")&&(e.global=!0)}function lo(t,e){for(var n=t.firstChild;n;){if(1===n.nodeType&&"stop"===n.nodeName.toLocaleLowerCase()){var i=n.getAttribute("offset"),r=void 0;r=i&&i.indexOf("%")>0?parseInt(i,10)/100:i?parseFloat(i):0;var o={};xo(n,o,o);var a=o.stopColor||n.getAttribute("stop-color")||"#000000";e.colorStops.push({offset:r,color:a})}n=n.nextSibling}}function ho(t,e){t&&t.__inheritedStyle&&(e.__inheritedStyle||(e.__inheritedStyle={}),(0,_.defaults)(e.__inheritedStyle,t.__inheritedStyle))}function co(t){for(var e=mo(t),n=[],i=0;i<e.length;i+=2){var r=parseFloat(e[i]),o=parseFloat(e[i+1]);n.push([r,o])}return n}function uo(t,e,n,i,r){var o=e,a=o.__inheritedStyle=o.__inheritedStyle||{},s={};1===t.nodeType&&(function(t,e){var n=t.getAttribute("transform");if(n){n=n.replace(/,/g," ");var i=[],r=null;n.replace(vo,(function(t,e,n){return i.push(e,n),""}));for(var o=i.length-1;o>0;o-=2){var a=i[o],s=i[o-1],l=mo(a);switch(r=r||_i.create(),s){case"translate":_i.translate(r,r,[parseFloat(l[0]),parseFloat(l[1]||"0")]);break;case"scale":_i.scale(r,r,[parseFloat(l[0]),parseFloat(l[1]||l[0])]);break;case"rotate":_i.rotate(r,r,-parseFloat(l[0])*yo,[parseFloat(l[1]||"0"),parseFloat(l[2]||"0")]);break;case"skewX":var h=Math.tan(parseFloat(l[0])*yo);_i.mul(r,[1,0,h,1,0,0],r);break;case"skewY":var c=Math.tan(parseFloat(l[0])*yo);_i.mul(r,[1,c,0,1,0,0],r);break;case"matrix":r[0]=parseFloat(l[0]),r[1]=parseFloat(l[1]),r[2]=parseFloat(l[2]),r[3]=parseFloat(l[3]),r[4]=parseFloat(l[4]),r[5]=parseFloat(l[5])}}e.setLocalTransform(r)}}(t,e),xo(t,a,s),i||function(t,e,n){for(var i=0;i<no.length;i++){var r=no[i];null!=(o=t.getAttribute(r))&&(e[eo[r]]=o)}for(i=0;i<ro.length;i++){var o;r=ro[i];null!=(o=t.getAttribute(r))&&(n[io[r]]=o)}}(t,a,s)),o.style=o.style||{},null!=a.fill&&(o.style.fill=fo(o,"fill",a.fill,n)),null!=a.stroke&&(o.style.stroke=fo(o,"stroke",a.stroke,n)),(0,_.each)(["lineWidth","opacity","fillOpacity","strokeOpacity","miterLimit","fontSize"],(function(t){null!=a[t]&&(o.style[t]=parseFloat(a[t]))})),(0,_.each)(["lineDashOffset","lineCap","lineJoin","fontWeight","fontFamily","fontStyle","textAlign"],(function(t){null!=a[t]&&(o.style[t]=a[t])})),r&&(o.__selfStyle=s),a.lineDash&&(o.style.lineDash=(0,_.map)(mo(a.lineDash),(function(t){return parseFloat(t)}))),"hidden"!==a.visibility&&"collapse"!==a.visibility||(o.invisible=!0),"none"===a.display&&(o.ignore=!0)}var po=/^url\(\s*#(.*?)\)/;function fo(t,e,n,i){var r=n&&n.match(po);if(!r)return"none"===n&&(n=null),n;var o=(0,_.trim)(r[1]);i.push([t,e,o])}var go=/-?([0-9]*\.)?[0-9]+([eE]-?[0-9]+)?/g;function mo(t){return t.match(go)||[]}var vo=/(translate|scale|rotate|skewX|skewY|matrix)\(([\-\s0-9\.eE,]*)\)/g,yo=Math.PI/180;var _o=/([^\s:;]+)\s*:\s*([^:;]+)/g;function xo(t,e,n){var i,r=t.getAttribute("style");if(r)for(_o.lastIndex=0;null!=(i=_o.exec(r));){var o=i[1],a=(0,_.hasOwn)(eo,o)?eo[o]:null;a&&(e[a]=i[2]);var s=(0,_.hasOwn)(io,o)?io[o]:null;s&&(n[s]=i[2])}}function bo(t,e){var n=e.width/t.width,i=e.height/t.height,r=Math.min(n,i);return{scale:r,x:-(t.x+t.width/2)*r+(e.x+e.width/2),y:-(t.y+t.height/2)*r+(e.y+e.height/2)}}var wo=n(7967),So=(0,_.createHashMap)(["rect","circle","line","ellipse","polygon","polyline","path","text","tspan","g"]),To=function(){function t(t,e){this.type="geoSVG",this._usedGraphicMap=(0,_.createHashMap)(),this._freedGraphics=[],this._mapName=t,this._parsedXML=to(e)}return t.prototype.load=function(){var t=this._firstGraphic;if(!t){t=this._firstGraphic=this._buildGraphic(this._parsedXML),this._freedGraphics.push(t),this._boundingRect=this._firstGraphic.boundingRect.clone();var e=function(t){var e=[],n=(0,_.createHashMap)();return(0,_.each)(t,(function(t){if(null==t.namedFrom){var i=new wo.U5(t.name,t.el);e.push(i),n.set(t.name,i)}})),{regions:e,regionsMap:n}}(t.named),n=e.regions,i=e.regionsMap;this._regions=n,this._regionsMap=i}return{boundingRect:this._boundingRect,regions:this._regions,regionsMap:this._regionsMap}},t.prototype._buildGraphic=function(t){var e,n,i,r;try{n=(e=t&&(i=t,r={ignoreViewBox:!0,ignoreRootClip:!0},(new oo).parse(i,r))||{}).root,(0,_.assert)(null!=n)}catch(v){throw new Error("Invalid svg format\n"+v.message)}var o=new jt.A;o.add(n),o.isGeoSVGGraphicRoot=!0;var a=e.width,s=e.height,l=e.viewBoxRect,h=this._boundingRect;if(!h){var c=void 0,u=void 0,d=void 0,p=void 0;if(null!=a?(c=0,d=a):l&&(c=l.x,d=l.width),null!=s?(u=0,p=s):l&&(u=l.y,p=l.height),null==c||null==u){var f=n.getBoundingRect();null==c&&(c=f.x,d=f.width),null==u&&(u=f.y,p=f.height)}h=this._boundingRect=new Jn.A(c,u,d,p)}if(l){var g=bo(l,h);n.scaleX=n.scaleY=g.scale,n.x=g.x,n.y=g.y}o.setClipPath(new be.A({shape:h.plain()}));var m=[];return(0,_.each)(e.named,(function(t){var e;null!=So.get(t.svgNodeTagLower)&&(m.push(t),(e=t.el).silent=!1,e.isGroup&&e.traverse((function(t){t.silent=!1})))})),{root:o,boundingRect:h,named:m}},t.prototype.useGraphic=function(t){var e=this._usedGraphicMap,n=e.get(t);return n||(n=this._freedGraphics.pop()||this._buildGraphic(this._parsedXML),e.set(t,n),n)},t.prototype.freeGraphic=function(t){var e=this._usedGraphicMap,n=e.get(t);n&&(e.removeKey(t),this._freedGraphics.push(n))},t}();for(var Mo=n(2241),Ao=[126,25],Co="\u5357\u6d77\u8bf8\u5c9b",Io=[[[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]]],Eo=0;Eo<Io.length;Eo++)for(var ko=0;ko<Io[Eo].length;ko++)Io[Eo][ko][0]/=10.5,Io[Eo][ko][1]/=-14,Io[Eo][ko][0]+=Ao[0],Io[Eo][ko][1]+=Ao[1];var Lo=n(6771),Do=[[[123.45165252685547,25.73527164402261],[123.49731445312499,25.73527164402261],[123.49731445312499,25.750734064600884],[123.45165252685547,25.750734064600884],[123.45165252685547,25.73527164402261]]];var Po=function(){function t(t,e,n){var i;this.type="geoJSON",this._parsedMap=(0,_.createHashMap)(),this._mapName=t,this._specialAreas=n,this._geoJSON=(i=e,(0,_.isString)(i)?"undefined"!=typeof JSON&&JSON.parse?JSON.parse(i):new Function("return ("+i+");")():i)}return t.prototype.load=function(t,e){e=e||"name";var n=this._parsedMap.get(e);if(!n){var i=this._parseToRegions(e);n=this._parsedMap.set(e,{regions:i,boundingRect:Ro(i)})}var r=(0,_.createHashMap)(),o=[];return(0,_.each)(n.regions,(function(e){var n=e.name;t&&(0,_.hasOwn)(t,n)&&(e=e.cloneShallow(n=t[n])),o.push(e),r.set(n,e)})),{regions:o,boundingRect:n.boundingRect||new Jn.A(0,0,0,0),regionsMap:r}},t.prototype._parseToRegions=function(t){var e,n=this._mapName,i=this._geoJSON;try{e=i?(0,Mo.A)(i,t):[]}catch(r){throw new Error("Invalid geoJson format\n"+r.message)}return function(t,e){if("china"===t){for(var n=0;n<e.length;n++)if(e[n].name===Co)return;e.push(new wo.cn(Co,_.map(Io,(function(t){return{type:"polygon",exterior:t}})),Ao))}}(n,e),(0,_.each)(e,(function(t){var e=t.name;(0,Lo.A)(n,t),function(t,e){"china"===t&&"\u53f0\u6e7e"===e.name&&e.geometries.push({type:"polygon",exterior:Do[0]})}(n,t);var i=this._specialAreas&&this._specialAreas[e];i&&t.transformTo(i.left,i.top,i.width,i.height)}),this),e},t.prototype.getMapForUser=function(){return{geoJson:this._geoJSON,geoJSON:this._geoJSON,specialAreas:this._specialAreas}},t}();function Ro(t){for(var e,n=0;n<t.length;n++){var i=t[n].getBoundingRect();(e=e||i.clone()).union(i)}return e}var Oo=(0,_.createHashMap)();const No=function(t,e,n){if(e.svg){var i=new To(t,e.svg);Oo.set(t,i)}else{var r=e.geoJson||e.geoJSON;r&&!e.features?n=e.specialAreas:r=e;i=new Po(t,r,n);Oo.set(t,i)}},Fo=function(t){return Oo.get(t)},Bo=function(t){var e=Oo.get(t);return e&&"geoJSON"===e.type&&e.getMapForUser()},zo=function(t,e,n){var i=Oo.get(t);if(i)return i.load(e,n)};var Go=n(2863),Vo=n(7780),jo=["rect","circle","line","ellipse","polygon","polyline","path"],Ho=_.createHashMap(jo),Wo=_.createHashMap(jo.concat(["g"])),Uo=_.createHashMap(jo.concat(["g"])),qo=(0,ce.$r)();function Xo(t){var e=t.getItemStyle(),n=t.get("areaColor");return null!=n&&(e.fill=n),e}function Yo(t){var e=t.style;e&&(e.stroke=e.stroke||e.fill,e.fill=null)}var Zo=function(){function t(t){var e=new jt.A;this.uid=(0,Ze.$Q)("ec_map_draw"),this._controller=new Ur(t.getZr()),this._controllerHost={target:e},this.group=e,e.add(this._regionsGroup=new jt.A),e.add(this._svgGroup=new jt.A)}return t.prototype.draw=function(t,e,n,i,r){var o="geo"===t.mainType,a=t.getData&&t.getData();o&&e.eachComponent({mainType:"series",subType:"map"},(function(e){a||e.getHostGeoModel()!==t||(a=e.getData())}));var s=t.coordinateSystem,l=this._regionsGroup,h=this.group,c=s.getTransformInfo(),u=c.raw,d=c.roam;!l.childAt(0)||r?(h.x=d.x,h.y=d.y,h.scaleX=d.scaleX,h.scaleY=d.scaleY,h.dirty()):Ut.oi(h,d,t);var p=a&&a.getVisual("visualMeta")&&a.getVisual("visualMeta").length>0,f={api:n,geo:s,mapOrGeoModel:t,data:a,isVisualEncodedByVisualMap:p,isGeo:o,transformInfoRaw:u};"geoJSON"===s.resourceType?this._buildGeoJSON(f):"geoSVG"===s.resourceType&&this._buildSVG(f),this._updateController(t,e,n),this._updateMapSelectHandler(t,l,n,i)},t.prototype._buildGeoJSON=function(t){var e=this._regionsGroupByName=_.createHashMap(),n=_.createHashMap(),i=this._regionsGroup,r=t.transformInfoRaw,o=t.mapOrGeoModel,a=t.data,s=t.geo.projection,l=s&&s.stream;function h(t,e){return e&&(t=e(t)),t&&[t[0]*r.scaleX+r.x,t[1]*r.scaleY+r.y]}function c(t){for(var e=[],n=!l&&s&&s.project,i=0;i<t.length;++i){var r=h(t[i],n);r&&e.push(r)}return e}function u(t){return{shape:{points:c(t)}}}i.removeAll(),_.each(t.geo.regions,(function(r){var c=r.name,d=e.get(c),p=n.get(c)||{},f=p.dataIdx,g=p.regionModel;d||(d=e.set(c,new jt.A),i.add(d),f=a?a.indexOfName(c):null,g=t.isGeo?o.getRegionModel(c):a?a.getItemModel(f):null,n.set(c,{dataIdx:f,regionModel:g}));var m=[],v=[];_.each(r.geometries,(function(t){if("polygon"===t.type){var e=[t.exterior].concat(t.interiors||[]);l&&(e=ea(e,l)),_.each(e,(function(t){m.push(new yr.A(u(t)))}))}else{var n=t.points;l&&(n=ea(n,l,!0)),_.each(n,(function(t){v.push(new Pn.A(u(t)))}))}}));var y=h(r.getCenter(),s&&s.project);function x(e,n){if(e.length){var i=new F.A({culling:!0,segmentIgnoreThreshold:1,shape:{paths:e}});d.add(i),$o(t,i,f,g),Ko(t,i,c,g,o,f,y),n&&(Yo(i),_.each(i.states,Yo))}}x(m),x(v,!0)})),e.each((function(e,i){var r=n.get(i),a=r.dataIdx,s=r.regionModel;Jo(t,e,i,s,o,a),Qo(t,e,i,s,o),ta(t,e,i,s,o)}),this)},t.prototype._buildSVG=function(t){var e=t.geo.map,n=t.transformInfoRaw;this._svgGroup.x=n.x,this._svgGroup.y=n.y,this._svgGroup.scaleX=n.scaleX,this._svgGroup.scaleY=n.scaleY,this._svgResourceChanged(e)&&(this._freeSVG(),this._useSVG(e));var i=this._svgDispatcherMap=_.createHashMap(),r=!1;_.each(this._svgGraphicRecord.named,(function(e){var n=e.name,o=t.mapOrGeoModel,a=t.data,s=e.svgNodeTagLower,l=e.el,h=a?a.indexOfName(n):null,c=o.getRegionModel(n);(null!=Ho.get(s)&&l instanceof Vo.Ay&&$o(t,l,h,c),l instanceof Vo.Ay&&(l.culling=!0),l.z2EmphasisLift=0,e.namedFrom)||(null!=Uo.get(s)&&Ko(t,l,n,c,o,h,null),Jo(t,l,n,c,o,h),Qo(t,l,n,c,o),null!=Wo.get(s)&&("self"===ta(t,l,n,c,o)&&(r=!0),(i.get(n)||i.set(n,[])).push(l)))}),this),this._enableBlurEntireSVG(r,t)},t.prototype._enableBlurEntireSVG=function(t,e){if(t&&e.isGeo){var n=e.mapOrGeoModel.getModel(["blur","itemStyle"]).getItemStyle().opacity;this._svgGraphicRecord.root.traverse((function(t){if(!t.isGroup){(0,Yt.DW)(t);var e=t.ensureState("blur").style||{};null==e.opacity&&null!=n&&(e.opacity=n),t.ensureState("emphasis")}}))}},t.prototype.remove=function(){this._regionsGroup.removeAll(),this._regionsGroupByName=null,this._svgGroup.removeAll(),this._freeSVG(),this._controller.dispose(),this._controllerHost=null},t.prototype.findHighDownDispatchers=function(t,e){if(null==t)return[];var n=e.coordinateSystem;if("geoJSON"===n.resourceType){var i=this._regionsGroupByName;if(i){var r=i.get(t);return r?[r]:[]}}else if("geoSVG"===n.resourceType)return this._svgDispatcherMap&&this._svgDispatcherMap.get(t)||[]},t.prototype._svgResourceChanged=function(t){return this._svgMapName!==t},t.prototype._useSVG=function(t){var e=Fo(t);if(e&&"geoSVG"===e.type){var n=e.useGraphic(this.uid);this._svgGroup.add(n.root),this._svgGraphicRecord=n,this._svgMapName=t}},t.prototype._freeSVG=function(){var t=this._svgMapName;if(null!=t){var e=Fo(t);e&&"geoSVG"===e.type&&e.freeGraphic(this.uid),this._svgGraphicRecord=null,this._svgDispatcherMap=null,this._svgGroup.removeAll(),this._svgMapName=null}},t.prototype._updateController=function(t,e,n){var i=t.coordinateSystem,r=this._controller,o=this._controllerHost;o.zoomLimit=t.get("scaleLimit"),o.zoom=i.getZoom(),r.enable(t.get("roam")||!1);var a=t.mainType;function s(){var e={type:"geoRoam",componentType:a};return e[a+"Id"]=t.id,e}r.off("pan").on("pan",(function(t){this._mouseDownFlag=!1,qr(o,t.dx,t.dy),n.dispatchAction(_.extend(s(),{dx:t.dx,dy:t.dy,animation:{duration:0}}))}),this),r.off("zoom").on("zoom",(function(t){this._mouseDownFlag=!1,Xr(o,t.scale,t.originX,t.originY),n.dispatchAction(_.extend(s(),{totalZoom:o.zoom,zoom:t.scale,originX:t.originX,originY:t.originY,animation:{duration:0}}))}),this),r.setPointerChecker((function(e,r,o){return i.containPoint([r,o])&&!Zr(e,n,t)}))},t.prototype.resetForLabelLayout=function(){this.group.traverse((function(t){var e=t.getTextContent();e&&(e.ignore=qo(e).ignore)}))},t.prototype._updateMapSelectHandler=function(t,e,n,i){var r=this;e.off("mousedown"),e.off("click"),t.get("selectedMode")&&(e.on("mousedown",(function(){r._mouseDownFlag=!0})),e.on("click",(function(t){r._mouseDownFlag&&(r._mouseDownFlag=!1)})))},t}();function $o(t,e,n,i){var r=i.getModel("itemStyle"),o=i.getModel(["emphasis","itemStyle"]),a=i.getModel(["blur","itemStyle"]),s=i.getModel(["select","itemStyle"]),l=Xo(r),h=Xo(o),c=Xo(s),u=Xo(a),d=t.data;if(d){var p=d.getItemVisual(n,"style"),f=d.getItemVisual(n,"decal");t.isVisualEncodedByVisualMap&&p.fill&&(l.fill=p.fill),f&&(l.decal=(0,Go.w)(f,t.api))}e.setStyle(l),e.style.strokeNoScale=!0,e.ensureState("emphasis").style=h,e.ensureState("select").style=c,e.ensureState("blur").style=u,(0,Yt.DW)(e)}function Ko(t,e,n,i,r,o,a){var s=t.data,l=t.isGeo,h=s&&isNaN(s.get(s.mapDimension("value"),o)),c=s&&s.getItemLayout(o);if(l||h||c&&c.showLabel){var u=l?n:o,d=void 0;(!s||o>=0)&&(d=r);var p=a?{normal:{align:"center",verticalAlign:"middle"}}:null;(0,Jt.qM)(e,(0,Jt.lx)(i),{labelFetcher:d,labelDataIndex:u,defaultText:n},p);var f=e.getTextContent();if(f&&(qo(f).ignore=f.ignore,e.textConfig&&a)){var g=e.getBoundingRect().clone();e.textConfig.layoutRect=g,e.textConfig.position=[(a[0]-g.x)/g.width*100+"%",(a[1]-g.y)/g.height*100+"%"]}e.disableLabelAnimation=!0}else e.removeTextContent(),e.removeTextConfig(),e.disableLabelAnimation=null}function Jo(t,e,n,i,r,o){t.data?t.data.setItemGraphicEl(o,e):(0,Xt.z)(e).eventData={componentType:"geo",componentIndex:r.componentIndex,geoIndex:r.componentIndex,name:n,region:i&&i.option||{}}}function Qo(t,e,n,i,r){t.data||qt.setTooltipConfig({el:e,componentModel:r,itemName:n,itemTooltipOption:i.get("tooltip")})}function ta(t,e,n,i,r){e.highDownSilentOnTouch=!!r.get("selectedMode");var o=i.getModel("emphasis"),a=o.get("focus");return(0,Yt.Lm)(e,a,o.get("blurScope"),o.get("disabled")),t.isGeo&&(0,Yt.ml)(e,r,n),a}function ea(t,e,n){var i,r=[];function o(){i=[]}function a(){i.length&&(r.push(i),i=[])}var s=e({polygonStart:o,polygonEnd:a,lineStart:o,lineEnd:a,point:function(t,e){isFinite(t)&&isFinite(e)&&i.push([t,e])},sphere:function(){}});return!n&&s.polygonStart(),_.each(t,(function(t){s.lineStart();for(var e=0;e<t.length;e++)s.point(t[e][0],t[e][1]);s.lineEnd()})),!n&&s.polygonEnd(),r}const na=Zo;var ia=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return(0,Bt.C6)(e,t),e.prototype.render=function(t,e,n,i){if(!i||"mapToggleSelect"!==i.type||i.from!==this.uid){var r=this.group;if(r.removeAll(),!t.getHostGeoModel()){if(this._mapDraw&&i&&"geoRoam"===i.type&&this._mapDraw.resetForLabelLayout(),i&&"geoRoam"===i.type&&"series"===i.componentType&&i.seriesId===t.id)(o=this._mapDraw)&&r.add(o.group);else if(t.needsDrawMap){var o=this._mapDraw||new na(n);r.add(o.group),o.draw(t,e,n,this,i),this._mapDraw=o}else this._mapDraw&&this._mapDraw.remove(),this._mapDraw=null;t.get("showLegendSymbol")&&e.getComponent("legend")&&this._renderSymbols(t,e,n)}}},e.prototype.remove=function(){this._mapDraw&&this._mapDraw.remove(),this._mapDraw=null,this.group.removeAll()},e.prototype.dispose=function(){this._mapDraw&&this._mapDraw.remove(),this._mapDraw=null},e.prototype._renderSymbols=function(t,e,n){var i=t.originalData,r=this.group;i.each(i.mapDimension("value"),(function(e,n){if(!isNaN(e)){var o=i.getItemLayout(n);if(o&&o.point){var a=o.point,s=o.offset,l=new Cr.A({style:{fill:t.getData().getVisual("style").fill},shape:{cx:a[0]+9*s,cy:a[1],r:3},silent:!0,z2:8+(s?0:Yt.CA+1)});if(!s){var h=t.mainSeries.getData(),c=i.getName(n),u=h.indexOfName(c),d=i.getItemModel(n),p=d.getModel("label"),f=h.getItemGraphicEl(u);(0,Jt.qM)(l,(0,Jt.lx)(d),{labelFetcher:{getFormattedLabel:function(e,n){return t.getFormattedLabel(u,n)}},defaultText:c}),l.disableLabelAnimation=!0,p.get("position")||l.setTextConfig({position:"bottom"}),f.onHoverStateChange=function(t){(0,Yt.Pk)(l,t)}}r.add(l)}}}))},e.type="map",e}(xe.A);const ra=ia;var oa=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n.needsDrawMap=!1,n.seriesGroup=[],n.getTooltipPosition=function(t){if(null!=t){var e=this.getData().getName(t),n=this.coordinateSystem,i=n.getRegion(e);return i&&n.dataToPoint(i.getCenter())}},n}return(0,Bt.C6)(e,t),e.prototype.getInitialData=function(t){for(var e=qn(this,{coordDimensions:["value"],encodeDefaulter:_.curry(Xn.ln,this)}),n=_.createHashMap(),i=[],r=0,o=e.count();r<o;r++){var a=e.getName(r);n.set(a,!0)}var s=zo(this.getMapType(),this.option.nameMap,this.option.nameProperty);return _.each(s.regions,(function(t){var e=t.name;n.get(e)||i.push(e)})),e.appendValues([],i),e},e.prototype.getHostGeoModel=function(){var t=this.option.geoIndex;return null!=t?this.ecModel.getComponent("geo",t):null},e.prototype.getMapType=function(){return(this.getHostGeoModel()||this).option.map},e.prototype.getRawValue=function(t){var e=this.getData();return e.get(e.mapDimension("value"),t)},e.prototype.getRegionModel=function(t){var e=this.getData();return e.getItemModel(e.indexOfName(t))},e.prototype.formatTooltip=function(t,e,n){for(var i=this.getData(),r=this.getRawValue(t),o=i.getName(t),a=this.seriesGroup,s=[],l=0;l<a.length;l++){var h=a[l].originalData.indexOfName(o),c=i.mapDimension("value");isNaN(a[l].originalData.get(c,h))||s.push(a[l].name)}return(0,br.Qx)("section",{header:s.join(", "),noHeader:!s.length,blocks:[(0,br.Qx)("nameValue",{name:o,value:r})]})},e.prototype.setZoom=function(t){this.option.zoom=t},e.prototype.setCenter=function(t){this.option.center=t},e.prototype.getLegendIcon=function(t){var e=t.icon||"roundRect",n=(0,Vt.v5)(e,0,0,t.itemWidth,t.itemHeight,t.itemStyle.fill);return n.setStyle(t.itemStyle),n.style.stroke="none",e.indexOf("empty")>-1&&(n.style.stroke=n.style.fill,n.style.fill="#fff",n.style.lineWidth=2),n},e.type="series.map",e.dependencies=["geo"],e.layoutMode="box",e.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:"#000"},itemStyle:{borderWidth:.5,borderColor:"#444",areaColor:"#eee"},emphasis:{label:{show:!0,color:"rgb(100,0,0)"},itemStyle:{areaColor:"rgba(255,215,0,0.8)"}},select:{label:{show:!0,color:"rgb(100,0,0)"},itemStyle:{color:"rgba(255,215,0,0.8)"}},nameProperty:"name"},e}(Gt.A);const aa=oa;function sa(t){var e={};t.eachSeriesByType("map",(function(t){var n=t.getHostGeoModel(),i=n?"o"+n.id:"i"+t.getMapType();(e[i]=e[i]||[]).push(t)})),_.each(e,(function(t,e){for(var n,i,r,o=(n=_.map(t,(function(t){return t.getData()})),i=t[0].get("mapValueCalculation"),r={},_.each(n,(function(t){t.each(t.mapDimension("value"),(function(e,n){var i="ec-"+t.getName(n);r[i]=r[i]||[],isNaN(e)||r[i].push(e)}))})),n[0].map(n[0].mapDimension("value"),(function(t,e){for(var o="ec-"+n[0].getName(e),a=0,s=1/0,l=-1/0,h=r[o].length,c=0;c<h;c++)s=Math.min(s,r[o][c]),l=Math.max(l,r[o][c]),a+=r[o][c];return 0===h?NaN:"min"===i?s:"max"===i?l:"average"===i?a/h:a}))),a=0;a<t.length;a++)t[a].originalData=t[a].getData();for(a=0;a<t.length;a++)t[a].seriesGroup=t,t[a].needsDrawMap=0===a&&!t[a].getHostGeoModel(),t[a].setData(o.cloneShallow()),t[a].mainSeries=t[0]}))}function la(t){var e={};t.eachSeriesByType("map",(function(n){var i=n.getMapType();if(!n.getHostGeoModel()&&!e[i]){var r={};_.each(n.seriesGroup,(function(e){var n=e.coordinateSystem,i=e.originalData;e.get("showLegendSymbol")&&t.getComponent("legend")&&i.each(i.mapDimension("value"),(function(t,e){var o=i.getName(e),a=n.getRegion(o);if(a&&!isNaN(t)){var s=r[o]||0,l=n.dataToPoint(a.getCenter());r[o]=s+1,i.setItemLayout(e,{point:l,offset:s})}}))}));var o=n.getData();o.each((function(t){var e=o.getName(t),n=o.getItemLayout(t)||{};n.showLabel=!r[e],o.setItemLayout(t,n)})),e[i]=!0}}))}var ha=xi.applyTransform,ca=function(t){function e(e){var n=t.call(this)||this;return n.type="view",n.dimensions=["x","y"],n._roamTransformable=new O.Ay,n._rawTransformable=new O.Ay,n.name=e,n}return(0,Bt.C6)(e,t),e.prototype.setBoundingRect=function(t,e,n,i){return this._rect=new Jn.A(t,e,n,i),this._rect},e.prototype.getBoundingRect=function(){return this._rect},e.prototype.setViewRect=function(t,e,n,i){this._transformTo(t,e,n,i),this._viewRect=new Jn.A(t,e,n,i)},e.prototype._transformTo=function(t,e,n,i){var r=this.getBoundingRect(),o=this._rawTransformable;o.transform=r.calculateTransform(new Jn.A(t,e,n,i));var a=o.parent;o.parent=null,o.decomposeTransform(),o.parent=a,this._updateTransform()},e.prototype.setCenter=function(t,e){t&&(this._center=[(0,Se.lo)(t[0],e.getWidth()),(0,Se.lo)(t[1],e.getHeight())],this._updateCenterAndZoom())},e.prototype.setZoom=function(t){t=t||1;var e=this.zoomLimit;e&&(null!=e.max&&(t=Math.min(e.max,t)),null!=e.min&&(t=Math.max(e.min,t))),this._zoom=t,this._updateCenterAndZoom()},e.prototype.getDefaultCenter=function(){var t=this.getBoundingRect();return[t.x+t.width/2,t.y+t.height/2]},e.prototype.getCenter=function(){return this._center||this.getDefaultCenter()},e.prototype.getZoom=function(){return this._zoom||1},e.prototype.getRoamTransform=function(){return this._roamTransformable.getLocalTransform()},e.prototype._updateCenterAndZoom=function(){var t=this._rawTransformable.getLocalTransform(),e=this._roamTransformable,n=this.getDefaultCenter(),i=this.getCenter(),r=this.getZoom();i=xi.applyTransform([],i,t),n=xi.applyTransform([],n,t),e.originX=i[0],e.originY=i[1],e.x=n[0]-i[0],e.y=n[1]-i[1],e.scaleX=e.scaleY=r,this._updateTransform()},e.prototype._updateTransform=function(){var t=this._roamTransformable,e=this._rawTransformable;e.parent=t,t.updateTransform(),e.updateTransform(),_i.copy(this.transform||(this.transform=[]),e.transform||_i.create()),this._rawTransform=e.getLocalTransform(),this.invTransform=this.invTransform||[],_i.invert(this.invTransform,this.transform),this.decomposeTransform()},e.prototype.getTransformInfo=function(){var t=this._rawTransformable,e=this._roamTransformable,n=new O.Ay;return n.transform=e.transform,n.decomposeTransform(),{roam:{x:n.x,y:n.y,scaleX:n.scaleX,scaleY:n.scaleY},raw:{x:t.x,y:t.y,scaleX:t.scaleX,scaleY:t.scaleY}}},e.prototype.getViewRect=function(){return this._viewRect},e.prototype.getViewRectAfterRoam=function(){var t=this.getBoundingRect().clone();return t.applyTransform(this.transform),t},e.prototype.dataToPoint=function(t,e,n){var i=e?this._rawTransform:this.transform;return n=n||[],i?ha(n,t,i):xi.copy(n,t)},e.prototype.pointToData=function(t){var e=this.invTransform;return e?ha([],t,e):[t[0],t[1]]},e.prototype.convertToPixel=function(t,e,n){var i=ua(e);return i===this?i.dataToPoint(n):null},e.prototype.convertFromPixel=function(t,e,n){var i=ua(e);return i===this?i.pointToData(n):null},e.prototype.containPoint=function(t){return this.getViewRectAfterRoam().contain(t[0],t[1])},e.dimensions=["x","y"],e}(O.Ay);function ua(t){var e=t.seriesModel;return e?e.coordinateSystem:null}const da=ca;var pa={geoJSON:{aspectScale:.75,invertLongitute:!0},geoSVG:{aspectScale:1,invertLongitute:!1}},fa=["lng","lat"],ga=function(t){function e(e,n,i){var r=t.call(this,e)||this;r.dimensions=fa,r.type="geo",r._nameCoordMap=_.createHashMap(),r.map=n;var o,a=i.projection,s=zo(n,i.nameMap,i.nameProperty),l=Fo(n),h=(r.resourceType=l?l.type:null,r.regions=s.regions),c=pa[l.type];if(r._regionsMap=s.regionsMap,r.regions=s.regions,r.projection=a,a)for(var u=0;u<h.length;u++){var d=h[u].getBoundingRect(a);(o=o||d.clone()).union(d)}else o=s.boundingRect;return r.setBoundingRect(o.x,o.y,o.width,o.height),r.aspectScale=a?1:_.retrieve2(i.aspectScale,c.aspectScale),r._invertLongitute=!a&&c.invertLongitute,r}return(0,Bt.C6)(e,t),e.prototype._transformTo=function(t,e,n,i){var r=this.getBoundingRect(),o=this._invertLongitute;r=r.clone(),o&&(r.y=-r.y-r.height);var a=this._rawTransformable;a.transform=r.calculateTransform(new Jn.A(t,e,n,i));var s=a.parent;a.parent=null,a.decomposeTransform(),a.parent=s,o&&(a.scaleY=-a.scaleY),this._updateTransform()},e.prototype.getRegion=function(t){return this._regionsMap.get(t)},e.prototype.getRegionByCoord=function(t){for(var e=this.regions,n=0;n<e.length;n++){var i=e[n];if("geoJSON"===i.type&&i.contain(t))return e[n]}},e.prototype.addGeoCoord=function(t,e){this._nameCoordMap.set(t,e)},e.prototype.getGeoCoord=function(t){var e=this._regionsMap.get(t);return this._nameCoordMap.get(t)||e&&e.getCenter()},e.prototype.dataToPoint=function(t,e,n){if(_.isString(t)&&(t=this.getGeoCoord(t)),t){var i=this.projection;return i&&(t=i.project(t)),t&&this.projectedToPoint(t,e,n)}},e.prototype.pointToData=function(t){var e=this.projection;return e&&(t=e.unproject(t)),t&&this.pointToProjected(t)},e.prototype.pointToProjected=function(e){return t.prototype.pointToData.call(this,e)},e.prototype.projectedToPoint=function(e,n,i){return t.prototype.dataToPoint.call(this,e,n,i)},e.prototype.convertToPixel=function(t,e,n){var i=ma(e);return i===this?i.dataToPoint(n):null},e.prototype.convertFromPixel=function(t,e,n){var i=ma(e);return i===this?i.pointToData(n):null},e}(da);function ma(t){var e=t.geoModel,n=t.seriesModel;return e?e.coordinateSystem:n?n.coordinateSystem||(n.getReferringComponents("geo",ce.US).models[0]||{}).coordinateSystem:null}_.mixin(ga,da);const va=ga;function ya(t,e){var n=t.get("boundingCoords");if(null!=n){var i=n[0],r=n[1];if(isFinite(i[0])&&isFinite(i[1])&&isFinite(r[0])&&isFinite(r[1])){var o=this.projection;if(o){var a=i[0],s=i[1],l=r[0],h=r[1];i=[1/0,1/0],r=[-1/0,-1/0];var c=function(t,e,n,a){for(var s=n-t,l=a-e,h=0;h<=100;h++){var c=h/100,u=o.project([t+s*c,e+l*c]);xi.min(i,i,u),xi.max(r,r,u)}};c(a,s,l,s),c(l,s,l,h),c(l,h,a,h),c(a,h,l,s)}this.setBoundingRect(i[0],i[1],r[0]-i[0],r[1]-i[1])}else 0}var u,d,p,f=this.getBoundingRect(),g=t.get("layoutCenter"),m=t.get("layoutSize"),v=e.getWidth(),y=e.getHeight(),_=f.width/f.height*this.aspectScale,x=!1;if(g&&m&&(u=[Se.lo(g[0],v),Se.lo(g[1],y)],d=Se.lo(m,Math.min(v,y)),isNaN(u[0])||isNaN(u[1])||isNaN(d)||(x=!0)),x)p={},_>1?(p.width=d,p.height=d/_):(p.height=d,p.width=d*_),p.y=u[1]-p.height/2,p.x=u[0]-p.width/2;else{var b=t.getBoxLayoutParams();b.aspect=_,p=Mn.dV(b,{width:v,height:y})}this.setViewRect(p.x,p.y,p.width,p.height),this.setCenter(t.get("center"),e),this.setZoom(t.get("zoom"))}var _a=function(){function t(){this.dimensions=fa}return t.prototype.create=function(t,e){var n=[];function i(t){return{nameProperty:t.get("nameProperty"),aspectScale:t.get("aspectScale"),projection:t.get("projection")}}t.eachComponent("geo",(function(t,r){var o=t.get("map"),a=new va(o+r,o,_.extend({nameMap:t.get("nameMap")},i(t)));a.zoomLimit=t.get("scaleLimit"),n.push(a),t.coordinateSystem=a,a.model=t,a.resize=ya,a.resize(t,e)})),t.eachSeries((function(t){if("geo"===t.get("coordinateSystem")){var e=t.get("geoIndex")||0;t.coordinateSystem=n[e]}}));var r={};return t.eachSeriesByType("map",(function(t){if(!t.getHostGeoModel()){var e=t.getMapType();r[e]=r[e]||[],r[e].push(t)}})),_.each(r,(function(t,r){var o=_.map(t,(function(t){return t.get("nameMap")})),a=new va(r,r,_.extend({nameMap:_.mergeAll(o)},i(t[0])));a.zoomLimit=_.retrieve.apply(null,_.map(t,(function(t){return t.get("scaleLimit")}))),n.push(a),a.resize=ya,a.resize(t[0],e),_.each(t,(function(t){t.coordinateSystem=a,function(t,e){_.each(e.get("geoCoord"),(function(e,n){t.addGeoCoord(n,e)}))}(a,t)}))})),n},t.prototype.getFilledRegions=function(t,e,n,i){for(var r=(t||[]).slice(),o=_.createHashMap(),a=0;a<r.length;a++)o.set(r[a].name,r[a]);var s=zo(e,n,i);return _.each(s.regions,(function(t){var e=t.name;!o.get(e)&&r.push({name:e})})),r},t}();const xa=new _a;var ba=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return(0,Bt.C6)(e,t),e.prototype.init=function(t,e,n){var i=Fo(t.map);if(i&&"geoJSON"===i.type){var r=t.itemStyle=t.itemStyle||{};"color"in r||(r.color="#eee")}this.mergeDefaultAndTheme(t,n),ce.M5(t,"label",["show"])},e.prototype.optionUpdated=function(){var t=this,e=this.option;e.regions=xa.getFilledRegions(e.regions,e.map,e.nameMap,e.nameProperty);var n={};this._optionModelMap=_.reduce(e.regions||[],(function(e,i){var r=i.name;return r&&(e.set(r,new Gi.A(i,t,t.ecModel)),i.selected&&(n[r]=!0)),e}),_.createHashMap()),e.selectedMap||(e.selectedMap=n)},e.prototype.getRegionModel=function(t){return this._optionModelMap.get(t)||new Gi.A(null,this,this.ecModel)},e.prototype.getFormattedLabel=function(t,e){var n=this.getRegionModel(t),i="normal"===e?n.get(["label","formatter"]):n.get(["emphasis","label","formatter"]),r={name:t};return _.isFunction(i)?(r.status=e,i(r)):_.isString(i)?i.replace("{a}",null!=t?t:""):void 0},e.prototype.setZoom=function(t){this.option.zoom=t},e.prototype.setCenter=function(t){this.option.center=t},e.prototype.select=function(t){var e=this.option,n=e.selectedMode;n&&("multiple"!==n&&(e.selectedMap=null),(e.selectedMap||(e.selectedMap={}))[t]=!0)},e.prototype.unSelect=function(t){var e=this.option.selectedMap;e&&(e[t]=!1)},e.prototype.toggleSelected=function(t){this[this.isSelected(t)?"unSelect":"select"](t)},e.prototype.isSelected=function(t){var e=this.option.selectedMap;return!(!e||!e[t])},e.type="geo",e.layoutMode="box",e.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:"#000"},itemStyle:{borderWidth:.5,borderColor:"#444"},emphasis:{label:{show:!0,color:"rgb(100,0,0)"},itemStyle:{color:"rgba(255,215,0,0.8)"}},select:{label:{show:!0,color:"rgb(100,0,0)"},itemStyle:{color:"rgba(255,215,0,0.8)"}},regions:[]},e}(oi.A);const wa=ba;function Sa(t,e){return t.pointToProjected?t.pointToProjected(e):t.pointToData(e)}function Ta(t,e,n,i){var r=t.getZoom(),o=t.getCenter(),a=e.zoom,s=t.projectedToPoint?t.projectedToPoint(o):t.dataToPoint(o);if(null!=e.dx&&null!=e.dy&&(s[0]-=e.dx,s[1]-=e.dy,t.setCenter(Sa(t,s),i)),null!=a){if(n){var l=n.min||0,h=n.max||1/0;a=Math.max(Math.min(r*a,h),l)/r}t.scaleX*=a,t.scaleY*=a;var c=(e.originX-t.x)*(a-1),u=(e.originY-t.y)*(a-1);t.x-=c,t.y-=u,t.updateTransform(),t.setCenter(Sa(t,s),i),t.setZoom(a*r)}return{center:t.getCenter(),zoom:t.getZoom()}}var Ma=n(3152);const Aa=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n.focusBlurEnabled=!0,n}return(0,Bt.C6)(e,t),e.prototype.init=function(t,e){this._api=e},e.prototype.render=function(t,e,n,i){if(this._model=t,!t.get("show"))return this._mapDraw&&this._mapDraw.remove(),void(this._mapDraw=null);this._mapDraw||(this._mapDraw=new na(n));var r=this._mapDraw;r.draw(t,e,n,this,i),r.group.on("click",this._handleRegionClick,this),r.group.silent=t.get("silent"),this.group.add(r.group),this.updateSelectStatus(t,e,n)},e.prototype._handleRegionClick=function(t){var e;(0,Ma.R)(t.target,(function(t){return null!=(e=(0,Xt.z)(t).eventData)}),!0),e&&this._api.dispatchAction({type:"geoToggleSelect",geoId:this._model.id,name:e.name})},e.prototype.updateSelectStatus=function(t,e,n){var i=this;this._mapDraw.group.traverse((function(t){var e=(0,Xt.z)(t).eventData;if(e)return i._model.isSelected(e.name)?n.enterSelect(t):n.leaveSelect(t),!0}))},e.prototype.findHighDownDispatchers=function(t){return this._mapDraw&&this._mapDraw.findHighDownDispatchers(t,this._model)},e.prototype.dispose=function(){this._mapDraw&&this._mapDraw.remove()},e.type="geo",e}(ri.A);function Ca(t,e,n){No(t,e,n)}function Ia(t){function e(e,n){n.update="geo:updateSelectStatus",t.registerAction(n,(function(t,n){var i={},r=[];return n.eachComponent({mainType:"geo",query:t},(function(n){n[e](t.name);var o=n.coordinateSystem;(0,_.each)(o.regions,(function(t){i[t.name]=n.isSelected(t.name)||!1}));var a=[];(0,_.each)(i,(function(t,e){i[e]&&a.push(e)})),r.push({geoIndex:n.componentIndex,name:a})})),{selected:i,allSelected:r,name:t.name}}))}t.registerCoordinateSystem("geo",xa),t.registerComponentModel(wa),t.registerComponentView(Aa),t.registerImpl("registerMap",Ca),t.registerImpl("getMap",(function(t){return Bo(t)})),e("toggleSelected",{type:"geoToggleSelect",event:"geoselectchanged"}),e("select",{type:"geoSelect",event:"geoselected"}),e("unSelect",{type:"geoUnSelect",event:"geounselected"}),t.registerAction({type:"geoRoam",event:"geoRoam",update:"updateTransform"},(function(t,e,n){var i=t.componentType||"series";e.eachComponent({mainType:i,query:t},(function(e){var r=e.coordinateSystem;if("geo"===r.type){var o=Ta(r,t,e.get("scaleLimit"),n);e.setCenter&&e.setCenter(o.center),e.setZoom&&e.setZoom(o.zoom),"series"===i&&(0,_.each)(e.seriesGroup,(function(t){t.setCenter(o.center),t.setZoom(o.zoom)}))}}))}))}var Ea=n(8526);function ka(t,e){var n=t.isExpand?t.children:[],i=t.parentNode.children,r=t.hierNode.i?i[t.hierNode.i-1]:null;if(n.length){!function(t){var e=t.children,n=e.length,i=0,r=0;for(;--n>=0;){var o=e[n];o.hierNode.prelim+=i,o.hierNode.modifier+=i,r+=o.hierNode.change,i+=o.hierNode.shift+r}}(t);var o=(n[0].hierNode.prelim+n[n.length-1].hierNode.prelim)/2;r?(t.hierNode.prelim=r.hierNode.prelim+e(t,r),t.hierNode.modifier=t.hierNode.prelim-o):t.hierNode.prelim=o}else r&&(t.hierNode.prelim=r.hierNode.prelim+e(t,r));t.parentNode.hierNode.defaultAncestor=function(t,e,n,i){if(e){for(var r=t,o=t,a=o.parentNode.children[0],s=e,l=r.hierNode.modifier,h=o.hierNode.modifier,c=a.hierNode.modifier,u=s.hierNode.modifier;s=Oa(s),o=Na(o),s&&o;){r=Oa(r),a=Na(a),r.hierNode.ancestor=t;var d=s.hierNode.prelim+u-o.hierNode.prelim-h+i(s,o);d>0&&(Ba(Fa(s,t,n),t,d),h+=d,l+=d),u+=s.hierNode.modifier,h+=o.hierNode.modifier,l+=r.hierNode.modifier,c+=a.hierNode.modifier}s&&!Oa(r)&&(r.hierNode.thread=s,r.hierNode.modifier+=u-l),o&&!Na(a)&&(a.hierNode.thread=o,a.hierNode.modifier+=h-c,n=t)}return n}(t,r,t.parentNode.hierNode.defaultAncestor||i[0],e)}function La(t){var e=t.hierNode.prelim+t.parentNode.hierNode.modifier;t.setLayout({x:e},!0),t.hierNode.modifier+=t.parentNode.hierNode.modifier}function Da(t){return arguments.length?t:za}function Pa(t,e){return t-=Math.PI/2,{x:e*Math.cos(t),y:e*Math.sin(t)}}function Ra(t,e){return Mn.dV(t.getBoxLayoutParams(),{width:e.getWidth(),height:e.getHeight()})}function Oa(t){var e=t.children;return e.length&&t.isExpand?e[e.length-1]:t.hierNode.thread}function Na(t){var e=t.children;return e.length&&t.isExpand?e[0]:t.hierNode.thread}function Fa(t,e,n){return t.hierNode.ancestor.parentNode===e.parentNode?t.hierNode.ancestor:n}function Ba(t,e,n){var i=n/(e.hierNode.i-t.hierNode.i);e.hierNode.change-=i,e.hierNode.shift+=n,e.hierNode.modifier+=n,e.hierNode.prelim+=n,t.hierNode.change+=i}function za(t,e){return t.parentNode===e.parentNode?1:2}var Ga=n(4150),Va=function(){this.parentPoint=[],this.childPoints=[]},ja=function(t){function e(e){return t.call(this,e)||this}return(0,Bt.C6)(e,t),e.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},e.prototype.getDefaultShape=function(){return new Va},e.prototype.buildPath=function(t,e){var n=e.childPoints,i=n.length,r=e.parentPoint,o=n[0],a=n[i-1];if(1===i)return t.moveTo(r[0],r[1]),void t.lineTo(o[0],o[1]);var s=e.orient,l="TB"===s||"BT"===s?0:1,h=1-l,c=(0,Se.lo)(e.forkPosition,1),u=[];u[l]=r[l],u[h]=r[h]+(a[h]-r[h])*c,t.moveTo(r[0],r[1]),t.lineTo(u[0],u[1]),t.moveTo(o[0],o[1]),u[l]=o[l],t.lineTo(u[0],u[1]),u[l]=a[l],t.lineTo(u[0],u[1]),t.lineTo(a[0],a[1]);for(var d=1;d<i-1;d++){var p=n[d];t.moveTo(p[0],p[1]),u[l]=p[l],t.lineTo(u[0],u[1])}},e}(s.Ay),Ha=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n._mainGroup=new jt.A,n}return(0,Bt.C6)(e,t),e.prototype.init=function(t,e){this._controller=new Ur(e.getZr()),this._controllerHost={target:this.group},this.group.add(this._mainGroup)},e.prototype.render=function(t,e,n){var i=t.getData(),r=t.layoutInfo,o=this._mainGroup;"radial"===t.get("layout")?(o.x=r.x+r.width/2,o.y=r.y+r.height/2):(o.x=r.x,o.y=r.y),this._updateViewCoordSys(t,n),this._updateController(t,e,n);var a=this._data;i.diff(a).add((function(e){Wa(i,e)&&Ua(i,e,null,o,t)})).update((function(e,n){var r=a.getItemGraphicEl(n);Wa(i,e)?Ua(i,e,r,o,t):r&&Ya(a,n,r,o,t)})).remove((function(e){var n=a.getItemGraphicEl(e);n&&Ya(a,e,n,o,t)})).execute(),this._nodeScaleRatio=t.get("nodeScaleRatio"),this._updateNodeAndLinkScale(t),!0===t.get("expandAndCollapse")&&i.eachItemGraphicEl((function(e,i){e.off("click").on("click",(function(){n.dispatchAction({type:"treeExpandAndCollapse",seriesId:t.id,dataIndex:i})}))})),this._data=i},e.prototype._updateViewCoordSys=function(t,e){var n=t.getData(),i=[];n.each((function(t){var e=n.getItemLayout(t);!e||isNaN(e.x)||isNaN(e.y)||i.push([+e.x,+e.y])}));var r=[],o=[];Ga.Cr(i,r,o);var a=this._min,s=this._max;o[0]-r[0]==0&&(r[0]=a?a[0]:r[0]-1,o[0]=s?s[0]:o[0]+1),o[1]-r[1]==0&&(r[1]=a?a[1]:r[1]-1,o[1]=s?s[1]:o[1]+1);var l=t.coordinateSystem=new da;l.zoomLimit=t.get("scaleLimit"),l.setBoundingRect(r[0],r[1],o[0]-r[0],o[1]-r[1]),l.setCenter(t.get("center"),e),l.setZoom(t.get("zoom")),this.group.attr({x:l.x,y:l.y,scaleX:l.scaleX,scaleY:l.scaleY}),this._min=r,this._max=o},e.prototype._updateController=function(t,e,n){var i=this,r=this._controller,o=this._controllerHost,a=this.group;r.setPointerChecker((function(e,i,r){var o=a.getBoundingRect();return o.applyTransform(a.transform),o.contain(i,r)&&!Zr(e,n,t)})),r.enable(t.get("roam")),o.zoomLimit=t.get("scaleLimit"),o.zoom=t.coordinateSystem.getZoom(),r.off("pan").off("zoom").on("pan",(function(e){qr(o,e.dx,e.dy),n.dispatchAction({seriesId:t.id,type:"treeRoam",dx:e.dx,dy:e.dy})})).on("zoom",(function(e){Xr(o,e.scale,e.originX,e.originY),n.dispatchAction({seriesId:t.id,type:"treeRoam",zoom:e.scale,originX:e.originX,originY:e.originY}),i._updateNodeAndLinkScale(t),n.updateLabelLayout()}))},e.prototype._updateNodeAndLinkScale=function(t){var e=t.getData(),n=this._getNodeGlobalScale(t);e.eachItemGraphicEl((function(t,e){t.setSymbolScale(n)}))},e.prototype._getNodeGlobalScale=function(t){var e=t.coordinateSystem;if("view"!==e.type)return 1;var n=this._nodeScaleRatio,i=e.scaleX||1;return((e.getZoom()-1)*n+1)/i},e.prototype.dispose=function(){this._controller&&this._controller.dispose(),this._controllerHost=null},e.prototype.remove=function(){this._mainGroup.removeAll(),this._data=null},e.type="tree",e}(xe.A);function Wa(t,e){var n=t.getItemLayout(e);return n&&!isNaN(n.x)&&!isNaN(n.y)}function Ua(t,e,n,i,r){var o=!n,a=t.tree.getNodeByDataIndex(e),s=a.getModel(),l=a.getVisual("style").fill,h=!1===a.isExpand&&0!==a.children.length?l:"#fff",c=t.tree.root,u=a.parentNode===c?a:a.parentNode||a,d=t.getItemGraphicEl(u.dataIndex),p=u.getLayout(),f=d?{x:d.__oldX,y:d.__oldY,rawX:d.__radialOldRawX,rawY:d.__radialOldRawY}:p,g=a.getLayout();o?((n=new te(t,e,null,{symbolInnerColor:h,useNameLabel:!0})).x=f.x,n.y=f.y):n.updateData(t,e,null,{symbolInnerColor:h,useNameLabel:!0}),n.__radialOldRawX=n.__radialRawX,n.__radialOldRawY=n.__radialRawY,n.__radialRawX=g.rawX,n.__radialRawY=g.rawY,i.add(n),t.setItemGraphicEl(e,n),n.__oldX=n.x,n.__oldY=n.y,Ut.oi(n,{x:g.x,y:g.y},r);var m=n.getSymbolPath();if("radial"===r.get("layout")){var v=c.children[0],y=v.getLayout(),x=v.children.length,b=void 0,w=void 0;if(g.x===y.x&&!0===a.isExpand&&v.children.length){var S={x:(v.children[0].getLayout().x+v.children[x-1].getLayout().x)/2,y:(v.children[0].getLayout().y+v.children[x-1].getLayout().y)/2};(b=Math.atan2(S.y-y.y,S.x-y.x))<0&&(b=2*Math.PI+b),(w=S.x<y.x)&&(b-=Math.PI)}else(b=Math.atan2(g.y-y.y,g.x-y.x))<0&&(b=2*Math.PI+b),0===a.children.length||0!==a.children.length&&!1===a.isExpand?(w=g.x<y.x)&&(b-=Math.PI):(w=g.x>y.x)||(b-=Math.PI);var T=w?"left":"right",M=s.getModel("label"),A=M.get("rotate"),C=A*(Math.PI/180),I=m.getTextContent();I&&(m.setTextConfig({position:M.get("position")||T,rotation:null==A?-b:C,origin:"center"}),I.setStyle("verticalAlign","middle"))}var E=s.get(["emphasis","focus"]),k="relative"===E?_.concatArray(a.getAncestorsIndices(),a.getDescendantIndices()):"ancestor"===E?a.getAncestorsIndices():"descendant"===E?a.getDescendantIndices():null;k&&((0,Xt.z)(n).focus=k),function(t,e,n,i,r,o,a,s){var l=e.getModel(),h=t.get("edgeShape"),c=t.get("layout"),u=t.getOrient(),d=t.get(["lineStyle","curveness"]),p=t.get("edgeForkPosition"),f=l.getModel("lineStyle").getLineStyle(),g=i.__edge;if("curve"===h)e.parentNode&&e.parentNode!==n&&(g||(g=i.__edge=new Ea.A({shape:Za(c,u,d,r,r)})),Ut.oi(g,{shape:Za(c,u,d,o,a)},t));else if("polyline"===h)if("orthogonal"===c){if(e!==n&&e.children&&0!==e.children.length&&!0===e.isExpand){for(var m=e.children,v=[],y=0;y<m.length;y++){var x=m[y].getLayout();v.push([x.x,x.y])}g||(g=i.__edge=new ja({shape:{parentPoint:[a.x,a.y],childPoints:[[a.x,a.y]],orient:u,forkPosition:p}})),Ut.oi(g,{shape:{parentPoint:[a.x,a.y],childPoints:v}},t)}}else 0;g&&("polyline"!==h||e.isExpand)&&(g.useStyle(_.defaults({strokeNoScale:!0,fill:null},f)),(0,Yt.Mx)(g,l,"lineStyle"),(0,Yt.DW)(g),s.add(g))}(r,a,c,n,f,p,g,i),n.__edge&&(n.onHoverStateChange=function(e){if("blur"!==e){var i=a.parentNode&&t.getItemGraphicEl(a.parentNode.dataIndex);i&&i.hoverState===Yt.zX||(0,Yt.Pk)(n.__edge,e)}})}function qa(t,e,n,i,r){var o=Xa(e.tree.root,t),a=o.source,s=o.sourceLayout,l=e.getItemGraphicEl(t.dataIndex);if(l){var h=e.getItemGraphicEl(a.dataIndex).__edge,c=l.__edge||(!1===a.isExpand||1===a.children.length?h:void 0),u=i.get("edgeShape"),d=i.get("layout"),p=i.get("orient"),f=i.get(["lineStyle","curveness"]);c&&("curve"===u?Ut.Nz(c,{shape:Za(d,p,f,s,s),style:{opacity:0}},i,{cb:function(){n.remove(c)},removeOpt:r}):"polyline"===u&&"orthogonal"===i.get("layout")&&Ut.Nz(c,{shape:{parentPoint:[s.x,s.y],childPoints:[[s.x,s.y]]},style:{opacity:0}},i,{cb:function(){n.remove(c)},removeOpt:r}))}}function Xa(t,e){for(var n,i=e.parentNode===t?e:e.parentNode||e;null==(n=i.getLayout());)i=i.parentNode===t?i:i.parentNode||i;return{source:i,sourceLayout:n}}function Ya(t,e,n,i,r){var o=t.tree.getNodeByDataIndex(e),a=Xa(t.tree.root,o).sourceLayout,s={duration:r.get("animationDurationUpdate"),easing:r.get("animationEasingUpdate")};Ut.Nz(n,{x:a.x+1,y:a.y+1},r,{cb:function(){i.remove(n),t.setItemGraphicEl(e,null)},removeOpt:s}),n.fadeOut(null,t.hostModel,{fadeLabel:!0,animation:s}),o.children.forEach((function(e){qa(e,t,i,r,s)})),qa(o,t,i,r,s)}function Za(t,e,n,i,r){var o,a,s,l,h,c,u,d;if("radial"===t){h=i.rawX,u=i.rawY,c=r.rawX,d=r.rawY;var p=Pa(h,u),f=Pa(h,u+(d-u)*n),g=Pa(c,d+(u-d)*n),m=Pa(c,d);return{x1:p.x||0,y1:p.y||0,x2:m.x||0,y2:m.y||0,cpx1:f.x||0,cpy1:f.y||0,cpx2:g.x||0,cpy2:g.y||0}}return h=i.x,u=i.y,c=r.x,d=r.y,"LR"!==e&&"RL"!==e||(o=h+(c-h)*n,a=u,s=c+(h-c)*n,l=d),"TB"!==e&&"BT"!==e||(o=h,a=u+(d-u)*n,s=c,l=d+(u-d)*n),{x1:h,y1:u,x2:c,y2:d,cpx1:o,cpy1:a,cpx2:s,cpy2:l}}const $a=Ha;var Ka=n(8052),Ja=function(){function t(t,e){this.depth=0,this.height=0,this.dataIndex=-1,this.children=[],this.viewChildren=[],this.isExpand=!1,this.name=t||"",this.hostTree=e}return t.prototype.isRemoved=function(){return this.dataIndex<0},t.prototype.eachNode=function(t,e,n){_.isFunction(t)&&(n=e,e=t,t=null),t=t||{},_.isString(t)&&(t={order:t});var i,r=t.order||"preorder",o=this[t.attr||"children"];"preorder"===r&&(i=e.call(n,this));for(var a=0;!i&&a<o.length;a++)o[a].eachNode(t,e,n);"postorder"===r&&e.call(n,this)},t.prototype.updateDepthAndHeight=function(t){var e=0;this.depth=t;for(var n=0;n<this.children.length;n++){var i=this.children[n];i.updateDepthAndHeight(t+1),i.height>e&&(e=i.height)}this.height=e+1},t.prototype.getNodeById=function(t){if(this.getId()===t)return this;for(var e=0,n=this.children,i=n.length;e<i;e++){var r=n[e].getNodeById(t);if(r)return r}},t.prototype.contains=function(t){if(t===this)return!0;for(var e=0,n=this.children,i=n.length;e<i;e++){var r=n[e].contains(t);if(r)return r}},t.prototype.getAncestors=function(t){for(var e=[],n=t?this:this.parentNode;n;)e.push(n),n=n.parentNode;return e.reverse(),e},t.prototype.getAncestorsIndices=function(){for(var t=[],e=this;e;)t.push(e.dataIndex),e=e.parentNode;return t.reverse(),t},t.prototype.getDescendantIndices=function(){var t=[];return this.eachNode((function(e){t.push(e.dataIndex)})),t},t.prototype.getValue=function(t){var e=this.hostTree.data;return e.getStore().get(e.getDimensionIndex(t||"value"),this.dataIndex)},t.prototype.setLayout=function(t,e){this.dataIndex>=0&&this.hostTree.data.setItemLayout(this.dataIndex,t,e)},t.prototype.getLayout=function(){return this.hostTree.data.getItemLayout(this.dataIndex)},t.prototype.getModel=function(t){if(!(this.dataIndex<0))return this.hostTree.data.getItemModel(this.dataIndex).getModel(t)},t.prototype.getLevelModel=function(){return(this.hostTree.levelModels||[])[this.depth]},t.prototype.setVisual=function(t,e){this.dataIndex>=0&&this.hostTree.data.setItemVisual(this.dataIndex,t,e)},t.prototype.getVisual=function(t){return this.hostTree.data.getItemVisual(this.dataIndex,t)},t.prototype.getRawIndex=function(){return this.hostTree.data.getRawIndex(this.dataIndex)},t.prototype.getId=function(){return this.hostTree.data.getId(this.dataIndex)},t.prototype.getChildIndex=function(){if(this.parentNode){for(var t=this.parentNode.children,e=0;e<t.length;++e)if(t[e]===this)return e;return-1}return-1},t.prototype.isAncestorOf=function(t){for(var e=t.parentNode;e;){if(e===this)return!0;e=e.parentNode}return!1},t.prototype.isDescendantOf=function(t){return t!==this&&t.isAncestorOf(this)},t}(),Qa=function(){function t(t){this.type="tree",this._nodes=[],this.hostModel=t}return t.prototype.eachNode=function(t,e,n){this.root.eachNode(t,e,n)},t.prototype.getNodeByDataIndex=function(t){var e=this.data.getRawIndex(t);return this._nodes[e]},t.prototype.getNodeById=function(t){return this.root.getNodeById(t)},t.prototype.update=function(){for(var t=this.data,e=this._nodes,n=0,i=e.length;n<i;n++)e[n].dataIndex=-1;for(n=0,i=t.count();n<i;n++)e[t.getRawIndex(n)].dataIndex=n},t.prototype.clearLayouts=function(){this.data.clearItemLayouts()},t.createTree=function(e,n,i){var r=new t(n),o=[],a=1;!function t(e,n){var i=e.value;a=Math.max(a,_.isArray(i)?i.length:1),o.push(e);var s=new Ja((0,ce.vS)(e.name,""),r);n?function(t,e){var n=e.children;if(t.parentNode===e)return;n.push(t),t.parentNode=e}(s,n):r.root=s,r._nodes.push(s);var l=e.children;if(l)for(var h=0;h<l.length;h++)t(l[h],s)}(e),r.root.updateDepthAndHeight(0);var s=(0,Wn.A)(o,{coordDimensions:["value"],dimensionsCount:a}).dimensions,l=new Un.A(s,n);return l.initData(o),i&&i(l),(0,Ka.A)({mainData:l,struct:r,structAttr:"tree"}),r.update(),r},t}();const ts=Qa;function es(t,e,n){if(t&&_.indexOf(e,t.type)>=0){var i=n.getData().tree.root,r=t.targetNode;if(_.isString(r)&&(r=i.getNodeById(r)),r&&i.contains(r))return{node:r};var o=t.targetNodeId;if(null!=o&&(r=i.getNodeById(o)))return{node:r}}}function ns(t){for(var e=[];t;)(t=t.parentNode)&&e.push(t);return e.reverse()}function is(t,e){var n=ns(t);return _.indexOf(n,e)>=0}function rs(t,e){for(var n=[];t;){var i=t.dataIndex;n.push({name:t.name,dataIndex:i,value:e.getRawValue(i)}),t=t.parentNode}return n.reverse(),n}var os=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.hasSymbolVisual=!0,e.ignoreStyleOnData=!0,e}return(0,Bt.C6)(e,t),e.prototype.getInitialData=function(t){var e={name:t.name,children:t.data},n=t.leaves||{},i=new Gi.A(n,this,this.ecModel),r=ts.createTree(e,this,(function(t){t.wrapMethod("getItemModel",(function(t,e){var n=r.getNodeByDataIndex(e);return n&&n.children.length&&n.isExpand||(t.parentModel=i),t}))}));var o=0;r.eachNode("preorder",(function(t){t.depth>o&&(o=t.depth)}));var a=t.expandAndCollapse&&t.initialTreeDepth>=0?t.initialTreeDepth:o;return r.root.eachNode("preorder",(function(t){var e=t.hostTree.data.getRawDataItem(t.dataIndex);t.isExpand=e&&null!=e.collapsed?!e.collapsed:t.depth<=a})),r.data},e.prototype.getOrient=function(){var t=this.get("orient");return"horizontal"===t?t="LR":"vertical"===t&&(t="TB"),t},e.prototype.setZoom=function(t){this.option.zoom=t},e.prototype.setCenter=function(t){this.option.center=t},e.prototype.formatTooltip=function(t,e,n){for(var i=this.getData().tree,r=i.root.children[0],o=i.getNodeByDataIndex(t),a=o.getValue(),s=o.name;o&&o!==r;)s=o.parentNode.name+"."+s,o=o.parentNode;return(0,br.Qx)("nameValue",{name:s,value:a,noValue:isNaN(a)||null==a})},e.prototype.getDataParams=function(e){var n=t.prototype.getDataParams.apply(this,arguments),i=this.getData().tree.getNodeByDataIndex(e);return n.treeAncestors=rs(i,this),n.collapsed=!i.isExpand,n},e.type="series.tree",e.layoutMode="box",e.defaultOption={z:2,coordinateSystem:"view",left:"12%",top:"12%",right:"12%",bottom:"12%",layout:"orthogonal",edgeShape:"curve",edgeForkPosition:"50%",roam:!1,nodeScaleRatio:.4,center:null,zoom:1,orient:"LR",symbol:"emptyCircle",symbolSize:7,expandAndCollapse:!0,initialTreeDepth:2,lineStyle:{color:"#ccc",width:1.5,curveness:.5},itemStyle:{color:"lightsteelblue",borderWidth:1.5},label:{show:!0},animationEasing:"linear",animationDuration:700,animationDurationUpdate:500},e}(Gt.A);const as=os;function ss(t,e){for(var n,i=[t];n=i.pop();)if(e(n),n.isExpand){var r=n.children;if(r.length)for(var o=r.length-1;o>=0;o--)i.push(r[o])}}function ls(t,e){t.eachSeriesByType("tree",(function(t){!function(t,e){var n=Ra(t,e);t.layoutInfo=n;var i=t.get("layout"),r=0,o=0,a=null;"radial"===i?(r=2*Math.PI,o=Math.min(n.height,n.width)/2,a=Da((function(t,e){return(t.parentNode===e.parentNode?1:2)/t.depth}))):(r=n.width,o=n.height,a=Da());var s=t.getData().tree.root,l=s.children[0];if(l){!function(t){var e=t;e.hierNode={defaultAncestor:null,ancestor:e,prelim:0,modifier:0,change:0,shift:0,i:0,thread:null};for(var n,i,r=[e];n=r.pop();)if(i=n.children,n.isExpand&&i.length)for(var o=i.length-1;o>=0;o--){var a=i[o];a.hierNode={defaultAncestor:null,ancestor:a,prelim:0,modifier:0,change:0,shift:0,i:o,thread:null},r.push(a)}}(s),function(t,e,n){for(var i,r=[t],o=[];i=r.pop();)if(o.push(i),i.isExpand){var a=i.children;if(a.length)for(var s=0;s<a.length;s++)r.push(a[s])}for(;i=o.pop();)e(i,n)}(l,ka,a),s.hierNode.modifier=-l.hierNode.prelim,ss(l,La);var h=l,c=l,u=l;ss(l,(function(t){var e=t.getLayout().x;e<h.getLayout().x&&(h=t),e>c.getLayout().x&&(c=t),t.depth>u.depth&&(u=t)}));var d=h===c?1:a(h,c)/2,p=d-h.getLayout().x,f=0,g=0,m=0,v=0;if("radial"===i)f=r/(c.getLayout().x+d+p),g=o/(u.depth-1||1),ss(l,(function(t){m=(t.getLayout().x+p)*f,v=(t.depth-1)*g;var e=Pa(m,v);t.setLayout({x:e.x,y:e.y,rawX:m,rawY:v},!0)}));else{var y=t.getOrient();"RL"===y||"LR"===y?(g=o/(c.getLayout().x+d+p),f=r/(u.depth-1||1),ss(l,(function(t){v=(t.getLayout().x+p)*g,m="LR"===y?(t.depth-1)*f:r-(t.depth-1)*f,t.setLayout({x:m,y:v},!0)}))):"TB"!==y&&"BT"!==y||(f=r/(c.getLayout().x+d+p),g=o/(u.depth-1||1),ss(l,(function(t){m=(t.getLayout().x+p)*f,v="TB"===y?(t.depth-1)*g:o-(t.depth-1)*g,t.setLayout({x:m,y:v},!0)})))}}}(t,e)}))}function hs(t){t.eachSeriesByType("tree",(function(t){var e=t.getData();e.tree.eachNode((function(t){var n=t.getModel().getModel("itemStyle").getItemStyle(),i=e.ensureUniqueItemVisual(t.dataIndex,"style");(0,_.extend)(i,n)}))}))}var cs=["treemapZoomToNode","treemapRender","treemapMove"];var us=n(8644);function ds(t){var e=t.getData().tree,n={};e.eachNode((function(e){for(var i=e;i&&i.depth>1;)i=i.parentNode;var r=(0,us.x)(t.ecModel,i.name||i.dataIndex+"",n);e.setVisual("decal",r)}))}function ps(t){var e=0;_.each(t.children,(function(t){ps(t);var n=t.value;_.isArray(n)&&(n=n[0]),e+=n}));var n=t.value;_.isArray(n)&&(n=n[0]),(null==n||isNaN(n))&&(n=e),n<0&&(n=0),_.isArray(t.value)?t.value[0]=n:t.value=n}const fs=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n.preventUsingHoverLayer=!0,n}return(0,Bt.C6)(e,t),e.prototype.getInitialData=function(t,e){var n={name:t.name,children:t.data};ps(n);var i=t.levels||[],r=this.designatedVisualItemStyle={},o=new Gi.A({itemStyle:r},this,e);i=t.levels=function(t,e){var n,i,r=(0,ce.qB)(e.get("color")),o=(0,ce.qB)(e.get(["aria","decal","decals"]));if(!r)return;t=t||[],_.each(t,(function(t){var e=new Gi.A(t),r=e.get("color"),o=e.get("decal");(e.get(["itemStyle","color"])||r&&"none"!==r)&&(n=!0),(e.get(["itemStyle","decal"])||o&&"none"!==o)&&(i=!0)}));var a=t[0]||(t[0]={});n||(a.color=r.slice());!i&&o&&(a.decal=o.slice());return t}(i,e);var a=_.map(i||[],(function(t){return new Gi.A(t,o,e)}),this),s=ts.createTree(n,this,(function(t){t.wrapMethod("getItemModel",(function(t,e){var n=s.getNodeByDataIndex(e),i=n?a[n.depth]:null;return t.parentModel=i||o,t}))}));return s.data},e.prototype.optionUpdated=function(){this.resetViewRoot()},e.prototype.formatTooltip=function(t,e,n){var i=this.getData(),r=this.getRawValue(t),o=i.getName(t);return(0,br.Qx)("nameValue",{name:o,value:r})},e.prototype.getDataParams=function(e){var n=t.prototype.getDataParams.apply(this,arguments),i=this.getData().tree.getNodeByDataIndex(e);return n.treeAncestors=rs(i,this),n.treePathInfo=n.treeAncestors,n},e.prototype.setLayoutInfo=function(t){this.layoutInfo=this.layoutInfo||{},_.extend(this.layoutInfo,t)},e.prototype.mapIdToIndex=function(t){var e=this._idIndexMap;e||(e=this._idIndexMap=_.createHashMap(),this._idIndexMapCount=0);var n=e.get(t);return null==n&&e.set(t,n=this._idIndexMapCount++),n},e.prototype.getViewRoot=function(){return this._viewRoot},e.prototype.resetViewRoot=function(t){t?this._viewRoot=t:t=this._viewRoot;var e=this.getRawData().tree.root;t&&(t===e||e.contains(t))||(this._viewRoot=e)},e.prototype.enableAriaDecal=function(){ds(this)},e.type="series.treemap",e.layoutMode="box",e.defaultOption={progressive:0,left:"center",top:"middle",width:"80%",height:"80%",sort:!0,clipWindow:"origin",squareRatio:.5*(1+Math.sqrt(5)),leafDepth:null,drillDownIcon:"\u25b6",zoomToNodeRatio:.1024,scaleLimit:null,roam:!0,nodeClick:"zoomToNode",animation:!0,animationDurationUpdate:900,animationEasing:"quinticInOut",breadcrumb:{show:!0,height:22,left:"center",top:"bottom",emptyItemWidth:25,itemStyle:{color:"rgba(0,0,0,0.7)",textStyle:{color:"#fff"}},emphasis:{itemStyle:{color:"rgba(0,0,0,0.9)"}}},label:{show:!0,distance:0,padding:5,position:"inside",color:"#fff",overflow:"truncate"},upperLabel:{show:!1,position:[0,"50%"],height:20,overflow:"truncate",verticalAlign:"middle"},itemStyle:{color:null,colorAlpha:null,colorSaturation:null,borderWidth:0,gapWidth:0,borderColor:"#fff",borderColorSaturation:null},emphasis:{upperLabel:{show:!0,position:[0,"50%"],overflow:"truncate",verticalAlign:"middle"}},visualDimension:0,visualMin:null,visualMax:null,color:[],colorAlpha:null,colorSaturation:null,colorMappingBy:"index",visibleMin:10,childrenVisibleMin:null,levels:[]},e}(Gt.A);var gs=n(2110),ms=function(){function t(t){this.group=new jt.A,t.add(this.group)}return t.prototype.render=function(t,e,n,i){var r=t.getModel("breadcrumb"),o=this.group;if(o.removeAll(),r.get("show")&&n){var a=r.getModel("itemStyle"),s=r.getModel("emphasis"),l=a.getModel("textStyle"),h=s.getModel(["itemStyle","textStyle"]),c={pos:{left:r.get("left"),right:r.get("right"),top:r.get("top"),bottom:r.get("bottom")},box:{width:e.getWidth(),height:e.getHeight()},emptyItemWidth:r.get("emptyItemWidth"),totalWidth:0,renderList:[]};this._prepare(n,c,l),this._renderContent(t,c,a,s,l,h,i),Mn.m$(o,c.pos,c.box)}},t.prototype._prepare=function(t,e,n){for(var i=t;i;i=i.parentNode){var r=(0,ce.vS)(i.getModel().get("name"),""),o=n.getTextRect(r),a=Math.max(o.width+16,e.emptyItemWidth);e.totalWidth+=a+8,e.renderList.push({node:i,text:r,width:a})}},t.prototype._renderContent=function(t,e,n,i,r,o,a){for(var s=0,l=e.emptyItemWidth,h=t.get(["breadcrumb","height"]),c=Mn.HU(e.pos,e.box),u=e.totalWidth,d=e.renderList,p=i.getModel("itemStyle").getItemStyle(),f=d.length-1;f>=0;f--){var g=d[f],m=g.node,v=g.width,y=g.text;u>c.width&&(u-=v-l,v=l,y=null);var x=new yr.A({shape:{points:vs(s,0,v,h,f===d.length-1,0===f)},style:(0,_.defaults)(n.getItemStyle(),{lineJoin:"bevel"}),textContent:new Z.Ay({style:(0,Jt.VB)(r,{text:y})}),textConfig:{position:"inside"},z2:1e4*Yt.CA,onclick:(0,_.curry)(a,m)});x.disableLabelAnimation=!0,x.getTextContent().ensureState("emphasis").style=(0,Jt.VB)(o,{text:y}),x.ensureState("emphasis").style=p,(0,Yt.Lm)(x,i.get("focus"),i.get("blurScope"),i.get("disabled")),this.group.add(x),ys(x,t,m),s+=v+8}},t.prototype.remove=function(){this.group.removeAll()},t}();function vs(t,e,n,i,r,o){var a=[[r?t:t-5,e],[t+n,e],[t+n,e+i],[r?t:t-5,e+i]];return!o&&a.splice(2,0,[t+n+5,e+i/2]),!r&&a.push([t,e+i/2]),a}function ys(t,e,n){(0,Xt.z)(t).eventData={componentType:"series",componentSubType:"treemap",componentIndex:e.componentIndex,seriesIndex:e.seriesIndex,seriesName:e.name,seriesType:"treemap",selfType:"breadcrumb",nodeData:{dataIndex:n&&n.dataIndex,name:n&&n.name},treePathInfo:n&&rs(n,e)}}const _s=ms;var xs=function(){function t(){this._storage=[],this._elExistsMap={}}return t.prototype.add=function(t,e,n,i,r){return!this._elExistsMap[t.id]&&(this._elExistsMap[t.id]=!0,this._storage.push({el:t,target:e,duration:n,delay:i,easing:r}),!0)},t.prototype.finished=function(t){return this._finishedCallback=t,this},t.prototype.start=function(){for(var t=this,e=this._storage.length,n=function(){--e<=0&&(t._storage.length=0,t._elExistsMap={},t._finishedCallback&&t._finishedCallback())},i=0,r=this._storage.length;i<r;i++){var o=this._storage[i];o.el.animateTo(o.target,{duration:o.duration,delay:o.delay,easing:o.easing,setToFinal:!0,done:n,aborted:n})}return this},t}();var bs=n(4449),ws=jt.A,Ss=be.A,Ts="label",Ms="upperLabel",As=10*Yt.CA,Cs=2*Yt.CA,Is=3*Yt.CA,Es=(0,bs.A)([["fill","color"],["stroke","strokeColor"],["lineWidth","strokeWidth"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["shadowColor"]]),ks=function(t){var e=Es(t);return e.stroke=e.fill=e.lineWidth=null,e},Ls=(0,ce.$r)(),Ds=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n._state="ready",n._storage={nodeGroup:[],background:[],content:[]},n}return(0,Bt.C6)(e,t),e.prototype.render=function(t,e,n,i){var r=e.findComponents({mainType:"series",subType:"treemap",query:i});if(!((0,_.indexOf)(r,t)<0)){this.seriesModel=t,this.api=n,this.ecModel=e;var o=es(i,["treemapZoomToNode","treemapRootToNode"],t),a=i&&i.type,s=t.layoutInfo,l=!this._oldTree,h=this._storage,c="treemapRootToNode"===a&&o&&h?{rootNodeGroup:h.nodeGroup[o.node.getRawIndex()],direction:i.direction}:null,u=this._giveContainerGroup(s),d=t.get("animation"),p=this._doRender(u,t,c);!d||l||a&&"treemapZoomToNode"!==a&&"treemapRootToNode"!==a?p.renderFinally():this._doAnimation(u,p,t,c),this._resetController(n),this._renderBreadcrumb(t,n,o)}},e.prototype._giveContainerGroup=function(t){var e=this._containerGroup;return e||(e=this._containerGroup=new ws,this._initEvents(e),this.group.add(e)),e.x=t.x,e.y=t.y,e},e.prototype._doRender=function(t,e,n){var i=e.getData().tree,r=this._oldTree,o={nodeGroup:[],background:[],content:[]},a={nodeGroup:[],background:[],content:[]},s=this._storage,l=[];function h(t,i,r,h){return function(t,e,n,i,r,o,a,s,l,h){if(!a)return;var c=a.getLayout(),u=t.getData(),d=a.getModel();if(u.setItemGraphicEl(a.dataIndex,null),!c||!c.isInView)return;var p=c.width,f=c.height,g=c.borderWidth,m=c.invisible,v=a.getRawIndex(),y=s&&s.getRawIndex(),x=a.viewChildren,b=c.upperHeight,w=x&&x.length,S=d.getModel("itemStyle"),T=d.getModel(["emphasis","itemStyle"]),M=d.getModel(["blur","itemStyle"]),A=d.getModel(["select","itemStyle"]),C=S.get("borderRadius")||0,I=V("nodeGroup",ws);if(!I)return;if(l.add(I),I.x=c.x||0,I.y=c.y||0,I.markRedraw(),Ls(I).nodeWidth=p,Ls(I).nodeHeight=f,c.isAboveViewRoot)return I;var E=V("background",Ss,h,Cs);E&&N(I,E,w&&c.upperLabelHeight);var k=d.getModel("emphasis"),L=k.get("focus"),D=k.get("blurScope"),P=k.get("disabled"),R="ancestor"===L?a.getAncestorsIndices():"descendant"===L?a.getDescendantIndices():L;if(w)(0,Yt.u6)(I)&&(0,Yt.ix)(I,!1),E&&((0,Yt.ix)(E,!P),u.setItemGraphicEl(a.dataIndex,E),(0,Yt.gR)(E,R,D));else{var O=V("content",Ss,h,Is);O&&F(I,O),E.disableMorphing=!0,E&&(0,Yt.u6)(E)&&(0,Yt.ix)(E,!1),(0,Yt.ix)(I,!P),u.setItemGraphicEl(a.dataIndex,I),(0,Yt.gR)(I,R,D)}return I;function N(e,n,i){var r=(0,Xt.z)(n);if(r.dataIndex=a.dataIndex,r.seriesIndex=t.seriesIndex,n.setShape({x:0,y:0,width:p,height:f,r:C}),m)B(n);else{n.invisible=!1;var o=a.getVisual("style"),s=o.stroke,l=ks(S);l.fill=s;var h=Es(T);h.fill=T.get("borderColor");var c=Es(M);c.fill=M.get("borderColor");var u=Es(A);if(u.fill=A.get("borderColor"),i){var d=p-2*g;z(n,s,o.opacity,{x:g,y:0,width:d,height:b})}else n.removeTextContent();n.setStyle(l),n.ensureState("emphasis").style=h,n.ensureState("blur").style=c,n.ensureState("select").style=u,(0,Yt.DW)(n)}e.add(n)}function F(e,n){var i=(0,Xt.z)(n);i.dataIndex=a.dataIndex,i.seriesIndex=t.seriesIndex;var r=Math.max(p-2*g,0),o=Math.max(f-2*g,0);if(n.culling=!0,n.setShape({x:g,y:g,width:r,height:o,r:C}),m)B(n);else{n.invisible=!1;var s=a.getVisual("style"),l=s.fill,h=ks(S);h.fill=l,h.decal=s.decal;var c=Es(T),u=Es(M),d=Es(A);z(n,l,s.opacity,null),n.setStyle(h),n.ensureState("emphasis").style=c,n.ensureState("blur").style=u,n.ensureState("select").style=d,(0,Yt.DW)(n)}e.add(n)}function B(t){!t.invisible&&o.push(t)}function z(e,n,i,r){var o=d.getModel(r?Ms:Ts),s=(0,ce.vS)(d.get("name"),null),l=o.getShallow("show");(0,Jt.qM)(e,(0,Jt.lx)(d,r?Ms:Ts),{defaultText:l?s:null,inheritColor:n,defaultOpacity:i,labelFetcher:t,labelDataIndex:a.dataIndex});var h=e.getTextContent();if(h){var u=h.style,p=(0,_.normalizeCssArray)(u.padding||0);r&&(e.setTextConfig({layoutRect:r}),h.disableLabelLayout=!0),h.beforeUpdate=function(){var t=Math.max((r?r.width:e.shape.width)-p[1]-p[3],0),n=Math.max((r?r.height:e.shape.height)-p[0]-p[2],0);u.width===t&&u.height===n||h.setStyle({width:t,height:n})},u.truncateMinChar=2,u.lineOverflow="truncate",G(u,r,c);var f=h.getState("emphasis");G(f?f.style:null,r,c)}}function G(e,n,i){var r=e?e.text:null;if(!n&&i.isLeafRoot&&null!=r){var o=t.get("drillDownIcon",!0);e.text=o?o+" "+r:r}}function V(t,i,o,a){var s=null!=y&&n[t][y],l=r[t];return s?(n[t][y]=null,j(l,s)):m||((s=new i)instanceof Vo.Ay&&(s.z2=function(t,e){return t*As+e}(o,a)),H(l,s)),e[t][v]=s}function j(t,e){var n=t[v]={};e instanceof ws?(n.oldX=e.x,n.oldY=e.y):n.oldShape=(0,_.extend)({},e.shape)}function H(t,e){var n=t[v]={},o=a.parentNode,s=e instanceof jt.A;if(o&&(!i||"drillDown"===i.direction)){var l=0,h=0,c=r.background[o.getRawIndex()];!i&&c&&c.oldShape&&(l=c.oldShape.width,h=c.oldShape.height),s?(n.oldX=0,n.oldY=h):n.oldShape={x:l,y:h,width:0,height:0}}n.fadein=!s}}(e,a,s,n,o,l,t,i,r,h)}!function t(e,n,i,r,o){r?(n=e,(0,_.each)(e,(function(t,e){!t.isRemoved()&&s(e,e)}))):new gs.A(n,e,a,a).add(s).update(s).remove((0,_.curry)(s,null)).execute();function a(t){return t.getId()}function s(a,s){var l=null!=a?e[a]:null,c=null!=s?n[s]:null,u=h(l,c,i,o);u&&t(l&&l.viewChildren||[],c&&c.viewChildren||[],u,r,o+1)}}(i.root?[i.root]:[],r&&r.root?[r.root]:[],t,i===r||!r,0);var c=function(t){var e={nodeGroup:[],background:[],content:[]};return t&&(0,_.each)(t,(function(t,n){var i=e[n];(0,_.each)(t,(function(t){t&&(i.push(t),Ls(t).willDelete=!0)}))})),e}(s);if(this._oldTree=i,this._storage=a,this._controllerHost){var u=this.seriesModel.layoutInfo,d=i.root.getLayout();d.width===u.width&&d.height===u.height&&(this._controllerHost.zoom=1)}return{lastsForAnimation:o,willDeleteEls:c,renderFinally:function(){(0,_.each)(c,(function(t){(0,_.each)(t,(function(t){t.parent&&t.parent.remove(t)}))})),(0,_.each)(l,(function(t){t.invisible=!0,t.dirty()}))}}},e.prototype._doAnimation=function(t,e,n,i){var r=n.get("animationDurationUpdate"),o=n.get("animationEasing"),a=((0,_.isFunction)(r)?0:r)||0,s=((0,_.isFunction)(o)?null:o)||"cubicOut",l=new xs;(0,_.each)(e.willDeleteEls,(function(t,e){(0,_.each)(t,(function(t,n){if(!t.invisible){var r,o=t.parent,h=Ls(o);if(i&&"drillDown"===i.direction)r=o===i.rootNodeGroup?{shape:{x:0,y:0,width:h.nodeWidth,height:h.nodeHeight},style:{opacity:0}}:{style:{opacity:0}};else{var c=0,u=0;h.willDelete||(c=h.nodeWidth/2,u=h.nodeHeight/2),r="nodeGroup"===e?{x:c,y:u,style:{opacity:0}}:{shape:{x:c,y:u,width:0,height:0},style:{opacity:0}}}r&&l.add(t,r,a,0,s)}}))})),(0,_.each)(this._storage,(function(t,n){(0,_.each)(t,(function(t,i){var r=e.lastsForAnimation[n][i],o={};r&&(t instanceof jt.A?null!=r.oldX&&(o.x=t.x,o.y=t.y,t.x=r.oldX,t.y=r.oldY):(r.oldShape&&(o.shape=(0,_.extend)({},t.shape),t.setShape(r.oldShape)),r.fadein?(t.setStyle("opacity",0),o.style={opacity:1}):1!==t.style.opacity&&(o.style={opacity:1})),l.add(t,o,a,0,s))}))}),this),this._state="animating",l.finished((0,_.bind)((function(){this._state="ready",e.renderFinally()}),this)).start()},e.prototype._resetController=function(t){var e=this._controller,n=this._controllerHost;n||(this._controllerHost={target:this.group},n=this._controllerHost),e||((e=this._controller=new Ur(t.getZr())).enable(this.seriesModel.get("roam")),n.zoomLimit=this.seriesModel.get("scaleLimit"),n.zoom=this.seriesModel.get("zoom"),e.on("pan",(0,_.bind)(this._onPan,this)),e.on("zoom",(0,_.bind)(this._onZoom,this)));var i=new Jn.A(0,0,t.getWidth(),t.getHeight());e.setPointerChecker((function(t,e,n){return i.contain(e,n)}))},e.prototype._clearController=function(){var t=this._controller;this._controllerHost=null,t&&(t.dispose(),t=null)},e.prototype._onPan=function(t){if("animating"!==this._state&&(Math.abs(t.dx)>3||Math.abs(t.dy)>3)){var e=this.seriesModel.getData().tree.root;if(!e)return;var n=e.getLayout();if(!n)return;this.api.dispatchAction({type:"treemapMove",from:this.uid,seriesId:this.seriesModel.id,rootRect:{x:n.x+t.dx,y:n.y+t.dy,width:n.width,height:n.height}})}},e.prototype._onZoom=function(t){var e=t.originX,n=t.originY,i=t.scale;if("animating"!==this._state){var r=this.seriesModel.getData().tree.root;if(!r)return;var o=r.getLayout();if(!o)return;var a,s=new Jn.A(o.x,o.y,o.width,o.height),l=this._controllerHost;a=l.zoomLimit;var h=l.zoom=l.zoom||1;if(h*=i,a){var c=a.min||0,u=a.max||1/0;h=Math.max(Math.min(u,h),c)}var d=h/l.zoom;l.zoom=h;var p=this.seriesModel.layoutInfo;e-=p.x,n-=p.y;var f=_i.create();_i.translate(f,f,[-e,-n]),_i.scale(f,f,[d,d]),_i.translate(f,f,[e,n]),s.applyTransform(f),this.api.dispatchAction({type:"treemapRender",from:this.uid,seriesId:this.seriesModel.id,rootRect:{x:s.x,y:s.y,width:s.width,height:s.height}})}},e.prototype._initEvents=function(t){var e=this;t.on("click",(function(t){if("ready"===e._state){var n=e.seriesModel.get("nodeClick",!0);if(n){var i=e.findTarget(t.offsetX,t.offsetY);if(i){var r=i.node;if(r.getLayout().isLeafRoot)e._rootToNode(i);else if("zoomToNode"===n)e._zoomToNode(i);else if("link"===n){var o=r.hostTree.data.getItemModel(r.dataIndex),a=o.get("link",!0),s=o.get("target",!0)||"blank";a&&(0,Ie.JW)(a,s)}}}}}),this)},e.prototype._renderBreadcrumb=function(t,e,n){var i=this;n||(n=null!=t.get("leafDepth",!0)?{node:t.getViewRoot()}:this.findTarget(e.getWidth()/2,e.getHeight()/2))||(n={node:t.getData().tree.root}),(this._breadcrumb||(this._breadcrumb=new _s(this.group))).render(t,e,n.node,(function(e){"animating"!==i._state&&(is(t.getViewRoot(),e)?i._rootToNode({node:e}):i._zoomToNode({node:e}))}))},e.prototype.remove=function(){this._clearController(),this._containerGroup&&this._containerGroup.removeAll(),this._storage={nodeGroup:[],background:[],content:[]},this._state="ready",this._breadcrumb&&this._breadcrumb.remove()},e.prototype.dispose=function(){this._clearController()},e.prototype._zoomToNode=function(t){this.api.dispatchAction({type:"treemapZoomToNode",from:this.uid,seriesId:this.seriesModel.id,targetNode:t.node})},e.prototype._rootToNode=function(t){this.api.dispatchAction({type:"treemapRootToNode",from:this.uid,seriesId:this.seriesModel.id,targetNode:t.node})},e.prototype.findTarget=function(t,e){var n;return this.seriesModel.getViewRoot().eachNode({attr:"viewChildren",order:"preorder"},(function(i){var r=this._storage.background[i.getRawIndex()];if(r){var o=r.transformCoordToLocal(t,e),a=r.shape;if(!(a.x<=o[0]&&o[0]<=a.x+a.width&&a.y<=o[1]&&o[1]<=a.y+a.height))return!1;n={node:i,offsetX:o[0],offsetY:o[1]}}}),this),n},e.type="treemap",e}(xe.A);const Ps=Ds;var Rs=_.each,Os=_.isObject,Ns=-1,Fs=function(){function t(e){var n=e.mappingMethod,i=e.type,r=this.option=_.clone(e);this.type=i,this.mappingMethod=n,this._normalizeData=Xs[n];var o=t.visualHandlers[i];this.applyVisual=o.applyVisual,this.getColorMapper=o.getColorMapper,this._normalizedToVisual=o._normalizedToVisual[n],"piecewise"===n?(Bs(r),function(t){var e=t.pieceList;t.hasSpecialVisual=!1,_.each(e,(function(e,n){e.originIndex=n,null!=e.visual&&(t.hasSpecialVisual=!0)}))}(r)):"category"===n?r.categories?function(t){var e=t.categories,n=t.categoryMap={},i=t.visual;if(Rs(e,(function(t,e){n[t]=e})),!_.isArray(i)){var r=[];_.isObject(i)?Rs(i,(function(t,e){var i=n[e];r[null!=i?i:Ns]=t})):r[-1]=i,i=qs(t,r)}for(var o=e.length-1;o>=0;o--)null==i[o]&&(delete n[e[o]],e.pop())}(r):Bs(r,!0):(_.assert("linear"!==n||r.dataExtent),Bs(r))}return t.prototype.mapValueToVisual=function(t){var e=this._normalizeData(t);return this._normalizedToVisual(e,t)},t.prototype.getNormalizer=function(){return _.bind(this._normalizeData,this)},t.listVisualTypes=function(){return _.keys(t.visualHandlers)},t.isValidType=function(e){return t.visualHandlers.hasOwnProperty(e)},t.eachVisual=function(t,e,n){_.isObject(t)?_.each(t,e,n):e.call(n,t)},t.mapVisual=function(e,n,i){var r,o=_.isArray(e)?[]:_.isObject(e)?{}:(r=!0,null);return t.eachVisual(e,(function(t,e){var a=n.call(i,t,e);r?o=a:o[e]=a})),o},t.retrieveVisuals=function(e){var n,i={};return e&&Rs(t.visualHandlers,(function(t,r){e.hasOwnProperty(r)&&(i[r]=e[r],n=!0)})),n?i:null},t.prepareVisualTypes=function(t){if(_.isArray(t))t=t.slice();else{if(!Os(t))return[];var e=[];Rs(t,(function(t,n){e.push(n)})),t=e}return t.sort((function(t,e){return"color"===e&&"color"!==t&&0===t.indexOf("color")?1:-1})),t},t.dependsOn=function(t,e){return"color"===e?!(!t||0!==t.indexOf(e)):t===e},t.findPieceIndex=function(t,e,n){for(var i,r=1/0,o=0,a=e.length;o<a;o++){var s=e[o].value;if(null!=s){if(s===t||_.isString(s)&&s===t+"")return o;n&&u(s,o)}}for(o=0,a=e.length;o<a;o++){var l=e[o],h=l.interval,c=l.close;if(h){if(h[0]===-1/0){if(Ys(c[1],t,h[1]))return o}else if(h[1]===1/0){if(Ys(c[0],h[0],t))return o}else if(Ys(c[0],h[0],t)&&Ys(c[1],t,h[1]))return o;n&&u(h[0],o),n&&u(h[1],o)}}if(n)return t===1/0?e.length-1:t===-1/0?0:i;function u(e,n){var o=Math.abs(e-t);o<r&&(r=o,i=n)}},t.visualHandlers={color:{applyVisual:Vs("color"),getColorMapper:function(){var t=this.option;return _.bind("category"===t.mappingMethod?function(t,e){return!e&&(t=this._normalizeData(t)),js.call(this,t)}:function(e,n,i){var r=!!i;return!n&&(e=this._normalizeData(e)),i=K.fastLerp(e,t.parsedVisual,i),r?i:K.stringify(i,"rgba")},this)},_normalizedToVisual:{linear:function(t){return K.stringify(K.fastLerp(t,this.option.parsedVisual),"rgba")},category:js,piecewise:function(t,e){var n=Us.call(this,e);return null==n&&(n=K.stringify(K.fastLerp(t,this.option.parsedVisual),"rgba")),n},fixed:Hs}},colorHue:zs((function(t,e){return K.modifyHSL(t,e)})),colorSaturation:zs((function(t,e){return K.modifyHSL(t,null,e)})),colorLightness:zs((function(t,e){return K.modifyHSL(t,null,null,e)})),colorAlpha:zs((function(t,e){return K.modifyAlpha(t,e)})),decal:{applyVisual:Vs("decal"),_normalizedToVisual:{linear:null,category:js,piecewise:null,fixed:null}},opacity:{applyVisual:Vs("opacity"),_normalizedToVisual:Ws([0,1])},liftZ:{applyVisual:Vs("liftZ"),_normalizedToVisual:{linear:Hs,category:Hs,piecewise:Hs,fixed:Hs}},symbol:{applyVisual:function(t,e,n){n("symbol",this.mapValueToVisual(t))},_normalizedToVisual:{linear:Gs,category:js,piecewise:function(t,e){var n=Us.call(this,e);return null==n&&(n=Gs.call(this,t)),n},fixed:Hs}},symbolSize:{applyVisual:Vs("symbolSize"),_normalizedToVisual:Ws([0,1])}},t}();function Bs(t,e){var n=t.visual,i=[];_.isObject(n)?Rs(n,(function(t){i.push(t)})):null!=n&&i.push(n);e||1!==i.length||{color:1,symbol:1}.hasOwnProperty(t.type)||(i[1]=i[0]),qs(t,i)}function zs(t){return{applyVisual:function(e,n,i){var r=this.mapValueToVisual(e);i("color",t(n("color"),r))},_normalizedToVisual:Ws([0,1])}}function Gs(t){var e=this.option.visual;return e[Math.round((0,Se.Cb)(t,[0,1],[0,e.length-1],!0))]||{}}function Vs(t){return function(e,n,i){i(t,this.mapValueToVisual(e))}}function js(t){var e=this.option.visual;return e[this.option.loop&&t!==Ns?t%e.length:t]}function Hs(){return this.option.visual[0]}function Ws(t){return{linear:function(e){return(0,Se.Cb)(e,t,this.option.visual,!0)},category:js,piecewise:function(e,n){var i=Us.call(this,n);return null==i&&(i=(0,Se.Cb)(e,t,this.option.visual,!0)),i},fixed:Hs}}function Us(t){var e=this.option,n=e.pieceList;if(e.hasSpecialVisual){var i=n[Fs.findPieceIndex(t,n)];if(i&&i.visual)return i.visual[this.type]}}function qs(t,e){return t.visual=e,"color"===t.type&&(t.parsedVisual=_.map(e,(function(t){var e=K.parse(t);return e||[0,0,0,1]}))),e}var Xs={linear:function(t){return(0,Se.Cb)(t,this.option.dataExtent,[0,1],!0)},piecewise:function(t){var e=this.option.pieceList,n=Fs.findPieceIndex(t,e,!0);if(null!=n)return(0,Se.Cb)(n,[0,e.length-1],[0,1],!0)},category:function(t){var e=this.option.categories?this.option.categoryMap[t]:t;return null==e?Ns:e},fixed:_.noop};function Ys(t,e,n){return t?e<=n:e<n}const Zs=Fs;var $s=(0,ce.$r)();const Ks={seriesType:"treemap",reset:function(t){var e=t.getData().tree.root;e.isRemoved()||Js(e,{},t.getViewRoot().getAncestors(),t)}};function Js(t,e,n,i){var r=t.getModel(),o=t.getLayout(),a=t.hostTree.data;if(o&&!o.invisible&&o.isInView){var s,l=r.getModel("itemStyle"),h=function(t,e,n){var i=(0,_.extend)({},e),r=n.designatedVisualItemStyle;return(0,_.each)(["color","colorAlpha","colorSaturation"],(function(n){r[n]=e[n];var o=t.get(n);r[n]=null,null!=o&&(i[n]=o)})),i}(l,e,i),c=a.ensureUniqueItemVisual(t.dataIndex,"style"),u=l.get("borderColor"),d=l.get("borderColorSaturation");null!=d&&(u=function(t,e){return null!=e?(0,K.modifyHSL)(e,null,null,t):null}(d,s=Qs(h))),c.stroke=u;var p=t.viewChildren;if(p&&p.length){var f=function(t,e,n,i,r,o){if(!o||!o.length)return;var a=el(e,"color")||null!=r.color&&"none"!==r.color&&(el(e,"colorAlpha")||el(e,"colorSaturation"));if(!a)return;var s=e.get("visualMin"),l=e.get("visualMax"),h=n.dataExtent.slice();null!=s&&s<h[0]&&(h[0]=s),null!=l&&l>h[1]&&(h[1]=l);var c=e.get("colorMappingBy"),u={type:a.name,dataExtent:h,visual:a.range};"color"!==u.type||"index"!==c&&"id"!==c?u.mappingMethod="linear":(u.mappingMethod="category",u.loop=!0);var d=new Zs(u);return $s(d).drColorMappingBy=c,d}(0,r,o,0,h,p);(0,_.each)(p,(function(t,e){if(t.depth>=n.length||t===n[t.depth]){var o=function(t,e,n,i,r,o){var a=(0,_.extend)({},e);if(r){var s=r.type,l="color"===s&&$s(r).drColorMappingBy,h="index"===l?i:"id"===l?o.mapIdToIndex(n.getId()):n.getValue(t.get("visualDimension"));a[s]=r.mapValueToVisual(h)}return a}(r,h,t,e,f,i);Js(t,o,n,i)}}))}else s=Qs(h),c.fill=s}}function Qs(t){var e=tl(t,"color");if(e){var n=tl(t,"colorAlpha"),i=tl(t,"colorSaturation");return i&&(e=(0,K.modifyHSL)(e,null,null,i)),n&&(e=(0,K.modifyAlpha)(e,n)),e}}function tl(t,e){var n=t[e];if(null!=n&&"none"!==n)return n}function el(t,e){var n=t.get(e);return(0,_.isArray)(n)&&n.length?{name:e,range:n}:null}var nl=Math.max,il=Math.min,rl=_.retrieve,ol=_.each,al=["itemStyle","borderWidth"],sl=["itemStyle","gapWidth"],ll=["upperLabel","show"],hl=["upperLabel","height"];const cl={seriesType:"treemap",reset:function(t,e,n,i){var r=n.getWidth(),o=n.getHeight(),a=t.option,s=Mn.dV(t.getBoxLayoutParams(),{width:n.getWidth(),height:n.getHeight()}),l=a.size||[],h=(0,Se.lo)(rl(s.width,l[0]),r),c=(0,Se.lo)(rl(s.height,l[1]),o),u=i&&i.type,d=es(i,["treemapZoomToNode","treemapRootToNode"],t),p="treemapRender"===u||"treemapMove"===u?i.rootRect:null,f=t.getViewRoot(),g=ns(f);if("treemapMove"!==u){var m="treemapZoomToNode"===u?function(t,e,n,i,r){var o,a=(e||{}).node,s=[i,r];if(!a||a===n)return s;var l=i*r,h=l*t.option.zoomToNodeRatio;for(;o=a.parentNode;){for(var c=0,u=o.children,d=0,p=u.length;d<p;d++)c+=u[d].getValue();var f=a.getValue();if(0===f)return s;h*=c/f;var g=o.getModel(),m=g.get(al);(h+=4*m*m+(3*m+Math.max(m,gl(g)))*Math.pow(h,.5))>Se.Is&&(h=Se.Is),a=o}h<l&&(h=l);var v=Math.pow(h/l,.5);return[i*v,r*v]}(t,d,f,h,c):p?[p.width,p.height]:[h,c],v=a.sort;v&&"asc"!==v&&"desc"!==v&&(v="desc");var y={squareRatio:a.squareRatio,sort:v,leafDepth:a.leafDepth};f.hostTree.clearLayouts();var x={x:0,y:0,width:m[0],height:m[1],area:m[0]*m[1]};f.setLayout(x),ul(f,y,!1,0),x=f.getLayout(),ol(g,(function(t,e){var n=(g[e+1]||f).getValue();t.setLayout(_.extend({dataExtent:[n,n],borderWidth:0,upperHeight:0},x))}))}var b=t.getData().tree.root;b.setLayout(function(t,e,n){if(e)return{x:e.x,y:e.y};var i={x:0,y:0};if(!n)return i;var r=n.node,o=r.getLayout();if(!o)return i;var a=[o.width/2,o.height/2],s=r;for(;s;){var l=s.getLayout();a[0]+=l.x,a[1]+=l.y,s=s.parentNode}return{x:t.width/2-a[0],y:t.height/2-a[1]}}(s,p,d),!0),t.setLayoutInfo(s),fl(b,new Jn.A(-s.x,-s.y,r,o),g,f,0)}};function ul(t,e,n,i){var r,o;if(!t.isRemoved()){var a=t.getLayout();r=a.width,o=a.height;var s=t.getModel(),l=s.get(al),h=s.get(sl)/2,c=gl(s),u=Math.max(l,c),d=l-h,p=u-h;t.setLayout({borderWidth:l,upperHeight:u,upperLabelHeight:c},!0);var f=(r=nl(r-2*d,0))*(o=nl(o-d-p,0)),g=function(t,e,n,i,r,o){var a=t.children||[],s=i.sort;"asc"!==s&&"desc"!==s&&(s=null);var l=null!=i.leafDepth&&i.leafDepth<=o;if(r&&!l)return t.viewChildren=[];a=_.filter(a,(function(t){return!t.isRemoved()})),function(t,e){e&&t.sort((function(t,n){var i="asc"===e?t.getValue()-n.getValue():n.getValue()-t.getValue();return 0===i?"asc"===e?t.dataIndex-n.dataIndex:n.dataIndex-t.dataIndex:i}))}(a,s);var h=function(t,e,n){for(var i=0,r=0,o=e.length;r<o;r++)i+=e[r].getValue();var a,s=t.get("visualDimension");e&&e.length?"value"===s&&n?(a=[e[e.length-1].getValue(),e[0].getValue()],"asc"===n&&a.reverse()):(a=[1/0,-1/0],ol(e,(function(t){var e=t.getValue(s);e<a[0]&&(a[0]=e),e>a[1]&&(a[1]=e)}))):a=[NaN,NaN];return{sum:i,dataExtent:a}}(e,a,s);if(0===h.sum)return t.viewChildren=[];if(h.sum=function(t,e,n,i,r){if(!i)return n;for(var o=t.get("visibleMin"),a=r.length,s=a,l=a-1;l>=0;l--){var h=r["asc"===i?a-l-1:l].getValue();h/n*e<o&&(s=l,n-=h)}return"asc"===i?r.splice(0,a-s):r.splice(s,a-s),n}(e,n,h.sum,s,a),0===h.sum)return t.viewChildren=[];for(var c=0,u=a.length;c<u;c++){var d=a[c].getValue()/h.sum*n;a[c].setLayout({area:d})}l&&(a.length&&t.setLayout({isLeafRoot:!0},!0),a.length=0);return t.viewChildren=a,t.setLayout({dataExtent:h.dataExtent},!0),a}(t,s,f,e,n,i);if(g.length){var m={x:d,y:p,width:r,height:o},v=il(r,o),y=1/0,x=[];x.area=0;for(var b=0,w=g.length;b<w;){var S=g[b];x.push(S),x.area+=S.getLayout().area;var T=dl(x,v,e.squareRatio);T<=y?(b++,y=T):(x.area-=x.pop().getLayout().area,pl(x,v,m,h,!1),v=il(m.width,m.height),x.length=x.area=0,y=1/0)}if(x.length&&pl(x,v,m,h,!0),!n){var M=s.get("childrenVisibleMin");null!=M&&f<M&&(n=!0)}for(b=0,w=g.length;b<w;b++)ul(g[b],e,n,i+1)}}}function dl(t,e,n){for(var i=0,r=1/0,o=0,a=void 0,s=t.length;o<s;o++)(a=t[o].getLayout().area)&&(a<r&&(r=a),a>i&&(i=a));var l=t.area*t.area,h=e*e*n;return l?nl(h*i/l,l/(h*r)):1/0}function pl(t,e,n,i,r){var o=e===n.width?0:1,a=1-o,s=["x","y"],l=["width","height"],h=n[s[o]],c=e?t.area/e:0;(r||c>n[l[a]])&&(c=n[l[a]]);for(var u=0,d=t.length;u<d;u++){var p=t[u],f={},g=c?p.getLayout().area/c:0,m=f[l[a]]=nl(c-2*i,0),v=n[s[o]]+n[l[o]]-h,y=u===d-1||v<g?v:g,_=f[l[o]]=nl(y-2*i,0);f[s[a]]=n[s[a]]+il(i,m/2),f[s[o]]=h+il(i,_/2),h+=y,p.setLayout(f,!0)}n[s[a]]+=c,n[l[a]]-=c}function fl(t,e,n,i,r){var o=t.getLayout(),a=n[r],s=a&&a===t;if(!(a&&!s||r===n.length&&t!==i)){t.setLayout({isInView:!0,invisible:!s&&!e.intersect(o),isAboveViewRoot:s},!0);var l=new Jn.A(e.x-o.x,e.y-o.y,e.width,e.height);ol(t.viewChildren||[],(function(t){fl(t,l,n,i,r+1)}))}}function gl(t){return t.get(ll)?t.get(hl):0}function ml(t){var e=t.findComponents({mainType:"legend"});e&&e.length&&t.eachSeriesByType("graph",(function(t){var n=t.getCategoriesData(),i=t.getGraph().data,r=n.mapArray(n.getName);i.filterSelf((function(t){var n=i.getItemModel(t).getShallow("category");if(null!=n){(0,_.isNumber)(n)&&(n=r[n]);for(var o=0;o<e.length;o++)if(!e[o].isSelected(n))return!1}return!0}))}))}function vl(t){var e={};t.eachSeriesByType("graph",(function(t){var n=t.getCategoriesData(),i=t.getData(),r={};n.each((function(i){var o=n.getName(i);r["ec-"+o]=i;var a=n.getItemModel(i),s=a.getModel("itemStyle").getItemStyle();s.fill||(s.fill=t.getColorFromPalette(o,e)),n.setItemVisual(i,"style",s);for(var l=["symbol","symbolSize","symbolKeepAspect"],h=0;h<l.length;h++){var c=a.getShallow(l[h],!0);null!=c&&n.setItemVisual(i,l[h],c)}})),n.count()&&i.each((function(t){var e=i.getItemModel(t).getShallow("category");if(null!=e){(0,_.isString)(e)&&(e=r["ec-"+e]);var o=n.getItemVisual(e,"style"),a=i.ensureUniqueItemVisual(t,"style");(0,_.extend)(a,o);for(var s=["symbol","symbolSize","symbolKeepAspect"],l=0;l<s.length;l++)i.setItemVisual(t,s[l],n.getItemVisual(e,s[l]))}}))}))}function yl(t){return t instanceof Array||(t=[t,t]),t}function _l(t){t.eachSeriesByType("graph",(function(t){var e=t.getGraph(),n=t.getEdgeData(),i=yl(t.get("edgeSymbol")),r=yl(t.get("edgeSymbolSize"));n.setVisual("fromSymbol",i&&i[0]),n.setVisual("toSymbol",i&&i[1]),n.setVisual("fromSymbolSize",r&&r[0]),n.setVisual("toSymbolSize",r&&r[1]),n.setVisual("style",t.getModel("lineStyle").getLineStyle()),n.each((function(t){var i=n.getItemModel(t),r=e.getEdgeByIndex(t),o=yl(i.getShallow("symbol",!0)),a=yl(i.getShallow("symbolSize",!0)),s=i.getModel("lineStyle").getLineStyle(),l=n.ensureUniqueItemVisual(t,"style");switch((0,_.extend)(l,s),l.stroke){case"source":var h=r.node1.getVisual("style");l.stroke=h&&h.fill;break;case"target":h=r.node2.getVisual("style");l.stroke=h&&h.fill}o[0]&&r.setVisual("fromSymbol",o[0]),o[1]&&r.setVisual("toSymbol",o[1]),a[0]&&r.setVisual("fromSymbolSize",a[0]),a[1]&&r.setVisual("toSymbolSize",a[1])}))}))}var xl="--\x3e",bl=function(t){return t.get("autoCurveness")||null},wl=function(t,e){var n=bl(t),i=20,r=[];if(_.isNumber(n))i=n;else if(_.isArray(n))return void(t.__curvenessList=n);e>i&&(i=e);var o=i%2?i+2:i+3;r=[];for(var a=0;a<o;a++)r.push((a%2?a+1:a)/10*(a%2?-1:1));t.__curvenessList=r},Sl=function(t,e,n){var i=[t.id,t.dataIndex].join("."),r=[e.id,e.dataIndex].join(".");return[n.uid,i,r].join(xl)},Tl=function(t){var e=t.split(xl);return[e[0],e[2],e[1]].join(xl)},Ml=function(t,e){var n=e.__edgeMap;return n[t]?n[t].length:0};function Al(t,e,n,i){var r=bl(e),o=_.isArray(r);if(!r)return null;var a=function(t,e){var n=Sl(t.node1,t.node2,e);return e.__edgeMap[n]}(t,e);if(!a)return null;for(var s=-1,l=0;l<a.length;l++)if(a[l]===n){s=l;break}var h=function(t,e){return Ml(Sl(t.node1,t.node2,e),e)+Ml(Sl(t.node2,t.node1,e),e)}(t,e);wl(e,h),t.lineStyle=t.lineStyle||{};var c=Sl(t.node1,t.node2,e),u=e.__curvenessList,d=o||h%2?0:1;if(a.isForward)return u[d+s];var p=Tl(c),f=Ml(p,e),g=u[s+f+d];return i?o?r&&0===r[0]?(f+d)%2?g:-g:((f%2?0:1)+d)%2?g:-g:(f+d)%2?g:-g:u[s+f+d]}function Cl(t){var e=t.coordinateSystem;if(!e||"view"===e.type){var n=t.getGraph();n.eachNode((function(t){var e=t.getModel();t.setLayout([+e.get("x"),+e.get("y")])})),Il(n,t)}}function Il(t,e){t.eachEdge((function(t,n){var i=_.retrieve3(t.getModel().get(["lineStyle","curveness"]),-Al(t,e,n,!0),0),r=xi.clone(t.node1.getLayout()),o=xi.clone(t.node2.getLayout()),a=[r,o];+i&&a.push([(r[0]+o[0])/2-(r[1]-o[1])*i,(r[1]+o[1])/2-(o[0]-r[0])*i]),t.setLayout(a)}))}function El(t,e){t.eachSeriesByType("graph",(function(t){var e=t.get("layout"),n=t.coordinateSystem;if(n&&"view"!==n.type){var i=t.getData(),r=[];(0,_.each)(n.dimensions,(function(t){r=r.concat(i.mapDimensionsAll(t))}));for(var o=0;o<i.count();o++){for(var a=[],s=!1,l=0;l<r.length;l++){var h=i.get(r[l],o);isNaN(h)||(s=!0),a.push(h)}s?i.setItemLayout(o,n.dataToPoint(a)):i.setItemLayout(o,[NaN,NaN])}Il(i.graph,t)}else e&&"none"!==e||Cl(t)}))}function kl(t){var e=t.coordinateSystem;if("view"!==e.type)return 1;var n=t.option.nodeScaleRatio,i=e.scaleX;return((e.getZoom()-1)*n+1)/i}function Ll(t){var e=t.getVisual("symbolSize");return e instanceof Array&&(e=(e[0]+e[1])/2),+e}var Dl=Math.PI,Pl=[];function Rl(t,e,n,i){var r=t.coordinateSystem;if(!r||"view"===r.type){var o=r.getBoundingRect(),a=t.getData(),s=a.graph,l=o.width/2+o.x,h=o.height/2+o.y,c=Math.min(o.width,o.height)/2,u=a.count();if(a.setLayout({cx:l,cy:h}),u){if(n){var d=r.pointToData(i),p=d[0],f=d[1],g=[p-l,f-h];xi.normalize(g,g),xi.scale(g,g,c),n.setLayout([l+g[0],h+g[1]],!0),Nl(n,t.get(["circular","rotateLabel"]),l,h)}Ol[e](t,s,a,c,l,h,u),s.eachEdge((function(e,n){var i,r=_.retrieve3(e.getModel().get(["lineStyle","curveness"]),Al(e,t,n),0),o=xi.clone(e.node1.getLayout()),a=xi.clone(e.node2.getLayout()),s=(o[0]+a[0])/2,c=(o[1]+a[1])/2;+r&&(i=[l*(r*=3)+s*(1-r),h*r+c*(1-r)]),e.setLayout([o,a,i])}))}}}var Ol={value:function(t,e,n,i,r,o,a){var s=0,l=n.getSum("value"),h=2*Math.PI/(l||a);e.eachNode((function(t){var e=t.getValue("value"),n=h*(l?e:1)/2;s+=n,t.setLayout([i*Math.cos(s)+r,i*Math.sin(s)+o]),s+=n}))},symbolSize:function(t,e,n,i,r,o,a){var s=0;Pl.length=a;var l=kl(t);e.eachNode((function(t){var e=Ll(t);isNaN(e)&&(e=2),e<0&&(e=0),e*=l;var n=Math.asin(e/2/i);isNaN(n)&&(n=Dl/2),Pl[t.dataIndex]=n,s+=2*n}));var h=(2*Dl-s)/a/2,c=0;e.eachNode((function(t){var e=h+Pl[t.dataIndex];c+=e,(!t.getLayout()||!t.getLayout().fixed)&&t.setLayout([i*Math.cos(c)+r,i*Math.sin(c)+o]),c+=e}))}};function Nl(t,e,n,i){var r=t.getGraphicEl();if(r){var o=t.getModel().get(["label","rotate"])||0,a=r.getSymbolPath();if(e){var s=t.getLayout(),l=Math.atan2(s[1]-i,s[0]-n);l<0&&(l=2*Math.PI+l);var h=s[0]<n;h&&(l-=Math.PI);var c=h?"left":"right";a.setTextConfig({rotation:-l,position:c,origin:"center"});var u=a.ensureState("emphasis");_.extend(u.textConfig||(u.textConfig={}),{position:c})}else a.setTextConfig({rotation:o*=Math.PI/180})}}function Fl(t){t.eachSeriesByType("graph",(function(t){"circular"===t.get("layout")&&Rl(t,"symbolSize")}))}var Bl=xi.scaleAndAdd;function zl(t){t.eachSeriesByType("graph",(function(t){var e=t.coordinateSystem;if(!e||"view"===e.type)if("force"===t.get("layout")){var n=t.preservedPoints||{},i=t.getGraph(),r=i.data,o=i.edgeData,a=t.getModel("force"),s=a.get("initLayout");t.preservedPoints?r.each((function(t){var e=r.getId(t);r.setItemLayout(t,n[e]||[NaN,NaN])})):s&&"none"!==s?"circular"===s&&Rl(t,"value"):Cl(t);var l=r.getDataExtent("value"),h=o.getDataExtent("value"),c=a.get("repulsion"),u=a.get("edgeLength"),d=_.isArray(c)?c:[c,c],p=_.isArray(u)?u:[u,u];p=[p[1],p[0]];var f=r.mapArray("value",(function(t,e){var n=r.getItemLayout(e),i=(0,Se.Cb)(t,l,d);return isNaN(i)&&(i=(d[0]+d[1])/2),{w:i,rep:i,fixed:r.getItemModel(e).get("fixed"),p:!n||isNaN(n[0])||isNaN(n[1])?null:n}})),g=o.mapArray("value",(function(e,n){var r=i.getEdgeByIndex(n),o=(0,Se.Cb)(e,h,p);isNaN(o)&&(o=(p[0]+p[1])/2);var a=r.getModel(),s=_.retrieve3(r.getModel().get(["lineStyle","curveness"]),-Al(r,t,n,!0),0);return{n1:f[r.node1.dataIndex],n2:f[r.node2.dataIndex],d:o,curveness:s,ignoreForceLayout:a.get("ignoreForceLayout")}})),m=e.getBoundingRect(),v=function(t,e,n){for(var i=t,r=e,o=n.rect,a=o.width,s=o.height,l=[o.x+a/2,o.y+s/2],h=null==n.gravity?.1:n.gravity,c=0;c<i.length;c++){var u=i[c];u.p||(u.p=xi.create(a*(Math.random()-.5)+l[0],s*(Math.random()-.5)+l[1])),u.pp=xi.clone(u.p),u.edges=null}var d,p,f=null==n.friction?.6:n.friction,g=f;return{warmUp:function(){g=.8*f},setFixed:function(t){i[t].fixed=!0},setUnfixed:function(t){i[t].fixed=!1},beforeStep:function(t){d=t},afterStep:function(t){p=t},step:function(t){d&&d(i,r);for(var e=[],n=i.length,o=0;o<r.length;o++){var a=r[o];if(!a.ignoreForceLayout){var s=a.n1,c=a.n2;xi.sub(e,c.p,s.p);var u=xi.len(e)-a.d,f=c.w/(s.w+c.w);isNaN(f)&&(f=0),xi.normalize(e,e),!s.fixed&&Bl(s.p,s.p,e,f*u*g),!c.fixed&&Bl(c.p,c.p,e,-(1-f)*u*g)}}for(o=0;o<n;o++)(_=i[o]).fixed||(xi.sub(e,l,_.p),Bl(_.p,_.p,e,h*g));for(o=0;o<n;o++){s=i[o];for(var m=o+1;m<n;m++){c=i[m],xi.sub(e,c.p,s.p),0===(u=xi.len(e))&&(xi.set(e,Math.random()-.5,Math.random()-.5),u=1);var v=(s.rep+c.rep)/u/u;!s.fixed&&Bl(s.pp,s.pp,e,v),!c.fixed&&Bl(c.pp,c.pp,e,-v)}}var y=[];for(o=0;o<n;o++){var _;(_=i[o]).fixed||(xi.sub(y,_.p,_.pp),Bl(_.p,_.p,y,g),xi.copy(_.pp,_.p))}var x=(g*=.992)<.01;p&&p(i,r,x),t&&t(x)}}}(f,g,{rect:m,gravity:a.get("gravity"),friction:a.get("friction")});v.beforeStep((function(t,e){for(var n=0,r=t.length;n<r;n++)t[n].fixed&&xi.copy(t[n].p,i.getNodeByIndex(n).getLayout())})),v.afterStep((function(t,e,o){for(var a=0,s=t.length;a<s;a++)t[a].fixed||i.getNodeByIndex(a).setLayout(t[a].p),n[r.getId(a)]=t[a].p;for(a=0,s=e.length;a<s;a++){var l=e[a],h=i.getEdgeByIndex(a),c=l.n1.p,u=l.n2.p,d=h.getLayout();(d=d?d.slice():[])[0]=d[0]||[],d[1]=d[1]||[],xi.copy(d[0],c),xi.copy(d[1],u),+l.curveness&&(d[2]=[(c[0]+u[0])/2-(c[1]-u[1])*l.curveness,(c[1]+u[1])/2-(u[0]-c[0])*l.curveness]),h.setLayout(d)}})),t.forceLayout=v,t.preservedPoints=n,v.step()}else t.forceLayout=null}))}function Gl(t,e){var n=[];return t.eachSeriesByType("graph",(function(t){var i=t.get("coordinateSystem");if(!i||"view"===i){var r=t.getData(),o=r.mapArray((function(t){var e=r.getItemModel(t);return[+e.get("x"),+e.get("y")]})),a=[],s=[];Ga.Cr(o,a,s),s[0]-a[0]==0&&(s[0]+=1,a[0]-=1),s[1]-a[1]==0&&(s[1]+=1,a[1]-=1);var l=(s[0]-a[0])/(s[1]-a[1]),h=function(t,e,n){var i=(0,_.extend)(t.getBoxLayoutParams(),{aspect:n});return(0,Mn.dV)(i,{width:e.getWidth(),height:e.getHeight()})}(t,e,l);isNaN(l)&&(a=[h.x,h.y],s=[h.x+h.width,h.y+h.height]);var c=s[0]-a[0],u=s[1]-a[1],d=h.width,p=h.height,f=t.coordinateSystem=new da;f.zoomLimit=t.get("scaleLimit"),f.setBoundingRect(a[0],a[1],c,u),f.setViewRect(h.x,h.y,d,p),f.setCenter(t.get("center"),e),f.setZoom(t.get("zoom")),n.push(f)}})),n}var Vl=zi.A.prototype,jl=Ea.A.prototype,Hl=function(){this.x1=0,this.y1=0,this.x2=0,this.y2=0,this.percent=1};!function(t){function e(){return null!==t&&t.apply(this,arguments)||this}(0,Bt.C6)(e,t)}(Hl);function Wl(t){return isNaN(+t.cpx1)||isNaN(+t.cpy1)}const Ul=function(t){function e(e){var n=t.call(this,e)||this;return n.type="ec-line",n}return(0,Bt.C6)(e,t),e.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},e.prototype.getDefaultShape=function(){return new Hl},e.prototype.buildPath=function(t,e){Wl(e)?Vl.buildPath.call(this,t,e):jl.buildPath.call(this,t,e)},e.prototype.pointAt=function(t){return Wl(this.shape)?Vl.pointAt.call(this,t):jl.pointAt.call(this,t)},e.prototype.tangentAt=function(t){var e=this.shape,n=Wl(e)?[e.x2-e.x1,e.y2-e.y1]:jl.tangentAt.call(this,t);return xi.normalize(n,n)},e}(s.Ay);var ql=["fromSymbol","toSymbol"];function Xl(t){return"_"+t+"Type"}function Yl(t,e,n){var i=e.getItemVisual(n,t);if(!i||"none"===i)return i;var r=e.getItemVisual(n,t+"Size"),o=e.getItemVisual(n,t+"Rotate"),a=e.getItemVisual(n,t+"Offset"),s=e.getItemVisual(n,t+"KeepAspect"),l=Vt.xU(r);return i+l+Vt.hV(a||0,l)+(o||"")+(s||"")}function Zl(t,e,n){var i=e.getItemVisual(n,t);if(i&&"none"!==i){var r=e.getItemVisual(n,t+"Size"),o=e.getItemVisual(n,t+"Rotate"),a=e.getItemVisual(n,t+"Offset"),s=e.getItemVisual(n,t+"KeepAspect"),l=Vt.xU(r),h=Vt.hV(a||0,l),c=Vt.v5(i,-l[0]/2+h[0],-l[1]/2+h[1],l[0],l[1],null,s);return c.__specifiedRotation=null==o||isNaN(o)?void 0:+o*Math.PI/180||0,c.name=t,c}}function $l(t,e){t.x1=e[0][0],t.y1=e[0][1],t.x2=e[1][0],t.y2=e[1][1],t.percent=1;var n=e[2];n?(t.cpx1=n[0],t.cpy1=n[1]):(t.cpx1=NaN,t.cpy1=NaN)}var Kl=function(t){function e(e,n,i){var r=t.call(this)||this;return r._createLine(e,n,i),r}return(0,Bt.C6)(e,t),e.prototype._createLine=function(t,e,n){var i=t.hostModel,r=function(t){var e=new Ul({name:"line",subPixelOptimize:!0});return $l(e.shape,t),e}(t.getItemLayout(e));r.shape.percent=0,Ut.LW(r,{shape:{percent:1}},i,e),this.add(r),(0,_.each)(ql,(function(n){var i=Zl(n,t,e);this.add(i),this[Xl(n)]=Yl(n,t,e)}),this),this._updateCommonStl(t,e,n)},e.prototype.updateData=function(t,e,n){var i=t.hostModel,r=this.childOfName("line"),o=t.getItemLayout(e),a={shape:{}};$l(a.shape,o),Ut.oi(r,a,i,e),(0,_.each)(ql,(function(n){var i=Yl(n,t,e),r=Xl(n);if(this[r]!==i){this.remove(this.childOfName(n));var o=Zl(n,t,e);this.add(o)}this[r]=i}),this),this._updateCommonStl(t,e,n)},e.prototype.getLinePath=function(){return this.childAt(0)},e.prototype._updateCommonStl=function(t,e,n){var i=t.hostModel,r=this.childOfName("line"),o=n&&n.emphasisLineStyle,a=n&&n.blurLineStyle,s=n&&n.selectLineStyle,l=n&&n.labelStatesModels,h=n&&n.emphasisDisabled,c=n&&n.focus,u=n&&n.blurScope;if(!n||t.hasItemOption){var d=t.getItemModel(e),p=d.getModel("emphasis");o=p.getModel("lineStyle").getLineStyle(),a=d.getModel(["blur","lineStyle"]).getLineStyle(),s=d.getModel(["select","lineStyle"]).getLineStyle(),h=p.get("disabled"),c=p.get("focus"),u=p.get("blurScope"),l=(0,Jt.lx)(d)}var f=t.getItemVisual(e,"style"),g=f.stroke;r.useStyle(f),r.style.fill=null,r.style.strokeNoScale=!0,r.ensureState("emphasis").style=o,r.ensureState("blur").style=a,r.ensureState("select").style=s,(0,_.each)(ql,(function(t){var e=this.childOfName(t);if(e){e.setColor(g),e.style.opacity=f.opacity;for(var n=0;n<Yt.BV.length;n++){var i=Yt.BV[n],o=r.getState(i);if(o){var a=o.style||{},s=e.ensureState(i),l=s.style||(s.style={});null!=a.stroke&&(l[e.__isEmptyBrush?"stroke":"fill"]=a.stroke),null!=a.opacity&&(l.opacity=a.opacity)}}e.markRedraw()}}),this);var m=i.getRawValue(e);(0,Jt.qM)(this,l,{labelDataIndex:e,labelFetcher:{getFormattedLabel:function(e,n){return i.getFormattedLabel(e,n,t.dataType)}},inheritColor:g||"#000",defaultOpacity:f.opacity,defaultText:(null==m?t.getName(e):isFinite(m)?(0,Se.LI)(m):m)+""});var v=this.getTextContent();if(v){var y=l.normal;v.__align=v.style.align,v.__verticalAlign=v.style.verticalAlign,v.__position=y.get("position")||"middle";var x=y.get("distance");(0,_.isArray)(x)||(x=[x,x]),v.__labelDistance=x}this.setTextConfig({position:null,local:!0,inside:!1}),(0,Yt.Lm)(this,c,u,h)},e.prototype.highlight=function(){(0,Yt.HY)(this)},e.prototype.downplay=function(){(0,Yt.SD)(this)},e.prototype.updateLayout=function(t,e){this.setLinePoints(t.getItemLayout(e))},e.prototype.setLinePoints=function(t){var e=this.childOfName("line");$l(e.shape,t),e.dirty()},e.prototype.beforeUpdate=function(){var t=this,e=t.childOfName("fromSymbol"),n=t.childOfName("toSymbol"),i=t.getTextContent();if(e||n||i&&!i.ignore){for(var r=1,o=this.parent;o;)o.scaleX&&(r/=o.scaleX),o=o.parent;var a=t.childOfName("line");if(this.__dirty||a.__dirty){var s=a.shape.percent,l=a.pointAt(0),h=a.pointAt(s),c=xi.sub([],h,l);if(xi.normalize(c,c),e&&(e.setPosition(l),S(e,0),e.scaleX=e.scaleY=r*s,e.markRedraw()),n&&(n.setPosition(h),S(n,1),n.scaleX=n.scaleY=r*s,n.markRedraw()),i&&!i.ignore){i.x=i.y=0,i.originX=i.originY=0;var u=void 0,d=void 0,p=i.__labelDistance,f=p[0]*r,g=p[1]*r,m=s/2,v=a.tangentAt(m),y=[v[1],-v[0]],_=a.pointAt(m);y[1]>0&&(y[0]=-y[0],y[1]=-y[1]);var x=v[0]<0?-1:1;if("start"!==i.__position&&"end"!==i.__position){var b=-Math.atan2(v[1],v[0]);h[0]<l[0]&&(b=Math.PI+b),i.rotation=b}var w=void 0;switch(i.__position){case"insideStartTop":case"insideMiddleTop":case"insideEndTop":case"middle":w=-g,d="bottom";break;case"insideStartBottom":case"insideMiddleBottom":case"insideEndBottom":w=g,d="top";break;default:w=0,d="middle"}switch(i.__position){case"end":i.x=c[0]*f+h[0],i.y=c[1]*g+h[1],u=c[0]>.8?"left":c[0]<-.8?"right":"center",d=c[1]>.8?"top":c[1]<-.8?"bottom":"middle";break;case"start":i.x=-c[0]*f+l[0],i.y=-c[1]*g+l[1],u=c[0]>.8?"right":c[0]<-.8?"left":"center",d=c[1]>.8?"bottom":c[1]<-.8?"top":"middle";break;case"insideStartTop":case"insideStart":case"insideStartBottom":i.x=f*x+l[0],i.y=l[1]+w,u=v[0]<0?"right":"left",i.originX=-f*x,i.originY=-w;break;case"insideMiddleTop":case"insideMiddle":case"insideMiddleBottom":case"middle":i.x=_[0],i.y=_[1]+w,u="center",i.originY=-w;break;case"insideEndTop":case"insideEnd":case"insideEndBottom":i.x=-f*x+h[0],i.y=h[1]+w,u=v[0]>=0?"right":"left",i.originX=f*x,i.originY=-w}i.scaleX=i.scaleY=r,i.setStyle({verticalAlign:i.__verticalAlign||d,align:i.__align||u})}}}function S(t,e){var n=t.__specifiedRotation;if(null==n){var i=a.tangentAt(e);t.attr("rotation",(1===e?-1:1)*Math.PI/2-Math.atan2(i[1],i[0]))}else t.attr("rotation",n)}},e}(jt.A);const Jl=Kl;function Ql(t){var e=t.hostModel,n=e.getModel("emphasis");return{lineStyle:e.getModel("lineStyle").getLineStyle(),emphasisLineStyle:n.getModel(["lineStyle"]).getLineStyle(),blurLineStyle:e.getModel(["blur","lineStyle"]).getLineStyle(),selectLineStyle:e.getModel(["select","lineStyle"]).getLineStyle(),emphasisDisabled:n.get("disabled"),blurScope:n.get("blurScope"),focus:n.get("focus"),labelStatesModels:(0,Jt.lx)(e)}}function th(t){return isNaN(t[0])||isNaN(t[1])}function eh(t){return t&&!th(t[0])&&!th(t[1])}const nh=function(){function t(t){this.group=new jt.A,this._LineCtor=t||Jl}return t.prototype.updateData=function(t){var e=this;this._progressiveEls=null;var n=this,i=n.group,r=n._lineData;n._lineData=t,r||i.removeAll();var o=Ql(t);t.diff(r).add((function(n){e._doAdd(t,n,o)})).update((function(n,i){e._doUpdate(r,t,i,n,o)})).remove((function(t){i.remove(r.getItemGraphicEl(t))})).execute()},t.prototype.updateLayout=function(){var t=this._lineData;t&&t.eachItemGraphicEl((function(e,n){e.updateLayout(t,n)}),this)},t.prototype.incrementalPrepareUpdate=function(t){this._seriesScope=Ql(t),this._lineData=null,this.group.removeAll()},t.prototype.incrementalUpdate=function(t,e){function n(t){t.isGroup||function(t){return t.animators&&t.animators.length>0}(t)||(t.incremental=!0,t.ensureState("emphasis").hoverLayer=!0)}this._progressiveEls=[];for(var i=t.start;i<t.end;i++){if(eh(e.getItemLayout(i))){var r=new this._LineCtor(e,i,this._seriesScope);r.traverse(n),this.group.add(r),e.setItemGraphicEl(i,r),this._progressiveEls.push(r)}}},t.prototype.remove=function(){this.group.removeAll()},t.prototype.eachRendered=function(t){qt.traverseElements(this._progressiveEls||this.group,t)},t.prototype._doAdd=function(t,e,n){if(eh(t.getItemLayout(e))){var i=new this._LineCtor(t,e,n);t.setItemGraphicEl(e,i),this.group.add(i)}},t.prototype._doUpdate=function(t,e,n,i,r){var o=t.getItemGraphicEl(n);eh(e.getItemLayout(i))?(o?o.updateData(e,i,r):o=new this._LineCtor(e,i,r),e.setItemGraphicEl(i,o),this.group.add(o)):this.group.remove(o)},t}();var ih=[],rh=[],oh=[],ah=ue.k3,sh=xi.distSquare,lh=Math.abs;function hh(t,e,n){for(var i,r=t[0],o=t[1],a=t[2],s=1/0,l=n*n,h=.1,c=.1;c<=.9;c+=.1){ih[0]=ah(r[0],o[0],a[0],c),ih[1]=ah(r[1],o[1],a[1],c),(p=lh(sh(ih,e)-l))<s&&(s=p,i=c)}for(var u=0;u<32;u++){var d=i+h;rh[0]=ah(r[0],o[0],a[0],i),rh[1]=ah(r[1],o[1],a[1],i),oh[0]=ah(r[0],o[0],a[0],d),oh[1]=ah(r[1],o[1],a[1],d);var p=sh(rh,e)-l;if(lh(p)<.01)break;var f=sh(oh,e)-l;h/=2,p<0?f>=0?i+=h:i-=h:f>=0?i-=h:i+=h}return i}function ch(t,e){var n=[],i=ue.kx,r=[[],[],[]],o=[[],[]],a=[];e/=2,t.eachEdge((function(t,s){var l=t.getLayout(),h=t.getVisual("fromSymbol"),c=t.getVisual("toSymbol");l.__original||(l.__original=[xi.clone(l[0]),xi.clone(l[1])],l[2]&&l.__original.push(xi.clone(l[2])));var u=l.__original;if(null!=l[2]){if(xi.copy(r[0],u[0]),xi.copy(r[1],u[2]),xi.copy(r[2],u[1]),h&&"none"!==h){var d=Ll(t.node1),p=hh(r,u[0],d*e);i(r[0][0],r[1][0],r[2][0],p,n),r[0][0]=n[3],r[1][0]=n[4],i(r[0][1],r[1][1],r[2][1],p,n),r[0][1]=n[3],r[1][1]=n[4]}if(c&&"none"!==c){d=Ll(t.node2),p=hh(r,u[1],d*e);i(r[0][0],r[1][0],r[2][0],p,n),r[1][0]=n[1],r[2][0]=n[2],i(r[0][1],r[1][1],r[2][1],p,n),r[1][1]=n[1],r[2][1]=n[2]}xi.copy(l[0],r[0]),xi.copy(l[1],r[2]),xi.copy(l[2],r[1])}else{if(xi.copy(o[0],u[0]),xi.copy(o[1],u[1]),xi.sub(a,o[1],o[0]),xi.normalize(a,a),h&&"none"!==h){d=Ll(t.node1);xi.scaleAndAdd(o[0],o[0],a,d*e)}if(c&&"none"!==c){d=Ll(t.node2);xi.scaleAndAdd(o[1],o[1],a,-d*e)}xi.copy(l[0],o[0]),xi.copy(l[1],o[1])}}))}function uh(t){return"view"===t.type}var dh=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return(0,Bt.C6)(e,t),e.prototype.init=function(t,e){var n=new re,i=new nh,r=this.group;this._controller=new Ur(e.getZr()),this._controllerHost={target:r},r.add(n.group),r.add(i.group),this._symbolDraw=n,this._lineDraw=i,this._firstRender=!0},e.prototype.render=function(t,e,n){var i=this,r=t.coordinateSystem;this._model=t;var o=this._symbolDraw,a=this._lineDraw,s=this.group;if(uh(r)){var l={x:r.x,y:r.y,scaleX:r.scaleX,scaleY:r.scaleY};this._firstRender?s.attr(l):Ut.oi(s,l,t)}ch(t.getGraph(),kl(t));var h=t.getData();o.updateData(h);var c=t.getEdgeData();a.updateData(c),this._updateNodeAndLinkScale(),this._updateController(t,e,n),clearTimeout(this._layoutTimeout);var u=t.forceLayout,d=t.get(["force","layoutAnimation"]);u&&this._startForceLayoutIteration(u,d);var p=t.get("layout");h.graph.eachNode((function(e){var n=e.dataIndex,r=e.getGraphicEl(),o=e.getModel();if(r){r.off("drag").off("dragend");var a=o.get("draggable");a&&r.on("drag",(function(o){switch(p){case"force":u.warmUp(),!i._layouting&&i._startForceLayoutIteration(u,d),u.setFixed(n),h.setItemLayout(n,[r.x,r.y]);break;case"circular":h.setItemLayout(n,[r.x,r.y]),e.setLayout({fixed:!0},!0),Rl(t,"symbolSize",e,[o.offsetX,o.offsetY]),i.updateLayout(t);break;default:h.setItemLayout(n,[r.x,r.y]),Il(t.getGraph(),t),i.updateLayout(t)}})).on("dragend",(function(){u&&u.setUnfixed(n)})),r.setDraggable(a,!!o.get("cursor")),"adjacency"===o.get(["emphasis","focus"])&&((0,Xt.z)(r).focus=e.getAdjacentDataIndices())}})),h.graph.eachEdge((function(t){var e=t.getGraphicEl(),n=t.getModel().get(["emphasis","focus"]);e&&"adjacency"===n&&((0,Xt.z)(e).focus={edge:[t.dataIndex],node:[t.node1.dataIndex,t.node2.dataIndex]})}));var f="circular"===t.get("layout")&&t.get(["circular","rotateLabel"]),g=h.getLayout("cx"),m=h.getLayout("cy");h.graph.eachNode((function(t){Nl(t,f,g,m)})),this._firstRender=!1},e.prototype.dispose=function(){this.remove(),this._controller&&this._controller.dispose(),this._controllerHost=null},e.prototype._startForceLayoutIteration=function(t,e){var n=this;!function i(){t.step((function(t){n.updateLayout(n._model),(n._layouting=!t)&&(e?n._layoutTimeout=setTimeout(i,16):i())}))}()},e.prototype._updateController=function(t,e,n){var i=this,r=this._controller,o=this._controllerHost,a=this.group;r.setPointerChecker((function(e,i,r){var o=a.getBoundingRect();return o.applyTransform(a.transform),o.contain(i,r)&&!Zr(e,n,t)})),uh(t.coordinateSystem)?(r.enable(t.get("roam")),o.zoomLimit=t.get("scaleLimit"),o.zoom=t.coordinateSystem.getZoom(),r.off("pan").off("zoom").on("pan",(function(e){qr(o,e.dx,e.dy),n.dispatchAction({seriesId:t.id,type:"graphRoam",dx:e.dx,dy:e.dy})})).on("zoom",(function(e){Xr(o,e.scale,e.originX,e.originY),n.dispatchAction({seriesId:t.id,type:"graphRoam",zoom:e.scale,originX:e.originX,originY:e.originY}),i._updateNodeAndLinkScale(),ch(t.getGraph(),kl(t)),i._lineDraw.updateLayout(),n.updateLabelLayout()}))):r.disable()},e.prototype._updateNodeAndLinkScale=function(){var t=this._model,e=t.getData(),n=kl(t);e.eachItemGraphicEl((function(t,e){t&&t.setSymbolScale(n)}))},e.prototype.updateLayout=function(t){ch(t.getGraph(),kl(t)),this._symbolDraw.updateLayout(),this._lineDraw.updateLayout()},e.prototype.remove=function(){clearTimeout(this._layoutTimeout),this._layouting=!1,this._layoutTimeout=null,this._symbolDraw&&this._symbolDraw.remove(),this._lineDraw&&this._lineDraw.remove()},e.type="graph",e}(xe.A);const ph=dh;var fh=n(9588),gh=n(1452);function mh(t,e,n,i,r){for(var o=new fh.Ay(i),a=0;a<t.length;a++)o.addNode(_.retrieve(t[a].id,t[a].name,a),a);var s=[],l=[],h=0;for(a=0;a<e.length;a++){var c=e[a],u=c.source,d=c.target;o.addEdge(u,d,h)&&(l.push(c),s.push(_.retrieve((0,ce.vS)(c.id,null),u+" > "+d)),h++)}var p,f=n.get("coordinateSystem");if("cartesian2d"===f||"polar"===f)p=(0,zt.A)(t,n);else{var g=gh.A.get(f),m=g&&g.dimensions||[];_.indexOf(m,"value")<0&&m.concat(["value"]);var v=(0,Wn.A)(t,{coordDimensions:m,encodeDefine:n.getEncode()}).dimensions;(p=new Un.A(v,n)).initData(t)}var y=new Un.A(["value"],n);return y.initData(l,s),r&&r(p,y),(0,Ka.A)({mainData:p,struct:o,structAttr:"graph",datas:{node:p,edge:y},datasAttr:{node:"data",edge:"edgeData"}}),o.update(),o}var vh=n(8254),yh=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n.hasSymbolVisual=!0,n}return(0,Bt.C6)(e,t),e.prototype.init=function(e){t.prototype.init.apply(this,arguments);var n=this;function i(){return n._categoriesData}this.legendVisualProvider=new Yn(i,i),this.fillDataTextStyle(e.edges||e.links),this._updateCategoriesData()},e.prototype.mergeOption=function(e){t.prototype.mergeOption.apply(this,arguments),this.fillDataTextStyle(e.edges||e.links),this._updateCategoriesData()},e.prototype.mergeDefaultAndTheme=function(e){t.prototype.mergeDefaultAndTheme.apply(this,arguments),(0,ce.M5)(e,"edgeLabel",["show"])},e.prototype.getInitialData=function(t,e){var n,i=t.edges||t.links||[],r=t.data||t.nodes||[],o=this;if(r&&i){bl(n=this)&&(n.__curvenessList=[],n.__edgeMap={},wl(n));var a=mh(r,i,this,!0,(function(t,e){t.wrapMethod("getItemModel",(function(t){var e=o._categoriesModels[t.getShallow("category")];return e&&(e.parentModel=t.parentModel,t.parentModel=e),t}));var n=Gi.A.prototype.getModel;function i(t,e){var i=n.call(this,t,e);return i.resolveParentPath=r,i}function r(t){if(t&&("label"===t[0]||"label"===t[1])){var e=t.slice();return"label"===t[0]?e[0]="edgeLabel":"label"===t[1]&&(e[1]="edgeLabel"),e}return t}e.wrapMethod("getItemModel",(function(t){return t.resolveParentPath=r,t.getModel=i,t}))}));return _.each(a.edges,(function(t){!function(t,e,n,i){if(bl(n)){var r=Sl(t,e,n),o=n.__edgeMap,a=o[Tl(r)];o[r]&&!a?o[r].isForward=!0:a&&o[r]&&(a.isForward=!0,o[r].isForward=!1),o[r]=o[r]||[],o[r].push(i)}}(t.node1,t.node2,this,t.dataIndex)}),this),a.data}},e.prototype.getGraph=function(){return this.getData().graph},e.prototype.getEdgeData=function(){return this.getGraph().edgeData},e.prototype.getCategoriesData=function(){return this._categoriesData},e.prototype.formatTooltip=function(t,e,n){if("edge"===n){var i=this.getData(),r=this.getDataParams(t,n),o=i.graph.getEdgeByIndex(t),a=i.getName(o.node1.dataIndex),s=i.getName(o.node2.dataIndex),l=[];return null!=a&&l.push(a),null!=s&&l.push(s),(0,br.Qx)("nameValue",{name:l.join(" > "),value:r.value,noValue:null==r.value})}return(0,vh.J)({series:this,dataIndex:t,multipleSeries:e})},e.prototype._updateCategoriesData=function(){var t=_.map(this.option.categories||[],(function(t){return null!=t.value?t:_.extend({value:0},t)})),e=new Un.A(["value"],this);e.initData(t),this._categoriesData=e,this._categoriesModels=e.mapArray((function(t){return e.getItemModel(t)}))},e.prototype.setZoom=function(t){this.option.zoom=t},e.prototype.setCenter=function(t){this.option.center=t},e.prototype.isAnimationEnabled=function(){return t.prototype.isAnimationEnabled.call(this)&&!("force"===this.get("layout")&&this.get(["force","layoutAnimation"]))},e.type="series.graph",e.dependencies=["grid","polar","geo","singleAxis","calendar"],e.defaultOption={z:2,coordinateSystem:"view",legendHoverLink:!0,layout:null,circular:{rotateLabel:!1},force:{initLayout:null,repulsion:[0,50],gravity:.1,friction:.6,edgeLength:30,layoutAnimation:!0},left:"center",top:"center",symbol:"circle",symbolSize:10,edgeSymbol:["none","none"],edgeSymbolSize:10,edgeLabel:{position:"middle",distance:5},draggable:!1,roam:!1,center:null,zoom:1,nodeScaleRatio:.6,label:{show:!1,formatter:"{b}"},itemStyle:{},lineStyle:{color:"#aaa",width:1,opacity:.5},emphasis:{scale:!0,label:{show:!0}},select:{itemStyle:{borderColor:"#212121"}}},e}(Gt.A);const _h=yh;var xh={type:"graphRoam",event:"graphRoam",update:"none"};var bh=function(){this.angle=0,this.width=10,this.r=10,this.x=0,this.y=0},wh=function(t){function e(e){var n=t.call(this,e)||this;return n.type="pointer",n}return(0,Bt.C6)(e,t),e.prototype.getDefaultShape=function(){return new bh},e.prototype.buildPath=function(t,e){var n=Math.cos,i=Math.sin,r=e.r,o=e.width,a=e.angle,s=e.x-n(a)*o*(o>=r/3?1:2),l=e.y-i(a)*o*(o>=r/3?1:2);a=e.angle-Math.PI/2,t.moveTo(s,l),t.lineTo(e.x+n(a)*o,e.y+i(a)*o),t.lineTo(e.x+n(e.angle)*r,e.y+i(e.angle)*r),t.lineTo(e.x-n(a)*o,e.y-i(a)*o),t.lineTo(s,l)},e}(s.Ay);const Sh=wh;function Th(t,e){var n=null==t?"":t+"";return e&&((0,_.isString)(e)?n=e.replace("{value}",n):(0,_.isFunction)(e)&&(n=e(t))),n}var Mh=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return(0,Bt.C6)(e,t),e.prototype.render=function(t,e,n){this.group.removeAll();var i=t.get(["axisLine","lineStyle","color"]),r=function(t,e){var n=t.get("center"),i=e.getWidth(),r=e.getHeight(),o=Math.min(i,r);return{cx:(0,Se.lo)(n[0],e.getWidth()),cy:(0,Se.lo)(n[1],e.getHeight()),r:(0,Se.lo)(t.get("radius"),o/2)}}(t,n);this._renderMain(t,e,n,i,r),this._data=t.getData()},e.prototype.dispose=function(){},e.prototype._renderMain=function(t,e,n,i,r){var o=this.group,a=t.get("clockwise"),s=-t.get("startAngle")/180*Math.PI,l=-t.get("endAngle")/180*Math.PI,h=t.getModel("axisLine"),c=h.get("roundCap")?tn:we.A,u=h.get("show"),d=h.getModel("lineStyle"),p=d.get("width"),f=[s,l];(0,N.q)(f,!a);for(var g=(l=f[1])-(s=f[0]),m=s,v=[],y=0;u&&y<i.length;y++){var x=new c({shape:{startAngle:m,endAngle:l=s+g*Math.min(Math.max(i[y][0],0),1),cx:r.cx,cy:r.cy,clockwise:a,r0:r.r-p,r:r.r},silent:!0});x.setStyle({fill:i[y][1]}),x.setStyle(d.getLineStyle(["color","width"])),v.push(x),m=l}v.reverse(),(0,_.each)(v,(function(t){return o.add(t)}));var b=function(t){if(t<=0)return i[0][1];var e;for(e=0;e<i.length;e++)if(i[e][0]>=t&&(0===e?0:i[e-1][0])<t)return i[e][1];return i[e-1][1]};this._renderTicks(t,e,n,b,r,s,l,a,p),this._renderTitleAndDetail(t,e,n,b,r),this._renderAnchor(t,r),this._renderPointer(t,e,n,b,r,s,l,a,p)},e.prototype._renderTicks=function(t,e,n,i,r,o,a,s,l){for(var h,c,u=this.group,d=r.cx,p=r.cy,f=r.r,g=+t.get("min"),m=+t.get("max"),v=t.getModel("splitLine"),y=t.getModel("axisTick"),x=t.getModel("axisLabel"),b=t.get("splitNumber"),w=y.get("splitNumber"),S=(0,Se.lo)(v.get("length"),f),T=(0,Se.lo)(y.get("length"),f),M=o,A=(a-o)/b,C=A/w,I=v.getModel("lineStyle").getLineStyle(),E=y.getModel("lineStyle").getLineStyle(),k=v.get("distance"),L=0;L<=b;L++){if(h=Math.cos(M),c=Math.sin(M),v.get("show")){var D=k?k+l:l,P=new zi.A({shape:{x1:h*(f-D)+d,y1:c*(f-D)+p,x2:h*(f-S-D)+d,y2:c*(f-S-D)+p},style:I,silent:!0});"auto"===I.stroke&&P.setStyle({stroke:i(L/b)}),u.add(P)}if(x.get("show")){D=x.get("distance")+k;var R=Th((0,Se.LI)(L/b*(m-g)+g),x.get("formatter")),O=i(L/b),N=h*(f-S-D)+d,F=c*(f-S-D)+p,B=x.get("rotate"),z=0;"radial"===B?(z=-M+2*Math.PI)>Math.PI/2&&(z+=Math.PI):"tangential"===B?z=-M-Math.PI/2:(0,_.isNumber)(B)&&(z=B*Math.PI/180),0===z?u.add(new Z.Ay({style:(0,Jt.VB)(x,{text:R,x:N,y:F,verticalAlign:c<-.8?"top":c>.8?"bottom":"middle",align:h<-.4?"left":h>.4?"right":"center"},{inheritColor:O}),silent:!0})):u.add(new Z.Ay({style:(0,Jt.VB)(x,{text:R,x:N,y:F,verticalAlign:"middle",align:"center"},{inheritColor:O}),silent:!0,originX:N,originY:F,rotation:z}))}if(y.get("show")&&L!==b){D=(D=y.get("distance"))?D+l:l;for(var G=0;G<=w;G++){h=Math.cos(M),c=Math.sin(M);var V=new zi.A({shape:{x1:h*(f-D)+d,y1:c*(f-D)+p,x2:h*(f-T-D)+d,y2:c*(f-T-D)+p},silent:!0,style:E});"auto"===E.stroke&&V.setStyle({stroke:i((L+G/w)/b)}),u.add(V),M+=C}M-=C}else M+=A}},e.prototype._renderPointer=function(t,e,n,i,r,o,a,s,h){var c=this.group,u=this._data,d=this._progressEls,p=[],f=t.get(["pointer","show"]),g=t.getModel("progress"),m=g.get("show"),v=t.getData(),y=v.mapDimension("value"),x=+t.get("min"),b=+t.get("max"),w=[x,b],S=[o,a];function T(e,n){var i,o=v.getItemModel(e).getModel("pointer"),a=(0,Se.lo)(o.get("width"),r.r),s=(0,Se.lo)(o.get("length"),r.r),l=t.get(["pointer","icon"]),h=o.get("offsetCenter"),c=(0,Se.lo)(h[0],r.r),u=(0,Se.lo)(h[1],r.r),d=o.get("keepAspect");return(i=l?(0,Vt.v5)(l,c-a/2,u-s,a,s,null,d):new Sh({shape:{angle:-Math.PI/2,width:a,r:s,x:c,y:u}})).rotation=-(n+Math.PI/2),i.x=r.cx,i.y=r.cy,i}function M(t,e){var n=g.get("roundCap")?tn:we.A,i=g.get("overlap"),a=i?g.get("width"):h/v.count(),l=i?r.r-a:r.r-(t+1)*a,c=i?r.r:r.r-t*a,u=new n({shape:{startAngle:o,endAngle:e,cx:r.cx,cy:r.cy,clockwise:s,r0:l,r:c}});return i&&(u.z2=b-v.get(y,t)%b),u}(m||f)&&(v.diff(u).add((function(e){var n=v.get(y,e);if(f){var i=T(e,o);Ut.LW(i,{rotation:-((isNaN(+n)?S[0]:(0,Se.Cb)(n,w,S,!0))+Math.PI/2)},t),c.add(i),v.setItemGraphicEl(e,i)}if(m){var r=M(e,o),a=g.get("clip");Ut.LW(r,{shape:{endAngle:(0,Se.Cb)(n,w,S,a)}},t),c.add(r),(0,Xt.a)(t.seriesIndex,v.dataType,e,r),p[e]=r}})).update((function(e,n){var i=v.get(y,e);if(f){var r=u.getItemGraphicEl(n),a=r?r.rotation:o,s=T(e,a);s.rotation=a,Ut.oi(s,{rotation:-((isNaN(+i)?S[0]:(0,Se.Cb)(i,w,S,!0))+Math.PI/2)},t),c.add(s),v.setItemGraphicEl(e,s)}if(m){var l=d[n],h=M(e,l?l.shape.endAngle:o),_=g.get("clip");Ut.oi(h,{shape:{endAngle:(0,Se.Cb)(i,w,S,_)}},t),c.add(h),(0,Xt.a)(t.seriesIndex,v.dataType,e,h),p[e]=h}})).execute(),v.each((function(t){var e=v.getItemModel(t),n=e.getModel("emphasis"),r=n.get("focus"),o=n.get("blurScope"),a=n.get("disabled");if(f){var s=v.getItemGraphicEl(t),h=v.getItemVisual(t,"style"),c=h.fill;if(s instanceof l.Ay){var u=s.style;s.useStyle((0,_.extend)({image:u.image,x:u.x,y:u.y,width:u.width,height:u.height},h))}else s.useStyle(h),"pointer"!==s.type&&s.setColor(c);s.setStyle(e.getModel(["pointer","itemStyle"]).getItemStyle()),"auto"===s.style.fill&&s.setStyle("fill",i((0,Se.Cb)(v.get(y,t),w,[0,1],!0))),s.z2EmphasisLift=0,(0,Yt.Mx)(s,e),(0,Yt.Lm)(s,r,o,a)}if(m){var d=p[t];d.useStyle(v.getItemVisual(t,"style")),d.setStyle(e.getModel(["progress","itemStyle"]).getItemStyle()),d.z2EmphasisLift=0,(0,Yt.Mx)(d,e),(0,Yt.Lm)(d,r,o,a)}})),this._progressEls=p)},e.prototype._renderAnchor=function(t,e){var n=t.getModel("anchor");if(n.get("show")){var i=n.get("size"),r=n.get("icon"),o=n.get("offsetCenter"),a=n.get("keepAspect"),s=(0,Vt.v5)(r,e.cx-i/2+(0,Se.lo)(o[0],e.r),e.cy-i/2+(0,Se.lo)(o[1],e.r),i,i,null,a);s.z2=n.get("showAbove")?1:0,s.setStyle(n.getModel("itemStyle").getItemStyle()),this.group.add(s)}},e.prototype._renderTitleAndDetail=function(t,e,n,i,r){var o=this,a=t.getData(),s=a.mapDimension("value"),l=+t.get("min"),h=+t.get("max"),c=new jt.A,u=[],d=[],p=t.isAnimationEnabled(),f=t.get(["pointer","showAbove"]);a.diff(this._data).add((function(t){u[t]=new Z.Ay({silent:!0}),d[t]=new Z.Ay({silent:!0})})).update((function(t,e){u[t]=o._titleEls[e],d[t]=o._detailEls[e]})).execute(),a.each((function(e){var n=a.getItemModel(e),o=a.get(s,e),g=new jt.A,m=i((0,Se.Cb)(o,[l,h],[0,1],!0)),v=n.getModel("title");if(v.get("show")){var y=v.get("offsetCenter"),_=r.cx+(0,Se.lo)(y[0],r.r),x=r.cy+(0,Se.lo)(y[1],r.r);(I=u[e]).attr({z2:f?0:2,style:(0,Jt.VB)(v,{x:_,y:x,text:a.getName(e),align:"center",verticalAlign:"middle"},{inheritColor:m})}),g.add(I)}var b=n.getModel("detail");if(b.get("show")){var w=b.get("offsetCenter"),S=r.cx+(0,Se.lo)(w[0],r.r),T=r.cy+(0,Se.lo)(w[1],r.r),M=(0,Se.lo)(b.get("width"),r.r),A=(0,Se.lo)(b.get("height"),r.r),C=t.get(["progress","show"])?a.getItemVisual(e,"style").fill:m,I=d[e],E=b.get("formatter");I.attr({z2:f?0:2,style:(0,Jt.VB)(b,{x:S,y:T,text:Th(o,E),width:isNaN(M)?null:M,height:isNaN(A)?null:A,align:"center",verticalAlign:"middle"},{inheritColor:C})}),(0,Jt.Oh)(I,{normal:b},o,(function(t){return Th(t,E)})),p&&(0,Jt.xb)(I,e,a,t,{getFormattedLabel:function(t,e,n,i,r,a){return Th(a?a.interpolatedValue:o,E)}}),g.add(I)}c.add(g)})),this.group.add(c),this._titleEls=u,this._detailEls=d},e.type="gauge",e}(xe.A);const Ah=Mh;const Ch=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n.visualStyleAccessPath="itemStyle",n}return(0,Bt.C6)(e,t),e.prototype.getInitialData=function(t,e){return qn(this,["value"])},e.type="series.gauge",e.defaultOption={z:2,colorBy:"data",center:["50%","50%"],legendHoverLink:!0,radius:"75%",startAngle:225,endAngle:-45,clockwise:!0,min:0,max:100,splitNumber:10,axisLine:{show:!0,roundCap:!1,lineStyle:{color:[[1,"#E6EBF8"]],width:10}},progress:{show:!1,overlap:!0,width:10,roundCap:!1,clip:!0},splitLine:{show:!0,length:10,distance:10,lineStyle:{color:"#63677A",width:3,type:"solid"}},axisTick:{show:!0,splitNumber:5,length:6,distance:10,lineStyle:{color:"#63677A",width:1,type:"solid"}},axisLabel:{show:!0,distance:15,color:"#464646",fontSize:12,rotate:0},pointer:{icon:null,offsetCenter:[0,0],show:!0,showAbove:!0,length:"60%",width:6,keepAspect:!1},anchor:{show:!1,showAbove:!1,size:6,icon:"circle",offsetCenter:[0,0],keepAspect:!1,itemStyle:{color:"#fff",borderWidth:0,borderColor:"#5470c6"}},title:{show:!0,offsetCenter:[0,"20%"],color:"#464646",fontSize:16,valueAnimation:!1},detail:{show:!0,backgroundColor:"rgba(0,0,0,0)",borderWidth:0,borderColor:"#ccc",width:100,height:null,padding:[5,10],offsetCenter:[0,"40%"],color:"#464646",fontSize:30,fontWeight:"bold",lineHeight:30,valueAnimation:!1}},e}(Gt.A);var Ih=["itemStyle","opacity"],Eh=function(t){function e(e,n){var i=t.call(this)||this,r=i,o=new Pn.A,a=new Z.Ay;return r.setTextContent(a),i.setTextGuideLine(o),i.updateData(e,n,!0),i}return(0,Bt.C6)(e,t),e.prototype.updateData=function(t,e,n){var i=this,r=t.hostModel,o=t.getItemModel(e),a=t.getItemLayout(e),s=o.getModel("emphasis"),l=o.get(Ih);l=null==l?1:l,n||(0,Ut.ap)(i),i.useStyle(t.getItemVisual(e,"style")),i.style.lineJoin="round",n?(i.setShape({points:a.points}),i.style.opacity=0,Ut.LW(i,{style:{opacity:l}},r,e)):Ut.oi(i,{style:{opacity:l},shape:{points:a.points}},r,e),(0,Yt.Mx)(i,o),this._updateLabel(t,e),(0,Yt.Lm)(this,s.get("focus"),s.get("blurScope"),s.get("disabled"))},e.prototype._updateLabel=function(t,e){var n=this,i=this.getTextGuideLine(),r=n.getTextContent(),o=t.hostModel,a=t.getItemModel(e),s=t.getItemLayout(e).label,l=t.getItemVisual(e,"style"),h=l.fill;(0,Jt.qM)(r,(0,Jt.lx)(a),{labelFetcher:t.hostModel,labelDataIndex:e,defaultOpacity:l.opacity,defaultText:t.getName(e)},{normal:{align:s.textAlign,verticalAlign:s.verticalAlign}}),n.setTextConfig({local:!0,inside:!!s.inside,insideStroke:h,outsideFill:h});var c=s.linePoints;i.setShape({points:c}),n.textGuideLineConfig={anchor:c?new Rn.A(c[0][0],c[0][1]):null},Ut.oi(r,{style:{x:s.x,y:s.y}},o,e),r.attr({rotation:s.rotation,originX:s.x,originY:s.y,z2:10}),(0,On.eR)(n,(0,On.rv)(a),{stroke:h})},e}(yr.A);const kh=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n.ignoreLabelLineUpdate=!0,n}return(0,Bt.C6)(e,t),e.prototype.render=function(t,e,n){var i=t.getData(),r=this._data,o=this.group;i.diff(r).add((function(t){var e=new Eh(i,t);i.setItemGraphicEl(t,e),o.add(e)})).update((function(t,e){var n=r.getItemGraphicEl(e);n.updateData(i,t),o.add(n),i.setItemGraphicEl(t,n)})).remove((function(e){var n=r.getItemGraphicEl(e);Ut.t5(n,t,e)})).execute(),this._data=i},e.prototype.remove=function(){this.group.removeAll(),this._data=null},e.prototype.dispose=function(){},e.type="funnel",e}(xe.A);var Lh=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return(0,Bt.C6)(e,t),e.prototype.init=function(e){t.prototype.init.apply(this,arguments),this.legendVisualProvider=new Yn(_.bind(this.getData,this),_.bind(this.getRawData,this)),this._defaultLabelLine(e)},e.prototype.getInitialData=function(t,e){return qn(this,{coordDimensions:["value"],encodeDefaulter:_.curry(Xn.ln,this)})},e.prototype._defaultLabelLine=function(t){(0,ce.M5)(t,"labelLine",["show"]);var e=t.labelLine,n=t.emphasis.labelLine;e.show=e.show&&t.label.show,n.show=n.show&&t.emphasis.label.show},e.prototype.getDataParams=function(e){var n=this.getData(),i=t.prototype.getDataParams.call(this,e),r=n.mapDimension("value"),o=n.getSum(r);return i.percent=o?+(n.get(r,e)/o*100).toFixed(2):0,i.$vars.push("percent"),i},e.type="series.funnel",e.defaultOption={z:2,legendHoverLink:!0,colorBy:"data",left:80,top:60,right:80,bottom:60,minSize:"0%",maxSize:"100%",sort:"descending",orient:"vertical",gap:0,funnelAlign:"center",label:{show:!0,position:"outer"},labelLine:{show:!0,length:20,lineStyle:{width:1}},itemStyle:{borderColor:"#fff",borderWidth:1},emphasis:{label:{show:!0}},select:{itemStyle:{borderColor:"#212121"}}},e}(Gt.A);const Dh=Lh;function Ph(t,e){t.eachSeriesByType("funnel",(function(t){var n=t.getData(),i=n.mapDimension("value"),r=t.get("sort"),o=function(t,e){return Mn.dV(t.getBoxLayoutParams(),{width:e.getWidth(),height:e.getHeight()})}(t,e),a=t.get("orient"),s=o.width,l=o.height,h=function(t,e){for(var n=t.mapDimension("value"),i=t.mapArray(n,(function(t){return t})),r=[],o="ascending"===e,a=0,s=t.count();a<s;a++)r[a]=a;return(0,_.isFunction)(e)?r.sort(e):"none"!==e&&r.sort((function(t,e){return o?i[t]-i[e]:i[e]-i[t]})),r}(n,r),c=o.x,u=o.y,d="horizontal"===a?[(0,Se.lo)(t.get("minSize"),l),(0,Se.lo)(t.get("maxSize"),l)]:[(0,Se.lo)(t.get("minSize"),s),(0,Se.lo)(t.get("maxSize"),s)],p=n.getDataExtent(i),f=t.get("min"),g=t.get("max");null==f&&(f=Math.min(p[0],0)),null==g&&(g=p[1]);var m=t.get("funnelAlign"),v=t.get("gap"),y=(("horizontal"===a?s:l)-v*(n.count()-1))/n.count(),x=function(t,e){if("horizontal"===a){var r=n.get(i,t)||0,o=(0,Se.Cb)(r,[f,g],d,!0),h=void 0;switch(m){case"top":h=u;break;case"center":h=u+(l-o)/2;break;case"bottom":h=u+(l-o)}return[[e,h],[e,h+o]]}var p,v=n.get(i,t)||0,y=(0,Se.Cb)(v,[f,g],d,!0);switch(m){case"left":p=c;break;case"center":p=c+(s-y)/2;break;case"right":p=c+s-y}return[[p,e],[p+y,e]]};"ascending"===r&&(y=-y,v=-v,"horizontal"===a?c+=s:u+=l,h=h.reverse());for(var b=0;b<h.length;b++){var w=h[b],S=h[b+1],T=n.getItemModel(w);if("horizontal"===a){var M=T.get(["itemStyle","width"]);null==M?M=y:(M=(0,Se.lo)(M,s),"ascending"===r&&(M=-M));var A=x(w,c),C=x(S,c+M);c+=M+v,n.setItemLayout(w,{points:A.concat(C.slice().reverse())})}else{var I=T.get(["itemStyle","height"]);null==I?I=y:(I=(0,Se.lo)(I,l),"ascending"===r&&(I=-I));A=x(w,u),C=x(S,u+I);u+=I+v,n.setItemLayout(w,{points:A.concat(C.slice().reverse())})}}!function(t){var e=t.hostModel.get("orient");t.each((function(n){var i,r,o,a,s=t.getItemModel(n),l=s.getModel("label").get("position"),h=s.getModel("labelLine"),c=t.getItemLayout(n),u=c.points,d="inner"===l||"inside"===l||"center"===l||"insideLeft"===l||"insideRight"===l;if(d)"insideLeft"===l?(r=(u[0][0]+u[3][0])/2+5,o=(u[0][1]+u[3][1])/2,i="left"):"insideRight"===l?(r=(u[1][0]+u[2][0])/2-5,o=(u[1][1]+u[2][1])/2,i="right"):(r=(u[0][0]+u[1][0]+u[2][0]+u[3][0])/4,o=(u[0][1]+u[1][1]+u[2][1]+u[3][1])/4,i="center"),a=[[r,o],[r,o]];else{var p=void 0,f=void 0,g=void 0,m=void 0,v=h.get("length");"left"===l?(p=(u[3][0]+u[0][0])/2,f=(u[3][1]+u[0][1])/2,r=(g=p-v)-5,i="right"):"right"===l?(p=(u[1][0]+u[2][0])/2,f=(u[1][1]+u[2][1])/2,r=(g=p+v)+5,i="left"):"top"===l?(p=(u[3][0]+u[0][0])/2,o=(m=(f=(u[3][1]+u[0][1])/2)-v)-5,i="center"):"bottom"===l?(p=(u[1][0]+u[2][0])/2,o=(m=(f=(u[1][1]+u[2][1])/2)+v)+5,i="center"):"rightTop"===l?(p="horizontal"===e?u[3][0]:u[1][0],f="horizontal"===e?u[3][1]:u[1][1],"horizontal"===e?(o=(m=f-v)-5,i="center"):(r=(g=p+v)+5,i="top")):"rightBottom"===l?(p=u[2][0],f=u[2][1],"horizontal"===e?(o=(m=f+v)+5,i="center"):(r=(g=p+v)+5,i="bottom")):"leftTop"===l?(p=u[0][0],f="horizontal"===e?u[0][1]:u[1][1],"horizontal"===e?(o=(m=f-v)-5,i="center"):(r=(g=p-v)-5,i="right")):"leftBottom"===l?(p="horizontal"===e?u[1][0]:u[3][0],f="horizontal"===e?u[1][1]:u[2][1],"horizontal"===e?(o=(m=f+v)+5,i="center"):(r=(g=p-v)-5,i="right")):(p=(u[1][0]+u[2][0])/2,f=(u[1][1]+u[2][1])/2,"horizontal"===e?(o=(m=f+v)+5,i="center"):(r=(g=p+v)+5,i="left")),"horizontal"===e?r=g=p:o=m=f,a=[[p,f],[g,m]]}c.label={linePoints:a,x:r,y:o,verticalAlign:"middle",textAlign:i,inside:d}}))}(n)}))}var Rh=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n._dataGroup=new jt.A,n._initialized=!1,n}return(0,Bt.C6)(e,t),e.prototype.init=function(){this.group.add(this._dataGroup)},e.prototype.render=function(t,e,n,i){this._progressiveEls=null;var r=this._dataGroup,o=t.getData(),a=this._data,s=t.coordinateSystem,l=s.dimensions,h=Fh(t);if(o.diff(a).add((function(t){var e=Nh(o,r,t,l,s);Bh(e,o,t,h)})).update((function(e,n){var i=a.getItemGraphicEl(n),r=Oh(o,e,l,s);o.setItemGraphicEl(e,i),Ut.oi(i,{shape:{points:r}},t,e),(0,Ut.ap)(i),Bh(i,o,e,h)})).remove((function(t){var e=a.getItemGraphicEl(t);r.remove(e)})).execute(),!this._initialized){this._initialized=!0;var c=function(t,e,n){var i=t.model,r=t.getRect(),o=new be.A({shape:{x:r.x,y:r.y,width:r.width,height:r.height}}),a="horizontal"===i.get("layout")?"width":"height";return o.setShape(a,0),Ut.LW(o,{shape:{width:r.width,height:r.height}},e,n),o}(s,t,(function(){setTimeout((function(){r.removeClipPath()}))}));r.setClipPath(c)}this._data=o},e.prototype.incrementalPrepareRender=function(t,e,n){this._initialized=!0,this._data=null,this._dataGroup.removeAll()},e.prototype.incrementalRender=function(t,e,n){for(var i=e.getData(),r=e.coordinateSystem,o=r.dimensions,a=Fh(e),s=this._progressiveEls=[],l=t.start;l<t.end;l++){var h=Nh(i,this._dataGroup,l,o,r);h.incremental=!0,Bh(h,i,l,a),s.push(h)}},e.prototype.remove=function(){this._dataGroup&&this._dataGroup.removeAll(),this._data=null},e.type="parallel",e}(xe.A);function Oh(t,e,n,i){for(var r,o=[],a=0;a<n.length;a++){var s=n[a],l=t.get(t.mapDimension(s),e);r=l,("category"===i.getAxis(s).type?null==r:null==r||isNaN(r))||o.push(i.dataToPoint(l,s))}return o}function Nh(t,e,n,i,r){var o=Oh(t,n,i,r),a=new Pn.A({shape:{points:o},z2:10});return e.add(a),t.setItemGraphicEl(n,a),a}function Fh(t){var e=t.get("smooth",!0);return!0===e&&(e=.3),e=(0,Se.Sm)(e),(0,_.eqNaN)(e)&&(e=0),{smooth:e}}function Bh(t,e,n,i){t.useStyle(e.getItemVisual(n,"style")),t.style.fill=null,t.setShape("smooth",i.smooth);var r=e.getItemModel(n),o=r.getModel("emphasis");(0,Yt.Mx)(t,r,"lineStyle"),(0,Yt.Lm)(t,o.get("focus"),o.get("blurScope"),o.get("disabled"))}const zh=Rh;function Gh(t){var e=t.ecModel.getComponent("parallel",t.get("parallelIndex"));if(e){var n={};return(0,_.each)(e.dimensions,(function(t){var e=+t.replace("dim","");n[t]=e})),n}}const Vh=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n.visualStyleAccessPath="lineStyle",n.visualDrawType="stroke",n}return(0,Bt.C6)(e,t),e.prototype.getInitialData=function(t,e){return(0,zt.A)(null,this,{useEncodeDefaulter:(0,_.bind)(Gh,null,this)})},e.prototype.getRawIndicesByActiveState=function(t){var e=this.coordinateSystem,n=this.getData(),i=[];return e.eachActiveState(n,(function(e,r){t===e&&i.push(n.getRawIndex(r))})),i},e.type="series.parallel",e.dependencies=["parallel"],e.defaultOption={z:2,coordinateSystem:"parallel",parallelIndex:0,label:{show:!1},inactiveOpacity:.05,activeOpacity:1,lineStyle:{width:1,opacity:.45,type:"solid"},emphasis:{label:{show:!1}},progressive:500,smooth:!1,animationEasing:"linear"},e}(Gt.A);var jh=["lineStyle","opacity"];const Hh={seriesType:"parallel",reset:function(t,e){var n=t.coordinateSystem,i={normal:t.get(["lineStyle","opacity"]),active:t.get("activeOpacity"),inactive:t.get("inactiveOpacity")};return{progress:function(t,e){n.eachActiveState(e,(function(t,n){var r=i[t];if("normal"===t&&e.hasItemOption){var o=e.getItemModel(n).get(jh,!0);null!=o&&(r=o)}e.ensureUniqueItemVisual(n,"style").opacity=r}),t.start,t.end)}}}};function Wh(t){!function(t){if(t.parallel)return;var e=!1;_.each(t.series,(function(t){t&&"parallel"===t.type&&(e=!0)})),e&&(t.parallel=[{}])}(t),function(t){var e=ce.qB(t.parallelAxis);_.each(e,(function(e){if(_.isObject(e)){var n=e.parallelIndex||0,i=ce.qB(t.parallel)[n];i&&i.parallelAxisDefault&&_.merge(e,i.parallelAxisDefault,!1)}}))}(t)}var Uh=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return(0,Bt.C6)(e,t),e.prototype.render=function(t,e,n){this._model=t,this._api=n,this._handlers||(this._handlers={},(0,_.each)(qh,(function(t,e){n.getZr().on(e,this._handlers[e]=(0,_.bind)(t,this))}),this)),(0,Ke.N)(this,"_throttledDispatchExpand",t.get("axisExpandRate"),"fixRate")},e.prototype.dispose=function(t,e){(0,Ke.IU)(this,"_throttledDispatchExpand"),(0,_.each)(this._handlers,(function(t,n){e.getZr().off(n,t)})),this._handlers=null},e.prototype._throttledDispatchExpand=function(t){this._dispatchExpand(t)},e.prototype._dispatchExpand=function(t){t&&this._api.dispatchAction((0,_.extend)({type:"parallelAxisExpand"},t))},e.type="parallel",e}(ri.A),qh={mousedown:function(t){Xh(this,"click")&&(this._mouseDownPoint=[t.offsetX,t.offsetY])},mouseup:function(t){var e=this._mouseDownPoint;if(Xh(this,"click")&&e){var n=[t.offsetX,t.offsetY];if(Math.pow(e[0]-n[0],2)+Math.pow(e[1]-n[1],2)>5)return;var i=this._model.coordinateSystem.getSlidedAxisExpandWindow([t.offsetX,t.offsetY]);"none"!==i.behavior&&this._dispatchExpand({axisExpandWindow:i.axisExpandWindow})}this._mouseDownPoint=null},mousemove:function(t){if(!this._mouseDownPoint&&Xh(this,"mousemove")){var e=this._model,n=e.coordinateSystem.getSlidedAxisExpandWindow([t.offsetX,t.offsetY]),i=n.behavior;"jump"===i&&this._throttledDispatchExpand.debounceNextCall(e.get("axisExpandDebounce")),this._throttledDispatchExpand("none"===i?null:{axisExpandWindow:n.axisExpandWindow,animation:"jump"===i?null:{duration:0}})}}};function Xh(t,e){var n=t._model;return n.get("axisExpandable")&&n.get("axisExpandTriggerOn")===e}const Yh=Uh;const Zh=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return(0,Bt.C6)(e,t),e.prototype.init=function(){t.prototype.init.apply(this,arguments),this.mergeOption({})},e.prototype.mergeOption=function(t){var e=this.option;t&&_.merge(e,t,!0),this._initDimensions()},e.prototype.contains=function(t,e){var n=t.get("parallelIndex");return null!=n&&e.getComponent("parallel",n)===this},e.prototype.setAxisExpand=function(t){_.each(["axisExpandable","axisExpandCenter","axisExpandCount","axisExpandWidth","axisExpandWindow"],(function(e){t.hasOwnProperty(e)&&(this.option[e]=t[e])}),this)},e.prototype._initDimensions=function(){var t=this.dimensions=[],e=this.parallelAxisIndex=[],n=_.filter(this.ecModel.queryComponents({mainType:"parallelAxis"}),(function(t){return(t.get("parallelIndex")||0)===this.componentIndex}),this);_.each(n,(function(n){t.push("dim"+n.get("dim")),e.push(n.componentIndex)}))},e.type="parallel",e.dependencies=["parallelAxis"],e.layoutMode="box",e.defaultOption={z:0,left:80,top:60,right:80,bottom:60,layout:"horizontal",axisExpandable:!1,axisExpandCenter:null,axisExpandCount:0,axisExpandWidth:50,axisExpandRate:17,axisExpandDebounce:50,axisExpandSlideTriggerArea:[-.15,.05,.4],axisExpandTriggerOn:"click",parallelAxisDefault:null},e}(oi.A);const $h=function(t){function e(e,n,i,r,o){var a=t.call(this,e,n,i)||this;return a.type=r||"value",a.axisIndex=o,a}return(0,Bt.C6)(e,t),e.prototype.isHorizontal=function(){return"horizontal"!==this.coordinateSystem.getModel().get("layout")},e}(Ti.A);function Kh(t,e,n,i,r,o){t=t||0;var a=n[1]-n[0];if(null!=r&&(r=Qh(r,[0,a])),null!=o&&(o=Math.max(o,null!=r?r:0)),"all"===i){var s=Math.abs(e[1]-e[0]);s=Qh(s,[0,a]),r=o=Qh(s,[r,o]),i=0}e[0]=Qh(e[0],n),e[1]=Qh(e[1],n);var l=Jh(e,i);e[i]+=t;var h,c=r||0,u=n.slice();return l.sign<0?u[0]+=c:u[1]-=c,e[i]=Qh(e[i],u),h=Jh(e,i),null!=r&&(h.sign!==l.sign||h.span<r)&&(e[1-i]=e[i]+l.sign*r),h=Jh(e,i),null!=o&&h.span>o&&(e[1-i]=e[i]+h.sign*o),e}function Jh(t,e){var n=t[e]-t[1-e];return{span:Math.abs(n),sign:n>0?-1:n<0?1:e?-1:1}}function Qh(t,e){return Math.min(null!=e[1]?e[1]:1/0,Math.max(null!=e[0]?e[0]:-1/0,t))}var tc=_.each,ec=Math.min,nc=Math.max,ic=Math.floor,rc=Math.ceil,oc=Se.LI,ac=Math.PI,sc=function(){function t(t,e,n){this.type="parallel",this._axesMap=_.createHashMap(),this._axesLayout={},this.dimensions=t.dimensions,this._model=t,this._init(t,e,n)}return t.prototype._init=function(t,e,n){var i=t.dimensions,r=t.parallelAxisIndex;tc(i,(function(t,n){var i=r[n],o=e.getComponent("parallelAxis",i),a=this._axesMap.set(t,new $h(t,vi.f$(o),[0,0],o.get("type"),i)),s="category"===a.type;a.onBand=s&&o.get("boundaryGap"),a.inverse=o.get("inverse"),o.axis=a,a.model=o,a.coordinateSystem=o.coordinateSystem=this}),this)},t.prototype.update=function(t,e){this._updateAxesFromSeries(this._model,t)},t.prototype.containPoint=function(t){var e=this._makeLayoutInfo(),n=e.axisBase,i=e.layoutBase,r=e.pixelDimIndex,o=t[1-r],a=t[r];return o>=n&&o<=n+e.axisLength&&a>=i&&a<=i+e.layoutLength},t.prototype.getModel=function(){return this._model},t.prototype._updateAxesFromSeries=function(t,e){e.eachSeries((function(n){if(t.contains(n,e)){var i=n.getData();tc(this.dimensions,(function(t){var e=this._axesMap.get(t);e.scale.unionExtentFromData(i,i.mapDimension(t)),vi.af(e.scale,e.model)}),this)}}),this)},t.prototype.resize=function(t,e){this._rect=Mn.dV(t.getBoxLayoutParams(),{width:e.getWidth(),height:e.getHeight()}),this._layoutAxes()},t.prototype.getRect=function(){return this._rect},t.prototype._makeLayoutInfo=function(){var t,e=this._model,n=this._rect,i=["x","y"],r=["width","height"],o=e.get("layout"),a="horizontal"===o?0:1,s=n[r[a]],l=[0,s],h=this.dimensions.length,c=lc(e.get("axisExpandWidth"),l),u=lc(e.get("axisExpandCount")||0,[0,h]),d=e.get("axisExpandable")&&h>3&&h>u&&u>1&&c>0&&s>0,p=e.get("axisExpandWindow");p?(t=lc(p[1]-p[0],l),p[1]=p[0]+t):(t=lc(c*(u-1),l),(p=[c*(e.get("axisExpandCenter")||ic(h/2))-t/2])[1]=p[0]+t);var f=(s-t)/(h-u);f<3&&(f=0);var g=[ic(oc(p[0]/c,1))+1,rc(oc(p[1]/c,1))-1],m=f/c*p[0];return{layout:o,pixelDimIndex:a,layoutBase:n[i[a]],layoutLength:s,axisBase:n[i[1-a]],axisLength:n[r[1-a]],axisExpandable:d,axisExpandWidth:c,axisCollapseWidth:f,axisExpandWindow:p,axisCount:h,winInnerIndices:g,axisExpandWindow0Pos:m}},t.prototype._layoutAxes=function(){var t=this._rect,e=this._axesMap,n=this.dimensions,i=this._makeLayoutInfo(),r=i.layout;e.each((function(t){var e=[0,i.axisLength],n=t.inverse?1:0;t.setExtent(e[n],e[1-n])})),tc(n,(function(e,n){var o=(i.axisExpandable?cc:hc)(n,i),a={horizontal:{x:o.position,y:i.axisLength},vertical:{x:0,y:o.position}},s={horizontal:ac/2,vertical:0},l=[a[r].x+t.x,a[r].y+t.y],h=s[r],c=_i.create();_i.rotate(c,c,h),_i.translate(c,c,l),this._axesLayout[e]={position:l,rotation:h,transform:c,axisNameAvailableWidth:o.axisNameAvailableWidth,axisLabelShow:o.axisLabelShow,nameTruncateMaxWidth:o.nameTruncateMaxWidth,tickDirection:1,labelDirection:1}}),this)},t.prototype.getAxis=function(t){return this._axesMap.get(t)},t.prototype.dataToPoint=function(t,e){return this.axisCoordToPoint(this._axesMap.get(e).dataToCoord(t),e)},t.prototype.eachActiveState=function(t,e,n,i){null==n&&(n=0),null==i&&(i=t.count());var r=this._axesMap,o=this.dimensions,a=[],s=[];_.each(o,(function(e){a.push(t.mapDimension(e)),s.push(r.get(e).model)}));for(var l=this.hasAxisBrushed(),h=n;h<i;h++){var c=void 0;if(l){c="active";for(var u=t.getValues(a,h),d=0,p=o.length;d<p;d++){if("inactive"===s[d].getActiveState(u[d])){c="inactive";break}}}else c="normal";e(c,h)}},t.prototype.hasAxisBrushed=function(){for(var t=this.dimensions,e=this._axesMap,n=!1,i=0,r=t.length;i<r;i++)"normal"!==e.get(t[i]).model.getActiveState()&&(n=!0);return n},t.prototype.axisCoordToPoint=function(t,e){var n=this._axesLayout[e];return qt.applyTransform([t,0],n.transform)},t.prototype.getAxisLayout=function(t){return _.clone(this._axesLayout[t])},t.prototype.getSlidedAxisExpandWindow=function(t){var e=this._makeLayoutInfo(),n=e.pixelDimIndex,i=e.axisExpandWindow.slice(),r=i[1]-i[0],o=[0,e.axisExpandWidth*(e.axisCount-1)];if(!this.containPoint(t))return{behavior:"none",axisExpandWindow:i};var a,s=t[n]-e.layoutBase-e.axisExpandWindow0Pos,l="slide",h=e.axisCollapseWidth,c=this._model.get("axisExpandSlideTriggerArea"),u=null!=c[0];if(h)u&&h&&s<r*c[0]?(l="jump",a=s-r*c[2]):u&&h&&s>r*(1-c[0])?(l="jump",a=s-r*(1-c[2])):(a=s-r*c[1])>=0&&(a=s-r*(1-c[1]))<=0&&(a=0),(a*=e.axisExpandWidth/h)?Kh(a,i,o,"all"):l="none";else{var d=i[1]-i[0];(i=[nc(0,o[1]*s/d-d/2)])[1]=ec(o[1],i[0]+d),i[0]=i[1]-d}return{axisExpandWindow:i,behavior:l}},t}();function lc(t,e){return ec(nc(t,e[0]),e[1])}function hc(t,e){var n=e.layoutLength/(e.axisCount-1);return{position:n*t,axisNameAvailableWidth:n,axisLabelShow:!0}}function cc(t,e){var n,i,r=e.layoutLength,o=e.axisExpandWidth,a=e.axisCount,s=e.axisCollapseWidth,l=e.winInnerIndices,h=s,c=!1;return t<l[0]?(n=t*s,i=s):t<=l[1]?(n=e.axisExpandWindow0Pos+t*o-e.axisExpandWindow[0],h=o,c=!0):(n=r-(a-1-t)*s,i=s),{position:n,axisNameAvailableWidth:h,axisLabelShow:c,nameTruncateMaxWidth:i}}const uc=sc;const dc={create:function(t,e){var n=[];return t.eachComponent("parallel",(function(i,r){var o=new uc(i,t,e);o.name="parallel_"+r,o.resize(i,e),i.coordinateSystem=o,o.model=i,n.push(o)})),t.eachSeries((function(t){if("parallel"===t.get("coordinateSystem")){var e=t.getReferringComponents("parallel",ce.US).models[0];t.coordinateSystem=e.coordinateSystem}})),n}};var pc=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n.activeIntervals=[],n}return(0,Bt.C6)(e,t),e.prototype.getAreaSelectStyle=function(){return(0,bs.A)([["fill","color"],["lineWidth","borderWidth"],["stroke","borderColor"],["width","width"],["opacity","opacity"]])(this.getModel("areaSelectStyle"))},e.prototype.setActiveIntervals=function(t){var e=this.activeIntervals=_.clone(t);if(e)for(var n=e.length-1;n>=0;n--)Se.Y6(e[n])},e.prototype.getActiveState=function(t){var e=this.activeIntervals;if(!e.length)return"normal";if(null==t||isNaN(+t))return"inactive";if(1===e.length){var n=e[0];if(n[0]<=t&&t<=n[1])return"active"}else for(var i=0,r=e.length;i<r;i++)if(e[i][0]<=t&&t<=e[i][1])return"active";return"inactive"},e}(oi.A);_.mixin(pc,si.L);const fc=pc;var gc=!0,mc=Math.min,vc=Math.max,yc=Math.pow,_c="globalPan",xc={w:[0,0],e:[0,1],n:[1,0],s:[1,1]},bc={w:"ew",e:"ew",n:"ns",s:"ns",ne:"nesw",sw:"nesw",nw:"nwse",se:"nwse"},wc={brushStyle:{lineWidth:2,stroke:"rgba(210,219,238,0.3)",fill:"#D2DBEE"},transformable:!0,brushMode:"single",removeOnClick:!1},Sc=0,Tc=function(t){function e(e){var n=t.call(this)||this;return n._track=[],n._covers=[],n._handlers={},n._zr=e,n.group=new jt.A,n._uid="brushController_"+Sc++,(0,_.each)(Kc,(function(t,e){this._handlers[e]=(0,_.bind)(t,this)}),n),n}return(0,Bt.C6)(e,t),e.prototype.enableBrush=function(t){return this._brushType&&this._doDisableBrush(),t.brushType&&this._doEnableBrush(t),this},e.prototype._doEnableBrush=function(t){var e=this._zr;this._enableGlobalPan||function(t,e,n){Vr(t)[e]=n}(e,_c,this._uid),(0,_.each)(this._handlers,(function(t,n){e.on(n,t)})),this._brushType=t.brushType,this._brushOption=(0,_.merge)((0,_.clone)(wc),t,!0)},e.prototype._doDisableBrush=function(){var t=this._zr;!function(t,e,n){var i=Vr(t);i[e]===n&&(i[e]=null)}(t,_c,this._uid),(0,_.each)(this._handlers,(function(e,n){t.off(n,e)})),this._brushType=this._brushOption=null},e.prototype.setPanels=function(t){if(t&&t.length){var e=this._panels={};(0,_.each)(t,(function(t){e[t.panelId]=(0,_.clone)(t)}))}else this._panels=null;return this},e.prototype.mount=function(t){t=t||{},this._enableGlobalPan=t.enableGlobalPan;var e=this.group;return this._zr.add(e),e.attr({x:t.x||0,y:t.y||0,rotation:t.rotation||0,scaleX:t.scaleX||1,scaleY:t.scaleY||1}),this._transform=e.getLocalTransform(),this},e.prototype.updateCovers=function(t){t=(0,_.map)(t,(function(t){return(0,_.merge)((0,_.clone)(wc),t,!0)}));var e=this._covers,n=this._covers=[],i=this,r=this._creatingCover;return new gs.A(e,t,(function(t,e){return o(t.__brushOption,e)}),o).add(a).update(a).remove((function(t){e[t]!==r&&i.group.remove(e[t])})).execute(),this;function o(t,e){return(null!=t.id?t.id:"\0-brush-index-"+e)+"-"+t.brushType}function a(o,a){var s=t[o];if(null!=a&&e[a]===r)n[o]=e[a];else{var l=n[o]=null!=a?(e[a].__brushOption=s,e[a]):Ac(i,Mc(i,s));Ec(i,l)}}},e.prototype.unmount=function(){return this.enableBrush(!1),Pc(this),this._zr.remove(this.group),this},e.prototype.dispose=function(){this.unmount(),this.off()},e}(Nr.A);function Mc(t,e){var n=Qc[e.brushType].createCover(t,e);return n.__brushOption=e,Ic(n,e),t.group.add(n),n}function Ac(t,e){var n=kc(e);return n.endCreating&&(n.endCreating(t,e),Ic(e,e.__brushOption)),e}function Cc(t,e){var n=e.__brushOption;kc(e).updateCoverShape(t,e,n.range,n)}function Ic(t,e){var n=e.z;null==n&&(n=1e4),t.traverse((function(t){t.z=n,t.z2=n}))}function Ec(t,e){kc(e).updateCommon(t,e),Cc(t,e)}function kc(t){return Qc[t.__brushOption.brushType]}function Lc(t,e,n){var i,r=t._panels;if(!r)return gc;var o=t._transform;return(0,_.each)(r,(function(t){t.isTargetByCursor(e,n,o)&&(i=t)})),i}function Dc(t,e){var n=t._panels;if(!n)return gc;var i=e.__brushOption.panelId;return null!=i?n[i]:gc}function Pc(t){var e=t._covers,n=e.length;return(0,_.each)(e,(function(e){t.group.remove(e)}),t),e.length=0,!!n}function Rc(t,e){var n=(0,_.map)(t._covers,(function(t){var e=t.__brushOption,n=(0,_.clone)(e.range);return{brushType:e.brushType,panelId:e.panelId,range:n}}));t.trigger("brush",{areas:n,isEnd:!!e.isEnd,removeOnClick:!!e.removeOnClick})}function Oc(t){var e=t.length-1;return e<0&&(e=0),[t[0],t[e]]}function Nc(t,e,n,i){var r=new jt.A;return r.add(new be.A({name:"main",style:Gc(n),silent:!0,draggable:!0,cursor:"move",drift:(0,_.curry)(Hc,t,e,r,["n","s","w","e"]),ondragend:(0,_.curry)(Rc,e,{isEnd:!0})})),(0,_.each)(i,(function(n){r.add(new be.A({name:n.join(""),style:{opacity:0},draggable:!0,silent:!0,invisible:!0,drift:(0,_.curry)(Hc,t,e,r,n),ondragend:(0,_.curry)(Rc,e,{isEnd:!0})}))})),r}function Fc(t,e,n,i){var r=i.brushStyle.lineWidth||0,o=vc(r,6),a=n[0][0],s=n[1][0],l=a-r/2,h=s-r/2,c=n[0][1],u=n[1][1],d=c-o+r/2,p=u-o+r/2,f=c-a,g=u-s,m=f+r,v=g+r;zc(t,e,"main",a,s,f,g),i.transformable&&(zc(t,e,"w",l,h,o,v),zc(t,e,"e",d,h,o,v),zc(t,e,"n",l,h,m,o),zc(t,e,"s",l,p,m,o),zc(t,e,"nw",l,h,o,o),zc(t,e,"ne",d,h,o,o),zc(t,e,"sw",l,p,o,o),zc(t,e,"se",d,p,o,o))}function Bc(t,e){var n=e.__brushOption,i=n.transformable,r=e.childAt(0);r.useStyle(Gc(n)),r.attr({silent:!i,cursor:i?"move":"default"}),(0,_.each)([["w"],["e"],["n"],["s"],["s","e"],["s","w"],["n","e"],["n","w"]],(function(n){var r=e.childOfName(n.join("")),o=1===n.length?jc(t,n[0]):function(t,e){var n=[jc(t,e[0]),jc(t,e[1])];return("e"===n[0]||"w"===n[0])&&n.reverse(),n.join("")}(t,n);r&&r.attr({silent:!i,invisible:!i,cursor:i?bc[o]+"-resize":null})}))}function zc(t,e,n,i,r,o,a){var s=e.childOfName(n);s&&s.setShape(function(t){var e=mc(t[0][0],t[1][0]),n=mc(t[0][1],t[1][1]),i=vc(t[0][0],t[1][0]),r=vc(t[0][1],t[1][1]);return{x:e,y:n,width:i-e,height:r-n}}(qc(t,e,[[i,r],[i+o,r+a]])))}function Gc(t){return(0,_.defaults)({strokeNoScale:!0},t.brushStyle)}function Vc(t,e,n,i){var r=[mc(t,n),mc(e,i)],o=[vc(t,n),vc(e,i)];return[[r[0],o[0]],[r[1],o[1]]]}function jc(t,e){var n=qt.transformDirection({w:"left",e:"right",n:"top",s:"bottom"}[e],function(t){return qt.getTransform(t.group)}(t));return{left:"w",right:"e",top:"n",bottom:"s"}[n]}function Hc(t,e,n,i,r,o){var a=n.__brushOption,s=t.toRectRange(a.range),l=Uc(e,r,o);(0,_.each)(i,(function(t){var e=xc[t];s[e[0]][e[1]]+=l[e[0]]})),a.range=t.fromRectRange(Vc(s[0][0],s[1][0],s[0][1],s[1][1])),Ec(e,n),Rc(e,{isEnd:!1})}function Wc(t,e,n,i){var r=e.__brushOption.range,o=Uc(t,n,i);(0,_.each)(r,(function(t){t[0]+=o[0],t[1]+=o[1]})),Ec(t,e),Rc(t,{isEnd:!1})}function Uc(t,e,n){var i=t.group,r=i.transformCoordToLocal(e,n),o=i.transformCoordToLocal(0,0);return[r[0]-o[0],r[1]-o[1]]}function qc(t,e,n){var i=Dc(t,e);return i&&i!==gc?i.clipPath(n,t._transform):(0,_.clone)(n)}function Xc(t){var e=t.event;e.preventDefault&&e.preventDefault()}function Yc(t,e,n){return t.childOfName("main").contain(e,n)}function Zc(t,e,n,i){var r,o=t._creatingCover,a=t._creatingPanel,s=t._brushOption;if(t._track.push(n.slice()),function(t){var e=t._track;if(!e.length)return!1;var n=e[e.length-1],i=e[0],r=n[0]-i[0],o=n[1]-i[1];return yc(r*r+o*o,.5)>6}(t)||o){if(a&&!o){"single"===s.brushMode&&Pc(t);var l=(0,_.clone)(s);l.brushType=$c(l.brushType,a),l.panelId=a===gc?null:a.panelId,o=t._creatingCover=Mc(t,l),t._covers.push(o)}if(o){var h=Qc[$c(t._brushType,a)];o.__brushOption.range=h.getCreatingRange(qc(t,o,t._track)),i&&(Ac(t,o),h.updateCommon(t,o)),Cc(t,o),r={isEnd:i}}}else i&&"single"===s.brushMode&&s.removeOnClick&&Lc(t,e,n)&&Pc(t)&&(r={isEnd:i,removeOnClick:!0});return r}function $c(t,e){return"auto"===t?e.defaultBrushType:t}var Kc={mousedown:function(t){if(this._dragging)Jc(this,t);else if(!t.target||!t.target.draggable){Xc(t);var e=this.group.transformCoordToLocal(t.offsetX,t.offsetY);this._creatingCover=null,(this._creatingPanel=Lc(this,t,e))&&(this._dragging=!0,this._track=[e.slice()])}},mousemove:function(t){var e=t.offsetX,n=t.offsetY,i=this.group.transformCoordToLocal(e,n);if(function(t,e,n){if(t._brushType&&!function(t,e,n){var i=t._zr;return e<0||e>i.getWidth()||n<0||n>i.getHeight()}(t,e.offsetX,e.offsetY)){var i=t._zr,r=t._covers,o=Lc(t,e,n);if(!t._dragging)for(var a=0;a<r.length;a++){var s=r[a].__brushOption;if(o&&(o===gc||s.panelId===o.panelId)&&Qc[s.brushType].contain(r[a],n[0],n[1]))return}o&&i.setCursorStyle("crosshair")}}(this,t,i),this._dragging){Xc(t);var r=Zc(this,t,i,!1);r&&Rc(this,r)}},mouseup:function(t){Jc(this,t)}};function Jc(t,e){if(t._dragging){Xc(e);var n=e.offsetX,i=e.offsetY,r=t.group.transformCoordToLocal(n,i),o=Zc(t,e,r,!0);t._dragging=!1,t._track=[],t._creatingCover=null,o&&Rc(t,o)}}var Qc={lineX:tu(0),lineY:tu(1),rect:{createCover:function(t,e){function n(t){return t}return Nc({toRectRange:n,fromRectRange:n},t,e,[["w"],["e"],["n"],["s"],["s","e"],["s","w"],["n","e"],["n","w"]])},getCreatingRange:function(t){var e=Oc(t);return Vc(e[1][0],e[1][1],e[0][0],e[0][1])},updateCoverShape:function(t,e,n,i){Fc(t,e,n,i)},updateCommon:Bc,contain:Yc},polygon:{createCover:function(t,e){var n=new jt.A;return n.add(new Pn.A({name:"main",style:Gc(e),silent:!0})),n},getCreatingRange:function(t){return t},endCreating:function(t,e){e.remove(e.childAt(0)),e.add(new yr.A({name:"main",draggable:!0,drift:(0,_.curry)(Wc,t,e),ondragend:(0,_.curry)(Rc,t,{isEnd:!0})}))},updateCoverShape:function(t,e,n,i){e.childAt(0).setShape({points:qc(t,e,n)})},updateCommon:Bc,contain:Yc}};function tu(t){return{createCover:function(e,n){return Nc({toRectRange:function(e){var n=[e,[0,100]];return t&&n.reverse(),n},fromRectRange:function(e){return e[t]}},e,n,[[["w"],["e"]],[["n"],["s"]]][t])},getCreatingRange:function(e){var n=Oc(e);return[mc(n[0][t],n[1][t]),vc(n[0][t],n[1][t])]},updateCoverShape:function(e,n,i,r){var o,a=Dc(e,n);if(a!==gc&&a.getLinearBrushOtherExtent)o=a.getLinearBrushOtherExtent(t);else{var s=e._zr;o=[0,[s.getWidth(),s.getHeight()][1-t]]}var l=[i,o];t&&l.reverse(),Fc(e,n,l,r)},updateCommon:Bc,contain:Yc}}const eu=Tc;function nu(t){return t=ou(t),function(e){return qt.clipPointsByRect(e,t)}}function iu(t,e){return t=ou(t),function(n){var i=null!=e?e:n,r=i?t.width:t.height,o=i?t.x:t.y;return[o,o+(r||0)]}}function ru(t,e,n){var i=ou(t);return function(t,r){return i.contain(r[0],r[1])&&!Zr(t,e,n)}}function ou(t){return Jn.A.create(t)}var au=["axisLine","axisTickLabel","axisName"];const su=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return(0,Bt.C6)(e,t),e.prototype.init=function(e,n){t.prototype.init.apply(this,arguments),(this._brushController=new eu(n.getZr())).on("brush",_.bind(this._onBrush,this))},e.prototype.render=function(t,e,n,i){if(!function(t,e,n){return n&&"axisAreaSelect"===n.type&&e.findComponents({mainType:"parallelAxis",query:n})[0]===t}(t,e,i)){this.axisModel=t,this.api=n,this.group.removeAll();var r=this._axisGroup;if(this._axisGroup=new jt.A,this.group.add(this._axisGroup),t.get("show")){var o=function(t,e){return e.getComponent("parallel",t.get("parallelIndex"))}(t,e),a=o.coordinateSystem,s=t.getAreaSelectStyle(),l=s.width,h=t.axis.dim,c=a.getAxisLayout(h),u=_.extend({strokeContainThreshold:l},c),d=new Yi(t,u);_.each(au,d.add,d),this._axisGroup.add(d.getGroup()),this._refreshBrushController(u,s,t,o,l,n),qt.groupTransition(r,this._axisGroup,t)}}},e.prototype._refreshBrushController=function(t,e,n,i,r,o){var a=n.axis.getExtent(),s=a[1]-a[0],l=Math.min(30,.1*Math.abs(s)),h=Jn.A.create({x:a[0],y:-r/2,width:s,height:r});h.x-=l,h.width+=2*l,this._brushController.mount({enableGlobalPan:!0,rotation:t.rotation,x:t.position[0],y:t.position[1]}).setPanels([{panelId:"pl",clipPath:nu(h),isTargetByCursor:ru(h,o,i),getLinearBrushOtherExtent:iu(h,0)}]).enableBrush({brushType:"lineX",brushStyle:e,removeOnClick:!0}).updateCovers(function(t){var e=t.axis;return _.map(t.activeIntervals,(function(t){return{brushType:"lineX",panelId:"pl",range:[e.dataToCoord(t[0],!0),e.dataToCoord(t[1],!0)]}}))}(n))},e.prototype._onBrush=function(t){var e=t.areas,n=this.axisModel,i=n.axis,r=_.map(e,(function(t){return[i.coordToData(t.range[0],!0),i.coordToData(t.range[1],!0)]}));(!n.option.realtime===t.isEnd||t.removeOnClick)&&this.api.dispatchAction({type:"axisAreaSelect",parallelAxisId:n.id,intervals:r})},e.prototype.dispose=function(){this._brushController.dispose()},e.type="parallelAxis",e}(ri.A);var lu={type:"axisAreaSelect",event:"axisAreaSelected"};var hu={type:"value",areaSelectStyle:{width:20,borderWidth:1,borderColor:"rgba(160,197,232)",color:"rgba(160,197,232)",opacity:.3},realtime:!0,z:10};function cu(t){t.registerComponentView(Yh),t.registerComponentModel(Zh),t.registerCoordinateSystem("parallel",dc),t.registerPreprocessor(Wh),t.registerComponentModel(fc),t.registerComponentView(su),gi(t,"parallel",fc,hu),function(t){t.registerAction(lu,(function(t,e){e.eachComponent({mainType:"parallelAxis",query:t},(function(e){e.axis.model.setActiveIntervals(t.intervals)}))})),t.registerAction("parallelAxisExpand",(function(t,e){e.eachComponent({mainType:"parallel",query:t},(function(e){e.setAxisExpand(t)}))}))}(t)}var uu=function(){this.x1=0,this.y1=0,this.x2=0,this.y2=0,this.cpx1=0,this.cpy1=0,this.cpx2=0,this.cpy2=0,this.extent=0},du=function(t){function e(e){return t.call(this,e)||this}return(0,Bt.C6)(e,t),e.prototype.getDefaultShape=function(){return new uu},e.prototype.buildPath=function(t,e){var n=e.extent;t.moveTo(e.x1,e.y1),t.bezierCurveTo(e.cpx1,e.cpy1,e.cpx2,e.cpy2,e.x2,e.y2),"vertical"===e.orient?(t.lineTo(e.x2+n,e.y2),t.bezierCurveTo(e.cpx2+n,e.cpy2,e.cpx1+n,e.cpy1,e.x1+n,e.y1)):(t.lineTo(e.x2,e.y2+n),t.bezierCurveTo(e.cpx2,e.cpy2+n,e.cpx1,e.cpy1+n,e.x1,e.y1+n)),t.closePath()},e.prototype.highlight=function(){(0,Yt.HY)(this)},e.prototype.downplay=function(){(0,Yt.SD)(this)},e}(s.Ay),pu=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n._focusAdjacencyDisabled=!1,n}return(0,Bt.C6)(e,t),e.prototype.render=function(t,e,n){var i=this,r=t.getGraph(),o=this.group,a=t.layoutInfo,s=a.width,l=a.height,h=t.getData(),c=t.getData("edge"),u=t.get("orient");this._model=t,o.removeAll(),o.x=a.x,o.y=a.y,r.eachEdge((function(e){var n=new du,i=(0,Xt.z)(n);i.dataIndex=e.dataIndex,i.seriesIndex=t.seriesIndex,i.dataType="edge";var r,a,h,d,p,f,g,m,v=e.getModel(),y=v.getModel("lineStyle"),x=y.get("curveness"),b=e.node1.getLayout(),w=e.node1.getModel(),S=w.get("localX"),T=w.get("localY"),M=e.node2.getLayout(),A=e.node2.getModel(),C=A.get("localX"),I=A.get("localY"),E=e.getLayout();n.shape.extent=Math.max(1,E.dy),n.shape.orient=u,"vertical"===u?(r=(null!=S?S*s:b.x)+E.sy,a=(null!=T?T*l:b.y)+b.dy,h=(null!=C?C*s:M.x)+E.ty,p=r,f=a*(1-x)+(d=null!=I?I*l:M.y)*x,g=h,m=a*x+d*(1-x)):(r=(null!=S?S*s:b.x)+b.dx,a=(null!=T?T*l:b.y)+E.sy,p=r*(1-x)+(h=null!=C?C*s:M.x)*x,f=a,g=r*x+h*(1-x),m=d=(null!=I?I*l:M.y)+E.ty),n.setShape({x1:r,y1:a,x2:h,y2:d,cpx1:p,cpy1:f,cpx2:g,cpy2:m}),n.useStyle(y.getItemStyle()),fu(n.style,u,e);var k=""+v.get("value"),L=(0,Jt.lx)(v,"edgeLabel");(0,Jt.qM)(n,L,{labelFetcher:{getFormattedLabel:function(e,n,i,r,o,a){return t.getFormattedLabel(e,n,"edge",r,(0,_.retrieve3)(o,L.normal&&L.normal.get("formatter"),k),a)}},labelDataIndex:e.dataIndex,defaultText:k}),n.setTextConfig({position:"inside"});var D=v.getModel("emphasis");(0,Yt.Mx)(n,v,"lineStyle",(function(t){var n=t.getItemStyle();return fu(n,u,e),n})),o.add(n),c.setItemGraphicEl(e.dataIndex,n);var P=D.get("focus");(0,Yt.Lm)(n,"adjacency"===P?e.getAdjacentDataIndices():"trajectory"===P?e.getTrajectoryDataIndices():P,D.get("blurScope"),D.get("disabled"))})),r.eachNode((function(e){var n=e.getLayout(),i=e.getModel(),r=i.get("localX"),a=i.get("localY"),c=i.getModel("emphasis"),u=i.get(["itemStyle","borderRadius"])||0,d=new be.A({shape:{x:null!=r?r*s:n.x,y:null!=a?a*l:n.y,width:n.dx,height:n.dy,r:u},style:i.getModel("itemStyle").getItemStyle(),z2:10});(0,Jt.qM)(d,(0,Jt.lx)(i),{labelFetcher:{getFormattedLabel:function(e,n){return t.getFormattedLabel(e,n,"node")}},labelDataIndex:e.dataIndex,defaultText:e.id}),d.disableLabelAnimation=!0,d.setStyle("fill",e.getVisual("color")),d.setStyle("decal",e.getVisual("style").decal),(0,Yt.Mx)(d,i),o.add(d),h.setItemGraphicEl(e.dataIndex,d),(0,Xt.z)(d).dataType="node";var p=c.get("focus");(0,Yt.Lm)(d,"adjacency"===p?e.getAdjacentDataIndices():"trajectory"===p?e.getTrajectoryDataIndices():p,c.get("blurScope"),c.get("disabled"))})),h.eachItemGraphicEl((function(e,r){h.getItemModel(r).get("draggable")&&(e.drift=function(e,o){i._focusAdjacencyDisabled=!0,this.shape.x+=e,this.shape.y+=o,this.dirty(),n.dispatchAction({type:"dragNode",seriesId:t.id,dataIndex:h.getRawIndex(r),localX:this.shape.x/s,localY:this.shape.y/l})},e.ondragend=function(){i._focusAdjacencyDisabled=!1},e.draggable=!0,e.cursor="move")})),!this._data&&t.isAnimationEnabled()&&o.setClipPath(function(t,e,n){var i=new be.A({shape:{x:t.x-10,y:t.y-10,width:0,height:t.height+20}});return Ut.LW(i,{shape:{width:t.width+20}},e,n),i}(o.getBoundingRect(),t,(function(){o.removeClipPath()}))),this._data=t.getData()},e.prototype.dispose=function(){},e.type="sankey",e}(xe.A);function fu(t,e,n){switch(t.fill){case"source":t.fill=n.node1.getVisual("color"),t.decal=n.node1.getVisual("style").decal;break;case"target":t.fill=n.node2.getVisual("color"),t.decal=n.node2.getVisual("style").decal;break;case"gradient":var i=n.node1.getVisual("color"),r=n.node2.getVisual("color");(0,_.isString)(i)&&(0,_.isString)(r)&&(t.fill=new he.A(0,0,+("horizontal"===e),+("vertical"===e),[{color:i,offset:0},{color:r,offset:1}]))}}const gu=pu;var mu=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return(0,Bt.C6)(e,t),e.prototype.getInitialData=function(t,e){var n=t.edges||t.links,i=t.data||t.nodes,r=t.levels;this.levelModels=[];for(var o=this.levelModels,a=0;a<r.length;a++)null!=r[a].depth&&r[a].depth>=0&&(o[r[a].depth]=new Gi.A(r[a],this,e));if(i&&n){var s=mh(i,n,this,!0,(function(t,e){t.wrapMethod("getItemModel",(function(t,e){var n=t.parentModel,i=n.getData().getItemLayout(e);if(i){var r=i.depth,o=n.levelModels[r];o&&(t.parentModel=o)}return t})),e.wrapMethod("getItemModel",(function(t,e){var n=t.parentModel,i=n.getGraph().getEdgeByIndex(e).node1.getLayout();if(i){var r=i.depth,o=n.levelModels[r];o&&(t.parentModel=o)}return t}))}));return s.data}},e.prototype.setNodePosition=function(t,e){var n=(this.option.data||this.option.nodes)[t];n.localX=e[0],n.localY=e[1]},e.prototype.getGraph=function(){return this.getData().graph},e.prototype.getEdgeData=function(){return this.getGraph().edgeData},e.prototype.formatTooltip=function(t,e,n){function i(t){return isNaN(t)||null==t}if("edge"===n){var r=this.getDataParams(t,n),o=r.data,a=r.value,s=o.source+" -- "+o.target;return(0,br.Qx)("nameValue",{name:s,value:a,noValue:i(a)})}var l=this.getGraph().getNodeByIndex(t).getLayout().value,h=this.getDataParams(t,n).data.name;return(0,br.Qx)("nameValue",{name:null!=h?h+"":null,value:l,noValue:i(l)})},e.prototype.optionUpdated=function(){},e.prototype.getDataParams=function(e,n){var i=t.prototype.getDataParams.call(this,e,n);if(null==i.value&&"node"===n){var r=this.getGraph().getNodeByIndex(e).getLayout().value;i.value=r}return i},e.type="series.sankey",e.defaultOption={z:2,coordinateSystem:"view",left:"5%",top:"5%",right:"20%",bottom:"5%",orient:"horizontal",nodeWidth:20,nodeGap:8,draggable:!0,layoutIterations:32,label:{show:!0,position:"right",fontSize:12},edgeLabel:{show:!1,fontSize:12},levels:[],nodeAlign:"justify",lineStyle:{color:"#314656",opacity:.2,curveness:.5},emphasis:{label:{show:!0},lineStyle:{opacity:.5}},select:{itemStyle:{borderColor:"#212121"}},animationEasing:"linear",animationDuration:1e3},e}(Gt.A);const vu=mu;function yu(t,e){t.eachSeriesByType("sankey",(function(t){var n=t.get("nodeWidth"),i=t.get("nodeGap"),r=function(t,e){return Mn.dV(t.getBoxLayoutParams(),{width:e.getWidth(),height:e.getHeight()})}(t,e);t.layoutInfo=r;var o=r.width,a=r.height,s=t.getGraph(),l=s.nodes,h=s.edges;!function(t){_.each(t,(function(t){var e=Iu(t.outEdges,Cu),n=Iu(t.inEdges,Cu),i=t.getValue()||0,r=Math.max(e,n,i);t.setLayout({value:r},!0)}))}(l),function(t,e,n,i,r,o,a,s,l){(function(t,e,n,i,r,o,a){for(var s=[],l=[],h=[],c=[],u=0,d=0;d<e.length;d++)s[d]=1;for(d=0;d<t.length;d++)l[d]=t[d].inEdges.length,0===l[d]&&h.push(t[d]);var p=-1;for(;h.length;){for(var f=0;f<h.length;f++){var g=h[f],m=g.hostGraph.data.getRawDataItem(g.dataIndex),v=null!=m.depth&&m.depth>=0;v&&m.depth>p&&(p=m.depth),g.setLayout({depth:v?m.depth:u},!0),"vertical"===o?g.setLayout({dy:n},!0):g.setLayout({dx:n},!0);for(var y=0;y<g.outEdges.length;y++){var x=g.outEdges[y];s[e.indexOf(x)]=0;var b=x.node2;0==--l[t.indexOf(b)]&&c.indexOf(b)<0&&c.push(b)}}++u,h=c,c=[]}for(d=0;d<s.length;d++)if(1===s[d])throw new Error("Sankey is a DAG, the original data has cycle!");var w=p>u-1?p:u-1;a&&"left"!==a&&function(t,e,n,i){if("right"===e){for(var r=[],o=t,a=0;o.length;){for(var s=0;s<o.length;s++){var l=o[s];l.setLayout({skNodeHeight:a},!0);for(var h=0;h<l.inEdges.length;h++){var c=l.inEdges[h];r.indexOf(c.node1)<0&&r.push(c.node1)}}o=r,r=[],++a}_.each(t,(function(t){_u(t)||t.setLayout({depth:Math.max(0,i-t.getLayout().skNodeHeight)},!0)}))}else"justify"===e&&function(t,e){_.each(t,(function(t){_u(t)||t.outEdges.length||t.setLayout({depth:e},!0)}))}(t,i)}(t,a,0,w);var S="vertical"===o?(r-n)/w:(i-n)/w;!function(t,e,n){_.each(t,(function(t){var i=t.getLayout().depth*e;"vertical"===n?t.setLayout({y:i},!0):t.setLayout({x:i},!0)}))}(t,S,o)})(t,e,n,r,o,s,l),function(t,e,n,i,r,o,a){var s=function(t,e){var n=[],i="vertical"===e?"y":"x",r=(0,ce.Sq)(t,(function(t){return t.getLayout()[i]}));return r.keys.sort((function(t,e){return t-e})),_.each(r.keys,(function(t){n.push(r.buckets.get(t))})),n}(t,a);(function(t,e,n,i,r,o){var a=1/0;_.each(t,(function(t){var e=t.length,s=0;_.each(t,(function(t){s+=t.getLayout().value}));var l="vertical"===o?(i-(e-1)*r)/s:(n-(e-1)*r)/s;l<a&&(a=l)})),_.each(t,(function(t){_.each(t,(function(t,e){var n=t.getLayout().value*a;"vertical"===o?(t.setLayout({x:e},!0),t.setLayout({dx:n},!0)):(t.setLayout({y:e},!0),t.setLayout({dy:n},!0))}))})),_.each(e,(function(t){var e=+t.getValue()*a;t.setLayout({dy:e},!0)}))})(s,e,n,i,r,a),xu(s,r,n,i,a);for(var l=1;o>0;o--)bu(s,l*=.99,a),xu(s,r,n,i,a),Eu(s,l,a),xu(s,r,n,i,a)}(t,e,o,r,i,a,s),function(t,e){var n="vertical"===e?"x":"y";_.each(t,(function(t){t.outEdges.sort((function(t,e){return t.node2.getLayout()[n]-e.node2.getLayout()[n]})),t.inEdges.sort((function(t,e){return t.node1.getLayout()[n]-e.node1.getLayout()[n]}))})),_.each(t,(function(t){var e=0,n=0;_.each(t.outEdges,(function(t){t.setLayout({sy:e},!0),e+=t.getLayout().dy})),_.each(t.inEdges,(function(t){t.setLayout({ty:n},!0),n+=t.getLayout().dy}))}))}(t,s)}(l,h,n,i,o,a,0!==_.filter(l,(function(t){return 0===t.getLayout().value})).length?0:t.get("layoutIterations"),t.get("orient"),t.get("nodeAlign"))}))}function _u(t){var e=t.hostGraph.data.getRawDataItem(t.dataIndex);return null!=e.depth&&e.depth>=0}function xu(t,e,n,i,r){var o="vertical"===r?"x":"y";_.each(t,(function(t){var a,s,l;t.sort((function(t,e){return t.getLayout()[o]-e.getLayout()[o]}));for(var h=0,c=t.length,u="vertical"===r?"dx":"dy",d=0;d<c;d++)(l=h-(s=t[d]).getLayout()[o])>0&&(a=s.getLayout()[o]+l,"vertical"===r?s.setLayout({x:a},!0):s.setLayout({y:a},!0)),h=s.getLayout()[o]+s.getLayout()[u]+e;if((l=h-e-("vertical"===r?i:n))>0){a=s.getLayout()[o]-l,"vertical"===r?s.setLayout({x:a},!0):s.setLayout({y:a},!0),h=a;for(d=c-2;d>=0;--d)(l=(s=t[d]).getLayout()[o]+s.getLayout()[u]+e-h)>0&&(a=s.getLayout()[o]-l,"vertical"===r?s.setLayout({x:a},!0):s.setLayout({y:a},!0)),h=s.getLayout()[o]}}))}function bu(t,e,n){_.each(t.slice().reverse(),(function(t){_.each(t,(function(t){if(t.outEdges.length){var i=Iu(t.outEdges,wu,n)/Iu(t.outEdges,Cu);if(isNaN(i)){var r=t.outEdges.length;i=r?Iu(t.outEdges,Su,n)/r:0}if("vertical"===n){var o=t.getLayout().x+(i-Au(t,n))*e;t.setLayout({x:o},!0)}else{var a=t.getLayout().y+(i-Au(t,n))*e;t.setLayout({y:a},!0)}}}))}))}function wu(t,e){return Au(t.node2,e)*t.getValue()}function Su(t,e){return Au(t.node2,e)}function Tu(t,e){return Au(t.node1,e)*t.getValue()}function Mu(t,e){return Au(t.node1,e)}function Au(t,e){return"vertical"===e?t.getLayout().x+t.getLayout().dx/2:t.getLayout().y+t.getLayout().dy/2}function Cu(t){return t.getValue()}function Iu(t,e,n){for(var i=0,r=t.length,o=-1;++o<r;){var a=+e(t[o],n);isNaN(a)||(i+=a)}return i}function Eu(t,e,n){_.each(t,(function(t){_.each(t,(function(t){if(t.inEdges.length){var i=Iu(t.inEdges,Tu,n)/Iu(t.inEdges,Cu);if(isNaN(i)){var r=t.inEdges.length;i=r?Iu(t.inEdges,Mu,n)/r:0}if("vertical"===n){var o=t.getLayout().x+(i-Au(t,n))*e;t.setLayout({x:o},!0)}else{var a=t.getLayout().y+(i-Au(t,n))*e;t.setLayout({y:a},!0)}}}))}))}function ku(t){t.eachSeriesByType("sankey",(function(t){var e=t.getGraph(),n=e.nodes,i=e.edges;if(n.length){var r=1/0,o=-1/0;_.each(n,(function(t){var e=t.getLayout().value;e<r&&(r=e),e>o&&(o=e)})),_.each(n,(function(e){var n=new Zs({type:"color",mappingMethod:"linear",dataExtent:[r,o],visual:t.get("color")}).mapValueToVisual(e.getLayout().value),i=e.getModel().get(["itemStyle","color"]);null!=i?(e.setVisual("color",i),e.setVisual("style",{fill:i})):(e.setVisual("color",n),e.setVisual("style",{fill:n}))}))}i.length&&_.each(i,(function(t){var e=t.getModel().get("lineStyle");t.setVisual("style",e)}))}))}var Lu=n(525),Du=function(){function t(){}return t.prototype.getInitialData=function(t,e){var n,i,r=e.getComponent("xAxis",this.get("xAxisIndex")),o=e.getComponent("yAxis",this.get("yAxisIndex")),a=r.get("type"),s=o.get("type");"category"===a?(t.layout="horizontal",n=r.getOrdinalMeta(),i=!0):"category"===s?(t.layout="vertical",n=o.getOrdinalMeta(),i=!0):t.layout=t.layout||"horizontal";var l=["x","y"],h="horizontal"===t.layout?0:1,c=this._baseAxisDim=l[h],u=l[1-h],d=[r,o],p=d[h].get("type"),f=d[1-h].get("type"),g=t.data;if(g&&i){var m=[];_.each(g,(function(t,e){var n;_.isArray(t)?(n=t.slice(),t.unshift(e)):_.isArray(t.value)?((n=_.extend({},t)).value=n.value.slice(),t.value.unshift(e)):n=t,m.push(n)})),t.data=m}var v=this.defaultValueDimensions,y=[{name:c,type:(0,Lu.B)(p),ordinalMeta:n,otherDims:{tooltip:!1,itemName:0},dimsDef:["base"]},{name:u,type:(0,Lu.B)(f),dimsDef:v.slice()}];return qn(this,{coordDimensions:y,dimensionsCount:v.length+1,encodeDefaulter:_.curry(Xn.OC,y,this)})},t.prototype.getBaseAxis=function(){var t=this._baseAxisDim;return this.ecModel.getComponent(t+"Axis",this.get(t+"AxisIndex")).axis},t}(),Pu=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n.defaultValueDimensions=[{name:"min",defaultTooltip:!0},{name:"Q1",defaultTooltip:!0},{name:"median",defaultTooltip:!0},{name:"Q3",defaultTooltip:!0},{name:"max",defaultTooltip:!0}],n.visualDrawType="stroke",n}return(0,Bt.C6)(e,t),e.type="series.boxplot",e.dependencies=["xAxis","yAxis","grid"],e.defaultOption={z:2,coordinateSystem:"cartesian2d",legendHoverLink:!0,layout:null,boxWidth:[7,50],itemStyle:{color:"#fff",borderWidth:1},emphasis:{scale:!0,itemStyle:{borderWidth:2,shadowBlur:5,shadowOffsetX:1,shadowOffsetY:1,shadowColor:"rgba(0,0,0,0.2)"}},animationDuration:800},e}(Gt.A);(0,_.mixin)(Pu,Du,!0);const Ru=Pu;var Ou=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return(0,Bt.C6)(e,t),e.prototype.render=function(t,e,n){var i=t.getData(),r=this.group,o=this._data;this._data||r.removeAll();var a="horizontal"===t.get("layout")?1:0;i.diff(o).add((function(t){if(i.hasValue(t)){var e=Bu(i.getItemLayout(t),i,t,a,!0);i.setItemGraphicEl(t,e),r.add(e)}})).update((function(t,e){var n=o.getItemGraphicEl(e);if(i.hasValue(t)){var s=i.getItemLayout(t);n?((0,Ut.ap)(n),zu(s,n,i,t)):n=Bu(s,i,t,a),r.add(n),i.setItemGraphicEl(t,n)}else r.remove(n)})).remove((function(t){var e=o.getItemGraphicEl(t);e&&r.remove(e)})).execute(),this._data=i},e.prototype.remove=function(t){var e=this.group,n=this._data;this._data=null,n&&n.eachItemGraphicEl((function(t){t&&e.remove(t)}))},e.type="boxplot",e}(xe.A),Nu=function(){},Fu=function(t){function e(e){var n=t.call(this,e)||this;return n.type="boxplotBoxPath",n}return(0,Bt.C6)(e,t),e.prototype.getDefaultShape=function(){return new Nu},e.prototype.buildPath=function(t,e){var n=e.points,i=0;for(t.moveTo(n[i][0],n[i][1]),i++;i<4;i++)t.lineTo(n[i][0],n[i][1]);for(t.closePath();i<n.length;i++)t.moveTo(n[i][0],n[i][1]),i++,t.lineTo(n[i][0],n[i][1])},e}(s.Ay);function Bu(t,e,n,i,r){var o=t.ends,a=new Fu({shape:{points:r?Gu(o,i,t):o}});return zu(t,a,e,n,r),a}function zu(t,e,n,i,r){var o=n.hostModel;(0,qt[r?"initProps":"updateProps"])(e,{shape:{points:t.ends}},o,i),e.useStyle(n.getItemVisual(i,"style")),e.style.strokeNoScale=!0,e.z2=100;var a=n.getItemModel(i),s=a.getModel("emphasis");(0,Yt.Mx)(e,a),(0,Yt.Lm)(e,s.get("focus"),s.get("blurScope"),s.get("disabled"))}function Gu(t,e,n){return _.map(t,(function(t){return(t=t.slice())[e]=n.initBaseline,t}))}const Vu=Ou;var ju=_.each;function Hu(t){var e=function(t){var e=[],n=[];return t.eachSeriesByType("boxplot",(function(t){var i=t.getBaseAxis(),r=_.indexOf(n,i);r<0&&(r=n.length,n[r]=i,e[r]={axis:i,seriesModels:[]}),e[r].seriesModels.push(t)})),e}(t);ju(e,(function(t){var e=t.seriesModels;e.length&&(!function(t){var e,n=t.axis,i=t.seriesModels,r=i.length,o=t.boxWidthList=[],a=t.boxOffsetList=[],s=[];if("category"===n.type)e=n.getBandWidth();else{var l=0;ju(i,(function(t){l=Math.max(l,t.getData().count())}));var h=n.getExtent();e=Math.abs(h[1]-h[0])/l}ju(i,(function(t){var n=t.get("boxWidth");_.isArray(n)||(n=[n,n]),s.push([(0,Se.lo)(n[0],e)||0,(0,Se.lo)(n[1],e)||0])}));var c=.8*e-2,u=c/r*.3,d=(c-u*(r-1))/r,p=d/2-c/2;ju(i,(function(t,e){a.push(p),p+=u+d,o.push(Math.min(Math.max(d,s[e][0]),s[e][1]))}))}(t),ju(e,(function(e,n){!function(t,e,n){var i=t.coordinateSystem,r=t.getData(),o=n/2,a="horizontal"===t.get("layout")?0:1,s=1-a,l=["x","y"],h=r.mapDimension(l[a]),c=r.mapDimensionsAll(l[s]);if(null==h||c.length<5)return;for(var u=0;u<r.count();u++){var d=r.get(h,u),p=_(d,c[2],u),f=_(d,c[0],u),g=_(d,c[1],u),m=_(d,c[3],u),v=_(d,c[4],u),y=[];x(y,g,!1),x(y,m,!0),y.push(f,g,v,m),b(y,f),b(y,v),b(y,p),r.setItemLayout(u,{initBaseline:p[s],ends:y})}function _(t,n,o){var l,h=r.get(n,o),c=[];return c[a]=t,c[s]=h,isNaN(t)||isNaN(h)?l=[NaN,NaN]:(l=i.dataToPoint(c))[a]+=e,l}function x(t,e,n){var i=e.slice(),r=e.slice();i[a]+=o,r[a]-=o,n?t.push(i,r):t.push(r,i)}function b(t,e){var n=e.slice(),i=e.slice();n[a]-=o,i[a]+=o,t.push(n,i)}}(e,t.boxOffsetList[n],t.boxWidthList[n])})))}))}var Wu=n(766),Uu=n(3457),qu={type:"echarts:boxplot",transform:function(t){var e=t.upstream;if(e.sourceFormat!==Uu.Km){0,(0,Wu.$8)("")}var n=function(t,e){for(var n=[],i=[],r=(e=e||{}).boundIQR,o="none"===r||0===r,a=0;a<t.length;a++){var s=(0,Se.Y6)(t[a].slice()),l=(0,Se.YV)(s,.25),h=(0,Se.YV)(s,.5),c=(0,Se.YV)(s,.75),u=s[0],d=s[s.length-1],p=(null==r?1.5:r)*(c-l),f=o?u:Math.max(u,l-p),g=o?d:Math.min(d,c+p),m=e.itemNameFormatter,v=(0,_.isFunction)(m)?m({value:a}):(0,_.isString)(m)?m.replace("{value}",a+""):a+"";n.push([v,f,l,h,c,g]);for(var y=0;y<s.length;y++){var x=s[y];if(x<f||x>g){var b=[v,x];i.push(b)}}}return{boxData:n,outliers:i}}(e.getRawData(),t.config);return[{dimensions:["ItemName","Low","Q1","Q2","Q3","High"],data:n.boxData},{data:n.outliers}]}};var Xu=["color","borderColor"],Yu=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return(0,Bt.C6)(e,t),e.prototype.render=function(t,e,n){this.group.removeClipPath(),this._progressiveEls=null,this._updateDrawMode(t),this._isLargeDraw?this._renderLarge(t):this._renderNormal(t)},e.prototype.incrementalPrepareRender=function(t,e,n){this._clear(),this._updateDrawMode(t)},e.prototype.incrementalRender=function(t,e,n,i){this._progressiveEls=[],this._isLargeDraw?this._incrementalRenderLarge(t,e):this._incrementalRenderNormal(t,e)},e.prototype.eachRendered=function(t){qt.traverseElements(this._progressiveEls||this.group,t)},e.prototype._updateDrawMode=function(t){var e=t.pipelineContext.large;null!=this._isLargeDraw&&e===this._isLargeDraw||(this._isLargeDraw=e,this._clear())},e.prototype._renderNormal=function(t){var e=t.getData(),n=this._data,i=this.group,r=e.getLayout("isSimpleBox"),o=t.get("clip",!0),a=t.coordinateSystem,s=a.getArea&&a.getArea();this._data||i.removeAll(),e.diff(n).add((function(n){if(e.hasValue(n)){var a=e.getItemLayout(n);if(o&&Ju(s,a))return;var l=Ku(a,n,!0);Ut.LW(l,{shape:{points:a.ends}},t,n),Qu(l,e,n,r),i.add(l),e.setItemGraphicEl(n,l)}})).update((function(a,l){var h=n.getItemGraphicEl(l);if(e.hasValue(a)){var c=e.getItemLayout(a);o&&Ju(s,c)?i.remove(h):(h?(Ut.oi(h,{shape:{points:c.ends}},t,a),(0,Ut.ap)(h)):h=Ku(c,a),Qu(h,e,a,r),i.add(h),e.setItemGraphicEl(a,h))}else i.remove(h)})).remove((function(t){var e=n.getItemGraphicEl(t);e&&i.remove(e)})).execute(),this._data=e},e.prototype._renderLarge=function(t){this._clear(),id(t,this.group);var e=t.get("clip",!0)?Ae(t.coordinateSystem,!1,t):null;e?this.group.setClipPath(e):this.group.removeClipPath()},e.prototype._incrementalRenderNormal=function(t,e){for(var n,i=e.getData(),r=i.getLayout("isSimpleBox");null!=(n=t.next());){var o=Ku(i.getItemLayout(n),n);Qu(o,i,n,r),o.incremental=!0,this.group.add(o),this._progressiveEls.push(o)}},e.prototype._incrementalRenderLarge=function(t,e){id(e,this.group,this._progressiveEls,!0)},e.prototype.remove=function(t){this._clear()},e.prototype._clear=function(){this.group.removeAll(),this._data=null},e.type="candlestick",e}(xe.A),Zu=function(){},$u=function(t){function e(e){var n=t.call(this,e)||this;return n.type="normalCandlestickBox",n}return(0,Bt.C6)(e,t),e.prototype.getDefaultShape=function(){return new Zu},e.prototype.buildPath=function(t,e){var n=e.points;this.__simpleBox?(t.moveTo(n[4][0],n[4][1]),t.lineTo(n[6][0],n[6][1])):(t.moveTo(n[0][0],n[0][1]),t.lineTo(n[1][0],n[1][1]),t.lineTo(n[2][0],n[2][1]),t.lineTo(n[3][0],n[3][1]),t.closePath(),t.moveTo(n[4][0],n[4][1]),t.lineTo(n[5][0],n[5][1]),t.moveTo(n[6][0],n[6][1]),t.lineTo(n[7][0],n[7][1]))},e}(s.Ay);function Ku(t,e,n){var i=t.ends;return new $u({shape:{points:n?td(i,t):i},z2:100})}function Ju(t,e){for(var n=!0,i=0;i<e.ends.length;i++)if(t.contain(e.ends[i][0],e.ends[i][1])){n=!1;break}return n}function Qu(t,e,n,i){var r=e.getItemModel(n);t.useStyle(e.getItemVisual(n,"style")),t.style.strokeNoScale=!0,t.__simpleBox=i,(0,Yt.Mx)(t,r)}function td(t,e){return _.map(t,(function(t){return(t=t.slice())[1]=e.initBaseline,t}))}var ed=function(){},nd=function(t){function e(e){var n=t.call(this,e)||this;return n.type="largeCandlestickBox",n}return(0,Bt.C6)(e,t),e.prototype.getDefaultShape=function(){return new ed},e.prototype.buildPath=function(t,e){for(var n=e.points,i=0;i<n.length;)if(this.__sign===n[i++]){var r=n[i++];t.moveTo(r,n[i++]),t.lineTo(r,n[i++])}else i+=3},e}(s.Ay);function id(t,e,n,i){var r=t.getData(),o=r.getLayout("largePoints"),a=new nd({shape:{points:o},__sign:1,ignoreCoarsePointer:!0});e.add(a);var s=new nd({shape:{points:o},__sign:-1,ignoreCoarsePointer:!0});e.add(s);var l=new nd({shape:{points:o},__sign:0,ignoreCoarsePointer:!0});e.add(l),rd(1,a,t,r),rd(-1,s,t,r),rd(0,l,t,r),i&&(a.incremental=!0,s.incremental=!0),n&&n.push(a,s)}function rd(t,e,n,i){var r=n.get(["itemStyle",t>0?"borderColor":"borderColor0"])||n.get(["itemStyle",t>0?"color":"color0"]);0===t&&(r=n.get(["itemStyle","borderColorDoji"]));var o=n.getModel("itemStyle").getItemStyle(Xu);e.useStyle(o),e.style.fill=null,e.style.stroke=r}const od=Yu;var ad=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n.defaultValueDimensions=[{name:"open",defaultTooltip:!0},{name:"close",defaultTooltip:!0},{name:"lowest",defaultTooltip:!0},{name:"highest",defaultTooltip:!0}],n}return(0,Bt.C6)(e,t),e.prototype.getShadowDim=function(){return"open"},e.prototype.brushSelector=function(t,e,n){var i=e.getItemLayout(t);return i&&n.rect(i.brushRect)},e.type="series.candlestick",e.dependencies=["xAxis","yAxis","grid"],e.defaultOption={z:2,coordinateSystem:"cartesian2d",legendHoverLink:!0,layout:null,clip:!0,itemStyle:{color:"#eb5454",color0:"#47b262",borderColor:"#eb5454",borderColor0:"#47b262",borderColorDoji:null,borderWidth:1},emphasis:{scale:!0,itemStyle:{borderWidth:2}},barMaxWidth:null,barMinWidth:null,barWidth:null,large:!0,largeThreshold:600,progressive:3e3,progressiveThreshold:1e4,progressiveChunkMode:"mod",animationEasing:"linear",animationDuration:300},e}(Gt.A);(0,_.mixin)(ad,Du,!0);const sd=ad;function ld(t){t&&_.isArray(t.series)&&_.each(t.series,(function(t){_.isObject(t)&&"k"===t.type&&(t.type="candlestick")}))}var hd=["itemStyle","borderColor"],cd=["itemStyle","borderColor0"],ud=["itemStyle","borderColorDoji"],dd=["itemStyle","color"],pd=["itemStyle","color0"];const fd={seriesType:"candlestick",plan:(0,Ve.A)(),performRawSeries:!0,reset:function(t,e){function n(t,e){return e.get(t>0?dd:pd)}function i(t,e){return e.get(0===t?ud:t>0?hd:cd)}if(!e.isSeriesFiltered(t))return!t.pipelineContext.large&&{progress:function(t,e){for(var r;null!=(r=t.next());){var o=e.getItemModel(r),a=e.getItemLayout(r).sign,s=o.getItemStyle();s.fill=n(a,o),s.stroke=i(a,o)||s.fill;var l=e.ensureUniqueItemVisual(r,"style");(0,_.extend)(l,s)}}}}};var gd={seriesType:"candlestick",plan:(0,Ve.A)(),reset:function(t){var e=t.coordinateSystem,n=t.getData(),i=function(t,e){var n,i=t.getBaseAxis(),r="category"===i.type?i.getBandWidth():(n=i.getExtent(),Math.abs(n[1]-n[0])/e.count()),o=(0,Se.lo)((0,_.retrieve2)(t.get("barMaxWidth"),r),r),a=(0,Se.lo)((0,_.retrieve2)(t.get("barMinWidth"),1),r),s=t.get("barWidth");return null!=s?(0,Se.lo)(s,r):Math.max(Math.min(r/2,o),a)}(t,n),r=["x","y"],o=n.getDimensionIndex(n.mapDimension(r[0])),a=(0,_.map)(n.mapDimensionsAll(r[1]),n.getDimensionIndex,n),s=a[0],l=a[1],h=a[2],c=a[3];if(n.setLayout({candleWidth:i,isSimpleBox:i<=1.3}),!(o<0||a.length<4))return{progress:t.pipelineContext.large?function(n,i){var r,a,u=(0,le.J)(4*n.count),d=0,p=[],f=[],g=i.getStore(),m=!!t.get(["itemStyle","borderColorDoji"]);for(;null!=(a=n.next());){var v=g.get(o,a),y=g.get(s,a),_=g.get(l,a),x=g.get(h,a),b=g.get(c,a);isNaN(v)||isNaN(x)||isNaN(b)?(u[d++]=NaN,d+=3):(u[d++]=md(g,a,y,_,l,m),p[0]=v,p[1]=x,r=e.dataToPoint(p,null,f),u[d++]=r?r[0]:NaN,u[d++]=r?r[1]:NaN,p[1]=b,r=e.dataToPoint(p,null,f),u[d++]=r?r[1]:NaN)}i.setLayout("largePoints",u)}:function(t,n){var r,a=n.getStore();for(;null!=(r=t.next());){var u=a.get(o,r),d=a.get(s,r),p=a.get(l,r),f=a.get(h,r),g=a.get(c,r),m=Math.min(d,p),v=Math.max(d,p),y=T(m,u),_=T(v,u),x=T(f,u),b=T(g,u),w=[];M(w,_,0),M(w,y,1),w.push(C(b),C(_),C(x),C(y));var S=!!n.getItemModel(r).get(["itemStyle","borderColorDoji"]);n.setItemLayout(r,{sign:md(a,r,d,p,l,S),initBaseline:d>p?_[1]:y[1],ends:w,brushRect:A(f,g,u)})}function T(t,n){var i=[];return i[0]=n,i[1]=t,isNaN(n)||isNaN(t)?[NaN,NaN]:e.dataToPoint(i)}function M(t,e,n){var r=e.slice(),o=e.slice();r[0]=(0,qt.subPixelOptimize)(r[0]+i/2,1,!1),o[0]=(0,qt.subPixelOptimize)(o[0]-i/2,1,!0),n?t.push(r,o):t.push(o,r)}function A(t,e,n){var r=T(t,n),o=T(e,n);return r[0]-=i/2,o[0]-=i/2,{x:r[0],y:r[1],width:i,height:o[1]-r[1]}}function C(t){return t[0]=(0,qt.subPixelOptimize)(t[0],1),t}}}}};function md(t,e,n,i,r,o){return n>i?-1:n<i?1:o?0:e>0?t.get(r,e-1)<=i?1:-1:1}const vd=gd;function yd(t,e){var n=e.rippleEffectColor||e.color;t.eachChild((function(t){t.attr({z:e.z,zlevel:e.zlevel,style:{stroke:"stroke"===e.brushType?n:null,fill:"fill"===e.brushType?n:null}})}))}var _d=function(t){function e(e,n){var i=t.call(this)||this,r=new te(e,n),o=new jt.A;return i.add(r),i.add(o),i.updateData(e,n),i}return(0,Bt.C6)(e,t),e.prototype.stopEffectAnimation=function(){this.childAt(1).removeAll()},e.prototype.startEffectAnimation=function(t){for(var e=t.symbolType,n=t.color,i=t.rippleNumber,r=this.childAt(1),o=0;o<i;o++){var a=(0,Vt.v5)(e,-1,-1,2,2,n);a.attr({style:{strokeNoScale:!0},z2:99,silent:!0,scaleX:.5,scaleY:.5});var s=-o/i*t.period+t.effectOffset;a.animate("",!0).when(t.period,{scaleX:t.rippleScale/2,scaleY:t.rippleScale/2}).delay(s).start(),a.animateStyle(!0).when(t.period,{opacity:0}).delay(s).start(),r.add(a)}yd(r,t)},e.prototype.updateEffectAnimation=function(t){for(var e=this._effectCfg,n=this.childAt(1),i=["symbolType","period","rippleScale","rippleNumber"],r=0;r<i.length;r++){var o=i[r];if(e[o]!==t[o])return this.stopEffectAnimation(),void this.startEffectAnimation(t)}yd(n,t)},e.prototype.highlight=function(){(0,Yt.HY)(this)},e.prototype.downplay=function(){(0,Yt.SD)(this)},e.prototype.getSymbolType=function(){var t=this.childAt(0);return t&&t.getSymbolType()},e.prototype.updateData=function(t,e){var n=this,i=t.hostModel;this.childAt(0).updateData(t,e);var r=this.childAt(1),o=t.getItemModel(e),a=t.getItemVisual(e,"symbol"),s=(0,Vt.xU)(t.getItemVisual(e,"symbolSize")),l=t.getItemVisual(e,"style"),h=l&&l.fill,c=o.getModel("emphasis");r.setScale(s),r.traverse((function(t){t.setStyle("fill",h)}));var u=(0,Vt.hV)(t.getItemVisual(e,"symbolOffset"),s);u&&(r.x=u[0],r.y=u[1]);var d=t.getItemVisual(e,"symbolRotate");r.rotation=(d||0)*Math.PI/180||0;var p={};p.showEffectOn=i.get("showEffectOn"),p.rippleScale=o.get(["rippleEffect","scale"]),p.brushType=o.get(["rippleEffect","brushType"]),p.period=1e3*o.get(["rippleEffect","period"]),p.effectOffset=e/t.count(),p.z=i.getShallow("z")||0,p.zlevel=i.getShallow("zlevel")||0,p.symbolType=a,p.color=h,p.rippleEffectColor=o.get(["rippleEffect","color"]),p.rippleNumber=o.get(["rippleEffect","number"]),"render"===p.showEffectOn?(this._effectCfg?this.updateEffectAnimation(p):this.startEffectAnimation(p),this._effectCfg=p):(this._effectCfg=null,this.stopEffectAnimation(),this.onHoverStateChange=function(t){"emphasis"===t?"render"!==p.showEffectOn&&n.startEffectAnimation(p):"normal"===t&&"render"!==p.showEffectOn&&n.stopEffectAnimation()}),this._effectCfg=p,(0,Yt.Lm)(this,c.get("focus"),c.get("blurScope"),c.get("disabled"))},e.prototype.fadeOut=function(t){t&&t()},e}(jt.A);const xd=_d;const bd=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return(0,Bt.C6)(e,t),e.prototype.init=function(){this._symbolDraw=new re(xd)},e.prototype.render=function(t,e,n){var i=t.getData(),r=this._symbolDraw;r.updateData(i,{clipShape:this._getClipShape(t)}),this.group.add(r.group)},e.prototype._getClipShape=function(t){var e=t.coordinateSystem,n=e&&e.getArea&&e.getArea();return t.get("clip",!0)?n:null},e.prototype.updateTransform=function(t,e,n){var i=t.getData();this.group.dirty();var r=je("").reset(t,e,n);r.progress&&r.progress({start:0,end:i.count(),count:i.count()},i),this._symbolDraw.updateLayout()},e.prototype._updateGroupTransform=function(t){var e=t.coordinateSystem;e&&e.getRoamTransform&&(this.group.transform=_i.clone(e.getRoamTransform()),this.group.decomposeTransform())},e.prototype.remove=function(t,e){this._symbolDraw&&this._symbolDraw.remove(!0)},e.type="effectScatter",e}(xe.A);const wd=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n.hasSymbolVisual=!0,n}return(0,Bt.C6)(e,t),e.prototype.getInitialData=function(t,e){return(0,zt.A)(null,this,{useEncodeDefaulter:!0})},e.prototype.brushSelector=function(t,e,n){return n.point(e.getItemLayout(t))},e.type="series.effectScatter",e.dependencies=["grid","polar"],e.defaultOption={coordinateSystem:"cartesian2d",z:2,legendHoverLink:!0,effectType:"ripple",progressive:0,showEffectOn:"render",clip:!0,rippleEffect:{period:4,scale:2.5,brushType:"fill",number:3},universalTransition:{divideShape:"clone"},symbolSize:10},e}(Gt.A);var Sd=function(t){function e(e,n,i){var r=t.call(this)||this;return r.add(r.createLine(e,n,i)),r._updateEffectSymbol(e,n),r}return(0,Bt.C6)(e,t),e.prototype.createLine=function(t,e,n){return new Jl(t,e,n)},e.prototype._updateEffectSymbol=function(t,e){var n=t.getItemModel(e).getModel("effect"),i=n.get("symbolSize"),r=n.get("symbol");_.isArray(i)||(i=[i,i]);var o=t.getItemVisual(e,"style"),a=n.get("color")||o&&o.stroke,s=this.childAt(1);this._symbolType!==r&&(this.remove(s),(s=(0,Vt.v5)(r,-.5,-.5,1,1,a)).z2=100,s.culling=!0,this.add(s)),s&&(s.setStyle("shadowColor",a),s.setStyle(n.getItemStyle(["color"])),s.scaleX=i[0],s.scaleY=i[1],s.setColor(a),this._symbolType=r,this._symbolScale=i,this._updateEffectAnimation(t,n,e))},e.prototype._updateEffectAnimation=function(t,e,n){var i=this.childAt(1);if(i){var r=t.getItemLayout(n),o=1e3*e.get("period"),a=e.get("loop"),s=e.get("roundTrip"),l=e.get("constantSpeed"),h=_.retrieve(e.get("delay"),(function(e){return e/t.count()*o/3}));if(i.ignore=!0,this._updateAnimationPoints(i,r),l>0&&(o=this._getLineLength(i)/l*1e3),o!==this._period||a!==this._loop||s!==this._roundTrip){i.stopAnimation();var c=void 0;c=_.isFunction(h)?h(n):h,i.__t>0&&(c=-o*i.__t),this._animateSymbol(i,o,c,a,s)}this._period=o,this._loop=a,this._roundTrip=s}},e.prototype._animateSymbol=function(t,e,n,i,r){if(e>0){t.__t=0;var o=this,a=t.animate("",i).when(r?2*e:e,{__t:r?2:1}).delay(n).during((function(){o._updateSymbolPosition(t)}));i||a.done((function(){o.remove(t)})),a.start()}},e.prototype._getLineLength=function(t){return xi.dist(t.__p1,t.__cp1)+xi.dist(t.__cp1,t.__p2)},e.prototype._updateAnimationPoints=function(t,e){t.__p1=e[0],t.__p2=e[1],t.__cp1=e[2]||[(e[0][0]+e[1][0])/2,(e[0][1]+e[1][1])/2]},e.prototype.updateData=function(t,e,n){this.childAt(0).updateData(t,e,n),this._updateEffectSymbol(t,e)},e.prototype._updateSymbolPosition=function(t){var e=t.__p1,n=t.__p2,i=t.__cp1,r=t.__t<1?t.__t:2-t.__t,o=[t.x,t.y],a=o.slice(),s=ue.k3,l=ue.z7;o[0]=s(e[0],i[0],n[0],r),o[1]=s(e[1],i[1],n[1],r);var h=t.__t<1?l(e[0],i[0],n[0],r):l(n[0],i[0],e[0],1-r),c=t.__t<1?l(e[1],i[1],n[1],r):l(n[1],i[1],e[1],1-r);t.rotation=-Math.atan2(c,h)-Math.PI/2,"line"!==this._symbolType&&"rect"!==this._symbolType&&"roundRect"!==this._symbolType||(void 0!==t.__lastT&&t.__lastT<t.__t?(t.scaleY=1.05*xi.dist(a,o),1===r&&(o[0]=a[0]+(o[0]-a[0])/2,o[1]=a[1]+(o[1]-a[1])/2)):1===t.__lastT?t.scaleY=2*xi.dist(e,o):t.scaleY=this._symbolScale[1]),t.__lastT=t.__t,t.ignore=!1,t.x=o[0],t.y=o[1]},e.prototype.updateLayout=function(t,e){this.childAt(0).updateLayout(t,e);var n=t.getItemModel(e).getModel("effect");this._updateEffectAnimation(t,n,e)},e}(jt.A);const Td=Sd;var Md=function(t){function e(e,n,i){var r=t.call(this)||this;return r._createPolyline(e,n,i),r}return(0,Bt.C6)(e,t),e.prototype._createPolyline=function(t,e,n){var i=t.getItemLayout(e),r=new Pn.A({shape:{points:i}});this.add(r),this._updateCommonStl(t,e,n)},e.prototype.updateData=function(t,e,n){var i=t.hostModel,r=this.childAt(0),o={shape:{points:t.getItemLayout(e)}};Ut.oi(r,o,i,e),this._updateCommonStl(t,e,n)},e.prototype._updateCommonStl=function(t,e,n){var i=this.childAt(0),r=t.getItemModel(e),o=n&&n.emphasisLineStyle,a=n&&n.focus,s=n&&n.blurScope,l=n&&n.emphasisDisabled;if(!n||t.hasItemOption){var h=r.getModel("emphasis");o=h.getModel("lineStyle").getLineStyle(),l=h.get("disabled"),a=h.get("focus"),s=h.get("blurScope")}i.useStyle(t.getItemVisual(e,"style")),i.style.fill=null,i.style.strokeNoScale=!0,i.ensureState("emphasis").style=o,(0,Yt.Lm)(this,a,s,l)},e.prototype.updateLayout=function(t,e){this.childAt(0).setShape("points",t.getItemLayout(e))},e}(jt.A);const Ad=Md;var Cd=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e._lastFrame=0,e._lastFramePercent=0,e}return(0,Bt.C6)(e,t),e.prototype.createLine=function(t,e,n){return new Ad(t,e,n)},e.prototype._updateAnimationPoints=function(t,e){this._points=e;for(var n=[0],i=0,r=1;r<e.length;r++){var o=e[r-1],a=e[r];i+=xi.dist(o,a),n.push(i)}if(0!==i){for(r=0;r<n.length;r++)n[r]/=i;this._offsets=n,this._length=i}else this._length=0},e.prototype._getLineLength=function(){return this._length},e.prototype._updateSymbolPosition=function(t){var e=t.__t<1?t.__t:2-t.__t,n=this._points,i=this._offsets,r=n.length;if(i){var o,a=this._lastFrame;if(e<this._lastFramePercent){for(o=Math.min(a+1,r-1);o>=0&&!(i[o]<=e);o--);o=Math.min(o,r-2)}else{for(o=a;o<r&&!(i[o]>e);o++);o=Math.min(o-1,r-2)}var s=(e-i[o])/(i[o+1]-i[o]),l=n[o],h=n[o+1];t.x=l[0]*(1-s)+s*h[0],t.y=l[1]*(1-s)+s*h[1];var c=t.__t<1?h[0]-l[0]:l[0]-h[0],u=t.__t<1?h[1]-l[1]:l[1]-h[1];t.rotation=-Math.atan2(u,c)-Math.PI/2,this._lastFrame=o,this._lastFramePercent=e,t.ignore=!1}},e}(Td);const Id=Cd;var Ed=n(58),kd=n(4880),Ld=function(){this.polyline=!1,this.curveness=0,this.segs=[]},Dd=function(t){function e(e){var n=t.call(this,e)||this;return n._off=0,n.hoverDataIdx=-1,n}return(0,Bt.C6)(e,t),e.prototype.reset=function(){this.notClear=!1,this._off=0},e.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},e.prototype.getDefaultShape=function(){return new Ld},e.prototype.buildPath=function(t,e){var n,i=e.segs,r=e.curveness;if(e.polyline)for(n=this._off;n<i.length;){var o=i[n++];if(o>0){t.moveTo(i[n++],i[n++]);for(var a=1;a<o;a++)t.lineTo(i[n++],i[n++])}}else for(n=this._off;n<i.length;){var s=i[n++],l=i[n++],h=i[n++],c=i[n++];if(t.moveTo(s,l),r>0){var u=(s+h)/2-(l-c)*r,d=(l+c)/2-(h-s)*r;t.quadraticCurveTo(u,d,h,c)}else t.lineTo(h,c)}this.incremental&&(this._off=n,this.notClear=!0)},e.prototype.findDataIndex=function(t,e){var n=this.shape,i=n.segs,r=n.curveness,o=this.style.lineWidth;if(n.polyline)for(var a=0,s=0;s<i.length;){var l=i[s++];if(l>0)for(var h=i[s++],c=i[s++],u=1;u<l;u++){var d=i[s++],p=i[s++];if(Ed.l(h,c,d,p,o,t,e))return a}a++}else for(a=0,s=0;s<i.length;){h=i[s++],c=i[s++],d=i[s++],p=i[s++];if(r>0){var f=(h+d)/2-(c-p)*r,g=(c+p)/2-(d-h)*r;if(kd.l(h,c,f,g,d,p,o,t,e))return a}else if(Ed.l(h,c,d,p,o,t,e))return a;a++}return-1},e.prototype.contain=function(t,e){var n=this.transformCoordToLocal(t,e),i=this.getBoundingRect();return t=n[0],e=n[1],i.contain(t,e)?(this.hoverDataIdx=this.findDataIndex(t,e))>=0:(this.hoverDataIdx=-1,!1)},e.prototype.getBoundingRect=function(){var t=this._rect;if(!t){for(var e=this.shape.segs,n=1/0,i=1/0,r=-1/0,o=-1/0,a=0;a<e.length;){var s=e[a++],l=e[a++];n=Math.min(s,n),r=Math.max(s,r),i=Math.min(l,i),o=Math.max(l,o)}t=this._rect=new Jn.A(n,i,r,o)}return t},e}(s.Ay);const Pd=function(){function t(){this.group=new jt.A}return t.prototype.updateData=function(t){this._clear();var e=this._create();e.setShape({segs:t.getLayout("linesPoints")}),this._setCommon(e,t)},t.prototype.incrementalPrepareUpdate=function(t){this.group.removeAll(),this._clear()},t.prototype.incrementalUpdate=function(t,e){var n=this._newAdded[0],i=e.getLayout("linesPoints"),r=n&&n.shape.segs;if(r&&r.length<2e4){var o=r.length,a=new Float32Array(o+i.length);a.set(r),a.set(i,o),n.setShape({segs:a})}else{this._newAdded=[];var s=this._create();s.incremental=!0,s.setShape({segs:i}),this._setCommon(s,e),s.__startIndex=t.start}},t.prototype.remove=function(){this._clear()},t.prototype.eachRendered=function(t){this._newAdded[0]&&t(this._newAdded[0])},t.prototype._create=function(){var t=new Dd({cursor:"default",ignoreCoarsePointer:!0});return this._newAdded.push(t),this.group.add(t),t},t.prototype._setCommon=function(t,e,n){var i=e.hostModel;t.setShape({polyline:i.get("polyline"),curveness:i.get(["lineStyle","curveness"])}),t.useStyle(i.getModel("lineStyle").getLineStyle()),t.style.strokeNoScale=!0;var r=e.getVisual("style");r&&r.stroke&&t.setStyle("stroke",r.stroke),t.setStyle("fill",null);var o=(0,Xt.z)(t);o.seriesIndex=i.seriesIndex,t.on("mousemove",(function(e){o.dataIndex=null;var n=t.hoverDataIdx;n>0&&(o.dataIndex=n+t.__startIndex)}))},t.prototype._clear=function(){this._newAdded=[],this.group.removeAll()},t}();var Rd={seriesType:"lines",plan:(0,Ve.A)(),reset:function(t){var e=t.coordinateSystem;if(e){var n=t.get("polyline"),i=t.pipelineContext.large;return{progress:function(r,o){var a=[];if(i){var s=void 0,l=r.end-r.start;if(n){for(var h=0,c=r.start;c<r.end;c++)h+=t.getLineCoordsCount(c);s=new Float32Array(l+2*h)}else s=new Float32Array(4*l);var u=0,d=[];for(c=r.start;c<r.end;c++){var p=t.getLineCoords(c,a);n&&(s[u++]=p);for(var f=0;f<p;f++)d=e.dataToPoint(a[f],!1,d),s[u++]=d[0],s[u++]=d[1]}o.setLayout("linesPoints",s)}else for(c=r.start;c<r.end;c++){var g=o.getItemModel(c),m=(p=t.getLineCoords(c,a),[]);if(n)for(var v=0;v<p;v++)m.push(e.dataToPoint(a[v]));else{m[0]=e.dataToPoint(a[0]),m[1]=e.dataToPoint(a[1]);var y=g.get(["lineStyle","curveness"]);+y&&(m[2]=[(m[0][0]+m[1][0])/2-(m[0][1]-m[1][1])*y,(m[0][1]+m[1][1])/2-(m[1][0]-m[0][0])*y])}o.setItemLayout(c,m)}}}}}};const Od=Rd;const Nd=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return(0,Bt.C6)(e,t),e.prototype.render=function(t,e,n){var i=t.getData(),r=this._updateLineDraw(i,t),o=t.get("zlevel"),a=t.get(["effect","trailLength"]),s=n.getZr(),l="svg"===s.painter.getType();l||s.painter.getLayer(o).clear(!0),null==this._lastZlevel||l||s.configLayer(this._lastZlevel,{motionBlur:!1}),this._showEffect(t)&&a>0&&(l||s.configLayer(o,{motionBlur:!0,lastFrameAlpha:Math.max(Math.min(a/10+.9,1),0)})),r.updateData(i);var h=t.get("clip",!0)&&Ae(t.coordinateSystem,!1,t);h?this.group.setClipPath(h):this.group.removeClipPath(),this._lastZlevel=o,this._finished=!0},e.prototype.incrementalPrepareRender=function(t,e,n){var i=t.getData();this._updateLineDraw(i,t).incrementalPrepareUpdate(i),this._clearLayer(n),this._finished=!1},e.prototype.incrementalRender=function(t,e,n){this._lineDraw.incrementalUpdate(t,e.getData()),this._finished=t.end===e.getData().count()},e.prototype.eachRendered=function(t){this._lineDraw&&this._lineDraw.eachRendered(t)},e.prototype.updateTransform=function(t,e,n){var i=t.getData(),r=t.pipelineContext;if(!this._finished||r.large||r.progressiveRender)return{update:!0};var o=Od.reset(t,e,n);o.progress&&o.progress({start:0,end:i.count(),count:i.count()},i),this._lineDraw.updateLayout(),this._clearLayer(n)},e.prototype._updateLineDraw=function(t,e){var n=this._lineDraw,i=this._showEffect(e),r=!!e.get("polyline"),o=e.pipelineContext.large;return n&&i===this._hasEffet&&r===this._isPolyline&&o===this._isLargeDraw||(n&&n.remove(),n=this._lineDraw=o?new Pd:new nh(r?i?Id:Ad:i?Td:Jl),this._hasEffet=i,this._isPolyline=r,this._isLargeDraw=o),this.group.add(n.group),n},e.prototype._showEffect=function(t){return!!t.get(["effect","show"])},e.prototype._clearLayer=function(t){var e=t.getZr();"svg"===e.painter.getType()||null==this._lastZlevel||e.painter.getLayer(this._lastZlevel).clear(!0)},e.prototype.remove=function(t,e){this._lineDraw&&this._lineDraw.remove(),this._lineDraw=null,this._clearLayer(e)},e.prototype.dispose=function(t,e){this.remove(t,e)},e.type="lines",e}(xe.A);var Fd="undefined"==typeof Uint32Array?Array:Uint32Array,Bd="undefined"==typeof Float64Array?Array:Float64Array;function zd(t){var e=t.data;e&&e[0]&&e[0][0]&&e[0][0].coord&&(t.data=(0,_.map)(e,(function(t){var e={coords:[t[0].coord,t[1].coord]};return t[0].name&&(e.fromName=t[0].name),t[1].name&&(e.toName=t[1].name),(0,_.mergeAll)([e,t[0],t[1]])})))}var Gd=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n.visualStyleAccessPath="lineStyle",n.visualDrawType="stroke",n}return(0,Bt.C6)(e,t),e.prototype.init=function(e){e.data=e.data||[],zd(e);var n=this._processFlatCoordsArray(e.data);this._flatCoords=n.flatCoords,this._flatCoordsOffset=n.flatCoordsOffset,n.flatCoords&&(e.data=new Float32Array(n.count)),t.prototype.init.apply(this,arguments)},e.prototype.mergeOption=function(e){if(zd(e),e.data){var n=this._processFlatCoordsArray(e.data);this._flatCoords=n.flatCoords,this._flatCoordsOffset=n.flatCoordsOffset,n.flatCoords&&(e.data=new Float32Array(n.count))}t.prototype.mergeOption.apply(this,arguments)},e.prototype.appendData=function(t){var e=this._processFlatCoordsArray(t.data);e.flatCoords&&(this._flatCoords?(this._flatCoords=(0,_.concatArray)(this._flatCoords,e.flatCoords),this._flatCoordsOffset=(0,_.concatArray)(this._flatCoordsOffset,e.flatCoordsOffset)):(this._flatCoords=e.flatCoords,this._flatCoordsOffset=e.flatCoordsOffset),t.data=new Float32Array(e.count)),this.getRawData().appendData(t.data)},e.prototype._getCoordsFromItemModel=function(t){var e=this.getData().getItemModel(t);return e.option instanceof Array?e.option:e.getShallow("coords")},e.prototype.getLineCoordsCount=function(t){return this._flatCoordsOffset?this._flatCoordsOffset[2*t+1]:this._getCoordsFromItemModel(t).length},e.prototype.getLineCoords=function(t,e){if(this._flatCoordsOffset){for(var n=this._flatCoordsOffset[2*t],i=this._flatCoordsOffset[2*t+1],r=0;r<i;r++)e[r]=e[r]||[],e[r][0]=this._flatCoords[n+2*r],e[r][1]=this._flatCoords[n+2*r+1];return i}var o=this._getCoordsFromItemModel(t);for(r=0;r<o.length;r++)e[r]=e[r]||[],e[r][0]=o[r][0],e[r][1]=o[r][1];return o.length},e.prototype._processFlatCoordsArray=function(t){var e=0;if(this._flatCoords&&(e=this._flatCoords.length),(0,_.isNumber)(t[0])){for(var n=t.length,i=new Fd(n),r=new Bd(n),o=0,a=0,s=0,l=0;l<n;){s++;var h=t[l++];i[a++]=o+e,i[a++]=h;for(var c=0;c<h;c++){var u=t[l++],d=t[l++];r[o++]=u,r[o++]=d}}return{flatCoordsOffset:new Uint32Array(i.buffer,0,a),flatCoords:r,count:s}}return{flatCoordsOffset:null,flatCoords:null,count:t.length}},e.prototype.getInitialData=function(t,e){var n=new Un.A(["value"],this);return n.hasItemOption=!1,n.initData(t.data,[],(function(t,e,i,r){if(t instanceof Array)return NaN;n.hasItemOption=!0;var o=t.value;return null!=o?o instanceof Array?o[r]:o:void 0})),n},e.prototype.formatTooltip=function(t,e,n){var i=this.getData().getItemModel(t),r=i.get("name");if(r)return r;var o=i.get("fromName"),a=i.get("toName"),s=[];return null!=o&&s.push(o),null!=a&&s.push(a),(0,br.Qx)("nameValue",{name:s.join(" > ")})},e.prototype.preventIncremental=function(){return!!this.get(["effect","show"])},e.prototype.getProgressive=function(){var t=this.option.progressive;return null==t?this.option.large?1e4:this.get("progressive"):t},e.prototype.getProgressiveThreshold=function(){var t=this.option.progressiveThreshold;return null==t?this.option.large?2e4:this.get("progressiveThreshold"):t},e.prototype.getZLevelKey=function(){var t=this.getModel("effect"),e=t.get("trailLength");return this.getData().count()>this.getProgressiveThreshold()?this.id:t.get("show")&&e>0?e+"":""},e.type="series.lines",e.dependencies=["grid","polar","geo","calendar"],e.defaultOption={coordinateSystem:"geo",z:2,legendHoverLink:!0,xAxisIndex:0,yAxisIndex:0,symbol:["none","none"],symbolSize:[10,10],geoIndex:0,effect:{show:!1,period:4,constantSpeed:0,symbol:"circle",symbolSize:3,loop:!0,trailLength:.2},large:!1,largeThreshold:2e3,polyline:!1,clip:!0,label:{show:!1,position:"end"},lineStyle:{opacity:.5}},e}(Gt.A);const Vd=Gd;function jd(t){return t instanceof Array||(t=[t,t]),t}const Hd={seriesType:"lines",reset:function(t){var e=jd(t.get("symbol")),n=jd(t.get("symbolSize")),i=t.getData();return i.setVisual("fromSymbol",e&&e[0]),i.setVisual("toSymbol",e&&e[1]),i.setVisual("fromSymbolSize",n&&n[0]),i.setVisual("toSymbolSize",n&&n[1]),{dataEach:i.hasItemOption?function(t,e){var n=t.getItemModel(e),i=jd(n.getShallow("symbol",!0)),r=jd(n.getShallow("symbolSize",!0));i[0]&&t.setItemVisual(e,"fromSymbol",i[0]),i[1]&&t.setItemVisual(e,"toSymbol",i[1]),r[0]&&t.setItemVisual(e,"fromSymbolSize",r[0]),r[1]&&t.setItemVisual(e,"toSymbolSize",r[1])}:null}}};var Wd=function(){function t(){this.blurSize=30,this.pointSize=20,this.maxOpacity=1,this.minOpacity=0,this._gradientPixels={inRange:null,outOfRange:null};var t=$.yh.createCanvas();this.canvas=t}return t.prototype.update=function(t,e,n,i,r,o){var a=this._getBrush(),s=this._getGradient(r,"inRange"),l=this._getGradient(r,"outOfRange"),h=this.pointSize+this.blurSize,c=this.canvas,u=c.getContext("2d"),d=t.length;c.width=e,c.height=n;for(var p=0;p<d;++p){var f=t[p],g=f[0],m=f[1],v=i(f[2]);u.globalAlpha=v,u.drawImage(a,g-h,m-h)}if(!c.width||!c.height)return c;for(var y=u.getImageData(0,0,c.width,c.height),_=y.data,x=0,b=_.length,w=this.minOpacity,S=this.maxOpacity-w;x<b;){v=_[x+3]/256;var T=4*Math.floor(255*v);if(v>0){var M=o(v)?s:l;v>0&&(v=v*S+w),_[x++]=M[T],_[x++]=M[T+1],_[x++]=M[T+2],_[x++]=M[T+3]*v*256}else x+=4}return u.putImageData(y,0,0),c},t.prototype._getBrush=function(){var t=this._brushCanvas||(this._brushCanvas=$.yh.createCanvas()),e=this.pointSize+this.blurSize,n=2*e;t.width=n,t.height=n;var i=t.getContext("2d");return i.clearRect(0,0,n,n),i.shadowOffsetX=n,i.shadowBlur=this.blurSize,i.shadowColor="#000",i.beginPath(),i.arc(-e,e,this.pointSize,0,2*Math.PI,!0),i.closePath(),i.fill(),t},t.prototype._getGradient=function(t,e){for(var n=this._gradientPixels,i=n[e]||(n[e]=new Uint8ClampedArray(1024)),r=[0,0,0,0],o=0,a=0;a<256;a++)t[e](a/255,!0,r),i[o++]=r[0],i[o++]=r[1],i[o++]=r[2],i[o++]=r[3];return i},t}();const Ud=Wd;function qd(t){var e=t.dimensions;return"lng"===e[0]&&"lat"===e[1]}var Xd=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return(0,Bt.C6)(e,t),e.prototype.render=function(t,e,n){var i;e.eachComponent("visualMap",(function(e){e.eachTargetSeries((function(n){n===t&&(i=e)}))})),this._progressiveEls=null,this.group.removeAll();var r=t.coordinateSystem;"cartesian2d"===r.type||"calendar"===r.type?this._renderOnCartesianAndCalendar(t,n,0,t.getData().count()):qd(r)&&this._renderOnGeo(r,t,i,n)},e.prototype.incrementalPrepareRender=function(t,e,n){this.group.removeAll()},e.prototype.incrementalRender=function(t,e,n,i){var r=e.coordinateSystem;r&&(qd(r)?this.render(e,n,i):(this._progressiveEls=[],this._renderOnCartesianAndCalendar(e,i,t.start,t.end,!0)))},e.prototype.eachRendered=function(t){qt.traverseElements(this._progressiveEls||this.group,t)},e.prototype._renderOnCartesianAndCalendar=function(t,e,n,i,r){var o,a,s,l,h=t.coordinateSystem,c=Ce(h,"cartesian2d");if(c){var u=h.getAxis("x"),d=h.getAxis("y");0,o=u.getBandWidth()+.5,a=d.getBandWidth()+.5,s=u.scale.getExtent(),l=d.scale.getExtent()}for(var p=this.group,f=t.getData(),g=t.getModel(["emphasis","itemStyle"]).getItemStyle(),m=t.getModel(["blur","itemStyle"]).getItemStyle(),v=t.getModel(["select","itemStyle"]).getItemStyle(),y=t.get(["itemStyle","borderRadius"]),_=(0,Jt.lx)(t),x=t.getModel("emphasis"),b=x.get("focus"),w=x.get("blurScope"),S=x.get("disabled"),T=c?[f.mapDimension("x"),f.mapDimension("y"),f.mapDimension("value")]:[f.mapDimension("time"),f.mapDimension("value")],M=n;M<i;M++){var A=void 0,C=f.getItemVisual(M,"style");if(c){var I=f.get(T[0],M),E=f.get(T[1],M);if(isNaN(f.get(T[2],M))||isNaN(I)||isNaN(E)||I<s[0]||I>s[1]||E<l[0]||E>l[1])continue;var k=h.dataToPoint([I,E]);A=new be.A({shape:{x:k[0]-o/2,y:k[1]-a/2,width:o,height:a},style:C})}else{if(isNaN(f.get(T[1],M)))continue;A=new be.A({z2:1,shape:h.dataToRect([f.get(T[0],M)]).contentShape,style:C})}if(f.hasItemOption){var L=f.getItemModel(M),D=L.getModel("emphasis");g=D.getModel("itemStyle").getItemStyle(),m=L.getModel(["blur","itemStyle"]).getItemStyle(),v=L.getModel(["select","itemStyle"]).getItemStyle(),y=L.get(["itemStyle","borderRadius"]),b=D.get("focus"),w=D.get("blurScope"),S=D.get("disabled"),_=(0,Jt.lx)(L)}A.shape.r=y;var P=t.getRawValue(M),R="-";P&&null!=P[2]&&(R=P[2]+""),(0,Jt.qM)(A,_,{labelFetcher:t,labelDataIndex:M,defaultOpacity:C.opacity,defaultText:R}),A.ensureState("emphasis").style=g,A.ensureState("blur").style=m,A.ensureState("select").style=v,(0,Yt.Lm)(A,b,w,S),A.incremental=r,r&&(A.states.emphasis.hoverLayer=!0),p.add(A),f.setItemGraphicEl(M,A),this._progressiveEls&&this._progressiveEls.push(A)}},e.prototype._renderOnGeo=function(t,e,n,i){var r=n.targetVisuals.inRange,o=n.targetVisuals.outOfRange,a=e.getData(),s=this._hmLayer||this._hmLayer||new Ud;s.blurSize=e.get("blurSize"),s.pointSize=e.get("pointSize"),s.minOpacity=e.get("minOpacity"),s.maxOpacity=e.get("maxOpacity");var h=t.getViewRect().clone(),c=t.getRoamTransform();h.applyTransform(c);var u=Math.max(h.x,0),d=Math.max(h.y,0),p=Math.min(h.width+h.x,i.getWidth()),f=Math.min(h.height+h.y,i.getHeight()),g=p-u,m=f-d,v=[a.mapDimension("lng"),a.mapDimension("lat"),a.mapDimension("value")],y=a.mapArray(v,(function(e,n,i){var r=t.dataToPoint([e,n]);return r[0]-=u,r[1]-=d,r.push(i),r})),x=n.getExtent(),b="visualMap.continuous"===n.type?function(t,e){var n=t[1]-t[0];return e=[(e[0]-t[0])/n,(e[1]-t[0])/n],function(t){return t>=e[0]&&t<=e[1]}}(x,n.option.range):function(t,e,n){var i=t[1]-t[0],r=(e=_.map(e,(function(e){return{interval:[(e.interval[0]-t[0])/i,(e.interval[1]-t[0])/i]}}))).length,o=0;return function(t){var i;for(i=o;i<r;i++)if((a=e[i].interval)[0]<=t&&t<=a[1]){o=i;break}if(i===r)for(i=o-1;i>=0;i--){var a;if((a=e[i].interval)[0]<=t&&t<=a[1]){o=i;break}}return i>=0&&i<r&&n[i]}}(x,n.getPieceList(),n.option.selected);s.update(y,g,m,r.color.getNormalizer(),{inRange:r.color.getColorMapper(),outOfRange:o.color.getColorMapper()},b);var w=new l.Ay({style:{width:g,height:m,x:u,y:d,image:s.canvas},silent:!0});this.group.add(w)},e.type="heatmap",e}(xe.A);const Yd=Xd;const Zd=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return(0,Bt.C6)(e,t),e.prototype.getInitialData=function(t,e){return(0,zt.A)(null,this,{generateCoord:"value"})},e.prototype.preventIncremental=function(){var t=gh.A.get(this.get("coordinateSystem"));if(t&&t.dimensions)return"lng"===t.dimensions[0]&&"lat"===t.dimensions[1]},e.type="series.heatmap",e.dependencies=["grid","geo","calendar"],e.defaultOption={coordinateSystem:"cartesian2d",z:2,geoIndex:0,blurSize:30,pointSize:20,maxOpacity:1,minOpacity:0,select:{itemStyle:{borderColor:"#212121"}}},e}(Gt.A);var $d=["itemStyle","borderWidth"],Kd=[{xy:"x",wh:"width",index:0,posDesc:["left","right"]},{xy:"y",wh:"height",index:1,posDesc:["top","bottom"]}],Jd=new Cr.A;function Qd(t,e,n,i){var r=t.getItemLayout(e),o=n.get("symbolRepeat"),a=n.get("symbolClip"),s=n.get("symbolPosition")||"start",l=(n.get("symbolRotate")||0)*Math.PI/180||0,h=n.get("symbolPatternSize")||2,c=n.isAnimationEnabled(),u={dataIndex:e,layout:r,itemModel:n,symbolType:t.getItemVisual(e,"symbol")||"circle",style:t.getItemVisual(e,"style"),symbolClip:a,symbolRepeat:o,symbolRepeatDirection:n.get("symbolRepeatDirection"),symbolPatternSize:h,rotation:l,animationModel:c?n:null,hoverScale:c&&n.get(["emphasis","scale"]),z2:n.getShallow("z",!0)||0};!function(t,e,n,i,r){var o,a=i.valueDim,s=t.get("symbolBoundingData"),l=i.coordSys.getOtherAxis(i.coordSys.getBaseAxis()),h=l.toGlobalCoord(l.dataToCoord(0)),c=1-+(n[a.wh]<=0);if(_.isArray(s)){var u=[tp(l,s[0])-h,tp(l,s[1])-h];u[1]<u[0]&&u.reverse(),o=u[c]}else o=null!=s?tp(l,s)-h:e?i.coordSysExtent[a.index][c]-h:n[a.wh];r.boundingLength=o,e&&(r.repeatCutLength=n[a.wh]);r.pxSign=o>0?1:-1}(n,o,r,i,u),function(t,e,n,i,r,o,a,s,l,h){var c,u=l.valueDim,d=l.categoryDim,p=Math.abs(n[d.wh]),f=t.getItemVisual(e,"symbolSize");c=_.isArray(f)?f.slice():null==f?["100%","100%"]:[f,f];c[d.index]=(0,Se.lo)(c[d.index],p),c[u.index]=(0,Se.lo)(c[u.index],i?p:Math.abs(o)),h.symbolSize=c;var g=h.symbolScale=[c[0]/s,c[1]/s];g[u.index]*=(l.isHorizontal?-1:1)*a}(t,e,r,o,0,u.boundingLength,u.pxSign,h,i,u),function(t,e,n,i,r){var o=t.get($d)||0;o&&(Jd.attr({scaleX:e[0],scaleY:e[1],rotation:n}),Jd.updateTransform(),o/=Jd.getLineScale(),o*=e[i.valueDim.index]);r.valueLineWidth=o||0}(n,u.symbolScale,l,i,u);var d=u.symbolSize,p=(0,Vt.hV)(n.get("symbolOffset"),d);return function(t,e,n,i,r,o,a,s,l,h,c,u){var d=c.categoryDim,p=c.valueDim,f=u.pxSign,g=Math.max(e[p.index]+s,0),m=g;if(i){var v=Math.abs(l),y=_.retrieve(t.get("symbolMargin"),"15%")+"",x=!1;y.lastIndexOf("!")===y.length-1&&(x=!0,y=y.slice(0,y.length-1));var b=(0,Se.lo)(y,e[p.index]),w=Math.max(g+2*b,0),S=x?0:2*b,T=(0,Se.kf)(i),M=T?i:gp((v+S)/w);w=g+2*(b=(v-M*g)/2/(x?M:Math.max(M-1,1))),S=x?0:2*b,T||"fixed"===i||(M=h?gp((Math.abs(h)+S)/w):0),m=M*w-S,u.repeatTimes=M,u.symbolMargin=b}var A=f*(m/2),C=u.pathPosition=[];C[d.index]=n[d.wh]/2,C[p.index]="start"===a?A:"end"===a?l-A:l/2,o&&(C[0]+=o[0],C[1]+=o[1]);var I=u.bundlePosition=[];I[d.index]=n[d.xy],I[p.index]=n[p.xy];var E=u.barRectShape=_.extend({},n);E[p.wh]=f*Math.max(Math.abs(n[p.wh]),Math.abs(C[p.index]+A)),E[d.wh]=n[d.wh];var k=u.clipShape={};k[d.xy]=-n[d.xy],k[d.wh]=c.ecSize[d.wh],k[p.xy]=0,k[p.wh]=n[p.wh]}(n,d,r,o,0,p,s,u.valueLineWidth,u.boundingLength,u.repeatCutLength,i,u),u}function tp(t,e){return t.toGlobalCoord(t.dataToCoord(t.scale.parse(e)))}function ep(t){var e=t.symbolPatternSize,n=(0,Vt.v5)(t.symbolType,-e/2,-e/2,e,e);return n.attr({culling:!0}),"image"!==n.type&&n.setStyle({strokeNoScale:!0}),n}function np(t,e,n,i){var r=t.__pictorialBundle,o=n.symbolSize,a=n.valueLineWidth,s=n.pathPosition,l=e.valueDim,h=n.repeatTimes||0,c=0,u=o[e.valueDim.index]+a+2*n.symbolMargin;for(dp(t,(function(t){t.__pictorialAnimationIndex=c,t.__pictorialRepeatTimes=h,c<h?pp(t,null,f(c),n,i):pp(t,null,{scaleX:0,scaleY:0},n,i,(function(){r.remove(t)})),c++}));c<h;c++){var d=ep(n);d.__pictorialAnimationIndex=c,d.__pictorialRepeatTimes=h,r.add(d);var p=f(c);pp(d,{x:p.x,y:p.y,scaleX:0,scaleY:0},{scaleX:p.scaleX,scaleY:p.scaleY,rotation:p.rotation},n,i)}function f(t){var e=s.slice(),i=n.pxSign,r=t;return("start"===n.symbolRepeatDirection?i>0:i<0)&&(r=h-1-t),e[l.index]=u*(r-h/2+.5)+s[l.index],{x:e[0],y:e[1],scaleX:n.symbolScale[0],scaleY:n.symbolScale[1],rotation:n.rotation}}}function ip(t,e,n,i){var r=t.__pictorialBundle,o=t.__pictorialMainPath;o?pp(o,null,{x:n.pathPosition[0],y:n.pathPosition[1],scaleX:n.symbolScale[0],scaleY:n.symbolScale[1],rotation:n.rotation},n,i):(o=t.__pictorialMainPath=ep(n),r.add(o),pp(o,{x:n.pathPosition[0],y:n.pathPosition[1],scaleX:0,scaleY:0,rotation:n.rotation},{scaleX:n.symbolScale[0],scaleY:n.symbolScale[1]},n,i))}function rp(t,e,n){var i=_.extend({},e.barRectShape),r=t.__pictorialBarRect;r?pp(r,null,{shape:i},e,n):((r=t.__pictorialBarRect=new be.A({z2:2,shape:i,silent:!0,style:{stroke:"transparent",fill:"transparent",lineWidth:0}})).disableMorphing=!0,t.add(r))}function op(t,e,n,i){if(n.symbolClip){var r=t.__pictorialClipPath,o=_.extend({},n.clipShape),a=e.valueDim,s=n.animationModel,l=n.dataIndex;if(r)Ut.oi(r,{shape:o},s,l);else{o[a.wh]=0,r=new be.A({shape:o}),t.__pictorialBundle.setClipPath(r),t.__pictorialClipPath=r;var h={};h[a.wh]=n.clipShape[a.wh],qt[i?"updateProps":"initProps"](r,{shape:h},s,l)}}}function ap(t,e){var n=t.getItemModel(e);return n.getAnimationDelayParams=sp,n.isAnimationEnabled=lp,n}function sp(t){return{index:t.__pictorialAnimationIndex,count:t.__pictorialRepeatTimes}}function lp(){return this.parentModel.isAnimationEnabled()&&!!this.getShallow("animation")}function hp(t,e,n,i){var r=new jt.A,o=new jt.A;return r.add(o),r.__pictorialBundle=o,o.x=n.bundlePosition[0],o.y=n.bundlePosition[1],n.symbolRepeat?np(r,e,n):ip(r,0,n),rp(r,n,i),op(r,e,n,i),r.__pictorialShapeStr=up(t,n),r.__pictorialSymbolMeta=n,r}function cp(t,e,n,i){var r=i.__pictorialBarRect;r&&r.removeTextContent();var o=[];dp(i,(function(t){o.push(t)})),i.__pictorialMainPath&&o.push(i.__pictorialMainPath),i.__pictorialClipPath&&(n=null),_.each(o,(function(t){Ut.Nz(t,{scaleX:0,scaleY:0},n,e,(function(){i.parent&&i.parent.remove(i)}))})),t.setItemGraphicEl(e,null)}function up(t,e){return[t.getItemVisual(e.dataIndex,"symbol")||"none",!!e.symbolRepeat,!!e.symbolClip].join(":")}function dp(t,e,n){_.each(t.__pictorialBundle.children(),(function(i){i!==t.__pictorialBarRect&&e.call(n,i)}))}function pp(t,e,n,i,r,o){e&&t.attr(e),i.symbolClip&&!r?n&&t.attr(n):n&&qt[r?"updateProps":"initProps"](t,n,i.animationModel,i.dataIndex,o)}function fp(t,e,n){var i=n.dataIndex,r=n.itemModel,o=r.getModel("emphasis"),a=o.getModel("itemStyle").getItemStyle(),s=r.getModel(["blur","itemStyle"]).getItemStyle(),h=r.getModel(["select","itemStyle"]).getItemStyle(),c=r.getShallow("cursor"),u=o.get("focus"),d=o.get("blurScope"),p=o.get("scale");dp(t,(function(t){if(t instanceof l.Ay){var e=t.style;t.useStyle(_.extend({image:e.image,x:e.x,y:e.y,width:e.width,height:e.height},n.style))}else t.useStyle(n.style);var i=t.ensureState("emphasis");i.style=a,p&&(i.scaleX=1.1*t.scaleX,i.scaleY=1.1*t.scaleY),t.ensureState("blur").style=s,t.ensureState("select").style=h,c&&(t.cursor=c),t.z2=n.z2}));var f=e.valueDim.posDesc[+(n.boundingLength>0)],g=t.__pictorialBarRect;g.ignoreClip=!0,(0,Jt.qM)(g,(0,Jt.lx)(r),{labelFetcher:e.seriesModel,labelDataIndex:i,defaultText:$t(e.seriesModel.getData(),i),inheritColor:n.style.fill,defaultOpacity:n.style.opacity,defaultOutsidePosition:f}),(0,Yt.Lm)(t,u,d,o.get("disabled"))}function gp(t){var e=Math.round(t);return Math.abs(t-e)<1e-4?e:Math.ceil(t)}const mp=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return(0,Bt.C6)(e,t),e.prototype.render=function(t,e,n){var i=this.group,r=t.getData(),o=this._data,a=t.coordinateSystem,s=a.getBaseAxis().isHorizontal(),l=a.master.getRect(),h={ecSize:{width:n.getWidth(),height:n.getHeight()},seriesModel:t,coordSys:a,coordSysExtent:[[l.x,l.x+l.width],[l.y,l.y+l.height]],isHorizontal:s,valueDim:Kd[+s],categoryDim:Kd[1-+s]};r.diff(o).add((function(t){if(r.hasValue(t)){var e=ap(r,t),n=Qd(r,t,e,h),o=hp(r,h,n);r.setItemGraphicEl(t,o),i.add(o),fp(o,h,n)}})).update((function(t,e){var n=o.getItemGraphicEl(e);if(r.hasValue(t)){var a=ap(r,t),s=Qd(r,t,a,h),l=up(r,s);n&&l!==n.__pictorialShapeStr&&(i.remove(n),r.setItemGraphicEl(t,null),n=null),n?function(t,e,n){var i=n.animationModel,r=n.dataIndex,o=t.__pictorialBundle;Ut.oi(o,{x:n.bundlePosition[0],y:n.bundlePosition[1]},i,r),n.symbolRepeat?np(t,e,n,!0):ip(t,e,n,!0);rp(t,n,!0),op(t,e,n,!0)}(n,h,s):n=hp(r,h,s,!0),r.setItemGraphicEl(t,n),n.__pictorialSymbolMeta=s,i.add(n),fp(n,h,s)}else i.remove(n)})).remove((function(t){var e=o.getItemGraphicEl(t);e&&cp(o,t,e.__pictorialSymbolMeta.animationModel,e)})).execute();var c=t.get("clip",!0)?Ae(t.coordinateSystem,!1,t):null;return c?i.setClipPath(c):i.removeClipPath(),this._data=r,this.group},e.prototype.remove=function(t,e){var n=this.group,i=this._data;t.get("animation")?i&&i.eachItemGraphicEl((function(e){cp(i,(0,Xt.z)(e).dataIndex,t,e)})):n.removeAll()},e.type="pictorialBar",e}(xe.A);const vp=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n.hasSymbolVisual=!0,n.defaultSymbol="roundRect",n}return(0,Bt.C6)(e,t),e.prototype.getInitialData=function(e){return e.stack=null,t.prototype.getInitialData.apply(this,arguments)},e.type="series.pictorialBar",e.dependencies=["grid"],e.defaultOption=(0,Ze.G_)(Ye.defaultOption,{symbol:"circle",symbolSize:null,symbolRotate:null,symbolPosition:null,symbolOffset:null,symbolMargin:null,symbolRepeat:!1,symbolRepeatDirection:"end",symbolClip:!1,symbolBoundingData:null,symbolPatternSize:400,barGap:"-100%",clip:!1,progressive:0,emphasis:{scale:!1},select:{itemStyle:{borderColor:"#212121"}}}),e}(Ye);var yp=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n._layers=[],n}return(0,Bt.C6)(e,t),e.prototype.render=function(t,e,n){var i=t.getData(),r=this,o=this.group,a=t.getLayerSeries(),s=i.getLayout("layoutInfo"),l=s.rect,h=s.boundaryGap;function c(t){return t.name}o.x=0,o.y=l.y+h[0];var u=new gs.A(this._layersSeries||[],a,c,c),d=[];function p(e,n,s){var l=r._layers;if("remove"!==e){for(var h,c,u=[],p=[],f=a[n].indices,g=0;g<f.length;g++){var m=i.getItemLayout(f[g]),v=m.x,y=m.y0,_=m.y;u.push(v,y),p.push(v,y+_),h=i.getItemVisual(f[g],"style")}var x=i.getItemLayout(f[0]),b=t.getModel("label").get("margin"),w=t.getModel("emphasis");if("add"===e){var S=d[n]=new jt.A;c=new _e({shape:{points:u,stackedOnPoints:p,smooth:.4,stackedOnSmooth:.4,smoothConstraint:!1},z2:0}),S.add(c),o.add(S),t.isAnimationEnabled()&&c.setClipPath(function(t,e,n){var i=new be.A({shape:{x:t.x-10,y:t.y-10,width:0,height:t.height+20}});return Ut.LW(i,{shape:{x:t.x-50,width:t.width+100,height:t.height+20}},e,n),i}(c.getBoundingRect(),t,(function(){c.removeClipPath()})))}else{S=l[s];c=S.childAt(0),o.add(S),d[n]=S,Ut.oi(c,{shape:{points:u,stackedOnPoints:p}},t),(0,Ut.ap)(c)}(0,Jt.qM)(c,(0,Jt.lx)(t),{labelDataIndex:f[g-1],defaultText:i.getName(f[g-1]),inheritColor:h.fill},{normal:{verticalAlign:"middle"}}),c.setTextConfig({position:null,local:!0});var T=c.getTextContent();T&&(T.x=x.x-b,T.y=x.y0+x.y/2),c.useStyle(h),i.setItemGraphicEl(n,c),(0,Yt.Mx)(c,t),(0,Yt.Lm)(c,w.get("focus"),w.get("blurScope"),w.get("disabled"))}else o.remove(l[n])}u.add((0,_.bind)(p,this,"add")).update((0,_.bind)(p,this,"update")).remove((0,_.bind)(p,this,"remove")).execute(),this._layersSeries=a,this._layers=d},e.type="themeRiver",e}(xe.A);const _p=yp;var xp=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return(0,Bt.C6)(e,t),e.prototype.init=function(e){t.prototype.init.apply(this,arguments),this.legendVisualProvider=new Yn(_.bind(this.getData,this),_.bind(this.getRawData,this))},e.prototype.fixData=function(t){var e=t.length,n={},i=(0,ce.Sq)(t,(function(t){return n.hasOwnProperty(t[0]+"")||(n[t[0]+""]=-1),t[2]})),r=[];i.buckets.each((function(t,e){r.push({name:e,dataList:t})}));for(var o=r.length,a=0;a<o;++a){for(var s=r[a].name,l=0;l<r[a].dataList.length;++l){var h=r[a].dataList[l][0]+"";n[h]=a}for(var h in n)n.hasOwnProperty(h)&&n[h]!==a&&(n[h]=a,t[e]=[h,0,s],e++)}return t},e.prototype.getInitialData=function(t,e){for(var n=this.getReferringComponents("singleAxis",ce.US).models[0].get("type"),i=_.filter(t.data,(function(t){return void 0!==t[2]})),r=this.fixData(i||[]),o=[],a=this.nameMap=_.createHashMap(),s=0,l=0;l<r.length;++l)o.push(r[l][2]),a.get(r[l][2])||(a.set(r[l][2],s),s++);var h=(0,Wn.A)(r,{coordDimensions:["single"],dimensionsDefine:[{name:"time",type:(0,Lu.B)(n)},{name:"value",type:"float"},{name:"name",type:"ordinal"}],encodeDefine:{single:0,value:1,itemName:2}}).dimensions,c=new Un.A(h,this);return c.initData(r),c},e.prototype.getLayerSeries=function(){for(var t=this.getData(),e=t.count(),n=[],i=0;i<e;++i)n[i]=i;var r=t.mapDimension("single"),o=(0,ce.Sq)(n,(function(e){return t.get("name",e)})),a=[];return o.buckets.each((function(e,n){e.sort((function(e,n){return t.get(r,e)-t.get(r,n)})),a.push({name:n,indices:e})})),a},e.prototype.getAxisTooltipData=function(t,e,n){_.isArray(t)||(t=t?[t]:[]);for(var i,r=this.getData(),o=this.getLayerSeries(),a=[],s=o.length,l=0;l<s;++l){for(var h=Number.MAX_VALUE,c=-1,u=o[l].indices.length,d=0;d<u;++d){var p=r.get(t[0],o[l].indices[d]),f=Math.abs(p-e);f<=h&&(i=p,h=f,c=o[l].indices[d])}a.push(c)}return{dataIndices:a,nestestValue:i}},e.prototype.formatTooltip=function(t,e,n){var i=this.getData(),r=i.getName(t),o=i.get(i.mapDimension("value"),t);return(0,br.Qx)("nameValue",{name:r,value:o})},e.type="series.themeRiver",e.dependencies=["singleAxis"],e.defaultOption={z:2,colorBy:"data",coordinateSystem:"singleAxis",boundaryGap:["10%","10%"],singleAxisIndex:0,animationEasing:"linear",label:{margin:4,show:!0,position:"left",fontSize:11},emphasis:{label:{show:!0}}},e}(Gt.A);const bp=xp;function wp(t,e){t.eachSeriesByType("themeRiver",(function(t){var e=t.getData(),n=t.coordinateSystem,i={},r=n.getRect();i.rect=r;var o=t.get("boundaryGap"),a=n.getAxis();(i.boundaryGap=o,"horizontal"===a.orient)?(o[0]=Se.lo(o[0],r.height),o[1]=Se.lo(o[1],r.height),Sp(e,t,r.height-o[0]-o[1])):(o[0]=Se.lo(o[0],r.width),o[1]=Se.lo(o[1],r.width),Sp(e,t,r.width-o[0]-o[1]));e.setLayout("layoutInfo",i)}))}function Sp(t,e,n){if(t.count())for(var i,r=e.coordinateSystem,o=e.getLayerSeries(),a=t.mapDimension("single"),s=t.mapDimension("value"),l=_.map(o,(function(e){return _.map(e.indices,(function(e){var n=r.dataToPoint(t.get(a,e));return n[1]=t.get(s,e),n}))})),h=function(t){for(var e=t.length,n=t[0].length,i=[],r=[],o=0,a=0;a<n;++a){for(var s=0,l=0;l<e;++l)s+=t[l][a][1];s>o&&(o=s),i.push(s)}for(var h=0;h<n;++h)r[h]=(o-i[h])/2;o=0;for(var c=0;c<n;++c){var u=i[c]+r[c];u>o&&(o=u)}return{y0:r,max:o}}(l),c=h.y0,u=n/h.max,d=o.length,p=o[0].indices.length,f=0;f<p;++f){i=c[f]*u,t.setItemLayout(o[0].indices[f],{layerIndex:0,x:l[0][f][0],y0:i,y:l[0][f][1]*u});for(var g=1;g<d;++g)i+=l[g-1][f][1]*u,t.setItemLayout(o[g].indices[f],{layerIndex:g,x:l[g][f][0],y0:i,y:l[g][f][1]*u})}}var Tp=n(4428),Mp=function(t){function e(e,n,i,r){var o=t.call(this)||this;o.z2=2,o.textConfig={inside:!0},(0,Xt.z)(o).seriesIndex=n.seriesIndex;var a=new Z.Ay({z2:4,silent:e.getModel().get(["label","silent"])});return o.setTextContent(a),o.updateData(!0,e,n,i,r),o}return(0,Bt.C6)(e,t),e.prototype.updateData=function(t,e,n,i,r){this.node=e,e.piece=this,n=n||this._seriesModel,i=i||this._ecModel;var o=this;(0,Xt.z)(o).dataIndex=e.dataIndex;var a=e.getModel(),s=a.getModel("emphasis"),l=e.getLayout(),h=_.extend({},l);h.label=null;var c=e.getVisual("style");c.lineJoin="bevel";var u=e.getVisual("decal");u&&(c.decal=(0,Go.w)(u,r));var d=rn(a.getModel("itemStyle"),h,!0);_.extend(h,d),_.each(Yt.BV,(function(t){var e=o.ensureState(t),n=a.getModel([t,"itemStyle"]);e.style=n.getItemStyle();var i=rn(n,h);i&&(e.shape=i)})),t?(o.setShape(h),o.shape.r=l.r0,Ut.LW(o,{shape:{r:l.r}},n,e.dataIndex)):(Ut.oi(o,{shape:h},n),(0,Ut.ap)(o)),o.useStyle(c),this._updateLabel(n);var p=a.getShallow("cursor");p&&o.attr("cursor",p),this._seriesModel=n||this._seriesModel,this._ecModel=i||this._ecModel;var f=s.get("focus"),g="ancestor"===f?e.getAncestorsIndices():"descendant"===f?e.getDescendantIndices():f;(0,Yt.Lm)(this,g,s.get("blurScope"),s.get("disabled"))},e.prototype._updateLabel=function(t){var e=this,n=this.node.getModel(),i=n.getModel("label"),r=this.node.getLayout(),o=r.endAngle-r.startAngle,a=(r.startAngle+r.endAngle)/2,s=Math.cos(a),l=Math.sin(a),h=this,c=h.getTextContent(),u=this.node.dataIndex,d=i.get("minAngle")/180*Math.PI,p=i.get("show")&&!(null!=d&&Math.abs(o)<d);function f(t,e){var n=t.get(e);return null==n?i.get(e):n}c.ignore=!p,_.each(Yt.wV,(function(i){var d="normal"===i?n.getModel("label"):n.getModel([i,"label"]),p="normal"===i,g=p?c:c.ensureState(i),m=t.getFormattedLabel(u,i);p&&(m=m||e.node.name),g.style=(0,Jt.VB)(d,{},null,"normal"!==i,!0),m&&(g.style.text=m);var v=d.get("show");null==v||p||(g.ignore=!v);var y,x=f(d,"position"),b=p?h:h.states[i],w=b.style.fill;b.textConfig={outsideFill:"inherit"===d.get("color")?w:null,inside:"outside"!==x};var S=f(d,"distance")||0,T=f(d,"align"),M=f(d,"rotate"),A=.5*Math.PI,C=1.5*Math.PI,I=(0,Tp.n)("tangential"===M?Math.PI/2-a:a),E=I>A&&!(0,Se.dh)(I-A)&&I<C;"outside"===x?(y=r.r+S,T=E?"right":"left"):T&&"center"!==T?"left"===T?(y=r.r0+S,T=E?"right":"left"):"right"===T&&(y=r.r-S,T=E?"left":"right"):(y=o===2*Math.PI&&0===r.r0?0:(r.r+r.r0)/2,T="center"),g.style.align=T,g.style.verticalAlign=f(d,"verticalAlign")||"middle",g.x=y*s+r.cx,g.y=y*l+r.cy;var k=0;"radial"===M?k=(0,Tp.n)(-a)+(E?Math.PI:0):"tangential"===M?k=(0,Tp.n)(Math.PI/2-a)+(E?Math.PI:0):_.isNumber(M)&&(k=M*Math.PI/180),g.rotation=(0,Tp.n)(k)})),c.dirtyStyle()},e}(we.A);const Ap=Mp;var Cp="sunburstRootToNode",Ip="sunburstHighlight";var Ep=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return(0,Bt.C6)(e,t),e.prototype.render=function(t,e,n,i){var r=this;this.seriesModel=t,this.api=n,this.ecModel=e;var o=t.getData(),a=o.tree.root,s=t.getViewRoot(),l=this.group,h=t.get("renderLabelForZeroData"),c=[];s.eachNode((function(t){c.push(t)}));var u=this._oldChildren||[];!function(i,r){if(0===i.length&&0===r.length)return;function s(t){return t.getId()}function c(s,c){!function(i,r){h||!i||i.getValue()||(i=null);if(i!==a&&r!==a)if(r&&r.piece)i?(r.piece.updateData(!1,i,t,e,n),o.setItemGraphicEl(i.dataIndex,r.piece)):function(t){if(!t)return;t.piece&&(l.remove(t.piece),t.piece=null)}(r);else if(i){var s=new Ap(i,t,e,n);l.add(s),o.setItemGraphicEl(i.dataIndex,s)}}(null==s?null:i[s],null==c?null:r[c])}new gs.A(r,i,s,s).add(c).update(c).remove(_.curry(c,null)).execute()}(c,u),function(i,o){o.depth>0?(r.virtualPiece?r.virtualPiece.updateData(!1,i,t,e,n):(r.virtualPiece=new Ap(i,t,e,n),l.add(r.virtualPiece)),o.piece.off("click"),r.virtualPiece.on("click",(function(t){r._rootToNode(o.parentNode)}))):r.virtualPiece&&(l.remove(r.virtualPiece),r.virtualPiece=null)}(a,s),this._initEvents(),this._oldChildren=c},e.prototype._initEvents=function(){var t=this;this.group.off("click"),this.group.on("click",(function(e){var n=!1;t.seriesModel.getViewRoot().eachNode((function(i){if(!n&&i.piece&&i.piece===e.target){var r=i.getModel().get("nodeClick");if("rootToNode"===r)t._rootToNode(i);else if("link"===r){var o=i.getModel(),a=o.get("link");if(a){var s=o.get("target",!0)||"_blank";(0,Ie.JW)(a,s)}}n=!0}}))}))},e.prototype._rootToNode=function(t){t!==this.seriesModel.getViewRoot()&&this.api.dispatchAction({type:Cp,from:this.uid,seriesId:this.seriesModel.id,targetNode:t})},e.prototype.containPoint=function(t,e){var n=e.getData().getItemLayout(0);if(n){var i=t[0]-n.cx,r=t[1]-n.cy,o=Math.sqrt(i*i+r*r);return o<=n.r&&o>=n.r0}},e.type="sunburst",e}(xe.A);const kp=Ep;function Lp(t){var e=0;_.each(t.children,(function(t){Lp(t);var n=t.value;_.isArray(n)&&(n=n[0]),e+=n}));var n=t.value;_.isArray(n)&&(n=n[0]),(null==n||isNaN(n))&&(n=e),n<0&&(n=0),_.isArray(t.value)?t.value[0]=n:t.value=n}const Dp=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n.ignoreStyleOnData=!0,n}return(0,Bt.C6)(e,t),e.prototype.getInitialData=function(t,e){var n={name:t.name,children:t.data};Lp(n);var i=this._levelModels=_.map(t.levels||[],(function(t){return new Gi.A(t,this,e)}),this),r=ts.createTree(n,this,(function(t){t.wrapMethod("getItemModel",(function(t,e){var n=r.getNodeByDataIndex(e),o=i[n.depth];return o&&(t.parentModel=o),t}))}));return r.data},e.prototype.optionUpdated=function(){this.resetViewRoot()},e.prototype.getDataParams=function(e){var n=t.prototype.getDataParams.apply(this,arguments),i=this.getData().tree.getNodeByDataIndex(e);return n.treePathInfo=rs(i,this),n},e.prototype.getLevelModel=function(t){return this._levelModels&&this._levelModels[t.depth]},e.prototype.getViewRoot=function(){return this._viewRoot},e.prototype.resetViewRoot=function(t){t?this._viewRoot=t:t=this._viewRoot;var e=this.getRawData().tree.root;t&&(t===e||e.contains(t))||(this._viewRoot=e)},e.prototype.enableAriaDecal=function(){ds(this)},e.type="series.sunburst",e.defaultOption={z:2,center:["50%","50%"],radius:[0,"75%"],clockwise:!0,startAngle:90,minAngle:0,stillShowZeroSum:!0,nodeClick:"rootToNode",renderLabelForZeroData:!1,label:{rotate:"radial",show:!0,opacity:1,align:"center",position:"inside",distance:5,silent:!0},itemStyle:{borderWidth:1,borderColor:"white",borderType:"solid",shadowBlur:0,shadowColor:"rgba(0, 0, 0, 0.2)",shadowOffsetX:0,shadowOffsetY:0,opacity:1},emphasis:{focus:"descendant"},blur:{itemStyle:{opacity:.2},label:{opacity:.1}},animationType:"expansion",animationDuration:1e3,animationDurationUpdate:500,data:[],sort:"desc"},e}(Gt.A);var Pp=Math.PI/180;function Rp(t,e,n){e.eachSeriesByType(t,(function(t){var e=t.get("center"),i=t.get("radius");_.isArray(i)||(i=[0,i]),_.isArray(e)||(e=[e,e]);var r=n.getWidth(),o=n.getHeight(),a=Math.min(r,o),s=(0,Se.lo)(e[0],r),l=(0,Se.lo)(e[1],o),h=(0,Se.lo)(i[0],a/2),c=(0,Se.lo)(i[1],a/2),u=-t.get("startAngle")*Pp,d=t.get("minAngle")*Pp,p=t.getData().tree.root,f=t.getViewRoot(),g=f.depth,m=t.get("sort");null!=m&&Op(f,m);var v=0;_.each(f.children,(function(t){!isNaN(t.getValue())&&v++}));var y=f.getValue(),x=Math.PI/(y||v)*2,b=f.depth>0,w=f.height-(b?-1:1),S=(c-h)/(w||1),T=t.get("clockwise"),M=t.get("stillShowZeroSum"),A=T?1:-1,C=function(e,n){if(e){var i=n;if(e!==p){var r=e.getValue(),o=0===y&&M?x:r*x;o<d&&(o=d),i=n+A*o;var c=e.depth-g-(b?-1:1),u=h+S*c,f=h+S*(c+1),m=t.getLevelModel(e);if(m){var v=m.get("r0",!0),w=m.get("r",!0),I=m.get("radius",!0);null!=I&&(v=I[0],w=I[1]),null!=v&&(u=(0,Se.lo)(v,a/2)),null!=w&&(f=(0,Se.lo)(w,a/2))}e.setLayout({angle:o,startAngle:n,endAngle:i,clockwise:T,cx:s,cy:l,r0:u,r:f})}if(e.children&&e.children.length){var E=0;_.each(e.children,(function(t){E+=C(t,n+E)}))}return i-n}};if(b){var I=h,E=h+S,k=2*Math.PI;p.setLayout({angle:k,startAngle:u,endAngle:u+k,clockwise:T,cx:s,cy:l,r0:I,r:E})}C(f,u)}))}function Op(t,e){var n=t.children||[];t.children=function(t,e){if(_.isFunction(e)){var n=_.map(t,(function(t,e){var n=t.getValue();return{params:{depth:t.depth,height:t.height,dataIndex:t.dataIndex,getValue:function(){return n}},index:e}}));return n.sort((function(t,n){return e(t.params,n.params)})),_.map(n,(function(e){return t[e.index]}))}var i="asc"===e;return t.sort((function(t,e){var n=(t.getValue()-e.getValue())*(i?1:-1);return 0===n?(t.dataIndex-e.dataIndex)*(i?-1:1):n}))}(n,e),n.length&&_.each(t.children,(function(t){Op(t,e)}))}function Np(t){var e={};t.eachSeriesByType("sunburst",(function(t){var n=t.getData(),i=n.tree;i.eachNode((function(r){var o=r.getModel().getModel("itemStyle").getItemStyle();o.fill||(o.fill=function(t,n,i){for(var r=t;r&&r.depth>1;)r=r.parentNode;var o=n.getColorFromPalette(r.name||r.dataIndex+"",e);return t.depth>1&&(0,_.isString)(o)&&(o=(0,K.lift)(o,(t.depth-1)/(i-1)*.5)),o}(r,t,i.root.height));var a=n.ensureUniqueItemVisual(r.dataIndex,"style");(0,_.extend)(a,o)}))}))}var Fp={color:"fill",borderColor:"stroke"},Bp={symbol:1,symbolSize:1,symbolKeepAspect:1,legendIcon:1,visualMeta:1,liftZ:1,decal:1},zp=(0,ce.$r)();const Gp=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return(0,Bt.C6)(e,t),e.prototype.optionUpdated=function(){this.currentZLevel=this.get("zlevel",!0),this.currentZ=this.get("z",!0)},e.prototype.getInitialData=function(t,e){return(0,zt.A)(null,this)},e.prototype.getDataParams=function(e,n,i){var r=t.prototype.getDataParams.call(this,e,n);return i&&(r.info=zp(i).info),r},e.type="series.custom",e.dependencies=["grid","polar","geo","singleAxis","calendar"],e.defaultOption={coordinateSystem:"cartesian2d",z:2,legendHoverLink:!0,clip:!1},e}(Gt.A);function Vp(t,e){return e=e||[0,0],_.map(["x","y"],(function(n,i){var r=this.getAxis(n),o=e[i],a=t[i]/2;return"category"===r.type?r.getBandWidth():Math.abs(r.dataToCoord(o-a)-r.dataToCoord(o+a))}),this)}function jp(t,e){return e=e||[0,0],_.map([0,1],(function(n){var i=e[n],r=t[n]/2,o=[],a=[];return o[n]=i-r,a[n]=i+r,o[1-n]=a[1-n]=e[1-n],Math.abs(this.dataToPoint(o)[n]-this.dataToPoint(a)[n])}),this)}function Hp(t,e){var n=this.getAxis(),i=e instanceof Array?e[0]:e,r=(t instanceof Array?t[0]:t)/2;return"category"===n.type?n.getBandWidth():Math.abs(n.dataToCoord(i-r)-n.dataToCoord(i+r))}function Wp(t,e){return e=e||[0,0],_.map(["Radius","Angle"],(function(n,i){var r=this["get"+n+"Axis"](),o=e[i],a=t[i]/2,s="category"===r.type?r.getBandWidth():Math.abs(r.dataToCoord(o-a)-r.dataToCoord(o+a));return"Angle"===n&&(s=s*Math.PI/180),s}),this)}function Up(t,e,n,i){return t&&(t.legacy||!1!==t.legacy&&!n&&!i&&"tspan"!==e&&("text"===e||(0,_.hasOwn)(t,"text")))}function qp(t,e,n){var i,r,o,a=t;if("text"===e)o=a;else{o={},(0,_.hasOwn)(a,"text")&&(o.text=a.text),(0,_.hasOwn)(a,"rich")&&(o.rich=a.rich),(0,_.hasOwn)(a,"textFill")&&(o.fill=a.textFill),(0,_.hasOwn)(a,"textStroke")&&(o.stroke=a.textStroke),(0,_.hasOwn)(a,"fontFamily")&&(o.fontFamily=a.fontFamily),(0,_.hasOwn)(a,"fontSize")&&(o.fontSize=a.fontSize),(0,_.hasOwn)(a,"fontStyle")&&(o.fontStyle=a.fontStyle),(0,_.hasOwn)(a,"fontWeight")&&(o.fontWeight=a.fontWeight),r={type:"text",style:o,silent:!0},i={};var s=(0,_.hasOwn)(a,"textPosition");n?i.position=s?a.textPosition:"inside":s&&(i.position=a.textPosition),(0,_.hasOwn)(a,"textPosition")&&(i.position=a.textPosition),(0,_.hasOwn)(a,"textOffset")&&(i.offset=a.textOffset),(0,_.hasOwn)(a,"textRotation")&&(i.rotation=a.textRotation),(0,_.hasOwn)(a,"textDistance")&&(i.distance=a.textDistance)}return Xp(o,t),(0,_.each)(o.rich,(function(t){Xp(t,t)})),{textConfig:i,textContent:r}}function Xp(t,e){e&&(e.font=e.textFont||e.font,(0,_.hasOwn)(e,"textStrokeWidth")&&(t.lineWidth=e.textStrokeWidth),(0,_.hasOwn)(e,"textAlign")&&(t.align=e.textAlign),(0,_.hasOwn)(e,"textVerticalAlign")&&(t.verticalAlign=e.textVerticalAlign),(0,_.hasOwn)(e,"textLineHeight")&&(t.lineHeight=e.textLineHeight),(0,_.hasOwn)(e,"textWidth")&&(t.width=e.textWidth),(0,_.hasOwn)(e,"textHeight")&&(t.height=e.textHeight),(0,_.hasOwn)(e,"textBackgroundColor")&&(t.backgroundColor=e.textBackgroundColor),(0,_.hasOwn)(e,"textPadding")&&(t.padding=e.textPadding),(0,_.hasOwn)(e,"textBorderColor")&&(t.borderColor=e.textBorderColor),(0,_.hasOwn)(e,"textBorderWidth")&&(t.borderWidth=e.textBorderWidth),(0,_.hasOwn)(e,"textBorderRadius")&&(t.borderRadius=e.textBorderRadius),(0,_.hasOwn)(e,"textBoxShadowColor")&&(t.shadowColor=e.textBoxShadowColor),(0,_.hasOwn)(e,"textBoxShadowBlur")&&(t.shadowBlur=e.textBoxShadowBlur),(0,_.hasOwn)(e,"textBoxShadowOffsetX")&&(t.shadowOffsetX=e.textBoxShadowOffsetX),(0,_.hasOwn)(e,"textBoxShadowOffsetY")&&(t.shadowOffsetY=e.textBoxShadowOffsetY))}function Yp(t,e,n){var i=t;i.textPosition=i.textPosition||n.position||"inside",null!=n.offset&&(i.textOffset=n.offset),null!=n.rotation&&(i.textRotation=n.rotation),null!=n.distance&&(i.textDistance=n.distance);var r=i.textPosition.indexOf("inside")>=0,o=t.fill||"#000";Zp(i,e);var a=null==i.textFill;return r?a&&(i.textFill=n.insideFill||"#fff",!i.textStroke&&n.insideStroke&&(i.textStroke=n.insideStroke),!i.textStroke&&(i.textStroke=o),null==i.textStrokeWidth&&(i.textStrokeWidth=2)):(a&&(i.textFill=t.fill||n.outsideFill||"#000"),!i.textStroke&&n.outsideStroke&&(i.textStroke=n.outsideStroke)),i.text=e.text,i.rich=e.rich,(0,_.each)(e.rich,(function(t){Zp(t,t)})),i}function Zp(t,e){e&&((0,_.hasOwn)(e,"fill")&&(t.textFill=e.fill),(0,_.hasOwn)(e,"stroke")&&(t.textStroke=e.fill),(0,_.hasOwn)(e,"lineWidth")&&(t.textStrokeWidth=e.lineWidth),(0,_.hasOwn)(e,"font")&&(t.font=e.font),(0,_.hasOwn)(e,"fontStyle")&&(t.fontStyle=e.fontStyle),(0,_.hasOwn)(e,"fontWeight")&&(t.fontWeight=e.fontWeight),(0,_.hasOwn)(e,"fontSize")&&(t.fontSize=e.fontSize),(0,_.hasOwn)(e,"fontFamily")&&(t.fontFamily=e.fontFamily),(0,_.hasOwn)(e,"align")&&(t.textAlign=e.align),(0,_.hasOwn)(e,"verticalAlign")&&(t.textVerticalAlign=e.verticalAlign),(0,_.hasOwn)(e,"lineHeight")&&(t.textLineHeight=e.lineHeight),(0,_.hasOwn)(e,"width")&&(t.textWidth=e.width),(0,_.hasOwn)(e,"height")&&(t.textHeight=e.height),(0,_.hasOwn)(e,"backgroundColor")&&(t.textBackgroundColor=e.backgroundColor),(0,_.hasOwn)(e,"padding")&&(t.textPadding=e.padding),(0,_.hasOwn)(e,"borderColor")&&(t.textBorderColor=e.borderColor),(0,_.hasOwn)(e,"borderWidth")&&(t.textBorderWidth=e.borderWidth),(0,_.hasOwn)(e,"borderRadius")&&(t.textBorderRadius=e.borderRadius),(0,_.hasOwn)(e,"shadowColor")&&(t.textBoxShadowColor=e.shadowColor),(0,_.hasOwn)(e,"shadowBlur")&&(t.textBoxShadowBlur=e.shadowBlur),(0,_.hasOwn)(e,"shadowOffsetX")&&(t.textBoxShadowOffsetX=e.shadowOffsetX),(0,_.hasOwn)(e,"shadowOffsetY")&&(t.textBoxShadowOffsetY=e.shadowOffsetY),(0,_.hasOwn)(e,"textShadowColor")&&(t.textShadowColor=e.textShadowColor),(0,_.hasOwn)(e,"textShadowBlur")&&(t.textShadowBlur=e.textShadowBlur),(0,_.hasOwn)(e,"textShadowOffsetX")&&(t.textShadowOffsetX=e.textShadowOffsetX),(0,_.hasOwn)(e,"textShadowOffsetY")&&(t.textShadowOffsetY=e.textShadowOffsetY))}var $p=n(8854),Kp={position:["x","y"],scale:["scaleX","scaleY"],origin:["originX","originY"]},Jp=(0,_.keys)(Kp),Qp=((0,_.reduce)(O.Wx,(function(t,e){return t[e]=1,t}),{}),O.Wx.join(", "),["","style","shape","extra"]),tf=(0,ce.$r)();function ef(t,e,n,i,r){var o=t+"Animation",a=(0,Ut.Jw)(t,i,r)||{},s=tf(e).userDuring;return a.duration>0&&(a.during=s?(0,_.bind)(hf,{el:e,userDuring:s}):null,a.setToFinal=!0,a.scope=t),(0,_.extend)(a,n[o]),a}function nf(t,e,n,i){var r=(i=i||{}).dataIndex,o=i.isInit,a=i.clearStyle,l=n.isAnimationEnabled(),h=tf(t),c=e.style;h.userDuring=e.during;var u={},d={};if(function(t,e,n){for(var i=0;i<Jp.length;i++){var r=Jp[i],o=Kp[r],a=e[r];a&&(n[o[0]]=a[0],n[o[1]]=a[1])}for(i=0;i<O.Wx.length;i++){var s=O.Wx[i];null!=e[s]&&(n[s]=e[s])}}(0,e,d),uf("shape",e,d),uf("extra",e,d),!o&&l&&(function(t,e,n){for(var i=e.transition,r=af(i)?O.Wx:(0,ce.qB)(i||[]),o=0;o<r.length;o++){var a=r[o];if("style"!==a&&"shape"!==a&&"extra"!==a){var s=t[a];0,n[a]=s}}}(t,e,u),cf("shape",t,e,u),cf("extra",t,e,u),function(t,e,n,i){if(!n)return;var r,o=t.style;if(o){var a=n.transition,s=e.transition;if(a&&!af(a)){var l=(0,ce.qB)(a);!r&&(r=i.style={});for(var h=0;h<l.length;h++){var c=o[f=l[h]];r[f]=c}}else if(t.getAnimationStyleProps&&(af(s)||af(a)||(0,_.indexOf)(s,"style")>=0)){var u=t.getAnimationStyleProps(),d=u?u.style:null;if(d){!r&&(r=i.style={});var p=(0,_.keys)(n);for(h=0;h<p.length;h++){var f;if(d[f=p[h]]){c=o[f];r[f]=c}}}}}}(t,e,c,u)),d.style=c,function(t,e,n){var i=e.style;if(!t.isGroup&&i){if(n){t.useStyle({});for(var r=t.animators,o=0;o<r.length;o++){var a=r[o];"style"===a.targetName&&a.changeTarget(t.style)}}t.setStyle(i)}e&&(e.style=null,e&&t.attr(e),e.style=i)}(t,d,a),function(t,e){(0,_.hasOwn)(e,"silent")&&(t.silent=e.silent),(0,_.hasOwn)(e,"ignore")&&(t.ignore=e.ignore),t instanceof Vo.Ay&&(0,_.hasOwn)(e,"invisible")&&(t.invisible=e.invisible);t instanceof s.Ay&&(0,_.hasOwn)(e,"autoBatch")&&(t.autoBatch=e.autoBatch)}(t,e),l)if(o){var p={};(0,_.each)(Qp,(function(t){var n=t?e[t]:e;n&&n.enterFrom&&(t&&(p[t]=p[t]||{}),(0,_.extend)(t?p[t]:p,n.enterFrom))}));var f=ef("enter",t,e,n,r);f.duration>0&&t.animateFrom(p,f)}else!function(t,e,n,i,r){if(r){var o=ef("update",t,e,i,n);o.duration>0&&t.animateFrom(r,o)}}(t,e,r||0,n,u);rf(t,e),c?t.dirty():t.markRedraw()}function rf(t,e){for(var n=tf(t).leaveToProps,i=0;i<Qp.length;i++){var r=Qp[i],o=r?e[r]:e;o&&o.leaveTo&&(n||(n=tf(t).leaveToProps={}),r&&(n[r]=n[r]||{}),(0,_.extend)(r?n[r]:n,o.leaveTo))}}function of(t,e,n,i){if(t){var r=t.parent,o=tf(t).leaveToProps;if(o){var a=ef("update",t,e,n,0);a.done=function(){r.remove(t),i&&i()},t.animateTo(o,a)}else r.remove(t),i&&i()}}function af(t){return"all"===t}var sf={},lf={setTransform:function(t,e){return sf.el[t]=e,this},getTransform:function(t){return sf.el[t]},setShape:function(t,e){var n=sf.el;return(n.shape||(n.shape={}))[t]=e,n.dirtyShape&&n.dirtyShape(),this},getShape:function(t){var e=sf.el.shape;if(e)return e[t]},setStyle:function(t,e){var n=sf.el,i=n.style;return i&&(i[t]=e,n.dirtyStyle&&n.dirtyStyle()),this},getStyle:function(t){var e=sf.el.style;if(e)return e[t]},setExtra:function(t,e){return(sf.el.extra||(sf.el.extra={}))[t]=e,this},getExtra:function(t){var e=sf.el.extra;if(e)return e[t]}};function hf(){var t=this,e=t.el;if(e){var n=tf(e).userDuring,i=t.userDuring;n===i?(sf.el=e,i(lf)):t.el=t.userDuring=null}}function cf(t,e,n,i){var r=n[t];if(r){var o,a=e[t];if(a){var s=n.transition,l=r.transition;if(l)if(!o&&(o=i[t]={}),af(l))(0,_.extend)(o,a);else for(var h=(0,ce.qB)(l),c=0;c<h.length;c++){var u=a[p=h[c]];o[p]=u}else if(af(s)||(0,_.indexOf)(s,t)>=0){!o&&(o=i[t]={});var d=(0,_.keys)(a);for(c=0;c<d.length;c++){var p;u=a[p=d[c]];df(r[p],u)&&(o[p]=u)}}}}}function uf(t,e,n){var i=e[t];if(i)for(var r=n[t]={},o=(0,_.keys)(i),a=0;a<o.length;a++){var s=o[a];r[s]=(0,$p.F)(i[s])}}function df(t,e){return(0,_.isArrayLike)(t)?t!==e:null!=t&&isFinite(t)}var pf=(0,ce.$r)(),ff=["percent","easing","shape","style","extra"];function gf(t){t.stopAnimation("keyframe"),t.attr(pf(t))}function mf(t,e,n){if(n.isAnimationEnabled()&&e)if((0,_.isArray)(e))(0,_.each)(e,(function(e){mf(t,e,n)}));else{var i=e.keyframes,r=e.duration;if(n&&null==r){var o=(0,Ut.Jw)("enter",n,0);r=o&&o.duration}if(i&&r){var a=pf(t);(0,_.each)(Qp,(function(n){if(!n||t[n]){var o;i.sort((function(t,e){return t.percent-e.percent})),(0,_.each)(i,(function(i){var s=t.animators,l=n?i[n]:i;if(l){var h=(0,_.keys)(l);if(n||(h=(0,_.filter)(h,(function(t){return(0,_.indexOf)(ff,t)<0}))),h.length){o||((o=t.animate(n,e.loop,!0)).scope="keyframe");for(var c=0;c<s.length;c++)s[c]!==o&&s[c].targetName===o.targetName&&s[c].stopTracks(h);n&&(a[n]=a[n]||{});var u=n?a[n]:a;(0,_.each)(h,(function(e){u[e]=((n?t[n]:t)||{})[e]})),o.whenWithKeys(r*i.percent,l,h,i.easing)}}})),o&&o.delay(e.delay||0).duration(r).start(e.easing)}}))}}}var vf="emphasis",yf="normal",_f="blur",xf="select",bf=[yf,vf,_f,xf],wf={normal:["itemStyle"],emphasis:[vf,"itemStyle"],blur:[_f,"itemStyle"],select:[xf,"itemStyle"]},Sf={normal:["label"],emphasis:[vf,"label"],blur:[_f,"label"],select:[xf,"label"]},Tf=["x","y"],Mf={normal:{},emphasis:{},blur:{},select:{}},Af={cartesian2d:function(t){var e=t.master.getRect();return{coordSys:{type:"cartesian2d",x:e.x,y:e.y,width:e.width,height:e.height},api:{coord:function(e){return t.dataToPoint(e)},size:_.bind(Vp,t)}}},geo:function(t){var e=t.getBoundingRect();return{coordSys:{type:"geo",x:e.x,y:e.y,width:e.width,height:e.height,zoom:t.getZoom()},api:{coord:function(e){return t.dataToPoint(e)},size:_.bind(jp,t)}}},single:function(t){var e=t.getRect();return{coordSys:{type:"singleAxis",x:e.x,y:e.y,width:e.width,height:e.height},api:{coord:function(e){return t.dataToPoint(e)},size:(0,_.bind)(Hp,t)}}},polar:function(t){var e=t.getRadiusAxis(),n=t.getAngleAxis(),i=e.getExtent();return i[0]>i[1]&&i.reverse(),{coordSys:{type:"polar",cx:t.cx,cy:t.cy,r:i[1],r0:i[0]},api:{coord:function(i){var r=e.dataToRadius(i[0]),o=n.dataToAngle(i[1]),a=t.coordToPoint([r,o]);return a.push(r,o*Math.PI/180),a},size:_.bind(Wp,t)}}},calendar:function(t){var e=t.getRect(),n=t.getRangeInfo();return{coordSys:{type:"calendar",x:e.x,y:e.y,width:e.width,height:e.height,cellWidth:t.getCellWidth(),cellHeight:t.getCellHeight(),rangeInfo:{start:n.start,end:n.end,weeks:n.weeks,dayCount:n.allDay}},api:{coord:function(e,n){return t.dataToPoint(e,n)}}}}};function Cf(t){return t instanceof s.Ay}function If(t){return t instanceof Vo.Ay}const Ef=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return(0,Bt.C6)(e,t),e.prototype.render=function(t,e,n,i){this._progressiveEls=null;var r=this._data,o=t.getData(),a=this.group,s=Rf(t,o,e,n);r||a.removeAll(),o.diff(r).add((function(e){Nf(n,null,e,s(e,i),t,a,o)})).remove((function(e){var n=r.getItemGraphicEl(e);n&&of(n,zp(n).option,t)})).update((function(e,l){var h=r.getItemGraphicEl(l);Nf(n,h,e,s(e,i),t,a,o)})).execute();var l=t.get("clip",!0)?Ae(t.coordinateSystem,!1,t):null;l?a.setClipPath(l):a.removeClipPath(),this._data=o},e.prototype.incrementalPrepareRender=function(t,e,n){this.group.removeAll(),this._data=null},e.prototype.incrementalRender=function(t,e,n,i,r){var o=e.getData(),a=Rf(e,o,n,i),s=this._progressiveEls=[];function l(t){t.isGroup||(t.incremental=!0,t.ensureState("emphasis").hoverLayer=!0)}for(var h=t.start;h<t.end;h++){var c=Nf(null,null,h,a(h,r),e,this.group,o);c&&(c.traverse(l),s.push(c))}},e.prototype.eachRendered=function(t){qt.traverseElements(this._progressiveEls||this.group,t)},e.prototype.filterForExposedEvent=function(t,e,n,i){var r=e.element;if(null==r||n.name===r)return!0;for(;(n=n.__hostTarget||n.parent)&&n!==this.group;)if(n.name===r)return!0;return!1},e.type="custom",e}(xe.A);function kf(t){var e,n=t.type;if("path"===n){var i=t.shape,r=null!=i.width&&null!=i.height?{x:i.x||0,y:i.y||0,width:i.width,height:i.height}:null,o=qf(i);e=qt.makePath(o,null,r,i.layout||"center"),zp(e).customPathData=o}else if("image"===n)e=new l.Ay({}),zp(e).customImagePath=t.style.image;else if("text"===n)e=new Z.Ay({});else if("group"===n)e=new jt.A;else{if("compoundPath"===n)throw new Error('"compoundPath" is not supported yet.');var a=qt.getShapeClass(n);if(!a){0,(0,Wu.$8)("")}e=new a}return zp(e).customGraphicType=n,e.name=t.name,e.z2EmphasisLift=1,e.z2SelectLift=1,e}function Lf(t,e,n,i,r,o,a){gf(e);var s=r&&r.normal.cfg;s&&e.setTextConfig(s),i&&null==i.transition&&(i.transition=Tf);var l=i&&i.style;if(l){if("text"===e.type){var h=l;(0,_.hasOwn)(h,"textFill")&&(h.fill=h.textFill),(0,_.hasOwn)(h,"textStroke")&&(h.stroke=h.textStroke)}var c=void 0,u=Cf(e)?l.decal:null;t&&u&&(u.dirty=!0,c=(0,Go.w)(u,t)),l.__decalPattern=c}If(e)&&(l&&(c=l.__decalPattern)&&(l.decal=c));nf(e,i,o,{dataIndex:n,isInit:a,clearStyle:!0}),mf(e,i.keyframeAnimation,o)}function Df(t,e,n,i,r){var o=e.isGroup?null:e,a=r&&r[t].cfg;if(o){var s=o.ensureState(t);if(!1===i){var l=o.getState(t);l&&(l.style=null)}else s.style=i||null;a&&(s.textConfig=a),(0,Yt.DW)(o)}}function Pf(t,e,n){var i=n===yf,r=i?e:Gf(e,n),o=r?r.z2:null;null!=o&&((i?t:t.ensureState(n)).z2=o||0)}function Rf(t,e,n,i){var r=t.get("renderItem"),o=t.coordinateSystem,a={};o&&(a=o.prepareCustoms?o.prepareCustoms(o):Af[o.type](o));for(var s,l,h=(0,_.defaults)({getWidth:i.getWidth,getHeight:i.getHeight,getZr:i.getZr,getDevicePixelRatio:i.getDevicePixelRatio,value:function(t,n){return null==n&&(n=s),e.getStore().get(e.getDimensionIndex(t||0),n)},style:function(n,i){0;null==i&&(i=s);var r=e.getItemVisual(i,"style"),o=r&&r.fill,a=r&&r.opacity,l=y(i,yf).getItemStyle();null!=o&&(l.fill=o),null!=a&&(l.opacity=a);var h={inheritColor:(0,_.isString)(o)?o:"#000"},c=x(i,yf),u=Jt.VB(c,null,h,!1,!0);u.text=c.getShallow("show")?(0,_.retrieve2)(t.getFormattedLabel(i,yf),$t(e,i)):null;var d=Jt.sD(c,h,!1);return w(n,l),l=Yp(l,u,d),n&&b(l,n),l.legacy=!0,l},ordinalRawValue:function(t,n){null==n&&(n=s),t=t||0;var i=e.getDimensionInfo(t);if(!i){var r=e.getDimensionIndex(t);return r>=0?e.getStore().get(r,n):void 0}var o=e.get(i.name,n),a=i&&i.ordinalMeta;return a?a.categories[o]:o},styleEmphasis:function(n,i){0;null==i&&(i=s);var r=y(i,vf).getItemStyle(),o=x(i,vf),a=Jt.VB(o,null,null,!0,!0);a.text=o.getShallow("show")?(0,_.retrieve3)(t.getFormattedLabel(i,vf),t.getFormattedLabel(i,yf),$t(e,i)):null;var l=Jt.sD(o,null,!0);return w(n,r),r=Yp(r,a,l),n&&b(r,n),r.legacy=!0,r},visual:function(t,n){if(null==n&&(n=s),(0,_.hasOwn)(Fp,t)){var i=e.getItemVisual(n,"style");return i?i[Fp[t]]:null}if((0,_.hasOwn)(Bp,t))return e.getItemVisual(n,t)},barLayout:function(t){if("cartesian2d"===o.type){var e=o.getBaseAxis();return(0,qe.DL)((0,_.defaults)({axis:e},t))}},currentSeriesIndices:function(){return n.getCurrentSeriesIndices()},font:function(t){return Jt.c8(t,n)}},a.api||{}),c={context:{},seriesId:t.id,seriesName:t.name,seriesIndex:t.seriesIndex,coordSys:a.coordSys,dataInsideLength:e.count(),encode:Of(t.getData())},u={},d={},p={},f={},g=0;g<bf.length;g++){var m=bf[g];p[m]=t.getModel(wf[m]),f[m]=t.getModel(Sf[m])}function v(t){return t===s?l||(l=e.getItemModel(t)):e.getItemModel(t)}function y(t,n){return e.hasItemOption?t===s?u[n]||(u[n]=v(t).getModel(wf[n])):v(t).getModel(wf[n]):p[n]}function x(t,n){return e.hasItemOption?t===s?d[n]||(d[n]=v(t).getModel(Sf[n])):v(t).getModel(Sf[n]):f[n]}return function(t,n){return s=t,l=null,u={},d={},r&&r((0,_.defaults)({dataIndexInside:t,dataIndex:e.getRawIndex(t),actionType:n?n.type:null},c),h)};function b(t,e){for(var n in e)(0,_.hasOwn)(e,n)&&(t[n]=e[n])}function w(t,e){t&&(t.textFill&&(e.textFill=t.textFill),t.textPosition&&(e.textPosition=t.textPosition))}}function Of(t){var e={};return(0,_.each)(t.dimensions,(function(n){var i=t.getDimensionInfo(n);if(!i.isExtraCoord){var r=i.coordDim;(e[r]=e[r]||[])[i.coordDimIndex]=t.getDimensionIndex(n)}})),e}function Nf(t,e,n,i,r,o,a){if(i){var s=Ff(t,e,n,i,r,o);return s&&a.setItemGraphicEl(n,s),s&&(0,Yt.Lm)(s,i.focus,i.blurScope,i.emphasisDisabled),s}o.remove(e)}function Ff(t,e,n,i,r,o){var a=-1,s=e;e&&Bf(e,i,r)&&(a=(0,_.indexOf)(o.childrenRef(),e),e=null);var l,h,c=!e,u=e;u?u.clearStates():(u=kf(i),s&&(l=s,(h=u).copyTransform(l),If(h)&&If(l)&&(h.setStyle(l.style),h.z=l.z,h.z2=l.z2,h.zlevel=l.zlevel,h.invisible=l.invisible,h.ignore=l.ignore,Cf(h)&&Cf(l)&&h.setShape(l.shape)))),!1===i.morph?u.disableMorphing=!0:u.disableMorphing&&(u.disableMorphing=!1),Mf.normal.cfg=Mf.normal.conOpt=Mf.emphasis.cfg=Mf.emphasis.conOpt=Mf.blur.cfg=Mf.blur.conOpt=Mf.select.cfg=Mf.select.conOpt=null,Mf.isLegacy=!1,function(t,e,n,i,r,o){if(t.isGroup)return;zf(n,null,o),zf(n,vf,o);var a=o.normal.conOpt,s=o.emphasis.conOpt,l=o.blur.conOpt,h=o.select.conOpt;if(null!=a||null!=s||null!=h||null!=l){var c=t.getTextContent();if(!1===a)c&&t.removeTextContent();else{a=o.normal.conOpt=a||{type:"text"},c?c.clearStates():(c=kf(a),t.setTextContent(c)),Lf(null,c,e,a,null,i,r);for(var u=a&&a.style,d=0;d<bf.length;d++){var p=bf[d];if(p!==yf){var f=o[p].conOpt;Df(p,c,0,Vf(a,f,p),null)}}u?c.dirty():c.markRedraw()}}}(u,n,i,r,c,Mf),function(t,e,n,i,r){var o=n.clipPath;if(!1===o)t&&t.getClipPath()&&t.removeClipPath();else if(o){var a=t.getClipPath();a&&Bf(a,o,i)&&(a=null),a||(a=kf(o),t.setClipPath(a)),Lf(null,a,e,o,null,i,r)}}(u,n,i,r,c),Lf(t,u,n,i,Mf,r,c),(0,_.hasOwn)(i,"info")&&(zp(u).info=i.info);for(var d=0;d<bf.length;d++){var p=bf[d];if(p!==yf){var f=Gf(i,p);Df(p,u,0,Vf(i,f,p),Mf)}}return function(t,e,n){if(!t.isGroup){var i=t,r=n.currentZ,o=n.currentZLevel;i.z=r,i.zlevel=o;var a=e.z2;null!=a&&(i.z2=a||0);for(var s=0;s<bf.length;s++)Pf(i,e,bf[s])}}(u,i,r),"group"===i.type&&function(t,e,n,i,r){var o=i.children,a=o?o.length:0,s=i.$mergeChildren,l="byName"===s||i.diffChildrenByName,h=!1===s;if(!a&&!l&&!h)return;if(l)return c={api:t,oldChildren:e.children()||[],newChildren:o||[],dataIndex:n,seriesModel:r,group:e},void new gs.A(c.oldChildren,c.newChildren,Hf,Hf,c).add(Wf).update(Wf).remove(Uf).execute();var c;h&&e.removeAll();for(var u=0;u<a;u++){var d=o[u],p=e.childAt(u);d?(null==d.ignore&&(d.ignore=!1),Ff(t,p,n,d,r,e)):p.ignore=!0}for(var f=e.childCount()-1;f>=u;f--){var g=e.childAt(f);jf(e,g,r)}}(t,u,n,i,r),a>=0?o.replaceAt(u,a):o.add(u),u}function Bf(t,e,n){var i,r=zp(t),o=e.type,a=e.shape,s=e.style;return n.isUniversalTransitionEnabled()||null!=o&&o!==r.customGraphicType||"path"===o&&((i=a)&&((0,_.hasOwn)(i,"pathData")||(0,_.hasOwn)(i,"d")))&&qf(a)!==r.customPathData||"image"===o&&(0,_.hasOwn)(s,"image")&&s.image!==r.customImagePath}function zf(t,e,n){var i=e?Gf(t,e):t,r=e?Vf(t,i,vf):t.style,o=t.type,a=i?i.textConfig:null,s=t.textContent,l=s?e?Gf(s,e):s:null;if(r&&(n.isLegacy||Up(r,o,!!a,!!l))){n.isLegacy=!0;var h=qp(r,o,!e);!a&&h.textConfig&&(a=h.textConfig),!l&&h.textContent&&(l=h.textContent)}if(!e&&l){var c=l;!c.type&&(c.type="text")}var u=e?n[e]:n.normal;u.cfg=a,u.conOpt=l}function Gf(t,e){return e?t?t[e]:null:t}function Vf(t,e,n){var i=e&&e.style;return null==i&&n===vf&&t&&(i=t.styleEmphasis),i}function jf(t,e,n){e&&of(e,zp(t).option,n)}function Hf(t,e){var n=t&&t.name;return null!=n?n:"e\0\0"+e}function Wf(t,e){var n=this.context,i=null!=t?n.newChildren[t]:null,r=null!=e?n.oldChildren[e]:null;Ff(n.api,r,n.dataIndex,i,n.seriesModel,n.group)}function Uf(t){var e=this.context,n=e.oldChildren[t];n&&of(n,zp(n).option,e.seriesModel)}function qf(t){return t&&(t.pathData||t.d)}var Xf=(0,ce.$r)(),Yf=_.clone,Zf=_.bind,$f=function(){function t(){this._dragging=!1,this.animationThreshold=15}return t.prototype.render=function(t,e,n,i){var r=e.get("value"),o=e.get("status");if(this._axisModel=t,this._axisPointerModel=e,this._api=n,i||this._lastValue!==r||this._lastStatus!==o){this._lastValue=r,this._lastStatus=o;var a=this._group,s=this._handle;if(!o||"hide"===o)return a&&a.hide(),void(s&&s.hide());a&&a.show(),s&&s.show();var l={};this.makeElOption(l,r,t,e,n);var h=l.graphicKey;h!==this._lastGraphicKey&&this.clear(n),this._lastGraphicKey=h;var c=this._moveAnimation=this.determineAnimation(t,e);if(a){var u=_.curry(Kf,e,c);this.updatePointerEl(a,l,u),this.updateLabelEl(a,l,u,e)}else a=this._group=new jt.A,this.createPointerEl(a,l,t,e),this.createLabelEl(a,l,t,e),n.getZr().add(a);eg(a,e,!0),this._renderHandle(r)}},t.prototype.remove=function(t){this.clear(t)},t.prototype.dispose=function(t){this.clear(t)},t.prototype.determineAnimation=function(t,e){var n=e.get("animation"),i=t.axis,r="category"===i.type,o=e.get("snap");if(!o&&!r)return!1;if("auto"===n||null==n){var a=this.animationThreshold;if(r&&i.getBandWidth()>a)return!0;if(o){var s=Ki(t).seriesDataCount,l=i.getExtent();return Math.abs(l[0]-l[1])/s>a}return!1}return!0===n},t.prototype.makeElOption=function(t,e,n,i,r){},t.prototype.createPointerEl=function(t,e,n,i){var r=e.pointer;if(r){var o=Xf(t).pointerEl=new qt[r.type](Yf(e.pointer));t.add(o)}},t.prototype.createLabelEl=function(t,e,n,i){if(e.label){var r=Xf(t).labelEl=new Z.Ay(Yf(e.label));t.add(r),Qf(r,i)}},t.prototype.updatePointerEl=function(t,e,n){var i=Xf(t).pointerEl;i&&e.pointer&&(i.setStyle(e.pointer.style),n(i,{shape:e.pointer.shape}))},t.prototype.updateLabelEl=function(t,e,n,i){var r=Xf(t).labelEl;r&&(r.setStyle(e.label.style),n(r,{x:e.label.x,y:e.label.y}),Qf(r,i))},t.prototype._renderHandle=function(t){if(!this._dragging&&this.updateHandleTransform){var e,n=this._axisPointerModel,i=this._api.getZr(),r=this._handle,o=n.getModel("handle"),a=n.get("status");if(!o.get("show")||!a||"hide"===a)return r&&i.remove(r),void(this._handle=null);this._handle||(e=!0,r=this._handle=qt.createIcon(o.get("icon"),{cursor:"move",draggable:!0,onmousemove:function(t){Fr.ds(t.event)},onmousedown:Zf(this._onHandleDragMove,this,0,0),drift:Zf(this._onHandleDragMove,this),ondragend:Zf(this._onHandleDragEnd,this)}),i.add(r)),eg(r,n,!1),r.setStyle(o.getItemStyle(null,["color","borderColor","borderWidth","opacity","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY"]));var s=o.get("size");_.isArray(s)||(s=[s,s]),r.scaleX=s[0]/2,r.scaleY=s[1]/2,Ke.N(this,"_doDispatchAxisPointer",o.get("throttle")||0,"fixRate"),this._moveHandleToValue(t,e)}},t.prototype._moveHandleToValue=function(t,e){Kf(this._axisPointerModel,!e&&this._moveAnimation,this._handle,tg(this.getHandleTransform(t,this._axisModel,this._axisPointerModel)))},t.prototype._onHandleDragMove=function(t,e){var n=this._handle;if(n){this._dragging=!0;var i=this.updateHandleTransform(tg(n),[t,e],this._axisModel,this._axisPointerModel);this._payloadInfo=i,n.stopAnimation(),n.attr(tg(i)),Xf(n).lastProp=null,this._doDispatchAxisPointer()}},t.prototype._doDispatchAxisPointer=function(){if(this._handle){var t=this._payloadInfo,e=this._axisModel;this._api.dispatchAction({type:"updateAxisPointer",x:t.cursorPoint[0],y:t.cursorPoint[1],tooltipOption:t.tooltipOption,axesInfo:[{axisDim:e.axis.dim,axisIndex:e.componentIndex}]})}},t.prototype._onHandleDragEnd=function(){if(this._dragging=!1,this._handle){var t=this._axisPointerModel.get("value");this._moveHandleToValue(t),this._api.dispatchAction({type:"hideTip"})}},t.prototype.clear=function(t){this._lastValue=null,this._lastStatus=null;var e=t.getZr(),n=this._group,i=this._handle;e&&n&&(this._lastGraphicKey=null,n&&e.remove(n),i&&e.remove(i),this._group=null,this._handle=null,this._payloadInfo=null),Ke.IU(this,"_doDispatchAxisPointer")},t.prototype.doClear=function(){},t.prototype.buildLabel=function(t,e,n){return{x:t[n=n||0],y:t[1-n],width:e[n],height:e[1-n]}},t}();function Kf(t,e,n,i){Jf(Xf(n).lastProp,i)||(Xf(n).lastProp=i,e?Ut.oi(n,i,t):(n.stopAnimation(),n.attr(i)))}function Jf(t,e){if(_.isObject(t)&&_.isObject(e)){var n=!0;return _.each(e,(function(e,i){n=n&&Jf(t[i],e)})),!!n}return t===e}function Qf(t,e){t[e.get(["label","show"])?"show":"hide"]()}function tg(t){return{x:t.x||0,y:t.y||0,rotation:t.rotation||0}}function eg(t,e,n){var i=e.get("z"),r=e.get("zlevel");t&&t.traverse((function(t){"group"!==t.type&&(null!=i&&(t.z=i),null!=r&&(t.zlevel=r),t.silent=n)}))}const ng=$f;function ig(t){var e,n=t.get("type"),i=t.getModel(n+"Style");return"line"===n?(e=i.getLineStyle()).fill=null:"shadow"===n&&((e=i.getAreaStyle()).stroke=null),e}function rg(t,e,n,i,r){var o=og(n.get("value"),e.axis,e.ecModel,n.get("seriesDataIndices"),{precision:n.get(["label","precision"]),formatter:n.get(["label","formatter"])}),a=n.getModel("label"),s=Ie.QX(a.get("padding")||0),l=a.getFont(),c=h.NO(o,l),u=r.position,d=c.width+s[1]+s[3],p=c.height+s[0]+s[2],f=r.align;"right"===f&&(u[0]-=d),"center"===f&&(u[0]-=d/2);var g=r.verticalAlign;"bottom"===g&&(u[1]-=p),"middle"===g&&(u[1]-=p/2),function(t,e,n,i){var r=i.getWidth(),o=i.getHeight();t[0]=Math.min(t[0]+e,r)-e,t[1]=Math.min(t[1]+n,o)-n,t[0]=Math.max(t[0],0),t[1]=Math.max(t[1],0)}(u,d,p,i);var m=a.get("backgroundColor");m&&"auto"!==m||(m=e.get(["axisLine","lineStyle","color"])),t.label={x:u[0],y:u[1],style:(0,Jt.VB)(a,{text:o,font:l,fill:a.getTextColor(),padding:s,backgroundColor:m}),z2:10}}function og(t,e,n,i,r){t=e.scale.parse(t);var o=e.scale.getLabel({value:t},{precision:r.precision}),a=r.formatter;if(a){var s={value:vi.Dt(e,{value:t}),axisDimension:e.dim,axisIndex:e.index,seriesData:[]};_.each(i,(function(t){var e=n.getSeriesByIndex(t.seriesIndex),i=t.dataIndexInside,r=e&&e.getDataParams(i);r&&s.seriesData.push(r)})),_.isString(a)?o=a.replace("{value}",o):_.isFunction(a)&&(o=a(s))}return o}function ag(t,e,n){var i=_i.create();return _i.rotate(i,i,n.rotation),_i.translate(i,i,n.position),qt.applyTransform([t.dataToCoord(e),(n.labelOffset||0)+(n.labelDirection||1)*(n.labelMargin||0)],i)}function sg(t,e,n,i,r,o){var a=Yi.innerTextLayout(n.rotation,0,n.labelDirection);n.labelMargin=r.get(["label","margin"]),rg(e,i,r,o,{position:ag(i.axis,t,n),align:a.textAlign,verticalAlign:a.textVerticalAlign})}function lg(t,e,n){return{x1:t[n=n||0],y1:t[1-n],x2:e[n],y2:e[1-n]}}function hg(t,e,n){return{x:t[n=n||0],y:t[1-n],width:e[n],height:e[1-n]}}function cg(t,e,n,i,r,o){return{cx:t,cy:e,r0:n,r:i,startAngle:r,endAngle:o,clockwise:!0}}var ug=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return(0,Bt.C6)(e,t),e.prototype.makeElOption=function(t,e,n,i,r){var o=n.axis,a=o.grid,s=i.get("type"),l=dg(a,o).getOtherAxis(o).getGlobalExtent(),h=o.toGlobalCoord(o.dataToCoord(e,!0));if(s&&"none"!==s){var c=ig(i),u=pg[s](o,h,l);u.style=c,t.graphicKey=u.type,t.pointer=u}sg(e,t,Ci(a.model,n),n,i,r)},e.prototype.getHandleTransform=function(t,e,n){var i=Ci(e.axis.grid.model,e,{labelInside:!1});i.labelMargin=n.get(["handle","margin"]);var r=ag(e.axis,t,i);return{x:r[0],y:r[1],rotation:i.rotation+(i.labelDirection<0?Math.PI:0)}},e.prototype.updateHandleTransform=function(t,e,n,i){var r=n.axis,o=r.grid,a=r.getGlobalExtent(!0),s=dg(o,r).getOtherAxis(r).getGlobalExtent(),l="x"===r.dim?0:1,h=[t.x,t.y];h[l]+=e[l],h[l]=Math.min(a[1],h[l]),h[l]=Math.max(a[0],h[l]);var c=(s[1]+s[0])/2,u=[c,c];u[l]=h[l];return{x:h[0],y:h[1],rotation:t.rotation,cursorPoint:u,tooltipOption:[{verticalAlign:"middle"},{align:"center"}][l]}},e}(ng);function dg(t,e){var n={};return n[e.dim+"AxisIndex"]=e.index,t.getCartesian(n)}var pg={line:function(t,e,n){return{type:"Line",subPixelOptimize:!0,shape:lg([e,n[0]],[e,n[1]],fg(t))}},shadow:function(t,e,n){var i=Math.max(1,t.getBandWidth()),r=n[1]-n[0];return{type:"Rect",shape:hg([e-i/2,n[0]],[i,r],fg(t))}}};function fg(t){return"x"===t.dim?0:1}const gg=ug;const mg=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return(0,Bt.C6)(e,t),e.type="axisPointer",e.defaultOption={show:"auto",z:50,type:"line",snap:!1,triggerTooltip:!0,triggerEmphasis:!0,value:null,status:null,link:[],animation:null,animationDurationUpdate:200,lineStyle:{color:"#B9BEC9",width:1,type:"dashed"},shadowStyle:{color:"rgba(210,219,238,0.2)"},label:{show:!0,formatter:null,precision:"auto",margin:3,color:"#fff",padding:[5,7,5,7],backgroundColor:"auto",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:"#333",shadowBlur:3,shadowColor:"#aaa",shadowOffsetX:0,shadowOffsetY:2,throttle:40}},e}(oi.A);var vg=n(4810),yg=(0,ce.$r)(),_g=_.each;function xg(t,e,n){if(!vg.A.node){var i=e.getZr();yg(i).records||(yg(i).records={}),function(t,e){if(yg(t).initialized)return;function n(n,i){t.on(n,(function(n){var r=function(t){var e={showTip:[],hideTip:[]},n=function(i){var r=e[i.type];r?r.push(i):(i.dispatchAction=n,t.dispatchAction(i))};return{dispatchAction:n,pendings:e}}(e);_g(yg(t).records,(function(t){t&&i(t,n,r.dispatchAction)})),function(t,e){var n,i=t.showTip.length,r=t.hideTip.length;i?n=t.showTip[i-1]:r&&(n=t.hideTip[r-1]);n&&(n.dispatchAction=null,e.dispatchAction(n))}(r.pendings,e)}))}yg(t).initialized=!0,n("click",_.curry(wg,"click")),n("mousemove",_.curry(wg,"mousemove")),n("globalout",bg)}(i,e),(yg(i).records[t]||(yg(i).records[t]={})).handler=n}}function bg(t,e,n){t.handler("leave",null,n)}function wg(t,e,n,i){e.handler(t,n,i)}function Sg(t,e){if(!vg.A.node){var n=e.getZr();(yg(n).records||{})[t]&&(yg(n).records[t]=null)}}var Tg=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return(0,Bt.C6)(e,t),e.prototype.render=function(t,e,n){var i=e.getComponent("tooltip"),r=t.get("triggerOn")||i&&i.get("triggerOn")||"mousemove|click";xg("axisPointer",n,(function(t,e,n){"none"!==r&&("leave"===t||r.indexOf(t)>=0)&&n({type:"updateAxisPointer",currTrigger:t,x:e&&e.offsetX,y:e&&e.offsetY})}))},e.prototype.remove=function(t,e){Sg("axisPointer",e)},e.prototype.dispose=function(t,e){Sg("axisPointer",e)},e.type="axisPointer",e}(ri.A);const Mg=Tg;function Ag(t,e){var n,i=[],r=t.seriesIndex;if(null==r||!(n=e.getSeriesByIndex(r)))return{point:[]};var o=n.getData(),a=ce.le(o,t);if(null==a||a<0||_.isArray(a))return{point:[]};var s=o.getItemGraphicEl(a),l=n.coordinateSystem;if(n.getTooltipPosition)i=n.getTooltipPosition(a)||[];else if(l&&l.dataToPoint)if(t.isStacked){var h=l.getBaseAxis(),c=l.getOtherAxis(h).dim,u=h.dim,d="x"===c||"radius"===c?1:0,p=o.mapDimension(u),f=[];f[d]=o.get(p,a),f[1-d]=o.get(o.getCalculationInfo("stackResultDimension"),a),i=l.dataToPoint(f)||[]}else i=l.dataToPoint(o.getValues(_.map(l.dimensions,(function(t){return o.mapDimension(t)})),a))||[];else if(s){var g=s.getBoundingRect().clone();g.applyTransform(s.transform),i=[g.x+g.width/2,g.y+g.height/2]}return{point:i,el:s}}var Cg=(0,ce.$r)();function Ig(t,e,n){var i=t.currTrigger,r=[t.x,t.y],o=t,a=t.dispatchAction||(0,_.bind)(n.dispatchAction,n),s=e.getComponent("axisPointer").coordSysAxesInfo;if(s){Pg(r)&&(r=Ag({seriesIndex:o.seriesIndex,dataIndex:o.dataIndex},e).point);var l=Pg(r),h=o.axesInfo,c=s.axesInfo,u="leave"===i||Pg(r),d={},p={},f={list:[],map:{}},g={showPointer:(0,_.curry)(kg,p),showTooltip:(0,_.curry)(Lg,f)};(0,_.each)(s.coordSysMap,(function(t,e){var n=l||t.containPoint(r);(0,_.each)(s.coordSysAxesInfo[e],(function(t,e){var i=t.axis,o=function(t,e){for(var n=0;n<(t||[]).length;n++){var i=t[n];if(e.axis.dim===i.axisDim&&e.axis.model.componentIndex===i.axisIndex)return i}}(h,t);if(!u&&n&&(!h||o)){var a=o&&o.value;null!=a||l||(a=i.pointToData(r)),null!=a&&Eg(t,a,g,!1,d)}}))}));var m={};return(0,_.each)(c,(function(t,e){var n=t.linkGroup;n&&!p[e]&&(0,_.each)(n.axesInfo,(function(e,i){var r=p[i];if(e!==t&&r){var o=r.value;n.mapper&&(o=t.axis.scale.parse(n.mapper(o,Dg(e),Dg(t)))),m[t.key]=o}}))})),(0,_.each)(m,(function(t,e){Eg(c[e],t,g,!0,d)})),function(t,e,n){var i=n.axesInfo=[];(0,_.each)(e,(function(e,n){var r=e.axisPointerModel.option,o=t[n];o?(!e.useHandle&&(r.status="show"),r.value=o.value,r.seriesDataIndices=(o.payloadBatch||[]).slice()):!e.useHandle&&(r.status="hide"),"show"===r.status&&i.push({axisDim:e.axis.dim,axisIndex:e.axis.model.componentIndex,value:r.value})}))}(p,c,d),function(t,e,n,i){if(Pg(e)||!t.list.length)return void i({type:"hideTip"});var r=((t.list[0].dataByAxis[0]||{}).seriesDataIndices||[])[0]||{};i({type:"showTip",escapeConnect:!0,x:e[0],y:e[1],tooltipOption:n.tooltipOption,position:n.position,dataIndexInside:r.dataIndexInside,dataIndex:r.dataIndex,seriesIndex:r.seriesIndex,dataByCoordSys:t.list})}(f,r,t,a),function(t,e,n){var i=n.getZr(),r="axisPointerLastHighlights",o=Cg(i)[r]||{},a=Cg(i)[r]={};(0,_.each)(t,(function(t,e){var n=t.axisPointerModel.option;"show"===n.status&&t.triggerEmphasis&&(0,_.each)(n.seriesDataIndices,(function(t){var e=t.seriesIndex+" | "+t.dataIndex;a[e]=t}))}));var s=[],l=[];(0,_.each)(o,(function(t,e){!a[e]&&l.push(t)})),(0,_.each)(a,(function(t,e){!o[e]&&s.push(t)})),l.length&&n.dispatchAction({type:"downplay",escapeConnect:!0,notBlur:!0,batch:l}),s.length&&n.dispatchAction({type:"highlight",escapeConnect:!0,notBlur:!0,batch:s})}(c,0,n),d}}function Eg(t,e,n,i,r){var o=t.axis;if(!o.scale.isBlank()&&o.containData(e))if(t.involveSeries){var a=function(t,e){var n=e.axis,i=n.dim,r=t,o=[],a=Number.MAX_VALUE,s=-1;return(0,_.each)(e.seriesModels,(function(e,l){var h,c,u=e.getData().mapDimensionsAll(i);if(e.getAxisTooltipData){var d=e.getAxisTooltipData(u,t,n);c=d.dataIndices,h=d.nestestValue}else{if(!(c=e.getData().indicesOfNearest(u[0],t,"category"===n.type?.5:null)).length)return;h=e.getData().get(u[0],c[0])}if(null!=h&&isFinite(h)){var p=t-h,f=Math.abs(p);f<=a&&((f<a||p>=0&&s<0)&&(a=f,s=p,r=h,o.length=0),(0,_.each)(c,(function(t){o.push({seriesIndex:e.seriesIndex,dataIndexInside:t,dataIndex:e.getData().getRawIndex(t)})})))}})),{payloadBatch:o,snapToValue:r}}(e,t),s=a.payloadBatch,l=a.snapToValue;s[0]&&null==r.seriesIndex&&(0,_.extend)(r,s[0]),!i&&t.snap&&o.containData(l)&&null!=l&&(e=l),n.showPointer(t,e,s),n.showTooltip(t,a,l)}else n.showPointer(t,e)}function kg(t,e,n,i){t[e.key]={value:n,payloadBatch:i}}function Lg(t,e,n,i){var r=n.payloadBatch,o=e.axis,a=o.model,s=e.axisPointerModel;if(e.triggerTooltip&&r.length){var l=e.coordSys.model,h=Qi(l),c=t.map[h];c||(c=t.map[h]={coordSysId:l.id,coordSysIndex:l.componentIndex,coordSysType:l.type,coordSysMainType:l.mainType,dataByAxis:[]},t.list.push(c)),c.dataByAxis.push({axisDim:o.dim,axisIndex:a.componentIndex,axisType:a.type,axisId:a.id,value:i,valueLabelOpt:{precision:s.get(["label","precision"]),formatter:s.get(["label","formatter"])},seriesDataIndices:r.slice()})}}function Dg(t){var e=t.axis.model,n={},i=n.axisDim=t.axis.dim;return n.axisIndex=n[i+"AxisIndex"]=e.componentIndex,n.axisName=n[i+"AxisName"]=e.name,n.axisId=n[i+"AxisId"]=e.id,n}function Pg(t){return!t||null==t[0]||isNaN(t[0])||null==t[1]||isNaN(t[1])}function Rg(t){er.registerAxisPointerClass("CartesianAxisPointer",gg),t.registerComponentModel(mg),t.registerComponentView(Mg),t.registerPreprocessor((function(t){if(t){(!t.axisPointer||0===t.axisPointer.length)&&(t.axisPointer={});var e=t.axisPointer.link;e&&!(0,_.isArray)(e)&&(t.axisPointer.link=[e])}})),t.registerProcessor(t.PRIORITY.PROCESSOR.STATISTIC,(function(t,e){t.getComponent("axisPointer").coordSysAxesInfo=Zi(t,e)})),t.registerAction({type:"updateAxisPointer",event:"updateAxisPointer",update:":updateAxisPointer"},Ig)}var Og=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return(0,Bt.C6)(e,t),e.prototype.makeElOption=function(t,e,n,i,r){var o=n.axis;"angle"===o.dim&&(this.animationThreshold=Math.PI/18);var a=o.polar,s=a.getOtherAxis(o).getExtent(),l=o.dataToCoord(e),h=i.get("type");if(h&&"none"!==h){var c=ig(i),u=Ng[h](o,a,l,s);u.style=c,t.graphicKey=u.type,t.pointer=u}var d=function(t,e,n,i,r){var o=e.axis,a=o.dataToCoord(t),s=i.getAngleAxis().getExtent()[0];s=s/180*Math.PI;var l,h,c,u=i.getRadiusAxis().getExtent();if("radius"===o.dim){var d=_i.create();_i.rotate(d,d,s),_i.translate(d,d,[i.cx,i.cy]),l=qt.applyTransform([a,-r],d);var p=e.getModel("axisLabel").get("rotate")||0,f=Yi.innerTextLayout(s,p*Math.PI/180,-1);h=f.textAlign,c=f.textVerticalAlign}else{var g=u[1];l=i.coordToPoint([g+r,a]);var m=i.cx,v=i.cy;h=Math.abs(l[0]-m)/g<.3?"center":l[0]>m?"left":"right",c=Math.abs(l[1]-v)/g<.3?"middle":l[1]>v?"top":"bottom"}return{position:l,align:h,verticalAlign:c}}(e,n,0,a,i.get(["label","margin"]));rg(t,n,i,r,d)},e}(ng);var Ng={line:function(t,e,n,i){return"angle"===t.dim?{type:"Line",shape:lg(e.coordToPoint([i[0],n]),e.coordToPoint([i[1],n]))}:{type:"Circle",shape:{cx:e.cx,cy:e.cy,r:n}}},shadow:function(t,e,n,i){var r=Math.max(1,t.getBandWidth()),o=Math.PI/180;return"angle"===t.dim?{type:"Sector",shape:cg(e.cx,e.cy,i[0],i[1],(-n-r/2)*o,(r/2-n)*o)}:{type:"Sector",shape:cg(e.cx,e.cy,n-r/2,n+r/2,0,2*Math.PI)}}};const Fg=Og;const Bg=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return(0,Bt.C6)(e,t),e.prototype.findAxisModel=function(t){var e;return this.ecModel.eachComponent(t,(function(t){t.getCoordSysModel()===this&&(e=t)}),this),e},e.type="polar",e.dependencies=["radiusAxis","angleAxis"],e.defaultOption={z:0,center:["50%","50%"],radius:"80%"},e}(oi.A);var zg=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return(0,Bt.C6)(e,t),e.prototype.getCoordSysModel=function(){return this.getReferringComponents("polar",ce.US).models[0]},e.type="polarAxis",e}(oi.A);_.mixin(zg,si.L);var Gg=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return(0,Bt.C6)(e,t),e.type="angleAxis",e}(zg),Vg=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return(0,Bt.C6)(e,t),e.type="radiusAxis",e}(zg),jg=function(t){function e(e,n){return t.call(this,"radius",e,n)||this}return(0,Bt.C6)(e,t),e.prototype.pointToData=function(t,e){return this.polar.pointToData(t,e)["radius"===this.dim?0:1]},e}(Ti.A);jg.prototype.dataToRadius=Ti.A.prototype.dataToCoord,jg.prototype.radiusToData=Ti.A.prototype.coordToData;const Hg=jg;var Wg=(0,ce.$r)(),Ug=function(t){function e(e,n){return t.call(this,"angle",e,n||[0,360])||this}return(0,Bt.C6)(e,t),e.prototype.pointToData=function(t,e){return this.polar.pointToData(t,e)["radius"===this.dim?0:1]},e.prototype.calculateCategoryInterval=function(){var t=this,e=t.getLabelModel(),n=t.scale,i=n.getExtent(),r=n.count();if(i[1]-i[0]<1)return 0;var o=i[0],a=t.dataToCoord(o+1)-t.dataToCoord(o),s=Math.abs(a),l=h.NO(null==o?"":o+"",e.getFont(),"center","top"),c=Math.max(l.height,7)/s;isNaN(c)&&(c=1/0);var u=Math.max(0,Math.floor(c)),d=Wg(t.model),p=d.lastAutoInterval,f=d.lastTickCount;return null!=p&&null!=f&&Math.abs(p-u)<=1&&Math.abs(f-r)<=1&&p>u?u=p:(d.lastTickCount=r,d.lastAutoInterval=u),u},e}(Ti.A);Ug.prototype.dataToAngle=Ti.A.prototype.dataToCoord,Ug.prototype.angleToData=Ti.A.prototype.coordToData;const qg=Ug;var Xg=["radius","angle"],Yg=function(){function t(t){this.dimensions=Xg,this.type="polar",this.cx=0,this.cy=0,this._radiusAxis=new Hg,this._angleAxis=new qg,this.axisPointerEnabled=!0,this.name=t||"",this._radiusAxis.polar=this._angleAxis.polar=this}return t.prototype.containPoint=function(t){var e=this.pointToCoord(t);return this._radiusAxis.contain(e[0])&&this._angleAxis.contain(e[1])},t.prototype.containData=function(t){return this._radiusAxis.containData(t[0])&&this._angleAxis.containData(t[1])},t.prototype.getAxis=function(t){return this["_"+t+"Axis"]},t.prototype.getAxes=function(){return[this._radiusAxis,this._angleAxis]},t.prototype.getAxesByScale=function(t){var e=[],n=this._angleAxis,i=this._radiusAxis;return n.scale.type===t&&e.push(n),i.scale.type===t&&e.push(i),e},t.prototype.getAngleAxis=function(){return this._angleAxis},t.prototype.getRadiusAxis=function(){return this._radiusAxis},t.prototype.getOtherAxis=function(t){var e=this._angleAxis;return t===e?this._radiusAxis:e},t.prototype.getBaseAxis=function(){return this.getAxesByScale("ordinal")[0]||this.getAxesByScale("time")[0]||this.getAngleAxis()},t.prototype.getTooltipAxes=function(t){var e=null!=t&&"auto"!==t?this.getAxis(t):this.getBaseAxis();return{baseAxes:[e],otherAxes:[this.getOtherAxis(e)]}},t.prototype.dataToPoint=function(t,e){return this.coordToPoint([this._radiusAxis.dataToRadius(t[0],e),this._angleAxis.dataToAngle(t[1],e)])},t.prototype.pointToData=function(t,e){var n=this.pointToCoord(t);return[this._radiusAxis.radiusToData(n[0],e),this._angleAxis.angleToData(n[1],e)]},t.prototype.pointToCoord=function(t){var e=t[0]-this.cx,n=t[1]-this.cy,i=this.getAngleAxis(),r=i.getExtent(),o=Math.min(r[0],r[1]),a=Math.max(r[0],r[1]);i.inverse?o=a-360:a=o+360;var s=Math.sqrt(e*e+n*n);e/=s,n/=s;for(var l=Math.atan2(-n,e)/Math.PI*180,h=l<o?1:-1;l<o||l>a;)l+=360*h;return[s,l]},t.prototype.coordToPoint=function(t){var e=t[0],n=t[1]/180*Math.PI;return[Math.cos(n)*e+this.cx,-Math.sin(n)*e+this.cy]},t.prototype.getArea=function(){var t=this.getAngleAxis(),e=this.getRadiusAxis().getExtent().slice();e[0]>e[1]&&e.reverse();var n=t.getExtent(),i=Math.PI/180;return{cx:this.cx,cy:this.cy,r0:e[0],r:e[1],startAngle:-n[0]*i,endAngle:-n[1]*i,clockwise:t.inverse,contain:function(t,e){var n=t-this.cx,i=e-this.cy,r=n*n+i*i-1e-4,o=this.r,a=this.r0;return r<=o*o&&r>=a*a}}},t.prototype.convertToPixel=function(t,e,n){return Zg(e)===this?this.dataToPoint(n):null},t.prototype.convertFromPixel=function(t,e,n){return Zg(e)===this?this.pointToData(n):null},t}();function Zg(t){var e=t.seriesModel,n=t.polarModel;return n&&n.coordinateSystem||e&&e.coordinateSystem}const $g=Yg;function Kg(t,e){var n=this,i=n.getAngleAxis(),r=n.getRadiusAxis();if(i.scale.setExtent(1/0,-1/0),r.scale.setExtent(1/0,-1/0),t.eachSeries((function(t){if(t.coordinateSystem===n){var e=t.getData();_.each((0,vi.wq)(e,"radius"),(function(t){r.scale.unionExtentFromData(e,t)})),_.each((0,vi.wq)(e,"angle"),(function(t){i.scale.unionExtentFromData(e,t)}))}})),(0,vi.af)(i.scale,i.model),(0,vi.af)(r.scale,r.model),"category"===i.type&&!i.onBand){var o=i.getExtent(),a=360/i.scale.count();i.inverse?o[1]+=a:o[1]-=a,i.setExtent(o[0],o[1])}}function Jg(t,e){var n;if(t.type=e.get("type"),t.scale=(0,vi.f$)(e),t.onBand=e.get("boundaryGap")&&"category"===t.type,t.inverse=e.get("inverse"),function(t){return"angleAxis"===t.mainType}(e)){t.inverse=t.inverse!==e.get("clockwise");var i=e.get("startAngle"),r=null!==(n=e.get("endAngle"))&&void 0!==n?n:i+(t.inverse?-360:360);t.setExtent(i,r)}e.axis=t,t.model=e}var Qg={dimensions:Xg,create:function(t,e){var n=[];return t.eachComponent("polar",(function(t,i){var r=new $g(i+"");r.update=Kg;var o=r.getRadiusAxis(),a=r.getAngleAxis(),s=t.findAxisModel("radiusAxis"),l=t.findAxisModel("angleAxis");Jg(o,s),Jg(a,l),function(t,e,n){var i=e.get("center"),r=n.getWidth(),o=n.getHeight();t.cx=(0,Se.lo)(i[0],r),t.cy=(0,Se.lo)(i[1],o);var a=t.getRadiusAxis(),s=Math.min(r,o)/2,l=e.get("radius");null==l?l=[0,"100%"]:_.isArray(l)||(l=[0,l]);var h=[(0,Se.lo)(l[0],s),(0,Se.lo)(l[1],s)];a.inverse?a.setExtent(h[1],h[0]):a.setExtent(h[0],h[1])}(r,t,e),n.push(r),t.coordinateSystem=r,r.model=t})),t.eachSeries((function(t){if("polar"===t.get("coordinateSystem")){var e=t.getReferringComponents("polar",ce.US).models[0];0,t.coordinateSystem=e.coordinateSystem}})),n}};const tm=Qg;var em=["axisLine","axisLabel","axisTick","minorTick","splitLine","minorSplitLine","splitArea"];function nm(t,e,n){e[1]>e[0]&&(e=e.slice().reverse());var i=t.coordToPoint([e[0],n]),r=t.coordToPoint([e[1],n]);return{x1:i[0],y1:i[1],x2:r[0],y2:r[1]}}function im(t){return t.getRadiusAxis().inverse?0:1}function rm(t){var e=t[0],n=t[t.length-1];e&&n&&Math.abs(Math.abs(e.coord-n.coord)-360)<1e-4&&t.pop()}var om=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n.axisPointerClass="PolarAxisPointer",n}return(0,Bt.C6)(e,t),e.prototype.render=function(t,e){if(this.group.removeAll(),t.get("show")){var n=t.axis,i=n.polar,r=i.getRadiusAxis().getExtent(),o=n.getTicksCoords(),a=n.getMinorTicksCoords(),s=_.map(n.getViewLabels(),(function(t){t=_.clone(t);var e=n.scale,i="ordinal"===e.type?e.getRawOrdinalNumber(t.tickValue):t.tickValue;return t.coord=n.dataToCoord(i),t}));rm(s),rm(o),_.each(em,(function(e){!t.get([e,"show"])||n.scale.isBlank()&&"axisLine"!==e||am[e](this.group,t,i,o,a,r,s)}),this)}},e.type="angleAxis",e}(er),am={axisLine:function(t,e,n,i,r,o){var a,s=e.getModel(["axisLine","lineStyle"]),l=n.getAngleAxis(),h=Math.PI/180,c=l.getExtent(),u=im(n),d=u?0:1,p=360===Math.abs(c[1]-c[0])?"Circle":"Arc";(a=0===o[d]?new qt[p]({shape:{cx:n.cx,cy:n.cy,r:o[u],startAngle:-c[0]*h,endAngle:-c[1]*h,clockwise:l.inverse},style:s.getLineStyle(),z2:1,silent:!0}):new Ir.A({shape:{cx:n.cx,cy:n.cy,r:o[u],r0:o[d]},style:s.getLineStyle(),z2:1,silent:!0})).style.fill=null,t.add(a)},axisTick:function(t,e,n,i,r,o){var a=e.getModel("axisTick"),s=(a.get("inside")?-1:1)*a.get("length"),l=o[im(n)],h=_.map(i,(function(t){return new zi.A({shape:nm(n,[l,l+s],t.coord)})}));t.add(qt.mergePath(h,{style:_.defaults(a.getModel("lineStyle").getLineStyle(),{stroke:e.get(["axisLine","lineStyle","color"])})}))},minorTick:function(t,e,n,i,r,o){if(r.length){for(var a=e.getModel("axisTick"),s=e.getModel("minorTick"),l=(a.get("inside")?-1:1)*s.get("length"),h=o[im(n)],c=[],u=0;u<r.length;u++)for(var d=0;d<r[u].length;d++)c.push(new zi.A({shape:nm(n,[h,h+l],r[u][d].coord)}));t.add(qt.mergePath(c,{style:_.defaults(s.getModel("lineStyle").getLineStyle(),_.defaults(a.getLineStyle(),{stroke:e.get(["axisLine","lineStyle","color"])}))}))}},axisLabel:function(t,e,n,i,r,o,a){var s=e.getCategories(!0),l=e.getModel("axisLabel"),h=l.get("margin"),c=e.get("triggerEvent");_.each(a,(function(i,r){var a=l,u=i.tickValue,d=o[im(n)],p=n.coordToPoint([d+h,i.coord]),f=n.cx,g=n.cy,m=Math.abs(p[0]-f)/d<.3?"center":p[0]>f?"left":"right",v=Math.abs(p[1]-g)/d<.3?"middle":p[1]>g?"top":"bottom";if(s&&s[u]){var y=s[u];_.isObject(y)&&y.textStyle&&(a=new Gi.A(y.textStyle,l,l.ecModel))}var x=new Z.Ay({silent:Yi.isLabelSilent(e),style:(0,Jt.VB)(a,{x:p[0],y:p[1],fill:a.getTextColor()||e.get(["axisLine","lineStyle","color"]),text:i.formattedLabel,align:m,verticalAlign:v})});if(t.add(x),c){var b=Yi.makeAxisEventDataBase(e);b.targetType="axisLabel",b.value=i.rawLabel,(0,Xt.z)(x).eventData=b}}),this)},splitLine:function(t,e,n,i,r,o){var a=e.getModel("splitLine").getModel("lineStyle"),s=a.get("color"),l=0;s=s instanceof Array?s:[s];for(var h=[],c=0;c<i.length;c++){var u=l++%s.length;h[u]=h[u]||[],h[u].push(new zi.A({shape:nm(n,o,i[c].coord)}))}for(c=0;c<h.length;c++)t.add(qt.mergePath(h[c],{style:_.defaults({stroke:s[c%s.length]},a.getLineStyle()),silent:!0,z:e.get("z")}))},minorSplitLine:function(t,e,n,i,r,o){if(r.length){for(var a=e.getModel("minorSplitLine").getModel("lineStyle"),s=[],l=0;l<r.length;l++)for(var h=0;h<r[l].length;h++)s.push(new zi.A({shape:nm(n,o,r[l][h].coord)}));t.add(qt.mergePath(s,{style:a.getLineStyle(),silent:!0,z:e.get("z")}))}},splitArea:function(t,e,n,i,r,o){if(i.length){var a=e.getModel("splitArea").getModel("areaStyle"),s=a.get("color"),l=0;s=s instanceof Array?s:[s];for(var h=[],c=Math.PI/180,u=-i[0].coord*c,d=Math.min(o[0],o[1]),p=Math.max(o[0],o[1]),f=e.get("clockwise"),g=1,m=i.length;g<=m;g++){var v=g===m?i[0].coord:i[g].coord,y=l++%s.length;h[y]=h[y]||[],h[y].push(new we.A({shape:{cx:n.cx,cy:n.cy,r0:d,r:p,startAngle:u,endAngle:-v*c,clockwise:f},silent:!0})),u=-v*c}for(g=0;g<h.length;g++)t.add(qt.mergePath(h[g],{style:_.defaults({fill:s[g%s.length]},a.getAreaStyle()),silent:!0}))}}};const sm=om;var lm=["axisLine","axisTickLabel","axisName"],hm=["splitLine","splitArea","minorSplitLine"],cm=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n.axisPointerClass="PolarAxisPointer",n}return(0,Bt.C6)(e,t),e.prototype.render=function(t,e){if(this.group.removeAll(),t.get("show")){var n=this._axisGroup,i=this._axisGroup=new jt.A;this.group.add(i);var r=t.axis,o=r.polar,a=o.getAngleAxis(),s=r.getTicksCoords(),l=r.getMinorTicksCoords(),h=a.getExtent()[0],c=r.getExtent(),u=function(t,e,n){return{position:[t.cx,t.cy],rotation:n/180*Math.PI,labelDirection:-1,tickDirection:-1,nameDirection:1,labelRotate:e.getModel("axisLabel").get("rotate"),z2:1}}(o,t,h),d=new Yi(t,u);_.each(lm,d.add,d),i.add(d.getGroup()),qt.groupTransition(n,i,t),_.each(hm,(function(e){t.get([e,"show"])&&!r.scale.isBlank()&&um[e](this.group,t,o,h,c,s,l)}),this)}},e.type="radiusAxis",e}(er),um={splitLine:function(t,e,n,i,r,o){var a=e.getModel("splitLine").getModel("lineStyle"),s=a.get("color"),l=0,h=n.getAngleAxis(),c=Math.PI/180,u=h.getExtent(),d=360===Math.abs(u[1]-u[0])?"Circle":"Arc";s=s instanceof Array?s:[s];for(var p=[],f=0;f<o.length;f++){var g=l++%s.length;p[g]=p[g]||[],p[g].push(new qt[d]({shape:{cx:n.cx,cy:n.cy,r:Math.max(o[f].coord,0),startAngle:-u[0]*c,endAngle:-u[1]*c,clockwise:h.inverse}}))}for(f=0;f<p.length;f++)t.add(qt.mergePath(p[f],{style:_.defaults({stroke:s[f%s.length],fill:null},a.getLineStyle()),silent:!0}))},minorSplitLine:function(t,e,n,i,r,o,a){if(a.length){for(var s=e.getModel("minorSplitLine").getModel("lineStyle"),l=[],h=0;h<a.length;h++)for(var c=0;c<a[h].length;c++)l.push(new Cr.A({shape:{cx:n.cx,cy:n.cy,r:a[h][c].coord}}));t.add(qt.mergePath(l,{style:_.defaults({fill:null},s.getLineStyle()),silent:!0}))}},splitArea:function(t,e,n,i,r,o){if(o.length){var a=e.getModel("splitArea").getModel("areaStyle"),s=a.get("color"),l=0;s=s instanceof Array?s:[s];for(var h=[],c=o[0].coord,u=1;u<o.length;u++){var d=l++%s.length;h[d]=h[d]||[],h[d].push(new we.A({shape:{cx:n.cx,cy:n.cy,r0:c,r:o[u].coord,startAngle:0,endAngle:2*Math.PI},silent:!0})),c=o[u].coord}for(u=0;u<h.length;u++)t.add(qt.mergePath(h[u],{style:_.defaults({fill:s[u%s.length]},a.getAreaStyle()),silent:!0}))}}};const dm=cm;function pm(t){return t.get("stack")||"__ec_stack_"+t.seriesIndex}function fm(t,e){return e.dim+t.model.componentIndex}const gm=function(t,e,n){var i={},r=function(t){var e={};_.each(t,(function(t,n){var i=t.getData(),r=t.coordinateSystem,o=r.getBaseAxis(),a=fm(r,o),s=o.getExtent(),l="category"===o.type?o.getBandWidth():Math.abs(s[1]-s[0])/i.count(),h=e[a]||{bandWidth:l,remainedWidth:l,autoWidthCount:0,categoryGap:"20%",gap:"30%",stacks:{}},c=h.stacks;e[a]=h;var u=pm(t);c[u]||h.autoWidthCount++,c[u]=c[u]||{width:0,maxWidth:0};var d=(0,Se.lo)(t.get("barWidth"),l),p=(0,Se.lo)(t.get("barMaxWidth"),l),f=t.get("barGap"),g=t.get("barCategoryGap");d&&!c[u].width&&(d=Math.min(h.remainedWidth,d),c[u].width=d,h.remainedWidth-=d),p&&(c[u].maxWidth=p),null!=f&&(h.gap=f),null!=g&&(h.categoryGap=g)}));var n={};return _.each(e,(function(t,e){n[e]={};var i=t.stacks,r=t.bandWidth,o=(0,Se.lo)(t.categoryGap,r),a=(0,Se.lo)(t.gap,1),s=t.remainedWidth,l=t.autoWidthCount,h=(s-o)/(l+(l-1)*a);h=Math.max(h,0),_.each(i,(function(t,e){var n=t.maxWidth;n&&n<h&&(n=Math.min(n,s),t.width&&(n=Math.min(n,t.width)),s-=n,t.width=n,l--)})),h=(s-o)/(l+(l-1)*a),h=Math.max(h,0);var c,u=0;_.each(i,(function(t,e){t.width||(t.width=h),c=t,u+=t.width*(1+a)})),c&&(u-=c.width*a);var d=-u/2;_.each(i,(function(t,i){n[e][i]=n[e][i]||{offset:d,width:t.width},d+=t.width*(1+a)}))})),n}(_.filter(e.getSeriesByType(t),(function(t){return!e.isSeriesFiltered(t)&&t.coordinateSystem&&"polar"===t.coordinateSystem.type})));e.eachSeriesByType(t,(function(t){if("polar"===t.coordinateSystem.type){var e=t.getData(),n=t.coordinateSystem,o=n.getBaseAxis(),a=fm(n,o),s=pm(t),l=r[a][s],h=l.offset,c=l.width,u=n.getOtherAxis(o),d=t.coordinateSystem.cx,p=t.coordinateSystem.cy,f=t.get("barMinHeight")||0,g=t.get("barMinAngle")||0;i[s]=i[s]||[];for(var m=e.mapDimension(u.dim),v=e.mapDimension(o.dim),y=(0,oe.sJ)(e,m),_="radius"!==o.dim||!t.get("roundCap",!0),x=u.model.get("startValue"),b=u.dataToCoord(x||0),w=0,S=e.count();w<S;w++){var T=e.get(m,w),M=e.get(v,w),A=T>=0?"p":"n",C=b;y&&(i[s][M]||(i[s][M]={p:b,n:b}),C=i[s][M][A]);var I=void 0,E=void 0,k=void 0,L=void 0;if("radius"===u.dim){var D=u.dataToCoord(T)-b,P=o.dataToCoord(M);Math.abs(D)<f&&(D=(D<0?-1:1)*f),I=C,E=C+D,L=(k=P-h)-c,y&&(i[s][M][A]=E)}else{var R=u.dataToCoord(T,_)-b,O=o.dataToCoord(M);Math.abs(R)<g&&(R=(R<0?-1:1)*g),E=(I=O+h)+c,k=C,L=C+R,y&&(i[s][M][A]=L)}e.setItemLayout(w,{cx:d,cy:p,r0:I,r:E,startAngle:-k*Math.PI/180,endAngle:-L*Math.PI/180,clockwise:k>=L})}}}))};var mm={startAngle:90,clockwise:!0,splitNumber:12,axisLabel:{rotate:0}},vm={splitNumber:5},ym=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return(0,Bt.C6)(e,t),e.type="polar",e}(ri.A);function _m(t,e){e=e||{};var n=t.coordinateSystem,i=t.axis,r={},o=i.position,a=i.orient,s=n.getRect(),l=[s.x,s.x+s.width,s.y,s.y+s.height],h={horizontal:{top:l[2],bottom:l[3]},vertical:{left:l[0],right:l[1]}};r.position=["vertical"===a?h.vertical[o]:l[0],"horizontal"===a?h.horizontal[o]:l[3]];r.rotation=Math.PI/2*{horizontal:0,vertical:1}[a];r.labelDirection=r.tickDirection=r.nameDirection={top:-1,bottom:1,right:1,left:-1}[o],t.get(["axisTick","inside"])&&(r.tickDirection=-r.tickDirection),_.retrieve(e.labelInside,t.get(["axisLabel","inside"]))&&(r.labelDirection=-r.labelDirection);var c=e.rotate;return null==c&&(c=t.get(["axisLabel","rotate"])),r.labelRotation="top"===o?-c:c,r.z2=1,r}var xm=["axisLine","axisTickLabel","axisName"],bm=["splitArea","splitLine"],wm=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n.axisPointerClass="SingleAxisPointer",n}return(0,Bt.C6)(e,t),e.prototype.render=function(e,n,i,r){var o=this.group;o.removeAll();var a=this._axisGroup;this._axisGroup=new jt.A;var s=_m(e),l=new Yi(e,s);_.each(xm,l.add,l),o.add(this._axisGroup),o.add(l.getGroup()),_.each(bm,(function(t){e.get([t,"show"])&&Sm[t](this,this.group,this._axisGroup,e)}),this),qt.groupTransition(a,this._axisGroup,e),t.prototype.render.call(this,e,n,i,r)},e.prototype.remove=function(){rr(this)},e.type="singleAxis",e}(er),Sm={splitLine:function(t,e,n,i){var r=i.axis;if(!r.scale.isBlank()){var o=i.getModel("splitLine"),a=o.getModel("lineStyle"),s=a.get("color");s=s instanceof Array?s:[s];for(var l=a.get("width"),h=i.coordinateSystem.getRect(),c=r.isHorizontal(),u=[],d=0,p=r.getTicksCoords({tickModel:o}),f=[],g=[],m=0;m<p.length;++m){var v=r.toGlobalCoord(p[m].coord);c?(f[0]=v,f[1]=h.y,g[0]=v,g[1]=h.y+h.height):(f[0]=h.x,f[1]=v,g[0]=h.x+h.width,g[1]=v);var y=new zi.A({shape:{x1:f[0],y1:f[1],x2:g[0],y2:g[1]},silent:!0});qt.subPixelOptimizeLine(y.shape,l);var x=d++%s.length;u[x]=u[x]||[],u[x].push(y)}var b=a.getLineStyle(["color"]);for(m=0;m<u.length;++m)e.add(qt.mergePath(u[m],{style:_.defaults({stroke:s[m%s.length]},b),silent:!0}))}},splitArea:function(t,e,n,i){ir(t,n,i,i)}};const Tm=wm;var Mm=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return(0,Bt.C6)(e,t),e.prototype.getCoordSysModel=function(){return this},e.type="singleAxis",e.layoutMode="box",e.defaultOption={left:"5%",top:"5%",right:"5%",bottom:"5%",type:"value",position:"bottom",orient:"horizontal",axisLine:{show:!0,lineStyle:{width:1,type:"solid"}},tooltip:{show:!0},axisTick:{show:!0,length:6,lineStyle:{width:1}},axisLabel:{show:!0,interval:"auto"},splitLine:{show:!0,lineStyle:{type:"dashed",opacity:.2}}},e}(oi.A);(0,_.mixin)(Mm,si.L.prototype);const Am=Mm;var Cm=function(t){function e(e,n,i,r,o){var a=t.call(this,e,n,i)||this;return a.type=r||"value",a.position=o||"bottom",a}return(0,Bt.C6)(e,t),e.prototype.isHorizontal=function(){var t=this.position;return"top"===t||"bottom"===t},e.prototype.pointToData=function(t,e){return this.coordinateSystem.pointToData(t)[0]},e}(Ti.A);const Im=Cm;var Em=["single"];function km(t){var e=t.seriesModel,n=t.singleAxisModel;return n&&n.coordinateSystem||e&&e.coordinateSystem}const Lm=function(){function t(t,e,n){this.type="single",this.dimension="single",this.dimensions=Em,this.axisPointerEnabled=!0,this.model=t,this._init(t,e,n)}return t.prototype._init=function(t,e,n){var i=this.dimension,r=new Im(i,vi.f$(t),[0,0],t.get("type"),t.get("position")),o="category"===r.type;r.onBand=o&&t.get("boundaryGap"),r.inverse=t.get("inverse"),r.orient=t.get("orient"),t.axis=r,r.model=t,r.coordinateSystem=this,this._axis=r},t.prototype.update=function(t,e){t.eachSeries((function(t){if(t.coordinateSystem===this){var e=t.getData();(0,_.each)(e.mapDimensionsAll(this.dimension),(function(t){this._axis.scale.unionExtentFromData(e,t)}),this),vi.af(this._axis.scale,this._axis.model)}}),this)},t.prototype.resize=function(t,e){this._rect=(0,Mn.dV)({left:t.get("left"),top:t.get("top"),right:t.get("right"),bottom:t.get("bottom"),width:t.get("width"),height:t.get("height")},{width:e.getWidth(),height:e.getHeight()}),this._adjustAxis()},t.prototype.getRect=function(){return this._rect},t.prototype._adjustAxis=function(){var t=this._rect,e=this._axis,n=e.isHorizontal(),i=n?[0,t.width]:[0,t.height],r=e.inverse?1:0;e.setExtent(i[r],i[1-r]),this._updateAxisTransform(e,n?t.x:t.y)},t.prototype._updateAxisTransform=function(t,e){var n=t.getExtent(),i=n[0]+n[1],r=t.isHorizontal();t.toGlobalCoord=r?function(t){return t+e}:function(t){return i-t+e},t.toLocalCoord=r?function(t){return t-e}:function(t){return i-t+e}},t.prototype.getAxis=function(){return this._axis},t.prototype.getBaseAxis=function(){return this._axis},t.prototype.getAxes=function(){return[this._axis]},t.prototype.getTooltipAxes=function(){return{baseAxes:[this.getAxis()],otherAxes:[]}},t.prototype.containPoint=function(t){var e=this.getRect(),n=this.getAxis();return"horizontal"===n.orient?n.contain(n.toLocalCoord(t[0]))&&t[1]>=e.y&&t[1]<=e.y+e.height:n.contain(n.toLocalCoord(t[1]))&&t[0]>=e.y&&t[0]<=e.y+e.height},t.prototype.pointToData=function(t){var e=this.getAxis();return[e.coordToData(e.toLocalCoord(t["horizontal"===e.orient?0:1]))]},t.prototype.dataToPoint=function(t){var e=this.getAxis(),n=this.getRect(),i=[],r="horizontal"===e.orient?0:1;return t instanceof Array&&(t=t[0]),i[r]=e.toGlobalCoord(e.dataToCoord(+t)),i[1-r]=0===r?n.y+n.height/2:n.x+n.width/2,i},t.prototype.convertToPixel=function(t,e,n){return km(e)===this?this.dataToPoint(n):null},t.prototype.convertFromPixel=function(t,e,n){return km(e)===this?this.pointToData(n):null},t}();const Dm={create:function(t,e){var n=[];return t.eachComponent("singleAxis",(function(i,r){var o=new Lm(i,t,e);o.name="single_"+r,o.resize(i,e),i.coordinateSystem=o,n.push(o)})),t.eachSeries((function(t){if("singleAxis"===t.get("coordinateSystem")){var e=t.getReferringComponents("singleAxis",ce.US).models[0];t.coordinateSystem=e&&e.coordinateSystem}})),n},dimensions:Em};var Pm=["x","y"],Rm=["width","height"],Om=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return(0,Bt.C6)(e,t),e.prototype.makeElOption=function(t,e,n,i,r){var o=n.axis,a=o.coordinateSystem,s=Bm(a,1-Fm(o)),l=a.dataToPoint(e)[0],h=i.get("type");if(h&&"none"!==h){var c=ig(i),u=Nm[h](o,l,s);u.style=c,t.graphicKey=u.type,t.pointer=u}sg(e,t,_m(n),n,i,r)},e.prototype.getHandleTransform=function(t,e,n){var i=_m(e,{labelInside:!1});i.labelMargin=n.get(["handle","margin"]);var r=ag(e.axis,t,i);return{x:r[0],y:r[1],rotation:i.rotation+(i.labelDirection<0?Math.PI:0)}},e.prototype.updateHandleTransform=function(t,e,n,i){var r=n.axis,o=r.coordinateSystem,a=Fm(r),s=Bm(o,a),l=[t.x,t.y];l[a]+=e[a],l[a]=Math.min(s[1],l[a]),l[a]=Math.max(s[0],l[a]);var h=Bm(o,1-a),c=(h[1]+h[0])/2,u=[c,c];return u[a]=l[a],{x:l[0],y:l[1],rotation:t.rotation,cursorPoint:u,tooltipOption:{verticalAlign:"middle"}}},e}(ng),Nm={line:function(t,e,n){return{type:"Line",subPixelOptimize:!0,shape:lg([e,n[0]],[e,n[1]],Fm(t))}},shadow:function(t,e,n){var i=t.getBandWidth(),r=n[1]-n[0];return{type:"Rect",shape:hg([e-i/2,n[0]],[i,r],Fm(t))}}};function Fm(t){return t.isHorizontal()?0:1}function Bm(t,e){var n=t.getRect();return[n[Pm[e]],n[Pm[e]]+n[Rm[e]]]}const zm=Om;var Gm=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return(0,Bt.C6)(e,t),e.type="single",e}(ri.A);function Vm(t,e){var n,i=t.cellSize;1===(n=_.isArray(i)?i:t.cellSize=[i,i]).length&&(n[1]=n[0]);var r=_.map([0,1],(function(t){return(0,Mn.Qf)(e,t)&&(n[t]="auto"),null!=n[t]&&"auto"!==n[t]}));(0,Mn.YA)(t,e,{type:"box",ignoreSize:r})}const jm=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return(0,Bt.C6)(e,t),e.prototype.init=function(e,n,i){var r=(0,Mn.vs)(e);t.prototype.init.apply(this,arguments),Vm(e,r)},e.prototype.mergeOption=function(e){t.prototype.mergeOption.apply(this,arguments),Vm(this.option,e)},e.prototype.getCellSize=function(){return this.option.cellSize},e.type="calendar",e.defaultOption={z:2,left:80,top:60,cellSize:20,orient:"horizontal",splitLine:{show:!0,lineStyle:{color:"#000",width:1,type:"solid"}},itemStyle:{color:"#fff",borderWidth:1,borderColor:"#ccc"},dayLabel:{show:!0,firstDay:0,position:"start",margin:"50%",color:"#000"},monthLabel:{show:!0,position:"start",margin:5,align:"center",formatter:null,color:"#000"},yearLabel:{show:!0,position:null,margin:30,formatter:null,color:"#ccc",fontFamily:"sans-serif",fontWeight:"bolder",fontSize:20}},e}(oi.A);var Hm=n(6650),Wm=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return(0,Bt.C6)(e,t),e.prototype.render=function(t,e,n){var i=this.group;i.removeAll();var r=t.coordinateSystem,o=r.getRangeInfo(),a=r.getOrient(),s=e.getLocaleModel();this._renderDayRect(t,o,i),this._renderLines(t,o,a,i),this._renderYearText(t,o,a,i),this._renderMonthText(t,s,a,i),this._renderWeekText(t,s,o,a,i)},e.prototype._renderDayRect=function(t,e,n){for(var i=t.coordinateSystem,r=t.getModel("itemStyle").getItemStyle(),o=i.getCellWidth(),a=i.getCellHeight(),s=e.start.time;s<=e.end.time;s=i.getNextNDay(s,1).time){var l=i.dataToRect([s],!1).tl,h=new be.A({shape:{x:l[0],y:l[1],width:o,height:a},cursor:"default",style:r});n.add(h)}},e.prototype._renderLines=function(t,e,n,i){var r=this,o=t.coordinateSystem,a=t.getModel(["splitLine","lineStyle"]).getLineStyle(),s=t.get(["splitLine","show"]),l=a.lineWidth;this._tlpoints=[],this._blpoints=[],this._firstDayOfMonth=[],this._firstDayPoints=[];for(var h=e.start,c=0;h.time<=e.end.time;c++){d(h.formatedDate),0===c&&(h=o.getDateInfo(e.start.y+"-"+e.start.m));var u=h.date;u.setMonth(u.getMonth()+1),h=o.getDateInfo(u)}function d(e){r._firstDayOfMonth.push(o.getDateInfo(e)),r._firstDayPoints.push(o.dataToRect([e],!1).tl);var l=r._getLinePointsOfOneWeek(t,e,n);r._tlpoints.push(l[0]),r._blpoints.push(l[l.length-1]),s&&r._drawSplitline(l,a,i)}d(o.getNextNDay(e.end.time,1).formatedDate),s&&this._drawSplitline(r._getEdgesPoints(r._tlpoints,l,n),a,i),s&&this._drawSplitline(r._getEdgesPoints(r._blpoints,l,n),a,i)},e.prototype._getEdgesPoints=function(t,e,n){var i=[t[0].slice(),t[t.length-1].slice()],r="horizontal"===n?0:1;return i[0][r]=i[0][r]-e/2,i[1][r]=i[1][r]+e/2,i},e.prototype._drawSplitline=function(t,e,n){var i=new Pn.A({z2:20,shape:{points:t},style:e});n.add(i)},e.prototype._getLinePointsOfOneWeek=function(t,e,n){for(var i=t.coordinateSystem,r=i.getDateInfo(e),o=[],a=0;a<7;a++){var s=i.getNextNDay(r.time,a),l=i.dataToRect([s.time],!1);o[2*s.day]=l.tl,o[2*s.day+1]=l["horizontal"===n?"bl":"tr"]}return o},e.prototype._formatterLabel=function(t,e){return(0,_.isString)(t)&&t?(0,Ie.io)(t,e):(0,_.isFunction)(t)?t(e):e.nameMap},e.prototype._yearTextPositionControl=function(t,e,n,i,r){var o=e[0],a=e[1],s=["center","bottom"];"bottom"===i?(a+=r,s=["center","top"]):"left"===i?o-=r:"right"===i?(o+=r,s=["center","top"]):a-=r;var l=0;return"left"!==i&&"right"!==i||(l=Math.PI/2),{rotation:l,x:o,y:a,style:{align:s[0],verticalAlign:s[1]}}},e.prototype._renderYearText=function(t,e,n,i){var r=t.getModel("yearLabel");if(r.get("show")){var o=r.get("margin"),a=r.get("position");a||(a="horizontal"!==n?"top":"left");var s=[this._tlpoints[this._tlpoints.length-1],this._blpoints[0]],l=(s[0][0]+s[1][0])/2,h=(s[0][1]+s[1][1])/2,c="horizontal"===n?0:1,u={top:[l,s[c][1]],bottom:[l,s[1-c][1]],left:[s[1-c][0],h],right:[s[c][0],h]},d=e.start.y;+e.end.y>+e.start.y&&(d=d+"-"+e.end.y);var p=r.get("formatter"),f={start:e.start.y,end:e.end.y,nameMap:d},g=this._formatterLabel(p,f),m=new Z.Ay({z2:30,style:(0,Jt.VB)(r,{text:g})});m.attr(this._yearTextPositionControl(m,u[a],n,a,o)),i.add(m)}},e.prototype._monthTextPositionControl=function(t,e,n,i,r){var o="left",a="top",s=t[0],l=t[1];return"horizontal"===n?(l+=r,e&&(o="center"),"start"===i&&(a="bottom")):(s+=r,e&&(a="middle"),"start"===i&&(o="right")),{x:s,y:l,align:o,verticalAlign:a}},e.prototype._renderMonthText=function(t,e,n,i){var r=t.getModel("monthLabel");if(r.get("show")){var o=r.get("nameMap"),a=r.get("margin"),s=r.get("position"),l=r.get("align"),h=[this._tlpoints,this._blpoints];o&&!(0,_.isString)(o)||(o&&(e=(0,Hm.A4)(o)||e),o=e.get(["time","monthAbbr"])||[]);var c="start"===s?0:1,u="horizontal"===n?0:1;a="start"===s?-a:a;for(var d="center"===l,p=0;p<h[c].length-1;p++){var f=h[c][p].slice(),g=this._firstDayOfMonth[p];if(d){var m=this._firstDayPoints[p];f[u]=(m[u]+h[0][p+1][u])/2}var v=r.get("formatter"),y=o[+g.m-1],x={yyyy:g.y,yy:(g.y+"").slice(2),MM:g.m,M:+g.m,nameMap:y},b=this._formatterLabel(v,x),w=new Z.Ay({z2:30,style:(0,_.extend)((0,Jt.VB)(r,{text:b}),this._monthTextPositionControl(f,d,n,s,a))});i.add(w)}}},e.prototype._weekTextPositionControl=function(t,e,n,i,r){var o="center",a="middle",s=t[0],l=t[1],h="start"===n;return"horizontal"===e?(s=s+i+(h?1:-1)*r[0]/2,o=h?"right":"left"):(l=l+i+(h?1:-1)*r[1]/2,a=h?"bottom":"top"),{x:s,y:l,align:o,verticalAlign:a}},e.prototype._renderWeekText=function(t,e,n,i,r){var o=t.getModel("dayLabel");if(o.get("show")){var a=t.coordinateSystem,s=o.get("position"),l=o.get("nameMap"),h=o.get("margin"),c=a.getFirstDayOfWeek();if(!l||(0,_.isString)(l))l&&(e=(0,Hm.A4)(l)||e),l=e.get(["time","dayOfWeekShort"])||(0,_.map)(e.get(["time","dayOfWeekAbbr"]),(function(t){return t[0]}));var u=a.getNextNDay(n.end.time,7-n.lweek).time,d=[a.getCellWidth(),a.getCellHeight()];h=(0,Se.lo)(h,Math.min(d[1],d[0])),"start"===s&&(u=a.getNextNDay(n.start.time,-(7+n.fweek)).time,h=-h);for(var p=0;p<7;p++){var f,g=a.getNextNDay(u,p),m=a.dataToRect([g.time],!1).center;f=Math.abs((p+c)%7);var v=new Z.Ay({z2:30,style:(0,_.extend)((0,Jt.VB)(o,{text:l[f]}),this._weekTextPositionControl(m,i,s,h,d))});r.add(v)}}},e.type="calendar",e}(ri.A);const Um=Wm;var qm=864e5;function Xm(t){var e=t.calendarModel,n=t.seriesModel;return e?e.coordinateSystem:n?n.coordinateSystem:null}const Ym=function(){function t(e,n,i){this.type="calendar",this.dimensions=t.dimensions,this.getDimensionsInfo=t.getDimensionsInfo,this._model=e}return t.getDimensionsInfo=function(){return[{name:"time",type:"time"},"value"]},t.prototype.getRangeInfo=function(){return this._rangeInfo},t.prototype.getModel=function(){return this._model},t.prototype.getRect=function(){return this._rect},t.prototype.getCellWidth=function(){return this._sw},t.prototype.getCellHeight=function(){return this._sh},t.prototype.getOrient=function(){return this._orient},t.prototype.getFirstDayOfWeek=function(){return this._firstDayOfWeek},t.prototype.getDateInfo=function(t){var e=(t=Se._U(t)).getFullYear(),n=t.getMonth()+1,i=n<10?"0"+n:""+n,r=t.getDate(),o=r<10?"0"+r:""+r,a=t.getDay();return{y:e+"",m:i,d:o,day:a=Math.abs((a+7-this.getFirstDayOfWeek())%7),time:t.getTime(),formatedDate:e+"-"+i+"-"+o,date:t}},t.prototype.getNextNDay=function(t,e){return 0===(e=e||0)||(t=new Date(this.getDateInfo(t).time)).setDate(t.getDate()+e),this.getDateInfo(t)},t.prototype.update=function(t,e){this._firstDayOfWeek=+this._model.getModel("dayLabel").get("firstDay"),this._orient=this._model.get("orient"),this._lineWidth=this._model.getModel("itemStyle").getItemStyle().lineWidth||0,this._rangeInfo=this._getRangeInfo(this._initRangeOption());var n=this._rangeInfo.weeks||1,i=["width","height"],r=this._model.getCellSize().slice(),o=this._model.getBoxLayoutParams(),a="horizontal"===this._orient?[n,7]:[7,n];_.each([0,1],(function(t){h(r,t)&&(o[i[t]]=r[t]*a[t])}));var s={width:e.getWidth(),height:e.getHeight()},l=this._rect=Mn.dV(o,s);function h(t,e){return null!=t[e]&&"auto"!==t[e]}_.each([0,1],(function(t){h(r,t)||(r[t]=l[i[t]]/a[t])})),this._sw=r[0],this._sh=r[1]},t.prototype.dataToPoint=function(t,e){_.isArray(t)&&(t=t[0]),null==e&&(e=!0);var n=this.getDateInfo(t),i=this._rangeInfo,r=n.formatedDate;if(e&&!(n.time>=i.start.time&&n.time<i.end.time+qm))return[NaN,NaN];var o=n.day,a=this._getRangeInfo([i.start.time,r]).nthWeek;return"vertical"===this._orient?[this._rect.x+o*this._sw+this._sw/2,this._rect.y+a*this._sh+this._sh/2]:[this._rect.x+a*this._sw+this._sw/2,this._rect.y+o*this._sh+this._sh/2]},t.prototype.pointToData=function(t){var e=this.pointToDate(t);return e&&e.time},t.prototype.dataToRect=function(t,e){var n=this.dataToPoint(t,e);return{contentShape:{x:n[0]-(this._sw-this._lineWidth)/2,y:n[1]-(this._sh-this._lineWidth)/2,width:this._sw-this._lineWidth,height:this._sh-this._lineWidth},center:n,tl:[n[0]-this._sw/2,n[1]-this._sh/2],tr:[n[0]+this._sw/2,n[1]-this._sh/2],br:[n[0]+this._sw/2,n[1]+this._sh/2],bl:[n[0]-this._sw/2,n[1]+this._sh/2]}},t.prototype.pointToDate=function(t){var e=Math.floor((t[0]-this._rect.x)/this._sw)+1,n=Math.floor((t[1]-this._rect.y)/this._sh)+1,i=this._rangeInfo.range;return"vertical"===this._orient?this._getDateByWeeksAndDay(n,e-1,i):this._getDateByWeeksAndDay(e,n-1,i)},t.prototype.convertToPixel=function(t,e,n){var i=Xm(e);return i===this?i.dataToPoint(n):null},t.prototype.convertFromPixel=function(t,e,n){var i=Xm(e);return i===this?i.pointToData(n):null},t.prototype.containPoint=function(t){return console.warn("Not implemented."),!1},t.prototype._initRangeOption=function(){var t,e=this._model.get("range");if(_.isArray(e)&&1===e.length&&(e=e[0]),_.isArray(e))t=e;else{var n=e.toString();if(/^\d{4}$/.test(n)&&(t=[n+"-01-01",n+"-12-31"]),/^\d{4}[\/|-]\d{1,2}$/.test(n)){var i=this.getDateInfo(n),r=i.date;r.setMonth(r.getMonth()+1);var o=this.getNextNDay(r,-1);t=[i.formatedDate,o.formatedDate]}/^\d{4}[\/|-]\d{1,2}[\/|-]\d{1,2}$/.test(n)&&(t=[n,n])}if(!t)return e;var a=this._getRangeInfo(t);return a.start.time>a.end.time&&t.reverse(),t},t.prototype._getRangeInfo=function(t){var e,n=[this.getDateInfo(t[0]),this.getDateInfo(t[1])];n[0].time>n[1].time&&(e=!0,n.reverse());var i=Math.floor(n[1].time/qm)-Math.floor(n[0].time/qm)+1,r=new Date(n[0].time),o=r.getDate(),a=n[1].date.getDate();r.setDate(o+i-1);var s=r.getDate();if(s!==a)for(var l=r.getTime()-n[1].time>0?1:-1;(s=r.getDate())!==a&&(r.getTime()-n[1].time)*l>0;)i-=l,r.setDate(s-l);var h=Math.floor((i+n[0].day+6)/7),c=e?1-h:h-1;return e&&n.reverse(),{range:[n[0].formatedDate,n[1].formatedDate],start:n[0],end:n[1],allDay:i,weeks:h,nthWeek:c,fweek:n[0].day,lweek:n[1].day}},t.prototype._getDateByWeeksAndDay=function(t,e,n){var i=this._getRangeInfo(n);if(t>i.weeks||0===t&&e<i.fweek||t===i.weeks&&e>i.lweek)return null;var r=7*(t-1)-i.fweek+e,o=new Date(i.start.time);return o.setDate(+i.start.d+r),this.getDateInfo(o)},t.create=function(e,n){var i=[];return e.eachComponent("calendar",(function(r){var o=new t(r,e,n);i.push(o),r.coordinateSystem=o})),e.eachSeries((function(t){"calendar"===t.get("coordinateSystem")&&(t.coordinateSystem=i[t.get("calendarIndex")||0])})),i},t.dimensions=["time","value"],t}();function Zm(t,e){var n;return _.each(e,(function(e){null!=t[e]&&"auto"!==t[e]&&(n=!0)})),n}var $m=["transition","enterFrom","leaveTo"],Km=$m.concat(["enterAnimation","updateAnimation","leaveAnimation"]);function Jm(t,e,n){if(n&&(!t[n]&&e[n]&&(t[n]={}),t=t[n],e=e[n]),t&&e)for(var i=n?$m:Km,r=0;r<i.length;r++){var o=i[r];null==t[o]&&null!=e[o]&&(t[o]=e[o])}}var Qm=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n.preventAutoZ=!0,n}return(0,Bt.C6)(e,t),e.prototype.mergeOption=function(e,n){var i=this.option.elements;this.option.elements=null,t.prototype.mergeOption.call(this,e,n),this.option.elements=i},e.prototype.optionUpdated=function(t,e){var n=this.option,i=(e?n:t).elements,r=n.elements=e?[]:n.elements,o=[];this._flatten(i,o,null);var a=ce.O2(r,o,"normalMerge"),s=this._elOptionsToUpdate=[];_.each(a,(function(t,e){var n=t.newOption;n&&(s.push(n),function(t,e){var n=t.existing;if(e.id=t.keyInfo.id,!e.type&&n&&(e.type=n.type),null==e.parentId){var i=e.parentOption;i?e.parentId=i.id:n&&(e.parentId=n.parentId)}e.parentOption=null}(t,n),function(t,e,n){var i=_.extend({},n),r=t[e],o=n.$action||"merge";"merge"===o?r?(_.merge(r,i,!0),(0,Mn.YA)(r,i,{ignoreSize:!0}),(0,Mn.Ir)(n,r),Jm(n,r),Jm(n,r,"shape"),Jm(n,r,"style"),Jm(n,r,"extra"),n.clipPath=r.clipPath):t[e]=i:"replace"===o?t[e]=i:"remove"===o&&r&&(t[e]=null)}(r,e,n),function(t,e){if(t&&(t.hv=e.hv=[Zm(e,["left","right"]),Zm(e,["top","bottom"])],"group"===t.type)){var n=t,i=e;null==n.width&&(n.width=i.width=0),null==n.height&&(n.height=i.height=0)}}(r[e],n))}),this),n.elements=_.filter(r,(function(t){return t&&delete t.$action,null!=t}))},e.prototype._flatten=function(t,e,n){_.each(t,(function(t){if(t){n&&(t.parentOption=n),e.push(t);var i=t.children;i&&i.length&&this._flatten(i,e,t),delete t.children}}),this)},e.prototype.useElOptionsToUpdate=function(){var t=this._elOptionsToUpdate;return this._elOptionsToUpdate=null,t},e.type="graphic",e.defaultOption={elements:[]},e}(oi.A),tv={path:null,compoundPath:null,group:jt.A,image:l.Ay,text:Z.Ay},ev=ce.$r(),nv=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return(0,Bt.C6)(e,t),e.prototype.init=function(){this._elMap=_.createHashMap()},e.prototype.render=function(t,e,n){t!==this._lastGraphicModel&&this._clear(),this._lastGraphicModel=t,this._updateElements(t),this._relocate(t,n)},e.prototype._updateElements=function(t){var e=t.useElOptionsToUpdate();if(e){var n=this._elMap,i=this.group,r=t.get("z"),o=t.get("zlevel");_.each(e,(function(e){var a=ce.vS(e.id,null),s=null!=a?n.get(a):null,l=ce.vS(e.parentId,null),h=null!=l?n.get(l):i,c=e.type,u=e.style;"text"===c&&u&&e.hv&&e.hv[1]&&(u.textVerticalAlign=u.textBaseline=u.verticalAlign=u.align=null);var d=e.textContent,p=e.textConfig;if(u&&Up(u,c,!!p,!!d)){var f=qp(u,c,!0);!p&&f.textConfig&&(p=e.textConfig=f.textConfig),!d&&f.textContent&&(d=f.textContent)}var g=function(t){return t=_.extend({},t),_.each(["id","parentId","$action","hv","bounding","textContent","clipPath"].concat(Mn.Tj),(function(e){delete t[e]})),t}(e);var m=e.$action||"merge",v="merge"===m,y="replace"===m;if(v){var x=s;(C=!s)?x=rv(a,h,e.type,n):(x&&(ev(x).isNew=!1),gf(x)),x&&(nf(x,g,t,{isInit:C}),av(x,e,r,o))}else if(y){ov(s,e,n,t);var b=rv(a,h,e.type,n);b&&(nf(b,g,t,{isInit:!0}),av(b,e,r,o))}else"remove"===m&&(rf(s,e),ov(s,e,n,t));var w=n.get(a);if(w&&d)if(v){var S=w.getTextContent();S?S.attr(d):w.setTextContent(new Z.Ay(d))}else y&&w.setTextContent(new Z.Ay(d));if(w){var T=e.clipPath;if(T){var M=T.type,A=void 0,C=!1;if(v){var I=w.getClipPath();A=(C=!I||ev(I).type!==M)?iv(M):I}else y&&(C=!0,A=iv(M));w.setClipPath(A),nf(A,T,t,{isInit:C}),mf(A,T.keyframeAnimation,t)}var E=ev(w);w.setTextConfig(p),E.option=e,function(t,e,n){var i=(0,Xt.z)(t).eventData;t.silent||t.ignore||i||(i=(0,Xt.z)(t).eventData={componentType:"graphic",componentIndex:e.componentIndex,name:t.name});i&&(i.info=n.info)}(w,t,e),qt.setTooltipConfig({el:w,componentModel:t,itemName:w.name,itemTooltipOption:e.tooltip}),mf(w,e.keyframeAnimation,t)}}))}},e.prototype._relocate=function(t,e){for(var n=t.option.elements,i=this.group,r=this._elMap,o=e.getWidth(),a=e.getHeight(),s=["x","y"],l=0;l<n.length;l++){var h=n[l];if((f=null!=(p=ce.vS(h.id,null))?r.get(p):null)&&f.isGroup){var c=(g=f.parent)===i,u=ev(f),d=ev(g);u.width=(0,Se.lo)(u.option.width,c?o:d.width)||0,u.height=(0,Se.lo)(u.option.height,c?a:d.height)||0}}for(l=n.length-1;l>=0;l--){var p,f;h=n[l];if(f=null!=(p=ce.vS(h.id,null))?r.get(p):null){var g=f.parent,m=(d=ev(g),g===i?{width:o,height:a}:{width:d.width,height:d.height}),v={},y=Mn.m$(f,h,m,null,{hv:h.hv,boundingMode:h.bounding},v);if(!ev(f).isNew&&y){for(var x=h.transition,b={},w=0;w<s.length;w++){var S=s[w],T=v[S];x&&(af(x)||_.indexOf(x,S)>=0)?b[S]=T:f[S]=T}(0,Ut.oi)(f,b,t,0)}else f.attr(v)}}},e.prototype._clear=function(){var t=this,e=this._elMap;e.each((function(n){ov(n,ev(n).option,e,t._lastGraphicModel)})),this._elMap=_.createHashMap()},e.prototype.dispose=function(){this._clear()},e.type="graphic",e}(ri.A);function iv(t){var e=new(_.hasOwn(tv,t)?tv[t]:qt.getShapeClass(t))({});return ev(e).type=t,e}function rv(t,e,n,i){var r=iv(n);return e.add(r),i.set(t,r),ev(r).id=t,ev(r).isNew=!0,r}function ov(t,e,n,i){t&&t.parent&&("group"===t.type&&t.traverse((function(t){ov(t,e,n,i)})),of(t,e,i),n.removeKey(ev(t).id))}function av(t,e,n,i){t.isGroup||_.each([["cursor",Vo.Ay.prototype.cursor],["zlevel",i||0],["z",n||0],["z2",0]],(function(n){var i=n[0];_.hasOwn(e,i)?t[i]=_.retrieve2(e[i],n[1]):null==t[i]&&(t[i]=n[1])})),_.each(_.keys(e),(function(n){if(0===n.indexOf("on")){var i=e[n];t[n]=_.isFunction(i)?i:null}})),_.hasOwn(e,"draggable")&&(t.draggable=e.draggable),null!=e.name&&(t.name=e.name),null!=e.id&&(t.id=e.id)}var sv=["x","y","radius","angle","single"],lv=["cartesian2d","polar","singleAxis"];function hv(t){return t+"Axis"}function cv(t,e){var n,i=(0,_.createHashMap)(),r=[],o=(0,_.createHashMap)();t.eachComponent({mainType:"dataZoom",query:e},(function(t){o.get(t.uid)||s(t)}));do{n=!1,t.eachComponent("dataZoom",a)}while(n);function a(t){!o.get(t.uid)&&function(t){var e=!1;return t.eachTargetAxis((function(t,n){var r=i.get(t);r&&r[n]&&(e=!0)})),e}(t)&&(s(t),n=!0)}function s(t){o.set(t.uid,!0),r.push(t),t.eachTargetAxis((function(t,e){(i.get(t)||i.set(t,[]))[e]=!0}))}return r}function uv(t){var e=t.ecModel,n={infoList:[],infoMap:(0,_.createHashMap)()};return t.eachTargetAxis((function(t,i){var r=e.getComponent(hv(t),i);if(r){var o=r.getCoordSysModel();if(o){var a=o.uid,s=n.infoMap.get(a);s||(s={model:o,axisModels:[]},n.infoList.push(s),n.infoMap.set(a,s)),s.axisModels.push(r)}}})),n}var dv=function(){function t(){this.indexList=[],this.indexMap=[]}return t.prototype.add=function(t){this.indexMap[t]||(this.indexList.push(t),this.indexMap[t]=!0)},t}(),pv=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n._autoThrottle=!0,n._noTarget=!0,n._rangePropMode=["percent","percent"],n}return(0,Bt.C6)(e,t),e.prototype.init=function(t,e,n){var i=fv(t);this.settledOption=i,this.mergeDefaultAndTheme(t,n),this._doInit(i)},e.prototype.mergeOption=function(t){var e=fv(t);(0,_.merge)(this.option,t,!0),(0,_.merge)(this.settledOption,e,!0),this._doInit(e)},e.prototype._doInit=function(t){var e=this.option;this._setDefaultThrottle(t),this._updateRangeUse(t);var n=this.settledOption;(0,_.each)([["start","startValue"],["end","endValue"]],(function(t,i){"value"===this._rangePropMode[i]&&(e[t[0]]=n[t[0]]=null)}),this),this._resetTarget()},e.prototype._resetTarget=function(){var t=this.get("orient",!0),e=this._targetAxisInfoMap=(0,_.createHashMap)();this._fillSpecifiedTargetAxis(e)?this._orient=t||this._makeAutoOrientByTargetAxis():(this._orient=t||"horizontal",this._fillAutoTargetAxisByOrient(e,this._orient)),this._noTarget=!0,e.each((function(t){t.indexList.length&&(this._noTarget=!1)}),this)},e.prototype._fillSpecifiedTargetAxis=function(t){var e=!1;return(0,_.each)(sv,(function(n){var i=this.getReferringComponents(hv(n),ce.UW);if(i.specified){e=!0;var r=new dv;(0,_.each)(i.models,(function(t){r.add(t.componentIndex)})),t.set(n,r)}}),this),e},e.prototype._fillAutoTargetAxisByOrient=function(t,e){var n=this.ecModel,i=!0;if(i){var r="vertical"===e?"y":"x";o(n.findComponents({mainType:r+"Axis"}),r)}i&&o(n.findComponents({mainType:"singleAxis",filter:function(t){return t.get("orient",!0)===e}}),"single");function o(e,n){var r=e[0];if(r){var o=new dv;if(o.add(r.componentIndex),t.set(n,o),i=!1,"x"===n||"y"===n){var a=r.getReferringComponents("grid",ce.US).models[0];a&&(0,_.each)(e,(function(t){r.componentIndex!==t.componentIndex&&a===t.getReferringComponents("grid",ce.US).models[0]&&o.add(t.componentIndex)}))}}}i&&(0,_.each)(sv,(function(e){if(i){var r=n.findComponents({mainType:hv(e),filter:function(t){return"category"===t.get("type",!0)}});if(r[0]){var o=new dv;o.add(r[0].componentIndex),t.set(e,o),i=!1}}}),this)},e.prototype._makeAutoOrientByTargetAxis=function(){var t;return this.eachTargetAxis((function(e){!t&&(t=e)}),this),"y"===t?"vertical":"horizontal"},e.prototype._setDefaultThrottle=function(t){if(t.hasOwnProperty("throttle")&&(this._autoThrottle=!1),this._autoThrottle){var e=this.ecModel.option;this.option.throttle=e.animation&&e.animationDurationUpdate>0?100:20}},e.prototype._updateRangeUse=function(t){var e=this._rangePropMode,n=this.get("rangeMode");(0,_.each)([["start","startValue"],["end","endValue"]],(function(i,r){var o=null!=t[i[0]],a=null!=t[i[1]];o&&!a?e[r]="percent":!o&&a?e[r]="value":n?e[r]=n[r]:o&&(e[r]="percent")}))},e.prototype.noTarget=function(){return this._noTarget},e.prototype.getFirstTargetAxisModel=function(){var t;return this.eachTargetAxis((function(e,n){null==t&&(t=this.ecModel.getComponent(hv(e),n))}),this),t},e.prototype.eachTargetAxis=function(t,e){this._targetAxisInfoMap.each((function(n,i){(0,_.each)(n.indexList,(function(n){t.call(e,i,n)}))}))},e.prototype.getAxisProxy=function(t,e){var n=this.getAxisModel(t,e);if(n)return n.__dzAxisProxy},e.prototype.getAxisModel=function(t,e){var n=this._targetAxisInfoMap.get(t);if(n&&n.indexMap[e])return this.ecModel.getComponent(hv(t),e)},e.prototype.setRawRange=function(t){var e=this.option,n=this.settledOption;(0,_.each)([["start","startValue"],["end","endValue"]],(function(i){null==t[i[0]]&&null==t[i[1]]||(e[i[0]]=n[i[0]]=t[i[0]],e[i[1]]=n[i[1]]=t[i[1]])}),this),this._updateRangeUse(t)},e.prototype.setCalculatedRange=function(t){var e=this.option;(0,_.each)(["start","startValue","end","endValue"],(function(n){e[n]=t[n]}))},e.prototype.getPercentRange=function(){var t=this.findRepresentativeAxisProxy();if(t)return t.getDataPercentWindow()},e.prototype.getValueRange=function(t,e){if(null!=t||null!=e)return this.getAxisProxy(t,e).getDataValueWindow();var n=this.findRepresentativeAxisProxy();return n?n.getDataValueWindow():void 0},e.prototype.findRepresentativeAxisProxy=function(t){if(t)return t.__dzAxisProxy;for(var e,n=this._targetAxisInfoMap.keys(),i=0;i<n.length;i++)for(var r=n[i],o=this._targetAxisInfoMap.get(r),a=0;a<o.indexList.length;a++){var s=this.getAxisProxy(r,o.indexList[a]);if(s.hostedBy(this))return s;e||(e=s)}return e},e.prototype.getRangePropMode=function(){return this._rangePropMode.slice()},e.prototype.getOrient=function(){return this._orient},e.type="dataZoom",e.dependencies=["xAxis","yAxis","radiusAxis","angleAxis","singleAxis","series","toolbox"],e.defaultOption={z:4,filterMode:"filter",start:0,end:100},e}(oi.A);function fv(t){var e={};return(0,_.each)(["start","end","startValue","endValue","throttle"],(function(n){t.hasOwnProperty(n)&&(e[n]=t[n])})),e}const gv=pv;const mv=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return(0,Bt.C6)(e,t),e.type="dataZoom.select",e}(gv);const vv=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return(0,Bt.C6)(e,t),e.prototype.render=function(t,e,n,i){this.dataZoomModel=t,this.ecModel=e,this.api=n},e.type="dataZoom",e}(ri.A);const yv=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return(0,Bt.C6)(e,t),e.type="dataZoom.select",e}(vv);var _v=n(5389),xv=_.each,bv=Se.Y6,wv=function(){function t(t,e,n,i){this._dimName=t,this._axisIndex=e,this.ecModel=i,this._dataZoomModel=n}return t.prototype.hostedBy=function(t){return this._dataZoomModel===t},t.prototype.getDataValueWindow=function(){return this._valueWindow.slice()},t.prototype.getDataPercentWindow=function(){return this._percentWindow.slice()},t.prototype.getTargetSeriesModels=function(){var t=[];return this.ecModel.eachSeries((function(e){if(function(t){var e=t.get("coordinateSystem");return(0,_.indexOf)(lv,e)>=0}(e)){var n=hv(this._dimName),i=e.getReferringComponents(n,ce.US).models[0];i&&this._axisIndex===i.componentIndex&&t.push(e)}}),this),t},t.prototype.getAxisModel=function(){return this.ecModel.getComponent(this._dimName+"Axis",this._axisIndex)},t.prototype.getMinMaxSpan=function(){return _.clone(this._minMaxSpan)},t.prototype.calculateDataWindow=function(t){var e,n=this._dataExtent,i=this.getAxisModel().axis.scale,r=this._dataZoomModel.getRangePropMode(),o=[0,100],a=[],s=[];xv(["start","end"],(function(l,h){var c=t[l],u=t[l+"Value"];"percent"===r[h]?(null==c&&(c=o[h]),u=i.parse(Se.Cb(c,o,n))):(e=!0,u=null==u?n[h]:i.parse(u),c=Se.Cb(u,n,o)),s[h]=null==u||isNaN(u)?n[h]:u,a[h]=null==c||isNaN(c)?o[h]:c})),bv(s),bv(a);var l=this._minMaxSpan;function h(t,e,n,r,o){var a=o?"Span":"ValueSpan";Kh(0,t,n,"all",l["min"+a],l["max"+a]);for(var s=0;s<2;s++)e[s]=Se.Cb(t[s],n,r,!0),o&&(e[s]=i.parse(e[s]))}return e?h(s,a,n,o,!1):h(a,s,o,n,!0),{valueWindow:s,percentWindow:a}},t.prototype.reset=function(t){if(t===this._dataZoomModel){var e=this.getTargetSeriesModels();this._dataExtent=function(t,e,n){var i=[1/0,-1/0];xv(n,(function(t){(0,vi.PN)(i,t.getData(),e)}));var r=t.getAxisModel(),o=(0,_v.Tc)(r.axis.scale,r,i).calculate();return[o.min,o.max]}(this,this._dimName,e),this._updateMinMaxSpan();var n=this.calculateDataWindow(t.settledOption);this._valueWindow=n.valueWindow,this._percentWindow=n.percentWindow,this._setAxisModel()}},t.prototype.filterData=function(t,e){if(t===this._dataZoomModel){var n=this._dimName,i=this.getTargetSeriesModels(),r=t.get("filterMode"),o=this._valueWindow;"none"!==r&&xv(i,(function(t){var e=t.getData(),i=e.mapDimensionsAll(n);if(i.length){if("weakFilter"===r){var a=e.getStore(),s=_.map(i,(function(t){return e.getDimensionIndex(t)}),e);e.filterSelf((function(t){for(var e,n,r,l=0;l<i.length;l++){var h=a.get(s[l],t),c=!isNaN(h),u=h<o[0],d=h>o[1];if(c&&!u&&!d)return!0;c&&(r=!0),u&&(e=!0),d&&(n=!0)}return r&&e&&n}))}else xv(i,(function(n){if("empty"===r)t.setData(e=e.map(n,(function(t){return function(t){return t>=o[0]&&t<=o[1]}(t)?t:NaN})));else{var i={};i[n]=o,e.selectRange(i)}}));xv(i,(function(t){e.setApproximateExtent(o,t)}))}}))}},t.prototype._updateMinMaxSpan=function(){var t=this._minMaxSpan={},e=this._dataZoomModel,n=this._dataExtent;xv(["min","max"],(function(i){var r=e.get(i+"Span"),o=e.get(i+"ValueSpan");null!=o&&(o=this.getAxisModel().axis.scale.parse(o)),null!=o?r=Se.Cb(n[0]+o,n,[0,100],!0):null!=r&&(o=Se.Cb(r,[0,100],n,!0)-n[0]),t[i+"Span"]=r,t[i+"ValueSpan"]=o}),this)},t.prototype._setAxisModel=function(){var t=this.getAxisModel(),e=this._percentWindow,n=this._valueWindow;if(e){var i=Se.hb(n,[0,500]);i=Math.min(i,20);var r=t.axis.scale.rawExtentInfo;0!==e[0]&&r.setDeterminedMinMax("min",+n[0].toFixed(i)),100!==e[1]&&r.setDeterminedMinMax("max",+n[1].toFixed(i)),r.freeze()}},t}();const Sv=wv;const Tv={getTargetSeries:function(t){function e(e){t.eachComponent("dataZoom",(function(n){n.eachTargetAxis((function(i,r){var o=t.getComponent(hv(i),r);e(i,r,o,n)}))}))}e((function(t,e,n,i){n.__dzAxisProxy=null}));var n=[];e((function(e,i,r,o){r.__dzAxisProxy||(r.__dzAxisProxy=new Sv(e,i,o,t),n.push(r.__dzAxisProxy))}));var i=(0,_.createHashMap)();return(0,_.each)(n,(function(t){(0,_.each)(t.getTargetSeriesModels(),(function(t){i.set(t.uid,t)}))})),i},overallReset:function(t,e){t.eachComponent("dataZoom",(function(t){t.eachTargetAxis((function(e,n){t.getAxisProxy(e,n).reset(t)})),t.eachTargetAxis((function(n,i){t.getAxisProxy(n,i).filterData(t,e)}))})),t.eachComponent("dataZoom",(function(t){var e=t.findRepresentativeAxisProxy();if(e){var n=e.getDataPercentWindow(),i=e.getDataValueWindow();t.setCalculatedRange({start:n[0],end:n[1],startValue:i[0],endValue:i[1]})}}))}};var Mv=!1;function Av(t){Mv||(Mv=!0,t.registerProcessor(t.PRIORITY.PROCESSOR.FILTER,Tv),function(t){t.registerAction("dataZoom",(function(t,e){var n=cv(e,t);(0,_.each)(n,(function(e){e.setRawRange({start:t.start,end:t.end,startValue:t.startValue,endValue:t.endValue})}))}))}(t),t.registerSubTypeDefaulter("dataZoom",(function(){return"slider"})))}function Cv(t){t.registerComponentModel(mv),t.registerComponentView(yv),Av(t)}var Iv=function(){},Ev={};function kv(t,e){Ev[t]=e}function Lv(t){return Ev[t]}const Dv=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return(0,Bt.C6)(e,t),e.prototype.optionUpdated=function(){t.prototype.optionUpdated.apply(this,arguments);var e=this.ecModel;_.each(this.option.feature,(function(t,n){var i=Lv(n);i&&(i.getDefaultOption&&(i.defaultOption=i.getDefaultOption(e)),_.merge(t,i.defaultOption))}))},e.type="toolbox",e.layoutMode={type:"box",ignoreSize:!0},e.defaultOption={show:!0,z:6,orient:"horizontal",left:"right",top:"top",backgroundColor:"transparent",borderColor:"#ccc",borderRadius:0,borderWidth:0,padding:5,itemSize:15,itemGap:8,showTitle:!0,iconStyle:{borderColor:"#666",color:"none"},emphasis:{iconStyle:{borderColor:"#3E98C5"}},tooltip:{show:!1,position:"bottom"}},e}(oi.A);function Pv(t,e){var n=Ie.QX(e.get("padding")),i=e.getItemStyle(["color","opacity"]);return i.fill=e.get("backgroundColor"),t=new be.A({shape:{x:t.x-n[3],y:t.y-n[0],width:t.width+n[1]+n[3],height:t.height+n[0]+n[2],r:e.get("borderRadius")},style:i,silent:!0,z2:-1})}var Rv=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return(0,Bt.C6)(e,t),e.prototype.render=function(t,e,n,i){var r=this.group;if(r.removeAll(),t.get("show")){var o=+t.get("itemSize"),a="vertical"===t.get("orient"),s=t.get("feature")||{},l=this._features||(this._features={}),c=[];_.each(s,(function(t,e){c.push(e)})),new gs.A(this._featureNames||[],c).add(u).update(u).remove(_.curry(u,null)).execute(),this._featureNames=c,function(t,e,n){var i=e.getBoxLayoutParams(),r=e.get("padding"),o={width:n.getWidth(),height:n.getHeight()},a=(0,Mn.dV)(i,o,r);(0,Mn.aP)(e.get("orient"),t,e.get("itemGap"),a.width,a.height),(0,Mn.m$)(t,i,o,r)}(r,t,n),r.add(Pv(r.getBoundingRect(),t)),a||r.eachChild((function(t){var e=t.__title,i=t.ensureState("emphasis"),a=i.textConfig||(i.textConfig={}),s=t.getTextContent(),l=s&&s.ensureState("emphasis");if(l&&!_.isFunction(l)&&e){var c=l.style||(l.style={}),u=h.NO(e,Z.Ay.makeFont(c)),d=t.x+r.x,p=!1;t.y+r.y+o+u.height>n.getHeight()&&(a.position="top",p=!0);var f=p?-5-u.height:o+10;d+u.width/2>n.getWidth()?(a.position=["100%",f],c.align="right"):d-u.width/2<0&&(a.position=[0,f],c.align="left")}}))}function u(h,u){var d,p=c[h],f=c[u],g=s[p],m=new Gi.A(g,t,t.ecModel);if(i&&null!=i.newTitle&&i.featureName===p&&(g.title=i.newTitle),p&&!f){if(function(t){return 0===t.indexOf("my")}(p))d={onclick:m.option.onclick,featureName:p};else{var v=Lv(p);if(!v)return;d=new v}l[p]=d}else if(!(d=l[f]))return;d.uid=(0,Ze.$Q)("toolbox-feature"),d.model=m,d.ecModel=e,d.api=n;var y=d instanceof Iv;p||!f?!m.get("show")||y&&d.unusable?y&&d.remove&&d.remove(e,n):(!function(i,s,l){var h,c,u=i.getModel("iconStyle"),d=i.getModel(["emphasis","iconStyle"]),p=s instanceof Iv&&s.getIcons?s.getIcons():i.get("icon"),f=i.get("title")||{};_.isString(p)?(h={})[l]=p:h=p;_.isString(f)?(c={})[l]=f:c=f;var g=i.iconPaths={};_.each(h,(function(l,h){var p=qt.createIcon(l,{},{x:-o/2,y:-o/2,width:o,height:o});p.setStyle(u.getItemStyle()),p.ensureState("emphasis").style=d.getItemStyle();var f=new Z.Ay({style:{text:c[h],align:d.get("textAlign"),borderRadius:d.get("textBorderRadius"),padding:d.get("textPadding"),fill:null,font:(0,Jt.c8)({fontStyle:d.get("textFontStyle"),fontFamily:d.get("textFontFamily"),fontSize:d.get("textFontSize"),fontWeight:d.get("textFontWeight")},e)},ignore:!0});p.setTextContent(f),qt.setTooltipConfig({el:p,componentModel:t,itemName:h,formatterParamsExtra:{title:c[h]}}),p.__title=c[h],p.on("mouseover",(function(){var e=d.getItemStyle(),i=a?null==t.get("right")&&"right"!==t.get("left")?"right":"left":null==t.get("bottom")&&"bottom"!==t.get("top")?"bottom":"top";f.setStyle({fill:d.get("textFill")||e.fill||e.stroke||"#000",backgroundColor:d.get("textBackgroundColor")}),p.setTextConfig({position:d.get("textPosition")||i}),f.ignore=!t.get("showTitle"),n.enterEmphasis(this)})).on("mouseout",(function(){"emphasis"!==i.get(["iconStatus",h])&&n.leaveEmphasis(this),f.hide()})),("emphasis"===i.get(["iconStatus",h])?Yt.HY:Yt.SD)(p),r.add(p),p.on("click",_.bind(s.onclick,s,e,n,h)),g[h]=p}))}(m,d,p),m.setIconStatus=function(t,e){var n=this.option,i=this.iconPaths;n.iconStatus=n.iconStatus||{},n.iconStatus[t]=e,i[t]&&("emphasis"===e?Yt.HY:Yt.SD)(i[t])},d instanceof Iv&&d.render&&d.render(m,e,n,i)):y&&d.dispose&&d.dispose(e,n)}},e.prototype.updateView=function(t,e,n,i){_.each(this._features,(function(t){t instanceof Iv&&t.updateView&&t.updateView(t.model,e,n,i)}))},e.prototype.remove=function(t,e){_.each(this._features,(function(n){n instanceof Iv&&n.remove&&n.remove(t,e)})),this.group.removeAll()},e.prototype.dispose=function(t,e){_.each(this._features,(function(n){n instanceof Iv&&n.dispose&&n.dispose(t,e)}))},e.type="toolbox",e}(ri.A);const Ov=Rv;const Nv=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return(0,Bt.C6)(e,t),e.prototype.onclick=function(t,e){var n=this.model,i=n.get("name")||t.get("title.0.text")||"echarts",r="svg"===e.getZr().painter.getType(),o=r?"svg":n.get("type",!0)||"png",a=e.getConnectedDataURL({type:o,backgroundColor:n.get("backgroundColor",!0)||t.get("backgroundColor")||"#fff",connectedBackgroundColor:n.get("connectedBackgroundColor"),excludeComponents:n.get("excludeComponents"),pixelRatio:n.get("pixelRatio")}),s=vg.A.browser;if("function"!=typeof MouseEvent||!s.newEdge&&(s.ie||s.edge))if(window.navigator.msSaveOrOpenBlob||r){var l=a.split(","),h=l[0].indexOf("base64")>-1,c=r?decodeURIComponent(l[1]):l[1];h&&(c=window.atob(c));var u=i+"."+o;if(window.navigator.msSaveOrOpenBlob){for(var d=c.length,p=new Uint8Array(d);d--;)p[d]=c.charCodeAt(d);var f=new Blob([p]);window.navigator.msSaveOrOpenBlob(f,u)}else{var g=document.createElement("iframe");document.body.appendChild(g);var m=g.contentWindow,v=m.document;v.open("image/svg+xml","replace"),v.write(c),v.close(),m.focus(),v.execCommand("SaveAs",!0,u),document.body.removeChild(g)}}else{var y=n.get("lang"),_='<body style="margin:0;"><img src="'+a+'" style="max-width:100%;" title="'+(y&&y[0]||"")+'" /></body>',x=window.open();x.document.write(_),x.document.title=i}else{var b=document.createElement("a");b.download=i+"."+o,b.target="_blank",b.href=a;var w=new MouseEvent("click",{view:document.defaultView,bubbles:!0,cancelable:!1});b.dispatchEvent(w)}},e.getDefaultOption=function(t){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:t.getLocaleModel().get(["toolbox","saveAsImage","title"]),type:"png",connectedBackgroundColor:"#fff",name:"",excludeComponents:["toolbox"],lang:t.getLocaleModel().get(["toolbox","saveAsImage","lang"])}},e}(Iv);var Fv="__ec_magicType_stack__",Bv=[["line","bar"],["stack"]],zv=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return(0,Bt.C6)(e,t),e.prototype.getIcons=function(){var t=this.model,e=t.get("icon"),n={};return _.each(t.get("type"),(function(t){e[t]&&(n[t]=e[t])})),n},e.getDefaultOption=function(t){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:t.getLocaleModel().get(["toolbox","magicType","title"]),option:{},seriesIndex:{}}},e.prototype.onclick=function(t,e,n){var i=this.model,r=i.get(["seriesIndex",n]);if(Gv[n]){var o,a={series:[]};_.each(Bv,(function(t){_.indexOf(t,n)>=0&&_.each(t,(function(t){i.setIconStatus(t,"normal")}))})),i.setIconStatus(n,"emphasis"),t.eachComponent({mainType:"series",query:null==r?null:{seriesIndex:r}},(function(t){var e=t.subType,r=t.id,o=Gv[n](e,r,t,i);o&&(_.defaults(o,t.option),a.series.push(o));var s=t.coordinateSystem;if(s&&"cartesian2d"===s.type&&("line"===n||"bar"===n)){var l=s.getAxesByScale("ordinal")[0];if(l){var h=l.dim+"Axis",c=t.getReferringComponents(h,ce.US).models[0].componentIndex;a[h]=a[h]||[];for(var u=0;u<=c;u++)a[h][c]=a[h][c]||{};a[h][c].boundaryGap="bar"===n}}}));var s=n;"stack"===n&&(o=_.merge({stack:i.option.title.tiled,tiled:i.option.title.stack},i.option.title),"emphasis"!==i.get(["iconStatus",n])&&(s="tiled")),e.dispatchAction({type:"changeMagicType",currentType:s,newOption:a,newTitle:o,featureName:"magicType"})}},e}(Iv),Gv={line:function(t,e,n,i){if("bar"===t)return _.merge({id:e,type:"line",data:n.get("data"),stack:n.get("stack"),markPoint:n.get("markPoint"),markLine:n.get("markLine")},i.get(["option","line"])||{},!0)},bar:function(t,e,n,i){if("line"===t)return _.merge({id:e,type:"bar",data:n.get("data"),stack:n.get("stack"),markPoint:n.get("markPoint"),markLine:n.get("markLine")},i.get(["option","bar"])||{},!0)},stack:function(t,e,n,i){var r=n.get("stack")===Fv;if("line"===t||"bar"===t)return i.setIconStatus("stack",r?"normal":"emphasis"),_.merge({id:e,stack:r?"":Fv},i.get(["option","stack"])||{},!0)}};Br.OH({type:"changeMagicType",event:"magicTypeChanged",update:"prepareAndUpdate"},(function(t,e){e.mergeOption(t.newOption)}));const Vv=zv;var jv=new Array(60).join("-"),Hv="\t";function Wv(t){return t.replace(/^\s\s*/,"").replace(/\s\s*$/,"")}var Uv=new RegExp("[\t]+","g");function qv(t,e){var n=t.split(new RegExp("\n*"+jv+"\n*","g")),i={series:[]};return _.each(n,(function(t,n){if(function(t){if(t.slice(0,t.indexOf("\n")).indexOf(Hv)>=0)return!0}(t)){var r=function(t){for(var e=t.split(/\n+/g),n=Wv(e.shift()).split(Uv),i=[],r=_.map(n,(function(t){return{name:t,data:[]}})),o=0;o<e.length;o++){var a=Wv(e[o]).split(Uv);i.push(a.shift());for(var s=0;s<a.length;s++)r[s]&&(r[s].data[o]=a[s])}return{series:r,categories:i}}(t),o=e[n],a=o.axisDim+"Axis";o&&(i[a]=i[a]||[],i[a][o.axisIndex]={data:r.categories},i.series=i.series.concat(r.series))}else{r=function(t){for(var e=t.split(/\n+/g),n=Wv(e.shift()),i=[],r=0;r<e.length;r++){var o=Wv(e[r]);if(o){var a=o.split(Uv),s="",l=void 0,h=!1;isNaN(a[0])?(h=!0,s=a[0],a=a.slice(1),i[r]={name:s,value:[]},l=i[r].value):l=i[r]=[];for(var c=0;c<a.length;c++)l.push(+a[c]);1===l.length&&(h?i[r].value=l[0]:i[r]=l[0])}}return{name:n,data:i}}(t);i.series.push(r)}})),i}var Xv=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return(0,Bt.C6)(e,t),e.prototype.onclick=function(t,e){setTimeout((function(){e.dispatchAction({type:"hideTip"})}));var n=e.getDom(),i=this.model;this._dom&&n.removeChild(this._dom);var r=document.createElement("div");r.style.cssText="position:absolute;top:0;bottom:0;left:0;right:0;padding:5px",r.style.backgroundColor=i.get("backgroundColor")||"#fff";var o=document.createElement("h4"),a=i.get("lang")||[];o.innerHTML=a[0]||i.get("title"),o.style.cssText="margin:10px 20px",o.style.color=i.get("textColor");var s=document.createElement("div"),l=document.createElement("textarea");s.style.cssText="overflow:auto";var h=i.get("optionToContent"),c=i.get("contentToOption"),u=function(t){var e,n,i,r=function(t){var e={},n=[],i=[];return t.eachRawSeries((function(t){var r=t.coordinateSystem;if(!r||"cartesian2d"!==r.type&&"polar"!==r.type)n.push(t);else{var o=r.getBaseAxis();if("category"===o.type){var a=o.dim+"_"+o.index;e[a]||(e[a]={categoryAxis:o,valueAxis:r.getOtherAxis(o),series:[]},i.push({axisDim:o.dim,axisIndex:o.index})),e[a].series.push(t)}else n.push(t)}})),{seriesGroupByCategoryAxis:e,other:n,meta:i}}(t);return{value:_.filter([(n=r.seriesGroupByCategoryAxis,i=[],_.each(n,(function(t,e){var n=t.categoryAxis,r=t.valueAxis.dim,o=[" "].concat(_.map(t.series,(function(t){return t.name}))),a=[n.model.getCategories()];_.each(t.series,(function(t){var e=t.getRawData();a.push(t.getRawData().mapArray(e.mapDimension(r),(function(t){return t})))}));for(var s=[o.join(Hv)],l=0;l<a[0].length;l++){for(var h=[],c=0;c<a.length;c++)h.push(a[c][l]);s.push(h.join(Hv))}i.push(s.join("\n"))})),i.join("\n\n"+jv+"\n\n")),(e=r.other,_.map(e,(function(t){var e=t.getRawData(),n=[t.name],i=[];return e.each(e.dimensions,(function(){for(var t=arguments.length,r=arguments[t-1],o=e.getName(r),a=0;a<t-1;a++)i[a]=arguments[a];n.push((o?o+Hv:"")+i.join(Hv))})),n.join("\n")})).join("\n\n"+jv+"\n\n"))],(function(t){return!!t.replace(/[\n\t\s]/g,"")})).join("\n\n"+jv+"\n\n"),meta:r.meta}}(t);if(_.isFunction(h)){var d=h(e.getOption());_.isString(d)?s.innerHTML=d:_.isDom(d)&&s.appendChild(d)}else{l.readOnly=i.get("readOnly");var p=l.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=i.get("textColor"),p.borderColor=i.get("textareaBorderColor"),p.backgroundColor=i.get("textareaColor"),l.value=u.value,s.appendChild(l)}var f=u.meta,g=document.createElement("div");g.style.cssText="position:absolute;bottom:5px;left:0;right:0";var m="float:right;margin-right:20px;border:none;cursor:pointer;padding:2px 5px;font-size:12px;border-radius:3px",v=document.createElement("div"),y=document.createElement("div");m+=";background-color:"+i.get("buttonColor"),m+=";color:"+i.get("buttonTextColor");var x=this;function b(){n.removeChild(r),x._dom=null}(0,Fr.q2)(v,"click",b),(0,Fr.q2)(y,"click",(function(){if(null==c&&null!=h||null!=c&&null==h)b();else{var t;try{t=_.isFunction(c)?c(s,e.getOption()):qv(l.value,f)}catch(n){throw b(),new Error("Data view format error "+n)}t&&e.dispatchAction({type:"changeDataView",newOption:t}),b()}})),v.innerHTML=a[1],y.innerHTML=a[2],y.style.cssText=v.style.cssText=m,!i.get("readOnly")&&g.appendChild(y),g.appendChild(v),r.appendChild(o),r.appendChild(s),r.appendChild(g),s.style.height=n.clientHeight-80+"px",n.appendChild(r),this._dom=r},e.prototype.remove=function(t,e){this._dom&&e.getDom().removeChild(this._dom)},e.prototype.dispose=function(t,e){this.remove(t,e)},e.getDefaultOption=function(t){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:t.getLocaleModel().get(["toolbox","dataView","title"]),lang:t.getLocaleModel().get(["toolbox","dataView","lang"]),backgroundColor:"#fff",textColor:"#000",textareaColor:"#fff",textareaBorderColor:"#333",buttonColor:"#c23531",buttonTextColor:"#fff"}},e}(Iv);function Yv(t,e){return _.map(t,(function(t,n){var i=e&&e[n];if(_.isObject(i)&&!_.isArray(i)){_.isObject(t)&&!_.isArray(t)||(t={value:t});var r=null!=i.name&&null==t.name;return t=_.defaults(t,i),r&&delete t.name,t}return t}))}Br.OH({type:"changeDataView",event:"dataViewChanged",update:"prepareAndUpdate"},(function(t,e){var n=[];_.each(t.newOption.series,(function(t){var i=e.getSeriesByName(t.name)[0];if(i){var r=i.get("data");n.push({name:t.name,data:Yv(t.data,r)})}else n.push(_.extend({type:"scatter"},t))})),e.mergeOption(_.defaults({series:n},t.newOption))}));const Zv=Xv;var $v=_.each,Kv=(0,ce.$r)();function Jv(t){var e=Kv(t);return e.snapshots||(e.snapshots=[{}]),e.snapshots}var Qv=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return(0,Bt.C6)(e,t),e.prototype.onclick=function(t,e){!function(t){Kv(t).snapshots=null}(t),e.dispatchAction({type:"restore",from:this.uid})},e.getDefaultOption=function(t){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:t.getLocaleModel().get(["toolbox","restore","title"])}},e}(Iv);Br.OH({type:"restore",event:"restore",update:"prepareAndUpdate"},(function(t,e){e.resetOption("recreate")}));const ty=Qv;var ey=["grid","xAxis","yAxis","geo","graph","polar","radiusAxis","angleAxis","bmap"],ny=function(){function t(t,e,n){var i=this;this._targetInfoList=[];var r=ry(e,t);(0,_.each)(oy,(function(t,e){(!n||!n.include||(0,_.indexOf)(n.include,e)>=0)&&t(r,i._targetInfoList)}))}return t.prototype.setOutputRanges=function(t,e){return this.matchOutputRanges(t,e,(function(t,e,n){if((t.coordRanges||(t.coordRanges=[])).push(e),!t.coordRange){t.coordRange=e;var i=ly[t.brushType](0,n,e);t.__rangeOffset={offset:cy[t.brushType](i.values,t.range,[1,1]),xyMinMax:i.xyMinMax}}})),t},t.prototype.matchOutputRanges=function(t,e,n){(0,_.each)(t,(function(t){var i=this.findTargetInfo(t,e);i&&!0!==i&&(0,_.each)(i.coordSyses,(function(i){var r=ly[t.brushType](1,i,t.range,!0);n(t,r.values,i,e)}))}),this)},t.prototype.setInputRanges=function(t,e){(0,_.each)(t,(function(t){var n,i,r,o,a,s=this.findTargetInfo(t,e);if(t.range=t.range||[],s&&!0!==s){t.panelId=s.panelId;var l=ly[t.brushType](0,s.coordSys,t.coordRange),h=t.__rangeOffset;t.range=h?cy[t.brushType](l.values,h.offset,(n=l.xyMinMax,i=h.xyMinMax,r=dy(n),o=dy(i),a=[r[0]/o[0],r[1]/o[1]],isNaN(a[0])&&(a[0]=1),isNaN(a[1])&&(a[1]=1),a)):l.values}}),this)},t.prototype.makePanelOpts=function(t,e){return(0,_.map)(this._targetInfoList,(function(n){var i=n.getPanelRect();return{panelId:n.panelId,defaultBrushType:e?e(n):null,clipPath:nu(i),isTargetByCursor:ru(i,t,n.coordSysModel),getLinearBrushOtherExtent:iu(i)}}))},t.prototype.controlSeries=function(t,e,n){var i=this.findTargetInfo(t,n);return!0===i||i&&(0,_.indexOf)(i.coordSyses,e.coordinateSystem)>=0},t.prototype.findTargetInfo=function(t,e){for(var n=this._targetInfoList,i=ry(e,t),r=0;r<n.length;r++){var o=n[r],a=t.panelId;if(a){if(o.panelId===a)return o}else for(var s=0;s<ay.length;s++)if(ay[s](i,o))return o}return!0},t}();function iy(t){return t[0]>t[1]&&t.reverse(),t}function ry(t,e){return(0,ce._e)(t,e,{includeMainTypes:ey})}var oy={grid:function(t,e){var n=t.xAxisModels,i=t.yAxisModels,r=t.gridModels,o=(0,_.createHashMap)(),a={},s={};(n||i||r)&&((0,_.each)(n,(function(t){var e=t.axis.grid.model;o.set(e.id,e),a[e.id]=!0})),(0,_.each)(i,(function(t){var e=t.axis.grid.model;o.set(e.id,e),s[e.id]=!0})),(0,_.each)(r,(function(t){o.set(t.id,t),a[t.id]=!0,s[t.id]=!0})),o.each((function(t){var r=t.coordinateSystem,o=[];(0,_.each)(r.getCartesians(),(function(t,e){((0,_.indexOf)(n,t.getAxis("x").model)>=0||(0,_.indexOf)(i,t.getAxis("y").model)>=0)&&o.push(t)})),e.push({panelId:"grid--"+t.id,gridModel:t,coordSysModel:t,coordSys:o[0],coordSyses:o,getPanelRect:sy.grid,xAxisDeclared:a[t.id],yAxisDeclared:s[t.id]})})))},geo:function(t,e){(0,_.each)(t.geoModels,(function(t){var n=t.coordinateSystem;e.push({panelId:"geo--"+t.id,geoModel:t,coordSysModel:t,coordSys:n,coordSyses:[n],getPanelRect:sy.geo})}))}},ay=[function(t,e){var n=t.xAxisModel,i=t.yAxisModel,r=t.gridModel;return!r&&n&&(r=n.axis.grid.model),!r&&i&&(r=i.axis.grid.model),r&&r===e.gridModel},function(t,e){var n=t.geoModel;return n&&n===e.geoModel}],sy={grid:function(){return this.coordSys.master.getRect().clone()},geo:function(){var t=this.coordSys,e=t.getBoundingRect().clone();return e.applyTransform(qt.getTransform(t)),e}},ly={lineX:(0,_.curry)(hy,0),lineY:(0,_.curry)(hy,1),rect:function(t,e,n,i){var r=t?e.pointToData([n[0][0],n[1][0]],i):e.dataToPoint([n[0][0],n[1][0]],i),o=t?e.pointToData([n[0][1],n[1][1]],i):e.dataToPoint([n[0][1],n[1][1]],i),a=[iy([r[0],o[0]]),iy([r[1],o[1]])];return{values:a,xyMinMax:a}},polygon:function(t,e,n,i){var r=[[1/0,-1/0],[1/0,-1/0]];return{values:(0,_.map)(n,(function(n){var o=t?e.pointToData(n,i):e.dataToPoint(n,i);return r[0][0]=Math.min(r[0][0],o[0]),r[1][0]=Math.min(r[1][0],o[1]),r[0][1]=Math.max(r[0][1],o[0]),r[1][1]=Math.max(r[1][1],o[1]),o})),xyMinMax:r}}};function hy(t,e,n,i){var r=n.getAxis(["x","y"][t]),o=iy((0,_.map)([0,1],(function(t){return e?r.coordToData(r.toLocalCoord(i[t]),!0):r.toGlobalCoord(r.dataToCoord(i[t]))}))),a=[];return a[t]=o,a[1-t]=[NaN,NaN],{values:o,xyMinMax:a}}var cy={lineX:(0,_.curry)(uy,0),lineY:(0,_.curry)(uy,1),rect:function(t,e,n){return[[t[0][0]-n[0]*e[0][0],t[0][1]-n[0]*e[0][1]],[t[1][0]-n[1]*e[1][0],t[1][1]-n[1]*e[1][1]]]},polygon:function(t,e,n){return(0,_.map)(t,(function(t,i){return[t[0]-n[0]*e[i][0],t[1]-n[1]*e[i][1]]}))}};function uy(t,e,n,i){return[e[0]-i[t]*n[0],e[1]-i[t]*n[1]]}function dy(t){return t?[t[0][1]-t[0][0],t[1][1]-t[1][0]]:[NaN,NaN]}const py=ny;var fy=n(7997),gy=_.each,my=(0,ce.S_)("toolbox-dataZoom_"),vy=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return(0,Bt.C6)(e,t),e.prototype.render=function(t,e,n,i){this._brushController||(this._brushController=new eu(n.getZr()),this._brushController.on("brush",_.bind(this._onBrush,this)).mount()),function(t,e,n,i,r){var o=n._isZoomActive;i&&"takeGlobalCursor"===i.type&&(o="dataZoomSelect"===i.key&&i.dataZoomSelectActive);n._isZoomActive=o,t.setIconStatus("zoom",o?"emphasis":"normal");var a=new py(_y(t),e,{include:["grid"]}),s=a.makePanelOpts(r,(function(t){return t.xAxisDeclared&&!t.yAxisDeclared?"lineX":!t.xAxisDeclared&&t.yAxisDeclared?"lineY":"rect"}));n._brushController.setPanels(s).enableBrush(!(!o||!s.length)&&{brushType:"auto",brushStyle:t.getModel("brushStyle").getItemStyle()})}(t,e,this,i,n),function(t,e){t.setIconStatus("back",function(t){return Jv(t).length}(e)>1?"emphasis":"normal")}(t,e)},e.prototype.onclick=function(t,e,n){yy[n].call(this)},e.prototype.remove=function(t,e){this._brushController&&this._brushController.unmount()},e.prototype.dispose=function(t,e){this._brushController&&this._brushController.dispose()},e.prototype._onBrush=function(t){var e=t.areas;if(t.isEnd&&e.length){var n={},i=this.ecModel;this._brushController.updateCovers([]),new py(_y(this.model),i,{include:["grid"]}).matchOutputRanges(e,i,(function(t,e,n){if("cartesian2d"===n.type){var i=t.brushType;"rect"===i?(r("x",n,e[0]),r("y",n,e[1])):r({lineX:"x",lineY:"y"}[i],n,e)}})),function(t,e){var n=Jv(t);$v(e,(function(e,i){for(var r=n.length-1;r>=0&&!n[r][i];r--);if(r<0){var o=t.queryComponents({mainType:"dataZoom",subType:"select",id:i})[0];if(o){var a=o.getPercentRange();n[0][i]={dataZoomId:i,start:a[0],end:a[1]}}}})),n.push(e)}(i,n),this._dispatchZoomAction(n)}function r(t,e,r){var o=e.getAxis(t),a=o.model,s=function(t,e,n){var i;return n.eachComponent({mainType:"dataZoom",subType:"select"},(function(n){n.getAxisModel(t,e.componentIndex)&&(i=n)})),i}(t,a,i),l=s.findRepresentativeAxisProxy(a).getMinMaxSpan();null==l.minValueSpan&&null==l.maxValueSpan||(r=Kh(0,r.slice(),o.scale.getExtent(),0,l.minValueSpan,l.maxValueSpan)),s&&(n[s.id]={dataZoomId:s.id,startValue:r[0],endValue:r[1]})}},e.prototype._dispatchZoomAction=function(t){var e=[];gy(t,(function(t,n){e.push(_.clone(t))})),e.length&&this.api.dispatchAction({type:"dataZoom",from:this.uid,batch:e})},e.getDefaultOption=function(t){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:t.getLocaleModel().get(["toolbox","dataZoom","title"]),brushStyle:{borderWidth:0,color:"rgba(210,219,238,0.2)"}}},e}(Iv),yy={zoom:function(){var t=!this._isZoomActive;this.api.dispatchAction({type:"takeGlobalCursor",key:"dataZoomSelect",dataZoomSelectActive:t})},back:function(){this._dispatchZoomAction(function(t){var e=Jv(t),n=e[e.length-1];e.length>1&&e.pop();var i={};return $v(n,(function(t,n){for(var r=e.length-1;r>=0;r--)if(t=e[r][n]){i[n]=t;break}})),i}(this.ecModel))}};function _y(t){var e={xAxisIndex:t.get("xAxisIndex",!0),yAxisIndex:t.get("yAxisIndex",!0),xAxisId:t.get("xAxisId",!0),yAxisId:t.get("yAxisId",!0)};return null==e.xAxisIndex&&null==e.xAxisId&&(e.xAxisIndex="all"),null==e.yAxisIndex&&null==e.yAxisId&&(e.yAxisIndex="all"),e}(0,fy.S)("dataZoom",(function(t){var e=t.getComponent("toolbox",0),n=["feature","dataZoom"];if(e&&null!=e.get(n)){var i=e.getModel(n),r=[],o=_y(i),a=(0,ce._e)(t,o);return gy(a.xAxisModels,(function(t){return s(t,"xAxis","xAxisIndex")})),gy(a.yAxisModels,(function(t){return s(t,"yAxis","yAxisIndex")})),r}function s(t,e,n){var o=t.componentIndex,a={type:"select",$fromToolbox:!0,filterMode:i.get("filterMode",!0)||"filter",id:my+e+o};a[n]=o,r.push(a)}}));const xy=vy;const by=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return(0,Bt.C6)(e,t),e.type="tooltip",e.dependencies=["axisPointer"],e.defaultOption={z:60,show:!0,showContent:!0,trigger:"item",triggerOn:"mousemove|click",alwaysShowContent:!1,displayMode:"single",renderMode:"auto",confine:null,showDelay:0,hideDelay:100,transitionDuration:.4,enterable:!1,backgroundColor:"#fff",shadowBlur:10,shadowColor:"rgba(0, 0, 0, .2)",shadowOffsetX:1,shadowOffsetY:2,borderRadius:4,borderWidth:1,padding:null,extraCssText:"",axisPointer:{type:"line",axis:"auto",animation:"auto",animationDurationUpdate:200,animationEasingUpdate:"exponentialOut",crossStyle:{color:"#999",width:1,type:"dashed",textStyle:{}}},textStyle:{color:"#666",fontSize:14}},e}(oi.A);function wy(t){var e=t.get("confine");return null!=e?!!e:"richText"===t.get("renderMode")}function Sy(t){if(vg.A.domSupported)for(var e=document.documentElement.style,n=0,i=t.length;n<i;n++)if(t[n]in e)return t[n]}var Ty=Sy(["transform","webkitTransform","OTransform","MozTransform","msTransform"]);function My(t,e){if(!t)return e;e=(0,Ie.Cb)(e,!0);var n=t.indexOf(e);return(t=-1===n?e:"-"+t.slice(0,n)+"-"+e).toLowerCase()}var Ay=My(Sy(["webkitTransition","transition","OTransition","MozTransition","msTransition"]),"transition"),Cy=My(Ty,"transform"),Iy="position:absolute;display:block;border-style:solid;white-space:nowrap;z-index:9999999;"+(vg.A.transform3dSupported?"will-change:transform;":"");function Ey(t,e,n){var i=t.toFixed(0)+"px",r=e.toFixed(0)+"px";if(!vg.A.transformSupported)return n?"top:"+r+";left:"+i+";":[["top",r],["left",i]];var o=vg.A.transform3dSupported,a="translate"+(o?"3d":"")+"("+i+","+r+(o?",0":"")+")";return n?"top:0;left:0;"+Cy+":"+a+";":[["top",0],["left",0],[Ty,a]]}function ky(t,e,n){var i=[],r=t.get("transitionDuration"),o=t.get("backgroundColor"),a=t.get("shadowBlur"),s=t.get("shadowColor"),l=t.get("shadowOffsetX"),h=t.get("shadowOffsetY"),c=t.getModel("textStyle"),u=(0,br.CO)(t,"html"),d=l+"px "+h+"px "+a+"px "+s;return i.push("box-shadow:"+d),e&&r&&i.push(function(t,e){var n="cubic-bezier(0.23,1,0.32,1)",i=" "+t/2+"s "+n,r="opacity"+i+",visibility"+i;return e||(i=" "+t+"s "+n,r+=vg.A.transformSupported?","+Cy+i:",left"+i+",top"+i),Ay+":"+r}(r,n)),o&&i.push("background-color:"+o),(0,_.each)(["width","color","radius"],(function(e){var n="border-"+e,r=(0,Ie.Cb)(n),o=t.get(r);null!=o&&i.push(n+":"+o+("color"===e?"":"px"))})),i.push(function(t){var e=[],n=t.get("fontSize"),i=t.getTextColor();i&&e.push("color:"+i),e.push("font:"+t.getFont()),n&&e.push("line-height:"+Math.round(3*n/2)+"px");var r=t.get("textShadowColor"),o=t.get("textShadowBlur")||0,a=t.get("textShadowOffsetX")||0,s=t.get("textShadowOffsetY")||0;return r&&o&&e.push("text-shadow:"+a+"px "+s+"px "+o+"px "+r),(0,_.each)(["decoration","align"],(function(n){var i=t.get(n);i&&e.push("text-"+n+":"+i)})),e.join(";")}(c)),null!=u&&i.push("padding:"+(0,Ie.QX)(u).join("px ")+"px"),i.join(";")+";"}function Ly(t,e,n,i,r){var o=e&&e.painter;if(n){var a=o&&o.getViewportRoot();a&&(0,M.lJ)(t,a,n,i,r)}else{t[0]=i,t[1]=r;var s=o&&o.getViewportRootOffset();s&&(t[0]+=s.offsetLeft,t[1]+=s.offsetTop)}t[2]=t[0]/e.getWidth(),t[3]=t[1]/e.getHeight()}var Dy=function(){function t(t,e){if(this._show=!1,this._styleCoord=[0,0,0,0],this._enterable=!0,this._alwaysShowContent=!1,this._firstShow=!0,this._longHide=!0,vg.A.wxa)return null;var n=document.createElement("div");n.domBelongToZr=!0,this.el=n;var i=this._zr=t.getZr(),r=e.appendTo,o=r&&((0,_.isString)(r)?document.querySelector(r):(0,_.isDom)(r)?r:(0,_.isFunction)(r)&&r(t.getDom()));Ly(this._styleCoord,i,o,t.getWidth()/2,t.getHeight()/2),(o||t.getDom()).appendChild(n),this._api=t,this._container=o;var a=this;n.onmouseenter=function(){a._enterable&&(clearTimeout(a._hideTimeout),a._show=!0),a._inContent=!0},n.onmousemove=function(t){if(t=t||window.event,!a._enterable){var e=i.handler,n=i.painter.getViewportRoot();(0,Fr.e0)(n,t,!0),e.dispatch("mousemove",t)}},n.onmouseleave=function(){a._inContent=!1,a._enterable&&a._show&&a.hideLater(a._hideDelay)}}return t.prototype.update=function(t){if(!this._container){var e=this._api.getDom(),n=(o="position",(a=(r=e).currentStyle||document.defaultView&&document.defaultView.getComputedStyle(r))?o?a[o]:a:null),i=e.style;"absolute"!==i.position&&"absolute"!==n&&(i.position="relative")}var r,o,a,s=t.get("alwaysShowContent");s&&this._moveIfResized(),this._alwaysShowContent=s,this.el.className=t.get("className")||""},t.prototype.show=function(t,e){clearTimeout(this._hideTimeout),clearTimeout(this._longHideTimeout);var n=this.el,i=n.style,r=this._styleCoord;n.innerHTML?i.cssText=Iy+ky(t,!this._firstShow,this._longHide)+Ey(r[0],r[1],!0)+"border-color:"+(0,Ie.he)(e)+";"+(t.get("extraCssText")||"")+";pointer-events:"+(this._enterable?"auto":"none"):i.display="none",this._show=!0,this._firstShow=!1,this._longHide=!1},t.prototype.setContent=function(t,e,n,i,r){var o=this.el;if(null!=t){var a="";if((0,_.isString)(r)&&"item"===n.get("trigger")&&!wy(n)&&(a=function(t,e,n){if(!(0,_.isString)(n)||"inside"===n)return"";var i=t.get("backgroundColor"),r=t.get("borderWidth");e=(0,Ie.he)(e);var o,a,s="left"===(o=n)?"right":"right"===o?"left":"top"===o?"bottom":"top",l=Math.max(1.5*Math.round(r),6),h="",c=Cy+":";(0,_.indexOf)(["left","right"],s)>-1?(h+="top:50%",c+="translateY(-50%) rotate("+(a="left"===s?-225:-45)+"deg)"):(h+="left:50%",c+="translateX(-50%) rotate("+(a="top"===s?225:45)+"deg)");var u=a*Math.PI/180,d=l+r,p=d*Math.abs(Math.cos(u))+d*Math.abs(Math.sin(u)),f=e+" solid "+r+"px;";return'<div style="'+["position:absolute;width:"+l+"px;height:"+l+"px;z-index:-1;",(h+=";"+s+":-"+Math.round(100*((p-Math.SQRT2*r)/2+Math.SQRT2*r-(p-d)/2))/100+"px")+";"+c+";","border-bottom:"+f,"border-right:"+f,"background-color:"+i+";"].join("")+'"></div>'}(n,i,r)),(0,_.isString)(t))o.innerHTML=t+a;else if(t){o.innerHTML="",(0,_.isArray)(t)||(t=[t]);for(var s=0;s<t.length;s++)(0,_.isDom)(t[s])&&t[s].parentNode!==o&&o.appendChild(t[s]);if(a&&o.childNodes.length){var l=document.createElement("div");l.innerHTML=a,o.appendChild(l)}}}else o.innerHTML=""},t.prototype.setEnterable=function(t){this._enterable=t},t.prototype.getSize=function(){var t=this.el;return[t.offsetWidth,t.offsetHeight]},t.prototype.moveTo=function(t,e){var n=this._styleCoord;if(Ly(n,this._zr,this._container,t,e),null!=n[0]&&null!=n[1]){var i=this.el.style,r=Ey(n[0],n[1]);(0,_.each)(r,(function(t){i[t[0]]=t[1]}))}},t.prototype._moveIfResized=function(){var t=this._styleCoord[2],e=this._styleCoord[3];this.moveTo(t*this._zr.getWidth(),e*this._zr.getHeight())},t.prototype.hide=function(){var t=this,e=this.el.style;e.visibility="hidden",e.opacity="0",vg.A.transform3dSupported&&(e.willChange=""),this._show=!1,this._longHideTimeout=setTimeout((function(){return t._longHide=!0}),500)},t.prototype.hideLater=function(t){!this._show||this._inContent&&this._enterable||this._alwaysShowContent||(t?(this._hideDelay=t,this._show=!1,this._hideTimeout=setTimeout((0,_.bind)(this.hide,this),t)):this.hide())},t.prototype.isShow=function(){return this._show},t.prototype.dispose=function(){clearTimeout(this._hideTimeout),clearTimeout(this._longHideTimeout);var t=this.el.parentNode;t&&t.removeChild(this.el),this.el=this._container=null},t}();const Py=Dy;var Ry=function(){function t(t){this._show=!1,this._styleCoord=[0,0,0,0],this._alwaysShowContent=!1,this._enterable=!0,this._zr=t.getZr(),Fy(this._styleCoord,this._zr,t.getWidth()/2,t.getHeight()/2)}return t.prototype.update=function(t){var e=t.get("alwaysShowContent");e&&this._moveIfResized(),this._alwaysShowContent=e},t.prototype.show=function(){this._hideTimeout&&clearTimeout(this._hideTimeout),this.el.show(),this._show=!0},t.prototype.setContent=function(t,e,n,i,r){var o=this;_.isObject(t)&&(0,Wu.$8)(""),this.el&&this._zr.remove(this.el);var a=n.getModel("textStyle");this.el=new Z.Ay({style:{rich:e.richTextStyles,text:t,lineHeight:22,borderWidth:1,borderColor:i,textShadowColor:a.get("textShadowColor"),fill:n.get(["textStyle","color"]),padding:(0,br.CO)(n,"richText"),verticalAlign:"top",align:"left"},z:n.get("z")}),_.each(["backgroundColor","borderRadius","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY"],(function(t){o.el.style[t]=n.get(t)})),_.each(["textShadowBlur","textShadowOffsetX","textShadowOffsetY"],(function(t){o.el.style[t]=a.get(t)||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}))},t.prototype.setEnterable=function(t){this._enterable=t},t.prototype.getSize=function(){var t=this.el,e=this.el.getBoundingRect(),n=Ny(t.style);return[e.width+n.left+n.right,e.height+n.top+n.bottom]},t.prototype.moveTo=function(t,e){var n=this.el;if(n){var i=this._styleCoord;Fy(i,this._zr,t,e),t=i[0],e=i[1];var r=n.style,o=Oy(r.borderWidth||0),a=Ny(r);n.x=t+o+a.left,n.y=e+o+a.top,n.markRedraw()}},t.prototype._moveIfResized=function(){var t=this._styleCoord[2],e=this._styleCoord[3];this.moveTo(t*this._zr.getWidth(),e*this._zr.getHeight())},t.prototype.hide=function(){this.el&&this.el.hide(),this._show=!1},t.prototype.hideLater=function(t){!this._show||this._inContent&&this._enterable||this._alwaysShowContent||(t?(this._hideDelay=t,this._show=!1,this._hideTimeout=setTimeout(_.bind(this.hide,this),t)):this.hide())},t.prototype.isShow=function(){return this._show},t.prototype.dispose=function(){this._zr.remove(this.el)},t}();function Oy(t){return Math.max(0,t)}function Ny(t){var e=Oy(t.shadowBlur||0),n=Oy(t.shadowOffsetX||0),i=Oy(t.shadowOffsetY||0);return{left:Oy(e-n),right:Oy(e+n),top:Oy(e-i),bottom:Oy(e+i)}}function Fy(t,e,n,i){t[0]=n,t[1]=i,t[2]=t[0]/e.getWidth(),t[3]=t[1]/e.getHeight()}const By=Ry;var zy=n(383),Gy=n(5864),Vy=new be.A({shape:{x:-1,y:-1,width:2,height:2}}),jy=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return(0,Bt.C6)(e,t),e.prototype.init=function(t,e){if(!vg.A.node&&e.getDom()){var n=t.getComponent("tooltip"),i=this._renderMode=(0,ce.XJ)(n.get("renderMode"));this._tooltipContent="richText"===i?new By(e):new Py(e,{appendTo:n.get("appendToBody",!0)?"body":n.get("appendTo",!0)})}},e.prototype.render=function(t,e,n){if(!vg.A.node&&n.getDom()){this.group.removeAll(),this._tooltipModel=t,this._ecModel=e,this._api=n;var i=this._tooltipContent;i.update(t),i.setEnterable(t.get("enterable")),this._initGlobalListener(),this._keepShow(),"richText"!==this._renderMode&&t.get("transitionDuration")?(0,Ke.N)(this,"_updatePosition",50,"fixRate"):(0,Ke.IU)(this,"_updatePosition")}},e.prototype._initGlobalListener=function(){var t=this._tooltipModel.get("triggerOn");xg("itemTooltip",this._api,(0,_.bind)((function(e,n,i){"none"!==t&&(t.indexOf(e)>=0?this._tryShow(n,i):"leave"===e&&this._hide(i))}),this))},e.prototype._keepShow=function(){var t=this._tooltipModel,e=this._ecModel,n=this._api,i=t.get("triggerOn");if(null!=this._lastX&&null!=this._lastY&&"none"!==i&&"click"!==i){var r=this;clearTimeout(this._refreshUpdateTimeout),this._refreshUpdateTimeout=setTimeout((function(){!n.isDisposed()&&r.manuallyShowTip(t,e,n,{x:r._lastX,y:r._lastY,dataByCoordSys:r._lastDataByCoordSys})}))}},e.prototype.manuallyShowTip=function(t,e,n,i){if(i.from!==this.uid&&!vg.A.node&&n.getDom()){var r=Wy(i,n);this._ticket="";var o=i.dataByCoordSys,a=function(t,e,n){var i=(0,ce.HB)(t).queryOptionMap,r=i.keys()[0];if(!r||"series"===r)return;var o=(0,ce.JO)(e,r,i.get(r),{useDefault:!1,enableAll:!1,enableNone:!1}),a=o.models[0];if(!a)return;var s,l=n.getViewOfComponentModel(a);if(l.group.traverse((function(e){var n=(0,Xt.z)(e).tooltipConfig;if(n&&n.name===t.name)return s=e,!0})),s)return{componentMainType:r,componentIndex:a.componentIndex,el:s}}(i,e,n);if(a){var s=a.el.getBoundingRect().clone();s.applyTransform(a.el.transform),this._tryShow({offsetX:s.x+s.width/2,offsetY:s.y+s.height/2,target:a.el,position:i.position,positionDefault:"bottom"},r)}else if(i.tooltip&&null!=i.x&&null!=i.y){var l=Vy;l.x=i.x,l.y=i.y,l.update(),(0,Xt.z)(l).tooltipConfig={name:null,option:i.tooltip},this._tryShow({offsetX:i.x,offsetY:i.y,target:l},r)}else if(o)this._tryShow({offsetX:i.x,offsetY:i.y,position:i.position,dataByCoordSys:o,tooltipOption:i.tooltipOption},r);else if(null!=i.seriesIndex){if(this._manuallyAxisShowTip(t,e,n,i))return;var h=Ag(i,e),c=h.point[0],u=h.point[1];null!=c&&null!=u&&this._tryShow({offsetX:c,offsetY:u,target:h.el,position:i.position,positionDefault:"bottom"},r)}else null!=i.x&&null!=i.y&&(n.dispatchAction({type:"updateAxisPointer",x:i.x,y:i.y}),this._tryShow({offsetX:i.x,offsetY:i.y,position:i.position,target:n.getZr().findHover(i.x,i.y).target},r))}},e.prototype.manuallyHideTip=function(t,e,n,i){var r=this._tooltipContent;this._tooltipModel&&r.hideLater(this._tooltipModel.get("hideDelay")),this._lastX=this._lastY=this._lastDataByCoordSys=null,i.from!==this.uid&&this._hide(Wy(i,n))},e.prototype._manuallyAxisShowTip=function(t,e,n,i){var r=i.seriesIndex,o=i.dataIndex,a=e.getComponent("axisPointer").coordSysAxesInfo;if(null!=r&&null!=o&&null!=a){var s=e.getSeriesByIndex(r);if(s)if("axis"===Hy([s.getData().getItemModel(o),s,(s.coordinateSystem||{}).model],this._tooltipModel).get("trigger"))return n.dispatchAction({type:"updateAxisPointer",seriesIndex:r,dataIndex:o,position:i.position}),!0}},e.prototype._tryShow=function(t,e){var n=t.target;if(this._tooltipModel){this._lastX=t.offsetX,this._lastY=t.offsetY;var i=t.dataByCoordSys;if(i&&i.length)this._showAxisTooltip(i,t);else if(n){var r,o;if("legend"===(0,Xt.z)(n).ssrType)return;this._lastDataByCoordSys=null,(0,Ma.R)(n,(function(t){return null!=(0,Xt.z)(t).dataIndex?(r=t,!0):null!=(0,Xt.z)(t).tooltipConfig?(o=t,!0):void 0}),!0),r?this._showSeriesItemTooltip(t,r,e):o?this._showComponentItemTooltip(t,o,e):this._hide(e)}else this._lastDataByCoordSys=null,this._hide(e)}},e.prototype._showOrMove=function(t,e){var n=t.get("showDelay");e=(0,_.bind)(e,this),clearTimeout(this._showTimout),n>0?this._showTimout=setTimeout(e,n):e()},e.prototype._showAxisTooltip=function(t,e){var n=this._ecModel,i=this._tooltipModel,r=[e.offsetX,e.offsetY],o=Hy([e.tooltipOption],i),a=this._renderMode,s=[],l=(0,br.Qx)("section",{blocks:[],noHeader:!0}),h=[],c=new br.lb;(0,_.each)(t,(function(t){(0,_.each)(t.dataByAxis,(function(t){var e=n.getComponent(t.axisDim+"Axis",t.axisIndex),r=t.value;if(e&&null!=r){var o=og(r,e.axis,n,t.seriesDataIndices,t.valueLabelOpt),u=(0,br.Qx)("section",{header:o,noHeader:!(0,_.trim)(o),sortBlocks:!0,blocks:[]});l.blocks.push(u),(0,_.each)(t.seriesDataIndices,(function(l){var d=n.getSeriesByIndex(l.seriesIndex),p=l.dataIndexInside,f=d.getDataParams(p);if(!(f.dataIndex<0)){f.axisDim=t.axisDim,f.axisIndex=t.axisIndex,f.axisType=t.axisType,f.axisId=t.axisId,f.axisValue=vi.Dt(e.axis,{value:r}),f.axisValueLabel=o,f.marker=c.makeTooltipMarker("item",(0,Ie.he)(f.color),a);var g=(0,Gy.L)(d.formatTooltip(p,!0,null)),m=g.frag;if(m){var v=Hy([d],i).get("valueFormatter");u.blocks.push(v?(0,_.extend)({valueFormatter:v},m):m)}g.text&&h.push(g.text),s.push(f)}}))}}))})),l.blocks.reverse(),h.reverse();var u=e.position,d=o.get("order"),p=(0,br.Yu)(l,c,a,d,n.get("useUTC"),o.get("textStyle"));p&&h.unshift(p);var f="richText"===a?"\n\n":"<br/>",g=h.join(f);this._showOrMove(o,(function(){this._updateContentNotChangedOnAxis(t,s)?this._updatePosition(o,u,r[0],r[1],this._tooltipContent,s):this._showTooltipContent(o,g,s,Math.random()+"",r[0],r[1],u,null,c)}))},e.prototype._showSeriesItemTooltip=function(t,e,n){var i=this._ecModel,r=(0,Xt.z)(e),o=r.seriesIndex,a=i.getSeriesByIndex(o),s=r.dataModel||a,l=r.dataIndex,h=r.dataType,c=s.getData(h),u=this._renderMode,d=t.positionDefault,p=Hy([c.getItemModel(l),s,a&&(a.coordinateSystem||{}).model],this._tooltipModel,d?{position:d}:null),f=p.get("trigger");if(null==f||"item"===f){var g=s.getDataParams(l,h),m=new br.lb;g.marker=m.makeTooltipMarker("item",(0,Ie.he)(g.color),u);var v=(0,Gy.L)(s.formatTooltip(l,!1,h)),y=p.get("order"),x=p.get("valueFormatter"),b=v.frag,w=b?(0,br.Yu)(x?(0,_.extend)({valueFormatter:x},b):b,m,u,y,i.get("useUTC"),p.get("textStyle")):v.text,S="item_"+s.name+"_"+l;this._showOrMove(p,(function(){this._showTooltipContent(p,w,g,S,t.offsetX,t.offsetY,t.position,t.target,m)})),n({type:"showTip",dataIndexInside:l,dataIndex:c.getRawIndex(l),seriesIndex:o,from:this.uid})}},e.prototype._showComponentItemTooltip=function(t,e,n){var i="html"===this._renderMode,r=(0,Xt.z)(e),o=r.tooltipConfig.option||{},a=o.encodeHTMLContent;if((0,_.isString)(o)){o={content:o,formatter:o},a=!0}a&&i&&o.content&&((o=(0,_.clone)(o)).content=(0,M.Me)(o.content));var s=[o],l=this._ecModel.getComponent(r.componentMainType,r.componentIndex);l&&s.push(l),s.push({formatter:o.content});var h=t.positionDefault,c=Hy(s,this._tooltipModel,h?{position:h}:null),u=c.get("content"),d=Math.random()+"",p=new br.lb;this._showOrMove(c,(function(){var n=(0,_.clone)(c.get("formatterParams")||{});this._showTooltipContent(c,u,n,d,t.offsetX,t.offsetY,t.position,e,p)})),n({type:"showTip",from:this.uid})},e.prototype._showTooltipContent=function(t,e,n,i,r,o,a,s,l){if(this._ticket="",t.get("showContent")&&t.get("show")){var h=this._tooltipContent;h.setEnterable(t.get("enterable"));var c=t.get("formatter");a=a||t.get("position");var u=e,d=this._getNearestPoint([r,o],n,t.get("trigger"),t.get("borderColor")).color;if(c)if((0,_.isString)(c)){var p=t.ecModel.get("useUTC"),f=(0,_.isArray)(n)?n[0]:n;u=c,f&&f.axisType&&f.axisType.indexOf("time")>=0&&(u=(0,zy.GP)(f.axisValue,u,p)),u=(0,Ie.YK)(u,n,!0)}else if((0,_.isFunction)(c)){var g=(0,_.bind)((function(e,i){e===this._ticket&&(h.setContent(i,l,t,d,a),this._updatePosition(t,a,r,o,h,n,s))}),this);this._ticket=i,u=c(n,i,g)}else u=c;h.setContent(u,l,t,d,a),h.show(t,d),this._updatePosition(t,a,r,o,h,n,s)}},e.prototype._getNearestPoint=function(t,e,n,i){return"axis"===n||(0,_.isArray)(e)?{color:i||("html"===this._renderMode?"#fff":"none")}:(0,_.isArray)(e)?void 0:{color:i||e.color||e.borderColor}},e.prototype._updatePosition=function(t,e,n,i,r,o,a){var s=this._api.getWidth(),l=this._api.getHeight();e=e||t.get("position");var h=r.getSize(),c=t.get("align"),u=t.get("verticalAlign"),d=a&&a.getBoundingRect().clone();if(a&&d.applyTransform(a.transform),(0,_.isFunction)(e)&&(e=e([n,i],o,r.el,d,{viewSize:[s,l],contentSize:h.slice()})),(0,_.isArray)(e))n=(0,Se.lo)(e[0],s),i=(0,Se.lo)(e[1],l);else if((0,_.isObject)(e)){var p=e;p.width=h[0],p.height=h[1];var f=(0,Mn.dV)(p,{width:s,height:l});n=f.x,i=f.y,c=null,u=null}else if((0,_.isString)(e)&&a){var g=function(t,e,n,i){var r=n[0],o=n[1],a=Math.ceil(Math.SQRT2*i)+8,s=0,l=0,h=e.width,c=e.height;switch(t){case"inside":s=e.x+h/2-r/2,l=e.y+c/2-o/2;break;case"top":s=e.x+h/2-r/2,l=e.y-o-a;break;case"bottom":s=e.x+h/2-r/2,l=e.y+c+a;break;case"left":s=e.x-r-a,l=e.y+c/2-o/2;break;case"right":s=e.x+h+a,l=e.y+c/2-o/2}return[s,l]}(e,d,h,t.get("borderWidth"));n=g[0],i=g[1]}else{g=function(t,e,n,i,r,o,a){var s=n.getSize(),l=s[0],h=s[1];null!=o&&(t+l+o+2>i?t-=l+o:t+=o);null!=a&&(e+h+a>r?e-=h+a:e+=a);return[t,e]}(n,i,r,s,l,c?null:20,u?null:20);n=g[0],i=g[1]}if(c&&(n-=Uy(c)?h[0]/2:"right"===c?h[0]:0),u&&(i-=Uy(u)?h[1]/2:"bottom"===u?h[1]:0),wy(t)){g=function(t,e,n,i,r){var o=n.getSize(),a=o[0],s=o[1];return t=Math.min(t+a,i)-a,e=Math.min(e+s,r)-s,t=Math.max(t,0),e=Math.max(e,0),[t,e]}(n,i,r,s,l);n=g[0],i=g[1]}r.moveTo(n,i)},e.prototype._updateContentNotChangedOnAxis=function(t,e){var n=this._lastDataByCoordSys,i=this._cbParamsList,r=!!n&&n.length===t.length;return r&&(0,_.each)(n,(function(n,o){var a=n.dataByAxis||[],s=(t[o]||{}).dataByAxis||[];(r=r&&a.length===s.length)&&(0,_.each)(a,(function(t,n){var o=s[n]||{},a=t.seriesDataIndices||[],l=o.seriesDataIndices||[];(r=r&&t.value===o.value&&t.axisType===o.axisType&&t.axisId===o.axisId&&a.length===l.length)&&(0,_.each)(a,(function(t,e){var n=l[e];r=r&&t.seriesIndex===n.seriesIndex&&t.dataIndex===n.dataIndex})),i&&(0,_.each)(t.seriesDataIndices,(function(t){var n=t.seriesIndex,o=e[n],a=i[n];o&&a&&a.data!==o.data&&(r=!1)}))}))})),this._lastDataByCoordSys=t,this._cbParamsList=e,!!r},e.prototype._hide=function(t){this._lastDataByCoordSys=null,t({type:"hideTip",from:this.uid})},e.prototype.dispose=function(t,e){!vg.A.node&&e.getDom()&&((0,Ke.IU)(this,"_updatePosition"),this._tooltipContent.dispose(),Sg("itemTooltip",e))},e.type="tooltip",e}(ri.A);function Hy(t,e,n){var i,r=e.ecModel;n?(i=new Gi.A(n,r,r),i=new Gi.A(e.option,i,r)):i=e;for(var o=t.length-1;o>=0;o--){var a=t[o];a&&(a instanceof Gi.A&&(a=a.get("tooltip",!0)),(0,_.isString)(a)&&(a={formatter:a}),a&&(i=new Gi.A(a,i,r)))}return i}function Wy(t,e){return t.dispatchAction||(0,_.bind)(e.dispatchAction,e)}function Uy(t){return"center"===t||"middle"===t}const qy=jy;var Xy=["rect","polygon","keep","clear"];function Yy(t,e){var n=(0,ce.qB)(t?t.brush:[]);if(n.length){var i=[];_.each(n,(function(t){var e=t.hasOwnProperty("toolbox")?t.toolbox:[];e instanceof Array&&(i=i.concat(e))}));var r=t&&t.toolbox;_.isArray(r)&&(r=r[0]),r||(r={feature:{}},t.toolbox=[r]);var o,a,s=r.feature||(r.feature={}),l=s.brush||(s.brush={}),h=l.type||(l.type=[]);h.push.apply(h,i),o=h,a={},_.each(o,(function(t){a[t]=1})),o.length=0,_.each(a,(function(t,e){o.push(e)})),e&&!h.length&&h.push.apply(h,Xy)}}var Zy=n(2322),$y=_.each;function Ky(t){if(t)for(var e in t)if(t.hasOwnProperty(e))return!0}function Jy(t,e,n){var i={};return $y(e,(function(e){var r,o=i[e]=((r=function(){}).prototype.__hidden=r.prototype,new r);$y(t[e],(function(t,i){if(Zs.isValidType(i)){var r={type:i,visual:t};n&&n(r,e),o[i]=new Zs(r),"opacity"===i&&((r=_.clone(r)).type="colorAlpha",o.__hidden.__alphaForOpacity=new Zs(r))}}))})),i}function Qy(t,e,n){var i;_.each(n,(function(t){e.hasOwnProperty(t)&&Ky(e[t])&&(i=!0)})),i&&_.each(n,(function(n){e.hasOwnProperty(n)&&Ky(e[n])?t[n]=_.clone(e[n]):delete t[n]}))}var t_=n(248);var e_={lineX:n_(0),lineY:n_(1),rect:{point:function(t,e,n){return t&&n.boundingRect.contain(t[0],t[1])},rect:function(t,e,n){return t&&n.boundingRect.intersect(t)}},polygon:{point:function(t,e,n){return t&&n.boundingRect.contain(t[0],t[1])&&t_.l(n.range,t[0],t[1])},rect:function(t,e,n){var i=n.range;if(!t||i.length<=1)return!1;var r=t.x,o=t.y,a=t.width,s=t.height,l=i[0];return!!(t_.l(i,r,o)||t_.l(i,r+a,o)||t_.l(i,r,o+s)||t_.l(i,r+a,o+s)||Jn.A.create(t).contain(l[0],l[1])||(0,qt.linePolygonIntersect)(r,o,r+a,o,i)||(0,qt.linePolygonIntersect)(r,o,r,o+s,i)||(0,qt.linePolygonIntersect)(r+a,o,r+a,o+s,i)||(0,qt.linePolygonIntersect)(r,o+s,r+a,o+s,i))||void 0}}};function n_(t){var e=["x","y"],n=["width","height"];return{point:function(e,n,i){if(e){var r=i.range;return i_(e[t],r)}},rect:function(i,r,o){if(i){var a=o.range,s=[i[e[t]],i[e[t]]+i[n[t]]];return s[1]<s[0]&&s.reverse(),i_(s[0],a)||i_(s[1],a)||i_(a[0],s)||i_(a[1],s)}}}}function i_(t,e){return e[0]<=t&&t<=e[1]}var r_=["inBrush","outOfBrush"],o_="__ecBrushSelect",a_="__ecInBrushSelectEvent";function s_(t){t.eachComponent({mainType:"brush"},(function(e){(e.brushTargetManager=new py(e.option,t)).setInputRanges(e.areas,t)}))}function l_(t,e,n){var i,r,o=[];t.eachComponent({mainType:"brush"},(function(t){n&&"takeGlobalCursor"===n.type&&t.setBrushOption("brush"===n.key?n.brushOption:{brushType:!1})})),s_(t),t.eachComponent({mainType:"brush"},(function(e,n){var a={brushId:e.id,brushIndex:n,brushName:e.name,areas:_.clone(e.areas),selected:[]};o.push(a);var s=e.option,l=s.brushLink,h=[],c=[],u=[],d=!1;n||(i=s.throttleType,r=s.throttleDelay);var p=_.map(e.areas,(function(t){var e=u_[t.brushType],n=_.defaults({boundingRect:e?e(t):void 0},t);return n.selectors=function(t){var e=t.brushType,n={point:function(i){return e_[e].point(i,n,t)},rect:function(i){return e_[e].rect(i,n,t)}};return n}(n),n})),f=Jy(e.option,r_,(function(t){t.mappingMethod="fixed"}));function g(t){return"all"===l||!!h[t]}function m(t){return!!t.length}_.isArray(l)&&_.each(l,(function(t){h[t]=1})),t.eachSeries((function(n,i){var r=u[i]=[];"parallel"===n.subType?function(t,e){var n=t.coordinateSystem;d=d||n.hasAxisBrushed(),g(e)&&n.eachActiveState(t.getData(),(function(t,e){"active"===t&&(c[e]=1)}))}(n,i):function(n,i,r){if(!n.brushSelector||function(t,e){var n=t.option.seriesIndex;return null!=n&&"all"!==n&&(_.isArray(n)?_.indexOf(n,e)<0:e!==n)}(e,i))return;if(_.each(p,(function(i){e.brushTargetManager.controlSeries(i,n,t)&&r.push(i),d=d||m(r)})),g(i)&&m(r)){var o=n.getData();o.each((function(t){c_(n,r,o,t)&&(c[t]=1)}))}}(n,i,r)})),t.eachSeries((function(t,e){var n={seriesId:t.id,seriesIndex:e,seriesName:t.name,dataIndex:[]};a.selected.push(n);var i=u[e],r=t.getData(),o=g(e)?function(t){return c[t]?(n.dataIndex.push(r.getRawIndex(t)),"inBrush"):"outOfBrush"}:function(e){return c_(t,i,r,e)?(n.dataIndex.push(r.getRawIndex(e)),"inBrush"):"outOfBrush"};(g(e)?d:m(i))&&function(t,e,n,i,r,o){var a,s={};function l(t){return(0,Zy.Ez)(n,a,t)}function h(t,e){(0,Zy.oZ)(n,a,t,e)}function c(t,c){a=null==o?t:c;var u=n.getRawDataItem(a);if(!u||!1!==u.visualMap)for(var d=i.call(r,t),p=e[d],f=s[d],g=0,m=f.length;g<m;g++){var v=f[g];p[v]&&p[v].applyVisual(t,l,h)}}_.each(t,(function(t){var n=Zs.prepareVisualTypes(e[t]);s[t]=n})),null==o?n.each(c):n.each([o],c)}(r_,f,r,o)}))})),function(t,e,n,i,r){if(!r)return;var o=t.getZr();if(o[a_])return;o[o_]||(o[o_]=h_);var a=Ke.N(o,o_,n,e);a(t,i)}(e,i,r,o,n)}function h_(t,e){if(!t.isDisposed()){var n=t.getZr();n[a_]=!0,t.dispatchAction({type:"brushSelect",batch:e}),n[a_]=!1}}function c_(t,e,n,i){for(var r=0,o=e.length;r<o;r++){var a=e[r];if(t.brushSelector(i,n,a.selectors,a))return!0}}var u_={rect:function(t){return d_(t.range)},polygon:function(t){for(var e,n=t.range,i=0,r=n.length;i<r;i++){e=e||[[1/0,-1/0],[1/0,-1/0]];var o=n[i];o[0]<e[0][0]&&(e[0][0]=o[0]),o[0]>e[0][1]&&(e[0][1]=o[0]),o[1]<e[1][0]&&(e[1][0]=o[1]),o[1]>e[1][1]&&(e[1][1]=o[1])}return e&&d_(e)}};function d_(t){return new Jn.A(t[0][0],t[1][0],t[0][1]-t[0][0],t[1][1]-t[1][0])}const p_=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return(0,Bt.C6)(e,t),e.prototype.init=function(t,e){this.ecModel=t,this.api=e,this.model,(this._brushController=new eu(e.getZr())).on("brush",_.bind(this._onBrush,this)).mount()},e.prototype.render=function(t,e,n,i){this.model=t,this._updateController(t,e,n,i)},e.prototype.updateTransform=function(t,e,n,i){s_(e),this._updateController(t,e,n,i)},e.prototype.updateVisual=function(t,e,n,i){this.updateTransform(t,e,n,i)},e.prototype.updateView=function(t,e,n,i){this._updateController(t,e,n,i)},e.prototype._updateController=function(t,e,n,i){(!i||i.$from!==t.id)&&this._brushController.setPanels(t.brushTargetManager.makePanelOpts(n)).enableBrush(t.brushOption).updateCovers(t.areas.slice())},e.prototype.dispose=function(){this._brushController.dispose()},e.prototype._onBrush=function(t){var e=this.model.id,n=this.model.brushTargetManager.setOutputRanges(t.areas,this.ecModel);(!t.isEnd||t.removeOnClick)&&this.api.dispatchAction({type:"brush",brushId:e,areas:_.clone(n),$from:e}),t.isEnd&&this.api.dispatchAction({type:"brushEnd",brushId:e,areas:_.clone(n),$from:e})},e.type="brush",e}(ri.A);function f_(t,e){return _.merge({brushType:t.brushType,brushMode:t.brushMode,transformable:t.transformable,brushStyle:new Gi.A(t.brushStyle).getItemStyle(),removeOnClick:t.removeOnClick,z:t.z},e,!0)}const g_=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n.areas=[],n.brushOption={},n}return(0,Bt.C6)(e,t),e.prototype.optionUpdated=function(t,e){var n=this.option;!e&&Qy(n,t,["inBrush","outOfBrush"]);var i=n.inBrush=n.inBrush||{};n.outOfBrush=n.outOfBrush||{color:"#ddd"},i.hasOwnProperty("liftZ")||(i.liftZ=5)},e.prototype.setAreas=function(t){t&&(this.areas=_.map(t,(function(t){return f_(this.option,t)}),this))},e.prototype.setBrushOption=function(t){this.brushOption=f_(this.option,t),this.brushType=this.brushOption.brushType},e.type="brush",e.dependencies=["geo","grid","xAxis","yAxis","parallel","series"],e.defaultOption={seriesIndex:"all",brushType:"rect",brushMode:"single",transformable:!0,brushStyle:{borderWidth:1,color:"rgba(210,219,238,0.3)",borderColor:"#D2DBEE"},throttleType:"fixRate",throttleDelay:0,removeOnClick:!0,z:1e4},e}(oi.A);var m_=["rect","polygon","lineX","lineY","keep","clear"];const v_=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return(0,Bt.C6)(e,t),e.prototype.render=function(t,e,n){var i,r,o;e.eachComponent({mainType:"brush"},(function(t){i=t.brushType,r=t.brushOption.brushMode||"single",o=o||!!t.areas.length})),this._brushType=i,this._brushMode=r,_.each(t.get("type",!0),(function(e){t.setIconStatus(e,("keep"===e?"multiple"===r:"clear"===e?o:e===i)?"emphasis":"normal")}))},e.prototype.updateView=function(t,e,n){this.render(t,e,n)},e.prototype.getIcons=function(){var t=this.model,e=t.get("icon",!0),n={};return _.each(t.get("type",!0),(function(t){e[t]&&(n[t]=e[t])})),n},e.prototype.onclick=function(t,e,n){var i=this._brushType,r=this._brushMode;"clear"===n?(e.dispatchAction({type:"axisAreaSelect",intervals:[]}),e.dispatchAction({type:"brush",command:"clear",areas:[]})):e.dispatchAction({type:"takeGlobalCursor",key:"brush",brushOption:{brushType:"keep"===n?i:i!==n&&n,brushMode:"keep"===n?"multiple"===r?"single":"multiple":r}})},e.getDefaultOption=function(t){return{show:!0,type:m_.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:t.getLocaleModel().get(["toolbox","brush","title"])}},e}(Iv);var y_=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n.layoutMode={type:"box",ignoreSize:!0},n}return(0,Bt.C6)(e,t),e.type="title",e.defaultOption={z:6,show:!0,text:"",target:"blank",subtext:"",subtarget:"blank",left:0,top:0,backgroundColor:"rgba(0,0,0,0)",borderColor:"#ccc",borderWidth:0,padding:5,itemGap:10,textStyle:{fontSize:18,fontWeight:"bold",color:"#464646"},subtextStyle:{fontSize:12,color:"#6E7079"}},e}(oi.A),__=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return(0,Bt.C6)(e,t),e.prototype.render=function(t,e,n){if(this.group.removeAll(),t.get("show")){var i=this.group,r=t.getModel("textStyle"),o=t.getModel("subtextStyle"),a=t.get("textAlign"),s=_.retrieve2(t.get("textBaseline"),t.get("textVerticalAlign")),l=new Z.Ay({style:(0,Jt.VB)(r,{text:t.get("text"),fill:r.getTextColor()},{disableBox:!0}),z2:10}),h=l.getBoundingRect(),c=t.get("subtext"),u=new Z.Ay({style:(0,Jt.VB)(o,{text:c,fill:o.getTextColor(),y:h.height+t.get("itemGap"),verticalAlign:"top"},{disableBox:!0}),z2:10}),d=t.get("link"),p=t.get("sublink"),f=t.get("triggerEvent",!0);l.silent=!d&&!f,u.silent=!p&&!f,d&&l.on("click",(function(){(0,Ie.JW)(d,"_"+t.get("target"))})),p&&u.on("click",(function(){(0,Ie.JW)(p,"_"+t.get("subtarget"))})),(0,Xt.z)(l).eventData=(0,Xt.z)(u).eventData=f?{componentType:"title",componentIndex:t.componentIndex}:null,i.add(l),c&&i.add(u);var g=i.getBoundingRect(),m=t.getBoxLayoutParams();m.width=g.width,m.height=g.height;var v=(0,Mn.dV)(m,{width:n.getWidth(),height:n.getHeight()},t.get("padding"));a||("middle"===(a=t.get("left")||t.get("right"))&&(a="center"),"right"===a?v.x+=v.width:"center"===a&&(v.x+=v.width/2)),s||("center"===(s=t.get("top")||t.get("bottom"))&&(s="middle"),"bottom"===s?v.y+=v.height:"middle"===s&&(v.y+=v.height/2),s=s||"top"),i.x=v.x,i.y=v.y,i.markRedraw();var y={align:a,verticalAlign:s};l.setStyle(y),u.setStyle(y),g=i.getBoundingRect();var x=v.margin,b=t.getItemStyle(["color","opacity"]);b.fill=t.get("backgroundColor");var w=new be.A({shape:{x:g.x-x[3],y:g.y-x[0],width:g.width+x[1]+x[3],height:g.height+x[0]+x[2],r:t.get("borderRadius")},style:b,subPixelOptimize:!0,silent:!0});i.add(w)}},e.type="title",e}(ri.A);var x_=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n.layoutMode="box",n}return(0,Bt.C6)(e,t),e.prototype.init=function(t,e,n){this.mergeDefaultAndTheme(t,n),this._initData()},e.prototype.mergeOption=function(e){t.prototype.mergeOption.apply(this,arguments),this._initData()},e.prototype.setCurrentIndex=function(t){null==t&&(t=this.option.currentIndex);var e=this._data.count();this.option.loop?t=(t%e+e)%e:(t>=e&&(t=e-1),t<0&&(t=0)),this.option.currentIndex=t},e.prototype.getCurrentIndex=function(){return this.option.currentIndex},e.prototype.isIndexMax=function(){return this.getCurrentIndex()>=this._data.count()-1},e.prototype.setPlayState=function(t){this.option.autoPlay=!!t},e.prototype.getPlayState=function(){return!!this.option.autoPlay},e.prototype._initData=function(){var t,e=this.option,n=e.data||[],i=e.axisType,r=this._names=[];"category"===i?(t=[],(0,_.each)(n,(function(e,n){var i,o=(0,ce.vS)((0,ce.vj)(e),"");(0,_.isObject)(e)?(i=(0,_.clone)(e)).value=n:i=n,t.push(i),r.push(o)}))):t=n;var o={category:"ordinal",time:"time",value:"number"}[i]||"number";(this._data=new Un.A([{name:"value",type:o}],this)).initData(t,r)},e.prototype.getData=function(){return this._data},e.prototype.getCategories=function(){if("category"===this.get("axisType"))return this._names.slice()},e.type="timeline",e.defaultOption={z:4,show:!0,axisType:"time",realtime:!0,left:"20%",top:null,right:"20%",bottom:0,width:null,height:40,padding:5,controlPosition:"left",autoPlay:!1,rewind:!1,loop:!0,playInterval:2e3,currentIndex:0,itemStyle:{},label:{color:"#000"},data:[]},e}(oi.A);const b_=x_;var w_=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return(0,Bt.C6)(e,t),e.type="timeline.slider",e.defaultOption=(0,Ze.G_)(b_.defaultOption,{backgroundColor:"rgba(0,0,0,0)",borderColor:"#ccc",borderWidth:0,orient:"horizontal",inverse:!1,tooltip:{trigger:"item"},symbol:"circle",symbolSize:12,lineStyle:{show:!0,width:2,color:"#DAE1F5"},label:{position:"auto",show:!0,interval:"auto",rotate:0,color:"#A4B1D7"},itemStyle:{color:"#A4B1D7",borderWidth:1},checkpointStyle:{symbol:"circle",symbolSize:15,color:"#316bf3",borderColor:"#fff",borderWidth:2,shadowBlur:2,shadowOffsetX:1,shadowOffsetY:1,shadowColor:"rgba(0, 0, 0, 0.3)",animation:!0,animationDuration:300,animationEasing:"quinticInOut"},controlStyle:{show:!0,showPlayBtn:!0,showPrevBtn:!0,showNextBtn:!0,itemSize:24,itemGap:12,position:"left",playIcon:"path://M31.6,53C17.5,53,6,41.5,6,27.4S17.5,1.8,31.6,1.8C45.7,1.8,57.2,13.3,57.2,27.4S45.7,53,31.6,53z M31.6,3.3 C18.4,3.3,7.5,14.1,7.5,27.4c0,13.3,10.8,24.1,24.1,24.1C44.9,51.5,55.7,40.7,55.7,27.4C55.7,14.1,44.9,3.3,31.6,3.3z M24.9,21.3 c0-2.2,1.6-3.1,3.5-2l10.5,6.1c1.899,1.1,1.899,2.9,0,4l-10.5,6.1c-1.9,1.1-3.5,0.2-3.5-2V21.3z",stopIcon:"path://M30.9,53.2C16.8,53.2,5.3,41.7,5.3,27.6S16.8,2,30.9,2C45,2,56.4,13.5,56.4,27.6S45,53.2,30.9,53.2z M30.9,3.5C17.6,3.5,6.8,14.4,6.8,27.6c0,13.3,10.8,24.1,24.101,24.1C44.2,51.7,55,40.9,55,27.6C54.9,14.4,44.1,3.5,30.9,3.5z M36.9,35.8c0,0.601-0.4,1-0.9,1h-1.3c-0.5,0-0.9-0.399-0.9-1V19.5c0-0.6,0.4-1,0.9-1H36c0.5,0,0.9,0.4,0.9,1V35.8z M27.8,35.8 c0,0.601-0.4,1-0.9,1h-1.3c-0.5,0-0.9-0.399-0.9-1V19.5c0-0.6,0.4-1,0.9-1H27c0.5,0,0.9,0.4,0.9,1L27.8,35.8L27.8,35.8z",nextIcon:"M2,18.5A1.52,1.52,0,0,1,.92,18a1.49,1.49,0,0,1,0-2.12L7.81,9.36,1,3.11A1.5,1.5,0,1,1,3,.89l8,7.34a1.48,1.48,0,0,1,.49,1.09,1.51,1.51,0,0,1-.46,1.1L3,18.08A1.5,1.5,0,0,1,2,18.5Z",prevIcon:"M10,.5A1.52,1.52,0,0,1,11.08,1a1.49,1.49,0,0,1,0,2.12L4.19,9.64,11,15.89a1.5,1.5,0,1,1-2,2.22L1,10.77A1.48,1.48,0,0,1,.5,9.68,1.51,1.51,0,0,1,1,8.58L9,.92A1.5,1.5,0,0,1,10,.5Z",prevBtnSize:18,nextBtnSize:18,color:"#A4B1D7",borderColor:"#A4B1D7",borderWidth:1},emphasis:{label:{show:!0,color:"#6f778d"},itemStyle:{color:"#316BF3"},controlStyle:{color:"#316BF3",borderColor:"#316BF3",borderWidth:2}},progress:{lineStyle:{color:"#316BF3"},itemStyle:{color:"#316BF3"},label:{color:"#6f778d"}},data:[]}),e}(b_);(0,_.mixin)(w_,Gy.J.prototype);const S_=w_;const T_=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return(0,Bt.C6)(e,t),e.type="timeline",e}(ri.A);const M_=function(t){function e(e,n,i,r){var o=t.call(this,e,n,i)||this;return o.type=r||"value",o}return(0,Bt.C6)(e,t),e.prototype.getLabelModel=function(){return this.model.getModel("label")},e.prototype.isHorizontal=function(){return"horizontal"===this.model.get("orient")},e}(Ti.A);var A_=n(1707),C_=n(8689),I_=Math.PI,E_=(0,ce.$r)(),k_=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return(0,Bt.C6)(e,t),e.prototype.init=function(t,e){this.api=e},e.prototype.render=function(t,e,n){if(this.model=t,this.api=n,this.ecModel=e,this.group.removeAll(),t.get("show",!0)){var i=this._layout(t,n),r=this._createGroup("_mainGroup"),o=this._createGroup("_labelGroup"),a=this._axis=this._createAxis(i,t);t.formatTooltip=function(t){var e=a.scale.getLabel({value:t});return(0,br.Qx)("nameValue",{noName:!0,value:e})},(0,_.each)(["AxisLine","AxisTick","Control","CurrentPointer"],(function(e){this["_render"+e](i,r,a,t)}),this),this._renderAxisLabel(i,o,a,t),this._position(i,t)}this._doPlayStop(),this._updateTicksStatus()},e.prototype.remove=function(){this._clearTimer(),this.group.removeAll()},e.prototype.dispose=function(){this._clearTimer()},e.prototype._layout=function(t,e){var n,i,r,o,a=t.get(["label","position"]),s=t.get("orient"),l=function(t,e){return Mn.dV(t.getBoxLayoutParams(),{width:e.getWidth(),height:e.getHeight()},t.get("padding"))}(t,e),h={horizontal:"center",vertical:(n=null==a||"auto"===a?"horizontal"===s?l.y+l.height/2<e.getHeight()/2?"-":"+":l.x+l.width/2<e.getWidth()/2?"+":"-":(0,_.isString)(a)?{horizontal:{top:"-",bottom:"+"},vertical:{left:"-",right:"+"}}[s][a]:a)>=0||"+"===n?"left":"right"},c={horizontal:n>=0||"+"===n?"top":"bottom",vertical:"middle"},u={horizontal:0,vertical:I_/2},d="vertical"===s?l.height:l.width,p=t.getModel("controlStyle"),f=p.get("show",!0),g=f?p.get("itemSize"):0,m=f?p.get("itemGap"):0,v=g+m,y=t.get(["label","rotate"])||0;y=y*I_/180;var x=p.get("position",!0),b=f&&p.get("showPlayBtn",!0),w=f&&p.get("showPrevBtn",!0),S=f&&p.get("showNextBtn",!0),T=0,M=d;"left"===x||"bottom"===x?(b&&(i=[0,0],T+=v),w&&(r=[T,0],T+=v),S&&(o=[M-g,0],M-=v)):(b&&(i=[M-g,0],M-=v),w&&(r=[0,0],T+=v),S&&(o=[M-g,0],M-=v));var A=[T,M];return t.get("inverse")&&A.reverse(),{viewRect:l,mainLength:d,orient:s,rotation:u[s],labelRotation:y,labelPosOpt:n,labelAlign:t.get(["label","align"])||h[s],labelBaseline:t.get(["label","verticalAlign"])||t.get(["label","baseline"])||c[s],playPosition:i,prevBtnPosition:r,nextBtnPosition:o,axisExtent:A,controlSize:g,controlGap:m}},e.prototype._position=function(t,e){var n=this._mainGroup,i=this._labelGroup,r=t.viewRect;if("vertical"===t.orient){var o=_i.create(),a=r.x,s=r.y+r.height;_i.translate(o,o,[-a,-s]),_i.rotate(o,o,-I_/2),_i.translate(o,o,[a,s]),(r=r.clone()).applyTransform(o)}var l=m(r),h=m(n.getBoundingRect()),c=m(i.getBoundingRect()),u=[n.x,n.y],d=[i.x,i.y];d[0]=u[0]=l[0][0];var p,f=t.labelPosOpt;null==f||(0,_.isString)(f)?(v(u,h,l,1,p="+"===f?0:1),v(d,c,l,1,1-p)):(v(u,h,l,1,p=f>=0?0:1),d[1]=u[1]+f);function g(t){t.originX=l[0][0]-t.x,t.originY=l[1][0]-t.y}function m(t){return[[t.x,t.x+t.width],[t.y,t.y+t.height]]}function v(t,e,n,i,r){t[i]+=n[i][r]-e[i][r]}n.setPosition(u),i.setPosition(d),n.rotation=i.rotation=t.rotation,g(n),g(i)},e.prototype._createAxis=function(t,e){var n=e.getData(),i=e.get("axisType"),r=function(t,e){if(e=e||t.get("type"),e)switch(e){case"category":return new A_.A({ordinalMeta:t.getCategories(),extent:[1/0,-1/0]});case"time":return new C_.A({locale:t.ecModel.getLocaleModel(),useUTC:t.ecModel.get("useUTC")});default:return new Li.A}}(e,i);r.getTicks=function(){return n.mapArray(["value"],(function(t){return{value:t}}))};var o=n.getDataExtent("value");r.setExtent(o[0],o[1]),r.calcNiceTicks();var a=new M_("value",r,t.axisExtent,i);return a.model=e,a},e.prototype._createGroup=function(t){var e=this[t]=new jt.A;return this.group.add(e),e},e.prototype._renderAxisLine=function(t,e,n,i){var r=n.getExtent();if(i.get(["lineStyle","show"])){var o=new zi.A({shape:{x1:r[0],y1:0,x2:r[1],y2:0},style:(0,_.extend)({lineCap:"round"},i.getModel("lineStyle").getLineStyle()),silent:!0,z2:1});e.add(o);var a=this._progressLine=new zi.A({shape:{x1:r[0],x2:this._currentPointer?this._currentPointer.x:r[0],y1:0,y2:0},style:(0,_.defaults)({lineCap:"round",lineWidth:o.style.lineWidth},i.getModel(["progress","lineStyle"]).getLineStyle()),silent:!0,z2:1});e.add(a)}},e.prototype._renderAxisTick=function(t,e,n,i){var r=this,o=i.getData(),a=n.scale.getTicks();this._tickSymbols=[],(0,_.each)(a,(function(t){var a=n.dataToCoord(t.value),s=o.getItemModel(t.value),l=s.getModel("itemStyle"),h=s.getModel(["emphasis","itemStyle"]),c=s.getModel(["progress","itemStyle"]),u={x:a,y:0,onclick:(0,_.bind)(r._changeTimeline,r,t.value)},d=L_(s,l,e,u);d.ensureState("emphasis").style=h.getItemStyle(),d.ensureState("progress").style=c.getItemStyle(),(0,Yt.iJ)(d);var p=(0,Xt.z)(d);s.get("tooltip")?(p.dataIndex=t.value,p.dataModel=i):p.dataIndex=p.dataModel=null,r._tickSymbols.push(d)}))},e.prototype._renderAxisLabel=function(t,e,n,i){var r=this;if(n.getLabelModel().get("show")){var o=i.getData(),a=n.getViewLabels();this._tickLabels=[],(0,_.each)(a,(function(i){var a=i.tickValue,s=o.getItemModel(a),l=s.getModel("label"),h=s.getModel(["emphasis","label"]),c=s.getModel(["progress","label"]),u=n.dataToCoord(i.tickValue),d=new Z.Ay({x:u,y:0,rotation:t.labelRotation-t.rotation,onclick:(0,_.bind)(r._changeTimeline,r,a),silent:!1,style:(0,Jt.VB)(l,{text:i.formattedLabel,align:t.labelAlign,verticalAlign:t.labelBaseline})});d.ensureState("emphasis").style=(0,Jt.VB)(h),d.ensureState("progress").style=(0,Jt.VB)(c),e.add(d),(0,Yt.iJ)(d),E_(d).dataIndex=a,r._tickLabels.push(d)}))}},e.prototype._renderControl=function(t,e,n,i){var r=t.controlSize,o=t.rotation,a=i.getModel("controlStyle").getItemStyle(),s=i.getModel(["emphasis","controlStyle"]).getItemStyle(),l=i.getPlayState(),c=i.get("inverse",!0);function u(t,n,l,c){if(t){var u=(0,h.lo)((0,_.retrieve2)(i.get(["controlStyle",n+"BtnSize"]),r),r),d=function(t,e,n,i){var r=i.style,o=qt.createIcon(t.get(["controlStyle",e]),i||{},new Jn.A(n[0],n[1],n[2],n[3]));r&&o.setStyle(r);return o}(i,n+"Icon",[0,-u/2,u,u],{x:t[0],y:t[1],originX:r/2,originY:0,rotation:c?-o:0,rectHover:!0,style:a,onclick:l});d.ensureState("emphasis").style=s,e.add(d),(0,Yt.iJ)(d)}}u(t.nextBtnPosition,"next",(0,_.bind)(this._changeTimeline,this,c?"-":"+")),u(t.prevBtnPosition,"prev",(0,_.bind)(this._changeTimeline,this,c?"+":"-")),u(t.playPosition,l?"stop":"play",(0,_.bind)(this._handlePlayClick,this,!l),!0)},e.prototype._renderCurrentPointer=function(t,e,n,i){var r=i.getData(),o=i.getCurrentIndex(),a=r.getItemModel(o).getModel("checkpointStyle"),s=this,l={onCreate:function(t){t.draggable=!0,t.drift=(0,_.bind)(s._handlePointerDrag,s),t.ondragend=(0,_.bind)(s._handlePointerDragend,s),D_(t,s._progressLine,o,n,i,!0)},onUpdate:function(t){D_(t,s._progressLine,o,n,i)}};this._currentPointer=L_(a,a,this._mainGroup,{},this._currentPointer,l)},e.prototype._handlePlayClick=function(t){this._clearTimer(),this.api.dispatchAction({type:"timelinePlayChange",playState:t,from:this.uid})},e.prototype._handlePointerDrag=function(t,e,n){this._clearTimer(),this._pointerChangeTimeline([n.offsetX,n.offsetY])},e.prototype._handlePointerDragend=function(t){this._pointerChangeTimeline([t.offsetX,t.offsetY],!0)},e.prototype._pointerChangeTimeline=function(t,e){var n=this._toAxisCoord(t)[0],i=this._axis,r=Se.Y6(i.getExtent().slice());n>r[1]&&(n=r[1]),n<r[0]&&(n=r[0]),this._currentPointer.x=n,this._currentPointer.markRedraw();var o=this._progressLine;o&&(o.shape.x2=n,o.dirty());var a=this._findNearestTick(n),s=this.model;(e||a!==s.getCurrentIndex()&&s.get("realtime"))&&this._changeTimeline(a)},e.prototype._doPlayStop=function(){var t=this;this._clearTimer(),this.model.getPlayState()&&(this._timer=setTimeout((function(){var e=t.model;t._changeTimeline(e.getCurrentIndex()+(e.get("rewind",!0)?-1:1))}),this.model.get("playInterval")))},e.prototype._toAxisCoord=function(t){var e=this._mainGroup.getLocalTransform();return qt.applyTransform(t,e,!0)},e.prototype._findNearestTick=function(t){var e,n=this.model.getData(),i=1/0,r=this._axis;return n.each(["value"],(function(n,o){var a=r.dataToCoord(n),s=Math.abs(a-t);s<i&&(i=s,e=o)})),e},e.prototype._clearTimer=function(){this._timer&&(clearTimeout(this._timer),this._timer=null)},e.prototype._changeTimeline=function(t){var e=this.model.getCurrentIndex();"+"===t?t=e+1:"-"===t&&(t=e-1),this.api.dispatchAction({type:"timelineChange",currentIndex:t,from:this.uid})},e.prototype._updateTicksStatus=function(){var t=this.model.getCurrentIndex(),e=this._tickSymbols,n=this._tickLabels;if(e)for(var i=0;i<e.length;i++)e&&e[i]&&e[i].toggleState("progress",i<t);if(n)for(i=0;i<n.length;i++)n&&n[i]&&n[i].toggleState("progress",E_(n[i]).dataIndex<=t)},e.type="timeline.slider",e}(T_);function L_(t,e,n,i,r,o){var a=e.get("color");if(r)r.setColor(a),n.add(r),o&&o.onUpdate(r);else{var s=t.get("symbol");(r=(0,Vt.v5)(s,-1,-1,2,2,a)).setStyle("strokeNoScale",!0),n.add(r),o&&o.onCreate(r)}var l=e.getItemStyle(["color"]);r.setStyle(l),i=(0,_.merge)({rectHover:!0,z2:100},i,!0);var h=(0,Vt.xU)(t.get("symbolSize"));i.scaleX=h[0]/2,i.scaleY=h[1]/2;var c=(0,Vt.hV)(t.get("symbolOffset"),h);c&&(i.x=(i.x||0)+c[0],i.y=(i.y||0)+c[1]);var u=t.get("symbolRotate");return i.rotation=(u||0)*Math.PI/180||0,r.attr(i),r.updateTransform(),r}function D_(t,e,n,i,r,o){if(!t.dragging){var a=r.getModel("checkpointStyle"),s=i.dataToCoord(r.getData().get("value",n));if(o||!a.get("animation",!0))t.attr({x:s,y:0}),e&&e.attr({shape:{x2:s}});else{var l={duration:a.get("animationDuration",!0),easing:a.get("animationEasing",!0)};t.stopAnimation(null,!0),t.animateTo({x:s,y:0},l),e&&e.animateTo({shape:{x2:s}},l)}}}const P_=k_;function R_(t){var e=t&&t.timeline;_.isArray(e)||(e=e?[e]:[]),_.each(e,(function(t){t&&function(t){var e=t.type,n={number:"value",time:"time"};n[e]&&(t.axisType=n[e],delete t.type);if(O_(t),N_(t,"controlPosition")){var i=t.controlStyle||(t.controlStyle={});N_(i,"position")||(i.position=t.controlPosition),"none"!==i.position||N_(i,"show")||(i.show=!1,delete i.position),delete t.controlPosition}_.each(t.data||[],(function(t){_.isObject(t)&&!_.isArray(t)&&(!N_(t,"value")&&N_(t,"name")&&(t.value=t.name),O_(t))}))}(t)}))}function O_(t){var e=t.itemStyle||(t.itemStyle={}),n=e.emphasis||(e.emphasis={}),i=t.label||t.label||{},r=i.normal||(i.normal={}),o={normal:1,emphasis:1};_.each(i,(function(t,e){o[e]||N_(r,e)||(r[e]=t)})),n.label&&!N_(i,"emphasis")&&(i.emphasis=n.label,delete n.label)}function N_(t,e){return t.hasOwnProperty(e)}function F_(t,e){if(!t)return!1;for(var n=(0,_.isArray)(t)?t:[t],i=0;i<n.length;i++)if(n[i]&&n[i][e])return!0;return!1}function B_(t){(0,ce.M5)(t,"label",["show"])}var z_=(0,ce.$r)(),G_=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n.createdBySelf=!1,n}return(0,Bt.C6)(e,t),e.prototype.init=function(t,e,n){this.mergeDefaultAndTheme(t,n),this._mergeOption(t,n,!1,!0)},e.prototype.isAnimationEnabled=function(){if(vg.A.node)return!1;var t=this.__hostSeries;return this.getShallow("animation")&&t&&t.isAnimationEnabled()},e.prototype.mergeOption=function(t,e){this._mergeOption(t,e,!1,!1)},e.prototype._mergeOption=function(t,e,n,i){var r=this.mainType;n||e.eachSeries((function(t){var n=t.get(this.mainType,!0),o=z_(t)[r];n&&n.data?(o?o._mergeOption(n,e,!0):(i&&B_(n),_.each(n.data,(function(t){t instanceof Array?(B_(t[0]),B_(t[1])):B_(t)})),o=this.createMarkerModelFromSeries(n,this,e),_.extend(o,{mainType:this.mainType,seriesIndex:t.seriesIndex,name:t.name,createdBySelf:!0}),o.__hostSeries=t),z_(t)[r]=o):z_(t)[r]=null}),this)},e.prototype.formatTooltip=function(t,e,n){var i=this.getData(),r=this.getRawValue(t),o=i.getName(t);return(0,br.Qx)("section",{header:this.name,blocks:[(0,br.Qx)("nameValue",{name:o,value:r,noName:!o,noValue:null==r})]})},e.prototype.getData=function(){return this._data},e.prototype.setData=function(t){this._data=t},e.prototype.getDataParams=function(t,e){var n=Gy.J.prototype.getDataParams.call(this,t,e),i=this.__hostSeries;return i&&(n.seriesId=i.id,n.seriesName=i.name,n.seriesType=i.subType),n},e.getMarkerModelFromSeries=function(t,e){return z_(t)[e]},e.type="marker",e.dependencies=["series","grid","polar","geo"],e}(oi.A);_.mixin(G_,Gy.J.prototype);const V_=G_;const j_=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return(0,Bt.C6)(e,t),e.prototype.createMarkerModelFromSeries=function(t,n,i){return new e(t,n,i)},e.type="markPoint",e.defaultOption={z:5,symbol:"pin",symbolSize:50,tooltip:{trigger:"item"},label:{show:!0,position:"inside"},itemStyle:{borderWidth:2},emphasis:{label:{show:!0}}},e}(V_);var H_=n(4224);function W_(t){return!(isNaN(parseFloat(t.x))&&isNaN(parseFloat(t.y)))}function U_(t,e,n,i,r,o){var a=[],s=(0,oe.sJ)(e,i)?e.getCalculationInfo("stackResultDimension"):i,l=K_(e,s,t),h=e.indicesOfNearest(s,l)[0];a[r]=e.get(n,h),a[o]=e.get(s,h);var c=e.get(i,h),u=Se.XV(e.get(i,h));return(u=Math.min(u,20))>=0&&(a[o]=+a[o].toFixed(u)),[a,c]}var q_={min:(0,_.curry)(U_,"min"),max:(0,_.curry)(U_,"max"),average:(0,_.curry)(U_,"average"),median:(0,_.curry)(U_,"median")};function X_(t,e){if(e){var n=t.getData(),i=t.coordinateSystem,r=i&&i.dimensions;if(!function(t){return!isNaN(parseFloat(t.x))&&!isNaN(parseFloat(t.y))}(e)&&!(0,_.isArray)(e.coord)&&(0,_.isArray)(r)){var o=Y_(e,n,i,t);if((e=(0,_.clone)(e)).type&&q_[e.type]&&o.baseAxis&&o.valueAxis){var a=(0,_.indexOf)(r,o.baseAxis.dim),s=(0,_.indexOf)(r,o.valueAxis.dim),l=q_[e.type](n,o.baseDataDim,o.valueDataDim,a,s);e.coord=l[0],e.value=l[1]}else e.coord=[null!=e.xAxis?e.xAxis:e.radiusAxis,null!=e.yAxis?e.yAxis:e.angleAxis]}if(null!=e.coord&&(0,_.isArray)(r))for(var h=e.coord,c=0;c<2;c++)q_[h[c]]&&(h[c]=K_(n,n.mapDimension(r[c]),h[c]));else e.coord=[];return e}}function Y_(t,e,n,i){var r={};return null!=t.valueIndex||null!=t.valueDim?(r.valueDataDim=null!=t.valueIndex?e.getDimension(t.valueIndex):t.valueDim,r.valueAxis=n.getAxis(function(t,e){var n=t.getData().getDimensionInfo(e);return n&&n.coordDim}(i,r.valueDataDim)),r.baseAxis=n.getOtherAxis(r.valueAxis),r.baseDataDim=e.mapDimension(r.baseAxis.dim)):(r.baseAxis=i.getBaseAxis(),r.valueAxis=n.getOtherAxis(r.baseAxis),r.baseDataDim=e.mapDimension(r.baseAxis.dim),r.valueDataDim=e.mapDimension(r.valueAxis.dim)),r}function Z_(t,e){return!(t&&t.containData&&e.coord&&!W_(e))||t.containData(e.coord)}function $_(t,e){return t?function(t,n,i,r){var o=r<2?t.coord&&t.coord[r]:t.value;return(0,H_.Pn)(o,e[r])}:function(t,n,i,r){return(0,H_.Pn)(t.value,e[r])}}function K_(t,e,n){if("average"===n){var i=0,r=0;return t.each(e,(function(t,e){isNaN(t)||(i+=t,r++)})),i/r}return"median"===n?t.getMedian(e):t.getDataExtent(e)["max"===n?1:0]}var J_=(0,ce.$r)();const Q_=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return(0,Bt.C6)(e,t),e.prototype.init=function(){this.markerGroupMap=(0,_.createHashMap)()},e.prototype.render=function(t,e,n){var i=this,r=this.markerGroupMap;r.each((function(t){J_(t).keep=!1})),e.eachSeries((function(t){var r=V_.getMarkerModelFromSeries(t,i.type);r&&i.renderSeries(t,r,e,n)})),r.each((function(t){!J_(t).keep&&i.group.remove(t.group)}))},e.prototype.markKeep=function(t){J_(t).keep=!0},e.prototype.toggleBlurSeries=function(t,e){var n=this;(0,_.each)(t,(function(t){var i=V_.getMarkerModelFromSeries(t,n.type);i&&i.getData().eachItemGraphicEl((function(t){t&&(e?(0,Yt.QX)(t):(0,Yt.JC)(t))}))}))},e.type="marker",e}(ri.A);function tx(t,e,n){var i=e.coordinateSystem;t.each((function(r){var o,a=t.getItemModel(r),s=Se.lo(a.get("x"),n.getWidth()),l=Se.lo(a.get("y"),n.getHeight());if(isNaN(s)||isNaN(l)){if(e.getMarkerPosition)o=e.getMarkerPosition(t.getValues(t.dimensions,r));else if(i){var h=t.get(i.dimensions[0],r),c=t.get(i.dimensions[1],r);o=i.dataToPoint([h,c])}}else o=[s,l];isNaN(s)||(o[0]=s),isNaN(l)||(o[1]=l),t.setItemLayout(r,o)}))}const ex=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return(0,Bt.C6)(e,t),e.prototype.updateTransform=function(t,e,n){e.eachSeries((function(t){var e=V_.getMarkerModelFromSeries(t,"markPoint");e&&(tx(e.getData(),t,n),this.markerGroupMap.get(t.id).updateLayout())}),this)},e.prototype.renderSeries=function(t,e,n,i){var r=t.coordinateSystem,o=t.id,a=t.getData(),s=this.markerGroupMap,l=s.get(o)||s.set(o,new re),h=function(t,e,n){var i;i=t?(0,_.map)(t&&t.dimensions,(function(t){var n=e.getData().getDimensionInfo(e.getData().mapDimension(t))||{};return(0,_.extend)((0,_.extend)({},n),{name:t,ordinalMeta:null})})):[{name:"value",type:"float"}];var r=new Un.A(i,n),o=(0,_.map)(n.get("data"),(0,_.curry)(X_,e));t&&(o=(0,_.filter)(o,(0,_.curry)(Z_,t)));var a=$_(!!t,i);return r.initData(o,null,a),r}(r,t,e);e.setData(h),tx(e.getData(),t,i),h.each((function(t){var n=h.getItemModel(t),i=n.getShallow("symbol"),r=n.getShallow("symbolSize"),o=n.getShallow("symbolRotate"),s=n.getShallow("symbolOffset"),l=n.getShallow("symbolKeepAspect");if((0,_.isFunction)(i)||(0,_.isFunction)(r)||(0,_.isFunction)(o)||(0,_.isFunction)(s)){var c=e.getRawValue(t),u=e.getDataParams(t);(0,_.isFunction)(i)&&(i=i(c,u)),(0,_.isFunction)(r)&&(r=r(c,u)),(0,_.isFunction)(o)&&(o=o(c,u)),(0,_.isFunction)(s)&&(s=s(c,u))}var d=n.getModel("itemStyle").getItemStyle(),p=(0,Zy.rI)(a,"color");d.fill||(d.fill=p),h.setItemVisual(t,{symbol:i,symbolSize:r,symbolRotate:o,symbolOffset:s,symbolKeepAspect:l,style:d})})),l.updateData(h),this.group.add(l.group),h.eachItemGraphicEl((function(t){t.traverse((function(t){(0,Xt.z)(t).dataModel=e}))})),this.markKeep(l),l.group.silent=e.get("silent")||t.get("silent")},e.type="markPoint",e}(Q_);const nx=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return(0,Bt.C6)(e,t),e.prototype.createMarkerModelFromSeries=function(t,n,i){return new e(t,n,i)},e.type="markLine",e.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"},e}(V_);var ix=(0,ce.$r)(),rx=function(t,e,n,i){var r,o=t.getData();if((0,_.isArray)(i))r=i;else{var a=i.type;if("min"===a||"max"===a||"average"===a||"median"===a||null!=i.xAxis||null!=i.yAxis){var s=void 0,l=void 0;if(null!=i.yAxis||null!=i.xAxis)s=e.getAxis(null!=i.yAxis?"y":"x"),l=(0,_.retrieve)(i.yAxis,i.xAxis);else{var h=Y_(i,o,e,t);s=h.valueAxis,l=K_(o,(0,oe.me)(o,h.valueDataDim),a)}var c="x"===s.dim?0:1,u=1-c,d=(0,_.clone)(i),p={coord:[]};d.type=null,d.coord=[],d.coord[u]=-1/0,p.coord[u]=1/0;var f=n.get("precision");f>=0&&(0,_.isNumber)(l)&&(l=+l.toFixed(Math.min(f,20))),d.coord[c]=p.coord[c]=l,r=[d,p,{type:a,valueIndex:i.valueIndex,value:l}]}else r=[]}var g=[X_(t,r[0]),X_(t,r[1]),(0,_.extend)({},r[2])];return g[2].type=g[2].type||null,(0,_.merge)(g[2],g[0]),(0,_.merge)(g[2],g[1]),g};function ox(t){return!isNaN(t)&&!isFinite(t)}function ax(t,e,n,i){var r=1-t,o=i.dimensions[t];return ox(e[r])&&ox(n[r])&&e[t]===n[t]&&i.getAxis(o).containData(e[t])}function sx(t,e){if("cartesian2d"===t.type){var n=e[0].coord,i=e[1].coord;if(n&&i&&(ax(1,n,i,t)||ax(0,n,i,t)))return!0}return Z_(t,e[0])&&Z_(t,e[1])}function lx(t,e,n,i,r){var o,a=i.coordinateSystem,s=t.getItemModel(e),l=Se.lo(s.get("x"),r.getWidth()),h=Se.lo(s.get("y"),r.getHeight());if(isNaN(l)||isNaN(h)){if(i.getMarkerPosition)o=i.getMarkerPosition(t.getValues(t.dimensions,e));else{var c=a.dimensions,u=t.get(c[0],e),d=t.get(c[1],e);o=a.dataToPoint([u,d])}if(Ce(a,"cartesian2d")){var p=a.getAxis("x"),f=a.getAxis("y");c=a.dimensions;ox(t.get(c[0],e))?o[0]=p.toGlobalCoord(p.getExtent()[n?0:1]):ox(t.get(c[1],e))&&(o[1]=f.toGlobalCoord(f.getExtent()[n?0:1]))}isNaN(l)||(o[0]=l),isNaN(h)||(o[1]=h)}else o=[l,h];t.setItemLayout(e,o)}const hx=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return(0,Bt.C6)(e,t),e.prototype.updateTransform=function(t,e,n){e.eachSeries((function(t){var e=V_.getMarkerModelFromSeries(t,"markLine");if(e){var i=e.getData(),r=ix(e).from,o=ix(e).to;r.each((function(e){lx(r,e,!0,t,n),lx(o,e,!1,t,n)})),i.each((function(t){i.setItemLayout(t,[r.getItemLayout(t),o.getItemLayout(t)])})),this.markerGroupMap.get(t.id).updateLayout()}}),this)},e.prototype.renderSeries=function(t,e,n,i){var r=t.coordinateSystem,o=t.id,a=t.getData(),s=this.markerGroupMap,l=s.get(o)||s.set(o,new nh);this.group.add(l.group);var h=function(t,e,n){var i;i=t?(0,_.map)(t&&t.dimensions,(function(t){var n=e.getData().getDimensionInfo(e.getData().mapDimension(t))||{};return(0,_.extend)((0,_.extend)({},n),{name:t,ordinalMeta:null})})):[{name:"value",type:"float"}];var r=new Un.A(i,n),o=new Un.A(i,n),a=new Un.A([],n),s=(0,_.map)(n.get("data"),(0,_.curry)(rx,e,t,n));t&&(s=(0,_.filter)(s,(0,_.curry)(sx,t)));var l=$_(!!t,i);return r.initData((0,_.map)(s,(function(t){return t[0]})),null,l),o.initData((0,_.map)(s,(function(t){return t[1]})),null,l),a.initData((0,_.map)(s,(function(t){return t[2]}))),a.hasItemOption=!0,{from:r,to:o,line:a}}(r,t,e),c=h.from,u=h.to,d=h.line;ix(e).from=c,ix(e).to=u,e.setData(d);var p=e.get("symbol"),f=e.get("symbolSize"),g=e.get("symbolRotate"),m=e.get("symbolOffset");function v(e,n,r){var o=e.getItemModel(n);lx(e,n,r,t,i);var s=o.getModel("itemStyle").getItemStyle();null==s.fill&&(s.fill=(0,Zy.rI)(a,"color")),e.setItemVisual(n,{symbolKeepAspect:o.get("symbolKeepAspect"),symbolOffset:(0,_.retrieve2)(o.get("symbolOffset",!0),m[r?0:1]),symbolRotate:(0,_.retrieve2)(o.get("symbolRotate",!0),g[r?0:1]),symbolSize:(0,_.retrieve2)(o.get("symbolSize"),f[r?0:1]),symbol:(0,_.retrieve2)(o.get("symbol",!0),p[r?0:1]),style:s})}(0,_.isArray)(p)||(p=[p,p]),(0,_.isArray)(f)||(f=[f,f]),(0,_.isArray)(g)||(g=[g,g]),(0,_.isArray)(m)||(m=[m,m]),h.from.each((function(t){v(c,t,!0),v(u,t,!1)})),d.each((function(t){var e=d.getItemModel(t).getModel("lineStyle").getLineStyle();d.setItemLayout(t,[c.getItemLayout(t),u.getItemLayout(t)]),null==e.stroke&&(e.stroke=c.getItemVisual(t,"style").fill),d.setItemVisual(t,{fromSymbolKeepAspect:c.getItemVisual(t,"symbolKeepAspect"),fromSymbolOffset:c.getItemVisual(t,"symbolOffset"),fromSymbolRotate:c.getItemVisual(t,"symbolRotate"),fromSymbolSize:c.getItemVisual(t,"symbolSize"),fromSymbol:c.getItemVisual(t,"symbol"),toSymbolKeepAspect:u.getItemVisual(t,"symbolKeepAspect"),toSymbolOffset:u.getItemVisual(t,"symbolOffset"),toSymbolRotate:u.getItemVisual(t,"symbolRotate"),toSymbolSize:u.getItemVisual(t,"symbolSize"),toSymbol:u.getItemVisual(t,"symbol"),style:e})})),l.updateData(d),h.line.eachItemGraphicEl((function(t){(0,Xt.z)(t).dataModel=e,t.traverse((function(t){(0,Xt.z)(t).dataModel=e}))})),this.markKeep(l),l.group.silent=e.get("silent")||t.get("silent")},e.type="markLine",e}(Q_);const cx=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return(0,Bt.C6)(e,t),e.prototype.createMarkerModelFromSeries=function(t,n,i){return new e(t,n,i)},e.type="markArea",e.defaultOption={z:1,tooltip:{trigger:"item"},animation:!1,label:{show:!0,position:"top"},itemStyle:{borderWidth:0},emphasis:{label:{show:!0,position:"top"}}},e}(V_);var ux=(0,ce.$r)(),dx=function(t,e,n,i){var r=i[0],o=i[1];if(r&&o){var a=X_(t,r),s=X_(t,o),l=a.coord,h=s.coord;l[0]=(0,_.retrieve)(l[0],-1/0),l[1]=(0,_.retrieve)(l[1],-1/0),h[0]=(0,_.retrieve)(h[0],1/0),h[1]=(0,_.retrieve)(h[1],1/0);var c=(0,_.mergeAll)([{},a,s]);return c.coord=[a.coord,s.coord],c.x0=a.x,c.y0=a.y,c.x1=s.x,c.y1=s.y,c}};function px(t){return!isNaN(t)&&!isFinite(t)}function fx(t,e,n,i){var r=1-t;return px(e[r])&&px(n[r])}function gx(t,e){var n=e.coord[0],i=e.coord[1],r={coord:n,x:e.x0,y:e.y0},o={coord:i,x:e.x1,y:e.y1};return Ce(t,"cartesian2d")?!(!n||!i||!fx(1,n,i)&&!fx(0,n,i))||function(t,e,n){return!(t&&t.containZone&&e.coord&&n.coord&&!W_(e)&&!W_(n))||t.containZone(e.coord,n.coord)}(t,r,o):Z_(t,r)||Z_(t,o)}function mx(t,e,n,i,r){var o,a=i.coordinateSystem,s=t.getItemModel(e),l=Se.lo(s.get(n[0]),r.getWidth()),h=Se.lo(s.get(n[1]),r.getHeight());if(isNaN(l)||isNaN(h)){if(i.getMarkerPosition){var c=t.getValues(["x0","y0"],e),u=t.getValues(["x1","y1"],e),d=a.clampData(c),p=a.clampData(u),f=[];"x0"===n[0]?f[0]=d[0]>p[0]?u[0]:c[0]:f[0]=d[0]>p[0]?c[0]:u[0],"y0"===n[1]?f[1]=d[1]>p[1]?u[1]:c[1]:f[1]=d[1]>p[1]?c[1]:u[1],o=i.getMarkerPosition(f,n,!0)}else{var g=[y=t.get(n[0],e),_=t.get(n[1],e)];a.clampData&&a.clampData(g,g),o=a.dataToPoint(g,!0)}if(Ce(a,"cartesian2d")){var m=a.getAxis("x"),v=a.getAxis("y"),y=t.get(n[0],e),_=t.get(n[1],e);px(y)?o[0]=m.toGlobalCoord(m.getExtent()["x0"===n[0]?0:1]):px(_)&&(o[1]=v.toGlobalCoord(v.getExtent()["y0"===n[1]?0:1]))}isNaN(l)||(o[0]=l),isNaN(h)||(o[1]=h)}else o=[l,h];return o}var vx=[["x0","y0"],["x1","y0"],["x1","y1"],["x0","y1"]],yx=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return(0,Bt.C6)(e,t),e.prototype.updateTransform=function(t,e,n){e.eachSeries((function(t){var e=V_.getMarkerModelFromSeries(t,"markArea");if(e){var i=e.getData();i.each((function(e){var r=(0,_.map)(vx,(function(r){return mx(i,e,r,t,n)}));i.setItemLayout(e,r),i.getItemGraphicEl(e).setShape("points",r)}))}}),this)},e.prototype.renderSeries=function(t,e,n,i){var r=t.coordinateSystem,o=t.id,a=t.getData(),s=this.markerGroupMap,l=s.get(o)||s.set(o,{group:new jt.A});this.group.add(l.group),this.markKeep(l);var h=function(t,e,n){var i,r,o=["x0","y0","x1","y1"];if(t){var a=(0,_.map)(t&&t.dimensions,(function(t){var n=e.getData(),i=n.getDimensionInfo(n.mapDimension(t))||{};return(0,_.extend)((0,_.extend)({},i),{name:t,ordinalMeta:null})}));r=(0,_.map)(o,(function(t,e){return{name:t,type:a[e%2].type}})),i=new Un.A(r,n)}else r=[{name:"value",type:"float"}],i=new Un.A(r,n);var s=(0,_.map)(n.get("data"),(0,_.curry)(dx,e,t,n));t&&(s=(0,_.filter)(s,(0,_.curry)(gx,t)));var l=t?function(t,e,n,i){var o=t.coord[Math.floor(i/2)][i%2];return(0,H_.Pn)(o,r[i])}:function(t,e,n,i){return(0,H_.Pn)(t.value,r[i])};return i.initData(s,null,l),i.hasItemOption=!0,i}(r,t,e);e.setData(h),h.each((function(e){var n=(0,_.map)(vx,(function(n){return mx(h,e,n,t,i)})),o=r.getAxis("x").scale,s=r.getAxis("y").scale,l=o.getExtent(),c=s.getExtent(),u=[o.parse(h.get("x0",e)),o.parse(h.get("x1",e))],d=[s.parse(h.get("y0",e)),s.parse(h.get("y1",e))];Se.Y6(u),Se.Y6(d);var p=!!(l[0]>u[1]||l[1]<u[0]||c[0]>d[1]||c[1]<d[0]);h.setItemLayout(e,{points:n,allClipped:p});var f=h.getItemModel(e).getModel("itemStyle").getItemStyle(),g=(0,Zy.rI)(a,"color");f.fill||(f.fill=g,(0,_.isString)(f.fill)&&(f.fill=K.modifyAlpha(f.fill,.4))),f.stroke||(f.stroke=g),h.setItemVisual(e,"style",f)})),h.diff(ux(l).data).add((function(t){var e=h.getItemLayout(t);if(!e.allClipped){var n=new yr.A({shape:{points:e.points}});h.setItemGraphicEl(t,n),l.group.add(n)}})).update((function(t,n){var i=ux(l).data.getItemGraphicEl(n),r=h.getItemLayout(t);r.allClipped?i&&l.group.remove(i):(i?Ut.oi(i,{shape:{points:r.points}},e,t):i=new yr.A({shape:{points:r.points}}),h.setItemGraphicEl(t,i),l.group.add(i))})).remove((function(t){var e=ux(l).data.getItemGraphicEl(t);l.group.remove(e)})).execute(),h.eachItemGraphicEl((function(t,n){var i=h.getItemModel(n),r=h.getItemVisual(n,"style");t.useStyle(h.getItemVisual(n,"style")),(0,Jt.qM)(t,(0,Jt.lx)(i),{labelFetcher:e,labelDataIndex:n,defaultText:h.getName(n)||"",inheritColor:(0,_.isString)(r.fill)?K.modifyAlpha(r.fill,1):"#000"}),(0,Yt.Mx)(t,i),(0,Yt.Lm)(t,null,null,i.get(["emphasis","disabled"])),(0,Xt.z)(t).dataModel=e})),ux(l).data=h,l.group.silent=e.get("silent")||t.get("silent")},e.type="markArea",e}(Q_);const _x=yx;var xx=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n.layoutMode={type:"box",ignoreSize:!0},n}return(0,Bt.C6)(e,t),e.prototype.init=function(t,e,n){this.mergeDefaultAndTheme(t,n),t.selected=t.selected||{},this._updateSelector(t)},e.prototype.mergeOption=function(e,n){t.prototype.mergeOption.call(this,e,n),this._updateSelector(e)},e.prototype._updateSelector=function(t){var e=t.selector,n=this.ecModel;!0===e&&(e=t.selector=["all","inverse"]),_.isArray(e)&&_.each(e,(function(t,i){_.isString(t)&&(t={type:t}),e[i]=_.merge(t,function(t,e){return"all"===e?{type:"all",title:t.getLocaleModel().get(["legend","selector","all"])}:"inverse"===e?{type:"inverse",title:t.getLocaleModel().get(["legend","selector","inverse"])}:void 0}(n,t.type))}))},e.prototype.optionUpdated=function(){this._updateData(this.ecModel);var t=this._data;if(t[0]&&"single"===this.get("selectedMode")){for(var e=!1,n=0;n<t.length;n++){var i=t[n].get("name");if(this.isSelected(i)){this.select(i),e=!0;break}}!e&&this.select(t[0].get("name"))}},e.prototype._updateData=function(t){var e=[],n=[];t.eachRawSeries((function(i){var r,o=i.name;if(n.push(o),i.legendVisualProvider){var a=i.legendVisualProvider.getAllNames();t.isSeriesFiltered(i)||(n=n.concat(a)),a.length?e=e.concat(a):r=!0}else r=!0;r&&(0,ce.O0)(i)&&e.push(i.name)})),this._availableNames=n;var i=this.get("data")||e,r=_.createHashMap(),o=_.map(i,(function(t){return(_.isString(t)||_.isNumber(t))&&(t={name:t}),r.get(t.name)?null:(r.set(t.name,!0),new Gi.A(t,this,this.ecModel))}),this);this._data=_.filter(o,(function(t){return!!t}))},e.prototype.getData=function(){return this._data},e.prototype.select=function(t){var e=this.option.selected;if("single"===this.get("selectedMode")){var n=this._data;_.each(n,(function(t){e[t.get("name")]=!1}))}e[t]=!0},e.prototype.unSelect=function(t){"single"!==this.get("selectedMode")&&(this.option.selected[t]=!1)},e.prototype.toggleSelected=function(t){var e=this.option.selected;e.hasOwnProperty(t)||(e[t]=!0),this[e[t]?"unSelect":"select"](t)},e.prototype.allSelect=function(){var t=this._data,e=this.option.selected;_.each(t,(function(t){e[t.get("name",!0)]=!0}))},e.prototype.inverseSelect=function(){var t=this._data,e=this.option.selected;_.each(t,(function(t){var n=t.get("name",!0);e.hasOwnProperty(n)||(e[n]=!0),e[n]=!e[n]}))},e.prototype.isSelected=function(t){var e=this.option.selected;return!(e.hasOwnProperty(t)&&!e[t])&&_.indexOf(this._availableNames,t)>=0},e.prototype.getOrient=function(){return"vertical"===this.get("orient")?{index:1,name:"vertical"}:{index:0,name:"horizontal"}},e.type="legend.plain",e.dependencies=["series"],e.defaultOption={z:4,show:!0,orient:"horizontal",left:"center",top:0,align:"auto",backgroundColor:"rgba(0,0,0,0)",borderColor:"#ccc",borderRadius:0,borderWidth:0,padding:5,itemGap:10,itemWidth:25,itemHeight:14,symbolRotate:"inherit",symbolKeepAspect:!0,inactiveColor:"#ccc",inactiveBorderColor:"#ccc",inactiveBorderWidth:"auto",itemStyle:{color:"inherit",opacity:"inherit",borderColor:"inherit",borderWidth:"auto",borderCap:"inherit",borderJoin:"inherit",borderDashOffset:"inherit",borderMiterLimit:"inherit"},lineStyle:{width:"auto",color:"inherit",inactiveColor:"#ccc",inactiveWidth:2,opacity:"inherit",type:"inherit",cap:"inherit",join:"inherit",dashOffset:"inherit",miterLimit:"inherit"},textStyle:{color:"#333"},selectedMode:!0,selector:!1,selectorLabel:{show:!0,borderRadius:10,padding:[3,5,3,5],fontSize:12,fontFamily:"sans-serif",color:"#666",borderWidth:1,borderColor:"#666"},emphasis:{selectorLabel:{show:!0,color:"#eee",backgroundColor:"#666"}},selectorPosition:"auto",selectorItemGap:7,selectorButtonGap:10,tooltip:{show:!1}},e}(oi.A);const bx=xx;var wx=_.curry,Sx=_.each,Tx=jt.A,Mx=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n.newlineDisabled=!1,n}return(0,Bt.C6)(e,t),e.prototype.init=function(){this.group.add(this._contentGroup=new Tx),this.group.add(this._selectorGroup=new Tx),this._isFirstRender=!0},e.prototype.getContentGroup=function(){return this._contentGroup},e.prototype.getSelectorGroup=function(){return this._selectorGroup},e.prototype.render=function(t,e,n){var i=this._isFirstRender;if(this._isFirstRender=!1,this.resetInner(),t.get("show",!0)){var r=t.get("align"),o=t.get("orient");r&&"auto"!==r||(r="right"===t.get("left")&&"vertical"===o?"right":"left");var a=t.get("selector",!0),s=t.get("selectorPosition",!0);!a||s&&"auto"!==s||(s="horizontal"===o?"end":"start"),this.renderInner(r,t,e,n,a,o,s);var l=t.getBoxLayoutParams(),h={width:n.getWidth(),height:n.getHeight()},c=t.get("padding"),u=Mn.dV(l,h,c),d=this.layoutInner(t,r,u,i,a,s),p=Mn.dV(_.defaults({width:d.width,height:d.height},l),h,c);this.group.x=p.x-d.x,this.group.y=p.y-d.y,this.group.markRedraw(),this.group.add(this._backgroundEl=Pv(d,t))}},e.prototype.resetInner=function(){this.getContentGroup().removeAll(),this._backgroundEl&&this.group.remove(this._backgroundEl),this.getSelectorGroup().removeAll()},e.prototype.renderInner=function(t,e,n,i,r,o,a){var s=this.getContentGroup(),l=_.createHashMap(),h=e.get("selectedMode"),c=[];n.eachRawSeries((function(t){!t.get("legendHoverLink")&&c.push(t.id)})),Sx(e.getData(),(function(r,o){var a=r.get("name");if(!this.newlineDisabled&&(""===a||"\n"===a)){var u=new Tx;return u.newline=!0,void s.add(u)}var d=n.getSeriesByName(a)[0];if(!l.get(a)){if(d){var p=d.getData(),f=p.getVisual("legendLineStyle")||{},g=p.getVisual("legendIcon"),m=p.getVisual("style"),v=this._createItem(d,a,o,r,e,t,f,m,g,h,i);v.on("click",wx(Ax,a,null,i,c)).on("mouseover",wx(Ix,d.name,null,i,c)).on("mouseout",wx(Ex,d.name,null,i,c)),n.ssr&&v.eachChild((function(t){var e=(0,Xt.z)(t);e.seriesIndex=d.seriesIndex,e.dataIndex=o,e.ssrType="legend"})),l.set(a,!0)}else n.eachRawSeries((function(s){if(!l.get(a)&&s.legendVisualProvider){var u=s.legendVisualProvider;if(!u.containName(a))return;var d=u.indexOfName(a),p=u.getItemVisual(d,"style"),f=u.getItemVisual(d,"legendIcon"),g=(0,K.parse)(p.fill);g&&0===g[3]&&(g[3]=.2,p=_.extend(_.extend({},p),{fill:(0,K.stringify)(g,"rgba")}));var m=this._createItem(s,a,o,r,e,t,{},p,f,h,i);m.on("click",wx(Ax,null,a,i,c)).on("mouseover",wx(Ix,null,a,i,c)).on("mouseout",wx(Ex,null,a,i,c)),n.ssr&&m.eachChild((function(t){var e=(0,Xt.z)(t);e.seriesIndex=s.seriesIndex,e.dataIndex=o,e.ssrType="legend"})),l.set(a,!0)}}),this);0}}),this),r&&this._createSelector(r,e,i,o,a)},e.prototype._createSelector=function(t,e,n,i,r){var o=this.getSelectorGroup();Sx(t,(function(t){var i=t.type,r=new Z.Ay({style:{x:0,y:0,align:"center",verticalAlign:"middle"},onclick:function(){n.dispatchAction({type:"all"===i?"legendAllSelect":"legendInverseSelect"})}});o.add(r);var a=e.getModel("selectorLabel"),s=e.getModel(["emphasis","selectorLabel"]);(0,Jt.qM)(r,{normal:a,emphasis:s},{defaultText:t.title}),(0,Yt.iJ)(r)}))},e.prototype._createItem=function(t,e,n,i,r,o,a,s,l,h,c){var u=t.visualDrawType,d=r.get("itemWidth"),p=r.get("itemHeight"),f=r.isSelected(e),g=i.get("symbolRotate"),m=i.get("symbolKeepAspect"),v=i.get("icon"),y=function(t,e,n,i,r,o,a){function s(t,e){"auto"===t.lineWidth&&(t.lineWidth=e.lineWidth>0?2:0),Sx(t,(function(n,i){"inherit"===t[i]&&(t[i]=e[i])}))}var l=e.getModel("itemStyle"),h=l.getItemStyle(),c=0===t.lastIndexOf("empty",0)?"fill":"stroke",u=l.getShallow("decal");h.decal=u&&"inherit"!==u?(0,Go.w)(u,a):i.decal,"inherit"===h.fill&&(h.fill=i[r]);"inherit"===h.stroke&&(h.stroke=i[c]);"inherit"===h.opacity&&(h.opacity=("fill"===r?i:n).opacity);s(h,i);var d=e.getModel("lineStyle"),p=d.getLineStyle();if(s(p,n),"auto"===h.fill&&(h.fill=i.fill),"auto"===h.stroke&&(h.stroke=i.fill),"auto"===p.stroke&&(p.stroke=i.fill),!o){var f=e.get("inactiveBorderWidth"),g=h[c];h.lineWidth="auto"===f?i.lineWidth>0&&g?2:0:h.lineWidth,h.fill=e.get("inactiveColor"),h.stroke=e.get("inactiveBorderColor"),p.stroke=d.get("inactiveColor"),p.lineWidth=d.get("inactiveWidth")}return{itemStyle:h,lineStyle:p}}(l=v||l||"roundRect",i,a,s,u,f,c),x=new Tx,b=i.getModel("textStyle");if(!_.isFunction(t.getLegendIcon)||v&&"inherit"!==v){var w="inherit"===v&&t.getData().getVisual("symbol")?"inherit"===g?t.getData().getVisual("symbolRotate"):g:0;x.add(function(t){var e=t.icon||"roundRect",n=(0,Vt.v5)(e,0,0,t.itemWidth,t.itemHeight,t.itemStyle.fill,t.symbolKeepAspect);n.setStyle(t.itemStyle),n.rotation=(t.iconRotate||0)*Math.PI/180,n.setOrigin([t.itemWidth/2,t.itemHeight/2]),e.indexOf("empty")>-1&&(n.style.stroke=n.style.fill,n.style.fill="#fff",n.style.lineWidth=2);return n}({itemWidth:d,itemHeight:p,icon:l,iconRotate:w,itemStyle:y.itemStyle,lineStyle:y.lineStyle,symbolKeepAspect:m}))}else x.add(t.getLegendIcon({itemWidth:d,itemHeight:p,icon:l,iconRotate:g,itemStyle:y.itemStyle,lineStyle:y.lineStyle,symbolKeepAspect:m}));var S="left"===o?d+5:-5,T=o,M=r.get("formatter"),A=e;_.isString(M)&&M?A=M.replace("{name}",null!=e?e:""):_.isFunction(M)&&(A=M(e));var C=f?b.getTextColor():i.get("inactiveColor");x.add(new Z.Ay({style:(0,Jt.VB)(b,{text:A,x:S,y:p/2,fill:C,align:T,verticalAlign:"middle"},{inheritColor:C})}));var I=new be.A({shape:x.getBoundingRect(),style:{fill:"transparent"}}),E=i.getModel("tooltip");return E.get("show")&&qt.setTooltipConfig({el:I,componentModel:r,itemName:e,itemTooltipOption:E.option}),x.add(I),x.eachChild((function(t){t.silent=!0})),I.silent=!h,this.getContentGroup().add(x),(0,Yt.iJ)(x),x.__legendDataIndex=n,x},e.prototype.layoutInner=function(t,e,n,i,r,o){var a=this.getContentGroup(),s=this.getSelectorGroup();Mn.aP(t.get("orient"),a,t.get("itemGap"),n.width,n.height);var l=a.getBoundingRect(),h=[-l.x,-l.y];if(s.markRedraw(),a.markRedraw(),r){Mn.aP("horizontal",s,t.get("selectorItemGap",!0));var c=s.getBoundingRect(),u=[-c.x,-c.y],d=t.get("selectorButtonGap",!0),p=t.getOrient().index,f=0===p?"width":"height",g=0===p?"height":"width",m=0===p?"y":"x";"end"===o?u[p]+=l[f]+d:h[p]+=c[f]+d,u[1-p]+=l[g]/2-c[g]/2,s.x=u[0],s.y=u[1],a.x=h[0],a.y=h[1];var v={x:0,y:0};return v[f]=l[f]+d+c[f],v[g]=Math.max(l[g],c[g]),v[m]=Math.min(0,c[m]+u[1-p]),v}return a.x=h[0],a.y=h[1],this.group.getBoundingRect()},e.prototype.remove=function(){this.getContentGroup().removeAll(),this._isFirstRender=!0},e.type="legend.plain",e}(ri.A);function Ax(t,e,n,i){Ex(t,e,n,i),n.dispatchAction({type:"legendToggleSelect",name:null!=t?t:e}),Ix(t,e,n,i)}function Cx(t){for(var e,n=t.getZr().storage.getDisplayList(),i=0,r=n.length;i<r&&!(e=n[i].states.emphasis);)i++;return e&&e.hoverLayer}function Ix(t,e,n,i){Cx(n)||n.dispatchAction({type:"highlight",seriesName:t,name:e,excludeSeriesId:i})}function Ex(t,e,n,i){Cx(n)||n.dispatchAction({type:"downplay",seriesName:t,name:e,excludeSeriesId:i})}const kx=Mx;function Lx(t){var e=t.findComponents({mainType:"legend"});e&&e.length&&t.filterSeries((function(t){for(var n=0;n<e.length;n++)if(!e[n].isSelected(t.name))return!1;return!0}))}function Dx(t,e,n){var i,r={},o="toggleSelected"===t;return n.eachComponent("legend",(function(n){o&&null!=i?n[i?"select":"unSelect"](e.name):"allSelect"===t||"inverseSelect"===t?n[t]():(n[t](e.name),i=n.isSelected(e.name));var a=n.getData();(0,_.each)(a,(function(t){var e=t.get("name");if("\n"!==e&&""!==e){var i=n.isSelected(e);r.hasOwnProperty(e)?r[e]=r[e]&&i:r[e]=i}}))})),"allSelect"===t||"inverseSelect"===t?{selected:r}:{name:e.name,selected:r}}function Px(t){t.registerComponentModel(bx),t.registerComponentView(kx),t.registerProcessor(t.PRIORITY.PROCESSOR.SERIES_FILTER,Lx),t.registerSubTypeDefaulter("legend",(function(){return"plain"})),function(t){t.registerAction("legendToggleSelect","legendselectchanged",(0,_.curry)(Dx,"toggleSelected")),t.registerAction("legendAllSelect","legendselectall",(0,_.curry)(Dx,"allSelect")),t.registerAction("legendInverseSelect","legendinverseselect",(0,_.curry)(Dx,"inverseSelect")),t.registerAction("legendSelect","legendselected",(0,_.curry)(Dx,"select")),t.registerAction("legendUnSelect","legendunselected",(0,_.curry)(Dx,"unSelect"))}(t)}function Rx(t,e,n){var i=[1,1];i[t.getOrient().index]=0,(0,Mn.YA)(e,n,{type:"box",ignoreSize:!!i})}const Ox=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return(0,Bt.C6)(e,t),e.prototype.setScrollDataIndex=function(t){this.option.scrollDataIndex=t},e.prototype.init=function(e,n,i){var r=(0,Mn.vs)(e);t.prototype.init.call(this,e,n,i),Rx(this,e,r)},e.prototype.mergeOption=function(e,n){t.prototype.mergeOption.call(this,e,n),Rx(this,this.option,e)},e.type="legend.scroll",e.defaultOption=(0,Ze.G_)(bx.defaultOption,{scrollDataIndex:0,pageButtonItemGap:5,pageButtonGap:null,pageButtonPosition:"end",pageFormatter:"{current}/{total}",pageIcons:{horizontal:["M0,0L12,-10L12,10z","M0,0L-12,-10L-12,10z"],vertical:["M0,0L20,0L10,-20z","M0,0L20,0L10,20z"]},pageIconColor:"#2f4554",pageIconInactiveColor:"#aaa",pageIconSize:15,pageTextStyle:{color:"#333"},animationDurationUpdate:800}),e}(bx);var Nx=jt.A,Fx=["width","height"],Bx=["x","y"],zx=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n.newlineDisabled=!0,n._currentIndex=0,n}return(0,Bt.C6)(e,t),e.prototype.init=function(){t.prototype.init.call(this),this.group.add(this._containerGroup=new Nx),this._containerGroup.add(this.getContentGroup()),this.group.add(this._controllerGroup=new Nx)},e.prototype.resetInner=function(){t.prototype.resetInner.call(this),this._controllerGroup.removeAll(),this._containerGroup.removeClipPath(),this._containerGroup.__rectSize=null},e.prototype.renderInner=function(e,n,i,r,o,a,s){var l=this;t.prototype.renderInner.call(this,e,n,i,r,o,a,s);var h=this._controllerGroup,c=n.get("pageIconSize",!0),u=_.isArray(c)?c:[c,c];p("pagePrev",0);var d=n.getModel("pageTextStyle");function p(t,e){var i=t+"DataIndex",o=qt.createIcon(n.get("pageIcons",!0)[n.getOrient().name][e],{onclick:_.bind(l._pageGo,l,i,n,r)},{x:-u[0]/2,y:-u[1]/2,width:u[0],height:u[1]});o.name=t,h.add(o)}h.add(new Z.Ay({name:"pageText",style:{text:"xx/xx",fill:d.getTextColor(),font:d.getFont(),verticalAlign:"middle",align:"center"},silent:!0})),p("pageNext",1)},e.prototype.layoutInner=function(t,e,n,i,r,o){var a=this.getSelectorGroup(),s=t.getOrient().index,l=Fx[s],h=Bx[s],c=Fx[1-s],u=Bx[1-s];r&&Mn.aP("horizontal",a,t.get("selectorItemGap",!0));var d=t.get("selectorButtonGap",!0),p=a.getBoundingRect(),f=[-p.x,-p.y],g=_.clone(n);r&&(g[l]=n[l]-p[l]-d);var m=this._layoutContentAndController(t,i,g,s,l,c,u,h);if(r){if("end"===o)f[s]+=m[l]+d;else{var v=p[l]+d;f[s]-=v,m[h]-=v}m[l]+=p[l]+d,f[1-s]+=m[u]+m[c]/2-p[c]/2,m[c]=Math.max(m[c],p[c]),m[u]=Math.min(m[u],p[u]+f[1-s]),a.x=f[0],a.y=f[1],a.markRedraw()}return m},e.prototype._layoutContentAndController=function(t,e,n,i,r,o,a,s){var l=this.getContentGroup(),h=this._containerGroup,c=this._controllerGroup;Mn.aP(t.get("orient"),l,t.get("itemGap"),i?n.width:null,i?null:n.height),Mn.aP("horizontal",c,t.get("pageButtonItemGap",!0));var u=l.getBoundingRect(),d=c.getBoundingRect(),p=this._showController=u[r]>n[r],f=[-u.x,-u.y];e||(f[i]=l[s]);var g=[0,0],m=[-d.x,-d.y],v=_.retrieve2(t.get("pageButtonGap",!0),t.get("itemGap",!0));p&&("end"===t.get("pageButtonPosition",!0)?m[i]+=n[r]-d[r]:g[i]+=d[r]+v);m[1-i]+=u[o]/2-d[o]/2,l.setPosition(f),h.setPosition(g),c.setPosition(m);var y={x:0,y:0};if(y[r]=p?n[r]:u[r],y[o]=Math.max(u[o],d[o]),y[a]=Math.min(0,d[a]+m[1-i]),h.__rectSize=n[r],p){var x={x:0,y:0};x[r]=Math.max(n[r]-d[r]-v,0),x[o]=y[o],h.setClipPath(new be.A({shape:x})),h.__rectSize=x[r]}else c.eachChild((function(t){t.attr({invisible:!0,silent:!0})}));var b=this._getPageInfo(t);return null!=b.pageIndex&&Ut.oi(l,{x:b.contentPosition[0],y:b.contentPosition[1]},p?t:null),this._updatePageInfoView(t,b),y},e.prototype._pageGo=function(t,e,n){var i=this._getPageInfo(e)[t];null!=i&&n.dispatchAction({type:"legendScroll",scrollDataIndex:i,legendId:e.id})},e.prototype._updatePageInfoView=function(t,e){var n=this._controllerGroup;_.each(["pagePrev","pageNext"],(function(i){var r=null!=e[i+"DataIndex"],o=n.childOfName(i);o&&(o.setStyle("fill",r?t.get("pageIconColor",!0):t.get("pageIconInactiveColor",!0)),o.cursor=r?"pointer":"default")}));var i=n.childOfName("pageText"),r=t.get("pageFormatter"),o=e.pageIndex,a=null!=o?o+1:0,s=e.pageCount;i&&r&&i.setStyle("text",_.isString(r)?r.replace("{current}",null==a?"":a+"").replace("{total}",null==s?"":s+""):r({current:a,total:s}))},e.prototype._getPageInfo=function(t){var e=t.get("scrollDataIndex",!0),n=this.getContentGroup(),i=this._containerGroup.__rectSize,r=t.getOrient().index,o=Fx[r],a=Bx[r],s=this._findTargetItemIndex(e),l=n.children(),h=l[s],c=l.length,u=c?1:0,d={contentPosition:[n.x,n.y],pageCount:u,pageIndex:u-1,pagePrevDataIndex:null,pageNextDataIndex:null};if(!h)return d;var p=y(h);d.contentPosition[r]=-p.s;for(var f=s+1,g=p,m=p,v=null;f<=c;++f)(!(v=y(l[f]))&&m.e>g.s+i||v&&!_(v,g.s))&&(g=m.i>g.i?m:v)&&(null==d.pageNextDataIndex&&(d.pageNextDataIndex=g.i),++d.pageCount),m=v;for(f=s-1,g=p,m=p,v=null;f>=-1;--f)(v=y(l[f]))&&_(m,v.s)||!(g.i<m.i)||(m=g,null==d.pagePrevDataIndex&&(d.pagePrevDataIndex=g.i),++d.pageCount,++d.pageIndex),g=v;return d;function y(t){if(t){var e=t.getBoundingRect(),n=e[a]+t[a];return{s:n,e:n+e[o],i:t.__legendDataIndex}}}function _(t,e){return t.e>=e&&t.s<=e+i}},e.prototype._findTargetItemIndex=function(t){return this._showController?(this.getContentGroup().eachChild((function(i,r){var o=i.__legendDataIndex;null==n&&null!=o&&(n=r),o===t&&(e=r)})),null!=e?e:n):0;var e,n},e.type="legend.scroll",e}(kx);const Gx=zx;function Vx(t){(0,i.Y)(Px),t.registerComponentModel(Ox),t.registerComponentView(Gx),function(t){t.registerAction("legendScroll","legendscroll",(function(t,e){var n=t.scrollDataIndex;null!=n&&e.eachComponent({mainType:"legend",subType:"scroll",query:t},(function(t){t.setScrollDataIndex(n)}))}))}(t)}const jx=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return(0,Bt.C6)(e,t),e.type="dataZoom.inside",e.defaultOption=(0,Ze.G_)(gv.defaultOption,{disabled:!1,zoomLock:!1,zoomOnMouseWheel:!0,moveOnMouseMove:!0,moveOnMouseWheel:!1,preventDefaultMouseMove:!0}),e}(gv);var Hx=(0,ce.$r)();function Wx(t,e){if(e){t.removeKey(e.model.uid);var n=e.controller;n&&n.dispose()}}function Ux(t,e){t.isDisposed()||t.dispatchAction({type:"dataZoom",animation:{easing:"cubicOut",duration:100},batch:e})}function qx(t,e,n,i){return t.coordinateSystem.containPoint([n,i])}function Xx(t){t.registerProcessor(t.PRIORITY.PROCESSOR.FILTER,(function(t,e){var n=Hx(e),i=n.coordSysRecordMap||(n.coordSysRecordMap=(0,_.createHashMap)());i.each((function(t){t.dataZoomInfoMap=null})),t.eachComponent({mainType:"dataZoom",subType:"inside"},(function(t){var n=uv(t);(0,_.each)(n.infoList,(function(n){var r=n.model.uid,o=i.get(r)||i.set(r,function(t,e){var n={model:e,containsPoint:(0,_.curry)(qx,e),dispatchAction:(0,_.curry)(Ux,t),dataZoomInfoMap:null,controller:null},i=n.controller=new Ur(t.getZr());return(0,_.each)(["pan","zoom","scrollMove"],(function(t){i.on(t,(function(e){var i=[];n.dataZoomInfoMap.each((function(r){if(e.isAvailableBehavior(r.model.option)){var o=(r.getRange||{})[t],a=o&&o(r.dzReferCoordSysInfo,n.model.mainType,n.controller,e);!r.model.get("disabled",!0)&&a&&i.push({dataZoomId:r.model.id,start:a[0],end:a[1]})}})),i.length&&n.dispatchAction(i)}))})),n}(e,n.model));(o.dataZoomInfoMap||(o.dataZoomInfoMap=(0,_.createHashMap)())).set(t.uid,{dzReferCoordSysInfo:n,model:t,getRange:null})}))})),i.each((function(t){var e,n=t.controller,r=t.dataZoomInfoMap;if(r){var o=r.keys()[0];null!=o&&(e=r.get(o))}if(e){var a=function(t){var e,n="type_",i={type_true:2,type_move:1,type_false:0,type_undefined:-1},r=!0;return t.each((function(t){var o=t.model,a=!o.get("disabled",!0)&&(!o.get("zoomLock",!0)||"move");i[n+a]>i[n+e]&&(e=a),r=r&&o.get("preventDefaultMouseMove",!0)})),{controlType:e,opt:{zoomOnMouseWheel:!0,moveOnMouseMove:!0,moveOnMouseWheel:!0,preventDefaultMouseMove:!!r}}}(r);n.enable(a.controlType,a.opt),n.setPointerChecker(t.containsPoint),Ke.N(t,"dispatchAction",e.model.get("throttle",!0),"fixRate")}else Wx(i,t)}))}))}var Yx=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="dataZoom.inside",e}return(0,Bt.C6)(e,t),e.prototype.render=function(e,n,i){t.prototype.render.apply(this,arguments),e.noTarget()?this._clear():(this.range=e.getPercentRange(),function(t,e,n){Hx(t).coordSysRecordMap.each((function(t){var i=t.dataZoomInfoMap.get(e.uid);i&&(i.getRange=n)}))}(i,e,{pan:(0,_.bind)(Zx.pan,this),zoom:(0,_.bind)(Zx.zoom,this),scrollMove:(0,_.bind)(Zx.scrollMove,this)}))},e.prototype.dispose=function(){this._clear(),t.prototype.dispose.apply(this,arguments)},e.prototype._clear=function(){!function(t,e){for(var n=Hx(t).coordSysRecordMap,i=n.keys(),r=0;r<i.length;r++){var o=i[r],a=n.get(o),s=a.dataZoomInfoMap;if(s){var l=e.uid;s.get(l)&&(s.removeKey(l),s.keys().length||Wx(n,a))}}}(this.api,this.dataZoomModel),this.range=null},e.type="dataZoom.inside",e}(vv),Zx={zoom:function(t,e,n,i){var r=this.range,o=r.slice(),a=t.axisModels[0];if(a){var s=Kx[e](null,[i.originX,i.originY],a,n,t),l=(s.signal>0?s.pixelStart+s.pixelLength-s.pixel:s.pixel-s.pixelStart)/s.pixelLength*(o[1]-o[0])+o[0],h=Math.max(1/i.scale,0);o[0]=(o[0]-l)*h+l,o[1]=(o[1]-l)*h+l;var c=this.dataZoomModel.findRepresentativeAxisProxy().getMinMaxSpan();return Kh(0,o,[0,100],0,c.minSpan,c.maxSpan),this.range=o,r[0]!==o[0]||r[1]!==o[1]?o:void 0}},pan:$x((function(t,e,n,i,r,o){var a=Kx[i]([o.oldX,o.oldY],[o.newX,o.newY],e,r,n);return a.signal*(t[1]-t[0])*a.pixel/a.pixelLength})),scrollMove:$x((function(t,e,n,i,r,o){return Kx[i]([0,0],[o.scrollDelta,o.scrollDelta],e,r,n).signal*(t[1]-t[0])*o.scrollDelta}))};function $x(t){return function(e,n,i,r){var o=this.range,a=o.slice(),s=e.axisModels[0];if(s)return Kh(t(a,s,e,n,i,r),a,[0,100],"all"),this.range=a,o[0]!==a[0]||o[1]!==a[1]?a:void 0}}var Kx={grid:function(t,e,n,i,r){var o=n.axis,a={},s=r.model.coordinateSystem.getRect();return t=t||[0,0],"x"===o.dim?(a.pixel=e[0]-t[0],a.pixelLength=s.width,a.pixelStart=s.x,a.signal=o.inverse?1:-1):(a.pixel=e[1]-t[1],a.pixelLength=s.height,a.pixelStart=s.y,a.signal=o.inverse?-1:1),a},polar:function(t,e,n,i,r){var o=n.axis,a={},s=r.model.coordinateSystem,l=s.getRadiusAxis().getExtent(),h=s.getAngleAxis().getExtent();return t=t?s.pointToCoord(t):[0,0],e=s.pointToCoord(e),"radiusAxis"===n.mainType?(a.pixel=e[0]-t[0],a.pixelLength=l[1]-l[0],a.pixelStart=l[0],a.signal=o.inverse?1:-1):(a.pixel=e[1]-t[1],a.pixelLength=h[1]-h[0],a.pixelStart=h[0],a.signal=o.inverse?-1:1),a},singleAxis:function(t,e,n,i,r){var o=n.axis,a=r.model.coordinateSystem.getRect(),s={};return t=t||[0,0],"horizontal"===o.orient?(s.pixel=e[0]-t[0],s.pixelLength=a.width,s.pixelStart=a.x,s.signal=o.inverse?1:-1):(s.pixel=e[1]-t[1],s.pixelLength=a.height,s.pixelStart=a.y,s.signal=o.inverse?-1:1),s}};const Jx=Yx;function Qx(t){Av(t),t.registerComponentModel(jx),t.registerComponentView(Jx),Xx(t)}const tb=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return(0,Bt.C6)(e,t),e.type="dataZoom.slider",e.layoutMode="box",e.defaultOption=(0,Ze.G_)(gv.defaultOption,{show:!0,right:"ph",top:"ph",width:"ph",height:"ph",left:null,bottom:null,borderColor:"#d2dbee",borderRadius:3,backgroundColor:"rgba(47,69,84,0)",dataBackground:{lineStyle:{color:"#d2dbee",width:.5},areaStyle:{color:"#d2dbee",opacity:.2}},selectedDataBackground:{lineStyle:{color:"#8fb0f7",width:.5},areaStyle:{color:"#8fb0f7",opacity:.2}},fillerColor:"rgba(135,175,274,0.2)",handleIcon:"path://M-9.35,34.56V42m0-40V9.5m-2,0h4a2,2,0,0,1,2,2v21a2,2,0,0,1-2,2h-4a2,2,0,0,1-2-2v-21A2,2,0,0,1-11.35,9.5Z",handleSize:"100%",handleStyle:{color:"#fff",borderColor:"#ACB8D1"},moveHandleSize:7,moveHandleIcon:"path://M-320.9-50L-320.9-50c18.1,0,27.1,9,27.1,27.1V85.7c0,18.1-9,27.1-27.1,27.1l0,0c-18.1,0-27.1-9-27.1-27.1V-22.9C-348-41-339-50-320.9-50z M-212.3-50L-212.3-50c18.1,0,27.1,9,27.1,27.1V85.7c0,18.1-9,27.1-27.1,27.1l0,0c-18.1,0-27.1-9-27.1-27.1V-22.9C-239.4-41-230.4-50-212.3-50z M-103.7-50L-103.7-50c18.1,0,27.1,9,27.1,27.1V85.7c0,18.1-9,27.1-27.1,27.1l0,0c-18.1,0-27.1-9-27.1-27.1V-22.9C-130.9-41-121.8-50-103.7-50z",moveHandleStyle:{color:"#D2DBEE",opacity:.7},showDetail:!0,showDataShadow:"auto",realtime:!0,zoomLock:!1,textStyle:{color:"#6E7079"},brushSelect:!0,brushStyle:{color:"rgba(135,175,274,0.15)"},emphasis:{handleStyle:{borderColor:"#8FB0F7"},moveHandleStyle:{color:"#8FB0F7"}}}),e}(gv);var eb=be.A,nb="horizontal",ib="vertical",rb=["line","bar","candlestick","scatter"],ob={easing:"cubicOut",duration:100,delay:0},ab=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n._displayables={},n}return(0,Bt.C6)(e,t),e.prototype.init=function(t,e){this.api=e,this._onBrush=(0,_.bind)(this._onBrush,this),this._onBrushEnd=(0,_.bind)(this._onBrushEnd,this)},e.prototype.render=function(e,n,i,r){if(t.prototype.render.apply(this,arguments),Ke.N(this,"_dispatchZoomAction",e.get("throttle"),"fixRate"),this._orient=e.getOrient(),!1!==e.get("show")){if(e.noTarget())return this._clear(),void this.group.removeAll();r&&"dataZoom"===r.type&&r.from===this.uid||this._buildView(),this._updateView()}else this.group.removeAll()},e.prototype.dispose=function(){this._clear(),t.prototype.dispose.apply(this,arguments)},e.prototype._clear=function(){Ke.IU(this,"_dispatchZoomAction");var t=this.api.getZr();t.off("mousemove",this._onBrush),t.off("mouseup",this._onBrushEnd)},e.prototype._buildView=function(){var t=this.group;t.removeAll(),this._brushing=!1,this._displayables.brushRect=null,this._resetLocation(),this._resetInterval();var e=this._displayables.sliderGroup=new jt.A;this._renderBackground(),this._renderHandle(),this._renderDataShadow(),t.add(e),this._positionGroup()},e.prototype._resetLocation=function(){var t=this.dataZoomModel,e=this.api,n=t.get("brushSelect")?7:0,i=this._findCoordRect(),r={width:e.getWidth(),height:e.getHeight()},o=this._orient===nb?{right:r.width-i.x-i.width,top:r.height-30-7-n,width:i.width,height:30}:{right:7,top:i.y,width:30,height:i.height},a=Mn.vs(t.option);(0,_.each)(["right","top","width","height"],(function(t){"ph"===a[t]&&(a[t]=o[t])}));var s=Mn.dV(a,r);this._location={x:s.x,y:s.y},this._size=[s.width,s.height],this._orient===ib&&this._size.reverse()},e.prototype._positionGroup=function(){var t=this.group,e=this._location,n=this._orient,i=this.dataZoomModel.getFirstTargetAxisModel(),r=i&&i.get("inverse"),o=this._displayables.sliderGroup,a=(this._dataShadowInfo||{}).otherAxisInverse;o.attr(n!==nb||r?n===nb&&r?{scaleY:a?1:-1,scaleX:-1}:n!==ib||r?{scaleY:a?-1:1,scaleX:-1,rotation:Math.PI/2}:{scaleY:a?-1:1,scaleX:1,rotation:Math.PI/2}:{scaleY:a?1:-1,scaleX:1});var s=t.getBoundingRect([o]);t.x=e.x-s.x,t.y=e.y-s.y,t.markRedraw()},e.prototype._getViewExtent=function(){return[0,this._size[0]]},e.prototype._renderBackground=function(){var t=this.dataZoomModel,e=this._size,n=this._displayables.sliderGroup,i=t.get("brushSelect");n.add(new eb({silent:!0,shape:{x:0,y:0,width:e[0],height:e[1]},style:{fill:t.get("backgroundColor")},z2:-40}));var r=new eb({shape:{x:0,y:0,width:e[0],height:e[1]},style:{fill:"transparent"},z2:0,onclick:(0,_.bind)(this._onClickPanel,this)}),o=this.api.getZr();i?(r.on("mousedown",this._onBrushStart,this),r.cursor="crosshair",o.on("mousemove",this._onBrush),o.on("mouseup",this._onBrushEnd)):(o.off("mousemove",this._onBrush),o.off("mouseup",this._onBrushEnd)),n.add(r)},e.prototype._renderDataShadow=function(){var t=this._dataShadowInfo=this._prepareDataShadowInfo();if(this._displayables.dataShadowSegs=[],t){var e=this._size,n=this._shadowSize||[],i=t.series,r=i.getRawData(),o=i.getShadowDim&&i.getShadowDim(),a=o&&r.getDimensionInfo(o)?i.getShadowDim():t.otherDim;if(null!=a){var s=this._shadowPolygonPts,l=this._shadowPolylinePts;if(r!==this._shadowData||a!==this._shadowDim||e[0]!==n[0]||e[1]!==n[1]){var h=r.getDataExtent(a),c=.3*(h[1]-h[0]);h=[h[0]-c,h[1]+c];var u,d=[0,e[1]],p=[0,e[0]],f=[[e[0],0],[0,0]],g=[],m=p[1]/(r.count()-1),v=0,y=Math.round(r.count()/e[0]);r.each([a],(function(t,e){if(y>0&&e%y)v+=m;else{var n=null==t||isNaN(t)||""===t,i=n?0:(0,Se.Cb)(t,h,d,!0);n&&!u&&e?(f.push([f[f.length-1][0],0]),g.push([g[g.length-1][0],0])):!n&&u&&(f.push([v,0]),g.push([v,0])),f.push([v,i]),g.push([v,i]),v+=m,u=n}})),s=this._shadowPolygonPts=f,l=this._shadowPolylinePts=g}this._shadowData=r,this._shadowDim=a,this._shadowSize=[e[0],e[1]];for(var _=this.dataZoomModel,x=0;x<3;x++){var b=w(1===x);this._displayables.sliderGroup.add(b),this._displayables.dataShadowSegs.push(b)}}}function w(t){var e=_.getModel(t?"selectedDataBackground":"dataBackground"),n=new jt.A,i=new yr.A({shape:{points:s},segmentIgnoreThreshold:1,style:e.getModel("areaStyle").getAreaStyle(),silent:!0,z2:-20}),r=new Pn.A({shape:{points:l},segmentIgnoreThreshold:1,style:e.getModel("lineStyle").getLineStyle(),silent:!0,z2:-19});return n.add(i),n.add(r),n}},e.prototype._prepareDataShadowInfo=function(){var t=this.dataZoomModel,e=t.get("showDataShadow");if(!1!==e){var n,i=this.ecModel;return t.eachTargetAxis((function(r,o){var a=t.getAxisProxy(r,o).getTargetSeriesModels();(0,_.each)(a,(function(t){if(!(n||!0!==e&&(0,_.indexOf)(rb,t.get("type"))<0)){var a,s=i.getComponent(hv(r),o).axis,l={x:"y",y:"x",radius:"angle",angle:"radius"}[r],h=t.coordinateSystem;null!=l&&h.getOtherAxis&&(a=h.getOtherAxis(s).inverse),l=t.getData().mapDimension(l),n={thisAxis:s,series:t,thisDim:r,otherDim:l,otherAxisInverse:a}}}),this)}),this),n}},e.prototype._renderHandle=function(){var t=this.group,e=this._displayables,n=e.handles=[null,null],i=e.handleLabels=[null,null],r=this._displayables.sliderGroup,o=this._size,a=this.dataZoomModel,s=this.api,l=a.get("borderRadius")||0,h=a.get("brushSelect"),c=e.filler=new eb({silent:h,style:{fill:a.get("fillerColor")},textConfig:{position:"inside"}});r.add(c),r.add(new eb({silent:!0,subPixelOptimize:!0,shape:{x:0,y:0,width:o[0],height:o[1],r:l},style:{stroke:a.get("dataBackgroundColor")||a.get("borderColor"),lineWidth:1,fill:"rgba(0,0,0,0)"}})),(0,_.each)([0,1],(function(e){var o=a.get("handleIcon");!Vt.$V[o]&&o.indexOf("path://")<0&&o.indexOf("image://")<0&&(o="path://"+o);var s=(0,Vt.v5)(o,-1,0,2,2,null,!0);s.attr({cursor:sb(this._orient),draggable:!0,drift:(0,_.bind)(this._onDragMove,this,e),ondragend:(0,_.bind)(this._onDragEnd,this),onmouseover:(0,_.bind)(this._showDataInfo,this,!0),onmouseout:(0,_.bind)(this._showDataInfo,this,!1),z2:5});var l=s.getBoundingRect(),h=a.get("handleSize");this._handleHeight=(0,Se.lo)(h,this._size[1]),this._handleWidth=l.width/l.height*this._handleHeight,s.setStyle(a.getModel("handleStyle").getItemStyle()),s.style.strokeNoScale=!0,s.rectHover=!0,s.ensureState("emphasis").style=a.getModel(["emphasis","handleStyle"]).getItemStyle(),(0,Yt.iJ)(s);var c=a.get("handleColor");null!=c&&(s.style.fill=c),r.add(n[e]=s);var u=a.getModel("textStyle");t.add(i[e]=new Z.Ay({silent:!0,invisible:!0,style:(0,Jt.VB)(u,{x:0,y:0,text:"",verticalAlign:"middle",align:"center",fill:u.getTextColor(),font:u.getFont()}),z2:10}))}),this);var u=c;if(h){var d=(0,Se.lo)(a.get("moveHandleSize"),o[1]),p=e.moveHandle=new be.A({style:a.getModel("moveHandleStyle").getItemStyle(),silent:!0,shape:{r:[0,0,2,2],y:o[1]-.5,height:d}}),f=.8*d,g=e.moveHandleIcon=(0,Vt.v5)(a.get("moveHandleIcon"),-f/2,-f/2,f,f,"#fff",!0);g.silent=!0,g.y=o[1]+d/2-.5,p.ensureState("emphasis").style=a.getModel(["emphasis","moveHandleStyle"]).getItemStyle();var m=Math.min(o[1]/2,Math.max(d,10));(u=e.moveZone=new be.A({invisible:!0,shape:{y:o[1]-m,height:d+m}})).on("mouseover",(function(){s.enterEmphasis(p)})).on("mouseout",(function(){s.leaveEmphasis(p)})),r.add(p),r.add(g),r.add(u)}u.attr({draggable:!0,cursor:sb(this._orient),drift:(0,_.bind)(this._onDragMove,this,"all"),ondragstart:(0,_.bind)(this._showDataInfo,this,!0),ondragend:(0,_.bind)(this._onDragEnd,this),onmouseover:(0,_.bind)(this._showDataInfo,this,!0),onmouseout:(0,_.bind)(this._showDataInfo,this,!1)})},e.prototype._resetInterval=function(){var t=this._range=this.dataZoomModel.getPercentRange(),e=this._getViewExtent();this._handleEnds=[(0,Se.Cb)(t[0],[0,100],e,!0),(0,Se.Cb)(t[1],[0,100],e,!0)]},e.prototype._updateInterval=function(t,e){var n=this.dataZoomModel,i=this._handleEnds,r=this._getViewExtent(),o=n.findRepresentativeAxisProxy().getMinMaxSpan(),a=[0,100];Kh(e,i,r,n.get("zoomLock")?"all":t,null!=o.minSpan?(0,Se.Cb)(o.minSpan,a,r,!0):null,null!=o.maxSpan?(0,Se.Cb)(o.maxSpan,a,r,!0):null);var s=this._range,l=this._range=(0,Se.Y6)([(0,Se.Cb)(i[0],r,a,!0),(0,Se.Cb)(i[1],r,a,!0)]);return!s||s[0]!==l[0]||s[1]!==l[1]},e.prototype._updateView=function(t){var e=this._displayables,n=this._handleEnds,i=(0,Se.Y6)(n.slice()),r=this._size;(0,_.each)([0,1],(function(t){var i=e.handles[t],o=this._handleHeight;i.attr({scaleX:o/2,scaleY:o/2,x:n[t]+(t?-1:1),y:r[1]/2-o/2})}),this),e.filler.setShape({x:i[0],y:0,width:i[1]-i[0],height:r[1]});var o={x:i[0],width:i[1]-i[0]};e.moveHandle&&(e.moveHandle.setShape(o),e.moveZone.setShape(o),e.moveZone.getBoundingRect(),e.moveHandleIcon&&e.moveHandleIcon.attr("x",o.x+o.width/2));for(var a=e.dataShadowSegs,s=[0,i[0],i[1],r[0]],l=0;l<a.length;l++){var h=a[l],c=h.getClipPath();c||(c=new be.A,h.setClipPath(c)),c.setShape({x:s[l],y:0,width:s[l+1]-s[l],height:r[1]})}this._updateDataInfo(t)},e.prototype._updateDataInfo=function(t){var e=this.dataZoomModel,n=this._displayables,i=n.handleLabels,r=this._orient,o=["",""];if(e.get("showDetail")){var a=e.findRepresentativeAxisProxy();if(a){var s=a.getAxisModel().axis,l=this._range,h=t?a.calculateDataWindow({start:l[0],end:l[1]}).valueWindow:a.getDataValueWindow();o=[this._formatLabel(h[0],s),this._formatLabel(h[1],s)]}}var c=(0,Se.Y6)(this._handleEnds.slice());function u(t){var e=qt.getTransform(n.handles[t].parent,this.group),a=qt.transformDirection(0===t?"right":"left",e),s=this._handleWidth/2+5,l=qt.applyTransform([c[t]+(0===t?-s:s),this._size[1]/2],e);i[t].setStyle({x:l[0],y:l[1],verticalAlign:r===nb?"middle":a,align:r===nb?a:"center",text:o[t]})}u.call(this,0),u.call(this,1)},e.prototype._formatLabel=function(t,e){var n=this.dataZoomModel,i=n.get("labelFormatter"),r=n.get("labelPrecision");null!=r&&"auto"!==r||(r=e.getPixelPrecision());var o=null==t||isNaN(t)?"":"category"===e.type||"time"===e.type?e.scale.getLabel({value:Math.round(t)}):t.toFixed(Math.min(r,20));return(0,_.isFunction)(i)?i(t,o):(0,_.isString)(i)?i.replace("{value}",o):o},e.prototype._showDataInfo=function(t){t=this._dragging||t;var e=this._displayables,n=e.handleLabels;n[0].attr("invisible",!t),n[1].attr("invisible",!t),e.moveHandle&&this.api[t?"enterEmphasis":"leaveEmphasis"](e.moveHandle,1)},e.prototype._onDragMove=function(t,e,n,i){this._dragging=!0,Fr.ds(i.event);var r=this._displayables.sliderGroup.getLocalTransform(),o=qt.applyTransform([e,n],r,!0),a=this._updateInterval(t,o[0]),s=this.dataZoomModel.get("realtime");this._updateView(!s),a&&s&&this._dispatchZoomAction(!0)},e.prototype._onDragEnd=function(){this._dragging=!1,this._showDataInfo(!1),!this.dataZoomModel.get("realtime")&&this._dispatchZoomAction(!1)},e.prototype._onClickPanel=function(t){var e=this._size,n=this._displayables.sliderGroup.transformCoordToLocal(t.offsetX,t.offsetY);if(!(n[0]<0||n[0]>e[0]||n[1]<0||n[1]>e[1])){var i=this._handleEnds,r=(i[0]+i[1])/2,o=this._updateInterval("all",n[0]-r);this._updateView(),o&&this._dispatchZoomAction(!1)}},e.prototype._onBrushStart=function(t){var e=t.offsetX,n=t.offsetY;this._brushStart=new Rn.A(e,n),this._brushing=!0,this._brushStartTime=+new Date},e.prototype._onBrushEnd=function(t){if(this._brushing){var e=this._displayables.brushRect;if(this._brushing=!1,e){e.attr("ignore",!0);var n=e.shape;if(!(+new Date-this._brushStartTime<200&&Math.abs(n.width)<5)){var i=this._getViewExtent(),r=[0,100];this._range=(0,Se.Y6)([(0,Se.Cb)(n.x,i,r,!0),(0,Se.Cb)(n.x+n.width,i,r,!0)]),this._handleEnds=[n.x,n.x+n.width],this._updateView(),this._dispatchZoomAction(!1)}}}},e.prototype._onBrush=function(t){this._brushing&&(Fr.ds(t.event),this._updateBrushRect(t.offsetX,t.offsetY))},e.prototype._updateBrushRect=function(t,e){var n=this._displayables,i=this.dataZoomModel,r=n.brushRect;r||(r=n.brushRect=new eb({silent:!0,style:i.getModel("brushStyle").getItemStyle()}),n.sliderGroup.add(r)),r.attr("ignore",!1);var o=this._brushStart,a=this._displayables.sliderGroup,s=a.transformCoordToLocal(t,e),l=a.transformCoordToLocal(o.x,o.y),h=this._size;s[0]=Math.max(Math.min(h[0],s[0]),0),r.setShape({x:l[0],y:0,width:s[0]-l[0],height:h[1]})},e.prototype._dispatchZoomAction=function(t){var e=this._range;this.api.dispatchAction({type:"dataZoom",from:this.uid,dataZoomId:this.dataZoomModel.id,animation:t?ob:null,start:e[0],end:e[1]})},e.prototype._findCoordRect=function(){var t,e=uv(this.dataZoomModel).infoList;if(!t&&e.length){var n=e[0].model.coordinateSystem;t=n.getRect&&n.getRect()}if(!t){var i=this.api.getWidth(),r=this.api.getHeight();t={x:.2*i,y:.2*r,width:.6*i,height:.6*r}}return t},e.type="dataZoom.slider",e}(vv);function sb(t){return"vertical"===t?"ns-resize":"ew-resize"}const lb=ab;function hb(t){t.registerComponentModel(tb),t.registerComponentView(lb),Av(t)}var cb={get:function(t,e,n){var i=_.clone((ub[t]||{})[e]);return n&&_.isArray(i)?i[i.length-1]:i}},ub={color:{active:["#006edd","#e0ffff"],inactive:["rgba(0,0,0,0)"]},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]}};const db=cb;var pb=Zs.mapVisual,fb=Zs.eachVisual,gb=_.isArray,mb=_.each,vb=Se.Y6,yb=Se.Cb,_b=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.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(0,Bt.C6)(e,t),e.prototype.init=function(t,e,n){this.mergeDefaultAndTheme(t,n)},e.prototype.optionUpdated=function(t,e){var n=this.option;!e&&Qy(n,t,this.replacableOptionKeys),this.textStyleModel=this.getModel("textStyle"),this.resetItemSize(),this.completeVisualOption()},e.prototype.resetVisual=function(t){var e=this.stateList;t=_.bind(t,this),this.controllerVisuals=Jy(this.option.controller,e,t),this.targetVisuals=Jy(this.option.target,e,t)},e.prototype.getItemSymbol=function(){return null},e.prototype.getTargetSeriesIndices=function(){var t=this.option.seriesIndex,e=[];return null==t||"all"===t?this.ecModel.eachSeries((function(t,n){e.push(n)})):e=ce.qB(t),e},e.prototype.eachTargetSeries=function(t,e){_.each(this.getTargetSeriesIndices(),(function(n){var i=this.ecModel.getSeriesByIndex(n);i&&t.call(e,i)}),this)},e.prototype.isTargetSeries=function(t){var e=!1;return this.eachTargetSeries((function(n){n===t&&(e=!0)})),e},e.prototype.formatValueText=function(t,e,n){var i,r=this.option,o=r.precision,a=this.dataBound,s=r.formatter;n=n||["<",">"],_.isArray(t)&&(t=t.slice(),i=!0);var l=e?t:i?[h(t[0]),h(t[1])]:h(t);return _.isString(s)?s.replace("{value}",i?l[0]:l).replace("{value2}",i?l[1]:l):_.isFunction(s)?i?s(t[0],t[1]):s(t):i?t[0]===a[0]?n[0]+" "+l[1]:t[1]===a[1]?n[1]+" "+l[0]:l[0]+" - "+l[1]:l;function h(t){return t===a[0]?"min":t===a[1]?"max":(+t).toFixed(Math.min(o,20))}},e.prototype.resetExtent=function(){var t=this.option,e=vb([t.min,t.max]);this._dataExtent=e},e.prototype.getDataDimensionIndex=function(t){var e=this.option.dimension;if(null!=e)return t.getDimensionIndex(e);for(var n=t.dimensions,i=n.length-1;i>=0;i--){var r=n[i],o=t.getDimensionInfo(r);if(!o.isCalculationCoord)return o.storeDimIndex}},e.prototype.getExtent=function(){return this._dataExtent.slice()},e.prototype.completeVisualOption=function(){var t=this.ecModel,e=this.option,n={inRange:e.inRange,outOfRange:e.outOfRange},i=e.target||(e.target={}),r=e.controller||(e.controller={});_.merge(i,n),_.merge(r,n);var o=this.isCategory();function a(n){gb(e.color)&&!n.inRange&&(n.inRange={color:e.color.slice().reverse()}),n.inRange=n.inRange||{color:t.get("gradientColor")}}a.call(this,i),a.call(this,r),function(t,e,n){var i=t[e],r=t[n];i&&!r&&(r=t[n]={},mb(i,(function(t,e){if(Zs.isValidType(e)){var n=db.get(e,"inactive",o);null!=n&&(r[e]=n,"color"!==e||r.hasOwnProperty("opacity")||r.hasOwnProperty("colorAlpha")||(r.opacity=[0,0]))}})))}.call(this,i,"inRange","outOfRange"),function(t){var e=(t.inRange||{}).symbol||(t.outOfRange||{}).symbol,n=(t.inRange||{}).symbolSize||(t.outOfRange||{}).symbolSize,i=this.get("inactiveColor"),r=this.getItemSymbol()||"roundRect";mb(this.stateList,(function(a){var s=this.itemSize,l=t[a];l||(l=t[a]={color:o?i:[i]}),null==l.symbol&&(l.symbol=e&&_.clone(e)||(o?r:[r])),null==l.symbolSize&&(l.symbolSize=n&&_.clone(n)||(o?s[0]:[s[0],s[0]])),l.symbol=pb(l.symbol,(function(t){return"none"===t?r:t}));var h=l.symbolSize;if(null!=h){var c=-1/0;fb(h,(function(t){t>c&&(c=t)})),l.symbolSize=pb(h,(function(t){return yb(t,[0,c],[0,s[0]],!0)}))}}),this)}.call(this,r)},e.prototype.resetItemSize=function(){this.itemSize=[parseFloat(this.get("itemWidth")),parseFloat(this.get("itemHeight"))]},e.prototype.isCategory=function(){return!!this.option.categories},e.prototype.setSelected=function(t){},e.prototype.getSelected=function(){return null},e.prototype.getValueState=function(t){return null},e.prototype.getVisualMeta=function(t){return null},e.type="visualMap",e.dependencies=["series"],e.defaultOption={show:!0,z:4,seriesIndex:"all",min:0,max:200,left:0,right:null,top:null,bottom:0,itemWidth:null,itemHeight:null,inverse:!1,orient:"vertical",backgroundColor:"rgba(0,0,0,0)",borderColor:"#ccc",contentColor:"#5793f3",inactiveColor:"#aaa",borderWidth:0,padding:5,textGap:10,precision:0,textStyle:{color:"#333"}},e}(oi.A);const xb=_b;var bb=[20,140],wb=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return(0,Bt.C6)(e,t),e.prototype.optionUpdated=function(e,n){t.prototype.optionUpdated.apply(this,arguments),this.resetExtent(),this.resetVisual((function(t){t.mappingMethod="linear",t.dataExtent=this.getExtent()})),this._resetRange()},e.prototype.resetItemSize=function(){t.prototype.resetItemSize.apply(this,arguments);var e=this.itemSize;(null==e[0]||isNaN(e[0]))&&(e[0]=bb[0]),(null==e[1]||isNaN(e[1]))&&(e[1]=bb[1])},e.prototype._resetRange=function(){var t=this.getExtent(),e=this.option.range;!e||e.auto?(t.auto=1,this.option.range=t):_.isArray(e)&&(e[0]>e[1]&&e.reverse(),e[0]=Math.max(e[0],t[0]),e[1]=Math.min(e[1],t[1]))},e.prototype.completeVisualOption=function(){t.prototype.completeVisualOption.apply(this,arguments),_.each(this.stateList,(function(t){var e=this.option.controller[t].symbolSize;e&&e[0]!==e[1]&&(e[0]=e[1]/3)}),this)},e.prototype.setSelected=function(t){this.option.range=t.slice(),this._resetRange()},e.prototype.getSelected=function(){var t=this.getExtent(),e=Se.Y6((this.get("range")||[]).slice());return e[0]>t[1]&&(e[0]=t[1]),e[1]>t[1]&&(e[1]=t[1]),e[0]<t[0]&&(e[0]=t[0]),e[1]<t[0]&&(e[1]=t[0]),e},e.prototype.getValueState=function(t){var e=this.option.range,n=this.getExtent();return(e[0]<=n[0]||e[0]<=t)&&(e[1]>=n[1]||t<=e[1])?"inRange":"outOfRange"},e.prototype.findTargetDataIndices=function(t){var e=[];return this.eachTargetSeries((function(n){var i=[],r=n.getData();r.each(this.getDataDimensionIndex(r),(function(e,n){t[0]<=e&&e<=t[1]&&i.push(n)}),this),e.push({seriesId:n.id,dataIndex:i})}),this),e},e.prototype.getVisualMeta=function(t){var e=Sb(this,"outOfRange",this.getExtent()),n=Sb(this,"inRange",this.option.range.slice()),i=[];function r(e,n){i.push({value:e,color:t(e,n)})}for(var o=0,a=0,s=n.length,l=e.length;a<l&&(!n.length||e[a]<=n[0]);a++)e[a]<n[o]&&r(e[a],"outOfRange");for(var h=1;o<s;o++,h=0)h&&i.length&&r(n[o],"outOfRange"),r(n[o],"inRange");for(h=1;a<l;a++)(!n.length||n[n.length-1]<e[a])&&(h&&(i.length&&r(i[i.length-1].value,"outOfRange"),h=0),r(e[a],"outOfRange"));var c=i.length;return{stops:i,outerColors:[c?i[0].color:"transparent",c?i[c-1].color:"transparent"]}},e.type="visualMap.continuous",e.defaultOption=(0,Ze.G_)(xb.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:"#fff",borderWidth:1},indicatorIcon:"circle",indicatorSize:"50%",indicatorStyle:{borderColor:"#fff",borderWidth:2,shadowBlur:2,shadowOffsetX:1,shadowOffsetY:1,shadowColor:"rgba(0,0,0,0.2)"}}),e}(xb);function Sb(t,e,n){if(n[0]===n[1])return n.slice();for(var i=(n[1]-n[0])/200,r=n[0],o=[],a=0;a<=200&&r<n[1];a++)o.push(r),r+=i;return o.push(n[1]),o}const Tb=wb;const Mb=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n.autoPositionValues={left:1,right:1,top:1,bottom:1},n}return(0,Bt.C6)(e,t),e.prototype.init=function(t,e){this.ecModel=t,this.api=e},e.prototype.render=function(t,e,n,i){this.visualMapModel=t,!1!==t.get("show")?this.doRender(t,e,n,i):this.group.removeAll()},e.prototype.renderBackground=function(t){var e=this.visualMapModel,n=Ie.QX(e.get("padding")||0),i=t.getBoundingRect();t.add(new be.A({z2:-1,silent:!0,shape:{x:i.x-n[3],y:i.y-n[0],width:i.width+n[3]+n[1],height:i.height+n[0]+n[2]},style:{fill:e.get("backgroundColor"),stroke:e.get("borderColor"),lineWidth:e.get("borderWidth")}}))},e.prototype.getControllerVisual=function(t,e,n){var i=(n=n||{}).forceState,r=this.visualMapModel,o={};if("color"===e){var a=r.get("contentColor");o.color=a}function s(t){return o[t]}function l(t,e){o[t]=e}var h=r.controllerVisuals[i||r.getValueState(t)],c=Zs.prepareVisualTypes(h);return _.each(c,(function(i){var r=h[i];n.convertOpacityToAlpha&&"opacity"===i&&(i="colorAlpha",r=h.__alphaForOpacity),Zs.dependsOn(i,e)&&r&&r.applyVisual(t,s,l)})),o[e]},e.prototype.positionGroup=function(t){var e=this.visualMapModel,n=this.api;Mn.m$(t,e.getBoxLayoutParams(),{width:n.getWidth(),height:n.getHeight()})},e.prototype.doRender=function(t,e,n,i){},e.type="visualMap",e}(ri.A);var Ab=[["left","right","width"],["top","bottom","height"]];function Cb(t,e,n){var i=t.option,r=i.align;if(null!=r&&"auto"!==r)return r;for(var o={width:e.getWidth(),height:e.getHeight()},a="horizontal"===i.orient?1:0,s=Ab[a],l=[0,null,10],h={},c=0;c<3;c++)h[Ab[1-a][c]]=l[c],h[s[c]]=2===c?n[0]:i[s[c]];var u=[["x","width",3],["y","height",0]][a],d=(0,Mn.dV)(h,o,i.padding);return s[(d.margin[u[2]]||0)+d[u[0]]+.5*d[u[1]]<.5*o[u[1]]?0:1]}function Ib(t,e){return _.each(t||[],(function(t){null!=t.dataIndex&&(t.dataIndexInside=t.dataIndex,t.dataIndex=null),t.highlightKey="visualMap"+(e?e.componentIndex:"")})),t}var Eb=Se.Cb,kb=_.each,Lb=Math.min,Db=Math.max,Pb=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n._shapes={},n._dataInterval=[],n._handleEnds=[],n._hoverLinkDataIndices=[],n}return(0,Bt.C6)(e,t),e.prototype.init=function(e,n){t.prototype.init.call(this,e,n),this._hoverLinkFromSeriesMouseOver=_.bind(this._hoverLinkFromSeriesMouseOver,this),this._hideIndicator=_.bind(this._hideIndicator,this)},e.prototype.doRender=function(t,e,n,i){i&&"selectDataRange"===i.type&&i.from===this.uid||this._buildView()},e.prototype._buildView=function(){this.group.removeAll();var t=this.visualMapModel,e=this.group;this._orient=t.get("orient"),this._useHandle=t.get("calculable"),this._resetInterval(),this._renderBar(e);var n=t.get("text");this._renderEndsText(e,n,0),this._renderEndsText(e,n,1),this._updateView(!0),this.renderBackground(e),this._updateView(),this._enableHoverLinkToSeries(),this._enableHoverLinkFromSeries(),this.positionGroup(e)},e.prototype._renderEndsText=function(t,e,n){if(e){var i=e[1-n];i=null!=i?i+"":"";var r=this.visualMapModel,o=r.get("textGap"),a=r.itemSize,s=this._shapes.mainGroup,l=this._applyTransform([a[0]/2,0===n?-o:a[1]+o],s),h=this._applyTransform(0===n?"bottom":"top",s),c=this._orient,u=this.visualMapModel.textStyleModel;this.group.add(new Z.Ay({style:(0,Jt.VB)(u,{x:l[0],y:l[1],verticalAlign:"horizontal"===c?"middle":h,align:"horizontal"===c?h:"center",text:i})}))}},e.prototype._renderBar=function(t){var e=this.visualMapModel,n=this._shapes,i=e.itemSize,r=this._orient,o=this._useHandle,a=Cb(e,this.api,i),s=n.mainGroup=this._createBarGroup(a),l=new jt.A;s.add(l),l.add(n.outOfRange=Rb()),l.add(n.inRange=Rb(null,o?Nb(this._orient):null,_.bind(this._dragHandle,this,"all",!1),_.bind(this._dragHandle,this,"all",!0))),l.setClipPath(new be.A({shape:{x:0,y:0,width:i[0],height:i[1],r:3}}));var h=e.textStyleModel.getTextRect("\u56fd"),c=Db(h.width,h.height);o&&(n.handleThumbs=[],n.handleLabels=[],n.handleLabelPoints=[],this._createHandle(e,s,0,i,c,r),this._createHandle(e,s,1,i,c,r)),this._createIndicator(e,s,i,c,r),t.add(s)},e.prototype._createHandle=function(t,e,n,i,r,o){var a=_.bind(this._dragHandle,this,n,!1),s=_.bind(this._dragHandle,this,n,!0),l=(0,h.lo)(t.get("handleSize"),i[0]),c=(0,Vt.v5)(t.get("handleIcon"),-l/2,-l/2,l,l,null,!0),u=Nb(this._orient);c.attr({cursor:u,draggable:!0,drift:a,ondragend:s,onmousemove:function(t){Fr.ds(t.event)}}),c.x=i[0]/2,c.useStyle(t.getModel("handleStyle").getItemStyle()),c.setStyle({strokeNoScale:!0,strokeFirst:!0}),c.style.lineWidth*=2,c.ensureState("emphasis").style=t.getModel(["emphasis","handleStyle"]).getItemStyle(),(0,Yt.ix)(c,!0),e.add(c);var d=this.visualMapModel.textStyleModel,p=new Z.Ay({cursor:u,draggable:!0,drift:a,onmousemove:function(t){Fr.ds(t.event)},ondragend:s,style:(0,Jt.VB)(d,{x:0,y:0,text:""})});p.ensureState("blur").style={opacity:.1},p.stateTransition={duration:200},this.group.add(p);var f=[l,0],g=this._shapes;g.handleThumbs[n]=c,g.handleLabelPoints[n]=f,g.handleLabels[n]=p},e.prototype._createIndicator=function(t,e,n,i,r){var o=(0,h.lo)(t.get("indicatorSize"),n[0]),a=(0,Vt.v5)(t.get("indicatorIcon"),-o/2,-o/2,o,o,null,!0);a.attr({cursor:"move",invisible:!0,silent:!0,x:n[0]/2});var s=t.getModel("indicatorStyle").getItemStyle();if(a instanceof l.Ay){var c=a.style;a.useStyle(_.extend({image:c.image,x:c.x,y:c.y,width:c.width,height:c.height},s))}else a.useStyle(s);e.add(a);var u=this.visualMapModel.textStyleModel,d=new Z.Ay({silent:!0,invisible:!0,style:(0,Jt.VB)(u,{x:0,y:0,text:""})});this.group.add(d);var p=[("horizontal"===r?i/2:6)+n[0]/2,0],f=this._shapes;f.indicator=a,f.indicatorLabel=d,f.indicatorLabelPoint=p,this._firstShowIndicator=!0},e.prototype._dragHandle=function(t,e,n,i){if(this._useHandle){if(this._dragging=!e,!e){var r=this._applyTransform([n,i],this._shapes.mainGroup,!0);this._updateInterval(t,r[1]),this._hideIndicator(),this._updateView()}e===!this.visualMapModel.get("realtime")&&this.api.dispatchAction({type:"selectDataRange",from:this.uid,visualMapId:this.visualMapModel.id,selected:this._dataInterval.slice()}),e?!this._hovering&&this._clearHoverLinkToSeries():Ob(this.visualMapModel)&&this._doHoverLinkToSeries(this._handleEnds[t],!1)}},e.prototype._resetInterval=function(){var t=this.visualMapModel,e=this._dataInterval=t.getSelected(),n=t.getExtent(),i=[0,t.itemSize[1]];this._handleEnds=[Eb(e[0],n,i,!0),Eb(e[1],n,i,!0)]},e.prototype._updateInterval=function(t,e){e=e||0;var n=this.visualMapModel,i=this._handleEnds,r=[0,n.itemSize[1]];Kh(e,i,r,t,0);var o=n.getExtent();this._dataInterval=[Eb(i[0],r,o,!0),Eb(i[1],r,o,!0)]},e.prototype._updateView=function(t){var e=this.visualMapModel,n=e.getExtent(),i=this._shapes,r=[0,e.itemSize[1]],o=t?r:this._handleEnds,a=this._createBarVisual(this._dataInterval,n,o,"inRange"),s=this._createBarVisual(n,n,r,"outOfRange");i.inRange.setStyle({fill:a.barColor}).setShape("points",a.barPoints),i.outOfRange.setStyle({fill:s.barColor}).setShape("points",s.barPoints),this._updateHandle(o,a)},e.prototype._createBarVisual=function(t,e,n,i){var r={forceState:i,convertOpacityToAlpha:!0},o=this._makeColorGradient(t,r),a=[this.getControllerVisual(t[0],"symbolSize",r),this.getControllerVisual(t[1],"symbolSize",r)],s=this._createBarPoints(n,a);return{barColor:new he.A(0,0,0,1,o),barPoints:s,handlesColor:[o[0].color,o[o.length-1].color]}},e.prototype._makeColorGradient=function(t,e){var n=[],i=(t[1]-t[0])/100;n.push({color:this.getControllerVisual(t[0],"color",e),offset:0});for(var r=1;r<100;r++){var o=t[0]+i*r;if(o>t[1])break;n.push({color:this.getControllerVisual(o,"color",e),offset:r/100})}return n.push({color:this.getControllerVisual(t[1],"color",e),offset:1}),n},e.prototype._createBarPoints=function(t,e){var n=this.visualMapModel.itemSize;return[[n[0]-e[0],t[0]],[n[0],t[0]],[n[0],t[1]],[n[0]-e[1],t[1]]]},e.prototype._createBarGroup=function(t){var e=this._orient,n=this.visualMapModel.get("inverse");return new jt.A("horizontal"!==e||n?"horizontal"===e&&n?{scaleX:"bottom"===t?-1:1,rotation:-Math.PI/2}:"vertical"!==e||n?{scaleX:"left"===t?1:-1}:{scaleX:"left"===t?1:-1,scaleY:-1}:{scaleX:"bottom"===t?1:-1,rotation:Math.PI/2})},e.prototype._updateHandle=function(t,e){if(this._useHandle){var n=this._shapes,i=this.visualMapModel,r=n.handleThumbs,o=n.handleLabels,a=i.itemSize,s=i.getExtent();kb([0,1],(function(l){var h=r[l];h.setStyle("fill",e.handlesColor[l]),h.y=t[l];var c=Eb(t[l],[0,a[1]],s,!0),u=this.getControllerVisual(c,"symbolSize");h.scaleX=h.scaleY=u/a[0],h.x=a[0]-u/2;var d=qt.applyTransform(n.handleLabelPoints[l],qt.getTransform(h,this.group));o[l].setStyle({x:d[0],y:d[1],text:i.formatValueText(this._dataInterval[l]),verticalAlign:"middle",align:"vertical"===this._orient?this._applyTransform("left",n.mainGroup):"center"})}),this)}},e.prototype._showIndicator=function(t,e,n,i){var r=this.visualMapModel,o=r.getExtent(),a=r.itemSize,s=[0,a[1]],l=this._shapes,h=l.indicator;if(h){h.attr("invisible",!1);var c=this.getControllerVisual(t,"color",{convertOpacityToAlpha:!0}),u=this.getControllerVisual(t,"symbolSize"),d=Eb(t,o,s,!0),p=a[0]-u/2,f={x:h.x,y:h.y};h.y=d,h.x=p;var g=qt.applyTransform(l.indicatorLabelPoint,qt.getTransform(h,this.group)),m=l.indicatorLabel;m.attr("invisible",!1);var v=this._applyTransform("left",l.mainGroup),y="horizontal"===this._orient;m.setStyle({text:(n||"")+r.formatValueText(e),verticalAlign:y?v:"middle",align:y?"center":v});var _={x:p,y:d,style:{fill:c}},x={style:{x:g[0],y:g[1]}};if(r.ecModel.isAnimationEnabled()&&!this._firstShowIndicator){var b={duration:100,easing:"cubicInOut",additive:!0};h.x=f.x,h.y=f.y,h.animateTo(_,b),m.animateTo(x,b)}else h.attr(_),m.attr(x);this._firstShowIndicator=!1;var w=this._shapes.handleLabels;if(w)for(var S=0;S<w.length;S++)this.api.enterBlur(w[S])}},e.prototype._enableHoverLinkToSeries=function(){var t=this;this._shapes.mainGroup.on("mousemove",(function(e){if(t._hovering=!0,!t._dragging){var n=t.visualMapModel.itemSize,i=t._applyTransform([e.offsetX,e.offsetY],t._shapes.mainGroup,!0,!0);i[1]=Lb(Db(0,i[1]),n[1]),t._doHoverLinkToSeries(i[1],0<=i[0]&&i[0]<=n[0])}})).on("mouseout",(function(){t._hovering=!1,!t._dragging&&t._clearHoverLinkToSeries()}))},e.prototype._enableHoverLinkFromSeries=function(){var t=this.api.getZr();this.visualMapModel.option.hoverLink?(t.on("mouseover",this._hoverLinkFromSeriesMouseOver,this),t.on("mouseout",this._hideIndicator,this)):this._clearHoverLinkFromSeries()},e.prototype._doHoverLinkToSeries=function(t,e){var n=this.visualMapModel,i=n.itemSize;if(n.option.hoverLink){var r=[0,i[1]],o=n.getExtent();t=Lb(Db(r[0],t),r[1]);var a=function(t,e,n){var i=6,r=t.get("hoverLinkDataSize");r&&(i=Eb(r,e,n,!0)/2);return i}(n,o,r),s=[t-a,t+a],l=Eb(t,r,o,!0),h=[Eb(s[0],r,o,!0),Eb(s[1],r,o,!0)];s[0]<r[0]&&(h[0]=-1/0),s[1]>r[1]&&(h[1]=1/0),e&&(h[0]===-1/0?this._showIndicator(l,h[1],"< ",a):h[1]===1/0?this._showIndicator(l,h[0],"> ",a):this._showIndicator(l,l,"\u2248 ",a));var c=this._hoverLinkDataIndices,u=[];(e||Ob(n))&&(u=this._hoverLinkDataIndices=n.findTargetDataIndices(h));var d=ce.D6(c,u);this._dispatchHighDown("downplay",Ib(d[0],n)),this._dispatchHighDown("highlight",Ib(d[1],n))}},e.prototype._hoverLinkFromSeriesMouseOver=function(t){var e;if((0,Ma.R)(t.target,(function(t){var n=(0,Xt.z)(t);if(null!=n.dataIndex)return e=n,!0}),!0),e){var n=this.ecModel.getSeriesByIndex(e.seriesIndex),i=this.visualMapModel;if(i.isTargetSeries(n)){var r=n.getData(e.dataType),o=r.getStore().get(i.getDataDimensionIndex(r),e.dataIndex);isNaN(o)||this._showIndicator(o,o)}}},e.prototype._hideIndicator=function(){var t=this._shapes;t.indicator&&t.indicator.attr("invisible",!0),t.indicatorLabel&&t.indicatorLabel.attr("invisible",!0);var e=this._shapes.handleLabels;if(e)for(var n=0;n<e.length;n++)this.api.leaveBlur(e[n])},e.prototype._clearHoverLinkToSeries=function(){this._hideIndicator();var t=this._hoverLinkDataIndices;this._dispatchHighDown("downplay",Ib(t,this.visualMapModel)),t.length=0},e.prototype._clearHoverLinkFromSeries=function(){this._hideIndicator();var t=this.api.getZr();t.off("mouseover",this._hoverLinkFromSeriesMouseOver),t.off("mouseout",this._hideIndicator)},e.prototype._applyTransform=function(t,e,n,i){var r=qt.getTransform(e,i?null:this.group);return _.isArray(t)?qt.applyTransform(t,r,n):qt.transformDirection(t,r,n)},e.prototype._dispatchHighDown=function(t,e){e&&e.length&&this.api.dispatchAction({type:t,batch:e})},e.prototype.dispose=function(){this._clearHoverLinkFromSeries(),this._clearHoverLinkToSeries()},e.type="visualMap.continuous",e}(Mb);function Rb(t,e,n,i){return new yr.A({shape:{points:t},draggable:!!n,cursor:e,drift:n,onmousemove:function(t){Fr.ds(t.event)},ondragend:i})}function Ob(t){var e=t.get("hoverLinkOnHandle");return!!(null==e?t.get("realtime"):e)}function Nb(t){return"vertical"===t?"ns-resize":"ew-resize"}const Fb=Pb;var Bb={type:"selectDataRange",event:"dataRangeSelected",update:"update"},zb=function(t,e){e.eachComponent({mainType:"visualMap",query:t},(function(e){e.setSelected(t.selected)}))},Gb=[{createOnAllSeries:!0,reset:function(t,e){var n=[];return e.eachComponent("visualMap",(function(e){var i,r,o,a,s,l=t.pipelineContext;!e.isTargetSeries(t)||l&&l.large||n.push((i=e.stateList,r=e.targetVisuals,o=_.bind(e.getValueState,e),a=e.getDataDimensionIndex(t.getData()),s={},_.each(i,(function(t){var e=Zs.prepareVisualTypes(r[t]);s[t]=e})),{progress:function(t,e){var n,i;function l(t){return(0,Zy.Ez)(e,i,t)}function h(t,n){(0,Zy.oZ)(e,i,t,n)}null!=a&&(n=e.getDimensionIndex(a));for(var c=e.getStore();null!=(i=t.next());){var u=e.getRawDataItem(i);if(!u||!1!==u.visualMap)for(var d=null!=a?c.get(n,i):i,p=o(d),f=r[p],g=s[p],m=0,v=g.length;m<v;m++){var y=g[m];f[y]&&f[y].applyVisual(d,l,h)}}}}))})),n}},{createOnAllSeries:!0,reset:function(t,e){var n=t.getData(),i=[];e.eachComponent("visualMap",(function(e){if(e.isTargetSeries(t)){var r=e.getVisualMeta(_.bind(Vb,null,t,e))||{stops:[],outerColors:[]},o=e.getDataDimensionIndex(n);o>=0&&(r.dimension=o,i.push(r))}})),t.getData().setVisual("visualMeta",i)}}];function Vb(t,e,n,i){for(var r=e.targetVisuals[i],o=Zs.prepareVisualTypes(r),a={color:(0,Zy.rI)(t.getData(),"color")},s=0,l=o.length;s<l;s++){var h=o[s],c=r["opacity"===h?"__alphaForOpacity":h];c&&c.applyVisual(n,u,d)}return a.color;function u(t){return a[t]}function d(t,e){a[t]=e}}var jb=_.each;function Hb(t){var e=t&&t.visualMap;_.isArray(e)||(e=e?[e]:[]),jb(e,(function(t){if(t){Wb(t,"splitList")&&!Wb(t,"pieces")&&(t.pieces=t.splitList,delete t.splitList);var e=t.pieces;e&&_.isArray(e)&&jb(e,(function(t){_.isObject(t)&&(Wb(t,"start")&&!Wb(t,"min")&&(t.min=t.start),Wb(t,"end")&&!Wb(t,"max")&&(t.max=t.end))}))}}))}function Wb(t,e){return t&&t.hasOwnProperty&&t.hasOwnProperty(e)}var Ub=!1;function qb(t){Ub||(Ub=!0,t.registerSubTypeDefaulter("visualMap",(function(t){return t.categories||(t.pieces?t.pieces.length>0:t.splitNumber>0)&&!t.calculable?"piecewise":"continuous"})),t.registerAction(Bb,zb),(0,_.each)(Gb,(function(e){t.registerVisual(t.PRIORITY.VISUAL.COMPONENT,e)})),t.registerPreprocessor(Hb))}function Xb(t){t.registerComponentModel(Tb),t.registerComponentView(Fb),qb(t)}var Yb=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n._pieceList=[],n}return(0,Bt.C6)(e,t),e.prototype.optionUpdated=function(e,n){t.prototype.optionUpdated.apply(this,arguments),this.resetExtent();var i=this._mode=this._determineMode();this._pieceList=[],Zb[this._mode].call(this,this._pieceList),this._resetSelected(e,n);var r=this.option.categories;this.resetVisual((function(t,e){"categories"===i?(t.mappingMethod="category",t.categories=_.clone(r)):(t.dataExtent=this.getExtent(),t.mappingMethod="piecewise",t.pieceList=_.map(this._pieceList,(function(t){return t=_.clone(t),"inRange"!==e&&(t.visual=null),t})))}))},e.prototype.completeVisualOption=function(){var e=this.option,n={},i=Zs.listVisualTypes(),r=this.isCategory();function o(t,e,n){return t&&t[e]&&t[e].hasOwnProperty(n)}_.each(e.pieces,(function(t){_.each(i,(function(e){t.hasOwnProperty(e)&&(n[e]=1)}))})),_.each(n,(function(t,n){var i=!1;_.each(this.stateList,(function(t){i=i||o(e,t,n)||o(e.target,t,n)}),this),!i&&_.each(this.stateList,(function(t){(e[t]||(e[t]={}))[n]=db.get(n,"inRange"===t?"active":"inactive",r)}))}),this),t.prototype.completeVisualOption.apply(this,arguments)},e.prototype._resetSelected=function(t,e){var n=this.option,i=this._pieceList,r=(e?n:t).selected||{};if(n.selected=r,_.each(i,(function(t,e){var n=this.getSelectedMapKey(t);r.hasOwnProperty(n)||(r[n]=!0)}),this),"single"===n.selectedMode){var o=!1;_.each(i,(function(t,e){var n=this.getSelectedMapKey(t);r[n]&&(o?r[n]=!1:o=!0)}),this)}},e.prototype.getItemSymbol=function(){return this.get("itemSymbol")},e.prototype.getSelectedMapKey=function(t){return"categories"===this._mode?t.value+"":t.index+""},e.prototype.getPieceList=function(){return this._pieceList},e.prototype._determineMode=function(){var t=this.option;return t.pieces&&t.pieces.length>0?"pieces":this.option.categories?"categories":"splitNumber"},e.prototype.setSelected=function(t){this.option.selected=_.clone(t)},e.prototype.getValueState=function(t){var e=Zs.findPieceIndex(t,this._pieceList);return null!=e&&this.option.selected[this.getSelectedMapKey(this._pieceList[e])]?"inRange":"outOfRange"},e.prototype.findTargetDataIndices=function(t){var e=[],n=this._pieceList;return this.eachTargetSeries((function(i){var r=[],o=i.getData();o.each(this.getDataDimensionIndex(o),(function(e,i){Zs.findPieceIndex(e,n)===t&&r.push(i)}),this),e.push({seriesId:i.id,dataIndex:r})}),this),e},e.prototype.getRepresentValue=function(t){var e;if(this.isCategory())e=t.value;else if(null!=t.value)e=t.value;else{var n=t.interval||[];e=n[0]===-1/0&&n[1]===1/0?0:(n[0]+n[1])/2}return e},e.prototype.getVisualMeta=function(t){if(!this.isCategory()){var e=[],n=["",""],i=this,r=this._pieceList.slice();if(r.length){var o=r[0].interval[0];o!==-1/0&&r.unshift({interval:[-1/0,o]}),(o=r[r.length-1].interval[1])!==1/0&&r.push({interval:[o,1/0]})}else r.push({interval:[-1/0,1/0]});var a=-1/0;return _.each(r,(function(t){var e=t.interval;e&&(e[0]>a&&s([a,e[0]],"outOfRange"),s(e.slice()),a=e[1])}),this),{stops:e,outerColors:n}}function s(r,o){var a=i.getRepresentValue({interval:r});o||(o=i.getValueState(a));var s=t(a,o);r[0]===-1/0?n[0]=s:r[1]===1/0?n[1]=s:e.push({value:r[0],color:s},{value:r[1],color:s})}},e.type="visualMap.piecewise",e.defaultOption=(0,Ze.G_)(xb.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}),e}(xb),Zb={splitNumber:function(t){var e=this.option,n=Math.min(e.precision,20),i=this.getExtent(),r=e.splitNumber;r=Math.max(parseInt(r,10),1),e.splitNumber=r;for(var o=(i[1]-i[0])/r;+o.toFixed(n)!==o&&n<5;)n++;e.precision=n,o=+o.toFixed(n),e.minOpen&&t.push({interval:[-1/0,i[0]],close:[0,0]});for(var a=0,s=i[0];a<r;s+=o,a++){var l=a===r-1?i[1]:s+o;t.push({interval:[s,l],close:[1,1]})}e.maxOpen&&t.push({interval:[i[1],1/0],close:[0,0]}),(0,Se.sL)(t),_.each(t,(function(t,e){t.index=e,t.text=this.formatValueText(t.interval)}),this)},categories:function(t){var e=this.option;_.each(e.categories,(function(e){t.push({text:this.formatValueText(e,!0),value:e})}),this),$b(e,t)},pieces:function(t){var e=this.option;_.each(e.pieces,(function(e,n){_.isObject(e)||(e={value:e});var i={text:"",index:n};if(null!=e.label&&(i.text=e.label),e.hasOwnProperty("value")){var r=i.value=e.value;i.interval=[r,r],i.close=[1,1]}else{for(var o=i.interval=[],a=i.close=[0,0],s=[1,0,1],l=[-1/0,1/0],h=[],c=0;c<2;c++){for(var u=[["gte","gt","min"],["lte","lt","max"]][c],d=0;d<3&&null==o[c];d++)o[c]=e[u[d]],a[c]=s[d],h[c]=2===d;null==o[c]&&(o[c]=l[c])}h[0]&&o[1]===1/0&&(a[0]=0),h[1]&&o[0]===-1/0&&(a[1]=0),o[0]===o[1]&&a[0]&&a[1]&&(i.value=o[0])}i.visual=Zs.retrieveVisuals(e),t.push(i)}),this),$b(e,t),(0,Se.sL)(t),_.each(t,(function(t){var e=t.close,n=[["<","\u2264"][e[1]],[">","\u2265"][e[0]]];t.text=t.text||this.formatValueText(null!=t.value?t.value:t.interval,!1,n)}),this)}};function $b(t,e){var n=t.inverse;("vertical"===t.orient?!n:n)&&e.reverse()}const Kb=Yb;const Jb=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return(0,Bt.C6)(e,t),e.prototype.doRender=function(){var t=this.group;t.removeAll();var e=this.visualMapModel,n=e.get("textGap"),i=e.textStyleModel,r=i.getFont(),o=i.getTextColor(),a=this._getItemAlign(),s=e.itemSize,l=this._getViewData(),h=l.endsText,c=_.retrieve(e.get("showLabel",!0),!h);h&&this._renderEndsText(t,h[0],s,c,a),_.each(l.viewPieceList,(function(i){var l=i.piece,h=new jt.A;h.onclick=_.bind(this._onItemClick,this,l),this._enableHoverLink(h,i.indexInModelPieceList);var u=e.getRepresentValue(l);if(this._createItemSymbol(h,u,[0,0,s[0],s[1]]),c){var d=this.visualMapModel.getValueState(u);h.add(new Z.Ay({style:{x:"right"===a?-n:s[0]+n,y:s[1]/2,text:l.text,verticalAlign:"middle",align:a,font:r,fill:o,opacity:"outOfRange"===d?.5:1}}))}t.add(h)}),this),h&&this._renderEndsText(t,h[1],s,c,a),Mn.aP(e.get("orient"),t,e.get("itemGap")),this.renderBackground(t),this.positionGroup(t)},e.prototype._enableHoverLink=function(t,e){var n=this;t.on("mouseover",(function(){return i("highlight")})).on("mouseout",(function(){return i("downplay")}));var i=function(t){var i=n.visualMapModel;i.option.hoverLink&&n.api.dispatchAction({type:t,batch:Ib(i.findTargetDataIndices(e),i)})}},e.prototype._getItemAlign=function(){var t=this.visualMapModel,e=t.option;if("vertical"===e.orient)return Cb(t,this.api,t.itemSize);var n=e.align;return n&&"auto"!==n||(n="left"),n},e.prototype._renderEndsText=function(t,e,n,i,r){if(e){var o=new jt.A,a=this.visualMapModel.textStyleModel;o.add(new Z.Ay({style:(0,Jt.VB)(a,{x:i?"right"===r?n[0]:0:n[0]/2,y:n[1]/2,verticalAlign:"middle",align:i?r:"center",text:e})})),t.add(o)}},e.prototype._getViewData=function(){var t=this.visualMapModel,e=_.map(t.getPieceList(),(function(t,e){return{piece:t,indexInModelPieceList:e}})),n=t.get("text"),i=t.get("orient"),r=t.get("inverse");return("horizontal"===i?r:!r)?e.reverse():n&&(n=n.slice().reverse()),{viewPieceList:e,endsText:n}},e.prototype._createItemSymbol=function(t,e,n){t.add((0,Vt.v5)(this.getControllerVisual(e,"symbol"),n[0],n[1],n[2],n[3],this.getControllerVisual(e,"color")))},e.prototype._onItemClick=function(t){var e=this.visualMapModel,n=e.option,i=n.selectedMode;if(i){var r=_.clone(n.selected),o=e.getSelectedMapKey(t);"single"===i||!0===i?(r[o]=!0,_.each(r,(function(t,e){r[e]=e===o}))):r[o]=!r[o],this.api.dispatchAction({type:"selectDataRange",from:this.uid,visualMapId:this.visualMapModel.id,selected:r})}},e.type="visualMap.piecewise",e}(Mb);function Qb(t){t.registerComponentModel(Kb),t.registerComponentView(Jb),qb(t)}var tw={label:{enabled:!0},decal:{show:!1}},ew=(0,ce.$r)(),nw={};function iw(t,e){var n=t.getModel("aria");if(n.get("enabled")){var i=_.clone(tw);_.merge(i.label,t.getLocaleModel().get("aria"),!1),_.merge(n.option,i,!1),function(){if(n.getModel("decal").get("show")){var e=_.createHashMap();t.eachSeries((function(t){if(!t.isColorBySeries()){var n=e.get(t.type);n||(n={},e.set(t.type,n)),ew(t).scope=n}})),t.eachRawSeries((function(e){if(!t.isSeriesFiltered(e))if(_.isFunction(e.enableAriaDecal))e.enableAriaDecal();else{var n=e.getData();if(e.isColorBySeries()){var i=(0,us.x)(e.ecModel,e.name,nw,t.getSeriesCount()),r=n.getVisual("decal");n.setVisual("decal",h(r,i))}else{var o=e.getRawData(),a={},s=ew(e).scope;n.each((function(t){var e=n.getRawIndex(t);a[e]=t}));var l=o.count();o.each((function(t){var i=a[t],r=o.getName(t)||t+"",c=(0,us.x)(e.ecModel,r,s,l),u=n.getItemVisual(i,"decal");n.setItemVisual(i,"decal",h(u,c))}))}}function h(t,e){var n=t?_.extend(_.extend({},e),t):e;return n.dirty=!0,n}}))}}(),function(){var i=e.getZr().dom;if(!i)return;var o=t.getLocaleModel().get("aria"),a=n.getModel("label");if(a.option=_.defaults(a.option,o),!a.get("enabled"))return;if(a.get("description"))return void i.setAttribute("aria-label",a.get("description"));var s,l=t.getSeriesCount(),h=a.get(["data","maxCount"])||10,c=a.get(["series","maxCount"])||10,u=Math.min(l,c);if(l<1)return;var d=function(){var e=t.get("title");e&&e.length&&(e=e[0]);return e&&e.text}();s=d?r(a.get(["general","withTitle"]),{title:d}):a.get(["general","withoutTitle"]);var p=[];s+=r(l>1?a.get(["series","multiple","prefix"]):a.get(["series","single","prefix"]),{seriesCount:l}),t.eachSeries((function(e,n){if(n<u){var i=void 0,o=e.get("name")?"withName":"withoutName";i=r(i=l>1?a.get(["series","multiple",o]):a.get(["series","single",o]),{seriesId:e.seriesIndex,seriesName:e.get("name"),seriesType:(_=e.subType,x=t.getLocaleModel().get(["series","typeNames"]),x[_]||x.chart)});var s=e.getData();if(s.count()>h)i+=r(a.get(["data","partialData"]),{displayCnt:h});else i+=a.get(["data","allData"]);for(var c=a.get(["data","separator","middle"]),d=a.get(["data","separator","end"]),f=[],g=0;g<s.count();g++)if(g<h){var m=s.getName(g),v=s.getValues(g),y=a.get(["data",m?"withName":"withoutName"]);f.push(r(y,{name:m,value:v.join(c)}))}i+=f.join(c)+d,p.push(i)}var _,x}));var f=a.getModel(["series","multiple","separator"]),g=f.get("middle"),m=f.get("end");s+=p.join(g)+m,i.setAttribute("aria-label",s)}()}function r(t,e){if(!_.isString(t))return t;var n=t;return _.each(e,(function(t,e){n=n.replace(new RegExp("\\{\\s*"+e+"\\s*\\}","g"),t)})),n}}function rw(t){if(t&&t.aria){var e=t.aria;null!=e.show&&(e.enabled=e.show),e.label=e.label||{},_.each(["description","general","series","data"],(function(t){null!=e[t]&&(e.label[t]=e[t])}))}}var ow={value:"eq","<":"lt","<=":"lte",">":"gt",">=":"gte","=":"eq","!=":"ne","<>":"ne"},aw=function(){function t(t){if(null==(this._condVal=(0,_.isString)(t)?new RegExp(t):(0,_.isRegExp)(t)?t:null)){0,(0,Wu.$8)("")}}return t.prototype.evaluate=function(t){var e=typeof t;return(0,_.isString)(e)?this._condVal.test(t):!!(0,_.isNumber)(e)&&this._condVal.test(t+"")},t}(),sw=function(){function t(){}return t.prototype.evaluate=function(){return this.value},t}(),lw=function(){function t(){}return t.prototype.evaluate=function(){for(var t=this.children,e=0;e<t.length;e++)if(!t[e].evaluate())return!1;return!0},t}(),hw=function(){function t(){}return t.prototype.evaluate=function(){for(var t=this.children,e=0;e<t.length;e++)if(t[e].evaluate())return!0;return!1},t}(),cw=function(){function t(){}return t.prototype.evaluate=function(){return!this.child.evaluate()},t}(),uw=function(){function t(){}return t.prototype.evaluate=function(){for(var t=!!this.valueParser,e=(0,this.getValue)(this.valueGetterParam),n=t?this.valueParser(e):null,i=0;i<this.subCondList.length;i++)if(!this.subCondList[i].evaluate(t?n:e))return!1;return!0},t}();function dw(t,e){if(!0===t||!1===t){var n=new sw;return n.value=t,n}return fw(t)||(0,Wu.$8)(""),t.and?pw("and",t,e):t.or?pw("or",t,e):t.not?function(t,e){var n=t.not,i="";0;fw(n)||(0,Wu.$8)(i);var r=new cw;r.child=dw(n,e),r.child||(0,Wu.$8)(i);return r}(t,e):function(t,e){for(var n="",i=e.prepareGetValue(t),r=[],o=(0,_.keys)(t),a=t.parser,s=a?(0,H_.zC)(a):null,l=0;l<o.length;l++){var h=o[l];if("parser"!==h&&!e.valueGetterAttrMap.get(h)){var c=(0,_.hasOwn)(ow,h)?ow[h]:h,u=t[h],d=s?s(u):u,p=(0,H_.zs)(c,d)||"reg"===c&&new aw(d);p||(0,Wu.$8)(n),r.push(p)}}r.length||(0,Wu.$8)(n);var f=new uw;return f.valueGetterParam=i,f.valueParser=s,f.getValue=e.getValue,f.subCondList=r,f}(t,e)}function pw(t,e,n){var i=e[t];(0,_.isArray)(i)||(0,Wu.$8)(""),i.length||(0,Wu.$8)("");var r="and"===t?new lw:new hw;return r.children=(0,_.map)(i,(function(t){return dw(t,n)})),r.children.length||(0,Wu.$8)(""),r}function fw(t){return(0,_.isObject)(t)&&!(0,_.isArrayLike)(t)}var gw=function(){function t(t,e){this._cond=dw(t,e)}return t.prototype.evaluate=function(){return this._cond.evaluate()},t}();var mw={type:"echarts:filter",transform:function(t){for(var e,n,i,r=t.upstream,o=(n=t.config,i={valueGetterAttrMap:(0,_.createHashMap)({dimension:!0}),prepareGetValue:function(t){var e=t.dimension;(0,_.hasOwn)(t,"dimension")||(0,Wu.$8)("");var n=r.getDimensionInfo(e);return n||(0,Wu.$8)(""),{dimIdx:n.index}},getValue:function(t){return r.retrieveValueFromItem(e,t.dimIdx)}},new gw(n,i)),a=[],s=0,l=r.count();s<l;s++)e=r.getRawDataItem(s),o.evaluate()&&a.push(e);return{data:a}}};var vw={type:"echarts:sort",transform:function(t){var e=t.upstream,n=t.config,i="",r=(0,ce.qB)(n);r.length||(0,Wu.$8)(i);var o=[];(0,_.each)(r,(function(t){var n=t.dimension,r=t.order,a=t.parser,s=t.incomparable;if(null==n&&(0,Wu.$8)(i),"asc"!==r&&"desc"!==r&&(0,Wu.$8)(i),s&&"min"!==s&&"max"!==s){0,(0,Wu.$8)("")}if("asc"!==r&&"desc"!==r){0,(0,Wu.$8)("")}var l=e.getDimensionInfo(n);l||(0,Wu.$8)(i);var h=a?(0,H_.zC)(a):null;a&&!h&&(0,Wu.$8)(i),o.push({dimIdx:l.index,parser:h,comparator:new H_.Fl(r,s)})}));var a=e.sourceFormat;a!==Uu.Km&&a!==Uu.Wk&&(0,Wu.$8)(i);for(var s=[],l=0,h=e.count();l<h;l++)s.push(e.getRawDataItem(l));return s.sort((function(t,n){for(var i=0;i<o.length;i++){var r=o[i],a=e.retrieveValueFromItem(t,r.dimIdx),s=e.retrieveValueFromItem(n,r.dimIdx);r.parser&&(a=r.parser(a),s=r.parser(s));var l=r.comparator.evaluate(a,s);if(0!==l)return l}return 0})),{data:s}}};var yw=n(2287),_w=N.A.CMD;function xw(t,e){return Math.abs(t-e)<1e-5}function bw(t){var e,n,i,r,o,a=t.data,s=t.len(),l=[],h=0,c=0,u=0,d=0;function p(t,n){e&&e.length>2&&l.push(e),e=[t,n]}function f(t,n,i,r){xw(t,i)&&xw(n,r)||e.push(t,n,i,r,i,r)}function g(t,n,i,r,o,a){var s=Math.abs(n-t),l=4*Math.tan(s/4)/3,h=n<t?-1:1,c=Math.cos(t),u=Math.sin(t),d=Math.cos(n),p=Math.sin(n),f=c*o+i,g=u*a+r,m=d*o+i,v=p*a+r,y=o*l*h,_=a*l*h;e.push(f-y*u,g+_*c,m+y*p,v-_*d,m,v)}for(var m=0;m<s;){var v=a[m++],y=1===m;switch(y&&(u=h=a[m],d=c=a[m+1],v!==_w.L&&v!==_w.C&&v!==_w.Q||(e=[u,d])),v){case _w.M:h=u=a[m++],c=d=a[m++],p(u,d);break;case _w.L:f(h,c,n=a[m++],i=a[m++]),h=n,c=i;break;case _w.C:e.push(a[m++],a[m++],a[m++],a[m++],h=a[m++],c=a[m++]);break;case _w.Q:n=a[m++],i=a[m++],r=a[m++],o=a[m++],e.push(h+2/3*(n-h),c+2/3*(i-c),r+2/3*(n-r),o+2/3*(i-o),r,o),h=r,c=o;break;case _w.A:var _=a[m++],x=a[m++],b=a[m++],w=a[m++],S=a[m++],T=a[m++]+S;m+=1;var M=!a[m++];n=Math.cos(S)*b+_,i=Math.sin(S)*w+x,y?p(u=n,d=i):f(h,c,n,i),h=Math.cos(T)*b+_,c=Math.sin(T)*w+x;for(var A=(M?-1:1)*Math.PI/2,C=S;M?C>T:C<T;C+=A){g(C,M?Math.max(C+A,T):Math.min(C+A,T),_,x,b,w)}break;case _w.R:u=h=a[m++],d=c=a[m++],n=u+a[m++],i=d+a[m++],p(n,d),f(n,d,n,i),f(n,i,u,i),f(u,i,u,d),f(u,d,n,d);break;case _w.Z:e&&f(h,c,u,d),h=u,c=d}}return e&&e.length>2&&l.push(e),l}function ww(t,e,n,i,r,o,a,s,l,h){if(xw(t,n)&&xw(e,i)&&xw(r,a)&&xw(o,s))l.push(a,s);else{var c=2/h,u=c*c,d=a-t,p=s-e,f=Math.sqrt(d*d+p*p);d/=f,p/=f;var g=n-t,m=i-e,v=r-a,y=o-s,_=g*g+m*m,x=v*v+y*y;if(_<u&&x<u)l.push(a,s);else{var b=d*g+p*m,w=-d*v-p*y;if(_-b*b<u&&b>=0&&x-w*w<u&&w>=0)l.push(a,s);else{var S=[],T=[];(0,ue.YT)(t,n,r,a,.5,S),(0,ue.YT)(e,i,o,s,.5,T),ww(S[0],T[0],S[1],T[1],S[2],T[2],S[3],T[3],l,h),ww(S[4],T[4],S[5],T[5],S[6],T[6],S[7],T[7],l,h)}}}}function Sw(t,e,n){var i=t[e],r=t[1-e],o=Math.abs(i/r),a=Math.ceil(Math.sqrt(o*n)),s=Math.floor(n/a);0===s&&(s=1,a=n);for(var l=[],h=0;h<a;h++)l.push(s);var c=n-a*s;if(c>0)for(h=0;h<c;h++)l[h%a]+=1;return l}function Tw(t,e,n){for(var i=t.r0,r=t.r,o=t.startAngle,a=t.endAngle,s=Math.abs(a-o),l=s*r,h=r-i,c=l>Math.abs(h),u=Sw([l,h],c?0:1,e),d=(c?s:h)/u.length,p=0;p<u.length;p++)for(var f=(c?h:s)/u[p],g=0;g<u[p];g++){var m={};c?(m.startAngle=o+d*p,m.endAngle=o+d*(p+1),m.r0=i+f*g,m.r=i+f*(g+1)):(m.startAngle=o+f*g,m.endAngle=o+f*(g+1),m.r0=i+d*p,m.r=i+d*(p+1)),m.clockwise=t.clockwise,m.cx=t.cx,m.cy=t.cy,n.push(m)}}function Mw(t,e,n,i){return t*i-n*e}function Aw(t,e,n,i,r,o,a,s){var l=n-t,h=i-e,c=a-r,u=s-o,d=Mw(c,u,l,h);if(Math.abs(d)<1e-6)return null;var p=Mw(t-r,e-o,c,u)/d;return p<0||p>1?null:new Rn.A(p*l+t,p*h+e)}function Cw(t,e,n){var i=new Rn.A;Rn.A.sub(i,n,e),i.normalize();var r=new Rn.A;return Rn.A.sub(r,t,e),r.dot(i)}function Iw(t,e){var n=t[t.length-1];n&&n[0]===e[0]&&n[1]===e[1]||t.push(e)}function Ew(t){var e=t.points,n=[],i=[];(0,Ga.Cr)(e,n,i);var r=new Jn.A(n[0],n[1],i[0]-n[0],i[1]-n[1]),o=r.width,a=r.height,s=r.x,l=r.y,h=new Rn.A,c=new Rn.A;return o>a?(h.x=c.x=s+o/2,h.y=l,c.y=l+a):(h.y=c.y=l+a/2,h.x=s,c.x=s+o),function(t,e,n){for(var i=t.length,r=[],o=0;o<i;o++){var a=t[o],s=t[(o+1)%i],l=Aw(a[0],a[1],s[0],s[1],e.x,e.y,n.x,n.y);l&&r.push({projPt:Cw(l,e,n),pt:l,idx:o})}if(r.length<2)return[{points:t},{points:t}];r.sort((function(t,e){return t.projPt-e.projPt}));var h=r[0],c=r[r.length-1];if(c.idx<h.idx){var u=h;h=c,c=u}var d=[h.pt.x,h.pt.y],p=[c.pt.x,c.pt.y],f=[d],g=[p];for(o=h.idx+1;o<=c.idx;o++)Iw(f,t[o].slice());for(Iw(f,p),Iw(f,d),o=c.idx+1;o<=h.idx+i;o++)Iw(g,t[o%i].slice());return Iw(g,d),Iw(g,p),[{points:f},{points:g}]}(e,h,c)}function kw(t,e,n,i){if(1===n)i.push(e);else{var r=Math.floor(n/2),o=t(e);kw(t,o[0],r,i),kw(t,o[1],n-r,i)}return i}function Lw(t,e){var n,i=[],r=t.shape;switch(t.type){case"rect":!function(t,e,n){for(var i=t.width,r=t.height,o=i>r,a=Sw([i,r],o?0:1,e),s=o?"width":"height",l=o?"height":"width",h=o?"x":"y",c=o?"y":"x",u=t[s]/a.length,d=0;d<a.length;d++)for(var p=t[l]/a[d],f=0;f<a[d];f++){var g={};g[h]=d*u,g[c]=f*p,g[s]=u,g[l]=p,g.x+=t.x,g.y+=t.y,n.push(g)}}(r,e,i),n=be.A;break;case"sector":Tw(r,e,i),n=we.A;break;case"circle":Tw({r0:0,r:r.r,startAngle:0,endAngle:2*Math.PI,cx:r.cx,cy:r.cy},e,i),n=we.A;break;default:var o=t.getComputedTransform(),a=o?Math.sqrt(Math.max(o[0]*o[0]+o[1]*o[1],o[2]*o[2]+o[3]*o[3])):1,s=(0,_.map)(function(t,e){var n=bw(t),i=[];e=e||1;for(var r=0;r<n.length;r++){var o=n[r],a=[],s=o[0],l=o[1];a.push(s,l);for(var h=2;h<o.length;){var c=o[h++],u=o[h++],d=o[h++],p=o[h++],f=o[h++],g=o[h++];ww(s,l,c,u,d,p,f,g,a,e),s=f,l=g}i.push(a)}return i}(t.getUpdatedPathProxy(),a),(function(t){return function(t){for(var e=[],n=0;n<t.length;)e.push([t[n++],t[n++]]);return e}(t)})),l=s.length;if(0===l)kw(Ew,{points:s[0]},e,i);else if(l===e)for(var h=0;h<l;h++)i.push({points:s[h]});else{var c=0,u=(0,_.map)(s,(function(t){var e=[],n=[];(0,Ga.Cr)(t,e,n);var i=(n[1]-e[1])*(n[0]-e[0]);return c+=i,{poly:t,area:i}}));u.sort((function(t,e){return e.area-t.area}));var d=e;for(h=0;h<l;h++){var p=u[h];if(d<=0)break;var f=h===l-1?d:Math.ceil(p.area/c*e);f<0||(kw(Ew,{points:p.poly},f,i),d-=f)}}n=yr.A}if(!n)return function(t,e){for(var n=[],i=0;i<e;i++)n.push((0,Jr.rR)(t));return n}(t,e);var g,m,v=[];for(h=0;h<i.length;h++){var y=new n;y.setShape(i[h]),g=t,(m=y).setStyle(g.style),m.z=g.z,m.z2=g.z2,m.zlevel=g.zlevel,v.push(y)}return v}function Dw(t,e){var n=t.length,i=e.length;if(n===i)return[t,e];for(var r=[],o=[],a=n<i?t:e,s=Math.min(n,i),l=Math.abs(i-n)/6,h=(s-2)/6,c=Math.ceil(l/h)+1,u=[a[0],a[1]],d=l,p=2;p<s;){var f=a[p-2],g=a[p-1],m=a[p++],v=a[p++],y=a[p++],_=a[p++],x=a[p++],b=a[p++];if(d<=0)u.push(m,v,y,_,x,b);else{for(var w=Math.min(d,c-1)+1,S=1;S<=w;S++){var T=S/w;(0,ue.YT)(f,m,y,x,T,r),(0,ue.YT)(g,v,_,b,T,o),f=r[3],g=o[3],u.push(r[1],o[1],r[2],o[2],f,g),m=r[5],v=o[5],y=r[6],_=o[6]}d-=w-1}}return a===t?[u,e]:[t,u]}function Pw(t,e){for(var n=t.length,i=t[n-2],r=t[n-1],o=[],a=0;a<e.length;)o[a++]=i,o[a++]=r;return o}function Rw(t){for(var e=0,n=0,i=0,r=t.length,o=0,a=r-2;o<r;a=o,o+=2){var s=t[a],l=t[a+1],h=t[o],c=t[o+1],u=s*c-h*l;e+=u,n+=(s+h)*u,i+=(l+c)*u}return 0===e?[t[0]||0,t[1]||0]:[n/e/3,i/e/3,e]}function Ow(t,e,n,i){for(var r=(t.length-2)/6,o=1/0,a=0,s=t.length,l=s-2,h=0;h<r;h++){for(var c=6*h,u=0,d=0;d<s;d+=2){var p=0===d?c:(c+d-2)%l+2,f=t[p]-n[0],g=t[p+1]-n[1],m=e[d]-i[0]-f,v=e[d+1]-i[1]-g;u+=m*m+v*v}u<o&&(o=u,a=h)}return a}function Nw(t){for(var e=[],n=t.length,i=0;i<n;i+=2)e[i]=t[n-i-2],e[i+1]=t[n-i-1];return e}function Fw(t){return t.__isCombineMorphing}var Bw="__mOriginal_";function zw(t,e,n){var i=Bw+e,r=t[i]||t[e];t[i]||(t[i]=t[e]);var o=n.replace,a=n.after,s=n.before;t[e]=function(){var t,e=arguments;return s&&s.apply(this,e),t=o?o.apply(this,e):r.apply(this,e),a&&a.apply(this,e),t}}function Gw(t,e){var n=Bw+e;t[n]&&(t[e]=t[n],t[n]=null)}function Vw(t,e){for(var n=0;n<t.length;n++)for(var i=t[n],r=0;r<i.length;){var o=i[r],a=i[r+1];i[r++]=e[0]*o+e[2]*a+e[4],i[r++]=e[1]*o+e[3]*a+e[5]}}function jw(t,e){var n=t.getUpdatedPathProxy(),i=e.getUpdatedPathProxy(),r=function(t,e){for(var n,i,r,o=[],a=[],s=0;s<Math.max(t.length,e.length);s++){var l=t[s],h=e[s],c=void 0,u=void 0;l?h?(i=c=(n=Dw(l,h))[0],r=u=n[1]):(u=Pw(r||l,l),c=l):(c=Pw(i||h,h),u=h),o.push(c),a.push(u)}return[o,a]}(bw(n),bw(i)),o=r[0],a=r[1],s=t.getComputedTransform(),l=e.getComputedTransform();s&&Vw(o,s),l&&Vw(a,l),zw(e,"updateTransform",{replace:function(){this.transform=null}}),e.transform=null;var h=function(t,e,n,i){for(var r,o=[],a=0;a<t.length;a++){var s=t[a],l=e[a],h=Rw(s),c=Rw(l);null==r&&(r=h[2]<0!=c[2]<0);var u=[],d=[],p=0,f=1/0,g=[],m=s.length;r&&(s=Nw(s));for(var v=6*Ow(s,l,h,c),y=m-2,_=0;_<y;_+=2){var x=(v+_)%y+2;u[_+2]=s[x]-h[0],u[_+3]=s[x+1]-h[1]}if(u[0]=s[v]-h[0],u[1]=s[v+1]-h[1],n>0)for(var b=i/n,w=-i/2;w<=i/2;w+=b){var S=Math.sin(w),T=Math.cos(w),M=0;for(_=0;_<s.length;_+=2){var A=u[_],C=u[_+1],I=l[_]-c[0],E=l[_+1]-c[1],k=I*T-E*S,L=I*S+E*T;g[_]=k,g[_+1]=L;var D=k-A,P=L-C;M+=D*D+P*P}if(M<f){f=M,p=w;for(var R=0;R<g.length;R++)d[R]=g[R]}}else for(var O=0;O<m;O+=2)d[O]=l[O]-c[0],d[O+1]=l[O+1]-c[1];o.push({from:u,to:d,fromCp:h,toCp:c,rotation:-p})}return o}(o,a,10,Math.PI),c=[];zw(e,"buildPath",{replace:function(t){for(var n=e.__morphT,i=1-n,r=[],o=0;o<h.length;o++){var a=h[o],s=a.from,l=a.to,u=a.rotation*n,d=a.fromCp,p=a.toCp,f=Math.sin(u),g=Math.cos(u);(0,xi.lerp)(r,d,p,n);for(var m=0;m<s.length;m+=2){var v=s[m],y=s[m+1],_=v*i+(S=l[m])*n,x=y*i+(T=l[m+1])*n;c[m]=_*g-x*f+r[0],c[m+1]=_*f+x*g+r[1]}var b=c[0],w=c[1];t.moveTo(b,w);for(m=2;m<s.length;){var S=c[m++],T=c[m++],M=c[m++],A=c[m++],C=c[m++],I=c[m++];b===S&&w===T&&M===C&&A===I?t.lineTo(C,I):t.bezierCurveTo(S,T,M,A,C,I),b=C,w=I}}}})}function Hw(t,e,n){if(!t||!e)return e;var i=n.done,r=n.during;return jw(t,e),e.__morphT=0,e.animateTo({__morphT:1},(0,_.defaults)({during:function(t){e.dirtyShape(),r&&r(t)},done:function(){Gw(e,"buildPath"),Gw(e,"updateTransform"),e.__morphT=-1,e.createPathProxy(),e.dirtyShape(),i&&i()}},n)),e}function Ww(t,e,n,i,r,o){t=r===n?0:Math.round(32767*(t-n)/(r-n)),e=o===i?0:Math.round(32767*(e-i)/(o-i));for(var a,s=0,l=32768;l>0;l/=2){var h=0,c=0;(t&l)>0&&(h=1),(e&l)>0&&(c=1),s+=l*l*(3*h^c),0===c&&(1===h&&(t=l-1-t,e=l-1-e),a=t,t=e,e=a)}return s}function Uw(t){var e=1/0,n=1/0,i=-1/0,r=-1/0,o=(0,_.map)(t,(function(t){var o=t.getBoundingRect(),a=t.getComputedTransform(),s=o.x+o.width/2+(a?a[4]:0),l=o.y+o.height/2+(a?a[5]:0);return e=Math.min(s,e),n=Math.min(l,n),i=Math.max(s,i),r=Math.max(l,r),[s,l]}));return(0,_.map)(o,(function(o,a){return{cp:o,z:Ww(o[0],o[1],e,n,i,r),path:t[a]}})).sort((function(t,e){return t.z-e.z})).map((function(t){return t.path}))}function qw(t){return Lw(t.path,t.count)}function Xw(t){return(0,_.isArray)(t[0])}function Yw(t,e){for(var n=[],i=t.length,r=0;r<i;r++)n.push({one:t[r],many:[]});for(r=0;r<e.length;r++){var o=e[r].length,a=void 0;for(a=0;a<o;a++)n[a%i].many.push(e[r][a])}var s=0;for(r=i-1;r>=0;r--)if(!n[r].many.length){var l=n[s].many;if(l.length<=1){if(!s)return n;s=0}o=l.length;var h=Math.ceil(o/2);n[r].many=l.slice(h,o),n[s].many=l.slice(0,h),s++}return n}var Zw={clone:function(t){for(var e=[],n=1-Math.pow(1-t.path.style.opacity,1/t.count),i=0;i<t.count;i++){var r=(0,Jr.rR)(t.path);r.setStyle("opacity",n),e.push(r)}return e},split:null};function $w(t,e,n,i,r,o){if(t.length&&e.length){var a=(0,Ut.Jw)("update",i,r);if(a&&a.duration>0){var l,h,c=i.getModel("universalTransition").get("delay"),u=Object.assign({setToFinal:!0},a);Xw(t)&&(l=t,h=e),Xw(e)&&(l=e,h=t);for(var d=l?l===t:t.length>e.length,p=l?Yw(h,l):Yw(d?e:t,[d?t:e]),f=0,g=0;g<p.length;g++)f+=p[g].many.length;var m=0;for(g=0;g<p.length;g++)v(p[g],d,m,f),m+=p[g].many.length}}function v(t,e,i,r,a){var l=t.many,h=t.one;if(1!==l.length||a)for(var d=(0,_.defaults)({dividePath:Zw[n],individualDelay:c&&function(t,e,n,o){return c(t+i,r)}},u),p=e?function(t,e,n){var i=[];!function t(e){for(var n=0;n<e.length;n++){var r=e[n];Fw(r)?t(r.childrenRef()):r instanceof s.Ay&&i.push(r)}}(t);var r=i.length;if(!r)return{fromIndividuals:[],toIndividuals:[],count:0};var o=(n.dividePath||qw)({path:e,count:r});if(o.length!==r)return console.error("Invalid morphing: unmatched splitted path"),{fromIndividuals:[],toIndividuals:[],count:0};i=Uw(i),o=Uw(o);for(var a=n.done,l=n.during,h=n.individualDelay,c=new O.Ay,u=0;u<r;u++){var d=i[u],p=o[u];p.parent=e,p.copyTransform(c),h||jw(d,p)}function f(t){for(var e=0;e<o.length;e++)o[e].addSelfToZr(t)}function g(){e.__isCombineMorphing=!1,e.__morphT=-1,e.childrenRef=null,Gw(e,"addSelfToZr"),Gw(e,"removeSelfFromZr")}e.__isCombineMorphing=!0,e.childrenRef=function(){return o},zw(e,"addSelfToZr",{after:function(t){f(t)}}),zw(e,"removeSelfFromZr",{after:function(t){for(var e=0;e<o.length;e++)o[e].removeSelfFromZr(t)}});var m=o.length;if(h){var v=m,y=function(){0==--v&&(g(),a&&a())};for(u=0;u<m;u++){var x=h?(0,_.defaults)({delay:(n.delay||0)+h(u,m,i[u],o[u]),done:y},n):n;Hw(i[u],o[u],x)}}else e.__morphT=0,e.animateTo({__morphT:1},(0,_.defaults)({during:function(t){for(var n=0;n<m;n++){var i=o[n];i.__morphT=e.__morphT,i.dirtyShape()}l&&l(t)},done:function(){g();for(var e=0;e<t.length;e++)Gw(t[e],"updateTransform");a&&a()}},n));return e.__zr&&f(e.__zr),{fromIndividuals:i,toIndividuals:o,count:m}}(l,h,d):function(t,e,n){var i=e.length,r=[],o=n.dividePath||qw;if(Fw(t)){!function t(e){for(var n=0;n<e.length;n++){var i=e[n];Fw(i)?t(i.childrenRef()):i instanceof s.Ay&&r.push(i)}}(t.childrenRef());var a=r.length;if(a<i)for(var l=0,h=a;h<i;h++)r.push((0,Jr.rR)(r[l++%a]));r.length=i}else{r=o({path:t,count:i});var c=t.getComputedTransform();for(h=0;h<r.length;h++)r[h].setLocalTransform(c);if(r.length!==i)return console.error("Invalid morphing: unmatched splitted path"),{fromIndividuals:[],toIndividuals:[],count:0}}r=Uw(r),e=Uw(e);var u=n.individualDelay;for(h=0;h<i;h++){var d=u?(0,_.defaults)({delay:(n.delay||0)+u(h,i,r[h],e[h])},n):n;Hw(r[h],e[h],d)}return{fromIndividuals:r,toIndividuals:e,count:e.length}}(h,l,d),f=p.fromIndividuals,g=p.toIndividuals,m=f.length,y=0;y<m;y++){x=c?(0,_.defaults)({delay:c(y,m)},u):u;o(f[y],g[y],e?l[y]:t.one,e?t.one:l[y],x)}else{var x,b=e?l[0]:h,w=e?h:l[0];if(Fw(b))v({many:[b],one:w},!0,i,r,!0);else Hw(b,w,x=c?(0,_.defaults)({delay:c(i,r)},u):u),o(b,w,b,w,x)}}}function Kw(t){if(!t)return[];if((0,_.isArray)(t)){for(var e=[],n=0;n<t.length;n++)e.push(Kw(t[n]));return e}var i=[];return t.traverse((function(t){t instanceof s.Ay&&!t.disableMorphing&&!t.invisible&&!t.ignore&&i.push(t)})),i}var Jw=(0,ce.$r)();function Qw(t,e,n,i){var r=function(t,e){for(var n=t.dimensions,i=0;i<n.length;i++){var r=t.getDimensionInfo(n[i]);if(r&&0===r.otherDims[e])return n[i]}}(t,i?"itemChildGroupId":"itemGroupId");if(r){var o=function(t,e,n){var i=t.getDimensionInfo(n),r=i&&i.ordinalMeta;if(i){var o=t.get(i.name,e);return r&&r.categories[o]||o+""}}(t,e,r);return o}var a=t.getRawDataItem(e),s=i?"childGroupId":"groupId";return a&&a[s]?a[s]+"":i?void 0:n||t.getId(e)}function tS(t){var e=[];return(0,_.each)(t,(function(t){var n=t.data,i=t.dataGroupId;if(!(n.count()>1e4))for(var r=n.getIndices(),o=0;o<r.length;o++)e.push({data:n,groupId:Qw(n,o,i,!1),childGroupId:Qw(n,o,i,!0),divide:t.divide,dataIndex:o})})),e}function eS(t,e,n){t.traverse((function(t){t instanceof s.Ay&&(0,Ut.LW)(t,{style:{opacity:0}},e,{dataIndex:n,isFrom:!0})}))}function nS(t){if(t.parent){var e=t.getComputedTransform();t.setLocalTransform(e),t.parent.remove(t)}}function iS(t){t.stopAnimation(),t.isGroup&&t.traverse((function(t){t.stopAnimation()}))}function rS(t,e,n){var i=tS(t),r=tS(e);function o(t,e,n,i,r){(n||t)&&e.animateFrom({style:n&&n!==t?(0,_.extend)((0,_.extend)({},n.style),t.style):t.style},r)}var a=!1,l=0,h=(0,_.createHashMap)(),c=(0,_.createHashMap)();i.forEach((function(t){t.groupId&&h.set(t.groupId,!0),t.childGroupId&&c.set(t.childGroupId,!0)}));for(var u=0;u<r.length;u++){var d=r[u].groupId;if(c.get(d)){l=1;break}var p=r[u].childGroupId;if(p&&h.get(p)){l=2;break}}function f(t,e){return function(n){var i=n.data,r=n.dataIndex;return e?i.getId(r):t?1===l?n.childGroupId:n.groupId:2===l?n.childGroupId:n.groupId}}var g=function(t,e){var n=t.length;if(n!==e.length)return!1;for(var i=0;i<n;i++){var r=t[i],o=e[i];if(r.data.getId(r.dataIndex)!==o.data.getId(o.dataIndex))return!1}return!0}(i,r),m={};if(!g)for(u=0;u<r.length;u++){var v=r[u],y=v.data.getItemGraphicEl(v.dataIndex);y&&(m[y.id]=!0)}function x(t,e){var n=i[e],s=r[t],l=s.data.hostModel,h=n.data.getItemGraphicEl(n.dataIndex),c=s.data.getItemGraphicEl(s.dataIndex);h!==c?h&&m[h.id]||c&&(iS(c),h?(iS(h),nS(h),a=!0,$w(Kw(h),Kw(c),s.divide,l,t,o)):eS(c,l,t)):c&&function(t,e,n){var i=(0,Ut.Jw)("update",n,e);i&&t.traverse((function(t){if(t instanceof Vo.Ay){var e=(0,Ut.Xr)(t);e&&t.animateFrom({style:e},i)}}))}(c,s.dataIndex,l)}new gs.A(i,r,f(!0,g),f(!1,g),null,"multiple").update(x).updateManyToOne((function(t,e){var n=r[t],s=n.data,l=s.hostModel,h=s.getItemGraphicEl(n.dataIndex),c=(0,_.filter)((0,_.map)(e,(function(t){return i[t].data.getItemGraphicEl(i[t].dataIndex)})),(function(t){return t&&t!==h&&!m[t.id]}));h&&(iS(h),c.length?((0,_.each)(c,(function(t){iS(t),nS(t)})),a=!0,$w(Kw(c),Kw(h),n.divide,l,t,o)):eS(h,l,n.dataIndex))})).updateOneToMany((function(t,e){var n=i[e],s=n.data.getItemGraphicEl(n.dataIndex);if(!s||!m[s.id]){var l=(0,_.filter)((0,_.map)(t,(function(t){return r[t].data.getItemGraphicEl(r[t].dataIndex)})),(function(t){return t&&t!==s})),h=r[t[0]].data.hostModel;l.length&&((0,_.each)(l,(function(t){return iS(t)})),s?(iS(s),nS(s),a=!0,$w(Kw(s),Kw(l),n.divide,h,t[0],o)):(0,_.each)(l,(function(e){return eS(e,h,t[0])})))}})).updateManyToMany((function(t,e){new gs.A(e,t,(function(t){return i[t].data.getId(i[t].dataIndex)}),(function(t){return r[t].data.getId(r[t].dataIndex)})).update((function(n,i){x(t[n],e[i])})).execute()})).execute(),a&&(0,_.each)(e,(function(t){var e=t.data.hostModel,i=e&&n.getViewOfSeriesModel(e),r=(0,Ut.Jw)("update",e,0);i&&e.isAnimationEnabled()&&r&&r.duration>0&&i.group.traverse((function(t){t instanceof s.Ay&&!t.animators.length&&t.animateFrom({style:{opacity:0}},r)}))}))}function oS(t){var e=t.getModel("universalTransition").get("seriesKey");return e||t.id}function aS(t){return(0,_.isArray)(t)?t.sort().join(","):t}function sS(t){if(t.hostModel)return t.hostModel.getModel("universalTransition").get("divideShape")}function lS(t,e){for(var n=0;n<t.length;n++){if(null!=e.seriesIndex&&e.seriesIndex===t[n].seriesIndex||null!=e.seriesId&&e.seriesId===t[n].id)return n}}var hS=n(4971);(0,i.Y)([o.a]),(0,i.Y)([function(t){t.registerPainter("svg",Ft)}]),(0,i.Y)([function(t){t.registerChartView(Ge),t.registerSeriesModel(Wt),t.registerLayout(je("line",!0)),t.registerVisual({seriesType:"line",reset:function(t){var e=t.getData(),n=t.getModel("lineStyle").getLineStyle();n&&!n.stroke&&(n.stroke=e.getVisual("style").fill),e.setVisual("legendLineStyle",n)}}),t.registerProcessor(t.PRIORITY.PROCESSOR.STATISTIC,Ue("line"))},function(t){t.registerChartView(Sn),t.registerSeriesModel($e),t.registerLayout(t.PRIORITY.VISUAL.LAYOUT,_.curry(qe.Zp,"bar")),t.registerLayout(t.PRIORITY.VISUAL.PROGRESSIVE_LAYOUT,(0,qe.KF)("bar")),t.registerProcessor(t.PRIORITY.PROCESSOR.STATISTIC,Ue("bar")),t.registerAction({type:"changeAxisOrder",event:"changeAxisOrder",update:"update"},(function(t,e){var n=t.componentType||"series";e.eachComponent({mainType:n,query:t},(function(e){t.sortInfo&&e.axis.setCategorySortInfo(t.sortInfo)}))}))},function(t){t.registerChartView(Hn),t.registerSeriesModel($n),(0,Tn.I)("pie",t.registerAction),t.registerLayout((0,_.curry)(kn,"pie")),t.registerProcessor(Dn("pie")),t.registerProcessor({seriesType:"pie",reset:function(t,e){var n=t.getData();n.filterSelf((function(t){var e=n.mapDimension("value"),i=n.get(e,t);return!((0,_.isNumber)(i)&&!isNaN(i)&&i<0)}))}})},function(t){(0,i.Y)(pr),t.registerSeriesModel(Kn),t.registerChartView(ii),t.registerLayout(je("scatter"))},function(t){(0,i.Y)(Or),t.registerChartView(xr),t.registerSeriesModel(Sr),t.registerLayout(fr),t.registerProcessor(Dn("radar")),t.registerPreprocessor(vr)},function(t){(0,i.Y)(Ia),t.registerChartView(ra),t.registerSeriesModel(aa),t.registerLayout(la),t.registerProcessor(t.PRIORITY.PROCESSOR.STATISTIC,sa),(0,Tn.I)("map",t.registerAction)},function(t){t.registerChartView($a),t.registerSeriesModel(as),t.registerLayout(ls),t.registerVisual(hs),function(t){t.registerAction({type:"treeExpandAndCollapse",event:"treeExpandAndCollapse",update:"update"},(function(t,e){e.eachComponent({mainType:"series",subType:"tree",query:t},(function(e){var n=t.dataIndex,i=e.getData().tree.getNodeByDataIndex(n);i.isExpand=!i.isExpand}))})),t.registerAction({type:"treeRoam",event:"treeRoam",update:"none"},(function(t,e,n){e.eachComponent({mainType:"series",subType:"tree",query:t},(function(e){var i=Ta(e.coordinateSystem,t,void 0,n);e.setCenter&&e.setCenter(i.center),e.setZoom&&e.setZoom(i.zoom)}))}))}(t)},function(t){t.registerSeriesModel(fs),t.registerChartView(Ps),t.registerVisual(Ks),t.registerLayout(cl),function(t){for(var e=0;e<cs.length;e++)t.registerAction({type:cs[e],update:"updateView"},_.noop);t.registerAction({type:"treemapRootToNode",update:"updateView"},(function(t,e){e.eachComponent({mainType:"series",subType:"treemap",query:t},(function(e,n){var i=es(t,["treemapZoomToNode","treemapRootToNode"],e);if(i){var r=e.getViewRoot();r&&(t.direction=is(r,i.node)?"rollUp":"drillDown"),e.resetViewRoot(i.node)}}))}))}(t)},function(t){t.registerChartView(ph),t.registerSeriesModel(_h),t.registerProcessor(ml),t.registerVisual(vl),t.registerVisual(_l),t.registerLayout(El),t.registerLayout(t.PRIORITY.VISUAL.POST_CHART_LAYOUT,Fl),t.registerLayout(zl),t.registerCoordinateSystem("graphView",{dimensions:da.dimensions,create:Gl}),t.registerAction({type:"focusNodeAdjacency",event:"focusNodeAdjacency",update:"series:focusNodeAdjacency"},_.noop),t.registerAction({type:"unfocusNodeAdjacency",event:"unfocusNodeAdjacency",update:"series:unfocusNodeAdjacency"},_.noop),t.registerAction(xh,(function(t,e,n){e.eachComponent({mainType:"series",query:t},(function(e){var i=Ta(e.coordinateSystem,t,void 0,n);e.setCenter&&e.setCenter(i.center),e.setZoom&&e.setZoom(i.zoom)}))}))},function(t){t.registerChartView(Ah),t.registerSeriesModel(Ch)},function(t){t.registerChartView(kh),t.registerSeriesModel(Dh),t.registerLayout(Ph),t.registerProcessor(Dn("funnel"))},function(t){(0,i.Y)(cu),t.registerChartView(zh),t.registerSeriesModel(Vh),t.registerVisual(t.PRIORITY.VISUAL.BRUSH,Hh)},function(t){t.registerChartView(gu),t.registerSeriesModel(vu),t.registerLayout(yu),t.registerVisual(ku),t.registerAction({type:"dragNode",event:"dragnode",update:"update"},(function(t,e){e.eachComponent({mainType:"series",subType:"sankey",query:t},(function(e){e.setNodePosition(t.dataIndex,[t.localX,t.localY])}))}))},function(t){t.registerSeriesModel(Ru),t.registerChartView(Vu),t.registerLayout(Hu),t.registerTransform(qu)},function(t){t.registerChartView(od),t.registerSeriesModel(sd),t.registerPreprocessor(ld),t.registerVisual(fd),t.registerLayout(vd)},function(t){t.registerChartView(bd),t.registerSeriesModel(wd),t.registerLayout(je("effectScatter"))},function(t){t.registerChartView(Nd),t.registerSeriesModel(Vd),t.registerLayout(Od),t.registerVisual(Hd)},function(t){t.registerChartView(Yd),t.registerSeriesModel(Zd)},function(t){t.registerChartView(mp),t.registerSeriesModel(vp),t.registerLayout(t.PRIORITY.VISUAL.LAYOUT,(0,_.curry)(qe.Zp,"pictorialBar")),t.registerLayout(t.PRIORITY.VISUAL.PROGRESSIVE_LAYOUT,(0,qe.KF)("pictorialBar"))},function(t){t.registerChartView(_p),t.registerSeriesModel(bp),t.registerLayout(wp),t.registerProcessor(Dn("themeRiver"))},function(t){t.registerChartView(kp),t.registerSeriesModel(Dp),t.registerLayout((0,_.curry)(Rp,"sunburst")),t.registerProcessor((0,_.curry)(Dn,"sunburst")),t.registerVisual(Np),function(t){t.registerAction({type:Cp,update:"updateView"},(function(t,e){e.eachComponent({mainType:"series",subType:"sunburst",query:t},(function(e,n){var i=es(t,[Cp],e);if(i){var r=e.getViewRoot();r&&(t.direction=is(r,i.node)?"rollUp":"drillDown"),e.resetViewRoot(i.node)}}))})),t.registerAction({type:Ip,update:"none"},(function(t,e,n){t=(0,_.extend)({},t),e.eachComponent({mainType:"series",subType:"sunburst",query:t},(function(e){var n=es(t,[Ip],e);n&&(t.dataIndex=n.node.dataIndex)})),n.dispatchAction((0,_.extend)(t,{type:"highlight"}))})),t.registerAction({type:"sunburstUnhighlight",update:"updateView"},(function(t,e,n){t=(0,_.extend)({},t),n.dispatchAction((0,_.extend)(t,{type:"downplay"}))}))}(t)},function(t){t.registerChartView(Ef),t.registerSeriesModel(Gp)}]),(0,i.Y)((function(t){(0,i.Y)(pr),(0,i.Y)(Rg)})),(0,i.Y)((function(t){(0,i.Y)(Rg),er.registerAxisPointerClass("PolarAxisPointer",Fg),t.registerCoordinateSystem("polar",tm),t.registerComponentModel(Bg),t.registerComponentView(ym),gi(t,"angle",Gg,mm),gi(t,"radius",Vg,vm),t.registerComponentView(sm),t.registerComponentView(dm),t.registerLayout((0,_.curry)(gm,"bar"))})),(0,i.Y)(Ia),(0,i.Y)((function(t){(0,i.Y)(Rg),er.registerAxisPointerClass("SingleAxisPointer",zm),t.registerComponentView(Gm),t.registerComponentView(Tm),t.registerComponentModel(Am),gi(t,"single",Am,Am.defaultOption),t.registerCoordinateSystem("single",Dm)})),(0,i.Y)(cu),(0,i.Y)((function(t){t.registerComponentModel(jm),t.registerComponentView(Um),t.registerCoordinateSystem("calendar",Ym)})),(0,i.Y)((function(t){t.registerComponentModel(Qm),t.registerComponentView(nv),t.registerPreprocessor((function(t){var e=t.graphic;(0,_.isArray)(e)?e[0]&&e[0].elements?t.graphic=[t.graphic[0]]:t.graphic=[{elements:e}]:e&&!e.elements&&(t.graphic=[{elements:[e]}])}))})),(0,i.Y)((function(t){t.registerComponentModel(Dv),t.registerComponentView(Ov),kv("saveAsImage",Nv),kv("magicType",Vv),kv("dataView",Zv),kv("dataZoom",xy),kv("restore",ty),(0,i.Y)(Cv)})),(0,i.Y)((function(t){(0,i.Y)(Rg),t.registerComponentModel(by),t.registerComponentView(qy),t.registerAction({type:"showTip",event:"showTip",update:"tooltip:manuallyShowTip"},_.noop),t.registerAction({type:"hideTip",event:"hideTip",update:"tooltip:manuallyHideTip"},_.noop)})),(0,i.Y)(Rg),(0,i.Y)((function(t){t.registerComponentView(p_),t.registerComponentModel(g_),t.registerPreprocessor(Yy),t.registerVisual(t.PRIORITY.VISUAL.BRUSH,l_),t.registerAction({type:"brush",event:"brush",update:"updateVisual"},(function(t,e){e.eachComponent({mainType:"brush",query:t},(function(e){e.setAreas(t.areas)}))})),t.registerAction({type:"brushSelect",event:"brushSelected",update:"none"},_.noop),t.registerAction({type:"brushEnd",event:"brushEnd",update:"none"},_.noop),kv("brush",v_)})),(0,i.Y)((function(t){t.registerComponentModel(y_),t.registerComponentView(__)})),(0,i.Y)((function(t){t.registerComponentModel(S_),t.registerComponentView(P_),t.registerSubTypeDefaulter("timeline",(function(){return"slider"})),function(t){t.registerAction({type:"timelineChange",event:"timelineChanged",update:"prepareAndUpdate"},(function(t,e,n){var i=e.getComponent("timeline");return i&&null!=t.currentIndex&&(i.setCurrentIndex(t.currentIndex),!i.get("loop",!0)&&i.isIndexMax()&&i.getPlayState()&&(i.setPlayState(!1),n.dispatchAction({type:"timelinePlayChange",playState:!1,from:t.from}))),e.resetOption("timeline",{replaceMerge:i.get("replaceMerge",!0)}),(0,_.defaults)({currentIndex:i.option.currentIndex},t)})),t.registerAction({type:"timelinePlayChange",event:"timelinePlayChanged",update:"update"},(function(t,e){var n=e.getComponent("timeline");n&&null!=t.playState&&n.setPlayState(t.playState)}))}(t),t.registerPreprocessor(R_)})),(0,i.Y)((function(t){t.registerComponentModel(j_),t.registerComponentView(ex),t.registerPreprocessor((function(t){F_(t.series,"markPoint")&&(t.markPoint=t.markPoint||{})}))})),(0,i.Y)((function(t){t.registerComponentModel(nx),t.registerComponentView(hx),t.registerPreprocessor((function(t){F_(t.series,"markLine")&&(t.markLine=t.markLine||{})}))})),(0,i.Y)((function(t){t.registerComponentModel(cx),t.registerComponentView(_x),t.registerPreprocessor((function(t){F_(t.series,"markArea")&&(t.markArea=t.markArea||{})}))})),(0,i.Y)((function(t){(0,i.Y)(Px),(0,i.Y)(Vx)})),(0,i.Y)((function(t){(0,i.Y)(Qx),(0,i.Y)(hb)})),(0,i.Y)(Qx),(0,i.Y)(hb),(0,i.Y)((function(t){(0,i.Y)(Xb),(0,i.Y)(Qb)})),(0,i.Y)(Xb),(0,i.Y)(Qb),(0,i.Y)((function(t){t.registerPreprocessor(rw),t.registerVisual(t.PRIORITY.VISUAL.ARIA,iw)})),(0,i.Y)((function(t){t.registerTransform(mw),t.registerTransform(vw)})),(0,i.Y)(yw.a),(0,i.Y)((function(t){t.registerUpdateLifecycle("series:beforeupdate",(function(t,e,n){(0,_.each)((0,ce.qB)(n.seriesTransition),(function(t){(0,_.each)((0,ce.qB)(t.to),(function(t){for(var e=n.updatedSeries,i=0;i<e.length;i++)(null!=t.seriesIndex&&t.seriesIndex===e[i].seriesIndex||null!=t.seriesId&&t.seriesId===e[i].id)&&(e[i][Gt.U]=!0)}))}))})),t.registerUpdateLifecycle("series:transition",(function(t,e,n){var i=Jw(e);if(i.oldSeries&&n.updatedSeries&&n.optionChanged){var r=n.seriesTransition;if(r)(0,_.each)((0,ce.qB)(r),(function(t){!function(t,e,n,i){var r=[],o=[];(0,_.each)((0,ce.qB)(t.from),(function(t){var n=lS(e.oldSeries,t);n>=0&&r.push({dataGroupId:e.oldDataGroupIds[n],data:e.oldData[n],divide:sS(e.oldData[n]),groupIdDim:t.dimension})})),(0,_.each)((0,ce.qB)(t.to),(function(t){var i=lS(n.updatedSeries,t);if(i>=0){var r=n.updatedSeries[i].getData();o.push({dataGroupId:e.oldDataGroupIds[i],data:r,divide:sS(r),groupIdDim:t.dimension})}})),r.length>0&&o.length>0&&rS(r,o,i)}(t,i,n,e)}));else{var o=function(t,e){var n=(0,_.createHashMap)(),i=(0,_.createHashMap)(),r=(0,_.createHashMap)();return(0,_.each)(t.oldSeries,(function(e,n){var o=t.oldDataGroupIds[n],a=t.oldData[n],s=oS(e),l=aS(s);i.set(l,{dataGroupId:o,data:a}),(0,_.isArray)(s)&&(0,_.each)(s,(function(t){r.set(t,{key:l,dataGroupId:o,data:a})}))})),(0,_.each)(e.updatedSeries,(function(t){if(t.isUniversalTransitionEnabled()&&t.isAnimationEnabled()){var e=t.get("dataGroupId"),o=t.getData(),a=oS(t),s=aS(a),l=i.get(s);if(l)n.set(s,{oldSeries:[{dataGroupId:l.dataGroupId,divide:sS(l.data),data:l.data}],newSeries:[{dataGroupId:e,divide:sS(o),data:o}]});else if((0,_.isArray)(a)){var h=[];(0,_.each)(a,(function(t){var e=i.get(t);e.data&&h.push({dataGroupId:e.dataGroupId,divide:sS(e.data),data:e.data})})),h.length&&n.set(s,{oldSeries:h,newSeries:[{dataGroupId:e,data:o,divide:sS(o)}]})}else{var c=r.get(a);if(c){var u=n.get(c.key);u||(u={oldSeries:[{dataGroupId:c.dataGroupId,data:c.data,divide:sS(c.data)}],newSeries:[]},n.set(c.key,u)),u.newSeries.push({dataGroupId:e,data:o,divide:sS(o)})}}}})),n}(i,n);(0,_.each)(o.keys(),(function(t){var n=o.get(t);rS(n.oldSeries,n.newSeries,e)}))}(0,_.each)(n.updatedSeries,(function(t){t[Gt.U]&&(t[Gt.U]=!1)}))}for(var a=t.getSeries(),s=i.oldSeries=[],l=i.oldDataGroupIds=[],h=i.oldData=[],c=0;c<a.length;c++){var u=a[c].getData();u.count()<1e4&&(s.push(a[c]),l.push(a[c].get("dataGroupId")),h.push(u))}}))})),(0,i.Y)(hS._)},5203:(t,e,n)=>{"use strict";n.d(e,{Jw:()=>o,LR:()=>h,LW:()=>l,Nz:()=>c,Xr:()=>f,ap:()=>p,oi:()=>s,t5:()=>d});var i=n(7845),r=(0,n(2577).$r)();function o(t,e,n,r,o){var a;if(e&&e.ecModel){var s=e.ecModel.getUpdatePayload();a=s&&s.animation}var l="update"===t;if(e&&e.isAnimationEnabled()){var h=void 0,c=void 0,u=void 0;return r?(h=(0,i.retrieve2)(r.duration,200),c=(0,i.retrieve2)(r.easing,"cubicOut"),u=0):(h=e.getShallow(l?"animationDurationUpdate":"animationDuration"),c=e.getShallow(l?"animationEasingUpdate":"animationEasing"),u=e.getShallow(l?"animationDelayUpdate":"animationDelay")),a&&(null!=a.duration&&(h=a.duration),null!=a.easing&&(c=a.easing),null!=a.delay&&(u=a.delay)),(0,i.isFunction)(u)&&(u=u(n,o)),(0,i.isFunction)(h)&&(h=h(n)),{duration:h||0,delay:u,easing:c}}return null}function a(t,e,n,r,a,s,l){var h,c=!1;(0,i.isFunction)(a)?(l=s,s=a,a=null):(0,i.isObject)(a)&&(s=a.cb,l=a.during,c=a.isFrom,h=a.removeOpt,a=a.dataIndex);var u="leave"===t;u||e.stopAnimation("leave");var d=o(t,r,a,u?h||{}:null,r&&r.getAnimationDelayParams?r.getAnimationDelayParams(e,a):null);if(d&&d.duration>0){var p={duration:d.duration,delay:d.delay||0,easing:d.easing,done:s,force:!!s||!!l,setToFinal:!u,scope:t,during:l};c?e.animateFrom(n,p):e.animateTo(n,p)}else e.stopAnimation(),!c&&e.attr(n),l&&l(1),s&&s()}function s(t,e,n,i,r,o){a("update",t,e,n,i,r,o)}function l(t,e,n,i,r,o){a("enter",t,e,n,i,r,o)}function h(t){if(!t.__zr)return!0;for(var e=0;e<t.animators.length;e++){if("leave"===t.animators[e].scope)return!0}return!1}function c(t,e,n,i,r,o){h(t)||a("leave",t,e,n,i,r,o)}function u(t,e,n,i){t.removeTextContent(),t.removeTextGuideLine(),c(t,{style:{opacity:0}},e,n,i)}function d(t,e,n){function i(){t.parent&&t.parent.remove(t)}t.isGroup?t.traverse((function(t){t.isGroup||u(t,e,n,i)})):u(t,e,n,i)}function p(t){r(t).oldStyle=t.style}function f(t){return r(t).oldStyle}},9421:(t,e,n)=>{"use strict";n.d(e,{A:()=>r});var i=n(2577);function r(){var t=(0,i.$r)();return function(e){var n=t(e),i=e.pipelineContext,r=!!n.large,o=!!n.progressiveRender,a=n.large=!(!i||!i.large),s=n.progressiveRender=!(!i||!i.progressiveRender);return!(r===a&&o===s)&&"reset"}}},1577:(t,e,n)=>{"use strict";n.d(e,{A:()=>m});var i=n(7845),r=n(919),o=n(7984),a=n(525),s=n(2577),l=n(1452),h=function(t){this.coordSysDims=[],this.axisMap=(0,i.createHashMap)(),this.categoryAxisMap=(0,i.createHashMap)(),this.coordSysName=t};var c={cartesian2d:function(t,e,n,i){var r=t.getReferringComponents("xAxis",s.US).models[0],o=t.getReferringComponents("yAxis",s.US).models[0];e.coordSysDims=["x","y"],n.set("x",r),n.set("y",o),u(r)&&(i.set("x",r),e.firstCategoryDimIndex=0),u(o)&&(i.set("y",o),null==e.firstCategoryDimIndex&&(e.firstCategoryDimIndex=1))},singleAxis:function(t,e,n,i){var r=t.getReferringComponents("singleAxis",s.US).models[0];e.coordSysDims=["single"],n.set("single",r),u(r)&&(i.set("single",r),e.firstCategoryDimIndex=0)},polar:function(t,e,n,i){var r=t.getReferringComponents("polar",s.US).models[0],o=r.findAxisModel("radiusAxis"),a=r.findAxisModel("angleAxis");e.coordSysDims=["radius","angle"],n.set("radius",o),n.set("angle",a),u(o)&&(i.set("radius",o),e.firstCategoryDimIndex=0),u(a)&&(i.set("angle",a),null==e.firstCategoryDimIndex&&(e.firstCategoryDimIndex=1))},geo:function(t,e,n,i){e.coordSysDims=["lng","lat"]},parallel:function(t,e,n,r){var o=t.ecModel,a=o.getComponent("parallel",t.get("parallelIndex")),s=e.coordSysDims=a.dimensions.slice();(0,i.each)(a.parallelAxisIndex,(function(t,i){var a=o.getComponent("parallelAxis",t),l=s[i];n.set(l,a),u(a)&&(r.set(l,a),null==e.firstCategoryDimIndex&&(e.firstCategoryDimIndex=i))}))}};function u(t){return"category"===t.get("type")}var d=n(863),p=n(933),f=n(6660),g=n(3457);const m=function(t,e,n){n=n||{};var u,m=e.getSourceManager(),v=!1;t?(v=!0,u=(0,d.AF)(t)):v=(u=m.getSource()).sourceFormat===g.mK;var y=function(t){var e=t.get("coordinateSystem"),n=new h(e),i=c[e];if(i)return i(t,n,n.axisMap,n.categoryAxisMap),n}(e),_=function(t,e){var n,r=t.get("coordinateSystem"),o=l.A.get(r);return e&&e.coordSysDims&&(n=i.map(e.coordSysDims,(function(t){var n={name:t},i=e.axisMap.get(t);if(i){var r=i.get("type");n.type=(0,a.B)(r)}return n}))),n||(n=o&&(o.getDimensionsInfo?o.getDimensionsInfo():o.dimensions.slice())||["x","y"]),n}(e,y),x=n.useEncodeDefaulter,b=i.isFunction(x)?x:x?i.curry(f.OC,_,e):null,w={coordDimensions:_,generateCoord:n.generateCoord,encodeDefine:e.getEncode(),encodeDefaulter:b,canOmitUnusedDimensions:!v},S=(0,o.A)(u,w),T=function(t,e,n){var r,o;return n&&i.each(t,(function(t,i){var a=t.coordDim,s=n.categoryAxisMap.get(a);s&&(null==r&&(r=i),t.ordinalMeta=s.getOrdinalMeta(),e&&(t.createInvertedIndices=!0)),null!=t.otherDims.itemName&&(o=!0)})),o||null==r||(t[r].otherDims.itemName=0),r}(S.dimensions,n.createInvertedIndices,y),M=v?null:m.getSharedDataStore(S),A=(0,p.iJ)(e,{schema:S,store:M}),C=new r.A(S,e);C.setCalculationInfo(A);var I=null!=T&&function(t){if(t.sourceFormat===g.mK){var e=function(t){var e=0;for(;e<t.length&&null==t[e];)e++;return t[e]}(t.data||[]);return!i.isArray((0,s.vj)(e))}}(u)?function(t,e,n,i){return i===T?n:this.defaultDimValueGetter(t,e,n,i)}:null;return C.hasItemOption=!1,C.initData(v?u:M,null,I),C}},2287:(t,e,n)=>{"use strict";n.d(e,{a:()=>c});var i=n(528),r=n(9078),o=n(5370),a=n(3457),s=n(4453),l=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="dataset",e}return(0,i.C6)(e,t),e.prototype.init=function(e,n,i){t.prototype.init.call(this,e,n,i),this._sourceManager=new s.R(this),(0,s.A)(this)},e.prototype.mergeOption=function(e,n){t.prototype.mergeOption.call(this,e,n),(0,s.A)(this)},e.prototype.optionUpdated=function(){this._sourceManager.dirty()},e.prototype.getSourceManager=function(){return this._sourceManager},e.type="dataset",e.defaultOption={seriesLayoutBy:a.i_},e}(r.A),h=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="dataset",e}return(0,i.C6)(e,t),e.type="dataset",e}(o.A);function c(t){t.registerComponentModel(l),t.registerComponentView(h)}},8254:(t,e,n)=>{"use strict";n.d(e,{J:()=>s});var i=n(7845),r=n(7276),o=n(6112),a=n(2577);function s(t){var e,n,s,l,h=t.series,c=t.dataIndex,u=t.multipleSeries,d=h.getData(),p=d.mapDimensionsAll("defaultedTooltip"),f=p.length,g=h.getRawValue(c),m=(0,i.isArray)(g),v=(0,r.aw)(h,c);if(f>1||m&&!f){var y=function(t,e,n,a,s){var l=e.getData(),h=(0,i.reduce)(t,(function(t,e,n){var i=l.getDimensionInfo(n);return t||i&&!1!==i.tooltip&&null!=i.displayName}),!1),c=[],u=[],d=[];function p(t,e){var n=l.getDimensionInfo(e);n&&!1!==n.otherDims.tooltip&&(h?d.push((0,r.Qx)("nameValue",{markerType:"subItem",markerColor:s,name:n.displayName,value:t,valueType:n.type})):(c.push(t),u.push(n.type)))}return a.length?(0,i.each)(a,(function(t){p((0,o.QE)(l,n,t),t)})):(0,i.each)(t,p),{inlineValues:c,inlineValueTypes:u,blocks:d}}(g,h,c,p,v);e=y.inlineValues,n=y.inlineValueTypes,s=y.blocks,l=y.inlineValues[0]}else if(f){var _=d.getDimensionInfo(p[0]);l=e=(0,o.QE)(d,c,p[0]),n=_.type}else l=e=m?g[0]:g;var x=(0,a.O0)(h),b=x&&h.name||"",w=d.getName(c),S=u?b:w;return(0,r.Qx)("section",{header:b,noHeader:u||!x,sortParam:l,blocks:[(0,r.Qx)("nameValue",{markerType:"item",markerColor:v,name:S,noName:!(0,i.trim)(S),value:e,valueType:n,dataIndex:c})].concat(s||[])})}},7276:(t,e,n)=>{"use strict";n.d(e,{CO:()=>w,Qx:()=>d,Yu:()=>y,aw:()=>b,lb:()=>S});var i=n(4178),r=n(5065),o=n(7845),a=n(4224),s=n(8883),l="line-height:1";function h(t,e){var n=t.color||"#6e7079",r=t.fontSize||12,o=t.fontWeight||"400",a=t.color||"#464646",s=t.fontSize||14,l=t.fontWeight||"900";return"html"===e?{nameStyle:"font-size:"+(0,i.Me)(r+"")+"px;color:"+(0,i.Me)(n)+";font-weight:"+(0,i.Me)(o+""),valueStyle:"font-size:"+(0,i.Me)(s+"")+"px;color:"+(0,i.Me)(a)+";font-weight:"+(0,i.Me)(l+"")}:{nameStyle:{fontSize:r,fill:n,fontWeight:o},valueStyle:{fontSize:s,fill:a,fontWeight:l}}}var c=[0,10,20,30],u=["","\n","\n\n","\n\n\n"];function d(t,e){return e.type=t,e}function p(t){return"section"===t.type}function f(t){return p(t)?m:v}function g(t){if(p(t)){var e=0,n=t.blocks.length,i=n>1||n>0&&!t.noHeader;return(0,o.each)(t.blocks,(function(t){var n=g(t);n>=e&&(e=n+ +(i&&(!n||p(t)&&!t.noHeader)))})),e}return 0}function m(t,e,n,s){var d,p=e.noHeader,m=(d=g(e),{html:c[d],richText:u[d]}),v=[],y=e.blocks||[];(0,o.assert)(!y||(0,o.isArray)(y)),y=y||[];var b=t.orderMode;if(e.sortBlocks&&b){y=y.slice();var w={valueAsc:"asc",valueDesc:"desc"};if((0,o.hasOwn)(w,b)){var S=new a.Fl(w[b],null);y.sort((function(t,e){return S.evaluate(t.sortParam,e.sortParam)}))}else"seriesDesc"===b&&y.reverse()}(0,o.each)(y,(function(n,i){var r=e.valueFormatter,a=f(n)(r?(0,o.extend)((0,o.extend)({},t),{valueFormatter:r}):t,n,i>0?m.html:0,s);null!=a&&v.push(a)}));var T="richText"===t.renderMode?v.join(m.richText):_(v.join(""),p?n:m.html);if(p)return T;var M=(0,r.yC)(e.header,"ordinal",t.useUTC),A=h(s,t.renderMode).nameStyle;return"richText"===t.renderMode?x(t,M,A)+m.richText+T:_('<div style="'+A+";"+l+';">'+(0,i.Me)(M)+"</div>"+T,n)}function v(t,e,n,a){var s=t.renderMode,l=e.noName,c=e.noValue,u=!e.markerType,d=e.name,p=t.useUTC,f=e.valueFormatter||t.valueFormatter||function(t){return t=(0,o.isArray)(t)?t:[t],(0,o.map)(t,(function(t,e){return(0,r.yC)(t,(0,o.isArray)(v)?v[e]:v,p)}))};if(!l||!c){var g=u?"":t.markupStyleCreator.makeTooltipMarker(e.markerType,e.markerColor||"#333",s),m=l?"":(0,r.yC)(d,"ordinal",p),v=e.valueType,y=c?[]:f(e.value,e.dataIndex),b=!u||!l,w=!u&&l,S=h(a,s),T=S.nameStyle,M=S.valueStyle;return"richText"===s?(u?"":g)+(l?"":x(t,m,T))+(c?"":function(t,e,n,i,r){var a=[r],s=i?10:20;return n&&a.push({padding:[0,0,0,s],align:"right"}),t.markupStyleCreator.wrapRichTextStyle((0,o.isArray)(e)?e.join(" "):e,a)}(t,y,b,w,M)):_((u?"":g)+(l?"":function(t,e,n){return'<span style="'+n+";"+(e?"margin-left:2px":"")+'">'+(0,i.Me)(t)+"</span>"}(m,!u,T))+(c?"":function(t,e,n,r){var a=n?"10px":"20px",s=e?"float:right;margin-left:"+a:"";return t=(0,o.isArray)(t)?t:[t],'<span style="'+s+";"+r+'">'+(0,o.map)(t,(function(t){return(0,i.Me)(t)})).join("  ")+"</span>"}(y,b,w,M)),n)}}function y(t,e,n,i,r,o){if(t)return f(t)({useUTC:r,renderMode:n,orderMode:i,markupStyleCreator:e,valueFormatter:t.valueFormatter},t,0,o)}function _(t,e){return'<div style="'+("margin: "+e+"px 0 0")+";"+l+';">'+t+'<div style="clear:both"></div></div>'}function x(t,e,n){return t.markupStyleCreator.wrapRichTextStyle(e,n)}function b(t,e){var n=t.getData().getItemVisual(e,"style")[t.visualDrawType];return(0,r.he)(n)}function w(t,e){var n=t.get("padding");return null!=n?n:"richText"===e?[8,10]:10}var S=function(){function t(){this.richTextStyles={},this._nextStyleNameId=(0,s.IH)()}return t.prototype._generateStyleName=function(){return"__EC_aUTo_"+this._nextStyleNameId++},t.prototype.makeTooltipMarker=function(t,e,n){var i="richText"===n?this._generateStyleName():null,a=(0,r.qg)({color:e,type:t,renderMode:n,markerId:i});return(0,o.isString)(a)?a:(this.richTextStyles[i]=a.style,a.content)},t.prototype.wrapRichTextStyle=function(t,e){var n={};(0,o.isArray)(e)?(0,o.each)(e,(function(t){return(0,o.extend)(n,t)})):(0,o.extend)(n,e);var i=this._generateStyleName();return this.richTextStyles[i]=n,"{"+i+"|"+t+"}"},t}()},7994:(t,e,n)=>{"use strict";n.d(e,{A:()=>x});var i=n(7845),r=n(8883),o=n(4611),a=n(2577),s=n(5067),l=(0,a.$r)();function h(t,e){var n=i.map(e,(function(e){return t.scale.parse(e)}));return"time"===t.type&&n.length>0&&(n.sort(),n.unshift(n[0]),n.push(n[n.length-1])),n}function c(t){var e=t.getLabelModel().get("customValues");if(e){var n=(0,s.ry)(t);return{labels:h(t,e).map((function(e){var i={value:e};return{formattedLabel:n(i),rawLabel:t.scale.getLabel(i),tickValue:e}}))}}return"category"===t.type?function(t){var e=t.getLabelModel(),n=d(t,e);return!e.get("show")||t.scale.isBlank()?{labels:[],labelCategoryInterval:n.labelCategoryInterval}:n}(t):function(t){var e=t.scale.getTicks(),n=(0,s.ry)(t);return{labels:i.map(e,(function(e,i){return{level:e.level,formattedLabel:n(e,i),rawLabel:t.scale.getLabel(e),tickValue:e.value}}))}}(t)}function u(t,e){var n=t.getTickModel().get("customValues");return n?{ticks:h(t,n)}:"category"===t.type?function(t,e){var n,r,o=p(t,"ticks"),a=(0,s.j2)(e),l=f(o,a);if(l)return l;e.get("show")&&!t.scale.isBlank()||(n=[]);if(i.isFunction(a))n=v(t,a,!0);else if("auto"===a){var h=d(t,t.getLabelModel());r=h.labelCategoryInterval,n=i.map(h.labels,(function(t){return t.tickValue}))}else n=m(t,r=a,!0);return g(o,a,{ticks:n,tickCategoryInterval:r})}(t,e):{ticks:i.map(t.scale.getTicks(),(function(t){return t.value}))}}function d(t,e){var n,r,o=p(t,"labels"),a=(0,s.j2)(e),h=f(o,a);return h||(i.isFunction(a)?n=v(t,a):(r="auto"===a?function(t){var e=l(t).autoInterval;return null!=e?e:l(t).autoInterval=t.calculateCategoryInterval()}(t):a,n=m(t,r)),g(o,a,{labels:n,labelCategoryInterval:r}))}function p(t,e){return l(t)[e]||(l(t)[e]=[])}function f(t,e){for(var n=0;n<t.length;n++)if(t[n].key===e)return t[n].value}function g(t,e,n){return t.push({key:e,value:n}),n}function m(t,e,n){var i=(0,s.ry)(t),r=t.scale,o=r.getExtent(),a=t.getLabelModel(),l=[],h=Math.max((e||0)+1,1),c=o[0],u=r.count();0!==c&&h>1&&u/h>2&&(c=Math.round(Math.ceil(c/h)*h));var d=(0,s.PJ)(t),p=a.get("showMinLabel")||d,f=a.get("showMaxLabel")||d;p&&c!==o[0]&&m(o[0]);for(var g=c;g<=o[1];g+=h)m(g);function m(t){var e={value:t};l.push(n?t:{formattedLabel:i(e),rawLabel:r.getLabel(e),tickValue:t})}return f&&g-h!==o[1]&&m(o[1]),l}function v(t,e,n){var r=t.scale,o=(0,s.ry)(t),a=[];return i.each(r.getTicks(),(function(t){var i=r.getLabel(t),s=t.value;e(t.value,i)&&a.push(n?s:{formattedLabel:o(t),rawLabel:i,tickValue:s})})),a}var y=[0,1];function _(t,e){var n=(t[1]-t[0])/e/2;t[0]+=n,t[1]-=n}const x=function(){function t(t,e,n){this.onBand=!1,this.inverse=!1,this.dim=t,this.scale=e,this._extent=n||[0,0]}return t.prototype.contain=function(t){var e=this._extent,n=Math.min(e[0],e[1]),i=Math.max(e[0],e[1]);return t>=n&&t<=i},t.prototype.containData=function(t){return this.scale.contain(t)},t.prototype.getExtent=function(){return this._extent.slice()},t.prototype.getPixelPrecision=function(t){return(0,r.hb)(t||this.scale.getExtent(),this._extent)},t.prototype.setExtent=function(t,e){var n=this._extent;n[0]=t,n[1]=e},t.prototype.dataToCoord=function(t,e){var n=this._extent,i=this.scale;return t=i.normalize(t),this.onBand&&"ordinal"===i.type&&_(n=n.slice(),i.count()),(0,r.Cb)(t,y,n,e)},t.prototype.coordToData=function(t,e){var n=this._extent,i=this.scale;this.onBand&&"ordinal"===i.type&&_(n=n.slice(),i.count());var o=(0,r.Cb)(t,n,y,e);return this.scale.scale(o)},t.prototype.pointToData=function(t,e){},t.prototype.getTicksCoords=function(t){var e=(t=t||{}).tickModel||this.getTickModel(),n=u(this,e).ticks,o=(0,i.map)(n,(function(t){return{coord:this.dataToCoord("ordinal"===this.scale.type?this.scale.getRawOrdinalNumber(t):t),tickValue:t}}),this);return function(t,e,n,o){var a=e.length;if(!t.onBand||n||!a)return;var s,l,h=t.getExtent();if(1===a)e[0].coord=h[0],s=e[1]={coord:h[1]};else{var c=e[a-1].tickValue-e[0].tickValue,u=(e[a-1].coord-e[0].coord)/c;(0,i.each)(e,(function(t){t.coord-=u/2})),l=1+t.scale.getExtent()[1]-e[a-1].tickValue,s={coord:e[a-1].coord+u*l},e.push(s)}var d=h[0]>h[1];p(e[0].coord,h[0])&&(o?e[0].coord=h[0]:e.shift());o&&p(h[0],e[0].coord)&&e.unshift({coord:h[0]});p(h[1],s.coord)&&(o?s.coord=h[1]:e.pop());o&&p(s.coord,h[1])&&e.push({coord:h[1]});function p(t,e){return t=(0,r.LI)(t),e=(0,r.LI)(e),d?t>e:t<e}}(this,o,e.get("alignWithLabel"),t.clamp),o},t.prototype.getMinorTicksCoords=function(){if("ordinal"===this.scale.type)return[];var t=this.model.getModel("minorTick").get("splitNumber");t>0&&t<100||(t=5);var e=this.scale.getMinorTicks(t);return(0,i.map)(e,(function(t){return(0,i.map)(t,(function(t){return{coord:this.dataToCoord(t),tickValue:t}}),this)}),this)},t.prototype.getViewLabels=function(){return c(this).labels},t.prototype.getLabelModel=function(){return this.model.getModel("axisLabel")},t.prototype.getTickModel=function(){return this.model.getModel("axisTick")},t.prototype.getBandWidth=function(){var t=this._extent,e=this.scale.getExtent(),n=e[1]-e[0]+(this.onBand?1:0);0===n&&(n=1);var i=Math.abs(t[1]-t[0]);return Math.abs(i)/n},t.prototype.calculateCategoryInterval=function(){return function(t){var e=function(t){var e=t.getLabelModel();return{axisRotate:t.getRotate?t.getRotate():t.isHorizontal&&!t.isHorizontal()?90:0,labelRotate:e.get("rotate")||0,font:e.getFont()}}(t),n=(0,s.ry)(t),i=(e.axisRotate-e.labelRotate)/180*Math.PI,r=t.scale,a=r.getExtent(),h=r.count();if(a[1]-a[0]<1)return 0;var c=1;h>40&&(c=Math.max(1,Math.floor(h/40)));for(var u=a[0],d=t.dataToCoord(u+1)-t.dataToCoord(u),p=Math.abs(d*Math.cos(i)),f=Math.abs(d*Math.sin(i)),g=0,m=0;u<=a[1];u+=c){var v,y,_=o.NO(n({value:u}),e.font,"center","top");v=1.3*_.width,y=1.3*_.height,g=Math.max(g,v,7),m=Math.max(m,y,7)}var x=g/p,b=m/f;isNaN(x)&&(x=1/0),isNaN(b)&&(b=1/0);var w=Math.max(0,Math.floor(Math.min(x,b))),S=l(t.model),T=t.getExtent(),M=S.lastAutoInterval,A=S.lastTickCount;return null!=M&&null!=A&&Math.abs(M-w)<=1&&Math.abs(A-h)<=1&&M>w&&S.axisExtent0===T[0]&&S.axisExtent1===T[1]?w=M:(S.lastTickCount=h,S.lastAutoInterval=w,S.axisExtent0=T[0],S.axisExtent1=T[1]),w}(this)},t}()},5067:(t,e,n)=>{"use strict";n.d(e,{f$:()=>I,Og:()=>D,Dt:()=>L,wq:()=>O,j2:()=>P,Rx:()=>A,JJ:()=>E,ry:()=>k,af:()=>C,PJ:()=>R,PN:()=>N});var i=n(7845),r=n(1707),o=n(2670),a=n(9476),s=n(6291),l=n(5383),h=n(8689),c=n(528),u=n(8883),d=n(3115),p=a.A.prototype,f=o.A.prototype,g=u.LI,m=Math.floor,v=Math.ceil,y=Math.pow,_=Math.log,x=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="log",e.base=10,e._originalScale=new o.A,e._interval=0,e}return(0,c.C6)(e,t),e.prototype.getTicks=function(t){var e=this._originalScale,n=this._extent,r=e.getExtent(),o=f.getTicks.call(this,t);return i.map(o,(function(t){var e=t.value,i=u.LI(y(this.base,e));return i=e===n[0]&&this._fixMin?w(i,r[0]):i,{value:i=e===n[1]&&this._fixMax?w(i,r[1]):i}}),this)},e.prototype.setExtent=function(t,e){var n=_(this.base);t=_(Math.max(0,t))/n,e=_(Math.max(0,e))/n,f.setExtent.call(this,t,e)},e.prototype.getExtent=function(){var t=this.base,e=p.getExtent.call(this);e[0]=y(t,e[0]),e[1]=y(t,e[1]);var n=this._originalScale.getExtent();return this._fixMin&&(e[0]=w(e[0],n[0])),this._fixMax&&(e[1]=w(e[1],n[1])),e},e.prototype.unionExtent=function(t){this._originalScale.unionExtent(t);var e=this.base;t[0]=_(t[0])/_(e),t[1]=_(t[1])/_(e),p.unionExtent.call(this,t)},e.prototype.unionExtentFromData=function(t,e){this.unionExtent(t.getApproximateExtent(e))},e.prototype.calcNiceTicks=function(t){t=t||10;var e=this._extent,n=e[1]-e[0];if(!(n===1/0||n<=0)){var i=u.au(n);for(t/n*i<=.5&&(i*=10);!isNaN(i)&&Math.abs(i)<1&&Math.abs(i)>0;)i*=10;var r=[u.LI(v(e[0]/i)*i),u.LI(m(e[1]/i)*i)];this._interval=i,this._niceExtent=r}},e.prototype.calcNiceExtent=function(t){f.calcNiceExtent.call(this,t),this._fixMin=t.fixMin,this._fixMax=t.fixMax},e.prototype.parse=function(t){return t},e.prototype.contain=function(t){return t=_(t)/_(this.base),d.lP(t,this._extent)},e.prototype.normalize=function(t){return t=_(t)/_(this.base),d.S8(t,this._extent)},e.prototype.scale=function(t){return t=d.hs(t,this._extent),y(this.base,t)},e.type="log",e}(a.A),b=x.prototype;function w(t,e){return g(t,u.XV(e))}b.getMinorTicks=f.getMinorTicks,b.getLabel=f.getLabel,a.A.registerClass(x);const S=x;var T=n(933),M=n(5389);function A(t,e){var n=t.type,r=(0,M.Tc)(t,e,t.getExtent()).calculate();t.setBlank(r.isBlank);var o=r.min,a=r.max,l=e.ecModel;if(l&&"time"===n){var h=(0,s.GL)("bar",l),c=!1;if(i.each(h,(function(t){c=c||t.getBaseAxis()===e.axis})),c){var u=(0,s.vq)(h),d=function(t,e,n,r){var o=n.axis.getExtent(),a=o[1]-o[0],l=(0,s.VA)(r,n.axis);if(void 0===l)return{min:t,max:e};var h=1/0;i.each(l,(function(t){h=Math.min(t.offset,h)}));var c=-1/0;i.each(l,(function(t){c=Math.max(t.offset+t.width,c)})),h=Math.abs(h),c=Math.abs(c);var u=h+c,d=e-t,p=d/(1-(h+c)/a)-d;return e+=p*(c/u),t-=p*(h/u),{min:t,max:e}}(o,a,e,u);o=d.min,a=d.max}}return{extent:[o,a],fixMin:r.minFixed,fixMax:r.maxFixed}}function C(t,e){var n=e,i=A(t,n),r=i.extent,o=n.get("splitNumber");t instanceof S&&(t.base=n.get("logBase"));var a=t.type,s=n.get("interval"),l="interval"===a||"time"===a;t.setExtent(r[0],r[1]),t.calcNiceExtent({splitNumber:o,fixMin:i.fixMin,fixMax:i.fixMax,minInterval:l?n.get("minInterval"):null,maxInterval:l?n.get("maxInterval"):null}),null!=s&&t.setInterval&&t.setInterval(s)}function I(t,e){if(e=e||t.get("type"))switch(e){case"category":return new r.A({ordinalMeta:t.getOrdinalMeta?t.getOrdinalMeta():t.getCategories(),extent:[1/0,-1/0]});case"time":return new h.A({locale:t.ecModel.getLocaleModel(),useUTC:t.ecModel.get("useUTC")});default:return new(a.A.getClass(e)||o.A)}}function E(t){var e=t.scale.getExtent(),n=e[0],i=e[1];return!(n>0&&i>0||n<0&&i<0)}function k(t){var e,n,r=t.getLabelModel().get("formatter"),o="category"===t.type?t.scale.getExtent()[0]:null;return"time"===t.scale.type?(n=r,function(e,i){return t.scale.getFormattedLabel(e,i,n)}):i.isString(r)?function(e){return function(n){var i=t.scale.getLabel(n);return e.replace("{value}",null!=i?i:"")}}(r):i.isFunction(r)?(e=r,function(n,i){return null!=o&&(i=n.value-o),e(L(t,n),i,null!=n.level?{level:n.level}:null)}):function(e){return t.scale.getLabel(e)}}function L(t,e){return"category"===t.type?t.scale.getLabel(e):e.value}function D(t){var e=t.model,n=t.scale;if(e.get(["axisLabel","show"])&&!n.isBlank()){var i,o,a=n.getExtent();o=n instanceof r.A?n.count():(i=n.getTicks()).length;var s,h,c,u,d,p,f,g,m=t.getLabelModel(),v=k(t),y=1;o>40&&(y=Math.ceil(o/40));for(var _=0;_<o;_+=y){var x=v(i?i[_]:{value:a[0]+_},_),b=m.getTextRect(x),w=(h=b,c=m.get("rotate")||0,u=void 0,d=void 0,p=void 0,f=void 0,g=void 0,u=c*Math.PI/180,d=h.width,p=h.height,f=d*Math.abs(Math.cos(u))+Math.abs(p*Math.sin(u)),g=d*Math.abs(Math.sin(u))+Math.abs(p*Math.cos(u)),new l.A(h.x,h.y,f,g));s?s.union(w):s=w}return s}}function P(t){var e=t.get("interval");return null==e?"auto":e}function R(t){return"category"===t.type&&0===P(t.getLabelModel())}function O(t,e){var n={};return i.each(t.mapDimensionsAll(e),(function(e){n[(0,T.me)(t,e)]=!0})),i.keys(n)}function N(t,e,n){e&&i.each(O(e,n),(function(n){var i=e.getApproximateExtent(n);i[0]<t[0]&&(t[0]=i[0]),i[1]>t[1]&&(t[1]=i[1])}))}},5357:(t,e,n)=>{"use strict";n.d(e,{L:()=>i});var i=function(){function t(){}return t.prototype.getNeedCrossZero=function(){return!this.option.scale},t.prototype.getCoordSysModel=function(){},t}()},5202:(t,e,n)=>{"use strict";n.d(e,{A:()=>r});var i=n(7845);const r=function(){function t(t){this.type="cartesian",this._dimList=[],this._axes={},this.name=t||""}return t.prototype.getAxis=function(t){return this._axes[t]},t.prototype.getAxes=function(){return i.map(this._dimList,(function(t){return this._axes[t]}),this)},t.prototype.getAxesByScale=function(t){return t=t.toLowerCase(),i.filter(this.getAxes(),(function(e){return e.scale.type===t}))},t.prototype.addAxis=function(t){var e=t.dim;this._axes[e]=t,this._dimList.push(e)},t}()},7967:(t,e,n)=>{"use strict";n.d(e,{U5:()=>m,cn:()=>g,m5:()=>p,nS:()=>f});var i=n(528),r=n(5383),o=n(4070),a=n(248),s=n(3968),l=n(7845),h=[];function c(t,e){for(var n=0;n<t.length;n++)o.applyTransform(t[n],t[n],e)}function u(t,e,n,i){for(var r=0;r<t.length;r++){var a=t[r];i&&(a=i.project(a)),a&&isFinite(a[0])&&isFinite(a[1])&&(o.min(e,e,a),o.max(n,n,a))}}var d=function(){function t(t){this.name=t}return t.prototype.setCenter=function(t){this._center=t},t.prototype.getCenter=function(){var t=this._center;return t||(t=this._center=this.calcCenter()),t},t}(),p=function(t,e){this.type="polygon",this.exterior=t,this.interiors=e},f=function(t){this.type="linestring",this.points=t},g=function(t){function e(e,n,i){var r=t.call(this,e)||this;return r.type="geoJSON",r.geometries=n,r._center=i&&[i[0],i[1]],r}return(0,i.C6)(e,t),e.prototype.calcCenter=function(){for(var t,e=this.geometries,n=0,i=0;i<e.length;i++){var r=e[i],o=r.exterior,a=o&&o.length;a>n&&(t=r,n=a)}if(t)return function(t){for(var e=0,n=0,i=0,r=t.length,o=t[r-1][0],a=t[r-1][1],s=0;s<r;s++){var l=t[s][0],h=t[s][1],c=o*h-l*a;e+=c,n+=(o+l)*c,i+=(a+h)*c,o=l,a=h}return e?[n/e/3,i/e/3,e]:[t[0][0]||0,t[0][1]||0]}(t.exterior);var s=this.getBoundingRect();return[s.x+s.width/2,s.y+s.height/2]},e.prototype.getBoundingRect=function(t){var e=this._rect;if(e&&!t)return e;var n=[1/0,1/0],i=[-1/0,-1/0],o=this.geometries;return(0,l.each)(o,(function(e){"polygon"===e.type?u(e.exterior,n,i,t):(0,l.each)(e.points,(function(e){u(e,n,i,t)}))})),isFinite(n[0])&&isFinite(n[1])&&isFinite(i[0])&&isFinite(i[1])||(n[0]=n[1]=i[0]=i[1]=0),e=new r.A(n[0],n[1],i[0]-n[0],i[1]-n[1]),t||(this._rect=e),e},e.prototype.contain=function(t){var e=this.getBoundingRect(),n=this.geometries;if(!e.contain(t[0],t[1]))return!1;t:for(var i=0,r=n.length;i<r;i++){var o=n[i];if("polygon"===o.type){var s=o.exterior,l=o.interiors;if(a.l(s,t[0],t[1])){for(var h=0;h<(l?l.length:0);h++)if(a.l(l[h],t[0],t[1]))continue t;return!0}}}return!1},e.prototype.transformTo=function(t,e,n,i){var o=this.getBoundingRect(),a=o.width/o.height;n?i||(i=n/a):n=a*i;for(var s=new r.A(t,e,n,i),h=o.calculateTransform(s),u=this.geometries,d=0;d<u.length;d++){var p=u[d];"polygon"===p.type?(c(p.exterior,h),(0,l.each)(p.interiors,(function(t){c(t,h)}))):(0,l.each)(p.points,(function(t){c(t,h)}))}(o=this._rect).copy(s),this._center=[o.x+o.width/2,o.y+o.height/2]},e.prototype.cloneShallow=function(t){null==t&&(t=this.name);var n=new e(t,this.geometries,this._center);return n._rect=this._rect,n.transformTo=null,n},e}(d),m=function(t){function e(e,n){var i=t.call(this,e)||this;return i.type="geoSVG",i._elOnlyForCalculate=n,i}return(0,i.C6)(e,t),e.prototype.calcCenter=function(){for(var t=this._elOnlyForCalculate,e=t.getBoundingRect(),n=[e.x+e.width/2,e.y+e.height/2],i=s.identity(h),r=t;r&&!r.isGeoSVGGraphicRoot;)s.mul(i,r.getLocalTransform(),i),r=r.parent;return s.invert(i,i),o.applyTransform(n,n,i),n},e}(d)},6771:(t,e,n)=>{"use strict";n.d(e,{A:()=>r});var i={"\u5357\u6d77\u8bf8\u5c9b":[32,80],"\u5e7f\u4e1c":[0,-10],"\u9999\u6e2f":[10,5],"\u6fb3\u95e8":[-10,10],"\u5929\u6d25":[5,5]};function r(t,e){if("china"===t){var n=i[e.name];if(n){var r=e.getCenter();r[0]+=n[0]/10.5,r[1]+=-n[1]/14,e.setCenter(r)}}}},2241:(t,e,n)=>{"use strict";n.d(e,{A:()=>s});var i=n(7845),r=n(7967);function o(t,e,n){for(var i=0;i<t.length;i++)t[i]=a(t[i],e[i],n)}function a(t,e,n){for(var i=[],r=e[0],o=e[1],a=0;a<t.length;a+=2){var s=t.charCodeAt(a)-64,l=t.charCodeAt(a+1)-64;s=s>>1^-(1&s),l=l>>1^-(1&l),r=s+=r,o=l+=o,i.push([s/n,l/n])}return i}function s(t,e){return t=function(t){if(!t.UTF8Encoding)return t;var e=t,n=e.UTF8Scale;null==n&&(n=1024);var r=e.features;return i.each(r,(function(t){var e=t.geometry,r=e.encodeOffsets,s=e.coordinates;if(r)switch(e.type){case"LineString":e.coordinates=a(s,r,n);break;case"Polygon":case"MultiLineString":o(s,r,n);break;case"MultiPolygon":i.each(s,(function(t,e){return o(t,r[e],n)}))}})),e.UTF8Encoding=!1,e}(t),i.map(i.filter(t.features,(function(t){return t.geometry&&t.properties&&t.geometry.coordinates.length>0})),(function(t){var n=t.properties,o=t.geometry,a=[];switch(o.type){case"Polygon":var s=o.coordinates;a.push(new r.m5(s[0],s.slice(1)));break;case"MultiPolygon":i.each(o.coordinates,(function(t){t[0]&&a.push(new r.m5(t[0],t.slice(1)))}));break;case"LineString":a.push(new r.nS([o.coordinates]));break;case"MultiLineString":a.push(new r.nS(o.coordinates))}var l=new r.cn(n[e||"name"],a,n.cp);return l.properties=n,l}))}},5389:(t,e,n)=>{"use strict";n.d(e,{Tc:()=>l});var i=n(7845),r=n(4611),o=function(){function t(t,e,n){this._prepareParams(t,e,n)}return t.prototype._prepareParams=function(t,e,n){n[1]<n[0]&&(n=[NaN,NaN]),this._dataMin=n[0],this._dataMax=n[1];var o=this._isOrdinal="ordinal"===t.type;this._needCrossZero="interval"===t.type&&e.getNeedCrossZero&&e.getNeedCrossZero();var a=e.get("min",!0);null==a&&(a=e.get("startValue",!0));var s=this._modelMinRaw=a;(0,i.isFunction)(s)?this._modelMinNum=h(t,s({min:n[0],max:n[1]})):"dataMin"!==s&&(this._modelMinNum=h(t,s));var l=this._modelMaxRaw=e.get("max",!0);if((0,i.isFunction)(l)?this._modelMaxNum=h(t,l({min:n[0],max:n[1]})):"dataMax"!==l&&(this._modelMaxNum=h(t,l)),o)this._axisDataLen=e.getCategories().length;else{var c=e.get("boundaryGap"),u=(0,i.isArray)(c)?c:[c||0,c||0];"boolean"==typeof u[0]||"boolean"==typeof u[1]?this._boundaryGapInner=[0,0]:this._boundaryGapInner=[(0,r.lo)(u[0],1),(0,r.lo)(u[1],1)]}},t.prototype.calculate=function(){var t=this._isOrdinal,e=this._dataMin,n=this._dataMax,r=this._axisDataLen,o=this._boundaryGapInner,a=t?null:n-e||Math.abs(e),s="dataMin"===this._modelMinRaw?e:this._modelMinNum,l="dataMax"===this._modelMaxRaw?n:this._modelMaxNum,h=null!=s,c=null!=l;null==s&&(s=t?r?0:NaN:e-o[0]*a),null==l&&(l=t?r?r-1:NaN:n+o[1]*a),(null==s||!isFinite(s))&&(s=NaN),(null==l||!isFinite(l))&&(l=NaN);var u=(0,i.eqNaN)(s)||(0,i.eqNaN)(l)||t&&!r;this._needCrossZero&&(s>0&&l>0&&!h&&(s=0),s<0&&l<0&&!c&&(l=0));var d=this._determinedMin,p=this._determinedMax;return null!=d&&(s=d,h=!0),null!=p&&(l=p,c=!0),{min:s,max:l,minFixed:h,maxFixed:c,isBlank:u}},t.prototype.modifyDataMinMax=function(t,e){this[s[t]]=e},t.prototype.setDeterminedMinMax=function(t,e){this[a[t]]=e},t.prototype.freeze=function(){this.frozen=!0},t}(),a={min:"_determinedMin",max:"_determinedMax"},s={min:"_dataMin",max:"_dataMax"};function l(t,e,n){var i=t.rawExtentInfo;return i||(i=new o(t,e,n),t.rawExtentInfo=i,i)}function h(t,e){return null==e?null:(0,i.eqNaN)(e)?NaN:t.parse(e)}},1452:(t,e,n)=>{"use strict";n.d(e,{A:()=>o});var i=n(7845),r={};const o=function(){function t(){this._coordinateSystems=[]}return t.prototype.create=function(t,e){var n=[];i.each(r,(function(i,r){var o=i.create(t,e);n=n.concat(o||[])})),this._coordinateSystems=n},t.prototype.update=function(t,e){i.each(this._coordinateSystems,(function(n){n.update&&n.update(t,e)}))},t.prototype.getCoordinateSystems=function(){return this._coordinateSystems.slice()},t.register=function(t,e){r[t]=e},t.get=function(t){return r[t]},t}()},3352:(t,e,n)=>{"use strict";n.d(e,{FQ:()=>Se,Ng:()=>mn,p5:()=>Gn,El:()=>ve,zm:()=>yn,Zf:()=>vn,AS:()=>_n,Bo:()=>kn,FP:()=>xn,aQ:()=>bn,ZB:()=>Bn,Ts:()=>gn,OH:()=>In,pX:()=>En,Oh:()=>Ln,Ej:()=>On,E:()=>ce.E,mz:()=>Fn,cf:()=>Mn,tb:()=>An,lP:()=>Sn,qg:()=>Tn,bf:()=>wn,iY:()=>zn,xV:()=>Cn,AF:()=>Dn,vV:()=>Nn,rE:()=>me});var i=n(528),r=n(2563),o=n(7845),a=n(4810),s=n(979),l=n(2510),h=n(2577),c=n(6217),u=n(9078),d="";"undefined"!=typeof navigator&&(d=navigator.platform||"");var p="rgba(0, 0, 0, 0.2)";const f={darkMode:"auto",colorBy:"series",color:["#5470c6","#91cc75","#fac858","#ee6666","#73c0de","#3ba272","#fc8452","#9a60b4","#ea7ccc"],gradientColor:["#f6efa6","#d88273","#bf444c"],aria:{decal:{decals:[{color:p,dashArrayX:[1,0],dashArrayY:[2,5],symbolSize:1,rotation:Math.PI/6},{color:p,symbol:"circle",dashArrayX:[[8,8],[0,8,8,0]],dashArrayY:[6,0],symbolSize:.8},{color:p,dashArrayX:[1,0],dashArrayY:[4,3],rotation:-Math.PI/4},{color:p,dashArrayX:[[6,6],[0,6,6,0]],dashArrayY:[6,0]},{color:p,dashArrayX:[[1,0],[1,6]],dashArrayY:[1,0,6,0],rotation:Math.PI/4},{color:p,symbol:"triangle",dashArrayX:[[9,9],[0,9,9,0]],dashArrayY:[7,2],symbolSize:.75}]}},textStyle:{fontFamily:d.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};var g,m,v,y=n(6660),_=n(7997),x=n(8644),b="\0_ec_inner";var w=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return(0,i.C6)(e,t),e.prototype.init=function(t,e,n,i,r,o){i=i||{},this.option=null,this._theme=new c.A(i),this._locale=new c.A(r),this._optionManager=o},e.prototype.setOption=function(t,e,n){var i=M(e);this._optionManager.setOption(t,n,i),this._resetOption(null,i)},e.prototype.resetOption=function(t,e){return this._resetOption(t,M(e))},e.prototype._resetOption=function(t,e){var n=!1,i=this._optionManager;if(!t||"recreate"===t){var r=i.mountOption("recreate"===t);0,this.option&&"recreate"!==t?(this.restoreData(),this._mergeOption(r,e)):v(this,r),n=!0}if("timeline"!==t&&"media"!==t||this.restoreData(),!t||"recreate"===t||"timeline"===t){var a=i.getTimelineOption(this);a&&(n=!0,this._mergeOption(a,e))}if(!t||"recreate"===t||"media"===t){var s=i.getMediaOption(this);s.length&&(0,o.each)(s,(function(t){n=!0,this._mergeOption(t,e)}),this)}return n},e.prototype.mergeOption=function(t){this._mergeOption(t,null)},e.prototype._mergeOption=function(t,e){var n=this.option,i=this._componentsMap,r=this._componentsCount,a=[],s=(0,o.createHashMap)(),l=e&&e.replaceMergeMainTypeMap;(0,y.ps)(this),(0,o.each)(t,(function(t,e){null!=t&&(u.A.hasClass(e)?e&&(a.push(e),s.set(e,!0)):n[e]=null==n[e]?(0,o.clone)(t):(0,o.merge)(n[e],t,!0))})),l&&l.each((function(t,e){u.A.hasClass(e)&&!s.get(e)&&(a.push(e),s.set(e,!0))})),u.A.topologicalTravel(a,u.A.getAllClassMainTypes(),(function(e){var a=(0,_.a)(this,e,h.qB(t[e])),s=i.get(e),c=s?l&&l.get(e)?"replaceMerge":"normalMerge":"replaceAll",d=h.O2(s,a,c);h.GX(d,e,u.A),n[e]=null,i.set(e,null),r.set(e,0);var p,f=[],m=[],v=0;(0,o.each)(d,(function(t,n){var i=t.existing,r=t.newOption;if(r){var a="series"===e,s=u.A.getClass(e,t.keyInfo.subType,!a);if(!s)return;if("tooltip"===e){if(p)return void 0;p=!0}if(i&&i.constructor===s)i.name=t.keyInfo.name,i.mergeOption(r,this),i.optionUpdated(r,!1);else{var l=(0,o.extend)({componentIndex:n},t.keyInfo);i=new s(r,this,this,l),(0,o.extend)(i,l),t.brandNew&&(i.__requireNewView=!0),i.init(r,this,this),i.optionUpdated(null,!0)}}else i&&(i.mergeOption({},this),i.optionUpdated({},!1));i?(f.push(i.option),m.push(i),v++):(f.push(void 0),m.push(void 0))}),this),n[e]=f,i.set(e,m),r.set(e,v),"series"===e&&g(this)}),this),this._seriesIndices||g(this)},e.prototype.getOption=function(){var t=(0,o.clone)(this.option);return(0,o.each)(t,(function(e,n){if(u.A.hasClass(n)){for(var i=h.qB(e),r=i.length,o=!1,a=r-1;a>=0;a--)i[a]&&!h.oh(i[a])?o=!0:(i[a]=null,!o&&r--);i.length=r,t[n]=i}})),delete t[b],t},e.prototype.getTheme=function(){return this._theme},e.prototype.getLocaleModel=function(){return this._locale},e.prototype.setUpdatePayload=function(t){this._payload=t},e.prototype.getUpdatePayload=function(){return this._payload},e.prototype.getComponent=function(t,e){var n=this._componentsMap.get(t);if(n){var i=n[e||0];if(i)return i;if(null==e)for(var r=0;r<n.length;r++)if(n[r])return n[r]}},e.prototype.queryComponents=function(t){var e=t.mainType;if(!e)return[];var n,i=t.index,r=t.id,a=t.name,s=this._componentsMap.get(e);return s&&s.length?(null!=i?(n=[],(0,o.each)(h.qB(i),(function(t){s[t]&&n.push(s[t])}))):n=null!=r?S("id",r,s):null!=a?S("name",a,s):(0,o.filter)(s,(function(t){return!!t})),T(n,t)):[]},e.prototype.findComponents=function(t){var e,n,i,r,a,s=t.query,l=t.mainType,h=(n=l+"Index",i=l+"Id",r=l+"Name",!(e=s)||null==e[n]&&null==e[i]&&null==e[r]?null:{mainType:l,index:e[n],id:e[i],name:e[r]}),c=h?this.queryComponents(h):(0,o.filter)(this._componentsMap.get(l),(function(t){return!!t}));return a=T(c,t),t.filter?(0,o.filter)(a,t.filter):a},e.prototype.eachComponent=function(t,e,n){var i=this._componentsMap;if((0,o.isFunction)(t)){var r=e,a=t;i.each((function(t,e){for(var n=0;t&&n<t.length;n++){var i=t[n];i&&a.call(r,e,i,i.componentIndex)}}))}else for(var s=(0,o.isString)(t)?i.get(t):(0,o.isObject)(t)?this.findComponents(t):null,l=0;s&&l<s.length;l++){var h=s[l];h&&e.call(n,h,h.componentIndex)}},e.prototype.getSeriesByName=function(t){var e=h.vS(t,null);return(0,o.filter)(this._componentsMap.get("series"),(function(t){return!!t&&null!=e&&t.name===e}))},e.prototype.getSeriesByIndex=function(t){return this._componentsMap.get("series")[t]},e.prototype.getSeriesByType=function(t){return(0,o.filter)(this._componentsMap.get("series"),(function(e){return!!e&&e.subType===t}))},e.prototype.getSeries=function(){return(0,o.filter)(this._componentsMap.get("series"),(function(t){return!!t}))},e.prototype.getSeriesCount=function(){return this._componentsCount.get("series")},e.prototype.eachSeries=function(t,e){m(this),(0,o.each)(this._seriesIndices,(function(n){var i=this._componentsMap.get("series")[n];t.call(e,i,n)}),this)},e.prototype.eachRawSeries=function(t,e){(0,o.each)(this._componentsMap.get("series"),(function(n){n&&t.call(e,n,n.componentIndex)}))},e.prototype.eachSeriesByType=function(t,e,n){m(this),(0,o.each)(this._seriesIndices,(function(i){var r=this._componentsMap.get("series")[i];r.subType===t&&e.call(n,r,i)}),this)},e.prototype.eachRawSeriesByType=function(t,e,n){return(0,o.each)(this.getSeriesByType(t),e,n)},e.prototype.isSeriesFiltered=function(t){return m(this),null==this._seriesIndicesMap.get(t.componentIndex)},e.prototype.getCurrentSeriesIndices=function(){return(this._seriesIndices||[]).slice()},e.prototype.filterSeries=function(t,e){m(this);var n=[];(0,o.each)(this._seriesIndices,(function(i){var r=this._componentsMap.get("series")[i];t.call(e,r,i)&&n.push(i)}),this),this._seriesIndices=n,this._seriesIndicesMap=(0,o.createHashMap)(n)},e.prototype.restoreData=function(t){g(this);var e=this._componentsMap,n=[];e.each((function(t,e){u.A.hasClass(e)&&n.push(e)})),u.A.topologicalTravel(n,u.A.getAllClassMainTypes(),(function(n){(0,o.each)(e.get(n),(function(e){!e||"series"===n&&function(t,e){if(e){var n=e.seriesIndex,i=e.seriesId,r=e.seriesName;return null!=n&&t.componentIndex!==n||null!=i&&t.id!==i||null!=r&&t.name!==r}}(e,t)||e.restoreData()}))}))},e.internalField=(g=function(t){var e=t._seriesIndices=[];(0,o.each)(t._componentsMap.get("series"),(function(t){t&&e.push(t.componentIndex)})),t._seriesIndicesMap=(0,o.createHashMap)(e)},m=function(t){},void(v=function(t,e){t.option={},t.option[b]=1,t._componentsMap=(0,o.createHashMap)({series:[]}),t._componentsCount=(0,o.createHashMap)();var n=e.aria;(0,o.isObject)(n)&&null==n.enabled&&(n.enabled=!0),function(t,e){var n=t.color&&!t.colorLayer;(0,o.each)(e,(function(e,i){"colorLayer"===i&&n||u.A.hasClass(i)||("object"==typeof e?t[i]=t[i]?(0,o.merge)(t[i],e,!1):(0,o.clone)(e):null==t[i]&&(t[i]=e))}))}(e,t._theme.option),(0,o.merge)(e,f,!1),t._mergeOption(e,null)})),e}(c.A);function S(t,e,n){if((0,o.isArray)(e)){var i=(0,o.createHashMap)();return(0,o.each)(e,(function(t){null!=t&&(null!=h.vS(t,null)&&i.set(t,!0))})),(0,o.filter)(n,(function(e){return e&&i.get(e[t])}))}var r=h.vS(e,null);return(0,o.filter)(n,(function(e){return e&&null!=r&&e[t]===r}))}function T(t,e){return e.hasOwnProperty("subType")?(0,o.filter)(t,(function(t){return t&&t.subType===e.subType})):t}function M(t){var e=(0,o.createHashMap)();return t&&(0,o.each)(h.qB(t.replaceMerge),(function(t){e.set(t,!0)})),{replaceMergeMainTypeMap:e}}(0,o.mixin)(w,x.X);const A=w;var C=["getDom","getZr","getWidth","getHeight","getDevicePixelRatio","dispatchAction","isSSR","isDisposed","on","off","getDataURL","getConnectedDataURL","getOption","getId","updateLabelLayout"];const I=function(t){o.each(C,(function(e){this[e]=o.bind(t[e],t)}),this)};var E=n(1452),k=/^(min|max)?(.+)$/,L=function(){function t(t){this._timelineOptions=[],this._mediaList=[],this._currentMediaIndices=[],this._api=t}return t.prototype.setOption=function(t,e,n){t&&((0,o.each)((0,h.qB)(t.series),(function(t){t&&t.data&&(0,o.isTypedArray)(t.data)&&(0,o.setAsPrimitive)(t.data)})),(0,o.each)((0,h.qB)(t.dataset),(function(t){t&&t.source&&(0,o.isTypedArray)(t.source)&&(0,o.setAsPrimitive)(t.source)}))),t=(0,o.clone)(t);var i=this._optionBackup,r=function(t,e,n){var i,r,a=[],s=t.baseOption,l=t.timeline,h=t.options,c=t.media,u=!!t.media,d=!!(h||l||s&&s.timeline);s?(r=s).timeline||(r.timeline=l):((d||u)&&(t.options=t.media=null),r=t);u&&(0,o.isArray)(c)&&(0,o.each)(c,(function(t){t&&t.option&&(t.query?a.push(t):i||(i=t))}));function p(t){(0,o.each)(e,(function(e){e(t,n)}))}return p(r),(0,o.each)(h,(function(t){return p(t)})),(0,o.each)(a,(function(t){return p(t.option)})),{baseOption:r,timelineOptions:h||[],mediaDefault:i,mediaList:a}}(t,e,!i);this._newBaseOption=r.baseOption,i?(r.timelineOptions.length&&(i.timelineOptions=r.timelineOptions),r.mediaList.length&&(i.mediaList=r.mediaList),r.mediaDefault&&(i.mediaDefault=r.mediaDefault)):this._optionBackup=r},t.prototype.mountOption=function(t){var e=this._optionBackup;return this._timelineOptions=e.timelineOptions,this._mediaList=e.mediaList,this._mediaDefault=e.mediaDefault,this._currentMediaIndices=[],(0,o.clone)(t?e.baseOption:this._newBaseOption)},t.prototype.getTimelineOption=function(t){var e,n=this._timelineOptions;if(n.length){var i=t.getComponent("timeline");i&&(e=(0,o.clone)(n[i.getCurrentIndex()]))}return e},t.prototype.getMediaOption=function(t){var e,n,i=this._api.getWidth(),r=this._api.getHeight(),a=this._mediaList,s=this._mediaDefault,l=[],h=[];if(!a.length&&!s)return h;for(var c=0,u=a.length;c<u;c++)D(a[c].query,i,r)&&l.push(c);return!l.length&&s&&(l=[-1]),l.length&&(e=l,n=this._currentMediaIndices,e.join(",")!==n.join(","))&&(h=(0,o.map)(l,(function(t){return(0,o.clone)(-1===t?s.option:a[t].option)}))),this._currentMediaIndices=l,h},t}();function D(t,e,n){var i={width:e,height:n,aspectratio:e/n},r=!0;return(0,o.each)(t,(function(t,e){var n=e.match(k);if(n&&n[1]&&n[2]){var o=n[1],a=n[2].toLowerCase();(function(t,e,n){return"min"===n?t>=e:"max"===n?t<=e:t===e})(i[a],t,o)||(r=!1)}})),r}const P=L;var R=o.each,O=o.isObject,N=["areaStyle","lineStyle","nodeStyle","linkStyle","chordStyle","label","labelLine"];function F(t){var e=t&&t.itemStyle;if(e)for(var n=0,i=N.length;n<i;n++){var r=N[n],a=e.normal,s=e.emphasis;a&&a[r]&&(t[r]=t[r]||{},t[r].normal?o.merge(t[r].normal,a[r]):t[r].normal=a[r],a[r]=null),s&&s[r]&&(t[r]=t[r]||{},t[r].emphasis?o.merge(t[r].emphasis,s[r]):t[r].emphasis=s[r],s[r]=null)}}function B(t,e,n){if(t&&t[e]&&(t[e].normal||t[e].emphasis)){var i=t[e].normal,r=t[e].emphasis;i&&(n?(t[e].normal=t[e].emphasis=null,o.defaults(t[e],i)):t[e]=i),r&&(t.emphasis=t.emphasis||{},t.emphasis[e]=r,r.focus&&(t.emphasis.focus=r.focus),r.blurScope&&(t.emphasis.blurScope=r.blurScope))}}function z(t){B(t,"itemStyle"),B(t,"lineStyle"),B(t,"areaStyle"),B(t,"label"),B(t,"labelLine"),B(t,"upperLabel"),B(t,"edgeLabel")}function G(t,e){var n=O(t)&&t[e],i=O(n)&&n.textStyle;if(i){0;for(var r=0,o=h.JS.length;r<o;r++){var a=h.JS[r];i.hasOwnProperty(a)&&(n[a]=i[a])}}}function V(t){t&&(z(t),G(t,"label"),t.emphasis&&G(t.emphasis,"label"))}function j(t){return o.isArray(t)?t:t?[t]:[]}function H(t){return(o.isArray(t)?t[0]:t)||{}}function W(t,e){R(j(t.series),(function(t){O(t)&&function(t){if(O(t)){F(t),z(t),G(t,"label"),G(t,"upperLabel"),G(t,"edgeLabel"),t.emphasis&&(G(t.emphasis,"label"),G(t.emphasis,"upperLabel"),G(t.emphasis,"edgeLabel"));var e=t.markPoint;e&&(F(e),V(e));var n=t.markLine;n&&(F(n),V(n));var i=t.markArea;i&&V(i);var r=t.data;if("graph"===t.type){r=r||t.nodes;var a=t.links||t.edges;if(a&&!o.isTypedArray(a))for(var s=0;s<a.length;s++)V(a[s]);o.each(t.categories,(function(t){z(t)}))}if(r&&!o.isTypedArray(r))for(s=0;s<r.length;s++)V(r[s]);if((e=t.markPoint)&&e.data){var l=e.data;for(s=0;s<l.length;s++)V(l[s])}if((n=t.markLine)&&n.data){var h=n.data;for(s=0;s<h.length;s++)o.isArray(h[s])?(V(h[s][0]),V(h[s][1])):V(h[s])}"gauge"===t.type?(G(t,"axisLabel"),G(t,"title"),G(t,"detail")):"treemap"===t.type?(B(t.breadcrumb,"itemStyle"),o.each(t.levels,(function(t){z(t)}))):"tree"===t.type&&z(t.leaves)}}(t)}));var n=["xAxis","yAxis","radiusAxis","angleAxis","singleAxis","parallelAxis","radar"];e&&n.push("valueAxis","categoryAxis","logAxis","timeAxis"),R(n,(function(e){R(j(t[e]),(function(t){t&&(G(t,"axisLabel"),G(t.axisPointer,"label"))}))})),R(j(t.parallel),(function(t){var e=t&&t.parallelAxisDefault;G(e,"axisLabel"),G(e&&e.axisPointer,"label")})),R(j(t.calendar),(function(t){B(t,"itemStyle"),G(t,"dayLabel"),G(t,"monthLabel"),G(t,"yearLabel")})),R(j(t.radar),(function(t){G(t,"name"),t.name&&null==t.axisName&&(t.axisName=t.name,delete t.name),null!=t.nameGap&&null==t.axisNameGap&&(t.axisNameGap=t.nameGap,delete t.nameGap)})),R(j(t.geo),(function(t){O(t)&&(V(t),R(j(t.regions),(function(t){V(t)})))})),R(j(t.timeline),(function(t){V(t),B(t,"label"),B(t,"itemStyle"),B(t,"controlStyle",!0);var e=t.data;o.isArray(e)&&o.each(e,(function(t){o.isObject(t)&&(B(t,"label"),B(t,"itemStyle"))}))})),R(j(t.toolbox),(function(t){B(t,"iconStyle"),R(t.feature,(function(t){B(t,"iconStyle")}))})),G(H(t.axisPointer),"label"),G(H(t.tooltip).axisPointer,"label")}function U(t){t&&(0,o.each)(q,(function(e){e[0]in t&&!(e[1]in t)&&(t[e[1]]=t[e[0]])}))}var q=[["x","left"],["y","top"],["x2","right"],["y2","bottom"]],X=["grid","geo","parallel","legend","toolbox","title","visualMap","dataZoom","timeline"],Y=[["borderRadius","barBorderRadius"],["borderColor","barBorderColor"],["borderWidth","barBorderWidth"]];function Z(t){var e=t&&t.itemStyle;if(e)for(var n=0;n<Y.length;n++){var i=Y[n][1],r=Y[n][0];null!=e[i]&&(e[r]=e[i])}}function $(t){t&&"edge"===t.alignTo&&null!=t.margin&&null==t.edgeDistance&&(t.edgeDistance=t.margin)}function K(t){t&&t.downplay&&!t.blur&&(t.blur=t.downplay)}function J(t,e){if(t)for(var n=0;n<t.length;n++)e(t[n]),t[n]&&J(t[n].children,e)}function Q(t,e){W(t,e),t.series=(0,h.qB)(t.series),(0,o.each)(t.series,(function(t){if((0,o.isObject)(t)){var e=t.type;if("line"===e)null!=t.clipOverflow&&(t.clip=t.clipOverflow);else if("pie"===e||"gauge"===e){if(null!=t.clockWise&&(t.clockwise=t.clockWise),$(t.label),(r=t.data)&&!(0,o.isTypedArray)(r))for(var n=0;n<r.length;n++)$(r[n]);null!=t.hoverOffset&&(t.emphasis=t.emphasis||{},(t.emphasis.scaleSize=null)&&(t.emphasis.scaleSize=t.hoverOffset))}else if("gauge"===e){var i=function(t,e){for(var n=e.split(","),i=t,r=0;r<n.length&&null!=(i=i&&i[n[r]]);r++);return i}(t,"pointer.color");null!=i&&function(t,e,n,i){for(var r,o=e.split(","),a=t,s=0;s<o.length-1;s++)null==a[r=o[s]]&&(a[r]={}),a=a[r];(i||null==a[o[s]])&&(a[o[s]]=n)}(t,"itemStyle.color",i)}else if("bar"===e){var r;if(Z(t),Z(t.backgroundStyle),Z(t.emphasis),(r=t.data)&&!(0,o.isTypedArray)(r))for(n=0;n<r.length;n++)"object"==typeof r[n]&&(Z(r[n]),Z(r[n]&&r[n].emphasis))}else if("sunburst"===e){var a=t.highlightPolicy;a&&(t.emphasis=t.emphasis||{},t.emphasis.focus||(t.emphasis.focus=a)),K(t),J(t.data,K)}else"graph"===e||"sankey"===e?function(t){t&&null!=t.focusNodeAdjacency&&(t.emphasis=t.emphasis||{},null==t.emphasis.focus&&(t.emphasis.focus="adjacency"))}(t):"map"===e&&(t.mapType&&!t.map&&(t.map=t.mapType),t.mapLocation&&(0,o.defaults)(t,t.mapLocation));null!=t.hoverAnimation&&(t.emphasis=t.emphasis||{},t.emphasis&&null==t.emphasis.scale&&(t.emphasis.scale=t.hoverAnimation)),U(t)}})),t.dataRange&&(t.visualMap=t.dataRange),(0,o.each)(X,(function(e){var n=t[e];n&&((0,o.isArray)(n)||(n=[n]),(0,o.each)(n,(function(t){U(t)})))}))}var tt=n(8883);function et(t){(0,o.each)(t,(function(e,n){var i=[],r=[NaN,NaN],o=[e.stackResultDimension,e.stackedOverDimension],a=e.data,s=e.isStackedByIndex,l=e.seriesModel.get("stackStrategy")||"samesign";a.modify(o,(function(o,h,c){var u,d,p=a.get(e.stackedDimension,c);if(isNaN(p))return r;s?d=a.getRawIndex(c):u=a.get(e.stackedByDimension,c);for(var f=NaN,g=n-1;g>=0;g--){var m=t[g];if(s||(d=m.data.rawIndexOf(m.stackedByDimension,u)),d>=0){var v=m.data.getByRawIndex(m.stackResultDimension,d);if("all"===l||"positive"===l&&v>0||"negative"===l&&v<0||"samesign"===l&&p>=0&&v>0||"samesign"===l&&p<=0&&v<0){p=(0,tt.Tr)(p,v),f=v;break}}}return i[0]=p,i[1]=f,i}))}))}var nt=n(1996),it=n(5370),rt=n(6145),ot=n(7551),at=n(5975),st=n(5203),lt=n(1885),ht=n(6195),ct=n(1632),ut=n(3490),dt=n(4449),pt=n(3951),ft=n(3404),gt=(0,h.$r)(),mt={itemStyle:(0,dt.A)(pt.L,!0),lineStyle:(0,dt.A)(ft.m,!0)},vt={lineStyle:"stroke",itemStyle:"fill"};function yt(t,e){var n=t.visualStyleMapper||mt[e];return n||(console.warn("Unknown style type '"+e+"'."),mt.itemStyle)}function _t(t,e){var n=t.visualDrawType||vt[e];return n||(console.warn("Unknown style type '"+e+"'."),"fill")}var xt={createOnAllSeries:!0,performRawSeries:!0,reset:function(t,e){var n=t.getData(),i=t.visualStyleAccessPath||"itemStyle",r=t.getModel(i),a=yt(t,i)(r),s=r.getShallow("decal");s&&(n.setVisual("decal",s),s.dirty=!0);var l=_t(t,i),h=a[l],c=(0,o.isFunction)(h)?h:null,u="auto"===a.fill||"auto"===a.stroke;if(!a[l]||c||u){var d=t.getColorFromPalette(t.name,null,e.getSeriesCount());a[l]||(a[l]=d,n.setVisual("colorFromPalette",!0)),a.fill="auto"===a.fill||(0,o.isFunction)(a.fill)?d:a.fill,a.stroke="auto"===a.stroke||(0,o.isFunction)(a.stroke)?d:a.stroke}if(n.setVisual("style",a),n.setVisual("drawType",l),!e.isSeriesFiltered(t)&&c)return n.setVisual("colorFromPalette",!1),{dataEach:function(e,n){var i=t.getDataParams(n),r=(0,o.extend)({},a);r[l]=c(i),e.setItemVisual(n,"style",r)}}}},bt=new c.A,wt={createOnAllSeries:!0,performRawSeries:!0,reset:function(t,e){if(!t.ignoreStyleOnData&&!e.isSeriesFiltered(t)){var n=t.getData(),i=t.visualStyleAccessPath||"itemStyle",r=yt(t,i),a=n.getVisual("drawType");return{dataEach:n.hasItemOption?function(t,e){var n=t.getRawDataItem(e);if(n&&n[i]){bt.option=n[i];var s=r(bt),l=t.ensureUniqueItemVisual(e,"style");(0,o.extend)(l,s),bt.option.decal&&(t.setItemVisual(e,"decal",bt.option.decal),bt.option.decal.dirty=!0),a in s&&t.setItemVisual(e,"colorFromPalette",!1)}}:null}}}},St={performRawSeries:!0,overallReset:function(t){var e=(0,o.createHashMap)();t.eachSeries((function(t){var n=t.getColorBy();if(!t.isColorBySeries()){var i=t.type+"-"+n,r=e.get(i);r||(r={},e.set(i,r)),gt(t).scope=r}})),t.eachSeries((function(e){if(!e.isColorBySeries()&&!t.isSeriesFiltered(e)){var n=e.getRawData(),i={},r=e.getData(),o=gt(e).scope,a=e.visualStyleAccessPath||"itemStyle",s=_t(e,a);r.each((function(t){var e=r.getRawIndex(t);i[e]=t})),n.each((function(t){var a=i[t];if(r.getItemVisual(a,"colorFromPalette")){var l=r.ensureUniqueItemVisual(a,"style"),h=n.getName(t)||t+"",c=n.count();l[s]=e.getColorFromPalette(h,o,c)}}))}}))}},Tt=n(8829),Mt=n(1251),At=n(4924),Ct=Math.PI;var It=n(1566),Et=n(1987),kt=function(){function t(t,e,n,i){this._stageTaskMap=(0,o.createHashMap)(),this.ecInstance=t,this.api=e,n=this._dataProcessorHandlers=n.slice(),i=this._visualHandlers=i.slice(),this._allHandlers=n.concat(i)}return t.prototype.restoreData=function(t,e){t.restoreData(e),this._stageTaskMap.each((function(t){var e=t.overallTask;e&&e.dirty()}))},t.prototype.getPerformArgs=function(t,e){if(t.__pipeline){var n=this._pipelineMap.get(t.__pipeline.id),i=n.context,r=!e&&n.progressiveEnabled&&(!i||i.progressiveRender)&&t.__idxInPipeline>n.blockIndex?n.step:null,o=i&&i.modDataCount;return{step:r,modBy:null!=o?Math.ceil(o/r):null,modDataCount:o}}},t.prototype.getPipeline=function(t){return this._pipelineMap.get(t)},t.prototype.updateStreamModes=function(t,e){var n=this._pipelineMap.get(t.uid),i=t.getData().count(),r=n.progressiveEnabled&&e.incrementalPrepareRender&&i>=n.threshold,o=t.get("large")&&i>=t.get("largeThreshold"),a="mod"===t.get("progressiveChunkMode")?i:null;t.pipelineContext=n.context={progressiveRender:r,modDataCount:a,large:o}},t.prototype.restorePipelines=function(t){var e=this,n=e._pipelineMap=(0,o.createHashMap)();t.eachSeries((function(t){var i=t.getProgressive(),r=t.uid;n.set(r,{id:r,head:null,tail:null,threshold:t.getProgressiveThreshold(),progressiveEnabled:i&&!(t.preventIncremental&&t.preventIncremental()),blockIndex:-1,step:Math.round(i||700),count:0}),e._pipe(t,t.dataTask)}))},t.prototype.prepareStageTasks=function(){var t=this._stageTaskMap,e=this.api.getModel(),n=this.api;(0,o.each)(this._allHandlers,(function(i){var r=t.get(i.uid)||t.set(i.uid,{});(0,o.assert)(!(i.reset&&i.overallReset),""),i.reset&&this._createSeriesStageTask(i,r,e,n),i.overallReset&&this._createOverallStageTask(i,r,e,n)}),this)},t.prototype.prepareView=function(t,e,n,i){var r=t.renderTask,o=r.context;o.model=e,o.ecModel=n,o.api=i,r.__block=!t.incrementalPrepareRender,this._pipe(e,r)},t.prototype.performDataProcessorTasks=function(t,e){this._performStageTasks(this._dataProcessorHandlers,t,e,{block:!0})},t.prototype.performVisualTasks=function(t,e,n){this._performStageTasks(this._visualHandlers,t,e,n)},t.prototype._performStageTasks=function(t,e,n,i){i=i||{};var r=!1,a=this;function s(t,e){return t.setDirty&&(!t.dirtyMap||t.dirtyMap.get(e.__pipeline.id))}(0,o.each)(t,(function(t,o){if(!i.visualType||i.visualType===t.visualType){var l=a._stageTaskMap.get(t.uid),h=l.seriesTaskMap,c=l.overallTask;if(c){var u,d=c.agentStubMap;d.each((function(t){s(i,t)&&(t.dirty(),u=!0)})),u&&c.dirty(),a.updatePayload(c,n);var p=a.getPerformArgs(c,i.block);d.each((function(t){t.perform(p)})),c.perform(p)&&(r=!0)}else h&&h.each((function(o,l){s(i,o)&&o.dirty();var h=a.getPerformArgs(o,i.block);h.skip=!t.performRawSeries&&e.isSeriesFiltered(o.context.model),a.updatePayload(o,n),o.perform(h)&&(r=!0)}))}})),this.unfinished=r||this.unfinished},t.prototype.performSeriesTasks=function(t){var e;t.eachSeries((function(t){e=t.dataTask.perform()||e})),this.unfinished=e||this.unfinished},t.prototype.plan=function(){this._pipelineMap.each((function(t){var e=t.tail;do{if(e.__block){t.blockIndex=e.__idxInPipeline;break}e=e.getUpstream()}while(e)}))},t.prototype.updatePayload=function(t,e){"remain"!==e&&(t.context.payload=e)},t.prototype._createSeriesStageTask=function(t,e,n,i){var r=this,a=e.seriesTaskMap,s=e.seriesTaskMap=(0,o.createHashMap)(),l=t.seriesType,h=t.getTargetSeries;function c(e){var o=e.uid,l=s.set(o,a&&a.get(o)||(0,It.U)({plan:Ot,reset:Nt,count:zt}));l.context={model:e,ecModel:n,api:i,useClearVisual:t.isVisual&&!t.isLayout,plan:t.plan,reset:t.reset,scheduler:r},r._pipe(e,l)}t.createOnAllSeries?n.eachRawSeries(c):l?n.eachRawSeriesByType(l,c):h&&h(n,i).each(c)},t.prototype._createOverallStageTask=function(t,e,n,i){var r=this,a=e.overallTask=e.overallTask||(0,It.U)({reset:Lt});a.context={ecModel:n,api:i,overallReset:t.overallReset,scheduler:r};var s=a.agentStubMap,l=a.agentStubMap=(0,o.createHashMap)(),h=t.seriesType,c=t.getTargetSeries,u=!0,d=!1;function p(t){var e=t.uid,n=l.set(e,s&&s.get(e)||(d=!0,(0,It.U)({reset:Dt,onDirty:Rt})));n.context={model:t,overallProgress:u},n.agent=a,n.__block=u,r._pipe(t,n)}(0,o.assert)(!t.createOnAllSeries,""),h?n.eachRawSeriesByType(h,p):c?c(n,i).each(p):(u=!1,(0,o.each)(n.getSeries(),p)),d&&a.dirty()},t.prototype._pipe=function(t,e){var n=t.uid,i=this._pipelineMap.get(n);!i.head&&(i.head=e),i.tail&&i.tail.pipe(e),i.tail=e,e.__idxInPipeline=i.count++,e.__pipeline=i},t.wrapStageHandler=function(t,e){return(0,o.isFunction)(t)&&(t={overallReset:t,seriesType:Gt(t)}),t.uid=(0,Et.$Q)("stageHandler"),e&&(t.visualType=e),t},t}();function Lt(t){t.overallReset(t.ecModel,t.api,t.payload)}function Dt(t){return t.overallProgress&&Pt}function Pt(){this.agent.dirty(),this.getDownstream().dirty()}function Rt(){this.agent&&this.agent.dirty()}function Ot(t){return t.plan?t.plan(t.model,t.ecModel,t.api,t.payload):null}function Nt(t){t.useClearVisual&&t.data.clearAllVisual();var e=t.resetDefines=(0,h.qB)(t.reset(t.model,t.ecModel,t.api,t.payload));return e.length>1?(0,o.map)(e,(function(t,e){return Bt(e)})):Ft}var Ft=Bt(0);function Bt(t){return function(e,n){var i=n.data,r=n.resetDefines[t];if(r&&r.dataEach)for(var o=e.start;o<e.end;o++)r.dataEach(i,o);else r&&r.progress&&r.progress(e,i)}}function zt(t){return t.data.count()}function Gt(t){Vt=null;try{t(jt,Ht)}catch(e){}return Vt}var Vt,jt={},Ht={};function Wt(t,e){for(var n in e.prototype)t[n]=o.noop}Wt(jt,A),Wt(Ht,I),jt.eachSeriesByType=jt.eachRawSeriesByType=function(t){Vt=t},jt.eachComponent=function(t){"series"===t.mainType&&t.subType&&(Vt=t.subType)};const Ut=kt;var qt=["#37A2DA","#32C5E9","#67E0E3","#9FE6B8","#FFDB5C","#ff9f7f","#fb7293","#E062AE","#E690D1","#e7bcf3","#9d96f5","#8378EA","#96BFFF"];const Xt={color:qt,colorLayer:[["#37A2DA","#ffd85c","#fd7b5f"],["#37A2DA","#67E0E3","#FFDB5C","#ff9f7f","#E062AE","#9d96f5"],["#37A2DA","#32C5E9","#9FE6B8","#FFDB5C","#ff9f7f","#fb7293","#e7bcf3","#8378EA","#96BFFF"],qt]};var Yt="#B9B8CE",Zt="#100C2A",$t=function(){return{axisLine:{lineStyle:{color:Yt}},splitLine:{lineStyle:{color:"#484753"}},splitArea:{areaStyle:{color:["rgba(255,255,255,0.02)","rgba(255,255,255,0.05)"]}},minorSplitLine:{lineStyle:{color:"#20203B"}}}},Kt=["#4992ff","#7cffb2","#fddd60","#ff6e76","#58d9f9","#05c091","#ff8a45","#8d48e3","#dd79ff"],Jt={darkMode:!0,color:Kt,backgroundColor:Zt,axisPointer:{lineStyle:{color:"#817f91"},crossStyle:{color:"#817f91"},label:{color:"#fff"}},legend:{textStyle:{color:Yt}},textStyle:{color:Yt},title:{textStyle:{color:"#EEF1FA"},subtextStyle:{color:"#B9B8CE"}},toolbox:{iconStyle:{borderColor:Yt}},dataZoom:{borderColor:"#71708A",textStyle:{color:Yt},brushStyle:{color:"rgba(135,163,206,0.3)"},handleStyle:{color:"#353450",borderColor:"#C5CBE3"},moveHandleStyle:{color:"#B0B6C3",opacity:.3},fillerColor:"rgba(135,163,206,0.2)",emphasis:{handleStyle:{borderColor:"#91B7F2",color:"#4D587D"},moveHandleStyle:{color:"#636D9A",opacity:.7}},dataBackground:{lineStyle:{color:"#71708A",width:1},areaStyle:{color:"#71708A"}},selectedDataBackground:{lineStyle:{color:"#87A3CE"},areaStyle:{color:"#87A3CE"}}},visualMap:{textStyle:{color:Yt}},timeline:{lineStyle:{color:Yt},label:{color:Yt},controlStyle:{color:Yt,borderColor:Yt}},calendar:{itemStyle:{color:Zt},dayLabel:{color:Yt},monthLabel:{color:Yt},yearLabel:{color:Yt}},timeAxis:$t(),logAxis:$t(),valueAxis:$t(),categoryAxis:$t(),line:{symbol:"circle"},graph:{color:Kt},gauge:{title:{color:Yt},axisLine:{lineStyle:{color:[[1,"rgba(207,212,219,0.2)"]]}},axisLabel:{color:Yt},detail:{color:"#EEF1FA"}},candlestick:{itemStyle:{color:"#f64e56",color0:"#54ea92",borderColor:"#f64e56",borderColor0:"#54ea92"}}};Jt.categoryAxis.splitLine.show=!1;const Qt=Jt;var te=n(9902),ee=function(){function t(){}return t.prototype.normalizeQuery=function(t){var e={},n={},i={};if(o.isString(t)){var r=(0,te.CC)(t);e.mainType=r.main||null,e.subType=r.sub||null}else{var a=["Index","Name","Id"],s={name:1,dataIndex:1,dataType:1};o.each(t,(function(t,r){for(var o=!1,l=0;l<a.length;l++){var h=a[l],c=r.lastIndexOf(h);if(c>0&&c===r.length-h.length){var u=r.slice(0,c);"data"!==u&&(e.mainType=u,e[h.toLowerCase()]=t,o=!0)}}s.hasOwnProperty(r)&&(n[r]=t,o=!0),o||(i[r]=t)}))}return{cptQuery:e,dataQuery:n,otherQuery:i}},t.prototype.filter=function(t,e){var n=this.eventInfo;if(!n)return!0;var i=n.targetEl,r=n.packedEvent,o=n.model,a=n.view;if(!o||!a)return!0;var s=e.cptQuery,l=e.dataQuery;return h(s,o,"mainType")&&h(s,o,"subType")&&h(s,o,"index","componentIndex")&&h(s,o,"name")&&h(s,o,"id")&&h(l,r,"name")&&h(l,r,"dataIndex")&&h(l,r,"dataType")&&(!a.filterForExposedEvent||a.filterForExposedEvent(t,e.otherQuery,i,r));function h(t,e,n,i){return null==t[n]||e[i||n]===t[n]}},t.prototype.afterTrigger=function(){this.eventInfo=null},t}(),ne=["symbol","symbolSize","symbolRotate","symbolOffset"],ie=ne.concat(["symbolKeepAspect"]),re={createOnAllSeries:!0,performRawSeries:!0,reset:function(t,e){var n=t.getData();if(t.legendIcon&&n.setVisual("legendIcon",t.legendIcon),t.hasSymbolVisual){for(var i={},r={},a=!1,s=0;s<ne.length;s++){var l=ne[s],h=t.get(l);(0,o.isFunction)(h)?(a=!0,r[l]=h):i[l]=h}if(i.symbol=i.symbol||t.defaultSymbol,n.setVisual((0,o.extend)({legendIcon:t.legendIcon||i.symbol,symbolKeepAspect:t.get("symbolKeepAspect")},i)),!e.isSeriesFiltered(t)){var c=(0,o.keys)(r);return{dataEach:a?function(e,n){for(var i=t.getRawValue(n),o=t.getDataParams(n),a=0;a<c.length;a++){var s=c[a];e.setItemVisual(n,s,r[s](i,o))}}:null}}}}},oe={createOnAllSeries:!0,performRawSeries:!0,reset:function(t,e){if(t.hasSymbolVisual&&!e.isSeriesFiltered(t))return{dataEach:t.getData().hasItemOption?function(t,e){for(var n=t.getItemModel(e),i=0;i<ie.length;i++){var r=ie[i],o=n.getShallow(r,!0);null!=o&&t.setItemVisual(e,r,o)}}:null}}},ae=n(2322),se=n(766),le=n(6093),he=n(7617),ce=n(6650),ue=n(3152),de=n(2863);const pe=new l.A;var fe=n(9142),ge=n(5689),me="5.5.1",ve={zrender:"5.6.0"},ye=2e3,_e=1e3,xe=2e3,be=3e3,we=4500,Se={PROCESSOR:{FILTER:1e3,SERIES_FILTER:800,STATISTIC:5e3},VISUAL:{LAYOUT:_e,PROGRESSIVE_LAYOUT:1100,GLOBAL:xe,CHART:be,POST_CHART_LAYOUT:4600,COMPONENT:4e3,BRUSH:5e3,CHART_ITEM:we,ARIA:6e3,DECAL:7e3}},Te="__flagInMainProcess",Me="__pendingUpdate",Ae="__needsUpdateStatus",Ce=/^[a-zA-Z0-9_]+$/,Ie="__connectUpdateStatus";function Ee(t){return function(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];if(!this.isDisposed())return Le(this,t,e);en(this.id)}}function ke(t){return function(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];return Le(this,t,e)}}function Le(t,e,n){return n[0]=n[0]&&n[0].toLowerCase(),l.A.prototype[e].apply(t,n)}var De,Pe,Re,Oe,Ne,Fe,Be,ze,Ge,Ve,je,He,We,Ue,qe,Xe,Ye,Ze,$e=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return(0,i.C6)(e,t),e}(l.A),Ke=$e.prototype;Ke.on=ke("on"),Ke.off=ke("off");var Je=function(t){function e(e,n,i){var a=t.call(this,new ee)||this;a._chartsViews=[],a._chartsMap={},a._componentsViews=[],a._componentsMap={},a._pendingActions=[],i=i||{},(0,o.isString)(n)&&(n=ln[n]),a._dom=e;i.ssr&&r.registerSSRDataGetter((function(t){var e=(0,ht.z)(t),n=e.dataIndex;if(null!=n){var i=(0,o.createHashMap)();return i.set("series_index",e.seriesIndex),i.set("data_index",n),e.ssrType&&i.set("ssr_type",e.ssrType),i}}));var l=a._zr=r.init(e,{renderer:i.renderer||"canvas",devicePixelRatio:i.devicePixelRatio,width:i.width,height:i.height,ssr:i.ssr,useDirtyRect:(0,o.retrieve2)(i.useDirtyRect,!1),useCoarsePointer:(0,o.retrieve2)(i.useCoarsePointer,"auto"),pointerSize:i.pointerSize});a._ssr=i.ssr,a._throttledZrFlush=(0,ut.nF)((0,o.bind)(l.flush,l),17),(n=(0,o.clone)(n))&&Q(n,!0),a._theme=n,a._locale=(0,ce.A$)(i.locale||ce.Lv),a._coordSysMgr=new E.A;var h=a._api=qe(a);function c(t,e){return t.__prio-e.__prio}return(0,s.A)(sn,c),(0,s.A)(on,c),a._scheduler=new Ut(a,h,on,sn),a._messageCenter=new $e,a._initEvents(),a.resize=(0,o.bind)(a.resize,a),l.animation.on("frame",a._onframe,a),Ve(l,a),je(l,a),(0,o.setAsPrimitive)(a),a}return(0,i.C6)(e,t),e.prototype._onframe=function(){if(!this._disposed){Ze(this);var t=this._scheduler;if(this[Me]){var e=this[Me].silent;this[Te]=!0;try{De(this),Oe.update.call(this,null,this[Me].updateParams)}catch(a){throw this[Te]=!1,this[Me]=null,a}this._zr.flush(),this[Te]=!1,this[Me]=null,ze.call(this,e),Ge.call(this,e)}else if(t.unfinished){var n=1,i=this._model,r=this._api;t.unfinished=!1;do{var o=+new Date;t.performSeriesTasks(i),t.performDataProcessorTasks(i),Fe(this,i),t.performVisualTasks(i),Ue(this,this._model,r,"remain",{}),n-=+new Date-o}while(n>0&&t.unfinished);t.unfinished||this._zr.flush()}}},e.prototype.getDom=function(){return this._dom},e.prototype.getId=function(){return this.id},e.prototype.getZr=function(){return this._zr},e.prototype.isSSR=function(){return this._ssr},e.prototype.setOption=function(t,e,n){if(!this[Te])if(this._disposed)en(this.id);else{var i,r,a;if((0,o.isObject)(e)&&(n=e.lazyUpdate,i=e.silent,r=e.replaceMerge,a=e.transition,e=e.notMerge),this[Te]=!0,!this._model||e){var s=new P(this._api),l=this._theme,h=this._model=new A;h.scheduler=this._scheduler,h.ssr=this._ssr,h.init(null,null,null,l,this._locale,s)}this._model.setOption(t,{replaceMerge:r},an);var c={seriesTransition:a,optionChanged:!0};if(n)this[Me]={silent:i,updateParams:c},this[Te]=!1,this.getZr().wakeUp();else{try{De(this),Oe.update.call(this,null,c)}catch(u){throw this[Me]=null,this[Te]=!1,u}this._ssr||this._zr.flush(),this[Me]=null,this[Te]=!1,ze.call(this,i),Ge.call(this,i)}}},e.prototype.setTheme=function(){(0,se.aT)("ECharts#setTheme() is DEPRECATED in ECharts 3.0")},e.prototype.getModel=function(){return this._model},e.prototype.getOption=function(){return this._model&&this._model.getOption()},e.prototype.getWidth=function(){return this._zr.getWidth()},e.prototype.getHeight=function(){return this._zr.getHeight()},e.prototype.getDevicePixelRatio=function(){return this._zr.painter.dpr||a.A.hasGlobalWindow&&window.devicePixelRatio||1},e.prototype.getRenderedCanvas=function(t){return this.renderToCanvas(t)},e.prototype.renderToCanvas=function(t){return t=t||{},this._zr.painter.getRenderedCanvas({backgroundColor:t.backgroundColor||this._model.get("backgroundColor"),pixelRatio:t.pixelRatio||this.getDevicePixelRatio()})},e.prototype.renderToSVGString=function(t){return t=t||{},this._zr.painter.renderToString({useViewBox:t.useViewBox})},e.prototype.getSvgDataURL=function(){if(a.A.svgSupported){var t=this._zr,e=t.storage.getDisplayList();return(0,o.each)(e,(function(t){t.stopAnimation(null,!0)})),t.painter.toDataURL()}},e.prototype.getDataURL=function(t){if(!this._disposed){var e=(t=t||{}).excludeComponents,n=this._model,i=[],r=this;(0,o.each)(e,(function(t){n.eachComponent({mainType:t},(function(t){var e=r._componentsMap[t.__viewId];e.group.ignore||(i.push(e),e.group.ignore=!0)}))}));var a="svg"===this._zr.painter.getType()?this.getSvgDataURL():this.renderToCanvas(t).toDataURL("image/"+(t&&t.type||"png"));return(0,o.each)(i,(function(t){t.group.ignore=!1})),a}en(this.id)},e.prototype.getConnectedDataURL=function(t){if(!this._disposed){var e="svg"===t.type,n=this.group,i=Math.min,a=Math.max,s=1/0;if(un[n]){var l=s,h=s,c=-1/0,u=-1/0,d=[],p=t&&t.pixelRatio||this.getDevicePixelRatio();(0,o.each)(cn,(function(r,s){if(r.group===n){var p=e?r.getZr().painter.getSvgDom().innerHTML:r.renderToCanvas((0,o.clone)(t)),f=r.getDom().getBoundingClientRect();l=i(f.left,l),h=i(f.top,h),c=a(f.right,c),u=a(f.bottom,u),d.push({dom:p,left:f.left,top:f.top})}}));var f=(c*=p)-(l*=p),g=(u*=p)-(h*=p),m=fe.yh.createCanvas(),v=r.init(m,{renderer:e?"svg":"canvas"});if(v.resize({width:f,height:g}),e){var y="";return(0,o.each)(d,(function(t){var e=t.left-l,n=t.top-h;y+='<g transform="translate('+e+","+n+')">'+t.dom+"</g>"})),v.painter.getSvgRoot().innerHTML=y,t.connectedBackgroundColor&&v.painter.setBackgroundColor(t.connectedBackgroundColor),v.refreshImmediately(),v.painter.toDataURL()}return t.connectedBackgroundColor&&v.add(new ot.A({shape:{x:0,y:0,width:f,height:g},style:{fill:t.connectedBackgroundColor}})),(0,o.each)(d,(function(t){var e=new at.Ay({style:{x:t.left*p-l,y:t.top*p-h,image:t.dom}});v.add(e)})),v.refreshImmediately(),m.toDataURL("image/"+(t&&t.type||"png"))}return this.getDataURL(t)}en(this.id)},e.prototype.convertToPixel=function(t,e){return Ne(this,"convertToPixel",t,e)},e.prototype.convertFromPixel=function(t,e){return Ne(this,"convertFromPixel",t,e)},e.prototype.containPixel=function(t,e){if(!this._disposed){var n,i=this._model,r=h._e(i,t);return(0,o.each)(r,(function(t,i){i.indexOf("Models")>=0&&(0,o.each)(t,(function(t){var r=t.coordinateSystem;if(r&&r.containPoint)n=n||!!r.containPoint(e);else if("seriesModels"===i){var o=this._chartsMap[t.__viewId];o&&o.containPoint&&(n=n||o.containPoint(e,t))}else 0}),this)}),this),!!n}en(this.id)},e.prototype.getVisual=function(t,e){var n=this._model,i=h._e(n,t,{defaultMainType:"series"});var r=i.seriesModel.getData(),o=i.hasOwnProperty("dataIndexInside")?i.dataIndexInside:i.hasOwnProperty("dataIndex")?r.indexOfRawIndex(i.dataIndex):null;return null!=o?(0,ae.Ez)(r,o,e):(0,ae.rI)(r,e)},e.prototype.getViewOfComponentModel=function(t){return this._componentsMap[t.__viewId]},e.prototype.getViewOfSeriesModel=function(t){return this._chartsMap[t.__viewId]},e.prototype._initEvents=function(){var t=this;(0,o.each)(tn,(function(e){var n=function(n){var i,r=t.getModel(),a=n.target;if("globalout"===e?i={}:a&&(0,ue.R)(a,(function(t){var e=(0,ht.z)(t);if(e&&null!=e.dataIndex){var n=e.dataModel||r.getSeriesByIndex(e.seriesIndex);return i=n&&n.getDataParams(e.dataIndex,e.dataType,a)||{},!0}if(e.eventData)return i=(0,o.extend)({},e.eventData),!0}),!0),i){var s=i.componentType,l=i.componentIndex;"markLine"!==s&&"markPoint"!==s&&"markArea"!==s||(s="series",l=i.seriesIndex);var h=s&&null!=l&&r.getComponent(s,l),c=h&&t["series"===h.mainType?"_chartsMap":"_componentsMap"][h.__viewId];0,i.event=n,i.type=e,t._$eventProcessor.eventInfo={targetEl:a,packedEvent:i,model:h,view:c},t.trigger(e,i)}};n.zrEventfulCallAtLast=!0,t._zr.on(e,n,t)})),(0,o.each)(rn,(function(e,n){t._messageCenter.on(n,(function(t){this.trigger(n,t)}),t)})),(0,o.each)(["selectchanged"],(function(e){t._messageCenter.on(e,(function(t){this.trigger(e,t)}),t)})),(0,le.l)(this._messageCenter,this,this._api)},e.prototype.isDisposed=function(){return this._disposed},e.prototype.clear=function(){this._disposed?en(this.id):this.setOption({series:[]},!0)},e.prototype.dispose=function(){if(this._disposed)en(this.id);else{this._disposed=!0,this.getDom()&&h.Bq(this.getDom(),fn,"");var t=this,e=t._api,n=t._model;(0,o.each)(t._componentsViews,(function(t){t.dispose(n,e)})),(0,o.each)(t._chartsViews,(function(t){t.dispose(n,e)})),t._zr.dispose(),t._dom=t._model=t._chartsMap=t._componentsMap=t._chartsViews=t._componentsViews=t._scheduler=t._api=t._zr=t._throttledZrFlush=t._theme=t._coordSysMgr=t._messageCenter=null,delete cn[t.id]}},e.prototype.resize=function(t){if(!this[Te])if(this._disposed)en(this.id);else{this._zr.resize(t);var e=this._model;if(this._loadingFX&&this._loadingFX.resize(),e){var n=e.resetOption("media"),i=t&&t.silent;this[Me]&&(null==i&&(i=this[Me].silent),n=!0,this[Me]=null),this[Te]=!0;try{n&&De(this),Oe.update.call(this,{type:"resize",animation:(0,o.extend)({duration:0},t&&t.animation)})}catch(r){throw this[Te]=!1,r}this[Te]=!1,ze.call(this,i),Ge.call(this,i)}}},e.prototype.showLoading=function(t,e){if(this._disposed)en(this.id);else if((0,o.isObject)(t)&&(e=t,t=""),t=t||"default",this.hideLoading(),hn[t]){var n=hn[t](this._api,e),i=this._zr;this._loadingFX=n,i.add(n)}},e.prototype.hideLoading=function(){this._disposed?en(this.id):(this._loadingFX&&this._zr.remove(this._loadingFX),this._loadingFX=null)},e.prototype.makeActionFromEvent=function(t){var e=(0,o.extend)({},t);return e.type=rn[t.type],e},e.prototype.dispatchAction=function(t,e){if(this._disposed)en(this.id);else if((0,o.isObject)(e)||(e={silent:!!e}),nn[t.type]&&this._model)if(this[Te])this._pendingActions.push(t);else{var n=e.silent;Be.call(this,t,n);var i=e.flush;i?this._zr.flush():!1!==i&&a.A.browser.weChat&&this._throttledZrFlush(),ze.call(this,n),Ge.call(this,n)}},e.prototype.updateLabelLayout=function(){pe.trigger("series:layoutlabels",this._model,this._api,{updatedSeries:[]})},e.prototype.appendData=function(t){if(this._disposed)en(this.id);else{var e=t.seriesIndex;0,this.getModel().getSeriesByIndex(e).appendData(t),this._scheduler.unfinished=!0,this.getZr().wakeUp()}},e.internalField=function(){function t(t){t.clearColorPalette(),t.eachSeries((function(t){t.clearColorPalette()}))}function e(t){for(var e=[],n=t.currentStates,i=0;i<n.length;i++){var r=n[i];"emphasis"!==r&&"blur"!==r&&"select"!==r&&e.push(r)}t.selected&&t.states.select&&e.push("select"),t.hoverState===ct.e3&&t.states.emphasis?e.push("emphasis"):t.hoverState===ct.zX&&t.states.blur&&e.push("blur"),t.useStates(e)}function n(t,e){if(!t.preventAutoZ){var n=t.get("z")||0,i=t.get("zlevel")||0;e.eachRendered((function(t){return r(t,n,i,-1/0),!0}))}}function r(t,e,n,i){var o=t.getTextContent(),a=t.getTextGuideLine();if(t.isGroup)for(var s=t.childrenRef(),l=0;l<s.length;l++)i=Math.max(r(s[l],e,n,i),i);else t.z=e,t.zlevel=n,i=Math.max(t.z2,i);if(o&&(o.z=e,o.zlevel=n,isFinite(i)&&(o.z2=i+2)),a){var h=t.textGuideLineConfig;a.z=e,a.zlevel=n,isFinite(i)&&(a.z2=i+(h&&h.showAbove?1:-1))}return i}function l(t,e){e.eachRendered((function(t){if(!st.LR(t)){var e=t.getTextContent(),n=t.getTextGuideLine();t.stateTransition&&(t.stateTransition=null),e&&e.stateTransition&&(e.stateTransition=null),n&&n.stateTransition&&(n.stateTransition=null),t.hasState()?(t.prevStates=t.currentStates,t.clearStates()):t.prevStates&&(t.prevStates=null)}}))}function c(t,n){var i=t.getModel("stateAnimation"),r=t.isAnimationEnabled(),o=i.get("duration"),a=o>0?{duration:o,delay:i.get("delay"),easing:i.get("easing")}:null;n.eachRendered((function(t){if(t.states&&t.states.emphasis){if(st.LR(t))return;if(t instanceof lt.Ay&&(0,ct.fz)(t),t.__dirty){var n=t.prevStates;n&&t.useStates(n)}if(r){t.stateTransition=a;var i=t.getTextContent(),o=t.getTextGuideLine();i&&(i.stateTransition=a),o&&(o.stateTransition=a)}t.__dirty&&e(t)}}))}De=function(t){var e=t._scheduler;e.restorePipelines(t._model),e.prepareStageTasks(),Pe(t,!0),Pe(t,!1),e.plan()},Pe=function(t,e){for(var n=t._model,i=t._scheduler,r=e?t._componentsViews:t._chartsViews,o=e?t._componentsMap:t._chartsMap,a=t._zr,s=t._api,l=0;l<r.length;l++)r[l].__alive=!1;function h(t){var l=t.__requireNewView;t.__requireNewView=!1;var h="_ec_"+t.id+"_"+t.type,c=!l&&o[h];if(!c){var u=(0,te.CC)(t.type);0,(c=new(e?it.A.getClass(u.main,u.sub):rt.A.getClass(u.sub))).init(n,s),o[h]=c,r.push(c),a.add(c.group)}t.__viewId=c.__id=h,c.__alive=!0,c.__model=t,c.group.__ecComponentInfo={mainType:t.mainType,index:t.componentIndex},!e&&i.prepareView(c,t,n,s)}e?n.eachComponent((function(t,e){"series"!==t&&h(e)})):n.eachSeries(h);for(l=0;l<r.length;){var c=r[l];c.__alive?l++:(!e&&c.renderTask.dispose(),a.remove(c.group),c.dispose(n,s),r.splice(l,1),o[c.__id]===c&&delete o[c.__id],c.__id=c.group.__ecComponentInfo=null)}},Re=function(t,e,n,i,r){var a=t._model;if(a.setUpdatePayload(n),i){var s={};s[i+"Id"]=n[i+"Id"],s[i+"Index"]=n[i+"Index"],s[i+"Name"]=n[i+"Name"];var l={mainType:i,query:s};r&&(l.subType=r);var c,u=n.excludeSeriesId;null!=u&&(c=(0,o.createHashMap)(),(0,o.each)(h.qB(u),(function(t){var e=h.vS(t,null);null!=e&&c.set(e,!0)}))),a&&a.eachComponent(l,(function(e){if(!(c&&null!=c.get(e.id)))if((0,ct.T$)(n))if(e instanceof nt.A)n.type!==ct.h5||n.notBlur||e.get(["emphasis","disabled"])||(0,ct.lV)(e,n,t._api);else{var i=(0,ct.Tl)(e.mainType,e.componentIndex,n.name,t._api),r=i.focusSelf,a=i.dispatchers;n.type===ct.h5&&r&&!n.notBlur&&(0,ct.Du)(e.mainType,e.componentIndex,t._api),a&&(0,o.each)(a,(function(t){n.type===ct.h5?(0,ct.HY)(t):(0,ct.SD)(t)}))}else(0,ct.Lx)(n)&&e instanceof nt.A&&((0,ct.t6)(e,n,t._api),(0,ct.jA)(e),Ye(t))}),t),a&&a.eachComponent(l,(function(e){c&&null!=c.get(e.id)||d(t["series"===i?"_chartsMap":"_componentsMap"][e.__viewId])}),t)}else(0,o.each)([].concat(t._componentsViews).concat(t._chartsViews),d);function d(i){i&&i.__alive&&i[e]&&i[e](i.__model,a,t._api,n)}},Oe={prepareAndUpdate:function(t){De(this),Oe.update.call(this,t,{optionChanged:null!=t.newOption})},update:function(e,n){var i=this._model,r=this._api,o=this._zr,a=this._coordSysMgr,s=this._scheduler;if(i){i.setUpdatePayload(e),s.restoreData(i,e),s.performSeriesTasks(i),a.create(i,r),s.performDataProcessorTasks(i,e),Fe(this,i),a.update(i,r),t(i),s.performVisualTasks(i,e),He(this,i,r,e,n);var l=i.get("backgroundColor")||"transparent",h=i.get("darkMode");o.setBackgroundColor(l),null!=h&&"auto"!==h&&o.setDarkMode(h),pe.trigger("afterupdate",i,r)}},updateTransform:function(e){var n=this,i=this._model,r=this._api;if(i){i.setUpdatePayload(e);var a=[];i.eachComponent((function(t,o){if("series"!==t){var s=n.getViewOfComponentModel(o);if(s&&s.__alive)if(s.updateTransform){var l=s.updateTransform(o,i,r,e);l&&l.update&&a.push(s)}else a.push(s)}}));var s=(0,o.createHashMap)();i.eachSeries((function(t){var o=n._chartsMap[t.__viewId];if(o.updateTransform){var a=o.updateTransform(t,i,r,e);a&&a.update&&s.set(t.uid,1)}else s.set(t.uid,1)})),t(i),this._scheduler.performVisualTasks(i,e,{setDirty:!0,dirtyMap:s}),Ue(this,i,r,e,{},s),pe.trigger("afterupdate",i,r)}},updateView:function(e){var n=this._model;n&&(n.setUpdatePayload(e),rt.A.markUpdateMethod(e,"updateView"),t(n),this._scheduler.performVisualTasks(n,e,{setDirty:!0}),He(this,n,this._api,e,{}),pe.trigger("afterupdate",n,this._api))},updateVisual:function(e){var n=this,i=this._model;i&&(i.setUpdatePayload(e),i.eachSeries((function(t){t.getData().clearAllVisual()})),rt.A.markUpdateMethod(e,"updateVisual"),t(i),this._scheduler.performVisualTasks(i,e,{visualType:"visual",setDirty:!0}),i.eachComponent((function(t,r){if("series"!==t){var o=n.getViewOfComponentModel(r);o&&o.__alive&&o.updateVisual(r,i,n._api,e)}})),i.eachSeries((function(t){n._chartsMap[t.__viewId].updateVisual(t,i,n._api,e)})),pe.trigger("afterupdate",i,this._api))},updateLayout:function(t){Oe.update.call(this,t)}},Ne=function(t,e,n,i){if(t._disposed)en(t.id);else{for(var r,o=t._model,a=t._coordSysMgr.getCoordinateSystems(),s=h._e(o,n),l=0;l<a.length;l++){var c=a[l];if(c[e]&&null!=(r=c[e](o,s,i)))return r}0}},Fe=function(t,e){var n=t._chartsMap,i=t._scheduler;e.eachSeries((function(t){i.updateStreamModes(t,n[t.__viewId])}))},Be=function(t,e){var n=this,i=this.getModel(),r=t.type,a=t.escapeConnect,s=nn[r],l=s.actionInfo,c=(l.update||"update").split(":"),u=c.pop(),d=null!=c[0]&&(0,te.CC)(c[0]);this[Te]=!0;var p=[t],f=!1;t.batch&&(f=!0,p=(0,o.map)(t.batch,(function(e){return(e=(0,o.defaults)((0,o.extend)({},e),t)).batch=null,e})));var g,m=[],v=(0,ct.Lx)(t),y=(0,ct.T$)(t);if(y&&(0,ct.qR)(this._api),(0,o.each)(p,(function(e){if((g=(g=s.action(e,n._model,n._api))||(0,o.extend)({},e)).type=l.event||g.type,m.push(g),y){var i=h.HB(t),r=i.queryOptionMap,a=i.mainTypeSpecified?r.keys()[0]:"series";Re(n,u,e,a),Ye(n)}else v?(Re(n,u,e,"series"),Ye(n)):d&&Re(n,u,e,d.main,d.sub)})),"none"!==u&&!y&&!v&&!d)try{this[Me]?(De(this),Oe.update.call(this,t),this[Me]=null):Oe[u].call(this,t)}catch(b){throw this[Te]=!1,b}if(g=f?{type:l.event||r,escapeConnect:a,batch:m}:m[0],this[Te]=!1,!e){var _=this._messageCenter;if(_.trigger(g.type,g),v){var x={type:"selectchanged",escapeConnect:a,selected:(0,ct.mc)(i),isFromClick:t.isFromClick||!1,fromAction:t.type,fromActionPayload:t};_.trigger(x.type,x)}}},ze=function(t){for(var e=this._pendingActions;e.length;){var n=e.shift();Be.call(this,n,t)}},Ge=function(t){!t&&this.trigger("updated")},Ve=function(t,e){t.on("rendered",(function(n){e.trigger("rendered",n),!t.animation.isFinished()||e[Me]||e._scheduler.unfinished||e._pendingActions.length||e.trigger("finished")}))},je=function(t,e){t.on("mouseover",(function(t){var n=t.target,i=(0,ue.R)(n,ct.u6);i&&((0,ct._m)(i,t,e._api),Ye(e))})).on("mouseout",(function(t){var n=t.target,i=(0,ue.R)(n,ct.u6);i&&((0,ct.Iz)(i,t,e._api),Ye(e))})).on("click",(function(t){var n=t.target,i=(0,ue.R)(n,(function(t){return null!=(0,ht.z)(t).dataIndex}),!0);if(i){var r=i.selected?"unselect":"select",o=(0,ht.z)(i);e._api.dispatchAction({type:r,dataType:o.dataType,dataIndexInside:o.dataIndex,seriesIndex:o.seriesIndex,isFromClick:!0})}}))},He=function(t,e,n,i,r){!function(t){var e=[],n=[],i=!1;if(t.eachComponent((function(t,r){var o=r.get("zlevel")||0,a=r.get("z")||0,s=r.getZLevelKey();i=i||!!s,("series"===t?n:e).push({zlevel:o,z:a,idx:r.componentIndex,type:t,key:s})})),i){var r,a,l=e.concat(n);(0,s.A)(l,(function(t,e){return t.zlevel===e.zlevel?t.z-e.z:t.zlevel-e.zlevel})),(0,o.each)(l,(function(e){var n=t.getComponent(e.type,e.idx),i=e.zlevel,o=e.key;null!=r&&(i=Math.max(r,i)),o?(i===r&&o!==a&&i++,a=o):a&&(i===r&&i++,a=""),r=i,n.setZLevel(i)}))}}(e),We(t,e,n,i,r),(0,o.each)(t._chartsViews,(function(t){t.__alive=!1})),Ue(t,e,n,i,r),(0,o.each)(t._chartsViews,(function(t){t.__alive||t.remove(e,n)}))},We=function(t,e,i,r,a,s){(0,o.each)(s||t._componentsViews,(function(t){var o=t.__model;l(o,t),t.render(o,e,i,r),n(o,t),c(o,t)}))},Ue=function(t,e,i,r,s,h){var u=t._scheduler;s=(0,o.extend)(s||{},{updatedSeries:e.getSeries()}),pe.trigger("series:beforeupdate",e,i,s);var d=!1;e.eachSeries((function(e){var n=t._chartsMap[e.__viewId];n.__alive=!0;var i=n.renderTask;u.updatePayload(i,r),l(e,n),h&&h.get(e.uid)&&i.dirty(),i.perform(u.getPerformArgs(i))&&(d=!0),n.group.silent=!!e.get("silent"),function(t,e){var n=t.get("blendMode")||null;e.eachRendered((function(t){t.isGroup||(t.style.blend=n)}))}(e,n),(0,ct.jA)(e)})),u.unfinished=d||u.unfinished,pe.trigger("series:layoutlabels",e,i,s),pe.trigger("series:transition",e,i,s),e.eachSeries((function(e){var i=t._chartsMap[e.__viewId];n(e,i),c(e,i)})),function(t,e){var n=t._zr,i=n.storage,r=0;i.traverse((function(t){t.isGroup||r++})),r>e.get("hoverLayerThreshold")&&!a.A.node&&!a.A.worker&&e.eachSeries((function(e){if(!e.preventUsingHoverLayer){var n=t._chartsMap[e.__viewId];n.__alive&&n.eachRendered((function(t){t.states.emphasis&&(t.states.emphasis.hoverLayer=!0)}))}}))}(t,e),pe.trigger("series:afterupdate",e,i,s)},Ye=function(t){t[Ae]=!0,t.getZr().wakeUp()},Ze=function(t){t[Ae]&&(t.getZr().storage.traverse((function(t){st.LR(t)||e(t)})),t[Ae]=!1)},qe=function(t){return new(function(e){function n(){return null!==e&&e.apply(this,arguments)||this}return(0,i.C6)(n,e),n.prototype.getCoordinateSystems=function(){return t._coordSysMgr.getCoordinateSystems()},n.prototype.getComponentByElement=function(e){for(;e;){var n=e.__ecComponentInfo;if(null!=n)return t._model.getComponent(n.mainType,n.index);e=e.parent}},n.prototype.enterEmphasis=function(e,n){(0,ct.HY)(e,n),Ye(t)},n.prototype.leaveEmphasis=function(e,n){(0,ct.SD)(e,n),Ye(t)},n.prototype.enterBlur=function(e){(0,ct.QX)(e),Ye(t)},n.prototype.leaveBlur=function(e){(0,ct.JC)(e),Ye(t)},n.prototype.enterSelect=function(e){(0,ct.JI)(e),Ye(t)},n.prototype.leaveSelect=function(e){(0,ct.gd)(e),Ye(t)},n.prototype.getModel=function(){return t.getModel()},n.prototype.getViewOfComponentModel=function(e){return t.getViewOfComponentModel(e)},n.prototype.getViewOfSeriesModel=function(e){return t.getViewOfSeriesModel(e)},n}(I))(t)},Xe=function(t){function e(t,e){for(var n=0;n<t.length;n++){t[n][Ie]=e}}(0,o.each)(rn,(function(n,i){t._messageCenter.on(i,(function(n){if(un[t.group]&&0!==t[Ie]){if(n&&n.escapeConnect)return;var i=t.makeActionFromEvent(n),r=[];(0,o.each)(cn,(function(e){e!==t&&e.group===t.group&&r.push(e)})),e(r,0),(0,o.each)(r,(function(t){1!==t[Ie]&&t.dispatchAction(i)})),e(r,2)}}))}))}}(),e}(l.A),Qe=Je.prototype;Qe.on=Ee("on"),Qe.off=Ee("off"),Qe.one=function(t,e,n){var i=this;(0,se.aT)("ECharts#one is deprecated."),this.on.call(this,t,(function n(){for(var r=[],o=0;o<arguments.length;o++)r[o]=arguments[o];e&&e.apply&&e.apply(this,r),i.off(t,n)}),n)};var tn=["click","dblclick","mouseover","mouseout","mousemove","mousedown","mouseup","globalout","contextmenu"];function en(t){0}var nn={},rn={},on=[],an=[],sn=[],ln={},hn={},cn={},un={},dn=+new Date-0,pn=+new Date-0,fn="_echarts_instance_";function gn(t,e,n){var i=!(n&&n.ssr);if(i){0;var r=xn(t);if(r)return r;0}var o=new Je(t,e,n);return o.id="ec_"+dn++,cn[o.id]=o,i&&h.Bq(t,fn,o.id),Xe(o),pe.trigger("afterinit",o),o}function mn(t){if((0,o.isArray)(t)){var e=t;t=null,(0,o.each)(e,(function(e){null!=e.group&&(t=e.group)})),t=t||"g_"+pn++,(0,o.each)(e,(function(e){e.group=t}))}return un[t]=!0,t}function vn(t){un[t]=!1}var yn=vn;function _n(t){(0,o.isString)(t)?t=cn[t]:t instanceof Je||(t=xn(t)),t instanceof Je&&!t.isDisposed()&&t.dispose()}function xn(t){return cn[h.D$(t,fn)]}function bn(t){return cn[t]}function wn(t,e){ln[t]=e}function Sn(t){(0,o.indexOf)(an,t)<0&&an.push(t)}function Tn(t,e){Rn(on,t,e,ye)}function Mn(t){Cn("afterinit",t)}function An(t){Cn("afterupdate",t)}function Cn(t,e){pe.on(t,e)}function In(t,e,n){(0,o.isFunction)(e)&&(n=e,e="");var i=(0,o.isObject)(t)?t.type:[t,t={event:e}][0];t.event=(t.event||i).toLowerCase(),e=t.event,rn[e]||((0,o.assert)(Ce.test(i)&&Ce.test(e)),nn[i]||(nn[i]={action:n,actionInfo:t}),rn[e]=i)}function En(t,e){E.A.register(t,e)}function kn(t){var e=E.A.get(t);if(e)return e.getDimensionsInfo?e.getDimensionsInfo():e.dimensions.slice()}function Ln(t,e){Rn(sn,t,e,_e,"layout")}function Dn(t,e){Rn(sn,t,e,be,"visual")}var Pn=[];function Rn(t,e,n,i,r){if(((0,o.isFunction)(e)||(0,o.isObject)(e))&&(n=e,e=i),!((0,o.indexOf)(Pn,n)>=0)){Pn.push(n);var a=Ut.wrapStageHandler(n,r);a.__prio=e,a.__raw=n,t.push(a)}}function On(t,e){hn[t]=e}function Nn(t){(0,fe.Gs)({createCanvas:t})}function Fn(t,e,n){var i=(0,ge.v)("registerMap");i&&i(t,e,n)}function Bn(t){var e=(0,ge.v)("getMap");return e&&e(t)}var zn=he.v5;Dn(xe,xt),Dn(we,wt),Dn(we,St),Dn(xe,re),Dn(we,oe),Dn(7e3,(function(t,e){t.eachRawSeries((function(n){if(!t.isSeriesFiltered(n)){var i=n.getData();i.hasItemVisual()&&i.each((function(t){var n=i.getItemVisual(t,"decal");n&&(i.ensureUniqueItemVisual(t,"style").decal=(0,de.w)(n,e))}));var r=i.getVisual("decal");if(r)i.getVisual("style").decal=(0,de.w)(r,e)}}))})),Sn(Q),Tn(900,(function(t){var e=(0,o.createHashMap)();t.eachSeries((function(t){var n=t.get("stack");if(n){var i=e.get(n)||e.set(n,[]),r=t.getData(),o={stackResultDimension:r.getCalculationInfo("stackResultDimension"),stackedOverDimension:r.getCalculationInfo("stackedOverDimension"),stackedDimension:r.getCalculationInfo("stackedDimension"),stackedByDimension:r.getCalculationInfo("stackedByDimension"),isStackedByIndex:r.getCalculationInfo("isStackedByIndex"),data:r,seriesModel:t};if(!o.stackedDimension||!o.isStackedByIndex&&!o.stackedByDimension)return;i.length&&r.setCalculationInfo("stackedOnSeries",i[i.length-1].seriesModel),i.push(o)}})),e.each(et)})),On("default",(function(t,e){e=e||{},o.defaults(e,{text:"loading",textColor:"#000",fontSize:12,fontWeight:"normal",fontStyle:"normal",fontFamily:"sans-serif",maskColor:"rgba(255, 255, 255, 0.8)",showSpinner:!0,color:"#5470c6",spinnerRadius:10,lineWidth:5,zlevel:0});var n=new Tt.A,i=new ot.A({style:{fill:e.maskColor},zlevel:e.zlevel,z:1e4});n.add(i);var r,a=new Mt.Ay({style:{text:e.text,fill:e.textColor,fontSize:e.fontSize,fontWeight:e.fontWeight,fontStyle:e.fontStyle,fontFamily:e.fontFamily},zlevel:e.zlevel,z:10001}),s=new ot.A({style:{fill:"none"},textContent:a,textConfig:{position:"right",distance:10},zlevel:e.zlevel,z:10001});return n.add(s),e.showSpinner&&((r=new At.A({shape:{startAngle:-Ct/2,endAngle:-Ct/2+.1,r:e.spinnerRadius},style:{stroke:e.color,lineCap:"round",lineWidth:e.lineWidth},zlevel:e.zlevel,z:10001})).animateShape(!0).when(1e3,{endAngle:3*Ct/2}).start("circularInOut"),r.animateShape(!0).when(1e3,{startAngle:3*Ct/2}).delay(300).start("circularInOut"),n.add(r)),n.resize=function(){var n=a.getBoundingRect().width,o=e.showSpinner?e.spinnerRadius:0,l=(t.getWidth()-2*o-(e.showSpinner&&n?10:0)-n)/2-(e.showSpinner&&n?0:5+n/2)+(e.showSpinner?0:n/2)+(n?0:o),h=t.getHeight()/2;e.showSpinner&&r.setShape({cx:l,cy:h}),s.setShape({x:l-o,y:h-o,width:2*o,height:2*o}),i.setShape({x:0,y:0,width:t.getWidth(),height:t.getHeight()})},n.resize(),n})),In({type:ct.h5,event:ct.h5,update:ct.h5},o.noop),In({type:ct.PW,event:ct.PW,update:ct.PW},o.noop),In({type:ct.Lv,event:ct.Lv,update:ct.Lv},o.noop),In({type:ct.U2,event:ct.U2,update:ct.U2},o.noop),In({type:ct.Q6,event:ct.Q6,update:ct.Q6},o.noop),wn("light",Xt),wn("dark",Qt);var Gn={}},5689:(t,e,n)=>{"use strict";n.d(e,{m:()=>r,v:()=>o});var i={};function r(t,e){i[t]=e}function o(t){return i[t]}},6650:(t,e,n)=>{"use strict";n.d(e,{Lv:()=>u,A$:()=>p,pr:()=>g,A4:()=>f,E:()=>d});var i=n(6217),r=n(4810);var o=n(7845),a="ZH",s="EN",l=s,h={},c={},u=r.A.domSupported&&(document.documentElement.lang||navigator.language||navigator.browserLanguage||l).toUpperCase().indexOf(a)>-1?a:l;function d(t,e){t=t.toUpperCase(),c[t]=new i.A(e),h[t]=e}function p(t){if((0,o.isString)(t)){var e=h[t.toUpperCase()]||{};return t===a||t===s?(0,o.clone)(e):(0,o.merge)((0,o.clone)(e),(0,o.clone)(h[l]),!1)}return(0,o.merge)((0,o.clone)(t),(0,o.clone)(h[l]),!1)}function f(t){return c[t]}function g(){return c[l]}d(s,{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:". "}}}}),d(a,{time:{month:["\u4e00\u6708","\u4e8c\u6708","\u4e09\u6708","\u56db\u6708","\u4e94\u6708","\u516d\u6708","\u4e03\u6708","\u516b\u6708","\u4e5d\u6708","\u5341\u6708","\u5341\u4e00\u6708","\u5341\u4e8c\u6708"],monthAbbr:["1\u6708","2\u6708","3\u6708","4\u6708","5\u6708","6\u6708","7\u6708","8\u6708","9\u6708","10\u6708","11\u6708","12\u6708"],dayOfWeek:["\u661f\u671f\u65e5","\u661f\u671f\u4e00","\u661f\u671f\u4e8c","\u661f\u671f\u4e09","\u661f\u671f\u56db","\u661f\u671f\u4e94","\u661f\u671f\u516d"],dayOfWeekAbbr:["\u65e5","\u4e00","\u4e8c","\u4e09","\u56db","\u4e94","\u516d"]},legend:{selector:{all:"\u5168\u9009",inverse:"\u53cd\u9009"}},toolbox:{brush:{title:{rect:"\u77e9\u5f62\u9009\u62e9",polygon:"\u5708\u9009",lineX:"\u6a2a\u5411\u9009\u62e9",lineY:"\u7eb5\u5411\u9009\u62e9",keep:"\u4fdd\u6301\u9009\u62e9",clear:"\u6e05\u9664\u9009\u62e9"}},dataView:{title:"\u6570\u636e\u89c6\u56fe",lang:["\u6570\u636e\u89c6\u56fe","\u5173\u95ed","\u5237\u65b0"]},dataZoom:{title:{zoom:"\u533a\u57df\u7f29\u653e",back:"\u533a\u57df\u7f29\u653e\u8fd8\u539f"}},magicType:{title:{line:"\u5207\u6362\u4e3a\u6298\u7ebf\u56fe",bar:"\u5207\u6362\u4e3a\u67f1\u72b6\u56fe",stack:"\u5207\u6362\u4e3a\u5806\u53e0",tiled:"\u5207\u6362\u4e3a\u5e73\u94fa"}},restore:{title:"\u8fd8\u539f"},saveAsImage:{title:"\u4fdd\u5b58\u4e3a\u56fe\u7247",lang:["\u53f3\u952e\u53e6\u5b58\u4e3a\u56fe\u7247"]}},series:{typeNames:{pie:"\u997c\u56fe",bar:"\u67f1\u72b6\u56fe",line:"\u6298\u7ebf\u56fe",scatter:"\u6563\u70b9\u56fe",effectScatter:"\u6d9f\u6f2a\u6563\u70b9\u56fe",radar:"\u96f7\u8fbe\u56fe",tree:"\u6811\u56fe",treemap:"\u77e9\u5f62\u6811\u56fe",boxplot:"\u7bb1\u578b\u56fe",candlestick:"K\u7ebf\u56fe",k:"K\u7ebf\u56fe",heatmap:"\u70ed\u529b\u56fe",map:"\u5730\u56fe",parallel:"\u5e73\u884c\u5750\u6807\u56fe",lines:"\u7ebf\u56fe",graph:"\u5173\u7cfb\u56fe",sankey:"\u6851\u57fa\u56fe",funnel:"\u6f0f\u6597\u56fe",gauge:"\u4eea\u8868\u76d8\u56fe",pictorialBar:"\u8c61\u5f62\u67f1\u56fe",themeRiver:"\u4e3b\u9898\u6cb3\u6d41\u56fe",sunburst:"\u65ed\u65e5\u56fe",custom:"\u81ea\u5b9a\u4e49\u56fe\u8868",chart:"\u56fe\u8868"}},aria:{general:{withTitle:"\u8fd9\u662f\u4e00\u4e2a\u5173\u4e8e\u201c{title}\u201d\u7684\u56fe\u8868\u3002",withoutTitle:"\u8fd9\u662f\u4e00\u4e2a\u56fe\u8868\uff0c"},series:{single:{prefix:"",withName:"\u56fe\u8868\u7c7b\u578b\u662f{seriesType}\uff0c\u8868\u793a{seriesName}\u3002",withoutName:"\u56fe\u8868\u7c7b\u578b\u662f{seriesType}\u3002"},multiple:{prefix:"\u5b83\u7531{seriesCount}\u4e2a\u56fe\u8868\u7cfb\u5217\u7ec4\u6210\u3002",withName:"\u7b2c{seriesId}\u4e2a\u7cfb\u5217\u662f\u4e00\u4e2a\u8868\u793a{seriesName}\u7684{seriesType}\uff0c",withoutName:"\u7b2c{seriesId}\u4e2a\u7cfb\u5217\u662f\u4e00\u4e2a{seriesType}\uff0c",separator:{middle:"\uff1b",end:"\u3002"}}},data:{allData:"\u5176\u6570\u636e\u662f\u2014\u2014",partialData:"\u5176\u4e2d\uff0c\u524d{displayCnt}\u9879\u662f\u2014\u2014",withName:"{name}\u7684\u6570\u636e\u662f{value}",withoutName:"{value}",separator:{middle:"\uff0c",end:""}}}})},1566:(t,e,n)=>{"use strict";n.d(e,{U:()=>r});var i=n(7845);function r(t){return new o(t)}var o=function(){function t(t){t=t||{},this._reset=t.reset,this._plan=t.plan,this._count=t.count,this._onDirty=t.onDirty,this._dirty=!0}return t.prototype.perform=function(t){var e,n=this._upstream,r=t&&t.skip;if(this._dirty&&n){var o=this.context;o.data=o.outputData=n.context.outputData}this.__pipeline&&(this.__pipeline.currentTask=this),this._plan&&!r&&(e=this._plan(this.context));var a,s=u(this._modBy),l=this._modDataCount||0,h=u(t&&t.modBy),c=t&&t.modDataCount||0;function u(t){return!(t>=1)&&(t=1),t}s===h&&l===c||(e="reset"),(this._dirty||"reset"===e)&&(this._dirty=!1,a=this._doReset(r)),this._modBy=h,this._modDataCount=c;var d=t&&t.step;if(this._dueEnd=n?n._outputDueEnd:this._count?this._count(this.context):1/0,this._progress){var p=this._dueIndex,f=Math.min(null!=d?this._dueIndex+d:1/0,this._dueEnd);if(!r&&(a||p<f)){var g=this._progress;if((0,i.isArray)(g))for(var m=0;m<g.length;m++)this._doProgress(g[m],p,f,h,c);else this._doProgress(g,p,f,h,c)}this._dueIndex=f;var v=null!=this._settedOutputEnd?this._settedOutputEnd:f;0,this._outputDueEnd=v}else this._dueIndex=this._outputDueEnd=null!=this._settedOutputEnd?this._settedOutputEnd:this._dueEnd;return this.unfinished()},t.prototype.dirty=function(){this._dirty=!0,this._onDirty&&this._onDirty(this.context)},t.prototype._doProgress=function(t,e,n,i,r){a.reset(e,n,i,r),this._callingProgress=t,this._callingProgress({start:e,end:n,count:n-e,next:a.next},this.context)},t.prototype._doReset=function(t){var e,n;this._dueIndex=this._outputDueEnd=this._dueEnd=0,this._settedOutputEnd=null,!t&&this._reset&&((e=this._reset(this.context))&&e.progress&&(n=e.forceFirstProgress,e=e.progress),(0,i.isArray)(e)&&!e.length&&(e=null)),this._progress=e,this._modBy=this._modDataCount=null;var r=this._downstream;return r&&r.dirty(),n},t.prototype.unfinished=function(){return this._progress&&this._dueIndex<this._dueEnd},t.prototype.pipe=function(t){(this._downstream!==t||this._dirty)&&(this._downstream=t,t._upstream=this,t.dirty())},t.prototype.dispose=function(){this._disposed||(this._upstream&&(this._upstream._downstream=null),this._downstream&&(this._downstream._upstream=null),this._dirty=!1,this._disposed=!0)},t.prototype.getUpstream=function(){return this._upstream},t.prototype.getDownstream=function(){return this._downstream},t.prototype.setOutputEnd=function(t){this._outputDueEnd=this._settedOutputEnd=t},t}(),a=function(){var t,e,n,i,r,o={reset:function(l,h,c,u){e=l,t=h,n=c,i=u,r=Math.ceil(i/n),o.next=n>1&&i>0?s:a}};return o;function a(){return e<t?e++:null}function s(){var o=e%r*n+Math.ceil(e/r),a=e>=t?null:o<i?o:e;return e++,a}}()},2110:(t,e,n)=>{"use strict";function i(t){return null==t?0:t.length||1}function r(t){return t}n.d(e,{A:()=>o});const o=function(){function t(t,e,n,i,o,a){this._old=t,this._new=e,this._oldKeyGetter=n||r,this._newKeyGetter=i||r,this.context=o,this._diffModeMultiple="multiple"===a}return t.prototype.add=function(t){return this._add=t,this},t.prototype.update=function(t){return this._update=t,this},t.prototype.updateManyToOne=function(t){return this._updateManyToOne=t,this},t.prototype.updateOneToMany=function(t){return this._updateOneToMany=t,this},t.prototype.updateManyToMany=function(t){return this._updateManyToMany=t,this},t.prototype.remove=function(t){return this._remove=t,this},t.prototype.execute=function(){this[this._diffModeMultiple?"_executeMultiple":"_executeOneToOne"]()},t.prototype._executeOneToOne=function(){var t=this._old,e=this._new,n={},r=new Array(t.length),o=new Array(e.length);this._initIndexMap(t,null,r,"_oldKeyGetter"),this._initIndexMap(e,n,o,"_newKeyGetter");for(var a=0;a<t.length;a++){var s=r[a],l=n[s],h=i(l);if(h>1){var c=l.shift();1===l.length&&(n[s]=l[0]),this._update&&this._update(c,a)}else 1===h?(n[s]=null,this._update&&this._update(l,a)):this._remove&&this._remove(a)}this._performRestAdd(o,n)},t.prototype._executeMultiple=function(){var t=this._old,e=this._new,n={},r={},o=[],a=[];this._initIndexMap(t,n,o,"_oldKeyGetter"),this._initIndexMap(e,r,a,"_newKeyGetter");for(var s=0;s<o.length;s++){var l=o[s],h=n[l],c=r[l],u=i(h),d=i(c);if(u>1&&1===d)this._updateManyToOne&&this._updateManyToOne(c,h),r[l]=null;else if(1===u&&d>1)this._updateOneToMany&&this._updateOneToMany(c,h),r[l]=null;else if(1===u&&1===d)this._update&&this._update(c,h),r[l]=null;else if(u>1&&d>1)this._updateManyToMany&&this._updateManyToMany(c,h),r[l]=null;else if(u>1)for(var p=0;p<u;p++)this._remove&&this._remove(h[p]);else this._remove&&this._remove(h)}this._performRestAdd(a,r)},t.prototype._performRestAdd=function(t,e){for(var n=0;n<t.length;n++){var r=t[n],o=e[r],a=i(o);if(a>1)for(var s=0;s<a;s++)this._add&&this._add(o[s]);else 1===a&&this._add&&this._add(o);e[r]=null}},t.prototype._initIndexMap=function(t,e,n,r){for(var o=this._diffModeMultiple,a=0;a<t.length;a++){var s="_ec_"+this[r](t[a],a);if(o||(n[a]=s),e){var l=e[s],h=i(l);0===h?(e[s]=a,o&&n.push(s)):1===h?e[s]=[l,a]:l.push(a)}}},t}()},8473:(t,e,n)=>{"use strict";n.d(e,{A_:()=>c,Ay:()=>g});var i,r=n(7845),o=n(4224),a=n(863),s="undefined",l=typeof Uint32Array===s?Array:Uint32Array,h=typeof Uint16Array===s?Array:Uint16Array,c=typeof Int32Array===s?Array:Int32Array,u=typeof Float64Array===s?Array:Float64Array,d={float:u,int:c,ordinal:Array,number:Array,time:u};function p(t){return t>65535?l:h}function f(t,e,n,i,r){var o=d[n||"float"];if(r){var a=t[e],s=a&&a.length;if(s!==i){for(var l=new o(i),h=0;h<s;h++)l[h]=a[h];t[e]=l}}else t[e]=new o(i)}const g=function(){function t(){this._chunks=[],this._rawExtent=[],this._extent=[],this._count=0,this._rawCount=0,this._calcDimNameToIdx=(0,r.createHashMap)()}return t.prototype.initData=function(t,e,n){this._provider=t,this._chunks=[],this._indices=null,this.getRawIndex=this._getRawIdxIdentity;var o=t.getSource(),s=this.defaultDimValueGetter=i[o.sourceFormat];this._dimValueGetter=n||s,this._rawExtent=[];(0,a.O0)(o);this._dimensions=(0,r.map)(e,(function(t){return{type:t.type,property:t.property}})),this._initDataFromProvider(0,t.count())},t.prototype.getProvider=function(){return this._provider},t.prototype.getSource=function(){return this._provider.getSource()},t.prototype.ensureCalculationDimension=function(t,e){var n=this._calcDimNameToIdx,i=this._dimensions,r=n.get(t);if(null!=r){if(i[r].type===e)return r}else r=i.length;return i[r]={type:e},n.set(t,r),this._chunks[r]=new d[e||"float"](this._rawCount),this._rawExtent[r]=[1/0,-1/0],r},t.prototype.collectOrdinalMeta=function(t,e){var n=this._chunks[t],i=this._dimensions[t],r=this._rawExtent,o=i.ordinalOffset||0,a=n.length;0===o&&(r[t]=[1/0,-1/0]);for(var s=r[t],l=o;l<a;l++){var h=n[l]=e.parseAndCollect(n[l]);isNaN(h)||(s[0]=Math.min(h,s[0]),s[1]=Math.max(h,s[1]))}i.ordinalMeta=e,i.ordinalOffset=a,i.type="ordinal"},t.prototype.getOrdinalMeta=function(t){return this._dimensions[t].ordinalMeta},t.prototype.getDimensionProperty=function(t){var e=this._dimensions[t];return e&&e.property},t.prototype.appendData=function(t){var e=this._provider,n=this.count();e.appendData(t);var i=e.count();return e.persistent||(i+=n),n<i&&this._initDataFromProvider(n,i,!0),[n,i]},t.prototype.appendValues=function(t,e){for(var n=this._chunks,r=this._dimensions,o=r.length,a=this._rawExtent,s=this.count(),l=s+Math.max(t.length,e||0),h=0;h<o;h++){f(n,h,(g=r[h]).type,l,!0)}for(var c=[],u=s;u<l;u++)for(var d=u-s,p=0;p<o;p++){var g=r[p],m=i.arrayRows.call(this,t[d]||c,g.property,d,p);n[p][u]=m;var v=a[p];m<v[0]&&(v[0]=m),m>v[1]&&(v[1]=m)}return this._rawCount=this._count=l,{start:s,end:l}},t.prototype._initDataFromProvider=function(t,e,n){for(var i=this._provider,o=this._chunks,a=this._dimensions,s=a.length,l=this._rawExtent,h=(0,r.map)(a,(function(t){return t.property})),c=0;c<s;c++){var u=a[c];l[c]||(l[c]=[1/0,-1/0]),f(o,c,u.type,e,n)}if(i.fillStorage)i.fillStorage(t,e,o,l);else for(var d=[],p=t;p<e;p++){d=i.getItem(p,d);for(var g=0;g<s;g++){var m=o[g],v=this._dimValueGetter(d,h[g],p,g);m[p]=v;var y=l[g];v<y[0]&&(y[0]=v),v>y[1]&&(y[1]=v)}}!i.persistent&&i.clean&&i.clean(),this._rawCount=this._count=e,this._extent=[]},t.prototype.count=function(){return this._count},t.prototype.get=function(t,e){if(!(e>=0&&e<this._count))return NaN;var n=this._chunks[t];return n?n[this.getRawIndex(e)]:NaN},t.prototype.getValues=function(t,e){var n=[],i=[];if(null==e){e=t,t=[];for(var r=0;r<this._dimensions.length;r++)i.push(r)}else i=t;r=0;for(var o=i.length;r<o;r++)n.push(this.get(i[r],e));return n},t.prototype.getByRawIndex=function(t,e){if(!(e>=0&&e<this._rawCount))return NaN;var n=this._chunks[t];return n?n[e]:NaN},t.prototype.getSum=function(t){var e=0;if(this._chunks[t])for(var n=0,i=this.count();n<i;n++){var r=this.get(t,n);isNaN(r)||(e+=r)}return e},t.prototype.getMedian=function(t){var e=[];this.each([t],(function(t){isNaN(t)||e.push(t)}));var n=e.sort((function(t,e){return t-e})),i=this.count();return 0===i?0:i%2==1?n[(i-1)/2]:(n[i/2]+n[i/2-1])/2},t.prototype.indexOfRawIndex=function(t){if(t>=this._rawCount||t<0)return-1;if(!this._indices)return t;var e=this._indices,n=e[t];if(null!=n&&n<this._count&&n===t)return t;for(var i=0,r=this._count-1;i<=r;){var o=(i+r)/2|0;if(e[o]<t)i=o+1;else{if(!(e[o]>t))return o;r=o-1}}return-1},t.prototype.indicesOfNearest=function(t,e,n){var i=this._chunks[t],r=[];if(!i)return r;null==n&&(n=1/0);for(var o=1/0,a=-1,s=0,l=0,h=this.count();l<h;l++){var c=e-i[this.getRawIndex(l)],u=Math.abs(c);u<=n&&((u<o||u===o&&c>=0&&a<0)&&(o=u,a=c,s=0),c===a&&(r[s++]=l))}return r.length=s,r},t.prototype.getIndices=function(){var t,e=this._indices;if(e){var n=e.constructor,i=this._count;if(n===Array){t=new n(i);for(var r=0;r<i;r++)t[r]=e[r]}else t=new n(e.buffer,0,i)}else{t=new(n=p(this._rawCount))(this.count());for(r=0;r<t.length;r++)t[r]=r}return t},t.prototype.filter=function(t,e){if(!this._count)return this;for(var n=this.clone(),i=n.count(),r=new(p(n._rawCount))(i),o=[],a=t.length,s=0,l=t[0],h=n._chunks,c=0;c<i;c++){var u=void 0,d=n.getRawIndex(c);if(0===a)u=e(c);else if(1===a){u=e(h[l][d],c)}else{for(var f=0;f<a;f++)o[f]=h[t[f]][d];o[f]=c,u=e.apply(null,o)}u&&(r[s++]=d)}return s<i&&(n._indices=r),n._count=s,n._extent=[],n._updateGetRawIdx(),n},t.prototype.selectRange=function(t){var e=this.clone(),n=e._count;if(!n)return this;var i=(0,r.keys)(t),o=i.length;if(!o)return this;var a=e.count(),s=new(p(e._rawCount))(a),l=0,h=i[0],c=t[h][0],u=t[h][1],d=e._chunks,f=!1;if(!e._indices){var g=0;if(1===o){for(var m=d[i[0]],v=0;v<n;v++){((b=m[v])>=c&&b<=u||isNaN(b))&&(s[l++]=g),g++}f=!0}else if(2===o){m=d[i[0]];var y=d[i[1]],_=t[i[1]][0],x=t[i[1]][1];for(v=0;v<n;v++){var b=m[v],w=y[v];(b>=c&&b<=u||isNaN(b))&&(w>=_&&w<=x||isNaN(w))&&(s[l++]=g),g++}f=!0}}if(!f)if(1===o)for(v=0;v<a;v++){var S=e.getRawIndex(v);((b=d[i[0]][S])>=c&&b<=u||isNaN(b))&&(s[l++]=S)}else for(v=0;v<a;v++){for(var T=!0,M=(S=e.getRawIndex(v),0);M<o;M++){var A=i[M];((b=d[A][S])<t[A][0]||b>t[A][1])&&(T=!1)}T&&(s[l++]=e.getRawIndex(v))}return l<a&&(e._indices=s),e._count=l,e._extent=[],e._updateGetRawIdx(),e},t.prototype.map=function(t,e){var n=this.clone(t);return this._updateDims(n,t,e),n},t.prototype.modify=function(t,e){this._updateDims(this,t,e)},t.prototype._updateDims=function(t,e,n){for(var i=t._chunks,r=[],o=e.length,a=t.count(),s=[],l=t._rawExtent,h=0;h<e.length;h++)l[e[h]]=[1/0,-1/0];for(var c=0;c<a;c++){for(var u=t.getRawIndex(c),d=0;d<o;d++)s[d]=i[e[d]][u];s[o]=c;var p=n&&n.apply(null,s);if(null!=p){"object"!=typeof p&&(r[0]=p,p=r);for(h=0;h<p.length;h++){var f=e[h],g=p[h],m=l[f],v=i[f];v&&(v[u]=g),g<m[0]&&(m[0]=g),g>m[1]&&(m[1]=g)}}}},t.prototype.lttbDownSample=function(t,e){var n,i,r,o=this.clone([t],!0),a=o._chunks[t],s=this.count(),l=0,h=Math.floor(1/e),c=this.getRawIndex(0),u=new(p(this._rawCount))(Math.min(2*(Math.ceil(s/h)+2),s));u[l++]=c;for(var d=1;d<s-1;d+=h){for(var f=Math.min(d+h,s-1),g=Math.min(d+2*h,s),m=(g+f)/2,v=0,y=f;y<g;y++){var _=a[A=this.getRawIndex(y)];isNaN(_)||(v+=_)}v/=g-f;var x=d,b=Math.min(d+h,s),w=d-1,S=a[c];n=-1,r=x;var T=-1,M=0;for(y=x;y<b;y++){var A;_=a[A=this.getRawIndex(y)];isNaN(_)?(M++,T<0&&(T=A)):(i=Math.abs((w-m)*(_-S)-(w-y)*(v-S)))>n&&(n=i,r=A)}M>0&&M<b-x&&(u[l++]=Math.min(T,r),r=Math.max(T,r)),u[l++]=r,c=r}return u[l++]=this.getRawIndex(s-1),o._count=l,o._indices=u,o.getRawIndex=this._getRawIdx,o},t.prototype.downSample=function(t,e,n,i){for(var r=this.clone([t],!0),o=r._chunks,a=[],s=Math.floor(1/e),l=o[t],h=this.count(),c=r._rawExtent[t]=[1/0,-1/0],u=new(p(this._rawCount))(Math.ceil(h/s)),d=0,f=0;f<h;f+=s){s>h-f&&(s=h-f,a.length=s);for(var g=0;g<s;g++){var m=this.getRawIndex(f+g);a[g]=l[m]}var v=n(a),y=this.getRawIndex(Math.min(f+i(a,v)||0,h-1));l[y]=v,v<c[0]&&(c[0]=v),v>c[1]&&(c[1]=v),u[d++]=y}return r._count=d,r._indices=u,r._updateGetRawIdx(),r},t.prototype.each=function(t,e){if(this._count)for(var n=t.length,i=this._chunks,r=0,o=this.count();r<o;r++){var a=this.getRawIndex(r);switch(n){case 0:e(r);break;case 1:e(i[t[0]][a],r);break;case 2:e(i[t[0]][a],i[t[1]][a],r);break;default:for(var s=0,l=[];s<n;s++)l[s]=i[t[s]][a];l[s]=r,e.apply(null,l)}}},t.prototype.getDataExtent=function(t){var e=this._chunks[t],n=[1/0,-1/0];if(!e)return n;var i,r=this.count();if(!this._indices)return this._rawExtent[t].slice();if(i=this._extent[t])return i.slice();for(var o=(i=n)[0],a=i[1],s=0;s<r;s++){var l=e[this.getRawIndex(s)];l<o&&(o=l),l>a&&(a=l)}return i=[o,a],this._extent[t]=i,i},t.prototype.getRawDataItem=function(t){var e=this.getRawIndex(t);if(this._provider.persistent)return this._provider.getItem(e);for(var n=[],i=this._chunks,r=0;r<i.length;r++)n.push(i[r][e]);return n},t.prototype.clone=function(e,n){var i,o,a=new t,s=this._chunks,l=e&&(0,r.reduce)(e,(function(t,e){return t[e]=!0,t}),{});if(l)for(var h=0;h<s.length;h++)a._chunks[h]=l[h]?(i=s[h],o=void 0,(o=i.constructor)===Array?i.slice():new o(i)):s[h];else a._chunks=s;return this._copyCommonProps(a),n||(a._indices=this._cloneIndices()),a._updateGetRawIdx(),a},t.prototype._copyCommonProps=function(t){t._count=this._count,t._rawCount=this._rawCount,t._provider=this._provider,t._dimensions=this._dimensions,t._extent=(0,r.clone)(this._extent),t._rawExtent=(0,r.clone)(this._rawExtent)},t.prototype._cloneIndices=function(){if(this._indices){var t=this._indices.constructor,e=void 0;if(t===Array){var n=this._indices.length;e=new t(n);for(var i=0;i<n;i++)e[i]=this._indices[i]}else e=new t(this._indices);return e}return null},t.prototype._getRawIdxIdentity=function(t){return t},t.prototype._getRawIdx=function(t){return t<this._count&&t>=0?this._indices[t]:-1},t.prototype._updateGetRawIdx=function(){this.getRawIndex=this._indices?this._getRawIdx:this._getRawIdxIdentity},t.internalField=function(){function t(t,e,n,i){return(0,o.Pn)(t[i],this._dimensions[i])}i={arrayRows:t,objectRows:function(t,e,n,i){return(0,o.Pn)(t[e],this._dimensions[i])},keyedColumns:t,original:function(t,e,n,i){var r=t&&(null==t.value?t:t.value);return(0,o.Pn)(r instanceof Array?r[i]:r,this._dimensions[i])},typedArray:function(t,e,n,i){return t[i]}}}(),t}()},9588:(t,e,n)=>{"use strict";n.d(e,{Ay:()=>h});var i=n(7845);function r(t){return"_EC_"+t}var o=function(){function t(t){this.type="graph",this.nodes=[],this.edges=[],this._nodesMap={},this._edgesMap={},this._directed=t||!1}return t.prototype.isDirected=function(){return this._directed},t.prototype.addNode=function(t,e){t=null==t?""+e:""+t;var n=this._nodesMap;if(!n[r(t)]){var i=new a(t,e);return i.hostGraph=this,this.nodes.push(i),n[r(t)]=i,i}},t.prototype.getNodeByIndex=function(t){var e=this.data.getRawIndex(t);return this.nodes[e]},t.prototype.getNodeById=function(t){return this._nodesMap[r(t)]},t.prototype.addEdge=function(t,e,n){var o=this._nodesMap,l=this._edgesMap;if(i.isNumber(t)&&(t=this.nodes[t]),i.isNumber(e)&&(e=this.nodes[e]),t instanceof a||(t=o[r(t)]),e instanceof a||(e=o[r(e)]),t&&e){var h=t.id+"-"+e.id,c=new s(t,e,n);return c.hostGraph=this,this._directed&&(t.outEdges.push(c),e.inEdges.push(c)),t.edges.push(c),t!==e&&e.edges.push(c),this.edges.push(c),l[h]=c,c}},t.prototype.getEdgeByIndex=function(t){var e=this.edgeData.getRawIndex(t);return this.edges[e]},t.prototype.getEdge=function(t,e){t instanceof a&&(t=t.id),e instanceof a&&(e=e.id);var n=this._edgesMap;return this._directed?n[t+"-"+e]:n[t+"-"+e]||n[e+"-"+t]},t.prototype.eachNode=function(t,e){for(var n=this.nodes,i=n.length,r=0;r<i;r++)n[r].dataIndex>=0&&t.call(e,n[r],r)},t.prototype.eachEdge=function(t,e){for(var n=this.edges,i=n.length,r=0;r<i;r++)n[r].dataIndex>=0&&n[r].node1.dataIndex>=0&&n[r].node2.dataIndex>=0&&t.call(e,n[r],r)},t.prototype.breadthFirstTraverse=function(t,e,n,i){if(e instanceof a||(e=this._nodesMap[r(e)]),e){for(var o="out"===n?"outEdges":"in"===n?"inEdges":"edges",s=0;s<this.nodes.length;s++)this.nodes[s].__visited=!1;if(!t.call(i,e,null))for(var l=[e];l.length;){var h=l.shift(),c=h[o];for(s=0;s<c.length;s++){var u=c[s],d=u.node1===h?u.node2:u.node1;if(!d.__visited){if(t.call(i,d,h))return;l.push(d),d.__visited=!0}}}}},t.prototype.update=function(){for(var t=this.data,e=this.edgeData,n=this.nodes,i=this.edges,r=0,o=n.length;r<o;r++)n[r].dataIndex=-1;for(r=0,o=t.count();r<o;r++)n[t.getRawIndex(r)].dataIndex=r;e.filterSelf((function(t){var n=i[e.getRawIndex(t)];return n.node1.dataIndex>=0&&n.node2.dataIndex>=0}));for(r=0,o=i.length;r<o;r++)i[r].dataIndex=-1;for(r=0,o=e.count();r<o;r++)i[e.getRawIndex(r)].dataIndex=r},t.prototype.clone=function(){for(var e=new t(this._directed),n=this.nodes,i=this.edges,r=0;r<n.length;r++)e.addNode(n[r].id,n[r].dataIndex);for(r=0;r<i.length;r++){var o=i[r];e.addEdge(o.node1.id,o.node2.id,o.dataIndex)}return e},t}(),a=function(){function t(t,e){this.inEdges=[],this.outEdges=[],this.edges=[],this.dataIndex=-1,this.id=null==t?"":t,this.dataIndex=null==e?-1:e}return t.prototype.degree=function(){return this.edges.length},t.prototype.inDegree=function(){return this.inEdges.length},t.prototype.outDegree=function(){return this.outEdges.length},t.prototype.getModel=function(t){if(!(this.dataIndex<0))return this.hostGraph.data.getItemModel(this.dataIndex).getModel(t)},t.prototype.getAdjacentDataIndices=function(){for(var t={edge:[],node:[]},e=0;e<this.edges.length;e++){var n=this.edges[e];n.dataIndex<0||(t.edge.push(n.dataIndex),t.node.push(n.node1.dataIndex,n.node2.dataIndex))}return t},t.prototype.getTrajectoryDataIndices=function(){for(var t=i.createHashMap(),e=i.createHashMap(),n=0;n<this.edges.length;n++){var r=this.edges[n];if(!(r.dataIndex<0)){t.set(r.dataIndex,!0);for(var o=[r.node1],a=[r.node2],s=0;s<o.length;){var l=o[s];s++,e.set(l.dataIndex,!0);for(var h=0;h<l.inEdges.length;h++)t.set(l.inEdges[h].dataIndex,!0),o.push(l.inEdges[h].node1)}for(s=0;s<a.length;){var c=a[s];s++,e.set(c.dataIndex,!0);for(h=0;h<c.outEdges.length;h++)t.set(c.outEdges[h].dataIndex,!0),a.push(c.outEdges[h].node2)}}}return{edge:t.keys(),node:e.keys()}},t}(),s=function(){function t(t,e,n){this.dataIndex=-1,this.node1=t,this.node2=e,this.dataIndex=null==n?-1:n}return t.prototype.getModel=function(t){if(!(this.dataIndex<0))return this.hostGraph.edgeData.getItemModel(this.dataIndex).getModel(t)},t.prototype.getAdjacentDataIndices=function(){return{edge:[this.dataIndex],node:[this.node1.dataIndex,this.node2.dataIndex]}},t.prototype.getTrajectoryDataIndices=function(){var t=i.createHashMap(),e=i.createHashMap();t.set(this.dataIndex,!0);for(var n=[this.node1],r=[this.node2],o=0;o<n.length;){var a=n[o];o++,e.set(a.dataIndex,!0);for(var s=0;s<a.inEdges.length;s++)t.set(a.inEdges[s].dataIndex,!0),n.push(a.inEdges[s].node1)}for(o=0;o<r.length;){var l=r[o];o++,e.set(l.dataIndex,!0);for(s=0;s<l.outEdges.length;s++)t.set(l.outEdges[s].dataIndex,!0),r.push(l.outEdges[s].node2)}return{edge:t.keys(),node:e.keys()}},t}();function l(t,e){return{getValue:function(n){var i=this[t][e];return i.getStore().get(i.getDimensionIndex(n||"value"),this.dataIndex)},setVisual:function(n,i){this.dataIndex>=0&&this[t][e].setItemVisual(this.dataIndex,n,i)},getVisual:function(n){return this[t][e].getItemVisual(this.dataIndex,n)},setLayout:function(n,i){this.dataIndex>=0&&this[t][e].setItemLayout(this.dataIndex,n,i)},getLayout:function(){return this[t][e].getItemLayout(this.dataIndex)},getGraphicEl:function(){return this[t][e].getItemGraphicEl(this.dataIndex)},getRawIndex:function(){return this[t][e].getRawIndex(this.dataIndex)}}}i.mixin(a,l("hostGraph","data")),i.mixin(s,l("hostGraph","edgeData"));const h=o},3519:(t,e,n)=>{"use strict";n.d(e,{A:()=>a});var i=n(7845),r=0;function o(t){return(0,i.isObject)(t)&&null!=t.value?t.value:t+""}const a=function(){function t(t){this.categories=t.categories||[],this._needCollect=t.needCollect,this._deduplication=t.deduplication,this.uid=++r}return t.createByAxisModel=function(e){var n=e.option,r=n.data,a=r&&(0,i.map)(r,o);return new t({categories:a,needCollect:!a,deduplication:!1!==n.dedplication})},t.prototype.getOrdinal=function(t){return this._getOrCreateMap().get(t)},t.prototype.parseAndCollect=function(t){var e,n=this._needCollect;if(!(0,i.isString)(t)&&!n)return t;if(n&&!this._deduplication)return e=this.categories.length,this.categories[e]=t,e;var r=this._getOrCreateMap();return null==(e=r.get(t))&&(n?(e=this.categories.length,this.categories[e]=t,r.set(t,e)):e=NaN),e},t.prototype._getOrCreateMap=function(){return this._map||(this._map=(0,i.createHashMap)(this.categories))},t}()},919:(t,e,n)=>{"use strict";n.d(e,{A:()=>C});var i,r,o,a,s,l,h,c=n(7845),u=n(6217),d=n(2110),p=n(6112),f=n(525),g=n(5948),m=n(3457),v=n(2577),y=n(6195),_=n(863),x=n(8473),b=n(6191),w=c.isObject,S=c.map,T="undefined"==typeof Int32Array?Array:Int32Array,M=["hasItemOption","_nameList","_idList","_invertedIndicesMap","_dimSummary","userOutput","_rawData","_dimValueGetter","_nameDimIdx","_idDimIdx","_nameRepeatCount"],A=["_approximateExtent"];const C=function(){function t(t,e){var n;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","lttbDownSample","map"],this.CHANGABLE_METHODS=["filterSelf","selectRange"],this.DOWNSAMPLE_METHODS=["downSample","lttbDownSample"];var i=!1;(0,b.fg)(t)?(n=t.dimensions,this._dimOmitted=t.isDimensionOmitted(),this._schema=t):(i=!0,n=t),n=n||["x","y"];for(var r={},o=[],a={},s=!1,l={},h=0;h<n.length;h++){var u=n[h],d=c.isString(u)?new g.A({name:u}):u instanceof g.A?u:new g.A(u),p=d.name;d.type=d.type||"float",d.coordDim||(d.coordDim=p,d.coordDimIndex=0);var f=d.otherDims=d.otherDims||{};o.push(p),r[p]=d,null!=l[p]&&(s=!0),d.createInvertedIndices&&(a[p]=[]),0===f.itemName&&(this._nameDimIdx=h),0===f.itemId&&(this._idDimIdx=h),i&&(d.storeDimIndex=h)}if(this.dimensions=o,this._dimInfos=r,this._initGetDimensionInfo(s),this.hostModel=e,this._invertedIndicesMap=a,this._dimOmitted){var m=this._dimIdxToName=c.createHashMap();c.each(o,(function(t){m.set(r[t].storeDimIndex,t)}))}}return t.prototype.getDimension=function(t){var e=this._recognizeDimIndex(t);if(null==e)return t;if(e=t,!this._dimOmitted)return this.dimensions[e];var n=this._dimIdxToName.get(e);if(null!=n)return n;var i=this._schema.getSourceDimension(e);return i?i.name:void 0},t.prototype.getDimensionIndex=function(t){var e=this._recognizeDimIndex(t);if(null!=e)return e;if(null==t)return-1;var n=this._getDimInfo(t);return n?n.storeDimIndex:this._dimOmitted?this._schema.getSourceDimensionIndex(t):-1},t.prototype._recognizeDimIndex=function(t){if(c.isNumber(t)||null!=t&&!isNaN(t)&&!this._getDimInfo(t)&&(!this._dimOmitted||this._schema.getSourceDimensionIndex(t)<0))return+t},t.prototype._getStoreDimIndex=function(t){return this.getDimensionIndex(t)},t.prototype.getDimensionInfo=function(t){return this._getDimInfo(this.getDimension(t))},t.prototype._initGetDimensionInfo=function(t){var e=this._dimInfos;this._getDimInfo=t?function(t){return e.hasOwnProperty(t)?e[t]:void 0}:function(t){return e[t]}},t.prototype.getDimensionsOnCoord=function(){return this._dimSummary.dataDimsOnCoord.slice()},t.prototype.mapDimension=function(t,e){var n=this._dimSummary;if(null==e)return n.encodeFirstDimNotExtra[t];var i=n.encode[t];return i?i[e]:null},t.prototype.mapDimensionsAll=function(t){return(this._dimSummary.encode[t]||[]).slice()},t.prototype.getStore=function(){return this._store},t.prototype.initData=function(t,e,n){var i,r=this;if(t instanceof x.Ay&&(i=t),!i){var o=this.dimensions,a=(0,_.tP)(t)||c.isArrayLike(t)?new p.d1(t,o.length):t;i=new x.Ay;var s=S(o,(function(t){return{type:r._dimInfos[t].type,property:t}}));i.initData(a,s,n)}this._store=i,this._nameList=(e||[]).slice(),this._idList=[],this._nameRepeatCount={},this._doInit(0,i.count()),this._dimSummary=(0,f.l)(this,this._schema),this.userOutput=this._dimSummary.userOutput},t.prototype.appendData=function(t){var e=this._store.appendData(t);this._doInit(e[0],e[1])},t.prototype.appendValues=function(t,e){var n=this._store.appendValues(t,e.length),i=n.start,r=n.end,o=this._shouldMakeIdFromName();if(this._updateOrdinalMeta(),e)for(var a=i;a<r;a++){var s=a-i;this._nameList[a]=e[s],o&&h(this,a)}},t.prototype._updateOrdinalMeta=function(){for(var t=this._store,e=this.dimensions,n=0;n<e.length;n++){var i=this._dimInfos[e[n]];i.ordinalMeta&&t.collectOrdinalMeta(i.storeDimIndex,i.ordinalMeta)}},t.prototype._shouldMakeIdFromName=function(){var t=this._store.getProvider();return null==this._idDimIdx&&t.getSource().sourceFormat!==m.XO&&!t.fillStorage},t.prototype._doInit=function(t,e){if(!(t>=e)){var n=this._store.getProvider();this._updateOrdinalMeta();var r=this._nameList,o=this._idList;if(n.getSource().sourceFormat===m.mK&&!n.pure)for(var a=[],s=t;s<e;s++){var l=n.getItem(s,a);if(!this.hasItemOption&&(0,v.zu)(l)&&(this.hasItemOption=!0),l){var c=l.name;null==r[s]&&null!=c&&(r[s]=(0,v.vS)(c,null));var u=l.id;null==o[s]&&null!=u&&(o[s]=(0,v.vS)(u,null))}}if(this._shouldMakeIdFromName())for(s=t;s<e;s++)h(this,s);i(this)}},t.prototype.getApproximateExtent=function(t){return this._approximateExtent[t]||this._store.getDataExtent(this._getStoreDimIndex(t))},t.prototype.setApproximateExtent=function(t,e){e=this.getDimension(e),this._approximateExtent[e]=t.slice()},t.prototype.getCalculationInfo=function(t){return this._calculationInfo[t]},t.prototype.setCalculationInfo=function(t,e){w(t)?c.extend(this._calculationInfo,t):this._calculationInfo[t]=e},t.prototype.getName=function(t){var e=this.getRawIndex(t),n=this._nameList[e];return null==n&&null!=this._nameDimIdx&&(n=o(this,this._nameDimIdx,e)),null==n&&(n=""),n},t.prototype._getCategory=function(t,e){var n=this._store.get(t,e),i=this._store.getOrdinalMeta(t);return i?i.categories[n]:n},t.prototype.getId=function(t){return r(this,this.getRawIndex(t))},t.prototype.count=function(){return this._store.count()},t.prototype.get=function(t,e){var n=this._store,i=this._dimInfos[t];if(i)return n.get(i.storeDimIndex,e)},t.prototype.getByRawIndex=function(t,e){var n=this._store,i=this._dimInfos[t];if(i)return n.getByRawIndex(i.storeDimIndex,e)},t.prototype.getIndices=function(){return this._store.getIndices()},t.prototype.getDataExtent=function(t){return this._store.getDataExtent(this._getStoreDimIndex(t))},t.prototype.getSum=function(t){return this._store.getSum(this._getStoreDimIndex(t))},t.prototype.getMedian=function(t){return this._store.getMedian(this._getStoreDimIndex(t))},t.prototype.getValues=function(t,e){var n=this,i=this._store;return c.isArray(t)?i.getValues(S(t,(function(t){return n._getStoreDimIndex(t)})),e):i.getValues(t)},t.prototype.hasValue=function(t){for(var e=this._dimSummary.dataDimIndicesOnCoord,n=0,i=e.length;n<i;n++)if(isNaN(this._store.get(e[n],t)))return!1;return!0},t.prototype.indexOfName=function(t){for(var e=0,n=this._store.count();e<n;e++)if(this.getName(e)===t)return e;return-1},t.prototype.getRawIndex=function(t){return this._store.getRawIndex(t)},t.prototype.indexOfRawIndex=function(t){return this._store.indexOfRawIndex(t)},t.prototype.rawIndexOf=function(t,e){var n=(t&&this._invertedIndicesMap[t])[e];return null==n||isNaN(n)?-1:n},t.prototype.indicesOfNearest=function(t,e,n){return this._store.indicesOfNearest(this._getStoreDimIndex(t),e,n)},t.prototype.each=function(t,e,n){c.isFunction(t)&&(n=e,e=t,t=[]);var i=n||this,r=S(a(t),this._getStoreDimIndex,this);this._store.each(r,i?c.bind(e,i):e)},t.prototype.filterSelf=function(t,e,n){c.isFunction(t)&&(n=e,e=t,t=[]);var i=n||this,r=S(a(t),this._getStoreDimIndex,this);return this._store=this._store.filter(r,i?c.bind(e,i):e),this},t.prototype.selectRange=function(t){var e=this,n={},i=c.keys(t),r=[];return c.each(i,(function(i){var o=e._getStoreDimIndex(i);n[o]=t[i],r.push(o)})),this._store=this._store.selectRange(n),this},t.prototype.mapArray=function(t,e,n){c.isFunction(t)&&(n=e,e=t,t=[]),n=n||this;var i=[];return this.each(t,(function(){i.push(e&&e.apply(this,arguments))}),n),i},t.prototype.map=function(t,e,n,i){var r=n||i||this,o=S(a(t),this._getStoreDimIndex,this),s=l(this);return s._store=this._store.map(o,r?c.bind(e,r):e),s},t.prototype.modify=function(t,e,n,i){var r=n||i||this;var o=S(a(t),this._getStoreDimIndex,this);this._store.modify(o,r?c.bind(e,r):e)},t.prototype.downSample=function(t,e,n,i){var r=l(this);return r._store=this._store.downSample(this._getStoreDimIndex(t),e,n,i),r},t.prototype.lttbDownSample=function(t,e){var n=l(this);return n._store=this._store.lttbDownSample(this._getStoreDimIndex(t),e),n},t.prototype.getRawDataItem=function(t){return this._store.getRawDataItem(t)},t.prototype.getItemModel=function(t){var e=this.hostModel,n=this.getRawDataItem(t);return new u.A(n,e,e&&e.ecModel)},t.prototype.diff=function(t){var e=this;return new d.A(t?t.getStore().getIndices():[],this.getStore().getIndices(),(function(e){return r(t,e)}),(function(t){return r(e,t)}))},t.prototype.getVisual=function(t){var e=this._visual;return e&&e[t]},t.prototype.setVisual=function(t,e){this._visual=this._visual||{},w(t)?c.extend(this._visual,t):this._visual[t]=e},t.prototype.getItemVisual=function(t,e){var n=this._itemVisuals[t],i=n&&n[e];return null==i?this.getVisual(e):i},t.prototype.hasItemVisual=function(){return this._itemVisuals.length>0},t.prototype.ensureUniqueItemVisual=function(t,e){var n=this._itemVisuals,i=n[t];i||(i=n[t]={});var r=i[e];return null==r&&(r=this.getVisual(e),c.isArray(r)?r=r.slice():w(r)&&(r=c.extend({},r)),i[e]=r),r},t.prototype.setItemVisual=function(t,e,n){var i=this._itemVisuals[t]||{};this._itemVisuals[t]=i,w(e)?c.extend(i,e):i[e]=n},t.prototype.clearAllVisual=function(){this._visual={},this._itemVisuals=[]},t.prototype.setLayout=function(t,e){w(t)?c.extend(this._layout,t):this._layout[t]=e},t.prototype.getLayout=function(t){return this._layout[t]},t.prototype.getItemLayout=function(t){return this._itemLayouts[t]},t.prototype.setItemLayout=function(t,e,n){this._itemLayouts[t]=n?c.extend(this._itemLayouts[t]||{},e):e},t.prototype.clearItemLayouts=function(){this._itemLayouts.length=0},t.prototype.setItemGraphicEl=function(t,e){var n=this.hostModel&&this.hostModel.seriesIndex;(0,y.a)(n,this.dataType,t,e),this._graphicEls[t]=e},t.prototype.getItemGraphicEl=function(t){return this._graphicEls[t]},t.prototype.eachItemGraphicEl=function(t,e){c.each(this._graphicEls,(function(n,i){n&&t&&t.call(e,n,i)}))},t.prototype.cloneShallow=function(e){return e||(e=new t(this._schema?this._schema:S(this.dimensions,this._getDimInfo,this),this.hostModel)),s(e,this),e._store=this._store,e},t.prototype.wrapMethod=function(t,e){var n=this[t];c.isFunction(n)&&(this.__wrappedMethods=this.__wrappedMethods||[],this.__wrappedMethods.push(t),this[t]=function(){var t=n.apply(this,arguments);return e.apply(this,[t].concat(c.slice(arguments)))})},t.internalField=(i=function(t){var e=t._invertedIndicesMap;c.each(e,(function(n,i){var r=t._dimInfos[i],o=r.ordinalMeta,a=t._store;if(o){n=e[i]=new T(o.categories.length);for(var s=0;s<n.length;s++)n[s]=-1;for(s=0;s<a.count();s++)n[a.get(r.storeDimIndex,s)]=s}}))},o=function(t,e,n){return(0,v.vS)(t._getCategory(e,n),null)},r=function(t,e){var n=t._idList[e];return null==n&&null!=t._idDimIdx&&(n=o(t,t._idDimIdx,e)),null==n&&(n="e\0\0"+e),n},a=function(t){return c.isArray(t)||(t=null!=t?[t]:[]),t},l=function(e){var n=new t(e._schema?e._schema:S(e.dimensions,e._getDimInfo,e),e.hostModel);return s(n,e),n},s=function(t,e){c.each(M.concat(e.__wrappedMethods||[]),(function(n){e.hasOwnProperty(n)&&(t[n]=e[n])})),t.__wrappedMethods=e.__wrappedMethods,c.each(A,(function(n){t[n]=c.clone(e[n])})),t._calculationInfo=c.extend({},e._calculationInfo)},void(h=function(t,e){var n=t._nameList,i=t._idList,r=t._nameDimIdx,a=t._idDimIdx,s=n[e],l=i[e];if(null==s&&null!=r&&(n[e]=s=o(t,r,e)),null==l&&null!=a&&(i[e]=l=o(t,a,e)),null==l&&null!=s){var h=t._nameRepeatCount,c=h[s]=(h[s]||0)+1;l=s,c>1&&(l+="__ec__"+c),i[e]=l}})),t}()},5948:(t,e,n)=>{"use strict";n.d(e,{A:()=>r});var i=n(7845);const r=function(t){this.otherDims={},null!=t&&i.extend(this,t)}},863:(t,e,n)=>{"use strict";n.d(e,{AF:()=>c,BE:()=>u,O0:()=>g,gV:()=>h,tP:()=>l,wZ:()=>d});var i=n(7845),r=n(3457),o=n(2577),a=n(6660),s=function(t){this.data=t.data||(t.sourceFormat===r.t1?{}:[]),this.sourceFormat=t.sourceFormat||r.vm,this.seriesLayoutBy=t.seriesLayoutBy||r.i_,this.startIndex=t.startIndex||0,this.dimensionsDetectedCount=t.dimensionsDetectedCount,this.metaRawOption=t.metaRawOption;var e=this.dimensionsDefine=t.dimensionsDefine;if(e)for(var n=0;n<e.length;n++){var i=e[n];null==i.type&&(0,a.PU)(this,n)===a.sc.Must&&(i.type="ordinal")}};function l(t){return t instanceof s}function h(t,e,n){n=n||d(t);var a=e.seriesLayoutBy,l=function(t,e,n,a,s){var l,h;if(!t)return{dimensionsDefine:p(s),startIndex:h,dimensionsDetectedCount:l};if(e===r.Km){var c=t;"auto"===a||null==a?f((function(t){null!=t&&"-"!==t&&((0,i.isString)(t)?null==h&&(h=1):h=0)}),n,c,10):h=(0,i.isNumber)(a)?a:a?1:0,s||1!==h||(s=[],f((function(t,e){s[e]=null!=t?t+"":""}),n,c,1/0)),l=s?s.length:n===r.oC?c.length:c[0]?c[0].length:null}else if(e===r.Wk)s||(s=function(t){var e,n=0;for(;n<t.length&&!(e=t[n++]););if(e)return(0,i.keys)(e)}(t));else if(e===r.t1)s||(s=[],(0,i.each)(t,(function(t,e){s.push(e)})));else if(e===r.mK){var u=(0,o.vj)(t[0]);l=(0,i.isArray)(u)&&u.length||1}else r.XO;return{startIndex:h,dimensionsDefine:p(s),dimensionsDetectedCount:l}}(t,n,a,e.sourceHeader,e.dimensions);return new s({data:t,sourceFormat:n,seriesLayoutBy:a,dimensionsDefine:l.dimensionsDefine,startIndex:l.startIndex,dimensionsDetectedCount:l.dimensionsDetectedCount,metaRawOption:(0,i.clone)(e)})}function c(t){return new s({data:t,sourceFormat:(0,i.isTypedArray)(t)?r.XO:r.mK})}function u(t){return new s({data:t.data,sourceFormat:t.sourceFormat,seriesLayoutBy:t.seriesLayoutBy,dimensionsDefine:(0,i.clone)(t.dimensionsDefine),startIndex:t.startIndex,dimensionsDetectedCount:t.dimensionsDetectedCount})}function d(t){var e=r.vm;if((0,i.isTypedArray)(t))e=r.XO;else if((0,i.isArray)(t)){0===t.length&&(e=r.Km);for(var n=0,o=t.length;n<o;n++){var a=t[n];if(null!=a){if((0,i.isArray)(a)||(0,i.isTypedArray)(a)){e=r.Km;break}if((0,i.isObject)(a)){e=r.Wk;break}}}}else if((0,i.isObject)(t))for(var s in t)if((0,i.hasOwn)(t,s)&&(0,i.isArrayLike)(t[s])){e=r.t1;break}return e}function p(t){if(t){var e=(0,i.createHashMap)();return(0,i.map)(t,(function(t,n){var r={name:(t=(0,i.isObject)(t)?t:{name:t}).name,displayName:t.displayName,type:t.type};if(null==r.name)return r;r.name+="",null==r.displayName&&(r.displayName=r.name);var o=e.get(r.name);return o?r.name+="-"+o.count++:e.set(r.name,{count:1}),r}))}}function f(t,e,n,i){if(e===r.oC)for(var o=0;o<n.length&&o<i;o++)t(n[o]?n[o][0]:null,o);else{var a=n[0]||[];for(o=0;o<a.length&&o<i;o++)t(a[o],o)}}function g(t){var e=t.sourceFormat;return e===r.Wk||e===r.t1}},6191:(t,e,n)=>{"use strict";n.d(e,{Tc:()=>l,eS:()=>d,fg:()=>h,io:()=>c,j_:()=>u});var i=n(7845),r=n(2577),o=n(863),a=(0,r.$r)(),s={float:"f",int:"i",ordinal:"o",number:"n",time:"t"},l=function(){function t(t){this.dimensions=t.dimensions,this._dimOmitted=t.dimensionOmitted,this.source=t.source,this._fullDimCount=t.fullDimensionCount,this._updateDimOmitted(t.dimensionOmitted)}return t.prototype.isDimensionOmitted=function(){return this._dimOmitted},t.prototype._updateDimOmitted=function(t){this._dimOmitted=t,t&&(this._dimNameMap||(this._dimNameMap=u(this.source)))},t.prototype.getSourceDimensionIndex=function(t){return(0,i.retrieve2)(this._dimNameMap.get(t),-1)},t.prototype.getSourceDimension=function(t){var e=this.source.dimensionsDefine;if(e)return e[t]},t.prototype.makeStoreSchema=function(){for(var t=this._fullDimCount,e=(0,o.O0)(this.source),n=!d(t),i="",r=[],a=0,l=0;a<t;a++){var h=void 0,c=void 0,u=void 0,p=this.dimensions[l];if(p&&p.storeDimIndex===a)h=e?p.name:null,c=p.type,u=p.ordinalMeta,l++;else{var f=this.getSourceDimension(a);f&&(h=e?f.name:null,c=f.type)}r.push({property:h,type:c,ordinalMeta:u}),!e||null==h||p&&p.isCalculationCoord||(i+=n?h.replace(/\`/g,"`1").replace(/\$/g,"`2"):h),i+="$",i+=s[c]||"f",u&&(i+=u.uid),i+="$"}var g=this.source;return{dimensions:r,hash:[g.seriesLayoutBy,g.startIndex,i].join("$$")}},t.prototype.makeOutputDimensionNames=function(){for(var t=[],e=0,n=0;e<this._fullDimCount;e++){var i=void 0,r=this.dimensions[n];if(r&&r.storeDimIndex===e)r.isCalculationCoord||(i=r.name),n++;else{var o=this.getSourceDimension(e);o&&(i=o.name)}t.push(i)}return t},t.prototype.appendCalculationDimension=function(t){this.dimensions.push(t),t.isCalculationCoord=!0,this._fullDimCount++,this._updateDimOmitted(!0)},t}();function h(t){return t instanceof l}function c(t){for(var e=(0,i.createHashMap)(),n=0;n<(t||[]).length;n++){var r=t[n],o=(0,i.isObject)(r)?r.name:r;null!=o&&null==e.get(o)&&e.set(o,n)}return e}function u(t){var e=a(t);return e.dimNameMap||(e.dimNameMap=c(t.dimensionsDefine))}function d(t){return t>30}},7984:(t,e,n)=>{"use strict";n.d(e,{A:()=>d,M:()=>u});var i=n(3457),r=n(5948),o=n(7845),a=n(863),s=n(8473),l=n(2577),h=n(6660),c=n(6191);function u(t,e){return d(t,e).dimensions}function d(t,e){(0,a.tP)(t)||(t=(0,a.AF)(t));var n=(e=e||{}).coordDimensions||[],u=e.dimensionsDefine||t.dimensionsDefine||[],d=(0,o.createHashMap)(),f=[],g=function(t,e,n,i){var r=Math.max(t.dimensionsDetectedCount||1,e.length,n.length,i||0);return(0,o.each)(e,(function(t){var e;(0,o.isObject)(t)&&(e=t.dimsDef)&&(r=Math.max(r,e.length))})),r}(t,n,u,e.dimensionsCount),m=e.canOmitUnusedDimensions&&(0,c.eS)(g),v=u===t.dimensionsDefine,y=v?(0,c.j_)(t):(0,c.io)(u),_=e.encodeDefine;!_&&e.encodeDefaulter&&(_=e.encodeDefaulter(t,g));for(var x=(0,o.createHashMap)(_),b=new s.A_(g),w=0;w<b.length;w++)b[w]=-1;function S(t){var e=b[t];if(e<0){var n=u[t],i=(0,o.isObject)(n)?n:{name:n},a=new r.A,s=i.name;null!=s&&null!=y.get(s)&&(a.name=a.displayName=s),null!=i.type&&(a.type=i.type),null!=i.displayName&&(a.displayName=i.displayName);var l=f.length;return b[t]=l,a.storeDimIndex=t,f.push(a),a}return f[e]}if(!m)for(w=0;w<g;w++)S(w);x.each((function(t,e){var n=(0,l.qB)(t).slice();if(1===n.length&&!(0,o.isString)(n[0])&&n[0]<0)x.set(e,!1);else{var i=x.set(e,[]);(0,o.each)(n,(function(t,n){var r=(0,o.isString)(t)?y.get(t):t;null!=r&&r<g&&(i[n]=r,M(S(r),e,n))}))}}));var T=0;function M(t,e,n){null!=i.Pe.get(e)?t.otherDims[e]=n:(t.coordDim=e,t.coordDimIndex=n,d.set(e,!0))}(0,o.each)(n,(function(t){var e,n,i,r;if((0,o.isString)(t))e=t,r={};else{e=(r=t).name;var a=r.ordinalMeta;r.ordinalMeta=null,(r=(0,o.extend)({},r)).ordinalMeta=a,n=r.dimsDef,i=r.otherDims,r.name=r.coordDim=r.coordDimIndex=r.dimsDef=r.otherDims=null}var s=x.get(e);if(!1!==s){if(!(s=(0,l.qB)(s)).length)for(var h=0;h<(n&&n.length||1);h++){for(;T<g&&null!=S(T).coordDim;)T++;T<g&&s.push(T++)}(0,o.each)(s,(function(t,a){var s=S(t);if(v&&null!=r.type&&(s.type=r.type),M((0,o.defaults)(s,r),e,a),null==s.name&&n){var l=n[a];!(0,o.isObject)(l)&&(l={name:l}),s.name=s.displayName=l.name,s.defaultTooltip=l.defaultTooltip}i&&(0,o.defaults)(s.otherDims,i)}))}}));var A=e.generateCoord,C=e.generateCoordCount,I=null!=C;C=A?C||1:0;var E=A||"value";function k(t){null==t.name&&(t.name=t.coordDim)}if(m)(0,o.each)(f,(function(t){k(t)})),f.sort((function(t,e){return t.storeDimIndex-e.storeDimIndex}));else for(var L=0;L<g;L++){var D=S(L);null==D.coordDim&&(D.coordDim=p(E,d,I),D.coordDimIndex=0,(!A||C<=0)&&(D.isExtraCoord=!0),C--),k(D),null!=D.type||(0,h.PU)(t,L)!==h.sc.Must&&(!D.isExtraCoord||null==D.otherDims.itemName&&null==D.otherDims.seriesName)||(D.type="ordinal")}return function(t){for(var e=(0,o.createHashMap)(),n=0;n<t.length;n++){var i=t[n],r=i.name,a=e.get(r)||0;a>0&&(i.name=r+(a-1)),a++,e.set(r,a)}}(f),new c.Tc({source:t,dimensions:f,fullDimensionCount:g,dimensionOmitted:m})}function p(t,e,n){if(n||e.hasKey(t)){for(var i=0;e.hasKey(t+i);)i++;t+=i}return e.set(t,!0),t}},6112:(t,e,n)=>{"use strict";n.d(e,{Kd:()=>y,QE:()=>S,d1:()=>d,sC:()=>g,uQ:()=>b});var i,r,o,a,s,l=n(7845),h=n(2577),c=n(863),u=n(3457),d=function(){function t(t,e){var n=(0,c.tP)(t)?t:(0,c.AF)(t);this._source=n;var i=this._data=n.data;n.sourceFormat===u.XO&&(this._offset=0,this._dimSize=e,this._data=i),s(this,i,n)}var e;return t.prototype.getSource=function(){return this._source},t.prototype.count=function(){return 0},t.prototype.getItem=function(t,e){},t.prototype.appendData=function(t){},t.prototype.clean=function(){},t.protoInitialize=((e=t.prototype).pure=!1,void(e.persistent=!0)),t.internalField=function(){var t;s=function(t,r,o){var s=o.sourceFormat,h=o.seriesLayoutBy,c=o.startIndex,d=o.dimensionsDefine,p=a[w(s,h)];if((0,l.extend)(t,p),s===u.XO)t.getItem=e,t.count=i,t.fillStorage=n;else{var f=g(s,h);t.getItem=(0,l.bind)(f,null,r,c,d);var m=y(s,h);t.count=(0,l.bind)(m,null,r,c,d)}};var e=function(t,e){t-=this._offset,e=e||[];for(var n=this._data,i=this._dimSize,r=i*t,o=0;o<i;o++)e[o]=n[r+o];return e},n=function(t,e,n,i){for(var r=this._data,o=this._dimSize,a=0;a<o;a++){for(var s=i[a],l=null==s[0]?1/0:s[0],h=null==s[1]?-1/0:s[1],c=e-t,u=n[a],d=0;d<c;d++){var p=r[d*o+a];u[t+d]=p,p<l&&(l=p),p>h&&(h=p)}s[0]=l,s[1]=h}},i=function(){return this._data?this._data.length/this._dimSize:0};function r(t){for(var e=0;e<t.length;e++)this._data.push(t[e])}(t={})[u.Km+"_"+u.i_]={pure:!0,appendData:r},t[u.Km+"_"+u.oC]={pure:!0,appendData:function(){throw new Error('Do not support appendData when set seriesLayoutBy: "row".')}},t[u.Wk]={pure:!0,appendData:r},t[u.t1]={pure:!0,appendData:function(t){var e=this._data;(0,l.each)(t,(function(t,n){for(var i=e[n]||(e[n]=[]),r=0;r<(t||[]).length;r++)i.push(t[r])}))}},t[u.mK]={appendData:r},t[u.XO]={persistent:!1,pure:!0,appendData:function(t){this._data=t},clean:function(){this._offset+=this.count(),this._data=null}},a=t}(),t}(),p=function(t,e,n,i){return t[i]},f=((i={})[u.Km+"_"+u.i_]=function(t,e,n,i){return t[i+e]},i[u.Km+"_"+u.oC]=function(t,e,n,i,r){i+=e;for(var o=r||[],a=t,s=0;s<a.length;s++){var l=a[s];o[s]=l?l[i]:null}return o},i[u.Wk]=p,i[u.t1]=function(t,e,n,i,r){for(var o=r||[],a=0;a<n.length;a++){0;var s=t[n[a].name];o[a]=s?s[i]:null}return o},i[u.mK]=p,i);function g(t,e){return f[w(t,e)]}var m=function(t,e,n){return t.length},v=((r={})[u.Km+"_"+u.i_]=function(t,e,n){return Math.max(0,t.length-e)},r[u.Km+"_"+u.oC]=function(t,e,n){var i=t[0];return i?Math.max(0,i.length-e):0},r[u.Wk]=m,r[u.t1]=function(t,e,n){var i=t[n[0].name];return i?i.length:0},r[u.mK]=m,r);function y(t,e){return v[w(t,e)]}var _=function(t,e,n){return t[e]},x=((o={})[u.Km]=_,o[u.Wk]=function(t,e,n){return t[n]},o[u.t1]=_,o[u.mK]=function(t,e,n){var i=(0,h.vj)(t);return i instanceof Array?i[e]:i},o[u.XO]=_,o);function b(t){return x[t]}function w(t,e){return t===u.Km?t+"_"+e:t}function S(t,e,n){if(t){var i=t.getRawDataItem(e);if(null!=i){var r=t.getStore(),o=r.getSource().sourceFormat;if(null!=n){var a=t.getDimensionIndex(n),s=r.getDimensionProperty(a);return b(o)(i,a,s)}var l=i;return o===u.mK&&(l=(0,h.vj)(i)),l}}}},933:(t,e,n)=>{"use strict";n.d(e,{iJ:()=>o,me:()=>s,sJ:()=>a});var i=n(7845),r=n(6191);function o(t,e,n){var o,a,s,l=(n=n||{}).byIndex,h=n.stackedCoordDimension;!function(t){return!(0,r.fg)(t.schema)}(e)?(a=e.schema,o=a.dimensions,s=e.store):o=e;var c,u,d,p,f=!(!t||!t.get("stack"));if((0,i.each)(o,(function(t,e){(0,i.isString)(t)&&(o[e]=t={name:t}),f&&!t.isExtraCoord&&(l||c||!t.ordinalMeta||(c=t),u||"ordinal"===t.type||"time"===t.type||h&&h!==t.coordDim||(u=t))})),!u||l||c||(l=!0),u){d="__\0ecstackresult_"+t.id,p="__\0ecstackedover_"+t.id,c&&(c.createInvertedIndices=!0);var g=u.coordDim,m=u.type,v=0;(0,i.each)(o,(function(t){t.coordDim===g&&v++}));var y={name:d,coordDim:g,coordDimIndex:v,type:m,isExtraCoord:!0,isCalculationCoord:!0,storeDimIndex:o.length},_={name:p,coordDim:p,coordDimIndex:v+1,type:m,isExtraCoord:!0,isCalculationCoord:!0,storeDimIndex:o.length+1};a?(s&&(y.storeDimIndex=s.ensureCalculationDimension(p,m),_.storeDimIndex=s.ensureCalculationDimension(d,m)),a.appendCalculationDimension(y),a.appendCalculationDimension(_)):(o.push(y),o.push(_))}return{stackedDimension:u&&u.name,stackedByDimension:c&&c.name,isStackedByIndex:l,stackedOverDimension:p,stackResultDimension:d}}function a(t,e){return!!e&&e===t.getCalculationInfo("stackedDimension")}function s(t,e){return a(t,e)?t.getCalculationInfo("stackResultDimension"):e}},4224:(t,e,n)=>{"use strict";n.d(e,{Fl:()=>u,Pn:()=>a,zC:()=>l,zs:()=>p});var i=n(8883),r=n(7845),o=n(766);function a(t,e){var n=e&&e.type;return"ordinal"===n?t:("time"!==n||(0,r.isNumber)(t)||null==t||"-"===t||(t=+(0,i._U)(t)),null==t||""===t?NaN:Number(t))}var s=(0,r.createHashMap)({number:function(t){return parseFloat(t)},time:function(t){return+(0,i._U)(t)},trim:function(t){return(0,r.isString)(t)?(0,r.trim)(t):t}});function l(t){return s.get(t)}var h={lt:function(t,e){return t<e},lte:function(t,e){return t<=e},gt:function(t,e){return t>e},gte:function(t,e){return t>=e}},c=function(){function t(t,e){if(!(0,r.isNumber)(e)){0,(0,o.$8)("")}this._opFn=h[t],this._rvalFloat=(0,i.Sm)(e)}return t.prototype.evaluate=function(t){return(0,r.isNumber)(t)?this._opFn(t,this._rvalFloat):this._opFn((0,i.Sm)(t),this._rvalFloat)},t}(),u=function(){function t(t,e){var n="desc"===t;this._resultLT=n?1:-1,null==e&&(e=n?"min":"max"),this._incomparable="min"===e?-1/0:1/0}return t.prototype.evaluate=function(t,e){var n=(0,r.isNumber)(t)?t:(0,i.Sm)(t),o=(0,r.isNumber)(e)?e:(0,i.Sm)(e),a=isNaN(n),s=isNaN(o);if(a&&(n=this._incomparable),s&&(o=this._incomparable),a&&s){var l=(0,r.isString)(t),h=(0,r.isString)(e);l&&(n=h?t:0),h&&(o=l?e:0)}return n<o?this._resultLT:n>o?-this._resultLT:0},t}(),d=function(){function t(t,e){this._rval=e,this._isEQ=t,this._rvalTypeof=typeof e,this._rvalFloat=(0,i.Sm)(e)}return t.prototype.evaluate=function(t){var e=t===this._rval;if(!e){var n=typeof t;n===this._rvalTypeof||"number"!==n&&"number"!==this._rvalTypeof||(e=(0,i.Sm)(t)===this._rvalFloat)}return this._isEQ?e:!e},t}();function p(t,e){return"eq"===t||"ne"===t?new d("eq"===t,e):(0,r.hasOwn)(h,t)?new c(t,e):null}},525:(t,e,n)=>{"use strict";n.d(e,{B:()=>l,l:()=>a});var i=n(7845),r=n(3457),o=function(){function t(t,e){this._encode=t,this._schema=e}return t.prototype.get=function(){return{fullDimensions:this._getFullDimensionNames(),encode:this._encode}},t.prototype._getFullDimensionNames=function(){return this._cachedDimNames||(this._cachedDimNames=this._schema?this._schema.makeOutputDimensionNames():[]),this._cachedDimNames},t}();function a(t,e){var n={},a=n.encode={},l=(0,i.createHashMap)(),h=[],c=[],u={};(0,i.each)(t.dimensions,(function(e){var n,i=t.getDimensionInfo(e),o=i.coordDim;if(o){0;var d=i.coordDimIndex;s(a,o)[d]=e,i.isExtraCoord||(l.set(o,1),"ordinal"!==(n=i.type)&&"time"!==n&&(h[0]=e),s(u,o)[d]=t.getDimensionIndex(i.name)),i.defaultTooltip&&c.push(e)}r.Pe.each((function(t,e){var n=s(a,e),r=i.otherDims[e];null!=r&&!1!==r&&(n[r]=i.name)}))}));var d=[],p={};l.each((function(t,e){var n=a[e];p[e]=n[0],d=d.concat(n)})),n.dataDimsOnCoord=d,n.dataDimIndicesOnCoord=(0,i.map)(d,(function(e){return t.getDimensionInfo(e).storeDimIndex})),n.encodeFirstDimNotExtra=p;var f=a.label;f&&f.length&&(h=f.slice());var g=a.tooltip;return g&&g.length?c=g.slice():c.length||(c=h.slice()),a.defaultedLabel=h,a.defaultedTooltip=c,n.userOutput=new o(u,e),n}function s(t,e){return t.hasOwnProperty(e)||(t[e]=[]),t[e]}function l(t){return"category"===t?"ordinal":"time"===t?"time":"float"}},8052:(t,e,n)=>{"use strict";n.d(e,{A:()=>d});var i=n(7845),r=(0,n(2577).$r)();function o(t,e){if(r(o=this).mainData===o){var n=(0,i.extend)({},r(this).datas);n[this.dataType]=e,c(e,n,t)}else u(e,this.dataType,r(this).mainData,t);var o;return e}function a(t,e){return t.struct&&t.struct.update(),e}function s(t,e){return(0,i.each)(r(e).datas,(function(n,i){n!==e&&u(n.cloneShallow(),i,e,t)})),e}function l(t){var e=r(this).mainData;return null==t||null==e?e:r(e).datas[t]}function h(){var t=r(this).mainData;return null==t?[{data:t}]:(0,i.map)((0,i.keys)(r(t).datas),(function(e){return{type:e,data:r(t).datas[e]}}))}function c(t,e,n){r(t).datas={},(0,i.each)(e,(function(e,i){u(e,i,t,n)}))}function u(t,e,n,i){r(n).datas[e]=t,r(t).mainData=n,t.dataType=e,i.struct&&(t[i.structAttr]=i.struct,i.struct[i.datasAttr[e]]=t),t.getLinkedData=l,t.getLinkedDataAll=h}const d=function(t){var e=t.mainData,n=t.datas;n||(n={main:e},t.datasAttr={main:"data"}),t.datas=t.mainData=null,c(e,n,t),(0,i.each)(n,(function(n){(0,i.each)(e.TRANSFERABLE_METHODS,(function(e){n.wrapMethod(e,(0,i.curry)(o,t))}))})),e.wrapMethod("cloneShallow",(0,i.curry)(s,t)),(0,i.each)(e.CHANGABLE_METHODS,(function(n){e.wrapMethod(n,(0,i.curry)(a,t))})),(0,i.assert)(n[e.dataType]===e)}},6660:(t,e,n)=>{"use strict";n.d(e,{G9:()=>u,Gt:()=>d,OC:()=>h,PU:()=>p,ln:()=>c,ps:()=>l,sc:()=>a});var i=n(2577),r=n(7845),o=n(3457),a={Must:1,Might:2,Not:3},s=(0,i.$r)();function l(t){s(t).datasetMap=(0,r.createHashMap)()}function h(t,e,n){var i={},o=u(e);if(!o||!t)return i;var a,l,h=[],c=[],d=e.ecModel,p=s(d).datasetMap,f=o.uid+"_"+n.seriesLayoutBy;t=t.slice(),(0,r.each)(t,(function(e,n){var o=(0,r.isObject)(e)?e:t[n]={name:e};"ordinal"===o.type&&null==a&&(a=n,l=v(o)),i[o.name]=[]}));var g=p.get(f)||p.set(f,{categoryWayDim:l,valueWayDim:0});function m(t,e,n){for(var i=0;i<n;i++)t.push(e+i)}function v(t){var e=t.dimsDef;return e?e.length:1}return(0,r.each)(t,(function(t,e){var n=t.name,r=v(t);if(null==a){var o=g.valueWayDim;m(i[n],o,r),m(c,o,r),g.valueWayDim+=r}else if(a===e)m(i[n],0,r),m(h,0,r);else{o=g.categoryWayDim;m(i[n],o,r),m(c,o,r),g.categoryWayDim+=r}})),h.length&&(i.itemName=h),c.length&&(i.seriesName=c),i}function c(t,e,n){var i={};if(!u(t))return i;var s,l=e.sourceFormat,h=e.dimensionsDefine;l!==o.Wk&&l!==o.t1||(0,r.each)(h,(function(t,e){"name"===((0,r.isObject)(t)?t.name:t)&&(s=e)}));var c=function(){for(var t={},i={},r=[],o=0,c=Math.min(5,n);o<c;o++){var u=f(e.data,l,e.seriesLayoutBy,h,e.startIndex,o);r.push(u);var d=u===a.Not;if(d&&null==t.v&&o!==s&&(t.v=o),(null==t.n||t.n===t.v||!d&&r[t.n]===a.Not)&&(t.n=o),p(t)&&r[t.n]!==a.Not)return t;d||(u===a.Might&&null==i.v&&o!==s&&(i.v=o),null!=i.n&&i.n!==i.v||(i.n=o))}function p(t){return null!=t.v&&null!=t.n}return p(t)?t:p(i)?i:null}();if(c){i.value=[c.v];var d=null!=s?s:c.n;i.itemName=[d],i.seriesName=[d]}return i}function u(t){if(!t.get("data",!0))return(0,i.JO)(t.ecModel,"dataset",{index:t.get("datasetIndex",!0),id:t.get("datasetId",!0)},i.US).models[0]}function d(t){return t.get("transform",!0)||t.get("fromTransformResult",!0)?(0,i.JO)(t.ecModel,"dataset",{index:t.get("fromDatasetIndex",!0),id:t.get("fromDatasetId",!0)},i.US).models:[]}function p(t,e){return f(t.data,t.sourceFormat,t.seriesLayoutBy,t.dimensionsDefine,t.startIndex,e)}function f(t,e,n,s,l,h){var c,u,d;if((0,r.isTypedArray)(t))return a.Not;if(s){var p=s[h];(0,r.isObject)(p)?(u=p.name,d=p.type):(0,r.isString)(p)&&(u=p)}if(null!=d)return"ordinal"===d?a.Must:a.Not;if(e===o.Km){var f=t;if(n===o.oC){for(var g=f[h],m=0;m<(g||[]).length&&m<5;m++)if(null!=(c=S(g[l+m])))return c}else for(m=0;m<f.length&&m<5;m++){var v=f[l+m];if(v&&null!=(c=S(v[h])))return c}}else if(e===o.Wk){var y=t;if(!u)return a.Not;for(m=0;m<y.length&&m<5;m++){if((b=y[m])&&null!=(c=S(b[u])))return c}}else if(e===o.t1){var _=t;if(!u)return a.Not;if(!(g=_[u])||(0,r.isTypedArray)(g))return a.Not;for(m=0;m<g.length&&m<5;m++)if(null!=(c=S(g[m])))return c}else if(e===o.mK){var x=t;for(m=0;m<x.length&&m<5;m++){var b=x[m],w=(0,i.vj)(b);if(!(0,r.isArray)(w))return a.Not;if(null!=(c=S(w[h])))return c}}function S(t){var e=(0,r.isString)(t);return null!=t&&Number.isFinite(Number(t))&&""!==t?e?a.Might:a.Not:e&&"-"!==t?a.Must:void 0}return a.Not}},4453:(t,e,n)=>{"use strict";n.d(e,{A:()=>u,R:()=>c});var i=n(7845),r=n(863),o=n(3457),a=n(6660),s=n(7617),l=n(8473),h=n(6112),c=function(){function t(t){this._sourceList=[],this._storeList=[],this._upstreamSignList=[],this._versionSignBase=0,this._dirty=!0,this._sourceHost=t}return t.prototype.dirty=function(){this._setLocalSource([],[]),this._storeList=[],this._dirty=!0},t.prototype._setLocalSource=function(t,e){this._sourceList=t,this._upstreamSignList=e,this._versionSignBase++,this._versionSignBase>9e10&&(this._versionSignBase=0)},t.prototype._getVersionSign=function(){return this._sourceHost.uid+"_"+this._versionSignBase},t.prototype.prepareSource=function(){this._isDirty()&&(this._createSource(),this._dirty=!1)},t.prototype._createSource=function(){this._setLocalSource([],[]);var t,e,n=this._sourceHost,a=this._getUpstreamSourceManagers(),s=!!a.length;if(d(n)){var l=n,h=void 0,c=void 0,u=void 0;if(s){var p=a[0];p.prepareSource(),h=(u=p.getSource()).data,c=u.sourceFormat,e=[p._getVersionSign()]}else h=l.get("data",!0),c=(0,i.isTypedArray)(h)?o.XO:o.mK,e=[];var f=this._getSourceMetaRawOption()||{},g=u&&u.metaRawOption||{},m=(0,i.retrieve2)(f.seriesLayoutBy,g.seriesLayoutBy)||null,v=(0,i.retrieve2)(f.sourceHeader,g.sourceHeader),y=(0,i.retrieve2)(f.dimensions,g.dimensions);t=m!==g.seriesLayoutBy||!!v!=!!g.sourceHeader||y?[(0,r.gV)(h,{seriesLayoutBy:m,sourceHeader:v,dimensions:y},c)]:[]}else{var _=n;if(s){var x=this._applyTransform(a);t=x.sourceList,e=x.upstreamSignList}else{var b=_.get("source",!0);t=[(0,r.gV)(b,this._getSourceMetaRawOption(),null)],e=[]}}this._setLocalSource(t,e)},t.prototype._applyTransform=function(t){var e,n=this._sourceHost,o=n.get("transform",!0),a=n.get("fromTransformResult",!0);if(null!=a){1!==t.length&&p("")}var l=[],h=[];return(0,i.each)(t,(function(t){t.prepareSource();var e=t.getSource(a||0);null==a||e||p(""),l.push(e),h.push(t._getVersionSign())})),o?e=(0,s.py)(o,l,{datasetIndex:n.componentIndex}):null!=a&&(e=[(0,r.BE)(l[0])]),{sourceList:e,upstreamSignList:h}},t.prototype._isDirty=function(){if(this._dirty)return!0;for(var t=this._getUpstreamSourceManagers(),e=0;e<t.length;e++){var n=t[e];if(n._isDirty()||this._upstreamSignList[e]!==n._getVersionSign())return!0}},t.prototype.getSource=function(t){t=t||0;var e=this._sourceList[t];if(!e){var n=this._getUpstreamSourceManagers();return n[0]&&n[0].getSource(t)}return e},t.prototype.getSharedDataStore=function(t){var e=t.makeStoreSchema();return this._innerGetDataStore(e.dimensions,t.source,e.hash)},t.prototype._innerGetDataStore=function(t,e,n){var i=this._storeList,r=i[0];r||(r=i[0]={});var o=r[n];if(!o){var a=this._getUpstreamSourceManagers()[0];d(this._sourceHost)&&a?o=a._innerGetDataStore(t,e,n):(o=new l.Ay).initData(new h.d1(e,t.length),t),r[n]=o}return o},t.prototype._getUpstreamSourceManagers=function(){var t=this._sourceHost;if(d(t)){var e=(0,a.G9)(t);return e?[e.getSourceManager()]:[]}return(0,i.map)((0,a.Gt)(t),(function(t){return t.getSourceManager()}))},t.prototype._getSourceMetaRawOption=function(){var t,e,n,i=this._sourceHost;if(d(i))t=i.get("seriesLayoutBy",!0),e=i.get("sourceHeader",!0),n=i.get("dimensions",!0);else if(!this._getUpstreamSourceManagers().length){var r=i;t=r.get("seriesLayoutBy",!0),e=r.get("sourceHeader",!0),n=r.get("dimensions",!0)}return{seriesLayoutBy:t,sourceHeader:e,dimensions:n}},t}();function u(t){t.option.transform&&(0,i.setAsPrimitive)(t.option.transform)}function d(t){return"series"===t.mainType}function p(t){throw new Error(t)}},7617:(t,e,n)=>{"use strict";n.d(e,{py:()=>v,v5:()=>m});var i=n(3457),r=n(2577),o=n(7845),a=n(6112),s=n(4224),l=n(766),h=n(863),c=function(){function t(){}return t.prototype.getRawData=function(){throw new Error("not supported")},t.prototype.getRawDataItem=function(t){throw new Error("not supported")},t.prototype.cloneRawData=function(){},t.prototype.getDimensionInfo=function(t){},t.prototype.cloneAllDimensionInfo=function(){},t.prototype.count=function(){},t.prototype.retrieveValue=function(t,e){},t.prototype.retrieveValueFromItem=function(t,e){},t.prototype.convertValue=function(t,e){return(0,s.Pn)(t,e)},t}();function u(t){if(!_(t.sourceFormat)){0,(0,l.$8)("")}return t.data}function d(t){var e=t.sourceFormat,n=t.data;if(!_(e)){0,(0,l.$8)("")}if(e===i.Km){for(var r=[],a=0,s=n.length;a<s;a++)r.push(n[a].slice());return r}if(e===i.Wk){for(r=[],a=0,s=n.length;a<s;a++)r.push((0,o.extend)({},n[a]));return r}}function p(t,e,n){if(null!=n)return(0,o.isNumber)(n)||!isNaN(n)&&!(0,o.hasOwn)(e,n)?t[n]:(0,o.hasOwn)(e,n)?e[n]:void 0}function f(t){return(0,o.clone)(t)}var g=(0,o.createHashMap)();function m(t){var e=(t=(0,o.clone)(t)).type;e||(0,l.$8)("");var n=e.split(":");2!==n.length&&(0,l.$8)("");var i=!1;"echarts"===n[0]&&(e=n[1],i=!0),t.__isBuiltIn=i,g.set(e,t)}function v(t,e,n){var i=(0,r.qB)(t),o=i.length;o||(0,l.$8)("");for(var a=0,s=o;a<s;a++){e=y(i[a],e,n,1===o?null:a),a!==s-1&&(e.length=Math.max(e.length,1))}return e}function y(t,e,n,s){e.length||(0,l.$8)(""),(0,o.isObject)(t)||(0,l.$8)("");var m=t.type,v=g.get(m);v||(0,l.$8)("");var y=(0,o.map)(e,(function(t){return function(t,e){var n=new c,r=t.data,s=n.sourceFormat=t.sourceFormat,h=t.startIndex;t.seriesLayoutBy!==i.i_&&(0,l.$8)("");var g=[],m={},v=t.dimensionsDefine;if(v)(0,o.each)(v,(function(t,e){var n=t.name,i={index:e,name:n,displayName:t.displayName};g.push(i),null!=n&&((0,o.hasOwn)(m,n)&&(0,l.$8)(""),m[n]=i)}));else for(var y=0;y<t.dimensionsDetectedCount;y++)g.push({index:y});var _=(0,a.sC)(s,i.i_);e.__isBuiltIn&&(n.getRawDataItem=function(t){return _(r,h,g,t)},n.getRawData=(0,o.bind)(u,null,t)),n.cloneRawData=(0,o.bind)(d,null,t);var x=(0,a.Kd)(s,i.i_);n.count=(0,o.bind)(x,null,r,h,g);var b=(0,a.uQ)(s);n.retrieveValue=function(t,e){var n=_(r,h,g,t);return w(n,e)};var w=n.retrieveValueFromItem=function(t,e){if(null!=t){var n=g[e];return n?b(t,e,n.name):void 0}};return n.getDimensionInfo=(0,o.bind)(p,null,g,m),n.cloneAllDimensionInfo=(0,o.bind)(f,null,g),n}(t,v)})),x=(0,r.qB)(v.transform({upstream:y[0],upstreamList:y,config:(0,o.clone)(t.config)}));return(0,o.map)(x,(function(t,n){var r;(0,o.isObject)(t)||(0,l.$8)(""),t.data||(0,l.$8)(""),_((0,h.wZ)(t.data))||(0,l.$8)("");var a=e[0];if(a&&0===n&&!t.dimensions){var s=a.startIndex;s&&(t.data=a.data.slice(0,s).concat(t.data)),r={seriesLayoutBy:i.i_,sourceHeader:s,dimensions:a.metaRawOption.dimensions}}else r={seriesLayoutBy:i.i_,sourceHeader:0,dimensions:t.dimensions};return(0,h.gV)(t.data,r,null)}))}function _(t){return t===i.Km||t===i.Wk}},889:(t,e,n)=>{"use strict";n.d(e,{_0:()=>pt.A,OZ:()=>p.A,jT:()=>c.A,bR:()=>u.A,B8:()=>f.A,Kx:()=>T.A,FQ:()=>h.FQ,rP:()=>d.A,yW:()=>_,Ng:()=>h.Ng,p5:()=>h.p5,El:()=>h.El,zm:()=>h.zm,Zf:()=>h.Zf,AS:()=>h.AS,_K:()=>dt.A,yX:()=>yt,rt:()=>gt,NO:()=>mt,NA:()=>vt,GP:()=>s,Bo:()=>h.Bo,FP:()=>h.FP,aQ:()=>h.aQ,ZB:()=>h.ZB,fA:()=>a,dw:()=>i,Ts:()=>h.Ts,UU:()=>ft.Xi,UP:()=>m,ai:()=>r,l3:()=>z.A,zI:()=>z.A,OH:()=>h.OH,pX:()=>h.pX,Oh:()=>h.Oh,Ej:()=>h.Ej,E:()=>h.E,mz:()=>h.mz,cf:()=>h.cf,tb:()=>h.tb,lP:()=>h.lP,qg:()=>h.qg,bf:()=>h.bf,iY:()=>h.iY,xV:()=>h.xV,AF:()=>h.AF,vV:()=>h.vV,Gs:()=>B.Gs,nF:()=>x.nF,kB:()=>o,Yx:()=>F.Y,ZS:()=>l,i1:()=>v,rE:()=>h.rE,F_:()=>y,nd:()=>g});var i={};n.r(i),n.d(i,{createDimensions:()=>E.M,createList:()=>D,createScale:()=>R,createSymbol:()=>k.v5,createTextStyle:()=>N,dataStack:()=>P,enableHoverEmphasis:()=>L.iJ,getECData:()=>C.z,getLayoutRect:()=>M.dV,mixinAxisModelCommonMethods:()=>O});var r={};n.r(r),n.d(r,{MAX_SAFE_INTEGER:()=>G.Is,asc:()=>G.Y6,getPercentWithPrecision:()=>G.wp,getPixelPrecision:()=>G.hb,getPrecision:()=>G.XV,getPrecisionSafe:()=>G.y6,isNumeric:()=>G.kf,isRadianAroundZero:()=>G.dh,linearMap:()=>G.Cb,nice:()=>G.Cm,numericToNumber:()=>G.Sm,parseDate:()=>G._U,quantile:()=>G.YV,quantity:()=>G.au,quantityExponent:()=>G.NX,reformIntervals:()=>G.sL,remRadian:()=>G._7,round:()=>G.LI});var o={};n.r(o),n.d(o,{format:()=>V.GP,parse:()=>G._U});var a={};n.r(a),n.d(a,{Arc:()=>nt.A,BezierCurve:()=>et.A,BoundingRect:()=>st.A,Circle:()=>X.A,CompoundPath:()=>rt.A,Ellipse:()=>Y.A,Group:()=>W.A,Image:()=>U.Ay,IncrementalDisplayable:()=>it.A,Line:()=>tt.A,LinearGradient:()=>ot.A,Polygon:()=>K.A,Polyline:()=>J.A,RadialGradient:()=>at.A,Rect:()=>Q.A,Ring:()=>$.A,Sector:()=>Z.A,Text:()=>q.Ay,clipPointsByRect:()=>j.clipPointsByRect,clipRectByRect:()=>j.clipRectByRect,createIcon:()=>j.createIcon,extendPath:()=>j.extendPath,extendShape:()=>j.extendShape,getShapeClass:()=>j.getShapeClass,getTransform:()=>j.getTransform,initProps:()=>H.LW,makeImage:()=>j.makeImage,makePath:()=>j.makePath,mergePath:()=>j.mergePath,registerShape:()=>j.registerShape,resizePath:()=>j.resizePath,updateProps:()=>H.oi});var s={};n.r(s),n.d(s,{addCommas:()=>lt.ob,capitalFirst:()=>lt.x5,encodeHTML:()=>ht.Me,formatTime:()=>lt.fU,formatTpl:()=>lt.YK,getTextRect:()=>ut,getTooltipMarker:()=>lt.qg,normalizeCssArray:()=>lt.QX,toCamelCase:()=>lt.Cb,truncateText:()=>ct.EJ});var l={};n.r(l),n.d(l,{bind:()=>y.bind,clone:()=>y.clone,curry:()=>y.curry,defaults:()=>y.defaults,each:()=>y.each,extend:()=>y.extend,filter:()=>y.filter,indexOf:()=>y.indexOf,inherits:()=>y.inherits,isArray:()=>y.isArray,isFunction:()=>y.isFunction,isObject:()=>y.isObject,isString:()=>y.isString,map:()=>y.map,merge:()=>y.merge,reduce:()=>y.reduce});var h=n(3352),c=n(9078),u=n(5370),d=n(1996),p=n(6145),f=n(919),g=n(2563),m=n(3968),v=n(4070),y=n(7845),_=n(7219),x=n(3490),b=n(1577),w=n(5067),S=n(5357),T=n(6217),M=n(5872),A=n(933),C=n(6195),I=n(6547),E=n(7984),k=n(4926),L=n(1632);function D(t){return(0,b.A)(null,t)}var P={isDimensionStacked:A.sJ,enableDataStack:A.iJ,getStackedDimension:A.me};function R(t,e){var n=e;e instanceof T.A||(n=new T.A(e));var i=w.f$(n);return i.setExtent(t[0],t[1]),w.af(i,n),i}function O(t){y.mixin(t,S.L)}function N(t,e){return e=e||{},(0,I.VB)(t,null,null,"normal"!==e.state)}var F=n(585),B=n(9142),z=n(2241),G=n(8883),V=n(383),j=n(6004),H=n(5203),W=n(8829),U=n(5975),q=n(1251),X=n(1262),Y=n(1478),Z=n(7532),$=n(9804),K=n(4942),J=n(1106),Q=n(7551),tt=n(5840),et=n(8526),nt=n(4924),it=n(5238),rt=n(7298),ot=n(7789),at=n(6575),st=n(5383),lt=n(5065),ht=n(4178),ct=n(8559);function ut(t,e,n,i,r,o,a,s){return new q.Ay({style:{text:t,font:e,align:n,verticalAlign:i,padding:r,rich:o,overflow:a?"truncate":null,lineHeight:s}}).getBoundingRect()}var dt=n(4810),pt=n(7994),ft=n(674);function gt(t){var e=c.A.extend(t);return c.A.registerClass(e),e}function mt(t){var e=u.A.extend(t);return u.A.registerClass(e),e}function vt(t){var e=d.A.extend(t);return d.A.registerClass(e),e}function yt(t){var e=p.A.extend(t);return p.A.registerClass(e),e}var _t=n(4971);(0,F.Y)(_t._)},585:(t,e,n)=>{"use strict";n.d(e,{Y:()=>p});var i=n(3352),r=n(5370),o=n(6145),a=n(9078),s=n(1996),l=n(7845),h=n(5689),c=n(2563),u=[],d={registerPreprocessor:i.lP,registerProcessor:i.qg,registerPostInit:i.cf,registerPostUpdate:i.tb,registerUpdateLifecycle:i.xV,registerAction:i.OH,registerCoordinateSystem:i.pX,registerLayout:i.Oh,registerVisual:i.AF,registerTransform:i.iY,registerLoading:i.Ej,registerMap:i.mz,registerImpl:h.m,PRIORITY:i.FQ,ComponentModel:a.A,ComponentView:r.A,SeriesModel:s.A,ChartView:o.A,registerComponentModel:function(t){a.A.registerClass(t)},registerComponentView:function(t){r.A.registerClass(t)},registerSeriesModel:function(t){s.A.registerClass(t)},registerChartView:function(t){o.A.registerClass(t)},registerSubTypeDefaulter:function(t,e){a.A.registerSubTypeDefaulter(t,e)},registerPainter:function(t,e){(0,c.registerPainter)(t,e)}};function p(t){(0,l.isArray)(t)?(0,l.each)(t,(function(t){p(t)})):(0,l.indexOf)(u,t)>=0||(u.push(t),(0,l.isFunction)(t)&&(t={install:t}),t.install(d))}},4971:(t,e,n)=>{"use strict";n.d(e,{_:()=>T});var i=n(2577),r=n(5383),o=n(5203),a=n(6195),s=n(8883),l=n(5853),h=n(4250),c=n(7845),u=n(658),d=n(6547),p=n(4428);function f(t){if(t){for(var e=[],n=0;n<t.length;n++)e.push(t[n].slice());return e}}function g(t,e){var n=t.label,i=e&&e.getTextGuideLine();return{dataIndex:t.dataIndex,dataType:t.dataType,seriesIndex:t.seriesModel.seriesIndex,text:t.label.style.text,rect:t.hostRect,labelRect:t.rect,align:n.style.align,verticalAlign:n.style.verticalAlign,labelLinePoints:f(i&&i.shape.points)}}var m=["align","verticalAlign","width","height","fontSize"],v=new l.Ay,y=(0,i.$r)(),_=(0,i.$r)();function x(t,e,n){for(var i=0;i<n.length;i++){var r=n[i];null!=e[r]&&(t[r]=e[r])}}var b=["x","y","rotation"];const w=function(){function t(){this._labelList=[],this._chartViewList=[]}return t.prototype.clearLabels=function(){this._labelList=[],this._chartViewList=[]},t.prototype._addLabel=function(t,e,n,i,o){var a=i.style,s=i.__hostTarget.textConfig||{},l=i.getComputedTransform(),h=i.getBoundingRect().plain();r.A.applyTransform(h,h,l),l?v.setLocalTransform(l):(v.x=v.y=v.rotation=v.originX=v.originY=0,v.scaleX=v.scaleY=1),v.rotation=(0,p.n)(v.rotation);var c,u=i.__hostTarget;if(u){c=u.getBoundingRect().plain();var d=u.getComputedTransform();r.A.applyTransform(c,c,d)}var f=c&&u.getTextGuideLine();this._labelList.push({label:i,labelLine:f,seriesModel:n,dataIndex:t,dataType:e,layoutOption:o,computedLayoutOption:null,rect:h,hostRect:c,priority:c?c.width*c.height:0,defaultAttr:{ignore:i.ignore,labelGuideIgnore:f&&f.ignore,x:v.x,y:v.y,scaleX:v.scaleX,scaleY:v.scaleY,rotation:v.rotation,style:{x:a.x,y:a.y,align:a.align,verticalAlign:a.verticalAlign,width:a.width,height:a.height,fontSize:a.fontSize},cursor:i.cursor,attachedPos:s.position,attachedRot:s.rotation}})},t.prototype.addLabelsOfSeries=function(t){var e=this;this._chartViewList.push(t);var n=t.__model,i=n.get("labelLayout");((0,c.isFunction)(i)||(0,c.keys)(i).length)&&t.group.traverse((function(t){if(t.ignore)return!0;var r=t.getTextContent(),o=(0,a.z)(t);r&&!r.disableLabelLayout&&e._addLabel(o.dataIndex,o.dataType,n,r,i)}))},t.prototype.updateLayoutConfig=function(t){var e=t.getWidth(),n=t.getHeight();function i(t,e){return function(){(0,h.lB)(t,e)}}for(var r=0;r<this._labelList.length;r++){var o=this._labelList[r],a=o.label,l=a.__hostTarget,u=o.defaultAttr,d=void 0;d=(d=(0,c.isFunction)(o.layoutOption)?o.layoutOption(g(o,l)):o.layoutOption)||{},o.computedLayoutOption=d;var p=Math.PI/180;l&&l.setTextConfig({local:!1,position:null!=d.x||null!=d.y?null:u.attachedPos,rotation:null!=d.rotate?d.rotate*p:u.attachedRot,offset:[d.dx||0,d.dy||0]});var f=!1;if(null!=d.x?(a.x=(0,s.lo)(d.x,e),a.setStyle("x",0),f=!0):(a.x=u.x,a.setStyle("x",u.style.x)),null!=d.y?(a.y=(0,s.lo)(d.y,n),a.setStyle("y",0),f=!0):(a.y=u.y,a.setStyle("y",u.style.y)),d.labelLinePoints){var v=l.getTextGuideLine();v&&(v.setShape({points:d.labelLinePoints}),f=!1)}y(a).needsUpdateLabelLine=f,a.rotation=null!=d.rotate?d.rotate*p:u.rotation,a.scaleX=u.scaleX,a.scaleY=u.scaleY;for(var _=0;_<m.length;_++){var x=m[_];a.setStyle(x,null!=d[x]?d[x]:u.style[x])}if(d.draggable){if(a.draggable=!0,a.cursor="move",l){var b=o.seriesModel;if(null!=o.dataIndex)b=o.seriesModel.getData(o.dataType).getItemModel(o.dataIndex);a.on("drag",i(l,b.getModel("labelLine")))}}else a.off("drag"),a.cursor=u.cursor}},t.prototype.layout=function(t){var e=t.getWidth(),n=t.getHeight(),i=(0,u.os)(this._labelList),r=(0,c.filter)(i,(function(t){return"shiftX"===t.layoutOption.moveOverlap})),o=(0,c.filter)(i,(function(t){return"shiftY"===t.layoutOption.moveOverlap}));(0,u.QX)(r,0,e),(0,u.Xe)(o,0,n);var a=(0,c.filter)(i,(function(t){return t.layoutOption.hideOverlap}));(0,u.If)(a)},t.prototype.processLabelsOverall=function(){var t=this;(0,c.each)(this._chartViewList,(function(e){var n=e.__model,i=e.ignoreLabelLineUpdate,r=n.isAnimationEnabled();e.group.traverse((function(e){if(e.ignore&&!e.forceLabelAnimation)return!0;var o=!i,a=e.getTextContent();!o&&a&&(o=y(a).needsUpdateLabelLine),o&&t._updateLabelLine(e,n),r&&t._animateLabels(e,n)}))}))},t.prototype._updateLabelLine=function(t,e){var n=t.getTextContent(),i=(0,a.z)(t),r=i.dataIndex;if(n&&null!=r){var o=e.getData(i.dataType),s=o.getItemModel(r),l={},c=o.getItemVisual(r,"style");if(c){var u=o.getVisual("drawType");l.stroke=c[u]}var d=s.getModel("labelLine");(0,h.eR)(t,(0,h.rv)(s),l),(0,h.lB)(t,d)}},t.prototype._animateLabels=function(t,e){var n=t.getTextContent(),i=t.getTextGuideLine();if(n&&(t.forceLabelAnimation||!n.ignore&&!n.invisible&&!t.disableLabelAnimation&&!(0,o.LR)(t))){var r=(v=y(n)).oldLayout,s=(0,a.z)(t),l=s.dataIndex,h={x:n.x,y:n.y,rotation:n.rotation},u=e.getData(s.dataType);if(r){n.attr(r);var p=t.prevStates;p&&((0,c.indexOf)(p,"select")>=0&&n.attr(v.oldLayoutSelect),(0,c.indexOf)(p,"emphasis")>=0&&n.attr(v.oldLayoutEmphasis)),(0,o.oi)(n,h,e,l)}else if(n.attr(h),!(0,d.Lu)(n).valueAnimation){var f=(0,c.retrieve2)(n.style.opacity,1);n.style.opacity=0,(0,o.LW)(n,{style:{opacity:f}},e,l)}if(v.oldLayout=h,n.states.select){var g=v.oldLayoutSelect={};x(g,h,b),x(g,n.states.select,b)}if(n.states.emphasis){var m=v.oldLayoutEmphasis={};x(m,h,b),x(m,n.states.emphasis,b)}(0,d.xb)(n,l,u,e,e)}if(i&&!i.ignore&&!i.invisible){r=(v=_(i)).oldLayout;var v,w={points:i.shape.points};r?(i.attr({shape:r}),(0,o.oi)(i,{shape:w},e)):(i.setShape(w),i.style.strokePercent=0,(0,o.LW)(i,{style:{strokePercent:1}},e)),v.oldLayout=w}},t}();var S=(0,i.$r)();function T(t){t.registerUpdateLifecycle("series:beforeupdate",(function(t,e,n){var i=S(e).labelManager;i||(i=S(e).labelManager=new w),i.clearLabels()})),t.registerUpdateLifecycle("series:layoutlabels",(function(t,e,n){var i=S(e).labelManager;n.updatedSeries.forEach((function(t){i.addLabelsOfSeries(e.getViewOfSeriesModel(t))})),i.updateLayoutConfig(e),i.layout(e),i.processLabelsOverall()}))}},4250:(t,e,n)=>{"use strict";n.d(e,{QK:()=>D,YI:()=>L,eR:()=>O,lB:()=>I,rv:()=>N});var i=n(4063),r=n(1885),o=n(1106),a=n(584),s=n(4428),l=n(5162),h=n(7845),c=n(3968),u=n(4070),d=n(1632),p=2*Math.PI,f=a.A.CMD,g=["top","right","bottom","left"];function m(t,e,n,i,r){var o=n.width,a=n.height;switch(t){case"top":i.set(n.x+o/2,n.y-e),r.set(0,-1);break;case"bottom":i.set(n.x+o/2,n.y+a+e),r.set(0,1);break;case"left":i.set(n.x-e,n.y+a/2),r.set(-1,0);break;case"right":i.set(n.x+o+e,n.y+a/2),r.set(1,0)}}function v(t,e,n,i,r,o,a,l,h){a-=t,l-=e;var c=Math.sqrt(a*a+l*l),u=(a/=c)*n+t,d=(l/=c)*n+e;if(Math.abs(i-r)%p<1e-4)return h[0]=u,h[1]=d,c-n;if(o){var f=i;i=(0,s.n)(r),r=(0,s.n)(f)}else i=(0,s.n)(i),r=(0,s.n)(r);i>r&&(r+=p);var g=Math.atan2(l,a);if(g<0&&(g+=p),g>=i&&g<=r||g+p>=i&&g+p<=r)return h[0]=u,h[1]=d,c-n;var m=n*Math.cos(i)+t,v=n*Math.sin(i)+e,y=n*Math.cos(r)+t,_=n*Math.sin(r)+e,x=(m-a)*(m-a)+(v-l)*(v-l),b=(y-a)*(y-a)+(_-l)*(_-l);return x<b?(h[0]=m,h[1]=v,Math.sqrt(x)):(h[0]=y,h[1]=_,Math.sqrt(b))}function y(t,e,n,i,r,o,a,s){var l=r-t,h=o-e,c=n-t,u=i-e,d=Math.sqrt(c*c+u*u),p=(l*(c/=d)+h*(u/=d))/d;s&&(p=Math.min(Math.max(p,0),1)),p*=d;var f=a[0]=t+p*c,g=a[1]=e+p*u;return Math.sqrt((f-r)*(f-r)+(g-o)*(g-o))}function _(t,e,n,i,r,o,a){n<0&&(t+=n,n=-n),i<0&&(e+=i,i=-i);var s=t+n,l=e+i,h=a[0]=Math.min(Math.max(r,t),s),c=a[1]=Math.min(Math.max(o,e),l);return Math.sqrt((h-r)*(h-r)+(c-o)*(c-o))}var x=[];function b(t,e,n){var i=_(e.x,e.y,e.width,e.height,t.x,t.y,x);return n.set(x[0],x[1]),i}function w(t,e,n){for(var i,r,o=0,a=0,s=0,h=0,c=1/0,u=e.data,d=t.x,p=t.y,g=0;g<u.length;){var m=u[g++];1===g&&(s=o=u[g],h=a=u[g+1]);var b=c;switch(m){case f.M:o=s=u[g++],a=h=u[g++];break;case f.L:b=y(o,a,u[g],u[g+1],d,p,x,!0),o=u[g++],a=u[g++];break;case f.C:b=(0,l.Et)(o,a,u[g++],u[g++],u[g++],u[g++],u[g],u[g+1],d,p,x),o=u[g++],a=u[g++];break;case f.Q:b=(0,l.kh)(o,a,u[g++],u[g++],u[g],u[g+1],d,p,x),o=u[g++],a=u[g++];break;case f.A:var w=u[g++],S=u[g++],T=u[g++],M=u[g++],A=u[g++],C=u[g++];g+=1;var I=!!(1-u[g++]);i=Math.cos(A)*T+w,r=Math.sin(A)*M+S,g<=1&&(s=i,h=r),b=v(w,S,M,A,A+C,I,(d-w)*M/T+w,p,x),o=Math.cos(A+C)*T+w,a=Math.sin(A+C)*M+S;break;case f.R:b=_(s=o=u[g++],h=a=u[g++],u[g++],u[g++],d,p,x);break;case f.Z:b=y(o,a,s,h,d,p,x,!0),o=s,a=h}b<c&&(c=b,n.set(x[0],x[1]))}return c}var S=new i.A,T=new i.A,M=new i.A,A=new i.A,C=new i.A;function I(t,e){if(t){var n=t.getTextGuideLine(),o=t.getTextContent();if(o&&n){var a=t.textGuideLineConfig||{},s=[[0,0],[0,0],[0,0]],l=a.candidates||g,h=o.getBoundingRect().clone();h.applyTransform(o.getComputedTransform());var u=1/0,d=a.anchor,p=t.getComputedTransform(),f=p&&(0,c.invert)([],p),v=e.get("length2")||0;d&&M.copy(d);for(var y=0;y<l.length;y++){m(l[y],0,h,S,A),i.A.scaleAndAdd(T,S,A,v),T.transform(f);var _=t.getBoundingRect(),x=d?d.distance(T):t instanceof r.Ay?w(T,t.path,M):b(T,_,M);x<u&&(u=x,T.transform(p),M.transform(p),M.toArray(s[0]),T.toArray(s[1]),S.toArray(s[2]))}L(s,e.get("minTurnAngle")),n.setShape({points:s})}}}var E=[],k=new i.A;function L(t,e){if(e<=180&&e>0){e=e/180*Math.PI,S.fromArray(t[0]),T.fromArray(t[1]),M.fromArray(t[2]),i.A.sub(A,S,T),i.A.sub(C,M,T);var n=A.len(),r=C.len();if(!(n<.001||r<.001)){A.scale(1/n),C.scale(1/r);var o=A.dot(C);if(Math.cos(e)<o){var a=y(T.x,T.y,M.x,M.y,S.x,S.y,E,!1);k.fromArray(E),k.scaleAndAdd(C,a/Math.tan(Math.PI-e));var s=M.x!==T.x?(k.x-T.x)/(M.x-T.x):(k.y-T.y)/(M.y-T.y);if(isNaN(s))return;s<0?i.A.copy(k,T):s>1&&i.A.copy(k,M),k.toArray(t[1])}}}}function D(t,e,n){if(n<=180&&n>0){n=n/180*Math.PI,S.fromArray(t[0]),T.fromArray(t[1]),M.fromArray(t[2]),i.A.sub(A,T,S),i.A.sub(C,M,T);var r=A.len(),o=C.len();if(!(r<.001||o<.001))if(A.scale(1/r),C.scale(1/o),A.dot(e)<Math.cos(n)){var a=y(T.x,T.y,M.x,M.y,S.x,S.y,E,!1);k.fromArray(E);var s=Math.PI/2,l=s+Math.acos(C.dot(e))-n;if(l>=s)i.A.copy(k,M);else{k.scaleAndAdd(C,a/Math.tan(Math.PI/2-l));var h=M.x!==T.x?(k.x-T.x)/(M.x-T.x):(k.y-T.y)/(M.y-T.y);if(isNaN(h))return;h<0?i.A.copy(k,T):h>1&&i.A.copy(k,M)}k.toArray(t[1])}}}function P(t,e,n,i){var r="normal"===n,o=r?t:t.ensureState(n);o.ignore=e;var a=i.get("smooth");a&&!0===a&&(a=.3),o.shape=o.shape||{},a>0&&(o.shape.smooth=a);var s=i.getModel("lineStyle").getLineStyle();r?t.useStyle(s):o.style=s}function R(t,e){var n=e.smooth,i=e.points;if(i)if(t.moveTo(i[0][0],i[0][1]),n>0&&i.length>=3){var r=u.dist(i[0],i[1]),o=u.dist(i[1],i[2]);if(!r||!o)return t.lineTo(i[1][0],i[1][1]),void t.lineTo(i[2][0],i[2][1]);var a=Math.min(r,o)*n,s=u.lerp([],i[1],i[0],a/r),l=u.lerp([],i[1],i[2],a/o),h=u.lerp([],s,l,.5);t.bezierCurveTo(s[0],s[1],s[0],s[1],h[0],h[1]),t.bezierCurveTo(l[0],l[1],l[0],l[1],i[2][0],i[2][1])}else for(var c=1;c<i.length;c++)t.lineTo(i[c][0],i[c][1])}function O(t,e,n){var i=t.getTextGuideLine(),r=t.getTextContent();if(r){for(var a=e.normal,s=a.get("show"),l=r.ignore,c=0;c<d.wV.length;c++){var u=d.wV[c],p=e[u],f="normal"===u;if(p){var g=p.get("show");if((f?l:(0,h.retrieve2)(r.states[u]&&r.states[u].ignore,l))||!(0,h.retrieve2)(g,s)){var m=f?i:i&&i.states[u];m&&(m.ignore=!0),i&&P(i,!0,u,p);continue}i||(i=new o.A,t.setTextGuideLine(i),f||!l&&s||P(i,!0,"normal",e.normal),t.stateProxy&&(i.stateProxy=t.stateProxy)),P(i,!1,u,p)}}if(i){(0,h.defaults)(i.style,n),i.style.fill=null;var v=a.get("showAbove");(t.textGuideLineConfig=t.textGuideLineConfig||{}).showAbove=v||!1,i.buildPath=R}}else i&&t.removeTextGuideLine()}function N(t,e){e=e||"labelLine";for(var n={normal:t.getModel(e)},i=0;i<d.BV.length;i++){var r=d.BV[i];n[r]=t.getModel([r,e])}return n}},658:(t,e,n)=>{"use strict";n.d(e,{If:()=>h,QX:()=>s,Xe:()=>l,os:()=>o});var i=n(2971),r=n(5383);function o(t){for(var e=[],n=0;n<t.length;n++){var r=t[n];if(!r.defaultAttr.ignore){var o=r.label,a=o.getComputedTransform(),s=o.getBoundingRect(),l=!a||a[1]<1e-5&&a[2]<1e-5,h=o.style.margin||0,c=s.clone();c.applyTransform(a),c.x-=h/2,c.y-=h/2,c.width+=h,c.height+=h;var u=l?new i.A(s,a):null;e.push({label:o,labelLine:r.labelLine,rect:c,localRect:s,obb:u,priority:r.priority,defaultAttr:r.defaultAttr,layoutOption:r.computedLayoutOption,axisAligned:l,transform:a})}}return e}function a(t,e,n,i,r,o){var a=t.length;if(!(a<2)){t.sort((function(t,n){return t.rect[e]-n.rect[e]}));for(var s,l=0,h=!1,c=[],u=0,d=0;d<a;d++){var p=t[d],f=p.rect;(s=f[e]-l)<0&&(f[e]-=s,p.label[e]-=s,h=!0);var g=Math.max(-s,0);c.push(g),u+=g,l=f[e]+f[n]}u>0&&o&&w(-u/a,0,a);var m,v,y=t[0],_=t[a-1];return x(),m<0&&S(-m,.8),v<0&&S(v,.8),x(),b(m,v,1),b(v,m,-1),x(),m<0&&T(-m),v<0&&T(v),h}function x(){m=y.rect[e]-i,v=r-_.rect[e]-_.rect[n]}function b(t,e,n){if(t<0){var i=Math.min(e,-t);if(i>0){w(i*n,0,a);var r=i+t;r<0&&S(-r*n,1)}else S(-t*n,1)}}function w(n,i,r){0!==n&&(h=!0);for(var o=i;o<r;o++){var a=t[o];a.rect[e]+=n,a.label[e]+=n}}function S(i,r){for(var o=[],s=0,l=1;l<a;l++){var h=t[l-1].rect,c=Math.max(t[l].rect[e]-h[e]-h[n],0);o.push(c),s+=c}if(s){var u=Math.min(Math.abs(i)/s,r);if(i>0)for(l=0;l<a-1;l++){w(o[l]*u,0,l+1)}else for(l=a-1;l>0;l--){w(-(o[l-1]*u),l,a)}}}function T(t){var e=t<0?-1:1;t=Math.abs(t);for(var n=Math.ceil(t/(a-1)),i=0;i<a-1;i++)if(e>0?w(n,0,i+1):w(-n,a-i-1,a),(t-=n)<=0)return}}function s(t,e,n,i){return a(t,"x","width",e,n,i)}function l(t,e,n,i){return a(t,"y","height",e,n,i)}function h(t){var e=[];t.sort((function(t,e){return e.priority-t.priority}));var n=new r.A(0,0,0,0);function o(t){if(!t.ignore){var e=t.ensureState("emphasis");null==e.ignore&&(e.ignore=!1)}t.ignore=!0}for(var a=0;a<t.length;a++){var s=t[a],l=s.axisAligned,h=s.localRect,c=s.transform,u=s.label,d=s.labelLine;n.copy(s.rect),n.width-=.1,n.height-=.1,n.x+=.05,n.y+=.05;for(var p=s.obb,f=!1,g=0;g<e.length;g++){var m=e[g];if(n.intersect(m.rect)){if(l&&m.axisAligned){f=!0;break}if(m.obb||(m.obb=new i.A(m.localRect,m.transform)),p||(p=new i.A(h,c)),p.intersect(m.obb)){f=!0;break}}}f?(o(u),d&&o(d)):(u.attr("ignore",s.defaultAttr.ignore),d&&d.attr("ignore",s.defaultAttr.labelGuideIgnore),e.push(s))}}},6547:(t,e,n)=>{"use strict";n.d(e,{Lu:()=>x,Oh:()=>b,VB:()=>p,c8:()=>_,lx:()=>d,qM:()=>u,sD:()=>f,xb:()=>w});var i=n(1251),r=n(7845),o=n(1632),a=n(2577),s=n(5203),l={};function h(t,e){for(var n=0;n<o.BV.length;n++){var i=o.BV[n],r=e[i],a=t.ensureState(i);a.style=a.style||{},a.style.text=r}var s=t.currentStates.slice();t.clearStates(!0),t.setStyle({text:e.normal}),t.useStates(s,!0)}function c(t,e,n){var i,a=t.labelFetcher,s=t.labelDataIndex,l=t.labelDimIndex,h=e.normal;a&&(i=a.getFormattedLabel(s,"normal",null,l,h&&h.get("formatter"),null!=n?{interpolatedValue:n}:null)),null==i&&(i=(0,r.isFunction)(t.defaultText)?t.defaultText(s,t,n):t.defaultText);for(var c={normal:i},u=0;u<o.BV.length;u++){var d=o.BV[u],p=e[d];c[d]=(0,r.retrieve2)(a?a.getFormattedLabel(s,d,null,l,p&&p.get("formatter")):null,i)}return c}function u(t,e,n,a){n=n||l;for(var s=t instanceof i.Ay,u=!1,d=0;d<o.wV.length;d++){if((b=e[o.wV[d]])&&b.getShallow("show")){u=!0;break}}var g=s?t:t.getTextContent();if(u){s||(g||(g=new i.Ay,t.setTextContent(g)),t.stateProxy&&(g.stateProxy=t.stateProxy));var m=c(n,e),v=e.normal,y=!!v.getShallow("show"),_=p(v,a&&a.normal,n,!1,!s);_.text=m.normal,s||t.setTextConfig(f(v,n,!1));for(d=0;d<o.BV.length;d++){var b,w=o.BV[d];if(b=e[w]){var S=g.ensureState(w),T=!!(0,r.retrieve2)(b.getShallow("show"),y);if(T!==y&&(S.ignore=!T),S.style=p(b,a&&a[w],n,!0,!s),S.style.text=m[w],!s)t.ensureState(w).textConfig=f(b,n,!0)}}g.silent=!!v.getShallow("silent"),null!=g.style.x&&(_.x=g.style.x),null!=g.style.y&&(_.y=g.style.y),g.ignore=!y,g.useStyle(_),g.dirty(),n.enableTextSetter&&(x(g).setLabelText=function(t){var i=c(n,e,t);h(g,i)})}else g&&(g.ignore=!0);t.dirty()}function d(t,e){e=e||"label";for(var n={normal:t.getModel(e)},i=0;i<o.BV.length;i++){var r=o.BV[i];n[r]=t.getModel([r,e])}return n}function p(t,e,n,i,o){var a={};return function(t,e,n,i,o){n=n||l;var a,s=e.ecModel,h=s&&s.option.textStyle,c=function(t){var e;for(;t&&t!==t.ecModel;){var n=(t.option||l).rich;if(n){e=e||{};for(var i=(0,r.keys)(n),o=0;o<i.length;o++){e[i[o]]=1}}t=t.parentModel}return e}(e);if(c)for(var u in a={},c)if(c.hasOwnProperty(u)){var d=e.getModel(["rich",u]);y(a[u]={},d,h,n,i,o,!1,!0)}a&&(t.rich=a);var p=e.get("overflow");p&&(t.overflow=p);var f=e.get("minMargin");null!=f&&(t.margin=f);y(t,e,h,n,i,o,!0,!1)}(a,t,n,i,o),e&&(0,r.extend)(a,e),a}function f(t,e,n){e=e||{};var i,o={},a=t.getShallow("rotate"),s=(0,r.retrieve2)(t.getShallow("distance"),n?null:5),l=t.getShallow("offset");return"outside"===(i=t.getShallow("position")||(n?null:"inside"))&&(i=e.defaultOutsidePosition||"top"),null!=i&&(o.position=i),null!=l&&(o.offset=l),null!=a&&(a*=Math.PI/180,o.rotation=a),null!=s&&(o.distance=s),o.outsideFill="inherit"===t.get("color")?e.inheritColor||null:"auto",o}var g=["fontStyle","fontWeight","fontSize","fontFamily","textShadowColor","textShadowBlur","textShadowOffsetX","textShadowOffsetY"],m=["align","lineHeight","width","height","tag","verticalAlign","ellipsis"],v=["padding","borderWidth","borderRadius","borderDashOffset","backgroundColor","borderColor","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY"];function y(t,e,n,i,o,a,s,h){n=!o&&n||l;var c=i&&i.inheritColor,u=e.getShallow("color"),d=e.getShallow("textBorderColor"),p=(0,r.retrieve2)(e.getShallow("opacity"),n.opacity);"inherit"!==u&&"auto"!==u||(u=c||null),"inherit"!==d&&"auto"!==d||(d=c||null),a||(u=u||n.color,d=d||n.textBorderColor),null!=u&&(t.fill=u),null!=d&&(t.stroke=d);var f=(0,r.retrieve2)(e.getShallow("textBorderWidth"),n.textBorderWidth);null!=f&&(t.lineWidth=f);var y=(0,r.retrieve2)(e.getShallow("textBorderType"),n.textBorderType);null!=y&&(t.lineDash=y);var _=(0,r.retrieve2)(e.getShallow("textBorderDashOffset"),n.textBorderDashOffset);null!=_&&(t.lineDashOffset=_),o||null!=p||h||(p=i&&i.defaultOpacity),null!=p&&(t.opacity=p),o||a||null==t.fill&&i.inheritColor&&(t.fill=i.inheritColor);for(var x=0;x<g.length;x++){var b=g[x];null!=(S=(0,r.retrieve2)(e.getShallow(b),n[b]))&&(t[b]=S)}for(x=0;x<m.length;x++){b=m[x];null!=(S=e.getShallow(b))&&(t[b]=S)}if(null==t.verticalAlign){var w=e.getShallow("baseline");null!=w&&(t.verticalAlign=w)}if(!s||!i.disableBox){for(x=0;x<v.length;x++){var S;b=v[x];null!=(S=e.getShallow(b))&&(t[b]=S)}var T=e.getShallow("borderType");null!=T&&(t.borderDash=T),"auto"!==t.backgroundColor&&"inherit"!==t.backgroundColor||!c||(t.backgroundColor=c),"auto"!==t.borderColor&&"inherit"!==t.borderColor||!c||(t.borderColor=c)}}function _(t,e){var n=e&&e.getModel("textStyle");return(0,r.trim)([t.fontStyle||n&&n.getShallow("fontStyle")||"",t.fontWeight||n&&n.getShallow("fontWeight")||"",(t.fontSize||n&&n.getShallow("fontSize")||12)+"px",t.fontFamily||n&&n.getShallow("fontFamily")||"sans-serif"].join(" "))}var x=(0,a.$r)();function b(t,e,n,i){if(t){var r=x(t);r.prevValue=r.value,r.value=n;var o=e.normal;r.valueAnimation=o.get("valueAnimation"),r.valueAnimation&&(r.precision=o.get("precision"),r.defaultInterpolatedText=i,r.statesModels=e)}}function w(t,e,n,i,o){var l=x(t);if(l.valueAnimation&&l.prevValue!==l.value){var u=l.defaultInterpolatedText,d=(0,r.retrieve2)(l.interpolatedValue,l.prevValue),p=l.value;t.percent=0,(null==l.prevValue?s.LW:s.oi)(t,{percent:1},i,e,null,(function(i){var r=(0,a.Il)(n,l.precision,d,p,i);l.interpolatedValue=1===i?null:r;var s=c({labelDataIndex:e,labelFetcher:o,defaultText:u?u(r):r+""},l.statesModels,r);h(t,s)}))}}},6291:(t,e,n)=>{"use strict";n.d(e,{DL:()=>u,GL:()=>d,KF:()=>v,VA:()=>g,Zp:()=>m,vq:()=>p});var i=n(7845),r=n(8883),o=n(933),a=n(9421),s=n(3180),l="__ec_stack_";function h(t){return t.get("stack")||l+t.seriesIndex}function c(t){return t.dim+t.index}function u(t){var e=[],n=t.axis,r="axis0";if("category"===n.type){for(var o=n.getBandWidth(),a=0;a<t.count;a++)e.push((0,i.defaults)({bandWidth:o,axisKey:r,stackId:l+a},t));var s=f(e),h=[];for(a=0;a<t.count;a++){var c=s[r][l+a];c.offsetCenter=c.offset+c.width/2,h.push(c)}return h}}function d(t,e){var n=[];return e.eachSeriesByType(t,(function(t){y(t)&&n.push(t)})),n}function p(t){var e=function(t){var e={};(0,i.each)(t,(function(t){var n=t.coordinateSystem.getBaseAxis();if("time"===n.type||"value"===n.type)for(var i=t.getData(),r=n.dim+"_"+n.index,o=i.getDimensionIndex(i.mapDimension(n.dim)),a=i.getStore(),s=0,l=a.count();s<l;++s){var h=a.get(o,s);e[r]?e[r].push(h):e[r]=[h]}}));var n={};for(var r in e)if(e.hasOwnProperty(r)){var o=e[r];if(o){o.sort((function(t,e){return t-e}));for(var a=null,s=1;s<o.length;++s){var l=o[s]-o[s-1];l>0&&(a=null===a?l:Math.min(a,l))}n[r]=a}}return n}(t),n=[];return(0,i.each)(t,(function(t){var i,o=t.coordinateSystem.getBaseAxis(),a=o.getExtent();if("category"===o.type)i=o.getBandWidth();else if("value"===o.type||"time"===o.type){var s=o.dim+"_"+o.index,l=e[s],u=Math.abs(a[1]-a[0]),d=o.scale.getExtent(),p=Math.abs(d[1]-d[0]);i=l?u/p*l:u}else{var f=t.getData();i=Math.abs(a[1]-a[0])/f.count()}var g=(0,r.lo)(t.get("barWidth"),i),m=(0,r.lo)(t.get("barMaxWidth"),i),v=(0,r.lo)(t.get("barMinWidth")||(_(t)?.5:1),i),y=t.get("barGap"),x=t.get("barCategoryGap");n.push({bandWidth:i,barWidth:g,barMaxWidth:m,barMinWidth:v,barGap:y,barCategoryGap:x,axisKey:c(o),stackId:h(t)})})),f(n)}function f(t){var e={};(0,i.each)(t,(function(t,n){var i=t.axisKey,r=t.bandWidth,o=e[i]||{bandWidth:r,remainedWidth:r,autoWidthCount:0,categoryGap:null,gap:"20%",stacks:{}},a=o.stacks;e[i]=o;var s=t.stackId;a[s]||o.autoWidthCount++,a[s]=a[s]||{width:0,maxWidth:0};var l=t.barWidth;l&&!a[s].width&&(a[s].width=l,l=Math.min(o.remainedWidth,l),o.remainedWidth-=l);var h=t.barMaxWidth;h&&(a[s].maxWidth=h);var c=t.barMinWidth;c&&(a[s].minWidth=c);var u=t.barGap;null!=u&&(o.gap=u);var d=t.barCategoryGap;null!=d&&(o.categoryGap=d)}));var n={};return(0,i.each)(e,(function(t,e){n[e]={};var o=t.stacks,a=t.bandWidth,s=t.categoryGap;if(null==s){var l=(0,i.keys)(o).length;s=Math.max(35-4*l,15)+"%"}var h=(0,r.lo)(s,a),c=(0,r.lo)(t.gap,1),u=t.remainedWidth,d=t.autoWidthCount,p=(u-h)/(d+(d-1)*c);p=Math.max(p,0),(0,i.each)(o,(function(t){var e=t.maxWidth,n=t.minWidth;if(t.width){i=t.width;e&&(i=Math.min(i,e)),n&&(i=Math.max(i,n)),t.width=i,u-=i+c*i,d--}else{var i=p;e&&e<i&&(i=Math.min(e,u)),n&&n>i&&(i=n),i!==p&&(t.width=i,u-=i+c*i,d--)}})),p=(u-h)/(d+(d-1)*c),p=Math.max(p,0);var f,g=0;(0,i.each)(o,(function(t,e){t.width||(t.width=p),f=t,g+=t.width*(1+c)})),f&&(g-=f.width*c);var m=-g/2;(0,i.each)(o,(function(t,i){n[e][i]=n[e][i]||{bandWidth:a,offset:m,width:t.width},m+=t.width*(1+c)}))})),n}function g(t,e,n){if(t&&e){var i=t[c(e)];return null!=i&&null!=n?i[h(n)]:i}}function m(t,e){var n=d(t,e),r=p(n);(0,i.each)(n,(function(t){var e=t.getData(),n=t.coordinateSystem.getBaseAxis(),i=h(t),o=r[c(n)][i],a=o.offset,s=o.width;e.setLayout({bandWidth:o.bandWidth,offset:a,size:s})}))}function v(t){return{seriesType:t,plan:(0,a.A)(),reset:function(t){if(y(t)){var e=t.getData(),n=t.coordinateSystem,i=n.getBaseAxis(),r=n.getOtherAxis(i),a=e.getDimensionIndex(e.mapDimension(r.dim)),l=e.getDimensionIndex(e.mapDimension(i.dim)),h=t.get("showBackground",!0),c=e.mapDimension(r.dim),u=e.getCalculationInfo("stackResultDimension"),d=(0,o.sJ)(e,c)&&!!e.getCalculationInfo("stackedOnSeries"),p=r.isHorizontal(),f=function(t,e){var n=e.model.get("startValue");n||(n=0);return e.toGlobalCoord(e.dataToCoord("log"===e.type?n>0?n:1:n))}(0,r),g=_(t),m=t.get("barMinHeight")||0,v=u&&e.getDimensionIndex(u),x=e.getLayout("size"),b=e.getLayout("offset");return{progress:function(t,e){for(var i,r=t.count,o=g&&(0,s.J)(3*r),c=g&&h&&(0,s.J)(3*r),u=g&&(0,s.J)(r),y=n.master.getRect(),_=p?y.width:y.height,w=e.getStore(),S=0;null!=(i=t.next());){var T=w.get(d?v:a,i),M=w.get(l,i),A=f,C=void 0;d&&(C=+T-w.get(a,i));var I=void 0,E=void 0,k=void 0,L=void 0;if(p){var D=n.dataToPoint([T,M]);if(d)A=n.dataToPoint([C,M])[0];I=A,E=D[1]+b,k=D[0]-A,L=x,Math.abs(k)<m&&(k=(k<0?-1:1)*m)}else{D=n.dataToPoint([M,T]);if(d)A=n.dataToPoint([M,C])[1];I=D[0]+b,E=A,k=x,L=D[1]-A,Math.abs(L)<m&&(L=(L<=0?-1:1)*m)}g?(o[S]=I,o[S+1]=E,o[S+2]=p?k:L,c&&(c[S]=p?y.x:I,c[S+1]=p?E:y.y,c[S+2]=_),u[i]=i):e.setItemLayout(i,{x:I,y:E,width:k,height:L}),S+=3}g&&e.setLayout({largePoints:o,largeDataIndices:u,largeBackgroundPoints:c,valueAxisHorizontal:p})}}}}}}function y(t){return t.coordinateSystem&&"cartesian2d"===t.coordinateSystem.type}function _(t){return t.pipelineContext&&t.pipelineContext.large}},6093:(t,e,n)=>{"use strict";n.d(e,{I:()=>o,l:()=>s});var i=n(7845),r=n(2577);function o(t,e){function n(e,n){var i=[];return e.eachComponent({mainType:"series",subType:t,query:n},(function(t){i.push(t.seriesIndex)})),i}(0,i.each)([[t+"ToggleSelect","toggleSelect"],[t+"Select","select"],[t+"UnSelect","unselect"]],(function(t){e(t[0],(function(e,r,o){e=(0,i.extend)({},e),o.dispatchAction((0,i.extend)(e,{type:t[1],seriesIndex:n(r,e)}))}))}))}function a(t,e,n,o,a){var s=t+e;n.isSilent(s)||o.eachComponent({mainType:"series",subType:"pie"},(function(t){for(var e=t.seriesIndex,o=t.option.selectedMap,l=a.selected,h=0;h<l.length;h++)if(l[h].seriesIndex===e){var c=t.getData(),u=(0,r.le)(c,a.fromActionPayload);n.trigger(s,{type:s,seriesId:t.id,name:(0,i.isArray)(u)?c.getName(u[0]):c.getName(u),selected:(0,i.isString)(o)?o:(0,i.extend)({},o)})}}))}function s(t,e,n){t.on("selectchanged",(function(t){var i=n.getModel();t.isFromClick?(a("map","selectchanged",e,i,t),a("pie","selectchanged",e,i,t)):"select"===t.fromAction?(a("map","selected",e,i,t),a("pie","selected",e,i,t)):"unselect"===t.fromAction&&(a("map","unselected",e,i,t),a("pie","unselected",e,i,t))}))}},9078:(t,e,n)=>{"use strict";n.d(e,{A:()=>d});var i=n(528),r=n(7845),o=n(6217),a=n(1987),s=n(9902),l=n(2577),h=n(5872),c=(0,l.$r)(),u=function(t){function e(e,n,i){var r=t.call(this,e,n,i)||this;return r.uid=a.$Q("ec_cpt_model"),r}var n;return(0,i.C6)(e,t),e.prototype.init=function(t,e,n){this.mergeDefaultAndTheme(t,n)},e.prototype.mergeDefaultAndTheme=function(t,e){var n=h.ad(this),i=n?h.vs(t):{},o=e.getTheme();r.merge(t,o.get(this.mainType)),r.merge(t,this.getDefaultOption()),n&&h.YA(t,i,n)},e.prototype.mergeOption=function(t,e){r.merge(this.option,t,!0);var n=h.ad(this);n&&h.YA(this.option,t,n)},e.prototype.optionUpdated=function(t,e){},e.prototype.getDefaultOption=function(){var t=this.constructor;if(!(0,s._E)(t))return t.defaultOption;var e=c(this);if(!e.defaultOption){for(var n=[],i=t;i;){var o=i.prototype.defaultOption;o&&n.push(o),i=i.superClass}for(var a={},l=n.length-1;l>=0;l--)a=r.merge(a,n[l],!0);e.defaultOption=a}return e.defaultOption},e.prototype.getReferringComponents=function(t,e){var n=t+"Index",i=t+"Id";return(0,l.JO)(this.ecModel,t,{index:this.get(n,!0),id:this.get(i,!0)},e)},e.prototype.getBoxLayoutParams=function(){var t=this;return{left:t.get("left"),top:t.get("top"),right:t.get("right"),bottom:t.get("bottom"),width:t.get("width"),height:t.get("height")}},e.prototype.getZLevelKey=function(){return""},e.prototype.setZLevel=function(t){this.option.zlevel=t},e.protoInitialize=((n=e.prototype).type="component",n.id="",n.name="",n.mainType="",n.subType="",void(n.componentIndex=0)),e}(o.A);(0,s.q7)(u,o.A),(0,s.tQ)(u),a.A6(u),a.vf(u,(function(t){var e=[];r.each(u.getClassesByMainType(t),(function(t){e=e.concat(t.dependencies||t.prototype.dependencies||[])})),e=r.map(e,(function(t){return(0,s.CC)(t).main})),"dataset"!==t&&r.indexOf(e,"dataset")<=0&&e.unshift("dataset");return e}));const d=u},6217:(t,e,n)=>{"use strict";n.d(e,{A:()=>v});var i=n(4810),r=n(9902),o=(0,n(4449).A)([["fill","color"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["opacity"],["shadowColor"]]),a=function(){function t(){}return t.prototype.getAreaStyle=function(t,e){return o(this,t,e)},t}(),s=n(6547),l=n(1251),h=["textStyle","color"],c=["fontStyle","fontWeight","fontSize","fontFamily","padding","lineHeight","rich","width","height","overflow"],u=new l.Ay;const d=function(){function t(){}return t.prototype.getTextColor=function(t){var e=this.ecModel;return this.getShallow("color")||(!t&&e?e.get(h):null)},t.prototype.getFont=function(){return(0,s.c8)({fontStyle:this.getShallow("fontStyle"),fontWeight:this.getShallow("fontWeight"),fontSize:this.getShallow("fontSize"),fontFamily:this.getShallow("fontFamily")},this.ecModel)},t.prototype.getTextRect=function(t){for(var e={text:t,verticalAlign:this.getShallow("verticalAlign")||this.getShallow("baseline")},n=0;n<c.length;n++)e[c[n]]=this.getShallow(c[n]);return u.useStyle(e),u.update(),u.getBoundingRect()},t}();var p=n(3404),f=n(3951),g=n(7845),m=function(){function t(t,e,n){this.parentModel=e,this.ecModel=n,this.option=t}return t.prototype.init=function(t,e,n){for(var i=[],r=3;r<arguments.length;r++)i[r-3]=arguments[r]},t.prototype.mergeOption=function(t,e){(0,g.merge)(this.option,t,!0)},t.prototype.get=function(t,e){return null==t?this.option:this._doGet(this.parsePath(t),!e&&this.parentModel)},t.prototype.getShallow=function(t,e){var n=this.option,i=null==n?n:n[t];if(null==i&&!e){var r=this.parentModel;r&&(i=r.getShallow(t))}return i},t.prototype.getModel=function(e,n){var i=null!=e,r=i?this.parsePath(e):null;return new t(i?this._doGet(r):this.option,n=n||this.parentModel&&this.parentModel.getModel(this.resolveParentPath(r)),this.ecModel)},t.prototype.isEmpty=function(){return null==this.option},t.prototype.restoreData=function(){},t.prototype.clone=function(){return new(0,this.constructor)((0,g.clone)(this.option))},t.prototype.parsePath=function(t){return"string"==typeof t?t.split("."):t},t.prototype.resolveParentPath=function(t){return t},t.prototype.isAnimationEnabled=function(){if(!i.A.node&&this.option){if(null!=this.option.animation)return!!this.option.animation;if(this.parentModel)return this.parentModel.isAnimationEnabled()}},t.prototype._doGet=function(t,e){var n=this.option;if(!t)return n;for(var i=0;i<t.length&&(!t[i]||null!=(n=n&&"object"==typeof n?n[t[i]]:null));i++);return null==n&&e&&(n=e._doGet(this.resolveParentPath(t),e.parentModel)),n},t}();(0,r.gq)(m),(0,r.Od)(m),(0,g.mixin)(m,p.J),(0,g.mixin)(m,f.s),(0,g.mixin)(m,a),(0,g.mixin)(m,d);const v=m},1996:(t,e,n)=>{"use strict";n.d(e,{A:()=>A,U:()=>v});var i=n(528),r=n(7845),o=n(4810),a=n(2577),s=n(9078),l=n(8644),h=n(5864),c=n(5872),u=n(1566),d=n(9902),p=n(4453),f=n(8254),g=a.$r();function m(t,e){return t.getName(e)||t.getId(e)}var v="__universalTransitionEnabled",y=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e._selectedDataIndicesMap={},e}var n;return(0,i.C6)(e,t),e.prototype.init=function(t,e,n){this.seriesIndex=this.componentIndex,this.dataTask=(0,u.U)({count:x,reset:b}),this.dataTask.context={model:this},this.mergeDefaultAndTheme(t,n),(g(this).sourceManager=new p.R(this)).prepareSource();var i=this.getInitialData(t,n);S(i,this),this.dataTask.context.data=i,g(this).dataBeforeProcessed=i,_(this),this._initSelectedMapFromData(i)},e.prototype.mergeDefaultAndTheme=function(t,e){var n=(0,c.ad)(this),i=n?(0,c.vs)(t):{},o=this.subType;s.A.hasClass(o)&&(o+="Series"),r.merge(t,e.getTheme().get(this.subType)),r.merge(t,this.getDefaultOption()),a.M5(t,"label",["show"]),this.fillDataTextStyle(t.data),n&&(0,c.YA)(t,i,n)},e.prototype.mergeOption=function(t,e){t=r.merge(this.option,t,!0),this.fillDataTextStyle(t.data);var n=(0,c.ad)(this);n&&(0,c.YA)(this.option,t,n);var i=g(this).sourceManager;i.dirty(),i.prepareSource();var o=this.getInitialData(t,e);S(o,this),this.dataTask.dirty(),this.dataTask.context.data=o,g(this).dataBeforeProcessed=o,_(this),this._initSelectedMapFromData(o)},e.prototype.fillDataTextStyle=function(t){if(t&&!r.isTypedArray(t))for(var e=["show"],n=0;n<t.length;n++)t[n]&&t[n].label&&a.M5(t[n],"label",e)},e.prototype.getInitialData=function(t,e){},e.prototype.appendData=function(t){this.getRawData().appendData(t.data)},e.prototype.getData=function(t){var e=M(this);if(e){var n=e.context.data;return null!=t&&n.getLinkedData?n.getLinkedData(t):n}return g(this).data},e.prototype.getAllData=function(){var t=this.getData();return t&&t.getLinkedDataAll?t.getLinkedDataAll():[{data:t}]},e.prototype.setData=function(t){var e=M(this);if(e){var n=e.context;n.outputData=t,e!==this.dataTask&&(n.data=t)}g(this).data=t},e.prototype.getEncode=function(){var t=this.get("encode",!0);if(t)return r.createHashMap(t)},e.prototype.getSourceManager=function(){return g(this).sourceManager},e.prototype.getSource=function(){return this.getSourceManager().getSource()},e.prototype.getRawData=function(){return g(this).dataBeforeProcessed},e.prototype.getColorBy=function(){return this.get("colorBy")||"series"},e.prototype.isColorBySeries=function(){return"series"===this.getColorBy()},e.prototype.getBaseAxis=function(){var t=this.coordinateSystem;return t&&t.getBaseAxis&&t.getBaseAxis()},e.prototype.formatTooltip=function(t,e,n){return(0,f.J)({series:this,dataIndex:t,multipleSeries:e})},e.prototype.isAnimationEnabled=function(){var t=this.ecModel;if(o.A.node&&(!t||!t.ssr))return!1;var e=this.getShallow("animation");return e&&this.getData().count()>this.getShallow("animationThreshold")&&(e=!1),!!e},e.prototype.restoreData=function(){this.dataTask.dirty()},e.prototype.getColorFromPalette=function(t,e,n){var i=this.ecModel,r=l.X.prototype.getColorFromPalette.call(this,t,e,n);return r||(r=i.getColorFromPalette(t,e,n)),r},e.prototype.coordDimToDataDim=function(t){return this.getRawData().mapDimensionsAll(t)},e.prototype.getProgressive=function(){return this.get("progressive")},e.prototype.getProgressiveThreshold=function(){return this.get("progressiveThreshold")},e.prototype.select=function(t,e){this._innerSelect(this.getData(e),t)},e.prototype.unselect=function(t,e){var n=this.option.selectedMap;if(n){var i=this.option.selectedMode,r=this.getData(e);if("series"===i||"all"===n)return this.option.selectedMap={},void(this._selectedDataIndicesMap={});for(var o=0;o<t.length;o++){var a=m(r,t[o]);n[a]=!1,this._selectedDataIndicesMap[a]=-1}}},e.prototype.toggleSelect=function(t,e){for(var n=[],i=0;i<t.length;i++)n[0]=t[i],this.isSelected(t[i],e)?this.unselect(n,e):this.select(n,e)},e.prototype.getSelectedDataIndices=function(){if("all"===this.option.selectedMap)return[].slice.call(this.getData().getIndices());for(var t=this._selectedDataIndicesMap,e=r.keys(t),n=[],i=0;i<e.length;i++){var o=t[e[i]];o>=0&&n.push(o)}return n},e.prototype.isSelected=function(t,e){var n=this.option.selectedMap;if(!n)return!1;var i=this.getData(e);return("all"===n||n[m(i,t)])&&!i.getItemModel(t).get(["select","disabled"])},e.prototype.isUniversalTransitionEnabled=function(){if(this[v])return!0;var t=this.option.universalTransition;return!!t&&(!0===t||t&&t.enabled)},e.prototype._innerSelect=function(t,e){var n,i,o=this.option,a=o.selectedMode,s=e.length;if(a&&s)if("series"===a)o.selectedMap="all";else if("multiple"===a){r.isObject(o.selectedMap)||(o.selectedMap={});for(var l=o.selectedMap,h=0;h<s;h++){var c=e[h];l[d=m(t,c)]=!0,this._selectedDataIndicesMap[d]=t.getRawIndex(c)}}else if("single"===a||!0===a){var u=e[s-1],d=m(t,u);o.selectedMap=((n={})[d]=!0,n),this._selectedDataIndicesMap=((i={})[d]=t.getRawIndex(u),i)}},e.prototype._initSelectedMapFromData=function(t){if(!this.option.selectedMap){var e=[];t.hasItemOption&&t.each((function(n){var i=t.getRawDataItem(n);i&&i.selected&&e.push(n)})),e.length>0&&this._innerSelect(t,e)}},e.registerClass=function(t){return s.A.registerClass(t)},e.protoInitialize=((n=e.prototype).type="series.__base__",n.seriesIndex=0,n.ignoreStyleOnData=!1,n.hasSymbolVisual=!1,n.defaultSymbol="circle",n.visualStyleAccessPath="itemStyle",void(n.visualDrawType="fill")),e}(s.A);function _(t){var e=t.name;a.O0(t)||(t.name=function(t){var e=t.getRawData(),n=e.mapDimensionsAll("seriesName"),i=[];return r.each(n,(function(t){var n=e.getDimensionInfo(t);n.displayName&&i.push(n.displayName)})),i.join(" ")}(t)||e)}function x(t){return t.model.getRawData().count()}function b(t){var e=t.model;return e.setData(e.getRawData().cloneShallow()),w}function w(t,e){e.outputData&&t.end>e.outputData.count()&&e.model.getRawData().cloneShallow(e.outputData)}function S(t,e){r.each(r.concatArray(t.CHANGABLE_METHODS,t.DOWNSAMPLE_METHODS),(function(n){t.wrapMethod(n,r.curry(T,e))}))}function T(t,e){var n=M(t);return n&&n.setOutputEnd((e||this).count()),e}function M(t){var e=(t.ecModel||{}).scheduler,n=e&&e.getPipeline(t.uid);if(n){var i=n.currentTask;if(i){var r=i.agentStubMap;r&&(i=r.get(t.uid))}return i}}r.mixin(y,h.J),r.mixin(y,l.X),(0,d.q7)(y,s.A);const A=y},7997:(t,e,n)=>{"use strict";n.d(e,{S:()=>o,a:()=>a});var i=n(7845),r=(0,i.createHashMap)();function o(t,e){(0,i.assert)(null==r.get(t)&&e),r.set(t,e)}function a(t,e,n){var i=r.get(e);if(!i)return n;var o=i(t);return o?n.concat(o):n}},5864:(t,e,n)=>{"use strict";n.d(e,{J:()=>s,L:()=>l});var i=n(7845),r=n(6112),o=n(5065),a=/\{@(.+?)\}/g,s=function(){function t(){}return t.prototype.getDataParams=function(t,e){var n=this.getData(e),i=this.getRawValue(t,e),r=n.getRawIndex(t),o=n.getName(t),a=n.getRawDataItem(t),s=n.getItemVisual(t,"style"),l=s&&s[n.getItemVisual(t,"drawType")||"fill"],h=s&&s.stroke,c=this.mainType,u="series"===c,d=n.userOutput&&n.userOutput.get();return{componentType:c,componentSubType:this.subType,componentIndex:this.componentIndex,seriesType:u?this.subType:null,seriesIndex:this.seriesIndex,seriesId:u?this.id:null,seriesName:u?this.name:null,name:o,dataIndex:r,data:a,dataType:e,value:i,color:l,borderColor:h,dimensionNames:d?d.fullDimensions:null,encode:d?d.encode:null,$vars:["seriesName","name","value"]}},t.prototype.getFormattedLabel=function(t,e,n,s,l,h){e=e||"normal";var c=this.getData(n),u=this.getDataParams(t,n);(h&&(u.value=h.interpolatedValue),null!=s&&i.isArray(u.value)&&(u.value=u.value[s]),l)||(l=c.getItemModel(t).get("normal"===e?["label","formatter"]:[e,"label","formatter"]));return i.isFunction(l)?(u.status=e,u.dimensionIndex=s,l(u)):i.isString(l)?(0,o.YK)(l,u).replace(a,(function(e,n){var o=n.length,a=n;"["===a.charAt(0)&&"]"===a.charAt(o-1)&&(a=+a.slice(1,o-1));var s=(0,r.QE)(c,t,a);if(h&&i.isArray(h.interpolatedValue)){var l=c.getDimensionIndex(a);l>=0&&(s=h.interpolatedValue[l])}return null!=s?s+"":""})):void 0},t.prototype.getRawValue=function(t,e){return(0,r.QE)(this.getData(e),t)},t.prototype.formatTooltip=function(t,e,n){},t}();function l(t){var e,n;return i.isObject(t)?t.type&&(n=t):e=t,{text:e,frag:n}}},3951:(t,e,n)=>{"use strict";n.d(e,{L:()=>r,s:()=>a});var i=n(4449),r=[["fill","color"],["stroke","borderColor"],["lineWidth","borderWidth"],["opacity"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["shadowColor"],["lineDash","borderType"],["lineDashOffset","borderDashOffset"],["lineCap","borderCap"],["lineJoin","borderJoin"],["miterLimit","borderMiterLimit"]],o=(0,i.A)(r),a=function(){function t(){}return t.prototype.getItemStyle=function(t,e){return o(this,t,e)},t}()},3404:(t,e,n)=>{"use strict";n.d(e,{J:()=>a,m:()=>r});var i=n(4449),r=[["lineWidth","width"],["stroke","color"],["opacity"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["shadowColor"],["lineDash","type"],["lineDashOffset","dashOffset"],["lineCap","cap"],["lineJoin","join"],["miterLimit"]],o=(0,i.A)(r),a=function(){function t(){}return t.prototype.getLineStyle=function(t){return o(this,t)},t}()},4449:(t,e,n)=>{"use strict";n.d(e,{A:()=>r});var i=n(7845);function r(t,e){for(var n=0;n<t.length;n++)t[n][1]||(t[n][1]=t[n][0]);return e=e||!1,function(n,r,o){for(var a={},s=0;s<t.length;s++){var l=t[s][1];if(!(r&&i.indexOf(r,l)>=0||o&&i.indexOf(o,l)<0)){var h=n.getShallow(l,e);null!=h&&(a[t[s][0]]=h)}}return a}}},8644:(t,e,n)=>{"use strict";n.d(e,{X:()=>a,x:()=>s});var i=n(2577),r=(0,i.$r)(),o=(0,i.$r)(),a=function(){function t(){}return t.prototype.getColorFromPalette=function(t,e,n){var o=(0,i.qB)(this.get("color",!0)),a=this.get("colorLayer",!0);return l(this,r,o,a,t,e,n)},t.prototype.clearColorPalette=function(){var t,e;(e=r)(t=this).paletteIdx=0,e(t).paletteNameMap={}},t}();function s(t,e,n,r){var a=(0,i.qB)(t.get(["aria","decal","decals"]));return l(t,o,a,null,e,n,r)}function l(t,e,n,i,r,o,a){var s=e(o=o||t),l=s.paletteIdx||0,h=s.paletteNameMap=s.paletteNameMap||{};if(h.hasOwnProperty(r))return h[r];var c=null!=a&&i?function(t,e){for(var n=t.length,i=0;i<n;i++)if(t[i].length>e)return t[i];return t[n-1]}(i,a):n;if((c=c||n)&&c.length){var u=c[l];return r&&(h[r]=u),s.paletteIdx=(l+1)%c.length,u}}},1829:(t,e,n)=>{"use strict";n.d(e,{a:()=>b});var i=n(2256),r=n(7845),o=n(528),a=n(2510),s=n(4804),l=n(674),h=n(5383),c=n(5667),u=n(9142);function d(t,e,n){var i=u.yh.createCanvas(),r=e.getWidth(),o=e.getHeight(),a=i.style;return a&&(a.position="absolute",a.left="0",a.top="0",a.width=r+"px",a.height=o+"px",i.setAttribute("data-zr-dom-id",t)),i.width=r*n,i.height=o*n,i}const p=function(t){function e(e,n,o){var a,s=t.call(this)||this;s.motionBlur=!1,s.lastFrameAlpha=.7,s.dpr=1,s.virtual=!1,s.config={},s.incremental=!1,s.zlevel=0,s.maxRepaintRectCount=5,s.__dirty=!0,s.__firstTimePaint=!0,s.__used=!1,s.__drawIndex=0,s.__startIndex=0,s.__endIndex=0,s.__prevStartIndex=null,s.__prevEndIndex=null,o=o||i.Y5,"string"==typeof e?a=d(e,n,o):r.isObject(e)&&(e=(a=e).id),s.id=e,s.dom=a;var l=a.style;return l&&(r.disableUserSelect(a),a.onselectstart=function(){return!1},l.padding="0",l.margin="0",l.borderWidth="0"),s.painter=n,s.dpr=o,s}return(0,o.C6)(e,t),e.prototype.getElementCount=function(){return this.__endIndex-this.__startIndex},e.prototype.afterBrush=function(){this.__prevStartIndex=this.__startIndex,this.__prevEndIndex=this.__endIndex},e.prototype.initContext=function(){this.ctx=this.dom.getContext("2d"),this.ctx.dpr=this.dpr},e.prototype.setUnpainted=function(){this.__firstTimePaint=!0},e.prototype.createBackBuffer=function(){var t=this.dpr;this.domBack=d("back-"+this.id,this.painter,t),this.ctxBack=this.domBack.getContext("2d"),1!==t&&this.ctxBack.scale(t,t)},e.prototype.createRepaintRects=function(t,e,n,i){if(this.__firstTimePaint)return this.__firstTimePaint=!1,null;var r,o=[],a=this.maxRepaintRectCount,s=!1,l=new h.A(0,0,0,0);function u(t){if(t.isFinite()&&!t.isZero())if(0===o.length){(e=new h.A(0,0,0,0)).copy(t),o.push(e)}else{for(var e,n=!1,i=1/0,r=0,c=0;c<o.length;++c){var u=o[c];if(u.intersect(t)){var d=new h.A(0,0,0,0);d.copy(u),d.union(t),o[c]=d,n=!0;break}if(s){l.copy(t),l.union(u);var p=t.width*t.height,f=u.width*u.height,g=l.width*l.height-p-f;g<i&&(i=g,r=c)}}if(s&&(o[r].union(t),n=!0),!n)(e=new h.A(0,0,0,0)).copy(t),o.push(e);s||(s=o.length>=a)}}for(var d=this.__startIndex;d<this.__endIndex;++d){if(g=t[d]){var p=g.shouldBePainted(n,i,!0,!0);(m=g.__isRendered&&(g.__dirty&c.M||!p)?g.getPrevPaintRect():null)&&u(m);var f=p&&(g.__dirty&c.M||!g.__isRendered)?g.getPaintRect():null;f&&u(f)}}for(d=this.__prevStartIndex;d<this.__prevEndIndex;++d){var g,m;p=(g=e[d])&&g.shouldBePainted(n,i,!0,!0);if(g&&(!p||!g.__zr)&&g.__isRendered)(m=g.getPrevPaintRect())&&u(m)}do{r=!1;for(d=0;d<o.length;)if(o[d].isZero())o.splice(d,1);else{for(var v=d+1;v<o.length;)o[d].intersect(o[v])?(r=!0,o[d].union(o[v]),o.splice(v,1)):v++;d++}}while(r);return this._paintRects=o,o},e.prototype.debugGetPaintRects=function(){return(this._paintRects||[]).slice()},e.prototype.resize=function(t,e){var n=this.dpr,i=this.dom,r=i.style,o=this.domBack;r&&(r.width=t+"px",r.height=e+"px"),i.width=t*n,i.height=e*n,o&&(o.width=t*n,o.height=e*n,1!==n&&this.ctxBack.scale(n,n))},e.prototype.clear=function(t,e,n){var i=this.dom,o=this.ctx,a=i.width,h=i.height;e=e||this.clearColor;var c=this.motionBlur&&!t,u=this.lastFrameAlpha,d=this.dpr,p=this;c&&(this.domBack||this.createBackBuffer(),this.ctxBack.globalCompositeOperation="copy",this.ctxBack.drawImage(i,0,0,a/d,h/d));var f=this.domBack;function g(t,n,i,a){if(o.clearRect(t,n,i,a),e&&"transparent"!==e){var h=void 0;if(r.isGradientObject(e))h=(e.global||e.__width===i&&e.__height===a)&&e.__canvasGradient||(0,s.Ff)(o,e,{x:0,y:0,width:i,height:a}),e.__canvasGradient=h,e.__width=i,e.__height=a;else r.isImagePatternObject(e)&&(e.scaleX=e.scaleX||d,e.scaleY=e.scaleY||d,h=(0,l.ZQ)(o,e,{dirty:function(){p.setUnpainted(),p.painter.refresh()}}));o.save(),o.fillStyle=h||e,o.fillRect(t,n,i,a),o.restore()}c&&(o.save(),o.globalAlpha=u,o.drawImage(f,t,n,i,a),o.restore())}!n||c?g(0,0,a,h):n.length&&r.each(n,(function(t){g(t.x*d,t.y*d,t.width*d,t.height*d)}))},e}(a.A);var f=n(3358),g=n(4810),m=1e5,v=314159,y=.01;var _=function(){function t(t,e,n,o){this.type="canvas",this._zlevelList=[],this._prevDisplayList=[],this._layers={},this._layerConfig={},this._needsManuallyCompositing=!1,this.type="canvas";var a=!t.nodeName||"CANVAS"===t.nodeName.toUpperCase();this._opts=n=r.extend({},n||{}),this.dpr=n.devicePixelRatio||i.Y5,this._singleCanvas=a,this.root=t,t.style&&(r.disableUserSelect(t),t.innerHTML=""),this.storage=e;var l=this._zlevelList;this._prevDisplayList=[];var h=this._layers;if(a){var c=t,u=c.width,d=c.height;null!=n.width&&(u=n.width),null!=n.height&&(d=n.height),this.dpr=n.devicePixelRatio||1,c.width=u*this.dpr,c.height=d*this.dpr,this._width=u,this._height=d;var f=new p(c,this,this.dpr);f.__builtin__=!0,f.initContext(),h[314159]=f,f.zlevel=v,l.push(v),this._domRoot=t}else{this._width=(0,s.YC)(t,0,n),this._height=(0,s.YC)(t,1,n);var g=this._domRoot=function(t,e){var n=document.createElement("div");return n.style.cssText=["position:relative","width:"+t+"px","height:"+e+"px","padding:0","margin:0","border-width:0"].join(";")+";",n}(this._width,this._height);t.appendChild(g)}}return t.prototype.getType=function(){return"canvas"},t.prototype.isSingleCanvas=function(){return this._singleCanvas},t.prototype.getViewportRoot=function(){return this._domRoot},t.prototype.getViewportRootOffset=function(){var t=this.getViewportRoot();if(t)return{offsetLeft:t.offsetLeft||0,offsetTop:t.offsetTop||0}},t.prototype.refresh=function(t){var e=this.storage.getDisplayList(!0),n=this._prevDisplayList,i=this._zlevelList;this._redrawId=Math.random(),this._paintList(e,n,t,this._redrawId);for(var r=0;r<i.length;r++){var o=i[r],a=this._layers[o];if(!a.__builtin__&&a.refresh){var s=0===r?this._backgroundColor:null;a.refresh(s)}}return this._opts.useDirtyRect&&(this._prevDisplayList=e.slice()),this},t.prototype.refreshHover=function(){this._paintHoverList(this.storage.getDisplayList(!1))},t.prototype._paintHoverList=function(t){var e=t.length,n=this._hoverlayer;if(n&&n.clear(),e){for(var i,r={inHover:!0,viewWidth:this._width,viewHeight:this._height},o=0;o<e;o++){var a=t[o];a.__inHover&&(n||(n=this._hoverlayer=this.getLayer(m)),i||(i=n.ctx).save(),(0,l.V$)(i,a,r,o===e-1))}i&&i.restore()}},t.prototype.getHoverLayer=function(){return this.getLayer(m)},t.prototype.paintOne=function(t,e){(0,l.Xi)(t,e)},t.prototype._paintList=function(t,e,n,i){if(this._redrawId===i){n=n||!1,this._updateLayerStatus(t);var r=this._doPaintList(t,e,n),o=r.finished,a=r.needsRefreshHover;if(this._needsManuallyCompositing&&this._compositeManually(),a&&this._paintHoverList(t),o)this.eachLayer((function(t){t.afterBrush&&t.afterBrush()}));else{var s=this;(0,f.A)((function(){s._paintList(t,e,n,i)}))}}},t.prototype._compositeManually=function(){var t=this.getLayer(v).ctx,e=this._domRoot.width,n=this._domRoot.height;t.clearRect(0,0,e,n),this.eachBuiltinLayer((function(i){i.virtual&&t.drawImage(i.dom,0,0,e,n)}))},t.prototype._doPaintList=function(t,e,n){for(var i=this,o=[],a=this._opts.useDirtyRect,s=0;s<this._zlevelList.length;s++){var l=this._zlevelList[s],h=this._layers[l];h.__builtin__&&h!==this._hoverlayer&&(h.__dirty||n)&&o.push(h)}for(var c=!0,u=!1,d=function(r){var s,l=o[r],h=l.ctx,d=a&&l.createRepaintRects(t,e,p._width,p._height),f=n?l.__startIndex:l.__drawIndex,g=!n&&l.incremental&&Date.now,m=g&&Date.now(),v=l.zlevel===p._zlevelList[0]?p._backgroundColor:null;if(l.__startIndex===l.__endIndex)l.clear(!1,v,d);else if(f===l.__startIndex){var y=t[f];y.incremental&&y.notClear&&!n||l.clear(!1,v,d)}-1===f&&(console.error("For some unknown reason. drawIndex is -1"),f=l.__startIndex);var _=function(e){var n={inHover:!1,allClipped:!1,prevEl:null,viewWidth:i._width,viewHeight:i._height};for(s=f;s<l.__endIndex;s++){var r=t[s];if(r.__inHover&&(u=!0),i._doPaintEl(r,l,a,e,n,s===l.__endIndex-1),g)if(Date.now()-m>15)break}n.prevElClipPaths&&h.restore()};if(d)if(0===d.length)s=l.__endIndex;else for(var x=p.dpr,b=0;b<d.length;++b){var w=d[b];h.save(),h.beginPath(),h.rect(w.x*x,w.y*x,w.width*x,w.height*x),h.clip(),_(w),h.restore()}else h.save(),_(),h.restore();l.__drawIndex=s,l.__drawIndex<l.__endIndex&&(c=!1)},p=this,f=0;f<o.length;f++)d(f);return g.A.wxa&&r.each(this._layers,(function(t){t&&t.ctx&&t.ctx.draw&&t.ctx.draw()})),{finished:c,needsRefreshHover:u}},t.prototype._doPaintEl=function(t,e,n,i,r,o){var a=e.ctx;if(n){var s=t.getPaintRect();(!i||s&&s.intersect(i))&&((0,l.V$)(a,t,r,o),t.setPrevPaintRect(s))}else(0,l.V$)(a,t,r,o)},t.prototype.getLayer=function(t,e){this._singleCanvas&&!this._needsManuallyCompositing&&(t=v);var n=this._layers[t];return n||((n=new p("zr_"+t,this,this.dpr)).zlevel=t,n.__builtin__=!0,this._layerConfig[t]?r.merge(n,this._layerConfig[t],!0):this._layerConfig[t-y]&&r.merge(n,this._layerConfig[t-y],!0),e&&(n.virtual=e),this.insertLayer(t,n),n.initContext()),n},t.prototype.insertLayer=function(t,e){var n=this._layers,i=this._zlevelList,r=i.length,o=this._domRoot,a=null,s=-1;if(!n[t]&&function(t){return!!t&&(!!t.__builtin__||"function"==typeof t.resize&&"function"==typeof t.refresh)}(e)){if(r>0&&t>i[0]){for(s=0;s<r-1&&!(i[s]<t&&i[s+1]>t);s++);a=n[i[s]]}if(i.splice(s+1,0,t),n[t]=e,!e.virtual)if(a){var l=a.dom;l.nextSibling?o.insertBefore(e.dom,l.nextSibling):o.appendChild(e.dom)}else o.firstChild?o.insertBefore(e.dom,o.firstChild):o.appendChild(e.dom);e.painter||(e.painter=this)}},t.prototype.eachLayer=function(t,e){for(var n=this._zlevelList,i=0;i<n.length;i++){var r=n[i];t.call(e,this._layers[r],r)}},t.prototype.eachBuiltinLayer=function(t,e){for(var n=this._zlevelList,i=0;i<n.length;i++){var r=n[i],o=this._layers[r];o.__builtin__&&t.call(e,o,r)}},t.prototype.eachOtherLayer=function(t,e){for(var n=this._zlevelList,i=0;i<n.length;i++){var r=n[i],o=this._layers[r];o.__builtin__||t.call(e,o,r)}},t.prototype.getLayers=function(){return this._layers},t.prototype._updateLayerStatus=function(t){function e(t){a&&(a.__endIndex!==t&&(a.__dirty=!0),a.__endIndex=t)}if(this.eachBuiltinLayer((function(t,e){t.__dirty=t.__used=!1})),this._singleCanvas)for(var n=1;n<t.length;n++){if((l=t[n]).zlevel!==t[n-1].zlevel||l.incremental){this._needsManuallyCompositing=!0;break}}var i,o,a=null,s=0;for(o=0;o<t.length;o++){var l,h=(l=t[o]).zlevel,u=void 0;i!==h&&(i=h,s=0),l.incremental?((u=this.getLayer(h+.001,this._needsManuallyCompositing)).incremental=!0,s=1):u=this.getLayer(h+(s>0?y:0),this._needsManuallyCompositing),u.__builtin__||r.logError("ZLevel "+h+" has been used by unkown layer "+u.id),u!==a&&(u.__used=!0,u.__startIndex!==o&&(u.__dirty=!0),u.__startIndex=o,u.incremental?u.__drawIndex=-1:u.__drawIndex=o,e(o),a=u),l.__dirty&c.M&&!l.__inHover&&(u.__dirty=!0,u.incremental&&u.__drawIndex<0&&(u.__drawIndex=o))}e(o),this.eachBuiltinLayer((function(t,e){!t.__used&&t.getElementCount()>0&&(t.__dirty=!0,t.__startIndex=t.__endIndex=t.__drawIndex=0),t.__dirty&&t.__drawIndex<0&&(t.__drawIndex=t.__startIndex)}))},t.prototype.clear=function(){return this.eachBuiltinLayer(this._clearLayer),this},t.prototype._clearLayer=function(t){t.clear()},t.prototype.setBackgroundColor=function(t){this._backgroundColor=t,r.each(this._layers,(function(t){t.setUnpainted()}))},t.prototype.configLayer=function(t,e){if(e){var n=this._layerConfig;n[t]?r.merge(n[t],e,!0):n[t]=e;for(var i=0;i<this._zlevelList.length;i++){var o=this._zlevelList[i];if(o===t||o===t+y){var a=this._layers[o];r.merge(a,n[t],!0)}}}},t.prototype.delLayer=function(t){var e=this._layers,n=this._zlevelList,i=e[t];i&&(i.dom.parentNode.removeChild(i.dom),delete e[t],n.splice(r.indexOf(n,t),1))},t.prototype.resize=function(t,e){if(this._domRoot.style){var n=this._domRoot;n.style.display="none";var i=this._opts,r=this.root;if(null!=t&&(i.width=t),null!=e&&(i.height=e),t=(0,s.YC)(r,0,i),e=(0,s.YC)(r,1,i),n.style.display="",this._width!==t||e!==this._height){for(var o in n.style.width=t+"px",n.style.height=e+"px",this._layers)this._layers.hasOwnProperty(o)&&this._layers[o].resize(t,e);this.refresh(!0)}this._width=t,this._height=e}else{if(null==t||null==e)return;this._width=t,this._height=e,this.getLayer(v).resize(t,e)}return this},t.prototype.clearLayer=function(t){var e=this._layers[t];e&&e.clear()},t.prototype.dispose=function(){this.root.innerHTML="",this.root=this.storage=this._domRoot=this._layers=null},t.prototype.getRenderedCanvas=function(t){if(t=t||{},this._singleCanvas&&!this._compositeManually)return this._layers[314159].dom;var e=new p("image",this,t.pixelRatio||this.dpr);e.initContext(),e.clear(!1,t.backgroundColor||this._backgroundColor);var n=e.ctx;if(t.pixelRatio<=this.dpr){this.refresh();var i=e.dom.width,r=e.dom.height;this.eachLayer((function(t){t.__builtin__?n.drawImage(t.dom,0,0,i,r):t.renderToCanvas&&(n.save(),t.renderToCanvas(n),n.restore())}))}else for(var o={inHover:!1,viewWidth:this._width,viewHeight:this._height},a=this.storage.getDisplayList(!0),s=0,h=a.length;s<h;s++){var c=a[s];(0,l.V$)(n,c,o,s===h-1)}return e.dom},t.prototype.getWidth=function(){return this._width},t.prototype.getHeight=function(){return this._height},t}();const x=_;function b(t){t.registerPainter("canvas",x)}},2670:(t,e,n)=>{"use strict";n.d(e,{A:()=>c});var i=n(528),r=n(8883),o=n(5065),a=n(9476),s=n(3115),l=r.LI,h=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="interval",e._interval=0,e._intervalPrecision=2,e}return(0,i.C6)(e,t),e.prototype.parse=function(t){return t},e.prototype.contain=function(t){return s.lP(t,this._extent)},e.prototype.normalize=function(t){return s.S8(t,this._extent)},e.prototype.scale=function(t){return s.hs(t,this._extent)},e.prototype.setExtent=function(t,e){var n=this._extent;isNaN(t)||(n[0]=parseFloat(t)),isNaN(e)||(n[1]=parseFloat(e))},e.prototype.unionExtent=function(t){var e=this._extent;t[0]<e[0]&&(e[0]=t[0]),t[1]>e[1]&&(e[1]=t[1]),this.setExtent(e[0],e[1])},e.prototype.getInterval=function(){return this._interval},e.prototype.setInterval=function(t){this._interval=t,this._niceExtent=this._extent.slice(),this._intervalPrecision=s.u$(t)},e.prototype.getTicks=function(t){var e=this._interval,n=this._extent,i=this._niceExtent,r=this._intervalPrecision,o=[];if(!e)return o;n[0]<i[0]&&(t?o.push({value:l(i[0]-e,r)}):o.push({value:n[0]}));for(var a=i[0];a<=i[1]&&(o.push({value:a}),(a=l(a+e,r))!==o[o.length-1].value);)if(o.length>1e4)return[];var s=o.length?o[o.length-1].value:i[1];return n[1]>s&&(t?o.push({value:l(s+e,r)}):o.push({value:n[1]})),o},e.prototype.getMinorTicks=function(t){for(var e=this.getTicks(!0),n=[],i=this.getExtent(),r=1;r<e.length;r++){for(var o=e[r],a=e[r-1],s=0,h=[],c=(o.value-a.value)/t;s<t-1;){var u=l(a.value+(s+1)*c);u>i[0]&&u<i[1]&&h.push(u),s++}n.push(h)}return n},e.prototype.getLabel=function(t,e){if(null==t)return"";var n=e&&e.precision;null==n?n=r.XV(t.value)||0:"auto"===n&&(n=this._intervalPrecision);var i=l(t.value,n,!0);return o.ob(i)},e.prototype.calcNiceTicks=function(t,e,n){t=t||5;var i=this._extent,r=i[1]-i[0];if(isFinite(r)){r<0&&(r=-r,i.reverse());var o=s.xh(i,t,e,n);this._intervalPrecision=o.intervalPrecision,this._interval=o.interval,this._niceExtent=o.niceTickExtent}},e.prototype.calcNiceExtent=function(t){var e=this._extent;if(e[0]===e[1])if(0!==e[0]){var n=Math.abs(e[0]);t.fixMax||(e[1]+=n/2),e[0]-=n/2}else e[1]=1;var i=e[1]-e[0];isFinite(i)||(e[0]=0,e[1]=1),this.calcNiceTicks(t.splitNumber,t.minInterval,t.maxInterval);var r=this._interval;t.fixMin||(e[0]=l(Math.floor(e[0]/r)*r)),t.fixMax||(e[1]=l(Math.ceil(e[1]/r)*r))},e.prototype.setNiceExtent=function(t,e){this._niceExtent=[t,e]},e.type="interval",e}(a.A);a.A.registerClass(h);const c=h},1707:(t,e,n)=>{"use strict";n.d(e,{A:()=>h});var i=n(528),r=n(9476),o=n(3519),a=n(3115),s=n(7845),l=function(t){function e(e){var n=t.call(this,e)||this;n.type="ordinal";var i=n.getSetting("ordinalMeta");return i||(i=new o.A({})),(0,s.isArray)(i)&&(i=new o.A({categories:(0,s.map)(i,(function(t){return(0,s.isObject)(t)?t.value:t}))})),n._ordinalMeta=i,n._extent=n.getSetting("extent")||[0,i.categories.length-1],n}return(0,i.C6)(e,t),e.prototype.parse=function(t){return null==t?NaN:(0,s.isString)(t)?this._ordinalMeta.getOrdinal(t):Math.round(t)},e.prototype.contain=function(t){return t=this.parse(t),a.lP(t,this._extent)&&null!=this._ordinalMeta.categories[t]},e.prototype.normalize=function(t){return t=this._getTickNumber(this.parse(t)),a.S8(t,this._extent)},e.prototype.scale=function(t){return t=Math.round(a.hs(t,this._extent)),this.getRawOrdinalNumber(t)},e.prototype.getTicks=function(){for(var t=[],e=this._extent,n=e[0];n<=e[1];)t.push({value:n}),n++;return t},e.prototype.getMinorTicks=function(t){},e.prototype.setSortInfo=function(t){if(null!=t){for(var e=t.ordinalNumbers,n=this._ordinalNumbersByTick=[],i=this._ticksByOrdinalNumber=[],r=0,o=this._ordinalMeta.categories.length,a=Math.min(o,e.length);r<a;++r){var s=e[r];n[r]=s,i[s]=r}for(var l=0;r<o;++r){for(;null!=i[l];)l++;n.push(l),i[l]=r}}else this._ordinalNumbersByTick=this._ticksByOrdinalNumber=null},e.prototype._getTickNumber=function(t){var e=this._ticksByOrdinalNumber;return e&&t>=0&&t<e.length?e[t]:t},e.prototype.getRawOrdinalNumber=function(t){var e=this._ordinalNumbersByTick;return e&&t>=0&&t<e.length?e[t]:t},e.prototype.getLabel=function(t){if(!this.isBlank()){var e=this.getRawOrdinalNumber(t.value),n=this._ordinalMeta.categories[e];return null==n?"":n+""}},e.prototype.count=function(){return this._extent[1]-this._extent[0]+1},e.prototype.unionExtentFromData=function(t,e){this.unionExtent(t.getApproximateExtent(e))},e.prototype.isInExtentRange=function(t){return t=this._getTickNumber(t),this._extent[0]<=t&&this._extent[1]>=t},e.prototype.getOrdinalMeta=function(){return this._ordinalMeta},e.prototype.calcNiceTicks=function(){},e.prototype.calcNiceExtent=function(){},e.type="ordinal",e}(r.A);r.A.registerClass(l);const h=l},9476:(t,e,n)=>{"use strict";n.d(e,{A:()=>o});var i=n(9902),r=function(){function t(t){this._setting=t||{},this._extent=[1/0,-1/0]}return t.prototype.getSetting=function(t){return this._setting[t]},t.prototype.unionExtent=function(t){var e=this._extent;t[0]<e[0]&&(e[0]=t[0]),t[1]>e[1]&&(e[1]=t[1])},t.prototype.unionExtentFromData=function(t,e){this.unionExtent(t.getApproximateExtent(e))},t.prototype.getExtent=function(){return this._extent.slice()},t.prototype.setExtent=function(t,e){var n=this._extent;isNaN(t)||(n[0]=t),isNaN(e)||(n[1]=e)},t.prototype.isInExtentRange=function(t){return this._extent[0]<=t&&this._extent[1]>=t},t.prototype.isBlank=function(){return this._isBlank},t.prototype.setBlank=function(t){this._isBlank=t},t}();i.tQ(r);const o=r},8689:(t,e,n)=>{"use strict";n.d(e,{A:()=>y});var i=n(528),r=n(8883),o=n(383),a=n(3115),s=n(2670),l=n(9476),h=n(7845),c=function(t){function e(e){var n=t.call(this,e)||this;return n.type="time",n}return(0,i.C6)(e,t),e.prototype.getLabel=function(t){var e=this.getSetting("useUTC");return(0,o.GP)(t.value,o.Lm[(0,o.$9)((0,o.ym)(this._minLevelUnit))]||o.Lm.second,e,this.getSetting("locale"))},e.prototype.getFormattedLabel=function(t,e,n){var i=this.getSetting("useUTC"),r=this.getSetting("locale");return(0,o.X_)(t,e,n,r,i)},e.prototype.getTicks=function(){var t=this._interval,e=this._extent,n=[];if(!t)return n;n.push({value:e[0],level:0});var i=this.getSetting("useUTC"),a=function(t,e,n,i){var a=1e4,s=o.F7,l=0;function c(t,e,n,r,o,a,s){for(var l=new Date(e),h=e,c=l[r]();h<n&&h<=i[1];)s.push({value:h}),c+=t,l[o](c),h=l.getTime();s.push({value:h,notAdd:!0})}function u(t,a,s){var l=[],h=!a.length;if(!function(t,e,n,i){var a=r._U(e),s=r._U(n),l=function(t){return(0,o.g0)(a,t,i)===(0,o.g0)(s,t,i)},h=function(){return l("year")},c=function(){return h()&&l("month")},u=function(){return c()&&l("day")},d=function(){return u()&&l("hour")},p=function(){return d()&&l("minute")},f=function(){return p()&&l("second")},g=function(){return f()&&l("millisecond")};switch(t){case"year":return h();case"month":return c();case"day":return u();case"hour":return d();case"minute":return p();case"second":return f();case"millisecond":return g()}}((0,o.ym)(t),i[0],i[1],n)){h&&(a=[{value:v(new Date(i[0]),t,n)},{value:i[1]}]);for(var u=0;u<a.length-1;u++){var y=a[u].value,_=a[u+1].value;if(y!==_){var x=void 0,b=void 0,w=void 0,S=!1;switch(t){case"year":x=Math.max(1,Math.round(e/o.CZ/365)),b=(0,o.hY)(n),w=(0,o.tM)(n);break;case"half-year":case"quarter":case"month":x=p(e),b=(0,o.jJ)(n),w=(0,o.xu)(n);break;case"week":case"half-week":case"day":x=d(e,31),b=(0,o.bP)(n),w=(0,o.ti)(n),S=!0;break;case"half-day":case"quarter-day":case"hour":x=f(e),b=(0,o.iC)(n),w=(0,o.Yd)(n);break;case"minute":x=g(e,!0),b=(0,o.yB)(n),w=(0,o.KF)(n);break;case"second":x=g(e,!1),b=(0,o.Wf)(n),w=(0,o.ww)(n);break;case"millisecond":x=m(e),b=(0,o.Zz)(n),w=(0,o.FP)(n)}c(x,y,_,b,w,S,l),"year"===t&&s.length>1&&0===u&&s.unshift({value:s[0].value-x})}}for(u=0;u<l.length;u++)s.push(l[u]);return l}}for(var y=[],_=[],x=0,b=0,w=0;w<s.length&&l++<a;++w){var S=(0,o.ym)(s[w]);if((0,o.ce)(s[w]))if(u(s[w],y[y.length-1]||[],_),S!==(s[w+1]?(0,o.ym)(s[w+1]):null)){if(_.length){b=x,_.sort((function(t,e){return t.value-e.value}));for(var T=[],M=0;M<_.length;++M){var A=_[M].value;0!==M&&_[M-1].value===A||(T.push(_[M]),A>=i[0]&&A<=i[1]&&x++)}var C=(i[1]-i[0])/e;if(x>1.5*C&&b>C/1.5)break;if(y.push(T),x>C||t===s[w])break}_=[]}}0;var I=(0,h.filter)((0,h.map)(y,(function(t){return(0,h.filter)(t,(function(t){return t.value>=i[0]&&t.value<=i[1]&&!t.notAdd}))})),(function(t){return t.length>0})),E=[],k=I.length-1;for(w=0;w<I.length;++w)for(var L=I[w],D=0;D<L.length;++D)E.push({value:L[D].value,level:k-w});E.sort((function(t,e){return t.value-e.value}));var P=[];for(w=0;w<E.length;++w)0!==w&&E[w].value===E[w-1].value||P.push(E[w]);return P}(this._minLevelUnit,this._approxInterval,i,e);return(n=n.concat(a)).push({value:e[1],level:0}),n},e.prototype.calcNiceExtent=function(t){var e=this._extent;if(e[0]===e[1]&&(e[0]-=o.CZ,e[1]+=o.CZ),e[1]===-1/0&&e[0]===1/0){var n=new Date;e[1]=+new Date(n.getFullYear(),n.getMonth(),n.getDate()),e[0]=e[1]-o.CZ}this.calcNiceTicks(t.splitNumber,t.minInterval,t.maxInterval)},e.prototype.calcNiceTicks=function(t,e,n){t=t||10;var i=this._extent,r=i[1]-i[0];this._approxInterval=r/t,null!=e&&this._approxInterval<e&&(this._approxInterval=e),null!=n&&this._approxInterval>n&&(this._approxInterval=n);var o=u.length,a=Math.min(function(t,e,n,i){for(;n<i;){var r=n+i>>>1;t[r][1]<e?n=r+1:i=r}return n}(u,this._approxInterval,0,o),o-1);this._interval=u[a][1],this._minLevelUnit=u[Math.max(a-1,0)][0]},e.prototype.parse=function(t){return(0,h.isNumber)(t)?t:+r._U(t)},e.prototype.contain=function(t){return a.lP(this.parse(t),this._extent)},e.prototype.normalize=function(t){return a.S8(this.parse(t),this._extent)},e.prototype.scale=function(t){return a.hs(t,this._extent)},e.type="time",e}(s.A),u=[["second",o.OY],["minute",o.iW],["hour",o.MA],["quarter-day",6*o.MA],["half-day",12*o.MA],["day",1.2*o.CZ],["half-week",3.5*o.CZ],["week",7*o.CZ],["month",31*o.CZ],["quarter",95*o.CZ],["half-year",o.$H/2],["year",o.$H]];function d(t,e){return(t/=o.CZ)>16?16:t>7.5?7:t>3.5?4:t>1.5?2:1}function p(t){return(t/=30*o.CZ)>6?6:t>3?3:t>2?2:1}function f(t){return(t/=o.MA)>12?12:t>6?6:t>3.5?4:t>2?2:1}function g(t,e){return(t/=e?o.iW:o.OY)>30?30:t>20?20:t>15?15:t>10?10:t>5?5:t>2?2:1}function m(t){return r.Cm(t,!0)}function v(t,e,n){var i=new Date(t);switch((0,o.ym)(e)){case"year":case"month":i[(0,o.xu)(n)](0);case"day":i[(0,o.ti)(n)](1);case"hour":i[(0,o.Yd)(n)](0);case"minute":i[(0,o.KF)(n)](0);case"second":i[(0,o.ww)(n)](0),i[(0,o.FP)(n)](0)}return i.getTime()}l.A.registerClass(c);const y=c},3115:(t,e,n)=>{"use strict";n.d(e,{S8:()=>c,hs:()=>u,kH:()=>a,lP:()=>h,rf:()=>r,u$:()=>s,xh:()=>o});var i=n(8883);function r(t){return"interval"===t.type||"log"===t.type}function o(t,e,n,r){var o={},a=t[1]-t[0],h=o.interval=(0,i.Cm)(a/e,!0);null!=n&&h<n&&(h=o.interval=n),null!=r&&h>r&&(h=o.interval=r);var c=o.intervalPrecision=s(h);return function(t,e){!isFinite(t[0])&&(t[0]=e[0]),!isFinite(t[1])&&(t[1]=e[1]),l(t,0,e),l(t,1,e),t[0]>t[1]&&(t[0]=t[1])}(o.niceTickExtent=[(0,i.LI)(Math.ceil(t[0]/h)*h,c),(0,i.LI)(Math.floor(t[1]/h)*h,c)],t),o}function a(t){var e=Math.pow(10,(0,i.NX)(t)),n=t/e;return n?2===n?n=3:3===n?n=5:n*=2:n=1,(0,i.LI)(n*e)}function s(t){return(0,i.XV)(t)+2}function l(t,e,n){t[e]=Math.max(Math.min(t[e],n[1]),n[0])}function h(t,e){return t>=e[0]&&t<=e[1]}function c(t,e){return e[1]===e[0]?.5:(t-e[0])/(e[1]-e[0])}function u(t,e){return t*(e[1]-e[0])+e[0]}},9902:(t,e,n)=>{"use strict";n.d(e,{CC:()=>l,Od:()=>p,_E:()=>h,gq:()=>c,q7:()=>u,tQ:()=>m});var i=n(528),r=n(7845),o=".",a="___EC__COMPONENT__CONTAINER___",s="___EC__EXTENDED_CLASS___";function l(t){var e={main:"",sub:""};if(t){var n=t.split(o);e.main=n[0]||"",e.sub=n[1]||""}return e}function h(t){return!(!t||!t[s])}function c(t,e){t.$constructor=t,t.extend=function(t){var e,n,o=this;return n=o,r.isFunction(n)&&/^class\s/.test(Function.prototype.toString.call(n))?e=function(t){function e(){return t.apply(this,arguments)||this}return(0,i.C6)(e,t),e}(o):(e=function(){(t.$constructor||o).apply(this,arguments)},r.inherits(e,this)),r.extend(e.prototype,t),e[s]=!0,e.extend=this.extend,e.superCall=f,e.superApply=g,e.superClass=o,e}}function u(t,e){t.extend=e.extend}var d=Math.round(10*Math.random());function p(t){var e=["__\0is_clz",d++].join("_");t.prototype[e]=!0,t.isInstance=function(t){return!(!t||!t[e])}}function f(t,e){for(var n=[],i=2;i<arguments.length;i++)n[i-2]=arguments[i];return this.superClass.prototype[e].apply(t,n)}function g(t,e,n){return this.superClass.prototype[e].apply(t,n)}function m(t){var e={};t.registerClass=function(t){var n,i=t.type||t.prototype.type;if(i){n=i,r.assert(/^[a-zA-Z0-9_]+([.][a-zA-Z0-9_]+)?$/.test(n),'componentType "'+n+'" illegal'),t.prototype.type=i;var o=l(i);if(o.sub){if(o.sub!==a){var s=function(t){var n=e[t.main];n&&n[a]||((n=e[t.main]={})[a]=!0);return n}(o);s[o.sub]=t}}else e[o.main]=t}return t},t.getClass=function(t,n,i){var r=e[t];if(r&&r[a]&&(r=n?r[n]:null),i&&!r)throw new Error(n?"Component "+t+"."+(n||"")+" is used but not imported.":t+".type should be specified.");return r},t.getClassesByMainType=function(t){var n=l(t),i=[],o=e[n.main];return o&&o[a]?r.each(o,(function(t,e){e!==a&&i.push(t)})):i.push(o),i},t.hasClass=function(t){var n=l(t);return!!e[n.main]},t.getAllClassMainTypes=function(){var t=[];return r.each(e,(function(e,n){t.push(n)})),t},t.hasSubTypes=function(t){var n=l(t),i=e[n.main];return i&&i[a]}}},1987:(t,e,n)=>{"use strict";n.d(e,{$Q:()=>a,A6:()=>s,G_:()=>h,vf:()=>l});var i=n(7845),r=n(9902),o=Math.round(10*Math.random());function a(t){return[t||"",o++].join("_")}function s(t){var e={};t.registerSubTypeDefaulter=function(t,n){var i=(0,r.CC)(t);e[i.main]=n},t.determineSubType=function(n,i){var o=i.type;if(!o){var a=(0,r.CC)(n).main;t.hasSubTypes(n)&&e[a]&&(o=e[a](i))}return o}}function l(t,e){function n(t,e){return t[e]||(t[e]={predecessor:[],successor:[]}),t[e]}t.topologicalTravel=function(t,r,o,a){if(t.length){var s=function(t){var r={},o=[];return i.each(t,(function(a){var s=n(r,a),l=function(t,e){var n=[];return i.each(t,(function(t){i.indexOf(e,t)>=0&&n.push(t)})),n}(s.originalDeps=e(a),t);s.entryCount=l.length,0===s.entryCount&&o.push(a),i.each(l,(function(t){i.indexOf(s.predecessor,t)<0&&s.predecessor.push(t);var e=n(r,t);i.indexOf(e.successor,t)<0&&e.successor.push(a)}))})),{graph:r,noEntryList:o}}(r),l=s.graph,h=s.noEntryList,c={};for(i.each(t,(function(t){c[t]=!0}));h.length;){var u=h.pop(),d=l[u],p=!!c[u];p&&(o.call(a,u,d.originalDeps.slice()),delete c[u]),i.each(d.successor,p?g:f)}i.each(c,(function(){throw new Error("")}))}function f(t){l[t].entryCount--,0===l[t].entryCount&&h.push(t)}function g(t){c[t]=!0,f(t)}}}function h(t,e){return i.merge(i.merge({},t,!0),e,!0)}},2863:(t,e,n)=>{"use strict";n.d(e,{w:()=>g});var i=Math.round(9*Math.random()),r="function"==typeof Object.defineProperty;const o=function(){function t(){this._id="__ec_inner_"+i++}return t.prototype.get=function(t){return this._guard(t)[this._id]},t.prototype.set=function(t,e){var n=this._guard(t);return r?Object.defineProperty(n,this._id,{value:e,enumerable:!1,configurable:!0}):n[this._id]=e,this},t.prototype.delete=function(t){return!!this.has(t)&&(delete this._guard(t)[this._id],!0)},t.prototype.has=function(t){return!!this._guard(t)[this._id]},t.prototype._guard=function(t){if(t!==Object(t))throw TypeError("Value of WeakMap is not a non-null object.");return t},t}();var a=n(6552),s=n(7845),l=n(8883),h=n(4926),c=n(674),u=n(9142),d=new o,p=new a.Ay(100),f=["symbol","symbolSize","symbolKeepAspect","color","backgroundColor","dashArrayX","dashArrayY","maxTileWidth","maxTileHeight"];function g(t,e){if("none"===t)return null;var n=e.getDevicePixelRatio(),i=e.getZr(),r="svg"===i.painter.type;t.dirty&&d.delete(t);var o=d.get(t);if(o)return o;var a=(0,s.defaults)(t,{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});"none"===a.backgroundColor&&(a.backgroundColor=null);var g={repeat:"repeat"};return function(t){for(var e,o=[n],d=!0,g=0;g<f.length;++g){var _=a[f[g]];if(null!=_&&!(0,s.isArray)(_)&&!(0,s.isString)(_)&&!(0,s.isNumber)(_)&&"boolean"!=typeof _){d=!1;break}o.push(_)}if(d){e=o.join(",")+(r?"-svg":"");var x=p.get(e);x&&(r?t.svgElement=x:t.image=x)}var b,w=v(a.dashArrayX),S=function(t){if(!t||"object"==typeof t&&0===t.length)return[0,0];if((0,s.isNumber)(t)){var e=Math.ceil(t);return[e,e]}var n=(0,s.map)(t,(function(t){return Math.ceil(t)}));return t.length%2?n.concat(n):n}(a.dashArrayY),T=m(a.symbol),M=(k=w,(0,s.map)(k,(function(t){return y(t)}))),A=y(S),C=!r&&u.yh.createCanvas(),I=r&&{tag:"g",attrs:{},key:"dcl",children:[]},E=function(){for(var t=1,e=0,n=M.length;e<n;++e)t=(0,l.lQ)(t,M[e]);var i=1;for(e=0,n=T.length;e<n;++e)i=(0,l.lQ)(i,T[e].length);t*=i;var r=A*M.length*T.length;0;return{width:Math.max(1,Math.min(t,a.maxTileWidth)),height:Math.max(1,Math.min(r,a.maxTileHeight))}}();var k;C&&(C.width=E.width*n,C.height=E.height*n,b=C.getContext("2d"));(function(){b&&(b.clearRect(0,0,C.width,C.height),a.backgroundColor&&(b.fillStyle=a.backgroundColor,b.fillRect(0,0,C.width,C.height)));for(var t=0,e=0;e<S.length;++e)t+=S[e];if(t<=0)return;var o=-A,s=0,l=0,u=0;for(;o<E.height;){if(s%2==0){for(var d=l/2%T.length,p=0,f=0,g=0;p<2*E.width;){var m=0;for(e=0;e<w[u].length;++e)m+=w[u][e];if(m<=0)break;if(f%2==0){var v=.5*(1-a.symbolSize),y=p+w[u][f]*v,_=o+S[s]*v,x=w[u][f]*a.symbolSize,M=S[s]*a.symbolSize,k=g/2%T[d].length;L(y,_,x,M,T[d][k])}p+=w[u][f],++g,++f===w[u].length&&(f=0)}++u===w.length&&(u=0)}o+=S[s],++l,++s===S.length&&(s=0)}function L(t,e,o,s,l){var u=r?1:n,d=(0,h.v5)(l,t*u,e*u,o*u,s*u,a.color,a.symbolKeepAspect);if(r){var p=i.painter.renderOneToVNode(d);p&&I.children.push(p)}else(0,c.Xi)(b,d)}})(),d&&p.put(e,C||I);t.image=C,t.svgElement=I,t.svgWidth=E.width,t.svgHeight=E.height}(g),g.rotation=a.rotation,g.scaleX=g.scaleY=r?1:1/n,d.set(t,g),t.dirty=!1,g}function m(t){if(!t||0===t.length)return[["rect"]];if((0,s.isString)(t))return[[t]];for(var e=!0,n=0;n<t.length;++n)if(!(0,s.isString)(t[n])){e=!1;break}if(e)return m([t]);var i=[];for(n=0;n<t.length;++n)(0,s.isString)(t[n])?i.push([t[n]]):i.push(t[n]);return i}function v(t){if(!t||0===t.length)return[[0,0]];if((0,s.isNumber)(t))return[[r=Math.ceil(t),r]];for(var e=!0,n=0;n<t.length;++n)if(!(0,s.isNumber)(t[n])){e=!1;break}if(e)return v([t]);var i=[];for(n=0;n<t.length;++n)if((0,s.isNumber)(t[n])){var r=Math.ceil(t[n]);i.push([r,r])}else{(r=(0,s.map)(t[n],(function(t){return Math.ceil(t)}))).length%2==1?i.push(r.concat(r)):i.push(r)}return i}function y(t){for(var e=0,n=0;n<t.length;++n)e+=t[n];return t.length%2==1?2*e:e}},3152:(t,e,n)=>{"use strict";function i(t,e,n){for(var i;t&&(!e(t)||(i=t,!n));)t=t.__hostTarget||t.parent;return i}n.d(e,{R:()=>i})},5065:(t,e,n)=>{"use strict";n.d(e,{Cb:()=>l,JW:()=>_,QX:()=>h,YK:()=>p,fU:()=>m,he:()=>y,io:()=>f,ob:()=>s,qg:()=>g,x5:()=>v,yC:()=>c});var i=n(7845),r=n(4178),o=n(8883),a=n(383);function s(t){if(!(0,o.kf)(t))return i.isString(t)?t:"-";var e=(t+"").split(".");return e[0].replace(/(\d{1,3})(?=(?:\d{3})+(?!\d))/g,"$1,")+(e.length>1?"."+e[1]:"")}function l(t,e){return t=(t||"").toLowerCase().replace(/-(.)/g,(function(t,e){return e.toUpperCase()})),e&&t&&(t=t.charAt(0).toUpperCase()+t.slice(1)),t}var h=i.normalizeCssArray;function c(t,e,n){function r(t){return t&&i.trim(t)?t:"-"}function l(t){return!(null==t||isNaN(t)||!isFinite(t))}var h="time"===e,c=t instanceof Date;if(h||c){var u=h?(0,o._U)(t):t;if(!isNaN(+u))return(0,a.GP)(u,"{yyyy}-{MM}-{dd} {HH}:{mm}:{ss}",n);if(c)return"-"}if("ordinal"===e)return i.isStringSafe(t)?r(t):i.isNumber(t)&&l(t)?t+"":"-";var d=(0,o.Sm)(t);return l(d)?s(d):i.isStringSafe(t)?r(t):"boolean"==typeof t?t+"":"-"}var u=["a","b","c","d","e","f","g"],d=function(t,e){return"{"+t+(null==e?"":e)+"}"};function p(t,e,n){i.isArray(e)||(e=[e]);var o=e.length;if(!o)return"";for(var a=e[0].$vars||[],s=0;s<a.length;s++){var l=u[s];t=t.replace(d(l),d(l,0))}for(var h=0;h<o;h++)for(var c=0;c<a.length;c++){var p=e[h][a[c]];t=t.replace(d(u[c],h),n?(0,r.Me)(p):p)}return t}function f(t,e,n){return i.each(e,(function(e,i){t=t.replace("{"+i+"}",n?(0,r.Me)(e):e)})),t}function g(t,e){var n=i.isString(t)?{color:t,extraCssText:e}:t||{},o=n.color,a=n.type;e=n.extraCssText;var s=n.renderMode||"html";return o?"html"===s?"subItem"===a?'<span style="display:inline-block;vertical-align:middle;margin-right:8px;margin-left:3px;border-radius:4px;width:4px;height:4px;background-color:'+(0,r.Me)(o)+";"+(e||"")+'"></span>':'<span style="display:inline-block;margin-right:4px;border-radius:10px;width:10px;height:10px;background-color:'+(0,r.Me)(o)+";"+(e||"")+'"></span>':{renderMode:s,content:"{"+(n.markerId||"markerX")+"|} ",style:"subItem"===a?{width:4,height:4,borderRadius:2,backgroundColor:o}:{width:10,height:10,borderRadius:5,backgroundColor:o}}:""}function m(t,e,n){"week"!==t&&"month"!==t&&"quarter"!==t&&"half-year"!==t&&"year"!==t||(t="MM-dd\nyyyy");var i=(0,o._U)(e),r=n?"getUTC":"get",s=i[r+"FullYear"](),l=i[r+"Month"]()+1,h=i[r+"Date"](),c=i[r+"Hours"](),u=i[r+"Minutes"](),d=i[r+"Seconds"](),p=i[r+"Milliseconds"]();return t=t.replace("MM",(0,a.eV)(l,2)).replace("M",l).replace("yyyy",s).replace("yy",(0,a.eV)(s%100+"",2)).replace("dd",(0,a.eV)(h,2)).replace("d",h).replace("hh",(0,a.eV)(c,2)).replace("h",c).replace("mm",(0,a.eV)(u,2)).replace("m",u).replace("ss",(0,a.eV)(d,2)).replace("s",d).replace("SSS",(0,a.eV)(p,3))}function v(t){return t?t.charAt(0).toUpperCase()+t.substr(1):t}function y(t,e){return e=e||"transparent",i.isString(t)?t:i.isObject(t)&&t.colorStops&&(t.colorStops[0]||{}).color||e}function _(t,e){if("_blank"===e||"blank"===e){var n=window.open();n.opener=null,n.location.href=t}else window.open(t,e)}},6004:(t,e,n)=>{"use strict";n.r(e),n.d(e,{Arc:()=>x.A,BezierCurve:()=>_.A,BoundingRect:()=>T.A,Circle:()=>u.A,CompoundPath:()=>b.A,Ellipse:()=>d.A,Group:()=>h.A,Image:()=>l.Ay,IncrementalDisplayable:()=>C.A,Line:()=>y.A,LinearGradient:()=>w.A,OrientedBoundingRect:()=>M.A,Path:()=>a.Ay,Point:()=>A.A,Polygon:()=>g.A,Polyline:()=>m.A,RadialGradient:()=>S.A,Rect:()=>v.A,Ring:()=>f.A,Sector:()=>p.A,Text:()=>c.Ay,applyTransform:()=>Z,clipPointsByRect:()=>Q,clipRectByRect:()=>tt,createIcon:()=>et,extendPath:()=>F,extendShape:()=>O,getShapeClass:()=>z,getTransform:()=>Y,groupTransition:()=>J,initProps:()=>L.LW,isElementRemoved:()=>L.LR,lineLineIntersect:()=>it,linePolygonIntersect:()=>nt,makeImage:()=>V,makePath:()=>G,mergePath:()=>H,registerShape:()=>B,removeElement:()=>L.Nz,removeElementWithFadeOut:()=>L.t5,resizePath:()=>W,setTooltipConfig:()=>ot,subPixelOptimize:()=>X,subPixelOptimizeLine:()=>U,subPixelOptimizeRect:()=>q,transformDirection:()=>$,traverseElements:()=>st,updateProps:()=>L.oi});var i=n(5496),r=n(3968),o=n(4070),a=n(1885),s=n(5853),l=n(5975),h=n(8829),c=n(1251),u=n(1262),d=n(1478),p=n(7532),f=n(9804),g=n(4942),m=n(1106),v=n(7551),y=n(5840),_=n(8526),x=n(4924),b=n(7298),w=n(7789),S=n(6575),T=n(5383),M=n(2971),A=n(4063),C=n(5238),I=n(7278),E=n(7845),k=n(6195),L=n(5203),D=Math.max,P=Math.min,R={};function O(t){return a.Ay.extend(t)}var N=i.Qh;function F(t,e){return N(t,e)}function B(t,e){R[t]=e}function z(t){if(R.hasOwnProperty(t))return R[t]}function G(t,e,n,r){var o=i.UJ(t,e);return n&&("center"===r&&(n=j(n,o.getBoundingRect())),W(o,n)),o}function V(t,e,n){var i=new l.Ay({style:{image:t,x:e.x,y:e.y,width:e.width,height:e.height},onload:function(t){if("center"===n){var r={width:t.width,height:t.height};i.setStyle(j(e,r))}}});return i}function j(t,e){var n,i=e.width/e.height,r=t.height*i;return n=r<=t.width?t.height:(r=t.width)/i,{x:t.x+t.width/2-r/2,y:t.y+t.height/2-n/2,width:r,height:n}}var H=i.uc;function W(t,e){if(t.applyTransform){var n=t.getBoundingRect().calculateTransform(e);t.applyTransform(n)}}function U(t,e){return I.eB(t,t,{lineWidth:e}),t}function q(t){return I.Op(t.shape,t.shape,t.style),t}var X=I.M7;function Y(t,e){for(var n=r.identity([]);t&&t!==e;)r.mul(n,t.getLocalTransform(),n),t=t.parent;return n}function Z(t,e,n){return e&&!(0,E.isArrayLike)(e)&&(e=s.Ay.getLocalTransform(e)),n&&(e=r.invert([],e)),o.applyTransform([],t,e)}function $(t,e,n){var i=0===e[4]||0===e[5]||0===e[0]?1:Math.abs(2*e[4]/e[0]),r=0===e[4]||0===e[5]||0===e[2]?1:Math.abs(2*e[4]/e[2]),o=["left"===t?-i:"right"===t?i:0,"top"===t?-r:"bottom"===t?r:0];return o=Z(o,e,n),Math.abs(o[0])>Math.abs(o[1])?o[0]>0?"right":"left":o[1]>0?"bottom":"top"}function K(t){return!t.isGroup}function J(t,e,n){if(t&&e){var i,r=(i={},t.traverse((function(t){K(t)&&t.anid&&(i[t.anid]=t)})),i);e.traverse((function(t){if(K(t)&&t.anid){var e=r[t.anid];if(e){var i=o(t);t.attr(o(e)),(0,L.oi)(t,i,n,(0,k.z)(t).dataIndex)}}}))}function o(t){var e={x:t.x,y:t.y,rotation:t.rotation};return function(t){return null!=t.shape}(t)&&(e.shape=(0,E.extend)({},t.shape)),e}}function Q(t,e){return(0,E.map)(t,(function(t){var n=t[0];n=D(n,e.x),n=P(n,e.x+e.width);var i=t[1];return i=D(i,e.y),[n,i=P(i,e.y+e.height)]}))}function tt(t,e){var n=D(t.x,e.x),i=P(t.x+t.width,e.x+e.width),r=D(t.y,e.y),o=P(t.y+t.height,e.y+e.height);if(i>=n&&o>=r)return{x:n,y:r,width:i-n,height:o-r}}function et(t,e,n){var i=(0,E.extend)({rectHover:!0},e),r=i.style={strokeNoScale:!0};if(n=n||{x:-1,y:-1,width:2,height:2},t)return 0===t.indexOf("image://")?(r.image=t.slice(8),(0,E.defaults)(r,n),new l.Ay(i)):G(t.replace("path://",""),i,n,"center")}function nt(t,e,n,i,r){for(var o=0,a=r[r.length-1];o<r.length;o++){var s=r[o];if(it(t,e,n,i,s[0],s[1],a[0],a[1]))return!0;a=s}}function it(t,e,n,i,r,o,a,s){var l,h=n-t,c=i-e,u=a-r,d=s-o,p=rt(u,d,h,c);if((l=p)<=1e-6&&l>=-1e-6)return!1;var f=t-r,g=e-o,m=rt(f,g,h,c)/p;if(m<0||m>1)return!1;var v=rt(f,g,u,d)/p;return!(v<0||v>1)}function rt(t,e,n,i){return t*i-n*e}function ot(t){var e=t.itemTooltipOption,n=t.componentModel,i=t.itemName,r=(0,E.isString)(e)?{formatter:e}:e,o=n.mainType,a=n.componentIndex,s={componentType:o,name:i,$vars:["name"]};s[o+"Index"]=a;var l=t.formatterParamsExtra;l&&(0,E.each)((0,E.keys)(l),(function(t){(0,E.hasOwn)(s,t)||(s[t]=l[t],s.$vars.push(t))}));var h=(0,k.z)(t.el);h.componentMainType=o,h.componentIndex=a,h.tooltipConfig={name:i,option:(0,E.defaults)({content:i,encodeHTMLContent:!0,formatterParams:s},r)}}function at(t,e){var n;t.isGroup&&(n=e(t)),n||t.traverse(e)}function st(t,e){if(t)if((0,E.isArray)(t))for(var n=0;n<t.length;n++)at(t[n],e);else at(t,e)}B("circle",u.A),B("ellipse",d.A),B("sector",p.A),B("ring",f.A),B("polygon",g.A),B("polyline",m.A),B("rect",v.A),B("line",y.A),B("bezierCurve",_.A),B("arc",x.A)},6195:(t,e,n)=>{"use strict";n.d(e,{a:()=>r,z:()=>i});var i=(0,n(2577).$r)(),r=function(t,e,n,r){if(r){var o=i(r);o.dataIndex=n,o.dataType=e,o.seriesIndex=t,o.ssrType="chart","group"===r.type&&r.traverse((function(r){var o=i(r);o.seriesIndex=t,o.dataIndex=n,o.dataType=e,o.ssrType="chart"}))}}},5872:(t,e,n)=>{"use strict";n.d(e,{HU:()=>d,Ir:()=>_,Qf:()=>g,Tj:()=>l,YA:()=>v,aP:()=>u,ad:()=>m,dV:()=>p,m$:()=>f,vs:()=>y});var i=n(7845),r=n(5383),o=n(8883),a=n(5065),s=i.each,l=["left","right","top","bottom","width","height"],h=[["width","left","right"],["height","top","bottom"]];function c(t,e,n,i,r){var o=0,a=0;null==i&&(i=1/0),null==r&&(r=1/0);var s=0;e.eachChild((function(l,h){var c,u,d=l.getBoundingRect(),p=e.childAt(h+1),f=p&&p.getBoundingRect();if("horizontal"===t){var g=d.width+(f?-f.x+d.x:0);(c=o+g)>i||l.newline?(o=0,c=g,a+=s+n,s=d.height):s=Math.max(s,d.height)}else{var m=d.height+(f?-f.y+d.y:0);(u=a+m)>r||l.newline?(o+=s+n,a=0,u=m,s=d.width):s=Math.max(s,d.width)}l.newline||(l.x=o,l.y=a,l.markRedraw(),"horizontal"===t?o=c+n:a=u+n)}))}var u=c;i.curry(c,"vertical"),i.curry(c,"horizontal");function d(t,e,n){var i=e.width,r=e.height,s=(0,o.lo)(t.left,i),l=(0,o.lo)(t.top,r),h=(0,o.lo)(t.right,i),c=(0,o.lo)(t.bottom,r);return(isNaN(s)||isNaN(parseFloat(t.left)))&&(s=0),(isNaN(h)||isNaN(parseFloat(t.right)))&&(h=i),(isNaN(l)||isNaN(parseFloat(t.top)))&&(l=0),(isNaN(c)||isNaN(parseFloat(t.bottom)))&&(c=r),n=a.QX(n||0),{width:Math.max(h-s-n[1]-n[3],0),height:Math.max(c-l-n[0]-n[2],0)}}function p(t,e,n){n=a.QX(n||0);var i=e.width,s=e.height,l=(0,o.lo)(t.left,i),h=(0,o.lo)(t.top,s),c=(0,o.lo)(t.right,i),u=(0,o.lo)(t.bottom,s),d=(0,o.lo)(t.width,i),p=(0,o.lo)(t.height,s),f=n[2]+n[0],g=n[1]+n[3],m=t.aspect;switch(isNaN(d)&&(d=i-c-g-l),isNaN(p)&&(p=s-u-f-h),null!=m&&(isNaN(d)&&isNaN(p)&&(m>i/s?d=.8*i:p=.8*s),isNaN(d)&&(d=m*p),isNaN(p)&&(p=d/m)),isNaN(l)&&(l=i-c-d-g),isNaN(h)&&(h=s-u-p-f),t.left||t.right){case"center":l=i/2-d/2-n[3];break;case"right":l=i-d-g}switch(t.top||t.bottom){case"middle":case"center":h=s/2-p/2-n[0];break;case"bottom":h=s-p-f}l=l||0,h=h||0,isNaN(d)&&(d=i-g-l-(c||0)),isNaN(p)&&(p=s-f-h-(u||0));var v=new r.A(l+n[3],h+n[0],d,p);return v.margin=n,v}function f(t,e,n,o,a,s){var l,h=!a||!a.hv||a.hv[0],c=!a||!a.hv||a.hv[1],u=a&&a.boundingMode||"all";if((s=s||t).x=t.x,s.y=t.y,!h&&!c)return!1;if("raw"===u)l="group"===t.type?new r.A(0,0,+e.width||0,+e.height||0):t.getBoundingRect();else if(l=t.getBoundingRect(),t.needLocalTransform()){var d=t.getLocalTransform();(l=l.clone()).applyTransform(d)}var f=p(i.defaults({width:l.width,height:l.height},e),n,o),g=h?f.x-l.x:0,m=c?f.y-l.y:0;return"raw"===u?(s.x=g,s.y=m):(s.x+=g,s.y+=m),s===t&&t.markRedraw(),!0}function g(t,e){return null!=t[h[e][0]]||null!=t[h[e][1]]&&null!=t[h[e][2]]}function m(t){var e=t.layoutMode||t.constructor.layoutMode;return i.isObject(e)?e:e?{type:e}:null}function v(t,e,n){var r=n&&n.ignoreSize;!i.isArray(r)&&(r=[r,r]);var o=l(h[0],0),a=l(h[1],1);function l(n,i){var o={},a=0,l={},h=0;if(s(n,(function(e){l[e]=t[e]})),s(n,(function(t){c(e,t)&&(o[t]=l[t]=e[t]),u(o,t)&&a++,u(l,t)&&h++})),r[i])return u(e,n[1])?l[n[2]]=null:u(e,n[2])&&(l[n[1]]=null),l;if(2!==h&&a){if(a>=2)return o;for(var d=0;d<n.length;d++){var p=n[d];if(!c(o,p)&&c(t,p)){o[p]=t[p];break}}return o}return l}function c(t,e){return t.hasOwnProperty(e)}function u(t,e){return null!=t[e]&&"auto"!==t[e]}function d(t,e,n){s(t,(function(t){e[t]=n[t]}))}d(h[0],t,o),d(h[1],t,a)}function y(t){return _({},t)}function _(t,e){return e&&t&&s(l,(function(n){e.hasOwnProperty(n)&&(t[n]=e[n])})),t}},766:(t,e,n)=>{"use strict";n.d(e,{$8:()=>h,R8:()=>s,aT:()=>l});var i="[ECharts] ",r={},o="undefined"!=typeof console&&console.warn&&console.log;function a(t,e,n){if(o){if(n){if(r[e])return;r[e]=!0}console[t](i+e)}}function s(t,e){a("warn",t,e)}function l(t){0}function h(t){throw new Error(t)}},2577:(t,e,n)=>{"use strict";n.d(e,{$r:()=>T,Bq:()=>L,D$:()=>D,D6:()=>w,GX:()=>b,HB:()=>C,Il:()=>O,JO:()=>k,JS:()=>u,M5:()=>c,O0:()=>y,O2:()=>f,S_:()=>x,Sq:()=>R,US:()=>I,UW:()=>E,XJ:()=>P,_e:()=>A,le:()=>S,oh:()=>_,qB:()=>h,vS:()=>v,vj:()=>d,zu:()=>p});var i=n(7845),r=n(4810),o=n(8883);function a(t,e,n){return(e-t)*n+t}var s="series\0",l="\0_ec_\0";function h(t){return t instanceof Array?t:null==t?[]:[t]}function c(t,e,n){if(t){t[e]=t[e]||{},t.emphasis=t.emphasis||{},t.emphasis[e]=t.emphasis[e]||{};for(var i=0,r=n.length;i<r;i++){var o=n[i];!t.emphasis[e].hasOwnProperty(o)&&t[e].hasOwnProperty(o)&&(t.emphasis[e][o]=t[e][o])}}}var u=["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"];function d(t){return!(0,i.isObject)(t)||(0,i.isArray)(t)||t instanceof Date?t:t.value}function p(t){return(0,i.isObject)(t)&&!(t instanceof Array)}function f(t,e,n){var r="normalMerge"===n,o="replaceMerge"===n,a="replaceAll"===n;t=t||[],e=(e||[]).slice();var l=(0,i.createHashMap)();(0,i.each)(e,(function(t,n){(0,i.isObject)(t)||(e[n]=null)}));var h,c,u=function(t,e,n){var i=[];if("replaceAll"===n)return i;for(var r=0;r<t.length;r++){var o=t[r];o&&null!=o.id&&e.set(o.id,r),i.push({existing:"replaceMerge"===n||_(o)?null:o,newOption:null,keyInfo:null,brandNew:null})}return i}(t,l,n);return(r||o)&&function(t,e,n,r){(0,i.each)(r,(function(o,a){if(o&&null!=o.id){var s=m(o.id),l=n.get(s);if(null!=l){var h=t[l];(0,i.assert)(!h.newOption,'Duplicated option on id "'+s+'".'),h.newOption=o,h.existing=e[l],r[a]=null}}}))}(u,t,l,e),r&&function(t,e){(0,i.each)(e,(function(n,i){if(n&&null!=n.name)for(var r=0;r<t.length;r++){var o=t[r].existing;if(!t[r].newOption&&o&&(null==o.id||null==n.id)&&!_(n)&&!_(o)&&g("name",o,n))return t[r].newOption=n,void(e[i]=null)}}))}(u,e),r||o?function(t,e,n){(0,i.each)(e,(function(e){if(e){for(var i,r=0;(i=t[r])&&(i.newOption||_(i.existing)||i.existing&&null!=e.id&&!g("id",e,i.existing));)r++;i?(i.newOption=e,i.brandNew=n):t.push({newOption:e,brandNew:n,existing:null,keyInfo:null}),r++}}))}(u,e,o):a&&function(t,e){(0,i.each)(e,(function(e){t.push({newOption:e,brandNew:!0,existing:null,keyInfo:null})}))}(u,e),h=u,c=(0,i.createHashMap)(),(0,i.each)(h,(function(t){var e=t.existing;e&&c.set(e.id,t)})),(0,i.each)(h,(function(t){var e=t.newOption;(0,i.assert)(!e||null==e.id||!c.get(e.id)||c.get(e.id)===t,"id duplicates: "+(e&&e.id)),e&&null!=e.id&&c.set(e.id,t),!t.keyInfo&&(t.keyInfo={})})),(0,i.each)(h,(function(t,e){var n=t.existing,r=t.newOption,o=t.keyInfo;if((0,i.isObject)(r)){if(o.name=null!=r.name?m(r.name):n?n.name:s+e,n)o.id=m(n.id);else if(null!=r.id)o.id=m(r.id);else{var a=0;do{o.id="\0"+o.name+"\0"+a++}while(c.get(o.id))}c.set(o.id,t)}})),u}function g(t,e,n){var i=v(e[t],null),r=v(n[t],null);return null!=i&&null!=r&&i===r}function m(t){return v(t,"")}function v(t,e){return null==t?e:(0,i.isString)(t)?t:(0,i.isNumber)(t)||(0,i.isStringSafe)(t)?t+"":e}function y(t){var e=t.name;return!(!e||!e.indexOf(s))}function _(t){return t&&null!=t.id&&0===m(t.id).indexOf(l)}function x(t){return l+t}function b(t,e,n){(0,i.each)(t,(function(t){var r=t.newOption;(0,i.isObject)(r)&&(t.keyInfo.mainType=e,t.keyInfo.subType=function(t,e,n,i){var r=e.type?e.type:n?n.subType:i.determineSubType(t,e);return r}(e,r,t.existing,n))}))}function w(t,e){var n={},i={};return r(t||[],n),r(e||[],i,n),[o(n),o(i)];function r(t,e,n){for(var i=0,r=t.length;i<r;i++){var o=v(t[i].seriesId,null);if(null==o)return;for(var a=h(t[i].dataIndex),s=n&&n[o],l=0,c=a.length;l<c;l++){var u=a[l];s&&s[u]?s[u]=null:(e[o]||(e[o]={}))[u]=1}}}function o(t,e){var n=[];for(var i in t)if(t.hasOwnProperty(i)&&null!=t[i])if(e)n.push(+i);else{var r=o(t[i],!0);r.length&&n.push({seriesId:i,dataIndex:r})}return n}}function S(t,e){return null!=e.dataIndexInside?e.dataIndexInside:null!=e.dataIndex?(0,i.isArray)(e.dataIndex)?(0,i.map)(e.dataIndex,(function(e){return t.indexOfRawIndex(e)})):t.indexOfRawIndex(e.dataIndex):null!=e.name?(0,i.isArray)(e.name)?(0,i.map)(e.name,(function(e){return t.indexOfName(e)})):t.indexOfName(e.name):void 0}function T(){var t="__ec_inner_"+M++;return function(e){return e[t]||(e[t]={})}}var M=(0,o.IH)();function A(t,e,n){var i=C(e,n),r=i.mainTypeSpecified,o=i.queryOptionMap,a=i.others,s=n?n.defaultMainType:null;return!r&&s&&o.set(s,{}),o.each((function(e,i){var r=k(t,i,e,{useDefault:s===i,enableAll:!n||null==n.enableAll||n.enableAll,enableNone:!n||null==n.enableNone||n.enableNone});a[i+"Models"]=r.models,a[i+"Model"]=r.models[0]})),a}function C(t,e){var n;if((0,i.isString)(t)){var r={};r[t+"Index"]=0,n=r}else n=t;var o=(0,i.createHashMap)(),a={},s=!1;return(0,i.each)(n,(function(t,n){if("dataIndex"!==n&&"dataIndexInside"!==n){var r=n.match(/^(\w+)(Index|Id|Name)$/)||[],l=r[1],h=(r[2]||"").toLowerCase();if(l&&h&&!(e&&e.includeMainTypes&&(0,i.indexOf)(e.includeMainTypes,l)<0))s=s||!!l,(o.get(l)||o.set(l,{}))[h]=t}else a[n]=t})),{mainTypeSpecified:s,queryOptionMap:o,others:a}}var I={useDefault:!0,enableAll:!1,enableNone:!1},E={useDefault:!1,enableAll:!0,enableNone:!0};function k(t,e,n,r){r=r||I;var o=n.index,a=n.id,s=n.name,l={models:null,specified:null!=o||null!=a||null!=s};if(!l.specified){var h=void 0;return l.models=r.useDefault&&(h=t.getComponent(e))?[h]:[],l}return"none"===o||!1===o?((0,i.assert)(r.enableNone,'`"none"` or `false` is not a valid value on index option.'),l.models=[],l):("all"===o&&((0,i.assert)(r.enableAll,'`"all"` is not a valid value on index option.'),o=a=s=null),l.models=t.queryComponents({mainType:e,index:o,id:a,name:s}),l)}function L(t,e,n){t.setAttribute?t.setAttribute(e,n):t[e]=n}function D(t,e){return t.getAttribute?t.getAttribute(e):t[e]}function P(t){return"auto"===t?r.A.domSupported?"html":"richText":t||"html"}function R(t,e){var n=(0,i.createHashMap)(),r=[];return(0,i.each)(t,(function(t){var i=e(t);(n.get(i)||(r.push(i),n.set(i,[]))).push(t)})),{keys:r,buckets:n}}function O(t,e,n,r,s){var l=null==e||"auto"===e;if(null==r)return r;if((0,i.isNumber)(r)){var h=a(n||0,r,s);return(0,o.LI)(h,l?Math.max((0,o.XV)(n||0),(0,o.XV)(r)):e)}if((0,i.isString)(r))return s<1?n:r;for(var c=[],u=n,d=r,p=Math.max(u?u.length:0,d.length),f=0;f<p;++f){var g=t.getDimensionInfo(f);if(g&&"ordinal"===g.type)c[f]=(s<1&&u?u:d)[f];else{var m=u&&u[f]?u[f]:0,v=d[f];h=a(m,v,s);c[f]=(0,o.LI)(h,l?Math.max((0,o.XV)(m),(0,o.XV)(v)):e)}}return c}},8883:(t,e,n)=>{"use strict";n.d(e,{Cb:()=>a,Cm:()=>S,IH:()=>I,Is:()=>m,LI:()=>l,NX:()=>w,Sm:()=>A,Tr:()=>g,XV:()=>c,Y6:()=>h,YV:()=>T,_7:()=>v,_U:()=>x,au:()=>b,dh:()=>y,hb:()=>d,kM:()=>f,kf:()=>C,lQ:()=>k,lo:()=>s,sL:()=>M,wp:()=>p,y6:()=>u});var i=n(7845),r=1e-4,o=20;function a(t,e,n,i){var r=e[0],o=e[1],a=n[0],s=n[1],l=o-r,h=s-a;if(0===l)return 0===h?a:(a+s)/2;if(i)if(l>0){if(t<=r)return a;if(t>=o)return s}else{if(t>=r)return a;if(t<=o)return s}else{if(t===r)return a;if(t===o)return s}return(t-r)/l*h+a}function s(t,e){switch(t){case"center":case"middle":t="50%";break;case"left":case"top":t="0%";break;case"right":case"bottom":t="100%"}return i.isString(t)?(n=t,n.replace(/^\s+|\s+$/g,"")).match(/%$/)?parseFloat(t)/100*e:parseFloat(t):null==t?NaN:+t;var n}function l(t,e,n){return null==e&&(e=10),e=Math.min(Math.max(0,e),o),t=(+t).toFixed(e),n?t:+t}function h(t){return t.sort((function(t,e){return t-e})),t}function c(t){if(t=+t,isNaN(t))return 0;if(t>1e-14)for(var e=1,n=0;n<15;n++,e*=10)if(Math.round(t*e)/e===t)return n;return u(t)}function u(t){var e=t.toString().toLowerCase(),n=e.indexOf("e"),i=n>0?+e.slice(n+1):0,r=n>0?n:e.length,o=e.indexOf("."),a=o<0?0:r-1-o;return Math.max(0,a-i)}function d(t,e){var n=Math.log,i=Math.LN10,r=Math.floor(n(t[1]-t[0])/i),o=Math.round(n(Math.abs(e[1]-e[0]))/i),a=Math.min(Math.max(-r+o,0),20);return isFinite(a)?a:20}function p(t,e,n){return t[e]&&f(t,n)[e]||0}function f(t,e){var n=i.reduce(t,(function(t,e){return t+(isNaN(e)?0:e)}),0);if(0===n)return[];for(var r=Math.pow(10,e),o=i.map(t,(function(t){return(isNaN(t)?0:t)/n*r*100})),a=100*r,s=i.map(o,(function(t){return Math.floor(t)})),l=i.reduce(s,(function(t,e){return t+e}),0),h=i.map(o,(function(t,e){return t-s[e]}));l<a;){for(var c=Number.NEGATIVE_INFINITY,u=null,d=0,p=h.length;d<p;++d)h[d]>c&&(c=h[d],u=d);++s[u],h[u]=0,++l}return i.map(s,(function(t){return t/r}))}function g(t,e){var n=Math.max(c(t),c(e)),i=t+e;return n>o?i:l(i,n)}var m=9007199254740991;function v(t){var e=2*Math.PI;return(t%e+e)%e}function y(t){return t>-r&&t<r}var _=/^(?:(\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 x(t){if(t instanceof Date)return t;if(i.isString(t)){var e=_.exec(t);if(!e)return new Date(NaN);if(e[8]){var n=+e[4]||0;return"Z"!==e[8].toUpperCase()&&(n-=+e[8].slice(0,3)),new Date(Date.UTC(+e[1],+(e[2]||1)-1,+e[3]||1,n,+(e[5]||0),+e[6]||0,e[7]?+e[7].substring(0,3):0))}return new Date(+e[1],+(e[2]||1)-1,+e[3]||1,+e[4]||0,+(e[5]||0),+e[6]||0,e[7]?+e[7].substring(0,3):0)}return null==t?new Date(NaN):new Date(Math.round(t))}function b(t){return Math.pow(10,w(t))}function w(t){if(0===t)return 0;var e=Math.floor(Math.log(t)/Math.LN10);return t/Math.pow(10,e)>=10&&e++,e}function S(t,e){var n=w(t),i=Math.pow(10,n),r=t/i;return t=(e?r<1.5?1:r<2.5?2:r<4?3:r<7?5:10:r<1?1:r<2?2:r<3?3:r<5?5:10)*i,n>=-20?+t.toFixed(n<0?-n:0):t}function T(t,e){var n=(t.length-1)*e+1,i=Math.floor(n),r=+t[i-1],o=n-i;return o?r+o*(t[i]-r):r}function M(t){t.sort((function(t,e){return s(t,e,0)?-1:1}));for(var e=-1/0,n=1,i=0;i<t.length;){for(var r=t[i].interval,o=t[i].close,a=0;a<2;a++)r[a]<=e&&(r[a]=e,o[a]=a?1:1-n),e=r[a],n=o[a];r[0]===r[1]&&o[0]*o[1]!=1?t.splice(i,1):i++}return t;function s(t,e,n){return t.interval[n]<e.interval[n]||t.interval[n]===e.interval[n]&&(t.close[n]-e.close[n]==(n?-1:1)||!n&&s(t,e,1))}}function A(t){var e=parseFloat(t);return e==t&&(0!==e||!i.isString(t)||t.indexOf("x")<=0)?e:NaN}function C(t){return!isNaN(A(t))}function I(){return Math.round(9*Math.random())}function E(t,e){return 0===e?t:E(e,t%e)}function k(t,e){return null==t?e:null==e?t:t*e/E(t,e)}},1632:(t,e,n)=>{"use strict";n.d(e,{BV:()=>g,CA:()=>v,DW:()=>N,Du:()=>Y,HY:()=>z,Iz:()=>J,JC:()=>j,JI:()=>H,Lm:()=>it,Lv:()=>b,Lx:()=>dt,Mx:()=>st,PW:()=>x,Pk:()=>R,Q6:()=>S,QX:()=>V,SD:()=>G,T$:()=>pt,Tl:()=>$,U2:()=>w,_m:()=>K,_n:()=>ut,e3:()=>f,fz:()=>ft,gR:()=>rt,gd:()=>W,h5:()=>_,iJ:()=>nt,ix:()=>lt,jA:()=>tt,lV:()=>Z,mc:()=>et,ml:()=>ct,qR:()=>q,t6:()=>Q,u6:()=>ht,wV:()=>m,zX:()=>p});var i=n(7845),r=n(6195),o=n(7219),a=n(2577),s=n(1885),l=1,h={},c=(0,a.$r)(),u=(0,a.$r)(),d=0,p=1,f=2,g=["emphasis","blur","select"],m=["normal","emphasis","blur","select"],v=10,y=9,_="highlight",x="downplay",b="select",w="unselect",S="toggleSelect";function T(t){return null!=t&&"none"!==t}function M(t,e,n){t.onHoverStateChange&&(t.hoverState||0)!==n&&t.onHoverStateChange(e),t.hoverState=n}function A(t){M(t,"emphasis",f)}function C(t){t.hoverState===f&&M(t,"normal",d)}function I(t){M(t,"blur",p)}function E(t){t.hoverState===p&&M(t,"normal",d)}function k(t){t.selected=!0}function L(t){t.selected=!1}function D(t,e,n){e(t,n)}function P(t,e,n){D(t,e,n),t.isGroup&&t.traverse((function(t){D(t,e,n)}))}function R(t,e){switch(e){case"emphasis":t.hoverState=f;break;case"normal":t.hoverState=d;break;case"blur":t.hoverState=p;break;case"select":t.selected=!0}}function O(t,e){var n=this.states[t];if(this.style){if("emphasis"===t)return function(t,e,n,r){var a=n&&(0,i.indexOf)(n,"select")>=0,l=!1;if(t instanceof s.Ay){var h=c(t),u=a&&h.selectFill||h.normalFill,d=a&&h.selectStroke||h.normalStroke;if(T(u)||T(d)){var p=(r=r||{}).style||{};"inherit"===p.fill?(l=!0,r=(0,i.extend)({},r),(p=(0,i.extend)({},p)).fill=u):!T(p.fill)&&T(u)?(l=!0,r=(0,i.extend)({},r),(p=(0,i.extend)({},p)).fill=(0,o.liftColor)(u)):!T(p.stroke)&&T(d)&&(l||(r=(0,i.extend)({},r),p=(0,i.extend)({},p)),p.stroke=(0,o.liftColor)(d)),r.style=p}}if(r&&null==r.z2){l||(r=(0,i.extend)({},r));var f=t.z2EmphasisLift;r.z2=t.z2+(null!=f?f:v)}return r}(this,0,e,n);if("blur"===t)return function(t,e,n){var r=(0,i.indexOf)(t.currentStates,e)>=0,o=t.style.opacity,a=r?null:function(t,e,n,i){for(var r=t.style,o={},a=0;a<e.length;a++){var s=e[a],l=r[s];o[s]=null==l?i&&i[s]:l}for(a=0;a<t.animators.length;a++){var h=t.animators[a];h.__fromStateTransition&&h.__fromStateTransition.indexOf(n)<0&&"style"===h.targetName&&h.saveTo(o,e)}return o}(t,["opacity"],e,{opacity:1}),s=(n=n||{}).style||{};return null==s.opacity&&(n=(0,i.extend)({},n),s=(0,i.extend)({opacity:r?o:.1*a.opacity},s),n.style=s),n}(this,t,n);if("select"===t)return function(t,e,n){if(n&&null==n.z2){n=(0,i.extend)({},n);var r=t.z2SelectLift;n.z2=t.z2+(null!=r?r:y)}return n}(this,0,n)}return n}function N(t){t.stateProxy=O;var e=t.getTextContent(),n=t.getTextGuideLine();e&&(e.stateProxy=O),n&&(n.stateProxy=O)}function F(t,e){!U(t,e)&&!t.__highByOuter&&P(t,A)}function B(t,e){!U(t,e)&&!t.__highByOuter&&P(t,C)}function z(t,e){t.__highByOuter|=1<<(e||0),P(t,A)}function G(t,e){!(t.__highByOuter&=~(1<<(e||0)))&&P(t,C)}function V(t){P(t,I)}function j(t){P(t,E)}function H(t){P(t,k)}function W(t){P(t,L)}function U(t,e){return t.__highDownSilentOnTouch&&e.zrByTouch}function q(t){var e=t.getModel(),n=[],r=[];e.eachComponent((function(e,i){var o=u(i),a="series"===e,s=a?t.getViewOfSeriesModel(i):t.getViewOfComponentModel(i);!a&&r.push(s),o.isBlured&&(s.group.traverse((function(t){E(t)})),a&&n.push(i)),o.isBlured=!1})),(0,i.each)(r,(function(t){t&&t.toggleBlurSeries&&t.toggleBlurSeries(n,!1,e)}))}function X(t,e,n,r){var o=r.getModel();function a(t,e){for(var n=0;n<e.length;n++){var i=t.getItemGraphicEl(e[n]);i&&j(i)}}if(n=n||"coordinateSystem",null!=t&&e&&"none"!==e){var s=o.getSeriesByIndex(t),l=s.coordinateSystem;l&&l.master&&(l=l.master);var h=[];o.eachSeries((function(t){var o=s===t,c=t.coordinateSystem;if(c&&c.master&&(c=c.master),!("series"===n&&!o||"coordinateSystem"===n&&!(c&&l?c===l:o)||"series"===e&&o)){if(r.getViewOfSeriesModel(t).group.traverse((function(t){t.__highByOuter&&o&&"self"===e||I(t)})),(0,i.isArrayLike)(e))a(t.getData(),e);else if((0,i.isObject)(e))for(var d=(0,i.keys)(e),p=0;p<d.length;p++)a(t.getData(d[p]),e[d[p]]);h.push(t),u(t).isBlured=!0}})),o.eachComponent((function(t,e){if("series"!==t){var n=r.getViewOfComponentModel(e);n&&n.toggleBlurSeries&&n.toggleBlurSeries(h,!0,o)}}))}}function Y(t,e,n){if(null!=t&&null!=e){var i=n.getModel().getComponent(t,e);if(i){u(i).isBlured=!0;var r=n.getViewOfComponentModel(i);r&&r.focusBlurEnabled&&r.group.traverse((function(t){I(t)}))}}}function Z(t,e,n){var o=t.seriesIndex,s=t.getData(e.dataType);if(s){var l=(0,a.le)(s,e);l=((0,i.isArray)(l)?l[0]:l)||0;var h=s.getItemGraphicEl(l);if(!h)for(var c=s.count(),u=0;!h&&u<c;)h=s.getItemGraphicEl(u++);if(h){var d=(0,r.z)(h);X(o,d.focus,d.blurScope,n)}else{var p=t.get(["emphasis","focus"]),f=t.get(["emphasis","blurScope"]);null!=p&&X(o,p,f,n)}}}function $(t,e,n,i){var o={focusSelf:!1,dispatchers:null};if(null==t||"series"===t||null==e||null==n)return o;var a=i.getModel().getComponent(t,e);if(!a)return o;var s=i.getViewOfComponentModel(a);if(!s||!s.findHighDownDispatchers)return o;for(var l,h=s.findHighDownDispatchers(n),c=0;c<h.length;c++)if("self"===(0,r.z)(h[c]).focus){l=!0;break}return{focusSelf:l,dispatchers:h}}function K(t,e,n){var o=(0,r.z)(t),a=$(o.componentMainType,o.componentIndex,o.componentHighDownName,n),s=a.dispatchers,l=a.focusSelf;s?(l&&Y(o.componentMainType,o.componentIndex,n),(0,i.each)(s,(function(t){return F(t,e)}))):(X(o.seriesIndex,o.focus,o.blurScope,n),"self"===o.focus&&Y(o.componentMainType,o.componentIndex,n),F(t,e))}function J(t,e,n){q(n);var o=(0,r.z)(t),a=$(o.componentMainType,o.componentIndex,o.componentHighDownName,n).dispatchers;a?(0,i.each)(a,(function(t){return B(t,e)})):B(t,e)}function Q(t,e,n){if(dt(e)){var r=e.dataType,o=t.getData(r),s=(0,a.le)(o,e);(0,i.isArray)(s)||(s=[s]),t[e.type===S?"toggleSelect":e.type===b?"select":"unselect"](s,r)}}function tt(t){var e=t.getAllData();(0,i.each)(e,(function(e){var n=e.data,i=e.type;n.eachItemGraphicEl((function(e,n){t.isSelected(n,i)?H(e):W(e)}))}))}function et(t){var e=[];return t.eachSeries((function(t){var n=t.getAllData();(0,i.each)(n,(function(n){n.data;var i=n.type,r=t.getSelectedDataIndices();if(r.length>0){var o={dataIndex:r,seriesIndex:t.seriesIndex};null!=i&&(o.dataType=i),e.push(o)}}))})),e}function nt(t,e,n){lt(t,!0),P(t,N),rt(t,e,n)}function it(t,e,n,i){i?function(t){lt(t,!1)}(t):nt(t,e,n)}function rt(t,e,n){var i=(0,r.z)(t);null!=e?(i.focus=e,i.blurScope=n):i.focus&&(i.focus=null)}var ot=["emphasis","blur","select"],at={itemStyle:"getItemStyle",lineStyle:"getLineStyle",areaStyle:"getAreaStyle"};function st(t,e,n,i){n=n||"itemStyle";for(var r=0;r<ot.length;r++){var o=ot[r],a=e.getModel([o,n]);t.ensureState(o).style=i?i(a):a[at[n]]()}}function lt(t,e){var n=!1===e,i=t;t.highDownSilentOnTouch&&(i.__highDownSilentOnTouch=t.highDownSilentOnTouch),n&&!i.__highDownDispatcher||(i.__highByOuter=i.__highByOuter||0,i.__highDownDispatcher=!n)}function ht(t){return!(!t||!t.__highDownDispatcher)}function ct(t,e,n){var i=(0,r.z)(t);i.componentMainType=e.mainType,i.componentIndex=e.componentIndex,i.componentHighDownName=n}function ut(t){var e=h[t];return null==e&&l<=32&&(e=h[t]=l++),e}function dt(t){var e=t.type;return e===b||e===w||e===S}function pt(t){var e=t.type;return e===_||e===x}function ft(t){var e=c(t);e.normalFill=t.style.fill,e.normalStroke=t.style.stroke;var n=t.states.select||{};e.selectFill=n.style&&n.style.fill||null,e.selectStroke=n.style&&n.style.stroke||null}},4926:(t,e,n)=>{"use strict";n.d(e,{$V:()=>y,hV:()=>S,v5:()=>b,xU:()=>w});var i=n(7845),r=n(1885),o=n(5840),a=n(7551),s=n(1262),l=n(6004),h=n(5383),c=n(4611),u=n(8883),d=r.Ay.extend({type:"triangle",shape:{cx:0,cy:0,width:0,height:0},buildPath:function(t,e){var n=e.cx,i=e.cy,r=e.width/2,o=e.height/2;t.moveTo(n,i-o),t.lineTo(n+r,i+o),t.lineTo(n-r,i+o),t.closePath()}}),p=r.Ay.extend({type:"diamond",shape:{cx:0,cy:0,width:0,height:0},buildPath:function(t,e){var n=e.cx,i=e.cy,r=e.width/2,o=e.height/2;t.moveTo(n,i-o),t.lineTo(n+r,i),t.lineTo(n,i+o),t.lineTo(n-r,i),t.closePath()}}),f=r.Ay.extend({type:"pin",shape:{x:0,y:0,width:0,height:0},buildPath:function(t,e){var n=e.x,i=e.y,r=e.width/5*3,o=Math.max(r,e.height),a=r/2,s=a*a/(o-a),l=i-o+a+s,h=Math.asin(s/a),c=Math.cos(h)*a,u=Math.sin(h),d=Math.cos(h),p=.6*a,f=.7*a;t.moveTo(n-c,l+s),t.arc(n,l,a,Math.PI-h,2*Math.PI+h),t.bezierCurveTo(n+c-u*p,l+s+d*p,n,i-f,n,i),t.bezierCurveTo(n,i-f,n-c+u*p,l+s+d*p,n-c,l+s),t.closePath()}}),g=r.Ay.extend({type:"arrow",shape:{x:0,y:0,width:0,height:0},buildPath:function(t,e){var n=e.height,i=e.width,r=e.x,o=e.y,a=i/3*2;t.moveTo(r,o),t.lineTo(r+a,o+n),t.lineTo(r,o+n/4*3),t.lineTo(r-a,o+n),t.lineTo(r,o),t.closePath()}}),m={line:o.A,rect:a.A,roundRect:a.A,square:a.A,circle:s.A,diamond:p,pin:f,arrow:g,triangle:d},v={line:function(t,e,n,i,r){r.x1=t,r.y1=e+i/2,r.x2=t+n,r.y2=e+i/2},rect:function(t,e,n,i,r){r.x=t,r.y=e,r.width=n,r.height=i},roundRect:function(t,e,n,i,r){r.x=t,r.y=e,r.width=n,r.height=i,r.r=Math.min(n,i)/4},square:function(t,e,n,i,r){var o=Math.min(n,i);r.x=t,r.y=e,r.width=o,r.height=o},circle:function(t,e,n,i,r){r.cx=t+n/2,r.cy=e+i/2,r.r=Math.min(n,i)/2},diamond:function(t,e,n,i,r){r.cx=t+n/2,r.cy=e+i/2,r.width=n,r.height=i},pin:function(t,e,n,i,r){r.x=t+n/2,r.y=e+i/2,r.width=n,r.height=i},arrow:function(t,e,n,i,r){r.x=t+n/2,r.y=e+i/2,r.width=n,r.height=i},triangle:function(t,e,n,i,r){r.cx=t+n/2,r.cy=e+i/2,r.width=n,r.height=i}},y={};(0,i.each)(m,(function(t,e){y[e]=new t}));var _=r.Ay.extend({type:"symbol",shape:{symbolType:"",x:0,y:0,width:0,height:0},calculateTextPosition:function(t,e,n){var i=(0,c.X4)(t,e,n),r=this.shape;return r&&"pin"===r.symbolType&&"inside"===e.position&&(i.y=n.y+.4*n.height),i},buildPath:function(t,e,n){var i=e.symbolType;if("none"!==i){var r=y[i];r||(r=y[i="rect"]),v[i](e.x,e.y,e.width,e.height,r.shape),r.buildPath(t,r.shape,n)}}});function x(t,e){if("image"!==this.type){var n=this.style;this.__isEmptyBrush?(n.stroke=t,n.fill=e||"#fff",n.lineWidth=2):"line"===this.shape.symbolType?n.stroke=t:n.fill=t,this.markRedraw()}}function b(t,e,n,i,r,o,a){var s,c=0===t.indexOf("empty");return c&&(t=t.substr(5,1).toLowerCase()+t.substr(6)),(s=0===t.indexOf("image://")?l.makeImage(t.slice(8),new h.A(e,n,i,r),a?"center":"cover"):0===t.indexOf("path://")?l.makePath(t.slice(7),{},new h.A(e,n,i,r),a?"center":"cover"):new _({shape:{symbolType:t,x:e,y:n,width:i,height:r}})).__isEmptyBrush=c,s.setColor=x,o&&s.setColor(o),s}function w(t){return(0,i.isArray)(t)||(t=[+t,+t]),[t[0]||0,t[1]||0]}function S(t,e){if(null!=t)return(0,i.isArray)(t)||(t=[t,t]),[(0,u.lo)(t[0],e[0])||0,(0,u.lo)((0,i.retrieve2)(t[1],t[0]),e[1])||0]}},3490:(t,e,n)=>{"use strict";n.d(e,{IU:()=>l,N:()=>s,nF:()=>a});var i="\0__throttleOriginMethod",r="\0__throttleRate",o="\0__throttleType";function a(t,e,n){var i,r,o,a,s,l=0,h=0,c=null;function u(){h=(new Date).getTime(),c=null,t.apply(o,a||[])}e=e||0;var d=function(){for(var t=[],d=0;d<arguments.length;d++)t[d]=arguments[d];i=(new Date).getTime(),o=this,a=t;var p=s||e,f=s||n;s=null,r=i-(f?l:h)-p,clearTimeout(c),f?c=setTimeout(u,p):r>=0?u():c=setTimeout(u,-r),l=i};return d.clear=function(){c&&(clearTimeout(c),c=null)},d.debounceNextCall=function(t){s=t},d}function s(t,e,n,s){var l=t[e];if(l){var h=l[i]||l,c=l[o];if(l[r]!==n||c!==s){if(null==n||!s)return t[e]=h;(l=t[e]=a(h,n,"debounce"===s))[i]=h,l[o]=s,l[r]=n}return l}}function l(t,e){var n=t[e];n&&n[i]&&(n.clear&&n.clear(),t[e]=n[i])}},383:(t,e,n)=>{"use strict";n.d(e,{$9:()=>x,$H:()=>u,CZ:()=>c,F7:()=>m,FP:()=>B,GP:()=>b,KF:()=>N,Lm:()=>f,MA:()=>h,OY:()=>s,Wf:()=>k,X_:()=>w,Yd:()=>O,Zz:()=>L,bP:()=>C,ce:()=>_,eV:()=>v,g0:()=>T,hY:()=>M,iC:()=>I,iW:()=>l,jJ:()=>A,tM:()=>D,ti:()=>R,ww:()=>F,xu:()=>P,yB:()=>E,ym:()=>y});var i=n(7845),r=n(8883),o=n(6650),a=n(6217),s=1e3,l=60*s,h=60*l,c=24*h,u=365*c,d={year:"{yyyy}",month:"{MMM}",day:"{d}",hour:"{HH}:{mm}",minute:"{HH}:{mm}",second:"{HH}:{mm}:{ss}",millisecond:"{HH}:{mm}:{ss} {SSS}",none:"{yyyy}-{MM}-{dd} {HH}:{mm}:{ss} {SSS}"},p="{yyyy}-{MM}-{dd}",f={year:"{yyyy}",month:"{yyyy}-{MM}",day:p,hour:p+" "+d.hour,minute:p+" "+d.minute,second:p+" "+d.second,millisecond:d.none},g=["year","month","day","hour","minute","second","millisecond"],m=["year","half-year","quarter","month","week","half-week","day","half-day","quarter-day","hour","minute","second","millisecond"];function v(t,e){return"0000".substr(0,e-(t+="").length)+t}function y(t){switch(t){case"half-year":case"quarter":return"month";case"week":case"half-week":return"day";case"half-day":case"quarter-day":return"hour";default:return t}}function _(t){return t===y(t)}function x(t){switch(t){case"year":case"month":return"day";case"millisecond":return"millisecond";default:return"second"}}function b(t,e,n,i){var s=r._U(t),l=s[M(n)](),h=s[A(n)]()+1,c=Math.floor((h-1)/3)+1,u=s[C(n)](),d=s["get"+(n?"UTC":"")+"Day"](),p=s[I(n)](),f=(p-1)%12+1,g=s[E(n)](),m=s[k(n)](),y=s[L(n)](),_=p>=12?"pm":"am",x=_.toUpperCase(),b=(i instanceof a.A?i:(0,o.A4)(i||o.Lv)||(0,o.pr)()).getModel("time"),w=b.get("month"),S=b.get("monthAbbr"),T=b.get("dayOfWeek"),D=b.get("dayOfWeekAbbr");return(e||"").replace(/{a}/g,_+"").replace(/{A}/g,x+"").replace(/{yyyy}/g,l+"").replace(/{yy}/g,v(l%100+"",2)).replace(/{Q}/g,c+"").replace(/{MMMM}/g,w[h-1]).replace(/{MMM}/g,S[h-1]).replace(/{MM}/g,v(h,2)).replace(/{M}/g,h+"").replace(/{dd}/g,v(u,2)).replace(/{d}/g,u+"").replace(/{eeee}/g,T[d]).replace(/{ee}/g,D[d]).replace(/{e}/g,d+"").replace(/{HH}/g,v(p,2)).replace(/{H}/g,p+"").replace(/{hh}/g,v(f+"",2)).replace(/{h}/g,f+"").replace(/{mm}/g,v(g,2)).replace(/{m}/g,g+"").replace(/{ss}/g,v(m,2)).replace(/{s}/g,m+"").replace(/{SSS}/g,v(y,3)).replace(/{S}/g,y+"")}function w(t,e,n,r,o){var a=null;if(i.isString(n))a=n;else if(i.isFunction(n))a=n(t.value,e,{level:t.level});else{var s=i.extend({},d);if(t.level>0)for(var l=0;l<g.length;++l)s[g[l]]="{primary|"+s[g[l]]+"}";var h=n?!1===n.inherit?n:i.defaults(n,s):s,c=S(t.value,o);if(h[c])a=h[c];else if(h.inherit){for(l=m.indexOf(c)-1;l>=0;--l)if(h[c]){a=h[c];break}a=a||s.none}if(i.isArray(a)){var u=null==t.level?0:t.level>=0?t.level:a.length+t.level;a=a[u=Math.min(u,a.length-1)]}}return b(new Date(t.value),a,o,r)}function S(t,e){var n=r._U(t),i=n[A(e)]()+1,o=n[C(e)](),a=n[I(e)](),s=n[E(e)](),l=n[k(e)](),h=0===n[L(e)](),c=h&&0===l,u=c&&0===s,d=u&&0===a,p=d&&1===o;return p&&1===i?"year":p?"month":d?"day":u?"hour":c?"minute":h?"second":"millisecond"}function T(t,e,n){var o=i.isNumber(t)?r._U(t):t;switch(e=e||S(t,n)){case"year":return o[M(n)]();case"half-year":return o[A(n)]()>=6?1:0;case"quarter":return Math.floor((o[A(n)]()+1)/4);case"month":return o[A(n)]();case"day":return o[C(n)]();case"half-day":return o[I(n)]()/24;case"hour":return o[I(n)]();case"minute":return o[E(n)]();case"second":return o[k(n)]();case"millisecond":return o[L(n)]()}}function M(t){return t?"getUTCFullYear":"getFullYear"}function A(t){return t?"getUTCMonth":"getMonth"}function C(t){return t?"getUTCDate":"getDate"}function I(t){return t?"getUTCHours":"getHours"}function E(t){return t?"getUTCMinutes":"getMinutes"}function k(t){return t?"getUTCSeconds":"getSeconds"}function L(t){return t?"getUTCMilliseconds":"getMilliseconds"}function D(t){return t?"setUTCFullYear":"setFullYear"}function P(t){return t?"setUTCMonth":"setMonth"}function R(t){return t?"setUTCDate":"setDate"}function O(t){return t?"setUTCHours":"setHours"}function N(t){return t?"setUTCMinutes":"setMinutes"}function F(t){return t?"setUTCSeconds":"setSeconds"}function B(t){return t?"setUTCMilliseconds":"setMilliseconds"}},3457:(t,e,n)=>{"use strict";n.d(e,{Km:()=>o,Pe:()=>i,Wk:()=>a,XO:()=>l,i_:()=>c,mK:()=>r,oC:()=>u,t1:()=>s,vm:()=>h});var i=(0,n(7845).createHashMap)(["tooltip","label","itemName","itemId","itemGroupId","itemChildGroupId","seriesName"]),r="original",o="arrayRows",a="objectRows",s="keyedColumns",l="typedArray",h="unknown",c="column",u="row"},3180:(t,e,n)=>{"use strict";n.d(e,{J:()=>a});var i=n(7845),r="undefined"!=typeof Float32Array,o=r?Float32Array:Array;function a(t){return(0,i.isArray)(t)?r?new Float32Array(t):t:new o(t)}},6145:(t,e,n)=>{"use strict";n.d(e,{A:()=>x});var i=n(7845),r=n(8829),o=n(1987),a=n(9902),s=n(2577),l=n(1632),h=n(1566),c=n(9421),u=n(6004),d=s.$r(),p=(0,c.A)(),f=function(){function t(){this.group=new r.A,this.uid=o.$Q("viewChart"),this.renderTask=(0,h.U)({plan:v,reset:y}),this.renderTask.context={view:this}}return t.prototype.init=function(t,e){},t.prototype.render=function(t,e,n,i){0},t.prototype.highlight=function(t,e,n,i){var r=t.getData(i&&i.dataType);r&&m(r,i,"emphasis")},t.prototype.downplay=function(t,e,n,i){var r=t.getData(i&&i.dataType);r&&m(r,i,"normal")},t.prototype.remove=function(t,e){this.group.removeAll()},t.prototype.dispose=function(t,e){},t.prototype.updateView=function(t,e,n,i){this.render(t,e,n,i)},t.prototype.updateLayout=function(t,e,n,i){this.render(t,e,n,i)},t.prototype.updateVisual=function(t,e,n,i){this.render(t,e,n,i)},t.prototype.eachRendered=function(t){(0,u.traverseElements)(this.group,t)},t.markUpdateMethod=function(t,e){d(t).updateMethod=e},t.protoInitialize=void(t.prototype.type="chart"),t}();function g(t,e,n){t&&(0,l.u6)(t)&&("emphasis"===e?l.HY:l.SD)(t,n)}function m(t,e,n){var r=s.le(t,e),o=e&&null!=e.highlightKey?(0,l._n)(e.highlightKey):null;null!=r?(0,i.each)(s.qB(r),(function(e){g(t.getItemGraphicEl(e),n,o)})):t.eachItemGraphicEl((function(t){g(t,n,o)}))}function v(t){return p(t.model)}function y(t){var e=t.model,n=t.ecModel,i=t.api,r=t.payload,o=e.pipelineContext.progressiveRender,a=t.view,s=r&&d(r).updateMethod,l=o?"incrementalPrepareRender":s&&a[s]?s:"render";return"render"!==l&&a[l](e,n,i,r),_[l]}a.gq(f,["dispose"]),a.tQ(f);var _={incrementalPrepareRender:{progress:function(t,e){e.view.incrementalRender(t,e.model,e.ecModel,e.api,e.payload)}},render:{forceFirstProgress:!0,progress:function(t,e){e.view.render(e.model,e.ecModel,e.api,e.payload)}}};const x=f},5370:(t,e,n)=>{"use strict";n.d(e,{A:()=>s});var i=n(8829),r=n(1987),o=n(9902),a=function(){function t(){this.group=new i.A,this.uid=r.$Q("viewComponent")}return t.prototype.init=function(t,e){},t.prototype.render=function(t,e,n,i){},t.prototype.dispose=function(t,e){},t.prototype.updateView=function(t,e,n,i){},t.prototype.updateLayout=function(t,e,n,i){},t.prototype.updateVisual=function(t,e,n,i){},t.prototype.toggleBlurSeries=function(t,e,n){},t.prototype.eachRendered=function(t){var e=this.group;e&&e.traverse(t)},t}();o.gq(a),o.tQ(a);const s=a},2322:(t,e,n)=>{"use strict";function i(t,e,n){switch(n){case"color":return t.getItemVisual(e,"style")[t.getVisual("drawType")];case"opacity":return t.getItemVisual(e,"style").opacity;case"symbol":case"symbolSize":case"liftZ":return t.getItemVisual(e,n)}}function r(t,e){switch(e){case"color":return t.getVisual("style")[t.getVisual("drawType")];case"opacity":return t.getVisual("style").opacity;case"symbol":case"symbolSize":case"liftZ":return t.getVisual(e)}}function o(t,e,n,i){switch(n){case"color":t.ensureUniqueItemVisual(e,"style")[t.getVisual("drawType")]=i,t.setItemVisual(e,"colorFromPalette",!1);break;case"opacity":t.ensureUniqueItemVisual(e,"style").opacity=i;break;case"symbol":case"symbolSize":case"liftZ":t.setItemVisual(e,n,i)}}n.d(e,{Ez:()=>i,oZ:()=>o,rI:()=>r})},8554:(t,e,n)=>{"use strict";n.d(e,{A:()=>o});const i={1:"The view center is not defined",2:"The view resolution is not defined",3:"The view rotation is not defined",4:"`image` and `src` cannot be provided at the same time",5:"`imgSize` must be set when `image` is provided",7:"`format` must be set when `url` is set",8:"Unknown `serverType` configured",9:"`url` must be configured or set using `#setUrl()`",10:"The default `geometryFunction` can only handle `Point` geometries",11:"`options.featureTypes` must be an Array",12:"`options.geometryName` must also be provided when `options.bbox` is set",13:"Invalid corner",14:"Invalid color",15:"Tried to get a value for a key that does not exist in the cache",16:"Tried to set a value for a key that is used already",17:"`resolutions` must be sorted in descending order",18:"Either `origin` or `origins` must be configured, never both",19:"Number of `tileSizes` and `resolutions` must be equal",20:"Number of `origins` and `resolutions` must be equal",22:"Either `tileSize` or `tileSizes` must be configured, never both",24:"Invalid extent or geometry provided as `geometry`",25:"Cannot fit empty extent provided as `geometry`",26:"Features must have an id set",27:"Features must have an id set",28:'`renderMode` must be `"hybrid"` or `"vector"`',30:"The passed `feature` was already added to the source",31:"Tried to enqueue an `element` that was already added to the queue",32:"Transformation matrix cannot be inverted",33:"Invalid units",34:"Invalid geometry layout",36:"Unknown SRS type",37:"Unknown geometry type found",38:"`styleMapValue` has an unknown type",39:"Unknown geometry type",40:"Expected `feature` to have a geometry",41:"Expected an `ol/style/Style` or an array of `ol/style/Style.js`",42:"Question unknown, the answer is 42",43:"Expected `layers` to be an array or a `Collection`",47:"Expected `controls` to be an array or an `ol/Collection`",48:"Expected `interactions` to be an array or an `ol/Collection`",49:"Expected `overlays` to be an array or an `ol/Collection`",50:"`options.featureTypes` should be an Array",51:"Either `url` or `tileJSON` options must be provided",52:"Unknown `serverType` configured",53:"Unknown `tierSizeCalculation` configured",55:"The {-y} placeholder requires a tile grid with extent",56:"mapBrowserEvent must originate from a pointer event",57:"At least 2 conditions are required",59:"Invalid command found in the PBF",60:"Missing or invalid `size`",61:"Cannot determine IIIF Image API version from provided image information JSON",62:"A `WebGLArrayBuffer` must either be of type `ELEMENT_ARRAY_BUFFER` or `ARRAY_BUFFER`",64:"Layer opacity must be a number",66:"`forEachFeatureAtCoordinate` cannot be used on a WebGL layer if the hit detection logic has not been enabled. This is done by providing adequate shaders using the `hitVertexShader` and `hitFragmentShader` properties of `WebGLPointsLayerRenderer`",67:"A layer can only be added to the map once. Use either `layer.setMap()` or `map.addLayer()`, not both",68:"A VectorTile source can only be rendered if it has a projection compatible with the view projection",69:"`width` or `height` cannot be provided together with `scale`"};class r extends Error{constructor(t){const e=i[t];super(e),this.code=t,this.name="AssertionError",this.message=e}}const o=r},5616:(t,e,n)=>{"use strict";n.d(e,{A:()=>c});var i=n(8554),r=n(5191),o=n(5930),a=n(5026);const s="length";class l extends a.Ay{constructor(t,e,n){super(t),this.element=e,this.index=n}}class h extends r.A{constructor(t,e){if(super(),this.on,this.once,this.un,e=e||{},this.unique_=!!e.unique,this.array_=t||[],this.unique_)for(let n=0,i=this.array_.length;n<i;++n)this.assertUnique_(this.array_[n],n);this.updateLength_()}clear(){for(;this.getLength()>0;)this.pop()}extend(t){for(let e=0,n=t.length;e<n;++e)this.push(t[e]);return this}forEach(t){const e=this.array_;for(let n=0,i=e.length;n<i;++n)t(e[n],n,e)}getArray(){return this.array_}item(t){return this.array_[t]}getLength(){return this.get(s)}insertAt(t,e){if(t<0||t>this.getLength())throw new Error("Index out of bounds: "+t);this.unique_&&this.assertUnique_(e),this.array_.splice(t,0,e),this.updateLength_(),this.dispatchEvent(new l(o.A.ADD,e,t))}pop(){return this.removeAt(this.getLength()-1)}push(t){this.unique_&&this.assertUnique_(t);const e=this.getLength();return this.insertAt(e,t),this.getLength()}remove(t){const e=this.array_;for(let n=0,i=e.length;n<i;++n)if(e[n]===t)return this.removeAt(n)}removeAt(t){if(t<0||t>=this.getLength())return;const e=this.array_[t];return this.array_.splice(t,1),this.updateLength_(),this.dispatchEvent(new l(o.A.REMOVE,e,t)),e}setAt(t,e){if(t>=this.getLength())return void this.insertAt(t,e);if(t<0)throw new Error("Index out of bounds: "+t);this.unique_&&this.assertUnique_(e,t);const n=this.array_[t];this.array_[t]=e,this.dispatchEvent(new l(o.A.REMOVE,n,t)),this.dispatchEvent(new l(o.A.ADD,e,t))}updateLength_(){this.set(s,this.array_.length)}assertUnique_(t,e){for(let n=0,r=this.array_.length;n<r;++n)if(this.array_[n]===t&&n!==e)throw new i.A(58)}}const c=h},5930:(t,e,n)=>{"use strict";n.d(e,{A:()=>i});const i={ADD:"add",REMOVE:"remove"}},7034:(t,e,n)=>{"use strict";n.d(e,{A:()=>i});const i=class{constructor(){this.disposed=!1}dispose(){this.disposed||(this.disposed=!0,this.disposeInternal())}disposeInternal(){}}},1116:(t,e,n)=>{"use strict";n.d(e,{A:()=>l});var i=n(5191),r=n(874),o=n(3957),a=n(2657);class s extends i.A{constructor(t){if(super(),this.on,this.once,this.un,this.id_=void 0,this.geometryName_="geometry",this.style_=null,this.styleFunction_=void 0,this.geometryChangeKey_=null,this.addChangeListener(this.geometryName_,this.handleGeometryChanged_),t)if("function"==typeof t.getSimplifiedGeometry){const e=t;this.setGeometry(e)}else{const e=t;this.setProperties(e)}}clone(){const t=new s(this.hasProperties()?this.getProperties():null);t.setGeometryName(this.getGeometryName());const e=this.getGeometry();e&&t.setGeometry(e.clone());const n=this.getStyle();return n&&t.setStyle(n),t}getGeometry(){return this.get(this.geometryName_)}getId(){return this.id_}getGeometryName(){return this.geometryName_}getStyle(){return this.style_}getStyleFunction(){return this.styleFunction_}handleGeometryChange_(){this.changed()}handleGeometryChanged_(){this.geometryChangeKey_&&((0,a.JH)(this.geometryChangeKey_),this.geometryChangeKey_=null);const t=this.getGeometry();t&&(this.geometryChangeKey_=(0,a.KT)(t,r.A.CHANGE,this.handleGeometryChange_,this)),this.changed()}setGeometry(t){this.set(this.geometryName_,t)}setStyle(t){this.style_=t,this.styleFunction_=t?function(t){if("function"==typeof t)return t;let e;if(Array.isArray(t))e=t;else{(0,o.v)("function"==typeof t.getZIndex,41);e=[t]}return function(){return e}}(t):void 0,this.changed()}setId(t){this.id_=t,this.changed()}setGeometryName(t){this.removeChangeListener(this.geometryName_,this.handleGeometryChanged_),this.geometryName_=t,this.addChangeListener(this.geometryName_,this.handleGeometryChanged_),this.handleGeometryChanged_()}}const l=s},9407:(t,e,n)=>{"use strict";n.d(e,{A:()=>u,f:()=>c});var i=n(874),r=n(6414),o=n(438),a=n(6306),s=n(4320),l=n(2657);class h extends r.A{constructor(t,e,n,i,r,a,s){super(t,e,n,o.A.IDLE),this.src_=i,this.image_=new Image,null!==r&&(this.image_.crossOrigin=r),this.context_=s,this.unlisten_=null,this.state=o.A.IDLE,this.imageLoadFunction_=a}getImage(){if(this.state==o.A.LOADED&&this.context_&&!(this.image_ instanceof HTMLCanvasElement)){const t=this.context_.canvas;t.width=this.image_.width,t.height=this.image_.height,this.context_.drawImage(this.image_,0,0),this.image_=this.context_.canvas}return this.image_}handleImageError_(){this.state=o.A.ERROR,this.unlistenImage_(),this.changed()}handleImageLoad_(){void 0===this.resolution&&(this.resolution=(0,s.Oq)(this.extent)/this.image_.height),this.state=o.A.LOADED,this.unlistenImage_(),this.changed()}load(){this.state!=o.A.IDLE&&this.state!=o.A.ERROR||(this.state=o.A.LOADING,this.changed(),this.imageLoadFunction_(this,this.src_),this.unlisten_=c(this.image_,this.handleImageLoad_.bind(this),this.handleImageError_.bind(this)))}setImage(t){this.image_=t,this.resolution=(0,s.Oq)(this.extent)/this.image_.height}unlistenImage_(){this.unlisten_&&(this.unlisten_(),this.unlisten_=null)}}function c(t,e,n){const r=t;let o=!0,s=!1,h=!1;const c=[(0,l.Jz)(r,i.A.LOAD,(function(){h=!0,s||e()}))];return r.src&&a.DT?(s=!0,r.decode().then((function(){o&&e()})).catch((function(t){o&&(h?e():n())}))):c.push((0,l.Jz)(r,i.A.ERROR,n)),function(){o=!1,c.forEach(l.JH)}}const u=h},6414:(t,e,n)=>{"use strict";n.d(e,{A:()=>s});var i=n(1385),r=n(874),o=n(6916);class a extends i.A{constructor(t,e,n,i){super(),this.extent=t,this.pixelRatio_=n,this.resolution=e,this.state=i}changed(){this.dispatchEvent(r.A.CHANGE)}getExtent(){return this.extent}getImage(){return(0,o.b0)()}getPixelRatio(){return this.pixelRatio_}getResolution(){return this.resolution}getState(){return this.state}load(){(0,o.b0)()}}const s=a},438:(t,e,n)=>{"use strict";n.d(e,{A:()=>i});const i={IDLE:0,LOADING:1,LOADED:2,ERROR:3,EMPTY:4}},931:(t,e,n)=>{"use strict";n.d(e,{A:()=>l});var i=n(3588),r=n(5751),o=n(7354),a=n(9407);class s extends i.A{constructor(t,e,n,i,r,o){super(t,e,o),this.crossOrigin_=i,this.src_=n,this.key=n,this.image_=new Image,null!==i&&(this.image_.crossOrigin=i),this.unlisten_=null,this.tileLoadFunction_=r}getImage(){return this.image_}setImage(t){this.image_=t,this.state=r.A.LOADED,this.unlistenImage_(),this.changed()}handleImageError_(){this.state=r.A.ERROR,this.unlistenImage_(),this.image_=function(){const t=(0,o.Y)(1,1);return t.fillStyle="rgba(0,0,0,0)",t.fillRect(0,0,1,1),t.canvas}(),this.changed()}handleImageLoad_(){const t=this.image_;t.naturalWidth&&t.naturalHeight?this.state=r.A.LOADED:this.state=r.A.EMPTY,this.unlistenImage_(),this.changed()}load(){this.state==r.A.ERROR&&(this.state=r.A.IDLE,this.image_=new Image,null!==this.crossOrigin_&&(this.image_.crossOrigin=this.crossOrigin_)),this.state==r.A.IDLE&&(this.state=r.A.LOADING,this.changed(),this.tileLoadFunction_(this,this.src_),this.unlisten_=(0,a.f)(this.image_,this.handleImageLoad_.bind(this),this.handleImageError_.bind(this)))}unlistenImage_(){this.unlisten_&&(this.unlisten_(),this.unlisten_=null)}}const l=s},6021:(t,e,n)=>{"use strict";n.d(e,{A:()=>i});const i=class{constructor(t,e,n){this.decay_=t,this.minVelocity_=e,this.delay_=n,this.points_=[],this.angle_=0,this.initialVelocity_=0}begin(){this.points_.length=0,this.angle_=0,this.initialVelocity_=0}update(t,e){this.points_.push(t,e,Date.now())}end(){if(this.points_.length<6)return!1;const t=Date.now()-this.delay_,e=this.points_.length-3;if(this.points_[e+2]<t)return!1;let n=e-3;for(;n>0&&this.points_[n+2]>t;)n-=3;const i=this.points_[e+2]-this.points_[n+2];if(i<1e3/60)return!1;const r=this.points_[e]-this.points_[n],o=this.points_[e+1]-this.points_[n+1];return this.angle_=Math.atan2(o,r),this.initialVelocity_=Math.sqrt(r*r+o*o)/i,this.initialVelocity_>this.minVelocity_}getDistance(){return(this.minVelocity_-this.initialVelocity_)/this.decay_}getAngle(){return this.angle_}}},9532:(t,e,n)=>{"use strict";n.d(e,{A:()=>Yt});var i=n(5191),r=n(5616),o=n(5930),a=n(7034),s=n(6079),l=n(6916),h=n(686),c=n(4320),u=n(1386),d=n(221),p=n(6234);class f extends a.A{constructor(t){super(),this.map_=t}dispatchRenderEvent(t,e){(0,l.b0)()}calculateMatrices2D(t){const e=t.viewState,n=t.coordinateToPixelTransform,i=t.pixelToCoordinateTransform;(0,h.Zz)(n,t.size[0]/2,t.size[1]/2,1/e.resolution,-1/e.resolution,-e.rotation,-e.center[0],-e.center[1]),(0,h.T9)(i,n)}forEachFeatureAtCoordinate(t,e,n,i,r,o,a,s){let l;const h=e.viewState;function u(t,e,n,i){return r.call(o,e,t?n:null,i)}const f=h.projection,g=(0,p.Li)(t.slice(),f),m=[[0,0]];if(f.canWrapX()&&i){const t=f.getExtent(),e=(0,c.RG)(t);m.push([-e,0],[e,0])}const v=e.layerStatesArray,y=v.length,_=[],x=[];for(let c=0;c<m.length;c++)for(let i=y-1;i>=0;--i){const r=v[i],o=r.layer;if(o.hasRenderer()&&(0,d.l)(r,h)&&a.call(s,o)){const i=o.getRenderer(),a=o.getSource();if(i&&a){const o=a.getWrapX()?g:t,s=u.bind(null,r.managed);x[0]=o[0]+m[c][0],x[1]=o[1]+m[c][1],l=i.forEachFeatureAtCoordinate(x,e,n,s,_)}if(l)return l}}if(0===_.length)return;const b=1/_.length;return _.forEach(((t,e)=>t.distanceSq+=e*b)),_.sort(((t,e)=>t.distanceSq-e.distanceSq)),_.some((t=>l=t.callback(t.feature,t.layer,t.geometry))),l}hasFeatureAtCoordinate(t,e,n,i,r,o){return void 0!==this.forEachFeatureAtCoordinate(t,e,n,i,s.rT,this,r,o)}getMap(){return this.map_}renderFrame(t){(0,l.b0)()}flushDeclutterItems(t){}scheduleExpireIconCache(t){u.u.canExpireCache()&&t.postRenderFunctions.push(g)}}function g(t,e){u.u.expire()}const m=f;var v=n(1335),y=n(6263),_=n(4431),x=n(5433),b=n(1763),w=n(2657),S=n(7354);const T=class extends m{constructor(t){super(t),this.fontChangeListenerKey_=(0,w.KT)(b.yY,v.A.PROPERTYCHANGE,t.redrawText.bind(t)),this.element_=document.createElement("div");const e=this.element_.style;e.position="absolute",e.width="100%",e.height="100%",e.zIndex="0",this.element_.className=x.XI+" ol-layers";const n=t.getViewport();n.insertBefore(this.element_,n.firstChild||null),this.children_=[],this.renderedVisible_=!0,this.declutterLayers_=[]}dispatchRenderEvent(t,e){const n=this.getMap();if(n.hasListener(t)){const i=new y.A(t,void 0,e);n.dispatchEvent(i)}}disposeInternal(){(0,w.JH)(this.fontChangeListenerKey_),this.element_.parentNode.removeChild(this.element_),super.disposeInternal()}renderFrame(t){if(!t)return void(this.renderedVisible_&&(this.element_.style.display="none",this.renderedVisible_=!1));this.calculateMatrices2D(t),this.dispatchRenderEvent(_.A.PRECOMPOSE,t);const e=t.layerStatesArray.sort((function(t,e){return t.zIndex-e.zIndex})),n=t.viewState;this.children_.length=0;const i=this.declutterLayers_;i.length=0;let r=null;for(let o=0,a=e.length;o<a;++o){const a=e[o];t.layerIndex=o;const s=a.layer,l=s.getSourceState();if(!(0,d.l)(a,n)||"ready"!=l&&"undefined"!=l){s.unrender();continue}const h=s.render(t,r);h&&(h!==r&&(this.children_.push(h),r=h),"getDeclutter"in s&&i.push(s))}this.flushDeclutterItems(t),(0,S.WM)(this.element_,this.children_),this.dispatchRenderEvent(_.A.POSTCOMPOSE,t),this.renderedVisible_||(this.element_.style.display="",this.renderedVisible_=!0),this.scheduleExpireIconCache(t)}flushDeclutterItems(t){const e=this.declutterLayers_;for(let n=e.length-1;n>=0;--n)e[n].renderDeclutter(t);e.length=0}};var M=n(874),A=n(9251),C=n(5026),I=n(3957),E=n(6943);class k extends C.Ay{constructor(t,e){super(t),this.layer=e}}const L="layers";class D extends A.A{constructor(t){t=t||{};const e=Object.assign({},t);delete e.layers;let n=t.layers;super(e),this.on,this.once,this.un,this.layersListenerKeys_=[],this.listenerKeys_={},this.addChangeListener(L,this.handleLayersChanged_),n?Array.isArray(n)?n=new r.A(n.slice(),{unique:!0}):(0,I.v)("function"==typeof n.getArray,43):n=new r.A(void 0,{unique:!0}),this.setLayers(n)}handleLayerChange_(){this.changed()}handleLayersChanged_(){this.layersListenerKeys_.forEach(w.JH),this.layersListenerKeys_.length=0;const t=this.getLayers();this.layersListenerKeys_.push((0,w.KT)(t,o.A.ADD,this.handleLayersAdd_,this),(0,w.KT)(t,o.A.REMOVE,this.handleLayersRemove_,this));for(const n in this.listenerKeys_)this.listenerKeys_[n].forEach(w.JH);(0,E.I)(this.listenerKeys_);const e=t.getArray();for(let n=0,i=e.length;n<i;n++){const t=e[n];this.registerLayerListeners_(t),this.dispatchEvent(new k("addlayer",t))}this.changed()}registerLayerListeners_(t){const e=[(0,w.KT)(t,v.A.PROPERTYCHANGE,this.handleLayerChange_,this),(0,w.KT)(t,M.A.CHANGE,this.handleLayerChange_,this)];t instanceof D&&e.push((0,w.KT)(t,"addlayer",this.handleLayerGroupAdd_,this),(0,w.KT)(t,"removelayer",this.handleLayerGroupRemove_,this)),this.listenerKeys_[(0,l.v6)(t)]=e}handleLayerGroupAdd_(t){this.dispatchEvent(new k("addlayer",t.layer))}handleLayerGroupRemove_(t){this.dispatchEvent(new k("removelayer",t.layer))}handleLayersAdd_(t){const e=t.element;this.registerLayerListeners_(e),this.dispatchEvent(new k("addlayer",e)),this.changed()}handleLayersRemove_(t){const e=t.element,n=(0,l.v6)(e);this.listenerKeys_[n].forEach(w.JH),delete this.listenerKeys_[n],this.dispatchEvent(new k("removelayer",e)),this.changed()}getLayers(){return this.get(L)}setLayers(t){const e=this.getLayers();if(e){const t=e.getArray();for(let e=0,n=t.length;e<n;++e)this.dispatchEvent(new k("removelayer",t[e]))}this.set(L,t)}getLayersArray(t){return t=void 0!==t?t:[],this.getLayers().forEach((function(e){e.getLayersArray(t)})),t}getLayerStatesArray(t){const e=void 0!==t?t:[],n=e.length;this.getLayers().forEach((function(t){t.getLayerStatesArray(e)}));const i=this.getLayerState();let r=i.zIndex;t||void 0!==i.zIndex||(r=0);for(let o=n,a=e.length;o<a;o++){const t=e[o];t.opacity*=i.opacity,t.visible=t.visible&&i.visible,t.maxResolution=Math.min(t.maxResolution,i.maxResolution),t.minResolution=Math.max(t.minResolution,i.minResolution),t.minZoom=Math.max(t.minZoom,i.minZoom),t.maxZoom=Math.min(t.maxZoom,i.maxZoom),void 0!==i.extent&&(void 0!==t.extent?t.extent=(0,c._N)(t.extent,i.extent):t.extent=i.extent),void 0===t.zIndex&&(t.zIndex=r)}return e}getSourceState(){return"ready"}}const P=D;var R=n(7264),O=n(5462),N=n(3640),F=n(7762),B=n(7738);const z="layergroup",G="size",V="target",j="view";var H=n(228),W=n(2384),U=n(3427),q=n(8856),X=n(6306);class Y extends i.A{constructor(t){super();const e=t.element;!e||t.target||e.style.pointerEvents||(e.style.pointerEvents="auto"),this.element=e||null,this.target_=null,this.map_=null,this.listenerKeys=[],t.render&&(this.render=t.render),t.target&&this.setTarget(t.target)}disposeInternal(){(0,S.bf)(this.element),super.disposeInternal()}getMap(){return this.map_}setMap(t){this.map_&&(0,S.bf)(this.element);for(let e=0,n=this.listenerKeys.length;e<n;++e)(0,w.JH)(this.listenerKeys[e]);if(this.listenerKeys.length=0,this.map_=t,t){(this.target_?this.target_:t.getOverlayContainerStopEvent()).appendChild(this.element),this.render!==s.tV&&this.listenerKeys.push((0,w.KT)(t,B.A.POSTRENDER,this.render,this)),t.render()}}render(t){}setTarget(t){this.target_="string"==typeof t?document.getElementById(t):t}}const Z=Y;var $=n(9783);const K=class extends Z{constructor(t){t=t||{},super({element:document.createElement("div"),render:t.render,target:t.target}),this.ulElement_=document.createElement("ul"),this.collapsed_=void 0===t.collapsed||t.collapsed,this.userCollapsed_=this.collapsed_,this.overrideCollapsible_=void 0!==t.collapsible,this.collapsible_=void 0===t.collapsible||t.collapsible,this.collapsible_||(this.collapsed_=!1);const e=void 0!==t.className?t.className:"ol-attribution",n=void 0!==t.tipLabel?t.tipLabel:"Attributions",i=void 0!==t.expandClassName?t.expandClassName:e+"-expand",r=void 0!==t.collapseLabel?t.collapseLabel:"\u203a",o=void 0!==t.collapseClassName?t.collapseClassName:e+"-collapse";"string"==typeof r?(this.collapseLabel_=document.createElement("span"),this.collapseLabel_.textContent=r,this.collapseLabel_.className=o):this.collapseLabel_=r;const a=void 0!==t.label?t.label:"i";"string"==typeof a?(this.label_=document.createElement("span"),this.label_.textContent=a,this.label_.className=i):this.label_=a;const s=this.collapsible_&&!this.collapsed_?this.collapseLabel_:this.label_;this.toggleButton_=document.createElement("button"),this.toggleButton_.setAttribute("type","button"),this.toggleButton_.setAttribute("aria-expanded",String(!this.collapsed_)),this.toggleButton_.title=n,this.toggleButton_.appendChild(s),this.toggleButton_.addEventListener(M.A.CLICK,this.handleClick_.bind(this),!1);const l=e+" "+x.XI+" "+x.$N+(this.collapsed_&&this.collapsible_?" "+x.nT:"")+(this.collapsible_?"":" ol-uncollapsible"),h=this.element;h.className=l,h.appendChild(this.toggleButton_),h.appendChild(this.ulElement_),this.renderedAttributions_=[],this.renderedVisible_=!0}collectSourceAttributions_(t){const e=Array.from(new Set(this.getMap().getAllLayers().flatMap((e=>e.getAttributions(t))))),n=!this.getMap().getAllLayers().some((t=>t.getSource()&&!1===t.getSource().getAttributionsCollapsible()));return this.overrideCollapsible_||this.setCollapsible(n),e}updateElement_(t){if(!t)return void(this.renderedVisible_&&(this.element.style.display="none",this.renderedVisible_=!1));const e=this.collectSourceAttributions_(t),n=e.length>0;if(this.renderedVisible_!=n&&(this.element.style.display=n?"":"none",this.renderedVisible_=n),!(0,$.aI)(e,this.renderedAttributions_)){(0,S.gS)(this.ulElement_);for(let t=0,n=e.length;t<n;++t){const n=document.createElement("li");n.innerHTML=e[t],this.ulElement_.appendChild(n)}this.renderedAttributions_=e}}handleClick_(t){t.preventDefault(),this.handleToggle_(),this.userCollapsed_=this.collapsed_}handleToggle_(){this.element.classList.toggle(x.nT),this.collapsed_?(0,S.fo)(this.collapseLabel_,this.label_):(0,S.fo)(this.label_,this.collapseLabel_),this.collapsed_=!this.collapsed_,this.toggleButton_.setAttribute("aria-expanded",String(!this.collapsed_))}getCollapsible(){return this.collapsible_}setCollapsible(t){this.collapsible_!==t&&(this.collapsible_=t,this.element.classList.toggle("ol-uncollapsible"),this.userCollapsed_&&this.handleToggle_())}setCollapsed(t){this.userCollapsed_=t,this.collapsible_&&this.collapsed_!==t&&this.handleToggle_()}getCollapsed(){return this.collapsed_}render(t){this.updateElement_(t.frameState)}};var J=n(3829);const Q=class extends Z{constructor(t){t=t||{},super({element:document.createElement("div"),render:t.render,target:t.target});const e=void 0!==t.className?t.className:"ol-rotate",n=void 0!==t.label?t.label:"\u21e7",i=void 0!==t.compassClassName?t.compassClassName:"ol-compass";this.label_=null,"string"==typeof n?(this.label_=document.createElement("span"),this.label_.className=i,this.label_.textContent=n):(this.label_=n,this.label_.classList.add(i));const r=t.tipLabel?t.tipLabel:"Reset rotation",o=document.createElement("button");o.className=e+"-reset",o.setAttribute("type","button"),o.title=r,o.appendChild(this.label_),o.addEventListener(M.A.CLICK,this.handleClick_.bind(this),!1);const a=e+" "+x.XI+" "+x.$N,s=this.element;s.className=a,s.appendChild(o),this.callResetNorth_=t.resetNorth?t.resetNorth:void 0,this.duration_=void 0!==t.duration?t.duration:250,this.autoHide_=void 0===t.autoHide||t.autoHide,this.rotation_=void 0,this.autoHide_&&this.element.classList.add(x.Si)}handleClick_(t){t.preventDefault(),void 0!==this.callResetNorth_?this.callResetNorth_():this.resetNorth_()}resetNorth_(){const t=this.getMap().getView();if(!t)return;const e=t.getRotation();void 0!==e&&(this.duration_>0&&e%(2*Math.PI)!=0?t.animate({rotation:0,duration:this.duration_,easing:J.vT}):t.setRotation(0))}render(t){const e=t.frameState;if(!e)return;const n=e.viewState.rotation;if(n!=this.rotation_){const t="rotate("+n+"rad)";if(this.autoHide_){const t=this.element.classList.contains(x.Si);t||0!==n?t&&0!==n&&this.element.classList.remove(x.Si):this.element.classList.add(x.Si)}this.label_.style.transform=t}this.rotation_=n}};const tt=class extends Z{constructor(t){t=t||{},super({element:document.createElement("div"),target:t.target});const e=void 0!==t.className?t.className:"ol-zoom",n=void 0!==t.delta?t.delta:1,i=void 0!==t.zoomInClassName?t.zoomInClassName:e+"-in",r=void 0!==t.zoomOutClassName?t.zoomOutClassName:e+"-out",o=void 0!==t.zoomInLabel?t.zoomInLabel:"+",a=void 0!==t.zoomOutLabel?t.zoomOutLabel:"\u2013",s=void 0!==t.zoomInTipLabel?t.zoomInTipLabel:"Zoom in",l=void 0!==t.zoomOutTipLabel?t.zoomOutTipLabel:"Zoom out",h=document.createElement("button");h.className=i,h.setAttribute("type","button"),h.title=s,h.appendChild("string"==typeof o?document.createTextNode(o):o),h.addEventListener(M.A.CLICK,this.handleClick_.bind(this,n),!1);const c=document.createElement("button");c.className=r,c.setAttribute("type","button"),c.title=l,c.appendChild("string"==typeof a?document.createTextNode(a):a),c.addEventListener(M.A.CLICK,this.handleClick_.bind(this,-n),!1);const u=e+" "+x.XI+" "+x.$N,d=this.element;d.className=u,d.appendChild(h),d.appendChild(c),this.duration_=void 0!==t.duration?t.duration:250}handleClick_(t,e){e.preventDefault(),this.zoomByDelta_(t)}zoomByDelta_(t){const e=this.getMap().getView();if(!e)return;const n=e.getZoom();if(void 0!==n){const i=e.getConstrainedZoom(n+t);this.duration_>0?(e.getAnimating()&&e.cancelAnimations(),e.animate({zoom:i,duration:this.duration_,easing:J.vT})):e.setZoom(i)}}};const et="active";class nt extends i.A{constructor(t){super(),this.on,this.once,this.un,t&&t.handleEvent&&(this.handleEvent=t.handleEvent),this.map_=null,this.setActive(!0)}getActive(){return this.get(et)}getMap(){return this.map_}handleEvent(t){return!0}setActive(t){this.set(et,t)}setMap(t){this.map_=t}}function it(t,e,n,i){const r=t.getZoom();if(void 0===r)return;const o=t.getConstrainedZoom(r+e),a=t.getResolutionForZoom(o);t.getAnimating()&&t.cancelAnimations(),t.animate({resolution:a,anchor:n,duration:void 0!==i?i:250,easing:J.vT})}const rt=nt;const ot=class extends rt{constructor(t){super(),t=t||{},this.delta_=t.delta?t.delta:1,this.duration_=void 0!==t.duration?t.duration:250}handleEvent(t){let e=!1;if(t.type==N.A.DBLCLICK){const n=t.originalEvent,i=t.map,r=t.coordinate,o=n.shiftKey?-this.delta_:this.delta_;it(i.getView(),o,r,this.duration_),n.preventDefault(),e=!0}return!e}};function at(t){const e=t.length;let n=0,i=0;for(let r=0;r<e;r++)n+=t[r].clientX,i+=t[r].clientY;return{clientX:n/e,clientY:i/e}}const st=class extends rt{constructor(t){super(t=t||{}),t.handleDownEvent&&(this.handleDownEvent=t.handleDownEvent),t.handleDragEvent&&(this.handleDragEvent=t.handleDragEvent),t.handleMoveEvent&&(this.handleMoveEvent=t.handleMoveEvent),t.handleUpEvent&&(this.handleUpEvent=t.handleUpEvent),t.stopDown&&(this.stopDown=t.stopDown),this.handlingDownUpSequence=!1,this.targetPointers=[]}getPointerCount(){return this.targetPointers.length}handleDownEvent(t){return!1}handleDragEvent(t){}handleEvent(t){if(!t.originalEvent)return!0;let e=!1;if(this.updateTrackedPointers_(t),this.handlingDownUpSequence){if(t.type==N.A.POINTERDRAG)this.handleDragEvent(t),t.originalEvent.preventDefault();else if(t.type==N.A.POINTERUP){const e=this.handleUpEvent(t);this.handlingDownUpSequence=e&&this.targetPointers.length>0}}else if(t.type==N.A.POINTERDOWN){const n=this.handleDownEvent(t);this.handlingDownUpSequence=n,e=this.stopDown(n)}else t.type==N.A.POINTERMOVE&&this.handleMoveEvent(t);return!e}handleMoveEvent(t){}handleUpEvent(t){return!1}stopDown(t){return t}updateTrackedPointers_(t){t.activePointers&&(this.targetPointers=t.activePointers)}};function lt(t){const e=arguments;return function(t){let n=!0;for(let i=0,r=e.length;i<r&&(n=n&&e[i](t),n);++i);return n}}const ht=function(t){const e=t.originalEvent;return e.altKey&&!(e.metaKey||e.ctrlKey)&&e.shiftKey},ct=function(t){return!t.map.getTargetElement().hasAttribute("tabindex")||function(t){const e=t.map.getTargetElement(),n=t.map.getOwnerDocument().activeElement;return e.contains(n)}(t)},ut=s.rT,dt=function(t){const e=t.originalEvent;return 0==e.button&&!(X.j&&X.ew&&e.ctrlKey)},pt=function(t){const e=t.originalEvent;return!e.altKey&&!(e.metaKey||e.ctrlKey)&&!e.shiftKey},ft=function(t){const e=t.originalEvent;return!e.altKey&&!(e.metaKey||e.ctrlKey)&&e.shiftKey},gt=function(t){const e=t.originalEvent,n=e.target.tagName;return"INPUT"!==n&&"SELECT"!==n&&"TEXTAREA"!==n&&!e.target.isContentEditable},mt=function(t){const e=t.originalEvent;return(0,I.v)(void 0!==e,56),"mouse"==e.pointerType},vt=function(t){const e=t.originalEvent;return(0,I.v)(void 0!==e,56),e.isPrimary&&0===e.button};const yt=class extends st{constructor(t){super({stopDown:s.W8}),t=t||{},this.kinetic_=t.kinetic,this.lastCentroid=null,this.lastPointersCount_,this.panning_=!1;const e=t.condition?t.condition:lt(pt,vt);this.condition_=t.onFocusOnly?lt(ct,e):e,this.noKinetic_=!1}handleDragEvent(t){const e=t.map;this.panning_||(this.panning_=!0,e.getView().beginInteraction());const n=this.targetPointers,i=e.getEventPixel(at(n));if(n.length==this.lastPointersCount_){if(this.kinetic_&&this.kinetic_.update(i[0],i[1]),this.lastCentroid){const e=[this.lastCentroid[0]-i[0],i[1]-this.lastCentroid[1]],n=t.map.getView();(0,p.hs)(e,n.getResolution()),(0,p.e$)(e,n.getRotation()),n.adjustCenterInternal(e)}}else this.kinetic_&&this.kinetic_.begin();this.lastCentroid=i,this.lastPointersCount_=n.length,t.originalEvent.preventDefault()}handleUpEvent(t){const e=t.map,n=e.getView();if(0===this.targetPointers.length){if(!this.noKinetic_&&this.kinetic_&&this.kinetic_.end()){const t=this.kinetic_.getDistance(),i=this.kinetic_.getAngle(),r=n.getCenterInternal(),o=e.getPixelFromCoordinateInternal(r),a=e.getCoordinateFromPixelInternal([o[0]-t*Math.cos(i),o[1]-t*Math.sin(i)]);n.animateInternal({center:n.getConstrainedCenter(a),duration:500,easing:J.vT})}return this.panning_&&(this.panning_=!1,n.endInteraction()),!1}return this.kinetic_&&this.kinetic_.begin(),this.lastCentroid=null,!0}handleDownEvent(t){if(this.targetPointers.length>0&&this.condition_(t)){const e=t.map.getView();return this.lastCentroid=null,e.getAnimating()&&e.cancelAnimations(),this.kinetic_&&this.kinetic_.begin(),this.noKinetic_=this.targetPointers.length>1,!0}return!1}};var _t=n(8333);const xt=class extends st{constructor(t){t=t||{},super({stopDown:s.W8}),this.condition_=t.condition?t.condition:ht,this.lastAngle_=void 0,this.duration_=void 0!==t.duration?t.duration:250}handleDragEvent(t){if(!mt(t))return;const e=t.map,n=e.getView();if(n.getConstraints().rotation===_t.b8)return;const i=e.getSize(),r=t.pixel,o=Math.atan2(i[1]/2-r[1],r[0]-i[0]/2);if(void 0!==this.lastAngle_){const t=o-this.lastAngle_;n.adjustRotationInternal(-t)}this.lastAngle_=o}handleUpEvent(t){if(!mt(t))return!0;return t.map.getView().endInteraction(this.duration_),!1}handleDownEvent(t){if(!mt(t))return!1;if(dt(t)&&this.condition_(t)){return t.map.getView().beginInteraction(),this.lastAngle_=void 0,!0}return!1}};var bt=n(206);class wt extends a.A{constructor(t){super(),this.geometry_=null,this.element_=document.createElement("div"),this.element_.style.position="absolute",this.element_.style.pointerEvents="auto",this.element_.className="ol-box "+t,this.map_=null,this.startPixel_=null,this.endPixel_=null}disposeInternal(){this.setMap(null)}render_(){const t=this.startPixel_,e=this.endPixel_,n="px",i=this.element_.style;i.left=Math.min(t[0],e[0])+n,i.top=Math.min(t[1],e[1])+n,i.width=Math.abs(e[0]-t[0])+n,i.height=Math.abs(e[1]-t[1])+n}setMap(t){if(this.map_){this.map_.getOverlayContainer().removeChild(this.element_);const t=this.element_.style;t.left="inherit",t.top="inherit",t.width="inherit",t.height="inherit"}this.map_=t,this.map_&&this.map_.getOverlayContainer().appendChild(this.element_)}setPixels(t,e){this.startPixel_=t,this.endPixel_=e,this.createOrUpdateGeometry(),this.render_()}createOrUpdateGeometry(){const t=this.startPixel_,e=this.endPixel_,n=[t,[t[0],e[1]],e,[e[0],t[1]]].map(this.map_.getCoordinateFromPixelInternal,this.map_);n[4]=n[0].slice(),this.geometry_?this.geometry_.setCoordinates([n]):this.geometry_=new bt.Ay([n])}getGeometry(){return this.geometry_}}const St=wt,Tt="boxstart",Mt="boxdrag",At="boxend",Ct="boxcancel";class It extends C.Ay{constructor(t,e,n){super(t),this.coordinate=e,this.mapBrowserEvent=n}}const Et=class extends st{constructor(t){super(),this.on,this.once,this.un,t=t||{},this.box_=new St(t.className||"ol-dragbox"),this.minArea_=void 0!==t.minArea?t.minArea:64,t.onBoxEnd&&(this.onBoxEnd=t.onBoxEnd),this.startPixel_=null,this.condition_=t.condition?t.condition:dt,this.boxEndCondition_=t.boxEndCondition?t.boxEndCondition:this.defaultBoxEndCondition}defaultBoxEndCondition(t,e,n){const i=n[0]-e[0],r=n[1]-e[1];return i*i+r*r>=this.minArea_}getGeometry(){return this.box_.getGeometry()}handleDragEvent(t){this.box_.setPixels(this.startPixel_,t.pixel),this.dispatchEvent(new It(Mt,t.coordinate,t))}handleUpEvent(t){this.box_.setMap(null);const e=this.boxEndCondition_(t,this.startPixel_,t.pixel);return e&&this.onBoxEnd(t),this.dispatchEvent(new It(e?At:Ct,t.coordinate,t)),!1}handleDownEvent(t){return!!this.condition_(t)&&(this.startPixel_=t.pixel,this.box_.setMap(t.map),this.box_.setPixels(this.startPixel_,this.startPixel_),this.dispatchEvent(new It(Tt,t.coordinate,t)),!0)}onBoxEnd(t){}};const kt=class extends Et{constructor(t){super({condition:(t=t||{}).condition?t.condition:ft,className:t.className||"ol-dragzoom",minArea:t.minArea}),this.duration_=void 0!==t.duration?t.duration:200,this.out_=void 0!==t.out&&t.out}onBoxEnd(t){const e=this.getMap().getView();let n=this.getGeometry();if(this.out_){const t=e.rotatedExtentForGeometry(n),i=e.getResolutionForExtentInternal(t),r=e.getResolution()/i;n=n.clone(),n.scale(r*r)}e.fitInternal(n,{duration:this.duration_,easing:J.vT})}},Lt="ArrowLeft",Dt="ArrowUp",Pt="ArrowRight",Rt="ArrowDown";const Ot=class extends rt{constructor(t){super(),t=t||{},this.defaultCondition_=function(t){return pt(t)&>(t)},this.condition_=void 0!==t.condition?t.condition:this.defaultCondition_,this.duration_=void 0!==t.duration?t.duration:100,this.pixelDelta_=void 0!==t.pixelDelta?t.pixelDelta:128}handleEvent(t){let e=!1;if(t.type==M.A.KEYDOWN){const n=t.originalEvent,i=n.key;if(this.condition_(t)&&(i==Rt||i==Lt||i==Pt||i==Dt)){const r=t.map.getView(),o=r.getResolution()*this.pixelDelta_;let a=0,s=0;i==Rt?s=-o:i==Lt?a=-o:i==Pt?a=o:s=o;const l=[a,s];(0,p.e$)(l,r.getRotation()),function(t,e,n){const i=t.getCenterInternal();if(i){const r=[i[0]+e[0],i[1]+e[1]];t.animateInternal({duration:void 0!==n?n:250,easing:J.sn,center:t.getConstrainedCenter(r)})}}(r,l,this.duration_),n.preventDefault(),e=!0}}return!e}};const Nt=class extends rt{constructor(t){super(),t=t||{},this.condition_=t.condition?t.condition:function(t){return!function(t){const e=t.originalEvent;return X.ew?e.metaKey:e.ctrlKey}(t)&>(t)},this.delta_=t.delta?t.delta:1,this.duration_=void 0!==t.duration?t.duration:100}handleEvent(t){let e=!1;if(t.type==M.A.KEYDOWN||t.type==M.A.KEYPRESS){const n=t.originalEvent,i=n.key;if(this.condition_(t)&&("+"===i||"-"===i)){const r=t.map,o="+"===i?this.delta_:-this.delta_;it(r.getView(),o,void 0,this.duration_),n.preventDefault(),e=!0}}return!e}};var Ft=n(6021),Bt=n(2878);const zt=class extends rt{constructor(t){super(t=t||{}),this.totalDelta_=0,this.lastDelta_=0,this.maxDelta_=void 0!==t.maxDelta?t.maxDelta:1,this.duration_=void 0!==t.duration?t.duration:250,this.timeout_=void 0!==t.timeout?t.timeout:80,this.useAnchor_=void 0===t.useAnchor||t.useAnchor,this.constrainResolution_=void 0!==t.constrainResolution&&t.constrainResolution;const e=t.condition?t.condition:ut;this.condition_=t.onFocusOnly?lt(ct,e):e,this.lastAnchor_=null,this.startTime_=void 0,this.timeoutId_,this.mode_=void 0,this.trackpadEventGap_=400,this.trackpadTimeoutId_,this.deltaPerZoom_=300}endInteraction_(){this.trackpadTimeoutId_=void 0;const t=this.getMap();if(!t)return;t.getView().endInteraction(void 0,this.lastDelta_?this.lastDelta_>0?1:-1:0,this.lastAnchor_)}handleEvent(t){if(!this.condition_(t))return!0;if(t.type!==M.A.WHEEL)return!0;const e=t.map,n=t.originalEvent;let i;if(n.preventDefault(),this.useAnchor_&&(this.lastAnchor_=t.coordinate),t.type==M.A.WHEEL&&(i=n.deltaY,X._p&&n.deltaMode===WheelEvent.DOM_DELTA_PIXEL&&(i/=X.cr),n.deltaMode===WheelEvent.DOM_DELTA_LINE&&(i*=40)),0===i)return!1;this.lastDelta_=i;const r=Date.now();void 0===this.startTime_&&(this.startTime_=r),(!this.mode_||r-this.startTime_>this.trackpadEventGap_)&&(this.mode_=Math.abs(i)<4?"trackpad":"wheel");const o=e.getView();if("trackpad"===this.mode_&&!o.getConstrainResolution()&&!this.constrainResolution_)return this.trackpadTimeoutId_?clearTimeout(this.trackpadTimeoutId_):(o.getAnimating()&&o.cancelAnimations(),o.beginInteraction()),this.trackpadTimeoutId_=setTimeout(this.endInteraction_.bind(this),this.timeout_),o.adjustZoom(-i/this.deltaPerZoom_,this.lastAnchor_),this.startTime_=r,!1;this.totalDelta_+=i;const a=Math.max(this.timeout_-(r-this.startTime_),0);return clearTimeout(this.timeoutId_),this.timeoutId_=setTimeout(this.handleWheelZoom_.bind(this,e),a),!1}handleWheelZoom_(t){const e=t.getView();e.getAnimating()&&e.cancelAnimations();let n=-(0,Bt.qE)(this.totalDelta_,-this.maxDelta_*this.deltaPerZoom_,this.maxDelta_*this.deltaPerZoom_)/this.deltaPerZoom_;(e.getConstrainResolution()||this.constrainResolution_)&&(n=n?n>0?1:-1:0),it(e,n,this.lastAnchor_,this.duration_),this.mode_=void 0,this.totalDelta_=0,this.lastAnchor_=null,this.startTime_=void 0,this.timeoutId_=void 0}setMouseAnchor(t){this.useAnchor_=t,t||(this.lastAnchor_=null)}};const Gt=class extends st{constructor(t){const e=t=t||{};e.stopDown||(e.stopDown=s.W8),super(e),this.anchor_=null,this.lastAngle_=void 0,this.rotating_=!1,this.rotationDelta_=0,this.threshold_=void 0!==t.threshold?t.threshold:.3,this.duration_=void 0!==t.duration?t.duration:250}handleDragEvent(t){let e=0;const n=this.targetPointers[0],i=this.targetPointers[1],r=Math.atan2(i.clientY-n.clientY,i.clientX-n.clientX);if(void 0!==this.lastAngle_){const t=r-this.lastAngle_;this.rotationDelta_+=t,!this.rotating_&&Math.abs(this.rotationDelta_)>this.threshold_&&(this.rotating_=!0),e=t}this.lastAngle_=r;const o=t.map,a=o.getView();a.getConstraints().rotation!==_t.b8&&(this.anchor_=o.getCoordinateFromPixelInternal(o.getEventPixel(at(this.targetPointers))),this.rotating_&&(o.render(),a.adjustRotationInternal(e,this.anchor_)))}handleUpEvent(t){if(this.targetPointers.length<2){return t.map.getView().endInteraction(this.duration_),!1}return!0}handleDownEvent(t){if(this.targetPointers.length>=2){const e=t.map;return this.anchor_=null,this.lastAngle_=void 0,this.rotating_=!1,this.rotationDelta_=0,this.handlingDownUpSequence||e.getView().beginInteraction(),!0}return!1}};const Vt=class extends st{constructor(t){const e=t=t||{};e.stopDown||(e.stopDown=s.W8),super(e),this.anchor_=null,this.duration_=void 0!==t.duration?t.duration:400,this.lastDistance_=void 0,this.lastScaleDelta_=1}handleDragEvent(t){let e=1;const n=this.targetPointers[0],i=this.targetPointers[1],r=n.clientX-i.clientX,o=n.clientY-i.clientY,a=Math.sqrt(r*r+o*o);void 0!==this.lastDistance_&&(e=this.lastDistance_/a),this.lastDistance_=a;const s=t.map,l=s.getView();1!=e&&(this.lastScaleDelta_=e),this.anchor_=s.getCoordinateFromPixelInternal(s.getEventPixel(at(this.targetPointers))),s.render(),l.adjustResolutionInternal(e,this.anchor_)}handleUpEvent(t){if(this.targetPointers.length<2){const e=t.map.getView(),n=this.lastScaleDelta_>1?1:-1;return e.endInteraction(this.duration_,n),!1}return!0}handleDownEvent(t){if(this.targetPointers.length>=2){const e=t.map;return this.anchor_=null,this.lastDistance_=void 0,this.lastScaleDelta_=1,this.handlingDownUpSequence||e.getView().beginInteraction(),!0}return!1}};var jt=n(6859),Ht=n(277),Wt=n(4095);function Ut(t){t instanceof d.A?t.setMapInternal(null):t instanceof P&&t.getLayers().forEach(Ut)}function qt(t,e){if(t instanceof d.A)t.setMapInternal(e);else if(t instanceof P){const n=t.getLayers().getArray();for(let t=0,i=n.length;t<i;++t)qt(n[t],e)}}class Xt extends i.A{constructor(t){super(),t=t||{},this.on,this.once,this.un;const e=function(t){let e=null;void 0!==t.keyboardEventTarget&&(e="string"==typeof t.keyboardEventTarget?document.getElementById(t.keyboardEventTarget):t.keyboardEventTarget);const n={},i=t.layers&&"function"==typeof t.layers.getLayers?t.layers:new P({layers:t.layers});let o,a,s;n[z]=i,n[V]=t.target,n[j]=t.view instanceof U.Ay?t.view:new U.Ay,void 0!==t.controls&&(Array.isArray(t.controls)?o=new r.A(t.controls.slice()):((0,I.v)("function"==typeof t.controls.getArray,47),o=t.controls));void 0!==t.interactions&&(Array.isArray(t.interactions)?a=new r.A(t.interactions.slice()):((0,I.v)("function"==typeof t.interactions.getArray,48),a=t.interactions));void 0!==t.overlays?Array.isArray(t.overlays)?s=new r.A(t.overlays.slice()):((0,I.v)("function"==typeof t.overlays.getArray,49),s=t.overlays):s=new r.A;return{controls:o,interactions:a,keyboardEventTarget:e,overlays:s,values:n}}(t);this.renderComplete_,this.loaded_=!0,this.boundHandleBrowserEvent_=this.handleBrowserEvent.bind(this),this.maxTilesLoading_=void 0!==t.maxTilesLoading?t.maxTilesLoading:16,this.pixelRatio_=void 0!==t.pixelRatio?t.pixelRatio:X.cr,this.postRenderTimeoutHandle_,this.animationDelayKey_,this.animationDelay_=this.animationDelay_.bind(this),this.coordinateToPixelTransform_=(0,h.vt)(),this.pixelToCoordinateTransform_=(0,h.vt)(),this.frameIndex_=0,this.frameState_=null,this.previousExtent_=null,this.viewPropertyListenerKey_=null,this.viewChangeListenerKey_=null,this.layerGroupPropertyListenerKeys_=null,this.viewport_=document.createElement("div"),this.viewport_.className="ol-viewport"+("ontouchstart"in window?" ol-touch":""),this.viewport_.style.position="relative",this.viewport_.style.overflow="hidden",this.viewport_.style.width="100%",this.viewport_.style.height="100%",this.overlayContainer_=document.createElement("div"),this.overlayContainer_.style.position="absolute",this.overlayContainer_.style.zIndex="0",this.overlayContainer_.style.width="100%",this.overlayContainer_.style.height="100%",this.overlayContainer_.style.pointerEvents="none",this.overlayContainer_.className="ol-overlaycontainer",this.viewport_.appendChild(this.overlayContainer_),this.overlayContainerStopEvent_=document.createElement("div"),this.overlayContainerStopEvent_.style.position="absolute",this.overlayContainerStopEvent_.style.zIndex="0",this.overlayContainerStopEvent_.style.width="100%",this.overlayContainerStopEvent_.style.height="100%",this.overlayContainerStopEvent_.style.pointerEvents="none",this.overlayContainerStopEvent_.className="ol-overlaycontainer-stopevent",this.viewport_.appendChild(this.overlayContainerStopEvent_),this.mapBrowserEventHandler_=null,this.moveTolerance_=t.moveTolerance,this.keyboardEventTarget_=e.keyboardEventTarget,this.targetChangeHandlerKeys_=null,this.targetElement_=null,this.resizeObserver_=new ResizeObserver((()=>this.updateSize())),this.controls=e.controls||function(t){t=t||{};const e=new r.A;return(void 0===t.zoom||t.zoom)&&e.push(new tt(t.zoomOptions)),(void 0===t.rotate||t.rotate)&&e.push(new Q(t.rotateOptions)),(void 0===t.attribution||t.attribution)&&e.push(new K(t.attributionOptions)),e}(),this.interactions=e.interactions||function(t){t=t||{};const e=new r.A,n=new Ft.A(-.005,.05,100);return(void 0===t.altShiftDragRotate||t.altShiftDragRotate)&&e.push(new xt),(void 0===t.doubleClickZoom||t.doubleClickZoom)&&e.push(new ot({delta:t.zoomDelta,duration:t.zoomDuration})),(void 0===t.dragPan||t.dragPan)&&e.push(new yt({onFocusOnly:t.onFocusOnly,kinetic:n})),(void 0===t.pinchRotate||t.pinchRotate)&&e.push(new Gt),(void 0===t.pinchZoom||t.pinchZoom)&&e.push(new Vt({duration:t.zoomDuration})),(void 0===t.keyboard||t.keyboard)&&(e.push(new Ot),e.push(new Nt({delta:t.zoomDelta,duration:t.zoomDuration}))),(void 0===t.mouseWheelZoom||t.mouseWheelZoom)&&e.push(new zt({onFocusOnly:t.onFocusOnly,duration:t.zoomDuration})),(void 0===t.shiftDragZoom||t.shiftDragZoom)&&e.push(new kt({duration:t.zoomDuration})),e}({onFocusOnly:!0}),this.overlays_=e.overlays,this.overlayIdIndex_={},this.renderer_=null,this.postRenderFunctions_=[],this.tileQueue_=new W.A(this.getTilePriority.bind(this),this.handleTileChange_.bind(this)),this.addChangeListener(z,this.handleLayerGroupChanged_),this.addChangeListener(j,this.handleViewChanged_),this.addChangeListener(G,this.handleSizeChanged_),this.addChangeListener(V,this.handleTargetChanged_),this.setProperties(e.values);const n=this;!t.view||t.view instanceof U.Ay||t.view.then((function(t){n.setView(new U.Ay(t))})),this.controls.addEventListener(o.A.ADD,(t=>{t.element.setMap(this)})),this.controls.addEventListener(o.A.REMOVE,(t=>{t.element.setMap(null)})),this.interactions.addEventListener(o.A.ADD,(t=>{t.element.setMap(this)})),this.interactions.addEventListener(o.A.REMOVE,(t=>{t.element.setMap(null)})),this.overlays_.addEventListener(o.A.ADD,(t=>{this.addOverlayInternal_(t.element)})),this.overlays_.addEventListener(o.A.REMOVE,(t=>{const e=t.element.getId();void 0!==e&&delete this.overlayIdIndex_[e.toString()],t.element.setMap(null)})),this.controls.forEach((t=>{t.setMap(this)})),this.interactions.forEach((t=>{t.setMap(this)})),this.overlays_.forEach(this.addOverlayInternal_.bind(this))}addControl(t){this.getControls().push(t)}addInteraction(t){this.getInteractions().push(t)}addLayer(t){this.getLayerGroup().getLayers().push(t)}handleLayerAdd_(t){qt(t.layer,this)}addOverlay(t){this.getOverlays().push(t)}addOverlayInternal_(t){const e=t.getId();void 0!==e&&(this.overlayIdIndex_[e.toString()]=t),t.setMap(this)}disposeInternal(){this.controls.clear(),this.interactions.clear(),this.overlays_.clear(),this.resizeObserver_.disconnect(),this.setTarget(null),super.disposeInternal()}forEachFeatureAtPixel(t,e,n){if(!this.frameState_||!this.renderer_)return;const i=this.getCoordinateFromPixelInternal(t),r=void 0!==(n=void 0!==n?n:{}).hitTolerance?n.hitTolerance:0,o=void 0!==n.layerFilter?n.layerFilter:s.rT,a=!1!==n.checkWrapped;return this.renderer_.forEachFeatureAtCoordinate(i,this.frameState_,r,a,e,null,o,null)}getFeaturesAtPixel(t,e){const n=[];return this.forEachFeatureAtPixel(t,(function(t){n.push(t)}),e),n}getAllLayers(){const t=[];return function e(n){n.forEach((function(n){n instanceof P?e(n.getLayers()):t.push(n)}))}(this.getLayers()),t}hasFeatureAtPixel(t,e){if(!this.frameState_||!this.renderer_)return!1;const n=this.getCoordinateFromPixelInternal(t),i=void 0!==(e=void 0!==e?e:{}).layerFilter?e.layerFilter:s.rT,r=void 0!==e.hitTolerance?e.hitTolerance:0,o=!1!==e.checkWrapped;return this.renderer_.hasFeatureAtCoordinate(n,this.frameState_,r,o,i,null)}getEventCoordinate(t){return this.getCoordinateFromPixel(this.getEventPixel(t))}getEventCoordinateInternal(t){return this.getCoordinateFromPixelInternal(this.getEventPixel(t))}getEventPixel(t){const e=this.viewport_.getBoundingClientRect(),n=this.getSize(),i=e.width/n[0],r=e.height/n[1],o="changedTouches"in t?t.changedTouches[0]:t;return[(o.clientX-e.left)/i,(o.clientY-e.top)/r]}getTarget(){return this.get(V)}getTargetElement(){return this.targetElement_}getCoordinateFromPixel(t){return(0,jt.te)(this.getCoordinateFromPixelInternal(t),this.getView().getProjection())}getCoordinateFromPixelInternal(t){const e=this.frameState_;return e?(0,h.Bb)(e.pixelToCoordinateTransform,t.slice()):null}getControls(){return this.controls}getOverlays(){return this.overlays_}getOverlayById(t){const e=this.overlayIdIndex_[t.toString()];return void 0!==e?e:null}getInteractions(){return this.interactions}getLayerGroup(){return this.get(z)}setLayers(t){const e=this.getLayerGroup();if(t instanceof r.A)return void e.setLayers(t);const n=e.getLayers();n.clear(),n.extend(t)}getLayers(){return this.getLayerGroup().getLayers()}getLoadingOrNotReady(){const t=this.getLayerGroup().getLayerStatesArray();for(let e=0,n=t.length;e<n;++e){const n=t[e];if(!n.visible)continue;const i=n.layer.getRenderer();if(i&&!i.ready)return!0;const r=n.layer.getSource();if(r&&r.loading)return!0}return!1}getPixelFromCoordinate(t){const e=(0,jt.Ad)(t,this.getView().getProjection());return this.getPixelFromCoordinateInternal(e)}getPixelFromCoordinateInternal(t){const e=this.frameState_;return e?(0,h.Bb)(e.coordinateToPixelTransform,t.slice(0,2)):null}getRenderer(){return this.renderer_}getSize(){return this.get(G)}getView(){return this.get(j)}getViewport(){return this.viewport_}getOverlayContainer(){return this.overlayContainer_}getOverlayContainerStopEvent(){return this.overlayContainerStopEvent_}getOwnerDocument(){const t=this.getTargetElement();return t?t.ownerDocument:document}getTilePriority(t,e,n,i){return(0,W.z)(this.frameState_,t,e,n,i)}handleBrowserEvent(t,e){e=e||t.type;const n=new R.A(e,this,t);this.handleMapBrowserEvent(n)}handleMapBrowserEvent(t){if(!this.frameState_)return;const e=t.originalEvent,n=e.type;if(n===H.A.POINTERDOWN||n===M.A.WHEEL||n===M.A.KEYDOWN){const t=this.getOwnerDocument(),n=this.viewport_.getRootNode?this.viewport_.getRootNode():t,i=e.target;if(this.overlayContainerStopEvent_.contains(i)||!(n===t?t.documentElement:n).contains(i))return}if(t.frameState=this.frameState_,!1!==this.dispatchEvent(t)){const e=this.getInteractions().getArray().slice();for(let n=e.length-1;n>=0;n--){const i=e[n];if(i.getMap()!==this||!i.getActive()||!this.getTargetElement())continue;if(!i.handleEvent(t)||t.propagationStopped)break}}}handlePostRender(){const t=this.frameState_,e=this.tileQueue_;if(!e.isEmpty()){let n=this.maxTilesLoading_,i=n;if(t){const e=t.viewHints;if(e[q.A.ANIMATING]||e[q.A.INTERACTING]){const e=Date.now()-t.time>8;n=e?0:8,i=e?0:2}}e.getTilesLoading()<n&&(e.reprioritize(),e.loadMoreTiles(n,i))}t&&this.renderer_&&!t.animate&&(!0===this.renderComplete_?(this.hasListener(_.A.RENDERCOMPLETE)&&this.renderer_.dispatchRenderEvent(_.A.RENDERCOMPLETE,t),!1===this.loaded_&&(this.loaded_=!0,this.dispatchEvent(new F.A(B.A.LOADEND,this,t)))):!0===this.loaded_&&(this.loaded_=!1,this.dispatchEvent(new F.A(B.A.LOADSTART,this,t))));const n=this.postRenderFunctions_;for(let i=0,r=n.length;i<r;++i)n[i](this,t);n.length=0}handleSizeChanged_(){this.getView()&&!this.getView().getAnimating()&&this.getView().resolveConstraints(0),this.render()}handleTargetChanged_(){if(this.mapBrowserEventHandler_){for(let t=0,e=this.targetChangeHandlerKeys_.length;t<e;++t)(0,w.JH)(this.targetChangeHandlerKeys_[t]);this.targetChangeHandlerKeys_=null,this.viewport_.removeEventListener(M.A.CONTEXTMENU,this.boundHandleBrowserEvent_),this.viewport_.removeEventListener(M.A.WHEEL,this.boundHandleBrowserEvent_),this.mapBrowserEventHandler_.dispose(),this.mapBrowserEventHandler_=null,(0,S.bf)(this.viewport_)}if(this.targetElement_){this.resizeObserver_.unobserve(this.targetElement_);const t=this.targetElement_.getRootNode();t instanceof ShadowRoot&&this.resizeObserver_.unobserve(t.host),this.setSize(void 0)}const t=this.getTarget(),e="string"==typeof t?document.getElementById(t):t;if(this.targetElement_=e,e){e.appendChild(this.viewport_),this.renderer_||(this.renderer_=new T(this)),this.mapBrowserEventHandler_=new O.A(this,this.moveTolerance_);for(const e in N.A)this.mapBrowserEventHandler_.addEventListener(N.A[e],this.handleMapBrowserEvent.bind(this));this.viewport_.addEventListener(M.A.CONTEXTMENU,this.boundHandleBrowserEvent_,!1),this.viewport_.addEventListener(M.A.WHEEL,this.boundHandleBrowserEvent_,!!X.FT&&{passive:!1});const t=this.keyboardEventTarget_?this.keyboardEventTarget_:e;this.targetChangeHandlerKeys_=[(0,w.KT)(t,M.A.KEYDOWN,this.handleBrowserEvent,this),(0,w.KT)(t,M.A.KEYPRESS,this.handleBrowserEvent,this)];const n=e.getRootNode();n instanceof ShadowRoot&&this.resizeObserver_.observe(n.host),this.resizeObserver_.observe(e)}else this.renderer_&&(clearTimeout(this.postRenderTimeoutHandle_),this.postRenderTimeoutHandle_=void 0,this.postRenderFunctions_.length=0,this.renderer_.dispose(),this.renderer_=null),this.animationDelayKey_&&(cancelAnimationFrame(this.animationDelayKey_),this.animationDelayKey_=void 0);this.updateSize()}handleTileChange_(){this.render()}handleViewPropertyChanged_(){this.render()}handleViewChanged_(){this.viewPropertyListenerKey_&&((0,w.JH)(this.viewPropertyListenerKey_),this.viewPropertyListenerKey_=null),this.viewChangeListenerKey_&&((0,w.JH)(this.viewChangeListenerKey_),this.viewChangeListenerKey_=null);const t=this.getView();t&&(this.updateViewportSize_(),this.viewPropertyListenerKey_=(0,w.KT)(t,v.A.PROPERTYCHANGE,this.handleViewPropertyChanged_,this),this.viewChangeListenerKey_=(0,w.KT)(t,M.A.CHANGE,this.handleViewPropertyChanged_,this),t.resolveConstraints(0)),this.render()}handleLayerGroupChanged_(){this.layerGroupPropertyListenerKeys_&&(this.layerGroupPropertyListenerKeys_.forEach(w.JH),this.layerGroupPropertyListenerKeys_=null);const t=this.getLayerGroup();t&&(this.handleLayerAdd_(new k("addlayer",t)),this.layerGroupPropertyListenerKeys_=[(0,w.KT)(t,v.A.PROPERTYCHANGE,this.render,this),(0,w.KT)(t,M.A.CHANGE,this.render,this),(0,w.KT)(t,"addlayer",this.handleLayerAdd_,this),(0,w.KT)(t,"removelayer",this.handleLayerRemove_,this)]),this.render()}isRendered(){return!!this.frameState_}animationDelay_(){this.animationDelayKey_=void 0,this.renderFrame_(Date.now())}renderSync(){this.animationDelayKey_&&cancelAnimationFrame(this.animationDelayKey_),this.animationDelay_()}redrawText(){const t=this.getLayerGroup().getLayerStatesArray();for(let e=0,n=t.length;e<n;++e){const n=t[e].layer;n.hasRenderer()&&n.getRenderer().handleFontsChanged()}}render(){this.renderer_&&void 0===this.animationDelayKey_&&(this.animationDelayKey_=requestAnimationFrame(this.animationDelay_))}flushDeclutterItems(){const t=this.frameState_;t&&this.renderer_.flushDeclutterItems(t)}removeControl(t){return this.getControls().remove(t)}removeInteraction(t){return this.getInteractions().remove(t)}removeLayer(t){return this.getLayerGroup().getLayers().remove(t)}handleLayerRemove_(t){Ut(t.layer)}removeOverlay(t){return this.getOverlays().remove(t)}renderFrame_(t){const e=this.getSize(),n=this.getView(),i=this.frameState_;let r=null;if(void 0!==e&&(0,Ht.Ie)(e)&&n&&n.isDef()){const i=n.getHints(this.frameState_?this.frameState_.viewHints:void 0),o=n.getState();if(r={animate:!1,coordinateToPixelTransform:this.coordinateToPixelTransform_,declutterTree:null,extent:(0,c.Bg)(o.center,o.resolution,o.rotation,e),index:this.frameIndex_++,layerIndex:0,layerStatesArray:this.getLayerGroup().getLayerStatesArray(),pixelRatio:this.pixelRatio_,pixelToCoordinateTransform:this.pixelToCoordinateTransform_,postRenderFunctions:[],size:e,tileQueue:this.tileQueue_,time:t,usedTiles:{},viewState:o,viewHints:i,wantedTiles:{},mapId:(0,l.v6)(this),renderTargets:{}},o.nextCenter&&o.nextResolution){const t=isNaN(o.nextRotation)?o.rotation:o.nextRotation;r.nextExtent=(0,c.Bg)(o.nextCenter,o.nextResolution,t,e)}}if(this.frameState_=r,this.renderer_.renderFrame(r),r){if(r.animate&&this.render(),Array.prototype.push.apply(this.postRenderFunctions_,r.postRenderFunctions),i){(!this.previousExtent_||!(0,c.Im)(this.previousExtent_)&&!(0,c.aI)(r.extent,this.previousExtent_))&&(this.dispatchEvent(new F.A(B.A.MOVESTART,this,i)),this.previousExtent_=(0,c.aZ)(this.previousExtent_))}this.previousExtent_&&!r.viewHints[q.A.ANIMATING]&&!r.viewHints[q.A.INTERACTING]&&!(0,c.aI)(r.extent,this.previousExtent_)&&(this.dispatchEvent(new F.A(B.A.MOVEEND,this,r)),(0,c.o8)(r.extent,this.previousExtent_))}this.dispatchEvent(new F.A(B.A.POSTRENDER,this,r)),this.renderComplete_=this.hasListener(B.A.LOADSTART)||this.hasListener(B.A.LOADEND)||this.hasListener(_.A.RENDERCOMPLETE)?!this.tileQueue_.getTilesLoading()&&!this.tileQueue_.getCount()&&!this.getLoadingOrNotReady():void 0,this.postRenderTimeoutHandle_||(this.postRenderTimeoutHandle_=setTimeout((()=>{this.postRenderTimeoutHandle_=void 0,this.handlePostRender()}),0))}setLayerGroup(t){const e=this.getLayerGroup();e&&this.handleLayerRemove_(new k("removelayer",e)),this.set(z,t)}setSize(t){this.set(G,t)}setTarget(t){this.set(V,t)}setView(t){if(!t||t instanceof U.Ay)return void this.set(j,t);this.set(j,new U.Ay);const e=this;t.then((function(t){e.setView(new U.Ay(t))}))}updateSize(){const t=this.getTargetElement();let e;if(t){const n=getComputedStyle(t),i=t.offsetWidth-parseFloat(n.borderLeftWidth)-parseFloat(n.paddingLeft)-parseFloat(n.paddingRight)-parseFloat(n.borderRightWidth),r=t.offsetHeight-parseFloat(n.borderTopWidth)-parseFloat(n.paddingTop)-parseFloat(n.paddingBottom)-parseFloat(n.borderBottomWidth);isNaN(i)||isNaN(r)||(e=[i,r],!(0,Ht.Ie)(e)&&(t.offsetWidth||t.offsetHeight||t.getClientRects().length)&&(0,Wt.R8)("No map visible because the map container's width or height are 0."))}const n=this.getSize();!e||n&&(0,$.aI)(e,n)||(this.setSize(e),this.updateViewportSize_())}updateViewportSize_(){const t=this.getView();if(t){let e;const n=getComputedStyle(this.viewport_);n.width&&n.height&&(e=[parseInt(n.width,10),parseInt(n.height,10)]),t.setViewportSize(e)}}}const Yt=Xt},7264:(t,e,n)=>{"use strict";n.d(e,{A:()=>o});var i=n(7762);class r extends i.A{constructor(t,e,n,i,r,o){super(t,e,r),this.originalEvent=n,this.pixel_=null,this.coordinate_=null,this.dragging=void 0!==i&&i,this.activePointers=o}get pixel(){return this.pixel_||(this.pixel_=this.map.getEventPixel(this.originalEvent)),this.pixel_}set pixel(t){this.pixel_=t}get coordinate(){return this.coordinate_||(this.coordinate_=this.map.getCoordinateFromPixel(this.pixel)),this.coordinate_}set coordinate(t){this.coordinate_=t}preventDefault(){super.preventDefault(),"preventDefault"in this.originalEvent&&this.originalEvent.preventDefault()}stopPropagation(){super.stopPropagation(),"stopPropagation"in this.originalEvent&&this.originalEvent.stopPropagation()}}const o=r},5462:(t,e,n)=>{"use strict";n.d(e,{A:()=>u});var i=n(874),r=n(7264),o=n(3640),a=n(228),s=n(1385),l=n(6306),h=n(2657);class c extends s.A{constructor(t,e){super(t),this.map_=t,this.clickTimeoutId_,this.emulateClicks_=!1,this.dragging_=!1,this.dragListenerKeys_=[],this.moveTolerance_=void 0===e?1:e,this.down_=null;const n=this.map_.getViewport();this.activePointers_=[],this.trackedTouches_={},this.element_=n,this.pointerdownListenerKey_=(0,h.KT)(n,a.A.POINTERDOWN,this.handlePointerDown_,this),this.originalPointerMoveEvent_,this.relayedListenerKey_=(0,h.KT)(n,a.A.POINTERMOVE,this.relayMoveEvent_,this),this.boundHandleTouchMove_=this.handleTouchMove_.bind(this),this.element_.addEventListener(i.A.TOUCHMOVE,this.boundHandleTouchMove_,!!l.FT&&{passive:!1})}emulateClick_(t){let e=new r.A(o.A.CLICK,this.map_,t);this.dispatchEvent(e),void 0!==this.clickTimeoutId_?(clearTimeout(this.clickTimeoutId_),this.clickTimeoutId_=void 0,e=new r.A(o.A.DBLCLICK,this.map_,t),this.dispatchEvent(e)):this.clickTimeoutId_=setTimeout((()=>{this.clickTimeoutId_=void 0;const e=new r.A(o.A.SINGLECLICK,this.map_,t);this.dispatchEvent(e)}),250)}updateActivePointers_(t){const e=t,n=e.pointerId;if(e.type==o.A.POINTERUP||e.type==o.A.POINTERCANCEL){delete this.trackedTouches_[n];for(const t in this.trackedTouches_)if(this.trackedTouches_[t].target!==e.target){delete this.trackedTouches_[t];break}}else e.type!=o.A.POINTERDOWN&&e.type!=o.A.POINTERMOVE||(this.trackedTouches_[n]=e);this.activePointers_=Object.values(this.trackedTouches_)}handlePointerUp_(t){this.updateActivePointers_(t);const e=new r.A(o.A.POINTERUP,this.map_,t,void 0,void 0,this.activePointers_);this.dispatchEvent(e),this.emulateClicks_&&!e.defaultPrevented&&!this.dragging_&&this.isMouseActionButton_(t)&&this.emulateClick_(this.down_),0===this.activePointers_.length&&(this.dragListenerKeys_.forEach(h.JH),this.dragListenerKeys_.length=0,this.dragging_=!1,this.down_=null)}isMouseActionButton_(t){return 0===t.button}handlePointerDown_(t){this.emulateClicks_=0===this.activePointers_.length,this.updateActivePointers_(t);const e=new r.A(o.A.POINTERDOWN,this.map_,t,void 0,void 0,this.activePointers_);if(this.dispatchEvent(e),this.down_=new PointerEvent(t.type,t),Object.defineProperty(this.down_,"target",{writable:!1,value:t.target}),0===this.dragListenerKeys_.length){const t=this.map_.getOwnerDocument();this.dragListenerKeys_.push((0,h.KT)(t,o.A.POINTERMOVE,this.handlePointerMove_,this),(0,h.KT)(t,o.A.POINTERUP,this.handlePointerUp_,this),(0,h.KT)(this.element_,o.A.POINTERCANCEL,this.handlePointerUp_,this)),this.element_.getRootNode&&this.element_.getRootNode()!==t&&this.dragListenerKeys_.push((0,h.KT)(this.element_.getRootNode(),o.A.POINTERUP,this.handlePointerUp_,this))}}handlePointerMove_(t){if(this.isMoving_(t)){this.updateActivePointers_(t),this.dragging_=!0;const e=new r.A(o.A.POINTERDRAG,this.map_,t,this.dragging_,void 0,this.activePointers_);this.dispatchEvent(e)}}relayMoveEvent_(t){this.originalPointerMoveEvent_=t;const e=!(!this.down_||!this.isMoving_(t));this.dispatchEvent(new r.A(o.A.POINTERMOVE,this.map_,t,e))}handleTouchMove_(t){const e=this.originalPointerMoveEvent_;e&&!e.defaultPrevented||"boolean"==typeof t.cancelable&&!0!==t.cancelable||t.preventDefault()}isMoving_(t){return this.dragging_||Math.abs(t.clientX-this.down_.clientX)>this.moveTolerance_||Math.abs(t.clientY-this.down_.clientY)>this.moveTolerance_}disposeInternal(){this.relayedListenerKey_&&((0,h.JH)(this.relayedListenerKey_),this.relayedListenerKey_=null),this.element_.removeEventListener(i.A.TOUCHMOVE,this.boundHandleTouchMove_),this.pointerdownListenerKey_&&((0,h.JH)(this.pointerdownListenerKey_),this.pointerdownListenerKey_=null),this.dragListenerKeys_.forEach(h.JH),this.dragListenerKeys_.length=0,this.element_=null,super.disposeInternal()}}const u=c},3640:(t,e,n)=>{"use strict";n.d(e,{A:()=>r});var i=n(874);const r={SINGLECLICK:"singleclick",CLICK:i.A.CLICK,DBLCLICK:i.A.DBLCLICK,POINTERDRAG:"pointerdrag",POINTERMOVE:"pointermove",POINTERDOWN:"pointerdown",POINTERUP:"pointerup",POINTEROVER:"pointerover",POINTEROUT:"pointerout",POINTERENTER:"pointerenter",POINTERLEAVE:"pointerleave",POINTERCANCEL:"pointercancel"}},7762:(t,e,n)=>{"use strict";n.d(e,{A:()=>o});var i=n(5026);class r extends i.Ay{constructor(t,e,n){super(t),this.map=e,this.frameState=void 0!==n?n:null}}const o=r},7738:(t,e,n)=>{"use strict";n.d(e,{A:()=>i});const i={POSTRENDER:"postrender",MOVESTART:"movestart",MOVEEND:"moveend",LOADSTART:"loadstart",LOADEND:"loadend"}},5191:(t,e,n)=>{"use strict";n.d(e,{A:()=>c});var i=n(5026),r=n(1335),o=n(6529),a=n(6916),s=n(6943);class l extends i.Ay{constructor(t,e,n){super(t),this.key=e,this.oldValue=n}}class h extends o.A{constructor(t){super(),this.on,this.once,this.un,(0,a.v6)(this),this.values_=null,void 0!==t&&this.setProperties(t)}get(t){let e;return this.values_&&this.values_.hasOwnProperty(t)&&(e=this.values_[t]),e}getKeys(){return this.values_&&Object.keys(this.values_)||[]}getProperties(){return this.values_&&Object.assign({},this.values_)||{}}hasProperties(){return!!this.values_}notify(t,e){let n;n=`change:${t}`,this.hasListener(n)&&this.dispatchEvent(new l(n,t,e)),n=r.A.PROPERTYCHANGE,this.hasListener(n)&&this.dispatchEvent(new l(n,t,e))}addChangeListener(t,e){this.addEventListener(`change:${t}`,e)}removeChangeListener(t,e){this.removeEventListener(`change:${t}`,e)}set(t,e,n){const i=this.values_||(this.values_={});if(n)i[t]=e;else{const n=i[t];i[t]=e,n!==e&&this.notify(t,n)}}setProperties(t,e){for(const n in t)this.set(n,t[n],e)}applyProperties(t){t.values_&&Object.assign(this.values_||(this.values_={}),t.values_)}unset(t,e){if(this.values_&&t in this.values_){const n=this.values_[t];delete this.values_[t],(0,s.p)(this.values_)&&(this.values_=null),e||this.notify(t,n)}}}const c=h},1335:(t,e,n)=>{"use strict";n.d(e,{A:()=>i});const i={PROPERTYCHANGE:"propertychange"}},6529:(t,e,n)=>{"use strict";n.d(e,{A:()=>s});var i=n(1385),r=n(874),o=n(2657);class a extends i.A{constructor(){super(),this.on=this.onInternal,this.once=this.onceInternal,this.un=this.unInternal,this.revision_=0}changed(){++this.revision_,this.dispatchEvent(r.A.CHANGE)}getRevision(){return this.revision_}onInternal(t,e){if(Array.isArray(t)){const n=t.length,i=new Array(n);for(let r=0;r<n;++r)i[r]=(0,o.KT)(this,t[r],e);return i}return(0,o.KT)(this,t,e)}onceInternal(t,e){let n;if(Array.isArray(t)){const i=t.length;n=new Array(i);for(let r=0;r<i;++r)n[r]=(0,o.Jz)(this,t[r],e)}else n=(0,o.Jz)(this,t,e);return e.ol_key=n,n}unInternal(t,e){const n=e.ol_key;if(n)!function(t){if(Array.isArray(t))for(let e=0,n=t.length;e<n;++e)(0,o.JH)(t[e]);else(0,o.JH)(t)}(n);else if(Array.isArray(t))for(let i=0,r=t.length;i<r;++i)this.removeEventListener(t[i],e);else this.removeEventListener(t,e)}}a.prototype.on,a.prototype.once,a.prototype.un;const s=a},3588:(t,e,n)=>{"use strict";n.d(e,{A:()=>h});var i=n(1385),r=n(874),o=n(5751),a=n(6916),s=n(3829);class l extends i.A{constructor(t,e,n){super(),n=n||{},this.tileCoord=t,this.state=e,this.interimTile=null,this.key="",this.transition_=void 0===n.transition?250:n.transition,this.transitionStarts_={},this.interpolate=!!n.interpolate}changed(){this.dispatchEvent(r.A.CHANGE)}release(){this.state===o.A.ERROR&&this.setState(o.A.EMPTY)}getKey(){return this.key+"/"+this.tileCoord}getInterimTile(){if(!this.interimTile)return this;let t=this.interimTile;do{if(t.getState()==o.A.LOADED)return this.transition_=0,t;t=t.interimTile}while(t);return this}refreshInterimChain(){if(!this.interimTile)return;let t=this.interimTile,e=this;do{if(t.getState()==o.A.LOADED){t.interimTile=null;break}t.getState()==o.A.LOADING?e=t:t.getState()==o.A.IDLE?e.interimTile=t.interimTile:e=t,t=e.interimTile}while(t)}getTileCoord(){return this.tileCoord}getState(){return this.state}setState(t){if(this.state!==o.A.ERROR&&this.state>t)throw new Error("Tile load sequence violation");this.state=t,this.changed()}load(){(0,a.b0)()}getAlpha(t,e){if(!this.transition_)return 1;let n=this.transitionStarts_[t];if(n){if(-1===n)return 1}else n=e,this.transitionStarts_[t]=n;const i=e-n+1e3/60;return i>=this.transition_?1:(0,s.a6)(i/this.transition_)}inTransition(t){return!!this.transition_&&-1!==this.transitionStarts_[t]}endTransition(t){this.transition_&&(this.transitionStarts_[t]=-1)}}const h=l},8169:(t,e,n)=>{"use strict";n.d(e,{A:()=>a});var i=n(3957);const r=class{constructor(t){this.highWaterMark=void 0!==t?t:2048,this.count_=0,this.entries_={},this.oldest_=null,this.newest_=null}canExpireCache(){return this.highWaterMark>0&&this.getCount()>this.highWaterMark}expireCache(t){for(;this.canExpireCache();)this.pop()}clear(){this.count_=0,this.entries_={},this.oldest_=null,this.newest_=null}containsKey(t){return this.entries_.hasOwnProperty(t)}forEach(t){let e=this.oldest_;for(;e;)t(e.value_,e.key_,this),e=e.newer}get(t,e){const n=this.entries_[t];return(0,i.v)(void 0!==n,15),n===this.newest_||(n===this.oldest_?(this.oldest_=this.oldest_.newer,this.oldest_.older=null):(n.newer.older=n.older,n.older.newer=n.newer),n.newer=null,n.older=this.newest_,this.newest_.newer=n,this.newest_=n),n.value_}remove(t){const e=this.entries_[t];return(0,i.v)(void 0!==e,15),e===this.newest_?(this.newest_=e.older,this.newest_&&(this.newest_.newer=null)):e===this.oldest_?(this.oldest_=e.newer,this.oldest_&&(this.oldest_.older=null)):(e.newer.older=e.older,e.older.newer=e.newer),delete this.entries_[t],--this.count_,e.value_}getCount(){return this.count_}getKeys(){const t=new Array(this.count_);let e,n=0;for(e=this.newest_;e;e=e.older)t[n++]=e.key_;return t}getValues(){const t=new Array(this.count_);let e,n=0;for(e=this.newest_;e;e=e.older)t[n++]=e.value_;return t}peekLast(){return this.oldest_.value_}peekLastKey(){return this.oldest_.key_}peekFirstKey(){return this.newest_.key_}peek(t){if(this.containsKey(t))return this.entries_[t].value_}pop(){const t=this.oldest_;return delete this.entries_[t.key_],t.newer&&(t.newer.older=null),this.oldest_=t.newer,this.oldest_||(this.newest_=null),--this.count_,t.value_}replace(t,e){this.get(t),this.entries_[t].value_=e}set(t,e){(0,i.v)(!(t in this.entries_),16);const n={key_:t,newer:null,older:this.newest_,value_:e};this.newest_?this.newest_.newer=n:this.oldest_=n,this.newest_=n,this.entries_[t]=n,++this.count_}setSize(t){this.highWaterMark=t}};var o=n(1747);const a=class extends r{clear(){for(;this.getCount()>0;)this.pop().release();super.clear()}expireCache(t){for(;this.canExpireCache();){if(this.peekLast().getKey()in t)break;this.pop().release()}}pruneExceptNewestZ(){if(0===this.getCount())return;const t=this.peekFirstKey(),e=(0,o.K)(t)[0];this.forEach((t=>{t.tileCoord[0]!==e&&(this.remove((0,o.i7)(t.tileCoord)),t.release())}))}}},2384:(t,e,n)=>{"use strict";n.d(e,{A:()=>h,z:()=>c});var i=n(874),r=n(3957),o=n(6943);const a=1/0;const s=class{constructor(t,e){this.priorityFunction_=t,this.keyFunction_=e,this.elements_=[],this.priorities_=[],this.queuedElements_={}}clear(){this.elements_.length=0,this.priorities_.length=0,(0,o.I)(this.queuedElements_)}dequeue(){const t=this.elements_,e=this.priorities_,n=t[0];1==t.length?(t.length=0,e.length=0):(t[0]=t.pop(),e[0]=e.pop(),this.siftUp_(0));const i=this.keyFunction_(n);return delete this.queuedElements_[i],n}enqueue(t){(0,r.v)(!(this.keyFunction_(t)in this.queuedElements_),31);const e=this.priorityFunction_(t);return e!=a&&(this.elements_.push(t),this.priorities_.push(e),this.queuedElements_[this.keyFunction_(t)]=!0,this.siftDown_(0,this.elements_.length-1),!0)}getCount(){return this.elements_.length}getLeftChildIndex_(t){return 2*t+1}getRightChildIndex_(t){return 2*t+2}getParentIndex_(t){return t-1>>1}heapify_(){let t;for(t=(this.elements_.length>>1)-1;t>=0;t--)this.siftUp_(t)}isEmpty(){return 0===this.elements_.length}isKeyQueued(t){return t in this.queuedElements_}isQueued(t){return this.isKeyQueued(this.keyFunction_(t))}siftUp_(t){const e=this.elements_,n=this.priorities_,i=e.length,r=e[t],o=n[t],a=t;for(;t<i>>1;){const r=this.getLeftChildIndex_(t),o=this.getRightChildIndex_(t),a=o<i&&n[o]<n[r]?o:r;e[t]=e[a],n[t]=n[a],t=a}e[t]=r,n[t]=o,this.siftDown_(a,t)}siftDown_(t,e){const n=this.elements_,i=this.priorities_,r=n[e],o=i[e];for(;e>t;){const t=this.getParentIndex_(e);if(!(i[t]>o))break;n[e]=n[t],i[e]=i[t],e=t}n[e]=r,i[e]=o}reprioritize(){const t=this.priorityFunction_,e=this.elements_,n=this.priorities_;let i=0;const r=e.length;let o,s,l;for(s=0;s<r;++s)o=e[s],l=t(o),l==a?delete this.queuedElements_[this.keyFunction_(o)]:(n[i]=l,e[i++]=o);e.length=i,n.length=i,this.heapify_()}};var l=n(5751);const h=class extends s{constructor(t,e){super((function(e){return t.apply(null,e)}),(function(t){return t[0].getKey()})),this.boundHandleTileChange_=this.handleTileChange.bind(this),this.tileChangeCallback_=e,this.tilesLoading_=0,this.tilesLoadingKeys_={}}enqueue(t){const e=super.enqueue(t);if(e){t[0].addEventListener(i.A.CHANGE,this.boundHandleTileChange_)}return e}getTilesLoading(){return this.tilesLoading_}handleTileChange(t){const e=t.target,n=e.getState();if(n===l.A.LOADED||n===l.A.ERROR||n===l.A.EMPTY){n!==l.A.ERROR&&e.removeEventListener(i.A.CHANGE,this.boundHandleTileChange_);const t=e.getKey();t in this.tilesLoadingKeys_&&(delete this.tilesLoadingKeys_[t],--this.tilesLoading_),this.tileChangeCallback_()}}loadMoreTiles(t,e){let n,i,r,o=0;for(;this.tilesLoading_<t&&o<e&&this.getCount()>0;)i=this.dequeue()[0],r=i.getKey(),n=i.getState(),n!==l.A.IDLE||r in this.tilesLoadingKeys_||(this.tilesLoadingKeys_[r]=!0,++this.tilesLoading_,++o,i.load())}};function c(t,e,n,i,r){if(!t||!(n in t.wantedTiles))return a;if(!t.wantedTiles[n][e.getKey()])return a;const o=t.viewState.center,s=i[0]-o[0],l=i[1]-o[1];return 65536*Math.log(r)+Math.sqrt(s*s+l*l)/r}},3107:(t,e,n)=>{"use strict";n.d(e,{A:()=>o,N:()=>r});class i{constructor(t,e,n,i){this.minX=t,this.maxX=e,this.minY=n,this.maxY=i}contains(t){return this.containsXY(t[1],t[2])}containsTileRange(t){return this.minX<=t.minX&&t.maxX<=this.maxX&&this.minY<=t.minY&&t.maxY<=this.maxY}containsXY(t,e){return this.minX<=t&&t<=this.maxX&&this.minY<=e&&e<=this.maxY}equals(t){return this.minX==t.minX&&this.minY==t.minY&&this.maxX==t.maxX&&this.maxY==t.maxY}extend(t){t.minX<this.minX&&(this.minX=t.minX),t.maxX>this.maxX&&(this.maxX=t.maxX),t.minY<this.minY&&(this.minY=t.minY),t.maxY>this.maxY&&(this.maxY=t.maxY)}getHeight(){return this.maxY-this.minY+1}getSize(){return[this.getWidth(),this.getHeight()]}getWidth(){return this.maxX-this.minX+1}intersects(t){return this.minX<=t.maxX&&this.maxX>=t.minX&&this.minY<=t.maxY&&this.maxY>=t.minY}}function r(t,e,n,r,o){return void 0!==o?(o.minX=t,o.maxX=e,o.minY=n,o.maxY=r,o):new i(t,e,n,r)}const o=i},5751:(t,e,n)=>{"use strict";n.d(e,{A:()=>i});const i={IDLE:0,LOADING:1,LOADED:2,ERROR:3,EMPTY:4}},3427:(t,e,n)=>{"use strict";n.d(e,{Ay:()=>A});var i=n(5191),r=n(8856);const o={CENTER:"center",RESOLUTION:"resolution",ROTATION:"rotation"};var a=n(8086),s=n(6859),l=n(6079),h=n(6234),c=n(3957),u=n(2878);function d(t,e,n){return function(i,r,o,a,s){if(!i)return;if(!r&&!e)return i;const l=e?0:o[0]*r,h=e?0:o[1]*r,c=s?s[0]:0,d=s?s[1]:0;let p=t[0]+l/2+c,f=t[2]-l/2+c,g=t[1]+h/2+d,m=t[3]-h/2+d;p>f&&(p=(f+p)/2,f=p),g>m&&(g=(m+g)/2,m=g);let v=(0,u.qE)(i[0],p,f),y=(0,u.qE)(i[1],g,m);if(a&&n&&r){const t=30*r;v+=-t*Math.log(1+Math.max(0,p-i[0])/t)+t*Math.log(1+Math.max(0,i[0]-f)/t),y+=-t*Math.log(1+Math.max(0,g-i[1])/t)+t*Math.log(1+Math.max(0,i[1]-m)/t)}return[v,y]}}function p(t){return t}var f=n(4320),g=n(9783);function m(t,e,n,i){const r=(0,f.RG)(e)/n[0],o=(0,f.Oq)(e)/n[1];return i?Math.min(t,Math.max(r,o)):Math.min(t,Math.min(r,o))}function v(t,e,n){let i=Math.min(t,e);return i*=Math.log(1+50*Math.max(0,t/e-1))/50+1,n&&(i=Math.max(i,n),i/=Math.log(1+50*Math.max(0,n/t-1))/50+1),(0,u.qE)(i,n/2,2*e)}function y(t,e,n,i,r){return n=void 0===n||n,function(o,a,s,l){if(void 0!==o){const a=i?m(t,i,s,r):t;return n&&l?v(o,a,e):(0,u.qE)(o,e,a)}}}var _=n(8333),x=n(3829),b=n(206);class w extends i.A{constructor(t){super(),this.on,this.once,this.un,t=Object.assign({},t),this.hints_=[0,0],this.animations_=[],this.updateAnimationKey_,this.projection_=(0,s.Av)(t.projection,"EPSG:3857"),this.viewportSize_=[100,100],this.targetCenter_=null,this.targetResolution_,this.targetRotation_,this.nextCenter_=null,this.nextResolution_,this.nextRotation_,this.cancelAnchor_=void 0,t.projection&&(0,s.RJ)(),t.center&&(t.center=(0,s.Ad)(t.center,this.projection_)),t.extent&&(t.extent=(0,s.SD)(t.extent,this.projection_)),this.applyOptions_(t)}applyOptions_(t){const e=Object.assign({},t);for(const a in o)delete e[a];this.setProperties(e,!0);const n=function(t){let e,n,i;const r=28,o=2;let l=void 0!==t.minZoom?t.minZoom:0,h=void 0!==t.maxZoom?t.maxZoom:r;const c=void 0!==t.zoomFactor?t.zoomFactor:o,d=void 0!==t.multiWorld&&t.multiWorld,p=void 0===t.smoothResolutionConstraint||t.smoothResolutionConstraint,_=void 0!==t.showFullExtent&&t.showFullExtent,x=(0,s.Av)(t.projection,"EPSG:3857"),b=x.getExtent();let w=t.constrainOnlyCenter,S=t.extent;d||S||!x.isGlobal()||(w=!1,S=b);if(void 0!==t.resolutions){const r=t.resolutions;n=r[l],i=void 0!==r[h]?r[h]:r[r.length-1],e=t.constrainResolution?function(t,e,n,i){return e=void 0===e||e,function(r,o,a,s){if(void 0!==r){const l=t[0],h=t[t.length-1],c=n?m(l,n,a,i):l;if(s)return e?v(r,c,h):(0,u.qE)(r,h,c);const d=Math.min(c,r),p=Math.floor((0,g.FT)(t,d,o));return t[p]>c&&p<t.length-1?t[p+1]:t[p]}}}(r,p,!w&&S,_):y(n,i,p,!w&&S,_)}else{const d=(b?Math.max((0,f.RG)(b),(0,f.Oq)(b)):360*s.Ig.degrees/x.getMetersPerUnit())/a.R/Math.pow(o,0),g=d/Math.pow(o,r-0);n=t.maxResolution,void 0!==n?l=0:n=d/Math.pow(c,l),i=t.minResolution,void 0===i&&(i=void 0!==t.maxZoom?void 0!==t.maxResolution?n/Math.pow(c,h):d/Math.pow(c,h):g),h=l+Math.floor(Math.log(n/i)/Math.log(c)),i=n/Math.pow(c,h-l),e=t.constrainResolution?function(t,e,n,i,r,o){return i=void 0===i||i,n=void 0!==n?n:0,function(a,s,l,h){if(void 0!==a){const c=r?m(e,r,l,o):e;if(h)return i?v(a,c,n):(0,u.qE)(a,n,c);const d=1e-9,p=Math.ceil(Math.log(e/c)/Math.log(t)-d),f=-s*(.5-d)+.5,g=Math.min(c,a),y=Math.floor(Math.log(e/g)/Math.log(t)+f),_=Math.max(p,y),x=e/Math.pow(t,_);return(0,u.qE)(x,n,c)}}}(c,n,i,p,!w&&S,_):y(n,i,p,!w&&S,_)}return{constraint:e,maxResolution:n,minResolution:i,minZoom:l,zoomFactor:c}}(t);this.maxResolution_=n.maxResolution,this.minResolution_=n.minResolution,this.zoomFactor_=n.zoomFactor,this.resolutions_=t.resolutions,this.padding_=t.padding,this.minZoom_=n.minZoom;const i=function(t){if(void 0!==t.extent){const e=void 0===t.smoothExtentConstraint||t.smoothExtentConstraint;return d(t.extent,t.constrainOnlyCenter,e)}const e=(0,s.Av)(t.projection,"EPSG:3857");if(!0!==t.multiWorld&&e.isGlobal()){const t=e.getExtent().slice();return t[0]=-1/0,t[2]=1/0,d(t,!1,!1)}return p}(t),r=n.constraint,l=function(t){const e=void 0===t.enableRotation||t.enableRotation;if(e){const e=t.constrainRotation;return void 0===e||!0===e?(0,_.cq)():!1===e?_.dv:"number"==typeof e?(0,_.a$)(e):_.dv}return _.b8}(t);this.constraints_={center:i,resolution:r,rotation:l},this.setRotation(void 0!==t.rotation?t.rotation:0),this.setCenterInternal(void 0!==t.center?t.center:null),void 0!==t.resolution?this.setResolution(t.resolution):void 0!==t.zoom&&this.setZoom(t.zoom)}get padding(){return this.padding_}set padding(t){let e=this.padding_;this.padding_=t;const n=this.getCenterInternal();if(n){const i=t||[0,0,0,0];e=e||[0,0,0,0];const r=this.getResolution(),o=r/2*(i[3]-e[3]+e[1]-i[1]),a=r/2*(i[0]-e[0]+e[2]-i[2]);this.setCenterInternal([n[0]+o,n[1]-a])}}getUpdatedOptions_(t){const e=this.getProperties();return void 0!==e.resolution?e.resolution=this.getResolution():e.zoom=this.getZoom(),e.center=this.getCenterInternal(),e.rotation=this.getRotation(),Object.assign({},e,t)}animate(t){this.isDef()&&!this.getAnimating()&&this.resolveConstraints(0);const e=new Array(arguments.length);for(let n=0;n<e.length;++n){let t=arguments[n];t.center&&(t=Object.assign({},t),t.center=(0,s.Ad)(t.center,this.getProjection())),t.anchor&&(t=Object.assign({},t),t.anchor=(0,s.Ad)(t.anchor,this.getProjection())),e[n]=t}this.animateInternal.apply(this,e)}animateInternal(t){let e,n=arguments.length;n>1&&"function"==typeof arguments[n-1]&&(e=arguments[n-1],--n);let i=0;for(;i<n&&!this.isDef();++i){const t=arguments[i];t.center&&this.setCenterInternal(t.center),void 0!==t.zoom?this.setZoom(t.zoom):t.resolution&&this.setResolution(t.resolution),void 0!==t.rotation&&this.setRotation(t.rotation)}if(i===n)return void(e&&S(e,!0));let o=Date.now(),a=this.targetCenter_.slice(),s=this.targetResolution_,l=this.targetRotation_;const h=[];for(;i<n;++i){const t=arguments[i],n={start:o,complete:!1,anchor:t.anchor,duration:void 0!==t.duration?t.duration:1e3,easing:t.easing||x.T9,callback:e};if(t.center&&(n.sourceCenter=a,n.targetCenter=t.center.slice(),a=n.targetCenter),void 0!==t.zoom?(n.sourceResolution=s,n.targetResolution=this.getResolutionForZoom(t.zoom),s=n.targetResolution):t.resolution&&(n.sourceResolution=s,n.targetResolution=t.resolution,s=n.targetResolution),void 0!==t.rotation){n.sourceRotation=l;const e=(0,u.xP)(t.rotation-l+Math.PI,2*Math.PI)-Math.PI;n.targetRotation=l+e,l=n.targetRotation}T(n)?n.complete=!0:o+=n.duration,h.push(n)}this.animations_.push(h),this.setHint(r.A.ANIMATING,1),this.updateAnimations_()}getAnimating(){return this.hints_[r.A.ANIMATING]>0}getInteracting(){return this.hints_[r.A.INTERACTING]>0}cancelAnimations(){let t;this.setHint(r.A.ANIMATING,-this.hints_[r.A.ANIMATING]);for(let e=0,n=this.animations_.length;e<n;++e){const n=this.animations_[e];if(n[0].callback&&S(n[0].callback,!1),!t)for(let e=0,i=n.length;e<i;++e){const i=n[e];if(!i.complete){t=i.anchor;break}}}this.animations_.length=0,this.cancelAnchor_=t,this.nextCenter_=null,this.nextResolution_=NaN,this.nextRotation_=NaN}updateAnimations_(){if(void 0!==this.updateAnimationKey_&&(cancelAnimationFrame(this.updateAnimationKey_),this.updateAnimationKey_=void 0),!this.getAnimating())return;const t=Date.now();let e=!1;for(let n=this.animations_.length-1;n>=0;--n){const i=this.animations_[n];let o=!0;for(let n=0,r=i.length;n<r;++n){const r=i[n];if(r.complete)continue;const a=t-r.start;let s=r.duration>0?a/r.duration:1;s>=1?(r.complete=!0,s=1):o=!1;const l=r.easing(s);if(r.sourceCenter){const t=r.sourceCenter[0],e=r.sourceCenter[1],n=r.targetCenter[0],i=r.targetCenter[1];this.nextCenter_=r.targetCenter;const o=t+l*(n-t),a=e+l*(i-e);this.targetCenter_=[o,a]}if(r.sourceResolution&&r.targetResolution){const t=1===l?r.targetResolution:r.sourceResolution+l*(r.targetResolution-r.sourceResolution);if(r.anchor){const e=this.getViewportSize_(this.getRotation()),n=this.constraints_.resolution(t,0,e,!0);this.targetCenter_=this.calculateCenterZoom(n,r.anchor)}this.nextResolution_=r.targetResolution,this.targetResolution_=t,this.applyTargetState_(!0)}if(void 0!==r.sourceRotation&&void 0!==r.targetRotation){const t=1===l?(0,u.xP)(r.targetRotation+Math.PI,2*Math.PI)-Math.PI:r.sourceRotation+l*(r.targetRotation-r.sourceRotation);if(r.anchor){const e=this.constraints_.rotation(t,!0);this.targetCenter_=this.calculateCenterRotate(e,r.anchor)}this.nextRotation_=r.targetRotation,this.targetRotation_=t}if(this.applyTargetState_(!0),e=!0,!r.complete)break}if(o){this.animations_[n]=null,this.setHint(r.A.ANIMATING,-1),this.nextCenter_=null,this.nextResolution_=NaN,this.nextRotation_=NaN;const t=i[0].callback;t&&S(t,!0)}}this.animations_=this.animations_.filter(Boolean),e&&void 0===this.updateAnimationKey_&&(this.updateAnimationKey_=requestAnimationFrame(this.updateAnimations_.bind(this)))}calculateCenterRotate(t,e){let n;const i=this.getCenterInternal();return void 0!==i&&(n=[i[0]-e[0],i[1]-e[1]],(0,h.e$)(n,t-this.getRotation()),(0,h.WQ)(n,e)),n}calculateCenterZoom(t,e){let n;const i=this.getCenterInternal(),r=this.getResolution();if(void 0!==i&&void 0!==r){n=[e[0]-t*(e[0]-i[0])/r,e[1]-t*(e[1]-i[1])/r]}return n}getViewportSize_(t){const e=this.viewportSize_;if(t){const n=e[0],i=e[1];return[Math.abs(n*Math.cos(t))+Math.abs(i*Math.sin(t)),Math.abs(n*Math.sin(t))+Math.abs(i*Math.cos(t))]}return e}setViewportSize(t){this.viewportSize_=Array.isArray(t)?t.slice():[100,100],this.getAnimating()||this.resolveConstraints(0)}getCenter(){const t=this.getCenterInternal();return t?(0,s.te)(t,this.getProjection()):t}getCenterInternal(){return this.get(o.CENTER)}getConstraints(){return this.constraints_}getConstrainResolution(){return this.get("constrainResolution")}getHints(t){return void 0!==t?(t[0]=this.hints_[0],t[1]=this.hints_[1],t):this.hints_.slice()}calculateExtent(t){const e=this.calculateExtentInternal(t);return(0,s.JR)(e,this.getProjection())}calculateExtentInternal(t){t=t||this.getViewportSizeMinusPadding_();const e=this.getCenterInternal();(0,c.v)(e,1);const n=this.getResolution();(0,c.v)(void 0!==n,2);const i=this.getRotation();return(0,c.v)(void 0!==i,3),(0,f.Bg)(e,n,i,t)}getMaxResolution(){return this.maxResolution_}getMinResolution(){return this.minResolution_}getMaxZoom(){return this.getZoomForResolution(this.minResolution_)}setMaxZoom(t){this.applyOptions_(this.getUpdatedOptions_({maxZoom:t}))}getMinZoom(){return this.getZoomForResolution(this.maxResolution_)}setMinZoom(t){this.applyOptions_(this.getUpdatedOptions_({minZoom:t}))}setConstrainResolution(t){this.applyOptions_(this.getUpdatedOptions_({constrainResolution:t}))}getProjection(){return this.projection_}getResolution(){return this.get(o.RESOLUTION)}getResolutions(){return this.resolutions_}getResolutionForExtent(t,e){return this.getResolutionForExtentInternal((0,s.SD)(t,this.getProjection()),e)}getResolutionForExtentInternal(t,e){e=e||this.getViewportSizeMinusPadding_();const n=(0,f.RG)(t)/e[0],i=(0,f.Oq)(t)/e[1];return Math.max(n,i)}getResolutionForValueFunction(t){t=t||2;const e=this.getConstrainedResolution(this.maxResolution_),n=this.minResolution_,i=Math.log(e/n)/Math.log(t);return function(n){return e/Math.pow(t,n*i)}}getRotation(){return this.get(o.ROTATION)}getValueForResolutionFunction(t){const e=Math.log(t||2),n=this.getConstrainedResolution(this.maxResolution_),i=this.minResolution_,r=Math.log(n/i)/e;return function(t){return Math.log(n/t)/e/r}}getViewportSizeMinusPadding_(t){let e=this.getViewportSize_(t);const n=this.padding_;return n&&(e=[e[0]-n[1]-n[3],e[1]-n[0]-n[2]]),e}getState(){const t=this.getProjection(),e=this.getResolution(),n=this.getRotation();let i=this.getCenterInternal();const r=this.padding_;if(r){const t=this.getViewportSizeMinusPadding_();i=M(i,this.getViewportSize_(),[t[0]/2+r[3],t[1]/2+r[0]],e,n)}return{center:i.slice(0),projection:void 0!==t?t:null,resolution:e,nextCenter:this.nextCenter_,nextResolution:this.nextResolution_,nextRotation:this.nextRotation_,rotation:n,zoom:this.getZoom()}}getViewStateAndExtent(){return{viewState:this.getState(),extent:this.calculateExtent()}}getZoom(){let t;const e=this.getResolution();return void 0!==e&&(t=this.getZoomForResolution(e)),t}getZoomForResolution(t){let e,n,i=this.minZoom_||0;if(this.resolutions_){const r=(0,g.FT)(this.resolutions_,t,1);i=r,e=this.resolutions_[r],n=r==this.resolutions_.length-1?2:e/this.resolutions_[r+1]}else e=this.maxResolution_,n=this.zoomFactor_;return i+Math.log(e/t)/Math.log(n)}getResolutionForZoom(t){if(this.resolutions_){if(this.resolutions_.length<=1)return 0;const e=(0,u.qE)(Math.floor(t),0,this.resolutions_.length-2),n=this.resolutions_[e]/this.resolutions_[e+1];return this.resolutions_[e]/Math.pow(n,(0,u.qE)(t-e,0,1))}return this.maxResolution_/Math.pow(this.zoomFactor_,t-this.minZoom_)}fit(t,e){let n;if((0,c.v)(Array.isArray(t)||"function"==typeof t.getSimplifiedGeometry,24),Array.isArray(t)){(0,c.v)(!(0,f.Im)(t),25);const e=(0,s.SD)(t,this.getProjection());n=(0,b.VY)(e)}else if("Circle"===t.getType()){const e=(0,s.SD)(t.getExtent(),this.getProjection());n=(0,b.VY)(e),n.rotate(this.getRotation(),(0,f.q1)(e))}else{const e=(0,s.Tf)();n=e?t.clone().transform(e,this.getProjection()):t}this.fitInternal(n,e)}rotatedExtentForGeometry(t){const e=this.getRotation(),n=Math.cos(e),i=Math.sin(-e),r=t.getFlatCoordinates(),o=t.getStride();let a=1/0,s=1/0,l=-1/0,h=-1/0;for(let c=0,u=r.length;c<u;c+=o){const t=r[c]*n-r[c+1]*i,e=r[c]*i+r[c+1]*n;a=Math.min(a,t),s=Math.min(s,e),l=Math.max(l,t),h=Math.max(h,e)}return[a,s,l,h]}fitInternal(t,e){let n=(e=e||{}).size;n||(n=this.getViewportSizeMinusPadding_());const i=void 0!==e.padding?e.padding:[0,0,0,0],r=void 0!==e.nearest&&e.nearest;let o;o=void 0!==e.minResolution?e.minResolution:void 0!==e.maxZoom?this.getResolutionForZoom(e.maxZoom):0;const a=this.rotatedExtentForGeometry(t);let s=this.getResolutionForExtentInternal(a,[n[0]-i[1]-i[3],n[1]-i[0]-i[2]]);s=isNaN(s)?o:Math.max(s,o),s=this.getConstrainedResolution(s,r?0:1);const h=this.getRotation(),c=Math.sin(h),u=Math.cos(h),d=(0,f.q1)(a);d[0]+=(i[1]-i[3])/2*s,d[1]+=(i[0]-i[2])/2*s;const p=d[0]*u-d[1]*c,g=d[1]*u+d[0]*c,m=this.getConstrainedCenter([p,g],s),v=e.callback?e.callback:l.tV;void 0!==e.duration?this.animateInternal({resolution:s,center:m,duration:e.duration,easing:e.easing},v):(this.targetResolution_=s,this.targetCenter_=m,this.applyTargetState_(!1,!0),S(v,!0))}centerOn(t,e,n){this.centerOnInternal((0,s.Ad)(t,this.getProjection()),e,n)}centerOnInternal(t,e,n){this.setCenterInternal(M(t,e,n,this.getResolution(),this.getRotation()))}calculateCenterShift(t,e,n,i){let r;const o=this.padding_;if(o&&t){const a=this.getViewportSizeMinusPadding_(-n),s=M(t,i,[a[0]/2+o[3],a[1]/2+o[0]],e,n);r=[t[0]-s[0],t[1]-s[1]]}return r}isDef(){return!!this.getCenterInternal()&&void 0!==this.getResolution()}adjustCenter(t){const e=(0,s.te)(this.targetCenter_,this.getProjection());this.setCenter([e[0]+t[0],e[1]+t[1]])}adjustCenterInternal(t){const e=this.targetCenter_;this.setCenterInternal([e[0]+t[0],e[1]+t[1]])}adjustResolution(t,e){e=e&&(0,s.Ad)(e,this.getProjection()),this.adjustResolutionInternal(t,e)}adjustResolutionInternal(t,e){const n=this.getAnimating()||this.getInteracting(),i=this.getViewportSize_(this.getRotation()),r=this.constraints_.resolution(this.targetResolution_*t,0,i,n);e&&(this.targetCenter_=this.calculateCenterZoom(r,e)),this.targetResolution_*=t,this.applyTargetState_()}adjustZoom(t,e){this.adjustResolution(Math.pow(this.zoomFactor_,-t),e)}adjustRotation(t,e){e&&(e=(0,s.Ad)(e,this.getProjection())),this.adjustRotationInternal(t,e)}adjustRotationInternal(t,e){const n=this.getAnimating()||this.getInteracting(),i=this.constraints_.rotation(this.targetRotation_+t,n);e&&(this.targetCenter_=this.calculateCenterRotate(i,e)),this.targetRotation_+=t,this.applyTargetState_()}setCenter(t){this.setCenterInternal(t?(0,s.Ad)(t,this.getProjection()):t)}setCenterInternal(t){this.targetCenter_=t,this.applyTargetState_()}setHint(t,e){return this.hints_[t]+=e,this.changed(),this.hints_[t]}setResolution(t){this.targetResolution_=t,this.applyTargetState_()}setRotation(t){this.targetRotation_=t,this.applyTargetState_()}setZoom(t){this.setResolution(this.getResolutionForZoom(t))}applyTargetState_(t,e){const n=this.getAnimating()||this.getInteracting()||e,i=this.constraints_.rotation(this.targetRotation_,n),r=this.getViewportSize_(i),a=this.constraints_.resolution(this.targetResolution_,0,r,n),s=this.constraints_.center(this.targetCenter_,a,r,n,this.calculateCenterShift(this.targetCenter_,a,i,r));this.get(o.ROTATION)!==i&&this.set(o.ROTATION,i),this.get(o.RESOLUTION)!==a&&(this.set(o.RESOLUTION,a),this.set("zoom",this.getZoom(),!0)),s&&this.get(o.CENTER)&&(0,h.aI)(this.get(o.CENTER),s)||this.set(o.CENTER,s),this.getAnimating()&&!t&&this.cancelAnimations(),this.cancelAnchor_=void 0}resolveConstraints(t,e,n){t=void 0!==t?t:200;const i=e||0,r=this.constraints_.rotation(this.targetRotation_),o=this.getViewportSize_(r),a=this.constraints_.resolution(this.targetResolution_,i,o),s=this.constraints_.center(this.targetCenter_,a,o,!1,this.calculateCenterShift(this.targetCenter_,a,r,o));if(0===t&&!this.cancelAnchor_)return this.targetResolution_=a,this.targetRotation_=r,this.targetCenter_=s,void this.applyTargetState_();n=n||(0===t?this.cancelAnchor_:void 0),this.cancelAnchor_=void 0,this.getResolution()===a&&this.getRotation()===r&&this.getCenterInternal()&&(0,h.aI)(this.getCenterInternal(),s)||(this.getAnimating()&&this.cancelAnimations(),this.animateInternal({rotation:r,center:s,resolution:a,duration:t,easing:x.vT,anchor:n}))}beginInteraction(){this.resolveConstraints(0),this.setHint(r.A.INTERACTING,1)}endInteraction(t,e,n){n=n&&(0,s.Ad)(n,this.getProjection()),this.endInteractionInternal(t,e,n)}endInteractionInternal(t,e,n){this.getInteracting()&&(this.setHint(r.A.INTERACTING,-1),this.resolveConstraints(t,e,n))}getConstrainedCenter(t,e){const n=this.getViewportSize_(this.getRotation());return this.constraints_.center(t,e||this.getResolution(),n)}getConstrainedZoom(t,e){const n=this.getResolutionForZoom(t);return this.getZoomForResolution(this.getConstrainedResolution(n,e))}getConstrainedResolution(t,e){e=e||0;const n=this.getViewportSize_(this.getRotation());return this.constraints_.resolution(t,e,n)}}function S(t,e){setTimeout((function(){t(e)}),0)}function T(t){return!(t.sourceCenter&&t.targetCenter&&!(0,h.aI)(t.sourceCenter,t.targetCenter))&&(t.sourceResolution===t.targetResolution&&t.sourceRotation===t.targetRotation)}function M(t,e,n,i,r){const o=Math.cos(-r);let a=Math.sin(-r),s=t[0]*o-t[1]*a,l=t[1]*o+t[0]*a;s+=(e[0]/2-n[0])*i,l+=(n[1]-e[1]/2)*i,a=-a;return[s*o-l*a,l*o+s*a]}const A=w},8856:(t,e,n)=>{"use strict";n.d(e,{A:()=>i});const i={ANIMATING:0,INTERACTING:1}},9783:(t,e,n)=>{"use strict";function i(t,e,n){let i,o;n=n||r;let a=0,s=t.length,l=!1;for(;a<s;)i=a+(s-a>>1),o=+n(t[i],e),o<0?a=i+1:(s=i,l=!o);return l?a:~a}function r(t,e){return t>e?1:t<e?-1:0}function o(t,e,n){if(t[0]<=e)return 0;const i=t.length;if(e<=t[i-1])return i-1;if("function"==typeof n){for(let r=1;r<i;++r){const i=t[r];if(i===e)return r;if(i<e)return n(e,t[r-1],i)>0?r-1:r}return i-1}if(n>0){for(let n=1;n<i;++n)if(t[n]<e)return n-1;return i-1}if(n<0){for(let n=1;n<i;++n)if(t[n]<=e)return n;return i-1}for(let r=1;r<i;++r){if(t[r]==e)return r;if(t[r]<e)return t[r-1]-e<e-t[r]?r-1:r}return i-1}function a(t,e,n){for(;e<n;){const i=t[e];t[e]=t[n],t[n]=i,++e,--n}}function s(t,e){const n=Array.isArray(e)?e:[e],i=n.length;for(let r=0;r<i;r++)t[t.length]=n[r]}function l(t,e){const n=t.length;if(n!==e.length)return!1;for(let i=0;i<n;i++)if(t[i]!==e[i])return!1;return!0}function h(t,e,n){const i=e||r;return t.every((function(e,r){if(0===r)return!0;const o=i(t[r-1],e);return!(o>0||n&&0===o)}))}n.d(e,{El:()=>i,FT:()=>o,V_:()=>r,WC:()=>h,X$:()=>s,aI:()=>l,gI:()=>a})},3957:(t,e,n)=>{"use strict";n.d(e,{v:()=>r});var i=n(8554);function r(t,e){if(!t)throw new i.A(e)}},1805:(t,e,n)=>{"use strict";n.d(e,{_j:()=>c,dI:()=>d,oJ:()=>s});var i=n(3957),r=n(2878);const o=/^#([a-f0-9]{3}|[a-f0-9]{4}(?:[a-f0-9]{2}){0,2})$/i,a=/^([a-z]*)$|^hsla?\(.*\)$/i;function s(t){return"string"==typeof t?t:d(t)}function l(t){const e=document.createElement("div");if(e.style.color=t,""!==e.style.color){document.body.appendChild(e);const t=getComputedStyle(e).color;return document.body.removeChild(e),t}return""}const h=function(){const t={};let e=0;return function(n){let r;if(t.hasOwnProperty(n))r=t[n];else{if(e>=1024){let n=0;for(const i in t)3&n++||(delete t[i],--e)}r=function(t){let e,n,r,s,h;a.exec(t)&&(t=l(t));if(o.exec(t)){const i=t.length-1;let o;o=i<=4?1:2;const a=4===i||8===i;e=parseInt(t.substr(1+0*o,o),16),n=parseInt(t.substr(1+1*o,o),16),r=parseInt(t.substr(1+2*o,o),16),s=a?parseInt(t.substr(1+3*o,o),16):255,1==o&&(e=(e<<4)+e,n=(n<<4)+n,r=(r<<4)+r,a&&(s=(s<<4)+s)),h=[e,n,r,s/255]}else t.startsWith("rgba(")?(h=t.slice(5,-1).split(",").map(Number),u(h)):t.startsWith("rgb(")?(h=t.slice(4,-1).split(",").map(Number),h.push(1),u(h)):(0,i.v)(!1,14);return h}(n),t[n]=r,++e}return r}}();function c(t){return Array.isArray(t)?t:h(t)}function u(t){return t[0]=(0,r.qE)(t[0]+.5|0,0,255),t[1]=(0,r.qE)(t[1]+.5|0,0,255),t[2]=(0,r.qE)(t[2]+.5|0,0,255),t[3]=(0,r.qE)(t[3],0,1),t}function d(t){let e=t[0];e!=(0|e)&&(e=e+.5|0);let n=t[1];n!=(0|n)&&(n=n+.5|0);let i=t[2];i!=(0|i)&&(i=i+.5|0);return"rgba("+e+","+n+","+i+","+(void 0===t[3]?1:Math.round(100*t[3])/100)+")"}},154:(t,e,n)=>{"use strict";n.d(e,{F:()=>r});var i=n(1805);function r(t){return Array.isArray(t)?(0,i.dI)(t):t}},4095:(t,e,n)=>{"use strict";n.d(e,{R8:()=>o});const i={info:1,warn:2,error:3,none:4};let r=i.info;function o(...t){r>i.warn||console.warn(...t)}},6234:(t,e,n)=>{"use strict";n.d(e,{WQ:()=>a,aP:()=>s,aI:()=>l,U$:()=>d,e$:()=>h,hs:()=>c,Li:()=>u});var i=n(4320),r=n(2878);function o(t,e,n){const i=void 0!==n?t.toFixed(n):""+t;let r=i.indexOf(".");return r=-1===r?i.length:r,r>e?i:new Array(1+e-r).join("0")+i}function a(t,e){return t[0]+=+e[0],t[1]+=+e[1],t}function s(t,e,n){const i=(0,r.xP)(e+180,360)-180,a=Math.abs(3600*i),s=n||0;let l=Math.floor(a/3600),h=Math.floor((a-3600*l)/60),c=(0,r.Mg)(a-3600*l-60*h,s);c>=60&&(c=0,h+=1),h>=60&&(h=0,l+=1);let u=l+"\xb0";return 0===h&&0===c||(u+=" "+o(h,2)+"\u2032"),0!==c&&(u+=" "+o(c,2,s)+"\u2033"),0!==i&&(u+=" "+t.charAt(i<0?1:0)),u}function l(t,e){let n=!0;for(let i=t.length-1;i>=0;--i)if(t[i]!=e[i]){n=!1;break}return n}function h(t,e){const n=Math.cos(e),i=Math.sin(e),r=t[0]*n-t[1]*i,o=t[1]*n+t[0]*i;return t[0]=r,t[1]=o,t}function c(t,e){return t[0]*=e,t[1]*=e,t}function u(t,e){if(e.canWrapX()){const n=(0,i.RG)(e.getExtent()),r=d(t,e,n);r&&(t[0]-=r*n)}return t}function d(t,e,n){const r=e.getExtent();let o=0;return e.canWrapX()&&(t[0]<r[0]||t[0]>r[2])&&(n=n||(0,i.RG)(r),o=Math.floor((t[0]-r[0])/n)),o}},5433:(t,e,n)=>{"use strict";n.d(e,{$N:()=>a,K5:()=>c,Q5:()=>r,Si:()=>i,XI:()=>o,nT:()=>s});const i="ol-hidden",r="ol-selectable",o="ol-unselectable",a="ol-control",s="ol-collapsed",l=new RegExp(["^\\s*(?=(?:(?:[-a-z]+\\s*){0,2}(italic|oblique))?)","(?=(?:(?:[-a-z]+\\s*){0,2}(small-caps))?)","(?=(?:(?:[-a-z]+\\s*){0,2}(bold(?:er)?|lighter|[1-9]00 ))?)","(?:(?:normal|\\1|\\2|\\3)\\s*){0,3}((?:xx?-)?","(?:small|large)|medium|smaller|larger|[\\.\\d]+(?:\\%|in|[cem]m|ex|p[ctx]))","(?:\\s*\\/\\s*(normal|[\\.\\d]+(?:\\%|in|[cem]m|ex|p[ctx])?))","?\\s*([-,\\\"\\'\\sa-z]+?)\\s*$"].join(""),"i"),h=["style","variant","weight","size","lineHeight","family"],c=function(t){const e=t.match(l);if(!e)return null;const n={lineHeight:"normal",size:"1.2em",style:"normal",weight:"normal",variant:"normal"};for(let i=0,r=h.length;i<r;++i){const t=e[i+1];void 0!==t&&(n[h[i]]=t)}return n.families=n.family.split(/,\s?/),n}},7354:(t,e,n)=>{"use strict";n.d(e,{DK:()=>s,Gq:()=>a,WM:()=>u,Y:()=>r,Yg:()=>o,bf:()=>h,fo:()=>l,gS:()=>c});var i=n(6306);function r(t,e,n,r){let o;return o=n&&n.length?n.shift():i.Wl?new OffscreenCanvas(t||300,e||300):document.createElement("canvas"),t&&(o.width=t),e&&(o.height=e),o.getContext("2d",r)}function o(t){const e=t.canvas;e.width=1,e.height=1,t.clearRect(0,0,1,1)}function a(t){let e=t.offsetWidth;const n=getComputedStyle(t);return e+=parseInt(n.marginLeft,10)+parseInt(n.marginRight,10),e}function s(t){let e=t.offsetHeight;const n=getComputedStyle(t);return e+=parseInt(n.marginTop,10)+parseInt(n.marginBottom,10),e}function l(t,e){const n=e.parentNode;n&&n.replaceChild(t,e)}function h(t){return t&&t.parentNode?t.parentNode.removeChild(t):null}function c(t){for(;t.lastChild;)t.removeChild(t.lastChild)}function u(t,e){const n=t.childNodes;for(let i=0;;++i){const r=n[i],o=e[i];if(!r&&!o)break;r!==o&&(r?o?t.insertBefore(o,r):(t.removeChild(r),--i):t.appendChild(o))}}},3829:(t,e,n)=>{"use strict";function i(t){return Math.pow(t,3)}function r(t){return 1-i(1-t)}function o(t){return 3*t*t-2*t*t*t}function a(t){return t}n.d(e,{T9:()=>o,a6:()=>i,sn:()=>a,vT:()=>r})},2657:(t,e,n)=>{"use strict";n.d(e,{JH:()=>a,Jz:()=>o,KT:()=>r});var i=n(6943);function r(t,e,n,i,r){if(i&&i!==t&&(n=n.bind(i)),r){const i=n;n=function(){t.removeEventListener(e,n),i.apply(this,arguments)}}const o={target:t,type:e,listener:n};return t.addEventListener(e,n),o}function o(t,e,n,i){return r(t,e,n,i,!0)}function a(t){t&&t.target&&(t.target.removeEventListener(t.type,t.listener),(0,i.I)(t))}},5026:(t,e,n)=>{"use strict";n.d(e,{Ay:()=>i});const i=class{constructor(t){this.propagationStopped,this.defaultPrevented,this.type=t,this.target=null}preventDefault(){this.defaultPrevented=!0}stopPropagation(){this.propagationStopped=!0}}},874:(t,e,n)=>{"use strict";n.d(e,{A:()=>i});const i={CHANGE:"change",ERROR:"error",BLUR:"blur",CLEAR:"clear",CONTEXTMENU:"contextmenu",CLICK:"click",DBLCLICK:"dblclick",DRAGENTER:"dragenter",DRAGOVER:"dragover",DROP:"drop",FOCUS:"focus",KEYDOWN:"keydown",KEYPRESS:"keypress",LOAD:"load",RESIZE:"resize",TOUCHMOVE:"touchmove",WHEEL:"wheel"}},1385:(t,e,n)=>{"use strict";n.d(e,{A:()=>l});var i=n(7034),r=n(5026),o=n(6079),a=n(6943);class s extends i.A{constructor(t){super(),this.eventTarget_=t,this.pendingRemovals_=null,this.dispatching_=null,this.listeners_=null}addEventListener(t,e){if(!t||!e)return;const n=this.listeners_||(this.listeners_={}),i=n[t]||(n[t]=[]);i.includes(e)||i.push(e)}dispatchEvent(t){const e="string"==typeof t,n=e?t:t.type,i=this.listeners_&&this.listeners_[n];if(!i)return;const a=e?new r.Ay(t):t;a.target||(a.target=this.eventTarget_||this);const s=this.dispatching_||(this.dispatching_={}),l=this.pendingRemovals_||(this.pendingRemovals_={});let h;n in s||(s[n]=0,l[n]=0),++s[n];for(let r=0,o=i.length;r<o;++r)if(h="handleEvent"in i[r]?i[r].handleEvent(a):i[r].call(this,a),!1===h||a.propagationStopped){h=!1;break}if(0==--s[n]){let t=l[n];for(delete l[n];t--;)this.removeEventListener(n,o.tV);delete s[n]}return h}disposeInternal(){this.listeners_&&(0,a.I)(this.listeners_)}getListeners(t){return this.listeners_&&this.listeners_[t]||void 0}hasListener(t){return!!this.listeners_&&(t?t in this.listeners_:Object.keys(this.listeners_).length>0)}removeEventListener(t,e){const n=this.listeners_&&this.listeners_[t];if(n){const i=n.indexOf(e);-1!==i&&(this.pendingRemovals_&&t in this.pendingRemovals_?(n[i]=o.tV,++this.pendingRemovals_[t]):(n.splice(i,1),0===n.length&&delete this.listeners_[t]))}}}const l=s},4320:(t,e,n)=>{"use strict";n.d(e,{$C:()=>b,$u:()=>z,Bg:()=>k,HY:()=>F,Im:()=>B,Ld:()=>l,Li:()=>j,Mx:()=>G,N:()=>f,NW:()=>V,Oq:()=>D,Py:()=>R,QJ:()=>H,R:()=>A,R8:()=>w,RG:()=>N,Rj:()=>u,S5:()=>p,Tr:()=>o,UG:()=>M,Vy:()=>v,WU:()=>O,X$:()=>x,Ym:()=>h,Yw:()=>L,_N:()=>P,aI:()=>y,aZ:()=>g,bE:()=>_,dP:()=>m,k_:()=>C,ms:()=>c,o8:()=>s,q1:()=>I,qF:()=>E,r:()=>a,sB:()=>T,vz:()=>d});var i=n(6845),r=n(3957);function o(t){const e=p();for(let n=0,i=t.length;n<i;++n)b(e,t[n]);return e}function a(t,e,n){return n?(n[0]=t[0]-e,n[1]=t[1]-e,n[2]=t[2]+e,n[3]=t[3]+e,n):[t[0]-e,t[1]-e,t[2]+e,t[3]+e]}function s(t,e){return e?(e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[3],e):t.slice()}function l(t,e,n){let i,r;return i=e<t[0]?t[0]-e:t[2]<e?e-t[2]:0,r=n<t[1]?t[1]-n:t[3]<n?n-t[3]:0,i*i+r*r}function h(t,e){return u(t,e[0],e[1])}function c(t,e){return t[0]<=e[0]&&e[2]<=t[2]&&t[1]<=e[1]&&e[3]<=t[3]}function u(t,e,n){return t[0]<=e&&e<=t[2]&&t[1]<=n&&n<=t[3]}function d(t,e){const n=t[0],r=t[1],o=t[2],a=t[3],s=e[0],l=e[1];let h=i.A.UNKNOWN;return s<n?h|=i.A.LEFT:s>o&&(h|=i.A.RIGHT),l<r?h|=i.A.BELOW:l>a&&(h|=i.A.ABOVE),h===i.A.UNKNOWN&&(h=i.A.INTERSECTING),h}function p(){return[1/0,1/0,-1/0,-1/0]}function f(t,e,n,i,r){return r?(r[0]=t,r[1]=e,r[2]=n,r[3]=i,r):[t,e,n,i]}function g(t){return f(1/0,1/0,-1/0,-1/0,t)}function m(t,e){const n=t[0],i=t[1];return f(n,i,n,i,e)}function v(t,e,n,i,r){return w(g(r),t,e,n,i)}function y(t,e){return t[0]==e[0]&&t[2]==e[2]&&t[1]==e[1]&&t[3]==e[3]}function _(t,e,n){return Math.abs(t[0]-e[0])<n&&Math.abs(t[2]-e[2])<n&&Math.abs(t[1]-e[1])<n&&Math.abs(t[3]-e[3])<n}function x(t,e){return e[0]<t[0]&&(t[0]=e[0]),e[2]>t[2]&&(t[2]=e[2]),e[1]<t[1]&&(t[1]=e[1]),e[3]>t[3]&&(t[3]=e[3]),t}function b(t,e){e[0]<t[0]&&(t[0]=e[0]),e[0]>t[2]&&(t[2]=e[0]),e[1]<t[1]&&(t[1]=e[1]),e[1]>t[3]&&(t[3]=e[1])}function w(t,e,n,i,r){for(;n<i;n+=r)S(t,e[n],e[n+1]);return t}function S(t,e,n){t[0]=Math.min(t[0],e),t[1]=Math.min(t[1],n),t[2]=Math.max(t[2],e),t[3]=Math.max(t[3],n)}function T(t,e){let n;return n=e(A(t)),n||(n=e(C(t)),n||(n=e(O(t)),n||(n=e(R(t)),n||!1)))}function M(t){let e=0;return B(t)||(e=N(t)*D(t)),e}function A(t){return[t[0],t[1]]}function C(t){return[t[2],t[1]]}function I(t){return[(t[0]+t[2])/2,(t[1]+t[3])/2]}function E(t,e){let n;return"bottom-left"===e?n=A(t):"bottom-right"===e?n=C(t):"top-left"===e?n=R(t):"top-right"===e?n=O(t):(0,r.v)(!1,13),n}function k(t,e,n,i,r){const[o,a,s,l,h,c,u,d]=L(t,e,n,i);return f(Math.min(o,s,h,u),Math.min(a,l,c,d),Math.max(o,s,h,u),Math.max(a,l,c,d),r)}function L(t,e,n,i){const r=e*i[0]/2,o=e*i[1]/2,a=Math.cos(n),s=Math.sin(n),l=r*a,h=r*s,c=o*a,u=o*s,d=t[0],p=t[1];return[d-l+u,p-h-c,d-l-u,p-h+c,d+l-u,p+h+c,d+l+u,p+h-c,d-l+u,p-h-c]}function D(t){return t[3]-t[1]}function P(t,e,n){const i=n||[1/0,1/0,-1/0,-1/0];return F(t,e)?(t[0]>e[0]?i[0]=t[0]:i[0]=e[0],t[1]>e[1]?i[1]=t[1]:i[1]=e[1],t[2]<e[2]?i[2]=t[2]:i[2]=e[2],t[3]<e[3]?i[3]=t[3]:i[3]=e[3]):g(i),i}function R(t){return[t[0],t[3]]}function O(t){return[t[2],t[3]]}function N(t){return t[2]-t[0]}function F(t,e){return t[0]<=e[2]&&t[2]>=e[0]&&t[1]<=e[3]&&t[3]>=e[1]}function B(t){return t[2]<t[0]||t[3]<t[1]}function z(t,e){return e?(e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[3],e):t}function G(t,e,n){let r=!1;const o=d(t,e),a=d(t,n);if(o===i.A.INTERSECTING||a===i.A.INTERSECTING)r=!0;else{const s=t[0],l=t[1],h=t[2],c=t[3],u=e[0],d=e[1],p=n[0],f=n[1],g=(f-d)/(p-u);let m,v;a&i.A.ABOVE&&!(o&i.A.ABOVE)&&(m=p-(f-c)/g,r=m>=s&&m<=h),r||!(a&i.A.RIGHT)||o&i.A.RIGHT||(v=f-(p-h)*g,r=v>=l&&v<=c),r||!(a&i.A.BELOW)||o&i.A.BELOW||(m=p-(f-l)/g,r=m>=s&&m<=h),r||!(a&i.A.LEFT)||o&i.A.LEFT||(v=f-(p-s)*g,r=v>=l&&v<=c)}return r}function V(t,e,n,i){if(B(t))return g(n);let r=[];if(i>1){const e=t[2]-t[0],n=t[3]-t[1];for(let o=0;o<i;++o)r.push(t[0]+e*o/i,t[1],t[2],t[1]+n*o/i,t[2]-e*o/i,t[3],t[0],t[3]-n*o/i)}else r=[t[0],t[1],t[2],t[1],t[2],t[3],t[0],t[3]];e(r,r,2);const o=[],a=[];for(let s=0,l=r.length;s<l;s+=2)o.push(r[s]),a.push(r[s+1]);return function(t,e,n){return f(Math.min.apply(null,t),Math.min.apply(null,e),Math.max.apply(null,t),Math.max.apply(null,e),n)}(o,a,n)}function j(t,e){const n=e.getExtent(),i=I(t);if(e.canWrapX()&&(i[0]<n[0]||i[0]>=n[2])){const e=N(n),r=Math.floor((i[0]-n[0])/e)*e;t[0]-=r,t[2]-=r}return t}function H(t,e){if(e.canWrapX()){const n=e.getExtent();if(!isFinite(t[0])||!isFinite(t[2]))return[[n[0],t[1],n[2],t[3]]];j(t,e);const i=N(n);if(N(t)>i)return[[n[0],t[1],n[2],t[3]]];if(t[0]<n[0])return[[t[0]+i,t[1],n[2],t[3]],[n[0],t[1],t[2],t[3]]];if(t[2]>n[2])return[[t[0],t[1],n[2],t[3]],[n[0],t[1],t[2]-i,t[3]]]}return[t]}},6845:(t,e,n)=>{"use strict";n.d(e,{A:()=>i});const i={UNKNOWN:0,INTERSECTING:1,ABOVE:2,RIGHT:4,BELOW:8,LEFT:16}},8941:(t,e,n)=>{"use strict";n.d(e,{A:()=>H});var i=n(1116),r=n(874),o=n(163),a=n(4320),s=n(2657);class l extends o.A{constructor(t){super(),this.geometries_=t||null,this.changeEventsKeys_=[],this.listenGeometriesChange_()}unlistenGeometriesChange_(){this.changeEventsKeys_.forEach(s.JH),this.changeEventsKeys_.length=0}listenGeometriesChange_(){if(this.geometries_)for(let t=0,e=this.geometries_.length;t<e;++t)this.changeEventsKeys_.push((0,s.KT)(this.geometries_[t],r.A.CHANGE,this.changed,this))}clone(){const t=new l(null);return t.setGeometries(this.geometries_),t.applyProperties(this),t}closestPointXY(t,e,n,i){if(i<(0,a.Ld)(this.getExtent(),t,e))return i;const r=this.geometries_;for(let o=0,a=r.length;o<a;++o)i=r[o].closestPointXY(t,e,n,i);return i}containsXY(t,e){const n=this.geometries_;for(let i=0,r=n.length;i<r;++i)if(n[i].containsXY(t,e))return!0;return!1}computeExtent(t){(0,a.aZ)(t);const e=this.geometries_;for(let n=0,i=e.length;n<i;++n)(0,a.X$)(t,e[n].getExtent());return t}getGeometries(){return h(this.geometries_)}getGeometriesArray(){return this.geometries_}getGeometriesArrayRecursive(){let t=[];const e=this.geometries_;for(let n=0,i=e.length;n<i;++n)e[n].getType()===this.getType()?t=t.concat(e[n].getGeometriesArrayRecursive()):t.push(e[n]);return t}getSimplifiedGeometry(t){if(this.simplifiedGeometryRevision!==this.getRevision()&&(this.simplifiedGeometryMaxMinSquaredTolerance=0,this.simplifiedGeometryRevision=this.getRevision()),t<0||0!==this.simplifiedGeometryMaxMinSquaredTolerance&&t<this.simplifiedGeometryMaxMinSquaredTolerance)return this;const e=[],n=this.geometries_;let i=!1;for(let r=0,o=n.length;r<o;++r){const o=n[r],a=o.getSimplifiedGeometry(t);e.push(a),a!==o&&(i=!0)}if(i){const t=new l(null);return t.setGeometriesArray(e),t}return this.simplifiedGeometryMaxMinSquaredTolerance=t,this}getType(){return"GeometryCollection"}intersectsExtent(t){const e=this.geometries_;for(let n=0,i=e.length;n<i;++n)if(e[n].intersectsExtent(t))return!0;return!1}isEmpty(){return 0===this.geometries_.length}rotate(t,e){const n=this.geometries_;for(let i=0,r=n.length;i<r;++i)n[i].rotate(t,e);this.changed()}scale(t,e,n){n||(n=(0,a.q1)(this.getExtent()));const i=this.geometries_;for(let r=0,o=i.length;r<o;++r)i[r].scale(t,e,n);this.changed()}setGeometries(t){this.setGeometriesArray(h(t))}setGeometriesArray(t){this.unlistenGeometriesChange_(),this.geometries_=t,this.listenGeometriesChange_(),this.changed()}applyTransform(t){const e=this.geometries_;for(let n=0,i=e.length;n<i;++n)e[n].applyTransform(t);this.changed()}translate(t,e){const n=this.geometries_;for(let i=0,r=n.length;i<r;++i)n[i].translate(t,e);this.changed()}disposeInternal(){this.unlistenGeometriesChange_(),super.disposeInternal()}}function h(t){const e=[];for(let n=0,i=t.length;n<i;++n)e.push(t[n].clone());return e}const c=l;var u=n(6916),d=n(6859);const p=class{constructor(){this.dataProjection=void 0,this.defaultFeatureProjection=void 0,this.supportedMediaTypes=null}getReadOptions(t,e){if(e){let n=e.dataProjection?(0,d.Jt)(e.dataProjection):this.readProjection(t);e.extent&&n&&"tile-pixels"===n.getUnits()&&(n=(0,d.Jt)(n),n.setWorldExtent(e.extent)),e={dataProjection:n,featureProjection:e.featureProjection}}return this.adaptOptions(e)}adaptOptions(t){return Object.assign({dataProjection:this.dataProjection,featureProjection:this.defaultFeatureProjection},t)}getType(){return(0,u.b0)()}readFeature(t,e){return(0,u.b0)()}readFeatures(t,e){return(0,u.b0)()}readGeometry(t,e){return(0,u.b0)()}readProjection(t){return(0,u.b0)()}writeFeature(t,e){return(0,u.b0)()}writeFeatures(t,e){return(0,u.b0)()}writeGeometry(t,e){return(0,u.b0)()}};function f(t,e,n){const i=n?(0,d.Jt)(n.featureProjection):null,r=n?(0,d.Jt)(n.dataProjection):null;let o;if(o=i&&r&&!(0,d.tI)(i,r)?(e?t.clone():t).transform(e?i:r,e?r:i):t,e&&n&&void 0!==n.decimals){const e=Math.pow(10,n.decimals),i=function(t){for(let n=0,i=t.length;n<i;++n)t[n]=Math.round(t[n]*e)/e;return t};o===t&&(o=t.clone()),o.applyTransform(i)}return o}function g(t){if("string"==typeof t){const e=JSON.parse(t);return e||null}return null!==t?t:null}const m=class extends p{constructor(){super()}getType(){return"json"}readFeature(t,e){return this.readFeatureFromObject(g(t),this.getReadOptions(t,e))}readFeatures(t,e){return this.readFeaturesFromObject(g(t),this.getReadOptions(t,e))}readFeatureFromObject(t,e){return(0,u.b0)()}readFeaturesFromObject(t,e){return(0,u.b0)()}readGeometry(t,e){return this.readGeometryFromObject(g(t),this.getReadOptions(t,e))}readGeometryFromObject(t,e){return(0,u.b0)()}readProjection(t){return this.readProjectionFromObject(g(t))}readProjectionFromObject(t){return(0,u.b0)()}writeFeature(t,e){return JSON.stringify(this.writeFeatureObject(t,e))}writeFeatureObject(t,e){return(0,u.b0)()}writeFeatures(t,e){return JSON.stringify(this.writeFeaturesObject(t,e))}writeFeaturesObject(t,e){return(0,u.b0)()}writeGeometry(t,e){return JSON.stringify(this.writeGeometryObject(t,e))}writeGeometryObject(t,e){return(0,u.b0)()}};var v=n(5116),y=n(6861),_=n(2748),x=n(9172),b=n(5028),w=n(9783),S=n(2280),T=n(160),M=n(2453);class A extends y.Ay{constructor(t,e,n){if(super(),this.ends_=[],this.maxDelta_=-1,this.maxDeltaRevision_=-1,Array.isArray(t[0]))this.setCoordinates(t,e);else if(void 0!==e&&n)this.setFlatCoordinates(e,t),this.ends_=n;else{let e=this.getLayout();const n=t,i=[],r=[];for(let t=0,o=n.length;t<o;++t){const o=n[t];0===t&&(e=o.getLayout()),(0,w.X$)(i,o.getFlatCoordinates()),r.push(i.length)}this.setFlatCoordinates(e,i),this.ends_=r}}appendLineString(t){this.flatCoordinates?(0,w.X$)(this.flatCoordinates,t.getFlatCoordinates().slice()):this.flatCoordinates=t.getFlatCoordinates().slice(),this.ends_.push(this.flatCoordinates.length),this.changed()}clone(){const t=new A(this.flatCoordinates.slice(),this.layout,this.ends_.slice());return t.applyProperties(this),t}closestPointXY(t,e,n,i){return i<(0,a.Ld)(this.getExtent(),t,e)?i:(this.maxDeltaRevision_!=this.getRevision()&&(this.maxDelta_=Math.sqrt((0,_.HX)(this.flatCoordinates,0,this.ends_,this.stride,0)),this.maxDeltaRevision_=this.getRevision()),(0,_.oW)(this.flatCoordinates,0,this.ends_,this.stride,this.maxDelta_,!1,t,e,n,i))}getCoordinateAtM(t,e,n){return"XYM"!=this.layout&&"XYZM"!=this.layout||0===this.flatCoordinates.length?null:(e=void 0!==e&&e,n=void 0!==n&&n,(0,T.L8)(this.flatCoordinates,0,this.ends_,this.stride,t,e,n))}getCoordinates(){return(0,S.cD)(this.flatCoordinates,0,this.ends_,this.stride)}getEnds(){return this.ends_}getLineString(t){return t<0||this.ends_.length<=t?null:new v.A(this.flatCoordinates.slice(0===t?0:this.ends_[t-1],this.ends_[t]),this.layout)}getLineStrings(){const t=this.flatCoordinates,e=this.ends_,n=this.layout,i=[];let r=0;for(let o=0,a=e.length;o<a;++o){const a=e[o],s=new v.A(t.slice(r,a),n);i.push(s),r=a}return i}getFlatMidpoints(){const t=[],e=this.flatCoordinates;let n=0;const i=this.ends_,r=this.stride;for(let o=0,a=i.length;o<a;++o){const a=i[o],s=(0,T.SH)(e,n,a,r,.5);(0,w.X$)(t,s),n=a}return t}getSimplifiedGeometryInternal(t){const e=[],n=[];return e.length=(0,b.AL)(this.flatCoordinates,0,this.ends_,this.stride,t,e,0,n),new A(e,"XY",n)}getType(){return"MultiLineString"}intersectsExtent(t){return(0,M.fB)(this.flatCoordinates,0,this.ends_,this.stride,t)}setCoordinates(t,e){this.setLayout(e,t,2),this.flatCoordinates||(this.flatCoordinates=[]);const n=(0,x.KG)(this.flatCoordinates,0,t,this.stride,this.ends_);this.flatCoordinates.length=0===n.length?0:n[n.length-1],this.changed()}}const C=A;var I=n(4853),E=n(2878);class k extends y.Ay{constructor(t,e){super(),e&&!Array.isArray(t[0])?this.setFlatCoordinates(e,t):this.setCoordinates(t,e)}appendPoint(t){this.flatCoordinates?(0,w.X$)(this.flatCoordinates,t.getFlatCoordinates()):this.flatCoordinates=t.getFlatCoordinates().slice(),this.changed()}clone(){const t=new k(this.flatCoordinates.slice(),this.layout);return t.applyProperties(this),t}closestPointXY(t,e,n,i){if(i<(0,a.Ld)(this.getExtent(),t,e))return i;const r=this.flatCoordinates,o=this.stride;for(let a=0,s=r.length;a<s;a+=o){const s=(0,E.hG)(t,e,r[a],r[a+1]);if(s<i){i=s;for(let t=0;t<o;++t)n[t]=r[a+t];n.length=o}}return i}getCoordinates(){return(0,S.n2)(this.flatCoordinates,0,this.flatCoordinates.length,this.stride)}getPoint(t){const e=this.flatCoordinates?this.flatCoordinates.length/this.stride:0;return t<0||e<=t?null:new I.A(this.flatCoordinates.slice(t*this.stride,(t+1)*this.stride),this.layout)}getPoints(){const t=this.flatCoordinates,e=this.layout,n=this.stride,i=[];for(let r=0,o=t.length;r<o;r+=n){const o=new I.A(t.slice(r,r+n),e);i.push(o)}return i}getType(){return"MultiPoint"}intersectsExtent(t){const e=this.flatCoordinates,n=this.stride;for(let i=0,r=e.length;i<r;i+=n){const n=e[i],r=e[i+1];if((0,a.Rj)(t,n,r))return!0}return!1}setCoordinates(t,e){this.setLayout(e,t,1),this.flatCoordinates||(this.flatCoordinates=[]),this.flatCoordinates.length=(0,x.z2)(this.flatCoordinates,0,t,this.stride),this.changed()}}const L=k;var D=n(206),P=n(2069),R=n(4888),O=n(3046);var N=n(2966);class F extends y.Ay{constructor(t,e,n){if(super(),this.endss_=[],this.flatInteriorPointsRevision_=-1,this.flatInteriorPoints_=null,this.maxDelta_=-1,this.maxDeltaRevision_=-1,this.orientedRevision_=-1,this.orientedFlatCoordinates_=null,!n&&!Array.isArray(t[0])){let i=this.getLayout();const r=t,o=[],a=[];for(let t=0,e=r.length;t<e;++t){const e=r[t];0===t&&(i=e.getLayout());const n=o.length,s=e.getEnds();for(let t=0,i=s.length;t<i;++t)s[t]+=n;(0,w.X$)(o,e.getFlatCoordinates()),a.push(s)}e=i,t=o,n=a}void 0!==e&&n?(this.setFlatCoordinates(e,t),this.endss_=n):this.setCoordinates(t,e)}appendPolygon(t){let e;if(this.flatCoordinates){const n=this.flatCoordinates.length;(0,w.X$)(this.flatCoordinates,t.getFlatCoordinates()),e=t.getEnds().slice();for(let t=0,i=e.length;t<i;++t)e[t]+=n}else this.flatCoordinates=t.getFlatCoordinates().slice(),e=t.getEnds().slice(),this.endss_.push();this.endss_.push(e),this.changed()}clone(){const t=this.endss_.length,e=new Array(t);for(let i=0;i<t;++i)e[i]=this.endss_[i].slice();const n=new F(this.flatCoordinates.slice(),this.layout,e);return n.applyProperties(this),n}closestPointXY(t,e,n,i){return i<(0,a.Ld)(this.getExtent(),t,e)?i:(this.maxDeltaRevision_!=this.getRevision()&&(this.maxDelta_=Math.sqrt((0,_.c)(this.flatCoordinates,0,this.endss_,this.stride,0)),this.maxDeltaRevision_=this.getRevision()),(0,_.te)(this.getOrientedFlatCoordinates(),0,this.endss_,this.stride,this.maxDelta_,!0,t,e,n,i))}containsXY(t,e){return(0,N.Gd)(this.getOrientedFlatCoordinates(),0,this.endss_,this.stride,t,e)}getArea(){return(0,O.Cs)(this.getOrientedFlatCoordinates(),0,this.endss_,this.stride)}getCoordinates(t){let e;return void 0!==t?(e=this.getOrientedFlatCoordinates().slice(),(0,R.NK)(e,0,this.endss_,this.stride,t)):e=this.flatCoordinates,(0,S.Dz)(e,0,this.endss_,this.stride)}getEndss(){return this.endss_}getFlatInteriorPoints(){if(this.flatInteriorPointsRevision_!=this.getRevision()){const t=function(t,e,n,i){const r=[];let o=(0,a.S5)();for(let s=0,l=n.length;s<l;++s){const l=n[s];o=(0,a.Vy)(t,e,l[0],i),r.push((o[0]+o[2])/2,(o[1]+o[3])/2),e=l[l.length-1]}return r}(this.flatCoordinates,0,this.endss_,this.stride);this.flatInteriorPoints_=(0,P.p)(this.getOrientedFlatCoordinates(),0,this.endss_,this.stride,t),this.flatInteriorPointsRevision_=this.getRevision()}return this.flatInteriorPoints_}getInteriorPoints(){return new L(this.getFlatInteriorPoints().slice(),"XYM")}getOrientedFlatCoordinates(){if(this.orientedRevision_!=this.getRevision()){const t=this.flatCoordinates;(0,R.mb)(t,0,this.endss_,this.stride)?this.orientedFlatCoordinates_=t:(this.orientedFlatCoordinates_=t.slice(),this.orientedFlatCoordinates_.length=(0,R.NK)(this.orientedFlatCoordinates_,0,this.endss_,this.stride)),this.orientedRevision_=this.getRevision()}return this.orientedFlatCoordinates_}getSimplifiedGeometryInternal(t){const e=[],n=[];return e.length=(0,b.sx)(this.flatCoordinates,0,this.endss_,this.stride,Math.sqrt(t),e,0,n),new F(e,"XY",n)}getPolygon(t){if(t<0||this.endss_.length<=t)return null;let e;if(0===t)e=0;else{const n=this.endss_[t-1];e=n[n.length-1]}const n=this.endss_[t].slice(),i=n[n.length-1];if(0!==e)for(let r=0,o=n.length;r<o;++r)n[r]-=e;return new D.Ay(this.flatCoordinates.slice(e,i),this.layout,n)}getPolygons(){const t=this.layout,e=this.flatCoordinates,n=this.endss_,i=[];let r=0;for(let o=0,a=n.length;o<a;++o){const a=n[o].slice(),s=a[a.length-1];if(0!==r)for(let t=0,e=a.length;t<e;++t)a[t]-=r;const l=new D.Ay(e.slice(r,s),t,a);i.push(l),r=s}return i}getType(){return"MultiPolygon"}intersectsExtent(t){return(0,M.Wp)(this.getOrientedFlatCoordinates(),0,this.endss_,this.stride,t)}setCoordinates(t,e){this.setLayout(e,t,3),this.flatCoordinates||(this.flatCoordinates=[]);const n=(0,x.d6)(this.flatCoordinates,0,t,this.stride,this.endss_);if(0===n.length)this.flatCoordinates.length=0;else{const t=n[n.length-1];this.flatCoordinates.length=0===t.length?0:t[t.length-1]}this.changed()}}const B=F;var z=n(3957),G=n(6943);function V(t,e){if(!t)return null;let n;switch(t.type){case"Point":n=function(t){return new I.A(t.coordinates)}(t);break;case"LineString":n=function(t){return new v.A(t.coordinates)}(t);break;case"Polygon":n=function(t){return new D.Ay(t.coordinates)}(t);break;case"MultiPoint":n=function(t){return new L(t.coordinates)}(t);break;case"MultiLineString":n=function(t){return new C(t.coordinates)}(t);break;case"MultiPolygon":n=function(t){return new B(t.coordinates)}(t);break;case"GeometryCollection":n=function(t,e){const n=t.geometries.map((function(t){return V(t,e)}));return new c(n)}(t);break;default:throw new Error("Unsupported GeoJSON type: "+t.type)}return f(n,!1,e)}function j(t,e){const n=(t=f(t,!0,e)).getType();let i;switch(n){case"Point":i=function(t){return{type:"Point",coordinates:t.getCoordinates()}}(t);break;case"LineString":i=function(t){return{type:"LineString",coordinates:t.getCoordinates()}}(t);break;case"Polygon":i=function(t,e){let n;e&&(n=e.rightHanded);return{type:"Polygon",coordinates:t.getCoordinates(n)}}(t,e);break;case"MultiPoint":i=function(t){return{type:"MultiPoint",coordinates:t.getCoordinates()}}(t);break;case"MultiLineString":i=function(t){return{type:"MultiLineString",coordinates:t.getCoordinates()}}(t);break;case"MultiPolygon":i=function(t,e){let n;e&&(n=e.rightHanded);return{type:"MultiPolygon",coordinates:t.getCoordinates(n)}}(t,e);break;case"GeometryCollection":i=function(t,e){e=Object.assign({},e),delete e.featureProjection;const n=t.getGeometriesArray().map((function(t){return j(t,e)}));return{type:"GeometryCollection",geometries:n}}(t,e);break;case"Circle":i={type:"GeometryCollection",geometries:[]};break;default:throw new Error("Unsupported geometry type: "+n)}return i}const H=class extends m{constructor(t){t=t||{},super(),this.dataProjection=(0,d.Jt)(t.dataProjection?t.dataProjection:"EPSG:4326"),t.featureProjection&&(this.defaultFeatureProjection=(0,d.Jt)(t.featureProjection)),this.geometryName_=t.geometryName,this.extractGeometryName_=t.extractGeometryName,this.supportedMediaTypes=["application/geo+json","application/vnd.geo+json"]}readFeatureFromObject(t,e){let n=null;n="Feature"===t.type?t:{type:"Feature",geometry:t,properties:null};const r=V(n.geometry,e),o=new i.A;return this.geometryName_?o.setGeometryName(this.geometryName_):this.extractGeometryName_&&"geometry_name"in n!==void 0&&o.setGeometryName(n.geometry_name),o.setGeometry(r),"id"in n&&o.setId(n.id),n.properties&&o.setProperties(n.properties,!0),o}readFeaturesFromObject(t,e){let n=null;if("FeatureCollection"===t.type){n=[];const i=t.features;for(let t=0,r=i.length;t<r;++t)n.push(this.readFeatureFromObject(i[t],e))}else n=[this.readFeatureFromObject(t,e)];return n}readGeometryFromObject(t,e){return V(t,e)}readProjectionFromObject(t){const e=t.crs;let n;return e?"name"==e.type?n=(0,d.Jt)(e.properties.name):"EPSG"===e.type?n=(0,d.Jt)("EPSG:"+e.properties.code):(0,z.v)(!1,36):n=this.dataProjection,n}writeFeatureObject(t,e){e=this.adaptOptions(e);const n={type:"Feature",geometry:null,properties:null},i=t.getId();if(void 0!==i&&(n.id=i),!t.hasProperties())return n;const r=t.getProperties(),o=t.getGeometry();return o&&(n.geometry=j(o,e),delete r[t.getGeometryName()]),(0,G.p)(r)||(n.properties=r),n}writeFeaturesObject(t,e){e=this.adaptOptions(e);const n=[];for(let i=0,r=t.length;i<r;++i)n.push(this.writeFeatureObject(t[i],e));return{type:"FeatureCollection",features:n}}writeGeometryObject(t,e){return j(t,this.adaptOptions(e))}}},6079:(t,e,n)=>{"use strict";n.d(e,{B4:()=>s,W8:()=>o,rT:()=>r,tV:()=>a});var i=n(9783);function r(){return!0}function o(){return!1}function a(){}function s(t){let e,n,r,o=!1;return function(){const a=Array.prototype.slice.call(arguments);return o&&this===r&&(0,i.aI)(a,n)||(o=!0,r=this,n=a,e=t.apply(this,arguments)),e}}},163:(t,e,n)=>{"use strict";n.d(e,{A:()=>d});var i=n(5191),r=n(6916),o=n(686),a=n(4320),s=n(6859),l=n(6079),h=n(5415);const c=(0,o.vt)();class u extends i.A{constructor(){super(),this.extent_=(0,a.S5)(),this.extentRevision_=-1,this.simplifiedGeometryMaxMinSquaredTolerance=0,this.simplifiedGeometryRevision=0,this.simplifyTransformedInternal=(0,l.B4)((function(t,e,n){if(!n)return this.getSimplifiedGeometry(e);const i=this.clone();return i.applyTransform(n),i.getSimplifiedGeometry(e)}))}simplifyTransformed(t,e){return this.simplifyTransformedInternal(this.getRevision(),t,e)}clone(){return(0,r.b0)()}closestPointXY(t,e,n,i){return(0,r.b0)()}containsXY(t,e){const n=this.getClosestPoint([t,e]);return n[0]===t&&n[1]===e}getClosestPoint(t,e){return e=e||[NaN,NaN],this.closestPointXY(t[0],t[1],e,1/0),e}intersectsCoordinate(t){return this.containsXY(t[0],t[1])}computeExtent(t){return(0,r.b0)()}getExtent(t){if(this.extentRevision_!=this.getRevision()){const t=this.computeExtent(this.extent_);(isNaN(t[0])||isNaN(t[1]))&&(0,a.aZ)(t),this.extentRevision_=this.getRevision()}return(0,a.$u)(this.extent_,t)}rotate(t,e){(0,r.b0)()}scale(t,e,n){(0,r.b0)()}simplify(t){return this.getSimplifiedGeometry(t*t)}getSimplifiedGeometry(t){return(0,r.b0)()}getType(){return(0,r.b0)()}applyTransform(t){(0,r.b0)()}intersectsExtent(t){return(0,r.b0)()}translate(t,e){(0,r.b0)()}transform(t,e){const n=(0,s.Jt)(t),i="tile-pixels"==n.getUnits()?function(t,i,r){const l=n.getExtent(),u=n.getWorldExtent(),d=(0,a.Oq)(u)/(0,a.Oq)(l);return(0,o.Zz)(c,u[0],u[3],d,-d,0,0,0),(0,h.Rc)(t,0,t.length,r,c,i),(0,s.RG)(n,e)(t,i,r)}:(0,s.RG)(n,e);return this.applyTransform(i),this}}const d=u},5116:(t,e,n)=>{"use strict";n.d(e,{A:()=>g});var i=n(6861),r=n(2748),o=n(4320),a=n(9172),s=n(5028),l=n(9783),h=n(1381),c=n(2280),u=n(160),d=n(2453),p=n(7175);class f extends i.Ay{constructor(t,e){super(),this.flatMidpoint_=null,this.flatMidpointRevision_=-1,this.maxDelta_=-1,this.maxDeltaRevision_=-1,void 0===e||Array.isArray(t[0])?this.setCoordinates(t,e):this.setFlatCoordinates(e,t)}appendCoordinate(t){this.flatCoordinates?(0,l.X$)(this.flatCoordinates,t):this.flatCoordinates=t.slice(),this.changed()}clone(){const t=new f(this.flatCoordinates.slice(),this.layout);return t.applyProperties(this),t}closestPointXY(t,e,n,i){return i<(0,o.Ld)(this.getExtent(),t,e)?i:(this.maxDeltaRevision_!=this.getRevision()&&(this.maxDelta_=Math.sqrt((0,r.MD)(this.flatCoordinates,0,this.flatCoordinates.length,this.stride,0)),this.maxDeltaRevision_=this.getRevision()),(0,r.n)(this.flatCoordinates,0,this.flatCoordinates.length,this.stride,this.maxDelta_,!1,t,e,n,i))}forEachSegment(t){return(0,h.j)(this.flatCoordinates,0,this.flatCoordinates.length,this.stride,t)}getCoordinateAtM(t,e){return"XYM"!=this.layout&&"XYZM"!=this.layout?null:(e=void 0!==e&&e,(0,u.gr)(this.flatCoordinates,0,this.flatCoordinates.length,this.stride,t,e))}getCoordinates(){return(0,c.n2)(this.flatCoordinates,0,this.flatCoordinates.length,this.stride)}getCoordinateAt(t,e){return(0,u.SH)(this.flatCoordinates,0,this.flatCoordinates.length,this.stride,t,e,this.stride)}getLength(){return(0,p.k)(this.flatCoordinates,0,this.flatCoordinates.length,this.stride)}getFlatMidpoint(){return this.flatMidpointRevision_!=this.getRevision()&&(this.flatMidpoint_=this.getCoordinateAt(.5,this.flatMidpoint_),this.flatMidpointRevision_=this.getRevision()),this.flatMidpoint_}getSimplifiedGeometryInternal(t){const e=[];return e.length=(0,s.P4)(this.flatCoordinates,0,this.flatCoordinates.length,this.stride,t,e,0),new f(e,"XY")}getType(){return"LineString"}intersectsExtent(t){return(0,d.gp)(this.flatCoordinates,0,this.flatCoordinates.length,this.stride,t)}setCoordinates(t,e){this.setLayout(e,t,1),this.flatCoordinates||(this.flatCoordinates=[]),this.flatCoordinates.length=(0,a.z2)(this.flatCoordinates,0,t,this.stride),this.changed()}}const g=f},4853:(t,e,n)=>{"use strict";n.d(e,{A:()=>l});var i=n(6861),r=n(4320),o=n(9172),a=n(2878);class s extends i.Ay{constructor(t,e){super(),this.setCoordinates(t,e)}clone(){const t=new s(this.flatCoordinates.slice(),this.layout);return t.applyProperties(this),t}closestPointXY(t,e,n,i){const r=this.flatCoordinates,o=(0,a.hG)(t,e,r[0],r[1]);if(o<i){const t=this.stride;for(let e=0;e<t;++e)n[e]=r[e];return n.length=t,o}return i}getCoordinates(){return this.flatCoordinates?this.flatCoordinates.slice():[]}computeExtent(t){return(0,r.dP)(this.flatCoordinates,t)}getType(){return"Point"}intersectsExtent(t){return(0,r.Rj)(t,this.flatCoordinates[0],this.flatCoordinates[1])}setCoordinates(t,e){this.setLayout(e,t,0),this.flatCoordinates||(this.flatCoordinates=[]),this.flatCoordinates.length=(0,o._n)(this.flatCoordinates,0,t,this.stride),this.changed()}}const l=s},206:(t,e,n)=>{"use strict";n.d(e,{kj:()=>b,Ay:()=>x,VY:()=>w});var i=n(6861),r=n(2748),o=n(4320),a=n(9172),s=n(5028),l=n(2280),h=n(3046);class c extends i.Ay{constructor(t,e){super(),this.maxDelta_=-1,this.maxDeltaRevision_=-1,void 0===e||Array.isArray(t[0])?this.setCoordinates(t,e):this.setFlatCoordinates(e,t)}clone(){return new c(this.flatCoordinates.slice(),this.layout)}closestPointXY(t,e,n,i){return i<(0,o.Ld)(this.getExtent(),t,e)?i:(this.maxDeltaRevision_!=this.getRevision()&&(this.maxDelta_=Math.sqrt((0,r.MD)(this.flatCoordinates,0,this.flatCoordinates.length,this.stride,0)),this.maxDeltaRevision_=this.getRevision()),(0,r.n)(this.flatCoordinates,0,this.flatCoordinates.length,this.stride,this.maxDelta_,!0,t,e,n,i))}getArea(){return(0,h.eN)(this.flatCoordinates,0,this.flatCoordinates.length,this.stride)}getCoordinates(){return(0,l.n2)(this.flatCoordinates,0,this.flatCoordinates.length,this.stride)}getSimplifiedGeometryInternal(t){const e=[];return e.length=(0,s.P4)(this.flatCoordinates,0,this.flatCoordinates.length,this.stride,t,e,0),new c(e,"XY")}getType(){return"LinearRing"}intersectsExtent(t){return!1}setCoordinates(t,e){this.setLayout(e,t,1),this.flatCoordinates||(this.flatCoordinates=[]),this.flatCoordinates.length=(0,a.z2)(this.flatCoordinates,0,t,this.stride),this.changed()}}const u=c;var d=n(4853),p=n(9783),f=n(2069),g=n(2453),m=n(4888),v=n(2966),y=n(4913);class _ extends i.Ay{constructor(t,e,n){super(),this.ends_=[],this.flatInteriorPointRevision_=-1,this.flatInteriorPoint_=null,this.maxDelta_=-1,this.maxDeltaRevision_=-1,this.orientedRevision_=-1,this.orientedFlatCoordinates_=null,void 0!==e&&n?(this.setFlatCoordinates(e,t),this.ends_=n):this.setCoordinates(t,e)}appendLinearRing(t){this.flatCoordinates?(0,p.X$)(this.flatCoordinates,t.getFlatCoordinates()):this.flatCoordinates=t.getFlatCoordinates().slice(),this.ends_.push(this.flatCoordinates.length),this.changed()}clone(){const t=new _(this.flatCoordinates.slice(),this.layout,this.ends_.slice());return t.applyProperties(this),t}closestPointXY(t,e,n,i){return i<(0,o.Ld)(this.getExtent(),t,e)?i:(this.maxDeltaRevision_!=this.getRevision()&&(this.maxDelta_=Math.sqrt((0,r.HX)(this.flatCoordinates,0,this.ends_,this.stride,0)),this.maxDeltaRevision_=this.getRevision()),(0,r.oW)(this.flatCoordinates,0,this.ends_,this.stride,this.maxDelta_,!0,t,e,n,i))}containsXY(t,e){return(0,v.zb)(this.getOrientedFlatCoordinates(),0,this.ends_,this.stride,t,e)}getArea(){return(0,h.PK)(this.getOrientedFlatCoordinates(),0,this.ends_,this.stride)}getCoordinates(t){let e;return void 0!==t?(e=this.getOrientedFlatCoordinates().slice(),(0,m.ug)(e,0,this.ends_,this.stride,t)):e=this.flatCoordinates,(0,l.cD)(e,0,this.ends_,this.stride)}getEnds(){return this.ends_}getFlatInteriorPoint(){if(this.flatInteriorPointRevision_!=this.getRevision()){const t=(0,o.q1)(this.getExtent());this.flatInteriorPoint_=(0,f.J)(this.getOrientedFlatCoordinates(),0,this.ends_,this.stride,t,0),this.flatInteriorPointRevision_=this.getRevision()}return this.flatInteriorPoint_}getInteriorPoint(){return new d.A(this.getFlatInteriorPoint(),"XYM")}getLinearRingCount(){return this.ends_.length}getLinearRing(t){return t<0||this.ends_.length<=t?null:new u(this.flatCoordinates.slice(0===t?0:this.ends_[t-1],this.ends_[t]),this.layout)}getLinearRings(){const t=this.layout,e=this.flatCoordinates,n=this.ends_,i=[];let r=0;for(let o=0,a=n.length;o<a;++o){const a=n[o],s=new u(e.slice(r,a),t);i.push(s),r=a}return i}getOrientedFlatCoordinates(){if(this.orientedRevision_!=this.getRevision()){const t=this.flatCoordinates;(0,m.PA)(t,0,this.ends_,this.stride)?this.orientedFlatCoordinates_=t:(this.orientedFlatCoordinates_=t.slice(),this.orientedFlatCoordinates_.length=(0,m.ug)(this.orientedFlatCoordinates_,0,this.ends_,this.stride)),this.orientedRevision_=this.getRevision()}return this.orientedFlatCoordinates_}getSimplifiedGeometryInternal(t){const e=[],n=[];return e.length=(0,s.Hg)(this.flatCoordinates,0,this.ends_,this.stride,Math.sqrt(t),e,0,n),new _(e,"XY",n)}getType(){return"Polygon"}intersectsExtent(t){return(0,g.HT)(this.getOrientedFlatCoordinates(),0,this.ends_,this.stride,t)}setCoordinates(t,e){this.setLayout(e,t,2),this.flatCoordinates||(this.flatCoordinates=[]);const n=(0,a.KG)(this.flatCoordinates,0,t,this.stride,this.ends_);this.flatCoordinates.length=0===n.length?0:n[n.length-1],this.changed()}}const x=_;function b(t,e,n,i){n=n||32;const r=[];for(let o=0;o<n;++o)(0,p.X$)(r,(0,y.cY)(t,e,2*Math.PI*o/n,i));return r.push(r[0],r[1]),new _(r,"XY",[r.length])}function w(t){if((0,o.Im)(t))throw new Error("Cannot create polygon from empty extent");const e=t[0],n=t[1],i=t[2],r=t[3],a=[e,n,e,r,i,r,i,n,e,n];return new _(a,"XY",[a.length])}},6861:(t,e,n)=>{"use strict";n.d(e,{Ay:()=>c,v7:()=>h});var i=n(163),r=n(6916),o=n(4320),a=n(5415);class s extends i.A{constructor(){super(),this.layout="XY",this.stride=2,this.flatCoordinates=null}computeExtent(t){return(0,o.Vy)(this.flatCoordinates,0,this.flatCoordinates.length,this.stride,t)}getCoordinates(){return(0,r.b0)()}getFirstCoordinate(){return this.flatCoordinates.slice(0,this.stride)}getFlatCoordinates(){return this.flatCoordinates}getLastCoordinate(){return this.flatCoordinates.slice(this.flatCoordinates.length-this.stride)}getLayout(){return this.layout}getSimplifiedGeometry(t){if(this.simplifiedGeometryRevision!==this.getRevision()&&(this.simplifiedGeometryMaxMinSquaredTolerance=0,this.simplifiedGeometryRevision=this.getRevision()),t<0||0!==this.simplifiedGeometryMaxMinSquaredTolerance&&t<=this.simplifiedGeometryMaxMinSquaredTolerance)return this;const e=this.getSimplifiedGeometryInternal(t);return e.getFlatCoordinates().length<this.flatCoordinates.length?e:(this.simplifiedGeometryMaxMinSquaredTolerance=t,this)}getSimplifiedGeometryInternal(t){return this}getStride(){return this.stride}setFlatCoordinates(t,e){this.stride=l(t),this.layout=t,this.flatCoordinates=e}setCoordinates(t,e){(0,r.b0)()}setLayout(t,e,n){let i;if(t)i=l(t);else{for(let t=0;t<n;++t){if(0===e.length)return this.layout="XY",void(this.stride=2);e=e[0]}i=e.length,t=function(t){let e;2==t?e="XY":3==t?e="XYZ":4==t&&(e="XYZM");return e}(i)}this.layout=t,this.stride=i}applyTransform(t){this.flatCoordinates&&(t(this.flatCoordinates,this.flatCoordinates,this.stride),this.changed())}rotate(t,e){const n=this.getFlatCoordinates();if(n){const i=this.getStride();(0,a.e$)(n,0,n.length,i,t,e,n),this.changed()}}scale(t,e,n){void 0===e&&(e=t),n||(n=(0,o.q1)(this.getExtent()));const i=this.getFlatCoordinates();if(i){const r=this.getStride();(0,a.hs)(i,0,i.length,r,t,e,n,i),this.changed()}}translate(t,e){const n=this.getFlatCoordinates();if(n){const i=this.getStride();(0,a.Tl)(n,0,n.length,i,t,e,n),this.changed()}}}function l(t){let e;return"XY"==t?e=2:"XYZ"==t||"XYM"==t?e=3:"XYZM"==t&&(e=4),e}function h(t,e,n){const i=t.getFlatCoordinates();if(!i)return null;const r=t.getStride();return(0,a.Rc)(i,0,i.length,r,e,n)}const c=s},3046:(t,e,n)=>{"use strict";function i(t,e,n,i){let r=0,o=t[n-i],a=t[n-i+1];for(;e<n;e+=i){const n=t[e],i=t[e+1];r+=a*n-o*i,o=n,a=i}return r/2}function r(t,e,n,r){let o=0;for(let a=0,s=n.length;a<s;++a){const s=n[a];o+=i(t,e,s,r),e=s}return o}function o(t,e,n,i){let o=0;for(let a=0,s=n.length;a<s;++a){const s=n[a];o+=r(t,e,s,i),e=s[s.length-1]}return o}n.d(e,{Cs:()=>o,PK:()=>r,eN:()=>i})},2748:(t,e,n)=>{"use strict";n.d(e,{HX:()=>a,MD:()=>o,c:()=>s,n:()=>l,oW:()=>h,te:()=>c});var i=n(2878);function r(t,e,n,r,o,a,s){const l=t[e],h=t[e+1],c=t[n]-l,u=t[n+1]-h;let d;if(0===c&&0===u)d=e;else{const p=((o-l)*c+(a-h)*u)/(c*c+u*u);if(p>1)d=n;else{if(p>0){for(let o=0;o<r;++o)s[o]=(0,i.Cc)(t[e+o],t[n+o],p);return void(s.length=r)}d=e}}for(let i=0;i<r;++i)s[i]=t[d+i];s.length=r}function o(t,e,n,r,o){let a=t[e],s=t[e+1];for(e+=r;e<n;e+=r){const n=t[e],r=t[e+1],l=(0,i.hG)(a,s,n,r);l>o&&(o=l),a=n,s=r}return o}function a(t,e,n,i,r){for(let a=0,s=n.length;a<s;++a){const s=n[a];r=o(t,e,s,i,r),e=s}return r}function s(t,e,n,i,r){for(let o=0,s=n.length;o<s;++o){const s=n[o];r=a(t,e,s,i,r),e=s[s.length-1]}return r}function l(t,e,n,o,a,s,l,h,c,u,d){if(e==n)return u;let p,f;if(0===a){if(f=(0,i.hG)(l,h,t[e],t[e+1]),f<u){for(p=0;p<o;++p)c[p]=t[e+p];return c.length=o,f}return u}d=d||[NaN,NaN];let g=e+o;for(;g<n;)if(r(t,g-o,g,o,l,h,d),f=(0,i.hG)(l,h,d[0],d[1]),f<u){for(u=f,p=0;p<o;++p)c[p]=d[p];c.length=o,g+=o}else g+=o*Math.max((Math.sqrt(f)-Math.sqrt(u))/a|0,1);if(s&&(r(t,n-o,e,o,l,h,d),f=(0,i.hG)(l,h,d[0],d[1]),f<u)){for(u=f,p=0;p<o;++p)c[p]=d[p];c.length=o}return u}function h(t,e,n,i,r,o,a,s,h,c,u){u=u||[NaN,NaN];for(let d=0,p=n.length;d<p;++d){const p=n[d];c=l(t,e,p,i,r,o,a,s,h,c,u),e=p}return c}function c(t,e,n,i,r,o,a,s,l,c,u){u=u||[NaN,NaN];for(let d=0,p=n.length;d<p;++d){const p=n[d];c=h(t,e,p,i,r,o,a,s,l,c,u),e=p[p.length-1]}return c}},2966:(t,e,n)=>{"use strict";n.d(e,{Gd:()=>s,a_:()=>o,t7:()=>r,zb:()=>a});var i=n(4320);function r(t,e,n,r,a){return!(0,i.sB)(a,(function(i){return!o(t,e,n,r,i[0],i[1])}))}function o(t,e,n,i,r,o){let a=0,s=t[n-i],l=t[n-i+1];for(;e<n;e+=i){const n=t[e],i=t[e+1];l<=o?i>o&&(n-s)*(o-l)-(r-s)*(i-l)>0&&a++:i<=o&&(n-s)*(o-l)-(r-s)*(i-l)<0&&a--,s=n,l=i}return 0!==a}function a(t,e,n,i,r,a){if(0===n.length)return!1;if(!o(t,e,n[0],i,r,a))return!1;for(let s=1,l=n.length;s<l;++s)if(o(t,n[s-1],n[s],i,r,a))return!1;return!0}function s(t,e,n,i,r,o){if(0===n.length)return!1;for(let s=0,l=n.length;s<l;++s){const l=n[s];if(a(t,e,l,i,r,o))return!0;e=l[l.length-1]}return!1}},9172:(t,e,n)=>{"use strict";function i(t,e,n,i){for(let r=0,o=n.length;r<o;++r)t[e++]=n[r];return e}function r(t,e,n,i){for(let r=0,o=n.length;r<o;++r){const o=n[r];for(let n=0;n<i;++n)t[e++]=o[n]}return e}function o(t,e,n,i,o){o=o||[];let a=0;for(let s=0,l=n.length;s<l;++s){const l=r(t,e,n[s],i);o[a++]=l,e=l}return o.length=a,o}function a(t,e,n,i,r){r=r||[];let a=0;for(let s=0,l=n.length;s<l;++s){const l=o(t,e,n[s],i,r[a]);0===l.length&&(l[0]=e),r[a++]=l,e=l[l.length-1]}return r.length=a,r}n.d(e,{KG:()=>o,_n:()=>i,d6:()=>a,z2:()=>r})},2280:(t,e,n)=>{"use strict";function i(t,e,n,i,r){r=void 0!==r?r:[];let o=0;for(let a=e;a<n;a+=i)r[o++]=t.slice(a,a+i);return r.length=o,r}function r(t,e,n,r,o){o=void 0!==o?o:[];let a=0;for(let s=0,l=n.length;s<l;++s){const l=n[s];o[a++]=i(t,e,l,r,o[a]),e=l}return o.length=a,o}function o(t,e,n,i,o){o=void 0!==o?o:[];let a=0;for(let s=0,l=n.length;s<l;++s){const l=n[s];o[a++]=1===l.length&&l[0]===e?[]:r(t,e,l,i,o[a]),e=l[l.length-1]}return o.length=a,o}n.d(e,{Dz:()=>o,cD:()=>r,n2:()=>i})},2069:(t,e,n)=>{"use strict";n.d(e,{J:()=>o,p:()=>a});var i=n(9783),r=n(2966);function o(t,e,n,o,a,s,l){let h,c,u,d,p,f,g;const m=a[s+1],v=[];for(let i=0,r=n.length;i<r;++i){const r=n[i];for(d=t[r-o],f=t[r-o+1],h=e;h<r;h+=o)p=t[h],g=t[h+1],(m<=f&&g<=m||f<=m&&m<=g)&&(u=(m-f)/(g-f)*(p-d)+d,v.push(u)),d=p,f=g}let y=NaN,_=-1/0;for(v.sort(i.V_),d=v[0],h=1,c=v.length;h<c;++h){p=v[h];const i=Math.abs(p-d);i>_&&(u=(d+p)/2,(0,r.zb)(t,e,n,o,u,m)&&(y=u,_=i)),d=p}return isNaN(y)&&(y=a[s]),l?(l.push(y,m,_),l):[y,m,_]}function a(t,e,n,i,r){let a=[];for(let s=0,l=n.length;s<l;++s){const l=n[s];a=o(t,e,l,i,r,2*s,a),e=l[l.length-1]}return a}},160:(t,e,n)=>{"use strict";n.d(e,{L8:()=>s,SH:()=>o,gr:()=>a});var i=n(9783),r=n(2878);function o(t,e,n,o,a,s,l){let h,c;const u=(n-e)/o;if(1===u)h=e;else if(2===u)h=e,c=a;else if(0!==u){let r=t[e],s=t[e+1],l=0;const u=[0];for(let i=e+o;i<n;i+=o){const e=t[i],n=t[i+1];l+=Math.sqrt((e-r)*(e-r)+(n-s)*(n-s)),u.push(l),r=e,s=n}const d=a*l,p=(0,i.El)(u,d);p<0?(c=(d-u[-p-2])/(u[-p-1]-u[-p-2]),h=e+(-p-2)*o):h=e+p*o}l=l>1?l:2,s=s||new Array(l);for(let i=0;i<l;++i)s[i]=void 0===h?NaN:void 0===c?t[h+i]:(0,r.Cc)(t[h+i],t[h+o+i],c);return s}function a(t,e,n,i,o,a){if(n==e)return null;let s;if(o<t[e+i-1])return a?(s=t.slice(e,e+i),s[i-1]=o,s):null;if(t[n-1]<o)return a?(s=t.slice(n-i,n),s[i-1]=o,s):null;if(o==t[e+i-1])return t.slice(e,e+i);let l=e/i,h=n/i;for(;l<h;){const e=l+h>>1;o<t[(e+1)*i-1]?h=e:l=e+1}const c=t[l*i-1];if(o==c)return t.slice((l-1)*i,(l-1)*i+i);const u=(o-c)/(t[(l+1)*i-1]-c);s=[];for(let d=0;d<i-1;++d)s.push((0,r.Cc)(t[(l-1)*i+d],t[l*i+d],u));return s.push(o),s}function s(t,e,n,i,r,o,s){if(s)return a(t,e,n[n.length-1],i,r,o);let l;if(r<t[i-1])return o?(l=t.slice(0,i),l[i-1]=r,l):null;if(t[t.length-1]<r)return o?(l=t.slice(t.length-i),l[i-1]=r,l):null;for(let h=0,c=n.length;h<c;++h){const o=n[h];if(e!=o){if(r<t[e+i-1])return null;if(r<=t[o-1])return a(t,e,o,i,r,!1);e=o}}return null}},2453:(t,e,n)=>{"use strict";n.d(e,{HT:()=>h,Wp:()=>c,fB:()=>s,gp:()=>a,sj:()=>l});var i=n(4320),r=n(1381),o=n(2966);function a(t,e,n,o,a){const s=(0,i.R8)((0,i.S5)(),t,e,n,o);return!!(0,i.HY)(a,s)&&(!!(0,i.ms)(a,s)||(s[0]>=a[0]&&s[2]<=a[2]||(s[1]>=a[1]&&s[3]<=a[3]||(0,r.j)(t,e,n,o,(function(t,e){return(0,i.Mx)(a,t,e)})))))}function s(t,e,n,i,r){for(let o=0,s=n.length;o<s;++o){if(a(t,e,n[o],i,r))return!0;e=n[o]}return!1}function l(t,e,n,i,r){return!!a(t,e,n,i,r)||(!!(0,o.a_)(t,e,n,i,r[0],r[1])||(!!(0,o.a_)(t,e,n,i,r[0],r[3])||(!!(0,o.a_)(t,e,n,i,r[2],r[1])||!!(0,o.a_)(t,e,n,i,r[2],r[3]))))}function h(t,e,n,i,r){if(!l(t,e,n[0],i,r))return!1;if(1===n.length)return!0;for(let s=1,l=n.length;s<l;++s)if((0,o.t7)(t,n[s-1],n[s],i,r)&&!a(t,n[s-1],n[s],i,r))return!1;return!0}function c(t,e,n,i,r){for(let o=0,a=n.length;o<a;++o){const a=n[o];if(h(t,e,a,i,r))return!0;e=a[a.length-1]}return!1}},7175:(t,e,n)=>{"use strict";function i(t,e,n,i){let r=t[e],o=t[e+1],a=0;for(let s=e+i;s<n;s+=i){const e=t[s],n=t[s+1];a+=Math.sqrt((e-r)*(e-r)+(n-o)*(n-o)),r=e,o=n}return a}n.d(e,{k:()=>i})},4888:(t,e,n)=>{"use strict";function i(t,e,n,i){for(;e<n-i;){for(let r=0;r<i;++r){const o=t[e+r];t[e+r]=t[n-i+r],t[n-i+r]=o}e+=i,n-=i}}function r(t,e,n,i){let r=0,o=t[n-i],a=t[n-i+1];for(;e<n;e+=i){const n=t[e],i=t[e+1];r+=(n-o)*(i+a),o=n,a=i}return 0===r?void 0:r>0}function o(t,e,n,i,o){o=void 0!==o&&o;for(let a=0,s=n.length;a<s;++a){const s=n[a],l=r(t,e,s,i);if(0===a){if(o&&l||!o&&!l)return!1}else if(o&&!l||!o&&l)return!1;e=s}return!0}function a(t,e,n,i,r){for(let a=0,s=n.length;a<s;++a){const s=n[a];if(!o(t,e,s,i,r))return!1;s.length&&(e=s[s.length-1])}return!0}function s(t,e,n,o,a){a=void 0!==a&&a;for(let s=0,l=n.length;s<l;++s){const l=n[s],h=r(t,e,l,o);(0===s?a&&h||!a&&!h:a&&!h||!a&&h)&&i(t,e,l,o),e=l}return e}function l(t,e,n,i,r){for(let o=0,a=n.length;o<a;++o)e=s(t,e,n[o],i,r);return e}n.d(e,{PA:()=>o,mb:()=>a,ug:()=>s,NK:()=>l})},1381:(t,e,n)=>{"use strict";function i(t,e,n,i,r){let o;for(e+=i;e<n;e+=i)if(o=r(t.slice(e-i,e),t.slice(e,e+i)),o)return o;return!1}n.d(e,{j:()=>i})},5028:(t,e,n)=>{"use strict";n.d(e,{AL:()=>o,Hg:()=>l,P4:()=>r,n$:()=>a,sx:()=>h});var i=n(2878);function r(t,e,n,r,o,a,s){const l=(n-e)/r;if(l<3){for(;e<n;e+=r)a[s++]=t[e],a[s++]=t[e+1];return s}const h=new Array(l);h[0]=1,h[l-1]=1;const c=[e,n-r];let u=0;for(;c.length>0;){const n=c.pop(),a=c.pop();let s=0;const l=t[a],d=t[a+1],p=t[n],f=t[n+1];for(let e=a+r;e<n;e+=r){const n=t[e],r=t[e+1],o=(0,i.Q1)(n,r,l,d,p,f);o>s&&(u=e,s=o)}s>o&&(h[(u-e)/r]=1,a+r<u&&c.push(a,u),u+r<n&&c.push(u,n))}for(let i=0;i<l;++i)h[i]&&(a[s++]=t[e+i*r],a[s++]=t[e+i*r+1]);return s}function o(t,e,n,i,o,a,s,l){for(let h=0,c=n.length;h<c;++h){const c=n[h];s=r(t,e,c,i,o,a,s),l.push(s),e=c}return s}function a(t,e){return e*Math.round(t/e)}function s(t,e,n,i,r,o,s){if(e==n)return s;let l,h,c=a(t[e],r),u=a(t[e+1],r);e+=i,o[s++]=c,o[s++]=u;do{if(l=a(t[e],r),h=a(t[e+1],r),(e+=i)==n)return o[s++]=l,o[s++]=h,s}while(l==c&&h==u);for(;e<n;){const n=a(t[e],r),d=a(t[e+1],r);if(e+=i,n==l&&d==h)continue;const p=l-c,f=h-u,g=n-c,m=d-u;p*m==f*g&&(p<0&&g<p||p==g||p>0&&g>p)&&(f<0&&m<f||f==m||f>0&&m>f)?(l=n,h=d):(o[s++]=l,o[s++]=h,c=l,u=h,l=n,h=d)}return o[s++]=l,o[s++]=h,s}function l(t,e,n,i,r,o,a,l){for(let h=0,c=n.length;h<c;++h){const c=n[h];a=s(t,e,c,i,r,o,a),l.push(a),e=c}return a}function h(t,e,n,i,r,o,a,s){for(let h=0,c=n.length;h<c;++h){const c=n[h],u=[];a=l(t,e,c,i,r,o,a,u),s.push(u),e=c[c.length-1]}return a}},5415:(t,e,n)=>{"use strict";function i(t,e,n,i,r,o){o=o||[];let a=0;for(let s=e;s<n;s+=i){const e=t[s],n=t[s+1];o[a++]=r[0]*e+r[2]*n+r[4],o[a++]=r[1]*e+r[3]*n+r[5]}return o&&o.length!=a&&(o.length=a),o}function r(t,e,n,i,r,o,a){a=a||[];const s=Math.cos(r),l=Math.sin(r),h=o[0],c=o[1];let u=0;for(let d=e;d<n;d+=i){const e=t[d]-h,n=t[d+1]-c;a[u++]=h+e*s-n*l,a[u++]=c+e*l+n*s;for(let r=d+2;r<d+i;++r)a[u++]=t[r]}return a&&a.length!=u&&(a.length=u),a}function o(t,e,n,i,r,o,a,s){s=s||[];const l=a[0],h=a[1];let c=0;for(let u=e;u<n;u+=i){const e=t[u]-l,n=t[u+1]-h;s[c++]=l+r*e,s[c++]=h+o*n;for(let r=u+2;r<u+i;++r)s[c++]=t[r]}return s&&s.length!=c&&(s.length=c),s}function a(t,e,n,i,r,o,a){a=a||[];let s=0;for(let l=e;l<n;l+=i){a[s++]=t[l]+r,a[s++]=t[l+1]+o;for(let e=l+2;e<l+i;++e)a[s++]=t[e]}return a&&a.length!=s&&(a.length=s),a}n.d(e,{Rc:()=>i,Tl:()=>a,e$:()=>r,hs:()=>o})},6306:(t,e,n)=>{"use strict";n.d(e,{DT:()=>h,FT:()=>c,Wl:()=>l,_p:()=>r,cr:()=>s,ew:()=>a,j:()=>o});const i="undefined"!=typeof navigator&&void 0!==navigator.userAgent?navigator.userAgent.toLowerCase():"",r=i.includes("firefox"),o=(i.includes("safari")&&!i.includes("chrom")&&(i.includes("version/15.4")||/cpu (os|iphone os) 15_4 like mac os x/.test(i)),i.includes("webkit")&&!i.includes("edge")),a=i.includes("macintosh"),s="undefined"!=typeof devicePixelRatio?devicePixelRatio:1,l="undefined"!=typeof WorkerGlobalScope&&"undefined"!=typeof OffscreenCanvas&&self instanceof WorkerGlobalScope,h="undefined"!=typeof Image&&Image.prototype.decode,c=function(){let t=!1;try{const e=Object.defineProperty({},"passive",{get:function(){t=!0}});window.addEventListener("_",null,e),window.removeEventListener("_",null,e)}catch(e){}return t}()},247:(t,e,n)=>{"use strict";n.r(e),n.d(e,{AssertionError:()=>i.A,Collection:()=>r.A,Disposable:()=>o.A,Feature:()=>a.A,Geolocation:()=>M,Graticule:()=>W,Image:()=>U.A,ImageBase:()=>q.A,ImageCanvas:()=>Z,ImageTile:()=>$.A,Kinetic:()=>K.A,Map:()=>J.A,MapBrowserEvent:()=>Q.A,MapBrowserEventHandler:()=>tt.A,MapEvent:()=>et.A,Object:()=>l.A,Observable:()=>nt.A,Overlay:()=>pt,Tile:()=>ft.A,TileCache:()=>gt.A,TileQueue:()=>mt.A,TileRange:()=>vt.A,VERSION:()=>yt.xv,VectorRenderTile:()=>bt,VectorTile:()=>Tt,View:()=>Mt.Ay,getUid:()=>yt.v6});var i=n(8554),r=n(5616),o=n(7034),a=n(1116),s=n(5026),l=n(5191),h=n(206),c=n(6859),u=n(2878);const d="accuracy",p="accuracyGeometry",f="altitude",g="altitudeAccuracy",m="heading",v="position",y="projection",_="speed",x="tracking",b="trackingOptions",w="error";class S extends s.Ay{constructor(t){super(w),this.code=t.code,this.message=t.message}}class T extends l.A{constructor(t){super(),this.on,this.once,this.un,t=t||{},this.position_=null,this.transform_=c.R6,this.watchId_=void 0,this.addChangeListener(y,this.handleProjectionChanged_),this.addChangeListener(x,this.handleTrackingChanged_),void 0!==t.projection&&this.setProjection(t.projection),void 0!==t.trackingOptions&&this.setTrackingOptions(t.trackingOptions),this.setTracking(void 0!==t.tracking&&t.tracking)}disposeInternal(){this.setTracking(!1),super.disposeInternal()}handleProjectionChanged_(){const t=this.getProjection();t&&(this.transform_=(0,c.FO)((0,c.Jt)("EPSG:4326"),t),this.position_&&this.set(v,this.transform_(this.position_)))}handleTrackingChanged_(){if("geolocation"in navigator){const t=this.getTracking();t&&void 0===this.watchId_?this.watchId_=navigator.geolocation.watchPosition(this.positionChange_.bind(this),this.positionError_.bind(this),this.getTrackingOptions()):t||void 0===this.watchId_||(navigator.geolocation.clearWatch(this.watchId_),this.watchId_=void 0)}}positionChange_(t){const e=t.coords;this.set(d,e.accuracy),this.set(f,null===e.altitude?void 0:e.altitude),this.set(g,null===e.altitudeAccuracy?void 0:e.altitudeAccuracy),this.set(m,null===e.heading?void 0:(0,u.eh)(e.heading)),this.position_?(this.position_[0]=e.longitude,this.position_[1]=e.latitude):this.position_=[e.longitude,e.latitude];const n=this.transform_(this.position_);this.set(v,n.slice()),this.set(_,null===e.speed?void 0:e.speed);const i=(0,h.kj)(this.position_,e.accuracy);i.applyTransform(this.transform_),this.set(p,i),this.changed()}positionError_(t){this.dispatchEvent(new S(t))}getAccuracy(){return this.get(d)}getAccuracyGeometry(){return this.get(p)||null}getAltitude(){return this.get(f)}getAltitudeAccuracy(){return this.get(g)}getHeading(){return this.get(m)}getPosition(){return this.get(v)}getProjection(){return this.get(y)}getSpeed(){return this.get(_)}getTracking(){return this.get(x)}getTrackingOptions(){return this.get(b)}setProjection(t){this.set(y,(0,c.Jt)(t))}setTracking(t){this.set(x,t)}setTrackingOptions(t){this.set(b,t)}}const M=T;var A=n(4431),C=n(9091),I=n(5116),E=n(4853),k=n(3698),L=n(6365),D=n(8981),P=n(5209),R=n(9255),O=n(4320),N=n(6234),F=n(8774),B=n(686),z=n(9841);function G(t,e,n){const i=[];let r=t(0),o=t(1),a=e(r),s=e(o);const l=[o,r],h=[s,a],c=[1,0],d={};let p,f,g,m,v,y,_=1e5;for(;--_>0&&c.length>0;)g=c.pop(),r=l.pop(),a=h.pop(),y=g.toString(),y in d||(i.push(a[0],a[1]),d[y]=!0),m=c.pop(),o=l.pop(),s=h.pop(),v=(g+m)/2,p=t(v),f=e(p),(0,u.Q1)(f[0],f[1],a[0],a[1],s[0],s[1])<n?(i.push(s[0],s[1]),y=m.toString(),d[y]=!0):(c.push(m,v,v,g),h.push(s,f,f,a),l.push(o,p,p,r));return i}const V=new k.A({color:"rgba(0,0,0,0.2)"}),j=[90,45,30,20,10,5,2,1,.5,20/60,10/60,5/60,2/60,1/60,30/3600,20/3600,10/3600,5/3600,2/3600,1/3600];class H extends P.A{constructor(t){t=t||{};const e=Object.assign({updateWhileAnimating:!0,updateWhileInteracting:!0,renderBuffer:0},t);delete e.maxLines,delete e.strokeStyle,delete e.targetSize,delete e.showLabels,delete e.lonLabelFormatter,delete e.latLabelFormatter,delete e.lonLabelPosition,delete e.latLabelPosition,delete e.lonLabelStyle,delete e.latLabelStyle,delete e.intervals,super(e),this.projection_=null,this.maxLat_=1/0,this.maxLon_=1/0,this.minLat_=-1/0,this.minLon_=-1/0,this.maxX_=1/0,this.maxY_=1/0,this.minX_=-1/0,this.minY_=-1/0,this.targetSize_=void 0!==t.targetSize?t.targetSize:100,this.maxLines_=void 0!==t.maxLines?t.maxLines:100,this.meridians_=[],this.parallels_=[],this.strokeStyle_=void 0!==t.strokeStyle?t.strokeStyle:V,this.fromLonLatTransform_=void 0,this.toLonLatTransform_=void 0,this.projectionCenterLonLat_=null,this.bottomLeft_=null,this.bottomRight_=null,this.topLeft_=null,this.topRight_=null,this.meridiansLabels_=null,this.parallelsLabels_=null,t.showLabels&&(this.lonLabelFormatter_=null==t.lonLabelFormatter?N.aP.bind(this,"EW"):t.lonLabelFormatter,this.latLabelFormatter_=null==t.latLabelFormatter?N.aP.bind(this,"NS"):t.latLabelFormatter,this.lonLabelPosition_=null==t.lonLabelPosition?0:t.lonLabelPosition,this.latLabelPosition_=null==t.latLabelPosition?1:t.latLabelPosition,this.lonLabelStyleBase_=new L.Ay({text:void 0!==t.lonLabelStyle?t.lonLabelStyle.clone():new D.A({font:"12px Calibri,sans-serif",textBaseline:"bottom",fill:new C.A({color:"rgba(0,0,0,1)"}),stroke:new k.A({color:"rgba(255,255,255,1)",width:3})})}),this.lonLabelStyle_=t=>{const e=t.get("graticule_label");return this.lonLabelStyleBase_.getText().setText(e),this.lonLabelStyleBase_},this.latLabelStyleBase_=new L.Ay({text:void 0!==t.latLabelStyle?t.latLabelStyle.clone():new D.A({font:"12px Calibri,sans-serif",textAlign:"right",fill:new C.A({color:"rgba(0,0,0,1)"}),stroke:new k.A({color:"rgba(255,255,255,1)",width:3})})}),this.latLabelStyle_=t=>{const e=t.get("graticule_label");return this.latLabelStyleBase_.getText().setText(e),this.latLabelStyleBase_},this.meridiansLabels_=[],this.parallelsLabels_=[],this.addEventListener(A.A.POSTRENDER,this.drawLabels_.bind(this))),this.intervals_=void 0!==t.intervals?t.intervals:j,this.setSource(new R.A({loader:this.loaderFunction.bind(this),strategy:this.strategyFunction.bind(this),features:new r.A,overlaps:!1,useSpatialIndex:!1,wrapX:t.wrapX})),this.featurePool_=[],this.lineStyle_=new L.Ay({stroke:this.strokeStyle_}),this.loadedExtent_=null,this.renderedExtent_=null,this.renderedResolution_=null,this.setRenderOrder(null)}strategyFunction(t,e){let n=t.slice();return this.projection_&&this.getSource().getWrapX()&&(0,O.Li)(n,this.projection_),this.loadedExtent_&&((0,O.bE)(this.loadedExtent_,n,e)?n=this.loadedExtent_.slice():this.getSource().removeLoadedExtent(this.loadedExtent_)),[n]}loaderFunction(t,e,n){this.loadedExtent_=t;const i=this.getSource(),r=this.getExtent()||[-1/0,-1/0,1/0,1/0],o=(0,O._N)(r,t);if(this.renderedExtent_&&(0,O.aI)(this.renderedExtent_,o)&&this.renderedResolution_===e)return;if(this.renderedExtent_=o,this.renderedResolution_=e,(0,O.Im)(o))return;const s=(0,O.q1)(o),l=e*e/4;(!this.projection_||!(0,c.tI)(this.projection_,n))&&this.updateProjectionInfo_(n),this.createGraticule_(o,s,e,l);let h,u=this.meridians_.length+this.parallels_.length;for(this.meridiansLabels_&&(u+=this.meridians_.length),this.parallelsLabels_&&(u+=this.parallels_.length);u>this.featurePool_.length;)h=new a.A,this.featurePool_.push(h);const d=i.getFeaturesCollection();d.clear();let p,f,g=0;for(p=0,f=this.meridians_.length;p<f;++p)h=this.featurePool_[g++],h.setGeometry(this.meridians_[p]),h.setStyle(this.lineStyle_),d.push(h);for(p=0,f=this.parallels_.length;p<f;++p)h=this.featurePool_[g++],h.setGeometry(this.parallels_[p]),h.setStyle(this.lineStyle_),d.push(h)}addMeridian_(t,e,n,i,r,o){const a=this.getMeridian_(t,e,n,i,o);if((0,O.HY)(a.getExtent(),r)){if(this.meridiansLabels_){const e=this.lonLabelFormatter_(t);o in this.meridiansLabels_?this.meridiansLabels_[o].text=e:this.meridiansLabels_[o]={geom:new E.A([]),text:e}}this.meridians_[o++]=a}return o}addParallel_(t,e,n,i,r,o){const a=this.getParallel_(t,e,n,i,o);if((0,O.HY)(a.getExtent(),r)){if(this.parallelsLabels_){const e=this.latLabelFormatter_(t);o in this.parallelsLabels_?this.parallelsLabels_[o].text=e:this.parallelsLabels_[o]={geom:new E.A([]),text:e}}this.parallels_[o++]=a}return o}drawLabels_(t){const e=t.frameState.viewState.rotation,n=t.frameState.viewState.resolution,i=t.frameState.size,r=t.frameState.extent,o=(0,O.q1)(r);let a=r;if(e){const t=i[0]*n,e=i[1]*n;a=[o[0]-t/2,o[1]-e/2,o[0]+t/2,o[1]+e/2]}let s=0,l=0,h=this.latLabelPosition_<.5;const u=this.projection_.getExtent(),d=(0,O.RG)(u);if(this.getSource().getWrapX()&&this.projection_.canWrapX()&&!(0,O.ms)(u,r)){s=Math.floor((r[0]-u[0])/d),l=Math.ceil((r[2]-u[2])/d);h=h!==Math.abs(e)>Math.PI/2}const p=function(t){if(!(t.context instanceof CanvasRenderingContext2D))throw new Error("Only works for render events from Canvas 2D layers");const e=t.inversePixelTransform[0],n=t.inversePixelTransform[1],i=Math.sqrt(e*e+n*n),r=t.frameState,o=(0,B.lw)(t.inversePixelTransform.slice(),r.coordinateToPixelTransform),a=(0,z.j)(r.viewState.resolution,i);let s;const l=(0,c.Tf)();return l&&(s=(0,c.FO)(l,r.viewState.projection)),new F.A(t.context,i,r.extent,o,r.viewState.rotation,a,s)}(t);for(let c=s;c<=l;++c){let t,n,i,u,f=this.meridians_.length+this.parallels_.length;if(this.meridiansLabels_)for(n=0,i=this.meridiansLabels_.length;n<i;++n){const i=this.meridians_[n];if(e||0!==c){const t=i.clone();t.translate(c*d,0),t.rotate(-e,o),u=this.getMeridianPoint_(t,a,n),u.rotate(e,o)}else u=this.getMeridianPoint_(i,r,n);t=this.featurePool_[f++],t.setGeometry(u),t.set("graticule_label",this.meridiansLabels_[n].text),p.drawFeature(t,this.lonLabelStyle_(t))}if(this.parallelsLabels_&&(c===s&&h||c===l&&!h))for(n=0,i=this.parallels_.length;n<i;++n){const i=this.parallels_[n];if(e||0!==c){const t=i.clone();t.translate(c*d,0),t.rotate(-e,o),u=this.getParallelPoint_(t,a,n),u.rotate(e,o)}else u=this.getParallelPoint_(i,r,n);t=this.featurePool_[f++],t.setGeometry(u),t.set("graticule_label",this.parallelsLabels_[n].text),p.drawFeature(t,this.latLabelStyle_(t))}}}createGraticule_(t,e,n,i){const r=this.getInterval_(n);if(-1==r)return this.meridians_.length=0,this.parallels_.length=0,this.meridiansLabels_&&(this.meridiansLabels_.length=0),void(this.parallelsLabels_&&(this.parallelsLabels_.length=0));let o=!1;const a=this.projection_.getExtent(),s=(0,O.RG)(a);this.getSource().getWrapX()&&this.projection_.canWrapX()&&!(0,O.ms)(a,t)&&((0,O.RG)(t)>=s?(t[0]=a[0],t[2]=a[2]):o=!0);const l=[(0,u.qE)(e[0],this.minX_,this.maxX_),(0,u.qE)(e[1],this.minY_,this.maxY_)],h=this.toLonLatTransform_(l);isNaN(h[1])&&(h[1]=Math.abs(this.maxLat_)>=Math.abs(this.minLat_)?this.maxLat_:this.minLat_);let c=(0,u.qE)(h[0],this.minLon_,this.maxLon_),d=(0,u.qE)(h[1],this.minLat_,this.maxLat_);const p=this.maxLines_;let f,g,m,v,y=t;o||(y=[(0,u.qE)(t[0],this.minX_,this.maxX_),(0,u.qE)(t[1],this.minY_,this.maxY_),(0,u.qE)(t[2],this.minX_,this.maxX_),(0,u.qE)(t[3],this.minY_,this.maxY_)]);const _=(0,O.NW)(y,this.toLonLatTransform_,void 0,8);let x=_[3],b=_[2],w=_[1],S=_[0];if(o||((0,O.Ym)(y,this.bottomLeft_)&&(S=this.minLon_,w=this.minLat_),(0,O.Ym)(y,this.bottomRight_)&&(b=this.maxLon_,w=this.minLat_),(0,O.Ym)(y,this.topLeft_)&&(S=this.minLon_,x=this.maxLat_),(0,O.Ym)(y,this.topRight_)&&(b=this.maxLon_,x=this.maxLat_),x=(0,u.qE)(x,d,this.maxLat_),b=(0,u.qE)(b,c,this.maxLon_),w=(0,u.qE)(w,this.minLat_,d),S=(0,u.qE)(S,this.minLon_,c)),c=Math.floor(c/r)*r,v=(0,u.qE)(c,this.minLon_,this.maxLon_),g=this.addMeridian_(v,w,x,i,t,0),f=0,o)for(;(v-=r)>=S&&f++<p;)g=this.addMeridian_(v,w,x,i,t,g);else for(;v!=this.minLon_&&f++<p;)v=Math.max(v-r,this.minLon_),g=this.addMeridian_(v,w,x,i,t,g);if(v=(0,u.qE)(c,this.minLon_,this.maxLon_),f=0,o)for(;(v+=r)<=b&&f++<p;)g=this.addMeridian_(v,w,x,i,t,g);else for(;v!=this.maxLon_&&f++<p;)v=Math.min(v+r,this.maxLon_),g=this.addMeridian_(v,w,x,i,t,g);for(this.meridians_.length=g,this.meridiansLabels_&&(this.meridiansLabels_.length=g),d=Math.floor(d/r)*r,m=(0,u.qE)(d,this.minLat_,this.maxLat_),g=this.addParallel_(m,S,b,i,t,0),f=0;m!=this.minLat_&&f++<p;)m=Math.max(m-r,this.minLat_),g=this.addParallel_(m,S,b,i,t,g);for(m=(0,u.qE)(d,this.minLat_,this.maxLat_),f=0;m!=this.maxLat_&&f++<p;)m=Math.min(m+r,this.maxLat_),g=this.addParallel_(m,S,b,i,t,g);this.parallels_.length=g,this.parallelsLabels_&&(this.parallelsLabels_.length=g)}getInterval_(t){const e=this.projectionCenterLonLat_[0],n=this.projectionCenterLonLat_[1];let i=-1;const r=Math.pow(this.targetSize_*t,2),o=[],a=[];for(let s=0,l=this.intervals_.length;s<l;++s){const t=(0,u.qE)(this.intervals_[s]/2,0,90),l=(0,u.qE)(n,-90+t,90-t);o[0]=e-t,o[1]=l-t,a[0]=e+t,a[1]=l+t,this.fromLonLatTransform_(o,o),this.fromLonLatTransform_(a,a);if(Math.pow(a[0]-o[0],2)+Math.pow(a[1]-o[1],2)<=r)break;i=this.intervals_[s]}return i}getMeridian_(t,e,n,i,r){const o=function(t,e,n,i,r){const o=(0,c.Jt)("EPSG:4326");return G((function(i){return[t,e+(n-e)*i]}),(0,c.RG)(o,i),r)}(t,e,n,this.projection_,i);let a=this.meridians_[r];return a?(a.setFlatCoordinates("XY",o),a.changed()):(a=new I.A(o,"XY"),this.meridians_[r]=a),a}getMeridianPoint_(t,e,n){const i=t.getFlatCoordinates();let r=1,o=i.length-1;i[r]>i[o]&&(r=o,o=1);const a=Math.max(e[1],i[r]),s=Math.min(e[3],i[o]),l=(0,u.qE)(e[1]+Math.abs(e[1]-e[3])*this.lonLabelPosition_,a,s),h=[i[r-1]+(i[o-1]-i[r-1])*(l-i[r])/(i[o]-i[r]),l],c=this.meridiansLabels_[n].geom;return c.setCoordinates(h),c}getMeridians(){return this.meridians_}getParallel_(t,e,n,i,r){const o=function(t,e,n,i,r){const o=(0,c.Jt)("EPSG:4326");return G((function(i){return[e+(n-e)*i,t]}),(0,c.RG)(o,i),r)}(t,e,n,this.projection_,i);let a=this.parallels_[r];return a?(a.setFlatCoordinates("XY",o),a.changed()):a=new I.A(o,"XY"),a}getParallelPoint_(t,e,n){const i=t.getFlatCoordinates();let r=0,o=i.length-2;i[r]>i[o]&&(r=o,o=0);const a=Math.max(e[0],i[r]),s=Math.min(e[2],i[o]),l=(0,u.qE)(e[0]+Math.abs(e[0]-e[2])*this.latLabelPosition_,a,s),h=[l,i[r+1]+(i[o+1]-i[r+1])*(l-i[r])/(i[o]-i[r])],c=this.parallelsLabels_[n].geom;return c.setCoordinates(h),c}getParallels(){return this.parallels_}updateProjectionInfo_(t){const e=(0,c.Jt)("EPSG:4326"),n=t.getWorldExtent();this.maxLat_=n[3],this.maxLon_=n[2],this.minLat_=n[1],this.minLon_=n[0];const i=(0,c.RG)(t,e);if(this.minLon_<this.maxLon_)this.toLonLatTransform_=i;else{const t=this.minLon_+this.maxLon_/2;this.maxLon_+=360,this.toLonLatTransform_=function(e,n,r){const o=i(e,n,r=r||2);for(let i=0,a=o.length;i<a;i+=r)o[i]<t&&(o[i]+=360);return o}}this.fromLonLatTransform_=(0,c.RG)(e,t);const r=(0,O.NW)([this.minLon_,this.minLat_,this.maxLon_,this.maxLat_],this.fromLonLatTransform_,void 0,8);this.minX_=r[0],this.maxX_=r[2],this.minY_=r[1],this.maxY_=r[3],this.bottomLeft_=this.fromLonLatTransform_([this.minLon_,this.minLat_]),this.bottomRight_=this.fromLonLatTransform_([this.maxLon_,this.minLat_]),this.topLeft_=this.fromLonLatTransform_([this.minLon_,this.maxLat_]),this.topRight_=this.fromLonLatTransform_([this.maxLon_,this.maxLat_]),this.projectionCenterLonLat_=this.toLonLatTransform_((0,O.q1)(t.getExtent())),isNaN(this.projectionCenterLonLat_[1])&&(this.projectionCenterLonLat_[1]=Math.abs(this.maxLat_)>=Math.abs(this.minLat_)?this.maxLat_:this.minLat_),this.projection_=t}}const W=H;var U=n(9407),q=n(6414),X=n(438);class Y extends q.A{constructor(t,e,n,i,r){super(t,e,n,void 0!==r?X.A.IDLE:X.A.LOADED),this.loader_=void 0!==r?r:null,this.canvas_=i,this.error_=null}getError(){return this.error_}handleLoad_(t){t?(this.error_=t,this.state=X.A.ERROR):this.state=X.A.LOADED,this.changed()}load(){this.state==X.A.IDLE&&(this.state=X.A.LOADING,this.changed(),this.loader_(this.handleLoad_.bind(this)))}getImage(){return this.canvas_}}const Z=Y;var $=n(931),K=n(6021),J=n(9532),Q=n(7264),tt=n(5462),et=n(7762),nt=n(6529),it=n(7738),rt=n(5433),ot=n(2657),at=n(7354);const st="element",lt="map",ht="offset",ct="position",ut="positioning";class dt extends l.A{constructor(t){super(),this.on,this.once,this.un,this.options=t,this.id=t.id,this.insertFirst=void 0===t.insertFirst||t.insertFirst,this.stopEvent=void 0===t.stopEvent||t.stopEvent,this.element=document.createElement("div"),this.element.className=void 0!==t.className?t.className:"ol-overlay-container "+rt.Q5,this.element.style.position="absolute",this.element.style.pointerEvents="auto",this.autoPan=!0===t.autoPan?{}:t.autoPan||void 0,this.rendered={transform_:"",visible:!0},this.mapPostrenderListenerKey=null,this.addChangeListener(st,this.handleElementChanged),this.addChangeListener(lt,this.handleMapChanged),this.addChangeListener(ht,this.handleOffsetChanged),this.addChangeListener(ct,this.handlePositionChanged),this.addChangeListener(ut,this.handlePositioningChanged),void 0!==t.element&&this.setElement(t.element),this.setOffset(void 0!==t.offset?t.offset:[0,0]),this.setPositioning(t.positioning||"top-left"),void 0!==t.position&&this.setPosition(t.position)}getElement(){return this.get(st)}getId(){return this.id}getMap(){return this.get(lt)||null}getOffset(){return this.get(ht)}getPosition(){return this.get(ct)}getPositioning(){return this.get(ut)}handleElementChanged(){(0,at.gS)(this.element);const t=this.getElement();t&&this.element.appendChild(t)}handleMapChanged(){this.mapPostrenderListenerKey&&((0,at.bf)(this.element),(0,ot.JH)(this.mapPostrenderListenerKey),this.mapPostrenderListenerKey=null);const t=this.getMap();if(t){this.mapPostrenderListenerKey=(0,ot.KT)(t,it.A.POSTRENDER,this.render,this),this.updatePixelPosition();const e=this.stopEvent?t.getOverlayContainerStopEvent():t.getOverlayContainer();this.insertFirst?e.insertBefore(this.element,e.childNodes[0]||null):e.appendChild(this.element),this.performAutoPan()}}render(){this.updatePixelPosition()}handleOffsetChanged(){this.updatePixelPosition()}handlePositionChanged(){this.updatePixelPosition(),this.performAutoPan()}handlePositioningChanged(){this.updatePixelPosition()}setElement(t){this.set(st,t)}setMap(t){this.set(lt,t)}setOffset(t){this.set(ht,t)}setPosition(t){this.set(ct,t)}performAutoPan(){this.autoPan&&this.panIntoView(this.autoPan)}panIntoView(t){const e=this.getMap();if(!e||!e.getTargetElement()||!this.get(ct))return;const n=this.getRect(e.getTargetElement(),e.getSize()),i=this.getElement(),r=this.getRect(i,[(0,at.Gq)(i),(0,at.DK)(i)]),o=void 0===(t=t||{}).margin?20:t.margin;if(!(0,O.ms)(n,r)){const i=r[0]-n[0],a=n[2]-r[2],s=r[1]-n[1],l=n[3]-r[3],h=[0,0];if(i<0?h[0]=i-o:a<0&&(h[0]=Math.abs(a)+o),s<0?h[1]=s-o:l<0&&(h[1]=Math.abs(l)+o),0!==h[0]||0!==h[1]){const n=e.getView().getCenterInternal(),i=e.getPixelFromCoordinateInternal(n);if(!i)return;const r=[i[0]+h[0],i[1]+h[1]],o=t.animation||{};e.getView().animateInternal({center:e.getCoordinateFromPixelInternal(r),duration:o.duration,easing:o.easing})}}}getRect(t,e){const n=t.getBoundingClientRect(),i=n.left+window.pageXOffset,r=n.top+window.pageYOffset;return[i,r,i+e[0],r+e[1]]}setPositioning(t){this.set(ut,t)}setVisible(t){this.rendered.visible!==t&&(this.element.style.display=t?"":"none",this.rendered.visible=t)}updatePixelPosition(){const t=this.getMap(),e=this.getPosition();if(!t||!t.isRendered()||!e)return void this.setVisible(!1);const n=t.getPixelFromCoordinate(e),i=t.getSize();this.updateRenderedPosition(n,i)}updateRenderedPosition(t,e){const n=this.element.style,i=this.getOffset(),r=this.getPositioning();this.setVisible(!0);let o="0%",a="0%";"bottom-right"==r||"center-right"==r||"top-right"==r?o="-100%":"bottom-center"!=r&&"center-center"!=r&&"top-center"!=r||(o="-50%"),"bottom-left"==r||"bottom-center"==r||"bottom-right"==r?a="-100%":"center-left"!=r&&"center-center"!=r&&"center-right"!=r||(a="-50%");const s=`translate(${o}, ${a}) translate(${Math.round(t[0]+i[0])+"px"}, ${Math.round(t[1]+i[1])+"px"})`;this.rendered.transform_!=s&&(this.rendered.transform_=s,n.transform=s)}getOptions(){return this.options}}const pt=dt;var ft=n(3588),gt=n(8169),mt=n(2384),vt=n(3107),yt=n(6916);const _t=[];class xt extends ft.A{constructor(t,e,n,i){super(t,e,{transition:0}),this.context_={},this.executorGroups={},this.declutterExecutorGroups={},this.loadingSourceTiles=0,this.hitDetectionImageData={},this.replayState_={},this.sourceTiles=[],this.errorTileKeys={},this.wantedResolution,this.getSourceTiles=i.bind(void 0,this),this.wrappedTileCoord=n}getContext(t){const e=(0,yt.v6)(t);return e in this.context_||(this.context_[e]=(0,at.Y)(1,1,_t)),this.context_[e]}hasContext(t){return(0,yt.v6)(t)in this.context_}getImage(t){return this.hasContext(t)?this.getContext(t).canvas:null}getReplayState(t){const e=(0,yt.v6)(t);return e in this.replayState_||(this.replayState_[e]={dirty:!1,renderedRenderOrder:null,renderedResolution:NaN,renderedRevision:-1,renderedTileResolution:NaN,renderedTileRevision:-1,renderedTileZ:-1}),this.replayState_[e]}load(){this.getSourceTiles()}release(){for(const t in this.context_){const e=this.context_[t];(0,at.Yg)(e),_t.push(e.canvas),delete this.context_[t]}super.release()}}const bt=xt;var wt=n(5751);class St extends ft.A{constructor(t,e,n,i,r,o){super(t,e,o),this.extent=null,this.format_=i,this.features_=null,this.loader_,this.projection=null,this.resolution,this.tileLoadFunction_=r,this.url_=n,this.key=n}getFormat(){return this.format_}getFeatures(){return this.features_}load(){this.state==wt.A.IDLE&&(this.setState(wt.A.LOADING),this.tileLoadFunction_(this,this.url_),this.loader_&&this.loader_(this.extent,this.resolution,this.projection))}onLoad(t,e){this.setFeatures(t)}onError(){this.setState(wt.A.ERROR)}setFeatures(t){this.features_=t,this.setState(wt.A.LOADED)}setLoader(t){this.loader_=t}}const Tt=St;var Mt=n(3427)},9251:(t,e,n)=>{"use strict";n.d(e,{A:()=>h});var i=n(5191),r=n(8659),o=n(6916),a=n(3957),s=n(2878);class l extends i.A{constructor(t){super(),this.on,this.once,this.un,this.background_=t.background;const e=Object.assign({},t);"object"==typeof t.properties&&(delete e.properties,Object.assign(e,t.properties)),e[r.A.OPACITY]=void 0!==t.opacity?t.opacity:1,(0,a.v)("number"==typeof e[r.A.OPACITY],64),e[r.A.VISIBLE]=void 0===t.visible||t.visible,e[r.A.Z_INDEX]=t.zIndex,e[r.A.MAX_RESOLUTION]=void 0!==t.maxResolution?t.maxResolution:1/0,e[r.A.MIN_RESOLUTION]=void 0!==t.minResolution?t.minResolution:0,e[r.A.MIN_ZOOM]=void 0!==t.minZoom?t.minZoom:-1/0,e[r.A.MAX_ZOOM]=void 0!==t.maxZoom?t.maxZoom:1/0,this.className_=void 0!==e.className?e.className:"ol-layer",delete e.className,this.setProperties(e),this.state_=null}getBackground(){return this.background_}getClassName(){return this.className_}getLayerState(t){const e=this.state_||{layer:this,managed:void 0===t||t},n=this.getZIndex();return e.opacity=(0,s.qE)(Math.round(100*this.getOpacity())/100,0,1),e.visible=this.getVisible(),e.extent=this.getExtent(),e.zIndex=void 0!==n||e.managed?n:1/0,e.maxResolution=this.getMaxResolution(),e.minResolution=Math.max(this.getMinResolution(),0),e.minZoom=this.getMinZoom(),e.maxZoom=this.getMaxZoom(),this.state_=e,e}getLayersArray(t){return(0,o.b0)()}getLayerStatesArray(t){return(0,o.b0)()}getExtent(){return this.get(r.A.EXTENT)}getMaxResolution(){return this.get(r.A.MAX_RESOLUTION)}getMinResolution(){return this.get(r.A.MIN_RESOLUTION)}getMinZoom(){return this.get(r.A.MIN_ZOOM)}getMaxZoom(){return this.get(r.A.MAX_ZOOM)}getOpacity(){return this.get(r.A.OPACITY)}getSourceState(){return(0,o.b0)()}getVisible(){return this.get(r.A.VISIBLE)}getZIndex(){return this.get(r.A.Z_INDEX)}setBackground(t){this.background_=t,this.changed()}setExtent(t){this.set(r.A.EXTENT,t)}setMaxResolution(t){this.set(r.A.MAX_RESOLUTION,t)}setMinResolution(t){this.set(r.A.MIN_RESOLUTION,t)}setMaxZoom(t){this.set(r.A.MAX_ZOOM,t)}setMinZoom(t){this.set(r.A.MIN_ZOOM,t)}setOpacity(t){(0,a.v)("number"==typeof t,64),this.set(r.A.OPACITY,t)}setVisible(t){this.set(r.A.VISIBLE,t)}setZIndex(t){this.set(r.A.Z_INDEX,t)}disposeInternal(){this.state_&&(this.state_.layer=null,this.state_=null),super.disposeInternal()}}const h=l},221:(t,e,n)=>{"use strict";n.d(e,{A:()=>p,l:()=>d});var i=n(9251),r=n(874),o=n(8659),a=n(4431),s=n(3427),l=n(3957),h=n(4320),c=n(2657);class u extends i.A{constructor(t){const e=Object.assign({},t);delete e.source,super(e),this.on,this.once,this.un,this.mapPrecomposeKey_=null,this.mapRenderKey_=null,this.sourceChangeKey_=null,this.renderer_=null,this.sourceReady_=!1,this.rendered=!1,t.render&&(this.render=t.render),t.map&&this.setMap(t.map),this.addChangeListener(o.A.SOURCE,this.handleSourcePropertyChange_);const n=t.source?t.source:null;this.setSource(n)}getLayersArray(t){return(t=t||[]).push(this),t}getLayerStatesArray(t){return(t=t||[]).push(this.getLayerState()),t}getSource(){return this.get(o.A.SOURCE)||null}getRenderSource(){return this.getSource()}getSourceState(){const t=this.getSource();return t?t.getState():"undefined"}handleSourceChange_(){this.changed(),this.sourceReady_||"ready"!==this.getSource().getState()||(this.sourceReady_=!0,this.dispatchEvent("sourceready"))}handleSourcePropertyChange_(){this.sourceChangeKey_&&((0,c.JH)(this.sourceChangeKey_),this.sourceChangeKey_=null),this.sourceReady_=!1;const t=this.getSource();t&&(this.sourceChangeKey_=(0,c.KT)(t,r.A.CHANGE,this.handleSourceChange_,this),"ready"===t.getState()&&(this.sourceReady_=!0,setTimeout((()=>{this.dispatchEvent("sourceready")}),0))),this.changed()}getFeatures(t){return this.renderer_?this.renderer_.getFeatures(t):Promise.resolve([])}getData(t){return this.renderer_&&this.rendered?this.renderer_.getData(t):null}isVisible(t){let e;const n=this.getMapInternal();let i;!t&&n&&(t=n.getView()),e=t instanceof s.Ay?{viewState:t.getState(),extent:t.calculateExtent()}:t,!e.layerStatesArray&&n&&(e.layerStatesArray=n.getLayerGroup().getLayerStatesArray()),i=e.layerStatesArray?e.layerStatesArray.find((t=>t.layer===this)):this.getLayerState();const r=this.getExtent();return d(i,e.viewState)&&(!r||(0,h.HY)(r,e.extent))}getAttributions(t){if(!this.isVisible(t))return[];let e;const n=this.getSource();if(n&&(e=n.getAttributions()),!e)return[];let i=e(t instanceof s.Ay?t.getViewStateAndExtent():t);return Array.isArray(i)||(i=[i]),i}render(t,e){const n=this.getRenderer();return n.prepareFrame(t)?(this.rendered=!0,n.renderFrame(t,e)):null}unrender(){this.rendered=!1}setMapInternal(t){t||this.unrender(),this.set(o.A.MAP,t)}getMapInternal(){return this.get(o.A.MAP)}setMap(t){this.mapPrecomposeKey_&&((0,c.JH)(this.mapPrecomposeKey_),this.mapPrecomposeKey_=null),t||this.changed(),this.mapRenderKey_&&((0,c.JH)(this.mapRenderKey_),this.mapRenderKey_=null),t&&(this.mapPrecomposeKey_=(0,c.KT)(t,a.A.PRECOMPOSE,(function(t){const e=t.frameState.layerStatesArray,n=this.getLayerState(!1);(0,l.v)(!e.some((function(t){return t.layer===n.layer})),67),e.push(n)}),this),this.mapRenderKey_=(0,c.KT)(this,r.A.CHANGE,t.render,t),this.changed())}setSource(t){this.set(o.A.SOURCE,t)}getRenderer(){return this.renderer_||(this.renderer_=this.createRenderer()),this.renderer_}hasRenderer(){return!!this.renderer_}createRenderer(){return null}disposeInternal(){this.renderer_&&(this.renderer_.dispose(),delete this.renderer_),this.setSource(null),super.disposeInternal()}}function d(t,e){if(!t.visible)return!1;const n=e.resolution;if(n<t.minResolution||n>=t.maxResolution)return!1;const i=e.zoom;return i>t.minZoom&&i<=t.maxZoom}const p=u},8659:(t,e,n)=>{"use strict";n.d(e,{A:()=>i});const i={OPACITY:"opacity",VISIBLE:"visible",EXTENT:"extent",Z_INDEX:"zIndex",MAX_RESOLUTION:"maxResolution",MIN_RESOLUTION:"minResolution",MAX_ZOOM:"maxZoom",MIN_ZOOM:"minZoom",SOURCE:"source",MAP:"map"}},3682:(t,e,n)=>{"use strict";n.d(e,{A:()=>b});var i=n(221);const r="preload",o="useInterimTilesOnError";class a extends i.A{constructor(t){t=t||{};const e=Object.assign({},t);delete e.preload,delete e.useInterimTilesOnError,super(e),this.on,this.once,this.un,this.setPreload(void 0!==t.preload?t.preload:0),this.setUseInterimTilesOnError(void 0===t.useInterimTilesOnError||t.useInterimTilesOnError)}getPreload(){return this.get(r)}setPreload(t){this.set(r,t)}getUseInterimTilesOnError(){return this.get(o)}setUseInterimTilesOnError(t){this.set(o,t)}getData(t){return super.getData(t)}}const s=a;var l=n(6627),h=n(931),c=n(4864),u=n(3107),d=n(5751),p=n(686),f=n(9783),g=n(4320),m=n(6859),v=n(6916),y=n(277);class _ extends l.A{constructor(t){super(t),this.extentChanged=!0,this.renderedExtent_=null,this.renderedPixelRatio,this.renderedProjection=null,this.renderedRevision,this.renderedTiles=[],this.newTiles_=!1,this.tmpExtent=(0,g.S5)(),this.tmpTileRange_=new u.A(0,0,0,0)}isDrawableTile(t){const e=this.getLayer(),n=t.getState(),i=e.getUseInterimTilesOnError();return n==d.A.LOADED||n==d.A.EMPTY||n==d.A.ERROR&&!i}getTile(t,e,n,i){const r=i.pixelRatio,o=i.viewState.projection,a=this.getLayer();let s=a.getSource().getTile(t,e,n,r,o);return s.getState()==d.A.ERROR&&a.getUseInterimTilesOnError()&&a.getPreload()>0&&(this.newTiles_=!0),this.isDrawableTile(s)||(s=s.getInterimTile()),s}getData(t){const e=this.frameState;if(!e)return null;const n=this.getLayer(),i=(0,p.Bb)(e.pixelToCoordinateTransform,t.slice()),r=n.getExtent();if(r&&!(0,g.Ym)(r,i))return null;const o=e.pixelRatio,a=e.viewState.projection,s=e.viewState,l=n.getRenderSource(),u=l.getTileGridForProjection(s.projection),f=l.getTilePixelRatio(e.pixelRatio);for(let p=u.getZForResolution(s.resolution);p>=u.getMinZoom();--p){const t=u.getTileCoordForCoordAndZ(i,p),e=l.getTile(p,t[1],t[2],o,a);if(!(e instanceof h.A||e instanceof c.A)||e instanceof c.A&&e.getState()===d.A.EMPTY)return null;if(e.getState()!==d.A.LOADED)continue;const n=u.getOrigin(p),r=(0,y.xq)(u.getTileSize(p)),g=u.getResolution(p),m=Math.floor(f*((i[0]-n[0])/g-t[1]*r[0])),v=Math.floor(f*((n[1]-i[1])/g-t[2]*r[1])),_=Math.round(f*l.getGutterForProjection(s.projection));return this.getImageData(e.getImage(),m+_,v+_)}return null}loadedTileCallback(t,e,n){return!!this.isDrawableTile(n)&&super.loadedTileCallback(t,e,n)}prepareFrame(t){return!!this.getLayer().getSource()}renderFrame(t,e){const n=t.layerStatesArray[t.layerIndex],i=t.viewState,r=i.projection,o=i.resolution,a=i.center,s=i.rotation,l=t.pixelRatio,h=this.getLayer(),c=h.getSource(),u=c.getRevision(),y=c.getTileGridForProjection(r),_=y.getZForResolution(o,c.zDirection),x=y.getResolution(_);let b=t.extent;const w=t.viewState.resolution,S=c.getTilePixelRatio(l),T=Math.round((0,g.RG)(b)/w*l),M=Math.round((0,g.Oq)(b)/w*l),A=n.extent&&(0,m.SD)(n.extent,r);A&&(b=(0,g._N)(b,(0,m.SD)(n.extent,r)));const C=x*T/2/S,I=x*M/2/S,E=[a[0]-C,a[1]-I,a[0]+C,a[1]+I],k=y.getTileRangeForExtentAndZ(b,_),L={};L[_]={};const D=this.createLoadedTileFinder(c,r,L),P=this.tmpExtent,R=this.tmpTileRange_;this.newTiles_=!1;const O=s?(0,g.Yw)(i.center,w,s,t.size):void 0;for(let p=k.minX;p<=k.maxX;++p)for(let e=k.minY;e<=k.maxY;++e){if(s&&!y.tileCoordIntersectsViewport([_,p,e],O))continue;const i=this.getTile(_,p,e,t);if(this.isDrawableTile(i)){const e=(0,v.v6)(this);if(i.getState()==d.A.LOADED){L[_][i.tileCoord.toString()]=i;let t=i.inTransition(e);t&&1!==n.opacity&&(i.endTransition(e),t=!1),this.newTiles_||!t&&this.renderedTiles.includes(i)||(this.newTiles_=!0)}if(1===i.getAlpha(e,t.time))continue}const r=y.getTileCoordChildTileRange(i.tileCoord,R,P);let o=!1;r&&(o=D(_+1,r)),o||y.forEachTileCoordParentTileRange(i.tileCoord,D,R,P)}const N=x/o*l/S;(0,p.Zz)(this.pixelTransform,t.size[0]/2,t.size[1]/2,1/l,1/l,s,-T/2,-M/2);const F=(0,p.dI)(this.pixelTransform);this.useContainer(e,F,this.getBackground(t));const B=this.context,z=B.canvas;(0,p.T9)(this.inversePixelTransform,this.pixelTransform),(0,p.Zz)(this.tempTransform,T/2,M/2,N,N,0,-T/2,-M/2),z.width!=T||z.height!=M?(z.width=T,z.height=M):this.containerReused||B.clearRect(0,0,T,M),A&&this.clipUnrotated(B,t,A),c.getInterpolate()||(B.imageSmoothingEnabled=!1),this.preRender(B,t),this.renderedTiles.length=0;let G,V,j,H=Object.keys(L).map(Number);H.sort(f.V_),1!==n.opacity||this.containerReused&&!c.getOpaque(t.viewState.projection)?(G=[],V=[]):H=H.reverse();for(let d=H.length-1;d>=0;--d){const e=H[d],n=c.getTilePixelSize(e,l,r),i=y.getResolution(e)/x,o=n[0]*i*N,a=n[1]*i*N,s=y.getTileCoordForCoordAndZ((0,g.Py)(E),e),h=y.getTileCoordExtent(s),u=(0,p.Bb)(this.tempTransform,[S*(h[0]-E[0])/x,S*(E[3]-h[3])/x]),f=S*c.getGutterForProjection(r),m=L[e];for(const r in m){const n=m[r],i=n.tileCoord,l=s[1]-i[1],h=Math.round(u[0]-(l-1)*o),d=s[2]-i[2],p=Math.round(u[1]-(d-1)*a),y=Math.round(u[0]-l*o),x=Math.round(u[1]-d*a),b=h-y,w=p-x,S=_===e,T=S&&1!==n.getAlpha((0,v.v6)(this),t.time);let M=!1;if(!T)if(G){j=[y,x,y+b,x,y+b,x+w,y,x+w];for(let t=0,n=G.length;t<n;++t)if(_!==e&&e<V[t]){const e=G[t];(0,g.HY)([y,x,y+b,x+w],[e[0],e[3],e[4],e[7]])&&(M||(B.save(),M=!0),B.beginPath(),B.moveTo(j[0],j[1]),B.lineTo(j[2],j[3]),B.lineTo(j[4],j[5]),B.lineTo(j[6],j[7]),B.moveTo(e[6],e[7]),B.lineTo(e[4],e[5]),B.lineTo(e[2],e[3]),B.lineTo(e[0],e[1]),B.clip())}G.push(j),V.push(e)}else B.clearRect(y,x,b,w);this.drawTileImage(n,t,y,x,b,w,f,S),G&&!T?(M&&B.restore(),this.renderedTiles.unshift(n)):this.renderedTiles.push(n),this.updateUsedTiles(t.usedTiles,c,n)}}return this.renderedRevision=u,this.renderedResolution=x,this.extentChanged=!this.renderedExtent_||!(0,g.aI)(this.renderedExtent_,E),this.renderedExtent_=E,this.renderedPixelRatio=l,this.renderedProjection=r,this.manageTilePyramid(t,c,y,l,r,b,_,h.getPreload()),this.scheduleExpireCache(t,c),this.postRender(B,t),n.extent&&B.restore(),B.imageSmoothingEnabled=!0,F!==z.style.transform&&(z.style.transform=F),this.container}drawTileImage(t,e,n,i,r,o,a,s){const l=this.getTileImage(t);if(!l)return;const h=(0,v.v6)(this),c=e.layerStatesArray[e.layerIndex],u=c.opacity*(s?t.getAlpha(h,e.time):1),d=u!==this.context.globalAlpha;d&&(this.context.save(),this.context.globalAlpha=u),this.context.drawImage(l,a,a,l.width-2*a,l.height-2*a,n,i,r,o),d&&this.context.restore(),u!==c.opacity?e.animate=!0:s&&t.endTransition(h)}getImage(){const t=this.context;return t?t.canvas:null}getTileImage(t){return t.getImage()}scheduleExpireCache(t,e){if(e.canExpireCache()){const n=function(t,e,n){const i=(0,v.v6)(t);i in n.usedTiles&&t.expireCache(n.viewState.projection,n.usedTiles[i])}.bind(null,e);t.postRenderFunctions.push(n)}}updateUsedTiles(t,e,n){const i=(0,v.v6)(e);i in t||(t[i]={}),t[i][n.getKey()]=!0}manageTilePyramid(t,e,n,i,r,o,a,s,l){const h=(0,v.v6)(e);h in t.wantedTiles||(t.wantedTiles[h]={});const c=t.wantedTiles[h],u=t.tileQueue,p=n.getMinZoom(),f=t.viewState.rotation,m=f?(0,g.Yw)(t.viewState.center,t.viewState.resolution,f,t.size):void 0;let y,_,x,b,w,S,T=0;for(S=p;S<=a;++S)for(_=n.getTileRangeForExtentAndZ(o,S,_),x=n.getResolution(S),b=_.minX;b<=_.maxX;++b)for(w=_.minY;w<=_.maxY;++w)f&&!n.tileCoordIntersectsViewport([S,b,w],m)||(a-S<=s?(++T,y=e.getTile(S,b,w,i,r),y.getState()==d.A.IDLE&&(c[y.getKey()]=!0,u.isKeyQueued(y.getKey())||u.enqueue([y,h,n.getTileCoordCenter(y.tileCoord),x])),void 0!==l&&l(y)):e.useTile(S,b,w,r));e.updateCacheSize(T,r)}}const x=_;const b=class extends s{constructor(t){super(t)}createRenderer(){return new x(this)}}},5209:(t,e,n)=>{"use strict";n.d(e,{A:()=>Rt});var i=n(221),r=n(3269),o=n(6365),a=n(5390),s=n(9091),l=n(874),h=n(438),c=n(9113),u=n(1805),d=n(3957),p=n(1385),f=n(7354),g=n(1386),m=n(9407);let v=null;class y extends p.A{constructor(t,e,n,i,r,o){super(),this.hitDetectionImage_=null,this.image_=t,this.crossOrigin_=i,this.canvas_={},this.color_=o,this.unlisten_=null,this.imageState_=r,this.size_=n,this.src_=e,this.tainted_}initializeImage_(){this.image_=new Image,null!==this.crossOrigin_&&(this.image_.crossOrigin=this.crossOrigin_)}isTainted_(){if(void 0===this.tainted_&&this.imageState_===h.A.LOADED){v||(v=(0,f.Y)(1,1,void 0,{willReadFrequently:!0})),v.drawImage(this.image_,0,0);try{v.getImageData(0,0,1,1),this.tainted_=!1}catch(t){v=null,this.tainted_=!0}}return!0===this.tainted_}dispatchChangeEvent_(){this.dispatchEvent(l.A.CHANGE)}handleImageError_(){this.imageState_=h.A.ERROR,this.unlistenImage_(),this.dispatchChangeEvent_()}handleImageLoad_(){this.imageState_=h.A.LOADED,this.size_?(this.image_.width=this.size_[0],this.image_.height=this.size_[1]):this.size_=[this.image_.width,this.image_.height],this.unlistenImage_(),this.dispatchChangeEvent_()}getImage(t){return this.image_||this.initializeImage_(),this.replaceColor_(t),this.canvas_[t]?this.canvas_[t]:this.image_}getPixelRatio(t){return this.replaceColor_(t),this.canvas_[t]?t:1}getImageState(){return this.imageState_}getHitDetectionImage(){if(this.image_||this.initializeImage_(),!this.hitDetectionImage_)if(this.isTainted_()){const t=this.size_[0],e=this.size_[1],n=(0,f.Y)(t,e);n.fillRect(0,0,t,e),this.hitDetectionImage_=n.canvas}else this.hitDetectionImage_=this.image_;return this.hitDetectionImage_}getSize(){return this.size_}getSrc(){return this.src_}load(){if(this.imageState_===h.A.IDLE){this.image_||this.initializeImage_(),this.imageState_=h.A.LOADING;try{this.image_.src=this.src_}catch(t){this.handleImageError_()}this.unlisten_=(0,m.f)(this.image_,this.handleImageLoad_.bind(this),this.handleImageError_.bind(this))}}replaceColor_(t){if(!this.color_||this.canvas_[t]||this.imageState_!==h.A.LOADED)return;const e=this.image_,n=document.createElement("canvas");n.width=Math.ceil(e.width*t),n.height=Math.ceil(e.height*t);const i=n.getContext("2d");i.scale(t,t),i.drawImage(e,0,0),i.globalCompositeOperation="multiply",i.fillStyle=(0,u.oJ)(this.color_),i.fillRect(0,0,n.width/t,n.height/t),i.globalCompositeOperation="destination-in",i.drawImage(e,0,0),this.canvas_[t]=n}unlistenImage_(){this.unlisten_&&(this.unlisten_(),this.unlisten_=null)}}var _=n(6916);function x(t,e,n,i){return void 0!==n&&void 0!==i?[n/t,i/e]:void 0!==n?n/t:void 0!==i?i/e:1}class b extends c.A{constructor(t){const e=void 0!==(t=t||{}).opacity?t.opacity:1,n=void 0!==t.rotation?t.rotation:0,i=void 0!==t.scale?t.scale:1,r=void 0!==t.rotateWithView&&t.rotateWithView;super({opacity:e,rotation:n,scale:i,displacement:void 0!==t.displacement?t.displacement:[0,0],rotateWithView:r,declutterMode:t.declutterMode}),this.anchor_=void 0!==t.anchor?t.anchor:[.5,.5],this.normalizedAnchor_=null,this.anchorOrigin_=void 0!==t.anchorOrigin?t.anchorOrigin:"top-left",this.anchorXUnits_=void 0!==t.anchorXUnits?t.anchorXUnits:"fraction",this.anchorYUnits_=void 0!==t.anchorYUnits?t.anchorYUnits:"fraction",this.crossOrigin_=void 0!==t.crossOrigin?t.crossOrigin:null;const o=void 0!==t.img?t.img:null;this.imgSize_=t.imgSize;let a=t.src;(0,d.v)(!(void 0!==a&&o),4),(0,d.v)(!o||o&&this.imgSize_,5),void 0!==a&&0!==a.length||!o||(a=o.src||(0,_.v6)(o)),(0,d.v)(void 0!==a&&a.length>0,6),(0,d.v)(!((void 0!==t.width||void 0!==t.height)&&void 0!==t.scale),69);const s=void 0!==t.src?h.A.IDLE:h.A.LOADED;if(this.color_=void 0!==t.color?(0,u._j)(t.color):null,this.iconImage_=function(t,e,n,i,r,o){let a=g.u.get(e,i,o);return a||(a=new y(t,e,n,i,r,o),g.u.set(e,i,o,a)),a}(o,a,void 0!==this.imgSize_?this.imgSize_:null,this.crossOrigin_,s,this.color_),this.offset_=void 0!==t.offset?t.offset:[0,0],this.offsetOrigin_=void 0!==t.offsetOrigin?t.offsetOrigin:"top-left",this.origin_=null,this.size_=void 0!==t.size?t.size:null,void 0!==t.width||void 0!==t.height){let e,n;if(t.size)[e,n]=t.size;else{const i=this.getImage(1);if(!(i instanceof HTMLCanvasElement||i.src&&i.complete)){this.initialOptions_=t;const e=()=>{if(this.unlistenImageChange(e),!this.initialOptions_)return;const n=this.iconImage_.getSize();this.setScale(x(n[0],n[1],t.width,t.height))};return void this.listenImageChange(e)}e=i.width,n=i.height}void 0!==e&&this.setScale(x(e,n,t.width,t.height))}}clone(){let t,e,n;this.initialOptions_?(e=this.initialOptions_.width,n=this.initialOptions_.height):(t=this.getScale(),t=Array.isArray(t)?t.slice():t);return new b({anchor:this.anchor_.slice(),anchorOrigin:this.anchorOrigin_,anchorXUnits:this.anchorXUnits_,anchorYUnits:this.anchorYUnits_,color:this.color_&&this.color_.slice?this.color_.slice():this.color_||void 0,crossOrigin:this.crossOrigin_,imgSize:this.imgSize_,offset:this.offset_.slice(),offsetOrigin:this.offsetOrigin_,opacity:this.getOpacity(),rotateWithView:this.getRotateWithView(),rotation:this.getRotation(),scale:t,width:e,height:n,size:null!==this.size_?this.size_.slice():void 0,src:this.getSrc(),displacement:this.getDisplacement().slice(),declutterMode:this.getDeclutterMode()})}getAnchor(){let t=this.normalizedAnchor_;if(!t){t=this.anchor_;const e=this.getSize();if("fraction"==this.anchorXUnits_||"fraction"==this.anchorYUnits_){if(!e)return null;t=this.anchor_.slice(),"fraction"==this.anchorXUnits_&&(t[0]*=e[0]),"fraction"==this.anchorYUnits_&&(t[1]*=e[1])}if("top-left"!=this.anchorOrigin_){if(!e)return null;t===this.anchor_&&(t=this.anchor_.slice()),"top-right"!=this.anchorOrigin_&&"bottom-right"!=this.anchorOrigin_||(t[0]=-t[0]+e[0]),"bottom-left"!=this.anchorOrigin_&&"bottom-right"!=this.anchorOrigin_||(t[1]=-t[1]+e[1])}this.normalizedAnchor_=t}const e=this.getDisplacement(),n=this.getScaleArray();return[t[0]-e[0]/n[0],t[1]+e[1]/n[1]]}setAnchor(t){this.anchor_=t,this.normalizedAnchor_=null}getColor(){return this.color_}getImage(t){return this.iconImage_.getImage(t)}getPixelRatio(t){return this.iconImage_.getPixelRatio(t)}getImageSize(){return this.iconImage_.getSize()}getImageState(){return this.iconImage_.getImageState()}getHitDetectionImage(){return this.iconImage_.getHitDetectionImage()}getOrigin(){if(this.origin_)return this.origin_;let t=this.offset_;if("top-left"!=this.offsetOrigin_){const e=this.getSize(),n=this.iconImage_.getSize();if(!e||!n)return null;t=t.slice(),"top-right"!=this.offsetOrigin_&&"bottom-right"!=this.offsetOrigin_||(t[0]=n[0]-e[0]-t[0]),"bottom-left"!=this.offsetOrigin_&&"bottom-right"!=this.offsetOrigin_||(t[1]=n[1]-e[1]-t[1])}return this.origin_=t,this.origin_}getSrc(){return this.iconImage_.getSrc()}getSize(){return this.size_?this.size_:this.iconImage_.getSize()}getWidth(){const t=this.getScaleArray();return this.size_?this.size_[0]*t[0]:this.iconImage_.getImageState()==h.A.LOADED?this.iconImage_.getSize()[0]*t[0]:void 0}getHeight(){const t=this.getScaleArray();return this.size_?this.size_[1]*t[1]:this.iconImage_.getImageState()==h.A.LOADED?this.iconImage_.getSize()[1]*t[1]:void 0}setScale(t){delete this.initialOptions_,super.setScale(t)}listenImageChange(t){this.iconImage_.addEventListener(l.A.CHANGE,t)}load(){this.iconImage_.load()}unlistenImageChange(t){this.iconImage_.removeEventListener(l.A.CHANGE,t)}}const w=b;var S=n(6539),T=n(3698),M=n(8981);function A(t){return new o.Ay({fill:C(t,""),stroke:I(t,""),text:E(t),image:k(t)})}function C(t,e){const n=t[e+"fill-color"];if(n)return"none"===n?null:new s.A({color:n})}function I(t,e){const n=t[e+"stroke-width"],i=t[e+"stroke-color"];if(n||i)return new T.A({width:n,color:i,lineCap:t[e+"stroke-line-cap"],lineJoin:t[e+"stroke-line-join"],lineDash:t[e+"stroke-line-dash"],lineDashOffset:t[e+"stroke-line-dash-offset"],miterLimit:t[e+"stroke-miter-limit"]})}function E(t){const e=t["text-value"];if(!e)return;return new M.A({text:e,font:t["text-font"],maxAngle:t["text-max-angle"],offsetX:t["text-offset-x"],offsetY:t["text-offset-y"],overflow:t["text-overflow"],placement:t["text-placement"],repeat:t["text-repeat"],scale:t["text-scale"],rotateWithView:t["text-rotate-with-view"],rotation:t["text-rotation"],textAlign:t["text-align"],justify:t["text-justify"],textBaseline:t["text-baseline"],padding:t["text-padding"],fill:C(t,"text-"),backgroundFill:C(t,"text-background-"),stroke:I(t,"text-"),backgroundStroke:I(t,"text-background-")})}function k(t){const e=t["icon-src"],n=t["icon-img"];if(e||n){return new w({src:e,img:n,imgSize:t["icon-img-size"],anchor:t["icon-anchor"],anchorOrigin:t["icon-anchor-origin"],anchorXUnits:t["icon-anchor-x-units"],anchorYUnits:t["icon-anchor-y-units"],color:t["icon-color"],crossOrigin:t["icon-cross-origin"],offset:t["icon-offset"],displacement:t["icon-displacement"],opacity:t["icon-opacity"],scale:t["icon-scale"],width:t["icon-width"],height:t["icon-height"],rotation:t["icon-rotation"],rotateWithView:t["icon-rotate-with-view"],size:t["icon-size"],declutterMode:t["icon-declutter-mode"]})}const i=t["shape-points"];if(i){const e="shape-";return new S.A({points:i,fill:C(t,e),stroke:I(t,e),radius:t["shape-radius"],radius1:t["shape-radius1"],radius2:t["shape-radius2"],angle:t["shape-angle"],displacement:t["shape-displacement"],rotation:t["shape-rotation"],rotateWithView:t["shape-rotate-with-view"],scale:t["shape-scale"],declutterMode:t["shape-declutter-mode"]})}const r=t["circle-radius"];if(r){const e="circle-";return new a.A({radius:r,fill:C(t,e),stroke:I(t,e),displacement:t["circle-displacement"],scale:t["circle-scale"],rotation:t["circle-rotation"],rotateWithView:t["circle-rotate-with-view"],declutterMode:t["circle-declutter-mode"]})}}const L="renderOrder";class D extends i.A{constructor(t){t=t||{};const e=Object.assign({},t);delete e.style,delete e.renderBuffer,delete e.updateWhileAnimating,delete e.updateWhileInteracting,super(e),this.declutter_=void 0!==t.declutter&&t.declutter,this.renderBuffer_=void 0!==t.renderBuffer?t.renderBuffer:100,this.style_=null,this.styleFunction_=void 0,this.setStyle(t.style),this.updateWhileAnimating_=void 0!==t.updateWhileAnimating&&t.updateWhileAnimating,this.updateWhileInteracting_=void 0!==t.updateWhileInteracting&&t.updateWhileInteracting}getDeclutter(){return this.declutter_}getFeatures(t){return super.getFeatures(t)}getRenderBuffer(){return this.renderBuffer_}getRenderOrder(){return this.get(L)}getStyle(){return this.style_}getStyleFunction(){return this.styleFunction_}getUpdateWhileAnimating(){return this.updateWhileAnimating_}getUpdateWhileInteracting(){return this.updateWhileInteracting_}renderDeclutter(t){t.declutterTree||(t.declutterTree=new r(9)),this.getRenderer().renderDeclutter(t)}setRenderOrder(t){this.set(L,t)}setStyle(t){let e;if(void 0===t)e=o.d1;else if(null===t)e=null;else if("function"==typeof t)e=t;else if(t instanceof o.Ay)e=t;else if(Array.isArray(t)){const n=t.length,i=new Array(n);for(let e=0;e<n;++e){const n=t[e];n instanceof o.Ay?i[e]=n:i[e]=A(n)}e=i}else e=A(t);this.style_=e,this.styleFunction_=null===t?void 0:(0,o.mC)(this.style_),this.changed()}}const P=D,R={BEGIN_GEOMETRY:0,BEGIN_PATH:1,CIRCLE:2,CLOSE_PATH:3,CUSTOM:4,DRAW_CHARS:5,DRAW_IMAGE:6,END_GEOMETRY:7,FILL:8,MOVE_TO_LINE_TO:9,SET_FILL_STYLE:10,SET_STROKE_STYLE:11,STROKE:12},O=[R.FILL],N=[R.STROKE],F=[R.BEGIN_PATH],B=[R.CLOSE_PATH],z=R;var G=n(6845),V=n(5473),j=n(154),H=n(4320),W=n(1763),U=n(9783),q=n(2280);class X extends V.A{constructor(t,e,n,i){super(),this.tolerance=t,this.maxExtent=e,this.pixelRatio=i,this.maxLineWidth=0,this.resolution=n,this.beginGeometryInstruction1_=null,this.beginGeometryInstruction2_=null,this.bufferedMaxExtent_=null,this.instructions=[],this.coordinates=[],this.tmpCoordinate_=[],this.hitDetectionInstructions=[],this.state={}}applyPixelRatio(t){const e=this.pixelRatio;return 1==e?t:t.map((function(t){return t*e}))}appendFlatPointCoordinates(t,e){const n=this.getBufferedMaxExtent(),i=this.tmpCoordinate_,r=this.coordinates;let o=r.length;for(let a=0,s=t.length;a<s;a+=e)i[0]=t[a],i[1]=t[a+1],(0,H.Ym)(n,i)&&(r[o++]=i[0],r[o++]=i[1]);return o}appendFlatLineCoordinates(t,e,n,i,r,o){const a=this.coordinates;let s=a.length;const l=this.getBufferedMaxExtent();o&&(e+=i);let h=t[e],c=t[e+1];const u=this.tmpCoordinate_;let d,p,f,g=!0;for(d=e+i;d<n;d+=i)u[0]=t[d],u[1]=t[d+1],f=(0,H.vz)(l,u),f!==p?(g&&(a[s++]=h,a[s++]=c,g=!1),a[s++]=u[0],a[s++]=u[1]):f===G.A.INTERSECTING?(a[s++]=u[0],a[s++]=u[1],g=!1):g=!0,h=u[0],c=u[1],p=f;return(r&&g||d===e+i)&&(a[s++]=h,a[s++]=c),s}drawCustomCoordinates_(t,e,n,i,r){for(let o=0,a=n.length;o<a;++o){const a=n[o],s=this.appendFlatLineCoordinates(t,e,a,i,!1,!1);r.push(s),e=a}return e}drawCustom(t,e,n,i){this.beginGeometry(t,e);const r=t.getType(),o=t.getStride(),a=this.coordinates.length;let s,l,h,c,u;switch(r){case"MultiPolygon":s=t.getOrientedFlatCoordinates(),c=[];const e=t.getEndss();u=0;for(let t=0,n=e.length;t<n;++t){const n=[];u=this.drawCustomCoordinates_(s,u,e[t],o,n),c.push(n)}this.instructions.push([z.CUSTOM,a,c,t,n,q.Dz]),this.hitDetectionInstructions.push([z.CUSTOM,a,c,t,i||n,q.Dz]);break;case"Polygon":case"MultiLineString":h=[],s="Polygon"==r?t.getOrientedFlatCoordinates():t.getFlatCoordinates(),u=this.drawCustomCoordinates_(s,0,t.getEnds(),o,h),this.instructions.push([z.CUSTOM,a,h,t,n,q.cD]),this.hitDetectionInstructions.push([z.CUSTOM,a,h,t,i||n,q.cD]);break;case"LineString":case"Circle":s=t.getFlatCoordinates(),l=this.appendFlatLineCoordinates(s,0,s.length,o,!1,!1),this.instructions.push([z.CUSTOM,a,l,t,n,q.n2]),this.hitDetectionInstructions.push([z.CUSTOM,a,l,t,i||n,q.n2]);break;case"MultiPoint":s=t.getFlatCoordinates(),l=this.appendFlatPointCoordinates(s,o),l>a&&(this.instructions.push([z.CUSTOM,a,l,t,n,q.n2]),this.hitDetectionInstructions.push([z.CUSTOM,a,l,t,i||n,q.n2]));break;case"Point":s=t.getFlatCoordinates(),this.coordinates.push(s[0],s[1]),l=this.coordinates.length,this.instructions.push([z.CUSTOM,a,l,t,n]),this.hitDetectionInstructions.push([z.CUSTOM,a,l,t,i||n])}this.endGeometry(e)}beginGeometry(t,e){this.beginGeometryInstruction1_=[z.BEGIN_GEOMETRY,e,0,t],this.instructions.push(this.beginGeometryInstruction1_),this.beginGeometryInstruction2_=[z.BEGIN_GEOMETRY,e,0,t],this.hitDetectionInstructions.push(this.beginGeometryInstruction2_)}finish(){return{instructions:this.instructions,hitDetectionInstructions:this.hitDetectionInstructions,coordinates:this.coordinates}}reverseHitDetectionInstructions(){const t=this.hitDetectionInstructions;let e;t.reverse();const n=t.length;let i,r,o=-1;for(e=0;e<n;++e)i=t[e],r=i[0],r==z.END_GEOMETRY?o=e:r==z.BEGIN_GEOMETRY&&(i[2]=e,(0,U.gI)(this.hitDetectionInstructions,o,e),o=-1)}setFillStrokeStyle(t,e){const n=this.state;if(t){const e=t.getColor();n.fillStyle=(0,j.F)(e||W.qY)}else n.fillStyle=void 0;if(e){const t=e.getColor();n.strokeStyle=(0,j.F)(t||W.NT);const i=e.getLineCap();n.lineCap=void 0!==i?i:W._m;const r=e.getLineDash();n.lineDash=r?r.slice():W.Oq;const o=e.getLineDashOffset();n.lineDashOffset=o||W.vk;const a=e.getLineJoin();n.lineJoin=void 0!==a?a:W._K;const s=e.getWidth();n.lineWidth=void 0!==s?s:W.aq;const l=e.getMiterLimit();n.miterLimit=void 0!==l?l:W.eL,n.lineWidth>this.maxLineWidth&&(this.maxLineWidth=n.lineWidth,this.bufferedMaxExtent_=null)}else n.strokeStyle=void 0,n.lineCap=void 0,n.lineDash=null,n.lineDashOffset=void 0,n.lineJoin=void 0,n.lineWidth=void 0,n.miterLimit=void 0}createFill(t){const e=t.fillStyle,n=[z.SET_FILL_STYLE,e];return"string"!=typeof e&&n.push(!0),n}applyStroke(t){this.instructions.push(this.createStroke(t))}createStroke(t){return[z.SET_STROKE_STYLE,t.strokeStyle,t.lineWidth*this.pixelRatio,t.lineCap,t.lineJoin,t.miterLimit,this.applyPixelRatio(t.lineDash),t.lineDashOffset*this.pixelRatio]}updateFillStyle(t,e){const n=t.fillStyle;"string"==typeof n&&t.currentFillStyle==n||(void 0!==n&&this.instructions.push(e.call(this,t)),t.currentFillStyle=n)}updateStrokeStyle(t,e){const n=t.strokeStyle,i=t.lineCap,r=t.lineDash,o=t.lineDashOffset,a=t.lineJoin,s=t.lineWidth,l=t.miterLimit;(t.currentStrokeStyle!=n||t.currentLineCap!=i||r!=t.currentLineDash&&!(0,U.aI)(t.currentLineDash,r)||t.currentLineDashOffset!=o||t.currentLineJoin!=a||t.currentLineWidth!=s||t.currentMiterLimit!=l)&&(void 0!==n&&e.call(this,t),t.currentStrokeStyle=n,t.currentLineCap=i,t.currentLineDash=r,t.currentLineDashOffset=o,t.currentLineJoin=a,t.currentLineWidth=s,t.currentMiterLimit=l)}endGeometry(t){this.beginGeometryInstruction1_[2]=this.instructions.length,this.beginGeometryInstruction1_=null,this.beginGeometryInstruction2_[2]=this.hitDetectionInstructions.length,this.beginGeometryInstruction2_=null;const e=[z.END_GEOMETRY,t];this.instructions.push(e),this.hitDetectionInstructions.push(e)}getBufferedMaxExtent(){if(!this.bufferedMaxExtent_&&(this.bufferedMaxExtent_=(0,H.o8)(this.maxExtent),this.maxLineWidth>0)){const t=this.resolution*(this.maxLineWidth+1)/2;(0,H.r)(this.bufferedMaxExtent_,t,this.bufferedMaxExtent_)}return this.bufferedMaxExtent_}}const Y=X;const Z=class extends Y{constructor(t,e,n,i){super(t,e,n,i),this.hitDetectionImage_=null,this.image_=null,this.imagePixelRatio_=void 0,this.anchorX_=void 0,this.anchorY_=void 0,this.height_=void 0,this.opacity_=void 0,this.originX_=void 0,this.originY_=void 0,this.rotateWithView_=void 0,this.rotation_=void 0,this.scale_=void 0,this.width_=void 0,this.declutterMode_=void 0,this.declutterImageWithText_=void 0}drawPoint(t,e){if(!this.image_)return;this.beginGeometry(t,e);const n=t.getFlatCoordinates(),i=t.getStride(),r=this.coordinates.length,o=this.appendFlatPointCoordinates(n,i);this.instructions.push([z.DRAW_IMAGE,r,o,this.image_,this.anchorX_*this.imagePixelRatio_,this.anchorY_*this.imagePixelRatio_,Math.ceil(this.height_*this.imagePixelRatio_),this.opacity_,this.originX_*this.imagePixelRatio_,this.originY_*this.imagePixelRatio_,this.rotateWithView_,this.rotation_,[this.scale_[0]*this.pixelRatio/this.imagePixelRatio_,this.scale_[1]*this.pixelRatio/this.imagePixelRatio_],Math.ceil(this.width_*this.imagePixelRatio_),this.declutterMode_,this.declutterImageWithText_]),this.hitDetectionInstructions.push([z.DRAW_IMAGE,r,o,this.hitDetectionImage_,this.anchorX_,this.anchorY_,this.height_,1,this.originX_,this.originY_,this.rotateWithView_,this.rotation_,this.scale_,this.width_,this.declutterMode_,this.declutterImageWithText_]),this.endGeometry(e)}drawMultiPoint(t,e){if(!this.image_)return;this.beginGeometry(t,e);const n=t.getFlatCoordinates(),i=t.getStride(),r=this.coordinates.length,o=this.appendFlatPointCoordinates(n,i);this.instructions.push([z.DRAW_IMAGE,r,o,this.image_,this.anchorX_*this.imagePixelRatio_,this.anchorY_*this.imagePixelRatio_,Math.ceil(this.height_*this.imagePixelRatio_),this.opacity_,this.originX_*this.imagePixelRatio_,this.originY_*this.imagePixelRatio_,this.rotateWithView_,this.rotation_,[this.scale_[0]*this.pixelRatio/this.imagePixelRatio_,this.scale_[1]*this.pixelRatio/this.imagePixelRatio_],Math.ceil(this.width_*this.imagePixelRatio_),this.declutterMode_,this.declutterImageWithText_]),this.hitDetectionInstructions.push([z.DRAW_IMAGE,r,o,this.hitDetectionImage_,this.anchorX_,this.anchorY_,this.height_,1,this.originX_,this.originY_,this.rotateWithView_,this.rotation_,this.scale_,this.width_,this.declutterMode_,this.declutterImageWithText_]),this.endGeometry(e)}finish(){return this.reverseHitDetectionInstructions(),this.anchorX_=void 0,this.anchorY_=void 0,this.hitDetectionImage_=null,this.image_=null,this.imagePixelRatio_=void 0,this.height_=void 0,this.scale_=void 0,this.opacity_=void 0,this.originX_=void 0,this.originY_=void 0,this.rotateWithView_=void 0,this.rotation_=void 0,this.width_=void 0,super.finish()}setImageStyle(t,e){const n=t.getAnchor(),i=t.getSize(),r=t.getOrigin();this.imagePixelRatio_=t.getPixelRatio(this.pixelRatio),this.anchorX_=n[0],this.anchorY_=n[1],this.hitDetectionImage_=t.getHitDetectionImage(),this.image_=t.getImage(this.pixelRatio),this.height_=i[1],this.opacity_=t.getOpacity(),this.originX_=r[0],this.originY_=r[1],this.rotateWithView_=t.getRotateWithView(),this.rotation_=t.getRotation(),this.scale_=t.getScaleArray(),this.width_=i[0],this.declutterMode_=t.getDeclutterMode(),this.declutterImageWithText_=e}};const $=class extends Y{constructor(t,e,n,i){super(t,e,n,i)}drawFlatCoordinates_(t,e,n,i){const r=this.coordinates.length,o=this.appendFlatLineCoordinates(t,e,n,i,!1,!1),a=[z.MOVE_TO_LINE_TO,r,o];return this.instructions.push(a),this.hitDetectionInstructions.push(a),n}drawLineString(t,e){const n=this.state,i=n.strokeStyle,r=n.lineWidth;if(void 0===i||void 0===r)return;this.updateStrokeStyle(n,this.applyStroke),this.beginGeometry(t,e),this.hitDetectionInstructions.push([z.SET_STROKE_STYLE,n.strokeStyle,n.lineWidth,n.lineCap,n.lineJoin,n.miterLimit,W.Oq,W.vk],F);const o=t.getFlatCoordinates(),a=t.getStride();this.drawFlatCoordinates_(o,0,o.length,a),this.hitDetectionInstructions.push(N),this.endGeometry(e)}drawMultiLineString(t,e){const n=this.state,i=n.strokeStyle,r=n.lineWidth;if(void 0===i||void 0===r)return;this.updateStrokeStyle(n,this.applyStroke),this.beginGeometry(t,e),this.hitDetectionInstructions.push([z.SET_STROKE_STYLE,n.strokeStyle,n.lineWidth,n.lineCap,n.lineJoin,n.miterLimit,W.Oq,W.vk],F);const o=t.getEnds(),a=t.getFlatCoordinates(),s=t.getStride();let l=0;for(let h=0,c=o.length;h<c;++h)l=this.drawFlatCoordinates_(a,l,o[h],s);this.hitDetectionInstructions.push(N),this.endGeometry(e)}finish(){const t=this.state;return null!=t.lastStroke&&t.lastStroke!=this.coordinates.length&&this.instructions.push(N),this.reverseHitDetectionInstructions(),this.state=null,super.finish()}applyStroke(t){null!=t.lastStroke&&t.lastStroke!=this.coordinates.length&&(this.instructions.push(N),t.lastStroke=this.coordinates.length),t.lastStroke=0,super.applyStroke(t),this.instructions.push(F)}};var K=n(5028);const J=class extends Y{constructor(t,e,n,i){super(t,e,n,i)}drawFlatCoordinatess_(t,e,n,i){const r=this.state,o=void 0!==r.fillStyle,a=void 0!==r.strokeStyle,s=n.length;this.instructions.push(F),this.hitDetectionInstructions.push(F);for(let l=0;l<s;++l){const r=n[l],o=this.coordinates.length,s=this.appendFlatLineCoordinates(t,e,r,i,!0,!a),h=[z.MOVE_TO_LINE_TO,o,s];this.instructions.push(h),this.hitDetectionInstructions.push(h),a&&(this.instructions.push(B),this.hitDetectionInstructions.push(B)),e=r}return o&&(this.instructions.push(O),this.hitDetectionInstructions.push(O)),a&&(this.instructions.push(N),this.hitDetectionInstructions.push(N)),e}drawCircle(t,e){const n=this.state,i=n.fillStyle,r=n.strokeStyle;if(void 0===i&&void 0===r)return;this.setFillStrokeStyles_(),this.beginGeometry(t,e),void 0!==n.fillStyle&&this.hitDetectionInstructions.push([z.SET_FILL_STYLE,W.qY]),void 0!==n.strokeStyle&&this.hitDetectionInstructions.push([z.SET_STROKE_STYLE,n.strokeStyle,n.lineWidth,n.lineCap,n.lineJoin,n.miterLimit,W.Oq,W.vk]);const o=t.getFlatCoordinates(),a=t.getStride(),s=this.coordinates.length;this.appendFlatLineCoordinates(o,0,o.length,a,!1,!1);const l=[z.CIRCLE,s];this.instructions.push(F,l),this.hitDetectionInstructions.push(F,l),void 0!==n.fillStyle&&(this.instructions.push(O),this.hitDetectionInstructions.push(O)),void 0!==n.strokeStyle&&(this.instructions.push(N),this.hitDetectionInstructions.push(N)),this.endGeometry(e)}drawPolygon(t,e){const n=this.state,i=n.fillStyle,r=n.strokeStyle;if(void 0===i&&void 0===r)return;this.setFillStrokeStyles_(),this.beginGeometry(t,e),void 0!==n.fillStyle&&this.hitDetectionInstructions.push([z.SET_FILL_STYLE,W.qY]),void 0!==n.strokeStyle&&this.hitDetectionInstructions.push([z.SET_STROKE_STYLE,n.strokeStyle,n.lineWidth,n.lineCap,n.lineJoin,n.miterLimit,W.Oq,W.vk]);const o=t.getEnds(),a=t.getOrientedFlatCoordinates(),s=t.getStride();this.drawFlatCoordinatess_(a,0,o,s),this.endGeometry(e)}drawMultiPolygon(t,e){const n=this.state,i=n.fillStyle,r=n.strokeStyle;if(void 0===i&&void 0===r)return;this.setFillStrokeStyles_(),this.beginGeometry(t,e),void 0!==n.fillStyle&&this.hitDetectionInstructions.push([z.SET_FILL_STYLE,W.qY]),void 0!==n.strokeStyle&&this.hitDetectionInstructions.push([z.SET_STROKE_STYLE,n.strokeStyle,n.lineWidth,n.lineCap,n.lineJoin,n.miterLimit,W.Oq,W.vk]);const o=t.getEndss(),a=t.getOrientedFlatCoordinates(),s=t.getStride();let l=0;for(let h=0,c=o.length;h<c;++h)l=this.drawFlatCoordinatess_(a,l,o[h],s);this.endGeometry(e)}finish(){this.reverseHitDetectionInstructions(),this.state=null;const t=this.tolerance;if(0!==t){const e=this.coordinates;for(let n=0,i=e.length;n<i;++n)e[n]=(0,K.n$)(e[n],t)}return super.finish()}setFillStrokeStyles_(){const t=this.state;void 0!==t.fillStyle&&this.updateFillStyle(t,this.createFill),void 0!==t.strokeStyle&&this.updateStrokeStyle(t,this.applyStroke)}};var Q=n(2878);function tt(t,e,n,i,r){const o=[];let a=n,s=0,l=e.slice(n,2);for(;s<t&&a+r<i;){const[n,i]=l.slice(-2),h=e[a+r],c=e[a+r+1],u=Math.sqrt((h-n)*(h-n)+(c-i)*(c-i));if(s+=u,s>=t){const e=(t-s+u)/u,d=(0,Q.Cc)(n,h,e),p=(0,Q.Cc)(i,c,e);l.push(d,p),o.push(l),l=[d,p],s==t&&(a+=r),s=0}else if(s<t)l.push(e[a+r],e[a+r+1]),a+=r;else{const t=u-s,e=(0,Q.Cc)(n,h,t/u),d=(0,Q.Cc)(i,c,t/u);l.push(e,d),o.push(l),l=[e,d],s=0,a+=r}}return s>0&&o.push(l),o}function et(t,e,n,i,r){let o,a,s,l,h,c,u,d,p,f,g=n,m=n,v=0,y=0,_=n;for(a=n;a<i;a+=r){const n=e[a],i=e[a+1];void 0!==h&&(p=n-h,f=i-c,l=Math.sqrt(p*p+f*f),void 0!==u&&(y+=s,o=Math.acos((u*p+d*f)/(s*l)),o>t&&(y>v&&(v=y,g=_,m=a),y=0,_=a-r)),s=l,u=p,d=f),h=n,c=i}return y+=l,y>v?[_,a]:[g,m]}const nt={left:0,center:.5,right:1,top:0,middle:.5,hanging:.2,alphabetic:.8,ideographic:.8,bottom:1};const it=class extends Y{constructor(t,e,n,i){super(t,e,n,i),this.labels_=null,this.text_="",this.textOffsetX_=0,this.textOffsetY_=0,this.textRotateWithView_=void 0,this.textRotation_=0,this.textFillState_=null,this.fillStates={},this.fillStates[W.qY]={fillStyle:W.qY},this.textStrokeState_=null,this.strokeStates={},this.textState_={},this.textStates={},this.textKey_="",this.fillKey_="",this.strokeKey_="",this.declutterImageWithText_=void 0}finish(){const t=super.finish();return t.textStates=this.textStates,t.fillStates=this.fillStates,t.strokeStates=this.strokeStates,t}drawText(t,e){const n=this.textFillState_,i=this.textStrokeState_,r=this.textState_;if(""===this.text_||!r||!n&&!i)return;const o=this.coordinates;let a=o.length;const s=t.getType();let l=null,h=t.getStride();if("line"!==r.placement||"LineString"!=s&&"MultiLineString"!=s&&"Polygon"!=s&&"MultiPolygon"!=s){let n=r.overflow?null:[];switch(s){case"Point":case"MultiPoint":l=t.getFlatCoordinates();break;case"LineString":l=t.getFlatMidpoint();break;case"Circle":l=t.getCenter();break;case"MultiLineString":l=t.getFlatMidpoints(),h=2;break;case"Polygon":l=t.getFlatInteriorPoint(),r.overflow||n.push(l[2]/this.resolution),h=3;break;case"MultiPolygon":const e=t.getFlatInteriorPoints();l=[];for(let t=0,i=e.length;t<i;t+=3)r.overflow||n.push(e[t+2]/this.resolution),l.push(e[t],e[t+1]);if(0===l.length)return;h=2}const i=this.appendFlatPointCoordinates(l,h);if(i===a)return;if(n&&(i-a)/2!=l.length/h){let t=a/2;n=n.filter(((e,n)=>{const i=o[2*(t+n)]===l[n*h]&&o[2*(t+n)+1]===l[n*h+1];return i||--t,i}))}this.saveTextStates_(),(r.backgroundFill||r.backgroundStroke)&&(this.setFillStrokeStyle(r.backgroundFill,r.backgroundStroke),r.backgroundFill&&this.updateFillStyle(this.state,this.createFill),r.backgroundStroke&&(this.updateStrokeStyle(this.state,this.applyStroke),this.hitDetectionInstructions.push(this.createStroke(this.state)))),this.beginGeometry(t,e);let c=r.padding;if(c!=W.Tq&&(r.scale[0]<0||r.scale[1]<0)){let t=r.padding[0],e=r.padding[1],n=r.padding[2],i=r.padding[3];r.scale[0]<0&&(e=-e,i=-i),r.scale[1]<0&&(t=-t,n=-n),c=[t,e,n,i]}const u=this.pixelRatio;this.instructions.push([z.DRAW_IMAGE,a,i,null,NaN,NaN,NaN,1,0,0,this.textRotateWithView_,this.textRotation_,[1,1],NaN,void 0,this.declutterImageWithText_,c==W.Tq?W.Tq:c.map((function(t){return t*u})),!!r.backgroundFill,!!r.backgroundStroke,this.text_,this.textKey_,this.strokeKey_,this.fillKey_,this.textOffsetX_,this.textOffsetY_,n]);const d=1/u,p=this.state.fillStyle;r.backgroundFill&&(this.state.fillStyle=W.qY,this.hitDetectionInstructions.push(this.createFill(this.state))),this.hitDetectionInstructions.push([z.DRAW_IMAGE,a,i,null,NaN,NaN,NaN,1,0,0,this.textRotateWithView_,this.textRotation_,[d,d],NaN,void 0,this.declutterImageWithText_,c,!!r.backgroundFill,!!r.backgroundStroke,this.text_,this.textKey_,this.strokeKey_,this.fillKey_?W.qY:this.fillKey_,this.textOffsetX_,this.textOffsetY_,n]),r.backgroundFill&&(this.state.fillStyle=p,this.hitDetectionInstructions.push(this.createFill(this.state))),this.endGeometry(e)}else{if(!(0,H.HY)(this.getBufferedMaxExtent(),t.getExtent()))return;let n;if(l=t.getFlatCoordinates(),"LineString"==s)n=[l.length];else if("MultiLineString"==s)n=t.getEnds();else if("Polygon"==s)n=t.getEnds().slice(0,1);else if("MultiPolygon"==s){const e=t.getEndss();n=[];for(let t=0,i=e.length;t<i;++t)n.push(e[t][0])}this.beginGeometry(t,e);const i=r.repeat,c=i?void 0:r.textAlign;let u=0;for(let t=0,e=n.length;t<e;++t){let e;e=i?tt(i*this.resolution,l,u,n[t],h):[l.slice(u,n[t])];for(let i=0,s=e.length;i<s;++i){const s=e[i];let l=0,d=s.length;if(null==c){const t=et(r.maxAngle,s,0,s.length,2);l=t[0],d=t[1]}for(let t=l;t<d;t+=h)o.push(s[t],s[t+1]);const p=o.length;u=n[t],this.drawChars_(a,p),a=p}}this.endGeometry(e)}}saveTextStates_(){const t=this.textStrokeState_,e=this.textState_,n=this.textFillState_,i=this.strokeKey_;t&&(i in this.strokeStates||(this.strokeStates[i]={strokeStyle:t.strokeStyle,lineCap:t.lineCap,lineDashOffset:t.lineDashOffset,lineWidth:t.lineWidth,lineJoin:t.lineJoin,miterLimit:t.miterLimit,lineDash:t.lineDash}));const r=this.textKey_;r in this.textStates||(this.textStates[r]={font:e.font,textAlign:e.textAlign||W.MY,justify:e.justify,textBaseline:e.textBaseline||W.M8,scale:e.scale});const o=this.fillKey_;n&&(o in this.fillStates||(this.fillStates[o]={fillStyle:n.fillStyle}))}drawChars_(t,e){const n=this.textStrokeState_,i=this.textState_,r=this.strokeKey_,o=this.textKey_,a=this.fillKey_;this.saveTextStates_();const s=this.pixelRatio,l=nt[i.textBaseline],h=this.textOffsetY_*s,c=this.text_,u=n?n.lineWidth*Math.abs(i.scale[0])/2:0;this.instructions.push([z.DRAW_CHARS,t,e,l,i.overflow,a,i.maxAngle,s,h,r,u*s,c,o,1]),this.hitDetectionInstructions.push([z.DRAW_CHARS,t,e,l,i.overflow,a?W.qY:a,i.maxAngle,1,h,r,u,c,o,1/s])}setTextStyle(t,e){let n,i,r;if(t){const e=t.getFill();e?(i=this.textFillState_,i||(i={},this.textFillState_=i),i.fillStyle=(0,j.F)(e.getColor()||W.qY)):(i=null,this.textFillState_=i);const o=t.getStroke();if(o){r=this.textStrokeState_,r||(r={},this.textStrokeState_=r);const t=o.getLineDash(),e=o.getLineDashOffset(),n=o.getWidth(),i=o.getMiterLimit();r.lineCap=o.getLineCap()||W._m,r.lineDash=t?t.slice():W.Oq,r.lineDashOffset=void 0===e?W.vk:e,r.lineJoin=o.getLineJoin()||W._K,r.lineWidth=void 0===n?W.aq:n,r.miterLimit=void 0===i?W.eL:i,r.strokeStyle=(0,j.F)(o.getColor()||W.NT)}else r=null,this.textStrokeState_=r;n=this.textState_;const a=t.getFont()||W.ZV;(0,W.fZ)(a);const s=t.getScaleArray();n.overflow=t.getOverflow(),n.font=a,n.maxAngle=t.getMaxAngle(),n.placement=t.getPlacement(),n.textAlign=t.getTextAlign(),n.repeat=t.getRepeat(),n.justify=t.getJustify(),n.textBaseline=t.getTextBaseline()||W.M8,n.backgroundFill=t.getBackgroundFill(),n.backgroundStroke=t.getBackgroundStroke(),n.padding=t.getPadding()||W.Tq,n.scale=void 0===s?[1,1]:s;const l=t.getOffsetX(),h=t.getOffsetY(),c=t.getRotateWithView(),u=t.getRotation();this.text_=t.getText()||"",this.textOffsetX_=void 0===l?0:l,this.textOffsetY_=void 0===h?0:h,this.textRotateWithView_=void 0!==c&&c,this.textRotation_=void 0===u?0:u,this.strokeKey_=r?("string"==typeof r.strokeStyle?r.strokeStyle:(0,_.v6)(r.strokeStyle))+r.lineCap+r.lineDashOffset+"|"+r.lineWidth+r.lineJoin+r.miterLimit+"["+r.lineDash.join()+"]":"",this.textKey_=n.font+n.scale+(n.textAlign||"?")+(n.repeat||"?")+(n.justify||"?")+(n.textBaseline||"?"),this.fillKey_=i?"string"==typeof i.fillStyle?i.fillStyle:"|"+(0,_.v6)(i.fillStyle):""}else this.text_="";this.declutterImageWithText_=e}},rt={Circle:J,Default:Y,Image:Z,LineString:$,Polygon:J,Text:it};const ot=class{constructor(t,e,n,i){this.tolerance_=t,this.maxExtent_=e,this.pixelRatio_=i,this.resolution_=n,this.buildersByZIndex_={}}finish(){const t={};for(const e in this.buildersByZIndex_){t[e]=t[e]||{};const n=this.buildersByZIndex_[e];for(const i in n){const r=n[i].finish();t[e][i]=r}}return t}getBuilder(t,e){const n=void 0!==t?t.toString():"0";let i=this.buildersByZIndex_[n];void 0===i&&(i={},this.buildersByZIndex_[n]=i);let r=i[e];if(void 0===r){r=new(0,rt[e])(this.tolerance_,this.maxExtent_,this.resolution_,this.pixelRatio_),i[e]=r}return r}};var at=n(6627),st=n(686),lt=n(5415);function ht(t,e,n,i,r,o,a,s,l,h,c,u){let d=t[e],p=t[e+1],f=0,g=0,m=0,v=0;function y(){f=d,g=p,d=t[e+=i],p=t[e+1],v+=m,m=Math.sqrt((d-f)*(d-f)+(p-g)*(p-g))}do{y()}while(e<n-i&&v+m<o);let _=0===m?0:(o-v)/m;const x=(0,Q.Cc)(f,d,_),b=(0,Q.Cc)(g,p,_),w=e-i,S=v,T=o+s*l(h,r,c);for(;e<n-i&&v+m<T;)y();_=0===m?0:(T-v)/m;const M=(0,Q.Cc)(f,d,_),A=(0,Q.Cc)(g,p,_);let C;if(u){const t=[x,b,M,A];(0,lt.e$)(t,0,4,2,u,t,t),C=t[0]>t[2]}else C=x>M;const I=Math.PI,E=[],k=w+i===e;let L;if(m=0,v=S,d=t[e=w],p=t[e+1],k){y(),L=Math.atan2(p-g,d-f),C&&(L+=L>0?-I:I);const t=(M+x)/2,e=(A+b)/2;return E[0]=[t,e,(T-o)/2,L,r],E}for(let D=0,P=(r=r.replace(/\n/g," ")).length;D<P;){y();let t=Math.atan2(p-g,d-f);if(C&&(t+=t>0?-I:I),void 0!==L){let e=t-L;if(e+=e>I?-2*I:e<-I?2*I:0,Math.abs(e)>a)return null}L=t;const u=D;let x=0;for(;D<P;++D){const t=s*l(h,r[C?P-D-1:D],c);if(e+i<n&&v+m<o+x+t/2)break;x+=t}if(D===u)continue;const b=C?r.substring(P-u,P-D):r.substring(u,D);_=0===m?0:(o+x/2-v)/m;const w=(0,Q.Cc)(f,d,_),S=(0,Q.Cc)(g,p,_);E.push([w,S,x/2,t,b]),o+=x}return E}var ct=n(7175);const ut=(0,H.S5)(),dt=[],pt=[],ft=[],gt=[];function mt(t){return t[3].declutterBox}const vt=new RegExp("["+String.fromCharCode(1425)+"-"+String.fromCharCode(2303)+String.fromCharCode(64285)+"-"+String.fromCharCode(65023)+String.fromCharCode(65136)+"-"+String.fromCharCode(65276)+String.fromCharCode(67584)+"-"+String.fromCharCode(69631)+String.fromCharCode(124928)+"-"+String.fromCharCode(126975)+"]");function yt(t,e){return"start"===e?e=vt.test(t)?"right":"left":"end"===e&&(e=vt.test(t)?"left":"right"),nt[e]}function _t(t,e,n){return n>0&&t.push("\n",""),t.push(e,""),t}const xt=class{constructor(t,e,n,i){this.overlaps=n,this.pixelRatio=e,this.resolution=t,this.alignFill_,this.instructions=i.instructions,this.coordinates=i.coordinates,this.coordinateCache_={},this.renderedTransform_=(0,st.vt)(),this.hitDetectionInstructions=i.hitDetectionInstructions,this.pixelCoordinates_=null,this.viewRotation_=0,this.fillStates=i.fillStates||{},this.strokeStates=i.strokeStates||{},this.textStates=i.textStates||{},this.widths_={},this.labels_={}}createLabel(t,e,n,i){const r=t+e+n+i;if(this.labels_[r])return this.labels_[r];const o=i?this.strokeStates[i]:null,a=n?this.fillStates[n]:null,s=this.textStates[e],l=this.pixelRatio,h=[s.scale[0]*l,s.scale[1]*l],c=Array.isArray(t),u=s.justify?nt[s.justify]:yt(Array.isArray(t)?t[0]:t,s.textAlign||W.MY),d=i&&o.lineWidth?o.lineWidth:0,p=c?t:t.split("\n").reduce(_t,[]),{width:f,height:g,widths:m,heights:v,lineWidths:y}=(0,W.jT)(s,p),_=f+d,x=[],b=(_+2)*h[0],w=(g+d)*h[1],S={width:b<0?Math.floor(b):Math.ceil(b),height:w<0?Math.floor(w):Math.ceil(w),contextInstructions:x};1==h[0]&&1==h[1]||x.push("scale",h),i&&(x.push("strokeStyle",o.strokeStyle),x.push("lineWidth",d),x.push("lineCap",o.lineCap),x.push("lineJoin",o.lineJoin),x.push("miterLimit",o.miterLimit),x.push("setLineDash",[o.lineDash]),x.push("lineDashOffset",o.lineDashOffset)),n&&x.push("fillStyle",a.fillStyle),x.push("textBaseline","middle"),x.push("textAlign","center");const T=.5-u;let M=u*_+T*d;const A=[],C=[];let I,E=0,k=0,L=0,D=0;for(let P=0,R=p.length;P<R;P+=2){const t=p[P];if("\n"===t){k+=E,E=0,M=u*_+T*d,++D;continue}const e=p[P+1]||s.font;e!==I&&(i&&A.push("font",e),n&&C.push("font",e),I=e),E=Math.max(E,v[L]);const r=[t,M+T*m[L]+u*(m[L]-y[D]),.5*(d+E)+k];M+=m[L],i&&A.push("strokeText",r),n&&C.push("fillText",r),++L}return Array.prototype.push.apply(x,A),Array.prototype.push.apply(x,C),this.labels_[r]=S,S}replayTextBackground_(t,e,n,i,r,o,a){t.beginPath(),t.moveTo.apply(t,e),t.lineTo.apply(t,n),t.lineTo.apply(t,i),t.lineTo.apply(t,r),t.lineTo.apply(t,e),o&&(this.alignFill_=o[2],this.fill_(t)),a&&(this.setStrokeStyle_(t,a),t.stroke())}calculateImageOrLabelDimensions_(t,e,n,i,r,o,a,s,l,h,c,u,d,p,f,g){let m=n-(a*=u[0]),v=i-(s*=u[1]);const y=r+l>t?t-l:r,_=o+h>e?e-h:o,x=p[3]+y*u[0]+p[1],b=p[0]+_*u[1]+p[2],w=m-p[3],S=v-p[0];let T;return(f||0!==c)&&(dt[0]=w,gt[0]=w,dt[1]=S,pt[1]=S,pt[0]=w+x,ft[0]=pt[0],ft[1]=S+b,gt[1]=ft[1]),0!==c?(T=(0,st.Zz)((0,st.vt)(),n,i,1,1,c,-n,-i),(0,st.Bb)(T,dt),(0,st.Bb)(T,pt),(0,st.Bb)(T,ft),(0,st.Bb)(T,gt),(0,H.N)(Math.min(dt[0],pt[0],ft[0],gt[0]),Math.min(dt[1],pt[1],ft[1],gt[1]),Math.max(dt[0],pt[0],ft[0],gt[0]),Math.max(dt[1],pt[1],ft[1],gt[1]),ut)):(0,H.N)(Math.min(w,w+x),Math.min(S,S+b),Math.max(w,w+x),Math.max(S,S+b),ut),d&&(m=Math.round(m),v=Math.round(v)),{drawImageX:m,drawImageY:v,drawImageW:y,drawImageH:_,originX:l,originY:h,declutterBox:{minX:ut[0],minY:ut[1],maxX:ut[2],maxY:ut[3],value:g},canvasTransform:T,scale:u}}replayImageOrLabel_(t,e,n,i,r,o,a){const s=!(!o&&!a),l=i.declutterBox,h=t.canvas,c=a?a[2]*i.scale[0]/2:0;return l.minX-c<=h.width/e&&l.maxX+c>=0&&l.minY-c<=h.height/e&&l.maxY+c>=0&&(s&&this.replayTextBackground_(t,dt,pt,ft,gt,o,a),(0,W.Jw)(t,i.canvasTransform,r,n,i.originX,i.originY,i.drawImageW,i.drawImageH,i.drawImageX,i.drawImageY,i.scale)),!0}fill_(t){if(this.alignFill_){const e=(0,st.Bb)(this.renderedTransform_,[0,0]),n=512*this.pixelRatio;t.save(),t.translate(e[0]%n,e[1]%n),t.rotate(this.viewRotation_)}t.fill(),this.alignFill_&&t.restore()}setStrokeStyle_(t,e){t.strokeStyle=e[1],t.lineWidth=e[2],t.lineCap=e[3],t.lineJoin=e[4],t.miterLimit=e[5],t.lineDashOffset=e[7],t.setLineDash(e[6])}drawLabelWithPointPlacement_(t,e,n,i){const r=this.textStates[e],o=this.createLabel(t,e,i,n),a=this.strokeStates[n],s=this.pixelRatio,l=yt(Array.isArray(t)?t[0]:t,r.textAlign||W.MY),h=nt[r.textBaseline||W.M8],c=a&&a.lineWidth?a.lineWidth:0;return{label:o,anchorX:l*(o.width/s-2*r.scale[0])+2*(.5-l)*c,anchorY:h*o.height/s+2*(.5-h)*c}}execute_(t,e,n,i,r,o,a,s){let l;this.pixelCoordinates_&&(0,U.aI)(n,this.renderedTransform_)?l=this.pixelCoordinates_:(this.pixelCoordinates_||(this.pixelCoordinates_=[]),l=(0,lt.Rc)(this.coordinates,0,this.coordinates.length,2,n,this.pixelCoordinates_),(0,st.k3)(this.renderedTransform_,n));let h=0;const c=i.length;let u,d,p,f,g,m,v,y,_,x,b,w,S=0,T=0,M=0,A=null,C=null;const I=this.coordinateCache_,E=this.viewRotation_,k=Math.round(1e12*Math.atan2(-n[1],n[0]))/1e12,L={context:t,pixelRatio:this.pixelRatio,resolution:this.resolution,rotation:E},D=this.instructions!=i||this.overlaps?0:200;let P,R,O,N;for(;h<c;){const n=i[h];switch(n[0]){case z.BEGIN_GEOMETRY:P=n[1],N=n[3],P.getGeometry()?void 0===a||(0,H.HY)(a,N.getExtent())?++h:h=n[2]+1:h=n[2];break;case z.BEGIN_PATH:T>D&&(this.fill_(t),T=0),M>D&&(t.stroke(),M=0),T||M||(t.beginPath(),f=NaN,g=NaN),++h;break;case z.CIRCLE:S=n[1];const i=l[S],c=l[S+1],F=l[S+2]-i,B=l[S+3]-c,G=Math.sqrt(F*F+B*B);t.moveTo(i+G,c),t.arc(i,c,G,0,2*Math.PI,!0),++h;break;case z.CLOSE_PATH:t.closePath(),++h;break;case z.CUSTOM:S=n[1],u=n[2];const V=n[3],j=n[4],U=6==n.length?n[5]:void 0;L.geometry=V,L.feature=P,h in I||(I[h]=[]);const q=I[h];U?U(l,S,u,2,q):(q[0]=l[S],q[1]=l[S+1],q.length=2),j(q,L),++h;break;case z.DRAW_IMAGE:S=n[1],u=n[2],y=n[3],d=n[4],p=n[5];let X=n[6];const Y=n[7],Z=n[8],$=n[9],K=n[10];let J=n[11];const Q=n[12];let tt=n[13];const et=n[14],nt=n[15];if(!y&&n.length>=20){_=n[19],x=n[20],b=n[21],w=n[22];const t=this.drawLabelWithPointPlacement_(_,x,b,w);y=t.label,n[3]=y;const e=n[23];d=(t.anchorX-e)*this.pixelRatio,n[4]=d;const i=n[24];p=(t.anchorY-i)*this.pixelRatio,n[5]=p,X=y.height,n[6]=X,tt=y.width,n[13]=tt}let it,rt,ot,at;n.length>25&&(it=n[25]),n.length>17?(rt=n[16],ot=n[17],at=n[18]):(rt=W.Tq,ot=!1,at=!1),K&&k?J+=E:K||k||(J-=E);let st=0;for(;S<u;S+=2){if(it&&it[st++]<tt/this.pixelRatio)continue;const n=this.calculateImageOrLabelDimensions_(y.width,y.height,l[S],l[S+1],tt,X,d,p,Z,$,J,Q,r,rt,ot||at,P),i=[t,e,y,n,Y,ot?A:null,at?C:null];if(s){if("none"===et)continue;if("obstacle"===et){s.insert(n.declutterBox);continue}{let t,e;if(nt){const n=u-S;if(!nt[n]){nt[n]=i;continue}if(t=nt[n],delete nt[n],e=mt(t),s.collides(e))continue}if(s.collides(n.declutterBox))continue;t&&(s.insert(e),this.replayImageOrLabel_.apply(this,t)),s.insert(n.declutterBox)}}this.replayImageOrLabel_.apply(this,i)}++h;break;case z.DRAW_CHARS:const lt=n[1],ut=n[2],dt=n[3],pt=n[4];w=n[5];const ft=n[6],gt=n[7],vt=n[8];b=n[9];const _t=n[10];_=n[11],x=n[12];const xt=[n[13],n[13]],bt=this.textStates[x],wt=bt.font,St=[bt.scale[0]*gt,bt.scale[1]*gt];let Tt;wt in this.widths_?Tt=this.widths_[wt]:(Tt={},this.widths_[wt]=Tt);const Mt=(0,ct.k)(l,lt,ut,2),At=Math.abs(St[0])*(0,W.TA)(wt,_,Tt);if(pt||At<=Mt){const n=ht(l,lt,ut,2,_,(Mt-At)*yt(_,this.textStates[x].textAlign),ft,Math.abs(St[0]),W.TA,wt,Tt,k?0:this.viewRotation_);t:if(n){const i=[];let r,o,a,l,h;if(b)for(r=0,o=n.length;r<o;++r){h=n[r],a=h[4],l=this.createLabel(a,x,"",b),d=h[2]+(St[0]<0?-_t:_t),p=dt*l.height+2*(.5-dt)*_t*St[1]/St[0]-vt;const o=this.calculateImageOrLabelDimensions_(l.width,l.height,h[0],h[1],l.width,l.height,d,p,0,0,h[3],xt,!1,W.Tq,!1,P);if(s&&s.collides(o.declutterBox))break t;i.push([t,e,l,o,1,null,null])}if(w)for(r=0,o=n.length;r<o;++r){h=n[r],a=h[4],l=this.createLabel(a,x,w,""),d=h[2],p=dt*l.height-vt;const o=this.calculateImageOrLabelDimensions_(l.width,l.height,h[0],h[1],l.width,l.height,d,p,0,0,h[3],xt,!1,W.Tq,!1,P);if(s&&s.collides(o.declutterBox))break t;i.push([t,e,l,o,1,null,null])}s&&s.load(i.map(mt));for(let t=0,e=i.length;t<e;++t)this.replayImageOrLabel_.apply(this,i[t])}}++h;break;case z.END_GEOMETRY:if(void 0!==o){P=n[1];const t=o(P,N);if(t)return t}++h;break;case z.FILL:D?T++:this.fill_(t),++h;break;case z.MOVE_TO_LINE_TO:for(S=n[1],u=n[2],R=l[S],O=l[S+1],m=R+.5|0,v=O+.5|0,m===f&&v===g||(t.moveTo(R,O),f=m,g=v),S+=2;S<u;S+=2)R=l[S],O=l[S+1],m=R+.5|0,v=O+.5|0,S!=u-2&&m===f&&v===g||(t.lineTo(R,O),f=m,g=v);++h;break;case z.SET_FILL_STYLE:A=n,this.alignFill_=n[2],T&&(this.fill_(t),T=0,M&&(t.stroke(),M=0)),t.fillStyle=n[1],++h;break;case z.SET_STROKE_STYLE:C=n,M&&(t.stroke(),M=0),this.setStrokeStyle_(t,n),++h;break;case z.STROKE:D?M++:t.stroke(),++h;break;default:++h}}T&&this.fill_(t),M&&t.stroke()}execute(t,e,n,i,r,o){this.viewRotation_=i,this.execute_(t,e,n,this.instructions,r,void 0,void 0,o)}executeHitDetection(t,e,n,i,r){return this.viewRotation_=n,this.execute_(t,1,e,this.hitDetectionInstructions,!0,i,r)}};var bt=n(6943);const wt=["Polygon","Circle","LineString","Image","Text","Default"];const St={};const Tt=class{constructor(t,e,n,i,r,o){this.maxExtent_=t,this.overlaps_=i,this.pixelRatio_=n,this.resolution_=e,this.renderBuffer_=o,this.executorsByZIndex_={},this.hitDetectionContext_=null,this.hitDetectionTransform_=(0,st.vt)(),this.createExecutors_(r)}clip(t,e){const n=this.getClipCoords(e);t.beginPath(),t.moveTo(n[0],n[1]),t.lineTo(n[2],n[3]),t.lineTo(n[4],n[5]),t.lineTo(n[6],n[7]),t.clip()}createExecutors_(t){for(const e in t){let n=this.executorsByZIndex_[e];void 0===n&&(n={},this.executorsByZIndex_[e]=n);const i=t[e];for(const t in i){const e=i[t];n[t]=new xt(this.resolution_,this.pixelRatio_,this.overlaps_,e)}}}hasExecutors(t){for(const e in this.executorsByZIndex_){const n=this.executorsByZIndex_[e];for(let e=0,i=t.length;e<i;++e)if(t[e]in n)return!0}return!1}forEachFeatureAtCoordinate(t,e,n,i,r,o){const a=2*(i=Math.round(i))+1,s=(0,st.Zz)(this.hitDetectionTransform_,i+.5,i+.5,1/e,-1/e,-n,-t[0],-t[1]),l=!this.hitDetectionContext_;l&&(this.hitDetectionContext_=(0,f.Y)(a,a,void 0,{willReadFrequently:!0}));const h=this.hitDetectionContext_;let c;h.canvas.width!==a||h.canvas.height!==a?(h.canvas.width=a,h.canvas.height=a):l||h.clearRect(0,0,a,a),void 0!==this.renderBuffer_&&(c=(0,H.S5)(),(0,H.$C)(c,t),(0,H.r)(c,e*(this.renderBuffer_+i),c));const u=function(t){if(void 0!==St[t])return St[t];const e=2*t+1,n=t*t,i=new Array(n+1);for(let o=0;o<=t;++o)for(let r=0;r<=t;++r){const a=o*o+r*r;if(a>n)break;let s=i[a];s||(s=[],i[a]=s),s.push(4*((t+o)*e+(t+r))+3),o>0&&s.push(4*((t-o)*e+(t+r))+3),r>0&&(s.push(4*((t+o)*e+(t-r))+3),o>0&&s.push(4*((t-o)*e+(t-r))+3))}const r=[];for(let o=0,a=i.length;o<a;++o)i[o]&&r.push(...i[o]);return St[t]=r,r}(i);let d;function p(t,e){const n=h.getImageData(0,0,a,a).data;for(let s=0,l=u.length;s<l;s++)if(n[u[s]]>0){if(!o||"Image"!==d&&"Text"!==d||o.includes(t)){const n=(u[s]-3)/4,o=i-n%a,l=i-(n/a|0),h=r(t,e,o*o+l*l);if(h)return h}h.clearRect(0,0,a,a);break}}const g=Object.keys(this.executorsByZIndex_).map(Number);let m,v,y,_,x;for(g.sort(U.V_),m=g.length-1;m>=0;--m){const t=g[m].toString();for(y=this.executorsByZIndex_[t],v=wt.length-1;v>=0;--v)if(d=wt[v],_=y[d],void 0!==_&&(x=_.executeHitDetection(h,s,n,p,c),x))return x}}getClipCoords(t){const e=this.maxExtent_;if(!e)return null;const n=e[0],i=e[1],r=e[2],o=e[3],a=[n,i,n,o,r,o,r,i];return(0,lt.Rc)(a,0,8,2,t,a),a}isEmpty(){return(0,bt.p)(this.executorsByZIndex_)}execute(t,e,n,i,r,o,a){const s=Object.keys(this.executorsByZIndex_).map(Number);let l,h,c,u,d,p;for(s.sort(U.V_),this.maxExtent_&&(t.save(),this.clip(t,n)),o=o||wt,a&&s.reverse(),l=0,h=s.length;l<h;++l){const h=s[l].toString();for(d=this.executorsByZIndex_[h],c=0,u=o.length;c<u;++c){p=d[o[c]],void 0!==p&&p.execute(t,e,n,i,r,a)}}this.maxExtent_&&t.restore()}};var Mt=n(4431),At=n(8856),Ct=n(8774);const It=.5;var Et=n(9841),kt=n(6859),Lt=n(6234);class Dt extends at.A{constructor(t){super(t),this.boundHandleStyleImageChange_=this.handleStyleImageChange_.bind(this),this.animatingOrInteracting_,this.hitDetectionImageData_=null,this.renderedFeatures_=null,this.renderedRevision_=-1,this.renderedResolution_=NaN,this.renderedExtent_=(0,H.S5)(),this.wrappedRenderedExtent_=(0,H.S5)(),this.renderedRotation_,this.renderedCenter_=null,this.renderedProjection_=null,this.renderedRenderOrder_=null,this.replayGroup_=null,this.replayGroupChanged=!0,this.declutterExecutorGroup=null,this.clipping=!0,this.compositionContext_=null,this.opacity_=1}renderWorlds(t,e,n){const i=e.extent,r=e.viewState,o=r.center,a=r.resolution,s=r.projection,l=r.rotation,h=s.getExtent(),c=this.getLayer().getSource(),u=e.pixelRatio,d=e.viewHints,p=!(d[At.A.ANIMATING]||d[At.A.INTERACTING]),f=this.compositionContext_,g=Math.round(e.size[0]*u),m=Math.round(e.size[1]*u),v=c.getWrapX()&&s.canWrapX(),y=v?(0,H.RG)(h):null,_=v?Math.ceil((i[2]-h[2])/y)+1:1;let x=v?Math.floor((i[0]-h[0])/y):0;do{const e=this.getRenderTransform(o,a,l,u,g,m,x*y);t.execute(f,1,e,l,p,void 0,n)}while(++x<_)}setupCompositionContext_(){if(1!==this.opacity_){const t=(0,f.Y)(this.context.canvas.width,this.context.canvas.height,at.B);this.compositionContext_=t}else this.compositionContext_=this.context}releaseCompositionContext_(){if(1!==this.opacity_){const t=this.context.globalAlpha;this.context.globalAlpha=this.opacity_,this.context.drawImage(this.compositionContext_.canvas,0,0),this.context.globalAlpha=t,(0,f.Yg)(this.compositionContext_),at.B.push(this.compositionContext_.canvas),this.compositionContext_=null}}renderDeclutter(t){this.declutterExecutorGroup&&(this.setupCompositionContext_(),this.renderWorlds(this.declutterExecutorGroup,t,t.declutterTree),this.releaseCompositionContext_())}renderFrame(t,e){const n=t.pixelRatio,i=t.layerStatesArray[t.layerIndex];(0,st.rQ)(this.pixelTransform,1/n,1/n),(0,st.T9)(this.inversePixelTransform,this.pixelTransform);const r=(0,st.dI)(this.pixelTransform);this.useContainer(e,r,this.getBackground(t));const o=this.context,a=o.canvas,s=this.replayGroup_,l=this.declutterExecutorGroup;let h=s&&!s.isEmpty()||l&&!l.isEmpty();if(!h){if(!(this.getLayer().hasListener(Mt.A.PRERENDER)||this.getLayer().hasListener(Mt.A.POSTRENDER)))return null}const c=Math.round(t.size[0]*n),u=Math.round(t.size[1]*n);a.width!=c||a.height!=u?(a.width=c,a.height=u,a.style.transform!==r&&(a.style.transform=r)):this.containerReused||o.clearRect(0,0,c,u),this.preRender(o,t);const d=t.viewState,p=d.projection;this.opacity_=i.opacity,this.setupCompositionContext_();let f=!1;if(h&&i.extent&&this.clipping){const e=(0,kt.SD)(i.extent,p);h=(0,H.HY)(e,t.extent),f=h&&!(0,H.ms)(e,t.extent),f&&this.clipUnrotated(this.compositionContext_,t,e)}return h&&this.renderWorlds(s,t),f&&this.compositionContext_.restore(),this.releaseCompositionContext_(),this.postRender(o,t),this.renderedRotation_!==d.rotation&&(this.renderedRotation_=d.rotation,this.hitDetectionImageData_=null),this.container}getFeatures(t){return new Promise((e=>{if(!this.hitDetectionImageData_&&!this.animatingOrInteracting_){const t=[this.context.canvas.width,this.context.canvas.height];(0,st.Bb)(this.pixelTransform,t);const e=this.renderedCenter_,n=this.renderedResolution_,i=this.renderedRotation_,r=this.renderedProjection_,o=this.wrappedRenderedExtent_,a=this.getLayer(),s=[],l=t[0]*It,h=t[1]*It;s.push(this.getRenderTransform(e,n,i,It,l,h,0).slice());const c=a.getSource(),u=r.getExtent();if(c.getWrapX()&&r.canWrapX()&&!(0,H.ms)(u,o)){let t=o[0];const r=(0,H.RG)(u);let a,c=0;for(;t<u[0];)--c,a=r*c,s.push(this.getRenderTransform(e,n,i,It,l,h,a).slice()),t+=r;for(c=0,t=o[2];t>u[2];)++c,a=r*c,s.push(this.getRenderTransform(e,n,i,It,l,h,a).slice()),t-=r}this.hitDetectionImageData_=function(t,e,n,i,r,o,a){const s=t[0]*It,l=t[1]*It,h=(0,f.Y)(s,l);h.imageSmoothingEnabled=!1;const c=h.canvas,u=new Ct.A(h,It,r,null,a),d=n.length,p=Math.floor(16777215/d),g={};for(let v=1;v<=d;++v){const t=n[v-1],e=t.getStyleFunction()||i;if(!e)continue;let a=e(t,o);if(!a)continue;Array.isArray(a)||(a=[a]);const s=(v*p).toString(16).padStart(7,"#00000");for(let n=0,i=a.length;n<i;++n){const e=a[n],i=e.getGeometryFunction()(t);if(!i||!(0,H.HY)(r,i.getExtent()))continue;const o=e.clone(),l=o.getFill();l&&l.setColor(s);const h=o.getStroke();h&&(h.setColor(s),h.setLineDash(null)),o.setText(void 0);const c=e.getImage();if(c){const t=c.getImageSize();if(!t)continue;const e=(0,f.Y)(t[0],t[1],void 0,{alpha:!1}),n=e.canvas;e.fillStyle=s,e.fillRect(0,0,n.width,n.height),o.setImage(new w({img:n,imgSize:t,anchor:c.getAnchor(),anchorXUnits:"pixels",anchorYUnits:"pixels",offset:c.getOrigin(),opacity:1,size:c.getSize(),scale:c.getScale(),rotation:c.getRotation(),rotateWithView:c.getRotateWithView()}))}const u=o.getZIndex()||0;let d=g[u];d||(d={},g[u]=d,d.Polygon=[],d.Circle=[],d.LineString=[],d.Point=[]);const p=i.getType();if("GeometryCollection"===p){const t=i.getGeometriesArrayRecursive();for(let e=0,n=t.length;e<n;++e){const n=t[e];d[n.getType().replace("Multi","")].push(n,o)}}else d[p.replace("Multi","")].push(i,o)}}const m=Object.keys(g).map(Number).sort(U.V_);for(let f=0,v=m.length;f<v;++f){const t=g[m[f]];for(const n in t){const i=t[n];for(let t=0,n=i.length;t<n;t+=2){u.setStyle(i[t+1]);for(let n=0,r=e.length;n<r;++n)u.setTransform(e[n]),u.drawGeometry(i[t])}}}return h.getImageData(0,0,c.width,c.height)}(t,s,this.renderedFeatures_,a.getStyleFunction(),o,n,i)}e(function(t,e,n){const i=[];if(n){const r=Math.floor(Math.round(t[0])*It),o=Math.floor(Math.round(t[1])*It),a=4*((0,Q.qE)(r,0,n.width-1)+(0,Q.qE)(o,0,n.height-1)*n.width),s=n.data[a],l=n.data[a+1],h=n.data[a+2]+256*(l+256*s),c=Math.floor(16777215/e.length);h&&h%c==0&&i.push(e[h/c-1])}return i}(t,this.renderedFeatures_,this.hitDetectionImageData_))}))}forEachFeatureAtCoordinate(t,e,n,i,r){if(!this.replayGroup_)return;const o=e.viewState.resolution,a=e.viewState.rotation,s=this.getLayer(),l={},h=function(t,e,n){const o=(0,_.v6)(t),a=l[o];if(a){if(!0!==a&&n<a.distanceSq){if(0===n)return l[o]=!0,r.splice(r.lastIndexOf(a),1),i(t,s,e);a.geometry=e,a.distanceSq=n}}else{if(0===n)return l[o]=!0,i(t,s,e);r.push(l[o]={feature:t,layer:s,geometry:e,distanceSq:n,callback:i})}};let c;const u=[this.replayGroup_];return this.declutterExecutorGroup&&u.push(this.declutterExecutorGroup),u.some((i=>c=i.forEachFeatureAtCoordinate(t,o,a,n,h,i===this.declutterExecutorGroup&&e.declutterTree?e.declutterTree.all().map((t=>t.value)):null))),c}handleFontsChanged(){const t=this.getLayer();t.getVisible()&&this.replayGroup_&&t.changed()}handleStyleImageChange_(t){this.renderIfReadyAndVisible()}prepareFrame(t){const e=this.getLayer(),n=e.getSource();if(!n)return!1;const i=t.viewHints[At.A.ANIMATING],r=t.viewHints[At.A.INTERACTING],o=e.getUpdateWhileAnimating(),a=e.getUpdateWhileInteracting();if(this.ready&&!o&&i||!a&&r)return this.animatingOrInteracting_=!0,!0;this.animatingOrInteracting_=!1;const s=t.extent,l=t.viewState,h=l.projection,c=l.resolution,u=t.pixelRatio,d=e.getRevision(),p=e.getRenderBuffer();let f=e.getRenderOrder();void 0===f&&(f=Et.Eo);const g=l.center.slice(),m=(0,H.r)(s,p*c),v=m.slice(),y=[m.slice()],_=h.getExtent();if(n.getWrapX()&&h.canWrapX()&&!(0,H.ms)(_,t.extent)){const t=(0,H.RG)(_),e=Math.max((0,H.RG)(m)/2,t);m[0]=_[0]-e,m[2]=_[2]+e,(0,Lt.Li)(g,h);const n=(0,H.Li)(y[0],h);n[0]<_[0]&&n[2]<_[2]?y.push([n[0]+t,n[1],n[2]+t,n[3]]):n[0]>_[0]&&n[2]>_[2]&&y.push([n[0]-t,n[1],n[2]-t,n[3]])}if(this.ready&&this.renderedResolution_==c&&this.renderedRevision_==d&&this.renderedRenderOrder_==f&&(0,H.ms)(this.wrappedRenderedExtent_,m))return(0,U.aI)(this.renderedExtent_,v)||(this.hitDetectionImageData_=null,this.renderedExtent_=v),this.renderedCenter_=g,this.replayGroupChanged=!1,!0;this.replayGroup_=null;const x=new ot((0,Et.gY)(c,u),m,c,u);let b;this.getLayer().getDeclutter()&&(b=new ot((0,Et.gY)(c,u),m,c,u));const w=(0,kt.Tf)();let S;if(w){for(let t=0,e=y.length;t<e;++t){const e=y[t],i=(0,kt.JR)(e,h);n.loadFeatures(i,(0,kt.vN)(c,h),w)}S=(0,kt.FO)(w,h)}else for(let L=0,D=y.length;L<D;++L)n.loadFeatures(y[L],c,h);const T=(0,Et.j)(c,u);let M=!0;const A=t=>{let n;const i=t.getStyleFunction()||e.getStyleFunction();if(i&&(n=i(t,c)),n){const e=this.renderFeature(t,T,n,x,S,b);M=M&&!e}},C=(0,kt.JR)(m,h),I=n.getFeaturesInExtent(C);f&&I.sort(f);for(let L=0,D=I.length;L<D;++L)A(I[L]);this.renderedFeatures_=I,this.ready=M;const E=x.finish(),k=new Tt(m,c,u,n.getOverlaps(),E,e.getRenderBuffer());return b&&(this.declutterExecutorGroup=new Tt(m,c,u,n.getOverlaps(),b.finish(),e.getRenderBuffer())),this.renderedResolution_=c,this.renderedRevision_=d,this.renderedRenderOrder_=f,this.renderedExtent_=v,this.wrappedRenderedExtent_=m,this.renderedCenter_=g,this.renderedProjection_=h,this.replayGroup_=k,this.hitDetectionImageData_=null,this.replayGroupChanged=!0,!0}renderFeature(t,e,n,i,r,o){if(!n)return!1;let a=!1;if(Array.isArray(n))for(let s=0,l=n.length;s<l;++s)a=(0,Et.nl)(i,t,n[s],e,this.boundHandleStyleImageChange_,r,o)||a;else a=(0,Et.nl)(i,t,n,e,this.boundHandleStyleImageChange_,r,o);return a}}const Pt=Dt;const Rt=class extends P{constructor(t){super(t)}createRenderer(){return new Pt(this)}}},2878:(t,e,n)=>{"use strict";function i(t,e,n){return Math.min(Math.max(t,e),n)}function r(t,e,n,i,r,a){const s=r-n,l=a-i;if(0!==s||0!==l){const o=((t-n)*s+(e-i)*l)/(s*s+l*l);o>1?(n=r,i=a):o>0&&(n+=s*o,i+=l*o)}return o(t,e,n,i)}function o(t,e,n,i){const r=n-t,o=i-e;return r*r+o*o}function a(t){const e=t.length;for(let i=0;i<e;i++){let n=i,r=Math.abs(t[i][i]);for(let a=i+1;a<e;a++){const e=Math.abs(t[a][i]);e>r&&(r=e,n=a)}if(0===r)return null;const o=t[n];t[n]=t[i],t[i]=o;for(let a=i+1;a<e;a++){const n=-t[a][i]/t[i][i];for(let r=i;r<e+1;r++)i==r?t[a][r]=0:t[a][r]+=n*t[i][r]}}const n=new Array(e);for(let i=e-1;i>=0;i--){n[i]=t[i][e]/t[i][i];for(let r=i-1;r>=0;r--)t[r][e]-=t[r][i]*n[i]}return n}function s(t){return 180*t/Math.PI}function l(t){return t*Math.PI/180}function h(t,e){const n=t%e;return n*e<0?n+e:n}function c(t,e,n){return t+n*(e-t)}function u(t,e){const n=Math.pow(10,e);return Math.round(t*n)/n}function d(t,e){return Math.floor(u(t,e))}function p(t,e){return Math.ceil(u(t,e))}n.d(e,{Cc:()=>c,KU:()=>a,Mg:()=>u,Q1:()=>r,RI:()=>d,eh:()=>l,hG:()=>o,mk:()=>p,qE:()=>i,xP:()=>h,xW:()=>s})},6943:(t,e,n)=>{"use strict";function i(t){for(const e in t)delete t[e]}function r(t){let e;for(e in t)return!1;return!e}n.d(e,{I:()=>i,p:()=>r})},228:(t,e,n)=>{"use strict";n.d(e,{A:()=>i});const i={POINTERMOVE:"pointermove",POINTERDOWN:"pointerdown",POINTERUP:"pointerup",POINTEROVER:"pointerover",POINTEROUT:"pointerout",POINTERENTER:"pointerenter",POINTERLEAVE:"pointerleave",POINTERCANCEL:"pointercancel"}},6859:(t,e,n)=>{"use strict";n.d(e,{Ig:()=>v.I,MF:()=>i.A,hB:()=>O,O3:()=>D,bF:()=>E,Av:()=>P,wU:()=>Y,RJ:()=>A,tI:()=>N,Ad:()=>W,SD:()=>q,Jt:()=>k,hO:()=>L,RG:()=>B,FO:()=>F,Tf:()=>j,R6:()=>I,te:()=>H,JR:()=>U,vN:()=>X,pd:()=>z});var i=n(2735);const r=6378137,o=Math.PI*r,a=[-o,-o,o,o],s=[-180,-85,180,85],l=r*Math.log(Math.tan(Math.PI/2));class h extends i.A{constructor(t){super({code:t,units:"m",extent:a,global:!0,worldExtent:s,getPointResolution:function(t,e){return t/Math.cosh(e[1]/r)}})}}const c=[new h("EPSG:3857"),new h("EPSG:102100"),new h("EPSG:102113"),new h("EPSG:900913"),new h("http://www.opengis.net/def/crs/EPSG/0/3857"),new h("http://www.opengis.net/gml/srs/epsg.xml#3857")];function u(t,e,n){const i=t.length;n=n>1?n:2,void 0===e&&(e=n>2?t.slice():new Array(i));for(let a=0;a<i;a+=n){e[a]=o*t[a]/180;let n=r*Math.log(Math.tan(Math.PI*(+t[a+1]+90)/360));n>l?n=l:n<-l&&(n=-l),e[a+1]=n}return e}function d(t,e,n){const i=t.length;n=n>1?n:2,void 0===e&&(e=n>2?t.slice():new Array(i));for(let a=0;a<i;a+=n)e[a]=180*t[a]/o,e[a+1]=360*Math.atan(Math.exp(t[a+1]/r))/Math.PI-90;return e}const p=[-180,-90,180,90],f=6378137*Math.PI/180;class g extends i.A{constructor(t,e){super({code:t,units:"degrees",extent:p,axisOrientation:e,global:!0,metersPerUnit:f,worldExtent:p})}}const m=[new g("CRS:84"),new g("EPSG:4326","neu"),new g("urn:ogc:def:crs:OGC:1.3:CRS84"),new g("urn:ogc:def:crs:OGC:2:84"),new g("http://www.opengis.net/def/crs/OGC/1.3/CRS84"),new g("http://www.opengis.net/gml/srs/epsg.xml#4326","neu"),new g("http://www.opengis.net/def/crs/EPSG/0/4326","neu")];var v=n(971);let y={};var _=n(4535),x=n(4320),b=n(2878),w=n(6234),S=n(4913),T=n(4095);let M=!0;function A(t){M=!(void 0===t||t)}function C(t,e){if(void 0!==e)for(let n=0,i=t.length;n<i;++n)e[n]=t[n];else e=t.slice();return e}function I(t,e){if(void 0!==e&&t!==e){for(let n=0,i=t.length;n<i;++n)e[n]=t[n];t=e}return t}function E(t){!function(t,e){y[t]=e}(t.getCode(),t),(0,_.WQ)(t,t,C)}function k(t){return"string"==typeof t?y[e=t]||y[e.replace(/urn:(x-)?ogc:def:crs:EPSG:(.*:)?(\w+)$/,"EPSG:$3")]||null:t||null;var e}function L(t,e,n,i){let r;const o=(t=k(t)).getPointResolutionFunc();if(o){if(r=o(e,n),i&&i!==t.getUnits()){const e=t.getMetersPerUnit();e&&(r=r*e/v.I[i])}}else{const o=t.getUnits();if("degrees"==o&&!i||"degrees"==i)r=e;else{const a=F(t,k("EPSG:4326"));if(a===I&&"degrees"!==o)r=e*t.getMetersPerUnit();else{let t=[n[0]-e/2,n[1],n[0]+e/2,n[1],n[0],n[1]-e/2,n[0],n[1]+e/2];t=a(t,t,2);r=((0,S.Yf)(t.slice(0,2),t.slice(2,4))+(0,S.Yf)(t.slice(4,6),t.slice(6,8)))/2}const s=i?v.I[i]:t.getMetersPerUnit();void 0!==s&&(r/=s)}}return r}function D(t){!function(t){t.forEach(E)}(t),t.forEach((function(e){t.forEach((function(t){e!==t&&(0,_.WQ)(e,t,C)}))}))}function P(t,e){return t?"string"==typeof t?k(t):t:k(e)}function R(t){return function(e,n,i){const r=e.length;i=void 0!==i?i:2,n=void 0!==n?n:new Array(r);for(let o=0;o<r;o+=i){const r=t(e.slice(o,o+i)),a=r.length;for(let t=0,s=i;t<s;++t)n[o+t]=t>=a?e[o+t]:r[t]}return n}}function O(t,e,n,i){const r=k(t),o=k(e);(0,_.WQ)(r,o,R(n)),(0,_.WQ)(o,r,R(i))}function N(t,e){if(t===e)return!0;const n=t.getUnits()===e.getUnits();if(t.getCode()===e.getCode())return n;return F(t,e)===C&&n}function F(t,e){const n=t.getCode(),i=e.getCode();let r=(0,_.Jt)(n,i);return r||(r=I),r}function B(t,e){return F(k(t),k(e))}function z(t,e,n){return B(e,n)(t,void 0,t.length)}function G(t,e,n,i){const r=B(e,n);return(0,x.NW)(t,r,void 0,i)}let V=null;function j(){return V}function H(t,e){return V?z(t,e,V):t}function W(t,e){return V?z(t,V,e):(M&&!(0,w.aI)(t,[0,0])&&t[0]>=-180&&t[0]<=180&&t[1]>=-90&&t[1]<=90&&(M=!1,(0,T.R8)("Call useGeographic() from ol/proj once to work with [longitude, latitude] coordinates.")),t)}function U(t,e){return V?G(t,e,V):t}function q(t,e){return V?G(t,V,e):t}function X(t,e){if(!V)return t;const n=k(e).getUnits(),i=V.getUnits();return n&&i?t*v.I[n]/v.I[i]:t}function Y(t,e,n){return function(i){let r,o;if(t.canWrapX()){const e=t.getExtent(),a=(0,x.RG)(e);i=i.slice(0),o=(0,w.U$)(i,t,a),o&&(i[0]=i[0]-o*a),i[0]=(0,b.qE)(i[0],e[0],e[2]),i[1]=(0,b.qE)(i[1],e[1],e[3]),r=n(i)}else r=n(i);return o&&e.canWrapX()&&(r[0]+=o*(0,x.RG)(e.getExtent())),r}}var Z,$,K;D(c),D(m),Z=c,$=u,K=d,m.forEach((function(t){Z.forEach((function(e){(0,_.WQ)(t,e,$),(0,_.WQ)(e,t,K)}))}))},2735:(t,e,n)=>{"use strict";n.d(e,{A:()=>r});var i=n(971);const r=class{constructor(t){this.code_=t.code,this.units_=t.units,this.extent_=void 0!==t.extent?t.extent:null,this.worldExtent_=void 0!==t.worldExtent?t.worldExtent:null,this.axisOrientation_=void 0!==t.axisOrientation?t.axisOrientation:"enu",this.global_=void 0!==t.global&&t.global,this.canWrapX_=!(!this.global_||!this.extent_),this.getPointResolutionFunc_=t.getPointResolution,this.defaultTileGrid_=null,this.metersPerUnit_=t.metersPerUnit}canWrapX(){return this.canWrapX_}getCode(){return this.code_}getExtent(){return this.extent_}getUnits(){return this.units_}getMetersPerUnit(){return this.metersPerUnit_||i.I[this.units_]}getWorldExtent(){return this.worldExtent_}getAxisOrientation(){return this.axisOrientation_}isGlobal(){return this.global_}setGlobal(t){this.global_=t,this.canWrapX_=!(!t||!this.extent_)}getDefaultTileGrid(){return this.defaultTileGrid_}setDefaultTileGrid(t){this.defaultTileGrid_=t}setExtent(t){this.extent_=t,this.canWrapX_=!(!this.global_||!t)}setWorldExtent(t){this.worldExtent_=t}setGetPointResolution(t){this.getPointResolutionFunc_=t}getPointResolutionFunc(){return this.getPointResolutionFunc_}}},971:(t,e,n)=>{"use strict";n.d(e,{I:()=>i});const i={radians:6370997/(2*Math.PI),degrees:2*Math.PI*6370997/360,ft:.3048,m:1,"us-ft":1200/3937}},5505:(t,e,n)=>{"use strict";n.d(e,{kz:()=>s});var i=n(2735),r=n(6859),o=n(4535);let a=null;function s(t){a=t;const e=Object.keys(t.defs),n=e.length;let s,l;for(s=0;s<n;++s){const n=e[s];if(!(0,r.Jt)(n)){const e=t.defs(n);let o=e.units;o||"longlat"!==e.projName||(o="degrees"),(0,r.bF)(new i.A({code:n,axisOrientation:e.axis,metersPerUnit:e.to_meter,units:o}))}}for(s=0;s<n;++s){const i=e[s],a=(0,r.Jt)(i);for(l=0;l<n;++l){const n=e[l],s=(0,r.Jt)(n);if(!(0,o.Jt)(i,n))if(t.defs[i]===t.defs[n])(0,r.O3)([a,s]);else{const e=t(i,n);(0,r.hB)(a,s,(0,r.wU)(a,s,e.forward),(0,r.wU)(s,a,e.inverse))}}}}},4535:(t,e,n)=>{"use strict";n.d(e,{Jt:()=>o,WQ:()=>r});let i={};function r(t,e,n){const r=t.getCode(),o=e.getCode();r in i||(i[r]={}),i[r][o]=n}function o(t,e){let n;return t in i&&e in i[t]&&(n=i[t][e]),n}},6263:(t,e,n)=>{"use strict";n.d(e,{A:()=>o});var i=n(5026);class r extends i.Ay{constructor(t,e,n,i){super(t),this.inversePixelTransform=e,this.frameState=n,this.context=i}}const o=r},4431:(t,e,n)=>{"use strict";n.d(e,{A:()=>i});const i={PRERENDER:"prerender",POSTRENDER:"postrender",PRECOMPOSE:"precompose",POSTCOMPOSE:"postcompose",RENDERCOMPLETE:"rendercomplete"}},5473:(t,e,n)=>{"use strict";n.d(e,{A:()=>i});const i=class{drawCustom(t,e,n,i){}drawGeometry(t){}setStyle(t){}drawCircle(t,e){}drawFeature(t,e){}drawGeometryCollection(t,e){}drawLineString(t,e){}drawMultiLineString(t,e){}drawMultiPoint(t,e){}drawMultiPolygon(t,e){}drawPoint(t,e){}drawPolygon(t,e){}drawText(t,e){}setFillStrokeStyle(t,e){}setImageStyle(t,e){}setTextStyle(t,e){}}},1763:(t,e,n)=>{"use strict";n.d(e,{Jw:()=>k,M8:()=>v,MY:()=>m,NT:()=>g,Oq:()=>u,TA:()=>I,Tq:()=>y,ZV:()=>l,_K:()=>p,_m:()=>c,aq:()=>_,eL:()=>f,fZ:()=>T,jT:()=>E,qY:()=>h,vk:()=>d,yY:()=>x});var i=n(5191),r=n(6306),o=n(6943),a=n(7354),s=n(5433);const l="10px sans-serif",h="#000",c="round",u=[],d=0,p="round",f=10,g="#000",m="center",v="middle",y=[0,0,0,0],_=1,x=new i.A;let b,w=null;const S={},T=function(){const t="32px ",e=["monospace","serif"],n=e.length,i="wmytzilWMYTZIL@#/&?$%10\uf013";let r,a;function l(r,o,s){let l=!0;for(let h=0;h<n;++h){const n=e[h];if(a=C(r+" "+o+" "+t+n,i),s!=n){const e=C(r+" "+o+" "+t+s+","+n,i);l=l&&e!=a}}return!!l}function h(){let t=!0;const e=x.getKeys();for(let n=0,i=e.length;n<i;++n){const i=e[n];x.get(i)<100&&(l.apply(this,i.split("\n"))?((0,o.I)(S),w=null,b=void 0,x.set(i,100)):(x.set(i,x.get(i)+1,!0),t=!1))}t&&(clearInterval(r),r=void 0)}return function(t){const e=(0,s.K5)(t);if(!e)return;const n=e.families;for(let i=0,o=n.length;i<o;++i){const t=n[i],o=e.style+"\n"+e.weight+"\n"+t;void 0===x.get(o)&&(x.set(o,100,!0),l(e.style,e.weight,t)||(x.set(o,0,!0),void 0===r&&(r=setInterval(h,32))))}}}(),M=function(){let t;return function(e){let n=S[e];if(null==n){if(r.Wl){const t=(0,s.K5)(e),i=A(e,"\u017dg");n=(isNaN(Number(t.lineHeight))?1.2:Number(t.lineHeight))*(i.actualBoundingBoxAscent+i.actualBoundingBoxDescent)}else t||(t=document.createElement("div"),t.innerHTML="M",t.style.minHeight="0",t.style.maxHeight="none",t.style.height="auto",t.style.padding="0",t.style.border="none",t.style.position="absolute",t.style.display="block",t.style.left="-99999px"),t.style.font=e,document.body.appendChild(t),n=t.offsetHeight,document.body.removeChild(t);S[e]=n}return n}}();function A(t,e){return w||(w=(0,a.Y)(1,1)),t!=b&&(w.font=t,b=w.font),w.measureText(e)}function C(t,e){return A(t,e).width}function I(t,e,n){if(e in n)return n[e];const i=e.split("\n").reduce(((e,n)=>Math.max(e,C(t,n))),0);return n[e]=i,i}function E(t,e){const n=[],i=[],r=[];let o=0,a=0,s=0,l=0;for(let h=0,c=e.length;h<=c;h+=2){const u=e[h];if("\n"===u||h===c){o=Math.max(o,a),r.push(a),a=0,s+=l;continue}const d=e[h+1]||t.font,p=C(d,u);n.push(p),a+=p;const f=M(d);i.push(f),l=Math.max(l,f)}return{width:o,height:s,widths:n,heights:i,lineWidths:r}}function k(t,e,n,i,r,o,a,s,l,h,c){t.save(),1!==n&&(t.globalAlpha*=n),e&&t.setTransform.apply(t,e),i.contextInstructions?(t.translate(l,h),t.scale(c[0],c[1]),function(t,e){const n=t.contextInstructions;for(let i=0,r=n.length;i<r;i+=2)Array.isArray(n[i+1])?e[n[i]].apply(e,n[i+1]):e[n[i]]=n[i+1]}(i,t)):c[0]<0||c[1]<0?(t.translate(l,h),t.scale(c[0],c[1]),t.drawImage(i,r,o,a,s,0,0,a,s)):t.drawImage(i,r,o,a,s,l,h,a*c[0],s*c[1]),t.restore()}},8774:(t,e,n)=>{"use strict";n.d(e,{A:()=>p});var i=n(5473),r=n(154),o=n(686),a=n(1763),s=n(9783),l=n(4320),h=n(2878),c=n(5415),u=n(6861);class d extends i.A{constructor(t,e,n,i,r,a,s){super(),this.context_=t,this.pixelRatio_=e,this.extent_=n,this.transform_=i,this.transformRotation_=i?(0,h.Mg)(Math.atan2(i[1],i[0]),10):0,this.viewRotation_=r,this.squaredTolerance_=a,this.userTransform_=s,this.contextFillState_=null,this.contextStrokeState_=null,this.contextTextState_=null,this.fillState_=null,this.strokeState_=null,this.image_=null,this.imageAnchorX_=0,this.imageAnchorY_=0,this.imageHeight_=0,this.imageOpacity_=0,this.imageOriginX_=0,this.imageOriginY_=0,this.imageRotateWithView_=!1,this.imageRotation_=0,this.imageScale_=[0,0],this.imageWidth_=0,this.text_="",this.textOffsetX_=0,this.textOffsetY_=0,this.textRotateWithView_=!1,this.textRotation_=0,this.textScale_=[0,0],this.textFillState_=null,this.textStrokeState_=null,this.textState_=null,this.pixelCoordinates_=[],this.tmpLocalTransform_=(0,o.vt)()}drawImages_(t,e,n,i){if(!this.image_)return;const r=(0,c.Rc)(t,e,n,i,this.transform_,this.pixelCoordinates_),a=this.context_,s=this.tmpLocalTransform_,l=a.globalAlpha;1!=this.imageOpacity_&&(a.globalAlpha=l*this.imageOpacity_);let h=this.imageRotation_;0===this.transformRotation_&&(h-=this.viewRotation_),this.imageRotateWithView_&&(h+=this.viewRotation_);for(let c=0,u=r.length;c<u;c+=2){const t=r[c]-this.imageAnchorX_,e=r[c+1]-this.imageAnchorY_;if(0!==h||1!=this.imageScale_[0]||1!=this.imageScale_[1]){const n=t+this.imageAnchorX_,i=e+this.imageAnchorY_;(0,o.Zz)(s,n,i,1,1,h,-n,-i),a.setTransform.apply(a,s),a.translate(n,i),a.scale(this.imageScale_[0],this.imageScale_[1]),a.drawImage(this.image_,this.imageOriginX_,this.imageOriginY_,this.imageWidth_,this.imageHeight_,-this.imageAnchorX_,-this.imageAnchorY_,this.imageWidth_,this.imageHeight_),a.setTransform(1,0,0,1,0,0)}else a.drawImage(this.image_,this.imageOriginX_,this.imageOriginY_,this.imageWidth_,this.imageHeight_,t,e,this.imageWidth_,this.imageHeight_)}1!=this.imageOpacity_&&(a.globalAlpha=l)}drawText_(t,e,n,i){if(!this.textState_||""===this.text_)return;this.textFillState_&&this.setContextFillState_(this.textFillState_),this.textStrokeState_&&this.setContextStrokeState_(this.textStrokeState_),this.setContextTextState_(this.textState_);const r=(0,c.Rc)(t,e,n,i,this.transform_,this.pixelCoordinates_),o=this.context_;let a=this.textRotation_;for(0===this.transformRotation_&&(a-=this.viewRotation_),this.textRotateWithView_&&(a+=this.viewRotation_);e<n;e+=i){const t=r[e]+this.textOffsetX_,n=r[e+1]+this.textOffsetY_;0!==a||1!=this.textScale_[0]||1!=this.textScale_[1]?(o.translate(t-this.textOffsetX_,n-this.textOffsetY_),o.rotate(a),o.translate(this.textOffsetX_,this.textOffsetY_),o.scale(this.textScale_[0],this.textScale_[1]),this.textStrokeState_&&o.strokeText(this.text_,0,0),this.textFillState_&&o.fillText(this.text_,0,0),o.setTransform(1,0,0,1,0,0)):(this.textStrokeState_&&o.strokeText(this.text_,t,n),this.textFillState_&&o.fillText(this.text_,t,n))}}moveToLineTo_(t,e,n,i,r){const o=this.context_,a=(0,c.Rc)(t,e,n,i,this.transform_,this.pixelCoordinates_);o.moveTo(a[0],a[1]);let s=a.length;r&&(s-=2);for(let l=2;l<s;l+=2)o.lineTo(a[l],a[l+1]);return r&&o.closePath(),n}drawRings_(t,e,n,i){for(let r=0,o=n.length;r<o;++r)e=this.moveToLineTo_(t,e,n[r],i,!0);return e}drawCircle(t){if(this.squaredTolerance_&&(t=t.simplifyTransformed(this.squaredTolerance_,this.userTransform_)),(0,l.HY)(this.extent_,t.getExtent())){if(this.fillState_||this.strokeState_){this.fillState_&&this.setContextFillState_(this.fillState_),this.strokeState_&&this.setContextStrokeState_(this.strokeState_);const e=(0,u.v7)(t,this.transform_,this.pixelCoordinates_),n=e[2]-e[0],i=e[3]-e[1],r=Math.sqrt(n*n+i*i),o=this.context_;o.beginPath(),o.arc(e[0],e[1],r,0,2*Math.PI),this.fillState_&&o.fill(),this.strokeState_&&o.stroke()}""!==this.text_&&this.drawText_(t.getCenter(),0,2,2)}}setStyle(t){this.setFillStrokeStyle(t.getFill(),t.getStroke()),this.setImageStyle(t.getImage()),this.setTextStyle(t.getText())}setTransform(t){this.transform_=t}drawGeometry(t){switch(t.getType()){case"Point":this.drawPoint(t);break;case"LineString":this.drawLineString(t);break;case"Polygon":this.drawPolygon(t);break;case"MultiPoint":this.drawMultiPoint(t);break;case"MultiLineString":this.drawMultiLineString(t);break;case"MultiPolygon":this.drawMultiPolygon(t);break;case"GeometryCollection":this.drawGeometryCollection(t);break;case"Circle":this.drawCircle(t)}}drawFeature(t,e){const n=e.getGeometryFunction()(t);n&&(this.setStyle(e),this.drawGeometry(n))}drawGeometryCollection(t){const e=t.getGeometriesArray();for(let n=0,i=e.length;n<i;++n)this.drawGeometry(e[n])}drawPoint(t){this.squaredTolerance_&&(t=t.simplifyTransformed(this.squaredTolerance_,this.userTransform_));const e=t.getFlatCoordinates(),n=t.getStride();this.image_&&this.drawImages_(e,0,e.length,n),""!==this.text_&&this.drawText_(e,0,e.length,n)}drawMultiPoint(t){this.squaredTolerance_&&(t=t.simplifyTransformed(this.squaredTolerance_,this.userTransform_));const e=t.getFlatCoordinates(),n=t.getStride();this.image_&&this.drawImages_(e,0,e.length,n),""!==this.text_&&this.drawText_(e,0,e.length,n)}drawLineString(t){if(this.squaredTolerance_&&(t=t.simplifyTransformed(this.squaredTolerance_,this.userTransform_)),(0,l.HY)(this.extent_,t.getExtent())){if(this.strokeState_){this.setContextStrokeState_(this.strokeState_);const e=this.context_,n=t.getFlatCoordinates();e.beginPath(),this.moveToLineTo_(n,0,n.length,t.getStride(),!1),e.stroke()}if(""!==this.text_){const e=t.getFlatMidpoint();this.drawText_(e,0,2,2)}}}drawMultiLineString(t){this.squaredTolerance_&&(t=t.simplifyTransformed(this.squaredTolerance_,this.userTransform_));const e=t.getExtent();if((0,l.HY)(this.extent_,e)){if(this.strokeState_){this.setContextStrokeState_(this.strokeState_);const e=this.context_,n=t.getFlatCoordinates();let i=0;const r=t.getEnds(),o=t.getStride();e.beginPath();for(let t=0,a=r.length;t<a;++t)i=this.moveToLineTo_(n,i,r[t],o,!1);e.stroke()}if(""!==this.text_){const e=t.getFlatMidpoints();this.drawText_(e,0,e.length,2)}}}drawPolygon(t){if(this.squaredTolerance_&&(t=t.simplifyTransformed(this.squaredTolerance_,this.userTransform_)),(0,l.HY)(this.extent_,t.getExtent())){if(this.strokeState_||this.fillState_){this.fillState_&&this.setContextFillState_(this.fillState_),this.strokeState_&&this.setContextStrokeState_(this.strokeState_);const e=this.context_;e.beginPath(),this.drawRings_(t.getOrientedFlatCoordinates(),0,t.getEnds(),t.getStride()),this.fillState_&&e.fill(),this.strokeState_&&e.stroke()}if(""!==this.text_){const e=t.getFlatInteriorPoint();this.drawText_(e,0,2,2)}}}drawMultiPolygon(t){if(this.squaredTolerance_&&(t=t.simplifyTransformed(this.squaredTolerance_,this.userTransform_)),(0,l.HY)(this.extent_,t.getExtent())){if(this.strokeState_||this.fillState_){this.fillState_&&this.setContextFillState_(this.fillState_),this.strokeState_&&this.setContextStrokeState_(this.strokeState_);const e=this.context_,n=t.getOrientedFlatCoordinates();let i=0;const r=t.getEndss(),o=t.getStride();e.beginPath();for(let t=0,a=r.length;t<a;++t){const e=r[t];i=this.drawRings_(n,i,e,o)}this.fillState_&&e.fill(),this.strokeState_&&e.stroke()}if(""!==this.text_){const e=t.getFlatInteriorPoints();this.drawText_(e,0,e.length,2)}}}setContextFillState_(t){const e=this.context_,n=this.contextFillState_;n?n.fillStyle!=t.fillStyle&&(n.fillStyle=t.fillStyle,e.fillStyle=t.fillStyle):(e.fillStyle=t.fillStyle,this.contextFillState_={fillStyle:t.fillStyle})}setContextStrokeState_(t){const e=this.context_,n=this.contextStrokeState_;n?(n.lineCap!=t.lineCap&&(n.lineCap=t.lineCap,e.lineCap=t.lineCap),(0,s.aI)(n.lineDash,t.lineDash)||e.setLineDash(n.lineDash=t.lineDash),n.lineDashOffset!=t.lineDashOffset&&(n.lineDashOffset=t.lineDashOffset,e.lineDashOffset=t.lineDashOffset),n.lineJoin!=t.lineJoin&&(n.lineJoin=t.lineJoin,e.lineJoin=t.lineJoin),n.lineWidth!=t.lineWidth&&(n.lineWidth=t.lineWidth,e.lineWidth=t.lineWidth),n.miterLimit!=t.miterLimit&&(n.miterLimit=t.miterLimit,e.miterLimit=t.miterLimit),n.strokeStyle!=t.strokeStyle&&(n.strokeStyle=t.strokeStyle,e.strokeStyle=t.strokeStyle)):(e.lineCap=t.lineCap,e.setLineDash(t.lineDash),e.lineDashOffset=t.lineDashOffset,e.lineJoin=t.lineJoin,e.lineWidth=t.lineWidth,e.miterLimit=t.miterLimit,e.strokeStyle=t.strokeStyle,this.contextStrokeState_={lineCap:t.lineCap,lineDash:t.lineDash,lineDashOffset:t.lineDashOffset,lineJoin:t.lineJoin,lineWidth:t.lineWidth,miterLimit:t.miterLimit,strokeStyle:t.strokeStyle})}setContextTextState_(t){const e=this.context_,n=this.contextTextState_,i=t.textAlign?t.textAlign:a.MY;n?(n.font!=t.font&&(n.font=t.font,e.font=t.font),n.textAlign!=i&&(n.textAlign=i,e.textAlign=i),n.textBaseline!=t.textBaseline&&(n.textBaseline=t.textBaseline,e.textBaseline=t.textBaseline)):(e.font=t.font,e.textAlign=i,e.textBaseline=t.textBaseline,this.contextTextState_={font:t.font,textAlign:i,textBaseline:t.textBaseline})}setFillStrokeStyle(t,e){if(t){const e=t.getColor();this.fillState_={fillStyle:(0,r.F)(e||a.qY)}}else this.fillState_=null;if(e){const t=e.getColor(),n=e.getLineCap(),i=e.getLineDash(),o=e.getLineDashOffset(),s=e.getLineJoin(),l=e.getWidth(),h=e.getMiterLimit(),c=i||a.Oq;this.strokeState_={lineCap:void 0!==n?n:a._m,lineDash:1===this.pixelRatio_?c:c.map((t=>t*this.pixelRatio_)),lineDashOffset:(o||a.vk)*this.pixelRatio_,lineJoin:void 0!==s?s:a._K,lineWidth:(void 0!==l?l:a.aq)*this.pixelRatio_,miterLimit:void 0!==h?h:a.eL,strokeStyle:(0,r.F)(t||a.NT)}}else this.strokeState_=null}setImageStyle(t){let e;if(!t||!(e=t.getSize()))return void(this.image_=null);const n=t.getPixelRatio(this.pixelRatio_),i=t.getAnchor(),r=t.getOrigin();this.image_=t.getImage(this.pixelRatio_),this.imageAnchorX_=i[0]*n,this.imageAnchorY_=i[1]*n,this.imageHeight_=e[1]*n,this.imageOpacity_=t.getOpacity(),this.imageOriginX_=r[0],this.imageOriginY_=r[1],this.imageRotateWithView_=t.getRotateWithView(),this.imageRotation_=t.getRotation();const o=t.getScaleArray();this.imageScale_=[o[0]*this.pixelRatio_/n,o[1]*this.pixelRatio_/n],this.imageWidth_=e[0]*n}setTextStyle(t){if(t){const e=t.getFill();if(e){const t=e.getColor();this.textFillState_={fillStyle:(0,r.F)(t||a.qY)}}else this.textFillState_=null;const n=t.getStroke();if(n){const t=n.getColor(),e=n.getLineCap(),i=n.getLineDash(),o=n.getLineDashOffset(),s=n.getLineJoin(),l=n.getWidth(),h=n.getMiterLimit();this.textStrokeState_={lineCap:void 0!==e?e:a._m,lineDash:i||a.Oq,lineDashOffset:o||a.vk,lineJoin:void 0!==s?s:a._K,lineWidth:void 0!==l?l:a.aq,miterLimit:void 0!==h?h:a.eL,strokeStyle:(0,r.F)(t||a.NT)}}else this.textStrokeState_=null;const i=t.getFont(),o=t.getOffsetX(),s=t.getOffsetY(),l=t.getRotateWithView(),h=t.getRotation(),c=t.getScaleArray(),u=t.getText(),d=t.getTextAlign(),p=t.getTextBaseline();this.textState_={font:void 0!==i?i:a.ZV,textAlign:void 0!==d?d:a.MY,textBaseline:void 0!==p?p:a.M8},this.text_=void 0!==u?Array.isArray(u)?u.reduce(((t,e,n)=>t+(n%2?" ":e)),""):u:"",this.textOffsetX_=void 0!==o?this.pixelRatio_*o:0,this.textOffsetY_=void 0!==s?this.pixelRatio_*s:0,this.textRotateWithView_=void 0!==l&&l,this.textRotation_=void 0!==h?h:0,this.textScale_=[this.pixelRatio_*c[0],this.pixelRatio_*c[1]]}else this.text_=""}}const p=d},6627:(t,e,n)=>{"use strict";n.d(e,{B:()=>m,A:()=>y});var i=n(874),r=n(438),o=n(6529),a=n(6916);class s extends o.A{constructor(t){super(),this.ready=!0,this.boundHandleImageChange_=this.handleImageChange_.bind(this),this.layer_=t,this.declutterExecutorGroup=null}getFeatures(t){return(0,a.b0)()}getData(t){return null}prepareFrame(t){return(0,a.b0)()}renderFrame(t,e){return(0,a.b0)()}loadedTileCallback(t,e,n){t[e]||(t[e]={}),t[e][n.tileCoord.toString()]=n}createLoadedTileFinder(t,e,n){return(i,r)=>{const o=this.loadedTileCallback.bind(this,n,i);return t.forEachLoadedTile(e,i,r,o)}}forEachFeatureAtCoordinate(t,e,n,i,r){}getLayer(){return this.layer_}handleFontsChanged(){}handleImageChange_(t){const e=t.target;e.getState()!==r.A.LOADED&&e.getState()!==r.A.ERROR||this.renderIfReadyAndVisible()}loadImage(t){let e=t.getState();return e!=r.A.LOADED&&e!=r.A.ERROR&&t.addEventListener(i.A.CHANGE,this.boundHandleImageChange_),e==r.A.IDLE&&(t.load(),e=t.getState()),e==r.A.LOADED}renderIfReadyAndVisible(){const t=this.getLayer();t&&t.getVisible()&&"ready"===t.getSourceState()&&t.changed()}disposeInternal(){delete this.layer_,super.disposeInternal()}}const l=s;var h=n(6263),c=n(4431),u=n(686),d=n(1805),p=n(7354),f=n(9783),g=n(4320);const m=[];let v=null;const y=class extends l{constructor(t){super(t),this.container=null,this.renderedResolution,this.tempTransform=(0,u.vt)(),this.pixelTransform=(0,u.vt)(),this.inversePixelTransform=(0,u.vt)(),this.context=null,this.containerReused=!1,this.pixelContext_=null,this.frameState=null}getImageData(t,e,n){let i;v||(v=(0,p.Y)(1,1,void 0,{willReadFrequently:!0})),v.clearRect(0,0,1,1);try{v.drawImage(t,e,n,1,1,0,0,1,1),i=v.getImageData(0,0,1,1).data}catch(r){return v=null,null}return i}getBackground(t){let e=this.getLayer().getBackground();return"function"==typeof e&&(e=e(t.viewState.resolution)),e||void 0}useContainer(t,e,n){const i=this.getLayer().getClassName();let r,o;if(t&&t.className===i&&(!n||t&&t.style.backgroundColor&&(0,f.aI)((0,d._j)(t.style.backgroundColor),(0,d._j)(n)))){const e=t.firstElementChild;e instanceof HTMLCanvasElement&&(o=e.getContext("2d"))}if(o&&o.canvas.style.transform===e?(this.container=t,this.context=o,this.containerReused=!0):this.containerReused?(this.container=null,this.context=null,this.containerReused=!1):this.container&&(this.container.style.backgroundColor=null),!this.container){r=document.createElement("div"),r.className=i;let t=r.style;t.position="absolute",t.width="100%",t.height="100%",o=(0,p.Y)();const e=o.canvas;r.appendChild(e),t=e.style,t.position="absolute",t.left="0",t.transformOrigin="top left",this.container=r,this.context=o}this.containerReused||!n||this.container.style.backgroundColor||(this.container.style.backgroundColor=n)}clipUnrotated(t,e,n){const i=(0,g.Py)(n),r=(0,g.WU)(n),o=(0,g.k_)(n),a=(0,g.R)(n);(0,u.Bb)(e.coordinateToPixelTransform,i),(0,u.Bb)(e.coordinateToPixelTransform,r),(0,u.Bb)(e.coordinateToPixelTransform,o),(0,u.Bb)(e.coordinateToPixelTransform,a);const s=this.inversePixelTransform;(0,u.Bb)(s,i),(0,u.Bb)(s,r),(0,u.Bb)(s,o),(0,u.Bb)(s,a),t.save(),t.beginPath(),t.moveTo(Math.round(i[0]),Math.round(i[1])),t.lineTo(Math.round(r[0]),Math.round(r[1])),t.lineTo(Math.round(o[0]),Math.round(o[1])),t.lineTo(Math.round(a[0]),Math.round(a[1])),t.clip()}dispatchRenderEvent_(t,e,n){const i=this.getLayer();if(i.hasListener(t)){const r=new h.A(t,this.inversePixelTransform,n,e);i.dispatchEvent(r)}}preRender(t,e){this.frameState=e,this.dispatchRenderEvent_(c.A.PRERENDER,t,e)}postRender(t,e){this.dispatchRenderEvent_(c.A.POSTRENDER,t,e)}getRenderTransform(t,e,n,i,r,o,a){const s=r/2,l=o/2,h=i/e,c=-h,d=-t[0]+a,p=-t[1];return(0,u.Zz)(this.tempTransform,s,l,h,c,-n,d,p)}disposeInternal(){delete this.frameState,super.disposeInternal()}}},9841:(t,e,n)=>{"use strict";n.d(e,{Eo:()=>s,gY:()=>h,j:()=>l,nl:()=>c});var i=n(438),r=n(6916);const o=.5,a={Point:function(t,e,n,r,o){const a=n.getImage(),s=n.getText();let l;if(a){if(a.getImageState()!=i.A.LOADED)return;let h=t;if(o){const i=a.getDeclutterMode();if("none"!==i)if(h=o,"obstacle"===i){const i=t.getBuilder(n.getZIndex(),"Image");i.setImageStyle(a,l),i.drawPoint(e,r)}else s&&s.getText()&&(l={})}const c=h.getBuilder(n.getZIndex(),"Image");c.setImageStyle(a,l),c.drawPoint(e,r)}if(s&&s.getText()){let i=t;o&&(i=o);const a=i.getBuilder(n.getZIndex(),"Text");a.setTextStyle(s,l),a.drawText(e,r)}},LineString:function(t,e,n,i,r){const o=n.getStroke();if(o){const r=t.getBuilder(n.getZIndex(),"LineString");r.setFillStrokeStyle(null,o),r.drawLineString(e,i)}const a=n.getText();if(a&&a.getText()){const o=(r||t).getBuilder(n.getZIndex(),"Text");o.setTextStyle(a),o.drawText(e,i)}},Polygon:function(t,e,n,i,r){const o=n.getFill(),a=n.getStroke();if(o||a){const r=t.getBuilder(n.getZIndex(),"Polygon");r.setFillStrokeStyle(o,a),r.drawPolygon(e,i)}const s=n.getText();if(s&&s.getText()){const o=(r||t).getBuilder(n.getZIndex(),"Text");o.setTextStyle(s),o.drawText(e,i)}},MultiPoint:function(t,e,n,r,o){const a=n.getImage(),s=n.getText();let l;if(a){if(a.getImageState()!=i.A.LOADED)return;let h=t;if(o){const i=a.getDeclutterMode();if("none"!==i)if(h=o,"obstacle"===i){const i=t.getBuilder(n.getZIndex(),"Image");i.setImageStyle(a,l),i.drawMultiPoint(e,r)}else s&&s.getText()&&(l={})}const c=h.getBuilder(n.getZIndex(),"Image");c.setImageStyle(a,l),c.drawMultiPoint(e,r)}if(s&&s.getText()){let i=t;o&&(i=o);const a=i.getBuilder(n.getZIndex(),"Text");a.setTextStyle(s,l),a.drawText(e,r)}},MultiLineString:function(t,e,n,i,r){const o=n.getStroke();if(o){const r=t.getBuilder(n.getZIndex(),"LineString");r.setFillStrokeStyle(null,o),r.drawMultiLineString(e,i)}const a=n.getText();if(a&&a.getText()){const o=(r||t).getBuilder(n.getZIndex(),"Text");o.setTextStyle(a),o.drawText(e,i)}},MultiPolygon:function(t,e,n,i,r){const o=n.getFill(),a=n.getStroke();if(a||o){const r=t.getBuilder(n.getZIndex(),"Polygon");r.setFillStrokeStyle(o,a),r.drawMultiPolygon(e,i)}const s=n.getText();if(s&&s.getText()){const o=(r||t).getBuilder(n.getZIndex(),"Text");o.setTextStyle(s),o.drawText(e,i)}},GeometryCollection:function(t,e,n,i,r){const o=e.getGeometriesArray();let s,l;for(s=0,l=o.length;s<l;++s){(0,a[o[s].getType()])(t,o[s],n,i,r)}},Circle:function(t,e,n,i,r){const o=n.getFill(),a=n.getStroke();if(o||a){const r=t.getBuilder(n.getZIndex(),"Circle");r.setFillStrokeStyle(o,a),r.drawCircle(e,i)}const s=n.getText();if(s&&s.getText()){const o=(r||t).getBuilder(n.getZIndex(),"Text");o.setTextStyle(s),o.drawText(e,i)}}};function s(t,e){return parseInt((0,r.v6)(t),10)-parseInt((0,r.v6)(e),10)}function l(t,e){const n=h(t,e);return n*n}function h(t,e){return o*t/e}function c(t,e,n,r,o,s,l){let h=!1;const c=n.getImage();if(c){const t=c.getImageState();t==i.A.LOADED||t==i.A.ERROR?c.unlistenImageChange(o):(t==i.A.IDLE&&c.load(),c.listenImageChange(o),h=!0)}return function(t,e,n,i,r,o){const s=n.getGeometryFunction()(e);if(!s)return;const l=s.simplifyTransformed(i,r),h=n.getRenderer();if(h)u(t,l,n,e);else{(0,a[l.getType()])(t,l,n,e,o)}}(t,e,n,r,s,l),h}function u(t,e,n,i){if("GeometryCollection"==e.getType()){const r=e.getGeometries();for(let e=0,o=r.length;e<o;++e)u(t,r[e],n,i);return}t.getBuilder(n.getZIndex(),"Default").drawCustom(e,i,n.getRenderer(),n.getHitDetectionRenderer())}},4864:(t,e,n)=>{"use strict";n.d(e,{A:()=>_});var i=n(874),r=n(3588),o=n(5751),a=n(4320),s=n(6859),l=n(2878);const h=class{constructor(t,e,n,i,r,o){this.sourceProj_=t,this.targetProj_=e;let l={};const h=(0,s.RG)(this.targetProj_,this.sourceProj_);this.transformInv_=function(t){const e=t[0]+"/"+t[1];return l[e]||(l[e]=h(t)),l[e]},this.maxSourceExtent_=i,this.errorThresholdSquared_=r*r,this.triangles_=[],this.wrapsXInSource_=!1,this.canWrapXInSource_=this.sourceProj_.canWrapX()&&!!i&&!!this.sourceProj_.getExtent()&&(0,a.RG)(i)>=(0,a.RG)(this.sourceProj_.getExtent()),this.sourceWorldWidth_=this.sourceProj_.getExtent()?(0,a.RG)(this.sourceProj_.getExtent()):null,this.targetWorldWidth_=this.targetProj_.getExtent()?(0,a.RG)(this.targetProj_.getExtent()):null;const c=(0,a.Py)(n),u=(0,a.WU)(n),d=(0,a.k_)(n),p=(0,a.R)(n),f=this.transformInv_(c),g=this.transformInv_(u),m=this.transformInv_(d),v=this.transformInv_(p),y=10+(o?Math.max(0,Math.ceil(Math.log2((0,a.UG)(n)/(o*o*256*256)))):0);if(this.addQuad_(c,u,d,p,f,g,m,v,y),this.wrapsXInSource_){let t=1/0;this.triangles_.forEach((function(e,n,i){t=Math.min(t,e.source[0][0],e.source[1][0],e.source[2][0])})),this.triangles_.forEach((e=>{if(Math.max(e.source[0][0],e.source[1][0],e.source[2][0])-t>this.sourceWorldWidth_/2){const n=[[e.source[0][0],e.source[0][1]],[e.source[1][0],e.source[1][1]],[e.source[2][0],e.source[2][1]]];n[0][0]-t>this.sourceWorldWidth_/2&&(n[0][0]-=this.sourceWorldWidth_),n[1][0]-t>this.sourceWorldWidth_/2&&(n[1][0]-=this.sourceWorldWidth_),n[2][0]-t>this.sourceWorldWidth_/2&&(n[2][0]-=this.sourceWorldWidth_);const i=Math.min(n[0][0],n[1][0],n[2][0]);Math.max(n[0][0],n[1][0],n[2][0])-i<this.sourceWorldWidth_/2&&(e.source=n)}}))}l={}}addTriangle_(t,e,n,i,r,o){this.triangles_.push({source:[i,r,o],target:[t,e,n]})}addQuad_(t,e,n,i,r,o,s,h,c){const u=(0,a.Tr)([r,o,s,h]),d=this.sourceWorldWidth_?(0,a.RG)(u)/this.sourceWorldWidth_:null,p=this.sourceWorldWidth_,f=this.sourceProj_.canWrapX()&&d>.5&&d<1;let g=!1;if(c>0){if(this.targetProj_.isGlobal()&&this.targetWorldWidth_){const r=(0,a.Tr)([t,e,n,i]);g=(0,a.RG)(r)/this.targetWorldWidth_>.25||g}!f&&this.sourceProj_.isGlobal()&&d&&(g=d>.25||g)}if(!g&&this.maxSourceExtent_&&isFinite(u[0])&&isFinite(u[1])&&isFinite(u[2])&&isFinite(u[3])&&!(0,a.HY)(u,this.maxSourceExtent_))return;let m=0;if(!(g||isFinite(r[0])&&isFinite(r[1])&&isFinite(o[0])&&isFinite(o[1])&&isFinite(s[0])&&isFinite(s[1])&&isFinite(h[0])&&isFinite(h[1])))if(c>0)g=!0;else if(m=(isFinite(r[0])&&isFinite(r[1])?0:8)+(isFinite(o[0])&&isFinite(o[1])?0:4)+(isFinite(s[0])&&isFinite(s[1])?0:2)+(isFinite(h[0])&&isFinite(h[1])?0:1),1!=m&&2!=m&&4!=m&&8!=m)return;if(c>0){if(!g){const e=[(t[0]+n[0])/2,(t[1]+n[1])/2],i=this.transformInv_(e);let o;if(f){o=((0,l.xP)(r[0],p)+(0,l.xP)(s[0],p))/2-(0,l.xP)(i[0],p)}else o=(r[0]+s[0])/2-i[0];const a=(r[1]+s[1])/2-i[1];g=o*o+a*a>this.errorThresholdSquared_}if(g){if(Math.abs(t[0]-n[0])<=Math.abs(t[1]-n[1])){const a=[(e[0]+n[0])/2,(e[1]+n[1])/2],l=this.transformInv_(a),u=[(i[0]+t[0])/2,(i[1]+t[1])/2],d=this.transformInv_(u);this.addQuad_(t,e,a,u,r,o,l,d,c-1),this.addQuad_(u,a,n,i,d,l,s,h,c-1)}else{const a=[(t[0]+e[0])/2,(t[1]+e[1])/2],l=this.transformInv_(a),u=[(n[0]+i[0])/2,(n[1]+i[1])/2],d=this.transformInv_(u);this.addQuad_(t,a,u,i,r,l,d,h,c-1),this.addQuad_(a,e,n,u,l,o,s,d,c-1)}return}}if(f){if(!this.canWrapXInSource_)return;this.wrapsXInSource_=!0}11&m||this.addTriangle_(t,n,i,r,s,h),14&m||this.addTriangle_(t,n,e,r,s,o),m&&(13&m||this.addTriangle_(e,i,t,o,h,r),7&m||this.addTriangle_(e,i,n,o,h,s))}calculateSourceExtent(){const t=(0,a.S5)();return this.triangles_.forEach((function(e,n,i){const r=e.source;(0,a.$C)(t,r[0]),(0,a.$C)(t,r[1]),(0,a.$C)(t,r[2])})),t}getTriangles(){return this.triangles_}};var c=n(7354);let u;const d=[];function p(t,e,n,i,r){t.beginPath(),t.moveTo(0,0),t.lineTo(e,n),t.lineTo(i,r),t.closePath(),t.save(),t.clip(),t.fillRect(0,0,Math.max(e,i)+1,Math.max(n,r)),t.restore()}function f(t,e){return Math.abs(t[4*e]-210)>2||Math.abs(t[4*e+3]-191.25)>2}function g(t,e,n,i){const r=(0,s.pd)(n,e,t);let o=(0,s.hO)(e,i,n);const l=e.getMetersPerUnit();void 0!==l&&(o*=l);const h=t.getMetersPerUnit();void 0!==h&&(o/=h);const c=t.getExtent();if(!c||(0,a.Ym)(c,r)){const e=(0,s.hO)(t,o,r)/o;isFinite(e)&&e>0&&(o/=e)}return o}function m(t,e,n,i,r,o,s,h,g,m,v,y){const _=(0,c.Y)(Math.round(n*t),Math.round(n*e),d);if(y||(_.imageSmoothingEnabled=!1),0===g.length)return _.canvas;function x(t){return Math.round(t*n)/n}_.scale(n,n),_.globalCompositeOperation="lighter";const b=(0,a.S5)();g.forEach((function(t,e,n){(0,a.X$)(b,t.extent)}));const w=(0,a.RG)(b),S=(0,a.Oq)(b),T=(0,c.Y)(Math.round(n*w/i),Math.round(n*S/i),d);y||(T.imageSmoothingEnabled=!1);const M=n/i;g.forEach((function(t,e,n){const i=t.extent[0]-b[0],r=-(t.extent[3]-b[3]),o=(0,a.RG)(t.extent),s=(0,a.Oq)(t.extent);t.image.width>0&&t.image.height>0&&T.drawImage(t.image,m,m,t.image.width-2*m,t.image.height-2*m,i*M,r*M,o*M,s*M)}));const A=(0,a.Py)(s);return h.getTriangles().forEach((function(t,e,r){const a=t.source,s=t.target;let h=a[0][0],g=a[0][1],m=a[1][0],v=a[1][1],w=a[2][0],S=a[2][1];const M=x((s[0][0]-A[0])/o),C=x(-(s[0][1]-A[1])/o),I=x((s[1][0]-A[0])/o),E=x(-(s[1][1]-A[1])/o),k=x((s[2][0]-A[0])/o),L=x(-(s[2][1]-A[1])/o),D=h,P=g;h=0,g=0,m-=D,v-=P,w-=D,S-=P;const R=[[m,v,0,0,I-M],[w,S,0,0,k-M],[0,0,m,v,E-C],[0,0,w,S,L-C]],O=(0,l.KU)(R);if(O){if(_.save(),_.beginPath(),function(){if(void 0===u){const t=(0,c.Y)(6,6,d);t.globalCompositeOperation="lighter",t.fillStyle="rgba(210, 0, 0, 0.75)",p(t,4,5,4,0),p(t,4,5,0,5);const e=t.getImageData(0,0,3,3).data;u=f(e,0)||f(e,4)||f(e,8),(0,c.Yg)(t),d.push(t.canvas)}return u}()||!y){_.moveTo(I,E);const t=4,e=M-I,n=C-E;for(let i=0;i<t;i++)_.lineTo(I+x((i+1)*e/t),E+x(i*n/(t-1))),i!=t-1&&_.lineTo(I+x((i+1)*e/t),E+x((i+1)*n/(t-1)));_.lineTo(k,L)}else _.moveTo(I,E),_.lineTo(M,C),_.lineTo(k,L);_.clip(),_.transform(O[0],O[2],O[1],O[3],M,C),_.translate(b[0]-D,b[3]-P),_.scale(i/n,-i/n),_.drawImage(T.canvas,0,0),_.restore()}})),(0,c.Yg)(T),d.push(T.canvas),v&&(_.save(),_.globalCompositeOperation="source-over",_.strokeStyle="black",_.lineWidth=1,h.getTriangles().forEach((function(t,e,n){const i=t.target,r=(i[0][0]-A[0])/o,a=-(i[0][1]-A[1])/o,s=(i[1][0]-A[0])/o,l=-(i[1][1]-A[1])/o,h=(i[2][0]-A[0])/o,c=-(i[2][1]-A[1])/o;_.beginPath(),_.moveTo(s,l),_.lineTo(r,a),_.lineTo(h,c),_.closePath(),_.stroke()})),_.restore()),_.canvas}var v=n(2657);class y extends r.A{constructor(t,e,n,i,r,s,c,u,d,p,f,m){super(r,o.A.IDLE,{interpolate:!!m}),this.renderEdges_=void 0!==f&&f,this.pixelRatio_=c,this.gutter_=u,this.canvas_=null,this.sourceTileGrid_=e,this.targetTileGrid_=i,this.wrappedTileCoord_=s||r,this.sourceTiles_=[],this.sourcesListenerKeys_=null,this.sourceZ_=0;const v=i.getTileCoordExtent(this.wrappedTileCoord_),y=this.targetTileGrid_.getExtent();let _=this.sourceTileGrid_.getExtent();const x=y?(0,a._N)(v,y):v;if(0===(0,a.UG)(x))return void(this.state=o.A.EMPTY);const b=t.getExtent();b&&(_=_?(0,a._N)(_,b):b);const w=i.getResolution(this.wrappedTileCoord_[0]),S=function(t,e,n,i){const r=(0,a.q1)(n);let o=g(t,e,r,i);return(!isFinite(o)||o<=0)&&(0,a.sB)(n,(function(n){return o=g(t,e,n,i),isFinite(o)&&o>0})),o}(t,n,x,w);if(!isFinite(S)||S<=0)return void(this.state=o.A.EMPTY);const T=void 0!==p?p:.5;if(this.triangulation_=new h(t,n,x,_,S*T,w),0===this.triangulation_.getTriangles().length)return void(this.state=o.A.EMPTY);this.sourceZ_=e.getZForResolution(S);let M=this.triangulation_.calculateSourceExtent();if(_&&(t.canWrapX()?(M[1]=(0,l.qE)(M[1],_[1],_[3]),M[3]=(0,l.qE)(M[3],_[1],_[3])):M=(0,a._N)(M,_)),(0,a.UG)(M)){const t=e.getTileRangeForExtentAndZ(M,this.sourceZ_);for(let e=t.minX;e<=t.maxX;e++)for(let n=t.minY;n<=t.maxY;n++){const t=d(this.sourceZ_,e,n,c);t&&this.sourceTiles_.push(t)}0===this.sourceTiles_.length&&(this.state=o.A.EMPTY)}else this.state=o.A.EMPTY}getImage(){return this.canvas_}reproject_(){const t=[];if(this.sourceTiles_.forEach((e=>{e&&e.getState()==o.A.LOADED&&t.push({extent:this.sourceTileGrid_.getTileCoordExtent(e.tileCoord),image:e.getImage()})})),this.sourceTiles_.length=0,0===t.length)this.state=o.A.ERROR;else{const e=this.wrappedTileCoord_[0],n=this.targetTileGrid_.getTileSize(e),i="number"==typeof n?n:n[0],r="number"==typeof n?n:n[1],a=this.targetTileGrid_.getResolution(e),s=this.sourceTileGrid_.getResolution(this.sourceZ_),l=this.targetTileGrid_.getTileCoordExtent(this.wrappedTileCoord_);this.canvas_=m(i,r,this.pixelRatio_,s,this.sourceTileGrid_.getExtent(),a,l,this.triangulation_,t,this.gutter_,this.renderEdges_,this.interpolate),this.state=o.A.LOADED}this.changed()}load(){if(this.state==o.A.IDLE){this.state=o.A.LOADING,this.changed();let t=0;this.sourcesListenerKeys_=[],this.sourceTiles_.forEach((e=>{const n=e.getState();if(n==o.A.IDLE||n==o.A.LOADING){t++;const n=(0,v.KT)(e,i.A.CHANGE,(function(i){const r=e.getState();r!=o.A.LOADED&&r!=o.A.ERROR&&r!=o.A.EMPTY||((0,v.JH)(n),t--,0===t&&(this.unlistenSources_(),this.reproject_()))}),this);this.sourcesListenerKeys_.push(n)}})),0===t?setTimeout(this.reproject_.bind(this),0):this.sourceTiles_.forEach((function(t,e,n){t.getState()==o.A.IDLE&&t.load()}))}}unlistenSources_(){this.sourcesListenerKeys_.forEach(v.JH),this.sourcesListenerKeys_=null}release(){this.canvas_&&((0,c.Yg)(this.canvas_.getContext("2d")),d.push(this.canvas_),this.canvas_=null),super.release()}}const _=y},8333:(t,e,n)=>{"use strict";n.d(e,{a$:()=>a,b8:()=>r,cq:()=>s,dv:()=>o});var i=n(2878);function r(t){if(void 0!==t)return 0}function o(t){if(void 0!==t)return t}function a(t){const e=2*Math.PI/t;return function(t,n){return n?t:void 0!==t?t=Math.floor(t/e+.5)*e:void 0}}function s(t){return t=t||(0,i.eh)(5),function(e,n){return n?e:void 0!==e?Math.abs(e)<=t?0:e:void 0}}},277:(t,e,n)=>{"use strict";function i(t){return t[0]>0&&t[1]>0}function r(t,e,n){return void 0===n&&(n=[0,0]),n[0]=t[0]*e+.5|0,n[1]=t[1]*e+.5|0,n}function o(t,e){return Array.isArray(t)?t:(void 0===e?e=[t,t]:(e[0]=t,e[1]=t),e)}n.d(e,{Ie:()=>i,hs:()=>r,xq:()=>o})},289:(t,e,n)=>{"use strict";n.d(e,{A:()=>s});var i=n(5191),r=n(6859);class o extends i.A{constructor(t){super(),this.projection=(0,r.Jt)(t.projection),this.attributions_=a(t.attributions),this.attributionsCollapsible_=void 0===t.attributionsCollapsible||t.attributionsCollapsible,this.loading=!1,this.state_=void 0!==t.state?t.state:"ready",this.wrapX_=void 0!==t.wrapX&&t.wrapX,this.interpolate_=!!t.interpolate,this.viewResolver=null,this.viewRejector=null;const e=this;this.viewPromise_=new Promise((function(t,n){e.viewResolver=t,e.viewRejector=n}))}getAttributions(){return this.attributions_}getAttributionsCollapsible(){return this.attributionsCollapsible_}getProjection(){return this.projection}getResolutions(t){return null}getView(){return this.viewPromise_}getState(){return this.state_}getWrapX(){return this.wrapX_}getInterpolate(){return this.interpolate_}refresh(){this.changed()}setAttributions(t){this.attributions_=a(t),this.changed()}setState(t){this.state_=t,this.changed()}}function a(t){return t?Array.isArray(t)?function(e){return t}:"function"==typeof t?t:function(e){return[t]}:null}const s=o},9255:(t,e,n)=>{"use strict";n.d(e,{A:()=>k});var i=n(5616),r=n(5930),o=n(5026),a=n(874),s=n(1335),l=n(3269),h=n(4320),c=n(6916),u=n(6943);const d=class{constructor(t){this.rbush_=new l(t),this.items_={}}insert(t,e){const n={minX:t[0],minY:t[1],maxX:t[2],maxY:t[3],value:e};this.rbush_.insert(n),this.items_[(0,c.v6)(e)]=n}load(t,e){const n=new Array(e.length);for(let i=0,r=e.length;i<r;i++){const r=t[i],o=e[i],a={minX:r[0],minY:r[1],maxX:r[2],maxY:r[3],value:o};n[i]=a,this.items_[(0,c.v6)(o)]=a}this.rbush_.load(n)}remove(t){const e=(0,c.v6)(t),n=this.items_[e];return delete this.items_[e],null!==this.rbush_.remove(n)}update(t,e){const n=this.items_[(0,c.v6)(e)],i=[n.minX,n.minY,n.maxX,n.maxY];(0,h.aI)(i,t)||(this.remove(e),this.insert(t,e))}getAll(){return this.rbush_.all().map((function(t){return t.value}))}getInExtent(t){const e={minX:t[0],minY:t[1],maxX:t[2],maxY:t[3]};return this.rbush_.search(e).map((function(t){return t.value}))}forEach(t){return this.forEach_(this.getAll(),t)}forEachInExtent(t,e){return this.forEach_(this.getInExtent(t),e)}forEach_(t,e){let n;for(let i=0,r=t.length;i<r;i++)if(n=e(t[i]),n)return n;return n}isEmpty(){return(0,u.p)(this.items_)}clear(){this.rbush_.clear(),this.items_={}}getExtent(t){const e=this.rbush_.toJSON();return(0,h.N)(e.minX,e.minY,e.maxX,e.maxY,t)}concat(t){this.rbush_.load(t.rbush_.all());for(const e in t.items_)this.items_[e]=t.items_[e]}};var p=n(289);const f="addfeature",g="changefeature",m="clear",v="removefeature",y="featuresloadstart",_="featuresloadend",x="featuresloaderror";var b=n(6079);n(6859);function w(t,e){return[[-1/0,-1/0,1/0,1/0]]}var S=n(3957),T=n(9783),M=n(2657);let A=!1;function C(t,e){return function(n,i,r,o,a){const s=this;!function(t,e,n,i,r,o,a){const s=new XMLHttpRequest;s.open("GET","function"==typeof t?t(n,i,r):t,!0),"arraybuffer"==e.getType()&&(s.responseType="arraybuffer"),s.withCredentials=A,s.onload=function(t){if(!s.status||s.status>=200&&s.status<300){const t=e.getType();let i;"json"==t||"text"==t?i=s.responseText:"xml"==t?(i=s.responseXML,i||(i=(new DOMParser).parseFromString(s.responseText,"application/xml"))):"arraybuffer"==t&&(i=s.response),i?o(e.readFeatures(i,{extent:n,featureProjection:r}),e.readProjection(i)):a()}else a()},s.onerror=a,s.send()}(t,e,n,i,r,(function(t,e){s.addFeatures(t),void 0!==o&&o(t)}),a||b.tV)}}class I extends o.Ay{constructor(t,e,n){super(t),this.feature=e,this.features=n}}class E extends p.A{constructor(t){super({attributions:(t=t||{}).attributions,interpolate:!0,projection:void 0,state:"ready",wrapX:void 0===t.wrapX||t.wrapX}),this.on,this.once,this.un,this.loader_=b.tV,this.format_=t.format,this.overlaps_=void 0===t.overlaps||t.overlaps,this.url_=t.url,void 0!==t.loader?this.loader_=t.loader:void 0!==this.url_&&((0,S.v)(this.format_,7),this.loader_=C(this.url_,this.format_)),this.strategy_=void 0!==t.strategy?t.strategy:w;const e=void 0===t.useSpatialIndex||t.useSpatialIndex;let n,r;this.featuresRtree_=e?new d:null,this.loadedExtentsRtree_=new d,this.loadingExtentsCount_=0,this.nullGeometryFeatures_={},this.idIndex_={},this.uidIndex_={},this.featureChangeKeys_={},this.featuresCollection_=null,Array.isArray(t.features)?r=t.features:t.features&&(n=t.features,r=n.getArray()),e||void 0!==n||(n=new i.A(r)),void 0!==r&&this.addFeaturesInternal(r),void 0!==n&&this.bindFeaturesCollection_(n)}addFeature(t){this.addFeatureInternal(t),this.changed()}addFeatureInternal(t){const e=(0,c.v6)(t);if(!this.addToIndex_(e,t))return void(this.featuresCollection_&&this.featuresCollection_.remove(t));this.setupChangeEvents_(e,t);const n=t.getGeometry();if(n){const e=n.getExtent();this.featuresRtree_&&this.featuresRtree_.insert(e,t)}else this.nullGeometryFeatures_[e]=t;this.dispatchEvent(new I(f,t))}setupChangeEvents_(t,e){this.featureChangeKeys_[t]=[(0,M.KT)(e,a.A.CHANGE,this.handleFeatureChange_,this),(0,M.KT)(e,s.A.PROPERTYCHANGE,this.handleFeatureChange_,this)]}addToIndex_(t,e){let n=!0;const i=e.getId();return void 0!==i&&(i.toString()in this.idIndex_?n=!1:this.idIndex_[i.toString()]=e),n&&((0,S.v)(!(t in this.uidIndex_),30),this.uidIndex_[t]=e),n}addFeatures(t){this.addFeaturesInternal(t),this.changed()}addFeaturesInternal(t){const e=[],n=[],i=[];for(let r=0,o=t.length;r<o;r++){const e=t[r],i=(0,c.v6)(e);this.addToIndex_(i,e)&&n.push(e)}for(let r=0,o=n.length;r<o;r++){const t=n[r],o=(0,c.v6)(t);this.setupChangeEvents_(o,t);const a=t.getGeometry();if(a){const n=a.getExtent();e.push(n),i.push(t)}else this.nullGeometryFeatures_[o]=t}if(this.featuresRtree_&&this.featuresRtree_.load(e,i),this.hasListener(f))for(let r=0,o=n.length;r<o;r++)this.dispatchEvent(new I(f,n[r]))}bindFeaturesCollection_(t){let e=!1;this.addEventListener(f,(function(n){e||(e=!0,t.push(n.feature),e=!1)})),this.addEventListener(v,(function(n){e||(e=!0,t.remove(n.feature),e=!1)})),t.addEventListener(r.A.ADD,(t=>{e||(e=!0,this.addFeature(t.element),e=!1)})),t.addEventListener(r.A.REMOVE,(t=>{e||(e=!0,this.removeFeature(t.element),e=!1)})),this.featuresCollection_=t}clear(t){if(t){for(const t in this.featureChangeKeys_){this.featureChangeKeys_[t].forEach(M.JH)}this.featuresCollection_||(this.featureChangeKeys_={},this.idIndex_={},this.uidIndex_={})}else if(this.featuresRtree_){const t=t=>{this.removeFeatureInternal(t)};this.featuresRtree_.forEach(t);for(const e in this.nullGeometryFeatures_)this.removeFeatureInternal(this.nullGeometryFeatures_[e])}this.featuresCollection_&&this.featuresCollection_.clear(),this.featuresRtree_&&this.featuresRtree_.clear(),this.nullGeometryFeatures_={};const e=new I(m);this.dispatchEvent(e),this.changed()}forEachFeature(t){if(this.featuresRtree_)return this.featuresRtree_.forEach(t);this.featuresCollection_&&this.featuresCollection_.forEach(t)}forEachFeatureAtCoordinateDirect(t,e){const n=[t[0],t[1],t[0],t[1]];return this.forEachFeatureInExtent(n,(function(n){if(n.getGeometry().intersectsCoordinate(t))return e(n)}))}forEachFeatureInExtent(t,e){if(this.featuresRtree_)return this.featuresRtree_.forEachInExtent(t,e);this.featuresCollection_&&this.featuresCollection_.forEach(e)}forEachFeatureIntersectingExtent(t,e){return this.forEachFeatureInExtent(t,(function(n){if(n.getGeometry().intersectsExtent(t)){const t=e(n);if(t)return t}}))}getFeaturesCollection(){return this.featuresCollection_}getFeatures(){let t;return this.featuresCollection_?t=this.featuresCollection_.getArray().slice(0):this.featuresRtree_&&(t=this.featuresRtree_.getAll(),(0,u.p)(this.nullGeometryFeatures_)||(0,T.X$)(t,Object.values(this.nullGeometryFeatures_))),t}getFeaturesAtCoordinate(t){const e=[];return this.forEachFeatureAtCoordinateDirect(t,(function(t){e.push(t)})),e}getFeaturesInExtent(t,e){if(this.featuresRtree_){if(!(e&&e.canWrapX()&&this.getWrapX()))return this.featuresRtree_.getInExtent(t);const n=(0,h.QJ)(t,e);return[].concat(...n.map((t=>this.featuresRtree_.getInExtent(t))))}return this.featuresCollection_?this.featuresCollection_.getArray().slice(0):[]}getClosestFeatureToCoordinate(t,e){const n=t[0],i=t[1];let r=null;const o=[NaN,NaN];let a=1/0;const s=[-1/0,-1/0,1/0,1/0];return e=e||b.rT,this.featuresRtree_.forEachInExtent(s,(function(t){if(e(t)){const e=t.getGeometry(),l=a;if(a=e.closestPointXY(n,i,o,a),a<l){r=t;const e=Math.sqrt(a);s[0]=n-e,s[1]=i-e,s[2]=n+e,s[3]=i+e}}})),r}getExtent(t){return this.featuresRtree_.getExtent(t)}getFeatureById(t){const e=this.idIndex_[t.toString()];return void 0!==e?e:null}getFeatureByUid(t){const e=this.uidIndex_[t];return void 0!==e?e:null}getFormat(){return this.format_}getOverlaps(){return this.overlaps_}getUrl(){return this.url_}handleFeatureChange_(t){const e=t.target,n=(0,c.v6)(e),i=e.getGeometry();if(i){const t=i.getExtent();n in this.nullGeometryFeatures_?(delete this.nullGeometryFeatures_[n],this.featuresRtree_&&this.featuresRtree_.insert(t,e)):this.featuresRtree_&&this.featuresRtree_.update(t,e)}else n in this.nullGeometryFeatures_||(this.featuresRtree_&&this.featuresRtree_.remove(e),this.nullGeometryFeatures_[n]=e);const r=e.getId();if(void 0!==r){const t=r.toString();this.idIndex_[t]!==e&&(this.removeFromIdIndex_(e),this.idIndex_[t]=e)}else this.removeFromIdIndex_(e),this.uidIndex_[n]=e;this.changed(),this.dispatchEvent(new I(g,e))}hasFeature(t){const e=t.getId();return void 0!==e?e in this.idIndex_:(0,c.v6)(t)in this.uidIndex_}isEmpty(){return this.featuresRtree_?this.featuresRtree_.isEmpty()&&(0,u.p)(this.nullGeometryFeatures_):!this.featuresCollection_||0===this.featuresCollection_.getLength()}loadFeatures(t,e,n){const i=this.loadedExtentsRtree_,r=this.strategy_(t,e,n);for(let o=0,a=r.length;o<a;++o){const t=r[o];i.forEachInExtent(t,(function(e){return(0,h.ms)(e.extent,t)}))||(++this.loadingExtentsCount_,this.dispatchEvent(new I(y)),this.loader_.call(this,t,e,n,(t=>{--this.loadingExtentsCount_,this.dispatchEvent(new I(_,void 0,t))}),(()=>{--this.loadingExtentsCount_,this.dispatchEvent(new I(x))})),i.insert(t,{extent:t.slice()}))}this.loading=!(this.loader_.length<4)&&this.loadingExtentsCount_>0}refresh(){this.clear(!0),this.loadedExtentsRtree_.clear(),super.refresh()}removeLoadedExtent(t){const e=this.loadedExtentsRtree_;let n;e.forEachInExtent(t,(function(e){if((0,h.aI)(e.extent,t))return n=e,!0})),n&&e.remove(n)}removeFeature(t){if(!t)return;const e=(0,c.v6)(t);e in this.nullGeometryFeatures_?delete this.nullGeometryFeatures_[e]:this.featuresRtree_&&this.featuresRtree_.remove(t);this.removeFeatureInternal(t)&&this.changed()}removeFeatureInternal(t){const e=(0,c.v6)(t),n=this.featureChangeKeys_[e];if(!n)return;n.forEach(M.JH),delete this.featureChangeKeys_[e];const i=t.getId();return void 0!==i&&delete this.idIndex_[i.toString()],delete this.uidIndex_[e],this.dispatchEvent(new I(v,t)),t}removeFromIdIndex_(t){let e=!1;for(const n in this.idIndex_)if(this.idIndex_[n]===t){delete this.idIndex_[n],e=!0;break}return e}setLoader(t){this.loader_=t}setUrl(t){(0,S.v)(this.format_,7),this.url_=t,this.setLoader(C(t,this.format_))}}const k=E},3264:(t,e,n)=>{"use strict";n.d(e,{A:()=>B});var i=n(874),r=n(931),o=n(4864),a=n(8169),s=n(5751);const l="tileloadstart",h="tileloadend",c="tileloaderror";var u=n(5026),d=n(289),p=n(6916),f=n(3957),g=n(6859),m=n(1747),v=n(3107),y=n(8086),_=n(2878),x=n(4320),b=n(2453),w=n(9783),S=n(277);const T=[0,0,0];const M=class{constructor(t){let e;if(this.minZoom=void 0!==t.minZoom?t.minZoom:0,this.resolutions_=t.resolutions,(0,f.v)((0,w.WC)(this.resolutions_,(function(t,e){return e-t}),!0),17),!t.origins)for(let i=0,r=this.resolutions_.length-1;i<r;++i)if(e){if(this.resolutions_[i]/this.resolutions_[i+1]!==e){e=void 0;break}}else e=this.resolutions_[i]/this.resolutions_[i+1];this.zoomFactor_=e,this.maxZoom=this.resolutions_.length-1,this.origin_=void 0!==t.origin?t.origin:null,this.origins_=null,void 0!==t.origins&&(this.origins_=t.origins,(0,f.v)(this.origins_.length==this.resolutions_.length,20));const n=t.extent;void 0===n||this.origin_||this.origins_||(this.origin_=(0,x.Py)(n)),(0,f.v)(!this.origin_&&this.origins_||this.origin_&&!this.origins_,18),this.tileSizes_=null,void 0!==t.tileSizes&&(this.tileSizes_=t.tileSizes,(0,f.v)(this.tileSizes_.length==this.resolutions_.length,19)),this.tileSize_=void 0!==t.tileSize?t.tileSize:this.tileSizes_?null:y.R,(0,f.v)(!this.tileSize_&&this.tileSizes_||this.tileSize_&&!this.tileSizes_,22),this.extent_=void 0!==n?n:null,this.fullTileRanges_=null,this.tmpSize_=[0,0],this.tmpExtent_=[0,0,0,0],void 0!==t.sizes?this.fullTileRanges_=t.sizes.map((function(t,e){const i=new v.A(Math.min(0,t[0]),Math.max(t[0]-1,-1),Math.min(0,t[1]),Math.max(t[1]-1,-1));if(n){const t=this.getTileRangeForExtentAndZ(n,e);i.minX=Math.max(t.minX,i.minX),i.maxX=Math.min(t.maxX,i.maxX),i.minY=Math.max(t.minY,i.minY),i.maxY=Math.min(t.maxY,i.maxY)}return i}),this):n&&this.calculateTileRanges_(n)}forEachTileCoord(t,e,n){const i=this.getTileRangeForExtentAndZ(t,e);for(let r=i.minX,o=i.maxX;r<=o;++r)for(let t=i.minY,a=i.maxY;t<=a;++t)n([e,r,t])}forEachTileCoordParentTileRange(t,e,n,i){let r,o,a,s=null,l=t[0]-1;for(2===this.zoomFactor_?(o=t[1],a=t[2]):s=this.getTileCoordExtent(t,i);l>=this.minZoom;){if(2===this.zoomFactor_?(o=Math.floor(o/2),a=Math.floor(a/2),r=(0,v.N)(o,o,a,a,n)):r=this.getTileRangeForExtentAndZ(s,l,n),e(l,r))return!0;--l}return!1}getExtent(){return this.extent_}getMaxZoom(){return this.maxZoom}getMinZoom(){return this.minZoom}getOrigin(t){return this.origin_?this.origin_:this.origins_[t]}getResolution(t){return this.resolutions_[t]}getResolutions(){return this.resolutions_}getTileCoordChildTileRange(t,e,n){if(t[0]<this.maxZoom){if(2===this.zoomFactor_){const n=2*t[1],i=2*t[2];return(0,v.N)(n,n+1,i,i+1,e)}const i=this.getTileCoordExtent(t,n||this.tmpExtent_);return this.getTileRangeForExtentAndZ(i,t[0]+1,e)}return null}getTileRangeForTileCoordAndZ(t,e,n){if(e>this.maxZoom||e<this.minZoom)return null;const i=t[0],r=t[1],o=t[2];if(e===i)return(0,v.N)(r,o,r,o,n);if(this.zoomFactor_){const t=Math.pow(this.zoomFactor_,e-i),a=Math.floor(r*t),s=Math.floor(o*t);if(e<i)return(0,v.N)(a,a,s,s,n);const l=Math.floor(t*(r+1))-1,h=Math.floor(t*(o+1))-1;return(0,v.N)(a,l,s,h,n)}const a=this.getTileCoordExtent(t,this.tmpExtent_);return this.getTileRangeForExtentAndZ(a,e,n)}getTileRangeForExtentAndZ(t,e,n){this.getTileCoordForXYAndZ_(t[0],t[3],e,!1,T);const i=T[1],r=T[2];this.getTileCoordForXYAndZ_(t[2],t[1],e,!0,T);const o=T[1],a=T[2];return(0,v.N)(i,o,r,a,n)}getTileCoordCenter(t){const e=this.getOrigin(t[0]),n=this.getResolution(t[0]),i=(0,S.xq)(this.getTileSize(t[0]),this.tmpSize_);return[e[0]+(t[1]+.5)*i[0]*n,e[1]-(t[2]+.5)*i[1]*n]}getTileCoordExtent(t,e){const n=this.getOrigin(t[0]),i=this.getResolution(t[0]),r=(0,S.xq)(this.getTileSize(t[0]),this.tmpSize_),o=n[0]+t[1]*r[0]*i,a=n[1]-(t[2]+1)*r[1]*i,s=o+r[0]*i,l=a+r[1]*i;return(0,x.N)(o,a,s,l,e)}getTileCoordForCoordAndResolution(t,e,n){return this.getTileCoordForXYAndResolution_(t[0],t[1],e,!1,n)}getTileCoordForXYAndResolution_(t,e,n,i,r){const o=this.getZForResolution(n),a=n/this.getResolution(o),s=this.getOrigin(o),l=(0,S.xq)(this.getTileSize(o),this.tmpSize_);let h=a*(t-s[0])/n/l[0],c=a*(s[1]-e)/n/l[1];return i?(h=(0,_.mk)(h,5)-1,c=(0,_.mk)(c,5)-1):(h=(0,_.RI)(h,5),c=(0,_.RI)(c,5)),(0,m.N)(o,h,c,r)}getTileCoordForXYAndZ_(t,e,n,i,r){const o=this.getOrigin(n),a=this.getResolution(n),s=(0,S.xq)(this.getTileSize(n),this.tmpSize_);let l=(t-o[0])/a/s[0],h=(o[1]-e)/a/s[1];return i?(l=(0,_.mk)(l,5)-1,h=(0,_.mk)(h,5)-1):(l=(0,_.RI)(l,5),h=(0,_.RI)(h,5)),(0,m.N)(n,l,h,r)}getTileCoordForCoordAndZ(t,e,n){return this.getTileCoordForXYAndZ_(t[0],t[1],e,!1,n)}getTileCoordResolution(t){return this.resolutions_[t[0]]}getTileSize(t){return this.tileSize_?this.tileSize_:this.tileSizes_[t]}getFullTileRange(t){return this.fullTileRanges_?this.fullTileRanges_[t]:this.extent_?this.getTileRangeForExtentAndZ(this.extent_,t):null}getZForResolution(t,e){const n=(0,w.FT)(this.resolutions_,t,e||0);return(0,_.qE)(n,this.minZoom,this.maxZoom)}tileCoordIntersectsViewport(t,e){return(0,b.sj)(e,0,e.length,2,this.getTileCoordExtent(t))}calculateTileRanges_(t){const e=this.resolutions_.length,n=new Array(e);for(let i=this.minZoom;i<e;++i)n[i]=this.getTileRangeForExtentAndZ(t,i);this.fullTileRanges_=n}};function A(t){let e=t.getDefaultTileGrid();return e||(e=function(t,e,n,i){const r=I(t);return function(t,e,n,i){i=void 0!==i?i:"top-left";const r=C(t,e,n);return new M({extent:t,origin:(0,x.qF)(t,i),resolutions:r,tileSize:n})}(r,e,n,i)}(t),t.setDefaultTileGrid(e)),e}function C(t,e,n,i){e=void 0!==e?e:y.L,n=(0,S.xq)(void 0!==n?n:y.R);const r=(0,x.Oq)(t),o=(0,x.RG)(t);i=i>0?i:Math.max(o/n[0],r/n[1]);const a=e+1,s=new Array(a);for(let l=0;l<a;++l)s[l]=i/Math.pow(2,l);return s}function I(t){let e=(t=(0,g.Jt)(t)).getExtent();if(!e){const n=180*g.Ig.degrees/t.getMetersPerUnit();e=(0,x.N)(-n,-n,n,n)}return e}class E extends d.A{constructor(t){super({attributions:t.attributions,attributionsCollapsible:t.attributionsCollapsible,projection:t.projection,state:t.state,wrapX:t.wrapX,interpolate:t.interpolate}),this.on,this.once,this.un,this.opaque_=void 0!==t.opaque&&t.opaque,this.tilePixelRatio_=void 0!==t.tilePixelRatio?t.tilePixelRatio:1,this.tileGrid=void 0!==t.tileGrid?t.tileGrid:null;const e=[256,256];this.tileGrid&&(0,S.xq)(this.tileGrid.getTileSize(this.tileGrid.getMinZoom()),e),this.tileCache=new a.A(t.cacheSize||0),this.tmpSize=[0,0],this.key_=t.key||"",this.tileOptions={transition:t.transition,interpolate:t.interpolate},this.zDirection=t.zDirection?t.zDirection:0}canExpireCache(){return this.tileCache.canExpireCache()}expireCache(t,e){const n=this.getTileCacheForProjection(t);n&&n.expireCache(e)}forEachLoadedTile(t,e,n,i){const r=this.getTileCacheForProjection(t);if(!r)return!1;let o,a,l,h=!0;for(let c=n.minX;c<=n.maxX;++c)for(let t=n.minY;t<=n.maxY;++t)a=(0,m.dp)(e,c,t),l=!1,r.containsKey(a)&&(o=r.get(a),l=o.getState()===s.A.LOADED,l&&(l=!1!==i(o))),l||(h=!1);return h}getGutterForProjection(t){return 0}getKey(){return this.key_}setKey(t){this.key_!==t&&(this.key_=t,this.changed())}getOpaque(t){return this.opaque_}getResolutions(t){const e=t?this.getTileGridForProjection(t):this.tileGrid;return e?e.getResolutions():null}getTile(t,e,n,i,r){return(0,p.b0)()}getTileGrid(){return this.tileGrid}getTileGridForProjection(t){return this.tileGrid?this.tileGrid:A(t)}getTileCacheForProjection(t){const e=this.getProjection();return(0,f.v)(null===e||(0,g.tI)(e,t),68),this.tileCache}getTilePixelRatio(t){return this.tilePixelRatio_}getTilePixelSize(t,e,n){const i=this.getTileGridForProjection(n),r=this.getTilePixelRatio(e),o=(0,S.xq)(i.getTileSize(t),this.tmpSize);return 1==r?o:(0,S.hs)(o,r,this.tmpSize)}getTileCoordForTileUrlFunction(t,e){e=void 0!==e?e:this.getProjection();const n=this.getTileGridForProjection(e);return this.getWrapX()&&e.isGlobal()&&(t=function(t,e,n){const i=e[0],r=t.getTileCoordCenter(e),o=I(n);if(!(0,x.Ym)(o,r)){const e=(0,x.RG)(o),n=Math.ceil((o[0]-r[0])/e);return r[0]+=e*n,t.getTileCoordForCoordAndZ(r,i)}return e}(n,t,e)),(0,m.N5)(t,n)?t:null}clear(){this.tileCache.clear()}refresh(){this.clear(),super.refresh()}updateCacheSize(t,e){const n=this.getTileCacheForProjection(e);t>n.highWaterMark&&(n.highWaterMark=t)}useTile(t,e,n,i){}}class k extends u.Ay{constructor(t,e){super(t),this.tile=e}}const L=E;function D(t,e){const n=/\{z\}/g,i=/\{x\}/g,r=/\{y\}/g,o=/\{-y\}/g;return function(a,s,l){if(a)return t.replace(n,a[0].toString()).replace(i,a[1].toString()).replace(r,a[2].toString()).replace(o,(function(){const t=a[0],n=e.getFullTileRange(t);(0,f.v)(n,55);return(n.getHeight()-a[2]-1).toString()}))}}function P(t,e){const n=t.length,i=new Array(n);for(let r=0;r<n;++r)i[r]=D(t[r],e);return function(t){if(1===t.length)return t[0];return function(e,n,i){if(!e)return;const r=(0,m.tW)(e),o=(0,_.xP)(r,t.length);return t[o](e,n,i)}}(i)}class R extends L{constructor(t){super({attributions:t.attributions,cacheSize:t.cacheSize,opaque:t.opaque,projection:t.projection,state:t.state,tileGrid:t.tileGrid,tilePixelRatio:t.tilePixelRatio,wrapX:t.wrapX,transition:t.transition,interpolate:t.interpolate,key:t.key,attributionsCollapsible:t.attributionsCollapsible,zDirection:t.zDirection}),this.generateTileUrlFunction_=this.tileUrlFunction===R.prototype.tileUrlFunction,this.tileLoadFunction=t.tileLoadFunction,t.tileUrlFunction&&(this.tileUrlFunction=t.tileUrlFunction),this.urls=null,t.urls?this.setUrls(t.urls):t.url&&this.setUrl(t.url),this.tileLoadingKeys_={}}getTileLoadFunction(){return this.tileLoadFunction}getTileUrlFunction(){return Object.getPrototypeOf(this).tileUrlFunction===this.tileUrlFunction?this.tileUrlFunction.bind(this):this.tileUrlFunction}getUrls(){return this.urls}handleTileChange(t){const e=t.target,n=(0,p.v6)(e),i=e.getState();let r;i==s.A.LOADING?(this.tileLoadingKeys_[n]=!0,r=l):n in this.tileLoadingKeys_&&(delete this.tileLoadingKeys_[n],r=i==s.A.ERROR?c:i==s.A.LOADED?h:void 0),null!=r&&this.dispatchEvent(new k(r,e))}setTileLoadFunction(t){this.tileCache.clear(),this.tileLoadFunction=t,this.changed()}setTileUrlFunction(t,e){this.tileUrlFunction=t,this.tileCache.pruneExceptNewestZ(),void 0!==e?this.setKey(e):this.changed()}setUrl(t){const e=function(t){const e=[];let n=/\{([a-z])-([a-z])\}/.exec(t);if(n){const i=n[1].charCodeAt(0),r=n[2].charCodeAt(0);let o;for(o=i;o<=r;++o)e.push(t.replace(n[0],String.fromCharCode(o)));return e}if(n=/\{(\d+)-(\d+)\}/.exec(t),n){const i=parseInt(n[2],10);for(let r=parseInt(n[1],10);r<=i;r++)e.push(t.replace(n[0],r.toString()));return e}return e.push(t),e}(t);this.urls=e,this.setUrls(e)}setUrls(t){this.urls=t;const e=t.join("\n");this.generateTileUrlFunction_?this.setTileUrlFunction(P(t,this.tileGrid),e):this.setKey(e)}tileUrlFunction(t,e,n){}useTile(t,e,n){const i=(0,m.dp)(t,e,n);this.tileCache.containsKey(i)&&this.tileCache.get(i)}}const O=R;function N(t,e){t.getImage().src=e}const F=class extends O{constructor(t){super({attributions:t.attributions,cacheSize:t.cacheSize,opaque:t.opaque,projection:t.projection,state:t.state,tileGrid:t.tileGrid,tileLoadFunction:t.tileLoadFunction?t.tileLoadFunction:N,tilePixelRatio:t.tilePixelRatio,tileUrlFunction:t.tileUrlFunction,url:t.url,urls:t.urls,wrapX:t.wrapX,transition:t.transition,interpolate:void 0===t.interpolate||t.interpolate,key:t.key,attributionsCollapsible:t.attributionsCollapsible,zDirection:t.zDirection}),this.crossOrigin=void 0!==t.crossOrigin?t.crossOrigin:null,this.tileClass=void 0!==t.tileClass?t.tileClass:r.A,this.tileCacheForProjection={},this.tileGridForProjection={},this.reprojectionErrorThreshold_=t.reprojectionErrorThreshold,this.renderReprojectionEdges_=!1}canExpireCache(){if(this.tileCache.canExpireCache())return!0;for(const t in this.tileCacheForProjection)if(this.tileCacheForProjection[t].canExpireCache())return!0;return!1}expireCache(t,e){const n=this.getTileCacheForProjection(t);this.tileCache.expireCache(this.tileCache==n?e:{});for(const i in this.tileCacheForProjection){const t=this.tileCacheForProjection[i];t.expireCache(t==n?e:{})}}getGutterForProjection(t){return this.getProjection()&&t&&!(0,g.tI)(this.getProjection(),t)?0:this.getGutter()}getGutter(){return 0}getKey(){let t=super.getKey();return this.getInterpolate()||(t+=":disable-interpolation"),t}getOpaque(t){return!(this.getProjection()&&t&&!(0,g.tI)(this.getProjection(),t))&&super.getOpaque(t)}getTileGridForProjection(t){const e=this.getProjection();if(this.tileGrid&&(!e||(0,g.tI)(e,t)))return this.tileGrid;const n=(0,p.v6)(t);return n in this.tileGridForProjection||(this.tileGridForProjection[n]=A(t)),this.tileGridForProjection[n]}getTileCacheForProjection(t){const e=this.getProjection();if(!e||(0,g.tI)(e,t))return this.tileCache;const n=(0,p.v6)(t);return n in this.tileCacheForProjection||(this.tileCacheForProjection[n]=new a.A(this.tileCache.highWaterMark)),this.tileCacheForProjection[n]}createTile_(t,e,n,r,o,a){const l=[t,e,n],h=this.getTileCoordForTileUrlFunction(l,o),c=h?this.tileUrlFunction(h,r,o):void 0,u=new this.tileClass(l,void 0!==c?s.A.IDLE:s.A.EMPTY,void 0!==c?c:"",this.crossOrigin,this.tileLoadFunction,this.tileOptions);return u.key=a,u.addEventListener(i.A.CHANGE,this.handleTileChange.bind(this)),u}getTile(t,e,n,i,r){const a=this.getProjection();if(!a||!r||(0,g.tI)(a,r))return this.getTileInternal(t,e,n,i,a||r);const s=this.getTileCacheForProjection(r),l=[t,e,n];let h;const c=(0,m.i7)(l);s.containsKey(c)&&(h=s.get(c));const u=this.getKey();if(h&&h.key==u)return h;const d=this.getTileGridForProjection(a),p=this.getTileGridForProjection(r),f=this.getTileCoordForTileUrlFunction(l,r),v=new o.A(a,d,r,p,l,f,this.getTilePixelRatio(i),this.getGutter(),((t,e,n,i)=>this.getTileInternal(t,e,n,i,a)),this.reprojectionErrorThreshold_,this.renderReprojectionEdges_,this.getInterpolate());return v.key=u,h?(v.interimTile=h,v.refreshInterimChain(),s.replace(c,v)):s.set(c,v),v}getTileInternal(t,e,n,i,r){let o=null;const a=(0,m.dp)(t,e,n),l=this.getKey();if(this.tileCache.containsKey(a)){if(o=this.tileCache.get(a),o.key!=l){const h=o;o=this.createTile_(t,e,n,i,r,l),h.getState()==s.A.IDLE?o.interimTile=h.interimTile:o.interimTile=h,o.refreshInterimChain(),this.tileCache.replace(a,o)}}else o=this.createTile_(t,e,n,i,r,l),this.tileCache.set(a,o);return o}setRenderReprojectionEdges(t){if(this.renderReprojectionEdges_!=t){this.renderReprojectionEdges_=t;for(const t in this.tileCacheForProjection)this.tileCacheForProjection[t].clear();this.changed()}}setTileGridForProjection(t,e){const n=(0,g.Jt)(t);if(n){const t=(0,p.v6)(n);t in this.tileGridForProjection||(this.tileGridForProjection[t]=e)}}clear(){super.clear();for(const t in this.tileCacheForProjection)this.tileCacheForProjection[t].clear()}};const B=class extends F{constructor(t){const e=void 0!==(t=t||{}).projection?t.projection:"EPSG:3857",n=void 0!==t.tileGrid?t.tileGrid:function(t){const e=t||{},n=e.extent||(0,g.Jt)("EPSG:3857").getExtent(),i={extent:n,minZoom:e.minZoom,tileSize:e.tileSize,resolutions:C(n,e.maxZoom,e.tileSize,e.maxResolution)};return new M(i)}({extent:I(e),maxResolution:t.maxResolution,maxZoom:t.maxZoom,minZoom:t.minZoom,tileSize:t.tileSize});super({attributions:t.attributions,cacheSize:t.cacheSize,crossOrigin:t.crossOrigin,interpolate:t.interpolate,opaque:t.opaque,projection:e,reprojectionErrorThreshold:t.reprojectionErrorThreshold,tileGrid:n,tileLoadFunction:t.tileLoadFunction,tilePixelRatio:t.tilePixelRatio,tileUrlFunction:t.tileUrlFunction,url:t.url,urls:t.urls,wrapX:void 0===t.wrapX||t.wrapX,transition:t.transition,attributionsCollapsible:t.attributionsCollapsible,zDirection:t.zDirection}),this.gutter_=void 0!==t.gutter?t.gutter:0}getGutter(){return this.gutter_}}},4913:(t,e,n)=>{"use strict";n.d(e,{Yf:()=>o,cY:()=>a});var i=n(2878);const r=6371008.8;function o(t,e,n){n=n||r;const o=(0,i.eh)(t[1]),a=(0,i.eh)(e[1]),s=(a-o)/2,l=(0,i.eh)(e[0]-t[0])/2,h=Math.sin(s)*Math.sin(s)+Math.sin(l)*Math.sin(l)*Math.cos(o)*Math.cos(a);return 2*n*Math.atan2(Math.sqrt(h),Math.sqrt(1-h))}function a(t,e,n,o){o=o||r;const a=(0,i.eh)(t[1]),s=(0,i.eh)(t[0]),l=e/o,h=Math.asin(Math.sin(a)*Math.cos(l)+Math.cos(a)*Math.sin(l)*Math.cos(n)),c=s+Math.atan2(Math.sin(n)*Math.sin(l)*Math.cos(a),Math.cos(l)-Math.sin(a)*Math.sin(h));return[(0,i.xW)(c),(0,i.xW)(h)]}},5390:(t,e,n)=>{"use strict";n.d(e,{A:()=>o});var i=n(6539);class r extends i.A{constructor(t){super({points:1/0,fill:(t=t||{radius:5}).fill,radius:t.radius,stroke:t.stroke,scale:void 0!==t.scale?t.scale:1,rotation:void 0!==t.rotation?t.rotation:0,rotateWithView:void 0!==t.rotateWithView&&t.rotateWithView,displacement:void 0!==t.displacement?t.displacement:[0,0],declutterMode:t.declutterMode})}clone(){const t=this.getScale(),e=new r({fill:this.getFill()?this.getFill().clone():void 0,stroke:this.getStroke()?this.getStroke().clone():void 0,radius:this.getRadius(),scale:Array.isArray(t)?t.slice():t,rotation:this.getRotation(),rotateWithView:this.getRotateWithView(),displacement:this.getDisplacement().slice(),declutterMode:this.getDeclutterMode()});return e.setOpacity(this.getOpacity()),e}setRadius(t){this.radius_=t,this.render()}}const o=r},9091:(t,e,n)=>{"use strict";n.d(e,{A:()=>r});class i{constructor(t){t=t||{},this.color_=void 0!==t.color?t.color:null}clone(){const t=this.getColor();return new i({color:Array.isArray(t)?t.slice():t||void 0})}getColor(){return this.color_}setColor(t){this.color_=t}}const r=i},1386:(t,e,n)=>{"use strict";n.d(e,{u:()=>a});var i=n(1805);class r{constructor(){this.cache_={},this.cacheSize_=0,this.maxCacheSize_=32}clear(){this.cache_={},this.cacheSize_=0}canExpireCache(){return this.cacheSize_>this.maxCacheSize_}expire(){if(this.canExpireCache()){let t=0;for(const e in this.cache_){const n=this.cache_[e];3&t++||n.hasListener()||(delete this.cache_[e],--this.cacheSize_)}}}get(t,e,n){const i=o(t,e,n);return i in this.cache_?this.cache_[i]:null}set(t,e,n,i){const r=o(t,e,n);this.cache_[r]=i,++this.cacheSize_}setSize(t){this.maxCacheSize_=t,this.expire()}}function o(t,e,n){return e+":"+t+":"+(n?(0,i.oJ)(n):"null")}const a=new r},9113:(t,e,n)=>{"use strict";n.d(e,{A:()=>a});var i=n(6916),r=n(277);class o{constructor(t){this.opacity_=t.opacity,this.rotateWithView_=t.rotateWithView,this.rotation_=t.rotation,this.scale_=t.scale,this.scaleArray_=(0,r.xq)(t.scale),this.displacement_=t.displacement,this.declutterMode_=t.declutterMode}clone(){const t=this.getScale();return new o({opacity:this.getOpacity(),scale:Array.isArray(t)?t.slice():t,rotation:this.getRotation(),rotateWithView:this.getRotateWithView(),displacement:this.getDisplacement().slice(),declutterMode:this.getDeclutterMode()})}getOpacity(){return this.opacity_}getRotateWithView(){return this.rotateWithView_}getRotation(){return this.rotation_}getScale(){return this.scale_}getScaleArray(){return this.scaleArray_}getDisplacement(){return this.displacement_}getDeclutterMode(){return this.declutterMode_}getAnchor(){return(0,i.b0)()}getImage(t){return(0,i.b0)()}getHitDetectionImage(){return(0,i.b0)()}getPixelRatio(t){return 1}getImageState(){return(0,i.b0)()}getImageSize(){return(0,i.b0)()}getOrigin(){return(0,i.b0)()}getSize(){return(0,i.b0)()}setDisplacement(t){this.displacement_=t}setOpacity(t){this.opacity_=t}setRotateWithView(t){this.rotateWithView_=t}setRotation(t){this.rotation_=t}setScale(t){this.scale_=t,this.scaleArray_=(0,r.xq)(t)}listenImageChange(t){(0,i.b0)()}load(){(0,i.b0)()}unlistenImageChange(t){(0,i.b0)()}}const a=o},6539:(t,e,n)=>{"use strict";n.d(e,{A:()=>c});var i=n(438),r=n(9113),o=n(1805),a=n(154),s=n(7354),l=n(1763);class h extends r.A{constructor(t){super({opacity:1,rotateWithView:void 0!==t.rotateWithView&&t.rotateWithView,rotation:void 0!==t.rotation?t.rotation:0,scale:void 0!==t.scale?t.scale:1,displacement:void 0!==t.displacement?t.displacement:[0,0],declutterMode:t.declutterMode}),this.canvas_=void 0,this.hitDetectionCanvas_=null,this.fill_=void 0!==t.fill?t.fill:null,this.origin_=[0,0],this.points_=t.points,this.radius_=void 0!==t.radius?t.radius:t.radius1,this.radius2_=t.radius2,this.angle_=void 0!==t.angle?t.angle:0,this.stroke_=void 0!==t.stroke?t.stroke:null,this.size_=null,this.renderOptions_=null,this.render()}clone(){const t=this.getScale(),e=new h({fill:this.getFill()?this.getFill().clone():void 0,points:this.getPoints(),radius:this.getRadius(),radius2:this.getRadius2(),angle:this.getAngle(),stroke:this.getStroke()?this.getStroke().clone():void 0,rotation:this.getRotation(),rotateWithView:this.getRotateWithView(),scale:Array.isArray(t)?t.slice():t,displacement:this.getDisplacement().slice(),declutterMode:this.getDeclutterMode()});return e.setOpacity(this.getOpacity()),e}getAnchor(){const t=this.size_;if(!t)return null;const e=this.getDisplacement(),n=this.getScaleArray();return[t[0]/2-e[0]/n[0],t[1]/2+e[1]/n[1]]}getAngle(){return this.angle_}getFill(){return this.fill_}setFill(t){this.fill_=t,this.render()}getHitDetectionImage(){return this.hitDetectionCanvas_||this.createHitDetectionCanvas_(this.renderOptions_),this.hitDetectionCanvas_}getImage(t){let e=this.canvas_[t];if(!e){const n=this.renderOptions_,i=(0,s.Y)(n.size*t,n.size*t);this.draw_(n,i,t),e=i.canvas,this.canvas_[t]=e}return e}getPixelRatio(t){return t}getImageSize(){return this.size_}getImageState(){return i.A.LOADED}getOrigin(){return this.origin_}getPoints(){return this.points_}getRadius(){return this.radius_}getRadius2(){return this.radius2_}getSize(){return this.size_}getStroke(){return this.stroke_}setStroke(t){this.stroke_=t,this.render()}listenImageChange(t){}load(){}unlistenImageChange(t){}calculateLineJoinSize_(t,e,n){if(0===e||this.points_===1/0||"bevel"!==t&&"miter"!==t)return e;let i=this.radius_,r=void 0===this.radius2_?i:this.radius2_;if(i<r){const t=i;i=r,r=t}const o=void 0===this.radius2_?this.points_:2*this.points_,a=2*Math.PI/o,s=r*Math.sin(a),l=i-Math.sqrt(r*r-s*s),h=Math.sqrt(s*s+l*l),c=h/s;if("miter"===t&&c<=n)return c*e;const u=e/2/c,d=e/2*(l/h),p=Math.sqrt((i+u)*(i+u)+d*d)-i;if(void 0===this.radius2_||"bevel"===t)return 2*p;const f=i*Math.sin(a),g=r-Math.sqrt(i*i-f*f),m=Math.sqrt(f*f+g*g)/f;if(m<=n){const t=m*e/2-r-i;return 2*Math.max(p,t)}return 2*p}createRenderOptions(){let t,e=l._K,n=0,i=null,r=0,o=0;this.stroke_&&(t=this.stroke_.getColor(),null===t&&(t=l.NT),t=(0,a.F)(t),o=this.stroke_.getWidth(),void 0===o&&(o=l.aq),i=this.stroke_.getLineDash(),r=this.stroke_.getLineDashOffset(),e=this.stroke_.getLineJoin(),void 0===e&&(e=l._K),n=this.stroke_.getMiterLimit(),void 0===n&&(n=l.eL));const s=this.calculateLineJoinSize_(e,o,n),h=Math.max(this.radius_,this.radius2_||0);return{strokeStyle:t,strokeWidth:o,size:Math.ceil(2*h+s),lineDash:i,lineDashOffset:r,lineJoin:e,miterLimit:n}}render(){this.renderOptions_=this.createRenderOptions();const t=this.renderOptions_.size;this.canvas_={},this.size_=[t,t]}draw_(t,e,n){if(e.scale(n,n),e.translate(t.size/2,t.size/2),this.createPath_(e),this.fill_){let t=this.fill_.getColor();null===t&&(t=l.qY),e.fillStyle=(0,a.F)(t),e.fill()}this.stroke_&&(e.strokeStyle=t.strokeStyle,e.lineWidth=t.strokeWidth,t.lineDash&&(e.setLineDash(t.lineDash),e.lineDashOffset=t.lineDashOffset),e.lineJoin=t.lineJoin,e.miterLimit=t.miterLimit,e.stroke())}createHitDetectionCanvas_(t){if(this.fill_){let e=this.fill_.getColor(),n=0;if("string"==typeof e&&(e=(0,o._j)(e)),null===e?n=1:Array.isArray(e)&&(n=4===e.length?e[3]:1),0===n){const e=(0,s.Y)(t.size,t.size);this.hitDetectionCanvas_=e.canvas,this.drawHitDetectionCanvas_(t,e)}}this.hitDetectionCanvas_||(this.hitDetectionCanvas_=this.getImage(1))}createPath_(t){let e=this.points_;const n=this.radius_;if(e===1/0)t.arc(0,0,n,0,2*Math.PI);else{const i=void 0===this.radius2_?n:this.radius2_;void 0!==this.radius2_&&(e*=2);const r=this.angle_-Math.PI/2,o=2*Math.PI/e;for(let a=0;a<e;a++){const e=r+a*o,s=a%2==0?n:i;t.lineTo(s*Math.cos(e),s*Math.sin(e))}t.closePath()}}drawHitDetectionCanvas_(t,e){e.translate(t.size/2,t.size/2),this.createPath_(e),e.fillStyle=l.qY,e.fill(),this.stroke_&&(e.strokeStyle=t.strokeStyle,e.lineWidth=t.strokeWidth,t.lineDash&&(e.setLineDash(t.lineDash),e.lineDashOffset=t.lineDashOffset),e.lineJoin=t.lineJoin,e.miterLimit=t.miterLimit,e.stroke())}}const c=h},3698:(t,e,n)=>{"use strict";n.d(e,{A:()=>r});class i{constructor(t){t=t||{},this.color_=void 0!==t.color?t.color:null,this.lineCap_=t.lineCap,this.lineDash_=void 0!==t.lineDash?t.lineDash:null,this.lineDashOffset_=t.lineDashOffset,this.lineJoin_=t.lineJoin,this.miterLimit_=t.miterLimit,this.width_=t.width}clone(){const t=this.getColor();return new i({color:Array.isArray(t)?t.slice():t||void 0,lineCap:this.getLineCap(),lineDash:this.getLineDash()?this.getLineDash().slice():void 0,lineDashOffset:this.getLineDashOffset(),lineJoin:this.getLineJoin(),miterLimit:this.getMiterLimit(),width:this.getWidth()})}getColor(){return this.color_}getLineCap(){return this.lineCap_}getLineDash(){return this.lineDash_}getLineDashOffset(){return this.lineDashOffset_}getLineJoin(){return this.lineJoin_}getMiterLimit(){return this.miterLimit_}getWidth(){return this.width_}setColor(t){this.color_=t}setLineCap(t){this.lineCap_=t}setLineDash(t){this.lineDash_=t}setLineDashOffset(t){this.lineDashOffset_=t}setLineJoin(t){this.lineJoin_=t}setMiterLimit(t){this.miterLimit_=t}setWidth(t){this.width_=t}}const r=i},6365:(t,e,n)=>{"use strict";n.d(e,{Ay:()=>d,d1:()=>c,mC:()=>l});var i=n(5390),r=n(9091),o=n(3698),a=n(3957);class s{constructor(t){t=t||{},this.geometry_=null,this.geometryFunction_=u,void 0!==t.geometry&&this.setGeometry(t.geometry),this.fill_=void 0!==t.fill?t.fill:null,this.image_=void 0!==t.image?t.image:null,this.renderer_=void 0!==t.renderer?t.renderer:null,this.hitDetectionRenderer_=void 0!==t.hitDetectionRenderer?t.hitDetectionRenderer:null,this.stroke_=void 0!==t.stroke?t.stroke:null,this.text_=void 0!==t.text?t.text:null,this.zIndex_=t.zIndex}clone(){let t=this.getGeometry();return t&&"object"==typeof t&&(t=t.clone()),new s({geometry:t,fill:this.getFill()?this.getFill().clone():void 0,image:this.getImage()?this.getImage().clone():void 0,renderer:this.getRenderer(),stroke:this.getStroke()?this.getStroke().clone():void 0,text:this.getText()?this.getText().clone():void 0,zIndex:this.getZIndex()})}getRenderer(){return this.renderer_}setRenderer(t){this.renderer_=t}setHitDetectionRenderer(t){this.hitDetectionRenderer_=t}getHitDetectionRenderer(){return this.hitDetectionRenderer_}getGeometry(){return this.geometry_}getGeometryFunction(){return this.geometryFunction_}getFill(){return this.fill_}setFill(t){this.fill_=t}getImage(){return this.image_}setImage(t){this.image_=t}getStroke(){return this.stroke_}setStroke(t){this.stroke_=t}getText(){return this.text_}setText(t){this.text_=t}getZIndex(){return this.zIndex_}setGeometry(t){"function"==typeof t?this.geometryFunction_=t:"string"==typeof t?this.geometryFunction_=function(e){return e.get(t)}:t?void 0!==t&&(this.geometryFunction_=function(){return t}):this.geometryFunction_=u,this.geometry_=t}setZIndex(t){this.zIndex_=t}}function l(t){let e;if("function"==typeof t)e=t;else{let n;if(Array.isArray(t))n=t;else{(0,a.v)("function"==typeof t.getZIndex,41);n=[t]}e=function(){return n}}return e}let h=null;function c(t,e){if(!h){const t=new r.A({color:"rgba(255,255,255,0.4)"}),e=new o.A({color:"#3399CC",width:1.25});h=[new s({image:new i.A({fill:t,stroke:e,radius:5}),fill:t,stroke:e})]}return h}function u(t){return t.getGeometry()}const d=s},8981:(t,e,n)=>{"use strict";n.d(e,{A:()=>a});var i=n(9091),r=n(277);class o{constructor(t){t=t||{},this.font_=t.font,this.rotation_=t.rotation,this.rotateWithView_=t.rotateWithView,this.scale_=t.scale,this.scaleArray_=(0,r.xq)(void 0!==t.scale?t.scale:1),this.text_=t.text,this.textAlign_=t.textAlign,this.justify_=t.justify,this.repeat_=t.repeat,this.textBaseline_=t.textBaseline,this.fill_=void 0!==t.fill?t.fill:new i.A({color:"#333"}),this.maxAngle_=void 0!==t.maxAngle?t.maxAngle:Math.PI/4,this.placement_=void 0!==t.placement?t.placement:"point",this.overflow_=!!t.overflow,this.stroke_=void 0!==t.stroke?t.stroke:null,this.offsetX_=void 0!==t.offsetX?t.offsetX:0,this.offsetY_=void 0!==t.offsetY?t.offsetY:0,this.backgroundFill_=t.backgroundFill?t.backgroundFill:null,this.backgroundStroke_=t.backgroundStroke?t.backgroundStroke:null,this.padding_=void 0===t.padding?null:t.padding}clone(){const t=this.getScale();return new o({font:this.getFont(),placement:this.getPlacement(),repeat:this.getRepeat(),maxAngle:this.getMaxAngle(),overflow:this.getOverflow(),rotation:this.getRotation(),rotateWithView:this.getRotateWithView(),scale:Array.isArray(t)?t.slice():t,text:this.getText(),textAlign:this.getTextAlign(),justify:this.getJustify(),textBaseline:this.getTextBaseline(),fill:this.getFill()?this.getFill().clone():void 0,stroke:this.getStroke()?this.getStroke().clone():void 0,offsetX:this.getOffsetX(),offsetY:this.getOffsetY(),backgroundFill:this.getBackgroundFill()?this.getBackgroundFill().clone():void 0,backgroundStroke:this.getBackgroundStroke()?this.getBackgroundStroke().clone():void 0,padding:this.getPadding()||void 0})}getOverflow(){return this.overflow_}getFont(){return this.font_}getMaxAngle(){return this.maxAngle_}getPlacement(){return this.placement_}getRepeat(){return this.repeat_}getOffsetX(){return this.offsetX_}getOffsetY(){return this.offsetY_}getFill(){return this.fill_}getRotateWithView(){return this.rotateWithView_}getRotation(){return this.rotation_}getScale(){return this.scale_}getScaleArray(){return this.scaleArray_}getStroke(){return this.stroke_}getText(){return this.text_}getTextAlign(){return this.textAlign_}getJustify(){return this.justify_}getTextBaseline(){return this.textBaseline_}getBackgroundFill(){return this.backgroundFill_}getBackgroundStroke(){return this.backgroundStroke_}getPadding(){return this.padding_}setOverflow(t){this.overflow_=t}setFont(t){this.font_=t}setMaxAngle(t){this.maxAngle_=t}setOffsetX(t){this.offsetX_=t}setOffsetY(t){this.offsetY_=t}setPlacement(t){this.placement_=t}setRepeat(t){this.repeat_=t}setRotateWithView(t){this.rotateWithView_=t}setFill(t){this.fill_=t}setRotation(t){this.rotation_=t}setScale(t){this.scale_=t,this.scaleArray_=(0,r.xq)(void 0!==t?t:1)}setStroke(t){this.stroke_=t}setText(t){this.text_=t}setTextAlign(t){this.textAlign_=t}setJustify(t){this.justify_=t}setTextBaseline(t){this.textBaseline_=t}setBackgroundFill(t){this.backgroundFill_=t}setBackgroundStroke(t){this.backgroundStroke_=t}setPadding(t){this.padding_=t}}const a=o},1747:(t,e,n)=>{"use strict";function i(t,e,n,i){return void 0!==i?(i[0]=t,i[1]=e,i[2]=n,i):[t,e,n]}function r(t,e,n){return t+"/"+e+"/"+n}function o(t){return r(t[0],t[1],t[2])}function a(t){return t.split("/").map(Number)}function s(t){return(t[1]<<t[0])+t[2]}function l(t,e){const n=t[0],i=t[1],r=t[2];if(e.getMinZoom()>n||n>e.getMaxZoom())return!1;const o=e.getFullTileRange(n);return!o||o.containsXY(i,r)}n.d(e,{K:()=>a,N:()=>i,N5:()=>l,dp:()=>r,i7:()=>o,tW:()=>s})},8086:(t,e,n)=>{"use strict";n.d(e,{L:()=>i,R:()=>r});const i=42,r=256},686:(t,e,n)=>{"use strict";n.d(e,{Bb:()=>h,T9:()=>d,Zz:()=>u,dI:()=>f,k3:()=>l,lw:()=>a,rQ:()=>c,vt:()=>o});var i=n(6306),r=n(3957);new Array(6);function o(){return[1,0,0,1,0,0]}function a(t,e){const n=t[0],i=t[1],r=t[2],o=t[3],a=t[4],s=t[5],l=e[0],h=e[1],c=e[2],u=e[3],d=e[4],p=e[5];return t[0]=n*l+r*h,t[1]=i*l+o*h,t[2]=n*c+r*u,t[3]=i*c+o*u,t[4]=n*d+r*p+a,t[5]=i*d+o*p+s,t}function s(t,e,n,i,r,o,a){return t[0]=e,t[1]=n,t[2]=i,t[3]=r,t[4]=o,t[5]=a,t}function l(t,e){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3],t[4]=e[4],t[5]=e[5],t}function h(t,e){const n=e[0],i=e[1];return e[0]=t[0]*n+t[2]*i+t[4],e[1]=t[1]*n+t[3]*i+t[5],e}function c(t,e,n){return s(t,e,0,0,n,0,0)}function u(t,e,n,i,r,o,a,s){const l=Math.sin(o),h=Math.cos(o);return t[0]=i*h,t[1]=r*l,t[2]=-i*l,t[3]=r*h,t[4]=a*i*h-s*i*l+e,t[5]=a*r*l+s*r*h+n,t}function d(t,e){const n=(i=e)[0]*i[3]-i[1]*i[2];var i;(0,r.v)(0!==n,32);const o=e[0],a=e[1],s=e[2],l=e[3],h=e[4],c=e[5];return t[0]=l/n,t[1]=-a/n,t[2]=-s/n,t[3]=o/n,t[4]=(s*c-l*h)/n,t[5]=-(o*c-a*h)/n,t}let p;function f(t){const e="matrix("+t.join(", ")+")";if(i.Wl)return e;const n=p||(p=document.createElement("div"));return n.style.transform=e,n.style.transform}},6916:(t,e,n)=>{"use strict";function i(){throw new Error("Unimplemented abstract method.")}n.d(e,{b0:()=>i,v6:()=>o,xv:()=>a});let r=0;function o(t){return t.ol_uid||(t.ol_uid=String(++r))}const a="7.5.2"},4061:(t,e,n)=>{"use strict";n.d(e,{A:()=>w});var i=n(5853),r=n(8854),o=n(5383),a=n(2510),s=n(4611),l=n(7845),h=n(2256),c=n(7219),u=n(5667),d="__zr_normal__",p=i.Wx.concat(["ignore"]),f=(0,l.reduce)(i.Wx,(function(t,e){return t[e]=!0,t}),{ignore:!1}),g={},m=new o.A(0,0,0,0),v=function(){function t(t){this.id=(0,l.guid)(),this.animators=[],this.currentStates=[],this.states={},this._init(t)}return t.prototype._init=function(t){this.attr(t)},t.prototype.drift=function(t,e,n){switch(this.draggable){case"horizontal":e=0;break;case"vertical":t=0}var i=this.transform;i||(i=this.transform=[1,0,0,1,0,0]),i[4]+=t,i[5]+=e,this.decomposeTransform(),this.markRedraw()},t.prototype.beforeUpdate=function(){},t.prototype.afterUpdate=function(){},t.prototype.update=function(){this.updateTransform(),this.__dirty&&this.updateInnerText()},t.prototype.updateInnerText=function(t){var e=this._textContent;if(e&&(!e.ignore||t)){this.textConfig||(this.textConfig={});var n=this.textConfig,i=n.local,r=e.innerTransformable,o=void 0,a=void 0,l=!1;r.parent=i?this:null;var h=!1;if(r.copyTransform(e),null!=n.position){var c=m;n.layoutRect?c.copy(n.layoutRect):c.copy(this.getBoundingRect()),i||c.applyTransform(this.transform),this.calculateTextPosition?this.calculateTextPosition(g,n,c):(0,s.X4)(g,n,c),r.x=g.x,r.y=g.y,o=g.align,a=g.verticalAlign;var d=n.origin;if(d&&null!=n.rotation){var p=void 0,f=void 0;"center"===d?(p=.5*c.width,f=.5*c.height):(p=(0,s.lo)(d[0],c.width),f=(0,s.lo)(d[1],c.height)),h=!0,r.originX=-r.x+p+(i?0:c.x),r.originY=-r.y+f+(i?0:c.y)}}null!=n.rotation&&(r.rotation=n.rotation);var v=n.offset;v&&(r.x+=v[0],r.y+=v[1],h||(r.originX=-v[0],r.originY=-v[1]));var y=null==n.inside?"string"==typeof n.position&&n.position.indexOf("inside")>=0:n.inside,_=this._innerTextDefaultStyle||(this._innerTextDefaultStyle={}),x=void 0,b=void 0,w=void 0;y&&this.canBeInsideText()?(x=n.insideFill,b=n.insideStroke,null!=x&&"auto"!==x||(x=this.getInsideTextFill()),null!=b&&"auto"!==b||(b=this.getInsideTextStroke(x),w=!0)):(x=n.outsideFill,b=n.outsideStroke,null!=x&&"auto"!==x||(x=this.getOutsideFill()),null!=b&&"auto"!==b||(b=this.getOutsideStroke(x),w=!0)),(x=x||"#000")===_.fill&&b===_.stroke&&w===_.autoStroke&&o===_.align&&a===_.verticalAlign||(l=!0,_.fill=x,_.stroke=b,_.autoStroke=w,_.align=o,_.verticalAlign=a,e.setDefaultTextStyle(_)),e.__dirty|=u.M,l&&e.dirtyStyle(!0)}},t.prototype.canBeInsideText=function(){return!0},t.prototype.getInsideTextFill=function(){return"#fff"},t.prototype.getInsideTextStroke=function(t){return"#000"},t.prototype.getOutsideFill=function(){return this.__zr&&this.__zr.isDarkMode()?h.el:h._S},t.prototype.getOutsideStroke=function(t){var e=this.__zr&&this.__zr.getBackgroundColor(),n="string"==typeof e&&(0,c.parse)(e);n||(n=[255,255,255,1]);for(var i=n[3],r=this.__zr.isDarkMode(),o=0;o<3;o++)n[o]=n[o]*i+(r?0:255)*(1-i);return n[3]=1,(0,c.stringify)(n,"rgba")},t.prototype.traverse=function(t,e){},t.prototype.attrKV=function(t,e){"textConfig"===t?this.setTextConfig(e):"textContent"===t?this.setTextContent(e):"clipPath"===t?this.setClipPath(e):"extra"===t?(this.extra=this.extra||{},(0,l.extend)(this.extra,e)):this[t]=e},t.prototype.hide=function(){this.ignore=!0,this.markRedraw()},t.prototype.show=function(){this.ignore=!1,this.markRedraw()},t.prototype.attr=function(t,e){if("string"==typeof t)this.attrKV(t,e);else if((0,l.isObject)(t))for(var n=t,i=(0,l.keys)(n),r=0;r<i.length;r++){var o=i[r];this.attrKV(o,t[o])}return this.markRedraw(),this},t.prototype.saveCurrentToNormalState=function(t){this._innerSaveToNormal(t);for(var e=this._normalState,n=0;n<this.animators.length;n++){var i=this.animators[n],r=i.__fromStateTransition;if(!(i.getLoop()||r&&r!==d)){var o=i.targetName,a=o?e[o]:e;i.saveTo(a)}}},t.prototype._innerSaveToNormal=function(t){var e=this._normalState;e||(e=this._normalState={}),t.textConfig&&!e.textConfig&&(e.textConfig=this.textConfig),this._savePrimaryToNormal(t,e,p)},t.prototype._savePrimaryToNormal=function(t,e,n){for(var i=0;i<n.length;i++){var r=n[i];null==t[r]||r in e||(e[r]=this[r])}},t.prototype.hasState=function(){return this.currentStates.length>0},t.prototype.getState=function(t){return this.states[t]},t.prototype.ensureState=function(t){var e=this.states;return e[t]||(e[t]={}),e[t]},t.prototype.clearStates=function(t){this.useState(d,!1,t)},t.prototype.useState=function(t,e,n,i){var r=t===d;if(this.hasState()||!r){var o=this.currentStates,a=this.stateTransition;if(!((0,l.indexOf)(o,t)>=0)||!e&&1!==o.length){var s;if(this.stateProxy&&!r&&(s=this.stateProxy(t)),s||(s=this.states&&this.states[t]),s||r){r||this.saveCurrentToNormalState(s);var h=!!(s&&s.hoverLayer||i);h&&this._toggleHoverLayerFlag(!0),this._applyStateObj(t,s,this._normalState,e,!n&&!this.__inHover&&a&&a.duration>0,a);var c=this._textContent,p=this._textGuide;return c&&c.useState(t,e,n,h),p&&p.useState(t,e,n,h),r?(this.currentStates=[],this._normalState={}):e?this.currentStates.push(t):this.currentStates=[t],this._updateAnimationTargets(),this.markRedraw(),!h&&this.__inHover&&(this._toggleHoverLayerFlag(!1),this.__dirty&=~u.M),s}(0,l.logError)("State "+t+" not exists.")}}},t.prototype.useStates=function(t,e,n){if(t.length){var i=[],r=this.currentStates,o=t.length,a=o===r.length;if(a)for(var s=0;s<o;s++)if(t[s]!==r[s]){a=!1;break}if(a)return;for(s=0;s<o;s++){var l=t[s],h=void 0;this.stateProxy&&(h=this.stateProxy(l,t)),h||(h=this.states[l]),h&&i.push(h)}var c=i[o-1],d=!!(c&&c.hoverLayer||n);d&&this._toggleHoverLayerFlag(!0);var p=this._mergeStates(i),f=this.stateTransition;this.saveCurrentToNormalState(p),this._applyStateObj(t.join(","),p,this._normalState,!1,!e&&!this.__inHover&&f&&f.duration>0,f);var g=this._textContent,m=this._textGuide;g&&g.useStates(t,e,d),m&&m.useStates(t,e,d),this._updateAnimationTargets(),this.currentStates=t.slice(),this.markRedraw(),!d&&this.__inHover&&(this._toggleHoverLayerFlag(!1),this.__dirty&=~u.M)}else this.clearStates()},t.prototype.isSilent=function(){for(var t=this.silent,e=this.parent;!t&&e;){if(e.silent){t=!0;break}e=e.parent}return t},t.prototype._updateAnimationTargets=function(){for(var t=0;t<this.animators.length;t++){var e=this.animators[t];e.targetName&&e.changeTarget(this[e.targetName])}},t.prototype.removeState=function(t){var e=(0,l.indexOf)(this.currentStates,t);if(e>=0){var n=this.currentStates.slice();n.splice(e,1),this.useStates(n)}},t.prototype.replaceState=function(t,e,n){var i=this.currentStates.slice(),r=(0,l.indexOf)(i,t),o=(0,l.indexOf)(i,e)>=0;r>=0?o?i.splice(r,1):i[r]=e:n&&!o&&i.push(e),this.useStates(i)},t.prototype.toggleState=function(t,e){e?this.useState(t,!0):this.removeState(t)},t.prototype._mergeStates=function(t){for(var e,n={},i=0;i<t.length;i++){var r=t[i];(0,l.extend)(n,r),r.textConfig&&(e=e||{},(0,l.extend)(e,r.textConfig))}return e&&(n.textConfig=e),n},t.prototype._applyStateObj=function(t,e,n,i,r,o){var a=!(e&&i);e&&e.textConfig?(this.textConfig=(0,l.extend)({},i?this.textConfig:n.textConfig),(0,l.extend)(this.textConfig,e.textConfig)):a&&n.textConfig&&(this.textConfig=n.textConfig);for(var s={},h=!1,c=0;c<p.length;c++){var u=p[c],d=r&&f[u];e&&null!=e[u]?d?(h=!0,s[u]=e[u]):this[u]=e[u]:a&&null!=n[u]&&(d?(h=!0,s[u]=n[u]):this[u]=n[u])}if(!r)for(c=0;c<this.animators.length;c++){var g=this.animators[c],m=g.targetName;g.getLoop()||g.__changeFinalValue(m?(e||n)[m]:e||n)}h&&this._transitionState(t,s,o)},t.prototype._attachComponent=function(t){if((!t.__zr||t.__hostTarget)&&t!==this){var e=this.__zr;e&&t.addSelfToZr(e),t.__zr=e,t.__hostTarget=this}},t.prototype._detachComponent=function(t){t.__zr&&t.removeSelfFromZr(t.__zr),t.__zr=null,t.__hostTarget=null},t.prototype.getClipPath=function(){return this._clipPath},t.prototype.setClipPath=function(t){this._clipPath&&this._clipPath!==t&&this.removeClipPath(),this._attachComponent(t),this._clipPath=t,this.markRedraw()},t.prototype.removeClipPath=function(){var t=this._clipPath;t&&(this._detachComponent(t),this._clipPath=null,this.markRedraw())},t.prototype.getTextContent=function(){return this._textContent},t.prototype.setTextContent=function(t){var e=this._textContent;e!==t&&(e&&e!==t&&this.removeTextContent(),t.innerTransformable=new i.Ay,this._attachComponent(t),this._textContent=t,this.markRedraw())},t.prototype.setTextConfig=function(t){this.textConfig||(this.textConfig={}),(0,l.extend)(this.textConfig,t),this.markRedraw()},t.prototype.removeTextConfig=function(){this.textConfig=null,this.markRedraw()},t.prototype.removeTextContent=function(){var t=this._textContent;t&&(t.innerTransformable=null,this._detachComponent(t),this._textContent=null,this._innerTextDefaultStyle=null,this.markRedraw())},t.prototype.getTextGuideLine=function(){return this._textGuide},t.prototype.setTextGuideLine=function(t){this._textGuide&&this._textGuide!==t&&this.removeTextGuideLine(),this._attachComponent(t),this._textGuide=t,this.markRedraw()},t.prototype.removeTextGuideLine=function(){var t=this._textGuide;t&&(this._detachComponent(t),this._textGuide=null,this.markRedraw())},t.prototype.markRedraw=function(){this.__dirty|=u.M;var t=this.__zr;t&&(this.__inHover?t.refreshHover():t.refresh()),this.__hostTarget&&this.__hostTarget.markRedraw()},t.prototype.dirty=function(){this.markRedraw()},t.prototype._toggleHoverLayerFlag=function(t){this.__inHover=t;var e=this._textContent,n=this._textGuide;e&&(e.__inHover=t),n&&(n.__inHover=t)},t.prototype.addSelfToZr=function(t){if(this.__zr!==t){this.__zr=t;var e=this.animators;if(e)for(var n=0;n<e.length;n++)t.animation.addAnimator(e[n]);this._clipPath&&this._clipPath.addSelfToZr(t),this._textContent&&this._textContent.addSelfToZr(t),this._textGuide&&this._textGuide.addSelfToZr(t)}},t.prototype.removeSelfFromZr=function(t){if(this.__zr){this.__zr=null;var e=this.animators;if(e)for(var n=0;n<e.length;n++)t.animation.removeAnimator(e[n]);this._clipPath&&this._clipPath.removeSelfFromZr(t),this._textContent&&this._textContent.removeSelfFromZr(t),this._textGuide&&this._textGuide.removeSelfFromZr(t)}},t.prototype.animate=function(t,e,n){var i=t?this[t]:this;var o=new r.A(i,e,n);return t&&(o.targetName=t),this.addAnimator(o,t),o},t.prototype.addAnimator=function(t,e){var n=this.__zr,i=this;t.during((function(){i.updateDuringAnimation(e)})).done((function(){var e=i.animators,n=(0,l.indexOf)(e,t);n>=0&&e.splice(n,1)})),this.animators.push(t),n&&n.animation.addAnimator(t),n&&n.wakeUp()},t.prototype.updateDuringAnimation=function(t){this.markRedraw()},t.prototype.stopAnimation=function(t,e){for(var n=this.animators,i=n.length,r=[],o=0;o<i;o++){var a=n[o];t&&t!==a.scope?r.push(a):a.stop(e)}return this.animators=r,this},t.prototype.animateTo=function(t,e,n){y(this,t,e,n)},t.prototype.animateFrom=function(t,e,n){y(this,t,e,n,!0)},t.prototype._transitionState=function(t,e,n,i){for(var r=y(this,e,n,i),o=0;o<r.length;o++)r[o].__fromStateTransition=t},t.prototype.getBoundingRect=function(){return null},t.prototype.getPaintRect=function(){return null},t.initDefaultProps=function(){var e=t.prototype;e.type="element",e.name="",e.ignore=e.silent=e.isGroup=e.draggable=e.dragging=e.ignoreClip=e.__inHover=!1,e.__dirty=u.M;function n(t,n,i,r){function o(t,e){Object.defineProperty(e,0,{get:function(){return t[i]},set:function(e){t[i]=e}}),Object.defineProperty(e,1,{get:function(){return t[r]},set:function(e){t[r]=e}})}Object.defineProperty(e,t,{get:function(){this[n]||o(this,this[n]=[]);return this[n]},set:function(t){this[i]=t[0],this[r]=t[1],this[n]=t,o(this,t)}})}Object.defineProperty&&(n("position","_legacyPos","x","y"),n("scale","_legacyScale","scaleX","scaleY"),n("origin","_legacyOrigin","originX","originY"))}(),t}();function y(t,e,n,i,r){var o=[];b(t,"",t,e,n=n||{},i,o,r);var a=o.length,s=!1,l=n.done,h=n.aborted,c=function(){s=!0,--a<=0&&(s?l&&l():h&&h())},u=function(){--a<=0&&(s?l&&l():h&&h())};a||l&&l(),o.length>0&&n.during&&o[0].during((function(t,e){n.during(e)}));for(var d=0;d<o.length;d++){var p=o[d];c&&p.done(c),u&&p.aborted(u),n.force&&p.duration(n.duration),p.start(n.easing)}return o}function _(t,e,n){for(var i=0;i<n;i++)t[i]=e[i]}function x(t,e,n){if((0,l.isArrayLike)(e[n]))if((0,l.isArrayLike)(t[n])||(t[n]=[]),(0,l.isTypedArray)(e[n])){var i=e[n].length;t[n].length!==i&&(t[n]=new e[n].constructor(i),_(t[n],e[n],i))}else{var r=e[n],o=t[n],a=r.length;if(c=r,(0,l.isArrayLike)(c[0]))for(var s=r[0].length,h=0;h<a;h++)o[h]?_(o[h],r[h],s):o[h]=Array.prototype.slice.call(r[h]);else _(o,r,a);o.length=r.length}else t[n]=e[n];var c}function b(t,e,n,i,o,a,s,h){for(var c=(0,l.keys)(i),u=o.duration,d=o.delay,p=o.additive,f=o.setToFinal,g=!(0,l.isObject)(a),m=t.animators,v=[],y=0;y<c.length;y++){var _=c[y],w=i[_];if(null!=w&&null!=n[_]&&(g||a[_]))if(!(0,l.isObject)(w)||(0,l.isArrayLike)(w)||(0,l.isGradientObject)(w))v.push(_);else{if(e){h||(n[_]=w,t.updateDuringAnimation(e));continue}b(t,_,n[_],w,o,a&&a[_],s,h)}else h||(n[_]=w,t.updateDuringAnimation(e),v.push(_))}var S=v.length;if(!p&&S)for(var T=0;T<m.length;T++){if((A=m[T]).targetName===e)if(A.stopTracks(v)){var M=(0,l.indexOf)(m,A);m.splice(M,1)}}if(o.force||(v=(0,l.filter)(v,(function(t){return e=i[t],r=n[t],!(e===r||(0,l.isArrayLike)(e)&&(0,l.isArrayLike)(r)&&function(t,e){var n=t.length;if(n!==e.length)return!1;for(var i=0;i<n;i++)if(t[i]!==e[i])return!1;return!0}(e,r));var e,r})),S=v.length),S>0||o.force&&!s.length){var A,C=void 0,I=void 0,E=void 0;if(h){I={},f&&(C={});for(T=0;T<S;T++){I[_=v[T]]=n[_],f?C[_]=i[_]:n[_]=i[_]}}else if(f){E={};for(T=0;T<S;T++){E[_=v[T]]=(0,r.F)(n[_]),x(n,i,_)}}(A=new r.A(n,!1,!1,p?(0,l.filter)(m,(function(t){return t.targetName===e})):null)).targetName=e,o.scope&&(A.scope=o.scope),f&&C&&A.whenWithKeys(0,C,v),E&&A.whenWithKeys(0,E,v),A.whenWithKeys(null==u?500:u,h?I:i,v).delay(d||0),t.addAnimator(A,e),s.push(A)}}(0,l.mixin)(v,a.A),(0,l.mixin)(v,i.Ay);const w=v},8854:(t,e,n)=>{"use strict";n.d(e,{F:()=>v,A:()=>S});var i={linear:function(t){return t},quadraticIn:function(t){return t*t},quadraticOut:function(t){return t*(2-t)},quadraticInOut:function(t){return(t*=2)<1?.5*t*t:-.5*(--t*(t-2)-1)},cubicIn:function(t){return t*t*t},cubicOut:function(t){return--t*t*t+1},cubicInOut:function(t){return(t*=2)<1?.5*t*t*t:.5*((t-=2)*t*t+2)},quarticIn:function(t){return t*t*t*t},quarticOut:function(t){return 1- --t*t*t*t},quarticInOut:function(t){return(t*=2)<1?.5*t*t*t*t:-.5*((t-=2)*t*t*t-2)},quinticIn:function(t){return t*t*t*t*t},quinticOut:function(t){return--t*t*t*t*t+1},quinticInOut:function(t){return(t*=2)<1?.5*t*t*t*t*t:.5*((t-=2)*t*t*t*t+2)},sinusoidalIn:function(t){return 1-Math.cos(t*Math.PI/2)},sinusoidalOut:function(t){return Math.sin(t*Math.PI/2)},sinusoidalInOut:function(t){return.5*(1-Math.cos(Math.PI*t))},exponentialIn:function(t){return 0===t?0:Math.pow(1024,t-1)},exponentialOut:function(t){return 1===t?1:1-Math.pow(2,-10*t)},exponentialInOut:function(t){return 0===t?0:1===t?1:(t*=2)<1?.5*Math.pow(1024,t-1):.5*(2-Math.pow(2,-10*(t-1)))},circularIn:function(t){return 1-Math.sqrt(1-t*t)},circularOut:function(t){return Math.sqrt(1- --t*t)},circularInOut:function(t){return(t*=2)<1?-.5*(Math.sqrt(1-t*t)-1):.5*(Math.sqrt(1-(t-=2)*t)+1)},elasticIn:function(t){var e,n=.1;return 0===t?0:1===t?1:(!n||n<1?(n=1,e=.1):e=.4*Math.asin(1/n)/(2*Math.PI),-n*Math.pow(2,10*(t-=1))*Math.sin((t-e)*(2*Math.PI)/.4))},elasticOut:function(t){var e,n=.1;return 0===t?0:1===t?1:(!n||n<1?(n=1,e=.1):e=.4*Math.asin(1/n)/(2*Math.PI),n*Math.pow(2,-10*t)*Math.sin((t-e)*(2*Math.PI)/.4)+1)},elasticInOut:function(t){var e,n=.1,i=.4;return 0===t?0:1===t?1:(!n||n<1?(n=1,e=.1):e=i*Math.asin(1/n)/(2*Math.PI),(t*=2)<1?n*Math.pow(2,10*(t-=1))*Math.sin((t-e)*(2*Math.PI)/i)*-.5:n*Math.pow(2,-10*(t-=1))*Math.sin((t-e)*(2*Math.PI)/i)*.5+1)},backIn:function(t){var e=1.70158;return t*t*((e+1)*t-e)},backOut:function(t){var e=1.70158;return--t*t*((e+1)*t+e)+1},backInOut:function(t){var e=2.5949095;return(t*=2)<1?t*t*((e+1)*t-e)*.5:.5*((t-=2)*t*((e+1)*t+e)+2)},bounceIn:function(t){return 1-i.bounceOut(1-t)},bounceOut:function(t){return t<1/2.75?7.5625*t*t:t<2/2.75?7.5625*(t-=1.5/2.75)*t+.75:t<2.5/2.75?7.5625*(t-=2.25/2.75)*t+.9375:7.5625*(t-=2.625/2.75)*t+.984375},bounceInOut:function(t){return t<.5?.5*i.bounceIn(2*t):.5*i.bounceOut(2*t-1)+.5}};const r=i;var o=n(7845),a=n(1799);const s=function(){function t(t){this._inited=!1,this._startTime=0,this._pausedTime=0,this._paused=!1,this._life=t.life||1e3,this._delay=t.delay||0,this.loop=t.loop||!1,this.onframe=t.onframe||o.noop,this.ondestroy=t.ondestroy||o.noop,this.onrestart=t.onrestart||o.noop,t.easing&&this.setEasing(t.easing)}return t.prototype.step=function(t,e){if(this._inited||(this._startTime=t+this._delay,this._inited=!0),!this._paused){var n=this._life,i=t-this._startTime-this._pausedTime,r=i/n;r<0&&(r=0),r=Math.min(r,1);var o=this.easingFunc,a=o?o(r):r;if(this.onframe(a),1===r){if(!this.loop)return!0;var s=i%n;this._startTime=t-s,this._pausedTime=0,this.onrestart()}return!1}this._pausedTime+=e},t.prototype.pause=function(){this._paused=!0},t.prototype.resume=function(){this._paused=!1},t.prototype.setEasing=function(t){this.easing=t,this.easingFunc=(0,o.isFunction)(t)?t:r[t]||(0,a.w)(t)},t}();var l=n(7219),h=n(9934),c=Array.prototype.slice;function u(t,e,n){return(e-t)*n+t}function d(t,e,n,i){for(var r=e.length,o=0;o<r;o++)t[o]=u(e[o],n[o],i);return t}function p(t,e,n,i){for(var r=e.length,o=0;o<r;o++)t[o]=e[o]+n[o]*i;return t}function f(t,e,n,i){for(var r=e.length,o=r&&e[0].length,a=0;a<r;a++){t[a]||(t[a]=[]);for(var s=0;s<o;s++)t[a][s]=e[a][s]+n[a][s]*i}return t}function g(t,e){for(var n=t.length,i=e.length,r=n>i?e:t,o=Math.min(n,i),a=r[o-1]||{color:[0,0,0,0],offset:0},s=o;s<Math.max(n,i);s++)r.push({offset:a.offset,color:a.color.slice()})}function m(t,e,n){var i=t,r=e;if(i.push&&r.push){var o=i.length,a=r.length;if(o!==a)if(o>a)i.length=a;else for(var s=o;s<a;s++)i.push(1===n?r[s]:c.call(r[s]));var l=i[0]&&i[0].length;for(s=0;s<i.length;s++)if(1===n)isNaN(i[s])&&(i[s]=r[s]);else for(var h=0;h<l;h++)isNaN(i[s][h])&&(i[s][h]=r[s][h])}}function v(t){if((0,o.isArrayLike)(t)){var e=t.length;if((0,o.isArrayLike)(t[0])){for(var n=[],i=0;i<e;i++)n.push(c.call(t[i]));return n}return c.call(t)}return t}function y(t){return t[0]=Math.floor(t[0])||0,t[1]=Math.floor(t[1])||0,t[2]=Math.floor(t[2])||0,t[3]=null==t[3]?1:t[3],"rgba("+t.join(",")+")"}function _(t){return 4===t||5===t}function x(t){return 1===t||2===t}var b=[0,0,0,0],w=function(){function t(t){this.keyframes=[],this.discrete=!1,this._invalid=!1,this._needsSort=!1,this._lastFr=0,this._lastFrP=0,this.propName=t}return t.prototype.isFinished=function(){return this._finished},t.prototype.setFinished=function(){this._finished=!0,this._additiveTrack&&this._additiveTrack.setFinished()},t.prototype.needsAnimate=function(){return this.keyframes.length>=1},t.prototype.getAdditiveTrack=function(){return this._additiveTrack},t.prototype.addKeyframe=function(t,e,n){this._needsSort=!0;var i=this.keyframes,s=i.length,c=!1,u=6,d=e;if((0,o.isArrayLike)(e)){var p=function(t){return(0,o.isArrayLike)(t&&t[0])?2:1}(e);u=p,(1===p&&!(0,o.isNumber)(e[0])||2===p&&!(0,o.isNumber)(e[0][0]))&&(c=!0)}else if((0,o.isNumber)(e)&&!(0,o.eqNaN)(e))u=0;else if((0,o.isString)(e))if(isNaN(+e)){var f=l.parse(e);f&&(d=f,u=3)}else u=0;else if((0,o.isGradientObject)(e)){var g=(0,o.extend)({},d);g.colorStops=(0,o.map)(e.colorStops,(function(t){return{offset:t.offset,color:l.parse(t.color)}})),(0,h.OS)(e)?u=4:(0,h.OH)(e)&&(u=5),d=g}0===s?this.valType=u:u===this.valType&&6!==u||(c=!0),this.discrete=this.discrete||c;var m={time:t,value:d,rawValue:e,percent:0};return n&&(m.easing=n,m.easingFunc=(0,o.isFunction)(n)?n:r[n]||(0,a.w)(n)),i.push(m),m},t.prototype.prepare=function(t,e){var n=this.keyframes;this._needsSort&&n.sort((function(t,e){return t.time-e.time}));for(var i=this.valType,r=n.length,o=n[r-1],a=this.discrete,s=x(i),l=_(i),h=0;h<r;h++){var c=n[h],u=c.value,d=o.value;c.percent=c.time/t,a||(s&&h!==r-1?m(u,d,i):l&&g(u.colorStops,d.colorStops))}if(!a&&5!==i&&e&&this.needsAnimate()&&e.needsAnimate()&&i===e.valType&&!e._finished){this._additiveTrack=e;var v=n[0].value;for(h=0;h<r;h++)0===i?n[h].additiveValue=n[h].value-v:3===i?n[h].additiveValue=p([],n[h].value,v,-1):x(i)&&(n[h].additiveValue=1===i?p([],n[h].value,v,-1):f([],n[h].value,v,-1))}},t.prototype.step=function(t,e){if(!this._finished){this._additiveTrack&&this._additiveTrack._finished&&(this._additiveTrack=null);var n,i,r,a=null!=this._additiveTrack,s=a?"additiveValue":"value",l=this.valType,h=this.keyframes,c=h.length,p=this.propName,f=3===l,g=this._lastFr,m=Math.min;if(1===c)i=r=h[0];else{if(e<0)n=0;else if(e<this._lastFrP){for(n=m(g+1,c-1);n>=0&&!(h[n].percent<=e);n--);n=m(n,c-2)}else{for(n=g;n<c&&!(h[n].percent>e);n++);n=m(n-1,c-2)}r=h[n+1],i=h[n]}if(i&&r){this._lastFr=n,this._lastFrP=e;var v=r.percent-i.percent,w=0===v?1:m((e-i.percent)/v,1);r.easingFunc&&(w=r.easingFunc(w));var S=a?this._additiveValue:f?b:t[p];if(!x(l)&&!f||S||(S=this._additiveValue=[]),this.discrete)t[p]=w<1?i.rawValue:r.rawValue;else if(x(l))1===l?d(S,i[s],r[s],w):function(t,e,n,i){for(var r=e.length,o=r&&e[0].length,a=0;a<r;a++){t[a]||(t[a]=[]);for(var s=0;s<o;s++)t[a][s]=u(e[a][s],n[a][s],i)}}(S,i[s],r[s],w);else if(_(l)){var T=i[s],M=r[s],A=4===l;t[p]={type:A?"linear":"radial",x:u(T.x,M.x,w),y:u(T.y,M.y,w),colorStops:(0,o.map)(T.colorStops,(function(t,e){var n=M.colorStops[e];return{offset:u(t.offset,n.offset,w),color:y(d([],t.color,n.color,w))}})),global:M.global},A?(t[p].x2=u(T.x2,M.x2,w),t[p].y2=u(T.y2,M.y2,w)):t[p].r=u(T.r,M.r,w)}else if(f)d(S,i[s],r[s],w),a||(t[p]=y(S));else{var C=u(i[s],r[s],w);a?this._additiveValue=C:t[p]=C}a&&this._addToTarget(t)}}},t.prototype._addToTarget=function(t){var e=this.valType,n=this.propName,i=this._additiveValue;0===e?t[n]=t[n]+i:3===e?(l.parse(t[n],b),p(b,b,i,1),t[n]=y(b)):1===e?p(t[n],t[n],i,1):2===e&&f(t[n],t[n],i,1)},t}();const S=function(){function t(t,e,n,i){this._tracks={},this._trackKeys=[],this._maxTime=0,this._started=0,this._clip=null,this._target=t,this._loop=e,e&&i?(0,o.logError)("Can' use additive animation on looped animation."):(this._additiveAnimators=i,this._allowDiscrete=n)}return t.prototype.getMaxTime=function(){return this._maxTime},t.prototype.getDelay=function(){return this._delay},t.prototype.getLoop=function(){return this._loop},t.prototype.getTarget=function(){return this._target},t.prototype.changeTarget=function(t){this._target=t},t.prototype.when=function(t,e,n){return this.whenWithKeys(t,e,(0,o.keys)(e),n)},t.prototype.whenWithKeys=function(t,e,n,i){for(var r=this._tracks,o=0;o<n.length;o++){var a=n[o],s=r[a];if(!s){s=r[a]=new w(a);var l=void 0,h=this._getAdditiveTrack(a);if(h){var c=h.keyframes,u=c[c.length-1];l=u&&u.value,3===h.valType&&l&&(l=y(l))}else l=this._target[a];if(null==l)continue;t>0&&s.addKeyframe(0,v(l),i),this._trackKeys.push(a)}s.addKeyframe(t,v(e[a]),i)}return this._maxTime=Math.max(this._maxTime,t),this},t.prototype.pause=function(){this._clip.pause(),this._paused=!0},t.prototype.resume=function(){this._clip.resume(),this._paused=!1},t.prototype.isPaused=function(){return!!this._paused},t.prototype.duration=function(t){return this._maxTime=t,this._force=!0,this},t.prototype._doneCallback=function(){this._setTracksFinished(),this._clip=null;var t=this._doneCbs;if(t)for(var e=t.length,n=0;n<e;n++)t[n].call(this)},t.prototype._abortedCallback=function(){this._setTracksFinished();var t=this.animation,e=this._abortedCbs;if(t&&t.removeClip(this._clip),this._clip=null,e)for(var n=0;n<e.length;n++)e[n].call(this)},t.prototype._setTracksFinished=function(){for(var t=this._tracks,e=this._trackKeys,n=0;n<e.length;n++)t[e[n]].setFinished()},t.prototype._getAdditiveTrack=function(t){var e,n=this._additiveAnimators;if(n)for(var i=0;i<n.length;i++){var r=n[i].getTrack(t);r&&(e=r)}return e},t.prototype.start=function(t){if(!(this._started>0)){this._started=1;for(var e=this,n=[],i=this._maxTime||0,r=0;r<this._trackKeys.length;r++){var o=this._trackKeys[r],a=this._tracks[o],l=this._getAdditiveTrack(o),h=a.keyframes,c=h.length;if(a.prepare(i,l),a.needsAnimate())if(!this._allowDiscrete&&a.discrete){var u=h[c-1];u&&(e._target[a.propName]=u.rawValue),a.setFinished()}else n.push(a)}if(n.length||this._force){var d=new s({life:i,loop:this._loop,delay:this._delay||0,onframe:function(t){e._started=2;var i=e._additiveAnimators;if(i){for(var r=!1,o=0;o<i.length;o++)if(i[o]._clip){r=!0;break}r||(e._additiveAnimators=null)}for(o=0;o<n.length;o++)n[o].step(e._target,t);var a=e._onframeCbs;if(a)for(o=0;o<a.length;o++)a[o](e._target,t)},ondestroy:function(){e._doneCallback()}});this._clip=d,this.animation&&this.animation.addClip(d),t&&d.setEasing(t)}else this._doneCallback();return this}},t.prototype.stop=function(t){if(this._clip){var e=this._clip;t&&e.onframe(1),this._abortedCallback()}},t.prototype.delay=function(t){return this._delay=t,this},t.prototype.during=function(t){return t&&(this._onframeCbs||(this._onframeCbs=[]),this._onframeCbs.push(t)),this},t.prototype.done=function(t){return t&&(this._doneCbs||(this._doneCbs=[]),this._doneCbs.push(t)),this},t.prototype.aborted=function(t){return t&&(this._abortedCbs||(this._abortedCbs=[]),this._abortedCbs.push(t)),this},t.prototype.getClip=function(){return this._clip},t.prototype.getTrack=function(t){return this._tracks[t]},t.prototype.getTracks=function(){var t=this;return(0,o.map)(this._trackKeys,(function(e){return t._tracks[e]}))},t.prototype.stopTracks=function(t,e){if(!t.length||!this._clip)return!0;for(var n=this._tracks,i=this._trackKeys,r=0;r<t.length;r++){var o=n[t[r]];o&&!o.isFinished()&&(e?o.step(this._target,1):1===this._started&&o.step(this._target,0),o.setFinished())}var a=!0;for(r=0;r<i.length;r++)if(!n[i[r]].isFinished()){a=!1;break}return a&&this._abortedCallback(),a},t.prototype.saveTo=function(t,e,n){if(t){e=e||this._trackKeys;for(var i=0;i<e.length;i++){var r=e[i],o=this._tracks[r];if(o&&!o.isFinished()){var a=o.keyframes,s=a[n?0:a.length-1];s&&(t[r]=v(s.rawValue))}}}},t.prototype.__changeFinalValue=function(t,e){e=e||(0,o.keys)(t);for(var n=0;n<e.length;n++){var i=e[n],r=this._tracks[i];if(r){var a=r.keyframes;if(a.length>1){var s=a.pop();r.addKeyframe(s.time,t[i]),r.prepare(this._maxTime,r.getAdditiveTrack())}}}},t}()},1799:(t,e,n)=>{"use strict";n.d(e,{w:()=>a});var i=n(5162),r=n(7845),o=/cubic-bezier\(([0-9,\.e ]+)\)/;function a(t){var e=t&&o.exec(t);if(e){var n=e[1].split(","),a=+(0,r.trim)(n[0]),s=+(0,r.trim)(n[1]),l=+(0,r.trim)(n[2]),h=+(0,r.trim)(n[3]);if(isNaN(a+s+l+h))return;var c=[];return function(t){return t<=0?0:t>=1?1:(0,i._E)(0,a,l,1,t,c)&&(0,i.Yb)(0,s,h,1,c[0])}}}},3358:(t,e,n)=>{"use strict";n.d(e,{A:()=>i});const i=n(4810).A.hasGlobalWindow&&(window.requestAnimationFrame&&window.requestAnimationFrame.bind(window)||window.msRequestAnimationFrame&&window.msRequestAnimationFrame.bind(window)||window.mozRequestAnimationFrame||window.webkitRequestAnimationFrame)||function(t){return setTimeout(t,16)}},2703:(t,e,n)=>{"use strict";n.d(e,{V:()=>r});var i=n(7845);function r(t){var e,n,r=t.style,o=r.lineDash&&r.lineWidth>0&&(e=r.lineDash,n=r.lineWidth,e&&"solid"!==e&&n>0?"dashed"===e?[4*n,2*n]:"dotted"===e?[n]:(0,i.isNumber)(e)?[e]:(0,i.isArray)(e)?e:null:null),a=r.lineDashOffset;if(o){var s=r.strokeNoScale&&t.getLineScale?t.getLineScale():1;s&&1!==s&&(o=(0,i.map)(o,(function(t){return t/s})),a/=s)}return[o,a]}},674:(t,e,n)=>{"use strict";n.d(e,{V$:()=>P,Xi:()=>D,ZQ:()=>x});var i=n(7780),r=n(584),o=n(3822),a=n(4804),s=n(1885),l=n(5975),h=n(3554),c=n(7845),u=n(2703),d=n(5667),p=n(9142),f=new r.A(!0);function g(t){var e=t.stroke;return!(null==e||"none"===e||!(t.lineWidth>0))}function m(t){return"string"==typeof t&&"none"!==t}function v(t){var e=t.fill;return null!=e&&"none"!==e}function y(t,e){if(null!=e.fillOpacity&&1!==e.fillOpacity){var n=t.globalAlpha;t.globalAlpha=e.fillOpacity*e.opacity,t.fill(),t.globalAlpha=n}else t.fill()}function _(t,e){if(null!=e.strokeOpacity&&1!==e.strokeOpacity){var n=t.globalAlpha;t.globalAlpha=e.strokeOpacity*e.opacity,t.stroke(),t.globalAlpha=n}else t.stroke()}function x(t,e,n){var i=(0,o.OD)(e.image,e.__image,n);if((0,o.xA)(i)){var r=t.createPattern(i,e.repeat||"repeat");if("function"==typeof DOMMatrix&&r&&r.setTransform){var a=new DOMMatrix;a.translateSelf(e.x||0,e.y||0),a.rotateSelf(0,0,(e.rotation||0)*c.RADIAN_TO_DEGREE),a.scaleSelf(e.scaleX||1,e.scaleY||1),r.setTransform(a)}return r}}var b=["shadowBlur","shadowOffsetX","shadowOffsetY"],w=[["lineCap","butt"],["lineJoin","miter"],["miterLimit",10]];function S(t,e,n,r,o){var a=!1;if(!r&&e===(n=n||{}))return!1;if(r||e.opacity!==n.opacity){k(t,o),a=!0;var s=Math.max(Math.min(e.opacity,1),0);t.globalAlpha=isNaN(s)?i.oN.opacity:s}(r||e.blend!==n.blend)&&(a||(k(t,o),a=!0),t.globalCompositeOperation=e.blend||i.oN.blend);for(var l=0;l<b.length;l++){var h=b[l];(r||e[h]!==n[h])&&(a||(k(t,o),a=!0),t[h]=t.dpr*(e[h]||0))}return(r||e.shadowColor!==n.shadowColor)&&(a||(k(t,o),a=!0),t.shadowColor=e.shadowColor||i.oN.shadowColor),a}function T(t,e,n,i,r){var o=L(e,r.inHover),a=i?null:n&&L(n,r.inHover)||{};if(o===a)return!1;var s=S(t,o,a,i,r);if((i||o.fill!==a.fill)&&(s||(k(t,r),s=!0),m(o.fill)&&(t.fillStyle=o.fill)),(i||o.stroke!==a.stroke)&&(s||(k(t,r),s=!0),m(o.stroke)&&(t.strokeStyle=o.stroke)),(i||o.opacity!==a.opacity)&&(s||(k(t,r),s=!0),t.globalAlpha=null==o.opacity?1:o.opacity),e.hasStroke()){var l=o.lineWidth/(o.strokeNoScale&&e.getLineScale?e.getLineScale():1);t.lineWidth!==l&&(s||(k(t,r),s=!0),t.lineWidth=l)}for(var h=0;h<w.length;h++){var c=w[h],u=c[0];(i||o[u]!==a[u])&&(s||(k(t,r),s=!0),t[u]=o[u]||c[1])}return s}function M(t,e){var n=e.transform,i=t.dpr||1;n?t.setTransform(i*n[0],i*n[1],i*n[2],i*n[3],i*n[4],i*n[5]):t.setTransform(i,0,0,i,0,0)}var A=1,C=2,I=3,E=4;function k(t,e){e.batchFill&&t.fill(),e.batchStroke&&t.stroke(),e.batchFill="",e.batchStroke=""}function L(t,e){return e&&t.__hoverStyle||t.style}function D(t,e){P(t,e,{inHover:!1,viewWidth:0,viewHeight:0},!0)}function P(t,e,n,i){var r=e.transform;if(!e.shouldBePainted(n.viewWidth,n.viewHeight,!1,!1))return e.__dirty&=~d.M,void(e.__isRendered=!1);var c=e.__clipPaths,m=n.prevElClipPaths,b=!1,w=!1;if(m&&!(0,a.KU)(c,m)||(m&&m.length&&(k(t,n),t.restore(),w=b=!0,n.prevElClipPaths=null,n.allClipped=!1,n.prevEl=null),c&&c.length&&(k(t,n),t.save(),function(t,e,n){for(var i=!1,r=0;r<t.length;r++){var o=t[r];i=i||o.isZeroArea(),M(e,o),e.beginPath(),o.buildPath(e,o.shape),e.clip()}n.allClipped=i}(c,t,n),b=!0),n.prevElClipPaths=c),n.allClipped)e.__isRendered=!1;else{e.beforeBrush&&e.beforeBrush(),e.innerBeforeBrush();var D=n.prevEl;D||(w=b=!0);var R,O,N=e instanceof s.Ay&&e.autoBatch&&function(t){var e=v(t),n=g(t);return!(t.lineDash||!(+e^+n)||e&&"string"!=typeof t.fill||n&&"string"!=typeof t.stroke||t.strokePercent<1||t.strokeOpacity<1||t.fillOpacity<1)}(e.style);b||(R=r,O=D.transform,R&&O?R[0]!==O[0]||R[1]!==O[1]||R[2]!==O[2]||R[3]!==O[3]||R[4]!==O[4]||R[5]!==O[5]:R||O)?(k(t,n),M(t,e)):N||k(t,n);var F=L(e,n.inHover);e instanceof s.Ay?(n.lastDrawType!==A&&(w=!0,n.lastDrawType=A),T(t,e,D,w,n),N&&(n.batchFill||n.batchStroke)||t.beginPath(),function(t,e,n,i){var r,o=g(n),s=v(n),l=n.strokePercent,h=l<1,c=!e.path;e.silent&&!h||!c||e.createPathProxy();var p=e.path||f,m=e.__dirty;if(!i){var b=n.fill,w=n.stroke,S=s&&!!b.colorStops,T=o&&!!w.colorStops,M=s&&!!b.image,A=o&&!!w.image,C=void 0,I=void 0,E=void 0,k=void 0,L=void 0;(S||T)&&(L=e.getBoundingRect()),S&&(C=m?(0,a.Ff)(t,b,L):e.__canvasFillGradient,e.__canvasFillGradient=C),T&&(I=m?(0,a.Ff)(t,w,L):e.__canvasStrokeGradient,e.__canvasStrokeGradient=I),M&&(E=m||!e.__canvasFillPattern?x(t,b,e):e.__canvasFillPattern,e.__canvasFillPattern=E),A&&(k=m||!e.__canvasStrokePattern?x(t,w,e):e.__canvasStrokePattern,e.__canvasStrokePattern=E),S?t.fillStyle=C:M&&(E?t.fillStyle=E:s=!1),T?t.strokeStyle=I:A&&(k?t.strokeStyle=k:o=!1)}var D,P,R=e.getGlobalScale();p.setScale(R[0],R[1],e.segmentIgnoreThreshold),t.setLineDash&&n.lineDash&&(D=(r=(0,u.V)(e))[0],P=r[1]);var O=!0;(c||m&d.Dl)&&(p.setDPR(t.dpr),h?p.setContext(null):(p.setContext(t),O=!1),p.reset(),e.buildPath(p,e.shape,i),p.toStatic(),e.pathUpdated()),O&&p.rebuildPath(t,h?l:1),D&&(t.setLineDash(D),t.lineDashOffset=P),i||(n.strokeFirst?(o&&_(t,n),s&&y(t,n)):(s&&y(t,n),o&&_(t,n))),D&&t.setLineDash([])}(t,e,F,N),N&&(n.batchFill=F.fill||"",n.batchStroke=F.stroke||"")):e instanceof h.A?(n.lastDrawType!==I&&(w=!0,n.lastDrawType=I),T(t,e,D,w,n),function(t,e,n){var i,r=n.text;if(null!=r&&(r+=""),r){t.font=n.font||p.OH,t.textAlign=n.textAlign,t.textBaseline=n.textBaseline;var o=void 0,a=void 0;t.setLineDash&&n.lineDash&&(o=(i=(0,u.V)(e))[0],a=i[1]),o&&(t.setLineDash(o),t.lineDashOffset=a),n.strokeFirst?(g(n)&&t.strokeText(r,n.x,n.y),v(n)&&t.fillText(r,n.x,n.y)):(v(n)&&t.fillText(r,n.x,n.y),g(n)&&t.strokeText(r,n.x,n.y)),o&&t.setLineDash([])}}(t,e,F)):e instanceof l.Ay?(n.lastDrawType!==C&&(w=!0,n.lastDrawType=C),function(t,e,n,i,r){S(t,L(e,r.inHover),n&&L(n,r.inHover),i,r)}(t,e,D,w,n),function(t,e,n){var i=e.__image=(0,o.OD)(n.image,e.__image,e,e.onload);if(i&&(0,o.xA)(i)){var r=n.x||0,a=n.y||0,s=e.getWidth(),l=e.getHeight(),h=i.width/i.height;if(null==s&&null!=l?s=l*h:null==l&&null!=s?l=s/h:null==s&&null==l&&(s=i.width,l=i.height),n.sWidth&&n.sHeight){var c=n.sx||0,u=n.sy||0;t.drawImage(i,c,u,n.sWidth,n.sHeight,r,a,s,l)}else if(n.sx&&n.sy){var d=s-(c=n.sx),p=l-(u=n.sy);t.drawImage(i,c,u,d,p,r,a,s,l)}else t.drawImage(i,r,a,s,l)}}(t,e,F)):e.getTemporalDisplayables&&(n.lastDrawType!==E&&(w=!0,n.lastDrawType=E),function(t,e,n){var i=e.getDisplayables(),r=e.getTemporalDisplayables();t.save();var o,a,s={prevElClipPaths:null,prevEl:null,allClipped:!1,viewWidth:n.viewWidth,viewHeight:n.viewHeight,inHover:n.inHover};for(o=e.getCursor(),a=i.length;o<a;o++){(c=i[o]).beforeBrush&&c.beforeBrush(),c.innerBeforeBrush(),P(t,c,s,o===a-1),c.innerAfterBrush(),c.afterBrush&&c.afterBrush(),s.prevEl=c}for(var l=0,h=r.length;l<h;l++){var c;(c=r[l]).beforeBrush&&c.beforeBrush(),c.innerBeforeBrush(),P(t,c,s,l===h-1),c.innerAfterBrush(),c.afterBrush&&c.afterBrush(),s.prevEl=c}e.clearTemporalDisplayables(),e.notClear=!0,t.restore()}(t,e,n)),N&&i&&k(t,n),e.innerAfterBrush(),e.afterBrush&&e.afterBrush(),n.prevEl=e,e.__dirty=0,e.__isRendered=!0}}},4804:(t,e,n)=>{"use strict";function i(t){return isFinite(t)}function r(t,e,n){for(var r="radial"===e.type?function(t,e,n){var r=n.width,o=n.height,a=Math.min(r,o),s=null==e.x?.5:e.x,l=null==e.y?.5:e.y,h=null==e.r?.5:e.r;return e.global||(s=s*r+n.x,l=l*o+n.y,h*=a),s=i(s)?s:.5,l=i(l)?l:.5,h=h>=0&&i(h)?h:.5,t.createRadialGradient(s,l,0,s,l,h)}(t,e,n):function(t,e,n){var r=null==e.x?0:e.x,o=null==e.x2?1:e.x2,a=null==e.y?0:e.y,s=null==e.y2?0:e.y2;return e.global||(r=r*n.width+n.x,o=o*n.width+n.x,a=a*n.height+n.y,s=s*n.height+n.y),r=i(r)?r:0,o=i(o)?o:1,a=i(a)?a:0,s=i(s)?s:0,t.createLinearGradient(r,a,o,s)}(t,e,n),o=e.colorStops,a=0;a<o.length;a++)r.addColorStop(o[a].offset,o[a].color);return r}function o(t,e){if(t===e||!t&&!e)return!1;if(!t||!e||t.length!==e.length)return!0;for(var n=0;n<t.length;n++)if(t[n]!==e[n])return!0;return!1}function a(t){return parseInt(t,10)}function s(t,e,n){var i=["width","height"][e],r=["clientWidth","clientHeight"][e],o=["paddingLeft","paddingTop"][e],s=["paddingRight","paddingBottom"][e];if(null!=n[i]&&"auto"!==n[i])return parseFloat(n[i]);var l=document.defaultView.getComputedStyle(t);return(t[r]||a(l[i])||a(t.style[i]))-(a(l[o])||0)-(a(l[s])||0)|0}n.d(e,{Ff:()=>r,KU:()=>o,YC:()=>s})},2256:(t,e,n)=>{"use strict";n.d(e,{Y5:()=>r,_S:()=>a,el:()=>s,ps:()=>o,tY:()=>l});var i=1;n(4810).A.hasGlobalWindow&&(i=Math.max(window.devicePixelRatio||window.screen&&window.screen.deviceXDPI/window.screen.logicalXDPI||1,1));var r=i,o=.4,a="#333",s="#ccc",l="#eee"},58:(t,e,n)=>{"use strict";function i(t,e,n,i,r,o,a){if(0===r)return!1;var s=r,l=0;if(a>e+s&&a>i+s||a<e-s&&a<i-s||o>t+s&&o>n+s||o<t-s&&o<n-s)return!1;if(t===n)return Math.abs(o-t)<=s/2;var h=(l=(e-i)/(t-n))*o-a+(t*i-n*e)/(t-n);return h*h/(l*l+1)<=s/2*s/2}n.d(e,{l:()=>i})},248:(t,e,n)=>{"use strict";n.d(e,{l:()=>a});var i=n(7778),r=1e-8;function o(t,e){return Math.abs(t-e)<r}function a(t,e,n){var r=0,a=t[0];if(!a)return!1;for(var s=1;s<t.length;s++){var l=t[s];r+=(0,i.A)(a[0],a[1],l[0],l[1],e,n),a=l}var h=t[0];return o(a[0],h[0])&&o(a[1],h[1])||(r+=(0,i.A)(a[0],a[1],h[0],h[1],e,n)),0!==r}},4880:(t,e,n)=>{"use strict";n.d(e,{l:()=>r});var i=n(5162);function r(t,e,n,r,o,a,s,l,h){if(0===s)return!1;var c=s;return!(h>e+c&&h>r+c&&h>a+c||h<e-c&&h<r-c&&h<a-c||l>t+c&&l>n+c&&l>o+c||l<t-c&&l<n-c&&l<o-c)&&(0,i.kh)(t,e,n,r,o,a,l,h,null)<=c/2}},4611:(t,e,n)=>{"use strict";n.d(e,{NO:()=>h,RG:()=>s,X4:()=>f,ks:()=>d,ll:()=>c,lo:()=>p,sZ:()=>u});var i=n(5383),r=n(6552),o=n(9142),a={};function s(t,e){e=e||o.OH;var n=a[e];n||(n=a[e]=new r.Ay(500));var i=n.get(t);return null==i&&(i=o.yh.measureText(t,e).width,n.put(t,i)),i}function l(t,e,n,r){var o=s(t,e),a=d(e),l=c(0,o,n),h=u(0,a,r);return new i.A(l,h,o,a)}function h(t,e,n,r){var o=((t||"")+"").split("\n");if(1===o.length)return l(o[0],e,n,r);for(var a=new i.A(0,0,0,0),s=0;s<o.length;s++){var h=l(o[s],e,n,r);0===s?a.copy(h):a.union(h)}return a}function c(t,e,n){return"right"===n?t-=e:"center"===n&&(t-=e/2),t}function u(t,e,n){return"middle"===n?t-=e/2:"bottom"===n&&(t-=e),t}function d(t){return s("\u56fd",t)}function p(t,e){return"string"==typeof t?t.lastIndexOf("%")>=0?parseFloat(t)/100*e:parseFloat(t):t}function f(t,e,n){var i=e.position||"inside",r=null!=e.distance?e.distance:5,o=n.height,a=n.width,s=o/2,l=n.x,h=n.y,c="left",u="top";if(i instanceof Array)l+=p(i[0],n.width),h+=p(i[1],n.height),c=null,u=null;else switch(i){case"left":l-=r,h+=s,c="right",u="middle";break;case"right":l+=r+a,h+=s,u="middle";break;case"top":l+=a/2,h-=r,c="center",u="bottom";break;case"bottom":l+=a/2,h+=o+r,c="center";break;case"inside":l+=a/2,h+=s,c="center",u="middle";break;case"insideLeft":l+=r,h+=s,u="middle";break;case"insideRight":l+=a-r,h+=s,c="right",u="middle";break;case"insideTop":l+=a/2,h+=r,c="center";break;case"insideBottom":l+=a/2,h+=o-r,c="center",u="bottom";break;case"insideTopLeft":l+=r,h+=r;break;case"insideTopRight":l+=a-r,h+=r,c="right";break;case"insideBottomLeft":l+=r,h+=o-r,u="bottom";break;case"insideBottomRight":l+=a-r,h+=o-r,c="right",u="bottom"}return(t=t||{}).x=l,t.y=h,t.align=c,t.verticalAlign=u,t}},4428:(t,e,n)=>{"use strict";n.d(e,{n:()=>r});var i=2*Math.PI;function r(t){return(t%=i)<0&&(t+=i),t}},7778:(t,e,n)=>{"use strict";function i(t,e,n,i,r,o){if(o>e&&o>i||o<e&&o<i)return 0;if(i===e)return 0;var a=(o-e)/(i-e),s=i<e?1:-1;1!==a&&0!==a||(s=i<e?.5:-.5);var l=a*(n-t)+t;return l===r?1/0:l>r?s:0}n.d(e,{A:()=>i})},5383:(t,e,n)=>{"use strict";n.d(e,{A:()=>p});var i=n(3968),r=n(4063),o=Math.min,a=Math.max,s=new r.A,l=new r.A,h=new r.A,c=new r.A,u=new r.A,d=new r.A;const p=function(){function t(t,e,n,i){n<0&&(t+=n,n=-n),i<0&&(e+=i,i=-i),this.x=t,this.y=e,this.width=n,this.height=i}return t.prototype.union=function(t){var e=o(t.x,this.x),n=o(t.y,this.y);isFinite(this.x)&&isFinite(this.width)?this.width=a(t.x+t.width,this.x+this.width)-e:this.width=t.width,isFinite(this.y)&&isFinite(this.height)?this.height=a(t.y+t.height,this.y+this.height)-n:this.height=t.height,this.x=e,this.y=n},t.prototype.applyTransform=function(e){t.applyTransform(this,this,e)},t.prototype.calculateTransform=function(t){var e=this,n=t.width/e.width,r=t.height/e.height,o=i.create();return i.translate(o,o,[-e.x,-e.y]),i.scale(o,o,[n,r]),i.translate(o,o,[t.x,t.y]),o},t.prototype.intersect=function(e,n){if(!e)return!1;e instanceof t||(e=t.create(e));var i=this,o=i.x,a=i.x+i.width,s=i.y,l=i.y+i.height,h=e.x,c=e.x+e.width,p=e.y,f=e.y+e.height,g=!(a<h||c<o||l<p||f<s);if(n){var m=1/0,v=0,y=Math.abs(a-h),_=Math.abs(c-o),x=Math.abs(l-p),b=Math.abs(f-s),w=Math.min(y,_),S=Math.min(x,b);a<h||c<o?w>v&&(v=w,y<_?r.A.set(d,-y,0):r.A.set(d,_,0)):w<m&&(m=w,y<_?r.A.set(u,y,0):r.A.set(u,-_,0)),l<p||f<s?S>v&&(v=S,x<b?r.A.set(d,0,-x):r.A.set(d,0,b)):w<m&&(m=w,x<b?r.A.set(u,0,x):r.A.set(u,0,-b))}return n&&r.A.copy(n,g?u:d),g},t.prototype.contain=function(t,e){var n=this;return t>=n.x&&t<=n.x+n.width&&e>=n.y&&e<=n.y+n.height},t.prototype.clone=function(){return new t(this.x,this.y,this.width,this.height)},t.prototype.copy=function(e){t.copy(this,e)},t.prototype.plain=function(){return{x:this.x,y:this.y,width:this.width,height:this.height}},t.prototype.isFinite=function(){return isFinite(this.x)&&isFinite(this.y)&&isFinite(this.width)&&isFinite(this.height)},t.prototype.isZero=function(){return 0===this.width||0===this.height},t.create=function(e){return new t(e.x,e.y,e.width,e.height)},t.copy=function(t,e){t.x=e.x,t.y=e.y,t.width=e.width,t.height=e.height},t.applyTransform=function(e,n,i){if(i){if(i[1]<1e-5&&i[1]>-1e-5&&i[2]<1e-5&&i[2]>-1e-5){var r=i[0],u=i[3],d=i[4],p=i[5];return e.x=n.x*r+d,e.y=n.y*u+p,e.width=n.width*r,e.height=n.height*u,e.width<0&&(e.x+=e.width,e.width=-e.width),void(e.height<0&&(e.y+=e.height,e.height=-e.height))}s.x=h.x=n.x,s.y=c.y=n.y,l.x=c.x=n.x+n.width,l.y=h.y=n.y+n.height,s.transform(i),c.transform(i),l.transform(i),h.transform(i),e.x=o(s.x,l.x,h.x,c.x),e.y=o(s.y,l.y,h.y,c.y);var f=a(s.x,l.x,h.x,c.x),g=a(s.y,l.y,h.y,c.y);e.width=f-e.x,e.height=g-e.y}else e!==n&&t.copy(e,n)},t}()},2510:(t,e,n)=>{"use strict";n.d(e,{A:()=>i});const i=function(){function t(t){t&&(this._$eventProcessor=t)}return t.prototype.on=function(t,e,n,i){this._$handlers||(this._$handlers={});var r=this._$handlers;if("function"==typeof e&&(i=n,n=e,e=null),!n||!t)return this;var o=this._$eventProcessor;null!=e&&o&&o.normalizeQuery&&(e=o.normalizeQuery(e)),r[t]||(r[t]=[]);for(var a=0;a<r[t].length;a++)if(r[t][a].h===n)return this;var s={h:n,query:e,ctx:i||this,callAtLast:n.zrEventfulCallAtLast},l=r[t].length-1,h=r[t][l];return h&&h.callAtLast?r[t].splice(l,0,s):r[t].push(s),this},t.prototype.isSilent=function(t){var e=this._$handlers;return!e||!e[t]||!e[t].length},t.prototype.off=function(t,e){var n=this._$handlers;if(!n)return this;if(!t)return this._$handlers={},this;if(e){if(n[t]){for(var i=[],r=0,o=n[t].length;r<o;r++)n[t][r].h!==e&&i.push(n[t][r]);n[t]=i}n[t]&&0===n[t].length&&delete n[t]}else delete n[t];return this},t.prototype.trigger=function(t){for(var e=[],n=1;n<arguments.length;n++)e[n-1]=arguments[n];if(!this._$handlers)return this;var i=this._$handlers[t],r=this._$eventProcessor;if(i)for(var o=e.length,a=i.length,s=0;s<a;s++){var l=i[s];if(!r||!r.filter||null==l.query||r.filter(t,l.query))switch(o){case 0:l.h.call(l.ctx);break;case 1:l.h.call(l.ctx,e[0]);break;case 2:l.h.call(l.ctx,e[0],e[1]);break;default:l.h.apply(l.ctx,e)}}return r&&r.afterTrigger&&r.afterTrigger(t),this},t.prototype.triggerWithContext=function(t){for(var e=[],n=1;n<arguments.length;n++)e[n-1]=arguments[n];if(!this._$handlers)return this;var i=this._$handlers[t],r=this._$eventProcessor;if(i)for(var o=e.length,a=e[o-1],s=i.length,l=0;l<s;l++){var h=i[l];if(!r||!r.filter||null==h.query||r.filter(t,h.query))switch(o){case 0:h.h.call(a);break;case 1:h.h.call(a,e[0]);break;case 2:h.h.call(a,e[0],e[1]);break;default:h.h.apply(a,e.slice(1,o-1))}}return r&&r.afterTrigger&&r.afterTrigger(t),this},t}()},6552:(t,e,n)=>{"use strict";n.d(e,{Ay:()=>o});var i=function(t){this.value=t},r=function(){function t(){this._len=0}return t.prototype.insert=function(t){var e=new i(t);return this.insertEntry(e),e},t.prototype.insertEntry=function(t){this.head?(this.tail.next=t,t.prev=this.tail,t.next=null,this.tail=t):this.head=this.tail=t,this._len++},t.prototype.remove=function(t){var e=t.prev,n=t.next;e?e.next=n:this.head=n,n?n.prev=e:this.tail=e,t.next=t.prev=null,this._len--},t.prototype.len=function(){return this._len},t.prototype.clear=function(){this.head=this.tail=null,this._len=0},t}();const o=function(){function t(t){this._list=new r,this._maxSize=10,this._map={},this._maxSize=t}return t.prototype.put=function(t,e){var n=this._list,r=this._map,o=null;if(null==r[t]){var a=n.len(),s=this._lastRemovedEntry;if(a>=this._maxSize&&a>0){var l=n.head;n.remove(l),delete r[l.key],o=l.value,this._lastRemovedEntry=l}s?s.value=e:s=new i(e),s.key=t,n.insertEntry(s),r[t]=s}return o},t.prototype.get=function(t){var e=this._map[t],n=this._list;if(null!=e)return e!==n.tail&&(n.remove(e),n.insertEntry(e)),e.value},t.prototype.clear=function(){this._list.clear(),this._map={}},t.prototype.len=function(){return this._list.len()},t}()},2971:(t,e,n)=>{"use strict";n.d(e,{A:()=>l});var i=n(4063),r=[0,0],o=[0,0],a=new i.A,s=new i.A;const l=function(){function t(t,e){this._corners=[],this._axes=[],this._origin=[0,0];for(var n=0;n<4;n++)this._corners[n]=new i.A;for(n=0;n<2;n++)this._axes[n]=new i.A;t&&this.fromBoundingRect(t,e)}return t.prototype.fromBoundingRect=function(t,e){var n=this._corners,r=this._axes,o=t.x,a=t.y,s=o+t.width,l=a+t.height;if(n[0].set(o,a),n[1].set(s,a),n[2].set(s,l),n[3].set(o,l),e)for(var h=0;h<4;h++)n[h].transform(e);i.A.sub(r[0],n[1],n[0]),i.A.sub(r[1],n[3],n[0]),r[0].normalize(),r[1].normalize();for(h=0;h<2;h++)this._origin[h]=r[h].dot(n[0])},t.prototype.intersect=function(t,e){var n=!0,r=!e;return a.set(1/0,1/0),s.set(0,0),!this._intersectCheckOneSide(this,t,a,s,r,1)&&(n=!1,r)||!this._intersectCheckOneSide(t,this,a,s,r,-1)&&(n=!1,r)||r||i.A.copy(e,n?a:s),n},t.prototype._intersectCheckOneSide=function(t,e,n,a,s,l){for(var h=!0,c=0;c<2;c++){var u=this._axes[c];if(this._getProjMinMaxOnAxis(c,t._corners,r),this._getProjMinMaxOnAxis(c,e._corners,o),r[1]<o[0]||r[0]>o[1]){if(h=!1,s)return h;var d=Math.abs(o[0]-r[1]),p=Math.abs(r[0]-o[1]);Math.min(d,p)>a.len()&&(d<p?i.A.scale(a,u,-d*l):i.A.scale(a,u,p*l))}else if(n){d=Math.abs(o[0]-r[1]),p=Math.abs(r[0]-o[1]);Math.min(d,p)<n.len()&&(d<p?i.A.scale(n,u,d*l):i.A.scale(n,u,-p*l))}}return h},t.prototype._getProjMinMaxOnAxis=function(t,e,n){for(var i=this._axes[t],r=this._origin,o=e[0].dot(i)+r[t],a=o,s=o,l=1;l<e.length;l++){var h=e[l].dot(i)+r[t];a=Math.min(h,a),s=Math.max(h,s)}n[0]=a,n[1]=s},t}()},584:(t,e,n)=>{"use strict";n.d(e,{A:()=>A,q:()=>M});var i=n(4070),r=n(5383),o=n(2256),a=n(4150),s=n(5162),l={M:1,L:2,C:3,Q:4,A:5,Z:6,R:7},h=[],c=[],u=[],d=[],p=[],f=[],g=Math.min,m=Math.max,v=Math.cos,y=Math.sin,_=Math.abs,x=Math.PI,b=2*x,w="undefined"!=typeof Float32Array,S=[];function T(t){return Math.round(t/x*1e8)/1e8%2*x}function M(t,e){var n=T(t[0]);n<0&&(n+=b);var i=n-t[0],r=t[1];r+=i,!e&&r-n>=b?r=n+b:e&&n-r>=b?r=n-b:!e&&n>r?r=n+(b-T(n-r)):e&&n<r&&(r=n-(b-T(r-n))),t[0]=n,t[1]=r}const A=function(){function t(t){this.dpr=1,this._xi=0,this._yi=0,this._x0=0,this._y0=0,this._len=0,t&&(this._saveData=!1),this._saveData&&(this.data=[])}var e;return t.prototype.increaseVersion=function(){this._version++},t.prototype.getVersion=function(){return this._version},t.prototype.setScale=function(t,e,n){(n=n||0)>0&&(this._ux=_(n/o.Y5/t)||0,this._uy=_(n/o.Y5/e)||0)},t.prototype.setDPR=function(t){this.dpr=t},t.prototype.setContext=function(t){this._ctx=t},t.prototype.getContext=function(){return this._ctx},t.prototype.beginPath=function(){return this._ctx&&this._ctx.beginPath(),this.reset(),this},t.prototype.reset=function(){this._saveData&&(this._len=0),this._pathSegLen&&(this._pathSegLen=null,this._pathLen=0),this._version++},t.prototype.moveTo=function(t,e){return this._drawPendingPt(),this.addData(l.M,t,e),this._ctx&&this._ctx.moveTo(t,e),this._x0=t,this._y0=e,this._xi=t,this._yi=e,this},t.prototype.lineTo=function(t,e){var n=_(t-this._xi),i=_(e-this._yi),r=n>this._ux||i>this._uy;if(this.addData(l.L,t,e),this._ctx&&r&&this._ctx.lineTo(t,e),r)this._xi=t,this._yi=e,this._pendingPtDist=0;else{var o=n*n+i*i;o>this._pendingPtDist&&(this._pendingPtX=t,this._pendingPtY=e,this._pendingPtDist=o)}return this},t.prototype.bezierCurveTo=function(t,e,n,i,r,o){return this._drawPendingPt(),this.addData(l.C,t,e,n,i,r,o),this._ctx&&this._ctx.bezierCurveTo(t,e,n,i,r,o),this._xi=r,this._yi=o,this},t.prototype.quadraticCurveTo=function(t,e,n,i){return this._drawPendingPt(),this.addData(l.Q,t,e,n,i),this._ctx&&this._ctx.quadraticCurveTo(t,e,n,i),this._xi=n,this._yi=i,this},t.prototype.arc=function(t,e,n,i,r,o){this._drawPendingPt(),S[0]=i,S[1]=r,M(S,o),i=S[0];var a=(r=S[1])-i;return this.addData(l.A,t,e,n,n,i,a,0,o?0:1),this._ctx&&this._ctx.arc(t,e,n,i,r,o),this._xi=v(r)*n+t,this._yi=y(r)*n+e,this},t.prototype.arcTo=function(t,e,n,i,r){return this._drawPendingPt(),this._ctx&&this._ctx.arcTo(t,e,n,i,r),this},t.prototype.rect=function(t,e,n,i){return this._drawPendingPt(),this._ctx&&this._ctx.rect(t,e,n,i),this.addData(l.R,t,e,n,i),this},t.prototype.closePath=function(){this._drawPendingPt(),this.addData(l.Z);var t=this._ctx,e=this._x0,n=this._y0;return t&&t.closePath(),this._xi=e,this._yi=n,this},t.prototype.fill=function(t){t&&t.fill(),this.toStatic()},t.prototype.stroke=function(t){t&&t.stroke(),this.toStatic()},t.prototype.len=function(){return this._len},t.prototype.setData=function(t){var e=t.length;this.data&&this.data.length===e||!w||(this.data=new Float32Array(e));for(var n=0;n<e;n++)this.data[n]=t[n];this._len=e},t.prototype.appendPath=function(t){t instanceof Array||(t=[t]);for(var e=t.length,n=0,i=this._len,r=0;r<e;r++)n+=t[r].len();w&&this.data instanceof Float32Array&&(this.data=new Float32Array(i+n));for(r=0;r<e;r++)for(var o=t[r].data,a=0;a<o.length;a++)this.data[i++]=o[a];this._len=i},t.prototype.addData=function(t,e,n,i,r,o,a,s,l){if(this._saveData){var h=this.data;this._len+arguments.length>h.length&&(this._expandData(),h=this.data);for(var c=0;c<arguments.length;c++)h[this._len++]=arguments[c]}},t.prototype._drawPendingPt=function(){this._pendingPtDist>0&&(this._ctx&&this._ctx.lineTo(this._pendingPtX,this._pendingPtY),this._pendingPtDist=0)},t.prototype._expandData=function(){if(!(this.data instanceof Array)){for(var t=[],e=0;e<this._len;e++)t[e]=this.data[e];this.data=t}},t.prototype.toStatic=function(){if(this._saveData){this._drawPendingPt();var t=this.data;t instanceof Array&&(t.length=this._len,w&&this._len>11&&(this.data=new Float32Array(t)))}},t.prototype.getBoundingRect=function(){u[0]=u[1]=p[0]=p[1]=Number.MAX_VALUE,d[0]=d[1]=f[0]=f[1]=-Number.MAX_VALUE;var t,e=this.data,n=0,o=0,s=0,h=0;for(t=0;t<this._len;){var c=e[t++],g=1===t;switch(g&&(s=n=e[t],h=o=e[t+1]),c){case l.M:n=s=e[t++],o=h=e[t++],p[0]=s,p[1]=h,f[0]=s,f[1]=h;break;case l.L:(0,a.j6)(n,o,e[t],e[t+1],p,f),n=e[t++],o=e[t++];break;case l.C:(0,a.BM)(n,o,e[t++],e[t++],e[t++],e[t++],e[t],e[t+1],p,f),n=e[t++],o=e[t++];break;case l.Q:(0,a.tW)(n,o,e[t++],e[t++],e[t],e[t+1],p,f),n=e[t++],o=e[t++];break;case l.A:var m=e[t++],_=e[t++],x=e[t++],b=e[t++],w=e[t++],S=e[t++]+w;t+=1;var T=!e[t++];g&&(s=v(w)*x+m,h=y(w)*b+_),(0,a.$s)(m,_,x,b,w,S,T,p,f),n=v(S)*x+m,o=y(S)*b+_;break;case l.R:s=n=e[t++],h=o=e[t++];var M=e[t++],A=e[t++];(0,a.j6)(s,h,s+M,h+A,p,f);break;case l.Z:n=s,o=h}i.min(u,u,p),i.max(d,d,f)}return 0===t&&(u[0]=u[1]=d[0]=d[1]=0),new r.A(u[0],u[1],d[0]-u[0],d[1]-u[1])},t.prototype._calculateLength=function(){var t=this.data,e=this._len,n=this._ux,i=this._uy,r=0,o=0,a=0,h=0;this._pathSegLen||(this._pathSegLen=[]);for(var c=this._pathSegLen,u=0,d=0,p=0;p<e;){var f=t[p++],x=1===p;x&&(a=r=t[p],h=o=t[p+1]);var w=-1;switch(f){case l.M:r=a=t[p++],o=h=t[p++];break;case l.L:var S=t[p++],T=(C=t[p++])-o;(_(F=S-r)>n||_(T)>i||p===e-1)&&(w=Math.sqrt(F*F+T*T),r=S,o=C);break;case l.C:var M=t[p++],A=t[p++],C=(S=t[p++],t[p++]),I=t[p++],E=t[p++];w=(0,s.h0)(r,o,M,A,S,C,I,E,10),r=I,o=E;break;case l.Q:M=t[p++],A=t[p++],S=t[p++],C=t[p++];w=(0,s.d8)(r,o,M,A,S,C,10),r=S,o=C;break;case l.A:var k=t[p++],L=t[p++],D=t[p++],P=t[p++],R=t[p++],O=t[p++],N=O+R;p+=1,x&&(a=v(R)*D+k,h=y(R)*P+L),w=m(D,P)*g(b,Math.abs(O)),r=v(N)*D+k,o=y(N)*P+L;break;case l.R:a=r=t[p++],h=o=t[p++],w=2*t[p++]+2*t[p++];break;case l.Z:var F=a-r;T=h-o;w=Math.sqrt(F*F+T*T),r=a,o=h}w>=0&&(c[d++]=w,u+=w)}return this._pathLen=u,u},t.prototype.rebuildPath=function(t,e){var n,i,r,o,a,u,d,p,f,x,b=this.data,w=this._ux,S=this._uy,T=this._len,M=e<1,A=0,C=0,I=0;if(!M||(this._pathSegLen||this._calculateLength(),d=this._pathSegLen,p=e*this._pathLen))t:for(var E=0;E<T;){var k=b[E++],L=1===E;switch(L&&(n=r=b[E],i=o=b[E+1]),k!==l.L&&I>0&&(t.lineTo(f,x),I=0),k){case l.M:n=r=b[E++],i=o=b[E++],t.moveTo(r,o);break;case l.L:a=b[E++],u=b[E++];var D=_(a-r),P=_(u-o);if(D>w||P>S){if(M){if(A+(it=d[C++])>p){var R=(p-A)/it;t.lineTo(r*(1-R)+a*R,o*(1-R)+u*R);break t}A+=it}t.lineTo(a,u),r=a,o=u,I=0}else{var O=D*D+P*P;O>I&&(f=a,x=u,I=O)}break;case l.C:var N=b[E++],F=b[E++],B=b[E++],z=b[E++],G=b[E++],V=b[E++];if(M){if(A+(it=d[C++])>p){R=(p-A)/it;(0,s.YT)(r,N,B,G,R,h),(0,s.YT)(o,F,z,V,R,c),t.bezierCurveTo(h[1],c[1],h[2],c[2],h[3],c[3]);break t}A+=it}t.bezierCurveTo(N,F,B,z,G,V),r=G,o=V;break;case l.Q:N=b[E++],F=b[E++],B=b[E++],z=b[E++];if(M){if(A+(it=d[C++])>p){R=(p-A)/it;(0,s.kx)(r,N,B,R,h),(0,s.kx)(o,F,z,R,c),t.quadraticCurveTo(h[1],c[1],h[2],c[2]);break t}A+=it}t.quadraticCurveTo(N,F,B,z),r=B,o=z;break;case l.A:var j=b[E++],H=b[E++],W=b[E++],U=b[E++],q=b[E++],X=b[E++],Y=b[E++],Z=!b[E++],$=W>U?W:U,K=_(W-U)>.001,J=q+X,Q=!1;if(M)A+(it=d[C++])>p&&(J=q+X*(p-A)/it,Q=!0),A+=it;if(K&&t.ellipse?t.ellipse(j,H,W,U,Y,q,J,Z):t.arc(j,H,$,q,J,Z),Q)break t;L&&(n=v(q)*W+j,i=y(q)*U+H),r=v(J)*W+j,o=y(J)*U+H;break;case l.R:n=r=b[E],i=o=b[E+1],a=b[E++],u=b[E++];var tt=b[E++],et=b[E++];if(M){if(A+(it=d[C++])>p){var nt=p-A;t.moveTo(a,u),t.lineTo(a+g(nt,tt),u),(nt-=tt)>0&&t.lineTo(a+tt,u+g(nt,et)),(nt-=et)>0&&t.lineTo(a+m(tt-nt,0),u+et),(nt-=tt)>0&&t.lineTo(a,u+m(et-nt,0));break t}A+=it}t.rect(a,u,tt,et);break;case l.Z:if(M){var it;if(A+(it=d[C++])>p){R=(p-A)/it;t.lineTo(r*(1-R)+n*R,o*(1-R)+i*R);break t}A+=it}t.closePath(),r=n,o=i}}},t.prototype.clone=function(){var e=new t,n=this.data;return e.data=n.slice?n.slice():Array.prototype.slice.call(n),e._len=this._len,e},t.CMD=l,t.initDefaultProps=((e=t.prototype)._saveData=!0,e._ux=0,e._uy=0,e._pendingPtDist=0,void(e._version=0)),t}()},4063:(t,e,n)=>{"use strict";n.d(e,{A:()=>i});const i=function(){function t(t,e){this.x=t||0,this.y=e||0}return t.prototype.copy=function(t){return this.x=t.x,this.y=t.y,this},t.prototype.clone=function(){return new t(this.x,this.y)},t.prototype.set=function(t,e){return this.x=t,this.y=e,this},t.prototype.equal=function(t){return t.x===this.x&&t.y===this.y},t.prototype.add=function(t){return this.x+=t.x,this.y+=t.y,this},t.prototype.scale=function(t){this.x*=t,this.y*=t},t.prototype.scaleAndAdd=function(t,e){this.x+=t.x*e,this.y+=t.y*e},t.prototype.sub=function(t){return this.x-=t.x,this.y-=t.y,this},t.prototype.dot=function(t){return this.x*t.x+this.y*t.y},t.prototype.len=function(){return Math.sqrt(this.x*this.x+this.y*this.y)},t.prototype.lenSquare=function(){return this.x*this.x+this.y*this.y},t.prototype.normalize=function(){var t=this.len();return this.x/=t,this.y/=t,this},t.prototype.distance=function(t){var e=this.x-t.x,n=this.y-t.y;return Math.sqrt(e*e+n*n)},t.prototype.distanceSquare=function(t){var e=this.x-t.x,n=this.y-t.y;return e*e+n*n},t.prototype.negate=function(){return this.x=-this.x,this.y=-this.y,this},t.prototype.transform=function(t){if(t){var e=this.x,n=this.y;return this.x=t[0]*e+t[2]*n+t[4],this.y=t[1]*e+t[3]*n+t[5],this}},t.prototype.toArray=function(t){return t[0]=this.x,t[1]=this.y,t},t.prototype.fromArray=function(t){this.x=t[0],this.y=t[1]},t.set=function(t,e,n){t.x=e,t.y=n},t.copy=function(t,e){t.x=e.x,t.y=e.y},t.len=function(t){return Math.sqrt(t.x*t.x+t.y*t.y)},t.lenSquare=function(t){return t.x*t.x+t.y*t.y},t.dot=function(t,e){return t.x*e.x+t.y*e.y},t.add=function(t,e,n){t.x=e.x+n.x,t.y=e.y+n.y},t.sub=function(t,e,n){t.x=e.x-n.x,t.y=e.y-n.y},t.scale=function(t,e,n){t.x=e.x*n,t.y=e.y*n},t.scaleAndAdd=function(t,e,n,i){t.x=e.x+n.x*i,t.y=e.y+n.y*i},t.lerp=function(t,e,n,i){var r=1-i;t.x=r*e.x+i*n.x,t.y=r*e.y+i*n.y},t}()},5853:(t,e,n)=>{"use strict";n.d(e,{Ay:()=>g,IT:()=>f,Wx:()=>p});var i=n(3968),r=n(4070),o=i.identity,a=5e-5;function s(t){return t>a||t<-5e-5}var l=[],h=[],c=i.create(),u=Math.abs,d=function(){function t(){}var e;return t.prototype.getLocalTransform=function(e){return t.getLocalTransform(this,e)},t.prototype.setPosition=function(t){this.x=t[0],this.y=t[1]},t.prototype.setScale=function(t){this.scaleX=t[0],this.scaleY=t[1]},t.prototype.setSkew=function(t){this.skewX=t[0],this.skewY=t[1]},t.prototype.setOrigin=function(t){this.originX=t[0],this.originY=t[1]},t.prototype.needLocalTransform=function(){return s(this.rotation)||s(this.x)||s(this.y)||s(this.scaleX-1)||s(this.scaleY-1)||s(this.skewX)||s(this.skewY)},t.prototype.updateTransform=function(){var t=this.parent&&this.parent.transform,e=this.needLocalTransform(),n=this.transform;e||t?(n=n||i.create(),e?this.getLocalTransform(n):o(n),t&&(e?i.mul(n,t,n):i.copy(n,t)),this.transform=n,this._resolveGlobalScaleRatio(n)):n&&(o(n),this.invTransform=null)},t.prototype._resolveGlobalScaleRatio=function(t){var e=this.globalScaleRatio;if(null!=e&&1!==e){this.getGlobalScale(l);var n=l[0]<0?-1:1,r=l[1]<0?-1:1,o=((l[0]-n)*e+n)/l[0]||0,a=((l[1]-r)*e+r)/l[1]||0;t[0]*=o,t[1]*=o,t[2]*=a,t[3]*=a}this.invTransform=this.invTransform||i.create(),i.invert(this.invTransform,t)},t.prototype.getComputedTransform=function(){for(var t=this,e=[];t;)e.push(t),t=t.parent;for(;t=e.pop();)t.updateTransform();return this.transform},t.prototype.setLocalTransform=function(t){if(t){var e=t[0]*t[0]+t[1]*t[1],n=t[2]*t[2]+t[3]*t[3],i=Math.atan2(t[1],t[0]),r=Math.PI/2+i-Math.atan2(t[3],t[2]);n=Math.sqrt(n)*Math.cos(r),e=Math.sqrt(e),this.skewX=r,this.skewY=0,this.rotation=-i,this.x=+t[4],this.y=+t[5],this.scaleX=e,this.scaleY=n,this.originX=0,this.originY=0}},t.prototype.decomposeTransform=function(){if(this.transform){var t=this.parent,e=this.transform;t&&t.transform&&(t.invTransform=t.invTransform||i.create(),i.mul(h,t.invTransform,e),e=h);var n=this.originX,r=this.originY;(n||r)&&(c[4]=n,c[5]=r,i.mul(h,e,c),h[4]-=n,h[5]-=r,e=h),this.setLocalTransform(e)}},t.prototype.getGlobalScale=function(t){var e=this.transform;return t=t||[],e?(t[0]=Math.sqrt(e[0]*e[0]+e[1]*e[1]),t[1]=Math.sqrt(e[2]*e[2]+e[3]*e[3]),e[0]<0&&(t[0]=-t[0]),e[3]<0&&(t[1]=-t[1]),t):(t[0]=1,t[1]=1,t)},t.prototype.transformCoordToLocal=function(t,e){var n=[t,e],i=this.invTransform;return i&&r.applyTransform(n,n,i),n},t.prototype.transformCoordToGlobal=function(t,e){var n=[t,e],i=this.transform;return i&&r.applyTransform(n,n,i),n},t.prototype.getLineScale=function(){var t=this.transform;return t&&u(t[0]-1)>1e-10&&u(t[3]-1)>1e-10?Math.sqrt(u(t[0]*t[3]-t[2]*t[1])):1},t.prototype.copyTransform=function(t){f(this,t)},t.getLocalTransform=function(t,e){e=e||[];var n=t.originX||0,r=t.originY||0,o=t.scaleX,a=t.scaleY,s=t.anchorX,l=t.anchorY,h=t.rotation||0,c=t.x,u=t.y,d=t.skewX?Math.tan(t.skewX):0,p=t.skewY?Math.tan(-t.skewY):0;if(n||r||s||l){var f=n+s,g=r+l;e[4]=-f*o-d*g*a,e[5]=-g*a-p*f*o}else e[4]=e[5]=0;return e[0]=o,e[3]=a,e[1]=p*o,e[2]=d*a,h&&i.rotate(e,e,h),e[4]+=n+c,e[5]+=r+u,e},t.initDefaultProps=((e=t.prototype).scaleX=e.scaleY=e.globalScaleRatio=1,void(e.x=e.y=e.originX=e.originY=e.skewX=e.skewY=e.rotation=e.anchorX=e.anchorY=0)),t}(),p=["x","y","originX","originY","anchorX","anchorY","rotation","scaleX","scaleY","skewX","skewY"];function f(t,e){for(var n=0;n<p.length;n++){var i=p[n];t[i]=e[i]}}const g=d},4150:(t,e,n)=>{"use strict";n.d(e,{$s:()=>_,BM:()=>v,Cr:()=>p,j6:()=>f,tW:()=>y});var i=n(4070),r=n(5162),o=Math.min,a=Math.max,s=Math.sin,l=Math.cos,h=2*Math.PI,c=i.create(),u=i.create(),d=i.create();function p(t,e,n){if(0!==t.length){for(var i=t[0],r=i[0],s=i[0],l=i[1],h=i[1],c=1;c<t.length;c++)i=t[c],r=o(r,i[0]),s=a(s,i[0]),l=o(l,i[1]),h=a(h,i[1]);e[0]=r,e[1]=l,n[0]=s,n[1]=h}}function f(t,e,n,i,r,s){r[0]=o(t,n),r[1]=o(e,i),s[0]=a(t,n),s[1]=a(e,i)}var g=[],m=[];function v(t,e,n,i,s,l,h,c,u,d){var p=r.lX,f=r.Yb,v=p(t,n,s,h,g);u[0]=1/0,u[1]=1/0,d[0]=-1/0,d[1]=-1/0;for(var y=0;y<v;y++){var _=f(t,n,s,h,g[y]);u[0]=o(_,u[0]),d[0]=a(_,d[0])}v=p(e,i,l,c,m);for(y=0;y<v;y++){var x=f(e,i,l,c,m[y]);u[1]=o(x,u[1]),d[1]=a(x,d[1])}u[0]=o(t,u[0]),d[0]=a(t,d[0]),u[0]=o(h,u[0]),d[0]=a(h,d[0]),u[1]=o(e,u[1]),d[1]=a(e,d[1]),u[1]=o(c,u[1]),d[1]=a(c,d[1])}function y(t,e,n,i,s,l,h,c){var u=r.gC,d=r.k3,p=a(o(u(t,n,s),1),0),f=a(o(u(e,i,l),1),0),g=d(t,n,s,p),m=d(e,i,l,f);h[0]=o(t,s,g),h[1]=o(e,l,m),c[0]=a(t,s,g),c[1]=a(e,l,m)}function _(t,e,n,r,o,a,p,f,g){var m=i.min,v=i.max,y=Math.abs(o-a);if(y%h<1e-4&&y>1e-4)return f[0]=t-n,f[1]=e-r,g[0]=t+n,void(g[1]=e+r);if(c[0]=l(o)*n+t,c[1]=s(o)*r+e,u[0]=l(a)*n+t,u[1]=s(a)*r+e,m(f,c,u),v(g,c,u),(o%=h)<0&&(o+=h),(a%=h)<0&&(a+=h),o>a&&!p?a+=h:o<a&&p&&(o+=h),p){var _=a;a=o,o=_}for(var x=0;x<a;x+=Math.PI/2)x>o&&(d[0]=l(x)*n+t,d[1]=s(x)*r+e,m(f,d,f),v(g,d,g))}},5162:(t,e,n)=>{"use strict";n.d(e,{Et:()=>x,YT:()=>_,Yb:()=>g,_E:()=>v,d8:()=>I,gC:()=>M,h0:()=>b,k3:()=>w,kh:()=>C,kx:()=>A,lX:()=>y,qY:()=>T,rD:()=>m,z7:()=>S});var i=n(4070),r=Math.pow,o=Math.sqrt,a=1e-8,s=1e-4,l=o(3),h=1/3,c=(0,i.create)(),u=(0,i.create)(),d=(0,i.create)();function p(t){return t>-a&&t<a}function f(t){return t>a||t<-a}function g(t,e,n,i,r){var o=1-r;return o*o*(o*t+3*r*e)+r*r*(r*i+3*o*n)}function m(t,e,n,i,r){var o=1-r;return 3*(((e-t)*o+2*(n-e)*r)*o+(i-n)*r*r)}function v(t,e,n,i,a,s){var c=i+3*(e-n)-t,u=3*(n-2*e+t),d=3*(e-t),f=t-a,g=u*u-3*c*d,m=u*d-9*c*f,v=d*d-3*u*f,y=0;if(p(g)&&p(m)){if(p(u))s[0]=0;else(E=-d/u)>=0&&E<=1&&(s[y++]=E)}else{var _=m*m-4*g*v;if(p(_)){var x=m/g,b=-x/2;(E=-u/c+x)>=0&&E<=1&&(s[y++]=E),b>=0&&b<=1&&(s[y++]=b)}else if(_>0){var w=o(_),S=g*u+1.5*c*(-m+w),T=g*u+1.5*c*(-m-w);(E=(-u-((S=S<0?-r(-S,h):r(S,h))+(T=T<0?-r(-T,h):r(T,h))))/(3*c))>=0&&E<=1&&(s[y++]=E)}else{var M=(2*g*u-3*c*m)/(2*o(g*g*g)),A=Math.acos(M)/3,C=o(g),I=Math.cos(A),E=(-u-2*C*I)/(3*c),k=(b=(-u+C*(I+l*Math.sin(A)))/(3*c),(-u+C*(I-l*Math.sin(A)))/(3*c));E>=0&&E<=1&&(s[y++]=E),b>=0&&b<=1&&(s[y++]=b),k>=0&&k<=1&&(s[y++]=k)}}return y}function y(t,e,n,i,r){var a=6*n-12*e+6*t,s=9*e+3*i-3*t-9*n,l=3*e-3*t,h=0;if(p(s)){if(f(a))(u=-l/a)>=0&&u<=1&&(r[h++]=u)}else{var c=a*a-4*s*l;if(p(c))r[0]=-a/(2*s);else if(c>0){var u,d=o(c),g=(-a-d)/(2*s);(u=(-a+d)/(2*s))>=0&&u<=1&&(r[h++]=u),g>=0&&g<=1&&(r[h++]=g)}}return h}function _(t,e,n,i,r,o){var a=(e-t)*r+t,s=(n-e)*r+e,l=(i-n)*r+n,h=(s-a)*r+a,c=(l-s)*r+s,u=(c-h)*r+h;o[0]=t,o[1]=a,o[2]=h,o[3]=u,o[4]=u,o[5]=c,o[6]=l,o[7]=i}function x(t,e,n,r,a,l,h,p,f,m,v){var y,_,x,b,w,S=.005,T=1/0;c[0]=f,c[1]=m;for(var M=0;M<1;M+=.05)u[0]=g(t,n,a,h,M),u[1]=g(e,r,l,p,M),(b=(0,i.distSquare)(c,u))<T&&(y=M,T=b);T=1/0;for(var A=0;A<32&&!(S<s);A++)_=y-S,x=y+S,u[0]=g(t,n,a,h,_),u[1]=g(e,r,l,p,_),b=(0,i.distSquare)(u,c),_>=0&&b<T?(y=_,T=b):(d[0]=g(t,n,a,h,x),d[1]=g(e,r,l,p,x),w=(0,i.distSquare)(d,c),x<=1&&w<T?(y=x,T=w):S*=.5);return v&&(v[0]=g(t,n,a,h,y),v[1]=g(e,r,l,p,y)),o(T)}function b(t,e,n,i,r,o,a,s,l){for(var h=t,c=e,u=0,d=1/l,p=1;p<=l;p++){var f=p*d,m=g(t,n,r,a,f),v=g(e,i,o,s,f),y=m-h,_=v-c;u+=Math.sqrt(y*y+_*_),h=m,c=v}return u}function w(t,e,n,i){var r=1-i;return r*(r*t+2*i*e)+i*i*n}function S(t,e,n,i){return 2*((1-i)*(e-t)+i*(n-e))}function T(t,e,n,i,r){var a=t-2*e+n,s=2*(e-t),l=t-i,h=0;if(p(a)){if(f(s))(u=-l/s)>=0&&u<=1&&(r[h++]=u)}else{var c=s*s-4*a*l;if(p(c))(u=-s/(2*a))>=0&&u<=1&&(r[h++]=u);else if(c>0){var u,d=o(c),g=(-s-d)/(2*a);(u=(-s+d)/(2*a))>=0&&u<=1&&(r[h++]=u),g>=0&&g<=1&&(r[h++]=g)}}return h}function M(t,e,n){var i=t+n-2*e;return 0===i?.5:(t-e)/i}function A(t,e,n,i,r){var o=(e-t)*i+t,a=(n-e)*i+e,s=(a-o)*i+o;r[0]=t,r[1]=o,r[2]=s,r[3]=s,r[4]=a,r[5]=n}function C(t,e,n,r,a,l,h,p,f){var g,m=.005,v=1/0;c[0]=h,c[1]=p;for(var y=0;y<1;y+=.05){u[0]=w(t,n,a,y),u[1]=w(e,r,l,y),(S=(0,i.distSquare)(c,u))<v&&(g=y,v=S)}v=1/0;for(var _=0;_<32&&!(m<s);_++){var x=g-m,b=g+m;u[0]=w(t,n,a,x),u[1]=w(e,r,l,x);var S=(0,i.distSquare)(u,c);if(x>=0&&S<v)g=x,v=S;else{d[0]=w(t,n,a,b),d[1]=w(e,r,l,b);var T=(0,i.distSquare)(d,c);b<=1&&T<v?(g=b,v=T):m*=.5}}return f&&(f[0]=w(t,n,a,g),f[1]=w(e,r,l,g)),o(v)}function I(t,e,n,i,r,o,a){for(var s=t,l=e,h=0,c=1/a,u=1;u<=a;u++){var d=u*c,p=w(t,n,r,d),f=w(e,i,o,d),g=p-s,m=f-l;h+=Math.sqrt(g*g+m*m),s=p,l=f}return h}},4178:(t,e,n)=>{"use strict";n.d(e,{Me:()=>f,ot:()=>u,oq:()=>c,lJ:()=>h});var i=n(4810),r=Math.log(2);function o(t,e,n,i,a,s){var l=i+"-"+a,h=t.length;if(s.hasOwnProperty(l))return s[l];if(1===e){var c=Math.round(Math.log((1<<h)-1&~a)/r);return t[n][c]}for(var u=i|1<<n,d=n+1;i&1<<d;)d++;for(var p=0,f=0,g=0;f<h;f++){var m=1<<f;m&a||(p+=(g%2?-1:1)*t[n][f]*o(t,e-1,d,u,a|m,s),g++)}return s[l]=p,p}function a(t,e){var n=[[t[0],t[1],1,0,0,0,-e[0]*t[0],-e[0]*t[1]],[0,0,0,t[0],t[1],1,-e[1]*t[0],-e[1]*t[1]],[t[2],t[3],1,0,0,0,-e[2]*t[2],-e[2]*t[3]],[0,0,0,t[2],t[3],1,-e[3]*t[2],-e[3]*t[3]],[t[4],t[5],1,0,0,0,-e[4]*t[4],-e[4]*t[5]],[0,0,0,t[4],t[5],1,-e[5]*t[4],-e[5]*t[5]],[t[6],t[7],1,0,0,0,-e[6]*t[6],-e[6]*t[7]],[0,0,0,t[6],t[7],1,-e[7]*t[6],-e[7]*t[7]]],i={},r=o(n,8,0,0,0,i);if(0!==r){for(var a=[],s=0;s<8;s++)for(var l=0;l<8;l++)null==a[l]&&(a[l]=0),a[l]+=((s+l)%2?-1:1)*o(n,7,0===s?1:0,1<<s,1<<l,i)/r*e[s];return function(t,e,n){var i=e*a[6]+n*a[7]+1;t[0]=(e*a[0]+n*a[1]+a[2])/i,t[1]=(e*a[3]+n*a[4]+a[5])/i}}}var s="___zrEVENTSAVED",l=[];function h(t,e,n,i,r){return c(l,e,i,r,!0)&&c(t,n,l[0],l[1])}function c(t,e,n,r,o){if(e.getBoundingClientRect&&i.A.domSupported&&!u(e)){var l=e[s]||(e[s]={}),h=function(t,e){var n=e.markers;if(n)return n;n=e.markers=[];for(var i=["left","right"],r=["top","bottom"],o=0;o<4;o++){var a=document.createElement("div"),s=o%2,l=(o>>1)%2;a.style.cssText=["position: absolute","visibility: hidden","padding: 0","margin: 0","border-width: 0","user-select: none","width:0","height:0",i[s]+":0",r[l]+":0",i[1-s]+":auto",r[1-l]+":auto",""].join("!important;"),t.appendChild(a),n.push(a)}return n}(e,l),c=function(t,e,n){for(var i=n?"invTrans":"trans",r=e[i],o=e.srcCoords,s=[],l=[],h=!0,c=0;c<4;c++){var u=t[c].getBoundingClientRect(),d=2*c,p=u.left,f=u.top;s.push(p,f),h=h&&o&&p===o[d]&&f===o[d+1],l.push(t[c].offsetLeft,t[c].offsetTop)}return h&&r?r:(e.srcCoords=s,e[i]=n?a(l,s):a(s,l))}(h,l,o);if(c)return c(t,n,r),!0}return!1}function u(t){return"CANVAS"===t.nodeName.toUpperCase()}var d=/([&<>"'])/g,p={"&":"&","<":"<",">":">",'"':""","'":"'"};function f(t){return null==t?"":(t+"").replace(d,(function(t,e){return p[e]}))}},4810:(t,e,n)=>{"use strict";n.d(e,{A:()=>o});var i=function(){this.firefox=!1,this.ie=!1,this.edge=!1,this.newEdge=!1,this.weChat=!1},r=new function(){this.browser=new i,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="undefined"!=typeof window};"object"==typeof wx&&"function"==typeof wx.getSystemInfoSync?(r.wxa=!0,r.touchEventsSupported=!0):"undefined"==typeof document&&"undefined"!=typeof self?r.worker=!0:"undefined"==typeof navigator||0===navigator.userAgent.indexOf("Node.js")?(r.node=!0,r.svgSupported=!0):function(t,e){var n=e.browser,i=t.match(/Firefox\/([\d.]+)/),r=t.match(/MSIE\s([\d.]+)/)||t.match(/Trident\/.+?rv:(([\d.]+))/),o=t.match(/Edge?\/([\d.]+)/),a=/micromessenger/i.test(t);i&&(n.firefox=!0,n.version=i[1]);r&&(n.ie=!0,n.version=r[1]);o&&(n.edge=!0,n.version=o[1],n.newEdge=+o[1].split(".")[0]>18);a&&(n.weChat=!0);e.svgSupported="undefined"!=typeof SVGRect,e.touchEventsSupported="ontouchstart"in window&&!n.ie&&!n.edge,e.pointerEventsSupported="onpointerdown"in window&&(n.edge||n.ie&&+n.version>=11),e.domSupported="undefined"!=typeof document;var s=document.documentElement.style;e.transform3dSupported=(n.ie&&"transition"in s||n.edge||"WebKitCSSMatrix"in window&&"m11"in new WebKitCSSMatrix||"MozPerspective"in s)&&!("OTransition"in s),e.transformSupported=e.transform3dSupported||n.ie&&+n.version>=9}(navigator.userAgent,r);const o=r},1469:(t,e,n)=>{"use strict";n.d(e,{W5:()=>g,Yo:()=>l,ds:()=>f,e0:()=>u,f:()=>p,mK:()=>c,q2:()=>d});var i=n(4810),r=n(4178),o=/^(?:mouse|pointer|contextmenu|drag|drop)|click/,a=[],s=i.A.browser.firefox&&+i.A.browser.version.split(".")[0]<39;function l(t,e,n,i){return n=n||{},i?h(t,e,n):s&&null!=e.layerX&&e.layerX!==e.offsetX?(n.zrX=e.layerX,n.zrY=e.layerY):null!=e.offsetX?(n.zrX=e.offsetX,n.zrY=e.offsetY):h(t,e,n),n}function h(t,e,n){if(i.A.domSupported&&t.getBoundingClientRect){var o=e.clientX,s=e.clientY;if((0,r.ot)(t)){var l=t.getBoundingClientRect();return n.zrX=o-l.left,void(n.zrY=s-l.top)}if((0,r.oq)(a,t,o,s))return n.zrX=a[0],void(n.zrY=a[1])}n.zrX=n.zrY=0}function c(t){return t||window.event}function u(t,e,n){if(null!=(e=c(e)).zrX)return e;var i=e.type;if(i&&i.indexOf("touch")>=0){var r="touchend"!==i?e.targetTouches[0]:e.changedTouches[0];r&&l(t,r,e,n)}else{l(t,e,e,n);var a=function(t){var e=t.wheelDelta;if(e)return e;var n=t.deltaX,i=t.deltaY;if(null==n||null==i)return e;return 3*(0!==i?Math.abs(i):Math.abs(n))*(i>0?-1:i<0?1:n>0?-1:1)}(e);e.zrDelta=a?a/120:-(e.detail||0)/3}var s=e.button;return null==e.which&&void 0!==s&&o.test(e.type)&&(e.which=1&s?1:2&s?3:4&s?2:0),e}function d(t,e,n,i){t.addEventListener(e,n,i)}function p(t,e,n,i){t.removeEventListener(e,n,i)}var f=function(t){t.preventDefault(),t.stopPropagation(),t.cancelBubble=!0};function g(t){return 2===t.which||3===t.which}},3968:(t,e,n)=>{"use strict";function i(){return[1,0,0,1,0,0]}function r(t){return t[0]=1,t[1]=0,t[2]=0,t[3]=1,t[4]=0,t[5]=0,t}function o(t,e){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3],t[4]=e[4],t[5]=e[5],t}function a(t,e,n){var i=e[0]*n[0]+e[2]*n[1],r=e[1]*n[0]+e[3]*n[1],o=e[0]*n[2]+e[2]*n[3],a=e[1]*n[2]+e[3]*n[3],s=e[0]*n[4]+e[2]*n[5]+e[4],l=e[1]*n[4]+e[3]*n[5]+e[5];return t[0]=i,t[1]=r,t[2]=o,t[3]=a,t[4]=s,t[5]=l,t}function s(t,e,n){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3],t[4]=e[4]+n[0],t[5]=e[5]+n[1],t}function l(t,e,n,i){void 0===i&&(i=[0,0]);var r=e[0],o=e[2],a=e[4],s=e[1],l=e[3],h=e[5],c=Math.sin(n),u=Math.cos(n);return t[0]=r*u+s*c,t[1]=-r*c+s*u,t[2]=o*u+l*c,t[3]=-o*c+u*l,t[4]=u*(a-i[0])+c*(h-i[1])+i[0],t[5]=u*(h-i[1])-c*(a-i[0])+i[1],t}function h(t,e,n){var i=n[0],r=n[1];return t[0]=e[0]*i,t[1]=e[1]*r,t[2]=e[2]*i,t[3]=e[3]*r,t[4]=e[4]*i,t[5]=e[5]*r,t}function c(t,e){var n=e[0],i=e[2],r=e[4],o=e[1],a=e[3],s=e[5],l=n*a-o*i;return l?(l=1/l,t[0]=a*l,t[1]=-o*l,t[2]=-i*l,t[3]=n*l,t[4]=(i*s-a*r)*l,t[5]=(o*r-n*s)*l,t):null}function u(t){var e=[1,0,0,1,0,0];return o(e,t),e}n.r(e),n.d(e,{clone:()=>u,copy:()=>o,create:()=>i,identity:()=>r,invert:()=>c,mul:()=>a,rotate:()=>l,scale:()=>h,translate:()=>s})},9142:(t,e,n)=>{"use strict";n.d(e,{Gs:()=>c,OH:()=>o,gI:()=>i,yh:()=>h,zs:()=>r});var i=12,r="sans-serif",o=i+"px "+r;var a,s,l=function(t){var e={};if("undefined"==typeof JSON)return e;for(var n=0;n<t.length;n++){var i=String.fromCharCode(n+32),r=(t.charCodeAt(n)-20)/100;e[i]=r}return e}("007LLmW'55;N0500LLLLLLLLLL00NNNLzWW\\\\WQb\\0FWLg\\bWb\\WQ\\WrWWQ000CL5LLFLL0LL**F*gLLLL5F0LF\\FFF5.5N"),h={createCanvas:function(){return"undefined"!=typeof document&&document.createElement("canvas")},measureText:function(t,e){if(!a){var n=h.createCanvas();a=n&&n.getContext("2d")}if(a)return s!==e&&(s=a.font=e||o),a.measureText(t);t=t||"";var r=/((?:\d+)?\.?\d*)px/.exec(e=e||o),c=r&&+r[1]||i,u=0;if(e.indexOf("mono")>=0)u=c*t.length;else for(var d=0;d<t.length;d++){var p=l[t[d]];u+=null==p?c:p*c}return{width:u}},loadImage:function(t,e,n){var i=new Image;return i.onload=e,i.onerror=n,i.src=t,i}};function c(t){for(var e in h)t[e]&&(h[e]=t[e])}},979:(t,e,n)=>{"use strict";n.d(e,{A:()=>c});var i=32,r=7;function o(t,e,n,i){var r=e+1;if(r===n)return 1;if(i(t[r++],t[e])<0){for(;r<n&&i(t[r],t[r-1])<0;)r++;!function(t,e,n){n--;for(;e<n;){var i=t[e];t[e++]=t[n],t[n--]=i}}(t,e,r)}else for(;r<n&&i(t[r],t[r-1])>=0;)r++;return r-e}function a(t,e,n,i,r){for(i===e&&i++;i<n;i++){for(var o,a=t[i],s=e,l=i;s<l;)r(a,t[o=s+l>>>1])<0?l=o:s=o+1;var h=i-s;switch(h){case 3:t[s+3]=t[s+2];case 2:t[s+2]=t[s+1];case 1:t[s+1]=t[s];break;default:for(;h>0;)t[s+h]=t[s+h-1],h--}t[s]=a}}function s(t,e,n,i,r,o){var a=0,s=0,l=1;if(o(t,e[n+r])>0){for(s=i-r;l<s&&o(t,e[n+r+l])>0;)a=l,(l=1+(l<<1))<=0&&(l=s);l>s&&(l=s),a+=r,l+=r}else{for(s=r+1;l<s&&o(t,e[n+r-l])<=0;)a=l,(l=1+(l<<1))<=0&&(l=s);l>s&&(l=s);var h=a;a=r-l,l=r-h}for(a++;a<l;){var c=a+(l-a>>>1);o(t,e[n+c])>0?a=c+1:l=c}return l}function l(t,e,n,i,r,o){var a=0,s=0,l=1;if(o(t,e[n+r])<0){for(s=r+1;l<s&&o(t,e[n+r-l])<0;)a=l,(l=1+(l<<1))<=0&&(l=s);l>s&&(l=s);var h=a;a=r-l,l=r-h}else{for(s=i-r;l<s&&o(t,e[n+r+l])>=0;)a=l,(l=1+(l<<1))<=0&&(l=s);l>s&&(l=s),a+=r,l+=r}for(a++;a<l;){var c=a+(l-a>>>1);o(t,e[n+c])<0?l=c:a=c+1}return l}function h(t,e){var n,i,o=r,a=0,h=[];function c(c){var u=n[c],d=i[c],p=n[c+1],f=i[c+1];i[c]=d+f,c===a-3&&(n[c+1]=n[c+2],i[c+1]=i[c+2]),a--;var g=l(t[p],t,u,d,0,e);u+=g,0!==(d-=g)&&0!==(f=s(t[u+d-1],t,p,f,f-1,e))&&(d<=f?function(n,i,a,c){var u=0;for(u=0;u<i;u++)h[u]=t[n+u];var d=0,p=a,f=n;if(t[f++]=t[p++],0==--c){for(u=0;u<i;u++)t[f+u]=h[d+u];return}if(1===i){for(u=0;u<c;u++)t[f+u]=t[p+u];return void(t[f+c]=h[d])}var g,m,v,y=o;for(;;){g=0,m=0,v=!1;do{if(e(t[p],h[d])<0){if(t[f++]=t[p++],m++,g=0,0==--c){v=!0;break}}else if(t[f++]=h[d++],g++,m=0,1==--i){v=!0;break}}while((g|m)<y);if(v)break;do{if(0!==(g=l(t[p],h,d,i,0,e))){for(u=0;u<g;u++)t[f+u]=h[d+u];if(f+=g,d+=g,(i-=g)<=1){v=!0;break}}if(t[f++]=t[p++],0==--c){v=!0;break}if(0!==(m=s(h[d],t,p,c,0,e))){for(u=0;u<m;u++)t[f+u]=t[p+u];if(f+=m,p+=m,0===(c-=m)){v=!0;break}}if(t[f++]=h[d++],1==--i){v=!0;break}y--}while(g>=r||m>=r);if(v)break;y<0&&(y=0),y+=2}if((o=y)<1&&(o=1),1===i){for(u=0;u<c;u++)t[f+u]=t[p+u];t[f+c]=h[d]}else{if(0===i)throw new Error;for(u=0;u<i;u++)t[f+u]=h[d+u]}}(u,d,p,f):function(n,i,a,c){var u=0;for(u=0;u<c;u++)h[u]=t[a+u];var d=n+i-1,p=c-1,f=a+c-1,g=0,m=0;if(t[f--]=t[d--],0==--i){for(g=f-(c-1),u=0;u<c;u++)t[g+u]=h[u];return}if(1===c){for(m=(f-=i)+1,g=(d-=i)+1,u=i-1;u>=0;u--)t[m+u]=t[g+u];return void(t[f]=h[p])}var v=o;for(;;){var y=0,_=0,x=!1;do{if(e(h[p],t[d])<0){if(t[f--]=t[d--],y++,_=0,0==--i){x=!0;break}}else if(t[f--]=h[p--],_++,y=0,1==--c){x=!0;break}}while((y|_)<v);if(x)break;do{if(0!==(y=i-l(h[p],t,n,i,i-1,e))){for(i-=y,m=(f-=y)+1,g=(d-=y)+1,u=y-1;u>=0;u--)t[m+u]=t[g+u];if(0===i){x=!0;break}}if(t[f--]=h[p--],1==--c){x=!0;break}if(0!==(_=c-s(t[d],h,0,c,c-1,e))){for(c-=_,m=(f-=_)+1,g=(p-=_)+1,u=0;u<_;u++)t[m+u]=h[g+u];if(c<=1){x=!0;break}}if(t[f--]=t[d--],0==--i){x=!0;break}v--}while(y>=r||_>=r);if(x)break;v<0&&(v=0),v+=2}(o=v)<1&&(o=1);if(1===c){for(m=(f-=i)+1,g=(d-=i)+1,u=i-1;u>=0;u--)t[m+u]=t[g+u];t[f]=h[p]}else{if(0===c)throw new Error;for(g=f-(c-1),u=0;u<c;u++)t[g+u]=h[u]}}(u,d,p,f))}return n=[],i=[],{mergeRuns:function(){for(;a>1;){var t=a-2;if(t>=1&&i[t-1]<=i[t]+i[t+1]||t>=2&&i[t-2]<=i[t]+i[t-1])i[t-1]<i[t+1]&&t--;else if(i[t]>i[t+1])break;c(t)}},forceMergeRuns:function(){for(;a>1;){var t=a-2;t>0&&i[t-1]<i[t+1]&&t--,c(t)}},pushRun:function(t,e){n[a]=t,i[a]=e,a+=1}}}function c(t,e,n,r){n||(n=0),r||(r=t.length);var s=r-n;if(!(s<2)){var l=0;if(s<i)a(t,n,r,n+(l=o(t,n,r,e)),e);else{var c=h(t,e),u=function(t){for(var e=0;t>=i;)e|=1&t,t>>=1;return t+e}(s);do{if((l=o(t,n,r,e))<u){var d=s;d>u&&(d=u),a(t,n,n+d,n+l,e),l=d}c.pushRun(n,l),c.mergeRuns(),s-=l,n+=l}while(0!==s);c.forceMergeRuns()}}}},7845:(t,e,n)=>{"use strict";n.r(e),n.d(e,{HashMap:()=>st,RADIAN_TO_DEGREE:()=>ft,assert:()=>tt,bind:()=>R,clone:()=>y,concatArray:()=>ht,createCanvas:()=>S,createHashMap:()=>lt,createObject:()=>ct,curry:()=>O,defaults:()=>w,disableUserSelect:()=>ut,each:()=>I,eqNaN:()=>Y,extend:()=>b,filter:()=>L,find:()=>D,guid:()=>m,hasOwn:()=>dt,indexOf:()=>T,inherits:()=>M,isArray:()=>N,isArrayLike:()=>C,isBuiltInObject:()=>j,isDom:()=>W,isFunction:()=>F,isGradientObject:()=>U,isImagePatternObject:()=>q,isNumber:()=>G,isObject:()=>V,isPrimitive:()=>rt,isRegExp:()=>X,isString:()=>B,isStringSafe:()=>z,isTypedArray:()=>H,keys:()=>P,logError:()=>v,map:()=>E,merge:()=>_,mergeAll:()=>x,mixin:()=>A,noop:()=>pt,normalizeCssArray:()=>Q,reduce:()=>k,retrieve:()=>Z,retrieve2:()=>$,retrieve3:()=>K,setAsPrimitive:()=>it,slice:()=>J,trim:()=>et});var i=n(9142),r=k(["Function","RegExp","Date","Error","CanvasGradient","CanvasPattern","Image","Canvas"],(function(t,e){return t["[object "+e+"]"]=!0,t}),{}),o=k(["Int8","Uint8","Uint8Clamped","Int16","Uint16","Int32","Uint32","Float32","Float64"],(function(t,e){return t["[object "+e+"Array]"]=!0,t}),{}),a=Object.prototype.toString,s=Array.prototype,l=s.forEach,h=s.filter,c=s.slice,u=s.map,d=function(){}.constructor,p=d?d.prototype:null,f="__proto__",g=2311;function m(){return g++}function v(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];"undefined"!=typeof console&&console.error.apply(console,t)}function y(t){if(null==t||"object"!=typeof t)return t;var e=t,n=a.call(t);if("[object Array]"===n){if(!rt(t)){e=[];for(var i=0,s=t.length;i<s;i++)e[i]=y(t[i])}}else if(o[n]){if(!rt(t)){var l=t.constructor;if(l.from)e=l.from(t);else{e=new l(t.length);for(i=0,s=t.length;i<s;i++)e[i]=t[i]}}}else if(!r[n]&&!rt(t)&&!W(t))for(var h in e={},t)t.hasOwnProperty(h)&&h!==f&&(e[h]=y(t[h]));return e}function _(t,e,n){if(!V(e)||!V(t))return n?y(e):t;for(var i in e)if(e.hasOwnProperty(i)&&i!==f){var r=t[i],o=e[i];!V(o)||!V(r)||N(o)||N(r)||W(o)||W(r)||j(o)||j(r)||rt(o)||rt(r)?!n&&i in t||(t[i]=y(e[i])):_(r,o,n)}return t}function x(t,e){for(var n=t[0],i=1,r=t.length;i<r;i++)n=_(n,t[i],e);return n}function b(t,e){if(Object.assign)Object.assign(t,e);else for(var n in e)e.hasOwnProperty(n)&&n!==f&&(t[n]=e[n]);return t}function w(t,e,n){for(var i=P(e),r=0;r<i.length;r++){var o=i[r];(n?null!=e[o]:null==t[o])&&(t[o]=e[o])}return t}var S=i.yh.createCanvas;function T(t,e){if(t){if(t.indexOf)return t.indexOf(e);for(var n=0,i=t.length;n<i;n++)if(t[n]===e)return n}return-1}function M(t,e){var n=t.prototype;function i(){}for(var r in i.prototype=e.prototype,t.prototype=new i,n)n.hasOwnProperty(r)&&(t.prototype[r]=n[r]);t.prototype.constructor=t,t.superClass=e}function A(t,e,n){if(t="prototype"in t?t.prototype:t,e="prototype"in e?e.prototype:e,Object.getOwnPropertyNames)for(var i=Object.getOwnPropertyNames(e),r=0;r<i.length;r++){var o=i[r];"constructor"!==o&&(n?null!=e[o]:null==t[o])&&(t[o]=e[o])}else w(t,e,n)}function C(t){return!!t&&("string"!=typeof t&&"number"==typeof t.length)}function I(t,e,n){if(t&&e)if(t.forEach&&t.forEach===l)t.forEach(e,n);else if(t.length===+t.length)for(var i=0,r=t.length;i<r;i++)e.call(n,t[i],i,t);else for(var o in t)t.hasOwnProperty(o)&&e.call(n,t[o],o,t)}function E(t,e,n){if(!t)return[];if(!e)return J(t);if(t.map&&t.map===u)return t.map(e,n);for(var i=[],r=0,o=t.length;r<o;r++)i.push(e.call(n,t[r],r,t));return i}function k(t,e,n,i){if(t&&e){for(var r=0,o=t.length;r<o;r++)n=e.call(i,n,t[r],r,t);return n}}function L(t,e,n){if(!t)return[];if(!e)return J(t);if(t.filter&&t.filter===h)return t.filter(e,n);for(var i=[],r=0,o=t.length;r<o;r++)e.call(n,t[r],r,t)&&i.push(t[r]);return i}function D(t,e,n){if(t&&e)for(var i=0,r=t.length;i<r;i++)if(e.call(n,t[i],i,t))return t[i]}function P(t){if(!t)return[];if(Object.keys)return Object.keys(t);var e=[];for(var n in t)t.hasOwnProperty(n)&&e.push(n);return e}var R=p&&F(p.bind)?p.call.bind(p.bind):function(t,e){for(var n=[],i=2;i<arguments.length;i++)n[i-2]=arguments[i];return function(){return t.apply(e,n.concat(c.call(arguments)))}};function O(t){for(var e=[],n=1;n<arguments.length;n++)e[n-1]=arguments[n];return function(){return t.apply(this,e.concat(c.call(arguments)))}}function N(t){return Array.isArray?Array.isArray(t):"[object Array]"===a.call(t)}function F(t){return"function"==typeof t}function B(t){return"string"==typeof t}function z(t){return"[object String]"===a.call(t)}function G(t){return"number"==typeof t}function V(t){var e=typeof t;return"function"===e||!!t&&"object"===e}function j(t){return!!r[a.call(t)]}function H(t){return!!o[a.call(t)]}function W(t){return"object"==typeof t&&"number"==typeof t.nodeType&&"object"==typeof t.ownerDocument}function U(t){return null!=t.colorStops}function q(t){return null!=t.image}function X(t){return"[object RegExp]"===a.call(t)}function Y(t){return t!=t}function Z(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];for(var n=0,i=t.length;n<i;n++)if(null!=t[n])return t[n]}function $(t,e){return null!=t?t:e}function K(t,e,n){return null!=t?t:null!=e?e:n}function J(t){for(var e=[],n=1;n<arguments.length;n++)e[n-1]=arguments[n];return c.apply(t,e)}function Q(t){if("number"==typeof t)return[t,t,t,t];var e=t.length;return 2===e?[t[0],t[1],t[0],t[1]]:3===e?[t[0],t[1],t[2],t[1]]:t}function tt(t,e){if(!t)throw new Error(e)}function et(t){return null==t?null:"function"==typeof t.trim?t.trim():t.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"")}var nt="__ec_primitive__";function it(t){t[nt]=!0}function rt(t){return t[nt]}var ot=function(){function t(){this.data={}}return t.prototype.delete=function(t){var e=this.has(t);return e&&delete this.data[t],e},t.prototype.has=function(t){return this.data.hasOwnProperty(t)},t.prototype.get=function(t){return this.data[t]},t.prototype.set=function(t,e){return this.data[t]=e,this},t.prototype.keys=function(){return P(this.data)},t.prototype.forEach=function(t){var e=this.data;for(var n in e)e.hasOwnProperty(n)&&t(e[n],n)},t}(),at="function"==typeof Map;var st=function(){function t(e){var n=N(e);this.data=at?new Map:new ot;var i=this;function r(t,e){n?i.set(t,e):i.set(e,t)}e instanceof t?e.each(r):e&&I(e,r)}return t.prototype.hasKey=function(t){return this.data.has(t)},t.prototype.get=function(t){return this.data.get(t)},t.prototype.set=function(t,e){return this.data.set(t,e),e},t.prototype.each=function(t,e){this.data.forEach((function(n,i){t.call(e,n,i)}))},t.prototype.keys=function(){var t=this.data.keys();return at?Array.from(t):t},t.prototype.removeKey=function(t){this.data.delete(t)},t}();function lt(t){return new st(t)}function ht(t,e){for(var n=new t.constructor(t.length+e.length),i=0;i<t.length;i++)n[i]=t[i];var r=t.length;for(i=0;i<e.length;i++)n[i+r]=e[i];return n}function ct(t,e){var n;if(Object.create)n=Object.create(t);else{var i=function(){};i.prototype=t,n=new i}return e&&b(n,e),n}function ut(t){var e=t.style;e.webkitUserSelect="none",e.userSelect="none",e.webkitTapHighlightColor="rgba(0,0,0,0)",e["-webkit-touch-callout"]="none"}function dt(t,e){return t.hasOwnProperty(e)}function pt(){}var ft=180/Math.PI},4070:(t,e,n)=>{"use strict";function i(t,e){return null==t&&(t=0),null==e&&(e=0),[t,e]}function r(t,e){return t[0]=e[0],t[1]=e[1],t}function o(t){return[t[0],t[1]]}function a(t,e,n){return t[0]=e,t[1]=n,t}function s(t,e,n){return t[0]=e[0]+n[0],t[1]=e[1]+n[1],t}function l(t,e,n,i){return t[0]=e[0]+n[0]*i,t[1]=e[1]+n[1]*i,t}function h(t,e,n){return t[0]=e[0]-n[0],t[1]=e[1]-n[1],t}function c(t){return Math.sqrt(d(t))}n.r(e),n.d(e,{add:()=>s,applyTransform:()=>M,clone:()=>o,copy:()=>r,create:()=>i,dist:()=>x,distSquare:()=>w,distance:()=>_,distanceSquare:()=>b,div:()=>g,dot:()=>m,len:()=>c,lenSquare:()=>d,length:()=>u,lengthSquare:()=>p,lerp:()=>T,max:()=>C,min:()=>A,mul:()=>f,negate:()=>S,normalize:()=>y,scale:()=>v,scaleAndAdd:()=>l,set:()=>a,sub:()=>h});var u=c;function d(t){return t[0]*t[0]+t[1]*t[1]}var p=d;function f(t,e,n){return t[0]=e[0]*n[0],t[1]=e[1]*n[1],t}function g(t,e,n){return t[0]=e[0]/n[0],t[1]=e[1]/n[1],t}function m(t,e){return t[0]*e[0]+t[1]*e[1]}function v(t,e,n){return t[0]=e[0]*n,t[1]=e[1]*n,t}function y(t,e){var n=c(e);return 0===n?(t[0]=0,t[1]=0):(t[0]=e[0]/n,t[1]=e[1]/n),t}function _(t,e){return Math.sqrt((t[0]-e[0])*(t[0]-e[0])+(t[1]-e[1])*(t[1]-e[1]))}var x=_;function b(t,e){return(t[0]-e[0])*(t[0]-e[0])+(t[1]-e[1])*(t[1]-e[1])}var w=b;function S(t,e){return t[0]=-e[0],t[1]=-e[1],t}function T(t,e,n,i){return t[0]=e[0]+i*(n[0]-e[0]),t[1]=e[1]+i*(n[1]-e[1]),t}function M(t,e,n){var i=e[0],r=e[1];return t[0]=n[0]*i+n[2]*r+n[4],t[1]=n[1]*i+n[3]*r+n[5],t}function A(t,e,n){return t[0]=Math.min(e[0],n[0]),t[1]=Math.min(e[1],n[1]),t}function C(t,e,n){return t[0]=Math.max(e[0],n[0]),t[1]=Math.max(e[1],n[1]),t}},7298:(t,e,n)=>{"use strict";n.d(e,{A:()=>o});var i=n(528),r=n(1885);const o=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="compound",e}return(0,i.C6)(e,t),e.prototype._updatePathDirty=function(){for(var t=this.shape.paths,e=this.shapeChanged(),n=0;n<t.length;n++)e=e||t[n].shapeChanged();e&&this.dirtyShape()},e.prototype.beforeBrush=function(){this._updatePathDirty();for(var t=this.shape.paths||[],e=this.getGlobalScale(),n=0;n<t.length;n++)t[n].path||t[n].createPathProxy(),t[n].path.setScale(e[0],e[1],t[n].segmentIgnoreThreshold)},e.prototype.buildPath=function(t,e){for(var n=e.paths||[],i=0;i<n.length;i++)n[i].buildPath(t,n[i].shape,!0)},e.prototype.afterBrush=function(){for(var t=this.shape.paths||[],e=0;e<t.length;e++)t[e].pathUpdated()},e.prototype.getBoundingRect=function(){return this._updatePathDirty.call(this),r.Ay.prototype.getBoundingRect.call(this)},e}(r.Ay)},7780:(t,e,n)=>{"use strict";n.d(e,{Ay:()=>m,oN:()=>h,sW:()=>c});var i=n(528),r=n(4061),o=n(5383),a=n(7845),s=n(5667),l="__zr_style_"+Math.round(10*Math.random()),h={shadowBlur:0,shadowOffsetX:0,shadowOffsetY:0,shadowColor:"#000",opacity:1,blend:"source-over"},c={style:{shadowBlur:!0,shadowOffsetX:!0,shadowOffsetY:!0,shadowColor:!0,opacity:!0}};h[l]=!0;var u=["z","z2","invisible"],d=["invisible"],p=function(t){function e(e){return t.call(this,e)||this}var n;return(0,i.C6)(e,t),e.prototype._init=function(e){for(var n=(0,a.keys)(e),i=0;i<n.length;i++){var r=n[i];"style"===r?this.useStyle(e[r]):t.prototype.attrKV.call(this,r,e[r])}this.style||this.useStyle({})},e.prototype.beforeBrush=function(){},e.prototype.afterBrush=function(){},e.prototype.innerBeforeBrush=function(){},e.prototype.innerAfterBrush=function(){},e.prototype.shouldBePainted=function(t,e,n,i){var r=this.transform;if(this.ignore||this.invisible||0===this.style.opacity||this.culling&&function(t,e,n){f.copy(t.getBoundingRect()),t.transform&&f.applyTransform(t.transform);return g.width=e,g.height=n,!f.intersect(g)}(this,t,e)||r&&!r[0]&&!r[3])return!1;if(n&&this.__clipPaths)for(var o=0;o<this.__clipPaths.length;++o)if(this.__clipPaths[o].isZeroArea())return!1;if(i&&this.parent)for(var a=this.parent;a;){if(a.ignore)return!1;a=a.parent}return!0},e.prototype.contain=function(t,e){return this.rectContain(t,e)},e.prototype.traverse=function(t,e){t.call(e,this)},e.prototype.rectContain=function(t,e){var n=this.transformCoordToLocal(t,e);return this.getBoundingRect().contain(n[0],n[1])},e.prototype.getPaintRect=function(){var t=this._paintRect;if(!this._paintRect||this.__dirty){var e=this.transform,n=this.getBoundingRect(),i=this.style,r=i.shadowBlur||0,a=i.shadowOffsetX||0,s=i.shadowOffsetY||0;t=this._paintRect||(this._paintRect=new o.A(0,0,0,0)),e?o.A.applyTransform(t,n,e):t.copy(n),(r||a||s)&&(t.width+=2*r+Math.abs(a),t.height+=2*r+Math.abs(s),t.x=Math.min(t.x,t.x+a-r),t.y=Math.min(t.y,t.y+s-r));var l=this.dirtyRectTolerance;t.isZero()||(t.x=Math.floor(t.x-l),t.y=Math.floor(t.y-l),t.width=Math.ceil(t.width+1+2*l),t.height=Math.ceil(t.height+1+2*l))}return t},e.prototype.setPrevPaintRect=function(t){t?(this._prevPaintRect=this._prevPaintRect||new o.A(0,0,0,0),this._prevPaintRect.copy(t)):this._prevPaintRect=null},e.prototype.getPrevPaintRect=function(){return this._prevPaintRect},e.prototype.animateStyle=function(t){return this.animate("style",t)},e.prototype.updateDuringAnimation=function(t){"style"===t?this.dirtyStyle():this.markRedraw()},e.prototype.attrKV=function(e,n){"style"!==e?t.prototype.attrKV.call(this,e,n):this.style?this.setStyle(n):this.useStyle(n)},e.prototype.setStyle=function(t,e){return"string"==typeof t?this.style[t]=e:(0,a.extend)(this.style,t),this.dirtyStyle(),this},e.prototype.dirtyStyle=function(t){t||this.markRedraw(),this.__dirty|=s.pO,this._rect&&(this._rect=null)},e.prototype.dirty=function(){this.dirtyStyle()},e.prototype.styleChanged=function(){return!!(this.__dirty&s.pO)},e.prototype.styleUpdated=function(){this.__dirty&=~s.pO},e.prototype.createStyle=function(t){return(0,a.createObject)(h,t)},e.prototype.useStyle=function(t){t[l]||(t=this.createStyle(t)),this.__inHover?this.__hoverStyle=t:this.style=t,this.dirtyStyle()},e.prototype.isStyleObject=function(t){return t[l]},e.prototype._innerSaveToNormal=function(e){t.prototype._innerSaveToNormal.call(this,e);var n=this._normalState;e.style&&!n.style&&(n.style=this._mergeStyle(this.createStyle(),this.style)),this._savePrimaryToNormal(e,n,u)},e.prototype._applyStateObj=function(e,n,i,r,o,s){t.prototype._applyStateObj.call(this,e,n,i,r,o,s);var l,h=!(n&&r);if(n&&n.style?o?r?l=n.style:(l=this._mergeStyle(this.createStyle(),i.style),this._mergeStyle(l,n.style)):(l=this._mergeStyle(this.createStyle(),r?this.style:i.style),this._mergeStyle(l,n.style)):h&&(l=i.style),l)if(o){var c=this.style;if(this.style=this.createStyle(h?{}:c),h)for(var p=(0,a.keys)(c),f=0;f<p.length;f++){(m=p[f])in l&&(l[m]=l[m],this.style[m]=c[m])}var g=(0,a.keys)(l);for(f=0;f<g.length;f++){var m=g[f];this.style[m]=this.style[m]}this._transitionState(e,{style:l},s,this.getAnimationStyleProps())}else this.useStyle(l);var v=this.__inHover?d:u;for(f=0;f<v.length;f++){m=v[f];n&&null!=n[m]?this[m]=n[m]:h&&null!=i[m]&&(this[m]=i[m])}},e.prototype._mergeStates=function(e){for(var n,i=t.prototype._mergeStates.call(this,e),r=0;r<e.length;r++){var o=e[r];o.style&&(n=n||{},this._mergeStyle(n,o.style))}return n&&(i.style=n),i},e.prototype._mergeStyle=function(t,e){return(0,a.extend)(t,e),t},e.prototype.getAnimationStyleProps=function(){return c},e.initDefaultProps=((n=e.prototype).type="displayable",n.invisible=!1,n.z=0,n.z2=0,n.zlevel=0,n.culling=!1,n.cursor="pointer",n.rectHover=!1,n.incremental=!1,n._rect=null,n.dirtyRectTolerance=0,void(n.__dirty=s.M|s.pO)),e}(r.A),f=new o.A(0,0,0,0),g=new o.A(0,0,0,0);const m=p},7540:(t,e,n)=>{"use strict";n.d(e,{A:()=>i});const i=function(){function t(t){this.colorStops=t||[]}return t.prototype.addColorStop=function(t,e){this.colorStops.push({offset:t,color:e})},t}()},8829:(t,e,n)=>{"use strict";n.d(e,{A:()=>l});var i=n(528),r=n(7845),o=n(4061),a=n(5383),s=function(t){function e(e){var n=t.call(this)||this;return n.isGroup=!0,n._children=[],n.attr(e),n}return(0,i.C6)(e,t),e.prototype.childrenRef=function(){return this._children},e.prototype.children=function(){return this._children.slice()},e.prototype.childAt=function(t){return this._children[t]},e.prototype.childOfName=function(t){for(var e=this._children,n=0;n<e.length;n++)if(e[n].name===t)return e[n]},e.prototype.childCount=function(){return this._children.length},e.prototype.add=function(t){return t&&t!==this&&t.parent!==this&&(this._children.push(t),this._doAdd(t)),this},e.prototype.addBefore=function(t,e){if(t&&t!==this&&t.parent!==this&&e&&e.parent===this){var n=this._children,i=n.indexOf(e);i>=0&&(n.splice(i,0,t),this._doAdd(t))}return this},e.prototype.replace=function(t,e){var n=r.indexOf(this._children,t);return n>=0&&this.replaceAt(e,n),this},e.prototype.replaceAt=function(t,e){var n=this._children,i=n[e];if(t&&t!==this&&t.parent!==this&&t!==i){n[e]=t,i.parent=null;var r=this.__zr;r&&i.removeSelfFromZr(r),this._doAdd(t)}return this},e.prototype._doAdd=function(t){t.parent&&t.parent.remove(t),t.parent=this;var e=this.__zr;e&&e!==t.__zr&&t.addSelfToZr(e),e&&e.refresh()},e.prototype.remove=function(t){var e=this.__zr,n=this._children,i=r.indexOf(n,t);return i<0||(n.splice(i,1),t.parent=null,e&&t.removeSelfFromZr(e),e&&e.refresh()),this},e.prototype.removeAll=function(){for(var t=this._children,e=this.__zr,n=0;n<t.length;n++){var i=t[n];e&&i.removeSelfFromZr(e),i.parent=null}return t.length=0,this},e.prototype.eachChild=function(t,e){for(var n=this._children,i=0;i<n.length;i++){var r=n[i];t.call(e,r,i)}return this},e.prototype.traverse=function(t,e){for(var n=0;n<this._children.length;n++){var i=this._children[n],r=t.call(e,i);i.isGroup&&!r&&i.traverse(t,e)}return this},e.prototype.addSelfToZr=function(e){t.prototype.addSelfToZr.call(this,e);for(var n=0;n<this._children.length;n++){this._children[n].addSelfToZr(e)}},e.prototype.removeSelfFromZr=function(e){t.prototype.removeSelfFromZr.call(this,e);for(var n=0;n<this._children.length;n++){this._children[n].removeSelfFromZr(e)}},e.prototype.getBoundingRect=function(t){for(var e=new a.A(0,0,0,0),n=t||this._children,i=[],r=null,o=0;o<n.length;o++){var s=n[o];if(!s.ignore&&!s.invisible){var l=s.getBoundingRect(),h=s.getLocalTransform(i);h?(a.A.applyTransform(e,l,h),(r=r||e.clone()).union(e)):(r=r||l.clone()).union(l)}}return r||e},e}(o.A);s.prototype.type="group";const l=s},5975:(t,e,n)=>{"use strict";n.d(e,{Ay:()=>c});var i=n(528),r=n(7780),o=n(5383),a=n(7845),s=(0,a.defaults)({x:0,y:0},r.oN),l={style:(0,a.defaults)({x:!0,y:!0,width:!0,height:!0,sx:!0,sy:!0,sWidth:!0,sHeight:!0},r.sW.style)};var h=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return(0,i.C6)(e,t),e.prototype.createStyle=function(t){return(0,a.createObject)(s,t)},e.prototype._getSize=function(t){var e=this.style,n=e[t];if(null!=n)return n;var i,r=(i=e.image)&&"string"!=typeof i&&i.width&&i.height?e.image:this.__image;if(!r)return 0;var o="width"===t?"height":"width",a=e[o];return null==a?r[t]:r[t]/r[o]*a},e.prototype.getWidth=function(){return this._getSize("width")},e.prototype.getHeight=function(){return this._getSize("height")},e.prototype.getAnimationStyleProps=function(){return l},e.prototype.getBoundingRect=function(){var t=this.style;return this._rect||(this._rect=new o.A(t.x||0,t.y||0,this.getWidth(),this.getHeight())),this._rect},e}(r.Ay);h.prototype.type="image";const c=h},5238:(t,e,n)=>{"use strict";n.d(e,{A:()=>s});var i=n(528),r=n(7780),o=n(5383),a=[];const s=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.notClear=!0,e.incremental=!0,e._displayables=[],e._temporaryDisplayables=[],e._cursor=0,e}return(0,i.C6)(e,t),e.prototype.traverse=function(t,e){t.call(e,this)},e.prototype.useStyle=function(){this.style={}},e.prototype.getCursor=function(){return this._cursor},e.prototype.innerAfterBrush=function(){this._cursor=this._displayables.length},e.prototype.clearDisplaybles=function(){this._displayables=[],this._temporaryDisplayables=[],this._cursor=0,this.markRedraw(),this.notClear=!1},e.prototype.clearTemporalDisplayables=function(){this._temporaryDisplayables=[]},e.prototype.addDisplayable=function(t,e){e?this._temporaryDisplayables.push(t):this._displayables.push(t),this.markRedraw()},e.prototype.addDisplayables=function(t,e){e=e||!1;for(var n=0;n<t.length;n++)this.addDisplayable(t[n],e)},e.prototype.getDisplayables=function(){return this._displayables},e.prototype.getTemporalDisplayables=function(){return this._temporaryDisplayables},e.prototype.eachPendingDisplayable=function(t){for(var e=this._cursor;e<this._displayables.length;e++)t&&t(this._displayables[e]);for(e=0;e<this._temporaryDisplayables.length;e++)t&&t(this._temporaryDisplayables[e])},e.prototype.update=function(){this.updateTransform();for(var t=this._cursor;t<this._displayables.length;t++){(e=this._displayables[t]).parent=this,e.update(),e.parent=null}for(t=0;t<this._temporaryDisplayables.length;t++){var e;(e=this._temporaryDisplayables[t]).parent=this,e.update(),e.parent=null}},e.prototype.getBoundingRect=function(){if(!this._rect){for(var t=new o.A(1/0,1/0,-1/0,-1/0),e=0;e<this._displayables.length;e++){var n=this._displayables[e],i=n.getBoundingRect().clone();n.needLocalTransform()&&i.applyTransform(n.getLocalTransform(a)),t.union(i)}this._rect=t}return this._rect},e.prototype.contain=function(t,e){var n=this.transformCoordToLocal(t,e);if(this.getBoundingRect().contain(n[0],n[1]))for(var i=0;i<this._displayables.length;i++){if(this._displayables[i].contain(t,e))return!0}return!1},e}(r.Ay)},7789:(t,e,n)=>{"use strict";n.d(e,{A:()=>r});var i=n(528);const r=function(t){function e(e,n,i,r,o,a){var s=t.call(this,o)||this;return s.x=null==e?0:e,s.y=null==n?0:n,s.x2=null==i?1:i,s.y2=null==r?0:r,s.type="linear",s.global=a||!1,s}return(0,i.C6)(e,t),e}(n(7540).A)},1885:(t,e,n)=>{"use strict";n.d(e,{MW:()=>C,Ay:()=>k});var i=n(528),r=n(7780),o=n(584),a=n(58),s=n(5162);function l(t,e,n,i,r,o,a,l,h,c,u){if(0===h)return!1;var d=h;return!(u>e+d&&u>i+d&&u>o+d&&u>l+d||u<e-d&&u<i-d&&u<o-d&&u<l-d||c>t+d&&c>n+d&&c>r+d&&c>a+d||c<t-d&&c<n-d&&c<r-d&&c<a-d)&&s.Et(t,e,n,i,r,o,a,l,c,u,null)<=d/2}var h=n(4880),c=n(4428),u=2*Math.PI;function d(t,e,n,i,r,o,a,s,l){if(0===a)return!1;var h=a;s-=t,l-=e;var d=Math.sqrt(s*s+l*l);if(d-h>n||d+h<n)return!1;if(Math.abs(i-r)%u<1e-4)return!0;if(o){var p=i;i=(0,c.n)(r),r=(0,c.n)(p)}else i=(0,c.n)(i),r=(0,c.n)(r);i>r&&(r+=u);var f=Math.atan2(l,s);return f<0&&(f+=u),f>=i&&f<=r||f+u>=i&&f+u<=r}var p=n(7778),f=o.A.CMD,g=2*Math.PI;var m=[-1,-1,-1],v=[-1,-1];function y(t,e,n,i,r,o,a,l,h,c){if(c>e&&c>i&&c>o&&c>l||c<e&&c<i&&c<o&&c<l)return 0;var u,d=s._E(e,i,o,l,c,m);if(0===d)return 0;for(var p=0,f=-1,g=void 0,y=void 0,_=0;_<d;_++){var x=m[_],b=0===x||1===x?.5:1;s.Yb(t,n,r,a,x)<h||(f<0&&(f=s.lX(e,i,o,l,v),v[1]<v[0]&&f>1&&(u=void 0,u=v[0],v[0]=v[1],v[1]=u),g=s.Yb(e,i,o,l,v[0]),f>1&&(y=s.Yb(e,i,o,l,v[1]))),2===f?x<v[0]?p+=g<e?b:-b:x<v[1]?p+=y<g?b:-b:p+=l<y?b:-b:x<v[0]?p+=g<e?b:-b:p+=l<g?b:-b)}return p}function _(t,e,n,i,r,o,a,l){if(l>e&&l>i&&l>o||l<e&&l<i&&l<o)return 0;var h=s.qY(e,i,o,l,m);if(0===h)return 0;var c=s.gC(e,i,o);if(c>=0&&c<=1){for(var u=0,d=s.k3(e,i,o,c),p=0;p<h;p++){var f=0===m[p]||1===m[p]?.5:1;s.k3(t,n,r,m[p])<a||(m[p]<c?u+=d<e?f:-f:u+=o<d?f:-f)}return u}f=0===m[0]||1===m[0]?.5:1;return s.k3(t,n,r,m[0])<a?0:o<e?f:-f}function x(t,e,n,i,r,o,a,s){if((s-=e)>n||s<-n)return 0;var l=Math.sqrt(n*n-s*s);m[0]=-l,m[1]=l;var h=Math.abs(i-r);if(h<1e-4)return 0;if(h>=g-1e-4){i=0,r=g;var c=o?1:-1;return a>=m[0]+t&&a<=m[1]+t?c:0}if(i>r){var u=i;i=r,r=u}i<0&&(i+=g,r+=g);for(var d=0,p=0;p<2;p++){var f=m[p];if(f+t>a){var v=Math.atan2(s,f);c=o?1:-1;v<0&&(v=g+v),(v>=i&&v<=r||v+g>=i&&v+g<=r)&&(v>Math.PI/2&&v<1.5*Math.PI&&(c=-c),d+=c)}}return d}function b(t,e,n,i,r){for(var o,s,c=t.data,u=t.len(),g=0,m=0,v=0,b=0,w=0,S=0;S<u;){var T=c[S++],M=1===S;switch(T===f.M&&S>1&&(n||(g+=(0,p.A)(m,v,b,w,i,r))),M&&(b=m=c[S],w=v=c[S+1]),T){case f.M:m=b=c[S++],v=w=c[S++];break;case f.L:if(n){if(a.l(m,v,c[S],c[S+1],e,i,r))return!0}else g+=(0,p.A)(m,v,c[S],c[S+1],i,r)||0;m=c[S++],v=c[S++];break;case f.C:if(n){if(l(m,v,c[S++],c[S++],c[S++],c[S++],c[S],c[S+1],e,i,r))return!0}else g+=y(m,v,c[S++],c[S++],c[S++],c[S++],c[S],c[S+1],i,r)||0;m=c[S++],v=c[S++];break;case f.Q:if(n){if(h.l(m,v,c[S++],c[S++],c[S],c[S+1],e,i,r))return!0}else g+=_(m,v,c[S++],c[S++],c[S],c[S+1],i,r)||0;m=c[S++],v=c[S++];break;case f.A:var A=c[S++],C=c[S++],I=c[S++],E=c[S++],k=c[S++],L=c[S++];S+=1;var D=!!(1-c[S++]);o=Math.cos(k)*I+A,s=Math.sin(k)*E+C,M?(b=o,w=s):g+=(0,p.A)(m,v,o,s,i,r);var P=(i-A)*E/I+A;if(n){if(d(A,C,E,k,k+L,D,e,P,r))return!0}else g+=x(A,C,E,k,k+L,D,P,r);m=Math.cos(k+L)*I+A,v=Math.sin(k+L)*E+C;break;case f.R:if(b=m=c[S++],w=v=c[S++],o=b+c[S++],s=w+c[S++],n){if(a.l(b,w,o,w,e,i,r)||a.l(o,w,o,s,e,i,r)||a.l(o,s,b,s,e,i,r)||a.l(b,s,b,w,e,i,r))return!0}else g+=(0,p.A)(o,w,o,s,i,r),g+=(0,p.A)(b,s,b,w,i,r);break;case f.Z:if(n){if(a.l(m,v,b,w,e,i,r))return!0}else g+=(0,p.A)(m,v,b,w,i,r);m=b,v=w}}return n||function(t,e){return Math.abs(t-e)<1e-4}(v,w)||(g+=(0,p.A)(m,v,b,w,i,r)||0),0!==g}var w=n(7845),S=n(7219),T=n(2256),M=n(5667),A=n(5853),C=(0,w.defaults)({fill:"#000",stroke:null,strokePercent:1,fillOpacity:1,strokeOpacity:1,lineDashOffset:0,lineWidth:1,lineCap:"butt",miterLimit:10,strokeNoScale:!1,strokeFirst:!1},r.oN),I={style:(0,w.defaults)({fill:!0,stroke:!0,strokePercent:!0,fillOpacity:!0,strokeOpacity:!0,lineDashOffset:!0,lineWidth:!0,miterLimit:!0},r.sW.style)},E=A.Wx.concat(["invisible","culling","z","z2","zlevel","parent"]);const k=function(t){function e(e){return t.call(this,e)||this}var n;return(0,i.C6)(e,t),e.prototype.update=function(){var n=this;t.prototype.update.call(this);var i=this.style;if(i.decal){var r=this._decalEl=this._decalEl||new e;r.buildPath===e.prototype.buildPath&&(r.buildPath=function(t){n.buildPath(t,n.shape)}),r.silent=!0;var o=r.style;for(var a in i)o[a]!==i[a]&&(o[a]=i[a]);o.fill=i.fill?i.decal:null,o.decal=null,o.shadowColor=null,i.strokeFirst&&(o.stroke=null);for(var s=0;s<E.length;++s)r[E[s]]=this[E[s]];r.__dirty|=M.M}else this._decalEl&&(this._decalEl=null)},e.prototype.getDecalElement=function(){return this._decalEl},e.prototype._init=function(e){var n=(0,w.keys)(e);this.shape=this.getDefaultShape();var i=this.getDefaultStyle();i&&this.useStyle(i);for(var r=0;r<n.length;r++){var o=n[r],a=e[o];"style"===o?this.style?(0,w.extend)(this.style,a):this.useStyle(a):"shape"===o?(0,w.extend)(this.shape,a):t.prototype.attrKV.call(this,o,a)}this.style||this.useStyle({})},e.prototype.getDefaultStyle=function(){return null},e.prototype.getDefaultShape=function(){return{}},e.prototype.canBeInsideText=function(){return this.hasFill()},e.prototype.getInsideTextFill=function(){var t=this.style.fill;if("none"!==t){if((0,w.isString)(t)){var e=(0,S.lum)(t,0);return e>.5?T._S:e>.2?T.tY:T.el}if(t)return T.el}return T._S},e.prototype.getInsideTextStroke=function(t){var e=this.style.fill;if((0,w.isString)(e)){var n=this.__zr;if(!(!n||!n.isDarkMode())===(0,S.lum)(t,0)<T.ps)return e}},e.prototype.buildPath=function(t,e,n){},e.prototype.pathUpdated=function(){this.__dirty&=~M.Dl},e.prototype.getUpdatedPathProxy=function(t){return!this.path&&this.createPathProxy(),this.path.beginPath(),this.buildPath(this.path,this.shape,t),this.path},e.prototype.createPathProxy=function(){this.path=new o.A(!1)},e.prototype.hasStroke=function(){var t=this.style,e=t.stroke;return!(null==e||"none"===e||!(t.lineWidth>0))},e.prototype.hasFill=function(){var t=this.style.fill;return null!=t&&"none"!==t},e.prototype.getBoundingRect=function(){var t=this._rect,e=this.style,n=!t;if(n){var i=!1;this.path||(i=!0,this.createPathProxy());var r=this.path;(i||this.__dirty&M.Dl)&&(r.beginPath(),this.buildPath(r,this.shape,!1),this.pathUpdated()),t=r.getBoundingRect()}if(this._rect=t,this.hasStroke()&&this.path&&this.path.len()>0){var o=this._rectStroke||(this._rectStroke=t.clone());if(this.__dirty||n){o.copy(t);var a=e.strokeNoScale?this.getLineScale():1,s=e.lineWidth;if(!this.hasFill()){var l=this.strokeContainThreshold;s=Math.max(s,null==l?4:l)}a>1e-10&&(o.width+=s/a,o.height+=s/a,o.x-=s/a/2,o.y-=s/a/2)}return o}return t},e.prototype.contain=function(t,e){var n=this.transformCoordToLocal(t,e),i=this.getBoundingRect(),r=this.style;if(t=n[0],e=n[1],i.contain(t,e)){var o=this.path;if(this.hasStroke()){var a=r.lineWidth,s=r.strokeNoScale?this.getLineScale():1;if(s>1e-10&&(this.hasFill()||(a=Math.max(a,this.strokeContainThreshold)),function(t,e,n,i){return b(t,e,!0,n,i)}(o,a/s,t,e)))return!0}if(this.hasFill())return function(t,e,n){return b(t,0,!1,e,n)}(o,t,e)}return!1},e.prototype.dirtyShape=function(){this.__dirty|=M.Dl,this._rect&&(this._rect=null),this._decalEl&&this._decalEl.dirtyShape(),this.markRedraw()},e.prototype.dirty=function(){this.dirtyStyle(),this.dirtyShape()},e.prototype.animateShape=function(t){return this.animate("shape",t)},e.prototype.updateDuringAnimation=function(t){"style"===t?this.dirtyStyle():"shape"===t?this.dirtyShape():this.markRedraw()},e.prototype.attrKV=function(e,n){"shape"===e?this.setShape(n):t.prototype.attrKV.call(this,e,n)},e.prototype.setShape=function(t,e){var n=this.shape;return n||(n=this.shape={}),"string"==typeof t?n[t]=e:(0,w.extend)(n,t),this.dirtyShape(),this},e.prototype.shapeChanged=function(){return!!(this.__dirty&M.Dl)},e.prototype.createStyle=function(t){return(0,w.createObject)(C,t)},e.prototype._innerSaveToNormal=function(e){t.prototype._innerSaveToNormal.call(this,e);var n=this._normalState;e.shape&&!n.shape&&(n.shape=(0,w.extend)({},this.shape))},e.prototype._applyStateObj=function(e,n,i,r,o,a){t.prototype._applyStateObj.call(this,e,n,i,r,o,a);var s,l=!(n&&r);if(n&&n.shape?o?r?s=n.shape:(s=(0,w.extend)({},i.shape),(0,w.extend)(s,n.shape)):(s=(0,w.extend)({},r?this.shape:i.shape),(0,w.extend)(s,n.shape)):l&&(s=i.shape),s)if(o){this.shape=(0,w.extend)({},this.shape);for(var h={},c=(0,w.keys)(s),u=0;u<c.length;u++){var d=c[u];"object"==typeof s[d]?this.shape[d]=s[d]:h[d]=s[d]}this._transitionState(e,{shape:h},a)}else this.shape=s,this.dirtyShape()},e.prototype._mergeStates=function(e){for(var n,i=t.prototype._mergeStates.call(this,e),r=0;r<e.length;r++){var o=e[r];o.shape&&(n=n||{},this._mergeStyle(n,o.shape))}return n&&(i.shape=n),i},e.prototype.getAnimationStyleProps=function(){return I},e.prototype.isZeroArea=function(){return!1},e.extend=function(t){var n=function(e){function n(n){var i=e.call(this,n)||this;return t.init&&t.init.call(i,n),i}return(0,i.C6)(n,e),n.prototype.getDefaultStyle=function(){return(0,w.clone)(t.style)},n.prototype.getDefaultShape=function(){return(0,w.clone)(t.shape)},n}(e);for(var r in t)"function"==typeof t[r]&&(n.prototype[r]=t[r]);return n},e.initDefaultProps=((n=e.prototype).type="path",n.strokeContainThreshold=5,n.segmentIgnoreThreshold=0,n.subPixelOptimize=!1,n.autoBatch=!1,void(n.__dirty=M.M|M.pO|M.Dl)),e}(r.Ay)},6575:(t,e,n)=>{"use strict";n.d(e,{A:()=>r});var i=n(528);const r=function(t){function e(e,n,i,r,o){var a=t.call(this,r)||this;return a.x=null==e?.5:e,a.y=null==n?.5:n,a.r=null==i?.5:i,a.type="radial",a.global=o||!1,a}return(0,i.C6)(e,t),e}(n(7540).A)},3554:(t,e,n)=>{"use strict";n.d(e,{A:()=>u});var i=n(528),r=n(7780),o=n(4611),a=n(1885),s=n(7845),l=n(9142),h=(0,s.defaults)({strokeFirst:!0,font:l.OH,x:0,y:0,textAlign:"left",textBaseline:"top",miterLimit:2},a.MW),c=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return(0,i.C6)(e,t),e.prototype.hasStroke=function(){var t=this.style,e=t.stroke;return null!=e&&"none"!==e&&t.lineWidth>0},e.prototype.hasFill=function(){var t=this.style.fill;return null!=t&&"none"!==t},e.prototype.createStyle=function(t){return(0,s.createObject)(h,t)},e.prototype.setBoundingRect=function(t){this._rect=t},e.prototype.getBoundingRect=function(){var t=this.style;if(!this._rect){var e=t.text;null!=e?e+="":e="";var n=(0,o.NO)(e,t.font,t.textAlign,t.textBaseline);if(n.x+=t.x||0,n.y+=t.y||0,this.hasStroke()){var i=t.lineWidth;n.x-=i/2,n.y-=i/2,n.width+=i,n.height+=i}this._rect=n}return this._rect},e.initDefaultProps=void(e.prototype.dirtyRectTolerance=10),e}(r.Ay);c.prototype.type="tspan";const u=c},1251:(t,e,n)=>{"use strict";n.d(e,{Ay:()=>I,I5:()=>_,XE:()=>b});var i=n(528),r=n(8559),o=n(3554),a=n(7845),s=n(4611),l=n(5975),h=n(7551),c=n(5383),u=n(7780),d=n(9142),p={fill:"#000"},f={style:(0,a.defaults)({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},u.sW.style)},g=function(t){function e(e){var n=t.call(this)||this;return n.type="text",n._children=[],n._defaultStyle=p,n.attr(e),n}return(0,i.C6)(e,t),e.prototype.childrenRef=function(){return this._children},e.prototype.update=function(){t.prototype.update.call(this),this.styleChanged()&&this._updateSubTexts();for(var e=0;e<this._children.length;e++){var n=this._children[e];n.zlevel=this.zlevel,n.z=this.z,n.z2=this.z2,n.culling=this.culling,n.cursor=this.cursor,n.invisible=this.invisible}},e.prototype.updateTransform=function(){var e=this.innerTransformable;e?(e.updateTransform(),e.transform&&(this.transform=e.transform)):t.prototype.updateTransform.call(this)},e.prototype.getLocalTransform=function(e){var n=this.innerTransformable;return n?n.getLocalTransform(e):t.prototype.getLocalTransform.call(this,e)},e.prototype.getComputedTransform=function(){return this.__hostTarget&&(this.__hostTarget.getComputedTransform(),this.__hostTarget.updateInnerText(!0)),t.prototype.getComputedTransform.call(this)},e.prototype._updateSubTexts=function(){var t;this._childCursor=0,w(t=this.style),(0,a.each)(t.rich,w),this.style.rich?this._updateRichTexts():this._updatePlainTexts(),this._children.length=this._childCursor,this.styleUpdated()},e.prototype.addSelfToZr=function(e){t.prototype.addSelfToZr.call(this,e);for(var n=0;n<this._children.length;n++)this._children[n].__zr=e},e.prototype.removeSelfFromZr=function(e){t.prototype.removeSelfFromZr.call(this,e);for(var n=0;n<this._children.length;n++)this._children[n].__zr=null},e.prototype.getBoundingRect=function(){if(this.styleChanged()&&this._updateSubTexts(),!this._rect){for(var t=new c.A(0,0,0,0),e=this._children,n=[],i=null,r=0;r<e.length;r++){var o=e[r],a=o.getBoundingRect(),s=o.getLocalTransform(n);s?(t.copy(a),t.applyTransform(s),(i=i||t.clone()).union(t)):(i=i||a.clone()).union(a)}this._rect=i||t}return this._rect},e.prototype.setDefaultTextStyle=function(t){this._defaultStyle=t||p},e.prototype.setTextContent=function(t){0},e.prototype._mergeStyle=function(t,e){if(!e)return t;var n=e.rich,i=t.rich||n&&{};return(0,a.extend)(t,e),n&&i?(this._mergeRich(i,n),t.rich=i):i&&(t.rich=i),t},e.prototype._mergeRich=function(t,e){for(var n=(0,a.keys)(e),i=0;i<n.length;i++){var r=n[i];t[r]=t[r]||{},(0,a.extend)(t[r],e[r])}},e.prototype.getAnimationStyleProps=function(){return f},e.prototype._getOrCreateChild=function(t){var e=this._children[this._childCursor];return e&&e instanceof t||(e=new t),this._children[this._childCursor++]=e,e.__zr=this.__zr,e.parent=this,e},e.prototype._updatePlainTexts=function(){var t=this.style,e=t.font||d.OH,n=t.padding,i=A(t),a=(0,r.j_)(i,t),l=C(t),h=!!t.backgroundColor,u=a.outerHeight,p=a.outerWidth,f=a.contentWidth,g=a.lines,m=a.lineHeight,v=this._defaultStyle,y=t.x||0,_=t.y||0,b=t.align||v.align||"left",w=t.verticalAlign||v.verticalAlign||"top",I=y,E=(0,s.sZ)(_,a.contentHeight,w);if(l||n){var k=(0,s.ll)(y,p,b),L=(0,s.sZ)(_,u,w);l&&this._renderBackground(t,t,k,L,p,u)}E+=m/2,n&&(I=M(y,b,n),"top"===w?E+=n[0]:"bottom"===w&&(E-=n[2]));for(var D=0,P=!1,R=(T("fill"in t?t.fill:(P=!0,v.fill))),O=(S("stroke"in t?t.stroke:h||v.autoStroke&&!P?null:(D=2,v.stroke))),N=t.textShadowBlur>0,F=null!=t.width&&("truncate"===t.overflow||"break"===t.overflow||"breakAll"===t.overflow),B=a.calculatedLineHeight,z=0;z<g.length;z++){var G=this._getOrCreateChild(o.A),V=G.createStyle();G.useStyle(V),V.text=g[z],V.x=I,V.y=E,b&&(V.textAlign=b),V.textBaseline="middle",V.opacity=t.opacity,V.strokeFirst=!0,N&&(V.shadowBlur=t.textShadowBlur||0,V.shadowColor=t.textShadowColor||"transparent",V.shadowOffsetX=t.textShadowOffsetX||0,V.shadowOffsetY=t.textShadowOffsetY||0),V.stroke=O,V.fill=R,O&&(V.lineWidth=t.lineWidth||D,V.lineDash=t.lineDash,V.lineDashOffset=t.lineDashOffset||0),V.font=e,x(V,t),E+=m,F&&G.setBoundingRect(new c.A((0,s.ll)(V.x,t.width,V.textAlign),(0,s.sZ)(V.y,B,V.textBaseline),f,B))}},e.prototype._updateRichTexts=function(){var t=this.style,e=A(t),n=(0,r.FQ)(e,t),i=n.width,o=n.outerWidth,a=n.outerHeight,l=t.padding,h=t.x||0,c=t.y||0,u=this._defaultStyle,d=t.align||u.align,p=t.verticalAlign||u.verticalAlign,f=(0,s.ll)(h,o,d),g=(0,s.sZ)(c,a,p),m=f,v=g;l&&(m+=l[3],v+=l[0]);var y=m+i;C(t)&&this._renderBackground(t,t,f,g,o,a);for(var _=!!t.backgroundColor,x=0;x<n.lines.length;x++){for(var b=n.lines[x],w=b.tokens,S=w.length,T=b.lineHeight,M=b.width,I=0,E=m,k=y,L=S-1,D=void 0;I<S&&(!(D=w[I]).align||"left"===D.align);)this._placeToken(D,t,T,v,E,"left",_),M-=D.width,E+=D.width,I++;for(;L>=0&&"right"===(D=w[L]).align;)this._placeToken(D,t,T,v,k,"right",_),M-=D.width,k-=D.width,L--;for(E+=(i-(E-m)-(y-k)-M)/2;I<=L;)D=w[I],this._placeToken(D,t,T,v,E+D.width/2,"center",_),E+=D.width,I++;v+=T}},e.prototype._placeToken=function(t,e,n,i,r,l,h){var u=e.rich[t.styleName]||{};u.text=t.text;var p=t.verticalAlign,f=i+n/2;"top"===p?f=i+t.height/2:"bottom"===p&&(f=i+n-t.height/2),!t.isLineHolder&&C(u)&&this._renderBackground(u,e,"right"===l?r-t.width:"center"===l?r-t.width/2:r,f-t.height/2,t.width,t.height);var g=!!u.backgroundColor,m=t.textPadding;m&&(r=M(r,l,m),f-=t.height/2-m[0]-t.innerHeight/2);var v=this._getOrCreateChild(o.A),y=v.createStyle();v.useStyle(y);var _=this._defaultStyle,b=!1,w=0,A=T("fill"in u?u.fill:"fill"in e?e.fill:(b=!0,_.fill)),I=S("stroke"in u?u.stroke:"stroke"in e?e.stroke:g||h||_.autoStroke&&!b?null:(w=2,_.stroke)),E=u.textShadowBlur>0||e.textShadowBlur>0;y.text=t.text,y.x=r,y.y=f,E&&(y.shadowBlur=u.textShadowBlur||e.textShadowBlur||0,y.shadowColor=u.textShadowColor||e.textShadowColor||"transparent",y.shadowOffsetX=u.textShadowOffsetX||e.textShadowOffsetX||0,y.shadowOffsetY=u.textShadowOffsetY||e.textShadowOffsetY||0),y.textAlign=l,y.textBaseline="middle",y.font=t.font||d.OH,y.opacity=(0,a.retrieve3)(u.opacity,e.opacity,1),x(y,u),I&&(y.lineWidth=(0,a.retrieve3)(u.lineWidth,e.lineWidth,w),y.lineDash=(0,a.retrieve2)(u.lineDash,e.lineDash),y.lineDashOffset=e.lineDashOffset||0,y.stroke=I),A&&(y.fill=A);var k=t.contentWidth,L=t.contentHeight;v.setBoundingRect(new c.A((0,s.ll)(y.x,k,y.textAlign),(0,s.sZ)(y.y,L,y.textBaseline),k,L))},e.prototype._renderBackground=function(t,e,n,i,r,o){var s,c,u,d=t.backgroundColor,p=t.borderWidth,f=t.borderColor,g=d&&d.image,m=d&&!g,v=t.borderRadius,y=this;if(m||t.lineHeight||p&&f){(s=this._getOrCreateChild(h.A)).useStyle(s.createStyle()),s.style.fill=null;var _=s.shape;_.x=n,_.y=i,_.width=r,_.height=o,_.r=v,s.dirtyShape()}if(m)(u=s.style).fill=d||null,u.fillOpacity=(0,a.retrieve2)(t.fillOpacity,1);else if(g){(c=this._getOrCreateChild(l.Ay)).onload=function(){y.dirtyStyle()};var x=c.style;x.image=d.image,x.x=n,x.y=i,x.width=r,x.height=o}p&&f&&((u=s.style).lineWidth=p,u.stroke=f,u.strokeOpacity=(0,a.retrieve2)(t.strokeOpacity,1),u.lineDash=t.borderDash,u.lineDashOffset=t.borderDashOffset||0,s.strokeContainThreshold=0,s.hasFill()&&s.hasStroke()&&(u.strokeFirst=!0,u.lineWidth*=2));var b=(s||c).style;b.shadowBlur=t.shadowBlur||0,b.shadowColor=t.shadowColor||"transparent",b.shadowOffsetX=t.shadowOffsetX||0,b.shadowOffsetY=t.shadowOffsetY||0,b.opacity=(0,a.retrieve3)(t.opacity,e.opacity,1)},e.makeFont=function(t){var e="";return b(t)&&(e=[t.fontStyle,t.fontWeight,_(t.fontSize),t.fontFamily||"sans-serif"].join(" ")),e&&(0,a.trim)(e)||t.textFont||t.font},e}(u.Ay),m={left:!0,right:1,center:1},v={top:1,bottom:1,middle:1},y=["fontStyle","fontWeight","fontSize","fontFamily"];function _(t){return"string"!=typeof t||-1===t.indexOf("px")&&-1===t.indexOf("rem")&&-1===t.indexOf("em")?isNaN(+t)?d.gI+"px":t+"px":t}function x(t,e){for(var n=0;n<y.length;n++){var i=y[n],r=e[i];null!=r&&(t[i]=r)}}function b(t){return null!=t.fontSize||t.fontFamily||t.fontWeight}function w(t){if(t){t.font=g.makeFont(t);var e=t.align;"middle"===e&&(e="center"),t.align=null==e||m[e]?e:"left";var n=t.verticalAlign;"center"===n&&(n="middle"),t.verticalAlign=null==n||v[n]?n:"top",t.padding&&(t.padding=(0,a.normalizeCssArray)(t.padding))}}function S(t,e){return null==t||e<=0||"transparent"===t||"none"===t?null:t.image||t.colorStops?"#000":t}function T(t){return null==t||"none"===t?null:t.image||t.colorStops?"#000":t}function M(t,e,n){return"right"===e?t-n[1]:"center"===e?t+n[3]/2-n[1]/2:t+n[3]}function A(t){var e=t.text;return null!=e&&(e+=""),e}function C(t){return!!(t.backgroundColor||t.lineHeight||t.borderWidth&&t.borderColor)}const I=g},5667:(t,e,n)=>{"use strict";n.d(e,{Dl:()=>o,M:()=>i,pO:()=>r});var i=1,r=2,o=4},3822:(t,e,n)=>{"use strict";n.d(e,{OD:()=>s,SR:()=>a,xA:()=>h});var i=n(6552),r=n(9142),o=new i.Ay(50);function a(t){if("string"==typeof t){var e=o.get(t);return e&&e.image}return t}function s(t,e,n,i,a){if(t){if("string"==typeof t){if(e&&e.__zrImageSrc===t||!n)return e;var s=o.get(t),c={hostEl:n,cb:i,cbPayload:a};return s?!h(e=s.image)&&s.pending.push(c):((e=r.yh.loadImage(t,l,l)).__zrImageSrc=t,o.put(t,e.__cachedImgObj={image:e,pending:[c]})),e}return t}return e}function l(){var t=this.__cachedImgObj;this.onload=this.onerror=this.__cachedImgObj=null;for(var e=0;e<t.pending.length;e++){var n=t.pending[e],i=n.cb;i&&i(this,n.cbPayload),n.hostEl.dirty()}t.pending.length=0}function h(t){return t&&t.width&&t.height}},8559:(t,e,n)=>{"use strict";n.d(e,{EJ:()=>s,FQ:()=>g,j_:()=>u});var i=n(3822),r=n(7845),o=n(4611),a=/\{([a-zA-Z0-9_]+)\|([^}]*)\}/g;function s(t,e,n,i,r){if(!e)return"";var o=(t+"").split("\n");r=l(e,n,i,r);for(var a=0,s=o.length;a<s;a++)o[a]=h(o[a],r);return o.join("\n")}function l(t,e,n,i){i=i||{};var a=(0,r.extend)({},i);a.font=e,n=(0,r.retrieve2)(n,"..."),a.maxIterations=(0,r.retrieve2)(i.maxIterations,2);var s=a.minChar=(0,r.retrieve2)(i.minChar,0);a.cnCharWidth=(0,o.RG)("\u56fd",e);var l=a.ascCharWidth=(0,o.RG)("a",e);a.placeholder=(0,r.retrieve2)(i.placeholder,"");for(var h=t=Math.max(0,t-1),c=0;c<s&&h>=l;c++)h-=l;var u=(0,o.RG)(n,e);return u>h&&(n="",u=0),h=t-u,a.ellipsis=n,a.ellipsisWidth=u,a.contentWidth=h,a.containerWidth=t,a}function h(t,e){var n=e.containerWidth,i=e.font,r=e.contentWidth;if(!n)return"";var a=(0,o.RG)(t,i);if(a<=n)return t;for(var s=0;;s++){if(a<=r||s>=e.maxIterations){t+=e.ellipsis;break}var l=0===s?c(t,r,e.ascCharWidth,e.cnCharWidth):a>0?Math.floor(t.length*r/a):0;t=t.substr(0,l),a=(0,o.RG)(t,i)}return""===t&&(t=e.placeholder),t}function c(t,e,n,i){for(var r=0,o=0,a=t.length;o<a&&r<e;o++){var s=t.charCodeAt(o);r+=0<=s&&s<=127?n:i}return o}function u(t,e){null!=t&&(t+="");var n,i=e.overflow,a=e.padding,s=e.font,c="truncate"===i,u=(0,o.ks)(s),d=(0,r.retrieve2)(e.lineHeight,u),p=!!e.backgroundColor,f="truncate"===e.lineOverflow,g=e.width,m=(n=null==g||"break"!==i&&"breakAll"!==i?t?t.split("\n"):[]:t?_(t,e.font,g,"breakAll"===i,0).lines:[]).length*d,v=(0,r.retrieve2)(e.height,m);if(m>v&&f){var y=Math.floor(v/d);n=n.slice(0,y)}if(t&&c&&null!=g)for(var x=l(g,s,e.ellipsis,{minChar:e.truncateMinChar,placeholder:e.placeholder}),b=0;b<n.length;b++)n[b]=h(n[b],x);var w=v,S=0;for(b=0;b<n.length;b++)S=Math.max((0,o.RG)(n[b],s),S);null==g&&(g=S);var T=S;return a&&(w+=a[0]+a[2],T+=a[1]+a[3],g+=a[1]+a[3]),p&&(T=g),{lines:n,height:v,outerWidth:T,outerHeight:w,lineHeight:d,calculatedLineHeight:u,contentWidth:S,contentHeight:m,width:g}}var d=function(){},p=function(t){this.tokens=[],t&&(this.tokens=t)},f=function(){this.width=0,this.height=0,this.contentWidth=0,this.contentHeight=0,this.outerWidth=0,this.outerHeight=0,this.lines=[]};function g(t,e){var n=new f;if(null!=t&&(t+=""),!t)return n;for(var l,h=e.width,c=e.height,u=e.overflow,d="break"!==u&&"breakAll"!==u||null==h?null:{width:h,accumWidth:0,breakAll:"breakAll"===u},p=a.lastIndex=0;null!=(l=a.exec(t));){var g=l.index;g>p&&m(n,t.substring(p,g),e,d),m(n,l[2],e,d,l[1]),p=a.lastIndex}p<t.length&&m(n,t.substring(p,t.length),e,d);var v=[],y=0,_=0,x=e.padding,b="truncate"===u,w="truncate"===e.lineOverflow;function S(t,e,n){t.width=e,t.lineHeight=n,y+=n,_=Math.max(_,e)}t:for(var T=0;T<n.lines.length;T++){for(var M=n.lines[T],A=0,C=0,I=0;I<M.tokens.length;I++){var E=(z=M.tokens[I]).styleName&&e.rich[z.styleName]||{},k=z.textPadding=E.padding,L=k?k[1]+k[3]:0,D=z.font=E.font||e.font;z.contentHeight=(0,o.ks)(D);var P=(0,r.retrieve2)(E.height,z.contentHeight);if(z.innerHeight=P,k&&(P+=k[0]+k[2]),z.height=P,z.lineHeight=(0,r.retrieve3)(E.lineHeight,e.lineHeight,P),z.align=E&&E.align||e.align,z.verticalAlign=E&&E.verticalAlign||"middle",w&&null!=c&&y+z.lineHeight>c){I>0?(M.tokens=M.tokens.slice(0,I),S(M,C,A),n.lines=n.lines.slice(0,T+1)):n.lines=n.lines.slice(0,T);break t}var R=E.width,O=null==R||"auto"===R;if("string"==typeof R&&"%"===R.charAt(R.length-1))z.percentWidth=R,v.push(z),z.contentWidth=(0,o.RG)(z.text,D);else{if(O){var N=E.backgroundColor,F=N&&N.image;F&&(F=i.SR(F),i.xA(F)&&(z.width=Math.max(z.width,F.width*P/F.height)))}var B=b&&null!=h?h-C:null;null!=B&&B<z.width?!O||B<L?(z.text="",z.width=z.contentWidth=0):(z.text=s(z.text,B-L,D,e.ellipsis,{minChar:e.truncateMinChar}),z.width=z.contentWidth=(0,o.RG)(z.text,D)):z.contentWidth=(0,o.RG)(z.text,D)}z.width+=L,C+=z.width,E&&(A=Math.max(A,z.lineHeight))}S(M,C,A)}n.outerWidth=n.width=(0,r.retrieve2)(h,_),n.outerHeight=n.height=(0,r.retrieve2)(c,y),n.contentHeight=y,n.contentWidth=_,x&&(n.outerWidth+=x[1]+x[3],n.outerHeight+=x[0]+x[2]);for(T=0;T<v.length;T++){var z,G=(z=v[T]).percentWidth;z.width=parseInt(G,10)/100*n.width}return n}function m(t,e,n,i,r){var a,s,l=""===e,h=r&&n.rich[r]||{},c=t.lines,u=h.font||n.font,f=!1;if(i){var g=h.padding,m=g?g[1]+g[3]:0;if(null!=h.width&&"auto"!==h.width){var v=(0,o.lo)(h.width,i.width)+m;c.length>0&&v+i.accumWidth>i.width&&(a=e.split("\n"),f=!0),i.accumWidth=v}else{var y=_(e,u,i.width,i.breakAll,i.accumWidth);i.accumWidth=y.accumWidth+m,s=y.linesWidths,a=y.lines}}else a=e.split("\n");for(var x=0;x<a.length;x++){var b=a[x],w=new d;if(w.styleName=r,w.text=b,w.isLineHolder=!b&&!l,"number"==typeof h.width?w.width=h.width:w.width=s?s[x]:(0,o.RG)(b,u),x||f)c.push(new p([w]));else{var S=(c[c.length-1]||(c[0]=new p)).tokens,T=S.length;1===T&&S[0].isLineHolder?S[0]=w:(b||!T||l)&&S.push(w)}}}var v=(0,r.reduce)(",&?/;] ".split(""),(function(t,e){return t[e]=!0,t}),{});function y(t){return!function(t){var e=t.charCodeAt(0);return e>=32&&e<=591||e>=880&&e<=4351||e>=4608&&e<=5119||e>=7680&&e<=8303}(t)||!!v[t]}function _(t,e,n,i,r){for(var a=[],s=[],l="",h="",c=0,u=0,d=0;d<t.length;d++){var p=t.charAt(d);if("\n"!==p){var f=(0,o.RG)(p,e),g=!i&&!y(p);(a.length?u+f>n:r+u+f>n)?u?(l||h)&&(g?(l||(l=h,h="",u=c=0),a.push(l),s.push(u-c),h+=p,l="",u=c+=f):(h&&(l+=h,h="",c=0),a.push(l),s.push(u),l=p,u=f)):g?(a.push(h),s.push(c),h=p,c=f):(a.push(p),s.push(f)):(u+=f,g?(h+=p,c+=f):(h&&(l+=h,h="",c=0),l+=p))}else h&&(l+=h,u+=c),a.push(l),s.push(u),l="",h="",c=0,u=0}return a.length||l||(l=t,h="",c=0),h&&(l+=h),l&&(a.push(l),s.push(u)),1===a.length&&(u+=r),{accumWidth:u,lines:a,linesWidths:s}}},2906:(t,e,n)=>{"use strict";n.d(e,{U:()=>r});var i=n(4070);function r(t,e,n){var r=e.smooth,o=e.points;if(o&&o.length>=2){if(r){var a=function(t,e,n,r){var o,a,s,l,h=[],c=[],u=[],d=[];if(r){s=[1/0,1/0],l=[-1/0,-1/0];for(var p=0,f=t.length;p<f;p++)(0,i.min)(s,s,t[p]),(0,i.max)(l,l,t[p]);(0,i.min)(s,s,r[0]),(0,i.max)(l,l,r[1])}for(p=0,f=t.length;p<f;p++){var g=t[p];if(n)o=t[p?p-1:f-1],a=t[(p+1)%f];else{if(0===p||p===f-1){h.push((0,i.clone)(t[p]));continue}o=t[p-1],a=t[p+1]}(0,i.sub)(c,a,o),(0,i.scale)(c,c,e);var m=(0,i.distance)(g,o),v=(0,i.distance)(g,a),y=m+v;0!==y&&(m/=y,v/=y),(0,i.scale)(u,c,-m),(0,i.scale)(d,c,v);var _=(0,i.add)([],g,u),x=(0,i.add)([],g,d);r&&((0,i.max)(_,_,s),(0,i.min)(_,_,l),(0,i.max)(x,x,s),(0,i.min)(x,x,l)),h.push(_),h.push(x)}return n&&h.push(h.shift()),h}(o,r,n,e.smoothConstraint);t.moveTo(o[0][0],o[0][1]);for(var s=o.length,l=0;l<(n?s:s-1);l++){var h=a[2*l],c=a[2*l+1],u=o[(l+1)%s];t.bezierCurveTo(h[0],h[1],c[0],c[1],u[0],u[1])}}else{t.moveTo(o[0][0],o[0][1]);l=1;for(var d=o.length;l<d;l++)t.lineTo(o[l][0],o[l][1])}n&&t.closePath()}}},7278:(t,e,n)=>{"use strict";n.d(e,{M7:()=>a,Op:()=>o,eB:()=>r});var i=Math.round;function r(t,e,n){if(e){var r=e.x1,o=e.x2,s=e.y1,l=e.y2;t.x1=r,t.x2=o,t.y1=s,t.y2=l;var h=n&&n.lineWidth;return h?(i(2*r)===i(2*o)&&(t.x1=t.x2=a(r,h,!0)),i(2*s)===i(2*l)&&(t.y1=t.y2=a(s,h,!0)),t):t}}function o(t,e,n){if(e){var i=e.x,r=e.y,o=e.width,s=e.height;t.x=i,t.y=r,t.width=o,t.height=s;var l=n&&n.lineWidth;return l?(t.x=a(i,l,!0),t.y=a(r,l,!0),t.width=Math.max(a(i+o,l,!1)-t.x,0===o?0:1),t.height=Math.max(a(r+s,l,!1)-t.y,0===s?0:1),t):t}}function a(t,e,n){if(!e)return t;var r=i(2*t);return(r+i(e))%2==0?r/2:(r+(n?1:-1))/2}},4924:(t,e,n)=>{"use strict";n.d(e,{A:()=>s});var i=n(528),r=n(1885),o=function(){this.cx=0,this.cy=0,this.r=0,this.startAngle=0,this.endAngle=2*Math.PI,this.clockwise=!0},a=function(t){function e(e){return t.call(this,e)||this}return(0,i.C6)(e,t),e.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},e.prototype.getDefaultShape=function(){return new o},e.prototype.buildPath=function(t,e){var n=e.cx,i=e.cy,r=Math.max(e.r,0),o=e.startAngle,a=e.endAngle,s=e.clockwise,l=Math.cos(o),h=Math.sin(o);t.moveTo(l*r+n,h*r+i),t.arc(n,i,r,o,a,!s)},e}(r.Ay);a.prototype.type="arc";const s=a},8526:(t,e,n)=>{"use strict";n.d(e,{A:()=>u});var i=n(528),r=n(1885),o=n(4070),a=n(5162),s=[],l=function(){this.x1=0,this.y1=0,this.x2=0,this.y2=0,this.cpx1=0,this.cpy1=0,this.percent=1};function h(t,e,n){var i=t.cpx2,r=t.cpy2;return null!=i||null!=r?[(n?a.rD:a.Yb)(t.x1,t.cpx1,t.cpx2,t.x2,e),(n?a.rD:a.Yb)(t.y1,t.cpy1,t.cpy2,t.y2,e)]:[(n?a.z7:a.k3)(t.x1,t.cpx1,t.x2,e),(n?a.z7:a.k3)(t.y1,t.cpy1,t.y2,e)]}var c=function(t){function e(e){return t.call(this,e)||this}return(0,i.C6)(e,t),e.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},e.prototype.getDefaultShape=function(){return new l},e.prototype.buildPath=function(t,e){var n=e.x1,i=e.y1,r=e.x2,o=e.y2,l=e.cpx1,h=e.cpy1,c=e.cpx2,u=e.cpy2,d=e.percent;0!==d&&(t.moveTo(n,i),null==c||null==u?(d<1&&((0,a.kx)(n,l,r,d,s),l=s[1],r=s[2],(0,a.kx)(i,h,o,d,s),h=s[1],o=s[2]),t.quadraticCurveTo(l,h,r,o)):(d<1&&((0,a.YT)(n,l,c,r,d,s),l=s[1],c=s[2],r=s[3],(0,a.YT)(i,h,u,o,d,s),h=s[1],u=s[2],o=s[3]),t.bezierCurveTo(l,h,c,u,r,o)))},e.prototype.pointAt=function(t){return h(this.shape,t,!1)},e.prototype.tangentAt=function(t){var e=h(this.shape,t,!0);return o.normalize(e,e)},e}(r.Ay);c.prototype.type="bezier-curve";const u=c},1262:(t,e,n)=>{"use strict";n.d(e,{A:()=>s});var i=n(528),r=n(1885),o=function(){this.cx=0,this.cy=0,this.r=0},a=function(t){function e(e){return t.call(this,e)||this}return(0,i.C6)(e,t),e.prototype.getDefaultShape=function(){return new o},e.prototype.buildPath=function(t,e){t.moveTo(e.cx+e.r,e.cy),t.arc(e.cx,e.cy,e.r,0,2*Math.PI)},e}(r.Ay);a.prototype.type="circle";const s=a},1478:(t,e,n)=>{"use strict";n.d(e,{A:()=>s});var i=n(528),r=n(1885),o=function(){this.cx=0,this.cy=0,this.rx=0,this.ry=0},a=function(t){function e(e){return t.call(this,e)||this}return(0,i.C6)(e,t),e.prototype.getDefaultShape=function(){return new o},e.prototype.buildPath=function(t,e){var n=.5522848,i=e.cx,r=e.cy,o=e.rx,a=e.ry,s=o*n,l=a*n;t.moveTo(i-o,r),t.bezierCurveTo(i-o,r-l,i-s,r-a,i,r-a),t.bezierCurveTo(i+s,r-a,i+o,r-l,i+o,r),t.bezierCurveTo(i+o,r+l,i+s,r+a,i,r+a),t.bezierCurveTo(i-s,r+a,i-o,r+l,i-o,r),t.closePath()},e}(r.Ay);a.prototype.type="ellipse";const s=a},5840:(t,e,n)=>{"use strict";n.d(e,{A:()=>h});var i=n(528),r=n(1885),o=n(7278),a={},s=function(){this.x1=0,this.y1=0,this.x2=0,this.y2=0,this.percent=1},l=function(t){function e(e){return t.call(this,e)||this}return(0,i.C6)(e,t),e.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},e.prototype.getDefaultShape=function(){return new s},e.prototype.buildPath=function(t,e){var n,i,r,s;if(this.subPixelOptimize){var l=(0,o.eB)(a,e,this.style);n=l.x1,i=l.y1,r=l.x2,s=l.y2}else n=e.x1,i=e.y1,r=e.x2,s=e.y2;var h=e.percent;0!==h&&(t.moveTo(n,i),h<1&&(r=n*(1-h)+r*h,s=i*(1-h)+s*h),t.lineTo(r,s))},e.prototype.pointAt=function(t){var e=this.shape;return[e.x1*(1-t)+e.x2*t,e.y1*(1-t)+e.y2*t]},e}(r.Ay);l.prototype.type="line";const h=l},4942:(t,e,n)=>{"use strict";n.d(e,{A:()=>l});var i=n(528),r=n(1885),o=n(2906),a=function(){this.points=null,this.smooth=0,this.smoothConstraint=null},s=function(t){function e(e){return t.call(this,e)||this}return(0,i.C6)(e,t),e.prototype.getDefaultShape=function(){return new a},e.prototype.buildPath=function(t,e){o.U(t,e,!0)},e}(r.Ay);s.prototype.type="polygon";const l=s},1106:(t,e,n)=>{"use strict";n.d(e,{A:()=>l});var i=n(528),r=n(1885),o=n(2906),a=function(){this.points=null,this.percent=1,this.smooth=0,this.smoothConstraint=null},s=function(t){function e(e){return t.call(this,e)||this}return(0,i.C6)(e,t),e.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},e.prototype.getDefaultShape=function(){return new a},e.prototype.buildPath=function(t,e){o.U(t,e,!1)},e}(r.Ay);s.prototype.type="polyline";const l=s},7551:(t,e,n)=>{"use strict";n.d(e,{A:()=>h});var i=n(528),r=n(1885);var o=n(7278),a=function(){this.x=0,this.y=0,this.width=0,this.height=0},s={},l=function(t){function e(e){return t.call(this,e)||this}return(0,i.C6)(e,t),e.prototype.getDefaultShape=function(){return new a},e.prototype.buildPath=function(t,e){var n,i,r,a;if(this.subPixelOptimize){var l=(0,o.Op)(s,e,this.style);n=l.x,i=l.y,r=l.width,a=l.height,l.r=e.r,e=l}else n=e.x,i=e.y,r=e.width,a=e.height;e.r?function(t,e){var n,i,r,o,a,s=e.x,l=e.y,h=e.width,c=e.height,u=e.r;h<0&&(s+=h,h=-h),c<0&&(l+=c,c=-c),"number"==typeof u?n=i=r=o=u:u instanceof Array?1===u.length?n=i=r=o=u[0]:2===u.length?(n=r=u[0],i=o=u[1]):3===u.length?(n=u[0],i=o=u[1],r=u[2]):(n=u[0],i=u[1],r=u[2],o=u[3]):n=i=r=o=0,n+i>h&&(n*=h/(a=n+i),i*=h/a),r+o>h&&(r*=h/(a=r+o),o*=h/a),i+r>c&&(i*=c/(a=i+r),r*=c/a),n+o>c&&(n*=c/(a=n+o),o*=c/a),t.moveTo(s+n,l),t.lineTo(s+h-i,l),0!==i&&t.arc(s+h-i,l+i,i,-Math.PI/2,0),t.lineTo(s+h,l+c-r),0!==r&&t.arc(s+h-r,l+c-r,r,0,Math.PI/2),t.lineTo(s+o,l+c),0!==o&&t.arc(s+o,l+c-o,o,Math.PI/2,Math.PI),t.lineTo(s,l+n),0!==n&&t.arc(s+n,l+n,n,Math.PI,1.5*Math.PI)}(t,e):t.rect(n,i,r,a)},e.prototype.isZeroArea=function(){return!this.shape.width||!this.shape.height},e}(r.Ay);l.prototype.type="rect";const h=l},9804:(t,e,n)=>{"use strict";n.d(e,{A:()=>s});var i=n(528),r=n(1885),o=function(){this.cx=0,this.cy=0,this.r=0,this.r0=0},a=function(t){function e(e){return t.call(this,e)||this}return(0,i.C6)(e,t),e.prototype.getDefaultShape=function(){return new o},e.prototype.buildPath=function(t,e){var n=e.cx,i=e.cy,r=2*Math.PI;t.moveTo(n+e.r,i),t.arc(n,i,e.r,0,r,!1),t.moveTo(n+e.r0,i),t.arc(n,i,e.r0,0,r,!0)},e}(r.Ay);a.prototype.type="ring";const s=a},7532:(t,e,n)=>{"use strict";n.d(e,{A:()=>b});var i=n(528),r=n(1885),o=n(7845),a=Math.PI,s=2*a,l=Math.sin,h=Math.cos,c=Math.acos,u=Math.atan2,d=Math.abs,p=Math.sqrt,f=Math.max,g=Math.min,m=1e-4;function v(t,e,n,i,r,o,a){var s=t-n,l=e-i,h=(a?o:-o)/p(s*s+l*l),c=h*l,u=-h*s,d=t+c,g=e+u,m=n+c,v=i+u,y=(d+m)/2,_=(g+v)/2,x=m-d,b=v-g,w=x*x+b*b,S=r-o,T=d*v-m*g,M=(b<0?-1:1)*p(f(0,S*S*w-T*T)),A=(T*b-x*M)/w,C=(-T*x-b*M)/w,I=(T*b+x*M)/w,E=(-T*x+b*M)/w,k=A-y,L=C-_,D=I-y,P=E-_;return k*k+L*L>D*D+P*P&&(A=I,C=E),{cx:A,cy:C,x0:-c,y0:-u,x1:A*(r/S-1),y1:C*(r/S-1)}}function y(t,e){var n,i=f(e.r,0),r=f(e.r0||0,0),y=i>0;if(y||r>0){if(y||(i=r,r=0),r>i){var _=i;i=r,r=_}var x=e.startAngle,b=e.endAngle;if(!isNaN(x)&&!isNaN(b)){var w=e.cx,S=e.cy,T=!!e.clockwise,M=d(b-x),A=M>s&&M%s;if(A>m&&(M=A),i>m)if(M>s-m)t.moveTo(w+i*h(x),S+i*l(x)),t.arc(w,S,i,x,b,!T),r>m&&(t.moveTo(w+r*h(b),S+r*l(b)),t.arc(w,S,r,b,x,T));else{var C=void 0,I=void 0,E=void 0,k=void 0,L=void 0,D=void 0,P=void 0,R=void 0,O=void 0,N=void 0,F=void 0,B=void 0,z=void 0,G=void 0,V=void 0,j=void 0,H=i*h(x),W=i*l(x),U=r*h(b),q=r*l(b),X=M>m;if(X){var Y=e.cornerRadius;Y&&(C=(n=function(t){var e;if((0,o.isArray)(t)){var n=t.length;if(!n)return t;e=1===n?[t[0],t[0],0,0]:2===n?[t[0],t[0],t[1],t[1]]:3===n?t.concat(t[2]):t}else e=[t,t,t,t];return e}(Y))[0],I=n[1],E=n[2],k=n[3]);var Z=d(i-r)/2;if(L=g(Z,E),D=g(Z,k),P=g(Z,C),R=g(Z,I),F=O=f(L,D),B=N=f(P,R),(O>m||N>m)&&(z=i*h(b),G=i*l(b),V=r*h(x),j=r*l(x),M<a)){var $=function(t,e,n,i,r,o,a,s){var l=n-t,h=i-e,c=a-r,u=s-o,d=u*l-c*h;if(!(d*d<m))return[t+(d=(c*(e-o)-u*(t-r))/d)*l,e+d*h]}(H,W,V,j,z,G,U,q);if($){var K=H-$[0],J=W-$[1],Q=z-$[0],tt=G-$[1],et=1/l(c((K*Q+J*tt)/(p(K*K+J*J)*p(Q*Q+tt*tt)))/2),nt=p($[0]*$[0]+$[1]*$[1]);F=g(O,(i-nt)/(et+1)),B=g(N,(r-nt)/(et-1))}}}if(X)if(F>m){var it=g(E,F),rt=g(k,F),ot=v(V,j,H,W,i,it,T),at=v(z,G,U,q,i,rt,T);t.moveTo(w+ot.cx+ot.x0,S+ot.cy+ot.y0),F<O&&it===rt?t.arc(w+ot.cx,S+ot.cy,F,u(ot.y0,ot.x0),u(at.y0,at.x0),!T):(it>0&&t.arc(w+ot.cx,S+ot.cy,it,u(ot.y0,ot.x0),u(ot.y1,ot.x1),!T),t.arc(w,S,i,u(ot.cy+ot.y1,ot.cx+ot.x1),u(at.cy+at.y1,at.cx+at.x1),!T),rt>0&&t.arc(w+at.cx,S+at.cy,rt,u(at.y1,at.x1),u(at.y0,at.x0),!T))}else t.moveTo(w+H,S+W),t.arc(w,S,i,x,b,!T);else t.moveTo(w+H,S+W);if(r>m&&X)if(B>m){it=g(C,B),ot=v(U,q,z,G,r,-(rt=g(I,B)),T),at=v(H,W,V,j,r,-it,T);t.lineTo(w+ot.cx+ot.x0,S+ot.cy+ot.y0),B<N&&it===rt?t.arc(w+ot.cx,S+ot.cy,B,u(ot.y0,ot.x0),u(at.y0,at.x0),!T):(rt>0&&t.arc(w+ot.cx,S+ot.cy,rt,u(ot.y0,ot.x0),u(ot.y1,ot.x1),!T),t.arc(w,S,r,u(ot.cy+ot.y1,ot.cx+ot.x1),u(at.cy+at.y1,at.cx+at.x1),T),it>0&&t.arc(w+at.cx,S+at.cy,it,u(at.y1,at.x1),u(at.y0,at.x0),!T))}else t.lineTo(w+U,S+q),t.arc(w,S,r,b,x,T);else t.lineTo(w+U,S+q)}else t.moveTo(w,S);t.closePath()}}}var _=function(){this.cx=0,this.cy=0,this.r0=0,this.r=0,this.startAngle=0,this.endAngle=2*Math.PI,this.clockwise=!0,this.cornerRadius=0},x=function(t){function e(e){return t.call(this,e)||this}return(0,i.C6)(e,t),e.prototype.getDefaultShape=function(){return new _},e.prototype.buildPath=function(t,e){y(t,e)},e.prototype.isZeroArea=function(){return this.shape.startAngle===this.shape.endAngle||this.shape.r===this.shape.r0},e}(r.Ay);x.prototype.type="sector";const b=x},9934:(t,e,n)=>{"use strict";n.d(e,{$2:()=>s,Cv:()=>h,MD:()=>S,OH:()=>x,OS:()=>_,Pt:()=>y,WG:()=>M,XP:()=>u,Xu:()=>w,Z1:()=>T,bn:()=>b,dX:()=>g,eQ:()=>p,nV:()=>d,sL:()=>v,sZ:()=>f,si:()=>m});var i=n(7845),r=n(7219),o=n(4810),a=Math.round;function s(t){var e;if(t&&"transparent"!==t){if("string"==typeof t&&t.indexOf("rgba")>-1){var n=(0,r.parse)(t);n&&(t="rgb("+n[0]+","+n[1]+","+n[2]+")",e=n[3])}}else t="none";return{color:t,opacity:null==e?1:e}}var l=1e-4;function h(t){return t<l&&t>-l}function c(t){return a(1e3*t)/1e3}function u(t){return a(1e4*t)/1e4}function d(t){return"matrix("+c(t[0])+","+c(t[1])+","+c(t[2])+","+c(t[3])+","+u(t[4])+","+u(t[5])+")"}var p={left:"start",right:"end",center:"middle",middle:"middle"};function f(t,e,n){return"top"===n?t+=e/2:"bottom"===n&&(t-=e/2),t}function g(t){return t&&(t.shadowBlur||t.shadowOffsetX||t.shadowOffsetY)}function m(t){var e=t.style,n=t.getGlobalScale();return[e.shadowColor,(e.shadowBlur||0).toFixed(2),(e.shadowOffsetX||0).toFixed(2),(e.shadowOffsetY||0).toFixed(2),n[0],n[1]].join(",")}function v(t){return t&&!!t.image}function y(t){return v(t)||function(t){return t&&!!t.svgElement}(t)}function _(t){return"linear"===t.type}function x(t){return"radial"===t.type}function b(t){return t&&("linear"===t.type||"radial"===t.type)}function w(t){return"url(#"+t+")"}function S(t){var e=t.getGlobalScale(),n=Math.max(e[0],e[1]);return Math.max(Math.ceil(Math.log(n)/Math.log(10)),1)}function T(t){var e=t.x||0,n=t.y||0,r=(t.rotation||0)*i.RADIAN_TO_DEGREE,o=(0,i.retrieve2)(t.scaleX,1),s=(0,i.retrieve2)(t.scaleY,1),l=t.skewX||0,h=t.skewY||0,c=[];return(e||n)&&c.push("translate("+e+"px,"+n+"px)"),r&&c.push("rotate("+r+")"),1===o&&1===s||c.push("scale("+o+","+s+")"),(l||h)&&c.push("skew("+a(l*i.RADIAN_TO_DEGREE)+"deg, "+a(h*i.RADIAN_TO_DEGREE)+"deg)"),c.join(" ")}var M=o.A.hasGlobalWindow&&(0,i.isFunction)(window.btoa)?function(t){return window.btoa(unescape(encodeURIComponent(t)))}:"undefined"!=typeof Buffer?function(t){return Buffer.from(t).toString("base64")}:function(t){return null}},7219:(t,e,n)=>{"use strict";n.r(e),n.d(e,{fastLerp:()=>b,fastMapToColor:()=>w,lerp:()=>S,lift:()=>_,liftColor:()=>L,lum:()=>I,mapToColor:()=>T,modifyAlpha:()=>A,modifyHSL:()=>M,parse:()=>v,random:()=>E,stringify:()=>C,toHex:()=>x});var i=n(6552),r=n(7845),o={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 a(t){return(t=Math.round(t))<0?0:t>255?255:t}function s(t){return t<0?0:t>1?1:t}function l(t){var e=t;return e.length&&"%"===e.charAt(e.length-1)?a(parseFloat(e)/100*255):a(parseInt(e,10))}function h(t){var e=t;return e.length&&"%"===e.charAt(e.length-1)?s(parseFloat(e)/100):s(parseFloat(e))}function c(t,e,n){return n<0?n+=1:n>1&&(n-=1),6*n<1?t+(e-t)*n*6:2*n<1?e:3*n<2?t+(e-t)*(2/3-n)*6:t}function u(t,e,n){return t+(e-t)*n}function d(t,e,n,i,r){return t[0]=e,t[1]=n,t[2]=i,t[3]=r,t}function p(t,e){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3],t}var f=new i.Ay(20),g=null;function m(t,e){g&&p(g,e),g=f.put(t,g||e.slice())}function v(t,e){if(t){e=e||[];var n=f.get(t);if(n)return p(e,n);var i=(t+="").replace(/ /g,"").toLowerCase();if(i in o)return p(e,o[i]),m(t,e),e;var r,a=i.length;if("#"===i.charAt(0))return 4===a||5===a?(r=parseInt(i.slice(1,4),16))>=0&&r<=4095?(d(e,(3840&r)>>4|(3840&r)>>8,240&r|(240&r)>>4,15&r|(15&r)<<4,5===a?parseInt(i.slice(4),16)/15:1),m(t,e),e):void d(e,0,0,0,1):7===a||9===a?(r=parseInt(i.slice(1,7),16))>=0&&r<=16777215?(d(e,(16711680&r)>>16,(65280&r)>>8,255&r,9===a?parseInt(i.slice(7),16)/255:1),m(t,e),e):void d(e,0,0,0,1):void 0;var s=i.indexOf("("),c=i.indexOf(")");if(-1!==s&&c+1===a){var u=i.substr(0,s),g=i.substr(s+1,c-(s+1)).split(","),v=1;switch(u){case"rgba":if(4!==g.length)return 3===g.length?d(e,+g[0],+g[1],+g[2],1):d(e,0,0,0,1);v=h(g.pop());case"rgb":return g.length>=3?(d(e,l(g[0]),l(g[1]),l(g[2]),3===g.length?v:h(g[3])),m(t,e),e):void d(e,0,0,0,1);case"hsla":return 4!==g.length?void d(e,0,0,0,1):(g[3]=h(g[3]),y(g,e),m(t,e),e);case"hsl":return 3!==g.length?void d(e,0,0,0,1):(y(g,e),m(t,e),e);default:return}}d(e,0,0,0,1)}}function y(t,e){var n=(parseFloat(t[0])%360+360)%360/360,i=h(t[1]),r=h(t[2]),o=r<=.5?r*(i+1):r+i-r*i,s=2*r-o;return d(e=e||[],a(255*c(s,o,n+1/3)),a(255*c(s,o,n)),a(255*c(s,o,n-1/3)),1),4===t.length&&(e[3]=t[3]),e}function _(t,e){var n=v(t);if(n){for(var i=0;i<3;i++)n[i]=e<0?n[i]*(1-e)|0:(255-n[i])*e+n[i]|0,n[i]>255?n[i]=255:n[i]<0&&(n[i]=0);return C(n,4===n.length?"rgba":"rgb")}}function x(t){var e=v(t);if(e)return((1<<24)+(e[0]<<16)+(e[1]<<8)+ +e[2]).toString(16).slice(1)}function b(t,e,n){if(e&&e.length&&t>=0&&t<=1){n=n||[];var i=t*(e.length-1),r=Math.floor(i),o=Math.ceil(i),l=e[r],h=e[o],c=i-r;return n[0]=a(u(l[0],h[0],c)),n[1]=a(u(l[1],h[1],c)),n[2]=a(u(l[2],h[2],c)),n[3]=s(u(l[3],h[3],c)),n}}var w=b;function S(t,e,n){if(e&&e.length&&t>=0&&t<=1){var i=t*(e.length-1),r=Math.floor(i),o=Math.ceil(i),l=v(e[r]),h=v(e[o]),c=i-r,d=C([a(u(l[0],h[0],c)),a(u(l[1],h[1],c)),a(u(l[2],h[2],c)),s(u(l[3],h[3],c))],"rgba");return n?{color:d,leftIndex:r,rightIndex:o,value:i}:d}}var T=S;function M(t,e,n,i){var r,o=v(t);if(t)return o=function(t){if(t){var e,n,i=t[0]/255,r=t[1]/255,o=t[2]/255,a=Math.min(i,r,o),s=Math.max(i,r,o),l=s-a,h=(s+a)/2;if(0===l)e=0,n=0;else{n=h<.5?l/(s+a):l/(2-s-a);var c=((s-i)/6+l/2)/l,u=((s-r)/6+l/2)/l,d=((s-o)/6+l/2)/l;i===s?e=d-u:r===s?e=1/3+c-d:o===s&&(e=2/3+u-c),e<0&&(e+=1),e>1&&(e-=1)}var p=[360*e,n,h];return null!=t[3]&&p.push(t[3]),p}}(o),null!=e&&(o[0]=(r=e,(r=Math.round(r))<0?0:r>360?360:r)),null!=n&&(o[1]=h(n)),null!=i&&(o[2]=h(i)),C(y(o),"rgba")}function A(t,e){var n=v(t);if(n&&null!=e)return n[3]=s(e),C(n,"rgba")}function C(t,e){if(t&&t.length){var n=t[0]+","+t[1]+","+t[2];return"rgba"!==e&&"hsva"!==e&&"hsla"!==e||(n+=","+t[3]),e+"("+n+")"}}function I(t,e){var n=v(t);return n?(.299*n[0]+.587*n[1]+.114*n[2])*n[3]/255+(1-n[3])*e:0}function E(){return C([Math.round(255*Math.random()),Math.round(255*Math.random()),Math.round(255*Math.random())],"rgb")}var k=new i.Ay(100);function L(t){if((0,r.isString)(t)){var e=k.get(t);return e||(e=_(t,-.1),k.put(t,e)),e}if((0,r.isGradientObject)(t)){var n=(0,r.extend)({},t);return n.colorStops=(0,r.map)(t.colorStops,(function(t){return{offset:t.offset,color:_(t.color,-.1)}})),n}return t}},5496:(t,e,n)=>{"use strict";n.d(e,{rR:()=>E,UJ:()=>A,Qh:()=>C,uc:()=>I});var i=n(528),r=n(1885),o=n(584),a=n(4070),s=o.A.CMD,l=[[],[],[]],h=Math.sqrt,c=Math.atan2;function u(t,e){if(e){var n,i,r,o,u,d,p=t.data,f=t.len(),g=s.M,m=s.C,v=s.L,y=s.R,_=s.A,x=s.Q;for(r=0,o=0;r<f;){switch(n=p[r++],o=r,i=0,n){case g:case v:i=1;break;case m:i=3;break;case x:i=2;break;case _:var b=e[4],w=e[5],S=h(e[0]*e[0]+e[1]*e[1]),T=h(e[2]*e[2]+e[3]*e[3]),M=c(-e[1]/T,e[0]/S);p[r]*=S,p[r++]+=b,p[r]*=T,p[r++]+=w,p[r++]*=S,p[r++]*=T,p[r++]+=M,p[r++]+=M,o=r+=2;break;case y:d[0]=p[r++],d[1]=p[r++],(0,a.applyTransform)(d,d,e),p[o++]=d[0],p[o++]=d[1],d[0]+=p[r++],d[1]+=p[r++],(0,a.applyTransform)(d,d,e),p[o++]=d[0],p[o++]=d[1]}for(u=0;u<i;u++){var A=l[u];A[0]=p[r++],A[1]=p[r++],(0,a.applyTransform)(A,A,e),p[o++]=A[0],p[o++]=A[1]}}t.increaseVersion()}}var d=n(7845),p=Math.sqrt,f=Math.sin,g=Math.cos,m=Math.PI;function v(t){return Math.sqrt(t[0]*t[0]+t[1]*t[1])}function y(t,e){return(t[0]*e[0]+t[1]*e[1])/(v(t)*v(e))}function _(t,e){return(t[0]*e[1]<t[1]*e[0]?-1:1)*Math.acos(y(t,e))}function x(t,e,n,i,r,o,a,s,l,h,c){var u=l*(m/180),d=g(u)*(t-n)/2+f(u)*(e-i)/2,v=-1*f(u)*(t-n)/2+g(u)*(e-i)/2,x=d*d/(a*a)+v*v/(s*s);x>1&&(a*=p(x),s*=p(x));var b=(r===o?-1:1)*p((a*a*(s*s)-a*a*(v*v)-s*s*(d*d))/(a*a*(v*v)+s*s*(d*d)))||0,w=b*a*v/s,S=b*-s*d/a,T=(t+n)/2+g(u)*w-f(u)*S,M=(e+i)/2+f(u)*w+g(u)*S,A=_([1,0],[(d-w)/a,(v-S)/s]),C=[(d-w)/a,(v-S)/s],I=[(-1*d-w)/a,(-1*v-S)/s],E=_(C,I);if(y(C,I)<=-1&&(E=m),y(C,I)>=1&&(E=0),E<0){var k=Math.round(E/m*1e6)/1e6;E=2*m+k%2*m}c.addData(h,T,M,a,s,A,E,u,o)}var b=/([mlvhzcqtsa])([^mlvhzcqtsa]*)/gi,w=/-?([0-9]*\.)?[0-9]+([eE]-?[0-9]+)?/g;var S=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return(0,i.C6)(e,t),e.prototype.applyTransform=function(t){},e}(r.Ay);function T(t){return null!=t.setData}function M(t,e){var n=function(t){var e=new o.A;if(!t)return e;var n,i=0,r=0,a=i,s=r,l=o.A.CMD,h=t.match(b);if(!h)return e;for(var c=0;c<h.length;c++){for(var u=h[c],d=u.charAt(0),p=void 0,f=u.match(w)||[],g=f.length,m=0;m<g;m++)f[m]=parseFloat(f[m]);for(var v=0;v<g;){var y=void 0,_=void 0,S=void 0,T=void 0,M=void 0,A=void 0,C=void 0,I=i,E=r,k=void 0,L=void 0;switch(d){case"l":i+=f[v++],r+=f[v++],p=l.L,e.addData(p,i,r);break;case"L":i=f[v++],r=f[v++],p=l.L,e.addData(p,i,r);break;case"m":i+=f[v++],r+=f[v++],p=l.M,e.addData(p,i,r),a=i,s=r,d="l";break;case"M":i=f[v++],r=f[v++],p=l.M,e.addData(p,i,r),a=i,s=r,d="L";break;case"h":i+=f[v++],p=l.L,e.addData(p,i,r);break;case"H":i=f[v++],p=l.L,e.addData(p,i,r);break;case"v":r+=f[v++],p=l.L,e.addData(p,i,r);break;case"V":r=f[v++],p=l.L,e.addData(p,i,r);break;case"C":p=l.C,e.addData(p,f[v++],f[v++],f[v++],f[v++],f[v++],f[v++]),i=f[v-2],r=f[v-1];break;case"c":p=l.C,e.addData(p,f[v++]+i,f[v++]+r,f[v++]+i,f[v++]+r,f[v++]+i,f[v++]+r),i+=f[v-2],r+=f[v-1];break;case"S":y=i,_=r,k=e.len(),L=e.data,n===l.C&&(y+=i-L[k-4],_+=r-L[k-3]),p=l.C,I=f[v++],E=f[v++],i=f[v++],r=f[v++],e.addData(p,y,_,I,E,i,r);break;case"s":y=i,_=r,k=e.len(),L=e.data,n===l.C&&(y+=i-L[k-4],_+=r-L[k-3]),p=l.C,I=i+f[v++],E=r+f[v++],i+=f[v++],r+=f[v++],e.addData(p,y,_,I,E,i,r);break;case"Q":I=f[v++],E=f[v++],i=f[v++],r=f[v++],p=l.Q,e.addData(p,I,E,i,r);break;case"q":I=f[v++]+i,E=f[v++]+r,i+=f[v++],r+=f[v++],p=l.Q,e.addData(p,I,E,i,r);break;case"T":y=i,_=r,k=e.len(),L=e.data,n===l.Q&&(y+=i-L[k-4],_+=r-L[k-3]),i=f[v++],r=f[v++],p=l.Q,e.addData(p,y,_,i,r);break;case"t":y=i,_=r,k=e.len(),L=e.data,n===l.Q&&(y+=i-L[k-4],_+=r-L[k-3]),i+=f[v++],r+=f[v++],p=l.Q,e.addData(p,y,_,i,r);break;case"A":S=f[v++],T=f[v++],M=f[v++],A=f[v++],C=f[v++],x(I=i,E=r,i=f[v++],r=f[v++],A,C,S,T,M,p=l.A,e);break;case"a":S=f[v++],T=f[v++],M=f[v++],A=f[v++],C=f[v++],x(I=i,E=r,i+=f[v++],r+=f[v++],A,C,S,T,M,p=l.A,e)}}"z"!==d&&"Z"!==d||(p=l.Z,e.addData(p),i=a,r=s),n=p}return e.toStatic(),e}(t),i=(0,d.extend)({},e);return i.buildPath=function(t){if(T(t)){t.setData(n.data),(e=t.getContext())&&t.rebuildPath(e,1)}else{var e=t;n.rebuildPath(e,1)}},i.applyTransform=function(t){u(n,t),this.dirtyShape()},i}function A(t,e){return new S(M(t,e))}function C(t,e){var n=M(t,e);return function(t){function e(e){var i=t.call(this,e)||this;return i.applyTransform=n.applyTransform,i.buildPath=n.buildPath,i}return(0,i.C6)(e,t),e}(S)}function I(t,e){for(var n=[],i=t.length,o=0;o<i;o++){var a=t[o];n.push(a.getUpdatedPathProxy(!0))}var s=new r.Ay(e);return s.createPathProxy(),s.buildPath=function(t){if(T(t)){t.appendPath(n);var e=t.getContext();e&&t.rebuildPath(e,1)}},s}function E(t,e){e=e||{};var n=new r.Ay;return t.shape&&n.setShape(t.shape),n.setStyle(t.style),e.bakeTransform?u(n.path,t.getComputedTransform()):e.toLocal?n.setLocalTransform(t.getComputedTransform()):n.copyTransform(t),n.buildPath=t.buildPath,n.applyTransform=n.applyTransform,n.z=t.z,n.z2=t.z2,n.zlevel=t.zlevel,n}},2563:(t,e,n)=>{"use strict";n.r(e),n.d(e,{dispose:()=>ht,disposeAll:()=>ct,getElementSSRData:()=>pt,getInstance:()=>ut,init:()=>lt,registerPainter:()=>dt,registerSSRDataGetter:()=>ft,version:()=>gt});var i=n(4810),r=n(7845),o=n(528),a=n(4070),s=function(t,e){this.target=t,this.topTarget=e&&e.topTarget};const l=function(){function t(t){this.handler=t,t.on("mousedown",this._dragStart,this),t.on("mousemove",this._drag,this),t.on("mouseup",this._dragEnd,this)}return t.prototype._dragStart=function(t){for(var e=t.target;e&&!e.draggable;)e=e.parent||e.__hostTarget;e&&(this._draggingTarget=e,e.dragging=!0,this._x=t.offsetX,this._y=t.offsetY,this.handler.dispatchToElement(new s(e,t),"dragstart",t.event))},t.prototype._drag=function(t){var e=this._draggingTarget;if(e){var n=t.offsetX,i=t.offsetY,r=n-this._x,o=i-this._y;this._x=n,this._y=i,e.drift(r,o,t),this.handler.dispatchToElement(new s(e,t),"drag",t.event);var a=this.handler.findHover(n,i,e).target,l=this._dropTarget;this._dropTarget=a,e!==a&&(l&&a!==l&&this.handler.dispatchToElement(new s(l,t),"dragleave",t.event),a&&a!==l&&this.handler.dispatchToElement(new s(a,t),"dragenter",t.event))}},t.prototype._dragEnd=function(t){var e=this._draggingTarget;e&&(e.dragging=!1),this.handler.dispatchToElement(new s(e,t),"dragend",t.event),this._dropTarget&&this.handler.dispatchToElement(new s(this._dropTarget,t),"drop",t.event),this._draggingTarget=null,this._dropTarget=null},t}();var h=n(2510),c=n(1469),u=function(){function t(){this._track=[]}return t.prototype.recognize=function(t,e,n){return this._doTrack(t,e,n),this._recognize(t)},t.prototype.clear=function(){return this._track.length=0,this},t.prototype._doTrack=function(t,e,n){var i=t.touches;if(i){for(var r={points:[],touches:[],target:e,event:t},o=0,a=i.length;o<a;o++){var s=i[o],l=c.Yo(n,s,{});r.points.push([l.zrX,l.zrY]),r.touches.push(s)}this._track.push(r)}},t.prototype._recognize=function(t){for(var e in p)if(p.hasOwnProperty(e)){var n=p[e](this._track,t);if(n)return n}},t}();function d(t){var e=t[1][0]-t[0][0],n=t[1][1]-t[0][1];return Math.sqrt(e*e+n*n)}var p={pinch:function(t,e){var n=t.length;if(n){var i,r=(t[n-1]||{}).points,o=(t[n-2]||{}).points||r;if(o&&o.length>1&&r&&r.length>1){var a=d(r)/d(o);!isFinite(a)&&(a=1),e.pinchScale=a;var s=[((i=r)[0][0]+i[1][0])/2,(i[0][1]+i[1][1])/2];return e.pinchX=s[0],e.pinchY=s[1],{type:"pinch",target:t[0].target,event:e}}}}},f=n(5383),g="silent";function m(){c.ds(this.event)}var v=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.handler=null,e}return(0,o.C6)(e,t),e.prototype.dispose=function(){},e.prototype.setCursor=function(){},e}(h.A),y=function(t,e){this.x=t,this.y=e},_=["click","dblclick","mousewheel","mouseout","mouseup","mousedown","mousemove","contextmenu"],x=new f.A(0,0,0,0),b=function(t){function e(e,n,i,r,o){var a=t.call(this)||this;return a._hovered=new y(0,0),a.storage=e,a.painter=n,a.painterRoot=r,a._pointerSize=o,i=i||new v,a.proxy=null,a.setHandlerProxy(i),a._draggingMgr=new l(a),a}return(0,o.C6)(e,t),e.prototype.setHandlerProxy=function(t){this.proxy&&this.proxy.dispose(),t&&(r.each(_,(function(e){t.on&&t.on(e,this[e],this)}),this),t.handler=this),this.proxy=t},e.prototype.mousemove=function(t){var e=t.zrX,n=t.zrY,i=T(this,e,n),r=this._hovered,o=r.target;o&&!o.__zr&&(o=(r=this.findHover(r.x,r.y)).target);var a=this._hovered=i?new y(e,n):this.findHover(e,n),s=a.target,l=this.proxy;l.setCursor&&l.setCursor(s?s.cursor:"default"),o&&s!==o&&this.dispatchToElement(r,"mouseout",t),this.dispatchToElement(a,"mousemove",t),s&&s!==o&&this.dispatchToElement(a,"mouseover",t)},e.prototype.mouseout=function(t){var e=t.zrEventControl;"only_globalout"!==e&&this.dispatchToElement(this._hovered,"mouseout",t),"no_globalout"!==e&&this.trigger("globalout",{type:"globalout",event:t})},e.prototype.resize=function(){this._hovered=new y(0,0)},e.prototype.dispatch=function(t,e){var n=this[t];n&&n.call(this,e)},e.prototype.dispose=function(){this.proxy.dispose(),this.storage=null,this.proxy=null,this.painter=null},e.prototype.setCursorStyle=function(t){var e=this.proxy;e.setCursor&&e.setCursor(t)},e.prototype.dispatchToElement=function(t,e,n){var i=(t=t||{}).target;if(!i||!i.silent){for(var r="on"+e,o=function(t,e,n){return{type:t,event:n,target:e.target,topTarget:e.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:m}}(e,t,n);i&&(i[r]&&(o.cancelBubble=!!i[r].call(i,o)),i.trigger(e,o),i=i.__hostTarget?i.__hostTarget:i.parent,!o.cancelBubble););o.cancelBubble||(this.trigger(e,o),this.painter&&this.painter.eachOtherLayer&&this.painter.eachOtherLayer((function(t){"function"==typeof t[r]&&t[r].call(t,o),t.trigger&&t.trigger(e,o)})))}},e.prototype.findHover=function(t,e,n){var i=this.storage.getDisplayList(),r=new y(t,e);if(S(i,r,t,e,n),this._pointerSize&&!r.target){for(var o=[],a=this._pointerSize,s=a/2,l=new f.A(t-s,e-s,a,a),h=i.length-1;h>=0;h--){var c=i[h];c===n||c.ignore||c.ignoreCoarsePointer||c.parent&&c.parent.ignoreCoarsePointer||(x.copy(c.getBoundingRect()),c.transform&&x.applyTransform(c.transform),x.intersect(l)&&o.push(c))}if(o.length)for(var u=Math.PI/12,d=2*Math.PI,p=0;p<s;p+=4)for(var g=0;g<d;g+=u){if(S(o,r,t+p*Math.cos(g),e+p*Math.sin(g),n),r.target)return r}}return r},e.prototype.processGesture=function(t,e){this._gestureMgr||(this._gestureMgr=new u);var n=this._gestureMgr;"start"===e&&n.clear();var i=n.recognize(t,this.findHover(t.zrX,t.zrY,null).target,this.proxy.dom);if("end"===e&&n.clear(),i){var r=i.type;t.gestureEvent=r;var o=new y;o.target=i.target,this.dispatchToElement(o,r,i.event)}},e}(h.A);function w(t,e,n){if(t[t.rectHover?"rectContain":"contain"](e,n)){for(var i=t,r=void 0,o=!1;i;){if(i.ignoreClip&&(o=!0),!o){var a=i.getClipPath();if(a&&!a.contain(e,n))return!1}i.silent&&(r=!0);var s=i.__hostTarget;i=s||i.parent}return!r||g}return!1}function S(t,e,n,i,r){for(var o=t.length-1;o>=0;o--){var a=t[o],s=void 0;if(a!==r&&!a.ignore&&(s=w(a,n,i))&&(!e.topTarget&&(e.topTarget=a),s!==g)){e.target=a;break}}}function T(t,e,n){var i=t.painter;return e<0||e>i.getWidth()||n<0||n>i.getHeight()}r.each(["click","mousedown","mouseup","mousewheel","dblclick","contextmenu"],(function(t){b.prototype[t]=function(e){var n,i,r=e.zrX,o=e.zrY,s=T(this,r,o);if("mouseup"===t&&s||(i=(n=this.findHover(r,o)).target),"mousedown"===t)this._downEl=i,this._downPoint=[e.zrX,e.zrY],this._upEl=i;else if("mouseup"===t)this._upEl=i;else if("click"===t){if(this._downEl!==this._upEl||!this._downPoint||a.dist(this._downPoint,[e.zrX,e.zrY])>4)return;this._downPoint=null}this.dispatchToElement(n,t,e)}}));const M=b;var A=n(979),C=n(5667),I=!1;function E(){I||(I=!0,console.warn("z / z2 / zlevel of displayable is invalid, which may cause unexpected errors"))}function k(t,e){return t.zlevel===e.zlevel?t.z===e.z?t.z2-e.z2:t.z-e.z:t.zlevel-e.zlevel}const L=function(){function t(){this._roots=[],this._displayList=[],this._displayListLen=0,this.displayableSortFunc=k}return t.prototype.traverse=function(t,e){for(var n=0;n<this._roots.length;n++)this._roots[n].traverse(t,e)},t.prototype.getDisplayList=function(t,e){e=e||!1;var n=this._displayList;return!t&&n.length||this.updateDisplayList(e),n},t.prototype.updateDisplayList=function(t){this._displayListLen=0;for(var e=this._roots,n=this._displayList,i=0,r=e.length;i<r;i++)this._updateAndAddDisplayable(e[i],null,t);n.length=this._displayListLen,(0,A.A)(n,k)},t.prototype._updateAndAddDisplayable=function(t,e,n){if(!t.ignore||n){t.beforeUpdate(),t.update(),t.afterUpdate();var i=t.getClipPath();if(t.ignoreClip)e=null;else if(i){e=e?e.slice():[];for(var r=i,o=t;r;)r.parent=o,r.updateTransform(),e.push(r),o=r,r=r.getClipPath()}if(t.childrenRef){for(var a=t.childrenRef(),s=0;s<a.length;s++){var l=a[s];t.__dirty&&(l.__dirty|=C.M),this._updateAndAddDisplayable(l,e,n)}t.__dirty=0}else{var h=t;e&&e.length?h.__clipPaths=e:h.__clipPaths&&h.__clipPaths.length>0&&(h.__clipPaths=[]),isNaN(h.z)&&(E(),h.z=0),isNaN(h.z2)&&(E(),h.z2=0),isNaN(h.zlevel)&&(E(),h.zlevel=0),this._displayList[this._displayListLen++]=h}var c=t.getDecalElement&&t.getDecalElement();c&&this._updateAndAddDisplayable(c,e,n);var u=t.getTextGuideLine();u&&this._updateAndAddDisplayable(u,e,n);var d=t.getTextContent();d&&this._updateAndAddDisplayable(d,e,n)}},t.prototype.addRoot=function(t){t.__zr&&t.__zr.storage===this||this._roots.push(t)},t.prototype.delRoot=function(t){if(t instanceof Array)for(var e=0,n=t.length;e<n;e++)this.delRoot(t[e]);else{var i=r.indexOf(this._roots,t);i>=0&&this._roots.splice(i,1)}},t.prototype.delAllRoots=function(){this._roots=[],this._displayList=[],this._displayListLen=0},t.prototype.getRoots=function(){return this._roots},t.prototype.dispose=function(){this._displayList=null,this._roots=null},t}();var D=n(3358),P=n(8854);function R(){return(new Date).getTime()}const O=function(t){function e(e){var n=t.call(this)||this;return n._running=!1,n._time=0,n._pausedTime=0,n._pauseStart=0,n._paused=!1,e=e||{},n.stage=e.stage||{},n}return(0,o.C6)(e,t),e.prototype.addClip=function(t){t.animation&&this.removeClip(t),this._head?(this._tail.next=t,t.prev=this._tail,t.next=null,this._tail=t):this._head=this._tail=t,t.animation=this},e.prototype.addAnimator=function(t){t.animation=this;var e=t.getClip();e&&this.addClip(e)},e.prototype.removeClip=function(t){if(t.animation){var e=t.prev,n=t.next;e?e.next=n:this._head=n,n?n.prev=e:this._tail=e,t.next=t.prev=t.animation=null}},e.prototype.removeAnimator=function(t){var e=t.getClip();e&&this.removeClip(e),t.animation=null},e.prototype.update=function(t){for(var e=R()-this._pausedTime,n=e-this._time,i=this._head;i;){var r=i.next;i.step(e,n)?(i.ondestroy(),this.removeClip(i),i=r):i=r}this._time=e,t||(this.trigger("frame",n),this.stage.update&&this.stage.update())},e.prototype._startLoop=function(){var t=this;this._running=!0,(0,D.A)((function e(){t._running&&((0,D.A)(e),!t._paused&&t.update())}))},e.prototype.start=function(){this._running||(this._time=R(),this._pausedTime=0,this._startLoop())},e.prototype.stop=function(){this._running=!1},e.prototype.pause=function(){this._paused||(this._pauseStart=R(),this._paused=!0)},e.prototype.resume=function(){this._paused&&(this._pausedTime+=R()-this._pauseStart,this._paused=!1)},e.prototype.clear=function(){for(var t=this._head;t;){var e=t.next;t.prev=t.next=t.animation=null,t=e}this._head=this._tail=null},e.prototype.isFinished=function(){return null==this._head},e.prototype.animate=function(t,e){e=e||{},this.start();var n=new P.A(t,e.loop);return this.addAnimator(n),n},e}(h.A);var N,F,B=i.A.domSupported,z=(F={pointerdown:1,pointerup:1,pointermove:1,pointerout:1},{mouse:N=["click","dblclick","mousewheel","wheel","mouseout","mouseup","mousedown","mousemove","contextmenu"],touch:["touchstart","touchend","touchmove"],pointer:r.map(N,(function(t){var e=t.replace("mouse","pointer");return F.hasOwnProperty(e)?e:t}))}),G=["mousemove","mouseup"],V=["pointermove","pointerup"],j=!1;function H(t){var e=t.pointerType;return"pen"===e||"touch"===e}function W(t){t&&(t.zrByTouch=!0)}function U(t,e){for(var n=e,i=!1;n&&9!==n.nodeType&&!(i=n.domBelongToZr||n!==e&&n===t.painterRoot);)n=n.parentNode;return i}var q=function(t,e){this.stopPropagation=r.noop,this.stopImmediatePropagation=r.noop,this.preventDefault=r.noop,this.type=e.type,this.target=this.currentTarget=t.dom,this.pointerType=e.pointerType,this.clientX=e.clientX,this.clientY=e.clientY},X={mousedown:function(t){t=(0,c.e0)(this.dom,t),this.__mayPointerCapture=[t.zrX,t.zrY],this.trigger("mousedown",t)},mousemove:function(t){t=(0,c.e0)(this.dom,t);var e=this.__mayPointerCapture;!e||t.zrX===e[0]&&t.zrY===e[1]||this.__togglePointerCapture(!0),this.trigger("mousemove",t)},mouseup:function(t){t=(0,c.e0)(this.dom,t),this.__togglePointerCapture(!1),this.trigger("mouseup",t)},mouseout:function(t){U(this,(t=(0,c.e0)(this.dom,t)).toElement||t.relatedTarget)||(this.__pointerCapturing&&(t.zrEventControl="no_globalout"),this.trigger("mouseout",t))},wheel:function(t){j=!0,t=(0,c.e0)(this.dom,t),this.trigger("mousewheel",t)},mousewheel:function(t){j||(t=(0,c.e0)(this.dom,t),this.trigger("mousewheel",t))},touchstart:function(t){W(t=(0,c.e0)(this.dom,t)),this.__lastTouchMoment=new Date,this.handler.processGesture(t,"start"),X.mousemove.call(this,t),X.mousedown.call(this,t)},touchmove:function(t){W(t=(0,c.e0)(this.dom,t)),this.handler.processGesture(t,"change"),X.mousemove.call(this,t)},touchend:function(t){W(t=(0,c.e0)(this.dom,t)),this.handler.processGesture(t,"end"),X.mouseup.call(this,t),+new Date-+this.__lastTouchMoment<300&&X.click.call(this,t)},pointerdown:function(t){X.mousedown.call(this,t)},pointermove:function(t){H(t)||X.mousemove.call(this,t)},pointerup:function(t){X.mouseup.call(this,t)},pointerout:function(t){H(t)||X.mouseout.call(this,t)}};r.each(["click","dblclick","contextmenu"],(function(t){X[t]=function(e){e=(0,c.e0)(this.dom,e),this.trigger(t,e)}}));var Y={pointermove:function(t){H(t)||Y.mousemove.call(this,t)},pointerup:function(t){Y.mouseup.call(this,t)},mousemove:function(t){this.trigger("mousemove",t)},mouseup:function(t){var e=this.__pointerCapturing;this.__togglePointerCapture(!1),this.trigger("mouseup",t),e&&(t.zrEventControl="only_globalout",this.trigger("mouseout",t))}};function Z(t,e){var n=e.domHandlers;i.A.pointerEventsSupported?r.each(z.pointer,(function(i){K(e,i,(function(e){n[i].call(t,e)}))})):(i.A.touchEventsSupported&&r.each(z.touch,(function(i){K(e,i,(function(r){n[i].call(t,r),function(t){t.touching=!0,null!=t.touchTimer&&(clearTimeout(t.touchTimer),t.touchTimer=null),t.touchTimer=setTimeout((function(){t.touching=!1,t.touchTimer=null}),700)}(e)}))})),r.each(z.mouse,(function(i){K(e,i,(function(r){r=(0,c.mK)(r),e.touching||n[i].call(t,r)}))})))}function $(t,e){function n(n){K(e,n,(function(i){i=(0,c.mK)(i),U(t,i.target)||(i=function(t,e){return(0,c.e0)(t.dom,new q(t,e),!0)}(t,i),e.domHandlers[n].call(t,i))}),{capture:!0})}i.A.pointerEventsSupported?r.each(V,n):i.A.touchEventsSupported||r.each(G,n)}function K(t,e,n,i){t.mounted[e]=n,t.listenerOpts[e]=i,(0,c.q2)(t.domTarget,e,n,i)}function J(t){var e=t.mounted;for(var n in e)e.hasOwnProperty(n)&&(0,c.f)(t.domTarget,n,e[n],t.listenerOpts[n]);t.mounted={}}var Q=function(t,e){this.mounted={},this.listenerOpts={},this.touching=!1,this.domTarget=t,this.domHandlers=e};const tt=function(t){function e(e,n){var i=t.call(this)||this;return i.__pointerCapturing=!1,i.dom=e,i.painterRoot=n,i._localHandlerScope=new Q(e,X),B&&(i._globalHandlerScope=new Q(document,Y)),Z(i,i._localHandlerScope),i}return(0,o.C6)(e,t),e.prototype.dispose=function(){J(this._localHandlerScope),B&&J(this._globalHandlerScope)},e.prototype.setCursor=function(t){this.dom.style&&(this.dom.style.cursor=t||"default")},e.prototype.__togglePointerCapture=function(t){if(this.__mayPointerCapture=null,B&&+this.__pointerCapturing^+t){this.__pointerCapturing=t;var e=this._globalHandlerScope;t?$(this,e):J(e)}},e}(h.A);var et=n(7219),nt=n(2256),it=n(8829),rt={},ot={};var at,st=function(){function t(t,e,n){var o=this;this._sleepAfterStill=10,this._stillFrameAccum=0,this._needsRefresh=!0,this._needsRefreshHover=!0,this._darkMode=!1,n=n||{},this.dom=e,this.id=t;var a=new L,s=n.renderer||"canvas";rt[s]||(s=r.keys(rt)[0]),n.useDirtyRect=null!=n.useDirtyRect&&n.useDirtyRect;var l=new rt[s](e,a,n,t),h=n.ssr||l.ssrOnly;this.storage=a,this.painter=l;var c,u=i.A.node||i.A.worker||h?null:new tt(l.getViewportRoot(),l.root),d=n.useCoarsePointer;(null==d||"auto"===d?i.A.touchEventsSupported:!!d)&&(c=r.retrieve2(n.pointerSize,44)),this.handler=new M(a,l,u,l.root,c),this.animation=new O({stage:{update:h?null:function(){return o._flush(!0)}}}),h||this.animation.start()}return t.prototype.add=function(t){!this._disposed&&t&&(this.storage.addRoot(t),t.addSelfToZr(this),this.refresh())},t.prototype.remove=function(t){!this._disposed&&t&&(this.storage.delRoot(t),t.removeSelfFromZr(this),this.refresh())},t.prototype.configLayer=function(t,e){this._disposed||(this.painter.configLayer&&this.painter.configLayer(t,e),this.refresh())},t.prototype.setBackgroundColor=function(t){this._disposed||(this.painter.setBackgroundColor&&this.painter.setBackgroundColor(t),this.refresh(),this._backgroundColor=t,this._darkMode=function(t){if(!t)return!1;if("string"==typeof t)return(0,et.lum)(t,1)<nt.ps;if(t.colorStops){for(var e=t.colorStops,n=0,i=e.length,r=0;r<i;r++)n+=(0,et.lum)(e[r].color,1);return(n/=i)<nt.ps}return!1}(t))},t.prototype.getBackgroundColor=function(){return this._backgroundColor},t.prototype.setDarkMode=function(t){this._darkMode=t},t.prototype.isDarkMode=function(){return this._darkMode},t.prototype.refreshImmediately=function(t){this._disposed||(t||this.animation.update(!0),this._needsRefresh=!1,this.painter.refresh(),this._needsRefresh=!1)},t.prototype.refresh=function(){this._disposed||(this._needsRefresh=!0,this.animation.start())},t.prototype.flush=function(){this._disposed||this._flush(!1)},t.prototype._flush=function(t){var e,n=R();this._needsRefresh&&(e=!0,this.refreshImmediately(t)),this._needsRefreshHover&&(e=!0,this.refreshHoverImmediately());var i=R();e?(this._stillFrameAccum=0,this.trigger("rendered",{elapsedTime:i-n})):this._sleepAfterStill>0&&(this._stillFrameAccum++,this._stillFrameAccum>this._sleepAfterStill&&this.animation.stop())},t.prototype.setSleepAfterStill=function(t){this._sleepAfterStill=t},t.prototype.wakeUp=function(){this._disposed||(this.animation.start(),this._stillFrameAccum=0)},t.prototype.refreshHover=function(){this._needsRefreshHover=!0},t.prototype.refreshHoverImmediately=function(){this._disposed||(this._needsRefreshHover=!1,this.painter.refreshHover&&"canvas"===this.painter.getType()&&this.painter.refreshHover())},t.prototype.resize=function(t){this._disposed||(t=t||{},this.painter.resize(t.width,t.height),this.handler.resize())},t.prototype.clearAnimation=function(){this._disposed||this.animation.clear()},t.prototype.getWidth=function(){if(!this._disposed)return this.painter.getWidth()},t.prototype.getHeight=function(){if(!this._disposed)return this.painter.getHeight()},t.prototype.setCursorStyle=function(t){this._disposed||this.handler.setCursorStyle(t)},t.prototype.findHover=function(t,e){if(!this._disposed)return this.handler.findHover(t,e)},t.prototype.on=function(t,e,n){return this._disposed||this.handler.on(t,e,n),this},t.prototype.off=function(t,e){this._disposed||this.handler.off(t,e)},t.prototype.trigger=function(t,e){this._disposed||this.handler.trigger(t,e)},t.prototype.clear=function(){if(!this._disposed){for(var t=this.storage.getRoots(),e=0;e<t.length;e++)t[e]instanceof it.A&&t[e].removeSelfFromZr(this);this.storage.delAllRoots(),this.painter.clear()}},t.prototype.dispose=function(){var t;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,t=this.id,delete ot[t])},t}();function lt(t,e){var n=new st(r.guid(),t,e);return ot[n.id]=n,n}function ht(t){t.dispose()}function ct(){for(var t in ot)ot.hasOwnProperty(t)&&ot[t].dispose();ot={}}function ut(t){return ot[t]}function dt(t,e){rt[t]=e}function pt(t){if("function"==typeof at)return at(t)}function ft(t){at=t}var gt="5.6.0"}}]); \ No newline at end of file diff --git a/assets/js/282.34d31180.js b/assets/js/252.88d5cc34.js similarity index 51% rename from assets/js/282.34d31180.js rename to assets/js/252.88d5cc34.js index 9d4be71..1803ed9 100644 --- a/assets/js/282.34d31180.js +++ b/assets/js/252.88d5cc34.js @@ -1 +1 @@ -"use strict";(self.webpackChunkol_echarts_docs=self.webpackChunkol_echarts_docs||[]).push([[282],{1282:(s,c,e)=>{e.r(c)}}]); \ No newline at end of file +"use strict";(self.webpackChunkol_echarts_docs=self.webpackChunkol_echarts_docs||[]).push([[252],{7252:(s,c,e)=>{e.r(c)}}]); \ No newline at end of file diff --git a/assets/js/3067defa.5c27b759.js b/assets/js/3067defa.d6115655.js similarity index 99% rename from assets/js/3067defa.5c27b759.js rename to assets/js/3067defa.d6115655.js index 35ef6e2..3ae8908 100644 --- a/assets/js/3067defa.5c27b759.js +++ b/assets/js/3067defa.d6115655.js @@ -1 +1 @@ -"use strict";(self.webpackChunkol_echarts_docs=self.webpackChunkol_echarts_docs||[]).push([[333],{7081:(e,n,d)=>{d.r(n),d.d(n,{assets:()=>h,contentTitle:()=>l,default:()=>x,frontMatter:()=>r,metadata:()=>c,toc:()=>t});var s=d(6106),i=d(2036);const r={},l="Class: default",c={id:"typedoc/ol-echarts/classes/default",title:"Class: default",description:"Extends",source:"@site/docs/typedoc/ol-echarts/classes/default.md",sourceDirName:"typedoc/ol-echarts/classes",slug:"/typedoc/ol-echarts/classes/default",permalink:"/ol3Echarts/docs/typedoc/ol-echarts/classes/default",draft:!1,unlisted:!1,editUrl:"https://github.com/sakitam-fdd/ol3Echarts/edit/master/documents/docs/docs/typedoc/ol-echarts/classes/default.md",tags:[],version:"current",frontMatter:{},sidebar:"docs",previous:{title:"ol-echarts v4.0.1",permalink:"/ol3Echarts/docs/typedoc/ol-echarts/"},next:{title:"ol3-echarts v3.0.1",permalink:"/ol3Echarts/docs/typedoc/ol3-echarts/"}},h={},t=[{value:"Extends",id:"extends",level:2},{value:"Constructors",id:"constructors",level:2},{value:"new default()",id:"new-default",level:3},{value:"Parameters",id:"parameters",level:4},{value:"Returns",id:"returns",level:4},{value:"Overrides",id:"overrides",level:4},{value:"Defined in",id:"defined-in",level:4},{value:"Properties",id:"properties",level:2},{value:"formatGeoJSON()",id:"formatgeojson",level:3},{value:"Parameters",id:"parameters-1",level:4},{value:"Returns",id:"returns-1",level:4},{value:"type",id:"type",level:5},{value:"crs",id:"crs",level:5},{value:"features",id:"features",level:5},{value:"Defined in",id:"defined-in-1",level:4},{value:"bind()",id:"bind",level:3},{value:"Parameters",id:"parameters-2",level:4},{value:"Returns",id:"returns-2",level:4},{value:"Param",id:"param",level:4},{value:"Param",id:"param-1",level:4},{value:"Defined in",id:"defined-in-2",level:4},{value:"merge()",id:"merge",level:3},{value:"Parameters",id:"parameters-3",level:4},{value:"Returns",id:"returns-3",level:4},{value:"Defined in",id:"defined-in-3",level:4},{value:"uuid()",id:"uuid",level:3},{value:"Returns",id:"returns-4",level:4},{value:"Defined in",id:"defined-in-4",level:4},{value:"bindAll()",id:"bindall",level:3},{value:"Parameters",id:"parameters-4",level:4},{value:"Returns",id:"returns-5",level:4},{value:"Defined in",id:"defined-in-5",level:4},{value:"arrayAdd()",id:"arrayadd",level:3},{value:"Parameters",id:"parameters-5",level:4},{value:"Returns",id:"returns-6",level:4},{value:"Defined in",id:"defined-in-6",level:4},{value:"removeNode()",id:"removenode",level:3},{value:"Parameters",id:"parameters-6",level:4},{value:"Returns",id:"returns-7",level:4},{value:"Defined in",id:"defined-in-7",level:4},{value:"isObject()",id:"isobject",level:3},{value:"Parameters",id:"parameters-7",level:4},{value:"Returns",id:"returns-8",level:4},{value:"Defined in",id:"defined-in-8",level:4},{value:"$chart",id:"chart",level:3},{value:"Defined in",id:"defined-in-9",level:4},{value:"$container",id:"container",level:3},{value:"Defined in",id:"defined-in-10",level:4},{value:"_map",id:"_map",level:3},{value:"Defined in",id:"defined-in-11",level:4},{value:"Methods",id:"methods",level:2},{value:"appendTo()",id:"appendto",level:3},{value:"Parameters",id:"parameters-8",level:4},{value:"Returns",id:"returns-9",level:4},{value:"Defined in",id:"defined-in-12",level:4},{value:"getMap()",id:"getmap",level:3},{value:"Returns",id:"returns-10",level:4},{value:"Defined in",id:"defined-in-13",level:4},{value:"setMap()",id:"setmap",level:3},{value:"Parameters",id:"parameters-9",level:4},{value:"Returns",id:"returns-11",level:4},{value:"Defined in",id:"defined-in-14",level:4},{value:"getChartOptions()",id:"getchartoptions",level:3},{value:"Returns",id:"returns-12",level:4},{value:"Defined in",id:"defined-in-15",level:4},{value:"setChartOptions()",id:"setchartoptions",level:3},{value:"Parameters",id:"parameters-10",level:4},{value:"Returns",id:"returns-13",level:4},{value:"Defined in",id:"defined-in-16",level:4},{value:"appendData()",id:"appenddata",level:3},{value:"Parameters",id:"parameters-11",level:4},{value:"Returns",id:"returns-14",level:4},{value:"Defined in",id:"defined-in-17",level:4},{value:"clear()",id:"clear",level:3},{value:"Parameters",id:"parameters-12",level:4},{value:"Returns",id:"returns-15",level:4},{value:"Defined in",id:"defined-in-18",level:4},{value:"remove()",id:"remove",level:3},{value:"Returns",id:"returns-16",level:4},{value:"Defined in",id:"defined-in-19",level:4},{value:"show()",id:"show",level:3},{value:"Returns",id:"returns-17",level:4},{value:"Defined in",id:"defined-in-20",level:4},{value:"hide()",id:"hide",level:3},{value:"Returns",id:"returns-18",level:4},{value:"Defined in",id:"defined-in-21",level:4},{value:"isVisible()",id:"isvisible",level:3},{value:"Returns",id:"returns-19",level:4},{value:"Defined in",id:"defined-in-22",level:4},{value:"showLoading()",id:"showloading",level:3},{value:"Returns",id:"returns-20",level:4},{value:"Defined in",id:"defined-in-23",level:4},{value:"hideLoading()",id:"hideloading",level:3},{value:"Returns",id:"returns-21",level:4},{value:"Defined in",id:"defined-in-24",level:4},{value:"setZIndex()",id:"setzindex",level:3},{value:"Parameters",id:"parameters-13",level:4},{value:"Returns",id:"returns-22",level:4},{value:"Defined in",id:"defined-in-25",level:4},{value:"getZIndex()",id:"getzindex",level:3},{value:"Returns",id:"returns-23",level:4},{value:"Defined in",id:"defined-in-26",level:4},{value:"setVisible()",id:"setvisible",level:3},{value:"Parameters",id:"parameters-14",level:4},{value:"Returns",id:"returns-24",level:4},{value:"Defined in",id:"defined-in-27",level:4},{value:"render()",id:"render",level:3},{value:"Returns",id:"returns-25",level:4},{value:"Defined in",id:"defined-in-28",level:4},{value:"redraw()",id:"redraw",level:3},{value:"Returns",id:"returns-26",level:4},{value:"Defined in",id:"defined-in-29",level:4},{value:"updateViewSize()",id:"updateviewsize",level:3},{value:"Parameters",id:"parameters-15",level:4},{value:"Returns",id:"returns-27",level:4},{value:"Defined in",id:"defined-in-30",level:4},{value:"dispatchEvent()",id:"dispatchevent",level:3},{value:"Parameters",id:"parameters-16",level:4},{value:"Returns",id:"returns-28",level:4},{value:"Overrides",id:"overrides-1",level:4},{value:"Defined in",id:"defined-in-31",level:4},{value:"set()",id:"set",level:3},{value:"Parameters",id:"parameters-17",level:4},{value:"Returns",id:"returns-29",level:4},{value:"Api",id:"api",level:4},{value:"Overrides",id:"overrides-2",level:4},{value:"Defined in",id:"defined-in-32",level:4},{value:"get()",id:"get",level:3},{value:"Parameters",id:"parameters-18",level:4},{value:"Returns",id:"returns-30",level:4},{value:"Api",id:"api-1",level:4},{value:"Overrides",id:"overrides-3",level:4},{value:"Defined in",id:"defined-in-33",level:4},{value:"on()",id:"on",level:3},{value:"Parameters",id:"parameters-19",level:4},{value:"Returns",id:"returns-31",level:4},{value:"Overrides",id:"overrides-4",level:4},{value:"Defined in",id:"defined-in-34",level:4},{value:"un()",id:"un",level:3},{value:"Parameters",id:"parameters-20",level:4},{value:"Returns",id:"returns-32",level:4},{value:"Overrides",id:"overrides-5",level:4},{value:"Defined in",id:"defined-in-35",level:4}];function a(e){const n={a:"a",code:"code",h1:"h1",h2:"h2",h3:"h3",h4:"h4",h5:"h5",header:"header",hr:"hr",li:"li",p:"p",pre:"pre",table:"table",tbody:"tbody",td:"td",th:"th",thead:"thead",tr:"tr",ul:"ul",...(0,i.R)(),...e.components};return(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(n.header,{children:(0,s.jsx)(n.h1,{id:"class-default",children:"Class: default"})}),"\n",(0,s.jsx)(n.h2,{id:"extends",children:"Extends"}),"\n",(0,s.jsxs)(n.ul,{children:["\n",(0,s.jsx)(n.li,{children:(0,s.jsx)(n.code,{children:"BaseObject"})}),"\n"]}),"\n",(0,s.jsx)(n.h2,{id:"constructors",children:"Constructors"}),"\n",(0,s.jsx)(n.h3,{id:"new-default",children:"new default()"}),"\n",(0,s.jsx)(n.pre,{children:(0,s.jsx)(n.code,{className:"language-ts",children:"new default(\n chartOptions?, \n options?, \n map?): default\n"})}),"\n",(0,s.jsx)(n.h4,{id:"parameters",children:"Parameters"}),"\n",(0,s.jsxs)(n.table,{children:[(0,s.jsx)(n.thead,{children:(0,s.jsxs)(n.tr,{children:[(0,s.jsx)(n.th,{children:"Parameter"}),(0,s.jsx)(n.th,{children:"Type"})]})}),(0,s.jsxs)(n.tbody,{children:[(0,s.jsxs)(n.tr,{children:[(0,s.jsxs)(n.td,{children:[(0,s.jsx)(n.code,{children:"chartOptions"}),"?"]}),(0,s.jsxs)(n.td,{children:[(0,s.jsx)(n.code,{children:"NoDef"}),"<",(0,s.jsx)(n.code,{children:"Nullable"}),"<",(0,s.jsx)(n.code,{children:"object"}),">>"]})]}),(0,s.jsxs)(n.tr,{children:[(0,s.jsxs)(n.td,{children:[(0,s.jsx)(n.code,{children:"options"}),"?"]}),(0,s.jsxs)(n.td,{children:[(0,s.jsx)(n.code,{children:"NoDef"}),"<",(0,s.jsx)(n.code,{children:"Nullable"}),"<",(0,s.jsx)(n.code,{children:"OptionsTypes"}),">>"]})]}),(0,s.jsxs)(n.tr,{children:[(0,s.jsxs)(n.td,{children:[(0,s.jsx)(n.code,{children:"map"}),"?"]}),(0,s.jsx)(n.td,{children:(0,s.jsx)(n.code,{children:"any"})})]})]})]}),"\n",(0,s.jsx)(n.h4,{id:"returns",children:"Returns"}),"\n",(0,s.jsx)(n.p,{children:(0,s.jsx)(n.a,{href:"/ol3Echarts/docs/typedoc/ol-echarts/classes/default",children:(0,s.jsx)(n.code,{children:"default"})})}),"\n",(0,s.jsx)(n.h4,{id:"overrides",children:"Overrides"}),"\n",(0,s.jsx)(n.p,{children:(0,s.jsx)(n.code,{children:"obj.constructor"})}),"\n",(0,s.jsx)(n.h4,{id:"defined-in",children:"Defined in"}),"\n",(0,s.jsx)(n.p,{children:(0,s.jsx)(n.a,{href:"https://github.com/sakitam-fdd/ol3Echarts/blob/master/packages/ol-echarts/src/index.ts#L88",children:"index.ts:88"})}),"\n",(0,s.jsx)(n.h2,{id:"properties",children:"Properties"}),"\n",(0,s.jsx)(n.h3,{id:"formatgeojson",children:"formatGeoJSON()"}),"\n",(0,s.jsx)(n.pre,{children:(0,s.jsx)(n.code,{className:"language-ts",children:"static formatGeoJSON: (json) => object;\n"})}),"\n",(0,s.jsx)(n.p,{children:"decode geoJson"}),"\n",(0,s.jsx)(n.h4,{id:"parameters-1",children:"Parameters"}),"\n",(0,s.jsxs)(n.table,{children:[(0,s.jsx)(n.thead,{children:(0,s.jsxs)(n.tr,{children:[(0,s.jsx)(n.th,{children:"Parameter"}),(0,s.jsx)(n.th,{children:"Type"}),(0,s.jsx)(n.th,{children:"Description"})]})}),(0,s.jsx)(n.tbody,{children:(0,s.jsxs)(n.tr,{children:[(0,s.jsx)(n.td,{children:(0,s.jsx)(n.code,{children:"json"})}),(0,s.jsx)(n.td,{children:(0,s.jsx)(n.code,{children:"any"})}),(0,s.jsx)(n.td,{})]})})]}),"\n",(0,s.jsx)(n.h4,{id:"returns-1",children:"Returns"}),"\n",(0,s.jsx)(n.p,{children:(0,s.jsx)(n.code,{children:"object"})}),"\n",(0,s.jsx)(n.h5,{id:"type",children:"type"}),"\n",(0,s.jsx)(n.pre,{children:(0,s.jsx)(n.code,{className:"language-ts",children:"type: string = 'FeatureCollection';\n"})}),"\n",(0,s.jsx)(n.h5,{id:"crs",children:"crs"}),"\n",(0,s.jsx)(n.pre,{children:(0,s.jsx)(n.code,{className:"language-ts",children:"crs: object = {};\n"})}),"\n",(0,s.jsx)(n.h5,{id:"features",children:"features"}),"\n",(0,s.jsx)(n.pre,{children:(0,s.jsx)(n.code,{className:"language-ts",children:"features: any = _features;\n"})}),"\n",(0,s.jsx)(n.h4,{id:"defined-in-1",children:"Defined in"}),"\n",(0,s.jsx)(n.p,{children:(0,s.jsx)(n.a,{href:"https://github.com/sakitam-fdd/ol3Echarts/blob/master/packages/ol-echarts/src/index.ts#L50",children:"index.ts:50"})}),"\n",(0,s.jsx)(n.hr,{}),"\n",(0,s.jsx)(n.h3,{id:"bind",children:"bind()"}),"\n",(0,s.jsx)(n.pre,{children:(0,s.jsx)(n.code,{className:"language-ts",children:"static bind: (func, context, ...args) => Function;\n"})}),"\n",(0,s.jsx)(n.p,{children:"For a given function, creates a bound function that has the same body as the original function.\nThe this object of the bound function is associated with the specified object, and has the specified initial parameters."}),"\n",(0,s.jsx)(n.p,{children:"bind context"}),"\n",(0,s.jsx)(n.h4,{id:"parameters-2",children:"Parameters"}),"\n",(0,s.jsxs)(n.table,{children:[(0,s.jsx)(n.thead,{children:(0,s.jsxs)(n.tr,{children:[(0,s.jsx)(n.th,{children:"Parameter"}),(0,s.jsx)(n.th,{children:"Type"}),(0,s.jsx)(n.th,{children:"Description"})]})}),(0,s.jsxs)(n.tbody,{children:[(0,s.jsxs)(n.tr,{children:[(0,s.jsx)(n.td,{children:(0,s.jsx)(n.code,{children:"func"})}),(0,s.jsx)(n.td,{children:(0,s.jsx)(n.code,{children:"Function"})}),(0,s.jsx)(n.td,{})]}),(0,s.jsxs)(n.tr,{children:[(0,s.jsx)(n.td,{children:(0,s.jsx)(n.code,{children:"context"})}),(0,s.jsx)(n.td,{children:(0,s.jsx)(n.code,{children:"any"})}),(0,s.jsx)(n.td,{})]}),(0,s.jsxs)(n.tr,{children:[(0,s.jsxs)(n.td,{children:["...",(0,s.jsx)(n.code,{children:"args"})]}),(0,s.jsxs)(n.td,{children:[(0,s.jsx)(n.code,{children:"any"}),"[]"]}),(0,s.jsx)(n.td,{})]})]})]}),"\n",(0,s.jsx)(n.h4,{id:"returns-2",children:"Returns"}),"\n",(0,s.jsx)(n.p,{children:(0,s.jsx)(n.code,{children:"Function"})}),"\n",(0,s.jsx)(n.h4,{id:"param",children:"Param"}),"\n",(0,s.jsx)(n.p,{children:"An object to which the this keyword can refer inside the new function."}),"\n",(0,s.jsx)(n.h4,{id:"param-1",children:"Param"}),"\n",(0,s.jsx)(n.p,{children:"A list of arguments to be passed to the new function."}),"\n",(0,s.jsx)(n.h4,{id:"defined-in-2",children:"Defined in"}),"\n",(0,s.jsx)(n.p,{children:(0,s.jsx)(n.a,{href:"https://github.com/sakitam-fdd/ol3Echarts/blob/master/packages/ol-echarts/src/index.ts#L52",children:"index.ts:52"})}),"\n",(0,s.jsx)(n.hr,{}),"\n",(0,s.jsx)(n.h3,{id:"merge",children:"merge()"}),"\n",(0,s.jsx)(n.pre,{children:(0,s.jsx)(n.code,{className:"language-ts",children:"static merge: (a, b) => any;\n"})}),"\n",(0,s.jsx)(n.p,{children:"merge"}),"\n",(0,s.jsx)(n.h4,{id:"parameters-3",children:"Parameters"}),"\n",(0,s.jsxs)(n.table,{children:[(0,s.jsx)(n.thead,{children:(0,s.jsxs)(n.tr,{children:[(0,s.jsx)(n.th,{children:"Parameter"}),(0,s.jsx)(n.th,{children:"Type"}),(0,s.jsx)(n.th,{children:"Description"})]})}),(0,s.jsxs)(n.tbody,{children:[(0,s.jsxs)(n.tr,{children:[(0,s.jsx)(n.td,{children:(0,s.jsx)(n.code,{children:"a"})}),(0,s.jsx)(n.td,{children:(0,s.jsx)(n.code,{children:"any"})}),(0,s.jsx)(n.td,{})]}),(0,s.jsxs)(n.tr,{children:[(0,s.jsx)(n.td,{children:(0,s.jsx)(n.code,{children:"b"})}),(0,s.jsx)(n.td,{children:(0,s.jsx)(n.code,{children:"any"})}),(0,s.jsx)(n.td,{})]})]})]}),"\n",(0,s.jsx)(n.h4,{id:"returns-3",children:"Returns"}),"\n",(0,s.jsx)(n.p,{children:(0,s.jsx)(n.code,{children:"any"})}),"\n",(0,s.jsx)(n.h4,{id:"defined-in-3",children:"Defined in"}),"\n",(0,s.jsx)(n.p,{children:(0,s.jsx)(n.a,{href:"https://github.com/sakitam-fdd/ol3Echarts/blob/master/packages/ol-echarts/src/index.ts#L54",children:"index.ts:54"})}),"\n",(0,s.jsx)(n.hr,{}),"\n",(0,s.jsx)(n.h3,{id:"uuid",children:"uuid()"}),"\n",(0,s.jsx)(n.pre,{children:(0,s.jsx)(n.code,{className:"language-ts",children:"static uuid: () => string;\n"})}),"\n",(0,s.jsx)(n.h4,{id:"returns-4",children:"Returns"}),"\n",(0,s.jsx)(n.p,{children:(0,s.jsx)(n.code,{children:"string"})}),"\n",(0,s.jsx)(n.h4,{id:"defined-in-4",children:"Defined in"}),"\n",(0,s.jsx)(n.p,{children:(0,s.jsx)(n.a,{href:"https://github.com/sakitam-fdd/ol3Echarts/blob/master/packages/ol-echarts/src/index.ts#L56",children:"index.ts:56"})}),"\n",(0,s.jsx)(n.hr,{}),"\n",(0,s.jsx)(n.h3,{id:"bindall",children:"bindAll()"}),"\n",(0,s.jsx)(n.pre,{children:(0,s.jsx)(n.code,{className:"language-ts",children:"static bindAll: (fns, context) => void;\n"})}),"\n",(0,s.jsx)(n.p,{children:"bind function array"}),"\n",(0,s.jsx)(n.h4,{id:"parameters-4",children:"Parameters"}),"\n",(0,s.jsxs)(n.table,{children:[(0,s.jsx)(n.thead,{children:(0,s.jsxs)(n.tr,{children:[(0,s.jsx)(n.th,{children:"Parameter"}),(0,s.jsx)(n.th,{children:"Type"}),(0,s.jsx)(n.th,{children:"Description"})]})}),(0,s.jsxs)(n.tbody,{children:[(0,s.jsxs)(n.tr,{children:[(0,s.jsx)(n.td,{children:(0,s.jsx)(n.code,{children:"fns"})}),(0,s.jsxs)(n.td,{children:[(0,s.jsx)(n.code,{children:"string"}),"[] | ",(0,s.jsx)(n.code,{children:"number"}),"[]"]}),(0,s.jsx)(n.td,{})]}),(0,s.jsxs)(n.tr,{children:[(0,s.jsx)(n.td,{children:(0,s.jsx)(n.code,{children:"context"})}),(0,s.jsx)(n.td,{children:(0,s.jsx)(n.code,{children:"any"})}),(0,s.jsx)(n.td,{})]})]})]}),"\n",(0,s.jsx)(n.h4,{id:"returns-5",children:"Returns"}),"\n",(0,s.jsx)(n.p,{children:(0,s.jsx)(n.code,{children:"void"})}),"\n",(0,s.jsx)(n.h4,{id:"defined-in-5",children:"Defined in"}),"\n",(0,s.jsx)(n.p,{children:(0,s.jsx)(n.a,{href:"https://github.com/sakitam-fdd/ol3Echarts/blob/master/packages/ol-echarts/src/index.ts#L58",children:"index.ts:58"})}),"\n",(0,s.jsx)(n.hr,{}),"\n",(0,s.jsx)(n.h3,{id:"arrayadd",children:"arrayAdd()"}),"\n",(0,s.jsx)(n.pre,{children:(0,s.jsx)(n.code,{className:"language-ts",children:"static arrayAdd: (array, item) => any[];\n"})}),"\n",(0,s.jsx)(n.p,{children:"add own item"}),"\n",(0,s.jsx)(n.h4,{id:"parameters-5",children:"Parameters"}),"\n",(0,s.jsxs)(n.table,{children:[(0,s.jsx)(n.thead,{children:(0,s.jsxs)(n.tr,{children:[(0,s.jsx)(n.th,{children:"Parameter"}),(0,s.jsx)(n.th,{children:"Type"}),(0,s.jsx)(n.th,{children:"Description"})]})}),(0,s.jsxs)(n.tbody,{children:[(0,s.jsxs)(n.tr,{children:[(0,s.jsx)(n.td,{children:(0,s.jsx)(n.code,{children:"array"})}),(0,s.jsxs)(n.td,{children:[(0,s.jsx)(n.code,{children:"any"}),"[]"]}),(0,s.jsx)(n.td,{})]}),(0,s.jsxs)(n.tr,{children:[(0,s.jsx)(n.td,{children:(0,s.jsx)(n.code,{children:"item"})}),(0,s.jsx)(n.td,{children:(0,s.jsx)(n.code,{children:"any"})}),(0,s.jsx)(n.td,{})]})]})]}),"\n",(0,s.jsx)(n.h4,{id:"returns-6",children:"Returns"}),"\n",(0,s.jsxs)(n.p,{children:[(0,s.jsx)(n.code,{children:"any"}),"[]"]}),"\n",(0,s.jsx)(n.h4,{id:"defined-in-6",children:"Defined in"}),"\n",(0,s.jsx)(n.p,{children:(0,s.jsx)(n.a,{href:"https://github.com/sakitam-fdd/ol3Echarts/blob/master/packages/ol-echarts/src/index.ts#L60",children:"index.ts:60"})}),"\n",(0,s.jsx)(n.hr,{}),"\n",(0,s.jsx)(n.h3,{id:"removenode",children:"removeNode()"}),"\n",(0,s.jsx)(n.pre,{children:(0,s.jsx)(n.code,{className:"language-ts",children:"static removeNode: (node) => null | HTMLElement;\n"})}),"\n",(0,s.jsx)(n.p,{children:"remove node"}),"\n",(0,s.jsx)(n.h4,{id:"parameters-6",children:"Parameters"}),"\n",(0,s.jsxs)(n.table,{children:[(0,s.jsx)(n.thead,{children:(0,s.jsxs)(n.tr,{children:[(0,s.jsx)(n.th,{children:"Parameter"}),(0,s.jsx)(n.th,{children:"Type"}),(0,s.jsx)(n.th,{children:"Description"})]})}),(0,s.jsx)(n.tbody,{children:(0,s.jsxs)(n.tr,{children:[(0,s.jsx)(n.td,{children:(0,s.jsx)(n.code,{children:"node"})}),(0,s.jsx)(n.td,{children:(0,s.jsx)(n.code,{children:"HTMLElement"})}),(0,s.jsx)(n.td,{})]})})]}),"\n",(0,s.jsx)(n.h4,{id:"returns-7",children:"Returns"}),"\n",(0,s.jsxs)(n.p,{children:[(0,s.jsx)(n.code,{children:"null"})," | ",(0,s.jsx)(n.code,{children:"HTMLElement"})]}),"\n",(0,s.jsx)(n.h4,{id:"defined-in-7",children:"Defined in"}),"\n",(0,s.jsx)(n.p,{children:(0,s.jsx)(n.a,{href:"https://github.com/sakitam-fdd/ol3Echarts/blob/master/packages/ol-echarts/src/index.ts#L62",children:"index.ts:62"})}),"\n",(0,s.jsx)(n.hr,{}),"\n",(0,s.jsx)(n.h3,{id:"isobject",children:"isObject()"}),"\n",(0,s.jsx)(n.pre,{children:(0,s.jsx)(n.code,{className:"language-ts",children:"static isObject: (value) => boolean;\n"})}),"\n",(0,s.jsx)(n.p,{children:"\u5224\u65ad\u662f\u5426\u4e3a\u5bf9\u8c61"}),"\n",(0,s.jsx)(n.h4,{id:"parameters-7",children:"Parameters"}),"\n",(0,s.jsxs)(n.table,{children:[(0,s.jsx)(n.thead,{children:(0,s.jsxs)(n.tr,{children:[(0,s.jsx)(n.th,{children:"Parameter"}),(0,s.jsx)(n.th,{children:"Type"}),(0,s.jsx)(n.th,{children:"Description"})]})}),(0,s.jsx)(n.tbody,{children:(0,s.jsxs)(n.tr,{children:[(0,s.jsx)(n.td,{children:(0,s.jsx)(n.code,{children:"value"})}),(0,s.jsx)(n.td,{children:(0,s.jsx)(n.code,{children:"any"})}),(0,s.jsx)(n.td,{})]})})]}),"\n",(0,s.jsx)(n.h4,{id:"returns-8",children:"Returns"}),"\n",(0,s.jsx)(n.p,{children:(0,s.jsx)(n.code,{children:"boolean"})}),"\n",(0,s.jsx)(n.h4,{id:"defined-in-8",children:"Defined in"}),"\n",(0,s.jsx)(n.p,{children:(0,s.jsx)(n.a,{href:"https://github.com/sakitam-fdd/ol3Echarts/blob/master/packages/ol-echarts/src/index.ts#L64",children:"index.ts:64"})}),"\n",(0,s.jsx)(n.hr,{}),"\n",(0,s.jsx)(n.h3,{id:"chart",children:"$chart"}),"\n",(0,s.jsx)(n.pre,{children:(0,s.jsx)(n.code,{className:"language-ts",children:"$chart: any;\n"})}),"\n",(0,s.jsx)(n.h4,{id:"defined-in-9",children:"Defined in"}),"\n",(0,s.jsx)(n.p,{children:(0,s.jsx)(n.a,{href:"https://github.com/sakitam-fdd/ol3Echarts/blob/master/packages/ol-echarts/src/index.ts#L82",children:"index.ts:82"})}),"\n",(0,s.jsx)(n.hr,{}),"\n",(0,s.jsx)(n.h3,{id:"container",children:"$container"}),"\n",(0,s.jsx)(n.pre,{children:(0,s.jsx)(n.code,{className:"language-ts",children:"$container: NoDef<HTMLElement>;\n"})}),"\n",(0,s.jsx)(n.h4,{id:"defined-in-10",children:"Defined in"}),"\n",(0,s.jsx)(n.p,{children:(0,s.jsx)(n.a,{href:"https://github.com/sakitam-fdd/ol3Echarts/blob/master/packages/ol-echarts/src/index.ts#L84",children:"index.ts:84"})}),"\n",(0,s.jsx)(n.hr,{}),"\n",(0,s.jsx)(n.h3,{id:"_map",children:"_map"}),"\n",(0,s.jsx)(n.pre,{children:(0,s.jsx)(n.code,{className:"language-ts",children:"_map: any;\n"})}),"\n",(0,s.jsx)(n.h4,{id:"defined-in-11",children:"Defined in"}),"\n",(0,s.jsx)(n.p,{children:(0,s.jsx)(n.a,{href:"https://github.com/sakitam-fdd/ol3Echarts/blob/master/packages/ol-echarts/src/index.ts#L86",children:"index.ts:86"})}),"\n",(0,s.jsx)(n.h2,{id:"methods",children:"Methods"}),"\n",(0,s.jsx)(n.h3,{id:"appendto",children:"appendTo()"}),"\n",(0,s.jsx)(n.pre,{children:(0,s.jsx)(n.code,{className:"language-ts",children:"appendTo(map, forceIgnore): void\n"})}),"\n",(0,s.jsx)(n.p,{children:"append layer to map"}),"\n",(0,s.jsx)(n.h4,{id:"parameters-8",children:"Parameters"}),"\n",(0,s.jsxs)(n.table,{children:[(0,s.jsx)(n.thead,{children:(0,s.jsxs)(n.tr,{children:[(0,s.jsx)(n.th,{children:"Parameter"}),(0,s.jsx)(n.th,{children:"Type"}),(0,s.jsx)(n.th,{children:"Default value"}),(0,s.jsx)(n.th,{children:"Description"})]})}),(0,s.jsxs)(n.tbody,{children:[(0,s.jsxs)(n.tr,{children:[(0,s.jsx)(n.td,{children:(0,s.jsx)(n.code,{children:"map"})}),(0,s.jsx)(n.td,{children:(0,s.jsx)(n.code,{children:"any"})}),(0,s.jsx)(n.td,{children:(0,s.jsx)(n.code,{children:"undefined"})}),(0,s.jsx)(n.td,{})]}),(0,s.jsxs)(n.tr,{children:[(0,s.jsx)(n.td,{children:(0,s.jsx)(n.code,{children:"forceIgnore"})}),(0,s.jsx)(n.td,{children:(0,s.jsx)(n.code,{children:"boolean"})}),(0,s.jsx)(n.td,{children:(0,s.jsx)(n.code,{children:"false"})}),(0,s.jsx)(n.td,{})]})]})]}),"\n",(0,s.jsx)(n.h4,{id:"returns-9",children:"Returns"}),"\n",(0,s.jsx)(n.p,{children:(0,s.jsx)(n.code,{children:"void"})}),"\n",(0,s.jsx)(n.h4,{id:"defined-in-12",children:"Defined in"}),"\n",(0,s.jsx)(n.p,{children:(0,s.jsx)(n.a,{href:"https://github.com/sakitam-fdd/ol3Echarts/blob/master/packages/ol-echarts/src/index.ts#L174",children:"index.ts:174"})}),"\n",(0,s.jsx)(n.hr,{}),"\n",(0,s.jsx)(n.h3,{id:"getmap",children:"getMap()"}),"\n",(0,s.jsx)(n.pre,{children:(0,s.jsx)(n.code,{className:"language-ts",children:"getMap(): Map\n"})}),"\n",(0,s.jsx)(n.p,{children:"get ol map"}),"\n",(0,s.jsx)(n.h4,{id:"returns-10",children:"Returns"}),"\n",(0,s.jsx)(n.p,{children:(0,s.jsx)(n.code,{children:"Map"})}),"\n",(0,s.jsx)(n.h4,{id:"defined-in-13",children:"Defined in"}),"\n",(0,s.jsx)(n.p,{children:(0,s.jsx)(n.a,{href:"https://github.com/sakitam-fdd/ol3Echarts/blob/master/packages/ol-echarts/src/index.ts#L182",children:"index.ts:182"})}),"\n",(0,s.jsx)(n.hr,{}),"\n",(0,s.jsx)(n.h3,{id:"setmap",children:"setMap()"}),"\n",(0,s.jsx)(n.pre,{children:(0,s.jsx)(n.code,{className:"language-ts",children:"setMap(map, forceIgnore): void\n"})}),"\n",(0,s.jsx)(n.p,{children:"set map"}),"\n",(0,s.jsx)(n.h4,{id:"parameters-9",children:"Parameters"}),"\n",(0,s.jsxs)(n.table,{children:[(0,s.jsx)(n.thead,{children:(0,s.jsxs)(n.tr,{children:[(0,s.jsx)(n.th,{children:"Parameter"}),(0,s.jsx)(n.th,{children:"Type"}),(0,s.jsx)(n.th,{children:"Default value"}),(0,s.jsx)(n.th,{children:"Description"})]})}),(0,s.jsxs)(n.tbody,{children:[(0,s.jsxs)(n.tr,{children:[(0,s.jsx)(n.td,{children:(0,s.jsx)(n.code,{children:"map"})}),(0,s.jsx)(n.td,{children:(0,s.jsx)(n.code,{children:"any"})}),(0,s.jsx)(n.td,{children:(0,s.jsx)(n.code,{children:"undefined"})}),(0,s.jsx)(n.td,{})]}),(0,s.jsxs)(n.tr,{children:[(0,s.jsx)(n.td,{children:(0,s.jsx)(n.code,{children:"forceIgnore"})}),(0,s.jsx)(n.td,{children:(0,s.jsx)(n.code,{children:"boolean"})}),(0,s.jsx)(n.td,{children:(0,s.jsx)(n.code,{children:"false"})}),(0,s.jsx)(n.td,{children:"\u662f\u5426\u5ffd\u7565instanceof\u68c0\u67e5"})]})]})]}),"\n",(0,s.jsx)(n.h4,{id:"returns-11",children:"Returns"}),"\n",(0,s.jsx)(n.p,{children:(0,s.jsx)(n.code,{children:"void"})}),"\n",(0,s.jsx)(n.h4,{id:"defined-in-14",children:"Defined in"}),"\n",(0,s.jsx)(n.p,{children:(0,s.jsx)(n.a,{href:"https://github.com/sakitam-fdd/ol3Echarts/blob/master/packages/ol-echarts/src/index.ts#L191",children:"index.ts:191"})}),"\n",(0,s.jsx)(n.hr,{}),"\n",(0,s.jsx)(n.h3,{id:"getchartoptions",children:"getChartOptions()"}),"\n",(0,s.jsx)(n.pre,{children:(0,s.jsx)(n.code,{className:"language-ts",children:"getChartOptions(): undefined | null | object\n"})}),"\n",(0,s.jsx)(n.p,{children:"get echarts options"}),"\n",(0,s.jsx)(n.h4,{id:"returns-12",children:"Returns"}),"\n",(0,s.jsxs)(n.p,{children:[(0,s.jsx)(n.code,{children:"undefined"})," | ",(0,s.jsx)(n.code,{children:"null"})," | ",(0,s.jsx)(n.code,{children:"object"})]}),"\n",(0,s.jsx)(n.h4,{id:"defined-in-15",children:"Defined in"}),"\n",(0,s.jsx)(n.p,{children:(0,s.jsx)(n.a,{href:"https://github.com/sakitam-fdd/ol3Echarts/blob/master/packages/ol-echarts/src/index.ts#L206",children:"index.ts:206"})}),"\n",(0,s.jsx)(n.hr,{}),"\n",(0,s.jsx)(n.h3,{id:"setchartoptions",children:"setChartOptions()"}),"\n",(0,s.jsx)(n.pre,{children:(0,s.jsx)(n.code,{className:"language-ts",children:"setChartOptions(options): default\n"})}),"\n",(0,s.jsx)(n.p,{children:"set echarts options and redraw"}),"\n",(0,s.jsx)(n.h4,{id:"parameters-10",children:"Parameters"}),"\n",(0,s.jsxs)(n.table,{children:[(0,s.jsx)(n.thead,{children:(0,s.jsxs)(n.tr,{children:[(0,s.jsx)(n.th,{children:"Parameter"}),(0,s.jsx)(n.th,{children:"Type"}),(0,s.jsx)(n.th,{children:"Description"})]})}),(0,s.jsx)(n.tbody,{children:(0,s.jsxs)(n.tr,{children:[(0,s.jsx)(n.td,{children:(0,s.jsx)(n.code,{children:"options"})}),(0,s.jsx)(n.td,{children:(0,s.jsx)(n.code,{children:"object"})}),(0,s.jsx)(n.td,{})]})})]}),"\n",(0,s.jsx)(n.h4,{id:"returns-13",children:"Returns"}),"\n",(0,s.jsx)(n.p,{children:(0,s.jsx)(n.a,{href:"/ol3Echarts/docs/typedoc/ol-echarts/classes/default",children:(0,s.jsx)(n.code,{children:"default"})})}),"\n",(0,s.jsx)(n.h4,{id:"defined-in-16",children:"Defined in"}),"\n",(0,s.jsx)(n.p,{children:(0,s.jsx)(n.a,{href:"https://github.com/sakitam-fdd/ol3Echarts/blob/master/packages/ol-echarts/src/index.ts#L215",children:"index.ts:215"})}),"\n",(0,s.jsx)(n.hr,{}),"\n",(0,s.jsx)(n.h3,{id:"appenddata",children:"appendData()"}),"\n",(0,s.jsx)(n.pre,{children:(0,s.jsx)(n.code,{className:"language-ts",children:"appendData(data, save): default\n"})}),"\n",(0,s.jsx)(n.p,{children:"append data"}),"\n",(0,s.jsx)(n.h4,{id:"parameters-11",children:"Parameters"}),"\n",(0,s.jsxs)(n.table,{children:[(0,s.jsx)(n.thead,{children:(0,s.jsxs)(n.tr,{children:[(0,s.jsx)(n.th,{children:"Parameter"}),(0,s.jsx)(n.th,{children:"Type"}),(0,s.jsx)(n.th,{children:"Default value"}),(0,s.jsx)(n.th,{children:"Description"})]})}),(0,s.jsxs)(n.tbody,{children:[(0,s.jsxs)(n.tr,{children:[(0,s.jsx)(n.td,{children:(0,s.jsx)(n.code,{children:"data"})}),(0,s.jsx)(n.td,{children:(0,s.jsx)(n.code,{children:"any"})}),(0,s.jsx)(n.td,{children:(0,s.jsx)(n.code,{children:"undefined"})}),(0,s.jsx)(n.td,{})]}),(0,s.jsxs)(n.tr,{children:[(0,s.jsx)(n.td,{children:(0,s.jsx)(n.code,{children:"save"})}),(0,s.jsxs)(n.td,{children:[(0,s.jsx)(n.code,{children:"undefined"})," | ",(0,s.jsx)(n.code,{children:"null"})," | ",(0,s.jsx)(n.code,{children:"boolean"})]}),(0,s.jsx)(n.td,{children:(0,s.jsx)(n.code,{children:"true"})}),(0,s.jsx)(n.td,{})]})]})]}),"\n",(0,s.jsx)(n.h4,{id:"returns-14",children:"Returns"}),"\n",(0,s.jsx)(n.p,{children:(0,s.jsx)(n.a,{href:"/ol3Echarts/docs/typedoc/ol-echarts/classes/default",children:(0,s.jsx)(n.code,{children:"default"})})}),"\n",(0,s.jsx)(n.h4,{id:"defined-in-17",children:"Defined in"}),"\n",(0,s.jsx)(n.p,{children:(0,s.jsx)(n.a,{href:"https://github.com/sakitam-fdd/ol3Echarts/blob/master/packages/ol-echarts/src/index.ts#L228",children:"index.ts:228"})}),"\n",(0,s.jsx)(n.hr,{}),"\n",(0,s.jsx)(n.h3,{id:"clear",children:"clear()"}),"\n",(0,s.jsx)(n.pre,{children:(0,s.jsx)(n.code,{className:"language-ts",children:"clear(keep?): void\n"})}),"\n",(0,s.jsx)(n.p,{children:"clear layer"}),"\n",(0,s.jsx)(n.h4,{id:"parameters-12",children:"Parameters"}),"\n",(0,s.jsxs)(n.table,{children:[(0,s.jsx)(n.thead,{children:(0,s.jsxs)(n.tr,{children:[(0,s.jsx)(n.th,{children:"Parameter"}),(0,s.jsx)(n.th,{children:"Type"})]})}),(0,s.jsx)(n.tbody,{children:(0,s.jsxs)(n.tr,{children:[(0,s.jsxs)(n.td,{children:[(0,s.jsx)(n.code,{children:"keep"}),"?"]}),(0,s.jsx)(n.td,{children:(0,s.jsx)(n.code,{children:"boolean"})})]})})]}),"\n",(0,s.jsx)(n.h4,{id:"returns-15",children:"Returns"}),"\n",(0,s.jsx)(n.p,{children:(0,s.jsx)(n.code,{children:"void"})}),"\n",(0,s.jsx)(n.h4,{id:"defined-in-18",children:"Defined in"}),"\n",(0,s.jsx)(n.p,{children:(0,s.jsx)(n.a,{href:"https://github.com/sakitam-fdd/ol3Echarts/blob/master/packages/ol-echarts/src/index.ts#L249",children:"index.ts:249"})}),"\n",(0,s.jsx)(n.hr,{}),"\n",(0,s.jsx)(n.h3,{id:"remove",children:"remove()"}),"\n",(0,s.jsx)(n.pre,{children:(0,s.jsx)(n.code,{className:"language-ts",children:"remove(): void\n"})}),"\n",(0,s.jsx)(n.p,{children:"remove layer"}),"\n",(0,s.jsx)(n.h4,{id:"returns-16",children:"Returns"}),"\n",(0,s.jsx)(n.p,{children:(0,s.jsx)(n.code,{children:"void"})}),"\n",(0,s.jsx)(n.h4,{id:"defined-in-19",children:"Defined in"}),"\n",(0,s.jsx)(n.p,{children:(0,s.jsx)(n.a,{href:"https://github.com/sakitam-fdd/ol3Echarts/blob/master/packages/ol-echarts/src/index.ts#L261",children:"index.ts:261"})}),"\n",(0,s.jsx)(n.hr,{}),"\n",(0,s.jsx)(n.h3,{id:"show",children:"show()"}),"\n",(0,s.jsx)(n.pre,{children:(0,s.jsx)(n.code,{className:"language-ts",children:"show(): void\n"})}),"\n",(0,s.jsx)(n.p,{children:"show layer"}),"\n",(0,s.jsx)(n.h4,{id:"returns-17",children:"Returns"}),"\n",(0,s.jsx)(n.p,{children:(0,s.jsx)(n.code,{children:"void"})}),"\n",(0,s.jsx)(n.h4,{id:"defined-in-20",children:"Defined in"}),"\n",(0,s.jsx)(n.p,{children:(0,s.jsx)(n.a,{href:"https://github.com/sakitam-fdd/ol3Echarts/blob/master/packages/ol-echarts/src/index.ts#L278",children:"index.ts:278"})}),"\n",(0,s.jsx)(n.hr,{}),"\n",(0,s.jsx)(n.h3,{id:"hide",children:"hide()"}),"\n",(0,s.jsx)(n.pre,{children:(0,s.jsx)(n.code,{className:"language-ts",children:"hide(): void\n"})}),"\n",(0,s.jsx)(n.p,{children:"hide layer"}),"\n",(0,s.jsx)(n.h4,{id:"returns-18",children:"Returns"}),"\n",(0,s.jsx)(n.p,{children:(0,s.jsx)(n.code,{children:"void"})}),"\n",(0,s.jsx)(n.h4,{id:"defined-in-21",children:"Defined in"}),"\n",(0,s.jsx)(n.p,{children:(0,s.jsx)(n.a,{href:"https://github.com/sakitam-fdd/ol3Echarts/blob/master/packages/ol-echarts/src/index.ts#L292",children:"index.ts:292"})}),"\n",(0,s.jsx)(n.hr,{}),"\n",(0,s.jsx)(n.h3,{id:"isvisible",children:"isVisible()"}),"\n",(0,s.jsx)(n.pre,{children:(0,s.jsx)(n.code,{className:"language-ts",children:"isVisible(): undefined | boolean\n"})}),"\n",(0,s.jsx)(n.p,{children:"check layer is visible"}),"\n",(0,s.jsx)(n.h4,{id:"returns-19",children:"Returns"}),"\n",(0,s.jsxs)(n.p,{children:[(0,s.jsx)(n.code,{children:"undefined"})," | ",(0,s.jsx)(n.code,{children:"boolean"})]}),"\n",(0,s.jsx)(n.h4,{id:"defined-in-22",children:"Defined in"}),"\n",(0,s.jsx)(n.p,{children:(0,s.jsx)(n.a,{href:"https://github.com/sakitam-fdd/ol3Echarts/blob/master/packages/ol-echarts/src/index.ts#L306",children:"index.ts:306"})}),"\n",(0,s.jsx)(n.hr,{}),"\n",(0,s.jsx)(n.h3,{id:"showloading",children:"showLoading()"}),"\n",(0,s.jsx)(n.pre,{children:(0,s.jsx)(n.code,{className:"language-ts",children:"showLoading(): void\n"})}),"\n",(0,s.jsx)(n.p,{children:"show loading bar"}),"\n",(0,s.jsx)(n.h4,{id:"returns-20",children:"Returns"}),"\n",(0,s.jsx)(n.p,{children:(0,s.jsx)(n.code,{children:"void"})}),"\n",(0,s.jsx)(n.h4,{id:"defined-in-23",children:"Defined in"}),"\n",(0,s.jsx)(n.p,{children:(0,s.jsx)(n.a,{href:"https://github.com/sakitam-fdd/ol3Echarts/blob/master/packages/ol-echarts/src/index.ts#L313",children:"index.ts:313"})}),"\n",(0,s.jsx)(n.hr,{}),"\n",(0,s.jsx)(n.h3,{id:"hideloading",children:"hideLoading()"}),"\n",(0,s.jsx)(n.pre,{children:(0,s.jsx)(n.code,{className:"language-ts",children:"hideLoading(): void\n"})}),"\n",(0,s.jsx)(n.p,{children:"hide loading bar"}),"\n",(0,s.jsx)(n.h4,{id:"returns-21",children:"Returns"}),"\n",(0,s.jsx)(n.p,{children:(0,s.jsx)(n.code,{children:"void"})}),"\n",(0,s.jsx)(n.h4,{id:"defined-in-24",children:"Defined in"}),"\n",(0,s.jsx)(n.p,{children:(0,s.jsx)(n.a,{href:"https://github.com/sakitam-fdd/ol3Echarts/blob/master/packages/ol-echarts/src/index.ts#L322",children:"index.ts:322"})}),"\n",(0,s.jsx)(n.hr,{}),"\n",(0,s.jsx)(n.h3,{id:"setzindex",children:"setZIndex()"}),"\n",(0,s.jsx)(n.pre,{children:(0,s.jsx)(n.code,{className:"language-ts",children:"setZIndex(zIndex): void\n"})}),"\n",(0,s.jsx)(n.p,{children:"set zindex"}),"\n",(0,s.jsx)(n.h4,{id:"parameters-13",children:"Parameters"}),"\n",(0,s.jsxs)(n.table,{children:[(0,s.jsx)(n.thead,{children:(0,s.jsxs)(n.tr,{children:[(0,s.jsx)(n.th,{children:"Parameter"}),(0,s.jsx)(n.th,{children:"Type"}),(0,s.jsx)(n.th,{children:"Description"})]})}),(0,s.jsx)(n.tbody,{children:(0,s.jsxs)(n.tr,{children:[(0,s.jsx)(n.td,{children:(0,s.jsx)(n.code,{children:"zIndex"})}),(0,s.jsxs)(n.td,{children:[(0,s.jsx)(n.code,{children:"string"})," | ",(0,s.jsx)(n.code,{children:"number"})]}),(0,s.jsx)(n.td,{})]})})]}),"\n",(0,s.jsx)(n.h4,{id:"returns-22",children:"Returns"}),"\n",(0,s.jsx)(n.p,{children:(0,s.jsx)(n.code,{children:"void"})}),"\n",(0,s.jsx)(n.h4,{id:"defined-in-25",children:"Defined in"}),"\n",(0,s.jsx)(n.p,{children:(0,s.jsx)(n.a,{href:"https://github.com/sakitam-fdd/ol3Echarts/blob/master/packages/ol-echarts/src/index.ts#L332",children:"index.ts:332"})}),"\n",(0,s.jsx)(n.hr,{}),"\n",(0,s.jsx)(n.h3,{id:"getzindex",children:"getZIndex()"}),"\n",(0,s.jsx)(n.pre,{children:(0,s.jsx)(n.code,{className:"language-ts",children:"getZIndex(): undefined | string\n"})}),"\n",(0,s.jsx)(n.p,{children:"get zindex"}),"\n",(0,s.jsx)(n.h4,{id:"returns-23",children:"Returns"}),"\n",(0,s.jsxs)(n.p,{children:[(0,s.jsx)(n.code,{children:"undefined"})," | ",(0,s.jsx)(n.code,{children:"string"})]}),"\n",(0,s.jsx)(n.h4,{id:"defined-in-26",children:"Defined in"}),"\n",(0,s.jsx)(n.p,{children:(0,s.jsx)(n.a,{href:"https://github.com/sakitam-fdd/ol3Echarts/blob/master/packages/ol-echarts/src/index.ts#L344",children:"index.ts:344"})}),"\n",(0,s.jsx)(n.hr,{}),"\n",(0,s.jsx)(n.h3,{id:"setvisible",children:"setVisible()"}),"\n",(0,s.jsx)(n.pre,{children:(0,s.jsx)(n.code,{className:"language-ts",children:"setVisible(visible): void\n"})}),"\n",(0,s.jsxs)(n.p,{children:["set visible\nfrom: ",(0,s.jsx)(n.a,{href:"https://github.com/sakitam-fdd/ol3Echarts/blob/3929ad72f562661ba3511d4d9e360dee5ac793c2/",children:"https://github.com/sakitam-fdd/ol3Echarts/blob/3929ad72f562661ba3511d4d9e360dee5ac793c2/"}),"\npackages/ol-echarts/src/index.js\nauthor: ",(0,s.jsx)(n.a,{href:"https://github.com/ChenGuanglin0924",children:"https://github.com/ChenGuanglin0924"})]}),"\n",(0,s.jsx)(n.h4,{id:"parameters-14",children:"Parameters"}),"\n",(0,s.jsxs)(n.table,{children:[(0,s.jsx)(n.thead,{children:(0,s.jsxs)(n.tr,{children:[(0,s.jsx)(n.th,{children:"Parameter"}),(0,s.jsx)(n.th,{children:"Type"}),(0,s.jsx)(n.th,{children:"Description"})]})}),(0,s.jsx)(n.tbody,{children:(0,s.jsxs)(n.tr,{children:[(0,s.jsx)(n.td,{children:(0,s.jsx)(n.code,{children:"visible"})}),(0,s.jsx)(n.td,{children:(0,s.jsx)(n.code,{children:"boolean"})}),(0,s.jsx)(n.td,{})]})})]}),"\n",(0,s.jsx)(n.h4,{id:"returns-24",children:"Returns"}),"\n",(0,s.jsx)(n.p,{children:(0,s.jsx)(n.code,{children:"void"})}),"\n",(0,s.jsx)(n.h4,{id:"defined-in-27",children:"Defined in"}),"\n",(0,s.jsx)(n.p,{children:(0,s.jsx)(n.a,{href:"https://github.com/sakitam-fdd/ol3Echarts/blob/master/packages/ol-echarts/src/index.ts#L355",children:"index.ts:355"})}),"\n",(0,s.jsx)(n.hr,{}),"\n",(0,s.jsx)(n.h3,{id:"render",children:"render()"}),"\n",(0,s.jsx)(n.pre,{children:(0,s.jsx)(n.code,{className:"language-ts",children:"render(): void\n"})}),"\n",(0,s.jsx)(n.p,{children:"render"}),"\n",(0,s.jsx)(n.h4,{id:"returns-25",children:"Returns"}),"\n",(0,s.jsx)(n.p,{children:(0,s.jsx)(n.code,{children:"void"})}),"\n",(0,s.jsx)(n.h4,{id:"defined-in-28",children:"Defined in"}),"\n",(0,s.jsx)(n.p,{children:(0,s.jsx)(n.a,{href:"https://github.com/sakitam-fdd/ol3Echarts/blob/master/packages/ol-echarts/src/index.ts#L375",children:"index.ts:375"})}),"\n",(0,s.jsx)(n.hr,{}),"\n",(0,s.jsx)(n.h3,{id:"redraw",children:"redraw()"}),"\n",(0,s.jsx)(n.pre,{children:(0,s.jsx)(n.code,{className:"language-ts",children:"redraw(): void\n"})}),"\n",(0,s.jsx)(n.p,{children:"redraw echarts layer"}),"\n",(0,s.jsx)(n.h4,{id:"returns-26",children:"Returns"}),"\n",(0,s.jsx)(n.p,{children:(0,s.jsx)(n.code,{children:"void"})}),"\n",(0,s.jsx)(n.h4,{id:"defined-in-29",children:"Defined in"}),"\n",(0,s.jsx)(n.p,{children:(0,s.jsx)(n.a,{href:"https://github.com/sakitam-fdd/ol3Echarts/blob/master/packages/ol-echarts/src/index.ts#L396",children:"index.ts:396"})}),"\n",(0,s.jsx)(n.hr,{}),"\n",(0,s.jsx)(n.h3,{id:"updateviewsize",children:"updateViewSize()"}),"\n",(0,s.jsx)(n.pre,{children:(0,s.jsx)(n.code,{className:"language-ts",children:"updateViewSize(size?): void\n"})}),"\n",(0,s.jsx)(n.p,{children:"update container size"}),"\n",(0,s.jsx)(n.h4,{id:"parameters-15",children:"Parameters"}),"\n",(0,s.jsxs)(n.table,{children:[(0,s.jsx)(n.thead,{children:(0,s.jsxs)(n.tr,{children:[(0,s.jsx)(n.th,{children:"Parameter"}),(0,s.jsx)(n.th,{children:"Type"}),(0,s.jsx)(n.th,{children:"Description"})]})}),(0,s.jsx)(n.tbody,{children:(0,s.jsxs)(n.tr,{children:[(0,s.jsxs)(n.td,{children:[(0,s.jsx)(n.code,{children:"size"}),"?"]}),(0,s.jsxs)(n.td,{children:[(0,s.jsx)(n.code,{children:"number"}),"[]"]}),(0,s.jsx)(n.td,{})]})})]}),"\n",(0,s.jsx)(n.h4,{id:"returns-27",children:"Returns"}),"\n",(0,s.jsx)(n.p,{children:(0,s.jsx)(n.code,{children:"void"})}),"\n",(0,s.jsx)(n.h4,{id:"defined-in-30",children:"Defined in"}),"\n",(0,s.jsx)(n.p,{children:(0,s.jsx)(n.a,{href:"https://github.com/sakitam-fdd/ol3Echarts/blob/master/packages/ol-echarts/src/index.ts#L404",children:"index.ts:404"})}),"\n",(0,s.jsx)(n.hr,{}),"\n",(0,s.jsx)(n.h3,{id:"dispatchevent",children:"dispatchEvent()"}),"\n",(0,s.jsx)(n.pre,{children:(0,s.jsx)(n.code,{className:"language-ts",children:"dispatchEvent(event): undefined | boolean\n"})}),"\n",(0,s.jsx)(n.p,{children:"dispatch event"}),"\n",(0,s.jsx)(n.h4,{id:"parameters-16",children:"Parameters"}),"\n",(0,s.jsxs)(n.table,{children:[(0,s.jsx)(n.thead,{children:(0,s.jsxs)(n.tr,{children:[(0,s.jsx)(n.th,{children:"Parameter"}),(0,s.jsx)(n.th,{children:"Type"}),(0,s.jsx)(n.th,{children:"Description"})]})}),(0,s.jsx)(n.tbody,{children:(0,s.jsxs)(n.tr,{children:[(0,s.jsx)(n.td,{children:(0,s.jsx)(n.code,{children:"event"})}),(0,s.jsxs)(n.td,{children:[(0,s.jsx)(n.code,{children:"string"})," | ",(0,s.jsx)(n.code,{children:"object"})," | ",(0,s.jsx)(n.code,{children:"BaseEvent"})]}),(0,s.jsx)(n.td,{})]})})]}),"\n",(0,s.jsx)(n.h4,{id:"returns-28",children:"Returns"}),"\n",(0,s.jsxs)(n.p,{children:[(0,s.jsx)(n.code,{children:"undefined"})," | ",(0,s.jsx)(n.code,{children:"boolean"})]}),"\n",(0,s.jsx)(n.h4,{id:"overrides-1",children:"Overrides"}),"\n",(0,s.jsx)(n.p,{children:(0,s.jsx)(n.code,{children:"obj.dispatchEvent"})}),"\n",(0,s.jsx)(n.h4,{id:"defined-in-31",children:"Defined in"}),"\n",(0,s.jsx)(n.p,{children:(0,s.jsx)(n.a,{href:"https://github.com/sakitam-fdd/ol3Echarts/blob/master/packages/ol-echarts/src/index.ts#L988",children:"index.ts:988"})}),"\n",(0,s.jsx)(n.hr,{}),"\n",(0,s.jsx)(n.h3,{id:"set",children:"set()"}),"\n",(0,s.jsx)(n.pre,{children:(0,s.jsx)(n.code,{className:"language-ts",children:"set(\n key, \n value, \n optSilent?): void\n"})}),"\n",(0,s.jsx)(n.p,{children:"Sets a value."}),"\n",(0,s.jsx)(n.h4,{id:"parameters-17",children:"Parameters"}),"\n",(0,s.jsxs)(n.table,{children:[(0,s.jsx)(n.thead,{children:(0,s.jsxs)(n.tr,{children:[(0,s.jsx)(n.th,{children:"Parameter"}),(0,s.jsx)(n.th,{children:"Type"}),(0,s.jsx)(n.th,{children:"Description"})]})}),(0,s.jsxs)(n.tbody,{children:[(0,s.jsxs)(n.tr,{children:[(0,s.jsx)(n.td,{children:(0,s.jsx)(n.code,{children:"key"})}),(0,s.jsx)(n.td,{children:(0,s.jsx)(n.code,{children:"string"})}),(0,s.jsx)(n.td,{children:"Key name."})]}),(0,s.jsxs)(n.tr,{children:[(0,s.jsx)(n.td,{children:(0,s.jsx)(n.code,{children:"value"})}),(0,s.jsx)(n.td,{children:(0,s.jsx)(n.code,{children:"any"})}),(0,s.jsx)(n.td,{children:"Value."})]}),(0,s.jsxs)(n.tr,{children:[(0,s.jsxs)(n.td,{children:[(0,s.jsx)(n.code,{children:"optSilent"}),"?"]}),(0,s.jsx)(n.td,{children:(0,s.jsx)(n.code,{children:"boolean"})}),(0,s.jsx)(n.td,{children:"-"})]})]})]}),"\n",(0,s.jsx)(n.h4,{id:"returns-29",children:"Returns"}),"\n",(0,s.jsx)(n.p,{children:(0,s.jsx)(n.code,{children:"void"})}),"\n",(0,s.jsx)(n.h4,{id:"api",children:"Api"}),"\n",(0,s.jsx)(n.h4,{id:"overrides-2",children:"Overrides"}),"\n",(0,s.jsx)(n.p,{children:(0,s.jsx)(n.code,{children:"obj.set"})}),"\n",(0,s.jsx)(n.h4,{id:"defined-in-32",children:"Defined in"}),"\n",(0,s.jsx)(n.p,{children:(0,s.jsx)(n.a,{href:"https://github.com/sakitam-fdd/ol3Echarts/blob/master/packages/ol-echarts/src/index.ts#L992",children:"index.ts:992"})}),"\n",(0,s.jsx)(n.hr,{}),"\n",(0,s.jsx)(n.h3,{id:"get",children:"get()"}),"\n",(0,s.jsx)(n.pre,{children:(0,s.jsx)(n.code,{className:"language-ts",children:"get(key): any\n"})}),"\n",(0,s.jsx)(n.p,{children:"Gets a value."}),"\n",(0,s.jsx)(n.h4,{id:"parameters-18",children:"Parameters"}),"\n",(0,s.jsxs)(n.table,{children:[(0,s.jsx)(n.thead,{children:(0,s.jsxs)(n.tr,{children:[(0,s.jsx)(n.th,{children:"Parameter"}),(0,s.jsx)(n.th,{children:"Type"}),(0,s.jsx)(n.th,{children:"Description"})]})}),(0,s.jsx)(n.tbody,{children:(0,s.jsxs)(n.tr,{children:[(0,s.jsx)(n.td,{children:(0,s.jsx)(n.code,{children:"key"})}),(0,s.jsx)(n.td,{children:(0,s.jsx)(n.code,{children:"string"})}),(0,s.jsx)(n.td,{children:"Key name."})]})})]}),"\n",(0,s.jsx)(n.h4,{id:"returns-30",children:"Returns"}),"\n",(0,s.jsx)(n.p,{children:(0,s.jsx)(n.code,{children:"any"})}),"\n",(0,s.jsx)(n.p,{children:"Value."}),"\n",(0,s.jsx)(n.h4,{id:"api-1",children:"Api"}),"\n",(0,s.jsx)(n.h4,{id:"overrides-3",children:"Overrides"}),"\n",(0,s.jsx)(n.p,{children:(0,s.jsx)(n.code,{children:"obj.get"})}),"\n",(0,s.jsx)(n.h4,{id:"defined-in-33",children:"Defined in"}),"\n",(0,s.jsx)(n.p,{children:(0,s.jsx)(n.a,{href:"https://github.com/sakitam-fdd/ol3Echarts/blob/master/packages/ol-echarts/src/index.ts#L996",children:"index.ts:996"})}),"\n",(0,s.jsx)(n.hr,{}),"\n",(0,s.jsx)(n.h3,{id:"on",children:"on()"}),"\n",(0,s.jsx)(n.pre,{children:(0,s.jsx)(n.code,{className:"language-ts",children:"on(type, listener): EventsKey\n"})}),"\n",(0,s.jsx)(n.h4,{id:"parameters-19",children:"Parameters"}),"\n",(0,s.jsxs)(n.table,{children:[(0,s.jsx)(n.thead,{children:(0,s.jsxs)(n.tr,{children:[(0,s.jsx)(n.th,{children:"Parameter"}),(0,s.jsx)(n.th,{children:"Type"})]})}),(0,s.jsxs)(n.tbody,{children:[(0,s.jsxs)(n.tr,{children:[(0,s.jsx)(n.td,{children:(0,s.jsx)(n.code,{children:"type"})}),(0,s.jsx)(n.td,{children:(0,s.jsx)(n.code,{children:"any"})})]}),(0,s.jsxs)(n.tr,{children:[(0,s.jsx)(n.td,{children:(0,s.jsx)(n.code,{children:"listener"})}),(0,s.jsxs)(n.td,{children:["(",(0,s.jsx)(n.code,{children:"p0"}),") => ",(0,s.jsx)(n.code,{children:"void"})]})]})]})]}),"\n",(0,s.jsx)(n.h4,{id:"returns-31",children:"Returns"}),"\n",(0,s.jsx)(n.p,{children:(0,s.jsx)(n.code,{children:"EventsKey"})}),"\n",(0,s.jsx)(n.h4,{id:"overrides-4",children:"Overrides"}),"\n",(0,s.jsx)(n.p,{children:(0,s.jsx)(n.code,{children:"obj.on"})}),"\n",(0,s.jsx)(n.h4,{id:"defined-in-34",children:"Defined in"}),"\n",(0,s.jsx)(n.p,{children:(0,s.jsx)(n.a,{href:"https://github.com/sakitam-fdd/ol3Echarts/blob/master/packages/ol-echarts/src/index.ts#L1001",children:"index.ts:1001"})}),"\n",(0,s.jsx)(n.hr,{}),"\n",(0,s.jsx)(n.h3,{id:"un",children:"un()"}),"\n",(0,s.jsx)(n.pre,{children:(0,s.jsx)(n.code,{className:"language-ts",children:"un(type, listener): void\n"})}),"\n",(0,s.jsx)(n.h4,{id:"parameters-20",children:"Parameters"}),"\n",(0,s.jsxs)(n.table,{children:[(0,s.jsx)(n.thead,{children:(0,s.jsxs)(n.tr,{children:[(0,s.jsx)(n.th,{children:"Parameter"}),(0,s.jsx)(n.th,{children:"Type"})]})}),(0,s.jsxs)(n.tbody,{children:[(0,s.jsxs)(n.tr,{children:[(0,s.jsx)(n.td,{children:(0,s.jsx)(n.code,{children:"type"})}),(0,s.jsx)(n.td,{children:(0,s.jsx)(n.code,{children:"any"})})]}),(0,s.jsxs)(n.tr,{children:[(0,s.jsx)(n.td,{children:(0,s.jsx)(n.code,{children:"listener"})}),(0,s.jsxs)(n.td,{children:["(",(0,s.jsx)(n.code,{children:"p0"}),") => ",(0,s.jsx)(n.code,{children:"void"})]})]})]})]}),"\n",(0,s.jsx)(n.h4,{id:"returns-32",children:"Returns"}),"\n",(0,s.jsx)(n.p,{children:(0,s.jsx)(n.code,{children:"void"})}),"\n",(0,s.jsx)(n.h4,{id:"overrides-5",children:"Overrides"}),"\n",(0,s.jsx)(n.p,{children:(0,s.jsx)(n.code,{children:"obj.un"})}),"\n",(0,s.jsx)(n.h4,{id:"defined-in-35",children:"Defined in"}),"\n",(0,s.jsx)(n.p,{children:(0,s.jsx)(n.a,{href:"https://github.com/sakitam-fdd/ol3Echarts/blob/master/packages/ol-echarts/src/index.ts#L1007",children:"index.ts:1007"})})]})}function x(e={}){const{wrapper:n}={...(0,i.R)(),...e.components};return n?(0,s.jsx)(n,{...e,children:(0,s.jsx)(a,{...e})}):a(e)}},2036:(e,n,d)=>{d.d(n,{R:()=>l,x:()=>c});var s=d(7378);const i={},r=s.createContext(i);function l(e){const n=s.useContext(r);return s.useMemo((function(){return"function"==typeof e?e(n):{...n,...e}}),[n,e])}function c(e){let n;return n=e.disableParentContext?"function"==typeof e.components?e.components(i):e.components||i:l(e.components),s.createElement(r.Provider,{value:n},e.children)}}}]); \ No newline at end of file +"use strict";(self.webpackChunkol_echarts_docs=self.webpackChunkol_echarts_docs||[]).push([[333],{3667:(e,n,d)=>{d.r(n),d.d(n,{assets:()=>h,contentTitle:()=>l,default:()=>x,frontMatter:()=>r,metadata:()=>c,toc:()=>t});var s=d(6106),i=d(2036);const r={},l="Class: default",c={id:"typedoc/ol-echarts/classes/default",title:"Class: default",description:"Extends",source:"@site/docs/typedoc/ol-echarts/classes/default.md",sourceDirName:"typedoc/ol-echarts/classes",slug:"/typedoc/ol-echarts/classes/default",permalink:"/ol3Echarts/docs/typedoc/ol-echarts/classes/default",draft:!1,unlisted:!1,editUrl:"https://github.com/sakitam-fdd/ol3Echarts/edit/master/documents/docs/docs/typedoc/ol-echarts/classes/default.md",tags:[],version:"current",frontMatter:{},sidebar:"docs",previous:{title:"ol-echarts v4.0.1",permalink:"/ol3Echarts/docs/typedoc/ol-echarts/"},next:{title:"ol3-echarts v3.0.1",permalink:"/ol3Echarts/docs/typedoc/ol3-echarts/"}},h={},t=[{value:"Extends",id:"extends",level:2},{value:"Constructors",id:"constructors",level:2},{value:"new default()",id:"new-default",level:3},{value:"Parameters",id:"parameters",level:4},{value:"Returns",id:"returns",level:4},{value:"Overrides",id:"overrides",level:4},{value:"Defined in",id:"defined-in",level:4},{value:"Properties",id:"properties",level:2},{value:"formatGeoJSON()",id:"formatgeojson",level:3},{value:"Parameters",id:"parameters-1",level:4},{value:"Returns",id:"returns-1",level:4},{value:"type",id:"type",level:5},{value:"crs",id:"crs",level:5},{value:"features",id:"features",level:5},{value:"Defined in",id:"defined-in-1",level:4},{value:"bind()",id:"bind",level:3},{value:"Parameters",id:"parameters-2",level:4},{value:"Returns",id:"returns-2",level:4},{value:"Param",id:"param",level:4},{value:"Param",id:"param-1",level:4},{value:"Defined in",id:"defined-in-2",level:4},{value:"merge()",id:"merge",level:3},{value:"Parameters",id:"parameters-3",level:4},{value:"Returns",id:"returns-3",level:4},{value:"Defined in",id:"defined-in-3",level:4},{value:"uuid()",id:"uuid",level:3},{value:"Returns",id:"returns-4",level:4},{value:"Defined in",id:"defined-in-4",level:4},{value:"bindAll()",id:"bindall",level:3},{value:"Parameters",id:"parameters-4",level:4},{value:"Returns",id:"returns-5",level:4},{value:"Defined in",id:"defined-in-5",level:4},{value:"arrayAdd()",id:"arrayadd",level:3},{value:"Parameters",id:"parameters-5",level:4},{value:"Returns",id:"returns-6",level:4},{value:"Defined in",id:"defined-in-6",level:4},{value:"removeNode()",id:"removenode",level:3},{value:"Parameters",id:"parameters-6",level:4},{value:"Returns",id:"returns-7",level:4},{value:"Defined in",id:"defined-in-7",level:4},{value:"isObject()",id:"isobject",level:3},{value:"Parameters",id:"parameters-7",level:4},{value:"Returns",id:"returns-8",level:4},{value:"Defined in",id:"defined-in-8",level:4},{value:"$chart",id:"chart",level:3},{value:"Defined in",id:"defined-in-9",level:4},{value:"$container",id:"container",level:3},{value:"Defined in",id:"defined-in-10",level:4},{value:"_map",id:"_map",level:3},{value:"Defined in",id:"defined-in-11",level:4},{value:"Methods",id:"methods",level:2},{value:"appendTo()",id:"appendto",level:3},{value:"Parameters",id:"parameters-8",level:4},{value:"Returns",id:"returns-9",level:4},{value:"Defined in",id:"defined-in-12",level:4},{value:"getMap()",id:"getmap",level:3},{value:"Returns",id:"returns-10",level:4},{value:"Defined in",id:"defined-in-13",level:4},{value:"setMap()",id:"setmap",level:3},{value:"Parameters",id:"parameters-9",level:4},{value:"Returns",id:"returns-11",level:4},{value:"Defined in",id:"defined-in-14",level:4},{value:"getChartOptions()",id:"getchartoptions",level:3},{value:"Returns",id:"returns-12",level:4},{value:"Defined in",id:"defined-in-15",level:4},{value:"setChartOptions()",id:"setchartoptions",level:3},{value:"Parameters",id:"parameters-10",level:4},{value:"Returns",id:"returns-13",level:4},{value:"Defined in",id:"defined-in-16",level:4},{value:"appendData()",id:"appenddata",level:3},{value:"Parameters",id:"parameters-11",level:4},{value:"Returns",id:"returns-14",level:4},{value:"Defined in",id:"defined-in-17",level:4},{value:"clear()",id:"clear",level:3},{value:"Parameters",id:"parameters-12",level:4},{value:"Returns",id:"returns-15",level:4},{value:"Defined in",id:"defined-in-18",level:4},{value:"remove()",id:"remove",level:3},{value:"Returns",id:"returns-16",level:4},{value:"Defined in",id:"defined-in-19",level:4},{value:"show()",id:"show",level:3},{value:"Returns",id:"returns-17",level:4},{value:"Defined in",id:"defined-in-20",level:4},{value:"hide()",id:"hide",level:3},{value:"Returns",id:"returns-18",level:4},{value:"Defined in",id:"defined-in-21",level:4},{value:"isVisible()",id:"isvisible",level:3},{value:"Returns",id:"returns-19",level:4},{value:"Defined in",id:"defined-in-22",level:4},{value:"showLoading()",id:"showloading",level:3},{value:"Returns",id:"returns-20",level:4},{value:"Defined in",id:"defined-in-23",level:4},{value:"hideLoading()",id:"hideloading",level:3},{value:"Returns",id:"returns-21",level:4},{value:"Defined in",id:"defined-in-24",level:4},{value:"setZIndex()",id:"setzindex",level:3},{value:"Parameters",id:"parameters-13",level:4},{value:"Returns",id:"returns-22",level:4},{value:"Defined in",id:"defined-in-25",level:4},{value:"getZIndex()",id:"getzindex",level:3},{value:"Returns",id:"returns-23",level:4},{value:"Defined in",id:"defined-in-26",level:4},{value:"setVisible()",id:"setvisible",level:3},{value:"Parameters",id:"parameters-14",level:4},{value:"Returns",id:"returns-24",level:4},{value:"Defined in",id:"defined-in-27",level:4},{value:"render()",id:"render",level:3},{value:"Returns",id:"returns-25",level:4},{value:"Defined in",id:"defined-in-28",level:4},{value:"redraw()",id:"redraw",level:3},{value:"Returns",id:"returns-26",level:4},{value:"Defined in",id:"defined-in-29",level:4},{value:"updateViewSize()",id:"updateviewsize",level:3},{value:"Parameters",id:"parameters-15",level:4},{value:"Returns",id:"returns-27",level:4},{value:"Defined in",id:"defined-in-30",level:4},{value:"dispatchEvent()",id:"dispatchevent",level:3},{value:"Parameters",id:"parameters-16",level:4},{value:"Returns",id:"returns-28",level:4},{value:"Overrides",id:"overrides-1",level:4},{value:"Defined in",id:"defined-in-31",level:4},{value:"set()",id:"set",level:3},{value:"Parameters",id:"parameters-17",level:4},{value:"Returns",id:"returns-29",level:4},{value:"Api",id:"api",level:4},{value:"Overrides",id:"overrides-2",level:4},{value:"Defined in",id:"defined-in-32",level:4},{value:"get()",id:"get",level:3},{value:"Parameters",id:"parameters-18",level:4},{value:"Returns",id:"returns-30",level:4},{value:"Api",id:"api-1",level:4},{value:"Overrides",id:"overrides-3",level:4},{value:"Defined in",id:"defined-in-33",level:4},{value:"on()",id:"on",level:3},{value:"Parameters",id:"parameters-19",level:4},{value:"Returns",id:"returns-31",level:4},{value:"Overrides",id:"overrides-4",level:4},{value:"Defined in",id:"defined-in-34",level:4},{value:"un()",id:"un",level:3},{value:"Parameters",id:"parameters-20",level:4},{value:"Returns",id:"returns-32",level:4},{value:"Overrides",id:"overrides-5",level:4},{value:"Defined in",id:"defined-in-35",level:4}];function a(e){const n={a:"a",code:"code",h1:"h1",h2:"h2",h3:"h3",h4:"h4",h5:"h5",header:"header",hr:"hr",li:"li",p:"p",pre:"pre",table:"table",tbody:"tbody",td:"td",th:"th",thead:"thead",tr:"tr",ul:"ul",...(0,i.R)(),...e.components};return(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(n.header,{children:(0,s.jsx)(n.h1,{id:"class-default",children:"Class: default"})}),"\n",(0,s.jsx)(n.h2,{id:"extends",children:"Extends"}),"\n",(0,s.jsxs)(n.ul,{children:["\n",(0,s.jsx)(n.li,{children:(0,s.jsx)(n.code,{children:"BaseObject"})}),"\n"]}),"\n",(0,s.jsx)(n.h2,{id:"constructors",children:"Constructors"}),"\n",(0,s.jsx)(n.h3,{id:"new-default",children:"new default()"}),"\n",(0,s.jsx)(n.pre,{children:(0,s.jsx)(n.code,{className:"language-ts",children:"new default(\n chartOptions?, \n options?, \n map?): default\n"})}),"\n",(0,s.jsx)(n.h4,{id:"parameters",children:"Parameters"}),"\n",(0,s.jsxs)(n.table,{children:[(0,s.jsx)(n.thead,{children:(0,s.jsxs)(n.tr,{children:[(0,s.jsx)(n.th,{children:"Parameter"}),(0,s.jsx)(n.th,{children:"Type"})]})}),(0,s.jsxs)(n.tbody,{children:[(0,s.jsxs)(n.tr,{children:[(0,s.jsxs)(n.td,{children:[(0,s.jsx)(n.code,{children:"chartOptions"}),"?"]}),(0,s.jsxs)(n.td,{children:[(0,s.jsx)(n.code,{children:"NoDef"}),"<",(0,s.jsx)(n.code,{children:"Nullable"}),"<",(0,s.jsx)(n.code,{children:"object"}),">>"]})]}),(0,s.jsxs)(n.tr,{children:[(0,s.jsxs)(n.td,{children:[(0,s.jsx)(n.code,{children:"options"}),"?"]}),(0,s.jsxs)(n.td,{children:[(0,s.jsx)(n.code,{children:"NoDef"}),"<",(0,s.jsx)(n.code,{children:"Nullable"}),"<",(0,s.jsx)(n.code,{children:"OptionsTypes"}),">>"]})]}),(0,s.jsxs)(n.tr,{children:[(0,s.jsxs)(n.td,{children:[(0,s.jsx)(n.code,{children:"map"}),"?"]}),(0,s.jsx)(n.td,{children:(0,s.jsx)(n.code,{children:"any"})})]})]})]}),"\n",(0,s.jsx)(n.h4,{id:"returns",children:"Returns"}),"\n",(0,s.jsx)(n.p,{children:(0,s.jsx)(n.a,{href:"/ol3Echarts/docs/typedoc/ol-echarts/classes/default",children:(0,s.jsx)(n.code,{children:"default"})})}),"\n",(0,s.jsx)(n.h4,{id:"overrides",children:"Overrides"}),"\n",(0,s.jsx)(n.p,{children:(0,s.jsx)(n.code,{children:"obj.constructor"})}),"\n",(0,s.jsx)(n.h4,{id:"defined-in",children:"Defined in"}),"\n",(0,s.jsx)(n.p,{children:(0,s.jsx)(n.a,{href:"https://github.com/sakitam-fdd/ol3Echarts/blob/master/packages/ol-echarts/src/index.ts#L88",children:"index.ts:88"})}),"\n",(0,s.jsx)(n.h2,{id:"properties",children:"Properties"}),"\n",(0,s.jsx)(n.h3,{id:"formatgeojson",children:"formatGeoJSON()"}),"\n",(0,s.jsx)(n.pre,{children:(0,s.jsx)(n.code,{className:"language-ts",children:"static formatGeoJSON: (json) => object;\n"})}),"\n",(0,s.jsx)(n.p,{children:"decode geoJson"}),"\n",(0,s.jsx)(n.h4,{id:"parameters-1",children:"Parameters"}),"\n",(0,s.jsxs)(n.table,{children:[(0,s.jsx)(n.thead,{children:(0,s.jsxs)(n.tr,{children:[(0,s.jsx)(n.th,{children:"Parameter"}),(0,s.jsx)(n.th,{children:"Type"}),(0,s.jsx)(n.th,{children:"Description"})]})}),(0,s.jsx)(n.tbody,{children:(0,s.jsxs)(n.tr,{children:[(0,s.jsx)(n.td,{children:(0,s.jsx)(n.code,{children:"json"})}),(0,s.jsx)(n.td,{children:(0,s.jsx)(n.code,{children:"any"})}),(0,s.jsx)(n.td,{})]})})]}),"\n",(0,s.jsx)(n.h4,{id:"returns-1",children:"Returns"}),"\n",(0,s.jsx)(n.p,{children:(0,s.jsx)(n.code,{children:"object"})}),"\n",(0,s.jsx)(n.h5,{id:"type",children:"type"}),"\n",(0,s.jsx)(n.pre,{children:(0,s.jsx)(n.code,{className:"language-ts",children:"type: string = 'FeatureCollection';\n"})}),"\n",(0,s.jsx)(n.h5,{id:"crs",children:"crs"}),"\n",(0,s.jsx)(n.pre,{children:(0,s.jsx)(n.code,{className:"language-ts",children:"crs: object = {};\n"})}),"\n",(0,s.jsx)(n.h5,{id:"features",children:"features"}),"\n",(0,s.jsx)(n.pre,{children:(0,s.jsx)(n.code,{className:"language-ts",children:"features: any = _features;\n"})}),"\n",(0,s.jsx)(n.h4,{id:"defined-in-1",children:"Defined in"}),"\n",(0,s.jsx)(n.p,{children:(0,s.jsx)(n.a,{href:"https://github.com/sakitam-fdd/ol3Echarts/blob/master/packages/ol-echarts/src/index.ts#L50",children:"index.ts:50"})}),"\n",(0,s.jsx)(n.hr,{}),"\n",(0,s.jsx)(n.h3,{id:"bind",children:"bind()"}),"\n",(0,s.jsx)(n.pre,{children:(0,s.jsx)(n.code,{className:"language-ts",children:"static bind: (func, context, ...args) => Function;\n"})}),"\n",(0,s.jsx)(n.p,{children:"For a given function, creates a bound function that has the same body as the original function.\nThe this object of the bound function is associated with the specified object, and has the specified initial parameters."}),"\n",(0,s.jsx)(n.p,{children:"bind context"}),"\n",(0,s.jsx)(n.h4,{id:"parameters-2",children:"Parameters"}),"\n",(0,s.jsxs)(n.table,{children:[(0,s.jsx)(n.thead,{children:(0,s.jsxs)(n.tr,{children:[(0,s.jsx)(n.th,{children:"Parameter"}),(0,s.jsx)(n.th,{children:"Type"}),(0,s.jsx)(n.th,{children:"Description"})]})}),(0,s.jsxs)(n.tbody,{children:[(0,s.jsxs)(n.tr,{children:[(0,s.jsx)(n.td,{children:(0,s.jsx)(n.code,{children:"func"})}),(0,s.jsx)(n.td,{children:(0,s.jsx)(n.code,{children:"Function"})}),(0,s.jsx)(n.td,{})]}),(0,s.jsxs)(n.tr,{children:[(0,s.jsx)(n.td,{children:(0,s.jsx)(n.code,{children:"context"})}),(0,s.jsx)(n.td,{children:(0,s.jsx)(n.code,{children:"any"})}),(0,s.jsx)(n.td,{})]}),(0,s.jsxs)(n.tr,{children:[(0,s.jsxs)(n.td,{children:["...",(0,s.jsx)(n.code,{children:"args"})]}),(0,s.jsxs)(n.td,{children:[(0,s.jsx)(n.code,{children:"any"}),"[]"]}),(0,s.jsx)(n.td,{})]})]})]}),"\n",(0,s.jsx)(n.h4,{id:"returns-2",children:"Returns"}),"\n",(0,s.jsx)(n.p,{children:(0,s.jsx)(n.code,{children:"Function"})}),"\n",(0,s.jsx)(n.h4,{id:"param",children:"Param"}),"\n",(0,s.jsx)(n.p,{children:"An object to which the this keyword can refer inside the new function."}),"\n",(0,s.jsx)(n.h4,{id:"param-1",children:"Param"}),"\n",(0,s.jsx)(n.p,{children:"A list of arguments to be passed to the new function."}),"\n",(0,s.jsx)(n.h4,{id:"defined-in-2",children:"Defined in"}),"\n",(0,s.jsx)(n.p,{children:(0,s.jsx)(n.a,{href:"https://github.com/sakitam-fdd/ol3Echarts/blob/master/packages/ol-echarts/src/index.ts#L52",children:"index.ts:52"})}),"\n",(0,s.jsx)(n.hr,{}),"\n",(0,s.jsx)(n.h3,{id:"merge",children:"merge()"}),"\n",(0,s.jsx)(n.pre,{children:(0,s.jsx)(n.code,{className:"language-ts",children:"static merge: (a, b) => any;\n"})}),"\n",(0,s.jsx)(n.p,{children:"merge"}),"\n",(0,s.jsx)(n.h4,{id:"parameters-3",children:"Parameters"}),"\n",(0,s.jsxs)(n.table,{children:[(0,s.jsx)(n.thead,{children:(0,s.jsxs)(n.tr,{children:[(0,s.jsx)(n.th,{children:"Parameter"}),(0,s.jsx)(n.th,{children:"Type"}),(0,s.jsx)(n.th,{children:"Description"})]})}),(0,s.jsxs)(n.tbody,{children:[(0,s.jsxs)(n.tr,{children:[(0,s.jsx)(n.td,{children:(0,s.jsx)(n.code,{children:"a"})}),(0,s.jsx)(n.td,{children:(0,s.jsx)(n.code,{children:"any"})}),(0,s.jsx)(n.td,{})]}),(0,s.jsxs)(n.tr,{children:[(0,s.jsx)(n.td,{children:(0,s.jsx)(n.code,{children:"b"})}),(0,s.jsx)(n.td,{children:(0,s.jsx)(n.code,{children:"any"})}),(0,s.jsx)(n.td,{})]})]})]}),"\n",(0,s.jsx)(n.h4,{id:"returns-3",children:"Returns"}),"\n",(0,s.jsx)(n.p,{children:(0,s.jsx)(n.code,{children:"any"})}),"\n",(0,s.jsx)(n.h4,{id:"defined-in-3",children:"Defined in"}),"\n",(0,s.jsx)(n.p,{children:(0,s.jsx)(n.a,{href:"https://github.com/sakitam-fdd/ol3Echarts/blob/master/packages/ol-echarts/src/index.ts#L54",children:"index.ts:54"})}),"\n",(0,s.jsx)(n.hr,{}),"\n",(0,s.jsx)(n.h3,{id:"uuid",children:"uuid()"}),"\n",(0,s.jsx)(n.pre,{children:(0,s.jsx)(n.code,{className:"language-ts",children:"static uuid: () => string;\n"})}),"\n",(0,s.jsx)(n.h4,{id:"returns-4",children:"Returns"}),"\n",(0,s.jsx)(n.p,{children:(0,s.jsx)(n.code,{children:"string"})}),"\n",(0,s.jsx)(n.h4,{id:"defined-in-4",children:"Defined in"}),"\n",(0,s.jsx)(n.p,{children:(0,s.jsx)(n.a,{href:"https://github.com/sakitam-fdd/ol3Echarts/blob/master/packages/ol-echarts/src/index.ts#L56",children:"index.ts:56"})}),"\n",(0,s.jsx)(n.hr,{}),"\n",(0,s.jsx)(n.h3,{id:"bindall",children:"bindAll()"}),"\n",(0,s.jsx)(n.pre,{children:(0,s.jsx)(n.code,{className:"language-ts",children:"static bindAll: (fns, context) => void;\n"})}),"\n",(0,s.jsx)(n.p,{children:"bind function array"}),"\n",(0,s.jsx)(n.h4,{id:"parameters-4",children:"Parameters"}),"\n",(0,s.jsxs)(n.table,{children:[(0,s.jsx)(n.thead,{children:(0,s.jsxs)(n.tr,{children:[(0,s.jsx)(n.th,{children:"Parameter"}),(0,s.jsx)(n.th,{children:"Type"}),(0,s.jsx)(n.th,{children:"Description"})]})}),(0,s.jsxs)(n.tbody,{children:[(0,s.jsxs)(n.tr,{children:[(0,s.jsx)(n.td,{children:(0,s.jsx)(n.code,{children:"fns"})}),(0,s.jsxs)(n.td,{children:[(0,s.jsx)(n.code,{children:"string"}),"[] | ",(0,s.jsx)(n.code,{children:"number"}),"[]"]}),(0,s.jsx)(n.td,{})]}),(0,s.jsxs)(n.tr,{children:[(0,s.jsx)(n.td,{children:(0,s.jsx)(n.code,{children:"context"})}),(0,s.jsx)(n.td,{children:(0,s.jsx)(n.code,{children:"any"})}),(0,s.jsx)(n.td,{})]})]})]}),"\n",(0,s.jsx)(n.h4,{id:"returns-5",children:"Returns"}),"\n",(0,s.jsx)(n.p,{children:(0,s.jsx)(n.code,{children:"void"})}),"\n",(0,s.jsx)(n.h4,{id:"defined-in-5",children:"Defined in"}),"\n",(0,s.jsx)(n.p,{children:(0,s.jsx)(n.a,{href:"https://github.com/sakitam-fdd/ol3Echarts/blob/master/packages/ol-echarts/src/index.ts#L58",children:"index.ts:58"})}),"\n",(0,s.jsx)(n.hr,{}),"\n",(0,s.jsx)(n.h3,{id:"arrayadd",children:"arrayAdd()"}),"\n",(0,s.jsx)(n.pre,{children:(0,s.jsx)(n.code,{className:"language-ts",children:"static arrayAdd: (array, item) => any[];\n"})}),"\n",(0,s.jsx)(n.p,{children:"add own item"}),"\n",(0,s.jsx)(n.h4,{id:"parameters-5",children:"Parameters"}),"\n",(0,s.jsxs)(n.table,{children:[(0,s.jsx)(n.thead,{children:(0,s.jsxs)(n.tr,{children:[(0,s.jsx)(n.th,{children:"Parameter"}),(0,s.jsx)(n.th,{children:"Type"}),(0,s.jsx)(n.th,{children:"Description"})]})}),(0,s.jsxs)(n.tbody,{children:[(0,s.jsxs)(n.tr,{children:[(0,s.jsx)(n.td,{children:(0,s.jsx)(n.code,{children:"array"})}),(0,s.jsxs)(n.td,{children:[(0,s.jsx)(n.code,{children:"any"}),"[]"]}),(0,s.jsx)(n.td,{})]}),(0,s.jsxs)(n.tr,{children:[(0,s.jsx)(n.td,{children:(0,s.jsx)(n.code,{children:"item"})}),(0,s.jsx)(n.td,{children:(0,s.jsx)(n.code,{children:"any"})}),(0,s.jsx)(n.td,{})]})]})]}),"\n",(0,s.jsx)(n.h4,{id:"returns-6",children:"Returns"}),"\n",(0,s.jsxs)(n.p,{children:[(0,s.jsx)(n.code,{children:"any"}),"[]"]}),"\n",(0,s.jsx)(n.h4,{id:"defined-in-6",children:"Defined in"}),"\n",(0,s.jsx)(n.p,{children:(0,s.jsx)(n.a,{href:"https://github.com/sakitam-fdd/ol3Echarts/blob/master/packages/ol-echarts/src/index.ts#L60",children:"index.ts:60"})}),"\n",(0,s.jsx)(n.hr,{}),"\n",(0,s.jsx)(n.h3,{id:"removenode",children:"removeNode()"}),"\n",(0,s.jsx)(n.pre,{children:(0,s.jsx)(n.code,{className:"language-ts",children:"static removeNode: (node) => null | HTMLElement;\n"})}),"\n",(0,s.jsx)(n.p,{children:"remove node"}),"\n",(0,s.jsx)(n.h4,{id:"parameters-6",children:"Parameters"}),"\n",(0,s.jsxs)(n.table,{children:[(0,s.jsx)(n.thead,{children:(0,s.jsxs)(n.tr,{children:[(0,s.jsx)(n.th,{children:"Parameter"}),(0,s.jsx)(n.th,{children:"Type"}),(0,s.jsx)(n.th,{children:"Description"})]})}),(0,s.jsx)(n.tbody,{children:(0,s.jsxs)(n.tr,{children:[(0,s.jsx)(n.td,{children:(0,s.jsx)(n.code,{children:"node"})}),(0,s.jsx)(n.td,{children:(0,s.jsx)(n.code,{children:"HTMLElement"})}),(0,s.jsx)(n.td,{})]})})]}),"\n",(0,s.jsx)(n.h4,{id:"returns-7",children:"Returns"}),"\n",(0,s.jsxs)(n.p,{children:[(0,s.jsx)(n.code,{children:"null"})," | ",(0,s.jsx)(n.code,{children:"HTMLElement"})]}),"\n",(0,s.jsx)(n.h4,{id:"defined-in-7",children:"Defined in"}),"\n",(0,s.jsx)(n.p,{children:(0,s.jsx)(n.a,{href:"https://github.com/sakitam-fdd/ol3Echarts/blob/master/packages/ol-echarts/src/index.ts#L62",children:"index.ts:62"})}),"\n",(0,s.jsx)(n.hr,{}),"\n",(0,s.jsx)(n.h3,{id:"isobject",children:"isObject()"}),"\n",(0,s.jsx)(n.pre,{children:(0,s.jsx)(n.code,{className:"language-ts",children:"static isObject: (value) => boolean;\n"})}),"\n",(0,s.jsx)(n.p,{children:"\u5224\u65ad\u662f\u5426\u4e3a\u5bf9\u8c61"}),"\n",(0,s.jsx)(n.h4,{id:"parameters-7",children:"Parameters"}),"\n",(0,s.jsxs)(n.table,{children:[(0,s.jsx)(n.thead,{children:(0,s.jsxs)(n.tr,{children:[(0,s.jsx)(n.th,{children:"Parameter"}),(0,s.jsx)(n.th,{children:"Type"}),(0,s.jsx)(n.th,{children:"Description"})]})}),(0,s.jsx)(n.tbody,{children:(0,s.jsxs)(n.tr,{children:[(0,s.jsx)(n.td,{children:(0,s.jsx)(n.code,{children:"value"})}),(0,s.jsx)(n.td,{children:(0,s.jsx)(n.code,{children:"any"})}),(0,s.jsx)(n.td,{})]})})]}),"\n",(0,s.jsx)(n.h4,{id:"returns-8",children:"Returns"}),"\n",(0,s.jsx)(n.p,{children:(0,s.jsx)(n.code,{children:"boolean"})}),"\n",(0,s.jsx)(n.h4,{id:"defined-in-8",children:"Defined in"}),"\n",(0,s.jsx)(n.p,{children:(0,s.jsx)(n.a,{href:"https://github.com/sakitam-fdd/ol3Echarts/blob/master/packages/ol-echarts/src/index.ts#L64",children:"index.ts:64"})}),"\n",(0,s.jsx)(n.hr,{}),"\n",(0,s.jsx)(n.h3,{id:"chart",children:"$chart"}),"\n",(0,s.jsx)(n.pre,{children:(0,s.jsx)(n.code,{className:"language-ts",children:"$chart: any;\n"})}),"\n",(0,s.jsx)(n.h4,{id:"defined-in-9",children:"Defined in"}),"\n",(0,s.jsx)(n.p,{children:(0,s.jsx)(n.a,{href:"https://github.com/sakitam-fdd/ol3Echarts/blob/master/packages/ol-echarts/src/index.ts#L82",children:"index.ts:82"})}),"\n",(0,s.jsx)(n.hr,{}),"\n",(0,s.jsx)(n.h3,{id:"container",children:"$container"}),"\n",(0,s.jsx)(n.pre,{children:(0,s.jsx)(n.code,{className:"language-ts",children:"$container: NoDef<HTMLElement>;\n"})}),"\n",(0,s.jsx)(n.h4,{id:"defined-in-10",children:"Defined in"}),"\n",(0,s.jsx)(n.p,{children:(0,s.jsx)(n.a,{href:"https://github.com/sakitam-fdd/ol3Echarts/blob/master/packages/ol-echarts/src/index.ts#L84",children:"index.ts:84"})}),"\n",(0,s.jsx)(n.hr,{}),"\n",(0,s.jsx)(n.h3,{id:"_map",children:"_map"}),"\n",(0,s.jsx)(n.pre,{children:(0,s.jsx)(n.code,{className:"language-ts",children:"_map: any;\n"})}),"\n",(0,s.jsx)(n.h4,{id:"defined-in-11",children:"Defined in"}),"\n",(0,s.jsx)(n.p,{children:(0,s.jsx)(n.a,{href:"https://github.com/sakitam-fdd/ol3Echarts/blob/master/packages/ol-echarts/src/index.ts#L86",children:"index.ts:86"})}),"\n",(0,s.jsx)(n.h2,{id:"methods",children:"Methods"}),"\n",(0,s.jsx)(n.h3,{id:"appendto",children:"appendTo()"}),"\n",(0,s.jsx)(n.pre,{children:(0,s.jsx)(n.code,{className:"language-ts",children:"appendTo(map, forceIgnore): void\n"})}),"\n",(0,s.jsx)(n.p,{children:"append layer to map"}),"\n",(0,s.jsx)(n.h4,{id:"parameters-8",children:"Parameters"}),"\n",(0,s.jsxs)(n.table,{children:[(0,s.jsx)(n.thead,{children:(0,s.jsxs)(n.tr,{children:[(0,s.jsx)(n.th,{children:"Parameter"}),(0,s.jsx)(n.th,{children:"Type"}),(0,s.jsx)(n.th,{children:"Default value"}),(0,s.jsx)(n.th,{children:"Description"})]})}),(0,s.jsxs)(n.tbody,{children:[(0,s.jsxs)(n.tr,{children:[(0,s.jsx)(n.td,{children:(0,s.jsx)(n.code,{children:"map"})}),(0,s.jsx)(n.td,{children:(0,s.jsx)(n.code,{children:"any"})}),(0,s.jsx)(n.td,{children:(0,s.jsx)(n.code,{children:"undefined"})}),(0,s.jsx)(n.td,{})]}),(0,s.jsxs)(n.tr,{children:[(0,s.jsx)(n.td,{children:(0,s.jsx)(n.code,{children:"forceIgnore"})}),(0,s.jsx)(n.td,{children:(0,s.jsx)(n.code,{children:"boolean"})}),(0,s.jsx)(n.td,{children:(0,s.jsx)(n.code,{children:"false"})}),(0,s.jsx)(n.td,{})]})]})]}),"\n",(0,s.jsx)(n.h4,{id:"returns-9",children:"Returns"}),"\n",(0,s.jsx)(n.p,{children:(0,s.jsx)(n.code,{children:"void"})}),"\n",(0,s.jsx)(n.h4,{id:"defined-in-12",children:"Defined in"}),"\n",(0,s.jsx)(n.p,{children:(0,s.jsx)(n.a,{href:"https://github.com/sakitam-fdd/ol3Echarts/blob/master/packages/ol-echarts/src/index.ts#L174",children:"index.ts:174"})}),"\n",(0,s.jsx)(n.hr,{}),"\n",(0,s.jsx)(n.h3,{id:"getmap",children:"getMap()"}),"\n",(0,s.jsx)(n.pre,{children:(0,s.jsx)(n.code,{className:"language-ts",children:"getMap(): Map\n"})}),"\n",(0,s.jsx)(n.p,{children:"get ol map"}),"\n",(0,s.jsx)(n.h4,{id:"returns-10",children:"Returns"}),"\n",(0,s.jsx)(n.p,{children:(0,s.jsx)(n.code,{children:"Map"})}),"\n",(0,s.jsx)(n.h4,{id:"defined-in-13",children:"Defined in"}),"\n",(0,s.jsx)(n.p,{children:(0,s.jsx)(n.a,{href:"https://github.com/sakitam-fdd/ol3Echarts/blob/master/packages/ol-echarts/src/index.ts#L182",children:"index.ts:182"})}),"\n",(0,s.jsx)(n.hr,{}),"\n",(0,s.jsx)(n.h3,{id:"setmap",children:"setMap()"}),"\n",(0,s.jsx)(n.pre,{children:(0,s.jsx)(n.code,{className:"language-ts",children:"setMap(map, forceIgnore): void\n"})}),"\n",(0,s.jsx)(n.p,{children:"set map"}),"\n",(0,s.jsx)(n.h4,{id:"parameters-9",children:"Parameters"}),"\n",(0,s.jsxs)(n.table,{children:[(0,s.jsx)(n.thead,{children:(0,s.jsxs)(n.tr,{children:[(0,s.jsx)(n.th,{children:"Parameter"}),(0,s.jsx)(n.th,{children:"Type"}),(0,s.jsx)(n.th,{children:"Default value"}),(0,s.jsx)(n.th,{children:"Description"})]})}),(0,s.jsxs)(n.tbody,{children:[(0,s.jsxs)(n.tr,{children:[(0,s.jsx)(n.td,{children:(0,s.jsx)(n.code,{children:"map"})}),(0,s.jsx)(n.td,{children:(0,s.jsx)(n.code,{children:"any"})}),(0,s.jsx)(n.td,{children:(0,s.jsx)(n.code,{children:"undefined"})}),(0,s.jsx)(n.td,{})]}),(0,s.jsxs)(n.tr,{children:[(0,s.jsx)(n.td,{children:(0,s.jsx)(n.code,{children:"forceIgnore"})}),(0,s.jsx)(n.td,{children:(0,s.jsx)(n.code,{children:"boolean"})}),(0,s.jsx)(n.td,{children:(0,s.jsx)(n.code,{children:"false"})}),(0,s.jsx)(n.td,{children:"\u662f\u5426\u5ffd\u7565instanceof\u68c0\u67e5"})]})]})]}),"\n",(0,s.jsx)(n.h4,{id:"returns-11",children:"Returns"}),"\n",(0,s.jsx)(n.p,{children:(0,s.jsx)(n.code,{children:"void"})}),"\n",(0,s.jsx)(n.h4,{id:"defined-in-14",children:"Defined in"}),"\n",(0,s.jsx)(n.p,{children:(0,s.jsx)(n.a,{href:"https://github.com/sakitam-fdd/ol3Echarts/blob/master/packages/ol-echarts/src/index.ts#L191",children:"index.ts:191"})}),"\n",(0,s.jsx)(n.hr,{}),"\n",(0,s.jsx)(n.h3,{id:"getchartoptions",children:"getChartOptions()"}),"\n",(0,s.jsx)(n.pre,{children:(0,s.jsx)(n.code,{className:"language-ts",children:"getChartOptions(): undefined | null | object\n"})}),"\n",(0,s.jsx)(n.p,{children:"get echarts options"}),"\n",(0,s.jsx)(n.h4,{id:"returns-12",children:"Returns"}),"\n",(0,s.jsxs)(n.p,{children:[(0,s.jsx)(n.code,{children:"undefined"})," | ",(0,s.jsx)(n.code,{children:"null"})," | ",(0,s.jsx)(n.code,{children:"object"})]}),"\n",(0,s.jsx)(n.h4,{id:"defined-in-15",children:"Defined in"}),"\n",(0,s.jsx)(n.p,{children:(0,s.jsx)(n.a,{href:"https://github.com/sakitam-fdd/ol3Echarts/blob/master/packages/ol-echarts/src/index.ts#L206",children:"index.ts:206"})}),"\n",(0,s.jsx)(n.hr,{}),"\n",(0,s.jsx)(n.h3,{id:"setchartoptions",children:"setChartOptions()"}),"\n",(0,s.jsx)(n.pre,{children:(0,s.jsx)(n.code,{className:"language-ts",children:"setChartOptions(options): default\n"})}),"\n",(0,s.jsx)(n.p,{children:"set echarts options and redraw"}),"\n",(0,s.jsx)(n.h4,{id:"parameters-10",children:"Parameters"}),"\n",(0,s.jsxs)(n.table,{children:[(0,s.jsx)(n.thead,{children:(0,s.jsxs)(n.tr,{children:[(0,s.jsx)(n.th,{children:"Parameter"}),(0,s.jsx)(n.th,{children:"Type"}),(0,s.jsx)(n.th,{children:"Description"})]})}),(0,s.jsx)(n.tbody,{children:(0,s.jsxs)(n.tr,{children:[(0,s.jsx)(n.td,{children:(0,s.jsx)(n.code,{children:"options"})}),(0,s.jsx)(n.td,{children:(0,s.jsx)(n.code,{children:"object"})}),(0,s.jsx)(n.td,{})]})})]}),"\n",(0,s.jsx)(n.h4,{id:"returns-13",children:"Returns"}),"\n",(0,s.jsx)(n.p,{children:(0,s.jsx)(n.a,{href:"/ol3Echarts/docs/typedoc/ol-echarts/classes/default",children:(0,s.jsx)(n.code,{children:"default"})})}),"\n",(0,s.jsx)(n.h4,{id:"defined-in-16",children:"Defined in"}),"\n",(0,s.jsx)(n.p,{children:(0,s.jsx)(n.a,{href:"https://github.com/sakitam-fdd/ol3Echarts/blob/master/packages/ol-echarts/src/index.ts#L215",children:"index.ts:215"})}),"\n",(0,s.jsx)(n.hr,{}),"\n",(0,s.jsx)(n.h3,{id:"appenddata",children:"appendData()"}),"\n",(0,s.jsx)(n.pre,{children:(0,s.jsx)(n.code,{className:"language-ts",children:"appendData(data, save): default\n"})}),"\n",(0,s.jsx)(n.p,{children:"append data"}),"\n",(0,s.jsx)(n.h4,{id:"parameters-11",children:"Parameters"}),"\n",(0,s.jsxs)(n.table,{children:[(0,s.jsx)(n.thead,{children:(0,s.jsxs)(n.tr,{children:[(0,s.jsx)(n.th,{children:"Parameter"}),(0,s.jsx)(n.th,{children:"Type"}),(0,s.jsx)(n.th,{children:"Default value"}),(0,s.jsx)(n.th,{children:"Description"})]})}),(0,s.jsxs)(n.tbody,{children:[(0,s.jsxs)(n.tr,{children:[(0,s.jsx)(n.td,{children:(0,s.jsx)(n.code,{children:"data"})}),(0,s.jsx)(n.td,{children:(0,s.jsx)(n.code,{children:"any"})}),(0,s.jsx)(n.td,{children:(0,s.jsx)(n.code,{children:"undefined"})}),(0,s.jsx)(n.td,{})]}),(0,s.jsxs)(n.tr,{children:[(0,s.jsx)(n.td,{children:(0,s.jsx)(n.code,{children:"save"})}),(0,s.jsxs)(n.td,{children:[(0,s.jsx)(n.code,{children:"undefined"})," | ",(0,s.jsx)(n.code,{children:"null"})," | ",(0,s.jsx)(n.code,{children:"boolean"})]}),(0,s.jsx)(n.td,{children:(0,s.jsx)(n.code,{children:"true"})}),(0,s.jsx)(n.td,{})]})]})]}),"\n",(0,s.jsx)(n.h4,{id:"returns-14",children:"Returns"}),"\n",(0,s.jsx)(n.p,{children:(0,s.jsx)(n.a,{href:"/ol3Echarts/docs/typedoc/ol-echarts/classes/default",children:(0,s.jsx)(n.code,{children:"default"})})}),"\n",(0,s.jsx)(n.h4,{id:"defined-in-17",children:"Defined in"}),"\n",(0,s.jsx)(n.p,{children:(0,s.jsx)(n.a,{href:"https://github.com/sakitam-fdd/ol3Echarts/blob/master/packages/ol-echarts/src/index.ts#L228",children:"index.ts:228"})}),"\n",(0,s.jsx)(n.hr,{}),"\n",(0,s.jsx)(n.h3,{id:"clear",children:"clear()"}),"\n",(0,s.jsx)(n.pre,{children:(0,s.jsx)(n.code,{className:"language-ts",children:"clear(keep?): void\n"})}),"\n",(0,s.jsx)(n.p,{children:"clear layer"}),"\n",(0,s.jsx)(n.h4,{id:"parameters-12",children:"Parameters"}),"\n",(0,s.jsxs)(n.table,{children:[(0,s.jsx)(n.thead,{children:(0,s.jsxs)(n.tr,{children:[(0,s.jsx)(n.th,{children:"Parameter"}),(0,s.jsx)(n.th,{children:"Type"})]})}),(0,s.jsx)(n.tbody,{children:(0,s.jsxs)(n.tr,{children:[(0,s.jsxs)(n.td,{children:[(0,s.jsx)(n.code,{children:"keep"}),"?"]}),(0,s.jsx)(n.td,{children:(0,s.jsx)(n.code,{children:"boolean"})})]})})]}),"\n",(0,s.jsx)(n.h4,{id:"returns-15",children:"Returns"}),"\n",(0,s.jsx)(n.p,{children:(0,s.jsx)(n.code,{children:"void"})}),"\n",(0,s.jsx)(n.h4,{id:"defined-in-18",children:"Defined in"}),"\n",(0,s.jsx)(n.p,{children:(0,s.jsx)(n.a,{href:"https://github.com/sakitam-fdd/ol3Echarts/blob/master/packages/ol-echarts/src/index.ts#L249",children:"index.ts:249"})}),"\n",(0,s.jsx)(n.hr,{}),"\n",(0,s.jsx)(n.h3,{id:"remove",children:"remove()"}),"\n",(0,s.jsx)(n.pre,{children:(0,s.jsx)(n.code,{className:"language-ts",children:"remove(): void\n"})}),"\n",(0,s.jsx)(n.p,{children:"remove layer"}),"\n",(0,s.jsx)(n.h4,{id:"returns-16",children:"Returns"}),"\n",(0,s.jsx)(n.p,{children:(0,s.jsx)(n.code,{children:"void"})}),"\n",(0,s.jsx)(n.h4,{id:"defined-in-19",children:"Defined in"}),"\n",(0,s.jsx)(n.p,{children:(0,s.jsx)(n.a,{href:"https://github.com/sakitam-fdd/ol3Echarts/blob/master/packages/ol-echarts/src/index.ts#L261",children:"index.ts:261"})}),"\n",(0,s.jsx)(n.hr,{}),"\n",(0,s.jsx)(n.h3,{id:"show",children:"show()"}),"\n",(0,s.jsx)(n.pre,{children:(0,s.jsx)(n.code,{className:"language-ts",children:"show(): void\n"})}),"\n",(0,s.jsx)(n.p,{children:"show layer"}),"\n",(0,s.jsx)(n.h4,{id:"returns-17",children:"Returns"}),"\n",(0,s.jsx)(n.p,{children:(0,s.jsx)(n.code,{children:"void"})}),"\n",(0,s.jsx)(n.h4,{id:"defined-in-20",children:"Defined in"}),"\n",(0,s.jsx)(n.p,{children:(0,s.jsx)(n.a,{href:"https://github.com/sakitam-fdd/ol3Echarts/blob/master/packages/ol-echarts/src/index.ts#L278",children:"index.ts:278"})}),"\n",(0,s.jsx)(n.hr,{}),"\n",(0,s.jsx)(n.h3,{id:"hide",children:"hide()"}),"\n",(0,s.jsx)(n.pre,{children:(0,s.jsx)(n.code,{className:"language-ts",children:"hide(): void\n"})}),"\n",(0,s.jsx)(n.p,{children:"hide layer"}),"\n",(0,s.jsx)(n.h4,{id:"returns-18",children:"Returns"}),"\n",(0,s.jsx)(n.p,{children:(0,s.jsx)(n.code,{children:"void"})}),"\n",(0,s.jsx)(n.h4,{id:"defined-in-21",children:"Defined in"}),"\n",(0,s.jsx)(n.p,{children:(0,s.jsx)(n.a,{href:"https://github.com/sakitam-fdd/ol3Echarts/blob/master/packages/ol-echarts/src/index.ts#L292",children:"index.ts:292"})}),"\n",(0,s.jsx)(n.hr,{}),"\n",(0,s.jsx)(n.h3,{id:"isvisible",children:"isVisible()"}),"\n",(0,s.jsx)(n.pre,{children:(0,s.jsx)(n.code,{className:"language-ts",children:"isVisible(): undefined | boolean\n"})}),"\n",(0,s.jsx)(n.p,{children:"check layer is visible"}),"\n",(0,s.jsx)(n.h4,{id:"returns-19",children:"Returns"}),"\n",(0,s.jsxs)(n.p,{children:[(0,s.jsx)(n.code,{children:"undefined"})," | ",(0,s.jsx)(n.code,{children:"boolean"})]}),"\n",(0,s.jsx)(n.h4,{id:"defined-in-22",children:"Defined in"}),"\n",(0,s.jsx)(n.p,{children:(0,s.jsx)(n.a,{href:"https://github.com/sakitam-fdd/ol3Echarts/blob/master/packages/ol-echarts/src/index.ts#L306",children:"index.ts:306"})}),"\n",(0,s.jsx)(n.hr,{}),"\n",(0,s.jsx)(n.h3,{id:"showloading",children:"showLoading()"}),"\n",(0,s.jsx)(n.pre,{children:(0,s.jsx)(n.code,{className:"language-ts",children:"showLoading(): void\n"})}),"\n",(0,s.jsx)(n.p,{children:"show loading bar"}),"\n",(0,s.jsx)(n.h4,{id:"returns-20",children:"Returns"}),"\n",(0,s.jsx)(n.p,{children:(0,s.jsx)(n.code,{children:"void"})}),"\n",(0,s.jsx)(n.h4,{id:"defined-in-23",children:"Defined in"}),"\n",(0,s.jsx)(n.p,{children:(0,s.jsx)(n.a,{href:"https://github.com/sakitam-fdd/ol3Echarts/blob/master/packages/ol-echarts/src/index.ts#L313",children:"index.ts:313"})}),"\n",(0,s.jsx)(n.hr,{}),"\n",(0,s.jsx)(n.h3,{id:"hideloading",children:"hideLoading()"}),"\n",(0,s.jsx)(n.pre,{children:(0,s.jsx)(n.code,{className:"language-ts",children:"hideLoading(): void\n"})}),"\n",(0,s.jsx)(n.p,{children:"hide loading bar"}),"\n",(0,s.jsx)(n.h4,{id:"returns-21",children:"Returns"}),"\n",(0,s.jsx)(n.p,{children:(0,s.jsx)(n.code,{children:"void"})}),"\n",(0,s.jsx)(n.h4,{id:"defined-in-24",children:"Defined in"}),"\n",(0,s.jsx)(n.p,{children:(0,s.jsx)(n.a,{href:"https://github.com/sakitam-fdd/ol3Echarts/blob/master/packages/ol-echarts/src/index.ts#L322",children:"index.ts:322"})}),"\n",(0,s.jsx)(n.hr,{}),"\n",(0,s.jsx)(n.h3,{id:"setzindex",children:"setZIndex()"}),"\n",(0,s.jsx)(n.pre,{children:(0,s.jsx)(n.code,{className:"language-ts",children:"setZIndex(zIndex): void\n"})}),"\n",(0,s.jsx)(n.p,{children:"set zindex"}),"\n",(0,s.jsx)(n.h4,{id:"parameters-13",children:"Parameters"}),"\n",(0,s.jsxs)(n.table,{children:[(0,s.jsx)(n.thead,{children:(0,s.jsxs)(n.tr,{children:[(0,s.jsx)(n.th,{children:"Parameter"}),(0,s.jsx)(n.th,{children:"Type"}),(0,s.jsx)(n.th,{children:"Description"})]})}),(0,s.jsx)(n.tbody,{children:(0,s.jsxs)(n.tr,{children:[(0,s.jsx)(n.td,{children:(0,s.jsx)(n.code,{children:"zIndex"})}),(0,s.jsxs)(n.td,{children:[(0,s.jsx)(n.code,{children:"string"})," | ",(0,s.jsx)(n.code,{children:"number"})]}),(0,s.jsx)(n.td,{})]})})]}),"\n",(0,s.jsx)(n.h4,{id:"returns-22",children:"Returns"}),"\n",(0,s.jsx)(n.p,{children:(0,s.jsx)(n.code,{children:"void"})}),"\n",(0,s.jsx)(n.h4,{id:"defined-in-25",children:"Defined in"}),"\n",(0,s.jsx)(n.p,{children:(0,s.jsx)(n.a,{href:"https://github.com/sakitam-fdd/ol3Echarts/blob/master/packages/ol-echarts/src/index.ts#L332",children:"index.ts:332"})}),"\n",(0,s.jsx)(n.hr,{}),"\n",(0,s.jsx)(n.h3,{id:"getzindex",children:"getZIndex()"}),"\n",(0,s.jsx)(n.pre,{children:(0,s.jsx)(n.code,{className:"language-ts",children:"getZIndex(): undefined | string\n"})}),"\n",(0,s.jsx)(n.p,{children:"get zindex"}),"\n",(0,s.jsx)(n.h4,{id:"returns-23",children:"Returns"}),"\n",(0,s.jsxs)(n.p,{children:[(0,s.jsx)(n.code,{children:"undefined"})," | ",(0,s.jsx)(n.code,{children:"string"})]}),"\n",(0,s.jsx)(n.h4,{id:"defined-in-26",children:"Defined in"}),"\n",(0,s.jsx)(n.p,{children:(0,s.jsx)(n.a,{href:"https://github.com/sakitam-fdd/ol3Echarts/blob/master/packages/ol-echarts/src/index.ts#L344",children:"index.ts:344"})}),"\n",(0,s.jsx)(n.hr,{}),"\n",(0,s.jsx)(n.h3,{id:"setvisible",children:"setVisible()"}),"\n",(0,s.jsx)(n.pre,{children:(0,s.jsx)(n.code,{className:"language-ts",children:"setVisible(visible): void\n"})}),"\n",(0,s.jsxs)(n.p,{children:["set visible\nfrom: ",(0,s.jsx)(n.a,{href:"https://github.com/sakitam-fdd/ol3Echarts/blob/3929ad72f562661ba3511d4d9e360dee5ac793c2/",children:"https://github.com/sakitam-fdd/ol3Echarts/blob/3929ad72f562661ba3511d4d9e360dee5ac793c2/"}),"\npackages/ol-echarts/src/index.js\nauthor: ",(0,s.jsx)(n.a,{href:"https://github.com/ChenGuanglin0924",children:"https://github.com/ChenGuanglin0924"})]}),"\n",(0,s.jsx)(n.h4,{id:"parameters-14",children:"Parameters"}),"\n",(0,s.jsxs)(n.table,{children:[(0,s.jsx)(n.thead,{children:(0,s.jsxs)(n.tr,{children:[(0,s.jsx)(n.th,{children:"Parameter"}),(0,s.jsx)(n.th,{children:"Type"}),(0,s.jsx)(n.th,{children:"Description"})]})}),(0,s.jsx)(n.tbody,{children:(0,s.jsxs)(n.tr,{children:[(0,s.jsx)(n.td,{children:(0,s.jsx)(n.code,{children:"visible"})}),(0,s.jsx)(n.td,{children:(0,s.jsx)(n.code,{children:"boolean"})}),(0,s.jsx)(n.td,{})]})})]}),"\n",(0,s.jsx)(n.h4,{id:"returns-24",children:"Returns"}),"\n",(0,s.jsx)(n.p,{children:(0,s.jsx)(n.code,{children:"void"})}),"\n",(0,s.jsx)(n.h4,{id:"defined-in-27",children:"Defined in"}),"\n",(0,s.jsx)(n.p,{children:(0,s.jsx)(n.a,{href:"https://github.com/sakitam-fdd/ol3Echarts/blob/master/packages/ol-echarts/src/index.ts#L355",children:"index.ts:355"})}),"\n",(0,s.jsx)(n.hr,{}),"\n",(0,s.jsx)(n.h3,{id:"render",children:"render()"}),"\n",(0,s.jsx)(n.pre,{children:(0,s.jsx)(n.code,{className:"language-ts",children:"render(): void\n"})}),"\n",(0,s.jsx)(n.p,{children:"render"}),"\n",(0,s.jsx)(n.h4,{id:"returns-25",children:"Returns"}),"\n",(0,s.jsx)(n.p,{children:(0,s.jsx)(n.code,{children:"void"})}),"\n",(0,s.jsx)(n.h4,{id:"defined-in-28",children:"Defined in"}),"\n",(0,s.jsx)(n.p,{children:(0,s.jsx)(n.a,{href:"https://github.com/sakitam-fdd/ol3Echarts/blob/master/packages/ol-echarts/src/index.ts#L375",children:"index.ts:375"})}),"\n",(0,s.jsx)(n.hr,{}),"\n",(0,s.jsx)(n.h3,{id:"redraw",children:"redraw()"}),"\n",(0,s.jsx)(n.pre,{children:(0,s.jsx)(n.code,{className:"language-ts",children:"redraw(): void\n"})}),"\n",(0,s.jsx)(n.p,{children:"redraw echarts layer"}),"\n",(0,s.jsx)(n.h4,{id:"returns-26",children:"Returns"}),"\n",(0,s.jsx)(n.p,{children:(0,s.jsx)(n.code,{children:"void"})}),"\n",(0,s.jsx)(n.h4,{id:"defined-in-29",children:"Defined in"}),"\n",(0,s.jsx)(n.p,{children:(0,s.jsx)(n.a,{href:"https://github.com/sakitam-fdd/ol3Echarts/blob/master/packages/ol-echarts/src/index.ts#L396",children:"index.ts:396"})}),"\n",(0,s.jsx)(n.hr,{}),"\n",(0,s.jsx)(n.h3,{id:"updateviewsize",children:"updateViewSize()"}),"\n",(0,s.jsx)(n.pre,{children:(0,s.jsx)(n.code,{className:"language-ts",children:"updateViewSize(size?): void\n"})}),"\n",(0,s.jsx)(n.p,{children:"update container size"}),"\n",(0,s.jsx)(n.h4,{id:"parameters-15",children:"Parameters"}),"\n",(0,s.jsxs)(n.table,{children:[(0,s.jsx)(n.thead,{children:(0,s.jsxs)(n.tr,{children:[(0,s.jsx)(n.th,{children:"Parameter"}),(0,s.jsx)(n.th,{children:"Type"}),(0,s.jsx)(n.th,{children:"Description"})]})}),(0,s.jsx)(n.tbody,{children:(0,s.jsxs)(n.tr,{children:[(0,s.jsxs)(n.td,{children:[(0,s.jsx)(n.code,{children:"size"}),"?"]}),(0,s.jsxs)(n.td,{children:[(0,s.jsx)(n.code,{children:"number"}),"[]"]}),(0,s.jsx)(n.td,{})]})})]}),"\n",(0,s.jsx)(n.h4,{id:"returns-27",children:"Returns"}),"\n",(0,s.jsx)(n.p,{children:(0,s.jsx)(n.code,{children:"void"})}),"\n",(0,s.jsx)(n.h4,{id:"defined-in-30",children:"Defined in"}),"\n",(0,s.jsx)(n.p,{children:(0,s.jsx)(n.a,{href:"https://github.com/sakitam-fdd/ol3Echarts/blob/master/packages/ol-echarts/src/index.ts#L404",children:"index.ts:404"})}),"\n",(0,s.jsx)(n.hr,{}),"\n",(0,s.jsx)(n.h3,{id:"dispatchevent",children:"dispatchEvent()"}),"\n",(0,s.jsx)(n.pre,{children:(0,s.jsx)(n.code,{className:"language-ts",children:"dispatchEvent(event): undefined | boolean\n"})}),"\n",(0,s.jsx)(n.p,{children:"dispatch event"}),"\n",(0,s.jsx)(n.h4,{id:"parameters-16",children:"Parameters"}),"\n",(0,s.jsxs)(n.table,{children:[(0,s.jsx)(n.thead,{children:(0,s.jsxs)(n.tr,{children:[(0,s.jsx)(n.th,{children:"Parameter"}),(0,s.jsx)(n.th,{children:"Type"}),(0,s.jsx)(n.th,{children:"Description"})]})}),(0,s.jsx)(n.tbody,{children:(0,s.jsxs)(n.tr,{children:[(0,s.jsx)(n.td,{children:(0,s.jsx)(n.code,{children:"event"})}),(0,s.jsxs)(n.td,{children:[(0,s.jsx)(n.code,{children:"string"})," | ",(0,s.jsx)(n.code,{children:"object"})," | ",(0,s.jsx)(n.code,{children:"BaseEvent"})]}),(0,s.jsx)(n.td,{})]})})]}),"\n",(0,s.jsx)(n.h4,{id:"returns-28",children:"Returns"}),"\n",(0,s.jsxs)(n.p,{children:[(0,s.jsx)(n.code,{children:"undefined"})," | ",(0,s.jsx)(n.code,{children:"boolean"})]}),"\n",(0,s.jsx)(n.h4,{id:"overrides-1",children:"Overrides"}),"\n",(0,s.jsx)(n.p,{children:(0,s.jsx)(n.code,{children:"obj.dispatchEvent"})}),"\n",(0,s.jsx)(n.h4,{id:"defined-in-31",children:"Defined in"}),"\n",(0,s.jsx)(n.p,{children:(0,s.jsx)(n.a,{href:"https://github.com/sakitam-fdd/ol3Echarts/blob/master/packages/ol-echarts/src/index.ts#L988",children:"index.ts:988"})}),"\n",(0,s.jsx)(n.hr,{}),"\n",(0,s.jsx)(n.h3,{id:"set",children:"set()"}),"\n",(0,s.jsx)(n.pre,{children:(0,s.jsx)(n.code,{className:"language-ts",children:"set(\n key, \n value, \n optSilent?): void\n"})}),"\n",(0,s.jsx)(n.p,{children:"Sets a value."}),"\n",(0,s.jsx)(n.h4,{id:"parameters-17",children:"Parameters"}),"\n",(0,s.jsxs)(n.table,{children:[(0,s.jsx)(n.thead,{children:(0,s.jsxs)(n.tr,{children:[(0,s.jsx)(n.th,{children:"Parameter"}),(0,s.jsx)(n.th,{children:"Type"}),(0,s.jsx)(n.th,{children:"Description"})]})}),(0,s.jsxs)(n.tbody,{children:[(0,s.jsxs)(n.tr,{children:[(0,s.jsx)(n.td,{children:(0,s.jsx)(n.code,{children:"key"})}),(0,s.jsx)(n.td,{children:(0,s.jsx)(n.code,{children:"string"})}),(0,s.jsx)(n.td,{children:"Key name."})]}),(0,s.jsxs)(n.tr,{children:[(0,s.jsx)(n.td,{children:(0,s.jsx)(n.code,{children:"value"})}),(0,s.jsx)(n.td,{children:(0,s.jsx)(n.code,{children:"any"})}),(0,s.jsx)(n.td,{children:"Value."})]}),(0,s.jsxs)(n.tr,{children:[(0,s.jsxs)(n.td,{children:[(0,s.jsx)(n.code,{children:"optSilent"}),"?"]}),(0,s.jsx)(n.td,{children:(0,s.jsx)(n.code,{children:"boolean"})}),(0,s.jsx)(n.td,{children:"-"})]})]})]}),"\n",(0,s.jsx)(n.h4,{id:"returns-29",children:"Returns"}),"\n",(0,s.jsx)(n.p,{children:(0,s.jsx)(n.code,{children:"void"})}),"\n",(0,s.jsx)(n.h4,{id:"api",children:"Api"}),"\n",(0,s.jsx)(n.h4,{id:"overrides-2",children:"Overrides"}),"\n",(0,s.jsx)(n.p,{children:(0,s.jsx)(n.code,{children:"obj.set"})}),"\n",(0,s.jsx)(n.h4,{id:"defined-in-32",children:"Defined in"}),"\n",(0,s.jsx)(n.p,{children:(0,s.jsx)(n.a,{href:"https://github.com/sakitam-fdd/ol3Echarts/blob/master/packages/ol-echarts/src/index.ts#L992",children:"index.ts:992"})}),"\n",(0,s.jsx)(n.hr,{}),"\n",(0,s.jsx)(n.h3,{id:"get",children:"get()"}),"\n",(0,s.jsx)(n.pre,{children:(0,s.jsx)(n.code,{className:"language-ts",children:"get(key): any\n"})}),"\n",(0,s.jsx)(n.p,{children:"Gets a value."}),"\n",(0,s.jsx)(n.h4,{id:"parameters-18",children:"Parameters"}),"\n",(0,s.jsxs)(n.table,{children:[(0,s.jsx)(n.thead,{children:(0,s.jsxs)(n.tr,{children:[(0,s.jsx)(n.th,{children:"Parameter"}),(0,s.jsx)(n.th,{children:"Type"}),(0,s.jsx)(n.th,{children:"Description"})]})}),(0,s.jsx)(n.tbody,{children:(0,s.jsxs)(n.tr,{children:[(0,s.jsx)(n.td,{children:(0,s.jsx)(n.code,{children:"key"})}),(0,s.jsx)(n.td,{children:(0,s.jsx)(n.code,{children:"string"})}),(0,s.jsx)(n.td,{children:"Key name."})]})})]}),"\n",(0,s.jsx)(n.h4,{id:"returns-30",children:"Returns"}),"\n",(0,s.jsx)(n.p,{children:(0,s.jsx)(n.code,{children:"any"})}),"\n",(0,s.jsx)(n.p,{children:"Value."}),"\n",(0,s.jsx)(n.h4,{id:"api-1",children:"Api"}),"\n",(0,s.jsx)(n.h4,{id:"overrides-3",children:"Overrides"}),"\n",(0,s.jsx)(n.p,{children:(0,s.jsx)(n.code,{children:"obj.get"})}),"\n",(0,s.jsx)(n.h4,{id:"defined-in-33",children:"Defined in"}),"\n",(0,s.jsx)(n.p,{children:(0,s.jsx)(n.a,{href:"https://github.com/sakitam-fdd/ol3Echarts/blob/master/packages/ol-echarts/src/index.ts#L996",children:"index.ts:996"})}),"\n",(0,s.jsx)(n.hr,{}),"\n",(0,s.jsx)(n.h3,{id:"on",children:"on()"}),"\n",(0,s.jsx)(n.pre,{children:(0,s.jsx)(n.code,{className:"language-ts",children:"on(type, listener): EventsKey\n"})}),"\n",(0,s.jsx)(n.h4,{id:"parameters-19",children:"Parameters"}),"\n",(0,s.jsxs)(n.table,{children:[(0,s.jsx)(n.thead,{children:(0,s.jsxs)(n.tr,{children:[(0,s.jsx)(n.th,{children:"Parameter"}),(0,s.jsx)(n.th,{children:"Type"})]})}),(0,s.jsxs)(n.tbody,{children:[(0,s.jsxs)(n.tr,{children:[(0,s.jsx)(n.td,{children:(0,s.jsx)(n.code,{children:"type"})}),(0,s.jsx)(n.td,{children:(0,s.jsx)(n.code,{children:"any"})})]}),(0,s.jsxs)(n.tr,{children:[(0,s.jsx)(n.td,{children:(0,s.jsx)(n.code,{children:"listener"})}),(0,s.jsxs)(n.td,{children:["(",(0,s.jsx)(n.code,{children:"p0"}),") => ",(0,s.jsx)(n.code,{children:"void"})]})]})]})]}),"\n",(0,s.jsx)(n.h4,{id:"returns-31",children:"Returns"}),"\n",(0,s.jsx)(n.p,{children:(0,s.jsx)(n.code,{children:"EventsKey"})}),"\n",(0,s.jsx)(n.h4,{id:"overrides-4",children:"Overrides"}),"\n",(0,s.jsx)(n.p,{children:(0,s.jsx)(n.code,{children:"obj.on"})}),"\n",(0,s.jsx)(n.h4,{id:"defined-in-34",children:"Defined in"}),"\n",(0,s.jsx)(n.p,{children:(0,s.jsx)(n.a,{href:"https://github.com/sakitam-fdd/ol3Echarts/blob/master/packages/ol-echarts/src/index.ts#L1001",children:"index.ts:1001"})}),"\n",(0,s.jsx)(n.hr,{}),"\n",(0,s.jsx)(n.h3,{id:"un",children:"un()"}),"\n",(0,s.jsx)(n.pre,{children:(0,s.jsx)(n.code,{className:"language-ts",children:"un(type, listener): void\n"})}),"\n",(0,s.jsx)(n.h4,{id:"parameters-20",children:"Parameters"}),"\n",(0,s.jsxs)(n.table,{children:[(0,s.jsx)(n.thead,{children:(0,s.jsxs)(n.tr,{children:[(0,s.jsx)(n.th,{children:"Parameter"}),(0,s.jsx)(n.th,{children:"Type"})]})}),(0,s.jsxs)(n.tbody,{children:[(0,s.jsxs)(n.tr,{children:[(0,s.jsx)(n.td,{children:(0,s.jsx)(n.code,{children:"type"})}),(0,s.jsx)(n.td,{children:(0,s.jsx)(n.code,{children:"any"})})]}),(0,s.jsxs)(n.tr,{children:[(0,s.jsx)(n.td,{children:(0,s.jsx)(n.code,{children:"listener"})}),(0,s.jsxs)(n.td,{children:["(",(0,s.jsx)(n.code,{children:"p0"}),") => ",(0,s.jsx)(n.code,{children:"void"})]})]})]})]}),"\n",(0,s.jsx)(n.h4,{id:"returns-32",children:"Returns"}),"\n",(0,s.jsx)(n.p,{children:(0,s.jsx)(n.code,{children:"void"})}),"\n",(0,s.jsx)(n.h4,{id:"overrides-5",children:"Overrides"}),"\n",(0,s.jsx)(n.p,{children:(0,s.jsx)(n.code,{children:"obj.un"})}),"\n",(0,s.jsx)(n.h4,{id:"defined-in-35",children:"Defined in"}),"\n",(0,s.jsx)(n.p,{children:(0,s.jsx)(n.a,{href:"https://github.com/sakitam-fdd/ol3Echarts/blob/master/packages/ol-echarts/src/index.ts#L1007",children:"index.ts:1007"})})]})}function x(e={}){const{wrapper:n}={...(0,i.R)(),...e.components};return n?(0,s.jsx)(n,{...e,children:(0,s.jsx)(a,{...e})}):a(e)}},2036:(e,n,d)=>{d.d(n,{R:()=>l,x:()=>c});var s=d(7378);const i={},r=s.createContext(i);function l(e){const n=s.useContext(r);return s.useMemo((function(){return"function"==typeof e?e(n):{...n,...e}}),[n,e])}function c(e){let n;return n=e.disableParentContext?"function"==typeof e.components?e.components(i):e.components||i:l(e.components),s.createElement(r.Provider,{value:n},e.children)}}}]); \ No newline at end of file diff --git a/assets/js/3beeadc4.22ebbd6d.js b/assets/js/3beeadc4.22ebbd6d.js new file mode 100644 index 0000000..1fd15a3 --- /dev/null +++ b/assets/js/3beeadc4.22ebbd6d.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunkol_echarts_docs=self.webpackChunkol_echarts_docs||[]).push([[868],{3452:(n,t,e)=>{e.r(t),e.d(t,{assets:()=>c,contentTitle:()=>r,default:()=>p,frontMatter:()=>i,metadata:()=>s,toc:()=>d});var a=e(6106),o=e(2036);const i={id:"wind",title:"\u5168\u7403\u98ce\u5411"},r=void 0,s={id:"playgrounds/wind",title:"\u5168\u7403\u98ce\u5411",description:"\u793a\u4f8b",source:"@site/docs/playgrounds/wind.mdx",sourceDirName:"playgrounds",slug:"/playgrounds/wind",permalink:"/ol3Echarts/docs/playgrounds/wind",draft:!1,unlisted:!1,editUrl:"https://github.com/sakitam-fdd/ol3Echarts/edit/master/documents/docs/docs/playgrounds/wind.mdx",tags:[],version:"current",lastUpdatedBy:"sakitam-fdd",lastUpdatedAt:1730645386e3,frontMatter:{id:"wind",title:"\u5168\u7403\u98ce\u5411"},sidebar:"docs",previous:{title:"\u5fae\u535a\u7b7e\u5230\u6570\u636e\u70b9\u4eae\u4e2d\u56fd-WEBGL",permalink:"/ol3Echarts/docs/playgrounds/weibo-gl"},next:{title:"\u81ea\u5b9a\u4e49\u70b9\u89c6\u56fe",permalink:"/ol3Echarts/docs/playgrounds/point"}},c={},d=[{value:"\u793a\u4f8b",id:"\u793a\u4f8b",level:3}];function l(n){const t={code:"code",h3:"h3",pre:"pre",...(0,o.R)(),...n.components};return(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(t.h3,{id:"\u793a\u4f8b",children:"\u793a\u4f8b"}),"\n",(0,a.jsx)(t.pre,{children:(0,a.jsx)(t.code,{className:"language-jsx",metastring:"live",live:!0,children:"function render(props) {\n const container = useRef(null);\n\n const dataUrl = useBaseUrl('/json/wind.json');\n\n const initChat = (map, option) => {\n const chart = new EChartsLayer(option, {\n stopEvent: false,\n hideOnMoving: false,\n hideOnZooming: false,\n forcedPrecomposeRerender: true,\n });\n\n chart.appendTo(map);\n }\n\n const init = async () => {\n const map = new ol.Map({\n target: container.current,\n view: new ol.View({\n projection: 'EPSG:4326',\n zoom: 5,\n rotation: 0,\n center: [113.53450137499999, 34.44104525],\n }),\n layers: [\n new TileLayer({\n source: new XYZ({\n url: 'https://{a-c}.basemaps.cartocdn.com/dark_all/{z}/{x}/{y}.png',\n }),\n }),\n ],\n });\n\n const windData = await fetch(dataUrl).then(res => res.json());\n\n const data = [];\n let p = 0;\n let maxMag = 0;\n let minMag = Infinity;\n for (let j = 0; j < windData.ny; j++) {\n for (let i = 0; i < windData.nx; i++, p++) {\n const vx = windData.data[p][0];\n const vy = windData.data[p][1];\n const mag = Math.sqrt(vx * vx + vy * vy);\n // \u6570\u636e\u662f\u4e00\u4e2a\u4e00\u7ef4\u6570\u7ec4\n // [ [\u7ecf\u5ea6, \u7ef4\u5ea6\uff0c\u5411\u91cf\u7ecf\u5ea6\u65b9\u5411\u7684\u503c\uff0c\u5411\u91cf\u7ef4\u5ea6\u65b9\u5411\u7684\u503c] ]\n data.push([\n i / windData.nx * 360 - 180,\n j / windData.ny * 180 - 90,\n vx,\n vy,\n mag\n ]);\n maxMag = Math.max(mag, maxMag);\n minMag = Math.min(mag, minMag);\n }\n }\n\n const option = {\n title: {\n text: '\u98ce\u573a',\n left: 'center',\n top: 'top',\n textStyle: {\n color: '#fff'\n }\n },\n visualMap: {\n left: 'left',\n min: minMag,\n max: maxMag,\n dimension: 4,\n inRange: {\n // color: ['green', 'yellow', 'red']\n color: ['#313695', '#4575b4', '#74add1', '#abd9e9', '#e0f3f8', '#ffffbf', '#fee090', '#fdae61', '#f46d43', '#d73027', '#a50026']\n },\n realtime: false,\n calculable: true,\n textStyle: {\n color: '#fff'\n }\n },\n series: [\n {\n type: 'flowGL',\n data: data,\n particleDensity: 64,\n particleSpeed: 2,\n particleSize: 1,\n gridWidth: windData.nx,\n gridHeight: windData.ny,\n itemStyle: {\n opacity: 0.7\n }\n }\n ]\n };\n\n initChat(map, option);\n\n function resize(target) {}\n\n return {\n resize,\n }\n }\n\n useEffect(() => {\n const { resize } = init();\n\n return () => {\n };\n }, []);\n\n return (\n <div className=\"live-wrap\">\n <div ref={container} className=\"map-content\" />\n </div>\n );\n}\n"})})]})}function p(n={}){const{wrapper:t}={...(0,o.R)(),...n.components};return t?(0,a.jsx)(t,{...n,children:(0,a.jsx)(l,{...n})}):l(n)}},2036:(n,t,e)=>{e.d(t,{R:()=>r,x:()=>s});var a=e(7378);const o={},i=a.createContext(o);function r(n){const t=a.useContext(i);return a.useMemo((function(){return"function"==typeof n?n(t):{...t,...n}}),[t,n])}function s(n){let t;return t=n.disableParentContext?"function"==typeof n.components?n.components(o):n.components||o:r(n.components),a.createElement(i.Provider,{value:t},n.children)}}}]); \ No newline at end of file diff --git a/assets/js/3beeadc4.c519746f.js b/assets/js/3beeadc4.c519746f.js deleted file mode 100644 index ba27d31..0000000 --- a/assets/js/3beeadc4.c519746f.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunkol_echarts_docs=self.webpackChunkol_echarts_docs||[]).push([[868],{278:(n,t,e)=>{e.r(t),e.d(t,{assets:()=>c,contentTitle:()=>r,default:()=>p,frontMatter:()=>i,metadata:()=>s,toc:()=>d});var a=e(6106),o=e(2036);const i={id:"wind",title:"\u5168\u7403\u98ce\u5411"},r=void 0,s={id:"playgrounds/wind",title:"\u5168\u7403\u98ce\u5411",description:"\u793a\u4f8b",source:"@site/docs/playgrounds/wind.mdx",sourceDirName:"playgrounds",slug:"/playgrounds/wind",permalink:"/ol3Echarts/docs/playgrounds/wind",draft:!1,unlisted:!1,editUrl:"https://github.com/sakitam-fdd/ol3Echarts/edit/master/documents/docs/docs/playgrounds/wind.mdx",tags:[],version:"current",lastUpdatedBy:"sakitam-fdd",lastUpdatedAt:1730645386e3,frontMatter:{id:"wind",title:"\u5168\u7403\u98ce\u5411"},sidebar:"docs",previous:{title:"\u5fae\u535a\u7b7e\u5230\u6570\u636e\u70b9\u4eae\u4e2d\u56fd-WEBGL",permalink:"/ol3Echarts/docs/playgrounds/weibo-gl"},next:{title:"\u81ea\u5b9a\u4e49\u70b9\u89c6\u56fe",permalink:"/ol3Echarts/docs/playgrounds/point"}},c={},d=[{value:"\u793a\u4f8b",id:"\u793a\u4f8b",level:3}];function l(n){const t={code:"code",h3:"h3",pre:"pre",...(0,o.R)(),...n.components};return(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(t.h3,{id:"\u793a\u4f8b",children:"\u793a\u4f8b"}),"\n",(0,a.jsx)(t.pre,{children:(0,a.jsx)(t.code,{className:"language-jsx",metastring:"live",live:!0,children:"function render(props) {\n const container = useRef(null);\n\n const dataUrl = useBaseUrl('/json/wind.json');\n\n const initChat = (map, option) => {\n const chart = new EChartsLayer(option, {\n stopEvent: false,\n hideOnMoving: false,\n hideOnZooming: false,\n forcedPrecomposeRerender: true,\n });\n\n chart.appendTo(map);\n }\n\n const init = async () => {\n const map = new ol.Map({\n target: container.current,\n view: new ol.View({\n projection: 'EPSG:4326',\n zoom: 5,\n rotation: 0,\n center: [113.53450137499999, 34.44104525],\n }),\n layers: [\n new TileLayer({\n source: new XYZ({\n url: 'https://{a-c}.basemaps.cartocdn.com/dark_all/{z}/{x}/{y}.png',\n }),\n }),\n ],\n });\n\n const windData = await fetch(dataUrl).then(res => res.json());\n\n const data = [];\n let p = 0;\n let maxMag = 0;\n let minMag = Infinity;\n for (let j = 0; j < windData.ny; j++) {\n for (let i = 0; i < windData.nx; i++, p++) {\n const vx = windData.data[p][0];\n const vy = windData.data[p][1];\n const mag = Math.sqrt(vx * vx + vy * vy);\n // \u6570\u636e\u662f\u4e00\u4e2a\u4e00\u7ef4\u6570\u7ec4\n // [ [\u7ecf\u5ea6, \u7ef4\u5ea6\uff0c\u5411\u91cf\u7ecf\u5ea6\u65b9\u5411\u7684\u503c\uff0c\u5411\u91cf\u7ef4\u5ea6\u65b9\u5411\u7684\u503c] ]\n data.push([\n i / windData.nx * 360 - 180,\n j / windData.ny * 180 - 90,\n vx,\n vy,\n mag\n ]);\n maxMag = Math.max(mag, maxMag);\n minMag = Math.min(mag, minMag);\n }\n }\n\n const option = {\n title: {\n text: '\u98ce\u573a',\n left: 'center',\n top: 'top',\n textStyle: {\n color: '#fff'\n }\n },\n visualMap: {\n left: 'left',\n min: minMag,\n max: maxMag,\n dimension: 4,\n inRange: {\n // color: ['green', 'yellow', 'red']\n color: ['#313695', '#4575b4', '#74add1', '#abd9e9', '#e0f3f8', '#ffffbf', '#fee090', '#fdae61', '#f46d43', '#d73027', '#a50026']\n },\n realtime: false,\n calculable: true,\n textStyle: {\n color: '#fff'\n }\n },\n series: [\n {\n type: 'flowGL',\n data: data,\n particleDensity: 64,\n particleSpeed: 2,\n particleSize: 1,\n gridWidth: windData.nx,\n gridHeight: windData.ny,\n itemStyle: {\n opacity: 0.7\n }\n }\n ]\n };\n\n initChat(map, option);\n\n function resize(target) {}\n\n return {\n resize,\n }\n }\n\n useEffect(() => {\n const { resize } = init();\n\n return () => {\n };\n }, []);\n\n return (\n <div className=\"live-wrap\">\n <div ref={container} className=\"map-content\" />\n </div>\n );\n}\n"})})]})}function p(n={}){const{wrapper:t}={...(0,o.R)(),...n.components};return t?(0,a.jsx)(t,{...n,children:(0,a.jsx)(l,{...n})}):l(n)}},2036:(n,t,e)=>{e.d(t,{R:()=>r,x:()=>s});var a=e(7378);const o={},i=a.createContext(o);function r(n){const t=a.useContext(i);return a.useMemo((function(){return"function"==typeof n?n(t):{...t,...n}}),[t,n])}function s(n){let t;return t=n.disableParentContext?"function"==typeof n.components?n.components(o):n.components||o:r(n.components),a.createElement(i.Provider,{value:t},n.children)}}}]); \ No newline at end of file diff --git a/assets/js/4184fb9b.1e164c23.js b/assets/js/4184fb9b.1e164c23.js deleted file mode 100644 index d5f25b0..0000000 --- a/assets/js/4184fb9b.1e164c23.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunkol_echarts_docs=self.webpackChunkol_echarts_docs||[]).push([[555],{7854:(n,e,t)=>{t.r(e),t.d(e,{assets:()=>i,contentTitle:()=>c,default:()=>u,frontMatter:()=>s,metadata:()=>a,toc:()=>l});var o=t(6106),r=t(2036);const s={id:"echarts-geojson",title:"\u89e3\u6790 echarts\u4e2d\u7684 geojson"},c=void 0,a={id:"playgrounds/echarts-geojson",title:"\u89e3\u6790 echarts\u4e2d\u7684 geojson",description:"\u6709\u4e9b\u540c\u5b66\u60f3\u7528echart\u4e2d\u7684map\u7c7b\u578b\u6765\u6e32\u67d3\u4e00\u4e9b\u77e2\u91cf\u6570\u636e\uff0c\u8fd9\u4e2a\u76ee\u524d\u662f\u65e0\u6cd5\u76f4\u63a5\u8fdb\u884c\u5b9e\u73b0\u7684\uff0c\u6211\u4eeckey\u53d8\u901a\u7684\u901a\u8fc7",source:"@site/docs/playgrounds/echarts-geojson.mdx",sourceDirName:"playgrounds",slug:"/playgrounds/echarts-geojson",permalink:"/ol3Echarts/docs/playgrounds/echarts-geojson",draft:!1,unlisted:!1,editUrl:"https://github.com/sakitam-fdd/ol3Echarts/edit/master/documents/docs/docs/playgrounds/echarts-geojson.mdx",tags:[],version:"current",lastUpdatedBy:"sakitam-fdd",lastUpdatedAt:1730645386e3,frontMatter:{id:"echarts-geojson",title:"\u89e3\u6790 echarts\u4e2d\u7684 geojson"},sidebar:"docs",previous:{title:"\u589e\u91cf\u6e32\u67d3",permalink:"/ol3Echarts/docs/playgrounds/incremental"},next:{title:"ol-echarts v4.0.1",permalink:"/ol3Echarts/docs/typedoc/ol-echarts/"}},i={},l=[{value:"\u793a\u4f8b",id:"\u793a\u4f8b",level:3}];function d(n){const e={code:"code",h3:"h3",p:"p",pre:"pre",...(0,r.R)(),...n.components};return(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)(e.p,{children:"\u6709\u4e9b\u540c\u5b66\u60f3\u7528echart\u4e2d\u7684map\u7c7b\u578b\u6765\u6e32\u67d3\u4e00\u4e9b\u77e2\u91cf\u6570\u636e\uff0c\u8fd9\u4e2a\u76ee\u524d\u662f\u65e0\u6cd5\u76f4\u63a5\u8fdb\u884c\u5b9e\u73b0\u7684\uff0c\u6211\u4eeckey\u53d8\u901a\u7684\u901a\u8fc7\n\u89e3\u6790\u5bf9\u5e94\u7684\u533a\u57df\u6570\u636e\u76f4\u63a5\u4f7f\u7528ol\u7684\u77e2\u91cf\u56fe\u5c42\u6765\u8fdb\u884c\u6e32\u67d3\uff0c\u4ee5\u4e0b\u662f\u4e00\u4e2a\u793a\u4f8b"}),"\n",(0,o.jsx)(e.h3,{id:"\u793a\u4f8b",children:"\u793a\u4f8b"}),"\n",(0,o.jsx)(e.pre,{children:(0,o.jsx)(e.code,{className:"language-jsx",metastring:"live",live:!0,children:"function render(props) {\n const container = useRef(null);\n\n const dataUrl = useBaseUrl('/json/world.json');\n\n const init = async () => {\n const map = new ol.Map({\n target: container.current,\n view: new ol.View({\n projection: 'EPSG:4326',\n zoom: 2,\n rotation: 0,\n center: [113.53450137499999, 34.44104525],\n }),\n layers: [\n new TileLayer({\n source: new XYZ({\n url: 'https://{a-c}.basemaps.cartocdn.com/dark_all/{z}/{x}/{y}.png',\n }),\n }),\n ],\n });\n\n const data = await fetch(dataUrl).then(res => res.json());\n\n const styleFunction = function (feature) {\n const num = feature.getProperties()['childNum'];\n return new Style({\n stroke: new Stroke({\n color: '#162436',\n width: 1\n }),\n fill: new Fill({\n color: num > 3 ? '#ff4500' : (num > 2 ? '#c1e682' : '#8cd0ef')\n })\n })\n };\n const vectorSource = new VectorSource({\n features: (new GeoJSON()).readFeatures(EChartsLayer.formatGeoJSON(data))\n });\n const vectorLayer = new VectorLayer({\n source: vectorSource,\n style: styleFunction\n });\n\n map.addLayer(vectorLayer);\n\n function resize(target) {}\n\n return {\n resize,\n }\n }\n\n useEffect(() => {\n const { resize } = init();\n\n return () => {\n };\n }, []);\n\n return (\n <div className=\"live-wrap\">\n <div ref={container} className=\"map-content\" />\n </div>\n );\n}\n"})})]})}function u(n={}){const{wrapper:e}={...(0,r.R)(),...n.components};return e?(0,o.jsx)(e,{...n,children:(0,o.jsx)(d,{...n})}):d(n)}},2036:(n,e,t)=>{t.d(e,{R:()=>c,x:()=>a});var o=t(7378);const r={},s=o.createContext(r);function c(n){const e=o.useContext(s);return o.useMemo((function(){return"function"==typeof n?n(e):{...e,...n}}),[e,n])}function a(n){let e;return e=n.disableParentContext?"function"==typeof n.components?n.components(r):n.components||r:c(n.components),o.createElement(s.Provider,{value:e},n.children)}}}]); \ No newline at end of file diff --git a/assets/js/4184fb9b.fbab0d17.js b/assets/js/4184fb9b.fbab0d17.js new file mode 100644 index 0000000..5d23d08 --- /dev/null +++ b/assets/js/4184fb9b.fbab0d17.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunkol_echarts_docs=self.webpackChunkol_echarts_docs||[]).push([[555],{28:(n,e,t)=>{t.r(e),t.d(e,{assets:()=>i,contentTitle:()=>c,default:()=>u,frontMatter:()=>s,metadata:()=>a,toc:()=>l});var o=t(6106),r=t(2036);const s={id:"echarts-geojson",title:"\u89e3\u6790 echarts\u4e2d\u7684 geojson"},c=void 0,a={id:"playgrounds/echarts-geojson",title:"\u89e3\u6790 echarts\u4e2d\u7684 geojson",description:"\u6709\u4e9b\u540c\u5b66\u60f3\u7528echart\u4e2d\u7684map\u7c7b\u578b\u6765\u6e32\u67d3\u4e00\u4e9b\u77e2\u91cf\u6570\u636e\uff0c\u8fd9\u4e2a\u76ee\u524d\u662f\u65e0\u6cd5\u76f4\u63a5\u8fdb\u884c\u5b9e\u73b0\u7684\uff0c\u6211\u4eeckey\u53d8\u901a\u7684\u901a\u8fc7",source:"@site/docs/playgrounds/echarts-geojson.mdx",sourceDirName:"playgrounds",slug:"/playgrounds/echarts-geojson",permalink:"/ol3Echarts/docs/playgrounds/echarts-geojson",draft:!1,unlisted:!1,editUrl:"https://github.com/sakitam-fdd/ol3Echarts/edit/master/documents/docs/docs/playgrounds/echarts-geojson.mdx",tags:[],version:"current",lastUpdatedBy:"sakitam-fdd",lastUpdatedAt:1730645386e3,frontMatter:{id:"echarts-geojson",title:"\u89e3\u6790 echarts\u4e2d\u7684 geojson"},sidebar:"docs",previous:{title:"\u589e\u91cf\u6e32\u67d3",permalink:"/ol3Echarts/docs/playgrounds/incremental"},next:{title:"ol-echarts v4.0.1",permalink:"/ol3Echarts/docs/typedoc/ol-echarts/"}},i={},l=[{value:"\u793a\u4f8b",id:"\u793a\u4f8b",level:3}];function d(n){const e={code:"code",h3:"h3",p:"p",pre:"pre",...(0,r.R)(),...n.components};return(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)(e.p,{children:"\u6709\u4e9b\u540c\u5b66\u60f3\u7528echart\u4e2d\u7684map\u7c7b\u578b\u6765\u6e32\u67d3\u4e00\u4e9b\u77e2\u91cf\u6570\u636e\uff0c\u8fd9\u4e2a\u76ee\u524d\u662f\u65e0\u6cd5\u76f4\u63a5\u8fdb\u884c\u5b9e\u73b0\u7684\uff0c\u6211\u4eeckey\u53d8\u901a\u7684\u901a\u8fc7\n\u89e3\u6790\u5bf9\u5e94\u7684\u533a\u57df\u6570\u636e\u76f4\u63a5\u4f7f\u7528ol\u7684\u77e2\u91cf\u56fe\u5c42\u6765\u8fdb\u884c\u6e32\u67d3\uff0c\u4ee5\u4e0b\u662f\u4e00\u4e2a\u793a\u4f8b"}),"\n",(0,o.jsx)(e.h3,{id:"\u793a\u4f8b",children:"\u793a\u4f8b"}),"\n",(0,o.jsx)(e.pre,{children:(0,o.jsx)(e.code,{className:"language-jsx",metastring:"live",live:!0,children:"function render(props) {\n const container = useRef(null);\n\n const dataUrl = useBaseUrl('/json/world.json');\n\n const init = async () => {\n const map = new ol.Map({\n target: container.current,\n view: new ol.View({\n projection: 'EPSG:4326',\n zoom: 2,\n rotation: 0,\n center: [113.53450137499999, 34.44104525],\n }),\n layers: [\n new TileLayer({\n source: new XYZ({\n url: 'https://{a-c}.basemaps.cartocdn.com/dark_all/{z}/{x}/{y}.png',\n }),\n }),\n ],\n });\n\n const data = await fetch(dataUrl).then(res => res.json());\n\n const styleFunction = function (feature) {\n const num = feature.getProperties()['childNum'];\n return new Style({\n stroke: new Stroke({\n color: '#162436',\n width: 1\n }),\n fill: new Fill({\n color: num > 3 ? '#ff4500' : (num > 2 ? '#c1e682' : '#8cd0ef')\n })\n })\n };\n const vectorSource = new VectorSource({\n features: (new GeoJSON()).readFeatures(EChartsLayer.formatGeoJSON(data))\n });\n const vectorLayer = new VectorLayer({\n source: vectorSource,\n style: styleFunction\n });\n\n map.addLayer(vectorLayer);\n\n function resize(target) {}\n\n return {\n resize,\n }\n }\n\n useEffect(() => {\n const { resize } = init();\n\n return () => {\n };\n }, []);\n\n return (\n <div className=\"live-wrap\">\n <div ref={container} className=\"map-content\" />\n </div>\n );\n}\n"})})]})}function u(n={}){const{wrapper:e}={...(0,r.R)(),...n.components};return e?(0,o.jsx)(e,{...n,children:(0,o.jsx)(d,{...n})}):d(n)}},2036:(n,e,t)=>{t.d(e,{R:()=>c,x:()=>a});var o=t(7378);const r={},s=o.createContext(r);function c(n){const e=o.useContext(s);return o.useMemo((function(){return"function"==typeof n?n(e):{...e,...n}}),[e,n])}function a(n){let e;return e=n.disableParentContext?"function"==typeof n.components?n.components(r):n.components||r:c(n.components),o.createElement(s.Provider,{value:e},n.children)}}}]); \ No newline at end of file diff --git a/assets/js/430.4ea9e4a1.js b/assets/js/430.4ea9e4a1.js new file mode 100644 index 0000000..e588b9a --- /dev/null +++ b/assets/js/430.4ea9e4a1.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunkol_echarts_docs=self.webpackChunkol_echarts_docs||[]).push([[430],{7504:(e,t,n)=>{n.d(t,{A:()=>a});n(7378);var o=n(3372),s=n(3892),i=n(9032),r=n(6106);function a(e){let{className:t}=e;return(0,r.jsx)("main",{className:(0,o.A)("container margin-vert--xl",t),children:(0,r.jsx)("div",{className:"row",children:(0,r.jsxs)("div",{className:"col col--6 col--offset-3",children:[(0,r.jsx)(i.A,{as:"h1",className:"hero__title",children:(0,r.jsx)(s.A,{id:"theme.NotFound.title",description:"The title of the 404 page",children:"Page Not Found"})}),(0,r.jsx)("p",{children:(0,r.jsx)(s.A,{id:"theme.NotFound.p1",description:"The first paragraph of the 404 page",children:"We could not find what you were looking for."})}),(0,r.jsx)("p",{children:(0,r.jsx)(s.A,{id:"theme.NotFound.p2",description:"The 2nd paragraph of the 404 page",children:"Please contact the owner of the site that linked you to the original URL and let them know their link is broken."})})]})})})}},6430:(e,t,n)=>{n.r(t),n.d(t,{default:()=>l});n(7378);var o=n(3892),s=n(1217),i=n(8458),r=n(7504),a=n(6106);function l(){const e=(0,o.T)({id:"theme.NotFound.title",message:"Page Not Found"});return(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(s.be,{title:e}),(0,a.jsx)(i.A,{children:(0,a.jsx)(r.A,{})})]})}}}]); \ No newline at end of file diff --git a/assets/js/5e95c892.564c8c8c.js b/assets/js/5e95c892.564c8c8c.js new file mode 100644 index 0000000..1039035 --- /dev/null +++ b/assets/js/5e95c892.564c8c8c.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunkol_echarts_docs=self.webpackChunkol_echarts_docs||[]).push([[647],{5854:(e,s,r)=>{r.r(s),r.d(s,{default:()=>d});r(7378);var c=r(3372),a=r(1217),t=r(9117),u=r(7405),l=r(8458),o=r(6106);function d(e){return(0,o.jsx)(a.e3,{className:(0,c.A)(t.G.wrapper.docsPages),children:(0,o.jsx)(l.A,{children:(0,u.v)(e.route.routes)})})}}}]); \ No newline at end of file diff --git a/assets/js/5e95c892.5a01bf51.js b/assets/js/5e95c892.5a01bf51.js deleted file mode 100644 index c211d75..0000000 --- a/assets/js/5e95c892.5a01bf51.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunkol_echarts_docs=self.webpackChunkol_echarts_docs||[]).push([[647],{2445:(e,s,r)=>{r.r(s),r.d(s,{default:()=>d});r(7378);var c=r(3372),a=r(4001),t=r(5971),u=r(7405),l=r(4296),o=r(6106);function d(e){return(0,o.jsx)(a.e3,{className:(0,c.A)(t.G.wrapper.docsPages),children:(0,o.jsx)(l.A,{children:(0,u.v)(e.route.routes)})})}}}]); \ No newline at end of file diff --git a/assets/js/5f875d23.e77a33e8.js b/assets/js/5f875d23.958e1a64.js similarity index 99% rename from assets/js/5f875d23.e77a33e8.js rename to assets/js/5f875d23.958e1a64.js index 81a5571..16bb682 100644 --- a/assets/js/5f875d23.e77a33e8.js +++ b/assets/js/5f875d23.958e1a64.js @@ -1 +1 @@ -"use strict";(self.webpackChunkol_echarts_docs=self.webpackChunkol_echarts_docs||[]).push([[347],{1893:(e,n,s)=>{s.r(n),s.d(n,{assets:()=>c,contentTitle:()=>o,default:()=>h,frontMatter:()=>i,metadata:()=>a,toc:()=>d});var t=s(6106),r=s(2036);const i={id:"core",title:"\u5b9e\u73b0\u539f\u7406",sidebar_label:"\u5b9e\u73b0\u539f\u7406",slug:"/core"},o="\u96c6\u6210 ECharts",a={id:"guide/core",title:"\u5b9e\u73b0\u539f\u7406",description:"\u672c\u7ae0\u8282\u4e3b\u8981\u8bb2\u89e3 ol5 \u4e0e ECharts \u5982\u4f55\u8fdb\u884c\u96c6\u6210\uff0c\u5c06\u4f1a\u4ece\u4ee5\u4e0b\u51e0\u4e2a\u65b9\u9762\u8fdb\u884c\u6df1\u5165\uff1a",source:"@site/docs/guide/core.md",sourceDirName:"guide",slug:"/core",permalink:"/ol3Echarts/docs/core",draft:!1,unlisted:!1,editUrl:"https://github.com/sakitam-fdd/ol3Echarts/edit/master/documents/docs/docs/guide/core.md",tags:[],version:"current",lastUpdatedBy:"sakitam-fdd",lastUpdatedAt:1730471031e3,frontMatter:{id:"core",title:"\u5b9e\u73b0\u539f\u7406",sidebar_label:"\u5b9e\u73b0\u539f\u7406",slug:"/core"},sidebar:"docs",previous:{title:"\u5b89\u88c5",permalink:"/ol3Echarts/docs/install"},next:{title:"Bridger for openlayers and echarts",permalink:"/ol3Echarts/docs/"}},c={},d=[{value:"ol-echarts\u7b80\u4ecb",id:"ol-echarts\u7b80\u4ecb",level:2},{value:"\u7b80\u5355\u4f7f\u7528",id:"\u7b80\u5355\u4f7f\u7528",level:2},{value:"\u539f\u7406\u5256\u6790",id:"\u539f\u7406\u5256\u6790",level:2},{value:"\u6838\u5fc3\u539f\u7406",id:"\u6838\u5fc3\u539f\u7406",level:3},{value:"\u5b9e\u73b0\u65b9\u6848",id:"\u5b9e\u73b0\u65b9\u6848",level:4},{value:"\u5b9e\u73b0\u6d41\u7a0b",id:"\u5b9e\u73b0\u6d41\u7a0b",level:4},{value:"CoordinateSystem - \u5750\u6807\u7cfb\u7edf\u8be6\u89e3",id:"coordinatesystem---\u5750\u6807\u7cfb\u7edf\u8be6\u89e3",level:3}];function l(e){const n={a:"a",code:"code",h1:"h1",h2:"h2",h3:"h3",h4:"h4",header:"header",li:"li",ol:"ol",p:"p",pre:"pre",ul:"ul",...(0,r.R)(),...e.components};return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(n.header,{children:(0,t.jsx)(n.h1,{id:"\u96c6\u6210-echarts",children:"\u96c6\u6210 ECharts"})}),"\n",(0,t.jsxs)(n.p,{children:["\u672c\u7ae0\u8282\u4e3b\u8981\u8bb2\u89e3 ",(0,t.jsx)(n.code,{children:"ol5"})," \u4e0e ",(0,t.jsx)(n.code,{children:"ECharts"})," \u5982\u4f55\u8fdb\u884c\u96c6\u6210\uff0c\u5c06\u4f1a\u4ece\u4ee5\u4e0b\u51e0\u4e2a\u65b9\u9762\u8fdb\u884c\u6df1\u5165\uff1a"]}),"\n",(0,t.jsxs)(n.ul,{children:["\n",(0,t.jsx)(n.li,{children:(0,t.jsx)(n.a,{href:"#ol-echarts%E7%AE%80%E4%BB%8B",children:"ol-echarts\u7b80\u4ecb"})}),"\n",(0,t.jsx)(n.li,{children:(0,t.jsx)(n.a,{href:"#%E7%AE%80%E5%8D%95%E4%BD%BF%E7%94%A8",children:"\u63d2\u4ef6\u4f7f\u7528"})}),"\n",(0,t.jsx)(n.li,{children:(0,t.jsx)(n.a,{href:"#%E5%8E%9F%E7%90%86%E5%89%96%E6%9E%90",children:"\u539f\u7406\u5256\u6790"})}),"\n"]}),"\n",(0,t.jsxs)(n.p,{children:["\u5f53\u7136\u5728\u9605\u8bfb\u672c\u7ae0\u8282\u4e4b\u524d\uff0c\u9700\u8981\u4f60\u5df2\u7ecf\u4e86\u89e3 ",(0,t.jsx)(n.code,{children:"ol5"})," \u7684\u56fe\u5c42\u3001\u4e8b\u4ef6\u7cfb\u7edf\u3001\u6295\u5f71\u548c\u5750\u6807\u53d8\u6362\u3002"]}),"\n",(0,t.jsxs)(n.h2,{id:"ol-echarts\u7b80\u4ecb",children:[(0,t.jsx)(n.a,{href:"https://github.com/sakitam-fdd/ol3Echarts/blob/master/packages/ol-echarts",children:"ol-echarts"}),"\u7b80\u4ecb"]}),"\n",(0,t.jsxs)(n.p,{children:[(0,t.jsx)(n.code,{children:"ol-echarts"})," \u662f\u5df2\u7ecf\u5c01\u88c5\u5b8c\u6210\u7684 ",(0,t.jsx)(n.code,{children:"ol5"})," \u4e0e ",(0,t.jsx)(n.code,{children:"ECharts"}),"\u96c6\u6210\u7684\u7c7b\u5e93\uff0c\u6682\u65f6\u5df2\u7ecf\u652f\u6301\u4e86 ",(0,t.jsx)(n.code,{children:"echarts"})," \u7684\u6240\u6709map\u7ec4\u4ef6\u7c7b\u578b\uff0c\u5bf9\u4e0d\u652f\u6301\u5730\u7406\u5750\u6807\u7cfb\u7edf\u7684\u666e\u901a\u56fe\u8868\uff0c\u4e5f\u505a\u4e86\u90e8\u5206\u517c\u5bb9\uff0c\u4f8b\u5982\u997c\u56fe\u3001\u67f1\u72b6\u56fe\u3001\u6298\u7ebf\u56fe\u3002\n\u901a\u8fc7\u8fd9\u4e2a\u63d2\u4ef6\uff0c\u4f60\u53ef\u4ee5\u76f4\u63a5\u5c06",(0,t.jsx)(n.code,{children:"Echarts"}),"\u96c6\u6210\u5230 ",(0,t.jsx)(n.code,{children:"Openlayers 5"}),"\u3002\u4f46\u662f\u9664\u4e86\u4f7f\u7528\u5916\uff0c\u6211\u4eec\u8fd8\u5e0c\u671b\u8bfb\u8005\u80fd\u4ece\u4e2d\u83b7\u5f97\u66f4\u591a\u7684\u4e1c\u897f\uff0c\u89e6\u7c7b\u65c1\u901a\uff0c\u771f\u6b63\u5730\u5256\u6790\u539f\u7406\u53bb\u4e86\u89e3 ol5 \u5185\u90e8\u7684\u4e00\u4e9b\u7ec4\u6210\uff0c\u53ef\u80fd\u4f1a\n\u5e26\u7ed9\u4f60\u4e00\u4e9b\u4e0d\u4e00\u6837\u7684\u77e5\u8bc6\u3002"]}),"\n",(0,t.jsx)(n.h2,{id:"\u7b80\u5355\u4f7f\u7528",children:"\u7b80\u5355\u4f7f\u7528"}),"\n",(0,t.jsxs)(n.p,{children:["\u9996\u5148\u5728\u4f7f\u7528\u524d\u4f60\u5e94\u8be5\u5df2\u7ecf\u5b89\u88c5\u4e86 ",(0,t.jsx)(n.code,{children:"ol echarts ol-echarts"})," \u8fd9\u51e0\u4e2a\u5fc5\u8981\u4f9d\u8d56\uff0c\u5e76\u4e14\u5982\u679c\u4f7f\u7528\u4e86 ",(0,t.jsx)(n.code,{children:"gl"})," \u6e32\u67d3\u6a21\u5f0f\u8fd8\u9700\u8981\u65b0\u589e ",(0,t.jsx)(n.code,{children:"echarts-gl"})," \u4f9d\u8d56\u3002\n\u7136\u540e\u548c\u6b63\u5e38\u6d41\u7a0b\u4e00\u6837\uff0c\u6211\u4eec\u9700\u8981\u5148\u521b\u5efa\u4e00\u4e2a\u5730\u56fe\uff1a"]}),"\n",(0,t.jsx)(n.pre,{children:(0,t.jsx)(n.code,{className:"language-jsx",children:"import 'ol/ol.css';\nimport { Map, View } from 'ol';\nimport TileLayer from 'ol/layer/Tile';\nimport XYZ from 'ol/source/XYZ';\n\nconst map = new Map({\n target: '#map',\n view: new View({\n center: [113.53450137499999, 34.44104525],\n projection: 'EPSG:4326',\n zoom: 5 // resolution\n }),\n layers: [\n new TileLayer({\n source: new XYZ({\n url: 'http://cache1.arcgisonline.cn/arcgis/rest/services/ChinaOnline' +\n 'StreetPurplishBlue/MapServer/tile/{z}/{y}/{x}'\n })\n })\n ]\n});\n"})}),"\n",(0,t.jsxs)(n.p,{children:["\u7136\u540e\u6211\u4eec\u9700\u8981\u521d\u59cb\u5316\u4e00\u4e2a ",(0,t.jsx)(n.code,{children:"ECharts"})," \u56fe\u5c42\uff0c\u4e3b\u4f53\u4ee3\u7801\u5982\u4e0b"]}),"\n",(0,t.jsx)(n.pre,{children:(0,t.jsx)(n.code,{className:"language-jsx",children:"import EChartsLayer from 'ol-echarts';\n\nconst option = {}; // \u4e3a\u6807\u51c6\u7684ECharts\u7684\u914d\u7f6e\uff0c\u4e0d\u9700\u8981\u505a\u7279\u6b8a\u5904\u7406\n\nconst chart = new EChartsLayer(option, {\n forcedRerender: false, // \u5f3a\u5236\u91cd\u7ed8\uff0c\u4f1a\u8c03\u7528 ECharts \u7684 clear() \u65b9\u6cd5\u6e05\u7a7a\u56fe\u5c42\n forcedPrecomposeRerender: false, // \u5f3a\u5236\u5728 map \u89e6\u53d1 precompose\uff08\u51c6\u5907\u6e32\u67d3\uff0c\u672a\u5f00\u59cb\u6e32\u67d3\uff09\u4e8b\u4ef6\u65f6\u8fdb\u884c ECharts \u56fe\u5c42\u7684\u91cd\u7ed8\n hideOnZooming: false, // \u5728\u5730\u56fe\u7f29\u653e\u65f6\u9690\u85cf ECharts \u56fe\u5c42\uff0c\u8fd9\u6837\u5728\u4e00\u4e9b\u573a\u666f\u4e0b\u53ef\u4ee5\u63d0\u9ad8\u6027\u80fd\u3002\n hideOnMoving: false, // \u5728\u5730\u56fe\u79fb\u52a8\u65f6\u9690\u85cf ECharts \u56fe\u5c42\uff0c\u8fd9\u6837\u5728\u4e00\u4e9b\u573a\u666f\u4e0b\u53ef\u4ee5\u63d0\u9ad8\u6027\u80fd\u3002\n hideOnRotating: false, // \u5728\u5730\u56fe\u65cb\u8f6c\u65f6\u9690\u85cf ECharts \u56fe\u5c42\uff0c\u8fd9\u6837\u5728\u4e00\u4e9b\u573a\u666f\u4e0b\u53ef\u4ee5\u63d0\u9ad8\u6027\u80fd\u3002\n});\n\nchart.appendTo(map); // \u5c06 ECharts \u56fe\u5c42\u6dfb\u52a0\u5230\u5730\u56fe\u4e0a\n"})}),"\n",(0,t.jsxs)(n.p,{children:["\u901a\u8fc7\u4ee5\u4e0a\u6b65\u9aa4\uff0c\u6211\u4eec\u5c31\u7b80\u5355\u5b9e\u73b0\u4e86 ",(0,t.jsx)(n.code,{children:"Openlayers 5"})," \u548c ",(0,t.jsx)(n.code,{children:"ECharts"})," \u7ed3\u5408\u5c55\u793a\u6563\u70b9\u56fe\u7684\u793a\u4f8b\uff0c",(0,t.jsx)(n.a,{href:"https://github.com/sakitam-fdd/ol3Echarts/blob/master/website/pages/scatter.js",children:"\u5b8c\u6574\u4ee3\u7801"}),"\u3002"]}),"\n",(0,t.jsx)(n.h2,{id:"\u539f\u7406\u5256\u6790",children:"\u539f\u7406\u5256\u6790"}),"\n",(0,t.jsx)(n.h3,{id:"\u6838\u5fc3\u539f\u7406",children:"\u6838\u5fc3\u539f\u7406"}),"\n",(0,t.jsxs)(n.p,{children:["\u6211\u4eec\u77e5\u9053\u4e0d\u7ba1\u662f ",(0,t.jsx)(n.code,{children:"ol"})," \u8fd8\u662f ",(0,t.jsx)(n.code,{children:"echarts"})," \u6216\u8005\u662f\u5176\u4ed6\u56fe\u5f62\u6e32\u67d3\u7c7b\u5e93\uff0c\u5b83\u4eec\u7684\u6838\u5fc3\u539f\u7406\u90fd\u662f - \u6570\u636e\u53d1\u751f\u53d8\u52a8\u6216\u8005\u4ea4\u4e92\u52a8\u4f5c\u89e6\u53d1\u540e\u518d\u6b21\u8fdb\u884c\u56fe\u5f62\u7684\u7ed8\u5236\u8fc7\u7a0b\uff08\u91cd\u7ed8\uff09\u3002\n\u5f53\u6211\u4eec\u7406\u89e3\u6e05\u695a\u4ee5\u4e0a\u539f\u7406\uff0c\u5c31\u53ef\u4ee5\u8003\u8651\u628a ",(0,t.jsx)(n.code,{children:"ol"})," \u89c6\u56fe\u548c ",(0,t.jsx)(n.code,{children:"echarts"})," \u89c6\u56fe\u8fdb\u884c\u540c\u6b65\uff0c\u4ee5\u8fbe\u5230\u5c06\u4e24\u8005\u96c6\u6210\u5c55\u793a\u7684\u76ee\u7684\u3002\u800c\u4e14\u5e78\u8fd0\u7684\u662f",(0,t.jsx)(n.a,{href:"https://github.com/apache/incubator-echarts/blob/master/extension/bmap/README.md",children:"echarts"})," \u5b98\u65b9\u5df2\u7ecf\u7ed9\u51fa\u4e86\u548c\u767e\u5ea6\u5730\u56fe\n\u7ed3\u5408\u7684\u76f8\u5173\u4ee3\u7801\uff0c\u6211\u4eec\u53ef\u4ee5\u901a\u8fc7\u5256\u6790\u76f8\u5173\u4ee3\u7801\u6765\u52a0\u5feb\u6211\u4eec\u5bf9\u6838\u5fc3\u539f\u7406\u7684\u7406\u89e3\u3002"]}),"\n",(0,t.jsx)(n.h4,{id:"\u5b9e\u73b0\u65b9\u6848",children:"\u5b9e\u73b0\u65b9\u6848"}),"\n",(0,t.jsxs)(n.p,{children:["\u9488\u5bf9 ",(0,t.jsx)(n.code,{children:"ol"})," \u56fe\u5c42\u548c ",(0,t.jsx)(n.code,{children:"echarts"})," \u56fe\u5c42\u4e24\u8005\u96c6\u6210\u4e00\u822c\u6211\u4eec\u6709\u4e24\u79cd\u65b9\u5f0f\uff1a"]}),"\n",(0,t.jsxs)(n.ol,{children:["\n",(0,t.jsxs)(n.li,{children:["\u4e00\u662f\u76f4\u63a5\u521b\u5efa\u4e00\u4e2a\u9875\u9762\u5143\u7d20\u518d\u53bb\u5b9e\u4f8b\u5316\u4e00\u4e2a ",(0,t.jsx)(n.code,{children:"echarts"})," \u5bb9\u5668\uff0c\u7136\u540e\u901a\u8fc7 ",(0,t.jsx)(n.code,{children:"ol"})," \u5730\u56fe\u89c6\u56fe\u53d8\u5316\u629b\u51fa\u7684\u4e8b\u4ef6\u53bb\u540c\u6b65 ",(0,t.jsx)(n.code,{children:"ECharts"})," \u56fe\u8868\u7684\u53d8\u5316\u3002\u8fd9\u79cd\u505a\u6cd5\u7684\u597d\u5904\u662f\n\u53ef\u4ee5\u4f7f\u7528 ",(0,t.jsx)(n.code,{children:"ECharts"})," \u672c\u8eab\u81ea\u5e26\u7684 ",(0,t.jsx)(n.code,{children:"ToolTip"})," \u548c\u63a7\u4ef6\u7b49\uff0c\u7f3a\u70b9\u662f\u4f1a\u9020\u6210\u6027\u80fd\u7684\u635f\u5931\u3002"]}),"\n",(0,t.jsxs)(n.li,{children:["\u53e6\u5916\u4e00\u79cd\u65b9\u6848\u662f\u76f4\u63a5\u4f7f\u7528 ",(0,t.jsx)(n.code,{children:"ImageCanvas"})," \u53bb\u521b\u5efa\u5185\u7f6e\u53ef\u5408\u5e76\u7684 canvas \u56fe\u5c42\uff0c\u8fd9\u79cd\u65b9\u6848\u53ef\u4ee5\u5728\u4e00\u5b9a\u7a0b\u5ea6\u4e0a\u63d0\u5347\u6e32\u67d3\u6027\u80fd\uff0c\u4f46\u662f\u4f1a\u635f\u5931 ",(0,t.jsx)(n.code,{children:"ECharts"})," \u5185\u7f6e\u7684\u4e00\u4e9b\u4ea4\u4e92\u3002"]}),"\n"]}),"\n",(0,t.jsx)(n.h4,{id:"\u5b9e\u73b0\u6d41\u7a0b",children:"\u5b9e\u73b0\u6d41\u7a0b"}),"\n",(0,t.jsx)(n.p,{children:"\u4e0b\u9762\u6211\u4eec\u4e3b\u8981\u4ee5\u7b2c\u4e00\u79cd\u65b9\u6848\u68b3\u7406\u4e00\u4e0b\u5177\u4f53\u5b9e\u73b0\u7684\u6d41\u7a0b\u3002"}),"\n",(0,t.jsxs)(n.p,{children:["1\u3001\u9996\u5148\u6211\u4eec\u9700\u8981\u4e00\u4e2a\u80fd\u591f\u5b9e\u4f8b\u5316 ",(0,t.jsx)(n.code,{children:"ECharts"})," \u7684\u5bb9\u5668\uff0c\u8fd9\u4e2a\u5bb9\u5668\u7684\u5b58\u653e\u4f4d\u7f6e\u4e5f\u662f\u6709\u4e00\u5b9a\u8981\u6c42\u7684\u3002\u6211\u4eec\u9700\u8981\u8003\u8651\u7684\u662f\u9996\u5148\u4e0a\u9762\u53e0\u52a0\u7684 Dom \u56fe\u5c42\u4e0d\u80fd\u906e\u6321\u4e0b\u9762\u7684\u56fe\u5c42\uff0c\u53e6\u5916\n\u4e0a\u9762 Dom \u56fe\u5c42\u7684\u4e8b\u4ef6\u9700\u8981\u7a7f\u900f\u5230\u4e0b\u90e8\uff0c\u6240\u4ee5\u6211\u4eec\u8003\u8651\u76f4\u63a5\u5c06\u5bb9\u5668\u9ed8\u8ba4\u521b\u5efa\u5728 ",(0,t.jsx)(n.code,{children:"ol-overlaycontainer"})," \u5bb9\u5668\u5185\uff0c\u4e3b\u8981\u4ee3\u7801\u5982\u4e0b\uff1a"]}),"\n",(0,t.jsxs)(n.p,{children:["\u6b64\u5916\u8fd8\u9700\u8981\u6ce8\u610f\uff0c\u5bb9\u5668\u521b\u5efa\u4f4d\u7f6e\u4e5f\u652f\u6301\u81ea\u5b9a\u4e49\uff0c\u4f46\u662f\u9ed8\u8ba4\u90fd\u662f\u5728\u4e0a\u56fe\u5730\u56fe\u5bb9\u5668\u5185\uff1b\u4e00\u822c\u60c5\u51b5\u4e0b\u4e0d\u9700\u8981\u81ea\u5b9a\u4e49\u4f4d\u7f6e\uff0c\u91c7\u7528\u9ed8\u8ba4\u5373\u53ef\u3002\n",(0,t.jsx)(n.a,{href:"https://github.com/sakitam-fdd/ol3Echarts/blob/master/packages/ol-echarts/src/index.js#L215",children:"\u67e5\u770b\u6e90\u7801"}),", \u4ee5\u4e0b\u4e3a\u6838\u5fc3\u4ee3\u7801\uff1a"]}),"\n",(0,t.jsx)(n.pre,{children:(0,t.jsx)(n.code,{className:"language-jsx",children:"_createLayerContainer (map, options) {\n const viewPort = map.getViewport()\n const container = (this.$container = document.createElement('div'));\n container.style.position = 'absolute';\n container.style.top = '0px';\n container.style.left = '0px';\n container.style.right = '0px';\n container.style.bottom = '0px';\n let _target = getTarget(options['target'], viewPort);\n if (_target && _target[0] && _target[0] instanceof Element) {\n _target[0].appendChild(container);\n } else {\n let _target = getTarget('.ol-overlaycontainer', viewPort);\n if (_target && _target[0] && _target[0] instanceof Element) {\n _target[0].appendChild(container);\n } else {\n viewPort.appendChild(container);\n }\n }\n}\n"})}),"\n",(0,t.jsxs)(n.p,{children:["2\u3001\u5750\u6807\u7cfb\u7edf\u7684\u6ce8\u518c\uff08\u6ce8\u518c\u5750\u6807\u7cfb\u7edf\u7684\u539f\u56e0\u548c\u6838\u5fc3\u539f\u7406\u8bf7\u67e5\u770b",(0,t.jsx)(n.code,{children:"\u5750\u6807\u7cfb\u7edf\u8be6\u89e3"}),"\uff09\uff1a",(0,t.jsx)(n.a,{href:"https://github.com/sakitam-fdd/ol3Echarts/blob/master/packages/ol-echarts/src/index.js#L400",children:"\u67e5\u770b\u6e90\u7801"}),", \u4ee5\u4e0b\u4e3a\u6838\u5fc3\u4ee3\u7801\uff1a"]}),"\n",(0,t.jsx)(n.pre,{children:(0,t.jsx)(n.code,{className:"language-jsx",children:"// \u6ce8\u518copenlayers\u5750\u6807\u7cfb\u7edf\uff0c_getCoordinateSystem\u6765\u81ea `RegisterCoordinateSystem`\necharts.registerCoordinateSystem('openlayers', _getCoordinateSystem(map, {}));\n\n// \u5750\u6807\u7cfb\u7edf\u6ce8\u518c\u5b8c\u6210\u540e\u9700\u8981\u5c06\u4f20\u5165\u7684echarts\u914d\u7f6e\u9879\u7684series\u7c7b\u578b\u7684\u6bcf\u4e00\u9879\u7684coordinateSystem\u91cd\u5b9a\u4e49\u4e3a `openlayers`, \u4fdd\u6301\u548c\u4e0a\u9762\u6ce8\u518c\u7c7b\u578b\u4e00\u81f4\n// echarts \u5728\u7ed8\u5236\u65f6\u4f1a\u6839\u636e\u76f8\u5e94\u7684\u5750\u6807\u7cfb\u7edf\u53bb\u5c06\u4f20\u5165\u7684\u7a7a\u95f4\u6570\u636e\u8f6c\u6362\u4e3a\u5c4f\u5e55\u5750\u6807\nfor (let i = series.length - 1; i >= 0; i--) {\n series[i]['coordinateSystem'] = 'openlayers';\n // series[i]['animation'] = false;\n}\n"})}),"\n",(0,t.jsxs)(n.p,{children:["3\u3001\u9700\u8981\u62ff\u5230\u5df2\u7ecf\u521b\u5efa\u7684\u5bb9\u5668\u53bb\u5b9e\u4f8b\u5316 ",(0,t.jsx)(n.code,{children:"ECharts"})," ",(0,t.jsx)(n.a,{href:"https://github.com/sakitam-fdd/ol3Echarts/blob/master/packages/ol-echarts/src/index.js#L450",children:"\u67e5\u770b\u6e90\u7801"}),", \u4ee5\u4e0b\u4e3a\u6838\u5fc3\u4ee3\u7801\uff1a"]}),"\n",(0,t.jsx)(n.pre,{children:(0,t.jsx)(n.code,{className:"language-jsx",children:"// \u521b\u5efaecharts\u5b9e\u4f8b\uff0c\u5e76\u4e14\u8bbe\u7f6e\u914d\u7f6e\u9879\nthis.$chart = echarts.init(this.$container);\nthis.$chart.setOption(options)\n"})}),"\n",(0,t.jsxs)(n.p,{children:["4\u3001\u7ed1\u5b9aopenlayers\u5730\u56fe\u7684\u91cd\u7ed8\u4e8b\u4ef6\uff0c\u5728",(0,t.jsx)(n.code,{children:"ol.view"}),"\u89c6\u56fe\u53d8\u5316\u65f6\u540c\u6b65\u66f4\u65b0 ",(0,t.jsx)(n.code,{children:"echarts"})," \u56fe\u8868\u5185\u5bb9\u3002\n",(0,t.jsx)(n.a,{href:"https://github.com/sakitam-fdd/ol3Echarts/blob/master/packages/ol-echarts/src/index.js#L348",children:"\u67e5\u770b\u6e90\u7801"}),", \u4ee5\u4e0b\u4e3a\u6838\u5fc3\u4ee3\u7801\uff1a"]}),"\n",(0,t.jsx)(n.pre,{children:(0,t.jsx)(n.code,{className:"language-jsx",children:"const Map = this.$Map;\nconst view = Map.getView();\nif (this.$options.forcedPrecomposeRerender) {\n // \u5f3a\u5236\u5b9e\u65f6\u66f4\u65b0\uff0c\u80fd\u591f\u907f\u514d\u5730\u56fe\u548c `echarts` \u89c6\u56fe\u4e0d\u540c\u6b65\u95ee\u9898\n this.precomposeListener_ = Map.on('precompose', this.reRender.bind(this));\n}\n\n// openlayers\u5730\u56fe\u5c3a\u5bf8\u53d8\u5316\u4e8b\u4ef6\nthis.sizeChangeListener_ = Map.on('change:size', this.onResize.bind(this));\n// openlayers\u5730\u56fe\u5206\u8fa8\u7387\u53d8\u5316\u4e8b\u4ef6\nthis.resolutionListener_ = view.on('change:resolution', this.onZoomEnd.bind(this));\n// openlayers\u5730\u56fe\u4e2d\u5fc3\u70b9\u53d8\u5316\u4e8b\u4ef6\nthis.centerChangeListener_ = view.on('change:center', this.onCenterChange.bind(this));\n// openlayers\u5730\u56fe\u89c6\u56fe\u65cb\u8f6c\u89d2\u5ea6\u53d8\u5316\u4e8b\u4ef6\nthis.rotationListener_ = view.on('change:rotation', this.onDragRotateEnd.bind(this));\n// openlayers\u5730\u56fe\u89c6\u56fe\u5e73\u79fb\u5f00\u59cb\u4e8b\u4ef6\nthis.movestartListener_ = Map.on('movestart', this.onMoveStart.bind(this));\n// openlayers\u5730\u56fe\u89c6\u56fe\u5e73\u79fb\u7ed3\u675f\u4e8b\u4ef6\nthis.moveendListener_ = Map.on('moveend', this.onMoveEnd.bind(this));\n"})}),"\n",(0,t.jsx)(n.p,{children:"5\u3001\u5730\u56fe\u4e8b\u4ef6\u89e6\u53d1echarts\u91cd\u7ed8"}),"\n",(0,t.jsx)(n.pre,{children:(0,t.jsx)(n.code,{className:"language-jsx",children:"// \u5982\u679c\u5f3a\u5236\u91cd\u7ed8\u4f1a\u624b\u52a8\u8c03\u7528\u4e00\u6b21 `echarts` \u5b9e\u4f8b\u7684 `clear` \u65b9\u6cd5\nif (this.$options.forcedRerender) {\n this.$chart.clear();\n}\n\n// \u66f4\u65b0 echarts \u5bb9\u5668\u5c3a\u5bf8\nthis.$chart.resize();\n\n// \u91cd\u65b0\u8bbe\u7f6e\u914d\u7f6e\u9879\uff0c\u4f1a\u89e6\u53d1\u56fe\u8868\u7684\u91cd\u7ed8\u548c\u50cf\u7d20\u5750\u6807\u7684\u91cd\u65b0\u8ba1\u7b97\u3002\nthis.$chart.setOption(options)\n"})}),"\n",(0,t.jsx)(n.p,{children:"\u57fa\u672c\u601d\u8def\u53ef\u4ee5\u7b80\u5355\u7406\u89e3\u4e3a\uff1a"}),"\n",(0,t.jsxs)(n.ul,{children:["\n",(0,t.jsxs)(n.li,{children:["\u7ed1\u5b9a ",(0,t.jsx)(n.code,{children:"openlayers"})," \u5730\u56fe\u89c6\u56fe\u91cd\u7ed8\u4e8b\u4ef6\u540c\u6b65\u91cd\u7ed8 ",(0,t.jsx)(n.code,{children:"echarts"}),"\u89c6\u56fe\u3002"]}),"\n",(0,t.jsx)(n.li,{children:"\u5730\u7406\u5750\u6807\u5230\u771f\u5b9e\u5c4f\u5e55\u5750\u6807\u7684\u5b9e\u65f6\u8f6c\u6362\u3002"}),"\n"]}),"\n",(0,t.jsx)(n.p,{children:"\u4ee5\u4e0a\u5c31\u662f\u672c\u7ae0\u8282\u7684\u57fa\u672c\u5185\u5bb9\u3002"}),"\n",(0,t.jsx)(n.h3,{id:"coordinatesystem---\u5750\u6807\u7cfb\u7edf\u8be6\u89e3",children:"CoordinateSystem - \u5750\u6807\u7cfb\u7edf\u8be6\u89e3"}),"\n",(0,t.jsxs)(n.p,{children:["\u6211\u4eec\u5728\u67e5\u770b ",(0,t.jsx)(n.code,{children:"ECharts"})," \u5b98\u65b9\u7684",(0,t.jsx)(n.a,{href:"https://github.com/apache/incubator-echarts/blob/master/extension/bmap",children:"\u767e\u5ea6\u5730\u56fe\u6269\u5c55"}),"\u6216\u8005\u5176\u4ed6\u8bf8\u5982\n",(0,t.jsx)(n.a,{href:"https://github.com/maptalks/maptalks.e3",children:"maptalks.e3"})," \u6269\u5c55, \u4ed6\u4eec\u90fd\u5305\u542b\u4e86\u4e00\u6bb5\u6838\u5fc3\u4ee3\u7801\u662f\u5173\u4e8e\u5750\u6807\u7cfb\u7edf\u6ce8\u518c\u7684\uff1b\u540c\u6837\u7684\uff0c\u6211\u4eec\u5728\u6269\u5c55 ",(0,t.jsx)(n.code,{children:"ol-echarts"})," \u65f6\n\u6211\u4eec\u540c\u6837\u4e5f\u9700\u8981\u8003\u8651\u7279\u6b8a\u5750\u6807\u7cfb\u7edf\u6ce8\u518c\u7684\u95ee\u9898\u3002\u4e0b\u9762\u6211\u4eec\u4f1a\u8be6\u7ec6\u8bf4\u660e\u6211\u4eec\u4e3a\u4ec0\u4e48\u8981\u8fdb\u884c\u5750\u6807\u7cfb\u7edf\u7684\u6ce8\u518c\uff0c\u4ee5\u53ca\u662f\u5982\u4f55\u901a\u8fc7\u5750\u6807\u7cfb\u7edf\u5c06\u7a7a\u95f4\u5750\u6807\u6620\u5c04\u5230\u771f\u5b9e\u5c4f\u5e55\u5750\u6807\u7684\u3002"]}),"\n",(0,t.jsxs)(n.p,{children:["\u9996\u5148\u6211\u4eec\u9700\u8981\u601d\u8003\u4e00\u4e0b\uff0c\u5728\u771f\u5b9e\u5730\u56fe\u53ef\u89c6\u5316\u7684\u5f00\u53d1\u8fc7\u7a0b\u4e2d\u6211\u4eec\u4e00\u822c\u62ff\u5230\u7684\u6570\u636e\u90fd\u4e3a\u7a7a\u95f4\u6570\u636e\uff0c\u6211\u4eec\u5e76\u4e0d\u80fd\u76f4\u63a5\u7528\u7a7a\u95f4\u6570\u636e\u7684\u539f\u59cb\u503c\u8fdb\u884c\u6253\u70b9\u5230\u6d4f\u89c8\u5668\u7a97\u53e3\u4e0a; \u4e00\u822c\u6211\u4eec\u90fd\u4f1a\u901a\u8fc7\u5404\u4e2a\u5730\u56fe\u5f15\u64ce\u63d0\u4f9b\u7684\u65b9\u6cd5\u5c06\u5730\u7406\u5750\u6807\u8f6c\u6362\u4e3a\n\u771f\u5b9e\u5c4f\u5e55\u5750\u6807\u8fdb\u884c\u7ed8\u5236\uff08\u800c\u4e14\u9700\u8981\u6ce8\u610f\u7684\u662f\u5730\u7406\u5750\u6807\u7684\u8f93\u5165\u662f\u4e0d\u53ef\u53d8\u7684\uff0c\u4f46\u662f\u5bf9\u5e94\u7684\u5c4f\u5e55\u5750\u6807\u4f1a\u968f\u7740\u89c6\u56fe\u7684\u53d8\u5316\u800c\u53d8\u5316\uff09\uff0c\u5bf9\u4e8e ",(0,t.jsx)(n.code,{children:"Openlayers"})," \u6211\u4eec\u4f1a\u6709\u4e2a\u5e38\u7528\u7684\u65b9\u6cd5\u4e3a\uff1a"]}),"\n",(0,t.jsx)(n.pre,{children:(0,t.jsx)(n.code,{className:"language-jsx",children:"// coordinates \u4e3a\u5730\u7406\u5750\u6807\uff0c\u8fd4\u56de\u5c4f\u5e55\u5750\u6807\nmap.getPixelFromCoordinate(coordinates)\n"})}),"\n",(0,t.jsx)(n.p,{children:"\u5bf9\u5e94\u7684\u4ee3\u7801\u5b9e\u73b0\u5982\u4e0b\uff1a"}),"\n",(0,t.jsxs)(n.ul,{children:["\n",(0,t.jsxs)(n.li,{children:[(0,t.jsx)(n.a,{href:"https://github.com/sakitam-fdd/ol3Echarts/blob/master/packages/ol-echarts/src/coordinate/RegisterCoordinateSystem.js#L54",children:"\u666e\u901a\u56fe\u8868\u7c7b\u578b(\u53ef\u4ee5\u9488\u5bf9)"}),"\uff1a"]}),"\n"]}),"\n",(0,t.jsx)(n.pre,{children:(0,t.jsx)(n.code,{className:"language-jsx",children:"RegisterCoordinateSystem.prototype.dataToPoint = function (coords) {\n if (coords && Array.isArray(coords) && coords.length > 0) {\n // \u4ec5\u505a\u5224\u65ad\u548c\u5c06\u5b57\u7b26\u4e32\u5750\u6807\u8f6c\u6362\u4e3a\u6570\u5b57\n coords = coords.map(function (item) {\n if (typeof item === 'string') {\n item = Number(item);\n }\n return item;\n });\n }\n let source = options['source'] || 'EPSG:4326';\n let destination = options['destination'] || this.projCode_; // \u5f53\u524d\u5730\u56fe\u7684\u89c6\u56fe\u6295\u5f71\n // \u5173\u952e\u4ee3\u7801\uff1a\n // 1\u3001transform(coords, source, destination) \u652f\u6301\u591a\u6570\u636e\u6295\u5f71\uff0c\u6700\u7ec8\u5c06\u5176\u8f6c\u6362\u4e3a `EPSG:4326`\n // 2\u3001map.getPixelFromCoordinate(coordinates) \u5c06\u5750\u6807\u8f6c\u6362\u4e3a\u5c4f\u5e55\u50cf\u7d20\n let pixel = map.getPixelFromCoordinate(transform(coords, source, destination));\n const mapOffset = this._mapOffset;\n return [pixel[0] - mapOffset[0], pixel[1] - mapOffset[1]];\n};\n"})}),"\n",(0,t.jsxs)(n.ul,{children:["\n",(0,t.jsx)(n.li,{children:"\u7279\u6b8a\u56fe\u8868\u7c7b\u578b\uff08custom\u7c7b\u578b, \u56e0\u4e3a\u6b64\u79cd\u7c7b\u578b\u4f1a\u6d89\u53ca\u56fe\u5f62\u7684\u5927\u5c0f-size\uff09\uff1a"}),"\n"]}),"\n",(0,t.jsx)(n.pre,{children:(0,t.jsx)(n.code,{className:"language-jsx",children:"// form: https://github.com/sakitam-fdd/ol3Echarts/blob/master/packages/ol-echarts/src/coordinate/RegisterCoordinateSystem.js#L121\nRegisterCoordinateSystem.prototype.prepareCustoms = function (data) {\n const rect = this.getViewRect();\n return {\n coordSys: {\n // The name exposed to user is always 'cartesian2d' but not 'grid'.\n type: 'openlayers',\n x: rect.x,\n y: rect.y,\n width: rect.width,\n height: rect.height\n },\n api: {\n coord: bind(this.dataToPoint, this), // \u8f6c\u6362\u5c4f\u5e55\u5750\u6807\u65b9\u6cd5\n size: bind(RegisterCoordinateSystem.dataToCoordSize, this) // \u8f6c\u6362\u56fe\u5f62\u5927\u5c0f\u7684\u65b9\u6cd5\n }\n };\n};\n\n// from: https://github.com/sakitam-fdd/ol3Echarts/blob/master/packages/ol-echarts/src/coordinate/RegisterCoordinateSystem.js#L144\nRegisterCoordinateSystem.dataToCoordSize = function (dataSize, dataItem) {\n dataItem = dataItem || [0, 0];\n return $map(\n [0, 1],\n function (dimIdx) {\n let val = dataItem[dimIdx]; // \u5f53\u524d\u6570\u636e\u7684\u7ecf\u7eac\u5ea6\n let halfSize = dataSize[dimIdx] / 2; // \u5bf9\u5e94\u6570\u636e\u5927\u5c0f\u7684\u4e00\u534a\n let [p1, p2] = [[], []];\n p1[dimIdx] = val - halfSize; // \u5bf9\u5e94\u6570\u636e\u5927\u5c0f\u7684\u8d1f\u5411\u504f\u79fb\n p2[dimIdx] = val + halfSize; // \u5bf9\u5e94\u6570\u636e\u5927\u5c0f\u7684\u6b63\u5411\u504f\u79fb\n p1[1 - dimIdx] = p2[1 - dimIdx] = dataItem[1 - dimIdx]; // \u4ec5\u505a\u4e34\u65f6\u8ba1\u7b97\u7684\u8f85\u52a9\u53d8\u91cf\n return Math.abs(this.dataToPoint(p1)[dimIdx] - this.dataToPoint(p2)[dimIdx]); // \u8f6c\u6362\u4e3a\u5bf9\u5e94\u5c4f\u5e55\u50cf\u7d20\u7684\u5b9e\u9645\u5927\u5c0f\n },\n this\n );\n};\n"})}),"\n",(0,t.jsxs)(n.p,{children:[(0,t.jsx)(n.a,{href:"https://github.com/sakitam-fdd/ol3Echarts/blob/master/packages/ol-echarts/src/coordinate/RegisterCoordinateSystem.js#L165",children:"\u5750\u6807\u7cfb\u7edf\u7684\u6ce8\u518c"}),"\uff1a"]}),"\n",(0,t.jsx)(n.pre,{children:(0,t.jsx)(n.code,{className:"language-jsx",children:"\n// \u9ed8\u8ba4\u8c03\u7528 echarts \u7684 `registerCoordinateSystem` \u65b9\u6cd5\u8fdb\u884c\u81ea\u5b9a\u4e49\u5750\u6807\u7cfb\u7edf\u7684\u6ce8\u518c\uff0c\n// \u7b2c\u4e00\u4e2a\u53c2\u6570\u4e3a \u5750\u6807\u7cfb\u7edf\u7684 type \u7c7b\u578b\uff0c\u7b2c\u4e8c\u4e2a\u53c2\u6570\u4e3a\u81ea\u5b9a\u4e49\u5750\u6807\u7cfb\u7edf\u7684\u6784\u9020\u51fd\u6570, \u9ed8\u8ba4\u4f1a\u8c03\u7528\u6784\u9020\u51fd\u6570\u7684\u9759\u6001\u65b9\u6cd5 `create`\necharts.registerCoordinateSystem('openlayers', RegisterCoordinateSystem);\n\n// create\u51fd\u6570\u4e3b\u8981\u505a\u4e86\u4ee5\u4e0b\u5de5\u4f5c\uff1a\n// \u5faa\u73af series\uff0c\u5c06\u6307\u5b9a `coordinateSystem` \u7c7b\u578b\u4e3a `openlayers` \u7684 seriesModel\u7684 `coordinateSystem` \u6307\u5411 `RegisterCoordinateSystem` \u7684\u5b9e\u4f8b\u3002\nRegisterCoordinateSystem.create = function (echartModel, api) {\n echartModel.eachSeries(function (seriesModel) {\n if (seriesModel.get('coordinateSystem') === 'openlayers') {\n seriesModel.coordinateSystem = new RegisterCoordinateSystem(map);\n }\n });\n};\n\n"})})]})}function h(e={}){const{wrapper:n}={...(0,r.R)(),...e.components};return n?(0,t.jsx)(n,{...e,children:(0,t.jsx)(l,{...e})}):l(e)}},2036:(e,n,s)=>{s.d(n,{R:()=>o,x:()=>a});var t=s(7378);const r={},i=t.createContext(r);function o(e){const n=t.useContext(i);return t.useMemo((function(){return"function"==typeof e?e(n):{...n,...e}}),[n,e])}function a(e){let n;return n=e.disableParentContext?"function"==typeof e.components?e.components(r):e.components||r:o(e.components),t.createElement(i.Provider,{value:n},e.children)}}}]); \ No newline at end of file +"use strict";(self.webpackChunkol_echarts_docs=self.webpackChunkol_echarts_docs||[]).push([[347],{8891:(e,n,s)=>{s.r(n),s.d(n,{assets:()=>c,contentTitle:()=>o,default:()=>h,frontMatter:()=>i,metadata:()=>a,toc:()=>d});var t=s(6106),r=s(2036);const i={id:"core",title:"\u5b9e\u73b0\u539f\u7406",sidebar_label:"\u5b9e\u73b0\u539f\u7406",slug:"/core"},o="\u96c6\u6210 ECharts",a={id:"guide/core",title:"\u5b9e\u73b0\u539f\u7406",description:"\u672c\u7ae0\u8282\u4e3b\u8981\u8bb2\u89e3 ol5 \u4e0e ECharts \u5982\u4f55\u8fdb\u884c\u96c6\u6210\uff0c\u5c06\u4f1a\u4ece\u4ee5\u4e0b\u51e0\u4e2a\u65b9\u9762\u8fdb\u884c\u6df1\u5165\uff1a",source:"@site/docs/guide/core.md",sourceDirName:"guide",slug:"/core",permalink:"/ol3Echarts/docs/core",draft:!1,unlisted:!1,editUrl:"https://github.com/sakitam-fdd/ol3Echarts/edit/master/documents/docs/docs/guide/core.md",tags:[],version:"current",lastUpdatedBy:"sakitam-fdd",lastUpdatedAt:1730471031e3,frontMatter:{id:"core",title:"\u5b9e\u73b0\u539f\u7406",sidebar_label:"\u5b9e\u73b0\u539f\u7406",slug:"/core"},sidebar:"docs",previous:{title:"\u5b89\u88c5",permalink:"/ol3Echarts/docs/install"},next:{title:"Bridger for openlayers and echarts",permalink:"/ol3Echarts/docs/"}},c={},d=[{value:"ol-echarts\u7b80\u4ecb",id:"ol-echarts\u7b80\u4ecb",level:2},{value:"\u7b80\u5355\u4f7f\u7528",id:"\u7b80\u5355\u4f7f\u7528",level:2},{value:"\u539f\u7406\u5256\u6790",id:"\u539f\u7406\u5256\u6790",level:2},{value:"\u6838\u5fc3\u539f\u7406",id:"\u6838\u5fc3\u539f\u7406",level:3},{value:"\u5b9e\u73b0\u65b9\u6848",id:"\u5b9e\u73b0\u65b9\u6848",level:4},{value:"\u5b9e\u73b0\u6d41\u7a0b",id:"\u5b9e\u73b0\u6d41\u7a0b",level:4},{value:"CoordinateSystem - \u5750\u6807\u7cfb\u7edf\u8be6\u89e3",id:"coordinatesystem---\u5750\u6807\u7cfb\u7edf\u8be6\u89e3",level:3}];function l(e){const n={a:"a",code:"code",h1:"h1",h2:"h2",h3:"h3",h4:"h4",header:"header",li:"li",ol:"ol",p:"p",pre:"pre",ul:"ul",...(0,r.R)(),...e.components};return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(n.header,{children:(0,t.jsx)(n.h1,{id:"\u96c6\u6210-echarts",children:"\u96c6\u6210 ECharts"})}),"\n",(0,t.jsxs)(n.p,{children:["\u672c\u7ae0\u8282\u4e3b\u8981\u8bb2\u89e3 ",(0,t.jsx)(n.code,{children:"ol5"})," \u4e0e ",(0,t.jsx)(n.code,{children:"ECharts"})," \u5982\u4f55\u8fdb\u884c\u96c6\u6210\uff0c\u5c06\u4f1a\u4ece\u4ee5\u4e0b\u51e0\u4e2a\u65b9\u9762\u8fdb\u884c\u6df1\u5165\uff1a"]}),"\n",(0,t.jsxs)(n.ul,{children:["\n",(0,t.jsx)(n.li,{children:(0,t.jsx)(n.a,{href:"#ol-echarts%E7%AE%80%E4%BB%8B",children:"ol-echarts\u7b80\u4ecb"})}),"\n",(0,t.jsx)(n.li,{children:(0,t.jsx)(n.a,{href:"#%E7%AE%80%E5%8D%95%E4%BD%BF%E7%94%A8",children:"\u63d2\u4ef6\u4f7f\u7528"})}),"\n",(0,t.jsx)(n.li,{children:(0,t.jsx)(n.a,{href:"#%E5%8E%9F%E7%90%86%E5%89%96%E6%9E%90",children:"\u539f\u7406\u5256\u6790"})}),"\n"]}),"\n",(0,t.jsxs)(n.p,{children:["\u5f53\u7136\u5728\u9605\u8bfb\u672c\u7ae0\u8282\u4e4b\u524d\uff0c\u9700\u8981\u4f60\u5df2\u7ecf\u4e86\u89e3 ",(0,t.jsx)(n.code,{children:"ol5"})," \u7684\u56fe\u5c42\u3001\u4e8b\u4ef6\u7cfb\u7edf\u3001\u6295\u5f71\u548c\u5750\u6807\u53d8\u6362\u3002"]}),"\n",(0,t.jsxs)(n.h2,{id:"ol-echarts\u7b80\u4ecb",children:[(0,t.jsx)(n.a,{href:"https://github.com/sakitam-fdd/ol3Echarts/blob/master/packages/ol-echarts",children:"ol-echarts"}),"\u7b80\u4ecb"]}),"\n",(0,t.jsxs)(n.p,{children:[(0,t.jsx)(n.code,{children:"ol-echarts"})," \u662f\u5df2\u7ecf\u5c01\u88c5\u5b8c\u6210\u7684 ",(0,t.jsx)(n.code,{children:"ol5"})," \u4e0e ",(0,t.jsx)(n.code,{children:"ECharts"}),"\u96c6\u6210\u7684\u7c7b\u5e93\uff0c\u6682\u65f6\u5df2\u7ecf\u652f\u6301\u4e86 ",(0,t.jsx)(n.code,{children:"echarts"})," \u7684\u6240\u6709map\u7ec4\u4ef6\u7c7b\u578b\uff0c\u5bf9\u4e0d\u652f\u6301\u5730\u7406\u5750\u6807\u7cfb\u7edf\u7684\u666e\u901a\u56fe\u8868\uff0c\u4e5f\u505a\u4e86\u90e8\u5206\u517c\u5bb9\uff0c\u4f8b\u5982\u997c\u56fe\u3001\u67f1\u72b6\u56fe\u3001\u6298\u7ebf\u56fe\u3002\n\u901a\u8fc7\u8fd9\u4e2a\u63d2\u4ef6\uff0c\u4f60\u53ef\u4ee5\u76f4\u63a5\u5c06",(0,t.jsx)(n.code,{children:"Echarts"}),"\u96c6\u6210\u5230 ",(0,t.jsx)(n.code,{children:"Openlayers 5"}),"\u3002\u4f46\u662f\u9664\u4e86\u4f7f\u7528\u5916\uff0c\u6211\u4eec\u8fd8\u5e0c\u671b\u8bfb\u8005\u80fd\u4ece\u4e2d\u83b7\u5f97\u66f4\u591a\u7684\u4e1c\u897f\uff0c\u89e6\u7c7b\u65c1\u901a\uff0c\u771f\u6b63\u5730\u5256\u6790\u539f\u7406\u53bb\u4e86\u89e3 ol5 \u5185\u90e8\u7684\u4e00\u4e9b\u7ec4\u6210\uff0c\u53ef\u80fd\u4f1a\n\u5e26\u7ed9\u4f60\u4e00\u4e9b\u4e0d\u4e00\u6837\u7684\u77e5\u8bc6\u3002"]}),"\n",(0,t.jsx)(n.h2,{id:"\u7b80\u5355\u4f7f\u7528",children:"\u7b80\u5355\u4f7f\u7528"}),"\n",(0,t.jsxs)(n.p,{children:["\u9996\u5148\u5728\u4f7f\u7528\u524d\u4f60\u5e94\u8be5\u5df2\u7ecf\u5b89\u88c5\u4e86 ",(0,t.jsx)(n.code,{children:"ol echarts ol-echarts"})," \u8fd9\u51e0\u4e2a\u5fc5\u8981\u4f9d\u8d56\uff0c\u5e76\u4e14\u5982\u679c\u4f7f\u7528\u4e86 ",(0,t.jsx)(n.code,{children:"gl"})," \u6e32\u67d3\u6a21\u5f0f\u8fd8\u9700\u8981\u65b0\u589e ",(0,t.jsx)(n.code,{children:"echarts-gl"})," \u4f9d\u8d56\u3002\n\u7136\u540e\u548c\u6b63\u5e38\u6d41\u7a0b\u4e00\u6837\uff0c\u6211\u4eec\u9700\u8981\u5148\u521b\u5efa\u4e00\u4e2a\u5730\u56fe\uff1a"]}),"\n",(0,t.jsx)(n.pre,{children:(0,t.jsx)(n.code,{className:"language-jsx",children:"import 'ol/ol.css';\nimport { Map, View } from 'ol';\nimport TileLayer from 'ol/layer/Tile';\nimport XYZ from 'ol/source/XYZ';\n\nconst map = new Map({\n target: '#map',\n view: new View({\n center: [113.53450137499999, 34.44104525],\n projection: 'EPSG:4326',\n zoom: 5 // resolution\n }),\n layers: [\n new TileLayer({\n source: new XYZ({\n url: 'http://cache1.arcgisonline.cn/arcgis/rest/services/ChinaOnline' +\n 'StreetPurplishBlue/MapServer/tile/{z}/{y}/{x}'\n })\n })\n ]\n});\n"})}),"\n",(0,t.jsxs)(n.p,{children:["\u7136\u540e\u6211\u4eec\u9700\u8981\u521d\u59cb\u5316\u4e00\u4e2a ",(0,t.jsx)(n.code,{children:"ECharts"})," \u56fe\u5c42\uff0c\u4e3b\u4f53\u4ee3\u7801\u5982\u4e0b"]}),"\n",(0,t.jsx)(n.pre,{children:(0,t.jsx)(n.code,{className:"language-jsx",children:"import EChartsLayer from 'ol-echarts';\n\nconst option = {}; // \u4e3a\u6807\u51c6\u7684ECharts\u7684\u914d\u7f6e\uff0c\u4e0d\u9700\u8981\u505a\u7279\u6b8a\u5904\u7406\n\nconst chart = new EChartsLayer(option, {\n forcedRerender: false, // \u5f3a\u5236\u91cd\u7ed8\uff0c\u4f1a\u8c03\u7528 ECharts \u7684 clear() \u65b9\u6cd5\u6e05\u7a7a\u56fe\u5c42\n forcedPrecomposeRerender: false, // \u5f3a\u5236\u5728 map \u89e6\u53d1 precompose\uff08\u51c6\u5907\u6e32\u67d3\uff0c\u672a\u5f00\u59cb\u6e32\u67d3\uff09\u4e8b\u4ef6\u65f6\u8fdb\u884c ECharts \u56fe\u5c42\u7684\u91cd\u7ed8\n hideOnZooming: false, // \u5728\u5730\u56fe\u7f29\u653e\u65f6\u9690\u85cf ECharts \u56fe\u5c42\uff0c\u8fd9\u6837\u5728\u4e00\u4e9b\u573a\u666f\u4e0b\u53ef\u4ee5\u63d0\u9ad8\u6027\u80fd\u3002\n hideOnMoving: false, // \u5728\u5730\u56fe\u79fb\u52a8\u65f6\u9690\u85cf ECharts \u56fe\u5c42\uff0c\u8fd9\u6837\u5728\u4e00\u4e9b\u573a\u666f\u4e0b\u53ef\u4ee5\u63d0\u9ad8\u6027\u80fd\u3002\n hideOnRotating: false, // \u5728\u5730\u56fe\u65cb\u8f6c\u65f6\u9690\u85cf ECharts \u56fe\u5c42\uff0c\u8fd9\u6837\u5728\u4e00\u4e9b\u573a\u666f\u4e0b\u53ef\u4ee5\u63d0\u9ad8\u6027\u80fd\u3002\n});\n\nchart.appendTo(map); // \u5c06 ECharts \u56fe\u5c42\u6dfb\u52a0\u5230\u5730\u56fe\u4e0a\n"})}),"\n",(0,t.jsxs)(n.p,{children:["\u901a\u8fc7\u4ee5\u4e0a\u6b65\u9aa4\uff0c\u6211\u4eec\u5c31\u7b80\u5355\u5b9e\u73b0\u4e86 ",(0,t.jsx)(n.code,{children:"Openlayers 5"})," \u548c ",(0,t.jsx)(n.code,{children:"ECharts"})," \u7ed3\u5408\u5c55\u793a\u6563\u70b9\u56fe\u7684\u793a\u4f8b\uff0c",(0,t.jsx)(n.a,{href:"https://github.com/sakitam-fdd/ol3Echarts/blob/master/website/pages/scatter.js",children:"\u5b8c\u6574\u4ee3\u7801"}),"\u3002"]}),"\n",(0,t.jsx)(n.h2,{id:"\u539f\u7406\u5256\u6790",children:"\u539f\u7406\u5256\u6790"}),"\n",(0,t.jsx)(n.h3,{id:"\u6838\u5fc3\u539f\u7406",children:"\u6838\u5fc3\u539f\u7406"}),"\n",(0,t.jsxs)(n.p,{children:["\u6211\u4eec\u77e5\u9053\u4e0d\u7ba1\u662f ",(0,t.jsx)(n.code,{children:"ol"})," \u8fd8\u662f ",(0,t.jsx)(n.code,{children:"echarts"})," \u6216\u8005\u662f\u5176\u4ed6\u56fe\u5f62\u6e32\u67d3\u7c7b\u5e93\uff0c\u5b83\u4eec\u7684\u6838\u5fc3\u539f\u7406\u90fd\u662f - \u6570\u636e\u53d1\u751f\u53d8\u52a8\u6216\u8005\u4ea4\u4e92\u52a8\u4f5c\u89e6\u53d1\u540e\u518d\u6b21\u8fdb\u884c\u56fe\u5f62\u7684\u7ed8\u5236\u8fc7\u7a0b\uff08\u91cd\u7ed8\uff09\u3002\n\u5f53\u6211\u4eec\u7406\u89e3\u6e05\u695a\u4ee5\u4e0a\u539f\u7406\uff0c\u5c31\u53ef\u4ee5\u8003\u8651\u628a ",(0,t.jsx)(n.code,{children:"ol"})," \u89c6\u56fe\u548c ",(0,t.jsx)(n.code,{children:"echarts"})," \u89c6\u56fe\u8fdb\u884c\u540c\u6b65\uff0c\u4ee5\u8fbe\u5230\u5c06\u4e24\u8005\u96c6\u6210\u5c55\u793a\u7684\u76ee\u7684\u3002\u800c\u4e14\u5e78\u8fd0\u7684\u662f",(0,t.jsx)(n.a,{href:"https://github.com/apache/incubator-echarts/blob/master/extension/bmap/README.md",children:"echarts"})," \u5b98\u65b9\u5df2\u7ecf\u7ed9\u51fa\u4e86\u548c\u767e\u5ea6\u5730\u56fe\n\u7ed3\u5408\u7684\u76f8\u5173\u4ee3\u7801\uff0c\u6211\u4eec\u53ef\u4ee5\u901a\u8fc7\u5256\u6790\u76f8\u5173\u4ee3\u7801\u6765\u52a0\u5feb\u6211\u4eec\u5bf9\u6838\u5fc3\u539f\u7406\u7684\u7406\u89e3\u3002"]}),"\n",(0,t.jsx)(n.h4,{id:"\u5b9e\u73b0\u65b9\u6848",children:"\u5b9e\u73b0\u65b9\u6848"}),"\n",(0,t.jsxs)(n.p,{children:["\u9488\u5bf9 ",(0,t.jsx)(n.code,{children:"ol"})," \u56fe\u5c42\u548c ",(0,t.jsx)(n.code,{children:"echarts"})," \u56fe\u5c42\u4e24\u8005\u96c6\u6210\u4e00\u822c\u6211\u4eec\u6709\u4e24\u79cd\u65b9\u5f0f\uff1a"]}),"\n",(0,t.jsxs)(n.ol,{children:["\n",(0,t.jsxs)(n.li,{children:["\u4e00\u662f\u76f4\u63a5\u521b\u5efa\u4e00\u4e2a\u9875\u9762\u5143\u7d20\u518d\u53bb\u5b9e\u4f8b\u5316\u4e00\u4e2a ",(0,t.jsx)(n.code,{children:"echarts"})," \u5bb9\u5668\uff0c\u7136\u540e\u901a\u8fc7 ",(0,t.jsx)(n.code,{children:"ol"})," \u5730\u56fe\u89c6\u56fe\u53d8\u5316\u629b\u51fa\u7684\u4e8b\u4ef6\u53bb\u540c\u6b65 ",(0,t.jsx)(n.code,{children:"ECharts"})," \u56fe\u8868\u7684\u53d8\u5316\u3002\u8fd9\u79cd\u505a\u6cd5\u7684\u597d\u5904\u662f\n\u53ef\u4ee5\u4f7f\u7528 ",(0,t.jsx)(n.code,{children:"ECharts"})," \u672c\u8eab\u81ea\u5e26\u7684 ",(0,t.jsx)(n.code,{children:"ToolTip"})," \u548c\u63a7\u4ef6\u7b49\uff0c\u7f3a\u70b9\u662f\u4f1a\u9020\u6210\u6027\u80fd\u7684\u635f\u5931\u3002"]}),"\n",(0,t.jsxs)(n.li,{children:["\u53e6\u5916\u4e00\u79cd\u65b9\u6848\u662f\u76f4\u63a5\u4f7f\u7528 ",(0,t.jsx)(n.code,{children:"ImageCanvas"})," \u53bb\u521b\u5efa\u5185\u7f6e\u53ef\u5408\u5e76\u7684 canvas \u56fe\u5c42\uff0c\u8fd9\u79cd\u65b9\u6848\u53ef\u4ee5\u5728\u4e00\u5b9a\u7a0b\u5ea6\u4e0a\u63d0\u5347\u6e32\u67d3\u6027\u80fd\uff0c\u4f46\u662f\u4f1a\u635f\u5931 ",(0,t.jsx)(n.code,{children:"ECharts"})," \u5185\u7f6e\u7684\u4e00\u4e9b\u4ea4\u4e92\u3002"]}),"\n"]}),"\n",(0,t.jsx)(n.h4,{id:"\u5b9e\u73b0\u6d41\u7a0b",children:"\u5b9e\u73b0\u6d41\u7a0b"}),"\n",(0,t.jsx)(n.p,{children:"\u4e0b\u9762\u6211\u4eec\u4e3b\u8981\u4ee5\u7b2c\u4e00\u79cd\u65b9\u6848\u68b3\u7406\u4e00\u4e0b\u5177\u4f53\u5b9e\u73b0\u7684\u6d41\u7a0b\u3002"}),"\n",(0,t.jsxs)(n.p,{children:["1\u3001\u9996\u5148\u6211\u4eec\u9700\u8981\u4e00\u4e2a\u80fd\u591f\u5b9e\u4f8b\u5316 ",(0,t.jsx)(n.code,{children:"ECharts"})," \u7684\u5bb9\u5668\uff0c\u8fd9\u4e2a\u5bb9\u5668\u7684\u5b58\u653e\u4f4d\u7f6e\u4e5f\u662f\u6709\u4e00\u5b9a\u8981\u6c42\u7684\u3002\u6211\u4eec\u9700\u8981\u8003\u8651\u7684\u662f\u9996\u5148\u4e0a\u9762\u53e0\u52a0\u7684 Dom \u56fe\u5c42\u4e0d\u80fd\u906e\u6321\u4e0b\u9762\u7684\u56fe\u5c42\uff0c\u53e6\u5916\n\u4e0a\u9762 Dom \u56fe\u5c42\u7684\u4e8b\u4ef6\u9700\u8981\u7a7f\u900f\u5230\u4e0b\u90e8\uff0c\u6240\u4ee5\u6211\u4eec\u8003\u8651\u76f4\u63a5\u5c06\u5bb9\u5668\u9ed8\u8ba4\u521b\u5efa\u5728 ",(0,t.jsx)(n.code,{children:"ol-overlaycontainer"})," \u5bb9\u5668\u5185\uff0c\u4e3b\u8981\u4ee3\u7801\u5982\u4e0b\uff1a"]}),"\n",(0,t.jsxs)(n.p,{children:["\u6b64\u5916\u8fd8\u9700\u8981\u6ce8\u610f\uff0c\u5bb9\u5668\u521b\u5efa\u4f4d\u7f6e\u4e5f\u652f\u6301\u81ea\u5b9a\u4e49\uff0c\u4f46\u662f\u9ed8\u8ba4\u90fd\u662f\u5728\u4e0a\u56fe\u5730\u56fe\u5bb9\u5668\u5185\uff1b\u4e00\u822c\u60c5\u51b5\u4e0b\u4e0d\u9700\u8981\u81ea\u5b9a\u4e49\u4f4d\u7f6e\uff0c\u91c7\u7528\u9ed8\u8ba4\u5373\u53ef\u3002\n",(0,t.jsx)(n.a,{href:"https://github.com/sakitam-fdd/ol3Echarts/blob/master/packages/ol-echarts/src/index.js#L215",children:"\u67e5\u770b\u6e90\u7801"}),", \u4ee5\u4e0b\u4e3a\u6838\u5fc3\u4ee3\u7801\uff1a"]}),"\n",(0,t.jsx)(n.pre,{children:(0,t.jsx)(n.code,{className:"language-jsx",children:"_createLayerContainer (map, options) {\n const viewPort = map.getViewport()\n const container = (this.$container = document.createElement('div'));\n container.style.position = 'absolute';\n container.style.top = '0px';\n container.style.left = '0px';\n container.style.right = '0px';\n container.style.bottom = '0px';\n let _target = getTarget(options['target'], viewPort);\n if (_target && _target[0] && _target[0] instanceof Element) {\n _target[0].appendChild(container);\n } else {\n let _target = getTarget('.ol-overlaycontainer', viewPort);\n if (_target && _target[0] && _target[0] instanceof Element) {\n _target[0].appendChild(container);\n } else {\n viewPort.appendChild(container);\n }\n }\n}\n"})}),"\n",(0,t.jsxs)(n.p,{children:["2\u3001\u5750\u6807\u7cfb\u7edf\u7684\u6ce8\u518c\uff08\u6ce8\u518c\u5750\u6807\u7cfb\u7edf\u7684\u539f\u56e0\u548c\u6838\u5fc3\u539f\u7406\u8bf7\u67e5\u770b",(0,t.jsx)(n.code,{children:"\u5750\u6807\u7cfb\u7edf\u8be6\u89e3"}),"\uff09\uff1a",(0,t.jsx)(n.a,{href:"https://github.com/sakitam-fdd/ol3Echarts/blob/master/packages/ol-echarts/src/index.js#L400",children:"\u67e5\u770b\u6e90\u7801"}),", \u4ee5\u4e0b\u4e3a\u6838\u5fc3\u4ee3\u7801\uff1a"]}),"\n",(0,t.jsx)(n.pre,{children:(0,t.jsx)(n.code,{className:"language-jsx",children:"// \u6ce8\u518copenlayers\u5750\u6807\u7cfb\u7edf\uff0c_getCoordinateSystem\u6765\u81ea `RegisterCoordinateSystem`\necharts.registerCoordinateSystem('openlayers', _getCoordinateSystem(map, {}));\n\n// \u5750\u6807\u7cfb\u7edf\u6ce8\u518c\u5b8c\u6210\u540e\u9700\u8981\u5c06\u4f20\u5165\u7684echarts\u914d\u7f6e\u9879\u7684series\u7c7b\u578b\u7684\u6bcf\u4e00\u9879\u7684coordinateSystem\u91cd\u5b9a\u4e49\u4e3a `openlayers`, \u4fdd\u6301\u548c\u4e0a\u9762\u6ce8\u518c\u7c7b\u578b\u4e00\u81f4\n// echarts \u5728\u7ed8\u5236\u65f6\u4f1a\u6839\u636e\u76f8\u5e94\u7684\u5750\u6807\u7cfb\u7edf\u53bb\u5c06\u4f20\u5165\u7684\u7a7a\u95f4\u6570\u636e\u8f6c\u6362\u4e3a\u5c4f\u5e55\u5750\u6807\nfor (let i = series.length - 1; i >= 0; i--) {\n series[i]['coordinateSystem'] = 'openlayers';\n // series[i]['animation'] = false;\n}\n"})}),"\n",(0,t.jsxs)(n.p,{children:["3\u3001\u9700\u8981\u62ff\u5230\u5df2\u7ecf\u521b\u5efa\u7684\u5bb9\u5668\u53bb\u5b9e\u4f8b\u5316 ",(0,t.jsx)(n.code,{children:"ECharts"})," ",(0,t.jsx)(n.a,{href:"https://github.com/sakitam-fdd/ol3Echarts/blob/master/packages/ol-echarts/src/index.js#L450",children:"\u67e5\u770b\u6e90\u7801"}),", \u4ee5\u4e0b\u4e3a\u6838\u5fc3\u4ee3\u7801\uff1a"]}),"\n",(0,t.jsx)(n.pre,{children:(0,t.jsx)(n.code,{className:"language-jsx",children:"// \u521b\u5efaecharts\u5b9e\u4f8b\uff0c\u5e76\u4e14\u8bbe\u7f6e\u914d\u7f6e\u9879\nthis.$chart = echarts.init(this.$container);\nthis.$chart.setOption(options)\n"})}),"\n",(0,t.jsxs)(n.p,{children:["4\u3001\u7ed1\u5b9aopenlayers\u5730\u56fe\u7684\u91cd\u7ed8\u4e8b\u4ef6\uff0c\u5728",(0,t.jsx)(n.code,{children:"ol.view"}),"\u89c6\u56fe\u53d8\u5316\u65f6\u540c\u6b65\u66f4\u65b0 ",(0,t.jsx)(n.code,{children:"echarts"})," \u56fe\u8868\u5185\u5bb9\u3002\n",(0,t.jsx)(n.a,{href:"https://github.com/sakitam-fdd/ol3Echarts/blob/master/packages/ol-echarts/src/index.js#L348",children:"\u67e5\u770b\u6e90\u7801"}),", \u4ee5\u4e0b\u4e3a\u6838\u5fc3\u4ee3\u7801\uff1a"]}),"\n",(0,t.jsx)(n.pre,{children:(0,t.jsx)(n.code,{className:"language-jsx",children:"const Map = this.$Map;\nconst view = Map.getView();\nif (this.$options.forcedPrecomposeRerender) {\n // \u5f3a\u5236\u5b9e\u65f6\u66f4\u65b0\uff0c\u80fd\u591f\u907f\u514d\u5730\u56fe\u548c `echarts` \u89c6\u56fe\u4e0d\u540c\u6b65\u95ee\u9898\n this.precomposeListener_ = Map.on('precompose', this.reRender.bind(this));\n}\n\n// openlayers\u5730\u56fe\u5c3a\u5bf8\u53d8\u5316\u4e8b\u4ef6\nthis.sizeChangeListener_ = Map.on('change:size', this.onResize.bind(this));\n// openlayers\u5730\u56fe\u5206\u8fa8\u7387\u53d8\u5316\u4e8b\u4ef6\nthis.resolutionListener_ = view.on('change:resolution', this.onZoomEnd.bind(this));\n// openlayers\u5730\u56fe\u4e2d\u5fc3\u70b9\u53d8\u5316\u4e8b\u4ef6\nthis.centerChangeListener_ = view.on('change:center', this.onCenterChange.bind(this));\n// openlayers\u5730\u56fe\u89c6\u56fe\u65cb\u8f6c\u89d2\u5ea6\u53d8\u5316\u4e8b\u4ef6\nthis.rotationListener_ = view.on('change:rotation', this.onDragRotateEnd.bind(this));\n// openlayers\u5730\u56fe\u89c6\u56fe\u5e73\u79fb\u5f00\u59cb\u4e8b\u4ef6\nthis.movestartListener_ = Map.on('movestart', this.onMoveStart.bind(this));\n// openlayers\u5730\u56fe\u89c6\u56fe\u5e73\u79fb\u7ed3\u675f\u4e8b\u4ef6\nthis.moveendListener_ = Map.on('moveend', this.onMoveEnd.bind(this));\n"})}),"\n",(0,t.jsx)(n.p,{children:"5\u3001\u5730\u56fe\u4e8b\u4ef6\u89e6\u53d1echarts\u91cd\u7ed8"}),"\n",(0,t.jsx)(n.pre,{children:(0,t.jsx)(n.code,{className:"language-jsx",children:"// \u5982\u679c\u5f3a\u5236\u91cd\u7ed8\u4f1a\u624b\u52a8\u8c03\u7528\u4e00\u6b21 `echarts` \u5b9e\u4f8b\u7684 `clear` \u65b9\u6cd5\nif (this.$options.forcedRerender) {\n this.$chart.clear();\n}\n\n// \u66f4\u65b0 echarts \u5bb9\u5668\u5c3a\u5bf8\nthis.$chart.resize();\n\n// \u91cd\u65b0\u8bbe\u7f6e\u914d\u7f6e\u9879\uff0c\u4f1a\u89e6\u53d1\u56fe\u8868\u7684\u91cd\u7ed8\u548c\u50cf\u7d20\u5750\u6807\u7684\u91cd\u65b0\u8ba1\u7b97\u3002\nthis.$chart.setOption(options)\n"})}),"\n",(0,t.jsx)(n.p,{children:"\u57fa\u672c\u601d\u8def\u53ef\u4ee5\u7b80\u5355\u7406\u89e3\u4e3a\uff1a"}),"\n",(0,t.jsxs)(n.ul,{children:["\n",(0,t.jsxs)(n.li,{children:["\u7ed1\u5b9a ",(0,t.jsx)(n.code,{children:"openlayers"})," \u5730\u56fe\u89c6\u56fe\u91cd\u7ed8\u4e8b\u4ef6\u540c\u6b65\u91cd\u7ed8 ",(0,t.jsx)(n.code,{children:"echarts"}),"\u89c6\u56fe\u3002"]}),"\n",(0,t.jsx)(n.li,{children:"\u5730\u7406\u5750\u6807\u5230\u771f\u5b9e\u5c4f\u5e55\u5750\u6807\u7684\u5b9e\u65f6\u8f6c\u6362\u3002"}),"\n"]}),"\n",(0,t.jsx)(n.p,{children:"\u4ee5\u4e0a\u5c31\u662f\u672c\u7ae0\u8282\u7684\u57fa\u672c\u5185\u5bb9\u3002"}),"\n",(0,t.jsx)(n.h3,{id:"coordinatesystem---\u5750\u6807\u7cfb\u7edf\u8be6\u89e3",children:"CoordinateSystem - \u5750\u6807\u7cfb\u7edf\u8be6\u89e3"}),"\n",(0,t.jsxs)(n.p,{children:["\u6211\u4eec\u5728\u67e5\u770b ",(0,t.jsx)(n.code,{children:"ECharts"})," \u5b98\u65b9\u7684",(0,t.jsx)(n.a,{href:"https://github.com/apache/incubator-echarts/blob/master/extension/bmap",children:"\u767e\u5ea6\u5730\u56fe\u6269\u5c55"}),"\u6216\u8005\u5176\u4ed6\u8bf8\u5982\n",(0,t.jsx)(n.a,{href:"https://github.com/maptalks/maptalks.e3",children:"maptalks.e3"})," \u6269\u5c55, \u4ed6\u4eec\u90fd\u5305\u542b\u4e86\u4e00\u6bb5\u6838\u5fc3\u4ee3\u7801\u662f\u5173\u4e8e\u5750\u6807\u7cfb\u7edf\u6ce8\u518c\u7684\uff1b\u540c\u6837\u7684\uff0c\u6211\u4eec\u5728\u6269\u5c55 ",(0,t.jsx)(n.code,{children:"ol-echarts"})," \u65f6\n\u6211\u4eec\u540c\u6837\u4e5f\u9700\u8981\u8003\u8651\u7279\u6b8a\u5750\u6807\u7cfb\u7edf\u6ce8\u518c\u7684\u95ee\u9898\u3002\u4e0b\u9762\u6211\u4eec\u4f1a\u8be6\u7ec6\u8bf4\u660e\u6211\u4eec\u4e3a\u4ec0\u4e48\u8981\u8fdb\u884c\u5750\u6807\u7cfb\u7edf\u7684\u6ce8\u518c\uff0c\u4ee5\u53ca\u662f\u5982\u4f55\u901a\u8fc7\u5750\u6807\u7cfb\u7edf\u5c06\u7a7a\u95f4\u5750\u6807\u6620\u5c04\u5230\u771f\u5b9e\u5c4f\u5e55\u5750\u6807\u7684\u3002"]}),"\n",(0,t.jsxs)(n.p,{children:["\u9996\u5148\u6211\u4eec\u9700\u8981\u601d\u8003\u4e00\u4e0b\uff0c\u5728\u771f\u5b9e\u5730\u56fe\u53ef\u89c6\u5316\u7684\u5f00\u53d1\u8fc7\u7a0b\u4e2d\u6211\u4eec\u4e00\u822c\u62ff\u5230\u7684\u6570\u636e\u90fd\u4e3a\u7a7a\u95f4\u6570\u636e\uff0c\u6211\u4eec\u5e76\u4e0d\u80fd\u76f4\u63a5\u7528\u7a7a\u95f4\u6570\u636e\u7684\u539f\u59cb\u503c\u8fdb\u884c\u6253\u70b9\u5230\u6d4f\u89c8\u5668\u7a97\u53e3\u4e0a; \u4e00\u822c\u6211\u4eec\u90fd\u4f1a\u901a\u8fc7\u5404\u4e2a\u5730\u56fe\u5f15\u64ce\u63d0\u4f9b\u7684\u65b9\u6cd5\u5c06\u5730\u7406\u5750\u6807\u8f6c\u6362\u4e3a\n\u771f\u5b9e\u5c4f\u5e55\u5750\u6807\u8fdb\u884c\u7ed8\u5236\uff08\u800c\u4e14\u9700\u8981\u6ce8\u610f\u7684\u662f\u5730\u7406\u5750\u6807\u7684\u8f93\u5165\u662f\u4e0d\u53ef\u53d8\u7684\uff0c\u4f46\u662f\u5bf9\u5e94\u7684\u5c4f\u5e55\u5750\u6807\u4f1a\u968f\u7740\u89c6\u56fe\u7684\u53d8\u5316\u800c\u53d8\u5316\uff09\uff0c\u5bf9\u4e8e ",(0,t.jsx)(n.code,{children:"Openlayers"})," \u6211\u4eec\u4f1a\u6709\u4e2a\u5e38\u7528\u7684\u65b9\u6cd5\u4e3a\uff1a"]}),"\n",(0,t.jsx)(n.pre,{children:(0,t.jsx)(n.code,{className:"language-jsx",children:"// coordinates \u4e3a\u5730\u7406\u5750\u6807\uff0c\u8fd4\u56de\u5c4f\u5e55\u5750\u6807\nmap.getPixelFromCoordinate(coordinates)\n"})}),"\n",(0,t.jsx)(n.p,{children:"\u5bf9\u5e94\u7684\u4ee3\u7801\u5b9e\u73b0\u5982\u4e0b\uff1a"}),"\n",(0,t.jsxs)(n.ul,{children:["\n",(0,t.jsxs)(n.li,{children:[(0,t.jsx)(n.a,{href:"https://github.com/sakitam-fdd/ol3Echarts/blob/master/packages/ol-echarts/src/coordinate/RegisterCoordinateSystem.js#L54",children:"\u666e\u901a\u56fe\u8868\u7c7b\u578b(\u53ef\u4ee5\u9488\u5bf9)"}),"\uff1a"]}),"\n"]}),"\n",(0,t.jsx)(n.pre,{children:(0,t.jsx)(n.code,{className:"language-jsx",children:"RegisterCoordinateSystem.prototype.dataToPoint = function (coords) {\n if (coords && Array.isArray(coords) && coords.length > 0) {\n // \u4ec5\u505a\u5224\u65ad\u548c\u5c06\u5b57\u7b26\u4e32\u5750\u6807\u8f6c\u6362\u4e3a\u6570\u5b57\n coords = coords.map(function (item) {\n if (typeof item === 'string') {\n item = Number(item);\n }\n return item;\n });\n }\n let source = options['source'] || 'EPSG:4326';\n let destination = options['destination'] || this.projCode_; // \u5f53\u524d\u5730\u56fe\u7684\u89c6\u56fe\u6295\u5f71\n // \u5173\u952e\u4ee3\u7801\uff1a\n // 1\u3001transform(coords, source, destination) \u652f\u6301\u591a\u6570\u636e\u6295\u5f71\uff0c\u6700\u7ec8\u5c06\u5176\u8f6c\u6362\u4e3a `EPSG:4326`\n // 2\u3001map.getPixelFromCoordinate(coordinates) \u5c06\u5750\u6807\u8f6c\u6362\u4e3a\u5c4f\u5e55\u50cf\u7d20\n let pixel = map.getPixelFromCoordinate(transform(coords, source, destination));\n const mapOffset = this._mapOffset;\n return [pixel[0] - mapOffset[0], pixel[1] - mapOffset[1]];\n};\n"})}),"\n",(0,t.jsxs)(n.ul,{children:["\n",(0,t.jsx)(n.li,{children:"\u7279\u6b8a\u56fe\u8868\u7c7b\u578b\uff08custom\u7c7b\u578b, \u56e0\u4e3a\u6b64\u79cd\u7c7b\u578b\u4f1a\u6d89\u53ca\u56fe\u5f62\u7684\u5927\u5c0f-size\uff09\uff1a"}),"\n"]}),"\n",(0,t.jsx)(n.pre,{children:(0,t.jsx)(n.code,{className:"language-jsx",children:"// form: https://github.com/sakitam-fdd/ol3Echarts/blob/master/packages/ol-echarts/src/coordinate/RegisterCoordinateSystem.js#L121\nRegisterCoordinateSystem.prototype.prepareCustoms = function (data) {\n const rect = this.getViewRect();\n return {\n coordSys: {\n // The name exposed to user is always 'cartesian2d' but not 'grid'.\n type: 'openlayers',\n x: rect.x,\n y: rect.y,\n width: rect.width,\n height: rect.height\n },\n api: {\n coord: bind(this.dataToPoint, this), // \u8f6c\u6362\u5c4f\u5e55\u5750\u6807\u65b9\u6cd5\n size: bind(RegisterCoordinateSystem.dataToCoordSize, this) // \u8f6c\u6362\u56fe\u5f62\u5927\u5c0f\u7684\u65b9\u6cd5\n }\n };\n};\n\n// from: https://github.com/sakitam-fdd/ol3Echarts/blob/master/packages/ol-echarts/src/coordinate/RegisterCoordinateSystem.js#L144\nRegisterCoordinateSystem.dataToCoordSize = function (dataSize, dataItem) {\n dataItem = dataItem || [0, 0];\n return $map(\n [0, 1],\n function (dimIdx) {\n let val = dataItem[dimIdx]; // \u5f53\u524d\u6570\u636e\u7684\u7ecf\u7eac\u5ea6\n let halfSize = dataSize[dimIdx] / 2; // \u5bf9\u5e94\u6570\u636e\u5927\u5c0f\u7684\u4e00\u534a\n let [p1, p2] = [[], []];\n p1[dimIdx] = val - halfSize; // \u5bf9\u5e94\u6570\u636e\u5927\u5c0f\u7684\u8d1f\u5411\u504f\u79fb\n p2[dimIdx] = val + halfSize; // \u5bf9\u5e94\u6570\u636e\u5927\u5c0f\u7684\u6b63\u5411\u504f\u79fb\n p1[1 - dimIdx] = p2[1 - dimIdx] = dataItem[1 - dimIdx]; // \u4ec5\u505a\u4e34\u65f6\u8ba1\u7b97\u7684\u8f85\u52a9\u53d8\u91cf\n return Math.abs(this.dataToPoint(p1)[dimIdx] - this.dataToPoint(p2)[dimIdx]); // \u8f6c\u6362\u4e3a\u5bf9\u5e94\u5c4f\u5e55\u50cf\u7d20\u7684\u5b9e\u9645\u5927\u5c0f\n },\n this\n );\n};\n"})}),"\n",(0,t.jsxs)(n.p,{children:[(0,t.jsx)(n.a,{href:"https://github.com/sakitam-fdd/ol3Echarts/blob/master/packages/ol-echarts/src/coordinate/RegisterCoordinateSystem.js#L165",children:"\u5750\u6807\u7cfb\u7edf\u7684\u6ce8\u518c"}),"\uff1a"]}),"\n",(0,t.jsx)(n.pre,{children:(0,t.jsx)(n.code,{className:"language-jsx",children:"\n// \u9ed8\u8ba4\u8c03\u7528 echarts \u7684 `registerCoordinateSystem` \u65b9\u6cd5\u8fdb\u884c\u81ea\u5b9a\u4e49\u5750\u6807\u7cfb\u7edf\u7684\u6ce8\u518c\uff0c\n// \u7b2c\u4e00\u4e2a\u53c2\u6570\u4e3a \u5750\u6807\u7cfb\u7edf\u7684 type \u7c7b\u578b\uff0c\u7b2c\u4e8c\u4e2a\u53c2\u6570\u4e3a\u81ea\u5b9a\u4e49\u5750\u6807\u7cfb\u7edf\u7684\u6784\u9020\u51fd\u6570, \u9ed8\u8ba4\u4f1a\u8c03\u7528\u6784\u9020\u51fd\u6570\u7684\u9759\u6001\u65b9\u6cd5 `create`\necharts.registerCoordinateSystem('openlayers', RegisterCoordinateSystem);\n\n// create\u51fd\u6570\u4e3b\u8981\u505a\u4e86\u4ee5\u4e0b\u5de5\u4f5c\uff1a\n// \u5faa\u73af series\uff0c\u5c06\u6307\u5b9a `coordinateSystem` \u7c7b\u578b\u4e3a `openlayers` \u7684 seriesModel\u7684 `coordinateSystem` \u6307\u5411 `RegisterCoordinateSystem` \u7684\u5b9e\u4f8b\u3002\nRegisterCoordinateSystem.create = function (echartModel, api) {\n echartModel.eachSeries(function (seriesModel) {\n if (seriesModel.get('coordinateSystem') === 'openlayers') {\n seriesModel.coordinateSystem = new RegisterCoordinateSystem(map);\n }\n });\n};\n\n"})})]})}function h(e={}){const{wrapper:n}={...(0,r.R)(),...e.components};return n?(0,t.jsx)(n,{...e,children:(0,t.jsx)(l,{...e})}):l(e)}},2036:(e,n,s)=>{s.d(n,{R:()=>o,x:()=>a});var t=s(7378);const r={},i=t.createContext(r);function o(e){const n=t.useContext(i);return t.useMemo((function(){return"function"==typeof e?e(n):{...n,...e}}),[n,e])}function a(e){let n;return n=e.disableParentContext?"function"==typeof e.components?e.components(r):e.components||r:o(e.components),t.createElement(i.Provider,{value:n},e.children)}}}]); \ No newline at end of file diff --git a/assets/js/65684be2.410951be.js b/assets/js/65684be2.a8ef4904.js similarity index 98% rename from assets/js/65684be2.410951be.js rename to assets/js/65684be2.a8ef4904.js index 4c8e705..2efd44c 100644 --- a/assets/js/65684be2.410951be.js +++ b/assets/js/65684be2.a8ef4904.js @@ -1 +1 @@ -"use strict";(self.webpackChunkol_echarts_docs=self.webpackChunkol_echarts_docs||[]).push([[757],{9601:(n,e,t)=>{t.r(e),t.d(e,{assets:()=>d,contentTitle:()=>r,default:()=>p,frontMatter:()=>a,metadata:()=>i,toc:()=>c});var o=t(6106),s=t(2036);const a={id:"bar",title:"\u67f1\u72b6\u56fe"},r=void 0,i={id:"playgrounds/bar",title:"\u67f1\u72b6\u56fe",description:"\u793a\u4f8b",source:"@site/docs/playgrounds/bar.mdx",sourceDirName:"playgrounds",slug:"/playgrounds/bar",permalink:"/ol3Echarts/docs/playgrounds/bar",draft:!1,unlisted:!1,editUrl:"https://github.com/sakitam-fdd/ol3Echarts/edit/master/documents/docs/docs/playgrounds/bar.mdx",tags:[],version:"current",lastUpdatedBy:"sakitam-fdd",lastUpdatedAt:1730645386e3,frontMatter:{id:"bar",title:"\u67f1\u72b6\u56fe"},sidebar:"docs",previous:{title:"\u997c\u56fe",permalink:"/ol3Echarts/docs/playgrounds/pie"},next:{title:"\u6298\u7ebf\u56fe",permalink:"/ol3Echarts/docs/playgrounds/line"}},d={},c=[{value:"\u793a\u4f8b",id:"\u793a\u4f8b",level:3}];function l(n){const e={code:"code",h3:"h3",pre:"pre",...(0,s.R)(),...n.components};return(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)(e.h3,{id:"\u793a\u4f8b",children:"\u793a\u4f8b"}),"\n",(0,o.jsx)(e.pre,{children:(0,o.jsx)(e.code,{className:"language-jsx",metastring:"live",live:!0,children:"function render(props) {\n const container = useRef(null);\n\n const initChat = (map, option) => {\n const chart = new EChartsLayer(option, {\n hideOnMoving: false,\n hideOnZooming: true,\n });\n\n chart.appendTo(map);\n }\n\n const init = async () => {\n const map = new ol.Map({\n target: container.current,\n view: new ol.View({\n projection: 'EPSG:4326',\n zoom: 3,\n rotation: 0,\n center: [113.53450137499999, 34.44104525],\n }),\n layers: [\n new TileLayer({\n source: new XYZ({\n url: 'https://{a-c}.basemaps.cartocdn.com/dark_all/{z}/{x}/{y}.png',\n }),\n }),\n ],\n });\n\n const option = {\n color: ['#3398DB'],\n tooltip: {\n trigger: 'axis',\n axisPointer: { // \u5750\u6807\u8f74\u6307\u793a\u5668\uff0c\u5750\u6807\u8f74\u89e6\u53d1\u6709\u6548\n type: 'shadow', // \u9ed8\u8ba4\u4e3a\u76f4\u7ebf\uff0c\u53ef\u9009\u4e3a\uff1a'line' | 'shadow'\n },\n },\n legend: {\n x: 'right',\n show: true,\n data: ['\u5305\u79df\u8d39', '\u7269\u4e1a\u8d39', '\u6c34\u7535', '\u7f51\u7edc', '\u71c3\u6c14'],\n selectedMode: 'multiple',\n textStyle: {\n color: '#fff'\n }\n },\n grid: [],\n xAxis: [],\n yAxis: [],\n series: [],\n };\n\n const series = [\n {\n name: '\u5305\u79df\u8d39',\n type: 'bar',\n barWidth: '15',\n coordinates: [87.1435546875, 43.79150390625],\n data: [20, 12, 31, 34, 31],\n xAxisIndex: 0,\n yAxisIndex: 0,\n },\n {\n name: '\u7269\u4e1a\u8d39',\n type: 'bar',\n barWidth: '15',\n coordinates: [86.5283203125, 32.40966796875],\n data: [1, 1, 2, 3, 1],\n xAxisIndex: 1,\n yAxisIndex: 1,\n },\n {\n name: '\u6c34\u7535',\n type: 'bar',\n barWidth: '15',\n coordinates: [98.876953125, 35.74951171875],\n data: [1, 1, 2, 3, 1],\n xAxisIndex: 2,\n yAxisIndex: 2,\n },\n {\n name: '\u7f51\u7edc',\n type: 'bar',\n barWidth: '15',\n coordinates: [108.80859375, 23.44482421875],\n data: [1, 1, 2, 3, 1],\n xAxisIndex: 3,\n yAxisIndex: 3,\n },\n {\n name: '\u71c3\u6c14',\n type: 'bar',\n barWidth: '15',\n coordinates: [110.53450137499999, 38.44104525],\n data: [1, 1, 2, 3, 1],\n xAxisIndex: 4,\n yAxisIndex: 4,\n },\n ];\n\n series.forEach((item, index) => {\n const grid = {\n show: true,\n containLabel: false,\n borderWidth: 0,\n borderColor: '#fff',\n width: 150,\n height: 80,\n };\n option.grid.push(grid);\n option.xAxis.push({\n type: 'category',\n show: true,\n gridIndex: index,\n nameTextStyle: {\n color: '#3c3c3c',\n },\n axisLine: {\n show: false,\n onZero: false,\n },\n axisLabel: {\n show: false,\n interval: 0,\n rotate: -45,\n textStyle: {\n color: '#3c3c3c',\n fontSize: 10,\n },\n },\n axisTick: {\n show: false,\n },\n data: ['\u65b0\u8679\u6865', '\u4e2d\u5c71\u516c\u56ed', '\u8679\u6865', '\u9547\u5b81\u8def', '\u5929\u5c71\u53e4\u5317'],\n });\n\n option.yAxis.push({\n type: 'value',\n show: true,\n min: 0.001,\n splitLine: { show: false },\n axisLabel: {\n show: false,\n },\n axisLine: {\n show: false,\n onZero: false,\n },\n nameGap: '1',\n axisTick: {\n show: false,\n },\n nameTextStyle: {\n color: '#3c3c3c',\n fontSize: 14,\n },\n gridIndex: index,\n });\n option.series.push(item);\n });\n\n initChat(map, option);\n\n function resize(target) {}\n\n return {\n resize,\n }\n }\n\n useEffect(() => {\n const { resize } = init();\n\n return () => {\n };\n }, []);\n\n return (\n <div className=\"live-wrap\">\n <div ref={container} className=\"map-content\" />\n </div>\n );\n}\n"})})]})}function p(n={}){const{wrapper:e}={...(0,s.R)(),...n.components};return e?(0,o.jsx)(e,{...n,children:(0,o.jsx)(l,{...n})}):l(n)}},2036:(n,e,t)=>{t.d(e,{R:()=>r,x:()=>i});var o=t(7378);const s={},a=o.createContext(s);function r(n){const e=o.useContext(a);return o.useMemo((function(){return"function"==typeof n?n(e):{...e,...n}}),[e,n])}function i(n){let e;return e=n.disableParentContext?"function"==typeof n.components?n.components(s):n.components||s:r(n.components),o.createElement(a.Provider,{value:e},n.children)}}}]); \ No newline at end of file +"use strict";(self.webpackChunkol_echarts_docs=self.webpackChunkol_echarts_docs||[]).push([[757],{4483:(n,e,t)=>{t.r(e),t.d(e,{assets:()=>d,contentTitle:()=>r,default:()=>p,frontMatter:()=>a,metadata:()=>i,toc:()=>c});var o=t(6106),s=t(2036);const a={id:"bar",title:"\u67f1\u72b6\u56fe"},r=void 0,i={id:"playgrounds/bar",title:"\u67f1\u72b6\u56fe",description:"\u793a\u4f8b",source:"@site/docs/playgrounds/bar.mdx",sourceDirName:"playgrounds",slug:"/playgrounds/bar",permalink:"/ol3Echarts/docs/playgrounds/bar",draft:!1,unlisted:!1,editUrl:"https://github.com/sakitam-fdd/ol3Echarts/edit/master/documents/docs/docs/playgrounds/bar.mdx",tags:[],version:"current",lastUpdatedBy:"sakitam-fdd",lastUpdatedAt:1730645386e3,frontMatter:{id:"bar",title:"\u67f1\u72b6\u56fe"},sidebar:"docs",previous:{title:"\u997c\u56fe",permalink:"/ol3Echarts/docs/playgrounds/pie"},next:{title:"\u6298\u7ebf\u56fe",permalink:"/ol3Echarts/docs/playgrounds/line"}},d={},c=[{value:"\u793a\u4f8b",id:"\u793a\u4f8b",level:3}];function l(n){const e={code:"code",h3:"h3",pre:"pre",...(0,s.R)(),...n.components};return(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)(e.h3,{id:"\u793a\u4f8b",children:"\u793a\u4f8b"}),"\n",(0,o.jsx)(e.pre,{children:(0,o.jsx)(e.code,{className:"language-jsx",metastring:"live",live:!0,children:"function render(props) {\n const container = useRef(null);\n\n const initChat = (map, option) => {\n const chart = new EChartsLayer(option, {\n hideOnMoving: false,\n hideOnZooming: true,\n });\n\n chart.appendTo(map);\n }\n\n const init = async () => {\n const map = new ol.Map({\n target: container.current,\n view: new ol.View({\n projection: 'EPSG:4326',\n zoom: 3,\n rotation: 0,\n center: [113.53450137499999, 34.44104525],\n }),\n layers: [\n new TileLayer({\n source: new XYZ({\n url: 'https://{a-c}.basemaps.cartocdn.com/dark_all/{z}/{x}/{y}.png',\n }),\n }),\n ],\n });\n\n const option = {\n color: ['#3398DB'],\n tooltip: {\n trigger: 'axis',\n axisPointer: { // \u5750\u6807\u8f74\u6307\u793a\u5668\uff0c\u5750\u6807\u8f74\u89e6\u53d1\u6709\u6548\n type: 'shadow', // \u9ed8\u8ba4\u4e3a\u76f4\u7ebf\uff0c\u53ef\u9009\u4e3a\uff1a'line' | 'shadow'\n },\n },\n legend: {\n x: 'right',\n show: true,\n data: ['\u5305\u79df\u8d39', '\u7269\u4e1a\u8d39', '\u6c34\u7535', '\u7f51\u7edc', '\u71c3\u6c14'],\n selectedMode: 'multiple',\n textStyle: {\n color: '#fff'\n }\n },\n grid: [],\n xAxis: [],\n yAxis: [],\n series: [],\n };\n\n const series = [\n {\n name: '\u5305\u79df\u8d39',\n type: 'bar',\n barWidth: '15',\n coordinates: [87.1435546875, 43.79150390625],\n data: [20, 12, 31, 34, 31],\n xAxisIndex: 0,\n yAxisIndex: 0,\n },\n {\n name: '\u7269\u4e1a\u8d39',\n type: 'bar',\n barWidth: '15',\n coordinates: [86.5283203125, 32.40966796875],\n data: [1, 1, 2, 3, 1],\n xAxisIndex: 1,\n yAxisIndex: 1,\n },\n {\n name: '\u6c34\u7535',\n type: 'bar',\n barWidth: '15',\n coordinates: [98.876953125, 35.74951171875],\n data: [1, 1, 2, 3, 1],\n xAxisIndex: 2,\n yAxisIndex: 2,\n },\n {\n name: '\u7f51\u7edc',\n type: 'bar',\n barWidth: '15',\n coordinates: [108.80859375, 23.44482421875],\n data: [1, 1, 2, 3, 1],\n xAxisIndex: 3,\n yAxisIndex: 3,\n },\n {\n name: '\u71c3\u6c14',\n type: 'bar',\n barWidth: '15',\n coordinates: [110.53450137499999, 38.44104525],\n data: [1, 1, 2, 3, 1],\n xAxisIndex: 4,\n yAxisIndex: 4,\n },\n ];\n\n series.forEach((item, index) => {\n const grid = {\n show: true,\n containLabel: false,\n borderWidth: 0,\n borderColor: '#fff',\n width: 150,\n height: 80,\n };\n option.grid.push(grid);\n option.xAxis.push({\n type: 'category',\n show: true,\n gridIndex: index,\n nameTextStyle: {\n color: '#3c3c3c',\n },\n axisLine: {\n show: false,\n onZero: false,\n },\n axisLabel: {\n show: false,\n interval: 0,\n rotate: -45,\n textStyle: {\n color: '#3c3c3c',\n fontSize: 10,\n },\n },\n axisTick: {\n show: false,\n },\n data: ['\u65b0\u8679\u6865', '\u4e2d\u5c71\u516c\u56ed', '\u8679\u6865', '\u9547\u5b81\u8def', '\u5929\u5c71\u53e4\u5317'],\n });\n\n option.yAxis.push({\n type: 'value',\n show: true,\n min: 0.001,\n splitLine: { show: false },\n axisLabel: {\n show: false,\n },\n axisLine: {\n show: false,\n onZero: false,\n },\n nameGap: '1',\n axisTick: {\n show: false,\n },\n nameTextStyle: {\n color: '#3c3c3c',\n fontSize: 14,\n },\n gridIndex: index,\n });\n option.series.push(item);\n });\n\n initChat(map, option);\n\n function resize(target) {}\n\n return {\n resize,\n }\n }\n\n useEffect(() => {\n const { resize } = init();\n\n return () => {\n };\n }, []);\n\n return (\n <div className=\"live-wrap\">\n <div ref={container} className=\"map-content\" />\n </div>\n );\n}\n"})})]})}function p(n={}){const{wrapper:e}={...(0,s.R)(),...n.components};return e?(0,o.jsx)(e,{...n,children:(0,o.jsx)(l,{...n})}):l(n)}},2036:(n,e,t)=>{t.d(e,{R:()=>r,x:()=>i});var o=t(7378);const s={},a=o.createContext(s);function r(n){const e=o.useContext(a);return o.useMemo((function(){return"function"==typeof n?n(e):{...e,...n}}),[e,n])}function i(n){let e;return e=n.disableParentContext?"function"==typeof n.components?n.components(s):n.components||s:r(n.components),o.createElement(a.Provider,{value:e},n.children)}}}]); \ No newline at end of file diff --git a/assets/js/6b84c56d.39fd6261.js b/assets/js/6b84c56d.1f2b34c2.js similarity index 98% rename from assets/js/6b84c56d.39fd6261.js rename to assets/js/6b84c56d.1f2b34c2.js index 1f5475c..9618888 100644 --- a/assets/js/6b84c56d.39fd6261.js +++ b/assets/js/6b84c56d.1f2b34c2.js @@ -1 +1 @@ -"use strict";(self.webpackChunkol_echarts_docs=self.webpackChunkol_echarts_docs||[]).push([[45],{2704:(n,e,t)=>{t.r(e),t.d(e,{assets:()=>c,contentTitle:()=>s,default:()=>p,frontMatter:()=>r,metadata:()=>i,toc:()=>l});var o=t(6106),a=t(2036);const r={id:"weibo-gl",title:"\u5fae\u535a\u7b7e\u5230\u6570\u636e\u70b9\u4eae\u4e2d\u56fd-WEBGL"},s=void 0,i={id:"playgrounds/weibo-gl",title:"\u5fae\u535a\u7b7e\u5230\u6570\u636e\u70b9\u4eae\u4e2d\u56fd-WEBGL",description:"\u793a\u4f8b",source:"@site/docs/playgrounds/weibo-gl.mdx",sourceDirName:"playgrounds",slug:"/playgrounds/weibo-gl",permalink:"/ol3Echarts/docs/playgrounds/weibo-gl",draft:!1,unlisted:!1,editUrl:"https://github.com/sakitam-fdd/ol3Echarts/edit/master/documents/docs/docs/playgrounds/weibo-gl.mdx",tags:[],version:"current",lastUpdatedBy:"sakitam-fdd",lastUpdatedAt:1730645386e3,frontMatter:{id:"weibo-gl",title:"\u5fae\u535a\u7b7e\u5230\u6570\u636e\u70b9\u4eae\u4e2d\u56fd-WEBGL"},sidebar:"docs",previous:{title:"\u5fae\u535a\u7b7e\u5230\u6570\u636e\u70b9\u4eae\u4e2d\u56fd",permalink:"/ol3Echarts/docs/playgrounds/weibo"},next:{title:"\u5168\u7403\u98ce\u5411",permalink:"/ol3Echarts/docs/playgrounds/wind"}},c={},l=[{value:"\u793a\u4f8b",id:"\u793a\u4f8b",level:3}];function d(n){const e={code:"code",h3:"h3",pre:"pre",...(0,a.R)(),...n.components};return(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)(e.h3,{id:"\u793a\u4f8b",children:"\u793a\u4f8b"}),"\n",(0,o.jsx)(e.pre,{children:(0,o.jsx)(e.code,{className:"language-jsx",metastring:"live",live:!0,children:"function render(props) {\n const container = useRef(null);\n\n const dataUrl = useBaseUrl('/json/weibo-gl.json');\n\n const initChat = (map, option) => {\n const chart = new EChartsLayer(option, {\n stopEvent: false,\n hideOnMoving: false,\n hideOnZooming: false,\n forcedPrecomposeRerender: true,\n });\n\n chart.appendTo(map);\n }\n\n const init = async () => {\n const map = new ol.Map({\n target: container.current,\n view: new ol.View({\n projection: 'EPSG:4326',\n zoom: 5,\n rotation: 0,\n center: [113.53450137499999, 34.44104525],\n }),\n layers: [\n new TileLayer({\n source: new XYZ({\n url: 'https://{a-c}.basemaps.cartocdn.com/dark_all/{z}/{x}/{y}.png',\n }),\n }),\n ],\n });\n\n const data = await fetch(dataUrl).then(res => res.json());\n\n const weiboData = data.map((serieData) => {\n let px = serieData[0] / 1000;\n let py = serieData[1] / 1000;\n const res = [[px, py]];\n for (let i = 2; i < serieData.length; i += 2) {\n const dx = serieData[i] / 1000;\n const dy = serieData[i + 1] / 1000;\n const x = px + dx;\n const y = py + dy;\n const ptx = parseFloat(x.toFixed(2));\n const pty = parseFloat(y.toFixed(2));\n res.push([ptx, pty, 1]);\n px = x;\n py = y;\n }\n return res;\n });\n\n const option = {\n title: {\n text: '\u5fae\u535a\u7b7e\u5230\u6570\u636e\u70b9\u4eae\u4e2d\u56fd',\n left: 'center',\n top: 'top',\n textStyle: {\n color: '#fff',\n },\n },\n tooltip: {},\n legend: {\n left: 'right',\n data: ['\u5f3a', '\u4e2d', '\u5f31'],\n textStyle: {\n color: '#ccc',\n },\n },\n series: [\n {\n name: '\u5f31',\n type: 'scatterGL',\n symbolSize: 1,\n itemStyle: {\n shadowBlur: 2,\n shadowColor: 'rgba(37, 140, 249, 0.8)',\n color: 'rgba(37, 140, 249, 0.8)',\n },\n data: weiboData[0],\n },\n {\n name: '\u4e2d',\n type: 'scatterGL',\n symbolSize: 1,\n itemStyle: {\n shadowBlur: 2,\n shadowColor: 'rgba(14, 241, 242, 0.8)',\n color: 'rgba(14, 241, 242, 0.8)',\n },\n data: weiboData[1],\n },\n {\n name: '\u5f3a',\n type: 'scatterGL',\n symbolSize: 1,\n itemStyle: {\n shadowBlur: 2,\n shadowColor: 'rgba(255, 255, 255, 0.8)',\n color: 'rgba(255, 255, 255, 0.8)',\n },\n data: weiboData[2],\n },\n ],\n };\n\n initChat(map, option);\n\n function resize(target) {}\n\n return {\n resize,\n }\n }\n\n useEffect(() => {\n const { resize } = init();\n\n return () => {\n };\n }, []);\n\n return (\n <div className=\"live-wrap\">\n <div ref={container} className=\"map-content\" />\n </div>\n );\n}\n"})})]})}function p(n={}){const{wrapper:e}={...(0,a.R)(),...n.components};return e?(0,o.jsx)(e,{...n,children:(0,o.jsx)(d,{...n})}):d(n)}},2036:(n,e,t)=>{t.d(e,{R:()=>s,x:()=>i});var o=t(7378);const a={},r=o.createContext(a);function s(n){const e=o.useContext(r);return o.useMemo((function(){return"function"==typeof n?n(e):{...e,...n}}),[e,n])}function i(n){let e;return e=n.disableParentContext?"function"==typeof n.components?n.components(a):n.components||a:s(n.components),o.createElement(r.Provider,{value:e},n.children)}}}]); \ No newline at end of file +"use strict";(self.webpackChunkol_echarts_docs=self.webpackChunkol_echarts_docs||[]).push([[45],{4614:(n,e,t)=>{t.r(e),t.d(e,{assets:()=>c,contentTitle:()=>s,default:()=>p,frontMatter:()=>r,metadata:()=>i,toc:()=>l});var o=t(6106),a=t(2036);const r={id:"weibo-gl",title:"\u5fae\u535a\u7b7e\u5230\u6570\u636e\u70b9\u4eae\u4e2d\u56fd-WEBGL"},s=void 0,i={id:"playgrounds/weibo-gl",title:"\u5fae\u535a\u7b7e\u5230\u6570\u636e\u70b9\u4eae\u4e2d\u56fd-WEBGL",description:"\u793a\u4f8b",source:"@site/docs/playgrounds/weibo-gl.mdx",sourceDirName:"playgrounds",slug:"/playgrounds/weibo-gl",permalink:"/ol3Echarts/docs/playgrounds/weibo-gl",draft:!1,unlisted:!1,editUrl:"https://github.com/sakitam-fdd/ol3Echarts/edit/master/documents/docs/docs/playgrounds/weibo-gl.mdx",tags:[],version:"current",lastUpdatedBy:"sakitam-fdd",lastUpdatedAt:1730645386e3,frontMatter:{id:"weibo-gl",title:"\u5fae\u535a\u7b7e\u5230\u6570\u636e\u70b9\u4eae\u4e2d\u56fd-WEBGL"},sidebar:"docs",previous:{title:"\u5fae\u535a\u7b7e\u5230\u6570\u636e\u70b9\u4eae\u4e2d\u56fd",permalink:"/ol3Echarts/docs/playgrounds/weibo"},next:{title:"\u5168\u7403\u98ce\u5411",permalink:"/ol3Echarts/docs/playgrounds/wind"}},c={},l=[{value:"\u793a\u4f8b",id:"\u793a\u4f8b",level:3}];function d(n){const e={code:"code",h3:"h3",pre:"pre",...(0,a.R)(),...n.components};return(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)(e.h3,{id:"\u793a\u4f8b",children:"\u793a\u4f8b"}),"\n",(0,o.jsx)(e.pre,{children:(0,o.jsx)(e.code,{className:"language-jsx",metastring:"live",live:!0,children:"function render(props) {\n const container = useRef(null);\n\n const dataUrl = useBaseUrl('/json/weibo-gl.json');\n\n const initChat = (map, option) => {\n const chart = new EChartsLayer(option, {\n stopEvent: false,\n hideOnMoving: false,\n hideOnZooming: false,\n forcedPrecomposeRerender: true,\n });\n\n chart.appendTo(map);\n }\n\n const init = async () => {\n const map = new ol.Map({\n target: container.current,\n view: new ol.View({\n projection: 'EPSG:4326',\n zoom: 5,\n rotation: 0,\n center: [113.53450137499999, 34.44104525],\n }),\n layers: [\n new TileLayer({\n source: new XYZ({\n url: 'https://{a-c}.basemaps.cartocdn.com/dark_all/{z}/{x}/{y}.png',\n }),\n }),\n ],\n });\n\n const data = await fetch(dataUrl).then(res => res.json());\n\n const weiboData = data.map((serieData) => {\n let px = serieData[0] / 1000;\n let py = serieData[1] / 1000;\n const res = [[px, py]];\n for (let i = 2; i < serieData.length; i += 2) {\n const dx = serieData[i] / 1000;\n const dy = serieData[i + 1] / 1000;\n const x = px + dx;\n const y = py + dy;\n const ptx = parseFloat(x.toFixed(2));\n const pty = parseFloat(y.toFixed(2));\n res.push([ptx, pty, 1]);\n px = x;\n py = y;\n }\n return res;\n });\n\n const option = {\n title: {\n text: '\u5fae\u535a\u7b7e\u5230\u6570\u636e\u70b9\u4eae\u4e2d\u56fd',\n left: 'center',\n top: 'top',\n textStyle: {\n color: '#fff',\n },\n },\n tooltip: {},\n legend: {\n left: 'right',\n data: ['\u5f3a', '\u4e2d', '\u5f31'],\n textStyle: {\n color: '#ccc',\n },\n },\n series: [\n {\n name: '\u5f31',\n type: 'scatterGL',\n symbolSize: 1,\n itemStyle: {\n shadowBlur: 2,\n shadowColor: 'rgba(37, 140, 249, 0.8)',\n color: 'rgba(37, 140, 249, 0.8)',\n },\n data: weiboData[0],\n },\n {\n name: '\u4e2d',\n type: 'scatterGL',\n symbolSize: 1,\n itemStyle: {\n shadowBlur: 2,\n shadowColor: 'rgba(14, 241, 242, 0.8)',\n color: 'rgba(14, 241, 242, 0.8)',\n },\n data: weiboData[1],\n },\n {\n name: '\u5f3a',\n type: 'scatterGL',\n symbolSize: 1,\n itemStyle: {\n shadowBlur: 2,\n shadowColor: 'rgba(255, 255, 255, 0.8)',\n color: 'rgba(255, 255, 255, 0.8)',\n },\n data: weiboData[2],\n },\n ],\n };\n\n initChat(map, option);\n\n function resize(target) {}\n\n return {\n resize,\n }\n }\n\n useEffect(() => {\n const { resize } = init();\n\n return () => {\n };\n }, []);\n\n return (\n <div className=\"live-wrap\">\n <div ref={container} className=\"map-content\" />\n </div>\n );\n}\n"})})]})}function p(n={}){const{wrapper:e}={...(0,a.R)(),...n.components};return e?(0,o.jsx)(e,{...n,children:(0,o.jsx)(d,{...n})}):d(n)}},2036:(n,e,t)=>{t.d(e,{R:()=>s,x:()=>i});var o=t(7378);const a={},r=o.createContext(a);function s(n){const e=o.useContext(r);return o.useMemo((function(){return"function"==typeof n?n(e):{...e,...n}}),[e,n])}function i(n){let e;return e=n.disableParentContext?"function"==typeof n.components?n.components(a):n.components||a:s(n.components),o.createElement(r.Provider,{value:e},n.children)}}}]); \ No newline at end of file diff --git a/assets/js/727fe140.44b16669.js b/assets/js/727fe140.44b16669.js new file mode 100644 index 0000000..24c3f82 --- /dev/null +++ b/assets/js/727fe140.44b16669.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunkol_echarts_docs=self.webpackChunkol_echarts_docs||[]).push([[61],{792:(n,e,t)=>{t.r(e),t.d(e,{assets:()=>l,contentTitle:()=>s,default:()=>u,frontMatter:()=>a,metadata:()=>i,toc:()=>c});var r=t(6106),o=t(2036);const a={id:"lines-airline",title:"\u5168\u7403\u98de\u673a\u822a\u7ebf"},s=void 0,i={id:"playgrounds/lines-airline",title:"\u5168\u7403\u98de\u673a\u822a\u7ebf",description:"\u793a\u4f8b",source:"@site/docs/playgrounds/lines-airline.mdx",sourceDirName:"playgrounds",slug:"/playgrounds/lines-airline",permalink:"/ol3Echarts/docs/playgrounds/lines-airline",draft:!1,unlisted:!1,editUrl:"https://github.com/sakitam-fdd/ol3Echarts/edit/master/documents/docs/docs/playgrounds/lines-airline.mdx",tags:[],version:"current",lastUpdatedBy:"sakitam-fdd",lastUpdatedAt:1730645386e3,frontMatter:{id:"lines-airline",title:"\u5168\u7403\u98de\u673a\u822a\u7ebf"},sidebar:"docs",previous:{title:"\u5e7f\u5dde\u4eba\u53e3\u8fc1\u5f99",permalink:"/ol3Echarts/docs/playgrounds/guangzhou-migration-map"},next:{title:"\u5fae\u535a\u7b7e\u5230\u6570\u636e\u70b9\u4eae\u4e2d\u56fd",permalink:"/ol3Echarts/docs/playgrounds/weibo"}},l={},c=[{value:"\u793a\u4f8b",id:"\u793a\u4f8b",level:3}];function d(n){const e={code:"code",h3:"h3",pre:"pre",...(0,o.R)(),...n.components};return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(e.h3,{id:"\u793a\u4f8b",children:"\u793a\u4f8b"}),"\n",(0,r.jsx)(e.pre,{children:(0,r.jsx)(e.code,{className:"language-jsx",metastring:"live",live:!0,children:"function render(props) {\n const container = useRef(null);\n\n const dataUrl = useBaseUrl('/json/flights.json');\n\n const initChat = (map, option) => {\n const chart = new EChartsLayer(option, {\n stopEvent: false,\n hideOnMoving: false,\n hideOnZooming: false,\n forcedPrecomposeRerender: true,\n });\n\n chart.appendTo(map);\n }\n\n const init = async () => {\n const map = new ol.Map({\n target: container.current,\n view: new ol.View({\n projection: 'EPSG:4326',\n zoom: 5,\n rotation: 0,\n center: [113.53450137499999, 34.44104525],\n }),\n layers: [\n new TileLayer({\n source: new XYZ({\n url: 'https://{a-c}.basemaps.cartocdn.com/dark_all/{z}/{x}/{y}.png',\n }),\n }),\n ],\n });\n\n const data = await fetch(dataUrl).then(res => res.json());\n\n function getAirportCoord (idx) {\n return [data.airports[idx][3], data.airports[idx][4]];\n }\n\n const routes = data.routes.map(function (airline) {\n return [\n getAirportCoord(airline[1]),\n getAirportCoord(airline[2])\n ];\n });\n\n const option = {\n title: {\n text: '\u822a\u7ebf',\n left: 'center',\n textStyle: {\n color: '#eee'\n }\n },\n backgroundColor: 'transparent',\n tooltip: {\n formatter: function (param) {\n var route = data.routes[param.dataIndex];\n return data.airports[route[1]][1] + ' > ' + data.airports[route[2]][1];\n }\n },\n series: [{\n type: 'lines',\n data: routes,\n large: true,\n largeThreshold: 100,\n lineStyle: {\n opacity: 0.05,\n width: 0.5,\n curveness: 0.3\n },\n // \u8bbe\u7f6e\u6df7\u5408\u6a21\u5f0f\u4e3a\u53e0\u52a0\n blendMode: 'lighter'\n }]\n };\n\n initChat(map, option);\n\n function resize(target) {}\n\n return {\n resize,\n }\n }\n\n useEffect(() => {\n const { resize } = init();\n\n return () => {\n };\n }, []);\n\n return (\n <div className=\"live-wrap\">\n <div ref={container} className=\"map-content\" />\n </div>\n );\n}\n"})})]})}function u(n={}){const{wrapper:e}={...(0,o.R)(),...n.components};return e?(0,r.jsx)(e,{...n,children:(0,r.jsx)(d,{...n})}):d(n)}},2036:(n,e,t)=>{t.d(e,{R:()=>s,x:()=>i});var r=t(7378);const o={},a=r.createContext(o);function s(n){const e=r.useContext(a);return r.useMemo((function(){return"function"==typeof n?n(e):{...e,...n}}),[e,n])}function i(n){let e;return e=n.disableParentContext?"function"==typeof n.components?n.components(o):n.components||o:s(n.components),r.createElement(a.Provider,{value:e},n.children)}}}]); \ No newline at end of file diff --git a/assets/js/727fe140.e390c19d.js b/assets/js/727fe140.e390c19d.js deleted file mode 100644 index 91623ea..0000000 --- a/assets/js/727fe140.e390c19d.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunkol_echarts_docs=self.webpackChunkol_echarts_docs||[]).push([[61],{8806:(n,e,t)=>{t.r(e),t.d(e,{assets:()=>l,contentTitle:()=>s,default:()=>u,frontMatter:()=>a,metadata:()=>i,toc:()=>c});var r=t(6106),o=t(2036);const a={id:"lines-airline",title:"\u5168\u7403\u98de\u673a\u822a\u7ebf"},s=void 0,i={id:"playgrounds/lines-airline",title:"\u5168\u7403\u98de\u673a\u822a\u7ebf",description:"\u793a\u4f8b",source:"@site/docs/playgrounds/lines-airline.mdx",sourceDirName:"playgrounds",slug:"/playgrounds/lines-airline",permalink:"/ol3Echarts/docs/playgrounds/lines-airline",draft:!1,unlisted:!1,editUrl:"https://github.com/sakitam-fdd/ol3Echarts/edit/master/documents/docs/docs/playgrounds/lines-airline.mdx",tags:[],version:"current",lastUpdatedBy:"sakitam-fdd",lastUpdatedAt:1730645386e3,frontMatter:{id:"lines-airline",title:"\u5168\u7403\u98de\u673a\u822a\u7ebf"},sidebar:"docs",previous:{title:"\u5e7f\u5dde\u4eba\u53e3\u8fc1\u5f99",permalink:"/ol3Echarts/docs/playgrounds/guangzhou-migration-map"},next:{title:"\u5fae\u535a\u7b7e\u5230\u6570\u636e\u70b9\u4eae\u4e2d\u56fd",permalink:"/ol3Echarts/docs/playgrounds/weibo"}},l={},c=[{value:"\u793a\u4f8b",id:"\u793a\u4f8b",level:3}];function d(n){const e={code:"code",h3:"h3",pre:"pre",...(0,o.R)(),...n.components};return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(e.h3,{id:"\u793a\u4f8b",children:"\u793a\u4f8b"}),"\n",(0,r.jsx)(e.pre,{children:(0,r.jsx)(e.code,{className:"language-jsx",metastring:"live",live:!0,children:"function render(props) {\n const container = useRef(null);\n\n const dataUrl = useBaseUrl('/json/flights.json');\n\n const initChat = (map, option) => {\n const chart = new EChartsLayer(option, {\n stopEvent: false,\n hideOnMoving: false,\n hideOnZooming: false,\n forcedPrecomposeRerender: true,\n });\n\n chart.appendTo(map);\n }\n\n const init = async () => {\n const map = new ol.Map({\n target: container.current,\n view: new ol.View({\n projection: 'EPSG:4326',\n zoom: 5,\n rotation: 0,\n center: [113.53450137499999, 34.44104525],\n }),\n layers: [\n new TileLayer({\n source: new XYZ({\n url: 'https://{a-c}.basemaps.cartocdn.com/dark_all/{z}/{x}/{y}.png',\n }),\n }),\n ],\n });\n\n const data = await fetch(dataUrl).then(res => res.json());\n\n function getAirportCoord (idx) {\n return [data.airports[idx][3], data.airports[idx][4]];\n }\n\n const routes = data.routes.map(function (airline) {\n return [\n getAirportCoord(airline[1]),\n getAirportCoord(airline[2])\n ];\n });\n\n const option = {\n title: {\n text: '\u822a\u7ebf',\n left: 'center',\n textStyle: {\n color: '#eee'\n }\n },\n backgroundColor: 'transparent',\n tooltip: {\n formatter: function (param) {\n var route = data.routes[param.dataIndex];\n return data.airports[route[1]][1] + ' > ' + data.airports[route[2]][1];\n }\n },\n series: [{\n type: 'lines',\n data: routes,\n large: true,\n largeThreshold: 100,\n lineStyle: {\n opacity: 0.05,\n width: 0.5,\n curveness: 0.3\n },\n // \u8bbe\u7f6e\u6df7\u5408\u6a21\u5f0f\u4e3a\u53e0\u52a0\n blendMode: 'lighter'\n }]\n };\n\n initChat(map, option);\n\n function resize(target) {}\n\n return {\n resize,\n }\n }\n\n useEffect(() => {\n const { resize } = init();\n\n return () => {\n };\n }, []);\n\n return (\n <div className=\"live-wrap\">\n <div ref={container} className=\"map-content\" />\n </div>\n );\n}\n"})})]})}function u(n={}){const{wrapper:e}={...(0,o.R)(),...n.components};return e?(0,r.jsx)(e,{...n,children:(0,r.jsx)(d,{...n})}):d(n)}},2036:(n,e,t)=>{t.d(e,{R:()=>s,x:()=>i});var r=t(7378);const o={},a=r.createContext(o);function s(n){const e=r.useContext(a);return r.useMemo((function(){return"function"==typeof n?n(e):{...e,...n}}),[e,n])}function i(n){let e;return e=n.disableParentContext?"function"==typeof n.components?n.components(o):n.components||o:s(n.components),r.createElement(a.Provider,{value:e},n.children)}}}]); \ No newline at end of file diff --git a/assets/js/728.0a8fbd7e.js b/assets/js/728.0a8fbd7e.js new file mode 100644 index 0000000..d517ed8 --- /dev/null +++ b/assets/js/728.0a8fbd7e.js @@ -0,0 +1,2 @@ +/*! For license information please see 728.0a8fbd7e.js.LICENSE.txt */ +(self.webpackChunkol_echarts_docs=self.webpackChunkol_echarts_docs||[]).push([[728],{6455:function(t,e,n){!function(t,e,n,i){"use strict";const r=0,o=1,a=2,s=3,l=4,h=-1;class c{constructor({file:t,sourceRoot:n}={}){this._names=new e.SetArray,this._sources=new e.SetArray,this._sourcesContent=[],this._mappings=[],this.file=t,this.sourceRoot=n,this._ignoreList=new e.SetArray}}function u(t){return t}function d(t,e,n,i,r,o,a,s){return w(!1,t,e,n,i,r,o,a,s)}function p(t,e){return k(!1,t,e)}const f=(t,e,n,i,r,o,a,s)=>w(!0,t,e,n,i,r,o,a,s),g=(t,e)=>k(!0,t,e);function m(t,n,i){const{_sources:r,_sourcesContent:o}=u(t);o[e.put(r,n)]=i}function v(t,n,i=!0){const{_sources:r,_sourcesContent:o,_ignoreList:a}=u(t),s=e.put(r,n);s===o.length&&(o[s]=null),i?e.put(a,s):e.remove(a,s)}function y(t){const{_mappings:e,_sources:n,_sourcesContent:i,_names:r,_ignoreList:o}=u(t);return A(e),{version:3,file:t.file||void 0,names:r.array,sourceRoot:t.sourceRoot||void 0,sources:n.array,sourcesContent:i,mappings:e,ignoreList:o.array}}function _(t){const e=y(t);return Object.assign(Object.assign({},e),{mappings:n.encode(e.mappings)})}function x(t){const e=new i.TraceMap(t),n=new c({file:e.file,sourceRoot:e.sourceRoot});return C(u(n)._names,e.names),C(u(n)._sources,e.sources),u(n)._sourcesContent=e.sourcesContent||e.sources.map((()=>null)),u(n)._mappings=i.decodedMappings(e),e.ignoreList&&C(u(n)._ignoreList,e.ignoreList),n}function b(t){const e=[],{_mappings:n,_sources:i,_names:h}=u(t);for(let c=0;c<n.length;c++){const t=n[c];for(let n=0;n<t.length;n++){const u=t[n],d={line:c+1,column:u[r]};let p,f,g;1!==u.length&&(p=i.array[u[o]],f={line:u[a]+1,column:u[s]},5===u.length&&(g=h.array[u[l]])),e.push({generated:d,source:p,original:f,name:g})}}return e}function w(t,n,i,r,o,a,s,l,c){const{_mappings:d,_sources:p,_sourcesContent:f,_names:g}=u(n),m=S(d,i),v=T(m,r);if(!o){if(t&&I(m,v))return;return M(m,v,[r])}const y=e.put(p,o),_=l?e.put(g,l):h;if(y===f.length&&(f[y]=null!=c?c:null),!t||!E(m,v,y,a,s,_))return M(m,v,l?[r,y,a,s,_]:[r,y,a,s])}function S(t,e){for(let n=t.length;n<=e;n++)t[n]=[];return t[e]}function T(t,e){let n=t.length;for(let i=n-1;i>=0&&!(e>=t[i][r]);n=i--);return n}function M(t,e,n){for(let i=t.length;i>e;i--)t[i]=t[i-1];t[e]=n}function A(t){const{length:e}=t;let n=e;for(let i=n-1;i>=0&&!(t[i].length>0);n=i,i--);n<e&&(t.length=n)}function C(t,n){for(let i=0;i<n.length;i++)e.put(t,n[i])}function I(t,e){return 0===e||1===t[e-1].length}function E(t,e,n,i,r,c){if(0===e)return!1;const u=t[e-1];return 1!==u.length&&n===u[o]&&i===u[a]&&r===u[s]&&c===(5===u.length?u[l]:h)}function k(t,e,n){const{generated:i,source:r,original:o,name:a,content:s}=n;return r?w(t,e,i.line-1,i.column,r,o.line-1,o.column,a,s):w(t,e,i.line-1,i.column,null,null,null,null,null)}t.GenMapping=c,t.addMapping=p,t.addSegment=d,t.allMappings=b,t.fromMap=x,t.maybeAddMapping=g,t.maybeAddSegment=f,t.setIgnore=v,t.setSourceContent=m,t.toDecodedMap=y,t.toEncodedMap=_,Object.defineProperty(t,"__esModule",{value:!0})}(e,n(572),n(1184),n(9544))},1699:function(t){t.exports=function(){"use strict";const t=/^[\w+.-]+:\/\//,e=/^([\w+.-]+:)\/\/([^@/#?]*@)?([^:/#?]*)(:\d+)?(\/[^#?]*)?(\?[^#]*)?(#.*)?/,n=/^file:(?:\/\/((?![a-z]:)[^/#?]*)?)?(\/?[^#?]*)(\?[^#]*)?(#.*)?/i;function i(e){return t.test(e)}function r(t){return t.startsWith("//")}function o(t){return t.startsWith("/")}function a(t){return t.startsWith("file:")}function s(t){return/^[.?#]/.test(t)}function l(t){const n=e.exec(t);return c(n[1],n[2]||"",n[3],n[4]||"",n[5]||"/",n[6]||"",n[7]||"")}function h(t){const e=n.exec(t),i=e[2];return c("file:","",e[1]||"","",o(i)?i:"/"+i,e[3]||"",e[4]||"")}function c(t,e,n,i,r,o,a){return{scheme:t,user:e,host:n,port:i,path:r,query:o,hash:a,type:7}}function u(t){if(r(t)){const e=l("http:"+t);return e.scheme="",e.type=6,e}if(o(t)){const e=l("http://foo.com"+t);return e.scheme="",e.host="",e.type=5,e}if(a(t))return h(t);if(i(t))return l(t);const e=l("http://foo.com/"+t);return e.scheme="",e.host="",e.type=t?t.startsWith("?")?3:t.startsWith("#")?2:4:1,e}function d(t){if(t.endsWith("/.."))return t;const e=t.lastIndexOf("/");return t.slice(0,e+1)}function p(t,e){f(e,e.type),"/"===t.path?t.path=e.path:t.path=d(e.path)+t.path}function f(t,e){const n=e<=4,i=t.path.split("/");let r=1,o=0,a=!1;for(let l=1;l<i.length;l++){const t=i[l];t?(a=!1,"."!==t&&(".."!==t?(i[r++]=t,o++):o?(a=!0,o--,r--):n&&(i[r++]=t))):a=!0}let s="";for(let l=1;l<r;l++)s+="/"+i[l];(!s||a&&!s.endsWith("/.."))&&(s+="/"),t.path=s}function g(t,e){if(!t&&!e)return"";const n=u(t);let i=n.type;if(e&&7!==i){const t=u(e),r=t.type;switch(i){case 1:n.hash=t.hash;case 2:n.query=t.query;case 3:case 4:p(n,t);case 5:n.user=t.user,n.host=t.host,n.port=t.port;case 6:n.scheme=t.scheme}r>i&&(i=r)}f(n,i);const r=n.query+n.hash;switch(i){case 2:case 3:return r;case 4:{const i=n.path.slice(1);return i?s(e||t)&&!s(i)?"./"+i+r:i+r:r||"."}case 5:return n.path+r;default:return n.scheme+"//"+n.user+n.host+n.port+n.path+r}}return g}()},572:function(t,e){!function(t){"use strict";class e{constructor(){this._indexes={__proto__:null},this.array=[]}}function n(t){return t}function i(t,e){return n(t)._indexes[e]}function r(t,e){const r=i(t,e);if(void 0!==r)return r;const{array:o,_indexes:a}=n(t),s=o.push(e);return a[e]=s-1}function o(t){const{array:e,_indexes:i}=n(t);0!==e.length&&(i[e.pop()]=void 0)}function a(t,e){const r=i(t,e);if(void 0===r)return;const{array:o,_indexes:a}=n(t);for(let n=r+1;n<o.length;n++){const t=o[n];o[n-1]=t,a[t]--}a[e]=void 0,o.pop()}t.SetArray=e,t.get=i,t.pop=o,t.put=r,t.remove=a,Object.defineProperty(t,"__esModule",{value:!0})}(e)},1184:function(t,e){!function(t){"use strict";const e=",".charCodeAt(0),n=";".charCodeAt(0),i="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",r=new Uint8Array(64),o=new Uint8Array(128);for(let M=0;M<i.length;M++){const t=i.charCodeAt(M);r[M]=t,o[t]=M}function a(t,e){let n=0,i=0,r=0;do{const e=t.next();r=o[e],n|=(31&r)<<i,i+=5}while(32&r);const a=1&n;return n>>>=1,a&&(n=-2147483648|-n),e+n}function s(t,e,n){let i=e-n;i=i<0?-i<<1|1:i<<1;do{let e=31&i;i>>>=5,i>0&&(e|=32),t.write(r[e])}while(i>0);return e}function l(t,n){return!(t.pos>=n)&&t.peek()!==e}const h=16384,c="undefined"!=typeof TextDecoder?new TextDecoder:"undefined"!=typeof Buffer?{decode:t=>Buffer.from(t.buffer,t.byteOffset,t.byteLength).toString()}:{decode(t){let e="";for(let n=0;n<t.length;n++)e+=String.fromCharCode(t[n]);return e}};class u{constructor(){this.pos=0,this.out="",this.buffer=new Uint8Array(h)}write(t){const{buffer:e}=this;e[this.pos++]=t,this.pos===h&&(this.out+=c.decode(e),this.pos=0)}flush(){const{buffer:t,out:e,pos:n}=this;return n>0?e+c.decode(t.subarray(0,n)):e}}class d{constructor(t){this.pos=0,this.buffer=t}next(){return this.buffer.charCodeAt(this.pos++)}peek(){return this.buffer.charCodeAt(this.pos)}indexOf(t){const{buffer:e,pos:n}=this,i=e.indexOf(t,n);return-1===i?e.length:i}}const p=[];function f(t){const{length:e}=t,n=new d(t),i=[],r=[];let o=0;for(;n.pos<e;n.pos++){o=a(n,o);const t=a(n,0);if(!l(n,e)){const e=r.pop();e[2]=o,e[3]=t;continue}const s=a(n,0),h=1&a(n,0)?[o,t,0,0,s,a(n,0)]:[o,t,0,0,s];let c=p;if(l(n,e)){c=[];do{const t=a(n,0);c.push(t)}while(l(n,e))}h.vars=c,i.push(h),r.push(h)}return i}function g(t){const e=new u;for(let n=0;n<t.length;)n=m(t,n,e,[0]);return e.flush()}function m(t,n,i,r){const o=t[n],{0:a,1:l,2:h,3:c,4:u,vars:d}=o;n>0&&i.write(e),r[0]=s(i,a,r[0]),s(i,l,0),s(i,u,0),s(i,6===o.length?1:0,0),6===o.length&&s(i,o[5],0);for(const e of d)s(i,e,0);for(n++;n<t.length;){const e=t[n],{0:o,1:a}=e;if(o>h||o===h&&a>=c)break;n=m(t,n,i,r)}return i.write(e),r[0]=s(i,h,r[0]),s(i,c,0),n}function v(t){const{length:e}=t,n=new d(t),i=[],r=[];let o=0,s=0,h=0,c=0,u=0,f=0,g=0,m=0;do{const t=n.indexOf(";");let e=0;for(;n.pos<t;n.pos++){if(e=a(n,e),!l(n,t)){const t=r.pop();t[2]=o,t[3]=e;continue}const d=a(n,0),v=2&d,y=4&d;let _,x=null,b=p;if(1&d){const t=a(n,s);h=a(n,s===t?h:0),s=t,_=[o,e,0,0,t,h]}else _=[o,e,0,0];if(_.isScope=!!y,v){const t=c,e=u;c=a(n,c);const i=t===c;u=a(n,i?u:0),f=a(n,i&&e===u?f:0),x=[c,u,f]}if(_.callsite=x,l(n,t)){b=[];do{g=o,m=e;const t=a(n,0);let i;if(t<-1){i=[[a(n,0)]];for(let e=-1;e>t;e--){const t=g;g=a(n,g),m=a(n,g===t?m:0);const e=a(n,0);i.push([e,g,m])}}else i=[[t]];b.push(i)}while(l(n,t))}_.bindings=b,i.push(_),r.push(_)}o++,n.pos=t+1}while(n.pos<e);return i}function y(t){if(0===t.length)return"";const e=new u;for(let n=0;n<t.length;)n=_(t,n,e,[0,0,0,0,0,0,0]);return e.flush()}function _(t,n,i,r){const o=t[n],{0:a,1:l,2:h,3:c,isScope:u,callsite:d,bindings:p}=o;if(r[0]<a?(x(i,r[0],a),r[0]=a,r[1]=0):n>0&&i.write(e),r[1]=s(i,o[1],r[1]),s(i,(6===o.length?1:0)|(d?2:0)|(u?4:0),0),6===o.length){const{4:t,5:e}=o;t!==r[2]&&(r[3]=0),r[2]=s(i,t,r[2]),r[3]=s(i,e,r[3])}if(d){const{0:t,1:e,2:n}=o.callsite;t!==r[4]?(r[5]=0,r[6]=0):e!==r[5]&&(r[6]=0),r[4]=s(i,t,r[4]),r[5]=s(i,e,r[5]),r[6]=s(i,n,r[6])}if(p)for(const e of p){e.length>1&&s(i,-e.length,0),s(i,e[0][0],0);let t=a,n=l;for(let r=1;r<e.length;r++){const o=e[r];t=s(i,o[1],t),n=s(i,o[2],n),s(i,o[0],0)}}for(n++;n<t.length;){const e=t[n],{0:o,1:a}=e;if(o>h||o===h&&a>=c)break;n=_(t,n,i,r)}return r[0]<h?(x(i,r[0],h),r[0]=h,r[1]=0):i.write(e),r[1]=s(i,c,r[1]),n}function x(t,e,i){do{t.write(n)}while(++e<i)}function b(t){const{length:e}=t,n=new d(t),i=[];let r=0,o=0,s=0,h=0,c=0;do{const t=n.indexOf(";"),e=[];let u=!0,d=0;for(r=0;n.pos<t;){let i;r=a(n,r),r<d&&(u=!1),d=r,l(n,t)?(o=a(n,o),s=a(n,s),h=a(n,h),l(n,t)?(c=a(n,c),i=[r,o,s,h,c]):i=[r,o,s,h]):i=[r],e.push(i),n.pos++}u||w(e),i.push(e),n.pos=t+1}while(n.pos<=e);return i}function w(t){t.sort(S)}function S(t,e){return t[0]-e[0]}function T(t){const i=new u;let r=0,o=0,a=0,l=0;for(let h=0;h<t.length;h++){const c=t[h];if(h>0&&i.write(n),0===c.length)continue;let u=0;for(let t=0;t<c.length;t++){const n=c[t];t>0&&i.write(e),u=s(i,n[0],u),1!==n.length&&(r=s(i,n[1],r),o=s(i,n[2],o),a=s(i,n[3],a),4!==n.length&&(l=s(i,n[4],l)))}}return i.flush()}t.decode=b,t.decodeGeneratedRanges=v,t.decodeOriginalScopes=f,t.encode=T,t.encodeGeneratedRanges=y,t.encodeOriginalScopes=g,Object.defineProperty(t,"__esModule",{value:!0})}(e)},9544:function(t,e,n){!function(t,e,n){"use strict";function i(t,e){return e&&!e.endsWith("/")&&(e+="/"),n(t,e)}function r(t){if(!t)return"";const e=t.lastIndexOf("/");return t.slice(0,e+1)}const o=0,a=1,s=2,l=3,h=4,c=1,u=2;function d(t,e){const n=p(t,0);if(n===t.length)return t;e||(t=t.slice());for(let i=n;i<t.length;i=p(t,i+1))t[i]=g(t[i],e);return t}function p(t,e){for(let n=e;n<t.length;n++)if(!f(t[n]))return n;return t.length}function f(t){for(let e=1;e<t.length;e++)if(t[e][o]<t[e-1][o])return!1;return!0}function g(t,e){return e||(t=t.slice()),t.sort(m)}function m(t,e){return t[o]-e[o]}let v=!1;function y(t,e,n,i){for(;n<=i;){const r=n+(i-n>>1),a=t[r][o]-e;if(0===a)return v=!0,r;a<0?n=r+1:i=r-1}return v=!1,n-1}function _(t,e,n){for(let i=n+1;i<t.length&&t[i][o]===e;n=i++);return n}function x(t,e,n){for(let i=n-1;i>=0&&t[i][o]===e;n=i--);return n}function b(){return{lastKey:-1,lastNeedle:-1,lastIndex:-1}}function w(t,e,n,i){const{lastKey:r,lastNeedle:a,lastIndex:s}=n;let l=0,h=t.length-1;if(i===r){if(e===a)return v=-1!==s&&t[s][o]===e,s;e>=a?l=-1===s?0:s:h=s}return n.lastKey=i,n.lastNeedle=e,n.lastIndex=y(t,e,l,h)}function S(t,e){const n=e.map(M);for(let i=0;i<t.length;i++){const r=t[i];for(let t=0;t<r.length;t++){const h=r[t];if(1===h.length)continue;const c=h[a],u=h[s],d=h[l],p=n[c],f=p[u]||(p[u]=[]),g=e[c];let m=_(f,d,w(f,d,g,u));g.lastIndex=++m,T(f,m,[d,i,h[o]])}}return n}function T(t,e,n){for(let i=t.length;i>e;i--)t[i]=t[i-1];t[e]=n}function M(){return{__proto__:null}}const A=function(t,e){const n=C(t);if(!("sections"in n))return new N(n,e);const i=[],r=[],o=[],a=[],s=[];return I(n,e,i,r,o,a,s,0,0,1/0,1/0),Y({version:3,file:n.file,names:a,sources:r,sourcesContent:o,mappings:i,ignoreList:s})};function C(t){return"string"==typeof t?JSON.parse(t):t}function I(t,e,n,i,r,o,a,s,l,h,c){const{sections:u}=t;for(let d=0;d<u.length;d++){const{map:t,offset:p}=u[d];let f=h,g=c;if(d+1<u.length){const t=u[d+1].offset;f=Math.min(h,s+t.line),f===h?g=Math.min(c,l+t.column):f<h&&(g=l+t.column)}E(t,e,n,i,r,o,a,s+p.line,l+p.column,f,g)}}function E(t,e,n,i,r,c,u,d,p,f,g){const m=C(t);if("sections"in m)return I(...arguments);const v=new N(m,e),y=i.length,_=c.length,x=z(v),{resolvedSources:b,sourcesContent:w,ignoreList:S}=v;if(k(i,b),k(c,v.names),w)k(r,w);else for(let o=0;o<b.length;o++)r.push(null);if(S)for(let o=0;o<S.length;o++)u.push(S[o]+y);for(let T=0;T<x.length;T++){const t=d+T;if(t>f)return;const e=L(n,t),i=0===T?p:0,r=x[T];for(let n=0;n<r.length;n++){const c=r[n],u=i+c[o];if(t===f&&u>=g)return;if(1===c.length){e.push([u]);continue}const d=y+c[a],p=c[s],m=c[l];e.push(4===c.length?[u,d,p,m]:[u,d,p,m,_+c[h]])}}}function k(t,e){for(let n=0;n<e.length;n++)t.push(e[n])}function L(t,e){for(let n=t.length;n<=e;n++)t[n]=[];return t[e]}const D="`line` must be greater than 0 (lines start at line 1)",P="`column` must be greater than or equal to 0 (columns start at column 0)",R=-1,O=1;class N{constructor(t,e){const n="string"==typeof t;if(!n&&t._decodedMemo)return t;const o=n?JSON.parse(t):t,{version:a,file:s,names:l,sourceRoot:h,sources:c,sourcesContent:u}=o;this.version=a,this.file=s,this.names=l||[],this.sourceRoot=h,this.sources=c,this.sourcesContent=u,this.ignoreList=o.ignoreList||o.x_google_ignoreList||void 0;const p=i(h||"",r(e));this.resolvedSources=c.map((t=>i(t||"",p)));const{mappings:f}=o;"string"==typeof f?(this._encoded=f,this._decoded=void 0):(this._encoded=void 0,this._decoded=d(f,n)),this._decodedMemo=b(),this._bySources=void 0,this._bySourceMemos=void 0}}function F(t){return t}function B(t){var n,i;return null!==(n=(i=F(t))._encoded)&&void 0!==n?n:i._encoded=e.encode(F(t)._decoded)}function z(t){var n;return(n=F(t))._decoded||(n._decoded=e.decode(F(t)._encoded))}function G(t,e,n){const i=z(t);if(e>=i.length)return null;const r=i[e],o=tt(r,F(t)._decodedMemo,e,n,O);return-1===o?null:r[o]}function V(t,e){let{line:n,column:i,bias:r}=e;if(n--,n<0)throw new Error(D);if(i<0)throw new Error(P);const o=z(t);if(n>=o.length)return J(null,null,null,null);const c=o[n],u=tt(c,F(t)._decodedMemo,n,i,r||O);if(-1===u)return J(null,null,null,null);const d=c[u];if(1===d.length)return J(null,null,null,null);const{names:p,resolvedSources:f}=t;return J(f[d[a]],d[s]+1,d[l],5===d.length?p[d[h]]:null)}function j(t,e){const{source:n,line:i,column:r,bias:o}=e;return nt(t,n,i,r,o||O,!1)}function H(t,e){const{source:n,line:i,column:r,bias:o}=e;return nt(t,n,i,r,o||R,!0)}function W(t,e){const n=z(t),{names:i,resolvedSources:r}=t;for(let o=0;o<n.length;o++){const t=n[o];for(let n=0;n<t.length;n++){const a=t[n],s=o+1,l=a[0];let h=null,c=null,u=null,d=null;1!==a.length&&(h=r[a[1]],c=a[2]+1,u=a[3]),5===a.length&&(d=i[a[4]]),e({generatedLine:s,generatedColumn:l,source:h,originalLine:c,originalColumn:u,name:d})}}}function U(t,e){const{sources:n,resolvedSources:i}=t;let r=n.indexOf(e);return-1===r&&(r=i.indexOf(e)),r}function q(t,e){const{sourcesContent:n}=t;if(null==n)return null;const i=U(t,e);return-1===i?null:n[i]}function X(t,e){const{ignoreList:n}=t;if(null==n)return!1;const i=U(t,e);return-1!==i&&n.includes(i)}function Y(t,e){const n=new N(K(t,[]),e);return F(n)._decoded=t.mappings,n}function Z(t){return K(t,z(t))}function $(t){return K(t,B(t))}function K(t,e){return{version:t.version,file:t.file,names:t.names,sourceRoot:t.sourceRoot,sources:t.sources,sourcesContent:t.sourcesContent,mappings:e,ignoreList:t.ignoreList||t.x_google_ignoreList}}function J(t,e,n,i){return{source:t,line:e,column:n,name:i}}function Q(t,e){return{line:t,column:e}}function tt(t,e,n,i,r){let o=w(t,i,e,n);return v?o=(r===R?_:x)(t,i,o):r===R&&o++,-1===o||o===t.length?-1:o}function et(t,e,n,i,r){let a=tt(t,e,n,i,O);if(v||r!==R||a++,-1===a||a===t.length)return[];const s=v?i:t[a][o];v||(a=x(t,s,a));const l=_(t,s,a),h=[];for(;a<=l;a++){const e=t[a];h.push(Q(e[c]+1,e[u]))}return h}function nt(t,e,n,i,r,o){var a;if(--n<0)throw new Error(D);if(i<0)throw new Error(P);const{sources:s,resolvedSources:l}=t;let h=s.indexOf(e);if(-1===h&&(h=l.indexOf(e)),-1===h)return o?[]:Q(null,null);const d=((a=F(t))._bySources||(a._bySources=S(z(t),F(t)._bySourceMemos=s.map(b))))[h][n];if(null==d)return o?[]:Q(null,null);const p=F(t)._bySourceMemos[h];if(o)return et(d,p,n,i,r);const f=tt(d,p,n,i,r);if(-1===f)return Q(null,null);const g=d[f];return Q(g[c]+1,g[u])}t.AnyMap=A,t.GREATEST_LOWER_BOUND=O,t.LEAST_UPPER_BOUND=R,t.TraceMap=N,t.allGeneratedPositionsFor=H,t.decodedMap=Z,t.decodedMappings=z,t.eachMapping=W,t.encodedMap=$,t.encodedMappings=B,t.generatedPositionFor=j,t.isIgnored=X,t.originalPositionFor=V,t.presortedDecodedMap=Y,t.sourceContentFor=q,t.traceSegment=G}(e,n(1184),n(1699))},5034:t=>{"use strict";t.exports=function(t,e){if(null==t)throw new TypeError("expected first argument to be an object.");if(void 0===e||"undefined"==typeof Symbol)return t;if("function"!=typeof Object.getOwnPropertySymbols)return t;for(var n=Object.prototype.propertyIsEnumerable,i=Object(t),r=arguments.length,o=0;++o<r;)for(var a=Object(arguments[o]),s=Object.getOwnPropertySymbols(a),l=0;l<s.length;l++){var h=s[l];n.call(a,h)&&(i[h]=a[h])}return i}},8275:(t,e)=>{"use strict";e.A=function(t,e){if(t&&e){var n=Array.isArray(e)?e:e.split(",");if(0===n.length)return!0;var i=t.name||"",r=(t.type||"").toLowerCase(),o=r.replace(/\/.*$/,"");return n.some((function(t){var e=t.trim().toLowerCase();return"."===e.charAt(0)?i.toLowerCase().endsWith(e):e.endsWith("/*")?o===e.replace(/\/.*$/,""):r===e}))}return!0}},4e3:(t,e,n)=>{"use strict";n.r(e),n.d(e,{default:()=>fl});var i={};n.r(i);var r=n(7378),o=n(1217),a=n(3494),s=n(6106);const l=r.createContext(null);function h(t){let{children:e,content:n}=t;const i=function(t){return(0,r.useMemo)((()=>({metadata:t.metadata,frontMatter:t.frontMatter,assets:t.assets,contentTitle:t.contentTitle,toc:t.toc})),[t])}(n);return(0,s.jsx)(l.Provider,{value:i,children:e})}function c(){const t=(0,r.useContext)(l);if(null===t)throw new a.dV("DocProvider");return t}function u(){const{metadata:t,frontMatter:e,assets:n}=c();return(0,s.jsx)(o.be,{title:t.title,description:t.description,keywords:e.keywords,image:n.image??e.image})}var d=n(3372),p=n(5031),f=n(3892),g=n(652);function m(t){const{permalink:e,title:n,subLabel:i,isNext:r}=t;return(0,s.jsxs)(g.A,{className:(0,d.A)("pagination-nav__link",r?"pagination-nav__link--next":"pagination-nav__link--prev"),to:e,children:[i&&(0,s.jsx)("div",{className:"pagination-nav__sublabel",children:i}),(0,s.jsx)("div",{className:"pagination-nav__label",children:n})]})}function v(t){const{previous:e,next:n}=t;return(0,s.jsxs)("nav",{className:"pagination-nav docusaurus-mt-lg","aria-label":(0,f.T)({id:"theme.docs.paginator.navAriaLabel",message:"Docs pages",description:"The ARIA label for the docs pagination"}),children:[e&&(0,s.jsx)(m,{...e,subLabel:(0,s.jsx)(f.A,{id:"theme.docs.paginator.previous",description:"The label used to navigate to the previous doc",children:"Previous"})}),n&&(0,s.jsx)(m,{...n,subLabel:(0,s.jsx)(f.A,{id:"theme.docs.paginator.next",description:"The label used to navigate to the next doc",children:"Next"}),isNext:!0})]})}function y(){const{metadata:t}=c();return(0,s.jsx)(v,{previous:t.previous,next:t.next})}var _=n(6228),x=n(6329),b=n(9117),w=n(8600),S=n(2983);const T={unreleased:function(t){let{siteTitle:e,versionMetadata:n}=t;return(0,s.jsx)(f.A,{id:"theme.docs.versions.unreleasedVersionLabel",description:"The label used to tell the user that he's browsing an unreleased doc version",values:{siteTitle:e,versionLabel:(0,s.jsx)("b",{children:n.label})},children:"This is unreleased documentation for {siteTitle} {versionLabel} version."})},unmaintained:function(t){let{siteTitle:e,versionMetadata:n}=t;return(0,s.jsx)(f.A,{id:"theme.docs.versions.unmaintainedVersionLabel",description:"The label used to tell the user that he's browsing an unmaintained doc version",values:{siteTitle:e,versionLabel:(0,s.jsx)("b",{children:n.label})},children:"This is documentation for {siteTitle} {versionLabel}, which is no longer actively maintained."})}};function M(t){const e=T[t.versionMetadata.banner];return(0,s.jsx)(e,{...t})}function A(t){let{versionLabel:e,to:n,onClick:i}=t;return(0,s.jsx)(f.A,{id:"theme.docs.versions.latestVersionSuggestionLabel",description:"The label used to tell the user to check the latest version",values:{versionLabel:e,latestVersionLink:(0,s.jsx)("b",{children:(0,s.jsx)(g.A,{to:n,onClick:i,children:(0,s.jsx)(f.A,{id:"theme.docs.versions.latestVersionLinkLabel",description:"The label used for the latest version suggestion link label",children:"latest version"})})})},children:"For up-to-date documentation, see the {latestVersionLink} ({versionLabel})."})}function C(t){let{className:e,versionMetadata:n}=t;const{siteConfig:{title:i}}=(0,_.A)(),{pluginId:r}=(0,x.vT)({failfast:!0}),{savePreferredVersionName:o}=(0,w.g1)(r),{latestDocSuggestion:a,latestVersionSuggestion:l}=(0,x.HW)(r),h=a??(c=l).docs.find((t=>t.id===c.mainDocId));var c;return(0,s.jsxs)("div",{className:(0,d.A)(e,b.G.docs.docVersionBanner,"alert alert--warning margin-bottom--md"),role:"alert",children:[(0,s.jsx)("div",{children:(0,s.jsx)(M,{siteTitle:i,versionMetadata:n})}),(0,s.jsx)("div",{className:"margin-top--md",children:(0,s.jsx)(A,{versionLabel:l.label,to:h.path,onClick:()=>o(l.name)})})]})}function I(t){let{className:e}=t;const n=(0,S.r)();return n.banner?(0,s.jsx)(C,{className:e,versionMetadata:n}):null}function E(t){let{className:e}=t;const n=(0,S.r)();return n.badge?(0,s.jsx)("span",{className:(0,d.A)(e,b.G.docs.docVersionBadge,"badge badge--secondary"),children:(0,s.jsx)(f.A,{id:"theme.docs.versionBadge.label",values:{versionLabel:n.label},children:"Version: {versionLabel}"})}):null}const k={tag:"tag_VUvg",tagRegular:"tagRegular_N_kg",tagWithCount:"tagWithCount_VvhF"};function L(t){let{permalink:e,label:n,count:i,description:r}=t;return(0,s.jsxs)(g.A,{href:e,title:r,className:(0,d.A)(k.tag,i?k.tagWithCount:k.tagRegular),children:[n,i&&(0,s.jsx)("span",{children:i})]})}const D={tags:"tags_x9EF",tag:"tag_TC8p"};function P(t){let{tags:e}=t;return(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)("b",{children:(0,s.jsx)(f.A,{id:"theme.tags.tagsListLabel",description:"The label alongside a tag list",children:"Tags:"})}),(0,s.jsx)("ul",{className:(0,d.A)(D.tags,"padding--none","margin-left--sm"),children:e.map((t=>(0,s.jsx)("li",{className:D.tag,children:(0,s.jsx)(L,{...t})},t.permalink)))})]})}const R={iconEdit:"iconEdit_eR_g"};function O(t){let{className:e,...n}=t;return(0,s.jsx)("svg",{fill:"currentColor",height:"20",width:"20",viewBox:"0 0 40 40",className:(0,d.A)(R.iconEdit,e),"aria-hidden":"true",...n,children:(0,s.jsx)("g",{children:(0,s.jsx)("path",{d:"m34.5 11.7l-3 3.1-6.3-6.3 3.1-3q0.5-0.5 1.2-0.5t1.1 0.5l3.9 3.9q0.5 0.4 0.5 1.1t-0.5 1.2z m-29.5 17.1l18.4-18.5 6.3 6.3-18.4 18.4h-6.3v-6.2z"})})})}function N(t){let{editUrl:e}=t;return(0,s.jsxs)(g.A,{to:e,className:b.G.common.editThisPage,children:[(0,s.jsx)(O,{}),(0,s.jsx)(f.A,{id:"theme.common.editThisPage",description:"The link label to edit the current page",children:"Edit this page"})]})}function F(t){void 0===t&&(t={});const{i18n:{currentLocale:e}}=(0,_.A)(),n=function(){const{i18n:{currentLocale:t,localeConfigs:e}}=(0,_.A)();return e[t].calendar}();return new Intl.DateTimeFormat(e,{calendar:n,...t})}function B(t){let{lastUpdatedAt:e}=t;const n=new Date(e),i=F({day:"numeric",month:"short",year:"numeric",timeZone:"UTC"}).format(n);return(0,s.jsx)(f.A,{id:"theme.lastUpdated.atDate",description:"The words used to describe on which date a page has been last updated",values:{date:(0,s.jsx)("b",{children:(0,s.jsx)("time",{dateTime:n.toISOString(),itemProp:"dateModified",children:i})})},children:" on {date}"})}function z(t){let{lastUpdatedBy:e}=t;return(0,s.jsx)(f.A,{id:"theme.lastUpdated.byUser",description:"The words used to describe by who the page has been last updated",values:{user:(0,s.jsx)("b",{children:e})},children:" by {user}"})}function G(t){let{lastUpdatedAt:e,lastUpdatedBy:n}=t;return(0,s.jsxs)("span",{className:b.G.common.lastUpdated,children:[(0,s.jsx)(f.A,{id:"theme.lastUpdated.lastUpdatedAtBy",description:"The sentence used to display when a page has been last updated, and by who",values:{atDate:e?(0,s.jsx)(B,{lastUpdatedAt:e}):"",byUser:n?(0,s.jsx)(z,{lastUpdatedBy:n}):""},children:"Last updated{atDate}{byUser}"}),!1]})}const V={lastUpdated:"lastUpdated_cSz_"};function j(t){let{className:e,editUrl:n,lastUpdatedAt:i,lastUpdatedBy:r}=t;return(0,s.jsxs)("div",{className:(0,d.A)("row",e),children:[(0,s.jsx)("div",{className:"col",children:n&&(0,s.jsx)(N,{editUrl:n})}),(0,s.jsx)("div",{className:(0,d.A)("col",V.lastUpdated),children:(i||r)&&(0,s.jsx)(G,{lastUpdatedAt:i,lastUpdatedBy:r})})]})}function H(){const{metadata:t}=c(),{editUrl:e,lastUpdatedAt:n,lastUpdatedBy:i,tags:r}=t,o=r.length>0,a=!!(e||n||i);return o||a?(0,s.jsxs)("footer",{className:(0,d.A)(b.G.docs.docFooter,"docusaurus-mt-lg"),children:[o&&(0,s.jsx)("div",{className:(0,d.A)("row margin-top--sm",b.G.docs.docFooterTagsRow),children:(0,s.jsx)("div",{className:"col",children:(0,s.jsx)(P,{tags:r})})}),a&&(0,s.jsx)(j,{className:(0,d.A)("margin-top--sm",b.G.docs.docFooterEditMetaRow),editUrl:e,lastUpdatedAt:n,lastUpdatedBy:i})]}):null}var W=n(2088),U=n(9484);function q(t){const e=t.map((t=>({...t,parentIndex:-1,children:[]}))),n=Array(7).fill(-1);e.forEach(((t,e)=>{const i=n.slice(2,t.level);t.parentIndex=Math.max(...i),n[t.level]=e}));const i=[];return e.forEach((t=>{const{parentIndex:n,...r}=t;n>=0?e[n].children.push(r):i.push(r)})),i}function X(t){let{toc:e,minHeadingLevel:n,maxHeadingLevel:i}=t;return e.flatMap((t=>{const e=X({toc:t.children,minHeadingLevel:n,maxHeadingLevel:i});return function(t){return t.level>=n&&t.level<=i}(t)?[{...t,children:e}]:e}))}function Y(t){const e=t.getBoundingClientRect();return e.top===e.bottom?Y(t.parentNode):e}function Z(t,e){let{anchorTopOffset:n}=e;const i=t.find((t=>Y(t).top>=n));if(i){return function(t){return t.top>0&&t.bottom<window.innerHeight/2}(Y(i))?i:t[t.indexOf(i)-1]??null}return t[t.length-1]??null}function $(){const t=(0,r.useRef)(0),{navbar:{hideOnScroll:e}}=(0,U.p)();return(0,r.useEffect)((()=>{t.current=e?0:document.querySelector(".navbar").clientHeight}),[e]),t}function K(t){const e=(0,r.useRef)(void 0),n=$();(0,r.useEffect)((()=>{if(!t)return()=>{};const{linkClassName:i,linkActiveClassName:r,minHeadingLevel:o,maxHeadingLevel:a}=t;function s(){const t=function(t){return Array.from(document.getElementsByClassName(t))}(i),s=function(t){let{minHeadingLevel:e,maxHeadingLevel:n}=t;const i=[];for(let r=e;r<=n;r+=1)i.push(`h${r}.anchor`);return Array.from(document.querySelectorAll(i.join()))}({minHeadingLevel:o,maxHeadingLevel:a}),l=Z(s,{anchorTopOffset:n.current}),h=t.find((t=>l&&l.id===function(t){return decodeURIComponent(t.href.substring(t.href.indexOf("#")+1))}(t)));t.forEach((t=>{!function(t,n){n?(e.current&&e.current!==t&&e.current.classList.remove(r),t.classList.add(r),e.current=t):t.classList.remove(r)}(t,t===h)}))}return document.addEventListener("scroll",s),document.addEventListener("resize",s),s(),()=>{document.removeEventListener("scroll",s),document.removeEventListener("resize",s)}}),[t,n])}function J(t){let{toc:e,className:n,linkClassName:i,isChild:r}=t;return e.length?(0,s.jsx)("ul",{className:r?void 0:n,children:e.map((t=>(0,s.jsxs)("li",{children:[(0,s.jsx)(g.A,{to:`#${t.id}`,className:i??void 0,dangerouslySetInnerHTML:{__html:t.value}}),(0,s.jsx)(J,{isChild:!0,toc:t.children,className:n,linkClassName:i})]},t.id)))}):null}const Q=r.memo(J);function tt(t){let{toc:e,className:n="table-of-contents table-of-contents__left-border",linkClassName:i="table-of-contents__link",linkActiveClassName:o,minHeadingLevel:a,maxHeadingLevel:l,...h}=t;const c=(0,U.p)(),u=a??c.tableOfContents.minHeadingLevel,d=l??c.tableOfContents.maxHeadingLevel,p=function(t){let{toc:e,minHeadingLevel:n,maxHeadingLevel:i}=t;return(0,r.useMemo)((()=>X({toc:q(e),minHeadingLevel:n,maxHeadingLevel:i})),[e,n,i])}({toc:e,minHeadingLevel:u,maxHeadingLevel:d});return K((0,r.useMemo)((()=>{if(i&&o)return{linkClassName:i,linkActiveClassName:o,minHeadingLevel:u,maxHeadingLevel:d}}),[i,o,u,d])),(0,s.jsx)(Q,{toc:p,className:n,linkClassName:i,...h})}const et={tocCollapsibleButton:"tocCollapsibleButton_QWaa",tocCollapsibleButtonExpanded:"tocCollapsibleButtonExpanded_LKh4"};function nt(t){let{collapsed:e,...n}=t;return(0,s.jsx)("button",{type:"button",...n,className:(0,d.A)("clean-btn",et.tocCollapsibleButton,!e&&et.tocCollapsibleButtonExpanded,n.className),children:(0,s.jsx)(f.A,{id:"theme.TOCCollapsible.toggleButtonLabel",description:"The label used by the button on the collapsible TOC component",children:"On this page"})})}const it={tocCollapsible:"tocCollapsible_I5Su",tocCollapsibleContent:"tocCollapsibleContent_p67m",tocCollapsibleExpanded:"tocCollapsibleExpanded_ivxb"};function rt(t){let{toc:e,className:n,minHeadingLevel:i,maxHeadingLevel:r}=t;const{collapsed:o,toggleCollapsed:a}=(0,W.u)({initialState:!0});return(0,s.jsxs)("div",{className:(0,d.A)(it.tocCollapsible,!o&&it.tocCollapsibleExpanded,n),children:[(0,s.jsx)(nt,{collapsed:o,onClick:a}),(0,s.jsx)(W.N,{lazy:!0,className:it.tocCollapsibleContent,collapsed:o,children:(0,s.jsx)(tt,{toc:e,minHeadingLevel:i,maxHeadingLevel:r})})]})}const ot={tocMobile:"tocMobile_zzjx"};function at(){const{toc:t,frontMatter:e}=c();return(0,s.jsx)(rt,{toc:t,minHeadingLevel:e.toc_min_heading_level,maxHeadingLevel:e.toc_max_heading_level,className:(0,d.A)(b.G.docs.docTocMobile,ot.tocMobile)})}const st={tableOfContents:"tableOfContents_o7P6",docItemContainer:"docItemContainer_DrVw"},lt="table-of-contents__link toc-highlight",ht="table-of-contents__link--active";function ct(t){let{className:e,...n}=t;return(0,s.jsx)("div",{className:(0,d.A)(st.tableOfContents,"thin-scrollbar",e),children:(0,s.jsx)(tt,{...n,linkClassName:lt,linkActiveClassName:ht})})}function ut(){const{toc:t,frontMatter:e}=c();return(0,s.jsx)(ct,{toc:t,minHeadingLevel:e.toc_min_heading_level,maxHeadingLevel:e.toc_max_heading_level,className:b.G.docs.docTocDesktop})}var dt,pt,ft,gt=n(9032),mt=n(2036),vt=n(8202),yt=n(3533),_t=n(7733),xt={characterData:!0,characterDataOldValue:!0,childList:!0,subtree:!0};function bt(t){var e=window.getSelection();e.empty(),e.addRange(t)}function wt(t){return(t.metaKey||t.ctrlKey)&&!t.altKey&&"KeyZ"===t.code}function St(t){t=[t.firstChild];for(var e,n="";e=t.pop();)e.nodeType===Node.TEXT_NODE?n+=e.textContent:e.nodeType===Node.ELEMENT_NODE&&"BR"===e.nodeName&&(n+="\n"),e.nextSibling&&t.push(e.nextSibling),e.firstChild&&t.push(e.firstChild);return"\n"!==n[n.length-1]&&(n+="\n"),n}function Tt(t){var e=window.getSelection().getRangeAt(0),n=e.collapsed?0:e.toString().length,i=document.createRange();return i.setStart(t,0),i.setEnd(e.startContainer,e.startOffset),{position:t=(i=i.toString()).length,extent:n,content:i=(i=i.split("\n"))[e=i.length-1],line:e}}function Mt(t,e,n){0>=e&&(e=0),(!n||0>n)&&(n=e);var i=document.createRange();t=[t.firstChild];for(var r,o=0,a=e;r=t[t.length-1];){if(r.nodeType===Node.TEXT_NODE){if(o+r.textContent.length>=a){var s=a-o;if(a===e){if(a=i,s<r.textContent.length?a.setStart(r,s):a.setStartAfter(r),n!==e){a=n;continue}break}e=i,s<(n=r).textContent.length?e.setEnd(n,s):e.setEndAfter(n);break}o+=r.textContent.length}else if(r.nodeType===Node.ELEMENT_NODE&&"BR"===r.nodeName){if(o+1>=a){if(a===e){if(s=i,0<r.textContent.length?s.setStart(r,0):s.setStartAfter(r),n!==e){a=n;continue}break}e=i,0<(n=r).textContent.length?e.setEnd(n,0):e.setEndAfter(n);break}o++}t.pop(),r.nextSibling&&t.push(r.nextSibling),r.firstChild&&t.push(r.firstChild)}return i}!function(t){t[t.NONE=0]="NONE";t[t._abstract=1]="_abstract";t[t._accessor=2]="_accessor";t[t._as=3]="_as";t[t._assert=4]="_assert";t[t._asserts=5]="_asserts";t[t._async=6]="_async";t[t._await=7]="_await";t[t._checks=8]="_checks";t[t._constructor=9]="_constructor";t[t._declare=10]="_declare";t[t._enum=11]="_enum";t[t._exports=12]="_exports";t[t._from=13]="_from";t[t._get=14]="_get";t[t._global=15]="_global";t[t._implements=16]="_implements";t[t._infer=17]="_infer";t[t._interface=18]="_interface";t[t._is=19]="_is";t[t._keyof=20]="_keyof";t[t._mixins=21]="_mixins";t[t._module=22]="_module";t[t._namespace=23]="_namespace";t[t._of=24]="_of";t[t._opaque=25]="_opaque";t[t._out=26]="_out";t[t._override=27]="_override";t[t._private=28]="_private";t[t._protected=29]="_protected";t[t._proto=30]="_proto";t[t._public=31]="_public";t[t._readonly=32]="_readonly";t[t._require=33]="_require";t[t._satisfies=34]="_satisfies";t[t._set=35]="_set";t[t._static=36]="_static";t[t._symbol=37]="_symbol";t[t._type=38]="_type";t[t._unique=39]="_unique";t[t._using=40]="_using"}(dt||(dt={})),function(t){t[t.PRECEDENCE_MASK=15]="PRECEDENCE_MASK";t[t.IS_KEYWORD=16]="IS_KEYWORD";t[t.IS_ASSIGN=32]="IS_ASSIGN";t[t.IS_RIGHT_ASSOCIATIVE=64]="IS_RIGHT_ASSOCIATIVE";t[t.IS_PREFIX=128]="IS_PREFIX";t[t.IS_POSTFIX=256]="IS_POSTFIX";t[t.IS_EXPRESSION_START=512]="IS_EXPRESSION_START";t[t.num=512]="num";t[t.bigint=1536]="bigint";t[t.decimal=2560]="decimal";t[t.regexp=3584]="regexp";t[t.string=4608]="string";t[t.name=5632]="name";t[t.eof=6144]="eof";t[t.bracketL=7680]="bracketL";t[t.bracketR=8192]="bracketR";t[t.braceL=9728]="braceL";t[t.braceBarL=10752]="braceBarL";t[t.braceR=11264]="braceR";t[t.braceBarR=12288]="braceBarR";t[t.parenL=13824]="parenL";t[t.parenR=14336]="parenR";t[t.comma=15360]="comma";t[t.semi=16384]="semi";t[t.colon=17408]="colon";t[t.doubleColon=18432]="doubleColon";t[t.dot=19456]="dot";t[t.question=20480]="question";t[t.questionDot=21504]="questionDot";t[t.arrow=22528]="arrow";t[t.template=23552]="template";t[t.ellipsis=24576]="ellipsis";t[t.backQuote=25600]="backQuote";t[t.dollarBraceL=27136]="dollarBraceL";t[t.at=27648]="at";t[t.hash=29184]="hash";t[t.eq=29728]="eq";t[t.assign=30752]="assign";t[t.preIncDec=32640]="preIncDec";t[t.postIncDec=33664]="postIncDec";t[t.bang=34432]="bang";t[t.tilde=35456]="tilde";t[t.pipeline=35841]="pipeline";t[t.nullishCoalescing=36866]="nullishCoalescing";t[t.logicalOR=37890]="logicalOR";t[t.logicalAND=38915]="logicalAND";t[t.bitwiseOR=39940]="bitwiseOR";t[t.bitwiseXOR=40965]="bitwiseXOR";t[t.bitwiseAND=41990]="bitwiseAND";t[t.equality=43015]="equality";t[t.lessThan=44040]="lessThan";t[t.greaterThan=45064]="greaterThan";t[t.relationalOrEqual=46088]="relationalOrEqual";t[t.bitShiftL=47113]="bitShiftL";t[t.bitShiftR=48137]="bitShiftR";t[t.plus=49802]="plus";t[t.minus=50826]="minus";t[t.modulo=51723]="modulo";t[t.star=52235]="star";t[t.slash=53259]="slash";t[t.exponent=54348]="exponent";t[t.jsxName=55296]="jsxName";t[t.jsxText=56320]="jsxText";t[t.jsxEmptyText=57344]="jsxEmptyText";t[t.jsxTagStart=58880]="jsxTagStart";t[t.jsxTagEnd=59392]="jsxTagEnd";t[t.typeParameterStart=60928]="typeParameterStart";t[t.nonNullAssertion=61440]="nonNullAssertion";t[t._break=62480]="_break";t[t._case=63504]="_case";t[t._catch=64528]="_catch";t[t._continue=65552]="_continue";t[t._debugger=66576]="_debugger";t[t._default=67600]="_default";t[t._do=68624]="_do";t[t._else=69648]="_else";t[t._finally=70672]="_finally";t[t._for=71696]="_for";t[t._function=73232]="_function";t[t._if=73744]="_if";t[t._return=74768]="_return";t[t._switch=75792]="_switch";t[t._throw=77456]="_throw";t[t._try=77840]="_try";t[t._var=78864]="_var";t[t._let=79888]="_let";t[t._const=80912]="_const";t[t._while=81936]="_while";t[t._with=82960]="_with";t[t._new=84496]="_new";t[t._this=85520]="_this";t[t._super=86544]="_super";t[t._class=87568]="_class";t[t._extends=88080]="_extends";t[t._export=89104]="_export";t[t._import=90640]="_import";t[t._yield=91664]="_yield";t[t._null=92688]="_null";t[t._true=93712]="_true";t[t._false=94736]="_false";t[t._in=95256]="_in";t[t._instanceof=96280]="_instanceof";t[t._typeof=97936]="_typeof";t[t._void=98960]="_void";t[t._delete=99984]="_delete";t[t._async=100880]="_async";t[t._get=101904]="_get";t[t._set=102928]="_set";t[t._declare=103952]="_declare";t[t._readonly=104976]="_readonly";t[t._abstract=106e3]="_abstract";t[t._static=107024]="_static";t[t._public=107536]="_public";t[t._private=108560]="_private";t[t._protected=109584]="_protected";t[t._override=110608]="_override";t[t._as=112144]="_as";t[t._enum=113168]="_enum";t[t._type=114192]="_type";t[t._implements=115216]="_implements"}(pt||(pt={}));class At{constructor(t,e,n){this.startTokenIndex=t,this.endTokenIndex=e,this.isFunctionScope=n}}class Ct{constructor(t,e,n,i,r,o,a,s,l,h,c,u,d){this.potentialArrowAt=t,this.noAnonFunctionType=e,this.inDisallowConditionalTypesContext=n,this.tokensLength=i,this.scopesLength=r,this.pos=o,this.type=a,this.contextualKeyword=s,this.start=l,this.end=h,this.isType=c,this.scopeDepth=u,this.error=d}}class It{constructor(){It.prototype.__init.call(this),It.prototype.__init2.call(this),It.prototype.__init3.call(this),It.prototype.__init4.call(this),It.prototype.__init5.call(this),It.prototype.__init6.call(this),It.prototype.__init7.call(this),It.prototype.__init8.call(this),It.prototype.__init9.call(this),It.prototype.__init10.call(this),It.prototype.__init11.call(this),It.prototype.__init12.call(this),It.prototype.__init13.call(this)}__init(){this.potentialArrowAt=-1}__init2(){this.noAnonFunctionType=!1}__init3(){this.inDisallowConditionalTypesContext=!1}__init4(){this.tokens=[]}__init5(){this.scopes=[]}__init6(){this.pos=0}__init7(){this.type=pt.eof}__init8(){this.contextualKeyword=dt.NONE}__init9(){this.start=0}__init10(){this.end=0}__init11(){this.isType=!1}__init12(){this.scopeDepth=0}__init13(){this.error=null}snapshot(){return new Ct(this.potentialArrowAt,this.noAnonFunctionType,this.inDisallowConditionalTypesContext,this.tokens.length,this.scopes.length,this.pos,this.type,this.contextualKeyword,this.start,this.end,this.isType,this.scopeDepth,this.error)}restoreFromSnapshot(t){this.potentialArrowAt=t.potentialArrowAt,this.noAnonFunctionType=t.noAnonFunctionType,this.inDisallowConditionalTypesContext=t.inDisallowConditionalTypesContext,this.tokens.length=t.tokensLength,this.scopes.length=t.scopesLength,this.pos=t.pos,this.type=t.type,this.contextualKeyword=t.contextualKeyword,this.start=t.start,this.end=t.end,this.isType=t.isType,this.scopeDepth=t.scopeDepth,this.error=t.error}}let Et,kt,Lt,Dt,Pt,Rt;function Ot(){return Rt++}function Nt(t){if("pos"in t){const e=function(t){let e=1,n=1;for(let i=0;i<t;i++)Pt.charCodeAt(i)===ft.lineFeed?(e++,n=1):n++;return new Ft(e,n)}(t.pos);t.message+=` (${e.line}:${e.column})`,t.loc=e}return t}!function(t){t[t.backSpace=8]="backSpace";t[t.lineFeed=10]="lineFeed";t[t.tab=9]="tab";t[t.carriageReturn=13]="carriageReturn";t[t.shiftOut=14]="shiftOut";t[t.space=32]="space";t[t.exclamationMark=33]="exclamationMark";t[t.quotationMark=34]="quotationMark";t[t.numberSign=35]="numberSign";t[t.dollarSign=36]="dollarSign";t[t.percentSign=37]="percentSign";t[t.ampersand=38]="ampersand";t[t.apostrophe=39]="apostrophe";t[t.leftParenthesis=40]="leftParenthesis";t[t.rightParenthesis=41]="rightParenthesis";t[t.asterisk=42]="asterisk";t[t.plusSign=43]="plusSign";t[t.comma=44]="comma";t[t.dash=45]="dash";t[t.dot=46]="dot";t[t.slash=47]="slash";t[t.digit0=48]="digit0";t[t.digit1=49]="digit1";t[t.digit2=50]="digit2";t[t.digit3=51]="digit3";t[t.digit4=52]="digit4";t[t.digit5=53]="digit5";t[t.digit6=54]="digit6";t[t.digit7=55]="digit7";t[t.digit8=56]="digit8";t[t.digit9=57]="digit9";t[t.colon=58]="colon";t[t.semicolon=59]="semicolon";t[t.lessThan=60]="lessThan";t[t.equalsTo=61]="equalsTo";t[t.greaterThan=62]="greaterThan";t[t.questionMark=63]="questionMark";t[t.atSign=64]="atSign";t[t.uppercaseA=65]="uppercaseA";t[t.uppercaseB=66]="uppercaseB";t[t.uppercaseC=67]="uppercaseC";t[t.uppercaseD=68]="uppercaseD";t[t.uppercaseE=69]="uppercaseE";t[t.uppercaseF=70]="uppercaseF";t[t.uppercaseG=71]="uppercaseG";t[t.uppercaseH=72]="uppercaseH";t[t.uppercaseI=73]="uppercaseI";t[t.uppercaseJ=74]="uppercaseJ";t[t.uppercaseK=75]="uppercaseK";t[t.uppercaseL=76]="uppercaseL";t[t.uppercaseM=77]="uppercaseM";t[t.uppercaseN=78]="uppercaseN";t[t.uppercaseO=79]="uppercaseO";t[t.uppercaseP=80]="uppercaseP";t[t.uppercaseQ=81]="uppercaseQ";t[t.uppercaseR=82]="uppercaseR";t[t.uppercaseS=83]="uppercaseS";t[t.uppercaseT=84]="uppercaseT";t[t.uppercaseU=85]="uppercaseU";t[t.uppercaseV=86]="uppercaseV";t[t.uppercaseW=87]="uppercaseW";t[t.uppercaseX=88]="uppercaseX";t[t.uppercaseY=89]="uppercaseY";t[t.uppercaseZ=90]="uppercaseZ";t[t.leftSquareBracket=91]="leftSquareBracket";t[t.backslash=92]="backslash";t[t.rightSquareBracket=93]="rightSquareBracket";t[t.caret=94]="caret";t[t.underscore=95]="underscore";t[t.graveAccent=96]="graveAccent";t[t.lowercaseA=97]="lowercaseA";t[t.lowercaseB=98]="lowercaseB";t[t.lowercaseC=99]="lowercaseC";t[t.lowercaseD=100]="lowercaseD";t[t.lowercaseE=101]="lowercaseE";t[t.lowercaseF=102]="lowercaseF";t[t.lowercaseG=103]="lowercaseG";t[t.lowercaseH=104]="lowercaseH";t[t.lowercaseI=105]="lowercaseI";t[t.lowercaseJ=106]="lowercaseJ";t[t.lowercaseK=107]="lowercaseK";t[t.lowercaseL=108]="lowercaseL";t[t.lowercaseM=109]="lowercaseM";t[t.lowercaseN=110]="lowercaseN";t[t.lowercaseO=111]="lowercaseO";t[t.lowercaseP=112]="lowercaseP";t[t.lowercaseQ=113]="lowercaseQ";t[t.lowercaseR=114]="lowercaseR";t[t.lowercaseS=115]="lowercaseS";t[t.lowercaseT=116]="lowercaseT";t[t.lowercaseU=117]="lowercaseU";t[t.lowercaseV=118]="lowercaseV";t[t.lowercaseW=119]="lowercaseW";t[t.lowercaseX=120]="lowercaseX";t[t.lowercaseY=121]="lowercaseY";t[t.lowercaseZ=122]="lowercaseZ";t[t.leftCurlyBrace=123]="leftCurlyBrace";t[t.verticalBar=124]="verticalBar";t[t.rightCurlyBrace=125]="rightCurlyBrace";t[t.tilde=126]="tilde";t[t.nonBreakingSpace=160]="nonBreakingSpace";t[t.oghamSpaceMark=5760]="oghamSpaceMark";t[t.lineSeparator=8232]="lineSeparator";t[t.paragraphSeparator=8233]="paragraphSeparator"}(ft||(ft={}));class Ft{constructor(t,e){this.line=t,this.column=e}}function Bt(t,e,n,i){Pt=t,Dt=new It,Rt=1,Et=e,kt=n,Lt=i}function zt(t){return Dt.contextualKeyword===t}function Gt(t){const e=we();return e.type===pt.name&&e.contextualKeyword===t}function Vt(t){return Dt.contextualKeyword===t&&ve(pt.name)}function jt(t){Vt(t)||Zt()}function Ht(){return _e(pt.eof)||_e(pt.braceR)||Wt()}function Wt(){const t=Dt.tokens[Dt.tokens.length-1];for(let e=t?t.end:0;e<Dt.start;e++){const t=Pt.charCodeAt(e);if(t===ft.lineFeed||t===ft.carriageReturn||8232===t||8233===t)return!0}return!1}function Ut(){const t=Se();for(let e=Dt.end;e<t;e++){const t=Pt.charCodeAt(e);if(t===ft.lineFeed||t===ft.carriageReturn||8232===t||8233===t)return!0}return!1}function qt(){return ve(pt.semi)||Ht()}function Xt(){qt()||Zt('Unexpected token, expected ";"')}function Yt(t){ve(t)||Zt(`Unexpected token, expected "${function(t){switch(t){case pt.num:return"num";case pt.bigint:return"bigint";case pt.decimal:return"decimal";case pt.regexp:return"regexp";case pt.string:return"string";case pt.name:return"name";case pt.eof:return"eof";case pt.bracketL:return"[";case pt.bracketR:return"]";case pt.braceL:return"{";case pt.braceBarL:return"{|";case pt.braceR:return"}";case pt.braceBarR:return"|}";case pt.parenL:return"(";case pt.parenR:return")";case pt.comma:return",";case pt.semi:return";";case pt.colon:return":";case pt.doubleColon:return"::";case pt.dot:return".";case pt.question:return"?";case pt.questionDot:return"?.";case pt.arrow:return"=>";case pt.template:return"template";case pt.ellipsis:return"...";case pt.backQuote:return"`";case pt.dollarBraceL:return"${";case pt.at:return"@";case pt.hash:return"#";case pt.eq:return"=";case pt.assign:return"_=";case pt.preIncDec:case pt.postIncDec:return"++/--";case pt.bang:return"!";case pt.tilde:return"~";case pt.pipeline:return"|>";case pt.nullishCoalescing:return"??";case pt.logicalOR:return"||";case pt.logicalAND:return"&&";case pt.bitwiseOR:return"|";case pt.bitwiseXOR:return"^";case pt.bitwiseAND:return"&";case pt.equality:return"==/!=";case pt.lessThan:return"<";case pt.greaterThan:return">";case pt.relationalOrEqual:return"<=/>=";case pt.bitShiftL:return"<<";case pt.bitShiftR:return">>/>>>";case pt.plus:return"+";case pt.minus:return"-";case pt.modulo:return"%";case pt.star:return"*";case pt.slash:return"/";case pt.exponent:return"**";case pt.jsxName:return"jsxName";case pt.jsxText:return"jsxText";case pt.jsxEmptyText:return"jsxEmptyText";case pt.jsxTagStart:return"jsxTagStart";case pt.jsxTagEnd:return"jsxTagEnd";case pt.typeParameterStart:return"typeParameterStart";case pt.nonNullAssertion:return"nonNullAssertion";case pt._break:return"break";case pt._case:return"case";case pt._catch:return"catch";case pt._continue:return"continue";case pt._debugger:return"debugger";case pt._default:return"default";case pt._do:return"do";case pt._else:return"else";case pt._finally:return"finally";case pt._for:return"for";case pt._function:return"function";case pt._if:return"if";case pt._return:return"return";case pt._switch:return"switch";case pt._throw:return"throw";case pt._try:return"try";case pt._var:return"var";case pt._let:return"let";case pt._const:return"const";case pt._while:return"while";case pt._with:return"with";case pt._new:return"new";case pt._this:return"this";case pt._super:return"super";case pt._class:return"class";case pt._extends:return"extends";case pt._export:return"export";case pt._import:return"import";case pt._yield:return"yield";case pt._null:return"null";case pt._true:return"true";case pt._false:return"false";case pt._in:return"in";case pt._instanceof:return"instanceof";case pt._typeof:return"typeof";case pt._void:return"void";case pt._delete:return"delete";case pt._async:return"async";case pt._get:return"get";case pt._set:return"set";case pt._declare:return"declare";case pt._readonly:return"readonly";case pt._abstract:return"abstract";case pt._static:return"static";case pt._public:return"public";case pt._private:return"private";case pt._protected:return"protected";case pt._override:return"override";case pt._as:return"as";case pt._enum:return"enum";case pt._type:return"type";case pt._implements:return"implements";default:return""}}(t)}"`)}function Zt(t="Unexpected token",e=Dt.start){if(Dt.error)return;const n=new SyntaxError(t);n.pos=e,Dt.error=n,Dt.pos=Pt.length,ke(pt.eof)}const $t=[9,11,12,ft.space,ft.nonBreakingSpace,ft.oghamSpaceMark,8192,8193,8194,8195,8196,8197,8198,8199,8200,8201,8202,8239,8287,12288,65279],Kt=/(?:\s|\/\/.*|\/\*[^]*?\*\/)*/g,Jt=new Uint8Array(65536);for(const gl of $t)Jt[gl]=1;function Qt(t){if(t<48)return 36===t;if(t<58)return!0;if(t<65)return!1;if(t<91)return!0;if(t<97)return 95===t;if(t<123)return!0;if(t<128)return!1;throw new Error("Should not be called with non-ASCII char code.")}const te=new Uint8Array(65536);for(let gl=0;gl<128;gl++)te[gl]=Qt(gl)?1:0;for(let gl=128;gl<65536;gl++)te[gl]=1;for(const gl of $t)te[gl]=0;te[8232]=0,te[8233]=0;const ee=te.slice();for(let gl=ft.digit0;gl<=ft.digit9;gl++)ee[gl]=0;const ne=new Int32Array([-1,27,783,918,1755,2376,2862,3483,-1,3699,-1,4617,4752,4833,5130,5508,5940,-1,6480,6939,7749,8181,8451,8613,-1,8829,-1,-1,-1,54,243,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,432,-1,-1,-1,675,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,81,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,108,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,135,-1,-1,-1,-1,-1,-1,-1,-1,-1,162,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,189,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,216,-1,-1,-1,-1,-1,-1,dt._abstract<<1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,270,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,297,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,324,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,351,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,378,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,405,-1,-1,-1,-1,-1,-1,-1,-1,dt._accessor<<1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,dt._as<<1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,459,-1,-1,-1,-1,-1,594,-1,-1,-1,-1,-1,-1,486,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,513,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,540,-1,-1,-1,-1,-1,-1,dt._assert<<1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,567,-1,-1,-1,-1,-1,-1,-1,dt._asserts<<1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,621,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,648,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,dt._async<<1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,702,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,729,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,756,-1,-1,-1,-1,-1,-1,dt._await<<1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,810,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,837,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,864,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,891,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,1+(pt._break<<1),-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,945,-1,-1,-1,-1,-1,-1,1107,-1,-1,-1,1242,-1,-1,1350,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,972,1026,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,999,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,1+(pt._case<<1),-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,1053,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,1080,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,1+(pt._catch<<1),-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,1134,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,1161,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,1188,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,1215,-1,-1,-1,-1,-1,-1,-1,dt._checks<<1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,1269,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,1296,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,1323,-1,-1,-1,-1,-1,-1,-1,1+(pt._class<<1),-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,1377,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,1404,1620,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,1431,-1,-1,-1,-1,-1,-1,1+(pt._const<<1),-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,1458,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,1485,-1,-1,-1,-1,-1,-1,-1,-1,1512,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,1539,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,1566,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,1593,-1,-1,-1,-1,-1,-1,-1,-1,dt._constructor<<1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,1647,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,1674,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,1701,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,1728,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,1+(pt._continue<<1),-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,1782,-1,-1,-1,-1,-1,-1,-1,-1,-1,2349,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,1809,1971,-1,-1,2106,-1,-1,-1,-1,-1,2241,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,1836,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,1863,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,1890,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,1917,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,1944,-1,-1,-1,-1,-1,-1,-1,-1,1+(pt._debugger<<1),-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,1998,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,2025,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,2052,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,2079,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,dt._declare<<1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,2133,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,2160,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,2187,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,2214,-1,-1,-1,-1,-1,-1,1+(pt._default<<1),-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,2268,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,2295,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,2322,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,1+(pt._delete<<1),-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,1+(pt._do<<1),-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,2403,-1,2484,-1,-1,-1,-1,-1,-1,-1,-1,-1,2565,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,2430,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,2457,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,1+(pt._else<<1),-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,2511,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,2538,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,dt._enum<<1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,2592,-1,-1,-1,2727,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,2619,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,2646,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,2673,-1,-1,-1,-1,-1,-1,1+(pt._export<<1),-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,2700,-1,-1,-1,-1,-1,-1,-1,dt._exports<<1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,2754,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,2781,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,2808,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,2835,-1,-1,-1,-1,-1,-1,-1,1+(pt._extends<<1),-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,2889,-1,-1,-1,-1,-1,-1,-1,2997,-1,-1,-1,-1,-1,3159,-1,-1,3213,-1,-1,3294,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,2916,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,2943,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,2970,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,1+(pt._false<<1),-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,3024,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,3051,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,3078,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,3105,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,3132,-1,1+(pt._finally<<1),-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,3186,-1,-1,-1,-1,-1,-1,-1,-1,1+(pt._for<<1),-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,3240,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,3267,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,dt._from<<1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,3321,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,3348,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,3375,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,3402,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,3429,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,3456,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,1+(pt._function<<1),-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,3510,-1,-1,-1,-1,-1,-1,3564,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,3537,-1,-1,-1,-1,-1,-1,dt._get<<1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,3591,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,3618,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,3645,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,3672,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,dt._global<<1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,3726,-1,-1,-1,-1,-1,-1,3753,4077,-1,-1,-1,-1,4590,-1,-1,-1,-1,-1,-1,-1,1+(pt._if<<1),-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,3780,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,3807,-1,-1,3996,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,3834,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,3861,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,3888,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,3915,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,3942,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,3969,-1,-1,-1,-1,-1,-1,-1,dt._implements<<1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,4023,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,4050,-1,-1,-1,-1,-1,-1,1+(pt._import<<1),-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,1+(pt._in<<1),-1,-1,-1,-1,-1,4104,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,4185,4401,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,4131,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,4158,-1,-1,-1,-1,-1,-1,-1,-1,dt._infer<<1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,4212,-1,-1,-1,-1,-1,-1,-1,4239,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,4266,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,4293,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,4320,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,4347,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,4374,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,1+(pt._instanceof<<1),-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,4428,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,4455,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,4482,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,4509,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,4536,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,4563,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,dt._interface<<1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,dt._is<<1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,4644,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,4671,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,4698,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,4725,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,dt._keyof<<1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,4779,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,4806,-1,-1,-1,-1,-1,-1,1+(pt._let<<1),-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,4860,-1,-1,-1,-1,-1,4995,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,4887,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,4914,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,4941,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,4968,-1,-1,-1,-1,-1,-1,-1,dt._mixins<<1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,5022,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,5049,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,5076,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,5103,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,dt._module<<1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,5157,-1,-1,-1,5373,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,5427,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,5184,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,5211,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,5238,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,5265,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,5292,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,5319,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,5346,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,dt._namespace<<1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,5400,-1,-1,-1,1+(pt._new<<1),-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,5454,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,5481,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,1+(pt._null<<1),-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,5535,-1,-1,-1,-1,-1,-1,-1,-1,-1,5562,-1,-1,-1,-1,5697,5751,-1,-1,-1,-1,dt._of<<1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,5589,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,5616,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,5643,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,5670,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,dt._opaque<<1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,5724,-1,-1,-1,-1,-1,-1,dt._out<<1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,5778,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,5805,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,5832,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,5859,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,5886,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,5913,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,dt._override<<1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,5967,-1,-1,6345,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,5994,-1,-1,-1,-1,-1,6129,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,6021,-1,-1,-1,-1,-1,6048,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,6075,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,6102,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,dt._private<<1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,6156,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,6183,-1,-1,-1,-1,-1,-1,-1,-1,-1,6318,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,6210,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,6237,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,6264,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,6291,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,dt._protected<<1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,dt._proto<<1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,6372,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,6399,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,6426,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,6453,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,dt._public<<1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,6507,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,6534,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,6696,-1,-1,6831,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,6561,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,6588,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,6615,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,6642,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,6669,-1,dt._readonly<<1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,6723,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,6750,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,6777,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,6804,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,dt._require<<1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,6858,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,6885,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,6912,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,1+(pt._return<<1),-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,6966,-1,-1,-1,7182,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,7236,7371,-1,7479,-1,7614,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,6993,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,7020,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,7047,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,7074,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,7101,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,7128,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,7155,-1,-1,-1,-1,-1,-1,-1,dt._satisfies<<1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,7209,-1,-1,-1,-1,-1,-1,dt._set<<1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,7263,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,7290,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,7317,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,7344,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,dt._static<<1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,7398,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,7425,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,7452,-1,-1,-1,-1,-1,-1,-1,-1,1+(pt._super<<1),-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,7506,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,7533,-1,-1,-1,-1,-1,-1,-1,-1,-1,7560,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,7587,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,1+(pt._switch<<1),-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,7641,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,7668,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,7695,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,7722,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,dt._symbol<<1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,7776,-1,-1,-1,-1,-1,-1,-1,-1,-1,7938,-1,-1,-1,-1,-1,-1,8046,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,7803,-1,-1,-1,-1,-1,-1,-1,-1,7857,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,7830,-1,-1,-1,-1,-1,-1,-1,1+(pt._this<<1),-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,7884,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,7911,-1,-1,-1,1+(pt._throw<<1),-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,7965,-1,-1,-1,8019,-1,-1,-1,-1,-1,-1,7992,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,1+(pt._true<<1),-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,1+(pt._try<<1),-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,8073,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,8100,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,dt._type<<1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,8127,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,8154,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,1+(pt._typeof<<1),-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,8208,-1,-1,-1,-1,8343,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,8235,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,8262,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,8289,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,8316,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,dt._unique<<1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,8370,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,8397,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,8424,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,dt._using<<1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,8478,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,8532,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,8505,-1,-1,-1,-1,-1,-1,-1,-1,1+(pt._var<<1),-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,8559,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,8586,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,1+(pt._void<<1),-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,8640,8748,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,8667,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,8694,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,8721,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,1+(pt._while<<1),-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,8775,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,8802,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,1+(pt._with<<1),-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,8856,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,8883,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,8910,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,8937,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,1+(pt._yield<<1),-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1]);var ie,re;function oe(t){const e=t.identifierRole;return e===ie.TopLevelDeclaration||e===ie.FunctionScopedDeclaration||e===ie.BlockScopedDeclaration||e===ie.ObjectShorthandTopLevelDeclaration||e===ie.ObjectShorthandFunctionScopedDeclaration||e===ie.ObjectShorthandBlockScopedDeclaration}function ae(t){const e=t.identifierRole;return e===ie.FunctionScopedDeclaration||e===ie.BlockScopedDeclaration||e===ie.ObjectShorthandFunctionScopedDeclaration||e===ie.ObjectShorthandBlockScopedDeclaration}function se(t){const e=t.identifierRole;return e===ie.TopLevelDeclaration||e===ie.ObjectShorthandTopLevelDeclaration||e===ie.ImportDeclaration}function le(t){const e=t.identifierRole;return e===ie.TopLevelDeclaration||e===ie.BlockScopedDeclaration||e===ie.ObjectShorthandTopLevelDeclaration||e===ie.ObjectShorthandBlockScopedDeclaration}function he(t){const e=t.identifierRole;return e===ie.FunctionScopedDeclaration||e===ie.ObjectShorthandFunctionScopedDeclaration}function ce(t){return t.identifierRole===ie.ObjectShorthandTopLevelDeclaration||t.identifierRole===ie.ObjectShorthandBlockScopedDeclaration||t.identifierRole===ie.ObjectShorthandFunctionScopedDeclaration}!function(t){t[t.Access=0]="Access";t[t.ExportAccess=1]="ExportAccess";t[t.TopLevelDeclaration=2]="TopLevelDeclaration";t[t.FunctionScopedDeclaration=3]="FunctionScopedDeclaration";t[t.BlockScopedDeclaration=4]="BlockScopedDeclaration";t[t.ObjectShorthandTopLevelDeclaration=5]="ObjectShorthandTopLevelDeclaration";t[t.ObjectShorthandFunctionScopedDeclaration=6]="ObjectShorthandFunctionScopedDeclaration";t[t.ObjectShorthandBlockScopedDeclaration=7]="ObjectShorthandBlockScopedDeclaration";t[t.ObjectShorthand=8]="ObjectShorthand";t[t.ImportDeclaration=9]="ImportDeclaration";t[t.ObjectKey=10]="ObjectKey";t[t.ImportAccess=11]="ImportAccess"}(ie||(ie={})),function(t){t[t.NoChildren=0]="NoChildren";t[t.OneChild=1]="OneChild";t[t.StaticChildren=2]="StaticChildren";t[t.KeyAfterPropSpread=3]="KeyAfterPropSpread"}(re||(re={}));class ue{constructor(){this.type=Dt.type,this.contextualKeyword=Dt.contextualKeyword,this.start=Dt.start,this.end=Dt.end,this.scopeDepth=Dt.scopeDepth,this.isType=Dt.isType,this.identifierRole=null,this.jsxRole=null,this.shadowsGlobal=!1,this.isAsyncOperation=!1,this.contextId=null,this.rhsEndIndex=null,this.isExpression=!1,this.numNullishCoalesceStarts=0,this.numNullishCoalesceEnds=0,this.isOptionalChainStart=!1,this.isOptionalChainEnd=!1,this.subscriptStartIndex=null,this.nullishStartIndex=null}}function de(){Dt.tokens.push(new ue),Ae()}function pe(){Dt.tokens.push(new ue),Dt.start=Dt.pos,function(){for(;;){if(Dt.pos>=Pt.length)return void Zt("Unterminated template");const t=Pt.charCodeAt(Dt.pos);if(t===ft.graveAccent||t===ft.dollarSign&&Pt.charCodeAt(Dt.pos+1)===ft.leftCurlyBrace)return Dt.pos===Dt.start&&_e(pt.template)?t===ft.dollarSign?(Dt.pos+=2,void ke(pt.dollarBraceL)):(++Dt.pos,void ke(pt.backQuote)):void ke(pt.template);t===ft.backslash&&Dt.pos++,Dt.pos++}}()}function fe(){Dt.type===pt.assign&&--Dt.pos,function(){const t=Dt.pos;let e=!1,n=!1;for(;;){if(Dt.pos>=Pt.length)return void Zt("Unterminated regular expression",t);const i=Pt.charCodeAt(Dt.pos);if(e)e=!1;else{if(i===ft.leftSquareBracket)n=!0;else if(i===ft.rightSquareBracket&&n)n=!1;else if(i===ft.slash&&!n)break;e=i===ft.backslash}++Dt.pos}++Dt.pos,function(){for(;Dt.pos<Pt.length;){const t=Pt.charCodeAt(Dt.pos);if(te[t])Dt.pos++;else{if(t!==ft.backslash)break;if(Dt.pos+=2,Pt.charCodeAt(Dt.pos)===ft.leftCurlyBrace){for(;Dt.pos<Pt.length&&Pt.charCodeAt(Dt.pos)!==ft.rightCurlyBrace;)Dt.pos++;Dt.pos++}}}}(),ke(pt.regexp)}()}function ge(t){for(let n=Dt.tokens.length-t;n<Dt.tokens.length;n++)Dt.tokens[n].isType=!0;const e=Dt.isType;return Dt.isType=!0,e}function me(t){Dt.isType=t}function ve(t){return!!_e(t)&&(de(),!0)}function ye(t){const e=Dt.isType;Dt.isType=!0,ve(t),Dt.isType=e}function _e(t){return Dt.type===t}function xe(){const t=Dt.snapshot();de();const e=Dt.type;return Dt.restoreFromSnapshot(t),e}class be{constructor(t,e){this.type=t,this.contextualKeyword=e}}function we(){const t=Dt.snapshot();de();const e=Dt.type,n=Dt.contextualKeyword;return Dt.restoreFromSnapshot(t),new be(e,n)}function Se(){return Te(Dt.pos)}function Te(t){Kt.lastIndex=t;return t+Kt.exec(Pt)[0].length}function Me(){return Pt.charCodeAt(Se())}function Ae(){if(Ee(),Dt.start=Dt.pos,Dt.pos>=Pt.length){const t=Dt.tokens;return t.length>=2&&t[t.length-1].start>=Pt.length&&t[t.length-2].start>=Pt.length&&Zt("Unexpectedly reached the end of input."),void ke(pt.eof)}var t;t=Pt.charCodeAt(Dt.pos),ee[t]||t===ft.backslash||t===ft.atSign&&Pt.charCodeAt(Dt.pos+1)===ft.atSign?function(){let t=0,e=0,n=Dt.pos;for(;n<Pt.length&&(e=Pt.charCodeAt(n),!(e<ft.lowercaseA||e>ft.lowercaseZ));){const i=ne[t+(e-ft.lowercaseA)+1];if(-1===i)break;t=i,n++}const i=ne[t];if(i>-1&&!te[e])return Dt.pos=n,void(1&i?ke(i>>>1):ke(pt.name,i>>>1));for(;n<Pt.length;){const t=Pt.charCodeAt(n);if(te[t])n++;else if(t===ft.backslash){if(n+=2,Pt.charCodeAt(n)===ft.leftCurlyBrace){for(;n<Pt.length&&Pt.charCodeAt(n)!==ft.rightCurlyBrace;)n++;n++}}else{if(t!==ft.atSign||Pt.charCodeAt(n+1)!==ft.atSign)break;n+=2}}Dt.pos=n,ke(pt.name)}():Pe(t)}function Ce(){for(;Pt.charCodeAt(Dt.pos)!==ft.asterisk||Pt.charCodeAt(Dt.pos+1)!==ft.slash;)if(Dt.pos++,Dt.pos>Pt.length)return void Zt("Unterminated comment",Dt.pos-2);Dt.pos+=2}function Ie(t){let e=Pt.charCodeAt(Dt.pos+=t);if(Dt.pos<Pt.length)for(;e!==ft.lineFeed&&e!==ft.carriageReturn&&e!==ft.lineSeparator&&e!==ft.paragraphSeparator&&++Dt.pos<Pt.length;)e=Pt.charCodeAt(Dt.pos)}function Ee(){for(;Dt.pos<Pt.length;){const t=Pt.charCodeAt(Dt.pos);switch(t){case ft.carriageReturn:Pt.charCodeAt(Dt.pos+1)===ft.lineFeed&&++Dt.pos;case ft.lineFeed:case ft.lineSeparator:case ft.paragraphSeparator:++Dt.pos;break;case ft.slash:switch(Pt.charCodeAt(Dt.pos+1)){case ft.asterisk:Dt.pos+=2,Ce();break;case ft.slash:Ie(2);break;default:return}break;default:if(!Jt[t])return;++Dt.pos}}}function ke(t,e=dt.NONE){Dt.end=Dt.pos,Dt.type=t,Dt.contextualKeyword=e}function Le(){if(Dt.isType)return void Re(pt.greaterThan,1);const t=Pt.charCodeAt(Dt.pos+1);if(t===ft.greaterThan){const t=Pt.charCodeAt(Dt.pos+2)===ft.greaterThan?3:2;return Pt.charCodeAt(Dt.pos+t)===ft.equalsTo?void Re(pt.assign,t+1):void Re(pt.bitShiftR,t)}t===ft.equalsTo?Re(pt.relationalOrEqual,2):Re(pt.greaterThan,1)}function De(){Dt.type===pt.greaterThan&&(Dt.pos-=1,Le())}function Pe(t){switch(t){case ft.numberSign:return++Dt.pos,void ke(pt.hash);case ft.dot:return void function(){const t=Pt.charCodeAt(Dt.pos+1);t>=ft.digit0&&t<=ft.digit9?Ne(!0):t===ft.dot&&Pt.charCodeAt(Dt.pos+2)===ft.dot?(Dt.pos+=3,ke(pt.ellipsis)):(++Dt.pos,ke(pt.dot))}();case ft.leftParenthesis:return++Dt.pos,void ke(pt.parenL);case ft.rightParenthesis:return++Dt.pos,void ke(pt.parenR);case ft.semicolon:return++Dt.pos,void ke(pt.semi);case ft.comma:return++Dt.pos,void ke(pt.comma);case ft.leftSquareBracket:return++Dt.pos,void ke(pt.bracketL);case ft.rightSquareBracket:return++Dt.pos,void ke(pt.bracketR);case ft.leftCurlyBrace:return void(Lt&&Pt.charCodeAt(Dt.pos+1)===ft.verticalBar?Re(pt.braceBarL,2):(++Dt.pos,ke(pt.braceL)));case ft.rightCurlyBrace:return++Dt.pos,void ke(pt.braceR);case ft.colon:return void(Pt.charCodeAt(Dt.pos+1)===ft.colon?Re(pt.doubleColon,2):(++Dt.pos,ke(pt.colon)));case ft.questionMark:return void function(){const t=Pt.charCodeAt(Dt.pos+1),e=Pt.charCodeAt(Dt.pos+2);t!==ft.questionMark||Lt&&Dt.isType?t!==ft.dot||e>=ft.digit0&&e<=ft.digit9?(++Dt.pos,ke(pt.question)):(Dt.pos+=2,ke(pt.questionDot)):e===ft.equalsTo?Re(pt.assign,3):Re(pt.nullishCoalescing,2)}();case ft.atSign:return++Dt.pos,void ke(pt.at);case ft.graveAccent:return++Dt.pos,void ke(pt.backQuote);case ft.digit0:{const t=Pt.charCodeAt(Dt.pos+1);if(t===ft.lowercaseX||t===ft.uppercaseX||t===ft.lowercaseO||t===ft.uppercaseO||t===ft.lowercaseB||t===ft.uppercaseB)return void function(){Dt.pos+=2;for(;;){const t=Pt.charCodeAt(Dt.pos);if(!(t>=ft.digit0&&t<=ft.digit9||t>=ft.lowercaseA&&t<=ft.lowercaseF||t>=ft.uppercaseA&&t<=ft.uppercaseF||t===ft.underscore))break;Dt.pos++}const t=Pt.charCodeAt(Dt.pos);t===ft.lowercaseN?(++Dt.pos,ke(pt.bigint)):ke(pt.num)}()}case ft.digit1:case ft.digit2:case ft.digit3:case ft.digit4:case ft.digit5:case ft.digit6:case ft.digit7:case ft.digit8:case ft.digit9:return void Ne(!1);case ft.quotationMark:case ft.apostrophe:return void function(t){for(Dt.pos++;;){if(Dt.pos>=Pt.length)return void Zt("Unterminated string constant");const e=Pt.charCodeAt(Dt.pos);if(e===ft.backslash)Dt.pos++;else if(e===t)break;Dt.pos++}Dt.pos++,ke(pt.string)}(t);case ft.slash:return void(Pt.charCodeAt(Dt.pos+1)===ft.equalsTo?Re(pt.assign,2):Re(pt.slash,1));case ft.percentSign:case ft.asterisk:return void function(t){let e=t===ft.asterisk?pt.star:pt.modulo,n=1,i=Pt.charCodeAt(Dt.pos+1);t===ft.asterisk&&i===ft.asterisk&&(n++,i=Pt.charCodeAt(Dt.pos+2),e=pt.exponent),i===ft.equalsTo&&Pt.charCodeAt(Dt.pos+2)!==ft.greaterThan&&(n++,e=pt.assign),Re(e,n)}(t);case ft.verticalBar:case ft.ampersand:return void function(t){const e=Pt.charCodeAt(Dt.pos+1);if(e!==t){if(t===ft.verticalBar){if(e===ft.greaterThan)return void Re(pt.pipeline,2);if(e===ft.rightCurlyBrace&&Lt)return void Re(pt.braceBarR,2)}e!==ft.equalsTo?Re(t===ft.verticalBar?pt.bitwiseOR:pt.bitwiseAND,1):Re(pt.assign,2)}else Pt.charCodeAt(Dt.pos+2)===ft.equalsTo?Re(pt.assign,3):Re(t===ft.verticalBar?pt.logicalOR:pt.logicalAND,2)}(t);case ft.caret:return void(Pt.charCodeAt(Dt.pos+1)===ft.equalsTo?Re(pt.assign,2):Re(pt.bitwiseXOR,1));case ft.plusSign:case ft.dash:return void function(t){const e=Pt.charCodeAt(Dt.pos+1);e!==t?e===ft.equalsTo?Re(pt.assign,2):t===ft.plusSign?Re(pt.plus,1):Re(pt.minus,1):Re(pt.preIncDec,2)}(t);case ft.lessThan:return void function(){const t=Pt.charCodeAt(Dt.pos+1);if(t===ft.lessThan)return Pt.charCodeAt(Dt.pos+2)===ft.equalsTo?void Re(pt.assign,3):void(Dt.isType?Re(pt.lessThan,1):Re(pt.bitShiftL,2));t===ft.equalsTo?Re(pt.relationalOrEqual,2):Re(pt.lessThan,1)}();case ft.greaterThan:return void Le();case ft.equalsTo:case ft.exclamationMark:return void function(t){const e=Pt.charCodeAt(Dt.pos+1);if(e!==ft.equalsTo)return t===ft.equalsTo&&e===ft.greaterThan?(Dt.pos+=2,void ke(pt.arrow)):void Re(t===ft.equalsTo?pt.eq:pt.bang,1);Re(pt.equality,Pt.charCodeAt(Dt.pos+2)===ft.equalsTo?3:2)}(t);case ft.tilde:return void Re(pt.tilde,1)}Zt(`Unexpected character '${String.fromCharCode(t)}'`,Dt.pos)}function Re(t,e){Dt.pos+=e,ke(t)}function Oe(){for(;;){const t=Pt.charCodeAt(Dt.pos);if(!(t>=ft.digit0&&t<=ft.digit9||t===ft.underscore))break;Dt.pos++}}function Ne(t){let e=!1,n=!1;t||Oe();let i=Pt.charCodeAt(Dt.pos);i===ft.dot&&(++Dt.pos,Oe(),i=Pt.charCodeAt(Dt.pos)),i!==ft.uppercaseE&&i!==ft.lowercaseE||(i=Pt.charCodeAt(++Dt.pos),i!==ft.plusSign&&i!==ft.dash||++Dt.pos,Oe(),i=Pt.charCodeAt(Dt.pos)),i===ft.lowercaseN?(++Dt.pos,e=!0):i===ft.lowercaseM&&(++Dt.pos,n=!0),ke(e?pt.bigint:n?pt.decimal:pt.num)}function Fe(t,e=t.currentIndex()){let n=e+1;if(Be(t,n)){const i=t.identifierNameAtIndex(e);return{isType:!1,leftName:i,rightName:i,endIndex:n}}if(n++,Be(t,n))return{isType:!0,leftName:null,rightName:null,endIndex:n};if(n++,Be(t,n))return{isType:!1,leftName:t.identifierNameAtIndex(e),rightName:t.identifierNameAtIndex(e+2),endIndex:n};if(n++,Be(t,n))return{isType:!0,leftName:null,rightName:null,endIndex:n};throw new Error(`Unexpected import/export specifier at ${e}`)}function Be(t,e){const n=t.tokens[e];return n.type===pt.braceR||n.type===pt.comma}const ze=new Map([["quot",'"'],["amp","&"],["apos","'"],["lt","<"],["gt",">"],["nbsp","\xa0"],["iexcl","\xa1"],["cent","\xa2"],["pound","\xa3"],["curren","\xa4"],["yen","\xa5"],["brvbar","\xa6"],["sect","\xa7"],["uml","\xa8"],["copy","\xa9"],["ordf","\xaa"],["laquo","\xab"],["not","\xac"],["shy","\xad"],["reg","\xae"],["macr","\xaf"],["deg","\xb0"],["plusmn","\xb1"],["sup2","\xb2"],["sup3","\xb3"],["acute","\xb4"],["micro","\xb5"],["para","\xb6"],["middot","\xb7"],["cedil","\xb8"],["sup1","\xb9"],["ordm","\xba"],["raquo","\xbb"],["frac14","\xbc"],["frac12","\xbd"],["frac34","\xbe"],["iquest","\xbf"],["Agrave","\xc0"],["Aacute","\xc1"],["Acirc","\xc2"],["Atilde","\xc3"],["Auml","\xc4"],["Aring","\xc5"],["AElig","\xc6"],["Ccedil","\xc7"],["Egrave","\xc8"],["Eacute","\xc9"],["Ecirc","\xca"],["Euml","\xcb"],["Igrave","\xcc"],["Iacute","\xcd"],["Icirc","\xce"],["Iuml","\xcf"],["ETH","\xd0"],["Ntilde","\xd1"],["Ograve","\xd2"],["Oacute","\xd3"],["Ocirc","\xd4"],["Otilde","\xd5"],["Ouml","\xd6"],["times","\xd7"],["Oslash","\xd8"],["Ugrave","\xd9"],["Uacute","\xda"],["Ucirc","\xdb"],["Uuml","\xdc"],["Yacute","\xdd"],["THORN","\xde"],["szlig","\xdf"],["agrave","\xe0"],["aacute","\xe1"],["acirc","\xe2"],["atilde","\xe3"],["auml","\xe4"],["aring","\xe5"],["aelig","\xe6"],["ccedil","\xe7"],["egrave","\xe8"],["eacute","\xe9"],["ecirc","\xea"],["euml","\xeb"],["igrave","\xec"],["iacute","\xed"],["icirc","\xee"],["iuml","\xef"],["eth","\xf0"],["ntilde","\xf1"],["ograve","\xf2"],["oacute","\xf3"],["ocirc","\xf4"],["otilde","\xf5"],["ouml","\xf6"],["divide","\xf7"],["oslash","\xf8"],["ugrave","\xf9"],["uacute","\xfa"],["ucirc","\xfb"],["uuml","\xfc"],["yacute","\xfd"],["thorn","\xfe"],["yuml","\xff"],["OElig","\u0152"],["oelig","\u0153"],["Scaron","\u0160"],["scaron","\u0161"],["Yuml","\u0178"],["fnof","\u0192"],["circ","\u02c6"],["tilde","\u02dc"],["Alpha","\u0391"],["Beta","\u0392"],["Gamma","\u0393"],["Delta","\u0394"],["Epsilon","\u0395"],["Zeta","\u0396"],["Eta","\u0397"],["Theta","\u0398"],["Iota","\u0399"],["Kappa","\u039a"],["Lambda","\u039b"],["Mu","\u039c"],["Nu","\u039d"],["Xi","\u039e"],["Omicron","\u039f"],["Pi","\u03a0"],["Rho","\u03a1"],["Sigma","\u03a3"],["Tau","\u03a4"],["Upsilon","\u03a5"],["Phi","\u03a6"],["Chi","\u03a7"],["Psi","\u03a8"],["Omega","\u03a9"],["alpha","\u03b1"],["beta","\u03b2"],["gamma","\u03b3"],["delta","\u03b4"],["epsilon","\u03b5"],["zeta","\u03b6"],["eta","\u03b7"],["theta","\u03b8"],["iota","\u03b9"],["kappa","\u03ba"],["lambda","\u03bb"],["mu","\u03bc"],["nu","\u03bd"],["xi","\u03be"],["omicron","\u03bf"],["pi","\u03c0"],["rho","\u03c1"],["sigmaf","\u03c2"],["sigma","\u03c3"],["tau","\u03c4"],["upsilon","\u03c5"],["phi","\u03c6"],["chi","\u03c7"],["psi","\u03c8"],["omega","\u03c9"],["thetasym","\u03d1"],["upsih","\u03d2"],["piv","\u03d6"],["ensp","\u2002"],["emsp","\u2003"],["thinsp","\u2009"],["zwnj","\u200c"],["zwj","\u200d"],["lrm","\u200e"],["rlm","\u200f"],["ndash","\u2013"],["mdash","\u2014"],["lsquo","\u2018"],["rsquo","\u2019"],["sbquo","\u201a"],["ldquo","\u201c"],["rdquo","\u201d"],["bdquo","\u201e"],["dagger","\u2020"],["Dagger","\u2021"],["bull","\u2022"],["hellip","\u2026"],["permil","\u2030"],["prime","\u2032"],["Prime","\u2033"],["lsaquo","\u2039"],["rsaquo","\u203a"],["oline","\u203e"],["frasl","\u2044"],["euro","\u20ac"],["image","\u2111"],["weierp","\u2118"],["real","\u211c"],["trade","\u2122"],["alefsym","\u2135"],["larr","\u2190"],["uarr","\u2191"],["rarr","\u2192"],["darr","\u2193"],["harr","\u2194"],["crarr","\u21b5"],["lArr","\u21d0"],["uArr","\u21d1"],["rArr","\u21d2"],["dArr","\u21d3"],["hArr","\u21d4"],["forall","\u2200"],["part","\u2202"],["exist","\u2203"],["empty","\u2205"],["nabla","\u2207"],["isin","\u2208"],["notin","\u2209"],["ni","\u220b"],["prod","\u220f"],["sum","\u2211"],["minus","\u2212"],["lowast","\u2217"],["radic","\u221a"],["prop","\u221d"],["infin","\u221e"],["ang","\u2220"],["and","\u2227"],["or","\u2228"],["cap","\u2229"],["cup","\u222a"],["int","\u222b"],["there4","\u2234"],["sim","\u223c"],["cong","\u2245"],["asymp","\u2248"],["ne","\u2260"],["equiv","\u2261"],["le","\u2264"],["ge","\u2265"],["sub","\u2282"],["sup","\u2283"],["nsub","\u2284"],["sube","\u2286"],["supe","\u2287"],["oplus","\u2295"],["otimes","\u2297"],["perp","\u22a5"],["sdot","\u22c5"],["lceil","\u2308"],["rceil","\u2309"],["lfloor","\u230a"],["rfloor","\u230b"],["lang","\u2329"],["rang","\u232a"],["loz","\u25ca"],["spades","\u2660"],["clubs","\u2663"],["hearts","\u2665"],["diams","\u2666"]]);function Ge(t){const[e,n]=Ve(t.jsxPragma||"React.createElement"),[i,r]=Ve(t.jsxFragmentPragma||"React.Fragment");return{base:e,suffix:n,fragmentBase:i,fragmentSuffix:r}}function Ve(t){let e=t.indexOf(".");return-1===e&&(e=t.length),[t.slice(0,e),t.slice(e)]}class je{getPrefixCode(){return""}getHoistedCode(){return""}getSuffixCode(){return""}}class He extends je{__init(){this.lastLineNumber=1}__init2(){this.lastIndex=0}__init3(){this.filenameVarName=null}__init4(){this.esmAutomaticImportNameResolutions={}}__init5(){this.cjsAutomaticModuleNameResolutions={}}constructor(t,e,n,i,r){super(),this.rootTransformer=t,this.tokens=e,this.importProcessor=n,this.nameManager=i,this.options=r,He.prototype.__init.call(this),He.prototype.__init2.call(this),He.prototype.__init3.call(this),He.prototype.__init4.call(this),He.prototype.__init5.call(this),this.jsxPragmaInfo=Ge(r),this.isAutomaticRuntime="automatic"===r.jsxRuntime,this.jsxImportSource=r.jsxImportSource||"react"}process(){return!!this.tokens.matches1(pt.jsxTagStart)&&(this.processJSXTag(),!0)}getPrefixCode(){let t="";if(this.filenameVarName&&(t+=`const ${this.filenameVarName} = ${JSON.stringify(this.options.filePath||"")};`),this.isAutomaticRuntime)if(this.importProcessor)for(const[e,n]of Object.entries(this.cjsAutomaticModuleNameResolutions))t+=`var ${n} = require("${e}");`;else{const{createElement:e,...n}=this.esmAutomaticImportNameResolutions;e&&(t+=`import {createElement as ${e}} from "${this.jsxImportSource}";`);const i=Object.entries(n).map((([t,e])=>`${t} as ${e}`)).join(", ");if(i){t+=`import {${i}} from "${this.jsxImportSource+(this.options.production?"/jsx-runtime":"/jsx-dev-runtime")}";`}}return t}processJSXTag(){const{jsxRole:t,start:e}=this.tokens.currentToken(),n=this.options.production?null:this.getElementLocationCode(e);this.isAutomaticRuntime&&t!==re.KeyAfterPropSpread?this.transformTagToJSXFunc(n,t):this.transformTagToCreateElement(n)}getElementLocationCode(t){return`lineNumber: ${this.getLineNumberForIndex(t)}`}getLineNumberForIndex(t){const e=this.tokens.code;for(;this.lastIndex<t&&this.lastIndex<e.length;)"\n"===e[this.lastIndex]&&this.lastLineNumber++,this.lastIndex++;return this.lastLineNumber}transformTagToJSXFunc(t,e){const n=e===re.StaticChildren;this.tokens.replaceToken(this.getJSXFuncInvocationCode(n));let i=null;if(this.tokens.matches1(pt.jsxTagEnd))this.tokens.replaceToken(`${this.getFragmentCode()}, {`),this.processAutomaticChildrenAndEndProps(e);else{if(this.processTagIntro(),this.tokens.appendCode(", {"),i=this.processProps(!0),this.tokens.matches2(pt.slash,pt.jsxTagEnd))this.tokens.appendCode("}");else{if(!this.tokens.matches1(pt.jsxTagEnd))throw new Error("Expected either /> or > at the end of the tag.");this.tokens.removeToken(),this.processAutomaticChildrenAndEndProps(e)}i&&this.tokens.appendCode(`, ${i}`)}for(this.options.production||(null===i&&this.tokens.appendCode(", void 0"),this.tokens.appendCode(`, ${n}, ${this.getDevSource(t)}, this`)),this.tokens.removeInitialToken();!this.tokens.matches1(pt.jsxTagEnd);)this.tokens.removeToken();this.tokens.replaceToken(")")}transformTagToCreateElement(t){if(this.tokens.replaceToken(this.getCreateElementInvocationCode()),this.tokens.matches1(pt.jsxTagEnd))this.tokens.replaceToken(`${this.getFragmentCode()}, null`),this.processChildren(!0);else if(this.processTagIntro(),this.processPropsObjectWithDevInfo(t),this.tokens.matches2(pt.slash,pt.jsxTagEnd));else{if(!this.tokens.matches1(pt.jsxTagEnd))throw new Error("Expected either /> or > at the end of the tag.");this.tokens.removeToken(),this.processChildren(!0)}for(this.tokens.removeInitialToken();!this.tokens.matches1(pt.jsxTagEnd);)this.tokens.removeToken();this.tokens.replaceToken(")")}getJSXFuncInvocationCode(t){return this.options.production?t?this.claimAutoImportedFuncInvocation("jsxs","/jsx-runtime"):this.claimAutoImportedFuncInvocation("jsx","/jsx-runtime"):this.claimAutoImportedFuncInvocation("jsxDEV","/jsx-dev-runtime")}getCreateElementInvocationCode(){if(this.isAutomaticRuntime)return this.claimAutoImportedFuncInvocation("createElement","");{const{jsxPragmaInfo:t}=this;return`${this.importProcessor&&this.importProcessor.getIdentifierReplacement(t.base)||t.base}${t.suffix}(`}}getFragmentCode(){if(this.isAutomaticRuntime)return this.claimAutoImportedName("Fragment",this.options.production?"/jsx-runtime":"/jsx-dev-runtime");{const{jsxPragmaInfo:t}=this;return(this.importProcessor&&this.importProcessor.getIdentifierReplacement(t.fragmentBase)||t.fragmentBase)+t.fragmentSuffix}}claimAutoImportedFuncInvocation(t,e){const n=this.claimAutoImportedName(t,e);return this.importProcessor?`${n}.call(void 0, `:`${n}(`}claimAutoImportedName(t,e){if(this.importProcessor){const n=this.jsxImportSource+e;return this.cjsAutomaticModuleNameResolutions[n]||(this.cjsAutomaticModuleNameResolutions[n]=this.importProcessor.getFreeIdentifierForPath(n)),`${this.cjsAutomaticModuleNameResolutions[n]}.${t}`}return this.esmAutomaticImportNameResolutions[t]||(this.esmAutomaticImportNameResolutions[t]=this.nameManager.claimFreeName(`_${t}`)),this.esmAutomaticImportNameResolutions[t]}processTagIntro(){let t=this.tokens.currentIndex()+1;for(;this.tokens.tokens[t].isType||!this.tokens.matches2AtIndex(t-1,pt.jsxName,pt.jsxName)&&!this.tokens.matches2AtIndex(t-1,pt.greaterThan,pt.jsxName)&&!this.tokens.matches1AtIndex(t,pt.braceL)&&!this.tokens.matches1AtIndex(t,pt.jsxTagEnd)&&!this.tokens.matches2AtIndex(t,pt.slash,pt.jsxTagEnd);)t++;if(t===this.tokens.currentIndex()+1){const t=this.tokens.identifierName();We(t)&&this.tokens.replaceToken(`'${t}'`)}for(;this.tokens.currentIndex()<t;)this.rootTransformer.processToken()}processPropsObjectWithDevInfo(t){const e=this.options.production?"":`__self: this, __source: ${this.getDevSource(t)}`;this.tokens.matches1(pt.jsxName)||this.tokens.matches1(pt.braceL)?(this.tokens.appendCode(", {"),this.processProps(!1),e?this.tokens.appendCode(` ${e}}`):this.tokens.appendCode("}")):e?this.tokens.appendCode(`, {${e}}`):this.tokens.appendCode(", null")}processProps(t){let e=null;for(;;){if(this.tokens.matches2(pt.jsxName,pt.eq)){const n=this.tokens.identifierName();if(t&&"key"===n){null!==e&&this.tokens.appendCode(e.replace(/[^\n]/g,"")),this.tokens.removeToken(),this.tokens.removeToken();const t=this.tokens.snapshot();this.processPropValue(),e=this.tokens.dangerouslyGetAndRemoveCodeSinceSnapshot(t);continue}this.processPropName(n),this.tokens.replaceToken(": "),this.processPropValue()}else if(this.tokens.matches1(pt.jsxName)){const t=this.tokens.identifierName();this.processPropName(t),this.tokens.appendCode(": true")}else{if(!this.tokens.matches1(pt.braceL))break;this.tokens.replaceToken(""),this.rootTransformer.processBalancedCode(),this.tokens.replaceToken("")}this.tokens.appendCode(",")}return e}processPropName(t){t.includes("-")?this.tokens.replaceToken(`'${t}'`):this.tokens.copyToken()}processPropValue(){this.tokens.matches1(pt.braceL)?(this.tokens.replaceToken(""),this.rootTransformer.processBalancedCode(),this.tokens.replaceToken("")):this.tokens.matches1(pt.jsxTagStart)?this.processJSXTag():this.processStringPropValue()}processStringPropValue(){const t=this.tokens.currentToken(),e=this.tokens.code.slice(t.start+1,t.end-1),n=Ue(e),i=function(t){let e="";for(let n=0;n<t.length;n++){const i=t[n];if("\n"===i)if(/\s/.test(t[n+1]))for(e+=" ";n<t.length&&/\s/.test(t[n+1]);)n++;else e+="\n";else if("&"===i){const{entity:i,newI:r}=qe(t,n+1);e+=i,n=r-1}else e+=i}return JSON.stringify(e)}(e);this.tokens.replaceToken(i+n)}processAutomaticChildrenAndEndProps(t){t===re.StaticChildren?(this.tokens.appendCode(" children: ["),this.processChildren(!1),this.tokens.appendCode("]}")):(t===re.OneChild&&this.tokens.appendCode(" children: "),this.processChildren(!1),this.tokens.appendCode("}"))}processChildren(t){let e=t;for(;;){if(this.tokens.matches2(pt.jsxTagStart,pt.slash))return;let t=!1;if(this.tokens.matches1(pt.braceL))this.tokens.matches2(pt.braceL,pt.braceR)?(this.tokens.replaceToken(""),this.tokens.replaceToken("")):(this.tokens.replaceToken(e?", ":""),this.rootTransformer.processBalancedCode(),this.tokens.replaceToken(""),t=!0);else if(this.tokens.matches1(pt.jsxTagStart))this.tokens.appendCode(e?", ":""),this.processJSXTag(),t=!0;else{if(!this.tokens.matches1(pt.jsxText)&&!this.tokens.matches1(pt.jsxEmptyText))throw new Error("Unexpected token when processing JSX children.");t=this.processChildTextElement(e)}t&&(e=!0)}}processChildTextElement(t){const e=this.tokens.currentToken(),n=this.tokens.code.slice(e.start,e.end),i=Ue(n),r=function(t){let e="",n="",i=!1,r=!1;for(let o=0;o<t.length;o++){const a=t[o];if(" "===a||"\t"===a||"\r"===a)i||(n+=a);else if("\n"===a)n="",i=!0;else{if(r&&i&&(e+=" "),e+=n,n="","&"===a){const{entity:n,newI:i}=qe(t,o+1);o=i-1,e+=n}else e+=a;r=!0,i=!1}}i||(e+=n);return JSON.stringify(e)}(n);return'""'===r?(this.tokens.replaceToken(i),!1):(this.tokens.replaceToken(`${t?", ":""}${r}${i}`),!0)}getDevSource(t){return`{fileName: ${this.getFilenameVarName()}, ${t}}`}getFilenameVarName(){return this.filenameVarName||(this.filenameVarName=this.nameManager.claimFreeName("_jsxFileName")),this.filenameVarName}}function We(t){const e=t.charCodeAt(0);return e>=ft.lowercaseA&&e<=ft.lowercaseZ}function Ue(t){let e=0,n=0;for(const i of t)"\n"===i?(e++,n=0):" "===i&&n++;return"\n".repeat(e)+" ".repeat(n)}function qe(t,e){let n,i="",r=0,o=e;if("#"===t[o]){let e,i=10;if(o++,"x"===t[o])for(i=16,o++,e=o;o<t.length&&((a=t.charCodeAt(o))>=ft.digit0&&a<=ft.digit9||a>=ft.lowercaseA&&a<=ft.lowercaseF||a>=ft.uppercaseA&&a<=ft.uppercaseF);)o++;else for(e=o;o<t.length&&Xe(t.charCodeAt(o));)o++;if(";"===t[o]){const r=t.slice(e,o);r&&(o++,n=String.fromCodePoint(parseInt(r,i)))}}else for(;o<t.length&&r++<10;){const e=t[o];if(o++,";"===e){n=ze.get(i);break}i+=e}var a;return n?{entity:n,newI:o}:{entity:"&",newI:e}}function Xe(t){return t>=ft.digit0&&t<=ft.digit9}function Ye(t,e){const n=Ge(e),i=new Set;for(let r=0;r<t.tokens.length;r++){const e=t.tokens[r];if(e.type!==pt.name||e.isType||e.identifierRole!==ie.Access&&e.identifierRole!==ie.ObjectShorthand&&e.identifierRole!==ie.ExportAccess||e.shadowsGlobal||i.add(t.identifierNameForToken(e)),e.type===pt.jsxTagStart&&i.add(n.base),e.type===pt.jsxTagStart&&r+1<t.tokens.length&&t.tokens[r+1].type===pt.jsxTagEnd&&(i.add(n.base),i.add(n.fragmentBase)),e.type===pt.jsxName&&e.identifierRole===ie.Access){We(t.identifierNameForToken(e))&&t.tokens[r+1].type!==pt.dot||i.add(t.identifierNameForToken(e))}}return i}class Ze{__init(){this.nonTypeIdentifiers=new Set}__init2(){this.importInfoByPath=new Map}__init3(){this.importsToReplace=new Map}__init4(){this.identifierReplacements=new Map}__init5(){this.exportBindingsByLocalName=new Map}constructor(t,e,n,i,r,o,a){this.nameManager=t,this.tokens=e,this.enableLegacyTypeScriptModuleInterop=n,this.options=i,this.isTypeScriptTransformEnabled=r,this.keepUnusedImports=o,this.helperManager=a,Ze.prototype.__init.call(this),Ze.prototype.__init2.call(this),Ze.prototype.__init3.call(this),Ze.prototype.__init4.call(this),Ze.prototype.__init5.call(this)}preprocessTokens(){for(let t=0;t<this.tokens.tokens.length;t++)this.tokens.matches1AtIndex(t,pt._import)&&!this.tokens.matches3AtIndex(t,pt._import,pt.name,pt.eq)&&this.preprocessImportAtIndex(t),this.tokens.matches1AtIndex(t,pt._export)&&!this.tokens.matches2AtIndex(t,pt._export,pt.eq)&&this.preprocessExportAtIndex(t);this.generateImportReplacements()}pruneTypeOnlyImports(){this.nonTypeIdentifiers=Ye(this.tokens,this.options);for(const[t,e]of this.importInfoByPath.entries()){if(e.hasBareImport||e.hasStarExport||e.exportStarNames.length>0||e.namedExports.length>0)continue;[...e.defaultNames,...e.wildcardNames,...e.namedImports.map((({localName:t})=>t))].every((t=>this.shouldAutomaticallyElideImportedName(t)))&&this.importsToReplace.set(t,"")}}shouldAutomaticallyElideImportedName(t){return this.isTypeScriptTransformEnabled&&!this.keepUnusedImports&&!this.nonTypeIdentifiers.has(t)}generateImportReplacements(){for(const[t,e]of this.importInfoByPath.entries()){const{defaultNames:n,wildcardNames:i,namedImports:r,namedExports:o,exportStarNames:a,hasStarExport:s}=e;if(0===n.length&&0===i.length&&0===r.length&&0===o.length&&0===a.length&&!s){this.importsToReplace.set(t,`require('${t}');`);continue}const l=this.getFreeIdentifierForPath(t);let h;h=this.enableLegacyTypeScriptModuleInterop?l:i.length>0?i[0]:this.getFreeIdentifierForPath(t);let c=`var ${l} = require('${t}');`;if(i.length>0)for(const t of i){c+=` var ${t} = ${this.enableLegacyTypeScriptModuleInterop?l:`${this.helperManager.getHelperName("interopRequireWildcard")}(${l})`};`}else a.length>0&&h!==l?c+=` var ${h} = ${this.helperManager.getHelperName("interopRequireWildcard")}(${l});`:n.length>0&&h!==l&&(c+=` var ${h} = ${this.helperManager.getHelperName("interopRequireDefault")}(${l});`);for(const{importedName:t,localName:e}of o)c+=` ${this.helperManager.getHelperName("createNamedExportFrom")}(${l}, '${e}', '${t}');`;for(const t of a)c+=` exports.${t} = ${h};`;s&&(c+=` ${this.helperManager.getHelperName("createStarExport")}(${l});`),this.importsToReplace.set(t,c);for(const t of n)this.identifierReplacements.set(t,`${h}.default`);for(const{importedName:t,localName:e}of r)this.identifierReplacements.set(e,`${l}.${t}`)}}getFreeIdentifierForPath(t){const e=t.split("/"),n=e[e.length-1].replace(/\W/g,"");return this.nameManager.claimFreeName(`_${n}`)}preprocessImportAtIndex(t){const e=[],n=[],i=[];if(t++,(this.tokens.matchesContextualAtIndex(t,dt._type)||this.tokens.matches1AtIndex(t,pt._typeof))&&!this.tokens.matches1AtIndex(t+1,pt.comma)&&!this.tokens.matchesContextualAtIndex(t+1,dt._from))return;if(this.tokens.matches1AtIndex(t,pt.parenL))return;if(this.tokens.matches1AtIndex(t,pt.name)&&(e.push(this.tokens.identifierNameAtIndex(t)),t++,this.tokens.matches1AtIndex(t,pt.comma)&&t++),this.tokens.matches1AtIndex(t,pt.star)&&(t+=2,n.push(this.tokens.identifierNameAtIndex(t)),t++),this.tokens.matches1AtIndex(t,pt.braceL)){const n=this.getNamedImports(t+1);t=n.newIndex;for(const t of n.namedImports)"default"===t.importedName?e.push(t.localName):i.push(t)}if(this.tokens.matchesContextualAtIndex(t,dt._from)&&t++,!this.tokens.matches1AtIndex(t,pt.string))throw new Error("Expected string token at the end of import statement.");const r=this.tokens.stringValueAtIndex(t),o=this.getImportInfo(r);o.defaultNames.push(...e),o.wildcardNames.push(...n),o.namedImports.push(...i),0===e.length&&0===n.length&&0===i.length&&(o.hasBareImport=!0)}preprocessExportAtIndex(t){if(this.tokens.matches2AtIndex(t,pt._export,pt._var)||this.tokens.matches2AtIndex(t,pt._export,pt._let)||this.tokens.matches2AtIndex(t,pt._export,pt._const))this.preprocessVarExportAtIndex(t);else if(this.tokens.matches2AtIndex(t,pt._export,pt._function)||this.tokens.matches2AtIndex(t,pt._export,pt._class)){const e=this.tokens.identifierNameAtIndex(t+2);this.addExportBinding(e,e)}else if(this.tokens.matches3AtIndex(t,pt._export,pt.name,pt._function)){const e=this.tokens.identifierNameAtIndex(t+3);this.addExportBinding(e,e)}else this.tokens.matches2AtIndex(t,pt._export,pt.braceL)?this.preprocessNamedExportAtIndex(t):this.tokens.matches2AtIndex(t,pt._export,pt.star)&&this.preprocessExportStarAtIndex(t)}preprocessVarExportAtIndex(t){let e=0;for(let n=t+2;;n++)if(this.tokens.matches1AtIndex(n,pt.braceL)||this.tokens.matches1AtIndex(n,pt.dollarBraceL)||this.tokens.matches1AtIndex(n,pt.bracketL))e++;else if(this.tokens.matches1AtIndex(n,pt.braceR)||this.tokens.matches1AtIndex(n,pt.bracketR))e--;else{if(0===e&&!this.tokens.matches1AtIndex(n,pt.name))break;if(this.tokens.matches1AtIndex(1,pt.eq)){const t=this.tokens.currentToken().rhsEndIndex;if(null==t)throw new Error("Expected = token with an end index.");n=t-1}else{if(oe(this.tokens.tokens[n])){const t=this.tokens.identifierNameAtIndex(n);this.identifierReplacements.set(t,`exports.${t}`)}}}}preprocessNamedExportAtIndex(t){t+=2;const{newIndex:e,namedImports:n}=this.getNamedImports(t);if(t=e,!this.tokens.matchesContextualAtIndex(t,dt._from)){for(const{importedName:t,localName:e}of n)this.addExportBinding(t,e);return}if(t++,!this.tokens.matches1AtIndex(t,pt.string))throw new Error("Expected string token at the end of import statement.");const i=this.tokens.stringValueAtIndex(t);this.getImportInfo(i).namedExports.push(...n)}preprocessExportStarAtIndex(t){let e=null;if(this.tokens.matches3AtIndex(t,pt._export,pt.star,pt._as)?(t+=3,e=this.tokens.identifierNameAtIndex(t),t+=2):t+=3,!this.tokens.matches1AtIndex(t,pt.string))throw new Error("Expected string token at the end of star export statement.");const n=this.tokens.stringValueAtIndex(t),i=this.getImportInfo(n);null!==e?i.exportStarNames.push(e):i.hasStarExport=!0}getNamedImports(t){const e=[];for(;;){if(this.tokens.matches1AtIndex(t,pt.braceR)){t++;break}const n=Fe(this.tokens,t);if(t=n.endIndex,n.isType||e.push({importedName:n.leftName,localName:n.rightName}),this.tokens.matches2AtIndex(t,pt.comma,pt.braceR)){t+=2;break}if(this.tokens.matches1AtIndex(t,pt.braceR)){t++;break}if(!this.tokens.matches1AtIndex(t,pt.comma))throw new Error(`Unexpected token: ${JSON.stringify(this.tokens.tokens[t])}`);t++}return{newIndex:t,namedImports:e}}getImportInfo(t){const e=this.importInfoByPath.get(t);if(e)return e;const n={defaultNames:[],wildcardNames:[],namedImports:[],namedExports:[],hasBareImport:!1,exportStarNames:[],hasStarExport:!1};return this.importInfoByPath.set(t,n),n}addExportBinding(t,e){this.exportBindingsByLocalName.has(t)||this.exportBindingsByLocalName.set(t,[]),this.exportBindingsByLocalName.get(t).push(e)}claimImportCode(t){const e=this.importsToReplace.get(t);return this.importsToReplace.set(t,""),e||""}getIdentifierReplacement(t){return this.identifierReplacements.get(t)||null}resolveExportBinding(t){const e=this.exportBindingsByLocalName.get(t);return e&&0!==e.length?e.map((t=>`exports.${t}`)).join(" = "):null}getGlobalNames(){return new Set([...this.identifierReplacements.keys(),...this.exportBindingsByLocalName.keys()])}}var $e=n(6455);function Ke({code:t,mappings:e},n,i,r,o){const a=function(t,e){const n=new Array(e.length);let i=0,r=e[i].start,o=0;for(let a=0;a<t.length;a++)a===r&&(n[i]=r-o,i++,r=e[i].start),t.charCodeAt(a)===ft.lineFeed&&(o=a+1);return n}(r,o),s=new $e.GenMapping({file:i.compiledFilename});let l=0,h=e[0];for(;void 0===h&&l<e.length-1;)l++,h=e[l];let c=0,u=0;h!==u&&(0,$e.maybeAddSegment)(s,c,0,n,c,0);for(let g=0;g<t.length;g++){if(g===h){const t=h-u,i=a[l];for((0,$e.maybeAddSegment)(s,c,t,n,c,i);(h===g||void 0===h)&&l<e.length-1;)l++,h=e[l]}t.charCodeAt(g)===ft.lineFeed&&(c++,u=g+1,h!==u&&(0,$e.maybeAddSegment)(s,c,0,n,c,0))}const{sourceRoot:d,sourcesContent:p,...f}=(0,$e.toEncodedMap)(s);return f}const Je={require:'\n import {createRequire as CREATE_REQUIRE_NAME} from "module";\n const require = CREATE_REQUIRE_NAME(import.meta.url);\n ',interopRequireWildcard:"\n function interopRequireWildcard(obj) {\n if (obj && obj.__esModule) {\n return obj;\n } else {\n var newObj = {};\n if (obj != null) {\n for (var key in obj) {\n if (Object.prototype.hasOwnProperty.call(obj, key)) {\n newObj[key] = obj[key];\n }\n }\n }\n newObj.default = obj;\n return newObj;\n }\n }\n ",interopRequireDefault:"\n function interopRequireDefault(obj) {\n return obj && obj.__esModule ? obj : { default: obj };\n }\n ",createNamedExportFrom:"\n function createNamedExportFrom(obj, localName, importedName) {\n Object.defineProperty(exports, localName, {enumerable: true, configurable: true, get: () => obj[importedName]});\n }\n ",createStarExport:'\n function createStarExport(obj) {\n Object.keys(obj)\n .filter((key) => key !== "default" && key !== "__esModule")\n .forEach((key) => {\n if (exports.hasOwnProperty(key)) {\n return;\n }\n Object.defineProperty(exports, key, {enumerable: true, configurable: true, get: () => obj[key]});\n });\n }\n ',nullishCoalesce:"\n function nullishCoalesce(lhs, rhsFn) {\n if (lhs != null) {\n return lhs;\n } else {\n return rhsFn();\n }\n }\n ",asyncNullishCoalesce:"\n async function asyncNullishCoalesce(lhs, rhsFn) {\n if (lhs != null) {\n return lhs;\n } else {\n return await rhsFn();\n }\n }\n ",optionalChain:"\n function optionalChain(ops) {\n let lastAccessLHS = undefined;\n let value = ops[0];\n let i = 1;\n while (i < ops.length) {\n const op = ops[i];\n const fn = ops[i + 1];\n i += 2;\n if ((op === 'optionalAccess' || op === 'optionalCall') && value == null) {\n return undefined;\n }\n if (op === 'access' || op === 'optionalAccess') {\n lastAccessLHS = value;\n value = fn(value);\n } else if (op === 'call' || op === 'optionalCall') {\n value = fn((...args) => value.call(lastAccessLHS, ...args));\n lastAccessLHS = undefined;\n }\n }\n return value;\n }\n ",asyncOptionalChain:"\n async function asyncOptionalChain(ops) {\n let lastAccessLHS = undefined;\n let value = ops[0];\n let i = 1;\n while (i < ops.length) {\n const op = ops[i];\n const fn = ops[i + 1];\n i += 2;\n if ((op === 'optionalAccess' || op === 'optionalCall') && value == null) {\n return undefined;\n }\n if (op === 'access' || op === 'optionalAccess') {\n lastAccessLHS = value;\n value = await fn(value);\n } else if (op === 'call' || op === 'optionalCall') {\n value = await fn((...args) => value.call(lastAccessLHS, ...args));\n lastAccessLHS = undefined;\n }\n }\n return value;\n }\n ",optionalChainDelete:"\n function optionalChainDelete(ops) {\n const result = OPTIONAL_CHAIN_NAME(ops);\n return result == null ? true : result;\n }\n ",asyncOptionalChainDelete:"\n async function asyncOptionalChainDelete(ops) {\n const result = await ASYNC_OPTIONAL_CHAIN_NAME(ops);\n return result == null ? true : result;\n }\n "};class Qe{__init(){this.helperNames={}}__init2(){this.createRequireName=null}constructor(t){this.nameManager=t,Qe.prototype.__init.call(this),Qe.prototype.__init2.call(this)}getHelperName(t){let e=this.helperNames[t];return e||(e=this.nameManager.claimFreeName(`_${t}`),this.helperNames[t]=e,e)}emitHelpers(){let t="";this.helperNames.optionalChainDelete&&this.getHelperName("optionalChain"),this.helperNames.asyncOptionalChainDelete&&this.getHelperName("asyncOptionalChain");for(const[e,n]of Object.entries(Je)){const i=this.helperNames[e];let r=n;"optionalChainDelete"===e?r=r.replace("OPTIONAL_CHAIN_NAME",this.helperNames.optionalChain):"asyncOptionalChainDelete"===e?r=r.replace("ASYNC_OPTIONAL_CHAIN_NAME",this.helperNames.asyncOptionalChain):"require"===e&&(null===this.createRequireName&&(this.createRequireName=this.nameManager.claimFreeName("_createRequire")),r=r.replace(/CREATE_REQUIRE_NAME/g,this.createRequireName)),i&&(t+=" ",t+=r.replace(e,i).replace(/\s+/g," ").trim())}return t}}function tn(t,e,n){(function(t,e){for(const n of t.tokens)if(n.type===pt.name&&!n.isType&&ae(n)&&e.has(t.identifierNameForToken(n)))return!0;return!1})(t,n)&&function(t,e,n){const i=[];let r=e.length-1;for(let o=t.tokens.length-1;;o--){for(;i.length>0&&i[i.length-1].startTokenIndex===o+1;)i.pop();for(;r>=0&&e[r].endTokenIndex===o+1;)i.push(e[r]),r--;if(o<0)break;const a=t.tokens[o],s=t.identifierNameForToken(a);if(i.length>1&&!a.isType&&a.type===pt.name&&n.has(s))if(le(a))en(i[i.length-1],t,s);else if(he(a)){let e=i.length-1;for(;e>0&&!i[e].isFunctionScope;)e--;if(e<0)throw new Error("Did not find parent function scope.");en(i[e],t,s)}}if(i.length>0)throw new Error("Expected empty scope stack after processing file.")}(t,e,n)}function en(t,e,n){for(let i=t.startTokenIndex;i<t.endTokenIndex;i++){const t=e.tokens[i];t.type!==pt.name&&t.type!==pt.jsxName||e.identifierNameForToken(t)!==n||(t.shadowsGlobal=!0)}}class nn{__init(){this.usedNames=new Set}constructor(t,e){nn.prototype.__init.call(this),this.usedNames=new Set(function(t,e){const n=[];for(const i of e)i.type===pt.name&&n.push(t.slice(i.start,i.end));return n}(t,e))}claimFreeName(t){const e=this.findFreeName(t);return this.usedNames.add(e),e}findFreeName(t){if(!this.usedNames.has(t))return t;let e=2;for(;this.usedNames.has(t+String(e));)e++;return t+String(e)}}var rn=n(1981);const on={Transform:rn.union(rn.lit("jsx"),rn.lit("typescript"),rn.lit("flow"),rn.lit("imports"),rn.lit("react-hot-loader"),rn.lit("jest")),SourceMapOptions:rn.iface([],{compiledFilename:"string"}),Options:rn.iface([],{transforms:rn.array("Transform"),disableESTransforms:rn.opt("boolean"),jsxRuntime:rn.opt(rn.union(rn.lit("classic"),rn.lit("automatic"),rn.lit("preserve"))),production:rn.opt("boolean"),jsxImportSource:rn.opt("string"),jsxPragma:rn.opt("string"),jsxFragmentPragma:rn.opt("string"),keepUnusedImports:rn.opt("boolean"),preserveDynamicImport:rn.opt("boolean"),injectCreateRequireForImportRequire:rn.opt("boolean"),enableLegacyTypeScriptModuleInterop:rn.opt("boolean"),enableLegacyBabel5ModuleInterop:rn.opt("boolean"),sourceMapOptions:rn.opt("SourceMapOptions"),filePath:rn.opt("string")})},{Options:an}=(0,rn.createCheckers)(on);function sn(){de(),bi(!1)}function ln(t){de(),dn(t)}function hn(t){Ji(),un(t)}function cn(){Ji(),Dt.tokens[Dt.tokens.length-1].identifierRole=ie.ImportDeclaration}function un(t){let e;e=0===Dt.scopeDepth?ie.TopLevelDeclaration:t?ie.BlockScopedDeclaration:ie.FunctionScopedDeclaration,Dt.tokens[Dt.tokens.length-1].identifierRole=e}function dn(t){switch(Dt.type){case pt._this:{const t=ge(0);return de(),void me(t)}case pt._yield:case pt.name:return Dt.type=pt.name,void hn(t);case pt.bracketL:return de(),void pn(pt.bracketR,t,!0);case pt.braceL:return void ji(!0,t);default:Zt()}}function pn(t,e,n=!1,i=!1,r=0){let o=!0,a=!1;const s=Dt.tokens.length;for(;!ve(t)&&!Dt.error;)if(o?o=!1:(Yt(pt.comma),Dt.tokens[Dt.tokens.length-1].contextId=r,!a&&Dt.tokens[s].isType&&(Dt.tokens[Dt.tokens.length-1].isType=!0,a=!0)),n&&_e(pt.comma));else{if(ve(t))break;if(_e(pt.ellipsis)){ln(e),gn(),ve(pt.comma),Yt(t);break}fn(i,e)}}function fn(t,e){t&&_n([dt._public,dt._protected,dt._private,dt._readonly,dt._override]),mn(e),gn(),mn(e,!0)}function gn(){Lt?function(){const t=ge(0);ve(pt.question),_e(pt.colon)&&Tr();me(t)}():kt&&function(){const t=ge(0);ve(pt.question),Hn(),me(t)}()}function mn(t,e=!1){if(e||dn(t),!ve(pt.eq))return;const n=Dt.tokens.length-1;bi(),Dt.tokens[n].rhsEndIndex=Dt.tokens.length}function vn(){return _e(pt.name)}function yn(){const t=Dt.snapshot();de();return!!((_e(pt.bracketL)||_e(pt.braceL)||_e(pt.star)||_e(pt.ellipsis)||_e(pt.hash)||_e(pt.name)||Boolean(Dt.type&pt.IS_KEYWORD)||_e(pt.string)||_e(pt.num)||_e(pt.bigint)||_e(pt.decimal))&&!Wt())||(Dt.restoreFromSnapshot(t),!1)}function _n(t){for(;;){if(null===xn(t))break}}function xn(t){if(!_e(pt.name))return null;const e=Dt.contextualKeyword;if(-1!==t.indexOf(e)&&yn()){switch(e){case dt._readonly:Dt.tokens[Dt.tokens.length-1].type=pt._readonly;break;case dt._abstract:Dt.tokens[Dt.tokens.length-1].type=pt._abstract;break;case dt._static:Dt.tokens[Dt.tokens.length-1].type=pt._static;break;case dt._public:Dt.tokens[Dt.tokens.length-1].type=pt._public;break;case dt._private:Dt.tokens[Dt.tokens.length-1].type=pt._private;break;case dt._protected:Dt.tokens[Dt.tokens.length-1].type=pt._protected;break;case dt._override:Dt.tokens[Dt.tokens.length-1].type=pt._override;break;case dt._declare:Dt.tokens[Dt.tokens.length-1].type=pt._declare}return e}return null}function bn(){for(Ji();ve(pt.dot);)Ji()}function wn(){Yt(pt._import),Yt(pt.parenL),Yt(pt.string),Yt(pt.parenR),ve(pt.dot)&&bn(),_e(pt.lessThan)&&si()}function Sn(){ve(pt._const);const t=ve(pt._in),e=Vt(dt._out);ve(pt._const),!t&&!e||_e(pt.name)?Ji():Dt.tokens[Dt.tokens.length-1].type=pt.name,ve(pt._extends)&&Un(),ve(pt.eq)&&Un()}function Tn(){_e(pt.lessThan)&&Mn()}function Mn(){const t=ge(0);for(_e(pt.lessThan)||_e(pt.typeParameterStart)?de():Zt();!ve(pt.greaterThan)&&!Dt.error;)Sn(),ve(pt.comma);me(t)}function An(t){const e=t===pt.arrow;var n;Tn(),Yt(pt.parenL),Dt.scopeDepth++,n=!1,pn(pt.parenR,n),Dt.scopeDepth--,(e||_e(t))&&jn(t)}function Cn(){ve(pt.comma)||Xt()}function In(){An(pt.colon),Cn()}function En(){if(!_e(pt.bracketL)||!function(){const t=Dt.snapshot();de();const e=ve(pt.name)&&_e(pt.colon);return Dt.restoreFromSnapshot(t),e}())return!1;const t=ge(0);return Yt(pt.bracketL),Ji(),Wn(),Yt(pt.bracketR),Hn(),Cn(),me(t),!0}function kn(t){ve(pt.question),t||!_e(pt.parenL)&&!_e(pt.lessThan)?(Hn(),Cn()):(An(pt.colon),Cn())}function Ln(){if(_e(pt.parenL)||_e(pt.lessThan))return void In();if(_e(pt._new))return de(),void(_e(pt.parenL)||_e(pt.lessThan)?In():kn(!1));const t=!!xn([dt._readonly]);En()||((zt(dt._get)||zt(dt._set))&&yn(),Ui(-1),kn(t))}function Dn(){for(Yt(pt.braceL);!ve(pt.braceR)&&!Dt.error;)Ln()}function Pn(){const t=Dt.snapshot(),e=function(){if(de(),ve(pt.plus)||ve(pt.minus))return zt(dt._readonly);zt(dt._readonly)&&de();if(!_e(pt.bracketL))return!1;if(de(),!vn())return!1;return de(),_e(pt._in)}();return Dt.restoreFromSnapshot(t),e}function Rn(){Yt(pt.braceL),_e(pt.plus)||_e(pt.minus)?(de(),jt(dt._readonly)):Vt(dt._readonly),Yt(pt.bracketL),Ji(),Yt(pt._in),Un(),Vt(dt._as)&&Un(),Yt(pt.bracketR),_e(pt.plus)||_e(pt.minus)?(de(),Yt(pt.question)):ve(pt.question),ve(pt.colon)&&Un(),Xt(),Yt(pt.braceR)}function On(){ve(pt.ellipsis)?Un():(Un(),ve(pt.question)),ve(pt.colon)&&Un()}var Nn;function Fn(t){t===Nn.TSAbstractConstructorType&&jt(dt._abstract),t!==Nn.TSConstructorType&&t!==Nn.TSAbstractConstructorType||Yt(pt._new);const e=Dt.inDisallowConditionalTypesContext;Dt.inDisallowConditionalTypesContext=!1,An(pt.arrow),Dt.inDisallowConditionalTypesContext=e}function Bn(){switch(Dt.type){case pt.name:return bn(),void(!Wt()&&_e(pt.lessThan)&&si());case pt._void:case pt._null:return void de();case pt.string:case pt.num:case pt.bigint:case pt.decimal:case pt._true:case pt._false:return void Ni();case pt.minus:return de(),void Ni();case pt._this:return de(),void(zt(dt._is)&&!Wt()&&(de(),Wn()));case pt._typeof:return Yt(pt._typeof),_e(pt._import)?wn():bn(),void(!Wt()&&_e(pt.lessThan)&&si());case pt._import:return void wn();case pt.braceL:return void(Pn()?Rn():Dn());case pt.bracketL:return void function(){for(Yt(pt.bracketL);!ve(pt.bracketR)&&!Dt.error;)On(),ve(pt.comma)}();case pt.parenL:return Yt(pt.parenL),Un(),void Yt(pt.parenR);case pt.backQuote:return void function(){for(pe(),pe();!_e(pt.backQuote)&&!Dt.error;)Yt(pt.dollarBraceL),Un(),pe(),pe();de()}();default:if(Dt.type&pt.IS_KEYWORD)return de(),void(Dt.tokens[Dt.tokens.length-1].type=pt.name)}Zt()}function zn(){if(zt(dt._keyof)||zt(dt._unique)||zt(dt._readonly))de(),zn();else if(zt(dt._infer))!function(){if(jt(dt._infer),Ji(),_e(pt._extends)){const t=Dt.snapshot();Yt(pt._extends);const e=Dt.inDisallowConditionalTypesContext;Dt.inDisallowConditionalTypesContext=!0,Un(),Dt.inDisallowConditionalTypesContext=e,(Dt.error||!Dt.inDisallowConditionalTypesContext&&_e(pt.question))&&Dt.restoreFromSnapshot(t)}}();else{const t=Dt.inDisallowConditionalTypesContext;Dt.inDisallowConditionalTypesContext=!1,function(){for(Bn();!Wt()&&ve(pt.bracketL);)ve(pt.bracketR)||(Un(),Yt(pt.bracketR))}(),Dt.inDisallowConditionalTypesContext=t}}function Gn(){if(ve(pt.bitwiseAND),zn(),_e(pt.bitwiseAND))for(;ve(pt.bitwiseAND);)zn()}function Vn(){return!!_e(pt.lessThan)||_e(pt.parenL)&&function(){const t=Dt.snapshot(),e=function(){if(de(),_e(pt.parenR)||_e(pt.ellipsis))return!0;if(function(){if(_e(pt.name)||_e(pt._this))return de(),!0;if(_e(pt.braceL)||_e(pt.bracketL)){let t=1;for(de();t>0&&!Dt.error;)_e(pt.braceL)||_e(pt.bracketL)?t++:(_e(pt.braceR)||_e(pt.bracketR))&&t--,de();return!0}return!1}()){if(_e(pt.colon)||_e(pt.comma)||_e(pt.question)||_e(pt.eq))return!0;if(_e(pt.parenR)&&(de(),_e(pt.arrow)))return!0}return!1}();return Dt.restoreFromSnapshot(t),e}()}function jn(t){const e=ge(0);Yt(t);(function(){const t=Dt.snapshot();if(zt(dt._asserts))return de(),Vt(dt._is)?(Un(),!0):vn()||_e(pt._this)?(de(),Vt(dt._is)&&Un(),!0):(Dt.restoreFromSnapshot(t),!1);if(vn()||_e(pt._this))return de(),zt(dt._is)&&!Wt()?(de(),Un(),!0):(Dt.restoreFromSnapshot(t),!1);return!1})()||Un(),me(e)}function Hn(){_e(pt.colon)&&Wn()}function Wn(){const t=ge(0);Yt(pt.colon),Un(),me(t)}function Un(){if(qn(),Dt.inDisallowConditionalTypesContext||Wt()||!ve(pt._extends))return;const t=Dt.inDisallowConditionalTypesContext;Dt.inDisallowConditionalTypesContext=!0,qn(),Dt.inDisallowConditionalTypesContext=t,Yt(pt.question),Un(),Yt(pt.colon),Un()}function qn(){Vn()?Fn(Nn.TSFunctionType):_e(pt._new)?Fn(Nn.TSConstructorType):zt(dt._abstract)&&xe()===pt._new?Fn(Nn.TSAbstractConstructorType):function(){if(ve(pt.bitwiseOR),Gn(),_e(pt.bitwiseOR))for(;ve(pt.bitwiseOR);)Gn()}()}function Xn(){for(;!_e(pt.braceL)&&!Dt.error;)Yn(),ve(pt.comma)}function Yn(){bn(),_e(pt.lessThan)&&si()}function Zn(){if(_e(pt.string)?Ni():Ji(),ve(pt.eq)){const t=Dt.tokens.length-1;bi(),Dt.tokens[t].rhsEndIndex=Dt.tokens.length}}function $n(){for(hn(!1),Yt(pt.braceL);!ve(pt.braceR)&&!Dt.error;)Zn(),ve(pt.comma)}function Kn(){Yt(pt.braceL),Fr(pt.braceR)}function Jn(){hn(!1),ve(pt.dot)?Jn():Kn()}function Qn(){zt(dt._global)?Ji():_e(pt.string)?Ri():Zt(),_e(pt.braceL)?Kn():Xt()}function ti(){cn(),Yt(pt.eq),zt(dt._require)&&xe()===pt.parenL?(jt(dt._require),Yt(pt.parenL),_e(pt.string)||Zt(),Ni(),Yt(pt.parenR)):bn(),Xt()}function ei(){return ii(Dt.contextualKeyword,!0)}function ni(t){switch(t){case dt._declare:{const t=Dt.tokens.length-1,e=function(){if(qt())return!1;switch(Dt.type){case pt._function:{const t=ge(1);return de(),jr(Dt.start,!0),me(t),!0}case pt._class:{const t=ge(1);return Wr(!0,!1),me(t),!0}case pt._const:if(_e(pt._const)&&Gt(dt._enum)){const t=ge(1);return Yt(pt._const),jt(dt._enum),Dt.tokens[Dt.tokens.length-1].type=pt._enum,$n(),me(t),!0}case pt._var:case pt._let:{const t=ge(1);return Or(Dt.type!==pt._var),me(t),!0}case pt.name:{const t=ge(1),e=Dt.contextualKeyword;let n=!1;return e===dt._global?(Qn(),n=!0):n=ii(e,!0),me(t),n}default:return!1}}();if(e)return Dt.tokens[t].type=pt._declare,!0;break}case dt._global:if(_e(pt.braceL))return Kn(),!0;break;default:return ii(t,!1)}return!1}function ii(t,e){switch(t){case dt._abstract:if(ri(e)&&_e(pt._class))return Dt.tokens[Dt.tokens.length-1].type=pt._abstract,Wr(!0,!1),!0;break;case dt._enum:if(ri(e)&&_e(pt.name))return Dt.tokens[Dt.tokens.length-1].type=pt._enum,$n(),!0;break;case dt._interface:if(ri(e)&&_e(pt.name)){const t=ge(e?2:1);return hn(!1),Tn(),ve(pt._extends)&&Xn(),Dn(),me(t),!0}break;case dt._module:if(ri(e)){if(_e(pt.string)){const t=ge(e?2:1);return Qn(),me(t),!0}if(_e(pt.name)){const t=ge(e?2:1);return Jn(),me(t),!0}}break;case dt._namespace:if(ri(e)&&_e(pt.name)){const t=ge(e?2:1);return Jn(),me(t),!0}break;case dt._type:if(ri(e)&&_e(pt.name)){const t=ge(e?2:1);return hn(!1),Tn(),Yt(pt.eq),Un(),Xt(),me(t),!0}}return!1}function ri(t){return t?(de(),!0):!qt()}function oi(){const t=Dt.snapshot();return Mn(),Hr(),_e(pt.colon)&&jn(pt.colon),Yt(pt.arrow),Dt.error?(Dt.restoreFromSnapshot(t),!1):(Zi(!0),!0)}function ai(){Dt.type===pt.bitShiftL&&(Dt.pos-=1,ke(pt.lessThan)),si()}function si(){const t=ge(0);for(Yt(pt.lessThan);!_e(pt.greaterThan)&&!Dt.error;)Un(),ve(pt.comma);t?(Yt(pt.greaterThan),me(t)):(me(t),De(),Yt(pt.greaterThan),Dt.tokens[Dt.tokens.length-1].isType=!0)}function li(){if(_e(pt.name))switch(Dt.contextualKeyword){case dt._abstract:case dt._declare:case dt._enum:case dt._interface:case dt._module:case dt._namespace:case dt._type:return!0}return!1}function hi(t,e){return Et?function(t,e){if(!_e(pt.lessThan))return wi(t,e);const n=Dt.snapshot();let i=wi(t,e);if(!Dt.error)return i;Dt.restoreFromSnapshot(n);Dt.type=pt.typeParameterStart,Mn(),i=wi(t,e),i||Zt();return i}(t,e):function(t,e){if(!_e(pt.lessThan))return wi(t,e);const n=Dt.snapshot();Mn();const i=wi(t,e);i||Zt();if(!Dt.error)return i;Dt.restoreFromSnapshot(n);return wi(t,e)}(t,e)}function ci(){vi()}function ui(t){ci(),ve(pt.colon)?ci():Dt.tokens[Dt.tokens.length-1].identifierRole=t}function di(){const t=Dt.tokens.length;ui(ie.Access);let e=!1;for(;_e(pt.dot);)e=!0,vi(),ci();if(!e){const e=Dt.tokens[t],n=Pt.charCodeAt(e.start);n>=ft.lowercaseA&&n<=ft.lowercaseZ&&(e.identifierRole=null)}}function pi(){switch(Dt.type){case pt.braceL:return de(),xi(),void vi();case pt.jsxTagStart:return mi(),void vi();case pt.string:return void vi();default:Zt("JSX value should be either an expression or a quoted JSX text")}}function fi(t){if(_e(pt.jsxTagEnd))return!1;di(),kt&&function(){if(ve(pt.jsxTagStart)){Dt.tokens[Dt.tokens.length-1].type=pt.typeParameterStart;const t=ge(1);for(;!_e(pt.greaterThan)&&!Dt.error;)Un(),ve(pt.comma);vi(),me(t)}}();let e=!1;for(;!_e(pt.slash)&&!_e(pt.jsxTagEnd)&&!Dt.error;)ve(pt.braceL)?(e=!0,Yt(pt.ellipsis),bi(),vi()):(e&&Dt.end-Dt.start==3&&Pt.charCodeAt(Dt.start)===ft.lowercaseK&&Pt.charCodeAt(Dt.start+1)===ft.lowercaseE&&Pt.charCodeAt(Dt.start+2)===ft.lowercaseY&&(Dt.tokens[t].jsxRole=re.KeyAfterPropSpread),ui(ie.ObjectKey),_e(pt.eq)&&(vi(),pi()));const n=_e(pt.slash);return n&&vi(),n}function gi(){const t=Dt.tokens.length-1;Dt.tokens[t].jsxRole=re.NoChildren;let e=0;if(!fi(t))for(yi();;)switch(Dt.type){case pt.jsxTagStart:if(vi(),_e(pt.slash))return vi(),_e(pt.jsxTagEnd)||di(),void(Dt.tokens[t].jsxRole!==re.KeyAfterPropSpread&&(1===e?Dt.tokens[t].jsxRole=re.OneChild:e>1&&(Dt.tokens[t].jsxRole=re.StaticChildren)));e++,gi(),yi();break;case pt.jsxText:e++,yi();break;case pt.jsxEmptyText:yi();break;case pt.braceL:de(),_e(pt.ellipsis)?(Yt(pt.ellipsis),xi(),yi(),e+=2):(_e(pt.braceR)||(e++,xi()),yi());break;default:return void Zt()}}function mi(){vi(),gi()}function vi(){Dt.tokens.push(new ue),Ee(),Dt.start=Dt.pos;const t=Pt.charCodeAt(Dt.pos);if(ee[t])!function(){let t;do{if(Dt.pos>Pt.length)return void Zt("Unexpectedly reached the end of input.");t=Pt.charCodeAt(++Dt.pos)}while(te[t]||t===ft.dash);ke(pt.jsxName)}();else if(t===ft.quotationMark||t===ft.apostrophe)!function(t){for(Dt.pos++;;){if(Dt.pos>=Pt.length)return void Zt("Unterminated string constant");if(Pt.charCodeAt(Dt.pos)===t){Dt.pos++;break}Dt.pos++}ke(pt.string)}(t);else switch(++Dt.pos,t){case ft.greaterThan:ke(pt.jsxTagEnd);break;case ft.lessThan:ke(pt.jsxTagStart);break;case ft.slash:ke(pt.slash);break;case ft.equalsTo:ke(pt.eq);break;case ft.leftCurlyBrace:ke(pt.braceL);break;case ft.dot:ke(pt.dot);break;case ft.colon:ke(pt.colon);break;default:Zt()}}function yi(){Dt.tokens.push(new ue),Dt.start=Dt.pos,function(){let t=!1,e=!1;for(;;){if(Dt.pos>=Pt.length)return void Zt("Unterminated JSX contents");const n=Pt.charCodeAt(Dt.pos);if(n===ft.lessThan||n===ft.leftCurlyBrace)return Dt.pos===Dt.start?n===ft.lessThan?(Dt.pos++,void ke(pt.jsxTagStart)):void Pe(n):void ke(t&&!e?pt.jsxEmptyText:pt.jsxText);n===ft.lineFeed?t=!0:n!==ft.space&&n!==ft.carriageReturn&&n!==ft.tab&&(e=!0),Dt.pos++}}()}!function(t){t[t.TSFunctionType=0]="TSFunctionType";t[t.TSConstructorType=1]="TSConstructorType";t[t.TSAbstractConstructorType=2]="TSAbstractConstructorType"}(Nn||(Nn={}));class _i{constructor(t){this.stop=t}}function xi(t=!1){if(bi(t),_e(pt.comma))for(;ve(pt.comma);)bi(t)}function bi(t=!1,e=!1){return kt?hi(t,e):Lt?function(t,e){if(_e(pt.lessThan)){const n=Dt.snapshot();let i=wi(t,e);if(!Dt.error)return i;Dt.restoreFromSnapshot(n),Dt.type=pt.typeParameterStart;const r=ge(0);if(hr(),me(r),i=wi(t,e),i)return!0;Zt()}return wi(t,e)}(t,e):wi(t,e)}function wi(t,e){if(_e(pt._yield))return de(),_e(pt.semi)||Ht()||(ve(pt.star),bi()),!1;(_e(pt.parenL)||_e(pt.name)||_e(pt._yield))&&(Dt.potentialArrowAt=Dt.start);const n=function(t){const e=function(t){const e=Dt.tokens.length,n=Mi();if(n)return!0;return Ti(e,-1,t),!1}(t);if(e)return!0;return function(t){kt||Lt?function(t){if(_e(pt.question)){const t=xe();if(t===pt.colon||t===pt.comma||t===pt.parenR)return}Si(t)}(t):Si(t)}(t),!1}(t);return e&&Gi(),Dt.type&pt.IS_ASSIGN?(de(),bi(t),!1):n}function Si(t){ve(pt.question)&&(bi(),Yt(pt.colon),bi(t))}function Ti(t,e,n){if(kt&&(pt._in&pt.PRECEDENCE_MASK)>e&&!Wt()&&(Vt(dt._as)||Vt(dt._satisfies))){const i=ge(1);return Un(),me(i),De(),void Ti(t,e,n)}const i=Dt.type&pt.PRECEDENCE_MASK;if(i>0&&(!n||!_e(pt._in))&&i>e){const r=Dt.type;de(),r===pt.nullishCoalescing&&(Dt.tokens[Dt.tokens.length-1].nullishStartIndex=t);const o=Dt.tokens.length;Mi(),Ti(o,r&pt.IS_RIGHT_ASSOCIATIVE?i-1:i,n),r===pt.nullishCoalescing&&(Dt.tokens[t].numNullishCoalesceStarts++,Dt.tokens[Dt.tokens.length-1].numNullishCoalesceEnds++),Ti(t,e,n)}}function Mi(){if(kt&&!Et&&ve(pt.lessThan))return function(){const t=ge(1);Un(),Yt(pt.greaterThan),me(t),Mi()}(),!1;if(zt(dt._module)&&Me()===ft.leftCurlyBrace&&!Ut())return jt(dt._module),Yt(pt.braceL),Fr(pt.braceR),!1;if(Dt.type&pt.IS_PREFIX)return de(),Mi(),!1;if(Ai())return!0;for(;Dt.type&pt.IS_POSTFIX&&!Ht();)Dt.type===pt.preIncDec&&(Dt.type=pt.postIncDec),de();return!1}function Ai(){const t=Dt.tokens.length;return!!Ri()||(Ci(t),Dt.tokens.length>t&&Dt.tokens[t].isOptionalChainStart&&(Dt.tokens[Dt.tokens.length-1].isOptionalChainEnd=!0),!1)}function Ci(t,e=!1){Lt?function(t,e=!1){if(Dt.tokens[Dt.tokens.length-1].contextualKeyword===dt._async&&_e(pt.lessThan)){const t=Dt.snapshot(),e=function(){Dt.scopeDepth++;const t=Dt.tokens.length;if(Hr(),!zi())return!1;return Xi(t),!0}();if(e&&!Dt.error)return;Dt.restoreFromSnapshot(t)}Ii(t,e)}(t,e):Ii(t,e)}function Ii(t,e=!1){const n=new _i(!1);do{Ei(t,e,n)}while(!n.stop&&!Dt.error)}function Ei(t,e,n){kt?function(t,e,n){if(Wt()||!ve(pt.bang)){if(_e(pt.lessThan)||_e(pt.bitShiftL)){const n=Dt.snapshot();if(!e&&Li()&&oi())return;if(ai(),!e&&ve(pt.parenL)?(Dt.tokens[Dt.tokens.length-1].subscriptStartIndex=t,Di()):_e(pt.backQuote)?Vi():(Dt.type===pt.greaterThan||Dt.type!==pt.parenL&&Boolean(Dt.type&pt.IS_EXPRESSION_START)&&!Wt())&&Zt(),!Dt.error)return;Dt.restoreFromSnapshot(n)}else!e&&_e(pt.questionDot)&&xe()===pt.lessThan&&(de(),Dt.tokens[t].isOptionalChainStart=!0,Dt.tokens[Dt.tokens.length-1].subscriptStartIndex=t,si(),Yt(pt.parenL),Di());ki(t,e,n)}else Dt.tokens[Dt.tokens.length-1].type=pt.nonNullAssertion}(t,e,n):Lt?function(t,e,n){if(_e(pt.questionDot)&&xe()===pt.lessThan)return e?void(n.stop=!0):(de(),cr(),Yt(pt.parenL),void Di());if(!e&&_e(pt.lessThan)){const t=Dt.snapshot();if(cr(),Yt(pt.parenL),Di(),!Dt.error)return;Dt.restoreFromSnapshot(t)}ki(t,e,n)}(t,e,n):ki(t,e,n)}function ki(t,e,n){if(!e&&ve(pt.doubleColon))Pi(),n.stop=!0,Ci(t,e);else if(_e(pt.questionDot)){if(Dt.tokens[t].isOptionalChainStart=!0,e&&xe()===pt.parenL)return void(n.stop=!0);de(),Dt.tokens[Dt.tokens.length-1].subscriptStartIndex=t,ve(pt.bracketL)?(xi(),Yt(pt.bracketR)):ve(pt.parenL)?Di():Oi()}else if(ve(pt.dot))Dt.tokens[Dt.tokens.length-1].subscriptStartIndex=t,Oi();else if(ve(pt.bracketL))Dt.tokens[Dt.tokens.length-1].subscriptStartIndex=t,xi(),Yt(pt.bracketR);else if(!e&&_e(pt.parenL))if(Li()){const e=Dt.snapshot(),i=Dt.tokens.length;de(),Dt.tokens[Dt.tokens.length-1].subscriptStartIndex=t;const r=Ot();Dt.tokens[Dt.tokens.length-1].contextId=r,Di(),Dt.tokens[Dt.tokens.length-1].contextId=r,(_e(pt.colon)||_e(pt.arrow))&&(Dt.restoreFromSnapshot(e),n.stop=!0,Dt.scopeDepth++,Hr(),function(t){kt?_e(pt.colon)&&Wn():Lt&&function(){if(_e(pt.colon)){const t=Dt.noAnonFunctionType;Dt.noAnonFunctionType=!0,Tr(),Dt.noAnonFunctionType=t}}();Yt(pt.arrow),Xi(t)}(i))}else{de(),Dt.tokens[Dt.tokens.length-1].subscriptStartIndex=t;const e=Ot();Dt.tokens[Dt.tokens.length-1].contextId=e,Di(),Dt.tokens[Dt.tokens.length-1].contextId=e}else _e(pt.backQuote)?Vi():n.stop=!0}function Li(){return Dt.tokens[Dt.tokens.length-1].contextualKeyword===dt._async&&!Ht()}function Di(){let t=!0;for(;!ve(pt.parenR)&&!Dt.error;){if(t)t=!1;else if(Yt(pt.comma),ve(pt.parenR))break;Ki(!1)}}function Pi(){const t=Dt.tokens.length;Ri(),Ci(t,!0)}function Ri(){if(ve(pt.modulo))return Ji(),!1;if(_e(pt.jsxText)||_e(pt.jsxEmptyText))return Ni(),!1;if(_e(pt.lessThan)&&Et)return Dt.type=pt.jsxTagStart,mi(),de(),!1;const t=Dt.potentialArrowAt===Dt.start;switch(Dt.type){case pt.slash:case pt.assign:fe();case pt._super:case pt._this:case pt.regexp:case pt.num:case pt.bigint:case pt.decimal:case pt.string:case pt._null:case pt._true:case pt._false:return de(),!1;case pt._import:return de(),_e(pt.dot)&&(Dt.tokens[Dt.tokens.length-1].type=pt.name,de(),Ji()),!1;case pt.name:{const e=Dt.tokens.length,n=Dt.start,i=Dt.contextualKeyword;return Ji(),i===dt._await?(Mi(),!1):i===dt._async&&_e(pt._function)&&!Ht()?(de(),jr(n,!1),!1):t&&i===dt._async&&!Ht()&&_e(pt.name)?(Dt.scopeDepth++,hn(!1),Yt(pt.arrow),Xi(e),!0):_e(pt._do)&&!Ht()?(de(),Nr(),!1):t&&!Ht()&&_e(pt.arrow)?(Dt.scopeDepth++,un(!1),Yt(pt.arrow),Xi(e),!0):(Dt.tokens[Dt.tokens.length-1].identifierRole=ie.Access,!1)}case pt._do:return de(),Nr(),!1;case pt.parenL:return Bi(t);case pt.bracketL:return de(),$i(pt.bracketR,!0),!1;case pt.braceL:return ji(!1,!1),!1;case pt._function:return function(){const t=Dt.start;Ji(),ve(pt.dot)&&Ji();jr(t,!1)}(),!1;case pt.at:Dr();case pt._class:return Wr(!1),!1;case pt._new:return function(){if(Yt(pt._new),ve(pt.dot))return void Ji();Pi(),void ve(pt.questionDot),Lt&&function(){if(_e(pt.lessThan)){const t=Dt.snapshot();cr(),Dt.error&&Dt.restoreFromSnapshot(t)}}();ve(pt.parenL)&&$i(pt.parenR)}(),!1;case pt.backQuote:return Vi(),!1;case pt.doubleColon:return de(),Pi(),!1;case pt.hash:{const t=Me();return ee[t]||t===ft.backslash?Oi():de(),!1}default:return Zt(),!1}}function Oi(){ve(pt.hash),Ji()}function Ni(){de()}function Fi(){Yt(pt.parenL),xi(),Yt(pt.parenR)}function Bi(t){const e=Dt.snapshot(),n=Dt.tokens.length;Yt(pt.parenL);let i=!0;for(;!_e(pt.parenR)&&!Dt.error;){if(i)i=!1;else if(Yt(pt.comma),_e(pt.parenR))break;if(_e(pt.ellipsis)){ln(!1),Gi();break}bi(!1,!0)}if(Yt(pt.parenR),t&&(_e(pt.colon)||!Ht())){if(zi())return Dt.restoreFromSnapshot(e),Dt.scopeDepth++,Hr(),zi(),Xi(n),!Dt.error||(Dt.restoreFromSnapshot(e),Bi(!1),!1)}return!1}function zi(){return kt?function(){if(_e(pt.colon)){const t=Dt.snapshot();jn(pt.colon),Ht()&&Zt(),_e(pt.arrow)||Zt(),Dt.error&&Dt.restoreFromSnapshot(t)}return ve(pt.arrow)}():Lt?function(){if(_e(pt.colon)){const t=ge(0),e=Dt.snapshot(),n=Dt.noAnonFunctionType;Dt.noAnonFunctionType=!0,er(),Dt.noAnonFunctionType=n,Ht()&&Zt(),_e(pt.arrow)||Zt(),Dt.error&&Dt.restoreFromSnapshot(e),me(t)}return ve(pt.arrow)}():ve(pt.arrow)}function Gi(){(kt||Lt)&&(ye(pt.question),_e(pt.colon)&&(kt?Wn():Lt&&Tr()))}function Vi(){for(pe(),pe();!_e(pt.backQuote)&&!Dt.error;)Yt(pt.dollarBraceL),xi(),pe(),pe();de()}function ji(t,e){const n=Ot();let i=!0;for(de(),Dt.tokens[Dt.tokens.length-1].contextId=n;!ve(pt.braceR)&&!Dt.error;){if(i)i=!1;else if(Yt(pt.comma),ve(pt.braceR))break;let r=!1;if(_e(pt.ellipsis)){const n=Dt.tokens.length;if(sn(),t&&(Dt.tokens.length===n+2&&un(e),ve(pt.braceR)))break}else t||(r=ve(pt.star)),!t&&zt(dt._async)?(r&&Zt(),Ji(),_e(pt.colon)||_e(pt.parenL)||_e(pt.braceR)||_e(pt.eq)||_e(pt.comma)||(_e(pt.star)&&(de(),r=!0),Ui(n))):Ui(n),Wi(t,e,n)}Dt.tokens[Dt.tokens.length-1].contextId=n}function Hi(t,e){const n=Dt.start;return _e(pt.parenL)?(t&&Zt(),qi(n,!1),!0):!!function(t){return!t&&(_e(pt.string)||_e(pt.num)||_e(pt.bracketL)||_e(pt.name)||!!(Dt.type&pt.IS_KEYWORD))}(t)&&(Ui(e),qi(n,!1),!0)}function Wi(t,e,n){kt?Tn():Lt&&_e(pt.lessThan)&&(hr(),_e(pt.parenL)||Zt());Hi(t,n)||function(t,e){if(ve(pt.colon))return void(t?mn(e):bi(!1));let n;n=t?0===Dt.scopeDepth?ie.ObjectShorthandTopLevelDeclaration:e?ie.ObjectShorthandBlockScopedDeclaration:ie.ObjectShorthandFunctionScopedDeclaration:ie.ObjectShorthand,Dt.tokens[Dt.tokens.length-1].identifierRole=n,mn(e,!0)}(t,e)}function Ui(t){Lt&&Ar(),ve(pt.bracketL)?(Dt.tokens[Dt.tokens.length-1].contextId=t,bi(),Yt(pt.bracketR),Dt.tokens[Dt.tokens.length-1].contextId=t):(_e(pt.num)||_e(pt.string)||_e(pt.bigint)||_e(pt.decimal)?Ri():Oi(),Dt.tokens[Dt.tokens.length-1].identifierRole=ie.ObjectKey,Dt.tokens[Dt.tokens.length-1].contextId=t)}function qi(t,e){const n=Ot();Dt.scopeDepth++;const i=Dt.tokens.length;Hr(e,n),Yi(t,n);const r=Dt.tokens.length;Dt.scopes.push(new At(i,r,!0)),Dt.scopeDepth--}function Xi(t){Zi(!0);const e=Dt.tokens.length;Dt.scopes.push(new At(t,e,!0)),Dt.scopeDepth--}function Yi(t,e=0){kt?function(t,e){if(_e(pt.colon)&&jn(pt.colon),_e(pt.braceL)||!qt())Zi(!1,e);else{let e=Dt.tokens.length-1;for(;e>=0&&(Dt.tokens[e].start>=t||Dt.tokens[e].type===pt._default||Dt.tokens[e].type===pt._export);)Dt.tokens[e].isType=!0,e--}}(t,e):Lt?function(t){_e(pt.colon)&&er();Zi(!1,t)}(e):Zi(!1,e)}function Zi(t,e=0){t&&!_e(pt.braceL)?bi():Nr(!0,e)}function $i(t,e=!1){let n=!0;for(;!ve(t)&&!Dt.error;){if(n)n=!1;else if(Yt(pt.comma),ve(t))break;Ki(e)}}function Ki(t){t&&_e(pt.comma)||(_e(pt.ellipsis)?(sn(),Gi()):_e(pt.question)?de():bi(!1,!0))}function Ji(){de(),Dt.tokens[Dt.tokens.length-1].type=pt.name}function Qi(t){const e=ge(0);Yt(t||pt.colon),Sr(),me(e)}function tr(){Yt(pt.modulo),jt(dt._checks),ve(pt.parenL)&&(xi(),Yt(pt.parenR))}function er(){const t=ge(0);Yt(pt.colon),_e(pt.modulo)?tr():(Sr(),_e(pt.modulo)&&tr()),me(t)}function nr(){_e(pt._class)?(de(),ir(!0)):_e(pt._function)?(de(),Ji(),_e(pt.lessThan)&&hr(),Yt(pt.parenL),yr(),Yt(pt.parenR),er(),Xt()):_e(pt._var)?(de(),Mr(),Xt()):Vt(dt._module)?ve(pt.dot)?(jt(dt._exports),Tr(),Xt()):function(){_e(pt.string)?Ri():Ji();Yt(pt.braceL);for(;!_e(pt.braceR)&&!Dt.error;)_e(pt._import)?(de(),oo()):Zt();Yt(pt.braceR)}():zt(dt._type)?(de(),sr()):zt(dt._opaque)?(de(),lr(!0)):zt(dt._interface)?(de(),ir()):_e(pt._export)?(Yt(pt._export),ve(pt._default)?_e(pt._function)||_e(pt._class)?nr():(Sr(),Xt()):_e(pt._var)||_e(pt._function)||_e(pt._class)||zt(dt._opaque)?nr():_e(pt.star)||_e(pt.braceL)||zt(dt._interface)||zt(dt._type)||zt(dt._opaque)?Jr():Zt()):Zt()}function ir(t=!1){if(ar(),_e(pt.lessThan)&&hr(),ve(pt._extends))do{rr()}while(!t&&ve(pt.comma));if(zt(dt._mixins)){de();do{rr()}while(ve(pt.comma))}if(zt(dt._implements)){de();do{rr()}while(ve(pt.comma))}pr(t,!1,t)}function rr(){mr(!1),_e(pt.lessThan)&&cr()}function or(){ir()}function ar(){Ji()}function sr(){ar(),_e(pt.lessThan)&&hr(),Qi(pt.eq),Xt()}function lr(t){jt(dt._type),ar(),_e(pt.lessThan)&&hr(),_e(pt.colon)&&Qi(pt.colon),t||Qi(pt.eq),Xt()}function hr(){const t=ge(0);_e(pt.lessThan)||_e(pt.typeParameterStart)?de():Zt();do{Ar(),Mr(),ve(pt.eq)&&Sr(),_e(pt.greaterThan)||Yt(pt.comma)}while(!_e(pt.greaterThan)&&!Dt.error);Yt(pt.greaterThan),me(t)}function cr(){const t=ge(0);for(Yt(pt.lessThan);!_e(pt.greaterThan)&&!Dt.error;)Sr(),_e(pt.greaterThan)||Yt(pt.comma);Yt(pt.greaterThan),me(t)}function ur(){_e(pt.num)||_e(pt.string)?Ri():Ji()}function dr(){for(_e(pt.lessThan)&&hr(),Yt(pt.parenL);!_e(pt.parenR)&&!_e(pt.ellipsis)&&!Dt.error;)vr(),_e(pt.parenR)||Yt(pt.comma);ve(pt.ellipsis)&&vr(),Yt(pt.parenR),Qi()}function pr(t,e,n){let i;for(e&&_e(pt.braceBarL)?(Yt(pt.braceBarL),i=pt.braceBarR):(Yt(pt.braceL),i=pt.braceR);!_e(i)&&!Dt.error;){if(n&&zt(dt._proto)){const e=xe();e!==pt.colon&&e!==pt.question&&(de(),t=!1)}if(t&&zt(dt._static)){const t=xe();t!==pt.colon&&t!==pt.question&&de()}if(Ar(),ve(pt.bracketL))ve(pt.bracketL)?(ur(),Yt(pt.bracketR),Yt(pt.bracketR),_e(pt.lessThan)||_e(pt.parenL)?dr():(ve(pt.question),Qi())):(xe()===pt.colon?(ur(),Qi()):Sr(),Yt(pt.bracketR),Qi());else if(_e(pt.parenL)||_e(pt.lessThan))dr();else{if(zt(dt._get)||zt(dt._set)){const t=xe();t!==pt.name&&t!==pt.string&&t!==pt.num||de()}fr()}gr()}Yt(i)}function fr(){if(_e(pt.ellipsis)){if(Yt(pt.ellipsis),ve(pt.comma)||ve(pt.semi),_e(pt.braceR))return;Sr()}else ur(),_e(pt.lessThan)||_e(pt.parenL)?dr():(ve(pt.question),Qi())}function gr(){ve(pt.semi)||ve(pt.comma)||_e(pt.braceR)||_e(pt.braceBarR)||Zt()}function mr(t){for(t||Ji();ve(pt.dot);)Ji()}function vr(){const t=xe();t===pt.colon||t===pt.question?(Ji(),ve(pt.question),Qi()):Sr()}function yr(){for(;!_e(pt.parenR)&&!_e(pt.ellipsis)&&!Dt.error;)vr(),_e(pt.parenR)||Yt(pt.comma);ve(pt.ellipsis)&&vr()}function _r(){let t=!1;const e=Dt.noAnonFunctionType;switch(Dt.type){case pt.name:return zt(dt._interface)?void function(){if(jt(dt._interface),ve(pt._extends))do{rr()}while(ve(pt.comma));pr(!1,!1,!1)}():(Ji(),mr(!0),void(_e(pt.lessThan)&&cr()));case pt.braceL:return void pr(!1,!1,!1);case pt.braceBarL:return void pr(!1,!0,!1);case pt.bracketL:return void function(){for(Yt(pt.bracketL);Dt.pos<Pt.length&&!_e(pt.bracketR)&&(Sr(),!_e(pt.bracketR));)Yt(pt.comma);Yt(pt.bracketR)}();case pt.lessThan:return hr(),Yt(pt.parenL),yr(),Yt(pt.parenR),Yt(pt.arrow),void Sr();case pt.parenL:if(de(),!_e(pt.parenR)&&!_e(pt.ellipsis))if(_e(pt.name)){const e=xe();t=e!==pt.question&&e!==pt.colon}else t=!0;if(t){if(Dt.noAnonFunctionType=!1,Sr(),Dt.noAnonFunctionType=e,Dt.noAnonFunctionType||!(_e(pt.comma)||_e(pt.parenR)&&xe()===pt.arrow))return void Yt(pt.parenR);ve(pt.comma)}return yr(),Yt(pt.parenR),Yt(pt.arrow),void Sr();case pt.minus:return de(),void Ni();case pt.string:case pt.num:case pt._true:case pt._false:case pt._null:case pt._this:case pt._void:case pt.star:return void de();default:if(Dt.type===pt._typeof)return Yt(pt._typeof),void _r();if(Dt.type&pt.IS_KEYWORD)return de(),void(Dt.tokens[Dt.tokens.length-1].type=pt.name)}Zt()}function xr(){ve(pt.question)?xr():function(){for(_r();!Ht()&&(_e(pt.bracketL)||_e(pt.questionDot));)ve(pt.questionDot),Yt(pt.bracketL),ve(pt.bracketR)||(Sr(),Yt(pt.bracketR))}()}function br(){xr(),!Dt.noAnonFunctionType&&ve(pt.arrow)&&Sr()}function wr(){for(ve(pt.bitwiseAND),br();ve(pt.bitwiseAND);)br()}function Sr(){!function(){for(ve(pt.bitwiseOR),wr();ve(pt.bitwiseOR);)wr()}()}function Tr(){Qi()}function Mr(){Ji(),_e(pt.colon)&&Tr()}function Ar(){(_e(pt.plus)||_e(pt.minus))&&(de(),Dt.tokens[Dt.tokens.length-1].isType=!0)}function Cr(){if(_e(pt._typeof)||zt(dt._type)){const e=we();(((t=e).type===pt.name||t.type&pt.IS_KEYWORD)&&t.contextualKeyword!==dt._from||e.type===pt.braceL||e.type===pt.star)&&de()}var t}function Ir(){jt(dt._enum),Dt.tokens[Dt.tokens.length-1].type=pt._enum,Ji(),function(){Vt(dt._of)&&de();Yt(pt.braceL),function(){for(;!_e(pt.braceR)&&!Dt.error&&!ve(pt.ellipsis);)Er(),_e(pt.braceR)||Yt(pt.comma)}(),Yt(pt.braceR)}()}function Er(){Ji(),ve(pt.eq)&&de()}function kr(t){Lt&&function(){if(_e(pt.name)&&Dt.contextualKeyword===dt._interface){const t=ge(0);return de(),or(),me(t),!0}return!!zt(dt._enum)&&(Ir(),!0)}()||(_e(pt.at)&&Dr(),function(t){if(kt&&function(){if(Dt.type===pt._const){const t=we();if(t.type===pt.name&&t.contextualKeyword===dt._enum)return Yt(pt._const),jt(dt._enum),Dt.tokens[Dt.tokens.length-1].type=pt._enum,$n(),!0}return!1}())return;const e=Dt.type;switch(e){case pt._break:case pt._continue:return de(),void(qt()||(Ji(),Xt()));case pt._debugger:return de(),void Xt();case pt._do:return de(),kr(!1),Yt(pt._while),Fi(),void ve(pt.semi);case pt._for:return void function(){Dt.scopeDepth++;const t=Dt.tokens.length;!function(){de();let t=!1;zt(dt._await)&&(t=!0,de());if(Yt(pt.parenL),_e(pt.semi))return t&&Zt(),void Br();const e=Lr();if(e||_e(pt._var)||_e(pt._let)||_e(pt._const)||function(){if(!zt(dt._using))return!1;if(Gt(dt._of))return!1;return!0}())return e&&jt(dt._await),de(),Gr(!0,Dt.type!==pt._var),_e(pt._in)||zt(dt._of)?void zr(t):void Br();if(xi(!0),_e(pt._in)||zt(dt._of))return void zr(t);t&&Zt();Br()}();const e=Dt.tokens.length;Dt.scopes.push(new At(t,e,!1)),Dt.scopeDepth--}();case pt._function:if(xe()===pt.dot)break;return t||Zt(),void function(){const t=Dt.start;de(),jr(t,!0)}();case pt._class:return t||Zt(),void Wr(!0);case pt._if:return de(),Fi(),kr(!1),void(ve(pt._else)&&kr(!1));case pt._return:return de(),void(qt()||(xi(),Xt()));case pt._switch:return void function(){de(),Fi(),Dt.scopeDepth++;const t=Dt.tokens.length;Yt(pt.braceL);for(;!_e(pt.braceR)&&!Dt.error;)if(_e(pt._case)||_e(pt._default)){const t=_e(pt._case);de(),t&&xi(),Yt(pt.colon)}else kr(!0);de();const e=Dt.tokens.length;Dt.scopes.push(new At(t,e,!1)),Dt.scopeDepth--}();case pt._throw:return de(),xi(),void Xt();case pt._try:return void function(){if(de(),Nr(),_e(pt._catch)){de();let t=null;if(_e(pt.parenL)&&(Dt.scopeDepth++,t=Dt.tokens.length,Yt(pt.parenL),dn(!0),kt&&Hn(),Yt(pt.parenR)),Nr(),null!=t){const e=Dt.tokens.length;Dt.scopes.push(new At(t,e,!1)),Dt.scopeDepth--}}ve(pt._finally)&&Nr()}();case pt._let:case pt._const:t||Zt();case pt._var:return void Or(e!==pt._var);case pt._while:return de(),Fi(),void kr(!1);case pt.braceL:return void Nr();case pt.semi:return void de();case pt._export:case pt._import:{const t=xe();if(t===pt.parenL||t===pt.dot)break;return de(),void(e===pt._import?oo():Jr())}case pt.name:if(Dt.contextualKeyword===dt._async){const t=Dt.start,e=Dt.snapshot();if(de(),_e(pt._function)&&!Ht())return Yt(pt._function),void jr(t,!0);Dt.restoreFromSnapshot(e)}else{if(Dt.contextualKeyword===dt._using&&!Ut()&&xe()===pt.name)return void Or(!0);if(Lr())return jt(dt._await),void Or(!0)}}const n=Dt.tokens.length;xi();let i=null;if(Dt.tokens.length===n+1){const t=Dt.tokens[Dt.tokens.length-1];t.type===pt.name&&(i=t.contextualKeyword)}if(null==i)return void Xt();ve(pt.colon)?kr(!0):(r=i,kt?function(t){ni(t)||Xt()}(r):Lt?function(t){if(t===dt._declare){if(_e(pt._class)||_e(pt.name)||_e(pt._function)||_e(pt._var)||_e(pt._export)){const t=ge(1);nr(),me(t)}}else if(_e(pt.name))if(t===dt._interface){const t=ge(1);or(),me(t)}else if(t===dt._type){const t=ge(1);sr(),me(t)}else if(t===dt._opaque){const t=ge(1);lr(!1),me(t)}Xt()}(r):Xt());var r}(t))}function Lr(){if(!zt(dt._await))return!1;const t=Dt.snapshot();return de(),!zt(dt._using)||Wt()?(Dt.restoreFromSnapshot(t),!1):(de(),!_e(pt.name)||Wt()?(Dt.restoreFromSnapshot(t),!1):(Dt.restoreFromSnapshot(t),!0))}function Dr(){for(;_e(pt.at);)Pr()}function Pr(){if(de(),ve(pt.parenL))xi(),Yt(pt.parenR);else{for(Ji();ve(pt.dot);)Ji();kt?((_e(pt.lessThan)||_e(pt.bitShiftL))&&ai(),Rr()):Rr()}}function Rr(){ve(pt.parenL)&&Di()}function Or(t){de(),Gr(!1,t),Xt()}function Nr(t=!1,e=0){const n=Dt.tokens.length;Dt.scopeDepth++,Yt(pt.braceL),e&&(Dt.tokens[Dt.tokens.length-1].contextId=e),Fr(pt.braceR),e&&(Dt.tokens[Dt.tokens.length-1].contextId=e);const i=Dt.tokens.length;Dt.scopes.push(new At(n,i,t)),Dt.scopeDepth--}function Fr(t){for(;!ve(t)&&!Dt.error;)kr(!0)}function Br(){Yt(pt.semi),_e(pt.semi)||xi(),Yt(pt.semi),_e(pt.parenR)||xi(),Yt(pt.parenR),kr(!1)}function zr(t){t?Vt(dt._of):de(),xi(),Yt(pt.parenR),kr(!1)}function Gr(t,e){for(;;){if(Vr(e),ve(pt.eq)){const e=Dt.tokens.length-1;bi(t),Dt.tokens[e].rhsEndIndex=Dt.tokens.length}if(!ve(pt.comma))break}}function Vr(t){dn(t),kt?function(){const t=ge(0);Wt()||ve(pt.bang),Hn(),me(t)}():Lt&&_e(pt.colon)&&Tr()}function jr(t,e,n=!1){_e(pt.star)&&de(),!e||n||_e(pt.name)||_e(pt._yield)||Zt();let i=null;_e(pt.name)&&(e||(i=Dt.tokens.length,Dt.scopeDepth++),hn(!1));const r=Dt.tokens.length;Dt.scopeDepth++,Hr(),Yi(t);const o=Dt.tokens.length;Dt.scopes.push(new At(r,o,!0)),Dt.scopeDepth--,null!==i&&(Dt.scopes.push(new At(i,o,!0)),Dt.scopeDepth--)}function Hr(t=!1,e=0){kt?Tn():Lt&&function(){if(_e(pt.lessThan)){const t=ge(0);hr(),me(t)}}(),Yt(pt.parenL),e&&(Dt.tokens[Dt.tokens.length-1].contextId=e),pn(pt.parenR,!1,!1,t,e),e&&(Dt.tokens[Dt.tokens.length-1].contextId=e)}function Wr(t,e=!1){const n=Ot();de(),Dt.tokens[Dt.tokens.length-1].contextId=n,Dt.tokens[Dt.tokens.length-1].isExpression=!t;let i=null;t||(i=Dt.tokens.length,Dt.scopeDepth++),function(t,e=!1){if(kt&&(!t||e)&&zt(dt._implements))return;_e(pt.name)&&hn(!0);kt?Tn():Lt&&_e(pt.lessThan)&&hr()}(t,e),function(){let t=!1;ve(pt._extends)?(Ai(),t=!0):t=!1;kt?function(t){if(t&&(_e(pt.lessThan)||_e(pt.bitShiftL))&&ai(),Vt(dt._implements)){Dt.tokens[Dt.tokens.length-1].type=pt._implements;const t=ge(1);Xn(),me(t)}}(t):Lt&&function(t){if(t&&_e(pt.lessThan)&&cr(),zt(dt._implements)){const t=ge(0);de(),Dt.tokens[Dt.tokens.length-1].type=pt._implements;do{ar(),_e(pt.lessThan)&&cr()}while(ve(pt.comma));me(t)}}(t)}();const r=Dt.tokens.length;if(function(t){Yt(pt.braceL);for(;!ve(pt.braceR)&&!Dt.error;){if(ve(pt.semi))continue;if(_e(pt.at)){Pr();continue}Xr(Dt.start,t)}}(n),!Dt.error&&(Dt.tokens[r].contextId=n,Dt.tokens[Dt.tokens.length-1].contextId=n,null!==i)){const t=Dt.tokens.length;Dt.scopes.push(new At(i,t,!1)),Dt.scopeDepth--}}function Ur(){return _e(pt.eq)||_e(pt.semi)||_e(pt.braceR)||_e(pt.bang)||_e(pt.colon)}function qr(){return _e(pt.parenL)||_e(pt.lessThan)}function Xr(t,e){kt&&_n([dt._declare,dt._public,dt._protected,dt._private,dt._override]);let n=!1;if(_e(pt.name)&&Dt.contextualKeyword===dt._static){if(Ji(),qr())return void Yr(t,!1);if(Ur())return void Kr();if(Dt.tokens[Dt.tokens.length-1].type=pt._static,n=!0,_e(pt.braceL))return Dt.tokens[Dt.tokens.length-1].contextId=e,void Nr()}!function(t,e,n){if(kt&&function(t){const e=Dt.tokens.length;_n([dt._abstract,dt._readonly,dt._declare,dt._static,dt._override]);const n=Dt.tokens.length;if(En()){for(let i=t?e-1:e;i<n;i++)Dt.tokens[i].isType=!0;return!0}return!1}(e))return;if(ve(pt.star))return Zr(n),void Yr(t,!1);Zr(n);let i=!1;const r=Dt.tokens[Dt.tokens.length-1];r.contextualKeyword===dt._constructor&&(i=!0);if($r(),qr())Yr(t,i);else if(Ur())Kr();else if(r.contextualKeyword!==dt._async||qt())r.contextualKeyword!==dt._get&&r.contextualKeyword!==dt._set||qt()&&_e(pt.star)?r.contextualKeyword!==dt._accessor||qt()?qt()?Kr():Zt():(Zr(n),Kr()):(r.contextualKeyword===dt._get?Dt.tokens[Dt.tokens.length-1].type=pt._get:Dt.tokens[Dt.tokens.length-1].type=pt._set,Zr(n),Yr(t,!1));else{Dt.tokens[Dt.tokens.length-1].type=pt._async;_e(pt.star)&&de(),Zr(n),$r(),Yr(t,!1)}}(t,n,e)}function Yr(t,e){kt?Tn():Lt&&_e(pt.lessThan)&&hr(),qi(t,e)}function Zr(t){Ui(t)}function $r(){if(kt){const t=ge(0);ve(pt.question),me(t)}}function Kr(){if(kt?(ye(pt.bang),Hn()):Lt&&_e(pt.colon)&&Tr(),_e(pt.eq)){const t=Dt.tokens.length;de(),bi(),Dt.tokens[t].rhsEndIndex=Dt.tokens.length}Xt()}function Jr(){const t=Dt.tokens.length-1;kt&&function(){if(ve(pt._import))return zt(dt._type)&&xe()!==pt.eq&&jt(dt._type),ti(),!0;if(ve(pt.eq))return xi(),Xt(),!0;if(Vt(dt._as))return jt(dt._namespace),Ji(),Xt(),!0;if(zt(dt._type)){const t=xe();t!==pt.braceL&&t!==pt.star||de()}return!1}()||((Lt?_e(pt.star)||zt(dt._type)&&xe()===pt.star:_e(pt.star))?Lt?function(){if(Vt(dt._type)){const t=ge(2);eo(),me(t)}else eo()}():eo():function(){if(kt&&li())return!1;if(Lt&&_e(pt.name)&&(Dt.contextualKeyword===dt._type||Dt.contextualKeyword===dt._interface||Dt.contextualKeyword===dt._opaque||Dt.contextualKeyword===dt._enum))return!1;if(_e(pt.name))return Dt.contextualKeyword!==dt._async;if(!_e(pt._default))return!1;const t=Se(),e=we(),n=e.type===pt.name&&e.contextualKeyword===dt._from;if(e.type===pt.comma)return!0;if(n){const e=Pt.charCodeAt(Te(t+4));return e===ft.quotationMark||e===ft.apostrophe}return!1}()?(Ji(),_e(pt.comma)&&xe()===pt.star?(Yt(pt.comma),Yt(pt.star),jt(dt._as),Ji()):Qr(),to()):ve(pt._default)?function(){if(kt&&function(){if(zt(dt._abstract)&&xe()===pt._class)return Dt.type=pt._abstract,de(),Wr(!0,!0),!0;if(zt(dt._interface)){const t=ge(2);return ii(dt._interface,!0),me(t),!0}return!1}())return;if(Lt&&zt(dt._enum)&&(Ir(),1))return;const t=Dt.start;ve(pt._function)?jr(t,!0,!0):zt(dt._async)&&xe()===pt._function?(Vt(dt._async),ve(pt._function),jr(t,!0,!0)):_e(pt._class)?Wr(!0,!0):_e(pt.at)?(Dr(),Wr(!0,!0)):(bi(),Xt())}():kt&&li()||Lt&&(zt(dt._type)||zt(dt._interface)||zt(dt._opaque)||zt(dt._enum))||Dt.type===pt._var||Dt.type===pt._const||Dt.type===pt._let||Dt.type===pt._function||Dt.type===pt._class||zt(dt._async)||_e(pt.at)?kt?function(){const t=Vt(dt._declare);t&&(Dt.tokens[Dt.tokens.length-1].type=pt._declare);let e=!1;if(_e(pt.name))if(t){const t=ge(2);e=ei(),me(t)}else e=ei();if(!e)if(t){const t=ge(2);kr(!0),me(t)}else kr(!0)}():Lt?function(){if(zt(dt._type)){const t=ge(1);de(),_e(pt.braceL)?(no(),to()):sr(),me(t)}else if(zt(dt._opaque)){const t=ge(1);de(),lr(!1),me(t)}else if(zt(dt._interface)){const t=ge(1);de(),or(),me(t)}else kr(!0)}():kr(!0):(no(),to()),Dt.tokens[t].rhsEndIndex=Dt.tokens.length)}function Qr(){ve(pt.comma)&&no()}function to(){Vt(dt._from)&&(Ri(),lo()),Xt()}function eo(){Yt(pt.star),zt(dt._as)?(de(),Dt.tokens[Dt.tokens.length-1].type=pt._as,Ji(),Qr(),to()):to()}function no(){let t=!0;for(Yt(pt.braceL);!ve(pt.braceR)&&!Dt.error;){if(t)t=!1;else if(Yt(pt.comma),ve(pt.braceR))break;io()}}function io(){kt?function(){if(Ji(),_e(pt.comma)||_e(pt.braceR))Dt.tokens[Dt.tokens.length-1].identifierRole=ie.ExportAccess;else{if(Ji(),_e(pt.comma)||_e(pt.braceR))return Dt.tokens[Dt.tokens.length-1].identifierRole=ie.ExportAccess,Dt.tokens[Dt.tokens.length-2].isType=!0,void(Dt.tokens[Dt.tokens.length-1].isType=!0);Ji(),_e(pt.comma)||_e(pt.braceR)?Dt.tokens[Dt.tokens.length-3].identifierRole=ie.ExportAccess:(Ji(),Dt.tokens[Dt.tokens.length-3].identifierRole=ie.ExportAccess,Dt.tokens[Dt.tokens.length-4].isType=!0,Dt.tokens[Dt.tokens.length-3].isType=!0,Dt.tokens[Dt.tokens.length-2].isType=!0,Dt.tokens[Dt.tokens.length-1].isType=!0)}}():(Ji(),Dt.tokens[Dt.tokens.length-1].identifierRole=ie.ExportAccess,Vt(dt._as)&&Ji())}function ro(){zt(dt._module)&&function(){const t=Dt.snapshot();return jt(dt._module),Vt(dt._from)?zt(dt._from)?(Dt.restoreFromSnapshot(t),!0):(Dt.restoreFromSnapshot(t),!1):_e(pt.comma)?(Dt.restoreFromSnapshot(t),!1):(Dt.restoreFromSnapshot(t),!0)}()&&de()}function oo(){if(kt&&_e(pt.name)&&xe()===pt.eq)ti();else{if(kt&&zt(dt._type)){const t=we();if(t.type===pt.name&&t.contextualKeyword!==dt._from){if(jt(dt._type),xe()===pt.eq)return void ti()}else t.type!==pt.star&&t.type!==pt.braceL||jt(dt._type)}_e(pt.string)||(ro(),function(){Lt&&Cr();let t=!0;if(_e(pt.name)&&(ao(),!ve(pt.comma)))return;if(_e(pt.star))return de(),jt(dt._as),void ao();Yt(pt.braceL);for(;!ve(pt.braceR)&&!Dt.error;){if(t)t=!1;else if(ve(pt.colon)&&Zt("ES2015 named imports do not destructure. Use another statement for destructuring after the import."),Yt(pt.comma),ve(pt.braceR))break;so()}}(),jt(dt._from)),Ri(),lo(),Xt()}}function ao(){cn()}function so(){kt?function(){if(Ji(),_e(pt.comma)||_e(pt.braceR))Dt.tokens[Dt.tokens.length-1].identifierRole=ie.ImportDeclaration;else{if(Ji(),_e(pt.comma)||_e(pt.braceR))return Dt.tokens[Dt.tokens.length-1].identifierRole=ie.ImportDeclaration,Dt.tokens[Dt.tokens.length-2].isType=!0,void(Dt.tokens[Dt.tokens.length-1].isType=!0);if(Ji(),_e(pt.comma)||_e(pt.braceR))return Dt.tokens[Dt.tokens.length-3].identifierRole=ie.ImportAccess,void(Dt.tokens[Dt.tokens.length-1].identifierRole=ie.ImportDeclaration);Ji(),Dt.tokens[Dt.tokens.length-3].identifierRole=ie.ImportAccess,Dt.tokens[Dt.tokens.length-1].identifierRole=ie.ImportDeclaration,Dt.tokens[Dt.tokens.length-4].isType=!0,Dt.tokens[Dt.tokens.length-3].isType=!0,Dt.tokens[Dt.tokens.length-2].isType=!0,Dt.tokens[Dt.tokens.length-1].isType=!0}}():Lt?function(){const t=Dt.contextualKeyword===dt._type||Dt.type===pt._typeof;t?de():Ji(),zt(dt._as)&&!Gt(dt._as)?(Ji(),(!t||_e(pt.name)||Dt.type&pt.IS_KEYWORD)&&Ji()):(t&&(_e(pt.name)||Dt.type&pt.IS_KEYWORD)&&Ji(),Vt(dt._as)&&Ji())}():(cn(),zt(dt._as)&&(Dt.tokens[Dt.tokens.length-1].identifierRole=ie.ImportAccess,de(),cn()))}function lo(){(_e(pt._with)||zt(dt._assert)&&!Wt())&&(de(),ji(!1,!1))}function ho(){return 0===Dt.pos&&Pt.charCodeAt(0)===ft.numberSign&&Pt.charCodeAt(1)===ft.exclamationMark&&Ie(2),Ae(),function(){if(Fr(pt.eof),Dt.scopes.push(new At(0,Dt.tokens.length,!0)),0!==Dt.scopeDepth)throw new Error(`Invalid scope depth at end of file: ${Dt.scopeDepth}`);return new co(Dt.tokens,Dt.scopes)}()}class co{constructor(t,e){this.tokens=t,this.scopes=e}}class uo{__init(){this.resultCode=""}__init2(){this.resultMappings=new Array(this.tokens.length)}__init3(){this.tokenIndex=0}constructor(t,e,n,i,r){this.code=t,this.tokens=e,this.isFlowEnabled=n,this.disableESTransforms=i,this.helperManager=r,uo.prototype.__init.call(this),uo.prototype.__init2.call(this),uo.prototype.__init3.call(this)}snapshot(){return{resultCode:this.resultCode,tokenIndex:this.tokenIndex}}restoreToSnapshot(t){this.resultCode=t.resultCode,this.tokenIndex=t.tokenIndex}dangerouslyGetAndRemoveCodeSinceSnapshot(t){const e=this.resultCode.slice(t.resultCode.length);return this.resultCode=t.resultCode,e}reset(){this.resultCode="",this.resultMappings=new Array(this.tokens.length),this.tokenIndex=0}matchesContextualAtIndex(t,e){return this.matches1AtIndex(t,pt.name)&&this.tokens[t].contextualKeyword===e}identifierNameAtIndex(t){return this.identifierNameForToken(this.tokens[t])}identifierNameAtRelativeIndex(t){return this.identifierNameForToken(this.tokenAtRelativeIndex(t))}identifierName(){return this.identifierNameForToken(this.currentToken())}identifierNameForToken(t){return this.code.slice(t.start,t.end)}rawCodeForToken(t){return this.code.slice(t.start,t.end)}stringValueAtIndex(t){return this.stringValueForToken(this.tokens[t])}stringValue(){return this.stringValueForToken(this.currentToken())}stringValueForToken(t){return this.code.slice(t.start+1,t.end-1)}matches1AtIndex(t,e){return this.tokens[t].type===e}matches2AtIndex(t,e,n){return this.tokens[t].type===e&&this.tokens[t+1].type===n}matches3AtIndex(t,e,n,i){return this.tokens[t].type===e&&this.tokens[t+1].type===n&&this.tokens[t+2].type===i}matches1(t){return this.tokens[this.tokenIndex].type===t}matches2(t,e){return this.tokens[this.tokenIndex].type===t&&this.tokens[this.tokenIndex+1].type===e}matches3(t,e,n){return this.tokens[this.tokenIndex].type===t&&this.tokens[this.tokenIndex+1].type===e&&this.tokens[this.tokenIndex+2].type===n}matches4(t,e,n,i){return this.tokens[this.tokenIndex].type===t&&this.tokens[this.tokenIndex+1].type===e&&this.tokens[this.tokenIndex+2].type===n&&this.tokens[this.tokenIndex+3].type===i}matches5(t,e,n,i,r){return this.tokens[this.tokenIndex].type===t&&this.tokens[this.tokenIndex+1].type===e&&this.tokens[this.tokenIndex+2].type===n&&this.tokens[this.tokenIndex+3].type===i&&this.tokens[this.tokenIndex+4].type===r}matchesContextual(t){return this.matchesContextualAtIndex(this.tokenIndex,t)}matchesContextIdAndLabel(t,e){return this.matches1(t)&&this.currentToken().contextId===e}previousWhitespaceAndComments(){let t=this.code.slice(this.tokenIndex>0?this.tokens[this.tokenIndex-1].end:0,this.tokenIndex<this.tokens.length?this.tokens[this.tokenIndex].start:this.code.length);return this.isFlowEnabled&&(t=t.replace(/@flow/g,"")),t}replaceToken(t){this.resultCode+=this.previousWhitespaceAndComments(),this.appendTokenPrefix(),this.resultMappings[this.tokenIndex]=this.resultCode.length,this.resultCode+=t,this.appendTokenSuffix(),this.tokenIndex++}replaceTokenTrimmingLeftWhitespace(t){this.resultCode+=this.previousWhitespaceAndComments().replace(/[^\r\n]/g,""),this.appendTokenPrefix(),this.resultMappings[this.tokenIndex]=this.resultCode.length,this.resultCode+=t,this.appendTokenSuffix(),this.tokenIndex++}removeInitialToken(){this.replaceToken("")}removeToken(){this.replaceTokenTrimmingLeftWhitespace("")}removeBalancedCode(){let t=0;for(;!this.isAtEnd();){if(this.matches1(pt.braceL))t++;else if(this.matches1(pt.braceR)){if(0===t)return;t--}this.removeToken()}}copyExpectedToken(t){if(this.tokens[this.tokenIndex].type!==t)throw new Error(`Expected token ${t}`);this.copyToken()}copyToken(){this.resultCode+=this.previousWhitespaceAndComments(),this.appendTokenPrefix(),this.resultMappings[this.tokenIndex]=this.resultCode.length,this.resultCode+=this.code.slice(this.tokens[this.tokenIndex].start,this.tokens[this.tokenIndex].end),this.appendTokenSuffix(),this.tokenIndex++}copyTokenWithPrefix(t){this.resultCode+=this.previousWhitespaceAndComments(),this.appendTokenPrefix(),this.resultCode+=t,this.resultMappings[this.tokenIndex]=this.resultCode.length,this.resultCode+=this.code.slice(this.tokens[this.tokenIndex].start,this.tokens[this.tokenIndex].end),this.appendTokenSuffix(),this.tokenIndex++}appendTokenPrefix(){const t=this.currentToken();if((t.numNullishCoalesceStarts||t.isOptionalChainStart)&&(t.isAsyncOperation=function(t){let e=t.currentIndex(),n=0;const i=t.currentToken();do{const r=t.tokens[e];if(r.isOptionalChainStart&&n++,r.isOptionalChainEnd&&n--,n+=r.numNullishCoalesceStarts,n-=r.numNullishCoalesceEnds,r.contextualKeyword===dt._await&&null==r.identifierRole&&r.scopeDepth===i.scopeDepth)return!0;e+=1}while(n>0&&e<t.tokens.length);return!1}(this)),!this.disableESTransforms){if(t.numNullishCoalesceStarts)for(let e=0;e<t.numNullishCoalesceStarts;e++)t.isAsyncOperation?(this.resultCode+="await ",this.resultCode+=this.helperManager.getHelperName("asyncNullishCoalesce")):this.resultCode+=this.helperManager.getHelperName("nullishCoalesce"),this.resultCode+="(";t.isOptionalChainStart&&(t.isAsyncOperation&&(this.resultCode+="await "),this.tokenIndex>0&&this.tokenAtRelativeIndex(-1).type===pt._delete?t.isAsyncOperation?this.resultCode+=this.helperManager.getHelperName("asyncOptionalChainDelete"):this.resultCode+=this.helperManager.getHelperName("optionalChainDelete"):t.isAsyncOperation?this.resultCode+=this.helperManager.getHelperName("asyncOptionalChain"):this.resultCode+=this.helperManager.getHelperName("optionalChain"),this.resultCode+="([")}}appendTokenSuffix(){const t=this.currentToken();if(t.isOptionalChainEnd&&!this.disableESTransforms&&(this.resultCode+="])"),t.numNullishCoalesceEnds&&!this.disableESTransforms)for(let e=0;e<t.numNullishCoalesceEnds;e++)this.resultCode+="))"}appendCode(t){this.resultCode+=t}currentToken(){return this.tokens[this.tokenIndex]}currentTokenCode(){const t=this.currentToken();return this.code.slice(t.start,t.end)}tokenAtRelativeIndex(t){return this.tokens[this.tokenIndex+t]}currentIndex(){return this.tokenIndex}nextToken(){if(this.tokenIndex===this.tokens.length)throw new Error("Unexpectedly reached end of input.");this.tokenIndex++}previousToken(){this.tokenIndex--}finish(){if(this.tokenIndex!==this.tokens.length)throw new Error("Tried to finish processing tokens before reaching the end.");return this.resultCode+=this.previousWhitespaceAndComments(),{code:this.resultCode,mappings:this.resultMappings}}isAtEnd(){return this.tokenIndex===this.tokens.length}}function po(t,e,n,i){const r=e.snapshot(),o=function(t){const e=t.currentToken(),n=e.contextId;if(null==n)throw new Error("Expected context ID on class token.");const i=e.isExpression;if(null==i)throw new Error("Expected isExpression on class token.");let r=null,o=!1;t.nextToken(),t.matches1(pt.name)&&(r=t.identifierName());for(;!t.matchesContextIdAndLabel(pt.braceL,n);)t.matches1(pt._extends)&&!t.currentToken().isType&&(o=!0),t.nextToken();return{isExpression:i,className:r,hasSuperclass:o}}(e);let a=[];const s=[],l=[];let h=null;const c=[],u=[],d=e.currentToken().contextId;if(null==d)throw new Error("Expected non-null class context ID on class open-brace.");for(e.nextToken();!e.matchesContextIdAndLabel(pt.braceR,d);)if(e.matchesContextual(dt._constructor)&&!e.currentToken().isType)({constructorInitializerStatements:a,constructorInsertPos:h}=go(e));else if(e.matches1(pt.semi))i||u.push({start:e.currentIndex(),end:e.currentIndex()+1}),e.nextToken();else if(e.currentToken().isType)e.nextToken();else{const r=e.currentIndex();let o=!1,p=!1,f=!1;for(;mo(e.currentToken());)e.matches1(pt._static)&&(o=!0),e.matches1(pt.hash)&&(p=!0),(e.matches1(pt._declare)||e.matches1(pt._abstract))&&(f=!0),e.nextToken();if(o&&e.matches1(pt.braceL)){fo(e,d);continue}if(p){fo(e,d);continue}if(e.matchesContextual(dt._constructor)&&!e.currentToken().isType){({constructorInitializerStatements:a,constructorInsertPos:h}=go(e));continue}const g=e.currentIndex();if(vo(e),e.matches1(pt.lessThan)||e.matches1(pt.parenL)){fo(e,d);continue}for(;e.currentToken().isType;)e.nextToken();if(e.matches1(pt.eq)){const i=e.currentIndex(),r=e.currentToken().rhsEndIndex;if(null==r)throw new Error("Expected rhsEndIndex on class field assignment.");for(e.nextToken();e.currentIndex()<r;)t.processToken();let a;o?(a=n.claimFreeName("__initStatic"),l.push(a)):(a=n.claimFreeName("__init"),s.push(a)),c.push({initializerName:a,equalsIndex:i,start:g,end:e.currentIndex()})}else i&&!f||u.push({start:r,end:e.currentIndex()})}return e.restoreToSnapshot(r),i?{headerInfo:o,constructorInitializerStatements:a,instanceInitializerNames:[],staticInitializerNames:[],constructorInsertPos:h,fields:[],rangesToRemove:u}:{headerInfo:o,constructorInitializerStatements:a,instanceInitializerNames:s,staticInitializerNames:l,constructorInsertPos:h,fields:c,rangesToRemove:u}}function fo(t,e){for(t.nextToken();t.currentToken().contextId!==e;)t.nextToken();for(;mo(t.tokenAtRelativeIndex(-1));)t.previousToken()}function go(t){const e=[];t.nextToken();const n=t.currentToken().contextId;if(null==n)throw new Error("Expected context ID on open-paren starting constructor params.");for(;!t.matchesContextIdAndLabel(pt.parenR,n);)if(t.currentToken().contextId===n){if(t.nextToken(),mo(t.currentToken())){for(t.nextToken();mo(t.currentToken());)t.nextToken();const n=t.currentToken();if(n.type!==pt.name)throw new Error("Expected identifier after access modifiers in constructor arg.");const i=t.identifierNameForToken(n);e.push(`this.${i} = ${i}`)}}else t.nextToken();for(t.nextToken();t.currentToken().isType;)t.nextToken();let i=t.currentIndex(),r=!1;for(;!t.matchesContextIdAndLabel(pt.braceR,n);){if(!r&&t.matches2(pt._super,pt.parenL)){t.nextToken();const e=t.currentToken().contextId;if(null==e)throw new Error("Expected a context ID on the super call");for(;!t.matchesContextIdAndLabel(pt.parenR,e);)t.nextToken();i=t.currentIndex(),r=!0}t.nextToken()}return t.nextToken(),{constructorInitializerStatements:e,constructorInsertPos:i}}function mo(t){return[pt._async,pt._get,pt._set,pt.plus,pt.minus,pt._readonly,pt._static,pt._public,pt._private,pt._protected,pt._override,pt._abstract,pt.star,pt._declare,pt.hash].includes(t.type)}function vo(t){if(t.matches1(pt.bracketL)){const e=t.currentToken().contextId;if(null==e)throw new Error("Expected class context ID on computed name open bracket.");for(;!t.matchesContextIdAndLabel(pt.bracketR,e);)t.nextToken();t.nextToken()}else t.nextToken()}function yo(t){if(t.removeInitialToken(),t.removeToken(),t.removeToken(),t.removeToken(),t.matches1(pt.parenL))t.removeToken(),t.removeToken(),t.removeToken();else for(;t.matches1(pt.dot);)t.removeToken(),t.removeToken()}const _o={typeDeclarations:new Set,valueDeclarations:new Set};function xo(t){const e=new Set,n=new Set;for(let i=0;i<t.tokens.length;i++){const r=t.tokens[i];r.type===pt.name&&se(r)&&(r.isType?e.add(t.identifierNameForToken(r)):n.add(t.identifierNameForToken(r)))}return{typeDeclarations:e,valueDeclarations:n}}function bo(t){let e=t.currentIndex();for(;!t.matches1AtIndex(e,pt.braceR);)e++;return t.matchesContextualAtIndex(e+1,dt._from)&&t.matches1AtIndex(e+2,pt.string)}function wo(t){(t.matches2(pt._with,pt.braceL)||t.matches2(pt.name,pt.braceL)&&t.matchesContextual(dt._assert))&&(t.removeToken(),t.removeToken(),t.removeBalancedCode(),t.removeToken())}function So(t,e,n,i){if(!t||e)return!1;const r=n.currentToken();if(null==r.rhsEndIndex)throw new Error("Expected non-null rhsEndIndex on export token.");const o=r.rhsEndIndex-n.currentIndex();if(3!==o&&(4!==o||!n.matches1AtIndex(r.rhsEndIndex-1,pt.semi)))return!1;const a=n.tokenAtRelativeIndex(2);if(a.type!==pt.name)return!1;const s=n.identifierNameForToken(a);return i.typeDeclarations.has(s)&&!i.valueDeclarations.has(s)}class To extends je{__init(){this.hadExport=!1}__init2(){this.hadNamedExport=!1}__init3(){this.hadDefaultExport=!1}constructor(t,e,n,i,r,o,a,s,l,h,c,u){super(),this.rootTransformer=t,this.tokens=e,this.importProcessor=n,this.nameManager=i,this.helperManager=r,this.reactHotLoaderTransformer=o,this.enableLegacyBabel5ModuleInterop=a,this.enableLegacyTypeScriptModuleInterop=s,this.isTypeScriptTransformEnabled=l,this.isFlowTransformEnabled=h,this.preserveDynamicImport=c,this.keepUnusedImports=u,To.prototype.__init.call(this),To.prototype.__init2.call(this),To.prototype.__init3.call(this),this.declarationInfo=l?xo(e):_o}getPrefixCode(){let t="";return this.hadExport&&(t+='Object.defineProperty(exports, "__esModule", {value: true});'),t}getSuffixCode(){return this.enableLegacyBabel5ModuleInterop&&this.hadDefaultExport&&!this.hadNamedExport?"\nmodule.exports = exports.default;\n":""}process(){return this.tokens.matches3(pt._import,pt.name,pt.eq)?this.processImportEquals():this.tokens.matches1(pt._import)?(this.processImport(),!0):this.tokens.matches2(pt._export,pt.eq)?(this.tokens.replaceToken("module.exports"),!0):this.tokens.matches1(pt._export)&&!this.tokens.currentToken().isType?(this.hadExport=!0,this.processExport()):!(!this.tokens.matches2(pt.name,pt.postIncDec)||!this.processPostIncDec())||(this.tokens.matches1(pt.name)||this.tokens.matches1(pt.jsxName)?this.processIdentifier():this.tokens.matches1(pt.eq)?this.processAssignment():this.tokens.matches1(pt.assign)?this.processComplexAssignment():!!this.tokens.matches1(pt.preIncDec)&&this.processPreIncDec())}processImportEquals(){const t=this.tokens.identifierNameAtIndex(this.tokens.currentIndex()+1);return this.importProcessor.shouldAutomaticallyElideImportedName(t)?yo(this.tokens):this.tokens.replaceToken("const"),!0}processImport(){if(this.tokens.matches2(pt._import,pt.parenL)){if(this.preserveDynamicImport)return void this.tokens.copyToken();const t=this.enableLegacyTypeScriptModuleInterop?"":`${this.helperManager.getHelperName("interopRequireWildcard")}(`;this.tokens.replaceToken(`Promise.resolve().then(() => ${t}require`);const e=this.tokens.currentToken().contextId;if(null==e)throw new Error("Expected context ID on dynamic import invocation.");for(this.tokens.copyToken();!this.tokens.matchesContextIdAndLabel(pt.parenR,e);)this.rootTransformer.processToken();return void this.tokens.replaceToken(t?")))":"))")}if(this.removeImportAndDetectIfShouldElide())this.tokens.removeToken();else{const t=this.tokens.stringValue();this.tokens.replaceTokenTrimmingLeftWhitespace(this.importProcessor.claimImportCode(t)),this.tokens.appendCode(this.importProcessor.claimImportCode(t))}wo(this.tokens),this.tokens.matches1(pt.semi)&&this.tokens.removeToken()}removeImportAndDetectIfShouldElide(){if(this.tokens.removeInitialToken(),this.tokens.matchesContextual(dt._type)&&!this.tokens.matches1AtIndex(this.tokens.currentIndex()+1,pt.comma)&&!this.tokens.matchesContextualAtIndex(this.tokens.currentIndex()+1,dt._from))return this.removeRemainingImport(),!0;if(this.tokens.matches1(pt.name)||this.tokens.matches1(pt.star))return this.removeRemainingImport(),!1;if(this.tokens.matches1(pt.string))return!1;let t=!1,e=!1;for(;!this.tokens.matches1(pt.string);)(!t&&this.tokens.matches1(pt.braceL)||this.tokens.matches1(pt.comma))&&(this.tokens.removeToken(),this.tokens.matches1(pt.braceR)||(e=!0),(this.tokens.matches2(pt.name,pt.comma)||this.tokens.matches2(pt.name,pt.braceR)||this.tokens.matches4(pt.name,pt.name,pt.name,pt.comma)||this.tokens.matches4(pt.name,pt.name,pt.name,pt.braceR))&&(t=!0)),this.tokens.removeToken();return!this.keepUnusedImports&&(this.isTypeScriptTransformEnabled?!t:!!this.isFlowTransformEnabled&&(e&&!t))}removeRemainingImport(){for(;!this.tokens.matches1(pt.string);)this.tokens.removeToken()}processIdentifier(){const t=this.tokens.currentToken();if(t.shadowsGlobal)return!1;if(t.identifierRole===ie.ObjectShorthand)return this.processObjectShorthand();if(t.identifierRole!==ie.Access)return!1;const e=this.importProcessor.getIdentifierReplacement(this.tokens.identifierNameForToken(t));if(!e)return!1;let n=this.tokens.currentIndex()+1;for(;n<this.tokens.tokens.length&&this.tokens.tokens[n].type===pt.parenR;)n++;return this.tokens.tokens[n].type===pt.parenL?this.tokens.tokenAtRelativeIndex(1).type===pt.parenL&&this.tokens.tokenAtRelativeIndex(-1).type!==pt._new?(this.tokens.replaceToken(`${e}.call(void 0, `),this.tokens.removeToken(),this.rootTransformer.processBalancedCode(),this.tokens.copyExpectedToken(pt.parenR)):this.tokens.replaceToken(`(0, ${e})`):this.tokens.replaceToken(e),!0}processObjectShorthand(){const t=this.tokens.identifierName(),e=this.importProcessor.getIdentifierReplacement(t);return!!e&&(this.tokens.replaceToken(`${t}: ${e}`),!0)}processExport(){if(this.tokens.matches2(pt._export,pt._enum)||this.tokens.matches3(pt._export,pt._const,pt._enum))return this.hadNamedExport=!0,!1;if(this.tokens.matches2(pt._export,pt._default))return this.tokens.matches3(pt._export,pt._default,pt._enum)?(this.hadDefaultExport=!0,!1):(this.processExportDefault(),!0);if(this.tokens.matches2(pt._export,pt.braceL))return this.processExportBindings(),!0;if(this.tokens.matches2(pt._export,pt.name)&&this.tokens.matchesContextualAtIndex(this.tokens.currentIndex()+1,dt._type)){if(this.tokens.removeInitialToken(),this.tokens.removeToken(),this.tokens.matches1(pt.braceL)){for(;!this.tokens.matches1(pt.braceR);)this.tokens.removeToken();this.tokens.removeToken()}else this.tokens.removeToken(),this.tokens.matches1(pt._as)&&(this.tokens.removeToken(),this.tokens.removeToken());return this.tokens.matchesContextual(dt._from)&&this.tokens.matches1AtIndex(this.tokens.currentIndex()+1,pt.string)&&(this.tokens.removeToken(),this.tokens.removeToken(),wo(this.tokens)),!0}if(this.hadNamedExport=!0,this.tokens.matches2(pt._export,pt._var)||this.tokens.matches2(pt._export,pt._let)||this.tokens.matches2(pt._export,pt._const))return this.processExportVar(),!0;if(this.tokens.matches2(pt._export,pt._function)||this.tokens.matches3(pt._export,pt.name,pt._function))return this.processExportFunction(),!0;if(this.tokens.matches2(pt._export,pt._class)||this.tokens.matches3(pt._export,pt._abstract,pt._class)||this.tokens.matches2(pt._export,pt.at))return this.processExportClass(),!0;if(this.tokens.matches2(pt._export,pt.star))return this.processExportStar(),!0;throw new Error("Unrecognized export syntax.")}processAssignment(){const t=this.tokens.currentIndex(),e=this.tokens.tokens[t-1];if(e.isType||e.type!==pt.name)return!1;if(e.shadowsGlobal)return!1;if(t>=2&&this.tokens.matches1AtIndex(t-2,pt.dot))return!1;if(t>=2&&[pt._var,pt._let,pt._const].includes(this.tokens.tokens[t-2].type))return!1;const n=this.importProcessor.resolveExportBinding(this.tokens.identifierNameForToken(e));return!!n&&(this.tokens.copyToken(),this.tokens.appendCode(` ${n} =`),!0)}processComplexAssignment(){const t=this.tokens.currentIndex(),e=this.tokens.tokens[t-1];if(e.type!==pt.name)return!1;if(e.shadowsGlobal)return!1;if(t>=2&&this.tokens.matches1AtIndex(t-2,pt.dot))return!1;const n=this.importProcessor.resolveExportBinding(this.tokens.identifierNameForToken(e));return!!n&&(this.tokens.appendCode(` = ${n}`),this.tokens.copyToken(),!0)}processPreIncDec(){const t=this.tokens.currentIndex(),e=this.tokens.tokens[t+1];if(e.type!==pt.name)return!1;if(e.shadowsGlobal)return!1;if(t+2<this.tokens.tokens.length&&(this.tokens.matches1AtIndex(t+2,pt.dot)||this.tokens.matches1AtIndex(t+2,pt.bracketL)||this.tokens.matches1AtIndex(t+2,pt.parenL)))return!1;const n=this.tokens.identifierNameForToken(e),i=this.importProcessor.resolveExportBinding(n);return!!i&&(this.tokens.appendCode(`${i} = `),this.tokens.copyToken(),!0)}processPostIncDec(){const t=this.tokens.currentIndex(),e=this.tokens.tokens[t],n=this.tokens.tokens[t+1];if(e.type!==pt.name)return!1;if(e.shadowsGlobal)return!1;if(t>=1&&this.tokens.matches1AtIndex(t-1,pt.dot))return!1;const i=this.tokens.identifierNameForToken(e),r=this.importProcessor.resolveExportBinding(i);if(!r)return!1;const o=this.tokens.rawCodeForToken(n),a=this.importProcessor.getIdentifierReplacement(i)||i;if("++"===o)this.tokens.replaceToken(`(${a} = ${r} = ${a} + 1, ${a} - 1)`);else{if("--"!==o)throw new Error(`Unexpected operator: ${o}`);this.tokens.replaceToken(`(${a} = ${r} = ${a} - 1, ${a} + 1)`)}return this.tokens.removeToken(),!0}processExportDefault(){let t=!0;if(this.tokens.matches4(pt._export,pt._default,pt._function,pt.name)||this.tokens.matches5(pt._export,pt._default,pt.name,pt._function,pt.name)&&this.tokens.matchesContextualAtIndex(this.tokens.currentIndex()+2,dt._async)){this.tokens.removeInitialToken(),this.tokens.removeToken();const t=this.processNamedFunction();this.tokens.appendCode(` exports.default = ${t};`)}else if(this.tokens.matches4(pt._export,pt._default,pt._class,pt.name)||this.tokens.matches5(pt._export,pt._default,pt._abstract,pt._class,pt.name)||this.tokens.matches3(pt._export,pt._default,pt.at)){this.tokens.removeInitialToken(),this.tokens.removeToken(),this.copyDecorators(),this.tokens.matches1(pt._abstract)&&this.tokens.removeToken();const t=this.rootTransformer.processNamedClass();this.tokens.appendCode(` exports.default = ${t};`)}else if(So(this.isTypeScriptTransformEnabled,this.keepUnusedImports,this.tokens,this.declarationInfo))t=!1,this.tokens.removeInitialToken(),this.tokens.removeToken(),this.tokens.removeToken();else if(this.reactHotLoaderTransformer){const t=this.nameManager.claimFreeName("_default");this.tokens.replaceToken(`let ${t}; exports.`),this.tokens.copyToken(),this.tokens.appendCode(` = ${t} =`),this.reactHotLoaderTransformer.setExtractedDefaultExportName(t)}else this.tokens.replaceToken("exports."),this.tokens.copyToken(),this.tokens.appendCode(" =");t&&(this.hadDefaultExport=!0)}copyDecorators(){for(;this.tokens.matches1(pt.at);)if(this.tokens.copyToken(),this.tokens.matches1(pt.parenL))this.tokens.copyExpectedToken(pt.parenL),this.rootTransformer.processBalancedCode(),this.tokens.copyExpectedToken(pt.parenR);else{for(this.tokens.copyExpectedToken(pt.name);this.tokens.matches1(pt.dot);)this.tokens.copyExpectedToken(pt.dot),this.tokens.copyExpectedToken(pt.name);this.tokens.matches1(pt.parenL)&&(this.tokens.copyExpectedToken(pt.parenL),this.rootTransformer.processBalancedCode(),this.tokens.copyExpectedToken(pt.parenR))}}processExportVar(){this.isSimpleExportVar()?this.processSimpleExportVar():this.processComplexExportVar()}isSimpleExportVar(){let t=this.tokens.currentIndex();if(t++,t++,!this.tokens.matches1AtIndex(t,pt.name))return!1;for(t++;t<this.tokens.tokens.length&&this.tokens.tokens[t].isType;)t++;return!!this.tokens.matches1AtIndex(t,pt.eq)}processSimpleExportVar(){this.tokens.removeInitialToken(),this.tokens.copyToken();const t=this.tokens.identifierName();for(;!this.tokens.matches1(pt.eq);)this.rootTransformer.processToken();const e=this.tokens.currentToken().rhsEndIndex;if(null==e)throw new Error("Expected = token with an end index.");for(;this.tokens.currentIndex()<e;)this.rootTransformer.processToken();this.tokens.appendCode(`; exports.${t} = ${t}`)}processComplexExportVar(){this.tokens.removeInitialToken(),this.tokens.removeToken();const t=this.tokens.matches1(pt.braceL);t&&this.tokens.appendCode("(");let e=0;for(;;)if(this.tokens.matches1(pt.braceL)||this.tokens.matches1(pt.dollarBraceL)||this.tokens.matches1(pt.bracketL))e++,this.tokens.copyToken();else if(this.tokens.matches1(pt.braceR)||this.tokens.matches1(pt.bracketR))e--,this.tokens.copyToken();else{if(0===e&&!this.tokens.matches1(pt.name)&&!this.tokens.currentToken().isType)break;if(this.tokens.matches1(pt.eq)){const t=this.tokens.currentToken().rhsEndIndex;if(null==t)throw new Error("Expected = token with an end index.");for(;this.tokens.currentIndex()<t;)this.rootTransformer.processToken()}else{const t=this.tokens.currentToken();if(oe(t)){const e=this.tokens.identifierName();let n=this.importProcessor.getIdentifierReplacement(e);if(null===n)throw new Error(`Expected a replacement for ${e} in \`export var\` syntax.`);ce(t)&&(n=`${e}: ${n}`),this.tokens.replaceToken(n)}else this.rootTransformer.processToken()}}if(t){const t=this.tokens.currentToken().rhsEndIndex;if(null==t)throw new Error("Expected = token with an end index.");for(;this.tokens.currentIndex()<t;)this.rootTransformer.processToken();this.tokens.appendCode(")")}}processExportFunction(){this.tokens.replaceToken("");const t=this.processNamedFunction();this.tokens.appendCode(` exports.${t} = ${t};`)}processNamedFunction(){if(this.tokens.matches1(pt._function))this.tokens.copyToken();else if(this.tokens.matches2(pt.name,pt._function)){if(!this.tokens.matchesContextual(dt._async))throw new Error("Expected async keyword in function export.");this.tokens.copyToken(),this.tokens.copyToken()}if(this.tokens.matches1(pt.star)&&this.tokens.copyToken(),!this.tokens.matches1(pt.name))throw new Error("Expected identifier for exported function name.");const t=this.tokens.identifierName();if(this.tokens.copyToken(),this.tokens.currentToken().isType)for(this.tokens.removeInitialToken();this.tokens.currentToken().isType;)this.tokens.removeToken();return this.tokens.copyExpectedToken(pt.parenL),this.rootTransformer.processBalancedCode(),this.tokens.copyExpectedToken(pt.parenR),this.rootTransformer.processPossibleTypeRange(),this.tokens.copyExpectedToken(pt.braceL),this.rootTransformer.processBalancedCode(),this.tokens.copyExpectedToken(pt.braceR),t}processExportClass(){this.tokens.removeInitialToken(),this.copyDecorators(),this.tokens.matches1(pt._abstract)&&this.tokens.removeToken();const t=this.rootTransformer.processNamedClass();this.tokens.appendCode(` exports.${t} = ${t};`)}processExportBindings(){this.tokens.removeInitialToken(),this.tokens.removeToken();const t=bo(this.tokens),e=[];for(;;){if(this.tokens.matches1(pt.braceR)){this.tokens.removeToken();break}const n=Fe(this.tokens);for(;this.tokens.currentIndex()<n.endIndex;)this.tokens.removeToken();if(!(n.isType||!t&&this.shouldElideExportedIdentifier(n.leftName))){const t=n.rightName;"default"===t?this.hadDefaultExport=!0:this.hadNamedExport=!0;const i=n.leftName,r=this.importProcessor.getIdentifierReplacement(i);e.push(`exports.${t} = ${r||i};`)}if(this.tokens.matches1(pt.braceR)){this.tokens.removeToken();break}if(this.tokens.matches2(pt.comma,pt.braceR)){this.tokens.removeToken(),this.tokens.removeToken();break}if(!this.tokens.matches1(pt.comma))throw new Error(`Unexpected token: ${JSON.stringify(this.tokens.currentToken())}`);this.tokens.removeToken()}if(this.tokens.matchesContextual(dt._from)){this.tokens.removeToken();const t=this.tokens.stringValue();this.tokens.replaceTokenTrimmingLeftWhitespace(this.importProcessor.claimImportCode(t)),wo(this.tokens)}else this.tokens.appendCode(e.join(" "));this.tokens.matches1(pt.semi)&&this.tokens.removeToken()}processExportStar(){for(this.tokens.removeInitialToken();!this.tokens.matches1(pt.string);)this.tokens.removeToken();const t=this.tokens.stringValue();this.tokens.replaceTokenTrimmingLeftWhitespace(this.importProcessor.claimImportCode(t)),wo(this.tokens),this.tokens.matches1(pt.semi)&&this.tokens.removeToken()}shouldElideExportedIdentifier(t){return this.isTypeScriptTransformEnabled&&!this.keepUnusedImports&&!this.declarationInfo.valueDeclarations.has(t)}}class Mo extends je{constructor(t,e,n,i,r,o,a,s){super(),this.tokens=t,this.nameManager=e,this.helperManager=n,this.reactHotLoaderTransformer=i,this.isTypeScriptTransformEnabled=r,this.isFlowTransformEnabled=o,this.keepUnusedImports=a,this.nonTypeIdentifiers=r&&!a?Ye(t,s):new Set,this.declarationInfo=r&&!a?xo(t):_o,this.injectCreateRequireForImportRequire=Boolean(s.injectCreateRequireForImportRequire)}process(){if(this.tokens.matches3(pt._import,pt.name,pt.eq))return this.processImportEquals();if(this.tokens.matches4(pt._import,pt.name,pt.name,pt.eq)&&this.tokens.matchesContextualAtIndex(this.tokens.currentIndex()+1,dt._type)){this.tokens.removeInitialToken();for(let t=0;t<7;t++)this.tokens.removeToken();return!0}if(this.tokens.matches2(pt._export,pt.eq))return this.tokens.replaceToken("module.exports"),!0;if(this.tokens.matches5(pt._export,pt._import,pt.name,pt.name,pt.eq)&&this.tokens.matchesContextualAtIndex(this.tokens.currentIndex()+2,dt._type)){this.tokens.removeInitialToken();for(let t=0;t<8;t++)this.tokens.removeToken();return!0}if(this.tokens.matches1(pt._import))return this.processImport();if(this.tokens.matches2(pt._export,pt._default))return this.processExportDefault();if(this.tokens.matches2(pt._export,pt.braceL))return this.processNamedExports();if(this.tokens.matches2(pt._export,pt.name)&&this.tokens.matchesContextualAtIndex(this.tokens.currentIndex()+1,dt._type)){if(this.tokens.removeInitialToken(),this.tokens.removeToken(),this.tokens.matches1(pt.braceL)){for(;!this.tokens.matches1(pt.braceR);)this.tokens.removeToken();this.tokens.removeToken()}else this.tokens.removeToken(),this.tokens.matches1(pt._as)&&(this.tokens.removeToken(),this.tokens.removeToken());return this.tokens.matchesContextual(dt._from)&&this.tokens.matches1AtIndex(this.tokens.currentIndex()+1,pt.string)&&(this.tokens.removeToken(),this.tokens.removeToken(),wo(this.tokens)),!0}return!1}processImportEquals(){const t=this.tokens.identifierNameAtIndex(this.tokens.currentIndex()+1);return this.shouldAutomaticallyElideImportedName(t)?yo(this.tokens):this.injectCreateRequireForImportRequire?(this.tokens.replaceToken("const"),this.tokens.copyToken(),this.tokens.copyToken(),this.tokens.replaceToken(this.helperManager.getHelperName("require"))):this.tokens.replaceToken("const"),!0}processImport(){if(this.tokens.matches2(pt._import,pt.parenL))return!1;const t=this.tokens.snapshot();if(this.removeImportTypeBindings()){for(this.tokens.restoreToSnapshot(t);!this.tokens.matches1(pt.string);)this.tokens.removeToken();this.tokens.removeToken(),wo(this.tokens),this.tokens.matches1(pt.semi)&&this.tokens.removeToken()}return!0}removeImportTypeBindings(){if(this.tokens.copyExpectedToken(pt._import),this.tokens.matchesContextual(dt._type)&&!this.tokens.matches1AtIndex(this.tokens.currentIndex()+1,pt.comma)&&!this.tokens.matchesContextualAtIndex(this.tokens.currentIndex()+1,dt._from))return!0;if(this.tokens.matches1(pt.string))return this.tokens.copyToken(),!1;this.tokens.matchesContextual(dt._module)&&this.tokens.matchesContextualAtIndex(this.tokens.currentIndex()+2,dt._from)&&this.tokens.copyToken();let t=!1,e=!1,n=!1;if(this.tokens.matches1(pt.name)&&(this.shouldAutomaticallyElideImportedName(this.tokens.identifierName())?(this.tokens.removeToken(),this.tokens.matches1(pt.comma)&&this.tokens.removeToken()):(t=!0,this.tokens.copyToken(),this.tokens.matches1(pt.comma)&&(n=!0,this.tokens.removeToken()))),this.tokens.matches1(pt.star))this.shouldAutomaticallyElideImportedName(this.tokens.identifierNameAtRelativeIndex(2))?(this.tokens.removeToken(),this.tokens.removeToken(),this.tokens.removeToken()):(n&&this.tokens.appendCode(","),t=!0,this.tokens.copyExpectedToken(pt.star),this.tokens.copyExpectedToken(pt.name),this.tokens.copyExpectedToken(pt.name));else if(this.tokens.matches1(pt.braceL)){for(n&&this.tokens.appendCode(","),this.tokens.copyToken();!this.tokens.matches1(pt.braceR);){e=!0;const n=Fe(this.tokens);if(n.isType||this.shouldAutomaticallyElideImportedName(n.rightName)){for(;this.tokens.currentIndex()<n.endIndex;)this.tokens.removeToken();this.tokens.matches1(pt.comma)&&this.tokens.removeToken()}else{for(t=!0;this.tokens.currentIndex()<n.endIndex;)this.tokens.copyToken();this.tokens.matches1(pt.comma)&&this.tokens.copyToken()}}this.tokens.copyExpectedToken(pt.braceR)}return!this.keepUnusedImports&&(this.isTypeScriptTransformEnabled?!t:!!this.isFlowTransformEnabled&&(e&&!t))}shouldAutomaticallyElideImportedName(t){return this.isTypeScriptTransformEnabled&&!this.keepUnusedImports&&!this.nonTypeIdentifiers.has(t)}processExportDefault(){if(So(this.isTypeScriptTransformEnabled,this.keepUnusedImports,this.tokens,this.declarationInfo))return this.tokens.removeInitialToken(),this.tokens.removeToken(),this.tokens.removeToken(),!0;if(!(this.tokens.matches4(pt._export,pt._default,pt._function,pt.name)||this.tokens.matches5(pt._export,pt._default,pt.name,pt._function,pt.name)&&this.tokens.matchesContextualAtIndex(this.tokens.currentIndex()+2,dt._async)||this.tokens.matches4(pt._export,pt._default,pt._class,pt.name)||this.tokens.matches5(pt._export,pt._default,pt._abstract,pt._class,pt.name))&&this.reactHotLoaderTransformer){const t=this.nameManager.claimFreeName("_default");return this.tokens.replaceToken(`let ${t}; export`),this.tokens.copyToken(),this.tokens.appendCode(` ${t} =`),this.reactHotLoaderTransformer.setExtractedDefaultExportName(t),!0}return!1}processNamedExports(){if(!this.isTypeScriptTransformEnabled)return!1;this.tokens.copyExpectedToken(pt._export),this.tokens.copyExpectedToken(pt.braceL);const t=bo(this.tokens);let e=!1;for(;!this.tokens.matches1(pt.braceR);){const n=Fe(this.tokens);if(n.isType||!t&&this.shouldElideExportedName(n.leftName)){for(;this.tokens.currentIndex()<n.endIndex;)this.tokens.removeToken();this.tokens.matches1(pt.comma)&&this.tokens.removeToken()}else{for(e=!0;this.tokens.currentIndex()<n.endIndex;)this.tokens.copyToken();this.tokens.matches1(pt.comma)&&this.tokens.copyToken()}}return this.tokens.copyExpectedToken(pt.braceR),this.keepUnusedImports||!t||e||(this.tokens.removeToken(),this.tokens.removeToken(),wo(this.tokens)),!0}shouldElideExportedName(t){return this.isTypeScriptTransformEnabled&&!this.keepUnusedImports&&this.declarationInfo.typeDeclarations.has(t)&&!this.declarationInfo.valueDeclarations.has(t)}}class Ao extends je{constructor(t,e,n){super(),this.rootTransformer=t,this.tokens=e,this.isImportsTransformEnabled=n}process(){return!!(this.rootTransformer.processPossibleArrowParamEnd()||this.rootTransformer.processPossibleAsyncArrowWithTypeParams()||this.rootTransformer.processPossibleTypeRange())||(this.tokens.matches1(pt._enum)?(this.processEnum(),!0):this.tokens.matches2(pt._export,pt._enum)?(this.processNamedExportEnum(),!0):!!this.tokens.matches3(pt._export,pt._default,pt._enum)&&(this.processDefaultExportEnum(),!0))}processNamedExportEnum(){if(this.isImportsTransformEnabled){this.tokens.removeInitialToken();const t=this.tokens.identifierNameAtRelativeIndex(1);this.processEnum(),this.tokens.appendCode(` exports.${t} = ${t};`)}else this.tokens.copyToken(),this.processEnum()}processDefaultExportEnum(){this.tokens.removeInitialToken(),this.tokens.removeToken();const t=this.tokens.identifierNameAtRelativeIndex(1);this.processEnum(),this.isImportsTransformEnabled?this.tokens.appendCode(` exports.default = ${t};`):this.tokens.appendCode(` export default ${t};`)}processEnum(){this.tokens.replaceToken("const"),this.tokens.copyExpectedToken(pt.name);let t=!1;this.tokens.matchesContextual(dt._of)&&(this.tokens.removeToken(),t=this.tokens.matchesContextual(dt._symbol),this.tokens.removeToken());const e=this.tokens.matches3(pt.braceL,pt.name,pt.eq);this.tokens.appendCode(' = require("flow-enums-runtime")');const n=!t&&!e;for(this.tokens.replaceTokenTrimmingLeftWhitespace(n?".Mirrored([":"({");!this.tokens.matches1(pt.braceR);){if(this.tokens.matches1(pt.ellipsis)){this.tokens.removeToken();break}this.processEnumElement(t,e),this.tokens.matches1(pt.comma)&&this.tokens.copyToken()}this.tokens.replaceToken(n?"]);":"});")}processEnumElement(t,e){if(t){const t=this.tokens.identifierName();this.tokens.copyToken(),this.tokens.appendCode(`: Symbol("${t}")`)}else e?(this.tokens.copyToken(),this.tokens.replaceTokenTrimmingLeftWhitespace(":"),this.tokens.copyToken()):this.tokens.replaceToken(`"${this.tokens.identifierName()}"`)}}const Co="jest",Io=["mock","unmock","enableAutomock","disableAutomock"];class Eo extends je{__init(){this.hoistedFunctionNames=[]}constructor(t,e,n,i){super(),this.rootTransformer=t,this.tokens=e,this.nameManager=n,this.importProcessor=i,Eo.prototype.__init.call(this)}process(){return!(0!==this.tokens.currentToken().scopeDepth||!this.tokens.matches4(pt.name,pt.dot,pt.name,pt.parenL)||this.tokens.identifierName()!==Co)&&(!function(t){let e,n=t[0],i=1;for(;i<t.length;){const r=t[i],o=t[i+1];if(i+=2,("optionalAccess"===r||"optionalCall"===r)&&null==n)return;"access"===r||"optionalAccess"===r?(e=n,n=o(n)):"call"!==r&&"optionalCall"!==r||(n=o(((...t)=>n.call(e,...t))),e=void 0)}return n}([this,"access",t=>t.importProcessor,"optionalAccess",t=>t.getGlobalNames,"call",t=>t(),"optionalAccess",t=>t.has,"call",t=>t(Co)])&&this.extractHoistedCalls())}getHoistedCode(){return this.hoistedFunctionNames.length>0?this.hoistedFunctionNames.map((t=>`${t}();`)).join(""):""}extractHoistedCalls(){this.tokens.removeToken();let t=!1;for(;this.tokens.matches3(pt.dot,pt.name,pt.parenL);){const e=this.tokens.identifierNameAtIndex(this.tokens.currentIndex()+1);if(Io.includes(e)){const e=this.nameManager.claimFreeName("__jestHoist");this.hoistedFunctionNames.push(e),this.tokens.replaceToken(`function ${e}(){${Co}.`),this.tokens.copyToken(),this.tokens.copyToken(),this.rootTransformer.processBalancedCode(),this.tokens.copyExpectedToken(pt.parenR),this.tokens.appendCode(";}"),t=!1}else t?this.tokens.copyToken():this.tokens.replaceToken(`${Co}.`),this.tokens.copyToken(),this.tokens.copyToken(),this.rootTransformer.processBalancedCode(),this.tokens.copyExpectedToken(pt.parenR),t=!0}return!0}}class ko extends je{constructor(t){super(),this.tokens=t}process(){if(this.tokens.matches1(pt.num)){const t=this.tokens.currentTokenCode();if(t.includes("_"))return this.tokens.replaceToken(t.replace(/_/g,"")),!0}return!1}}class Lo extends je{constructor(t,e){super(),this.tokens=t,this.nameManager=e}process(){return!!this.tokens.matches2(pt._catch,pt.braceL)&&(this.tokens.copyToken(),this.tokens.appendCode(` (${this.nameManager.claimFreeName("e")})`),!0)}}class Do extends je{constructor(t,e){super(),this.tokens=t,this.nameManager=e}process(){if(this.tokens.matches1(pt.nullishCoalescing)){const t=this.tokens.currentToken();return this.tokens.tokens[t.nullishStartIndex].isAsyncOperation?this.tokens.replaceTokenTrimmingLeftWhitespace(", async () => ("):this.tokens.replaceTokenTrimmingLeftWhitespace(", () => ("),!0}if(this.tokens.matches1(pt._delete)){if(this.tokens.tokenAtRelativeIndex(1).isOptionalChainStart)return this.tokens.removeInitialToken(),!0}const t=this.tokens.currentToken().subscriptStartIndex;if(null!=t&&this.tokens.tokens[t].isOptionalChainStart&&this.tokens.tokenAtRelativeIndex(-1).type!==pt._super){const e=this.nameManager.claimFreeName("_");let n;if(n=t>0&&this.tokens.matches1AtIndex(t-1,pt._delete)&&this.isLastSubscriptInChain()?`${e} => delete ${e}`:`${e} => ${e}`,this.tokens.tokens[t].isAsyncOperation&&(n=`async ${n}`),this.tokens.matches2(pt.questionDot,pt.parenL)||this.tokens.matches2(pt.questionDot,pt.lessThan))this.justSkippedSuper()&&this.tokens.appendCode(".bind(this)"),this.tokens.replaceTokenTrimmingLeftWhitespace(`, 'optionalCall', ${n}`);else if(this.tokens.matches2(pt.questionDot,pt.bracketL))this.tokens.replaceTokenTrimmingLeftWhitespace(`, 'optionalAccess', ${n}`);else if(this.tokens.matches1(pt.questionDot))this.tokens.replaceTokenTrimmingLeftWhitespace(`, 'optionalAccess', ${n}.`);else if(this.tokens.matches1(pt.dot))this.tokens.replaceTokenTrimmingLeftWhitespace(`, 'access', ${n}.`);else if(this.tokens.matches1(pt.bracketL))this.tokens.replaceTokenTrimmingLeftWhitespace(`, 'access', ${n}[`);else{if(!this.tokens.matches1(pt.parenL))throw new Error("Unexpected subscript operator in optional chain.");this.justSkippedSuper()&&this.tokens.appendCode(".bind(this)"),this.tokens.replaceTokenTrimmingLeftWhitespace(`, 'call', ${n}(`)}return!0}return!1}isLastSubscriptInChain(){let t=0;for(let e=this.tokens.currentIndex()+1;;e++){if(e>=this.tokens.tokens.length)throw new Error("Reached the end of the code while finding the end of the access chain.");if(this.tokens.tokens[e].isOptionalChainStart?t++:this.tokens.tokens[e].isOptionalChainEnd&&t--,t<0)return!0;if(0===t&&null!=this.tokens.tokens[e].subscriptStartIndex)return!1}}justSkippedSuper(){let t=0,e=this.tokens.currentIndex()-1;for(;;){if(e<0)throw new Error("Reached the start of the code while finding the start of the access chain.");if(this.tokens.tokens[e].isOptionalChainStart?t--:this.tokens.tokens[e].isOptionalChainEnd&&t++,t<0)return!1;if(0===t&&null!=this.tokens.tokens[e].subscriptStartIndex)return this.tokens.tokens[e-1].type===pt._super;e--}}}class Po extends je{constructor(t,e,n,i){super(),this.rootTransformer=t,this.tokens=e,this.importProcessor=n,this.options=i}process(){const t=this.tokens.currentIndex();if("createReactClass"===this.tokens.identifierName()){const e=this.importProcessor&&this.importProcessor.getIdentifierReplacement("createReactClass");return e?this.tokens.replaceToken(`(0, ${e})`):this.tokens.copyToken(),this.tryProcessCreateClassCall(t),!0}if(this.tokens.matches3(pt.name,pt.dot,pt.name)&&"React"===this.tokens.identifierName()&&"createClass"===this.tokens.identifierNameAtIndex(this.tokens.currentIndex()+2)){const e=this.importProcessor&&this.importProcessor.getIdentifierReplacement("React")||"React";return e?(this.tokens.replaceToken(e),this.tokens.copyToken(),this.tokens.copyToken()):(this.tokens.copyToken(),this.tokens.copyToken(),this.tokens.copyToken()),this.tryProcessCreateClassCall(t),!0}return!1}tryProcessCreateClassCall(t){const e=this.findDisplayName(t);e&&this.classNeedsDisplayName()&&(this.tokens.copyExpectedToken(pt.parenL),this.tokens.copyExpectedToken(pt.braceL),this.tokens.appendCode(`displayName: '${e}',`),this.rootTransformer.processBalancedCode(),this.tokens.copyExpectedToken(pt.braceR),this.tokens.copyExpectedToken(pt.parenR))}findDisplayName(t){return t<2?null:this.tokens.matches2AtIndex(t-2,pt.name,pt.eq)||t>=2&&this.tokens.tokens[t-2].identifierRole===ie.ObjectKey?this.tokens.identifierNameAtIndex(t-2):this.tokens.matches2AtIndex(t-2,pt._export,pt._default)?this.getDisplayNameFromFilename():null}getDisplayNameFromFilename(){const t=(this.options.filePath||"unknown").split("/"),e=t[t.length-1],n=e.lastIndexOf("."),i=-1===n?e:e.slice(0,n);return"index"===i&&t[t.length-2]?t[t.length-2]:i}classNeedsDisplayName(){let t=this.tokens.currentIndex();if(!this.tokens.matches2(pt.parenL,pt.braceL))return!1;const e=t+1,n=this.tokens.tokens[e].contextId;if(null==n)throw new Error("Expected non-null context ID on object open-brace.");for(;t<this.tokens.tokens.length;t++){const e=this.tokens.tokens[t];if(e.type===pt.braceR&&e.contextId===n){t++;break}if("displayName"===this.tokens.identifierNameAtIndex(t)&&this.tokens.tokens[t].identifierRole===ie.ObjectKey&&e.contextId===n)return!1}if(t===this.tokens.tokens.length)throw new Error("Unexpected end of input when processing React class.");return this.tokens.matches1AtIndex(t,pt.parenR)||this.tokens.matches2AtIndex(t,pt.comma,pt.parenR)}}class Ro extends je{__init(){this.extractedDefaultExportName=null}constructor(t,e){super(),this.tokens=t,this.filePath=e,Ro.prototype.__init.call(this)}setExtractedDefaultExportName(t){this.extractedDefaultExportName=t}getPrefixCode(){return"\n (function () {\n var enterModule = require('react-hot-loader').enterModule;\n enterModule && enterModule(module);\n })();".replace(/\s+/g," ").trim()}getSuffixCode(){const t=new Set;for(const n of this.tokens.tokens)!n.isType&&se(n)&&n.identifierRole!==ie.ImportDeclaration&&t.add(this.tokens.identifierNameForToken(n));const e=Array.from(t).map((t=>({variableName:t,uniqueLocalName:t})));return this.extractedDefaultExportName&&e.push({variableName:this.extractedDefaultExportName,uniqueLocalName:"default"}),`\n;(function () {\n var reactHotLoader = require('react-hot-loader').default;\n var leaveModule = require('react-hot-loader').leaveModule;\n if (!reactHotLoader) {\n return;\n }\n${e.map((({variableName:t,uniqueLocalName:e})=>` reactHotLoader.register(${t}, "${e}", ${JSON.stringify(this.filePath||"")});`)).join("\n")}\n leaveModule(module);\n})();`}process(){return!1}}const Oo=new Set(["break","case","catch","class","const","continue","debugger","default","delete","do","else","export","extends","finally","for","function","if","import","in","instanceof","new","return","super","switch","this","throw","try","typeof","var","void","while","with","yield","enum","implements","interface","let","package","private","protected","public","static","await","false","null","true"]);function No(t){if(0===t.length)return!1;if(!ee[t.charCodeAt(0)])return!1;for(let e=1;e<t.length;e++)if(!te[t.charCodeAt(e)])return!1;return!Oo.has(t)}class Fo extends je{constructor(t,e,n){super(),this.rootTransformer=t,this.tokens=e,this.isImportsTransformEnabled=n}process(){return!!(this.rootTransformer.processPossibleArrowParamEnd()||this.rootTransformer.processPossibleAsyncArrowWithTypeParams()||this.rootTransformer.processPossibleTypeRange())||(this.tokens.matches1(pt._public)||this.tokens.matches1(pt._protected)||this.tokens.matches1(pt._private)||this.tokens.matches1(pt._abstract)||this.tokens.matches1(pt._readonly)||this.tokens.matches1(pt._override)||this.tokens.matches1(pt.nonNullAssertion)?(this.tokens.removeInitialToken(),!0):this.tokens.matches1(pt._enum)||this.tokens.matches2(pt._const,pt._enum)?(this.processEnum(),!0):!(!this.tokens.matches2(pt._export,pt._enum)&&!this.tokens.matches3(pt._export,pt._const,pt._enum))&&(this.processEnum(!0),!0))}processEnum(t=!1){for(this.tokens.removeInitialToken();this.tokens.matches1(pt._const)||this.tokens.matches1(pt._enum);)this.tokens.removeToken();const e=this.tokens.identifierName();this.tokens.removeToken(),t&&!this.isImportsTransformEnabled&&this.tokens.appendCode("export "),this.tokens.appendCode(`var ${e}; (function (${e})`),this.tokens.copyExpectedToken(pt.braceL),this.processEnumBody(e),this.tokens.copyExpectedToken(pt.braceR),t&&this.isImportsTransformEnabled?this.tokens.appendCode(`)(${e} || (exports.${e} = ${e} = {}));`):this.tokens.appendCode(`)(${e} || (${e} = {}));`)}processEnumBody(t){let e=null;for(;!this.tokens.matches1(pt.braceR);){const{nameStringCode:n,variableName:i}=this.extractEnumKeyInfo(this.tokens.currentToken());this.tokens.removeInitialToken(),this.tokens.matches3(pt.eq,pt.string,pt.comma)||this.tokens.matches3(pt.eq,pt.string,pt.braceR)?this.processStringLiteralEnumMember(t,n,i):this.tokens.matches1(pt.eq)?this.processExplicitValueEnumMember(t,n,i):this.processImplicitValueEnumMember(t,n,i,e),this.tokens.matches1(pt.comma)&&this.tokens.removeToken(),e=null!=i?i:`${t}[${n}]`}}extractEnumKeyInfo(t){if(t.type===pt.name){const e=this.tokens.identifierNameForToken(t);return{nameStringCode:`"${e}"`,variableName:No(e)?e:null}}if(t.type===pt.string){const e=this.tokens.stringValueForToken(t);return{nameStringCode:this.tokens.code.slice(t.start,t.end),variableName:No(e)?e:null}}throw new Error("Expected name or string at beginning of enum element.")}processStringLiteralEnumMember(t,e,n){null!=n?(this.tokens.appendCode(`const ${n}`),this.tokens.copyToken(),this.tokens.copyToken(),this.tokens.appendCode(`; ${t}[${e}] = ${n};`)):(this.tokens.appendCode(`${t}[${e}]`),this.tokens.copyToken(),this.tokens.copyToken(),this.tokens.appendCode(";"))}processExplicitValueEnumMember(t,e,n){const i=this.tokens.currentToken().rhsEndIndex;if(null==i)throw new Error("Expected rhsEndIndex on enum assign.");if(null!=n){for(this.tokens.appendCode(`const ${n}`),this.tokens.copyToken();this.tokens.currentIndex()<i;)this.rootTransformer.processToken();this.tokens.appendCode(`; ${t}[${t}[${e}] = ${n}] = ${e};`)}else{for(this.tokens.appendCode(`${t}[${t}[${e}]`),this.tokens.copyToken();this.tokens.currentIndex()<i;)this.rootTransformer.processToken();this.tokens.appendCode(`] = ${e};`)}}processImplicitValueEnumMember(t,e,n,i){let r=null!=i?`${i} + 1`:"0";null!=n&&(this.tokens.appendCode(`const ${n} = ${r}; `),r=n),this.tokens.appendCode(`${t}[${t}[${e}] = ${r}] = ${e};`)}}class Bo{__init(){this.transformers=[]}__init2(){this.generatedVariables=[]}constructor(t,e,n,i){Bo.prototype.__init.call(this),Bo.prototype.__init2.call(this),this.nameManager=t.nameManager,this.helperManager=t.helperManager;const{tokenProcessor:r,importProcessor:o}=t;this.tokens=r,this.isImportsTransformEnabled=e.includes("imports"),this.isReactHotLoaderTransformEnabled=e.includes("react-hot-loader"),this.disableESTransforms=Boolean(i.disableESTransforms),i.disableESTransforms||(this.transformers.push(new Do(r,this.nameManager)),this.transformers.push(new ko(r)),this.transformers.push(new Lo(r,this.nameManager))),e.includes("jsx")&&("preserve"!==i.jsxRuntime&&this.transformers.push(new He(this,r,o,this.nameManager,i)),this.transformers.push(new Po(this,r,o,i)));let a=null;if(e.includes("react-hot-loader")){if(!i.filePath)throw new Error("filePath is required when using the react-hot-loader transform.");a=new Ro(r,i.filePath),this.transformers.push(a)}if(e.includes("imports")){if(null===o)throw new Error("Expected non-null importProcessor with imports transform enabled.");this.transformers.push(new To(this,r,o,this.nameManager,this.helperManager,a,n,Boolean(i.enableLegacyTypeScriptModuleInterop),e.includes("typescript"),e.includes("flow"),Boolean(i.preserveDynamicImport),Boolean(i.keepUnusedImports)))}else this.transformers.push(new Mo(r,this.nameManager,this.helperManager,a,e.includes("typescript"),e.includes("flow"),Boolean(i.keepUnusedImports),i));e.includes("flow")&&this.transformers.push(new Ao(this,r,e.includes("imports"))),e.includes("typescript")&&this.transformers.push(new Fo(this,r,e.includes("imports"))),e.includes("jest")&&this.transformers.push(new Eo(this,r,this.nameManager,o))}transform(){this.tokens.reset(),this.processBalancedCode();let t=this.isImportsTransformEnabled?'"use strict";':"";for(const r of this.transformers)t+=r.getPrefixCode();t+=this.helperManager.emitHelpers(),t+=this.generatedVariables.map((t=>` var ${t};`)).join("");for(const r of this.transformers)t+=r.getHoistedCode();let e="";for(const r of this.transformers)e+=r.getSuffixCode();const n=this.tokens.finish();let{code:i}=n;if(i.startsWith("#!")){let r=i.indexOf("\n");return-1===r&&(r=i.length,i+="\n"),{code:i.slice(0,r+1)+t+i.slice(r+1)+e,mappings:this.shiftMappings(n.mappings,t.length)}}return{code:t+i+e,mappings:this.shiftMappings(n.mappings,t.length)}}processBalancedCode(){let t=0,e=0;for(;!this.tokens.isAtEnd();){if(this.tokens.matches1(pt.braceL)||this.tokens.matches1(pt.dollarBraceL))t++;else if(this.tokens.matches1(pt.braceR)){if(0===t)return;t--}if(this.tokens.matches1(pt.parenL))e++;else if(this.tokens.matches1(pt.parenR)){if(0===e)return;e--}this.processToken()}}processToken(){if(this.tokens.matches1(pt._class))this.processClass();else{for(const t of this.transformers){if(t.process())return}this.tokens.copyToken()}}processNamedClass(){if(!this.tokens.matches2(pt._class,pt.name))throw new Error("Expected identifier for exported class name.");const t=this.tokens.identifierNameAtIndex(this.tokens.currentIndex()+1);return this.processClass(),t}processClass(){const t=po(this,this.tokens,this.nameManager,this.disableESTransforms),e=(t.headerInfo.isExpression||!t.headerInfo.className)&&t.staticInitializerNames.length+t.instanceInitializerNames.length>0;let n=t.headerInfo.className;e&&(n=this.nameManager.claimFreeName("_class"),this.generatedVariables.push(n),this.tokens.appendCode(` (${n} =`));const i=this.tokens.currentToken().contextId;if(null==i)throw new Error("Expected class to have a context ID.");for(this.tokens.copyExpectedToken(pt._class);!this.tokens.matchesContextIdAndLabel(pt.braceL,i);)this.processToken();this.processClassBody(t,n);const r=t.staticInitializerNames.map((t=>`${n}.${t}()`));e?this.tokens.appendCode(`, ${r.map((t=>`${t}, `)).join("")}${n})`):t.staticInitializerNames.length>0&&this.tokens.appendCode(` ${r.map((t=>`${t};`)).join(" ")}`)}processClassBody(t,e){const{headerInfo:n,constructorInsertPos:i,constructorInitializerStatements:r,fields:o,instanceInitializerNames:a,rangesToRemove:s}=t;let l=0,h=0;const c=this.tokens.currentToken().contextId;if(null==c)throw new Error("Expected non-null context ID on class.");this.tokens.copyExpectedToken(pt.braceL),this.isReactHotLoaderTransformEnabled&&this.tokens.appendCode("__reactstandin__regenerateByEval(key, code) {this[key] = eval(code);}");const u=r.length+a.length>0;if(null===i&&u){const t=this.makeConstructorInitCode(r,a,e);if(n.hasSuperclass){const e=this.nameManager.claimFreeName("args");this.tokens.appendCode(`constructor(...${e}) { super(...${e}); ${t}; }`)}else this.tokens.appendCode(`constructor() { ${t}; }`)}for(;!this.tokens.matchesContextIdAndLabel(pt.braceR,c);)if(l<o.length&&this.tokens.currentIndex()===o[l].start){let t=!1;for(this.tokens.matches1(pt.bracketL)?this.tokens.copyTokenWithPrefix(`${o[l].initializerName}() {this`):this.tokens.matches1(pt.string)||this.tokens.matches1(pt.num)?(this.tokens.copyTokenWithPrefix(`${o[l].initializerName}() {this[`),t=!0):this.tokens.copyTokenWithPrefix(`${o[l].initializerName}() {this.`);this.tokens.currentIndex()<o[l].end;)t&&this.tokens.currentIndex()===o[l].equalsIndex&&this.tokens.appendCode("]"),this.processToken();this.tokens.appendCode("}"),l++}else if(h<s.length&&this.tokens.currentIndex()>=s[h].start){for(this.tokens.currentIndex()<s[h].end&&this.tokens.removeInitialToken();this.tokens.currentIndex()<s[h].end;)this.tokens.removeToken();h++}else this.tokens.currentIndex()===i?(this.tokens.copyToken(),u&&this.tokens.appendCode(`;${this.makeConstructorInitCode(r,a,e)};`),this.processToken()):this.processToken();this.tokens.copyExpectedToken(pt.braceR)}makeConstructorInitCode(t,e,n){return[...t,...e.map((t=>`${n}.prototype.${t}.call(this)`))].join(";")}processPossibleArrowParamEnd(){if(this.tokens.matches2(pt.parenR,pt.colon)&&this.tokens.tokenAtRelativeIndex(1).isType){let t=this.tokens.currentIndex()+1;for(;this.tokens.tokens[t].isType;)t++;if(this.tokens.matches1AtIndex(t,pt.arrow)){for(this.tokens.removeInitialToken();this.tokens.currentIndex()<t;)this.tokens.removeToken();return this.tokens.replaceTokenTrimmingLeftWhitespace(") =>"),!0}}return!1}processPossibleAsyncArrowWithTypeParams(){if(!this.tokens.matchesContextual(dt._async)&&!this.tokens.matches1(pt._async))return!1;const t=this.tokens.tokenAtRelativeIndex(1);if(t.type!==pt.lessThan||!t.isType)return!1;let e=this.tokens.currentIndex()+1;for(;this.tokens.tokens[e].isType;)e++;if(this.tokens.matches1AtIndex(e,pt.parenL)){for(this.tokens.replaceToken("async ("),this.tokens.removeInitialToken();this.tokens.currentIndex()<e;)this.tokens.removeToken();return this.tokens.removeToken(),this.processBalancedCode(),this.processToken(),!0}return!1}processPossibleTypeRange(){if(this.tokens.currentToken().isType){for(this.tokens.removeInitialToken();this.tokens.currentToken().isType;)this.tokens.removeToken();return!0}return!1}shiftMappings(t,e){for(let n=0;n<t.length;n++){const i=t[n];void 0!==i&&(t[n]=i+e)}return t}}n(8527);function zo(t,e,n){e++,t.matches1AtIndex(e,pt.parenL)||(t.matches1AtIndex(e,pt.name)&&(n.add(t.identifierNameAtIndex(e)),e++,t.matches1AtIndex(e,pt.comma)&&e++),t.matches1AtIndex(e,pt.star)&&(e+=2,n.add(t.identifierNameAtIndex(e)),e++),t.matches1AtIndex(e,pt.braceL)&&function(t,e,n){for(;;){if(t.matches1AtIndex(e,pt.braceR))return;const i=Fe(t,e);if(e=i.endIndex,i.isType||n.add(i.rightName),t.matches2AtIndex(e,pt.comma,pt.braceR))return;if(t.matches1AtIndex(e,pt.braceR))return;if(!t.matches1AtIndex(e,pt.comma))throw new Error(`Unexpected token: ${JSON.stringify(t.tokens[e])}`);e++}}(t,++e,n))}function Go(t,e){!function(t){an.strictCheck(t)}(e);try{const n=Vo(t,e),i=new Bo(n,e.transforms,Boolean(e.enableLegacyBabel5ModuleInterop),e).transform();let r={code:i.code};if(e.sourceMapOptions){if(!e.filePath)throw new Error("filePath must be specified when generating a source map.");r={...r,sourceMap:Ke(i,e.filePath,e.sourceMapOptions,t,n.tokenProcessor.tokens)}}return r}catch(n){throw e.filePath&&(n.message=`Error transforming ${e.filePath}: ${n.message}`),n}}function Vo(t,e){const n=e.transforms.includes("jsx"),i=e.transforms.includes("typescript"),r=e.transforms.includes("flow"),o=!0===e.disableESTransforms,a=function(t,e,n,i){if(i&&n)throw new Error("Cannot combine flow and typescript plugins.");Bt(t,e,n,i);const r=ho();if(Dt.error)throw Nt(Dt.error);return r}(t,n,i,r),s=a.tokens,l=a.scopes,h=new nn(t,s),c=new Qe(h),u=new uo(t,s,r,o,c),d=Boolean(e.enableLegacyTypeScriptModuleInterop);let p=null;return e.transforms.includes("imports")?(p=new Ze(h,u,d,e,e.transforms.includes("typescript"),Boolean(e.keepUnusedImports),c),p.preprocessTokens(),tn(u,l,p.getGlobalNames()),e.transforms.includes("typescript")&&!e.keepUnusedImports&&p.pruneTypeOnlyImports()):e.transforms.includes("typescript")&&!e.keepUnusedImports&&tn(u,l,function(t){const e=new Set;for(let n=0;n<t.tokens.length;n++)t.matches1AtIndex(n,pt._import)&&!t.matches3AtIndex(n,pt._import,pt.name,pt.eq)&&zo(t,n,e);return e}(u)),{tokenProcessor:u,scopes:l,nameManager:h,importProcessor:p,helperManager:c}}var jo=Object.defineProperty,Ho=Object.defineProperties,Wo=Object.getOwnPropertyDescriptors,Uo=Object.getOwnPropertySymbols,qo=Object.prototype.hasOwnProperty,Xo=Object.prototype.propertyIsEnumerable,Yo=(t,e,n)=>e in t?jo(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,Zo=(t,e)=>{for(var n in e||(e={}))qo.call(e,n)&&Yo(t,n,e[n]);if(Uo)for(var n of Uo(e))Xo.call(e,n)&&Yo(t,n,e[n]);return t},$o=(t,e)=>Ho(t,Wo(e)),Ko=t=>{const{tabMode:e="indentation"}=t,n=(0,r.useRef)(null),[i,o]=(0,r.useState)(t.code||""),{theme:a}=t;return(0,r.useEffect)((()=>{o(t.code)}),[t.code]),function(t,e,n){function i(e){var n=t.current;if(n){var i=Tt(n);n=St(n),i.position+=e.length-n.length,c.position=i,c.onChange(e,i)}}function o(e,n){var i=t.current;if(i){var r=window.getSelection().getRangeAt(0);r.deleteContents(),r.collapse();var o=n||0;(r=Mt(i,n=(r=Tt(i)).position+(0>o?o:0),r.position+(0<o?o:0))).deleteContents(),e&&r.insertNode(document.createTextNode(e)),bt(Mt(i,n+e.length))}}function a(e){var n=t.current;if(n){n.focus();var i=0;if("number"==typeof e)i=e;else{var r=St(n).split("\n").slice(0,e.row);e.row&&(i+=r.join("\n").length+1),i+=e.column}bt(Mt(n,i))}}function s(){var e=t.current;return{text:St(e),position:e=Tt(e)}}function l(){c.observer.disconnect()}n||(n={});var h=(0,r.useState)([])[1],c=(0,r.useState)((function(){var t={observer:null,disconnected:!1,onChange:e,queue:[],history:[],historyAt:-1,position:null};return"undefined"!=typeof MutationObserver&&(t.observer=new MutationObserver((function(e){var n;(n=t.queue).push.apply(n,e)}))),t}))[0],u=(0,r.useMemo)((function(){return{update:i,insert:o,move:a,getState:s}}),[]);"object"!=typeof navigator||((0,r.useLayoutEffect)((function(){if(c.onChange=e,t.current&&!n.disabled){if(c.disconnected=!1,c.observer.observe(t.current,xt),c.position){var i=c.position,r=i.position;bt(Mt(t.current,r,r+i.extent))}return l}})),(0,r.useLayoutEffect)((function(){if(t.current&&!n.disabled){var e=t.current;if(c.position){e.focus();var i=c.position,r=i.position;bt(Mt(e,r,r+i.extent))}var o=e.style.whiteSpace,a=e.contentEditable,s=!0;try{e.contentEditable="plaintext-only"}catch(x){e.contentEditable="true",s=!1}"pre"!==o&&(e.style.whiteSpace="pre-wrap"),n.indentation&&(e.style.tabSize=e.style.MozTabSize=""+n.indentation),i=""+" ".repeat(n.indentation||0);var l,d=new RegExp("^(?:"+i+")"),p=new RegExp("^(?:"+i+")*("+i+")$"),f=function(n){if(t.current&&c.position){var i=St(e),r=Tt(e),o=(new Date).valueOf(),a=c.history[c.historyAt];!n&&500>o-l||a&&a[1]===i?l=o:(n=++c.historyAt,c.history[n]=[r,i],c.history.splice(n+1),500<n&&(c.historyAt--,c.history.shift()))}},g=function(){var t;if((t=c.queue).push.apply(t,c.observer.takeRecords()),t=Tt(e),c.queue.length){c.observer.disconnect(),c.disconnected=!0;var n,i,r=St(e);for(c.position=t;n=c.queue.pop();){for(null!==n.oldValue&&(n.target.textContent=n.oldValue),i=n.removedNodes.length-1;0<=i;i--)n.target.insertBefore(n.removedNodes[i],n.nextSibling);for(i=n.addedNodes.length-1;0<=i;i--)n.addedNodes[i].parentNode&&n.target.removeChild(n.addedNodes[i])}c.onChange(r,t)}},m=function(t){if(!t.defaultPrevented&&t.target===e){if(c.disconnected)return t.preventDefault(),h([]);if(wt(t))t.preventDefault(),t.shiftKey?(t=++c.historyAt,(t=c.history[t])||(c.historyAt=c.history.length-1)):(t=--c.historyAt,(t=c.history[t])||(c.historyAt=0)),t&&(c.observer.disconnect(),c.disconnected=!0,c.position=t[0],c.onChange(t[1],t[0]));else{if(f(),"Enter"===t.key){t.preventDefault();var i=Tt(e),r=/\S/g.exec(i.content);i="\n"+i.content.slice(0,r?r.index:i.content.length),u.insert(i)}else if(s&&!n.indentation||"Backspace"!==t.key){if(n.indentation&&"Tab"===t.key){t.preventDefault(),r=(i=Tt(e)).position-i.content.length;var o=St(e);i=t.shiftKey?o.slice(0,r)+i.content.replace(d,"")+o.slice(r+i.content.length):o.slice(0,r)+(n.indentation?" ".repeat(n.indentation):"\t")+o.slice(r),u.update(i)}}else t.preventDefault(),window.getSelection().getRangeAt(0).collapsed?(i=Tt(e),i=p.exec(i.content),u.insert("",i?-i[1].length:-1)):u.insert("",0);t.repeat&&g()}}},v=function(t){t.defaultPrevented||t.isComposing||(wt(t)||f(),g(),e.focus())},y=function(t){c.position=window.getSelection().rangeCount&&t.target===e?Tt(e):null},_=function(t){t.preventDefault(),f(!0),u.insert(t.clipboardData.getData("text/plain")),f(!0),g()};return document.addEventListener("selectstart",y),window.addEventListener("keydown",m),e.addEventListener("paste",_),e.addEventListener("keyup",v),function(){document.removeEventListener("selectstart",y),window.removeEventListener("keydown",m),e.removeEventListener("paste",_),e.removeEventListener("keyup",v),e.style.whiteSpace=o,e.contentEditable=a}}c.history.length=0,c.historyAt=-1}),[t.current,n.disabled,n.indentation]))}(n,(t=>o(t.slice(0,-1))),{disabled:t.disabled,indentation:"indentation"===e?2:void 0}),(0,r.useEffect)((()=>{t.onChange&&t.onChange(i)}),[i]),(0,s.jsx)("div",{className:t.className,style:t.style,children:(0,s.jsx)(_t.f4,{code:i,theme:t.theme||_t.Zj.nightOwl,language:t.language,children:({className:t,tokens:e,getLineProps:i,getTokenProps:r,style:o})=>(0,s.jsx)("pre",{className:t,style:Zo(Zo({margin:0,outline:"none",padding:10,fontFamily:"inherit"},a&&"object"==typeof a.plain?a.plain:{}),o),ref:n,spellCheck:"false",children:e.map(((t,e)=>(0,s.jsxs)("span",$o(Zo({},i({line:t})),{children:[t.filter((t=>!t.empty)).map(((t,e)=>(0,s.jsx)("span",Zo({},r({token:t})),`token-${e}`))),"\n"]}),`line-${e}`)))})})})},Jo=(0,r.createContext)({}),Qo=["jsx","imports"];function ta(t={}){const e=Array.isArray(t.transforms)?t.transforms.filter(Boolean):Qo;return t=>Go(t,{transforms:e}).code}var ea=(t,e)=>class extends r.Component{componentDidCatch(t){e(t)}render(){return"function"==typeof t?(0,s.jsx)(t,{}):r.isValidElement(t)?t:null}},na=(t,e)=>{const n=Object.keys(e),i=n.map((t=>e[t]));return new Function(...n,t)(...i)};var ia='const _jsxFileName = "";',ra=t=>t.trim().replace(/;$/,""),oa=t=>t.replace(ia,"").trim(),aa=t=>ia+t,sa=t=>`return (${t})`;var la=function({children:t,code:e="",language:n="tsx",theme:i,enableTypeScript:o=!0,disabled:a=!1,scope:l,transformCode:h,noInline:c=!1}){const[u,d]=(0,r.useState)({error:void 0,element:void 0});function p(t){return e=this,n=null,i=function*(){const e=t=>{d({error:t.toString(),element:void 0})};try{const i=h?h(t):t;try{const t=yield Promise.resolve(i),n=t=>d({error:void 0,element:t});if("string"!=typeof t)throw new Error("Code failed to transform");const a={code:t,scope:l,enableTypeScript:o};c?(d({error:void 0,element:null}),(({code:t="",scope:e={},enableTypeScript:n=!0},i,o)=>{if(!/render\s*\(/.test(t))return o(new SyntaxError("No-Inline evaluations must call `render`."));const a=["jsx","imports"];n&&a.splice(1,0,"typescript"),na(ta({transforms:a})(t),$o(Zo({React:r},e),{render:t=>{void 0===t?o(new SyntaxError("`render` must be called with valid JSX.")):i(ea(t,o))}}))})(a,n,e)):n((({code:t="",scope:e={},enableTypeScript:n=!0},i)=>{const o=["jsx"];n&&o.push("typescript");const a=function(...t){return t.reduce(((t,e)=>(...n)=>t(e(...n))))}(aa,ta({transforms:["imports"]}),oa,ra,ta({transforms:o}),sa,ra)(t);return ea(na(a,Zo({React:r},e)),i)})(a,e))}catch(n){return e(n)}}catch(i){return e(i),Promise.resolve()}},new Promise(((t,r)=>{var o=t=>{try{s(i.next(t))}catch(e){r(e)}},a=t=>{try{s(i.throw(t))}catch(e){r(e)}},s=e=>e.done?t(e.value):Promise.resolve(e.value).then(o,a);s((i=i.apply(e,n)).next())}));var e,n,i}const f=t=>d({error:t.toString()});return(0,r.useEffect)((()=>{p(e).catch(f)}),[e,l,c,h]),(0,s.jsx)(Jo.Provider,{value:$o(Zo({},u),{code:e,language:n,theme:i,disabled:a,onError:f,onChange:t=>{p(t).catch(f)}}),children:t})};function ha(t){const{code:e,language:n,theme:i,disabled:o,onChange:a}=(0,r.useContext)(Jo);return(0,s.jsx)(Ko,Zo({theme:i,code:e,language:n,disabled:o,onChange:a},t))}function ca(t){const{error:e}=(0,r.useContext)(Jo);return e?(0,s.jsx)("pre",$o(Zo({},t),{children:e})):null}var ua=function(t){var e=t,{Component:n="div"}=e,i=((t,e)=>{var n={};for(var i in t)qo.call(t,i)&&e.indexOf(i)<0&&(n[i]=t[i]);if(null!=t&&Uo)for(var i of Uo(t))e.indexOf(i)<0&&Xo.call(t,i)&&(n[i]=t[i]);return n})(e,["Component"]);const{element:o}=(0,r.useContext)(Jo);return(0,s.jsx)(n,$o(Zo({},i),{children:o?(0,s.jsx)(o,{}):null}))};function da(t){let{children:e,fallback:n}=t;return(0,yt.A)()?(0,s.jsx)(s.Fragment,{children:e?.()}):n??null}var pa=n(4736),fa=n(5523);function ga(){const{prism:t}=(0,U.p)(),{colorMode:e}=(0,fa.G)(),n=t.theme,i=t.darkTheme||n;return"dark"===e?i:n}var ma=n(5796);const va="playgroundContainer_ovbv",ya="playgroundHeader_NXZH",_a="playgroundEditor_GESO",xa="playgroundPreview_Di3k";function ba(t){let{children:e}=t;return(0,s.jsx)("div",{className:(0,d.A)(ya),children:e})}function wa(){return(0,s.jsx)("div",{children:"Loading..."})}function Sa(){return(0,s.jsx)(da,{fallback:(0,s.jsx)(wa,{}),children:()=>(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(ma.A,{fallback:t=>(0,s.jsx)(pa.MN,{...t}),children:(0,s.jsx)(ua,{})}),(0,s.jsx)(ca,{})]})})}function Ta(){return(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(ba,{children:(0,s.jsx)(f.A,{id:"theme.Playground.result",description:"The result label of the live codeblocks",children:"Result"})}),(0,s.jsx)("div",{className:xa,children:(0,s.jsx)(Sa,{})})]})}function Ma(){const t=(0,yt.A)();return(0,s.jsx)(ha,{className:_a},String(t))}function Aa(){return(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(ba,{children:(0,s.jsx)(f.A,{id:"theme.Playground.liveEditor",description:"The live editor label of the live codeblocks",children:"Live Editor"})}),(0,s.jsx)(Ma,{})]})}const Ca=t=>`${t};`;function Ia(t){let{children:e,transformCode:n,...i}=t;const{siteConfig:{themeConfig:r}}=(0,_.A)(),{liveCodeBlock:{playgroundPosition:o}}=r,a=ga(),l=i.metastring?.includes("noInline")??!1;return(0,s.jsx)("div",{className:va,children:(0,s.jsx)(la,{code:e?.replace(/\n$/,""),noInline:l,transformCode:n??Ca,theme:a,...i,children:"top"===o?(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(Ta,{}),(0,s.jsx)(Aa,{})]}):(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(Aa,{}),(0,s.jsx)(Ta,{})]})})})}var Ea=n(8002),ka=n(1357),La=n.n(ka);const Da=/title=(?<quote>["'])(?<title>.*?)\1/,Pa=/\{(?<range>[\d,-]+)\}/,Ra={js:{start:"\\/\\/",end:""},jsBlock:{start:"\\/\\*",end:"\\*\\/"},jsx:{start:"\\{\\s*\\/\\*",end:"\\*\\/\\s*\\}"},bash:{start:"#",end:""},html:{start:"\x3c!--",end:"--\x3e"}},Oa={...Ra,lua:{start:"--",end:""},wasm:{start:"\\;\\;",end:""},tex:{start:"%",end:""},vb:{start:"['\u2018\u2019]",end:""},vbnet:{start:"(?:_\\s*)?['\u2018\u2019]",end:""},rem:{start:"[Rr][Ee][Mm]\\b",end:""},f90:{start:"!",end:""},ml:{start:"\\(\\*",end:"\\*\\)"},cobol:{start:"\\*>",end:""}},Na=Object.keys(Ra);function Fa(t,e){const n=t.map((t=>{const{start:n,end:i}=Oa[t];return`(?:${n}\\s*(${e.flatMap((t=>[t.line,t.block?.start,t.block?.end].filter(Boolean))).join("|")})\\s*${i})`})).join("|");return new RegExp(`^\\s*(?:${n})\\s*$`)}function Ba(t,e){let n=t.replace(/\n$/,"");const{language:i,magicComments:r,metastring:o}=e;if(o&&Pa.test(o)){const t=o.match(Pa).groups.range;if(0===r.length)throw new Error(`A highlight range has been given in code block's metastring (\`\`\` ${o}), but no magic comment config is available. Docusaurus applies the first magic comment entry's className for metastring ranges.`);const e=r[0].className,i=La()(t).filter((t=>t>0)).map((t=>[t-1,[e]]));return{lineClassNames:Object.fromEntries(i),code:n}}if(void 0===i)return{lineClassNames:{},code:n};const a=function(t,e){switch(t){case"js":case"javascript":case"ts":case"typescript":return Fa(["js","jsBlock"],e);case"jsx":case"tsx":return Fa(["js","jsBlock","jsx"],e);case"html":return Fa(["js","jsBlock","html"],e);case"python":case"py":case"bash":return Fa(["bash"],e);case"markdown":case"md":return Fa(["html","jsx","bash"],e);case"tex":case"latex":case"matlab":return Fa(["tex"],e);case"lua":case"haskell":case"sql":return Fa(["lua"],e);case"wasm":return Fa(["wasm"],e);case"vb":case"vba":case"visual-basic":return Fa(["vb","rem"],e);case"vbnet":return Fa(["vbnet","rem"],e);case"batch":return Fa(["rem"],e);case"basic":return Fa(["rem","f90"],e);case"fsharp":return Fa(["js","ml"],e);case"ocaml":case"sml":return Fa(["ml"],e);case"fortran":return Fa(["f90"],e);case"cobol":return Fa(["cobol"],e);default:return Fa(Na,e)}}(i,r),s=n.split("\n"),l=Object.fromEntries(r.map((t=>[t.className,{start:0,range:""}]))),h=Object.fromEntries(r.filter((t=>t.line)).map((t=>{let{className:e,line:n}=t;return[n,e]}))),c=Object.fromEntries(r.filter((t=>t.block)).map((t=>{let{className:e,block:n}=t;return[n.start,e]}))),u=Object.fromEntries(r.filter((t=>t.block)).map((t=>{let{className:e,block:n}=t;return[n.end,e]})));for(let p=0;p<s.length;){const t=s[p].match(a);if(!t){p+=1;continue}const e=t.slice(1).find((t=>void 0!==t));h[e]?l[h[e]].range+=`${p},`:c[e]?l[c[e]].start=p:u[e]&&(l[u[e]].range+=`${l[u[e]].start}-${p-1},`),s.splice(p,1)}n=s.join("\n");const d={};return Object.entries(l).forEach((t=>{let[e,{range:n}]=t;La()(n).forEach((t=>{d[t]??=[],d[t].push(e)}))})),{lineClassNames:d,code:n}}const za="codeBlockContainer_GRsX";function Ga(t){let{as:e,...n}=t;const i=function(t){const e={color:"--prism-color",backgroundColor:"--prism-background-color"},n={};return Object.entries(t.plain).forEach((t=>{let[i,r]=t;const o=e[i];o&&"string"==typeof r&&(n[o]=r)})),n}(ga());return(0,s.jsx)(e,{...n,style:i,className:(0,d.A)(n.className,za,b.G.common.codeBlock)})}const Va={codeBlockContent:"codeBlockContent_cB0A",codeBlockTitle:"codeBlockTitle_LC3P",codeBlock:"codeBlock_PmWK",codeBlockStandalone:"codeBlockStandalone_XmbL",codeBlockLines:"codeBlockLines_QIPa",codeBlockLinesWithNumbering:"codeBlockLinesWithNumbering_Yh6m",buttonGroup:"buttonGroup_pzim"};function ja(t){let{children:e,className:n}=t;return(0,s.jsx)(Ga,{as:"pre",tabIndex:0,className:(0,d.A)(Va.codeBlockStandalone,"thin-scrollbar",n),children:(0,s.jsx)("code",{className:Va.codeBlockLines,children:e})})}const Ha={attributes:!0,characterData:!0,childList:!0,subtree:!0};function Wa(t,e){const[n,i]=(0,r.useState)(),o=(0,r.useCallback)((()=>{i(t.current?.closest("[role=tabpanel][hidden]"))}),[t,i]);(0,r.useEffect)((()=>{o()}),[o]),function(t,e,n){void 0===n&&(n=Ha);const i=(0,a._q)(e),o=(0,a.Be)(n);(0,r.useEffect)((()=>{const e=new MutationObserver(i);return t&&e.observe(t,o),()=>e.disconnect()}),[t,i,o])}(n,(t=>{t.forEach((t=>{"attributes"===t.type&&"hidden"===t.attributeName&&(e(),o())}))}),{attributes:!0,characterData:!1,childList:!1,subtree:!1})}const Ua="codeLine__sKW",qa="codeLineNumber_sl1z",Xa="codeLineContent_xrHk";function Ya(t){let{line:e,classNames:n,showLineNumbers:i,getLineProps:r,getTokenProps:o}=t;1===e.length&&"\n"===e[0].content&&(e[0].content="");const a=r({line:e,className:(0,d.A)(n,i&&Ua)}),l=e.map(((t,e)=>(0,s.jsx)("span",{...o({token:t})},e)));return(0,s.jsxs)("span",{...a,children:[i?(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)("span",{className:qa}),(0,s.jsx)("span",{className:Xa,children:l})]}):l,(0,s.jsx)("br",{})]})}function Za(t){return(0,s.jsx)("svg",{viewBox:"0 0 24 24",...t,children:(0,s.jsx)("path",{fill:"currentColor",d:"M19,21H8V7H19M19,5H8A2,2 0 0,0 6,7V21A2,2 0 0,0 8,23H19A2,2 0 0,0 21,21V7A2,2 0 0,0 19,5M16,1H4A2,2 0 0,0 2,3V17H4V3H16V1Z"})})}function $a(t){return(0,s.jsx)("svg",{viewBox:"0 0 24 24",...t,children:(0,s.jsx)("path",{fill:"currentColor",d:"M21,7L9,19L3.5,13.5L4.91,12.09L9,16.17L19.59,5.59L21,7Z"})})}const Ka={copyButtonCopied:"copyButtonCopied_vnqC",copyButtonIcons:"copyButtonIcons_hpTp",copyButtonIcon:"copyButtonIcon_y7Ui",copyButtonSuccessIcon:"copyButtonSuccessIcon_zEDM"};function Ja(t){let{code:e,className:n}=t;const[i,o]=(0,r.useState)(!1),a=(0,r.useRef)(void 0),l=(0,r.useCallback)((()=>{!function(t,e){let{target:n=document.body}=void 0===e?{}:e;if("string"!=typeof t)throw new TypeError(`Expected parameter \`text\` to be a \`string\`, got \`${typeof t}\`.`);const i=document.createElement("textarea"),r=document.activeElement;i.value=t,i.setAttribute("readonly",""),i.style.contain="strict",i.style.position="absolute",i.style.left="-9999px",i.style.fontSize="12pt";const o=document.getSelection(),a=o.rangeCount>0&&o.getRangeAt(0);n.append(i),i.select(),i.selectionStart=0,i.selectionEnd=t.length;let s=!1;try{s=document.execCommand("copy")}catch{}i.remove(),a&&(o.removeAllRanges(),o.addRange(a)),r&&r.focus()}(e),o(!0),a.current=window.setTimeout((()=>{o(!1)}),1e3)}),[e]);return(0,r.useEffect)((()=>()=>window.clearTimeout(a.current)),[]),(0,s.jsx)("button",{type:"button","aria-label":i?(0,f.T)({id:"theme.CodeBlock.copied",message:"Copied",description:"The copied button label on code blocks"}):(0,f.T)({id:"theme.CodeBlock.copyButtonAriaLabel",message:"Copy code to clipboard",description:"The ARIA label for copy code blocks button"}),title:(0,f.T)({id:"theme.CodeBlock.copy",message:"Copy",description:"The copy button label on code blocks"}),className:(0,d.A)("clean-btn",n,Ka.copyButton,i&&Ka.copyButtonCopied),onClick:l,children:(0,s.jsxs)("span",{className:Ka.copyButtonIcons,"aria-hidden":"true",children:[(0,s.jsx)(Za,{className:Ka.copyButtonIcon}),(0,s.jsx)($a,{className:Ka.copyButtonSuccessIcon})]})})}function Qa(t){return(0,s.jsx)("svg",{viewBox:"0 0 24 24",...t,children:(0,s.jsx)("path",{fill:"currentColor",d:"M4 19h6v-2H4v2zM20 5H4v2h16V5zm-3 6H4v2h13.25c1.1 0 2 .9 2 2s-.9 2-2 2H15v-2l-3 3l3 3v-2h2c2.21 0 4-1.79 4-4s-1.79-4-4-4z"})})}const ts="wordWrapButtonIcon_mXWl",es="wordWrapButtonEnabled_CSzN";function ns(t){let{className:e,onClick:n,isEnabled:i}=t;const r=(0,f.T)({id:"theme.CodeBlock.wordWrapToggle",message:"Toggle word wrap",description:"The title attribute for toggle word wrapping button of code block lines"});return(0,s.jsx)("button",{type:"button",onClick:n,className:(0,d.A)("clean-btn",e,i&&es),"aria-label":r,title:r,children:(0,s.jsx)(Qa,{className:ts,"aria-hidden":"true"})})}function is(t){let{children:e,className:n="",metastring:i,title:o,showLineNumbers:a,language:l}=t;const{prism:{defaultLanguage:h,magicComments:c}}=(0,U.p)(),u=function(t){return t?.toLowerCase()}(l??function(t){const e=t.split(" ").find((t=>t.startsWith("language-")));return e?.replace(/language-/,"")}(n)??h),p=ga(),f=function(){const[t,e]=(0,r.useState)(!1),[n,i]=(0,r.useState)(!1),o=(0,r.useRef)(null),a=(0,r.useCallback)((()=>{const n=o.current.querySelector("code");t?n.removeAttribute("style"):(n.style.whiteSpace="pre-wrap",n.style.overflowWrap="anywhere"),e((t=>!t))}),[o,t]),s=(0,r.useCallback)((()=>{const{scrollWidth:t,clientWidth:e}=o.current,n=t>e||o.current.querySelector("code").hasAttribute("style");i(n)}),[o]);return Wa(o,s),(0,r.useEffect)((()=>{s()}),[t,s]),(0,r.useEffect)((()=>(window.addEventListener("resize",s,{passive:!0}),()=>{window.removeEventListener("resize",s)})),[s]),{codeBlockRef:o,isEnabled:t,isCodeScrollable:n,toggle:a}}(),g=function(t){return t?.match(Da)?.groups.title??""}(i)||o,{lineClassNames:m,code:v}=Ba(e,{metastring:i,language:u,magicComments:c}),y=a??function(t){return Boolean(t?.includes("showLineNumbers"))}(i);return(0,s.jsxs)(Ga,{as:"div",className:(0,d.A)(n,u&&!n.includes(`language-${u}`)&&`language-${u}`),children:[g&&(0,s.jsx)("div",{className:Va.codeBlockTitle,children:g}),(0,s.jsxs)("div",{className:Va.codeBlockContent,children:[(0,s.jsx)(_t.f4,{theme:p,code:v,language:u??"text",children:t=>{let{className:e,style:n,tokens:i,getLineProps:r,getTokenProps:o}=t;return(0,s.jsx)("pre",{tabIndex:0,ref:f.codeBlockRef,className:(0,d.A)(e,Va.codeBlock,"thin-scrollbar"),style:n,children:(0,s.jsx)("code",{className:(0,d.A)(Va.codeBlockLines,y&&Va.codeBlockLinesWithNumbering),children:i.map(((t,e)=>(0,s.jsx)(Ya,{line:t,getLineProps:r,getTokenProps:o,classNames:m[e],showLineNumbers:y},e)))})})}}),(0,s.jsxs)("div",{className:Va.buttonGroup,children:[(f.isEnabled||f.isCodeScrollable)&&(0,s.jsx)(ns,{className:Va.codeButton,onClick:()=>f.toggle(),isEnabled:f.isEnabled}),(0,s.jsx)(Ja,{className:Va.codeButton,code:v})]})]})]})}const rs=(os=function(t){let{children:e,...n}=t;const i=(0,yt.A)(),o=function(t){return r.Children.toArray(t).some((t=>(0,r.isValidElement)(t)))?t:Array.isArray(t)?t.join(""):t}(e),a="string"==typeof o?is:ja;return(0,s.jsx)(a,{...n,children:o},String(i))},function(t){return t.live?(0,s.jsx)(Ia,{scope:Ea.A,...t}):(0,s.jsx)(os,{...t})});var os;function as(t){return(0,s.jsx)("code",{...t})}var ss=n(8301);const ls="details_s9GI",hs="isBrowser_Qo8t",cs="collapsibleContent_FqHA";function us(t){return!!t&&("SUMMARY"===t.tagName||us(t.parentElement))}function ds(t,e){return!!t&&(t===e||ds(t.parentElement,e))}function ps(t){let{summary:e,children:n,...i}=t;(0,ss.A)().collectAnchor(i.id);const o=(0,yt.A)(),a=(0,r.useRef)(null),{collapsed:l,setCollapsed:h}=(0,W.u)({initialState:!i.open}),[c,u]=(0,r.useState)(i.open),p=r.isValidElement(e)?e:(0,s.jsx)("summary",{children:e??"Details"});return(0,s.jsxs)("details",{...i,ref:a,open:c,"data-collapsed":l,className:(0,d.A)(ls,o&&hs,i.className),onMouseDown:t=>{us(t.target)&&t.detail>1&&t.preventDefault()},onClick:t=>{t.stopPropagation();const e=t.target;us(e)&&ds(e,a.current)&&(t.preventDefault(),l?(h(!1),u(!0)):h(!0))},children:[p,(0,s.jsx)(W.N,{lazy:!1,collapsed:l,disableSSRStyle:!0,onCollapseTransitionEnd:t=>{h(t),u(!t)},children:(0,s.jsx)("div",{className:cs,children:n})})]})}const fs="details_opvo";function gs(t){let{...e}=t;return(0,s.jsx)(ps,{...e,className:(0,d.A)("alert alert--info",fs,e.className)})}function ms(t){const e=r.Children.toArray(t.children),n=e.find((t=>r.isValidElement(t)&&"summary"===t.type)),i=(0,s.jsx)(s.Fragment,{children:e.filter((t=>t!==n))});return(0,s.jsx)(gs,{...t,summary:n,children:i})}function vs(t){return(0,s.jsx)(gt.A,{...t})}const ys="containsTaskList_U4D4";function _s(t){if(void 0!==t)return(0,d.A)(t,t?.includes("contains-task-list")&&ys)}const xs="img_MP5o";function bs(t){const{mdxAdmonitionTitle:e,rest:n}=function(t){const e=r.Children.toArray(t),n=e.find((t=>r.isValidElement(t)&&"mdxAdmonitionTitle"===t.type)),i=e.filter((t=>t!==n)),o=n?.props.children;return{mdxAdmonitionTitle:o,rest:i.length>0?(0,s.jsx)(s.Fragment,{children:i}):null}}(t.children),i=t.title??e;return{...t,...i&&{title:i},children:n}}const ws="admonition_nvq2",Ss="admonitionHeading_p0PH",Ts="admonitionIcon_rB9Z",Ms="admonitionContent_SALh";function As(t){let{type:e,className:n,children:i}=t;return(0,s.jsx)("div",{className:(0,d.A)(b.G.common.admonition,b.G.common.admonitionType(e),ws,n),children:i})}function Cs(t){let{icon:e,title:n}=t;return(0,s.jsxs)("div",{className:Ss,children:[(0,s.jsx)("span",{className:Ts,children:e}),n]})}function Is(t){let{children:e}=t;return e?(0,s.jsx)("div",{className:Ms,children:e}):null}function Es(t){const{type:e,icon:n,title:i,children:r,className:o}=t;return(0,s.jsxs)(As,{type:e,className:o,children:[i||n?(0,s.jsx)(Cs,{title:i,icon:n}):null,(0,s.jsx)(Is,{children:r})]})}function ks(t){return(0,s.jsx)("svg",{viewBox:"0 0 14 16",...t,children:(0,s.jsx)("path",{fillRule:"evenodd",d:"M6.3 5.69a.942.942 0 0 1-.28-.7c0-.28.09-.52.28-.7.19-.18.42-.28.7-.28.28 0 .52.09.7.28.18.19.28.42.28.7 0 .28-.09.52-.28.7a1 1 0 0 1-.7.3c-.28 0-.52-.11-.7-.3zM8 7.99c-.02-.25-.11-.48-.31-.69-.2-.19-.42-.3-.69-.31H6c-.27.02-.48.13-.69.31-.2.2-.3.44-.31.69h1v3c.02.27.11.5.31.69.2.2.42.31.69.31h1c.27 0 .48-.11.69-.31.2-.19.3-.42.31-.69H8V7.98v.01zM7 2.3c-3.14 0-5.7 2.54-5.7 5.68 0 3.14 2.56 5.7 5.7 5.7s5.7-2.55 5.7-5.7c0-3.15-2.56-5.69-5.7-5.69v.01zM7 .98c3.86 0 7 3.14 7 7s-3.14 7-7 7-7-3.12-7-7 3.14-7 7-7z"})})}const Ls={icon:(0,s.jsx)(ks,{}),title:(0,s.jsx)(f.A,{id:"theme.admonition.note",description:"The default label used for the Note admonition (:::note)",children:"note"})};function Ds(t){return(0,s.jsx)(Es,{...Ls,...t,className:(0,d.A)("alert alert--secondary",t.className),children:t.children})}function Ps(t){return(0,s.jsx)("svg",{viewBox:"0 0 12 16",...t,children:(0,s.jsx)("path",{fillRule:"evenodd",d:"M6.5 0C3.48 0 1 2.19 1 5c0 .92.55 2.25 1 3 1.34 2.25 1.78 2.78 2 4v1h5v-1c.22-1.22.66-1.75 2-4 .45-.75 1-2.08 1-3 0-2.81-2.48-5-5.5-5zm3.64 7.48c-.25.44-.47.8-.67 1.11-.86 1.41-1.25 2.06-1.45 3.23-.02.05-.02.11-.02.17H5c0-.06 0-.13-.02-.17-.2-1.17-.59-1.83-1.45-3.23-.2-.31-.42-.67-.67-1.11C2.44 6.78 2 5.65 2 5c0-2.2 2.02-4 4.5-4 1.22 0 2.36.42 3.22 1.19C10.55 2.94 11 3.94 11 5c0 .66-.44 1.78-.86 2.48zM4 14h5c-.23 1.14-1.3 2-2.5 2s-2.27-.86-2.5-2z"})})}const Rs={icon:(0,s.jsx)(Ps,{}),title:(0,s.jsx)(f.A,{id:"theme.admonition.tip",description:"The default label used for the Tip admonition (:::tip)",children:"tip"})};function Os(t){return(0,s.jsx)(Es,{...Rs,...t,className:(0,d.A)("alert alert--success",t.className),children:t.children})}function Ns(t){return(0,s.jsx)("svg",{viewBox:"0 0 14 16",...t,children:(0,s.jsx)("path",{fillRule:"evenodd",d:"M7 2.3c3.14 0 5.7 2.56 5.7 5.7s-2.56 5.7-5.7 5.7A5.71 5.71 0 0 1 1.3 8c0-3.14 2.56-5.7 5.7-5.7zM7 1C3.14 1 0 4.14 0 8s3.14 7 7 7 7-3.14 7-7-3.14-7-7-7zm1 3H6v5h2V4zm0 6H6v2h2v-2z"})})}const Fs={icon:(0,s.jsx)(Ns,{}),title:(0,s.jsx)(f.A,{id:"theme.admonition.info",description:"The default label used for the Info admonition (:::info)",children:"info"})};function Bs(t){return(0,s.jsx)(Es,{...Fs,...t,className:(0,d.A)("alert alert--info",t.className),children:t.children})}function zs(t){return(0,s.jsx)("svg",{viewBox:"0 0 16 16",...t,children:(0,s.jsx)("path",{fillRule:"evenodd",d:"M8.893 1.5c-.183-.31-.52-.5-.887-.5s-.703.19-.886.5L.138 13.499a.98.98 0 0 0 0 1.001c.193.31.53.501.886.501h13.964c.367 0 .704-.19.877-.5a1.03 1.03 0 0 0 .01-1.002L8.893 1.5zm.133 11.497H6.987v-2.003h2.039v2.003zm0-3.004H6.987V5.987h2.039v4.006z"})})}const Gs={icon:(0,s.jsx)(zs,{}),title:(0,s.jsx)(f.A,{id:"theme.admonition.warning",description:"The default label used for the Warning admonition (:::warning)",children:"warning"})};function Vs(t){return(0,s.jsx)("svg",{viewBox:"0 0 12 16",...t,children:(0,s.jsx)("path",{fillRule:"evenodd",d:"M5.05.31c.81 2.17.41 3.38-.52 4.31C3.55 5.67 1.98 6.45.9 7.98c-1.45 2.05-1.7 6.53 3.53 7.7-2.2-1.16-2.67-4.52-.3-6.61-.61 2.03.53 3.33 1.94 2.86 1.39-.47 2.3.53 2.27 1.67-.02.78-.31 1.44-1.13 1.81 3.42-.59 4.78-3.42 4.78-5.56 0-2.84-2.53-3.22-1.25-5.61-1.52.13-2.03 1.13-1.89 2.75.09 1.08-1.02 1.8-1.86 1.33-.67-.41-.66-1.19-.06-1.78C8.18 5.31 8.68 2.45 5.05.32L5.03.3l.02.01z"})})}const js={icon:(0,s.jsx)(Vs,{}),title:(0,s.jsx)(f.A,{id:"theme.admonition.danger",description:"The default label used for the Danger admonition (:::danger)",children:"danger"})};const Hs={icon:(0,s.jsx)(zs,{}),title:(0,s.jsx)(f.A,{id:"theme.admonition.caution",description:"The default label used for the Caution admonition (:::caution)",children:"caution"})};const Ws={...{note:Ds,tip:Os,info:Bs,warning:function(t){return(0,s.jsx)(Es,{...Gs,...t,className:(0,d.A)("alert alert--warning",t.className),children:t.children})},danger:function(t){return(0,s.jsx)(Es,{...js,...t,className:(0,d.A)("alert alert--danger",t.className),children:t.children})}},...{secondary:t=>(0,s.jsx)(Ds,{title:"secondary",...t}),important:t=>(0,s.jsx)(Bs,{title:"important",...t}),success:t=>(0,s.jsx)(Os,{title:"success",...t}),caution:function(t){return(0,s.jsx)(Es,{...Hs,...t,className:(0,d.A)("alert alert--warning",t.className),children:t.children})}}};function Us(t){const e=bs(t),n=(i=e.type,Ws[i]||(console.warn(`No admonition component found for admonition type "${i}". Using Info as fallback.`),Ws.info));var i;return(0,s.jsx)(n,{...e})}const qs={Head:vt.A,details:ms,Details:ms,code:function(t){return function(t){return void 0!==t.children&&r.Children.toArray(t.children).every((t=>"string"==typeof t&&!t.includes("\n")))}(t)?(0,s.jsx)(as,{...t}):(0,s.jsx)(rs,{...t})},a:function(t){return(0,s.jsx)(g.A,{...t})},pre:function(t){return(0,s.jsx)(s.Fragment,{children:t.children})},ul:function(t){return(0,s.jsx)("ul",{...t,className:_s(t.className)})},li:function(t){return(0,ss.A)().collectAnchor(t.id),(0,s.jsx)("li",{...t})},img:function(t){return(0,s.jsx)("img",{decoding:"async",loading:"lazy",...t,className:(e=t.className,(0,d.A)(e,xs))});var e},h1:t=>(0,s.jsx)(vs,{as:"h1",...t}),h2:t=>(0,s.jsx)(vs,{as:"h2",...t}),h3:t=>(0,s.jsx)(vs,{as:"h3",...t}),h4:t=>(0,s.jsx)(vs,{as:"h4",...t}),h5:t=>(0,s.jsx)(vs,{as:"h5",...t}),h6:t=>(0,s.jsx)(vs,{as:"h6",...t}),admonition:Us,mermaid:()=>null};function Xs(t){let{children:e}=t;return(0,s.jsx)(mt.x,{components:qs,children:e})}function Ys(t){let{children:e}=t;const n=function(){const{metadata:t,frontMatter:e,contentTitle:n}=c();return e.hide_title||void 0!==n?null:t.title}();return(0,s.jsxs)("div",{className:(0,d.A)(b.G.docs.docMarkdown,"markdown"),children:[n&&(0,s.jsx)("header",{children:(0,s.jsx)(gt.A,{as:"h1",children:n})}),(0,s.jsx)(Xs,{children:e})]})}var Zs=n(284),$s=n(9283),Ks=n(1975);function Js(t){return(0,s.jsx)("svg",{viewBox:"0 0 24 24",...t,children:(0,s.jsx)("path",{d:"M10 19v-5h4v5c0 .55.45 1 1 1h3c.55 0 1-.45 1-1v-7h1.7c.46 0 .68-.57.33-.87L12.67 3.6c-.38-.34-.96-.34-1.34 0l-8.36 7.53c-.34.3-.13.87.33.87H5v7c0 .55.45 1 1 1h3c.55 0 1-.45 1-1z",fill:"currentColor"})})}const Qs={breadcrumbHomeIcon:"breadcrumbHomeIcon_SGwQ"};function tl(){const t=(0,Ks.Ay)("/");return(0,s.jsx)("li",{className:"breadcrumbs__item",children:(0,s.jsx)(g.A,{"aria-label":(0,f.T)({id:"theme.docs.breadcrumbs.home",message:"Home page",description:"The ARIA label for the home page in the breadcrumbs"}),className:"breadcrumbs__link",href:t,children:(0,s.jsx)(Js,{className:Qs.breadcrumbHomeIcon})})})}const el={breadcrumbsContainer:"breadcrumbsContainer_pff_"};function nl(t){let{children:e,href:n,isLast:i}=t;const r="breadcrumbs__link";return i?(0,s.jsx)("span",{className:r,itemProp:"name",children:e}):n?(0,s.jsx)(g.A,{className:r,href:n,itemProp:"item",children:(0,s.jsx)("span",{itemProp:"name",children:e})}):(0,s.jsx)("span",{className:r,children:e})}function il(t){let{children:e,active:n,index:i,addMicrodata:r}=t;return(0,s.jsxs)("li",{...r&&{itemScope:!0,itemProp:"itemListElement",itemType:"https://schema.org/ListItem"},className:(0,d.A)("breadcrumbs__item",{"breadcrumbs__item--active":n}),children:[e,(0,s.jsx)("meta",{itemProp:"position",content:String(i+1)})]})}function rl(){const t=(0,Zs.OF)(),e=(0,$s.Dt)();return t?(0,s.jsx)("nav",{className:(0,d.A)(b.G.docs.docBreadcrumbs,el.breadcrumbsContainer),"aria-label":(0,f.T)({id:"theme.docs.breadcrumbs.navAriaLabel",message:"Breadcrumbs",description:"The ARIA label for the breadcrumbs"}),children:(0,s.jsxs)("ul",{className:"breadcrumbs",itemScope:!0,itemType:"https://schema.org/BreadcrumbList",children:[e&&(0,s.jsx)(tl,{}),t.map(((e,n)=>{const i=n===t.length-1,r="category"===e.type&&e.linkUnlisted?void 0:e.href;return(0,s.jsx)(il,{active:i,index:n,addMicrodata:!!r,children:(0,s.jsx)(nl,{href:r,isLast:i,children:e.label})},n)}))]})}):null}function ol(t){let{className:e}=t;return(0,s.jsx)(Us,{type:"caution",title:(0,s.jsx)(i.DraftBannerTitle,{}),className:(0,d.A)(e,b.G.common.draftBanner),children:(0,s.jsx)(i.DraftBannerMessage,{})})}function al(){return(0,s.jsx)(f.A,{id:"theme.unlistedContent.title",description:"The unlisted content banner title",children:"Unlisted page"})}function sl(){return(0,s.jsx)(f.A,{id:"theme.unlistedContent.message",description:"The unlisted content banner message",children:"This page is unlisted. Search engines will not index it, and only users having a direct link can access it."})}function ll(){return(0,s.jsx)(vt.A,{children:(0,s.jsx)("meta",{name:"robots",content:"noindex, nofollow"})})}function hl(t){let{className:e}=t;return(0,s.jsx)(Us,{type:"caution",title:(0,s.jsx)(al,{}),className:(0,d.A)(e,b.G.common.unlistedBanner),children:(0,s.jsx)(sl,{})})}function cl(t){return(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(ll,{}),(0,s.jsx)(hl,{...t})]})}function ul(t){let{metadata:e}=t;const{unlisted:n,frontMatter:i}=e;return(0,s.jsxs)(s.Fragment,{children:[(n||i.unlisted)&&(0,s.jsx)(cl,{}),i.draft&&(0,s.jsx)(ol,{})]})}const dl={docItemContainer:"docItemContainer_I_qr",docItemCol:"docItemCol_ZVOF"};function pl(t){let{children:e}=t;const n=function(){const{frontMatter:t,toc:e}=c(),n=(0,p.l)(),i=t.hide_table_of_contents,r=!i&&e.length>0;return{hidden:i,mobile:r?(0,s.jsx)(at,{}):void 0,desktop:!r||"desktop"!==n&&"ssr"!==n?void 0:(0,s.jsx)(ut,{})}}(),{metadata:i}=c();return(0,s.jsxs)("div",{className:"row",children:[(0,s.jsxs)("div",{className:(0,d.A)("col",!n.hidden&&dl.docItemCol),children:[(0,s.jsx)(ul,{metadata:i}),(0,s.jsx)(I,{}),(0,s.jsxs)("div",{className:dl.docItemContainer,children:[(0,s.jsxs)("article",{children:[(0,s.jsx)(rl,{}),(0,s.jsx)(E,{}),n.mobile,(0,s.jsx)(Ys,{children:e}),(0,s.jsx)(H,{})]}),(0,s.jsx)(y,{})]})]}),n.desktop&&(0,s.jsx)("div",{className:"col col--3",children:n.desktop})]})}function fl(t){const e=`docs-doc-id-${t.content.metadata.id}`,n=t.content;return(0,s.jsx)(h,{content:t.content,children:(0,s.jsxs)(o.e3,{className:e,children:[(0,s.jsx)(u,{}),(0,s.jsx)(pl,{children:(0,s.jsx)(n,{})})]})})}},7289:(t,e,n)=>{"use strict";var i=n(889),r=n(585),o=(n(3352),n(1829)),a=n(2287),s=n(4971);(0,r.Y)([o.a,a.a]);function l(t,e,n){"object"==typeof e&&(n=e,e=null);var i,r=this;if(!(t instanceof Function))for(var o in i=[],t)t.hasOwnProperty(o)&&i.push(o);var a=function(e){if(r.apply(this,arguments),t instanceof Function?h(this,t.call(this,e)):function(t,e,n){for(var i=0;i<n.length;i++){var r=n[i];t[r]=e[r]}}(this,t,i),this.constructor===a)for(var n=a.__initializers__,o=0;o<n.length;o++)n[o].apply(this,arguments)};a.__super__=r,r.__initializers__?a.__initializers__=r.__initializers__.slice():a.__initializers__=[],e&&a.__initializers__.push(e);var s=function(){};return s.prototype=r.prototype,a.prototype=new s,a.prototype.constructor=a,h(a.prototype,n),a.extend=r.extend,a.derive=r.extend,a}function h(t,e){if(e)for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])}(0,r.Y)(s._);const c={extend:l,derive:l};function u(t,e){this.action=t,this.context=e}const d={trigger:function(t){if(this.hasOwnProperty("__handlers__")&&this.__handlers__.hasOwnProperty(t)){var e=this.__handlers__[t],n=e.length,i=-1,r=arguments;switch(r.length){case 1:for(;++i<n;)e[i].action.call(e[i].context);return;case 2:for(;++i<n;)e[i].action.call(e[i].context,r[1]);return;case 3:for(;++i<n;)e[i].action.call(e[i].context,r[1],r[2]);return;case 4:for(;++i<n;)e[i].action.call(e[i].context,r[1],r[2],r[3]);return;case 5:for(;++i<n;)e[i].action.call(e[i].context,r[1],r[2],r[3],r[4]);return;default:for(;++i<n;)e[i].action.apply(e[i].context,Array.prototype.slice.call(r,1));return}}},on:function(t,e,n){if(t&&e){var i=this.__handlers__||(this.__handlers__={});if(i[t]){if(this.has(t,e))return}else i[t]=[];var r=new u(e,n||this);return i[t].push(r),this}},once:function(t,e,n){if(t&&e){var i=this;return this.on(t,(function n(){i.off(t,n),e.apply(this,arguments)}),n)}},before:function(t,e,n){if(t&&e)return t="before"+t,this.on(t,e,n)},after:function(t,e,n){if(t&&e)return t="after"+t,this.on(t,e,n)},success:function(t,e){return this.once("success",t,e)},error:function(t,e){return this.once("error",t,e)},off:function(t,e){var n=this.__handlers__||(this.__handlers__={});if(e){if(n[t]){for(var i=n[t],r=[],o=0;o<i.length;o++)e&&i[o].action!==e&&r.push(i[o]);n[t]=r}return this}n[t]=[]},has:function(t,e){var n=this.__handlers__;if(!n||!n[t])return!1;for(var i=n[t],r=0;r<i.length;r++)if(i[r].action===e)return!0}};var p=0,f=Array.prototype.forEach,g={genGUID:function(){return++p},relative2absolute:function(t,e){if(!e||t.match(/^\//))return t;for(var n=t.split("/"),i=e.split("/"),r=n[0];"."===r||".."===r;)".."===r&&i.pop(),n.shift(),r=n[0];return i.join("/")+"/"+n.join("/")},extend:function(t,e){if(e)for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n]);return t},defaults:function(t,e){if(e)for(var n in e)void 0===t[n]&&(t[n]=e[n]);return t},extendWithPropList:function(t,e,n){if(e)for(var i=0;i<n.length;i++){var r=n[i];t[r]=e[r]}return t},defaultsWithPropList:function(t,e,n){if(e)for(var i=0;i<n.length;i++){var r=n[i];null==t[r]&&(t[r]=e[r])}return t},each:function(t,e,n){if(t&&e)if(t.forEach&&t.forEach===f)t.forEach(e,n);else if(t.length===+t.length)for(var i=0,r=t.length;i<r;i++)e.call(n,t[i],i,t);else for(var o in t)t.hasOwnProperty(o)&&e.call(n,t[o],o,t)},isObject:function(t){return t===Object(t)},isArray:function(t){return Array.isArray(t)},isArrayLike:function(t){return!!t&&t.length===+t.length},clone:function(t){if(g.isObject(t)){if(g.isArray(t))return t.slice();if(g.isArrayLike(t)){for(var e=new t.constructor(t.length),n=0;n<t.length;n++)e[n]=t[n];return e}return g.extend({},t)}return t}};const m=g;var v=function(){this.__uid__=m.genGUID()};v.__initializers__=[function(t){m.extend(this,t)}],m.extend(v,c),m.extend(v.prototype,d);const y=v;var _=["OES_texture_float","OES_texture_half_float","OES_texture_float_linear","OES_texture_half_float_linear","OES_standard_derivatives","OES_vertex_array_object","OES_element_index_uint","WEBGL_compressed_texture_s3tc","WEBGL_depth_texture","EXT_texture_filter_anisotropic","EXT_shader_texture_lod","WEBGL_draw_buffers","EXT_frag_depth","EXT_sRGB","ANGLE_instanced_arrays"],x=["MAX_TEXTURE_SIZE","MAX_CUBE_MAP_TEXTURE_SIZE"];const b=function(t){for(var e={},n={},i=0;i<_.length;i++){o(_[i])}for(i=0;i<x.length;i++){var r=x[i];n[r]=t.getParameter(t[r])}function o(n){if(t.getExtension){var i=t.getExtension(n);i||(i=t.getExtension("MOZ_"+n)),i||(i=t.getExtension("WEBKIT_"+n)),e[n]=i}}this.getExtension=function(t){return t in e||o(t),e[t]},this.getParameter=function(t){return n[t]}},w=256,S=1024,T=16384,M=0,A=1,C=2,I=3,E=4,k=5,L=6,D=35040,P=35044,R=35048,O=1028,N=1029,F=1032,B=2304,z=2305,G=5120,V=5121,j=5122,H=5123,W=5124,U=5125,q=5126,X=6402,Y=6406,Z=6407,$=6408,K=6409,J=6410,Q=9728,tt=9729,et=9984,nt=9985,it=9986,rt=9987,ot=3553,at=34067,st=10497,lt=33071,ht=33648,ct=36160,ut=36161,dt=34041,pt=36064,ft=36096,gt=36128,mt=33306;const vt={get:function(t){var e=new XMLHttpRequest;e.open("get",t.url),e.responseType=t.responseType||"text",t.onprogress&&(e.onprogress=function(e){if(e.lengthComputable){var n=e.loaded/e.total;t.onprogress(n,e.loaded,e.total)}else t.onprogress(null)}),e.onload=function(n){e.status>=400?t.onerror&&t.onerror():t.onload&&t.onload(e.response)},t.onerror&&(e.onerror=t.onerror),e.send(null)}};var yt,_t={supportWebGL:function(){if(null==yt)try{var t=document.createElement("canvas");if(!(t.getContext("webgl")||t.getContext("experimental-webgl")))throw new Error}catch(Jh){yt=!1}return yt}};_t.Int8Array="undefined"==typeof Int8Array?Array:Int8Array,_t.Uint8Array="undefined"==typeof Uint8Array?Array:Uint8Array,_t.Uint16Array="undefined"==typeof Uint16Array?Array:Uint16Array,_t.Uint32Array="undefined"==typeof Uint32Array?Array:Uint32Array,_t.Int16Array="undefined"==typeof Int16Array?Array:Int16Array,_t.Float32Array="undefined"==typeof Float32Array?Array:Float32Array,_t.Float64Array="undefined"==typeof Float64Array?Array:Float64Array;var xt={};"undefined"!=typeof window?xt=window:void 0!==n.g&&(xt=n.g),_t.requestAnimationFrame=xt.requestAnimationFrame||xt.msRequestAnimationFrame||xt.mozRequestAnimationFrame||xt.webkitRequestAnimationFrame||function(t){setTimeout(t,16)},_t.createCanvas=function(){return document.createElement("canvas")},_t.createImage=function(){return new xt.Image},_t.request={get:vt.get},_t.addEventListener=function(t,e,n,i){t.addEventListener(e,n,i)},_t.removeEventListener=function(t,e,n){t.removeEventListener(e,n)};const bt=_t;var wt=function(){this.head=null,this.tail=null,this._length=0};wt.prototype.insert=function(t){var e=new wt.Entry(t);return this.insertEntry(e),e},wt.prototype.insertAt=function(t,e){if(!(t<0)){for(var n=this.head,i=0;n&&i!=t;)n=n.next,i++;if(n){var r=new wt.Entry(e),o=n.prev;o?(o.next=r,r.prev=o):this.head=r,r.next=n,n.prev=r}else this.insert(e)}},wt.prototype.insertBeforeEntry=function(t,e){var n=new wt.Entry(t),i=e.prev;i?(i.next=n,n.prev=i):this.head=n,n.next=e,e.prev=n,this._length++},wt.prototype.insertEntry=function(t){this.head?(this.tail.next=t,t.prev=this.tail,this.tail=t):this.head=this.tail=t,this._length++},wt.prototype.remove=function(t){var e=t.prev,n=t.next;e?e.next=n:this.head=n,n?n.prev=e:this.tail=e,t.next=t.prev=null,this._length--},wt.prototype.removeAt=function(t){if(!(t<0)){for(var e=this.head,n=0;e&&n!=t;)e=e.next,n++;return e?(this.remove(e),e.value):void 0}},wt.prototype.getHead=function(){if(this.head)return this.head.value},wt.prototype.getTail=function(){if(this.tail)return this.tail.value},wt.prototype.getAt=function(t){if(!(t<0)){for(var e=this.head,n=0;e&&n!=t;)e=e.next,n++;return e.value}},wt.prototype.indexOf=function(t){for(var e=this.head,n=0;e;){if(e.value===t)return n;e=e.next,n++}},wt.prototype.length=function(){return this._length},wt.prototype.isEmpty=function(){return 0===this._length},wt.prototype.forEach=function(t,e){for(var n=this.head,i=0,r=void 0!==e;n;)r?t.call(e,n.value,i):t(n.value,i),n=n.next,i++},wt.prototype.clear=function(){this.tail=this.head=null,this._length=0},wt.Entry=function(t){this.value=t,this.next=null,this.prev=null};const St=wt;var Tt=function(t){this._list=new St,this._map={},this._maxSize=t||10};Tt.prototype.setMaxSize=function(t){this._maxSize=t},Tt.prototype.put=function(t,e){if(!this._map.hasOwnProperty(t)){var n=this._list.length();if(n>=this._maxSize&&n>0){var i=this._list.head;this._list.remove(i),delete this._map[i.key]}var r=this._list.insert(e);r.key=t,this._map[t]=r}},Tt.prototype.get=function(t){var e=this._map[t];if(this._map.hasOwnProperty(t))return e!==this._list.tail&&(this._list.remove(e),this._list.insertEntry(e)),e.value},Tt.prototype.remove=function(t){var e=this._map[t];void 0!==e&&(delete this._map[t],this._list.remove(e))},Tt.prototype.clear=function(){this._list.clear(),this._map={}};const Mt=Tt;var At={},Ct={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 It(t){return(t=Math.round(t))<0?0:t>255?255:t}function Et(t){return t<0?0:t>1?1:t}function kt(t){return t.length&&"%"===t.charAt(t.length-1)?It(parseFloat(t)/100*255):It(parseInt(t,10))}function Lt(t){return t.length&&"%"===t.charAt(t.length-1)?Et(parseFloat(t)/100):Et(parseFloat(t))}function Dt(t,e,n){return n<0?n+=1:n>1&&(n-=1),6*n<1?t+(e-t)*n*6:2*n<1?e:3*n<2?t+(e-t)*(2/3-n)*6:t}function Pt(t,e,n){return t+(e-t)*n}function Rt(t,e,n,i,r){return t[0]=e,t[1]=n,t[2]=i,t[3]=r,t}function Ot(t,e){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3],t}var Nt=new Mt(20),Ft=null;function Bt(t,e){Ft&&Ot(Ft,e),Ft=Nt.put(t,Ft||e.slice())}function zt(t,e){var n=(parseFloat(t[0])%360+360)%360/360,i=Lt(t[1]),r=Lt(t[2]),o=r<=.5?r*(i+1):r+i-r*i,a=2*r-o;return Rt(e=e||[],It(255*Dt(a,o,n+1/3)),It(255*Dt(a,o,n)),It(255*Dt(a,o,n-1/3)),1),4===t.length&&(e[3]=t[3]),e}At.parse=function(t,e){if(t){e=e||[];var n=Nt.get(t);if(n)return Ot(e,n);var i,r=(t+="").replace(/ /g,"").toLowerCase();if(r in Ct)return Ot(e,Ct[r]),Bt(t,e),e;if("#"===r.charAt(0))return 4===r.length?(i=parseInt(r.substr(1),16))>=0&&i<=4095?(Rt(e,(3840&i)>>4|(3840&i)>>8,240&i|(240&i)>>4,15&i|(15&i)<<4,1),Bt(t,e),e):void Rt(e,0,0,0,1):7===r.length?(i=parseInt(r.substr(1),16))>=0&&i<=16777215?(Rt(e,(16711680&i)>>16,(65280&i)>>8,255&i,1),Bt(t,e),e):void Rt(e,0,0,0,1):void 0;var o=r.indexOf("("),a=r.indexOf(")");if(-1!==o&&a+1===r.length){var s=r.substr(0,o),l=r.substr(o+1,a-(o+1)).split(","),h=1;switch(s){case"rgba":if(4!==l.length)return void Rt(e,0,0,0,1);h=Lt(l.pop());case"rgb":return 3!==l.length?void Rt(e,0,0,0,1):(Rt(e,kt(l[0]),kt(l[1]),kt(l[2]),h),Bt(t,e),e);case"hsla":return 4!==l.length?void Rt(e,0,0,0,1):(l[3]=Lt(l[3]),zt(l,e),Bt(t,e),e);case"hsl":return 3!==l.length?void Rt(e,0,0,0,1):(zt(l,e),Bt(t,e),e);default:return}}Rt(e,0,0,0,1)}},At.parseToFloat=function(t,e){if(e=At.parse(t,e))return e[0]/=255,e[1]/=255,e[2]/=255,e},At.lift=function(t,e){var n=At.parse(t);if(n){for(var i=0;i<3;i++)n[i]=e<0?n[i]*(1-e)|0:(255-n[i])*e+n[i]|0;return At.stringify(n,4===n.length?"rgba":"rgb")}},At.toHex=function(t){var e=At.parse(t);if(e)return((1<<24)+(e[0]<<16)+(e[1]<<8)+ +e[2]).toString(16).slice(1)},At.fastLerp=function(t,e,n){if(e&&e.length&&t>=0&&t<=1){n=n||[];var i=t*(e.length-1),r=Math.floor(i),o=Math.ceil(i),a=e[r],s=e[o],l=i-r;return n[0]=It(Pt(a[0],s[0],l)),n[1]=It(Pt(a[1],s[1],l)),n[2]=It(Pt(a[2],s[2],l)),n[3]=Et(Pt(a[3],s[3],l)),n}},At.fastMapToColor=At.fastLerp,At.lerp=function(t,e,n){if(e&&e.length&&t>=0&&t<=1){var i=t*(e.length-1),r=Math.floor(i),o=Math.ceil(i),a=At.parse(e[r]),s=At.parse(e[o]),l=i-r,h=At.stringify([It(Pt(a[0],s[0],l)),It(Pt(a[1],s[1],l)),It(Pt(a[2],s[2],l)),Et(Pt(a[3],s[3],l))],"rgba");return n?{color:h,leftIndex:r,rightIndex:o,value:i}:h}},At.mapToColor=At.lerp,At.modifyHSL=function(t,e,n,i){if(t=At.parse(t))return t=function(t){if(t){var e,n,i=t[0]/255,r=t[1]/255,o=t[2]/255,a=Math.min(i,r,o),s=Math.max(i,r,o),l=s-a,h=(s+a)/2;if(0===l)e=0,n=0;else{n=h<.5?l/(s+a):l/(2-s-a);var c=((s-i)/6+l/2)/l,u=((s-r)/6+l/2)/l,d=((s-o)/6+l/2)/l;i===s?e=d-u:r===s?e=1/3+c-d:o===s&&(e=2/3+u-c),e<0&&(e+=1),e>1&&(e-=1)}var p=[360*e,n,h];return null!=t[3]&&p.push(t[3]),p}}(t),null!=e&&(t[0]=(r=e,(r=Math.round(r))<0?0:r>360?360:r)),null!=n&&(t[1]=Lt(n)),null!=i&&(t[2]=Lt(i)),At.stringify(zt(t),"rgba");var r},At.modifyAlpha=function(t,e){if((t=At.parse(t))&&null!=e)return t[3]=Et(e),At.stringify(t,"rgba")},At.stringify=function(t,e){if(t&&t.length){var n=t[0]+","+t[1]+","+t[2];return"rgba"!==e&&"hsva"!==e&&"hsla"!==e||(n+=","+t[3]),e+"("+n+")"}};var Gt=At.parseToFloat,Vt={};function jt(t){var e=Object.keys(t);e.sort();for(var n=[],i=0;i<e.length;i++){var r=e[i],o=t[r];null===o?n.push(r):n.push(r+" "+o.toString())}return n.join("\n")}const Ht=y.extend((function(){return{name:"",depthTest:!0,depthMask:!0,transparent:!1,blend:null,autoUpdateTextureStatus:!0,uniforms:{},vertexDefines:{},fragmentDefines:{},_textureStatus:{},_enabledUniforms:null}}),(function(){this.name||(this.name="MATERIAL_"+this.__uid__),this.shader&&this.attachShader(this.shader,!0)}),{precision:"highp",setUniform:function(t,e){void 0===e&&console.warn('Uniform value "'+t+'" is undefined');var n=this.uniforms[t];n&&("string"==typeof e&&(e=Gt(e)||e),n.value=e,this.autoUpdateTextureStatus&&"t"===n.type&&(e?this.enableTexture(t):this.disableTexture(t)))},setUniforms:function(t){for(var e in t){var n=t[e];this.setUniform(e,n)}},isUniformEnabled:function(t){return this._enabledUniforms.indexOf(t)>=0},getEnabledUniforms:function(){return this._enabledUniforms},getTextureUniforms:function(){return this._textureUniforms},set:function(t,e){if("object"==typeof t)for(var n in t){var i=t[n];this.setUniform(n,i)}else this.setUniform(t,e)},get:function(t){var e=this.uniforms[t];if(e)return e.value},attachShader:function(t,e){var n=this.uniforms;this.uniforms=t.createUniforms(),this.shader=t;var i=this.uniforms;this._enabledUniforms=Object.keys(i),this._enabledUniforms.sort(),this._textureUniforms=this._enabledUniforms.filter((function(t){var e=this.uniforms[t].type;return"t"===e||"tv"===e}),this);var r=this.vertexDefines,o=this.fragmentDefines;if(this.vertexDefines=m.clone(t.vertexDefines),this.fragmentDefines=m.clone(t.fragmentDefines),e){for(var a in n)i[a]&&(i[a].value=n[a].value);m.defaults(this.vertexDefines,r),m.defaults(this.fragmentDefines,o)}var s={};for(var l in t.textures)s[l]={shaderType:t.textures[l].shaderType,type:t.textures[l].type,enabled:!(!e||!this._textureStatus[l])&&this._textureStatus[l].enabled};this._textureStatus=s,this._programKey=""},clone:function(){var t=new this.constructor({name:this.name,shader:this.shader});for(var e in this.uniforms)t.uniforms[e].value=this.uniforms[e].value;return t.depthTest=this.depthTest,t.depthMask=this.depthMask,t.transparent=this.transparent,t.blend=this.blend,t.vertexDefines=m.clone(this.vertexDefines),t.fragmentDefines=m.clone(this.fragmentDefines),t.enableTexture(this.getEnabledTextures()),t.precision=this.precision,t},define:function(t,e,n){var i=this.vertexDefines,r=this.fragmentDefines;"vertex"!==t&&"fragment"!==t&&"both"!==t&&arguments.length<3&&(n=e,e=t,t="both"),n=null!=n?n:null,"vertex"!==t&&"both"!==t||i[e]!==n&&(i[e]=n,this._programKey=""),"fragment"!==t&&"both"!==t||r[e]!==n&&(r[e]=n,"both"!==t&&(this._programKey=""))},undefine:function(t,e){"vertex"!==t&&"fragment"!==t&&"both"!==t&&arguments.length<2&&(e=t,t="both"),"vertex"!==t&&"both"!==t||this.isDefined("vertex",e)&&(delete this.vertexDefines[e],this._programKey=""),"fragment"!==t&&"both"!==t||this.isDefined("fragment",e)&&(delete this.fragmentDefines[e],"both"!==t&&(this._programKey=""))},isDefined:function(t,e){switch(t){case"vertex":return void 0!==this.vertexDefines[e];case"fragment":return void 0!==this.fragmentDefines[e]}},getDefine:function(t,e){switch(t){case"vertex":return this.vertexDefines[e];case"fragment":return this.fragmentDefines[e]}},enableTexture:function(t){if(Array.isArray(t))for(var e=0;e<t.length;e++)this.enableTexture(t[e]);else{var n=this._textureStatus[t];if(n)n.enabled||(n.enabled=!0,this._programKey="")}},enableTexturesAll:function(){var t=this._textureStatus;for(var e in t)t[e].enabled=!0;this._programKey=""},disableTexture:function(t){if(Array.isArray(t))for(var e=0;e<t.length;e++)this.disableTexture(t[e]);else{var n=this._textureStatus[t];if(n)!n.enabled||(n.enabled=!1,this._programKey="")}},disableTexturesAll:function(){var t=this._textureStatus;for(var e in t)t[e].enabled=!1;this._programKey=""},isTextureEnabled:function(t){var e=this._textureStatus;return!!e[t]&&e[t].enabled},getEnabledTextures:function(){var t=[],e=this._textureStatus;for(var n in e)e[n].enabled&&t.push(n);return t},dirtyDefines:function(){this._programKey=""},getProgramKey:function(){return this._programKey||(this._programKey=function(t,e,n){n.sort();for(var i=[],r=0;r<n.length;r++){var o=n[r];i.push(o)}var a=jt(t)+"\n"+jt(e)+"\n"+i.join("\n");if(Vt[a])return Vt[a];var s=m.genGUID();return Vt[a]=s,s}(this.vertexDefines,this.fragmentDefines,this.getEnabledTextures())),this._programKey}});var Wt,Ut=1e-6,qt=Array,Xt=Math.random,Yt={};Yt.create=function(){var t=new qt(2);return t[0]=0,t[1]=0,t},Yt.clone=function(t){var e=new qt(2);return e[0]=t[0],e[1]=t[1],e},Yt.fromValues=function(t,e){var n=new qt(2);return n[0]=t,n[1]=e,n},Yt.copy=function(t,e){return t[0]=e[0],t[1]=e[1],t},Yt.set=function(t,e,n){return t[0]=e,t[1]=n,t},Yt.add=function(t,e,n){return t[0]=e[0]+n[0],t[1]=e[1]+n[1],t},Yt.subtract=function(t,e,n){return t[0]=e[0]-n[0],t[1]=e[1]-n[1],t},Yt.sub=Yt.subtract,Yt.multiply=function(t,e,n){return t[0]=e[0]*n[0],t[1]=e[1]*n[1],t},Yt.mul=Yt.multiply,Yt.divide=function(t,e,n){return t[0]=e[0]/n[0],t[1]=e[1]/n[1],t},Yt.div=Yt.divide,Yt.min=function(t,e,n){return t[0]=Math.min(e[0],n[0]),t[1]=Math.min(e[1],n[1]),t},Yt.max=function(t,e,n){return t[0]=Math.max(e[0],n[0]),t[1]=Math.max(e[1],n[1]),t},Yt.scale=function(t,e,n){return t[0]=e[0]*n,t[1]=e[1]*n,t},Yt.scaleAndAdd=function(t,e,n,i){return t[0]=e[0]+n[0]*i,t[1]=e[1]+n[1]*i,t},Yt.distance=function(t,e){var n=e[0]-t[0],i=e[1]-t[1];return Math.sqrt(n*n+i*i)},Yt.dist=Yt.distance,Yt.squaredDistance=function(t,e){var n=e[0]-t[0],i=e[1]-t[1];return n*n+i*i},Yt.sqrDist=Yt.squaredDistance,Yt.length=function(t){var e=t[0],n=t[1];return Math.sqrt(e*e+n*n)},Yt.len=Yt.length,Yt.squaredLength=function(t){var e=t[0],n=t[1];return e*e+n*n},Yt.sqrLen=Yt.squaredLength,Yt.negate=function(t,e){return t[0]=-e[0],t[1]=-e[1],t},Yt.inverse=function(t,e){return t[0]=1/e[0],t[1]=1/e[1],t},Yt.normalize=function(t,e){var n=e[0],i=e[1],r=n*n+i*i;return r>0&&(r=1/Math.sqrt(r),t[0]=e[0]*r,t[1]=e[1]*r),t},Yt.dot=function(t,e){return t[0]*e[0]+t[1]*e[1]},Yt.cross=function(t,e,n){var i=e[0]*n[1]-e[1]*n[0];return t[0]=t[1]=0,t[2]=i,t},Yt.lerp=function(t,e,n,i){var r=e[0],o=e[1];return t[0]=r+i*(n[0]-r),t[1]=o+i*(n[1]-o),t},Yt.random=function(t,e){e=e||1;var n=2*GLMAT_RANDOM()*Math.PI;return t[0]=Math.cos(n)*e,t[1]=Math.sin(n)*e,t},Yt.transformMat2=function(t,e,n){var i=e[0],r=e[1];return t[0]=n[0]*i+n[2]*r,t[1]=n[1]*i+n[3]*r,t},Yt.transformMat2d=function(t,e,n){var i=e[0],r=e[1];return t[0]=n[0]*i+n[2]*r+n[4],t[1]=n[1]*i+n[3]*r+n[5],t},Yt.transformMat3=function(t,e,n){var i=e[0],r=e[1];return t[0]=n[0]*i+n[3]*r+n[6],t[1]=n[1]*i+n[4]*r+n[7],t},Yt.transformMat4=function(t,e,n){var i=e[0],r=e[1];return t[0]=n[0]*i+n[4]*r+n[12],t[1]=n[1]*i+n[5]*r+n[13],t},Yt.forEach=(Wt=Yt.create(),function(t,e,n,i,r,o){var a,s;for(e||(e=2),n||(n=0),s=i?Math.min(i*e+n,t.length):t.length,a=n;a<s;a+=e)Wt[0]=t[a],Wt[1]=t[a+1],r(Wt,Wt,o),t[a]=Wt[0],t[a+1]=Wt[1];return t});const Zt=Yt;var $t=function(t,e){t=t||0,e=e||0,this.array=Zt.fromValues(t,e),this._dirty=!0};if($t.prototype={constructor:$t,add:function(t){return Zt.add(this.array,this.array,t.array),this._dirty=!0,this},set:function(t,e){return this.array[0]=t,this.array[1]=e,this._dirty=!0,this},setArray:function(t){return this.array[0]=t[0],this.array[1]=t[1],this._dirty=!0,this},clone:function(){return new $t(this.x,this.y)},copy:function(t){return Zt.copy(this.array,t.array),this._dirty=!0,this},cross:function(t,e){return Zt.cross(t.array,this.array,e.array),t._dirty=!0,this},dist:function(t){return Zt.dist(this.array,t.array)},distance:function(t){return Zt.distance(this.array,t.array)},div:function(t){return Zt.div(this.array,this.array,t.array),this._dirty=!0,this},divide:function(t){return Zt.divide(this.array,this.array,t.array),this._dirty=!0,this},dot:function(t){return Zt.dot(this.array,t.array)},len:function(){return Zt.len(this.array)},length:function(){return Zt.length(this.array)},lerp:function(t,e,n){return Zt.lerp(this.array,t.array,e.array,n),this._dirty=!0,this},min:function(t){return Zt.min(this.array,this.array,t.array),this._dirty=!0,this},max:function(t){return Zt.max(this.array,this.array,t.array),this._dirty=!0,this},mul:function(t){return Zt.mul(this.array,this.array,t.array),this._dirty=!0,this},multiply:function(t){return Zt.multiply(this.array,this.array,t.array),this._dirty=!0,this},negate:function(){return Zt.negate(this.array,this.array),this._dirty=!0,this},normalize:function(){return Zt.normalize(this.array,this.array),this._dirty=!0,this},random:function(t){return Zt.random(this.array,t),this._dirty=!0,this},scale:function(t){return Zt.scale(this.array,this.array,t),this._dirty=!0,this},scaleAndAdd:function(t,e){return Zt.scaleAndAdd(this.array,this.array,t.array,e),this._dirty=!0,this},sqrDist:function(t){return Zt.sqrDist(this.array,t.array)},squaredDistance:function(t){return Zt.squaredDistance(this.array,t.array)},sqrLen:function(){return Zt.sqrLen(this.array)},squaredLength:function(){return Zt.squaredLength(this.array)},sub:function(t){return Zt.sub(this.array,this.array,t.array),this._dirty=!0,this},subtract:function(t){return Zt.subtract(this.array,this.array,t.array),this._dirty=!0,this},transformMat2:function(t){return Zt.transformMat2(this.array,this.array,t.array),this._dirty=!0,this},transformMat2d:function(t){return Zt.transformMat2d(this.array,this.array,t.array),this._dirty=!0,this},transformMat3:function(t){return Zt.transformMat3(this.array,this.array,t.array),this._dirty=!0,this},transformMat4:function(t){return Zt.transformMat4(this.array,this.array,t.array),this._dirty=!0,this},toString:function(){return"["+Array.prototype.join.call(this.array,",")+"]"},toArray:function(){return Array.prototype.slice.call(this.array)}},Object.defineProperty){var Kt=$t.prototype;Object.defineProperty(Kt,"x",{get:function(){return this.array[0]},set:function(t){this.array[0]=t,this._dirty=!0}}),Object.defineProperty(Kt,"y",{get:function(){return this.array[1]},set:function(t){this.array[1]=t,this._dirty=!0}})}$t.add=function(t,e,n){return Zt.add(t.array,e.array,n.array),t._dirty=!0,t},$t.set=function(t,e,n){return Zt.set(t.array,e,n),t._dirty=!0,t},$t.copy=function(t,e){return Zt.copy(t.array,e.array),t._dirty=!0,t},$t.cross=function(t,e,n){return Zt.cross(t.array,e.array,n.array),t._dirty=!0,t},$t.distance=$t.dist=function(t,e){return Zt.distance(t.array,e.array)},$t.divide=$t.div=function(t,e,n){return Zt.divide(t.array,e.array,n.array),t._dirty=!0,t},$t.dot=function(t,e){return Zt.dot(t.array,e.array)},$t.len=function(t){return Zt.length(t.array)},$t.lerp=function(t,e,n,i){return Zt.lerp(t.array,e.array,n.array,i),t._dirty=!0,t},$t.min=function(t,e,n){return Zt.min(t.array,e.array,n.array),t._dirty=!0,t},$t.max=function(t,e,n){return Zt.max(t.array,e.array,n.array),t._dirty=!0,t},$t.multiply=$t.mul=function(t,e,n){return Zt.multiply(t.array,e.array,n.array),t._dirty=!0,t},$t.negate=function(t,e){return Zt.negate(t.array,e.array),t._dirty=!0,t},$t.normalize=function(t,e){return Zt.normalize(t.array,e.array),t._dirty=!0,t},$t.random=function(t,e){return Zt.random(t.array,e),t._dirty=!0,t},$t.scale=function(t,e,n){return Zt.scale(t.array,e.array,n),t._dirty=!0,t},$t.scaleAndAdd=function(t,e,n,i){return Zt.scaleAndAdd(t.array,e.array,n.array,i),t._dirty=!0,t},$t.squaredDistance=$t.sqrDist=function(t,e){return Zt.sqrDist(t.array,e.array)},$t.squaredLength=$t.sqrLen=function(t){return Zt.sqrLen(t.array)},$t.subtract=$t.sub=function(t,e,n){return Zt.subtract(t.array,e.array,n.array),t._dirty=!0,t},$t.transformMat2=function(t,e,n){return Zt.transformMat2(t.array,e.array,n.array),t._dirty=!0,t},$t.transformMat2d=function(t,e,n){return Zt.transformMat2d(t.array,e.array,n.array),t._dirty=!0,t},$t.transformMat3=function(t,e,n){return Zt.transformMat3(t.array,e.array,n.array),t._dirty=!0,t},$t.transformMat4=function(t,e,n){return Zt.transformMat4(t.array,e.array,n.array),t._dirty=!0,t};const Jt=$t;var Qt={};function te(t){for(var e=t.split("\n"),n=0,i=e.length;n<i;n++)e[n]=n+1+": "+e[n];return e.join("\n")}function ee(t,e,n){if(!t.getShaderParameter(e,t.COMPILE_STATUS))return[t.getShaderInfoLog(e),te(n)].join("\n")}var ne=new bt.Float32Array(16);const ie=y.extend({uniformSemantics:{},attributes:{}},(function(){this._locations={},this._textureSlot=0,this._program=null}),{bind:function(t){this._textureSlot=0,t.gl.useProgram(this._program)},hasUniform:function(t){var e=this._locations[t];return null!=e},useTextureSlot:function(t,e,n){e&&(t.gl.activeTexture(t.gl.TEXTURE0+n),e.isRenderable()?e.bind(t):e.unbind(t))},currentTextureSlot:function(){return this._textureSlot},resetTextureSlot:function(t){this._textureSlot=t||0},takeCurrentTextureSlot:function(t,e){var n=this._textureSlot;return this.useTextureSlot(t,e,n),this._textureSlot++,n},setUniform:function(t,e,n,i){var r=this._locations[n];if(null==r)return!1;switch(e){case"m4":if(!(i instanceof Float32Array)){for(var o=0;o<i.length;o++)ne[o]=i[o];i=ne}t.uniformMatrix4fv(r,!1,i);break;case"2i":t.uniform2i(r,i[0],i[1]);break;case"2f":t.uniform2f(r,i[0],i[1]);break;case"3i":t.uniform3i(r,i[0],i[1],i[2]);break;case"3f":t.uniform3f(r,i[0],i[1],i[2]);break;case"4i":t.uniform4i(r,i[0],i[1],i[2],i[3]);break;case"4f":t.uniform4f(r,i[0],i[1],i[2],i[3]);break;case"1i":t.uniform1i(r,i);break;case"1f":t.uniform1f(r,i);break;case"1fv":t.uniform1fv(r,i);break;case"1iv":t.uniform1iv(r,i);break;case"2iv":t.uniform2iv(r,i);break;case"2fv":t.uniform2fv(r,i);break;case"3iv":t.uniform3iv(r,i);break;case"3fv":t.uniform3fv(r,i);break;case"4iv":t.uniform4iv(r,i);break;case"4fv":t.uniform4fv(r,i);break;case"m2":case"m2v":t.uniformMatrix2fv(r,!1,i);break;case"m3":case"m3v":t.uniformMatrix3fv(r,!1,i);break;case"m4v":if(Array.isArray(i)&&Array.isArray(i[0])){var a=new bt.Float32Array(16*i.length),s=0;for(o=0;o<i.length;o++)for(var l=i[o],h=0;h<16;h++)a[s++]=l[h];t.uniformMatrix4fv(r,!1,a)}else t.uniformMatrix4fv(r,!1,i)}return!0},setUniformOfSemantic:function(t,e,n){var i=this.uniformSemantics[e];return!!i&&this.setUniform(t,i.type,i.symbol,n)},enableAttributes:function(t,e,n){var i,r=t.gl,o=this._program,a=this._locations;(i=n?n.__enabledAttributeList:Qt[t.__uid__])||(i=n?n.__enabledAttributeList=[]:Qt[t.__uid__]=[]);for(var s=[],l=0;l<e.length;l++){var h=e[l];if(this.attributes[h]){var c=a[h];if(null==c){if(-1===(c=r.getAttribLocation(o,h))){s[l]=-1;continue}a[h]=c}s[l]=c,i[c]?i[c]=2:i[c]=1}else s[l]=-1}for(l=0;l<i.length;l++)switch(i[l]){case 1:r.enableVertexAttribArray(l),i[l]=3;break;case 2:i[l]=3;break;case 3:r.disableVertexAttribArray(l),i[l]=0}return s},getAttribLocation:function(t,e){var n=this._locations,i=n[e];return null==i&&(i=t.getAttribLocation(this._program,e),n[e]=i),i},buildProgram:function(t,e,n,i){var r=t.createShader(t.VERTEX_SHADER),o=t.createProgram();t.shaderSource(r,n),t.compileShader(r);var a=t.createShader(t.FRAGMENT_SHADER);t.shaderSource(a,i),t.compileShader(a);var s=ee(t,r,n);if(s)return s;if(s=ee(t,a,i))return s;if(t.attachShader(o,r),t.attachShader(o,a),e.attributeSemantics.POSITION)t.bindAttribLocation(o,0,e.attributeSemantics.POSITION.symbol);else{var l=Object.keys(this.attributes);t.bindAttribLocation(o,0,l[0])}if(t.linkProgram(o),t.deleteShader(r),t.deleteShader(a),this._program=o,this.vertexCode=n,this.fragmentCode=i,!t.getProgramParameter(o,t.LINK_STATUS))return"Could not link program\n"+t.getProgramInfoLog(o);for(var h=0;h<e.uniforms.length;h++){var c=e.uniforms[h];this._locations[c]=t.getUniformLocation(o,c)}}});var re=/for\s*?\(int\s*?_idx_\s*\=\s*([\w-]+)\;\s*_idx_\s*<\s*([\w-]+);\s*_idx_\s*\+\+\s*\)\s*\{\{([\s\S]+?)(?=\}\})\}\}/g;function oe(t,e,n){var i={};for(var r in n)i[r+"_COUNT"]=n[r];return t.replace(re,(function(t,n,r,o){var a="";isNaN(n)&&(n=n in e?e[n]:i[n]),isNaN(r)&&(r=r in e?e[r]:i[r]);for(var s=parseInt(n);s<parseInt(r);s++)a+="{"+o.replace(/float\s*\(\s*_idx_\s*\)/g,s.toFixed(1)).replace(/_idx_/g,s)+"}";return a}))}function ae(t,e,n){var i=[];if(e)for(var r in e){var o=e[r];o>0&&i.push("#define "+r.toUpperCase()+"_COUNT "+o)}if(n)for(var a=0;a<n.length;a++){var s=n[a];i.push("#define "+s.toUpperCase()+"_ENABLED")}for(var s in t){var l=t[s];null===l?i.push("#define "+s):i.push("#define "+s+" "+l.toString())}return i.join("\n")}function se(t){this._renderer=t,this._cache={}}se.prototype.getProgram=function(t,e,n){var i=this._cache,r=t.isSkinnedMesh&&t.isSkinnedMesh(),o=t.isInstancedMesh&&t.isInstancedMesh(),a="s"+e.shader.shaderID+"m"+e.getProgramKey();if(n&&(a+="se"+n.getProgramKey(t.lightGroup)),r&&(a+=",sk"+t.joints.length),o&&(a+=",is"),y=i[a])return y;var s=n?n.getLightsNumbers(t.lightGroup):{},l=this._renderer,h=l.gl,c=e.getEnabledTextures(),u="";if(r){var d={SKINNING:null,JOINT_COUNT:t.joints.length};t.joints.length>l.getMaxJointNumber()&&(d.USE_SKIN_MATRICES_TEXTURE=null),u+="\n"+ae(d)+"\n"}o&&(u+="\n#define INSTANCING\n");var p=u+ae(e.vertexDefines,s,c),f=u+ae(e.fragmentDefines,s,c),g=p+"\n"+e.shader.vertex,m=["OES_standard_derivatives","EXT_shader_texture_lod"].filter((function(t){return null!=l.getGLExtension(t)}));m.indexOf("EXT_shader_texture_lod")>=0&&(f+="\n#define SUPPORT_TEXTURE_LOD"),m.indexOf("OES_standard_derivatives")>=0&&(f+="\n#define SUPPORT_STANDARD_DERIVATIVES");var v,y,_=function(t){for(var e=[],n=0;n<t.length;n++)e.push("#extension GL_"+t[n]+" : enable");return e.join("\n")}(m)+"\n"+(["precision",v=e.precision,"float"].join(" ")+";\n"+["precision",v,"int"].join(" ")+";\n"+["precision",v,"sampler2D"].join(" ")+";\n\n")+f+"\n"+e.shader.fragment,x=oe(g,e.vertexDefines,s),b=oe(_,e.fragmentDefines,s);(y=new ie).uniformSemantics=e.shader.uniformSemantics,y.attributes=e.shader.attributes;var w=y.buildProgram(h,e.shader,x,b);return y.__error=w,i[a]=y,y};const le=se;var he=/uniform\s+(bool|float|int|vec2|vec3|vec4|ivec2|ivec3|ivec4|mat2|mat3|mat4|sampler2D|samplerCube)\s+([\s\S]*?);/g,ce=/attribute\s+(float|int|vec2|vec3|vec4)\s+([\s\S]*?);/g,ue=/#define\s+(\w+)?(\s+[\d-.]+)?\s*;?\s*\n/g,de={bool:"1i",int:"1i",sampler2D:"t",samplerCube:"t",float:"1f",vec2:"2f",vec3:"3f",vec4:"4f",ivec2:"2i",ivec3:"3i",ivec4:"4i",mat2:"m2",mat3:"m3",mat4:"m4"};function pe(t){for(var e=[],n=0;n<t;n++)e[n]=0;return e}var fe={bool:function(){return!0},int:function(){return 0},float:function(){return 0},sampler2D:function(){return null},samplerCube:function(){return null},vec2:function(){return pe(2)},vec3:function(){return pe(3)},vec4:function(){return pe(4)},ivec2:function(){return pe(2)},ivec3:function(){return pe(3)},ivec4:function(){return pe(4)},mat2:function(){return pe(4)},mat3:function(){return pe(9)},mat4:function(){return pe(16)},array:function(){return[]}},ge=["POSITION","NORMAL","BINORMAL","TANGENT","TEXCOORD","TEXCOORD_0","TEXCOORD_1","COLOR","JOINT","WEIGHT"],me=["SKIN_MATRIX","VIEWPORT_SIZE","VIEWPORT","DEVICEPIXELRATIO","WINDOW_SIZE","NEAR","FAR","TIME"],ve=["WORLD","VIEW","PROJECTION","WORLDVIEW","VIEWPROJECTION","WORLDVIEWPROJECTION","WORLDINVERSE","VIEWINVERSE","PROJECTIONINVERSE","WORLDVIEWINVERSE","VIEWPROJECTIONINVERSE","WORLDVIEWPROJECTIONINVERSE","WORLDTRANSPOSE","VIEWTRANSPOSE","PROJECTIONTRANSPOSE","WORLDVIEWTRANSPOSE","VIEWPROJECTIONTRANSPOSE","WORLDVIEWPROJECTIONTRANSPOSE","WORLDINVERSETRANSPOSE","VIEWINVERSETRANSPOSE","PROJECTIONINVERSETRANSPOSE","WORLDVIEWINVERSETRANSPOSE","VIEWPROJECTIONINVERSETRANSPOSE","WORLDVIEWPROJECTIONINVERSETRANSPOSE"],ye={vec4:4,vec3:3,vec2:2,float:1},_e={},xe={};function be(t){return t.replace(/[ \t]*\/\/.*\n/g,"").replace(/[ \t]*\/\*[\s\S]*?\*\//g,"")}function we(){console.error("Wrong uniform/attributes syntax")}function Se(t,e){for(var n=/[,=\(\):]/,i=e.replace(/:\s*\[\s*(.*)\s*\]/g,"="+t+"($1)").replace(/\s+/g,"").split(/(?=[,=\(\):])/g),r=[],o=0;o<i.length;o++)i[o].match(n)?r.push(i[o].charAt(0),i[o].slice(1)):r.push(i[o]);var a,s=0,l={},h=null;function c(t){t||we();var e=t.match(/\[(.*?)\]/);a=t.replace(/\[(.*?)\]/,""),l[a]={},e&&(l[a].isArray=!0,l[a].arraySize=e[1])}c((i=r)[0]);for(o=1;o<i.length;o++){var u=i[o];if(u)if("="!==u)if(":"!==u)if(","!==u)if(")"!==u)if("("!==u)if(u.indexOf("vec")>=0){if(1!==s&&4!==s){we();break}s=2,h=[]}else if(1!==s)if(4!==s)c(u),s=0;else{var d=u;ge.indexOf(d)>=0||me.indexOf(d)>=0||ve.indexOf(d)>=0?l[a].semantic=d:"ignore"===d||"unconfigurable"===d?l[a].ignore=!0:l[a].value="bool"===t?"true"===d:parseFloat(d)}else l[a].value="bool"===t?"true"===u:parseFloat(u),h=null;else{if(2!==s){we();break}if(!(h instanceof Array)){we();break}h.push(+i[++o])}else l[a].value=new bt.Float32Array(h),h=null,s=5;else if(2===s){if(!(h instanceof Array)){we();break}h.push(+i[++o])}else s=5;else s=4;else{if(0!==s&&3!==s){we();break}s=1}}return l}function Te(t,e){"object"==typeof t&&(e=t.fragment,t=t.vertex),t=be(t),e=be(e),this._shaderID=function(t,e){var n="vertex:"+t+"fragment:"+e;if(_e[n])return _e[n];var i=m.genGUID();return _e[n]=i,xe[i]={vertex:t,fragment:e},i}(t,e),this._vertexCode=Te.parseImport(t),this._fragmentCode=Te.parseImport(e),this.attributeSemantics={},this.matrixSemantics={},this.uniformSemantics={},this.matrixSemanticKeys=[],this.uniformTemplates={},this.attributes={},this.textures={},this.vertexDefines={},this.fragmentDefines={},this._parseAttributes(),this._parseUniforms(),this._parseDefines()}Te.prototype={constructor:Te,createUniforms:function(){var t={};for(var e in this.uniformTemplates){var n=this.uniformTemplates[e];t[e]={type:n.type,value:n.value()}}return t},_parseImport:function(){this._vertexCode=Te.parseImport(this.vertex),this._fragmentCode=Te.parseImport(this.fragment)},_addSemanticUniform:function(t,e,n){if(ge.indexOf(n)>=0)this.attributeSemantics[n]={symbol:t,type:e};else if(ve.indexOf(n)>=0){var i=!1,r=n;n.match(/TRANSPOSE$/)&&(i=!0,r=n.slice(0,-9)),this.matrixSemantics[n]={symbol:t,type:e,isTranspose:i,semanticNoTranspose:r}}else me.indexOf(n)>=0&&(this.uniformSemantics[n]={symbol:t,type:e})},_addMaterialUniform:function(t,e,n,i,r,o){o[t]={type:n,value:r?fe.array:i||fe[e],semantic:null}},_parseUniforms:function(){var t={},e=this,n="vertex";function i(t){return null!=t?function(){return t}:null}function r(r,o,a){var s=Se(o,a),l=[];for(var h in s){var c=s[h],u=c.semantic,d=h,p=de[o],f=i(s[h].value);s[h].isArray&&(d+="["+s[h].arraySize+"]",p+="v"),l.push(d),e._uniformList.push(h),c.ignore||("sampler2D"!==o&&"samplerCube"!==o||(e.textures[h]={shaderType:n,type:o}),u?e._addSemanticUniform(h,p,u):e._addMaterialUniform(h,o,p,f,s[h].isArray,t))}return l.length>0?"uniform "+o+" "+l.join(",")+";\n":""}this._uniformList=[],this._vertexCode=this._vertexCode.replace(he,r),n="fragment",this._fragmentCode=this._fragmentCode.replace(he,r),e.matrixSemanticKeys=Object.keys(this.matrixSemantics),this.uniformTemplates=t},_parseAttributes:function(){var t={},e=this;this._vertexCode=this._vertexCode.replace(ce,(function(n,i,r){var o=Se(i,r),a=ye[i]||1,s=[];for(var l in o){var h=o[l].semantic;if(t[l]={type:"float",size:a,semantic:h||null},h){if(ge.indexOf(h)<0)throw new Error('Unkown semantic "'+h+'"');e.attributeSemantics[h]={symbol:l,type:i}}s.push(l)}return"attribute "+i+" "+s.join(",")+";\n"})),this.attributes=t},_parseDefines:function(){var t=this,e="vertex";function n(n,i,r){var o="vertex"===e?t.vertexDefines:t.fragmentDefines;return o[i]||(o[i]="false"!==r&&("true"===r||(r?isNaN(parseFloat(r))?r.trim():parseFloat(r):null))),""}this._vertexCode=this._vertexCode.replace(ue,n),e="fragment",this._fragmentCode=this._fragmentCode.replace(ue,n)},clone:function(){var t=xe[this._shaderID];return new Te(t.vertex,t.fragment)}},Object.defineProperty&&(Object.defineProperty(Te.prototype,"shaderID",{get:function(){return this._shaderID}}),Object.defineProperty(Te.prototype,"vertex",{get:function(){return this._vertexCode}}),Object.defineProperty(Te.prototype,"fragment",{get:function(){return this._fragmentCode}}),Object.defineProperty(Te.prototype,"uniforms",{get:function(){return this._uniformList}}));var Me=/(@import)\s*([0-9a-zA-Z_\-\.]*)/g;Te.parseImport=function(t){return t=t.replace(Me,(function(t,e,n){return(t=Te.source(n))?Te.parseImport(t):(console.error('Shader chunk "'+n+'" not existed in library'),"")}))};var Ae=/(@export)\s*([0-9a-zA-Z_\-\.]*)\s*\n([\s\S]*?)@end/g;Te.import=function(t){t.replace(Ae,(function(t,e,n,i){if(i=i.replace(/(^[\s\t\xa0\u3000]+)|([\u3000\xa0\s\t]+\x24)/g,"")){for(var r,o=n.split("."),a=Te.codes,s=0;s<o.length-1;)a[r=o[s++]]||(a[r]={}),a=a[r];a[r=o[s]]=i}return i}))},Te.codes={},Te.source=function(t){for(var e=t.split("."),n=Te.codes,i=0;n&&i<e.length;){n=n[e[i++]]}return"string"!=typeof n?(console.error('Shader "'+t+'" not existed in library'),""):n};const Ce=Te,Ie="@export clay.prez.vertex\nuniform mat4 WVP : WORLDVIEWPROJECTION;\nattribute vec3 pos : POSITION;\nattribute vec2 uv : TEXCOORD_0;\nuniform vec2 uvRepeat : [1.0, 1.0];\nuniform vec2 uvOffset : [0.0, 0.0];\n@import clay.chunk.skinning_header\n@import clay.chunk.instancing_header\nvarying vec2 v_Texcoord;\nvoid main()\n{\n vec4 P = vec4(pos, 1.0);\n#ifdef SKINNING\n @import clay.chunk.skin_matrix\n P = skinMatrixWS * P;\n#endif\n#ifdef INSTANCING\n @import clay.chunk.instancing_matrix\n P = instanceMat * P;\n#endif\n gl_Position = WVP * P;\n v_Texcoord = uv * uvRepeat + uvOffset;\n}\n@end\n@export clay.prez.fragment\nuniform sampler2D alphaMap;\nuniform float alphaCutoff: 0.0;\nvarying vec2 v_Texcoord;\nvoid main()\n{\n if (alphaCutoff > 0.0) {\n if (texture2D(alphaMap, v_Texcoord).a <= alphaCutoff) {\n discard;\n }\n }\n gl_FragColor = vec4(0.0,0.0,0.0,1.0);\n}\n@end";var Ee={create:function(){var t=new qt(16);return t[0]=1,t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=1,t[6]=0,t[7]=0,t[8]=0,t[9]=0,t[10]=1,t[11]=0,t[12]=0,t[13]=0,t[14]=0,t[15]=1,t},clone:function(t){var e=new qt(16);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[6]=t[6],e[7]=t[7],e[8]=t[8],e[9]=t[9],e[10]=t[10],e[11]=t[11],e[12]=t[12],e[13]=t[13],e[14]=t[14],e[15]=t[15],e},copy:function(t,e){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3],t[4]=e[4],t[5]=e[5],t[6]=e[6],t[7]=e[7],t[8]=e[8],t[9]=e[9],t[10]=e[10],t[11]=e[11],t[12]=e[12],t[13]=e[13],t[14]=e[14],t[15]=e[15],t},identity:function(t){return t[0]=1,t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=1,t[6]=0,t[7]=0,t[8]=0,t[9]=0,t[10]=1,t[11]=0,t[12]=0,t[13]=0,t[14]=0,t[15]=1,t},transpose:function(t,e){if(t===e){var n=e[1],i=e[2],r=e[3],o=e[6],a=e[7],s=e[11];t[1]=e[4],t[2]=e[8],t[3]=e[12],t[4]=n,t[6]=e[9],t[7]=e[13],t[8]=i,t[9]=o,t[11]=e[14],t[12]=r,t[13]=a,t[14]=s}else t[0]=e[0],t[1]=e[4],t[2]=e[8],t[3]=e[12],t[4]=e[1],t[5]=e[5],t[6]=e[9],t[7]=e[13],t[8]=e[2],t[9]=e[6],t[10]=e[10],t[11]=e[14],t[12]=e[3],t[13]=e[7],t[14]=e[11],t[15]=e[15];return t},invert:function(t,e){var n=e[0],i=e[1],r=e[2],o=e[3],a=e[4],s=e[5],l=e[6],h=e[7],c=e[8],u=e[9],d=e[10],p=e[11],f=e[12],g=e[13],m=e[14],v=e[15],y=n*s-i*a,_=n*l-r*a,x=n*h-o*a,b=i*l-r*s,w=i*h-o*s,S=r*h-o*l,T=c*g-u*f,M=c*m-d*f,A=c*v-p*f,C=u*m-d*g,I=u*v-p*g,E=d*v-p*m,k=y*E-_*I+x*C+b*A-w*M+S*T;return k?(k=1/k,t[0]=(s*E-l*I+h*C)*k,t[1]=(r*I-i*E-o*C)*k,t[2]=(g*S-m*w+v*b)*k,t[3]=(d*w-u*S-p*b)*k,t[4]=(l*A-a*E-h*M)*k,t[5]=(n*E-r*A+o*M)*k,t[6]=(m*x-f*S-v*_)*k,t[7]=(c*S-d*x+p*_)*k,t[8]=(a*I-s*A+h*T)*k,t[9]=(i*A-n*I-o*T)*k,t[10]=(f*w-g*x+v*y)*k,t[11]=(u*x-c*w-p*y)*k,t[12]=(s*M-a*C-l*T)*k,t[13]=(n*C-i*M+r*T)*k,t[14]=(g*_-f*b-m*y)*k,t[15]=(c*b-u*_+d*y)*k,t):null},adjoint:function(t,e){var n=e[0],i=e[1],r=e[2],o=e[3],a=e[4],s=e[5],l=e[6],h=e[7],c=e[8],u=e[9],d=e[10],p=e[11],f=e[12],g=e[13],m=e[14],v=e[15];return t[0]=s*(d*v-p*m)-u*(l*v-h*m)+g*(l*p-h*d),t[1]=-(i*(d*v-p*m)-u*(r*v-o*m)+g*(r*p-o*d)),t[2]=i*(l*v-h*m)-s*(r*v-o*m)+g*(r*h-o*l),t[3]=-(i*(l*p-h*d)-s*(r*p-o*d)+u*(r*h-o*l)),t[4]=-(a*(d*v-p*m)-c*(l*v-h*m)+f*(l*p-h*d)),t[5]=n*(d*v-p*m)-c*(r*v-o*m)+f*(r*p-o*d),t[6]=-(n*(l*v-h*m)-a*(r*v-o*m)+f*(r*h-o*l)),t[7]=n*(l*p-h*d)-a*(r*p-o*d)+c*(r*h-o*l),t[8]=a*(u*v-p*g)-c*(s*v-h*g)+f*(s*p-h*u),t[9]=-(n*(u*v-p*g)-c*(i*v-o*g)+f*(i*p-o*u)),t[10]=n*(s*v-h*g)-a*(i*v-o*g)+f*(i*h-o*s),t[11]=-(n*(s*p-h*u)-a*(i*p-o*u)+c*(i*h-o*s)),t[12]=-(a*(u*m-d*g)-c*(s*m-l*g)+f*(s*d-l*u)),t[13]=n*(u*m-d*g)-c*(i*m-r*g)+f*(i*d-r*u),t[14]=-(n*(s*m-l*g)-a*(i*m-r*g)+f*(i*l-r*s)),t[15]=n*(s*d-l*u)-a*(i*d-r*u)+c*(i*l-r*s),t},determinant:function(t){var e=t[0],n=t[1],i=t[2],r=t[3],o=t[4],a=t[5],s=t[6],l=t[7],h=t[8],c=t[9],u=t[10],d=t[11],p=t[12],f=t[13],g=t[14],m=t[15];return(e*a-n*o)*(u*m-d*g)-(e*s-i*o)*(c*m-d*f)+(e*l-r*o)*(c*g-u*f)+(n*s-i*a)*(h*m-d*p)-(n*l-r*a)*(h*g-u*p)+(i*l-r*s)*(h*f-c*p)},multiply:function(t,e,n){var i=e[0],r=e[1],o=e[2],a=e[3],s=e[4],l=e[5],h=e[6],c=e[7],u=e[8],d=e[9],p=e[10],f=e[11],g=e[12],m=e[13],v=e[14],y=e[15],_=n[0],x=n[1],b=n[2],w=n[3];return t[0]=_*i+x*s+b*u+w*g,t[1]=_*r+x*l+b*d+w*m,t[2]=_*o+x*h+b*p+w*v,t[3]=_*a+x*c+b*f+w*y,_=n[4],x=n[5],b=n[6],w=n[7],t[4]=_*i+x*s+b*u+w*g,t[5]=_*r+x*l+b*d+w*m,t[6]=_*o+x*h+b*p+w*v,t[7]=_*a+x*c+b*f+w*y,_=n[8],x=n[9],b=n[10],w=n[11],t[8]=_*i+x*s+b*u+w*g,t[9]=_*r+x*l+b*d+w*m,t[10]=_*o+x*h+b*p+w*v,t[11]=_*a+x*c+b*f+w*y,_=n[12],x=n[13],b=n[14],w=n[15],t[12]=_*i+x*s+b*u+w*g,t[13]=_*r+x*l+b*d+w*m,t[14]=_*o+x*h+b*p+w*v,t[15]=_*a+x*c+b*f+w*y,t},multiplyAffine:function(t,e,n){var i=e[0],r=e[1],o=e[2],a=e[4],s=e[5],l=e[6],h=e[8],c=e[9],u=e[10],d=e[12],p=e[13],f=e[14],g=n[0],m=n[1],v=n[2];return t[0]=g*i+m*a+v*h,t[1]=g*r+m*s+v*c,t[2]=g*o+m*l+v*u,g=n[4],m=n[5],v=n[6],t[4]=g*i+m*a+v*h,t[5]=g*r+m*s+v*c,t[6]=g*o+m*l+v*u,g=n[8],m=n[9],v=n[10],t[8]=g*i+m*a+v*h,t[9]=g*r+m*s+v*c,t[10]=g*o+m*l+v*u,g=n[12],m=n[13],v=n[14],t[12]=g*i+m*a+v*h+d,t[13]=g*r+m*s+v*c+p,t[14]=g*o+m*l+v*u+f,t}};Ee.mul=Ee.multiply,Ee.mulAffine=Ee.multiplyAffine,Ee.translate=function(t,e,n){var i,r,o,a,s,l,h,c,u,d,p,f,g=n[0],m=n[1],v=n[2];return e===t?(t[12]=e[0]*g+e[4]*m+e[8]*v+e[12],t[13]=e[1]*g+e[5]*m+e[9]*v+e[13],t[14]=e[2]*g+e[6]*m+e[10]*v+e[14],t[15]=e[3]*g+e[7]*m+e[11]*v+e[15]):(i=e[0],r=e[1],o=e[2],a=e[3],s=e[4],l=e[5],h=e[6],c=e[7],u=e[8],d=e[9],p=e[10],f=e[11],t[0]=i,t[1]=r,t[2]=o,t[3]=a,t[4]=s,t[5]=l,t[6]=h,t[7]=c,t[8]=u,t[9]=d,t[10]=p,t[11]=f,t[12]=i*g+s*m+u*v+e[12],t[13]=r*g+l*m+d*v+e[13],t[14]=o*g+h*m+p*v+e[14],t[15]=a*g+c*m+f*v+e[15]),t},Ee.scale=function(t,e,n){var i=n[0],r=n[1],o=n[2];return t[0]=e[0]*i,t[1]=e[1]*i,t[2]=e[2]*i,t[3]=e[3]*i,t[4]=e[4]*r,t[5]=e[5]*r,t[6]=e[6]*r,t[7]=e[7]*r,t[8]=e[8]*o,t[9]=e[9]*o,t[10]=e[10]*o,t[11]=e[11]*o,t[12]=e[12],t[13]=e[13],t[14]=e[14],t[15]=e[15],t},Ee.rotate=function(t,e,n,i){var r,o,a,s,l,h,c,u,d,p,f,g,m,v,y,_,x,b,w,S,T,M,A,C,I=i[0],E=i[1],k=i[2],L=Math.sqrt(I*I+E*E+k*k);return Math.abs(L)<Ut?null:(I*=L=1/L,E*=L,k*=L,r=Math.sin(n),a=1-(o=Math.cos(n)),s=e[0],l=e[1],h=e[2],c=e[3],u=e[4],d=e[5],p=e[6],f=e[7],g=e[8],m=e[9],v=e[10],y=e[11],_=I*I*a+o,x=E*I*a+k*r,b=k*I*a-E*r,w=I*E*a-k*r,S=E*E*a+o,T=k*E*a+I*r,M=I*k*a+E*r,A=E*k*a-I*r,C=k*k*a+o,t[0]=s*_+u*x+g*b,t[1]=l*_+d*x+m*b,t[2]=h*_+p*x+v*b,t[3]=c*_+f*x+y*b,t[4]=s*w+u*S+g*T,t[5]=l*w+d*S+m*T,t[6]=h*w+p*S+v*T,t[7]=c*w+f*S+y*T,t[8]=s*M+u*A+g*C,t[9]=l*M+d*A+m*C,t[10]=h*M+p*A+v*C,t[11]=c*M+f*A+y*C,e!==t&&(t[12]=e[12],t[13]=e[13],t[14]=e[14],t[15]=e[15]),t)},Ee.rotateX=function(t,e,n){var i=Math.sin(n),r=Math.cos(n),o=e[4],a=e[5],s=e[6],l=e[7],h=e[8],c=e[9],u=e[10],d=e[11];return e!==t&&(t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3],t[12]=e[12],t[13]=e[13],t[14]=e[14],t[15]=e[15]),t[4]=o*r+h*i,t[5]=a*r+c*i,t[6]=s*r+u*i,t[7]=l*r+d*i,t[8]=h*r-o*i,t[9]=c*r-a*i,t[10]=u*r-s*i,t[11]=d*r-l*i,t},Ee.rotateY=function(t,e,n){var i=Math.sin(n),r=Math.cos(n),o=e[0],a=e[1],s=e[2],l=e[3],h=e[8],c=e[9],u=e[10],d=e[11];return e!==t&&(t[4]=e[4],t[5]=e[5],t[6]=e[6],t[7]=e[7],t[12]=e[12],t[13]=e[13],t[14]=e[14],t[15]=e[15]),t[0]=o*r-h*i,t[1]=a*r-c*i,t[2]=s*r-u*i,t[3]=l*r-d*i,t[8]=o*i+h*r,t[9]=a*i+c*r,t[10]=s*i+u*r,t[11]=l*i+d*r,t},Ee.rotateZ=function(t,e,n){var i=Math.sin(n),r=Math.cos(n),o=e[0],a=e[1],s=e[2],l=e[3],h=e[4],c=e[5],u=e[6],d=e[7];return e!==t&&(t[8]=e[8],t[9]=e[9],t[10]=e[10],t[11]=e[11],t[12]=e[12],t[13]=e[13],t[14]=e[14],t[15]=e[15]),t[0]=o*r+h*i,t[1]=a*r+c*i,t[2]=s*r+u*i,t[3]=l*r+d*i,t[4]=h*r-o*i,t[5]=c*r-a*i,t[6]=u*r-s*i,t[7]=d*r-l*i,t},Ee.fromRotationTranslation=function(t,e,n){var i=e[0],r=e[1],o=e[2],a=e[3],s=i+i,l=r+r,h=o+o,c=i*s,u=i*l,d=i*h,p=r*l,f=r*h,g=o*h,m=a*s,v=a*l,y=a*h;return t[0]=1-(p+g),t[1]=u+y,t[2]=d-v,t[3]=0,t[4]=u-y,t[5]=1-(c+g),t[6]=f+m,t[7]=0,t[8]=d+v,t[9]=f-m,t[10]=1-(c+p),t[11]=0,t[12]=n[0],t[13]=n[1],t[14]=n[2],t[15]=1,t},Ee.fromQuat=function(t,e){var n=e[0],i=e[1],r=e[2],o=e[3],a=n+n,s=i+i,l=r+r,h=n*a,c=i*a,u=i*s,d=r*a,p=r*s,f=r*l,g=o*a,m=o*s,v=o*l;return t[0]=1-u-f,t[1]=c+v,t[2]=d-m,t[3]=0,t[4]=c-v,t[5]=1-h-f,t[6]=p+g,t[7]=0,t[8]=d+m,t[9]=p-g,t[10]=1-h-u,t[11]=0,t[12]=0,t[13]=0,t[14]=0,t[15]=1,t},Ee.frustum=function(t,e,n,i,r,o,a){var s=1/(n-e),l=1/(r-i),h=1/(o-a);return t[0]=2*o*s,t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=2*o*l,t[6]=0,t[7]=0,t[8]=(n+e)*s,t[9]=(r+i)*l,t[10]=(a+o)*h,t[11]=-1,t[12]=0,t[13]=0,t[14]=a*o*2*h,t[15]=0,t},Ee.perspective=function(t,e,n,i,r){var o=1/Math.tan(e/2),a=1/(i-r);return t[0]=o/n,t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=o,t[6]=0,t[7]=0,t[8]=0,t[9]=0,t[10]=(r+i)*a,t[11]=-1,t[12]=0,t[13]=0,t[14]=2*r*i*a,t[15]=0,t},Ee.ortho=function(t,e,n,i,r,o,a){var s=1/(e-n),l=1/(i-r),h=1/(o-a);return t[0]=-2*s,t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=-2*l,t[6]=0,t[7]=0,t[8]=0,t[9]=0,t[10]=2*h,t[11]=0,t[12]=(e+n)*s,t[13]=(r+i)*l,t[14]=(a+o)*h,t[15]=1,t},Ee.lookAt=function(t,e,n,i){var r,o,a,s,l,h,c,u,d,p,f=e[0],g=e[1],m=e[2],v=i[0],y=i[1],_=i[2],x=n[0],b=n[1],w=n[2];return Math.abs(f-x)<Ut&&Math.abs(g-b)<Ut&&Math.abs(m-w)<Ut?Ee.identity(t):(c=f-x,u=g-b,d=m-w,r=y*(d*=p=1/Math.sqrt(c*c+u*u+d*d))-_*(u*=p),o=_*(c*=p)-v*d,a=v*u-y*c,(p=Math.sqrt(r*r+o*o+a*a))?(r*=p=1/p,o*=p,a*=p):(r=0,o=0,a=0),s=u*a-d*o,l=d*r-c*a,h=c*o-u*r,(p=Math.sqrt(s*s+l*l+h*h))?(s*=p=1/p,l*=p,h*=p):(s=0,l=0,h=0),t[0]=r,t[1]=s,t[2]=c,t[3]=0,t[4]=o,t[5]=l,t[6]=u,t[7]=0,t[8]=a,t[9]=h,t[10]=d,t[11]=0,t[12]=-(r*f+o*g+a*m),t[13]=-(s*f+l*g+h*m),t[14]=-(c*f+u*g+d*m),t[15]=1,t)},Ee.frob=function(t){return Math.sqrt(Math.pow(t[0],2)+Math.pow(t[1],2)+Math.pow(t[2],2)+Math.pow(t[3],2)+Math.pow(t[4],2)+Math.pow(t[5],2)+Math.pow(t[6],2)+Math.pow(t[7],2)+Math.pow(t[8],2)+Math.pow(t[9],2)+Math.pow(t[10],2)+Math.pow(t[11],2)+Math.pow(t[12],2)+Math.pow(t[13],2)+Math.pow(t[14],2)+Math.pow(t[15],2))};const ke=Ee;var Le={create:function(){var t=new qt(3);return t[0]=0,t[1]=0,t[2]=0,t},clone:function(t){var e=new qt(3);return e[0]=t[0],e[1]=t[1],e[2]=t[2],e},fromValues:function(t,e,n){var i=new qt(3);return i[0]=t,i[1]=e,i[2]=n,i},copy:function(t,e){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t},set:function(t,e,n,i){return t[0]=e,t[1]=n,t[2]=i,t},add:function(t,e,n){return t[0]=e[0]+n[0],t[1]=e[1]+n[1],t[2]=e[2]+n[2],t},subtract:function(t,e,n){return t[0]=e[0]-n[0],t[1]=e[1]-n[1],t[2]=e[2]-n[2],t}};Le.sub=Le.subtract,Le.multiply=function(t,e,n){return t[0]=e[0]*n[0],t[1]=e[1]*n[1],t[2]=e[2]*n[2],t},Le.mul=Le.multiply,Le.divide=function(t,e,n){return t[0]=e[0]/n[0],t[1]=e[1]/n[1],t[2]=e[2]/n[2],t},Le.div=Le.divide,Le.min=function(t,e,n){return t[0]=Math.min(e[0],n[0]),t[1]=Math.min(e[1],n[1]),t[2]=Math.min(e[2],n[2]),t},Le.max=function(t,e,n){return t[0]=Math.max(e[0],n[0]),t[1]=Math.max(e[1],n[1]),t[2]=Math.max(e[2],n[2]),t},Le.scale=function(t,e,n){return t[0]=e[0]*n,t[1]=e[1]*n,t[2]=e[2]*n,t},Le.scaleAndAdd=function(t,e,n,i){return t[0]=e[0]+n[0]*i,t[1]=e[1]+n[1]*i,t[2]=e[2]+n[2]*i,t},Le.distance=function(t,e){var n=e[0]-t[0],i=e[1]-t[1],r=e[2]-t[2];return Math.sqrt(n*n+i*i+r*r)},Le.dist=Le.distance,Le.squaredDistance=function(t,e){var n=e[0]-t[0],i=e[1]-t[1],r=e[2]-t[2];return n*n+i*i+r*r},Le.sqrDist=Le.squaredDistance,Le.length=function(t){var e=t[0],n=t[1],i=t[2];return Math.sqrt(e*e+n*n+i*i)},Le.len=Le.length,Le.squaredLength=function(t){var e=t[0],n=t[1],i=t[2];return e*e+n*n+i*i},Le.sqrLen=Le.squaredLength,Le.negate=function(t,e){return t[0]=-e[0],t[1]=-e[1],t[2]=-e[2],t},Le.inverse=function(t,e){return t[0]=1/e[0],t[1]=1/e[1],t[2]=1/e[2],t},Le.normalize=function(t,e){var n=e[0],i=e[1],r=e[2],o=n*n+i*i+r*r;return o>0&&(o=1/Math.sqrt(o),t[0]=e[0]*o,t[1]=e[1]*o,t[2]=e[2]*o),t},Le.dot=function(t,e){return t[0]*e[0]+t[1]*e[1]+t[2]*e[2]},Le.cross=function(t,e,n){var i=e[0],r=e[1],o=e[2],a=n[0],s=n[1],l=n[2];return t[0]=r*l-o*s,t[1]=o*a-i*l,t[2]=i*s-r*a,t},Le.lerp=function(t,e,n,i){var r=e[0],o=e[1],a=e[2];return t[0]=r+i*(n[0]-r),t[1]=o+i*(n[1]-o),t[2]=a+i*(n[2]-a),t},Le.random=function(t,e){e=e||1;var n=2*Xt()*Math.PI,i=2*Xt()-1,r=Math.sqrt(1-i*i)*e;return t[0]=Math.cos(n)*r,t[1]=Math.sin(n)*r,t[2]=i*e,t},Le.transformMat4=function(t,e,n){var i=e[0],r=e[1],o=e[2],a=n[3]*i+n[7]*r+n[11]*o+n[15];return a=a||1,t[0]=(n[0]*i+n[4]*r+n[8]*o+n[12])/a,t[1]=(n[1]*i+n[5]*r+n[9]*o+n[13])/a,t[2]=(n[2]*i+n[6]*r+n[10]*o+n[14])/a,t},Le.transformMat3=function(t,e,n){var i=e[0],r=e[1],o=e[2];return t[0]=i*n[0]+r*n[3]+o*n[6],t[1]=i*n[1]+r*n[4]+o*n[7],t[2]=i*n[2]+r*n[5]+o*n[8],t},Le.transformQuat=function(t,e,n){var i=e[0],r=e[1],o=e[2],a=n[0],s=n[1],l=n[2],h=n[3],c=h*i+s*o-l*r,u=h*r+l*i-a*o,d=h*o+a*r-s*i,p=-a*i-s*r-l*o;return t[0]=c*h+p*-a+u*-l-d*-s,t[1]=u*h+p*-s+d*-a-c*-l,t[2]=d*h+p*-l+c*-s-u*-a,t},Le.rotateX=function(t,e,n,i){var r=[],o=[];return r[0]=e[0]-n[0],r[1]=e[1]-n[1],r[2]=e[2]-n[2],o[0]=r[0],o[1]=r[1]*Math.cos(i)-r[2]*Math.sin(i),o[2]=r[1]*Math.sin(i)+r[2]*Math.cos(i),t[0]=o[0]+n[0],t[1]=o[1]+n[1],t[2]=o[2]+n[2],t},Le.rotateY=function(t,e,n,i){var r=[],o=[];return r[0]=e[0]-n[0],r[1]=e[1]-n[1],r[2]=e[2]-n[2],o[0]=r[2]*Math.sin(i)+r[0]*Math.cos(i),o[1]=r[1],o[2]=r[2]*Math.cos(i)-r[0]*Math.sin(i),t[0]=o[0]+n[0],t[1]=o[1]+n[1],t[2]=o[2]+n[2],t},Le.rotateZ=function(t,e,n,i){var r=[],o=[];return r[0]=e[0]-n[0],r[1]=e[1]-n[1],r[2]=e[2]-n[2],o[0]=r[0]*Math.cos(i)-r[1]*Math.sin(i),o[1]=r[0]*Math.sin(i)+r[1]*Math.cos(i),o[2]=r[2],t[0]=o[0]+n[0],t[1]=o[1]+n[1],t[2]=o[2]+n[2],t},Le.forEach=function(){var t=Le.create();return function(e,n,i,r,o,a){var s,l;for(n||(n=3),i||(i=0),l=r?Math.min(r*n+i,e.length):e.length,s=i;s<l;s+=n)t[0]=e[s],t[1]=e[s+1],t[2]=e[s+2],o(t,t,a),e[s]=t[0],e[s+1]=t[1],e[s+2]=t[2];return e}}(),Le.angle=function(t,e){var n=Le.fromValues(t[0],t[1],t[2]),i=Le.fromValues(e[0],e[1],e[2]);Le.normalize(n,n),Le.normalize(i,i);var r=Le.dot(n,i);return r>1?0:Math.acos(r)};const De=Le;Ce.import(Ie);var Pe=ke.create,Re={};function Oe(t){return t.material}function Ne(t,e,n){return e.uniforms[n].value}function Fe(t,e,n,i){return n!==i}function Be(t){return!0}function ze(){}var Ge={float:q,byte:G,ubyte:V,short:j,ushort:H};function Ve(t,e,n){this.availableAttributes=t,this.availableAttributeSymbols=e,this.indicesBuffer=n,this.vao=null}function je(t){var e,n;this.bind=function(t){e||((e=bt.createCanvas()).width=e.height=1,e.getContext("2d"));var i=t.gl,r=!n;r&&(n=i.createTexture()),i.bindTexture(i.TEXTURE_2D,n),r&&i.texImage2D(i.TEXTURE_2D,0,i.RGBA,i.RGBA,i.UNSIGNED_BYTE,e)},this.unbind=function(t){t.gl.bindTexture(t.gl.TEXTURE_2D,null)},this.isRenderable=function(){return!0}}var He=y.extend((function(){return{canvas:null,_width:100,_height:100,devicePixelRatio:"undefined"!=typeof window&&window.devicePixelRatio||1,clearColor:[0,0,0,0],clearBit:17664,alpha:!0,depth:!0,stencil:!1,antialias:!0,premultipliedAlpha:!0,preserveDrawingBuffer:!1,throwError:!0,gl:null,viewport:{},maxJointNumber:20,__currentFrameBuffer:null,_viewportStack:[],_clearStack:[],_sceneRendering:null}}),(function(){this.canvas||(this.canvas=bt.createCanvas());var t=this.canvas;try{var e={alpha:this.alpha,depth:this.depth,stencil:this.stencil,antialias:this.antialias,premultipliedAlpha:this.premultipliedAlpha,preserveDrawingBuffer:this.preserveDrawingBuffer};if(this.gl=t.getContext("webgl",e)||t.getContext("experimental-webgl",e),!this.gl)throw new Error;this._glinfo=new b(this.gl),this.gl.targetRenderer&&console.error("Already created a renderer"),this.gl.targetRenderer=this,this.resize()}catch(Jh){throw"Error creating WebGL Context "+Jh}this._programMgr=new le(this),this._placeholderTexture=new je(this)}),{resize:function(t,e){var n=this.canvas,i=this.devicePixelRatio;null!=t?(n.style&&(n.style.width=t+"px",n.style.height=e+"px"),n.width=t*i,n.height=e*i,this._width=t,this._height=e):(this._width=n.width/i,this._height=n.height/i),this.setViewport(0,0,this._width,this._height)},getWidth:function(){return this._width},getHeight:function(){return this._height},getViewportAspect:function(){var t=this.viewport;return t.width/t.height},setDevicePixelRatio:function(t){this.devicePixelRatio=t,this.resize(this._width,this._height)},getDevicePixelRatio:function(){return this.devicePixelRatio},getGLExtension:function(t){return this._glinfo.getExtension(t)},getGLParameter:function(t){return this._glinfo.getParameter(t)},setViewport:function(t,e,n,i,r){if("object"==typeof t){var o=t;t=o.x,e=o.y,n=o.width,i=o.height,r=o.devicePixelRatio}r=r||this.devicePixelRatio,this.gl.viewport(t*r,e*r,n*r,i*r),this.viewport={x:t,y:e,width:n,height:i,devicePixelRatio:r}},saveViewport:function(){this._viewportStack.push(this.viewport)},restoreViewport:function(){this._viewportStack.length>0&&this.setViewport(this._viewportStack.pop())},saveClear:function(){this._clearStack.push({clearBit:this.clearBit,clearColor:this.clearColor})},restoreClear:function(){if(this._clearStack.length>0){var t=this._clearStack.pop();this.clearColor=t.clearColor,this.clearBit=t.clearBit}},bindSceneRendering:function(t){this._sceneRendering=t},render:function(t,e,n,i){var r=this.gl,o=this.clearColor;if(this.clearBit){r.colorMask(!0,!0,!0,!0),r.depthMask(!0);var a=this.viewport,s=!1,l=a.devicePixelRatio;(a.width!==this._width||a.height!==this._height||l&&l!==this.devicePixelRatio||a.x||a.y)&&(s=!0,r.enable(r.SCISSOR_TEST),r.scissor(a.x*l,a.y*l,a.width*l,a.height*l)),r.clearColor(o[0],o[1],o[2],o[3]),r.clear(this.clearBit),s&&r.disable(r.SCISSOR_TEST)}if(n||t.update(!1),t.updateLights(),e=e||t.getMainCamera()){e.update();var h=t.updateRenderList(e,!0);this._sceneRendering=t;var c=h.opaque,u=h.transparent,d=t.material;t.trigger("beforerender",this,t,e,h),i?(this.renderPreZ(c,t,e),r.depthFunc(r.LEQUAL)):r.depthFunc(r.LESS);for(var p=Pe(),f=De.create(),g=0;g<u.length;g++){var m=u[g];ke.multiplyAffine(p,e.viewMatrix.array,m.worldTransform.array),De.transformMat4(f,m.position.array,p),m.__depth=f[2]}this.renderPass(c,e,{getMaterial:function(t){return d||t.material},sortCompare:this.opaqueSortCompare}),this.renderPass(u,e,{getMaterial:function(t){return d||t.material},sortCompare:this.transparentSortCompare}),t.trigger("afterrender",this,t,e,h),this._sceneRendering=null}else console.error("Can't find camera in the scene.")},getProgram:function(t,e,n){return e=e||t.material,this._programMgr.getProgram(t,e,n)},validateProgram:function(t){if(t.__error){var e=t.__error;if(Re[t.__uid__])return;if(Re[t.__uid__]=!0,this.throwError)throw new Error(e);this.trigger("error",e)}},updatePrograms:function(t,e,n){var i=n&&n.getMaterial||Oe;e=e||null;for(var r=0;r<t.length;r++){var o=t[r],a=i.call(this,o);if(r>0){var s=t[r-1],l=s.joints?s.joints.length:0;if((o.joints?o.joints.length:0)===l&&o.material===s.material&&o.lightGroup===s.lightGroup){o.__program=s.__program;continue}}var h=this._programMgr.getProgram(o,a,e);this.validateProgram(h),o.__program=h}},renderPass:function(t,e,n){this.trigger("beforerenderpass",this,t,e,n),(n=n||{}).getMaterial=n.getMaterial||Oe,n.getUniform=n.getUniform||Ne,n.isMaterialChanged=n.isMaterialChanged||Fe,n.beforeRender=n.beforeRender||ze,n.afterRender=n.afterRender||ze;var i=n.ifRender||Be;this.updatePrograms(t,this._sceneRendering,n),n.sortCompare&&t.sort(n.sortCompare);var r=this.viewport,o=r.devicePixelRatio,a=[r.x*o,r.y*o,r.width*o,r.height*o],s=this.devicePixelRatio,l=this.__currentFrameBuffer?[this.__currentFrameBuffer.getTextureWidth(),this.__currentFrameBuffer.getTextureHeight()]:[this._width*s,this._height*s],h=[a[2],a[3]],c=Date.now();e?(ke.copy(We.VIEW,e.viewMatrix.array),ke.copy(We.PROJECTION,e.projectionMatrix.array),ke.copy(We.VIEWINVERSE,e.worldTransform.array)):(ke.identity(We.VIEW),ke.identity(We.PROJECTION),ke.identity(We.VIEWINVERSE)),ke.multiply(We.VIEWPROJECTION,We.PROJECTION,We.VIEW),ke.invert(We.PROJECTIONINVERSE,We.PROJECTION),ke.invert(We.VIEWPROJECTIONINVERSE,We.VIEWPROJECTION);for(var u,d,p,f,g,m,v,y,_,x,b,w,S=this.gl,T=this._sceneRendering,M=null,A=0;A<t.length;A++){var C,I=t[A],E=null!=I.worldTransform;if(i(I)){E&&(C=I.isSkinnedMesh&&I.isSkinnedMesh()?I.offsetMatrix?I.offsetMatrix.array:We.IDENTITY:I.worldTransform.array);var k=I.geometry,L=n.getMaterial.call(this,I),D=I.__program,P=L.shader,R=k.__uid__+"-"+D.__uid__,O=R!==x;x=R,E&&(ke.copy(We.WORLD,C),ke.multiply(We.WORLDVIEWPROJECTION,We.VIEWPROJECTION,C),ke.multiplyAffine(We.WORLDVIEW,We.VIEW,C),(P.matrixSemantics.WORLDINVERSE||P.matrixSemantics.WORLDINVERSETRANSPOSE)&&ke.invert(We.WORLDINVERSE,C),(P.matrixSemantics.WORLDVIEWINVERSE||P.matrixSemantics.WORLDVIEWINVERSETRANSPOSE)&&ke.invert(We.WORLDVIEWINVERSE,We.WORLDVIEW),(P.matrixSemantics.WORLDVIEWPROJECTIONINVERSE||P.matrixSemantics.WORLDVIEWPROJECTIONINVERSETRANSPOSE)&&ke.invert(We.WORLDVIEWPROJECTIONINVERSE,We.WORLDVIEWPROJECTION)),I.beforeRender&&I.beforeRender(this),n.beforeRender.call(this,I,L,u);var N=D!==d;N?(D.bind(this),D.setUniformOfSemantic(S,"VIEWPORT",a),D.setUniformOfSemantic(S,"WINDOW_SIZE",l),e&&(D.setUniformOfSemantic(S,"NEAR",e.near),D.setUniformOfSemantic(S,"FAR",e.far)),D.setUniformOfSemantic(S,"DEVICEPIXELRATIO",o),D.setUniformOfSemantic(S,"TIME",c),D.setUniformOfSemantic(S,"VIEWPORT_SIZE",h),T&&T.setLightUniforms(D,I.lightGroup,this)):D=d,(N||n.isMaterialChanged(I,p,L,u))&&(L.depthTest!==f&&(L.depthTest?S.enable(S.DEPTH_TEST):S.disable(S.DEPTH_TEST),f=L.depthTest),L.depthMask!==g&&(S.depthMask(L.depthMask),g=L.depthMask),L.transparent!==_&&(L.transparent?S.enable(S.BLEND):S.disable(S.BLEND),_=L.transparent),L.transparent&&(L.blend?L.blend(S):(S.blendEquationSeparate(S.FUNC_ADD,S.FUNC_ADD),S.blendFuncSeparate(S.SRC_ALPHA,S.ONE_MINUS_SRC_ALPHA,S.ONE,S.ONE_MINUS_SRC_ALPHA))),w=this._bindMaterial(I,L,D,p||null,u||null,d||null,n.getUniform),u=L);var F=P.matrixSemanticKeys;if(E)for(var B=0;B<F.length;B++){var z=F[B],G=P.matrixSemantics[z],V=We[z];if(G.isTranspose){var j=We[G.semanticNoTranspose];ke.transpose(V,j)}D.setUniform(S,G.type,G.symbol,V)}I.cullFace!==v&&(v=I.cullFace,S.cullFace(v)),I.frontFace!==y&&(y=I.frontFace,S.frontFace(y)),I.culling!==m&&((m=I.culling)?S.enable(S.CULL_FACE):S.disable(S.CULL_FACE)),this._updateSkeleton(I,D,w),O&&(b=this._bindVAO(M,P,k,D)),this._renderObject(I,b,D),n.afterRender(this,I),I.afterRender&&I.afterRender(this),d=D,p=I}}this.trigger("afterrenderpass",this,t,e,n)},getMaxJointNumber:function(){return this.maxJointNumber},_updateSkeleton:function(t,e,n){var i=this.gl,r=t.skeleton;if(r)if(r.update(),t.joints.length>this.getMaxJointNumber()){var o=r.getSubSkinMatricesTexture(t.__uid__,t.joints);e.useTextureSlot(this,o,n),e.setUniform(i,"1i","skinMatricesTexture",n),e.setUniform(i,"1f","skinMatricesTextureSize",o.width)}else{var a=r.getSubSkinMatrices(t.__uid__,t.joints);e.setUniformOfSemantic(i,"SKIN_MATRIX",a)}},_renderObject:function(t,e,n){var i=this.gl,r=t.geometry,o=t.mode;null==o&&(o=4);var a=null,s=t.isInstancedMesh&&t.isInstancedMesh();if(!s||(a=this.getGLExtension("ANGLE_instanced_arrays"))){var l;if(s&&(l=this._bindInstancedAttributes(t,n,a)),e.indicesBuffer){var h=this.getGLExtension("OES_element_index_uint")&&r.indices instanceof Uint32Array?i.UNSIGNED_INT:i.UNSIGNED_SHORT;s?a.drawElementsInstancedANGLE(o,e.indicesBuffer.count,h,0,t.getInstanceCount()):i.drawElements(o,e.indicesBuffer.count,h,0)}else s?a.drawArraysInstancedANGLE(o,0,r.vertexCount,t.getInstanceCount()):i.drawArrays(o,0,r.vertexCount);if(s)for(var c=0;c<l.length;c++)i.disableVertexAttribArray(l[c])}else console.warn("Device not support ANGLE_instanced_arrays extension")},_bindInstancedAttributes:function(t,e,n){for(var i=this.gl,r=t.getInstancedAttributesBuffers(this),o=[],a=0;a<r.length;a++){var s=r[a],l=e.getAttribLocation(i,s.symbol);if(!(l<0)){var h=Ge[s.type]||i.FLOAT;i.enableVertexAttribArray(l),i.bindBuffer(i.ARRAY_BUFFER,s.buffer),i.vertexAttribPointer(l,s.size,h,!1,0,0),n.vertexAttribDivisorANGLE(l,s.divisor),o.push(l)}}return o},_bindMaterial:function(t,e,n,i,r,o,a){for(var s=this.gl,l=o===n,h=n.currentTextureSlot(),c=e.getEnabledUniforms(),u=e.getTextureUniforms(),d=this._placeholderTexture,p=0;p<u.length;p++){var f=a(t,e,v=u[p]);if("t"===(m=e.uniforms[v].type)&&f)f.__slot=-1;else if("tv"===m)for(var g=0;g<f.length;g++)f[g]&&(f[g].__slot=-1)}d.__slot=-1;for(p=0;p<c.length;p++){var m,v=c[p],y=e.uniforms[v],_=(f=a(t,e,v),"t"===(m=y.type));if(_&&(f&&f.isRenderable()||(f=d)),r&&l){var x=a(i,r,v);if(_&&(x&&x.isRenderable()||(x=d)),x===f){if(_)n.takeCurrentTextureSlot(this,null);else if("tv"===m&&f)for(g=0;g<f.length;g++)n.takeCurrentTextureSlot(this,null);continue}}if(null!=f)if(_)if(f.__slot<0){var b=n.currentTextureSlot();n.setUniform(s,"1i",v,b)&&(n.takeCurrentTextureSlot(this,f),f.__slot=b)}else n.setUniform(s,"1i",v,f.__slot);else if(Array.isArray(f)){if(0===f.length)continue;if("tv"===m){if(!n.hasUniform(v))continue;var w=[];for(g=0;g<f.length;g++){var S=f[g];if(S.__slot<0){b=n.currentTextureSlot();w.push(b),n.takeCurrentTextureSlot(this,S),S.__slot=b}else w.push(S.__slot)}n.setUniform(s,"1iv",v,w)}else n.setUniform(s,y.type,v,f)}else n.setUniform(s,y.type,v,f)}var T=n.currentTextureSlot();return n.resetTextureSlot(h),T},_bindVAO:function(t,e,n,i){var r=!n.dynamic,o=this.gl,a=this.__uid__+"-"+i.__uid__,s=n.__vaoCache[a];if(!s){var l=n.getBufferChunks(this);if(!l||!l.length)return;for(var h=l[0],c=h.attributeBuffers,u=h.indicesBuffer,d=[],p=[],f=0;f<c.length;f++){var g,m=(w=c[f]).name,v=w.semantic;if(v){var y=e.attributeSemantics[v];g=y&&y.symbol}else g=m;g&&i.attributes[g]&&(d.push(w),p.push(g))}s=new Ve(d,p,u),r&&(n.__vaoCache[a]=s)}var _=!0;t&&r&&(null==s.vao?s.vao=t.createVertexArrayOES():_=!1,t.bindVertexArrayOES(s.vao));d=s.availableAttributes,u=s.indicesBuffer;if(_){var x=i.enableAttributes(this,s.availableAttributeSymbols,t&&r&&s);for(f=0;f<d.length;f++){var b=x[f];if(-1!==b){var w,S=(w=d[f]).buffer,T=w.size,M=Ge[w.type]||o.FLOAT;o.bindBuffer(o.ARRAY_BUFFER,S),o.vertexAttribPointer(b,T,M,!1,0,0)}}n.isUseIndices()&&o.bindBuffer(o.ELEMENT_ARRAY_BUFFER,u.buffer)}return s},renderPreZ:function(t,e,n){var i=this.gl,r=this._prezMaterial||new Ht({shader:new Ce(Ce.source("clay.prez.vertex"),Ce.source("clay.prez.fragment"))});this._prezMaterial=r,i.colorMask(!1,!1,!1,!1),i.depthMask(!0),this.renderPass(t,n,{ifRender:function(t){return!t.ignorePreZ},isMaterialChanged:function(t,e){var n=t.material,i=e.material;return n.get("diffuseMap")!==i.get("diffuseMap")||(n.get("alphaCutoff")||0)!==(i.get("alphaCutoff")||0)},getUniform:function(t,e,n){return"alphaMap"===n?t.material.get("diffuseMap"):"alphaCutoff"===n?t.material.isDefined("fragment","ALPHA_TEST")&&t.material.get("diffuseMap")&&t.material.get("alphaCutoff")||0:"uvRepeat"===n?t.material.get("uvRepeat"):"uvOffset"===n?t.material.get("uvOffset"):e.get(n)},getMaterial:function(){return r},sort:this.opaqueSortCompare}),i.colorMask(!0,!0,!0,!0),i.depthMask(!0)},disposeScene:function(t){this.disposeNode(t,!0,!0),t.dispose()},disposeNode:function(t,e,n){t.getParent()&&t.getParent().remove(t);var i={};t.traverse((function(t){var r=t.material;if(t.geometry&&e&&t.geometry.dispose(this),n&&r&&!i[r.__uid__]){for(var o=r.getTextureUniforms(),a=0;a<o.length;a++){var s=o[a],l=r.uniforms[s].value,h=r.uniforms[s].type;if(l)if("t"===h)l.dispose&&l.dispose(this);else if("tv"===h)for(var c=0;c<l.length;c++)l[c]&&l[c].dispose&&l[c].dispose(this)}i[r.__uid__]=!0}t.dispose&&t.dispose(this)}),this)},disposeGeometry:function(t){t.dispose(this)},disposeTexture:function(t){t.dispose(this)},disposeFrameBuffer:function(t){t.dispose(this)},dispose:function(){},screenToNDC:function(t,e,n){n||(n=new Jt),e=this._height-e;var i=this.viewport,r=n.array;return r[0]=(t-i.x)/i.width,r[0]=2*r[0]-1,r[1]=(e-i.y)/i.height,r[1]=2*r[1]-1,n}});He.opaqueSortCompare=He.prototype.opaqueSortCompare=function(t,e){return t.renderOrder===e.renderOrder?t.__program===e.__program?t.material===e.material?t.geometry.__uid__-e.geometry.__uid__:t.material.__uid__-e.material.__uid__:t.__program&&e.__program?t.__program.__uid__-e.__program.__uid__:0:t.renderOrder-e.renderOrder},He.transparentSortCompare=He.prototype.transparentSortCompare=function(t,e){return t.renderOrder===e.renderOrder?t.__depth===e.__depth?t.__program===e.__program?t.material===e.material?t.geometry.__uid__-e.geometry.__uid__:t.material.__uid__-e.material.__uid__:t.__program&&e.__program?t.__program.__uid__-e.__program.__uid__:0:t.__depth-e.__depth:t.renderOrder-e.renderOrder};var We={IDENTITY:Pe(),WORLD:Pe(),VIEW:Pe(),PROJECTION:Pe(),WORLDVIEW:Pe(),VIEWPROJECTION:Pe(),WORLDVIEWPROJECTION:Pe(),WORLDINVERSE:Pe(),VIEWINVERSE:Pe(),PROJECTIONINVERSE:Pe(),WORLDVIEWINVERSE:Pe(),VIEWPROJECTIONINVERSE:Pe(),WORLDVIEWPROJECTIONINVERSE:Pe(),WORLDTRANSPOSE:Pe(),VIEWTRANSPOSE:Pe(),PROJECTIONTRANSPOSE:Pe(),WORLDVIEWTRANSPOSE:Pe(),VIEWPROJECTIONTRANSPOSE:Pe(),WORLDVIEWPROJECTIONTRANSPOSE:Pe(),WORLDINVERSETRANSPOSE:Pe(),VIEWINVERSETRANSPOSE:Pe(),PROJECTIONINVERSETRANSPOSE:Pe(),WORLDVIEWINVERSETRANSPOSE:Pe(),VIEWPROJECTIONINVERSETRANSPOSE:Pe(),WORLDVIEWPROJECTIONINVERSETRANSPOSE:Pe()};He.COLOR_BUFFER_BIT=T,He.DEPTH_BUFFER_BIT=w,He.STENCIL_BUFFER_BIT=S;const Ue=He;var qe=function(t,e,n){t=t||0,e=e||0,n=n||0,this.array=De.fromValues(t,e,n),this._dirty=!0};qe.prototype={constructor:qe,add:function(t){return De.add(this.array,this.array,t.array),this._dirty=!0,this},set:function(t,e,n){return this.array[0]=t,this.array[1]=e,this.array[2]=n,this._dirty=!0,this},setArray:function(t){return this.array[0]=t[0],this.array[1]=t[1],this.array[2]=t[2],this._dirty=!0,this},clone:function(){return new qe(this.x,this.y,this.z)},copy:function(t){return De.copy(this.array,t.array),this._dirty=!0,this},cross:function(t,e){return De.cross(this.array,t.array,e.array),this._dirty=!0,this},dist:function(t){return De.dist(this.array,t.array)},distance:function(t){return De.distance(this.array,t.array)},div:function(t){return De.div(this.array,this.array,t.array),this._dirty=!0,this},divide:function(t){return De.divide(this.array,this.array,t.array),this._dirty=!0,this},dot:function(t){return De.dot(this.array,t.array)},len:function(){return De.len(this.array)},length:function(){return De.length(this.array)},lerp:function(t,e,n){return De.lerp(this.array,t.array,e.array,n),this._dirty=!0,this},min:function(t){return De.min(this.array,this.array,t.array),this._dirty=!0,this},max:function(t){return De.max(this.array,this.array,t.array),this._dirty=!0,this},mul:function(t){return De.mul(this.array,this.array,t.array),this._dirty=!0,this},multiply:function(t){return De.multiply(this.array,this.array,t.array),this._dirty=!0,this},negate:function(){return De.negate(this.array,this.array),this._dirty=!0,this},normalize:function(){return De.normalize(this.array,this.array),this._dirty=!0,this},random:function(t){return De.random(this.array,t),this._dirty=!0,this},scale:function(t){return De.scale(this.array,this.array,t),this._dirty=!0,this},scaleAndAdd:function(t,e){return De.scaleAndAdd(this.array,this.array,t.array,e),this._dirty=!0,this},sqrDist:function(t){return De.sqrDist(this.array,t.array)},squaredDistance:function(t){return De.squaredDistance(this.array,t.array)},sqrLen:function(){return De.sqrLen(this.array)},squaredLength:function(){return De.squaredLength(this.array)},sub:function(t){return De.sub(this.array,this.array,t.array),this._dirty=!0,this},subtract:function(t){return De.subtract(this.array,this.array,t.array),this._dirty=!0,this},transformMat3:function(t){return De.transformMat3(this.array,this.array,t.array),this._dirty=!0,this},transformMat4:function(t){return De.transformMat4(this.array,this.array,t.array),this._dirty=!0,this},transformQuat:function(t){return De.transformQuat(this.array,this.array,t.array),this._dirty=!0,this},applyProjection:function(t){var e=this.array;if(0===(t=t.array)[15]){var n=-1/e[2];e[0]=t[0]*e[0]*n,e[1]=t[5]*e[1]*n,e[2]=(t[10]*e[2]+t[14])*n}else e[0]=t[0]*e[0]+t[12],e[1]=t[5]*e[1]+t[13],e[2]=t[10]*e[2]+t[14];return this._dirty=!0,this},eulerFromQuat:function(t,e){qe.eulerFromQuat(this,t,e)},eulerFromMat3:function(t,e){qe.eulerFromMat3(this,t,e)},toString:function(){return"["+Array.prototype.join.call(this.array,",")+"]"},toArray:function(){return Array.prototype.slice.call(this.array)}};var Xe=Object.defineProperty;if(Xe){var Ye=qe.prototype;Xe(Ye,"x",{get:function(){return this.array[0]},set:function(t){this.array[0]=t,this._dirty=!0}}),Xe(Ye,"y",{get:function(){return this.array[1]},set:function(t){this.array[1]=t,this._dirty=!0}}),Xe(Ye,"z",{get:function(){return this.array[2]},set:function(t){this.array[2]=t,this._dirty=!0}})}function Ze(t,e,n){return t<e?e:t>n?n:t}qe.add=function(t,e,n){return De.add(t.array,e.array,n.array),t._dirty=!0,t},qe.set=function(t,e,n,i){De.set(t.array,e,n,i),t._dirty=!0},qe.copy=function(t,e){return De.copy(t.array,e.array),t._dirty=!0,t},qe.cross=function(t,e,n){return De.cross(t.array,e.array,n.array),t._dirty=!0,t},qe.distance=qe.dist=function(t,e){return De.distance(t.array,e.array)},qe.divide=qe.div=function(t,e,n){return De.divide(t.array,e.array,n.array),t._dirty=!0,t},qe.dot=function(t,e){return De.dot(t.array,e.array)},qe.len=function(t){return De.length(t.array)},qe.lerp=function(t,e,n,i){return De.lerp(t.array,e.array,n.array,i),t._dirty=!0,t},qe.min=function(t,e,n){return De.min(t.array,e.array,n.array),t._dirty=!0,t},qe.max=function(t,e,n){return De.max(t.array,e.array,n.array),t._dirty=!0,t},qe.multiply=qe.mul=function(t,e,n){return De.multiply(t.array,e.array,n.array),t._dirty=!0,t},qe.negate=function(t,e){return De.negate(t.array,e.array),t._dirty=!0,t},qe.normalize=function(t,e){return De.normalize(t.array,e.array),t._dirty=!0,t},qe.random=function(t,e){return De.random(t.array,e),t._dirty=!0,t},qe.scale=function(t,e,n){return De.scale(t.array,e.array,n),t._dirty=!0,t},qe.scaleAndAdd=function(t,e,n,i){return De.scaleAndAdd(t.array,e.array,n.array,i),t._dirty=!0,t},qe.squaredDistance=qe.sqrDist=function(t,e){return De.sqrDist(t.array,e.array)},qe.squaredLength=qe.sqrLen=function(t){return De.sqrLen(t.array)},qe.subtract=qe.sub=function(t,e,n){return De.subtract(t.array,e.array,n.array),t._dirty=!0,t},qe.transformMat3=function(t,e,n){return De.transformMat3(t.array,e.array,n.array),t._dirty=!0,t},qe.transformMat4=function(t,e,n){return De.transformMat4(t.array,e.array,n.array),t._dirty=!0,t},qe.transformQuat=function(t,e,n){return De.transformQuat(t.array,e.array,n.array),t._dirty=!0,t};var $e=Math.atan2,Ke=Math.asin,Je=Math.abs;qe.eulerFromQuat=function(t,e,n){t._dirty=!0,e=e.array;var i=t.array,r=e[0],o=e[1],a=e[2],s=e[3],l=r*r,h=o*o,c=a*a,u=s*s;switch(n=(n||"XYZ").toUpperCase()){case"XYZ":i[0]=$e(2*(r*s-o*a),u-l-h+c),i[1]=Ke(Ze(2*(r*a+o*s),-1,1)),i[2]=$e(2*(a*s-r*o),u+l-h-c);break;case"YXZ":i[0]=Ke(Ze(2*(r*s-o*a),-1,1)),i[1]=$e(2*(r*a+o*s),u-l-h+c),i[2]=$e(2*(r*o+a*s),u-l+h-c);break;case"ZXY":i[0]=Ke(Ze(2*(r*s+o*a),-1,1)),i[1]=$e(2*(o*s-a*r),u-l-h+c),i[2]=$e(2*(a*s-r*o),u-l+h-c);break;case"ZYX":i[0]=$e(2*(r*s+a*o),u-l-h+c),i[1]=Ke(Ze(2*(o*s-r*a),-1,1)),i[2]=$e(2*(r*o+a*s),u+l-h-c);break;case"YZX":i[0]=$e(2*(r*s-a*o),u-l+h-c),i[1]=$e(2*(o*s-r*a),u+l-h-c),i[2]=Ke(Ze(2*(r*o+a*s),-1,1));break;case"XZY":i[0]=$e(2*(r*s+o*a),u-l+h-c),i[1]=$e(2*(r*a+o*s),u+l-h-c),i[2]=Ke(Ze(2*(a*s-r*o),-1,1));break;default:console.warn("Unkown order: "+n)}return t},qe.eulerFromMat3=function(t,e,n){var i=e.array,r=i[0],o=i[3],a=i[6],s=i[1],l=i[4],h=i[7],c=i[2],u=i[5],d=i[8],p=t.array;switch(n=(n||"XYZ").toUpperCase()){case"XYZ":p[1]=Ke(Ze(a,-1,1)),Je(a)<.99999?(p[0]=$e(-h,d),p[2]=$e(-o,r)):(p[0]=$e(u,l),p[2]=0);break;case"YXZ":p[0]=Ke(-Ze(h,-1,1)),Je(h)<.99999?(p[1]=$e(a,d),p[2]=$e(s,l)):(p[1]=$e(-c,r),p[2]=0);break;case"ZXY":p[0]=Ke(Ze(u,-1,1)),Je(u)<.99999?(p[1]=$e(-c,d),p[2]=$e(-o,l)):(p[1]=0,p[2]=$e(s,r));break;case"ZYX":p[1]=Ke(-Ze(c,-1,1)),Je(c)<.99999?(p[0]=$e(u,d),p[2]=$e(s,r)):(p[0]=0,p[2]=$e(-o,l));break;case"YZX":p[2]=Ke(Ze(s,-1,1)),Je(s)<.99999?(p[0]=$e(-h,l),p[1]=$e(-c,r)):(p[0]=0,p[1]=$e(a,d));break;case"XZY":p[2]=Ke(-Ze(o,-1,1)),Je(o)<.99999?(p[0]=$e(u,l),p[1]=$e(a,r)):(p[0]=$e(-h,d),p[1]=0);break;default:console.warn("Unkown order: "+n)}return t._dirty=!0,t},Object.defineProperties(qe,{POSITIVE_X:{get:function(){return new qe(1,0,0)}},NEGATIVE_X:{get:function(){return new qe(-1,0,0)}},POSITIVE_Y:{get:function(){return new qe(0,1,0)}},NEGATIVE_Y:{get:function(){return new qe(0,-1,0)}},POSITIVE_Z:{get:function(){return new qe(0,0,1)}},NEGATIVE_Z:{get:function(){return new qe(0,0,-1)}},UP:{get:function(){return new qe(0,1,0)}},ZERO:{get:function(){return new qe}}});const Qe=qe;var tn,en,nn,rn,on,an=1e-5,sn=function(t,e){this.origin=t||new Qe,this.direction=e||new Qe};sn.prototype={constructor:sn,intersectPlane:function(t,e){var n=t.normal.array,i=t.distance,r=this.origin.array,o=this.direction.array,a=De.dot(n,o);if(0===a)return null;e||(e=new Qe);var s=(De.dot(n,r)-i)/a;return De.scaleAndAdd(e.array,r,o,-s),e._dirty=!0,e},mirrorAgainstPlane:function(t){var e=De.dot(t.normal.array,this.direction.array);De.scaleAndAdd(this.direction.array,this.direction.array,t.normal.array,2*-e),this.direction._dirty=!0},distanceToPoint:(on=De.create(),function(t){De.sub(on,t,this.origin.array);var e=De.dot(on,this.direction.array);if(e<0)return De.distance(this.origin.array,t);var n=De.lenSquared(on);return Math.sqrt(n-e*e)}),intersectSphere:function(){var t=De.create();return function(e,n,i){var r=this.origin.array,o=this.direction.array;e=e.array,De.sub(t,e,r);var a=De.dot(t,o),s=De.squaredLength(t)-a*a,l=n*n;if(!(s>l)){var h=Math.sqrt(l-s),c=a-h,u=a+h;return i||(i=new Qe),c<0?u<0?null:(De.scaleAndAdd(i.array,r,o,u),i):(De.scaleAndAdd(i.array,r,o,c),i)}}}(),intersectBoundingBox:function(t,e){var n,i,r,o,a,s,l=this.direction.array,h=this.origin.array,c=t.min.array,u=t.max.array,d=1/l[0],p=1/l[1],f=1/l[2];if(d>=0?(n=(c[0]-h[0])*d,i=(u[0]-h[0])*d):(i=(c[0]-h[0])*d,n=(u[0]-h[0])*d),p>=0?(r=(c[1]-h[1])*p,o=(u[1]-h[1])*p):(o=(c[1]-h[1])*p,r=(u[1]-h[1])*p),n>o||r>i)return null;if((r>n||n!=n)&&(n=r),(o<i||i!=i)&&(i=o),f>=0?(a=(c[2]-h[2])*f,s=(u[2]-h[2])*f):(s=(c[2]-h[2])*f,a=(u[2]-h[2])*f),n>s||a>i)return null;if((a>n||n!=n)&&(n=a),(s<i||i!=i)&&(i=s),i<0)return null;var g=n>=0?n:i;return e||(e=new Qe),De.scaleAndAdd(e.array,h,l,g),e},intersectTriangle:(tn=De.create(),en=De.create(),nn=De.create(),rn=De.create(),function(t,e,n,i,r,o){var a=this.direction.array,s=this.origin.array;t=t.array,e=e.array,n=n.array,De.sub(tn,e,t),De.sub(en,n,t),De.cross(rn,en,a);var l=De.dot(tn,rn);if(i){if(l>-1e-5)return null}else if(l>-1e-5&&l<an)return null;De.sub(nn,s,t);var h=De.dot(rn,nn)/l;if(h<0||h>1)return null;De.cross(rn,tn,nn);var c=De.dot(a,rn)/l;if(c<0||c>1||h+c>1)return null;De.cross(rn,tn,en);var u=-De.dot(nn,rn)/l;return u<0?null:(r||(r=new Qe),o&&Qe.set(o,1-h-c,h,c),De.scaleAndAdd(r.array,s,a,u),r)}),applyTransform:function(t){Qe.add(this.direction,this.direction,this.origin),Qe.transformMat4(this.origin,this.origin,t),Qe.transformMat4(this.direction,this.direction,t),Qe.sub(this.direction,this.direction,this.origin),Qe.normalize(this.direction,this.direction)},copy:function(t){Qe.copy(this.origin,t.origin),Qe.copy(this.direction,t.direction)},clone:function(){var t=new sn;return t.copy(this),t}};const ln=sn;var hn={create:function(){var t=new qt(4);return t[0]=0,t[1]=0,t[2]=0,t[3]=0,t},clone:function(t){var e=new qt(4);return e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[3],e},fromValues:function(t,e,n,i){var r=new qt(4);return r[0]=t,r[1]=e,r[2]=n,r[3]=i,r},copy:function(t,e){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3],t},set:function(t,e,n,i,r){return t[0]=e,t[1]=n,t[2]=i,t[3]=r,t},add:function(t,e,n){return t[0]=e[0]+n[0],t[1]=e[1]+n[1],t[2]=e[2]+n[2],t[3]=e[3]+n[3],t},subtract:function(t,e,n){return t[0]=e[0]-n[0],t[1]=e[1]-n[1],t[2]=e[2]-n[2],t[3]=e[3]-n[3],t}};hn.sub=hn.subtract,hn.multiply=function(t,e,n){return t[0]=e[0]*n[0],t[1]=e[1]*n[1],t[2]=e[2]*n[2],t[3]=e[3]*n[3],t},hn.mul=hn.multiply,hn.divide=function(t,e,n){return t[0]=e[0]/n[0],t[1]=e[1]/n[1],t[2]=e[2]/n[2],t[3]=e[3]/n[3],t},hn.div=hn.divide,hn.min=function(t,e,n){return t[0]=Math.min(e[0],n[0]),t[1]=Math.min(e[1],n[1]),t[2]=Math.min(e[2],n[2]),t[3]=Math.min(e[3],n[3]),t},hn.max=function(t,e,n){return t[0]=Math.max(e[0],n[0]),t[1]=Math.max(e[1],n[1]),t[2]=Math.max(e[2],n[2]),t[3]=Math.max(e[3],n[3]),t},hn.scale=function(t,e,n){return t[0]=e[0]*n,t[1]=e[1]*n,t[2]=e[2]*n,t[3]=e[3]*n,t},hn.scaleAndAdd=function(t,e,n,i){return t[0]=e[0]+n[0]*i,t[1]=e[1]+n[1]*i,t[2]=e[2]+n[2]*i,t[3]=e[3]+n[3]*i,t},hn.distance=function(t,e){var n=e[0]-t[0],i=e[1]-t[1],r=e[2]-t[2],o=e[3]-t[3];return Math.sqrt(n*n+i*i+r*r+o*o)},hn.dist=hn.distance,hn.squaredDistance=function(t,e){var n=e[0]-t[0],i=e[1]-t[1],r=e[2]-t[2],o=e[3]-t[3];return n*n+i*i+r*r+o*o},hn.sqrDist=hn.squaredDistance,hn.length=function(t){var e=t[0],n=t[1],i=t[2],r=t[3];return Math.sqrt(e*e+n*n+i*i+r*r)},hn.len=hn.length,hn.squaredLength=function(t){var e=t[0],n=t[1],i=t[2],r=t[3];return e*e+n*n+i*i+r*r},hn.sqrLen=hn.squaredLength,hn.negate=function(t,e){return t[0]=-e[0],t[1]=-e[1],t[2]=-e[2],t[3]=-e[3],t},hn.inverse=function(t,e){return t[0]=1/e[0],t[1]=1/e[1],t[2]=1/e[2],t[3]=1/e[3],t},hn.normalize=function(t,e){var n=e[0],i=e[1],r=e[2],o=e[3],a=n*n+i*i+r*r+o*o;return a>0&&(a=1/Math.sqrt(a),t[0]=e[0]*a,t[1]=e[1]*a,t[2]=e[2]*a,t[3]=e[3]*a),t},hn.dot=function(t,e){return t[0]*e[0]+t[1]*e[1]+t[2]*e[2]+t[3]*e[3]},hn.lerp=function(t,e,n,i){var r=e[0],o=e[1],a=e[2],s=e[3];return t[0]=r+i*(n[0]-r),t[1]=o+i*(n[1]-o),t[2]=a+i*(n[2]-a),t[3]=s+i*(n[3]-s),t},hn.random=function(t,e){return e=e||1,t[0]=Xt(),t[1]=Xt(),t[2]=Xt(),t[3]=Xt(),hn.normalize(t,t),hn.scale(t,t,e),t},hn.transformMat4=function(t,e,n){var i=e[0],r=e[1],o=e[2],a=e[3];return t[0]=n[0]*i+n[4]*r+n[8]*o+n[12]*a,t[1]=n[1]*i+n[5]*r+n[9]*o+n[13]*a,t[2]=n[2]*i+n[6]*r+n[10]*o+n[14]*a,t[3]=n[3]*i+n[7]*r+n[11]*o+n[15]*a,t},hn.transformQuat=function(t,e,n){var i=e[0],r=e[1],o=e[2],a=n[0],s=n[1],l=n[2],h=n[3],c=h*i+s*o-l*r,u=h*r+l*i-a*o,d=h*o+a*r-s*i,p=-a*i-s*r-l*o;return t[0]=c*h+p*-a+u*-l-d*-s,t[1]=u*h+p*-s+d*-a-c*-l,t[2]=d*h+p*-l+c*-s-u*-a,t},hn.forEach=function(){var t=hn.create();return function(e,n,i,r,o,a){var s,l;for(n||(n=4),i||(i=0),l=r?Math.min(r*n+i,e.length):e.length,s=i;s<l;s+=n)t[0]=e[s],t[1]=e[s+1],t[2]=e[s+2],t[3]=e[s+3],o(t,t,a),e[s]=t[0],e[s+1]=t[1],e[s+2]=t[2],e[s+3]=t[3];return e}}();const cn=hn;var un={create:function(){var t=new qt(9);return t[0]=1,t[1]=0,t[2]=0,t[3]=0,t[4]=1,t[5]=0,t[6]=0,t[7]=0,t[8]=1,t},fromMat4:function(t,e){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[4],t[4]=e[5],t[5]=e[6],t[6]=e[8],t[7]=e[9],t[8]=e[10],t},clone:function(t){var e=new qt(9);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[6]=t[6],e[7]=t[7],e[8]=t[8],e},copy:function(t,e){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3],t[4]=e[4],t[5]=e[5],t[6]=e[6],t[7]=e[7],t[8]=e[8],t},identity:function(t){return t[0]=1,t[1]=0,t[2]=0,t[3]=0,t[4]=1,t[5]=0,t[6]=0,t[7]=0,t[8]=1,t},transpose:function(t,e){if(t===e){var n=e[1],i=e[2],r=e[5];t[1]=e[3],t[2]=e[6],t[3]=n,t[5]=e[7],t[6]=i,t[7]=r}else t[0]=e[0],t[1]=e[3],t[2]=e[6],t[3]=e[1],t[4]=e[4],t[5]=e[7],t[6]=e[2],t[7]=e[5],t[8]=e[8];return t},invert:function(t,e){var n=e[0],i=e[1],r=e[2],o=e[3],a=e[4],s=e[5],l=e[6],h=e[7],c=e[8],u=c*a-s*h,d=-c*o+s*l,p=h*o-a*l,f=n*u+i*d+r*p;return f?(f=1/f,t[0]=u*f,t[1]=(-c*i+r*h)*f,t[2]=(s*i-r*a)*f,t[3]=d*f,t[4]=(c*n-r*l)*f,t[5]=(-s*n+r*o)*f,t[6]=p*f,t[7]=(-h*n+i*l)*f,t[8]=(a*n-i*o)*f,t):null},adjoint:function(t,e){var n=e[0],i=e[1],r=e[2],o=e[3],a=e[4],s=e[5],l=e[6],h=e[7],c=e[8];return t[0]=a*c-s*h,t[1]=r*h-i*c,t[2]=i*s-r*a,t[3]=s*l-o*c,t[4]=n*c-r*l,t[5]=r*o-n*s,t[6]=o*h-a*l,t[7]=i*l-n*h,t[8]=n*a-i*o,t},determinant:function(t){var e=t[0],n=t[1],i=t[2],r=t[3],o=t[4],a=t[5],s=t[6],l=t[7],h=t[8];return e*(h*o-a*l)+n*(-h*r+a*s)+i*(l*r-o*s)},multiply:function(t,e,n){var i=e[0],r=e[1],o=e[2],a=e[3],s=e[4],l=e[5],h=e[6],c=e[7],u=e[8],d=n[0],p=n[1],f=n[2],g=n[3],m=n[4],v=n[5],y=n[6],_=n[7],x=n[8];return t[0]=d*i+p*a+f*h,t[1]=d*r+p*s+f*c,t[2]=d*o+p*l+f*u,t[3]=g*i+m*a+v*h,t[4]=g*r+m*s+v*c,t[5]=g*o+m*l+v*u,t[6]=y*i+_*a+x*h,t[7]=y*r+_*s+x*c,t[8]=y*o+_*l+x*u,t}};un.mul=un.multiply,un.translate=function(t,e,n){var i=e[0],r=e[1],o=e[2],a=e[3],s=e[4],l=e[5],h=e[6],c=e[7],u=e[8],d=n[0],p=n[1];return t[0]=i,t[1]=r,t[2]=o,t[3]=a,t[4]=s,t[5]=l,t[6]=d*i+p*a+h,t[7]=d*r+p*s+c,t[8]=d*o+p*l+u,t},un.rotate=function(t,e,n){var i=e[0],r=e[1],o=e[2],a=e[3],s=e[4],l=e[5],h=e[6],c=e[7],u=e[8],d=Math.sin(n),p=Math.cos(n);return t[0]=p*i+d*a,t[1]=p*r+d*s,t[2]=p*o+d*l,t[3]=p*a-d*i,t[4]=p*s-d*r,t[5]=p*l-d*o,t[6]=h,t[7]=c,t[8]=u,t},un.scale=function(t,e,n){var i=n[0],r=n[1];return t[0]=i*e[0],t[1]=i*e[1],t[2]=i*e[2],t[3]=r*e[3],t[4]=r*e[4],t[5]=r*e[5],t[6]=e[6],t[7]=e[7],t[8]=e[8],t},un.fromMat2d=function(t,e){return t[0]=e[0],t[1]=e[1],t[2]=0,t[3]=e[2],t[4]=e[3],t[5]=0,t[6]=e[4],t[7]=e[5],t[8]=1,t},un.fromQuat=function(t,e){var n=e[0],i=e[1],r=e[2],o=e[3],a=n+n,s=i+i,l=r+r,h=n*a,c=i*a,u=i*s,d=r*a,p=r*s,f=r*l,g=o*a,m=o*s,v=o*l;return t[0]=1-u-f,t[3]=c-v,t[6]=d+m,t[1]=c+v,t[4]=1-h-f,t[7]=p-g,t[2]=d-m,t[5]=p+g,t[8]=1-h-u,t},un.normalFromMat4=function(t,e){var n=e[0],i=e[1],r=e[2],o=e[3],a=e[4],s=e[5],l=e[6],h=e[7],c=e[8],u=e[9],d=e[10],p=e[11],f=e[12],g=e[13],m=e[14],v=e[15],y=n*s-i*a,_=n*l-r*a,x=n*h-o*a,b=i*l-r*s,w=i*h-o*s,S=r*h-o*l,T=c*g-u*f,M=c*m-d*f,A=c*v-p*f,C=u*m-d*g,I=u*v-p*g,E=d*v-p*m,k=y*E-_*I+x*C+b*A-w*M+S*T;return k?(k=1/k,t[0]=(s*E-l*I+h*C)*k,t[1]=(l*A-a*E-h*M)*k,t[2]=(a*I-s*A+h*T)*k,t[3]=(r*I-i*E-o*C)*k,t[4]=(n*E-r*A+o*M)*k,t[5]=(i*A-n*I-o*T)*k,t[6]=(g*S-m*w+v*b)*k,t[7]=(m*x-f*S-v*_)*k,t[8]=(f*w-g*x+v*y)*k,t):null},un.frob=function(t){return Math.sqrt(Math.pow(t[0],2)+Math.pow(t[1],2)+Math.pow(t[2],2)+Math.pow(t[3],2)+Math.pow(t[4],2)+Math.pow(t[5],2)+Math.pow(t[6],2)+Math.pow(t[7],2)+Math.pow(t[8],2))};const dn=un;var pn,fn,gn,mn,vn={};vn.create=function(){var t=new qt(4);return t[0]=0,t[1]=0,t[2]=0,t[3]=1,t},vn.rotationTo=(pn=De.create(),fn=De.fromValues(1,0,0),gn=De.fromValues(0,1,0),function(t,e,n){var i=De.dot(e,n);return i<-.999999?(De.cross(pn,fn,e),De.length(pn)<1e-6&&De.cross(pn,gn,e),De.normalize(pn,pn),vn.setAxisAngle(t,pn,Math.PI),t):i>.999999?(t[0]=0,t[1]=0,t[2]=0,t[3]=1,t):(De.cross(pn,e,n),t[0]=pn[0],t[1]=pn[1],t[2]=pn[2],t[3]=1+i,vn.normalize(t,t))}),vn.setAxes=(mn=dn.create(),function(t,e,n,i){return mn[0]=n[0],mn[3]=n[1],mn[6]=n[2],mn[1]=i[0],mn[4]=i[1],mn[7]=i[2],mn[2]=-e[0],mn[5]=-e[1],mn[8]=-e[2],vn.normalize(t,vn.fromMat3(t,mn))}),vn.clone=cn.clone,vn.fromValues=cn.fromValues,vn.copy=cn.copy,vn.set=cn.set,vn.identity=function(t){return t[0]=0,t[1]=0,t[2]=0,t[3]=1,t},vn.setAxisAngle=function(t,e,n){n*=.5;var i=Math.sin(n);return t[0]=i*e[0],t[1]=i*e[1],t[2]=i*e[2],t[3]=Math.cos(n),t},vn.add=cn.add,vn.multiply=function(t,e,n){var i=e[0],r=e[1],o=e[2],a=e[3],s=n[0],l=n[1],h=n[2],c=n[3];return t[0]=i*c+a*s+r*h-o*l,t[1]=r*c+a*l+o*s-i*h,t[2]=o*c+a*h+i*l-r*s,t[3]=a*c-i*s-r*l-o*h,t},vn.mul=vn.multiply,vn.scale=cn.scale,vn.rotateX=function(t,e,n){n*=.5;var i=e[0],r=e[1],o=e[2],a=e[3],s=Math.sin(n),l=Math.cos(n);return t[0]=i*l+a*s,t[1]=r*l+o*s,t[2]=o*l-r*s,t[3]=a*l-i*s,t},vn.rotateY=function(t,e,n){n*=.5;var i=e[0],r=e[1],o=e[2],a=e[3],s=Math.sin(n),l=Math.cos(n);return t[0]=i*l-o*s,t[1]=r*l+a*s,t[2]=o*l+i*s,t[3]=a*l-r*s,t},vn.rotateZ=function(t,e,n){n*=.5;var i=e[0],r=e[1],o=e[2],a=e[3],s=Math.sin(n),l=Math.cos(n);return t[0]=i*l+r*s,t[1]=r*l-i*s,t[2]=o*l+a*s,t[3]=a*l-o*s,t},vn.calculateW=function(t,e){var n=e[0],i=e[1],r=e[2];return t[0]=n,t[1]=i,t[2]=r,t[3]=Math.sqrt(Math.abs(1-n*n-i*i-r*r)),t},vn.dot=cn.dot,vn.lerp=cn.lerp,vn.slerp=function(t,e,n,i){var r,o,a,s,l,h=e[0],c=e[1],u=e[2],d=e[3],p=n[0],f=n[1],g=n[2],m=n[3];return(o=h*p+c*f+u*g+d*m)<0&&(o=-o,p=-p,f=-f,g=-g,m=-m),1-o>1e-6?(r=Math.acos(o),a=Math.sin(r),s=Math.sin((1-i)*r)/a,l=Math.sin(i*r)/a):(s=1-i,l=i),t[0]=s*h+l*p,t[1]=s*c+l*f,t[2]=s*u+l*g,t[3]=s*d+l*m,t},vn.invert=function(t,e){var n=e[0],i=e[1],r=e[2],o=e[3],a=n*n+i*i+r*r+o*o,s=a?1/a:0;return t[0]=-n*s,t[1]=-i*s,t[2]=-r*s,t[3]=o*s,t},vn.conjugate=function(t,e){return t[0]=-e[0],t[1]=-e[1],t[2]=-e[2],t[3]=e[3],t},vn.length=cn.length,vn.len=vn.length,vn.squaredLength=cn.squaredLength,vn.sqrLen=vn.squaredLength,vn.normalize=cn.normalize,vn.fromMat3=function(t,e){var n,i=e[0]+e[4]+e[8];if(i>0)n=Math.sqrt(i+1),t[3]=.5*n,n=.5/n,t[0]=(e[5]-e[7])*n,t[1]=(e[6]-e[2])*n,t[2]=(e[1]-e[3])*n;else{var r=0;e[4]>e[0]&&(r=1),e[8]>e[3*r+r]&&(r=2);var o=(r+1)%3,a=(r+2)%3;n=Math.sqrt(e[3*r+r]-e[3*o+o]-e[3*a+a]+1),t[r]=.5*n,n=.5/n,t[3]=(e[3*o+a]-e[3*a+o])*n,t[o]=(e[3*o+r]+e[3*r+o])*n,t[a]=(e[3*a+r]+e[3*r+a])*n}return t};const yn=vn;var _n,xn,bn,wn,Sn=function(){this._axisX=new Qe,this._axisY=new Qe,this._axisZ=new Qe,this.array=ke.create(),this._dirty=!0};Sn.prototype={constructor:Sn,setArray:function(t){for(var e=0;e<this.array.length;e++)this.array[e]=t[e];return this._dirty=!0,this},adjoint:function(){return ke.adjoint(this.array,this.array),this._dirty=!0,this},clone:function(){return(new Sn).copy(this)},copy:function(t){return ke.copy(this.array,t.array),this._dirty=!0,this},determinant:function(){return ke.determinant(this.array)},fromQuat:function(t){return ke.fromQuat(this.array,t.array),this._dirty=!0,this},fromRotationTranslation:function(t,e){return ke.fromRotationTranslation(this.array,t.array,e.array),this._dirty=!0,this},fromMat2d:function(t){return Sn.fromMat2d(this,t),this},frustum:function(t,e,n,i,r,o){return ke.frustum(this.array,t,e,n,i,r,o),this._dirty=!0,this},identity:function(){return ke.identity(this.array),this._dirty=!0,this},invert:function(){return ke.invert(this.array,this.array),this._dirty=!0,this},lookAt:function(t,e,n){return ke.lookAt(this.array,t.array,e.array,n.array),this._dirty=!0,this},mul:function(t){return ke.mul(this.array,this.array,t.array),this._dirty=!0,this},mulLeft:function(t){return ke.mul(this.array,t.array,this.array),this._dirty=!0,this},multiply:function(t){return ke.multiply(this.array,this.array,t.array),this._dirty=!0,this},multiplyLeft:function(t){return ke.multiply(this.array,t.array,this.array),this._dirty=!0,this},ortho:function(t,e,n,i,r,o){return ke.ortho(this.array,t,e,n,i,r,o),this._dirty=!0,this},perspective:function(t,e,n,i){return ke.perspective(this.array,t,e,n,i),this._dirty=!0,this},rotate:function(t,e){return ke.rotate(this.array,this.array,t,e.array),this._dirty=!0,this},rotateX:function(t){return ke.rotateX(this.array,this.array,t),this._dirty=!0,this},rotateY:function(t){return ke.rotateY(this.array,this.array,t),this._dirty=!0,this},rotateZ:function(t){return ke.rotateZ(this.array,this.array,t),this._dirty=!0,this},scale:function(t){return ke.scale(this.array,this.array,t.array),this._dirty=!0,this},translate:function(t){return ke.translate(this.array,this.array,t.array),this._dirty=!0,this},transpose:function(){return ke.transpose(this.array,this.array),this._dirty=!0,this},decomposeMatrix:(_n=De.create(),xn=De.create(),bn=De.create(),wn=dn.create(),function(t,e,n){var i=this.array;De.set(_n,i[0],i[1],i[2]),De.set(xn,i[4],i[5],i[6]),De.set(bn,i[8],i[9],i[10]);var r=De.length(_n),o=De.length(xn),a=De.length(bn);this.determinant()<0&&(r=-r),t&&t.set(r,o,a),n.set(i[12],i[13],i[14]),dn.fromMat4(wn,i),wn[0]/=r,wn[1]/=r,wn[2]/=r,wn[3]/=o,wn[4]/=o,wn[5]/=o,wn[6]/=a,wn[7]/=a,wn[8]/=a,yn.fromMat3(e.array,wn),yn.normalize(e.array,e.array),e._dirty=!0,n._dirty=!0}),toString:function(){return"["+Array.prototype.join.call(this.array,",")+"]"},toArray:function(){return Array.prototype.slice.call(this.array)}};var Tn=Object.defineProperty;if(Tn){var Mn=Sn.prototype;Tn(Mn,"z",{get:function(){var t=this.array;return this._axisZ.set(t[8],t[9],t[10]),this._axisZ},set:function(t){var e=this.array;t=t.array,e[8]=t[0],e[9]=t[1],e[10]=t[2],this._dirty=!0}}),Tn(Mn,"y",{get:function(){var t=this.array;return this._axisY.set(t[4],t[5],t[6]),this._axisY},set:function(t){var e=this.array;t=t.array,e[4]=t[0],e[5]=t[1],e[6]=t[2],this._dirty=!0}}),Tn(Mn,"x",{get:function(){var t=this.array;return this._axisX.set(t[0],t[1],t[2]),this._axisX},set:function(t){var e=this.array;t=t.array,e[0]=t[0],e[1]=t[1],e[2]=t[2],this._dirty=!0}})}Sn.adjoint=function(t,e){return ke.adjoint(t.array,e.array),t._dirty=!0,t},Sn.copy=function(t,e){return ke.copy(t.array,e.array),t._dirty=!0,t},Sn.determinant=function(t){return ke.determinant(t.array)},Sn.identity=function(t){return ke.identity(t.array),t._dirty=!0,t},Sn.ortho=function(t,e,n,i,r,o,a){return ke.ortho(t.array,e,n,i,r,o,a),t._dirty=!0,t},Sn.perspective=function(t,e,n,i,r){return ke.perspective(t.array,e,n,i,r),t._dirty=!0,t},Sn.lookAt=function(t,e,n,i){return ke.lookAt(t.array,e.array,n.array,i.array),t._dirty=!0,t},Sn.invert=function(t,e){return ke.invert(t.array,e.array),t._dirty=!0,t},Sn.multiply=Sn.mul=function(t,e,n){return ke.mul(t.array,e.array,n.array),t._dirty=!0,t},Sn.fromQuat=function(t,e){return ke.fromQuat(t.array,e.array),t._dirty=!0,t},Sn.fromRotationTranslation=function(t,e,n){return ke.fromRotationTranslation(t.array,e.array,n.array),t._dirty=!0,t},Sn.fromMat2d=function(t,e){t._dirty=!0;e=e.array;return(t=t.array)[0]=e[0],t[4]=e[2],t[12]=e[4],t[1]=e[1],t[5]=e[3],t[13]=e[5],t},Sn.rotate=function(t,e,n,i){return ke.rotate(t.array,e.array,n,i.array),t._dirty=!0,t},Sn.rotateX=function(t,e,n){return ke.rotateX(t.array,e.array,n),t._dirty=!0,t},Sn.rotateY=function(t,e,n){return ke.rotateY(t.array,e.array,n),t._dirty=!0,t},Sn.rotateZ=function(t,e,n){return ke.rotateZ(t.array,e.array,n),t._dirty=!0,t},Sn.scale=function(t,e,n){return ke.scale(t.array,e.array,n.array),t._dirty=!0,t},Sn.transpose=function(t,e){return ke.transpose(t.array,e.array),t._dirty=!0,t},Sn.translate=function(t,e,n){return ke.translate(t.array,e.array,n.array),t._dirty=!0,t};const An=Sn;var Cn=function(t,e,n,i){t=t||0,e=e||0,n=n||0,i=void 0===i?1:i,this.array=yn.fromValues(t,e,n,i),this._dirty=!0};Cn.prototype={constructor:Cn,add:function(t){return yn.add(this.array,this.array,t.array),this._dirty=!0,this},calculateW:function(){return yn.calculateW(this.array,this.array),this._dirty=!0,this},set:function(t,e,n,i){return this.array[0]=t,this.array[1]=e,this.array[2]=n,this.array[3]=i,this._dirty=!0,this},setArray:function(t){return this.array[0]=t[0],this.array[1]=t[1],this.array[2]=t[2],this.array[3]=t[3],this._dirty=!0,this},clone:function(){return new Cn(this.x,this.y,this.z,this.w)},conjugate:function(){return yn.conjugate(this.array,this.array),this._dirty=!0,this},copy:function(t){return yn.copy(this.array,t.array),this._dirty=!0,this},dot:function(t){return yn.dot(this.array,t.array)},fromMat3:function(t){return yn.fromMat3(this.array,t.array),this._dirty=!0,this},fromMat4:function(){var t=dn.create();return function(e){return dn.fromMat4(t,e.array),dn.transpose(t,t),yn.fromMat3(this.array,t),this._dirty=!0,this}}(),identity:function(){return yn.identity(this.array),this._dirty=!0,this},invert:function(){return yn.invert(this.array,this.array),this._dirty=!0,this},len:function(){return yn.len(this.array)},length:function(){return yn.length(this.array)},lerp:function(t,e,n){return yn.lerp(this.array,t.array,e.array,n),this._dirty=!0,this},mul:function(t){return yn.mul(this.array,this.array,t.array),this._dirty=!0,this},mulLeft:function(t){return yn.multiply(this.array,t.array,this.array),this._dirty=!0,this},multiply:function(t){return yn.multiply(this.array,this.array,t.array),this._dirty=!0,this},multiplyLeft:function(t){return yn.multiply(this.array,t.array,this.array),this._dirty=!0,this},normalize:function(){return yn.normalize(this.array,this.array),this._dirty=!0,this},rotateX:function(t){return yn.rotateX(this.array,this.array,t),this._dirty=!0,this},rotateY:function(t){return yn.rotateY(this.array,this.array,t),this._dirty=!0,this},rotateZ:function(t){return yn.rotateZ(this.array,this.array,t),this._dirty=!0,this},rotationTo:function(t,e){return yn.rotationTo(this.array,t.array,e.array),this._dirty=!0,this},setAxes:function(t,e,n){return yn.setAxes(this.array,t.array,e.array,n.array),this._dirty=!0,this},setAxisAngle:function(t,e){return yn.setAxisAngle(this.array,t.array,e),this._dirty=!0,this},slerp:function(t,e,n){return yn.slerp(this.array,t.array,e.array,n),this._dirty=!0,this},sqrLen:function(){return yn.sqrLen(this.array)},squaredLength:function(){return yn.squaredLength(this.array)},fromEuler:function(t,e){return Cn.fromEuler(this,t,e)},toString:function(){return"["+Array.prototype.join.call(this.array,",")+"]"},toArray:function(){return Array.prototype.slice.call(this.array)}};var In=Object.defineProperty;if(In){var En=Cn.prototype;In(En,"x",{get:function(){return this.array[0]},set:function(t){this.array[0]=t,this._dirty=!0}}),In(En,"y",{get:function(){return this.array[1]},set:function(t){this.array[1]=t,this._dirty=!0}}),In(En,"z",{get:function(){return this.array[2]},set:function(t){this.array[2]=t,this._dirty=!0}}),In(En,"w",{get:function(){return this.array[3]},set:function(t){this.array[3]=t,this._dirty=!0}})}Cn.add=function(t,e,n){return yn.add(t.array,e.array,n.array),t._dirty=!0,t},Cn.set=function(t,e,n,i,r){yn.set(t.array,e,n,i,r),t._dirty=!0},Cn.copy=function(t,e){return yn.copy(t.array,e.array),t._dirty=!0,t},Cn.calculateW=function(t,e){return yn.calculateW(t.array,e.array),t._dirty=!0,t},Cn.conjugate=function(t,e){return yn.conjugate(t.array,e.array),t._dirty=!0,t},Cn.identity=function(t){return yn.identity(t.array),t._dirty=!0,t},Cn.invert=function(t,e){return yn.invert(t.array,e.array),t._dirty=!0,t},Cn.dot=function(t,e){return yn.dot(t.array,e.array)},Cn.len=function(t){return yn.length(t.array)},Cn.lerp=function(t,e,n,i){return yn.lerp(t.array,e.array,n.array,i),t._dirty=!0,t},Cn.slerp=function(t,e,n,i){return yn.slerp(t.array,e.array,n.array,i),t._dirty=!0,t},Cn.multiply=Cn.mul=function(t,e,n){return yn.multiply(t.array,e.array,n.array),t._dirty=!0,t},Cn.rotateX=function(t,e,n){return yn.rotateX(t.array,e.array,n),t._dirty=!0,t},Cn.rotateY=function(t,e,n){return yn.rotateY(t.array,e.array,n),t._dirty=!0,t},Cn.rotateZ=function(t,e,n){return yn.rotateZ(t.array,e.array,n),t._dirty=!0,t},Cn.setAxisAngle=function(t,e,n){return yn.setAxisAngle(t.array,e.array,n),t._dirty=!0,t},Cn.normalize=function(t,e){return yn.normalize(t.array,e.array),t._dirty=!0,t},Cn.squaredLength=Cn.sqrLen=function(t){return yn.sqrLen(t.array)},Cn.fromMat3=function(t,e){return yn.fromMat3(t.array,e.array),t._dirty=!0,t},Cn.setAxes=function(t,e,n,i){return yn.setAxes(t.array,e.array,n.array,i.array),t._dirty=!0,t},Cn.rotationTo=function(t,e,n){return yn.rotationTo(t.array,e.array,n.array),t._dirty=!0,t},Cn.fromEuler=function(t,e,n){t._dirty=!0,e=e.array;var i=t.array,r=Math.cos(e[0]/2),o=Math.cos(e[1]/2),a=Math.cos(e[2]/2),s=Math.sin(e[0]/2),l=Math.sin(e[1]/2),h=Math.sin(e[2]/2);switch(n=(n||"XYZ").toUpperCase()){case"XYZ":i[0]=s*o*a+r*l*h,i[1]=r*l*a-s*o*h,i[2]=r*o*h+s*l*a,i[3]=r*o*a-s*l*h;break;case"YXZ":i[0]=s*o*a+r*l*h,i[1]=r*l*a-s*o*h,i[2]=r*o*h-s*l*a,i[3]=r*o*a+s*l*h;break;case"ZXY":i[0]=s*o*a-r*l*h,i[1]=r*l*a+s*o*h,i[2]=r*o*h+s*l*a,i[3]=r*o*a-s*l*h;break;case"ZYX":i[0]=s*o*a-r*l*h,i[1]=r*l*a+s*o*h,i[2]=r*o*h-s*l*a,i[3]=r*o*a+s*l*h;break;case"YZX":i[0]=s*o*a+r*l*h,i[1]=r*l*a+s*o*h,i[2]=r*o*h-s*l*a,i[3]=r*o*a-s*l*h;break;case"XZY":i[0]=s*o*a-r*l*h,i[1]=r*l*a-s*o*h,i[2]=r*o*h+s*l*a,i[3]=r*o*a+s*l*h}};const kn=Cn;var Ln,Dn,Pn,Rn,On,Nn,Fn=De.set,Bn=De.copy,zn=function(t,e){this.min=t||new Qe(1/0,1/0,1/0),this.max=e||new Qe(-1/0,-1/0,-1/0),this.vertices=null};zn.prototype={constructor:zn,updateFromVertices:function(t){if(t.length>0){var e=this.min,n=this.max,i=e.array,r=n.array;Bn(i,t[0]),Bn(r,t[0]);for(var o=1;o<t.length;o++){var a=t[o];a[0]<i[0]&&(i[0]=a[0]),a[1]<i[1]&&(i[1]=a[1]),a[2]<i[2]&&(i[2]=a[2]),a[0]>r[0]&&(r[0]=a[0]),a[1]>r[1]&&(r[1]=a[1]),a[2]>r[2]&&(r[2]=a[2])}e._dirty=!0,n._dirty=!0}},union:function(t){var e=this.min,n=this.max;return De.min(e.array,e.array,t.min.array),De.max(n.array,n.array,t.max.array),e._dirty=!0,n._dirty=!0,this},intersection:function(t){var e=this.min,n=this.max;return De.max(e.array,e.array,t.min.array),De.min(n.array,n.array,t.max.array),e._dirty=!0,n._dirty=!0,this},intersectBoundingBox:function(t){var e=this.min.array,n=this.max.array,i=t.min.array,r=t.max.array;return!(e[0]>r[0]||e[1]>r[1]||e[2]>r[2]||n[0]<i[0]||n[1]<i[1]||n[2]<i[2])},containBoundingBox:function(t){var e=this.min.array,n=this.max.array,i=t.min.array,r=t.max.array;return e[0]<=i[0]&&e[1]<=i[1]&&e[2]<=i[2]&&n[0]>=r[0]&&n[1]>=r[1]&&n[2]>=r[2]},containPoint:function(t){var e=this.min.array,n=this.max.array,i=t.array;return e[0]<=i[0]&&e[1]<=i[1]&&e[2]<=i[2]&&n[0]>=i[0]&&n[1]>=i[1]&&n[2]>=i[2]},isFinite:function(){var t=this.min.array,e=this.max.array;return isFinite(t[0])&&isFinite(t[1])&&isFinite(t[2])&&isFinite(e[0])&&isFinite(e[1])&&isFinite(e[2])},applyTransform:function(t){this.transformFrom(this,t)},transformFrom:(Ln=De.create(),Dn=De.create(),Pn=De.create(),Rn=De.create(),On=De.create(),Nn=De.create(),function(t,e){var n=t.min.array,i=t.max.array,r=e.array;return Ln[0]=r[0]*n[0],Ln[1]=r[1]*n[0],Ln[2]=r[2]*n[0],Dn[0]=r[0]*i[0],Dn[1]=r[1]*i[0],Dn[2]=r[2]*i[0],Pn[0]=r[4]*n[1],Pn[1]=r[5]*n[1],Pn[2]=r[6]*n[1],Rn[0]=r[4]*i[1],Rn[1]=r[5]*i[1],Rn[2]=r[6]*i[1],On[0]=r[8]*n[2],On[1]=r[9]*n[2],On[2]=r[10]*n[2],Nn[0]=r[8]*i[2],Nn[1]=r[9]*i[2],Nn[2]=r[10]*i[2],n=this.min.array,i=this.max.array,n[0]=Math.min(Ln[0],Dn[0])+Math.min(Pn[0],Rn[0])+Math.min(On[0],Nn[0])+r[12],n[1]=Math.min(Ln[1],Dn[1])+Math.min(Pn[1],Rn[1])+Math.min(On[1],Nn[1])+r[13],n[2]=Math.min(Ln[2],Dn[2])+Math.min(Pn[2],Rn[2])+Math.min(On[2],Nn[2])+r[14],i[0]=Math.max(Ln[0],Dn[0])+Math.max(Pn[0],Rn[0])+Math.max(On[0],Nn[0])+r[12],i[1]=Math.max(Ln[1],Dn[1])+Math.max(Pn[1],Rn[1])+Math.max(On[1],Nn[1])+r[13],i[2]=Math.max(Ln[2],Dn[2])+Math.max(Pn[2],Rn[2])+Math.max(On[2],Nn[2])+r[14],this.min._dirty=!0,this.max._dirty=!0,this}),applyProjection:function(t){var e=this.min.array,n=this.max.array,i=t.array,r=e[0],o=e[1],a=e[2],s=n[0],l=n[1],h=e[2],c=n[0],u=n[1],d=n[2];if(1===i[15])e[0]=i[0]*r+i[12],e[1]=i[5]*o+i[13],n[2]=i[10]*a+i[14],n[0]=i[0]*c+i[12],n[1]=i[5]*u+i[13],e[2]=i[10]*d+i[14];else{var p=-1/a;e[0]=i[0]*r*p,e[1]=i[5]*o*p,n[2]=(i[10]*a+i[14])*p,p=-1/h,n[0]=i[0]*s*p,n[1]=i[5]*l*p,p=-1/d,e[2]=(i[10]*d+i[14])*p}return this.min._dirty=!0,this.max._dirty=!0,this},updateVertices:function(){var t=this.vertices;if(!t){t=[];for(var e=0;e<8;e++)t[e]=De.fromValues(0,0,0);this.vertices=t}var n=this.min.array,i=this.max.array;return Fn(t[0],n[0],n[1],n[2]),Fn(t[1],n[0],i[1],n[2]),Fn(t[2],i[0],n[1],n[2]),Fn(t[3],i[0],i[1],n[2]),Fn(t[4],n[0],n[1],i[2]),Fn(t[5],n[0],i[1],i[2]),Fn(t[6],i[0],n[1],i[2]),Fn(t[7],i[0],i[1],i[2]),this},copy:function(t){var e=this.min,n=this.max;return Bn(e.array,t.min.array),Bn(n.array,t.max.array),e._dirty=!0,n._dirty=!0,this},clone:function(){var t=new zn;return t.copy(this),t}};const Gn=zn;var Vn,jn,Hn=0,Wn=y.extend({name:"",position:null,rotation:null,scale:null,worldTransform:null,localTransform:null,autoUpdateLocalTransform:!0,_parent:null,_scene:null,_needsUpdateWorldTransform:!0,_inIterating:!1,__depth:0},(function(){this.name||(this.name=(this.type||"NODE")+"_"+Hn++),this.position||(this.position=new Qe),this.rotation||(this.rotation=new kn),this.scale||(this.scale=new Qe(1,1,1)),this.worldTransform=new An,this.localTransform=new An,this._children=[]}),{target:null,invisible:!1,isSkinnedMesh:function(){return!1},isRenderable:function(){return!1},setName:function(t){var e=this._scene;if(e){var n=e._nodeRepository;delete n[this.name],n[t]=this}this.name=t},add:function(t){var e=t._parent;if(e!==this){e&&e.remove(t),t._parent=this,this._children.push(t);var n=this._scene;n&&n!==t.scene&&t.traverse(this._addSelfToScene,this),t._needsUpdateWorldTransform=!0}},remove:function(t){var e=this._children,n=e.indexOf(t);n<0||(e.splice(n,1),t._parent=null,this._scene&&t.traverse(this._removeSelfFromScene,this))},removeAll:function(){for(var t=this._children,e=0;e<t.length;e++)t[e]._parent=null,this._scene&&t[e].traverse(this._removeSelfFromScene,this);this._children=[]},getScene:function(){return this._scene},getParent:function(){return this._parent},_removeSelfFromScene:function(t){t._scene.removeFromScene(t),t._scene=null},_addSelfToScene:function(t){this._scene.addToScene(t),t._scene=this._scene},isAncestor:function(t){for(var e=t._parent;e;){if(e===this)return!0;e=e._parent}return!1},children:function(){return this._children.slice()},childAt:function(t){return this._children[t]},getChildByName:function(t){for(var e=this._children,n=0;n<e.length;n++)if(e[n].name===t)return e[n]},getDescendantByName:function(t){for(var e=this._children,n=0;n<e.length;n++){var i=e[n];if(i.name===t)return i;var r=i.getDescendantByName(t);if(r)return r}},queryNode:function(t){if(t){for(var e=t.split("/"),n=this,i=0;i<e.length;i++){var r=e[i];if(r){for(var o=!1,a=n._children,s=0;s<a.length;s++){var l=a[s];if(l.name===r){n=l,o=!0;break}}if(!o)return}}return n}},getPath:function(t){if(!this._parent)return"/";for(var e=this._parent,n=this.name;e._parent&&(n=e.name+"/"+n,e._parent!=t);)e=e._parent;return!e._parent&&t?null:n},traverse:function(t,e){t.call(e,this);for(var n=this._children,i=0,r=n.length;i<r;i++)n[i].traverse(t,e)},eachChild:function(t,e){for(var n=this._children,i=0,r=n.length;i<r;i++){var o=n[i];t.call(e,o,i)}},setLocalTransform:function(t){ke.copy(this.localTransform.array,t.array),this.decomposeLocalTransform()},decomposeLocalTransform:function(t){var e=t?null:this.scale;this.localTransform.decomposeMatrix(e,this.rotation,this.position)},setWorldTransform:function(t){ke.copy(this.worldTransform.array,t.array),this.decomposeWorldTransform()},decomposeWorldTransform:(jn=ke.create(),function(t){var e=this.localTransform,n=this.worldTransform;this._parent?(ke.invert(jn,this._parent.worldTransform.array),ke.multiply(e.array,jn,n.array)):ke.copy(e.array,n.array);var i=t?null:this.scale;e.decomposeMatrix(i,this.rotation,this.position)}),transformNeedsUpdate:function(){return this.position._dirty||this.rotation._dirty||this.scale._dirty},updateLocalTransform:function(){var t=this.position,e=this.rotation,n=this.scale;if(this.transformNeedsUpdate()){var i=this.localTransform.array;ke.fromRotationTranslation(i,e.array,t.array),ke.scale(i,i,n.array),e._dirty=!1,n._dirty=!1,t._dirty=!1,this._needsUpdateWorldTransform=!0}},_updateWorldTransformTopDown:function(){var t=this.localTransform.array,e=this.worldTransform.array;this._parent?ke.multiplyAffine(e,this._parent.worldTransform.array,t):ke.copy(e,t)},updateWorldTransform:function(){for(var t=this;t&&t.getParent()&&t.getParent().transformNeedsUpdate();)t=t.getParent();t.update()},update:function(t){this.autoUpdateLocalTransform?this.updateLocalTransform():t=!0,(t||this._needsUpdateWorldTransform)&&(this._updateWorldTransformTopDown(),t=!0,this._needsUpdateWorldTransform=!1);for(var e=this._children,n=0,i=e.length;n<i;n++)e[n].update(t)},getBoundingBox:function(){function t(t){return!t.invisible&&t.geometry}var e=new Gn,n=new An,i=new An;return function(r,o){return o=o||new Gn,r=r||t,this._parent?An.invert(i,this._parent.worldTransform):An.identity(i),this.traverse((function(t){t.geometry&&t.geometry.boundingBox&&(e.copy(t.geometry.boundingBox),An.multiply(n,i,t.worldTransform),e.applyTransform(n),o.union(e))}),this,t),o}}(),getWorldPosition:function(t){this.transformNeedsUpdate()&&this.updateWorldTransform();var e=this.worldTransform.array;if(t){var n=t.array;return n[0]=e[12],n[1]=e[13],n[2]=e[14],t}return new Qe(e[12],e[13],e[14])},clone:function(){var t=new this.constructor,e=this._children;t.setName(this.name),t.position.copy(this.position),t.rotation.copy(this.rotation),t.scale.copy(this.scale);for(var n=0;n<e.length;n++)t.add(e[n].clone());return t},rotateAround:function(){var t=new Qe,e=new An;return function(n,i,r){t.copy(this.position).subtract(n);var o=this.localTransform;o.identity(),o.translate(n),o.rotate(r,i),e.fromRotationTranslation(this.rotation,t),o.multiply(e),o.scale(this.scale),this.decomposeLocalTransform(),this._needsUpdateWorldTransform=!0}}(),lookAt:(Vn=new An,function(t,e){Vn.lookAt(this.position,t,e||this.localTransform.y).invert(),this.setLocalTransform(Vn),this.target=t})});const Un=Wn;var qn,Xn=Un.extend({material:null,geometry:null,mode:E,_renderInfo:null},{__program:null,lightGroup:0,renderOrder:0,culling:!0,cullFace:N,frontFace:z,frustumCulling:!0,receiveShadow:!0,castShadow:!0,ignorePicking:!1,ignorePreZ:!1,ignoreGBuffer:!1,isRenderable:function(){return this.geometry&&this.material&&this.material.shader&&!this.invisible&&this.geometry.vertexCount>0},beforeRender:function(t){},afterRender:function(t,e){},getBoundingBox:function(t,e){return e=Un.prototype.getBoundingBox.call(this,t,e),this.geometry&&this.geometry.boundingBox&&e.union(this.geometry.boundingBox),e},clone:(qn=["castShadow","receiveShadow","mode","culling","cullFace","frontFace","frustumCulling","renderOrder","lineWidth","ignorePicking","ignorePreZ","ignoreGBuffer"],function(){var t=Un.prototype.clone.call(this);t.geometry=this.geometry,t.material=this.material;for(var e=0;e<qn.length;e++){var n=qn[e];t[n]!==this[n]&&(t[n]=this[n])}return t})});Xn.POINTS=M,Xn.LINES=A,Xn.LINE_LOOP=C,Xn.LINE_STRIP=I,Xn.TRIANGLES=E,Xn.TRIANGLE_STRIP=k,Xn.TRIANGLE_FAN=L,Xn.BACK=N,Xn.FRONT=O,Xn.FRONT_AND_BACK=F,Xn.CW=B,Xn.CCW=z;const Yn=Xn;var Zn,$n,Kn,Jn,Qn,ti=y.extend({scene:null,camera:null,renderer:null},(function(){this._ray=new ln,this._ndc=new Jt}),{pick:function(t,e,n){return this.pickAll(t,e,[],n)[0]||null},pickAll:function(t,e,n,i){return this.renderer.screenToNDC(t,e,this._ndc),this.camera.castRay(this._ndc,this._ray),n=n||[],this._intersectNode(this.scene,n,i||!1),n.sort(this._intersectionCompareFunc),n},_intersectNode:function(t,e,n){t instanceof Yn&&t.isRenderable()&&(t.ignorePicking&&!n||!(t.mode===E&&t.geometry.isUseIndices()||t.geometry.pickByRay||t.geometry.pick)||this._intersectRenderable(t,e));for(var i=0;i<t._children.length;i++)this._intersectNode(t._children[i],e,n)},_intersectRenderable:(Zn=new Qe,$n=new Qe,Kn=new Qe,Jn=new ln,Qn=new An,function(t,e){var n=t.isSkinnedMesh();Jn.copy(this._ray),An.invert(Qn,t.worldTransform),n||Jn.applyTransform(Qn);var i=t.geometry,r=n?t.skeleton.boundingBox:i.boundingBox;if(!r||Jn.intersectBoundingBox(r))if(i.pick)i.pick(this._ndc.x,this._ndc.y,this.renderer,this.camera,t,e);else if(i.pickByRay)i.pickByRay(Jn,t,e);else{var o,a,s=t.cullFace===N&&t.frontFace===z||t.cullFace===O&&t.frontFace===B,l=i.indices,h=i.attributes.position,c=i.attributes.weight,u=i.attributes.joint,d=[];if(h&&h.value&&l){if(n){a=t.skeleton.getSubSkinMatrices(t.__uid__,t.joints);for(var p=0;p<t.joints.length;p++){d[p]=d[p]||[];for(var f=0;f<16;f++)d[p][f]=a[16*p+f]}var g=[],m=[],v=[],y=[],_=[],x=i.attributes.skinnedPosition;for(x&&x.value||(i.createAttribute("skinnedPosition","f",3),(x=i.attributes.skinnedPosition).init(i.vertexCount)),p=0;p<i.vertexCount;p++){for(h.get(p,g),c.get(p,m),u.get(p,v),m[3]=1-m[0]-m[1]-m[2],De.set(y,0,0,0),f=0;f<4;f++)v[f]>=0&&m[f]>1e-4&&(De.transformMat4(_,g,d[v[f]]),De.scaleAndAdd(y,y,_,m[f]));x.set(p,y)}}for(p=0;p<l.length;p+=3){var b=l[p],w=l[p+1],S=l[p+2],T=n?i.attributes.skinnedPosition:h;if(T.get(b,Zn.array),T.get(w,$n.array),T.get(S,Kn.array),o=s?Jn.intersectTriangle(Zn,$n,Kn,t.culling):Jn.intersectTriangle(Zn,Kn,$n,t.culling)){var M=new Qe;n?Qe.copy(M,o):Qe.transformMat4(M,o,t.worldTransform),e.push(new ti.Intersection(o,M,t,[b,w,S],p/3,Qe.dist(M,this._ray.origin)))}}}}}),_intersectionCompareFunc:function(t,e){return t.distance-e.distance}});ti.Intersection=function(t,e,n,i,r,o){this.point=t,this.pointWorld=e,this.target=n,this.triangle=i,this.triangleIndex=r,this.distance=o};const ei=ti;var ni="__dt__",ii=function(){this._contextId=0,this._caches=[],this._context={}};(ii.prototype={use:function(t,e){var n=this._caches;n[t]||(n[t]={},e&&(n[t]=e())),this._contextId=t,this._context=n[t]},put:function(t,e){this._context[t]=e},get:function(t){return this._context[t]},dirty:function(t){var e=ni+(t=t||"");this.put(e,!0)},dirtyAll:function(t){for(var e=ni+(t=t||""),n=this._caches,i=0;i<n.length;i++)n[i]&&(n[i][e]=!0)},fresh:function(t){var e=ni+(t=t||"");this.put(e,!1)},freshAll:function(t){for(var e=ni+(t=t||""),n=this._caches,i=0;i<n.length;i++)n[i]&&(n[i][e]=!1)},isDirty:function(t){var e=ni+(t=t||""),n=this._context;return!n.hasOwnProperty(e)||!0===n[e]},deleteContext:function(t){delete this._caches[t],this._context={}},delete:function(t){delete this._context[t]},clearAll:function(){this._caches={}},getContext:function(){return this._context},eachContext:function(t,e){Object.keys(this._caches).forEach((function(n){t&&t.call(e,n)}))},miss:function(t){return!this._context.hasOwnProperty(t)}}).constructor=ii;const ri=ii;var oi=y.extend({width:512,height:512,type:V,format:$,wrapS:st,wrapT:st,minFilter:rt,magFilter:tt,useMipmap:!0,anisotropic:1,flipY:!0,sRGB:!0,unpackAlignment:4,premultiplyAlpha:!1,dynamic:!1,NPOT:!1,__used:0},(function(){this._cache=new ri}),{getWebGLTexture:function(t){var e=t.gl,n=this._cache;return n.use(t.__uid__),n.miss("webgl_texture")&&n.put("webgl_texture",e.createTexture()),this.dynamic?this.update(t):n.isDirty()&&(this.update(t),n.fresh()),n.get("webgl_texture")},bind:function(){},unbind:function(){},dirty:function(){this._cache&&this._cache.dirtyAll()},update:function(t){},updateCommon:function(t){var e=t.gl;e.pixelStorei(e.UNPACK_FLIP_Y_WEBGL,this.flipY),e.pixelStorei(e.UNPACK_PREMULTIPLY_ALPHA_WEBGL,this.premultiplyAlpha),e.pixelStorei(e.UNPACK_ALIGNMENT,this.unpackAlignment),this.format===X&&(this.useMipmap=!1);var n=t.getGLExtension("EXT_sRGB");this.format!==oi.SRGB||n||(this.format=oi.RGB),this.format!==oi.SRGB_ALPHA||n||(this.format=oi.RGBA),this.NPOT=!this.isPowerOfTwo()},getAvailableWrapS:function(){return this.NPOT?lt:this.wrapS},getAvailableWrapT:function(){return this.NPOT?lt:this.wrapT},getAvailableMinFilter:function(){var t=this.minFilter;return this.NPOT||!this.useMipmap?t===et||t===it?Q:t===rt||t===nt?tt:t:t},getAvailableMagFilter:function(){return this.magFilter},nextHighestPowerOfTwo:function(t){--t;for(var e=1;e<32;e<<=1)t|=t>>e;return t+1},dispose:function(t){var e=this._cache;e.use(t.__uid__);var n=e.get("webgl_texture");n&&t.gl.deleteTexture(n),e.deleteContext(t.__uid__)},isRenderable:function(){},isPowerOfTwo:function(){}});Object.defineProperty(oi.prototype,"width",{get:function(){return this._width},set:function(t){this._width=t}}),Object.defineProperty(oi.prototype,"height",{get:function(){return this._height},set:function(t){this._height=t}}),oi.BYTE=G,oi.UNSIGNED_BYTE=V,oi.SHORT=j,oi.UNSIGNED_SHORT=H,oi.INT=W,oi.UNSIGNED_INT=U,oi.FLOAT=q,oi.HALF_FLOAT=36193,oi.UNSIGNED_INT_24_8_WEBGL=34042,oi.DEPTH_COMPONENT=X,oi.DEPTH_STENCIL=dt,oi.ALPHA=Y,oi.RGB=Z,oi.RGBA=$,oi.LUMINANCE=K,oi.LUMINANCE_ALPHA=J,oi.SRGB=35904,oi.SRGB_ALPHA=35906,oi.COMPRESSED_RGB_S3TC_DXT1_EXT=33776,oi.COMPRESSED_RGBA_S3TC_DXT1_EXT=33777,oi.COMPRESSED_RGBA_S3TC_DXT3_EXT=33778,oi.COMPRESSED_RGBA_S3TC_DXT5_EXT=33779,oi.NEAREST=Q,oi.LINEAR=tt,oi.NEAREST_MIPMAP_NEAREST=et,oi.LINEAR_MIPMAP_NEAREST=nt,oi.NEAREST_MIPMAP_LINEAR=it,oi.LINEAR_MIPMAP_LINEAR=rt,oi.REPEAT=st,oi.CLAMP_TO_EDGE=lt,oi.MIRRORED_REPEAT=ht;const ai=oi;var si=Yn.extend({skeleton:null,joints:null},(function(){this.joints||(this.joints=[])}),{offsetMatrix:null,isInstancedMesh:function(){return!1},isSkinnedMesh:function(){return!!(this.skeleton&&this.joints&&this.joints.length>0)},clone:function(){var t=Yn.prototype.clone.call(this);return t.skeleton=this.skeleton,this.joints&&(t.joints=this.joints.slice()),t}});si.POINTS=M,si.LINES=A,si.LINE_LOOP=C,si.LINE_STRIP=I,si.TRIANGLES=E,si.TRIANGLE_STRIP=k,si.TRIANGLE_FAN=L,si.BACK=N,si.FRONT=O,si.FRONT_AND_BACK=F,si.CW=B,si.CCW=z;const li=si;var hi={isPowerOfTwo:function(t){return!(t&t-1)},nextPowerOfTwo:function(t){return t--,t|=t>>1,t|=t>>2,t|=t>>4,t|=t>>8,t|=t>>16,++t},nearestPowerOfTwo:function(t){return Math.pow(2,Math.round(Math.log(t)/Math.LN2))}};const ci=hi;var ui=ci.isPowerOfTwo;function di(t){return Math.pow(2,Math.round(Math.log(t)/Math.LN2))}var pi=ai.extend((function(){return{image:null,pixels:null,mipmaps:[],convertToPOT:!1}}),{textureType:"texture2D",update:function(t){var e=t.gl;e.bindTexture(e.TEXTURE_2D,this._cache.get("webgl_texture")),this.updateCommon(t);var n=this.format,i=this.type,r=!(!this.convertToPOT||this.mipmaps.length||!this.image||this.wrapS!==ai.REPEAT&&this.wrapT!==ai.REPEAT||!this.NPOT);e.texParameteri(e.TEXTURE_2D,e.TEXTURE_WRAP_S,r?this.wrapS:this.getAvailableWrapS()),e.texParameteri(e.TEXTURE_2D,e.TEXTURE_WRAP_T,r?this.wrapT:this.getAvailableWrapT()),e.texParameteri(e.TEXTURE_2D,e.TEXTURE_MAG_FILTER,r?this.magFilter:this.getAvailableMagFilter()),e.texParameteri(e.TEXTURE_2D,e.TEXTURE_MIN_FILTER,r?this.minFilter:this.getAvailableMinFilter());var o=t.getGLExtension("EXT_texture_filter_anisotropic");(o&&this.anisotropic>1&&e.texParameterf(e.TEXTURE_2D,o.TEXTURE_MAX_ANISOTROPY_EXT,this.anisotropic),36193===i)&&(t.getGLExtension("OES_texture_half_float")||(i=q));if(this.mipmaps.length)for(var a=this.width,s=this.height,l=0;l<this.mipmaps.length;l++){var h=this.mipmaps[l];this._updateTextureData(e,h,l,a,s,n,i,!1),a/=2,s/=2}else this._updateTextureData(e,this,0,this.width,this.height,n,i,r),!this.useMipmap||this.NPOT&&!r||e.generateMipmap(e.TEXTURE_2D);e.bindTexture(e.TEXTURE_2D,null)},_updateTextureData:function(t,e,n,i,r,o,a,s){if(e.image){var l=e.image;s&&(this._potCanvas=function(t,e){var n=di(t.width),i=di(t.height);return(e=e||document.createElement("canvas")).width=n,e.height=i,e.getContext("2d").drawImage(t.image,0,0,n,i),e}(this,this._potCanvas),l=this._potCanvas),t.texImage2D(t.TEXTURE_2D,n,o,o,a,l)}else o<=ai.COMPRESSED_RGBA_S3TC_DXT5_EXT&&o>=ai.COMPRESSED_RGB_S3TC_DXT1_EXT?t.compressedTexImage2D(t.TEXTURE_2D,n,o,i,r,0,e.pixels):t.texImage2D(t.TEXTURE_2D,n,o,i,r,0,o,a,e.pixels)},generateMipmap:function(t){var e=t.gl;this.useMipmap&&!this.NPOT&&(e.bindTexture(e.TEXTURE_2D,this._cache.get("webgl_texture")),e.generateMipmap(e.TEXTURE_2D))},isPowerOfTwo:function(){return ui(this.width)&&ui(this.height)},isRenderable:function(){return this.image?this.image.width>0&&this.image.height>0:!(!this.width||!this.height)},bind:function(t){t.gl.bindTexture(t.gl.TEXTURE_2D,this.getWebGLTexture(t))},unbind:function(t){t.gl.bindTexture(t.gl.TEXTURE_2D,null)},load:function(t,e){var n=bt.createImage();e&&(n.crossOrigin=e);var i=this;return n.onload=function(){i.dirty(),i.trigger("success",i)},n.onerror=function(){i.trigger("error",i)},n.src=t,this.image=n,this}});Object.defineProperty(pi.prototype,"width",{get:function(){return this.image?this.image.width:this._width},set:function(t){this.image?console.warn("Texture from image can't set width"):(this._width!==t&&this.dirty(),this._width=t)}}),Object.defineProperty(pi.prototype,"height",{get:function(){return this.image?this.image.height:this._height},set:function(t){this.image?console.warn("Texture from image can't set height"):(this._height!==t&&this.dirty(),this._height=t)}});const fi=pi;function gi(t){return{byte:bt.Int8Array,ubyte:bt.Uint8Array,short:bt.Int16Array,ushort:bt.Uint16Array}[t]||bt.Float32Array}function mi(t){return"attr_"+t}function vi(t,e,n,i){switch(this.name=t,this.type=e,this.size=n,this.semantic=i||"",this.value=null,n){case 1:this.get=function(t){return this.value[t]},this.set=function(t,e){this.value[t]=e},this.copy=function(t,e){this.value[t]=this.value[t]};break;case 2:this.get=function(t,e){var n=this.value;return e[0]=n[2*t],e[1]=n[2*t+1],e},this.set=function(t,e){var n=this.value;n[2*t]=e[0],n[2*t+1]=e[1]},this.copy=function(t,e){var n=this.value;e*=2,n[t*=2]=n[e],n[t+1]=n[e+1]};break;case 3:this.get=function(t,e){var n=3*t,i=this.value;return e[0]=i[n],e[1]=i[n+1],e[2]=i[n+2],e},this.set=function(t,e){var n=3*t,i=this.value;i[n]=e[0],i[n+1]=e[1],i[n+2]=e[2]},this.copy=function(t,e){var n=this.value;e*=3,n[t*=3]=n[e],n[t+1]=n[e+1],n[t+2]=n[e+2]};break;case 4:this.get=function(t,e){var n=this.value,i=4*t;return e[0]=n[i],e[1]=n[i+1],e[2]=n[i+2],e[3]=n[i+3],e},this.set=function(t,e){var n=this.value,i=4*t;n[i]=e[0],n[i+1]=e[1],n[i+2]=e[2],n[i+3]=e[3]},this.copy=function(t,e){var n=this.value;e*=4,n[t*=4]=n[e],n[t+1]=n[e+1],n[t+2]=n[e+2],n[t+3]=n[e+3]}}}function yi(t,e,n,i,r){this.name=t,this.type=e,this.buffer=n,this.size=i,this.semantic=r,this.symbol="",this.needsRemove=!1}function _i(t){this.buffer=t,this.count=0}vi.prototype.init=function(t){if(!this.value||this.value.length!==t*this.size){var e=gi(this.type);this.value=new e(t*this.size)}},vi.prototype.fromArray=function(t){var e,n=gi(this.type);if(t[0]&&t[0].length){var i=0,r=this.size;e=new n(t.length*r);for(var o=0;o<t.length;o++)for(var a=0;a<r;a++)e[i++]=t[o][a]}else e=new n(t);this.value=e},vi.prototype.clone=function(t){var e=new vi(this.name,this.type,this.size,this.semantic);return t&&console.warn("todo"),e};var xi=y.extend((function(){return{attributes:{},indices:null,dynamic:!0,_enabledAttributes:null,__used:0}}),(function(){this._cache=new ri,this._attributeList=Object.keys(this.attributes),this.__vaoCache={}}),{mainAttribute:"",pick:null,pickByRay:null,dirty:function(){for(var t=this.getEnabledAttributes(),e=0;e<t.length;e++)this.dirtyAttribute(t[e]);this.dirtyIndices(),this._enabledAttributes=null,this._cache.dirty("any")},dirtyIndices:function(){this._cache.dirtyAll("indices")},dirtyAttribute:function(t){this._cache.dirtyAll(mi(t)),this._cache.dirtyAll("attributes")},getTriangleIndices:function(t,e){if(t<this.triangleCount&&t>=0){e||(e=[]);var n=this.indices;return e[0]=n[3*t],e[1]=n[3*t+1],e[2]=n[3*t+2],e}},setTriangleIndices:function(t,e){var n=this.indices;n[3*t]=e[0],n[3*t+1]=e[1],n[3*t+2]=e[2]},isUseIndices:function(){return!!this.indices},initIndicesFromArray:function(t){var e,n=this.vertexCount>65535?bt.Uint32Array:bt.Uint16Array;if(t[0]&&t[0].length){var i=0;e=new n(3*t.length);for(var r=0;r<t.length;r++)for(var o=0;o<3;o++)e[i++]=t[r][o]}else e=new n(t);this.indices=e},createAttribute:function(t,e,n,i){var r=new vi(t,e,n,i);return this.attributes[t]&&this.removeAttribute(t),this.attributes[t]=r,this._attributeList.push(t),r},removeAttribute:function(t){var e=this._attributeList,n=e.indexOf(t);return n>=0&&(e.splice(n,1),delete this.attributes[t],!0)},getAttribute:function(t){return this.attributes[t]},getEnabledAttributes:function(){var t=this._enabledAttributes,e=this._attributeList;if(t)return t;for(var n=[],i=this.vertexCount,r=0;r<e.length;r++){var o=e[r],a=this.attributes[o];a.value&&a.value.length===i*a.size&&n.push(o)}return this._enabledAttributes=n,n},getBufferChunks:function(t){var e=this._cache;e.use(t.__uid__);var n=e.isDirty("attributes"),i=e.isDirty("indices");if(n||i){this._updateBuffer(t.gl,n,i);for(var r=this.getEnabledAttributes(),o=0;o<r.length;o++)e.fresh(mi(r[o]));e.fresh("attributes"),e.fresh("indices")}return e.fresh("any"),e.get("chunks")},_updateBuffer:function(t,e,n){var i=this._cache,r=i.get("chunks"),o=!1;r||((r=[])[0]={attributeBuffers:[],indicesBuffer:null},i.put("chunks",r),o=!0);var a=r[0],s=a.attributeBuffers,l=a.indicesBuffer;if(e||o){var h=this.getEnabledAttributes(),c={};if(!o)for(var u=0;u<s.length;u++)c[s[u].name]=s[u];for(var d=0;d<h.length;d++){var p,f,g=h[d],m=this.attributes[g];o||(p=c[g]),f=p?p.buffer:t.createBuffer(),i.isDirty(mi(g))&&(t.bindBuffer(t.ARRAY_BUFFER,f),t.bufferData(t.ARRAY_BUFFER,m.value,this.dynamic?t.DYNAMIC_DRAW:t.STATIC_DRAW)),s[d]=new yi(g,m.type,f,m.size,m.semantic)}for(u=d;u<s.length;u++)t.deleteBuffer(s[u].buffer);s.length=d}this.isUseIndices()&&(n||o)&&(l||(l=new _i(t.createBuffer()),a.indicesBuffer=l),l.count=this.indices.length,t.bindBuffer(t.ELEMENT_ARRAY_BUFFER,l.buffer),t.bufferData(t.ELEMENT_ARRAY_BUFFER,this.indices,this.dynamic?t.DYNAMIC_DRAW:t.STATIC_DRAW))},dispose:function(t){var e=this._cache;e.use(t.__uid__);var n=e.get("chunks");if(n)for(var i=0;i<n.length;i++){for(var r=n[i],o=0;o<r.attributeBuffers.length;o++){var a=r.attributeBuffers[o];t.gl.deleteBuffer(a.buffer)}r.indicesBuffer&&t.gl.deleteBuffer(r.indicesBuffer.buffer)}if(this.__vaoCache){var s=t.getGLExtension("OES_vertex_array_object");for(var l in this.__vaoCache){var h=this.__vaoCache[l].vao;h&&s.deleteVertexArrayOES(h)}}this.__vaoCache={},e.deleteContext(t.__uid__)}});Object.defineProperty&&(Object.defineProperty(xi.prototype,"vertexCount",{enumerable:!1,get:function(){var t=this.attributes[this.mainAttribute];return t||(t=this.attributes[this._attributeList[0]]),t&&t.value?t.value.length/t.size:0}}),Object.defineProperty(xi.prototype,"triangleCount",{enumerable:!1,get:function(){var t=this.indices;return t?t.length/3:0}})),xi.STATIC_DRAW=P,xi.DYNAMIC_DRAW=R,xi.STREAM_DRAW=D,xi.AttributeBuffer=yi,xi.IndicesBuffer=_i,xi.Attribute=vi;const bi=xi;var wi=De.create,Si=De.add,Ti=De.set,Mi=bi.Attribute,Ai=bi.extend((function(){return{attributes:{position:new Mi("position","float",3,"POSITION"),texcoord0:new Mi("texcoord0","float",2,"TEXCOORD_0"),texcoord1:new Mi("texcoord1","float",2,"TEXCOORD_1"),normal:new Mi("normal","float",3,"NORMAL"),tangent:new Mi("tangent","float",4,"TANGENT"),color:new Mi("color","float",4,"COLOR"),weight:new Mi("weight","float",3,"WEIGHT"),joint:new Mi("joint","float",4,"JOINT"),barycentric:new Mi("barycentric","float",3,null)},boundingBox:null}}),{mainAttribute:"position",updateBoundingBox:function(){var t=this.boundingBox;t||(t=this.boundingBox=new Gn);var e=this.attributes.position.value;if(e&&e.length){var n=t.min,i=t.max,r=n.array,o=i.array;De.set(r,e[0],e[1],e[2]),De.set(o,e[0],e[1],e[2]);for(var a=3;a<e.length;){var s=e[a++],l=e[a++],h=e[a++];s<r[0]&&(r[0]=s),l<r[1]&&(r[1]=l),h<r[2]&&(r[2]=h),s>o[0]&&(o[0]=s),l>o[1]&&(o[1]=l),h>o[2]&&(o[2]=h)}n._dirty=!0,i._dirty=!0}},generateVertexNormals:function(){if(this.vertexCount){var t=this.indices,e=this.attributes,n=e.position.value,i=e.normal.value;if(i&&i.length===n.length)for(var r=0;r<i.length;r++)i[r]=0;else i=e.normal.value=new bt.Float32Array(n.length);for(var o,a,s,l=wi(),h=wi(),c=wi(),u=wi(),d=wi(),p=wi(),f=t?t.length:this.vertexCount,g=0;g<f;){t?(o=t[g++],a=t[g++],s=t[g++]):(o=g++,a=g++,s=g++),Ti(l,n[3*o],n[3*o+1],n[3*o+2]),Ti(h,n[3*a],n[3*a+1],n[3*a+2]),Ti(c,n[3*s],n[3*s+1],n[3*s+2]),De.sub(u,l,h),De.sub(d,h,c),De.cross(p,u,d);for(r=0;r<3;r++)i[3*o+r]=i[3*o+r]+p[r],i[3*a+r]=i[3*a+r]+p[r],i[3*s+r]=i[3*s+r]+p[r]}for(r=0;r<i.length;)Ti(p,i[r],i[r+1],i[r+2]),De.normalize(p,p),i[r++]=p[0],i[r++]=p[1],i[r++]=p[2];this.dirty()}},generateFaceNormals:function(){if(this.vertexCount){this.isUniqueVertex()||this.generateUniqueVertex();var t=this.indices,e=this.attributes,n=e.position.value,i=e.normal.value,r=wi(),o=wi(),a=wi(),s=wi(),l=wi(),h=wi();i||(i=e.normal.value=new Float32Array(n.length));for(var c,u,d,p=t?t.length:this.vertexCount,f=0;f<p;){t?(c=t[f++],u=t[f++],d=t[f++]):(c=f++,u=f++,d=f++),Ti(r,n[3*c],n[3*c+1],n[3*c+2]),Ti(o,n[3*u],n[3*u+1],n[3*u+2]),Ti(a,n[3*d],n[3*d+1],n[3*d+2]),De.sub(s,r,o),De.sub(l,o,a),De.cross(h,s,l),De.normalize(h,h);for(var g=0;g<3;g++)i[3*c+g]=h[g],i[3*u+g]=h[g],i[3*d+g]=h[g]}this.dirty()}},generateTangents:function(){if(this.vertexCount){var t=this.vertexCount,e=this.attributes;e.tangent.value||(e.tangent.value=new Float32Array(4*t));var n=e.texcoord0.value,i=e.position.value,r=e.tangent.value,o=e.normal.value;if(n){for(var a=[],s=[],l=0;l<t;l++)a[l]=[0,0,0],s[l]=[0,0,0];var h,c,u,d=[0,0,0],p=[0,0,0],f=this.indices,g=f?f.length:this.vertexCount;for(l=0;l<g;){f?(h=f[l++],c=f[l++],u=f[l++]):(h=l++,c=l++,u=l++);var m=n[2*h],v=n[2*c],y=n[2*u],_=n[2*h+1],x=n[2*c+1],b=n[2*u+1],w=i[3*h],S=i[3*c],T=i[3*u],M=i[3*h+1],A=i[3*c+1],C=i[3*u+1],I=i[3*h+2],E=S-w,k=T-w,L=A-M,D=C-M,P=i[3*c+2]-I,R=i[3*u+2]-I,O=v-m,N=y-m,F=x-_,B=b-_,z=1/(O*B-F*N);d[0]=(B*E-F*k)*z,d[1]=(B*L-F*D)*z,d[2]=(B*P-F*R)*z,p[0]=(O*k-N*E)*z,p[1]=(O*D-N*L)*z,p[2]=(O*R-N*P)*z,Si(a[h],a[h],d),Si(a[c],a[c],d),Si(a[u],a[u],d),Si(s[h],s[h],p),Si(s[c],s[c],p),Si(s[u],s[u],p)}var G=wi(),V=wi(),j=wi();for(l=0;l<t;l++){j[0]=o[3*l],j[1]=o[3*l+1],j[2]=o[3*l+2];var H=a[l];De.scale(G,j,De.dot(j,H)),De.sub(G,H,G),De.normalize(G,G),De.cross(V,j,H),r[4*l]=G[0],r[4*l+1]=G[1],r[4*l+2]=G[2],r[4*l+3]=De.dot(V,s[l])<0?-1:1}this.dirty()}else console.warn("Geometry without texcoords can't generate tangents.")}},isUniqueVertex:function(){return!this.isUseIndices()||this.vertexCount===this.indices.length},generateUniqueVertex:function(){if(this.vertexCount&&this.indices){this.indices.length>65535&&(this.indices=new bt.Uint32Array(this.indices));for(var t=this.attributes,e=this.indices,n=this.getEnabledAttributes(),i={},r=0;r<n.length;r++){i[l=n[r]]=t[l].value,t[l].init(this.indices.length)}for(var o=0,a=0;a<e.length;a++){var s=e[a];for(r=0;r<n.length;r++)for(var l,h=t[l=n[r]].value,c=t[l].size,u=0;u<c;u++)h[o*c+u]=i[l][s*c+u];e[a]=o,o++}this.dirty()}},generateBarycentric:function(){if(this.vertexCount){this.isUniqueVertex()||this.generateUniqueVertex();var t=this.attributes,e=t.barycentric.value,n=this.indices;if(!e||e.length!==3*n.length){e=t.barycentric.value=new Float32Array(3*n.length);for(var i=0;i<(n?n.length:this.vertexCount/3);)for(var r=0;r<3;r++){e[3*(n?n[i++]:3*i+r)+r]=1}this.dirty()}}},applyTransform:function(t){var e=this.attributes,n=e.position.value,i=e.normal.value,r=e.tangent.value;t=t.array;var o=ke.create();ke.invert(o,t),ke.transpose(o,o);var a=De.transformMat4,s=De.forEach;s(n,3,0,null,a,t),i&&s(i,3,0,null,a,o),r&&s(r,4,0,null,a,o),this.boundingBox&&this.updateBoundingBox()},dispose:function(t){var e=this._cache;e.use(t.__uid__);var n=e.get("chunks");if(n)for(var i=0;i<n.length;i++){for(var r=n[i],o=0;o<r.attributeBuffers.length;o++){var a=r.attributeBuffers[o];t.gl.deleteBuffer(a.buffer)}r.indicesBuffer&&t.gl.deleteBuffer(r.indicesBuffer.buffer)}if(this.__vaoCache){var s=t.getGLExtension("OES_vertex_array_object");for(var l in this.__vaoCache){var h=this.__vaoCache[l].vao;h&&s.deleteVertexArrayOES(h)}}this.__vaoCache={},e.deleteContext(t.__uid__)}});Ai.STATIC_DRAW=bi.STATIC_DRAW,Ai.DYNAMIC_DRAW=bi.DYNAMIC_DRAW,Ai.STREAM_DRAW=bi.STREAM_DRAW,Ai.AttributeBuffer=bi.AttributeBuffer,Ai.IndicesBuffer=bi.IndicesBuffer,Ai.Attribute=Mi;const Ci=Ai;var Ii="uniform vec3 ",Ei="uniform float ",ki="@export clay.header.",Li="@end",Di=":unconfigurable;";const Pi=[ki+"directional_light",Ii+"directionalLightDirection[DIRECTIONAL_LIGHT_COUNT]"+Di,Ii+"directionalLightColor[DIRECTIONAL_LIGHT_COUNT]"+Di,Li,ki+"ambient_light",Ii+"ambientLightColor[AMBIENT_LIGHT_COUNT]"+Di,Li,ki+"ambient_sh_light",Ii+"ambientSHLightColor[AMBIENT_SH_LIGHT_COUNT]"+Di,Ii+"ambientSHLightCoefficients[AMBIENT_SH_LIGHT_COUNT * 9]"+Di,"vec3 calcAmbientSHLight(int idx, vec3 N) {\n int offset = 9 * idx;\n return ambientSHLightCoefficients[0]\n + ambientSHLightCoefficients[1] * N.x\n + ambientSHLightCoefficients[2] * N.y\n + ambientSHLightCoefficients[3] * N.z\n + ambientSHLightCoefficients[4] * N.x * N.z\n + ambientSHLightCoefficients[5] * N.z * N.y\n + ambientSHLightCoefficients[6] * N.y * N.x\n + ambientSHLightCoefficients[7] * (3.0 * N.z * N.z - 1.0)\n + ambientSHLightCoefficients[8] * (N.x * N.x - N.y * N.y);\n}",Li,ki+"ambient_cubemap_light",Ii+"ambientCubemapLightColor[AMBIENT_CUBEMAP_LIGHT_COUNT]"+Di,"uniform samplerCube ambientCubemapLightCubemap[AMBIENT_CUBEMAP_LIGHT_COUNT]"+Di,"uniform sampler2D ambientCubemapLightBRDFLookup[AMBIENT_CUBEMAP_LIGHT_COUNT]"+Di,Li,ki+"point_light",Ii+"pointLightPosition[POINT_LIGHT_COUNT]"+Di,Ei+"pointLightRange[POINT_LIGHT_COUNT]"+Di,Ii+"pointLightColor[POINT_LIGHT_COUNT]"+Di,Li,ki+"spot_light",Ii+"spotLightPosition[SPOT_LIGHT_COUNT]"+Di,Ii+"spotLightDirection[SPOT_LIGHT_COUNT]"+Di,Ei+"spotLightRange[SPOT_LIGHT_COUNT]"+Di,Ei+"spotLightUmbraAngleCosine[SPOT_LIGHT_COUNT]"+Di,Ei+"spotLightPenumbraAngleCosine[SPOT_LIGHT_COUNT]"+Di,Ei+"spotLightFalloffFactor[SPOT_LIGHT_COUNT]"+Di,Ii+"spotLightColor[SPOT_LIGHT_COUNT]"+Di,Li].join("\n");Ce.import(Pi);var Ri=Un.extend((function(){return{color:[1,1,1],intensity:1,castShadow:!0,shadowResolution:512,group:0}}),{type:"",clone:function(){var t=Un.prototype.clone.call(this);return t.color=Array.prototype.slice.call(this.color),t.intensity=this.intensity,t.castShadow=this.castShadow,t.shadowResolution=this.shadowResolution,t}});const Oi=Ri;var Ni,Fi,Bi,zi,Gi=function(t,e){this.normal=t||new Qe(0,1,0),this.distance=e||0};Gi.prototype={constructor:Gi,distanceToPoint:function(t){return De.dot(t.array,this.normal.array)-this.distance},projectPoint:function(t,e){e||(e=new Qe);var n=this.distanceToPoint(t);return De.scaleAndAdd(e.array,t.array,this.normal.array,-n),e._dirty=!0,e},normalize:function(){var t=1/De.len(this.normal.array);De.scale(this.normal.array,t),this.distance*=t},intersectFrustum:function(t){for(var e=t.vertices,n=this.normal.array,i=De.dot(e[0].array,n)>this.distance,r=1;r<8;r++)if(De.dot(e[r].array,n)>this.distance!=i)return!0},intersectLine:(zi=De.create(),function(t,e,n){var i=this.distanceToPoint(t),r=this.distanceToPoint(e);if(i>0&&r>0||i<0&&r<0)return null;var o=this.normal.array,a=this.distance,s=t.array;De.sub(zi,e.array,t.array),De.normalize(zi,zi);var l=De.dot(o,zi);if(0===l)return null;n||(n=new Qe);var h=(De.dot(o,s)-a)/l;return De.scaleAndAdd(n.array,s,zi,-h),n._dirty=!0,n}),applyTransform:(Ni=ke.create(),Fi=cn.create(),Bi=cn.create(),Bi[3]=1,function(t){t=t.array,De.scale(Bi,this.normal.array,this.distance),cn.transformMat4(Bi,Bi,t),this.distance=De.dot(Bi,this.normal.array),ke.invert(Ni,t),ke.transpose(Ni,Ni),Fi[3]=0,De.copy(Fi,this.normal.array),cn.transformMat4(Fi,Fi,Ni),De.copy(this.normal.array,Fi)}),copy:function(t){De.copy(this.normal.array,t.normal.array),this.normal._dirty=!0,this.distance=t.distance},clone:function(){var t=new Gi;return t.copy(this),t}};const Vi=Gi;var ji,Hi=De.set,Wi=De.copy,Ui=De.transformMat4,qi=Math.min,Xi=Math.max,Yi=function(){this.planes=[];for(var t=0;t<6;t++)this.planes.push(new Vi);this.boundingBox=new Gn,this.vertices=[];for(t=0;t<8;t++)this.vertices[t]=De.fromValues(0,0,0)};Yi.prototype={setFromProjection:function(t){var e=this.planes,n=t.array,i=n[0],r=n[1],o=n[2],a=n[3],s=n[4],l=n[5],h=n[6],c=n[7],u=n[8],d=n[9],p=n[10],f=n[11],g=n[12],m=n[13],v=n[14],y=n[15];Hi(e[0].normal.array,a-i,c-s,f-u),e[0].distance=-(y-g),e[0].normalize(),Hi(e[1].normal.array,a+i,c+s,f+u),e[1].distance=-(y+g),e[1].normalize(),Hi(e[2].normal.array,a+r,c+l,f+d),e[2].distance=-(y+m),e[2].normalize(),Hi(e[3].normal.array,a-r,c-l,f-d),e[3].distance=-(y-m),e[3].normalize(),Hi(e[4].normal.array,a-o,c-h,f-p),e[4].distance=-(y-v),e[4].normalize(),Hi(e[5].normal.array,a+o,c+h,f+p),e[5].distance=-(y+v),e[5].normalize();var _=this.boundingBox,x=this.vertices;if(0===y){var b=l/i,w=-v/(p-1),S=-v/(p+1),T=-S/l,M=-w/l;_.min.set(-T*b,-T,S),_.max.set(T*b,T,w),Hi(x[0],-T*b,-T,S),Hi(x[1],-T*b,T,S),Hi(x[2],T*b,-T,S),Hi(x[3],T*b,T,S),Hi(x[4],-M*b,-M,w),Hi(x[5],-M*b,M,w),Hi(x[6],M*b,-M,w),Hi(x[7],M*b,M,w)}else{var A=(-1-g)/i,C=(1-g)/i,I=(1-m)/l,E=(-1-m)/l,k=(-1-v)/p,L=(1-v)/p;_.min.set(Math.min(A,C),Math.min(E,I),Math.min(L,k)),_.max.set(Math.max(C,A),Math.max(I,E),Math.max(k,L));var D=_.min.array,P=_.max.array;Hi(x[0],D[0],D[1],D[2]),Hi(x[1],D[0],P[1],D[2]),Hi(x[2],P[0],D[1],D[2]),Hi(x[3],P[0],P[1],D[2]),Hi(x[4],D[0],D[1],P[2]),Hi(x[5],D[0],P[1],P[2]),Hi(x[6],P[0],D[1],P[2]),Hi(x[7],P[0],P[1],P[2])}},getTransformedBoundingBox:(ji=De.create(),function(t,e){var n=this.vertices,i=e.array,r=t.min,o=t.max,a=r.array,s=o.array,l=n[0];Ui(ji,l,i),Wi(a,ji),Wi(s,ji);for(var h=1;h<8;h++)l=n[h],Ui(ji,l,i),a[0]=qi(ji[0],a[0]),a[1]=qi(ji[1],a[1]),a[2]=qi(ji[2],a[2]),s[0]=Xi(ji[0],s[0]),s[1]=Xi(ji[1],s[1]),s[2]=Xi(ji[2],s[2]);return r._dirty=!0,o._dirty=!0,t})};const Zi=Yi;var $i,Ki=Un.extend((function(){return{projectionMatrix:new An,invProjectionMatrix:new An,viewMatrix:new An,frustum:new Zi}}),(function(){this.update(!0)}),{update:function(t){Un.prototype.update.call(this,t),An.invert(this.viewMatrix,this.worldTransform),this.updateProjectionMatrix(),An.invert(this.invProjectionMatrix,this.projectionMatrix),this.frustum.setFromProjection(this.projectionMatrix)},setViewMatrix:function(t){An.copy(this.viewMatrix,t),An.invert(this.worldTransform,t),this.decomposeWorldTransform()},decomposeProjectionMatrix:function(){},setProjectionMatrix:function(t){An.copy(this.projectionMatrix,t),An.invert(this.invProjectionMatrix,t),this.decomposeProjectionMatrix()},updateProjectionMatrix:function(){},castRay:($i=cn.create(),function(t,e){var n=void 0!==e?e:new ln,i=t.array[0],r=t.array[1];return cn.set($i,i,r,-1,1),cn.transformMat4($i,$i,this.invProjectionMatrix.array),cn.transformMat4($i,$i,this.worldTransform.array),De.scale(n.origin.array,$i,1/$i[3]),cn.set($i,i,r,1,1),cn.transformMat4($i,$i,this.invProjectionMatrix.array),cn.transformMat4($i,$i,this.worldTransform.array),De.scale($i,$i,1/$i[3]),De.sub(n.direction.array,$i,n.origin.array),De.normalize(n.direction.array,n.direction.array),n.direction._dirty=!0,n.origin._dirty=!0,n})});const Ji=Ki;var Qi=ke.create(),tr=ke.create(),er={};function nr(t){var e=[],n=Object.keys(t);n.sort();for(var i=0;i<n.length;i++){var r=n[i];e.push(r+" "+t[r])}var o=e.join("\n");if(er[o])return er[o];var a=m.genGUID();return er[o]=a,a}function ir(){this.opaque=[],this.transparent=[],this._opaqueCount=0,this._transparentCount=0}ir.prototype.startCount=function(){this._opaqueCount=0,this._transparentCount=0},ir.prototype.add=function(t,e){e?this.transparent[this._transparentCount++]=t:this.opaque[this._opaqueCount++]=t},ir.prototype.endCount=function(){this.transparent.length=this._transparentCount,this.opaque.length=this._opaqueCount};var rr,or,ar=Un.extend((function(){return{material:null,lights:[],viewBoundingBoxLastFrame:new Gn,shadowUniforms:{},_cameraList:[],_lightUniforms:{},_previousLightNumber:{},_lightNumber:{},_lightProgramKeys:{},_nodeRepository:{},_renderLists:new Mt(20)}}),(function(){this._scene=this}),{addToScene:function(t){t instanceof Ji?(this._cameraList.length>0&&console.warn("Found multiple camera in one scene. Use the fist one."),this._cameraList.push(t)):t instanceof Oi&&this.lights.push(t),t.name&&(this._nodeRepository[t.name]=t)},removeFromScene:function(t){var e;t instanceof Ji?(e=this._cameraList.indexOf(t))>=0&&this._cameraList.splice(e,1):t instanceof Oi&&(e=this.lights.indexOf(t))>=0&&this.lights.splice(e,1),t.name&&delete this._nodeRepository[t.name]},getNode:function(t){return this._nodeRepository[t]},setMainCamera:function(t){var e=this._cameraList.indexOf(t);e>=0&&this._cameraList.splice(e,1),this._cameraList.unshift(t)},getMainCamera:function(){return this._cameraList[0]},getLights:function(){return this.lights},updateLights:function(){var t=this.lights;this._previousLightNumber=this._lightNumber;for(var e={},n=0;n<t.length;n++){var i=t[n];if(!i.invisible){var r=i.group;e[r]||(e[r]={}),e[r][i.type]=e[r][i.type]||0,e[r][i.type]++}}for(var o in this._lightNumber=e,e)this._lightProgramKeys[o]=nr(e[o]);this._updateLightUniforms()},cloneNode:function(t){var e=t.clone(),n={};return function t(e,i){n[e.__uid__]=i;for(var r=0;r<e._children.length;r++){t(e._children[r],i._children[r])}}(t,e),e.traverse((function(t){t.skeleton&&(t.skeleton=t.skeleton.clone(n)),t.material&&(t.material=t.material.clone())})),e},updateRenderList:function(t,e){var n=t.__uid__,i=this._renderLists.get(n);i||(i=new ir,this._renderLists.put(n,i)),i.startCount(),e&&(this.viewBoundingBoxLastFrame.min.set(1/0,1/0,1/0),this.viewBoundingBoxLastFrame.max.set(-1/0,-1/0,-1/0));var r=this.material&&this.material.transparent||!1;return this._doUpdateRenderList(this,t,r,i,e),i.endCount(),i},getRenderList:function(t){return this._renderLists.get(t.__uid__)},_doUpdateRenderList:function(t,e,n,i,r){if(!t.invisible)for(var o=0;o<t._children.length;o++){var a=t._children[o];if(a.isRenderable()){var s=a.isSkinnedMesh()?Qi:a.worldTransform.array,l=a.geometry;ke.multiplyAffine(tr,e.viewMatrix.array,s),(r&&!l.boundingBox||!this.isFrustumCulled(a,e,tr))&&i.add(a,a.material.transparent||n)}a._children.length>0&&this._doUpdateRenderList(a,e,n,i,r)}},isFrustumCulled:(rr=new Gn,or=new An,function(t,e,n){var i=t.boundingBox;if(i||(i=t.skeleton&&t.skeleton.boundingBox?t.skeleton.boundingBox:t.geometry.boundingBox),!i)return!1;if(or.array=n,rr.transformFrom(i,or),t.castShadow&&this.viewBoundingBoxLastFrame.union(rr),t.frustumCulling){if(!rr.intersectBoundingBox(e.frustum.boundingBox))return!0;or.array=e.projectionMatrix.array,rr.max.array[2]>0&&rr.min.array[2]<0&&(rr.max.array[2]=-1e-20),rr.applyProjection(or);var r=rr.min.array,o=rr.max.array;if(o[0]<-1||r[0]>1||o[1]<-1||r[1]>1||o[2]<-1||r[2]>1)return!0}return!1}),_updateLightUniforms:function(){var t=this.lights;t.sort(sr);var e=this._lightUniforms;for(var n in e)for(var i in e[n])e[n][i].value.length=0;for(var r=0;r<t.length;r++){var o=t[r];if(!o.invisible){n=o.group;for(var i in o.uniformTemplates){var a=o.uniformTemplates[i],s=a.value(o);if(null!=s){e[n]||(e[n]={}),e[n][i]||(e[n][i]={type:"",value:[]});var l=e[n][i];switch(l.type=a.type+"v",a.type){case"1i":case"1f":case"t":l.value.push(s);break;case"2f":case"3f":case"4f":for(var h=0;h<s.length;h++)l.value.push(s[h]);break;default:console.error("Unkown light uniform type "+a.type)}}}}}},getLightGroups:function(){var t=[];for(var e in this._lightNumber)t.push(e);return t},getNumberChangedLightGroups:function(){var t=[];for(var e in this._lightNumber)this.isLightNumberChanged(e)&&t.push(e);return t},isLightNumberChanged:function(t){var e=this._previousLightNumber,n=this._lightNumber;for(var i in n[t]){if(!e[t])return!0;if(n[t][i]!==e[t][i])return!0}for(var i in e[t]){if(!n[t])return!0;if(n[t][i]!==e[t][i])return!0}return!1},getLightsNumbers:function(t){return this._lightNumber[t]},getProgramKey:function(t){return this._lightProgramKeys[t]},setLightUniforms:function(){function t(t,e,n){for(var i in t){var r=t[i];if("tv"===r.type){if(!e.hasUniform(i))continue;for(var o=[],a=0;a<r.value.length;a++){var s=r.value[a],l=e.takeCurrentTextureSlot(n,s);o.push(l)}e.setUniform(n.gl,"1iv",i,o)}else e.setUniform(n.gl,r.type,i,r.value)}}return function(e,n,i){t(this._lightUniforms[n],e,i),t(this.shadowUniforms,e,i)}}(),dispose:function(){this.material=null,this._opaqueList=[],this._transparentList=[],this.lights=[],this._lightUniforms={},this._lightNumber={},this._nodeRepository={}}});function sr(t,e){if(e.castShadow&&!t.castShadow)return!0}const lr=ar;var hr=n(6552),cr=ci.isPowerOfTwo,ur=["px","nx","py","ny","pz","nz"],dr=ai.extend((function(){return{image:{px:null,nx:null,py:null,ny:null,pz:null,nz:null},pixels:{px:null,nx:null,py:null,ny:null,pz:null,nz:null},mipmaps:[]}}),{textureType:"textureCube",update:function(t){var e=t.gl;e.bindTexture(e.TEXTURE_CUBE_MAP,this._cache.get("webgl_texture")),this.updateCommon(t);var n=this.format,i=this.type;e.texParameteri(e.TEXTURE_CUBE_MAP,e.TEXTURE_WRAP_S,this.getAvailableWrapS()),e.texParameteri(e.TEXTURE_CUBE_MAP,e.TEXTURE_WRAP_T,this.getAvailableWrapT()),e.texParameteri(e.TEXTURE_CUBE_MAP,e.TEXTURE_MAG_FILTER,this.getAvailableMagFilter()),e.texParameteri(e.TEXTURE_CUBE_MAP,e.TEXTURE_MIN_FILTER,this.getAvailableMinFilter());var r=t.getGLExtension("EXT_texture_filter_anisotropic");(r&&this.anisotropic>1&&e.texParameterf(e.TEXTURE_CUBE_MAP,r.TEXTURE_MAX_ANISOTROPY_EXT,this.anisotropic),36193===i)&&(t.getGLExtension("OES_texture_half_float")||(i=q));if(this.mipmaps.length)for(var o=this.width,a=this.height,s=0;s<this.mipmaps.length;s++){var l=this.mipmaps[s];this._updateTextureData(e,l,s,o,a,n,i),o/=2,a/=2}else this._updateTextureData(e,this,0,this.width,this.height,n,i),!this.NPOT&&this.useMipmap&&e.generateMipmap(e.TEXTURE_CUBE_MAP);e.bindTexture(e.TEXTURE_CUBE_MAP,null)},_updateTextureData:function(t,e,n,i,r,o,a){for(var s=0;s<6;s++){var l=ur[s],h=e.image&&e.image[l];h?t.texImage2D(t.TEXTURE_CUBE_MAP_POSITIVE_X+s,n,o,o,a,h):t.texImage2D(t.TEXTURE_CUBE_MAP_POSITIVE_X+s,n,o,i,r,0,o,a,e.pixels&&e.pixels[l])}},generateMipmap:function(t){var e=t.gl;this.useMipmap&&!this.NPOT&&(e.bindTexture(e.TEXTURE_CUBE_MAP,this._cache.get("webgl_texture")),e.generateMipmap(e.TEXTURE_CUBE_MAP))},bind:function(t){t.gl.bindTexture(t.gl.TEXTURE_CUBE_MAP,this.getWebGLTexture(t))},unbind:function(t){t.gl.bindTexture(t.gl.TEXTURE_CUBE_MAP,null)},isPowerOfTwo:function(){return this.image.px?cr(this.image.px.width)&&cr(this.image.px.height):cr(this.width)&&cr(this.height)},isRenderable:function(){return this.image.px?pr(this.image.px)&&pr(this.image.nx)&&pr(this.image.py)&&pr(this.image.ny)&&pr(this.image.pz)&&pr(this.image.nz):!(!this.width||!this.height)},load:function(t,e){var n=0,i=this;return m.each(t,(function(t,r){var o=bt.createImage();e&&(o.crossOrigin=e),o.onload=function(){0===--n&&(i.dirty(),i.trigger("success",i))},o.onerror=function(){n--},n++,o.src=t,i.image[r]=o})),this}});function pr(t){return t.width>0&&t.height>0}Object.defineProperty(dr.prototype,"width",{get:function(){return this.image&&this.image.px?this.image.px.width:this._width},set:function(t){this.image&&this.image.px?console.warn("Texture from image can't set width"):(this._width!==t&&this.dirty(),this._width=t)}}),Object.defineProperty(dr.prototype,"height",{get:function(){return this.image&&this.image.px?this.image.px.height:this._height},set:function(t){this.image&&this.image.px?console.warn("Texture from image can't set height"):(this._height!==t&&this.dirty(),this._height=t)}});const fr=dr;var gr=Ji.extend({fov:50,aspect:1,near:.1,far:2e3},{updateProjectionMatrix:function(){var t=this.fov/180*Math.PI;this.projectionMatrix.perspective(t,this.aspect,this.near,this.far)},decomposeProjectionMatrix:function(){var t=this.projectionMatrix.array,e=2*Math.atan(1/t[5]);this.fov=e/Math.PI*180,this.aspect=t[5]/t[0],this.near=t[14]/(t[10]-1),this.far=t[14]/(t[10]+1)},clone:function(){var t=Ji.prototype.clone.call(this);return t.fov=this.fov,t.aspect=this.aspect,t.near=this.near,t.far=this.far,t}});const mr=gr;var vr="framebuffer",yr="renderbuffer",_r=yr+"_width",xr=yr+"_height",br=yr+"_attached",wr="depthtexture_attached",Sr=ct,Tr=ut,Mr=ft,Ar=pt,Cr=y.extend({depthBuffer:!0,viewport:null,_width:0,_height:0,_textures:null,_boundRenderer:null},(function(){this._cache=new ri,this._textures={}}),{getTextureWidth:function(){return this._width},getTextureHeight:function(){return this._height},bind:function(t){if(t.__currentFrameBuffer){if(t.__currentFrameBuffer===this)return;console.warn("Renderer already bound with another framebuffer. Unbind it first")}t.__currentFrameBuffer=this;var e=t.gl;e.bindFramebuffer(Sr,this._getFrameBufferGL(t)),this._boundRenderer=t;var n=this._cache;n.put("viewport",t.viewport);var i,r,o=!1;for(var a in this._textures){o=!0;var s=this._textures[a];s&&(i=s.texture.width,r=s.texture.height,this._doAttach(t,s.texture,a,s.target))}this._width=i,this._height=r,!o&&this.depthBuffer&&console.error("Must attach texture before bind, or renderbuffer may have incorrect width and height."),this.viewport?t.setViewport(this.viewport):t.setViewport(0,0,i,r,1);var l=n.get("attached_textures");if(l)for(var a in l)if(!this._textures[a]){var h=l[a];this._doDetach(e,a,h)}if(!n.get(wr)&&this.depthBuffer){n.miss(yr)&&n.put(yr,e.createRenderbuffer());var c=n.get(yr);i===n.get(_r)&&r===n.get(xr)||(e.bindRenderbuffer(Tr,c),e.renderbufferStorage(Tr,e.DEPTH_COMPONENT16,i,r),n.put(_r,i),n.put(xr,r),e.bindRenderbuffer(Tr,null)),n.get(br)||(e.framebufferRenderbuffer(Sr,Mr,Tr,c),n.put(br,!0))}},unbind:function(t){t.__currentFrameBuffer=null,t.gl.bindFramebuffer(Sr,null),this._boundRenderer=null,this._cache.use(t.__uid__);var e=this._cache.get("viewport");e&&t.setViewport(e),this.updateMipmap(t)},updateMipmap:function(t){var e=t.gl;for(var n in this._textures){var i=this._textures[n];if(i){var r=i.texture;if(!r.NPOT&&r.useMipmap&&r.minFilter===ai.LINEAR_MIPMAP_LINEAR){var o="textureCube"===r.textureType?at:ot;e.bindTexture(o,r.getWebGLTexture(t)),e.generateMipmap(o),e.bindTexture(o,null)}}}},checkStatus:function(t){return t.checkFramebufferStatus(Sr)},_getFrameBufferGL:function(t){var e=this._cache;return e.use(t.__uid__),e.miss(vr)&&e.put(vr,t.gl.createFramebuffer()),e.get(vr)},attach:function(t,e,n){if(!t.width)throw new Error("The texture attached to color buffer is not a valid.");e=e||Ar,n=n||ot;var i,r=this._boundRenderer;if(r&&r.gl){var o=this._cache;o.use(r.__uid__),i=o.get("attached_textures")}var a=this._textures[e];if(!a||a.target!==n||a.texture!==t||!i||null==i[e]){var s=!0;r&&(s=this._doAttach(r,t,e,n),this.viewport||r.setViewport(0,0,t.width,t.height,1)),s&&(this._textures[e]=this._textures[e]||{},this._textures[e].texture=t,this._textures[e].target=n)}},_doAttach:function(t,e,n,i){var r=t.gl,o=e.getWebGLTexture(t),a=this._cache.get("attached_textures");if(a&&a[n]){var s=a[n];if(s.texture===e&&s.target===i)return}var l=!0;if(((n=+n)===Mr||n===mt)&&(t.getGLExtension("WEBGL_depth_texture")||(console.error("Depth texture is not supported by the browser"),l=!1),e.format!==X&&e.format!==dt&&(console.error("The texture attached to depth buffer is not a valid."),l=!1),l)){var h=this._cache.get(yr);h&&(r.framebufferRenderbuffer(Sr,Mr,Tr,null),r.deleteRenderbuffer(h),this._cache.put(yr,!1)),this._cache.put(br,!1),this._cache.put(wr,!0)}return r.framebufferTexture2D(Sr,n,i,o,0),a||(a={},this._cache.put("attached_textures",a)),a[n]=a[n]||{},a[n].texture=e,a[n].target=i,l},_doDetach:function(t,e,n){t.framebufferTexture2D(Sr,e,n,null,0);var i=this._cache.get("attached_textures");i&&i[e]&&(i[e]=null),e!==Mr&&e!==mt||this._cache.put(wr,!1)},detach:function(t,e){(this._textures[t]=null,this._boundRenderer)&&(this._cache.use(this._boundRenderer.__uid__),this._doDetach(this._boundRenderer.gl,t,e))},dispose:function(t){var e=t.gl,n=this._cache;n.use(t.__uid__);var i=n.get(yr);i&&e.deleteRenderbuffer(i);var r=n.get(vr);r&&e.deleteFramebuffer(r),n.deleteContext(t.__uid__),this._textures={}}});Cr.DEPTH_ATTACHMENT=Mr,Cr.COLOR_ATTACHMENT0=Ar,Cr.STENCIL_ATTACHMENT=gt,Cr.DEPTH_STENCIL_ATTACHMENT=mt;const Ir=Cr;var Er=["px","nx","py","ny","pz","nz"],kr=y.extend((function(){var t={position:new Qe,far:1e3,near:.1,texture:null,shadowMapPass:null},e=t._cameras={px:new mr({fov:90}),nx:new mr({fov:90}),py:new mr({fov:90}),ny:new mr({fov:90}),pz:new mr({fov:90}),nz:new mr({fov:90})};return e.px.lookAt(Qe.POSITIVE_X,Qe.NEGATIVE_Y),e.nx.lookAt(Qe.NEGATIVE_X,Qe.NEGATIVE_Y),e.py.lookAt(Qe.POSITIVE_Y,Qe.POSITIVE_Z),e.ny.lookAt(Qe.NEGATIVE_Y,Qe.NEGATIVE_Z),e.pz.lookAt(Qe.POSITIVE_Z,Qe.NEGATIVE_Y),e.nz.lookAt(Qe.NEGATIVE_Z,Qe.NEGATIVE_Y),t._frameBuffer=new Ir,t}),{getCamera:function(t){return this._cameras[t]},render:function(t,e,n){var i=t.gl;n||e.update();for(var r=this.texture.width,o=2*Math.atan(r/(r-.5))/Math.PI*180,a=0;a<6;a++){var s=Er[a],l=this._cameras[s];if(Qe.copy(l.position,this.position),l.far=this.far,l.near=this.near,l.fov=o,this.shadowMapPass){l.update();var h=e.getBoundingBox();h.applyTransform(l.viewMatrix),e.viewBoundingBoxLastFrame.copy(h),this.shadowMapPass.render(t,e,l,!0)}this._frameBuffer.attach(this.texture,i.COLOR_ATTACHMENT0,i.TEXTURE_CUBE_MAP_POSITIVE_X+a),this._frameBuffer.bind(t),t.render(e,l,!0),this._frameBuffer.unbind(t)}},dispose:function(t){this._frameBuffer.dispose(t)}});const Lr=kr;var Dr=Ci.extend({dynamic:!1,widthSegments:1,heightSegments:1},(function(){this.build()}),{build:function(){for(var t=this.heightSegments,e=this.widthSegments,n=this.attributes,i=[],r=[],o=[],a=[],s=0;s<=t;s++)for(var l=s/t,h=0;h<=e;h++){var c=h/e;if(i.push([2*c-1,2*l-1,0]),r&&r.push([c,l]),o&&o.push([0,0,1]),h<e&&s<t){var u=h+s*(e+1);a.push([u,u+1,u+e+1]),a.push([u+e+1,u+1,u+e+2])}}n.position.fromArray(i),n.texcoord0.fromArray(r),n.normal.fromArray(o),this.initIndicesFromArray(a),this.boundingBox=new Gn,this.boundingBox.min.set(-1,-1,0),this.boundingBox.max.set(1,1,0)}});const Pr=Dr;var Rr=new An;function Or(t,e,n){Rr.identity();var i=new Pr({widthSegments:e,heightSegments:n});switch(t){case"px":An.translate(Rr,Rr,Qe.POSITIVE_X),An.rotateY(Rr,Rr,Math.PI/2);break;case"nx":An.translate(Rr,Rr,Qe.NEGATIVE_X),An.rotateY(Rr,Rr,-Math.PI/2);break;case"py":An.translate(Rr,Rr,Qe.POSITIVE_Y),An.rotateX(Rr,Rr,-Math.PI/2);break;case"ny":An.translate(Rr,Rr,Qe.NEGATIVE_Y),An.rotateX(Rr,Rr,Math.PI/2);break;case"pz":An.translate(Rr,Rr,Qe.POSITIVE_Z);break;case"nz":An.translate(Rr,Rr,Qe.NEGATIVE_Z),An.rotateY(Rr,Rr,Math.PI)}return i.applyTransform(Rr),i}const Nr=Ci.extend({dynamic:!1,widthSegments:1,heightSegments:1,depthSegments:1,inside:!1},(function(){this.build()}),{build:function(){var t={px:Or("px",this.depthSegments,this.heightSegments),nx:Or("nx",this.depthSegments,this.heightSegments),py:Or("py",this.widthSegments,this.depthSegments),ny:Or("ny",this.widthSegments,this.depthSegments),pz:Or("pz",this.widthSegments,this.heightSegments),nz:Or("nz",this.widthSegments,this.heightSegments)},e=["position","texcoord0","normal"],n=0,i=0;for(var r in t)n+=t[r].vertexCount,i+=t[r].indices.length;for(var o=0;o<e.length;o++)this.attributes[e[o]].init(n);this.indices=new bt.Uint16Array(i);var a=0,s=0;for(var r in t){var l=t[r];for(o=0;o<e.length;o++)for(var h=e[o],c=l.attributes[h].value,u=l.attributes[h].size,d="normal"===h,p=0;p<c.length;p++){var f=c[p];this.inside&&d&&(f=-f),this.attributes[h].value[p+u*s]=f}var g=l.indices.length;for(p=0;p<l.indices.length;p++)this.indices[p+a]=s+l.indices[this.inside?g-p-1:p];a+=l.indices.length,s+=l.vertexCount}this.boundingBox=new Gn,this.boundingBox.max.set(1,1,1),this.boundingBox.min.set(-1,-1,-1)}});Ce.import("@export clay.skybox.vertex\n#define SHADER_NAME skybox\nuniform mat4 world : WORLD;\nuniform mat4 worldViewProjection : WORLDVIEWPROJECTION;\nattribute vec3 position : POSITION;\nvarying vec3 v_WorldPosition;\nvoid main()\n{\n v_WorldPosition = (world * vec4(position, 1.0)).xyz;\n gl_Position = worldViewProjection * vec4(position, 1.0);\n}\n@end\n@export clay.skybox.fragment\n#define PI 3.1415926\nuniform mat4 viewInverse : VIEWINVERSE;\n#ifdef EQUIRECTANGULAR\nuniform sampler2D environmentMap;\n#else\nuniform samplerCube environmentMap;\n#endif\nuniform float lod: 0.0;\nvarying vec3 v_WorldPosition;\n@import clay.util.rgbm\n@import clay.util.srgb\n@import clay.util.ACES\nvoid main()\n{\n vec3 eyePos = viewInverse[3].xyz;\n vec3 V = normalize(v_WorldPosition - eyePos);\n#ifdef EQUIRECTANGULAR\n float phi = acos(V.y);\n float theta = atan(-V.x, V.z) + PI * 0.5;\n vec2 uv = vec2(theta / 2.0 / PI, phi / PI);\n vec4 texel = decodeHDR(texture2D(environmentMap, fract(uv)));\n#else\n #if defined(LOD) || defined(SUPPORT_TEXTURE_LOD)\n vec4 texel = decodeHDR(textureCubeLodEXT(environmentMap, V, lod));\n #else\n vec4 texel = decodeHDR(textureCube(environmentMap, V));\n #endif\n#endif\n#ifdef SRGB_DECODE\n texel = sRGBToLinear(texel);\n#endif\n#ifdef TONEMAPPING\n texel.rgb = ACESToneMapping(texel.rgb);\n#endif\n#ifdef SRGB_ENCODE\n texel = linearTosRGB(texel);\n#endif\n gl_FragColor = encodeHDR(vec4(texel.rgb, 1.0));\n}\n@end");var Fr=li.extend((function(){var t=new Ce({vertex:Ce.source("clay.skybox.vertex"),fragment:Ce.source("clay.skybox.fragment")}),e=new Ht({shader:t,depthMask:!1});return{scene:null,geometry:new Nr,material:e,environmentMap:null,culling:!1,_dummyCamera:new mr}}),(function(){var t=this.scene;t&&this.attachScene(t),this.environmentMap&&this.setEnvironmentMap(this.environmentMap)}),{attachScene:function(t){this.scene&&this.detachScene(),t.skybox=this,this.scene=t,t.on("beforerender",this._beforeRenderScene,this)},detachScene:function(){this.scene&&(this.scene.off("beforerender",this._beforeRenderScene),this.scene.skybox=null),this.scene=null},dispose:function(t){this.detachScene(),this.geometry.dispose(t)},setEnvironmentMap:function(t){"texture2D"===t.textureType?(this.material.define("EQUIRECTANGULAR"),t.minFilter=ai.LINEAR):this.material.undefine("EQUIRECTANGULAR"),this.material.set("environmentMap",t)},getEnvironmentMap:function(){return this.material.get("environmentMap")},_beforeRenderScene:function(t,e,n){this.renderSkybox(t,n)},renderSkybox:function(t,e){var n=this._dummyCamera;n.aspect=t.getViewportAspect(),n.fov=e.fov||50,n.updateProjectionMatrix(),An.invert(n.invProjectionMatrix,n.projectionMatrix),n.worldTransform.copy(e.worldTransform),n.viewMatrix.copy(e.viewMatrix),this.position.copy(e.getWorldPosition()),this.update(),t.gl.disable(t.gl.BLEND),this.material.get("lod")>0?this.material.define("fragment","LOD"):this.material.undefine("fragment","LOD"),t.renderPass([this],n)}});const Br=Fr,zr=Br;function Gr(t){return t.charCodeAt(0)+(t.charCodeAt(1)<<8)+(t.charCodeAt(2)<<16)+(t.charCodeAt(3)<<24)}var Vr=Gr("DXT1"),jr=Gr("DXT3"),Hr=Gr("DXT5");const Wr={parse:function(t,e){var n=new Int32Array(t,0,31);if(542327876!==n[0])return null;if(4&!n(20))return null;var i,r,o=n(21),a=n[4],s=n[3],l=512&n[28],h=131072&n[2];switch(o){case Vr:i=8,r=ai.COMPRESSED_RGB_S3TC_DXT1_EXT;break;case jr:i=16,r=ai.COMPRESSED_RGBA_S3TC_DXT3_EXT;break;case Hr:i=16,r=ai.COMPRESSED_RGBA_S3TC_DXT5_EXT;break;default:return null}var c=n[1]+4,u=l?6:1,d=1;h&&(d=Math.max(1,n[7]));for(var p=[],f=0;f<u;f++){var g=a,m=s;p[f]=new fi({width:g,height:m,format:r});for(var v=[],y=0;y<d;y++){var _=Math.max(4,g)/4*Math.max(4,m)/4*i,x=new Uint8Array(t,c,_);c+=_,g*=.5,m*=.5,v[y]=x}p[f].pixels=v[0],h&&(p[f].mipmaps=v)}if(!e)return p[0];e.width=p[0].width,e.height=p[0].height,e.format=p[0].format,e.pixels=p[0].pixels,e.mipmaps=p[0].mipmaps}};var Ur=String.fromCharCode;function qr(t,e,n,i){if(t[3]>0){var r=Math.pow(2,t[3]-128-8+i);e[n+0]=t[0]*r,e[n+1]=t[1]*r,e[n+2]=t[2]*r}else e[n+0]=0,e[n+1]=0,e[n+2]=0;return e[n+3]=1,e}function Xr(t,e,n,i){for(var r,o,a=0,s=0,l=i;l>0;)if(t[s][0]=e[n++],t[s][1]=e[n++],t[s][2]=e[n++],t[s][3]=e[n++],1===t[s][0]&&1===t[s][1]&&1===t[s][2]){for(var h=t[s][3]<<a>>>0;h>0;h--)r=t[s-1],(o=t[s])[0]=r[0],o[1]=r[1],o[2]=r[2],o[3]=r[3],s++,l--;a+=8}else s++,l--,a=0;return n}function Yr(t,e,n,i){if(i<8|i>32767)return Xr(t,e,n,i);if(2!=(r=e[n++]))return Xr(t,e,n-1,i);if(t[0][1]=e[n++],t[0][2]=e[n++],r=e[n++],(t[0][2]<<8>>>0|r)>>>0!==i)return null;for(var r=0;r<4;r++)for(var o=0;o<i;){var a=e[n++];if(a>128){a=(127&a)>>>0;for(var s=e[n++];a--;)t[o++][r]=s}else for(;a--;)t[o++][r]=e[n++]}return n}var Zr={parseRGBE:function(t,e,n){null==n&&(n=0);var i=new Uint8Array(t),r=i.length;if("#?"===function(t,e,n){for(var i="",r=e;r<n;r++)i+=Ur(t[r]);return i}(i,0,2)){for(var o=2;o<r&&("\n"!==Ur(i[o])||"\n"!==Ur(i[o+1]));o++);if(!(o>=r)){o+=2;for(var a="";o<r;o++){var s=Ur(i[o]);if("\n"===s)break;a+=s}var l=a.split(" "),h=parseInt(l[1]),c=parseInt(l[3]);if(c&&h){for(var u=o+1,d=[],p=0;p<c;p++){d[p]=[];for(var f=0;f<4;f++)d[p][f]=0}for(var g=new Float32Array(c*h*4),m=0,v=0;v<h;v++){if(!(u=Yr(d,i,u,c)))return null;for(p=0;p<c;p++)qr(d[p],g,m,n),m+=4}return e||(e=new fi),e.width=c,e.height=h,e.pixels=g,e.type=ai.FLOAT,e}}}},parseRGBEFromPNG:function(t){}};const $r=Zr;var Kr={loadTexture:function(t,e,n,i){var r;if("function"==typeof e?(i=n=e,e={}):e=e||{},"string"==typeof t){if(t.match(/.hdr$/)||"hdr"===e.fileType)return r=new fi({width:0,height:0,sRGB:!1}),Kr._fetchTexture(t,(function(t){$r.parseRGBE(t,r,e.exposure),r.dirty(),n&&n(r)}),i),r;t.match(/.dds$/)||"dds"===e.fileType?(r=new fi({width:0,height:0}),Kr._fetchTexture(t,(function(t){Wr.parse(t,r),r.dirty(),n&&n(r)}),i)):((r=new fi).load(t),r.success(n),r.error(i))}else"object"==typeof t&&void 0!==t.px&&((r=new fr).load(t),r.success(n),r.error(i));return r},loadPanorama:function(t,e,n,i,r,o){var a=this;"function"==typeof i?(o=r=i,i={}):i=i||{},Kr.loadTexture(e,i,(function(e){e.flipY=i.flipY||!1,a.panoramaToCubeMap(t,e,n,i),e.dispose(t),r&&r(n)}),o)},panoramaToCubeMap:function(t,e,n,i){var r=new Lr,o=new zr({scene:new lr});return o.setEnvironmentMap(e),(i=i||{}).encodeRGBM&&o.material.define("fragment","RGBM_ENCODE"),n.sRGB=e.sRGB,r.texture=n,r.render(t,o.scene),r.texture=null,r.dispose(t),n},heightToNormal:function(t,e){var n=document.createElement("canvas"),i=n.width=t.width,r=n.height=t.height,o=n.getContext("2d");o.drawImage(t,0,0,i,r),e=e||!1;for(var a=o.getImageData(0,0,i,r),s=o.createImageData(i,r),l=0;l<a.data.length;l+=4){if(e){var h=a.data[l],c=a.data[l+1],u=a.data[l+2];if(Math.abs(h-c)+Math.abs(c-u)>20)return console.warn("Given image is not a height map"),t}var d,p,f,g;l%(4*i)==0?(d=a.data[l],f=a.data[l+4]):l%(4*i)==4*(i-1)?(d=a.data[l-4],f=a.data[l]):(d=a.data[l-4],f=a.data[l+4]),l<4*i?(p=a.data[l],g=a.data[l+4*i]):l>i*(r-1)*4?(p=a.data[l-4*i],g=a.data[l]):(p=a.data[l-4*i],g=a.data[l+4*i]),s.data[l]=d-f+127,s.data[l+1]=p-g+127,s.data[l+2]=255,s.data[l+3]=255}return o.putImageData(s,0,0),n},isHeightImage:function(t,e,n){if(!t||!t.width||!t.height)return!1;var i=document.createElement("canvas"),r=i.getContext("2d"),o=e||32;n=n||20,i.width=i.height=o,r.drawImage(t,0,0,o,o);for(var a=r.getImageData(0,0,o,o),s=0;s<a.data.length;s+=4){var l=a.data[s],h=a.data[s+1],c=a.data[s+2];if(Math.abs(l-h)+Math.abs(h-c)>n)return!1}return!0},_fetchTexture:function(t,e,n){bt.request.get({url:t,responseType:"arraybuffer",onload:e,onerror:n})},createChessboard:function(t,e,n,i){t=t||512,e=e||64,n=n||"black",i=i||"white";var r=Math.ceil(t/e),o=document.createElement("canvas");o.width=t,o.height=t;var a=o.getContext("2d");a.fillStyle=i,a.fillRect(0,0,t,t),a.fillStyle=n;for(var s=0;s<r;s++)for(var l=0;l<r;l++){(l%2?s%2:s%2-1)&&a.fillRect(s*e,l*e,e,e)}return new fi({image:o,anisotropic:8})},createBlank:function(t){var e=document.createElement("canvas");e.width=1,e.height=1;var n=e.getContext("2d");return n.fillStyle=t,n.fillRect(0,0,1,1),new fi({image:e})}};const Jr=Kr;var Qr=["mousedown","mouseup","mousemove","mouseover","mouseout","click","dblclick","contextmenu"];function to(t){return"_on"+t}var eo=function(t){var e=this;this._texture=new fi({anisotropic:32,flipY:!1,surface:this,dispose:function(t){e.dispose(),fi.prototype.dispose.call(this,t)}}),Qr.forEach((function(t){this[to(t)]=function(e){e.triangle&&this._meshes.forEach((function(n){this.dispatchEvent(t,n,e.triangle,e.point)}),this)}}),this),this._meshes=[],t&&this.setECharts(t),this.onupdate=null};eo.prototype={constructor:eo,getTexture:function(){return this._texture},setECharts:function(t){this._chart=t;var e=t.getDom();if(e instanceof HTMLCanvasElement){var n=this,i=t.getZr(),r=i.__oldRefreshImmediately||i.refreshImmediately;i.refreshImmediately=function(){r.call(this),n._texture.dirty(),n.onupdate&&n.onupdate()},i.__oldRefreshImmediately=r}else console.error("ECharts must init on canvas if it is used as texture."),e=document.createElement("canvas");this._texture.image=e,this._texture.dirty(),this.onupdate&&this.onupdate()},dispatchEvent:function(){var t=new Qe,e=new Qe,n=new Qe,i=new Jt,r=new Jt,o=new Jt,a=new Jt,s=new Qe;return function(l,h,c,u){var d=h.geometry,p=d.attributes.position,f=d.attributes.texcoord0,g=Qe.dot,m=Qe.cross;p.get(c[0],t.array),p.get(c[1],e.array),p.get(c[2],n.array),f.get(c[0],i.array),f.get(c[1],r.array),f.get(c[2],o.array),m(s,e,n);var v=g(t,s),y=g(u,s)/v;m(s,n,t);var _=g(u,s)/v;m(s,t,e);var x=g(u,s)/v;Jt.scale(a,i,y),Jt.scaleAndAdd(a,a,r,_),Jt.scaleAndAdd(a,a,o,x);var b=a.x*this._chart.getWidth(),w=a.y*this._chart.getHeight();this._chart.getZr().handler.dispatch(l,{zrX:b,zrY:w})}}(),attachToMesh:function(t){this._meshes.indexOf(t)>=0||(Qr.forEach((function(e){t.on(e,this[to(e)],this)}),this),this._meshes.push(t))},detachFromMesh:function(t){var e=this._meshes.indexOf(t);e>=0&&this._meshes.splice(e,1),Qr.forEach((function(e){t.off(e,this[to(e)])}),this)},dispose:function(){this._meshes.forEach((function(t){this.detachFromMesh(t)}),this)}};const no=eo;var io=Ji.extend({left:-1,right:1,near:-1,far:1,top:1,bottom:-1},{updateProjectionMatrix:function(){this.projectionMatrix.ortho(this.left,this.right,this.bottom,this.top,this.near,this.far)},decomposeProjectionMatrix:function(){var t=this.projectionMatrix.array;this.left=(-1-t[12])/t[0],this.right=(1-t[12])/t[0],this.top=(1-t[13])/t[5],this.bottom=(-1-t[13])/t[5],this.near=-(-1-t[14])/t[10],this.far=-(1-t[14])/t[10]},clone:function(){var t=Ji.prototype.clone.call(this);return t.left=this.left,t.right=this.right,t.near=this.near,t.far=this.far,t.top=this.top,t.bottom=this.bottom,t}});const ro=io;Ce.import("\n@export clay.compositor.vertex\nuniform mat4 worldViewProjection : WORLDVIEWPROJECTION;\nattribute vec3 position : POSITION;\nattribute vec2 texcoord : TEXCOORD_0;\nvarying vec2 v_Texcoord;\nvoid main()\n{\n v_Texcoord = texcoord;\n gl_Position = worldViewProjection * vec4(position, 1.0);\n}\n@end");var oo=new Pr,ao=new li({geometry:oo,frustumCulling:!1}),so=new ro;const lo=y.extend((function(){return{fragment:"",outputs:null,material:null,blendWithPrevious:!1,clearColor:!1,clearDepth:!0}}),(function(){var t=new Ce(Ce.source("clay.compositor.vertex"),this.fragment),e=new Ht({shader:t});e.enableTexturesAll(),this.material=e}),{setUniform:function(t,e){this.material.setUniform(t,e)},getUniform:function(t){var e=this.material.uniforms[t];if(e)return e.value},attachOutput:function(t,e){this.outputs||(this.outputs={}),e=e||pt,this.outputs[e]=t},detachOutput:function(t){for(var e in this.outputs)this.outputs[e]===t&&(this.outputs[e]=null)},bind:function(t,e){if(this.outputs)for(var n in this.outputs){var i=this.outputs[n];i&&e.attach(i,n)}e&&e.bind(t)},unbind:function(t,e){e.unbind(t)},render:function(t,e){var n=t.gl;if(e){this.bind(t,e);var i=t.getGLExtension("EXT_draw_buffers");if(i&&this.outputs){var r=[];for(var o in this.outputs)(o=+o)>=n.COLOR_ATTACHMENT0&&o<=n.COLOR_ATTACHMENT0+8&&r.push(o);i.drawBuffersEXT(r)}}this.trigger("beforerender",this,t);var a=this.clearDepth?n.DEPTH_BUFFER_BIT:0;if(n.depthMask(!0),this.clearColor){a|=n.COLOR_BUFFER_BIT,n.colorMask(!0,!0,!0,!0);var s=this.clearColor;Array.isArray(s)&&n.clearColor(s[0],s[1],s[2],s[3])}n.clear(a),this.blendWithPrevious?(n.enable(n.BLEND),this.material.transparent=!0):(n.disable(n.BLEND),this.material.transparent=!1),this.renderQuad(t),this.trigger("afterrender",this,t),e&&this.unbind(t,e)},renderQuad:function(t){ao.material=this.material,t.renderPass([ao],so)},dispose:function(t){}});var ho={},co=["px","nx","py","ny","pz","nz"];ho.prefilterEnvironmentMap=function(t,e,n,i,r){r&&i||(i=ho.generateNormalDistribution(),r=ho.integrateBRDF(t,i));var o=(n=n||{}).width||64,a=n.height||64,s=n.type||e.type,l=new fr({width:o,height:a,type:s,flipY:!1,mipmaps:[]});l.isPowerOfTwo()||console.warn("Width and height must be power of two to enable mipmap.");var h=Math.min(o,a),c=Math.log(h)/Math.log(2)+1,u=new Ht({shader:new Ce({vertex:Ce.source("clay.skybox.vertex"),fragment:"#define SHADER_NAME prefilter\n#define SAMPLE_NUMBER 1024\n#define PI 3.14159265358979\nuniform mat4 viewInverse : VIEWINVERSE;\nuniform samplerCube environmentMap;\nuniform sampler2D normalDistribution;\nuniform float roughness : 0.5;\nvarying vec2 v_Texcoord;\nvarying vec3 v_WorldPosition;\n@import clay.util.rgbm\nvec3 importanceSampleNormal(float i, float roughness, vec3 N) {\n vec3 H = texture2D(normalDistribution, vec2(roughness, i)).rgb;\n vec3 upVector = abs(N.y) > 0.999 ? vec3(1.0, 0.0, 0.0) : vec3(0.0, 1.0, 0.0);\n vec3 tangentX = normalize(cross(N, upVector));\n vec3 tangentZ = cross(N, tangentX);\n return normalize(tangentX * H.x + N * H.y + tangentZ * H.z);\n}\nvoid main() {\n vec3 eyePos = viewInverse[3].xyz;\n vec3 V = normalize(v_WorldPosition - eyePos);\n vec3 N = V;\n vec3 prefilteredColor = vec3(0.0);\n float totalWeight = 0.0;\n float fMaxSampleNumber = float(SAMPLE_NUMBER);\n for (int i = 0; i < SAMPLE_NUMBER; i++) {\n vec3 H = importanceSampleNormal(float(i) / fMaxSampleNumber, roughness, N);\n vec3 L = reflect(-V, H);\n float NoL = clamp(dot(N, L), 0.0, 1.0);\n if (NoL > 0.0) {\n prefilteredColor += decodeHDR(textureCube(environmentMap, L)).rgb * NoL;\n totalWeight += NoL;\n }\n }\n gl_FragColor = encodeHDR(vec4(prefilteredColor / totalWeight, 1.0));\n}\n"})});u.set("normalDistribution",i),n.encodeRGBM&&u.define("fragment","RGBM_ENCODE"),n.decodeRGBM&&u.define("fragment","RGBM_DECODE");var d,p=new lr;if("texture2D"===e.textureType){var f=new fr({width:o,height:a,type:s===ai.FLOAT?ai.HALF_FLOAT:s});Jr.panoramaToCubeMap(t,e,f,{encodeRGBM:n.decodeRGBM}),e=f}(d=new Br({scene:p,material:u})).material.set("environmentMap",e);var g=new Lr({texture:l});n.encodeRGBM&&(s=l.type=ai.UNSIGNED_BYTE);for(var m=new fi({width:o,height:a,type:s}),v=new Ir({depthBuffer:!1}),y=bt[s===ai.UNSIGNED_BYTE?"Uint8Array":"Float32Array"],_=0;_<c;_++){l.mipmaps[_]={pixels:{}},d.material.set("roughness",_/(c-1));for(var x=m.width,b=2*Math.atan(x/(x-.5))/Math.PI*180,w=0;w<co.length;w++){var S=new y(m.width*m.height*4);v.attach(m),v.bind(t);var T=g.getCamera(co[w]);T.fov=b,t.render(p,T),t.gl.readPixels(0,0,m.width,m.height,ai.RGBA,s,S),v.unbind(t),l.mipmaps[_].pixels[co[w]]=S}m.width/=2,m.height/=2,m.dirty()}return v.dispose(t),m.dispose(t),d.dispose(t),i.dispose(t),{environmentMap:l,brdfLookup:r,normalDistribution:i,maxMipmapLevel:c}},ho.integrateBRDF=function(t,e){e=e||ho.generateNormalDistribution();var n=new Ir({depthBuffer:!1}),i=new lo({fragment:"#define SAMPLE_NUMBER 1024\n#define PI 3.14159265358979\nuniform sampler2D normalDistribution;\nuniform vec2 viewportSize : [512, 256];\nconst vec3 N = vec3(0.0, 0.0, 1.0);\nconst float fSampleNumber = float(SAMPLE_NUMBER);\nvec3 importanceSampleNormal(float i, float roughness, vec3 N) {\n vec3 H = texture2D(normalDistribution, vec2(roughness, i)).rgb;\n vec3 upVector = abs(N.y) > 0.999 ? vec3(1.0, 0.0, 0.0) : vec3(0.0, 1.0, 0.0);\n vec3 tangentX = normalize(cross(N, upVector));\n vec3 tangentZ = cross(N, tangentX);\n return normalize(tangentX * H.x + N * H.y + tangentZ * H.z);\n}\nfloat G_Smith(float roughness, float NoV, float NoL) {\n float k = roughness * roughness / 2.0;\n float G1V = NoV / (NoV * (1.0 - k) + k);\n float G1L = NoL / (NoL * (1.0 - k) + k);\n return G1L * G1V;\n}\nvoid main() {\n vec2 uv = gl_FragCoord.xy / viewportSize;\n float NoV = uv.x;\n float roughness = uv.y;\n vec3 V;\n V.x = sqrt(1.0 - NoV * NoV);\n V.y = 0.0;\n V.z = NoV;\n float A = 0.0;\n float B = 0.0;\n for (int i = 0; i < SAMPLE_NUMBER; i++) {\n vec3 H = importanceSampleNormal(float(i) / fSampleNumber, roughness, N);\n vec3 L = reflect(-V, H);\n float NoL = clamp(L.z, 0.0, 1.0);\n float NoH = clamp(H.z, 0.0, 1.0);\n float VoH = clamp(dot(V, H), 0.0, 1.0);\n if (NoL > 0.0) {\n float G = G_Smith(roughness, NoV, NoL);\n float G_Vis = G * VoH / (NoH * NoV);\n float Fc = pow(1.0 - VoH, 5.0);\n A += (1.0 - Fc) * G_Vis;\n B += Fc * G_Vis;\n }\n }\n gl_FragColor = vec4(vec2(A, B) / fSampleNumber, 0.0, 1.0);\n}\n"}),r=new fi({width:512,height:256,type:ai.HALF_FLOAT,wrapS:ai.CLAMP_TO_EDGE,wrapT:ai.CLAMP_TO_EDGE,minFilter:ai.NEAREST,magFilter:ai.NEAREST,useMipmap:!1});return i.setUniform("normalDistribution",e),i.setUniform("viewportSize",[512,256]),i.attachOutput(r),i.render(t,n),n.dispose(t),r},ho.generateNormalDistribution=function(t,e){for(var n=new fi({width:t=t||256,height:e=e||1024,type:ai.FLOAT,minFilter:ai.NEAREST,magFilter:ai.NEAREST,wrapS:ai.CLAMP_TO_EDGE,wrapT:ai.CLAMP_TO_EDGE,useMipmap:!1}),i=new Float32Array(e*t*4),r=[],o=0;o<t;o++){for(var a=o/t,s=a*a,l=0;l<e;l++){var h=(l<<16|l>>>16)>>>0;h=(((16711935&(h=((252645135&(h=((858993459&(h=((1431655765&h)<<1|(2863311530&h)>>>1)>>>0))<<2|(3435973836&h)>>>2)>>>0))<<4|(4042322160&h)>>>4)>>>0))<<8|(4278255360&h)>>>8)>>>0)/4294967296;var c=Math.sqrt((1-h)/(1+(s*s-1)*h));r[l]=c}for(l=0;l<e;l++){var u=4*(l*t+o),d=(c=r[l],Math.sqrt(1-c*c)),p=l/e,f=2*Math.PI*p;i[u]=d*Math.cos(f),i[u+1]=c,i[u+2]=d*Math.sin(f),i[u+3]=1}}return n.pixels=i,n};const uo=ho;var po=Oi.extend({cubemap:null,castShadow:!1,_normalDistribution:null,_brdfLookup:null},{type:"AMBIENT_CUBEMAP_LIGHT",prefilter:function(t,e){if(t.getGLExtension("EXT_shader_texture_lod")){this._brdfLookup||(this._normalDistribution=uo.generateNormalDistribution(),this._brdfLookup=uo.integrateBRDF(t,this._normalDistribution));var n=this.cubemap;if(!n.__prefiltered){var i=uo.prefilterEnvironmentMap(t,n,{encodeRGBM:!0,width:e,height:e},this._normalDistribution,this._brdfLookup);this.cubemap=i.environmentMap,this.cubemap.__prefiltered=!0,n.dispose(t)}}else console.warn("Device not support textureCubeLodEXT")},getBRDFLookup:function(){return this._brdfLookup},uniformTemplates:{ambientCubemapLightColor:{type:"3f",value:function(t){var e=t.color,n=t.intensity;return[e[0]*n,e[1]*n,e[2]*n]}},ambientCubemapLightCubemap:{type:"t",value:function(t){return t.cubemap}},ambientCubemapLightBRDFLookup:{type:"t",value:function(t){return t._brdfLookup}}}});const fo=po;var go=Oi.extend({castShadow:!1,coefficients:[]},(function(){this._coefficientsTmpArr=new bt.Float32Array(27)}),{type:"AMBIENT_SH_LIGHT",uniformTemplates:{ambientSHLightColor:{type:"3f",value:function(t){var e=t.color,n=t.intensity;return[e[0]*n,e[1]*n,e[2]*n]}},ambientSHLightCoefficients:{type:"3f",value:function(t){for(var e=t._coefficientsTmpArr,n=0;n<t.coefficients.length;n++)e[n]=t.coefficients[n];return e}}}});const mo=go;var vo={},yo=["px","nx","py","ny","pz","nz"];function _o(t,e){var n=t[0],i=t[1],r=t[2];return 0===e?1:1===e?n:2===e?i:3===e?r:4===e?n*r:5===e?i*r:6===e?n*i:7===e?3*r*r-1:n*n-i*i}var xo={px:[2,1,0,-1,-1,1],nx:[2,1,0,1,-1,-1],py:[0,2,1,1,-1,-1],ny:[0,2,1,1,1,1],pz:[0,1,2,-1,-1,-1],nz:[0,1,2,1,-1,1]};vo.projectEnvironmentMap=function(t,e,n){var i;(n=n||{}).lod=n.lod||0;var r=new lr,o=64;"texture2D"===e.textureType?i=new zr({scene:r,environmentMap:e}):(o=e.image&&e.image.px?e.image.px.width:e.width,i=new Br({scene:r,environmentMap:e}));var a=Math.ceil(o/Math.pow(2,n.lod)),s=Math.ceil(o/Math.pow(2,n.lod)),l=new fi({width:a,height:s}),h=new Ir;i.material.define("fragment","RGBM_ENCODE"),n.decodeRGBM&&i.material.define("fragment","RGBM_DECODE"),i.material.set("lod",n.lod);for(var c=new Lr({texture:l}),u={},d=0;d<yo.length;d++){u[yo[d]]=new Uint8Array(a*s*4);var p=c.getCamera(yo[d]);p.fov=90,h.attach(l),h.bind(t),t.render(r,p),t.gl.readPixels(0,0,a,s,ai.RGBA,ai.UNSIGNED_BYTE,u[yo[d]]),h.unbind(t)}return i.dispose(t),h.dispose(t),l.dispose(t),function(t,e,n,i){for(var r=new bt.Float32Array(27),o=De.create(),a=De.create(),s=De.create(),l=0;l<9;l++){for(var h=De.create(),c=0;c<yo.length;c++){for(var u=e[yo[c]],d=De.create(),p=0,f=0,g=xo[yo[c]],m=0;m<i;m++)for(var v=0;v<n;v++){o[0]=v/(n-1)*2-1,o[1]=m/(i-1)*2-1,o[2]=-1,De.normalize(o,o),s[0]=o[g[0]]*g[3],s[1]=o[g[1]]*g[4],s[2]=o[g[2]]*g[5],a[0]=u[f++]/255,a[1]=u[f++]/255,a[2]=u[f++]/255;var y=u[f++]/255*8.12;a[0]*=y,a[1]*=y,a[2]*=y,De.scaleAndAdd(d,d,a,_o(s,l)*-o[2]),p+=-o[2]}De.scaleAndAdd(h,h,d,1/p)}r[3*l]=h[0]/6,r[3*l+1]=h[1]/6,r[3*l+2]=h[2]/6}return r}(0,u,a,s)};const bo=vo;const wo={firstNotNull:function(){for(var t=0,e=arguments.length;t<e;t++)if(null!=arguments[t])return arguments[t]},queryDataIndex:function(t,e){return null!=e.dataIndexInside?e.dataIndexInside:null!=e.dataIndex?i.ZS.isArray(e.dataIndex)?i.ZS.map(e.dataIndex,(function(e){return t.indexOfRawIndex(e)})):t.indexOfRawIndex(e.dataIndex):null!=e.name?i.ZS.isArray(e.name)?i.ZS.map(e.name,(function(e){return t.indexOfName(e)})):t.indexOfName(e.name):void 0}};var So=Ci.extend({dynamic:!1,widthSegments:40,heightSegments:20,phiStart:0,phiLength:2*Math.PI,thetaStart:0,thetaLength:Math.PI,radius:1},(function(){this.build()}),{build:function(){var t=this.heightSegments,e=this.widthSegments,n=this.attributes.position,i=this.attributes.texcoord0,r=this.attributes.normal,o=(e+1)*(t+1);n.init(o),i.init(o),r.init(o);var a,s,l,h,c,u,d,p,f,g,m,v=o>65535?Uint32Array:Uint16Array,y=this.indices=new v(e*t*6),_=this.radius,x=this.phiStart,b=this.phiLength,w=this.thetaStart,S=this.thetaLength,T=[],M=[],A=0,C=1/(_=this.radius);for(d=0;d<=t;d++)for(u=0;u<=e;u++)h=u/e,c=d/t,a=-_*Math.cos(x+h*b)*Math.sin(w+c*S),s=_*Math.cos(w+c*S),l=_*Math.sin(x+h*b)*Math.sin(w+c*S),T[0]=a,T[1]=s,T[2]=l,M[0]=h,M[1]=c,n.set(A,T),i.set(A,M),T[0]*=C,T[1]*=C,T[2]*=C,r.set(A,T),A++;var I=e+1,E=0;for(d=0;d<t;d++)for(u=0;u<e;u++)f=d*I+u,p=d*I+u+1,m=(d+1)*I+u+1,g=(d+1)*I+u,y[E++]=p,y[E++]=f,y[E++]=m,y[E++]=f,y[E++]=g,y[E++]=m;this.boundingBox=new Gn,this.boundingBox.max.set(_,_,_),this.boundingBox.min.set(-_,-_,-_)}});const To=So;var Mo=Oi.extend({castShadow:!1},{type:"AMBIENT_LIGHT",uniformTemplates:{ambientLightColor:{type:"3f",value:function(t){var e=t.color,n=t.intensity;return[e[0]*n,e[1]*n,e[2]*n]}}}});const Ao=Mo;var Co=Oi.extend({shadowBias:.001,shadowSlopeScale:2,shadowCascade:1,cascadeSplitLogFactor:.2},{type:"DIRECTIONAL_LIGHT",uniformTemplates:{directionalLightDirection:{type:"3f",value:function(t){return t.__dir=t.__dir||new Qe,t.__dir.copy(t.worldTransform.z).normalize().negate().array}},directionalLightColor:{type:"3f",value:function(t){var e=t.color,n=t.intensity;return[e[0]*n,e[1]*n,e[2]*n]}}},clone:function(){var t=Oi.prototype.clone.call(this);return t.shadowBias=this.shadowBias,t.shadowSlopeScale=this.shadowSlopeScale,t}});const Io=Co;var Eo=Oi.extend({range:100,castShadow:!1},{type:"POINT_LIGHT",uniformTemplates:{pointLightPosition:{type:"3f",value:function(t){return t.getWorldPosition().array}},pointLightRange:{type:"1f",value:function(t){return t.range}},pointLightColor:{type:"3f",value:function(t){var e=t.color,n=t.intensity;return[e[0]*n,e[1]*n,e[2]*n]}}},clone:function(){var t=Oi.prototype.clone.call(this);return t.range=this.range,t}});const ko=Eo;var Lo=Oi.extend({range:20,umbraAngle:30,penumbraAngle:45,falloffFactor:2,shadowBias:.001,shadowSlopeScale:2},{type:"SPOT_LIGHT",uniformTemplates:{spotLightPosition:{type:"3f",value:function(t){return t.getWorldPosition().array}},spotLightRange:{type:"1f",value:function(t){return t.range}},spotLightUmbraAngleCosine:{type:"1f",value:function(t){return Math.cos(t.umbraAngle*Math.PI/180)}},spotLightPenumbraAngleCosine:{type:"1f",value:function(t){return Math.cos(t.penumbraAngle*Math.PI/180)}},spotLightFalloffFactor:{type:"1f",value:function(t){return t.falloffFactor}},spotLightDirection:{type:"3f",value:function(t){return t.__dir=t.__dir||new Qe,t.__dir.copy(t.worldTransform.z).negate().array}},spotLightColor:{type:"3f",value:function(t){var e=t.color,n=t.intensity;return[e[0]*n,e[1]*n,e[2]*n]}}},clone:function(){var t=Oi.prototype.clone.call(this);return t.range=this.range,t.umbraAngle=this.umbraAngle,t.penumbraAngle=this.penumbraAngle,t.falloffFactor=this.falloffFactor,t.shadowBias=this.shadowBias,t.shadowSlopeScale=this.shadowSlopeScale,t}});const Do=Lo;var Po=function(t,e,n,i){t=t||0,e=e||0,n=n||0,i=i||0,this.array=cn.fromValues(t,e,n,i),this._dirty=!0};Po.prototype={constructor:Po,add:function(t){return cn.add(this.array,this.array,t.array),this._dirty=!0,this},set:function(t,e,n,i){return this.array[0]=t,this.array[1]=e,this.array[2]=n,this.array[3]=i,this._dirty=!0,this},setArray:function(t){return this.array[0]=t[0],this.array[1]=t[1],this.array[2]=t[2],this.array[3]=t[3],this._dirty=!0,this},clone:function(){return new Po(this.x,this.y,this.z,this.w)},copy:function(t){return cn.copy(this.array,t.array),this._dirty=!0,this},dist:function(t){return cn.dist(this.array,t.array)},distance:function(t){return cn.distance(this.array,t.array)},div:function(t){return cn.div(this.array,this.array,t.array),this._dirty=!0,this},divide:function(t){return cn.divide(this.array,this.array,t.array),this._dirty=!0,this},dot:function(t){return cn.dot(this.array,t.array)},len:function(){return cn.len(this.array)},length:function(){return cn.length(this.array)},lerp:function(t,e,n){return cn.lerp(this.array,t.array,e.array,n),this._dirty=!0,this},min:function(t){return cn.min(this.array,this.array,t.array),this._dirty=!0,this},max:function(t){return cn.max(this.array,this.array,t.array),this._dirty=!0,this},mul:function(t){return cn.mul(this.array,this.array,t.array),this._dirty=!0,this},multiply:function(t){return cn.multiply(this.array,this.array,t.array),this._dirty=!0,this},negate:function(){return cn.negate(this.array,this.array),this._dirty=!0,this},normalize:function(){return cn.normalize(this.array,this.array),this._dirty=!0,this},random:function(t){return cn.random(this.array,t),this._dirty=!0,this},scale:function(t){return cn.scale(this.array,this.array,t),this._dirty=!0,this},scaleAndAdd:function(t,e){return cn.scaleAndAdd(this.array,this.array,t.array,e),this._dirty=!0,this},sqrDist:function(t){return cn.sqrDist(this.array,t.array)},squaredDistance:function(t){return cn.squaredDistance(this.array,t.array)},sqrLen:function(){return cn.sqrLen(this.array)},squaredLength:function(){return cn.squaredLength(this.array)},sub:function(t){return cn.sub(this.array,this.array,t.array),this._dirty=!0,this},subtract:function(t){return cn.subtract(this.array,this.array,t.array),this._dirty=!0,this},transformMat4:function(t){return cn.transformMat4(this.array,this.array,t.array),this._dirty=!0,this},transformQuat:function(t){return cn.transformQuat(this.array,this.array,t.array),this._dirty=!0,this},toString:function(){return"["+Array.prototype.join.call(this.array,",")+"]"},toArray:function(){return Array.prototype.slice.call(this.array)}};var Ro=Object.defineProperty;if(Ro){var Oo=Po.prototype;Ro(Oo,"x",{get:function(){return this.array[0]},set:function(t){this.array[0]=t,this._dirty=!0}}),Ro(Oo,"y",{get:function(){return this.array[1]},set:function(t){this.array[1]=t,this._dirty=!0}}),Ro(Oo,"z",{get:function(){return this.array[2]},set:function(t){this.array[2]=t,this._dirty=!0}}),Ro(Oo,"w",{get:function(){return this.array[3]},set:function(t){this.array[3]=t,this._dirty=!0}})}Po.add=function(t,e,n){return cn.add(t.array,e.array,n.array),t._dirty=!0,t},Po.set=function(t,e,n,i,r){cn.set(t.array,e,n,i,r),t._dirty=!0},Po.copy=function(t,e){return cn.copy(t.array,e.array),t._dirty=!0,t},Po.distance=Po.dist=function(t,e){return cn.distance(t.array,e.array)},Po.divide=Po.div=function(t,e,n){return cn.divide(t.array,e.array,n.array),t._dirty=!0,t},Po.dot=function(t,e){return cn.dot(t.array,e.array)},Po.len=function(t){return cn.length(t.array)},Po.lerp=function(t,e,n,i){return cn.lerp(t.array,e.array,n.array,i),t._dirty=!0,t},Po.min=function(t,e,n){return cn.min(t.array,e.array,n.array),t._dirty=!0,t},Po.max=function(t,e,n){return cn.max(t.array,e.array,n.array),t._dirty=!0,t},Po.multiply=Po.mul=function(t,e,n){return cn.multiply(t.array,e.array,n.array),t._dirty=!0,t},Po.negate=function(t,e){return cn.negate(t.array,e.array),t._dirty=!0,t},Po.normalize=function(t,e){return cn.normalize(t.array,e.array),t._dirty=!0,t},Po.random=function(t,e){return cn.random(t.array,e),t._dirty=!0,t},Po.scale=function(t,e,n){return cn.scale(t.array,e.array,n),t._dirty=!0,t},Po.scaleAndAdd=function(t,e,n,i){return cn.scaleAndAdd(t.array,e.array,n.array,i),t._dirty=!0,t},Po.squaredDistance=Po.sqrDist=function(t,e){return cn.sqrDist(t.array,e.array)},Po.squaredLength=Po.sqrLen=function(t){return cn.sqrLen(t.array)},Po.subtract=Po.sub=function(t,e,n){return cn.subtract(t.array,e.array,n.array),t._dirty=!0,t},Po.transformMat4=function(t,e,n){return cn.transformMat4(t.array,e.array,n.array),t._dirty=!0,t},Po.transformQuat=function(t,e,n){return cn.transformQuat(t.array,e.array,n.array),t._dirty=!0,t};const No=Po;var Fo={create:function(){var t=new qt(4);return t[0]=1,t[1]=0,t[2]=0,t[3]=1,t},clone:function(t){var e=new qt(4);return e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[3],e},copy:function(t,e){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3],t},identity:function(t){return t[0]=1,t[1]=0,t[2]=0,t[3]=1,t},transpose:function(t,e){if(t===e){var n=e[1];t[1]=e[2],t[2]=n}else t[0]=e[0],t[1]=e[2],t[2]=e[1],t[3]=e[3];return t},invert:function(t,e){var n=e[0],i=e[1],r=e[2],o=e[3],a=n*o-r*i;return a?(a=1/a,t[0]=o*a,t[1]=-i*a,t[2]=-r*a,t[3]=n*a,t):null},adjoint:function(t,e){var n=e[0];return t[0]=e[3],t[1]=-e[1],t[2]=-e[2],t[3]=n,t},determinant:function(t){return t[0]*t[3]-t[2]*t[1]},multiply:function(t,e,n){var i=e[0],r=e[1],o=e[2],a=e[3],s=n[0],l=n[1],h=n[2],c=n[3];return t[0]=i*s+o*l,t[1]=r*s+a*l,t[2]=i*h+o*c,t[3]=r*h+a*c,t}};Fo.mul=Fo.multiply,Fo.rotate=function(t,e,n){var i=e[0],r=e[1],o=e[2],a=e[3],s=Math.sin(n),l=Math.cos(n);return t[0]=i*l+o*s,t[1]=r*l+a*s,t[2]=i*-s+o*l,t[3]=r*-s+a*l,t},Fo.scale=function(t,e,n){var i=e[0],r=e[1],o=e[2],a=e[3],s=n[0],l=n[1];return t[0]=i*s,t[1]=r*s,t[2]=o*l,t[3]=a*l,t},Fo.frob=function(t){return Math.sqrt(Math.pow(t[0],2)+Math.pow(t[1],2)+Math.pow(t[2],2)+Math.pow(t[3],2))},Fo.LDU=function(t,e,n,i){return t[2]=i[2]/i[0],n[0]=i[0],n[1]=i[1],n[3]=i[3]-t[2]*n[1],[t,e,n]};const Bo=Fo;var zo=function(){this.array=Bo.create(),this._dirty=!0};zo.prototype={constructor:zo,setArray:function(t){for(var e=0;e<this.array.length;e++)this.array[e]=t[e];return this._dirty=!0,this},clone:function(){return(new zo).copy(this)},copy:function(t){return Bo.copy(this.array,t.array),this._dirty=!0,this},adjoint:function(){return Bo.adjoint(this.array,this.array),this._dirty=!0,this},determinant:function(){return Bo.determinant(this.array)},identity:function(){return Bo.identity(this.array),this._dirty=!0,this},invert:function(){return Bo.invert(this.array,this.array),this._dirty=!0,this},mul:function(t){return Bo.mul(this.array,this.array,t.array),this._dirty=!0,this},mulLeft:function(t){return Bo.mul(this.array,t.array,this.array),this._dirty=!0,this},multiply:function(t){return Bo.multiply(this.array,this.array,t.array),this._dirty=!0,this},multiplyLeft:function(t){return Bo.multiply(this.array,t.array,this.array),this._dirty=!0,this},rotate:function(t){return Bo.rotate(this.array,this.array,t),this._dirty=!0,this},scale:function(t){return Bo.scale(this.array,this.array,t.array),this._dirty=!0,this},transpose:function(){return Bo.transpose(this.array,this.array),this._dirty=!0,this},toString:function(){return"["+Array.prototype.join.call(this.array,",")+"]"},toArray:function(){return Array.prototype.slice.call(this.array)}},zo.adjoint=function(t,e){return Bo.adjoint(t.array,e.array),t._dirty=!0,t},zo.copy=function(t,e){return Bo.copy(t.array,e.array),t._dirty=!0,t},zo.determinant=function(t){return Bo.determinant(t.array)},zo.identity=function(t){return Bo.identity(t.array),t._dirty=!0,t},zo.invert=function(t,e){return Bo.invert(t.array,e.array),t._dirty=!0,t},zo.multiply=zo.mul=function(t,e,n){return Bo.mul(t.array,e.array,n.array),t._dirty=!0,t},zo.rotate=function(t,e,n){return Bo.rotate(t.array,e.array,n),t._dirty=!0,t},zo.scale=function(t,e,n){return Bo.scale(t.array,e.array,n.array),t._dirty=!0,t},zo.transpose=function(t,e){return Bo.transpose(t.array,e.array),t._dirty=!0,t};const Go=zo;var Vo={create:function(){var t=new qt(6);return t[0]=1,t[1]=0,t[2]=0,t[3]=1,t[4]=0,t[5]=0,t},clone:function(t){var e=new qt(6);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},copy:function(t,e){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3],t[4]=e[4],t[5]=e[5],t},identity:function(t){return t[0]=1,t[1]=0,t[2]=0,t[3]=1,t[4]=0,t[5]=0,t},invert:function(t,e){var n=e[0],i=e[1],r=e[2],o=e[3],a=e[4],s=e[5],l=n*o-i*r;return l?(l=1/l,t[0]=o*l,t[1]=-i*l,t[2]=-r*l,t[3]=n*l,t[4]=(r*s-o*a)*l,t[5]=(i*a-n*s)*l,t):null},determinant:function(t){return t[0]*t[3]-t[1]*t[2]},multiply:function(t,e,n){var i=e[0],r=e[1],o=e[2],a=e[3],s=e[4],l=e[5],h=n[0],c=n[1],u=n[2],d=n[3],p=n[4],f=n[5];return t[0]=i*h+o*c,t[1]=r*h+a*c,t[2]=i*u+o*d,t[3]=r*u+a*d,t[4]=i*p+o*f+s,t[5]=r*p+a*f+l,t}};Vo.mul=Vo.multiply,Vo.rotate=function(t,e,n){var i=e[0],r=e[1],o=e[2],a=e[3],s=e[4],l=e[5],h=Math.sin(n),c=Math.cos(n);return t[0]=i*c+o*h,t[1]=r*c+a*h,t[2]=i*-h+o*c,t[3]=r*-h+a*c,t[4]=s,t[5]=l,t},Vo.scale=function(t,e,n){var i=e[0],r=e[1],o=e[2],a=e[3],s=e[4],l=e[5],h=n[0],c=n[1];return t[0]=i*h,t[1]=r*h,t[2]=o*c,t[3]=a*c,t[4]=s,t[5]=l,t},Vo.translate=function(t,e,n){var i=e[0],r=e[1],o=e[2],a=e[3],s=e[4],l=e[5],h=n[0],c=n[1];return t[0]=i,t[1]=r,t[2]=o,t[3]=a,t[4]=i*h+o*c+s,t[5]=r*h+a*c+l,t},Vo.frob=function(t){return Math.sqrt(Math.pow(t[0],2)+Math.pow(t[1],2)+Math.pow(t[2],2)+Math.pow(t[3],2)+Math.pow(t[4],2)+Math.pow(t[5],2)+1)};const jo=Vo;var Ho=function(){this.array=jo.create(),this._dirty=!0};Ho.prototype={constructor:Ho,setArray:function(t){for(var e=0;e<this.array.length;e++)this.array[e]=t[e];return this._dirty=!0,this},clone:function(){return(new Ho).copy(this)},copy:function(t){return jo.copy(this.array,t.array),this._dirty=!0,this},determinant:function(){return jo.determinant(this.array)},identity:function(){return jo.identity(this.array),this._dirty=!0,this},invert:function(){return jo.invert(this.array,this.array),this._dirty=!0,this},mul:function(t){return jo.mul(this.array,this.array,t.array),this._dirty=!0,this},mulLeft:function(t){return jo.mul(this.array,t.array,this.array),this._dirty=!0,this},multiply:function(t){return jo.multiply(this.array,this.array,t.array),this._dirty=!0,this},multiplyLeft:function(t){return jo.multiply(this.array,t.array,this.array),this._dirty=!0,this},rotate:function(t){return jo.rotate(this.array,this.array,t),this._dirty=!0,this},scale:function(t){return jo.scale(this.array,this.array,t.array),this._dirty=!0,this},translate:function(t){return jo.translate(this.array,this.array,t.array),this._dirty=!0,this},toString:function(){return"["+Array.prototype.join.call(this.array,",")+"]"},toArray:function(){return Array.prototype.slice.call(this.array)}},Ho.copy=function(t,e){return jo.copy(t.array,e.array),t._dirty=!0,t},Ho.determinant=function(t){return jo.determinant(t.array)},Ho.identity=function(t){return jo.identity(t.array),t._dirty=!0,t},Ho.invert=function(t,e){return jo.invert(t.array,e.array),t._dirty=!0,t},Ho.multiply=Ho.mul=function(t,e,n){return jo.mul(t.array,e.array,n.array),t._dirty=!0,t},Ho.rotate=function(t,e,n){return jo.rotate(t.array,e.array,n),t._dirty=!0,t},Ho.scale=function(t,e,n){return jo.scale(t.array,e.array,n.array),t._dirty=!0,t},Ho.translate=function(t,e,n){return jo.translate(t.array,e.array,n.array),t._dirty=!0,t};const Wo=Ho;var Uo=function(){this.array=dn.create(),this._dirty=!0};Uo.prototype={constructor:Uo,setArray:function(t){for(var e=0;e<this.array.length;e++)this.array[e]=t[e];return this._dirty=!0,this},adjoint:function(){return dn.adjoint(this.array,this.array),this._dirty=!0,this},clone:function(){return(new Uo).copy(this)},copy:function(t){return dn.copy(this.array,t.array),this._dirty=!0,this},determinant:function(){return dn.determinant(this.array)},fromMat2d:function(t){return dn.fromMat2d(this.array,t.array),this._dirty=!0,this},fromMat4:function(t){return dn.fromMat4(this.array,t.array),this._dirty=!0,this},fromQuat:function(t){return dn.fromQuat(this.array,t.array),this._dirty=!0,this},identity:function(){return dn.identity(this.array),this._dirty=!0,this},invert:function(){return dn.invert(this.array,this.array),this._dirty=!0,this},mul:function(t){return dn.mul(this.array,this.array,t.array),this._dirty=!0,this},mulLeft:function(t){return dn.mul(this.array,t.array,this.array),this._dirty=!0,this},multiply:function(t){return dn.multiply(this.array,this.array,t.array),this._dirty=!0,this},multiplyLeft:function(t){return dn.multiply(this.array,t.array,this.array),this._dirty=!0,this},rotate:function(t){return dn.rotate(this.array,this.array,t),this._dirty=!0,this},scale:function(t){return dn.scale(this.array,this.array,t.array),this._dirty=!0,this},translate:function(t){return dn.translate(this.array,this.array,t.array),this._dirty=!0,this},normalFromMat4:function(t){return dn.normalFromMat4(this.array,t.array),this._dirty=!0,this},transpose:function(){return dn.transpose(this.array,this.array),this._dirty=!0,this},toString:function(){return"["+Array.prototype.join.call(this.array,",")+"]"},toArray:function(){return Array.prototype.slice.call(this.array)}},Uo.adjoint=function(t,e){return dn.adjoint(t.array,e.array),t._dirty=!0,t},Uo.copy=function(t,e){return dn.copy(t.array,e.array),t._dirty=!0,t},Uo.determinant=function(t){return dn.determinant(t.array)},Uo.identity=function(t){return dn.identity(t.array),t._dirty=!0,t},Uo.invert=function(t,e){return dn.invert(t.array,e.array),t},Uo.multiply=Uo.mul=function(t,e,n){return dn.mul(t.array,e.array,n.array),t._dirty=!0,t},Uo.fromMat2d=function(t,e){return dn.fromMat2d(t.array,e.array),t._dirty=!0,t},Uo.fromMat4=function(t,e){return dn.fromMat4(t.array,e.array),t._dirty=!0,t},Uo.fromQuat=function(t,e){return dn.fromQuat(t.array,e.array),t._dirty=!0,t},Uo.normalFromMat4=function(t,e){return dn.normalFromMat4(t.array,e.array),t._dirty=!0,t},Uo.rotate=function(t,e,n){return dn.rotate(t.array,e.array,n),t._dirty=!0,t},Uo.scale=function(t,e,n){return dn.scale(t.array,e.array,n.array),t._dirty=!0,t},Uo.transpose=function(t,e){return dn.transpose(t.array,e.array),t._dirty=!0,t},Uo.translate=function(t,e,n){return dn.translate(t.array,e.array,n.array),t._dirty=!0,t};const qo=Uo;var Xo=n(8854);const Yo={_animators:null,getAnimators:function(){return this._animators=this._animators||[],this._animators},animate:function(t,e){this._animators=this._animators||[];var n;if(t){for(var i=t.split("."),r=this,o=0,a=i.length;o<a;o++)r&&(r=r[i[o]]);r&&(n=r)}else n=this;if(null==n)throw new Error("Target "+t+" not exists");var s=this._animators,l=new Xo.A(n,e),h=this;return l.during((function(){h.__zr&&h.__zr.refresh()})).done((function(){var t=s.indexOf(l);t>=0&&s.splice(t,1)})),s.push(l),this.__zr&&this.__zr.animation.addAnimator(l),l},stopAnimation:function(t){this._animators=this._animators||[];for(var e=this._animators,n=e.length,i=0;i<n;i++)e[i].stop(t);return e.length=0,this},addAnimatorsToZr:function(t){if(this._animators)for(var e=0;e<this._animators.length;e++)t.animation.addAnimator(this._animators[e])},removeAnimatorsFromZr:function(t){if(this._animators)for(var e=0;e<this._animators.length;e++)t.animation.removeAnimator(this._animators[e])}},Zo="\n@export clay.util.rand\nhighp float rand(vec2 uv) {\n const highp float a = 12.9898, b = 78.233, c = 43758.5453;\n highp float dt = dot(uv.xy, vec2(a,b)), sn = mod(dt, 3.141592653589793);\n return fract(sin(sn) * c);\n}\n@end\n@export clay.util.calculate_attenuation\nuniform float attenuationFactor : 5.0;\nfloat lightAttenuation(float dist, float range)\n{\n float attenuation = 1.0;\n attenuation = dist*dist/(range*range+1.0);\n float att_s = attenuationFactor;\n attenuation = 1.0/(attenuation*att_s+1.0);\n att_s = 1.0/(att_s+1.0);\n attenuation = attenuation - att_s;\n attenuation /= 1.0 - att_s;\n return clamp(attenuation, 0.0, 1.0);\n}\n@end\n@export clay.util.edge_factor\n#ifdef SUPPORT_STANDARD_DERIVATIVES\nfloat edgeFactor(float width)\n{\n vec3 d = fwidth(v_Barycentric);\n vec3 a3 = smoothstep(vec3(0.0), d * width, v_Barycentric);\n return min(min(a3.x, a3.y), a3.z);\n}\n#else\nfloat edgeFactor(float width)\n{\n return 1.0;\n}\n#endif\n@end\n@export clay.util.encode_float\nvec4 encodeFloat(const in float depth)\n{\n const vec4 bitShifts = vec4(256.0*256.0*256.0, 256.0*256.0, 256.0, 1.0);\n const vec4 bit_mask = vec4(0.0, 1.0/256.0, 1.0/256.0, 1.0/256.0);\n vec4 res = fract(depth * bitShifts);\n res -= res.xxyz * bit_mask;\n return res;\n}\n@end\n@export clay.util.decode_float\nfloat decodeFloat(const in vec4 color)\n{\n const vec4 bitShifts = vec4(1.0/(256.0*256.0*256.0), 1.0/(256.0*256.0), 1.0/256.0, 1.0);\n return dot(color, bitShifts);\n}\n@end\n@export clay.util.float\n@import clay.util.encode_float\n@import clay.util.decode_float\n@end\n@export clay.util.rgbm_decode\nvec3 RGBMDecode(vec4 rgbm, float range) {\n return range * rgbm.rgb * rgbm.a;\n}\n@end\n@export clay.util.rgbm_encode\nvec4 RGBMEncode(vec3 color, float range) {\n if (dot(color, color) == 0.0) {\n return vec4(0.0);\n }\n vec4 rgbm;\n color /= range;\n rgbm.a = clamp(max(max(color.r, color.g), max(color.b, 1e-6)), 0.0, 1.0);\n rgbm.a = ceil(rgbm.a * 255.0) / 255.0;\n rgbm.rgb = color / rgbm.a;\n return rgbm;\n}\n@end\n@export clay.util.rgbm\n@import clay.util.rgbm_decode\n@import clay.util.rgbm_encode\nvec4 decodeHDR(vec4 color)\n{\n#if defined(RGBM_DECODE) || defined(RGBM)\n return vec4(RGBMDecode(color, 8.12), 1.0);\n#else\n return color;\n#endif\n}\nvec4 encodeHDR(vec4 color)\n{\n#if defined(RGBM_ENCODE) || defined(RGBM)\n return RGBMEncode(color.xyz, 8.12);\n#else\n return color;\n#endif\n}\n@end\n@export clay.util.srgb\nvec4 sRGBToLinear(in vec4 value) {\n return vec4(mix(pow(value.rgb * 0.9478672986 + vec3(0.0521327014), vec3(2.4)), value.rgb * 0.0773993808, vec3(lessThanEqual(value.rgb, vec3(0.04045)))), value.w);\n}\nvec4 linearTosRGB(in vec4 value) {\n return vec4(mix(pow(value.rgb, vec3(0.41666)) * 1.055 - vec3(0.055), value.rgb * 12.92, vec3(lessThanEqual(value.rgb, vec3(0.0031308)))), value.w);\n}\n@end\n@export clay.chunk.skinning_header\n#ifdef SKINNING\nattribute vec3 weight : WEIGHT;\nattribute vec4 joint : JOINT;\n#ifdef USE_SKIN_MATRICES_TEXTURE\nuniform sampler2D skinMatricesTexture : ignore;\nuniform float skinMatricesTextureSize: ignore;\nmat4 getSkinMatrix(sampler2D tex, float idx) {\n float j = idx * 4.0;\n float x = mod(j, skinMatricesTextureSize);\n float y = floor(j / skinMatricesTextureSize) + 0.5;\n vec2 scale = vec2(skinMatricesTextureSize);\n return mat4(\n texture2D(tex, vec2(x + 0.5, y) / scale),\n texture2D(tex, vec2(x + 1.5, y) / scale),\n texture2D(tex, vec2(x + 2.5, y) / scale),\n texture2D(tex, vec2(x + 3.5, y) / scale)\n );\n}\nmat4 getSkinMatrix(float idx) {\n return getSkinMatrix(skinMatricesTexture, idx);\n}\n#else\nuniform mat4 skinMatrix[JOINT_COUNT] : SKIN_MATRIX;\nmat4 getSkinMatrix(float idx) {\n return skinMatrix[int(idx)];\n}\n#endif\n#endif\n@end\n@export clay.chunk.skin_matrix\nmat4 skinMatrixWS = getSkinMatrix(joint.x) * weight.x;\nif (weight.y > 1e-4)\n{\n skinMatrixWS += getSkinMatrix(joint.y) * weight.y;\n}\nif (weight.z > 1e-4)\n{\n skinMatrixWS += getSkinMatrix(joint.z) * weight.z;\n}\nfloat weightW = 1.0-weight.x-weight.y-weight.z;\nif (weightW > 1e-4)\n{\n skinMatrixWS += getSkinMatrix(joint.w) * weightW;\n}\n@end\n@export clay.chunk.instancing_header\n#ifdef INSTANCING\nattribute vec4 instanceMat1;\nattribute vec4 instanceMat2;\nattribute vec4 instanceMat3;\n#endif\n@end\n@export clay.chunk.instancing_matrix\nmat4 instanceMat = mat4(\n vec4(instanceMat1.xyz, 0.0),\n vec4(instanceMat2.xyz, 0.0),\n vec4(instanceMat3.xyz, 0.0),\n vec4(instanceMat1.w, instanceMat2.w, instanceMat3.w, 1.0)\n);\n@end\n@export clay.util.parallax_correct\nvec3 parallaxCorrect(in vec3 dir, in vec3 pos, in vec3 boxMin, in vec3 boxMax) {\n vec3 first = (boxMax - pos) / dir;\n vec3 second = (boxMin - pos) / dir;\n vec3 further = max(first, second);\n float dist = min(further.x, min(further.y, further.z));\n vec3 fixedPos = pos + dir * dist;\n vec3 boxCenter = (boxMax + boxMin) * 0.5;\n return normalize(fixedPos - boxCenter);\n}\n@end\n@export clay.util.clamp_sample\nvec4 clampSample(const in sampler2D texture, const in vec2 coord)\n{\n#ifdef STEREO\n float eye = step(0.5, coord.x) * 0.5;\n vec2 coordClamped = clamp(coord, vec2(eye, 0.0), vec2(0.5 + eye, 1.0));\n#else\n vec2 coordClamped = clamp(coord, vec2(0.0), vec2(1.0));\n#endif\n return texture2D(texture, coordClamped);\n}\n@end\n@export clay.util.ACES\nvec3 ACESToneMapping(vec3 color)\n{\n const float A = 2.51;\n const float B = 0.03;\n const float C = 2.43;\n const float D = 0.59;\n const float E = 0.14;\n return (color * (A * color + B)) / (color * (C * color + D) + E);\n}\n@end";function $o(t){return t instanceof HTMLCanvasElement||t instanceof HTMLImageElement||t instanceof Image}Object.assign(Un.prototype,Yo),Ce.import(Zo),Ce.import(Ie),Ce.import("\n@export ecgl.common.transformUniforms\nuniform mat4 worldViewProjection : WORLDVIEWPROJECTION;\nuniform mat4 worldInverseTranspose : WORLDINVERSETRANSPOSE;\nuniform mat4 world : WORLD;\n@end\n\n@export ecgl.common.attributes\nattribute vec3 position : POSITION;\nattribute vec2 texcoord : TEXCOORD_0;\nattribute vec3 normal : NORMAL;\n@end\n\n@export ecgl.common.uv.header\nuniform vec2 uvRepeat : [1.0, 1.0];\nuniform vec2 uvOffset : [0.0, 0.0];\nuniform vec2 detailUvRepeat : [1.0, 1.0];\nuniform vec2 detailUvOffset : [0.0, 0.0];\n\nvarying vec2 v_Texcoord;\nvarying vec2 v_DetailTexcoord;\n@end\n\n@export ecgl.common.uv.main\nv_Texcoord = texcoord * uvRepeat + uvOffset;\nv_DetailTexcoord = texcoord * detailUvRepeat + detailUvOffset;\n@end\n\n@export ecgl.common.uv.fragmentHeader\nvarying vec2 v_Texcoord;\nvarying vec2 v_DetailTexcoord;\n@end\n\n\n@export ecgl.common.albedo.main\n\n vec4 albedoTexel = vec4(1.0);\n#ifdef DIFFUSEMAP_ENABLED\n albedoTexel = texture2D(diffuseMap, v_Texcoord);\n #ifdef SRGB_DECODE\n albedoTexel = sRGBToLinear(albedoTexel);\n #endif\n#endif\n\n#ifdef DETAILMAP_ENABLED\n vec4 detailTexel = texture2D(detailMap, v_DetailTexcoord);\n #ifdef SRGB_DECODE\n detailTexel = sRGBToLinear(detailTexel);\n #endif\n albedoTexel.rgb = mix(albedoTexel.rgb, detailTexel.rgb, detailTexel.a);\n albedoTexel.a = detailTexel.a + (1.0 - detailTexel.a) * albedoTexel.a;\n#endif\n\n@end\n\n@export ecgl.common.wireframe.vertexHeader\n\n#ifdef WIREFRAME_QUAD\nattribute vec4 barycentric;\nvarying vec4 v_Barycentric;\n#elif defined(WIREFRAME_TRIANGLE)\nattribute vec3 barycentric;\nvarying vec3 v_Barycentric;\n#endif\n\n@end\n\n@export ecgl.common.wireframe.vertexMain\n\n#if defined(WIREFRAME_QUAD) || defined(WIREFRAME_TRIANGLE)\n v_Barycentric = barycentric;\n#endif\n\n@end\n\n\n@export ecgl.common.wireframe.fragmentHeader\n\nuniform float wireframeLineWidth : 1;\nuniform vec4 wireframeLineColor: [0, 0, 0, 0.5];\n\n#ifdef WIREFRAME_QUAD\nvarying vec4 v_Barycentric;\nfloat edgeFactor () {\n vec4 d = fwidth(v_Barycentric);\n vec4 a4 = smoothstep(vec4(0.0), d * wireframeLineWidth, v_Barycentric);\n return min(min(min(a4.x, a4.y), a4.z), a4.w);\n}\n#elif defined(WIREFRAME_TRIANGLE)\nvarying vec3 v_Barycentric;\nfloat edgeFactor () {\n vec3 d = fwidth(v_Barycentric);\n vec3 a3 = smoothstep(vec3(0.0), d * wireframeLineWidth, v_Barycentric);\n return min(min(a3.x, a3.y), a3.z);\n}\n#endif\n\n@end\n\n\n@export ecgl.common.wireframe.fragmentMain\n\n#if defined(WIREFRAME_QUAD) || defined(WIREFRAME_TRIANGLE)\n if (wireframeLineWidth > 0.) {\n vec4 lineColor = wireframeLineColor;\n#ifdef SRGB_DECODE\n lineColor = sRGBToLinear(lineColor);\n#endif\n\n gl_FragColor.rgb = mix(gl_FragColor.rgb, lineColor.rgb, (1.0 - edgeFactor()) * lineColor.a);\n }\n#endif\n@end\n\n\n\n\n@export ecgl.common.bumpMap.header\n\n#ifdef BUMPMAP_ENABLED\nuniform sampler2D bumpMap;\nuniform float bumpScale : 1.0;\n\n\nvec3 bumpNormal(vec3 surfPos, vec3 surfNormal, vec3 baseNormal)\n{\n vec2 dSTdx = dFdx(v_Texcoord);\n vec2 dSTdy = dFdy(v_Texcoord);\n\n float Hll = bumpScale * texture2D(bumpMap, v_Texcoord).x;\n float dHx = bumpScale * texture2D(bumpMap, v_Texcoord + dSTdx).x - Hll;\n float dHy = bumpScale * texture2D(bumpMap, v_Texcoord + dSTdy).x - Hll;\n\n vec3 vSigmaX = dFdx(surfPos);\n vec3 vSigmaY = dFdy(surfPos);\n vec3 vN = surfNormal;\n\n vec3 R1 = cross(vSigmaY, vN);\n vec3 R2 = cross(vN, vSigmaX);\n\n float fDet = dot(vSigmaX, R1);\n\n vec3 vGrad = sign(fDet) * (dHx * R1 + dHy * R2);\n return normalize(abs(fDet) * baseNormal - vGrad);\n\n}\n#endif\n\n@end\n\n@export ecgl.common.normalMap.vertexHeader\n\n#ifdef NORMALMAP_ENABLED\nattribute vec4 tangent : TANGENT;\nvarying vec3 v_Tangent;\nvarying vec3 v_Bitangent;\n#endif\n\n@end\n\n@export ecgl.common.normalMap.vertexMain\n\n#ifdef NORMALMAP_ENABLED\n if (dot(tangent, tangent) > 0.0) {\n v_Tangent = normalize((worldInverseTranspose * vec4(tangent.xyz, 0.0)).xyz);\n v_Bitangent = normalize(cross(v_Normal, v_Tangent) * tangent.w);\n }\n#endif\n\n@end\n\n\n@export ecgl.common.normalMap.fragmentHeader\n\n#ifdef NORMALMAP_ENABLED\nuniform sampler2D normalMap;\nvarying vec3 v_Tangent;\nvarying vec3 v_Bitangent;\n#endif\n\n@end\n\n@export ecgl.common.normalMap.fragmentMain\n#ifdef NORMALMAP_ENABLED\n if (dot(v_Tangent, v_Tangent) > 0.0) {\n vec3 normalTexel = texture2D(normalMap, v_DetailTexcoord).xyz;\n if (dot(normalTexel, normalTexel) > 0.0) { N = normalTexel * 2.0 - 1.0;\n mat3 tbn = mat3(v_Tangent, v_Bitangent, v_Normal);\n N = normalize(tbn * N);\n }\n }\n#endif\n@end\n\n\n\n@export ecgl.common.vertexAnimation.header\n\n#ifdef VERTEX_ANIMATION\nattribute vec3 prevPosition;\nattribute vec3 prevNormal;\nuniform float percent;\n#endif\n\n@end\n\n@export ecgl.common.vertexAnimation.main\n\n#ifdef VERTEX_ANIMATION\n vec3 pos = mix(prevPosition, position, percent);\n vec3 norm = mix(prevNormal, normal, percent);\n#else\n vec3 pos = position;\n vec3 norm = normal;\n#endif\n\n@end\n\n\n@export ecgl.common.ssaoMap.header\n#ifdef SSAOMAP_ENABLED\nuniform sampler2D ssaoMap;\nuniform vec4 viewport : VIEWPORT;\n#endif\n@end\n\n@export ecgl.common.ssaoMap.main\n float ao = 1.0;\n#ifdef SSAOMAP_ENABLED\n ao = texture2D(ssaoMap, (gl_FragCoord.xy - viewport.xy) / viewport.zw).r;\n#endif\n@end\n\n\n\n\n@export ecgl.common.diffuseLayer.header\n\n#if (LAYER_DIFFUSEMAP_COUNT > 0)\nuniform float layerDiffuseIntensity[LAYER_DIFFUSEMAP_COUNT];\nuniform sampler2D layerDiffuseMap[LAYER_DIFFUSEMAP_COUNT];\n#endif\n\n@end\n\n@export ecgl.common.emissiveLayer.header\n\n#if (LAYER_EMISSIVEMAP_COUNT > 0)\nuniform float layerEmissionIntensity[LAYER_EMISSIVEMAP_COUNT];\nuniform sampler2D layerEmissiveMap[LAYER_EMISSIVEMAP_COUNT];\n#endif\n\n@end\n\n@export ecgl.common.layers.header\n@import ecgl.common.diffuseLayer.header\n@import ecgl.common.emissiveLayer.header\n@end\n\n@export ecgl.common.diffuseLayer.main\n\n#if (LAYER_DIFFUSEMAP_COUNT > 0)\n for (int _idx_ = 0; _idx_ < LAYER_DIFFUSEMAP_COUNT; _idx_++) {{\n float intensity = layerDiffuseIntensity[_idx_];\n vec4 texel2 = texture2D(layerDiffuseMap[_idx_], v_Texcoord);\n #ifdef SRGB_DECODE\n texel2 = sRGBToLinear(texel2);\n #endif\n albedoTexel.rgb = mix(albedoTexel.rgb, texel2.rgb * intensity, texel2.a);\n albedoTexel.a = texel2.a + (1.0 - texel2.a) * albedoTexel.a;\n }}\n#endif\n\n@end\n\n@export ecgl.common.emissiveLayer.main\n\n#if (LAYER_EMISSIVEMAP_COUNT > 0)\n for (int _idx_ = 0; _idx_ < LAYER_EMISSIVEMAP_COUNT; _idx_++)\n {{\n vec4 texel2 = texture2D(layerEmissiveMap[_idx_], v_Texcoord) * layerEmissionIntensity[_idx_];\n #ifdef SRGB_DECODE\n texel2 = sRGBToLinear(texel2);\n #endif\n float intensity = layerEmissionIntensity[_idx_];\n gl_FragColor.rgb += texel2.rgb * texel2.a * intensity;\n }}\n#endif\n\n@end\n"),Ce.import("@export ecgl.color.vertex\n\nuniform mat4 worldViewProjection : WORLDVIEWPROJECTION;\n\n@import ecgl.common.uv.header\n\nattribute vec2 texcoord : TEXCOORD_0;\nattribute vec3 position: POSITION;\n\n@import ecgl.common.wireframe.vertexHeader\n\n#ifdef VERTEX_COLOR\nattribute vec4 a_Color : COLOR;\nvarying vec4 v_Color;\n#endif\n\n#ifdef VERTEX_ANIMATION\nattribute vec3 prevPosition;\nuniform float percent : 1.0;\n#endif\n\n#ifdef ATMOSPHERE_ENABLED\nattribute vec3 normal: NORMAL;\nuniform mat4 worldInverseTranspose : WORLDINVERSETRANSPOSE;\nvarying vec3 v_Normal;\n#endif\n\nvoid main()\n{\n#ifdef VERTEX_ANIMATION\n vec3 pos = mix(prevPosition, position, percent);\n#else\n vec3 pos = position;\n#endif\n\n gl_Position = worldViewProjection * vec4(pos, 1.0);\n\n @import ecgl.common.uv.main\n\n#ifdef VERTEX_COLOR\n v_Color = a_Color;\n#endif\n\n#ifdef ATMOSPHERE_ENABLED\n v_Normal = normalize((worldInverseTranspose * vec4(normal, 0.0)).xyz);\n#endif\n\n @import ecgl.common.wireframe.vertexMain\n\n}\n\n@end\n\n@export ecgl.color.fragment\n\n#define LAYER_DIFFUSEMAP_COUNT 0\n#define LAYER_EMISSIVEMAP_COUNT 0\n\nuniform sampler2D diffuseMap;\nuniform sampler2D detailMap;\n\nuniform vec4 color : [1.0, 1.0, 1.0, 1.0];\n\n#ifdef ATMOSPHERE_ENABLED\nuniform mat4 viewTranspose: VIEWTRANSPOSE;\nuniform vec3 glowColor;\nuniform float glowPower;\nvarying vec3 v_Normal;\n#endif\n\n#ifdef VERTEX_COLOR\nvarying vec4 v_Color;\n#endif\n\n@import ecgl.common.layers.header\n\n@import ecgl.common.uv.fragmentHeader\n\n@import ecgl.common.wireframe.fragmentHeader\n\n@import clay.util.srgb\n\nvoid main()\n{\n#ifdef SRGB_DECODE\n gl_FragColor = sRGBToLinear(color);\n#else\n gl_FragColor = color;\n#endif\n\n#ifdef VERTEX_COLOR\n gl_FragColor *= v_Color;\n#endif\n\n @import ecgl.common.albedo.main\n\n @import ecgl.common.diffuseLayer.main\n\n gl_FragColor *= albedoTexel;\n\n#ifdef ATMOSPHERE_ENABLED\n float atmoIntensity = pow(1.0 - dot(v_Normal, (viewTranspose * vec4(0.0, 0.0, 1.0, 0.0)).xyz), glowPower);\n gl_FragColor.rgb += glowColor * atmoIntensity;\n#endif\n\n @import ecgl.common.emissiveLayer.main\n\n @import ecgl.common.wireframe.fragmentMain\n\n}\n@end"),Ce.import("/**\n * http: */\n\n@export ecgl.lambert.vertex\n\n@import ecgl.common.transformUniforms\n\n@import ecgl.common.uv.header\n\n\n@import ecgl.common.attributes\n\n@import ecgl.common.wireframe.vertexHeader\n\n#ifdef VERTEX_COLOR\nattribute vec4 a_Color : COLOR;\nvarying vec4 v_Color;\n#endif\n\n\n@import ecgl.common.vertexAnimation.header\n\n\nvarying vec3 v_Normal;\nvarying vec3 v_WorldPosition;\n\nvoid main()\n{\n @import ecgl.common.uv.main\n\n @import ecgl.common.vertexAnimation.main\n\n\n gl_Position = worldViewProjection * vec4(pos, 1.0);\n\n v_Normal = normalize((worldInverseTranspose * vec4(norm, 0.0)).xyz);\n v_WorldPosition = (world * vec4(pos, 1.0)).xyz;\n\n#ifdef VERTEX_COLOR\n v_Color = a_Color;\n#endif\n\n @import ecgl.common.wireframe.vertexMain\n}\n\n@end\n\n\n@export ecgl.lambert.fragment\n\n#define LAYER_DIFFUSEMAP_COUNT 0\n#define LAYER_EMISSIVEMAP_COUNT 0\n\n#define NORMAL_UP_AXIS 1\n#define NORMAL_FRONT_AXIS 2\n\n@import ecgl.common.uv.fragmentHeader\n\nvarying vec3 v_Normal;\nvarying vec3 v_WorldPosition;\n\nuniform sampler2D diffuseMap;\nuniform sampler2D detailMap;\n\n@import ecgl.common.layers.header\n\nuniform float emissionIntensity: 1.0;\n\nuniform vec4 color : [1.0, 1.0, 1.0, 1.0];\n\nuniform mat4 viewInverse : VIEWINVERSE;\n\n#ifdef ATMOSPHERE_ENABLED\nuniform mat4 viewTranspose: VIEWTRANSPOSE;\nuniform vec3 glowColor;\nuniform float glowPower;\n#endif\n\n#ifdef AMBIENT_LIGHT_COUNT\n@import clay.header.ambient_light\n#endif\n#ifdef AMBIENT_SH_LIGHT_COUNT\n@import clay.header.ambient_sh_light\n#endif\n\n#ifdef DIRECTIONAL_LIGHT_COUNT\n@import clay.header.directional_light\n#endif\n\n#ifdef VERTEX_COLOR\nvarying vec4 v_Color;\n#endif\n\n\n@import ecgl.common.ssaoMap.header\n\n@import ecgl.common.bumpMap.header\n\n@import clay.util.srgb\n\n@import ecgl.common.wireframe.fragmentHeader\n\n@import clay.plugin.compute_shadow_map\n\nvoid main()\n{\n#ifdef SRGB_DECODE\n gl_FragColor = sRGBToLinear(color);\n#else\n gl_FragColor = color;\n#endif\n\n#ifdef VERTEX_COLOR\n #ifdef SRGB_DECODE\n gl_FragColor *= sRGBToLinear(v_Color);\n #else\n gl_FragColor *= v_Color;\n #endif\n#endif\n\n @import ecgl.common.albedo.main\n\n @import ecgl.common.diffuseLayer.main\n\n gl_FragColor *= albedoTexel;\n\n vec3 N = v_Normal;\n#ifdef DOUBLE_SIDED\n vec3 eyePos = viewInverse[3].xyz;\n vec3 V = normalize(eyePos - v_WorldPosition);\n\n if (dot(N, V) < 0.0) {\n N = -N;\n }\n#endif\n\n float ambientFactor = 1.0;\n\n#ifdef BUMPMAP_ENABLED\n N = bumpNormal(v_WorldPosition, v_Normal, N);\n ambientFactor = dot(v_Normal, N);\n#endif\n\n vec3 N2 = vec3(N.x, N[NORMAL_UP_AXIS], N[NORMAL_FRONT_AXIS]);\n\n vec3 diffuseColor = vec3(0.0, 0.0, 0.0);\n\n @import ecgl.common.ssaoMap.main\n\n#ifdef AMBIENT_LIGHT_COUNT\n for(int i = 0; i < AMBIENT_LIGHT_COUNT; i++)\n {\n diffuseColor += ambientLightColor[i] * ambientFactor * ao;\n }\n#endif\n#ifdef AMBIENT_SH_LIGHT_COUNT\n for(int _idx_ = 0; _idx_ < AMBIENT_SH_LIGHT_COUNT; _idx_++)\n {{\n diffuseColor += calcAmbientSHLight(_idx_, N2) * ambientSHLightColor[_idx_] * ao;\n }}\n#endif\n#ifdef DIRECTIONAL_LIGHT_COUNT\n#if defined(DIRECTIONAL_LIGHT_SHADOWMAP_COUNT)\n float shadowContribsDir[DIRECTIONAL_LIGHT_COUNT];\n if(shadowEnabled)\n {\n computeShadowOfDirectionalLights(v_WorldPosition, shadowContribsDir);\n }\n#endif\n for(int i = 0; i < DIRECTIONAL_LIGHT_COUNT; i++)\n {\n vec3 lightDirection = -directionalLightDirection[i];\n vec3 lightColor = directionalLightColor[i];\n\n float shadowContrib = 1.0;\n#if defined(DIRECTIONAL_LIGHT_SHADOWMAP_COUNT)\n if (shadowEnabled)\n {\n shadowContrib = shadowContribsDir[i];\n }\n#endif\n\n float ndl = dot(N, normalize(lightDirection)) * shadowContrib;\n\n diffuseColor += lightColor * clamp(ndl, 0.0, 1.0);\n }\n#endif\n\n gl_FragColor.rgb *= diffuseColor;\n\n#ifdef ATMOSPHERE_ENABLED\n float atmoIntensity = pow(1.0 - dot(v_Normal, (viewTranspose * vec4(0.0, 0.0, 1.0, 0.0)).xyz), glowPower);\n gl_FragColor.rgb += glowColor * atmoIntensity;\n#endif\n\n @import ecgl.common.emissiveLayer.main\n\n @import ecgl.common.wireframe.fragmentMain\n}\n\n@end"),Ce.import("@export ecgl.realistic.vertex\n\n@import ecgl.common.transformUniforms\n\n@import ecgl.common.uv.header\n\n@import ecgl.common.attributes\n\n\n@import ecgl.common.wireframe.vertexHeader\n\n#ifdef VERTEX_COLOR\nattribute vec4 a_Color : COLOR;\nvarying vec4 v_Color;\n#endif\n\n#ifdef NORMALMAP_ENABLED\nattribute vec4 tangent : TANGENT;\nvarying vec3 v_Tangent;\nvarying vec3 v_Bitangent;\n#endif\n\n@import ecgl.common.vertexAnimation.header\n\nvarying vec3 v_Normal;\nvarying vec3 v_WorldPosition;\n\nvoid main()\n{\n\n @import ecgl.common.uv.main\n\n @import ecgl.common.vertexAnimation.main\n\n gl_Position = worldViewProjection * vec4(pos, 1.0);\n\n v_Normal = normalize((worldInverseTranspose * vec4(norm, 0.0)).xyz);\n v_WorldPosition = (world * vec4(pos, 1.0)).xyz;\n\n#ifdef VERTEX_COLOR\n v_Color = a_Color;\n#endif\n\n#ifdef NORMALMAP_ENABLED\n v_Tangent = normalize((worldInverseTranspose * vec4(tangent.xyz, 0.0)).xyz);\n v_Bitangent = normalize(cross(v_Normal, v_Tangent) * tangent.w);\n#endif\n\n @import ecgl.common.wireframe.vertexMain\n\n}\n\n@end\n\n\n\n@export ecgl.realistic.fragment\n\n#define LAYER_DIFFUSEMAP_COUNT 0\n#define LAYER_EMISSIVEMAP_COUNT 0\n#define PI 3.14159265358979\n#define ROUGHNESS_CHANEL 0\n#define METALNESS_CHANEL 1\n\n#define NORMAL_UP_AXIS 1\n#define NORMAL_FRONT_AXIS 2\n\n#ifdef VERTEX_COLOR\nvarying vec4 v_Color;\n#endif\n\n@import ecgl.common.uv.fragmentHeader\n\nvarying vec3 v_Normal;\nvarying vec3 v_WorldPosition;\n\nuniform sampler2D diffuseMap;\n\nuniform sampler2D detailMap;\nuniform sampler2D metalnessMap;\nuniform sampler2D roughnessMap;\n\n@import ecgl.common.layers.header\n\nuniform float emissionIntensity: 1.0;\n\nuniform vec4 color : [1.0, 1.0, 1.0, 1.0];\n\nuniform float metalness : 0.0;\nuniform float roughness : 0.5;\n\nuniform mat4 viewInverse : VIEWINVERSE;\n\n#ifdef ATMOSPHERE_ENABLED\nuniform mat4 viewTranspose: VIEWTRANSPOSE;\nuniform vec3 glowColor;\nuniform float glowPower;\n#endif\n\n#ifdef AMBIENT_LIGHT_COUNT\n@import clay.header.ambient_light\n#endif\n\n#ifdef AMBIENT_SH_LIGHT_COUNT\n@import clay.header.ambient_sh_light\n#endif\n\n#ifdef AMBIENT_CUBEMAP_LIGHT_COUNT\n@import clay.header.ambient_cubemap_light\n#endif\n\n#ifdef DIRECTIONAL_LIGHT_COUNT\n@import clay.header.directional_light\n#endif\n\n@import ecgl.common.normalMap.fragmentHeader\n\n@import ecgl.common.ssaoMap.header\n\n@import ecgl.common.bumpMap.header\n\n@import clay.util.srgb\n\n@import clay.util.rgbm\n\n@import ecgl.common.wireframe.fragmentHeader\n\n@import clay.plugin.compute_shadow_map\n\nvec3 F_Schlick(float ndv, vec3 spec) {\n return spec + (1.0 - spec) * pow(1.0 - ndv, 5.0);\n}\n\nfloat D_Phong(float g, float ndh) {\n float a = pow(8192.0, g);\n return (a + 2.0) / 8.0 * pow(ndh, a);\n}\n\nvoid main()\n{\n vec4 albedoColor = color;\n\n vec3 eyePos = viewInverse[3].xyz;\n vec3 V = normalize(eyePos - v_WorldPosition);\n#ifdef VERTEX_COLOR\n #ifdef SRGB_DECODE\n albedoColor *= sRGBToLinear(v_Color);\n #else\n albedoColor *= v_Color;\n #endif\n#endif\n\n @import ecgl.common.albedo.main\n\n @import ecgl.common.diffuseLayer.main\n\n albedoColor *= albedoTexel;\n\n float m = metalness;\n\n#ifdef METALNESSMAP_ENABLED\n float m2 = texture2D(metalnessMap, v_DetailTexcoord)[METALNESS_CHANEL];\n m = clamp(m2 + (m - 0.5) * 2.0, 0.0, 1.0);\n#endif\n\n vec3 baseColor = albedoColor.rgb;\n albedoColor.rgb = baseColor * (1.0 - m);\n vec3 specFactor = mix(vec3(0.04), baseColor, m);\n\n float g = 1.0 - roughness;\n\n#ifdef ROUGHNESSMAP_ENABLED\n float g2 = 1.0 - texture2D(roughnessMap, v_DetailTexcoord)[ROUGHNESS_CHANEL];\n g = clamp(g2 + (g - 0.5) * 2.0, 0.0, 1.0);\n#endif\n\n vec3 N = v_Normal;\n\n#ifdef DOUBLE_SIDED\n if (dot(N, V) < 0.0) {\n N = -N;\n }\n#endif\n\n float ambientFactor = 1.0;\n\n#ifdef BUMPMAP_ENABLED\n N = bumpNormal(v_WorldPosition, v_Normal, N);\n ambientFactor = dot(v_Normal, N);\n#endif\n\n@import ecgl.common.normalMap.fragmentMain\n\n vec3 N2 = vec3(N.x, N[NORMAL_UP_AXIS], N[NORMAL_FRONT_AXIS]);\n\n vec3 diffuseTerm = vec3(0.0);\n vec3 specularTerm = vec3(0.0);\n\n float ndv = clamp(dot(N, V), 0.0, 1.0);\n vec3 fresnelTerm = F_Schlick(ndv, specFactor);\n\n @import ecgl.common.ssaoMap.main\n\n#ifdef AMBIENT_LIGHT_COUNT\n for(int _idx_ = 0; _idx_ < AMBIENT_LIGHT_COUNT; _idx_++)\n {{\n diffuseTerm += ambientLightColor[_idx_] * ambientFactor * ao;\n }}\n#endif\n\n#ifdef AMBIENT_SH_LIGHT_COUNT\n for(int _idx_ = 0; _idx_ < AMBIENT_SH_LIGHT_COUNT; _idx_++)\n {{\n diffuseTerm += calcAmbientSHLight(_idx_, N2) * ambientSHLightColor[_idx_] * ao;\n }}\n#endif\n\n#ifdef DIRECTIONAL_LIGHT_COUNT\n#if defined(DIRECTIONAL_LIGHT_SHADOWMAP_COUNT)\n float shadowContribsDir[DIRECTIONAL_LIGHT_COUNT];\n if(shadowEnabled)\n {\n computeShadowOfDirectionalLights(v_WorldPosition, shadowContribsDir);\n }\n#endif\n for(int _idx_ = 0; _idx_ < DIRECTIONAL_LIGHT_COUNT; _idx_++)\n {{\n vec3 L = -directionalLightDirection[_idx_];\n vec3 lc = directionalLightColor[_idx_];\n\n vec3 H = normalize(L + V);\n float ndl = clamp(dot(N, normalize(L)), 0.0, 1.0);\n float ndh = clamp(dot(N, H), 0.0, 1.0);\n\n float shadowContrib = 1.0;\n#if defined(DIRECTIONAL_LIGHT_SHADOWMAP_COUNT)\n if (shadowEnabled)\n {\n shadowContrib = shadowContribsDir[_idx_];\n }\n#endif\n\n vec3 li = lc * ndl * shadowContrib;\n\n diffuseTerm += li;\n specularTerm += li * fresnelTerm * D_Phong(g, ndh);\n }}\n#endif\n\n\n#ifdef AMBIENT_CUBEMAP_LIGHT_COUNT\n vec3 L = reflect(-V, N);\n L = vec3(L.x, L[NORMAL_UP_AXIS], L[NORMAL_FRONT_AXIS]);\n float rough2 = clamp(1.0 - g, 0.0, 1.0);\n float bias2 = rough2 * 5.0;\n vec2 brdfParam2 = texture2D(ambientCubemapLightBRDFLookup[0], vec2(rough2, ndv)).xy;\n vec3 envWeight2 = specFactor * brdfParam2.x + brdfParam2.y;\n vec3 envTexel2;\n for(int _idx_ = 0; _idx_ < AMBIENT_CUBEMAP_LIGHT_COUNT; _idx_++)\n {{\n envTexel2 = RGBMDecode(textureCubeLodEXT(ambientCubemapLightCubemap[_idx_], L, bias2), 8.12);\n specularTerm += ambientCubemapLightColor[_idx_] * envTexel2 * envWeight2 * ao;\n }}\n#endif\n\n gl_FragColor.rgb = albedoColor.rgb * diffuseTerm + specularTerm;\n gl_FragColor.a = albedoColor.a;\n\n#ifdef ATMOSPHERE_ENABLED\n float atmoIntensity = pow(1.0 - dot(v_Normal, (viewTranspose * vec4(0.0, 0.0, 1.0, 0.0)).xyz), glowPower);\n gl_FragColor.rgb += glowColor * atmoIntensity;\n#endif\n\n#ifdef SRGB_ENCODE\n gl_FragColor = linearTosRGB(gl_FragColor);\n#endif\n\n @import ecgl.common.emissiveLayer.main\n\n @import ecgl.common.wireframe.fragmentMain\n}\n\n@end"),Ce.import("@export ecgl.hatching.vertex\n\n@import ecgl.realistic.vertex\n\n@end\n\n\n@export ecgl.hatching.fragment\n\n#define NORMAL_UP_AXIS 1\n#define NORMAL_FRONT_AXIS 2\n\n@import ecgl.common.uv.fragmentHeader\n\nvarying vec3 v_Normal;\nvarying vec3 v_WorldPosition;\n\nuniform vec4 color : [0.0, 0.0, 0.0, 1.0];\nuniform vec4 paperColor : [1.0, 1.0, 1.0, 1.0];\n\nuniform mat4 viewInverse : VIEWINVERSE;\n\n#ifdef AMBIENT_LIGHT_COUNT\n@import clay.header.ambient_light\n#endif\n#ifdef AMBIENT_SH_LIGHT_COUNT\n@import clay.header.ambient_sh_light\n#endif\n\n#ifdef DIRECTIONAL_LIGHT_COUNT\n@import clay.header.directional_light\n#endif\n\n#ifdef VERTEX_COLOR\nvarying vec4 v_Color;\n#endif\n\n\n@import ecgl.common.ssaoMap.header\n\n@import ecgl.common.bumpMap.header\n\n@import clay.util.srgb\n\n@import ecgl.common.wireframe.fragmentHeader\n\n@import clay.plugin.compute_shadow_map\n\nuniform sampler2D hatch1;\nuniform sampler2D hatch2;\nuniform sampler2D hatch3;\nuniform sampler2D hatch4;\nuniform sampler2D hatch5;\nuniform sampler2D hatch6;\n\nfloat shade(in float tone) {\n vec4 c = vec4(1. ,1., 1., 1.);\n float step = 1. / 6.;\n vec2 uv = v_DetailTexcoord;\n if (tone <= step / 2.0) {\n c = mix(vec4(0.), texture2D(hatch6, uv), 12. * tone);\n }\n else if (tone <= step) {\n c = mix(texture2D(hatch6, uv), texture2D(hatch5, uv), 6. * tone);\n }\n if(tone > step && tone <= 2. * step){\n c = mix(texture2D(hatch5, uv), texture2D(hatch4, uv) , 6. * (tone - step));\n }\n if(tone > 2. * step && tone <= 3. * step){\n c = mix(texture2D(hatch4, uv), texture2D(hatch3, uv), 6. * (tone - 2. * step));\n }\n if(tone > 3. * step && tone <= 4. * step){\n c = mix(texture2D(hatch3, uv), texture2D(hatch2, uv), 6. * (tone - 3. * step));\n }\n if(tone > 4. * step && tone <= 5. * step){\n c = mix(texture2D(hatch2, uv), texture2D(hatch1, uv), 6. * (tone - 4. * step));\n }\n if(tone > 5. * step){\n c = mix(texture2D(hatch1, uv), vec4(1.), 6. * (tone - 5. * step));\n }\n\n return c.r;\n}\n\nconst vec3 w = vec3(0.2125, 0.7154, 0.0721);\n\nvoid main()\n{\n#ifdef SRGB_DECODE\n vec4 inkColor = sRGBToLinear(color);\n#else\n vec4 inkColor = color;\n#endif\n\n#ifdef VERTEX_COLOR\n #ifdef SRGB_DECODE\n inkColor *= sRGBToLinear(v_Color);\n #else\n inkColor *= v_Color;\n #endif\n#endif\n\n vec3 N = v_Normal;\n#ifdef DOUBLE_SIDED\n vec3 eyePos = viewInverse[3].xyz;\n vec3 V = normalize(eyePos - v_WorldPosition);\n\n if (dot(N, V) < 0.0) {\n N = -N;\n }\n#endif\n\n float tone = 0.0;\n\n float ambientFactor = 1.0;\n\n#ifdef BUMPMAP_ENABLED\n N = bumpNormal(v_WorldPosition, v_Normal, N);\n ambientFactor = dot(v_Normal, N);\n#endif\n\n vec3 N2 = vec3(N.x, N[NORMAL_UP_AXIS], N[NORMAL_FRONT_AXIS]);\n\n @import ecgl.common.ssaoMap.main\n\n#ifdef AMBIENT_LIGHT_COUNT\n for(int i = 0; i < AMBIENT_LIGHT_COUNT; i++)\n {\n tone += dot(ambientLightColor[i], w) * ambientFactor * ao;\n }\n#endif\n#ifdef AMBIENT_SH_LIGHT_COUNT\n for(int _idx_ = 0; _idx_ < AMBIENT_SH_LIGHT_COUNT; _idx_++)\n {{\n tone += dot(calcAmbientSHLight(_idx_, N2) * ambientSHLightColor[_idx_], w) * ao;\n }}\n#endif\n#ifdef DIRECTIONAL_LIGHT_COUNT\n#if defined(DIRECTIONAL_LIGHT_SHADOWMAP_COUNT)\n float shadowContribsDir[DIRECTIONAL_LIGHT_COUNT];\n if(shadowEnabled)\n {\n computeShadowOfDirectionalLights(v_WorldPosition, shadowContribsDir);\n }\n#endif\n for(int i = 0; i < DIRECTIONAL_LIGHT_COUNT; i++)\n {\n vec3 lightDirection = -directionalLightDirection[i];\n float lightTone = dot(directionalLightColor[i], w);\n\n float shadowContrib = 1.0;\n#if defined(DIRECTIONAL_LIGHT_SHADOWMAP_COUNT)\n if (shadowEnabled)\n {\n shadowContrib = shadowContribsDir[i];\n }\n#endif\n\n float ndl = dot(N, normalize(lightDirection)) * shadowContrib;\n\n tone += lightTone * clamp(ndl, 0.0, 1.0);\n }\n#endif\n\n gl_FragColor = mix(inkColor, paperColor, shade(clamp(tone, 0.0, 1.0)));\n }\n@end\n"),Ce.import("@export ecgl.sm.depth.vertex\n\nuniform mat4 worldViewProjection : WORLDVIEWPROJECTION;\n\nattribute vec3 position : POSITION;\nattribute vec2 texcoord : TEXCOORD_0;\n\n#ifdef VERTEX_ANIMATION\nattribute vec3 prevPosition;\nuniform float percent : 1.0;\n#endif\n\nvarying vec4 v_ViewPosition;\nvarying vec2 v_Texcoord;\n\nvoid main(){\n\n#ifdef VERTEX_ANIMATION\n vec3 pos = mix(prevPosition, position, percent);\n#else\n vec3 pos = position;\n#endif\n\n v_ViewPosition = worldViewProjection * vec4(pos, 1.0);\n gl_Position = v_ViewPosition;\n\n v_Texcoord = texcoord;\n\n}\n@end\n\n\n\n@export ecgl.sm.depth.fragment\n\n@import clay.sm.depth.fragment\n\n@end");var Ko=lr.prototype.addToScene,Jo=lr.prototype.removeFromScene;lr.prototype.addToScene=function(t){if(Ko.call(this,t),this.__zr){var e=this.__zr;t.traverse((function(t){t.__zr=e,t.addAnimatorsToZr&&t.addAnimatorsToZr(e)}))}},lr.prototype.removeFromScene=function(t){Jo.call(this,t),t.traverse((function(t){var e=t.__zr;t.__zr=null,e&&t.removeAnimatorsFromZr&&t.removeAnimatorsFromZr(e)}))},Ht.prototype.setTextureImage=function(t,e,n,i){if(this.shader){var r,o,a=n.getZr(),s=this;return s.autoUpdateTextureStatus=!1,s.disableTexture(t),(o=e)&&"none"!==o&&(r=Qo.loadTexture(e,n,i,(function(e){s.enableTexture(t),a&&a.refresh()})),s.set(t,r)),r}};var Qo={};Qo.Renderer=Ue,Qo.Node=Un,Qo.Mesh=li,Qo.Shader=Ce,Qo.Material=Ht,Qo.Texture=ai,Qo.Texture2D=fi,Qo.Geometry=Ci,Qo.SphereGeometry=To,Qo.PlaneGeometry=Pr,Qo.CubeGeometry=Nr,Qo.AmbientLight=Ao,Qo.DirectionalLight=Io,Qo.PointLight=ko,Qo.SpotLight=Do,Qo.PerspectiveCamera=mr,Qo.OrthographicCamera=ro,Qo.Vector2=Jt,Qo.Vector3=Qe,Qo.Vector4=No,Qo.Quaternion=kn,Qo.Matrix2=Go,Qo.Matrix2d=Wo,Qo.Matrix3=qo,Qo.Matrix4=An,Qo.Plane=Vi,Qo.Ray=ln,Qo.BoundingBox=Gn,Qo.Frustum=Zi;var ta=null;function ea(t){return Math.pow(2,Math.round(Math.log(t)/Math.LN2))}function na(t){if((t.wrapS===ai.REPEAT||t.wrapT===ai.REPEAT)&&t.image){var e=ea(t.width),n=ea(t.height);if(e!==t.width||n!==t.height){var i=document.createElement("canvas");i.width=e,i.height=n,i.getContext("2d").drawImage(t.image,0,0,e,n),t.image=i}}}Qo.loadTexture=function(t,e,n,i){"function"==typeof n&&(i=n,n={}),n=n||{};for(var r=Object.keys(n).sort(),o="",a=0;a<r.length;a++)o+=r[a]+"_"+n[r[a]]+"_";var s,l=e.__textureCache=e.__textureCache||new hr.Ay(20);if((s=t).getZr&&s.setOption){var h=t.__textureid__;if(u=l.get(o+h))u.texture.surface.setECharts(t),i&&i(u.texture);else{var c=new no(t);c.onupdate=function(){e.getZr().refresh()},u={texture:c.getTexture()};for(a=0;a<r.length;a++)u.texture[r[a]]=n[r[a]];h=t.__textureid__||"__ecgl_ec__"+u.texture.__uid__,t.__textureid__=h,l.put(o+h,u),i&&i(u.texture)}return u.texture}if($o(t)){var u;h=t.__textureid__;if(!(u=l.get(o+h))){u={texture:new Qo.Texture2D({image:t})};for(a=0;a<r.length;a++)u.texture[r[a]]=n[r[a]];h=t.__textureid__||"__ecgl_image__"+u.texture.__uid__,t.__textureid__=h,l.put(o+h,u),na(u.texture),i&&i(u.texture)}return u.texture}if(u=l.get(o+t))u.callbacks?u.callbacks.push(i):i&&i(u.texture);else if(t.match(/.hdr$|^data:application\/octet-stream/)){u={callbacks:[i]};var d=Jr.loadTexture(t,{exposure:n.exposure,fileType:"hdr"},(function(){d.dirty(),u.callbacks.forEach((function(t){t&&t(d)})),u.callbacks=null}));u.texture=d,l.put(o+t,u)}else{for(d=new Qo.Texture2D({image:new Image}),a=0;a<r.length;a++)d[r[a]]=n[r[a]];u={texture:d,callbacks:[i]};var p=d.image;p.onload=function(){d.image=p,na(d),d.dirty(),u.callbacks.forEach((function(t){t&&t(d)})),u.callbacks=null},p.crossOrigin="Anonymous",p.src=t,d.image=null!==ta?ta:ta=Jr.createBlank("rgba(255,255,255,0)").image,l.put(o+t,u)}return u.texture},Qo.createAmbientCubemap=function(t,e,n,i){var r=(t=t||{}).texture,o=wo.firstNotNull(t.exposure,1),a=new fo({intensity:wo.firstNotNull(t.specularIntensity,1)}),s=new mo({intensity:wo.firstNotNull(t.diffuseIntensity,1),coefficients:[.844,.712,.691,-.037,.083,.167,.343,.288,.299,-.041,-.021,-.009,-.003,-.041,-.064,-.011,-.007,-.004,-.031,.034,.081,-.06,-.049,-.06,.046,.056,.05]});return a.cubemap=Qo.loadTexture(r,n,{exposure:o},(function(){a.cubemap.flipY=!1,a.prefilter(e,32),s.coefficients=bo.projectEnvironmentMap(e,a.cubemap,{lod:1}),i&&i()})),{specular:a,diffuse:s}},Qo.createBlankTexture=Jr.createBlank,Qo.isImage=$o,Qo.additiveBlend=function(t){t.blendEquation(t.FUNC_ADD),t.blendFunc(t.SRC_ALPHA,t.ONE)},Qo.parseColor=function(t,e){return t instanceof Array?(e||(e=[]),e[0]=t[0],e[1]=t[1],e[2]=t[2],t.length>3?e[3]=t[3]:e[3]=1,e):((e=i.yW.parse(t||"#000",e)||[0,0,0,0])[0]/=255,e[1]/=255,e[2]/=255,e)},Qo.directionFromAlphaBeta=function(t,e){var n=t/180*Math.PI+Math.PI/2,i=-e/180*Math.PI+Math.PI/2,r=[],o=Math.sin(n);return r[0]=o*Math.cos(i),r[1]=-Math.cos(n),r[2]=o*Math.sin(i),r},Qo.getShadowResolution=function(t){var e=1024;switch(t){case"low":e=512;break;case"medium":break;case"high":e=2048;break;case"ultra":e=4096}return e},Qo.COMMON_SHADERS=["lambert","color","realistic","hatching","shadow"],Qo.createShader=function(t){"ecgl.shadow"===t&&(t="ecgl.displayShadow");var e=Ce.source(t+".vertex"),n=Ce.source(t+".fragment");e||console.error("Vertex shader of '%s' not exits",t),n||console.error("Fragment shader of '%s' not exits",t);var i=new Ce(e,n);return i.name=t,i},Qo.createMaterial=function(t,e){e instanceof Array||(e=[e]);var n=Qo.createShader(t),i=new Ht({shader:n});return e.forEach((function(t){"string"==typeof t&&i.define(t)})),i},Qo.setMaterialFromModel=function(t,e,n,i){e.autoUpdateTextureStatus=!1;var r=n.getModel(t+"Material"),o=r.get("detailTexture"),a=wo.firstNotNull(r.get("textureTiling"),1),s=wo.firstNotNull(r.get("textureOffset"),0);"number"==typeof a&&(a=[a,a]),"number"==typeof s&&(s=[s,s]);var l=a[0]>1||a[1]>1?Qo.Texture.REPEAT:Qo.Texture.CLAMP_TO_EDGE,h={anisotropic:8,wrapS:l,wrapT:l};if("realistic"===t){var c=r.get("roughness"),u=r.get("metalness");null!=u?isNaN(u)&&(e.setTextureImage("metalnessMap",u,i,h),u=wo.firstNotNull(r.get("metalnessAdjust"),.5)):u=0,null!=c?isNaN(c)&&(e.setTextureImage("roughnessMap",c,i,h),c=wo.firstNotNull(r.get("roughnessAdjust"),.5)):c=.5;var d=r.get("normalTexture");e.setTextureImage("detailMap",o,i,h),e.setTextureImage("normalMap",d,i,h),e.set({roughness:c,metalness:u,detailUvRepeat:a,detailUvOffset:s})}else if("lambert"===t)e.setTextureImage("detailMap",o,i,h),e.set({detailUvRepeat:a,detailUvOffset:s});else if("color"===t)e.setTextureImage("detailMap",o,i,h),e.set({detailUvRepeat:a,detailUvOffset:s});else if("hatching"===t){var p=r.get("hatchingTextures")||[];p.length;for(var f=0;f<6;f++)e.setTextureImage("hatch"+(f+1),p[f],i,{anisotropic:8,wrapS:Qo.Texture.REPEAT,wrapT:Qo.Texture.REPEAT});e.set({detailUvRepeat:a,detailUvOffset:s})}},Qo.updateVertexAnimation=function(t,e,n,i){var r=i.get("animation"),o=i.get("animationDurationUpdate"),a=i.get("animationEasingUpdate"),s=n.shadowDepthMaterial;if(r&&e&&o>0&&e.geometry.vertexCount===n.geometry.vertexCount){n.material.define("vertex","VERTEX_ANIMATION"),n.ignorePreZ=!0,s&&s.define("vertex","VERTEX_ANIMATION");for(var l=0;l<t.length;l++)n.geometry.attributes[t[l][0]].value=e.geometry.attributes[t[l][1]].value;n.geometry.dirty(),n.__percent=0,n.material.set("percent",0),n.stopAnimation(),n.animate().when(o,{__percent:1}).during((function(){n.material.set("percent",n.__percent),s&&s.set("percent",n.__percent)})).done((function(){n.ignorePreZ=!1,n.material.undefine("vertex","VERTEX_ANIMATION"),s&&s.undefine("vertex","VERTEX_ANIMATION")})).start(a)}else n.material.undefine("vertex","VERTEX_ANIMATION"),s&&s.undefine("vertex","VERTEX_ANIMATION")};const ia=Qo;var ra=n(3358),oa=function(t,e){this.id=t,this.zr=e;try{this.renderer=new Ue({clearBit:0,devicePixelRatio:e.painter.dpr,preserveDrawingBuffer:!0,premultipliedAlpha:!0}),this.renderer.resize(e.painter.getWidth(),e.painter.getHeight())}catch(Jh){return this.renderer=null,this.dom=document.createElement("div"),this.dom.style.cssText="position:absolute; left: 0; top: 0; right: 0; bottom: 0;",this.dom.className="ecgl-nowebgl",this.dom.innerHTML="Sorry, your browser does not support WebGL",void console.error(Jh)}this.onglobalout=this.onglobalout.bind(this),e.on("globalout",this.onglobalout),this.dom=this.renderer.canvas;var n=this.dom.style;n.position="absolute",n.left="0",n.top="0",this.views=[],this._picking=new ei({renderer:this.renderer}),this._viewsToDispose=[],this._accumulatingId=0,this._zrEventProxy=new i.fA.Rect({shape:{x:-1,y:-1,width:2,height:2},__isGLToZRProxy:!0}),this._backgroundColor=null,this._disposed=!1};function aa(t){var e=t.__zr;t.__zr=null,e&&t.removeAnimatorsFromZr&&t.removeAnimatorsFromZr(e)}oa.prototype.setUnpainted=function(){},oa.prototype.addView=function(t){if(t.layer!==this){var e=this._viewsToDispose.indexOf(t);e>=0&&this._viewsToDispose.splice(e,1),this.views.push(t),t.layer=this;var n=this.zr;t.scene.traverse((function(t){t.__zr=n,t.addAnimatorsToZr&&t.addAnimatorsToZr(n)}))}},oa.prototype.removeView=function(t){if(t.layer===this){var e=this.views.indexOf(t);e>=0&&(this.views.splice(e,1),t.scene.traverse(aa,this),t.layer=null,this._viewsToDispose.push(t))}},oa.prototype.removeViewsAll=function(){this.views.forEach((function(t){t.scene.traverse(aa,this),t.layer=null,this._viewsToDispose.push(t)}),this),this.views.length=0},oa.prototype.resize=function(t,e){this.renderer.resize(t,e)},oa.prototype.clear=function(){var t=this.renderer.gl,e=this._backgroundColor||[0,0,0,0];t.clearColor(e[0],e[1],e[2],e[3]),t.depthMask(!0),t.colorMask(!0,!0,!0,!0),t.clear(t.DEPTH_BUFFER_BIT|t.COLOR_BUFFER_BIT)},oa.prototype.clearDepth=function(){var t=this.renderer.gl;t.clear(t.DEPTH_BUFFER_BIT)},oa.prototype.clearColor=function(){var t=this.renderer.gl;t.clearColor(0,0,0,0),t.clear(t.COLOR_BUFFER_BIT)},oa.prototype.needsRefresh=function(){this.zr.refresh()},oa.prototype.refresh=function(t){this._backgroundColor=t?ia.parseColor(t):[0,0,0,0],this.renderer.clearColor=this._backgroundColor;for(var e=0;e<this.views.length;e++)this.views[e].prepareRender(this.renderer);this._doRender(!1),this._trackAndClean();for(e=0;e<this._viewsToDispose.length;e++)this._viewsToDispose[e].dispose(this.renderer);this._viewsToDispose.length=0,this._startAccumulating()},oa.prototype.renderToCanvas=function(t){this._startAccumulating(!0),t.drawImage(this.dom,0,0,t.canvas.width,t.canvas.height)},oa.prototype._doRender=function(t){this.clear(),this.renderer.saveViewport();for(var e=0;e<this.views.length;e++)this.views[e].render(this.renderer,t);this.renderer.restoreViewport()},oa.prototype._stopAccumulating=function(){this._accumulatingId=0,clearTimeout(this._accumulatingTimeout)};var sa=1;function la(t){for(var e=0;e<t.length;e++)t[e].__used__=0}function ha(t,e){for(var n=0;n<e.length;n++)e[n].__used__||e[n].dispose(t)}function ca(t,e){t.__used__=t.__used__||0,t.__used__++,1===t.__used__&&e.push(t)}function ua(t,e,n){var i,r;t.traverse((function(t){if(t.isRenderable()){var o=t.geometry,a=t.material;if(a!==i)for(var s=a.getTextureUniforms(),l=0;l<s.length;l++){var h=s[l],c=a.uniforms[h].value;if(c)if(c instanceof ai)ca(c,e);else if(c instanceof Array)for(var u=0;u<c.length;u++)c[u]instanceof ai&&ca(c[u],e)}o!==r&&ca(o,n),i=a,r=o}}));for(var o=0;o<t.lights.length;o++)t.lights[o].cubemap&&ca(t.lights[o].cubemap,e)}oa.prototype._startAccumulating=function(t){var e=this;this._stopAccumulating();for(var n=!1,i=0;i<this.views.length;i++)n=this.views[i].needsAccumulate()||n;function r(i){if(e._accumulatingId&&i===e._accumulatingId){for(var o=!0,a=0;a<e.views.length;a++)o=e.views[a].isAccumulateFinished()&&n;o||(e._doRender(!0),t?r(i):(0,ra.A)((function(){r(i)})))}}n&&(this._accumulatingId=sa++,t?r(e._accumulatingId):this._accumulatingTimeout=setTimeout((function(){r(e._accumulatingId)}),50))},oa.prototype._trackAndClean=function(){var t=[],e=[];this._textureList&&(la(this._textureList),la(this._geometriesList));for(var n=0;n<this.views.length;n++)ua(this.views[n].scene,t,e);this._textureList&&(ha(this.renderer,this._textureList),ha(this.renderer,this._geometriesList)),this._textureList=t,this._geometriesList=e},oa.prototype.dispose=function(){this._disposed||(this._stopAccumulating(),this._textureList&&(la(this._textureList),la(this._geometriesList),ha(this.renderer,this._textureList),ha(this.renderer,this._geometriesList)),this.zr.off("globalout",this.onglobalout),this._disposed=!0)},oa.prototype.onmousedown=function(t){if(!t.target||!t.target.__isGLToZRProxy){t=t.event;var e=this.pickObject(t.offsetX,t.offsetY);e&&(this._dispatchEvent("mousedown",t,e),this._dispatchDataEvent("mousedown",t,e)),this._downX=t.offsetX,this._downY=t.offsetY}},oa.prototype.onmousemove=function(t){if(!t.target||!t.target.__isGLToZRProxy){t=t.event;var e=this.pickObject(t.offsetX,t.offsetY),n=e&&e.target,i=this._hovered;this._hovered=e,i&&n!==i.target&&(i.relatedTarget=n,this._dispatchEvent("mouseout",t,i),this.zr.setCursorStyle("default")),this._dispatchEvent("mousemove",t,e),e&&(this.zr.setCursorStyle("pointer"),i&&n===i.target||this._dispatchEvent("mouseover",t,e)),this._dispatchDataEvent("mousemove",t,e)}},oa.prototype.onmouseup=function(t){if(!t.target||!t.target.__isGLToZRProxy){t=t.event;var e=this.pickObject(t.offsetX,t.offsetY);e&&(this._dispatchEvent("mouseup",t,e),this._dispatchDataEvent("mouseup",t,e)),this._upX=t.offsetX,this._upY=t.offsetY}},oa.prototype.onclick=oa.prototype.dblclick=function(t){if(!t.target||!t.target.__isGLToZRProxy){var e=this._upX-this._downX,n=this._upY-this._downY;if(!(Math.sqrt(e*e+n*n)>20)){t=t.event;var i=this.pickObject(t.offsetX,t.offsetY);i&&(this._dispatchEvent(t.type,t,i),this._dispatchDataEvent(t.type,t,i));var r=this._clickToSetFocusPoint(t);if(r)r.view.setDOFFocusOnPoint(r.distance)&&this.zr.refresh()}}},oa.prototype._clickToSetFocusPoint=function(t){for(var e=this.renderer,n=e.viewport,i=this.views.length-1;i>=0;i--){var r=this.views[i];if(r.hasDOF()&&r.containPoint(t.offsetX,t.offsetY)){this._picking.scene=r.scene,this._picking.camera=r.camera,e.viewport=r.viewport;var o=this._picking.pick(t.offsetX,t.offsetY,!0);if(o)return o.view=r,o}}e.viewport=n},oa.prototype.onglobalout=function(t){var e=this._hovered;e&&this._dispatchEvent("mouseout",t,{target:e.target})},oa.prototype.pickObject=function(t,e){for(var n=[],i=this.renderer,r=i.viewport,o=0;o<this.views.length;o++){var a=this.views[o];a.containPoint(t,e)&&(this._picking.scene=a.scene,this._picking.camera=a.camera,i.viewport=a.viewport,this._picking.pickAll(t,e,n))}return i.viewport=r,n.sort((function(t,e){return t.distance-e.distance})),n[0]},oa.prototype._dispatchEvent=function(t,e,n){n||(n={});var i=n.target;for(n.cancelBubble=!1,n.event=e,n.type=t,n.offsetX=e.offsetX,n.offsetY=e.offsetY;i&&(i.trigger(t,n),i=i.getParent(),!n.cancelBubble););this._dispatchToView(t,n)},oa.prototype._dispatchDataEvent=function(t,e,n){var r=n&&n.target,o=r&&r.dataIndex,a=r&&r.seriesIndex,s=r&&r.eventData,l=!1,h=this._zrEventProxy;h.x=e.offsetX,h.y=e.offsetY,h.update();var c={target:h};const u=i.dw.getECData(h);"mousemove"===t&&(null!=o?o!==this._lastDataIndex&&(parseInt(this._lastDataIndex,10)>=0&&(u.dataIndex=this._lastDataIndex,u.seriesIndex=this._lastSeriesIndex,this.zr.handler.dispatchToElement(c,"mouseout",e)),l=!0):null!=s&&s!==this._lastEventData&&(null!=this._lastEventData&&(u.eventData=this._lastEventData,this.zr.handler.dispatchToElement(c,"mouseout",e)),l=!0),this._lastEventData=s,this._lastDataIndex=o,this._lastSeriesIndex=a),u.eventData=s,u.dataIndex=o,u.seriesIndex=a,(null!=s||parseInt(o,10)>=0&&parseInt(a,10)>=0)&&(this.zr.handler.dispatchToElement(c,t,e),l&&this.zr.handler.dispatchToElement(c,"mouseover",e))},oa.prototype._dispatchToView=function(t,e){for(var n=0;n<this.views.length;n++)this.views[n].containPoint(e.offsetX,e.offsetY)&&this.views[n].trigger(t,e)},Object.assign(oa.prototype,d);const da=oa;var pa=["bar3D","line3D","map3D","scatter3D","surface","lines3D","scatterGL","scatter3D"];function fa(t,e){if(t&&t[e]&&(t[e].normal||t[e].emphasis)){var n=t[e].normal,i=t[e].emphasis;n&&(t[e]=n),i&&(t.emphasis=t.emphasis||{},t.emphasis[e]=i)}}function ga(t){t&&(t instanceof Array||(t=[t]),i.ZS.each(t,(function(t){if(t.axisLabel){var e=t.axisLabel;Object.assign(e,e.textStyle),e.textStyle=null}})))}function ma(t){this._layers={},this._zr=t}ma.prototype.update=function(t,e){var n=this,r=e.getZr();if(r.getWidth()&&r.getHeight()){for(var o in this._layers)this._layers[o].removeViewsAll();t.eachComponent((function(n,i){if("series"!==n){var r=e.getViewOfComponentModel(i),o=i.coordinateSystem;if(r.__ecgl__){if(o){if(!o.viewGL)return void console.error("Can't find viewGL in coordinateSystem of component "+i.id);l=o.viewGL}else{if(!i.viewGL)return void console.error("Can't find viewGL of component "+i.id);l=o.viewGL}var l=o.viewGL,h=a(i);h.addView(l),r.afterRender&&r.afterRender(i,t,e,h),s(r.groupGL,i.get("silent"))}}})),t.eachSeries((function(n){var i=e.getViewOfSeriesModel(n),r=n.coordinateSystem;if(i.__ecgl__){if(r&&!r.viewGL&&!i.viewGL)return void console.error("Can't find viewGL of series "+i.id);var o=r&&r.viewGL||i.viewGL,l=a(n);l.addView(o),i.afterRender&&i.afterRender(n,t,e,l),s(i.groupGL,n.get("silent"))}}))}else console.warn("Dom has no width or height");function a(t){var e;r.setSleepAfterStill(0),e=(t.coordinateSystem&&t.coordinateSystem.model,t.get("zlevel"));var o=n._layers,a=o[e];if(!a){if(a=o[e]=new da("gl-"+e,r),r.painter.isSingleCanvas()){a.virtual=!0;var s=new i.fA.Image({z:1e4,style:{image:a.renderer.canvas},silent:!0});a.__hostImage=s,r.add(s)}r.painter.insertLayer(e,a)}return a.__hostImage&&a.__hostImage.setStyle({width:a.renderer.getWidth(),height:a.renderer.getHeight()}),a}function s(t,e){t&&t.traverse((function(t){t.isRenderable&&t.isRenderable()&&(t.ignorePicking=null!=t.$ignorePicking?t.$ignorePicking:e)}))}},i.cf((function(t){var e=t.getZr(),n=e.painter.dispose;e.painter.dispose=function(){"function"==typeof this.eachOtherLayer&&this.eachOtherLayer((function(t){t instanceof da&&t.dispose()})),n.call(this)},e.painter.getRenderedCanvas=function(t){if(t=t||{},this._singleCanvas)return this._layers[0].dom;var e=document.createElement("canvas"),n=t.pixelRatio||this.dpr;e.width=this.getWidth()*n,e.height=this.getHeight()*n;var i=e.getContext("2d");i.dpr=n,i.clearRect(0,0,e.width,e.height),t.backgroundColor&&(i.fillStyle=t.backgroundColor,i.fillRect(0,0,e.width,e.height));var r,o=this.storage.getDisplayList(!0),a={},s=this;function l(t,e){var n,r=s._zlevelList;null==t&&(t=-1/0);for(var o=0;o<r.length;o++){var a=r[o],l=s._layers[a];if(!l.__builtin__&&a>t&&a<e){n=l;break}}n&&n.renderToCanvas&&(i.save(),n.renderToCanvas(i),i.restore())}for(var h={ctx:i},c=0;c<o.length;c++){var u=o[c];u.zlevel!==r&&(l(r,u.zlevel),r=u.zlevel),this._doPaintEl(u,h,!0,null,a)}return l(r,1/0),e}})),i.tb((function(t,e){var n=e.getZr();(n.__egl=n.__egl||new ma(n)).update(t,e)})),i.lP((function(t){i.ZS.each(t.series,(function(e){i.ZS.indexOf(pa,e.type)>=0&&(!function(t){fa(t,"itemStyle"),fa(t,"lineStyle"),fa(t,"areaStyle"),fa(t,"label")}(e),"mapbox"===e.coordinateSystem&&(e.coordinateSystem="mapbox3D",t.mapbox3D=t.mapbox))})),ga(t.xAxis3D),ga(t.yAxis3D),ga(t.zAxis3D),ga(t.grid3D),fa(t.geo3D)}));const va={defaultOption:{viewControl:{projection:"perspective",autoRotate:!1,autoRotateDirection:"cw",autoRotateSpeed:10,autoRotateAfterStill:3,damping:.8,rotateSensitivity:1,zoomSensitivity:1,panSensitivity:1,panMouseButton:"middle",rotateMouseButton:"left",distance:150,minDistance:40,maxDistance:400,orthographicSize:150,maxOrthographicSize:400,minOrthographicSize:20,center:[0,0,0],alpha:0,beta:0,minAlpha:-90,maxAlpha:90}},setView:function(t){t=t||{},this.option.viewControl=this.option.viewControl||{},null!=t.alpha&&(this.option.viewControl.alpha=t.alpha),null!=t.beta&&(this.option.viewControl.beta=t.beta),null!=t.distance&&(this.option.viewControl.distance=t.distance),null!=t.center&&(this.option.viewControl.center=t.center)}},ya={defaultOption:{postEffect:{enable:!1,bloom:{enable:!0,intensity:.1},depthOfField:{enable:!1,focalRange:20,focalDistance:50,blurRadius:10,fstop:2.8,quality:"medium"},screenSpaceAmbientOcclusion:{enable:!1,radius:2,quality:"medium",intensity:1},screenSpaceReflection:{enable:!1,quality:"medium",maxRoughness:.8},colorCorrection:{enable:!0,exposure:0,brightness:0,contrast:1,saturation:1,lookupTexture:""},edge:{enable:!1},FXAA:{enable:!1}},temporalSuperSampling:{enable:"auto"}}},_a={defaultOption:{light:{main:{shadow:!1,shadowQuality:"high",color:"#fff",intensity:1,alpha:0,beta:0},ambient:{color:"#fff",intensity:.2},ambientCubemap:{texture:null,exposure:1,diffuseIntensity:.5,specularIntensity:.5}}}};var xa=i.jT.extend({type:"grid3D",dependencies:["xAxis3D","yAxis3D","zAxis3D"],defaultOption:{show:!0,zlevel:-10,left:0,top:0,width:"100%",height:"100%",environment:"auto",boxWidth:100,boxHeight:100,boxDepth:100,axisPointer:{show:!0,lineStyle:{color:"rgba(0, 0, 0, 0.8)",width:1},label:{show:!0,formatter:null,margin:8,textStyle:{fontSize:14,color:"#fff",backgroundColor:"rgba(0,0,0,0.5)",padding:3,borderRadius:3}}},axisLine:{show:!0,lineStyle:{color:"#333",width:2,type:"solid"}},axisTick:{show:!0,inside:!1,length:3,lineStyle:{width:1}},axisLabel:{show:!0,inside:!1,rotate:0,margin:8,textStyle:{fontSize:12}},splitLine:{show:!0,lineStyle:{color:["#ccc"],width:1,type:"solid"}},splitArea:{show:!1,areaStyle:{color:["rgba(250,250,250,0.3)","rgba(200,200,200,0.3)"]}},light:{main:{alpha:30,beta:40},ambient:{intensity:.4}},viewControl:{alpha:20,beta:40,autoRotate:!1,distance:200,minDistance:40,maxDistance:400}}});i.ZS.merge(xa.prototype,va),i.ZS.merge(xa.prototype,ya),i.ZS.merge(xa.prototype,_a);const ba=xa;var wa=n(6547),Sa=wo.firstNotNull,Ta={left:0,middle:1,right:2};function Ma(t){return t instanceof Array||(t=[t,t]),t}var Aa=y.extend((function(){return{zr:null,viewGL:null,_center:new Qe,minDistance:.5,maxDistance:1.5,maxOrthographicSize:300,minOrthographicSize:30,minAlpha:-90,maxAlpha:90,minBeta:-1/0,maxBeta:1/0,autoRotateAfterStill:0,autoRotateDirection:"cw",autoRotateSpeed:60,damping:.8,rotateSensitivity:1,zoomSensitivity:1,panSensitivity:1,panMouseButton:"middle",rotateMouseButton:"left",_mode:"rotate",_camera:null,_needsUpdate:!1,_rotating:!1,_phi:0,_theta:0,_mouseX:0,_mouseY:0,_rotateVelocity:new Jt,_panVelocity:new Jt,_distance:500,_zoomSpeed:0,_stillTimeout:0,_animators:[]}}),(function(){["_mouseDownHandler","_mouseWheelHandler","_mouseMoveHandler","_mouseUpHandler","_pinchHandler","_contextMenuHandler","_update"].forEach((function(t){this[t]=this[t].bind(this)}),this)}),{init:function(){var t=this.zr;t&&(t.on("mousedown",this._mouseDownHandler),t.on("globalout",this._mouseUpHandler),t.on("mousewheel",this._mouseWheelHandler),t.on("pinch",this._pinchHandler),t.animation.on("frame",this._update),t.dom.addEventListener("contextmenu",this._contextMenuHandler))},dispose:function(){var t=this.zr;t&&(t.off("mousedown",this._mouseDownHandler),t.off("mousemove",this._mouseMoveHandler),t.off("mouseup",this._mouseUpHandler),t.off("mousewheel",this._mouseWheelHandler),t.off("pinch",this._pinchHandler),t.off("globalout",this._mouseUpHandler),t.dom.removeEventListener("contextmenu",this._contextMenuHandler),t.animation.off("frame",this._update)),this.stopAllAnimation()},getDistance:function(){return this._distance},setDistance:function(t){this._distance=t,this._needsUpdate=!0},getOrthographicSize:function(){return this._orthoSize},setOrthographicSize:function(t){this._orthoSize=t,this._needsUpdate=!0},getAlpha:function(){return this._theta/Math.PI*180},getBeta:function(){return-this._phi/Math.PI*180},getCenter:function(){return this._center.toArray()},setAlpha:function(t){t=Math.max(Math.min(this.maxAlpha,t),this.minAlpha),this._theta=t/180*Math.PI,this._needsUpdate=!0},setBeta:function(t){t=Math.max(Math.min(this.maxBeta,t),this.minBeta),this._phi=-t/180*Math.PI,this._needsUpdate=!0},setCenter:function(t){this._center.setArray(t)},setViewGL:function(t){this.viewGL=t},getCamera:function(){return this.viewGL.camera},setFromViewControlModel:function(t,e){var n=(e=e||{}).baseDistance||0,i=e.baseOrthoSize||1,r=t.get("projection");"perspective"!==r&&"orthographic"!==r&&"isometric"!==r&&(r="perspective"),this._projection=r,this.viewGL.setProjection(r);var o=t.get("distance")+n,a=t.get("orthographicSize")+i;[["damping",.8],["autoRotate",!1],["autoRotateAfterStill",3],["autoRotateDirection","cw"],["autoRotateSpeed",10],["minDistance",30],["maxDistance",400],["minOrthographicSize",30],["maxOrthographicSize",300],["minAlpha",-90],["maxAlpha",90],["minBeta",-1/0],["maxBeta",1/0],["rotateSensitivity",1],["zoomSensitivity",1],["panSensitivity",1],["panMouseButton","left"],["rotateMouseButton","middle"]].forEach((function(e){this[e[0]]=Sa(t.get(e[0]),e[1])}),this),this.minDistance+=n,this.maxDistance+=n,this.minOrthographicSize+=i,this.maxOrthographicSize+=i;var s=t.ecModel,l={};["animation","animationDurationUpdate","animationEasingUpdate"].forEach((function(e){l[e]=Sa(t.get(e),s&&s.get(e))}));var h=Sa(e.alpha,t.get("alpha"))||0,c=Sa(e.beta,t.get("beta"))||0,u=Sa(e.center,t.get("center"))||[0,0,0];l.animation&&l.animationDurationUpdate>0&&this._notFirst?this.animateTo({alpha:h,beta:c,center:u,distance:o,orthographicSize:a,easing:l.animationEasingUpdate,duration:l.animationDurationUpdate}):(this.setDistance(o),this.setAlpha(h),this.setBeta(c),this.setCenter(u),this.setOrthographicSize(a)),this._notFirst=!0,this._validateProperties()},_validateProperties:function(){0},animateTo:function(t){var e=this.zr,n=this,i={},r={};return null!=t.distance&&(i.distance=this.getDistance(),r.distance=t.distance),null!=t.orthographicSize&&(i.orthographicSize=this.getOrthographicSize(),r.orthographicSize=t.orthographicSize),null!=t.alpha&&(i.alpha=this.getAlpha(),r.alpha=t.alpha),null!=t.beta&&(i.beta=this.getBeta(),r.beta=t.beta),null!=t.center&&(i.center=this.getCenter(),r.center=t.center),this._addAnimator(e.animation.animate(i).when(t.duration||1e3,r).during((function(){null!=i.alpha&&n.setAlpha(i.alpha),null!=i.beta&&n.setBeta(i.beta),null!=i.distance&&n.setDistance(i.distance),null!=i.center&&n.setCenter(i.center),null!=i.orthographicSize&&n.setOrthographicSize(i.orthographicSize),n._needsUpdate=!0}))).start(t.easing||"linear")},stopAllAnimation:function(){for(var t=0;t<this._animators.length;t++)this._animators[t].stop();this._animators.length=0},update:function(){this._needsUpdate=!0,this._update(20)},_isAnimating:function(){return this._animators.length>0},_update:function(t){if(this._rotating){var e=("cw"===this.autoRotateDirection?1:-1)*this.autoRotateSpeed/180*Math.PI;this._phi-=e*t/1e3,this._needsUpdate=!0}else this._rotateVelocity.len()>0&&(this._needsUpdate=!0);(Math.abs(this._zoomSpeed)>.1||this._panVelocity.len()>0)&&(this._needsUpdate=!0),this._needsUpdate&&(t=Math.min(t,50),this._updateDistanceOrSize(t),this._updatePan(t),this._updateRotate(t),this._updateTransform(),this.getCamera().update(),this.zr&&this.zr.refresh(),this.trigger("update"),this._needsUpdate=!1)},_updateRotate:function(t){var e=this._rotateVelocity;this._phi=e.y*t/20+this._phi,this._theta=e.x*t/20+this._theta,this.setAlpha(this.getAlpha()),this.setBeta(this.getBeta()),this._vectorDamping(e,Math.pow(this.damping,t/16))},_updateDistanceOrSize:function(t){"perspective"===this._projection?this._setDistance(this._distance+this._zoomSpeed*t/20):this._setOrthoSize(this._orthoSize+this._zoomSpeed*t/20),this._zoomSpeed*=Math.pow(this.damping,t/16)},_setDistance:function(t){this._distance=Math.max(Math.min(t,this.maxDistance),this.minDistance)},_setOrthoSize:function(t){this._orthoSize=Math.max(Math.min(t,this.maxOrthographicSize),this.minOrthographicSize);var e=this.getCamera(),n=this._orthoSize,i=n/this.viewGL.viewport.height*this.viewGL.viewport.width;e.left=-i/2,e.right=i/2,e.top=n/2,e.bottom=-n/2},_updatePan:function(t){var e=this._panVelocity,n=this._distance,i=this.getCamera(),r=i.worldTransform.y,o=i.worldTransform.x;this._center.scaleAndAdd(o,-e.x*n/200).scaleAndAdd(r,-e.y*n/200),this._vectorDamping(e,0)},_updateTransform:function(){var t=this.getCamera(),e=new Qe,n=this._theta+Math.PI/2,i=this._phi+Math.PI/2,r=Math.sin(n);e.x=r*Math.cos(i),e.y=-Math.cos(n),e.z=r*Math.sin(i),t.position.copy(this._center).scaleAndAdd(e,this._distance),t.rotation.identity().rotateY(-this._phi).rotateX(-this._theta)},_startCountingStill:function(){clearTimeout(this._stillTimeout);var t=this.autoRotateAfterStill,e=this;!isNaN(t)&&t>0&&(this._stillTimeout=setTimeout((function(){e._rotating=!0}),1e3*t))},_vectorDamping:function(t,e){var n=t.len();(n*=e)<1e-4&&(n=0),t.normalize().scale(n)},_decomposeTransform:function(){if(this.getCamera()){this.getCamera().updateWorldTransform();var t=this.getCamera().worldTransform.z,e=Math.asin(t.y),n=Math.atan2(t.x,t.z);this._theta=e,this._phi=-n,this.setBeta(this.getBeta()),this.setAlpha(this.getAlpha()),this.getCamera().aspect?this._setDistance(this.getCamera().position.dist(this._center)):this._setOrthoSize(this.getCamera().top-this.getCamera().bottom)}},_mouseDownHandler:function(t){if(!t.target&&!this._isAnimating()){var e=t.offsetX,n=t.offsetY;this.viewGL&&!this.viewGL.containPoint(e,n)||(this.zr.on("mousemove",this._mouseMoveHandler),this.zr.on("mouseup",this._mouseUpHandler),t.event.targetTouches?1===t.event.targetTouches.length&&(this._mode="rotate"):t.event.button===Ta[this.rotateMouseButton]?this._mode="rotate":t.event.button===Ta[this.panMouseButton]?this._mode="pan":this._mode="",this._rotateVelocity.set(0,0),this._rotating=!1,this.autoRotate&&this._startCountingStill(),this._mouseX=t.offsetX,this._mouseY=t.offsetY)}},_mouseMoveHandler:function(t){if(!(t.target&&t.target.__isGLToZRProxy||this._isAnimating())){var e=Ma(this.panSensitivity),n=Ma(this.rotateSensitivity);"rotate"===this._mode?(this._rotateVelocity.y=(t.offsetX-this._mouseX)/this.zr.getHeight()*2*n[0],this._rotateVelocity.x=(t.offsetY-this._mouseY)/this.zr.getWidth()*2*n[1]):"pan"===this._mode&&(this._panVelocity.x=(t.offsetX-this._mouseX)/this.zr.getWidth()*e[0]*400,this._panVelocity.y=(-t.offsetY+this._mouseY)/this.zr.getHeight()*e[1]*400),this._mouseX=t.offsetX,this._mouseY=t.offsetY,t.event.preventDefault()}},_mouseWheelHandler:function(t){if(!this._isAnimating()){var e=t.event.wheelDelta||-t.event.detail;this._zoomHandler(t,e)}},_pinchHandler:function(t){this._isAnimating()||(this._zoomHandler(t,t.pinchScale>1?1:-1),this._mode="")},_zoomHandler:function(t,e){if(0!==e){var n,i=t.offsetX,r=t.offsetY;if(!this.viewGL||this.viewGL.containPoint(i,r))n="perspective"===this._projection?Math.max(Math.max(Math.min(this._distance-this.minDistance,this.maxDistance-this._distance))/20,.5):Math.max(Math.max(Math.min(this._orthoSize-this.minOrthographicSize,this.maxOrthographicSize-this._orthoSize))/20,.5),this._zoomSpeed=(e>0?-1:1)*n*this.zoomSensitivity,this._rotating=!1,this.autoRotate&&"rotate"===this._mode&&this._startCountingStill(),t.event.preventDefault()}},_mouseUpHandler:function(){this.zr.off("mousemove",this._mouseMoveHandler),this.zr.off("mouseup",this._mouseUpHandler)},_isRightMouseButtonUsed:function(){return"right"===this.rotateMouseButton||"right"===this.panMouseButton},_contextMenuHandler:function(t){this._isRightMouseButtonUsed()&&t.preventDefault()},_addAnimator:function(t){var e=this._animators;return e.push(t),t.done((function(){var n=e.indexOf(t);n>=0&&e.splice(n,1)})),t}});Object.defineProperty(Aa.prototype,"autoRotate",{get:function(t){return this._autoRotate},set:function(t){this._autoRotate=t,this._rotating=t}});const Ca=Aa,Ia={convertToDynamicArray:function(t){t&&this.resetOffset();var e=this.attributes;for(var n in e)t||!e[n].value?e[n].value=[]:e[n].value=Array.prototype.slice.call(e[n].value);t||!this.indices?this.indices=[]:this.indices=Array.prototype.slice.call(this.indices)},convertToTypedArray:function(){var t=this.attributes;for(var e in t)t[e].value&&t[e].value.length>0?t[e].value=new Float32Array(t[e].value):t[e].value=null;this.indices&&this.indices.length>0&&(this.indices=this.vertexCount>65535?new Uint32Array(this.indices):new Uint16Array(this.indices)),this.dirty()}},Ea={vec2:Zt,vec3:De,vec4:cn,mat2:Bo,mat2d:jo,mat3:dn,mat4:ke,quat:yn};var ka=Ea.vec3,La=[[0,0],[1,1]],Da=Ci.extend((function(){return{segmentScale:1,dynamic:!0,useNativeLine:!0,attributes:{position:new Ci.Attribute("position","float",3,"POSITION"),positionPrev:new Ci.Attribute("positionPrev","float",3),positionNext:new Ci.Attribute("positionNext","float",3),prevPositionPrev:new Ci.Attribute("prevPositionPrev","float",3),prevPosition:new Ci.Attribute("prevPosition","float",3),prevPositionNext:new Ci.Attribute("prevPositionNext","float",3),offset:new Ci.Attribute("offset","float",1),color:new Ci.Attribute("color","float",4,"COLOR")}}}),{resetOffset:function(){this._vertexOffset=0,this._triangleOffset=0,this._itemVertexOffsets=[]},setVertexCount:function(t){var e=this.attributes;this.vertexCount!==t&&(e.position.init(t),e.color.init(t),this.useNativeLine||(e.positionPrev.init(t),e.positionNext.init(t),e.offset.init(t)),t>65535?this.indices instanceof Uint16Array&&(this.indices=new Uint32Array(this.indices)):this.indices instanceof Uint32Array&&(this.indices=new Uint16Array(this.indices)))},setTriangleCount:function(t){this.triangleCount!==t&&(this.indices=0===t?null:this.vertexCount>65535?new Uint32Array(3*t):new Uint16Array(3*t))},_getCubicCurveApproxStep:function(t,e,n,i){return 1/(ka.dist(t,e)+ka.dist(n,e)+ka.dist(i,n)+1)*this.segmentScale},getCubicCurveVertexCount:function(t,e,n,i){var r=this._getCubicCurveApproxStep(t,e,n,i),o=Math.ceil(1/r);return this.useNativeLine?2*o:2*o+2},getCubicCurveTriangleCount:function(t,e,n,i){var r=this._getCubicCurveApproxStep(t,e,n,i),o=Math.ceil(1/r);return this.useNativeLine?0:2*o},getLineVertexCount:function(){return this.getPolylineVertexCount(La)},getLineTriangleCount:function(){return this.getPolylineTriangleCount(La)},getPolylineVertexCount:function(t){var e;"number"==typeof t?e=t:e="number"!=typeof t[0]?t.length:t.length/3;return this.useNativeLine?2*(e-1):2*(e-1)+2},getPolylineTriangleCount:function(t){var e;"number"==typeof t?e=t:e="number"!=typeof t[0]?t.length:t.length/3;return this.useNativeLine?0:2*Math.max(e-1,0)},addCubicCurve:function(t,e,n,i,r,o){null==o&&(o=1);var a=t[0],s=t[1],l=t[2],h=e[0],c=e[1],u=e[2],d=n[0],p=n[1],f=n[2],g=i[0],m=i[1],v=i[2],y=this._getCubicCurveApproxStep(t,e,n,i),_=y*y,x=_*y,b=3*y,w=3*_,S=6*_,T=6*x,M=a-2*h+d,A=s-2*c+p,C=l-2*u+f,I=3*(h-d)-a+g,E=3*(c-p)-s+m,k=3*(u-f)-l+v,L=a,D=s,P=l,R=(h-a)*b+M*w+I*x,O=(c-s)*b+A*w+E*x,N=(u-l)*b+C*w+k*x,F=M*S+I*T,B=A*S+E*T,z=C*S+k*T,G=I*T,V=E*T,j=k*T,H=0,W=0,U=Math.ceil(1/y),q=new Float32Array(3*(U+1)),X=(q=[],0);for(W=0;W<U+1;W++)q[X++]=L,q[X++]=D,q[X++]=P,L+=R,D+=O,P+=N,R+=F,O+=B,N+=z,F+=G,B+=V,z+=j,(H+=y)>1&&(L=R>0?Math.min(L,g):Math.max(L,g),D=O>0?Math.min(D,m):Math.max(D,m),P=N>0?Math.min(P,v):Math.max(P,v));return this.addPolyline(q,r,o)},addLine:function(t,e,n,i){return this.addPolyline([t,e],n,i)},addPolyline:function(t,e,n,i,r){if(t.length){var o="number"!=typeof t[0];if(null==r&&(r=o?t.length:t.length/3),!(r<2)){null==i&&(i=0),null==n&&(n=1),this._itemVertexOffsets.push(this._vertexOffset);var a,s,l=(o="number"!=typeof t[0])?"number"!=typeof e[0]:e.length/4===r,h=this.attributes.position,c=this.attributes.positionPrev,u=this.attributes.positionNext,d=this.attributes.color,p=this.attributes.offset,f=this.indices,g=this._vertexOffset;n=Math.max(n,.01);for(var m=i;m<r;m++){if(o)a=t[m],s=l?e[m]:e;else{var v=3*m;if((a=a||[])[0]=t[v],a[1]=t[v+1],a[2]=t[v+2],l){var y=4*m;(s=s||[])[0]=e[y],s[1]=e[y+1],s[2]=e[y+2],s[3]=e[y+3]}else s=e}if(this.useNativeLine?m>1&&(h.copy(g,g-1),d.copy(g,g-1),g++):(m<r-1&&(c.set(g+2,a),c.set(g+3,a)),m>0&&(u.set(g-2,a),u.set(g-1,a)),h.set(g,a),h.set(g+1,a),d.set(g,s),d.set(g+1,s),p.set(g,n/2),p.set(g+1,-n/2),g+=2),this.useNativeLine)d.set(g,s),h.set(g,a),g++;else if(m>0){var _=3*this._triangleOffset;(f=this.indices)[_]=g-4,f[_+1]=g-3,f[_+2]=g-2,f[_+3]=g-3,f[_+4]=g-1,f[_+5]=g-2,this._triangleOffset+=2}}if(!this.useNativeLine){var x=this._vertexOffset,b=this._vertexOffset+2*r;c.copy(x,x+2),c.copy(x+1,x+3),u.copy(b-1,b-3),u.copy(b-2,b-4)}return this._vertexOffset=g,this._vertexOffset}}},setItemColor:function(t,e){for(var n=this._itemVertexOffsets[t],i=t<this._itemVertexOffsets.length-1?this._itemVertexOffsets[t+1]:this._vertexOffset,r=n;r<i;r++)this.attributes.color.set(r,e);this.dirty("color")},currentTriangleOffset:function(){return this._triangleOffset},currentVertexOffset:function(){return this._vertexOffset}});i.ZS.defaults(Da.prototype,Ia);const Pa=Da;function Ra(t,e,n,i,r,o,a){this._zr=t,this._x=0,this._y=0,this._rowHeight=0,this.width=i,this.height=r,this.offsetX=e,this.offsetY=n,this.dpr=a,this.gap=o}function Oa(t){(t=t||{}).width=t.width||512,t.height=t.height||512,t.devicePixelRatio=t.devicePixelRatio||1,t.gap=null==t.gap?2:t.gap;var e=document.createElement("canvas");e.width=t.width*t.devicePixelRatio,e.height=t.height*t.devicePixelRatio,this._canvas=e,this._texture=new fi({image:e,flipY:!1});var n=this;this._zr=i.nd.init(e);var r=this._zr.refreshImmediately;this._zr.refreshImmediately=function(){r.call(this),n._texture.dirty(),n.onupdate&&n.onupdate()},this._dpr=t.devicePixelRatio,this._coords={},this.onupdate=t.onupdate,this._gap=t.gap,this._textureAtlasNodes=[new Ra(this._zr,0,0,t.width,t.height,this._gap,this._dpr)],this._nodeWidth=t.width,this._nodeHeight=t.height,this._currentNodeIdx=0}Ra.prototype={constructor:Ra,clear:function(){this._x=0,this._y=0,this._rowHeight=0},add:function(t,e,n){var i=t.getBoundingRect();null==e&&(e=i.width),null==n&&(n=i.height),e*=this.dpr,n*=this.dpr,this._fitElement(t,e,n);var r=this._x,o=this._y,a=this.width*this.dpr,s=this.height*this.dpr,l=this.gap;if(r+e+l>a&&(r=this._x=0,o+=this._rowHeight+l,this._y=o,this._rowHeight=0),this._x+=e+l,this._rowHeight=Math.max(this._rowHeight,n),o+n+l>s)return null;t.x+=this.offsetX*this.dpr+r,t.y+=this.offsetY*this.dpr+o,this._zr.add(t);var h=[this.offsetX/this.width,this.offsetY/this.height];return[[r/a+h[0],o/s+h[1]],[(r+e)/a+h[0],(o+n)/s+h[1]]]},_fitElement:function(t,e,n){var i=t.getBoundingRect(),r=e/i.width,o=n/i.height;t.x=-i.x*r,t.y=-i.y*o,t.scaleX=r,t.scaleY=o,t.update()}},Oa.prototype={clear:function(){for(var t=0;t<this._textureAtlasNodes.length;t++)this._textureAtlasNodes[t].clear();this._currentNodeIdx=0,this._zr.clear(),this._coords={}},getWidth:function(){return this._width},getHeight:function(){return this._height},getTexture:function(){return this._texture},getDevicePixelRatio:function(){return this._dpr},getZr:function(){return this._zr},_getCurrentNode:function(){return this._textureAtlasNodes[this._currentNodeIdx]},_expand:function(){if(this._currentNodeIdx++,this._textureAtlasNodes[this._currentNodeIdx])return this._textureAtlasNodes[this._currentNodeIdx];var t=4096/this._dpr,e=this._textureAtlasNodes.length,n=e*this._nodeWidth%t,i=Math.floor(e*this._nodeWidth/t)*this._nodeHeight;if(!(i>=t)){var r=(n+this._nodeWidth)*this._dpr,o=(i+this._nodeHeight)*this._dpr;try{this._zr.resize({width:r,height:o})}catch(Jh){this._canvas.width=r,this._canvas.height=o}var a=new Ra(this._zr,n,i,this._nodeWidth,this._nodeHeight,this._gap,this._dpr);return this._textureAtlasNodes.push(a),a}},add:function(t,e,n){if(this._coords[t.id])return this._coords[t.id];var i=this._getCurrentNode().add(t,e,n);if(!i){var r=this._expand();if(!r)return;i=r.add(t,e,n)}return this._coords[t.id]=i,i},getCoordsScale:function(){var t=this._dpr;return[this._nodeWidth/this._canvas.width*t,this._nodeHeight/this._canvas.height*t]},getCoords:function(t){return this._coords[t]},dispose:function(){this._zr.dispose()}};const Na=Oa;function Fa(){}Fa.prototype={constructor:Fa,setScene:function(t){this._scene=t,this._skybox&&this._skybox.attachScene(this._scene)},initLight:function(t){this._lightRoot=t,this.mainLight=new ia.DirectionalLight({shadowBias:.005}),this.ambientLight=new ia.AmbientLight,t.add(this.mainLight),t.add(this.ambientLight)},dispose:function(){this._lightRoot&&(this._lightRoot.remove(this.mainLight),this._lightRoot.remove(this.ambientLight))},updateLight:function(t){var e=this.mainLight,n=this.ambientLight,i=t.getModel("light"),r=i.getModel("main"),o=i.getModel("ambient");e.intensity=r.get("intensity"),n.intensity=o.get("intensity"),e.color=ia.parseColor(r.get("color")).slice(0,3),n.color=ia.parseColor(o.get("color")).slice(0,3);var a=r.get("alpha")||0,s=r.get("beta")||0;e.position.setArray(ia.directionFromAlphaBeta(a,s)),e.lookAt(ia.Vector3.ZERO),e.castShadow=r.get("shadow"),e.shadowResolution=ia.getShadowResolution(r.get("shadowQuality"))},updateAmbientCubemap:function(t,e,n){var i=e.getModel("light.ambientCubemap"),r=i.get("texture");if(r){this._cubemapLightsCache=this._cubemapLightsCache||{};var o=this._cubemapLightsCache[r];if(!o){var a=this;o=this._cubemapLightsCache[r]=ia.createAmbientCubemap(i.option,t,n,(function(){a._isSkyboxFromAmbientCubemap&&a._skybox.setEnvironmentMap(o.specular.cubemap),n.getZr().refresh()}))}this._lightRoot.add(o.diffuse),this._lightRoot.add(o.specular),this._currentCubemapLights=o}else this._currentCubemapLights&&(this._lightRoot.remove(this._currentCubemapLights.diffuse),this._lightRoot.remove(this._currentCubemapLights.specular),this._currentCubemapLights=null)},updateSkybox:function(t,e,n){var r=e.get("environment"),o=this;var a=(o._skybox=o._skybox||new Br,o._skybox);if(r&&"none"!==r)if("auto"===r)if(this._isSkyboxFromAmbientCubemap=!0,this._currentCubemapLights){var s=this._currentCubemapLights.specular.cubemap;a.setEnvironmentMap(s),this._scene&&a.attachScene(this._scene),a.material.set("lod",3)}else this._skybox&&this._skybox.detachScene();else if("object"==typeof r&&r.colorStops||"string"==typeof r&&i.yW.parse(r)){this._isSkyboxFromAmbientCubemap=!1;var l=new ia.Texture2D({anisotropic:8,flipY:!1});a.setEnvironmentMap(l);var h=l.image=document.createElement("canvas");h.width=h.height=16;var c=h.getContext("2d"),u=new i.fA.Rect({shape:{x:0,y:0,width:16,height:16},style:{fill:r}});i.UU(c,u),a.attachScene(this._scene)}else{this._isSkyboxFromAmbientCubemap=!1;l=ia.loadTexture(r,n,{anisotropic:8,flipY:!1});a.setEnvironmentMap(l),a.attachScene(this._scene)}else this._skybox&&this._skybox.detachScene(this._scene),this._skybox=null;var d=e.coordinateSystem;if(this._skybox)if(!d||!d.viewGL||"auto"===r||r.match&&r.match(/.hdr$/))this._skybox.material.undefine("fragment","SRGB_DECODE");else{var p=d.viewGL.isLinearSpace()?"define":"undefine";this._skybox.material[p]("fragment","SRGB_DECODE")}}};const Ba=Fa;var za=Ea.vec3,Ga=Ci.extend((function(){return{segmentScale:1,useNativeLine:!0,attributes:{position:new Ci.Attribute("position","float",3,"POSITION"),normal:new Ci.Attribute("normal","float",3,"NORMAL"),color:new Ci.Attribute("color","float",4,"COLOR")}}}),{resetOffset:function(){this._vertexOffset=0,this._faceOffset=0},setQuadCount:function(t){var e=this.attributes,n=this.getQuadVertexCount()*t,i=this.getQuadTriangleCount()*t;this.vertexCount!==n&&(e.position.init(n),e.normal.init(n),e.color.init(n)),this.triangleCount!==i&&(this.indices=n>65535?new Uint32Array(3*i):new Uint16Array(3*i))},getQuadVertexCount:function(){return 4},getQuadTriangleCount:function(){return 2},addQuad:function(){var t=za.create(),e=za.create(),n=za.create(),i=[0,3,1,3,2,1];return function(r,o){var a=this.attributes.position,s=this.attributes.normal,l=this.attributes.color;za.sub(t,r[1],r[0]),za.sub(e,r[2],r[1]),za.cross(n,t,e),za.normalize(n,n);for(var h=0;h<4;h++)a.set(this._vertexOffset+h,r[h]),l.set(this._vertexOffset+h,o),s.set(this._vertexOffset+h,n);var c=3*this._faceOffset;for(h=0;h<6;h++)this.indices[c+h]=i[h]+this._vertexOffset;this._vertexOffset+=4,this._faceOffset+=2}}()});i.ZS.defaults(Ga.prototype,Ia);const Va=Ga;var ja=wo.firstNotNull,Ha={x:0,y:2,z:1};function Wa(t,e,n){this.rootNode=new ia.Node;var i=new ia.Mesh({geometry:new Pa({useNativeLine:!1}),material:e,castShadow:!1,ignorePicking:!0,$ignorePicking:!0,renderOrder:1}),r=new ia.Mesh({geometry:new Va,material:n,castShadow:!1,culling:!1,ignorePicking:!0,$ignorePicking:!0,renderOrder:0});this.rootNode.add(r),this.rootNode.add(i),this.faceInfo=t,this.plane=new ia.Plane,this.linesMesh=i,this.quadsMesh=r}Wa.prototype.update=function(t,e,n){var i=t.coordinateSystem,r=[i.getAxis(this.faceInfo[0]),i.getAxis(this.faceInfo[1])],o=this.linesMesh.geometry,a=this.quadsMesh.geometry;o.convertToDynamicArray(!0),a.convertToDynamicArray(!0),this._updateSplitLines(o,r,t,n),this._udpateSplitAreas(a,r,t,n),o.convertToTypedArray(),a.convertToTypedArray();var s=i.getAxis(this.faceInfo[2]);!function(t,e,n,i){var r=[0,0,0],o=i<0?n.getExtentMin():n.getExtentMax();r[Ha[n.dim]]=o,t.position.setArray(r),t.rotation.identity(),e.distance=-Math.abs(o),e.normal.set(0,0,0),"x"===n.dim?(t.rotation.rotateY(i*Math.PI/2),e.normal.x=-i):"z"===n.dim?(t.rotation.rotateX(-i*Math.PI/2),e.normal.y=-i):(i>0&&t.rotation.rotateY(Math.PI),e.normal.z=-i)}(this.rootNode,this.plane,s,this.faceInfo[3])},Wa.prototype._updateSplitLines=function(t,e,n,r){var o=r.getDevicePixelRatio();e.forEach((function(r,a){var s=r.model,l=e[1-a].getExtent();if(!r.scale.isBlank()){var h=s.getModel("splitLine",n.getModel("splitLine"));if(h.get("show")){var c=h.getModel("lineStyle"),u=c.get("color"),d=ja(c.get("opacity"),1),p=ja(c.get("width"),1);u=i.ZS.isArray(u)?u:[u];for(var f=r.getTicksCoords({tickModel:h}),g=0,m=0;m<f.length;m++){var v=f[m].coord,y=ia.parseColor(u[g%u.length]);y[3]*=d;var _=[0,0,0],x=[0,0,0];_[a]=x[a]=v,_[1-a]=l[0],x[1-a]=l[1],t.addLine(_,x,y,p*o),g++}}}}))},Wa.prototype._udpateSplitAreas=function(t,e,n,r){e.forEach((function(r,o){var a=r.model,s=e[1-o].getExtent();if(!r.scale.isBlank()){var l=a.getModel("splitArea",n.getModel("splitArea"));if(l.get("show")){var h=l.getModel("areaStyle"),c=h.get("color"),u=ja(h.get("opacity"),1);c=i.ZS.isArray(c)?c:[c];for(var d=r.getTicksCoords({tickModel:l,clamp:!0}),p=0,f=[0,0,0],g=[0,0,0],m=0;m<d.length;m++){var v=d[m].coord,y=[0,0,0],_=[0,0,0];if(y[o]=_[o]=v,y[1-o]=s[0],_[1-o]=s[1],0!==m){var x=ia.parseColor(c[p%c.length]);x[3]*=u,t.addQuad([f,y,_,g],x),f=y,g=_,p++}else f=y,g=_}}}}))};const Ua=Wa;var qa=[0,1,2,0,2,3],Xa=Ci.extend((function(){return{attributes:{position:new Ci.Attribute("position","float",3,"POSITION"),texcoord:new Ci.Attribute("texcoord","float",2,"TEXCOORD_0"),offset:new Ci.Attribute("offset","float",2),color:new Ci.Attribute("color","float",4,"COLOR")}}}),{resetOffset:function(){this._vertexOffset=0,this._faceOffset=0},setSpriteCount:function(t){this._spriteCount=t;var e=4*t,n=2*t;this.vertexCount!==e&&(this.attributes.position.init(e),this.attributes.offset.init(e),this.attributes.color.init(e)),this.triangleCount!==n&&(this.indices=e>65535?new Uint32Array(3*n):new Uint16Array(3*n))},setSpriteAlign:function(t,e,n,i,r){var o,a,s,l;switch(null==n&&(n="left"),null==i&&(i="top"),r=r||0,n){case"left":o=r,s=e[0]+r;break;case"center":case"middle":o=-e[0]/2,s=e[0]/2;break;case"right":o=-e[0]-r,s=-r}switch(i){case"bottom":a=r,l=e[1]+r;break;case"middle":a=-e[1]/2,l=e[1]/2;break;case"top":a=-e[1]-r,l=-r}var h=4*t,c=this.attributes.offset;c.set(h,[o,l]),c.set(h+1,[s,l]),c.set(h+2,[s,a]),c.set(h+3,[o,a])},addSprite:function(t,e,n,i,r,o){var a=this._vertexOffset;this.setSprite(this._vertexOffset/4,t,e,n,i,r,o);for(var s=0;s<qa.length;s++)this.indices[3*this._faceOffset+s]=qa[s]+a;return this._faceOffset+=2,this._vertexOffset+=4,a/4},setSprite:function(t,e,n,i,r,o,a){for(var s=4*t,l=this.attributes,h=0;h<4;h++)l.position.set(s+h,e);var c=l.texcoord;c.set(s,[i[0][0],i[0][1]]),c.set(s+1,[i[1][0],i[0][1]]),c.set(s+2,[i[1][0],i[1][1]]),c.set(s+3,[i[0][0],i[1][1]]),this.setSpriteAlign(t,n,r,o,a)}});i.ZS.defaults(Xa.prototype,Ia);const Ya=Xa;ia.Shader.import("@export ecgl.labels.vertex\n\nattribute vec3 position: POSITION;\nattribute vec2 texcoord: TEXCOORD_0;\nattribute vec2 offset;\n#ifdef VERTEX_COLOR\nattribute vec4 a_Color : COLOR;\nvarying vec4 v_Color;\n#endif\n\nuniform mat4 worldViewProjection : WORLDVIEWPROJECTION;\nuniform vec4 viewport : VIEWPORT;\n\nvarying vec2 v_Texcoord;\n\nvoid main()\n{\n vec4 proj = worldViewProjection * vec4(position, 1.0);\n\n vec2 screen = (proj.xy / abs(proj.w) + 1.0) * 0.5 * viewport.zw;\n\n screen += offset;\n\n proj.xy = (screen / viewport.zw - 0.5) * 2.0 * abs(proj.w);\n gl_Position = proj;\n#ifdef VERTEX_COLOR\n v_Color = a_Color;\n#endif\n v_Texcoord = texcoord;\n}\n@end\n\n\n@export ecgl.labels.fragment\n\nuniform vec3 color : [1.0, 1.0, 1.0];\nuniform float alpha : 1.0;\nuniform sampler2D textureAtlas;\nuniform vec2 uvScale: [1.0, 1.0];\n\n#ifdef VERTEX_COLOR\nvarying vec4 v_Color;\n#endif\nvarying float v_Miter;\n\nvarying vec2 v_Texcoord;\n\nvoid main()\n{\n gl_FragColor = vec4(color, alpha) * texture2D(textureAtlas, v_Texcoord * uvScale);\n#ifdef VERTEX_COLOR\n gl_FragColor *= v_Color;\n#endif\n}\n\n@end");const Za=ia.Mesh.extend((function(){return{geometry:new Ya({dynamic:!0}),material:new ia.Material({shader:ia.createShader("ecgl.labels"),transparent:!0,depthMask:!1}),culling:!1,castShadow:!1,ignorePicking:!0}}));var $a=wo.firstNotNull,Ka={x:0,y:2,z:1};function Ja(t,e){var n=new ia.Mesh({geometry:new Pa({useNativeLine:!1}),material:e,castShadow:!1,ignorePicking:!0,renderOrder:2}),i=new Za;i.material.depthMask=!1;var r=new ia.Node;r.add(n),r.add(i),this.rootNode=r,this.dim=t,this.linesMesh=n,this.labelsMesh=i,this.axisLineCoords=null,this.labelElements=[]}var Qa={x:"y",y:"x",z:"y"};Ja.prototype.update=function(t,e,n){var r=t.coordinateSystem.getAxis(this.dim),o=this.linesMesh.geometry,a=this.labelsMesh.geometry;o.convertToDynamicArray(!0),a.convertToDynamicArray(!0);var s=r.model,l=r.getExtent(),h=n.getDevicePixelRatio(),c=s.getModel("axisLine",t.getModel("axisLine")),u=s.getModel("axisTick",t.getModel("axisTick")),d=s.getModel("axisLabel",t.getModel("axisLabel")),p=c.get("lineStyle.color");if(c.get("show")){var f=c.getModel("lineStyle"),g=[0,0,0];(M=[0,0,0])[A=Ka[r.dim]]=l[0],g[A]=l[1],this.axisLineCoords=[M,g];var m=ia.parseColor(p),v=$a(f.get("width"),1),y=$a(f.get("opacity"),1);m[3]*=y,o.addLine(M,g,m,v*h)}if(u.get("show")){var _=u.getModel("lineStyle"),x=ia.parseColor($a(_.get("color"),p));v=$a(_.get("width"),1);x[3]*=$a(_.get("opacity"),1);for(var b=r.getTicksCoords(),w=u.get("length"),S=0;S<b.length;S++){var T=b[S].coord,M=[0,0,0],A=(g=[0,0,0],Ka[r.dim]),C=Ka[Qa[r.dim]];M[A]=g[A]=T,g[C]=w,o.addLine(M,g,x,v*h)}}this.labelElements=[];h=n.getDevicePixelRatio();if(d.get("show")){b=r.getTicksCoords();var I=s.get("data"),E=d.get("margin"),k=r.getViewLabels();for(S=0;S<k.length;S++){var L=k[S].tickValue,D=k[S].formattedLabel,P=k[S].rawLabel,R=(T=r.dataToCoord(L),[0,0,0]);A=Ka[r.dim],C=Ka[Qa[r.dim]];R[A]=R[A]=T,R[C]=E;var O=d;I&&I[L]&&I[L].textStyle&&(O=new i.Kx(I[L].textStyle,d,s.ecModel));var N=$a(O.get("color"),p),F=new i.fA.Text({style:(0,wa.VB)(O,{text:D,fill:"function"==typeof N?N("category"===r.type?P:"value"===r.type?L+"":L,S):N,verticalAlign:"top",align:"left"})}),B=e.add(F),z=F.getBoundingRect();a.addSprite(R,[z.width*h,z.height*h],B),this.labelElements.push(F)}}if(s.get("name")){var G=s.getModel("nameTextStyle"),V=(R=[0,0,0],A=Ka[r.dim],C=Ka[Qa[r.dim]],$a(G.get("color"),p)),j=G.get("borderColor");v=G.get("borderWidth");R[A]=R[A]=(l[0]+l[1])/2,R[C]=s.get("nameGap");F=new i.fA.Text({style:(0,wa.VB)(G,{text:s.get("name"),fill:V,stroke:j,lineWidth:v})}),B=e.add(F),z=F.getBoundingRect();a.addSprite(R,[z.width*h,z.height*h],B),F.__idx=this.labelElements.length,this.nameLabelElement=F}this.labelsMesh.material.set("textureAtlas",e.getTexture()),this.labelsMesh.material.set("uvScale",e.getCoordsScale()),o.convertToTypedArray(),a.convertToTypedArray()},Ja.prototype.setSpriteAlign=function(t,e,n){for(var i=n.getDevicePixelRatio(),r=this.labelsMesh.geometry,o=0;o<this.labelElements.length;o++){var a=this.labelElements[o].getBoundingRect();r.setSpriteAlign(o,[a.width*i,a.height*i],t,e)}var s=this.nameLabelElement;if(s){a=s.getBoundingRect();r.setSpriteAlign(s.__idx,[a.width*i,a.height*i],t,e),r.dirty()}this.textAlign=t,this.textVerticalAlign=e};const ts=Ja,es="@export ecgl.lines3D.vertex\n\nuniform mat4 worldViewProjection : WORLDVIEWPROJECTION;\n\nattribute vec3 position: POSITION;\nattribute vec4 a_Color : COLOR;\nvarying vec4 v_Color;\n\nvoid main()\n{\n gl_Position = worldViewProjection * vec4(position, 1.0);\n v_Color = a_Color;\n}\n\n@end\n\n@export ecgl.lines3D.fragment\n\nuniform vec4 color : [1.0, 1.0, 1.0, 1.0];\n\nvarying vec4 v_Color;\n\n@import clay.util.srgb\n\nvoid main()\n{\n#ifdef SRGB_DECODE\n gl_FragColor = sRGBToLinear(color * v_Color);\n#else\n gl_FragColor = color * v_Color;\n#endif\n}\n@end\n\n\n\n@export ecgl.lines3D.clipNear\n\nvec4 clipNear(vec4 p1, vec4 p2) {\n float n = (p1.w - near) / (p1.w - p2.w);\n return vec4(mix(p1.xy, p2.xy, n), -near, near);\n}\n\n@end\n\n@export ecgl.lines3D.expandLine\n#ifdef VERTEX_ANIMATION\n vec4 prevProj = worldViewProjection * vec4(mix(prevPositionPrev, positionPrev, percent), 1.0);\n vec4 currProj = worldViewProjection * vec4(mix(prevPosition, position, percent), 1.0);\n vec4 nextProj = worldViewProjection * vec4(mix(prevPositionNext, positionNext, percent), 1.0);\n#else\n vec4 prevProj = worldViewProjection * vec4(positionPrev, 1.0);\n vec4 currProj = worldViewProjection * vec4(position, 1.0);\n vec4 nextProj = worldViewProjection * vec4(positionNext, 1.0);\n#endif\n\n if (currProj.w < 0.0) {\n if (nextProj.w > 0.0) {\n currProj = clipNear(currProj, nextProj);\n }\n else if (prevProj.w > 0.0) {\n currProj = clipNear(currProj, prevProj);\n }\n }\n\n vec2 prevScreen = (prevProj.xy / abs(prevProj.w) + 1.0) * 0.5 * viewport.zw;\n vec2 currScreen = (currProj.xy / abs(currProj.w) + 1.0) * 0.5 * viewport.zw;\n vec2 nextScreen = (nextProj.xy / abs(nextProj.w) + 1.0) * 0.5 * viewport.zw;\n\n vec2 dir;\n float len = offset;\n if (position == positionPrev) {\n dir = normalize(nextScreen - currScreen);\n }\n else if (position == positionNext) {\n dir = normalize(currScreen - prevScreen);\n }\n else {\n vec2 dirA = normalize(currScreen - prevScreen);\n vec2 dirB = normalize(nextScreen - currScreen);\n\n vec2 tanget = normalize(dirA + dirB);\n\n float miter = 1.0 / max(dot(tanget, dirA), 0.5);\n len *= miter;\n dir = tanget;\n }\n\n dir = vec2(-dir.y, dir.x) * len;\n currScreen += dir;\n\n currProj.xy = (currScreen / viewport.zw - 0.5) * 2.0 * abs(currProj.w);\n@end\n\n\n@export ecgl.meshLines3D.vertex\n\nattribute vec3 position: POSITION;\nattribute vec3 positionPrev;\nattribute vec3 positionNext;\nattribute float offset;\nattribute vec4 a_Color : COLOR;\n\n#ifdef VERTEX_ANIMATION\nattribute vec3 prevPosition;\nattribute vec3 prevPositionPrev;\nattribute vec3 prevPositionNext;\nuniform float percent : 1.0;\n#endif\n\nuniform mat4 worldViewProjection : WORLDVIEWPROJECTION;\nuniform vec4 viewport : VIEWPORT;\nuniform float near : NEAR;\n\nvarying vec4 v_Color;\n\n@import ecgl.common.wireframe.vertexHeader\n\n@import ecgl.lines3D.clipNear\n\nvoid main()\n{\n @import ecgl.lines3D.expandLine\n\n gl_Position = currProj;\n\n v_Color = a_Color;\n\n @import ecgl.common.wireframe.vertexMain\n}\n@end\n\n\n@export ecgl.meshLines3D.fragment\n\nuniform vec4 color : [1.0, 1.0, 1.0, 1.0];\n\nvarying vec4 v_Color;\n\n@import ecgl.common.wireframe.fragmentHeader\n\n@import clay.util.srgb\n\nvoid main()\n{\n#ifdef SRGB_DECODE\n gl_FragColor = sRGBToLinear(color * v_Color);\n#else\n gl_FragColor = color * v_Color;\n#endif\n\n @import ecgl.common.wireframe.fragmentMain\n}\n\n@end";var ns=wo.firstNotNull;ia.Shader.import(es);var is={x:0,y:2,z:1};const rs=i.bR.extend({type:"grid3D",__ecgl__:!0,init:function(t,e){var n=new ia.Material({shader:ia.createShader("ecgl.color"),depthMask:!1,transparent:!0}),i=new ia.Material({shader:ia.createShader("ecgl.meshLines3D"),depthMask:!1,transparent:!0});n.define("fragment","DOUBLE_SIDED"),n.define("both","VERTEX_COLOR"),this.groupGL=new ia.Node,this._control=new Ca({zr:e.getZr()}),this._control.init(),this._faces=[["y","z","x",-1,"left"],["y","z","x",1,"right"],["x","y","z",-1,"bottom"],["x","y","z",1,"top"],["x","z","y",-1,"far"],["x","z","y",1,"near"]].map((function(t){var e=new Ua(t,i,n);return this.groupGL.add(e.rootNode),e}),this),this._axes=["x","y","z"].map((function(t){var e=new ts(t,i);return this.groupGL.add(e.rootNode),e}),this);var r=e.getDevicePixelRatio();this._axisLabelSurface=new Na({width:256,height:256,devicePixelRatio:r}),this._axisLabelSurface.onupdate=function(){e.getZr().refresh()},this._axisPointerLineMesh=new ia.Mesh({geometry:new Pa({useNativeLine:!1}),material:i,castShadow:!1,ignorePicking:!0,renderOrder:3}),this.groupGL.add(this._axisPointerLineMesh),this._axisPointerLabelsSurface=new Na({width:128,height:128,devicePixelRatio:r}),this._axisPointerLabelsMesh=new Za({ignorePicking:!0,renderOrder:4,castShadow:!1}),this._axisPointerLabelsMesh.material.set("textureAtlas",this._axisPointerLabelsSurface.getTexture()),this.groupGL.add(this._axisPointerLabelsMesh),this._lightRoot=new ia.Node,this._sceneHelper=new Ba,this._sceneHelper.initLight(this._lightRoot)},render:function(t,e,n){this._model=t,this._api=n;var i=t.coordinateSystem;i.viewGL.add(this._lightRoot),t.get("show")?i.viewGL.add(this.groupGL):i.viewGL.remove(this.groupGL);var r=this._control;r.setViewGL(i.viewGL);var o=t.getModel("viewControl");r.setFromViewControlModel(o,0),this._axisLabelSurface.clear(),r.off("update"),t.get("show")&&(this._faces.forEach((function(i){i.update(t,e,n)}),this),this._axes.forEach((function(e){e.update(t,this._axisLabelSurface,n)}),this)),r.on("update",this._onCameraChange.bind(this,t,n),this),this._sceneHelper.setScene(i.viewGL.scene),this._sceneHelper.updateLight(t),i.viewGL.setPostEffect(t.getModel("postEffect"),n),i.viewGL.setTemporalSuperSampling(t.getModel("temporalSuperSampling")),this._initMouseHandler(t)},afterRender:function(t,e,n,i){var r=i.renderer;this._sceneHelper.updateAmbientCubemap(r,t,n),this._sceneHelper.updateSkybox(r,t,n)},showAxisPointer:function(t,e,n,i){this._doShowAxisPointer(),this._updateAxisPointer(i.value)},hideAxisPointer:function(t,e,n,i){this._doHideAxisPointer()},_initMouseHandler:function(t){var e=t.coordinateSystem.viewGL;t.get("show")&&t.get("axisPointer.show")?e.on("mousemove",this._updateAxisPointerOnMousePosition,this):e.off("mousemove",this._updateAxisPointerOnMousePosition)},_updateAxisPointerOnMousePosition:function(t){if(!t.target){for(var e,n=this._model.coordinateSystem,i=n.viewGL,r=i.castRay(t.offsetX,t.offsetY,new ia.Ray),o=0;o<this._faces.length;o++){var a=this._faces[o];if(!a.rootNode.invisible){a.plane.normal.dot(i.camera.worldTransform.z)<0&&a.plane.normal.negate();var s=r.intersectPlane(a.plane);if(s){var l=n.getAxis(a.faceInfo[0]),h=n.getAxis(a.faceInfo[1]),c=is[a.faceInfo[0]],u=is[a.faceInfo[1]];l.contain(s.array[c])&&h.contain(s.array[u])&&(e=s)}}}if(e){var d=n.pointToData(e.array,[],!0);this._updateAxisPointer(d),this._doShowAxisPointer()}else this._doHideAxisPointer()}},_onCameraChange:function(t,e){t.get("show")&&(this._updateFaceVisibility(),this._updateAxisLinePosition());var n=this._control;e.dispatchAction({type:"grid3DChangeCamera",alpha:n.getAlpha(),beta:n.getBeta(),distance:n.getDistance(),center:n.getCenter(),from:this.uid,grid3DId:t.id})},_updateFaceVisibility:function(){var t=this._control.getCamera(),e=new ia.Vector3;t.update();for(var n=0;n<this._faces.length/2;n++){for(var i=[],r=0;r<2;r++){this._faces[2*n+r].rootNode.getWorldPosition(e),e.transformMat4(t.viewMatrix),i[r]=e.z}var o=i[0]>i[1]?0:1,a=this._faces[2*n+o],s=this._faces[2*n+1-o];a.rootNode.invisible=!0,s.rootNode.invisible=!1}},_updateAxisLinePosition:function(){var t=this._model.coordinateSystem,e=t.getAxis("x"),n=t.getAxis("y"),i=t.getAxis("z"),r=i.getExtentMax(),o=i.getExtentMin(),a=e.getExtentMin(),s=e.getExtentMax(),l=n.getExtentMax(),h=n.getExtentMin(),c=this._axes[0].rootNode,u=this._axes[1].rootNode,d=this._axes[2].rootNode,p=this._faces,f=p[4].rootNode.invisible?h:l,g=p[2].rootNode.invisible?r:o,m=p[0].rootNode.invisible?a:s,v=p[2].rootNode.invisible?r:o,y=p[0].rootNode.invisible?s:a,_=p[4].rootNode.invisible?h:l;c.rotation.identity(),u.rotation.identity(),d.rotation.identity(),p[4].rootNode.invisible&&(this._axes[0].flipped=!0,c.rotation.rotateX(Math.PI)),p[0].rootNode.invisible&&(this._axes[1].flipped=!0,u.rotation.rotateZ(Math.PI)),p[4].rootNode.invisible&&(this._axes[2].flipped=!0,d.rotation.rotateY(Math.PI)),c.position.set(0,g,f),u.position.set(m,v,0),d.position.set(y,0,_),c.update(),u.update(),d.update(),this._updateAxisLabelAlign()},_updateAxisLabelAlign:function(){var t=this._control.getCamera(),e=[new ia.Vector4,new ia.Vector4],n=new ia.Vector4;this.groupGL.getWorldPosition(n),n.w=1,n.transformMat4(t.viewMatrix).transformMat4(t.projectionMatrix),n.x/=n.w,n.y/=n.w,this._axes.forEach((function(i){for(var r=i.axisLineCoords,o=(i.labelsMesh.geometry,0);o<e.length;o++)e[o].setArray(r[o]),e[o].w=1,e[o].transformMat4(i.rootNode.worldTransform).transformMat4(t.viewMatrix).transformMat4(t.projectionMatrix),e[o].x/=e[o].w,e[o].y/=e[o].w;var a,s,l=e[1].x-e[0].x,h=e[1].y-e[0].y,c=(e[1].x+e[0].x)/2,u=(e[1].y+e[0].y)/2;Math.abs(h/l)<.5?(a="center",s=u>n.y?"bottom":"top"):(s="middle",a=c>n.x?"left":"right"),i.setSpriteAlign(a,s,this._api)}),this)},_doShowAxisPointer:function(){this._axisPointerLineMesh.invisible&&(this._axisPointerLineMesh.invisible=!1,this._axisPointerLabelsMesh.invisible=!1,this._api.getZr().refresh())},_doHideAxisPointer:function(){this._axisPointerLineMesh.invisible||(this._axisPointerLineMesh.invisible=!0,this._axisPointerLabelsMesh.invisible=!0,this._api.getZr().refresh())},_updateAxisPointer:function(t){var e=this._model.coordinateSystem,n=e.dataToPoint(t),i=this._axisPointerLineMesh.geometry,r=this._model.getModel("axisPointer"),o=this._api.getDevicePixelRatio();function a(t){return wo.firstNotNull(t.model.get("axisPointer.show"),r.get("show"))}function s(t){var e=t.model.getModel("axisPointer",r).getModel("lineStyle"),n=ia.parseColor(e.get("color")),i=ns(e.get("width"),1),o=ns(e.get("opacity"),1);return n[3]*=o,{color:n,lineWidth:i}}i.convertToDynamicArray(!0);for(var l=0;l<this._faces.length;l++){var h=this._faces[l];if(!h.rootNode.invisible){for(var c=h.faceInfo,u=c[3]<0?e.getAxis(c[2]).getExtentMin():e.getAxis(c[2]).getExtentMax(),d=is[c[2]],p=0;p<2;p++){var f=c[p],g=c[1-p],m=e.getAxis(f),v=e.getAxis(g);if(a(m)){var y=is[f],_=is[g];(w=[0,0,0])[y]=(b=[0,0,0])[y]=n[y],w[d]=b[d]=u,w[_]=v.getExtentMin(),b[_]=v.getExtentMax();var x=s(m);i.addLine(w,b,x.color,x.lineWidth*o)}}if(a(e.getAxis(c[2]))){var b,w=n.slice();(b=n.slice())[d]=u;x=s(e.getAxis(c[2]));i.addLine(w,b,x.color,x.lineWidth*o)}}}i.convertToTypedArray(),this._updateAxisPointerLabelsMesh(t),this._api.getZr().refresh()},_updateAxisPointerLabelsMesh:function(t){var e=this._model,n=this._axisPointerLabelsMesh,r=this._axisPointerLabelsSurface,o=e.coordinateSystem,a=e.getModel("axisPointer");n.geometry.convertToDynamicArray(!0),r.clear();var s={x:"y",y:"x",z:"y"};this._axes.forEach((function(e,l){var h=o.getAxis(e.dim),c=h.model.getModel("axisPointer",a),u=c.getModel("label"),d=c.get("lineStyle.color");if(u.get("show")&&c.get("show")){var p=t[l],f=u.get("formatter"),g=h.scale.getLabel({value:p});if(null!=f)g=f(g,t);else if("interval"===h.scale.type||"log"===h.scale.type){var m=i.ai.getPrecisionSafe(h.scale.getTicks()[0]);g=p.toFixed(m+2)}var v=u.get("color"),y=new i.fA.Text({style:(0,wa.VB)(u,{text:g,fill:v||d,align:"left",verticalAlign:"top"})}),_=r.add(y),x=y.getBoundingRect(),b=this._api.getDevicePixelRatio(),w=e.rootNode.position.toArray();w[is[s[e.dim]]]+=(e.flipped?-1:1)*u.get("margin"),w[is[e.dim]]=h.dataToCoord(t[l]),n.geometry.addSprite(w,[x.width*b,x.height*b],_,e.textAlign,e.textVerticalAlign)}}),this),r.getZr().refreshImmediately(),n.material.set("uvScale",r.getCoordsScale()),n.geometry.convertToTypedArray()},dispose:function(){this.groupGL.removeAll(),this._control.dispose(),this._axisLabelSurface.dispose(),this._axisPointerLabelsSurface.dispose()}});var os=n(5202);function as(t){os.A.call(this,t),this.type="cartesian3D",this.dimensions=["x","y","z"],this.size=[0,0,0]}as.prototype={constructor:as,model:null,containPoint:function(t){return this.getAxis("x").contain(t[0])&&this.getAxis("y").contain(t[2])&&this.getAxis("z").contain(t[1])},containData:function(t){return this.getAxis("x").containData(t[0])&&this.getAxis("y").containData(t[1])&&this.getAxis("z").containData(t[2])},dataToPoint:function(t,e,n){return(e=e||[])[0]=this.getAxis("x").dataToCoord(t[0],n),e[2]=this.getAxis("y").dataToCoord(t[1],n),e[1]=this.getAxis("z").dataToCoord(t[2],n),e},pointToData:function(t,e,n){return(e=e||[])[0]=this.getAxis("x").coordToData(t[0],n),e[1]=this.getAxis("y").coordToData(t[2],n),e[2]=this.getAxis("z").coordToData(t[1],n),e}},i.ZS.inherits(as,os.A);const ss=as;function ls(t,e,n){i._0.call(this,t,e,n)}ls.prototype={constructor:ls,getExtentMin:function(){var t=this._extent;return Math.min(t[0],t[1])},getExtentMax:function(){var t=this._extent;return Math.max(t[0],t[1])},calculateCategoryInterval:function(){return Math.floor(this.scale.count()/8)}},i.ZS.inherits(ls,i._0);const hs=ls;var cs=n(5872),us=function(){this._pool={},this._allocatedTextures=[]};us.prototype={constructor:us,get:function(t){var e=fs(t);this._pool.hasOwnProperty(e)||(this._pool[e]=[]);var n=this._pool[e];if(!n.length){var i=new fi(t);return this._allocatedTextures.push(i),i}return n.pop()},put:function(t){var e=fs(t);this._pool.hasOwnProperty(e)||(this._pool[e]=[]),this._pool[e].push(t)},clear:function(t){for(var e=0;e<this._allocatedTextures.length;e++)this._allocatedTextures[e].dispose(t);this._pool={},this._allocatedTextures=[]}};var ds={width:512,height:512,type:V,format:$,wrapS:lt,wrapT:lt,minFilter:rt,magFilter:tt,useMipmap:!0,anisotropic:1,flipY:!0,unpackAlignment:4,premultiplyAlpha:!1},ps=Object.keys(ds);function fs(t){m.defaultsWithPropList(t,ds,ps),function(t){var e=(n=t.width,i=t.height,!(n&n-1||i&i-1));var n,i;t.format===X&&(t.useMipmap=!1);e&&t.useMipmap||(t.minFilter==et||t.minFilter==it?t.minFilter=Q:t.minFilter!=rt&&t.minFilter!=nt||(t.minFilter=tt));e||(t.wrapS=lt,t.wrapT=lt)}(t);for(var e="",n=0;n<ps.length;n++){e+=t[ps[n]].toString()}return e}const gs=us;var ms=["px","nx","py","ny","pz","nz"];function vs(t,e,n){return"alphaMap"===n?t.material.get("diffuseMap"):"alphaCutoff"===n?t.material.isDefined("fragment","ALPHA_TEST")&&t.material.get("diffuseMap")&&t.material.get("alphaCutoff")||0:"uvRepeat"===n?t.material.get("uvRepeat"):"uvOffset"===n?t.material.get("uvOffset"):e.get(n)}function ys(t,e){var n=t.material,i=e.material;return n.get("diffuseMap")!==i.get("diffuseMap")||(n.get("alphaCutoff")||0)!==(i.get("alphaCutoff")||0)}Ce.import("@export clay.sm.depth.vertex\nuniform mat4 worldViewProjection : WORLDVIEWPROJECTION;\nattribute vec3 position : POSITION;\nattribute vec2 texcoord : TEXCOORD_0;\nuniform vec2 uvRepeat = vec2(1.0, 1.0);\nuniform vec2 uvOffset = vec2(0.0, 0.0);\n@import clay.chunk.skinning_header\n@import clay.chunk.instancing_header\nvarying vec4 v_ViewPosition;\nvarying vec2 v_Texcoord;\nvoid main(){\n vec4 P = vec4(position, 1.0);\n#ifdef SKINNING\n @import clay.chunk.skin_matrix\n P = skinMatrixWS * P;\n#endif\n#ifdef INSTANCING\n @import clay.chunk.instancing_matrix\n P = instanceMat * P;\n#endif\n v_ViewPosition = worldViewProjection * P;\n gl_Position = v_ViewPosition;\n v_Texcoord = texcoord * uvRepeat + uvOffset;\n}\n@end\n@export clay.sm.depth.fragment\nvarying vec4 v_ViewPosition;\nvarying vec2 v_Texcoord;\nuniform float bias : 0.001;\nuniform float slopeScale : 1.0;\nuniform sampler2D alphaMap;\nuniform float alphaCutoff: 0.0;\n@import clay.util.encode_float\nvoid main(){\n float depth = v_ViewPosition.z / v_ViewPosition.w;\n if (alphaCutoff > 0.0) {\n if (texture2D(alphaMap, v_Texcoord).a <= alphaCutoff) {\n discard;\n }\n }\n#ifdef USE_VSM\n depth = depth * 0.5 + 0.5;\n float moment1 = depth;\n float moment2 = depth * depth;\n #ifdef SUPPORT_STANDARD_DERIVATIVES\n float dx = dFdx(depth);\n float dy = dFdy(depth);\n moment2 += 0.25*(dx*dx+dy*dy);\n #endif\n gl_FragColor = vec4(moment1, moment2, 0.0, 1.0);\n#else\n #ifdef SUPPORT_STANDARD_DERIVATIVES\n float dx = dFdx(depth);\n float dy = dFdy(depth);\n depth += sqrt(dx*dx + dy*dy) * slopeScale + bias;\n #else\n depth += bias;\n #endif\n gl_FragColor = encodeFloat(depth * 0.5 + 0.5);\n#endif\n}\n@end\n@export clay.sm.debug_depth\nuniform sampler2D depthMap;\nvarying vec2 v_Texcoord;\n@import clay.util.decode_float\nvoid main() {\n vec4 tex = texture2D(depthMap, v_Texcoord);\n#ifdef USE_VSM\n gl_FragColor = vec4(tex.rgb, 1.0);\n#else\n float depth = decodeFloat(tex);\n gl_FragColor = vec4(depth, depth, depth, 1.0);\n#endif\n}\n@end\n@export clay.sm.distance.vertex\nuniform mat4 worldViewProjection : WORLDVIEWPROJECTION;\nuniform mat4 world : WORLD;\nattribute vec3 position : POSITION;\n@import clay.chunk.skinning_header\nvarying vec3 v_WorldPosition;\nvoid main (){\n vec4 P = vec4(position, 1.0);\n#ifdef SKINNING\n @import clay.chunk.skin_matrix\n P = skinMatrixWS * P;\n#endif\n#ifdef INSTANCING\n @import clay.chunk.instancing_matrix\n P = instanceMat * P;\n#endif\n gl_Position = worldViewProjection * P;\n v_WorldPosition = (world * P).xyz;\n}\n@end\n@export clay.sm.distance.fragment\nuniform vec3 lightPosition;\nuniform float range : 100;\nvarying vec3 v_WorldPosition;\n@import clay.util.encode_float\nvoid main(){\n float dist = distance(lightPosition, v_WorldPosition);\n#ifdef USE_VSM\n gl_FragColor = vec4(dist, dist * dist, 0.0, 0.0);\n#else\n dist = dist / range;\n gl_FragColor = encodeFloat(dist);\n#endif\n}\n@end\n@export clay.plugin.shadow_map_common\n@import clay.util.decode_float\nfloat tapShadowMap(sampler2D map, vec2 uv, float z){\n vec4 tex = texture2D(map, uv);\n return step(z, decodeFloat(tex) * 2.0 - 1.0);\n}\nfloat pcf(sampler2D map, vec2 uv, float z, float textureSize, vec2 scale) {\n float shadowContrib = tapShadowMap(map, uv, z);\n vec2 offset = vec2(1.0 / textureSize) * scale;\n#ifdef PCF_KERNEL_SIZE\n for (int _idx_ = 0; _idx_ < PCF_KERNEL_SIZE; _idx_++) {{\n shadowContrib += tapShadowMap(map, uv + offset * pcfKernel[_idx_], z);\n }}\n return shadowContrib / float(PCF_KERNEL_SIZE + 1);\n#else\n shadowContrib += tapShadowMap(map, uv+vec2(offset.x, 0.0), z);\n shadowContrib += tapShadowMap(map, uv+vec2(offset.x, offset.y), z);\n shadowContrib += tapShadowMap(map, uv+vec2(-offset.x, offset.y), z);\n shadowContrib += tapShadowMap(map, uv+vec2(0.0, offset.y), z);\n shadowContrib += tapShadowMap(map, uv+vec2(-offset.x, 0.0), z);\n shadowContrib += tapShadowMap(map, uv+vec2(-offset.x, -offset.y), z);\n shadowContrib += tapShadowMap(map, uv+vec2(offset.x, -offset.y), z);\n shadowContrib += tapShadowMap(map, uv+vec2(0.0, -offset.y), z);\n return shadowContrib / 9.0;\n#endif\n}\nfloat pcf(sampler2D map, vec2 uv, float z, float textureSize) {\n return pcf(map, uv, z, textureSize, vec2(1.0));\n}\nfloat chebyshevUpperBound(vec2 moments, float z){\n float p = 0.0;\n z = z * 0.5 + 0.5;\n if (z <= moments.x) {\n p = 1.0;\n }\n float variance = moments.y - moments.x * moments.x;\n variance = max(variance, 0.0000001);\n float mD = moments.x - z;\n float pMax = variance / (variance + mD * mD);\n pMax = clamp((pMax-0.4)/(1.0-0.4), 0.0, 1.0);\n return max(p, pMax);\n}\nfloat computeShadowContrib(\n sampler2D map, mat4 lightVPM, vec3 position, float textureSize, vec2 scale, vec2 offset\n) {\n vec4 posInLightSpace = lightVPM * vec4(position, 1.0);\n posInLightSpace.xyz /= posInLightSpace.w;\n float z = posInLightSpace.z;\n if(all(greaterThan(posInLightSpace.xyz, vec3(-0.99, -0.99, -1.0))) &&\n all(lessThan(posInLightSpace.xyz, vec3(0.99, 0.99, 1.0)))){\n vec2 uv = (posInLightSpace.xy+1.0) / 2.0;\n #ifdef USE_VSM\n vec2 moments = texture2D(map, uv * scale + offset).xy;\n return chebyshevUpperBound(moments, z);\n #else\n return pcf(map, uv * scale + offset, z, textureSize, scale);\n #endif\n }\n return 1.0;\n}\nfloat computeShadowContrib(sampler2D map, mat4 lightVPM, vec3 position, float textureSize) {\n return computeShadowContrib(map, lightVPM, position, textureSize, vec2(1.0), vec2(0.0));\n}\nfloat computeShadowContribOmni(samplerCube map, vec3 direction, float range)\n{\n float dist = length(direction);\n vec4 shadowTex = textureCube(map, direction);\n#ifdef USE_VSM\n vec2 moments = shadowTex.xy;\n float variance = moments.y - moments.x * moments.x;\n float mD = moments.x - dist;\n float p = variance / (variance + mD * mD);\n if(moments.x + 0.001 < dist){\n return clamp(p, 0.0, 1.0);\n }else{\n return 1.0;\n }\n#else\n return step(dist, (decodeFloat(shadowTex) + 0.0002) * range);\n#endif\n}\n@end\n@export clay.plugin.compute_shadow_map\n#if defined(SPOT_LIGHT_SHADOWMAP_COUNT) || defined(DIRECTIONAL_LIGHT_SHADOWMAP_COUNT) || defined(POINT_LIGHT_SHADOWMAP_COUNT)\n#ifdef SPOT_LIGHT_SHADOWMAP_COUNT\nuniform sampler2D spotLightShadowMaps[SPOT_LIGHT_SHADOWMAP_COUNT]:unconfigurable;\nuniform mat4 spotLightMatrices[SPOT_LIGHT_SHADOWMAP_COUNT]:unconfigurable;\nuniform float spotLightShadowMapSizes[SPOT_LIGHT_SHADOWMAP_COUNT]:unconfigurable;\n#endif\n#ifdef DIRECTIONAL_LIGHT_SHADOWMAP_COUNT\n#if defined(SHADOW_CASCADE)\nuniform sampler2D directionalLightShadowMaps[1]:unconfigurable;\nuniform mat4 directionalLightMatrices[SHADOW_CASCADE]:unconfigurable;\nuniform float directionalLightShadowMapSizes[1]:unconfigurable;\nuniform float shadowCascadeClipsNear[SHADOW_CASCADE]:unconfigurable;\nuniform float shadowCascadeClipsFar[SHADOW_CASCADE]:unconfigurable;\n#else\nuniform sampler2D directionalLightShadowMaps[DIRECTIONAL_LIGHT_SHADOWMAP_COUNT]:unconfigurable;\nuniform mat4 directionalLightMatrices[DIRECTIONAL_LIGHT_SHADOWMAP_COUNT]:unconfigurable;\nuniform float directionalLightShadowMapSizes[DIRECTIONAL_LIGHT_SHADOWMAP_COUNT]:unconfigurable;\n#endif\n#endif\n#ifdef POINT_LIGHT_SHADOWMAP_COUNT\nuniform samplerCube pointLightShadowMaps[POINT_LIGHT_SHADOWMAP_COUNT]:unconfigurable;\n#endif\nuniform bool shadowEnabled : true;\n#ifdef PCF_KERNEL_SIZE\nuniform vec2 pcfKernel[PCF_KERNEL_SIZE];\n#endif\n@import clay.plugin.shadow_map_common\n#if defined(SPOT_LIGHT_SHADOWMAP_COUNT)\nvoid computeShadowOfSpotLights(vec3 position, inout float shadowContribs[SPOT_LIGHT_COUNT] ) {\n float shadowContrib;\n for(int _idx_ = 0; _idx_ < SPOT_LIGHT_SHADOWMAP_COUNT; _idx_++) {{\n shadowContrib = computeShadowContrib(\n spotLightShadowMaps[_idx_], spotLightMatrices[_idx_], position,\n spotLightShadowMapSizes[_idx_]\n );\n shadowContribs[_idx_] = shadowContrib;\n }}\n for(int _idx_ = SPOT_LIGHT_SHADOWMAP_COUNT; _idx_ < SPOT_LIGHT_COUNT; _idx_++){{\n shadowContribs[_idx_] = 1.0;\n }}\n}\n#endif\n#if defined(DIRECTIONAL_LIGHT_SHADOWMAP_COUNT)\n#ifdef SHADOW_CASCADE\nvoid computeShadowOfDirectionalLights(vec3 position, inout float shadowContribs[DIRECTIONAL_LIGHT_COUNT]){\n float depth = (2.0 * gl_FragCoord.z - gl_DepthRange.near - gl_DepthRange.far)\n / (gl_DepthRange.far - gl_DepthRange.near);\n float shadowContrib;\n shadowContribs[0] = 1.0;\n for (int _idx_ = 0; _idx_ < SHADOW_CASCADE; _idx_++) {{\n if (\n depth >= shadowCascadeClipsNear[_idx_] &&\n depth <= shadowCascadeClipsFar[_idx_]\n ) {\n shadowContrib = computeShadowContrib(\n directionalLightShadowMaps[0], directionalLightMatrices[_idx_], position,\n directionalLightShadowMapSizes[0],\n vec2(1.0 / float(SHADOW_CASCADE), 1.0),\n vec2(float(_idx_) / float(SHADOW_CASCADE), 0.0)\n );\n shadowContribs[0] = shadowContrib;\n }\n }}\n for(int _idx_ = DIRECTIONAL_LIGHT_SHADOWMAP_COUNT; _idx_ < DIRECTIONAL_LIGHT_COUNT; _idx_++) {{\n shadowContribs[_idx_] = 1.0;\n }}\n}\n#else\nvoid computeShadowOfDirectionalLights(vec3 position, inout float shadowContribs[DIRECTIONAL_LIGHT_COUNT]){\n float shadowContrib;\n for(int _idx_ = 0; _idx_ < DIRECTIONAL_LIGHT_SHADOWMAP_COUNT; _idx_++) {{\n shadowContrib = computeShadowContrib(\n directionalLightShadowMaps[_idx_], directionalLightMatrices[_idx_], position,\n directionalLightShadowMapSizes[_idx_]\n );\n shadowContribs[_idx_] = shadowContrib;\n }}\n for(int _idx_ = DIRECTIONAL_LIGHT_SHADOWMAP_COUNT; _idx_ < DIRECTIONAL_LIGHT_COUNT; _idx_++) {{\n shadowContribs[_idx_] = 1.0;\n }}\n}\n#endif\n#endif\n#if defined(POINT_LIGHT_SHADOWMAP_COUNT)\nvoid computeShadowOfPointLights(vec3 position, inout float shadowContribs[POINT_LIGHT_COUNT] ){\n vec3 lightPosition;\n vec3 direction;\n for(int _idx_ = 0; _idx_ < POINT_LIGHT_SHADOWMAP_COUNT; _idx_++) {{\n lightPosition = pointLightPosition[_idx_];\n direction = position - lightPosition;\n shadowContribs[_idx_] = computeShadowContribOmni(pointLightShadowMaps[_idx_], direction, pointLightRange[_idx_]);\n }}\n for(int _idx_ = POINT_LIGHT_SHADOWMAP_COUNT; _idx_ < POINT_LIGHT_COUNT; _idx_++) {{\n shadowContribs[_idx_] = 1.0;\n }}\n}\n#endif\n#endif\n@end");var _s,xs,bs,ws,Ss,Ts,Ms,As=y.extend((function(){return{softShadow:As.PCF,shadowBlur:1,lightFrustumBias:"auto",kernelPCF:new Float32Array([1,0,1,1,-1,1,0,1,-1,0,-1,-1,1,-1,0,-1]),precision:"highp",_lastRenderNotCastShadow:!1,_frameBuffer:new Ir,_textures:{},_shadowMapNumber:{POINT_LIGHT:0,DIRECTIONAL_LIGHT:0,SPOT_LIGHT:0},_depthMaterials:{},_distanceMaterials:{},_receivers:[],_lightsCastShadow:[],_lightCameras:{},_lightMaterials:{},_texturePool:new gs}}),(function(){this._gaussianPassH=new lo({fragment:Ce.source("clay.compositor.gaussian_blur")}),this._gaussianPassV=new lo({fragment:Ce.source("clay.compositor.gaussian_blur")}),this._gaussianPassH.setUniform("blurSize",this.shadowBlur),this._gaussianPassH.setUniform("blurDir",0),this._gaussianPassV.setUniform("blurSize",this.shadowBlur),this._gaussianPassV.setUniform("blurDir",1),this._outputDepthPass=new lo({fragment:Ce.source("clay.sm.debug_depth")})}),{render:function(t,e,n,i){n||(n=e.getMainCamera()),this.trigger("beforerender",this,t,e,n),this._renderShadowPass(t,e,n,i),this.trigger("afterrender",this,t,e,n)},renderDebug:function(t,e){t.saveClear();var n=t.viewport,i=0,r=e||n.width/4,o=r;for(var a in this.softShadow===As.VSM?this._outputDepthPass.material.define("fragment","USE_VSM"):this._outputDepthPass.material.undefine("fragment","USE_VSM"),this._textures){var s=this._textures[a];t.setViewport(i,0,r*s.width/s.height,o),this._outputDepthPass.setUniform("depthMap",s),this._outputDepthPass.render(t),i+=r*s.width/s.height}t.setViewport(n),t.restoreClear()},_updateReceivers:function(t,e){if(e.receiveShadow?(this._receivers.push(e),e.material.set("shadowEnabled",1),e.material.set("pcfKernel",this.kernelPCF)):e.material.set("shadowEnabled",0),this.softShadow===As.VSM)e.material.define("fragment","USE_VSM"),e.material.undefine("fragment","PCF_KERNEL_SIZE");else{e.material.undefine("fragment","USE_VSM");var n=this.kernelPCF;n&&n.length?e.material.define("fragment","PCF_KERNEL_SIZE",n.length/2):e.material.undefine("fragment","PCF_KERNEL_SIZE")}},_update:function(t,e){var n=this;e.traverse((function(e){e.isRenderable()&&n._updateReceivers(t,e)}));for(var i=0;i<e.lights.length;i++){var r=e.lights[i];r.castShadow&&!r.invisible&&this._lightsCastShadow.push(r)}},_renderShadowPass:function(t,e,n,i){for(var r in this._shadowMapNumber)this._shadowMapNumber[r]=0;this._lightsCastShadow.length=0,this._receivers.length=0;var o=t.gl;if(i||e.update(),n&&n.update(),e.updateLights(),this._update(t,e),this._lightsCastShadow.length||!this._lastRenderNotCastShadow){this._lastRenderNotCastShadow=0===this._lightsCastShadow,o.enable(o.DEPTH_TEST),o.depthMask(!0),o.disable(o.BLEND),o.clearColor(1,1,1,1);for(var a,s=[],l=[],h=[],c=[],u=[],d=[],p=0;p<this._lightsCastShadow.length;p++){var f=this._lightsCastShadow[p];if("DIRECTIONAL_LIGHT"===f.type){if(a){console.warn("Only one direectional light supported with shadow cascade");continue}if(f.shadowCascade>4){console.warn("Support at most 4 cascade");continue}f.shadowCascade>1&&(a=f),this.renderDirectionalLightShadow(t,e,n,f,u,c,h)}else"SPOT_LIGHT"===f.type?this.renderSpotLightShadow(t,e,f,l,s):"POINT_LIGHT"===f.type&&this.renderPointLightShadow(t,e,f,d);this._shadowMapNumber[f.type]++}for(var g in this._shadowMapNumber){var m=this._shadowMapNumber[g],v=g+"_SHADOWMAP_COUNT";for(p=0;p<this._receivers.length;p++){(y=this._receivers[p].material).fragmentDefines[v]!==m&&(m>0?y.define("fragment",v,m):y.isDefined("fragment",v)&&y.undefine("fragment",v))}}for(p=0;p<this._receivers.length;p++){var y=this._receivers[p].material;a?y.define("fragment","SHADOW_CASCADE",a.shadowCascade):y.undefine("fragment","SHADOW_CASCADE")}var _=e.shadowUniforms;if(h.length>0){var x=h.map(T);if(_.directionalLightShadowMaps={value:h,type:"tv"},_.directionalLightMatrices={value:c,type:"m4v"},_.directionalLightShadowMapSizes={value:x,type:"1fv"},a){var b=u.slice(),w=u.slice();b.pop(),w.shift(),b.reverse(),w.reverse(),c.reverse(),_.shadowCascadeClipsNear={value:b,type:"1fv"},_.shadowCascadeClipsFar={value:w,type:"1fv"}}}if(s.length>0){var S=s.map(T);(_=e.shadowUniforms).spotLightShadowMaps={value:s,type:"tv"},_.spotLightMatrices={value:l,type:"m4v"},_.spotLightShadowMapSizes={value:S,type:"1fv"}}d.length>0&&(_.pointLightShadowMaps={value:d,type:"tv"})}function T(t){return t.height}},renderDirectionalLightShadow:(_s=new Zi,xs=new An,bs=new Gn,ws=new An,Ss=new An,Ts=new An,Ms=new An,function(t,e,n,i,r,o,a){var s=this._getDepthMaterial(i),l={getMaterial:function(t){return t.shadowDepthMaterial||s},isMaterialChanged:ys,getUniform:vs,ifRender:function(t){return t.castShadow},sortCompare:Ue.opaqueSortCompare};if(!e.viewBoundingBoxLastFrame.isFinite()){var h=e.getBoundingBox();e.viewBoundingBoxLastFrame.copy(h).applyTransform(n.viewMatrix)}var c=Math.min(-e.viewBoundingBoxLastFrame.min.z,n.far),u=Math.max(-e.viewBoundingBoxLastFrame.max.z,n.near),d=this._getDirectionalLightCamera(i,e,n),p=Ts.array;Ms.copy(d.projectionMatrix),ke.invert(Ss.array,d.worldTransform.array),ke.multiply(Ss.array,Ss.array,n.worldTransform.array),ke.multiply(p,Ms.array,Ss.array);for(var f=[],g=n instanceof mr,m=(n.near+n.far)/(n.near-n.far),v=2*n.near*n.far/(n.near-n.far),y=0;y<=i.shadowCascade;y++){var _=u*Math.pow(c/u,y/i.shadowCascade),x=u+(c-u)*y/i.shadowCascade,b=_*i.cascadeSplitLogFactor+x*(1-i.cascadeSplitLogFactor);f.push(b),r.push(-(-b*m+v)/-b)}var w=this._getTexture(i,i.shadowCascade);a.push(w);var S=t.viewport,T=t.gl;for(this._frameBuffer.attach(w),this._frameBuffer.bind(t),T.clear(T.COLOR_BUFFER_BIT|T.DEPTH_BUFFER_BIT),y=0;y<i.shadowCascade;y++){var M=f[y],A=f[y+1];g?ke.perspective(xs.array,n.fov/180*Math.PI,n.aspect,M,A):ke.ortho(xs.array,n.left,n.right,n.bottom,n.top,M,A),_s.setFromProjection(xs),_s.getTransformedBoundingBox(bs,Ss),bs.applyProjection(Ms);var C=bs.min.array,I=bs.max.array;C[0]=Math.max(C[0],-1),C[1]=Math.max(C[1],-1),I[0]=Math.min(I[0],1),I[1]=Math.min(I[1],1),ws.ortho(C[0],I[0],C[1],I[1],1,-1),d.projectionMatrix.multiplyLeft(ws);var E=i.shadowResolution||512;t.setViewport((i.shadowCascade-y-1)*E,0,E,E,1);var k=e.updateRenderList(d);t.renderPass(k.opaque,d,l),this.softShadow===As.VSM&&this._gaussianFilter(t,w,w.width);var L=new An;L.copy(d.viewMatrix).multiplyLeft(d.projectionMatrix),o.push(L.array),d.projectionMatrix.copy(Ms)}this._frameBuffer.unbind(t),t.setViewport(S)}),renderSpotLightShadow:function(t,e,n,i,r){var o=this._getTexture(n),a=this._getSpotLightCamera(n),s=t.gl;this._frameBuffer.attach(o),this._frameBuffer.bind(t),s.clear(s.COLOR_BUFFER_BIT|s.DEPTH_BUFFER_BIT);var l=this._getDepthMaterial(n),h={getMaterial:function(t){return t.shadowDepthMaterial||l},isMaterialChanged:ys,getUniform:vs,ifRender:function(t){return t.castShadow},sortCompare:Ue.opaqueSortCompare},c=e.updateRenderList(a);t.renderPass(c.opaque,a,h),this._frameBuffer.unbind(t),this.softShadow===As.VSM&&this._gaussianFilter(t,o,o.width);var u=new An;u.copy(a.worldTransform).invert().multiplyLeft(a.projectionMatrix),r.push(o),i.push(u.array)},renderPointLightShadow:function(t,e,n,i){var r=this._getTexture(n),o=t.gl;i.push(r);var a=this._getDepthMaterial(n),s={getMaterial:function(t){return t.shadowDepthMaterial||a},getUniform:vs,sortCompare:Ue.opaqueSortCompare},l={px:[],py:[],pz:[],nx:[],ny:[],nz:[]},h=new Gn,c=n.getWorldPosition().array,u=new Gn,d=n.range;u.min.setArray(c),u.max.setArray(c);var p=new Qe(d,d,d);u.max.add(p),u.min.sub(p);var f={px:!1,py:!1,pz:!1,nx:!1,ny:!1,nz:!1};e.traverse((function(t){if(t.isRenderable()&&t.castShadow){var e=t.geometry;if(!e.boundingBox){for(var n=0;n<ms.length;n++)l[ms[n]].push(t);return}if(h.transformFrom(e.boundingBox,t.worldTransform),!h.intersectBoundingBox(u))return;h.updateVertices();for(n=0;n<ms.length;n++)f[ms[n]]=!1;for(n=0;n<8;n++){var i=h.vertices[n],r=i[0]-c[0],o=i[1]-c[1],a=i[2]-c[2],s=Math.abs(r),d=Math.abs(o),p=Math.abs(a);s>d?s>p?f[r>0?"px":"nx"]=!0:f[a>0?"pz":"nz"]=!0:d>p?f[o>0?"py":"ny"]=!0:f[a>0?"pz":"nz"]=!0}for(n=0;n<ms.length;n++)f[ms[n]]&&l[ms[n]].push(t)}}));for(var g=0;g<6;g++){var m=ms[g],v=this._getPointLightCamera(n,m);this._frameBuffer.attach(r,o.COLOR_ATTACHMENT0,o.TEXTURE_CUBE_MAP_POSITIVE_X+g),this._frameBuffer.bind(t),o.clear(o.COLOR_BUFFER_BIT|o.DEPTH_BUFFER_BIT),t.renderPass(l[m],v,s)}this._frameBuffer.unbind(t)},_getDepthMaterial:function(t){var e=this._lightMaterials[t.__uid__],n="POINT_LIGHT"===t.type;if(!e){var i=n?"clay.sm.distance.":"clay.sm.depth.";e=new Ht({precision:this.precision,shader:new Ce(Ce.source(i+"vertex"),Ce.source(i+"fragment"))}),this._lightMaterials[t.__uid__]=e}return null!=t.shadowSlopeScale&&e.setUniform("slopeScale",t.shadowSlopeScale),null!=t.shadowBias&&e.setUniform("bias",t.shadowBias),this.softShadow===As.VSM?e.define("fragment","USE_VSM"):e.undefine("fragment","USE_VSM"),n&&(e.set("lightPosition",t.getWorldPosition().array),e.set("range",t.range)),e},_gaussianFilter:function(t,e,n){var i={width:n,height:n,type:ai.FLOAT},r=this._texturePool.get(i);this._frameBuffer.attach(r),this._frameBuffer.bind(t),this._gaussianPassH.setUniform("texture",e),this._gaussianPassH.setUniform("textureWidth",n),this._gaussianPassH.render(t),this._frameBuffer.attach(e),this._gaussianPassV.setUniform("texture",r),this._gaussianPassV.setUniform("textureHeight",n),this._gaussianPassV.render(t),this._frameBuffer.unbind(t),this._texturePool.put(r)},_getTexture:function(t,e){var n=t.__uid__,i=this._textures[n],r=t.shadowResolution||512;return e=e||1,i||((i="POINT_LIGHT"===t.type?new fr:new fi).width=r*e,i.height=r,this.softShadow===As.VSM?(i.type=ai.FLOAT,i.anisotropic=4):(i.minFilter=Q,i.magFilter=Q,i.useMipmap=!1),this._textures[n]=i),i},_getPointLightCamera:function(t,e){this._lightCameras.point||(this._lightCameras.point={px:new mr,nx:new mr,py:new mr,ny:new mr,pz:new mr,nz:new mr});var n=this._lightCameras.point[e];switch(n.far=t.range,n.fov=90,n.position.set(0,0,0),e){case"px":n.lookAt(Qe.POSITIVE_X,Qe.NEGATIVE_Y);break;case"nx":n.lookAt(Qe.NEGATIVE_X,Qe.NEGATIVE_Y);break;case"py":n.lookAt(Qe.POSITIVE_Y,Qe.POSITIVE_Z);break;case"ny":n.lookAt(Qe.NEGATIVE_Y,Qe.NEGATIVE_Z);break;case"pz":n.lookAt(Qe.POSITIVE_Z,Qe.NEGATIVE_Y);break;case"nz":n.lookAt(Qe.NEGATIVE_Z,Qe.NEGATIVE_Y)}return t.getWorldPosition(n.position),n.update(),n},_getDirectionalLightCamera:function(){var t=new An,e=new Gn,n=new Gn;return function(i,r,o){this._lightCameras.directional||(this._lightCameras.directional=new ro);var a=this._lightCameras.directional;e.copy(r.viewBoundingBoxLastFrame),e.intersection(o.frustum.boundingBox),a.position.copy(e.min).add(e.max).scale(.5).transformMat4(o.worldTransform),a.rotation.copy(i.rotation),a.scale.copy(i.scale),a.updateWorldTransform(),An.invert(t,a.worldTransform),An.multiply(t,t,o.worldTransform),n.copy(e).applyTransform(t);var s=n.min.array,l=n.max.array;return a.position.set((s[0]+l[0])/2,(s[1]+l[1])/2,l[2]).transformMat4(a.worldTransform),a.near=0,a.far=-s[2]+l[2],isNaN(this.lightFrustumBias)?a.far*=4:a.far+=this.lightFrustumBias,a.left=s[0],a.right=l[0],a.top=l[1],a.bottom=s[1],a.update(!0),a}}(),_getSpotLightCamera:function(t){this._lightCameras.spot||(this._lightCameras.spot=new mr);var e=this._lightCameras.spot;return e.fov=2*t.penumbraAngle,e.far=t.range,e.worldTransform.copy(t.worldTransform),e.updateProjectionMatrix(),ke.invert(e.viewMatrix.array,e.worldTransform.array),e},dispose:function(t){var e=t.gl||t;for(var n in this._frameBuffer&&this._frameBuffer.dispose(e),this._textures)this._textures[n].dispose(e);this._texturePool.clear(t.gl),this._depthMaterials={},this._distanceMaterials={},this._textures={},this._lightCameras={},this._shadowMapNumber={POINT_LIGHT:0,DIRECTIONAL_LIGHT:0,SPOT_LIGHT:0},this._meshMaterials={};for(var i=0;i<this._receivers.length;i++){var r=this._receivers[i];if(r.material){var o=r.material;o.undefine("fragment","POINT_LIGHT_SHADOW_COUNT"),o.undefine("fragment","DIRECTIONAL_LIGHT_SHADOW_COUNT"),o.undefine("fragment","AMBIENT_LIGHT_SHADOW_COUNT"),o.set("shadowEnabled",0)}}this._receivers=[],this._lightsCastShadow=[]}});As.VSM=1,As.PCF=2;const Cs=As;const Is=y.extend((function(){return{name:"",inputLinks:{},outputLinks:{},_prevOutputTextures:{},_outputTextures:{},_outputReferences:{},_rendering:!1,_rendered:!1,_compositor:null}}),{updateParameter:function(t,e){var n,i,r=this.outputs[t],o=r.parameters,a=r._parametersCopy;if(a||(a=r._parametersCopy={}),o)for(var s in o)"width"!==s&&"height"!==s&&(a[s]=o[s]);return n=o.width instanceof Function?o.width.call(this,e):o.width,i=o.height instanceof Function?o.height.call(this,e):o.height,a.width===n&&a.height===i||this._outputTextures[t]&&this._outputTextures[t].dispose(e.gl),a.width=n,a.height=i,a},setParameter:function(t,e){},getParameter:function(t){},setParameters:function(t){for(var e in t)this.setParameter(e,t[e])},render:function(){},getOutput:function(t,e){if(null==e)return e=t,this._outputTextures[e];var n=this.outputs[e];return n?this._rendered?n.outputLastFrame?this._prevOutputTextures[e]:this._outputTextures[e]:this._rendering?(this._prevOutputTextures[e]||(this._prevOutputTextures[e]=this._compositor.allocateTexture(n.parameters||{})),this._prevOutputTextures[e]):(this.render(t),this._outputTextures[e]):void 0},removeReference:function(t){(this._outputReferences[t]--,0===this._outputReferences[t])&&(this.outputs[t].keepLastFrame?(this._prevOutputTextures[t]&&this._compositor.releaseTexture(this._prevOutputTextures[t]),this._prevOutputTextures[t]=this._outputTextures[t]):this._compositor.releaseTexture(this._outputTextures[t]))},link:function(t,e,n){this.inputLinks[t]={node:e,pin:n},e.outputLinks[n]||(e.outputLinks[n]=[]),e.outputLinks[n].push({node:this,pin:t}),this.pass.material.enableTexture(t)},clear:function(){this.inputLinks={},this.outputLinks={}},updateReference:function(t){if(!this._rendering){for(var e in this._rendering=!0,this.inputLinks){var n=this.inputLinks[e];n.node.updateReference(n.pin)}this._rendering=!1}t&&this._outputReferences[t]++},beforeFrame:function(){for(var t in this._rendered=!1,this.outputLinks)this._outputReferences[t]=0},afterFrame:function(){for(var t in this.outputLinks){if(this._outputReferences[t]>0)this.outputs[t].keepLastFrame?(this._prevOutputTextures[t]&&this._compositor.releaseTexture(this._prevOutputTextures[t]),this._prevOutputTextures[t]=this._outputTextures[t]):this._compositor.releaseTexture(this._outputTextures[t])}}});var Es=y.extend((function(){return{nodes:[]}}),{dirty:function(){this._dirty=!0},addNode:function(t){this.nodes.indexOf(t)>=0||(this.nodes.push(t),this._dirty=!0)},removeNode:function(t){"string"==typeof t&&(t=this.getNodeByName(t));var e=this.nodes.indexOf(t);e>=0&&(this.nodes.splice(e,1),this._dirty=!0)},getNodeByName:function(t){for(var e=0;e<this.nodes.length;e++)if(this.nodes[e].name===t)return this.nodes[e]},update:function(){for(var t=0;t<this.nodes.length;t++)this.nodes[t].clear();for(t=0;t<this.nodes.length;t++){var e=this.nodes[t];if(e.inputs)for(var n in e.inputs)if(e.inputs[n])if(!e.pass||e.pass.material.isUniformEnabled(n)){var i=e.inputs[n],r=this.findPin(i);r?e.link(n,r.node,r.pin):"string"==typeof i?console.warn("Node "+i+" not exist"):console.warn("Pin of "+i.node+"."+i.pin+" not exist")}else console.warn("Pin "+e.name+"."+n+" not used.")}},findPin:function(t){var e;if(("string"==typeof t||t instanceof Is)&&(t={node:t}),"string"==typeof t.node)for(var n=0;n<this.nodes.length;n++){var i=this.nodes[n];i.name===t.node&&(e=i)}else e=t.node;if(e){var r=t.pin;if(r||e.outputs&&(r=Object.keys(e.outputs)[0]),e.outputs[r])return{node:e,pin:r}}}});const ks=Es;const Ls=ks.extend((function(){return{_outputs:[],_texturePool:new gs,_frameBuffer:new Ir({depthBuffer:!1})}}),{addNode:function(t){ks.prototype.addNode.call(this,t),t._compositor=this},render:function(t,e){if(this._dirty){this.update(),this._dirty=!1,this._outputs.length=0;for(var n=0;n<this.nodes.length;n++)this.nodes[n].outputs||this._outputs.push(this.nodes[n])}for(n=0;n<this.nodes.length;n++)this.nodes[n].beforeFrame();for(n=0;n<this._outputs.length;n++)this._outputs[n].updateReference();for(n=0;n<this._outputs.length;n++)this._outputs[n].render(t,e);for(n=0;n<this.nodes.length;n++)this.nodes[n].afterFrame()},allocateTexture:function(t){return this._texturePool.get(t)},releaseTexture:function(t){this._texturePool.put(t)},getFrameBuffer:function(){return this._frameBuffer},dispose:function(t){this._texturePool.clear(t)}});const Ds=Is.extend({name:"scene",scene:null,camera:null,autoUpdateScene:!0,preZ:!1},(function(){this.frameBuffer=new Ir}),{render:function(t){this._rendering=!0;var e,n=t.gl;if(this.trigger("beforerender"),this.outputs){var i=this.frameBuffer;for(var r in this.outputs){var o=this.updateParameter(r,t),a=this.outputs[r],s=this._compositor.allocateTexture(o);this._outputTextures[r]=s,"string"==typeof(c=a.attachment||n.COLOR_ATTACHMENT0)&&(c=n[c]),i.attach(s,c)}i.bind(t);var l=t.getGLExtension("EXT_draw_buffers");if(l){var h=[];for(var c in this.outputs)(c=parseInt(c))>=n.COLOR_ATTACHMENT0&&c<=n.COLOR_ATTACHMENT0+8&&h.push(c);l.drawBuffersEXT(h)}t.saveClear(),t.clearBit=w|T,e=t.render(this.scene,this.camera,!this.autoUpdateScene,this.preZ),t.restoreClear(),i.unbind(t)}else e=t.render(this.scene,this.camera,!this.autoUpdateScene,this.preZ);this.trigger("afterrender",e),this._rendering=!1,this._rendered=!0}});const Ps=Is.extend((function(){return{texture:null,outputs:{color:{}}}}),(function(){}),{getOutput:function(t,e){return this.texture},beforeFrame:function(){},afterFrame:function(){}});const Rs=Is.extend((function(){return{name:"",inputs:{},outputs:null,shader:"",inputLinks:{},outputLinks:{},pass:null,_prevOutputTextures:{},_outputTextures:{},_outputReferences:{},_rendering:!1,_rendered:!1,_compositor:null}}),(function(){var t=new lo({fragment:this.shader});this.pass=t}),{render:function(t,e){this.trigger("beforerender",t),this._rendering=!0;var n=t.gl;for(var i in this.inputLinks){var r=(u=this.inputLinks[i]).node.getOutput(t,u.pin);this.pass.setUniform(i,r)}if(this.outputs){this.pass.outputs={};var o={};for(var a in this.outputs){var s=this.updateParameter(a,t);isNaN(s.width)&&this.updateParameter(a,t);var l=this.outputs[a],h=this._compositor.allocateTexture(s);this._outputTextures[a]=h,"string"==typeof(c=l.attachment||n.COLOR_ATTACHMENT0)&&(c=n[c]),o[c]=h}for(var c in this._compositor.getFrameBuffer().bind(t),o)this._compositor.getFrameBuffer().attach(o[c],c);this.pass.render(t),this._compositor.getFrameBuffer().updateMipmap(t)}else this.pass.outputs=null,this._compositor.getFrameBuffer().unbind(t),this.pass.render(t,e);for(var i in this.inputLinks){var u;(u=this.inputLinks[i]).node.removeReference(u.pin)}this._rendering=!1,this._rendered=!0,this.trigger("afterrender",t)},updateParameter:function(t,e){var n,i,r=this.outputs[t],o=r.parameters,a=r._parametersCopy;if(a||(a=r._parametersCopy={}),o)for(var s in o)"width"!==s&&"height"!==s&&(a[s]=o[s]);return n="function"==typeof o.width?o.width.call(this,e):o.width,i="function"==typeof o.height?o.height.call(this,e):o.height,n=Math.ceil(n),i=Math.ceil(i),a.width===n&&a.height===i||this._outputTextures[t]&&this._outputTextures[t].dispose(e),a.width=n,a.height=i,a},setParameter:function(t,e){this.pass.setUniform(t,e)},getParameter:function(t){return this.pass.getUniform(t)},setParameters:function(t){for(var e in t)this.setParameter(e,t[e])},define:function(t,e){this.pass.material.define("fragment",t,e)},undefine:function(t){this.pass.material.undefine("fragment",t)},removeReference:function(t){(this._outputReferences[t]--,0===this._outputReferences[t])&&(this.outputs[t].keepLastFrame?(this._prevOutputTextures[t]&&this._compositor.releaseTexture(this._prevOutputTextures[t]),this._prevOutputTextures[t]=this._outputTextures[t]):this._compositor.releaseTexture(this._outputTextures[t]))},clear:function(){Is.prototype.clear.call(this),this.pass.material.disableTexturesAll()}}),Os="@export clay.compositor.kernel.gaussian_9\nfloat gaussianKernel[9];\ngaussianKernel[0] = 0.07;\ngaussianKernel[1] = 0.09;\ngaussianKernel[2] = 0.12;\ngaussianKernel[3] = 0.14;\ngaussianKernel[4] = 0.16;\ngaussianKernel[5] = 0.14;\ngaussianKernel[6] = 0.12;\ngaussianKernel[7] = 0.09;\ngaussianKernel[8] = 0.07;\n@end\n@export clay.compositor.kernel.gaussian_13\nfloat gaussianKernel[13];\ngaussianKernel[0] = 0.02;\ngaussianKernel[1] = 0.03;\ngaussianKernel[2] = 0.06;\ngaussianKernel[3] = 0.08;\ngaussianKernel[4] = 0.11;\ngaussianKernel[5] = 0.13;\ngaussianKernel[6] = 0.14;\ngaussianKernel[7] = 0.13;\ngaussianKernel[8] = 0.11;\ngaussianKernel[9] = 0.08;\ngaussianKernel[10] = 0.06;\ngaussianKernel[11] = 0.03;\ngaussianKernel[12] = 0.02;\n@end\n@export clay.compositor.gaussian_blur\n#define SHADER_NAME gaussian_blur\nuniform sampler2D texture;varying vec2 v_Texcoord;\nuniform float blurSize : 2.0;\nuniform vec2 textureSize : [512.0, 512.0];\nuniform float blurDir : 0.0;\n@import clay.util.rgbm\n@import clay.util.clamp_sample\nvoid main (void)\n{\n @import clay.compositor.kernel.gaussian_9\n vec2 off = blurSize / textureSize;\n off *= vec2(1.0 - blurDir, blurDir);\n vec4 sum = vec4(0.0);\n float weightAll = 0.0;\n for (int i = 0; i < 9; i++) {\n float w = gaussianKernel[i];\n vec4 texel = decodeHDR(clampSample(texture, v_Texcoord + float(i - 4) * off));\n sum += texel * w;\n weightAll += w;\n }\n gl_FragColor = encodeHDR(sum / max(weightAll, 0.01));\n}\n@end\n",Ns="\n@export clay.compositor.lut\nvarying vec2 v_Texcoord;\nuniform sampler2D texture;\nuniform sampler2D lookup;\nvoid main()\n{\n vec4 tex = texture2D(texture, v_Texcoord);\n float blueColor = tex.b * 63.0;\n vec2 quad1;\n quad1.y = floor(floor(blueColor) / 8.0);\n quad1.x = floor(blueColor) - (quad1.y * 8.0);\n vec2 quad2;\n quad2.y = floor(ceil(blueColor) / 8.0);\n quad2.x = ceil(blueColor) - (quad2.y * 8.0);\n vec2 texPos1;\n texPos1.x = (quad1.x * 0.125) + 0.5/512.0 + ((0.125 - 1.0/512.0) * tex.r);\n texPos1.y = (quad1.y * 0.125) + 0.5/512.0 + ((0.125 - 1.0/512.0) * tex.g);\n vec2 texPos2;\n texPos2.x = (quad2.x * 0.125) + 0.5/512.0 + ((0.125 - 1.0/512.0) * tex.r);\n texPos2.y = (quad2.y * 0.125) + 0.5/512.0 + ((0.125 - 1.0/512.0) * tex.g);\n vec4 newColor1 = texture2D(lookup, texPos1);\n vec4 newColor2 = texture2D(lookup, texPos2);\n vec4 newColor = mix(newColor1, newColor2, fract(blueColor));\n gl_FragColor = vec4(newColor.rgb, tex.w);\n}\n@end",Fs="@export clay.compositor.output\n#define OUTPUT_ALPHA\nvarying vec2 v_Texcoord;\nuniform sampler2D texture;\n@import clay.util.rgbm\nvoid main()\n{\n vec4 tex = decodeHDR(texture2D(texture, v_Texcoord));\n gl_FragColor.rgb = tex.rgb;\n#ifdef OUTPUT_ALPHA\n gl_FragColor.a = tex.a;\n#else\n gl_FragColor.a = 1.0;\n#endif\n gl_FragColor = encodeHDR(gl_FragColor);\n#ifdef PREMULTIPLY_ALPHA\n gl_FragColor.rgb *= gl_FragColor.a;\n#endif\n}\n@end",Bs="@export clay.compositor.bright\nuniform sampler2D texture;\nuniform float threshold : 1;\nuniform float scale : 1.0;\nuniform vec2 textureSize: [512, 512];\nvarying vec2 v_Texcoord;\nconst vec3 lumWeight = vec3(0.2125, 0.7154, 0.0721);\n@import clay.util.rgbm\nvec4 median(vec4 a, vec4 b, vec4 c)\n{\n return a + b + c - min(min(a, b), c) - max(max(a, b), c);\n}\nvoid main()\n{\n vec4 texel = decodeHDR(texture2D(texture, v_Texcoord));\n#ifdef ANTI_FLICKER\n vec3 d = 1.0 / textureSize.xyx * vec3(1.0, 1.0, 0.0);\n vec4 s1 = decodeHDR(texture2D(texture, v_Texcoord - d.xz));\n vec4 s2 = decodeHDR(texture2D(texture, v_Texcoord + d.xz));\n vec4 s3 = decodeHDR(texture2D(texture, v_Texcoord - d.zy));\n vec4 s4 = decodeHDR(texture2D(texture, v_Texcoord + d.zy));\n texel = median(median(texel, s1, s2), s3, s4);\n#endif\n float lum = dot(texel.rgb , lumWeight);\n vec4 color;\n if (lum > threshold && texel.a > 0.0)\n {\n color = vec4(texel.rgb * scale, texel.a * scale);\n }\n else\n {\n color = vec4(0.0);\n }\n gl_FragColor = encodeHDR(color);\n}\n@end\n",zs="@export clay.compositor.downsample\nuniform sampler2D texture;\nuniform vec2 textureSize : [512, 512];\nvarying vec2 v_Texcoord;\n@import clay.util.rgbm\nfloat brightness(vec3 c)\n{\n return max(max(c.r, c.g), c.b);\n}\n@import clay.util.clamp_sample\nvoid main()\n{\n vec4 d = vec4(-1.0, -1.0, 1.0, 1.0) / textureSize.xyxy;\n#ifdef ANTI_FLICKER\n vec3 s1 = decodeHDR(clampSample(texture, v_Texcoord + d.xy)).rgb;\n vec3 s2 = decodeHDR(clampSample(texture, v_Texcoord + d.zy)).rgb;\n vec3 s3 = decodeHDR(clampSample(texture, v_Texcoord + d.xw)).rgb;\n vec3 s4 = decodeHDR(clampSample(texture, v_Texcoord + d.zw)).rgb;\n float s1w = 1.0 / (brightness(s1) + 1.0);\n float s2w = 1.0 / (brightness(s2) + 1.0);\n float s3w = 1.0 / (brightness(s3) + 1.0);\n float s4w = 1.0 / (brightness(s4) + 1.0);\n float oneDivideSum = 1.0 / (s1w + s2w + s3w + s4w);\n vec4 color = vec4(\n (s1 * s1w + s2 * s2w + s3 * s3w + s4 * s4w) * oneDivideSum,\n 1.0\n );\n#else\n vec4 color = decodeHDR(clampSample(texture, v_Texcoord + d.xy));\n color += decodeHDR(clampSample(texture, v_Texcoord + d.zy));\n color += decodeHDR(clampSample(texture, v_Texcoord + d.xw));\n color += decodeHDR(clampSample(texture, v_Texcoord + d.zw));\n color *= 0.25;\n#endif\n gl_FragColor = encodeHDR(color);\n}\n@end",Gs="\n@export clay.compositor.upsample\n#define HIGH_QUALITY\nuniform sampler2D texture;\nuniform vec2 textureSize : [512, 512];\nuniform float sampleScale: 0.5;\nvarying vec2 v_Texcoord;\n@import clay.util.rgbm\n@import clay.util.clamp_sample\nvoid main()\n{\n#ifdef HIGH_QUALITY\n vec4 d = vec4(1.0, 1.0, -1.0, 0.0) / textureSize.xyxy * sampleScale;\n vec4 s;\n s = decodeHDR(clampSample(texture, v_Texcoord - d.xy));\n s += decodeHDR(clampSample(texture, v_Texcoord - d.wy)) * 2.0;\n s += decodeHDR(clampSample(texture, v_Texcoord - d.zy));\n s += decodeHDR(clampSample(texture, v_Texcoord + d.zw)) * 2.0;\n s += decodeHDR(clampSample(texture, v_Texcoord )) * 4.0;\n s += decodeHDR(clampSample(texture, v_Texcoord + d.xw)) * 2.0;\n s += decodeHDR(clampSample(texture, v_Texcoord + d.zy));\n s += decodeHDR(clampSample(texture, v_Texcoord + d.wy)) * 2.0;\n s += decodeHDR(clampSample(texture, v_Texcoord + d.xy));\n gl_FragColor = encodeHDR(s / 16.0);\n#else\n vec4 d = vec4(-1.0, -1.0, +1.0, +1.0) / textureSize.xyxy;\n vec4 s;\n s = decodeHDR(clampSample(texture, v_Texcoord + d.xy));\n s += decodeHDR(clampSample(texture, v_Texcoord + d.zy));\n s += decodeHDR(clampSample(texture, v_Texcoord + d.xw));\n s += decodeHDR(clampSample(texture, v_Texcoord + d.zw));\n gl_FragColor = encodeHDR(s / 4.0);\n#endif\n}\n@end",Vs="@export clay.compositor.hdr.composite\n#define TONEMAPPING\nuniform sampler2D texture;\n#ifdef BLOOM_ENABLED\nuniform sampler2D bloom;\n#endif\n#ifdef LENSFLARE_ENABLED\nuniform sampler2D lensflare;\nuniform sampler2D lensdirt;\n#endif\n#ifdef LUM_ENABLED\nuniform sampler2D lum;\n#endif\n#ifdef LUT_ENABLED\nuniform sampler2D lut;\n#endif\n#ifdef COLOR_CORRECTION\nuniform float brightness : 0.0;\nuniform float contrast : 1.0;\nuniform float saturation : 1.0;\n#endif\n#ifdef VIGNETTE\nuniform float vignetteDarkness: 1.0;\nuniform float vignetteOffset: 1.0;\n#endif\nuniform float exposure : 1.0;\nuniform float bloomIntensity : 0.25;\nuniform float lensflareIntensity : 1;\nvarying vec2 v_Texcoord;\n@import clay.util.srgb\nvec3 ACESToneMapping(vec3 color)\n{\n const float A = 2.51;\n const float B = 0.03;\n const float C = 2.43;\n const float D = 0.59;\n const float E = 0.14;\n return (color * (A * color + B)) / (color * (C * color + D) + E);\n}\nfloat eyeAdaption(float fLum)\n{\n return mix(0.2, fLum, 0.5);\n}\n#ifdef LUT_ENABLED\nvec3 lutTransform(vec3 color) {\n float blueColor = color.b * 63.0;\n vec2 quad1;\n quad1.y = floor(floor(blueColor) / 8.0);\n quad1.x = floor(blueColor) - (quad1.y * 8.0);\n vec2 quad2;\n quad2.y = floor(ceil(blueColor) / 8.0);\n quad2.x = ceil(blueColor) - (quad2.y * 8.0);\n vec2 texPos1;\n texPos1.x = (quad1.x * 0.125) + 0.5/512.0 + ((0.125 - 1.0/512.0) * color.r);\n texPos1.y = (quad1.y * 0.125) + 0.5/512.0 + ((0.125 - 1.0/512.0) * color.g);\n vec2 texPos2;\n texPos2.x = (quad2.x * 0.125) + 0.5/512.0 + ((0.125 - 1.0/512.0) * color.r);\n texPos2.y = (quad2.y * 0.125) + 0.5/512.0 + ((0.125 - 1.0/512.0) * color.g);\n vec4 newColor1 = texture2D(lut, texPos1);\n vec4 newColor2 = texture2D(lut, texPos2);\n vec4 newColor = mix(newColor1, newColor2, fract(blueColor));\n return newColor.rgb;\n}\n#endif\n@import clay.util.rgbm\nvoid main()\n{\n vec4 texel = vec4(0.0);\n vec4 originalTexel = vec4(0.0);\n#ifdef TEXTURE_ENABLED\n texel = decodeHDR(texture2D(texture, v_Texcoord));\n originalTexel = texel;\n#endif\n#ifdef BLOOM_ENABLED\n vec4 bloomTexel = decodeHDR(texture2D(bloom, v_Texcoord));\n texel.rgb += bloomTexel.rgb * bloomIntensity;\n texel.a += bloomTexel.a * bloomIntensity;\n#endif\n#ifdef LENSFLARE_ENABLED\n texel += decodeHDR(texture2D(lensflare, v_Texcoord)) * texture2D(lensdirt, v_Texcoord) * lensflareIntensity;\n#endif\n texel.a = min(texel.a, 1.0);\n#ifdef LUM_ENABLED\n float fLum = texture2D(lum, vec2(0.5, 0.5)).r;\n float adaptedLumDest = 3.0 / (max(0.1, 1.0 + 10.0*eyeAdaption(fLum)));\n float exposureBias = adaptedLumDest * exposure;\n#else\n float exposureBias = exposure;\n#endif\n#ifdef TONEMAPPING\n texel.rgb *= exposureBias;\n texel.rgb = ACESToneMapping(texel.rgb);\n#endif\n texel = linearTosRGB(texel);\n#ifdef LUT_ENABLED\n texel.rgb = lutTransform(clamp(texel.rgb,vec3(0.0),vec3(1.0)));\n#endif\n#ifdef COLOR_CORRECTION\n texel.rgb = clamp(texel.rgb + vec3(brightness), 0.0, 1.0);\n texel.rgb = clamp((texel.rgb - vec3(0.5))*contrast+vec3(0.5), 0.0, 1.0);\n float lum = dot(texel.rgb, vec3(0.2125, 0.7154, 0.0721));\n texel.rgb = mix(vec3(lum), texel.rgb, saturation);\n#endif\n#ifdef VIGNETTE\n vec2 uv = (v_Texcoord - vec2(0.5)) * vec2(vignetteOffset);\n texel.rgb = mix(texel.rgb, vec3(1.0 - vignetteDarkness), dot(uv, uv));\n#endif\n gl_FragColor = encodeHDR(texel);\n#ifdef DEBUG\n #if DEBUG == 1\n gl_FragColor = encodeHDR(decodeHDR(texture2D(texture, v_Texcoord)));\n #elif DEBUG == 2\n gl_FragColor = encodeHDR(decodeHDR(texture2D(bloom, v_Texcoord)) * bloomIntensity);\n #elif DEBUG == 3\n gl_FragColor = encodeHDR(decodeHDR(texture2D(lensflare, v_Texcoord) * lensflareIntensity));\n #endif\n#endif\n if (originalTexel.a <= 0.01 && gl_FragColor.a > 1e-5) {\n gl_FragColor.a = dot(gl_FragColor.rgb, vec3(0.2125, 0.7154, 0.0721));\n }\n#ifdef PREMULTIPLY_ALPHA\n gl_FragColor.rgb *= gl_FragColor.a;\n#endif\n}\n@end",js="@export clay.compositor.blend\n#define SHADER_NAME blend\n#ifdef TEXTURE1_ENABLED\nuniform sampler2D texture1;\nuniform float weight1 : 1.0;\n#endif\n#ifdef TEXTURE2_ENABLED\nuniform sampler2D texture2;\nuniform float weight2 : 1.0;\n#endif\n#ifdef TEXTURE3_ENABLED\nuniform sampler2D texture3;\nuniform float weight3 : 1.0;\n#endif\n#ifdef TEXTURE4_ENABLED\nuniform sampler2D texture4;\nuniform float weight4 : 1.0;\n#endif\n#ifdef TEXTURE5_ENABLED\nuniform sampler2D texture5;\nuniform float weight5 : 1.0;\n#endif\n#ifdef TEXTURE6_ENABLED\nuniform sampler2D texture6;\nuniform float weight6 : 1.0;\n#endif\nvarying vec2 v_Texcoord;\n@import clay.util.rgbm\nvoid main()\n{\n vec4 tex = vec4(0.0);\n#ifdef TEXTURE1_ENABLED\n tex += decodeHDR(texture2D(texture1, v_Texcoord)) * weight1;\n#endif\n#ifdef TEXTURE2_ENABLED\n tex += decodeHDR(texture2D(texture2, v_Texcoord)) * weight2;\n#endif\n#ifdef TEXTURE3_ENABLED\n tex += decodeHDR(texture2D(texture3, v_Texcoord)) * weight3;\n#endif\n#ifdef TEXTURE4_ENABLED\n tex += decodeHDR(texture2D(texture4, v_Texcoord)) * weight4;\n#endif\n#ifdef TEXTURE5_ENABLED\n tex += decodeHDR(texture2D(texture5, v_Texcoord)) * weight5;\n#endif\n#ifdef TEXTURE6_ENABLED\n tex += decodeHDR(texture2D(texture6, v_Texcoord)) * weight6;\n#endif\n gl_FragColor = encodeHDR(tex);\n}\n@end",Hs="@export clay.compositor.fxaa\nuniform sampler2D texture;\nuniform vec4 viewport : VIEWPORT;\nvarying vec2 v_Texcoord;\n#define FXAA_REDUCE_MIN (1.0/128.0)\n#define FXAA_REDUCE_MUL (1.0/8.0)\n#define FXAA_SPAN_MAX 8.0\n@import clay.util.rgbm\nvoid main()\n{\n vec2 resolution = 1.0 / viewport.zw;\n vec3 rgbNW = decodeHDR( texture2D( texture, ( gl_FragCoord.xy + vec2( -1.0, -1.0 ) ) * resolution ) ).xyz;\n vec3 rgbNE = decodeHDR( texture2D( texture, ( gl_FragCoord.xy + vec2( 1.0, -1.0 ) ) * resolution ) ).xyz;\n vec3 rgbSW = decodeHDR( texture2D( texture, ( gl_FragCoord.xy + vec2( -1.0, 1.0 ) ) * resolution ) ).xyz;\n vec3 rgbSE = decodeHDR( texture2D( texture, ( gl_FragCoord.xy + vec2( 1.0, 1.0 ) ) * resolution ) ).xyz;\n vec4 rgbaM = decodeHDR( texture2D( texture, gl_FragCoord.xy * resolution ) );\n vec3 rgbM = rgbaM.xyz;\n float opacity = rgbaM.w;\n vec3 luma = vec3( 0.299, 0.587, 0.114 );\n float lumaNW = dot( rgbNW, luma );\n float lumaNE = dot( rgbNE, luma );\n float lumaSW = dot( rgbSW, luma );\n float lumaSE = dot( rgbSE, luma );\n float lumaM = dot( rgbM, luma );\n float lumaMin = min( lumaM, min( min( lumaNW, lumaNE ), min( lumaSW, lumaSE ) ) );\n float lumaMax = max( lumaM, max( max( lumaNW, lumaNE) , max( lumaSW, lumaSE ) ) );\n vec2 dir;\n dir.x = -((lumaNW + lumaNE) - (lumaSW + lumaSE));\n dir.y = ((lumaNW + lumaSW) - (lumaNE + lumaSE));\n float dirReduce = max( ( lumaNW + lumaNE + lumaSW + lumaSE ) * ( 0.25 * FXAA_REDUCE_MUL ), FXAA_REDUCE_MIN );\n float rcpDirMin = 1.0 / ( min( abs( dir.x ), abs( dir.y ) ) + dirReduce );\n dir = min( vec2( FXAA_SPAN_MAX, FXAA_SPAN_MAX),\n max( vec2(-FXAA_SPAN_MAX, -FXAA_SPAN_MAX),\n dir * rcpDirMin)) * resolution;\n vec3 rgbA = decodeHDR( texture2D( texture, gl_FragCoord.xy * resolution + dir * ( 1.0 / 3.0 - 0.5 ) ) ).xyz;\n rgbA += decodeHDR( texture2D( texture, gl_FragCoord.xy * resolution + dir * ( 2.0 / 3.0 - 0.5 ) ) ).xyz;\n rgbA *= 0.5;\n vec3 rgbB = decodeHDR( texture2D( texture, gl_FragCoord.xy * resolution + dir * -0.5 ) ).xyz;\n rgbB += decodeHDR( texture2D( texture, gl_FragCoord.xy * resolution + dir * 0.5 ) ).xyz;\n rgbB *= 0.25;\n rgbB += rgbA * 0.5;\n float lumaB = dot( rgbB, luma );\n if ( ( lumaB < lumaMin ) || ( lumaB > lumaMax ) )\n {\n gl_FragColor = vec4( rgbA, opacity );\n }\n else {\n gl_FragColor = vec4( rgbB, opacity );\n }\n}\n@end";!function(t){t.import("@export clay.compositor.coloradjust\nvarying vec2 v_Texcoord;\nuniform sampler2D texture;\nuniform float brightness : 0.0;\nuniform float contrast : 1.0;\nuniform float exposure : 0.0;\nuniform float gamma : 1.0;\nuniform float saturation : 1.0;\nconst vec3 w = vec3(0.2125, 0.7154, 0.0721);\nvoid main()\n{\n vec4 tex = texture2D( texture, v_Texcoord);\n vec3 color = clamp(tex.rgb + vec3(brightness), 0.0, 1.0);\n color = clamp( (color-vec3(0.5))*contrast+vec3(0.5), 0.0, 1.0);\n color = clamp( color * pow(2.0, exposure), 0.0, 1.0);\n color = clamp( pow(color, vec3(gamma)), 0.0, 1.0);\n float luminance = dot( color, w );\n color = mix(vec3(luminance), color, saturation);\n gl_FragColor = vec4(color, tex.a);\n}\n@end\n@export clay.compositor.brightness\nvarying vec2 v_Texcoord;\nuniform sampler2D texture;\nuniform float brightness : 0.0;\nvoid main()\n{\n vec4 tex = texture2D( texture, v_Texcoord);\n vec3 color = tex.rgb + vec3(brightness);\n gl_FragColor = vec4(color, tex.a);\n}\n@end\n@export clay.compositor.contrast\nvarying vec2 v_Texcoord;\nuniform sampler2D texture;\nuniform float contrast : 1.0;\nvoid main()\n{\n vec4 tex = texture2D( texture, v_Texcoord);\n vec3 color = (tex.rgb-vec3(0.5))*contrast+vec3(0.5);\n gl_FragColor = vec4(color, tex.a);\n}\n@end\n@export clay.compositor.exposure\nvarying vec2 v_Texcoord;\nuniform sampler2D texture;\nuniform float exposure : 0.0;\nvoid main()\n{\n vec4 tex = texture2D(texture, v_Texcoord);\n vec3 color = tex.rgb * pow(2.0, exposure);\n gl_FragColor = vec4(color, tex.a);\n}\n@end\n@export clay.compositor.gamma\nvarying vec2 v_Texcoord;\nuniform sampler2D texture;\nuniform float gamma : 1.0;\nvoid main()\n{\n vec4 tex = texture2D(texture, v_Texcoord);\n vec3 color = pow(tex.rgb, vec3(gamma));\n gl_FragColor = vec4(color, tex.a);\n}\n@end\n@export clay.compositor.saturation\nvarying vec2 v_Texcoord;\nuniform sampler2D texture;\nuniform float saturation : 1.0;\nconst vec3 w = vec3(0.2125, 0.7154, 0.0721);\nvoid main()\n{\n vec4 tex = texture2D(texture, v_Texcoord);\n vec3 color = tex.rgb;\n float luminance = dot(color, w);\n color = mix(vec3(luminance), color, saturation);\n gl_FragColor = vec4(color, tex.a);\n}\n@end"),t.import(Os),t.import("@export clay.compositor.hdr.log_lum\nvarying vec2 v_Texcoord;\nuniform sampler2D texture;\nconst vec3 w = vec3(0.2125, 0.7154, 0.0721);\n@import clay.util.rgbm\nvoid main()\n{\n vec4 tex = decodeHDR(texture2D(texture, v_Texcoord));\n float luminance = dot(tex.rgb, w);\n luminance = log(luminance + 0.001);\n gl_FragColor = encodeHDR(vec4(vec3(luminance), 1.0));\n}\n@end\n@export clay.compositor.hdr.lum_adaption\nvarying vec2 v_Texcoord;\nuniform sampler2D adaptedLum;\nuniform sampler2D currentLum;\nuniform float frameTime : 0.02;\n@import clay.util.rgbm\nvoid main()\n{\n float fAdaptedLum = decodeHDR(texture2D(adaptedLum, vec2(0.5, 0.5))).r;\n float fCurrentLum = exp(encodeHDR(texture2D(currentLum, vec2(0.5, 0.5))).r);\n fAdaptedLum += (fCurrentLum - fAdaptedLum) * (1.0 - pow(0.98, 30.0 * frameTime));\n gl_FragColor = encodeHDR(vec4(vec3(fAdaptedLum), 1.0));\n}\n@end\n@export clay.compositor.lum\nvarying vec2 v_Texcoord;\nuniform sampler2D texture;\nconst vec3 w = vec3(0.2125, 0.7154, 0.0721);\nvoid main()\n{\n vec4 tex = texture2D( texture, v_Texcoord );\n float luminance = dot(tex.rgb, w);\n gl_FragColor = vec4(vec3(luminance), 1.0);\n}\n@end"),t.import(Ns),t.import("@export clay.compositor.vignette\n#define OUTPUT_ALPHA\nvarying vec2 v_Texcoord;\nuniform sampler2D texture;\nuniform float darkness: 1;\nuniform float offset: 1;\n@import clay.util.rgbm\nvoid main()\n{\n vec4 texel = decodeHDR(texture2D(texture, v_Texcoord));\n gl_FragColor.rgb = texel.rgb;\n vec2 uv = (v_Texcoord - vec2(0.5)) * vec2(offset);\n gl_FragColor = encodeHDR(vec4(mix(texel.rgb, vec3(1.0 - darkness), dot(uv, uv)), texel.a));\n}\n@end"),t.import(Fs),t.import(Bs),t.import(zs),t.import(Gs),t.import(Vs),t.import("@export clay.compositor.lensflare\n#define SAMPLE_NUMBER 8\nuniform sampler2D texture;\nuniform sampler2D lenscolor;\nuniform vec2 textureSize : [512, 512];\nuniform float dispersal : 0.3;\nuniform float haloWidth : 0.4;\nuniform float distortion : 1.0;\nvarying vec2 v_Texcoord;\n@import clay.util.rgbm\nvec4 textureDistorted(\n in vec2 texcoord,\n in vec2 direction,\n in vec3 distortion\n) {\n return vec4(\n decodeHDR(texture2D(texture, texcoord + direction * distortion.r)).r,\n decodeHDR(texture2D(texture, texcoord + direction * distortion.g)).g,\n decodeHDR(texture2D(texture, texcoord + direction * distortion.b)).b,\n 1.0\n );\n}\nvoid main()\n{\n vec2 texcoord = -v_Texcoord + vec2(1.0); vec2 textureOffset = 1.0 / textureSize;\n vec2 ghostVec = (vec2(0.5) - texcoord) * dispersal;\n vec2 haloVec = normalize(ghostVec) * haloWidth;\n vec3 distortion = vec3(-textureOffset.x * distortion, 0.0, textureOffset.x * distortion);\n vec4 result = vec4(0.0);\n for (int i = 0; i < SAMPLE_NUMBER; i++)\n {\n vec2 offset = fract(texcoord + ghostVec * float(i));\n float weight = length(vec2(0.5) - offset) / length(vec2(0.5));\n weight = pow(1.0 - weight, 10.0);\n result += textureDistorted(offset, normalize(ghostVec), distortion) * weight;\n }\n result *= texture2D(lenscolor, vec2(length(vec2(0.5) - texcoord)) / length(vec2(0.5)));\n float weight = length(vec2(0.5) - fract(texcoord + haloVec)) / length(vec2(0.5));\n weight = pow(1.0 - weight, 10.0);\n vec2 offset = fract(texcoord + haloVec);\n result += textureDistorted(offset, normalize(ghostVec), distortion) * weight;\n gl_FragColor = result;\n}\n@end"),t.import(js),t.import(Hs)}(Ce);var Ws=/^#source\((.*?)\)/;function Us(t,e,n){var i,r,o,a,s=t.type||"filter";if("filter"===s){var l=t.shader.trim(),h=Ws.exec(l);if(h?i=Ce.source(h[1].trim()):"#"===l.charAt(0)&&(i=e.shaders[l.substr(1)]),i||(i=l),!i)return}if(t.inputs)for(var c in r={},t.inputs)"string"==typeof t.inputs[c]?r[c]=t.inputs[c]:r[c]={node:t.inputs[c].node,pin:t.inputs[c].pin};if(t.outputs)for(var c in o={},t.outputs){var u=t.outputs[c];o[c]={},null!=u.attachment&&(o[c].attachment=u.attachment),null!=u.keepLastFrame&&(o[c].keepLastFrame=u.keepLastFrame),null!=u.outputLastFrame&&(o[c].outputLastFrame=u.outputLastFrame),u.parameters&&(o[c].parameters=Ys(u.parameters))}if(a="scene"===s?new Ds({name:t.name,scene:n.scene,camera:n.camera,outputs:o}):"texture"===s?new Ps({name:t.name,outputs:o}):new Rs({name:t.name,shader:i,inputs:r,outputs:o})){if(t.parameters)for(var c in t.parameters){"string"==typeof(d=t.parameters[c])?"#"===(d=d.trim()).charAt(0)?d=e.textures[d.substr(1)]:a.on("beforerender",Zs(c,$s(d))):"function"==typeof d&&a.on("beforerender",d),a.setParameter(c,d)}if(t.defines&&a.pass)for(var c in t.defines){var d=t.defines[c];a.pass.material.define("fragment",c,d)}}return a}function qs(t,e){return t}function Xs(t,e){return e}function Ys(t){var e={};if(!t)return e;["type","minFilter","magFilter","wrapS","wrapT","flipY","useMipmap"].forEach((function(n){var i=t[n];null!=i&&("string"==typeof i&&(i=ai[i]),e[n]=i)}));var n=t.scale||1;return["width","height"].forEach((function(i){if(null!=t[i]){var r=t[i];"string"==typeof r?(r=r.trim(),e[i]=(o=$s(r),a=(a=n)||1,function(t){var e=t.getDevicePixelRatio(),n=t.getWidth()*a,i=t.getHeight()*a;return o(n,i,e)})):e[i]=r}var o,a})),e.width||(e.width=qs),e.height||(e.height=Xs),null!=t.useMipmap&&(e.useMipmap=t.useMipmap),e}function Zs(t,e){return function(n){var i=n.getDevicePixelRatio(),r=n.getWidth(),o=n.getHeight(),a=e(r,o,i);this.setParameter(t,a)}}function $s(t){var e=/^expr\((.*)\)$/.exec(t);if(e)try{var n=new Function("width","height","dpr","return "+e[1]);return n(1,1),n}catch(Jh){throw new Error("Invalid expression.")}}const Ks=function(t,e){var n=new Ls;e=e||{};var i={textures:{},parameters:{}};for(var r in t.parameters){var o=t.parameters[r];i.parameters[r]=Ys(o)}return function(t,e,n,i){if(!t.textures)return void i({});var r={},o=0,a=!1,s=n.textureRootPath;m.each(t.textures,(function(t,e){var n,l=t.path,h=Ys(t.parameters);if(Array.isArray(l)&&6===l.length)s&&(l=l.map((function(t){return m.relative2absolute(t,s)}))),n=new fr(h);else{if("string"!=typeof l)return;s&&(l=m.relative2absolute(l,s)),n=new fi(h)}n.load(l),o++,n.once("success",(function(){r[e]=n,0===--o&&(i(r),a=!0)}))})),0!==o||a||i(r)}(t,0,e,(function(r){i.textures=r,function(){for(var r=0;r<t.nodes.length;r++){var o=Us(t.nodes[r],i,e);o&&n.addNode(o)}}()})),n};const Js=function(t,e){for(var n=0,i=1/e,r=t;r>0;)n+=i*(r%e),r=Math.floor(r/e),i/=e;return n};function Qs(t){for(var e=new Uint8Array(t*t*4),n=0,i=new Qe,r=0;r<t;r++)for(var o=0;o<t;o++)i.set(2*Math.random()-1,2*Math.random()-1,0).normalize(),e[n++]=255*(.5*i.x+.5),e[n++]=255*(.5*i.y+.5),e[n++]=0,e[n++]=255;return e}function tl(t){return new fi({pixels:Qs(t),wrapS:ai.REPEAT,wrapT:ai.REPEAT,width:t,height:t})}function el(t,e,n){var i=new Float32Array(3*t);e=e||0;for(var r=0;r<t;r++){var o=Js(r+e,2)*(n?1:2)*Math.PI,a=Js(r+e,3)*Math.PI,s=Math.random(),l=Math.cos(o)*Math.sin(a)*s,h=Math.cos(a)*s,c=Math.sin(o)*Math.sin(a)*s;i[3*r]=l,i[3*r+1]=h,i[3*r+2]=c}return i}function nl(t){t=t||{},this._ssaoPass=new lo({fragment:Ce.source("ecgl.ssao.estimate")}),this._blurPass=new lo({fragment:Ce.source("ecgl.ssao.blur")}),this._framebuffer=new Ir({depthBuffer:!1}),this._ssaoTexture=new fi,this._blurTexture=new fi,this._blurTexture2=new fi,this._depthTex=t.depthTexture,this._normalTex=t.normalTexture,this.setNoiseSize(4),this.setKernelSize(t.kernelSize||12),null!=t.radius&&this.setParameter("radius",t.radius),null!=t.power&&this.setParameter("power",t.power),this._normalTex||(this._ssaoPass.material.disableTexture("normalTex"),this._blurPass.material.disableTexture("normalTex")),this._depthTex||this._blurPass.material.disableTexture("depthTex"),this._blurPass.material.setUniform("normalTex",this._normalTex),this._blurPass.material.setUniform("depthTex",this._depthTex)}Ce.import("@export ecgl.ssao.estimate\n\nuniform sampler2D depthTex;\n\nuniform sampler2D normalTex;\n\nuniform sampler2D noiseTex;\n\nuniform vec2 depthTexSize;\n\nuniform vec2 noiseTexSize;\n\nuniform mat4 projection;\n\nuniform mat4 projectionInv;\n\nuniform mat4 viewInverseTranspose;\n\nuniform vec3 kernel[KERNEL_SIZE];\n\nuniform float radius : 1;\n\nuniform float power : 1;\n\nuniform float bias: 1e-2;\n\nuniform float intensity: 1.0;\n\nvarying vec2 v_Texcoord;\n\nfloat ssaoEstimator(in vec3 originPos, in mat3 kernelBasis) {\n float occlusion = 0.0;\n\n for (int i = 0; i < KERNEL_SIZE; i++) {\n vec3 samplePos = kernel[i];\n#ifdef NORMALTEX_ENABLED\n samplePos = kernelBasis * samplePos;\n#endif\n samplePos = samplePos * radius + originPos;\n\n vec4 texCoord = projection * vec4(samplePos, 1.0);\n texCoord.xy /= texCoord.w;\n\n vec4 depthTexel = texture2D(depthTex, texCoord.xy * 0.5 + 0.5);\n\n float sampleDepth = depthTexel.r * 2.0 - 1.0;\n if (projection[3][3] == 0.0) {\n sampleDepth = projection[3][2] / (sampleDepth * projection[2][3] - projection[2][2]);\n }\n else {\n sampleDepth = (sampleDepth - projection[3][2]) / projection[2][2];\n }\n \n float rangeCheck = smoothstep(0.0, 1.0, radius / abs(originPos.z - sampleDepth));\n occlusion += rangeCheck * step(samplePos.z, sampleDepth - bias);\n }\n#ifdef NORMALTEX_ENABLED\n occlusion = 1.0 - occlusion / float(KERNEL_SIZE);\n#else\n occlusion = 1.0 - clamp((occlusion / float(KERNEL_SIZE) - 0.6) * 2.5, 0.0, 1.0);\n#endif\n return pow(occlusion, power);\n}\n\nvoid main()\n{\n\n vec4 depthTexel = texture2D(depthTex, v_Texcoord);\n\n#ifdef NORMALTEX_ENABLED\n vec4 tex = texture2D(normalTex, v_Texcoord);\n if (dot(tex.rgb, tex.rgb) == 0.0) {\n gl_FragColor = vec4(1.0);\n return;\n }\n vec3 N = tex.rgb * 2.0 - 1.0;\n N = (viewInverseTranspose * vec4(N, 0.0)).xyz;\n\n vec2 noiseTexCoord = depthTexSize / vec2(noiseTexSize) * v_Texcoord;\n vec3 rvec = texture2D(noiseTex, noiseTexCoord).rgb * 2.0 - 1.0;\n vec3 T = normalize(rvec - N * dot(rvec, N));\n vec3 BT = normalize(cross(N, T));\n mat3 kernelBasis = mat3(T, BT, N);\n#else\n if (depthTexel.r > 0.99999) {\n gl_FragColor = vec4(1.0);\n return;\n }\n mat3 kernelBasis;\n#endif\n\n float z = depthTexel.r * 2.0 - 1.0;\n\n vec4 projectedPos = vec4(v_Texcoord * 2.0 - 1.0, z, 1.0);\n vec4 p4 = projectionInv * projectedPos;\n\n vec3 position = p4.xyz / p4.w;\n\n float ao = ssaoEstimator(position, kernelBasis);\n ao = clamp(1.0 - (1.0 - ao) * intensity, 0.0, 1.0);\n gl_FragColor = vec4(vec3(ao), 1.0);\n}\n\n@end\n\n\n@export ecgl.ssao.blur\n#define SHADER_NAME SSAO_BLUR\n\nuniform sampler2D ssaoTexture;\n\n#ifdef NORMALTEX_ENABLED\nuniform sampler2D normalTex;\n#endif\n\nvarying vec2 v_Texcoord;\n\nuniform vec2 textureSize;\nuniform float blurSize : 1.0;\n\nuniform int direction: 0.0;\n\n#ifdef DEPTHTEX_ENABLED\nuniform sampler2D depthTex;\nuniform mat4 projection;\nuniform float depthRange : 0.5;\n\nfloat getLinearDepth(vec2 coord)\n{\n float depth = texture2D(depthTex, coord).r * 2.0 - 1.0;\n return projection[3][2] / (depth * projection[2][3] - projection[2][2]);\n}\n#endif\n\nvoid main()\n{\n float kernel[5];\n kernel[0] = 0.122581;\n kernel[1] = 0.233062;\n kernel[2] = 0.288713;\n kernel[3] = 0.233062;\n kernel[4] = 0.122581;\n\n vec2 off = vec2(0.0);\n if (direction == 0) {\n off[0] = blurSize / textureSize.x;\n }\n else {\n off[1] = blurSize / textureSize.y;\n }\n\n vec2 coord = v_Texcoord;\n\n float sum = 0.0;\n float weightAll = 0.0;\n\n#ifdef NORMALTEX_ENABLED\n vec3 centerNormal = texture2D(normalTex, v_Texcoord).rgb * 2.0 - 1.0;\n#endif\n#if defined(DEPTHTEX_ENABLED)\n float centerDepth = getLinearDepth(v_Texcoord);\n#endif\n\n for (int i = 0; i < 5; i++) {\n vec2 coord = clamp(v_Texcoord + vec2(float(i) - 2.0) * off, vec2(0.0), vec2(1.0));\n\n float w = kernel[i];\n#ifdef NORMALTEX_ENABLED\n vec3 normal = texture2D(normalTex, coord).rgb * 2.0 - 1.0;\n w *= clamp(dot(normal, centerNormal), 0.0, 1.0);\n#endif\n#ifdef DEPTHTEX_ENABLED\n float d = getLinearDepth(coord);\n w *= (1.0 - smoothstep(abs(centerDepth - d) / depthRange, 0.0, 1.0));\n#endif\n\n weightAll += w;\n sum += texture2D(ssaoTexture, coord).r * w;\n }\n\n gl_FragColor = vec4(vec3(sum / weightAll), 1.0);\n}\n\n@end\n"),nl.prototype.setDepthTexture=function(t){this._depthTex=t},nl.prototype.setNormalTexture=function(t){this._normalTex=t,this._ssaoPass.material[t?"enableTexture":"disableTexture"]("normalTex"),this.setKernelSize(this._kernelSize)},nl.prototype.update=function(t,e,n){var i=t.getWidth(),r=t.getHeight(),o=this._ssaoPass,a=this._blurPass;o.setUniform("kernel",this._kernels[n%this._kernels.length]),o.setUniform("depthTex",this._depthTex),null!=this._normalTex&&o.setUniform("normalTex",this._normalTex),o.setUniform("depthTexSize",[this._depthTex.width,this._depthTex.height]);var s=new An;An.transpose(s,e.worldTransform),o.setUniform("projection",e.projectionMatrix.array),o.setUniform("projectionInv",e.invProjectionMatrix.array),o.setUniform("viewInverseTranspose",s.array);var l=this._ssaoTexture,h=this._blurTexture,c=this._blurTexture2;l.width=i/2,l.height=r/2,h.width=i,h.height=r,c.width=i,c.height=r,this._framebuffer.attach(l),this._framebuffer.bind(t),t.gl.clearColor(1,1,1,1),t.gl.clear(t.gl.COLOR_BUFFER_BIT),o.render(t),a.setUniform("textureSize",[i/2,r/2]),a.setUniform("projection",e.projectionMatrix.array),this._framebuffer.attach(h),a.setUniform("direction",0),a.setUniform("ssaoTexture",l),a.render(t),this._framebuffer.attach(c),a.setUniform("textureSize",[i,r]),a.setUniform("direction",1),a.setUniform("ssaoTexture",h),a.render(t),this._framebuffer.unbind(t);var u=t.clearColor;t.gl.clearColor(u[0],u[1],u[2],u[3])},nl.prototype.getTargetTexture=function(){return this._blurTexture2},nl.prototype.setParameter=function(t,e){"noiseTexSize"===t?this.setNoiseSize(e):"kernelSize"===t?this.setKernelSize(e):"intensity"===t?this._ssaoPass.material.set("intensity",e):this._ssaoPass.setUniform(t,e)},nl.prototype.setKernelSize=function(t){this._kernelSize=t,this._ssaoPass.material.define("fragment","KERNEL_SIZE",t),this._kernels=this._kernels||[];for(var e=0;e<30;e++)this._kernels[e]=el(t,e*t,!!this._normalTex)},nl.prototype.setNoiseSize=function(t){var e=this._ssaoPass.getUniform("noiseTex");e?(e.data=Qs(t),e.width=e.height=t,e.dirty()):(e=tl(t),this._ssaoPass.setUniform("noiseTex",tl(t))),this._ssaoPass.setUniform("noiseTexSize",[t,t])},nl.prototype.dispose=function(t){this._blurTexture.dispose(t),this._ssaoTexture.dispose(t),this._blurTexture2.dispose(t)};const il=nl;function rl(t){t=t||{},this._ssrPass=new lo({fragment:Ce.source("ecgl.ssr.main"),clearColor:[0,0,0,0]}),this._blurPass1=new lo({fragment:Ce.source("ecgl.ssr.blur"),clearColor:[0,0,0,0]}),this._blurPass2=new lo({fragment:Ce.source("ecgl.ssr.blur"),clearColor:[0,0,0,0]}),this._blendPass=new lo({fragment:Ce.source("clay.compositor.blend")}),this._blendPass.material.disableTexturesAll(),this._blendPass.material.enableTexture(["texture1","texture2"]),this._ssrPass.setUniform("gBufferTexture1",t.normalTexture),this._ssrPass.setUniform("gBufferTexture2",t.depthTexture),this._blurPass1.setUniform("gBufferTexture1",t.normalTexture),this._blurPass1.setUniform("gBufferTexture2",t.depthTexture),this._blurPass2.setUniform("gBufferTexture1",t.normalTexture),this._blurPass2.setUniform("gBufferTexture2",t.depthTexture),this._blurPass2.material.define("fragment","VERTICAL"),this._blurPass2.material.define("fragment","BLEND"),this._ssrTexture=new fi({type:ai.HALF_FLOAT}),this._texture2=new fi({type:ai.HALF_FLOAT}),this._texture3=new fi({type:ai.HALF_FLOAT}),this._prevTexture=new fi({type:ai.HALF_FLOAT}),this._currentTexture=new fi({type:ai.HALF_FLOAT}),this._frameBuffer=new Ir({depthBuffer:!1}),this._normalDistribution=null,this._totalSamples=256,this._samplePerFrame=4,this._ssrPass.material.define("fragment","SAMPLE_PER_FRAME",this._samplePerFrame),this._ssrPass.material.define("fragment","TOTAL_SAMPLES",this._totalSamples),this._downScale=1}Ce.import("@export ecgl.ssr.main\n\n#define SHADER_NAME SSR\n#define MAX_ITERATION 20;\n#define SAMPLE_PER_FRAME 5;\n#define TOTAL_SAMPLES 128;\n\nuniform sampler2D sourceTexture;\nuniform sampler2D gBufferTexture1;\nuniform sampler2D gBufferTexture2;\nuniform sampler2D gBufferTexture3;\nuniform samplerCube specularCubemap;\nuniform float specularIntensity: 1;\n\nuniform mat4 projection;\nuniform mat4 projectionInv;\nuniform mat4 toViewSpace;\nuniform mat4 toWorldSpace;\n\nuniform float maxRayDistance: 200;\n\nuniform float pixelStride: 16;\nuniform float pixelStrideZCutoff: 50; \nuniform float screenEdgeFadeStart: 0.9; \nuniform float eyeFadeStart : 0.2; uniform float eyeFadeEnd: 0.8; \nuniform float minGlossiness: 0.2; uniform float zThicknessThreshold: 1;\n\nuniform float nearZ;\nuniform vec2 viewportSize : VIEWPORT_SIZE;\n\nuniform float jitterOffset: 0;\n\nvarying vec2 v_Texcoord;\n\n#ifdef DEPTH_DECODE\n@import clay.util.decode_float\n#endif\n\n#ifdef PHYSICALLY_CORRECT\nuniform sampler2D normalDistribution;\nuniform float sampleOffset: 0;\nuniform vec2 normalDistributionSize;\n\nvec3 transformNormal(vec3 H, vec3 N) {\n vec3 upVector = N.y > 0.999 ? vec3(1.0, 0.0, 0.0) : vec3(0.0, 1.0, 0.0);\n vec3 tangentX = normalize(cross(N, upVector));\n vec3 tangentZ = cross(N, tangentX);\n return normalize(tangentX * H.x + N * H.y + tangentZ * H.z);\n}\nvec3 importanceSampleNormalGGX(float i, float roughness, vec3 N) {\n float p = fract((i + sampleOffset) / float(TOTAL_SAMPLES));\n vec3 H = texture2D(normalDistribution,vec2(roughness, p)).rgb;\n return transformNormal(H, N);\n}\nfloat G_Smith(float g, float ndv, float ndl) {\n float roughness = 1.0 - g;\n float k = roughness * roughness / 2.0;\n float G1V = ndv / (ndv * (1.0 - k) + k);\n float G1L = ndl / (ndl * (1.0 - k) + k);\n return G1L * G1V;\n}\nvec3 F_Schlick(float ndv, vec3 spec) {\n return spec + (1.0 - spec) * pow(1.0 - ndv, 5.0);\n}\n#endif\n\nfloat fetchDepth(sampler2D depthTexture, vec2 uv)\n{\n vec4 depthTexel = texture2D(depthTexture, uv);\n return depthTexel.r * 2.0 - 1.0;\n}\n\nfloat linearDepth(float depth)\n{\n if (projection[3][3] == 0.0) {\n return projection[3][2] / (depth * projection[2][3] - projection[2][2]);\n }\n else {\n return (depth - projection[3][2]) / projection[2][2];\n }\n}\n\nbool rayIntersectDepth(float rayZNear, float rayZFar, vec2 hitPixel)\n{\n if (rayZFar > rayZNear)\n {\n float t = rayZFar; rayZFar = rayZNear; rayZNear = t;\n }\n float cameraZ = linearDepth(fetchDepth(gBufferTexture2, hitPixel));\n return rayZFar <= cameraZ && rayZNear >= cameraZ - zThicknessThreshold;\n}\n\n\nbool traceScreenSpaceRay(\n vec3 rayOrigin, vec3 rayDir, float jitter,\n out vec2 hitPixel, out vec3 hitPoint, out float iterationCount\n)\n{\n float rayLength = ((rayOrigin.z + rayDir.z * maxRayDistance) > -nearZ)\n ? (-nearZ - rayOrigin.z) / rayDir.z : maxRayDistance;\n\n vec3 rayEnd = rayOrigin + rayDir * rayLength;\n\n vec4 H0 = projection * vec4(rayOrigin, 1.0);\n vec4 H1 = projection * vec4(rayEnd, 1.0);\n\n float k0 = 1.0 / H0.w, k1 = 1.0 / H1.w;\n\n vec3 Q0 = rayOrigin * k0, Q1 = rayEnd * k1;\n\n vec2 P0 = (H0.xy * k0 * 0.5 + 0.5) * viewportSize;\n vec2 P1 = (H1.xy * k1 * 0.5 + 0.5) * viewportSize;\n\n P1 += dot(P1 - P0, P1 - P0) < 0.0001 ? 0.01 : 0.0;\n vec2 delta = P1 - P0;\n\n bool permute = false;\n if (abs(delta.x) < abs(delta.y)) {\n permute = true;\n delta = delta.yx;\n P0 = P0.yx;\n P1 = P1.yx;\n }\n float stepDir = sign(delta.x);\n float invdx = stepDir / delta.x;\n\n vec3 dQ = (Q1 - Q0) * invdx;\n float dk = (k1 - k0) * invdx;\n\n vec2 dP = vec2(stepDir, delta.y * invdx);\n\n float strideScaler = 1.0 - min(1.0, -rayOrigin.z / pixelStrideZCutoff);\n float pixStride = 1.0 + strideScaler * pixelStride;\n\n dP *= pixStride; dQ *= pixStride; dk *= pixStride;\n\n vec4 pqk = vec4(P0, Q0.z, k0);\n vec4 dPQK = vec4(dP, dQ.z, dk);\n\n pqk += dPQK * jitter;\n float rayZFar = (dPQK.z * 0.5 + pqk.z) / (dPQK.w * 0.5 + pqk.w);\n float rayZNear;\n\n bool intersect = false;\n\n vec2 texelSize = 1.0 / viewportSize;\n\n iterationCount = 0.0;\n\n for (int i = 0; i < MAX_ITERATION; i++)\n {\n pqk += dPQK;\n\n rayZNear = rayZFar;\n rayZFar = (dPQK.z * 0.5 + pqk.z) / (dPQK.w * 0.5 + pqk.w);\n\n hitPixel = permute ? pqk.yx : pqk.xy;\n hitPixel *= texelSize;\n\n intersect = rayIntersectDepth(rayZNear, rayZFar, hitPixel);\n\n iterationCount += 1.0;\n\n dPQK *= 1.2;\n\n if (intersect) {\n break;\n }\n }\n\n Q0.xy += dQ.xy * iterationCount;\n Q0.z = pqk.z;\n hitPoint = Q0 / pqk.w;\n\n return intersect;\n}\n\nfloat calculateAlpha(\n float iterationCount, float reflectivity,\n vec2 hitPixel, vec3 hitPoint, float dist, vec3 rayDir\n)\n{\n float alpha = clamp(reflectivity, 0.0, 1.0);\n alpha *= 1.0 - (iterationCount / float(MAX_ITERATION));\n vec2 hitPixelNDC = hitPixel * 2.0 - 1.0;\n float maxDimension = min(1.0, max(abs(hitPixelNDC.x), abs(hitPixelNDC.y)));\n alpha *= 1.0 - max(0.0, maxDimension - screenEdgeFadeStart) / (1.0 - screenEdgeFadeStart);\n\n float _eyeFadeStart = eyeFadeStart;\n float _eyeFadeEnd = eyeFadeEnd;\n if (_eyeFadeStart > _eyeFadeEnd) {\n float tmp = _eyeFadeEnd;\n _eyeFadeEnd = _eyeFadeStart;\n _eyeFadeStart = tmp;\n }\n\n float eyeDir = clamp(rayDir.z, _eyeFadeStart, _eyeFadeEnd);\n alpha *= 1.0 - (eyeDir - _eyeFadeStart) / (_eyeFadeEnd - _eyeFadeStart);\n\n alpha *= 1.0 - clamp(dist / maxRayDistance, 0.0, 1.0);\n\n return alpha;\n}\n\n@import clay.util.rand\n\n@import clay.util.rgbm\n\nvoid main()\n{\n vec4 normalAndGloss = texture2D(gBufferTexture1, v_Texcoord);\n\n if (dot(normalAndGloss.rgb, vec3(1.0)) == 0.0) {\n discard;\n }\n\n float g = normalAndGloss.a;\n#if !defined(PHYSICALLY_CORRECT)\n if (g <= minGlossiness) {\n discard;\n }\n#endif\n\n float reflectivity = (g - minGlossiness) / (1.0 - minGlossiness);\n\n vec3 N = normalize(normalAndGloss.rgb * 2.0 - 1.0);\n N = normalize((toViewSpace * vec4(N, 0.0)).xyz);\n\n vec4 projectedPos = vec4(v_Texcoord * 2.0 - 1.0, fetchDepth(gBufferTexture2, v_Texcoord), 1.0);\n vec4 pos = projectionInv * projectedPos;\n vec3 rayOrigin = pos.xyz / pos.w;\n vec3 V = -normalize(rayOrigin);\n\n float ndv = clamp(dot(N, V), 0.0, 1.0);\n float iterationCount;\n float jitter = rand(fract(v_Texcoord + jitterOffset));\n\n#ifdef PHYSICALLY_CORRECT\n vec4 color = vec4(vec3(0.0), 1.0);\n vec4 albedoMetalness = texture2D(gBufferTexture3, v_Texcoord);\n vec3 albedo = albedoMetalness.rgb;\n float m = albedoMetalness.a;\n vec3 diffuseColor = albedo * (1.0 - m);\n vec3 spec = mix(vec3(0.04), albedo, m);\n\n float jitter2 = rand(fract(v_Texcoord)) * float(TOTAL_SAMPLES);\n\n for (int i = 0; i < SAMPLE_PER_FRAME; i++) {\n vec3 H = importanceSampleNormalGGX(float(i) + jitter2, 1.0 - g, N);\n vec3 rayDir = normalize(reflect(-V, H));\n#else\n vec3 rayDir = normalize(reflect(-V, N));\n#endif\n vec2 hitPixel;\n vec3 hitPoint;\n\n bool intersect = traceScreenSpaceRay(rayOrigin, rayDir, jitter, hitPixel, hitPoint, iterationCount);\n\n float dist = distance(rayOrigin, hitPoint);\n\n vec3 hitNormal = texture2D(gBufferTexture1, hitPixel).rgb * 2.0 - 1.0;\n hitNormal = normalize((toViewSpace * vec4(hitNormal, 0.0)).xyz);\n#ifdef PHYSICALLY_CORRECT\n float ndl = clamp(dot(N, rayDir), 0.0, 1.0);\n float vdh = clamp(dot(V, H), 0.0, 1.0);\n float ndh = clamp(dot(N, H), 0.0, 1.0);\n vec3 litTexel = vec3(0.0);\n if (dot(hitNormal, rayDir) < 0.0 && intersect) {\n litTexel = texture2D(sourceTexture, hitPixel).rgb;\n litTexel *= pow(clamp(1.0 - dist / 200.0, 0.0, 1.0), 3.0);\n\n }\n else {\n #ifdef SPECULARCUBEMAP_ENABLED\n vec3 rayDirW = normalize(toWorldSpace * vec4(rayDir, 0.0)).rgb;\n litTexel = RGBMDecode(textureCubeLodEXT(specularCubemap, rayDirW, 0.0), 8.12).rgb * specularIntensity;\n#endif\n }\n color.rgb += ndl * litTexel * (\n F_Schlick(ndl, spec) * G_Smith(g, ndv, ndl) * vdh / (ndh * ndv + 0.001)\n );\n }\n color.rgb /= float(SAMPLE_PER_FRAME);\n#else\n #if !defined(SPECULARCUBEMAP_ENABLED)\n if (dot(hitNormal, rayDir) >= 0.0) {\n discard;\n }\n if (!intersect) {\n discard;\n }\n#endif\n float alpha = clamp(calculateAlpha(iterationCount, reflectivity, hitPixel, hitPoint, dist, rayDir), 0.0, 1.0);\n vec4 color = texture2D(sourceTexture, hitPixel);\n color.rgb *= alpha;\n\n#ifdef SPECULARCUBEMAP_ENABLED\n vec3 rayDirW = normalize(toWorldSpace * vec4(rayDir, 0.0)).rgb;\n alpha = alpha * (intersect ? 1.0 : 0.0);\n float bias = (1.0 -g) * 5.0;\n color.rgb += (1.0 - alpha)\n * RGBMDecode(textureCubeLodEXT(specularCubemap, rayDirW, bias), 8.12).rgb\n * specularIntensity;\n#endif\n\n#endif\n\n gl_FragColor = encodeHDR(color);\n}\n@end\n\n@export ecgl.ssr.blur\n\nuniform sampler2D texture;\nuniform sampler2D gBufferTexture1;\nuniform sampler2D gBufferTexture2;\nuniform mat4 projection;\nuniform float depthRange : 0.05;\n\nvarying vec2 v_Texcoord;\n\nuniform vec2 textureSize;\nuniform float blurSize : 1.0;\n\n#ifdef BLEND\n #ifdef SSAOTEX_ENABLED\nuniform sampler2D ssaoTex;\n #endif\nuniform sampler2D sourceTexture;\n#endif\n\nfloat getLinearDepth(vec2 coord)\n{\n float depth = texture2D(gBufferTexture2, coord).r * 2.0 - 1.0;\n return projection[3][2] / (depth * projection[2][3] - projection[2][2]);\n}\n\n@import clay.util.rgbm\n\n\nvoid main()\n{\n @import clay.compositor.kernel.gaussian_9\n\n vec4 centerNTexel = texture2D(gBufferTexture1, v_Texcoord);\n float g = centerNTexel.a;\n float maxBlurSize = clamp(1.0 - g, 0.0, 1.0) * blurSize;\n#ifdef VERTICAL\n vec2 off = vec2(0.0, maxBlurSize / textureSize.y);\n#else\n vec2 off = vec2(maxBlurSize / textureSize.x, 0.0);\n#endif\n\n vec2 coord = v_Texcoord;\n\n vec4 sum = vec4(0.0);\n float weightAll = 0.0;\n\n vec3 cN = centerNTexel.rgb * 2.0 - 1.0;\n float cD = getLinearDepth(v_Texcoord);\n for (int i = 0; i < 9; i++) {\n vec2 coord = clamp((float(i) - 4.0) * off + v_Texcoord, vec2(0.0), vec2(1.0));\n float w = gaussianKernel[i]\n * clamp(dot(cN, texture2D(gBufferTexture1, coord).rgb * 2.0 - 1.0), 0.0, 1.0);\n float d = getLinearDepth(coord);\n w *= (1.0 - smoothstep(abs(cD - d) / depthRange, 0.0, 1.0));\n\n weightAll += w;\n sum += decodeHDR(texture2D(texture, coord)) * w;\n }\n\n#ifdef BLEND\n float aoFactor = 1.0;\n #ifdef SSAOTEX_ENABLED\n aoFactor = texture2D(ssaoTex, v_Texcoord).r;\n #endif\n gl_FragColor = encodeHDR(\n sum / weightAll * aoFactor + decodeHDR(texture2D(sourceTexture, v_Texcoord))\n );\n#else\n gl_FragColor = encodeHDR(sum / weightAll);\n#endif\n}\n\n@end"),rl.prototype.setAmbientCubemap=function(t,e){this._ssrPass.material.set("specularCubemap",t),this._ssrPass.material.set("specularIntensity",e);var n=t&&e;this._ssrPass.material[n?"enableTexture":"disableTexture"]("specularCubemap")},rl.prototype.update=function(t,e,n,i){var r=t.getWidth(),o=t.getHeight(),a=this._ssrTexture,s=this._texture2,l=this._texture3;a.width=this._prevTexture.width=this._currentTexture.width=r/this._downScale,a.height=this._prevTexture.height=this._currentTexture.height=o/this._downScale,s.width=l.width=r,s.height=l.height=o;var h=this._frameBuffer,c=this._ssrPass,u=this._blurPass1,d=this._blurPass2,p=this._blendPass,f=new An,g=new An;An.transpose(f,e.worldTransform),An.transpose(g,e.viewMatrix),c.setUniform("sourceTexture",n),c.setUniform("projection",e.projectionMatrix.array),c.setUniform("projectionInv",e.invProjectionMatrix.array),c.setUniform("toViewSpace",f.array),c.setUniform("toWorldSpace",g.array),c.setUniform("nearZ",e.near);var m=i/this._totalSamples*this._samplePerFrame;if(c.setUniform("jitterOffset",m),c.setUniform("sampleOffset",i*this._samplePerFrame),u.setUniform("textureSize",[a.width,a.height]),d.setUniform("textureSize",[r,o]),d.setUniform("sourceTexture",n),u.setUniform("projection",e.projectionMatrix.array),d.setUniform("projection",e.projectionMatrix.array),h.attach(a),h.bind(t),c.render(t),this._physicallyCorrect&&(h.attach(this._currentTexture),p.setUniform("texture1",this._prevTexture),p.setUniform("texture2",a),p.material.set({weight1:i>=1?.95:0,weight2:i>=1?.05:1}),p.render(t)),h.attach(s),u.setUniform("texture",this._physicallyCorrect?this._currentTexture:a),u.render(t),h.attach(l),d.setUniform("texture",s),d.render(t),h.unbind(t),this._physicallyCorrect){var v=this._prevTexture;this._prevTexture=this._currentTexture,this._currentTexture=v}},rl.prototype.getTargetTexture=function(){return this._texture3},rl.prototype.setParameter=function(t,e){"maxIteration"===t?this._ssrPass.material.define("fragment","MAX_ITERATION",e):this._ssrPass.setUniform(t,e)},rl.prototype.setPhysicallyCorrect=function(t){t?(this._normalDistribution||(this._normalDistribution=uo.generateNormalDistribution(64,this._totalSamples)),this._ssrPass.material.define("fragment","PHYSICALLY_CORRECT"),this._ssrPass.material.set("normalDistribution",this._normalDistribution),this._ssrPass.material.set("normalDistributionSize",[64,this._totalSamples])):this._ssrPass.material.undefine("fragment","PHYSICALLY_CORRECT"),this._physicallyCorrect=t},rl.prototype.setSSAOTexture=function(t){var e=this._blurPass2;t?(e.material.enableTexture("ssaoTex"),e.material.set("ssaoTex",t)):e.material.disableTexture("ssaoTex")},rl.prototype.isFinished=function(t){return!this._physicallyCorrect||t>this._totalSamples/this._samplePerFrame},rl.prototype.dispose=function(t){this._ssrTexture.dispose(t),this._texture2.dispose(t),this._texture3.dispose(t),this._prevTexture.dispose(t),this._currentTexture.dispose(t),this._frameBuffer.dispose(t)};const ol=rl,al=[0,0,-.321585265978,-.154972575841,.458126042375,.188473391593,.842080129861,.527766490688,.147304551086,-.659453822776,-.331943915203,-.940619700594,.0479226680259,.54812163202,.701581552186,-.709825561388,-.295436780218,.940589268233,-.901489676764,.237713156085,.973570876096,-.109899459384,-.866792314779,-.451805525005,.330975007087,.800048655954,-.344275183665,.381779221166,-.386139432542,-.437418421534,-.576478634965,-.0148463392551,.385798197415,-.262426961053,-.666302061145,.682427250835,-.628010632582,-.732836215494,.10163141741,-.987658134403,.711995289051,-.320024291314,.0296005138058,.950296523438,.0130612307608,-.351024443122,-.879596633704,-.10478487883,.435712737232,.504254490347,.779203817497,.206477676721,.388264289969,-.896736162545,-.153106280781,-.629203242522,-.245517550697,.657969239148,.126830499058,.26862328493,-.634888119007,-.302301223431,.617074219636,.779817204925];function sl(t,e,n,i,r){var o=t.gl;e.setUniform(o,"1i",n,r),o.activeTexture(o.TEXTURE0+r),i.isRenderable()?i.bind(t):i.unbind(t)}function ll(t,e,n,i,r){var o,a,s,l,h=t.gl;return function(r,c,u){if(!l||l.material!==r.material){var d=r.material,p=r.__program,f=d.get("roughness");null==f&&(f=1);var g=d.get("normalMap")||e,m=d.get("roughnessMap"),v=d.get("bumpMap"),y=d.get("uvRepeat"),_=d.get("uvOffset"),x=d.get("detailUvRepeat"),b=d.get("detailUvOffset"),w=!!v&&d.isTextureEnabled("bumpMap"),S=!!m&&d.isTextureEnabled("roughnessMap"),T=d.isDefined("fragment","DOUBLE_SIDED");v=v||n,m=m||i,u!==c?(c.set("normalMap",g),c.set("bumpMap",v),c.set("roughnessMap",m),c.set("useBumpMap",w),c.set("useRoughnessMap",S),c.set("doubleSide",T),null!=y&&c.set("uvRepeat",y),null!=_&&c.set("uvOffset",_),null!=x&&c.set("detailUvRepeat",x),null!=b&&c.set("detailUvOffset",b),c.set("roughness",f)):(p.setUniform(h,"1f","roughness",f),o!==g&&sl(t,p,"normalMap",g,0),a!==v&&v&&sl(t,p,"bumpMap",v,1),s!==m&&m&&sl(t,p,"roughnessMap",m,2),null!=y&&p.setUniform(h,"2f","uvRepeat",y),null!=_&&p.setUniform(h,"2f","uvOffset",_),null!=x&&p.setUniform(h,"2f","detailUvRepeat",x),null!=b&&p.setUniform(h,"2f","detailUvOffset",b),p.setUniform(h,"1i","useBumpMap",+w),p.setUniform(h,"1i","useRoughnessMap",+S),p.setUniform(h,"1i","doubleSide",+T)),o=g,a=v,s=m,l=r}}}function hl(t){t=t||{},this._depthTex=new fi({format:ai.DEPTH_COMPONENT,type:ai.UNSIGNED_INT}),this._normalTex=new fi({type:ai.HALF_FLOAT}),this._framebuffer=new Ir,this._framebuffer.attach(this._normalTex),this._framebuffer.attach(this._depthTex,Ir.DEPTH_ATTACHMENT),this._normalMaterial=new Ht({shader:new Ce(Ce.source("ecgl.normal.vertex"),Ce.source("ecgl.normal.fragment"))}),this._normalMaterial.enableTexture(["normalMap","bumpMap","roughnessMap"]),this._defaultNormalMap=Jr.createBlank("#000"),this._defaultBumpMap=Jr.createBlank("#000"),this._defaultRoughessMap=Jr.createBlank("#000"),this._debugPass=new lo({fragment:Ce.source("clay.compositor.output")}),this._debugPass.setUniform("texture",this._normalTex),this._debugPass.material.undefine("fragment","OUTPUT_ALPHA")}Ce.import("@export ecgl.normal.vertex\n\n@import ecgl.common.transformUniforms\n\n@import ecgl.common.uv.header\n\n@import ecgl.common.attributes\n\nvarying vec3 v_Normal;\nvarying vec3 v_WorldPosition;\n\n@import ecgl.common.normalMap.vertexHeader\n\n@import ecgl.common.vertexAnimation.header\n\nvoid main()\n{\n\n @import ecgl.common.vertexAnimation.main\n\n @import ecgl.common.uv.main\n\n v_Normal = normalize((worldInverseTranspose * vec4(normal, 0.0)).xyz);\n v_WorldPosition = (world * vec4(pos, 1.0)).xyz;\n\n @import ecgl.common.normalMap.vertexMain\n\n gl_Position = worldViewProjection * vec4(pos, 1.0);\n\n}\n\n\n@end\n\n\n@export ecgl.normal.fragment\n\n#define ROUGHNESS_CHANEL 0\n\nuniform bool useBumpMap;\nuniform bool useRoughnessMap;\nuniform bool doubleSide;\nuniform float roughness;\n\n@import ecgl.common.uv.fragmentHeader\n\nvarying vec3 v_Normal;\nvarying vec3 v_WorldPosition;\n\nuniform mat4 viewInverse : VIEWINVERSE;\n\n@import ecgl.common.normalMap.fragmentHeader\n@import ecgl.common.bumpMap.header\n\nuniform sampler2D roughnessMap;\n\nvoid main()\n{\n vec3 N = v_Normal;\n \n bool flipNormal = false;\n if (doubleSide) {\n vec3 eyePos = viewInverse[3].xyz;\n vec3 V = normalize(eyePos - v_WorldPosition);\n\n if (dot(N, V) < 0.0) {\n flipNormal = true;\n }\n }\n\n @import ecgl.common.normalMap.fragmentMain\n\n if (useBumpMap) {\n N = bumpNormal(v_WorldPosition, v_Normal, N);\n }\n\n float g = 1.0 - roughness;\n\n if (useRoughnessMap) {\n float g2 = 1.0 - texture2D(roughnessMap, v_DetailTexcoord)[ROUGHNESS_CHANEL];\n g = clamp(g2 + (g - 0.5) * 2.0, 0.0, 1.0);\n }\n\n if (flipNormal) {\n N = -N;\n }\n\n gl_FragColor.rgb = (N.xyz + 1.0) * 0.5;\n gl_FragColor.a = g;\n}\n@end"),hl.prototype.getDepthTexture=function(){return this._depthTex},hl.prototype.getNormalTexture=function(){return this._normalTex},hl.prototype.update=function(t,e,n){var i=t.getWidth(),r=t.getHeight(),o=this._depthTex,a=this._normalTex,s=this._normalMaterial;o.width=i,o.height=r,a.width=i,a.height=r;var l=e.getRenderList(n).opaque;this._framebuffer.bind(t),t.gl.clearColor(0,0,0,0),t.gl.clear(t.gl.COLOR_BUFFER_BIT|t.gl.DEPTH_BUFFER_BIT),t.gl.disable(t.gl.BLEND),t.renderPass(l,n,{getMaterial:function(){return s},ifRender:function(t){return t.renderNormal},beforeRender:ll(t,this._defaultNormalMap,this._defaultBumpMap,this._defaultRoughessMap,this._normalMaterial),sort:t.opaqueSortCompare}),this._framebuffer.unbind(t)},hl.prototype.renderDebug=function(t){this._debugPass.render(t)},hl.prototype.dispose=function(t){this._depthTex.dispose(t),this._normalTex.dispose(t)};const cl=hl;function ul(t){t=t||{},this._edgePass=new lo({fragment:Ce.source("ecgl.edge")}),this._edgePass.setUniform("normalTexture",t.normalTexture),this._edgePass.setUniform("depthTexture",t.depthTexture),this._targetTexture=new fi({type:ai.HALF_FLOAT}),this._frameBuffer=new Ir,this._frameBuffer.attach(this._targetTexture)}ul.prototype.update=function(t,e,n,i){var r=t.getWidth(),o=t.getHeight(),a=this._targetTexture;a.width=r,a.height=o;var s=this._frameBuffer;s.bind(t),this._edgePass.setUniform("projectionInv",e.invProjectionMatrix.array),this._edgePass.setUniform("textureSize",[r,o]),this._edgePass.setUniform("texture",n),this._edgePass.render(t),s.unbind(t)},ul.prototype.getTargetTexture=function(){return this._targetTexture},ul.prototype.setParameter=function(t,e){this._edgePass.setUniform(t,e)},ul.prototype.dispose=function(t){this._targetTexture.dispose(t),this._frameBuffer.dispose(t)};const dl=ul,pl={type:"compositor",nodes:[{name:"source",type:"texture",outputs:{color:{}}},{name:"source_half",shader:"#source(clay.compositor.downsample)",inputs:{texture:"source"},outputs:{color:{parameters:{width:"expr(width * 1.0 / 2)",height:"expr(height * 1.0 / 2)",type:"HALF_FLOAT"}}},parameters:{textureSize:"expr( [width * 1.0, height * 1.0] )"}},{name:"bright",shader:"#source(clay.compositor.bright)",inputs:{texture:"source_half"},outputs:{color:{parameters:{width:"expr(width * 1.0 / 2)",height:"expr(height * 1.0 / 2)",type:"HALF_FLOAT"}}},parameters:{threshold:2,scale:4,textureSize:"expr([width * 1.0 / 2, height / 2])"}},{name:"bright_downsample_4",shader:"#source(clay.compositor.downsample)",inputs:{texture:"bright"},outputs:{color:{parameters:{width:"expr(width * 1.0 / 4)",height:"expr(height * 1.0 / 4)",type:"HALF_FLOAT"}}},parameters:{textureSize:"expr( [width * 1.0 / 2, height / 2] )"}},{name:"bright_downsample_8",shader:"#source(clay.compositor.downsample)",inputs:{texture:"bright_downsample_4"},outputs:{color:{parameters:{width:"expr(width * 1.0 / 8)",height:"expr(height * 1.0 / 8)",type:"HALF_FLOAT"}}},parameters:{textureSize:"expr( [width * 1.0 / 4, height / 4] )"}},{name:"bright_downsample_16",shader:"#source(clay.compositor.downsample)",inputs:{texture:"bright_downsample_8"},outputs:{color:{parameters:{width:"expr(width * 1.0 / 16)",height:"expr(height * 1.0 / 16)",type:"HALF_FLOAT"}}},parameters:{textureSize:"expr( [width * 1.0 / 8, height / 8] )"}},{name:"bright_downsample_32",shader:"#source(clay.compositor.downsample)",inputs:{texture:"bright_downsample_16"},outputs:{color:{parameters:{width:"expr(width * 1.0 / 32)",height:"expr(height * 1.0 / 32)",type:"HALF_FLOAT"}}},parameters:{textureSize:"expr( [width * 1.0 / 16, height / 16] )"}},{name:"bright_upsample_16_blur_h",shader:"#source(clay.compositor.gaussian_blur)",inputs:{texture:"bright_downsample_32"},outputs:{color:{parameters:{width:"expr(width * 1.0 / 16)",height:"expr(height * 1.0 / 16)",type:"HALF_FLOAT"}}},parameters:{blurSize:1,blurDir:0,textureSize:"expr( [width * 1.0 / 32, height / 32] )"}},{name:"bright_upsample_16_blur_v",shader:"#source(clay.compositor.gaussian_blur)",inputs:{texture:"bright_upsample_16_blur_h"},outputs:{color:{parameters:{width:"expr(width * 1.0 / 16)",height:"expr(height * 1.0 / 16)",type:"HALF_FLOAT"}}},parameters:{blurSize:1,blurDir:1,textureSize:"expr( [width * 1.0 / 16, height * 1.0 / 16] )"}},{name:"bright_upsample_8_blur_h",shader:"#source(clay.compositor.gaussian_blur)",inputs:{texture:"bright_downsample_16"},outputs:{color:{parameters:{width:"expr(width * 1.0 / 8)",height:"expr(height * 1.0 / 8)",type:"HALF_FLOAT"}}},parameters:{blurSize:1,blurDir:0,textureSize:"expr( [width * 1.0 / 16, height * 1.0 / 16] )"}},{name:"bright_upsample_8_blur_v",shader:"#source(clay.compositor.gaussian_blur)",inputs:{texture:"bright_upsample_8_blur_h"},outputs:{color:{parameters:{width:"expr(width * 1.0 / 8)",height:"expr(height * 1.0 / 8)",type:"HALF_FLOAT"}}},parameters:{blurSize:1,blurDir:1,textureSize:"expr( [width * 1.0 / 8, height * 1.0 / 8] )"}},{name:"bright_upsample_8_blend",shader:"#source(clay.compositor.blend)",inputs:{texture1:"bright_upsample_8_blur_v",texture2:"bright_upsample_16_blur_v"},outputs:{color:{parameters:{width:"expr(width * 1.0 / 8)",height:"expr(height * 1.0 / 8)",type:"HALF_FLOAT"}}},parameters:{weight1:.3,weight2:.7}},{name:"bright_upsample_4_blur_h",shader:"#source(clay.compositor.gaussian_blur)",inputs:{texture:"bright_downsample_8"},outputs:{color:{parameters:{width:"expr(width * 1.0 / 4)",height:"expr(height * 1.0 / 4)",type:"HALF_FLOAT"}}},parameters:{blurSize:1,blurDir:0,textureSize:"expr( [width * 1.0 / 8, height * 1.0 / 8] )"}},{name:"bright_upsample_4_blur_v",shader:"#source(clay.compositor.gaussian_blur)",inputs:{texture:"bright_upsample_4_blur_h"},outputs:{color:{parameters:{width:"expr(width * 1.0 / 4)",height:"expr(height * 1.0 / 4)",type:"HALF_FLOAT"}}},parameters:{blurSize:1,blurDir:1,textureSize:"expr( [width * 1.0 / 4, height * 1.0 / 4] )"}},{name:"bright_upsample_4_blend",shader:"#source(clay.compositor.blend)",inputs:{texture1:"bright_upsample_4_blur_v",texture2:"bright_upsample_8_blend"},outputs:{color:{parameters:{width:"expr(width * 1.0 / 4)",height:"expr(height * 1.0 / 4)",type:"HALF_FLOAT"}}},parameters:{weight1:.3,weight2:.7}},{name:"bright_upsample_2_blur_h",shader:"#source(clay.compositor.gaussian_blur)",inputs:{texture:"bright_downsample_4"},outputs:{color:{parameters:{width:"expr(width * 1.0 / 2)",height:"expr(height * 1.0 / 2)",type:"HALF_FLOAT"}}},parameters:{blurSize:1,blurDir:0,textureSize:"expr( [width * 1.0 / 4, height * 1.0 / 4] )"}},{name:"bright_upsample_2_blur_v",shader:"#source(clay.compositor.gaussian_blur)",inputs:{texture:"bright_upsample_2_blur_h"},outputs:{color:{parameters:{width:"expr(width * 1.0 / 2)",height:"expr(height * 1.0 / 2)",type:"HALF_FLOAT"}}},parameters:{blurSize:1,blurDir:1,textureSize:"expr( [width * 1.0 / 2, height * 1.0 / 2] )"}},{name:"bright_upsample_2_blend",shader:"#source(clay.compositor.blend)",inputs:{texture1:"bright_upsample_2_blur_v",texture2:"bright_upsample_4_blend"},outputs:{color:{parameters:{width:"expr(width * 1.0 / 2)",height:"expr(height * 1.0 / 2)",type:"HALF_FLOAT"}}},parameters:{weight1:.3,weight2:.7}},{name:"bright_upsample_full_blur_h",shader:"#source(clay.compositor.gaussian_blur)",inputs:{texture:"bright"},outputs:{color:{parameters:{width:"expr(width * 1.0)",height:"expr(height * 1.0)",type:"HALF_FLOAT"}}},parameters:{blurSize:1,blurDir:0,textureSize:"expr( [width * 1.0 / 2, height * 1.0 / 2] )"}},{name:"bright_upsample_full_blur_v",shader:"#source(clay.compositor.gaussian_blur)",inputs:{texture:"bright_upsample_full_blur_h"},outputs:{color:{parameters:{width:"expr(width * 1.0)",height:"expr(height * 1.0)",type:"HALF_FLOAT"}}},parameters:{blurSize:1,blurDir:1,textureSize:"expr( [width * 1.0, height * 1.0] )"}},{name:"bloom_composite",shader:"#source(clay.compositor.blend)",inputs:{texture1:"bright_upsample_full_blur_v",texture2:"bright_upsample_2_blend"},outputs:{color:{parameters:{width:"expr(width * 1.0)",height:"expr(height * 1.0)",type:"HALF_FLOAT"}}},parameters:{weight1:.3,weight2:.7}},{name:"coc",shader:"#source(ecgl.dof.coc)",outputs:{color:{parameters:{minFilter:"NEAREST",magFilter:"NEAREST",width:"expr(width * 1.0)",height:"expr(height * 1.0)"}}},parameters:{focalDist:50,focalRange:30}},{name:"dof_far_blur",shader:"#source(ecgl.dof.diskBlur)",inputs:{texture:"source",coc:"coc"},outputs:{color:{parameters:{width:"expr(width * 1.0)",height:"expr(height * 1.0)",type:"HALF_FLOAT"}}},parameters:{textureSize:"expr( [width * 1.0, height * 1.0] )"}},{name:"dof_near_blur",shader:"#source(ecgl.dof.diskBlur)",inputs:{texture:"source",coc:"coc"},outputs:{color:{parameters:{width:"expr(width * 1.0)",height:"expr(height * 1.0)",type:"HALF_FLOAT"}}},parameters:{textureSize:"expr( [width * 1.0, height * 1.0] )"},defines:{BLUR_NEARFIELD:null}},{name:"dof_coc_blur",shader:"#source(ecgl.dof.diskBlur)",inputs:{texture:"coc"},outputs:{color:{parameters:{minFilter:"NEAREST",magFilter:"NEAREST",width:"expr(width * 1.0)",height:"expr(height * 1.0)"}}},parameters:{textureSize:"expr( [width * 1.0, height * 1.0] )"},defines:{BLUR_COC:null}},{name:"dof_composite",shader:"#source(ecgl.dof.composite)",inputs:{original:"source",blurred:"dof_far_blur",nearfield:"dof_near_blur",coc:"coc",nearcoc:"dof_coc_blur"},outputs:{color:{parameters:{width:"expr(width * 1.0)",height:"expr(height * 1.0)",type:"HALF_FLOAT"}}}},{name:"composite",shader:"#source(clay.compositor.hdr.composite)",inputs:{texture:"source",bloom:"bloom_composite"},outputs:{color:{parameters:{width:"expr(width * 1.0)",height:"expr(height * 1.0)"}}},defines:{}},{name:"FXAA",shader:"#source(clay.compositor.fxaa)",inputs:{texture:"composite"}}]};function fl(t,e){return{color:{parameters:{width:t,height:e}}}}Ce.import(Os),Ce.import(Ns),Ce.import(Fs),Ce.import(Bs),Ce.import(zs),Ce.import(Gs),Ce.import(Vs),Ce.import(js),Ce.import(Hs),Ce.import("@export ecgl.dof.coc\n\nuniform sampler2D depth;\n\nuniform float zNear: 0.1;\nuniform float zFar: 2000;\n\nuniform float focalDistance: 3;\nuniform float focalRange: 1;\nuniform float focalLength: 30;\nuniform float fstop: 2.8;\n\nvarying vec2 v_Texcoord;\n\n@import clay.util.encode_float\n\nvoid main()\n{\n float z = texture2D(depth, v_Texcoord).r * 2.0 - 1.0;\n\n float dist = 2.0 * zNear * zFar / (zFar + zNear - z * (zFar - zNear));\n\n float aperture = focalLength / fstop;\n\n float coc;\n\n float uppper = focalDistance + focalRange;\n float lower = focalDistance - focalRange;\n if (dist <= uppper && dist >= lower) {\n coc = 0.5;\n }\n else {\n float focalAdjusted = dist > uppper ? uppper : lower;\n\n coc = abs(aperture * (focalLength * (dist - focalAdjusted)) / (dist * (focalAdjusted - focalLength)));\n coc = clamp(coc, 0.0, 2.0) / 2.00001;\n\n if (dist < lower) {\n coc = -coc;\n }\n coc = coc * 0.5 + 0.5;\n }\n\n gl_FragColor = encodeFloat(coc);\n}\n@end\n\n\n@export ecgl.dof.composite\n\n#define DEBUG 0\n\nuniform sampler2D original;\nuniform sampler2D blurred;\nuniform sampler2D nearfield;\nuniform sampler2D coc;\nuniform sampler2D nearcoc;\nvarying vec2 v_Texcoord;\n\n@import clay.util.rgbm\n@import clay.util.float\n\nvoid main()\n{\n vec4 blurredColor = texture2D(blurred, v_Texcoord);\n vec4 originalColor = texture2D(original, v_Texcoord);\n\n float fCoc = decodeFloat(texture2D(coc, v_Texcoord));\n\n fCoc = abs(fCoc * 2.0 - 1.0);\n\n float weight = smoothstep(0.0, 1.0, fCoc);\n \n#ifdef NEARFIELD_ENABLED\n vec4 nearfieldColor = texture2D(nearfield, v_Texcoord);\n float fNearCoc = decodeFloat(texture2D(nearcoc, v_Texcoord));\n fNearCoc = abs(fNearCoc * 2.0 - 1.0);\n\n gl_FragColor = encodeHDR(\n mix(\n nearfieldColor, mix(originalColor, blurredColor, weight),\n pow(1.0 - fNearCoc, 4.0)\n )\n );\n#else\n gl_FragColor = encodeHDR(mix(originalColor, blurredColor, weight));\n#endif\n\n}\n\n@end\n\n\n\n@export ecgl.dof.diskBlur\n\n#define POISSON_KERNEL_SIZE 16;\n\nuniform sampler2D texture;\nuniform sampler2D coc;\nvarying vec2 v_Texcoord;\n\nuniform float blurRadius : 10.0;\nuniform vec2 textureSize : [512.0, 512.0];\n\nuniform vec2 poissonKernel[POISSON_KERNEL_SIZE];\n\nuniform float percent;\n\nfloat nrand(const in vec2 n) {\n return fract(sin(dot(n.xy ,vec2(12.9898,78.233))) * 43758.5453);\n}\n\n@import clay.util.rgbm\n@import clay.util.float\n\n\nvoid main()\n{\n vec2 offset = blurRadius / textureSize;\n\n float rnd = 6.28318 * nrand(v_Texcoord + 0.07 * percent );\n float cosa = cos(rnd);\n float sina = sin(rnd);\n vec4 basis = vec4(cosa, -sina, sina, cosa);\n\n#if !defined(BLUR_NEARFIELD) && !defined(BLUR_COC)\n offset *= abs(decodeFloat(texture2D(coc, v_Texcoord)) * 2.0 - 1.0);\n#endif\n\n#ifdef BLUR_COC\n float cocSum = 0.0;\n#else\n vec4 color = vec4(0.0);\n#endif\n\n\n float weightSum = 0.0;\n\n for (int i = 0; i < POISSON_KERNEL_SIZE; i++) {\n vec2 ofs = poissonKernel[i];\n\n ofs = vec2(dot(ofs, basis.xy), dot(ofs, basis.zw));\n\n vec2 uv = v_Texcoord + ofs * offset;\n vec4 texel = texture2D(texture, uv);\n\n float w = 1.0;\n#ifdef BLUR_COC\n float fCoc = decodeFloat(texel) * 2.0 - 1.0;\n cocSum += clamp(fCoc, -1.0, 0.0) * w;\n#else\n texel = texel;\n #if !defined(BLUR_NEARFIELD)\n float fCoc = decodeFloat(texture2D(coc, uv)) * 2.0 - 1.0;\n w *= abs(fCoc);\n #endif\n texel.rgb *= texel.a;\n color += texel * w;\n#endif\n\n weightSum += w;\n }\n\n#ifdef BLUR_COC\n gl_FragColor = encodeFloat(clamp(cocSum / weightSum, -1.0, 0.0) * 0.5 + 0.5);\n#else\n color /= weightSum;\n color.rgb /= (color.a + 0.0001);\n gl_FragColor = color;\n#endif\n}\n\n@end"),Ce.import("@export ecgl.edge\n\nuniform sampler2D texture;\n\nuniform sampler2D normalTexture;\nuniform sampler2D depthTexture;\n\nuniform mat4 projectionInv;\n\nuniform vec2 textureSize;\n\nuniform vec4 edgeColor: [0,0,0,0.8];\n\nvarying vec2 v_Texcoord;\n\nvec3 packColor(vec2 coord) {\n float z = texture2D(depthTexture, coord).r * 2.0 - 1.0;\n vec4 p = vec4(v_Texcoord * 2.0 - 1.0, z, 1.0);\n vec4 p4 = projectionInv * p;\n\n return vec3(\n texture2D(normalTexture, coord).rg,\n -p4.z / p4.w / 5.0\n );\n}\n\nvoid main() {\n vec2 cc = v_Texcoord;\n vec3 center = packColor(cc);\n\n float size = clamp(1.0 - (center.z - 10.0) / 100.0, 0.0, 1.0) * 0.5;\n float dx = size / textureSize.x;\n float dy = size / textureSize.y;\n\n vec2 coord;\n vec3 topLeft = packColor(cc+vec2(-dx, -dy));\n vec3 top = packColor(cc+vec2(0.0, -dy));\n vec3 topRight = packColor(cc+vec2(dx, -dy));\n vec3 left = packColor(cc+vec2(-dx, 0.0));\n vec3 right = packColor(cc+vec2(dx, 0.0));\n vec3 bottomLeft = packColor(cc+vec2(-dx, dy));\n vec3 bottom = packColor(cc+vec2(0.0, dy));\n vec3 bottomRight = packColor(cc+vec2(dx, dy));\n\n vec3 v = -topLeft-2.0*top-topRight+bottomLeft+2.0*bottom+bottomRight;\n vec3 h = -bottomLeft-2.0*left-topLeft+bottomRight+2.0*right+topRight;\n\n float edge = sqrt(dot(h, h) + dot(v, v));\n\n edge = smoothstep(0.8, 1.0, edge);\n\n gl_FragColor = mix(texture2D(texture, v_Texcoord), vec4(edgeColor.rgb, 1.0), edgeColor.a * edge);\n}\n@end");var gl=["composite","FXAA"];function ml(){this._width,this._height,this._dpr,this._sourceTexture=new fi({type:ai.HALF_FLOAT}),this._depthTexture=new fi({format:ai.DEPTH_COMPONENT,type:ai.UNSIGNED_INT}),this._framebuffer=new Ir,this._framebuffer.attach(this._sourceTexture),this._framebuffer.attach(this._depthTexture,Ir.DEPTH_ATTACHMENT),this._normalPass=new cl,this._compositor=Ks(pl);var t=this._compositor.getNodeByName("source");t.texture=this._sourceTexture;var e=this._compositor.getNodeByName("coc");this._sourceNode=t,this._cocNode=e,this._compositeNode=this._compositor.getNodeByName("composite"),this._fxaaNode=this._compositor.getNodeByName("FXAA"),this._dofBlurNodes=["dof_far_blur","dof_near_blur","dof_coc_blur"].map((function(t){return this._compositor.getNodeByName(t)}),this),this._dofBlurKernel=0,this._dofBlurKernelSize=new Float32Array(0),this._finalNodesChain=gl.map((function(t){return this._compositor.getNodeByName(t)}),this);var n={normalTexture:this._normalPass.getNormalTexture(),depthTexture:this._normalPass.getDepthTexture()};this._ssaoPass=new il(n),this._ssrPass=new ol(n),this._edgePass=new dl(n)}ml.prototype.resize=function(t,e,n){t*=n=n||1,e*=n;var i=this._sourceTexture,r=this._depthTexture;i.width=t,i.height=e,r.width=t,r.height=e;var o={getWidth:function(){return t},getHeight:function(){return e},getDevicePixelRatio:function(){return n}};function a(t,e){if("function"==typeof t[e]){var n=t[e].__original||t[e];t[e]=function(t){return n.call(this,o)},t[e].__original=n}}this._compositor.nodes.forEach((function(t){for(var e in t.outputs){var n=t.outputs[e].parameters;n&&(a(n,"width"),a(n,"height"))}for(var i in t.parameters)a(t.parameters,i)})),this._width=t,this._height=e,this._dpr=n},ml.prototype.getWidth=function(){return this._width},ml.prototype.getHeight=function(){return this._height},ml.prototype._ifRenderNormalPass=function(){return this._enableSSAO||this._enableEdge||this._enableSSR},ml.prototype._getPrevNode=function(t){for(var e=gl.indexOf(t.name)-1,n=this._finalNodesChain[e];n&&!this._compositor.getNodeByName(n.name);)e-=1,n=this._finalNodesChain[e];return n},ml.prototype._getNextNode=function(t){for(var e=gl.indexOf(t.name)+1,n=this._finalNodesChain[e];n&&!this._compositor.getNodeByName(n.name);)e+=1,n=this._finalNodesChain[e];return n},ml.prototype._addChainNode=function(t){var e=this._getPrevNode(t),n=this._getNextNode(t);e&&(t.inputs.texture=e.name,n?(t.outputs=fl(this.getWidth.bind(this),this.getHeight.bind(this)),n.inputs.texture=t.name):t.outputs=null,this._compositor.addNode(t))},ml.prototype._removeChainNode=function(t){var e=this._getPrevNode(t),n=this._getNextNode(t);e&&(n?(e.outputs=fl(this.getWidth.bind(this),this.getHeight.bind(this)),n.inputs.texture=e.name):e.outputs=null,this._compositor.removeNode(t))},ml.prototype.updateNormal=function(t,e,n,i){this._ifRenderNormalPass()&&this._normalPass.update(t,e,n)},ml.prototype.updateSSAO=function(t,e,n,i){this._ssaoPass.update(t,n,i)},ml.prototype.enableSSAO=function(){this._enableSSAO=!0},ml.prototype.disableSSAO=function(){this._enableSSAO=!1},ml.prototype.enableSSR=function(){this._enableSSR=!0},ml.prototype.disableSSR=function(){this._enableSSR=!1},ml.prototype.getSSAOTexture=function(){return this._ssaoPass.getTargetTexture()},ml.prototype.getSourceFrameBuffer=function(){return this._framebuffer},ml.prototype.getSourceTexture=function(){return this._sourceTexture},ml.prototype.disableFXAA=function(){this._removeChainNode(this._fxaaNode)},ml.prototype.enableFXAA=function(){this._addChainNode(this._fxaaNode)},ml.prototype.enableBloom=function(){this._compositeNode.inputs.bloom="bloom_composite",this._compositor.dirty()},ml.prototype.disableBloom=function(){this._compositeNode.inputs.bloom=null,this._compositor.dirty()},ml.prototype.enableDOF=function(){this._compositeNode.inputs.texture="dof_composite",this._compositor.dirty()},ml.prototype.disableDOF=function(){this._compositeNode.inputs.texture="source",this._compositor.dirty()},ml.prototype.enableColorCorrection=function(){this._compositeNode.define("COLOR_CORRECTION"),this._enableColorCorrection=!0},ml.prototype.disableColorCorrection=function(){this._compositeNode.undefine("COLOR_CORRECTION"),this._enableColorCorrection=!1},ml.prototype.enableEdge=function(){this._enableEdge=!0},ml.prototype.disableEdge=function(){this._enableEdge=!1},ml.prototype.setBloomIntensity=function(t){this._compositeNode.setParameter("bloomIntensity",t)},ml.prototype.setSSAOParameter=function(t,e){switch(t){case"quality":var n={low:6,medium:12,high:32,ultra:62}[e]||12;this._ssaoPass.setParameter("kernelSize",n);break;case"radius":this._ssaoPass.setParameter(t,e),this._ssaoPass.setParameter("bias",e/200);break;case"intensity":this._ssaoPass.setParameter(t,e)}},ml.prototype.setDOFParameter=function(t,e){switch(t){case"focalDistance":case"focalRange":case"fstop":this._cocNode.setParameter(t,e);break;case"blurRadius":for(var n=0;n<this._dofBlurNodes.length;n++)this._dofBlurNodes[n].setParameter("blurRadius",e);break;case"quality":var i={low:4,medium:8,high:16,ultra:32}[e]||8;this._dofBlurKernelSize=i;for(n=0;n<this._dofBlurNodes.length;n++)this._dofBlurNodes[n].pass.material.define("POISSON_KERNEL_SIZE",i);this._dofBlurKernel=new Float32Array(2*i)}},ml.prototype.setSSRParameter=function(t,e){if(null!=e)switch(t){case"quality":var n={low:10,medium:15,high:30,ultra:80}[e]||20,i={low:32,medium:16,high:8,ultra:4}[e]||16;this._ssrPass.setParameter("maxIteration",n),this._ssrPass.setParameter("pixelStride",i);break;case"maxRoughness":this._ssrPass.setParameter("minGlossiness",Math.max(Math.min(1-e,1),0));break;case"physical":this.setPhysicallyCorrectSSR(e);break;default:console.warn("Unkown SSR parameter "+t)}},ml.prototype.setPhysicallyCorrectSSR=function(t){this._ssrPass.setPhysicallyCorrect(t)},ml.prototype.setEdgeColor=function(t){var e=ia.parseColor(t);this._edgePass.setParameter("edgeColor",e)},ml.prototype.setExposure=function(t){this._compositeNode.setParameter("exposure",Math.pow(2,t))},ml.prototype.setColorLookupTexture=function(t,e){this._compositeNode.pass.material.setTextureImage("lut",this._enableColorCorrection?t:"none",e,{minFilter:ia.Texture.NEAREST,magFilter:ia.Texture.NEAREST,flipY:!1})},ml.prototype.setColorCorrection=function(t,e){this._compositeNode.setParameter(t,e)},ml.prototype.isSSREnabled=function(){return this._enableSSR},ml.prototype.composite=function(t,e,n,i,r){var o=this._sourceTexture,a=o;this._enableEdge&&(this._edgePass.update(t,n,o,r),o=a=this._edgePass.getTargetTexture()),this._enableSSR&&(this._ssrPass.update(t,n,o,r),a=this._ssrPass.getTargetTexture(),this._ssrPass.setSSAOTexture(this._enableSSAO?this._ssaoPass.getTargetTexture():null)),this._sourceNode.texture=a,this._cocNode.setParameter("depth",this._depthTexture);for(var s=this._dofBlurKernel,l=this._dofBlurKernelSize,h=r%Math.floor(al.length/2/l),c=0;c<2*l;c++)s[c]=al[c+h*l*2];for(c=0;c<this._dofBlurNodes.length;c++)this._dofBlurNodes[c].setParameter("percent",r/30),this._dofBlurNodes[c].setParameter("poissonKernel",s);this._cocNode.setParameter("zNear",n.near),this._cocNode.setParameter("zFar",n.far),this._compositor.render(t,i)},ml.prototype.dispose=function(t){this._sourceTexture.dispose(t),this._depthTexture.dispose(t),this._framebuffer.dispose(t),this._compositor.dispose(t),this._normalPass.dispose(t),this._ssaoPass.dispose(t)};const vl=ml;function yl(t){for(var e=[],n=0;n<30;n++)e.push([Js(n,2),Js(n,3)]);this._haltonSequence=e,this._frame=0,this._sourceTex=new fi,this._sourceFb=new Ir,this._sourceFb.attach(this._sourceTex),this._prevFrameTex=new fi,this._outputTex=new fi;var i=this._blendPass=new lo({fragment:Ce.source("clay.compositor.blend")});i.material.disableTexturesAll(),i.material.enableTexture(["texture1","texture2"]),this._blendFb=new Ir({depthBuffer:!1}),this._outputPass=new lo({fragment:Ce.source("clay.compositor.output"),blendWithPrevious:!0}),this._outputPass.material.define("fragment","OUTPUT_ALPHA"),this._outputPass.material.blend=function(t){t.blendEquationSeparate(t.FUNC_ADD,t.FUNC_ADD),t.blendFuncSeparate(t.ONE,t.ONE_MINUS_SRC_ALPHA,t.ONE,t.ONE_MINUS_SRC_ALPHA)}}yl.prototype={constructor:yl,jitterProjection:function(t,e){var n=t.viewport,i=n.devicePixelRatio||t.getDevicePixelRatio(),r=n.width*i,o=n.height*i,a=this._haltonSequence[this._frame%this._haltonSequence.length],s=new An;s.array[12]=(2*a[0]-1)/r,s.array[13]=(2*a[1]-1)/o,An.mul(e.projectionMatrix,s,e.projectionMatrix),An.invert(e.invProjectionMatrix,e.projectionMatrix)},resetFrame:function(){this._frame=0},getFrame:function(){return this._frame},getSourceFrameBuffer:function(){return this._sourceFb},getOutputTexture:function(){return this._outputTex},resize:function(t,e){this._prevFrameTex.width=t,this._prevFrameTex.height=e,this._outputTex.width=t,this._outputTex.height=e,this._sourceTex.width=t,this._sourceTex.height=e,this._prevFrameTex.dirty(),this._outputTex.dirty(),this._sourceTex.dirty()},isFinished:function(){return this._frame>=this._haltonSequence.length},render:function(t,e,n){var i=this._blendPass;0===this._frame?(i.setUniform("weight1",0),i.setUniform("weight2",1)):(i.setUniform("weight1",.9),i.setUniform("weight2",.1)),i.setUniform("texture1",this._prevFrameTex),i.setUniform("texture2",e||this._sourceTex),this._blendFb.attach(this._outputTex),this._blendFb.bind(t),i.render(t),this._blendFb.unbind(t),n||(this._outputPass.setUniform("texture",this._outputTex),this._outputPass.render(t));var r=this._prevFrameTex;this._prevFrameTex=this._outputTex,this._outputTex=r,this._frame++},dispose:function(t){this._sourceFb.dispose(t),this._blendFb.dispose(t),this._prevFrameTex.dispose(t),this._outputTex.dispose(t),this._sourceTex.dispose(t),this._outputPass.dispose(t),this._blendPass.dispose(t)}};const _l=yl;function xl(t){t=t||"perspective",this.layer=null,this.scene=new lr,this.rootNode=this.scene,this.viewport={x:0,y:0,width:0,height:0},this.setProjection(t),this._compositor=new vl,this._temporalSS=new _l,this._shadowMapPass=new Cs;for(var e=[],n=0,i=0;i<30;i++){for(var r=[],o=0;o<6;o++)r.push(4*Js(n,2)-2),r.push(4*Js(n,3)-2),n++;e.push(r)}this._pcfKernels=e,this.scene.on("beforerender",(function(t,e,n){this.needsTemporalSS()&&this._temporalSS.jitterProjection(t,n)}),this)}xl.prototype.setProjection=function(t){var e=this.camera;e&&e.update(),"perspective"===t?this.camera instanceof mr||(this.camera=new mr,e&&this.camera.setLocalTransform(e.localTransform)):this.camera instanceof ro||(this.camera=new ro,e&&this.camera.setLocalTransform(e.localTransform)),this.camera.near=.1,this.camera.far=2e3},xl.prototype.setViewport=function(t,e,n,i,r){this.camera instanceof mr&&(this.camera.aspect=n/i),r=r||1,this.viewport.x=t,this.viewport.y=e,this.viewport.width=n,this.viewport.height=i,this.viewport.devicePixelRatio=r,this._compositor.resize(n*r,i*r),this._temporalSS.resize(n*r,i*r)},xl.prototype.containPoint=function(t,e){var n=this.viewport;return e=this.layer.renderer.getHeight()-e,t>=n.x&&e>=n.y&&t<=n.x+n.width&&e<=n.y+n.height};var bl=new Jt;xl.prototype.castRay=function(t,e,n){var i=this.layer.renderer,r=i.viewport;return i.viewport=this.viewport,i.screenToNDC(t,e,bl),this.camera.castRay(bl,n),i.viewport=r,n},xl.prototype.prepareRender=function(){this.scene.update(),this.camera.update(),this.scene.updateLights();var t=this.scene.updateRenderList(this.camera);this._needsSortProgressively=!1;for(var e=0;e<t.transparent.length;e++){var n=t.transparent[e].geometry;n.needsSortVerticesProgressively&&n.needsSortVerticesProgressively()&&(this._needsSortProgressively=!0),n.needsSortTrianglesProgressively&&n.needsSortTrianglesProgressively()&&(this._needsSortProgressively=!0)}this._frame=0,this._temporalSS.resetFrame()},xl.prototype.render=function(t,e){this._doRender(t,e,this._frame),this._frame++},xl.prototype.needsAccumulate=function(){return this.needsTemporalSS()||this._needsSortProgressively},xl.prototype.needsTemporalSS=function(){var t=this._enableTemporalSS;return"auto"===t&&(t=this._enablePostEffect),t},xl.prototype.hasDOF=function(){return this._enableDOF},xl.prototype.isAccumulateFinished=function(){return this.needsTemporalSS()?this._temporalSS.isFinished():this._frame>30},xl.prototype._doRender=function(t,e,n){var i=this.scene,r=this.camera;n=n||0,this._updateTransparent(t,i,r,n),e||(this._shadowMapPass.kernelPCF=this._pcfKernels[0],this._shadowMapPass.render(t,i,r,!0)),this._updateShadowPCFKernel(n);var o,a=t.clearColor;(t.gl.clearColor(a[0],a[1],a[2],a[3]),this._enablePostEffect&&(this.needsTemporalSS()&&this._temporalSS.jitterProjection(t,r),this._compositor.updateNormal(t,i,r,this._temporalSS.getFrame())),this._updateSSAO(t,i,r,this._temporalSS.getFrame()),this._enablePostEffect)?((o=this._compositor.getSourceFrameBuffer()).bind(t),t.gl.clear(t.gl.DEPTH_BUFFER_BIT|t.gl.COLOR_BUFFER_BIT),t.render(i,r,!0,!0),o.unbind(t),this.needsTemporalSS()&&e?(this._compositor.composite(t,i,r,this._temporalSS.getSourceFrameBuffer(),this._temporalSS.getFrame()),t.setViewport(this.viewport),this._temporalSS.render(t)):(t.setViewport(this.viewport),this._compositor.composite(t,i,r,null,0))):this.needsTemporalSS()&&e?((o=this._temporalSS.getSourceFrameBuffer()).bind(t),t.saveClear(),t.clearBit=t.gl.DEPTH_BUFFER_BIT|t.gl.COLOR_BUFFER_BIT,t.render(i,r,!0,!0),t.restoreClear(),o.unbind(t),t.setViewport(this.viewport),this._temporalSS.render(t)):(t.setViewport(this.viewport),t.render(i,r,!0,!0))},xl.prototype._updateTransparent=function(t,e,n,i){for(var r=new Qe,o=new An,a=n.getWorldPosition(),s=e.getRenderList(n).transparent,l=0;l<s.length;l++){var h=s[l],c=h.geometry;An.invert(o,h.worldTransform),Qe.transformMat4(r,a,o),c.needsSortTriangles&&c.needsSortTriangles()&&c.doSortTriangles(r,i),c.needsSortVertices&&c.needsSortVertices()&&c.doSortVertices(r,i)}},xl.prototype._updateSSAO=function(t,e,n){var i=this._enableSSAO&&this._enablePostEffect;i&&this._compositor.updateSSAO(t,e,n,this._temporalSS.getFrame());for(var r=e.getRenderList(n),o=0;o<r.opaque.length;o++){var a=r.opaque[o];a.renderNormal&&a.material[i?"enableTexture":"disableTexture"]("ssaoMap"),i&&a.material.set("ssaoMap",this._compositor.getSSAOTexture())}},xl.prototype._updateShadowPCFKernel=function(t){for(var e=this._pcfKernels[t%this._pcfKernels.length],n=this.scene.getRenderList(this.camera).opaque,i=0;i<n.length;i++)n[i].receiveShadow&&(n[i].material.set("pcfKernel",e),n[i].material.define("fragment","PCF_KERNEL_SIZE",e.length/2))},xl.prototype.dispose=function(t){this._compositor.dispose(t.gl),this._temporalSS.dispose(t.gl),this._shadowMapPass.dispose(t)},xl.prototype.setPostEffect=function(t,e){var n=this._compositor;this._enablePostEffect=t.get("enable");var i=t.getModel("bloom"),r=t.getModel("edge"),o=t.getModel("DOF",t.getModel("depthOfField")),a=t.getModel("SSAO",t.getModel("screenSpaceAmbientOcclusion")),s=t.getModel("SSR",t.getModel("screenSpaceReflection")),l=t.getModel("FXAA"),h=t.getModel("colorCorrection");i.get("enable")?n.enableBloom():n.disableBloom(),o.get("enable")?n.enableDOF():n.disableDOF(),s.get("enable")?n.enableSSR():n.disableSSR(),h.get("enable")?n.enableColorCorrection():n.disableColorCorrection(),r.get("enable")?n.enableEdge():n.disableEdge(),l.get("enable")?n.enableFXAA():n.disableFXAA(),this._enableDOF=o.get("enable"),this._enableSSAO=a.get("enable"),this._enableSSAO?n.enableSSAO():n.disableSSAO(),n.setBloomIntensity(i.get("intensity")),n.setEdgeColor(r.get("color")),n.setColorLookupTexture(h.get("lookupTexture"),e),n.setExposure(h.get("exposure")),["radius","quality","intensity"].forEach((function(t){n.setSSAOParameter(t,a.get(t))})),["quality","maxRoughness","physical"].forEach((function(t){n.setSSRParameter(t,s.get(t))})),["quality","focalDistance","focalRange","blurRadius","fstop"].forEach((function(t){n.setDOFParameter(t,o.get(t))})),["brightness","contrast","saturation"].forEach((function(t){n.setColorCorrection(t,h.get(t))}))},xl.prototype.setDOFFocusOnPoint=function(t){if(this._enablePostEffect){if(t>this.camera.far||t<this.camera.near)return;return this._compositor.setDOFParameter("focalDistance",t),!0}},xl.prototype.setTemporalSuperSampling=function(t){this._enableTemporalSS=t.get("enable")},xl.prototype.isLinearSpace=function(){return this._enablePostEffect},xl.prototype.setRootNode=function(t){if(this.rootNode!==t){for(var e=this.rootNode.children(),n=0;n<e.length;n++)t.add(e[n]);t!==this.scene&&this.scene.add(t),this.rootNode=t}},xl.prototype.add=function(t){this.rootNode.add(t)},xl.prototype.remove=function(t){this.rootNode.remove(t)},xl.prototype.removeAll=function(t){this.rootNode.removeAll(t)},Object.assign(xl.prototype,d);const wl=xl;function Sl(t,e){var n=t.getBoxLayoutParams(),i=(0,cs.dV)(n,{width:e.getWidth(),height:e.getHeight()});i.y=e.getHeight()-i.y-i.height,this.viewGL.setViewport(i.x,i.y,i.width,i.height,e.getDevicePixelRatio());var r=t.get("boxWidth"),o=t.get("boxHeight"),a=t.get("boxDepth");this.getAxis("x").setExtent(-r/2,r/2),this.getAxis("y").setExtent(a/2,-a/2),this.getAxis("z").setExtent(-o/2,o/2),this.size=[r,o,a]}function Tl(t,e){var n={};t.eachSeries((function(t){if(t.coordinateSystem===this){var e=t.getData();["x","y","z"].forEach((function(t){e.mapDimensionsAll(t,!0).forEach((function(i){var r,o;r=t,o=e.getDataExtent(i,!0),n[r]=n[r]||[1/0,-1/0],n[r][0]=Math.min(o[0],n[r][0]),n[r][1]=Math.max(o[1],n[r][1])}))}))}}),this),["xAxis3D","yAxis3D","zAxis3D"].forEach((function(e){t.eachComponent(e,(function(t){var r=e.charAt(0),o=t.getReferringComponents("grid3D").models[0],a=o.coordinateSystem;if(a===this){var s=a.getAxis(r);if(!s){var l=i.dw.createScale(n[r]||[1/0,-1/0],t);(s=new hs(r,l)).type=t.get("type");var h="category"===s.type;s.onBand=h&&t.get("boundaryGap"),s.inverse=t.get("inverse"),t.axis=s,s.model=t,s.getLabelModel=function(){return t.getModel("axisLabel",o.getModel("axisLabel"))},s.getTickModel=function(){return t.getModel("axisTick",o.getModel("axisTick"))},a.addAxis(s)}}}),this)}),this),this.resize(this.model,e)}const Ml={dimensions:ss.prototype.dimensions,create:function(t,e){var n=[];t.eachComponent("grid3D",(function(t){t.__viewGL=t.__viewGL||new wl;var e=new ss;e.model=t,e.viewGL=t.__viewGL,t.coordinateSystem=e,n.push(e),e.resize=Sl,e.update=Tl}));var i=["xAxis3D","yAxis3D","zAxis3D"];return t.eachSeries((function(e){if("cartesian3D"===e.get("coordinateSystem")){if(null==(r=e.getReferringComponents("grid3D").models[0])){var n=function(t,e){return i.map((function(n){var i=t.getReferringComponents(n).models[0];return null==i&&(i=e.getComponent(n)),i}))}(e,t),r=n[0].getCoordSysModel();n.forEach((function(t){t.getCoordSysModel()}))}var o=r.coordinateSystem;e.coordinateSystem=o}})),n}};var Al=i.jT.extend({type:"cartesian3DAxis",axis:null,getCoordSysModel:function(){return this.ecModel.queryComponents({mainType:"grid3D",index:this.option.gridIndex,id:this.option.gridId})[0]}});i.dw.mixinAxisModelCommonMethods(Al);const Cl=Al;var Il={show:!0,grid3DIndex:0,inverse:!1,name:"",nameLocation:"middle",nameTextStyle:{fontSize:16},nameGap:20,axisPointer:{},axisLine:{},axisTick:{},axisLabel:{},splitArea:{}},El=i.ZS.merge({boundaryGap:!0,axisTick:{alignWithLabel:!1,interval:"auto"},axisLabel:{interval:"auto"},axisPointer:{label:{show:!1}}},Il),kl=i.ZS.merge({boundaryGap:[0,0],splitNumber:5,axisPointer:{label:{}}},Il),Ll=i.ZS.defaults({scale:!0,min:"dataMin",max:"dataMax"},kl),Dl=i.ZS.defaults({logBase:10},kl);Dl.scale=!0;const Pl={categoryAxis3D:El,valueAxis3D:kl,timeAxis3D:Ll,logAxis3D:Dl};var Rl=n(5900),Ol=["value","category","time","log"];function Nl(t,e){return e.type||(e.data?"category":"value")}(0,i.Yx)((function(t){t.registerComponentModel(ba),t.registerComponentView(rs),t.registerCoordinateSystem("grid3D",Ml),["x","y","z"].forEach((function(e){!function(t,e,n,r,o){Ol.forEach((function(a){var s=n.extend({type:e+"Axis3D."+a,__ordinalMeta:null,mergeDefaultAndTheme:function(t,n){var o=n.getTheme();i.ZS.merge(t,o.get(a+"Axis3D")),i.ZS.merge(t,this.getDefaultOption()),t.type=r(e,t)},optionUpdated:function(){"category"===this.option.type&&(this.__ordinalMeta=Rl.A.createByAxisModel(this))},getCategories:function(){if("category"===this.option.type)return this.__ordinalMeta.categories},getOrdinalMeta:function(){return this.__ordinalMeta},defaultOption:i.ZS.merge(i.ZS.clone(Pl[a+"Axis3D"]),o||{},!0)});t.registerComponentModel(s)})),t.registerSubTypeDefaulter(e+"Axis3D",i.ZS.curry(r,e))}(t,e,Cl,Nl,{name:e.toUpperCase()});const n=t.ComponentView.extend({type:e+"Axis3D"});t.registerComponentView(n)})),t.registerAction({type:"grid3DChangeCamera",event:"grid3dcamerachanged",update:"series:updateCamera"},(function(t,e){e.eachComponent({mainType:"grid3D",query:t},(function(e){e.setView(t)}))})),t.registerAction({type:"grid3DShowAxisPointer",event:"grid3dshowaxispointer",update:"grid3D:showAxisPointer"},(function(t,e){})),t.registerAction({type:"grid3DHideAxisPointer",event:"grid3dhideaxispointer",update:"grid3D:hideAxisPointer"},(function(t,e){}))}));const Fl={defaultOption:{shading:null,realisticMaterial:{textureTiling:1,textureOffset:0,detailTexture:null},lambertMaterial:{textureTiling:1,textureOffset:0,detailTexture:null},colorMaterial:{textureTiling:1,textureOffset:0,detailTexture:null},hatchingMaterial:{textureTiling:1,textureOffset:0,paperColor:"#fff"}}},Bl={getFilledRegions:function(t,e){var n,r=(t||[]).slice();if("string"==typeof e?n=(e=i.ZB(e))&&e.geoJson:e&&e.features&&(n=e),!n)return[];for(var o={},a=n.features,s=0;s<r.length;s++)o[r[s].name]=r[s];for(s=0;s<a.length;s++){var l=a[s].properties.name;o[l]||r.push({name:l})}return r},defaultOption:{show:!0,zlevel:-10,map:"",left:0,top:0,width:"100%",height:"100%",boxWidth:100,boxHeight:10,boxDepth:"auto",regionHeight:3,environment:"auto",groundPlane:{show:!1,color:"#aaa"},shading:"lambert",light:{main:{alpha:40,beta:30}},viewControl:{alpha:40,beta:0,distance:100,orthographicSize:60,minAlpha:5,minBeta:-80,maxBeta:80},label:{show:!1,distance:2,textStyle:{fontSize:20,color:"#000",backgroundColor:"rgba(255,255,255,0.7)",padding:3,borderRadius:4}},itemStyle:{color:"#fff",borderWidth:0,borderColor:"#333"},emphasis:{itemStyle:{color:"#639fc0"},label:{show:!0}}}};var zl=i.jT.extend({type:"geo3D",layoutMode:"box",coordinateSystem:null,optionUpdated:function(){var t=this.option;t.regions=this.getFilledRegions(t.regions,t.map);var e=i.dw.createDimensions(t.data||[],{coordDimensions:["value"],encodeDefine:this.get("encode"),dimensionsDefine:this.get("dimensions")}),n=new i.B8(e,this);n.initData(t.regions);var r={};n.each((function(t){var e=n.getName(t),i=n.getItemModel(t);r[e]=i})),this._regionModelMap=r,this._data=n},getData:function(){return this._data},getRegionModel:function(t){var e=this.getData().getName(t);return this._regionModelMap[e]||new i.Kx(null,this)},getRegionPolygonCoords:function(t){var e=this.getData().getName(t),n=this.coordinateSystem.getRegion(e);return n?n.geometries:[]},getFormattedLabel:function(t,e){var n=this._data.getName(t),i=this.getRegionModel(t),r=i.get("normal"===e?["label","formatter"]:["emphasis","label","formatter"]);null==r&&(r=i.get(["label","formatter"]));var o={name:n};if("function"==typeof r)return o.status=e,r(o);if("string"==typeof r){var a=o.seriesName;return r.replace("{a}",null!=a?a:"")}return n},defaultOption:{regions:[]}});i.ZS.merge(zl.prototype,Bl),i.ZS.merge(zl.prototype,va),i.ZS.merge(zl.prototype,ya),i.ZS.merge(zl.prototype,_a),i.ZS.merge(zl.prototype,Fl);const Gl=zl,Vl=jl;function jl(t,e,n){n=n||2;var i,r,o,a,s,l,h,c=e&&e.length,u=c?e[0]*n:t.length,d=Hl(t,0,u,n,!0),p=[];if(!d)return p;if(c&&(d=function(t,e,n,i){var r,o,a,s=[];for(r=0,o=e.length;r<o;r++)(a=Hl(t,e[r]*i,r<o-1?e[r+1]*i:t.length,i,!1))===a.next&&(a.steiner=!0),s.push(Ql(a));for(s.sort($l),r=0;r<s.length;r++)Kl(s[r],n),n=Wl(n,n.next);return n}(t,e,d,n)),t.length>80*n){i=o=t[0],r=a=t[1];for(var f=n;f<u;f+=n)(s=t[f])<i&&(i=s),(l=t[f+1])<r&&(r=l),s>o&&(o=s),l>a&&(a=l);h=Math.max(o-i,a-r)}return Ul(d,p,n,i,r,h),p}function Hl(t,e,n,i,r){var o,a;if(r===ch(t,e,n,i)>0)for(o=e;o<n;o+=i)a=sh(o,t[o],t[o+1],a);else for(o=n-i;o>=e;o-=i)a=sh(o,t[o],t[o+1],a);return a&&ih(a,a.next)&&(lh(a),a=a.next),a}function Wl(t,e){if(!t)return t;e||(e=t);var n,i=t;do{if(n=!1,i.steiner||!ih(i,i.next)&&0!==nh(i.prev,i,i.next))i=i.next;else{if(lh(i),(i=e=i.prev)===i.next)return null;n=!0}}while(n||i!==e);return e}function Ul(t,e,n,i,r,o,a){if(t){!a&&o&&function(t,e,n,i){var r=t;do{null===r.z&&(r.z=Jl(r.x,r.y,e,n,i)),r.prevZ=r.prev,r.nextZ=r.next,r=r.next}while(r!==t);r.prevZ.nextZ=null,r.prevZ=null,function(t){var e,n,i,r,o,a,s,l,h=1;do{for(n=t,t=null,o=null,a=0;n;){for(a++,i=n,s=0,e=0;e<h&&(s++,i=i.nextZ);e++);for(l=h;s>0||l>0&&i;)0!==s&&(0===l||!i||n.z<=i.z)?(r=n,n=n.nextZ,s--):(r=i,i=i.nextZ,l--),o?o.nextZ=r:t=r,r.prevZ=o,o=r;n=i}o.nextZ=null,h*=2}while(a>1)}(r)}(t,i,r,o);for(var s,l,h=t;t.prev!==t.next;)if(s=t.prev,l=t.next,o?Xl(t,i,r,o):ql(t))e.push(s.i/n),e.push(t.i/n),e.push(l.i/n),lh(t),t=l.next,h=l.next;else if((t=l)===h){a?1===a?Ul(t=Yl(t,e,n),e,n,i,r,o,2):2===a&&Zl(t,e,n,i,r,o):Ul(Wl(t),e,n,i,r,o,1);break}}}function ql(t){var e=t.prev,n=t,i=t.next;if(nh(e,n,i)>=0)return!1;for(var r=t.next.next;r!==t.prev;){if(th(e.x,e.y,n.x,n.y,i.x,i.y,r.x,r.y)&&nh(r.prev,r,r.next)>=0)return!1;r=r.next}return!0}function Xl(t,e,n,i){var r=t.prev,o=t,a=t.next;if(nh(r,o,a)>=0)return!1;for(var s=r.x<o.x?r.x<a.x?r.x:a.x:o.x<a.x?o.x:a.x,l=r.y<o.y?r.y<a.y?r.y:a.y:o.y<a.y?o.y:a.y,h=r.x>o.x?r.x>a.x?r.x:a.x:o.x>a.x?o.x:a.x,c=r.y>o.y?r.y>a.y?r.y:a.y:o.y>a.y?o.y:a.y,u=Jl(s,l,e,n,i),d=Jl(h,c,e,n,i),p=t.nextZ;p&&p.z<=d;){if(p!==t.prev&&p!==t.next&&th(r.x,r.y,o.x,o.y,a.x,a.y,p.x,p.y)&&nh(p.prev,p,p.next)>=0)return!1;p=p.nextZ}for(p=t.prevZ;p&&p.z>=u;){if(p!==t.prev&&p!==t.next&&th(r.x,r.y,o.x,o.y,a.x,a.y,p.x,p.y)&&nh(p.prev,p,p.next)>=0)return!1;p=p.prevZ}return!0}function Yl(t,e,n){var i=t;do{var r=i.prev,o=i.next.next;!ih(r,o)&&rh(r,i,i.next,o)&&oh(r,o)&&oh(o,r)&&(e.push(r.i/n),e.push(i.i/n),e.push(o.i/n),lh(i),lh(i.next),i=t=o),i=i.next}while(i!==t);return i}function Zl(t,e,n,i,r,o){var a=t;do{for(var s=a.next.next;s!==a.prev;){if(a.i!==s.i&&eh(a,s)){var l=ah(a,s);return a=Wl(a,a.next),l=Wl(l,l.next),Ul(a,e,n,i,r,o),void Ul(l,e,n,i,r,o)}s=s.next}a=a.next}while(a!==t)}function $l(t,e){return t.x-e.x}function Kl(t,e){if(e=function(t,e){var n,i=e,r=t.x,o=t.y,a=-1/0;do{if(o<=i.y&&o>=i.next.y&&i.next.y!==i.y){var s=i.x+(o-i.y)*(i.next.x-i.x)/(i.next.y-i.y);if(s<=r&&s>a){if(a=s,s===r){if(o===i.y)return i;if(o===i.next.y)return i.next}n=i.x<i.next.x?i:i.next}}i=i.next}while(i!==e);if(!n)return null;if(r===a)return n.prev;var l,h=n,c=n.x,u=n.y,d=1/0;i=n.next;for(;i!==h;)r>=i.x&&i.x>=c&&r!==i.x&&th(o<u?r:a,o,c,u,o<u?a:r,o,i.x,i.y)&&((l=Math.abs(o-i.y)/(r-i.x))<d||l===d&&i.x>n.x)&&oh(i,t)&&(n=i,d=l),i=i.next;return n}(t,e),e){var n=ah(e,t);Wl(n,n.next)}}function Jl(t,e,n,i,r){return(t=1431655765&((t=858993459&((t=252645135&((t=16711935&((t=32767*(t-n)/r)|t<<8))|t<<4))|t<<2))|t<<1))|(e=1431655765&((e=858993459&((e=252645135&((e=16711935&((e=32767*(e-i)/r)|e<<8))|e<<4))|e<<2))|e<<1))<<1}function Ql(t){var e=t,n=t;do{e.x<n.x&&(n=e),e=e.next}while(e!==t);return n}function th(t,e,n,i,r,o,a,s){return(r-a)*(e-s)-(t-a)*(o-s)>=0&&(t-a)*(i-s)-(n-a)*(e-s)>=0&&(n-a)*(o-s)-(r-a)*(i-s)>=0}function eh(t,e){return t.next.i!==e.i&&t.prev.i!==e.i&&!function(t,e){var n=t;do{if(n.i!==t.i&&n.next.i!==t.i&&n.i!==e.i&&n.next.i!==e.i&&rh(n,n.next,t,e))return!0;n=n.next}while(n!==t);return!1}(t,e)&&oh(t,e)&&oh(e,t)&&function(t,e){var n=t,i=!1,r=(t.x+e.x)/2,o=(t.y+e.y)/2;do{n.y>o!=n.next.y>o&&n.next.y!==n.y&&r<(n.next.x-n.x)*(o-n.y)/(n.next.y-n.y)+n.x&&(i=!i),n=n.next}while(n!==t);return i}(t,e)}function nh(t,e,n){return(e.y-t.y)*(n.x-e.x)-(e.x-t.x)*(n.y-e.y)}function ih(t,e){return t.x===e.x&&t.y===e.y}function rh(t,e,n,i){return!!(ih(t,e)&&ih(n,i)||ih(t,i)&&ih(n,e))||nh(t,e,n)>0!=nh(t,e,i)>0&&nh(n,i,t)>0!=nh(n,i,e)>0}function oh(t,e){return nh(t.prev,t,t.next)<0?nh(t,e,t.next)>=0&&nh(t,t.prev,e)>=0:nh(t,e,t.prev)<0||nh(t,t.next,e)<0}function ah(t,e){var n=new hh(t.i,t.x,t.y),i=new hh(e.i,e.x,e.y),r=t.next,o=e.prev;return t.next=e,e.prev=t,n.next=r,r.prev=n,i.next=n,n.prev=i,o.next=i,i.prev=o,i}function sh(t,e,n,i){var r=new hh(t,e,n);return i?(r.next=i.next,r.prev=i,i.next.prev=r,i.next=r):(r.prev=r,r.next=r),r}function lh(t){t.next.prev=t.prev,t.prev.next=t.next,t.prevZ&&(t.prevZ.nextZ=t.nextZ),t.nextZ&&(t.nextZ.prevZ=t.prevZ)}function hh(t,e,n){this.i=t,this.x=e,this.y=n,this.prev=null,this.next=null,this.z=null,this.prevZ=null,this.nextZ=null,this.steiner=!1}function ch(t,e,n,i){for(var r=0,o=e,a=n-i;o<n;o+=i)r+=(t[a]-t[o])*(t[o+1]+t[a+1]),a=o;return r}function uh(t,e,n){var i=t[e];t[e]=t[n],t[n]=i}function dh(t,e,n,i,r){var o=n,a=t[e];uh(t,e,i);for(var s=n;s<i;s++)r(t[s],a)<0&&(uh(t,s,o),o++);return uh(t,i,o),o}function ph(t,e,n,i){if(n<i){var r=dh(t,Math.floor((n+i)/2),n,i,e);ph(t,e,n,r-1),ph(t,e,r+1,i)}}function fh(){this._parts=[]}jl.deviation=function(t,e,n,i){var r=e&&e.length,o=r?e[0]*n:t.length,a=Math.abs(ch(t,0,o,n));if(r)for(var s=0,l=e.length;s<l;s++){var h=e[s]*n,c=s<l-1?e[s+1]*n:t.length;a-=Math.abs(ch(t,h,c,n))}var u=0;for(s=0;s<i.length;s+=3){var d=i[s]*n,p=i[s+1]*n,f=i[s+2]*n;u+=Math.abs((t[d]-t[f])*(t[p+1]-t[d+1])-(t[d]-t[p])*(t[f+1]-t[d+1]))}return 0===a&&0===u?0:Math.abs((u-a)/a)},fh.prototype.step=function(t,e,n){var i=t.length;if(0===n){this._parts=[],this._sorted=!1;var r=Math.floor(i/2);this._parts.push({pivot:r,left:0,right:i-1}),this._currentSortPartIdx=0}if(!this._sorted){var o=this._parts;if(0===o.length)return this._sorted=!0,!0;if(o.length<512){for(var a=0;a<o.length;a++)o[a].pivot=dh(t,o[a].pivot,o[a].left,o[a].right,e);var s=[];for(a=0;a<o.length;a++){var l=o[a].left;(h=o[a].pivot-1)>l&&s.push({pivot:Math.floor((h+l)/2),left:l,right:h});var h;l=o[a].pivot+1;(h=o[a].right)>l&&s.push({pivot:Math.floor((h+l)/2),left:l,right:h})}o=this._parts=s}else for(a=0;a<Math.floor(o.length/10);a++){var c=o.length-1-this._currentSortPartIdx;if(ph(t,e,o[c].left,o[c].right),this._currentSortPartIdx++,this._currentSortPartIdx===o.length)return this._sorted=!0,!0}return!1}},fh.sort=ph;const gh=fh;var mh=Ea.vec3,vh=mh.create(),yh=mh.create(),_h=mh.create();const xh={needsSortTriangles:function(){return this.indices&&this.sortTriangles},needsSortTrianglesProgressively:function(){return this.needsSortTriangles()&&this.triangleCount>=2e4},doSortTriangles:function(t,e){var n=this.indices;if(0===e){var i=this.attributes.position;t=t.array;this._triangleZList&&this._triangleZList.length===this.triangleCount||(this._triangleZList=new Float32Array(this.triangleCount),this._sortedTriangleIndices=new Uint32Array(this.triangleCount),this._indicesTmp=new n.constructor(n.length),this._triangleZListTmp=new Float32Array(this.triangleCount));for(var r,o=0,a=0;a<n.length;){i.get(n[a++],vh),i.get(n[a++],yh),i.get(n[a++],_h);var s=mh.sqrDist(vh,t),l=mh.sqrDist(yh,t),h=mh.sqrDist(_h,t),c=Math.min(s,l);c=Math.min(c,h),3===a?(r=c,c=0):c-=r,this._triangleZList[o++]=c}}var u=this._sortedTriangleIndices;for(a=0;a<u.length;a++)u[a]=a;if(this.triangleCount<2e4)0===e&&this._simpleSort(!0);else for(a=0;a<3;a++)this._progressiveQuickSort(3*e+a);var d=this._indicesTmp,p=this._triangleZListTmp,f=this._triangleZList;for(a=0;a<this.triangleCount;a++){var g=3*u[a],m=3*a;d[m++]=n[g++],d[m++]=n[g++],d[m]=n[g],p[a]=f[u[a]]}var v=this._indicesTmp;this._indicesTmp=this.indices,this.indices=v;v=this._triangleZListTmp;this._triangleZListTmp=this._triangleZList,this._triangleZList=v,this.dirtyIndices()},_simpleSort:function(t){var e=this._triangleZList,n=this._sortedTriangleIndices;function i(t,n){return e[n]-e[t]}t?Array.prototype.sort.call(n,i):gh.sort(n,i,0,n.length-1)},_progressiveQuickSort:function(t){var e=this._triangleZList,n=this._sortedTriangleIndices;this._quickSort=this._quickSort||new gh,this._quickSort.step(n,(function(t,n){return e[n]-e[t]}),t)}};function bh(t,e){const n=t.getItemVisual(e,"style");if(n){return n[t.getVisual("drawType")]}}function wh(t,e){const n=t.getItemVisual(e,"style");return n&&n.opacity}function Sh(t,e,n){this._labelsMesh=new Za,this._labelTextureSurface=new Na({width:512,height:512,devicePixelRatio:n.getDevicePixelRatio(),onupdate:function(){n.getZr().refresh()}}),this._api=n,this._labelsMesh.material.set("textureAtlas",this._labelTextureSurface.getTexture())}Sh.prototype.getLabelPosition=function(t,e,n){return[0,0,0]},Sh.prototype.getLabelDistance=function(t,e,n){return 0},Sh.prototype.getMesh=function(){return this._labelsMesh},Sh.prototype.updateData=function(t,e,n){null==e&&(e=0),null==n&&(n=t.count()),this._labelsVisibilitiesBits&&this._labelsVisibilitiesBits.length===n-e||(this._labelsVisibilitiesBits=new Uint8Array(n-e));for(var i=["label","show"],r=["emphasis","label","show"],o=e;o<n;o++){var a=t.getItemModel(o),s=a.get(i),l=a.get(r);null==l&&(l=s);var h=(s?1:0)|(l?2:0);this._labelsVisibilitiesBits[o-e]=h}this._start=e,this._end=n,this._data=t},Sh.prototype.updateLabels=function(t){if(this._data){for(var e=(t=t||[]).length>0,n={},r=0;r<t.length;r++)n[t[r]]=!0;this._labelsMesh.geometry.convertToDynamicArray(!0),this._labelTextureSurface.clear();for(var o=["label"],a=["emphasis","label"],s=this._data.hostModel,l=this._data,h=s.getModel(o),c=s.getModel(a,h),u={left:"right",right:"left",top:"center",bottom:"center"},d={left:"middle",right:"middle",top:"bottom",bottom:"top"},p=this._start;p<this._end;p++){var f=!1;if(e&&n[p]&&(f=!0),this._labelsVisibilitiesBits[p-this._start]&(f?2:1)){var g=l.getItemModel(p).getModel(f?a:o,f?c:h),m=g.get("distance")||0,v=g.get("position"),y=this._api.getDevicePixelRatio(),_=s.getFormattedLabel(p,f?"emphasis":"normal");if(null==_||""===_)return;var x=new i.fA.Text({style:(0,wa.VB)(g,{text:_,fill:g.get("color")||bh(l,p)||"#000",align:"left",verticalAlign:"top",opacity:wo.firstNotNull(g.get("opacity"),wh(l,p),1)})}),b=x.getBoundingRect();b.height*=1.2;var w=this._labelTextureSurface.add(x),S=u[v]||"center",T=d[v]||"bottom";this._labelsMesh.geometry.addSprite(this.getLabelPosition(p,v,m),[b.width*y,b.height*y],w,S,T,this.getLabelDistance(p,v,m)*y)}}this._labelsMesh.material.set("uvScale",this._labelTextureSurface.getCoordsScale()),this._labelTextureSurface.getZr().refreshImmediately(),this._labelsMesh.geometry.convertToTypedArray(),this._labelsMesh.geometry.dirty()}},Sh.prototype.dispose=function(){this._labelTextureSurface.dispose()};const Th=Sh;var Mh=Ea.vec3;function Ah(t){this.rootNode=new ia.Node,this._triangulationResults={},this._shadersMap=ia.COMMON_SHADERS.filter((function(t){return"shadow"!==t})).reduce((function(t,e){return t[e]=ia.createShader("ecgl."+e),t}),{}),this._linesShader=ia.createShader("ecgl.meshLines3D");var e={};ia.COMMON_SHADERS.forEach((function(t){e[t]=new ia.Material({shader:ia.createShader("ecgl."+t)})})),this._groundMaterials=e,this._groundMesh=new ia.Mesh({geometry:new ia.PlaneGeometry({dynamic:!0}),castShadow:!1,renderNormal:!0,$ignorePicking:!0}),this._groundMesh.rotation.rotateX(-Math.PI/2),this._labelsBuilder=new Th(512,512,t),this._labelsBuilder.getMesh().renderOrder=100,this._labelsBuilder.getMesh().material.depthTest=!1,this.rootNode.add(this._labelsBuilder.getMesh()),this._initMeshes(),this._api=t}ia.Shader.import(es),Ah.prototype={constructor:Ah,extrudeY:!0,update:function(t,e,n,i,r){var o=t.getData();null==i&&(i=0),null==r&&(r=o.count()),this._startIndex=i,this._endIndex=r-1,this._triangulation(t,i,r);var a=this._getShader(t.get("shading"));this._prepareMesh(t,a,n,i,r),this.rootNode.updateWorldTransform(),this._updateRegionMesh(t,n,i,r);var s=t.coordinateSystem;"geo3D"===s.type&&this._updateGroundPlane(t,s,n);var l=this;this._labelsBuilder.updateData(o,i,r),this._labelsBuilder.getLabelPosition=function(t,e,n){var i=o.getName(t),r=n;if("geo3D"===s.type){var a=s.getRegion(i);return a?(c=a.getCenter(),s.dataToPoint([c[0],c[1],r])):[NaN,NaN,NaN]}var h=l._triangulationResults[t-l._startIndex],c=l.extrudeY?[(h.max[0]+h.min[0])/2,h.max[1]+r,(h.max[2]+h.min[2])/2]:[(h.max[0]+h.min[0])/2,(h.max[1]+h.min[1])/2,h.max[2]+r]},this._data=o,this._labelsBuilder.updateLabels(),this._updateDebugWireframe(t),this._lastHoverDataIndex=0},_initMeshes:function(){var t=this;var e=function(){var e=new ia.Mesh({name:"Polygon",material:new ia.Material({shader:t._shadersMap.lambert}),geometry:new ia.Geometry({sortTriangles:!0,dynamic:!0}),culling:!1,ignorePicking:!0,renderNormal:!0});return Object.assign(e.geometry,xh),e}(),n=new ia.Mesh({material:new ia.Material({shader:this._linesShader}),castShadow:!1,ignorePicking:!0,$ignorePicking:!0,geometry:new Pa({useNativeLine:!1})});this.rootNode.add(e),this.rootNode.add(n),e.material.define("both","VERTEX_COLOR"),e.material.define("fragment","DOUBLE_SIDED"),this._polygonMesh=e,this._linesMesh=n,this.rootNode.add(this._groundMesh)},_getShader:function(t){var e=this._shadersMap[t];return e||(e=this._shadersMap.lambert),e.__shading=t,e},_prepareMesh:function(t,e,n,i,r){for(var o=0,a=0,s=0,l=0,h=i;h<r;h++){var c=this._getRegionPolygonInfo(h),u=this._getRegionLinesInfo(h,t,this._linesMesh.geometry);o+=c.vertexCount,a+=c.triangleCount,s+=u.vertexCount,l+=u.triangleCount}var d=this._polygonMesh,p=d.geometry;["position","normal","texcoord0","color"].forEach((function(t){p.attributes[t].init(o)})),p.indices=o>65535?new Uint32Array(3*a):new Uint16Array(3*a),d.material.shader!==e&&d.material.attachShader(e,!0),ia.setMaterialFromModel(e.__shading,d.material,t,n),s>0&&(this._linesMesh.geometry.resetOffset(),this._linesMesh.geometry.setVertexCount(s),this._linesMesh.geometry.setTriangleCount(l)),this._dataIndexOfVertex=new Uint32Array(o),this._vertexRangeOfDataIndex=new Uint32Array(2*(r-i))},_updateRegionMesh:function(t,e,n,i){for(var r=t.getData(),o=0,a=0,s=!1,l=this._polygonMesh,h=this._linesMesh,c=n;c<i;c++){var u=t.getRegionModel(c),d=u.getModel("itemStyle"),p=wo.firstNotNull(bh(r,c),d.get("color"),"#fff"),f=wo.firstNotNull(wh(r,c),d.get("opacity"),1),g=ia.parseColor(p),m=ia.parseColor(d.get("borderColor"));g[3]*=f,m[3]*=f;var v=g[3]<.99;l.material.set("color",[1,1,1,1]),s=s||v;for(var y=wo.firstNotNull(u.get("height",!0),t.get("regionHeight")),_=this._updatePolygonGeometry(t,l.geometry,c,y,o,a,g),x=o;x<_.vertexOffset;x++)this._dataIndexOfVertex[x]=c;this._vertexRangeOfDataIndex[2*(c-n)]=o,this._vertexRangeOfDataIndex[2*(c-n)+1]=_.vertexOffset,o=_.vertexOffset,a=_.triangleOffset;var b=d.get("borderWidth"),w=b>0;w&&(b*=e.getDevicePixelRatio(),this._updateLinesGeometry(h.geometry,t,c,y,b,t.coordinateSystem.transform)),h.invisible=!w,h.material.set({color:m})}(l=this._polygonMesh).material.transparent=s,l.material.depthMask=!s,l.geometry.updateBoundingBox(),l.frontFace=this.extrudeY?ia.Mesh.CCW:ia.Mesh.CW,l.material.get("normalMap")&&l.geometry.generateTangents(),l.seriesIndex=t.seriesIndex,l.on("mousemove",this._onmousemove,this),l.on("mouseout",this._onmouseout,this)},_updateDebugWireframe:function(t){var e=t.getModel("debug.wireframe");if(e.get("show")){var n=ia.parseColor(e.get("lineStyle.color")||"rgba(0,0,0,0.5)"),i=wo.firstNotNull(e.get("lineStyle.width"),1),r=this._polygonMesh;r.geometry.generateBarycentric(),r.material.define("both","WIREFRAME_TRIANGLE"),r.material.set("wireframeLineColor",n),r.material.set("wireframeLineWidth",i)}},_onmousemove:function(t){var e=this._dataIndexOfVertex[t.triangle[0]];null==e&&(e=-1),e!==this._lastHoverDataIndex&&(this.downplay(this._lastHoverDataIndex),this.highlight(e),this._labelsBuilder.updateLabels([e])),this._lastHoverDataIndex=e,this._polygonMesh.dataIndex=e},_onmouseout:function(t){t.target&&(this.downplay(this._lastHoverDataIndex),this._lastHoverDataIndex=-1,this._polygonMesh.dataIndex=-1),this._labelsBuilder.updateLabels([])},_updateGroundPlane:function(t,e,n){var i=t.getModel("groundPlane",t);if(this._groundMesh.invisible=!i.get("show",!0),!this._groundMesh.invisible){var r=t.get("shading"),o=this._groundMaterials[r];o||(o=this._groundMaterials.lambert),ia.setMaterialFromModel(r,o,i,n),o.get("normalMap")&&this._groundMesh.geometry.generateTangents(),this._groundMesh.material=o,this._groundMesh.material.set("color",ia.parseColor(i.get("color"))),this._groundMesh.scale.set(e.size[0],e.size[2],1)}},_triangulation:function(t,e,n){this._triangulationResults=[];for(var i=[1/0,1/0,1/0],r=[-1/0,-1/0,-1/0],o=t.coordinateSystem,a=e;a<n;a++){for(var s=[],l=t.getRegionPolygonCoords(a),h=0;h<l.length;h++){var c=l[h].exterior,u=l[h].interiors,d=[],p=[];if(!(c.length<3)){for(var f=0,g=0;g<c.length;g++){var m=c[g];d[f++]=m[0],d[f++]=m[1]}for(g=0;g<u.length;g++)if(!(u[g].length<3)){for(var v=d.length/2,y=0;y<u[g].length;y++){m=u[g][y];d.push(m[0]),d.push(m[1])}p.push(v)}var _=Vl(d,p),x=new Float64Array(d.length/2*3),b=[],w=[1/0,1/0,1/0],S=[-1/0,-1/0,-1/0],T=0;for(g=0;g<d.length;)Mh.set(b,d[g++],0,d[g++]),o&&o.transform&&Mh.transformMat4(b,b,o.transform),Mh.min(w,w,b),Mh.max(S,S,b),x[T++]=b[0],x[T++]=b[1],x[T++]=b[2];Mh.min(i,i,w),Mh.max(r,r,S),s.push({points:x,indices:_,min:w,max:S})}}this._triangulationResults.push(s)}this._geoBoundingBox=[i,r]},_getRegionPolygonInfo:function(t){for(var e=this._triangulationResults[t-this._startIndex],n=0,i=0,r=0;r<e.length;r++)n+=e[r].points.length/3,i+=e[r].indices.length/3;return{vertexCount:2*n+4*n,triangleCount:2*i+2*n}},_updatePolygonGeometry:function(t,e,n,i,r,o,a){var s=t.get("projectUVOnGround"),l=e.attributes.position,h=e.attributes.normal,c=e.attributes.texcoord0,u=e.attributes.color,d=this._triangulationResults[n-this._startIndex],p=u.value&&a,f=e.indices,g=this.extrudeY?1:2,m=this.extrudeY?2:1,v=[this.rootNode.worldTransform.x.len(),this.rootNode.worldTransform.y.len(),this.rootNode.worldTransform.z.len()],y=Mh.mul([],this._geoBoundingBox[0],v),_=Mh.mul([],this._geoBoundingBox[1],v),x=Math.max(_[0]-y[0],_[2]-y[2]);function b(t,e,n){var i=r;!function(t,e){for(var n=t.points,i=n.length,o=[],s=[],h=0;h<i;h+=3)o[0]=n[h],o[g]=e,o[m]=n[h+2],s[0]=(n[h]*v[0]-y[0])/x,s[1]=(n[h+2]*v[m]-y[2])/x,l.set(r,o),p&&u.set(r,a),c.set(r++,s)}(t,e);for(var s=t.indices.length,h=0;h<s;h++)f[3*o+h]=t.indices[h]+i;o+=t.indices.length/3}for(var w=this.extrudeY?[0,1,0]:[0,0,1],S=Mh.negate([],w),T=0;T<d.length;T++){var M=r,A=d[T];b(A,0),b(A,i);for(var C=A.points.length/3,I=0;I<C;I++)h.set(M+I,S),h.set(M+I+C,w);var E=[0,3,1,1,3,2],k=[[],[],[],[]],L=[],D=[],P=[],R=[],O=0;for(I=0;I<C;I++){for(var N=(I+1)%C,F=(A.points[3*N]-A.points[3*I])*v[0],B=(A.points[3*N+2]-A.points[3*I+2])*v[m],z=Math.sqrt(F*F+B*B),G=0;G<4;G++){var V=0===G||3===G,j=3*(V?I:N);k[G][0]=A.points[j],k[G][g]=G>1?i:0,k[G][m]=A.points[j+2],l.set(r+G,k[G]),s?(R[0]=(A.points[j]*v[0]-y[0])/x,R[1]=(A.points[j+2]*v[m]-y[m])/x):(R[0]=(V?O:O+z)/x,R[1]=(k[G][g]*v[g]-y[g])/x),c.set(r+G,R)}Mh.sub(L,k[1],k[0]),Mh.sub(D,k[3],k[0]),Mh.cross(P,L,D),Mh.normalize(P,P);for(G=0;G<4;G++)h.set(r+G,P),p&&u.set(r+G,a);for(G=0;G<6;G++)f[3*o+G]=E[G]+r;r+=4,o+=2,O+=z}}return e.dirty(),{vertexOffset:r,triangleOffset:o}},_getRegionLinesInfo:function(t,e,n){var i=0,r=0;e.getRegionModel(t).getModel("itemStyle").get("borderWidth")>0&&e.getRegionPolygonCoords(t).forEach((function(t){var e=t.exterior,o=t.interiors;i+=n.getPolylineVertexCount(e),r+=n.getPolylineTriangleCount(e);for(var a=0;a<o.length;a++)i+=n.getPolylineVertexCount(o[a]),r+=n.getPolylineTriangleCount(o[a])}),this);return{vertexCount:i,triangleCount:r}},_updateLinesGeometry:function(t,e,n,i,r,o){function a(t){for(var e=new Float64Array(3*t.length),n=0,r=[],a=0;a<t.length;a++)r[0]=t[a][0],r[1]=i+.1,r[2]=t[a][1],o&&Mh.transformMat4(r,r,o),e[n++]=r[0],e[n++]=r[1],e[n++]=r[2];return e}var s=[1,1,1,1];e.getRegionPolygonCoords(n).forEach((function(e){var n=e.exterior,i=e.interiors;t.addPolyline(a(n),s,r);for(var o=0;o<i.length;o++)t.addPolyline(a(i[o]),s,r)}))},highlight:function(t){var e=this._data;if(e){var n=e.getItemModel(t).getModel(["emphasis","itemStyle"]),r=n.get("color"),o=wo.firstNotNull(n.get("opacity"),wh(e,t),1);if(null==r){var a=bh(e,t);r=i.yW.lift(a,-.4)}null==o&&(o=wh(e,t));var s=ia.parseColor(r);s[3]*=o,this._setColorOfDataIndex(e,t,s)}},downplay:function(t){var e=this._data;if(e){var n=e.getItemModel(t),i=wo.firstNotNull(bh(e,t),n.get(["itemStyle","color"]),"#fff"),r=wo.firstNotNull(wh(e,t),n.get(["itemStyle","opacity"]),1),o=ia.parseColor(i);o[3]*=r,this._setColorOfDataIndex(e,t,o)}},dispose:function(){this._labelsBuilder.dispose()},_setColorOfDataIndex:function(t,e,n){if(!(e<this._startIndex&&e>this._endIndex)){e-=this._startIndex;for(var i=this._vertexRangeOfDataIndex[2*e];i<this._vertexRangeOfDataIndex[2*e+1];i++)this._polygonMesh.geometry.attributes.color.set(i,n);this._polygonMesh.geometry.dirty(),this._api.getZr().refresh()}}};const Ch=Ah,Ih=i.bR.extend({type:"geo3D",__ecgl__:!0,init:function(t,e){this._geo3DBuilder=new Ch(e),this.groupGL=new ia.Node,this._lightRoot=new ia.Node,this._sceneHelper=new Ba(this._lightRoot),this._sceneHelper.initLight(this._lightRoot),this._control=new Ca({zr:e.getZr()}),this._control.init()},render:function(t,e,n){this.groupGL.add(this._geo3DBuilder.rootNode);var i=t.coordinateSystem;if(i&&i.viewGL){i.viewGL.add(this._lightRoot),t.get("show")?i.viewGL.add(this.groupGL):i.viewGL.remove(this.groupGL);var r=this._control;r.setViewGL(i.viewGL);var o=t.getModel("viewControl");r.setFromViewControlModel(o,0),this._sceneHelper.setScene(i.viewGL.scene),this._sceneHelper.updateLight(t),i.viewGL.setPostEffect(t.getModel("postEffect"),n),i.viewGL.setTemporalSuperSampling(t.getModel("temporalSuperSampling")),this._geo3DBuilder.update(t,e,n,0,t.getData().count());var a=i.viewGL.isLinearSpace()?"define":"undefine";this._geo3DBuilder.rootNode.traverse((function(t){t.material&&t.material[a]("fragment","SRGB_DECODE")})),r.off("update"),r.on("update",(function(){n.dispatchAction({type:"geo3DChangeCamera",alpha:r.getAlpha(),beta:r.getBeta(),distance:r.getDistance(),center:r.getCenter(),from:this.uid,geo3DId:t.id})})),r.update()}},afterRender:function(t,e,n,i){var r=i.renderer;this._sceneHelper.updateAmbientCubemap(r,t,n),this._sceneHelper.updateSkybox(r,t,n)},dispose:function(){this._control.dispose(),this._geo3DBuilder.dispose()}});var Eh=n(6771),kh={Russia:[100,60],"United States":[-99,38],"United States of America":[-99,38]};var Lh=Ea.vec3,Dh=Ea.mat4,Ph=[Eh.A,function(t,e){if("world"===t){var n=kh[e.name];if(n){var i=[n[0],n[1]];e.setCenter(i)}}}];function Rh(t,e,n,i,r){this.name=t,this.map=e,this.regionHeight=0,this.regions=[],this._nameCoordMap={},this.loadGeoJson(n,i,r),this.transform=Dh.identity(new Float64Array(16)),this.invTransform=Dh.identity(new Float64Array(16)),this.extrudeY=!0,this.altitudeAxis}Rh.prototype={constructor:Rh,type:"geo3D",dimensions:["lng","lat","alt"],containPoint:function(){},loadGeoJson:function(t,e,n){var r=i.l3||i.zI;try{this.regions=t?r(t):[]}catch(Jh){throw"Invalid geoJson format\n"+Jh}e=e||{},n=n||{};for(var o=this.regions,a={},s=0;s<o.length;s++){var l=o[s].name;l=n[l]||l,o[s].name=l,a[l]=o[s],this.addGeoCoord(l,o[s].getCenter());var h=e[l];h&&o[s].transformTo(h.left,h.top,h.width,h.height)}this._regionsMap=a,this._geoRect=null,Ph.forEach((function(t){t(this)}),this)},getGeoBoundingRect:function(){if(this._geoRect)return this._geoRect;for(var t,e=this.regions,n=0;n<e.length;n++){var r=e[n].getBoundingRect();(t=t||r.clone()).union(r)}return this._geoRect=t||new i.fA.BoundingRect(0,0,0,0)},addGeoCoord:function(t,e){this._nameCoordMap[t]=e},getRegion:function(t){return this._regionsMap[t]},getRegionByCoord:function(t){for(var e=this.regions,n=0;n<e.length;n++)if(e[n].contain(t))return e[n]},setSize:function(t,e,n){this.size=[t,e,n];var i=this.getGeoBoundingRect(),r=t/i.width,o=-n/i.height,a=-t/2-i.x*r,s=n/2-i.y*o,l=this.extrudeY?[a,0,s]:[a,s,0],h=this.extrudeY?[r,1,o]:[r,o,1],c=this.transform;Dh.identity(c),Dh.translate(c,c,l),Dh.scale(c,c,h),Dh.invert(this.invTransform,c)},dataToPoint:function(t,e){e=e||[];var n=this.extrudeY?1:2,i=this.extrudeY?2:1,r=t[2];return isNaN(r)&&(r=0),e[0]=t[0],e[i]=t[1],this.altitudeAxis?e[n]=this.altitudeAxis.dataToCoord(r):e[n]=0,e[n]+=this.regionHeight,Lh.transformMat4(e,e,this.transform),e},pointToData:function(t,e){}};const Oh=Rh;function Nh(t,e){var n=t.getBoxLayoutParams(),i=(0,cs.dV)(n,{width:e.getWidth(),height:e.getHeight()});i.y=e.getHeight()-i.y-i.height,this.viewGL.setViewport(i.x,i.y,i.width,i.height,e.getDevicePixelRatio());var r=this.getGeoBoundingRect(),o=r.width/r.height*(t.get("aspectScale")||.75),a=t.get("boxWidth"),s=t.get("boxDepth"),l=t.get("boxHeight");null==l&&(l=5),isNaN(a)&&isNaN(s)&&(a=100),isNaN(s)?s=a/o:isNaN(a)&&(a=s/o),this.setSize(a,l,s),this.regionHeight=t.get("regionHeight"),this.altitudeAxis&&this.altitudeAxis.setExtent(0,Math.max(l-this.regionHeight,0))}function Fh(t,e){var n=[1/0,-1/0];if(t.eachSeries((function(t){if(t.coordinateSystem===this&&"series.map3D"!==t.type){var e=t.getData(),i=t.coordDimToDataDim("alt"),r=i&&i[0];if(r){var o=e.getDataExtent(r,!0);n[0]=Math.min(n[0],o[0]),n[1]=Math.max(n[1],o[1])}}}),this),n&&isFinite(n[1]-n[0])){var r=i.dw.createScale(n,{type:"value",min:"dataMin",max:"dataMax"});this.altitudeAxis=new i._0("altitude",r),this.resize(this.model,e)}}var Bh=0,zh={dimensions:Oh.prototype.dimensions,create:function(t,e){var n=[];if(!i.ZB)throw new Error("geo3D component depends on geo component");function r(t,i){var r=zh.createGeo3D(t);t.__viewGL=t.__viewGL||new wl,r.viewGL=t.__viewGL,t.coordinateSystem=r,r.model=t,n.push(r),r.resize=Nh,r.resize(t,e),r.update=Fh}return t.eachComponent("geo3D",(function(t,e){r(t)})),t.eachSeriesByType("map3D",(function(t,e){var n=t.get("coordinateSystem");null==n&&(n="geo3D"),"geo3D"===n&&r(t)})),t.eachSeries((function(e){if("geo3D"===e.get("coordinateSystem")){if("series.map3D"===e.type)return;var n=e.getReferringComponents("geo3D").models[0];if(n||(n=t.getComponent("geo3D")),!n)throw new Error('geo "'+wo.firstNotNull(e.get("geo3DIndex"),e.get("geo3DId"),0)+'" not found');e.coordinateSystem=n.coordinateSystem}})),n},createGeo3D:function(t){var e,n=t.get("map");return"string"==typeof n?(e=n,n=i.ZB(n)):n&&n.features&&(n={geoJson:n}),null==e&&(e="GEO_ANONYMOUS_"+Bh++),new Oh(e+Bh++,e,n&&n.geoJson,n&&n.specialAreas,t.get("nameMap"))}};const Gh=zh;function Vh(t){t.registerComponentModel(Gl),t.registerComponentView(Ih),t.registerAction({type:"geo3DChangeCamera",event:"geo3dcamerachanged",update:"series:updateCamera"},(function(t,e){e.eachComponent({mainType:"geo3D",query:t},(function(e){e.setView(t)}))})),t.registerCoordinateSystem("geo3D",Gh)}function jh(t,e){t.id=t.id||t.name||e+""}(0,i.Yx)(Vh);var Hh=i.jT.extend({type:"globe",layoutMode:"box",coordinateSystem:null,init:function(){Hh.superApply(this,"init",arguments),i.ZS.each(this.option.layers,(function(t,e){i.ZS.merge(t,this.defaultLayerOption),jh(t,e)}),this)},mergeOption:function(t){var e=this.option.layers;function n(t){return i.ZS.reduce(t,(function(t,e,n){return jh(e,n),t[e.id]=e,t}),{})}if(this.option.layers=null,Hh.superApply(this,"mergeOption",arguments),e&&e.length){var r=n(t.layers),o=n(e);for(var a in r)o[a]?i.ZS.merge(o[a],r[a],!0):e.push(t.layers[a]);this.option.layers=e}i.ZS.each(this.option.layers,(function(t){i.ZS.merge(t,this.defaultLayerOption)}),this)},optionUpdated:function(){this.updateDisplacementHash()},defaultLayerOption:{show:!0,type:"overlay"},defaultOption:{show:!0,zlevel:-10,left:0,top:0,width:"100%",height:"100%",environment:"auto",baseColor:"#fff",baseTexture:"",heightTexture:"",displacementTexture:"",displacementScale:0,displacementQuality:"medium",globeRadius:100,globeOuterRadius:150,shading:"lambert",light:{main:{time:""}},atmosphere:{show:!1,offset:5,color:"#ffffff",glowPower:6,innerGlowPower:2},viewControl:{autoRotate:!0,panSensitivity:0,targetCoord:null},layers:[]},setDisplacementData:function(t,e,n){this.displacementData=t,this.displacementWidth=e,this.displacementHeight=n},getDisplacementTexture:function(){return this.get("displacementTexture")||this.get("heightTexture")},getDisplacemenScale:function(){var t=this.getDisplacementTexture(),e=this.get("displacementScale");return t&&"none"!==t||(e=0),e},hasDisplacement:function(){return this.getDisplacemenScale()>0},_displacementChanged:!0,_displacementScale:0,updateDisplacementHash:function(){var t=this.getDisplacementTexture(),e=this.getDisplacemenScale();this._displacementChanged=this._displacementTexture!==t||this._displacementScale!==e,this._displacementTexture=t,this._displacementScale=e},isDisplacementChanged:function(){return this._displacementChanged}});i.ZS.merge(Hh.prototype,va),i.ZS.merge(Hh.prototype,ya),i.ZS.merge(Hh.prototype,_a),i.ZS.merge(Hh.prototype,Fl);const Wh=Hh;var Uh=Math.PI,qh=Math.sin,Xh=Math.cos,Yh=Math.tan,Zh=Math.asin,$h=Math.atan2,Kh=Uh/180;var Jh=23.4397*Kh;function Qh(t,e){return $h(qh(t)*Xh(Jh)-Yh(e)*qh(Jh),Xh(t))}function tc(t,e,n){return $h(qh(t),Xh(t)*qh(e)-Yh(n)*Xh(e))}function ec(t,e,n){return Zh(qh(e)*qh(n)+Xh(e)*Xh(n)*Xh(t))}function nc(t){var e,n,i=function(t){return Kh*(357.5291+.98560028*t)}(t),r=function(t){return t+Kh*(1.9148*qh(t)+.02*qh(2*t)+3e-4*qh(3*t))+102.9372*Kh+Uh}(i);return{dec:(e=r,n=0,Zh(qh(n)*Xh(Jh)+Xh(n)*qh(Jh)*qh(e))),ra:Qh(r,0)}}var ic={};ic.getPosition=function(t,e,n){var i=Kh*-n,r=Kh*e,o=function(t){return function(t){return t.valueOf()/864e5-.5+2440588}(t)-2451545}(t),a=nc(o),s=function(t,e){return Kh*(280.16+360.9856235*t)-e}(o,i)-a.ra;return{azimuth:tc(s,r,a.dec),altitude:ec(s,r,a.dec)}};const rc=ic;ia.Shader.import(Zo),ia.Shader.import("@export ecgl.atmosphere.vertex\nattribute vec3 position: POSITION;\nattribute vec3 normal : NORMAL;\nuniform mat4 worldViewProjection : WORLDVIEWPROJECTION;\nuniform mat4 normalMatrix : WORLDINVERSETRANSPOSE;\n\nvarying vec3 v_Normal;\n\nvoid main() {\n v_Normal = normalize((normalMatrix * vec4(normal, 0.0)).xyz);\n gl_Position = worldViewProjection * vec4(position, 1.0);\n}\n@end\n\n\n@export ecgl.atmosphere.fragment\nuniform mat4 viewTranspose: VIEWTRANSPOSE;\nuniform float glowPower;\nuniform vec3 glowColor;\n\nvarying vec3 v_Normal;\n\nvoid main() {\n float intensity = pow(1.0 - dot(v_Normal, (viewTranspose * vec4(0.0, 0.0, 1.0, 0.0)).xyz), glowPower);\n gl_FragColor = vec4(glowColor, intensity * intensity);\n}\n@end");const oc=i.bR.extend({type:"globe",__ecgl__:!0,_displacementScale:0,init:function(t,e){this.groupGL=new ia.Node,this._sphereGeometry=new ia.SphereGeometry({widthSegments:200,heightSegments:100,dynamic:!0}),this._overlayGeometry=new ia.SphereGeometry({widthSegments:80,heightSegments:40}),this._planeGeometry=new ia.PlaneGeometry,this._earthMesh=new ia.Mesh({renderNormal:!0}),this._atmosphereMesh=new ia.Mesh,this._atmosphereGeometry=new ia.SphereGeometry({widthSegments:80,heightSegments:40}),this._atmosphereMaterial=new ia.Material({shader:new ia.Shader(ia.Shader.source("ecgl.atmosphere.vertex"),ia.Shader.source("ecgl.atmosphere.fragment")),transparent:!0}),this._atmosphereMesh.geometry=this._atmosphereGeometry,this._atmosphereMesh.material=this._atmosphereMaterial,this._atmosphereMesh.frontFace=ia.Mesh.CW,this._lightRoot=new ia.Node,this._sceneHelper=new Ba,this._sceneHelper.initLight(this._lightRoot),this.groupGL.add(this._atmosphereMesh),this.groupGL.add(this._earthMesh),this._control=new Ca({zr:e.getZr()}),this._control.init(),this._layerMeshes={}},render:function(t,e,n){var i=t.coordinateSystem,r=t.get("shading");i.viewGL.add(this._lightRoot),t.get("show")?i.viewGL.add(this.groupGL):i.viewGL.remove(this.groupGL),this._sceneHelper.setScene(i.viewGL.scene),i.viewGL.setPostEffect(t.getModel("postEffect"),n),i.viewGL.setTemporalSuperSampling(t.getModel("temporalSuperSampling"));var o=this._earthMesh;o.geometry=this._sphereGeometry;var a="ecgl."+r;o.material&&o.material.shader.name===a||(o.material=ia.createMaterial(a)),ia.setMaterialFromModel(r,o.material,t,n),["roughnessMap","metalnessMap","detailMap","normalMap"].forEach((function(t){var e=o.material.get(t);e&&(e.flipY=!1)})),o.material.set("color",ia.parseColor(t.get("baseColor")));var s=.99*i.radius;if(o.scale.set(s,s,s),t.get("atmosphere.show")){o.material.define("both","ATMOSPHERE_ENABLED"),this._atmosphereMesh.invisible=!1,this._atmosphereMaterial.setUniforms({glowPower:t.get("atmosphere.glowPower")||6,glowColor:t.get("atmosphere.color")||"#ffffff"}),o.material.setUniforms({glowPower:t.get("atmosphere.innerGlowPower")||2,glowColor:t.get("atmosphere.color")||"#ffffff"});var l=t.get("atmosphere.offset")||5;this._atmosphereMesh.scale.set(s+l,s+l,s+l)}else o.material.undefine("both","ATMOSPHERE_ENABLED"),this._atmosphereMesh.invisible=!0;var h=o.material.setTextureImage("diffuseMap",t.get("baseTexture"),n,{flipY:!1,anisotropic:8});h&&h.surface&&h.surface.attachToMesh(o);var c=o.material.setTextureImage("bumpMap",t.get("heightTexture"),n,{flipY:!1,anisotropic:8});c&&c.surface&&c.surface.attachToMesh(o),o.material[t.get("postEffect.enable")?"define":"undefine"]("fragment","SRGB_DECODE"),this._updateLight(t,n),this._displaceVertices(t,n),this._updateViewControl(t,n),this._updateLayers(t,n)},afterRender:function(t,e,n,i){var r=i.renderer;this._sceneHelper.updateAmbientCubemap(r,t,n),this._sceneHelper.updateSkybox(r,t,n)},_updateLayers:function(t,e){var n=t.coordinateSystem,r=t.get("layers"),o=n.radius,a=[],s=[],l=[],h=[];i.ZS.each(r,(function(t){var r=new i.Kx(t),c=r.get("type"),u=ia.loadTexture(r.get("texture"),e,{flipY:!1,anisotropic:8});if(u.surface&&u.surface.attachToMesh(this._earthMesh),"blend"===c){var d=r.get("blendTo"),p=wo.firstNotNull(r.get("intensity"),1);"emission"===d?(l.push(u),h.push(p)):(a.push(u),s.push(p))}else{var f=r.get("id"),g=this._layerMeshes[f];g||(g=this._layerMeshes[f]=new ia.Mesh({geometry:this._overlayGeometry,castShadow:!1,ignorePicking:!0})),"lambert"===r.get("shading")?(g.material=g.__lambertMaterial||new ia.Material({autoUpdateTextureStatus:!1,shader:ia.createShader("ecgl.lambert"),transparent:!0,depthMask:!1}),g.__lambertMaterial=g.material):(g.material=g.__colorMaterial||new ia.Material({autoUpdateTextureStatus:!1,shader:ia.createShader("ecgl.color"),transparent:!0,depthMask:!1}),g.__colorMaterial=g.material),g.material.enableTexture("diffuseMap");var m=r.get("distance"),v=o+(null==m?n.radius/100:m);g.scale.set(v,v,v),o=v;var y=this._blankTexture||(this._blankTexture=ia.createBlankTexture("rgba(255, 255, 255, 0)"));g.material.set("diffuseMap",y),ia.loadTexture(r.get("texture"),e,{flipY:!1,anisotropic:8},(function(t){t.surface&&t.surface.attachToMesh(g),g.material.set("diffuseMap",t),e.getZr().refresh()})),r.get("show")?this.groupGL.add(g):this.groupGL.remove(g)}}),this);var c=this._earthMesh.material;c.define("fragment","LAYER_DIFFUSEMAP_COUNT",a.length),c.define("fragment","LAYER_EMISSIVEMAP_COUNT",l.length),c.set("layerDiffuseMap",a),c.set("layerDiffuseIntensity",s),c.set("layerEmissiveMap",l),c.set("layerEmissionIntensity",h);var u=t.getModel("debug.wireframe");if(u.get("show")){c.define("both","WIREFRAME_TRIANGLE");var d=ia.parseColor(u.get("lineStyle.color")||"rgba(0,0,0,0.5)"),p=wo.firstNotNull(u.get("lineStyle.width"),1);c.set("wireframeLineWidth",p),c.set("wireframeLineColor",d)}else c.undefine("both","WIREFRAME_TRIANGLE")},_updateViewControl:function(t,e){var n=t.coordinateSystem,i=t.getModel("viewControl"),r=(n.viewGL.camera,this);var o=this._control;o.setViewGL(n.viewGL);var a,s,l=i.get("targetCoord");null!=l&&(s=l[0]+90,a=l[1]),o.setFromViewControlModel(i,{baseDistance:n.radius,alpha:a,beta:s}),o.off("update"),o.on("update",(function(){e.dispatchAction({type:"globeChangeCamera",alpha:o.getAlpha(),beta:o.getBeta(),distance:o.getDistance()-n.radius,center:o.getCenter(),from:r.uid,globeId:t.id})}))},_displaceVertices:function(t,e){var n=t.get("displacementQuality"),i=t.get("debug.wireframe.show"),r=t.coordinateSystem;if(t.isDisplacementChanged()||n!==this._displacementQuality||i!==this._showDebugWireframe){this._displacementQuality=n,this._showDebugWireframe=i;var o=this._sphereGeometry,a={low:100,medium:200,high:400,ultra:800}[n]||200,s=a/2;(o.widthSegments!==a||i)&&(o.widthSegments=a,o.heightSegments=s,o.build()),this._doDisplaceVertices(o,r),i&&o.generateBarycentric()}},_doDisplaceVertices:function(t,e){var n=t.attributes.position.value,i=t.attributes.texcoord0.value,r=t.__originalPosition;r&&r.length===n.length||((r=new Float32Array(n.length)).set(n),t.__originalPosition=r);for(var o=e.displacementWidth,a=e.displacementHeight,s=e.displacementData,l=0;l<t.vertexCount;l++){var h=3*l,c=2*l,u=r[h+1],d=r[h+2],p=r[h+3],f=i[c++],g=i[c++],m=Math.round(f*(o-1)),v=Math.round(g*(a-1)),y=s?s[v*o+m]:0;n[h+1]=u+u*y,n[h+2]=d+d*y,n[h+3]=p+p*y}t.generateVertexNormals(),t.dirty(),t.updateBoundingBox()},_updateLight:function(t,e){var n=this._earthMesh;this._sceneHelper.updateLight(t);var r=this._sceneHelper.mainLight,o=t.get("light.main.time")||new Date,a=rc.getPosition(i.ai.parseDate(o),0,0),s=Math.cos(a.altitude);r.position.y=-s*Math.cos(a.azimuth),r.position.x=Math.sin(a.altitude),r.position.z=s*Math.sin(a.azimuth),r.lookAt(n.getWorldPosition())},dispose:function(t,e){this.groupGL.removeAll(),this._control.dispose()}});var ac=Ea.vec3;function sc(t){this.radius=t,this.viewGL=null,this.altitudeAxis,this.displacementData=null,this.displacementWidth,this.displacementHeight}sc.prototype={constructor:sc,dimensions:["lng","lat","alt"],type:"globe",containPoint:function(){},setDisplacementData:function(t,e,n){this.displacementData=t,this.displacementWidth=e,this.displacementHeight=n},_getDisplacementScale:function(t,e){var n=(t+180)/360*(this.displacementWidth-1),i=(90-e)/180*(this.displacementHeight-1),r=Math.round(n)+Math.round(i)*this.displacementWidth;return this.displacementData[r]},dataToPoint:function(t,e){var n=t[0],i=t[1],r=t[2]||0,o=this.radius;this.displacementData&&(o*=1+this._getDisplacementScale(n,i)),this.altitudeAxis&&(o+=this.altitudeAxis.dataToCoord(r)),n=n*Math.PI/180,i=i*Math.PI/180;var a=Math.cos(i)*o;return(e=e||[])[0]=-a*Math.cos(n+Math.PI),e[1]=Math.sin(i)*o,e[2]=a*Math.sin(n+Math.PI),e},pointToData:function(t,e){var n=t[0],i=t[1],r=t[2],o=ac.len(t);n/=o,i/=o,r/=o;var a=Math.asin(i),s=Math.atan2(r,-n);s<0&&(s=2*Math.PI+s);var l=180*a/Math.PI,h=180*s/Math.PI-180;return(e=e||[])[0]=h,e[1]=l,e[2]=o-this.radius,this.altitudeAxis&&(e[2]=this.altitudeAxis.coordToData(e[2])),e}};const lc=sc;function hc(t,e){var n=t.getBoxLayoutParams(),i=(0,cs.dV)(n,{width:e.getWidth(),height:e.getHeight()});i.y=e.getHeight()-i.y-i.height,this.viewGL.setViewport(i.x,i.y,i.width,i.height,e.getDevicePixelRatio()),this.radius=t.get("globeRadius");var r=t.get("globeOuterRadius");this.altitudeAxis&&this.altitudeAxis.setExtent(0,r-this.radius)}function cc(t,e){var n=[1/0,-1/0];if(t.eachSeries((function(t){if(t.coordinateSystem===this){var e=t.getData(),i=t.coordDimToDataDim("alt"),r=i&&i[0];if(r){var o=e.getDataExtent(r,!0);n[0]=Math.min(n[0],o[0]),n[1]=Math.max(n[1],o[1])}}}),this),n&&isFinite(n[1]-n[0])){var r=i.dw.createScale(n,{type:"value",min:"dataMin",max:"dataMax"});this.altitudeAxis=new i._0("altitude",r),this.resize(this.model,e)}}var uc={dimensions:lc.prototype.dimensions,create:function(t,e){var n=[];return t.eachComponent("globe",(function(t){t.__viewGL=t.__viewGL||new wl;var i=new lc;i.viewGL=t.__viewGL,t.coordinateSystem=i,i.model=t,n.push(i),i.resize=hc,i.resize(t,e),i.update=cc})),t.eachSeries((function(e){if("globe"===e.get("coordinateSystem")){var n=e.getReferringComponents("globe").models[0];if(n||(n=t.getComponent("globe")),!n)throw new Error('globe "'+wo.firstNotNull(e.get("globe3DIndex"),e.get("globe3DId"),0)+'" not found');var i=n.coordinateSystem;e.coordinateSystem=i}})),t.eachComponent("globe",(function(t,n){var i=t.coordinateSystem,r=t.getDisplacementTexture(),o=t.getDisplacemenScale();if(t.isDisplacementChanged()){if(t.hasDisplacement()){var a=!0;ia.loadTexture(r,e,(function(n){var i=function(t,e){var n=document.createElement("canvas"),i=n.getContext("2d"),r=t.width,o=t.height;n.width=r,n.height=o,i.drawImage(t,0,0,r,o);for(var a=i.getImageData(0,0,r,o).data,s=new Float32Array(a.length/4),l=0;l<a.length/4;l++){var h=a[4*l];s[l]=h/255*e}return{data:s,width:r,height:o}}(n.image,o);t.setDisplacementData(i.data,i.width,i.height),a||e.dispatchAction({type:"globeUpdateDisplacment"})})),a=!1}else i.setDisplacementData(null,0,0);i.setDisplacementData(t.displacementData,t.displacementWidth,t.displacementHeight)}})),n}};const dc=uc;(0,i.Yx)((function(t){t.registerComponentModel(Wh),t.registerComponentView(oc),t.registerCoordinateSystem("globe",dc),t.registerAction({type:"globeChangeCamera",event:"globecamerachanged",update:"series:updateCamera"},(function(t,e){e.eachComponent({mainType:"globe",query:t},(function(e){e.setView(t)}))})),t.registerAction({type:"globeUpdateDisplacment",event:"globedisplacementupdated",update:"update"},(function(t,e){}))}));var pc=["zoom","center","pitch","bearing"],fc=i.jT.extend({type:"mapbox3D",layoutMode:"box",coordinateSystem:null,defaultOption:{zlevel:-10,style:"mapbox://styles/mapbox/light-v9",center:[0,0],zoom:0,pitch:0,bearing:0,light:{main:{alpha:20,beta:30}},altitudeScale:1,boxHeight:"auto"},getMapboxCameraOption:function(){var t=this;return pc.reduce((function(e,n){return e[n]=t.get(n),e}),{})},setMapboxCameraOption:function(t){null!=t&&pc.forEach((function(e){null!=t[e]&&(this.option[e]=t[e])}),this)},getMapbox:function(){return this._mapbox},setMapbox:function(t){this._mapbox=t}});i.ZS.merge(fc.prototype,ya),i.ZS.merge(fc.prototype,_a);const gc=fc;function mc(t,e){if(this.id=t,this.zr=e,this.dom=document.createElement("div"),this.dom.style.cssText="position:absolute;left:0;right:0;top:0;bottom:0;",!mapboxgl)throw new Error("Mapbox GL library must be included. See https://www.mapbox.com/mapbox-gl-js/api/");this._mapbox=new mapboxgl.Map({container:this.dom}),this._initEvents()}mc.prototype.setUnpainted=function(){},mc.prototype.resize=function(){this._mapbox.resize()},mc.prototype.getMapbox=function(){return this._mapbox},mc.prototype.clear=function(){},mc.prototype.refresh=function(){this._mapbox.resize()};var vc=["mousedown","mouseup","click","dblclick","mousemove","mousewheel","wheel","touchstart","touchend","touchmove","touchcancel"];mc.prototype._initEvents=function(){var t=this._mapbox.getCanvasContainer();this._handlers=this._handlers||{contextmenu:function(t){return t.preventDefault(),!1}},vc.forEach((function(e){this._handlers[e]=function(e){var n={};for(var i in e)n[i]=e[i];n.bubbles=!1;var r=new e.constructor(e.type,n);t.dispatchEvent(r)},this.zr.dom.addEventListener(e,this._handlers[e])}),this),this.zr.dom.addEventListener("contextmenu",this._handlers.contextmenu)},mc.prototype.dispose=function(){vc.forEach((function(t){this.zr.dom.removeEventListener(t,this._handlers[t])}),this)};const yc=mc,_c="\n@export ecgl.displayShadow.vertex\n\n@import ecgl.common.transformUniforms\n\n@import ecgl.common.uv.header\n\n@import ecgl.common.attributes\n\nvarying vec3 v_WorldPosition;\n\nvarying vec3 v_Normal;\n\nvoid main()\n{\n @import ecgl.common.uv.main\n v_Normal = normalize((worldInverseTranspose * vec4(normal, 0.0)).xyz);\n\n v_WorldPosition = (world * vec4(position, 1.0)).xyz;\n gl_Position = worldViewProjection * vec4(position, 1.0);\n}\n\n@end\n\n\n@export ecgl.displayShadow.fragment\n\n@import ecgl.common.uv.fragmentHeader\n\nvarying vec3 v_Normal;\nvarying vec3 v_WorldPosition;\n\nuniform float roughness: 0.2;\n\n#ifdef DIRECTIONAL_LIGHT_COUNT\n@import clay.header.directional_light\n#endif\n\n@import ecgl.common.ssaoMap.header\n\n@import clay.plugin.compute_shadow_map\n\nvoid main()\n{\n float shadow = 1.0;\n\n @import ecgl.common.ssaoMap.main\n\n#if defined(DIRECTIONAL_LIGHT_COUNT) && defined(DIRECTIONAL_LIGHT_SHADOWMAP_COUNT)\n float shadowContribsDir[DIRECTIONAL_LIGHT_COUNT];\n if(shadowEnabled)\n {\n computeShadowOfDirectionalLights(v_WorldPosition, shadowContribsDir);\n }\n for (int i = 0; i < DIRECTIONAL_LIGHT_COUNT; i++) {\n shadow = min(shadow, shadowContribsDir[i] * 0.5 + 0.5);\n }\n#endif\n\n shadow *= 0.5 + ao * 0.5;\n shadow = clamp(shadow, 0.0, 1.0);\n\n gl_FragColor = vec4(vec3(0.0), 1.0 - shadow);\n}\n\n@end";ia.Shader.import(_c);const xc=i.bR.extend({type:"mapbox3D",__ecgl__:!0,init:function(t,e){var n=e.getZr();this._zrLayer=new yc("mapbox3D",n),n.painter.insertLayer(-1e3,this._zrLayer),this._lightRoot=new ia.Node,this._sceneHelper=new Ba(this._lightRoot),this._sceneHelper.initLight(this._lightRoot);var i=this._zrLayer.getMapbox(),r=this._dispatchInteractAction.bind(this,e,i);["zoom","rotate","drag","pitch","rotate","move"].forEach((function(t){i.on(t,r)})),this._groundMesh=new ia.Mesh({geometry:new ia.PlaneGeometry,material:new ia.Material({shader:new ia.Shader({vertex:ia.Shader.source("ecgl.displayShadow.vertex"),fragment:ia.Shader.source("ecgl.displayShadow.fragment")}),depthMask:!1}),renderOrder:-100,culling:!1,castShadow:!1,$ignorePicking:!0,renderNormal:!0})},render:function(t,e,n){var i=this._zrLayer.getMapbox(),r=t.get("style"),o=JSON.stringify(r);o!==this._oldStyleStr&&r&&i.setStyle(r),this._oldStyleStr=o,i.setCenter(t.get("center")),i.setZoom(t.get("zoom")),i.setPitch(t.get("pitch")),i.setBearing(t.get("bearing")),t.setMapbox(i);var a=t.coordinateSystem;a.viewGL.scene.add(this._lightRoot),a.viewGL.add(this._groundMesh),this._updateGroundMesh(),this._sceneHelper.setScene(a.viewGL.scene),this._sceneHelper.updateLight(t),a.viewGL.setPostEffect(t.getModel("postEffect"),n),a.viewGL.setTemporalSuperSampling(t.getModel("temporalSuperSampling")),this._mapbox3DModel=t},afterRender:function(t,e,n,i){var r=i.renderer;this._sceneHelper.updateAmbientCubemap(r,t,n),this._sceneHelper.updateSkybox(r,t,n),t.coordinateSystem.viewGL.scene.traverse((function(t){t.material&&(t.material.define("fragment","NORMAL_UP_AXIS",2),t.material.define("fragment","NORMAL_FRONT_AXIS",1))}))},updateCamera:function(t,e,n,i){t.coordinateSystem.setCameraOption(i),this._updateGroundMesh(),n.getZr().refresh()},_dispatchInteractAction:function(t,e,n){t.dispatchAction({type:"mapbox3DChangeCamera",pitch:e.getPitch(),zoom:e.getZoom(),center:e.getCenter().toArray(),bearing:e.getBearing(),mapbox3DId:this._mapbox3DModel&&this._mapbox3DModel.id})},_updateGroundMesh:function(){if(this._mapbox3DModel){var t=this._mapbox3DModel.coordinateSystem,e=t.dataToPoint(t.center);this._groundMesh.position.set(e[0],e[1],-.001);var n=new ia.Plane(new ia.Vector3(0,0,1),0),i=t.viewGL.camera.castRay(new ia.Vector2(-1,-1)),r=t.viewGL.camera.castRay(new ia.Vector2(1,1)),o=i.intersectPlane(n),a=r.intersectPlane(n),s=o.dist(a)/t.viewGL.rootNode.scale.x;this._groundMesh.scale.set(s,s,1)}},dispose:function(t,e){this._zrLayer&&this._zrLayer.dispose(),e.getZr().painter.delLayer(-1e3)}});var bc=Ea.mat4,wc=512,Sc=.6435011087932844,Tc=Math.PI,Mc=.1;function Ac(){this.width=0,this.height=0,this.altitudeScale=1,this.boxHeight="auto",this.altitudeExtent,this.bearing=0,this.pitch=0,this.center=[0,0],this._origin,this.zoom=0,this._initialZoom,this.maxPitch=60,this.zoomOffset=0}Ac.prototype={constructor:Ac,dimensions:["lng","lat","alt"],containPoint:function(){},setCameraOption:function(t){this.bearing=t.bearing,this.pitch=t.pitch,this.center=t.center,this.zoom=t.zoom,this._origin||(this._origin=this.projectOnTileWithScale(this.center,wc)),null==this._initialZoom&&(this._initialZoom=this.zoom),this.updateTransform()},updateTransform:function(){if(this.height){var t=.5/Math.tan(Sc/2)*this.height*Mc,e=Math.max(Math.min(this.pitch,this.maxPitch),0)/180*Math.PI,n=Sc/2,i=Math.PI/2+e,r=Math.sin(n)*t/Math.sin(Math.PI-i-n),o=1.1*(Math.cos(Math.PI/2-e)*r+t);this.pitch>50&&(o=1e3);var a=[];bc.perspective(a,Sc,this.width/this.height,1,o),this.viewGL.camera.projectionMatrix.setArray(a),this.viewGL.camera.decomposeProjectionMatrix();a=bc.identity([]);var s=this.dataToPoint(this.center);bc.scale(a,a,[1,-1,1]),bc.translate(a,a,[0,0,-t]),bc.rotateX(a,a,e),bc.rotateZ(a,a,-this.bearing/180*Math.PI),bc.translate(a,a,[-s[0]*this.getScale()*Mc,-s[1]*this.getScale()*Mc,0]),this.viewGL.camera.viewMatrix.array=a;var l=[];bc.invert(l,a),this.viewGL.camera.worldTransform.array=l,this.viewGL.camera.decomposeWorldTransform();var h,c=wc*this.getScale();if(this.altitudeExtent&&!isNaN(this.boxHeight)){var u=this.altitudeExtent[1]-this.altitudeExtent[0];h=this.boxHeight/u*this.getScale()/Math.pow(2,this._initialZoom-this.zoomOffset)}else h=c/(2*Math.PI*6378e3*Math.abs(Math.cos(this.center[1]*(Math.PI/180))))*this.altitudeScale*Mc;this.viewGL.rootNode.scale.set(this.getScale()*Mc,this.getScale()*Mc,h)}},getScale:function(){return Math.pow(2,this.zoom-this.zoomOffset)},projectOnTile:function(t,e){return this.projectOnTileWithScale(t,this.getScale()*wc,e)},projectOnTileWithScale:function(t,e,n){var i=t[0],r=t[1]*Tc/180,o=e*(i*Tc/180+Tc)/(2*Tc),a=e*(Tc-Math.log(Math.tan(Tc/4+.5*r)))/(2*Tc);return(n=n||[])[0]=o,n[1]=a,n},unprojectFromTile:function(t,e){return this.unprojectOnTileWithScale(t,this.getScale()*wc,e)},unprojectOnTileWithScale:function(t,e,n){var i=t[0],r=t[1],o=i/e*(2*Tc)-Tc,a=2*(Math.atan(Math.exp(Tc-r/e*(2*Tc)))-Tc/4);return(n=n||[])[0]=180*o/Tc,n[1]=180*a/Tc,n},dataToPoint:function(t,e){return(e=this.projectOnTileWithScale(t,wc,e))[0]-=this._origin[0],e[1]-=this._origin[1],e[2]=isNaN(t[2])?0:t[2],isNaN(t[2])||(e[2]=t[2],this.altitudeExtent&&(e[2]-=this.altitudeExtent[0])),e}};const Cc=Ac;function Ic(){Cc.apply(this,arguments)}Ic.prototype=new Cc,Ic.prototype.constructor=Ic,Ic.prototype.type="mapbox3D";function Ec(t,e,n){function i(t,e){var n=e.getWidth(),i=e.getHeight(),r=e.getDevicePixelRatio();this.viewGL.setViewport(0,0,n,i,r),this.width=n,this.height=i,this.altitudeScale=t.get("altitudeScale"),this.boxHeight=t.get("boxHeight")}function r(t,e){if("auto"!==this.model.get("boxHeight")){var n=[1/0,-1/0];t.eachSeries((function(t){if(t.coordinateSystem===this){var e=t.getData(),i=t.coordDimToDataDim("alt")[0];if(i){var r=e.getDataExtent(i,!0);n[0]=Math.min(n[0],r[0]),n[1]=Math.max(n[1],r[1])}}}),this),n&&isFinite(n[1]-n[0])&&(this.altitudeExtent=n)}}return{dimensions:e.prototype.dimensions,create:function(o,a){var s=[];return o.eachComponent(t,(function(t){var n=t.__viewGL;n||(n=t.__viewGL=new wl).setRootNode(new ia.Node);var o=new e;o.viewGL=t.__viewGL,o.resize=i,o.resize(t,a),s.push(o),t.coordinateSystem=o,o.model=t,o.update=r})),o.eachSeries((function(e){if(e.get("coordinateSystem")===t){var n=e.getReferringComponents(t).models[0];if(n||(n=o.getComponent(t)),!n)throw new Error(t+' "'+wo.firstNotNull(e.get(t+"Index"),e.get(t+"Id"),0)+'" not found');e.coordinateSystem=n.coordinateSystem}})),n&&n(s,o,a),s}}}const kc=Ec("mapbox3D",Ic,(function(t){t.forEach((function(t){t.setCameraOption(t.model.getMapboxCameraOption())}))}));(0,i.Yx)((function(t){t.registerComponentModel(gc),t.registerComponentView(xc),t.registerCoordinateSystem("mapbox3D",kc),t.registerAction({type:"mapbox3DChangeCamera",event:"mapbox3dcamerachanged",update:"mapbox3D:updateCamera"},(function(t,e){e.eachComponent({mainType:"mapbox3D",query:t},(function(e){e.setMapboxCameraOption(t)}))}))}));var Lc=["zoom","center","pitch","bearing"],Dc=i.jT.extend({type:"maptalks3D",layoutMode:"box",coordinateSystem:null,defaultOption:{zlevel:-10,urlTemplate:"http://{s}.basemaps.cartocdn.com/light_all/{z}/{x}/{y}.png",attribution:'© <a href="http://osm.org">OpenStreetMap</a> contributors, © <a href="https://carto.com/">CARTO</a>',center:[0,0],zoom:0,pitch:0,bearing:0,light:{main:{alpha:20,beta:30}},altitudeScale:1,boxHeight:"auto"},getMaptalksCameraOption:function(){var t=this;return Lc.reduce((function(e,n){return e[n]=t.get(n),e}),{})},setMaptalksCameraOption:function(t){null!=t&&Lc.forEach((function(e){null!=t[e]&&(this.option[e]=t[e])}),this)},getMaptalks:function(){return this._maptalks},setMaptalks:function(t){this._maptalks=t}});i.ZS.merge(Dc.prototype,ya),i.ZS.merge(Dc.prototype,_a);const Pc=Dc;function Rc(t,e,n,i){if(this.id=t,this.zr=e,this.dom=document.createElement("div"),this.dom.style.cssText="position:absolute;left:0;right:0;top:0;bottom:0;",!maptalks)throw new Error("Maptalks library must be included. See https://maptalks.org");this._maptalks=new maptalks.Map(this.dom,{center:n,zoom:i,doubleClickZoom:!1,fog:!1}),this._initEvents()}Rc.prototype.setUnpainted=function(){},Rc.prototype.resize=function(){this._maptalks.checkSize()},Rc.prototype.getMaptalks=function(){return this._maptalks},Rc.prototype.clear=function(){},Rc.prototype.refresh=function(){this._maptalks.checkSize()};var Oc=["mousedown","mouseup","click","dblclick","mousemove","mousewheel","DOMMouseScroll","touchstart","touchend","touchmove","touchcancel"];Rc.prototype._initEvents=function(){var t=this.dom;this._handlers=this._handlers||{contextmenu:function(t){return t.preventDefault(),!1}},Oc.forEach((function(e){this._handlers[e]=function(n){var i={};for(var r in n)i[r]=n[r];i.bubbles=!1;var o=new n.constructor(n.type,i);"mousewheel"===e||"DOMMouseScroll"===e?t.dispatchEvent(o):t.firstElementChild.dispatchEvent(o)},this.zr.dom.addEventListener(e,this._handlers[e])}),this),this.zr.dom.addEventListener("contextmenu",this._handlers.contextmenu)},Rc.prototype.dispose=function(){Oc.forEach((function(t){this.zr.dom.removeEventListener(t,this._handlers[t])}),this),this._maptalks.remove()};const Nc=Rc;ia.Shader.import(_c);const Fc=i.bR.extend({type:"maptalks3D",__ecgl__:!0,init:function(t,e){this._groundMesh=new ia.Mesh({geometry:new ia.PlaneGeometry,material:new ia.Material({shader:new ia.Shader({vertex:ia.Shader.source("ecgl.displayShadow.vertex"),fragment:ia.Shader.source("ecgl.displayShadow.fragment")}),depthMask:!1}),renderOrder:-100,culling:!1,castShadow:!1,$ignorePicking:!0,renderNormal:!0})},_initMaptalksLayer:function(t,e){var n=e.getZr();this._zrLayer=new Nc("maptalks3D",n,t.get("center"),t.get("zoom")),n.painter.insertLayer(-1e3,this._zrLayer),this._lightRoot=new ia.Node,this._sceneHelper=new Ba(this._lightRoot),this._sceneHelper.initLight(this._lightRoot);var i=this._zrLayer.getMaptalks(),r=this._dispatchInteractAction.bind(this,e,i);["zoomend","zooming","zoomstart","dragrotating","pitch","pitchend","movestart","moving","moveend","resize","touchstart","touchmove","touchend","animating"].forEach((function(t){i.on(t,r)}))},render:function(t,e,n){this._zrLayer||this._initMaptalksLayer(t,n);var i=this._zrLayer.getMaptalks(),r=t.get("urlTemplate"),o=i.getBaseLayer();r!==this._oldUrlTemplate&&(o?o.setOptions({urlTemplate:r,attribution:t.get("attribution")}):(o=new maptalks.TileLayer("maptalks-echarts-gl-baselayer",{urlTemplate:r,subdomains:["a","b","c"],attribution:t.get("attribution")}),i.setBaseLayer(o))),this._oldUrlTemplate=r,i.setCenter(t.get("center")),i.setZoom(t.get("zoom"),{animation:!1}),i.setPitch(t.get("pitch")),i.setBearing(t.get("bearing")),t.setMaptalks(i);var a=t.coordinateSystem;a.viewGL.scene.add(this._lightRoot),a.viewGL.add(this._groundMesh),this._updateGroundMesh(),this._sceneHelper.setScene(a.viewGL.scene),this._sceneHelper.updateLight(t),a.viewGL.setPostEffect(t.getModel("postEffect"),n),a.viewGL.setTemporalSuperSampling(t.getModel("temporalSuperSampling")),this._maptalks3DModel=t},afterRender:function(t,e,n,i){var r=i.renderer;this._sceneHelper.updateAmbientCubemap(r,t,n),this._sceneHelper.updateSkybox(r,t,n),t.coordinateSystem.viewGL.scene.traverse((function(t){t.material&&(t.material.define("fragment","NORMAL_UP_AXIS",2),t.material.define("fragment","NORMAL_FRONT_AXIS",1))}))},updateCamera:function(t,e,n,i){t.coordinateSystem.setCameraOption(i),this._updateGroundMesh(),n.getZr().refresh()},_dispatchInteractAction:function(t,e,n){var i;t.dispatchAction({type:"maptalks3DChangeCamera",pitch:e.getPitch(),zoom:(i=e.getResolution(),19-Math.log(i/Bc)/Math.LN2+1),center:e.getCenter().toArray(),bearing:e.getBearing(),maptalks3DId:this._maptalks3DModel&&this._maptalks3DModel.id})},_updateGroundMesh:function(){if(this._maptalks3DModel){var t=this._maptalks3DModel.coordinateSystem,e=t.dataToPoint(t.center);this._groundMesh.position.set(e[0],e[1],-.001);var n=new ia.Plane(new ia.Vector3(0,0,1),0),i=t.viewGL.camera.castRay(new ia.Vector2(-1,-1)),r=t.viewGL.camera.castRay(new ia.Vector2(1,1)),o=i.intersectPlane(n),a=r.intersectPlane(n),s=o.dist(a)/t.viewGL.rootNode.scale.x;this._groundMesh.scale.set(s,s,1)}},dispose:function(t,e){this._zrLayer&&this._zrLayer.dispose(),e.getZr().painter.delLayer(-1e3)}}),Bc=12756274*Math.PI/(256*Math.pow(2,20));function zc(){Cc.apply(this,arguments),this.maxPitch=85,this.zoomOffset=1}zc.prototype=new Cc,zc.prototype.constructor=zc,zc.prototype.type="maptalks3D";const Gc=Ec("maptalks3D",zc,(function(t){t.forEach((function(t){t.setCameraOption(t.model.getMaptalksCameraOption())}))}));(0,i.Yx)((function(t){t.registerComponentModel(Pc),t.registerComponentView(Fc),t.registerCoordinateSystem("maptalks3D",Gc),t.registerAction({type:"maptalks3DChangeCamera",event:"maptalks3dcamerachanged",update:"maptalks3D:updateCamera"},(function(t,e){e.eachComponent({mainType:"maptalks3D",query:t},(function(e){e.setMaptalksCameraOption(t)}))}))}));var Vc=Ea.vec3,jc=i.dw.dataStack.isDimensionStacked;const Hc=function(t,e){var n=t.getData(),r=t.get("barSize");if(null==r){var o,a,s=e.size,l=e.getAxis("x"),h=e.getAxis("y");o="category"===l.type?.7*l.getBandWidth():.6*Math.round(s[0]/Math.sqrt(n.count())),a="category"===h.type?.7*h.getBandWidth():.6*Math.round(s[1]/Math.sqrt(n.count())),r=[o,a]}else i.ZS.isArray(r)||(r=[r,r]);var c=e.getAxis("z").scale.getExtent(),u=function(t){var e=t[0],n=t[1];return!(e>0&&n>0||e<0&&n<0)}(c),d=["x","y","z"].map((function(e){return t.coordDimToDataDim(e)[0]})),p=jc(n,d[2]),f=p?n.getCalculationInfo("stackResultDimension"):d[2];n.each(d,(function(t,i,o,a){var s=n.get(f,a),l=p?s-o:u?0:c[0],h=e.dataToPoint([t,i,l]),d=e.dataToPoint([t,i,s]),g=Vc.dist(h,d),m=[0,d[1]<h[1]?-1:1,0];0===Math.abs(g)&&(g=.1);var v=[r[0],g,r[1]];n.setItemLayout(a,[h,m,v])})),n.setLayout("orient",[1,0,0])};function Wc(t,e,n){for(var i=t.getDataExtent(e),r=t.getDataExtent(n),o=i[1]-i[0]||i[0],a=r[1]-r[0]||r[0],s=new Uint8Array(2500),l=0;l<t.count();l++){var h=t.get(e,l),c=t.get(n,l),u=Math.floor((h-i[0])/o*49),d=50*Math.floor((c-r[0])/a*49)+u;s[d]=s[d]||1}var p=0;for(l=0;l<s.length;l++)s[l]&&p++;return p/s.length}var Uc=Ea.vec3,qc=i.dw.dataStack.isDimensionStacked;function Xc(t,e){var n=qc(t,e[2]);return{dimension:n?t.getCalculationInfo("stackResultDimension"):e[2],isStacked:n}}function Yc(t){t.registerLayout((function(t,e){t.eachSeriesByType("bar3D",(function(t){var e=t.coordinateSystem,n=e&&e.type;"globe"===n?function(t,e){var n=t.getData(),r=t.get("minHeight")||0,o=t.get("barSize"),a=["lng","lat","alt"].map((function(e){return t.coordDimToDataDim(e)[0]}));if(null==o){var s=e.radius*Math.PI,l=Wc(n,a[0],a[1]);o=[s/Math.sqrt(n.count()/l),s/Math.sqrt(n.count()/l)]}else i.ZS.isArray(o)||(o=[o,o]);var h=Xc(n,a);n.each(a,(function(t,i,a,s){var l=n.get(h.dimension,s),c=h.isStacked?l-a:e.altitudeAxis.scale.getExtent()[0],u=Math.max(e.altitudeAxis.dataToCoord(a),r),d=e.dataToPoint([t,i,c]),p=e.dataToPoint([t,i,l]),f=Uc.sub([],p,d);Uc.normalize(f,f);var g=[o[0],u,o[1]];n.setItemLayout(s,[d,f,g])})),n.setLayout("orient",Qe.UP.array)}(t,e):"cartesian3D"===n?Hc(t,e):"geo3D"===n?function(t,e){var n=t.getData(),r=t.get("barSize"),o=t.get("minHeight")||0,a=["lng","lat","alt"].map((function(e){return t.coordDimToDataDim(e)[0]}));if(null==r){var s=Math.min(e.size[0],e.size[2]),l=Wc(n,a[0],a[1]);r=[s/Math.sqrt(n.count()/l),s/Math.sqrt(n.count()/l)]}else i.ZS.isArray(r)||(r=[r,r]);var h=[0,1,0],c=Xc(n,a);n.each(a,(function(t,i,a,s){var l=n.get(c.dimension,s),u=c.isStacked?l-a:e.altitudeAxis.scale.getExtent()[0],d=Math.max(e.altitudeAxis.dataToCoord(a),o),p=e.dataToPoint([t,i,u]),f=[r[0],d,r[1]];n.setItemLayout(s,[p,h,f])})),n.setLayout("orient",[1,0,0])}(t,e):("mapbox3D"===n||"maptalks3D"===n)&&function(t,e){var n=t.getData(),r=t.coordDimToDataDim("lng")[0],o=t.coordDimToDataDim("lat")[0],a=t.coordDimToDataDim("alt")[0],s=t.get("barSize"),l=t.get("minHeight")||0;if(null==s){var h=n.getDataExtent(r),c=n.getDataExtent(o),u=e.dataToPoint([h[0],c[0]]),d=e.dataToPoint([h[1],c[1]]),p=Math.min(Math.abs(u[0]-d[0]),Math.abs(u[1]-d[1]))||1,f=Wc(n,r,o);s=[p/Math.sqrt(n.count()/f),p/Math.sqrt(n.count()/f)]}else i.ZS.isArray(s)||(s=[s,s]),s[0]/=e.getScale()/16,s[1]/=e.getScale()/16;var g=[0,0,1],m=[r,o,a],v=Xc(n,m);n.each(m,(function(t,i,r,o){var a=n.get(v.dimension,o),h=v.isStacked?a-r:0,c=e.dataToPoint([t,i,h]),u=e.dataToPoint([t,i,a]),d=Math.max(u[2]-c[2],l),p=[s[0],d,s[1]];n.setItemLayout(o,[c,g,p])})),n.setLayout("orient",[1,0,0])}(t,e)}))}))}var Zc={getFormattedLabel:function(t,e,n,r,o){n=n||"normal";var a=t.getData(r).getItemModel(e),s=t.getDataParams(e,r);null!=o&&s.value instanceof Array&&(s.value=s.value[o]);var l,h=a.get("normal"===n?["label","formatter"]:["emphasis","label","formatter"]);return null==h&&(h=a.get(["label","formatter"])),"function"==typeof h?(s.status=n,l=h(s)):"string"==typeof h&&(l=i.GP.formatTpl(h,s)),l},normalizeToArray:function(t){return t instanceof Array?t:null==t?[]:[t]}};const $c=Zc;function Kc(t,e,n){var r=t.getData(),o=t.getRawValue(e),a=i.ZS.isArray(o)?function(t){var o=[],a=function(t,e){var n=[];return i.ZS.each(t.dimensions,(function(i){var r=t.getDimensionInfo(i),o=r.otherDims[e];null!=o&&!1!==o&&(n[o]=r.name)})),n}(r,"tooltip");function s(t,e){var a=r.getDimensionInfo(e);if(a&&!1!==a.otherDims.tooltip){var s=a.type,l="- "+(a.tooltipName||a.name)+": "+("ordinal"===s?t+"":"time"===s?n?"":i.GP.formatTime("yyyy/MM/dd hh:mm:ss",t):i.GP.addCommas(t));l&&o.push(i.GP.encodeHTML(l))}}return a.length?i.ZS.each(a,(function(t){s(r.get(t,e),t)})):i.ZS.each(t,s),"<br/>"+o.join("<br/>")}(o):i.GP.encodeHTML(i.GP.addCommas(o)),s=r.getName(e),l=bh(r,e);i.ZS.isObject(l)&&l.colorStops&&(l=(l.colorStops[0]||{}).color),l=l||"transparent";var h=i.GP.getTooltipMarker(l),c=t.name;return"\0-"===c&&(c=""),c=c?i.GP.encodeHTML(c)+(n?": ":"<br/>"):"",n?h+c+a:c+h+(s?i.GP.encodeHTML(s)+": "+a:a)}function Jc(t,e,n){n=n||t.getSource();var r=e||i.Bo(t.get("coordinateSystem"))||["x","y","z"],o=i.dw.createDimensions(n,{dimensionsDefine:n.dimensionsDefine||t.get("dimensions"),encodeDefine:n.encodeDefine||t.get("encode"),coordDimensions:r.map((function(e){var n=t.getReferringComponents(e+"Axis3D").models[0];return{type:n&&"category"===n.get("type")?"ordinal":"float",name:e}}))});"cartesian3D"===t.get("coordinateSystem")&&o.forEach((function(e){if(r.indexOf(e.coordDim)>=0){var n=t.getReferringComponents(e.coordDim+"Axis3D").models[0];n&&"category"===n.get("type")&&(e.ordinalMeta=n.getOrdinalMeta())}}));var a=i.dw.dataStack.enableDataStack(t,o,{byIndex:!0,stackedCoordDimension:"z"}),s=new i.B8(o,t);return s.setCalculationInfo(a),s.initData(n),s}var Qc=i.rP.extend({type:"series.bar3D",dependencies:["globe"],visualStyleAccessPathvisu:"itemStyle",getInitialData:function(t,e){return Jc(this)},getFormattedLabel:function(t,e,n,i){var r=$c.getFormattedLabel(this,t,e,n,i);return null==r&&(r=this.getData().get("z",t)),r},formatTooltip:function(t){return Kc(this,t)},defaultOption:{coordinateSystem:"cartesian3D",globeIndex:0,grid3DIndex:0,zlevel:-10,bevelSize:0,bevelSmoothness:2,onGridPlane:"xy",shading:"color",minHeight:0,itemStyle:{opacity:1},label:{show:!1,distance:2,textStyle:{fontSize:14,color:"#000",backgroundColor:"rgba(255,255,255,0.7)",padding:3,borderRadius:3}},emphasis:{label:{show:!0}},animationDurationUpdate:500}});i.ZS.merge(Qc.prototype,Fl);const tu=Qc;var eu,nu,iu,ru,ou,au,su,lu,hu=Ea.vec3,cu=Ea.mat3,uu=Ci.extend((function(){return{attributes:{position:new Ci.Attribute("position","float",3,"POSITION"),normal:new Ci.Attribute("normal","float",3,"NORMAL"),color:new Ci.Attribute("color","float",4,"COLOR"),prevPosition:new Ci.Attribute("prevPosition","float",3),prevNormal:new Ci.Attribute("prevNormal","float",3)},dynamic:!0,enableNormal:!1,bevelSize:1,bevelSegments:0,_dataIndices:null,_vertexOffset:0,_triangleOffset:0}}),{resetOffset:function(){this._vertexOffset=0,this._triangleOffset=0},setBarCount:function(t){var e=this.enableNormal,n=this.getBarVertexCount()*t,i=this.getBarTriangleCount()*t;this.vertexCount!==n&&(this.attributes.position.init(n),e?this.attributes.normal.init(n):this.attributes.normal.value=null,this.attributes.color.init(n)),this.triangleCount!==i&&(this.indices=n>65535?new Uint32Array(3*i):new Uint16Array(3*i),this._dataIndices=new Uint32Array(n))},getBarVertexCount:function(){var t=this.bevelSize>0?this.bevelSegments:0;return t>0?this._getBevelBarVertexCount(t):this.enableNormal?24:8},getBarTriangleCount:function(){var t=this.bevelSize>0?this.bevelSegments:0;return t>0?this._getBevelBarTriangleCount(t):12},_getBevelBarVertexCount:function(t){return 4*(t+1)*(t+1)*2},_getBevelBarTriangleCount:function(t){return(4*t+3+1)*(2*t+1)*2+4},setColor:function(t,e){for(var n=this.getBarVertexCount(),i=n*(t+1),r=n*t;r<i;r++)this.attributes.color.set(r,e);this.dirtyAttribute("color")},getDataIndexOfVertex:function(t){return this._dataIndices?this._dataIndices[t]:null},addBar:function(){for(var t=hu.create,e=hu.scaleAndAdd,n=t(),i=t(),r=t(),o=t(),a=t(),s=t(),l=t(),h=[],c=[],u=0;u<8;u++)h[u]=t();var d=[[0,1,5,4],[2,3,7,6],[4,5,6,7],[3,2,1,0],[0,4,7,3],[1,2,6,5]],p=[0,1,2,0,2,3],f=[];for(u=0;u<d.length;u++)for(var g=d[u],m=0;m<2;m++){for(var v=[],y=0;y<3;y++)v.push(g[p[3*m+y]]);f.push(v)}return function(t,u,g,m,v,y){var _=this._vertexOffset;if(this.bevelSize>0&&this.bevelSegments>0)this._addBevelBar(t,u,g,m,this.bevelSize,this.bevelSegments,v);else{hu.copy(r,u),hu.normalize(r,r),hu.cross(o,g,r),hu.normalize(o,o),hu.cross(i,r,o),hu.normalize(o,o),hu.negate(a,i),hu.negate(s,r),hu.negate(l,o),e(h[0],t,i,m[0]/2),e(h[0],h[0],o,m[2]/2),e(h[1],t,i,m[0]/2),e(h[1],h[1],l,m[2]/2),e(h[2],t,a,m[0]/2),e(h[2],h[2],l,m[2]/2),e(h[3],t,a,m[0]/2),e(h[3],h[3],o,m[2]/2),e(n,t,r,m[1]),e(h[4],n,i,m[0]/2),e(h[4],h[4],o,m[2]/2),e(h[5],n,i,m[0]/2),e(h[5],h[5],l,m[2]/2),e(h[6],n,a,m[0]/2),e(h[6],h[6],l,m[2]/2),e(h[7],n,a,m[0]/2),e(h[7],h[7],o,m[2]/2);var x=this.attributes;if(this.enableNormal){c[0]=i,c[1]=a,c[2]=r,c[3]=s,c[4]=o,c[5]=l;for(var b=this._vertexOffset,w=0;w<d.length;w++){for(var S=3*this._triangleOffset,T=0;T<6;T++)this.indices[S++]=b+p[T];b+=4,this._triangleOffset+=2}for(w=0;w<d.length;w++){var M=c[w];for(T=0;T<4;T++){var A=d[w][T];x.position.set(this._vertexOffset,h[A]),x.normal.set(this._vertexOffset,M),x.color.set(this._vertexOffset++,v)}}}else{for(w=0;w<f.length;w++){for(S=3*this._triangleOffset,T=0;T<3;T++)this.indices[S+T]=f[w][T]+this._vertexOffset;this._triangleOffset++}for(w=0;w<h.length;w++)x.position.set(this._vertexOffset,h[w]),x.color.set(this._vertexOffset++,v)}}var C=this._vertexOffset;for(w=_;w<C;w++)this._dataIndices[w]=y}}(),_addBevelBar:(eu=hu.create(),nu=hu.create(),iu=hu.create(),ru=cu.create(),ou=[],au=[1,-1,-1,1],su=[1,1,-1,-1],lu=[2,0],function(t,e,n,i,r,o,a){hu.copy(nu,e),hu.normalize(nu,nu),hu.cross(iu,n,nu),hu.normalize(iu,iu),hu.cross(eu,nu,iu),hu.normalize(iu,iu),ru[0]=eu[0],ru[1]=eu[1],ru[2]=eu[2],ru[3]=nu[0],ru[4]=nu[1],ru[5]=nu[2],ru[6]=iu[0],ru[7]=iu[1],ru[8]=iu[2],r=Math.min(i[0],i[2])/2*r;for(var s=0;s<3;s++)ou[s]=Math.max(i[s]-2*r,0);var l=(i[0]-ou[0])/2,h=(i[1]-ou[1])/2,c=(i[2]-ou[2])/2,u=[],d=[],p=this._vertexOffset,f=[];for(s=0;s<2;s++){f[s]=f[s]=[];for(var g=0;g<=o;g++)for(var m=0;m<4;m++){(0===g&&0===s||1===s&&g===o)&&f[s].push(p);for(var v=0;v<=o;v++){var y=v/o*Math.PI/2+Math.PI/2*m,_=g/o*Math.PI/2+Math.PI/2*s;d[0]=l*Math.cos(y)*Math.sin(_),d[1]=h*Math.cos(_),d[2]=c*Math.sin(y)*Math.sin(_),u[0]=d[0]+au[m]*ou[0]/2,u[1]=d[1]+h+lu[s]*ou[1]/2,u[2]=d[2]+su[m]*ou[2]/2,Math.abs(l-h)<1e-6&&Math.abs(h-c)<1e-6||(d[0]/=l*l,d[1]/=h*h,d[2]/=c*c),hu.normalize(d,d),hu.transformMat3(u,u,ru),hu.transformMat3(d,d,ru),hu.add(u,u,t),this.attributes.position.set(p,u),this.enableNormal&&this.attributes.normal.set(p,d),this.attributes.color.set(p,a),p++}}}var x=4*o+3,b=2*o+1,w=x+1;for(m=0;m<b;m++)for(s=0;s<=x;s++){var S=m*w+s+this._vertexOffset,T=m*w+(s+1)%w+this._vertexOffset,M=(m+1)*w+(s+1)%w+this._vertexOffset,A=(m+1)*w+s+this._vertexOffset;this.setTriangleIndices(this._triangleOffset++,[M,S,T]),this.setTriangleIndices(this._triangleOffset++,[M,A,S])}this.setTriangleIndices(this._triangleOffset++,[f[0][0],f[0][2],f[0][1]]),this.setTriangleIndices(this._triangleOffset++,[f[0][0],f[0][3],f[0][2]]),this.setTriangleIndices(this._triangleOffset++,[f[1][0],f[1][1],f[1][2]]),this.setTriangleIndices(this._triangleOffset++,[f[1][0],f[1][2],f[1][3]]),this._vertexOffset=p})});i.ZS.defaults(uu.prototype,Ia),i.ZS.defaults(uu.prototype,xh);const du=uu;var pu=Ea.vec3;const fu=i.OZ.extend({type:"bar3D",__ecgl__:!0,init:function(t,e){this.groupGL=new ia.Node,this._api=e,this._labelsBuilder=new Th(256,256,e);var n=this;this._labelsBuilder.getLabelPosition=function(t,e,i){if(n._data){var r=n._data.getItemLayout(t),o=r[0],a=r[1],s=r[2][1];return pu.scaleAndAdd([],o,a,i+s)}return[0,0]},this._labelsBuilder.getMesh().renderOrder=100},render:function(t,e,n){var i=this._prevBarMesh;this._prevBarMesh=this._barMesh,this._barMesh=i,this._barMesh||(this._barMesh=new ia.Mesh({geometry:new du,shadowDepthMaterial:new ia.Material({shader:new ia.Shader(ia.Shader.source("ecgl.sm.depth.vertex"),ia.Shader.source("ecgl.sm.depth.fragment"))}),culling:"cartesian3D"===t.coordinateSystem.type,renderOrder:10,renderNormal:!0})),this.groupGL.remove(this._prevBarMesh),this.groupGL.add(this._barMesh),this.groupGL.add(this._labelsBuilder.getMesh());var r=t.coordinateSystem;if(this._doRender(t,n),r&&r.viewGL){r.viewGL.add(this.groupGL);var o=r.viewGL.isLinearSpace()?"define":"undefine";this._barMesh.material[o]("fragment","SRGB_DECODE")}this._data=t.getData(),this._labelsBuilder.updateData(this._data),this._labelsBuilder.updateLabels(),this._updateAnimation(t)},_updateAnimation:function(t){ia.updateVertexAnimation([["prevPosition","position"],["prevNormal","normal"]],this._prevBarMesh,this._barMesh,t)},_doRender:function(t,e){var n=t.getData(),i=t.get("shading"),r="color"!==i,o=this,a=this._barMesh,s="ecgl."+i;a.material&&a.material.shader.name===s||(a.material=ia.createMaterial(s,["VERTEX_COLOR"])),ia.setMaterialFromModel(i,a.material,t,e),a.geometry.enableNormal=r,a.geometry.resetOffset();var l=t.get("bevelSize"),h=t.get("bevelSmoothness");a.geometry.bevelSegments=h,a.geometry.bevelSize=l;var c=[],u=new Float32Array(4*n.count()),d=0,p=0,f=!1;n.each((function(t){if(n.hasValue(t)){var e=bh(n,t),i=wh(n,t);null==i&&(i=1),ia.parseColor(e,c),c[3]*=i,u[d++]=c[0],u[d++]=c[1],u[d++]=c[2],u[d++]=c[3],c[3]>0&&(p++,c[3]<.99&&(f=!0))}})),a.geometry.setBarCount(p);var g=n.getLayout("orient"),m=this._barIndexOfData=new Int32Array(n.count());p=0;n.each((function(t){if(n.hasValue(t)){var e=n.getItemLayout(t),i=e[0],r=e[1],a=e[2],s=4*t;c[0]=u[s++],c[1]=u[s++],c[2]=u[s++],c[3]=u[s++],c[3]>0&&(o._barMesh.geometry.addBar(i,r,g,a,c,t),m[t]=p++)}else m[t]=-1})),a.geometry.dirty(),a.geometry.updateBoundingBox();var v=a.material;v.transparent=f,v.depthMask=!f,a.geometry.sortTriangles=f,this._initHandler(t,e)},_initHandler:function(t,e){var n=t.getData(),i=this._barMesh,r="cartesian3D"===t.coordinateSystem.type;i.seriesIndex=t.seriesIndex;var o=-1;i.off("mousemove"),i.off("mouseout"),i.on("mousemove",(function(t){var a=i.geometry.getDataIndexOfVertex(t.triangle[0]);a!==o&&(this._downplay(o),this._highlight(a),this._labelsBuilder.updateLabels([a]),r&&e.dispatchAction({type:"grid3DShowAxisPointer",value:[n.get("x",a),n.get("y",a),n.get("z",a,!0)]})),o=a,i.dataIndex=a}),this),i.on("mouseout",(function(t){this._downplay(o),this._labelsBuilder.updateLabels(),o=-1,i.dataIndex=-1,r&&e.dispatchAction({type:"grid3DHideAxisPointer"})}),this)},_highlight:function(t){var e=this._data;if(e){var n=this._barIndexOfData[t];if(!(n<0)){var r=e.getItemModel(t).getModel("emphasis.itemStyle"),o=r.get("color"),a=r.get("opacity");if(null==o){var s=bh(e,t);o=i.yW.lift(s,-.4)}null==a&&(a=wh(e,t));var l=ia.parseColor(o);l[3]*=a,this._barMesh.geometry.setColor(n,l),this._api.getZr().refresh()}}},_downplay:function(t){var e=this._data;if(e){var n=this._barIndexOfData[t];if(!(n<0)){var i=bh(e,t),r=wh(e,t),o=ia.parseColor(i);o[3]*=r,this._barMesh.geometry.setColor(n,o),this._api.getZr().refresh()}}},highlight:function(t,e,n,i){this._toggleStatus("highlight",t,e,n,i)},downplay:function(t,e,n,i){this._toggleStatus("downplay",t,e,n,i)},_toggleStatus:function(t,e,n,r,o){var a=e.getData(),s=wo.queryDataIndex(a,o),l=this;null!=s?i.ZS.each($c.normalizeToArray(s),(function(e){"highlight"===t?this._highlight(e):this._downplay(e)}),this):a.each((function(e){"highlight"===t?l._highlight(e):l._downplay(e)}))},remove:function(){this.groupGL.removeAll()},dispose:function(){this._labelsBuilder.dispose(),this.groupGL.removeAll()}});(0,i.Yx)((function(t){t.registerChartView(fu),t.registerSeriesModel(tu),Yc(t),t.registerProcessor((function(t,e){t.eachSeriesByType("bar3d",(function(t){var e=t.getData();e.filterSelf((function(t){return e.hasValue(t)}))}))}))}));const gu=i.rP.extend({type:"series.line3D",dependencies:["grid3D"],visualStyleAccessPath:"lineStyle",visualDrawType:"stroke",getInitialData:function(t,e){return Jc(this)},formatTooltip:function(t){return Kc(this,t)},defaultOption:{coordinateSystem:"cartesian3D",zlevel:-10,grid3DIndex:0,lineStyle:{width:2},animationDurationUpdate:500}});var mu=n(58),vu=Ea.vec3;ia.Shader.import(es);const yu=i.OZ.extend({type:"line3D",__ecgl__:!0,init:function(t,e){this.groupGL=new ia.Node,this._api=e},render:function(t,e,n){var i=this._prevLine3DMesh;this._prevLine3DMesh=this._line3DMesh,this._line3DMesh=i,this._line3DMesh||(this._line3DMesh=new ia.Mesh({geometry:new Pa({useNativeLine:!1,sortTriangles:!0}),material:new ia.Material({shader:ia.createShader("ecgl.meshLines3D")}),renderOrder:10}),this._line3DMesh.geometry.pick=this._pick.bind(this)),this.groupGL.remove(this._prevLine3DMesh),this.groupGL.add(this._line3DMesh);var r=t.coordinateSystem;if(r&&r.viewGL){r.viewGL.add(this.groupGL);var o=r.viewGL.isLinearSpace()?"define":"undefine";this._line3DMesh.material[o]("fragment","SRGB_DECODE")}this._doRender(t,n),this._data=t.getData(),this._camera=r.viewGL.camera,this.updateCamera(),this._updateAnimation(t)},updateCamera:function(){this._updateNDCPosition()},_doRender:function(t,e){var n=t.getData(),i=this._line3DMesh;i.geometry.resetOffset();var r=n.getLayout("points"),o=[],a=new Float32Array(r.length/3*4),s=0,l=!1;n.each((function(t){var e=bh(n,t),i=wh(n,t);null==i&&(i=1),ia.parseColor(e,o),o[3]*=i,a[s++]=o[0],a[s++]=o[1],a[s++]=o[2],a[s++]=o[3],o[3]<.99&&(l=!0)})),i.geometry.setVertexCount(i.geometry.getPolylineVertexCount(r)),i.geometry.setTriangleCount(i.geometry.getPolylineTriangleCount(r)),i.geometry.addPolyline(r,a,wo.firstNotNull(t.get("lineStyle.width"),1)),i.geometry.dirty(),i.geometry.updateBoundingBox();var h=i.material;h.transparent=l,h.depthMask=!l;var c=t.getModel("debug.wireframe");c.get("show")?(i.geometry.createAttribute("barycentric","float",3),i.geometry.generateBarycentric(),i.material.set("both","WIREFRAME_TRIANGLE"),i.material.set("wireframeLineColor",ia.parseColor(c.get("lineStyle.color")||"rgba(0,0,0,0.5)")),i.material.set("wireframeLineWidth",wo.firstNotNull(c.get("lineStyle.width"),1))):i.material.set("both","WIREFRAME_TRIANGLE"),this._points=r,this._initHandler(t,e)},_updateAnimation:function(t){ia.updateVertexAnimation([["prevPosition","position"],["prevPositionPrev","positionPrev"],["prevPositionNext","positionNext"]],this._prevLine3DMesh,this._line3DMesh,t)},_initHandler:function(t,e){var n=t.getData(),i=t.coordinateSystem,r=this._line3DMesh,o=-1;r.seriesIndex=t.seriesIndex,r.off("mousemove"),r.off("mouseout"),r.on("mousemove",(function(t){var a=i.pointToData(t.point.array),s=n.indicesOfNearest("x",a[0])[0];s!==o&&(e.dispatchAction({type:"grid3DShowAxisPointer",value:[n.get("x",s),n.get("y",s),n.get("z",s)]}),r.dataIndex=s),o=s}),this),r.on("mouseout",(function(t){o=-1,r.dataIndex=-1,e.dispatchAction({type:"grid3DHideAxisPointer"})}),this)},_updateNDCPosition:function(){var t=new An,e=this._camera;An.multiply(t,e.projectionMatrix,e.viewMatrix);var n=this._positionNDC,i=this._points,r=i.length/3;n&&n.length/2===r||(n=this._positionNDC=new Float32Array(2*r));for(var o=[],a=0;a<r;a++){var s=3*a,l=2*a;o[0]=i[s],o[1]=i[s+1],o[2]=i[s+2],o[3]=1,vu.transformMat4(o,o,t.array),n[l]=o[0]/o[3],n[l+1]=o[1]/o[3]}},_pick:function(t,e,n,i,r,o){var a=this._positionNDC,s=this._data.hostModel.get("lineStyle.width"),l=-1,h=.5*n.viewport.width,c=.5*n.viewport.height;t=(t+1)*h,e=(e+1)*c;for(var u=1;u<a.length/2;u++){var d=(a[2*(u-1)]+1)*h,p=(a[2*(u-1)+1]+1)*c,f=(a[2*u]+1)*h,g=(a[2*u+1]+1)*c;if(mu.l(d,p,f,g,s,t,e))l=(d-t)*(d-t)+(p-e)*(p-e)<(f-t)*(f-t)+(g-e)*(g-e)?u-1:u}if(l>=0){var m=3*l,v=new Qe(this._points[m],this._points[m+1],this._points[m+2]);o.push({dataIndex:l,point:v,pointWorld:v.clone(),target:this._line3DMesh,distance:this._camera.getWorldPosition().dist(v)})}},remove:function(){this.groupGL.removeAll()},dispose:function(){this.groupGL.removeAll()}});(0,i.Yx)((function(t){t.registerChartView(yu),t.registerSeriesModel(gu),t.registerLayout((function(t,e){t.eachSeriesByType("line3D",(function(t){var e=t.getData(),n=t.coordinateSystem;if(n){if("cartesian3D"!==n.type)return void 0;var i=new Float32Array(3*e.count()),r=[],o=[],a=n.dimensions.map((function(e){return t.coordDimToDataDim(e)[0]}));n&&e.each(a,(function(t,e,a,s){r[0]=t,r[1]=e,r[2]=a,n.dataToPoint(r,o),i[3*s]=o[0],i[3*s+1]=o[1],i[3*s+2]=o[2]})),e.setLayout("points",i)}}))}))}));const _u=i.rP.extend({type:"series.scatter3D",dependencies:["globe","grid3D","geo3D"],visualStyleAccessPath:"itemStyle",hasSymbolVisual:!0,getInitialData:function(t,e){return Jc(this)},getFormattedLabel:function(t,e,n,i){var r=$c.getFormattedLabel(this,t,e,n,i);if(null==r){var o=this.getData(),a=o.dimensions[o.dimensions.length-1];r=o.get(a,t)}return r},formatTooltip:function(t){return Kc(this,t)},defaultOption:{coordinateSystem:"cartesian3D",zlevel:-10,progressive:1e5,progressiveThreshold:1e5,grid3DIndex:0,globeIndex:0,symbol:"circle",symbolSize:10,blendMode:"source-over",label:{show:!1,position:"right",distance:5,textStyle:{fontSize:14,color:"#000",backgroundColor:"rgba(255,255,255,0.7)",padding:3,borderRadius:3}},itemStyle:{opacity:.8},emphasis:{label:{show:!0}},animationDurationUpdate:500}});function xu(t,e,n){(e=e||document.createElement("canvas")).width=t,e.height=t;var i=e.getContext("2d");return n&&n(i),e}var bu={getMarginByStyle:function(t){var e=t.minMargin||0,n=0;t.stroke&&"none"!==t.stroke&&(n=null==t.lineWidth?1:t.lineWidth);var i=t.shadowBlur||0,r=t.shadowOffsetX||0,o=t.shadowOffsetY||0,a={};return a.left=Math.max(n/2,-r+i,e),a.right=Math.max(n/2,r+i,e),a.top=Math.max(n/2,-o+i,e),a.bottom=Math.max(n/2,o+i,e),a},createSymbolSprite:function(t,e,n,r){var o=function(t,e,n,r){i.ZS.isArray(e)||(e=[e,e]);var o=bu.getMarginByStyle(n,r),a=e[0]+o.left+o.right,s=e[1]+o.top+o.bottom,l=i.dw.createSymbol(t,0,0,e[0],e[1]),h=Math.max(a,s);l.x=o.left,l.y=o.top,a>s?l.y+=(h-s)/2:l.x+=(h-a)/2;var c=l.getBoundingRect();return l.x-=c.x,l.y-=c.y,l.setStyle(n),l.update(),l.__size=h,l}(t,e,n),a=bu.getMarginByStyle(n);return{image:xu(o.__size,r,(function(t){i.UU(t,o)})),margin:a}},createSDFFromCanvas:function(t,e,n,i){return xu(e,i,(function(e){var i=t.getContext("2d").getImageData(0,0,t.width,t.height);e.putImageData(function(t,e,n){var i=e.width,r=e.height,o=t.canvas.width,a=t.canvas.height,s=i/o,l=r/a;function h(t){return t<128?1:-1}function c(t,o){var a=1/0;t=Math.floor(t*s);for(var c=(o=Math.floor(o*l))*i+t,u=h(e.data[4*c]),d=Math.max(o-n,0);d<Math.min(o+n,r);d++)for(var p=Math.max(t-n,0);p<Math.min(t+n,i);p++){c=d*i+p;var f=p-t,g=d-o;if(u!==h(e.data[4*c])){var m=f*f+g*g;m<a&&(a=m)}}return u*Math.sqrt(a)}for(var u=t.createImageData(o,a),d=0;d<a;d++)for(var p=0;p<o;p++){var f=c(p,d)/n*.5+.5,g=4*(d*o+p);u.data[g++]=255*(1-f),u.data[g++]=255*(1-f),u.data[g++]=255*(1-f),u.data[g++]=255}return u}(e,i,n),0,0)}))},createSimpleSprite:function(t,e){return xu(t,e,(function(e){var n=t/2;e.beginPath(),e.arc(n,n,60,0,2*Math.PI,!1),e.closePath();var i=e.createRadialGradient(n,n,0,n,n,n);i.addColorStop(0,"rgba(255, 255, 255, 1)"),i.addColorStop(.5,"rgba(255, 255, 255, 0.5)"),i.addColorStop(1,"rgba(255, 255, 255, 0)"),e.fillStyle=i,e.fill()}))}};const wu=bu;var Su=Ea.vec3;const Tu={needsSortVertices:function(){return this.sortVertices},needsSortVerticesProgressively:function(){return this.needsSortVertices()&&this.vertexCount>=2e4},doSortVertices:function(t,e){var n=this.indices,i=Su.create();if(!n){n=this.indices=this.vertexCount>65535?new Uint32Array(this.vertexCount):new Uint16Array(this.vertexCount);for(var r=0;r<n.length;r++)n[r]=r}if(0===e){var o,a=this.attributes.position,s=(t=t.array,0);this._zList&&this._zList.length===this.vertexCount||(this._zList=new Float32Array(this.vertexCount));for(r=0;r<this.vertexCount;r++){a.get(r,i);var l=Su.sqrDist(i,t);isNaN(l)&&(l=1e7,s++),0===r?(o=l,l=0):l-=o,this._zList[r]=l}this._noneCount=s}if(this.vertexCount<2e4)0===e&&this._simpleSort(this._noneCount/this.vertexCount>.05);else for(r=0;r<3;r++)this._progressiveQuickSort(3*e+r);this.dirtyIndices()},_simpleSort:function(t){var e=this._zList,n=this.indices;function i(t,n){return e[n]-e[t]}t?Array.prototype.sort.call(n,i):gh.sort(n,i,0,n.length-1)},_progressiveQuickSort:function(t){var e=this._zList,n=this.indices;this._quickSort=this._quickSort||new gh,this._quickSort.step(n,(function(t,n){return e[n]-e[t]}),t)}};var Mu=Ea.vec4;ia.Shader.import("@export ecgl.sdfSprite.vertex\n\nuniform mat4 worldViewProjection : WORLDVIEWPROJECTION;\nuniform float elapsedTime : 0;\n\nattribute vec3 position : POSITION;\n\n#ifdef VERTEX_SIZE\nattribute float size;\n#else\nuniform float u_Size;\n#endif\n\n#ifdef VERTEX_COLOR\nattribute vec4 a_FillColor: COLOR;\nvarying vec4 v_Color;\n#endif\n\n#ifdef VERTEX_ANIMATION\nattribute vec3 prevPosition;\nattribute float prevSize;\nuniform float percent : 1.0;\n#endif\n\n\n#ifdef POSITIONTEXTURE_ENABLED\nuniform sampler2D positionTexture;\n#endif\n\nvarying float v_Size;\n\nvoid main()\n{\n\n#ifdef POSITIONTEXTURE_ENABLED\n gl_Position = worldViewProjection * vec4(texture2D(positionTexture, position.xy).xy, -10.0, 1.0);\n#else\n\n #ifdef VERTEX_ANIMATION\n vec3 pos = mix(prevPosition, position, percent);\n #else\n vec3 pos = position;\n #endif\n gl_Position = worldViewProjection * vec4(pos, 1.0);\n#endif\n\n#ifdef VERTEX_SIZE\n#ifdef VERTEX_ANIMATION\n v_Size = mix(prevSize, size, percent);\n#else\n v_Size = size;\n#endif\n#else\n v_Size = u_Size;\n#endif\n\n#ifdef VERTEX_COLOR\n v_Color = a_FillColor;\n #endif\n\n gl_PointSize = v_Size;\n}\n\n@end\n\n@export ecgl.sdfSprite.fragment\n\nuniform vec4 color: [1, 1, 1, 1];\nuniform vec4 strokeColor: [1, 1, 1, 1];\nuniform float smoothing: 0.07;\n\nuniform float lineWidth: 0.0;\n\n#ifdef VERTEX_COLOR\nvarying vec4 v_Color;\n#endif\n\nvarying float v_Size;\n\nuniform sampler2D sprite;\n\n@import clay.util.srgb\n\nvoid main()\n{\n gl_FragColor = color;\n\n vec4 _strokeColor = strokeColor;\n\n#ifdef VERTEX_COLOR\n gl_FragColor *= v_Color;\n #endif\n\n#ifdef SPRITE_ENABLED\n float d = texture2D(sprite, gl_PointCoord).r;\n gl_FragColor.a *= smoothstep(0.5 - smoothing, 0.5 + smoothing, d);\n\n if (lineWidth > 0.0) {\n float sLineWidth = lineWidth / 2.0;\n\n float outlineMaxValue0 = 0.5 + sLineWidth;\n float outlineMaxValue1 = 0.5 + sLineWidth + smoothing;\n float outlineMinValue0 = 0.5 - sLineWidth - smoothing;\n float outlineMinValue1 = 0.5 - sLineWidth;\n\n if (d <= outlineMaxValue1 && d >= outlineMinValue0) {\n float a = _strokeColor.a;\n if (d <= outlineMinValue1) {\n a = a * smoothstep(outlineMinValue0, outlineMinValue1, d);\n }\n else {\n a = a * smoothstep(outlineMaxValue1, outlineMaxValue0, d);\n }\n gl_FragColor.rgb = mix(gl_FragColor.rgb * gl_FragColor.a, _strokeColor.rgb, a);\n gl_FragColor.a = gl_FragColor.a * (1.0 - a) + a;\n }\n }\n#endif\n\n#ifdef SRGB_DECODE\n gl_FragColor = sRGBToLinear(gl_FragColor);\n#endif\n}\n@end");var Au=ia.Mesh.extend((function(){var t=new ia.Geometry({dynamic:!0,attributes:{color:new ia.Geometry.Attribute("color","float",4,"COLOR"),position:new ia.Geometry.Attribute("position","float",3,"POSITION"),size:new ia.Geometry.Attribute("size","float",1),prevPosition:new ia.Geometry.Attribute("prevPosition","float",3),prevSize:new ia.Geometry.Attribute("prevSize","float",1)}});Object.assign(t,Tu);var e=new ia.Material({shader:ia.createShader("ecgl.sdfSprite"),transparent:!0,depthMask:!1});e.enableTexture("sprite"),e.define("both","VERTEX_COLOR"),e.define("both","VERTEX_SIZE");var n=new ia.Texture2D({image:document.createElement("canvas"),flipY:!1});return e.set("sprite",n),t.pick=this._pick.bind(this),{geometry:t,material:e,mode:ia.Mesh.POINTS,sizeScale:1}}),{_pick:function(t,e,n,i,r,o){var a=this._positionNDC;if(a)for(var s=n.viewport,l=2/s.width,h=2/s.height,c=this.geometry.vertexCount-1;c>=0;c--){var u,d=a[2*(u=this.geometry.indices?this.geometry.indices[c]:c)],p=a[2*u+1],f=this.geometry.attributes.size.get(u)/this.sizeScale/2;if(t>d-f*l&&t<d+f*l&&e>p-f*h&&e<p+f*h){var g=new ia.Vector3,m=new ia.Vector3;this.geometry.attributes.position.get(u,g.array),ia.Vector3.transformMat4(m,g,this.worldTransform),o.push({vertexIndex:u,point:g,pointWorld:m,target:this,distance:m.distance(i.getWorldPosition())})}}},updateNDCPosition:function(t,e,n){var i=this._positionNDC,r=this.geometry;i&&i.length/2===r.vertexCount||(i=this._positionNDC=new Float32Array(2*r.vertexCount));for(var o=Mu.create(),a=0;a<r.vertexCount;a++)r.attributes.position.get(a,o),o[3]=1,Mu.transformMat4(o,o,t.array),Mu.scale(o,o,1/o[3]),i[2*a]=o[0],i[2*a+1]=o[1]}});const Cu=Au;function Iu(t,e){this.rootNode=new ia.Node,this.is2D=t,this._labelsBuilder=new Th(256,256,e),this._labelsBuilder.getMesh().renderOrder=100,this.rootNode.add(this._labelsBuilder.getMesh()),this._api=e,this._spriteImageCanvas=document.createElement("canvas"),this._startDataIndex=0,this._endDataIndex=0,this._sizeScale=1}Iu.prototype={constructor:Iu,highlightOnMouseover:!0,update:function(t,e,n,i,r){var o=this._prevMesh;this._prevMesh=this._mesh,this._mesh=o;var a=t.getData();if(null==i&&(i=0),null==r&&(r=a.count()),this._startDataIndex=i,this._endDataIndex=r-1,!this._mesh){var s=this._prevMesh&&this._prevMesh.material;this._mesh=new Cu({renderOrder:10,frustumCulling:!1}),s&&(this._mesh.material=s)}s=this._mesh.material;var l=this._mesh.geometry,h=l.attributes;this.rootNode.remove(this._prevMesh),this.rootNode.add(this._mesh),this._setPositionTextureToMesh(this._mesh,this._positionTexture);var c=this._getSymbolInfo(t,i,r),u=n.getDevicePixelRatio(),d=t.getModel("itemStyle").getItemStyle(),p=t.get("large"),f=1;c.maxSize>2?(f=this._updateSymbolSprite(t,d,c,u),s.enableTexture("sprite")):s.disableTexture("sprite"),h.position.init(r-i);var g=[];if(p){s.undefine("VERTEX_SIZE"),s.undefine("VERTEX_COLOR");var m=function(t){const e=t.getVisual("style");if(e)return e[t.getVisual("drawType")]}(a),v=function(t){return t.getVisual("style").opacity}(a);ia.parseColor(m,g),g[3]*=v,s.set({color:g,u_Size:c.maxSize*this._sizeScale})}else s.set({color:[1,1,1,1]}),s.define("VERTEX_SIZE"),s.define("VERTEX_COLOR"),h.size.init(r-i),h.color.init(r-i),this._originalOpacity=new Float32Array(r-i);for(var y=a.getLayout("points"),_=h.position.value,x=0;x<r-i;x++){var b=3*x,w=2*x;if(this.is2D?(_[b]=y[w],_[b+1]=y[w+1],_[b+2]=-10):(_[b]=y[b],_[b+1]=y[b+1],_[b+2]=y[b+2]),!p){m=bh(a,x),v=wh(a,x);ia.parseColor(m,g),g[3]*=v,h.color.set(x,g),g[3]<.99&&!0;var S=a.getItemVisual(x,"symbolSize");S=S instanceof Array?Math.max(S[0],S[1]):S,isNaN(S)&&(S=0),h.size.value[x]=S*f*this._sizeScale,this._originalOpacity[x]=g[3]}}this._mesh.sizeScale=f,l.updateBoundingBox(),l.dirty(),this._updateMaterial(t,d);var T=t.coordinateSystem;T&&T.viewGL&&s[T.viewGL.isLinearSpace()?"define":"undefine"]("fragment","SRGB_DECODE");p||this._updateLabelBuilder(t,i,r),this._updateHandler(t,e,n),this._updateAnimation(t),this._api=n},getPointsMesh:function(){return this._mesh},updateLabels:function(t){this._labelsBuilder.updateLabels(t)},hideLabels:function(){this.rootNode.remove(this._labelsBuilder.getMesh())},showLabels:function(){this.rootNode.add(this._labelsBuilder.getMesh())},dispose:function(){this._labelsBuilder.dispose()},_updateSymbolSprite:function(t,e,n,i){n.maxSize=Math.min(2*n.maxSize,200);var r=[];return n.aspect>1?(r[0]=n.maxSize,r[1]=n.maxSize/n.aspect):(r[1]=n.maxSize,r[0]=n.maxSize*n.aspect),r[0]=r[0]||1,r[1]=r[1]||1,this._symbolType===n.type&&function(t,e){return t&&e&&t[0]===e[0]&&t[1]===e[1]}(this._symbolSize,r)&&this._lineWidth===e.lineWidth||(wu.createSymbolSprite(n.type,r,{fill:"#fff",lineWidth:e.lineWidth,stroke:"transparent",shadowColor:"transparent",minMargin:Math.min(r[0]/2,10)},this._spriteImageCanvas),wu.createSDFFromCanvas(this._spriteImageCanvas,Math.min(this._spriteImageCanvas.width,32),20,this._mesh.material.get("sprite").image),this._symbolType=n.type,this._symbolSize=r,this._lineWidth=e.lineWidth),this._spriteImageCanvas.width/n.maxSize*i},_updateMaterial:function(t,e){var n="lighter"===t.get("blendMode")?ia.additiveBlend:null,i=this._mesh.material;i.blend=n,i.set("lineWidth",e.lineWidth/20);var r=ia.parseColor(e.stroke);i.set("strokeColor",r),i.transparent=!0,i.depthMask=!1,i.depthTest=!this.is2D,i.sortVertices=!this.is2D},_updateLabelBuilder:function(t,e,n){var i=t.getData(),r=this._mesh.geometry,o=r.attributes.position.value,a=(e=this._startDataIndex,this._mesh.sizeScale);this._labelsBuilder.updateData(i,e,n),this._labelsBuilder.getLabelPosition=function(t,n,i){var r=3*(t-e);return[o[r],o[r+1],o[r+2]]},this._labelsBuilder.getLabelDistance=function(t,n,i){return r.attributes.size.get(t-e)/a/2+i},this._labelsBuilder.updateLabels()},_updateAnimation:function(t){ia.updateVertexAnimation([["prevPosition","position"],["prevSize","size"]],this._prevMesh,this._mesh,t)},_updateHandler:function(t,e,n){var i,r=t.getData(),o=this._mesh,a=this,s=-1,l=t.coordinateSystem&&"cartesian3D"===t.coordinateSystem.type;l&&(i=t.coordinateSystem.model),o.seriesIndex=t.seriesIndex,o.off("mousemove"),o.off("mouseout"),o.on("mousemove",(function(e){var h=e.vertexIndex+a._startDataIndex;h!==s&&(this.highlightOnMouseover&&(this.downplay(r,s),this.highlight(r,h),this._labelsBuilder.updateLabels([h])),l&&n.dispatchAction({type:"grid3DShowAxisPointer",value:[r.get(t.coordDimToDataDim("x")[0],h),r.get(t.coordDimToDataDim("y")[0],h),r.get(t.coordDimToDataDim("z")[0],h)],grid3DIndex:i.componentIndex})),o.dataIndex=h,s=h}),this),o.on("mouseout",(function(t){var e=t.vertexIndex+a._startDataIndex;this.highlightOnMouseover&&(this.downplay(r,e),this._labelsBuilder.updateLabels()),s=-1,o.dataIndex=-1,l&&n.dispatchAction({type:"grid3DHideAxisPointer",grid3DIndex:i.componentIndex})}),this)},updateLayout:function(t,e,n){var i=t.getData();if(this._mesh){var r=this._mesh.geometry.attributes.position.value,o=i.getLayout("points");if(this.is2D)for(var a=0;a<o.length/2;a++){var s=3*a,l=2*a;r[s]=o[l],r[s+1]=o[l+1],r[s+2]=-10}else for(a=0;a<o.length;a++)r[a]=o[a];this._mesh.geometry.dirty(),n.getZr().refresh()}},updateView:function(t){if(this._mesh){var e=new An;An.mul(e,t.viewMatrix,this._mesh.worldTransform),An.mul(e,t.projectionMatrix,e),this._mesh.updateNDCPosition(e,this.is2D,this._api)}},highlight:function(t,e){if(!(e>this._endDataIndex||e<this._startDataIndex)){var n=t.getItemModel(e).getModel("emphasis.itemStyle"),r=n.get("color"),o=n.get("opacity");if(null==r){var a=bh(t,e);r=i.yW.lift(a,-.4)}null==o&&(o=wh(t,e));var s=ia.parseColor(r);s[3]*=o,this._mesh.geometry.attributes.color.set(e-this._startDataIndex,s),this._mesh.geometry.dirtyAttribute("color"),this._api.getZr().refresh()}},downplay:function(t,e){if(!(e>this._endDataIndex||e<this._startDataIndex)){var n=bh(t,e),i=wh(t,e),r=ia.parseColor(n);r[3]*=i,this._mesh.geometry.attributes.color.set(e-this._startDataIndex,r),this._mesh.geometry.dirtyAttribute("color"),this._api.getZr().refresh()}},fadeOutAll:function(t){if(this._originalOpacity){for(var e=this._mesh.geometry,n=0;n<e.vertexCount;n++){var i=this._originalOpacity[n]*t;e.attributes.color.value[4*n+3]=i}e.dirtyAttribute("color"),this._api.getZr().refresh()}},fadeInAll:function(){this.fadeOutAll(1)},setPositionTexture:function(t){this._mesh&&this._setPositionTextureToMesh(this._mesh,t),this._positionTexture=t},removePositionTexture:function(){this._positionTexture=null,this._mesh&&this._setPositionTextureToMesh(this._mesh,null)},setSizeScale:function(t){if(t!==this._sizeScale){if(this._mesh){var e=this._mesh.material.get("u_Size");this._mesh.material.set("u_Size",e/this._sizeScale*t);var n=this._mesh.geometry.attributes;if(n.size.value)for(var i=0;i<n.size.value.length;i++)n.size.value[i]=n.size.value[i]/this._sizeScale*t}this._sizeScale=t}},_setPositionTextureToMesh:function(t,e){e&&t.material.set("positionTexture",e),t.material[e?"enableTexture":"disableTexture"]("positionTexture")},_getSymbolInfo:function(t,e,n){if(t.get("large"))return(h=wo.firstNotNull(t.get("symbolSize"),1))instanceof Array?(a=Math.max(h[0],h[1]),i=h[0]/h[1]):(a=h,i=1),{maxSize:h,type:t.get("symbol"),aspect:i};for(var i,r=t.getData(),o=r.getItemVisual(0,"symbol")||"circle",a=0,s=e;s<n;s++){var l,h=r.getItemVisual(s,"symbolSize"),c=r.getItemVisual(s,"symbol");if(h instanceof Array)l=h[0]/h[1],a=Math.max(Math.max(h[0],h[1]),a);else{if(isNaN(h))continue;l=1,a=Math.max(h,a)}0,o=c,i=l}return{maxSize:a,type:o,aspect:i}}};const Eu=Iu,ku=i.OZ.extend({type:"scatter3D",hasSymbolVisual:!0,__ecgl__:!0,init:function(t,e){this.groupGL=new ia.Node,this._pointsBuilderList=[],this._currentStep=0},render:function(t,e,n){if(this.groupGL.removeAll(),t.getData().count()){var i=t.coordinateSystem;if(i&&i.viewGL){i.viewGL.add(this.groupGL),this._camera=i.viewGL.camera;var r=this._pointsBuilderList[0];r||(r=this._pointsBuilderList[0]=new Eu(!1,n)),this._pointsBuilderList.length=1,this.groupGL.add(r.rootNode),r.update(t,e,n),r.updateView(i.viewGL.camera)}else 0}},incrementalPrepareRender:function(t,e,n){var i=t.coordinateSystem;i&&i.viewGL&&(i.viewGL.add(this.groupGL),this._camera=i.viewGL.camera),this.groupGL.removeAll(),this._currentStep=0},incrementalRender:function(t,e,n,i){if(!(t.end<=t.start)){var r=this._pointsBuilderList[this._currentStep];r||(r=new Eu(!1,i),this._pointsBuilderList[this._currentStep]=r),this.groupGL.add(r.rootNode),r.update(e,n,i,t.start,t.end),r.updateView(e.coordinateSystem.viewGL.camera),this._currentStep++}},updateCamera:function(){this._pointsBuilderList.forEach((function(t){t.updateView(this._camera)}),this)},highlight:function(t,e,n,i){this._toggleStatus("highlight",t,e,n,i)},downplay:function(t,e,n,i){this._toggleStatus("downplay",t,e,n,i)},_toggleStatus:function(t,e,n,r,o){var a=e.getData(),s=wo.queryDataIndex(a,o),l="highlight"===t;null!=s?i.ZS.each($c.normalizeToArray(s),(function(t){for(var e=0;e<this._pointsBuilderList.length;e++){var n=this._pointsBuilderList[e];l?n.highlight(a,t):n.downplay(a,t)}}),this):a.each((function(t){for(var e=0;e<this._pointsBuilderList.length;e++){var n=this._pointsBuilderList[e];l?n.highlight(a,t):n.downplay(a,t)}}))},dispose:function(){this._pointsBuilderList.forEach((function(t){t.dispose()})),this.groupGL.removeAll()},remove:function(){this.groupGL.removeAll()}});(0,i.Yx)((function(t){t.registerChartView(ku),t.registerSeriesModel(_u),t.registerLayout({seriesType:"scatter3D",reset:function(t){var e=t.coordinateSystem;if(e){var n=e.dimensions;if(n.length<3)return void 0;var i=n.map((function(e){return t.coordDimToDataDim(e)[0]})),r=[],o=[];return{progress:function(t,n){for(var a=new Float32Array(3*(t.end-t.start)),s=t.start;s<t.end;s++){var l=3*(s-t.start);r[0]=n.get(i[0],s),r[1]=n.get(i[1],s),r[2]=n.get(i[2],s),e.dataToPoint(r,o),a[l]=o[0],a[l+1]=o[1],a[l+2]=o[2]}n.setLayout("points",a)}}}}})}));var Lu=Ea.vec3,Du=Ea.vec2,Pu=Lu.normalize,Ru=Lu.cross,Ou=Lu.sub,Nu=Lu.add,Fu=Lu.create,Bu=Fu(),zu=Fu(),Gu=Fu(),Vu=Fu(),ju=[],Hu=[];function Wu(t,e){Du.copy(ju,t[0]),Du.copy(Hu,t[1]);var n=[],i=n[0]=Fu(),r=n[1]=Fu(),o=n[2]=Fu(),a=n[3]=Fu();e.dataToPoint(ju,i),e.dataToPoint(Hu,a),Pu(Bu,i),Ou(zu,a,i),Pu(zu,zu),Ru(Gu,zu,Bu),Pu(Gu,Gu),Ru(zu,Bu,Gu),Nu(r,Bu,zu),Pu(r,r),Pu(Bu,a),Ou(zu,i,a),Pu(zu,zu),Ru(Gu,zu,Bu),Pu(Gu,Gu),Ru(zu,Bu,Gu),Nu(o,Bu,zu),Pu(o,o),Nu(Vu,i,a),Pu(Vu,Vu);var s=Lu.dot(i,Vu),l=Lu.dot(Vu,r),h=(Math.max(Lu.len(i),Lu.len(a))-s)/l*2;return Lu.scaleAndAdd(r,i,r,h),Lu.scaleAndAdd(o,a,o,h),n}function Uu(t,e){for(var n=new Float32Array(3*t.length),i=0,r=[],o=0;o<t.length;o++)e.dataToPoint(t[o],r),n[i++]=r[0],n[i++]=r[1],n[i++]=r[2];return n}function qu(t){var e=[];return t.each((function(n){var i=t.getItemModel(n),r=i.option instanceof Array?i.option:i.getShallow("coords",!0);e.push(r)})),{coordsList:e}}function Xu(t,e,n){var i=t.getData(),r=t.get("polyline"),o=qu(i);i.setLayout("lineType",r?"polyline":"cubicBezier"),i.each((function(t){var a=o.coordsList[t],s=r?Uu(a,e):function(t,e,n){var i=[],r=i[0]=Lu.create(),o=i[1]=Lu.create(),a=i[2]=Lu.create(),s=i[3]=Lu.create();e.dataToPoint(t[0],r),e.dataToPoint(t[1],s);var l=Lu.dist(r,s);return Lu.lerp(o,r,s,.3),Lu.lerp(a,r,s,.3),Lu.scaleAndAdd(o,o,n,Math.min(.1*l,10)),Lu.scaleAndAdd(a,a,n,Math.min(.1*l,10)),i}(a,e,n);i.setItemLayout(t,s)}))}function Yu(t,e){t.eachSeriesByType("lines3D",(function(t){var e=t.coordinateSystem;"globe"===e.type?function(t,e){var n=t.getData(),i=t.get("polyline");n.setLayout("lineType",i?"polyline":"cubicBezier");var r=qu(n);n.each((function(t){var o=r.coordsList[t],a=i?Uu:Wu;n.setItemLayout(t,a(o,e))}))}(t,e):"geo3D"===e.type?Xu(t,e,[0,1,0]):"mapbox3D"!==e.type&&"maptalks3D"!==e.type||Xu(t,e,[0,0,1])}))}const Zu=i.rP.extend({type:"series.lines3D",dependencies:["globe"],visualStyleAccessPath:"lineStyle",visualDrawType:"stroke",getInitialData:function(t,e){var n=new i.B8(["value"],this);return n.hasItemOption=!1,n.initData(t.data,[],(function(t,e,i,r){if(t instanceof Array)return NaN;n.hasItemOption=!0;var o=t.value;return null!=o?o instanceof Array?o[r]:o:void 0})),n},defaultOption:{coordinateSystem:"globe",globeIndex:0,geo3DIndex:0,zlevel:-10,polyline:!1,effect:{show:!1,period:4,trailWidth:4,trailLength:.2,spotIntensity:6},silent:!0,blendMode:"source-over",lineStyle:{width:1,opacity:.5}}});var $u=Ea.vec3;function Ku(t){return t>0?1:-1}ia.Shader.import("@export ecgl.trail2.vertex\nattribute vec3 position: POSITION;\nattribute vec3 positionPrev;\nattribute vec3 positionNext;\nattribute float offset;\nattribute float dist;\nattribute float distAll;\nattribute float start;\n\nattribute vec4 a_Color : COLOR;\n\nuniform mat4 worldViewProjection : WORLDVIEWPROJECTION;\nuniform vec4 viewport : VIEWPORT;\nuniform float near : NEAR;\n\nuniform float speed : 0;\nuniform float trailLength: 0.3;\nuniform float time;\nuniform float period: 1000;\n\nuniform float spotSize: 1;\n\nvarying vec4 v_Color;\nvarying float v_Percent;\nvarying float v_SpotPercent;\n\n@import ecgl.common.wireframe.vertexHeader\n\n@import ecgl.lines3D.clipNear\n\nvoid main()\n{\n @import ecgl.lines3D.expandLine\n\n gl_Position = currProj;\n\n v_Color = a_Color;\n\n @import ecgl.common.wireframe.vertexMain\n\n#ifdef CONSTANT_SPEED\n float t = mod((speed * time + start) / distAll, 1. + trailLength) - trailLength;\n#else\n float t = mod((time + start) / period, 1. + trailLength) - trailLength;\n#endif\n\n float trailLen = distAll * trailLength;\n\n v_Percent = (dist - t * distAll) / trailLen;\n\n v_SpotPercent = spotSize / distAll;\n\n }\n@end\n\n\n@export ecgl.trail2.fragment\n\nuniform vec4 color : [1.0, 1.0, 1.0, 1.0];\nuniform float spotIntensity: 5;\n\nvarying vec4 v_Color;\nvarying float v_Percent;\nvarying float v_SpotPercent;\n\n@import ecgl.common.wireframe.fragmentHeader\n\n@import clay.util.srgb\n\nvoid main()\n{\n if (v_Percent > 1.0 || v_Percent < 0.0) {\n discard;\n }\n\n float fade = v_Percent;\n\n#ifdef SRGB_DECODE\n gl_FragColor = sRGBToLinear(color * v_Color);\n#else\n gl_FragColor = color * v_Color;\n#endif\n\n @import ecgl.common.wireframe.fragmentMain\n\n if (v_Percent > (1.0 - v_SpotPercent)) {\n gl_FragColor.rgb *= spotIntensity;\n }\n\n gl_FragColor.a *= fade;\n}\n\n@end");const Ju=ia.Mesh.extend((function(){var t=new ia.Material({shader:new ia.Shader(ia.Shader.source("ecgl.trail2.vertex"),ia.Shader.source("ecgl.trail2.fragment")),transparent:!0,depthMask:!1}),e=new Pa({dynamic:!0});return e.createAttribute("dist","float",1),e.createAttribute("distAll","float",1),e.createAttribute("start","float",1),{geometry:e,material:t,culling:!1,$ignorePicking:!0}}),{updateData:function(t,e,n){var i=t.hostModel,r=this.geometry,o=i.getModel("effect"),a=o.get("trailWidth")*e.getDevicePixelRatio(),s=o.get("trailLength"),l=i.get("effect.constantSpeed"),h=1e3*i.get("effect.period"),c=null!=l;c?this.material.set("speed",l/1e3):this.material.set("period",h),this.material[c?"define":"undefine"]("vertex","CONSTANT_SPEED");var u=i.get("polyline");r.trailLength=s,this.material.set("trailLength",s),r.resetOffset(),["position","positionPrev","positionNext"].forEach((function(t){r.attributes[t].value=n.attributes[t].value}));["dist","distAll","start","offset","color"].forEach((function(t){r.attributes[t].init(r.vertexCount)})),r.indices=n.indices;var d=[],p=o.get("trailColor"),f=o.get("trailOpacity"),g=null!=p,m=null!=f;this.updateWorldTransform();var v=this.worldTransform.x.len(),y=this.worldTransform.y.len(),_=this.worldTransform.z.len(),x=0,b=0;t.each((function(e){var i=t.getItemLayout(e),o=m?f:wh(t,e),s=bh(t,e);null==o&&(o=1),(d=ia.parseColor(g?p:s,d))[3]*=o;for(var l=u?n.getPolylineVertexCount(i):n.getCubicCurveVertexCount(i[0],i[1],i[2],i[3]),w=0,S=[],T=[],M=x;M<x+l;M++)r.attributes.position.get(M,S),S[0]*=v,S[1]*=y,S[2]*=_,M>x&&(w+=$u.dist(S,T)),r.attributes.dist.set(M,w),$u.copy(T,S);b=Math.max(b,w);var A=Math.random()*(c?w:h);for(M=x;M<x+l;M++)r.attributes.distAll.set(M,w),r.attributes.start.set(M,A),r.attributes.offset.set(M,Ku(n.attributes.offset.get(M))*a/2),r.attributes.color.set(M,d);x+=l})),this.material.set("spotSize",.1*b*s),this.material.set("spotIntensity",o.get("spotIntensity")),r.dirty()},setAnimationTime:function(t){this.material.set("time",t)}});ia.Shader.import(es);const Qu=i.OZ.extend({type:"lines3D",__ecgl__:!0,init:function(t,e){this.groupGL=new ia.Node,this._meshLinesMaterial=new ia.Material({shader:ia.createShader("ecgl.meshLines3D"),transparent:!0,depthMask:!1}),this._linesMesh=new ia.Mesh({geometry:new Pa,material:this._meshLinesMaterial,$ignorePicking:!0}),this._trailMesh=new Ju},render:function(t,e,n){this.groupGL.add(this._linesMesh);var i=t.coordinateSystem,r=t.getData();if(i&&i.viewGL){i.viewGL.add(this.groupGL),this._updateLines(t,e,n);var o=i.viewGL.isLinearSpace()?"define":"undefine";this._linesMesh.material[o]("fragment","SRGB_DECODE"),this._trailMesh.material[o]("fragment","SRGB_DECODE")}var a=this._trailMesh;if(a.stopAnimation(),t.get("effect.show")){this.groupGL.add(a),a.updateData(r,n,this._linesMesh.geometry),a.__time=a.__time||0;var s=36e5;this._curveEffectsAnimator=a.animate("",{loop:!0}).when(s,{__time:s}).during((function(){a.setAnimationTime(a.__time)})).start()}else this.groupGL.remove(a),this._curveEffectsAnimator=null;this._linesMesh.material.blend=this._trailMesh.material.blend="lighter"===t.get("blendMode")?ia.additiveBlend:null},pauseEffect:function(){this._curveEffectsAnimator&&this._curveEffectsAnimator.pause()},resumeEffect:function(){this._curveEffectsAnimator&&this._curveEffectsAnimator.resume()},toggleEffect:function(){var t=this._curveEffectsAnimator;t&&(t.isPaused()?t.resume():t.pause())},_updateLines:function(t,e,n){var i=t.getData(),r=t.coordinateSystem,o=this._linesMesh.geometry,a=t.get("polyline");o.expandLine=!0;var s=function(t){return null!=t.radius?t.radius:null!=t.size?Math.max(t.size[0],t.size[1],t.size[2]):100}(r);o.segmentScale=s/20;var l="lineStyle.width".split("."),h=n.getDevicePixelRatio(),c=0;i.each((function(t){var e=i.getItemModel(t).get(l);null==e&&(e=1),i.setItemVisual(t,"lineWidth",e),c=Math.max(e,c)})),o.useNativeLine=!1;var u=0,d=0;i.each((function(t){var e=i.getItemLayout(t);a?(u+=o.getPolylineVertexCount(e),d+=o.getPolylineTriangleCount(e)):(u+=o.getCubicCurveVertexCount(e[0],e[1],e[2],e[3]),d+=o.getCubicCurveTriangleCount(e[0],e[1],e[2],e[3]))})),o.setVertexCount(u),o.setTriangleCount(d),o.resetOffset();var p=[];i.each((function(t){var e=i.getItemLayout(t),n=bh(i,t),r=wh(i,t),s=i.getItemVisual(t,"lineWidth")*h;null==r&&(r=1),(p=ia.parseColor(n,p))[3]*=r,a?o.addPolyline(e,p,s):o.addCubicCurve(e[0],e[1],e[2],e[3],p,s)})),o.dirty()},remove:function(){this.groupGL.removeAll()},dispose:function(){this.groupGL.removeAll()}});function td(t,e){for(var n=[],i=0;i<e.length;i++)n.push(t.dataToPoint(e[i]));return n}(0,i.Yx)((function(t){t.registerChartView(Qu),t.registerSeriesModel(Zu),t.registerLayout(Yu),t.registerAction({type:"lines3DPauseEffect",event:"lines3deffectpaused",update:"series.lines3D:pauseEffect"},(function(){})),t.registerAction({type:"lines3DResumeEffect",event:"lines3deffectresumed",update:"series.lines3D:resumeEffect"},(function(){})),t.registerAction({type:"lines3DToggleEffect",event:"lines3deffectchanged",update:"series.lines3D:toggleEffect"},(function(){}))}));var ed=i.rP.extend({type:"series.polygons3D",getRegionModel:function(t){return this.getData().getItemModel(t)},getRegionPolygonCoords:function(t){var e=this.coordinateSystem,n=this.getData().getItemModel(t),i=n.option instanceof Array?n.option:n.getShallow("coords");n.get("multiPolygon")||(i=[i]);for(var r=[],o=0;o<i.length;o++){for(var a=[],s=1;s<i[o].length;s++)a.push(td(e,i[o][s]));r.push({exterior:td(e,i[o][0]),interiors:a})}return r},getInitialData:function(t){var e=new i.B8(["value"],this);return e.hasItemOption=!1,e.initData(t.data,[],(function(t,n,i,r){if(t instanceof Array)return NaN;e.hasItemOption=!0;var o=t.value;return null!=o?o instanceof Array?o[r]:o:void 0})),e},defaultOption:{show:!0,data:null,multiPolygon:!1,progressiveThreshold:1e3,progressive:1e3,zlevel:-10,label:{show:!1,distance:2,textStyle:{fontSize:20,color:"#000",backgroundColor:"rgba(255,255,255,0.7)",padding:3,borderRadius:4}},itemStyle:{color:"#fff",borderWidth:0,borderColor:"#333"},emphasis:{itemStyle:{color:"#639fc0"},label:{show:!0}}}});i.ZS.merge(ed.prototype,Fl);const nd=ed,id=i.OZ.extend({type:"polygons3D",__ecgl__:!0,init:function(t,e){this.groupGL=new ia.Node,this._geo3DBuilderList=[],this._currentStep=0},render:function(t,e,n){this.groupGL.removeAll();var i=t.coordinateSystem;i&&i.viewGL&&i.viewGL.add(this.groupGL);var r=this._geo3DBuilderList[0];r||((r=new Ch(n)).extrudeY="mapbox3D"!==i.type&&"maptalks3D"!==i.type,this._geo3DBuilderList[0]=r),this._updateShaderDefines(i,r),r.update(t,e,n),this._geo3DBuilderList.length=1,this.groupGL.add(r.rootNode)},incrementalPrepareRender:function(t,e,n){this.groupGL.removeAll();var i=t.coordinateSystem;i&&i.viewGL&&i.viewGL.add(this.groupGL),this._currentStep=0},incrementalRender:function(t,e,n,i){var r=this._geo3DBuilderList[this._currentStep],o=e.coordinateSystem;r||((r=new Ch(i)).extrudeY="mapbox3D"!==o.type&&"maptalks3D"!==o.type,this._geo3DBuilderList[this._currentStep]=r),r.update(e,n,i,t.start,t.end),this.groupGL.add(r.rootNode),this._updateShaderDefines(o,r),this._currentStep++},_updateShaderDefines:function(t,e){var n=t.viewGL.isLinearSpace()?"define":"undefine";e.rootNode.traverse((function(e){e.material&&(e.material[n]("fragment","SRGB_DECODE"),"mapbox3D"!==t.type&&"maptalks3D"!==t.type||(e.material.define("fragment","NORMAL_UP_AXIS",2),e.material.define("fragment","NORMAL_FRONT_AXIS",1)))}))},remove:function(){this.groupGL.removeAll()},dispose:function(){this.groupGL.removeAll(),this._geo3DBuilderList.forEach((function(t){t.dispose()}))}});(0,i.Yx)((function(t){t.registerChartView(id),t.registerSeriesModel(nd)}));var rd=i.rP.extend({type:"series.surface",dependencies:["globe","grid3D","geo3D"],visualStyleAccessPath:"itemStyle",formatTooltip:function(t){return Kc(this,t)},getInitialData:function(t,e){var n=t.data;function r(t){return!(isNaN(t.min)||isNaN(t.max)||isNaN(t.step))}function o(t){var e=i.ai.getPrecisionSafe;return Math.max(e(t.min),e(t.max),e(t.step))+1}if(!n)if(t.parametric){var a=t.parametricEquation||{},s=a.u||{},l=a.v||{};["u","v"].forEach((function(t){r(a[t])})),["x","y","z"].forEach((function(t){a[t]}));var h=Math.floor((s.max+s.step-s.min)/s.step),c=Math.floor((l.max+l.step-l.min)/l.step);n=new Float32Array(h*c*5);var u=o(s),d=o(l);for(T=0,M=0;M<c;M++)for(A=0;A<h;A++){var p=A*s.step+s.min,f=M*l.step+l.min,g=i.ai.round(Math.min(p,s.max),u),m=i.ai.round(Math.min(f,l.max),d);C=a.x(g,m),I=a.y(g,m),L=a.z(g,m);n[T++]=C,n[T++]=I,n[T++]=L,n[T++]=g,n[T++]=m}}else{var v=t.equation||{},y=v.x||{},_=v.y||{};if(["x","y"].forEach((function(t){r(v[t])})),"function"!=typeof v.z)return void 0;var x=Math.floor((y.max+y.step-y.min)/y.step),b=Math.floor((_.max+_.step-_.min)/_.step);n=new Float32Array(x*b*3);for(var w=o(y),S=o(_),T=0,M=0;M<b;M++)for(var A=0;A<x;A++){var C=A*y.step+y.min,I=M*_.step+_.min,E=i.ai.round(Math.min(C,y.max),w),k=i.ai.round(Math.min(I,_.max),S),L=v.z(E,k);n[T++]=E,n[T++]=k,n[T++]=L}}var D=["x","y","z"];return t.parametric&&D.push("u","v"),Jc(this,D,n)},defaultOption:{coordinateSystem:"cartesian3D",zlevel:-10,grid3DIndex:0,shading:"lambert",parametric:!1,wireframe:{show:!0,lineStyle:{color:"rgba(0,0,0,0.5)",width:1}},equation:{x:{min:-1,max:1,step:.1},y:{min:-1,max:1,step:.1},z:null},parametricEquation:{u:{min:-1,max:1,step:.1},v:{min:-1,max:1,step:.1},x:null,y:null,z:null},dataShape:null,itemStyle:{},animationDurationUpdate:500}});i.ZS.merge(rd.prototype,Fl);const od=rd;var ad=Ea.vec3;const sd=i.OZ.extend({type:"surface",__ecgl__:!0,init:function(t,e){this.groupGL=new ia.Node},render:function(t,e,n){var i=this._prevSurfaceMesh;this._prevSurfaceMesh=this._surfaceMesh,this._surfaceMesh=i,this._surfaceMesh||(this._surfaceMesh=this._createSurfaceMesh()),this.groupGL.remove(this._prevSurfaceMesh),this.groupGL.add(this._surfaceMesh);var r=t.coordinateSystem,o=t.get("shading"),a=t.getData(),s="ecgl."+o;if(this._surfaceMesh.material&&this._surfaceMesh.material.shader.name===s||(this._surfaceMesh.material=ia.createMaterial(s,["VERTEX_COLOR","DOUBLE_SIDED"])),ia.setMaterialFromModel(o,this._surfaceMesh.material,t,n),r&&r.viewGL){r.viewGL.add(this.groupGL);var l=r.viewGL.isLinearSpace()?"define":"undefine";this._surfaceMesh.material[l]("fragment","SRGB_DECODE")}var h=t.get("parametric"),c=t.get("dataShape");c||(c=this._getDataShape(a,h));var u=t.getModel("wireframe"),d=u.get("lineStyle.width"),p=u.get("show")&&d>0;this._updateSurfaceMesh(this._surfaceMesh,t,c,p);var f=this._surfaceMesh.material;p?(f.define("WIREFRAME_QUAD"),f.set("wireframeLineWidth",d),f.set("wireframeLineColor",ia.parseColor(u.get("lineStyle.color")))):f.undefine("WIREFRAME_QUAD"),this._initHandler(t,n),this._updateAnimation(t)},_updateAnimation:function(t){ia.updateVertexAnimation([["prevPosition","position"],["prevNormal","normal"]],this._prevSurfaceMesh,this._surfaceMesh,t)},_createSurfaceMesh:function(){var t=new ia.Mesh({geometry:new ia.Geometry({dynamic:!0,sortTriangles:!0}),shadowDepthMaterial:new ia.Material({shader:new ia.Shader(ia.Shader.source("ecgl.sm.depth.vertex"),ia.Shader.source("ecgl.sm.depth.fragment"))}),culling:!1,renderOrder:10,renderNormal:!0});return t.geometry.createAttribute("barycentric","float",4),t.geometry.createAttribute("prevPosition","float",3),t.geometry.createAttribute("prevNormal","float",3),Object.assign(t.geometry,xh),t},_initHandler:function(t,e){var n=t.getData(),i=this._surfaceMesh,r=t.coordinateSystem;i.seriesIndex=t.seriesIndex;var o=-1;i.off("mousemove"),i.off("mouseout"),i.on("mousemove",(function(t){var a=function(t,e){for(var n=1/0,r=-1,o=[],a=0;a<t.length;a++){i.geometry.attributes.position.get(t[a],o);var s=ad.dist(e.array,o);s<n&&(n=s,r=t[a])}return r}(t.triangle,t.point);if(a>=0){var s=[];i.geometry.attributes.position.get(a,s);for(var l=r.pointToData(s),h=1/0,c=-1,u=[],d=0;d<n.count();d++){u[0]=n.get("x",d),u[1]=n.get("y",d),u[2]=n.get("z",d);var p=ad.squaredDistance(u,l);p<h&&(c=d,h=p)}c!==o&&e.dispatchAction({type:"grid3DShowAxisPointer",value:l}),o=c,i.dataIndex=c}else i.dataIndex=-1}),this),i.on("mouseout",(function(t){o=-1,i.dataIndex=-1,e.dispatchAction({type:"grid3DHideAxisPointer"})}),this)},_updateSurfaceMesh:function(t,e,n,i){var r=t.geometry,o=e.getData(),a=o.getLayout("points"),s=0;o.each((function(t){o.hasValue(t)||s++}));var l=s||i,h=r.attributes.position,c=r.attributes.normal,u=r.attributes.texcoord0,d=r.attributes.barycentric,p=r.attributes.color,f=n[0],g=n[1],m="color"!==e.get("shading");if(l){var v=(f-1)*(g-1)*4;h.init(v),i&&d.init(v)}else h.value=new Float32Array(a);p.init(r.vertexCount),u.init(r.vertexCount);var y,_=[0,3,1,1,3,2],x=[[1,1,0,0],[0,1,0,1],[1,0,0,1],[1,0,1,0]],b=r.indices=new(r.vertexCount>65535?Uint32Array:Uint16Array)((f-1)*(g-1)*6),w=function(t,e,n){n[1]=t*g+e,n[0]=t*g+e+1,n[3]=(t+1)*g+e+1,n[2]=(t+1)*g+e},S=!1;if(l){var T=[],M=[],A=0;m?c.init(r.vertexCount):c.value=null;for(var C=[[],[],[]],I=[],E=[],k=ad.create(),L=function(t,e,n){var i=3*e;return n[0]=t[i],n[1]=t[i+1],n[2]=t[i+2],n},D=new Float32Array(a.length),P=new Float32Array(a.length/3*4),R=0;R<o.count();R++)if(o.hasValue(R)){var O=ia.parseColor(bh(o,R));null!=(q=wh(o,R))&&(O[3]*=q),O[3]<.99&&(S=!0);for(var N=0;N<4;N++)P[4*R+N]=O[N]}var F=[1e7,1e7,1e7];for(R=0;R<f-1;R++)for(var B=0;B<g-1;B++){var z=4*(R*(g-1)+B);w(R,B,T);var G=!1;for(N=0;N<4;N++)L(a,T[N],M),y=M,(isNaN(y[0])||isNaN(y[1])||isNaN(y[2]))&&(G=!0);for(N=0;N<4;N++)G?h.set(z+N,F):(L(a,T[N],M),h.set(z+N,M)),i&&d.set(z+N,x[N]);for(N=0;N<6;N++)b[A++]=_[N]+z;if(m&&!G)for(N=0;N<2;N++){for(var V=3*N,j=0;j<3;j++){L(a,U=T[_[V]+j],C[j])}ad.sub(I,C[0],C[1]),ad.sub(E,C[1],C[2]),ad.cross(k,I,E);for(j=0;j<3;j++){var H=3*T[_[V]+j];D[H]=D[H]+k[0],D[H+1]=D[H+1]+k[1],D[H+2]=D[H+2]+k[2]}}}if(m)for(R=0;R<D.length/3;R++)L(D,R,k),ad.normalize(k,k),D[3*R]=k[0],D[3*R+1]=k[1],D[3*R+2]=k[2];O=[];var W=[];for(R=0;R<f-1;R++)for(B=0;B<g-1;B++){z=4*(R*(g-1)+B);w(R,B,T);for(N=0;N<4;N++){for(j=0;j<4;j++)O[j]=P[4*T[N]+j];p.set(z+N,O),m&&(L(D,T[N],k),c.set(z+N,k));var U=T[N];W[0]=U%g/(g-1),W[1]=Math.floor(U/g)/(f-1),u.set(z+N,W)}0}}else{for(W=[],R=0;R<o.count();R++){W[0]=R%g/(g-1),W[1]=Math.floor(R/g)/(f-1);var q;O=ia.parseColor(bh(o,R));null!=(q=wh(o,R))&&(O[3]*=q),O[3]<.99&&(S=!0),p.set(R,O),u.set(R,W)}T=[];var X=0;for(R=0;R<f-1;R++)for(B=0;B<g-1;B++){w(R,B,T);for(N=0;N<6;N++)b[X++]=T[_[N]]}m?r.generateVertexNormals():c.value=null}t.material.get("normalMap")&&r.generateTangents(),r.updateBoundingBox(),r.dirty(),t.material.transparent=S,t.material.depthMask=!S},_getDataShape:function(t,e){for(var n=-1/0,i=0,r=0,o=!1,a=e?"u":"x",s=t.count(),l=0;l<s;l++){var h=t.get(a,l);h<n&&(r=0,i++),n=h,r++}if(i&&1!==r||(o=!0),!o)return[i+1,r];for(var c=Math.floor(Math.sqrt(s));c>0;){if(Math.floor(s/c)===s/c)return[c,s/c];c--}return[c=Math.floor(Math.sqrt(s)),c]},dispose:function(){this.groupGL.removeAll()},remove:function(){this.groupGL.removeAll()}});function ld(t,e){for(var n=[],i=0;i<e.length;i++)n.push(t.dataToPoint(e[i]));return n}(0,i.Yx)((function(t){t.registerChartView(sd),t.registerSeriesModel(od),t.registerLayout((function(t,e){t.eachSeriesByType("surface",(function(t){var e=t.coordinateSystem;e&&e.type;var n=t.getData(),i=new Float32Array(3*n.count()),r=[NaN,NaN,NaN];if(e&&"cartesian3D"===e.type){var o=e.dimensions.map((function(e){return t.coordDimToDataDim(e)[0]}));n.each(o,(function(t,o,a,s){var l;l=n.hasValue(s)?e.dataToPoint([t,o,a]):r,i[3*s]=l[0],i[3*s+1]=l[1],i[3*s+2]=l[2]}))}n.setLayout("points",i)}))}))}));var hd=i.rP.extend({type:"series.map3D",layoutMode:"box",coordinateSystem:null,visualStyleAccessPath:"itemStyle",optionUpdated:function(t){t=t||{};var e=this.get("coordinateSystem");null!=e&&"geo3D"!==e&&(this.get("groundPlane.show")&&(this.option.groundPlane.show=!1),this._geo=null)},getInitialData:function(t){t.data=this.getFilledRegions(t.data,t.map);var e=i.dw.createDimensions(t.data,{coordDimensions:["value"]}),n=new i.B8(e,this);n.initData(t.data);var r={};return n.each((function(t){var e=n.getName(t),i=n.getItemModel(t);r[e]=i})),this._regionModelMap=r,n},formatTooltip:function(t){return Kc(this,t)},getRegionModel:function(t){var e=this.getData().getName(t);return this._regionModelMap[e]||new i.Kx(null,this)},getRegionPolygonCoords:function(t){var e=this.coordinateSystem,n=this.getData().getName(t);if(e.transform)return(i=e.getRegion(n))?i.geometries:[];this._geo||(this._geo=Gh.createGeo3D(this));for(var i=this._geo.getRegion(n),r=[],o=0;o<i.geometries.length;o++){var a=i.geometries[o],s=[],l=ld(e,a.exterior);if(s&&s.length)for(var h=0;h<a.interiors.length;h++)s.push(ld(e,s[h]));r.push({interiors:s,exterior:l})}return r},getFormattedLabel:function(t,e){var n=$c.getFormattedLabel(this,t,e);return null==n&&(n=this.getData().getName(t)),n},defaultOption:{coordinateSystem:"geo3D",data:null}});i.ZS.merge(hd.prototype,Bl),i.ZS.merge(hd.prototype,va),i.ZS.merge(hd.prototype,ya),i.ZS.merge(hd.prototype,_a),i.ZS.merge(hd.prototype,Fl);const cd=hd,ud=i.OZ.extend({type:"map3D",__ecgl__:!0,init:function(t,e){this._geo3DBuilder=new Ch(e),this.groupGL=new ia.Node},render:function(t,e,n){var i=t.coordinateSystem;if(i&&i.viewGL){if(this.groupGL.add(this._geo3DBuilder.rootNode),i.viewGL.add(this.groupGL),"geo3D"===i.type){this._sceneHelper||(this._sceneHelper=new Ba,this._sceneHelper.initLight(this.groupGL)),this._sceneHelper.setScene(i.viewGL.scene),this._sceneHelper.updateLight(t),i.viewGL.setPostEffect(t.getModel("postEffect"),n),i.viewGL.setTemporalSuperSampling(t.getModel("temporalSuperSampling"));var r=this._control;r||(r=this._control=new Ca({zr:n.getZr()}),this._control.init());var o=t.getModel("viewControl");r.setViewGL(i.viewGL),r.setFromViewControlModel(o,0),r.off("update"),r.on("update",(function(){n.dispatchAction({type:"map3DChangeCamera",alpha:r.getAlpha(),beta:r.getBeta(),distance:r.getDistance(),from:this.uid,map3DId:t.id})})),this._geo3DBuilder.extrudeY=!0}else this._control&&(this._control.dispose(),this._control=null),this._sceneHelper&&(this._sceneHelper.dispose(),this._sceneHelper=null),t.getData().getLayout("geo3D"),this._geo3DBuilder.extrudeY=!1;this._geo3DBuilder.update(t,e,n,0,t.getData().count());var a=i.viewGL.isLinearSpace()?"define":"undefine";this._geo3DBuilder.rootNode.traverse((function(t){t.material&&t.material[a]("fragment","SRGB_DECODE")}))}},afterRender:function(t,e,n,i){var r=i.renderer,o=t.coordinateSystem;o&&"geo3D"===o.type&&(this._sceneHelper.updateAmbientCubemap(r,t,n),this._sceneHelper.updateSkybox(r,t,n))},dispose:function(){this.groupGL.removeAll(),this._control.dispose(),this._geo3DBuilder.dispose()}});(0,i.Yx)((function(t){Vh(t),t.registerChartView(ud),t.registerSeriesModel(cd),t.registerAction({type:"map3DChangeCamera",event:"map3dcamerachanged",update:"series:updateCamera"},(function(t,e){e.eachComponent({mainType:"series",subType:"map3D",query:t},(function(e){e.setView(t)}))}))}));const dd=i.rP.extend({type:"series.scatterGL",dependencies:["grid","polar","geo","singleAxis"],visualStyleAccessPath:"itemStyle",hasSymbolVisual:!0,getInitialData:function(){return i.dw.createList(this)},defaultOption:{coordinateSystem:"cartesian2d",zlevel:10,progressive:1e5,progressiveThreshold:1e5,large:!1,symbol:"circle",symbolSize:10,zoomScale:0,blendMode:"source-over",itemStyle:{opacity:.8},postEffect:{enable:!1,colorCorrection:{exposure:0,brightness:0,contrast:1,saturation:1,enable:!0}}}});var pd=n(3968),fd=n(4070);function gd(t){this.viewGL=t}gd.prototype.reset=function(t,e){this._updateCamera(e.getWidth(),e.getHeight(),e.getDevicePixelRatio()),this._viewTransform=pd.create(),this.updateTransform(t,e)},gd.prototype.updateTransform=function(t,e){var n=t.coordinateSystem;n.getRoamTransform&&(pd.invert(this._viewTransform,n.getRoamTransform()),this._setCameraTransform(this._viewTransform),e.getZr().refresh())},gd.prototype.dataToPoint=function(t,e,n){n=t.dataToPoint(e,null,n);var i=this._viewTransform;i&&fd.applyTransform(n,n,i)},gd.prototype.removeTransformInPoint=function(t){return this._viewTransform&&fd.applyTransform(t,t,this._viewTransform),t},gd.prototype.getZoom=function(){if(this._viewTransform){var t=this._viewTransform;return 1/Math.max(Math.sqrt(t[0]*t[0]+t[1]*t[1]),Math.sqrt(t[2]*t[2]+t[3]*t[3]))}return 1},gd.prototype._setCameraTransform=function(t){var e=this.viewGL.camera;e.position.set(t[4],t[5],0),e.scale.set(Math.sqrt(t[0]*t[0]+t[1]*t[1]),Math.sqrt(t[2]*t[2]+t[3]*t[3]),1)},gd.prototype._updateCamera=function(t,e,n){this.viewGL.setViewport(0,0,t,e,n);var i=this.viewGL.camera;i.left=i.top=0,i.bottom=e,i.right=t,i.near=0,i.far=100};const md=gd,vd=i.OZ.extend({type:"scatterGL",__ecgl__:!0,init:function(t,e){this.groupGL=new ia.Node,this.viewGL=new wl("orthographic"),this.viewGL.add(this.groupGL),this._pointsBuilderList=[],this._currentStep=0,this._sizeScale=1,this._glViewHelper=new md(this.viewGL)},render:function(t,e,n){if(this.groupGL.removeAll(),this._glViewHelper.reset(t,n),t.getData().count()){var i=this._pointsBuilderList[0];i||(i=this._pointsBuilderList[0]=new Eu(!0,n)),this._pointsBuilderList.length=1,this.groupGL.add(i.rootNode),this._removeTransformInPoints(t.getData().getLayout("points")),i.update(t,e,n),this.viewGL.setPostEffect(t.getModel("postEffect"),n)}},incrementalPrepareRender:function(t,e,n){this.groupGL.removeAll(),this._glViewHelper.reset(t,n),this._currentStep=0,this.viewGL.setPostEffect(t.getModel("postEffect"),n)},incrementalRender:function(t,e,n,i){if(!(t.end<=t.start)){var r=this._pointsBuilderList[this._currentStep];r||(r=new Eu(!0,i),this._pointsBuilderList[this._currentStep]=r),this.groupGL.add(r.rootNode),this._removeTransformInPoints(e.getData().getLayout("points")),r.setSizeScale(this._sizeScale),r.update(e,n,i,t.start,t.end),i.getZr().refresh(),this._currentStep++}},updateTransform:function(t,e,n){if(t.coordinateSystem.getRoamTransform){this._glViewHelper.updateTransform(t,n);var i=this._glViewHelper.getZoom(),r=Math.max((t.get("zoomScale")||0)*(i-1)+1,0);this._sizeScale=r,this._pointsBuilderList.forEach((function(t){t.setSizeScale(r)}))}},_removeTransformInPoints:function(t){if(t)for(var e=[],n=0;n<t.length;n+=2)e[0]=t[n],e[1]=t[n+1],this._glViewHelper.removeTransformInPoint(e),t[n]=e[0],t[n+1]=e[1]},dispose:function(){this.groupGL.removeAll(),this._pointsBuilderList.forEach((function(t){t.dispose()}))},remove:function(){this.groupGL.removeAll()}});(0,i.Yx)((function(t){t.registerChartView(vd),t.registerSeriesModel(dd),t.registerLayout({seriesType:"scatterGL",reset:function(t){var e,n=t.coordinateSystem,i=t.getData();if(n){var r=n.dimensions.map((function(t){return i.mapDimension(t)})).slice(0,2),o=[];1===r.length?e=function(t){for(var e=new Float32Array(2*(t.end-t.start)),o=t.start;o<t.end;o++){var a=2*(o-t.start),s=i.get(r[0],o),l=n.dataToPoint(s);e[a]=l[0],e[a+1]=l[1]}i.setLayout("points",e)}:2===r.length&&(e=function(t){for(var e=new Float32Array(2*(t.end-t.start)),a=t.start;a<t.end;a++){var s=2*(a-t.start),l=i.get(r[0],a),h=i.get(r[1],a);o[0]=l,o[1]=h,o=n.dataToPoint(o),e[s]=o[0],e[s+1]=o[1]}i.setLayout("points",e)})}return{progress:e}}})}));var yd=n(9588);const _d=n(8052).A;var xd=i.rP.extend({type:"series.graphGL",visualStyleAccessPath:"itemStyle",hasSymbolVisual:!0,init:function(t){xd.superApply(this,"init",arguments),this.legendDataProvider=function(){return this._categoriesData},this._updateCategoriesData()},mergeOption:function(t){xd.superApply(this,"mergeOption",arguments),this._updateCategoriesData()},getFormattedLabel:function(t,e,n,i){var r=$c.getFormattedLabel(this,t,e,n,i);if(null==r){var o=this.getData(),a=o.dimensions[o.dimensions.length-1];r=o.get(a,t)}return r},getInitialData:function(t,e){var n=t.edges||t.links||[],r=t.data||t.nodes||[],o=this;if(r&&n)return function(t,e,n,r,o){for(var a=new yd.Ay(r),s=0;s<t.length;s++)a.addNode(wo.firstNotNull(t[s].id,t[s].name,s),s);var l,h=[],c=[],u=0;for(s=0;s<e.length;s++){var d=e[s],p=d.source,f=d.target;a.addEdge(p,f,u)&&(c.push(d),h.push(wo.firstNotNull(d.id,p+" > "+f)),u++)}var g=i.dw.createDimensions(t,{coordDimensions:["value"]});(l=new i.B8(g,n)).initData(t);var m=new i.B8(["value"],n);return m.initData(c,h),o&&o(l,m),_d({mainData:l,struct:a,structAttr:"graph",datas:{node:l,edge:m},datasAttr:{node:"data",edge:"edgeData"}}),a.update(),a}(r,n,this,!0,(function(t,n){t.wrapMethod("getItemModel",(function(t){const e=o._categoriesModels[t.getShallow("category")];return e&&(e.parentModel=t.parentModel,t.parentModel=e),t}));const i=e.getModel([]).getModel;function r(t,e){const n=i.call(this,t,e);return n.resolveParentPath=a,n}function a(t){if(t&&("label"===t[0]||"label"===t[1])){const e=t.slice();return"label"===t[0]?e[0]="edgeLabel":"label"===t[1]&&(e[1]="edgeLabel"),e}return t}n.wrapMethod("getItemModel",(function(t){return t.resolveParentPath=a,t.getModel=r,t}))})).data},getGraph:function(){return this.getData().graph},getEdgeData:function(){return this.getGraph().edgeData},getCategoriesData:function(){return this._categoriesData},formatTooltip:function(t,e,n){if("edge"===n){var r=this.getData(),o=this.getDataParams(t,n),a=r.graph.getEdgeByIndex(t),s=r.getName(a.node1.dataIndex),l=r.getName(a.node2.dataIndex),h=[];return null!=s&&h.push(s),null!=l&&h.push(l),h=i.GP.encodeHTML(h.join(" > ")),o.value&&(h+=" : "+i.GP.encodeHTML(o.value)),h}return xd.superApply(this,"formatTooltip",arguments)},_updateCategoriesData:function(){var t=(this.option.categories||[]).map((function(t){return null!=t.value?t:Object.assign({value:0},t)})),e=new i.B8(["value"],this);e.initData(t),this._categoriesData=e,this._categoriesModels=e.mapArray((function(t){return e.getItemModel(t,!0)}))},setView:function(t){null!=t.zoom&&(this.option.zoom=t.zoom),null!=t.offset&&(this.option.offset=t.offset)},setNodePosition:function(t){for(var e=0;e<t.length/2;e++){var n=t[2*e],i=t[2*e+1],r=this.getData().getRawDataItem(e);r.x=n,r.y=i}},isAnimationEnabled:function(){return xd.superCall(this,"isAnimationEnabled")&&!("force"===this.get("layout")&&this.get("force.layoutAnimation"))},defaultOption:{zlevel:10,z:2,legendHoverLink:!0,layout:"forceAtlas2",forceAtlas2:{initLayout:null,GPU:!0,steps:1,maxSteps:1e3,repulsionByDegree:!0,linLogMode:!1,strongGravityMode:!1,gravity:1,edgeWeightInfluence:1,edgeWeight:[1,4],nodeWeight:[1,4],preventOverlap:!1,gravityCenter:null},focusNodeAdjacency:!0,focusNodeAdjacencyOn:"mouseover",left:"center",top:"center",symbol:"circle",symbolSize:5,roam:!1,center:null,zoom:1,label:{show:!1,formatter:"{b}",position:"right",distance:5,textStyle:{fontSize:14}},itemStyle:{},lineStyle:{color:"#aaa",width:1,opacity:.5},emphasis:{label:{show:!0}},animation:!1}});const bd=xd;var wd=Ea.vec2,Sd=[[0,0],[1,1]],Td=Ci.extend((function(){return{segmentScale:4,dynamic:!0,useNativeLine:!0,attributes:{position:new Ci.Attribute("position","float",2,"POSITION"),normal:new Ci.Attribute("normal","float",2),offset:new Ci.Attribute("offset","float",1),color:new Ci.Attribute("color","float",4,"COLOR")}}}),{resetOffset:function(){this._vertexOffset=0,this._faceOffset=0,this._itemVertexOffsets=[]},setVertexCount:function(t){var e=this.attributes;this.vertexCount!==t&&(e.position.init(t),e.color.init(t),this.useNativeLine||(e.offset.init(t),e.normal.init(t)),t>65535?this.indices instanceof Uint16Array&&(this.indices=new Uint32Array(this.indices)):this.indices instanceof Uint32Array&&(this.indices=new Uint16Array(this.indices)))},setTriangleCount:function(t){this.triangleCount!==t&&(this.indices=0===t?null:this.vertexCount>65535?new Uint32Array(3*t):new Uint16Array(3*t))},_getCubicCurveApproxStep:function(t,e,n,i){return 1/(wd.dist(t,e)+wd.dist(n,e)+wd.dist(i,n)+1)*this.segmentScale},getCubicCurveVertexCount:function(t,e,n,i){var r=this._getCubicCurveApproxStep(t,e,n,i),o=Math.ceil(1/r);return this.useNativeLine?2*o:2*o+2},getCubicCurveTriangleCount:function(t,e,n,i){var r=this._getCubicCurveApproxStep(t,e,n,i),o=Math.ceil(1/r);return this.useNativeLine?0:2*o},getLineVertexCount:function(){return this.getPolylineVertexCount(Sd)},getLineTriangleCount:function(){return this.getPolylineTriangleCount(Sd)},getPolylineVertexCount:function(t){var e;"number"==typeof t?e=t:e="number"!=typeof t[0]?t.length:t.length/2;return this.useNativeLine?2*(e-1):2*(e-1)+2},getPolylineTriangleCount:function(t){var e;"number"==typeof t?e=t:e="number"!=typeof t[0]?t.length:t.length/2;return this.useNativeLine?0:2*(e-1)},addCubicCurve:function(t,e,n,i,r,o){null==o&&(o=1);var a=t[0],s=t[1],l=e[0],h=e[1],c=n[0],u=n[1],d=i[0],p=i[1],f=this._getCubicCurveApproxStep(t,e,n,i),g=f*f,m=g*f,v=3*f,y=3*g,_=6*g,x=6*m,b=a-2*l+c,w=s-2*h+u,S=3*(l-c)-a+d,T=3*(h-u)-s+p,M=a,A=s,C=(l-a)*v+b*y+S*m,I=(h-s)*v+w*y+T*m,E=b*_+S*x,k=w*_+T*x,L=S*x,D=T*x,P=0,R=0,O=Math.ceil(1/f),N=new Float32Array(3*(O+1)),F=(N=[],0);for(R=0;R<O+1;R++)N[F++]=M,N[F++]=A,M+=C,A+=I,C+=E,I+=k,E+=L,k+=D,(P+=f)>1&&(M=C>0?Math.min(M,d):Math.max(M,d),A=I>0?Math.min(A,p):Math.max(A,p));this.addPolyline(N,r,o)},addLine:function(t,e,n,i){this.addPolyline([t,e],n,i)},addPolyline:function(){var t=wd.create(),e=wd.create(),n=wd.create(),i=wd.create(),r=[],o=[],a=[];return function(s,l,h,c,u){if(s.length){var d="number"!=typeof s[0];if(null==u&&(u=d?s.length:s.length/2),!(u<2)){null==c&&(c=0),null==h&&(h=1),this._itemVertexOffsets.push(this._vertexOffset);for(var p,f=d?"number"!=typeof l[0]:l.length/4===u,g=this.attributes.position,m=this.attributes.color,v=this.attributes.offset,y=this.attributes.normal,_=this.indices,x=this._vertexOffset,b=0;b<u;b++){if(d)r=s[b+c],p=f?l[b+c]:l;else{var w=2*b+c;if((r=r||[])[0]=s[w],r[1]=s[w+1],f){var S=4*b+c;(p=p||[])[0]=l[S],p[1]=l[S+1],p[2]=l[S+2],p[3]=l[S+3]}else p=l}if(this.useNativeLine)b>1&&(g.copy(x,x-1),m.copy(x,x-1),x++);else{var T;if(b<u-1){if(d)wd.copy(o,s[b+1]);else{w=2*(b+1)+c;(o=o||[])[0]=s[w],o[1]=s[w+1]}if(b>0){wd.sub(t,r,a),wd.sub(e,o,r),wd.normalize(t,t),wd.normalize(e,e),wd.add(i,t,e),wd.normalize(i,i);var M=h/2*Math.min(1/wd.dot(t,i),2);n[0]=-i[1],n[1]=i[0],T=M}else wd.sub(t,o,r),wd.normalize(t,t),n[0]=-t[1],n[1]=t[0],T=h/2}else wd.sub(t,r,a),wd.normalize(t,t),n[0]=-t[1],n[1]=t[0],T=h/2;y.set(x,n),y.set(x+1,n),v.set(x,T),v.set(x+1,-T),wd.copy(a,r),g.set(x,r),g.set(x+1,r),m.set(x,p),m.set(x+1,p),x+=2}if(this.useNativeLine)m.set(x,p),g.set(x,r),x++;else if(b>0){var A=3*this._faceOffset;(_=this.indices)[A]=x-4,_[A+1]=x-3,_[A+2]=x-2,_[A+3]=x-3,_[A+4]=x-1,_[A+5]=x-2,this._faceOffset+=2}}this._vertexOffset=x}}}}(),setItemColor:function(t,e){for(var n=this._itemVertexOffsets[t],i=t<this._itemVertexOffsets.length-1?this._itemVertexOffsets[t+1]:this._vertexOffset,r=n;r<i;r++)this.attributes.color.set(r,e);this.dirty("color")}});i.ZS.defaults(Td.prototype,Ia);const Md=Td;ia.Shader.import("@export ecgl.forceAtlas2.updateNodeRepulsion\n\n#define NODE_COUNT 0\n\nuniform sampler2D positionTex;\n\nuniform vec2 textureSize;\nuniform float gravity;\nuniform float scaling;\nuniform vec2 gravityCenter;\n\nuniform bool strongGravityMode;\nuniform bool preventOverlap;\n\nvarying vec2 v_Texcoord;\n\nvoid main() {\n\n vec4 n0 = texture2D(positionTex, v_Texcoord);\n\n vec2 force = vec2(0.0);\n for (int i = 0; i < NODE_COUNT; i++) {\n vec2 uv = vec2(\n mod(float(i), textureSize.x) / (textureSize.x - 1.0),\n floor(float(i) / textureSize.x) / (textureSize.y - 1.0)\n );\n vec4 n1 = texture2D(positionTex, uv);\n\n vec2 dir = n0.xy - n1.xy;\n float d2 = dot(dir, dir);\n\n if (d2 > 0.0) {\n float factor = 0.0;\n if (preventOverlap) {\n float d = sqrt(d2);\n d = d - n0.w - n1.w;\n if (d > 0.0) {\n factor = scaling * n0.z * n1.z / (d * d);\n }\n else if (d < 0.0) {\n factor = scaling * 100.0 * n0.z * n1.z;\n }\n }\n else {\n factor = scaling * n0.z * n1.z / d2;\n }\n force += dir * factor;\n }\n }\n\n vec2 dir = gravityCenter - n0.xy;\n float d = 1.0;\n if (!strongGravityMode) {\n d = length(dir);\n }\n\n force += dir * n0.z * gravity / (d + 1.0);\n\n gl_FragColor = vec4(force, 0.0, 1.0);\n}\n@end\n\n@export ecgl.forceAtlas2.updateEdgeAttraction.vertex\n\nattribute vec2 node1;\nattribute vec2 node2;\nattribute float weight;\n\nuniform sampler2D positionTex;\nuniform float edgeWeightInfluence;\nuniform bool preventOverlap;\nuniform bool linLogMode;\n\nuniform vec2 windowSize: WINDOW_SIZE;\n\nvarying vec2 v_Force;\n\nvoid main() {\n\n vec4 n0 = texture2D(positionTex, node1);\n vec4 n1 = texture2D(positionTex, node2);\n\n vec2 dir = n1.xy - n0.xy;\n float d = length(dir);\n float w;\n if (edgeWeightInfluence == 0.0) {\n w = 1.0;\n }\n else if (edgeWeightInfluence == 1.0) {\n w = weight;\n }\n else {\n w = pow(weight, edgeWeightInfluence);\n }\n vec2 offset = vec2(1.0 / windowSize.x, 1.0 / windowSize.y);\n vec2 scale = vec2((windowSize.x - 1.0) / windowSize.x, (windowSize.y - 1.0) / windowSize.y);\n vec2 pos = node1 * scale * 2.0 - 1.0;\n gl_Position = vec4(pos + offset, 0.0, 1.0);\n gl_PointSize = 1.0;\n\n float factor;\n if (preventOverlap) {\n d = d - n1.w - n0.w;\n }\n if (d <= 0.0) {\n v_Force = vec2(0.0);\n return;\n }\n\n if (linLogMode) {\n factor = w * log(d) / d;\n }\n else {\n factor = w;\n }\n v_Force = dir * factor;\n}\n@end\n\n@export ecgl.forceAtlas2.updateEdgeAttraction.fragment\n\nvarying vec2 v_Force;\n\nvoid main() {\n gl_FragColor = vec4(v_Force, 0.0, 0.0);\n}\n@end\n\n@export ecgl.forceAtlas2.calcWeightedSum.vertex\n\nattribute vec2 node;\n\nvarying vec2 v_NodeUv;\n\nvoid main() {\n\n v_NodeUv = node;\n gl_Position = vec4(0.0, 0.0, 0.0, 1.0);\n gl_PointSize = 1.0;\n}\n@end\n\n@export ecgl.forceAtlas2.calcWeightedSum.fragment\n\nvarying vec2 v_NodeUv;\n\nuniform sampler2D positionTex;\nuniform sampler2D forceTex;\nuniform sampler2D forcePrevTex;\n\nvoid main() {\n vec2 force = texture2D(forceTex, v_NodeUv).rg;\n vec2 forcePrev = texture2D(forcePrevTex, v_NodeUv).rg;\n\n float mass = texture2D(positionTex, v_NodeUv).z;\n float swing = length(force - forcePrev) * mass;\n float traction = length(force + forcePrev) * 0.5 * mass;\n\n gl_FragColor = vec4(swing, traction, 0.0, 0.0);\n}\n@end\n\n@export ecgl.forceAtlas2.calcGlobalSpeed\n\nuniform sampler2D globalSpeedPrevTex;\nuniform sampler2D weightedSumTex;\nuniform float jitterTolerence;\n\nvoid main() {\n vec2 weightedSum = texture2D(weightedSumTex, vec2(0.5)).xy;\n float prevGlobalSpeed = texture2D(globalSpeedPrevTex, vec2(0.5)).x;\n float globalSpeed = jitterTolerence * jitterTolerence\n * weightedSum.y / weightedSum.x;\n if (prevGlobalSpeed > 0.0) {\n globalSpeed = min(globalSpeed / prevGlobalSpeed, 1.5) * prevGlobalSpeed;\n }\n gl_FragColor = vec4(globalSpeed, 0.0, 0.0, 1.0);\n}\n@end\n\n@export ecgl.forceAtlas2.updatePosition\n\nuniform sampler2D forceTex;\nuniform sampler2D forcePrevTex;\nuniform sampler2D positionTex;\nuniform sampler2D globalSpeedTex;\n\nvarying vec2 v_Texcoord;\n\nvoid main() {\n vec2 force = texture2D(forceTex, v_Texcoord).xy;\n vec2 forcePrev = texture2D(forcePrevTex, v_Texcoord).xy;\n vec4 node = texture2D(positionTex, v_Texcoord);\n\n float globalSpeed = texture2D(globalSpeedTex, vec2(0.5)).r;\n float swing = length(force - forcePrev);\n float speed = 0.1 * globalSpeed / (0.1 + globalSpeed * sqrt(swing));\n\n float df = length(force);\n if (df > 0.0) {\n speed = min(df * speed, 10.0) / df;\n\n gl_FragColor = vec4(node.xy + speed * force, node.zw);\n }\n else {\n gl_FragColor = node;\n }\n}\n@end\n\n@export ecgl.forceAtlas2.edges.vertex\nuniform mat4 worldViewProjection : WORLDVIEWPROJECTION;\n\nattribute vec2 node;\nattribute vec4 a_Color : COLOR;\nvarying vec4 v_Color;\n\nuniform sampler2D positionTex;\n\nvoid main()\n{\n gl_Position = worldViewProjection * vec4(\n texture2D(positionTex, node).xy, -10.0, 1.0\n );\n v_Color = a_Color;\n}\n@end\n\n@export ecgl.forceAtlas2.edges.fragment\nuniform vec4 color : [1.0, 1.0, 1.0, 1.0];\nvarying vec4 v_Color;\nvoid main() {\n gl_FragColor = color * v_Color;\n}\n@end");var Ad={repulsionByDegree:!0,linLogMode:!1,strongGravityMode:!1,gravity:1,scaling:1,edgeWeightInfluence:1,jitterTolerence:.1,preventOverlap:!1,dissuadeHubs:!1,gravityCenter:null};function Cd(t){var e={type:ia.Texture.FLOAT,minFilter:ia.Texture.NEAREST,magFilter:ia.Texture.NEAREST};this._positionSourceTex=new ia.Texture2D(e),this._positionSourceTex.flipY=!1,this._positionTex=new ia.Texture2D(e),this._positionPrevTex=new ia.Texture2D(e),this._forceTex=new ia.Texture2D(e),this._forcePrevTex=new ia.Texture2D(e),this._weightedSumTex=new ia.Texture2D(e),this._weightedSumTex.width=this._weightedSumTex.height=1,this._globalSpeedTex=new ia.Texture2D(e),this._globalSpeedPrevTex=new ia.Texture2D(e),this._globalSpeedTex.width=this._globalSpeedTex.height=1,this._globalSpeedPrevTex.width=this._globalSpeedPrevTex.height=1,this._nodeRepulsionPass=new lo({fragment:ia.Shader.source("ecgl.forceAtlas2.updateNodeRepulsion")}),this._positionPass=new lo({fragment:ia.Shader.source("ecgl.forceAtlas2.updatePosition")}),this._globalSpeedPass=new lo({fragment:ia.Shader.source("ecgl.forceAtlas2.calcGlobalSpeed")}),this._copyPass=new lo({fragment:ia.Shader.source("clay.compositor.output")});var n=function(t){t.blendEquation(t.FUNC_ADD),t.blendFunc(t.ONE,t.ONE)};this._edgeForceMesh=new ia.Mesh({geometry:new ia.Geometry({attributes:{node1:new ia.Geometry.Attribute("node1","float",2),node2:new ia.Geometry.Attribute("node2","float",2),weight:new ia.Geometry.Attribute("weight","float",1)},dynamic:!0,mainAttribute:"node1"}),material:new ia.Material({transparent:!0,shader:ia.createShader("ecgl.forceAtlas2.updateEdgeAttraction"),blend:n,depthMask:!1,depthText:!1}),mode:ia.Mesh.POINTS}),this._weightedSumMesh=new ia.Mesh({geometry:new ia.Geometry({attributes:{node:new ia.Geometry.Attribute("node","float",2)},dynamic:!0,mainAttribute:"node"}),material:new ia.Material({transparent:!0,shader:ia.createShader("ecgl.forceAtlas2.calcWeightedSum"),blend:n,depthMask:!1,depthText:!1}),mode:ia.Mesh.POINTS}),this._framebuffer=new Ir({depthBuffer:!1}),this._dummyCamera=new ia.OrthographicCamera({left:-1,right:1,top:1,bottom:-1,near:0,far:100}),this._globalSpeed=0}Cd.prototype.updateOption=function(t){for(var e in Ad)this[e]=Ad[e];var n=this._nodes.length;if(this.jitterTolerence=n>5e4?10:n>5e3?1:.1,this.scaling=n>100?2:10,t)for(var e in Ad)null!=t[e]&&(this[e]=t[e]);if(this.repulsionByDegree)for(var i=this._positionSourceTex.pixels,r=0;r<this._nodes.length;r++)i[4*r+2]=(this._nodes[r].degree||0)+1},Cd.prototype._updateGravityCenter=function(t){var e=this._nodes,n=this._edges;if(this.gravityCenter)this._gravityCenter=this.gravityCenter;else{for(var i=[1/0,1/0],r=[-1/0,-1/0],o=0;o<e.length;o++)i[0]=Math.min(e[o].x,i[0]),i[1]=Math.min(e[o].y,i[1]),r[0]=Math.max(e[o].x,r[0]),r[1]=Math.max(e[o].y,r[1]);this._gravityCenter=[.5*(i[0]+r[0]),.5*(i[1]+r[1])]}for(o=0;o<n.length;o++){var a=n[o].node1,s=n[o].node2;e[a].degree=(e[a].degree||0)+1,e[s].degree=(e[s].degree||0)+1}},Cd.prototype.initData=function(t,e){this._nodes=t,this._edges=e,this._updateGravityCenter();var n=Math.ceil(Math.sqrt(t.length)),i=n,r=new Float32Array(n*i*4);this._resize(n,i);for(var o=0,a=0;a<t.length;a++){var s=t[a];r[o++]=s.x||0,r[o++]=s.y||0,r[o++]=s.mass||1,r[o++]=s.size||1}this._positionSourceTex.pixels=r;var l=this._edgeForceMesh.geometry,h=e.length;l.attributes.node1.init(2*h),l.attributes.node2.init(2*h),l.attributes.weight.init(2*h);var c=[];for(a=0;a<e.length;a++){var u=l.attributes,d=e[a].weight;null==d&&(d=1),u.node1.set(a,this.getNodeUV(e[a].node1,c)),u.node2.set(a,this.getNodeUV(e[a].node2,c)),u.weight.set(a,d),u.node1.set(a+h,this.getNodeUV(e[a].node2,c)),u.node2.set(a+h,this.getNodeUV(e[a].node1,c)),u.weight.set(a+h,d)}var p=this._weightedSumMesh.geometry;p.attributes.node.init(t.length);for(a=0;a<t.length;a++)p.attributes.node.set(a,this.getNodeUV(a,c));l.dirty(),p.dirty(),this._nodeRepulsionPass.material.define("fragment","NODE_COUNT",t.length),this._nodeRepulsionPass.material.setUniform("textureSize",[n,i]),this._inited=!1,this._frame=0},Cd.prototype.getNodes=function(){return this._nodes},Cd.prototype.getEdges=function(){return this._edges},Cd.prototype.step=function(t){this._inited||(this._initFromSource(t),this._inited=!0),this._frame++,this._framebuffer.attach(this._forceTex),this._framebuffer.bind(t);var e=this._nodeRepulsionPass;e.setUniform("strongGravityMode",this.strongGravityMode),e.setUniform("gravity",this.gravity),e.setUniform("gravityCenter",this._gravityCenter),e.setUniform("scaling",this.scaling),e.setUniform("preventOverlap",this.preventOverlap),e.setUniform("positionTex",this._positionPrevTex),e.render(t);var n=this._edgeForceMesh;n.material.set("linLogMode",this.linLogMode),n.material.set("edgeWeightInfluence",this.edgeWeightInfluence),n.material.set("preventOverlap",this.preventOverlap),n.material.set("positionTex",this._positionPrevTex),t.gl.enable(t.gl.BLEND),t.renderPass([n],this._dummyCamera),this._framebuffer.attach(this._weightedSumTex),t.gl.clearColor(0,0,0,0),t.gl.clear(t.gl.COLOR_BUFFER_BIT),t.gl.enable(t.gl.BLEND);var i=this._weightedSumMesh;i.material.set("positionTex",this._positionPrevTex),i.material.set("forceTex",this._forceTex),i.material.set("forcePrevTex",this._forcePrevTex),t.renderPass([i],this._dummyCamera),this._framebuffer.attach(this._globalSpeedTex);var r=this._globalSpeedPass;r.setUniform("globalSpeedPrevTex",this._globalSpeedPrevTex),r.setUniform("weightedSumTex",this._weightedSumTex),r.setUniform("jitterTolerence",this.jitterTolerence),t.gl.disable(t.gl.BLEND),r.render(t);var o=this._positionPass;this._framebuffer.attach(this._positionTex),o.setUniform("globalSpeedTex",this._globalSpeedTex),o.setUniform("positionTex",this._positionPrevTex),o.setUniform("forceTex",this._forceTex),o.setUniform("forcePrevTex",this._forcePrevTex),o.render(t),this._framebuffer.unbind(t),this._swapTexture()},Cd.prototype.update=function(t,e,n){null==e&&(e=1),e=Math.max(e,1);for(var i=0;i<e;i++)this.step(t);n&&n()},Cd.prototype.getNodePositionTexture=function(){return this._inited?this._positionPrevTex:this._positionSourceTex},Cd.prototype.getNodeUV=function(t,e){e=e||[];var n=this._positionTex.width,i=this._positionTex.height;return e[0]=t%n/(n-1),e[1]=Math.floor(t/n)/(i-1)||0,e},Cd.prototype.getNodePosition=function(t,e){var n=this._positionArr,i=this._positionTex.width,r=this._positionTex.height,o=i*r;n&&n.length===4*o||(n=this._positionArr=new Float32Array(4*o)),this._framebuffer.bind(t),this._framebuffer.attach(this._positionPrevTex),t.gl.readPixels(0,0,i,r,t.gl.RGBA,t.gl.FLOAT,n),this._framebuffer.unbind(t),e||(e=new Float32Array(2*this._nodes.length));for(var a=0;a<this._nodes.length;a++)e[2*a]=n[4*a],e[2*a+1]=n[4*a+1];return e},Cd.prototype.getTextureData=function(t,e){var n=this["_"+e+"Tex"],i=n.width,r=n.height;this._framebuffer.bind(t),this._framebuffer.attach(n);var o=new Float32Array(i*r*4);return t.gl.readPixels(0,0,i,r,t.gl.RGBA,t.gl.FLOAT,o),this._framebuffer.unbind(t),o},Cd.prototype.getTextureSize=function(){return{width:this._positionTex.width,height:this._positionTex.height}},Cd.prototype.isFinished=function(t){return this._frame>t},Cd.prototype._swapTexture=function(){var t=this._positionPrevTex;this._positionPrevTex=this._positionTex,this._positionTex=t;t=this._forcePrevTex;this._forcePrevTex=this._forceTex,this._forceTex=t;t=this._globalSpeedPrevTex;this._globalSpeedPrevTex=this._globalSpeedTex,this._globalSpeedTex=t},Cd.prototype._initFromSource=function(t){this._framebuffer.attach(this._positionPrevTex),this._framebuffer.bind(t),this._copyPass.setUniform("texture",this._positionSourceTex),this._copyPass.render(t),t.gl.clearColor(0,0,0,0),this._framebuffer.attach(this._forcePrevTex),t.gl.clear(t.gl.COLOR_BUFFER_BIT),this._framebuffer.attach(this._globalSpeedPrevTex),t.gl.clear(t.gl.COLOR_BUFFER_BIT),this._framebuffer.unbind(t)},Cd.prototype._resize=function(t,e){["_positionSourceTex","_positionTex","_positionPrevTex","_forceTex","_forcePrevTex"].forEach((function(n){this[n].width=t,this[n].height=e,this[n].dirty()}),this)},Cd.prototype.dispose=function(t){this._framebuffer.dispose(t),this._copyPass.dispose(t),this._nodeRepulsionPass.dispose(t),this._positionPass.dispose(t),this._globalSpeedPass.dispose(t),this._edgeForceMesh.geometry.dispose(t),this._weightedSumMesh.geometry.dispose(t),this._positionSourceTex.dispose(t),this._positionTex.dispose(t),this._positionPrevTex.dispose(t),this._forceTex.dispose(t),this._forcePrevTex.dispose(t),this._weightedSumTex.dispose(t),this._globalSpeedTex.dispose(t),this._globalSpeedPrevTex.dispose(t)};const Id=Cd;const Ed=function(){var t=function(){return new Float32Array(2)},e=function(t,e){var n=e[0]-t[0],i=e[1]-t[1];return Math.sqrt(n*n+i*i)},n=function(t){var e=t[0],n=t[1];return Math.sqrt(e*e+n*n)},i=function(t,e,n,i){return t[0]=e[0]+n[0]*i,t[1]=e[1]+n[1]*i,t},r=function(t,e,n){return t[0]=e[0]+n[0],t[1]=e[1]+n[1],t},o=function(t,e,n){return t[0]=e[0]-n[0],t[1]=e[1]-n[1],t},a=function(t,e){return t[0]=e[0],t[1]=e[1],t},s=function(t,e,n){return t[0]=e,t[1]=n,t};function l(){this.subRegions=[],this.nSubRegions=0,this.node=null,this.mass=0,this.centerOfMass=null,this.bbox=new Float32Array(4),this.size=0}var h=l.prototype;function c(){this.position=new Float32Array(2),this.force=t(),this.forcePrev=t(),this.mass=1,this.inDegree=0,this.outDegree=0}function u(t,e){this.source=t,this.target=e,this.weight=1}function d(){this.autoSettings=!0,this.barnesHutOptimize=!0,this.barnesHutTheta=1.5,this.repulsionByDegree=!0,this.linLogMode=!1,this.strongGravityMode=!1,this.gravity=1,this.scaling=1,this.edgeWeightInfluence=1,this.jitterTolerence=.1,this.preventOverlap=!1,this.dissuadeHubs=!1,this.rootRegion=new l,this.rootRegion.centerOfMass=t(),this.nodes=[],this.edges=[],this.bbox=new Float32Array(4),this.gravityCenter=null,this._massArr=null,this._swingingArr=null,this._sizeArr=null,this._globalSpeed=0}h.beforeUpdate=function(){for(var t=0;t<this.nSubRegions;t++)this.subRegions[t].beforeUpdate();this.mass=0,this.centerOfMass&&(this.centerOfMass[0]=0,this.centerOfMass[1]=0),this.nSubRegions=0,this.node=null},h.afterUpdate=function(){this.subRegions.length=this.nSubRegions;for(var t=0;t<this.nSubRegions;t++)this.subRegions[t].afterUpdate()},h.addNode=function(t){if(0===this.nSubRegions){if(null==this.node)return void(this.node=t);this._addNodeToSubRegion(this.node),this.node=null}this._addNodeToSubRegion(t),this._updateCenterOfMass(t)},h.findSubRegion=function(t,e){for(var n=0;n<this.nSubRegions;n++){var i=this.subRegions[n];if(i.contain(t,e))return i}},h.contain=function(t,e){return this.bbox[0]<=t&&this.bbox[2]>=t&&this.bbox[1]<=e&&this.bbox[3]>=e},h.setBBox=function(t,e,n,i){this.bbox[0]=t,this.bbox[1]=e,this.bbox[2]=n,this.bbox[3]=i,this.size=(n-t+i-e)/2},h._newSubRegion=function(){var t=this.subRegions[this.nSubRegions];return t||(t=new l,this.subRegions[this.nSubRegions]=t),this.nSubRegions++,t},h._addNodeToSubRegion=function(t){var e=this.findSubRegion(t.position[0],t.position[1]),n=this.bbox;if(!e){var i=(n[0]+n[2])/2,r=(n[1]+n[3])/2,o=(n[2]-n[0])/2,a=(n[3]-n[1])/2,s=t.position[0]>=i?1:0,l=t.position[1]>=r?1:0;(e=this._newSubRegion()).setBBox(s*o+n[0],l*a+n[1],(s+1)*o+n[0],(l+1)*a+n[1])}e.addNode(t)},h._updateCenterOfMass=function(t){null==this.centerOfMass&&(this.centerOfMass=new Float32Array(2));var e=this.centerOfMass[0]*this.mass,n=this.centerOfMass[1]*this.mass;e+=t.position[0]*t.mass,n+=t.position[1]*t.mass,this.mass+=t.mass,this.centerOfMass[0]=e/this.mass,this.centerOfMass[1]=n/this.mass};var p=d.prototype;p.initNodes=function(t,e,n){var i=e.length;this.nodes.length=0;for(var r=void 0!==n,o=0;o<i;o++){var a=new c;a.position[0]=t[2*o],a.position[1]=t[2*o+1],a.mass=e[o],r&&(a.size=n[o]),this.nodes.push(a)}this._massArr=e,this._swingingArr=new Float32Array(i),r&&(this._sizeArr=n)},p.initEdges=function(t,e){var n=t.length/2;this.edges.length=0;for(var i=0;i<n;i++){var r=t[2*i],o=t[2*i+1],a=this.nodes[r],s=this.nodes[o];if(!a||!s)return void console.error("Node not exists, try initNodes before initEdges");a.outDegree++,s.inDegree++;var l=new u(a,s);e&&(l.weight=e[i]),this.edges.push(l)}},p.updateSettings=function(){if(this.repulsionByDegree)for(var t=0;t<this.nodes.length;t++){(e=this.nodes[t]).mass=e.inDegree+e.outDegree+1}else for(t=0;t<this.nodes.length;t++){var e;(e=this.nodes[t]).mass=this._massArr[t]}},p.update=function(){var o=this.nodes.length;if(this.updateSettings(),this.updateBBox(),this.barnesHutOptimize){this.rootRegion.setBBox(this.bbox[0],this.bbox[1],this.bbox[2],this.bbox[3]),this.rootRegion.beforeUpdate();for(var l=0;l<o;l++)this.rootRegion.addNode(this.nodes[l]);this.rootRegion.afterUpdate()}for(l=0;l<o;l++){var h=this.nodes[l];a(h.forcePrev,h.force),s(h.force,0,0)}for(l=0;l<o;l++){var c=this.nodes[l];if(this.barnesHutOptimize)this.applyRegionToNodeRepulsion(this.rootRegion,c);else for(var u=l+1;u<o;u++){var d=this.nodes[u];this.applyNodeToNodeRepulsion(c,d,!1)}this.gravity>0&&(this.strongGravityMode?this.applyNodeStrongGravity(c):this.applyNodeGravity(c))}for(l=0;l<this.edges.length;l++)this.applyEdgeAttraction(this.edges[l]);var p=0,f=0,g=t();for(l=0;l<o;l++){h=this.nodes[l];p+=(v=e(h.force,h.forcePrev))*h.mass,r(g,h.force,h.forcePrev),f+=.5*n(g)*h.mass,this._swingingArr[l]=v}var m=this.jitterTolerence*this.jitterTolerence*f/p;this._globalSpeed>0&&(m=Math.min(m/this._globalSpeed,1.5)*this._globalSpeed),this._globalSpeed=m;for(l=0;l<o;l++){h=this.nodes[l];var v=this._swingingArr[l],y=.1*m/(1+m*Math.sqrt(v)),_=n(h.force);_>0&&(y=Math.min(_*y,10)/_,i(h.position,h.position,h.force,y))}},p.applyRegionToNodeRepulsion=function(){var e=t();return function(t,n){if(t.node)this.applyNodeToNodeRepulsion(t.node,n,!0);else{o(e,n.position,t.centerOfMass);var r=e[0]*e[0]+e[1]*e[1];if(r>this.barnesHutTheta*t.size*t.size){var a=this.scaling*n.mass*t.mass/r;i(n.force,n.force,e,a)}else for(var s=0;s<t.nSubRegions;s++)this.applyRegionToNodeRepulsion(t.subRegions[s],n)}}}(),p.applyNodeToNodeRepulsion=function(){var e=t();return function(t,n,r){if(t!=n){o(e,t.position,n.position);var a=e[0]*e[0]+e[1]*e[1];if(0!==a){var s;if(this.preventOverlap){var l=Math.sqrt(a);if((l=l-t.size-n.size)>0)s=this.scaling*t.mass*n.mass/(l*l);else{if(!(l<0))return;s=100*this.scaling*t.mass*n.mass}}else s=this.scaling*t.mass*n.mass/a;i(t.force,t.force,e,s),i(n.force,n.force,e,-s)}}}}(),p.applyEdgeAttraction=function(){var e=t();return function(t){var r=t.source,a=t.target;o(e,r.position,a.position);var s,l,h=n(e);s=0===this.edgeWeightInfluence?1:1===this.edgeWeightInfluence?t.weight:Math.pow(t.weight,this.edgeWeightInfluence),this.preventOverlap&&(h=h-r.size-a.size)<=0||(l=this.linLogMode?-s*Math.log(h+1)/(h+1):-s,i(r.force,r.force,e,l),i(a.force,a.force,e,-l))}}(),p.applyNodeGravity=function(){var e=t();return function(t){o(e,this.gravityCenter,t.position);var r=n(e);i(t.force,t.force,e,this.gravity*t.mass/(r+1))}}(),p.applyNodeStrongGravity=function(){var e=t();return function(t){o(e,this.gravityCenter,t.position),i(t.force,t.force,e,this.gravity*t.mass)}}(),p.updateBBox=function(){for(var t=1/0,e=1/0,n=-1/0,i=-1/0,r=0;r<this.nodes.length;r++){var o=this.nodes[r].position;t=Math.min(t,o[0]),e=Math.min(e,o[1]),n=Math.max(n,o[0]),i=Math.max(i,o[1])}this.bbox[0]=t,this.bbox[1]=e,this.bbox[2]=n,this.bbox[3]=i},p.getGlobalSpeed=function(){return this._globalSpeed};var f=null;self.onmessage=function(t){switch(t.data.cmd){case"init":(f=new d).initNodes(t.data.nodesPosition,t.data.nodesMass,t.data.nodesSize),f.initEdges(t.data.edges,t.data.edgesWeight);break;case"updateConfig":if(f)for(var e in t.data.config)f[e]=t.data.config[e];break;case"update":var n=t.data.steps;if(f){for(var i=0;i<n;i++)f.update();var r=f.nodes.length,o=new Float32Array(2*r);for(i=0;i<r;i++){var a=f.nodes[i];o[2*i]=a.position[0],o[2*i+1]=a.position[1]}self.postMessage({buffer:o.buffer,globalSpeed:f.getGlobalSpeed()},[o.buffer])}else{var s=new Float32Array;self.postMessage({buffer:s.buffer,globalSpeed:f.getGlobalSpeed()},[s.buffer])}}}};var kd=Ed.toString();kd=kd.slice(kd.indexOf("{")+1,kd.lastIndexOf("}"));var Ld={barnesHutOptimize:!0,barnesHutTheta:1.5,repulsionByDegree:!0,linLogMode:!1,strongGravityMode:!1,gravity:1,scaling:1,edgeWeightInfluence:1,jitterTolerence:.1,preventOverlap:!1,dissuadeHubs:!1,gravityCenter:null},Dd=function(t){for(var e in Ld)this[e]=Ld[e];if(t)for(var e in t)this[e]=t[e];this._nodes=[],this._edges=[],this._disposed=!1,this._positionTex=new fi({type:ai.FLOAT,flipY:!1,minFilter:ai.NEAREST,magFilter:ai.NEAREST})};Dd.prototype.initData=function(t,e){var n=new Blob([kd]),i=window.URL.createObjectURL(n);this._worker=new Worker(i),this._worker.onmessage=this._$onupdate.bind(this),this._nodes=t,this._edges=e,this._frame=0;for(var r=t.length,o=e.length,a=new Float32Array(2*r),s=new Float32Array(r),l=new Float32Array(r),h=new Float32Array(2*o),c=new Float32Array(o),u=0;u<t.length;u++){var d=t[u];a[2*u]=d.x,a[2*u+1]=d.y,s[u]=null==d.mass?1:d.mass,l[u]=null==d.size?1:d.size}for(u=0;u<e.length;u++){var p=e[u],f=p.node1,g=p.node2;h[2*u]=f,h[2*u+1]=g,c[u]=null==p.weight?1:p.weight}var m=Math.ceil(Math.sqrt(t.length)),v=m,y=new Float32Array(m*v*4),_=this._positionTex;_.width=m,_.height=v,_.pixels=y,this._worker.postMessage({cmd:"init",nodesPosition:a,nodesMass:s,nodesSize:l,edges:h,edgesWeight:c}),this._globalSpeed=1/0},Dd.prototype.updateOption=function(t){var e={};for(var n in Ld)e[n]=Ld[n];var i=this._nodes,r=this._edges,o=i.length;if(e.jitterTolerence=o>5e4?10:o>5e3?1:.1,e.scaling=o>100?2:10,e.barnesHutOptimize=o>1e3,t)for(var n in Ld)null!=t[n]&&(e[n]=t[n]);if(!e.gravityCenter){for(var a=[1/0,1/0],s=[-1/0,-1/0],l=0;l<i.length;l++)a[0]=Math.min(i[l].x,a[0]),a[1]=Math.min(i[l].y,a[1]),s[0]=Math.max(i[l].x,s[0]),s[1]=Math.max(i[l].y,s[1]);e.gravityCenter=[.5*(a[0]+s[0]),.5*(a[1]+s[1])]}for(l=0;l<r.length;l++){var h=r[l].node1,c=r[l].node2;i[h].degree=(i[h].degree||0)+1,i[c].degree=(i[c].degree||0)+1}this._worker&&this._worker.postMessage({cmd:"updateConfig",config:e})},Dd.prototype.update=function(t,e,n){null==e&&(e=1),e=Math.max(e,1),this._frame+=e,this._onupdate=n,this._worker&&this._worker.postMessage({cmd:"update",steps:Math.round(e)})},Dd.prototype._$onupdate=function(t){if(!this._disposed){var e=new Float32Array(t.data.buffer);this._globalSpeed=t.data.globalSpeed,this._positionArr=e,this._updateTexture(e),this._onupdate&&this._onupdate()}},Dd.prototype.getNodePositionTexture=function(){return this._positionTex},Dd.prototype.getNodeUV=function(t,e){e=e||[];var n=this._positionTex.width,i=this._positionTex.height;return e[0]=t%n/(n-1),e[1]=Math.floor(t/n)/(i-1),e},Dd.prototype.getNodes=function(){return this._nodes},Dd.prototype.getEdges=function(){return this._edges},Dd.prototype.isFinished=function(t){return this._frame>t},Dd.prototype.getNodePosition=function(t,e){if(e||(e=new Float32Array(2*this._nodes.length)),this._positionArr)for(var n=0;n<this._positionArr.length;n++)e[n]=this._positionArr[n];return e},Dd.prototype._updateTexture=function(t){for(var e=this._positionTex.pixels,n=0,i=0;i<t.length;)e[n++]=t[i++],e[n++]=t[i++],e[n++]=1,e[n++]=1;this._positionTex.dirty()},Dd.prototype.dispose=function(t){this._disposed=!0,this._worker=null};const Pd=Dd;var Rd=y.extend((function(){return{zr:null,viewGL:null,minZoom:.2,maxZoom:5,_needsUpdate:!1,_dx:0,_dy:0,_zoom:1}}),(function(){this._mouseDownHandler=this._mouseDownHandler.bind(this),this._mouseWheelHandler=this._mouseWheelHandler.bind(this),this._mouseMoveHandler=this._mouseMoveHandler.bind(this),this._mouseUpHandler=this._mouseUpHandler.bind(this),this._update=this._update.bind(this)}),{init:function(){var t=this.zr;t.on("mousedown",this._mouseDownHandler),t.on("mousewheel",this._mouseWheelHandler),t.on("globalout",this._mouseUpHandler),t.animation.on("frame",this._update)},setTarget:function(t){this._target=t},setZoom:function(t){this._zoom=Math.max(Math.min(t,this.maxZoom),this.minZoom),this._needsUpdate=!0},setOffset:function(t){this._dx=t[0],this._dy=t[1],this._needsUpdate=!0},getZoom:function(){return this._zoom},getOffset:function(){return[this._dx,this._dy]},_update:function(){if(this._target&&this._needsUpdate){var t=this._target,e=this._zoom;t.position.x=this._dx,t.position.y=this._dy,t.scale.set(e,e,e),this.zr.refresh(),this._needsUpdate=!1,this.trigger("update")}},_mouseDownHandler:function(t){if(!t.target){var e=t.offsetX,n=t.offsetY;if(!this.viewGL||this.viewGL.containPoint(e,n)){this.zr.on("mousemove",this._mouseMoveHandler),this.zr.on("mouseup",this._mouseUpHandler);var i=this._convertPos(e,n);this._x=i.x,this._y=i.y}}},_convertPos:function(t,e){var n=this.viewGL.camera,i=this.viewGL.viewport;return{x:(t-i.x)/i.width*(n.right-n.left)+n.left,y:(e-i.y)/i.height*(n.bottom-n.top)+n.top}},_mouseMoveHandler:function(t){var e=this._convertPos(t.offsetX,t.offsetY);this._dx+=e.x-this._x,this._dy+=e.y-this._y,this._x=e.x,this._y=e.y,this._needsUpdate=!0},_mouseUpHandler:function(t){this.zr.off("mousemove",this._mouseMoveHandler),this.zr.off("mouseup",this._mouseUpHandler)},_mouseWheelHandler:function(t){var e=(t=t.event).wheelDelta||-t.detail;if(0!==e){var n=t.offsetX,i=t.offsetY;if(!this.viewGL||this.viewGL.containPoint(n,i)){var r=e>0?1.1:.9,o=Math.max(Math.min(this._zoom*r,this.maxZoom),this.minZoom);r=o/this._zoom;var a=this._convertPos(n,i),s=(a.x-this._dx)*(r-1),l=(a.y-this._dy)*(r-1);this._dx-=s,this._dy-=l,this._zoom=o,this._needsUpdate=!0}}},dispose:function(){var t=this.zr;t.off("mousedown",this._mouseDownHandler),t.off("mousemove",this._mouseMoveHandler),t.off("mouseup",this._mouseUpHandler),t.off("mousewheel",this._mouseWheelHandler),t.off("globalout",this._mouseUpHandler),t.animation.off("frame",this._update)}});const Od=Rd;var Nd=Ea.vec2;ia.Shader.import("@export ecgl.lines2D.vertex\n\nuniform mat4 worldViewProjection : WORLDVIEWPROJECTION;\n\nattribute vec2 position: POSITION;\nattribute vec4 a_Color : COLOR;\nvarying vec4 v_Color;\n\n#ifdef POSITIONTEXTURE_ENABLED\nuniform sampler2D positionTexture;\n#endif\n\nvoid main()\n{\n gl_Position = worldViewProjection * vec4(position, -10.0, 1.0);\n\n v_Color = a_Color;\n}\n\n@end\n\n@export ecgl.lines2D.fragment\n\nuniform vec4 color : [1.0, 1.0, 1.0, 1.0];\n\nvarying vec4 v_Color;\n\nvoid main()\n{\n gl_FragColor = color * v_Color;\n}\n@end\n\n\n@export ecgl.meshLines2D.vertex\n\nattribute vec2 position: POSITION;\nattribute vec2 normal;\nattribute float offset;\nattribute vec4 a_Color : COLOR;\n\nuniform mat4 worldViewProjection : WORLDVIEWPROJECTION;\nuniform vec4 viewport : VIEWPORT;\n\nvarying vec4 v_Color;\nvarying float v_Miter;\n\nvoid main()\n{\n vec4 p2 = worldViewProjection * vec4(position + normal, -10.0, 1.0);\n gl_Position = worldViewProjection * vec4(position, -10.0, 1.0);\n\n p2.xy /= p2.w;\n gl_Position.xy /= gl_Position.w;\n\n vec2 N = normalize(p2.xy - gl_Position.xy);\n gl_Position.xy += N * offset / viewport.zw * 2.0;\n\n gl_Position.xy *= gl_Position.w;\n\n v_Color = a_Color;\n}\n@end\n\n\n@export ecgl.meshLines2D.fragment\n\nuniform vec4 color : [1.0, 1.0, 1.0, 1.0];\n\nvarying vec4 v_Color;\nvarying float v_Miter;\n\nvoid main()\n{\n gl_FragColor = color * v_Color;\n}\n\n@end");var Fd=1;const Bd=i.OZ.extend({type:"graphGL",__ecgl__:!0,init:function(t,e){this.groupGL=new ia.Node,this.viewGL=new wl("orthographic"),this.viewGL.camera.left=this.viewGL.camera.right=0,this.viewGL.add(this.groupGL),this._pointsBuilder=new Eu(!0,e),this._forceEdgesMesh=new ia.Mesh({material:new ia.Material({shader:ia.createShader("ecgl.forceAtlas2.edges"),transparent:!0,depthMask:!1,depthTest:!1}),$ignorePicking:!0,geometry:new ia.Geometry({attributes:{node:new ia.Geometry.Attribute("node","float",2),color:new ia.Geometry.Attribute("color","float",4,"COLOR")},dynamic:!0,mainAttribute:"node"}),renderOrder:-1,mode:ia.Mesh.LINES}),this._edgesMesh=new ia.Mesh({material:new ia.Material({shader:ia.createShader("ecgl.meshLines2D"),transparent:!0,depthMask:!1,depthTest:!1}),$ignorePicking:!0,geometry:new Md({useNativeLine:!1,dynamic:!0}),renderOrder:-1,culling:!1}),this._layoutId=0,this._control=new Od({zr:e.getZr(),viewGL:this.viewGL}),this._control.setTarget(this.groupGL),this._control.init(),this._clickHandler=this._clickHandler.bind(this)},render:function(t,e,n){this.groupGL.add(this._pointsBuilder.rootNode),this._model=t,this._api=n,this._initLayout(t,e,n),this._pointsBuilder.update(t,e,n),this._forceLayoutInstance instanceof Id||this.groupGL.remove(this._forceEdgesMesh),this._updateCamera(t,n),this._control.off("update"),this._control.on("update",(function(){n.dispatchAction({type:"graphGLRoam",seriesId:t.id,zoom:this._control.getZoom(),offset:this._control.getOffset()}),this._pointsBuilder.updateView(this.viewGL.camera)}),this),this._control.setZoom(wo.firstNotNull(t.get("zoom"),1)),this._control.setOffset(t.get("offset")||[0,0]);var i=this._pointsBuilder.getPointsMesh();if(i.off("mousemove",this._mousemoveHandler),i.off("mouseout",this._mouseOutHandler,this),n.getZr().off("click",this._clickHandler),this._pointsBuilder.highlightOnMouseover=!0,t.get("focusNodeAdjacency")){var r=t.get("focusNodeAdjacencyOn");"click"===r?n.getZr().on("click",this._clickHandler):"mouseover"===r&&(i.on("mousemove",this._mousemoveHandler,this),i.on("mouseout",this._mouseOutHandler,this),this._pointsBuilder.highlightOnMouseover=!1)}this._lastMouseOverDataIndex=-1},_clickHandler:function(t){if(!this._layouting){var e=this._pointsBuilder.getPointsMesh().dataIndex;e>=0?this._api.dispatchAction({type:"graphGLFocusNodeAdjacency",seriesId:this._model.id,dataIndex:e}):this._api.dispatchAction({type:"graphGLUnfocusNodeAdjacency",seriesId:this._model.id})}},_mousemoveHandler:function(t){if(!this._layouting){var e=this._pointsBuilder.getPointsMesh().dataIndex;e>=0?e!==this._lastMouseOverDataIndex&&this._api.dispatchAction({type:"graphGLFocusNodeAdjacency",seriesId:this._model.id,dataIndex:e}):this._mouseOutHandler(t),this._lastMouseOverDataIndex=e}},_mouseOutHandler:function(t){this._layouting||(this._api.dispatchAction({type:"graphGLUnfocusNodeAdjacency",seriesId:this._model.id}),this._lastMouseOverDataIndex=-1)},_updateForceEdgesGeometry:function(t,e){var n=this._forceEdgesMesh.geometry,i=e.getEdgeData(),r=0,o=this._forceLayoutInstance,a=2*i.count();n.attributes.node.init(a),n.attributes.color.init(a),i.each((function(e){var a=t[e];n.attributes.node.set(r,o.getNodeUV(a.node1)),n.attributes.node.set(r+1,o.getNodeUV(a.node2));var s=bh(i,a.dataIndex),l=ia.parseColor(s);l[3]*=wo.firstNotNull(wh(i,a.dataIndex),1),n.attributes.color.set(r,l),n.attributes.color.set(r+1,l),r+=2})),n.dirty()},_updateMeshLinesGeometry:function(){var t=this._model.getEdgeData(),e=this._edgesMesh.geometry,n=(t=this._model.getEdgeData(),this._model.getData().getLayout("points"));e.resetOffset(),e.setVertexCount(t.count()*e.getLineVertexCount()),e.setTriangleCount(t.count()*e.getLineTriangleCount());var i=[],r=[],o=["lineStyle","width"];this._originalEdgeColors=new Float32Array(4*t.count()),this._edgeIndicesMap=new Float32Array(t.count()),t.each((function(a){var s=t.graph.getEdgeByIndex(a),l=2*s.node1.dataIndex,h=2*s.node2.dataIndex;i[0]=n[l],i[1]=n[l+1],r[0]=n[h],r[1]=n[h+1];var c=bh(t,s.dataIndex),u=ia.parseColor(c);u[3]*=wo.firstNotNull(wh(t,s.dataIndex),1);var d=t.getItemModel(s.dataIndex),p=wo.firstNotNull(d.get(o),1)*this._api.getDevicePixelRatio();e.addLine(i,r,u,p);for(var f=0;f<4;f++)this._originalEdgeColors[4*s.dataIndex+f]=u[f];this._edgeIndicesMap[s.dataIndex]=a}),this),e.dirty()},_updateForceNodesGeometry:function(t){for(var e=this._pointsBuilder.getPointsMesh(),n=[],i=0;i<t.count();i++)this._forceLayoutInstance.getNodeUV(i,n),e.geometry.attributes.position.set(i,n);e.geometry.dirty("position")},_initLayout:function(t,e,n){var r=t.get("layout"),o=t.getGraph(),a=t.getBoxLayoutParams(),s=(0,cs.dV)(a,{width:n.getWidth(),height:n.getHeight()});"force"===r&&(r="forceAtlas2"),this.stopLayout(t,e,n,{beforeLayout:!0});var l=t.getData(),h=t.getData();if("forceAtlas2"===r){var c=t.getModel("forceAtlas2"),u=this._forceLayoutInstance,d=[],p=[],f=l.getDataExtent("value"),g=h.getDataExtent("value"),m=wo.firstNotNull(c.get("edgeWeight"),1),v=wo.firstNotNull(c.get("nodeWeight"),1);"number"==typeof m&&(m=[m,m]),"number"==typeof v&&(v=[v,v]);var y=0,_={},x=new Float32Array(2*l.count());if(o.eachNode((function(t){var e,n,r=t.dataIndex,o=l.get("value",r);if(l.hasItemOption){var a=l.getItemModel(r);e=a.get("x"),n=a.get("y")}null==e&&(e=s.x+Math.random()*s.width,n=s.y+Math.random()*s.height),x[2*y]=e,x[2*y+1]=n,_[t.id]=y++;var h=i.ai.linearMap(o,f,v);isNaN(h)&&(h=isNaN(v[0])?1:v[0]),d.push({x:e,y:n,mass:h,size:l.getItemVisual(r,"symbolSize")})})),l.setLayout("points",x),o.eachEdge((function(t){var e=t.dataIndex,n=l.get("value",e),r=i.ai.linearMap(n,g,m);isNaN(r)&&(r=isNaN(m[0])?1:m[0]),p.push({node1:_[t.node1.id],node2:_[t.node2.id],weight:r,dataIndex:e})})),!u){var b=c.get("GPU");this._forceLayoutInstance&&((!b||this._forceLayoutInstance instanceof Id)&&(b||this._forceLayoutInstance instanceof Pd)||(this._forceLayoutInstanceToDispose=this._forceLayoutInstance)),u=this._forceLayoutInstance=b?new Id:new Pd}u.initData(d,p),u.updateOption(c.option),this._updateForceEdgesGeometry(u.getEdges(),t),this._updatePositionTexture(),n.dispatchAction({type:"graphGLStartLayout",from:this.uid})}else{x=new Float32Array(2*l.count()),y=0;o.eachNode((function(t){var e,n,i=t.dataIndex;if(l.hasItemOption){var r=l.getItemModel(i);e=r.get("x"),n=r.get("y")}x[y++]=e,x[y++]=n})),l.setLayout("points",x),this._updateAfterLayout(t,e,n)}},_updatePositionTexture:function(){var t=this._forceLayoutInstance.getNodePositionTexture();this._pointsBuilder.setPositionTexture(t),this._forceEdgesMesh.material.set("positionTex",t)},startLayout:function(t,e,n,i){if(!i||null==i.from||i.from===this.uid){var r=this.viewGL,o=(n=this._api,this._forceLayoutInstance),a=this._model.getData(),s=this._model.getModel("forceAtlas2");if(o&&(this.groupGL.remove(this._edgesMesh),this.groupGL.add(this._forceEdgesMesh),this._forceLayoutInstance)){this._updateForceNodesGeometry(t.getData()),this._pointsBuilder.hideLabels();var l=this,h=this._layoutId=Fd++,c=s.getShallow("maxSteps"),u=s.getShallow("steps"),d=0,p=Math.max(2*u,20),f=function(e){if(e===l._layoutId)return o.isFinished(c)?(n.dispatchAction({type:"graphGLStopLayout",from:l.uid}),void n.dispatchAction({type:"graphGLFinishLayout",points:a.getLayout("points"),from:l.uid})):void o.update(r.layer.renderer,u,(function(){l._updatePositionTexture(),(d+=u)>=p&&(l._syncNodePosition(t),d=0),n.getZr().refresh(),(0,ra.A)((function(){f(e)}))}))};(0,ra.A)((function(){l._forceLayoutInstanceToDispose&&(l._forceLayoutInstanceToDispose.dispose(r.layer.renderer),l._forceLayoutInstanceToDispose=null),f(h)})),this._layouting=!0}}},stopLayout:function(t,e,n,i){i&&null!=i.from&&i.from!==this.uid||(this._layoutId=0,this.groupGL.remove(this._forceEdgesMesh),this.groupGL.add(this._edgesMesh),this._forceLayoutInstance&&this.viewGL.layer&&(i&&i.beforeLayout||(this._syncNodePosition(t),this._updateAfterLayout(t,e,n)),this._api.getZr().refresh(),this._layouting=!1))},_syncNodePosition:function(t){var e=this._forceLayoutInstance.getNodePosition(this.viewGL.layer.renderer);t.getData().setLayout("points",e),t.setNodePosition(e)},_updateAfterLayout:function(t,e,n){this._updateMeshLinesGeometry(),this._pointsBuilder.removePositionTexture(),this._pointsBuilder.updateLayout(t,e,n),this._pointsBuilder.updateView(this.viewGL.camera),this._pointsBuilder.updateLabels(),this._pointsBuilder.showLabels()},focusNodeAdjacency:function(t,e,n,i){var r=this._model.getData();this._downplayAll();var o=i.dataIndex,a=r.graph,s=[],l=a.getNodeByIndex(o);s.push(l),l.edges.forEach((function(t){t.dataIndex<0||(t.node1!==l&&s.push(t.node1),t.node2!==l&&s.push(t.node2))}),this),this._pointsBuilder.fadeOutAll(.05),this._fadeOutEdgesAll(.05),s.forEach((function(t){this._pointsBuilder.highlight(r,t.dataIndex)}),this),this._pointsBuilder.updateLabels(s.map((function(t){return t.dataIndex})));var h=[];l.edges.forEach((function(t){t.dataIndex>=0&&(this._highlightEdge(t.dataIndex),h.push(t))}),this),this._focusNodes=s,this._focusEdges=h},unfocusNodeAdjacency:function(t,e,n,i){this._downplayAll(),this._pointsBuilder.fadeInAll(),this._fadeInEdgesAll(),this._pointsBuilder.updateLabels()},_highlightEdge:function(t){var e=this._model.getEdgeData().getItemModel(t),n=ia.parseColor(e.get("emphasis.lineStyle.color")||e.get("lineStyle.color")),i=wo.firstNotNull(e.get("emphasis.lineStyle.opacity"),e.get("lineStyle.opacity"),1);n[3]*=i,this._edgesMesh.geometry.setItemColor(this._edgeIndicesMap[t],n)},_downplayAll:function(){this._focusNodes&&this._focusNodes.forEach((function(t){this._pointsBuilder.downplay(this._model.getData(),t.dataIndex)}),this),this._focusEdges&&this._focusEdges.forEach((function(t){this._downplayEdge(t.dataIndex)}),this)},_downplayEdge:function(t){var e=this._getColor(t,[]);this._edgesMesh.geometry.setItemColor(this._edgeIndicesMap[t],e)},_setEdgeFade:function(){var t=[];return function(e,n){this._getColor(e,t),t[3]*=n,this._edgesMesh.geometry.setItemColor(this._edgeIndicesMap[e],t)}}(),_getColor:function(t,e){for(var n=0;n<4;n++)e[n]=this._originalEdgeColors[4*t+n];return e},_fadeOutEdgesAll:function(t){this._model.getData().graph.eachEdge((function(e){this._setEdgeFade(e.dataIndex,t)}),this)},_fadeInEdgesAll:function(){this._fadeOutEdgesAll(1)},_updateCamera:function(t,e){this.viewGL.setViewport(0,0,e.getWidth(),e.getHeight(),e.getDevicePixelRatio());for(var n=this.viewGL.camera,i=t.getData().getLayout("points"),r=Nd.create(1/0,1/0),o=Nd.create(-1/0,-1/0),a=[],s=0;s<i.length;)a[0]=i[s++],a[1]=i[s++],Nd.min(r,r,a),Nd.max(o,o,a);var l=(o[1]+r[1])/2,h=(o[0]+r[0])/2;if(!(h>n.left&&h<n.right&&l<n.bottom&&l>n.top)){var c=Math.max(o[0]-r[0],10),u=c/e.getWidth()*e.getHeight();c*=1.4,u*=1.4,r[0]-=.2*c,n.left=r[0],n.top=l-u/2,n.bottom=l+u/2,n.right=c+r[0],n.near=0,n.far=100}},dispose:function(){var t=this.viewGL.layer.renderer;this._forceLayoutInstance&&this._forceLayoutInstance.dispose(t),this.groupGL.removeAll(),this._layoutId=-1,this._pointsBuilder.dispose()},remove:function(){this.groupGL.removeAll(),this._control.dispose()}});function zd(t){return t instanceof Array||(t=[t,t]),t}(0,i.Yx)((function(t){function e(){}t.registerChartView(Bd),t.registerSeriesModel(bd),t.registerVisual((function(t){const e={};t.eachSeriesByType("graphGL",(function(t){var n=t.getCategoriesData(),r=t.getData(),o={};n.each((function(i){var r=n.getName(i);o["ec-"+r]=i;var a=n.getItemModel(i),s=a.getModel("itemStyle").getItemStyle();s.fill||(s.fill=t.getColorFromPalette(r,e)),n.setItemVisual(i,"style",s);var l=["symbol","symbolSize","symbolKeepAspect"];for(let t=0;t<l.length;t++){var h=a.getShallow(l[t],!0);null!=h&&n.setItemVisual(i,l[t],h)}})),n.count()&&r.each((function(t){let e=r.getItemModel(t).getShallow("category");if(null!=e){"string"==typeof e&&(e=o["ec-"+e]);var a=n.getItemVisual(e,"style"),s=r.ensureUniqueItemVisual(t,"style");i.ZS.extend(s,a);var l=["symbol","symbolSize","symbolKeepAspect"];for(let i=0;i<l.length;i++)r.setItemVisual(t,l[i],n.getItemVisual(e,l[i]))}}))}))})),t.registerVisual((function(t){t.eachSeriesByType("graphGL",(function(t){var e=t.getGraph(),n=t.getEdgeData(),r=zd(t.get("edgeSymbol")),o=zd(t.get("edgeSymbolSize"));n.setVisual("drawType","stroke"),n.setVisual("fromSymbol",r&&r[0]),n.setVisual("toSymbol",r&&r[1]),n.setVisual("fromSymbolSize",o&&o[0]),n.setVisual("toSymbolSize",o&&o[1]),n.setVisual("style",t.getModel("lineStyle").getLineStyle()),n.each((function(t){var r=n.getItemModel(t),o=e.getEdgeByIndex(t),a=zd(r.getShallow("symbol",!0)),s=zd(r.getShallow("symbolSize",!0)),l=r.getModel("lineStyle").getLineStyle(),h=n.ensureUniqueItemVisual(t,"style");switch(i.ZS.extend(h,l),h.stroke){case"source":var c=o.node1.getVisual("style");h.stroke=c&&c.fill;break;case"target":c=o.node2.getVisual("style");h.stroke=c&&c.fill}a[0]&&o.setVisual("fromSymbol",a[0]),a[1]&&o.setVisual("toSymbol",a[1]),s[0]&&o.setVisual("fromSymbolSize",s[0]),s[1]&&o.setVisual("toSymbolSize",s[1])}))}))})),t.registerAction({type:"graphGLRoam",event:"graphglroam",update:"series.graphGL:roam"},(function(t,e){e.eachComponent({mainType:"series",query:t},(function(e){e.setView(t)}))})),t.registerAction({type:"graphGLStartLayout",event:"graphgllayoutstarted",update:"series.graphGL:startLayout"},e),t.registerAction({type:"graphGLStopLayout",event:"graphgllayoutstopped",update:"series.graphGL:stopLayout"},e),t.registerAction({type:"graphGLFocusNodeAdjacency",event:"graphGLFocusNodeAdjacency",update:"series.graphGL:focusNodeAdjacency"},e),t.registerAction({type:"graphGLUnfocusNodeAdjacency",event:"graphGLUnfocusNodeAdjacency",update:"series.graphGL:unfocusNodeAdjacency"},e)}));const Gd=i.rP.extend({type:"series.flowGL",dependencies:["geo","grid","bmap"],visualStyleAccessPath:"itemStyle",getInitialData:function(t,e){var n=this.get("coordinateSystem"),r="geo"===n?["lng","lat"]:i.Bo(n)||["x","y"];r.push("vx","vy");var o=i.dw.createDimensions(this.getSource(),{coordDimensions:r,encodeDefine:this.get("encode"),dimensionsDefine:this.get("dimensions")}),a=new i.B8(o,this);return a.initData(this.getSource()),a},defaultOption:{coordinateSystem:"cartesian2d",zlevel:10,supersampling:1,particleType:"point",particleDensity:128,particleSize:1,particleSpeed:1,particleTrail:2,colorTexture:null,gridWidth:"auto",gridHeight:"auto",itemStyle:{color:"#fff",opacity:.8}}});const Vd=Ci.extend((function(){return{dynamic:!0,attributes:{position:new Ci.Attribute("position","float",3,"POSITION")}}}),{resetOffset:function(){this._vertexOffset=0,this._faceOffset=0},setLineCount:function(t){var e=this.attributes,n=4*t,i=2*t;this.vertexCount!==n&&e.position.init(n),this.triangleCount!==i&&(this.indices=0===i?null:this.vertexCount>65535?new Uint32Array(3*i):new Uint16Array(3*i))},addLine:function(t){var e=this._vertexOffset;this.attributes.position.set(e,[t[0],t[1],1]),this.attributes.position.set(e+1,[t[0],t[1],-1]),this.attributes.position.set(e+2,[t[0],t[1],2]),this.attributes.position.set(e+3,[t[0],t[1],-2]),this.setTriangleIndices(this._faceOffset++,[e,e+1,e+2]),this.setTriangleIndices(this._faceOffset++,[e+1,e+2,e+3]),this._vertexOffset+=4}});Ce.import("@export ecgl.vfParticle.particle.fragment\n\nuniform sampler2D particleTexture;\nuniform sampler2D spawnTexture;\nuniform sampler2D velocityTexture;\n\nuniform float deltaTime;\nuniform float elapsedTime;\n\nuniform float speedScaling : 1.0;\n\nuniform vec2 textureSize;\nuniform vec4 region : [0, 0, 1, 1];\nuniform float firstFrameTime;\n\nvarying vec2 v_Texcoord;\n\n\nvoid main()\n{\n vec4 p = texture2D(particleTexture, v_Texcoord);\n bool spawn = false;\n if (p.w <= 0.0) {\n p = texture2D(spawnTexture, fract(v_Texcoord + elapsedTime / 10.0));\n p.w -= firstFrameTime;\n spawn = true;\n }\n vec2 v = texture2D(velocityTexture, fract(p.xy * region.zw + region.xy)).xy;\n v = (v - 0.5) * 2.0;\n p.z = length(v);\n p.xy += v * deltaTime / 10.0 * speedScaling;\n p.w -= deltaTime;\n\n if (spawn || p.xy != fract(p.xy)) {\n p.z = 0.0;\n }\n p.xy = fract(p.xy);\n\n gl_FragColor = p;\n}\n@end\n\n@export ecgl.vfParticle.renderPoints.vertex\n\n#define PI 3.1415926\n\nattribute vec2 texcoord : TEXCOORD_0;\n\nuniform sampler2D particleTexture;\nuniform mat4 worldViewProjection : WORLDVIEWPROJECTION;\n\nuniform float size : 1.0;\n\nvarying float v_Mag;\nvarying vec2 v_Uv;\n\nvoid main()\n{\n vec4 p = texture2D(particleTexture, texcoord);\n\n if (p.w > 0.0 && p.z > 1e-5) {\n gl_Position = worldViewProjection * vec4(p.xy * 2.0 - 1.0, 0.0, 1.0);\n }\n else {\n gl_Position = vec4(100000.0, 100000.0, 100000.0, 1.0);\n }\n\n v_Mag = p.z;\n v_Uv = p.xy;\n\n gl_PointSize = size;\n}\n\n@end\n\n@export ecgl.vfParticle.renderPoints.fragment\n\nuniform vec4 color : [1.0, 1.0, 1.0, 1.0];\nuniform sampler2D gradientTexture;\nuniform sampler2D colorTexture;\nuniform sampler2D spriteTexture;\n\nvarying float v_Mag;\nvarying vec2 v_Uv;\n\nvoid main()\n{\n gl_FragColor = color;\n#ifdef SPRITETEXTURE_ENABLED\n gl_FragColor *= texture2D(spriteTexture, gl_PointCoord);\n if (color.a == 0.0) {\n discard;\n }\n#endif\n#ifdef GRADIENTTEXTURE_ENABLED\n gl_FragColor *= texture2D(gradientTexture, vec2(v_Mag, 0.5));\n#endif\n#ifdef COLORTEXTURE_ENABLED\n gl_FragColor *= texture2D(colorTexture, v_Uv);\n#endif\n}\n\n@end\n\n@export ecgl.vfParticle.renderLines.vertex\n\n#define PI 3.1415926\n\nattribute vec3 position : POSITION;\n\nuniform sampler2D particleTexture;\nuniform sampler2D prevParticleTexture;\n\nuniform float size : 1.0;\nuniform vec4 vp: VIEWPORT;\nuniform mat4 worldViewProjection : WORLDVIEWPROJECTION;\n\nvarying float v_Mag;\nvarying vec2 v_Uv;\n\n@import clay.util.rand\n\nvoid main()\n{\n vec4 p = texture2D(particleTexture, position.xy);\n vec4 p2 = texture2D(prevParticleTexture, position.xy);\n\n p.xy = p.xy * 2.0 - 1.0;\n p2.xy = p2.xy * 2.0 - 1.0;\n\n if (p.w > 0.0 && p.z > 1e-5) {\n vec2 dir = normalize(p.xy - p2.xy);\n vec2 norm = vec2(dir.y / vp.z, -dir.x / vp.w) * sign(position.z) * size;\n if (abs(position.z) == 2.0) {\n gl_Position = vec4(p.xy + norm, 0.0, 1.0);\n v_Uv = p.xy;\n v_Mag = p.z;\n }\n else {\n gl_Position = vec4(p2.xy + norm, 0.0, 1.0);\n v_Mag = p2.z;\n v_Uv = p2.xy;\n }\n gl_Position = worldViewProjection * gl_Position;\n }\n else {\n gl_Position = vec4(100000.0, 100000.0, 100000.0, 1.0);\n }\n}\n\n@end\n\n@export ecgl.vfParticle.renderLines.fragment\n\nuniform vec4 color : [1.0, 1.0, 1.0, 1.0];\nuniform sampler2D gradientTexture;\nuniform sampler2D colorTexture;\n\nvarying float v_Mag;\nvarying vec2 v_Uv;\n\nvoid main()\n{\n gl_FragColor = color;\n #ifdef GRADIENTTEXTURE_ENABLED\n gl_FragColor *= texture2D(gradientTexture, vec2(v_Mag, 0.5));\n#endif\n#ifdef COLORTEXTURE_ENABLED\n gl_FragColor *= texture2D(colorTexture, v_Uv);\n#endif\n}\n\n@end\n");var jd=function(){this.motionBlurFactor=.99,this.vectorFieldTexture=new fi({type:ai.FLOAT,flipY:!1}),this.particleLife=[5,20],this._particleType="point",this._particleSize=1,this.particleColor=[1,1,1,1],this.particleSpeedScaling=1,this._thisFrameTexture=null,this._particlePass=null,this._spawnTexture=null,this._particleTexture0=null,this._particleTexture1=null,this._particlePointsMesh=null,this._surfaceFrameBuffer=null,this._elapsedTime=0,this._scene=null,this._camera=null,this._lastFrameTexture=null,this._supersampling=1,this._downsampleTextures=[],this._width=512,this._height=512,this.init()};jd.prototype={constructor:jd,init:function(){var t={type:ai.FLOAT,minFilter:ai.NEAREST,magFilter:ai.NEAREST,useMipmap:!1};this._spawnTexture=new fi(t),this._particleTexture0=new fi(t),this._particleTexture1=new fi(t),this._frameBuffer=new Ir({depthBuffer:!1}),this._particlePass=new lo({fragment:Ce.source("ecgl.vfParticle.particle.fragment")}),this._particlePass.setUniform("velocityTexture",this.vectorFieldTexture),this._particlePass.setUniform("spawnTexture",this._spawnTexture),this._downsamplePass=new lo({fragment:Ce.source("clay.compositor.downsample")});var e=new li({renderOrder:10,material:new Ht({shader:new Ce(Ce.source("ecgl.vfParticle.renderPoints.vertex"),Ce.source("ecgl.vfParticle.renderPoints.fragment"))}),mode:li.POINTS,geometry:new Ci({dynamic:!0,mainAttribute:"texcoord0"})}),n=new li({renderOrder:10,material:new Ht({shader:new Ce(Ce.source("ecgl.vfParticle.renderLines.vertex"),Ce.source("ecgl.vfParticle.renderLines.fragment"))}),geometry:new Vd,culling:!1}),i=new li({material:new Ht({shader:new Ce(Ce.source("ecgl.color.vertex"),Ce.source("ecgl.color.fragment"))}),geometry:new Pr});i.material.enableTexture("diffuseMap"),this._particlePointsMesh=e,this._particleLinesMesh=n,this._lastFrameFullQuadMesh=i,this._camera=new ro,this._thisFrameTexture=new fi,this._lastFrameTexture=new fi},setParticleDensity:function(t,e){for(var n=new Float32Array(4*(t*e)),i=0,r=this.particleLife,o=0;o<t;o++)for(var a=0;a<e;a++,i++){n[4*i]=Math.random(),n[4*i+1]=Math.random(),n[4*i+2]=Math.random();var s=(r[1]-r[0])*Math.random()+r[0];n[4*i+3]=s}"line"===this._particleType?this._setLineGeometry(t,e):this._setPointsGeometry(t,e),this._spawnTexture.width=t,this._spawnTexture.height=e,this._spawnTexture.pixels=n,this._particleTexture0.width=this._particleTexture1.width=t,this._particleTexture0.height=this._particleTexture1.height=e,this._particlePass.setUniform("textureSize",[t,e])},_setPointsGeometry:function(t,e){var n=t*e,i=this._particlePointsMesh.geometry,r=i.attributes;r.texcoord0.init(n);for(var o=0,a=0;a<t;a++)for(var s=0;s<e;s++,o++)r.texcoord0.value[2*o]=a/t,r.texcoord0.value[2*o+1]=s/e;i.dirty()},_setLineGeometry:function(t,e){var n=t*e,i=this._getParticleMesh().geometry;i.setLineCount(n),i.resetOffset();for(var r=0;r<t;r++)for(var o=0;o<e;o++)i.addLine([r/t,o/e]);i.dirty()},_getParticleMesh:function(){return"line"===this._particleType?this._particleLinesMesh:this._particlePointsMesh},update:function(t,e,n,i){var r=this._getParticleMesh(),o=this._frameBuffer,a=this._particlePass;i&&this._updateDownsampleTextures(t,e),r.material.set("size",this._particleSize*this._supersampling),r.material.set("color",this.particleColor),a.setUniform("speedScaling",this.particleSpeedScaling),o.attach(this._particleTexture1),a.setUniform("firstFrameTime",i?(this.particleLife[1]+this.particleLife[0])/2:0),a.setUniform("particleTexture",this._particleTexture0),a.setUniform("deltaTime",n),a.setUniform("elapsedTime",this._elapsedTime),a.render(t,o),r.material.set("particleTexture",this._particleTexture1),r.material.set("prevParticleTexture",this._particleTexture0),o.attach(this._thisFrameTexture),o.bind(t),t.gl.clear(t.gl.DEPTH_BUFFER_BIT|t.gl.COLOR_BUFFER_BIT);var s=this._lastFrameFullQuadMesh;s.material.set("diffuseMap",this._lastFrameTexture),s.material.set("color",[1,1,1,this.motionBlurFactor]),this._camera.update(!0),t.renderPass([s,r],this._camera),o.unbind(t),this._downsample(t),this._swapTexture(),this._elapsedTime+=n},_downsample:function(t){var e=this._downsampleTextures;if(0!==e.length)for(var n=0,i=this._thisFrameTexture,r=e[n];r;)this._frameBuffer.attach(r),this._downsamplePass.setUniform("texture",i),this._downsamplePass.setUniform("textureSize",[i.width,i.height]),this._downsamplePass.render(t,this._frameBuffer),i=r,r=e[++n]},getSurfaceTexture:function(){var t=this._downsampleTextures;return t.length>0?t[t.length-1]:this._lastFrameTexture},setRegion:function(t){this._particlePass.setUniform("region",t)},resize:function(t,e){this._lastFrameTexture.width=t*this._supersampling,this._lastFrameTexture.height=e*this._supersampling,this._thisFrameTexture.width=t*this._supersampling,this._thisFrameTexture.height=e*this._supersampling,this._width=t,this._height=e},setParticleSize:function(t){var e=this._getParticleMesh();if(t<=2)return e.material.disableTexture("spriteTexture"),void(e.material.transparent=!1);this._spriteTexture||(this._spriteTexture=new fi),this._spriteTexture.image&&this._spriteTexture.image.width===t||(this._spriteTexture.image=function(t){var e=document.createElement("canvas");e.width=e.height=t;var n=e.getContext("2d");return n.fillStyle="#fff",n.arc(t/2,t/2,t/2,0,2*Math.PI),n.fill(),e}(t),this._spriteTexture.dirty()),e.material.transparent=!0,e.material.enableTexture("spriteTexture"),e.material.set("spriteTexture",this._spriteTexture),this._particleSize=t},setGradientTexture:function(t){var e=this._getParticleMesh().material;e[t?"enableTexture":"disableTexture"]("gradientTexture"),e.setUniform("gradientTexture",t)},setColorTextureImage:function(t,e){this._getParticleMesh().material.setTextureImage("colorTexture",t,e,{flipY:!0})},setParticleType:function(t){this._particleType=t},clearFrame:function(t){var e=this._frameBuffer;e.attach(this._lastFrameTexture),e.bind(t),t.gl.clear(t.gl.DEPTH_BUFFER_BIT|t.gl.COLOR_BUFFER_BIT),e.unbind(t)},setSupersampling:function(t){this._supersampling=t,this.resize(this._width,this._height)},_updateDownsampleTextures:function(t,e){for(var n=this._downsampleTextures,i=Math.max(Math.floor(Math.log(this._supersampling/e.getDevicePixelRatio())/Math.log(2)),0),r=2,o=this._width*this._supersampling,a=this._height*this._supersampling,s=0;s<i;s++)n[s]=n[s]||new fi,n[s].width=o/r,n[s].height=a/r,r*=2;for(;s<n.length;s++)n[s].dispose(t);n.length=i},_swapTexture:function(){var t=this._particleTexture0;this._particleTexture0=this._particleTexture1,this._particleTexture1=t;t=this._thisFrameTexture;this._thisFrameTexture=this._lastFrameTexture,this._lastFrameTexture=t},dispose:function(t){t.disposeFrameBuffer(this._frameBuffer),t.disposeTexture(this.vectorFieldTexture),t.disposeTexture(this._spawnTexture),t.disposeTexture(this._particleTexture0),t.disposeTexture(this._particleTexture1),t.disposeTexture(this._thisFrameTexture),t.disposeTexture(this._lastFrameTexture),t.disposeGeometry(this._particleLinesMesh.geometry),t.disposeGeometry(this._particlePointsMesh.geometry),t.disposeGeometry(this._lastFrameFullQuadMesh.geometry),this._spriteTexture&&t.disposeTexture(this._spriteTexture),this._particlePass.dispose(t),this._downsamplePass.dispose(t),this._downsampleTextures.forEach((function(e){e.dispose(t)}))}};const Hd=jd,Wd=i.OZ.extend({type:"flowGL",__ecgl__:!0,init:function(t,e){this.viewGL=new wl("orthographic"),this.groupGL=new ia.Node,this.viewGL.add(this.groupGL),this._particleSurface=new Hd;var n=new ia.Mesh({geometry:new ia.PlaneGeometry,material:new ia.Material({shader:new ia.Shader({vertex:ia.Shader.source("ecgl.color.vertex"),fragment:ia.Shader.source("ecgl.color.fragment")}),transparent:!0})});n.material.enableTexture("diffuseMap"),this.groupGL.add(n),this._planeMesh=n},render:function(t,e,n){var i=this._particleSurface;i.setParticleType(t.get("particleType")),i.setSupersampling(t.get("supersampling")),this._updateData(t,n),this._updateCamera(n.getWidth(),n.getHeight(),n.getDevicePixelRatio());var r=wo.firstNotNull(t.get("particleDensity"),128);i.setParticleDensity(r,r);var o=this._planeMesh,a=+new Date,s=this,l=!0;o.__percent=0,o.stopAnimation(),o.animate("",{loop:!0}).when(1e5,{__percent:1}).during((function(){var t=+new Date,e=Math.min(t-a,20);a+=e,s._renderer&&(i.update(s._renderer,n,e/1e3,l),o.material.set("diffuseMap",i.getSurfaceTexture())),l=!1})).start();var h=t.getModel("itemStyle"),c=ia.parseColor(h.get("color"));c[3]*=wo.firstNotNull(h.get("opacity"),1),o.material.set("color",c),i.setColorTextureImage(t.get("colorTexture"),n),i.setParticleSize(t.get("particleSize")),i.particleSpeedScaling=t.get("particleSpeed"),i.motionBlurFactor=1-Math.pow(.1,t.get("particleTrail"))},updateTransform:function(t,e,n){this._updateData(t,n)},afterRender:function(t,e,n,i){var r=i.renderer;this._renderer=r},_updateData:function(t,e){var n=t.coordinateSystem,i=n.dimensions.map((function(e){return t.coordDimToDataDim(e)[0]})),r=t.getData(),o=r.getDataExtent(i[0]),a=r.getDataExtent(i[1]),s=t.get("gridWidth"),l=t.get("gridHeight");if(null==s||"auto"===s){var h=(o[1]-o[0])/(a[1]-a[0]);s=Math.round(Math.sqrt(h*r.count()))}null!=l&&"auto"!==l||(l=Math.ceil(r.count()/s));var c=this._particleSurface.vectorFieldTexture,u=c.pixels;if(u&&u.length===l*s*4)for(var d=0;d<u.length;d++)u[d]=0;else u=c.pixels=new Float32Array(s*l*4);var p=0,f=1/0,g=new Float32Array(2*r.count()),m=0,v=[[1/0,1/0],[-1/0,-1/0]];r.each([i[0],i[1],"vx","vy"],(function(t,e,i,r){var o=n.dataToPoint([t,e]);g[m++]=o[0],g[m++]=o[1],v[0][0]=Math.min(o[0],v[0][0]),v[0][1]=Math.min(o[1],v[0][1]),v[1][0]=Math.max(o[0],v[1][0]),v[1][1]=Math.max(o[1],v[1][1]);var a=Math.sqrt(i*i+r*r);p=Math.max(p,a),f=Math.min(f,a)})),r.each(["vx","vy"],(function(t,e,n){var i=Math.round((g[2*n]-v[0][0])/(v[1][0]-v[0][0])*(s-1)),r=4*((l-1-Math.round((g[2*n+1]-v[0][1])/(v[1][1]-v[0][1])*(l-1)))*s+i);u[r]=t/p*.5+.5,u[r+1]=e/p*.5+.5,u[r+3]=1})),c.width=s,c.height=l,"bmap"===t.get("coordinateSystem")&&this._fillEmptyPixels(c),c.dirty(),this._updatePlanePosition(v[0],v[1],t,e),this._updateGradientTexture(r.getVisual("visualMeta"),[f,p])},_fillEmptyPixels:function(t){var e=t.pixels,n=t.width,i=t.height;function r(t,r,o){t=Math.max(Math.min(t,n-1),0);var a=4*((r=Math.max(Math.min(r,i-1),0))*(n-1)+t);return 0!==e[a+3]&&(o[0]=e[a],o[1]=e[a+1],!0)}function o(t,e,n){n[0]=t[0]+e[0],n[1]=t[1]+e[1]}for(var a=[],s=[],l=[],h=[],c=[],u=0,d=0;d<i;d++)for(var p=0;p<n;p++){var f=4*(d*(n-1)+p);0===e[f+3]&&(u=a[0]=a[1]=0,r(p-1,d,s)&&(u++,o(s,a,a)),r(p+1,d,l)&&(u++,o(l,a,a)),r(p,d-1,h)&&(u++,o(h,a,a)),r(p,d+1,c)&&(u++,o(c,a,a)),a[0]/=u,a[1]/=u,e[f]=a[0],e[f+1]=a[1]),e[f+3]=1}},_updateGradientTexture:function(t,e){if(t&&t.length){this._gradientTexture=this._gradientTexture||new ia.Texture2D({image:document.createElement("canvas")});var n=this._gradientTexture,i=n.image;i.width=200,i.height=1;var r=i.getContext("2d"),o=r.createLinearGradient(0,.5,i.width,.5);t[0].stops.forEach((function(t){var n;e[1]===e[0]?n=0:(n=t.value/e[1],n=Math.min(Math.max(n,0),1)),o.addColorStop(n,t.color)})),r.fillStyle=o,r.fillRect(0,0,i.width,i.height),n.dirty(),this._particleSurface.setGradientTexture(this._gradientTexture)}else this._particleSurface.setGradientTexture(null)},_updatePlanePosition:function(t,e,n,i){var r=this._limitInViewportAndFullFill(t,e,n,i);t=r.leftTop,e=r.rightBottom,this._particleSurface.setRegion(r.region),this._planeMesh.position.set((t[0]+e[0])/2,i.getHeight()-(t[1]+e[1])/2,0);var o=e[0]-t[0],a=e[1]-t[1];this._planeMesh.scale.set(o/2,a/2,1),this._particleSurface.resize(Math.max(Math.min(o,2048),1),Math.max(Math.min(a,2048),1)),this._renderer&&this._particleSurface.clearFrame(this._renderer)},_limitInViewportAndFullFill:function(t,e,n,i){var r=[Math.max(t[0],0),Math.max(t[1],0)],o=[Math.min(e[0],i.getWidth()),Math.min(e[1],i.getHeight())];if("bmap"===n.get("coordinateSystem")){var a=n.getData().getDataExtent(n.coordDimToDataDim("lng")[0]);Math.floor(a[1]-a[0])>=359&&(r[0]>0&&(r[0]=0),o[0]<i.getWidth()&&(o[0]=i.getWidth()))}var s=e[0]-t[0],l=e[1]-t[1],h=o[0]-r[0],c=o[1]-r[1];return{leftTop:r,rightBottom:o,region:[(r[0]-t[0])/s,1-c/l-(r[1]-t[1])/l,h/s,c/l]}},_updateCamera:function(t,e,n){this.viewGL.setViewport(0,0,t,e,n);var i=this.viewGL.camera;i.left=i.bottom=0,i.top=e,i.right=t,i.near=0,i.far=100,i.position.z=10},remove:function(){this._planeMesh.stopAnimation(),this.groupGL.removeAll()},dispose:function(){this._renderer&&this._particleSurface.dispose(this._renderer),this.groupGL.removeAll()}});(0,i.Yx)((function(t){t.registerChartView(Wd),t.registerSeriesModel(Gd)}));var Ud=n(7845),qd=i.rP.extend({type:"series.linesGL",dependencies:["grid","geo"],visualStyleAccessPath:"lineStyle",visualDrawType:"stroke",streamEnabled:!0,init:function(t){var e=this._processFlatCoordsArray(t.data);this._flatCoords=e.flatCoords,this._flatCoordsOffset=e.flatCoordsOffset,e.flatCoords&&(t.data=new Float32Array(e.count)),qd.superApply(this,"init",arguments)},mergeOption:function(t){var e=this._processFlatCoordsArray(t.data);this._flatCoords=e.flatCoords,this._flatCoordsOffset=e.flatCoordsOffset,e.flatCoords&&(t.data=new Float32Array(e.count)),qd.superApply(this,"mergeOption",arguments)},appendData:function(t){var e=this._processFlatCoordsArray(t.data);e.flatCoords&&(this._flatCoords?(this._flatCoords=(0,Ud.concatArray)(this._flatCoords,e.flatCoords),this._flatCoordsOffset=(0,Ud.concatArray)(this._flatCoordsOffset,e.flatCoordsOffset)):(this._flatCoords=e.flatCoords,this._flatCoordsOffset=e.flatCoordsOffset),t.data=new Float32Array(e.count)),this.getRawData().appendData(t.data)},_getCoordsFromItemModel:function(t){var e=this.getData().getItemModel(t);return e.option instanceof Array?e.option:e.getShallow("coords")},getLineCoordsCount:function(t){return this._flatCoordsOffset?this._flatCoordsOffset[2*t+1]:this._getCoordsFromItemModel(t).length},getLineCoords:function(t,e){if(this._flatCoordsOffset){for(var n=this._flatCoordsOffset[2*t],i=this._flatCoordsOffset[2*t+1],r=0;r<i;r++)e[r]=e[r]||[],e[r][0]=this._flatCoords[n+2*r],e[r][1]=this._flatCoords[n+2*r+1];return i}var o=this._getCoordsFromItemModel(t);for(r=0;r<o.length;r++)e[r]=e[r]||[],e[r][0]=o[r][0],e[r][1]=o[r][1];return o.length},_processFlatCoordsArray:function(t){var e=0;if(this._flatCoords&&(e=this._flatCoords.length),"number"==typeof t[0]){for(var n=t.length,i=new Uint32Array(n),r=new Float64Array(n),o=0,a=0,s=0,l=0;l<n;){s++;var h=t[l++];i[a++]=o+e,i[a++]=h;for(var c=0;c<h;c++){var u=t[l++],d=t[l++];r[o++]=u,r[o++]=d}}return{flatCoordsOffset:new Uint32Array(i.buffer,0,a),flatCoords:r,count:s}}return{flatCoordsOffset:null,flatCoords:null,count:t.length}},getInitialData:function(t,e){var n=new i.B8(["value"],this);return n.hasItemOption=!1,n.initData(t.data,[],(function(t,e,i,r){if(t instanceof Array)return NaN;n.hasItemOption=!0;var o=t.value;return null!=o?o instanceof Array?o[r]:o:void 0})),n},defaultOption:{coordinateSystem:"geo",zlevel:10,progressive:1e4,progressiveThreshold:5e4,blendMode:"source-over",lineStyle:{opacity:.8},postEffect:{enable:!1,colorCorrection:{exposure:0,brightness:0,contrast:1,saturation:1,enable:!0}}}});const Xd=qd,Yd=i.OZ.extend({type:"linesGL",__ecgl__:!0,init:function(t,e){this.groupGL=new ia.Node,this.viewGL=new wl("orthographic"),this.viewGL.add(this.groupGL),this._glViewHelper=new md(this.viewGL),this._nativeLinesShader=ia.createShader("ecgl.lines3D"),this._meshLinesShader=ia.createShader("ecgl.meshLines3D"),this._linesMeshes=[],this._currentStep=0},render:function(t,e,n){this.groupGL.removeAll(),this._glViewHelper.reset(t,n);var i=this._linesMeshes[0];i||(i=this._linesMeshes[0]=this._createLinesMesh(t)),this._linesMeshes.length=1,this.groupGL.add(i),this._updateLinesMesh(t,i,0,t.getData().count()),this.viewGL.setPostEffect(t.getModel("postEffect"),n)},incrementalPrepareRender:function(t,e,n){this.groupGL.removeAll(),this._glViewHelper.reset(t,n),this._currentStep=0,this.viewGL.setPostEffect(t.getModel("postEffect"),n)},incrementalRender:function(t,e,n,i){var r=this._linesMeshes[this._currentStep];r||(r=this._createLinesMesh(e),this._linesMeshes[this._currentStep]=r),this._updateLinesMesh(e,r,t.start,t.end),this.groupGL.add(r),i.getZr().refresh(),this._currentStep++},updateTransform:function(t,e,n){t.coordinateSystem.getRoamTransform&&this._glViewHelper.updateTransform(t,n)},_createLinesMesh:function(t){return new ia.Mesh({$ignorePicking:!0,material:new ia.Material({shader:ia.createShader("ecgl.lines3D"),transparent:!0,depthMask:!1,depthTest:!1}),geometry:new Md({segmentScale:10,useNativeLine:!0,dynamic:!1}),mode:ia.Mesh.LINES,culling:!1})},_updateLinesMesh:function(t,e,n,i){var r=t.getData();e.material.blend="lighter"===t.get("blendMode")?ia.additiveBlend:null;var o=t.get("lineStyle.curveness")||0,a=t.get("polyline"),s=e.geometry,l=t.coordinateSystem,h=wo.firstNotNull(t.get("lineStyle.width"),1);h>1?(e.material.shader!==this._meshLinesShader&&e.material.attachShader(this._meshLinesShader),e.mode=ia.Mesh.TRIANGLES):(e.material.shader!==this._nativeLinesShader&&e.material.attachShader(this._nativeLinesShader),e.mode=ia.Mesh.LINES),n=n||0,i=i||r.count(),s.resetOffset();var c=0,u=0,d=[],p=[],f=[],g=[],m=[],v=.3,y=.7;function _(){p[0]=d[0]*y+g[0]*v-(d[1]-g[1])*o,p[1]=d[1]*y+g[1]*v-(g[0]-d[0])*o,f[0]=d[0]*v+g[0]*y-(d[1]-g[1])*o,f[1]=d[1]*v+g[1]*y-(g[0]-d[0])*o}if(a||0!==o)for(var x=n;x<i;x++)if(a){var b=t.getLineCoordsCount(x);c+=s.getPolylineVertexCount(b),u+=s.getPolylineTriangleCount(b)}else t.getLineCoords(x,m),this._glViewHelper.dataToPoint(l,m[0],d),this._glViewHelper.dataToPoint(l,m[1],g),_(),c+=s.getCubicCurveVertexCount(d,p,f,g),u+=s.getCubicCurveTriangleCount(d,p,f,g);else{var w=i-n;c+=w*s.getLineVertexCount(),u+=w*s.getLineVertexCount()}s.setVertexCount(c),s.setTriangleCount(u);var S=n,T=[];for(x=n;x<i;x++){ia.parseColor(bh(r,S),T);var M=wo.firstNotNull(wh(r,S),1);T[3]*=M;b=t.getLineCoords(x,m);for(var A=0;A<b;A++)this._glViewHelper.dataToPoint(l,m[A],m[A]);a?s.addPolyline(m,T,h,0,b):0!==o?(d=m[0],g=m[1],_(),s.addCubicCurve(d,p,f,g,T,h)):s.addPolyline(m,T,h,0,2),S++}},dispose:function(){this.groupGL.removeAll()},remove:function(){this.groupGL.removeAll()}});(0,i.Yx)((function(t){t.registerChartView(Yd),t.registerSeriesModel(Xd)}))},1216:(t,e,n)=>{"use strict";var i=n(4979);function r(t,e){for(var n in e)o(e,n)&&(t[n]=e[n])}function o(t,e){return Object.prototype.hasOwnProperty.call(t,e)}t.exports=function(t){i(t)||(t={});for(var e=arguments.length,n=1;n<e;n++){var o=arguments[n];i(o)&&r(t,o)}return t}},4146:(t,e,n)=>{"use strict";var i=n(6999),r=n(5034);function o(t,e){for(var n in e)h(e,n)&&(t[n]=e[n])}function a(t){return t&&"string"==typeof t}function s(t){var e={};for(var n in t)e[n]=t[n];return e}function l(t){return t&&"object"==typeof t||i(t)}function h(t,e){return Object.prototype.hasOwnProperty.call(t,e)}t.exports=Object.assign||function(t){if(null==t)throw new TypeError("Cannot convert undefined or null to object");l(t)||(t={});for(var e=1;e<arguments.length;e++){var n=arguments[e];a(n)&&(n=s(n)),l(n)&&(o(t,n),r(t,n))}return t}},8096:t=>{"use strict";t.exports=function(t,e,n){for(var i in t)if(!1===e.call(n,t[i],i,t))break}},5417:t=>{function e(t){return t?Array.isArray(t)?t.join("."):t:""}t.exports=function(t,n,i,r,o){if(null===(a=t)||"object"!=typeof a&&"function"!=typeof a||!n)return t;var a;if(n=e(n),i&&(n+="."+e(i)),r&&(n+="."+e(r)),o&&(n+="."+e(o)),n in t)return t[n];for(var s=n.split("."),l=s.length,h=-1;t&&++h<l;){for(var c=s[h];"\\"===c[c.length-1];)c=c.slice(0,-1)+"."+s[++h];t=t[c]}return t}},4979:t=>{"use strict";t.exports=function(t){return null!=t&&("object"==typeof t||"function"==typeof t)}},6999:(t,e,n)=>{"use strict";var i=n(9133);t.exports=function(t){return i(t)||"function"==typeof t||Array.isArray(t)}},9133:(t,e,n)=>{"use strict";var i=n(5231);function r(t){return!0===i(t)&&"[object Object]"===Object.prototype.toString.call(t)}t.exports=function(t){var e,n;return!1!==r(t)&&("function"==typeof(e=t.constructor)&&(!1!==r(n=e.prototype)&&!1!==n.hasOwnProperty("isPrototypeOf")))}},5231:t=>{"use strict";t.exports=function(t){return null!=t&&"object"==typeof t&&!1===Array.isArray(t)}},9231:(t,e,n)=>{"use strict";n.r(e),n.d(e,{Leva:()=>Wc,LevaInputs:()=>io,LevaPanel:()=>Xc,LevaStoreProvider:()=>Co,button:()=>hc,buttonGroup:()=>cc,folder:()=>sc,levaStore:()=>rc,monitor:()=>dc,useControls:()=>Yc,useCreateStore:()=>oc,useStoreContext:()=>Ao});var i=n(4059),r=n(7378),o=n.t(r,2);function a(...t){return e=>t.forEach((t=>function(t,e){"function"==typeof t?t(e):null!=t&&(t.current=e)}(t,e)))}function s(...t){return r.useCallback(a(...t),t)}var l=n(6106),h=r.forwardRef(((t,e)=>{const{children:n,...i}=t,o=r.Children.toArray(n),a=o.find(d);if(a){const t=a.props.children,n=o.map((e=>e===a?r.Children.count(t)>1?r.Children.only(null):r.isValidElement(t)?t.props.children:null:e));return(0,l.jsx)(c,{...i,ref:e,children:r.isValidElement(t)?r.cloneElement(t,void 0,n):null})}return(0,l.jsx)(c,{...i,ref:e,children:n})}));h.displayName="Slot";var c=r.forwardRef(((t,e)=>{const{children:n,...i}=t;if(r.isValidElement(n)){const t=function(t){let e=Object.getOwnPropertyDescriptor(t.props,"ref")?.get,n=e&&"isReactWarning"in e&&e.isReactWarning;if(n)return t.ref;if(e=Object.getOwnPropertyDescriptor(t,"ref")?.get,n=e&&"isReactWarning"in e&&e.isReactWarning,n)return t.props.ref;return t.props.ref||t.ref}(n);return r.cloneElement(n,{...p(i,n.props),ref:e?a(e,t):t})}return r.Children.count(n)>1?r.Children.only(null):null}));c.displayName="SlotClone";var u=({children:t})=>(0,l.jsx)(l.Fragment,{children:t});function d(t){return r.isValidElement(t)&&t.type===u}function p(t,e){const n={...e};for(const i in e){const r=t[i],o=e[i];/^on[A-Z]/.test(i)?r&&o?n[i]=(...t)=>{o(...t),r(...t)}:r&&(n[i]=r):"style"===i?n[i]={...r,...o}:"className"===i&&(n[i]=[r,o].filter(Boolean).join(" "))}return{...t,...n}}var f=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","span","svg","ul"].reduce(((t,e)=>{const n=r.forwardRef(((t,n)=>{const{asChild:i,...r}=t,o=i?h:e;return"undefined"!=typeof window&&(window[Symbol.for("radix-ui")]=!0),(0,l.jsx)(o,{...r,ref:n})}));return n.displayName=`Primitive.${e}`,{...t,[e]:n}}),{});var g=Boolean(globalThis?.document)?r.useLayoutEffect:()=>{},m=r.forwardRef(((t,e)=>{const{container:n,...o}=t,[a,s]=r.useState(!1);g((()=>s(!0)),[]);const h=n||a&&globalThis?.document?.body;return h?i.createPortal((0,l.jsx)(f.div,{...o,ref:e}),h):null}));m.displayName="Portal";var v=m,y=Object.prototype.hasOwnProperty;function _(t,e){var n,i;if(t===e)return!0;if(t&&e&&(n=t.constructor)===e.constructor){if(n===Date)return t.getTime()===e.getTime();if(n===RegExp)return t.toString()===e.toString();if(n===Array){if((i=t.length)===e.length)for(;i--&&_(t[i],e[i]););return-1===i}if(!n||"object"==typeof t){for(n in i=0,t){if(y.call(t,n)&&++i&&!y.call(e,n))return!1;if(!(n in e)||!_(t[n],e[n]))return!1}return Object.keys(e).length===i}}return t!=t&&e!=e}function x(t,e){if(Object.is(t,e))return!0;if("object"!=typeof t||null===t||"object"!=typeof e||null===e)return!1;const n=Object.keys(t);if(n.length!==Object.keys(e).length)return!1;for(let i=0;i<n.length;i++)if(!Object.prototype.hasOwnProperty.call(e,n[i])||!Object.is(t[n[i]],e[n[i]]))return!1;return!0}var b=function(t,e,n,i){this.name=t,this.fn=e,this.args=n,this.modifiers=i};function w(t,e){return void 0===e&&(e="simple"),"object"==typeof t?t[e]:t}function S(t,e,n){if(t.length){var i=t.shift(),r=S(t,e,n);return i.perform(r,n)}return w(e)}function T(t,e,n){if(t.length){var i=t.shift(),r=T(t,e,n);return i.performAsync(r,n)}return function(t){return Promise.resolve(w(e,"async")(t))}}b.prototype._test=function(t){var e=this.fn;try{S(this.modifiers.slice(),e,this)(t)}catch(n){e=function(){return!1}}try{return S(this.modifiers.slice(),e,this)(t)}catch(i){return!1}},b.prototype._check=function(t){try{S(this.modifiers.slice(),this.fn,this)(t)}catch(e){if(S(this.modifiers.slice(),(function(t){return t}),this)(!1))return}if(!S(this.modifiers.slice(),this.fn,this)(t))throw null},b.prototype._testAsync=function(t){var e=this;return new Promise((function(n,i){T(e.modifiers.slice(),e.fn,e)(t).then((function(e){e?n(t):i(null)})).catch((function(t){return i(t)}))}))};var M=function(t,e,n){this.name=t,this.perform=e,this.performAsync=n},A=function(t){function e(n,i,r,o){for(var a=[],s=arguments.length-4;s-- >0;)a[s]=arguments[s+4];t.call(this,a),t.captureStackTrace&&t.captureStackTrace(this,e),this.rule=n,this.value=i,this.cause=r,this.target=o}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e}(Error),C=function(t,e){void 0===t&&(t=[]),void 0===e&&(e=[]),this.chain=t,this.nextRuleModifiers=e};function I(t,e,n,i){if(e.length){var r=e.shift();r._testAsync(t).then((function(){I(t,e,n,i)}),(function(e){i(new A(r,t,e))}))}else n(t)}C.prototype._applyRule=function(t,e){var n=this;return function(){for(var i=[],r=arguments.length;r--;)i[r]=arguments[r];return n.chain.push(new b(e,t.apply(n,i),i,n.nextRuleModifiers)),n.nextRuleModifiers=[],n}},C.prototype._applyModifier=function(t,e){return this.nextRuleModifiers.push(new M(e,t.simple,t.async)),this},C.prototype._clone=function(){return new C(this.chain.slice(),this.nextRuleModifiers.slice())},C.prototype.test=function(t){return this.chain.every((function(e){return e._test(t)}))},C.prototype.testAll=function(t){var e=[];return this.chain.forEach((function(n){try{n._check(t)}catch(i){e.push(new A(n,t,i))}})),e},C.prototype.check=function(t){this.chain.forEach((function(e){try{e._check(t)}catch(n){throw new A(e,t,n)}}))},C.prototype.testAsync=function(t){var e=this;return new Promise((function(n,i){I(t,e.chain.slice(),n,i)}))};var E=function(t,e){return!(!e||"string"!=typeof t||0!==t.trim().length)||null==t};function k(){return"undefined"!=typeof Proxy?D(new C):P(new C)}var L={};function D(t){return new Proxy(t,{get:function(e,n){if(n in e)return e[n];var i=D(t._clone());return n in R?i._applyModifier(R[n],n):n in L?i._applyRule(L[n],n):n in F?i._applyRule(F[n],n):void 0}})}function P(t){var e=function(t,e){return Object.keys(t).forEach((function(n){e[n]=function(){for(var i=[],r=arguments.length;r--;)i[r]=arguments[r];return P(e._clone())._applyRule(t[n],n).apply(void 0,i)}})),e},n=e(F,t),i=e(L,n);return Object.keys(R).forEach((function(t){Object.defineProperty(i,t,{get:function(){return P(i._clone())._applyModifier(R[t],t)}})})),i}k.extend=function(t){Object.assign(L,t)},k.clearCustomRules=function(){L={}};var R={not:{simple:function(t){return function(e){return!t(e)}},async:function(t){return function(e){return Promise.resolve(t(e)).then((function(t){return!t})).catch((function(){return!0}))}}},some:{simple:function(t){return function(e){return N(e).some((function(e){try{return t(e)}catch(n){return!1}}))}},async:function(t){return function(e){return Promise.all(N(e).map((function(e){try{return t(e).catch((function(){return!1}))}catch(n){return!1}}))).then((function(t){return t.some(Boolean)}))}}},every:{simple:function(t){return function(e){return!1!==e&&N(e).every(t)}},async:function(t){return function(e){return Promise.all(N(e).map(t)).then((function(t){return t.every(Boolean)}))}}},strict:{simple:function(t,e){return function(n){return O(e)&&n&&"object"==typeof n?Object.keys(e.args[0]).length===Object.keys(n).length&&t(n):t(n)}},async:function(t,e){return function(n){return Promise.resolve(t(n)).then((function(t){return O(e)&&n&&"object"==typeof n?Object.keys(e.args[0]).length===Object.keys(n).length&&t:t})).catch((function(){return!1}))}}}};function O(t){return t&&"schema"===t.name&&t.args.length>0&&"object"==typeof t.args[0]}function N(t){return"string"==typeof t?t.split(""):t}var F={equal:function(t){return function(e){return e==t}},exact:function(t){return function(e){return e===t}},number:function(t){return void 0===t&&(t=!0),function(e){return"number"==typeof e&&(t||isFinite(e))}},integer:function(){return function(t){return(Number.isInteger||z)(t)}},numeric:function(){return function(t){return!isNaN(parseFloat(t))&&isFinite(t)}},string:function(){return B("string")},boolean:function(){return B("boolean")},undefined:function(){return B("undefined")},null:function(){return B("null")},array:function(){return B("array")},object:function(){return B("object")},instanceOf:function(t){return function(e){return e instanceof t}},pattern:function(t){return function(e){return t.test(e)}},lowercase:function(){return function(t){return"boolean"==typeof t||t===t.toLowerCase()&&""!==t.trim()}},uppercase:function(){return function(t){return t===t.toUpperCase()&&""!==t.trim()}},vowel:function(){return function(t){return/^[aeiou]+$/i.test(t)}},consonant:function(){return function(t){return/^(?=[^aeiou])([a-z]+)$/i.test(t)}},first:function(t){return function(e){return e[0]==t}},last:function(t){return function(e){return e[e.length-1]==t}},empty:function(){return function(t){return 0===t.length}},length:function(t,e){return function(n){return n.length>=t&&n.length<=(e||t)}},minLength:function(t){return function(e){return e.length>=t}},maxLength:function(t){return function(e){return e.length<=t}},negative:function(){return function(t){return t<0}},positive:function(){return function(t){return t>=0}},between:function(t,e){return function(n){return n>=t&&n<=e}},range:function(t,e){return function(n){return n>=t&&n<=e}},lessThan:function(t){return function(e){return e<t}},lessThanOrEqual:function(t){return function(e){return e<=t}},greaterThan:function(t){return function(e){return e>t}},greaterThanOrEqual:function(t){return function(e){return e>=t}},even:function(){return function(t){return t%2==0}},odd:function(){return function(t){return t%2!=0}},includes:function(t){return function(e){return~e.indexOf(t)}},schema:function(t){return function(t){return{simple:function(e){var n=[];if(Object.keys(t).forEach((function(i){var r=t[i];try{r.check((e||{})[i])}catch(o){o.target=i,n.push(o)}})),n.length>0)throw n;return!0},async:function(e){var n=[],i=Object.keys(t).map((function(i){return t[i].testAsync((e||{})[i]).catch((function(t){t.target=i,n.push(t)}))}));return Promise.all(i).then((function(){if(n.length>0)throw n;return!0}))}}}(t)},passesAnyOf:function(){for(var t=[],e=arguments.length;e--;)t[e]=arguments[e];return function(e){return t.some((function(t){return t.test(e)}))}},optional:function(t,e){return void 0===e&&(e=!1),{simple:function(n){return E(n,e)||void 0===t.check(n)},async:function(n){return E(n,e)||t.testAsync(n)}}}};function B(t){return function(e){return Array.isArray(e)&&"array"===t||null===e&&"null"===t||typeof e===t}}function z(t){return"number"==typeof t&&isFinite(t)&&Math.floor(t)===t}const G=k;var V="colors",j="sizes",H="space",W={gap:H,gridGap:H,columnGap:H,gridColumnGap:H,rowGap:H,gridRowGap:H,inset:H,insetBlock:H,insetBlockEnd:H,insetBlockStart:H,insetInline:H,insetInlineEnd:H,insetInlineStart:H,margin:H,marginTop:H,marginRight:H,marginBottom:H,marginLeft:H,marginBlock:H,marginBlockEnd:H,marginBlockStart:H,marginInline:H,marginInlineEnd:H,marginInlineStart:H,padding:H,paddingTop:H,paddingRight:H,paddingBottom:H,paddingLeft:H,paddingBlock:H,paddingBlockEnd:H,paddingBlockStart:H,paddingInline:H,paddingInlineEnd:H,paddingInlineStart:H,top:H,right:H,bottom:H,left:H,scrollMargin:H,scrollMarginTop:H,scrollMarginRight:H,scrollMarginBottom:H,scrollMarginLeft:H,scrollMarginX:H,scrollMarginY:H,scrollMarginBlock:H,scrollMarginBlockEnd:H,scrollMarginBlockStart:H,scrollMarginInline:H,scrollMarginInlineEnd:H,scrollMarginInlineStart:H,scrollPadding:H,scrollPaddingTop:H,scrollPaddingRight:H,scrollPaddingBottom:H,scrollPaddingLeft:H,scrollPaddingX:H,scrollPaddingY:H,scrollPaddingBlock:H,scrollPaddingBlockEnd:H,scrollPaddingBlockStart:H,scrollPaddingInline:H,scrollPaddingInlineEnd:H,scrollPaddingInlineStart:H,fontSize:"fontSizes",background:V,backgroundColor:V,backgroundImage:V,borderImage:V,border:V,borderBlock:V,borderBlockEnd:V,borderBlockStart:V,borderBottom:V,borderBottomColor:V,borderColor:V,borderInline:V,borderInlineEnd:V,borderInlineStart:V,borderLeft:V,borderLeftColor:V,borderRight:V,borderRightColor:V,borderTop:V,borderTopColor:V,caretColor:V,color:V,columnRuleColor:V,fill:V,outline:V,outlineColor:V,stroke:V,textDecorationColor:V,fontFamily:"fonts",fontWeight:"fontWeights",lineHeight:"lineHeights",letterSpacing:"letterSpacings",blockSize:j,minBlockSize:j,maxBlockSize:j,inlineSize:j,minInlineSize:j,maxInlineSize:j,width:j,minWidth:j,maxWidth:j,height:j,minHeight:j,maxHeight:j,flexBasis:j,gridTemplateColumns:j,gridTemplateRows:j,borderWidth:"borderWidths",borderTopWidth:"borderWidths",borderRightWidth:"borderWidths",borderBottomWidth:"borderWidths",borderLeftWidth:"borderWidths",borderStyle:"borderStyles",borderTopStyle:"borderStyles",borderRightStyle:"borderStyles",borderBottomStyle:"borderStyles",borderLeftStyle:"borderStyles",borderRadius:"radii",borderTopLeftRadius:"radii",borderTopRightRadius:"radii",borderBottomRightRadius:"radii",borderBottomLeftRadius:"radii",boxShadow:"shadows",textShadow:"shadows",transition:"transitions",zIndex:"zIndices"},U=(t,e)=>"function"==typeof e?{"()":Function.prototype.toString.call(e)}:e,q=()=>{const t=Object.create(null);return(e,n,...i)=>{const r=(t=>JSON.stringify(t,U))(e);return r in t?t[r]:t[r]=n(e,...i)}},X=Symbol.for("sxs.internal"),Y=(t,e)=>Object.defineProperties(t,Object.getOwnPropertyDescriptors(e)),Z=t=>{for(const e in t)return!0;return!1},{hasOwnProperty:$}=Object.prototype,K=t=>t.includes("-")?t:t.replace(/[A-Z]/g,(t=>"-"+t.toLowerCase())),J=/\s+(?![^()]*\))/,Q=t=>e=>t(..."string"==typeof e?String(e).split(J):[e]),tt={appearance:t=>({WebkitAppearance:t,appearance:t}),backfaceVisibility:t=>({WebkitBackfaceVisibility:t,backfaceVisibility:t}),backdropFilter:t=>({WebkitBackdropFilter:t,backdropFilter:t}),backgroundClip:t=>({WebkitBackgroundClip:t,backgroundClip:t}),boxDecorationBreak:t=>({WebkitBoxDecorationBreak:t,boxDecorationBreak:t}),clipPath:t=>({WebkitClipPath:t,clipPath:t}),content:t=>({content:t.includes('"')||t.includes("'")||/^([A-Za-z]+\([^]*|[^]*-quote|inherit|initial|none|normal|revert|unset)$/.test(t)?t:`"${t}"`}),hyphens:t=>({WebkitHyphens:t,hyphens:t}),maskImage:t=>({WebkitMaskImage:t,maskImage:t}),maskSize:t=>({WebkitMaskSize:t,maskSize:t}),tabSize:t=>({MozTabSize:t,tabSize:t}),textSizeAdjust:t=>({WebkitTextSizeAdjust:t,textSizeAdjust:t}),userSelect:t=>({WebkitUserSelect:t,userSelect:t}),marginBlock:Q(((t,e)=>({marginBlockStart:t,marginBlockEnd:e||t}))),marginInline:Q(((t,e)=>({marginInlineStart:t,marginInlineEnd:e||t}))),maxSize:Q(((t,e)=>({maxBlockSize:t,maxInlineSize:e||t}))),minSize:Q(((t,e)=>({minBlockSize:t,minInlineSize:e||t}))),paddingBlock:Q(((t,e)=>({paddingBlockStart:t,paddingBlockEnd:e||t}))),paddingInline:Q(((t,e)=>({paddingInlineStart:t,paddingInlineEnd:e||t})))},et=/([\d.]+)([^]*)/,nt=(t,e)=>t.length?t.reduce(((t,n)=>(t.push(...e.map((t=>t.includes("&")?t.replace(/&/g,/[ +>|~]/.test(n)&&/&.*&/.test(t)?`:is(${n})`:n):n+" "+t))),t)),[]):e,it=(t,e)=>t in rt&&"string"==typeof e?e.replace(/^((?:[^]*[^\w-])?)(fit-content|stretch)((?:[^\w-][^]*)?)$/,((e,n,i,r)=>n+("stretch"===i?`-moz-available${r};${K(t)}:${n}-webkit-fill-available`:`-moz-fit-content${r};${K(t)}:${n}fit-content`)+r)):String(e),rt={blockSize:1,height:1,inlineSize:1,maxBlockSize:1,maxHeight:1,maxInlineSize:1,maxWidth:1,minBlockSize:1,minHeight:1,minInlineSize:1,minWidth:1,width:1},ot=t=>t?t+"-":"",at=(t,e,n)=>t.replace(/([+-])?((?:\d+(?:\.\d*)?|\.\d+)(?:[Ee][+-]?\d+)?)?(\$|--)([$\w-]+)/g,((t,i,r,o,a)=>"$"==o==!!r?t:(i||"--"==o?"calc(":"")+"var(--"+("$"===o?ot(e)+(a.includes("$")?"":ot(n))+a.replace(/\$/g,"-"):a)+")"+(i||"--"==o?"*"+(i||"")+(r||"1")+")":""))),st=/\s*,\s*(?![^()]*\))/,lt=Object.prototype.toString,ht=(t,e,n,i,r)=>{let o,a,s;const l=(t,e,n)=>{let h,c;const u=t=>{for(h in t){const f=64===h.charCodeAt(0),g=f&&Array.isArray(t[h])?t[h]:[t[h]];for(c of g){const t=/[A-Z]/.test(p=h)?p:p.replace(/-[^]/g,(t=>t[1].toUpperCase())),g="object"==typeof c&&c&&c.toString===lt&&(!i.utils[t]||!e.length);if(t in i.utils&&!g){const e=i.utils[t];if(e!==a){a=e,u(e(c)),a=null;continue}}else if(t in tt){const e=tt[t];if(e!==s){s=e,u(e(c)),s=null;continue}}if(f&&(d=h.slice(1)in i.media?"@media "+i.media[h.slice(1)]:h,h=d.replace(/\(\s*([\w-]+)\s*(=|<|<=|>|>=)\s*([\w-]+)\s*(?:(<|<=|>|>=)\s*([\w-]+)\s*)?\)/g,((t,e,n,i,r,o)=>{const a=et.test(e),s=.0625*(a?-1:1),[l,h]=a?[i,e]:[e,i];return"("+("="===n[0]?"":">"===n[0]===a?"max-":"min-")+l+":"+("="!==n[0]&&1===n.length?h.replace(et,((t,e,i)=>Number(e)+s*(">"===n?1:-1)+i)):h)+(r?") and ("+(">"===r[0]?"min-":"max-")+l+":"+(1===r.length?o.replace(et,((t,e,n)=>Number(e)+s*(">"===r?-1:1)+n)):o):"")+")"}))),g){const t=f?n.concat(h):[...n],i=f?[...e]:nt(e,h.split(st));void 0!==o&&r(ct(...o)),o=void 0,l(c,i,t)}else void 0===o&&(o=[[],e,n]),h=f||36!==h.charCodeAt(0)?h:`--${ot(i.prefix)}${h.slice(1).replace(/\$/g,"-")}`,c=g?c:"number"==typeof c?c&&t in ut?String(c)+"px":String(c):at(it(t,null==c?"":c),i.prefix,i.themeMap[t]),o[0].push(`${f?`${h} `:`${K(h)}:`}${c}`)}}var d,p};u(t),void 0!==o&&r(ct(...o)),o=void 0};l(t,e,n)},ct=(t,e,n)=>`${n.map((t=>`${t}{`)).join("")}${e.length?`${e.join(",")}{`:""}${t.join(";")}${e.length?"}":""}${Array(n.length?n.length+1:0).join("}")}`,ut={animationDelay:1,animationDuration:1,backgroundSize:1,blockSize:1,border:1,borderBlock:1,borderBlockEnd:1,borderBlockEndWidth:1,borderBlockStart:1,borderBlockStartWidth:1,borderBlockWidth:1,borderBottom:1,borderBottomLeftRadius:1,borderBottomRightRadius:1,borderBottomWidth:1,borderEndEndRadius:1,borderEndStartRadius:1,borderInlineEnd:1,borderInlineEndWidth:1,borderInlineStart:1,borderInlineStartWidth:1,borderInlineWidth:1,borderLeft:1,borderLeftWidth:1,borderRadius:1,borderRight:1,borderRightWidth:1,borderSpacing:1,borderStartEndRadius:1,borderStartStartRadius:1,borderTop:1,borderTopLeftRadius:1,borderTopRightRadius:1,borderTopWidth:1,borderWidth:1,bottom:1,columnGap:1,columnRule:1,columnRuleWidth:1,columnWidth:1,containIntrinsicSize:1,flexBasis:1,fontSize:1,gap:1,gridAutoColumns:1,gridAutoRows:1,gridTemplateColumns:1,gridTemplateRows:1,height:1,inlineSize:1,inset:1,insetBlock:1,insetBlockEnd:1,insetBlockStart:1,insetInline:1,insetInlineEnd:1,insetInlineStart:1,left:1,letterSpacing:1,margin:1,marginBlock:1,marginBlockEnd:1,marginBlockStart:1,marginBottom:1,marginInline:1,marginInlineEnd:1,marginInlineStart:1,marginLeft:1,marginRight:1,marginTop:1,maxBlockSize:1,maxHeight:1,maxInlineSize:1,maxWidth:1,minBlockSize:1,minHeight:1,minInlineSize:1,minWidth:1,offsetDistance:1,offsetRotate:1,outline:1,outlineOffset:1,outlineWidth:1,overflowClipMargin:1,padding:1,paddingBlock:1,paddingBlockEnd:1,paddingBlockStart:1,paddingBottom:1,paddingInline:1,paddingInlineEnd:1,paddingInlineStart:1,paddingLeft:1,paddingRight:1,paddingTop:1,perspective:1,right:1,rowGap:1,scrollMargin:1,scrollMarginBlock:1,scrollMarginBlockEnd:1,scrollMarginBlockStart:1,scrollMarginBottom:1,scrollMarginInline:1,scrollMarginInlineEnd:1,scrollMarginInlineStart:1,scrollMarginLeft:1,scrollMarginRight:1,scrollMarginTop:1,scrollPadding:1,scrollPaddingBlock:1,scrollPaddingBlockEnd:1,scrollPaddingBlockStart:1,scrollPaddingBottom:1,scrollPaddingInline:1,scrollPaddingInlineEnd:1,scrollPaddingInlineStart:1,scrollPaddingLeft:1,scrollPaddingRight:1,scrollPaddingTop:1,shapeMargin:1,textDecoration:1,textDecorationThickness:1,textIndent:1,textUnderlineOffset:1,top:1,transitionDelay:1,transitionDuration:1,verticalAlign:1,width:1,wordSpacing:1},dt=t=>String.fromCharCode(t+(t>25?39:97)),pt=t=>(t=>{let e,n="";for(e=Math.abs(t);e>52;e=e/52|0)n=dt(e%52)+n;return dt(e%52)+n})(((t,e)=>{let n=e.length;for(;n;)t=33*t^e.charCodeAt(--n);return t})(5381,JSON.stringify(t))>>>0),ft=["themed","global","styled","onevar","resonevar","allvar","inline"],gt=t=>{if(t.href&&!t.href.startsWith(location.origin))return!1;try{return!!t.cssRules}catch(t){return!1}},mt=t=>{let e;const n=()=>{const{cssRules:t}=e.sheet;return[].map.call(t,((n,i)=>{const{cssText:r}=n;let o="";if(r.startsWith("--sxs"))return"";if(t[i-1]&&(o=t[i-1].cssText).startsWith("--sxs")){if(!n.cssRules.length)return"";for(const t in e.rules)if(e.rules[t].group===n)return`--sxs{--sxs:${[...e.rules[t].cache].join(" ")}}${r}`;return n.cssRules.length?`${o}${r}`:""}return r})).join("")},i=()=>{if(e){const{rules:t,sheet:n}=e;if(!n.deleteRule){for(;3===Object(Object(n.cssRules)[0]).type;)n.cssRules.splice(0,1);n.cssRules=[]}for(const e in t)delete t[e]}const r=Object(t).styleSheets||[];for(const t of r)if(gt(t)){for(let r=0,o=t.cssRules;o[r];++r){const a=Object(o[r]);if(1!==a.type)continue;const s=Object(o[r+1]);if(4!==s.type)continue;++r;const{cssText:l}=a;if(!l.startsWith("--sxs"))continue;const h=l.slice(14,-3).trim().split(/\s+/),c=ft[h[0]];c&&(e||(e={sheet:t,reset:i,rules:{},toString:n}),e.rules[c]={group:s,index:r,cache:new Set(h)})}if(e)break}if(!e){const r=(t,e)=>({type:e,cssRules:[],insertRule(t,e){this.cssRules.splice(e,0,r(t,{import:3,undefined:1}[(t.toLowerCase().match(/^@([a-z]+)/)||[])[1]]||4))},get cssText(){return"@media{}"===t?`@media{${[].map.call(this.cssRules,(t=>t.cssText)).join("")}}`:t}});e={sheet:t?(t.head||t).appendChild(document.createElement("style")).sheet:r("","text/css"),rules:{},reset:i,toString:n}}const{sheet:o,rules:a}=e;for(let t=ft.length-1;t>=0;--t){const e=ft[t];if(!a[e]){const n=ft[t+1],i=a[n]?a[n].index:o.cssRules.length;o.insertRule("@media{}",i),o.insertRule(`--sxs{--sxs:${t}}`,i),a[e]={group:o.cssRules[i+1],index:i,cache:new Set([t])}}vt(a[e])}};return i(),e},vt=t=>{const e=t.group;let n=e.cssRules.length;t.apply=t=>{try{e.insertRule(t,n),++n}catch(t){}}},yt=Symbol(),_t=q(),xt=(t,e)=>_t(t,(()=>(...n)=>{let i={type:null,composers:new Set};for(const e of n)if(null!=e)if(e[X]){null==i.type&&(i.type=e[X].type);for(const t of e[X].composers)i.composers.add(t)}else e.constructor!==Object||e.$$typeof?null==i.type&&(i.type=e):i.composers.add(bt(e,t));return null==i.type&&(i.type="span"),i.composers.size||i.composers.add(["PJLV",{},[],[],{},[]]),wt(t,i,e)})),bt=({variants:t,compoundVariants:e,defaultVariants:n,...i},r)=>{const o=`${ot(r.prefix)}c-${pt(i)}`,a=[],s=[],l=Object.create(null),h=[];for(const d in n)l[d]=String(n[d]);if("object"==typeof t&&t)for(const d in t){c=l,u=d,$.call(c,u)||(l[d]="undefined");const e=t[d];for(const t in e){const n={[d]:String(t)};"undefined"===String(t)&&h.push(d);const i=e[t],r=[n,i,!Z(i)];a.push(r)}}var c,u;if("object"==typeof e&&e)for(const d of e){let{css:t,...e}=d;t="object"==typeof t&&t||{};for(const i in e)e[i]=String(e[i]);const n=[e,t,!Z(t)];s.push(n)}return[o,i,a,s,l,h]},wt=(t,e,n)=>{const[i,r,o,a]=St(e.composers),s="function"==typeof e.type||e.type.$$typeof?(t=>{function e(){for(let n=0;n<e[yt].length;n++){const[i,r]=e[yt][n];t.rules[i].apply(r)}return e[yt]=[],null}return e[yt]=[],e.rules={},ft.forEach((t=>e.rules[t]={apply:n=>e[yt].push([t,n])})),e})(n):null,l=(s||n).rules,h=`.${i}${r.length>1?`:where(.${r.slice(1).join(".")})`:""}`,c=c=>{c="object"==typeof c&&c||Mt;const{css:u,...d}=c,p={};for(const t in o)if(delete d[t],t in c){let e=c[t];"object"==typeof e&&e?p[t]={"@initial":o[t],...e}:(e=String(e),p[t]="undefined"!==e||a.has(t)?e:o[t])}else p[t]=o[t];const f=new Set([...r]);for(const[i,r,o,a]of e.composers){n.rules.styled.cache.has(i)||(n.rules.styled.cache.add(i),ht(r,[`.${i}`],[],t,(t=>{l.styled.apply(t)})));const e=Tt(o,p,t.media),s=Tt(a,p,t.media,!0);for(const r of e)if(void 0!==r)for(const[e,o,a]of r){const r=`${i}-${pt(o)}-${e}`;f.add(r);const s=(a?n.rules.resonevar:n.rules.onevar).cache,h=a?l.resonevar:l.onevar;s.has(r)||(s.add(r),ht(o,[`.${r}`],[],t,(t=>{h.apply(t)})))}for(const r of s)if(void 0!==r)for(const[e,o]of r){const r=`${i}-${pt(o)}-${e}`;f.add(r),n.rules.allvar.cache.has(r)||(n.rules.allvar.cache.add(r),ht(o,[`.${r}`],[],t,(t=>{l.allvar.apply(t)})))}}if("object"==typeof u&&u){const e=`${i}-i${pt(u)}-css`;f.add(e),n.rules.inline.cache.has(e)||(n.rules.inline.cache.add(e),ht(u,[`.${e}`],[],t,(t=>{l.inline.apply(t)})))}for(const t of String(c.className||"").trim().split(/\s+/))t&&f.add(t);const g=d.className=[...f].join(" ");return{type:e.type,className:g,selector:h,props:d,toString:()=>g,deferredInjector:s}};return Y(c,{className:i,selector:h,[X]:e,toString:()=>(n.rules.styled.cache.has(i)||c(),i)})},St=t=>{let e="";const n=[],i={},r=[];for(const[o,,,,a,s]of t){""===e&&(e=o),n.push(o),r.push(...s);for(const t in a){const e=a[t];(void 0===i[t]||"undefined"!==e||s.includes(e))&&(i[t]=e)}}return[e,n,i,new Set(r)]},Tt=(t,e,n,i)=>{const r=[];t:for(let[o,a,s]of t){if(s)continue;let t,l=0,h=!1;for(t in o){const i=o[t];let r=e[t];if(r!==i){if("object"!=typeof r||!r)continue t;{let t,e,o=0;for(const a in r){if(i===String(r[a])){if("@initial"!==a){const t=a.slice(1);(e=e||[]).push(t in n?n[t]:a.replace(/^@media ?/,"")),h=!0}l+=o,t=!0}++o}if(e&&e.length&&(a={["@media "+e.join(", ")]:a}),!t)continue t}}}(r[l]=r[l]||[]).push([i?"cv":`${t}-${o[t]}`,a,h])}return r},Mt={},At=q(),Ct=(t,e)=>At(t,(()=>(...n)=>{const i=()=>{for(let i of n){i="object"==typeof i&&i||{};let n=pt(i);if(!e.rules.global.cache.has(n)){if(e.rules.global.cache.add(n),"@import"in i){let t=[].indexOf.call(e.sheet.cssRules,e.rules.themed.group)-1;for(let n of[].concat(i["@import"]))n=n.includes('"')||n.includes("'")?n:`"${n}"`,e.sheet.insertRule(`@import ${n};`,t++);delete i["@import"]}ht(i,[],[],t,(t=>{e.rules.global.apply(t)}))}}return""};return Y(i,{toString:i})})),It=q(),Et=(t,e)=>It(t,(()=>n=>{const i=`${ot(t.prefix)}k-${pt(n)}`,r=()=>{if(!e.rules.global.cache.has(i)){e.rules.global.cache.add(i);const r=[];ht(n,[],[],t,(t=>r.push(t)));const o=`@keyframes ${i}{${r.join("")}}`;e.rules.global.apply(o)}return i};return Y(r,{get name(){return r()},toString:r})})),kt=class{constructor(t,e,n,i){this.token=null==t?"":String(t),this.value=null==e?"":String(e),this.scale=null==n?"":String(n),this.prefix=null==i?"":String(i)}get computedValue(){return"var("+this.variable+")"}get variable(){return"--"+ot(this.prefix)+ot(this.scale)+this.token}toString(){return this.computedValue}},Lt=q(),Dt=(t,e)=>Lt(t,(()=>(n,i)=>{i="object"==typeof n&&n||Object(i);const r=`.${n=(n="string"==typeof n?n:"")||`${ot(t.prefix)}t-${pt(i)}`}`,o={},a=[];for(const e in i){o[e]={};for(const n in i[e]){const r=`--${ot(t.prefix)}${e}-${n}`,s=at(String(i[e][n]),t.prefix,e);o[e][n]=new kt(n,s,e,t.prefix),a.push(`${r}:${s}`)}}const s=()=>{if(a.length&&!e.rules.themed.cache.has(n)){e.rules.themed.cache.add(n);const r=`${i===t.theme?":root,":""}.${n}{${a.join(";")}}`;e.rules.themed.apply(r)}return n};return{...o,get className(){return s()},selector:r,toString:s}})),Pt=q(),Rt=q(),Ot=t=>{const e=(t=>{let e=!1;const n=Pt(t,(t=>{e=!0;const n="prefix"in(t="object"==typeof t&&t||{})?String(t.prefix):"",i="object"==typeof t.media&&t.media||{},r="object"==typeof t.root?t.root||null:globalThis.document||null,o="object"==typeof t.theme&&t.theme||{},a={prefix:n,media:i,theme:o,themeMap:"object"==typeof t.themeMap&&t.themeMap||{...W},utils:"object"==typeof t.utils&&t.utils||{}},s=mt(r),l={css:xt(a,s),globalCss:Ct(a,s),keyframes:Et(a,s),createTheme:Dt(a,s),reset(){s.reset(),l.theme.toString()},theme:{},sheet:s,config:a,prefix:n,getCssText:s.toString,toString:s.toString};return String(l.theme=l.createTheme(o)),l}));return e||n.reset(),n})(t);return e.styled=(({config:t,sheet:e})=>Rt(t,(()=>{const n=xt(t,e);return(...t)=>{const e=n(...t),i=e[X].type,o=r.forwardRef(((t,n)=>{const o=t&&t.as||i,{props:a,deferredInjector:s}=e(t);return delete a.as,a.ref=n,s?r.createElement(r.Fragment,null,r.createElement(o,a),r.createElement(s,null)):r.createElement(o,a)}));return o.className=e.className,o.displayName=`Styled.${i.displayName||i.name||i}`,o.selector=e.selector,o.toString=()=>e.selector,o[X]=e[X],o}})))(e),e};const Nt={toVector:(t,e)=>(void 0===t&&(t=e),Array.isArray(t)?t:[t,t]),add:(t,e)=>[t[0]+e[0],t[1]+e[1]],sub:(t,e)=>[t[0]-e[0],t[1]-e[1]],addTo(t,e){t[0]+=e[0],t[1]+=e[1]},subTo(t,e){t[0]-=e[0],t[1]-=e[1]}};function Ft(t,e,n){return 0===e||Math.abs(e)===1/0?Math.pow(t,5*n):t*e*n/(e+n*t)}function Bt(t,e,n,i=.15){return 0===i?function(t,e,n){return Math.max(e,Math.min(t,n))}(t,e,n):t<e?-Ft(e-t,n-e,i)+e:t>n?+Ft(t-n,n-e,i)+n:t}function zt(t){var e=function(t,e){if("object"!=typeof t||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var i=n.call(t,e||"default");if("object"!=typeof i)return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==typeof e?e:String(e)}function Gt(t,e,n){return(e=zt(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function Vt(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);e&&(i=i.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,i)}return n}function jt(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?Vt(Object(n),!0).forEach((function(e){Gt(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):Vt(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}const Ht={pointer:{start:"down",change:"move",end:"up"},mouse:{start:"down",change:"move",end:"up"},touch:{start:"start",change:"move",end:"end"},gesture:{start:"start",change:"change",end:"end"}};function Wt(t){return t?t[0].toUpperCase()+t.slice(1):""}const Ut=["enter","leave"];function qt(t,e="",n=!1){const i=Ht[t],r=i&&i[e]||e;return"on"+Wt(t)+Wt(r)+(function(t=!1,e){return t&&!Ut.includes(e)}(n,r)?"Capture":"")}const Xt=["gotpointercapture","lostpointercapture"];function Yt(t){let e=t.substring(2).toLowerCase();const n=!!~e.indexOf("passive");n&&(e=e.replace("passive",""));const i=Xt.includes(e)?"capturecapture":"capture",r=!!~e.indexOf(i);return r&&(e=e.replace("capture","")),{device:e,capture:r,passive:n}}function Zt(t){return"touches"in t}function $t(t){return Zt(t)?"touch":"pointerType"in t?t.pointerType:"mouse"}function Kt(t){return Zt(t)?function(t){return"touchend"===t.type||"touchcancel"===t.type?t.changedTouches:t.targetTouches}(t)[0]:t}function Jt(t){return function(t){return Array.from(t.touches).filter((e=>{var n,i;return e.target===t.currentTarget||(null===(n=t.currentTarget)||void 0===n||null===(i=n.contains)||void 0===i?void 0:i.call(n,e.target))}))}(t).map((t=>t.identifier))}function Qt(t){const e=Kt(t);return Zt(t)?e.identifier:e.pointerId}function te(t){const e=Kt(t);return[e.clientX,e.clientY]}function ee(t,...e){return"function"==typeof t?t(...e):t}function ne(){}function ie(...t){return 0===t.length?ne:1===t.length?t[0]:function(){let e;for(const n of t)e=n.apply(this,arguments)||e;return e}}function re(t,e){return Object.assign({},e,t||{})}class oe{constructor(t,e,n){this.ctrl=t,this.args=e,this.key=n,this.state||(this.state={},this.computeValues([0,0]),this.computeInitial(),this.init&&this.init(),this.reset())}get state(){return this.ctrl.state[this.key]}set state(t){this.ctrl.state[this.key]=t}get shared(){return this.ctrl.state.shared}get eventStore(){return this.ctrl.gestureEventStores[this.key]}get timeoutStore(){return this.ctrl.gestureTimeoutStores[this.key]}get config(){return this.ctrl.config[this.key]}get sharedConfig(){return this.ctrl.config.shared}get handler(){return this.ctrl.handlers[this.key]}reset(){const{state:t,shared:e,ingKey:n,args:i}=this;e[n]=t._active=t.active=t._blocked=t._force=!1,t._step=[!1,!1],t.intentional=!1,t._movement=[0,0],t._distance=[0,0],t._direction=[0,0],t._delta=[0,0],t._bounds=[[-1/0,1/0],[-1/0,1/0]],t.args=i,t.axis=void 0,t.memo=void 0,t.elapsedTime=t.timeDelta=0,t.direction=[0,0],t.distance=[0,0],t.overflow=[0,0],t._movementBound=[!1,!1],t.velocity=[0,0],t.movement=[0,0],t.delta=[0,0],t.timeStamp=0}start(t){const e=this.state,n=this.config;e._active||(this.reset(),this.computeInitial(),e._active=!0,e.target=t.target,e.currentTarget=t.currentTarget,e.lastOffset=n.from?ee(n.from,e):e.offset,e.offset=e.lastOffset,e.startTime=e.timeStamp=t.timeStamp)}computeValues(t){const e=this.state;e._values=t,e.values=this.config.transform(t)}computeInitial(){const t=this.state;t._initial=t._values,t.initial=t.values}compute(t){const{state:e,config:n,shared:i}=this;e.args=this.args;let r=0;if(t&&(e.event=t,n.preventDefault&&t.cancelable&&e.event.preventDefault(),e.type=t.type,i.touches=this.ctrl.pointerIds.size||this.ctrl.touchIds.size,i.locked=!!document.pointerLockElement,Object.assign(i,function(t){const e={};if("buttons"in t&&(e.buttons=t.buttons),"shiftKey"in t){const{shiftKey:n,altKey:i,metaKey:r,ctrlKey:o}=t;Object.assign(e,{shiftKey:n,altKey:i,metaKey:r,ctrlKey:o})}return e}(t)),i.down=i.pressed=i.buttons%2==1||i.touches>0,r=t.timeStamp-e.timeStamp,e.timeStamp=t.timeStamp,e.elapsedTime=e.timeStamp-e.startTime),e._active){const t=e._delta.map(Math.abs);Nt.addTo(e._distance,t)}this.axisIntent&&this.axisIntent(t);const[o,a]=e._movement,[s,l]=n.threshold,{_step:h,values:c}=e;if(n.hasCustomTransform?(!1===h[0]&&(h[0]=Math.abs(o)>=s&&c[0]),!1===h[1]&&(h[1]=Math.abs(a)>=l&&c[1])):(!1===h[0]&&(h[0]=Math.abs(o)>=s&&Math.sign(o)*s),!1===h[1]&&(h[1]=Math.abs(a)>=l&&Math.sign(a)*l)),e.intentional=!1!==h[0]||!1!==h[1],!e.intentional)return;const u=[0,0];if(n.hasCustomTransform){const[t,e]=c;u[0]=!1!==h[0]?t-h[0]:0,u[1]=!1!==h[1]?e-h[1]:0}else u[0]=!1!==h[0]?o-h[0]:0,u[1]=!1!==h[1]?a-h[1]:0;this.restrictToAxis&&!e._blocked&&this.restrictToAxis(u);const d=e.offset,p=e._active&&!e._blocked||e.active;p&&(e.first=e._active&&!e.active,e.last=!e._active&&e.active,e.active=i[this.ingKey]=e._active,t&&(e.first&&("bounds"in n&&(e._bounds=ee(n.bounds,e)),this.setup&&this.setup()),e.movement=u,this.computeOffset()));const[f,g]=e.offset,[[m,v],[y,_]]=e._bounds;e.overflow=[f<m?-1:f>v?1:0,g<y?-1:g>_?1:0],e._movementBound[0]=!!e.overflow[0]&&(!1===e._movementBound[0]?e._movement[0]:e._movementBound[0]),e._movementBound[1]=!!e.overflow[1]&&(!1===e._movementBound[1]?e._movement[1]:e._movementBound[1]);const x=e._active&&n.rubberband||[0,0];if(e.offset=function(t,[e,n],[i,r]){const[[o,a],[s,l]]=t;return[Bt(e,o,a,i),Bt(n,s,l,r)]}(e._bounds,e.offset,x),e.delta=Nt.sub(e.offset,d),this.computeMovement(),p&&(!e.last||r>32)){e.delta=Nt.sub(e.offset,d);const t=e.delta.map(Math.abs);Nt.addTo(e.distance,t),e.direction=e.delta.map(Math.sign),e._direction=e._delta.map(Math.sign),!e.first&&r>0&&(e.velocity=[t[0]/r,t[1]/r],e.timeDelta=r)}}emit(){const t=this.state,e=this.shared,n=this.config;if(t._active||this.clean(),(t._blocked||!t.intentional)&&!t._force&&!n.triggerAllEvents)return;const i=this.handler(jt(jt(jt({},e),t),{},{[this.aliasKey]:t.values}));void 0!==i&&(t.memo=i)}clean(){this.eventStore.clean(),this.timeoutStore.clean()}}class ae extends oe{constructor(...t){super(...t),Gt(this,"aliasKey","xy")}reset(){super.reset(),this.state.axis=void 0}init(){this.state.offset=[0,0],this.state.lastOffset=[0,0]}computeOffset(){this.state.offset=Nt.add(this.state.lastOffset,this.state.movement)}computeMovement(){this.state.movement=Nt.sub(this.state.offset,this.state.lastOffset)}axisIntent(t){const e=this.state,n=this.config;if(!e.axis&&t){const i="object"==typeof n.axisThreshold?n.axisThreshold[$t(t)]:n.axisThreshold;e.axis=function([t,e],n){const i=Math.abs(t),r=Math.abs(e);return i>r&&i>n?"x":r>i&&r>n?"y":void 0}(e._movement,i)}e._blocked=(n.lockDirection||!!n.axis)&&!e.axis||!!n.axis&&n.axis!==e.axis}restrictToAxis(t){if(this.config.axis||this.config.lockDirection)switch(this.state.axis){case"x":t[1]=0;break;case"y":t[0]=0}}}const se=t=>t,le={enabled:(t=!0)=>t,eventOptions:(t,e,n)=>jt(jt({},n.shared.eventOptions),t),preventDefault:(t=!1)=>t,triggerAllEvents:(t=!1)=>t,rubberband(t=0){switch(t){case!0:return[.15,.15];case!1:return[0,0];default:return Nt.toVector(t)}},from:t=>"function"==typeof t?t:null!=t?Nt.toVector(t):void 0,transform(t,e,n){const i=t||n.shared.transform;return this.hasCustomTransform=!!i,i||se},threshold:t=>Nt.toVector(t,0)};const he=jt(jt({},le),{},{axis(t,e,{axis:n}){if(this.lockDirection="lock"===n,!this.lockDirection)return n},axisThreshold:(t=0)=>t,bounds(t={}){if("function"==typeof t)return e=>he.bounds(t(e));if("current"in t)return()=>t.current;if("function"==typeof HTMLElement&&t instanceof HTMLElement)return t;const{left:e=-1/0,right:n=1/0,top:i=-1/0,bottom:r=1/0}=t;return[[e,n],[i,r]]}}),ce={ArrowRight:(t,e=1)=>[t*e,0],ArrowLeft:(t,e=1)=>[-1*t*e,0],ArrowUp:(t,e=1)=>[0,-1*t*e],ArrowDown:(t,e=1)=>[0,t*e]};const ue="undefined"!=typeof window&&window.document&&window.document.createElement;function de(){return ue&&"ontouchstart"in window}const pe={isBrowser:ue,gesture:function(){try{return"constructor"in GestureEvent}catch(t){return!1}}(),touch:de(),touchscreen:de()||ue&&window.navigator.maxTouchPoints>1,pointer:ue&&"onpointerdown"in window,pointerLock:ue&&"exitPointerLock"in window.document},fe={mouse:0,touch:0,pen:8},ge=jt(jt({},he),{},{device(t,e,{pointer:{touch:n=!1,lock:i=!1,mouse:r=!1}={}}){return this.pointerLock=i&&pe.pointerLock,pe.touch&&n?"touch":this.pointerLock?"mouse":pe.pointer&&!r?"pointer":pe.touch?"touch":"mouse"},preventScrollAxis(t,e,{preventScroll:n}){if(this.preventScrollDelay="number"==typeof n?n:n||void 0===n&&t?250:void 0,pe.touchscreen&&!1!==n)return t||(void 0!==n?"y":void 0)},pointerCapture(t,e,{pointer:{capture:n=!0,buttons:i=1,keys:r=!0}={}}){return this.pointerButtons=i,this.keys=r,!this.pointerLock&&"pointer"===this.device&&n},threshold(t,e,{filterTaps:n=!1,tapsThreshold:i=3,axis:r}){const o=Nt.toVector(t,n?i:r?1:0);return this.filterTaps=n,this.tapsThreshold=i,o},swipe({velocity:t=.5,distance:e=50,duration:n=250}={}){return{velocity:this.transform(Nt.toVector(t)),distance:this.transform(Nt.toVector(e)),duration:n}},delay(t=0){switch(t){case!0:return 180;case!1:return 0;default:return t}},axisThreshold:t=>t?jt(jt({},fe),t):fe,keyboardDisplacement:(t=10)=>t});jt(jt({},le),{},{device(t,e,{shared:n,pointer:{touch:i=!1}={}}){if(n.target&&!pe.touch&&pe.gesture)return"gesture";if(pe.touch&&i)return"touch";if(pe.touchscreen){if(pe.pointer)return"pointer";if(pe.touch)return"touch"}},bounds(t,e,{scaleBounds:n={},angleBounds:i={}}){const r=t=>{const e=re(ee(n,t),{min:-1/0,max:1/0});return[e.min,e.max]},o=t=>{const e=re(ee(i,t),{min:-1/0,max:1/0});return[e.min,e.max]};return"function"!=typeof n&&"function"!=typeof i?[r(),o()]:t=>[r(t),o(t)]},threshold(t,e,n){this.lockDirection="lock"===n.axis;return Nt.toVector(t,this.lockDirection?[.1,3]:0)},modifierKey:t=>void 0===t?"ctrlKey":t,pinchOnWheel:(t=!0)=>t});jt(jt({},he),{},{mouseOnly:(t=!0)=>t});jt(jt({},he),{},{mouseOnly:(t=!0)=>t});const me=new Map,ve=new Map;const ye={key:"drag",engine:class extends ae{constructor(...t){super(...t),Gt(this,"ingKey","dragging")}reset(){super.reset();const t=this.state;t._pointerId=void 0,t._pointerActive=!1,t._keyboardActive=!1,t._preventScroll=!1,t._delayed=!1,t.swipe=[0,0],t.tap=!1,t.canceled=!1,t.cancel=this.cancel.bind(this)}setup(){const t=this.state;if(t._bounds instanceof HTMLElement){const e=t._bounds.getBoundingClientRect(),n=t.currentTarget.getBoundingClientRect(),i={left:e.left-n.left+t.offset[0],right:e.right-n.right+t.offset[0],top:e.top-n.top+t.offset[1],bottom:e.bottom-n.bottom+t.offset[1]};t._bounds=he.bounds(i)}}cancel(){const t=this.state;t.canceled||(t.canceled=!0,t._active=!1,setTimeout((()=>{this.compute(),this.emit()}),0))}setActive(){this.state._active=this.state._pointerActive||this.state._keyboardActive}clean(){this.pointerClean(),this.state._pointerActive=!1,this.state._keyboardActive=!1,super.clean()}pointerDown(t){const e=this.config,n=this.state;if(null!=t.buttons&&(Array.isArray(e.pointerButtons)?!e.pointerButtons.includes(t.buttons):-1!==e.pointerButtons&&e.pointerButtons!==t.buttons))return;const i=this.ctrl.setEventIds(t);e.pointerCapture&&t.target.setPointerCapture(t.pointerId),i&&i.size>1&&n._pointerActive||(this.start(t),this.setupPointer(t),n._pointerId=Qt(t),n._pointerActive=!0,this.computeValues(te(t)),this.computeInitial(),e.preventScrollAxis&&"mouse"!==$t(t)?(n._active=!1,this.setupScrollPrevention(t)):e.delay>0?(this.setupDelayTrigger(t),e.triggerAllEvents&&(this.compute(t),this.emit())):this.startPointerDrag(t))}startPointerDrag(t){const e=this.state;e._active=!0,e._preventScroll=!0,e._delayed=!1,this.compute(t),this.emit()}pointerMove(t){const e=this.state,n=this.config;if(!e._pointerActive)return;const i=Qt(t);if(void 0!==e._pointerId&&i!==e._pointerId)return;const r=te(t);return document.pointerLockElement===t.target?e._delta=[t.movementX,t.movementY]:(e._delta=Nt.sub(r,e._values),this.computeValues(r)),Nt.addTo(e._movement,e._delta),this.compute(t),e._delayed&&e.intentional?(this.timeoutStore.remove("dragDelay"),e.active=!1,void this.startPointerDrag(t)):n.preventScrollAxis&&!e._preventScroll?e.axis?e.axis===n.preventScrollAxis||"xy"===n.preventScrollAxis?(e._active=!1,void this.clean()):(this.timeoutStore.remove("startPointerDrag"),void this.startPointerDrag(t)):void 0:void this.emit()}pointerUp(t){this.ctrl.setEventIds(t);try{this.config.pointerCapture&&t.target.hasPointerCapture(t.pointerId)&&t.target.releasePointerCapture(t.pointerId)}catch(a){0}const e=this.state,n=this.config;if(!e._active||!e._pointerActive)return;const i=Qt(t);if(void 0!==e._pointerId&&i!==e._pointerId)return;this.state._pointerActive=!1,this.setActive(),this.compute(t);const[r,o]=e._distance;if(e.tap=r<=n.tapsThreshold&&o<=n.tapsThreshold,e.tap&&n.filterTaps)e._force=!0;else{const[t,i]=e._delta,[r,o]=e._movement,[a,s]=n.swipe.velocity,[l,h]=n.swipe.distance,c=n.swipe.duration;if(e.elapsedTime<c){const n=Math.abs(t/e.timeDelta),c=Math.abs(i/e.timeDelta);n>a&&Math.abs(r)>l&&(e.swipe[0]=Math.sign(t)),c>s&&Math.abs(o)>h&&(e.swipe[1]=Math.sign(i))}}this.emit()}pointerClick(t){!this.state.tap&&t.detail>0&&(t.preventDefault(),t.stopPropagation())}setupPointer(t){const e=this.config,n=e.device;e.pointerLock&&t.currentTarget.requestPointerLock(),e.pointerCapture||(this.eventStore.add(this.sharedConfig.window,n,"change",this.pointerMove.bind(this)),this.eventStore.add(this.sharedConfig.window,n,"end",this.pointerUp.bind(this)),this.eventStore.add(this.sharedConfig.window,n,"cancel",this.pointerUp.bind(this)))}pointerClean(){this.config.pointerLock&&document.pointerLockElement===this.state.currentTarget&&document.exitPointerLock()}preventScroll(t){this.state._preventScroll&&t.cancelable&&t.preventDefault()}setupScrollPrevention(t){this.state._preventScroll=!1,function(t){"persist"in t&&"function"==typeof t.persist&&t.persist()}(t);const e=this.eventStore.add(this.sharedConfig.window,"touch","change",this.preventScroll.bind(this),{passive:!1});this.eventStore.add(this.sharedConfig.window,"touch","end",e),this.eventStore.add(this.sharedConfig.window,"touch","cancel",e),this.timeoutStore.add("startPointerDrag",this.startPointerDrag.bind(this),this.config.preventScrollDelay,t)}setupDelayTrigger(t){this.state._delayed=!0,this.timeoutStore.add("dragDelay",(()=>{this.state._step=[0,0],this.startPointerDrag(t)}),this.config.delay)}keyDown(t){const e=ce[t.key];if(e){const n=this.state,i=t.shiftKey?10:t.altKey?.1:1;this.start(t),n._delta=e(this.config.keyboardDisplacement,i),n._keyboardActive=!0,Nt.addTo(n._movement,n._delta),this.compute(t),this.emit()}}keyUp(t){t.key in ce&&(this.state._keyboardActive=!1,this.setActive(),this.compute(t),this.emit())}bind(t){const e=this.config.device;t(e,"start",this.pointerDown.bind(this)),this.config.pointerCapture&&(t(e,"change",this.pointerMove.bind(this)),t(e,"end",this.pointerUp.bind(this)),t(e,"cancel",this.pointerUp.bind(this)),t("lostPointerCapture","",this.pointerUp.bind(this))),this.config.keys&&(t("key","down",this.keyDown.bind(this)),t("key","up",this.keyUp.bind(this))),this.config.filterTaps&&t("click","",this.pointerClick.bind(this),{capture:!0,passive:!1})}},resolver:ge};function _e(t,e){if(null==t)return{};var n,i,r=function(t,e){if(null==t)return{};var n,i,r={},o=Object.keys(t);for(i=0;i<o.length;i++)n=o[i],e.indexOf(n)>=0||(r[n]=t[n]);return r}(t,e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);for(i=0;i<o.length;i++)n=o[i],e.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(t,n)&&(r[n]=t[n])}return r}const xe={target(t){if(t)return()=>"current"in t?t.current:t},enabled:(t=!0)=>t,window:(t=(pe.isBrowser?window:void 0))=>t,eventOptions:({passive:t=!0,capture:e=!1}={})=>({passive:t,capture:e}),transform:t=>t},be=["target","eventOptions","window","enabled","transform"];function we(t={},e){const n={};for(const[i,r]of Object.entries(e))switch(typeof r){case"function":n[i]=r.call(n,t[i],i,t);break;case"object":n[i]=we(t[i],r);break;case"boolean":r&&(n[i]=t[i])}return n}class Se{constructor(t,e){Gt(this,"_listeners",new Set),this._ctrl=t,this._gestureKey=e}add(t,e,n,i,r){const o=this._listeners,a=function(t,e=""){const n=Ht[t];return t+(n&&n[e]||e)}(e,n),s=jt(jt({},this._gestureKey?this._ctrl.config[this._gestureKey].eventOptions:{}),r);t.addEventListener(a,i,s);const l=()=>{t.removeEventListener(a,i,s),o.delete(l)};return o.add(l),l}clean(){this._listeners.forEach((t=>t())),this._listeners.clear()}}class Te{constructor(){Gt(this,"_timeouts",new Map)}add(t,e,n=140,...i){this.remove(t),this._timeouts.set(t,window.setTimeout(e,n,...i))}remove(t){const e=this._timeouts.get(t);e&&window.clearTimeout(e)}clean(){this._timeouts.forEach((t=>{window.clearTimeout(t)})),this._timeouts.clear()}}class Me{constructor(t){Gt(this,"gestures",new Set),Gt(this,"_targetEventStore",new Se(this)),Gt(this,"gestureEventStores",{}),Gt(this,"gestureTimeoutStores",{}),Gt(this,"handlers",{}),Gt(this,"config",{}),Gt(this,"pointerIds",new Set),Gt(this,"touchIds",new Set),Gt(this,"state",{shared:{shiftKey:!1,metaKey:!1,ctrlKey:!1,altKey:!1}}),function(t,e){e.drag&&Ae(t,"drag");e.wheel&&Ae(t,"wheel");e.scroll&&Ae(t,"scroll");e.move&&Ae(t,"move");e.pinch&&Ae(t,"pinch");e.hover&&Ae(t,"hover")}(this,t)}setEventIds(t){return Zt(t)?(this.touchIds=new Set(Jt(t)),this.touchIds):"pointerId"in t?("pointerup"===t.type||"pointercancel"===t.type?this.pointerIds.delete(t.pointerId):"pointerdown"===t.type&&this.pointerIds.add(t.pointerId),this.pointerIds):void 0}applyHandlers(t,e){this.handlers=t,this.nativeHandlers=e}applyConfig(t,e){this.config=function(t,e,n={}){const i=t,{target:r,eventOptions:o,window:a,enabled:s,transform:l}=i,h=_e(i,be);if(n.shared=we({target:r,eventOptions:o,window:a,enabled:s,transform:l},xe),e){const t=ve.get(e);n[e]=we(jt({shared:n.shared},h),t)}else for(const c in h){const t=ve.get(c);t&&(n[c]=we(jt({shared:n.shared},h[c]),t))}return n}(t,e,this.config)}clean(){this._targetEventStore.clean();for(const t of this.gestures)this.gestureEventStores[t].clean(),this.gestureTimeoutStores[t].clean()}effect(){return this.config.shared.target&&this.bind(),()=>this._targetEventStore.clean()}bind(...t){const e=this.config.shared,n={};let i;if(!e.target||(i=e.target(),i)){if(e.enabled){for(const e of this.gestures){const r=this.config[e],o=Ce(n,r.eventOptions,!!i);if(r.enabled){new(me.get(e))(this,t,e).bind(o)}}const r=Ce(n,e.eventOptions,!!i);for(const e in this.nativeHandlers)r(e,"",(n=>this.nativeHandlers[e](jt(jt({},this.state.shared),{},{event:n,args:t}))),void 0,!0)}for(const t in n)n[t]=ie(...n[t]);if(!i)return n;for(const t in n){const{device:e,capture:r,passive:o}=Yt(t);this._targetEventStore.add(i,e,"",n[t],{capture:r,passive:o})}}}}function Ae(t,e){t.gestures.add(e),t.gestureEventStores[e]=new Se(t,e),t.gestureTimeoutStores[e]=new Te}const Ce=(t,e,n)=>(i,r,o,a={},s=!1)=>{var l,h;const c=null!==(l=a.capture)&&void 0!==l?l:e.capture,u=null!==(h=a.passive)&&void 0!==h?h:e.passive;let d=s?i:qt(i,r,c);n&&u&&(d+="Passive"),t[d]=t[d]||[],t[d].push(o)};function Ie(t,e={},n,i){const o=r.useMemo((()=>new Me(t)),[]);if(o.applyHandlers(t,i),o.applyConfig(e,n),r.useEffect(o.effect.bind(o)),r.useEffect((()=>o.clean.bind(o)),[]),void 0===e.target)return o.bind.bind(o)}function Ee(t,e){var n;return n=ye,me.set(n.key,n.engine),ve.set(n.key,n.resolver),Ie({drag:t},e||{},"drag")}function ke(t,e,{checkForDefaultPrevented:n=!0}={}){return function(i){if(t?.(i),!1===n||!i.defaultPrevented)return e?.(i)}}function Le(...t){const e=t[0];if(1===t.length)return e;const n=()=>{const n=t.map((t=>({useScope:t(),scopeName:t.scopeName})));return function(t){const i=n.reduce(((e,{useScope:n,scopeName:i})=>({...e,...n(t)[`__scope${i}`]})),{});return r.useMemo((()=>({[`__scope${e.scopeName}`]:i})),[i])}};return n.scopeName=e.scopeName,n}function De(t){const e=r.useRef(t);return r.useEffect((()=>{e.current=t})),r.useMemo((()=>(...t)=>e.current?.(...t)),[])}var Pe,Re="dismissableLayer.update",Oe="dismissableLayer.pointerDownOutside",Ne="dismissableLayer.focusOutside",Fe=r.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),Be=r.forwardRef(((t,e)=>{const{disableOutsidePointerEvents:n=!1,onEscapeKeyDown:i,onPointerDownOutside:o,onFocusOutside:a,onInteractOutside:h,onDismiss:c,...u}=t,d=r.useContext(Fe),[p,g]=r.useState(null),m=p?.ownerDocument??globalThis?.document,[,v]=r.useState({}),y=s(e,(t=>g(t))),_=Array.from(d.layers),[x]=[...d.layersWithOutsidePointerEventsDisabled].slice(-1),b=_.indexOf(x),w=p?_.indexOf(p):-1,S=d.layersWithOutsidePointerEventsDisabled.size>0,T=w>=b,M=function(t,e=globalThis?.document){const n=De(t),i=r.useRef(!1),o=r.useRef((()=>{}));return r.useEffect((()=>{const t=t=>{if(t.target&&!i.current){let i=function(){Ve(Oe,n,r,{discrete:!0})};const r={originalEvent:t};"touch"===t.pointerType?(e.removeEventListener("click",o.current),o.current=i,e.addEventListener("click",o.current,{once:!0})):i()}else e.removeEventListener("click",o.current);i.current=!1},r=window.setTimeout((()=>{e.addEventListener("pointerdown",t)}),0);return()=>{window.clearTimeout(r),e.removeEventListener("pointerdown",t),e.removeEventListener("click",o.current)}}),[e,n]),{onPointerDownCapture:()=>i.current=!0}}((t=>{const e=t.target,n=[...d.branches].some((t=>t.contains(e)));T&&!n&&(o?.(t),h?.(t),t.defaultPrevented||c?.())}),m),A=function(t,e=globalThis?.document){const n=De(t),i=r.useRef(!1);return r.useEffect((()=>{const t=t=>{if(t.target&&!i.current){Ve(Ne,n,{originalEvent:t},{discrete:!1})}};return e.addEventListener("focusin",t),()=>e.removeEventListener("focusin",t)}),[e,n]),{onFocusCapture:()=>i.current=!0,onBlurCapture:()=>i.current=!1}}((t=>{const e=t.target;[...d.branches].some((t=>t.contains(e)))||(a?.(t),h?.(t),t.defaultPrevented||c?.())}),m);return function(t,e=globalThis?.document){const n=De(t);r.useEffect((()=>{const t=t=>{"Escape"===t.key&&n(t)};return e.addEventListener("keydown",t,{capture:!0}),()=>e.removeEventListener("keydown",t,{capture:!0})}),[n,e])}((t=>{w===d.layers.size-1&&(i?.(t),!t.defaultPrevented&&c&&(t.preventDefault(),c()))}),m),r.useEffect((()=>{if(p)return n&&(0===d.layersWithOutsidePointerEventsDisabled.size&&(Pe=m.body.style.pointerEvents,m.body.style.pointerEvents="none"),d.layersWithOutsidePointerEventsDisabled.add(p)),d.layers.add(p),Ge(),()=>{n&&1===d.layersWithOutsidePointerEventsDisabled.size&&(m.body.style.pointerEvents=Pe)}}),[p,m,n,d]),r.useEffect((()=>()=>{p&&(d.layers.delete(p),d.layersWithOutsidePointerEventsDisabled.delete(p),Ge())}),[p,d]),r.useEffect((()=>{const t=()=>v({});return document.addEventListener(Re,t),()=>document.removeEventListener(Re,t)}),[]),(0,l.jsx)(f.div,{...u,ref:y,style:{pointerEvents:S?T?"auto":"none":void 0,...t.style},onFocusCapture:ke(t.onFocusCapture,A.onFocusCapture),onBlurCapture:ke(t.onBlurCapture,A.onBlurCapture),onPointerDownCapture:ke(t.onPointerDownCapture,M.onPointerDownCapture)})}));Be.displayName="DismissableLayer";var ze=r.forwardRef(((t,e)=>{const n=r.useContext(Fe),i=r.useRef(null),o=s(e,i);return r.useEffect((()=>{const t=i.current;if(t)return n.branches.add(t),()=>{n.branches.delete(t)}}),[n.branches]),(0,l.jsx)(f.div,{...t,ref:o})}));function Ge(){const t=new CustomEvent(Re);document.dispatchEvent(t)}function Ve(t,e,n,{discrete:r}){const o=n.originalEvent.target,a=new CustomEvent(t,{bubbles:!1,cancelable:!0,detail:n});e&&o.addEventListener(t,e,{once:!0}),r?function(t,e){t&&i.flushSync((()=>t.dispatchEvent(e)))}(o,a):o.dispatchEvent(a)}ze.displayName="DismissableLayerBranch";var je=o["useId".toString()]||(()=>{}),He=0;const We=["top","right","bottom","left"],Ue=Math.min,qe=Math.max,Xe=Math.round,Ye=Math.floor,Ze=t=>({x:t,y:t}),$e={left:"right",right:"left",bottom:"top",top:"bottom"},Ke={start:"end",end:"start"};function Je(t,e,n){return qe(t,Ue(e,n))}function Qe(t,e){return"function"==typeof t?t(e):t}function tn(t){return t.split("-")[0]}function en(t){return t.split("-")[1]}function nn(t){return"x"===t?"y":"x"}function rn(t){return"y"===t?"height":"width"}function on(t){return["top","bottom"].includes(tn(t))?"y":"x"}function an(t){return nn(on(t))}function sn(t){return t.replace(/start|end/g,(t=>Ke[t]))}function ln(t){return t.replace(/left|right|bottom|top/g,(t=>$e[t]))}function hn(t){return"number"!=typeof t?function(t){return{top:0,right:0,bottom:0,left:0,...t}}(t):{top:t,right:t,bottom:t,left:t}}function cn(t){const{x:e,y:n,width:i,height:r}=t;return{width:i,height:r,top:n,left:e,right:e+i,bottom:n+r,x:e,y:n}}function un(t,e,n){let{reference:i,floating:r}=t;const o=on(e),a=an(e),s=rn(a),l=tn(e),h="y"===o,c=i.x+i.width/2-r.width/2,u=i.y+i.height/2-r.height/2,d=i[s]/2-r[s]/2;let p;switch(l){case"top":p={x:c,y:i.y-r.height};break;case"bottom":p={x:c,y:i.y+i.height};break;case"right":p={x:i.x+i.width,y:u};break;case"left":p={x:i.x-r.width,y:u};break;default:p={x:i.x,y:i.y}}switch(en(e)){case"start":p[a]-=d*(n&&h?-1:1);break;case"end":p[a]+=d*(n&&h?-1:1)}return p}async function dn(t,e){var n;void 0===e&&(e={});const{x:i,y:r,platform:o,rects:a,elements:s,strategy:l}=t,{boundary:h="clippingAncestors",rootBoundary:c="viewport",elementContext:u="floating",altBoundary:d=!1,padding:p=0}=Qe(e,t),f=hn(p),g=s[d?"floating"===u?"reference":"floating":u],m=cn(await o.getClippingRect({element:null==(n=await(null==o.isElement?void 0:o.isElement(g)))||n?g:g.contextElement||await(null==o.getDocumentElement?void 0:o.getDocumentElement(s.floating)),boundary:h,rootBoundary:c,strategy:l})),v="floating"===u?{x:i,y:r,width:a.floating.width,height:a.floating.height}:a.reference,y=await(null==o.getOffsetParent?void 0:o.getOffsetParent(s.floating)),_=await(null==o.isElement?void 0:o.isElement(y))&&await(null==o.getScale?void 0:o.getScale(y))||{x:1,y:1},x=cn(o.convertOffsetParentRelativeRectToViewportRelativeRect?await o.convertOffsetParentRelativeRectToViewportRelativeRect({elements:s,rect:v,offsetParent:y,strategy:l}):v);return{top:(m.top-x.top+f.top)/_.y,bottom:(x.bottom-m.bottom+f.bottom)/_.y,left:(m.left-x.left+f.left)/_.x,right:(x.right-m.right+f.right)/_.x}}function pn(t,e){return{top:t.top-e.height,right:t.right-e.width,bottom:t.bottom-e.height,left:t.left-e.width}}function fn(t){return We.some((e=>t[e]>=0))}function gn(){return"undefined"!=typeof window}function mn(t){return _n(t)?(t.nodeName||"").toLowerCase():"#document"}function vn(t){var e;return(null==t||null==(e=t.ownerDocument)?void 0:e.defaultView)||window}function yn(t){var e;return null==(e=(_n(t)?t.ownerDocument:t.document)||window.document)?void 0:e.documentElement}function _n(t){return!!gn()&&(t instanceof Node||t instanceof vn(t).Node)}function xn(t){return!!gn()&&(t instanceof Element||t instanceof vn(t).Element)}function bn(t){return!!gn()&&(t instanceof HTMLElement||t instanceof vn(t).HTMLElement)}function wn(t){return!(!gn()||"undefined"==typeof ShadowRoot)&&(t instanceof ShadowRoot||t instanceof vn(t).ShadowRoot)}function Sn(t){const{overflow:e,overflowX:n,overflowY:i,display:r}=En(t);return/auto|scroll|overlay|hidden|clip/.test(e+i+n)&&!["inline","contents"].includes(r)}function Tn(t){return["table","td","th"].includes(mn(t))}function Mn(t){return[":popover-open",":modal"].some((e=>{try{return t.matches(e)}catch(n){return!1}}))}function An(t){const e=Cn(),n=xn(t)?En(t):t;return"none"!==n.transform||"none"!==n.perspective||!!n.containerType&&"normal"!==n.containerType||!e&&!!n.backdropFilter&&"none"!==n.backdropFilter||!e&&!!n.filter&&"none"!==n.filter||["transform","perspective","filter"].some((t=>(n.willChange||"").includes(t)))||["paint","layout","strict","content"].some((t=>(n.contain||"").includes(t)))}function Cn(){return!("undefined"==typeof CSS||!CSS.supports)&&CSS.supports("-webkit-backdrop-filter","none")}function In(t){return["html","body","#document"].includes(mn(t))}function En(t){return vn(t).getComputedStyle(t)}function kn(t){return xn(t)?{scrollLeft:t.scrollLeft,scrollTop:t.scrollTop}:{scrollLeft:t.scrollX,scrollTop:t.scrollY}}function Ln(t){if("html"===mn(t))return t;const e=t.assignedSlot||t.parentNode||wn(t)&&t.host||yn(t);return wn(e)?e.host:e}function Dn(t){const e=Ln(t);return In(e)?t.ownerDocument?t.ownerDocument.body:t.body:bn(e)&&Sn(e)?e:Dn(e)}function Pn(t,e,n){var i;void 0===e&&(e=[]),void 0===n&&(n=!0);const r=Dn(t),o=r===(null==(i=t.ownerDocument)?void 0:i.body),a=vn(r);if(o){const t=Rn(a);return e.concat(a,a.visualViewport||[],Sn(r)?r:[],t&&n?Pn(t):[])}return e.concat(r,Pn(r,[],n))}function Rn(t){return t.parent&&Object.getPrototypeOf(t.parent)?t.frameElement:null}function On(t){const e=En(t);let n=parseFloat(e.width)||0,i=parseFloat(e.height)||0;const r=bn(t),o=r?t.offsetWidth:n,a=r?t.offsetHeight:i,s=Xe(n)!==o||Xe(i)!==a;return s&&(n=o,i=a),{width:n,height:i,$:s}}function Nn(t){return xn(t)?t:t.contextElement}function Fn(t){const e=Nn(t);if(!bn(e))return Ze(1);const n=e.getBoundingClientRect(),{width:i,height:r,$:o}=On(e);let a=(o?Xe(n.width):n.width)/i,s=(o?Xe(n.height):n.height)/r;return a&&Number.isFinite(a)||(a=1),s&&Number.isFinite(s)||(s=1),{x:a,y:s}}const Bn=Ze(0);function zn(t){const e=vn(t);return Cn()&&e.visualViewport?{x:e.visualViewport.offsetLeft,y:e.visualViewport.offsetTop}:Bn}function Gn(t,e,n,i){void 0===e&&(e=!1),void 0===n&&(n=!1);const r=t.getBoundingClientRect(),o=Nn(t);let a=Ze(1);e&&(i?xn(i)&&(a=Fn(i)):a=Fn(t));const s=function(t,e,n){return void 0===e&&(e=!1),!(!n||e&&n!==vn(t))&&e}(o,n,i)?zn(o):Ze(0);let l=(r.left+s.x)/a.x,h=(r.top+s.y)/a.y,c=r.width/a.x,u=r.height/a.y;if(o){const t=vn(o),e=i&&xn(i)?vn(i):i;let n=t,r=Rn(n);for(;r&&i&&e!==n;){const t=Fn(r),e=r.getBoundingClientRect(),i=En(r),o=e.left+(r.clientLeft+parseFloat(i.paddingLeft))*t.x,a=e.top+(r.clientTop+parseFloat(i.paddingTop))*t.y;l*=t.x,h*=t.y,c*=t.x,u*=t.y,l+=o,h+=a,n=vn(r),r=Rn(n)}}return cn({width:c,height:u,x:l,y:h})}function Vn(t,e){const n=kn(t).scrollLeft;return e?e.left+n:Gn(yn(t)).left+n}function jn(t,e,n){void 0===n&&(n=!1);const i=t.getBoundingClientRect();return{x:i.left+e.scrollLeft-(n?0:Vn(t,i)),y:i.top+e.scrollTop}}function Hn(t,e,n){let i;if("viewport"===e)i=function(t,e){const n=vn(t),i=yn(t),r=n.visualViewport;let o=i.clientWidth,a=i.clientHeight,s=0,l=0;if(r){o=r.width,a=r.height;const t=Cn();(!t||t&&"fixed"===e)&&(s=r.offsetLeft,l=r.offsetTop)}return{width:o,height:a,x:s,y:l}}(t,n);else if("document"===e)i=function(t){const e=yn(t),n=kn(t),i=t.ownerDocument.body,r=qe(e.scrollWidth,e.clientWidth,i.scrollWidth,i.clientWidth),o=qe(e.scrollHeight,e.clientHeight,i.scrollHeight,i.clientHeight);let a=-n.scrollLeft+Vn(t);const s=-n.scrollTop;return"rtl"===En(i).direction&&(a+=qe(e.clientWidth,i.clientWidth)-r),{width:r,height:o,x:a,y:s}}(yn(t));else if(xn(e))i=function(t,e){const n=Gn(t,!0,"fixed"===e),i=n.top+t.clientTop,r=n.left+t.clientLeft,o=bn(t)?Fn(t):Ze(1);return{width:t.clientWidth*o.x,height:t.clientHeight*o.y,x:r*o.x,y:i*o.y}}(e,n);else{const n=zn(t);i={x:e.x-n.x,y:e.y-n.y,width:e.width,height:e.height}}return cn(i)}function Wn(t,e){const n=Ln(t);return!(n===e||!xn(n)||In(n))&&("fixed"===En(n).position||Wn(n,e))}function Un(t,e,n){const i=bn(e),r=yn(e),o="fixed"===n,a=Gn(t,!0,o,e);let s={scrollLeft:0,scrollTop:0};const l=Ze(0);if(i||!i&&!o)if(("body"!==mn(e)||Sn(r))&&(s=kn(e)),i){const t=Gn(e,!0,o,e);l.x=t.x+e.clientLeft,l.y=t.y+e.clientTop}else r&&(l.x=Vn(r));const h=!r||i||o?Ze(0):jn(r,s);return{x:a.left+s.scrollLeft-l.x-h.x,y:a.top+s.scrollTop-l.y-h.y,width:a.width,height:a.height}}function qn(t){return"static"===En(t).position}function Xn(t,e){if(!bn(t)||"fixed"===En(t).position)return null;if(e)return e(t);let n=t.offsetParent;return yn(t)===n&&(n=n.ownerDocument.body),n}function Yn(t,e){const n=vn(t);if(Mn(t))return n;if(!bn(t)){let e=Ln(t);for(;e&&!In(e);){if(xn(e)&&!qn(e))return e;e=Ln(e)}return n}let i=Xn(t,e);for(;i&&Tn(i)&&qn(i);)i=Xn(i,e);return i&&In(i)&&qn(i)&&!An(i)?n:i||function(t){let e=Ln(t);for(;bn(e)&&!In(e);){if(An(e))return e;if(Mn(e))return null;e=Ln(e)}return null}(t)||n}const Zn={convertOffsetParentRelativeRectToViewportRelativeRect:function(t){let{elements:e,rect:n,offsetParent:i,strategy:r}=t;const o="fixed"===r,a=yn(i),s=!!e&&Mn(e.floating);if(i===a||s&&o)return n;let l={scrollLeft:0,scrollTop:0},h=Ze(1);const c=Ze(0),u=bn(i);if((u||!u&&!o)&&(("body"!==mn(i)||Sn(a))&&(l=kn(i)),bn(i))){const t=Gn(i);h=Fn(i),c.x=t.x+i.clientLeft,c.y=t.y+i.clientTop}const d=!a||u||o?Ze(0):jn(a,l,!0);return{width:n.width*h.x,height:n.height*h.y,x:n.x*h.x-l.scrollLeft*h.x+c.x+d.x,y:n.y*h.y-l.scrollTop*h.y+c.y+d.y}},getDocumentElement:yn,getClippingRect:function(t){let{element:e,boundary:n,rootBoundary:i,strategy:r}=t;const o=[..."clippingAncestors"===n?Mn(e)?[]:function(t,e){const n=e.get(t);if(n)return n;let i=Pn(t,[],!1).filter((t=>xn(t)&&"body"!==mn(t))),r=null;const o="fixed"===En(t).position;let a=o?Ln(t):t;for(;xn(a)&&!In(a);){const e=En(a),n=An(a);n||"fixed"!==e.position||(r=null),(o?!n&&!r:!n&&"static"===e.position&&r&&["absolute","fixed"].includes(r.position)||Sn(a)&&!n&&Wn(t,a))?i=i.filter((t=>t!==a)):r=e,a=Ln(a)}return e.set(t,i),i}(e,this._c):[].concat(n),i],a=o[0],s=o.reduce(((t,n)=>{const i=Hn(e,n,r);return t.top=qe(i.top,t.top),t.right=Ue(i.right,t.right),t.bottom=Ue(i.bottom,t.bottom),t.left=qe(i.left,t.left),t}),Hn(e,a,r));return{width:s.right-s.left,height:s.bottom-s.top,x:s.left,y:s.top}},getOffsetParent:Yn,getElementRects:async function(t){const e=this.getOffsetParent||Yn,n=this.getDimensions,i=await n(t.floating);return{reference:Un(t.reference,await e(t.floating),t.strategy),floating:{x:0,y:0,width:i.width,height:i.height}}},getClientRects:function(t){return Array.from(t.getClientRects())},getDimensions:function(t){const{width:e,height:n}=On(t);return{width:e,height:n}},getScale:Fn,isElement:xn,isRTL:function(t){return"rtl"===En(t).direction}};function $n(t,e,n,i){void 0===i&&(i={});const{ancestorScroll:r=!0,ancestorResize:o=!0,elementResize:a="function"==typeof ResizeObserver,layoutShift:s="function"==typeof IntersectionObserver,animationFrame:l=!1}=i,h=Nn(t),c=r||o?[...h?Pn(h):[],...Pn(e)]:[];c.forEach((t=>{r&&t.addEventListener("scroll",n,{passive:!0}),o&&t.addEventListener("resize",n)}));const u=h&&s?function(t,e){let n,i=null;const r=yn(t);function o(){var t;clearTimeout(n),null==(t=i)||t.disconnect(),i=null}return function a(s,l){void 0===s&&(s=!1),void 0===l&&(l=1),o();const{left:h,top:c,width:u,height:d}=t.getBoundingClientRect();if(s||e(),!u||!d)return;const p={rootMargin:-Ye(c)+"px "+-Ye(r.clientWidth-(h+u))+"px "+-Ye(r.clientHeight-(c+d))+"px "+-Ye(h)+"px",threshold:qe(0,Ue(1,l))||1};let f=!0;function g(t){const e=t[0].intersectionRatio;if(e!==l){if(!f)return a();e?a(!1,e):n=setTimeout((()=>{a(!1,1e-7)}),1e3)}f=!1}try{i=new IntersectionObserver(g,{...p,root:r.ownerDocument})}catch(m){i=new IntersectionObserver(g,p)}i.observe(t)}(!0),o}(h,n):null;let d,p=-1,f=null;a&&(f=new ResizeObserver((t=>{let[i]=t;i&&i.target===h&&f&&(f.unobserve(e),cancelAnimationFrame(p),p=requestAnimationFrame((()=>{var t;null==(t=f)||t.observe(e)}))),n()})),h&&!l&&f.observe(h),f.observe(e));let g=l?Gn(t):null;return l&&function e(){const i=Gn(t);!g||i.x===g.x&&i.y===g.y&&i.width===g.width&&i.height===g.height||n();g=i,d=requestAnimationFrame(e)}(),n(),()=>{var t;c.forEach((t=>{r&&t.removeEventListener("scroll",n),o&&t.removeEventListener("resize",n)})),null==u||u(),null==(t=f)||t.disconnect(),f=null,l&&cancelAnimationFrame(d)}}const Kn=function(t){return void 0===t&&(t=0),{name:"offset",options:t,async fn(e){var n,i;const{x:r,y:o,placement:a,middlewareData:s}=e,l=await async function(t,e){const{placement:n,platform:i,elements:r}=t,o=await(null==i.isRTL?void 0:i.isRTL(r.floating)),a=tn(n),s=en(n),l="y"===on(n),h=["left","top"].includes(a)?-1:1,c=o&&l?-1:1,u=Qe(e,t);let{mainAxis:d,crossAxis:p,alignmentAxis:f}="number"==typeof u?{mainAxis:u,crossAxis:0,alignmentAxis:null}:{mainAxis:u.mainAxis||0,crossAxis:u.crossAxis||0,alignmentAxis:u.alignmentAxis};return s&&"number"==typeof f&&(p="end"===s?-1*f:f),l?{x:p*c,y:d*h}:{x:d*h,y:p*c}}(e,t);return a===(null==(n=s.offset)?void 0:n.placement)&&null!=(i=s.arrow)&&i.alignmentOffset?{}:{x:r+l.x,y:o+l.y,data:{...l,placement:a}}}}},Jn=function(t){return void 0===t&&(t={}),{name:"shift",options:t,async fn(e){const{x:n,y:i,placement:r}=e,{mainAxis:o=!0,crossAxis:a=!1,limiter:s={fn:t=>{let{x:e,y:n}=t;return{x:e,y:n}}},...l}=Qe(t,e),h={x:n,y:i},c=await dn(e,l),u=on(tn(r)),d=nn(u);let p=h[d],f=h[u];if(o){const t="y"===d?"bottom":"right";p=Je(p+c["y"===d?"top":"left"],p,p-c[t])}if(a){const t="y"===u?"bottom":"right";f=Je(f+c["y"===u?"top":"left"],f,f-c[t])}const g=s.fn({...e,[d]:p,[u]:f});return{...g,data:{x:g.x-n,y:g.y-i,enabled:{[d]:o,[u]:a}}}}}},Qn=function(t){return void 0===t&&(t={}),{name:"flip",options:t,async fn(e){var n,i;const{placement:r,middlewareData:o,rects:a,initialPlacement:s,platform:l,elements:h}=e,{mainAxis:c=!0,crossAxis:u=!0,fallbackPlacements:d,fallbackStrategy:p="bestFit",fallbackAxisSideDirection:f="none",flipAlignment:g=!0,...m}=Qe(t,e);if(null!=(n=o.arrow)&&n.alignmentOffset)return{};const v=tn(r),y=on(s),_=tn(s)===s,x=await(null==l.isRTL?void 0:l.isRTL(h.floating)),b=d||(_||!g?[ln(s)]:function(t){const e=ln(t);return[sn(t),e,sn(e)]}(s)),w="none"!==f;!d&&w&&b.push(...function(t,e,n,i){const r=en(t);let o=function(t,e,n){const i=["left","right"],r=["right","left"],o=["top","bottom"],a=["bottom","top"];switch(t){case"top":case"bottom":return n?e?r:i:e?i:r;case"left":case"right":return e?o:a;default:return[]}}(tn(t),"start"===n,i);return r&&(o=o.map((t=>t+"-"+r)),e&&(o=o.concat(o.map(sn)))),o}(s,g,f,x));const S=[s,...b],T=await dn(e,m),M=[];let A=(null==(i=o.flip)?void 0:i.overflows)||[];if(c&&M.push(T[v]),u){const t=function(t,e,n){void 0===n&&(n=!1);const i=en(t),r=an(t),o=rn(r);let a="x"===r?i===(n?"end":"start")?"right":"left":"start"===i?"bottom":"top";return e.reference[o]>e.floating[o]&&(a=ln(a)),[a,ln(a)]}(r,a,x);M.push(T[t[0]],T[t[1]])}if(A=[...A,{placement:r,overflows:M}],!M.every((t=>t<=0))){var C,I;const t=((null==(C=o.flip)?void 0:C.index)||0)+1,e=S[t];if(e)return{data:{index:t,overflows:A},reset:{placement:e}};let n=null==(I=A.filter((t=>t.overflows[0]<=0)).sort(((t,e)=>t.overflows[1]-e.overflows[1]))[0])?void 0:I.placement;if(!n)switch(p){case"bestFit":{var E;const t=null==(E=A.filter((t=>{if(w){const e=on(t.placement);return e===y||"y"===e}return!0})).map((t=>[t.placement,t.overflows.filter((t=>t>0)).reduce(((t,e)=>t+e),0)])).sort(((t,e)=>t[1]-e[1]))[0])?void 0:E[0];t&&(n=t);break}case"initialPlacement":n=s}if(r!==n)return{reset:{placement:n}}}return{}}}},ti=function(t){return void 0===t&&(t={}),{name:"size",options:t,async fn(e){var n,i;const{placement:r,rects:o,platform:a,elements:s}=e,{apply:l=()=>{},...h}=Qe(t,e),c=await dn(e,h),u=tn(r),d=en(r),p="y"===on(r),{width:f,height:g}=o.floating;let m,v;"top"===u||"bottom"===u?(m=u,v=d===(await(null==a.isRTL?void 0:a.isRTL(s.floating))?"start":"end")?"left":"right"):(v=u,m="end"===d?"top":"bottom");const y=g-c.top-c.bottom,_=f-c.left-c.right,x=Ue(g-c[m],y),b=Ue(f-c[v],_),w=!e.middlewareData.shift;let S=x,T=b;if(null!=(n=e.middlewareData.shift)&&n.enabled.x&&(T=_),null!=(i=e.middlewareData.shift)&&i.enabled.y&&(S=y),w&&!d){const t=qe(c.left,0),e=qe(c.right,0),n=qe(c.top,0),i=qe(c.bottom,0);p?T=f-2*(0!==t||0!==e?t+e:qe(c.left,c.right)):S=g-2*(0!==n||0!==i?n+i:qe(c.top,c.bottom))}await l({...e,availableWidth:T,availableHeight:S});const M=await a.getDimensions(s.floating);return f!==M.width||g!==M.height?{reset:{rects:!0}}:{}}}},ei=function(t){return void 0===t&&(t={}),{name:"hide",options:t,async fn(e){const{rects:n}=e,{strategy:i="referenceHidden",...r}=Qe(t,e);switch(i){case"referenceHidden":{const t=pn(await dn(e,{...r,elementContext:"reference"}),n.reference);return{data:{referenceHiddenOffsets:t,referenceHidden:fn(t)}}}case"escaped":{const t=pn(await dn(e,{...r,altBoundary:!0}),n.floating);return{data:{escapedOffsets:t,escaped:fn(t)}}}default:return{}}}}},ni=t=>({name:"arrow",options:t,async fn(e){const{x:n,y:i,placement:r,rects:o,platform:a,elements:s,middlewareData:l}=e,{element:h,padding:c=0}=Qe(t,e)||{};if(null==h)return{};const u=hn(c),d={x:n,y:i},p=an(r),f=rn(p),g=await a.getDimensions(h),m="y"===p,v=m?"top":"left",y=m?"bottom":"right",_=m?"clientHeight":"clientWidth",x=o.reference[f]+o.reference[p]-d[p]-o.floating[f],b=d[p]-o.reference[p],w=await(null==a.getOffsetParent?void 0:a.getOffsetParent(h));let S=w?w[_]:0;S&&await(null==a.isElement?void 0:a.isElement(w))||(S=s.floating[_]||o.floating[f]);const T=x/2-b/2,M=S/2-g[f]/2-1,A=Ue(u[v],M),C=Ue(u[y],M),I=A,E=S-g[f]-C,k=S/2-g[f]/2+T,L=Je(I,k,E),D=!l.arrow&&null!=en(r)&&k!==L&&o.reference[f]/2-(k<I?A:C)-g[f]/2<0,P=D?k<I?k-I:k-E:0;return{[p]:d[p]+P,data:{[p]:L,centerOffset:k-L-P,...D&&{alignmentOffset:P}},reset:D}}}),ii=function(t){return void 0===t&&(t={}),{options:t,fn(e){const{x:n,y:i,placement:r,rects:o,middlewareData:a}=e,{offset:s=0,mainAxis:l=!0,crossAxis:h=!0}=Qe(t,e),c={x:n,y:i},u=on(r),d=nn(u);let p=c[d],f=c[u];const g=Qe(s,e),m="number"==typeof g?{mainAxis:g,crossAxis:0}:{mainAxis:0,crossAxis:0,...g};if(l){const t="y"===d?"height":"width",e=o.reference[d]-o.floating[t]+m.mainAxis,n=o.reference[d]+o.reference[t]-m.mainAxis;p<e?p=e:p>n&&(p=n)}if(h){var v,y;const t="y"===d?"width":"height",e=["top","left"].includes(tn(r)),n=o.reference[u]-o.floating[t]+(e&&(null==(v=a.offset)?void 0:v[u])||0)+(e?0:m.crossAxis),i=o.reference[u]+o.reference[t]+(e?0:(null==(y=a.offset)?void 0:y[u])||0)-(e?m.crossAxis:0);f<n?f=n:f>i&&(f=i)}return{[d]:p,[u]:f}}}},ri=(t,e,n)=>{const i=new Map,r={platform:Zn,...n},o={...r.platform,_c:i};return(async(t,e,n)=>{const{placement:i="bottom",strategy:r="absolute",middleware:o=[],platform:a}=n,s=o.filter(Boolean),l=await(null==a.isRTL?void 0:a.isRTL(e));let h=await a.getElementRects({reference:t,floating:e,strategy:r}),{x:c,y:u}=un(h,i,l),d=i,p={},f=0;for(let g=0;g<s.length;g++){const{name:n,fn:o}=s[g],{x:m,y:v,data:y,reset:_}=await o({x:c,y:u,initialPlacement:i,placement:d,strategy:r,middlewareData:p,rects:h,platform:a,elements:{reference:t,floating:e}});c=null!=m?m:c,u=null!=v?v:u,p={...p,[n]:{...p[n],...y}},_&&f<=50&&(f++,"object"==typeof _&&(_.placement&&(d=_.placement),_.rects&&(h=!0===_.rects?await a.getElementRects({reference:t,floating:e,strategy:r}):_.rects),({x:c,y:u}=un(h,d,l))),g=-1)}return{x:c,y:u,placement:d,strategy:r,middlewareData:p}})(t,e,{...r,platform:o})};var oi="undefined"!=typeof document?r.useLayoutEffect:r.useEffect;function ai(t,e){if(t===e)return!0;if(typeof t!=typeof e)return!1;if("function"==typeof t&&t.toString()===e.toString())return!0;let n,i,r;if(t&&e&&"object"==typeof t){if(Array.isArray(t)){if(n=t.length,n!==e.length)return!1;for(i=n;0!=i--;)if(!ai(t[i],e[i]))return!1;return!0}if(r=Object.keys(t),n=r.length,n!==Object.keys(e).length)return!1;for(i=n;0!=i--;)if(!{}.hasOwnProperty.call(e,r[i]))return!1;for(i=n;0!=i--;){const n=r[i];if(("_owner"!==n||!t.$$typeof)&&!ai(t[n],e[n]))return!1}return!0}return t!=t&&e!=e}function si(t){if("undefined"==typeof window)return 1;return(t.ownerDocument.defaultView||window).devicePixelRatio||1}function li(t,e){const n=si(t);return Math.round(e*n)/n}function hi(t){const e=r.useRef(t);return oi((()=>{e.current=t})),e}const ci=t=>({name:"arrow",options:t,fn(e){const{element:n,padding:i}="function"==typeof t?t(e):t;return n&&(r=n,{}.hasOwnProperty.call(r,"current"))?null!=n.current?ni({element:n.current,padding:i}).fn(e):{}:n?ni({element:n,padding:i}).fn(e):{};var r}}),ui=(t,e)=>({...Jn(t),options:[t,e]}),di=(t,e)=>({...ii(t),options:[t,e]}),pi=(t,e)=>({...Qn(t),options:[t,e]}),fi=(t,e)=>({...ti(t),options:[t,e]}),gi=(t,e)=>({...ei(t),options:[t,e]}),mi=(t,e)=>({...ci(t),options:[t,e]});var vi=r.forwardRef(((t,e)=>{const{children:n,width:i=10,height:r=5,...o}=t;return(0,l.jsx)(f.svg,{...o,ref:e,width:i,height:r,viewBox:"0 0 30 10",preserveAspectRatio:"none",children:t.asChild?n:(0,l.jsx)("polygon",{points:"0,0 30,0 15,10"})})}));vi.displayName="Arrow";var yi=vi;function _i(...t){const e=t[0];if(1===t.length)return e;const n=()=>{const n=t.map((t=>({useScope:t(),scopeName:t.scopeName})));return function(t){const i=n.reduce(((e,{useScope:n,scopeName:i})=>({...e,...n(t)[`__scope${i}`]})),{});return r.useMemo((()=>({[`__scope${e.scopeName}`]:i})),[i])}};return n.scopeName=e.scopeName,n}var xi="Popper",[bi,wi]=function(t,e=[]){let n=[];const i=()=>{const e=n.map((t=>r.createContext(t)));return function(n){const i=n?.[t]||e;return r.useMemo((()=>({[`__scope${t}`]:{...n,[t]:i}})),[n,i])}};return i.scopeName=t,[function(e,i){const o=r.createContext(i),a=n.length;function s(e){const{scope:n,children:i,...s}=e,h=n?.[t][a]||o,c=r.useMemo((()=>s),Object.values(s));return(0,l.jsx)(h.Provider,{value:c,children:i})}return n=[...n,i],s.displayName=e+"Provider",[s,function(n,s){const l=s?.[t][a]||o,h=r.useContext(l);if(h)return h;if(void 0!==i)return i;throw new Error(`\`${n}\` must be used within \`${e}\``)}]},_i(i,...e)]}(xi),[Si,Ti]=bi(xi),Mi=t=>{const{__scopePopper:e,children:n}=t,[i,o]=r.useState(null);return(0,l.jsx)(Si,{scope:e,anchor:i,onAnchorChange:o,children:n})};Mi.displayName=xi;var Ai="PopperAnchor",Ci=r.forwardRef(((t,e)=>{const{__scopePopper:n,virtualRef:i,...o}=t,a=Ti(Ai,n),h=r.useRef(null),c=s(e,h);return r.useEffect((()=>{a.onAnchorChange(i?.current||h.current)})),i?null:(0,l.jsx)(f.div,{...o,ref:c})}));Ci.displayName=Ai;var Ii="PopperContent",[Ei,ki]=bi(Ii),Li=r.forwardRef(((t,e)=>{const{__scopePopper:n,side:o="bottom",sideOffset:a=0,align:h="center",alignOffset:c=0,arrowPadding:u=0,avoidCollisions:d=!0,collisionBoundary:p=[],collisionPadding:m=0,sticky:v="partial",hideWhenDetached:y=!1,updatePositionStrategy:_="optimized",onPlaced:x,...b}=t,w=Ti(Ii,n),[S,T]=r.useState(null),M=s(e,(t=>T(t))),[A,C]=r.useState(null),I=function(t){const[e,n]=r.useState(void 0);return g((()=>{if(t){n({width:t.offsetWidth,height:t.offsetHeight});const e=new ResizeObserver((e=>{if(!Array.isArray(e))return;if(!e.length)return;const i=e[0];let r,o;if("borderBoxSize"in i){const t=i.borderBoxSize,e=Array.isArray(t)?t[0]:t;r=e.inlineSize,o=e.blockSize}else r=t.offsetWidth,o=t.offsetHeight;n({width:r,height:o})}));return e.observe(t,{box:"border-box"}),()=>e.unobserve(t)}n(void 0)}),[t]),e}(A),E=I?.width??0,k=I?.height??0,L=o+("center"!==h?"-"+h:""),D="number"==typeof m?m:{top:0,right:0,bottom:0,left:0,...m},P=Array.isArray(p)?p:[p],R=P.length>0,O={padding:D,boundary:P.filter(Oi),altBoundary:R},{refs:N,floatingStyles:F,placement:B,isPositioned:z,middlewareData:G}=function(t){void 0===t&&(t={});const{placement:e="bottom",strategy:n="absolute",middleware:o=[],platform:a,elements:{reference:s,floating:l}={},transform:h=!0,whileElementsMounted:c,open:u}=t,[d,p]=r.useState({x:0,y:0,strategy:n,placement:e,middlewareData:{},isPositioned:!1}),[f,g]=r.useState(o);ai(f,o)||g(o);const[m,v]=r.useState(null),[y,_]=r.useState(null),x=r.useCallback((t=>{t!==T.current&&(T.current=t,v(t))}),[]),b=r.useCallback((t=>{t!==M.current&&(M.current=t,_(t))}),[]),w=s||m,S=l||y,T=r.useRef(null),M=r.useRef(null),A=r.useRef(d),C=null!=c,I=hi(c),E=hi(a),k=hi(u),L=r.useCallback((()=>{if(!T.current||!M.current)return;const t={placement:e,strategy:n,middleware:f};E.current&&(t.platform=E.current),ri(T.current,M.current,t).then((t=>{const e={...t,isPositioned:!1!==k.current};D.current&&!ai(A.current,e)&&(A.current=e,i.flushSync((()=>{p(e)})))}))}),[f,e,n,E,k]);oi((()=>{!1===u&&A.current.isPositioned&&(A.current.isPositioned=!1,p((t=>({...t,isPositioned:!1}))))}),[u]);const D=r.useRef(!1);oi((()=>(D.current=!0,()=>{D.current=!1})),[]),oi((()=>{if(w&&(T.current=w),S&&(M.current=S),w&&S){if(I.current)return I.current(w,S,L);L()}}),[w,S,L,I,C]);const P=r.useMemo((()=>({reference:T,floating:M,setReference:x,setFloating:b})),[x,b]),R=r.useMemo((()=>({reference:w,floating:S})),[w,S]),O=r.useMemo((()=>{const t={position:n,left:0,top:0};if(!R.floating)return t;const e=li(R.floating,d.x),i=li(R.floating,d.y);return h?{...t,transform:"translate("+e+"px, "+i+"px)",...si(R.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:e,top:i}}),[n,h,R.floating,d.x,d.y]);return r.useMemo((()=>({...d,update:L,refs:P,elements:R,floatingStyles:O})),[d,L,P,R,O])}({strategy:"fixed",placement:L,whileElementsMounted:(...t)=>$n(...t,{animationFrame:"always"===_}),elements:{reference:w.anchor},middleware:[(V={mainAxis:a+k,alignmentAxis:c},{...Kn(V),options:[V,j]}),d&&ui({mainAxis:!0,crossAxis:!1,limiter:"partial"===v?di():void 0,...O}),d&&pi({...O}),fi({...O,apply:({elements:t,rects:e,availableWidth:n,availableHeight:i})=>{const{width:r,height:o}=e.reference,a=t.floating.style;a.setProperty("--radix-popper-available-width",`${n}px`),a.setProperty("--radix-popper-available-height",`${i}px`),a.setProperty("--radix-popper-anchor-width",`${r}px`),a.setProperty("--radix-popper-anchor-height",`${o}px`)}}),A&&mi({element:A,padding:u}),Ni({arrowWidth:E,arrowHeight:k}),y&&gi({strategy:"referenceHidden",...O})]});var V,j;const[H,W]=Fi(B),U=De(x);g((()=>{z&&U?.()}),[z,U]);const q=G.arrow?.x,X=G.arrow?.y,Y=0!==G.arrow?.centerOffset,[Z,$]=r.useState();return g((()=>{S&&$(window.getComputedStyle(S).zIndex)}),[S]),(0,l.jsx)("div",{ref:N.setFloating,"data-radix-popper-content-wrapper":"",style:{...F,transform:z?F.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:Z,"--radix-popper-transform-origin":[G.transformOrigin?.x,G.transformOrigin?.y].join(" "),...G.hide?.referenceHidden&&{visibility:"hidden",pointerEvents:"none"}},dir:t.dir,children:(0,l.jsx)(Ei,{scope:n,placedSide:H,onArrowChange:C,arrowX:q,arrowY:X,shouldHideArrow:Y,children:(0,l.jsx)(f.div,{"data-side":H,"data-align":W,...b,ref:M,style:{...b.style,animation:z?void 0:"none"}})})})}));Li.displayName=Ii;var Di="PopperArrow",Pi={top:"bottom",right:"left",bottom:"top",left:"right"},Ri=r.forwardRef((function(t,e){const{__scopePopper:n,...i}=t,r=ki(Di,n),o=Pi[r.placedSide];return(0,l.jsx)("span",{ref:r.onArrowChange,style:{position:"absolute",left:r.arrowX,top:r.arrowY,[o]:0,transformOrigin:{top:"",right:"0 0",bottom:"center 0",left:"100% 0"}[r.placedSide],transform:{top:"translateY(100%)",right:"translateY(50%) rotate(90deg) translateX(-50%)",bottom:"rotate(180deg)",left:"translateY(50%) rotate(-90deg) translateX(50%)"}[r.placedSide],visibility:r.shouldHideArrow?"hidden":void 0},children:(0,l.jsx)(yi,{...i,ref:e,style:{...i.style,display:"block"}})})}));function Oi(t){return null!==t}Ri.displayName=Di;var Ni=t=>({name:"transformOrigin",options:t,fn(e){const{placement:n,rects:i,middlewareData:r}=e,o=0!==r.arrow?.centerOffset,a=o?0:t.arrowWidth,s=o?0:t.arrowHeight,[l,h]=Fi(n),c={start:"0%",center:"50%",end:"100%"}[h],u=(r.arrow?.x??0)+a/2,d=(r.arrow?.y??0)+s/2;let p="",f="";return"bottom"===l?(p=o?c:`${u}px`,f=-s+"px"):"top"===l?(p=o?c:`${u}px`,f=`${i.floating.height+s}px`):"right"===l?(p=-s+"px",f=o?c:`${d}px`):"left"===l&&(p=`${i.floating.width+s}px`,f=o?c:`${d}px`),{data:{x:p,y:f}}}});function Fi(t){const[e,n="center"]=t.split("-");return[e,n]}var Bi=Mi,zi=Ci,Gi=Li,Vi=Ri;var ji=t=>{const{present:e,children:n}=t,i=function(t){const[e,n]=r.useState(),i=r.useRef({}),o=r.useRef(t),a=r.useRef("none"),s=t?"mounted":"unmounted",[l,h]=function(t,e){return r.useReducer(((t,n)=>e[t][n]??t),t)}(s,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return r.useEffect((()=>{const t=Hi(i.current);a.current="mounted"===l?t:"none"}),[l]),g((()=>{const e=i.current,n=o.current;if(n!==t){const i=a.current,r=Hi(e);if(t)h("MOUNT");else if("none"===r||"none"===e?.display)h("UNMOUNT");else{h(n&&i!==r?"ANIMATION_OUT":"UNMOUNT")}o.current=t}}),[t,h]),g((()=>{if(e){let t;const n=e.ownerDocument.defaultView??window,r=r=>{const a=Hi(i.current).includes(r.animationName);if(r.target===e&&a&&(h("ANIMATION_END"),!o.current)){const i=e.style.animationFillMode;e.style.animationFillMode="forwards",t=n.setTimeout((()=>{"forwards"===e.style.animationFillMode&&(e.style.animationFillMode=i)}))}},s=t=>{t.target===e&&(a.current=Hi(i.current))};return e.addEventListener("animationstart",s),e.addEventListener("animationcancel",r),e.addEventListener("animationend",r),()=>{n.clearTimeout(t),e.removeEventListener("animationstart",s),e.removeEventListener("animationcancel",r),e.removeEventListener("animationend",r)}}h("ANIMATION_END")}),[e,h]),{isPresent:["mounted","unmountSuspended"].includes(l),ref:r.useCallback((t=>{t&&(i.current=getComputedStyle(t)),n(t)}),[])}}(e),o="function"==typeof n?n({present:i.isPresent}):r.Children.only(n),a=s(i.ref,function(t){let e=Object.getOwnPropertyDescriptor(t.props,"ref")?.get,n=e&&"isReactWarning"in e&&e.isReactWarning;if(n)return t.ref;if(e=Object.getOwnPropertyDescriptor(t,"ref")?.get,n=e&&"isReactWarning"in e&&e.isReactWarning,n)return t.props.ref;return t.props.ref||t.ref}(o));return"function"==typeof n||i.isPresent?r.cloneElement(o,{ref:a}):null};function Hi(t){return t?.animationName||"none"}function Wi({prop:t,defaultProp:e,onChange:n=()=>{}}){const[i,o]=function({defaultProp:t,onChange:e}){const n=r.useState(t),[i]=n,o=r.useRef(i),a=De(e);return r.useEffect((()=>{o.current!==i&&(a(i),o.current=i)}),[i,o,a]),n}({defaultProp:e,onChange:n}),a=void 0!==t,s=a?t:i,l=De(n);return[s,r.useCallback((e=>{if(a){const n="function"==typeof e?e(t):e;n!==t&&l(n)}else o(e)}),[a,t,o,l])]}ji.displayName="Presence";var Ui=r.forwardRef(((t,e)=>(0,l.jsx)(f.span,{...t,ref:e,style:{position:"absolute",border:0,width:1,height:1,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",wordWrap:"normal",...t.style}})));Ui.displayName="VisuallyHidden";var qi=Ui,[Xi,Yi]=function(t,e=[]){let n=[];const i=()=>{const e=n.map((t=>r.createContext(t)));return function(n){const i=n?.[t]||e;return r.useMemo((()=>({[`__scope${t}`]:{...n,[t]:i}})),[n,i])}};return i.scopeName=t,[function(e,i){const o=r.createContext(i),a=n.length;n=[...n,i];const s=e=>{const{scope:n,children:i,...s}=e,h=n?.[t]?.[a]||o,c=r.useMemo((()=>s),Object.values(s));return(0,l.jsx)(h.Provider,{value:c,children:i})};return s.displayName=e+"Provider",[s,function(n,s){const l=s?.[t]?.[a]||o,h=r.useContext(l);if(h)return h;if(void 0!==i)return i;throw new Error(`\`${n}\` must be used within \`${e}\``)}]},Le(i,...e)]}("Tooltip",[wi]),Zi=wi(),$i="TooltipProvider",Ki=700,Ji="tooltip.open",[Qi,tr]=Xi($i),er=t=>{const{__scopeTooltip:e,delayDuration:n=Ki,skipDelayDuration:i=300,disableHoverableContent:o=!1,children:a}=t,[s,h]=r.useState(!0),c=r.useRef(!1),u=r.useRef(0);return r.useEffect((()=>{const t=u.current;return()=>window.clearTimeout(t)}),[]),(0,l.jsx)(Qi,{scope:e,isOpenDelayed:s,delayDuration:n,onOpen:r.useCallback((()=>{window.clearTimeout(u.current),h(!1)}),[]),onClose:r.useCallback((()=>{window.clearTimeout(u.current),u.current=window.setTimeout((()=>h(!0)),i)}),[i]),isPointerInTransitRef:c,onPointerInTransitChange:r.useCallback((t=>{c.current=t}),[]),disableHoverableContent:o,children:a})};er.displayName=$i;var nr="Tooltip",[ir,rr]=Xi(nr),or=t=>{const{__scopeTooltip:e,children:n,open:i,defaultOpen:o=!1,onOpenChange:a,disableHoverableContent:s,delayDuration:h}=t,c=tr(nr,t.__scopeTooltip),u=Zi(e),[d,p]=r.useState(null),f=function(t){const[e,n]=r.useState(je());return g((()=>{t||n((t=>t??String(He++)))}),[t]),t||(e?`radix-${e}`:"")}(),m=r.useRef(0),v=s??c.disableHoverableContent,y=h??c.delayDuration,_=r.useRef(!1),[x=!1,b]=Wi({prop:i,defaultProp:o,onChange:t=>{t?(c.onOpen(),document.dispatchEvent(new CustomEvent(Ji))):c.onClose(),a?.(t)}}),w=r.useMemo((()=>x?_.current?"delayed-open":"instant-open":"closed"),[x]),S=r.useCallback((()=>{window.clearTimeout(m.current),_.current=!1,b(!0)}),[b]),T=r.useCallback((()=>{window.clearTimeout(m.current),b(!1)}),[b]),M=r.useCallback((()=>{window.clearTimeout(m.current),m.current=window.setTimeout((()=>{_.current=!0,b(!0)}),y)}),[y,b]);return r.useEffect((()=>()=>window.clearTimeout(m.current)),[]),(0,l.jsx)(Bi,{...u,children:(0,l.jsx)(ir,{scope:e,contentId:f,open:x,stateAttribute:w,trigger:d,onTriggerChange:p,onTriggerEnter:r.useCallback((()=>{c.isOpenDelayed?M():S()}),[c.isOpenDelayed,M,S]),onTriggerLeave:r.useCallback((()=>{v?T():window.clearTimeout(m.current)}),[T,v]),onOpen:S,onClose:T,disableHoverableContent:v,children:n})})};or.displayName=nr;var ar="TooltipTrigger",sr=r.forwardRef(((t,e)=>{const{__scopeTooltip:n,...i}=t,o=rr(ar,n),a=tr(ar,n),h=Zi(n),c=s(e,r.useRef(null),o.onTriggerChange),u=r.useRef(!1),d=r.useRef(!1),p=r.useCallback((()=>u.current=!1),[]);return r.useEffect((()=>()=>document.removeEventListener("pointerup",p)),[p]),(0,l.jsx)(zi,{asChild:!0,...h,children:(0,l.jsx)(f.button,{"aria-describedby":o.open?o.contentId:void 0,"data-state":o.stateAttribute,...i,ref:c,onPointerMove:ke(t.onPointerMove,(t=>{"touch"!==t.pointerType&&(d.current||a.isPointerInTransitRef.current||(o.onTriggerEnter(),d.current=!0))})),onPointerLeave:ke(t.onPointerLeave,(()=>{o.onTriggerLeave(),d.current=!1})),onPointerDown:ke(t.onPointerDown,(()=>{u.current=!0,document.addEventListener("pointerup",p,{once:!0})})),onFocus:ke(t.onFocus,(()=>{u.current||o.onOpen()})),onBlur:ke(t.onBlur,o.onClose),onClick:ke(t.onClick,o.onClose)})})}));sr.displayName=ar;var lr="TooltipPortal",[hr,cr]=Xi(lr,{forceMount:void 0}),ur=t=>{const{__scopeTooltip:e,forceMount:n,children:i,container:r}=t,o=rr(lr,e);return(0,l.jsx)(hr,{scope:e,forceMount:n,children:(0,l.jsx)(ji,{present:n||o.open,children:(0,l.jsx)(m,{asChild:!0,container:r,children:i})})})};ur.displayName=lr;var dr="TooltipContent",pr=r.forwardRef(((t,e)=>{const n=cr(dr,t.__scopeTooltip),{forceMount:i=n.forceMount,side:r="top",...o}=t,a=rr(dr,t.__scopeTooltip);return(0,l.jsx)(ji,{present:i||a.open,children:a.disableHoverableContent?(0,l.jsx)(vr,{side:r,...o,ref:e}):(0,l.jsx)(fr,{side:r,...o,ref:e})})})),fr=r.forwardRef(((t,e)=>{const n=rr(dr,t.__scopeTooltip),i=tr(dr,t.__scopeTooltip),o=r.useRef(null),a=s(e,o),[h,c]=r.useState(null),{trigger:u,onClose:d}=n,p=o.current,{onPointerInTransitChange:f}=i,g=r.useCallback((()=>{c(null),f(!1)}),[f]),m=r.useCallback(((t,e)=>{const n=t.currentTarget,i={x:t.clientX,y:t.clientY},r=function(t,e,n=5){const i=[];switch(e){case"top":i.push({x:t.x-n,y:t.y+n},{x:t.x+n,y:t.y+n});break;case"bottom":i.push({x:t.x-n,y:t.y-n},{x:t.x+n,y:t.y-n});break;case"left":i.push({x:t.x+n,y:t.y-n},{x:t.x+n,y:t.y+n});break;case"right":i.push({x:t.x-n,y:t.y-n},{x:t.x-n,y:t.y+n})}return i}(i,function(t,e){const n=Math.abs(e.top-t.y),i=Math.abs(e.bottom-t.y),r=Math.abs(e.right-t.x),o=Math.abs(e.left-t.x);switch(Math.min(n,i,r,o)){case o:return"left";case r:return"right";case n:return"top";case i:return"bottom";default:throw new Error("unreachable")}}(i,n.getBoundingClientRect())),o=function(t){const e=t.slice();return e.sort(((t,e)=>t.x<e.x?-1:t.x>e.x?1:t.y<e.y?-1:t.y>e.y?1:0)),function(t){if(t.length<=1)return t.slice();const e=[];for(let i=0;i<t.length;i++){const n=t[i];for(;e.length>=2;){const t=e[e.length-1],i=e[e.length-2];if(!((t.x-i.x)*(n.y-i.y)>=(t.y-i.y)*(n.x-i.x)))break;e.pop()}e.push(n)}e.pop();const n=[];for(let i=t.length-1;i>=0;i--){const e=t[i];for(;n.length>=2;){const t=n[n.length-1],i=n[n.length-2];if(!((t.x-i.x)*(e.y-i.y)>=(t.y-i.y)*(e.x-i.x)))break;n.pop()}n.push(e)}return n.pop(),1===e.length&&1===n.length&&e[0].x===n[0].x&&e[0].y===n[0].y?e:e.concat(n)}(e)}([...r,...function(t){const{top:e,right:n,bottom:i,left:r}=t;return[{x:r,y:e},{x:n,y:e},{x:n,y:i},{x:r,y:i}]}(e.getBoundingClientRect())]);c(o),f(!0)}),[f]);return r.useEffect((()=>()=>g()),[g]),r.useEffect((()=>{if(u&&p){const t=t=>m(t,p),e=t=>m(t,u);return u.addEventListener("pointerleave",t),p.addEventListener("pointerleave",e),()=>{u.removeEventListener("pointerleave",t),p.removeEventListener("pointerleave",e)}}}),[u,p,m,g]),r.useEffect((()=>{if(h){const t=t=>{const e=t.target,n={x:t.clientX,y:t.clientY},i=u?.contains(e)||p?.contains(e),r=!function(t,e){const{x:n,y:i}=t;let r=!1;for(let o=0,a=e.length-1;o<e.length;a=o++){const t=e[o].x,s=e[o].y,l=e[a].x,h=e[a].y;s>i!=h>i&&n<(l-t)*(i-s)/(h-s)+t&&(r=!r)}return r}(n,h);i?g():r&&(g(),d())};return document.addEventListener("pointermove",t),()=>document.removeEventListener("pointermove",t)}}),[u,p,h,d,g]),(0,l.jsx)(vr,{...t,ref:a})})),[gr,mr]=Xi(nr,{isInside:!1}),vr=r.forwardRef(((t,e)=>{const{__scopeTooltip:n,children:i,"aria-label":o,onEscapeKeyDown:a,onPointerDownOutside:s,...h}=t,c=rr(dr,n),d=Zi(n),{onClose:p}=c;return r.useEffect((()=>(document.addEventListener(Ji,p),()=>document.removeEventListener(Ji,p))),[p]),r.useEffect((()=>{if(c.trigger){const t=t=>{const e=t.target;e?.contains(c.trigger)&&p()};return window.addEventListener("scroll",t,{capture:!0}),()=>window.removeEventListener("scroll",t,{capture:!0})}}),[c.trigger,p]),(0,l.jsx)(Be,{asChild:!0,disableOutsidePointerEvents:!1,onEscapeKeyDown:a,onPointerDownOutside:s,onFocusOutside:t=>t.preventDefault(),onDismiss:p,children:(0,l.jsxs)(Gi,{"data-state":c.stateAttribute,...d,...h,ref:e,style:{...h.style,"--radix-tooltip-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-tooltip-content-available-width":"var(--radix-popper-available-width)","--radix-tooltip-content-available-height":"var(--radix-popper-available-height)","--radix-tooltip-trigger-width":"var(--radix-popper-anchor-width)","--radix-tooltip-trigger-height":"var(--radix-popper-anchor-height)"},children:[(0,l.jsx)(u,{children:i}),(0,l.jsx)(gr,{scope:n,isInside:!0,children:(0,l.jsx)(qi,{id:c.contentId,role:"tooltip",children:o||i})})]})})}));pr.displayName=dr;var yr="TooltipArrow",_r=r.forwardRef(((t,e)=>{const{__scopeTooltip:n,...i}=t,r=Zi(n);return mr(yr,n).isInside?null:(0,l.jsx)(Vi,{...r,...i,ref:e})}));_r.displayName=yr;var xr=or,br=sr,wr=pr,Sr=_r;function Tr(t,e){if(null==t)return{};var n,i,r=function(t,e){if(null==t)return{};var n,i,r={},o=Object.keys(t);for(i=0;i<o.length;i++)n=o[i],e.indexOf(n)>=0||(r[n]=t[n]);return r}(t,e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);for(i=0;i<o.length;i++)n=o[i],e.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(t,n)&&(r[n]=t[n])}return r}let Mr;!function(t){t[t.UNSUPPORTED_INPUT=0]="UNSUPPORTED_INPUT",t[t.NO_COMPONENT_FOR_TYPE=1]="NO_COMPONENT_FOR_TYPE",t[t.UNKNOWN_INPUT=2]="UNKNOWN_INPUT",t[t.DUPLICATE_KEYS=3]="DUPLICATE_KEYS",t[t.ALREADY_REGISTERED_TYPE=4]="ALREADY_REGISTERED_TYPE",t[t.CLIPBOARD_ERROR=5]="CLIPBOARD_ERROR",t[t.THEME_ERROR=6]="THEME_ERROR",t[t.PATH_DOESNT_EXIST=7]="PATH_DOESNT_EXIST",t[t.INPUT_TYPE_OVERRIDE=8]="INPUT_TYPE_OVERRIDE",t[t.EMPTY_KEY=9]="EMPTY_KEY"}(Mr||(Mr={}));const Ar={[Mr.UNSUPPORTED_INPUT]:(t,e)=>[`An input with type \`${t}\` input was found at path \`${e}\` but it's not supported yet.`],[Mr.NO_COMPONENT_FOR_TYPE]:(t,e)=>[`Type \`${t}\` found at path \`${e}\` can't be displayed in panel because no component supports it yet.`],[Mr.UNKNOWN_INPUT]:(t,e)=>[`input at path \`${t}\` is not recognized.`,e],[Mr.DUPLICATE_KEYS]:(t,e,n)=>[`Key \`${t}\` of path \`${e}\` already exists at path \`${n}\`. Even nested keys need to be unique. Rename one of the keys.`],[Mr.ALREADY_REGISTERED_TYPE]:t=>[`Type ${t} has already been registered. You can't register a component with the same type.`],[Mr.CLIPBOARD_ERROR]:t=>["Error copying the value",t],[Mr.THEME_ERROR]:(t,e)=>[`Error accessing the theme \`${t}.${e}\` value.`],[Mr.PATH_DOESNT_EXIST]:t=>[`Error getting the value at path \`${t}\`. There is probably an error in your \`render\` function.`],[Mr.PATH_DOESNT_EXIST]:t=>[`Error accessing the value at path \`${t}\``],[Mr.INPUT_TYPE_OVERRIDE]:(t,e,n)=>[`Input at path \`${t}\` already exists with type: \`${e}\`. Its type cannot be overridden with type \`${n}\`.`],[Mr.EMPTY_KEY]:()=>["Keys can not be empty, if you want to hide a label use whitespace."]};function Cr(t,e,...n){const[i,...r]=Ar[e](...n);console[t]("LEVA: "+i,...r)}const Ir=Cr.bind(null,"warn"),Er=Cr.bind(null,"log"),kr=["value"],Lr=["schema"],Dr=["value"],Pr=[],Rr={};function Or(t){let{value:e}=t,n=Tr(t,kr);for(let i of Pr){const t=i(e,n);if(t)return t}}function Nr(t,e){let{schema:n}=e,i=Tr(e,Lr);t in Rr?Ir(Mr.ALREADY_REGISTERED_TYPE,t):(Pr.push(((e,i)=>n(e,i)&&t)),Rr[t]=i)}function Fr(t,e,n,i){const{normalize:r}=Rr[t];if(r)return r(e,n,i);if("object"!=typeof e||!("value"in e))return{value:e};const{value:o}=e;return{value:o,settings:Tr(e,Dr)}}function Br(t,e,n){const{format:i}=Rr[t];return i?i(e,n):e}function zr(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function Gr(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);e&&(i=i.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,i)}return n}function Vr(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?Gr(Object(n),!0).forEach((function(e){zr(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):Gr(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}const jr=(t,e,n)=>t>n?n:t<e?e:t,Hr=t=>{if(""===t||"number"==typeof t)return t;try{const e=to(t);if(!isNaN(e))return e}catch(e){}return parseFloat(t)},Wr=Math.log(10);function Ur(t){let e=Math.abs(+String(t).replace(".",""));if(0===e)return.01;for(;0!==e&&e%10==0;)e/=10;const n=Math.floor(Math.log(e)/Wr)+1,i=Math.floor(Math.log10(Math.abs(t))),r=Math.pow(10,i-n);return Math.max(r,.001)}const qr=(t,e,n)=>{if(n===e)return 0;return(jr(t,e,n)-e)/(n-e)},Xr=(t,e,n)=>t*(n-e)+e,Yr=/\(([0-9+\-*/^ .]+)\)/,Zr=/(\d+(?:\.\d+)?) ?\^ ?(\d+(?:\.\d+)?)/,$r=/(\d+(?:\.\d+)?) ?\* ?(\d+(?:\.\d+)?)/,Kr=/(\d+(?:\.\d+)?) ?\/ ?(\d+(?:\.\d+)?)/,Jr=/(\d+(?:\.\d+)?) ?\+ ?(\d+(?:\.\d+)?)/,Qr=/(\d+(?:\.\d+)?) ?- ?(\d+(?:\.\d+)?)/;function to(t){if(isNaN(Number(t))){if(Yr.test(t)){const e=t.replace(Yr,((t,e)=>String(to(e))));return to(e)}if(Zr.test(t)){return to(t.replace(Zr,((t,e,n)=>String(Math.pow(Number(e),Number(n))))))}if($r.test(t)){const e=t.replace($r,((t,e,n)=>String(Number(e)*Number(n))));return to(e)}if(Kr.test(t)){const e=t.replace(Kr,((t,e,n)=>{if(0!=n)return String(Number(e)/Number(n));throw new Error("Division by zero")}));return to(e)}if(Jr.test(t)){const e=t.replace(Jr,((t,e,n)=>String(Number(e)+Number(n))));return to(e)}if(Qr.test(t)){const e=t.replace(Qr,((t,e,n)=>String(Number(e)-Number(n))));return to(e)}return Number(t)}return Number(t)}function eo(t){return"[object Object]"===Object.prototype.toString.call(t)}let no,io;!function(t){t.BUTTON="BUTTON",t.BUTTON_GROUP="BUTTON_GROUP",t.MONITOR="MONITOR",t.FOLDER="FOLDER"}(no||(no={})),function(t){t.SELECT="SELECT",t.IMAGE="IMAGE",t.NUMBER="NUMBER",t.COLOR="COLOR",t.STRING="STRING",t.BOOLEAN="BOOLEAN",t.INTERVAL="INTERVAL",t.VECTOR3D="VECTOR3D",t.VECTOR2D="VECTOR2D"}(io||(io={}));const ro=["type","__customInput"],oo=["render","label","optional","order","disabled","hint","onChange","onEditStart","onEditEnd","transient"],ao=["type"];function so(t,e,n={},i){var r,o;if("object"!=typeof t||Array.isArray(t))return{type:i,input:t,options:Vr({key:e,label:e,optional:!1,disabled:!1,order:0},n)};if("__customInput"in t){const{type:n,__customInput:i}=t;return so(i,e,Tr(t,ro),n)}const{render:a,label:s,optional:l,order:h=0,disabled:c,hint:u,onChange:d,onEditStart:p,onEditEnd:f,transient:g}=t,m=Tr(t,oo),v=Vr({render:a,key:e,label:null!=s?s:e,hint:u,transient:null!=g?g:!!d,onEditStart:p,onEditEnd:f,disabled:c,optional:l,order:h},n);let y,{type:_}=m,x=Tr(m,ao);return _=null!=i?i:_,_ in no?{type:_,input:x,options:v}:(i&&eo(x)&&"value"in x?y=x.value:y=eo(b=x)&&0===Object.keys(b).length?void 0:x,{type:_,input:y,options:Vr(Vr({},v),{},{onChange:d,optional:null!==(r=v.optional)&&void 0!==r&&r,disabled:null!==(o=v.disabled)&&void 0!==o&&o})});var b}function lo(t,e,n,i,r){const{value:o,type:a,settings:s}=t;t.value=co({type:a,value:o,settings:s},e,n,i),t.fromPanel=r}const ho=function(t,e,n){this.type="LEVA_ERROR",this.message="LEVA: "+t,this.previousValue=e,this.error=n};function co({type:t,value:e,settings:n},i,r,o){const a="SELECT"!==t&&"function"==typeof i?i(e):i;let s;try{s=function(t,e,n,i,r,o){const{sanitize:a}=Rr[t];return a?a(e,n,i,r,o):e}(t,a,n,e,r,o)}catch(l){throw new ho(`The value \`${i}\` did not result in a correct value.`,e,l)}return _(s,e)?e:s}const uo=(t,e,n=!1)=>{let i=0;return function(){const r=arguments,o=n&&!i,a=()=>t.apply(this,r);window.clearTimeout(i),i=window.setTimeout(a,e),o&&a()}},po=t=>t.shiftKey?5:t.altKey?.2:1;const fo=["value"],go=["min","max"],mo=(t,{min:e=-1/0,max:n=1/0,suffix:i})=>{const r=parseFloat(t);if(""===t||isNaN(r))throw Error("Invalid number");const o=jr(r,e,n);return i?o+i:o},vo=t=>{let{value:e}=t,n=Tr(t,fo);const{min:i=-1/0,max:r=1/0}=n,o=Tr(n,go);let a=parseFloat(e);const s="string"==typeof e?e.substring((""+a).length):void 0;a=jr(a,i,r);let l=n.step;l||(Number.isFinite(i)?l=Number.isFinite(r)?+(Math.abs(r-i)/100).toPrecision(1):+(Math.abs(a-i)/100).toPrecision(1):Number.isFinite(r)&&(l=+(Math.abs(r-a)/100).toPrecision(1)));const h=l?10*Ur(l):Ur(a);l=l||h/10;return{value:s?a+s:a,settings:Vr({initialValue:a,step:l,pad:Math.round(jr(Math.log10(1/h),0,2)),min:i,max:r,suffix:s},o)}},yo=(t,{step:e,initialValue:n})=>n+Math.round((t-n)/e)*e;var _o=Object.freeze({__proto__:null,schema:t=>{if("number"==typeof t)return!0;if("string"==typeof t){const e=parseFloat(t);if(isNaN(e))return!1;return t.substring((""+e).length).trim().length<4}return!1},sanitize:mo,format:(t,{pad:e=0,suffix:n})=>{const i=parseFloat(t).toFixed(e);return n?i+n:i},normalize:vo,sanitizeStep:yo});function xo(){return xo=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(t[i]=n[i])}return t},xo.apply(this,arguments)}const bo=(0,r.createContext)({});function wo(){return(0,r.useContext)(bo)}const So=(0,r.createContext)(null),To=(0,r.createContext)(null),Mo=(0,r.createContext)(null);function Ao(){return(0,r.useContext)(To)}function Co({children:t,store:e}){return r.createElement(To.Provider,{value:e},t)}const Io=()=>({colors:{elevation1:"#292d39",elevation2:"#181c20",elevation3:"#373c4b",accent1:"#0066dc",accent2:"#007bff",accent3:"#3c93ff",highlight1:"#535760",highlight2:"#8c92a4",highlight3:"#fefefe",vivid1:"#ffcc00",folderWidgetColor:"$highlight2",folderTextColor:"$highlight3",toolTipBackground:"$highlight3",toolTipText:"$elevation2"},radii:{xs:"2px",sm:"3px",lg:"10px"},space:{xs:"3px",sm:"6px",md:"10px",rowGap:"7px",colGap:"7px"},fonts:{mono:"ui-monospace, SFMono-Regular, Menlo, 'Roboto Mono', monospace",sans:"system-ui, sans-serif"},fontSizes:{root:"11px",toolTip:"$root"},sizes:{rootWidth:"280px",controlWidth:"160px",numberInputMinWidth:"38px",scrubberWidth:"8px",scrubberHeight:"16px",rowHeight:"24px",folderTitleHeight:"20px",checkboxSize:"16px",joystickWidth:"100px",joystickHeight:"100px",colorPickerWidth:"$controlWidth",colorPickerHeight:"100px",imagePreviewWidth:"$controlWidth",imagePreviewHeight:"100px",monitorHeight:"60px",titleBarHeight:"39px"},shadows:{level1:"0 0 9px 0 #00000088",level2:"0 4px 14px #00000033"},borderWidths:{root:"0px",input:"1px",focus:"1px",hover:"1px",active:"1px",folder:"1px"},fontWeights:{label:"normal",folder:"normal",button:"normal"}});function Eo(t,e){const[n,i]=t.split(" "),r={};return"none"!==n&&(r.boxShadow=`${e.inset?"inset ":""}0 0 0 $borderWidths${[e.key]} $colors${"default"!==n&&n||e.borderColor}`),i&&(r.backgroundColor=i),r}const ko={$inputStyle:()=>t=>Eo(t,{key:"$input",borderColor:"$highlight1",inset:!0}),$focusStyle:()=>t=>Eo(t,{key:"$focus",borderColor:"$accent2"}),$hoverStyle:()=>t=>Eo(t,{key:"$hover",borderColor:"$accent1",inset:!0}),$activeStyle:()=>t=>Eo(t,{key:"$active",borderColor:"$accent1",inset:!0})},{styled:Lo,css:Do,createTheme:Po,globalCss:Ro,keyframes:Oo}=Ot({prefix:"leva",theme:Io(),utils:Vr(Vr({},ko),{},{$flex:()=>({display:"flex",alignItems:"center"}),$flexCenter:()=>({display:"flex",alignItems:"center",justifyContent:"center"}),$reset:()=>({outline:"none",fontSize:"inherit",fontWeight:"inherit",color:"inherit",fontFamily:"inherit",border:"none",backgroundColor:"transparent",appearance:"none"}),$draggable:()=>({touchAction:"none",WebkitUserDrag:"none",userSelect:"none"}),$focus:t=>({"&:focus":ko.$focusStyle()(t)}),$focusWithin:t=>({"&:focus-within":ko.$focusStyle()(t)}),$hover:t=>({"&:hover":ko.$hoverStyle()(t)}),$active:t=>({"&:active":ko.$activeStyle()(t)})})}),No=Ro({".leva__panel__dragged":{WebkitUserDrag:"none",userSelect:"none",input:{userSelect:"none"},"*":{cursor:"ew-resize !important"}}});function Fo(t,e){const{theme:n}=(0,r.useContext)(So);if(!(t in n)||!(e in n[t]))return Ir(Mr.THEME_ERROR,t,e),"";let i=e;for(;;){let e=n[t][i];if("string"!=typeof e||"$"!==e.charAt(0))return e;i=e.substr(1)}}const Bo=Lo("input",{$reset:"",padding:"0 $sm",width:0,minWidth:0,flex:1,height:"100%",variants:{levaType:{number:{textAlign:"right"}},as:{textarea:{padding:"$sm"}}}}),zo=Lo("div",{$draggable:"",height:"100%",$flexCenter:"",position:"relative",padding:"0 $xs",fontSize:"0.8em",opacity:.8,cursor:"default",touchAction:"none",[`& + ${Bo}`]:{paddingLeft:0}}),Go=Lo(zo,{cursor:"ew-resize",marginRight:"-$xs",textTransform:"uppercase",opacity:.3,"&:hover":{opacity:1},variants:{dragging:{true:{backgroundColor:"$accent2",opacity:1}}}}),Vo=Lo("div",{$flex:"",position:"relative",borderRadius:"$sm",overflow:"hidden",color:"inherit",height:"$rowHeight",backgroundColor:"$elevation3",$inputStyle:"$elevation1",$hover:"",$focusWithin:"",variants:{textArea:{true:{height:"auto"}}}}),jo=["innerLabel","value","onUpdate","onChange","onKeyDown","type","id","inputType","rows"],Ho=["onUpdate"];function Wo(t){let{innerLabel:e,value:n,onUpdate:i,onChange:o,onKeyDown:a,type:s,id:l,inputType:h="text",rows:c=0}=t,u=Tr(t,jo);const{id:d,emitOnEditStart:p,emitOnEditEnd:f,disabled:g}=wo(),m=l||d,v=(0,r.useRef)(null),y=c>0,_=y?"textarea":"input",x=(0,r.useCallback)((t=>e=>{const n=e.currentTarget.value;t(n)}),[]);r.useEffect((()=>{const t=v.current,e=x((t=>{i(t),f()}));return null==t||t.addEventListener("blur",e),()=>null==t?void 0:t.removeEventListener("blur",e)}),[x,i,f]);const b=(0,r.useCallback)((t=>{"Enter"===t.key&&x(i)(t)}),[x,i]),w=Object.assign({as:_},y?{rows:c}:{},u);return r.createElement(Vo,{textArea:y},e&&"string"==typeof e?r.createElement(zo,null,e):e,r.createElement(Bo,xo({levaType:s,ref:v,id:m,type:h,autoComplete:"off",spellCheck:"false",value:n,onChange:x(o),onFocus:()=>p(),onKeyPress:b,onKeyDown:a,disabled:g},w)))}function Uo(t){let{onUpdate:e}=t,n=Tr(t,Ho);const i=(0,r.useCallback)((t=>e(Hr(t))),[e]),o=(0,r.useCallback)((t=>{const n="ArrowUp"===t.key?1:"ArrowDown"===t.key?-1:0;if(n){t.preventDefault();const i=t.altKey?.1:t.shiftKey?10:1;e((t=>parseFloat(t)+n*i))}}),[e]);return r.createElement(Wo,xo({},n,{onUpdate:i,onKeyDown:o,type:"number"}))}const qo=Lo("div",{}),Xo=Lo("div",{position:"relative",background:"$elevation2",transition:"height 300ms ease",variants:{fill:{true:{},false:{}},flat:{false:{},true:{}},isRoot:{true:{},false:{paddingLeft:"$md","&::after":{content:'""',position:"absolute",left:0,top:0,width:"$borderWidths$folder",height:"100%",backgroundColor:"$folderWidgetColor",opacity:.4,transform:"translateX(-50%)"}}}},compoundVariants:[{isRoot:!0,fill:!1,css:{overflowY:"auto",maxHeight:"calc(100vh - 20px - $$titleBarHeight)"}},{isRoot:!0,flat:!1,css:{borderRadius:"$lg"}}]}),Yo=Lo("div",{$flex:"",color:"$folderTextColor",userSelect:"none",cursor:"pointer",height:"$folderTitleHeight",fontWeight:"$folder","> svg":{marginLeft:-4,marginRight:4,cursor:"pointer",fill:"$folderWidgetColor",opacity:.6},"&:hover > svg":{fill:"$folderWidgetColor"},[`&:hover + ${Xo}::after`]:{opacity:.6},[`${qo}:hover > & + ${Xo}::after`]:{opacity:.6},[`${qo}:hover > & > svg`]:{opacity:1}}),Zo=Lo("div",{position:"relative",display:"grid",gridTemplateColumns:"100%",rowGap:"$rowGap",transition:"opacity 250ms ease",variants:{toggled:{true:{opacity:1,transitionDelay:"250ms"},false:{opacity:0,transitionDelay:"0ms",pointerEvents:"none"}},isRoot:{true:{"& > div":{paddingLeft:"$md",paddingRight:"$md"},"& > div:first-of-type":{paddingTop:"$sm"},"& > div:last-of-type":{paddingBottom:"$sm"},[`> ${qo}:not(:first-of-type)`]:{paddingTop:"$sm",marginTop:"$md",borderTop:"$borderWidths$folder solid $colors$elevation1"}}}}}),$o=Lo("div",{position:"relative",zIndex:100,display:"grid",rowGap:"$rowGap",gridTemplateRows:"minmax($sizes$rowHeight, max-content)",alignItems:"center",color:"$highlight2",[`${Zo} > &`]:{"&:first-of-type":{marginTop:"$rowGap"},"&:last-of-type":{marginBottom:"$rowGap"}},variants:{disabled:{true:{pointerEvents:"none"},false:{"&:hover,&:focus-within":{color:"$highlight3"}}}}}),Ko=Lo($o,{gridTemplateColumns:"auto $sizes$controlWidth",columnGap:"$colGap"}),Jo=Lo("div",{$flex:"",height:"100%",position:"relative",overflow:"hidden","& > div":{marginLeft:"$colGap",padding:"0 $xs",opacity:.4},"& > div:hover":{opacity:.8},"& > div > svg":{display:"none",cursor:"pointer",width:13,minWidth:13,height:13,backgroundColor:"$elevation2"},"&:hover > div > svg":{display:"block"},variants:{align:{top:{height:"100%",alignItems:"flex-start",paddingTop:"$sm"}}}}),Qo=Lo("input",{$reset:"",height:0,width:0,opacity:0,margin:0,"& + label":{position:"relative",$flexCenter:"",height:"100%",userSelect:"none",cursor:"pointer",paddingLeft:2,paddingRight:"$sm",pointerEvents:"auto"},"& + label:after":{content:'""',width:6,height:6,backgroundColor:"$elevation3",borderRadius:"50%",$activeStyle:""},"&:focus + label:after":{$focusStyle:""},"& + label:active:after":{backgroundColor:"$accent1",$focusStyle:""},"&:checked + label:after":{backgroundColor:"$accent1"}}),ta=Lo("label",{fontWeight:"$label",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap","& > svg":{display:"block"}}),ea=Lo("div",{opacity:1,variants:{disabled:{true:{opacity:.6,pointerEvents:"none",[`& ${ta}`]:{pointerEvents:"auto"}}}}}),na=Lo("div",{position:"fixed",top:0,bottom:0,right:0,left:0,zIndex:1e3,userSelect:"none"}),ia=Lo("div",{background:"$toolTipBackground",fontFamily:"$sans",fontSize:"$toolTip",padding:"$xs $sm",color:"$toolTipText",borderRadius:"$xs",boxShadow:"$level2",maxWidth:260}),ra=Lo(Sr,{fill:"$toolTipBackground"});function oa({children:t}){const{className:e}=(0,r.useContext)(So);return r.createElement(v,{className:e},t)}const aa=["align"];function sa(){const{id:t,disable:e,disabled:n}=wo();return r.createElement(r.Fragment,null,r.createElement(Qo,{id:t+"__disable",type:"checkbox",checked:!n,onChange:()=>e(!n)}),r.createElement("label",{htmlFor:t+"__disable"}))}function la(t){const{id:e,optional:n,hint:i}=wo(),o=t.htmlFor||(e?{htmlFor:e}:null),a=i||"string"!=typeof t.children?null:{title:t.children};return r.createElement(r.Fragment,null,n&&r.createElement(sa,null),void 0!==i?r.createElement(xr,null,r.createElement(br,{asChild:!0},r.createElement(ta,xo({},o,t))),r.createElement(wr,{side:"top",sideOffset:2},r.createElement(ia,null,i,r.createElement(ra,null)))):r.createElement(ta,xo({},o,a,t)))}function ha(t){let{align:e}=t,n=Tr(t,aa);const{value:i,label:o,key:a,disabled:s}=wo(),{hideCopyButton:l}=(0,r.useContext)(Mo),h=!l&&void 0!==a,[c,u]=(0,r.useState)(!1);return r.createElement(Jo,{align:e,onPointerLeave:()=>u(!1)},r.createElement(la,n),h&&!s&&r.createElement("div",{title:`Click to copy ${"string"==typeof o?o:a} value`},c?r.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor"},r.createElement("path",{d:"M9 2a1 1 0 000 2h2a1 1 0 100-2H9z"}),r.createElement("path",{fillRule:"evenodd",d:"M4 5a2 2 0 012-2 3 3 0 003 3h2a3 3 0 003-3 2 2 0 012 2v11a2 2 0 01-2 2H6a2 2 0 01-2-2V5zm9.707 5.707a1 1 0 00-1.414-1.414L9 12.586l-1.293-1.293a1 1 0 00-1.414 1.414l2 2a1 1 0 001.414 0l4-4z",clipRule:"evenodd"})):r.createElement("svg",{onClick:async()=>{try{await navigator.clipboard.writeText(JSON.stringify({[a]:null!=i?i:""})),u(!0)}catch(t){Ir(Mr.CLIPBOARD_ERROR,{[a]:i})}},xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor"},r.createElement("path",{d:"M8 3a1 1 0 011-1h2a1 1 0 110 2H9a1 1 0 01-1-1z"}),r.createElement("path",{d:"M6 3a2 2 0 00-2 2v11a2 2 0 002 2h8a2 2 0 002-2V5a2 2 0 00-2-2 3 3 0 01-3 3H9a3 3 0 01-3-3z"}))))}const ca=["toggled"],ua=Lo("svg",{fill:"currentColor",transition:"transform 350ms ease, fill 250ms ease"});function da(t){let{toggled:e}=t,n=Tr(t,ca);return r.createElement(ua,xo({width:"9",height:"5",viewBox:"0 0 9 5",xmlns:"http://www.w3.org/2000/svg",style:{transform:`rotate(${e?0:-90}deg)`}},n),r.createElement("path",{d:"M3.8 4.4c.4.3 1 .3 1.4 0L8 1.7A1 1 0 007.4 0H1.6a1 1 0 00-.7 1.7l3 2.7z"}))}const pa=["input"];function fa(t){let{input:e}=t,n=Tr(t,pa);return e?r.createElement(Ko,n):r.createElement($o,n)}function ga({value:t,type:e,settings:n,setValue:i}){const[o,a]=(0,r.useState)(Br(e,t,n)),s=(0,r.useRef)(t),l=(0,r.useRef)(n);l.current=n;const h=(0,r.useCallback)((t=>a(Br(e,t,l.current))),[e]),c=(0,r.useCallback)((t=>{try{i(t)}catch(e){const{type:t,previousValue:n}=e;if("LEVA_ERROR"!==t)throw e;h(n)}}),[h,i]);return(0,r.useEffect)((()=>{_(t,s.current)||h(t),s.current=t}),[t,h]),{displayValue:o,onChange:a,onUpdate:c}}function ma(t,e){const{emitOnEditStart:n,emitOnEditEnd:i}=wo();return Ee((e=>{e.first&&(document.body.classList.add("leva__panel__dragged"),null==n||n());const r=t(e);return e.last&&(document.body.classList.remove("leva__panel__dragged"),null==i||i()),r}),e)}function va(){const t=(0,r.useRef)(null),e=(0,r.useRef)({x:0,y:0}),n=(0,r.useCallback)((n=>{Object.assign(e.current,n),t.current&&(t.current.style.transform=`translate3d(${e.current.x}px, ${e.current.y}px, 0)`)}),[]);return[t,n]}const ya=["__refCount"],_a=(t,e)=>{if(!t[e])return null;return Tr(t[e],ya)};const xa=Lo("div",{variants:{hasRange:{true:{position:"relative",display:"grid",gridTemplateColumns:"auto $sizes$numberInputMinWidth",columnGap:"$colGap",alignItems:"center"}}}}),ba=Lo("div",{position:"relative",width:"100%",height:2,borderRadius:"$xs",backgroundColor:"$elevation1"}),wa=Lo("div",{position:"absolute",width:"$scrubberWidth",height:"$scrubberHeight",borderRadius:"$xs",boxShadow:"0 0 0 2px $colors$elevation2",backgroundColor:"$accent2",cursor:"pointer",$active:"none $accent1",$hover:"none $accent3",variants:{position:{left:{borderTopRightRadius:0,borderBottomRightRadius:0,transform:"translateX(calc(-0.5 * ($sizes$scrubberWidth + 4px)))"},right:{borderTopLeftRadius:0,borderBottomLeftRadius:0,transform:"translateX(calc(0.5 * ($sizes$scrubberWidth + 4px)))"}}}}),Sa=Lo("div",{position:"relative",$flex:"",height:"100%",cursor:"pointer",touchAction:"none"}),Ta=Lo("div",{position:"absolute",height:"100%",backgroundColor:"$accent2"});function Ma({value:t,min:e,max:n,onDrag:i,step:o,initialValue:a}){const s=(0,r.useRef)(null),l=(0,r.useRef)(null),h=(0,r.useRef)(0),c=Fo("sizes","scrubberWidth"),u=ma((({event:r,first:u,xy:[d],movement:[p],memo:f})=>{if(u){const{width:i,left:o}=s.current.getBoundingClientRect();h.current=i-parseFloat(c);f=(null==r?void 0:r.target)===l.current?t:Xr((d-o)/i,e,n)}const g=f+Xr(p/h.current,0,n-e);return i(yo(g,{step:o,initialValue:a})),f})),d=qr(t,e,n);return r.createElement(Sa,xo({ref:s},u()),r.createElement(ba,null,r.createElement(Ta,{style:{left:0,right:100*(1-d)+"%"}})),r.createElement(wa,{ref:l,style:{left:`calc(${d} * (100% - ${c}))`}}))}const Aa=r.memo((({label:t,onUpdate:e,step:n,innerLabelTrim:i})=>{const[o,a]=(0,r.useState)(!1),s=ma((({active:t,delta:[i],event:r,memo:o=0})=>(a(t),o+=i/2,Math.abs(o)>=1&&(e((t=>parseFloat(t)+Math.floor(o)*n*po(r))),o=0),o)));return r.createElement(Go,xo({dragging:o,title:t.length>1?t:""},s()),t.slice(0,i))}));function Ca({label:t,id:e,displayValue:n,onUpdate:i,onChange:o,settings:a,innerLabelTrim:s=1}){const l=s>0&&r.createElement(Aa,{label:t,step:a.step,onUpdate:i,innerLabelTrim:s});return r.createElement(Uo,{id:e,value:String(n),onUpdate:i,onChange:o,innerLabel:l})}const{sanitizeStep:Ia}=_o;var Ea=Vr({component:function(){const t=wo(),{label:e,value:n,onUpdate:i,settings:o,id:a}=t,{min:s,max:l}=o,h=l!==1/0&&s!==-1/0;return r.createElement(fa,{input:!0},r.createElement(ha,null,e),r.createElement(xa,{hasRange:h},h&&r.createElement(Ma,xo({value:parseFloat(n),onDrag:i},o)),r.createElement(Ca,xo({},t,{id:a,label:"value",innerLabelTrim:h?0:1}))))}},Tr(_o,["sanitizeStep"]));var ka=Object.freeze({__proto__:null,schema:(t,e)=>G().schema({options:G().passesAnyOf(G().object(),G().array())}).test(e),sanitize:(t,{values:e})=>{if(e.indexOf(t)<0)throw Error("Selected value doesn't match Select options");return t},format:(t,{values:e})=>e.indexOf(t),normalize:t=>{let e,n,{value:i,options:r}=t;return Array.isArray(r)?(n=r,e=r.map((t=>String(t)))):(n=Object.values(r),e=Object.keys(r)),"value"in t?n.includes(i)||(e.unshift(String(i)),n.unshift(i)):i=n[0],Object.values(r).includes(i)||(r[String(i)]=i),{value:i,settings:{keys:e,values:n}}}});const La=Lo("div",{$flexCenter:"",position:"relative","> svg":{pointerEvents:"none",position:"absolute",right:"$md"}}),Da=Lo("select",{position:"absolute",top:0,left:0,width:"100%",height:"100%",opacity:0}),Pa=Lo("div",{display:"flex",alignItems:"center",width:"100%",height:"$rowHeight",backgroundColor:"$elevation3",borderRadius:"$sm",padding:"0 $sm",cursor:"pointer",[`${Da}:focus + &`]:{$focusStyle:""},[`${Da}:hover + &`]:{$hoverStyle:""}});function Ra({displayValue:t,value:e,onUpdate:n,id:i,settings:o,disabled:a}){const{keys:s,values:l}=o,h=(0,r.useRef)();return e===l[t]&&(h.current=s[t]),r.createElement(La,null,r.createElement(Da,{id:i,value:t,onChange:t=>n(l[Number(t.currentTarget.value)]),disabled:a},s.map(((t,e)=>r.createElement("option",{key:t,value:e},t)))),r.createElement(Pa,null,h.current),r.createElement(da,{toggled:!0}))}var Oa=Vr({component:function(){const{label:t,value:e,displayValue:n,onUpdate:i,id:o,disabled:a,settings:s}=wo();return r.createElement(fa,{input:!0},r.createElement(ha,null,t),r.createElement(Ra,{id:o,value:e,displayValue:n,onUpdate:i,settings:s,disabled:a}))}},ka);var Na=Object.freeze({__proto__:null,schema:t=>G().string().test(t),sanitize:t=>{if("string"!=typeof t)throw Error("Invalid string");return t},normalize:({value:t,editable:e=!0,rows:n=!1})=>({value:t,settings:{editable:e,rows:"number"==typeof n?n:n?5:0}})});const Fa=["displayValue","onUpdate","onChange","editable"],Ba=Lo("div",{whiteSpace:"pre-wrap"});function za(t){let{displayValue:e,onUpdate:n,onChange:i,editable:o=!0}=t,a=Tr(t,Fa);return o?r.createElement(Wo,xo({value:e,onUpdate:n,onChange:i},a)):r.createElement(Ba,null,e)}var Ga=Vr({component:function(){const{label:t,settings:e,displayValue:n,onUpdate:i,onChange:o}=wo();return r.createElement(fa,{input:!0},r.createElement(ha,null,t),r.createElement(za,xo({displayValue:n,onUpdate:i,onChange:o},e)))}},Na);var Va=Object.freeze({__proto__:null,schema:t=>G().boolean().test(t),sanitize:t=>{if("boolean"!=typeof t)throw Error("Invalid boolean");return t}});const ja=Lo("div",{position:"relative",$flex:"",height:"$rowHeight",input:{$reset:"",height:0,width:0,opacity:0,margin:0},label:{position:"relative",$flexCenter:"",userSelect:"none",cursor:"pointer",height:"$checkboxSize",width:"$checkboxSize",backgroundColor:"$elevation3",borderRadius:"$sm",$hover:""},"input:focus + label":{$focusStyle:""},"input:focus:checked + label, input:checked + label:hover":{$hoverStyle:"$accent3"},"input + label:active":{backgroundColor:"$accent1"},"input:checked + label:active":{backgroundColor:"$accent1"},"label > svg":{display:"none",width:"90%",height:"90%",stroke:"$highlight3"},"input:checked + label":{backgroundColor:"$accent2"},"input:checked + label > svg":{display:"block"}});function Ha({value:t,onUpdate:e,id:n,disabled:i}){return r.createElement(ja,null,r.createElement("input",{id:n,type:"checkbox",checked:t,onChange:t=>e(t.currentTarget.checked),disabled:i}),r.createElement("label",{htmlFor:n},r.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24"},r.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M5 13l4 4L19 7"}))))}var Wa=Vr({component:function(){const{label:t,value:e,onUpdate:n,disabled:i,id:o}=wo();return r.createElement(fa,{input:!0},r.createElement(ha,null,t),r.createElement(Ha,{value:e,onUpdate:n,id:o,disabled:i}))}},Va);const Ua=["locked"];function qa({value:t,id:e,valueKey:n,settings:i,onUpdate:o,innerLabelTrim:a}){const s=(0,r.useRef)(t[n]);s.current=t[n];const l=(0,r.useCallback)((t=>o({[n]:co({type:"NUMBER",value:s.current,settings:i},t)})),[o,i,n]),h=ga({type:"NUMBER",value:t[n],settings:i,setValue:l});return r.createElement(Ca,{id:e,label:n,value:t[n],displayValue:h.displayValue,onUpdate:h.onUpdate,onChange:h.onChange,settings:i,innerLabelTrim:a})}const Xa=Lo("div",{display:"grid",columnGap:"$colGap",gridAutoFlow:"column dense",alignItems:"center",variants:{withLock:{true:{gridTemplateColumns:"10px auto","> svg":{cursor:"pointer"}}}}});function Ya(t){let{locked:e}=t,n=Tr(t,Ua);return r.createElement("svg",xo({width:"10",height:"10",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},n),e?r.createElement("path",{d:"M5 4.63601C5 3.76031 5.24219 3.1054 5.64323 2.67357C6.03934 2.24705 6.64582 1.9783 7.5014 1.9783C8.35745 1.9783 8.96306 2.24652 9.35823 2.67208C9.75838 3.10299 10 3.75708 10 4.63325V5.99999H5V4.63601ZM4 5.99999V4.63601C4 3.58148 4.29339 2.65754 4.91049 1.99307C5.53252 1.32329 6.42675 0.978302 7.5014 0.978302C8.57583 0.978302 9.46952 1.32233 10.091 1.99162C10.7076 2.65557 11 3.57896 11 4.63325V5.99999H12C12.5523 5.99999 13 6.44771 13 6.99999V13C13 13.5523 12.5523 14 12 14H3C2.44772 14 2 13.5523 2 13V6.99999C2 6.44771 2.44772 5.99999 3 5.99999H4ZM3 6.99999H12V13H3V6.99999Z",fill:"currentColor",fillRule:"evenodd",clipRule:"evenodd"}):r.createElement("path",{d:"M9 3.63601C9 2.76044 9.24207 2.11211 9.64154 1.68623C10.0366 1.26502 10.6432 1 11.5014 1C12.4485 1 13.0839 1.30552 13.4722 1.80636C13.8031 2.23312 14 2.84313 14 3.63325H15C15 2.68242 14.7626 1.83856 14.2625 1.19361C13.6389 0.38943 12.6743 0 11.5014 0C10.4294 0 9.53523 0.337871 8.91218 1.0021C8.29351 1.66167 8 2.58135 8 3.63601V6H1C0.447715 6 0 6.44772 0 7V13C0 13.5523 0.447715 14 1 14H10C10.5523 14 11 13.5523 11 13V7C11 6.44772 10.5523 6 10 6H9V3.63601ZM1 7H10V13H1V7Z",fill:"currentColor",fillRule:"evenodd",clipRule:"evenodd"}))}function Za({value:t,onUpdate:e,settings:n,innerLabelTrim:i}){const{id:o,setSettings:a}=wo(),{lock:s,locked:l}=n;return r.createElement(Xa,{withLock:s},s&&r.createElement(Ya,{locked:l,onClick:()=>a({locked:!l})}),Object.keys(t).map(((a,s)=>r.createElement(qa,{id:0===s?o:`${o}.${a}`,key:a,valueKey:a,value:t,settings:n[a],onUpdate:e,innerLabelTrim:i}))))}const $a=(t,e)=>{const n={};let i=0,r=1/0;Object.entries(t).forEach((([t,o])=>{n[t]=vo(Vr({value:o},e[t])).settings,i=Math.max(i,n[t].step),r=Math.min(r,n[t].pad)}));for(let o in n){const{step:t,min:a,max:s}=e[o]||{};isFinite(t)||isFinite(a)&&isFinite(s)||(n[o].step=i,n[o].pad=r)}return n},Ka=["lock"],Ja=["value"];function Qa(t){const e=G().array().length(t).every.number();return n=>e.test(n)||(e=>{if(!e||"object"!=typeof e)return!1;const n=Object.values(e);return n.length===t&&n.every((t=>isFinite(t)))})(n)}function ts(t,e,n){return function(t){return Array.isArray(t)?"array":"object"}(t)===e?t:"array"===e?Object.values(t):function(t,e){return t.reduce(((t,n,i)=>Object.assign(t,{[e[i]]:n})),{})}(t,n)}function es(t){return{schema:Qa(t.length),normalize:e=>{let{value:n}=e;return function(t,e,n=[]){const{lock:i=!1}=e,r=Tr(e,Ka),o=Array.isArray(t)?"array":"object",a="object"===o?Object.keys(t):n,s=ts(t,"object",a),l=(t=>!!t&&("step"in t||"min"in t||"max"in t))(r)?a.reduce(((t,e)=>Object.assign(t,{[e]:r})),{}):r;return{value:"array"===o?t:s,settings:Vr(Vr({},$a(s,l)),{},{format:o,keys:a,lock:i,locked:!1})}}(n,Tr(e,Ja),t)},format:(t,e)=>((t,e)=>ts(t,"object",e.keys))(t,e),sanitize:(t,e,n)=>((t,e,n)=>{const i=ts(t,"object",e.keys);for(let a in i)i[a]=mo(i[a],e[a]);const r=Object.keys(i);let o={};if(r.length===e.keys.length)o=i;else{const t=ts(n,"object",e.keys);if(1===r.length&&e.locked){const e=r[0],n=i[e],a=t[e],s=0!==a?n/a:1;for(let i in t)i===e?o[e]=n:o[i]=t[i]*s}else o=Vr(Vr({},t),i)}return ts(o,e.format,e.keys)})(t,e,n)}}var ns={grad:.9,turn:360,rad:360/(2*Math.PI)},is=function(t){return"string"==typeof t?t.length>0:"number"==typeof t},rs=function(t,e,n){return void 0===e&&(e=0),void 0===n&&(n=Math.pow(10,e)),Math.round(n*t)/n+0},os=function(t,e,n){return void 0===e&&(e=0),void 0===n&&(n=1),t>n?n:t>e?t:e},as=function(t){return(t=isFinite(t)?t%360:0)>0?t:t+360},ss=function(t){return{r:os(t.r,0,255),g:os(t.g,0,255),b:os(t.b,0,255),a:os(t.a)}},ls=function(t){return{r:rs(t.r),g:rs(t.g),b:rs(t.b),a:rs(t.a,3)}},hs=/^#([0-9a-f]{3,8})$/i,cs=function(t){var e=t.toString(16);return e.length<2?"0"+e:e},us=function(t){var e=t.r,n=t.g,i=t.b,r=t.a,o=Math.max(e,n,i),a=o-Math.min(e,n,i),s=a?o===e?(n-i)/a:o===n?2+(i-e)/a:4+(e-n)/a:0;return{h:60*(s<0?s+6:s),s:o?a/o*100:0,v:o/255*100,a:r}},ds=function(t){var e=t.h,n=t.s,i=t.v,r=t.a;e=e/360*6,n/=100,i/=100;var o=Math.floor(e),a=i*(1-n),s=i*(1-(e-o)*n),l=i*(1-(1-e+o)*n),h=o%6;return{r:255*[i,s,a,a,l,i][h],g:255*[l,i,i,s,a,a][h],b:255*[a,a,l,i,i,s][h],a:r}},ps=function(t){return{h:as(t.h),s:os(t.s,0,100),l:os(t.l,0,100),a:os(t.a)}},fs=function(t){return{h:rs(t.h),s:rs(t.s),l:rs(t.l),a:rs(t.a,3)}},gs=function(t){return ds((n=(e=t).s,{h:e.h,s:(n*=((i=e.l)<50?i:100-i)/100)>0?2*n/(i+n)*100:0,v:i+n,a:e.a}));var e,n,i},ms=function(t){return{h:(e=us(t)).h,s:(r=(200-(n=e.s))*(i=e.v)/100)>0&&r<200?n*i/100/(r<=100?r:200-r)*100:0,l:r/2,a:e.a};var e,n,i,r},vs=/^hsla?\(\s*([+-]?\d*\.?\d+)(deg|rad|grad|turn)?\s*,\s*([+-]?\d*\.?\d+)%\s*,\s*([+-]?\d*\.?\d+)%\s*(?:,\s*([+-]?\d*\.?\d+)(%)?\s*)?\)$/i,ys=/^hsla?\(\s*([+-]?\d*\.?\d+)(deg|rad|grad|turn)?\s+([+-]?\d*\.?\d+)%\s+([+-]?\d*\.?\d+)%\s*(?:\/\s*([+-]?\d*\.?\d+)(%)?\s*)?\)$/i,_s=/^rgba?\(\s*([+-]?\d*\.?\d+)(%)?\s*,\s*([+-]?\d*\.?\d+)(%)?\s*,\s*([+-]?\d*\.?\d+)(%)?\s*(?:,\s*([+-]?\d*\.?\d+)(%)?\s*)?\)$/i,xs=/^rgba?\(\s*([+-]?\d*\.?\d+)(%)?\s+([+-]?\d*\.?\d+)(%)?\s+([+-]?\d*\.?\d+)(%)?\s*(?:\/\s*([+-]?\d*\.?\d+)(%)?\s*)?\)$/i,bs={string:[[function(t){var e=hs.exec(t);return e?(t=e[1]).length<=4?{r:parseInt(t[0]+t[0],16),g:parseInt(t[1]+t[1],16),b:parseInt(t[2]+t[2],16),a:4===t.length?rs(parseInt(t[3]+t[3],16)/255,2):1}:6===t.length||8===t.length?{r:parseInt(t.substr(0,2),16),g:parseInt(t.substr(2,2),16),b:parseInt(t.substr(4,2),16),a:8===t.length?rs(parseInt(t.substr(6,2),16)/255,2):1}:null:null},"hex"],[function(t){var e=_s.exec(t)||xs.exec(t);return e?e[2]!==e[4]||e[4]!==e[6]?null:ss({r:Number(e[1])/(e[2]?100/255:1),g:Number(e[3])/(e[4]?100/255:1),b:Number(e[5])/(e[6]?100/255:1),a:void 0===e[7]?1:Number(e[7])/(e[8]?100:1)}):null},"rgb"],[function(t){var e=vs.exec(t)||ys.exec(t);if(!e)return null;var n,i,r=ps({h:(n=e[1],i=e[2],void 0===i&&(i="deg"),Number(n)*(ns[i]||1)),s:Number(e[3]),l:Number(e[4]),a:void 0===e[5]?1:Number(e[5])/(e[6]?100:1)});return gs(r)},"hsl"]],object:[[function(t){var e=t.r,n=t.g,i=t.b,r=t.a,o=void 0===r?1:r;return is(e)&&is(n)&&is(i)?ss({r:Number(e),g:Number(n),b:Number(i),a:Number(o)}):null},"rgb"],[function(t){var e=t.h,n=t.s,i=t.l,r=t.a,o=void 0===r?1:r;if(!is(e)||!is(n)||!is(i))return null;var a=ps({h:Number(e),s:Number(n),l:Number(i),a:Number(o)});return gs(a)},"hsl"],[function(t){var e=t.h,n=t.s,i=t.v,r=t.a,o=void 0===r?1:r;if(!is(e)||!is(n)||!is(i))return null;var a=function(t){return{h:as(t.h),s:os(t.s,0,100),v:os(t.v,0,100),a:os(t.a)}}({h:Number(e),s:Number(n),v:Number(i),a:Number(o)});return ds(a)},"hsv"]]},ws=function(t,e){for(var n=0;n<e.length;n++){var i=e[n][0](t);if(i)return[i,e[n][1]]}return[null,void 0]},Ss=function(t){return"string"==typeof t?ws(t.trim(),bs.string):"object"==typeof t&&null!==t?ws(t,bs.object):[null,void 0]},Ts=function(t,e){var n=ms(t);return{h:n.h,s:os(n.s+100*e,0,100),l:n.l,a:n.a}},Ms=function(t){return(299*t.r+587*t.g+114*t.b)/1e3/255},As=function(t,e){var n=ms(t);return{h:n.h,s:n.s,l:os(n.l+100*e,0,100),a:n.a}},Cs=function(){function t(t){this.parsed=Ss(t)[0],this.rgba=this.parsed||{r:0,g:0,b:0,a:1}}return t.prototype.isValid=function(){return null!==this.parsed},t.prototype.brightness=function(){return rs(Ms(this.rgba),2)},t.prototype.isDark=function(){return Ms(this.rgba)<.5},t.prototype.isLight=function(){return Ms(this.rgba)>=.5},t.prototype.toHex=function(){return e=(t=ls(this.rgba)).r,n=t.g,i=t.b,o=(r=t.a)<1?cs(rs(255*r)):"","#"+cs(e)+cs(n)+cs(i)+o;var t,e,n,i,r,o},t.prototype.toRgb=function(){return ls(this.rgba)},t.prototype.toRgbString=function(){return e=(t=ls(this.rgba)).r,n=t.g,i=t.b,(r=t.a)<1?"rgba("+e+", "+n+", "+i+", "+r+")":"rgb("+e+", "+n+", "+i+")";var t,e,n,i,r},t.prototype.toHsl=function(){return fs(ms(this.rgba))},t.prototype.toHslString=function(){return e=(t=fs(ms(this.rgba))).h,n=t.s,i=t.l,(r=t.a)<1?"hsla("+e+", "+n+"%, "+i+"%, "+r+")":"hsl("+e+", "+n+"%, "+i+"%)";var t,e,n,i,r},t.prototype.toHsv=function(){return t=us(this.rgba),{h:rs(t.h),s:rs(t.s),v:rs(t.v),a:rs(t.a,3)};var t},t.prototype.invert=function(){return Is({r:255-(t=this.rgba).r,g:255-t.g,b:255-t.b,a:t.a});var t},t.prototype.saturate=function(t){return void 0===t&&(t=.1),Is(Ts(this.rgba,t))},t.prototype.desaturate=function(t){return void 0===t&&(t=.1),Is(Ts(this.rgba,-t))},t.prototype.grayscale=function(){return Is(Ts(this.rgba,-1))},t.prototype.lighten=function(t){return void 0===t&&(t=.1),Is(As(this.rgba,t))},t.prototype.darken=function(t){return void 0===t&&(t=.1),Is(As(this.rgba,-t))},t.prototype.rotate=function(t){return void 0===t&&(t=15),this.hue(this.hue()+t)},t.prototype.alpha=function(t){return"number"==typeof t?Is({r:(e=this.rgba).r,g:e.g,b:e.b,a:t}):rs(this.rgba.a,3);var e},t.prototype.hue=function(t){var e=ms(this.rgba);return"number"==typeof t?Is({h:t,s:e.s,l:e.l,a:e.a}):rs(e.h)},t.prototype.isEqual=function(t){return this.toHex()===Is(t).toHex()},t}(),Is=function(t){return t instanceof Cs?t:new Cs(t)},Es=[];function ks(){return(ks=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(t[i]=n[i])}return t}).apply(this,arguments)}function Ls(t,e){if(null==t)return{};var n,i,r={},o=Object.keys(t);for(i=0;i<o.length;i++)e.indexOf(n=o[i])>=0||(r[n]=t[n]);return r}function Ds(t){var e=(0,r.useRef)(t),n=(0,r.useRef)((function(t){e.current&&e.current(t)}));return e.current=t,n.current}var Ps=function(t,e,n){return void 0===e&&(e=0),void 0===n&&(n=1),t>n?n:t<e?e:t},Rs=function(t){return"touches"in t},Os=function(t){return t&&t.ownerDocument.defaultView||self},Ns=function(t,e,n){var i=t.getBoundingClientRect(),r=Rs(e)?function(t,e){for(var n=0;n<t.length;n++)if(t[n].identifier===e)return t[n];return t[0]}(e.touches,n):e;return{left:Ps((r.pageX-(i.left+Os(t).pageXOffset))/i.width),top:Ps((r.pageY-(i.top+Os(t).pageYOffset))/i.height)}},Fs=function(t){!Rs(t)&&t.preventDefault()},Bs=r.memo((function(t){var e=t.onMove,n=t.onKey,i=Ls(t,["onMove","onKey"]),o=(0,r.useRef)(null),a=Ds(e),s=Ds(n),l=(0,r.useRef)(null),h=(0,r.useRef)(!1),c=(0,r.useMemo)((function(){var t=function(t){Fs(t),(Rs(t)?t.touches.length>0:t.buttons>0)&&o.current?a(Ns(o.current,t,l.current)):n(!1)},e=function(){return n(!1)};function n(n){var i=h.current,r=Os(o.current),a=n?r.addEventListener:r.removeEventListener;a(i?"touchmove":"mousemove",t),a(i?"touchend":"mouseup",e)}return[function(t){var e=t.nativeEvent,i=o.current;if(i&&(Fs(e),!function(t,e){return e&&!Rs(t)}(e,h.current)&&i)){if(Rs(e)){h.current=!0;var r=e.changedTouches||[];r.length&&(l.current=r[0].identifier)}i.focus(),a(Ns(i,e,l.current)),n(!0)}},function(t){var e=t.which||t.keyCode;e<37||e>40||(t.preventDefault(),s({left:39===e?.05:37===e?-.05:0,top:40===e?.05:38===e?-.05:0}))},n]}),[s,a]),u=c[0],d=c[1],p=c[2];return(0,r.useEffect)((function(){return p}),[p]),r.createElement("div",ks({},i,{onTouchStart:u,onMouseDown:u,className:"react-colorful__interactive",ref:o,onKeyDown:d,tabIndex:0,role:"slider"}))})),zs=function(t){return t.filter(Boolean).join(" ")},Gs=function(t){var e=t.color,n=t.left,i=t.top,o=void 0===i?.5:i,a=zs(["react-colorful__pointer",t.className]);return r.createElement("div",{className:a,style:{top:100*o+"%",left:100*n+"%"}},r.createElement("div",{className:"react-colorful__pointer-fill",style:{backgroundColor:e}}))},Vs=function(t,e,n){return void 0===e&&(e=0),void 0===n&&(n=Math.pow(10,e)),Math.round(n*t)/n},js=(Math.PI,function(t){var e=t.s,n=t.v,i=t.a,r=(200-e)*n/100;return{h:Vs(t.h),s:Vs(r>0&&r<200?e*n/100/(r<=100?r:200-r)*100:0),l:Vs(r/2),a:Vs(i,2)}}),Hs=function(t){var e=js(t);return"hsl("+e.h+", "+e.s+"%, "+e.l+"%)"},Ws=function(t){var e=js(t);return"hsla("+e.h+", "+e.s+"%, "+e.l+"%, "+e.a+")"},Us=function(t){var e=t.h,n=t.s,i=t.v,r=t.a;e=e/360*6,n/=100,i/=100;var o=Math.floor(e),a=i*(1-n),s=i*(1-(e-o)*n),l=i*(1-(1-e+o)*n),h=o%6;return{r:Vs(255*[i,s,a,a,l,i][h]),g:Vs(255*[l,i,i,s,a,a][h]),b:Vs(255*[a,a,l,i,i,s][h]),a:Vs(r,2)}},qs=function(t){var e=t.r,n=t.g,i=t.b,r=t.a,o=Math.max(e,n,i),a=o-Math.min(e,n,i),s=a?o===e?(n-i)/a:o===n?2+(i-e)/a:4+(e-n)/a:0;return{h:Vs(60*(s<0?s+6:s)),s:Vs(o?a/o*100:0),v:Vs(o/255*100),a:r}},Xs=r.memo((function(t){var e=t.hue,n=t.onChange,i=zs(["react-colorful__hue",t.className]);return r.createElement("div",{className:i},r.createElement(Bs,{onMove:function(t){n({h:360*t.left})},onKey:function(t){n({h:Ps(e+360*t.left,0,360)})},"aria-label":"Hue","aria-valuenow":Vs(e),"aria-valuemax":"360","aria-valuemin":"0"},r.createElement(Gs,{className:"react-colorful__hue-pointer",left:e/360,color:Hs({h:e,s:100,v:100,a:1})})))})),Ys=r.memo((function(t){var e=t.hsva,n=t.onChange,i={backgroundColor:Hs({h:e.h,s:100,v:100,a:1})};return r.createElement("div",{className:"react-colorful__saturation",style:i},r.createElement(Bs,{onMove:function(t){n({s:100*t.left,v:100-100*t.top})},onKey:function(t){n({s:Ps(e.s+100*t.left,0,100),v:Ps(e.v-100*t.top,0,100)})},"aria-label":"Color","aria-valuetext":"Saturation "+Vs(e.s)+"%, Brightness "+Vs(e.v)+"%"},r.createElement(Gs,{className:"react-colorful__saturation-pointer",top:1-e.v/100,left:e.s/100,color:Hs(e)})))})),Zs=function(t,e){if(t===e)return!0;for(var n in t)if(t[n]!==e[n])return!1;return!0};function $s(t,e,n){var i=Ds(n),o=(0,r.useState)((function(){return t.toHsva(e)})),a=o[0],s=o[1],l=(0,r.useRef)({color:e,hsva:a});(0,r.useEffect)((function(){if(!t.equal(e,l.current.color)){var n=t.toHsva(e);l.current={hsva:n,color:e},s(n)}}),[e,t]),(0,r.useEffect)((function(){var e;Zs(a,l.current.hsva)||t.equal(e=t.fromHsva(a),l.current.color)||(l.current={hsva:a,color:e},i(e))}),[a,t,i]);var h=(0,r.useCallback)((function(t){s((function(e){return Object.assign({},e,t)}))}),[]);return[a,h]}var Ks,Js="undefined"!=typeof window?r.useLayoutEffect:r.useEffect,Qs=new Map,tl=function(t){Js((function(){var e=t.current?t.current.ownerDocument:document;if(void 0!==e&&!Qs.has(e)){var i=e.createElement("style");i.innerHTML='.react-colorful{position:relative;display:flex;flex-direction:column;width:200px;height:200px;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:default}.react-colorful__saturation{position:relative;flex-grow:1;border-color:transparent;border-bottom:12px solid #000;border-radius:8px 8px 0 0;background-image:linear-gradient(0deg,#000,transparent),linear-gradient(90deg,#fff,hsla(0,0%,100%,0))}.react-colorful__alpha-gradient,.react-colorful__pointer-fill{content:"";position:absolute;left:0;top:0;right:0;bottom:0;pointer-events:none;border-radius:inherit}.react-colorful__alpha-gradient,.react-colorful__saturation{box-shadow:inset 0 0 0 1px rgba(0,0,0,.05)}.react-colorful__alpha,.react-colorful__hue{position:relative;height:24px}.react-colorful__hue{background:linear-gradient(90deg,red 0,#ff0 17%,#0f0 33%,#0ff 50%,#00f 67%,#f0f 83%,red)}.react-colorful__last-control{border-radius:0 0 8px 8px}.react-colorful__interactive{position:absolute;left:0;top:0;right:0;bottom:0;border-radius:inherit;outline:none;touch-action:none}.react-colorful__pointer{position:absolute;z-index:1;box-sizing:border-box;width:28px;height:28px;transform:translate(-50%,-50%);background-color:#fff;border:2px solid #fff;border-radius:50%;box-shadow:0 2px 4px rgba(0,0,0,.2)}.react-colorful__interactive:focus .react-colorful__pointer{transform:translate(-50%,-50%) scale(1.1)}.react-colorful__alpha,.react-colorful__alpha-pointer{background-color:#fff;background-image:url(\'data:image/svg+xml;charset=utf-8,<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill-opacity=".05"><path d="M8 0h8v8H8zM0 8h8v8H0z"/></svg>\')}.react-colorful__saturation-pointer{z-index:3}.react-colorful__hue-pointer{z-index:2}',Qs.set(e,i);var r=Ks||n.nc;r&&i.setAttribute("nonce",r),e.head.appendChild(i)}}),[])},el=function(t){var e=t.className,n=t.colorModel,i=t.color,o=void 0===i?n.defaultColor:i,a=t.onChange,s=Ls(t,["className","colorModel","color","onChange"]),l=(0,r.useRef)(null);tl(l);var h=$s(n,o,a),c=h[0],u=h[1],d=zs(["react-colorful",e]);return r.createElement("div",ks({},s,{ref:l,className:d}),r.createElement(Ys,{hsva:c,onChange:u}),r.createElement(Xs,{hue:c.h,onChange:u,className:"react-colorful__last-control"}))},nl=function(t){var e=t.className,n=t.hsva,i=t.onChange,o={backgroundImage:"linear-gradient(90deg, "+Ws(Object.assign({},n,{a:0}))+", "+Ws(Object.assign({},n,{a:1}))+")"},a=zs(["react-colorful__alpha",e]),s=Vs(100*n.a);return r.createElement("div",{className:a},r.createElement("div",{className:"react-colorful__alpha-gradient",style:o}),r.createElement(Bs,{onMove:function(t){i({a:t.left})},onKey:function(t){i({a:Ps(n.a+t.left)})},"aria-label":"Alpha","aria-valuetext":s+"%","aria-valuenow":s,"aria-valuemin":"0","aria-valuemax":"100"},r.createElement(Gs,{className:"react-colorful__alpha-pointer",left:n.a,color:Ws(n)})))},il=function(t){var e=t.className,n=t.colorModel,i=t.color,o=void 0===i?n.defaultColor:i,a=t.onChange,s=Ls(t,["className","colorModel","color","onChange"]),l=(0,r.useRef)(null);tl(l);var h=$s(n,o,a),c=h[0],u=h[1],d=zs(["react-colorful",e]);return r.createElement("div",ks({},s,{ref:l,className:d}),r.createElement(Ys,{hsva:c,onChange:u}),r.createElement(Xs,{hue:c.h,onChange:u}),r.createElement(nl,{hsva:c,onChange:u,className:"react-colorful__last-control"}))},rl={defaultColor:{r:0,g:0,b:0,a:1},toHsva:qs,fromHsva:Us,equal:Zs},ol=function(t){return r.createElement(il,ks({},t,{colorModel:rl}))},al={defaultColor:{r:0,g:0,b:0},toHsva:function(t){return qs({r:t.r,g:t.g,b:t.b,a:1})},fromHsva:function(t){return{r:(e=Us(t)).r,g:e.g,b:e.b};var e},equal:Zs},sl=function(t){return r.createElement(el,ks({},t,{colorModel:al}))},ll=n(3108),hl=n.n(ll),cl=n(6636),ul=new Map([["aac","audio/aac"],["abw","application/x-abiword"],["arc","application/x-freearc"],["avif","image/avif"],["avi","video/x-msvideo"],["azw","application/vnd.amazon.ebook"],["bin","application/octet-stream"],["bmp","image/bmp"],["bz","application/x-bzip"],["bz2","application/x-bzip2"],["cda","application/x-cdf"],["csh","application/x-csh"],["css","text/css"],["csv","text/csv"],["doc","application/msword"],["docx","application/vnd.openxmlformats-officedocument.wordprocessingml.document"],["eot","application/vnd.ms-fontobject"],["epub","application/epub+zip"],["gz","application/gzip"],["gif","image/gif"],["heic","image/heic"],["heif","image/heif"],["htm","text/html"],["html","text/html"],["ico","image/vnd.microsoft.icon"],["ics","text/calendar"],["jar","application/java-archive"],["jpeg","image/jpeg"],["jpg","image/jpeg"],["js","text/javascript"],["json","application/json"],["jsonld","application/ld+json"],["mid","audio/midi"],["midi","audio/midi"],["mjs","text/javascript"],["mp3","audio/mpeg"],["mp4","video/mp4"],["mpeg","video/mpeg"],["mpkg","application/vnd.apple.installer+xml"],["odp","application/vnd.oasis.opendocument.presentation"],["ods","application/vnd.oasis.opendocument.spreadsheet"],["odt","application/vnd.oasis.opendocument.text"],["oga","audio/ogg"],["ogv","video/ogg"],["ogx","application/ogg"],["opus","audio/opus"],["otf","font/otf"],["png","image/png"],["pdf","application/pdf"],["php","application/x-httpd-php"],["ppt","application/vnd.ms-powerpoint"],["pptx","application/vnd.openxmlformats-officedocument.presentationml.presentation"],["rar","application/vnd.rar"],["rtf","application/rtf"],["sh","application/x-sh"],["svg","image/svg+xml"],["swf","application/x-shockwave-flash"],["tar","application/x-tar"],["tif","image/tiff"],["tiff","image/tiff"],["ts","video/mp2t"],["ttf","font/ttf"],["txt","text/plain"],["vsd","application/vnd.visio"],["wav","audio/wav"],["weba","audio/webm"],["webm","video/webm"],["webp","image/webp"],["woff","font/woff"],["woff2","font/woff2"],["xhtml","application/xhtml+xml"],["xls","application/vnd.ms-excel"],["xlsx","application/vnd.openxmlformats-officedocument.spreadsheetml.sheet"],["xml","application/xml"],["xul","application/vnd.mozilla.xul+xml"],["zip","application/zip"],["7z","application/x-7z-compressed"],["mkv","video/x-matroska"],["mov","video/quicktime"],["msg","application/vnd.ms-outlook"]]);function dl(t,e){var n=function(t){var e=t.name;if(e&&-1!==e.lastIndexOf(".")&&!t.type){var n=e.split(".").pop().toLowerCase(),i=ul.get(n);i&&Object.defineProperty(t,"type",{value:i,writable:!1,configurable:!1,enumerable:!0})}return t}(t);if("string"!=typeof n.path){var i=t.webkitRelativePath;Object.defineProperty(n,"path",{value:"string"==typeof e?e:"string"==typeof i&&i.length>0?i:t.name,writable:!1,configurable:!1,enumerable:!0})}return n}var pl=[".DS_Store","Thumbs.db"];function fl(t){return"object"==typeof t&&null!==t}function gl(t){return _l(t.target.files).map((function(t){return dl(t)}))}function ml(t){return(0,cl.__awaiter)(this,void 0,void 0,(function(){return(0,cl.__generator)(this,(function(e){switch(e.label){case 0:return[4,Promise.all(t.map((function(t){return t.getFile()})))];case 1:return[2,e.sent().map((function(t){return dl(t)}))]}}))}))}function vl(t,e){return(0,cl.__awaiter)(this,void 0,void 0,(function(){var n;return(0,cl.__generator)(this,(function(i){switch(i.label){case 0:return null===t?[2,[]]:t.items?(n=_l(t.items).filter((function(t){return"file"===t.kind})),"drop"!==e?[2,n]:[4,Promise.all(n.map(xl))]):[3,2];case 1:return[2,yl(bl(i.sent()))];case 2:return[2,yl(_l(t.files).map((function(t){return dl(t)})))]}}))}))}function yl(t){return t.filter((function(t){return-1===pl.indexOf(t.name)}))}function _l(t){if(null===t)return[];for(var e=[],n=0;n<t.length;n++){var i=t[n];e.push(i)}return e}function xl(t){if("function"!=typeof t.webkitGetAsEntry)return wl(t);var e=t.webkitGetAsEntry();return e&&e.isDirectory?Tl(e):wl(t)}function bl(t){return t.reduce((function(t,e){return(0,cl.__spread)(t,Array.isArray(e)?bl(e):[e])}),[])}function wl(t){var e=t.getAsFile();if(!e)return Promise.reject(t+" is not a File");var n=dl(e);return Promise.resolve(n)}function Sl(t){return(0,cl.__awaiter)(this,void 0,void 0,(function(){return(0,cl.__generator)(this,(function(e){return[2,t.isDirectory?Tl(t):Ml(t)]}))}))}function Tl(t){var e=t.createReader();return new Promise((function(t,n){var i=[];!function r(){var o=this;e.readEntries((function(e){return(0,cl.__awaiter)(o,void 0,void 0,(function(){var o,a,s;return(0,cl.__generator)(this,(function(l){switch(l.label){case 0:if(e.length)return[3,5];l.label=1;case 1:return l.trys.push([1,3,,4]),[4,Promise.all(i)];case 2:return o=l.sent(),t(o),[3,4];case 3:return a=l.sent(),n(a),[3,4];case 4:return[3,6];case 5:s=Promise.all(e.map(Sl)),i.push(s),r(),l.label=6;case 6:return[2]}}))}))}),(function(t){n(t)}))}()}))}function Ml(t){return(0,cl.__awaiter)(this,void 0,void 0,(function(){return(0,cl.__generator)(this,(function(e){return[2,new Promise((function(e,n){t.file((function(n){var i=dl(n,t.fullPath);e(i)}),(function(t){n(t)}))}))]}))}))}var Al=n(8275);function Cl(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);e&&(i=i.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,i)}return n}function Il(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?Cl(Object(n),!0).forEach((function(e){El(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):Cl(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function El(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function kl(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var n=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null==n)return;var i,r,o=[],a=!0,s=!1;try{for(n=n.call(t);!(a=(i=n.next()).done)&&(o.push(i.value),!e||o.length!==e);a=!0);}catch(l){s=!0,r=l}finally{try{a||null==n.return||n.return()}finally{if(s)throw r}}return o}(t,e)||function(t,e){if(!t)return;if("string"==typeof t)return Ll(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);"Object"===n&&t.constructor&&(n=t.constructor.name);if("Map"===n||"Set"===n)return Array.from(t);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Ll(t,e)}(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Ll(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,i=new Array(e);n<e;n++)i[n]=t[n];return i}var Dl="file-invalid-type",Pl="file-too-large",Rl="file-too-small",Ol="too-many-files",Nl=function(t){t=Array.isArray(t)&&1===t.length?t[0]:t;var e=Array.isArray(t)?"one of ".concat(t.join(", ")):t;return{code:Dl,message:"File type must be ".concat(e)}},Fl=function(t){return{code:Pl,message:"File is larger than ".concat(t," ").concat(1===t?"byte":"bytes")}},Bl=function(t){return{code:Rl,message:"File is smaller than ".concat(t," ").concat(1===t?"byte":"bytes")}},zl={code:Ol,message:"Too many files"};function Gl(t,e){var n="application/x-moz-file"===t.type||(0,Al.A)(t,e);return[n,n?null:Nl(e)]}function Vl(t,e,n){if(jl(t.size))if(jl(e)&&jl(n)){if(t.size>n)return[!1,Fl(n)];if(t.size<e)return[!1,Bl(e)]}else{if(jl(e)&&t.size<e)return[!1,Bl(e)];if(jl(n)&&t.size>n)return[!1,Fl(n)]}return[!0,null]}function jl(t){return null!=t}function Hl(t){return"function"==typeof t.isPropagationStopped?t.isPropagationStopped():void 0!==t.cancelBubble&&t.cancelBubble}function Wl(t){return t.dataTransfer?Array.prototype.some.call(t.dataTransfer.types,(function(t){return"Files"===t||"application/x-moz-file"===t})):!!t.target&&!!t.target.files}function Ul(t){t.preventDefault()}function ql(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];return function(t){for(var n=arguments.length,i=new Array(n>1?n-1:0),r=1;r<n;r++)i[r-1]=arguments[r];return e.some((function(e){return!Hl(t)&&e&&e.apply(void 0,[t].concat(i)),Hl(t)}))}}function Xl(t){return t="string"==typeof t?t.split(","):t,[{description:"everything",accept:Array.isArray(t)?t.filter((function(t){return"audio/*"===t||"video/*"===t||"image/*"===t||"text/*"===t||/\w+\/[-+.\w]+/g.test(t)})).reduce((function(t,e){return Il(Il({},t),{},El({},e,[]))}),{}):{}}]}var Yl=["children"],Zl=["open"],$l=["refKey","role","onKeyDown","onFocus","onBlur","onClick","onDragEnter","onDragOver","onDragLeave","onDrop"],Kl=["refKey","onChange","onClick"];function Jl(t){return function(t){if(Array.isArray(t))return eh(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||th(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Ql(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var n=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null==n)return;var i,r,o=[],a=!0,s=!1;try{for(n=n.call(t);!(a=(i=n.next()).done)&&(o.push(i.value),!e||o.length!==e);a=!0);}catch(l){s=!0,r=l}finally{try{a||null==n.return||n.return()}finally{if(s)throw r}}return o}(t,e)||th(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function th(t,e){if(t){if("string"==typeof t)return eh(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?eh(t,e):void 0}}function eh(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,i=new Array(e);n<e;n++)i[n]=t[n];return i}function nh(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);e&&(i=i.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,i)}return n}function ih(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?nh(Object(n),!0).forEach((function(e){rh(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):nh(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function rh(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function oh(t,e){if(null==t)return{};var n,i,r=function(t,e){if(null==t)return{};var n,i,r={},o=Object.keys(t);for(i=0;i<o.length;i++)n=o[i],e.indexOf(n)>=0||(r[n]=t[n]);return r}(t,e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);for(i=0;i<o.length;i++)n=o[i],e.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(t,n)&&(r[n]=t[n])}return r}var ah=(0,r.forwardRef)((function(t,e){var n=t.children,i=hh(oh(t,Yl)),o=i.open,a=oh(i,Zl);return(0,r.useImperativeHandle)(e,(function(){return{open:o}}),[o]),r.createElement(r.Fragment,null,n(ih(ih({},a),{},{open:o})))}));ah.displayName="Dropzone";var sh={disabled:!1,getFilesFromEvent:function(t){return(0,cl.__awaiter)(this,void 0,void 0,(function(){return(0,cl.__generator)(this,(function(e){return fl(t)&&fl(t.dataTransfer)?[2,vl(t.dataTransfer,t.type)]:function(t){return fl(t)&&fl(t.target)}(t)?[2,gl(t)]:Array.isArray(t)&&t.every((function(t){return"getFile"in t&&"function"==typeof t.getFile}))?[2,ml(t)]:[2,[]]}))}))},maxSize:1/0,minSize:0,multiple:!0,maxFiles:0,preventDropOnDocument:!0,noClick:!1,noKeyboard:!1,noDrag:!1,noDragEventsBubbling:!1,validator:null,useFsAccessApi:!0};ah.defaultProps=sh,ah.propTypes={children:hl().func,accept:hl().oneOfType([hl().string,hl().arrayOf(hl().string)]),multiple:hl().bool,preventDropOnDocument:hl().bool,noClick:hl().bool,noKeyboard:hl().bool,noDrag:hl().bool,noDragEventsBubbling:hl().bool,minSize:hl().number,maxSize:hl().number,maxFiles:hl().number,disabled:hl().bool,getFilesFromEvent:hl().func,onFileDialogCancel:hl().func,onFileDialogOpen:hl().func,useFsAccessApi:hl().bool,onDragEnter:hl().func,onDragLeave:hl().func,onDragOver:hl().func,onDrop:hl().func,onDropAccepted:hl().func,onDropRejected:hl().func,validator:hl().func};var lh={isFocused:!1,isFileDialogActive:!1,isDragActive:!1,isDragAccept:!1,isDragReject:!1,draggedFiles:[],acceptedFiles:[],fileRejections:[]};function hh(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=ih(ih({},sh),t),n=e.accept,i=e.disabled,o=e.getFilesFromEvent,a=e.maxSize,s=e.minSize,l=e.multiple,h=e.maxFiles,c=e.onDragEnter,u=e.onDragLeave,d=e.onDragOver,p=e.onDrop,f=e.onDropAccepted,g=e.onDropRejected,m=e.onFileDialogCancel,v=e.onFileDialogOpen,y=e.useFsAccessApi,_=e.preventDropOnDocument,x=e.noClick,b=e.noKeyboard,w=e.noDrag,S=e.noDragEventsBubbling,T=e.validator,M=(0,r.useMemo)((function(){return"function"==typeof v?v:uh}),[v]),A=(0,r.useMemo)((function(){return"function"==typeof m?m:uh}),[m]),C=(0,r.useRef)(null),I=(0,r.useRef)(null),E=Ql((0,r.useReducer)(ch,lh),2),k=E[0],L=E[1],D=k.isFocused,P=k.isFileDialogActive,R=k.draggedFiles,O=(0,r.useRef)("undefined"!=typeof window&&window.isSecureContext&&y&&"showOpenFilePicker"in window),N=function(){!O.current&&P&&setTimeout((function(){I.current&&(I.current.files.length||(L({type:"closeDialog"}),A()))}),300)};(0,r.useEffect)((function(){return window.addEventListener("focus",N,!1),function(){window.removeEventListener("focus",N,!1)}}),[I,P,A,O]);var F=(0,r.useRef)([]),B=function(t){C.current&&C.current.contains(t.target)||(t.preventDefault(),F.current=[])};(0,r.useEffect)((function(){return _&&(document.addEventListener("dragover",Ul,!1),document.addEventListener("drop",B,!1)),function(){_&&(document.removeEventListener("dragover",Ul),document.removeEventListener("drop",B))}}),[C,_]);var z=(0,r.useCallback)((function(t){t.preventDefault(),t.persist(),J(t),F.current=[].concat(Jl(F.current),[t.target]),Wl(t)&&Promise.resolve(o(t)).then((function(e){Hl(t)&&!S||(L({draggedFiles:e,isDragActive:!0,type:"setDraggedFiles"}),c&&c(t))}))}),[o,c,S]),G=(0,r.useCallback)((function(t){t.preventDefault(),t.persist(),J(t);var e=Wl(t);if(e&&t.dataTransfer)try{t.dataTransfer.dropEffect="copy"}catch(n){}return e&&d&&d(t),!1}),[d,S]),V=(0,r.useCallback)((function(t){t.preventDefault(),t.persist(),J(t);var e=F.current.filter((function(t){return C.current&&C.current.contains(t)})),n=e.indexOf(t.target);-1!==n&&e.splice(n,1),F.current=e,e.length>0||(L({isDragActive:!1,type:"setDraggedFiles",draggedFiles:[]}),Wl(t)&&u&&u(t))}),[C,u,S]),j=(0,r.useCallback)((function(t,e){var i=[],r=[];t.forEach((function(t){var e=Ql(Gl(t,n),2),o=e[0],l=e[1],h=Ql(Vl(t,s,a),2),c=h[0],u=h[1],d=T?T(t):null;if(o&&c&&!d)i.push(t);else{var p=[l,u];d&&(p=p.concat(d)),r.push({file:t,errors:p.filter((function(t){return t}))})}})),(!l&&i.length>1||l&&h>=1&&i.length>h)&&(i.forEach((function(t){r.push({file:t,errors:[zl]})})),i.splice(0)),L({acceptedFiles:i,fileRejections:r,type:"setFiles"}),p&&p(i,r,e),r.length>0&&g&&g(r,e),i.length>0&&f&&f(i,e)}),[L,l,n,s,a,h,p,f,g,T]),H=(0,r.useCallback)((function(t){t.preventDefault(),t.persist(),J(t),F.current=[],Wl(t)&&Promise.resolve(o(t)).then((function(e){Hl(t)&&!S||j(e,t)})),L({type:"reset"})}),[o,j,S]),W=(0,r.useCallback)((function(){if(O.current){L({type:"openDialog"}),M();var t={multiple:l,types:Xl(n)};window.showOpenFilePicker(t).then((function(t){return o(t)})).then((function(t){j(t,null),L({type:"closeDialog"})})).catch((function(t){!function(t){return t instanceof DOMException&&("AbortError"===t.name||t.code===t.ABORT_ERR)}(t)?function(t){return t instanceof DOMException&&("SecurityError"===t.name||t.code===t.SECURITY_ERR)}(t)&&(O.current=!1,I.current&&(I.current.value=null,I.current.click())):(A(t),L({type:"closeDialog"}))}))}else I.current&&(L({type:"openDialog"}),M(),I.current.value=null,I.current.click())}),[L,M,A,y,j,n,l]),U=(0,r.useCallback)((function(t){C.current&&C.current.isEqualNode(t.target)&&(" "!==t.key&&"Enter"!==t.key&&32!==t.keyCode&&13!==t.keyCode||(t.preventDefault(),W()))}),[C,W]),q=(0,r.useCallback)((function(){L({type:"focus"})}),[]),X=(0,r.useCallback)((function(){L({type:"blur"})}),[]),Y=(0,r.useCallback)((function(){x||(!function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:window.navigator.userAgent;return function(t){return-1!==t.indexOf("MSIE")||-1!==t.indexOf("Trident/")}(t)||function(t){return-1!==t.indexOf("Edge/")}(t)}()?W():setTimeout(W,0))}),[x,W]),Z=function(t){return i?null:t},$=function(t){return b?null:Z(t)},K=function(t){return w?null:Z(t)},J=function(t){S&&t.stopPropagation()},Q=(0,r.useMemo)((function(){return function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=t.refKey,n=void 0===e?"ref":e,r=t.role,o=t.onKeyDown,a=t.onFocus,s=t.onBlur,l=t.onClick,h=t.onDragEnter,c=t.onDragOver,u=t.onDragLeave,d=t.onDrop,p=oh(t,$l);return ih(ih(rh({onKeyDown:$(ql(o,U)),onFocus:$(ql(a,q)),onBlur:$(ql(s,X)),onClick:Z(ql(l,Y)),onDragEnter:K(ql(h,z)),onDragOver:K(ql(c,G)),onDragLeave:K(ql(u,V)),onDrop:K(ql(d,H)),role:"string"==typeof r&&""!==r?r:"button"},n,C),i||b?{}:{tabIndex:0}),p)}}),[C,U,q,X,Y,z,G,V,H,b,w,i]),tt=(0,r.useCallback)((function(t){t.stopPropagation()}),[]),et=(0,r.useMemo)((function(){return function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=t.refKey,i=void 0===e?"ref":e,r=t.onChange,o=t.onClick,a=oh(t,Kl);return ih(ih({},rh({accept:n,multiple:l,type:"file",style:{display:"none"},onChange:Z(ql(r,H)),onClick:Z(ql(o,tt)),tabIndex:-1},i,I)),a)}}),[I,n,l,H,i]),nt=R.length,it=nt>0&&function(t){var e=t.files,n=t.accept,i=t.minSize,r=t.maxSize,o=t.multiple,a=t.maxFiles;return!(!o&&e.length>1||o&&a>=1&&e.length>a)&&e.every((function(t){var e=kl(Gl(t,n),1)[0],o=kl(Vl(t,i,r),1)[0];return e&&o}))}({files:R,accept:n,minSize:s,maxSize:a,multiple:l,maxFiles:h}),rt=nt>0&&!it;return ih(ih({},k),{},{isDragAccept:it,isDragReject:rt,isFocused:D&&!i,getRootProps:Q,getInputProps:et,rootRef:C,inputRef:I,open:Z(W)})}function ch(t,e){switch(e.type){case"focus":return ih(ih({},t),{},{isFocused:!0});case"blur":return ih(ih({},t),{},{isFocused:!1});case"openDialog":return ih(ih({},lh),{},{isFileDialogActive:!0});case"closeDialog":return ih(ih({},t),{},{isFileDialogActive:!1});case"setDraggedFiles":var n=e.isDragActive,i=e.draggedFiles;return ih(ih({},t),{},{draggedFiles:i,isDragActive:n});case"setFiles":return ih(ih({},t),{},{acceptedFiles:e.acceptedFiles,fileRejections:e.fileRejections});case"reset":return ih({},lh);default:return t}}function uh(){}function dh(t){let e;const n=new Set,i=(t,i)=>{const r="function"==typeof t?t(e):t;if(r!==e){const t=e;e=i?r:Object.assign({},e,r),n.forEach((n=>n(e,t)))}},r=()=>e,o={setState:i,getState:r,subscribe:(t,i,o)=>i||o?((t,i=r,o=Object.is)=>{console.warn("[DEPRECATED] Please use `subscribeWithSelector` middleware");let a=i(e);function s(){const n=i(e);if(!o(a,n)){const e=a;t(a=n,e)}}return n.add(s),()=>n.delete(s)})(t,i,o):(n.add(t),()=>n.delete(t)),destroy:()=>n.clear()};return e=t(i,r,o),o}const ph="undefined"==typeof window||!window.navigator||/ServerSideRendering|^Deno\//.test(window.navigator.userAgent)?r.useEffect:r.useLayoutEffect;Object.defineProperty,Object.getOwnPropertySymbols,Object.prototype.hasOwnProperty,Object.prototype.propertyIsEnumerable;Object.defineProperty,Object.getOwnPropertySymbols,Object.prototype.hasOwnProperty,Object.prototype.propertyIsEnumerable;var fh=n(1876),gh=n.n(fh);const mh=(...t)=>t.filter(Boolean).join(".");function vh(t,e){return(0,r.useMemo)(t,function(t,e){const n=(0,r.useRef)();return(e?_:x)(t,n.current)||(n.current=t),n.current}(e,!0))}function yh(t,e,n){const i=t.useStore((t=>function(t,e){return Object.entries((n=t,i=e,i.reduce(((t,e)=>(n&&n.hasOwnProperty(e)&&(t[e]=n[e]),t)),{}))).reduce(((t,[,{value:e,disabled:n,key:i}])=>(t[i]=n?void 0:e,t)),{});var n,i}(Vr(Vr({},n),t.data),e)),x);return i}function _h(t=3){const e=(0,r.useRef)(null),n=(0,r.useRef)(null),[i,o]=(0,r.useState)(!1),a=(0,r.useCallback)((()=>o(!0)),[]),s=(0,r.useCallback)((()=>o(!1)),[]);return(0,r.useLayoutEffect)((()=>{if(i){const{bottom:i,top:r,left:o}=e.current.getBoundingClientRect(),{height:a}=n.current.getBoundingClientRect(),s=i+a>window.innerHeight-40?"up":"down";n.current.style.position="fixed",n.current.style.zIndex="10000",n.current.style.left=o+"px","down"===s?n.current.style.top=i+t+"px":n.current.style.bottom=window.innerHeight-r+t+"px"}}),[t,i]),{popinRef:e,wrapperRef:n,shown:i,show:a,hide:s}}!function(t){t.forEach((function(t){Es.indexOf(t)<0&&(t(Cs,bs),Es.push(t))}))}([function(t,e){var n={white:"#ffffff",bisque:"#ffe4c4",blue:"#0000ff",cadetblue:"#5f9ea0",chartreuse:"#7fff00",chocolate:"#d2691e",coral:"#ff7f50",antiquewhite:"#faebd7",aqua:"#00ffff",azure:"#f0ffff",whitesmoke:"#f5f5f5",papayawhip:"#ffefd5",plum:"#dda0dd",blanchedalmond:"#ffebcd",black:"#000000",gold:"#ffd700",goldenrod:"#daa520",gainsboro:"#dcdcdc",cornsilk:"#fff8dc",cornflowerblue:"#6495ed",burlywood:"#deb887",aquamarine:"#7fffd4",beige:"#f5f5dc",crimson:"#dc143c",cyan:"#00ffff",darkblue:"#00008b",darkcyan:"#008b8b",darkgoldenrod:"#b8860b",darkkhaki:"#bdb76b",darkgray:"#a9a9a9",darkgreen:"#006400",darkgrey:"#a9a9a9",peachpuff:"#ffdab9",darkmagenta:"#8b008b",darkred:"#8b0000",darkorchid:"#9932cc",darkorange:"#ff8c00",darkslateblue:"#483d8b",gray:"#808080",darkslategray:"#2f4f4f",darkslategrey:"#2f4f4f",deeppink:"#ff1493",deepskyblue:"#00bfff",wheat:"#f5deb3",firebrick:"#b22222",floralwhite:"#fffaf0",ghostwhite:"#f8f8ff",darkviolet:"#9400d3",magenta:"#ff00ff",green:"#008000",dodgerblue:"#1e90ff",grey:"#808080",honeydew:"#f0fff0",hotpink:"#ff69b4",blueviolet:"#8a2be2",forestgreen:"#228b22",lawngreen:"#7cfc00",indianred:"#cd5c5c",indigo:"#4b0082",fuchsia:"#ff00ff",brown:"#a52a2a",maroon:"#800000",mediumblue:"#0000cd",lightcoral:"#f08080",darkturquoise:"#00ced1",lightcyan:"#e0ffff",ivory:"#fffff0",lightyellow:"#ffffe0",lightsalmon:"#ffa07a",lightseagreen:"#20b2aa",linen:"#faf0e6",mediumaquamarine:"#66cdaa",lemonchiffon:"#fffacd",lime:"#00ff00",khaki:"#f0e68c",mediumseagreen:"#3cb371",limegreen:"#32cd32",mediumspringgreen:"#00fa9a",lightskyblue:"#87cefa",lightblue:"#add8e6",midnightblue:"#191970",lightpink:"#ffb6c1",mistyrose:"#ffe4e1",moccasin:"#ffe4b5",mintcream:"#f5fffa",lightslategray:"#778899",lightslategrey:"#778899",navajowhite:"#ffdead",navy:"#000080",mediumvioletred:"#c71585",powderblue:"#b0e0e6",palegoldenrod:"#eee8aa",oldlace:"#fdf5e6",paleturquoise:"#afeeee",mediumturquoise:"#48d1cc",mediumorchid:"#ba55d3",rebeccapurple:"#663399",lightsteelblue:"#b0c4de",mediumslateblue:"#7b68ee",thistle:"#d8bfd8",tan:"#d2b48c",orchid:"#da70d6",mediumpurple:"#9370db",purple:"#800080",pink:"#ffc0cb",skyblue:"#87ceeb",springgreen:"#00ff7f",palegreen:"#98fb98",red:"#ff0000",yellow:"#ffff00",slateblue:"#6a5acd",lavenderblush:"#fff0f5",peru:"#cd853f",palevioletred:"#db7093",violet:"#ee82ee",teal:"#008080",slategray:"#708090",slategrey:"#708090",aliceblue:"#f0f8ff",darkseagreen:"#8fbc8f",darkolivegreen:"#556b2f",greenyellow:"#adff2f",seagreen:"#2e8b57",seashell:"#fff5ee",tomato:"#ff6347",silver:"#c0c0c0",sienna:"#a0522d",lavender:"#e6e6fa",lightgreen:"#90ee90",orange:"#ffa500",orangered:"#ff4500",steelblue:"#4682b4",royalblue:"#4169e1",turquoise:"#40e0d0",yellowgreen:"#9acd32",salmon:"#fa8072",saddlebrown:"#8b4513",sandybrown:"#f4a460",rosybrown:"#bc8f8f",darksalmon:"#e9967a",lightgoldenrodyellow:"#fafad2",snow:"#fffafa",lightgrey:"#d3d3d3",lightgray:"#d3d3d3",dimgray:"#696969",dimgrey:"#696969",olivedrab:"#6b8e23",olive:"#808000"},i={};for(var r in n)i[n[r]]=r;var o={};t.prototype.toName=function(e){if(!(this.rgba.a||this.rgba.r||this.rgba.g||this.rgba.b))return"transparent";var r,a,s=i[this.toHex()];if(s)return s;if(null==e?void 0:e.closest){var l=this.toRgb(),h=1/0,c="black";if(!o.length)for(var u in n)o[u]=new t(n[u]).toRgb();for(var d in n){var p=(r=l,a=o[d],Math.pow(r.r-a.r,2)+Math.pow(r.g-a.g,2)+Math.pow(r.b-a.b,2));p<h&&(h=p,c=d)}return c}},e.string.push([function(e){var i=e.toLowerCase(),r="transparent"===i?"#0000":n[i];return r?new t(r).toRgb():null},"name"])}]);const xh={rgb:"toRgb",hsl:"toHsl",hsv:"toHsv",hex:"toHex"};G.extend({color:()=>t=>Is(t).isValid()});function bh(t,{format:e,hasAlpha:n,isString:i}){const r=t[xh[e]+(i&&"hex"!==e?"String":"")]();return"object"!=typeof r||n?r:function(t,e){const n=Vr({},t);return e.forEach((e=>e in t&&delete n[e])),n}(r,["a"])}const wh=(t,e)=>{const n=Is(t);if(!n.isValid())throw Error("Invalid color");return bh(n,e)};var Sh=Object.freeze({__proto__:null,schema:t=>G().color().test(t),sanitize:wh,format:(t,e)=>bh(Is(t),Vr(Vr({},e),{},{isString:!0,format:"hex"})),normalize:({value:t})=>{const e=function(t){return Ss(t)[1]}(t),n={format:"name"===e?"hex":e,hasAlpha:"object"==typeof t?"a"in t:"hex"===e&&8===t.length||/^(rgba)|(hsla)|(hsva)/.test(t),isString:"string"==typeof t};return{value:wh(t,n),settings:n}}});const Th=Lo("div",{position:"relative",boxSizing:"border-box",borderRadius:"$sm",overflow:"hidden",cursor:"pointer",height:"$rowHeight",width:"$rowHeight",backgroundColor:"#fff",backgroundImage:'url(\'data:image/svg+xml;charset=utf-8,<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill-opacity=".05"><path d="M8 0h8v8H8zM0 8h8v8H0z"/></svg>\')',$inputStyle:"",$hover:"",zIndex:1,variants:{active:{true:{$inputStyle:"$accent1"}}},"&::before":{content:'""',position:"absolute",top:0,bottom:0,right:0,left:0,backgroundColor:"currentColor",zIndex:1}}),Mh=Lo("div",{position:"relative",display:"grid",gridTemplateColumns:"$sizes$rowHeight auto",columnGap:"$colGap",alignItems:"center"}),Ah=Lo("div",{width:"$colorPickerWidth",height:"$colorPickerHeight",".react-colorful":{width:"100%",height:"100%",boxShadow:"$level2",cursor:"crosshair"},".react-colorful__saturation":{borderRadius:"$sm $sm 0 0"},".react-colorful__alpha, .react-colorful__hue":{height:10},".react-colorful__last-control":{borderRadius:"0 0 $sm $sm"},".react-colorful__pointer":{height:12,width:12}});function Ch(t,e){return"rgb"!==e?Is(t).toRgb():t}function Ih({value:t,displayValue:e,settings:n,onUpdate:i}){const{emitOnEditStart:o,emitOnEditEnd:a}=wo(),{format:s,hasAlpha:l}=n,{popinRef:h,wrapperRef:c,shown:u,show:d,hide:p}=_h(),f=(0,r.useRef)(0),[g,m]=(0,r.useState)((()=>Ch(t,s))),v=l?ol:sl,y=()=>{p(),a(),window.clearTimeout(f.current)};return(0,r.useEffect)((()=>()=>window.clearTimeout(f.current)),[]),r.createElement(r.Fragment,null,r.createElement(Th,{ref:h,active:u,onClick:()=>(m(Ch(t,s)),d(),void o()),style:{color:e}}),u&&r.createElement(oa,null,r.createElement(na,{onPointerUp:y}),r.createElement(Ah,{ref:c,onMouseEnter:()=>window.clearTimeout(f.current),onMouseLeave:t=>0===t.buttons&&void(f.current=window.setTimeout(y,500))},r.createElement(v,{color:g,onChange:i}))))}var Eh=Vr({component:function(){const{value:t,displayValue:e,label:n,onChange:i,onUpdate:o,settings:a}=wo();return r.createElement(fa,{input:!0},r.createElement(ha,null,n),r.createElement(Mh,null,r.createElement(Ih,{value:t,displayValue:e,onChange:i,onUpdate:o,settings:a}),r.createElement(Wo,{value:e,onChange:i,onUpdate:o})))}},Sh);var kh=Vr({component:function(){const{label:t,displayValue:e,onUpdate:n,settings:i}=wo();return r.createElement(fa,{input:!0},r.createElement(ha,null,t),r.createElement(Za,{value:e,settings:i,onUpdate:n}))}},es(["x","y","z"]));const Lh=Lo("div",{$flexCenter:"",position:"relative",backgroundColor:"$elevation3",borderRadius:"$sm",cursor:"pointer",height:"$rowHeight",width:"$rowHeight",touchAction:"none",$draggable:"",$hover:"","&:active":{cursor:"none"},"&::after":{content:'""',backgroundColor:"$accent2",height:4,width:4,borderRadius:2}}),Dh=Lo("div",{$flexCenter:"",width:"$joystickWidth",height:"$joystickHeight",borderRadius:"$sm",boxShadow:"$level2",position:"fixed",zIndex:1e4,overflow:"hidden",$draggable:"",transform:"translate(-50%, -50%)",variants:{isOutOfBounds:{true:{backgroundColor:"$elevation1"},false:{backgroundColor:"$elevation3"}}},"> div":{position:"absolute",$flexCenter:"",borderStyle:"solid",borderWidth:1,borderColor:"$highlight1",backgroundColor:"$elevation3",width:"80%",height:"80%","&::after,&::before":{content:'""',position:"absolute",zindex:10,backgroundColor:"$highlight1"},"&::before":{width:"100%",height:1},"&::after":{height:"100%",width:1}},"> span":{position:"relative",zindex:100,width:10,height:10,backgroundColor:"$accent2",borderRadius:"50%"}});function Ph({value:t,settings:e,onUpdate:n}){const i=(0,r.useRef)(),o=(0,r.useRef)(0),a=(0,r.useRef)(0),s=(0,r.useRef)(1),[l,h]=(0,r.useState)(!1),[c,u]=(0,r.useState)(!1),[d,p]=va(),f=(0,r.useRef)(null),g=(0,r.useRef)(null);(0,r.useLayoutEffect)((()=>{if(l){const{top:t,left:e,width:n,height:i}=f.current.getBoundingClientRect();g.current.style.left=e+n/2+"px",g.current.style.top=t+i/2+"px"}}),[l]);const{keys:[m,v],joystick:y}=e,_="invertY"===y?1:-1,{[m]:{step:x},[v]:{step:b}}=e,w=Fo("sizes","joystickWidth"),S=Fo("sizes","joystickHeight"),T=.8*parseFloat(w)/2,M=.8*parseFloat(S)/2,A=(0,r.useCallback)((()=>{i.current||(u(!0),o.current&&p({x:o.current*T}),a.current&&p({y:a.current*-M}),i.current=window.setInterval((()=>{n((t=>{const e=x*o.current*s.current,n=_*b*a.current*s.current;return Array.isArray(t)?{[m]:t[0]+e,[v]:t[1]+n}:{[m]:t[m]+e,[v]:t[v]+n}}))}),16))}),[T,M,n,p,x,b,m,v,_]),C=(0,r.useCallback)((()=>{window.clearTimeout(i.current),i.current=void 0,u(!1)}),[]);(0,r.useEffect)((()=>{function t(t){s.current=po(t)}return window.addEventListener("keydown",t),window.addEventListener("keyup",t),()=>{window.clearTimeout(i.current),window.removeEventListener("keydown",t),window.removeEventListener("keyup",t)}}),[]);const I=ma((({first:e,active:i,delta:[r,l],movement:[c,u]})=>{e&&h(!0);const d=jr(c,-T,T),f=jr(u,-M,M);o.current=Math.abs(c)>Math.abs(d)?Math.sign(c-d):0,a.current=Math.abs(u)>Math.abs(f)?Math.sign(f-u):0;let g=t[m],y=t[v];i?(o.current||(g+=r*x*s.current,p({x:d})),a.current||(y-=_*l*b*s.current,p({y:f})),o.current||a.current?A():C(),n({[m]:g,[v]:y})):(h(!1),o.current=0,a.current=0,p({x:0,y:0}),C())}));return r.createElement(Lh,xo({ref:f},I()),l&&r.createElement(oa,null,r.createElement(Dh,{ref:g,isOutOfBounds:c},r.createElement("div",null),r.createElement("span",{ref:d}))))}const Rh=Lo("div",{display:"grid",columnGap:"$colGap",variants:{withJoystick:{true:{gridTemplateColumns:"$sizes$rowHeight auto"},false:{gridTemplateColumns:"auto"}}}});const Oh=["joystick"],Nh=es(["x","y"]);var Fh=Vr(Vr({component:function(){const{label:t,displayValue:e,onUpdate:n,settings:i}=wo();return r.createElement(fa,{input:!0},r.createElement(ha,null,t),r.createElement(Rh,{withJoystick:!!i.joystick},i.joystick&&r.createElement(Ph,{value:e,settings:i,onUpdate:n}),r.createElement(Za,{value:e,settings:i,onUpdate:n})))}},Nh),{},{normalize:t=>{let{joystick:e=!0}=t,n=Tr(t,Oh);const{value:i,settings:r}=Nh.normalize(n);return{value:i,settings:Vr(Vr({},r),{},{joystick:e})}}});var Bh=Object.freeze({__proto__:null,sanitize:t=>{if(void 0!==t){if(t instanceof File)try{return URL.createObjectURL(t)}catch(e){return}if("string"==typeof t&&0===t.indexOf("blob:"))return t;throw Error("Invalid image format [undefined | blob |\xa0File].")}},schema:(t,e)=>"object"==typeof e&&"image"in e,normalize:({image:t})=>({value:t})});const zh=Lo("div",{position:"relative",display:"grid",gridTemplateColumns:"$sizes$rowHeight auto 20px",columnGap:"$colGap",alignItems:"center"}),Gh=Lo("div",{$flexCenter:"",overflow:"hidden",height:"$rowHeight",background:"$elevation3",textAlign:"center",color:"inherit",borderRadius:"$sm",outline:"none",userSelect:"none",cursor:"pointer",$inputStyle:"",$hover:"",$focusWithin:"",$active:"$accent1 $elevation1",variants:{isDragAccept:{true:{$inputStyle:"$accent1",backgroundColor:"$elevation1"}}}}),Vh=Lo("div",{boxSizing:"border-box",borderRadius:"$sm",height:"$rowHeight",width:"$rowHeight",$inputStyle:"",backgroundSize:"cover",backgroundPosition:"center",variants:{hasImage:{true:{cursor:"pointer",$hover:"",$active:""}}}}),jh=Lo("div",{$flexCenter:"",width:"$imagePreviewWidth",height:"$imagePreviewHeight",borderRadius:"$sm",boxShadow:"$level2",pointerEvents:"none",$inputStyle:"",backgroundSize:"cover",backgroundPosition:"center"}),Hh=Lo("div",{fontSize:"0.8em",height:"100%",padding:"$rowGap $md"}),Wh=Lo("div",{$flexCenter:"",top:"0",right:"0",marginRight:"$sm",height:"100%",cursor:"pointer",variants:{disabled:{true:{color:"$elevation3",cursor:"default"}}},"&::after,&::before":{content:'""',position:"absolute",height:2,width:10,borderRadius:1,backgroundColor:"currentColor"},"&::after":{transform:"rotate(45deg)"},"&::before":{transform:"rotate(-45deg)"}});var Uh=Vr({component:function(){const{label:t,value:e,onUpdate:n,disabled:i}=wo(),{popinRef:o,wrapperRef:a,shown:s,show:l,hide:h}=_h(),c=(0,r.useCallback)((t=>{t.length&&n(t[0])}),[n]),u=(0,r.useCallback)((t=>{t.stopPropagation(),n(void 0)}),[n]),{getRootProps:d,getInputProps:p,isDragAccept:f}=hh({maxFiles:1,accept:"image/*",onDrop:c,disabled:i});return r.createElement(fa,{input:!0},r.createElement(ha,null,t),r.createElement(zh,null,r.createElement(Vh,{ref:o,hasImage:!!e,onPointerDown:()=>!!e&&l(),onPointerUp:h,style:{backgroundImage:e?`url(${e})`:"none"}}),s&&!!e&&r.createElement(oa,null,r.createElement(na,{onPointerUp:h,style:{cursor:"pointer"}}),r.createElement(jh,{ref:a,style:{backgroundImage:`url(${e})`}})),r.createElement(Gh,d({isDragAccept:f}),r.createElement("input",p()),r.createElement(Hh,null,f?"drop image":"click or drop")),r.createElement(Wh,{onClick:u,disabled:!e})))}},Bh);const qh=G().number(),Xh=t=>({min:t[0],max:t[1]}),Yh=(t,{bounds:[e,n]},i)=>{const r=Array.isArray(t)?Xh(t):t,o={min:i[0],max:i[1]},{min:a,max:s}=Vr(Vr({},o),r);return[jr(Number(a),e,Math.max(e,s)),jr(Number(s),Math.min(n,a),n)]};var Zh=Object.freeze({__proto__:null,schema:(t,e)=>G().array().length(2).every.number().test(t)&&G().schema({min:qh,max:qh}).test(e),format:Xh,sanitize:Yh,normalize:({value:t,min:e,max:n})=>{const i={min:e,max:n},r=[e,n],o=Vr(Vr({},$a(Xh(t),{min:i,max:i})),{},{bounds:r});return{value:Yh(Xh(t),o,t),settings:o}}});const $h=["value","bounds","onDrag"],Kh=["bounds"],Jh=Lo("div",{display:"grid",columnGap:"$colGap",gridTemplateColumns:"auto calc($sizes$numberInputMinWidth * 2 + $space$rowGap)"});function Qh(t){let{value:e,bounds:[n,i],onDrag:o}=t,a=Tr(t,$h);const s=(0,r.useRef)(null),l=(0,r.useRef)(null),h=(0,r.useRef)(null),c=(0,r.useRef)(0),u=Fo("sizes","scrubberWidth"),d=ma((({event:t,first:r,xy:[d],movement:[p],memo:f={}})=>{if(r){const{width:r,left:o}=s.current.getBoundingClientRect();c.current=r-parseFloat(u);const a=(null==t?void 0:t.target)===l.current||(null==t?void 0:t.target)===h.current;f.pos=Xr((d-o)/r,n,i);const p=Math.abs(f.pos-e.min)-Math.abs(f.pos-e.max);f.key=p<0||0===p&&f.pos<=e.min?"min":"max",a&&(f.pos=e[f.key])}const g=f.pos+Xr(p/c.current,0,i-n);return o({[f.key]:Ia(g,a[f.key])}),f})),p=`calc(${qr(e.min,n,i)} * (100% - ${u} - 8px) + 4px)`,f=`calc(${1-qr(e.max,n,i)} * (100% - ${u} - 8px) + 4px)`;return r.createElement(Sa,xo({ref:s},d()),r.createElement(ba,null,r.createElement(Ta,{style:{left:p,right:f}})),r.createElement(wa,{position:"left",ref:l,style:{left:p}}),r.createElement(wa,{position:"right",ref:h,style:{right:f}}))}var tc=Vr({component:function(){const{label:t,displayValue:e,onUpdate:n,settings:i}=wo(),o=Tr(i,Kh);return r.createElement(r.Fragment,null,r.createElement(fa,{input:!0},r.createElement(ha,null,t),r.createElement(Jh,null,r.createElement(Qh,xo({value:e},i,{onDrag:n})),r.createElement(Za,{value:e,settings:o,onUpdate:n,innerLabelTrim:0}))))}},Zh);const ec=["type","value"],nc=["onChange","transient","onEditStart","onEditEnd"],ic=function(){const t=function(t){const e="function"==typeof t?dh(t):t,n=(t=e.getState,n=Object.is)=>{const[,i]=(0,r.useReducer)((t=>t+1),0),o=e.getState(),a=(0,r.useRef)(o),s=(0,r.useRef)(t),l=(0,r.useRef)(n),h=(0,r.useRef)(!1),c=(0,r.useRef)();let u;void 0===c.current&&(c.current=t(o));let d=!1;(a.current!==o||s.current!==t||l.current!==n||h.current)&&(u=t(o),d=!n(c.current,u)),ph((()=>{d&&(c.current=u),a.current=o,s.current=t,l.current=n,h.current=!1}));const p=(0,r.useRef)(o);ph((()=>{const t=()=>{try{const t=e.getState(),n=s.current(t);l.current(c.current,n)||(a.current=t,c.current=n,i())}catch(t){h.current=!0,i()}},n=e.subscribe(t);return e.getState()!==p.current&&t(),n}),[]);const f=d?u:c.current;return(0,r.useDebugValue)(f),f};return Object.assign(n,e),n[Symbol.iterator]=function(){console.warn("[useStore, api] = create() is deprecated and will be removed in v4");const t=[n,e];return{next(){const e=t.length<=0;return{value:t.shift(),done:e}}}},n}((e=()=>({data:{}}),(t,n,i)=>{const r=i.subscribe;return i.subscribe=(t,e,n)=>{let o=t;if(e){const r=(null==n?void 0:n.equalityFn)||Object.is;let a=t(i.getState());o=n=>{const i=t(n);if(!r(a,i)){const t=a;e(a=i,t)}},(null==n?void 0:n.fireImmediately)&&e(a,a)}return r(o)},e(t,n,i)}));var e;const n=(()=>{const t=new Map;return{on:(e,n)=>{let i=t.get(e);void 0===i&&(i=new Set,t.set(e,i)),i.add(n)},off:(e,n)=>{const i=t.get(e);void 0!==i&&(i.delete(n),0===i.size&&t.delete(e))},emit:(e,...n)=>{const i=t.get(e);if(void 0!==i)for(const t of i)t(...n)}}})();this.storeId="_"+Math.random().toString(36).substr(2,9),this.useStore=t;const i={},o=new Set;this.getVisiblePaths=()=>{const t=this.getData(),e=Object.keys(t),n=[];Object.entries(i).forEach((([t,i])=>{i.render&&e.some((e=>0===e.indexOf(t)))&&!i.render(this.get)&&n.push(t+".")}));const r=[];return o.forEach((e=>{e in t&&t[e].__refCount>0&&n.every((t=>-1===e.indexOf(t)))&&(!t[e].render||t[e].render(this.get))&&r.push(e)})),r},this.setOrderedPaths=t=>{t.forEach((t=>o.add(t)))},this.orderPaths=t=>(this.setOrderedPaths(t),t),this.disposePaths=e=>{t.setState((t=>{const n=t.data;return e.forEach((t=>{if(t in n){const e=n[t];e.__refCount--,0===e.__refCount&&e.type in no&&delete n[t]}})),{data:n}}))},this.dispose=()=>{t.setState((()=>({data:{}})))},this.getFolderSettings=t=>i[t]||{},this.getData=()=>t.getState().data,this.addData=(e,n)=>{t.setState((t=>{const i=t.data;return Object.entries(e).forEach((([t,e])=>{let r=i[t];if(r){const{type:t,value:i}=e,o=Tr(e,ec);t!==r.type?Ir(Mr.INPUT_TYPE_OVERRIDE,t):((0===r.__refCount||n)&&Object.assign(r,o),r.__refCount++)}else i[t]=Vr(Vr({},e),{},{__refCount:1})})),{data:i}}))},this.setValueAtPath=(e,n,i)=>{t.setState((t=>{const r=t.data;return lo(r[e],n,e,this,i),{data:r}}))},this.setSettingsAtPath=(e,n)=>{t.setState((t=>{const i=t.data;return i[e].settings=Vr(Vr({},i[e].settings),n),{data:i}}))},this.disableInputAtPath=(e,n)=>{t.setState((t=>{const i=t.data;return i[e].disabled=n,{data:i}}))},this.set=(e,n)=>{t.setState((t=>{const i=t.data;return Object.entries(e).forEach((([t,e])=>{try{lo(i[t],e,void 0,void 0,n)}catch(r){0}})),{data:i}}))},this.getInput=t=>{try{return this.getData()[t]}catch(e){Ir(Mr.PATH_DOESNT_EXIST,t)}},this.get=t=>{var e;return null===(e=this.getInput(t))||void 0===e?void 0:e.value},this.emitOnEditStart=t=>{n.emit(`onEditStart:${t}`,this.get(t),t,Vr(Vr({},this.getInput(t)),{},{get:this.get}))},this.emitOnEditEnd=t=>{n.emit(`onEditEnd:${t}`,this.get(t),t,Vr(Vr({},this.getInput(t)),{},{get:this.get}))},this.subscribeToEditStart=(t,e)=>{const i=`onEditStart:${t}`;return n.on(i,e),()=>n.off(i,e)},this.subscribeToEditEnd=(t,e)=>{const i=`onEditEnd:${t}`;return n.on(i,e),()=>n.off(i,e)};const a=(t,e,n)=>{const r={};return Object.entries(t).forEach((([t,o])=>{if(""===t)return Ir(Mr.EMPTY_KEY);let s=mh(e,t);if(o.type===no.FOLDER){const t=a(o.schema,s,n);Object.assign(r,t),s in i||(i[s]=o.settings)}else if(t in n)Ir(Mr.DUPLICATE_KEYS,t,s,n[t].path);else{const e=function(t,e,n,i){const r=so(t,e),{type:o,input:a,options:s}=r;if(o)return o in no?r:{type:o,input:Fr(o,a,n,i),options:s};let l=Or(a);return l?{type:l,input:Fr(l,a,n,i),options:s}:(l=Or({value:a}),!!l&&{type:l,input:Fr(l,{value:a},n,i),options:s})}(o,t,s,r);if(e){const{type:i,options:o,input:a}=e,{onChange:l,transient:h,onEditStart:c,onEditEnd:u}=o,d=Tr(o,nc);r[s]=Vr(Vr(Vr({type:i},d),a),{},{fromPanel:!0}),n[t]={path:s,onChange:l,transient:h,onEditStart:c,onEditEnd:u}}else Ir(Mr.UNKNOWN_INPUT,s,o)}})),r};this.getDataFromSchema=t=>{const e={};return[a(t,"",e),e]}},rc=new ic;function oc(){return(0,r.useMemo)((()=>new ic),[])}const ac={collapsed:!1};function sc(t,e){return{type:no.FOLDER,schema:t,settings:Vr(Vr({},ac),e)}}const lc={disabled:!1};function hc(t,e){return{type:no.BUTTON,onClick:t,settings:Vr(Vr({},lc),e)}}function cc(t){return{type:no.BUTTON_GROUP,opts:t}}const uc={graph:!1,interval:100};function dc(t,e){return{type:no.MONITOR,objectOrFn:t,settings:Vr(Vr({},uc),e)}}const pc=t=>"__levaInput"in t,fc=["type","label","path","valueKey","value","settings","setValue","disabled"];function gc(t){let{type:e,label:n,path:i,valueKey:o,value:a,settings:s,setValue:l,disabled:h}=t,c=Tr(t,fc);const{displayValue:u,onChange:d,onUpdate:p}=ga({type:e,value:a,settings:s,setValue:l}),f=Rr[e].component;return f?r.createElement(bo.Provider,{value:Vr({key:o,path:i,id:""+i,label:n,displayValue:u,value:a,onChange:d,onUpdate:p,settings:s,setValue:l,disabled:h},c)},r.createElement(ea,{disabled:h},r.createElement(f,null))):(Ir(Mr.NO_COMPONENT_FOR_TYPE,e,i),null)}const mc=Lo("button",{display:"block",$reset:"",fontWeight:"$button",height:"$rowHeight",borderStyle:"none",borderRadius:"$sm",backgroundColor:"$elevation1",color:"$highlight1","&:not(:disabled)":{color:"$highlight3",backgroundColor:"$accent2",cursor:"pointer",$hover:"$accent3",$active:"$accent3 $accent1",$focus:""}});const vc=Lo("div",{$flex:"",justifyContent:"flex-end",gap:"$colGap"}),yc=Lo("button",{$reset:"",cursor:"pointer",borderRadius:"$xs","&:hover":{backgroundColor:"$elevation3"}});const _c=Lo("canvas",{height:"$monitorHeight",width:"100%",display:"block",borderRadius:"$sm"});const xc=(0,r.forwardRef)((function({initialValue:t},e){const n=Fo("colors","highlight3"),i=Fo("colors","elevation2"),o=Fo("colors","highlight1"),[a,s]=(0,r.useMemo)((()=>[Is(o).alpha(.4).toRgbString(),Is(o).alpha(.1).toRgbString()]),[o]),l=(0,r.useRef)([t]),h=(0,r.useRef)(t),c=(0,r.useRef)(t),u=(0,r.useRef)(),d=(0,r.useCallback)(((t,e)=>{if(!t)return;const{width:r,height:o}=t,u=new Path2D,d=r/100,p=.05*o;for(let n=0;n<l.current.length;n++){const t=d*n,e=o-qr(l.current[n],h.current,c.current)*(o-2*p)-p;u.lineTo(t,e)}e.clearRect(0,0,r,o);const f=new Path2D(u);f.lineTo(d*(l.current.length+1),o),f.lineTo(0,o),f.lineTo(0,0);const g=e.createLinearGradient(0,0,0,o);g.addColorStop(0,a),g.addColorStop(1,s),e.fillStyle=g,e.fill(f),e.strokeStyle=i,e.lineJoin="round",e.lineWidth=14,e.stroke(u),e.strokeStyle=n,e.lineWidth=2,e.stroke(u)}),[n,i,a,s]),[p,f]=function(t){const e=(0,r.useRef)(null),n=(0,r.useRef)(null),i=(0,r.useRef)(!1);return(0,r.useEffect)((()=>{const r=uo((()=>{e.current.width=e.current.offsetWidth*window.devicePixelRatio,e.current.height=e.current.offsetHeight*window.devicePixelRatio,t(e.current,n.current)}),250);return window.addEventListener("resize",r),i.current||(r(),i.current=!0),()=>window.removeEventListener("resize",r)}),[t]),(0,r.useEffect)((()=>{n.current=e.current.getContext("2d")}),[]),[e,n]}(d);return(0,r.useImperativeHandle)(e,(()=>({frame:t=>{(void 0===h.current||t<h.current)&&(h.current=t),(void 0===c.current||t>c.current)&&(c.current=t),function(t,e){t.push(e),t.length>100&&t.shift()}(l.current,t),u.current=requestAnimationFrame((()=>d(p.current,f.current)))}})),[p,f,d]),(0,r.useEffect)((()=>()=>cancelAnimationFrame(u.current)),[]),r.createElement(_c,{ref:p})})),bc=t=>Number.isFinite(t)?t.toPrecision(2):t.toString(),wc=(0,r.forwardRef)((function({initialValue:t},e){const[n,i]=(0,r.useState)(bc(t));return(0,r.useImperativeHandle)(e,(()=>({frame:t=>i(bc(t))})),[]),r.createElement("div",null,n)}));function Sc(t){return"function"==typeof t?t():t.current}const Tc=["type","label","key"],Mc={[no.BUTTON]:function({onClick:t,settings:e,label:n}){const i=Ao();return r.createElement(fa,null,r.createElement(mc,{disabled:e.disabled,onClick:()=>t(i.get)},n))},[no.BUTTON_GROUP]:function(t){const{label:e,opts:n}=(({label:t,opts:e})=>{let n="string"==typeof t&&""===t.trim()?null:t,i=e;return"object"==typeof e.opts&&(void 0!==i.label&&(n=e.label),i=e.opts),{label:n,opts:i}})(t),i=Ao();return r.createElement(fa,{input:!!e},e&&r.createElement(ha,null,e),r.createElement(vc,null,Object.entries(n).map((([t,e])=>r.createElement(yc,{key:t,onClick:()=>e(i.get)},t)))))},[no.MONITOR]:function({label:t,objectOrFn:e,settings:n}){const i=(0,r.useRef)(),o=(0,r.useRef)(Sc(e));return(0,r.useEffect)((()=>{const t=window.setInterval((()=>{var t;document.hidden||null===(t=i.current)||void 0===t||t.frame(Sc(e))}),n.interval);return()=>window.clearInterval(t)}),[e,n.interval]),r.createElement(fa,{input:!0},r.createElement(ha,{align:"top"},t),n.graph?r.createElement(xc,{ref:i,initialValue:o.current}):r.createElement(wc,{ref:i,initialValue:o.current}))}},Ac=r.memo((({path:t})=>{const[e,{set:n,setSettings:i,disable:o,storeId:a,emitOnEditStart:s,emitOnEditEnd:l}]=function(t){const e=Ao(),[n,i]=(0,r.useState)(_a(e.getData(),t)),o=(0,r.useCallback)((n=>e.setValueAtPath(t,n,!0)),[t,e]),a=(0,r.useCallback)((n=>e.setSettingsAtPath(t,n)),[t,e]),s=(0,r.useCallback)((n=>e.disableInputAtPath(t,n)),[t,e]),l=(0,r.useCallback)((()=>e.emitOnEditStart(t)),[t,e]),h=(0,r.useCallback)((()=>e.emitOnEditEnd(t)),[t,e]);return(0,r.useEffect)((()=>{i(_a(e.getData(),t));const n=e.useStore.subscribe((e=>_a(e.data,t)),i,{equalityFn:x});return()=>n()}),[e,t]),[n,{set:o,setSettings:a,disable:s,storeId:e.storeId,emitOnEditStart:l,emitOnEditEnd:h}]}(t);if(!e)return null;const{type:h,label:c,key:u}=e,d=Tr(e,Tc);if(h in no){const e=Mc[h];return r.createElement(e,xo({label:c,path:t},d))}return h in Rr?r.createElement(gc,xo({key:a+t,type:h,label:c,storeId:a,path:t,valueKey:u,setValue:n,setSettings:i,disable:o,emitOnEditStart:s,emitOnEditEnd:l},d)):(Er(Mr.UNSUPPORTED_INPUT,h,t),null)}));function Cc({toggle:t,toggled:e,name:n}){return r.createElement(Yo,{onClick:()=>t()},r.createElement(da,{toggled:e}),r.createElement("div",null,n))}const Ic=({name:t,path:e,tree:n})=>{const i=Ao(),o=mh(e,t),{collapsed:a,color:s}=i.getFolderSettings(o),[l,h]=(0,r.useState)(!a),c=(0,r.useRef)(null),u=Fo("colors","folderWidgetColor"),d=Fo("colors","folderTextColor");return(0,r.useLayoutEffect)((()=>{c.current.style.setProperty("--leva-colors-folderWidgetColor",s||u),c.current.style.setProperty("--leva-colors-folderTextColor",s||d)}),[s,u,d]),r.createElement(qo,{ref:c},r.createElement(Cc,{name:t,toggled:l,toggle:()=>h((t=>!t))}),r.createElement(Ec,{parent:o,tree:n,toggled:l}))},Ec=r.memo((({isRoot:t=!1,fill:e=!1,flat:n=!1,parent:i,tree:o,toggled:a})=>{const{wrapperRef:s,contentRef:l}=function(t){const e=(0,r.useRef)(null),n=(0,r.useRef)(null),i=(0,r.useRef)(!0);return(0,r.useLayoutEffect)((()=>{t||(e.current.style.height="0px",e.current.style.overflow="hidden")}),[]),(0,r.useEffect)((()=>{if(i.current)return void(i.current=!1);let r;const o=e.current,a=()=>{t&&(o.style.removeProperty("height"),o.style.removeProperty("overflow"),n.current.scrollIntoView({behavior:"smooth",block:"nearest"}))};o.addEventListener("transitionend",a,{once:!0});const{height:s}=n.current.getBoundingClientRect();return o.style.height=s+"px",t||(o.style.overflow="hidden",r=window.setTimeout((()=>o.style.height="0px"),50)),()=>{o.removeEventListener("transitionend",a),clearTimeout(r)}}),[t]),{wrapperRef:e,contentRef:n}}(a),h=Ao(),c=([t,e])=>{var n;return(pc(e)?null===(n=h.getInput(e.path))||void 0===n?void 0:n.order:h.getFolderSettings(mh(i,t)).order)||0},u=Object.entries(o).sort(((t,e)=>c(t)-c(e)));return r.createElement(Xo,{ref:s,isRoot:t,fill:e,flat:n},r.createElement(Zo,{ref:l,isRoot:t,toggled:a},u.map((([t,e])=>pc(e)?r.createElement(Ac,{key:e.path,valueKey:e.valueKey,path:e.path}):r.createElement(Ic,{key:t,name:t,path:i,tree:e})))))})),kc=Lo("div",{position:"relative",fontFamily:"$mono",fontSize:"$root",color:"$rootText",backgroundColor:"$elevation1",variants:{fill:{false:{position:"fixed",top:"10px",right:"10px",zIndex:1e3,width:"$rootWidth"},true:{position:"relative",width:"100%"}},flat:{false:{borderRadius:"$lg",boxShadow:"$level1"}},oneLineLabels:{true:{[`${Ko}`]:{gridTemplateColumns:"auto",gridAutoColumns:"minmax(max-content, 1fr)",gridAutoRows:"minmax($sizes$rowHeight), auto)",rowGap:0,columnGap:0,marginTop:"$rowGap"}}},hideTitleBar:{true:{$$titleBarHeight:"0px"},false:{$$titleBarHeight:"$sizes$titleBarHeight"}}},"&,*,*:after,*:before":{boxSizing:"border-box"},"*::selection":{backgroundColor:"$accent2"}}),Lc=Lo("i",{$flexCenter:"",width:40,userSelect:"none",cursor:"pointer","> svg":{fill:"$highlight1",transition:"transform 350ms ease, fill 250ms ease"},"&:hover > svg":{fill:"$highlight3"},variants:{active:{true:{"> svg":{fill:"$highlight2"}}}}}),Dc=Lo("div",{display:"flex",alignItems:"stretch",justifyContent:"space-between",height:"$titleBarHeight",variants:{mode:{drag:{cursor:"grab"}}}}),Pc=Lo("div",{$flex:"",position:"relative",width:"100%",overflow:"hidden",transition:"height 250ms ease",color:"$highlight3",paddingLeft:"$md",[`> ${Lc}`]:{height:30},variants:{toggled:{true:{height:30},false:{height:0}}}}),Rc=Lo("input",{$reset:"",flex:1,position:"relative",height:30,width:"100%",backgroundColor:"transparent",fontSize:"10px",borderRadius:"$root","&:focus":{},"&::placeholder":{color:"$highlight2"}}),Oc=Lo("div",{touchAction:"none",$flexCenter:"",flex:1,"> svg":{fill:"$highlight1"},color:"$highlight1",variants:{drag:{true:{$draggable:"","> svg":{transition:"fill 250ms ease"},"&:hover":{color:"$highlight3"},"&:hover > svg":{fill:"$highlight3"}}},filterEnabled:{false:{paddingRight:40}}}}),Nc=r.forwardRef((({setFilter:t,toggle:e},n)=>{const[i,o]=(0,r.useState)(""),a=(0,r.useMemo)((()=>uo(t,250)),[t]);return(0,r.useEffect)((()=>{a(i)}),[i,a]),r.createElement(r.Fragment,null,r.createElement(Rc,{ref:n,value:i,placeholder:"[Open filter with CMD+SHIFT+L]",onPointerDown:t=>t.stopPropagation(),onChange:t=>{const n=t.currentTarget.value;e(!0),o(n)}}),r.createElement(Lc,{onClick:()=>(t(""),void o("")),style:{visibility:i?"visible":"hidden"}},r.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",height:"14",width:"14",viewBox:"0 0 20 20",fill:"currentColor"},r.createElement("path",{fillRule:"evenodd",d:"M10 18a8 8 0 100-16 8 8 0 000 16zM8.707 7.293a1 1 0 00-1.414 1.414L8.586 10l-1.293 1.293a1 1 0 101.414 1.414L10 11.414l1.293 1.293a1 1 0 001.414-1.414L11.414 10l1.293-1.293a1 1 0 00-1.414-1.414L10 8.586 8.707 7.293z",clipRule:"evenodd"}))))}));function Fc({setFilter:t,onDrag:e,onDragStart:n,onDragEnd:i,toggle:o,toggled:a,title:s,drag:l,filterEnabled:h,from:c}){const[u,d]=(0,r.useState)(!1),p=(0,r.useRef)(null);(0,r.useEffect)((()=>{var t,e;u?null===(t=p.current)||void 0===t||t.focus():null===(e=p.current)||void 0===e||e.blur()}),[u]);const f=ma((({offset:[t,r],first:o,last:a})=>{e({x:t,y:r}),o&&n({x:t,y:r}),a&&i({x:t,y:r})}),{filterTaps:!0,from:({offset:[t,e]})=>[(null==c?void 0:c.x)||t,(null==c?void 0:c.y)||e]});return(0,r.useEffect)((()=>{const t=t=>{"L"===t.key&&t.shiftKey&&t.metaKey&&d((t=>!t))};return window.addEventListener("keydown",t),()=>window.removeEventListener("keydown",t)}),[]),r.createElement(r.Fragment,null,r.createElement(Dc,{mode:l?"drag":void 0},r.createElement(Lc,{active:!a,onClick:()=>o()},r.createElement(da,{toggled:a,width:12,height:8})),r.createElement(Oc,xo({},l?f():{},{drag:l,filterEnabled:h}),void 0===s&&l?r.createElement("svg",{width:"20",height:"10",viewBox:"0 0 28 14",xmlns:"http://www.w3.org/2000/svg"},r.createElement("circle",{cx:"2",cy:"2",r:"2"}),r.createElement("circle",{cx:"14",cy:"2",r:"2"}),r.createElement("circle",{cx:"26",cy:"2",r:"2"}),r.createElement("circle",{cx:"2",cy:"12",r:"2"}),r.createElement("circle",{cx:"14",cy:"12",r:"2"}),r.createElement("circle",{cx:"26",cy:"12",r:"2"})):s),h&&r.createElement(Lc,{active:u,onClick:()=>d((t=>!t))},r.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",height:"20",viewBox:"0 0 20 20"},r.createElement("path",{d:"M9 9a2 2 0 114 0 2 2 0 01-4 0z"}),r.createElement("path",{fillRule:"evenodd",d:"M10 18a8 8 0 100-16 8 8 0 000 16zm1-13a4 4 0 00-3.446 6.032l-2.261 2.26a1 1 0 101.414 1.415l2.261-2.261A4 4 0 1011 5z",clipRule:"evenodd"})))),r.createElement(Pc,{toggled:u},r.createElement(Nc,{ref:p,setFilter:t,toggle:o})))}const Bc=["store","hidden","theme","collapsed"];function zc(t){let{store:e,hidden:n=!1,theme:i,collapsed:o=!1}=t,a=Tr(t,Bc);const s=vh((()=>function(t){const e=Io();if(!t)return{theme:e,className:""};Object.keys(t).forEach((n=>{Object.assign(e[n],t[n])}));const n=Po(e);return{theme:e,className:n.className}}(i)),[i]),[l,h]=(0,r.useState)(!o),c="object"==typeof o?!o.collapsed:l,u=(0,r.useMemo)((()=>"object"==typeof o?t=>{"function"==typeof t?o.onChange(!t(!o.collapsed)):o.onChange(!t)}:h),[o]);return!e||n?null:r.createElement(So.Provider,{value:s},r.createElement(Gc,xo({store:e},a,{toggled:c,setToggle:u,rootClass:s.className})))}const Gc=r.memo((({store:t,rootClass:e,fill:n=!1,flat:i=!1,neverHide:o=!1,oneLineLabels:a=!1,titleBar:s={title:void 0,drag:!0,filter:!0,position:void 0,onDrag:void 0,onDragStart:void 0,onDragEnd:void 0},hideCopyButton:l=!1,toggled:h,setToggle:c})=>{var u,d;const p=(t=>{const[e,n]=(0,r.useState)(t.getVisiblePaths());return(0,r.useEffect)((()=>{n(t.getVisiblePaths());const e=t.useStore.subscribe(t.getVisiblePaths,n,{equalityFn:x});return()=>e()}),[t]),e})(t),[f,g]=(0,r.useState)(""),m=(0,r.useMemo)((()=>((t,e)=>{const n={},i=e?e.toLowerCase():null;return t.forEach((t=>{const[e,r]=function(t){const e=t.split(".");return[e.pop(),e.join(".")||void 0]}(t);(!i||e.toLowerCase().indexOf(i)>-1)&&gh()(n,r,{[e]:{__levaInput:!0,path:t}})})),n})(p,f)),[p,f]),[v,y]=va(),_=o||p.length>0,b="object"==typeof s&&s.title||void 0,w="object"!=typeof s||(null===(u=s.drag)||void 0===u||u),S="object"!=typeof s||(null===(d=s.filter)||void 0===d||d),T="object"==typeof s&&s.position||void 0,M="object"==typeof s&&s.onDrag||void 0,A="object"==typeof s&&s.onDragStart||void 0,C="object"==typeof s&&s.onDragEnd||void 0;return r.useEffect((()=>{y({x:null==T?void 0:T.x,y:null==T?void 0:T.y})}),[T,y]),No(),r.createElement(Mo.Provider,{value:{hideCopyButton:l}},r.createElement(kc,{ref:v,className:e,fill:n,flat:i,oneLineLabels:a,hideTitleBar:!s,style:{display:_?"block":"none"}},s&&r.createElement(Fc,{onDrag:t=>{y(t),null==M||M(t)},onDragStart:t=>null==A?void 0:A(t),onDragEnd:t=>null==C?void 0:C(t),setFilter:g,toggle:t=>c((e=>null!=t?t:!e)),toggled:h,title:b,drag:w,filterEnabled:S,from:T}),_&&r.createElement(To.Provider,{value:t},r.createElement(Ec,{isRoot:!0,fill:n,flat:i,tree:m,toggled:h}))))})),Vc=["isRoot"];let jc=!1,Hc=null;function Wc(t){let{isRoot:e=!1}=t,n=Tr(t,Vc);return(0,r.useEffect)((()=>(jc=!0,!e&&Hc&&(Hc.remove(),Hc=null),()=>{e||(jc=!1)})),[e]),r.createElement(zc,xo({store:rc},n))}function Uc(t){(0,r.useEffect)((()=>{t&&!jc&&(Hc||(Hc=document.getElementById("leva__root")||Object.assign(document.createElement("div"),{id:"leva__root"}),document.body&&(document.body.appendChild(Hc),function(t,e){const n=console.error;console.error=()=>{},i.render(t,e),console.error=n}(r.createElement(Wc,{isRoot:!0}),Hc))),jc=!0)}),[t])}const qc=["store"];function Xc(t){let{store:e}=t,n=Tr(t,qc);const i=Ao(),o=void 0===e?i:e;return r.createElement(zc,xo({store:o},n))}function Yc(t,e,n,i,o){const{folderName:a,schema:s,folderSettings:l,hookSettings:h,deps:c}=function(t,e,n,i,r){let o,a,s,l,h;return"string"==typeof t?(a=t,o=e,Array.isArray(n)?h=n:n&&("store"in n?(l=n,h=i):(s=n,Array.isArray(i)?h=i:(l=i,h=r)))):(o=t,Array.isArray(e)?h=e:(l=e,h=n)),{schema:o,folderName:a,folderSettings:s,hookSettings:l,deps:h||[]}}(t,e,n,i,o),u="function"==typeof s,d=(0,r.useRef)(!1),p=(0,r.useRef)(!0),f=vh((()=>{d.current=!0;const t="function"==typeof s?s():s;return a?{[a]:sc(t,l)}:t}),c);Uc(!(null!=h&&h.store));const[g]=(0,r.useState)((()=>(null==h?void 0:h.store)||rc)),[m,v]=(0,r.useMemo)((()=>g.getDataFromSchema(f)),[g,f]),[y,_,b,w,S]=(0,r.useMemo)((()=>{const t=[],e=[],n={},i={},r={};return Object.values(v).forEach((({path:o,onChange:a,onEditStart:s,onEditEnd:l,transient:h})=>{t.push(o),a?(n[o]=a,h||e.push(o)):e.push(o),s&&(i[o]=s),l&&(r[o]=l)})),[t,e,n,i,r]}),[v]),T=(0,r.useMemo)((()=>g.orderPaths(y)),[y,g]),M=yh(g,_,m),A=(0,r.useCallback)((t=>{const e=Object.entries(t).reduce(((t,[e,n])=>Object.assign(t,{[v[e].path]:n})),{});g.set(e,!1)}),[g,v]),C=(0,r.useCallback)((t=>g.get(v[t].path)),[g,v]);return(0,r.useEffect)((()=>{const t=!p.current&&d.current;return g.addData(m,t),p.current=!1,d.current=!1,()=>g.disposePaths(T)}),[g,T,m]),(0,r.useEffect)((()=>{const t=[];return Object.entries(b).forEach((([e,n])=>{n(g.get(e),e,Vr({initial:!0,get:g.get},g.getInput(e)));const i=g.useStore.subscribe((t=>{const n=t.data[e];return[n.disabled?void 0:n.value,n]}),(([t,i])=>n(t,e,Vr({initial:!1,get:g.get},i))),{equalityFn:x});t.push(i)})),()=>t.forEach((t=>t()))}),[g,b]),(0,r.useEffect)((()=>{const t=[];return Object.entries(w).forEach((([e,n])=>t.push(g.subscribeToEditStart(e,n)))),Object.entries(S).forEach((([e,n])=>t.push(g.subscribeToEditEnd(e,n)))),()=>t.forEach((t=>t()))}),[w,S,g]),u?[M,A,C]:M}Nr(io.SELECT,Oa),Nr(io.IMAGE,Uh),Nr(io.NUMBER,Ea),Nr(io.COLOR,Eh),Nr(io.STRING,Ga),Nr(io.BOOLEAN,Wa),Nr(io.INTERVAL,tc),Nr(io.VECTOR3D,kh),Nr(io.VECTOR2D,Fh)},8527:(t,e)=>{"use strict";var n="\n",i=function(){function t(t){this.string=t;for(var e=[0],i=0;i<t.length;)switch(t[i]){case n:i+=1,e.push(i);break;case"\r":t[i+=1]===n&&(i+=1),e.push(i);break;default:i++}this.offsets=e}return t.prototype.locationForIndex=function(t){if(t<0||t>this.string.length)return null;for(var e=0,n=this.offsets;n[e+1]<=t;)e++;return{line:e,column:t-n[e]}},t.prototype.indexForLocation=function(t){var e=t.line,n=t.column;return e<0||e>=this.offsets.length||n<0||n>this.lengthOfLine(e)?null:this.offsets[e]+n},t.prototype.lengthOfLine=function(t){var e=this.offsets[t];return(t===this.offsets.length-1?this.string.length:this.offsets[t+1])-e},t}()},1876:(t,e,n)=>{"use strict";var i=n(6999),r=n(2177),o=n(5417),a=n(7998);t.exports=function(t,e,n){if(!i(t))throw new TypeError("expected an object");if("string"!=typeof e||null==n)return r.apply(null,arguments);if("string"==typeof n)return a(t,e,n),t;var s=o(t,e);return i(n)&&i(s)&&(n=r({},s,n)),a(t,e,n),t}},3739:()=>{},2177:(t,e,n)=>{"use strict";var i=n(6999),r=n(8096);function o(t,e){for(var n=arguments.length,i=0;++i<n;){var o=arguments[i];s(o)&&r(o,a,t)}return t}function a(t,e){if(function(t){return"__proto__"!==t&&"constructor"!==t&&"prototype"!==t}(e)){var n=this[e];s(t)&&s(n)?o(n,t):this[e]=t}}function s(t){return i(t)&&!Array.isArray(t)}t.exports=o},1357:(t,e)=>{function n(t){let e,n=[];for(let i of t.split(",").map((t=>t.trim())))if(/^-?\d+$/.test(i))n.push(parseInt(i,10));else if(e=i.match(/^(-?\d+)(-|\.\.\.?|\u2025|\u2026|\u22EF)(-?\d+)$/)){let[t,i,r,o]=e;if(i&&o){i=parseInt(i),o=parseInt(o);const t=i<o?1:-1;"-"!==r&&".."!==r&&"\u2025"!==r||(o+=t);for(let e=i;e!==o;e+=t)n.push(e)}}return n}e.default=n,t.exports=n},8675:(t,e,n)=>{"use strict";n.d(e,{A:()=>On});var i=6378137,r=.0066943799901413165,o=484813681109536e-20,a=Math.PI/2,s=1e-10,l=.017453292519943295,h=57.29577951308232,c=Math.PI/4,u=2*Math.PI,d=3.14159265359,p={greenwich:0,lisbon:-9.131906111111,paris:2.337229166667,bogota:-74.080916666667,madrid:-3.687938888889,rome:12.452333333333,bern:7.439583333333,jakarta:106.807719444444,ferro:-17.666666666667,brussels:4.367975,stockholm:18.058277777778,athens:23.7163375,oslo:10.722916666667};const f={mm:{to_meter:.001},cm:{to_meter:.01},ft:{to_meter:.3048},"us-ft":{to_meter:1200/3937},fath:{to_meter:1.8288},kmi:{to_meter:1852},"us-ch":{to_meter:20.1168402336805},"us-mi":{to_meter:1609.34721869444},km:{to_meter:1e3},"ind-ft":{to_meter:.30479841},"ind-yd":{to_meter:.91439523},mi:{to_meter:1609.344},yd:{to_meter:.9144},ch:{to_meter:20.1168},link:{to_meter:.201168},dm:{to_meter:.01},in:{to_meter:.0254},"ind-ch":{to_meter:20.11669506},"us-in":{to_meter:.025400050800101},"us-yd":{to_meter:.914401828803658}};var g=/[\s_\-\/\(\)]/g;function m(t,e){if(t[e])return t[e];for(var n,i=Object.keys(t),r=e.toLowerCase().replace(g,""),o=-1;++o<i.length;)if((n=i[o]).toLowerCase().replace(g,"")===r)return t[n]}function v(t){var e,n,i,r={},o=t.split("+").map((function(t){return t.trim()})).filter((function(t){return t})).reduce((function(t,e){var n=e.split("=");return n.push(!0),t[n[0].toLowerCase()]=n[1],t}),{}),a={proj:"projName",datum:"datumCode",rf:function(t){r.rf=parseFloat(t)},lat_0:function(t){r.lat0=t*l},lat_1:function(t){r.lat1=t*l},lat_2:function(t){r.lat2=t*l},lat_ts:function(t){r.lat_ts=t*l},lon_0:function(t){r.long0=t*l},lon_1:function(t){r.long1=t*l},lon_2:function(t){r.long2=t*l},alpha:function(t){r.alpha=parseFloat(t)*l},gamma:function(t){r.rectified_grid_angle=parseFloat(t)},lonc:function(t){r.longc=t*l},x_0:function(t){r.x0=parseFloat(t)},y_0:function(t){r.y0=parseFloat(t)},k_0:function(t){r.k0=parseFloat(t)},k:function(t){r.k0=parseFloat(t)},a:function(t){r.a=parseFloat(t)},b:function(t){r.b=parseFloat(t)},r:function(t){r.a=r.b=parseFloat(t)},r_a:function(){r.R_A=!0},zone:function(t){r.zone=parseInt(t,10)},south:function(){r.utmSouth=!0},towgs84:function(t){r.datum_params=t.split(",").map((function(t){return parseFloat(t)}))},to_meter:function(t){r.to_meter=parseFloat(t)},units:function(t){r.units=t;var e=m(f,t);e&&(r.to_meter=e.to_meter)},from_greenwich:function(t){r.from_greenwich=t*l},pm:function(t){var e=m(p,t);r.from_greenwich=(e||parseFloat(t))*l},nadgrids:function(t){"@null"===t?r.datumCode="none":r.nadgrids=t},axis:function(t){var e="ewnsud";3===t.length&&-1!==e.indexOf(t.substr(0,1))&&-1!==e.indexOf(t.substr(1,1))&&-1!==e.indexOf(t.substr(2,1))&&(r.axis=t)},approx:function(){r.approx=!0}};for(e in o)n=o[e],e in a?"function"==typeof(i=a[e])?i(n):r[i]=n:r[e]=n;return"string"==typeof r.datumCode&&"WGS84"!==r.datumCode&&(r.datumCode=r.datumCode.toLowerCase()),r}const y=function(t){var e=new M(t);return e.output()};var _=1,x=/\s/,b=/[A-Za-z]/,w=/[A-Za-z84_]/,S=/[,\]]/,T=/[\d\.E\-\+]/;function M(t){if("string"!=typeof t)throw new Error("not a string");this.text=t.trim(),this.level=0,this.place=0,this.root=null,this.stack=[],this.currentObject=null,this.state=_}function A(t,e,n){Array.isArray(e)&&(n.unshift(e),e=null);var i=e?{}:t,r=n.reduce((function(t,e){return C(e,t),t}),i);e&&(t[e]=r)}function C(t,e){if(Array.isArray(t)){var n=t.shift();if("PARAMETER"===n&&(n=t.shift()),1===t.length)return Array.isArray(t[0])?(e[n]={},void C(t[0],e[n])):void(e[n]=t[0]);if(t.length)if("TOWGS84"!==n){if("AXIS"===n)return n in e||(e[n]=[]),void e[n].push(t);var i;switch(Array.isArray(n)||(e[n]={}),n){case"UNIT":case"PRIMEM":case"VERT_DATUM":return e[n]={name:t[0].toLowerCase(),convert:t[1]},void(3===t.length&&C(t[2],e[n]));case"SPHEROID":case"ELLIPSOID":return e[n]={name:t[0],a:t[1],rf:t[2]},void(4===t.length&&C(t[3],e[n]));case"EDATUM":case"ENGINEERINGDATUM":case"LOCAL_DATUM":case"DATUM":case"VERT_CS":case"VERTCRS":case"VERTICALCRS":return t[0]=["name",t[0]],void A(e,n,t);case"COMPD_CS":case"COMPOUNDCRS":case"FITTED_CS":case"PROJECTEDCRS":case"PROJCRS":case"GEOGCS":case"GEOCCS":case"PROJCS":case"LOCAL_CS":case"GEODCRS":case"GEODETICCRS":case"GEODETICDATUM":case"ENGCRS":case"ENGINEERINGCRS":return t[0]=["name",t[0]],A(e,n,t),void(e[n].type=n);default:for(i=-1;++i<t.length;)if(!Array.isArray(t[i]))return C(t,e[n]);return A(e,n,t)}}else e[n]=t;else e[n]=!0}else e[t]=!0}M.prototype.readCharicter=function(){var t=this.text[this.place++];if(4!==this.state)for(;x.test(t);){if(this.place>=this.text.length)return;t=this.text[this.place++]}switch(this.state){case _:return this.neutral(t);case 2:return this.keyword(t);case 4:return this.quoted(t);case 5:return this.afterquote(t);case 3:return this.number(t);case-1:return}},M.prototype.afterquote=function(t){if('"'===t)return this.word+='"',void(this.state=4);if(S.test(t))return this.word=this.word.trim(),void this.afterItem(t);throw new Error("havn't handled \""+t+'" in afterquote yet, index '+this.place)},M.prototype.afterItem=function(t){return","===t?(null!==this.word&&this.currentObject.push(this.word),this.word=null,void(this.state=_)):"]"===t?(this.level--,null!==this.word&&(this.currentObject.push(this.word),this.word=null),this.state=_,this.currentObject=this.stack.pop(),void(this.currentObject||(this.state=-1))):void 0},M.prototype.number=function(t){if(!T.test(t)){if(S.test(t))return this.word=parseFloat(this.word),void this.afterItem(t);throw new Error("havn't handled \""+t+'" in number yet, index '+this.place)}this.word+=t},M.prototype.quoted=function(t){'"'!==t?this.word+=t:this.state=5},M.prototype.keyword=function(t){if(w.test(t))this.word+=t;else{if("["===t){var e=[];return e.push(this.word),this.level++,null===this.root?this.root=e:this.currentObject.push(e),this.stack.push(this.currentObject),this.currentObject=e,void(this.state=_)}if(!S.test(t))throw new Error("havn't handled \""+t+'" in keyword yet, index '+this.place);this.afterItem(t)}},M.prototype.neutral=function(t){if(b.test(t))return this.word=t,void(this.state=2);if('"'===t)return this.word="",void(this.state=4);if(T.test(t))return this.word=t,void(this.state=3);if(!S.test(t))throw new Error("havn't handled \""+t+'" in neutral yet, index '+this.place);this.afterItem(t)},M.prototype.output=function(){for(;this.place<this.text.length;)this.readCharicter();if(-1===this.state)return this.root;throw new Error('unable to parse string "'+this.text+'". State is '+this.state)};var I=["PROJECTEDCRS","PROJCRS","GEOGCS","GEOCCS","PROJCS","LOCAL_CS","GEODCRS","GEODETICCRS","GEODETICDATUM","ENGCRS","ENGINEERINGCRS"];function E(t){return.017453292519943295*t}function k(t){for(var e=Object.keys(t),n=0,i=e.length;n<i;++n){var r=e[n];-1!==I.indexOf(r)&&L(t[r]),"object"==typeof t[r]&&k(t[r])}}function L(t){if(t.AUTHORITY){var e=Object.keys(t.AUTHORITY)[0];e&&e in t.AUTHORITY&&(t.title=e+":"+t.AUTHORITY[e])}if("GEOGCS"===t.type?t.projName="longlat":"LOCAL_CS"===t.type?(t.projName="identity",t.local=!0):"object"==typeof t.PROJECTION?t.projName=Object.keys(t.PROJECTION)[0]:t.projName=t.PROJECTION,t.AXIS){for(var n="",i=0,r=t.AXIS.length;i<r;++i){var o=[t.AXIS[i][0].toLowerCase(),t.AXIS[i][1].toLowerCase()];-1!==o[0].indexOf("north")||("y"===o[0]||"lat"===o[0])&&"north"===o[1]?n+="n":-1!==o[0].indexOf("south")||("y"===o[0]||"lat"===o[0])&&"south"===o[1]?n+="s":-1!==o[0].indexOf("east")||("x"===o[0]||"lon"===o[0])&&"east"===o[1]?n+="e":-1===o[0].indexOf("west")&&("x"!==o[0]&&"lon"!==o[0]||"west"!==o[1])||(n+="w")}2===n.length&&(n+="u"),3===n.length&&(t.axis=n)}t.UNIT&&(t.units=t.UNIT.name.toLowerCase(),"metre"===t.units&&(t.units="meter"),t.UNIT.convert&&("GEOGCS"===t.type?t.DATUM&&t.DATUM.SPHEROID&&(t.to_meter=t.UNIT.convert*t.DATUM.SPHEROID.a):t.to_meter=t.UNIT.convert));var a=t.GEOGCS;function s(e){return e*(t.to_meter||1)}"GEOGCS"===t.type&&(a=t),a&&(a.DATUM?t.datumCode=a.DATUM.name.toLowerCase():t.datumCode=a.name.toLowerCase(),"d_"===t.datumCode.slice(0,2)&&(t.datumCode=t.datumCode.slice(2)),"new_zealand_1949"===t.datumCode&&(t.datumCode="nzgd49"),"wgs_1984"!==t.datumCode&&"world_geodetic_system_1984"!==t.datumCode||("Mercator_Auxiliary_Sphere"===t.PROJECTION&&(t.sphere=!0),t.datumCode="wgs84"),"belge_1972"===t.datumCode&&(t.datumCode="rnb72"),a.DATUM&&a.DATUM.SPHEROID&&(t.ellps=a.DATUM.SPHEROID.name.replace("_19","").replace(/[Cc]larke\_18/,"clrk"),"international"===t.ellps.toLowerCase().slice(0,13)&&(t.ellps="intl"),t.a=a.DATUM.SPHEROID.a,t.rf=parseFloat(a.DATUM.SPHEROID.rf,10)),a.DATUM&&a.DATUM.TOWGS84&&(t.datum_params=a.DATUM.TOWGS84),~t.datumCode.indexOf("osgb_1936")&&(t.datumCode="osgb36"),~t.datumCode.indexOf("osni_1952")&&(t.datumCode="osni52"),(~t.datumCode.indexOf("tm65")||~t.datumCode.indexOf("geodetic_datum_of_1965"))&&(t.datumCode="ire65"),"ch1903+"===t.datumCode&&(t.datumCode="ch1903"),~t.datumCode.indexOf("israel")&&(t.datumCode="isr93")),t.b&&!isFinite(t.b)&&(t.b=t.a);[["standard_parallel_1","Standard_Parallel_1"],["standard_parallel_1","Latitude of 1st standard parallel"],["standard_parallel_2","Standard_Parallel_2"],["standard_parallel_2","Latitude of 2nd standard parallel"],["false_easting","False_Easting"],["false_easting","False easting"],["false-easting","Easting at false origin"],["false_northing","False_Northing"],["false_northing","False northing"],["false_northing","Northing at false origin"],["central_meridian","Central_Meridian"],["central_meridian","Longitude of natural origin"],["central_meridian","Longitude of false origin"],["latitude_of_origin","Latitude_Of_Origin"],["latitude_of_origin","Central_Parallel"],["latitude_of_origin","Latitude of natural origin"],["latitude_of_origin","Latitude of false origin"],["scale_factor","Scale_Factor"],["k0","scale_factor"],["latitude_of_center","Latitude_Of_Center"],["latitude_of_center","Latitude_of_center"],["lat0","latitude_of_center",E],["longitude_of_center","Longitude_Of_Center"],["longitude_of_center","Longitude_of_center"],["longc","longitude_of_center",E],["x0","false_easting",s],["y0","false_northing",s],["long0","central_meridian",E],["lat0","latitude_of_origin",E],["lat0","standard_parallel_1",E],["lat1","standard_parallel_1",E],["lat2","standard_parallel_2",E],["azimuth","Azimuth"],["alpha","azimuth",E],["srsCode","name"]].forEach((function(e){return function(t,e){var n=e[0],i=e[1];!(n in t)&&i in t&&(t[n]=t[i],3===e.length&&(t[n]=e[2](t[n])))}(t,e)})),t.long0||!t.longc||"Albers_Conic_Equal_Area"!==t.projName&&"Lambert_Azimuthal_Equal_Area"!==t.projName||(t.long0=t.longc),t.lat_ts||!t.lat1||"Stereographic_South_Pole"!==t.projName&&"Polar Stereographic (variant B)"!==t.projName?!t.lat_ts&&t.lat0&&"Polar_Stereographic"===t.projName&&(t.lat_ts=t.lat0,t.lat0=E(t.lat0>0?90:-90)):(t.lat0=E(t.lat1>0?90:-90),t.lat_ts=t.lat1)}function D(t){var e=y(t),n=e[0],i={};return C(e,i),k(i),i[n]}function P(t){var e=this;if(2===arguments.length){var n=arguments[1];"string"==typeof n?"+"===n.charAt(0)?P[t]=v(arguments[1]):P[t]=D(arguments[1]):P[t]=n}else if(1===arguments.length){if(Array.isArray(t))return t.map((function(t){Array.isArray(t)?P.apply(e,t):P(t)}));if("string"==typeof t){if(t in P)return P[t]}else"EPSG"in t?P["EPSG:"+t.EPSG]=t:"ESRI"in t?P["ESRI:"+t.ESRI]=t:"IAU2000"in t?P["IAU2000:"+t.IAU2000]=t:console.log(t);return}}!function(t){t("EPSG:4326","+title=WGS 84 (long/lat) +proj=longlat +ellps=WGS84 +datum=WGS84 +units=degrees"),t("EPSG:4269","+title=NAD83 (long/lat) +proj=longlat +a=6378137.0 +b=6356752.31414036 +ellps=GRS80 +datum=NAD83 +units=degrees"),t("EPSG:3857","+title=WGS 84 / Pseudo-Mercator +proj=merc +a=6378137 +b=6378137 +lat_ts=0.0 +lon_0=0.0 +x_0=0.0 +y_0=0 +k=1.0 +units=m +nadgrids=@null +no_defs");for(var e=0;e<=60;++e)t("EPSG:"+(32600+e),"+proj=utm +zone="+e+" +datum=WGS84 +units=m"),t("EPSG:"+(32700+e),"+proj=utm +zone="+e+" +south +datum=WGS84 +units=m");t.WGS84=t["EPSG:4326"],t["EPSG:3785"]=t["EPSG:3857"],t.GOOGLE=t["EPSG:3857"],t["EPSG:900913"]=t["EPSG:3857"],t["EPSG:102113"]=t["EPSG:3857"]}(P);const R=P;var O=["PROJECTEDCRS","PROJCRS","GEOGCS","GEOCCS","PROJCS","LOCAL_CS","GEODCRS","GEODETICCRS","GEODETICDATUM","ENGCRS","ENGINEERINGCRS"];var N=["3857","900913","3785","102113"];const F=function(t){if(!function(t){return"string"==typeof t}(t))return t;if(function(t){return t in R}(t))return R[t];if(function(t){return O.some((function(e){return t.indexOf(e)>-1}))}(t)){var e=D(t);if(function(t){var e=m(t,"authority");if(e){var n=m(e,"epsg");return n&&N.indexOf(n)>-1}}(e))return R["EPSG:3857"];var n=function(t){var e=m(t,"extension");if(e)return m(e,"proj4")}(e);return n?v(n):e}return function(t){return"+"===t[0]}(t)?v(t):void 0};function B(t,e){var n,i;if(t=t||{},!e)return t;for(i in e)void 0!==(n=e[i])&&(t[i]=n);return t}function z(t,e,n){var i=t*e;return n/Math.sqrt(1-i*i)}function G(t){return t<0?-1:1}function V(t){return Math.abs(t)<=d?t:t-G(t)*u}function j(t,e,n){var i=t*n,r=.5*t;return i=Math.pow((1-i)/(1+i),r),Math.tan(.5*(a-e))/i}function H(t,e){for(var n,i,r=.5*t,o=a-2*Math.atan(e),s=0;s<=15;s++)if(n=t*Math.sin(o),o+=i=a-2*Math.atan(e*Math.pow((1-n)/(1+n),r))-o,Math.abs(i)<=1e-10)return o;return-9999}function W(t){return t}var U=[{init:function(){var t=this.b/this.a;this.es=1-t*t,"x0"in this||(this.x0=0),"y0"in this||(this.y0=0),this.e=Math.sqrt(this.es),this.lat_ts?this.sphere?this.k0=Math.cos(this.lat_ts):this.k0=z(this.e,Math.sin(this.lat_ts),Math.cos(this.lat_ts)):this.k0||(this.k?this.k0=this.k:this.k0=1)},forward:function(t){var e,n,i=t.x,r=t.y;if(r*h>90&&r*h<-90&&i*h>180&&i*h<-180)return null;if(Math.abs(Math.abs(r)-a)<=s)return null;if(this.sphere)e=this.x0+this.a*this.k0*V(i-this.long0),n=this.y0+this.a*this.k0*Math.log(Math.tan(c+.5*r));else{var o=Math.sin(r),l=j(this.e,r,o);e=this.x0+this.a*this.k0*V(i-this.long0),n=this.y0-this.a*this.k0*Math.log(l)}return t.x=e,t.y=n,t},inverse:function(t){var e,n,i=t.x-this.x0,r=t.y-this.y0;if(this.sphere)n=a-2*Math.atan(Math.exp(-r/(this.a*this.k0)));else{var o=Math.exp(-r/(this.a*this.k0));if(-9999===(n=H(this.e,o)))return null}return e=V(this.long0+i/(this.a*this.k0)),t.x=e,t.y=n,t},names:["Mercator","Popular Visualisation Pseudo Mercator","Mercator_1SP","Mercator_Auxiliary_Sphere","merc"]},{init:function(){},forward:W,inverse:W,names:["longlat","identity"]}],q={},X=[];function Y(t,e){var n=X.length;return t.names?(X[n]=t,t.names.forEach((function(t){q[t.toLowerCase()]=n})),this):(console.log(e),!0)}const Z={start:function(){U.forEach(Y)},add:Y,get:function(t){if(!t)return!1;var e=t.toLowerCase();return void 0!==q[e]&&X[q[e]]?X[q[e]]:void 0}};var $={MERIT:{a:6378137,rf:298.257,ellipseName:"MERIT 1983"},SGS85:{a:6378136,rf:298.257,ellipseName:"Soviet Geodetic System 85"},GRS80:{a:6378137,rf:298.257222101,ellipseName:"GRS 1980(IUGG, 1980)"},IAU76:{a:6378140,rf:298.257,ellipseName:"IAU 1976"},airy:{a:6377563.396,b:6356256.91,ellipseName:"Airy 1830"},APL4:{a:6378137,rf:298.25,ellipseName:"Appl. Physics. 1965"},NWL9D:{a:6378145,rf:298.25,ellipseName:"Naval Weapons Lab., 1965"},mod_airy:{a:6377340.189,b:6356034.446,ellipseName:"Modified Airy"},andrae:{a:6377104.43,rf:300,ellipseName:"Andrae 1876 (Den., Iclnd.)"},aust_SA:{a:6378160,rf:298.25,ellipseName:"Australian Natl & S. Amer. 1969"},GRS67:{a:6378160,rf:298.247167427,ellipseName:"GRS 67(IUGG 1967)"},bessel:{a:6377397.155,rf:299.1528128,ellipseName:"Bessel 1841"},bess_nam:{a:6377483.865,rf:299.1528128,ellipseName:"Bessel 1841 (Namibia)"},clrk66:{a:6378206.4,b:6356583.8,ellipseName:"Clarke 1866"},clrk80:{a:6378249.145,rf:293.4663,ellipseName:"Clarke 1880 mod."},clrk80ign:{a:6378249.2,b:6356515,rf:293.4660213,ellipseName:"Clarke 1880 (IGN)"},clrk58:{a:6378293.645208759,rf:294.2606763692654,ellipseName:"Clarke 1858"},CPM:{a:6375738.7,rf:334.29,ellipseName:"Comm. des Poids et Mesures 1799"},delmbr:{a:6376428,rf:311.5,ellipseName:"Delambre 1810 (Belgium)"},engelis:{a:6378136.05,rf:298.2566,ellipseName:"Engelis 1985"},evrst30:{a:6377276.345,rf:300.8017,ellipseName:"Everest 1830"},evrst48:{a:6377304.063,rf:300.8017,ellipseName:"Everest 1948"},evrst56:{a:6377301.243,rf:300.8017,ellipseName:"Everest 1956"},evrst69:{a:6377295.664,rf:300.8017,ellipseName:"Everest 1969"},evrstSS:{a:6377298.556,rf:300.8017,ellipseName:"Everest (Sabah & Sarawak)"},fschr60:{a:6378166,rf:298.3,ellipseName:"Fischer (Mercury Datum) 1960"},fschr60m:{a:6378155,rf:298.3,ellipseName:"Fischer 1960"},fschr68:{a:6378150,rf:298.3,ellipseName:"Fischer 1968"},helmert:{a:6378200,rf:298.3,ellipseName:"Helmert 1906"},hough:{a:6378270,rf:297,ellipseName:"Hough"},intl:{a:6378388,rf:297,ellipseName:"International 1909 (Hayford)"},kaula:{a:6378163,rf:298.24,ellipseName:"Kaula 1961"},lerch:{a:6378139,rf:298.257,ellipseName:"Lerch 1979"},mprts:{a:6397300,rf:191,ellipseName:"Maupertius 1738"},new_intl:{a:6378157.5,b:6356772.2,ellipseName:"New International 1967"},plessis:{a:6376523,rf:6355863,ellipseName:"Plessis 1817 (France)"},krass:{a:6378245,rf:298.3,ellipseName:"Krassovsky, 1942"},SEasia:{a:6378155,b:6356773.3205,ellipseName:"Southeast Asia"},walbeck:{a:6376896,b:6355834.8467,ellipseName:"Walbeck"},WGS60:{a:6378165,rf:298.3,ellipseName:"WGS 60"},WGS66:{a:6378145,rf:298.25,ellipseName:"WGS 66"},WGS7:{a:6378135,rf:298.26,ellipseName:"WGS 72"}},K=$.WGS84={a:6378137,rf:298.257223563,ellipseName:"WGS 84"};$.sphere={a:6370997,b:6370997,ellipseName:"Normal Sphere (r=6370997)"};var J={wgs84:{towgs84:"0,0,0",ellipse:"WGS84",datumName:"WGS84"},ch1903:{towgs84:"674.374,15.056,405.346",ellipse:"bessel",datumName:"swiss"},ggrs87:{towgs84:"-199.87,74.79,246.62",ellipse:"GRS80",datumName:"Greek_Geodetic_Reference_System_1987"},nad83:{towgs84:"0,0,0",ellipse:"GRS80",datumName:"North_American_Datum_1983"},nad27:{nadgrids:"@conus,@alaska,@ntv2_0.gsb,@ntv1_can.dat",ellipse:"clrk66",datumName:"North_American_Datum_1927"},potsdam:{towgs84:"598.1,73.7,418.2,0.202,0.045,-2.455,6.7",ellipse:"bessel",datumName:"Potsdam Rauenberg 1950 DHDN"},carthage:{towgs84:"-263.0,6.0,431.0",ellipse:"clark80",datumName:"Carthage 1934 Tunisia"},hermannskogel:{towgs84:"577.326,90.129,463.919,5.137,1.474,5.297,2.4232",ellipse:"bessel",datumName:"Hermannskogel"},militargeographische_institut:{towgs84:"577.326,90.129,463.919,5.137,1.474,5.297,2.4232",ellipse:"bessel",datumName:"Militar-Geographische Institut"},osni52:{towgs84:"482.530,-130.596,564.557,-1.042,-0.214,-0.631,8.15",ellipse:"airy",datumName:"Irish National"},ire65:{towgs84:"482.530,-130.596,564.557,-1.042,-0.214,-0.631,8.15",ellipse:"mod_airy",datumName:"Ireland 1965"},rassadiran:{towgs84:"-133.63,-157.5,-158.62",ellipse:"intl",datumName:"Rassadiran"},nzgd49:{towgs84:"59.47,-5.04,187.44,0.47,-0.1,1.024,-4.5993",ellipse:"intl",datumName:"New Zealand Geodetic Datum 1949"},osgb36:{towgs84:"446.448,-125.157,542.060,0.1502,0.2470,0.8421,-20.4894",ellipse:"airy",datumName:"Ordnance Survey of Great Britain 1936"},s_jtsk:{towgs84:"589,76,480",ellipse:"bessel",datumName:"S-JTSK (Ferro)"},beduaram:{towgs84:"-106,-87,188",ellipse:"clrk80",datumName:"Beduaram"},gunung_segara:{towgs84:"-403,684,41",ellipse:"bessel",datumName:"Gunung Segara Jakarta"},rnb72:{towgs84:"106.869,-52.2978,103.724,-0.33657,0.456955,-1.84218,1",ellipse:"intl",datumName:"Reseau National Belge 1972"}};for(var Q in J){var tt=J[Q];J[tt.datumName]=tt}const et=J;const nt=function(t,e,n,i,r,a,s){var l={};return l.datum_type=void 0===t||"none"===t?5:4,e&&(l.datum_params=e.map(parseFloat),0===l.datum_params[0]&&0===l.datum_params[1]&&0===l.datum_params[2]||(l.datum_type=1),l.datum_params.length>3&&(0===l.datum_params[3]&&0===l.datum_params[4]&&0===l.datum_params[5]&&0===l.datum_params[6]||(l.datum_type=2,l.datum_params[3]*=o,l.datum_params[4]*=o,l.datum_params[5]*=o,l.datum_params[6]=l.datum_params[6]/1e6+1))),s&&(l.datum_type=3,l.grids=s),l.a=n,l.b=i,l.es=r,l.ep2=a,l};var it={};function rt(t){if(0===t.length)return null;var e="@"===t[0];return e&&(t=t.slice(1)),"null"===t?{name:"null",mandatory:!e,grid:null,isNull:!0}:{name:t,mandatory:!e,grid:it[t]||null,isNull:!1}}function ot(t){return t/3600*Math.PI/180}function at(t,e,n){return String.fromCharCode.apply(null,new Uint8Array(t.buffer.slice(e,n)))}function st(t){return t.map((function(t){return[ot(t.longitudeShift),ot(t.latitudeShift)]}))}function lt(t,e,n){return{name:at(t,e+8,e+16).trim(),parent:at(t,e+24,e+24+8).trim(),lowerLatitude:t.getFloat64(e+72,n),upperLatitude:t.getFloat64(e+88,n),lowerLongitude:t.getFloat64(e+104,n),upperLongitude:t.getFloat64(e+120,n),latitudeInterval:t.getFloat64(e+136,n),longitudeInterval:t.getFloat64(e+152,n),gridNodeCount:t.getInt32(e+168,n)}}function ht(t,e,n,i){for(var r=e+176,o=[],a=0;a<n.gridNodeCount;a++){var s={latitudeShift:t.getFloat32(r+16*a,i),longitudeShift:t.getFloat32(r+16*a+4,i),latitudeAccuracy:t.getFloat32(r+16*a+8,i),longitudeAccuracy:t.getFloat32(r+16*a+12,i)};o.push(s)}return o}function ct(t,e){if(!(this instanceof ct))return new ct(t);e=e||function(t){if(t)throw t};var n=F(t);if("object"==typeof n){var i=ct.projections.get(n.projName);if(i){if(n.datumCode&&"none"!==n.datumCode){var r=m(et,n.datumCode);r&&(n.datum_params=n.datum_params||(r.towgs84?r.towgs84.split(","):null),n.ellps=r.ellipse,n.datumName=r.datumName?r.datumName:n.datumCode)}n.k0=n.k0||1,n.axis=n.axis||"enu",n.ellps=n.ellps||"wgs84",n.lat1=n.lat1||n.lat0;var o=function(t,e,n,i,r){if(!t){var o=m($,i);o||(o=K),t=o.a,e=o.b,n=o.rf}return n&&!e&&(e=(1-1/n)*t),(0===n||Math.abs(t-e)<s)&&(r=!0,e=t),{a:t,b:e,rf:n,sphere:r}}(n.a,n.b,n.rf,n.ellps,n.sphere),a=function(t,e,n,i){var r=t*t,o=e*e,a=(r-o)/r,s=0;return i?(r=(t*=1-a*(.16666666666666666+a*(.04722222222222222+.022156084656084655*a)))*t,a=0):s=Math.sqrt(a),{es:a,e:s,ep2:(r-o)/o}}(o.a,o.b,o.rf,n.R_A),l=function(t){return void 0===t?null:t.split(",").map(rt)}(n.nadgrids),h=n.datum||nt(n.datumCode,n.datum_params,o.a,o.b,a.es,a.ep2,l);B(this,n),B(this,i),this.a=o.a,this.b=o.b,this.rf=o.rf,this.sphere=o.sphere,this.es=a.es,this.e=a.e,this.ep2=a.ep2,this.datum=h,this.init(),e(null,this)}else e("Could not get projection name from: "+t)}else e("Could not parse to valid json: "+t)}ct.projections=Z,ct.projections.start();const ut=ct;function dt(t,e,n){var i,r,o,s,l=t.x,h=t.y,c=t.z?t.z:0;if(h<-a&&h>-1.001*a)h=-a;else if(h>a&&h<1.001*a)h=a;else{if(h<-a)return{x:-1/0,y:-1/0,z:t.z};if(h>a)return{x:1/0,y:1/0,z:t.z}}return l>Math.PI&&(l-=2*Math.PI),r=Math.sin(h),s=Math.cos(h),o=r*r,{x:((i=n/Math.sqrt(1-e*o))+c)*s*Math.cos(l),y:(i+c)*s*Math.sin(l),z:(i*(1-e)+c)*r}}function pt(t,e,n,i){var r,o,a,s,l,h,c,u,d,p,f,g,m,v,y,_=1e-12,x=t.x,b=t.y,w=t.z?t.z:0;if(r=Math.sqrt(x*x+b*b),o=Math.sqrt(x*x+b*b+w*w),r/n<_){if(v=0,o/n<_)return y=-i,{x:t.x,y:t.y,z:t.z}}else v=Math.atan2(b,x);a=w/o,u=(s=r/o)*(1-e)*(l=1/Math.sqrt(1-e*(2-e)*s*s)),d=a*l,m=0;do{m++,h=e*(c=n/Math.sqrt(1-e*d*d))/(c+(y=r*u+w*d-c*(1-e*d*d))),g=(f=a*(l=1/Math.sqrt(1-h*(2-h)*s*s)))*u-(p=s*(1-h)*l)*d,u=p,d=f}while(g*g>1e-24&&m<30);return{x:v,y:Math.atan(f/Math.abs(p)),z:y}}function ft(t){return 1===t||2===t}function gt(t,e,n){if(function(t,e){return t.datum_type===e.datum_type&&!(t.a!==e.a||Math.abs(t.es-e.es)>5e-11)&&(1===t.datum_type?t.datum_params[0]===e.datum_params[0]&&t.datum_params[1]===e.datum_params[1]&&t.datum_params[2]===e.datum_params[2]:2!==t.datum_type||t.datum_params[0]===e.datum_params[0]&&t.datum_params[1]===e.datum_params[1]&&t.datum_params[2]===e.datum_params[2]&&t.datum_params[3]===e.datum_params[3]&&t.datum_params[4]===e.datum_params[4]&&t.datum_params[5]===e.datum_params[5]&&t.datum_params[6]===e.datum_params[6])}(t,e))return n;if(5===t.datum_type||5===e.datum_type)return n;var o=t.a,a=t.es;if(3===t.datum_type){if(0!==mt(t,!1,n))return;o=i,a=r}var s=e.a,l=e.b,h=e.es;if(3===e.datum_type&&(s=i,l=6356752.314,h=r),a===h&&o===s&&!ft(t.datum_type)&&!ft(e.datum_type))return n;if((n=dt(n,a,o),ft(t.datum_type)&&(n=function(t,e,n){if(1===e)return{x:t.x+n[0],y:t.y+n[1],z:t.z+n[2]};if(2===e){var i=n[0],r=n[1],o=n[2],a=n[3],s=n[4],l=n[5],h=n[6];return{x:h*(t.x-l*t.y+s*t.z)+i,y:h*(l*t.x+t.y-a*t.z)+r,z:h*(-s*t.x+a*t.y+t.z)+o}}}(n,t.datum_type,t.datum_params)),ft(e.datum_type)&&(n=function(t,e,n){if(1===e)return{x:t.x-n[0],y:t.y-n[1],z:t.z-n[2]};if(2===e){var i=n[0],r=n[1],o=n[2],a=n[3],s=n[4],l=n[5],h=n[6],c=(t.x-i)/h,u=(t.y-r)/h,d=(t.z-o)/h;return{x:c+l*u-s*d,y:-l*c+u+a*d,z:s*c-a*u+d}}}(n,e.datum_type,e.datum_params)),n=pt(n,h,s,l),3===e.datum_type)&&0!==mt(e,!0,n))return;return n}function mt(t,e,n){if(null===t.grids||0===t.grids.length)return console.log("Grid shift grids not found"),-1;var i={x:-n.x,y:n.y},r={x:Number.NaN,y:Number.NaN},o=[];t:for(var a=0;a<t.grids.length;a++){var s=t.grids[a];if(o.push(s.name),s.isNull){r=i;break}if(s.mandatory,null!==s.grid)for(var l=s.grid.subgrids,c=0,u=l.length;c<u;c++){var d=l[c],p=(Math.abs(d.del[1])+Math.abs(d.del[0]))/1e4,f=d.ll[0]-p,g=d.ll[1]-p,m=d.ll[0]+(d.lim[0]-1)*d.del[0]+p,v=d.ll[1]+(d.lim[1]-1)*d.del[1]+p;if(!(g>i.y||f>i.x||v<i.y||m<i.x)&&(r=vt(i,e,d),!isNaN(r.x)))break t}else if(s.mandatory)return console.log("Unable to find mandatory grid '"+s.name+"'"),-1}return isNaN(r.x)?(console.log("Failed to find a grid shift table for location '"+-i.x*h+" "+i.y*h+" tried: '"+o+"'"),-1):(n.x=-r.x,n.y=r.y,0)}function vt(t,e,n){var i={x:Number.NaN,y:Number.NaN};if(isNaN(t.x))return i;var r={x:t.x,y:t.y};r.x-=n.ll[0],r.y-=n.ll[1],r.x=V(r.x-Math.PI)+Math.PI;var o=yt(r,n);if(e){if(isNaN(o.x))return i;o.x=r.x-o.x,o.y=r.y-o.y;var a,s,l=9;do{if(s=yt(o,n),isNaN(s.x)){console.log("Inverse grid shift iteration failed, presumably at grid edge. Using first approximation.");break}a={x:r.x-(s.x+o.x),y:r.y-(s.y+o.y)},o.x+=a.x,o.y+=a.y}while(l--&&Math.abs(a.x)>1e-12&&Math.abs(a.y)>1e-12);if(l<0)return console.log("Inverse grid shift iterator failed to converge."),i;i.x=V(o.x+n.ll[0]),i.y=o.y+n.ll[1]}else isNaN(o.x)||(i.x=t.x+o.x,i.y=t.y+o.y);return i}function yt(t,e){var n,i={x:t.x/e.del[0],y:t.y/e.del[1]},r=Math.floor(i.x),o=Math.floor(i.y),a=i.x-1*r,s=i.y-1*o,l={x:Number.NaN,y:Number.NaN};if(r<0||r>=e.lim[0])return l;if(o<0||o>=e.lim[1])return l;n=o*e.lim[0]+r;var h=e.cvs[n][0],c=e.cvs[n][1];n++;var u=e.cvs[n][0],d=e.cvs[n][1];n+=e.lim[0];var p=e.cvs[n][0],f=e.cvs[n][1];n--;var g=e.cvs[n][0],m=e.cvs[n][1],v=a*s,y=a*(1-s),_=(1-a)*(1-s),x=(1-a)*s;return l.x=_*h+y*u+x*g+v*p,l.y=_*c+y*d+x*m+v*f,l}function _t(t,e,n){var i,r,o,a=n.x,s=n.y,l=n.z||0,h={};for(o=0;o<3;o++)if(!e||2!==o||void 0!==n.z)switch(0===o?(i=a,r=-1!=="ew".indexOf(t.axis[o])?"x":"y"):1===o?(i=s,r=-1!=="ns".indexOf(t.axis[o])?"y":"x"):(i=l,r="z"),t.axis[o]){case"e":case"n":h[r]=i;break;case"w":case"s":h[r]=-i;break;case"u":void 0!==n[r]&&(h.z=i);break;case"d":void 0!==n[r]&&(h.z=-i);break;default:return null}return h}function xt(t){var e={x:t[0],y:t[1]};return t.length>2&&(e.z=t[2]),t.length>3&&(e.m=t[3]),e}function bt(t){if("function"==typeof Number.isFinite){if(Number.isFinite(t))return;throw new TypeError("coordinates must be finite numbers")}if("number"!=typeof t||t!=t||!isFinite(t))throw new TypeError("coordinates must be finite numbers")}function wt(t,e,n,i){var r,o=void 0!==(n=Array.isArray(n)?xt(n):{x:n.x,y:n.y,z:n.z,m:n.m}).z;if(function(t){bt(t.x),bt(t.y)}(n),t.datum&&e.datum&&function(t,e){return(1===t.datum.datum_type||2===t.datum.datum_type||3===t.datum.datum_type)&&"WGS84"!==e.datumCode||(1===e.datum.datum_type||2===e.datum.datum_type||3===e.datum.datum_type)&&"WGS84"!==t.datumCode}(t,e)&&(n=wt(t,r=new ut("WGS84"),n,i),t=r),i&&"enu"!==t.axis&&(n=_t(t,!1,n)),"longlat"===t.projName)n={x:n.x*l,y:n.y*l,z:n.z||0};else if(t.to_meter&&(n={x:n.x*t.to_meter,y:n.y*t.to_meter,z:n.z||0}),!(n=t.inverse(n)))return;if(t.from_greenwich&&(n.x+=t.from_greenwich),n=gt(t.datum,e.datum,n))return e.from_greenwich&&(n={x:n.x-e.from_greenwich,y:n.y,z:n.z||0}),"longlat"===e.projName?n={x:n.x*h,y:n.y*h,z:n.z||0}:(n=e.forward(n),e.to_meter&&(n={x:n.x/e.to_meter,y:n.y/e.to_meter,z:n.z||0})),i&&"enu"!==e.axis?_t(e,!0,n):(n&&!o&&delete n.z,n)}var St=ut("WGS84");function Tt(t,e,n,i){var r,o,a;return Array.isArray(n)?(r=wt(t,e,n,i)||{x:NaN,y:NaN},n.length>2?void 0!==t.name&&"geocent"===t.name||void 0!==e.name&&"geocent"===e.name?"number"==typeof r.z?[r.x,r.y,r.z].concat(n.slice(3)):[r.x,r.y,n[2]].concat(n.slice(3)):[r.x,r.y].concat(n.slice(2)):[r.x,r.y]):(o=wt(t,e,n,i),2===(a=Object.keys(n)).length||a.forEach((function(i){if(void 0!==t.name&&"geocent"===t.name||void 0!==e.name&&"geocent"===e.name){if("x"===i||"y"===i||"z"===i)return}else if("x"===i||"y"===i)return;o[i]=n[i]})),o)}function Mt(t){return t instanceof ut?t:t.oProj?t.oProj:ut(t)}const At=function(t,e,n){t=Mt(t);var i,r=!1;return void 0===e?(e=t,t=St,r=!0):(void 0!==e.x||Array.isArray(e))&&(n=e,e=t,t=St,r=!0),e=Mt(e),n?Tt(t,e,n):(i={forward:function(n,i){return Tt(t,e,n,i)},inverse:function(n,i){return Tt(e,t,n,i)}},r&&(i.oProj=e),i)};var Ct="AJSAJS",It="AFAFAF",Et=65,kt=73,Lt=79,Dt=86,Pt=90;const Rt={forward:Ot,inverse:function(t){var e=zt(jt(t.toUpperCase()));if(e.lat&&e.lon)return[e.lon,e.lat,e.lon,e.lat];return[e.left,e.bottom,e.right,e.top]},toPoint:Nt};function Ot(t,e){return e=e||5,function(t,e){var n="00000"+t.easting,i="00000"+t.northing;return t.zoneNumber+t.zoneLetter+(p=t.easting,f=t.northing,g=t.zoneNumber,m=Vt(g),v=Math.floor(p/1e5),y=Math.floor(f/1e5)%20,r=v,o=y,a=m,s=a-1,l=Ct.charCodeAt(s),h=It.charCodeAt(s),c=l+r-1,u=h+o,d=!1,c>Pt&&(c=c-Pt+Et-1,d=!0),(c===kt||l<kt&&c>kt||(c>kt||l<kt)&&d)&&c++,(c===Lt||l<Lt&&c>Lt||(c>Lt||l<Lt)&&d)&&++c===kt&&c++,c>Pt&&(c=c-Pt+Et-1),u>Dt?(u=u-Dt+Et-1,d=!0):d=!1,(u===kt||h<kt&&u>kt||(u>kt||h<kt)&&d)&&u++,(u===Lt||h<Lt&&u>Lt||(u>Lt||h<Lt)&&d)&&++u===kt&&u++,u>Dt&&(u=u-Dt+Et-1),String.fromCharCode(c)+String.fromCharCode(u))+n.substr(n.length-5,e)+i.substr(i.length-5,e);var r,o,a,s,l,h,c,u,d;var p,f,g,m,v,y}(function(t){var e,n,i,r,o,a,s,l,h=t.lat,c=t.lon,u=6378137,d=.00669438,p=.9996,f=Ft(h),g=Ft(c);l=Math.floor((c+180)/6)+1,180===c&&(l=60);h>=56&&h<64&&c>=3&&c<12&&(l=32);h>=72&&h<84&&(c>=0&&c<9?l=31:c>=9&&c<21?l=33:c>=21&&c<33?l=35:c>=33&&c<42&&(l=37));s=Ft(6*(l-1)-180+3),e=d/(1-d),n=u/Math.sqrt(1-d*Math.sin(f)*Math.sin(f)),i=Math.tan(f)*Math.tan(f),r=e*Math.cos(f)*Math.cos(f),o=Math.cos(f)*(g-s),a=u*((1-d/4-3*d*d/64-5*d*d*d/256)*f-(3*d/8+3*d*d/32+45*d*d*d/1024)*Math.sin(2*f)+(15*d*d/256+45*d*d*d/1024)*Math.sin(4*f)-35*d*d*d/3072*Math.sin(6*f));var m=p*n*(o+(1-i+r)*o*o*o/6+(5-18*i+i*i+72*r-58*e)*o*o*o*o*o/120)+5e5,v=p*(a+n*Math.tan(f)*(o*o/2+(5-i+9*r+4*r*r)*o*o*o*o/24+(61-58*i+i*i+600*r-330*e)*o*o*o*o*o*o/720));h<0&&(v+=1e7);return{northing:Math.round(v),easting:Math.round(m),zoneNumber:l,zoneLetter:Gt(h)}}({lat:t[1],lon:t[0]}),e)}function Nt(t){var e=zt(jt(t.toUpperCase()));return e.lat&&e.lon?[e.lon,e.lat]:[(e.left+e.right)/2,(e.top+e.bottom)/2]}function Ft(t){return t*(Math.PI/180)}function Bt(t){return t/Math.PI*180}function zt(t){var e=t.northing,n=t.easting,i=t.zoneLetter,r=t.zoneNumber;if(r<0||r>60)return null;var o,a,s,l,h,c,u,d,p,f=.9996,g=6378137,m=.00669438,v=(1-Math.sqrt(.99330562))/(1+Math.sqrt(.99330562)),y=n-5e5,_=e;i<"N"&&(_-=1e7),u=6*(r-1)-180+3,o=.006739496752268451,p=(d=_/f/6367449.145945056)+(3*v/2-27*v*v*v/32)*Math.sin(2*d)+(21*v*v/16-55*v*v*v*v/32)*Math.sin(4*d)+151*v*v*v/96*Math.sin(6*d),a=g/Math.sqrt(1-m*Math.sin(p)*Math.sin(p)),s=Math.tan(p)*Math.tan(p),l=o*Math.cos(p)*Math.cos(p),h=.99330562*g/Math.pow(1-m*Math.sin(p)*Math.sin(p),1.5),c=y/(a*f);var x=p-a*Math.tan(p)/h*(c*c/2-(5+3*s+10*l-4*l*l-9*o)*c*c*c*c/24+(61+90*s+298*l+45*s*s-1.6983531815716497-3*l*l)*c*c*c*c*c*c/720);x=Bt(x);var b,w=(c-(1+2*s+l)*c*c*c/6+(5-2*l+28*s-3*l*l+8*o+24*s*s)*c*c*c*c*c/120)/Math.cos(p);if(w=u+Bt(w),t.accuracy){var S=zt({northing:t.northing+t.accuracy,easting:t.easting+t.accuracy,zoneLetter:t.zoneLetter,zoneNumber:t.zoneNumber});b={top:S.lat,right:S.lon,bottom:x,left:w}}else b={lat:x,lon:w};return b}function Gt(t){var e="Z";return 84>=t&&t>=72?e="X":72>t&&t>=64?e="W":64>t&&t>=56?e="V":56>t&&t>=48?e="U":48>t&&t>=40?e="T":40>t&&t>=32?e="S":32>t&&t>=24?e="R":24>t&&t>=16?e="Q":16>t&&t>=8?e="P":8>t&&t>=0?e="N":0>t&&t>=-8?e="M":-8>t&&t>=-16?e="L":-16>t&&t>=-24?e="K":-24>t&&t>=-32?e="J":-32>t&&t>=-40?e="H":-40>t&&t>=-48?e="G":-48>t&&t>=-56?e="F":-56>t&&t>=-64?e="E":-64>t&&t>=-72?e="D":-72>t&&t>=-80&&(e="C"),e}function Vt(t){var e=t%6;return 0===e&&(e=6),e}function jt(t){if(t&&0===t.length)throw"MGRSPoint coverting from nothing";for(var e,n=t.length,i=null,r="",o=0;!/[A-Z]/.test(e=t.charAt(o));){if(o>=2)throw"MGRSPoint bad conversion from: "+t;r+=e,o++}var a=parseInt(r,10);if(0===o||o+3>n)throw"MGRSPoint bad conversion from: "+t;var s=t.charAt(o++);if(s<="A"||"B"===s||"Y"===s||s>="Z"||"I"===s||"O"===s)throw"MGRSPoint zone letter "+s+" not handled: "+t;i=t.substring(o,o+=2);for(var l=Vt(a),h=function(t,e){var n=Ct.charCodeAt(e-1),i=1e5,r=!1;for(;n!==t.charCodeAt(0);){if(++n===kt&&n++,n===Lt&&n++,n>Pt){if(r)throw"Bad character: "+t;n=Et,r=!0}i+=1e5}return i}(i.charAt(0),l),c=function(t,e){if(t>"V")throw"MGRSPoint given invalid Northing "+t;var n=It.charCodeAt(e-1),i=0,r=!1;for(;n!==t.charCodeAt(0);){if(++n===kt&&n++,n===Lt&&n++,n>Dt){if(r)throw"Bad character: "+t;n=Et,r=!0}i+=1e5}return i}(i.charAt(1),l);c<Ht(s);)c+=2e6;var u=n-o;if(u%2!=0)throw"MGRSPoint has to have an even number \nof digits after the zone letter and two 100km letters - front \nhalf for easting meters, second half for \nnorthing meters"+t;var d,p,f,g=u/2,m=0,v=0;return g>0&&(d=1e5/Math.pow(10,g),p=t.substring(o,o+g),m=parseFloat(p)*d,f=t.substring(o+g),v=parseFloat(f)*d),{easting:m+h,northing:v+c,zoneLetter:s,zoneNumber:a,accuracy:d}}function Ht(t){var e;switch(t){case"C":e=11e5;break;case"D":e=2e6;break;case"E":e=28e5;break;case"F":e=37e5;break;case"G":e=46e5;break;case"H":e=55e5;break;case"J":e=64e5;break;case"K":e=73e5;break;case"L":e=82e5;break;case"M":e=91e5;break;case"N":e=0;break;case"P":e=8e5;break;case"Q":e=17e5;break;case"R":e=26e5;break;case"S":e=35e5;break;case"T":e=44e5;break;case"U":e=53e5;break;case"V":e=62e5;break;case"W":e=7e6;break;case"X":e=79e5;break;default:e=-1}if(e>=0)return e;throw"Invalid zone letter: "+t}function Wt(t,e,n){if(!(this instanceof Wt))return new Wt(t,e,n);if(Array.isArray(t))this.x=t[0],this.y=t[1],this.z=t[2]||0;else if("object"==typeof t)this.x=t.x,this.y=t.y,this.z=t.z||0;else if("string"==typeof t&&void 0===e){var i=t.split(",");this.x=parseFloat(i[0],10),this.y=parseFloat(i[1],10),this.z=parseFloat(i[2],10)||0}else this.x=t,this.y=e,this.z=n||0;console.warn("proj4.Point will be removed in version 3, use proj4.toPoint")}Wt.fromMGRS=function(t){return new Wt(Nt(t))},Wt.prototype.toMGRS=function(t){return Ot([this.x,this.y],t)};const Ut=Wt;var qt=.046875,Xt=.01953125,Yt=.01068115234375;function Zt(t){var e=[];e[0]=1-t*(.25+t*(qt+t*(Xt+t*Yt))),e[1]=t*(.75-t*(qt+t*(Xt+t*Yt)));var n=t*t;return e[2]=n*(.46875-t*(.013020833333333334+.007120768229166667*t)),n*=t,e[3]=n*(.3645833333333333-.005696614583333333*t),e[4]=n*t*.3076171875,e}function $t(t,e,n,i){return n*=e,e*=e,i[0]*t-n*(i[1]+e*(i[2]+e*(i[3]+e*i[4])))}function Kt(t,e,n){for(var i=1/(1-e),r=t,o=20;o;--o){var a=Math.sin(r),l=1-e*a*a;if(r-=l=($t(r,a,Math.cos(r),n)-t)*(l*Math.sqrt(l))*i,Math.abs(l)<s)return r}return r}const Jt={init:function(){this.x0=void 0!==this.x0?this.x0:0,this.y0=void 0!==this.y0?this.y0:0,this.long0=void 0!==this.long0?this.long0:0,this.lat0=void 0!==this.lat0?this.lat0:0,this.es&&(this.en=Zt(this.es),this.ml0=$t(this.lat0,Math.sin(this.lat0),Math.cos(this.lat0),this.en))},forward:function(t){var e,n,i,r=t.x,o=t.y,a=V(r-this.long0),l=Math.sin(o),h=Math.cos(o);if(this.es){var c=h*a,u=Math.pow(c,2),d=this.ep2*Math.pow(h,2),p=Math.pow(d,2),f=Math.abs(h)>s?Math.tan(o):0,g=Math.pow(f,2),m=Math.pow(g,2);e=1-this.es*Math.pow(l,2),c/=Math.sqrt(e);var v=$t(o,l,h,this.en);n=this.a*(this.k0*c*(1+u/6*(1-g+d+u/20*(5-18*g+m+14*d-58*g*d+u/42*(61+179*m-m*g-479*g)))))+this.x0,i=this.a*(this.k0*(v-this.ml0+l*a*c/2*(1+u/12*(5-g+9*d+4*p+u/30*(61+m-58*g+270*d-330*g*d+u/56*(1385+543*m-m*g-3111*g))))))+this.y0}else{var y=h*Math.sin(a);if(Math.abs(Math.abs(y)-1)<s)return 93;if(n=.5*this.a*this.k0*Math.log((1+y)/(1-y))+this.x0,i=h*Math.cos(a)/Math.sqrt(1-Math.pow(y,2)),(y=Math.abs(i))>=1){if(y-1>s)return 93;i=0}else i=Math.acos(i);o<0&&(i=-i),i=this.a*this.k0*(i-this.lat0)+this.y0}return t.x=n,t.y=i,t},inverse:function(t){var e,n,i,r,o=(t.x-this.x0)*(1/this.a),l=(t.y-this.y0)*(1/this.a);if(this.es)if(n=Kt(e=this.ml0+l/this.k0,this.es,this.en),Math.abs(n)<a){var h=Math.sin(n),c=Math.cos(n),u=Math.abs(c)>s?Math.tan(n):0,d=this.ep2*Math.pow(c,2),p=Math.pow(d,2),f=Math.pow(u,2),g=Math.pow(f,2);e=1-this.es*Math.pow(h,2);var m=o*Math.sqrt(e)/this.k0,v=Math.pow(m,2);i=n-(e*=u)*v/(1-this.es)*.5*(1-v/12*(5+3*f-9*d*f+d-4*p-v/30*(61+90*f-252*d*f+45*g+46*d-v/56*(1385+3633*f+4095*g+1574*g*f)))),r=V(this.long0+m*(1-v/6*(1+2*f+d-v/20*(5+28*f+24*g+8*d*f+6*d-v/42*(61+662*f+1320*g+720*g*f))))/c)}else i=a*G(l),r=0;else{var y=Math.exp(o/this.k0),_=.5*(y-1/y),x=this.lat0+l/this.k0,b=Math.cos(x);e=Math.sqrt((1-Math.pow(b,2))/(1+Math.pow(_,2))),i=Math.asin(e),l<0&&(i=-i),r=0===_&&0===b?0:V(Math.atan2(_,b)+this.long0)}return t.x=r,t.y=i,t},names:["Fast_Transverse_Mercator","Fast Transverse Mercator"]};function Qt(t){var e=Math.exp(t);return e=(e-1/e)/2}function te(t,e){t=Math.abs(t),e=Math.abs(e);var n=Math.max(t,e),i=Math.min(t,e)/(n||1);return n*Math.sqrt(1+Math.pow(i,2))}function ee(t){var e=Math.abs(t);return e=function(t){var e=1+t,n=e-1;return 0===n?t:t*Math.log(e)/n}(e*(1+e/(te(1,e)+1))),t<0?-e:e}function ne(t,e){for(var n,i=2*Math.cos(2*e),r=t.length-1,o=t[r],a=0;--r>=0;)n=i*o-a+t[r],a=o,o=n;return e+n*Math.sin(2*e)}function ie(t,e,n){for(var i,r,o=Math.sin(e),a=Math.cos(e),s=Qt(n),l=function(t){var e=Math.exp(t);return(e+1/e)/2}(n),h=2*a*l,c=-2*o*s,u=t.length-1,d=t[u],p=0,f=0,g=0;--u>=0;)i=f,r=p,d=h*(f=d)-i-c*(p=g)+t[u],g=c*f-r+h*p;return[(h=o*l)*d-(c=a*s)*g,h*g+c*d]}const re={init:function(){if(!this.approx&&(isNaN(this.es)||this.es<=0))throw new Error('Incorrect elliptical usage. Try using the +approx option in the proj string, or PROJECTION["Fast_Transverse_Mercator"] in the WKT.');this.approx&&(Jt.init.apply(this),this.forward=Jt.forward,this.inverse=Jt.inverse),this.x0=void 0!==this.x0?this.x0:0,this.y0=void 0!==this.y0?this.y0:0,this.long0=void 0!==this.long0?this.long0:0,this.lat0=void 0!==this.lat0?this.lat0:0,this.cgb=[],this.cbg=[],this.utg=[],this.gtu=[];var t=this.es/(1+Math.sqrt(1-this.es)),e=t/(2-t),n=e;this.cgb[0]=e*(2+e*(-2/3+e*(e*(116/45+e*(26/45+e*(-2854/675)))-2))),this.cbg[0]=e*(e*(2/3+e*(4/3+e*(-82/45+e*(32/45+e*(4642/4725)))))-2),n*=e,this.cgb[1]=n*(7/3+e*(e*(-227/45+e*(2704/315+e*(2323/945)))-1.6)),this.cbg[1]=n*(5/3+e*(-16/15+e*(-13/9+e*(904/315+e*(-1522/945))))),n*=e,this.cgb[2]=n*(56/15+e*(-136/35+e*(-1262/105+e*(73814/2835)))),this.cbg[2]=n*(-26/15+e*(34/21+e*(1.6+e*(-12686/2835)))),n*=e,this.cgb[3]=n*(4279/630+e*(-332/35+e*(-399572/14175))),this.cbg[3]=n*(1237/630+e*(e*(-24832/14175)-2.4)),n*=e,this.cgb[4]=n*(4174/315+e*(-144838/6237)),this.cbg[4]=n*(-734/315+e*(109598/31185)),n*=e,this.cgb[5]=n*(601676/22275),this.cbg[5]=n*(444337/155925),n=Math.pow(e,2),this.Qn=this.k0/(1+e)*(1+n*(1/4+n*(1/64+n/256))),this.utg[0]=e*(e*(2/3+e*(-37/96+e*(1/360+e*(81/512+e*(-96199/604800)))))-.5),this.gtu[0]=e*(.5+e*(-2/3+e*(5/16+e*(41/180+e*(-127/288+e*(7891/37800)))))),this.utg[1]=n*(-1/48+e*(-1/15+e*(437/1440+e*(-46/105+e*(1118711/3870720))))),this.gtu[1]=n*(13/48+e*(e*(557/1440+e*(281/630+e*(-1983433/1935360)))-.6)),n*=e,this.utg[2]=n*(-17/480+e*(37/840+e*(209/4480+e*(-5569/90720)))),this.gtu[2]=n*(61/240+e*(-103/140+e*(15061/26880+e*(167603/181440)))),n*=e,this.utg[3]=n*(-4397/161280+e*(11/504+e*(830251/7257600))),this.gtu[3]=n*(49561/161280+e*(-179/168+e*(6601661/7257600))),n*=e,this.utg[4]=n*(-4583/161280+e*(108847/3991680)),this.gtu[4]=n*(34729/80640+e*(-3418889/1995840)),n*=e,this.utg[5]=n*(-20648693/638668800),this.gtu[5]=.6650675310896665*n;var i=ne(this.cbg,this.lat0);this.Zb=-this.Qn*(i+function(t,e){for(var n,i=2*Math.cos(e),r=t.length-1,o=t[r],a=0;--r>=0;)n=i*o-a+t[r],a=o,o=n;return Math.sin(e)*n}(this.gtu,2*i))},forward:function(t){var e=V(t.x-this.long0),n=t.y;n=ne(this.cbg,n);var i=Math.sin(n),r=Math.cos(n),o=Math.sin(e),a=Math.cos(e);n=Math.atan2(i,a*r),e=Math.atan2(o*r,te(i,r*a)),e=ee(Math.tan(e));var s,l,h=ie(this.gtu,2*n,2*e);return n+=h[0],e+=h[1],Math.abs(e)<=2.623395162778?(s=this.a*(this.Qn*e)+this.x0,l=this.a*(this.Qn*n+this.Zb)+this.y0):(s=1/0,l=1/0),t.x=s,t.y=l,t},inverse:function(t){var e,n,i=(t.x-this.x0)*(1/this.a),r=(t.y-this.y0)*(1/this.a);if(r=(r-this.Zb)/this.Qn,i/=this.Qn,Math.abs(i)<=2.623395162778){var o=ie(this.utg,2*r,2*i);r+=o[0],i+=o[1],i=Math.atan(Qt(i));var a=Math.sin(r),s=Math.cos(r),l=Math.sin(i),h=Math.cos(i);r=Math.atan2(a*h,te(l,h*s)),e=V((i=Math.atan2(l,h*s))+this.long0),n=ne(this.cgb,r)}else e=1/0,n=1/0;return t.x=e,t.y=n,t},names:["Extended_Transverse_Mercator","Extended Transverse Mercator","etmerc","Transverse_Mercator","Transverse Mercator","Gauss Kruger","Gauss_Kruger","tmerc"]};const oe={init:function(){var t=function(t,e){if(void 0===t){if((t=Math.floor(30*(V(e)+Math.PI)/Math.PI)+1)<0)return 0;if(t>60)return 60}return t}(this.zone,this.long0);if(void 0===t)throw new Error("unknown utm zone");this.lat0=0,this.long0=(6*Math.abs(t)-183)*l,this.x0=5e5,this.y0=this.utmSouth?1e7:0,this.k0=.9996,re.init.apply(this),this.forward=re.forward,this.inverse=re.inverse},names:["Universal Transverse Mercator System","utm"],dependsOn:"etmerc"};function ae(t,e){return Math.pow((1-t)/(1+t),e)}const se={init:function(){var t=Math.sin(this.lat0),e=Math.cos(this.lat0);e*=e,this.rc=Math.sqrt(1-this.es)/(1-this.es*t*t),this.C=Math.sqrt(1+this.es*e*e/(1-this.es)),this.phic0=Math.asin(t/this.C),this.ratexp=.5*this.C*this.e,this.K=Math.tan(.5*this.phic0+c)/(Math.pow(Math.tan(.5*this.lat0+c),this.C)*ae(this.e*t,this.ratexp))},forward:function(t){var e=t.x,n=t.y;return t.y=2*Math.atan(this.K*Math.pow(Math.tan(.5*n+c),this.C)*ae(this.e*Math.sin(n),this.ratexp))-a,t.x=this.C*e,t},inverse:function(t){for(var e=t.x/this.C,n=t.y,i=Math.pow(Math.tan(.5*n+c)/this.K,1/this.C),r=20;r>0&&(n=2*Math.atan(i*ae(this.e*Math.sin(t.y),-.5*this.e))-a,!(Math.abs(n-t.y)<1e-14));--r)t.y=n;return r?(t.x=e,t.y=n,t):null},names:["gauss"]};const le={init:function(){se.init.apply(this),this.rc&&(this.sinc0=Math.sin(this.phic0),this.cosc0=Math.cos(this.phic0),this.R2=2*this.rc,this.title||(this.title="Oblique Stereographic Alternative"))},forward:function(t){var e,n,i,r;return t.x=V(t.x-this.long0),se.forward.apply(this,[t]),e=Math.sin(t.y),n=Math.cos(t.y),i=Math.cos(t.x),r=this.k0*this.R2/(1+this.sinc0*e+this.cosc0*n*i),t.x=r*n*Math.sin(t.x),t.y=r*(this.cosc0*e-this.sinc0*n*i),t.x=this.a*t.x+this.x0,t.y=this.a*t.y+this.y0,t},inverse:function(t){var e,n,i,r,o;if(t.x=(t.x-this.x0)/this.a,t.y=(t.y-this.y0)/this.a,t.x/=this.k0,t.y/=this.k0,o=te(t.x,t.y)){var a=2*Math.atan2(o,this.R2);e=Math.sin(a),n=Math.cos(a),r=Math.asin(n*this.sinc0+t.y*e*this.cosc0/o),i=Math.atan2(t.x*e,o*this.cosc0*n-t.y*this.sinc0*e)}else r=this.phic0,i=0;return t.x=i,t.y=r,se.inverse.apply(this,[t]),t.x=V(t.x+this.long0),t},names:["Stereographic_North_Pole","Oblique_Stereographic","sterea","Oblique Stereographic Alternative","Double_Stereographic"]};const he={init:function(){this.x0=this.x0||0,this.y0=this.y0||0,this.lat0=this.lat0||0,this.long0=this.long0||0,this.coslat0=Math.cos(this.lat0),this.sinlat0=Math.sin(this.lat0),this.sphere?1===this.k0&&!isNaN(this.lat_ts)&&Math.abs(this.coslat0)<=s&&(this.k0=.5*(1+G(this.lat0)*Math.sin(this.lat_ts))):(Math.abs(this.coslat0)<=s&&(this.lat0>0?this.con=1:this.con=-1),this.cons=Math.sqrt(Math.pow(1+this.e,1+this.e)*Math.pow(1-this.e,1-this.e)),1===this.k0&&!isNaN(this.lat_ts)&&Math.abs(this.coslat0)<=s&&Math.abs(Math.cos(this.lat_ts))>s&&(this.k0=.5*this.cons*z(this.e,Math.sin(this.lat_ts),Math.cos(this.lat_ts))/j(this.e,this.con*this.lat_ts,this.con*Math.sin(this.lat_ts))),this.ms1=z(this.e,this.sinlat0,this.coslat0),this.X0=2*Math.atan(this.ssfn_(this.lat0,this.sinlat0,this.e))-a,this.cosX0=Math.cos(this.X0),this.sinX0=Math.sin(this.X0))},forward:function(t){var e,n,i,r,o,l,h=t.x,c=t.y,u=Math.sin(c),d=Math.cos(c),p=V(h-this.long0);return Math.abs(Math.abs(h-this.long0)-Math.PI)<=s&&Math.abs(c+this.lat0)<=s?(t.x=NaN,t.y=NaN,t):this.sphere?(e=2*this.k0/(1+this.sinlat0*u+this.coslat0*d*Math.cos(p)),t.x=this.a*e*d*Math.sin(p)+this.x0,t.y=this.a*e*(this.coslat0*u-this.sinlat0*d*Math.cos(p))+this.y0,t):(n=2*Math.atan(this.ssfn_(c,u,this.e))-a,r=Math.cos(n),i=Math.sin(n),Math.abs(this.coslat0)<=s?(o=j(this.e,c*this.con,this.con*u),l=2*this.a*this.k0*o/this.cons,t.x=this.x0+l*Math.sin(h-this.long0),t.y=this.y0-this.con*l*Math.cos(h-this.long0),t):(Math.abs(this.sinlat0)<s?(e=2*this.a*this.k0/(1+r*Math.cos(p)),t.y=e*i):(e=2*this.a*this.k0*this.ms1/(this.cosX0*(1+this.sinX0*i+this.cosX0*r*Math.cos(p))),t.y=e*(this.cosX0*i-this.sinX0*r*Math.cos(p))+this.y0),t.x=e*r*Math.sin(p)+this.x0,t))},inverse:function(t){var e,n,i,r,o;t.x-=this.x0,t.y-=this.y0;var l=Math.sqrt(t.x*t.x+t.y*t.y);if(this.sphere){var h=2*Math.atan(l/(2*this.a*this.k0));return e=this.long0,n=this.lat0,l<=s?(t.x=e,t.y=n,t):(n=Math.asin(Math.cos(h)*this.sinlat0+t.y*Math.sin(h)*this.coslat0/l),e=Math.abs(this.coslat0)<s?this.lat0>0?V(this.long0+Math.atan2(t.x,-1*t.y)):V(this.long0+Math.atan2(t.x,t.y)):V(this.long0+Math.atan2(t.x*Math.sin(h),l*this.coslat0*Math.cos(h)-t.y*this.sinlat0*Math.sin(h))),t.x=e,t.y=n,t)}if(Math.abs(this.coslat0)<=s){if(l<=s)return n=this.lat0,e=this.long0,t.x=e,t.y=n,t;t.x*=this.con,t.y*=this.con,i=l*this.cons/(2*this.a*this.k0),n=this.con*H(this.e,i),e=this.con*V(this.con*this.long0+Math.atan2(t.x,-1*t.y))}else r=2*Math.atan(l*this.cosX0/(2*this.a*this.k0*this.ms1)),e=this.long0,l<=s?o=this.X0:(o=Math.asin(Math.cos(r)*this.sinX0+t.y*Math.sin(r)*this.cosX0/l),e=V(this.long0+Math.atan2(t.x*Math.sin(r),l*this.cosX0*Math.cos(r)-t.y*this.sinX0*Math.sin(r)))),n=-1*H(this.e,Math.tan(.5*(a+o)));return t.x=e,t.y=n,t},names:["stere","Stereographic_South_Pole","Polar Stereographic (variant B)","Polar_Stereographic"],ssfn_:function(t,e,n){return e*=n,Math.tan(.5*(a+t))*Math.pow((1-e)/(1+e),.5*n)}};const ce={init:function(){var t=this.lat0;this.lambda0=this.long0;var e=Math.sin(t),n=this.a,i=1/this.rf,r=2*i-Math.pow(i,2),o=this.e=Math.sqrt(r);this.R=this.k0*n*Math.sqrt(1-r)/(1-r*Math.pow(e,2)),this.alpha=Math.sqrt(1+r/(1-r)*Math.pow(Math.cos(t),4)),this.b0=Math.asin(e/this.alpha);var a=Math.log(Math.tan(Math.PI/4+this.b0/2)),s=Math.log(Math.tan(Math.PI/4+t/2)),l=Math.log((1+o*e)/(1-o*e));this.K=a-this.alpha*s+this.alpha*o/2*l},forward:function(t){var e=Math.log(Math.tan(Math.PI/4-t.y/2)),n=this.e/2*Math.log((1+this.e*Math.sin(t.y))/(1-this.e*Math.sin(t.y))),i=-this.alpha*(e+n)+this.K,r=2*(Math.atan(Math.exp(i))-Math.PI/4),o=this.alpha*(t.x-this.lambda0),a=Math.atan(Math.sin(o)/(Math.sin(this.b0)*Math.tan(r)+Math.cos(this.b0)*Math.cos(o))),s=Math.asin(Math.cos(this.b0)*Math.sin(r)-Math.sin(this.b0)*Math.cos(r)*Math.cos(o));return t.y=this.R/2*Math.log((1+Math.sin(s))/(1-Math.sin(s)))+this.y0,t.x=this.R*a+this.x0,t},inverse:function(t){for(var e=t.x-this.x0,n=t.y-this.y0,i=e/this.R,r=2*(Math.atan(Math.exp(n/this.R))-Math.PI/4),o=Math.asin(Math.cos(this.b0)*Math.sin(r)+Math.sin(this.b0)*Math.cos(r)*Math.cos(i)),a=Math.atan(Math.sin(i)/(Math.cos(this.b0)*Math.cos(i)-Math.sin(this.b0)*Math.tan(r))),s=this.lambda0+a/this.alpha,l=0,h=o,c=-1e3,u=0;Math.abs(h-c)>1e-7;){if(++u>20)return;l=1/this.alpha*(Math.log(Math.tan(Math.PI/4+o/2))-this.K)+this.e*Math.log(Math.tan(Math.PI/4+Math.asin(this.e*Math.sin(h))/2)),c=h,h=2*Math.atan(Math.exp(l))-Math.PI/2}return t.x=s,t.y=h,t},names:["somerc"]};var ue=1e-7;const de={init:function(){var t,e,n,i,r,o,h,d,p,f,g,m,v,y=0,_=0,x=0,b=0,w=0,S=0,T=0;this.no_off=(v="object"==typeof(m=this).PROJECTION?Object.keys(m.PROJECTION)[0]:m.PROJECTION,"no_uoff"in m||"no_off"in m||-1!==["Hotine_Oblique_Mercator","Hotine_Oblique_Mercator_Azimuth_Natural_Origin"].indexOf(v)),this.no_rot="no_rot"in this;var M=!1;"alpha"in this&&(M=!0);var A=!1;if("rectified_grid_angle"in this&&(A=!0),M&&(T=this.alpha),A&&(y=this.rectified_grid_angle*l),M||A)_=this.longc;else if(x=this.long1,w=this.lat1,b=this.long2,S=this.lat2,Math.abs(w-S)<=ue||(t=Math.abs(w))<=ue||Math.abs(t-a)<=ue||Math.abs(Math.abs(this.lat0)-a)<=ue||Math.abs(Math.abs(S)-a)<=ue)throw new Error;var C=1-this.es;e=Math.sqrt(C),Math.abs(this.lat0)>s?(d=Math.sin(this.lat0),n=Math.cos(this.lat0),t=1-this.es*d*d,this.B=n*n,this.B=Math.sqrt(1+this.es*this.B*this.B/C),this.A=this.B*this.k0*e/t,(r=(i=this.B*e/(n*Math.sqrt(t)))*i-1)<=0?r=0:(r=Math.sqrt(r),this.lat0<0&&(r=-r)),this.E=r+=i,this.E*=Math.pow(j(this.e,this.lat0,d),this.B)):(this.B=1/e,this.A=this.k0,this.E=i=r=1),M||A?(M?(g=Math.asin(Math.sin(T)/i),A||(y=T)):(g=y,T=Math.asin(i*Math.sin(g))),this.lam0=_-Math.asin(.5*(r-1/r)*Math.tan(g))/this.B):(o=Math.pow(j(this.e,w,Math.sin(w)),this.B),h=Math.pow(j(this.e,S,Math.sin(S)),this.B),r=this.E/o,p=(h-o)/(h+o),f=((f=this.E*this.E)-h*o)/(f+h*o),(t=x-b)<-Math.pi?b-=u:t>Math.pi&&(b+=u),this.lam0=V(.5*(x+b)-Math.atan(f*Math.tan(.5*this.B*(x-b))/p)/this.B),g=Math.atan(2*Math.sin(this.B*V(x-this.lam0))/(r-1/r)),y=T=Math.asin(i*Math.sin(g))),this.singam=Math.sin(g),this.cosgam=Math.cos(g),this.sinrot=Math.sin(y),this.cosrot=Math.cos(y),this.rB=1/this.B,this.ArB=this.A*this.rB,this.BrA=1/this.ArB,this.A,this.B,this.no_off?this.u_0=0:(this.u_0=Math.abs(this.ArB*Math.atan(Math.sqrt(i*i-1)/Math.cos(T))),this.lat0<0&&(this.u_0=-this.u_0)),r=.5*g,this.v_pole_n=this.ArB*Math.log(Math.tan(c-r)),this.v_pole_s=this.ArB*Math.log(Math.tan(c+r))},forward:function(t){var e,n,i,r,o,l,h,c,u={};if(t.x=t.x-this.lam0,Math.abs(Math.abs(t.y)-a)>s){if(e=.5*((o=this.E/Math.pow(j(this.e,t.y,Math.sin(t.y)),this.B))-(l=1/o)),n=.5*(o+l),r=Math.sin(this.B*t.x),i=(e*this.singam-r*this.cosgam)/n,Math.abs(Math.abs(i)-1)<s)throw new Error;c=.5*this.ArB*Math.log((1-i)/(1+i)),l=Math.cos(this.B*t.x),h=Math.abs(l)<ue?this.A*t.x:this.ArB*Math.atan2(e*this.cosgam+r*this.singam,l)}else c=t.y>0?this.v_pole_n:this.v_pole_s,h=this.ArB*t.y;return this.no_rot?(u.x=h,u.y=c):(h-=this.u_0,u.x=c*this.cosrot+h*this.sinrot,u.y=h*this.cosrot-c*this.sinrot),u.x=this.a*u.x+this.x0,u.y=this.a*u.y+this.y0,u},inverse:function(t){var e,n,i,r,o,l,h,c={};if(t.x=(t.x-this.x0)*(1/this.a),t.y=(t.y-this.y0)*(1/this.a),this.no_rot?(n=t.y,e=t.x):(n=t.x*this.cosrot-t.y*this.sinrot,e=t.y*this.cosrot+t.x*this.sinrot+this.u_0),r=.5*((i=Math.exp(-this.BrA*n))-1/i),o=.5*(i+1/i),h=((l=Math.sin(this.BrA*e))*this.cosgam+r*this.singam)/o,Math.abs(Math.abs(h)-1)<s)c.x=0,c.y=h<0?-a:a;else{if(c.y=this.E/Math.sqrt((1+h)/(1-h)),c.y=H(this.e,Math.pow(c.y,1/this.B)),c.y===1/0)throw new Error;c.x=-this.rB*Math.atan2(r*this.cosgam-l*this.singam,Math.cos(this.BrA*e))}return c.x+=this.lam0,c},names:["Hotine_Oblique_Mercator","Hotine Oblique Mercator","Hotine_Oblique_Mercator_Azimuth_Natural_Origin","Hotine_Oblique_Mercator_Two_Point_Natural_Origin","Hotine_Oblique_Mercator_Azimuth_Center","Oblique_Mercator","omerc"]};const pe={init:function(){if(this.lat2||(this.lat2=this.lat1),this.k0||(this.k0=1),this.x0=this.x0||0,this.y0=this.y0||0,!(Math.abs(this.lat1+this.lat2)<s)){var t=this.b/this.a;this.e=Math.sqrt(1-t*t);var e=Math.sin(this.lat1),n=Math.cos(this.lat1),i=z(this.e,e,n),r=j(this.e,this.lat1,e),o=Math.sin(this.lat2),a=Math.cos(this.lat2),l=z(this.e,o,a),h=j(this.e,this.lat2,o),c=j(this.e,this.lat0,Math.sin(this.lat0));Math.abs(this.lat1-this.lat2)>s?this.ns=Math.log(i/l)/Math.log(r/h):this.ns=e,isNaN(this.ns)&&(this.ns=e),this.f0=i/(this.ns*Math.pow(r,this.ns)),this.rh=this.a*this.f0*Math.pow(c,this.ns),this.title||(this.title="Lambert Conformal Conic")}},forward:function(t){var e=t.x,n=t.y;Math.abs(2*Math.abs(n)-Math.PI)<=s&&(n=G(n)*(a-2e-10));var i,r,o=Math.abs(Math.abs(n)-a);if(o>s)i=j(this.e,n,Math.sin(n)),r=this.a*this.f0*Math.pow(i,this.ns);else{if((o=n*this.ns)<=0)return null;r=0}var l=this.ns*V(e-this.long0);return t.x=this.k0*(r*Math.sin(l))+this.x0,t.y=this.k0*(this.rh-r*Math.cos(l))+this.y0,t},inverse:function(t){var e,n,i,r,o,s=(t.x-this.x0)/this.k0,l=this.rh-(t.y-this.y0)/this.k0;this.ns>0?(e=Math.sqrt(s*s+l*l),n=1):(e=-Math.sqrt(s*s+l*l),n=-1);var h=0;if(0!==e&&(h=Math.atan2(n*s,n*l)),0!==e||this.ns>0){if(n=1/this.ns,i=Math.pow(e/(this.a*this.f0),n),-9999===(r=H(this.e,i)))return null}else r=-a;return o=V(h/this.ns+this.long0),t.x=o,t.y=r,t},names:["Lambert Tangential Conformal Conic Projection","Lambert_Conformal_Conic","Lambert_Conformal_Conic_1SP","Lambert_Conformal_Conic_2SP","lcc","Lambert Conic Conformal (1SP)","Lambert Conic Conformal (2SP)"]};const fe={init:function(){this.a=6377397.155,this.es=.006674372230614,this.e=Math.sqrt(this.es),this.lat0||(this.lat0=.863937979737193),this.long0||(this.long0=.4334234309119251),this.k0||(this.k0=.9999),this.s45=.785398163397448,this.s90=2*this.s45,this.fi0=this.lat0,this.e2=this.es,this.e=Math.sqrt(this.e2),this.alfa=Math.sqrt(1+this.e2*Math.pow(Math.cos(this.fi0),4)/(1-this.e2)),this.uq=1.04216856380474,this.u0=Math.asin(Math.sin(this.fi0)/this.alfa),this.g=Math.pow((1+this.e*Math.sin(this.fi0))/(1-this.e*Math.sin(this.fi0)),this.alfa*this.e/2),this.k=Math.tan(this.u0/2+this.s45)/Math.pow(Math.tan(this.fi0/2+this.s45),this.alfa)*this.g,this.k1=this.k0,this.n0=this.a*Math.sqrt(1-this.e2)/(1-this.e2*Math.pow(Math.sin(this.fi0),2)),this.s0=1.37008346281555,this.n=Math.sin(this.s0),this.ro0=this.k1*this.n0/Math.tan(this.s0),this.ad=this.s90-this.uq},forward:function(t){var e,n,i,r,o,a,s,l=t.x,h=t.y,c=V(l-this.long0);return e=Math.pow((1+this.e*Math.sin(h))/(1-this.e*Math.sin(h)),this.alfa*this.e/2),n=2*(Math.atan(this.k*Math.pow(Math.tan(h/2+this.s45),this.alfa)/e)-this.s45),i=-c*this.alfa,r=Math.asin(Math.cos(this.ad)*Math.sin(n)+Math.sin(this.ad)*Math.cos(n)*Math.cos(i)),o=Math.asin(Math.cos(n)*Math.sin(i)/Math.cos(r)),a=this.n*o,s=this.ro0*Math.pow(Math.tan(this.s0/2+this.s45),this.n)/Math.pow(Math.tan(r/2+this.s45),this.n),t.y=s*Math.cos(a)/1,t.x=s*Math.sin(a)/1,this.czech||(t.y*=-1,t.x*=-1),t},inverse:function(t){var e,n,i,r,o,a,s,l=t.x;t.x=t.y,t.y=l,this.czech||(t.y*=-1,t.x*=-1),o=Math.sqrt(t.x*t.x+t.y*t.y),r=Math.atan2(t.y,t.x)/Math.sin(this.s0),i=2*(Math.atan(Math.pow(this.ro0/o,1/this.n)*Math.tan(this.s0/2+this.s45))-this.s45),e=Math.asin(Math.cos(this.ad)*Math.sin(i)-Math.sin(this.ad)*Math.cos(i)*Math.cos(r)),n=Math.asin(Math.cos(i)*Math.sin(r)/Math.cos(e)),t.x=this.long0-n/this.alfa,a=e,s=0;var h=0;do{t.y=2*(Math.atan(Math.pow(this.k,-1/this.alfa)*Math.pow(Math.tan(e/2+this.s45),1/this.alfa)*Math.pow((1+this.e*Math.sin(a))/(1-this.e*Math.sin(a)),this.e/2))-this.s45),Math.abs(a-t.y)<1e-10&&(s=1),a=t.y,h+=1}while(0===s&&h<15);return h>=15?null:t},names:["Krovak","krovak"]};function ge(t,e,n,i,r){return t*r-e*Math.sin(2*r)+n*Math.sin(4*r)-i*Math.sin(6*r)}function me(t){return 1-.25*t*(1+t/16*(3+1.25*t))}function ve(t){return.375*t*(1+.25*t*(1+.46875*t))}function ye(t){return.05859375*t*t*(1+.75*t)}function _e(t){return t*t*t*(35/3072)}function xe(t,e,n){var i=e*n;return t/Math.sqrt(1-i*i)}function be(t){return Math.abs(t)<a?t:t-G(t)*Math.PI}function we(t,e,n,i,r){var o,a;o=t/e;for(var s=0;s<15;s++)if(o+=a=(t-(e*o-n*Math.sin(2*o)+i*Math.sin(4*o)-r*Math.sin(6*o)))/(e-2*n*Math.cos(2*o)+4*i*Math.cos(4*o)-6*r*Math.cos(6*o)),Math.abs(a)<=1e-10)return o;return NaN}const Se={init:function(){this.sphere||(this.e0=me(this.es),this.e1=ve(this.es),this.e2=ye(this.es),this.e3=_e(this.es),this.ml0=this.a*ge(this.e0,this.e1,this.e2,this.e3,this.lat0))},forward:function(t){var e,n,i=t.x,r=t.y;if(i=V(i-this.long0),this.sphere)e=this.a*Math.asin(Math.cos(r)*Math.sin(i)),n=this.a*(Math.atan2(Math.tan(r),Math.cos(i))-this.lat0);else{var o=Math.sin(r),a=Math.cos(r),s=xe(this.a,this.e,o),l=Math.tan(r)*Math.tan(r),h=i*Math.cos(r),c=h*h,u=this.es*a*a/(1-this.es);e=s*h*(1-c*l*(1/6-(8-l+8*u)*c/120)),n=this.a*ge(this.e0,this.e1,this.e2,this.e3,r)-this.ml0+s*o/a*c*(.5+(5-l+6*u)*c/24)}return t.x=e+this.x0,t.y=n+this.y0,t},inverse:function(t){t.x-=this.x0,t.y-=this.y0;var e,n,i=t.x/this.a,r=t.y/this.a;if(this.sphere){var o=r+this.lat0;e=Math.asin(Math.sin(o)*Math.cos(i)),n=Math.atan2(Math.tan(i),Math.cos(o))}else{var l=we(this.ml0/this.a+r,this.e0,this.e1,this.e2,this.e3);if(Math.abs(Math.abs(l)-a)<=s)return t.x=this.long0,t.y=a,r<0&&(t.y*=-1),t;var h=xe(this.a,this.e,Math.sin(l)),c=h*h*h/this.a/this.a*(1-this.es),u=Math.pow(Math.tan(l),2),d=i*this.a/h,p=d*d;e=l-h*Math.tan(l)/c*d*d*(.5-(1+3*u)*d*d/24),n=d*(1-p*(u/3+(1+3*u)*u*p/15))/Math.cos(l)}return t.x=V(n+this.long0),t.y=be(e),t},names:["Cassini","Cassini_Soldner","cass"]};function Te(t,e){var n;return t>1e-7?(1-t*t)*(e/(1-(n=t*e)*n)-.5/t*Math.log((1-n)/(1+n))):2*e}var Me=.3333333333333333,Ae=.17222222222222222,Ce=.10257936507936508,Ie=.06388888888888888,Ee=.0664021164021164,ke=.016415012942191543;const Le={init:function(){var t,e=Math.abs(this.lat0);if(Math.abs(e-a)<s?this.mode=this.lat0<0?this.S_POLE:this.N_POLE:Math.abs(e)<s?this.mode=this.EQUIT:this.mode=this.OBLIQ,this.es>0)switch(this.qp=Te(this.e,1),this.mmf=.5/(1-this.es),this.apa=function(t){var e,n=[];return n[0]=t*Me,e=t*t,n[0]+=e*Ae,n[1]=e*Ie,e*=t,n[0]+=e*Ce,n[1]+=e*Ee,n[2]=e*ke,n}(this.es),this.mode){case this.N_POLE:case this.S_POLE:this.dd=1;break;case this.EQUIT:this.rq=Math.sqrt(.5*this.qp),this.dd=1/this.rq,this.xmf=1,this.ymf=.5*this.qp;break;case this.OBLIQ:this.rq=Math.sqrt(.5*this.qp),t=Math.sin(this.lat0),this.sinb1=Te(this.e,t)/this.qp,this.cosb1=Math.sqrt(1-this.sinb1*this.sinb1),this.dd=Math.cos(this.lat0)/(Math.sqrt(1-this.es*t*t)*this.rq*this.cosb1),this.ymf=(this.xmf=this.rq)/this.dd,this.xmf*=this.dd}else this.mode===this.OBLIQ&&(this.sinph0=Math.sin(this.lat0),this.cosph0=Math.cos(this.lat0))},forward:function(t){var e,n,i,r,o,l,h,u,d,p,f=t.x,g=t.y;if(f=V(f-this.long0),this.sphere){if(o=Math.sin(g),p=Math.cos(g),i=Math.cos(f),this.mode===this.OBLIQ||this.mode===this.EQUIT){if((n=this.mode===this.EQUIT?1+p*i:1+this.sinph0*o+this.cosph0*p*i)<=s)return null;e=(n=Math.sqrt(2/n))*p*Math.sin(f),n*=this.mode===this.EQUIT?o:this.cosph0*o-this.sinph0*p*i}else if(this.mode===this.N_POLE||this.mode===this.S_POLE){if(this.mode===this.N_POLE&&(i=-i),Math.abs(g+this.lat0)<s)return null;n=c-.5*g,e=(n=2*(this.mode===this.S_POLE?Math.cos(n):Math.sin(n)))*Math.sin(f),n*=i}}else{switch(h=0,u=0,d=0,i=Math.cos(f),r=Math.sin(f),o=Math.sin(g),l=Te(this.e,o),this.mode!==this.OBLIQ&&this.mode!==this.EQUIT||(h=l/this.qp,u=Math.sqrt(1-h*h)),this.mode){case this.OBLIQ:d=1+this.sinb1*h+this.cosb1*u*i;break;case this.EQUIT:d=1+u*i;break;case this.N_POLE:d=a+g,l=this.qp-l;break;case this.S_POLE:d=g-a,l=this.qp+l}if(Math.abs(d)<s)return null;switch(this.mode){case this.OBLIQ:case this.EQUIT:d=Math.sqrt(2/d),n=this.mode===this.OBLIQ?this.ymf*d*(this.cosb1*h-this.sinb1*u*i):(d=Math.sqrt(2/(1+u*i)))*h*this.ymf,e=this.xmf*d*u*r;break;case this.N_POLE:case this.S_POLE:l>=0?(e=(d=Math.sqrt(l))*r,n=i*(this.mode===this.S_POLE?d:-d)):e=n=0}}return t.x=this.a*e+this.x0,t.y=this.a*n+this.y0,t},inverse:function(t){t.x-=this.x0,t.y-=this.y0;var e,n,i,r,o,l,h,c,u,d,p=t.x/this.a,f=t.y/this.a;if(this.sphere){var g,m=0,v=0;if((n=.5*(g=Math.sqrt(p*p+f*f)))>1)return null;switch(n=2*Math.asin(n),this.mode!==this.OBLIQ&&this.mode!==this.EQUIT||(v=Math.sin(n),m=Math.cos(n)),this.mode){case this.EQUIT:n=Math.abs(g)<=s?0:Math.asin(f*v/g),p*=v,f=m*g;break;case this.OBLIQ:n=Math.abs(g)<=s?this.lat0:Math.asin(m*this.sinph0+f*v*this.cosph0/g),p*=v*this.cosph0,f=(m-Math.sin(n)*this.sinph0)*g;break;case this.N_POLE:f=-f,n=a-n;break;case this.S_POLE:n-=a}e=0!==f||this.mode!==this.EQUIT&&this.mode!==this.OBLIQ?Math.atan2(p,f):0}else{if(h=0,this.mode===this.OBLIQ||this.mode===this.EQUIT){if(p/=this.dd,f*=this.dd,(l=Math.sqrt(p*p+f*f))<s)return t.x=this.long0,t.y=this.lat0,t;r=2*Math.asin(.5*l/this.rq),i=Math.cos(r),p*=r=Math.sin(r),this.mode===this.OBLIQ?(h=i*this.sinb1+f*r*this.cosb1/l,o=this.qp*h,f=l*this.cosb1*i-f*this.sinb1*r):(h=f*r/l,o=this.qp*h,f=l*i)}else if(this.mode===this.N_POLE||this.mode===this.S_POLE){if(this.mode===this.N_POLE&&(f=-f),!(o=p*p+f*f))return t.x=this.long0,t.y=this.lat0,t;h=1-o/this.qp,this.mode===this.S_POLE&&(h=-h)}e=Math.atan2(p,f),c=Math.asin(h),u=this.apa,d=c+c,n=c+u[0]*Math.sin(d)+u[1]*Math.sin(d+d)+u[2]*Math.sin(d+d+d)}return t.x=V(this.long0+e),t.y=n,t},names:["Lambert Azimuthal Equal Area","Lambert_Azimuthal_Equal_Area","laea"],S_POLE:1,N_POLE:2,EQUIT:3,OBLIQ:4};function De(t){return Math.abs(t)>1&&(t=t>1?1:-1),Math.asin(t)}const Pe={init:function(){Math.abs(this.lat1+this.lat2)<s||(this.temp=this.b/this.a,this.es=1-Math.pow(this.temp,2),this.e3=Math.sqrt(this.es),this.sin_po=Math.sin(this.lat1),this.cos_po=Math.cos(this.lat1),this.t1=this.sin_po,this.con=this.sin_po,this.ms1=z(this.e3,this.sin_po,this.cos_po),this.qs1=Te(this.e3,this.sin_po),this.sin_po=Math.sin(this.lat2),this.cos_po=Math.cos(this.lat2),this.t2=this.sin_po,this.ms2=z(this.e3,this.sin_po,this.cos_po),this.qs2=Te(this.e3,this.sin_po),this.sin_po=Math.sin(this.lat0),this.cos_po=Math.cos(this.lat0),this.t3=this.sin_po,this.qs0=Te(this.e3,this.sin_po),Math.abs(this.lat1-this.lat2)>s?this.ns0=(this.ms1*this.ms1-this.ms2*this.ms2)/(this.qs2-this.qs1):this.ns0=this.con,this.c=this.ms1*this.ms1+this.ns0*this.qs1,this.rh=this.a*Math.sqrt(this.c-this.ns0*this.qs0)/this.ns0)},forward:function(t){var e=t.x,n=t.y;this.sin_phi=Math.sin(n),this.cos_phi=Math.cos(n);var i=Te(this.e3,this.sin_phi),r=this.a*Math.sqrt(this.c-this.ns0*i)/this.ns0,o=this.ns0*V(e-this.long0),a=r*Math.sin(o)+this.x0,s=this.rh-r*Math.cos(o)+this.y0;return t.x=a,t.y=s,t},inverse:function(t){var e,n,i,r,o,a;return t.x-=this.x0,t.y=this.rh-t.y+this.y0,this.ns0>=0?(e=Math.sqrt(t.x*t.x+t.y*t.y),i=1):(e=-Math.sqrt(t.x*t.x+t.y*t.y),i=-1),r=0,0!==e&&(r=Math.atan2(i*t.x,i*t.y)),i=e*this.ns0/this.a,this.sphere?a=Math.asin((this.c-i*i)/(2*this.ns0)):(n=(this.c-i*i)/this.ns0,a=this.phi1z(this.e3,n)),o=V(r/this.ns0+this.long0),t.x=o,t.y=a,t},names:["Albers_Conic_Equal_Area","Albers","aea"],phi1z:function(t,e){var n,i,r,o,a=De(.5*e);if(t<s)return a;for(var l=t*t,h=1;h<=25;h++)if(a+=o=.5*(r=1-(i=t*(n=Math.sin(a)))*i)*r/Math.cos(a)*(e/(1-l)-n/r+.5/t*Math.log((1-i)/(1+i))),Math.abs(o)<=1e-7)return a;return null}};const Re={init:function(){this.sin_p14=Math.sin(this.lat0),this.cos_p14=Math.cos(this.lat0),this.infinity_dist=1e3*this.a,this.rc=1},forward:function(t){var e,n,i,r,o,a,l,h=t.x,c=t.y;return i=V(h-this.long0),e=Math.sin(c),n=Math.cos(c),r=Math.cos(i),(o=this.sin_p14*e+this.cos_p14*n*r)>0||Math.abs(o)<=s?(a=this.x0+1*this.a*n*Math.sin(i)/o,l=this.y0+1*this.a*(this.cos_p14*e-this.sin_p14*n*r)/o):(a=this.x0+this.infinity_dist*n*Math.sin(i),l=this.y0+this.infinity_dist*(this.cos_p14*e-this.sin_p14*n*r)),t.x=a,t.y=l,t},inverse:function(t){var e,n,i,r,o,a;return t.x=(t.x-this.x0)/this.a,t.y=(t.y-this.y0)/this.a,t.x/=this.k0,t.y/=this.k0,(e=Math.sqrt(t.x*t.x+t.y*t.y))?(r=Math.atan2(e,this.rc),n=Math.sin(r),a=De((i=Math.cos(r))*this.sin_p14+t.y*n*this.cos_p14/e),o=Math.atan2(t.x*n,e*this.cos_p14*i-t.y*this.sin_p14*n),o=V(this.long0+o)):(a=this.phic0,o=0),t.x=o,t.y=a,t},names:["gnom"]};const Oe={init:function(){this.sphere||(this.k0=z(this.e,Math.sin(this.lat_ts),Math.cos(this.lat_ts)))},forward:function(t){var e,n,i=t.x,r=t.y,o=V(i-this.long0);if(this.sphere)e=this.x0+this.a*o*Math.cos(this.lat_ts),n=this.y0+this.a*Math.sin(r)/Math.cos(this.lat_ts);else{var a=Te(this.e,Math.sin(r));e=this.x0+this.a*this.k0*o,n=this.y0+this.a*a*.5/this.k0}return t.x=e,t.y=n,t},inverse:function(t){var e,n;return t.x-=this.x0,t.y-=this.y0,this.sphere?(e=V(this.long0+t.x/this.a/Math.cos(this.lat_ts)),n=Math.asin(t.y/this.a*Math.cos(this.lat_ts))):(n=function(t,e){var n=1-(1-t*t)/(2*t)*Math.log((1-t)/(1+t));if(Math.abs(Math.abs(e)-n)<1e-6)return e<0?-1*a:a;for(var i,r,o,s,l=Math.asin(.5*e),h=0;h<30;h++)if(r=Math.sin(l),o=Math.cos(l),s=t*r,l+=i=Math.pow(1-s*s,2)/(2*o)*(e/(1-t*t)-r/(1-s*s)+.5/t*Math.log((1-s)/(1+s))),Math.abs(i)<=1e-10)return l;return NaN}(this.e,2*t.y*this.k0/this.a),e=V(this.long0+t.x/(this.a*this.k0))),t.x=e,t.y=n,t},names:["cea"]};const Ne={init:function(){this.x0=this.x0||0,this.y0=this.y0||0,this.lat0=this.lat0||0,this.long0=this.long0||0,this.lat_ts=this.lat_ts||0,this.title=this.title||"Equidistant Cylindrical (Plate Carre)",this.rc=Math.cos(this.lat_ts)},forward:function(t){var e=t.x,n=t.y,i=V(e-this.long0),r=be(n-this.lat0);return t.x=this.x0+this.a*i*this.rc,t.y=this.y0+this.a*r,t},inverse:function(t){var e=t.x,n=t.y;return t.x=V(this.long0+(e-this.x0)/(this.a*this.rc)),t.y=be(this.lat0+(n-this.y0)/this.a),t},names:["Equirectangular","Equidistant_Cylindrical","eqc"]};const Fe={init:function(){this.temp=this.b/this.a,this.es=1-Math.pow(this.temp,2),this.e=Math.sqrt(this.es),this.e0=me(this.es),this.e1=ve(this.es),this.e2=ye(this.es),this.e3=_e(this.es),this.ml0=this.a*ge(this.e0,this.e1,this.e2,this.e3,this.lat0)},forward:function(t){var e,n,i,r=t.x,o=t.y,a=V(r-this.long0);if(i=a*Math.sin(o),this.sphere)Math.abs(o)<=s?(e=this.a*a,n=-1*this.a*this.lat0):(e=this.a*Math.sin(i)/Math.tan(o),n=this.a*(be(o-this.lat0)+(1-Math.cos(i))/Math.tan(o)));else if(Math.abs(o)<=s)e=this.a*a,n=-1*this.ml0;else{var l=xe(this.a,this.e,Math.sin(o))/Math.tan(o);e=l*Math.sin(i),n=this.a*ge(this.e0,this.e1,this.e2,this.e3,o)-this.ml0+l*(1-Math.cos(i))}return t.x=e+this.x0,t.y=n+this.y0,t},inverse:function(t){var e,n,i,r,o,a,l,h,c;if(i=t.x-this.x0,r=t.y-this.y0,this.sphere)if(Math.abs(r+this.a*this.lat0)<=s)e=V(i/this.a+this.long0),n=0;else{var u;for(a=this.lat0+r/this.a,l=i*i/this.a/this.a+a*a,h=a,o=20;o;--o)if(h+=c=-1*(a*(h*(u=Math.tan(h))+1)-h-.5*(h*h+l)*u)/((h-a)/u-1),Math.abs(c)<=s){n=h;break}e=V(this.long0+Math.asin(i*Math.tan(h)/this.a)/Math.sin(n))}else if(Math.abs(r+this.ml0)<=s)n=0,e=V(this.long0+i/this.a);else{var d,p,f,g,m;for(a=(this.ml0+r)/this.a,l=i*i/this.a/this.a+a*a,h=a,o=20;o;--o)if(m=this.e*Math.sin(h),d=Math.sqrt(1-m*m)*Math.tan(h),p=this.a*ge(this.e0,this.e1,this.e2,this.e3,h),f=this.e0-2*this.e1*Math.cos(2*h)+4*this.e2*Math.cos(4*h)-6*this.e3*Math.cos(6*h),h-=c=(a*(d*(g=p/this.a)+1)-g-.5*d*(g*g+l))/(this.es*Math.sin(2*h)*(g*g+l-2*a*g)/(4*d)+(a-g)*(d*f-2/Math.sin(2*h))-f),Math.abs(c)<=s){n=h;break}d=Math.sqrt(1-this.es*Math.pow(Math.sin(n),2))*Math.tan(n),e=V(this.long0+Math.asin(i*d/this.a)/Math.sin(n))}return t.x=e,t.y=n,t},names:["Polyconic","poly"]};const Be={init:function(){this.A=[],this.A[1]=.6399175073,this.A[2]=-.1358797613,this.A[3]=.063294409,this.A[4]=-.02526853,this.A[5]=.0117879,this.A[6]=-.0055161,this.A[7]=.0026906,this.A[8]=-.001333,this.A[9]=67e-5,this.A[10]=-34e-5,this.B_re=[],this.B_im=[],this.B_re[1]=.7557853228,this.B_im[1]=0,this.B_re[2]=.249204646,this.B_im[2]=.003371507,this.B_re[3]=-.001541739,this.B_im[3]=.04105856,this.B_re[4]=-.10162907,this.B_im[4]=.01727609,this.B_re[5]=-.26623489,this.B_im[5]=-.36249218,this.B_re[6]=-.6870983,this.B_im[6]=-1.1651967,this.C_re=[],this.C_im=[],this.C_re[1]=1.3231270439,this.C_im[1]=0,this.C_re[2]=-.577245789,this.C_im[2]=-.007809598,this.C_re[3]=.508307513,this.C_im[3]=-.112208952,this.C_re[4]=-.15094762,this.C_im[4]=.18200602,this.C_re[5]=1.01418179,this.C_im[5]=1.64497696,this.C_re[6]=1.9660549,this.C_im[6]=2.5127645,this.D=[],this.D[1]=1.5627014243,this.D[2]=.5185406398,this.D[3]=-.03333098,this.D[4]=-.1052906,this.D[5]=-.0368594,this.D[6]=.007317,this.D[7]=.0122,this.D[8]=.00394,this.D[9]=-.0013},forward:function(t){var e,n=t.x,i=t.y-this.lat0,r=n-this.long0,a=i/o*1e-5,s=r,l=1,h=0;for(e=1;e<=10;e++)l*=a,h+=this.A[e]*l;var c,u=h,d=s,p=1,f=0,g=0,m=0;for(e=1;e<=6;e++)c=f*u+p*d,p=p*u-f*d,f=c,g=g+this.B_re[e]*p-this.B_im[e]*f,m=m+this.B_im[e]*p+this.B_re[e]*f;return t.x=m*this.a+this.x0,t.y=g*this.a+this.y0,t},inverse:function(t){var e,n,i=t.x,r=t.y,a=i-this.x0,s=(r-this.y0)/this.a,l=a/this.a,h=1,c=0,u=0,d=0;for(e=1;e<=6;e++)n=c*s+h*l,h=h*s-c*l,c=n,u=u+this.C_re[e]*h-this.C_im[e]*c,d=d+this.C_im[e]*h+this.C_re[e]*c;for(var p=0;p<this.iterations;p++){var f,g=u,m=d,v=s,y=l;for(e=2;e<=6;e++)f=m*u+g*d,g=g*u-m*d,m=f,v+=(e-1)*(this.B_re[e]*g-this.B_im[e]*m),y+=(e-1)*(this.B_im[e]*g+this.B_re[e]*m);g=1,m=0;var _=this.B_re[1],x=this.B_im[1];for(e=2;e<=6;e++)f=m*u+g*d,g=g*u-m*d,m=f,_+=e*(this.B_re[e]*g-this.B_im[e]*m),x+=e*(this.B_im[e]*g+this.B_re[e]*m);var b=_*_+x*x;u=(v*_+y*x)/b,d=(y*_-v*x)/b}var w=u,S=d,T=1,M=0;for(e=1;e<=9;e++)T*=w,M+=this.D[e]*T;var A=this.lat0+M*o*1e5,C=this.long0+S;return t.x=C,t.y=A,t},names:["New_Zealand_Map_Grid","nzmg"]};const ze={init:function(){},forward:function(t){var e=t.x,n=t.y,i=V(e-this.long0),r=this.x0+this.a*i,o=this.y0+this.a*Math.log(Math.tan(Math.PI/4+n/2.5))*1.25;return t.x=r,t.y=o,t},inverse:function(t){t.x-=this.x0,t.y-=this.y0;var e=V(this.long0+t.x/this.a),n=2.5*(Math.atan(Math.exp(.8*t.y/this.a))-Math.PI/4);return t.x=e,t.y=n,t},names:["Miller_Cylindrical","mill"]};const Ge={init:function(){this.sphere?(this.n=1,this.m=0,this.es=0,this.C_y=Math.sqrt((this.m+1)/this.n),this.C_x=this.C_y/(this.m+1)):this.en=Zt(this.es)},forward:function(t){var e,n,i=t.x,r=t.y;if(i=V(i-this.long0),this.sphere){if(this.m)for(var o=this.n*Math.sin(r),a=20;a;--a){var l=(this.m*r+Math.sin(r)-o)/(this.m+Math.cos(r));if(r-=l,Math.abs(l)<s)break}else r=1!==this.n?Math.asin(this.n*Math.sin(r)):r;e=this.a*this.C_x*i*(this.m+Math.cos(r)),n=this.a*this.C_y*r}else{var h=Math.sin(r),c=Math.cos(r);n=this.a*$t(r,h,c,this.en),e=this.a*i*c/Math.sqrt(1-this.es*h*h)}return t.x=e,t.y=n,t},inverse:function(t){var e,n,i;return t.x-=this.x0,n=t.x/this.a,t.y-=this.y0,e=t.y/this.a,this.sphere?(e/=this.C_y,n/=this.C_x*(this.m+Math.cos(e)),this.m?e=De((this.m*e+Math.sin(e))/this.n):1!==this.n&&(e=De(Math.sin(e)/this.n)),n=V(n+this.long0),e=be(e)):(e=Kt(t.y/this.a,this.es,this.en),(i=Math.abs(e))<a?(i=Math.sin(e),n=V(this.long0+t.x*Math.sqrt(1-this.es*i*i)/(this.a*Math.cos(e)))):i-s<a&&(n=this.long0)),t.x=n,t.y=e,t},names:["Sinusoidal","sinu"]};const Ve={init:function(){},forward:function(t){for(var e=t.x,n=t.y,i=V(e-this.long0),r=n,o=Math.PI*Math.sin(n);;){var a=-(r+Math.sin(r)-o)/(1+Math.cos(r));if(r+=a,Math.abs(a)<s)break}r/=2,Math.PI/2-Math.abs(n)<s&&(i=0);var l=.900316316158*this.a*i*Math.cos(r)+this.x0,h=1.4142135623731*this.a*Math.sin(r)+this.y0;return t.x=l,t.y=h,t},inverse:function(t){var e,n;t.x-=this.x0,t.y-=this.y0,n=t.y/(1.4142135623731*this.a),Math.abs(n)>.999999999999&&(n=.999999999999),e=Math.asin(n);var i=V(this.long0+t.x/(.900316316158*this.a*Math.cos(e)));i<-Math.PI&&(i=-Math.PI),i>Math.PI&&(i=Math.PI),n=(2*e+Math.sin(2*e))/Math.PI,Math.abs(n)>1&&(n=1);var r=Math.asin(n);return t.x=i,t.y=r,t},names:["Mollweide","moll"]};const je={init:function(){Math.abs(this.lat1+this.lat2)<s||(this.lat2=this.lat2||this.lat1,this.temp=this.b/this.a,this.es=1-Math.pow(this.temp,2),this.e=Math.sqrt(this.es),this.e0=me(this.es),this.e1=ve(this.es),this.e2=ye(this.es),this.e3=_e(this.es),this.sinphi=Math.sin(this.lat1),this.cosphi=Math.cos(this.lat1),this.ms1=z(this.e,this.sinphi,this.cosphi),this.ml1=ge(this.e0,this.e1,this.e2,this.e3,this.lat1),Math.abs(this.lat1-this.lat2)<s?this.ns=this.sinphi:(this.sinphi=Math.sin(this.lat2),this.cosphi=Math.cos(this.lat2),this.ms2=z(this.e,this.sinphi,this.cosphi),this.ml2=ge(this.e0,this.e1,this.e2,this.e3,this.lat2),this.ns=(this.ms1-this.ms2)/(this.ml2-this.ml1)),this.g=this.ml1+this.ms1/this.ns,this.ml0=ge(this.e0,this.e1,this.e2,this.e3,this.lat0),this.rh=this.a*(this.g-this.ml0))},forward:function(t){var e,n=t.x,i=t.y;if(this.sphere)e=this.a*(this.g-i);else{var r=ge(this.e0,this.e1,this.e2,this.e3,i);e=this.a*(this.g-r)}var o=this.ns*V(n-this.long0),a=this.x0+e*Math.sin(o),s=this.y0+this.rh-e*Math.cos(o);return t.x=a,t.y=s,t},inverse:function(t){var e,n,i,r;t.x-=this.x0,t.y=this.rh-t.y+this.y0,this.ns>=0?(n=Math.sqrt(t.x*t.x+t.y*t.y),e=1):(n=-Math.sqrt(t.x*t.x+t.y*t.y),e=-1);var o=0;return 0!==n&&(o=Math.atan2(e*t.x,e*t.y)),this.sphere?(r=V(this.long0+o/this.ns),i=be(this.g-n/this.a),t.x=r,t.y=i,t):(i=we(this.g-n/this.a,this.e0,this.e1,this.e2,this.e3),r=V(this.long0+o/this.ns),t.x=r,t.y=i,t)},names:["Equidistant_Conic","eqdc"]};const He={init:function(){this.R=this.a},forward:function(t){var e,n,i=t.x,r=t.y,o=V(i-this.long0);Math.abs(r)<=s&&(e=this.x0+this.R*o,n=this.y0);var l=De(2*Math.abs(r/Math.PI));(Math.abs(o)<=s||Math.abs(Math.abs(r)-a)<=s)&&(e=this.x0,n=r>=0?this.y0+Math.PI*this.R*Math.tan(.5*l):this.y0+Math.PI*this.R*-Math.tan(.5*l));var h=.5*Math.abs(Math.PI/o-o/Math.PI),c=h*h,u=Math.sin(l),d=Math.cos(l),p=d/(u+d-1),f=p*p,g=p*(2/u-1),m=g*g,v=Math.PI*this.R*(h*(p-m)+Math.sqrt(c*(p-m)*(p-m)-(m+c)*(f-m)))/(m+c);o<0&&(v=-v),e=this.x0+v;var y=c+p;return v=Math.PI*this.R*(g*y-h*Math.sqrt((m+c)*(c+1)-y*y))/(m+c),n=r>=0?this.y0+v:this.y0-v,t.x=e,t.y=n,t},inverse:function(t){var e,n,i,r,o,a,l,h,c,u,d,p;return t.x-=this.x0,t.y-=this.y0,d=Math.PI*this.R,o=(i=t.x/d)*i+(r=t.y/d)*r,d=3*(r*r/(h=-2*(a=-Math.abs(r)*(1+o))+1+2*r*r+o*o)+(2*(l=a-2*r*r+i*i)*l*l/h/h/h-9*a*l/h/h)/27)/(c=(a-l*l/3/h)/h)/(u=2*Math.sqrt(-c/3)),Math.abs(d)>1&&(d=d>=0?1:-1),p=Math.acos(d)/3,n=t.y>=0?(-u*Math.cos(p+Math.PI/3)-l/3/h)*Math.PI:-(-u*Math.cos(p+Math.PI/3)-l/3/h)*Math.PI,e=Math.abs(i)<s?this.long0:V(this.long0+Math.PI*(o-1+Math.sqrt(1+2*(i*i-r*r)+o*o))/2/i),t.x=e,t.y=n,t},names:["Van_der_Grinten_I","VanDerGrinten","vandg"]};const We={init:function(){this.sin_p12=Math.sin(this.lat0),this.cos_p12=Math.cos(this.lat0)},forward:function(t){var e,n,i,r,o,l,h,c,u,d,p,f,g,m,v,y,_,x,b,w,S,T,M=t.x,A=t.y,C=Math.sin(t.y),I=Math.cos(t.y),E=V(M-this.long0);return this.sphere?Math.abs(this.sin_p12-1)<=s?(t.x=this.x0+this.a*(a-A)*Math.sin(E),t.y=this.y0-this.a*(a-A)*Math.cos(E),t):Math.abs(this.sin_p12+1)<=s?(t.x=this.x0+this.a*(a+A)*Math.sin(E),t.y=this.y0+this.a*(a+A)*Math.cos(E),t):(x=this.sin_p12*C+this.cos_p12*I*Math.cos(E),_=(y=Math.acos(x))?y/Math.sin(y):1,t.x=this.x0+this.a*_*I*Math.sin(E),t.y=this.y0+this.a*_*(this.cos_p12*C-this.sin_p12*I*Math.cos(E)),t):(e=me(this.es),n=ve(this.es),i=ye(this.es),r=_e(this.es),Math.abs(this.sin_p12-1)<=s?(o=this.a*ge(e,n,i,r,a),l=this.a*ge(e,n,i,r,A),t.x=this.x0+(o-l)*Math.sin(E),t.y=this.y0-(o-l)*Math.cos(E),t):Math.abs(this.sin_p12+1)<=s?(o=this.a*ge(e,n,i,r,a),l=this.a*ge(e,n,i,r,A),t.x=this.x0+(o+l)*Math.sin(E),t.y=this.y0+(o+l)*Math.cos(E),t):(h=C/I,c=xe(this.a,this.e,this.sin_p12),u=xe(this.a,this.e,C),d=Math.atan((1-this.es)*h+this.es*c*this.sin_p12/(u*I)),b=0===(p=Math.atan2(Math.sin(E),this.cos_p12*Math.tan(d)-this.sin_p12*Math.cos(E)))?Math.asin(this.cos_p12*Math.sin(d)-this.sin_p12*Math.cos(d)):Math.abs(Math.abs(p)-Math.PI)<=s?-Math.asin(this.cos_p12*Math.sin(d)-this.sin_p12*Math.cos(d)):Math.asin(Math.sin(E)*Math.cos(d)/Math.sin(p)),f=this.e*this.sin_p12/Math.sqrt(1-this.es),y=c*b*(1-(w=b*b)*(v=(g=this.e*this.cos_p12*Math.cos(p)/Math.sqrt(1-this.es))*g)*(1-v)/6+(S=w*b)/8*(m=f*g)*(1-2*v)+(T=S*b)/120*(v*(4-7*v)-3*f*f*(1-7*v))-T*b/48*m),t.x=this.x0+y*Math.sin(p),t.y=this.y0+y*Math.cos(p),t))},inverse:function(t){var e,n,i,r,o,l,h,c,u,d,p,f,g,m,v,y,_,x,b,w,S,T,M;if(t.x-=this.x0,t.y-=this.y0,this.sphere){if((e=Math.sqrt(t.x*t.x+t.y*t.y))>2*a*this.a)return;return n=e/this.a,i=Math.sin(n),r=Math.cos(n),o=this.long0,Math.abs(e)<=s?l=this.lat0:(l=De(r*this.sin_p12+t.y*i*this.cos_p12/e),h=Math.abs(this.lat0)-a,o=Math.abs(h)<=s?this.lat0>=0?V(this.long0+Math.atan2(t.x,-t.y)):V(this.long0-Math.atan2(-t.x,t.y)):V(this.long0+Math.atan2(t.x*i,e*this.cos_p12*r-t.y*this.sin_p12*i))),t.x=o,t.y=l,t}return c=me(this.es),u=ve(this.es),d=ye(this.es),p=_e(this.es),Math.abs(this.sin_p12-1)<=s?(l=we(((f=this.a*ge(c,u,d,p,a))-(e=Math.sqrt(t.x*t.x+t.y*t.y)))/this.a,c,u,d,p),o=V(this.long0+Math.atan2(t.x,-1*t.y)),t.x=o,t.y=l,t):Math.abs(this.sin_p12+1)<=s?(f=this.a*ge(c,u,d,p,a),l=we(((e=Math.sqrt(t.x*t.x+t.y*t.y))-f)/this.a,c,u,d,p),o=V(this.long0+Math.atan2(t.x,t.y)),t.x=o,t.y=l,t):(e=Math.sqrt(t.x*t.x+t.y*t.y),v=Math.atan2(t.x,t.y),g=xe(this.a,this.e,this.sin_p12),y=Math.cos(v),x=-(_=this.e*this.cos_p12*y)*_/(1-this.es),b=3*this.es*(1-x)*this.sin_p12*this.cos_p12*y/(1-this.es),T=1-x*(S=(w=e/g)-x*(1+x)*Math.pow(w,3)/6-b*(1+3*x)*Math.pow(w,4)/24)*S/2-w*S*S*S/6,m=Math.asin(this.sin_p12*Math.cos(S)+this.cos_p12*Math.sin(S)*y),o=V(this.long0+Math.asin(Math.sin(v)*Math.sin(S)/Math.cos(m))),M=Math.sin(m),l=Math.atan2((M-this.es*T*this.sin_p12)*Math.tan(m),M*(1-this.es)),t.x=o,t.y=l,t)},names:["Azimuthal_Equidistant","aeqd"]};const Ue={init:function(){this.sin_p14=Math.sin(this.lat0),this.cos_p14=Math.cos(this.lat0)},forward:function(t){var e,n,i,r,o,a,l,h=t.x,c=t.y;return i=V(h-this.long0),e=Math.sin(c),n=Math.cos(c),r=Math.cos(i),((o=this.sin_p14*e+this.cos_p14*n*r)>0||Math.abs(o)<=s)&&(a=1*this.a*n*Math.sin(i),l=this.y0+1*this.a*(this.cos_p14*e-this.sin_p14*n*r)),t.x=a,t.y=l,t},inverse:function(t){var e,n,i,r,o,l,h;return t.x-=this.x0,t.y-=this.y0,n=De((e=Math.sqrt(t.x*t.x+t.y*t.y))/this.a),i=Math.sin(n),r=Math.cos(n),l=this.long0,Math.abs(e)<=s?(h=this.lat0,t.x=l,t.y=h,t):(h=De(r*this.sin_p14+t.y*i*this.cos_p14/e),o=Math.abs(this.lat0)-a,Math.abs(o)<=s?(l=this.lat0>=0?V(this.long0+Math.atan2(t.x,-t.y)):V(this.long0-Math.atan2(-t.x,t.y)),t.x=l,t.y=h,t):(l=V(this.long0+Math.atan2(t.x*i,e*this.cos_p14*r-t.y*this.sin_p14*i)),t.x=l,t.y=h,t))},names:["ortho"]};var qe=1,Xe=2,Ye=3,Ze=4,$e=5,Ke=6,Je=1,Qe=2,tn=3,en=4;function nn(t,e,n,i){var r;return t<s?(i.value=Je,r=0):(r=Math.atan2(e,n),Math.abs(r)<=c?i.value=Je:r>c&&r<=a+c?(i.value=Qe,r-=a):r>a+c||r<=-(a+c)?(i.value=tn,r=r>=0?r-d:r+d):(i.value=en,r+=a)),r}function rn(t,e){var n=t+e;return n<-d?n+=u:n>+d&&(n-=u),n}const on={init:function(){this.x0=this.x0||0,this.y0=this.y0||0,this.lat0=this.lat0||0,this.long0=this.long0||0,this.lat_ts=this.lat_ts||0,this.title=this.title||"Quadrilateralized Spherical Cube",this.lat0>=a-c/2?this.face=$e:this.lat0<=-(a-c/2)?this.face=Ke:Math.abs(this.long0)<=c?this.face=qe:Math.abs(this.long0)<=a+c?this.face=this.long0>0?Xe:Ze:this.face=Ye,0!==this.es&&(this.one_minus_f=1-(this.a-this.b)/this.a,this.one_minus_f_squared=this.one_minus_f*this.one_minus_f)},forward:function(t){var e,n,i,r,o,s,l={x:0,y:0},h={value:0};if(t.x-=this.long0,e=0!==this.es?Math.atan(this.one_minus_f_squared*Math.tan(t.y)):t.y,n=t.x,this.face===$e)r=a-e,n>=c&&n<=a+c?(h.value=Je,i=n-a):n>a+c||n<=-(a+c)?(h.value=Qe,i=n>0?n-d:n+d):n>-(a+c)&&n<=-c?(h.value=tn,i=n+a):(h.value=en,i=n);else if(this.face===Ke)r=a+e,n>=c&&n<=a+c?(h.value=Je,i=-n+a):n<c&&n>=-c?(h.value=Qe,i=-n):n<-c&&n>=-(a+c)?(h.value=tn,i=-n-a):(h.value=en,i=n>0?-n+d:-n-d);else{var u,p,f,g,m,v;this.face===Xe?n=rn(n,+a):this.face===Ye?n=rn(n,+d):this.face===Ze&&(n=rn(n,-a)),g=Math.sin(e),m=Math.cos(e),v=Math.sin(n),u=m*Math.cos(n),p=m*v,f=g,this.face===qe?i=nn(r=Math.acos(u),f,p,h):this.face===Xe?i=nn(r=Math.acos(p),f,-u,h):this.face===Ye?i=nn(r=Math.acos(-u),f,-p,h):this.face===Ze?i=nn(r=Math.acos(-p),f,u,h):(r=i=0,h.value=Je)}return s=Math.atan(12/d*(i+Math.acos(Math.sin(i)*Math.cos(c))-a)),o=Math.sqrt((1-Math.cos(r))/(Math.cos(s)*Math.cos(s))/(1-Math.cos(Math.atan(1/Math.cos(i))))),h.value===Qe?s+=a:h.value===tn?s+=d:h.value===en&&(s+=1.5*d),l.x=o*Math.cos(s),l.y=o*Math.sin(s),l.x=l.x*this.a+this.x0,l.y=l.y*this.a+this.y0,t.x=l.x,t.y=l.y,t},inverse:function(t){var e,n,i,r,o,s,l,h,c,u,p,f,g={lam:0,phi:0},m={value:0};if(t.x=(t.x-this.x0)/this.a,t.y=(t.y-this.y0)/this.a,n=Math.atan(Math.sqrt(t.x*t.x+t.y*t.y)),e=Math.atan2(t.y,t.x),t.x>=0&&t.x>=Math.abs(t.y)?m.value=Je:t.y>=0&&t.y>=Math.abs(t.x)?(m.value=Qe,e-=a):t.x<0&&-t.x>=Math.abs(t.y)?(m.value=tn,e=e<0?e+d:e-d):(m.value=en,e+=a),c=d/12*Math.tan(e),o=Math.sin(c)/(Math.cos(c)-1/Math.sqrt(2)),s=Math.atan(o),(l=1-(i=Math.cos(e))*i*(r=Math.tan(n))*r*(1-Math.cos(Math.atan(1/Math.cos(s)))))<-1?l=-1:l>1&&(l=1),this.face===$e)h=Math.acos(l),g.phi=a-h,m.value===Je?g.lam=s+a:m.value===Qe?g.lam=s<0?s+d:s-d:m.value===tn?g.lam=s-a:g.lam=s;else if(this.face===Ke)h=Math.acos(l),g.phi=h-a,m.value===Je?g.lam=-s+a:m.value===Qe?g.lam=-s:m.value===tn?g.lam=-s-a:g.lam=s<0?-s-d:-s+d;else{var v,y,_;c=(v=l)*v,y=(c+=(_=c>=1?0:Math.sqrt(1-c)*Math.sin(s))*_)>=1?0:Math.sqrt(1-c),m.value===Qe?(c=y,y=-_,_=c):m.value===tn?(y=-y,_=-_):m.value===en&&(c=y,y=_,_=-c),this.face===Xe?(c=v,v=-y,y=c):this.face===Ye?(v=-v,y=-y):this.face===Ze&&(c=v,v=y,y=-c),g.phi=Math.acos(-_)-a,g.lam=Math.atan2(y,v),this.face===Xe?g.lam=rn(g.lam,-a):this.face===Ye?g.lam=rn(g.lam,-d):this.face===Ze&&(g.lam=rn(g.lam,+a))}return 0!==this.es&&(u=g.phi<0?1:0,p=Math.tan(g.phi),f=this.b/Math.sqrt(p*p+this.one_minus_f_squared),g.phi=Math.atan(Math.sqrt(this.a*this.a-f*f)/(this.one_minus_f*f)),u&&(g.phi=-g.phi)),g.lam+=this.long0,t.x=g.lam,t.y=g.phi,t},names:["Quadrilateralized Spherical Cube","Quadrilateralized_Spherical_Cube","qsc"]};var an=[[1,22199e-21,-715515e-10,31103e-10],[.9986,-482243e-9,-24897e-9,-13309e-10],[.9954,-83103e-8,-448605e-10,-9.86701e-7],[.99,-.00135364,-59661e-9,36777e-10],[.9822,-.00167442,-449547e-11,-572411e-11],[.973,-.00214868,-903571e-10,1.8736e-8],[.96,-.00305085,-900761e-10,164917e-11],[.9427,-.00382792,-653386e-10,-26154e-10],[.9216,-.00467746,-10457e-8,481243e-11],[.8962,-.00536223,-323831e-10,-543432e-11],[.8679,-.00609363,-113898e-9,332484e-11],[.835,-.00698325,-640253e-10,9.34959e-7],[.7986,-.00755338,-500009e-10,9.35324e-7],[.7597,-.00798324,-35971e-9,-227626e-11],[.7186,-.00851367,-701149e-10,-86303e-10],[.6732,-.00986209,-199569e-9,191974e-10],[.6213,-.010418,883923e-10,624051e-11],[.5722,-.00906601,182e-6,624051e-11],[.5322,-.00677797,275608e-9,624051e-11]],sn=[[-520417e-23,.0124,121431e-23,-845284e-16],[.062,.0124,-1.26793e-9,4.22642e-10],[.124,.0124,5.07171e-9,-1.60604e-9],[.186,.0123999,-1.90189e-8,6.00152e-9],[.248,.0124002,7.10039e-8,-2.24e-8],[.31,.0123992,-2.64997e-7,8.35986e-8],[.372,.0124029,9.88983e-7,-3.11994e-7],[.434,.0123893,-369093e-11,-4.35621e-7],[.4958,.0123198,-102252e-10,-3.45523e-7],[.5571,.0121916,-154081e-10,-5.82288e-7],[.6176,.0119938,-241424e-10,-5.25327e-7],[.6769,.011713,-320223e-10,-5.16405e-7],[.7346,.0113541,-397684e-10,-6.09052e-7],[.7903,.0109107,-489042e-10,-104739e-11],[.8435,.0103431,-64615e-9,-1.40374e-9],[.8936,.00969686,-64636e-9,-8547e-9],[.9394,.00840947,-192841e-9,-42106e-10],[.9761,.00616527,-256e-6,-42106e-10],[1,.00328947,-319159e-9,-42106e-10]],ln=.8487,hn=1.3523,cn=h/5,un=1/cn,dn=18,pn=function(t,e){return t[0]+e*(t[1]+e*(t[2]+e*t[3]))};const fn={init:function(){this.x0=this.x0||0,this.y0=this.y0||0,this.long0=this.long0||0,this.es=0,this.title=this.title||"Robinson"},forward:function(t){var e=V(t.x-this.long0),n=Math.abs(t.y),i=Math.floor(n*cn);i<0?i=0:i>=dn&&(i=17);var r={x:pn(an[i],n=h*(n-un*i))*e,y:pn(sn[i],n)};return t.y<0&&(r.y=-r.y),r.x=r.x*this.a*ln+this.x0,r.y=r.y*this.a*hn+this.y0,r},inverse:function(t){var e={x:(t.x-this.x0)/(this.a*ln),y:Math.abs(t.y-this.y0)/(this.a*hn)};if(e.y>=1)e.x/=an[18][0],e.y=t.y<0?-a:a;else{var n=Math.floor(e.y*dn);for(n<0?n=0:n>=dn&&(n=17);;)if(sn[n][0]>e.y)--n;else{if(!(sn[n+1][0]<=e.y))break;++n}var i=sn[n],r=5*(e.y-i[0])/(sn[n+1][0]-i[0]);r=function(t,e,n,i){for(var r=e;i;--i){var o=t(r);if(r-=o,Math.abs(o)<n)break}return r}((function(t){return(pn(i,t)-e.y)/function(t,e){return t[1]+e*(2*t[2]+3*e*t[3])}(i,t)}),r,s,100),e.x/=pn(an[n],r),e.y=(5*n+r)*l,t.y<0&&(e.y=-e.y)}return e.x=V(e.x+this.long0),e},names:["Robinson","robin"]};const gn={init:function(){this.name="geocent"},forward:function(t){return dt(t,this.es,this.a)},inverse:function(t){return pt(t,this.es,this.a,this.b)},names:["Geocentric","geocentric","geocent","Geocent"]};var mn=0,vn=1,yn=2,_n=3,xn={h:{def:1e5,num:!0},azi:{def:0,num:!0,degrees:!0},tilt:{def:0,num:!0,degrees:!0},long0:{def:0,num:!0},lat0:{def:0,num:!0}};const bn={init:function(){if(Object.keys(xn).forEach(function(t){if(void 0===this[t])this[t]=xn[t].def;else{if(xn[t].num&&isNaN(this[t]))throw new Error("Invalid parameter value, must be numeric "+t+" = "+this[t]);xn[t].num&&(this[t]=parseFloat(this[t]))}xn[t].degrees&&(this[t]=this[t]*l)}.bind(this)),Math.abs(Math.abs(this.lat0)-a)<s?this.mode=this.lat0<0?vn:mn:Math.abs(this.lat0)<s?this.mode=yn:(this.mode=_n,this.sinph0=Math.sin(this.lat0),this.cosph0=Math.cos(this.lat0)),this.pn1=this.h/this.a,this.pn1<=0||this.pn1>1e10)throw new Error("Invalid height");this.p=1+this.pn1,this.rp=1/this.p,this.h1=1/this.pn1,this.pfact=(this.p+1)*this.h1,this.es=0;var t=this.tilt,e=this.azi;this.cg=Math.cos(e),this.sg=Math.sin(e),this.cw=Math.cos(t),this.sw=Math.sin(t)},forward:function(t){t.x-=this.long0;var e,n,i,r,o=Math.sin(t.y),a=Math.cos(t.y),s=Math.cos(t.x);switch(this.mode){case _n:n=this.sinph0*o+this.cosph0*a*s;break;case yn:n=a*s;break;case vn:n=-o;break;case mn:n=o}switch(e=(n=this.pn1/(this.p-n))*a*Math.sin(t.x),this.mode){case _n:n*=this.cosph0*o-this.sinph0*a*s;break;case yn:n*=o;break;case mn:n*=-a*s;break;case vn:n*=a*s}return r=1/((i=n*this.cg+e*this.sg)*this.sw*this.h1+this.cw),e=(e*this.cg-n*this.sg)*this.cw*r,n=i*r,t.x=e*this.a,t.y=n*this.a,t},inverse:function(t){t.x/=this.a,t.y/=this.a;var e,n,i,r={x:t.x,y:t.y};i=1/(this.pn1-t.y*this.sw),e=this.pn1*t.x*i,n=this.pn1*t.y*this.cw*i,t.x=e*this.cg+n*this.sg,t.y=n*this.cg-e*this.sg;var o=te(t.x,t.y);if(Math.abs(o)<s)r.x=0,r.y=t.y;else{var a,l;switch(l=1-o*o*this.pfact,l=(this.p-Math.sqrt(l))/(this.pn1/o+o/this.pn1),a=Math.sqrt(1-l*l),this.mode){case _n:r.y=Math.asin(a*this.sinph0+t.y*l*this.cosph0/o),t.y=(a-this.sinph0*Math.sin(r.y))*o,t.x*=l*this.cosph0;break;case yn:r.y=Math.asin(t.y*l/o),t.y=a*o,t.x*=l;break;case mn:r.y=Math.asin(a),t.y=-t.y;break;case vn:r.y=-Math.asin(a)}r.x=Math.atan2(t.x,t.y)}return t.x=r.x+this.long0,t.y=r.y,t},names:["Tilted_Perspective","tpers"]};const wn={init:function(){if(this.flip_axis="x"===this.sweep?1:0,this.h=Number(this.h),this.radius_g_1=this.h/this.a,this.radius_g_1<=0||this.radius_g_1>1e10)throw new Error;if(this.radius_g=1+this.radius_g_1,this.C=this.radius_g*this.radius_g-1,0!==this.es){var t=1-this.es,e=1/t;this.radius_p=Math.sqrt(t),this.radius_p2=t,this.radius_p_inv2=e,this.shape="ellipse"}else this.radius_p=1,this.radius_p2=1,this.radius_p_inv2=1,this.shape="sphere";this.title||(this.title="Geostationary Satellite View")},forward:function(t){var e,n,i,r,o=t.x,a=t.y;if(o-=this.long0,"ellipse"===this.shape){a=Math.atan(this.radius_p2*Math.tan(a));var s=this.radius_p/te(this.radius_p*Math.cos(a),Math.sin(a));if(n=s*Math.cos(o)*Math.cos(a),i=s*Math.sin(o)*Math.cos(a),r=s*Math.sin(a),(this.radius_g-n)*n-i*i-r*r*this.radius_p_inv2<0)return t.x=Number.NaN,t.y=Number.NaN,t;e=this.radius_g-n,this.flip_axis?(t.x=this.radius_g_1*Math.atan(i/te(r,e)),t.y=this.radius_g_1*Math.atan(r/e)):(t.x=this.radius_g_1*Math.atan(i/e),t.y=this.radius_g_1*Math.atan(r/te(i,e)))}else"sphere"===this.shape&&(e=Math.cos(a),n=Math.cos(o)*e,i=Math.sin(o)*e,r=Math.sin(a),e=this.radius_g-n,this.flip_axis?(t.x=this.radius_g_1*Math.atan(i/te(r,e)),t.y=this.radius_g_1*Math.atan(r/e)):(t.x=this.radius_g_1*Math.atan(i/e),t.y=this.radius_g_1*Math.atan(r/te(i,e))));return t.x=t.x*this.a,t.y=t.y*this.a,t},inverse:function(t){var e,n,i,r,o=-1,a=0,s=0;if(t.x=t.x/this.a,t.y=t.y/this.a,"ellipse"===this.shape){this.flip_axis?(s=Math.tan(t.y/this.radius_g_1),a=Math.tan(t.x/this.radius_g_1)*te(1,s)):(a=Math.tan(t.x/this.radius_g_1),s=Math.tan(t.y/this.radius_g_1)*te(1,a));var l=s/this.radius_p;if(e=a*a+l*l+o*o,(i=(n=2*this.radius_g*o)*n-4*e*this.C)<0)return t.x=Number.NaN,t.y=Number.NaN,t;r=(-n-Math.sqrt(i))/(2*e),o=this.radius_g+r*o,a*=r,s*=r,t.x=Math.atan2(a,o),t.y=Math.atan(s*Math.cos(t.x)/o),t.y=Math.atan(this.radius_p_inv2*Math.tan(t.y))}else if("sphere"===this.shape){if(this.flip_axis?(s=Math.tan(t.y/this.radius_g_1),a=Math.tan(t.x/this.radius_g_1)*Math.sqrt(1+s*s)):(a=Math.tan(t.x/this.radius_g_1),s=Math.tan(t.y/this.radius_g_1)*Math.sqrt(1+a*a)),e=a*a+s*s+o*o,(i=(n=2*this.radius_g*o)*n-4*e*this.C)<0)return t.x=Number.NaN,t.y=Number.NaN,t;r=(-n-Math.sqrt(i))/(2*e),o=this.radius_g+r*o,a*=r,s*=r,t.x=Math.atan2(a,o),t.y=Math.atan(s*Math.cos(t.x)/o)}return t.x=t.x+this.long0,t},names:["Geostationary Satellite View","Geostationary_Satellite","geos"]};var Sn=1.340264,Tn=-.081106,Mn=893e-6,An=.003796,Cn=Math.sqrt(3)/2;const In={init:function(){this.es=0,this.long0=void 0!==this.long0?this.long0:0},forward:function(t){var e=V(t.x-this.long0),n=t.y,i=Math.asin(Cn*Math.sin(n)),r=i*i,o=r*r*r;return t.x=e*Math.cos(i)/(Cn*(Sn+3*Tn*r+o*(7*Mn+9*An*r))),t.y=i*(Sn+Tn*r+o*(Mn+An*r)),t.x=this.a*t.x+this.x0,t.y=this.a*t.y+this.y0,t},inverse:function(t){t.x=(t.x-this.x0)/this.a,t.y=(t.y-this.y0)/this.a;var e,n,i,r,o=t.y;for(r=0;r<12&&(o-=i=(o*(Sn+Tn*(e=o*o)+(n=e*e*e)*(Mn+An*e))-t.y)/(Sn+3*Tn*e+n*(7*Mn+9*An*e)),!(Math.abs(i)<1e-9));++r);return n=(e=o*o)*e*e,t.x=Cn*t.x*(Sn+3*Tn*e+n*(7*Mn+9*An*e))/Math.cos(o),t.y=Math.asin(Math.sin(o)/Cn),t.x=V(t.x+this.long0),t},names:["eqearth","Equal Earth","Equal_Earth"]};var En=1e-10;function kn(t){var e,n,i,r=V(t.x-(this.long0||0)),o=t.y;return e=this.am1+this.m1-$t(o,n=Math.sin(o),i=Math.cos(o),this.en),n=i*r/(e*Math.sqrt(1-this.es*n*n)),t.x=e*Math.sin(n),t.y=this.am1-e*Math.cos(n),t.x=this.a*t.x+(this.x0||0),t.y=this.a*t.y+(this.y0||0),t}function Ln(t){var e,n,i,r;if(t.x=(t.x-(this.x0||0))/this.a,t.y=(t.y-(this.y0||0))/this.a,n=te(t.x,t.y=this.am1-t.y),r=Kt(this.am1+this.m1-n,this.es,this.en),(e=Math.abs(r))<a)e=Math.sin(r),i=n*Math.atan2(t.x,t.y)*Math.sqrt(1-this.es*e*e)/Math.cos(r);else{if(!(Math.abs(e-a)<=En))throw new Error;i=0}return t.x=V(i+(this.long0||0)),t.y=be(r),t}function Dn(t){var e,n,i=V(t.x-(this.long0||0)),r=t.y;return n=this.cphi1+this.phi1-r,Math.abs(n)>En?(t.x=n*Math.sin(e=i*Math.cos(r)/n),t.y=this.cphi1-n*Math.cos(e)):t.x=t.y=0,t.x=this.a*t.x+(this.x0||0),t.y=this.a*t.y+(this.y0||0),t}function Pn(t){var e,n;t.x=(t.x-(this.x0||0))/this.a,t.y=(t.y-(this.y0||0))/this.a;var i=te(t.x,t.y=this.cphi1-t.y);if(n=this.cphi1+this.phi1-i,Math.abs(n)>a)throw new Error;return e=Math.abs(Math.abs(n)-a)<=En?0:i*Math.atan2(t.x,t.y)/Math.cos(n),t.x=V(e+(this.long0||0)),t.y=be(n),t}const Rn={init:function(){var t;if(this.phi1=this.lat1,Math.abs(this.phi1)<En)throw new Error;this.es?(this.en=Zt(this.es),this.m1=$t(this.phi1,this.am1=Math.sin(this.phi1),t=Math.cos(this.phi1),this.en),this.am1=t/(Math.sqrt(1-this.es*this.am1*this.am1)*this.am1),this.inverse=Ln,this.forward=kn):(Math.abs(this.phi1)+En>=a?this.cphi1=0:this.cphi1=1/Math.tan(this.phi1),this.inverse=Pn,this.forward=Dn)},names:["bonne","Bonne (Werner lat_1=90)"]};At.defaultDatum="WGS84",At.Proj=ut,At.WGS84=new At.Proj("WGS84"),At.Point=Ut,At.toPoint=xt,At.defs=R,At.nadgrid=function(t,e){var n=new DataView(e),i=function(t){var e=t.getInt32(8,!1);if(11===e)return!1;e=t.getInt32(8,!0),11!==e&&console.warn("Failed to detect nadgrid endian-ness, defaulting to little-endian");return!0}(n),r=function(t,e){return{nFields:t.getInt32(8,e),nSubgridFields:t.getInt32(24,e),nSubgrids:t.getInt32(40,e),shiftType:at(t,56,64).trim(),fromSemiMajorAxis:t.getFloat64(120,e),fromSemiMinorAxis:t.getFloat64(136,e),toSemiMajorAxis:t.getFloat64(152,e),toSemiMinorAxis:t.getFloat64(168,e)}}(n,i),o=function(t,e,n){for(var i=176,r=[],o=0;o<e.nSubgrids;o++){var a=lt(t,i,n),s=ht(t,i,a,n),l=Math.round(1+(a.upperLongitude-a.lowerLongitude)/a.longitudeInterval),h=Math.round(1+(a.upperLatitude-a.lowerLatitude)/a.latitudeInterval);r.push({ll:[ot(a.lowerLongitude),ot(a.lowerLatitude)],del:[ot(a.longitudeInterval),ot(a.latitudeInterval)],lim:[l,h],count:a.gridNodeCount,cvs:st(s)}),i+=176+16*a.gridNodeCount}return r}(n,r,i),a={header:r,subgrids:o};return it[t]=a,a},At.transform=wt,At.mgrs=Rt,At.version="__VERSION__",function(t){t.Proj.projections.add(Jt),t.Proj.projections.add(re),t.Proj.projections.add(oe),t.Proj.projections.add(le),t.Proj.projections.add(he),t.Proj.projections.add(ce),t.Proj.projections.add(de),t.Proj.projections.add(pe),t.Proj.projections.add(fe),t.Proj.projections.add(Se),t.Proj.projections.add(Le),t.Proj.projections.add(Pe),t.Proj.projections.add(Re),t.Proj.projections.add(Oe),t.Proj.projections.add(Ne),t.Proj.projections.add(Fe),t.Proj.projections.add(Be),t.Proj.projections.add(ze),t.Proj.projections.add(Ge),t.Proj.projections.add(Ve),t.Proj.projections.add(je),t.Proj.projections.add(He),t.Proj.projections.add(We),t.Proj.projections.add(Ue),t.Proj.projections.add(on),t.Proj.projections.add(fn),t.Proj.projections.add(gn),t.Proj.projections.add(bn),t.Proj.projections.add(wn),t.Proj.projections.add(In),t.Proj.projections.add(Rn)}(At);const On=At},3269:function(t){t.exports=function(){"use strict";function t(t,i,r,o,a){!function t(n,i,r,o,a){for(;o>r;){if(o-r>600){var s=o-r+1,l=i-r+1,h=Math.log(s),c=.5*Math.exp(2*h/3),u=.5*Math.sqrt(h*c*(s-c)/s)*(l-s/2<0?-1:1);t(n,i,Math.max(r,Math.floor(i-l*c/s+u)),Math.min(o,Math.floor(i+(s-l)*c/s+u)),a)}var d=n[i],p=r,f=o;for(e(n,r,i),a(n[o],d)>0&&e(n,r,o);p<f;){for(e(n,p,f),p++,f--;a(n[p],d)<0;)p++;for(;a(n[f],d)>0;)f--}0===a(n[r],d)?e(n,r,f):e(n,++f,o),f<=i&&(r=f+1),i<=f&&(o=f-1)}}(t,i,r||0,o||t.length-1,a||n)}function e(t,e,n){var i=t[e];t[e]=t[n],t[n]=i}function n(t,e){return t<e?-1:t>e?1:0}var i=function(t){void 0===t&&(t=9),this._maxEntries=Math.max(4,t),this._minEntries=Math.max(2,Math.ceil(.4*this._maxEntries)),this.clear()};function r(t,e,n){if(!n)return e.indexOf(t);for(var i=0;i<e.length;i++)if(n(t,e[i]))return i;return-1}function o(t,e){a(t,0,t.children.length,e,t)}function a(t,e,n,i,r){r||(r=f(null)),r.minX=1/0,r.minY=1/0,r.maxX=-1/0,r.maxY=-1/0;for(var o=e;o<n;o++){var a=t.children[o];s(r,t.leaf?i(a):a)}return r}function s(t,e){return t.minX=Math.min(t.minX,e.minX),t.minY=Math.min(t.minY,e.minY),t.maxX=Math.max(t.maxX,e.maxX),t.maxY=Math.max(t.maxY,e.maxY),t}function l(t,e){return t.minX-e.minX}function h(t,e){return t.minY-e.minY}function c(t){return(t.maxX-t.minX)*(t.maxY-t.minY)}function u(t){return t.maxX-t.minX+(t.maxY-t.minY)}function d(t,e){return t.minX<=e.minX&&t.minY<=e.minY&&e.maxX<=t.maxX&&e.maxY<=t.maxY}function p(t,e){return e.minX<=t.maxX&&e.minY<=t.maxY&&e.maxX>=t.minX&&e.maxY>=t.minY}function f(t){return{children:t,height:1,leaf:!0,minX:1/0,minY:1/0,maxX:-1/0,maxY:-1/0}}function g(e,n,i,r,o){for(var a=[n,i];a.length;)if(!((i=a.pop())-(n=a.pop())<=r)){var s=n+Math.ceil((i-n)/r/2)*r;t(e,s,n,i,o),a.push(n,s,s,i)}}return i.prototype.all=function(){return this._all(this.data,[])},i.prototype.search=function(t){var e=this.data,n=[];if(!p(t,e))return n;for(var i=this.toBBox,r=[];e;){for(var o=0;o<e.children.length;o++){var a=e.children[o],s=e.leaf?i(a):a;p(t,s)&&(e.leaf?n.push(a):d(t,s)?this._all(a,n):r.push(a))}e=r.pop()}return n},i.prototype.collides=function(t){var e=this.data;if(!p(t,e))return!1;for(var n=[];e;){for(var i=0;i<e.children.length;i++){var r=e.children[i],o=e.leaf?this.toBBox(r):r;if(p(t,o)){if(e.leaf||d(t,o))return!0;n.push(r)}}e=n.pop()}return!1},i.prototype.load=function(t){if(!t||!t.length)return this;if(t.length<this._minEntries){for(var e=0;e<t.length;e++)this.insert(t[e]);return this}var n=this._build(t.slice(),0,t.length-1,0);if(this.data.children.length)if(this.data.height===n.height)this._splitRoot(this.data,n);else{if(this.data.height<n.height){var i=this.data;this.data=n,n=i}this._insert(n,this.data.height-n.height-1,!0)}else this.data=n;return this},i.prototype.insert=function(t){return t&&this._insert(t,this.data.height-1),this},i.prototype.clear=function(){return this.data=f([]),this},i.prototype.remove=function(t,e){if(!t)return this;for(var n,i,o,a=this.data,s=this.toBBox(t),l=[],h=[];a||l.length;){if(a||(a=l.pop(),i=l[l.length-1],n=h.pop(),o=!0),a.leaf){var c=r(t,a.children,e);if(-1!==c)return a.children.splice(c,1),l.push(a),this._condense(l),this}o||a.leaf||!d(a,s)?i?(n++,a=i.children[n],o=!1):a=null:(l.push(a),h.push(n),n=0,i=a,a=a.children[0])}return this},i.prototype.toBBox=function(t){return t},i.prototype.compareMinX=function(t,e){return t.minX-e.minX},i.prototype.compareMinY=function(t,e){return t.minY-e.minY},i.prototype.toJSON=function(){return this.data},i.prototype.fromJSON=function(t){return this.data=t,this},i.prototype._all=function(t,e){for(var n=[];t;)t.leaf?e.push.apply(e,t.children):n.push.apply(n,t.children),t=n.pop();return e},i.prototype._build=function(t,e,n,i){var r,a=n-e+1,s=this._maxEntries;if(a<=s)return o(r=f(t.slice(e,n+1)),this.toBBox),r;i||(i=Math.ceil(Math.log(a)/Math.log(s)),s=Math.ceil(a/Math.pow(s,i-1))),(r=f([])).leaf=!1,r.height=i;var l=Math.ceil(a/s),h=l*Math.ceil(Math.sqrt(s));g(t,e,n,h,this.compareMinX);for(var c=e;c<=n;c+=h){var u=Math.min(c+h-1,n);g(t,c,u,l,this.compareMinY);for(var d=c;d<=u;d+=l){var p=Math.min(d+l-1,u);r.children.push(this._build(t,d,p,i-1))}}return o(r,this.toBBox),r},i.prototype._chooseSubtree=function(t,e,n,i){for(;i.push(e),!e.leaf&&i.length-1!==n;){for(var r=1/0,o=1/0,a=void 0,s=0;s<e.children.length;s++){var l=e.children[s],h=c(l),u=(d=t,p=l,(Math.max(p.maxX,d.maxX)-Math.min(p.minX,d.minX))*(Math.max(p.maxY,d.maxY)-Math.min(p.minY,d.minY))-h);u<o?(o=u,r=h<r?h:r,a=l):u===o&&h<r&&(r=h,a=l)}e=a||e.children[0]}var d,p;return e},i.prototype._insert=function(t,e,n){var i=n?t:this.toBBox(t),r=[],o=this._chooseSubtree(i,this.data,e,r);for(o.children.push(t),s(o,i);e>=0&&r[e].children.length>this._maxEntries;)this._split(r,e),e--;this._adjustParentBBoxes(i,r,e)},i.prototype._split=function(t,e){var n=t[e],i=n.children.length,r=this._minEntries;this._chooseSplitAxis(n,r,i);var a=this._chooseSplitIndex(n,r,i),s=f(n.children.splice(a,n.children.length-a));s.height=n.height,s.leaf=n.leaf,o(n,this.toBBox),o(s,this.toBBox),e?t[e-1].children.push(s):this._splitRoot(n,s)},i.prototype._splitRoot=function(t,e){this.data=f([t,e]),this.data.height=t.height+1,this.data.leaf=!1,o(this.data,this.toBBox)},i.prototype._chooseSplitIndex=function(t,e,n){for(var i,r,o,s,l,h,u,d=1/0,p=1/0,f=e;f<=n-e;f++){var g=a(t,0,f,this.toBBox),m=a(t,f,n,this.toBBox),v=(r=g,o=m,s=void 0,l=void 0,h=void 0,u=void 0,s=Math.max(r.minX,o.minX),l=Math.max(r.minY,o.minY),h=Math.min(r.maxX,o.maxX),u=Math.min(r.maxY,o.maxY),Math.max(0,h-s)*Math.max(0,u-l)),y=c(g)+c(m);v<d?(d=v,i=f,p=y<p?y:p):v===d&&y<p&&(p=y,i=f)}return i||n-e},i.prototype._chooseSplitAxis=function(t,e,n){var i=t.leaf?this.compareMinX:l,r=t.leaf?this.compareMinY:h;this._allDistMargin(t,e,n,i)<this._allDistMargin(t,e,n,r)&&t.children.sort(i)},i.prototype._allDistMargin=function(t,e,n,i){t.children.sort(i);for(var r=this.toBBox,o=a(t,0,e,r),l=a(t,n-e,n,r),h=u(o)+u(l),c=e;c<n-e;c++){var d=t.children[c];s(o,t.leaf?r(d):d),h+=u(o)}for(var p=n-e-1;p>=e;p--){var f=t.children[p];s(l,t.leaf?r(f):f),h+=u(l)}return h},i.prototype._adjustParentBBoxes=function(t,e,n){for(var i=n;i>=0;i--)s(e[i],t)},i.prototype._condense=function(t){for(var e=t.length-1,n=void 0;e>=0;e--)0===t[e].children.length?e>0?(n=t[e-1].children).splice(n.indexOf(t[e]),1):this.clear():o(t[e],this.toBBox)},i}()},7998:(t,e,n)=>{"use strict";var i=n(3491),r=n(1216),o=n(9133),a=n(4979);function s(t){return"__proto__"!==t&&"constructor"!==t&&"prototype"!==t}t.exports=function(t,e,n){if(!a(t))return t;if(Array.isArray(e)&&(e=[].concat.apply([],e).join(".")),"string"!=typeof e)return t;for(var l=i(e,{sep:".",brackets:!0}).filter(s),h=l.length,c=-1,u=t;++c<h;){var d=l[c];c===h-1?o(u[d])&&o(n)?u[d]=r({},u[d],n):u[d]=n:(a(u[d])||(u[d]={}),u=u[d])}return t}},3491:(t,e,n)=>{"use strict";var i=n(4146);function r(t,e,n,i){var o=t.indexOf(e,n);return"\\"===t.charAt(o-1)?r(t,e,o+1):o}function o(t,e){return!0===e.keepDoubleQuotes&&'"'===t||(!0===e.keepSingleQuotes&&"'"===t||e.keepQuotes)}function a(t,e,n){return"function"==typeof t.keepEscaping?t.keepEscaping(e,n):!0===t.keepEscaping||"\\"===e[n+1]}t.exports=function(t,e,n){if("string"!=typeof t)throw new TypeError("expected a string");"function"==typeof e&&(n=e,e=null),"string"==typeof e&&(e={sep:e});var s,l=i({sep:"."},e),h=l.quotes||['"',"'","`"];!0===l.brackets?s={"<":">","(":")","[":"]","{":"}"}:l.brackets&&(s=l.brackets);var c,u=[],d=[],p=[""],f=l.sep,g=t.length,m=-1;function v(){if(s&&d.length)return s[d[d.length-1]]}for(;++m<g;){var y=t[m],_=t[m+1],x={val:y,idx:m,arr:p,str:t};if(u.push(x),"\\"!==y){if(s&&s[y]){d.push(y);var b=v(),w=m+1;if(-1!==t.indexOf(b,w+1))for(;d.length&&w<g;){var S=t[++w];if("\\"!==S)if(-1===h.indexOf(S)){if(b=v(),d.length&&-1===t.indexOf(b,w+1))break;s[S]?d.push(S):b===S&&d.pop()}else w=r(t,S,w+1);else S++}if(-1===(c=w)){p[p.length-1]+=y;continue}y=t.slice(m,c+1),x.val=y,x.idx=m=c}if(-1!==h.indexOf(y)){if(-1===(c=r(t,y,m+1))){p[p.length-1]+=y;continue}y=!0===o(y,l)?t.slice(m,c+1):t.slice(m+1,c),x.val=y,x.idx=m=c}"function"==typeof n&&(n(x,u),y=x.val,m=x.idx),x.val!==f||!1===x.split?p[p.length-1]+=x.val:p.push("")}else x.val=!0===a(l,t,m)?y+_:_,x.escaped=!0,"function"==typeof n&&n(x),p[p.length-1]+=x.val,m++}return p}},1981:function(t,e,n){"use strict";var i=this&&this.__spreadArrays||function(){for(var t=0,e=0,n=arguments.length;e<n;e++)t+=arguments[e].length;var i=Array(t),r=0;for(e=0;e<n;e++)for(var o=arguments[e],a=0,s=o.length;a<s;a++,r++)i[r]=o[a];return i};Object.defineProperty(e,"__esModule",{value:!0}),e.Checker=e.createCheckers=void 0;var r=n(9332),o=n(7389),a=n(9332);Object.defineProperty(e,"TArray",{enumerable:!0,get:function(){return a.TArray}}),Object.defineProperty(e,"TEnumType",{enumerable:!0,get:function(){return a.TEnumType}}),Object.defineProperty(e,"TEnumLiteral",{enumerable:!0,get:function(){return a.TEnumLiteral}}),Object.defineProperty(e,"TFunc",{enumerable:!0,get:function(){return a.TFunc}}),Object.defineProperty(e,"TIface",{enumerable:!0,get:function(){return a.TIface}}),Object.defineProperty(e,"TLiteral",{enumerable:!0,get:function(){return a.TLiteral}}),Object.defineProperty(e,"TName",{enumerable:!0,get:function(){return a.TName}}),Object.defineProperty(e,"TOptional",{enumerable:!0,get:function(){return a.TOptional}}),Object.defineProperty(e,"TParam",{enumerable:!0,get:function(){return a.TParam}}),Object.defineProperty(e,"TParamList",{enumerable:!0,get:function(){return a.TParamList}}),Object.defineProperty(e,"TProp",{enumerable:!0,get:function(){return a.TProp}}),Object.defineProperty(e,"TTuple",{enumerable:!0,get:function(){return a.TTuple}}),Object.defineProperty(e,"TType",{enumerable:!0,get:function(){return a.TType}}),Object.defineProperty(e,"TUnion",{enumerable:!0,get:function(){return a.TUnion}}),Object.defineProperty(e,"TIntersection",{enumerable:!0,get:function(){return a.TIntersection}}),Object.defineProperty(e,"array",{enumerable:!0,get:function(){return a.array}}),Object.defineProperty(e,"enumlit",{enumerable:!0,get:function(){return a.enumlit}}),Object.defineProperty(e,"enumtype",{enumerable:!0,get:function(){return a.enumtype}}),Object.defineProperty(e,"func",{enumerable:!0,get:function(){return a.func}}),Object.defineProperty(e,"iface",{enumerable:!0,get:function(){return a.iface}}),Object.defineProperty(e,"lit",{enumerable:!0,get:function(){return a.lit}}),Object.defineProperty(e,"name",{enumerable:!0,get:function(){return a.name}}),Object.defineProperty(e,"opt",{enumerable:!0,get:function(){return a.opt}}),Object.defineProperty(e,"param",{enumerable:!0,get:function(){return a.param}}),Object.defineProperty(e,"tuple",{enumerable:!0,get:function(){return a.tuple}}),Object.defineProperty(e,"union",{enumerable:!0,get:function(){return a.union}}),Object.defineProperty(e,"intersection",{enumerable:!0,get:function(){return a.intersection}}),Object.defineProperty(e,"BasicType",{enumerable:!0,get:function(){return a.BasicType}});var s=n(7389);Object.defineProperty(e,"VError",{enumerable:!0,get:function(){return s.VError}}),e.createCheckers=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];for(var n=Object.assign.apply(Object,i([{},r.basicTypes],t)),o={},a=0,s=t;a<s.length;a++)for(var h=s[a],c=0,u=Object.keys(h);c<u.length;c++){var d=u[c];o[d]=new l(n,h[d])}return o};var l=function(){function t(t,e,n){if(void 0===n&&(n="value"),this.suite=t,this.ttype=e,this._path=n,this.props=new Map,e instanceof r.TIface)for(var i=0,o=e.props;i<o.length;i++){var a=o[i];this.props.set(a.name,a.ttype)}this.checkerPlain=this.ttype.getChecker(t,!1),this.checkerStrict=this.ttype.getChecker(t,!0)}return t.prototype.setReportedPath=function(t){this._path=t},t.prototype.check=function(t){return this._doCheck(this.checkerPlain,t)},t.prototype.test=function(t){return this.checkerPlain(t,new o.NoopContext)},t.prototype.validate=function(t){return this._doValidate(this.checkerPlain,t)},t.prototype.strictCheck=function(t){return this._doCheck(this.checkerStrict,t)},t.prototype.strictTest=function(t){return this.checkerStrict(t,new o.NoopContext)},t.prototype.strictValidate=function(t){return this._doValidate(this.checkerStrict,t)},t.prototype.getProp=function(e){var n=this.props.get(e);if(!n)throw new Error("Type has no property "+e);return new t(this.suite,n,this._path+"."+e)},t.prototype.methodArgs=function(e){var n=this._getMethod(e);return new t(this.suite,n.paramList)},t.prototype.methodResult=function(e){var n=this._getMethod(e);return new t(this.suite,n.result)},t.prototype.getArgs=function(){if(!(this.ttype instanceof r.TFunc))throw new Error("getArgs() applied to non-function");return new t(this.suite,this.ttype.paramList)},t.prototype.getResult=function(){if(!(this.ttype instanceof r.TFunc))throw new Error("getResult() applied to non-function");return new t(this.suite,this.ttype.result)},t.prototype.getType=function(){return this.ttype},t.prototype._doCheck=function(t,e){if(!t(e,new o.NoopContext)){var n=new o.DetailContext;throw t(e,n),n.getError(this._path)}},t.prototype._doValidate=function(t,e){if(t(e,new o.NoopContext))return null;var n=new o.DetailContext;return t(e,n),n.getErrorDetail(this._path)},t.prototype._getMethod=function(t){var e=this.props.get(t);if(!e)throw new Error("Type has no property "+t);if(!(e instanceof r.TFunc))throw new Error("Property "+t+" is not a method");return e},t}();e.Checker=l},9332:function(t,e,n){"use strict";var i,r=this&&this.__extends||(i=function(t,e){return i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])},i(t,e)},function(t,e){function n(){this.constructor=t}i(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)});Object.defineProperty(e,"__esModule",{value:!0}),e.basicTypes=e.BasicType=e.TParamList=e.TParam=e.param=e.TFunc=e.func=e.TProp=e.TOptional=e.opt=e.TIface=e.iface=e.TEnumLiteral=e.enumlit=e.TEnumType=e.enumtype=e.TIntersection=e.intersection=e.TUnion=e.union=e.TTuple=e.tuple=e.TArray=e.array=e.TLiteral=e.lit=e.TName=e.name=e.TType=void 0;var o=n(7389),a=function(){};function s(t){return"string"==typeof t?h(t):t}function l(t,e){var n=t[e];if(!n)throw new Error("Unknown type "+e);return n}function h(t){return new c(t)}e.TType=a,e.name=h;var c=function(t){function e(e){var n=t.call(this)||this;return n.name=e,n._failMsg="is not a "+e,n}return r(e,t),e.prototype.getChecker=function(t,n,i){var r=this,o=l(t,this.name),a=o.getChecker(t,n,i);return o instanceof M||o instanceof e?a:function(t,e){return!!a(t,e)||e.fail(null,r._failMsg,0)}},e}(a);e.TName=c,e.lit=function(t){return new u(t)};var u=function(t){function e(e){var n=t.call(this)||this;return n.value=e,n.name=JSON.stringify(e),n._failMsg="is not "+n.name,n}return r(e,t),e.prototype.getChecker=function(t,e){var n=this;return function(t,e){return t===n.value||e.fail(null,n._failMsg,-1)}},e}(a);e.TLiteral=u,e.array=function(t){return new d(s(t))};var d=function(t){function e(e){var n=t.call(this)||this;return n.ttype=e,n}return r(e,t),e.prototype.getChecker=function(t,e){var n=this.ttype.getChecker(t,e);return function(t,e){if(!Array.isArray(t))return e.fail(null,"is not an array",0);for(var i=0;i<t.length;i++){if(!n(t[i],e))return e.fail(i,null,1)}return!0}},e}(a);e.TArray=d,e.tuple=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return new p(t.map((function(t){return s(t)})))};var p=function(t){function e(e){var n=t.call(this)||this;return n.ttypes=e,n}return r(e,t),e.prototype.getChecker=function(t,e){var n=this.ttypes.map((function(n){return n.getChecker(t,e)})),i=function(t,e){if(!Array.isArray(t))return e.fail(null,"is not an array",0);for(var i=0;i<n.length;i++){if(!n[i](t[i],e))return e.fail(i,null,1)}return!0};return e?function(t,e){return!!i(t,e)&&(t.length<=n.length||e.fail(n.length,"is extraneous",2))}:i},e}(a);e.TTuple=p,e.union=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return new f(t.map((function(t){return s(t)})))};var f=function(t){function e(e){var n=t.call(this)||this;n.ttypes=e;var i=e.map((function(t){return t instanceof c||t instanceof u?t.name:null})).filter((function(t){return t})),r=e.length-i.length;return i.length?(r>0&&i.push(r+" more"),n._failMsg="is none of "+i.join(", ")):n._failMsg="is none of "+r+" types",n}return r(e,t),e.prototype.getChecker=function(t,e){var n=this,i=this.ttypes.map((function(n){return n.getChecker(t,e)}));return function(t,e){for(var r=e.unionResolver(),o=0;o<i.length;o++){if(i[o](t,r.createContext()))return!0}return e.resolveUnion(r),e.fail(null,n._failMsg,0)}},e}(a);e.TUnion=f,e.intersection=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return new g(t.map((function(t){return s(t)})))};var g=function(t){function e(e){var n=t.call(this)||this;return n.ttypes=e,n}return r(e,t),e.prototype.getChecker=function(t,e){var n=new Set,i=this.ttypes.map((function(i){return i.getChecker(t,e,n)}));return function(t,e){return!!i.every((function(n){return n(t,e)}))||e.fail(null,null,0)}},e}(a);e.TIntersection=g,e.enumtype=function(t){return new m(t)};var m=function(t){function e(e){var n=t.call(this)||this;return n.members=e,n.validValues=new Set,n._failMsg="is not a valid enum value",n.validValues=new Set(Object.keys(e).map((function(t){return e[t]}))),n}return r(e,t),e.prototype.getChecker=function(t,e){var n=this;return function(t,e){return!!n.validValues.has(t)||e.fail(null,n._failMsg,0)}},e}(a);e.TEnumType=m,e.enumlit=function(t,e){return new v(t,e)};var v=function(t){function e(e,n){var i=t.call(this)||this;return i.enumName=e,i.prop=n,i._failMsg="is not "+e+"."+n,i}return r(e,t),e.prototype.getChecker=function(t,e){var n=this,i=l(t,this.enumName);if(!(i instanceof m))throw new Error("Type "+this.enumName+" used in enumlit is not an enum type");var r=i.members[this.prop];if(!i.members.hasOwnProperty(this.prop))throw new Error("Unknown value "+this.enumName+"."+this.prop+" used in enumlit");return function(t,e){return t===r||e.fail(null,n._failMsg,-1)}},e}(a);function y(t){return Object.keys(t).map((function(e){return function(t,e){return e instanceof x?new b(t,e.ttype,!0):new b(t,s(e),!1)}(e,t[e])}))}e.TEnumLiteral=v,e.iface=function(t,e){return new _(t,y(e))};var _=function(t){function e(e,n){var i=t.call(this)||this;return i.bases=e,i.props=n,i.propSet=new Set(n.map((function(t){return t.name}))),i}return r(e,t),e.prototype.getChecker=function(t,e,n){var i=this,r=this.bases.map((function(n){return l(t,n).getChecker(t,e)})),a=this.props.map((function(n){return n.ttype.getChecker(t,e)})),s=new o.NoopContext,h=this.props.map((function(t,e){return!t.isOpt&&!a[e](void 0,s)})),c=function(t,e){if("object"!=typeof t||null===t)return e.fail(null,"is not an object",0);for(var n=0;n<r.length;n++)if(!r[n](t,e))return!1;for(n=0;n<a.length;n++){var o=i.props[n].name,s=t[o];if(void 0===s){if(h[n])return e.fail(o,"is missing",1)}else if(!a[n](s,e))return e.fail(o,null,1)}return!0};if(!e)return c;var u=this.propSet;return n&&(this.propSet.forEach((function(t){return n.add(t)})),u=n),function(t,e){if(!c(t,e))return!1;for(var n in t)if(!u.has(n))return e.fail(n,"is extraneous",2);return!0}},e}(a);e.TIface=_,e.opt=function(t){return new x(s(t))};var x=function(t){function e(e){var n=t.call(this)||this;return n.ttype=e,n}return r(e,t),e.prototype.getChecker=function(t,e){var n=this.ttype.getChecker(t,e);return function(t,e){return void 0===t||n(t,e)}},e}(a);e.TOptional=x;var b=function(t,e,n){this.name=t,this.ttype=e,this.isOpt=n};e.TProp=b,e.func=function(t){for(var e=[],n=1;n<arguments.length;n++)e[n-1]=arguments[n];return new w(new T(e),s(t))};var w=function(t){function e(e,n){var i=t.call(this)||this;return i.paramList=e,i.result=n,i}return r(e,t),e.prototype.getChecker=function(t,e){return function(t,e){return"function"==typeof t||e.fail(null,"is not a function",0)}},e}(a);e.TFunc=w,e.param=function(t,e,n){return new S(t,s(e),Boolean(n))};var S=function(t,e,n){this.name=t,this.ttype=e,this.isOpt=n};e.TParam=S;var T=function(t){function e(e){var n=t.call(this)||this;return n.params=e,n}return r(e,t),e.prototype.getChecker=function(t,e){var n=this,i=this.params.map((function(n){return n.ttype.getChecker(t,e)})),r=new o.NoopContext,a=this.params.map((function(t,e){return!t.isOpt&&!i[e](void 0,r)})),s=function(t,e){if(!Array.isArray(t))return e.fail(null,"is not an array",0);for(var r=0;r<i.length;r++){var o=n.params[r];if(void 0===t[r]){if(a[r])return e.fail(o.name,"is missing",1)}else if(!i[r](t[r],e))return e.fail(o.name,null,1)}return!0};return e?function(t,e){return!!s(t,e)&&(t.length<=i.length||e.fail(i.length,"is extraneous",2))}:s},e}(a);e.TParamList=T;var M=function(t){function e(e,n){var i=t.call(this)||this;return i.validator=e,i.message=n,i}return r(e,t),e.prototype.getChecker=function(t,e){var n=this;return function(t,e){return!!n.validator(t)||e.fail(null,n.message,0)}},e}(a);e.BasicType=M,e.basicTypes={any:new M((function(t){return!0}),"is invalid"),number:new M((function(t){return"number"==typeof t}),"is not a number"),object:new M((function(t){return"object"==typeof t&&t}),"is not an object"),boolean:new M((function(t){return"boolean"==typeof t}),"is not a boolean"),string:new M((function(t){return"string"==typeof t}),"is not a string"),symbol:new M((function(t){return"symbol"==typeof t}),"is not a symbol"),void:new M((function(t){return null==t}),"is not void"),undefined:new M((function(t){return void 0===t}),"is not undefined"),null:new M((function(t){return null===t}),"is not null"),never:new M((function(t){return!1}),"is unexpected"),Date:new M(C("[object Date]"),"is not a Date"),RegExp:new M(C("[object RegExp]"),"is not a RegExp")};var A=Object.prototype.toString;function C(t){return function(e){return"object"==typeof e&&e&&A.call(e)===t}}"undefined"!=typeof Buffer&&(e.basicTypes.Buffer=new M((function(t){return Buffer.isBuffer(t)}),"is not a Buffer"));for(var I=function(t){e.basicTypes[t.name]=new M((function(e){return e instanceof t}),"is not a "+t.name)},E=0,k=[Int8Array,Uint8Array,Uint8ClampedArray,Int16Array,Uint16Array,Int32Array,Uint32Array,Float32Array,Float64Array,ArrayBuffer];E<k.length;E++){I(k[E])}},7389:function(t,e){"use strict";var n,i=this&&this.__extends||(n=function(t,e){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])},n(t,e)},function(t,e){function i(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)});Object.defineProperty(e,"__esModule",{value:!0}),e.DetailContext=e.NoopContext=e.VError=void 0;var r=function(t){function e(n,i){var r=t.call(this,i)||this;return r.path=n,Object.setPrototypeOf(r,e.prototype),r}return i(e,t),e}(Error);e.VError=r;var o=function(){function t(){}return t.prototype.fail=function(t,e,n){return!1},t.prototype.unionResolver=function(){return this},t.prototype.createContext=function(){return this},t.prototype.resolveUnion=function(t){},t}();e.NoopContext=o;var a=function(){function t(){this._propNames=[""],this._messages=[null],this._score=0}return t.prototype.fail=function(t,e,n){return this._propNames.push(t),this._messages.push(e),this._score+=n,!1},t.prototype.unionResolver=function(){return new s},t.prototype.resolveUnion=function(t){for(var e,n,i=null,r=0,o=t.contexts;r<o.length;r++){var a=o[r];(!i||a._score>=i._score)&&(i=a)}i&&i._score>0&&((e=this._propNames).push.apply(e,i._propNames),(n=this._messages).push.apply(n,i._messages))},t.prototype.getError=function(t){for(var e=[],n=this._propNames.length-1;n>=0;n--){var i=this._propNames[n];t+="number"==typeof i?"["+i+"]":i?"."+i:"";var o=this._messages[n];o&&e.push(t+" "+o)}return new r(t,e.join("; "))},t.prototype.getErrorDetail=function(t){for(var e=[],n=this._propNames.length-1;n>=0;n--){var i=this._propNames[n];t+="number"==typeof i?"["+i+"]":i?"."+i:"";var r=this._messages[n];r&&e.push({path:t,message:r})}var o=null;for(n=e.length-1;n>=0;n--)o&&(e[n].nested=[o]),o=e[n];return o},t}();e.DetailContext=a;var s=function(){function t(){this.contexts=[]}return t.prototype.createContext=function(){var t=new a;return this.contexts.push(t),t},t}()},528:(t,e,n)=>{"use strict";n.d(e,{C6:()=>r});var i=function(t,e){return i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},i(t,e)};function r(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function n(){this.constructor=t}i(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}Object.create;Object.create},2036:(t,e,n)=>{"use strict";n.d(e,{R:()=>a,x:()=>s});var i=n(7378);const r={},o=i.createContext(r);function a(t){const e=i.useContext(o);return i.useMemo((function(){return"function"==typeof t?t(e):{...e,...t}}),[e,t])}function s(t){let e;return e=t.disableParentContext?"function"==typeof t.components?t.components(r):t.components||r:a(t.components),i.createElement(o.Provider,{value:e},t.children)}},4347:(t,e,n)=>{"use strict";n.r(e),n.d(e,{Axis:()=>r._0,ChartView:()=>r.OZ,ComponentModel:()=>r.jT,ComponentView:()=>r.bR,List:()=>r.B8,Model:()=>r.Kx,PRIORITY:()=>r.FQ,SeriesModel:()=>r.rP,color:()=>r.yW,connect:()=>r.Ng,dataTool:()=>r.p5,dependencies:()=>r.El,disConnect:()=>r.zm,disconnect:()=>r.Zf,dispose:()=>r.AS,env:()=>r._K,extendChartView:()=>r.yX,extendComponentModel:()=>r.rt,extendComponentView:()=>r.NO,extendSeriesModel:()=>r.NA,format:()=>r.GP,getCoordinateSystemDimensions:()=>r.Bo,getInstanceByDom:()=>r.FP,getInstanceById:()=>r.aQ,getMap:()=>r.ZB,graphic:()=>r.fA,helper:()=>r.dw,init:()=>r.Ts,innerDrawElementOnCanvas:()=>r.UU,matrix:()=>r.UP,number:()=>r.ai,parseGeoJSON:()=>r.l3,parseGeoJson:()=>r.zI,registerAction:()=>r.OH,registerCoordinateSystem:()=>r.pX,registerLayout:()=>r.Oh,registerLoading:()=>r.Ej,registerLocale:()=>r.E,registerMap:()=>r.mz,registerPostInit:()=>r.cf,registerPostUpdate:()=>r.tb,registerPreprocessor:()=>r.lP,registerProcessor:()=>r.qg,registerTheme:()=>r.bf,registerTransform:()=>r.iY,registerUpdateLifecycle:()=>r.xV,registerVisual:()=>r.AF,setCanvasCreator:()=>r.vV,setPlatformAPI:()=>r.Gs,throttle:()=>r.nF,time:()=>r.kB,use:()=>r.Yx,util:()=>r.ZS,vector:()=>r.i1,version:()=>r.rE,zrUtil:()=>r.F_,zrender:()=>r.nd});var i=n(585),r=n(889),o=n(1829),a=n(9934),s=n(1885),l=n(5975),h=n(4611),c=n(3554),u=Math.sin,d=Math.cos,p=Math.PI,f=2*Math.PI,g=180/p,m=function(){function t(){}return t.prototype.reset=function(t){this._start=!0,this._d=[],this._str="",this._p=Math.pow(10,t||4)},t.prototype.moveTo=function(t,e){this._add("M",t,e)},t.prototype.lineTo=function(t,e){this._add("L",t,e)},t.prototype.bezierCurveTo=function(t,e,n,i,r,o){this._add("C",t,e,n,i,r,o)},t.prototype.quadraticCurveTo=function(t,e,n,i){this._add("Q",t,e,n,i)},t.prototype.arc=function(t,e,n,i,r,o){this.ellipse(t,e,n,n,0,i,r,o)},t.prototype.ellipse=function(t,e,n,i,r,o,s,l){var h=s-o,c=!l,m=Math.abs(h),v=(0,a.Cv)(m-f)||(c?h>=f:-h>=f),y=h>0?h%f:h%f+f,_=!1;_=!!v||!(0,a.Cv)(m)&&y>=p==!!c;var x=t+n*d(o),b=e+i*u(o);this._start&&this._add("M",x,b);var w=Math.round(r*g);if(v){var S=1/this._p,T=(c?1:-1)*(f-S);this._add("A",n,i,w,1,+c,t+n*d(o+T),e+i*u(o+T)),S>.01&&this._add("A",n,i,w,0,+c,x,b)}else{var M=t+n*d(s),A=e+i*u(s);this._add("A",n,i,w,+_,+c,M,A)}},t.prototype.rect=function(t,e,n,i){this._add("M",t,e),this._add("l",n,0),this._add("l",0,i),this._add("l",-n,0),this._add("Z")},t.prototype.closePath=function(){this._d.length>0&&this._add("Z")},t.prototype._add=function(t,e,n,i,r,o,a,s,l){for(var h=[],c=this._p,u=1;u<arguments.length;u++){var d=arguments[u];if(isNaN(d))return void(this._invalid=!0);h.push(Math.round(d*c)/c)}this._d.push(t+h.join(" ")),this._start="Z"===t},t.prototype.generateStr=function(){this._str=this._invalid?"":this._d.join(""),this._d=[]},t.prototype.getStr=function(){return this._str},t}();const v=m;var y=n(2703),_=n(7845),x="none",b=Math.round;var w=["lineCap","miterLimit","lineJoin"],S=(0,_.map)(w,(function(t){return"stroke-"+t.toLowerCase()}));function T(t,e,n,i){var r=null==e.opacity?1:e.opacity;if(n instanceof l.Ay)t("opacity",r);else{if(function(t){var e=t.fill;return null!=e&&e!==x}(e)){var o=(0,a.$2)(e.fill);t("fill",o.color);var h=null!=e.fillOpacity?e.fillOpacity*o.opacity*r:o.opacity*r;(i||h<1)&&t("fill-opacity",h)}else t("fill",x);if(function(t){var e=t.stroke;return null!=e&&e!==x}(e)){var c=(0,a.$2)(e.stroke);t("stroke",c.color);var u=e.strokeNoScale?n.getLineScale():1,d=u?(e.lineWidth||0)/u:0,p=null!=e.strokeOpacity?e.strokeOpacity*c.opacity*r:c.opacity*r,f=e.strokeFirst;if((i||1!==d)&&t("stroke-width",d),(i||f)&&t("paint-order",f?"stroke":"fill"),(i||p<1)&&t("stroke-opacity",p),e.lineDash){var g=(0,y.V)(n),m=g[0],v=g[1];m&&(v=b(v||0),t("stroke-dasharray",m.join(",")),(v||i)&&t("stroke-dashoffset",v))}else i&&t("stroke-dasharray",x);for(var _=0;_<w.length;_++){var T=w[_];if(i||e[T]!==s.MW[T]){var M=e[T]||s.MW[T];M&&t(S[_],M)}}}else i&&t("stroke",x)}}var M=n(4178),A="http://www.w3.org/2000/svg",C="http://www.w3.org/1999/xlink",I="ecmeta_";function E(t){return document.createElementNS(A,t)}function k(t,e,n,i,r){return{tag:t,attrs:n||{},children:i,text:r,key:e}}function L(t,e){var n=(e=e||{}).newline?"\n":"";return function t(e){var i=e.children,r=e.tag,o=e.attrs,a=e.text;return function(t,e){var n=[];if(e)for(var i in e){var r=e[i],o=i;!1!==r&&(!0!==r&&null!=r&&(o+='="'+r+'"'),n.push(o))}return"<"+t+" "+n.join(" ")+">"}(r,o)+("style"!==r?(0,M.Me)(a):a||"")+(i?""+n+(0,_.map)(i,(function(e){return t(e)})).join(n)+n:"")+("</"+r+">")}(t)}function D(t){return{zrId:t,shadowCache:{},patternCache:{},gradientCache:{},clipPathCache:{},defs:{},cssNodes:{},cssAnims:{},cssStyleCache:{},cssAnimIdx:0,shadowIdx:0,gradientIdx:0,patternIdx:0,clipPathIdx:0}}function P(t,e,n,i){return k("svg","root",{width:t,height:e,xmlns:A,"xmlns:xlink":C,version:"1.1",baseProfile:"full",viewBox:!!i&&"0 0 "+t+" "+e},n)}var R=n(3822),O=n(5853),N=n(584),F=n(7298),B=n(1799),z=0;function G(){return z++}var V={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"},j="transform-origin";function H(t,e,n){var i=(0,_.extend)({},t.shape);(0,_.extend)(i,e),t.buildPath(n,i);var r=new v;return r.reset((0,a.MD)(t)),n.rebuildPath(r,1),r.generateStr(),r.getStr()}function W(t,e){var n=e.originX,i=e.originY;(n||i)&&(t[j]=n+"px "+i+"px")}var U={fill:"fill",opacity:"opacity",lineWidth:"stroke-width",lineDashOffset:"stroke-dashoffset"};function q(t,e){var n=e.zrId+"-ani-"+e.cssAnimIdx++;return e.cssAnims[n]=t,n}function X(t){return(0,_.isString)(t)?V[t]?"cubic-bezier("+V[t]+")":(0,B.w)(t)?t:"":""}function Y(t,e,n,i){var r=t.animators,o=r.length,s=[];if(t instanceof F.A){var l=function(t,e,n){var i,r,o=t.shape.paths,a={};if((0,_.each)(o,(function(t){var e=D(n.zrId);e.animation=!0,Y(t,{},e,!0);var o=e.cssAnims,s=e.cssNodes,l=(0,_.keys)(o),h=l.length;if(h){var c=o[r=l[h-1]];for(var u in c){var d=c[u];a[u]=a[u]||{d:""},a[u].d+=d.d||""}for(var p in s){var f=s[p].animation;f.indexOf(r)>=0&&(i=f)}}})),i){e.d=!1;var s=q(a,n);return i.replace(r,s)}}(t,e,n);if(l)s.push(l);else if(!o)return}else if(!o)return;for(var h={},c=0;c<o;c++){var u=r[c],d=[u.getMaxTime()/1e3+"s"],p=X(u.getClip().easing),f=u.getDelay();p?d.push(p):d.push("linear"),f&&d.push(f/1e3+"s"),u.getLoop()&&d.push("infinite");var g=d.join(" ");h[g]=h[g]||[g,[]],h[g][1].push(u)}function m(r){var o,s=r[1],l=s.length,h={},c={},u={},d="animation-timing-function";function p(t,e,n){for(var i=t.getTracks(),r=t.getMaxTime(),o=0;o<i.length;o++){var a=i[o];if(a.needsAnimate()){var s=a.keyframes,l=a.propName;if(n&&(l=n(l)),l)for(var h=0;h<s.length;h++){var c=s[h],u=Math.round(c.time/r*100)+"%",p=X(c.easing),f=c.rawValue;((0,_.isString)(f)||(0,_.isNumber)(f))&&(e[u]=e[u]||{},e[u][l]=c.rawValue,p&&(e[u][d]=p))}}}}for(var f=0;f<l;f++){(M=(T=s[f]).targetName)?"shape"===M&&p(T,c):!i&&p(T,h)}for(var g in h){var m={};(0,O.IT)(m,t),(0,_.extend)(m,h[g]);var v=(0,a.Z1)(m),y=h[g][d];u[g]=v?{transform:v}:{},W(u[g],m),y&&(u[g][d]=y)}var x=!0;for(var g in c){u[g]=u[g]||{};var b=!o;y=c[g][d];b&&(o=new N.A);var w=o.len();o.reset(),u[g].d=H(t,c[g],o);var S=o.len();if(!b&&w!==S){x=!1;break}y&&(u[g][d]=y)}if(!x)for(var g in u)delete u[g].d;if(!i)for(f=0;f<l;f++){var T,M;"style"===(M=(T=s[f]).targetName)&&p(T,u,(function(t){return U[t]}))}var A,C=(0,_.keys)(u),I=!0;for(f=1;f<C.length;f++){var E=C[f-1],k=C[f];if(u[E][j]!==u[k][j]){I=!1;break}A=u[E][j]}if(I&&A){for(var g in u)u[g][j]&&delete u[g][j];e[j]=A}if((0,_.filter)(C,(function(t){return(0,_.keys)(u[t]).length>0})).length)return q(u,n)+" "+r[0]+" both"}for(var v in h){(l=m(h[v]))&&s.push(l)}if(s.length){var y=n.zrId+"-cls-"+G();n.cssNodes["."+y]={animation:s.join(",")},e.class=y}}var Z=n(1251),$=n(9142),K=n(7219);function J(t,e,n,i){var r=JSON.stringify(t),o=n.cssStyleCache[r];o||(o=n.zrId+"-cls-"+G(),n.cssStyleCache[r]=o,n.cssNodes["."+o+(i?":hover":"")]=t),e.class=e.class?e.class+" "+o:o}var Q=n(2563),tt=Math.round;function et(t){return t&&(0,_.isString)(t.src)}function nt(t){return t&&(0,_.isFunction)(t.toDataURL)}function it(t,e,n,i){T((function(r,o){var s="fill"===r||"stroke"===r;s&&(0,a.bn)(o)?ft(e,t,r,i):s&&(0,a.Pt)(o)?gt(n,t,r,i):t[r]=s&&"none"===o?"transparent":o}),e,n,!1),function(t,e,n){var i=t.style;if((0,a.dX)(i)){var r=(0,a.si)(t),o=n.shadowCache,s=o[r];if(!s){var l=t.getGlobalScale(),h=l[0],c=l[1];if(!h||!c)return;var u=i.shadowOffsetX||0,d=i.shadowOffsetY||0,p=i.shadowBlur,f=(0,a.$2)(i.shadowColor),g=f.opacity,m=f.color,v=p/2/h+" "+p/2/c;s=n.zrId+"-s"+n.shadowIdx++,n.defs[s]=k("filter",s,{id:s,x:"-100%",y:"-100%",width:"300%",height:"300%"},[k("feDropShadow","",{dx:u/h,dy:d/c,stdDeviation:v,"flood-color":m,"flood-opacity":g})]),o[r]=s}e.filter=(0,a.Xu)(s)}}(n,t,i)}function rt(t,e){var n=(0,Q.getElementSSRData)(e);n&&(n.each((function(e,n){null!=e&&(t[(I+n).toLowerCase()]=e+"")})),e.isSilent()&&(t[I+"silent"]="true"))}function ot(t){return(0,a.Cv)(t[0]-1)&&(0,a.Cv)(t[1])&&(0,a.Cv)(t[2])&&(0,a.Cv)(t[3]-1)}function at(t,e,n){if(e&&(!function(t){return(0,a.Cv)(t[4])&&(0,a.Cv)(t[5])}(e)||!ot(e))){var i=n?10:1e4;t.transform=ot(e)?"translate("+tt(e[4]*i)/i+" "+tt(e[5]*i)/i+")":(0,a.nV)(e)}}function st(t,e,n){for(var i=t.points,r=[],o=0;o<i.length;o++)r.push(tt(i[o][0]*n)/n),r.push(tt(i[o][1]*n)/n);e.points=r.join(" ")}function lt(t){return!t.smooth}var ht,ct,ut={circle:[(ht=["cx","cy","r"],ct=(0,_.map)(ht,(function(t){return"string"==typeof t?[t,t]:t})),function(t,e,n){for(var i=0;i<ct.length;i++){var r=ct[i],o=t[r[0]];null!=o&&(e[r[1]]=tt(o*n)/n)}})],polyline:[st,lt],polygon:[st,lt]};function dt(t,e){var n=t.style,i=t.shape,r=ut[t.type],o={},s=e.animation,l="path",h=t.style.strokePercent,c=e.compress&&(0,a.MD)(t)||4;if(!r||e.willUpdate||r[1]&&!r[1](i)||s&&function(t){for(var e=t.animators,n=0;n<e.length;n++)if("shape"===e[n].targetName)return!0;return!1}(t)||h<1){var u=!t.path||t.shapeChanged();t.path||t.createPathProxy();var d=t.path;u&&(d.beginPath(),t.buildPath(d,t.shape),t.pathUpdated());var p=d.getVersion(),f=t,g=f.__svgPathBuilder;f.__svgPathVersion===p&&g&&h===f.__svgPathStrokePercent||(g||(g=f.__svgPathBuilder=new v),g.reset(c),d.rebuildPath(g,h),g.generateStr(),f.__svgPathVersion=p,f.__svgPathStrokePercent=h),o.d=g.getStr()}else{l=t.type;var m=Math.pow(10,c);r[0](i,o,m)}return at(o,t.transform),it(o,n,t,e),rt(o,t),e.animation&&Y(t,o,e),e.emphasis&&function(t,e,n){if(!t.ignore)if(t.isSilent())J(h={"pointer-events":"none"},e,n,!0);else{var i=t.states.emphasis&&t.states.emphasis.style?t.states.emphasis.style:{},r=i.fill;if(!r){var o=t.style&&t.style.fill,a=t.states.select&&t.states.select.style&&t.states.select.style.fill,s=t.currentStates.indexOf("select")>=0&&a||o;s&&(r=(0,K.liftColor)(s))}var l=i.lineWidth;l&&(l/=!i.strokeNoScale&&t.transform?t.transform[0]:1);var h={cursor:"pointer"};r&&(h.fill=r),i.stroke&&(h.stroke=i.stroke),l&&(h["stroke-width"]=l),J(h,e,n,!0)}}(t,o,e),k(l,t.id+"",o)}function pt(t,e){return t instanceof s.Ay?dt(t,e):t instanceof l.Ay?function(t,e){var n=t.style,i=n.image;if(i&&!(0,_.isString)(i)&&(et(i)?i=i.src:nt(i)&&(i=i.toDataURL())),i){var r=n.x||0,o=n.y||0,a={href:i,width:n.width,height:n.height};return r&&(a.x=r),o&&(a.y=o),at(a,t.transform),it(a,n,t,e),rt(a,t),e.animation&&Y(t,a,e),k("image",t.id+"",a)}}(t,e):t instanceof c.A?function(t,e){var n=t.style,i=n.text;if(null!=i&&(i+=""),i&&!isNaN(n.x)&&!isNaN(n.y)){var r=n.font||$.OH,o=n.x||0,s=(0,a.sZ)(n.y||0,(0,h.ks)(r),n.textBaseline),l={"dominant-baseline":"central","text-anchor":a.eQ[n.textAlign]||n.textAlign};if((0,Z.XE)(n)){var c="",u=n.fontStyle,d=(0,Z.I5)(n.fontSize);if(!parseFloat(d))return;var p=n.fontFamily||$.zs,f=n.fontWeight;c+="font-size:"+d+";font-family:"+p+";",u&&"normal"!==u&&(c+="font-style:"+u+";"),f&&"normal"!==f&&(c+="font-weight:"+f+";"),l.style=c}else l.style="font: "+r;return i.match(/\s/)&&(l["xml:space"]="preserve"),o&&(l.x=o),s&&(l.y=s),at(l,t.transform),it(l,n,t,e),rt(l,t),e.animation&&Y(t,l,e),k("text",t.id+"",l,void 0,i)}}(t,e):void 0}function ft(t,e,n,i){var r,o=t[n],s={gradientUnits:o.global?"userSpaceOnUse":"objectBoundingBox"};if((0,a.OS)(o))r="linearGradient",s.x1=o.x,s.y1=o.y,s.x2=o.x2,s.y2=o.y2;else{if(!(0,a.OH)(o))return void 0;r="radialGradient",s.cx=(0,_.retrieve2)(o.x,.5),s.cy=(0,_.retrieve2)(o.y,.5),s.r=(0,_.retrieve2)(o.r,.5)}for(var l=o.colorStops,h=[],c=0,u=l.length;c<u;++c){var d=100*(0,a.XP)(l[c].offset)+"%",p=l[c].color,f=(0,a.$2)(p),g=f.color,m=f.opacity,v={offset:d};v["stop-color"]=g,m<1&&(v["stop-opacity"]=m),h.push(k("stop",c+"",v))}var y=L(k(r,"",s,h)),x=i.gradientCache,b=x[y];b||(b=i.zrId+"-g"+i.gradientIdx++,x[y]=b,s.id=b,i.defs[b]=k(r,b,s,h)),e[n]=(0,a.Xu)(b)}function gt(t,e,n,i){var r,o=t.style[n],s=t.getBoundingRect(),l={},h=o.repeat,c="no-repeat"===h,u="repeat-x"===h,d="repeat-y"===h;if((0,a.sL)(o)){var p=o.imageWidth,f=o.imageHeight,g=void 0,m=o.image;if((0,_.isString)(m)?g=m:et(m)?g=m.src:nt(m)&&(g=m.toDataURL()),"undefined"==typeof Image){var v="Image width/height must been given explictly in svg-ssr renderer.";(0,_.assert)(p,v),(0,_.assert)(f,v)}else if(null==p||null==f){var y=function(t,e){if(t){var n=t.elm,i=p||e.width,r=f||e.height;"pattern"===t.tag&&(u?(r=1,i/=s.width):d&&(i=1,r/=s.height)),t.attrs.width=i,t.attrs.height=r,n&&(n.setAttribute("width",i),n.setAttribute("height",r))}},x=(0,R.OD)(g,null,t,(function(t){c||y(T,t),y(r,t)}));x&&x.width&&x.height&&(p=p||x.width,f=f||x.height)}r=k("image","img",{href:g,width:p,height:f}),l.width=p,l.height=f}else o.svgElement&&(r=(0,_.clone)(o.svgElement),l.width=o.svgWidth,l.height=o.svgHeight);if(r){var b,w;c?b=w=1:u?(w=1,b=l.width/s.width):d?(b=1,w=l.height/s.height):l.patternUnits="userSpaceOnUse",null==b||isNaN(b)||(l.width=b),null==w||isNaN(w)||(l.height=w);var S=(0,a.Z1)(o);S&&(l.patternTransform=S);var T=k("pattern","",l,[r]),M=L(T),A=i.patternCache,C=A[M];C||(C=i.zrId+"-p"+i.patternIdx++,A[M]=C,l.id=C,T=i.defs[C]=k("pattern",C,l,[r])),e[n]=(0,a.Xu)(C)}}function mt(t,e,n){var i=n.clipPathCache,r=n.defs,o=i[t.id];if(!o){var s={id:o=n.zrId+"-c"+n.clipPathIdx++};i[t.id]=o,r[o]=k("clipPath",o,s,[dt(t,n)])}e["clip-path"]=(0,a.Xu)(o)}function vt(t){return document.createTextNode(t)}function yt(t,e,n){t.insertBefore(e,n)}function _t(t,e){t.removeChild(e)}function xt(t,e){t.appendChild(e)}function bt(t){return t.parentNode}function wt(t){return t.nextSibling}function St(t,e){t.textContent=e}var Tt=k("","");function Mt(t){return void 0===t}function At(t){return void 0!==t}function Ct(t,e,n){for(var i={},r=e;r<=n;++r){var o=t[r].key;void 0!==o&&(i[o]=r)}return i}function It(t,e){var n=t.key===e.key;return t.tag===e.tag&&n}function Et(t){var e,n=t.children,i=t.tag;if(At(i)){var r=t.elm=E(i);if(Dt(Tt,t),(0,_.isArray)(n))for(e=0;e<n.length;++e){var o=n[e];null!=o&&xt(r,Et(o))}else At(t.text)&&!(0,_.isObject)(t.text)&&xt(r,vt(t.text))}else t.elm=vt(t.text);return t.elm}function kt(t,e,n,i,r){for(;i<=r;++i){var o=n[i];null!=o&&yt(t,Et(o),e)}}function Lt(t,e,n,i){for(;n<=i;++n){var r=e[n];if(null!=r)if(At(r.tag))_t(bt(r.elm),r.elm);else _t(t,r.elm)}}function Dt(t,e){var n,i=e.elm,r=t&&t.attrs||{},o=e.attrs||{};if(r!==o){for(n in o){var a=o[n];r[n]!==a&&(!0===a?i.setAttribute(n,""):!1===a?i.removeAttribute(n):"style"===n?i.style.cssText=a:120!==n.charCodeAt(0)?i.setAttribute(n,a):"xmlns:xlink"===n||"xmlns"===n?i.setAttributeNS("http://www.w3.org/2000/xmlns/",n,a):58===n.charCodeAt(3)?i.setAttributeNS("http://www.w3.org/XML/1998/namespace",n,a):58===n.charCodeAt(5)?i.setAttributeNS(C,n,a):i.setAttribute(n,a))}for(n in r)n in o||i.removeAttribute(n)}}function Pt(t,e){var n=e.elm=t.elm,i=t.children,r=e.children;t!==e&&(Dt(t,e),Mt(e.text)?At(i)&&At(r)?i!==r&&function(t,e,n){for(var i,r,o,a=0,s=0,l=e.length-1,h=e[0],c=e[l],u=n.length-1,d=n[0],p=n[u];a<=l&&s<=u;)null==h?h=e[++a]:null==c?c=e[--l]:null==d?d=n[++s]:null==p?p=n[--u]:It(h,d)?(Pt(h,d),h=e[++a],d=n[++s]):It(c,p)?(Pt(c,p),c=e[--l],p=n[--u]):It(h,p)?(Pt(h,p),yt(t,h.elm,wt(c.elm)),h=e[++a],p=n[--u]):It(c,d)?(Pt(c,d),yt(t,c.elm,h.elm),c=e[--l],d=n[++s]):(Mt(i)&&(i=Ct(e,a,l)),Mt(r=i[d.key])||(o=e[r]).tag!==d.tag?yt(t,Et(d),h.elm):(Pt(o,d),e[r]=void 0,yt(t,o.elm,h.elm)),d=n[++s]);(a<=l||s<=u)&&(a>l?kt(t,null==n[u+1]?null:n[u+1].elm,n,s,u):Lt(t,e,a,l))}(n,i,r):At(r)?(At(t.text)&&St(n,""),kt(n,null,r,0,r.length-1)):At(i)?Lt(n,i,0,i.length-1):At(t.text)&&St(n,""):t.text!==e.text&&(At(i)&&Lt(n,i,0,i.length-1),St(n,e.text)))}var Rt=n(4804),Ot=0,Nt=function(){function t(t,e,n){if(this.type="svg",this.refreshHover=function(){0},this.configLayer=function(){0},this.storage=e,this._opts=n=(0,_.extend)({},n),this.root=t,this._id="zr"+Ot++,this._oldVNode=P(n.width,n.height),t&&!n.ssr){var i=this._viewport=document.createElement("div");i.style.cssText="position:relative;overflow:hidden";var r=this._svgDom=this._oldVNode.elm=E("svg");Dt(null,this._oldVNode),i.appendChild(r),t.appendChild(i)}this.resize(n.width,n.height)}return t.prototype.getType=function(){return this.type},t.prototype.getViewportRoot=function(){return this._viewport},t.prototype.getViewportRootOffset=function(){var t=this.getViewportRoot();if(t)return{offsetLeft:t.offsetLeft||0,offsetTop:t.offsetTop||0}},t.prototype.getSvgDom=function(){return this._svgDom},t.prototype.refresh=function(){if(this.root){var t=this.renderToVNode({willUpdate:!0});t.attrs.style="position:absolute;left:0;top:0;user-select:none",function(t,e){if(It(t,e))Pt(t,e);else{var n=t.elm,i=bt(n);Et(e),null!==i&&(yt(i,e.elm,wt(n)),Lt(i,[t],0,0))}}(this._oldVNode,t),this._oldVNode=t}},t.prototype.renderOneToVNode=function(t){return pt(t,D(this._id))},t.prototype.renderToVNode=function(t){t=t||{};var e=this.storage.getDisplayList(!0),n=this._width,i=this._height,r=D(this._id);r.animation=t.animation,r.willUpdate=t.willUpdate,r.compress=t.compress,r.emphasis=t.emphasis;var o=[],s=this._bgVNode=function(t,e,n,i){var r;if(n&&"none"!==n)if(r=k("rect","bg",{width:t,height:e,x:"0",y:"0"}),(0,a.bn)(n))ft({fill:n},r.attrs,"fill",i);else if((0,a.Pt)(n))gt({style:{fill:n},dirty:_.noop,getBoundingRect:function(){return{width:t,height:e}}},r.attrs,"fill",i);else{var o=(0,a.$2)(n),s=o.color,l=o.opacity;r.attrs.fill=s,l<1&&(r.attrs["fill-opacity"]=l)}return r}(n,i,this._backgroundColor,r);s&&o.push(s);var l=t.compress?null:this._mainVNode=k("g","main",{},[]);this._paintList(e,r,l?l.children:o),l&&o.push(l);var h=(0,_.map)((0,_.keys)(r.defs),(function(t){return r.defs[t]}));if(h.length&&o.push(k("defs","defs",{},h)),t.animation){var c=function(t,e,n){var i=(n=n||{}).newline?"\n":"",r=" {"+i,o=i+"}",a=(0,_.map)((0,_.keys)(t),(function(e){return e+r+(0,_.map)((0,_.keys)(t[e]),(function(n){return n+":"+t[e][n]+";"})).join(i)+o})).join(i),s=(0,_.map)((0,_.keys)(e),(function(t){return"@keyframes "+t+r+(0,_.map)((0,_.keys)(e[t]),(function(n){return n+r+(0,_.map)((0,_.keys)(e[t][n]),(function(i){var r=e[t][n][i];return"d"===i&&(r='path("'+r+'")'),i+":"+r+";"})).join(i)+o})).join(i)+o})).join(i);return a||s?["<![CDATA[",a,s,"]]>"].join(i):""}(r.cssNodes,r.cssAnims,{newline:!0});if(c){var u=k("style","stl",{},[],c);o.push(u)}}return P(n,i,o,t.useViewBox)},t.prototype.renderToString=function(t){return t=t||{},L(this.renderToVNode({animation:(0,_.retrieve2)(t.cssAnimation,!0),emphasis:(0,_.retrieve2)(t.cssEmphasis,!0),willUpdate:!1,compress:!0,useViewBox:(0,_.retrieve2)(t.useViewBox,!0)}),{newline:!0})},t.prototype.setBackgroundColor=function(t){this._backgroundColor=t},t.prototype.getSvgRoot=function(){return this._mainVNode&&this._mainVNode.elm},t.prototype._paintList=function(t,e,n){for(var i,r,o=t.length,a=[],s=0,l=0,h=0;h<o;h++){var c=t[h];if(!c.invisible){var u=c.__clipPaths,d=u&&u.length||0,p=r&&r.length||0,f=void 0;for(f=Math.max(d-1,p-1);f>=0&&(!u||!r||u[f]!==r[f]);f--);for(var g=p-1;g>f;g--)i=a[--s-1];for(var m=f+1;m<d;m++){var v={};mt(u[m],v,e);var y=k("g","clip-g-"+l++,v,[]);(i?i.children:n).push(y),a[s++]=y,i=y}r=u;var _=pt(c,e);_&&(i?i.children:n).push(_)}}},t.prototype.resize=function(t,e){var n=this._opts,i=this.root,r=this._viewport;if(null!=t&&(n.width=t),null!=e&&(n.height=e),i&&r&&(r.style.display="none",t=(0,Rt.YC)(i,0,n),e=(0,Rt.YC)(i,1,n),r.style.display=""),this._width!==t||this._height!==e){if(this._width=t,this._height=e,r){var o=r.style;o.width=t+"px",o.height=e+"px"}if((0,a.Pt)(this._backgroundColor))this.refresh();else{var s=this._svgDom;s&&(s.setAttribute("width",t),s.setAttribute("height",e));var l=this._bgVNode&&this._bgVNode.elm;l&&(l.setAttribute("width",t),l.setAttribute("height",e))}}},t.prototype.getWidth=function(){return this._width},t.prototype.getHeight=function(){return this._height},t.prototype.dispose=function(){this.root&&(this.root.innerHTML=""),this._svgDom=this._viewport=this.storage=this._oldVNode=this._bgVNode=this._mainVNode=null},t.prototype.clear=function(){this._svgDom&&(this._svgDom.innerHTML=null),this._oldVNode=null},t.prototype.toDataURL=function(t){var e=this.renderToString(),n="data:image/svg+xml;";return t?(e=(0,a.WG)(e))&&n+"base64,"+e:n+"charset=UTF-8,"+encodeURIComponent(e)},t}();const Ft=Nt;var Bt=n(528),zt=n(1577),Gt=n(1996),Vt=n(4926),jt=n(8829),Ht=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n.hasSymbolVisual=!0,n}return(0,Bt.C6)(e,t),e.prototype.getInitialData=function(t){return(0,zt.A)(null,this,{useEncodeDefaulter:!0})},e.prototype.getLegendIcon=function(t){var e=new jt.A,n=(0,Vt.v5)("line",0,t.itemHeight/2,t.itemWidth,0,t.lineStyle.stroke,!1);e.add(n),n.setStyle(t.lineStyle);var i=this.getData().getVisual("symbol"),r=this.getData().getVisual("symbolRotate"),o="none"===i?"circle":i,a=.8*t.itemHeight,s=(0,Vt.v5)(o,(t.itemWidth-a)/2,(t.itemHeight-a)/2,a,a,t.itemStyle.fill);e.add(s),s.setStyle(t.itemStyle);var l="inherit"===t.iconRotate?r:t.iconRotate||0;return s.rotation=l*Math.PI/180,s.setOrigin([t.itemWidth/2,t.itemHeight/2]),o.indexOf("empty")>-1&&(s.style.stroke=s.style.fill,s.style.fill="#fff",s.style.lineWidth=2),e},e.type="series.line",e.dependencies=["grid","polar"],e.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:4,symbolRotate:null,showSymbol:!0,showAllSymbol:"auto",connectNulls:!1,sampling:"none",animationEasing:"linear",progressive:0,hoverLayerThreshold:1/0,universalTransition:{divideShape:"clone"},triggerLineEvent:!1},e}(Gt.A);const Wt=Ht;var Ut=n(5203),qt=n(6004),Xt=n(6195),Yt=n(1632),Zt=n(6112);function $t(t,e){var n=t.mapDimensionsAll("defaultedLabel"),i=n.length;if(1===i){var r=(0,Zt.QE)(t,e,n[0]);return null!=r?r+"":null}if(i){for(var o=[],a=0;a<n.length;a++)o.push((0,Zt.QE)(t,e,n[a]));return o.join(" ")}}function Kt(t,e){var n=t.mapDimensionsAll("defaultedLabel");if(!(0,_.isArray)(e))return e+"";for(var i=[],r=0;r<n.length;r++){var o=t.getDimensionIndex(n[r]);o>=0&&i.push(e[o])}return i.join(" ")}var Jt=n(6547);function Qt(t,e){this.parent.drift(t,e)}const te=function(t){function e(e,n,i,r){var o=t.call(this)||this;return o.updateData(e,n,i,r),o}return(0,Bt.C6)(e,t),e.prototype._createSymbol=function(t,e,n,i,r){this.removeAll();var o=(0,Vt.v5)(t,-1,-1,2,2,null,r);o.attr({z2:100,culling:!0,scaleX:i[0]/2,scaleY:i[1]/2}),o.drift=Qt,this._symbolType=t,this.add(o)},e.prototype.stopSymbolAnimation=function(t){this.childAt(0).stopAnimation(null,t)},e.prototype.getSymbolType=function(){return this._symbolType},e.prototype.getSymbolPath=function(){return this.childAt(0)},e.prototype.highlight=function(){(0,Yt.HY)(this.childAt(0))},e.prototype.downplay=function(){(0,Yt.SD)(this.childAt(0))},e.prototype.setZ=function(t,e){var n=this.childAt(0);n.zlevel=t,n.z=e},e.prototype.setDraggable=function(t,e){var n=this.childAt(0);n.draggable=t,n.cursor=!e&&t?"move":n.cursor},e.prototype.updateData=function(t,n,i,r){this.silent=!1;var o=t.getItemVisual(n,"symbol")||"circle",a=t.hostModel,s=e.getSymbolSize(t,n),l=o!==this._symbolType,h=r&&r.disableAnimation;if(l){var c=t.getItemVisual(n,"symbolKeepAspect");this._createSymbol(o,t,n,s,c)}else{(d=this.childAt(0)).silent=!1;var u={scaleX:s[0]/2,scaleY:s[1]/2};h?d.attr(u):Ut.oi(d,u,a,n),(0,Ut.ap)(d)}if(this._updateCommon(t,n,s,i,r),l){var d=this.childAt(0);if(!h){u={scaleX:this._sizeX,scaleY:this._sizeY,style:{opacity:d.style.opacity}};d.scaleX=d.scaleY=0,d.style.opacity=0,Ut.LW(d,u,a,n)}}h&&this.childAt(0).stopAnimation("leave")},e.prototype._updateCommon=function(t,e,n,i,r){var o,a,s,h,c,u,d,p,f,g=this.childAt(0),m=t.hostModel;if(i&&(o=i.emphasisItemStyle,a=i.blurItemStyle,s=i.selectItemStyle,h=i.focus,c=i.blurScope,d=i.labelStatesModels,p=i.hoverScale,f=i.cursorStyle,u=i.emphasisDisabled),!i||t.hasItemOption){var v=i&&i.itemModel?i.itemModel:t.getItemModel(e),y=v.getModel("emphasis");o=y.getModel("itemStyle").getItemStyle(),s=v.getModel(["select","itemStyle"]).getItemStyle(),a=v.getModel(["blur","itemStyle"]).getItemStyle(),h=y.get("focus"),c=y.get("blurScope"),u=y.get("disabled"),d=(0,Jt.lx)(v),p=y.getShallow("scale"),f=v.getShallow("cursor")}var x=t.getItemVisual(e,"symbolRotate");g.attr("rotation",(x||0)*Math.PI/180||0);var b=(0,Vt.hV)(t.getItemVisual(e,"symbolOffset"),n);b&&(g.x=b[0],g.y=b[1]),f&&g.attr("cursor",f);var w=t.getItemVisual(e,"style"),S=w.fill;if(g instanceof l.Ay){var T=g.style;g.useStyle((0,_.extend)({image:T.image,x:T.x,y:T.y,width:T.width,height:T.height},w))}else g.__isEmptyBrush?g.useStyle((0,_.extend)({},w)):g.useStyle(w),g.style.decal=null,g.setColor(S,r&&r.symbolInnerColor),g.style.strokeNoScale=!0;var M=t.getItemVisual(e,"liftZ"),A=this._z2;null!=M?null==A&&(this._z2=g.z2,g.z2+=M):null!=A&&(g.z2=A,this._z2=null);var C=r&&r.useNameLabel;(0,Jt.qM)(g,d,{labelFetcher:m,labelDataIndex:e,defaultText:function(e){return C?t.getName(e):$t(t,e)},inheritColor:S,defaultOpacity:w.opacity}),this._sizeX=n[0]/2,this._sizeY=n[1]/2;var I=g.ensureState("emphasis");I.style=o,g.ensureState("select").style=s,g.ensureState("blur").style=a;var E=null==p||!0===p?Math.max(1.1,3/this._sizeY):isFinite(p)&&p>0?+p:1;I.scaleX=this._sizeX*E,I.scaleY=this._sizeY*E,this.setSymbolScale(1),(0,Yt.Lm)(this,h,c,u)},e.prototype.setSymbolScale=function(t){this.scaleX=this.scaleY=t},e.prototype.fadeOut=function(t,e,n){var i=this.childAt(0),r=(0,Xt.z)(this).dataIndex,o=n&&n.animation;if(this.silent=i.silent=!0,n&&n.fadeLabel){var a=i.getTextContent();a&&Ut.Nz(a,{style:{opacity:0}},e,{dataIndex:r,removeOpt:o,cb:function(){i.removeTextContent()}})}else i.removeTextContent();Ut.Nz(i,{style:{opacity:0},scaleX:0,scaleY:0},e,{dataIndex:r,cb:t,removeOpt:o})},e.getSymbolSize=function(t,e){return(0,Vt.xU)(t.getItemVisual(e,"symbolSize"))},e}(jt.A);function ee(t,e,n,i){return e&&!isNaN(e[0])&&!isNaN(e[1])&&!(i.isIgnore&&i.isIgnore(n))&&!(i.clipShape&&!i.clipShape.contain(e[0],e[1]))&&"none"!==t.getItemVisual(n,"symbol")}function ne(t){return null==t||(0,_.isObject)(t)||(t={isIgnore:t}),t||{}}function ie(t){var e=t.hostModel,n=e.getModel("emphasis");return{emphasisItemStyle:n.getModel("itemStyle").getItemStyle(),blurItemStyle:e.getModel(["blur","itemStyle"]).getItemStyle(),selectItemStyle:e.getModel(["select","itemStyle"]).getItemStyle(),focus:n.get("focus"),blurScope:n.get("blurScope"),emphasisDisabled:n.get("disabled"),hoverScale:n.get("scale"),labelStatesModels:(0,Jt.lx)(e),cursorStyle:e.get("cursor")}}const re=function(){function t(t){this.group=new jt.A,this._SymbolCtor=t||te}return t.prototype.updateData=function(t,e){this._progressiveEls=null,e=ne(e);var n=this.group,i=t.hostModel,r=this._data,o=this._SymbolCtor,a=e.disableAnimation,s=ie(t),l={disableAnimation:a},h=e.getSymbolPoint||function(e){return t.getItemLayout(e)};r||n.removeAll(),t.diff(r).add((function(i){var r=h(i);if(ee(t,r,i,e)){var a=new o(t,i,s,l);a.setPosition(r),t.setItemGraphicEl(i,a),n.add(a)}})).update((function(c,u){var d=r.getItemGraphicEl(u),p=h(c);if(ee(t,p,c,e)){var f=t.getItemVisual(c,"symbol")||"circle",g=d&&d.getSymbolType&&d.getSymbolType();if(!d||g&&g!==f)n.remove(d),(d=new o(t,c,s,l)).setPosition(p);else{d.updateData(t,c,s,l);var m={x:p[0],y:p[1]};a?d.attr(m):Ut.oi(d,m,i)}n.add(d),t.setItemGraphicEl(c,d)}else n.remove(d)})).remove((function(t){var e=r.getItemGraphicEl(t);e&&e.fadeOut((function(){n.remove(e)}),i)})).execute(),this._getSymbolPoint=h,this._data=t},t.prototype.updateLayout=function(){var t=this,e=this._data;e&&e.eachItemGraphicEl((function(e,n){var i=t._getSymbolPoint(n);e.setPosition(i),e.markRedraw()}))},t.prototype.incrementalPrepareUpdate=function(t){this._seriesScope=ie(t),this._data=null,this.group.removeAll()},t.prototype.incrementalUpdate=function(t,e,n){function i(t){t.isGroup||(t.incremental=!0,t.ensureState("emphasis").hoverLayer=!0)}this._progressiveEls=[],n=ne(n);for(var r=t.start;r<t.end;r++){var o=e.getItemLayout(r);if(ee(e,o,r,n)){var a=new this._SymbolCtor(e,r,this._seriesScope);a.traverse(i),a.setPosition(o),this.group.add(a),e.setItemGraphicEl(r,a),this._progressiveEls.push(a)}}},t.prototype.eachRendered=function(t){qt.traverseElements(this._progressiveEls||this.group,t)},t.prototype.remove=function(t){var e=this.group,n=this._data;n&&t?n.eachItemGraphicEl((function(t){t.fadeOut((function(){e.remove(t)}),n.hostModel)})):e.removeAll()},t}();var oe=n(933);function ae(t,e,n){var i=t.getBaseAxis(),r=t.getOtherAxis(i),o=function(t,e){var n=0,i=t.scale.getExtent();"start"===e?n=i[0]:"end"===e?n=i[1]:(0,_.isNumber)(e)&&!isNaN(e)?n=e:i[0]>0?n=i[0]:i[1]<0&&(n=i[1]);return n}(r,n),a=i.dim,s=r.dim,l=e.mapDimension(s),h=e.mapDimension(a),c="x"===s||"radius"===s?1:0,u=(0,_.map)(t.dimensions,(function(t){return e.mapDimension(t)})),d=!1,p=e.getCalculationInfo("stackResultDimension");return(0,oe.sJ)(e,u[0])&&(d=!0,u[0]=p),(0,oe.sJ)(e,u[1])&&(d=!0,u[1]=p),{dataDimsForPoint:u,valueStart:o,valueAxisDim:s,baseAxisDim:a,stacked:!!d,valueDim:l,baseDim:h,baseDataOffset:c,stackedOverDimension:e.getCalculationInfo("stackedOverDimension")}}function se(t,e,n,i){var r=NaN;t.stacked&&(r=n.get(n.getCalculationInfo("stackedOverDimension"),i)),isNaN(r)&&(r=t.valueStart);var o=t.baseDataOffset,a=[];return a[o]=n.get(t.baseDim,i),a[1-o]=r,e.dataToPoint(a)}var le=n(3180);var he=n(7789),ce=n(2577),ue=n(5162),de=Math.min,pe=Math.max;function fe(t,e){return isNaN(t)||isNaN(e)}function ge(t,e,n,i,r,o,a,s,l){for(var h,c,u,d,p,f,g=n,m=0;m<i;m++){var v=e[2*g],y=e[2*g+1];if(g>=r||g<0)break;if(fe(v,y)){if(l){g+=o;continue}break}if(g===n)t[o>0?"moveTo":"lineTo"](v,y),u=v,d=y;else{var _=v-h,x=y-c;if(_*_+x*x<.5){g+=o;continue}if(a>0){for(var b=g+o,w=e[2*b],S=e[2*b+1];w===v&&S===y&&m<i;)m++,g+=o,w=e[2*(b+=o)],S=e[2*b+1],_=(v=e[2*g])-h,x=(y=e[2*g+1])-c;var T=m+1;if(l)for(;fe(w,S)&&T<i;)T++,w=e[2*(b+=o)],S=e[2*b+1];var M=.5,A=0,C=0,I=void 0,E=void 0;if(T>=i||fe(w,S))p=v,f=y;else{A=w-h,C=S-c;var k=v-h,L=w-v,D=y-c,P=S-y,R=void 0,O=void 0;if("x"===s){var N=A>0?1:-1;p=v-N*(R=Math.abs(k))*a,f=y,I=v+N*(O=Math.abs(L))*a,E=y}else if("y"===s){var F=C>0?1:-1;p=v,f=y-F*(R=Math.abs(D))*a,I=v,E=y+F*(O=Math.abs(P))*a}else R=Math.sqrt(k*k+D*D),p=v-A*a*(1-(M=(O=Math.sqrt(L*L+P*P))/(O+R))),f=y-C*a*(1-M),E=y+C*a*M,I=de(I=v+A*a*M,pe(w,v)),E=de(E,pe(S,y)),I=pe(I,de(w,v)),f=y-(C=(E=pe(E,de(S,y)))-y)*R/O,p=de(p=v-(A=I-v)*R/O,pe(h,v)),f=de(f,pe(c,y)),I=v+(A=v-(p=pe(p,de(h,v))))*O/R,E=y+(C=y-(f=pe(f,de(c,y))))*O/R}t.bezierCurveTo(u,d,p,f,v,y),u=I,d=E}else t.lineTo(v,y)}h=v,c=y,g+=o}return m}var me=function(){this.smooth=0,this.smoothConstraint=!0},ve=function(t){function e(e){var n=t.call(this,e)||this;return n.type="ec-polyline",n}return(0,Bt.C6)(e,t),e.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},e.prototype.getDefaultShape=function(){return new me},e.prototype.buildPath=function(t,e){var n=e.points,i=0,r=n.length/2;if(e.connectNulls){for(;r>0&&fe(n[2*r-2],n[2*r-1]);r--);for(;i<r&&fe(n[2*i],n[2*i+1]);i++);}for(;i<r;)i+=ge(t,n,i,r,r,1,e.smooth,e.smoothMonotone,e.connectNulls)+1},e.prototype.getPointOn=function(t,e){this.path||(this.createPathProxy(),this.buildPath(this.path,this.shape));for(var n,i,r=this.path.data,o=N.A.CMD,a="x"===e,s=[],l=0;l<r.length;){var h=void 0,c=void 0,u=void 0,d=void 0,p=void 0,f=void 0,g=void 0;switch(r[l++]){case o.M:n=r[l++],i=r[l++];break;case o.L:if(h=r[l++],c=r[l++],(g=a?(t-n)/(h-n):(t-i)/(c-i))<=1&&g>=0){var m=a?(c-i)*g+i:(h-n)*g+n;return a?[t,m]:[m,t]}n=h,i=c;break;case o.C:h=r[l++],c=r[l++],u=r[l++],d=r[l++],p=r[l++],f=r[l++];var v=a?(0,ue._E)(n,h,u,p,t,s):(0,ue._E)(i,c,d,f,t,s);if(v>0)for(var y=0;y<v;y++){var _=s[y];if(_<=1&&_>=0){m=a?(0,ue.Yb)(i,c,d,f,_):(0,ue.Yb)(n,h,u,p,_);return a?[t,m]:[m,t]}}n=p,i=f}}},e}(s.Ay),ye=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return(0,Bt.C6)(e,t),e}(me),_e=function(t){function e(e){var n=t.call(this,e)||this;return n.type="ec-polygon",n}return(0,Bt.C6)(e,t),e.prototype.getDefaultShape=function(){return new ye},e.prototype.buildPath=function(t,e){var n=e.points,i=e.stackedOnPoints,r=0,o=n.length/2,a=e.smoothMonotone;if(e.connectNulls){for(;o>0&&fe(n[2*o-2],n[2*o-1]);o--);for(;r<o&&fe(n[2*r],n[2*r+1]);r++);}for(;r<o;){var s=ge(t,n,r,o,o,1,e.smooth,a,e.connectNulls);ge(t,i,r+s-1,s,o,-1,e.stackedOnSmooth,a,e.connectNulls),r+=s+1,t.closePath()}},e}(s.Ay),xe=n(6145),be=n(7551),we=n(7532),Se=n(8883);function Te(t,e,n,i,r){var o=t.getArea(),a=o.x,s=o.y,l=o.width,h=o.height,c=n.get(["lineStyle","width"])||2;a-=c/2,s-=c/2,l+=c,h+=c,l=Math.ceil(l),a!==Math.floor(a)&&(a=Math.floor(a),l++);var u=new be.A({shape:{x:a,y:s,width:l,height:h}});if(e){var d=t.getBaseAxis(),p=d.isHorizontal(),f=d.inverse;p?(f&&(u.shape.x+=l),u.shape.width=0):(f||(u.shape.y+=h),u.shape.height=0);var g=(0,_.isFunction)(r)?function(t){r(t,u)}:null;Ut.LW(u,{shape:{width:l,height:h,x:a,y:s}},n,null,i,g)}return u}function Me(t,e,n){var i=t.getArea(),r=(0,Se.LI)(i.r0,1),o=(0,Se.LI)(i.r,1),a=new we.A({shape:{cx:(0,Se.LI)(t.cx,1),cy:(0,Se.LI)(t.cy,1),r0:r,r:o,startAngle:i.startAngle,endAngle:i.endAngle,clockwise:i.clockwise}});e&&("angle"===t.getBaseAxis().dim?a.shape.endAngle=i.startAngle:a.shape.r=r,Ut.LW(a,{shape:{endAngle:i.endAngle,r:o}},n));return a}function Ae(t,e,n,i,r){return t?"polar"===t.type?Me(t,e,n):"cartesian2d"===t.type?Te(t,e,n,i,r):null:null}function Ce(t,e){return t.type===e}var Ie=n(5065);function Ee(t,e){if(t.length===e.length){for(var n=0;n<t.length;n++)if(t[n]!==e[n])return;return!0}}function ke(t){for(var e=1/0,n=1/0,i=-1/0,r=-1/0,o=0;o<t.length;){var a=t[o++],s=t[o++];isNaN(a)||(e=Math.min(a,e),i=Math.max(a,i)),isNaN(s)||(n=Math.min(s,n),r=Math.max(s,r))}return[[e,n],[i,r]]}function Le(t,e){var n=ke(t),i=n[0],r=n[1],o=ke(e),a=o[0],s=o[1];return Math.max(Math.abs(i[0]-a[0]),Math.abs(i[1]-a[1]),Math.abs(r[0]-s[0]),Math.abs(r[1]-s[1]))}function De(t){return _.isNumber(t)?t:t?.5:0}function Pe(t,e,n,i){var r=e.getBaseAxis(),o="x"===r.dim||"radius"===r.dim?0:1,a=[],s=0,l=[],h=[],c=[],u=[];if(i){for(s=0;s<t.length;s+=2)isNaN(t[s])||isNaN(t[s+1])||u.push(t[s],t[s+1]);t=u}for(s=0;s<t.length-2;s+=2)switch(c[0]=t[s+2],c[1]=t[s+3],h[0]=t[s],h[1]=t[s+1],a.push(h[0],h[1]),n){case"end":l[o]=c[o],l[1-o]=h[1-o],a.push(l[0],l[1]);break;case"middle":var d=(h[o]+c[o])/2,p=[];l[o]=p[o]=d,l[1-o]=h[1-o],p[1-o]=c[1-o],a.push(l[0],l[1]),a.push(p[0],p[1]);break;default:l[o]=h[o],l[1-o]=c[1-o],a.push(l[0],l[1])}return a.push(t[s++],t[s++]),a}function Re(t,e,n){var i=t.getVisual("visualMeta");if(i&&i.length&&t.count()&&"cartesian2d"===e.type){for(var r,o,a=i.length-1;a>=0;a--){var s=t.getDimensionInfo(i[a].dimension);if("x"===(r=s&&s.coordDim)||"y"===r){o=i[a];break}}if(o){var l=e.getAxis(r),h=_.map(o.stops,(function(t){return{coord:l.toGlobalCoord(l.dataToCoord(t.value)),color:t.color}})),c=h.length,u=o.outerColors.slice();c&&h[0].coord>h[c-1].coord&&(h.reverse(),u.reverse());var d=function(t,e){var n,i,r=[],o=t.length;function a(t,e,n){var i=t.coord,r=(n-i)/(e.coord-i);return{coord:n,color:(0,K.lerp)(r,[t.color,e.color])}}for(var s=0;s<o;s++){var l=t[s],h=l.coord;if(h<0)n=l;else{if(h>e){i?r.push(a(i,l,e)):n&&r.push(a(n,l,0),a(n,l,e));break}n&&(r.push(a(n,l,0)),n=null),r.push(l),i=l}}return r}(h,"x"===r?n.getWidth():n.getHeight()),p=d.length;if(!p&&c)return h[0].coord<0?u[1]?u[1]:h[c-1].color:u[0]?u[0]:h[0].color;var f=d[0].coord-10,g=d[p-1].coord+10,m=g-f;if(m<.001)return"transparent";_.each(d,(function(t){t.offset=(t.coord-f)/m})),d.push({offset:p?d[p-1].offset:.5,color:u[1]||"transparent"}),d.unshift({offset:p?d[0].offset:.5,color:u[0]||"transparent"});var v=new he.A(0,0,0,0,d,!0);return v[r]=f,v[r+"2"]=g,v}}}function Oe(t,e,n){var i=t.get("showAllSymbol"),r="auto"===i;if(!i||r){var o=n.getAxesByScale("ordinal")[0];if(o&&(!r||!function(t,e){var n=t.getExtent(),i=Math.abs(n[1]-n[0])/t.scale.count();isNaN(i)&&(i=0);for(var r=e.count(),o=Math.max(1,Math.round(r/5)),a=0;a<r;a+=o)if(1.5*te.getSymbolSize(e,a)[t.isHorizontal()?1:0]>i)return!1;return!0}(o,e))){var a=e.mapDimension(o.dim),s={};return _.each(o.getViewLabels(),(function(t){var e=o.scale.getRawOrdinalNumber(t.tickValue);s[e]=1})),function(t){return!s.hasOwnProperty(e.get(a,t))}}}}function Ne(t,e){return[t[2*e],t[2*e+1]]}function Fe(t){if(t.get(["endLabel","show"]))return!0;for(var e=0;e<Yt.BV.length;e++)if(t.get([Yt.BV[e],"endLabel","show"]))return!0;return!1}function Be(t,e,n,i){if(Ce(e,"cartesian2d")){var r=i.getModel("endLabel"),o=r.get("valueAnimation"),a=i.getData(),s={lastFrameIndex:0},l=Fe(i)?function(n,i){t._endLabelOnDuring(n,i,a,s,o,r,e)}:null,h=e.getBaseAxis().isHorizontal(),c=Te(e,n,i,(function(){var e=t._endLabel;e&&n&&null!=s.originalX&&e.attr({x:s.originalX,y:s.originalY})}),l);if(!i.get("clip",!0)){var u=c.shape,d=Math.max(u.width,u.height);h?(u.y-=d,u.height+=2*d):(u.x-=d,u.width+=2*d)}return l&&l(1,c),c}return Me(e,n,i)}var ze=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return(0,Bt.C6)(e,t),e.prototype.init=function(){var t=new jt.A,e=new re;this.group.add(e.group),this._symbolDraw=e,this._lineGroup=t},e.prototype.render=function(t,e,n){var i=this,r=t.coordinateSystem,o=this.group,a=t.getData(),s=t.getModel("lineStyle"),l=t.getModel("areaStyle"),h=a.getLayout("points")||[],c="polar"===r.type,u=this._coordSys,d=this._symbolDraw,p=this._polyline,f=this._polygon,g=this._lineGroup,m=!e.ssr&&t.get("animation"),v=!l.isEmpty(),y=l.get("origin"),x=ae(r,a,y),b=v&&function(t,e,n){if(!n.valueDim)return[];for(var i=e.count(),r=(0,le.J)(2*i),o=0;o<i;o++){var a=se(n,t,e,o);r[2*o]=a[0],r[2*o+1]=a[1]}return r}(r,a,x),w=t.get("showSymbol"),S=t.get("connectNulls"),T=w&&!c&&Oe(t,a,r),M=this._data;M&&M.eachItemGraphicEl((function(t,e){t.__temp&&(o.remove(t),M.setItemGraphicEl(e,null))})),w||d.remove(),o.add(g);var A,C=!c&&t.get("step");r&&r.getArea&&t.get("clip",!0)&&(null!=(A=r.getArea()).width?(A.x-=.1,A.y-=.1,A.width+=.2,A.height+=.2):A.r0&&(A.r0-=.5,A.r+=.5)),this._clipShapeForSymbol=A;var I=Re(a,r,n)||a.getVisual("style")[a.getVisual("drawType")];if(p&&u.type===r.type&&C===this._step){v&&!f?f=this._newPolygon(h,b):f&&!v&&(g.remove(f),f=this._polygon=null),c||this._initOrUpdateEndLabel(t,r,(0,Ie.he)(I));var E=g.getClipPath();if(E){var k=Be(this,r,!1,t);Ut.LW(E,{shape:k.shape},t)}else g.setClipPath(Be(this,r,!0,t));w&&d.updateData(a,{isIgnore:T,clipShape:A,disableAnimation:!0,getSymbolPoint:function(t){return[h[2*t],h[2*t+1]]}}),Ee(this._stackedOnPoints,b)&&Ee(this._points,h)||(m?this._doUpdateAnimation(a,b,r,n,C,y,S):(C&&(h=Pe(h,r,C,S),b&&(b=Pe(b,r,C,S))),p.setShape({points:h}),f&&f.setShape({points:h,stackedOnPoints:b})))}else w&&d.updateData(a,{isIgnore:T,clipShape:A,disableAnimation:!0,getSymbolPoint:function(t){return[h[2*t],h[2*t+1]]}}),m&&this._initSymbolLabelAnimation(a,r,A),C&&(h=Pe(h,r,C,S),b&&(b=Pe(b,r,C,S))),p=this._newPolyline(h),v?f=this._newPolygon(h,b):f&&(g.remove(f),f=this._polygon=null),c||this._initOrUpdateEndLabel(t,r,(0,Ie.he)(I)),g.setClipPath(Be(this,r,!0,t));var L=t.getModel("emphasis"),D=L.get("focus"),P=L.get("blurScope"),R=L.get("disabled");(p.useStyle(_.defaults(s.getLineStyle(),{fill:"none",stroke:I,lineJoin:"bevel"})),(0,Yt.Mx)(p,t,"lineStyle"),p.style.lineWidth>0&&"bolder"===t.get(["emphasis","lineStyle","width"]))&&(p.getState("emphasis").style.lineWidth=+p.style.lineWidth+1);(0,Xt.z)(p).seriesIndex=t.seriesIndex,(0,Yt.Lm)(p,D,P,R);var O=De(t.get("smooth")),N=t.get("smoothMonotone");if(p.setShape({smooth:O,smoothMonotone:N,connectNulls:S}),f){var F=a.getCalculationInfo("stackedOnSeries"),B=0;f.useStyle(_.defaults(l.getAreaStyle(),{fill:I,opacity:.7,lineJoin:"bevel",decal:a.getVisual("style").decal})),F&&(B=De(F.get("smooth"))),f.setShape({smooth:O,stackedOnSmooth:B,smoothMonotone:N,connectNulls:S}),(0,Yt.Mx)(f,t,"areaStyle"),(0,Xt.z)(f).seriesIndex=t.seriesIndex,(0,Yt.Lm)(f,D,P,R)}var z=function(t){i._changePolyState(t)};a.eachItemGraphicEl((function(t){t&&(t.onHoverStateChange=z)})),this._polyline.onHoverStateChange=z,this._data=a,this._coordSys=r,this._stackedOnPoints=b,this._points=h,this._step=C,this._valueOrigin=y,t.get("triggerLineEvent")&&(this.packEventData(t,p),f&&this.packEventData(t,f))},e.prototype.packEventData=function(t,e){(0,Xt.z)(e).eventData={componentType:"series",componentSubType:"line",componentIndex:t.componentIndex,seriesIndex:t.seriesIndex,seriesName:t.name,seriesType:"line"}},e.prototype.highlight=function(t,e,n,i){var r=t.getData(),o=ce.le(r,i);if(this._changePolyState("emphasis"),!(o instanceof Array)&&null!=o&&o>=0){var a=r.getLayout("points"),s=r.getItemGraphicEl(o);if(!s){var l=a[2*o],h=a[2*o+1];if(isNaN(l)||isNaN(h))return;if(this._clipShapeForSymbol&&!this._clipShapeForSymbol.contain(l,h))return;var c=t.get("zlevel")||0,u=t.get("z")||0;(s=new te(r,o)).x=l,s.y=h,s.setZ(c,u);var d=s.getSymbolPath().getTextContent();d&&(d.zlevel=c,d.z=u,d.z2=this._polyline.z2+1),s.__temp=!0,r.setItemGraphicEl(o,s),s.stopSymbolAnimation(!0),this.group.add(s)}s.highlight()}else xe.A.prototype.highlight.call(this,t,e,n,i)},e.prototype.downplay=function(t,e,n,i){var r=t.getData(),o=ce.le(r,i);if(this._changePolyState("normal"),null!=o&&o>=0){var a=r.getItemGraphicEl(o);a&&(a.__temp?(r.setItemGraphicEl(o,null),this.group.remove(a)):a.downplay())}else xe.A.prototype.downplay.call(this,t,e,n,i)},e.prototype._changePolyState=function(t){var e=this._polygon;(0,Yt.Pk)(this._polyline,t),e&&(0,Yt.Pk)(e,t)},e.prototype._newPolyline=function(t){var e=this._polyline;return e&&this._lineGroup.remove(e),e=new ve({shape:{points:t},segmentIgnoreThreshold:2,z2:10}),this._lineGroup.add(e),this._polyline=e,e},e.prototype._newPolygon=function(t,e){var n=this._polygon;return n&&this._lineGroup.remove(n),n=new _e({shape:{points:t,stackedOnPoints:e},segmentIgnoreThreshold:2}),this._lineGroup.add(n),this._polygon=n,n},e.prototype._initSymbolLabelAnimation=function(t,e,n){var i,r,o=e.getBaseAxis(),a=o.inverse;"cartesian2d"===e.type?(i=o.isHorizontal(),r=!1):"polar"===e.type&&(i="angle"===o.dim,r=!0);var s=t.hostModel,l=s.get("animationDuration");_.isFunction(l)&&(l=l(null));var h=s.get("animationDelay")||0,c=_.isFunction(h)?h(null):h;t.eachItemGraphicEl((function(t,o){var s=t;if(s){var u=[t.x,t.y],d=void 0,p=void 0,f=void 0;if(n)if(r){var g=n,m=e.pointToCoord(u);i?(d=g.startAngle,p=g.endAngle,f=-m[1]/180*Math.PI):(d=g.r0,p=g.r,f=m[0])}else{var v=n;i?(d=v.x,p=v.x+v.width,f=t.x):(d=v.y+v.height,p=v.y,f=t.y)}var y=p===d?0:(f-d)/(p-d);a&&(y=1-y);var x=_.isFunction(h)?h(o):l*y+c,b=s.getSymbolPath(),w=b.getTextContent();s.attr({scaleX:0,scaleY:0}),s.animateTo({scaleX:1,scaleY:1},{duration:200,setToFinal:!0,delay:x}),w&&w.animateFrom({style:{opacity:0}},{duration:300,delay:x}),b.disableLabelAnimation=!0}}))},e.prototype._initOrUpdateEndLabel=function(t,e,n){var i=t.getModel("endLabel");if(Fe(t)){var r=t.getData(),o=this._polyline,a=r.getLayout("points");if(!a)return o.removeTextContent(),void(this._endLabel=null);var s=this._endLabel;s||((s=this._endLabel=new Z.Ay({z2:200})).ignoreClip=!0,o.setTextContent(this._endLabel),o.disableLabelAnimation=!0);var l=function(t){for(var e,n,i=t.length/2;i>0&&(e=t[2*i-2],n=t[2*i-1],isNaN(e)||isNaN(n));i--);return i-1}(a);l>=0&&((0,Jt.qM)(o,(0,Jt.lx)(t,"endLabel"),{inheritColor:n,labelFetcher:t,labelDataIndex:l,defaultText:function(t,e,n){return null!=n?Kt(r,n):$t(r,t)},enableTextSetter:!0},function(t,e){var n=e.getBaseAxis(),i=n.isHorizontal(),r=n.inverse,o=i?r?"right":"left":"center",a=i?"middle":r?"top":"bottom";return{normal:{align:t.get("align")||o,verticalAlign:t.get("verticalAlign")||a}}}(i,e)),o.textConfig.position=null)}else this._endLabel&&(this._polyline.removeTextContent(),this._endLabel=null)},e.prototype._endLabelOnDuring=function(t,e,n,i,r,o,a){var s=this._endLabel,l=this._polyline;if(s){t<1&&null==i.originalX&&(i.originalX=s.x,i.originalY=s.y);var h=n.getLayout("points"),c=n.hostModel,u=c.get("connectNulls"),d=o.get("precision"),p=o.get("distance")||0,f=a.getBaseAxis(),g=f.isHorizontal(),m=f.inverse,v=e.shape,y=m?g?v.x:v.y+v.height:g?v.x+v.width:v.y,_=(g?p:0)*(m?-1:1),x=(g?0:-p)*(m?-1:1),b=g?"x":"y",w=function(t,e,n){for(var i,r,o=t.length/2,a="x"===n?0:1,s=0,l=-1,h=0;h<o;h++)if(r=t[2*h+a],!isNaN(r)&&!isNaN(t[2*h+1-a]))if(0!==h){if(i<=e&&r>=e||i>=e&&r<=e){l=h;break}s=h,i=r}else i=r;return{range:[s,l],t:(e-i)/(r-i)}}(h,y,b),S=w.range,T=S[1]-S[0],M=void 0;if(T>=1){if(T>1&&!u){var A=Ne(h,S[0]);s.attr({x:A[0]+_,y:A[1]+x}),r&&(M=c.getRawValue(S[0]))}else{(A=l.getPointOn(y,b))&&s.attr({x:A[0]+_,y:A[1]+x});var C=c.getRawValue(S[0]),I=c.getRawValue(S[1]);r&&(M=ce.Il(n,d,C,I,w.t))}i.lastFrameIndex=S[0]}else{var E=1===t||i.lastFrameIndex>0?S[0]:0;A=Ne(h,E);r&&(M=c.getRawValue(E)),s.attr({x:A[0]+_,y:A[1]+x})}if(r){var k=(0,Jt.Lu)(s);"function"==typeof k.setLabelText&&k.setLabelText(M)}}},e.prototype._doUpdateAnimation=function(t,e,n,i,r,o,a){var s=this._polyline,l=this._polygon,h=t.hostModel,c=function(t,e,n,i,r,o,a){for(var s=function(t,e){var n=[];return e.diff(t).add((function(t){n.push({cmd:"+",idx:t})})).update((function(t,e){n.push({cmd:"=",idx:e,idx1:t})})).remove((function(t){n.push({cmd:"-",idx:t})})).execute(),n}(t,e),l=[],h=[],c=[],u=[],d=[],p=[],f=[],g=ae(r,e,a),m=t.getLayout("points")||[],v=e.getLayout("points")||[],y=0;y<s.length;y++){var _=s[y],x=!0,b=void 0,w=void 0;switch(_.cmd){case"=":b=2*_.idx,w=2*_.idx1;var S=m[b],T=m[b+1],M=v[w],A=v[w+1];(isNaN(S)||isNaN(T))&&(S=M,T=A),l.push(S,T),h.push(M,A),c.push(n[b],n[b+1]),u.push(i[w],i[w+1]),f.push(e.getRawIndex(_.idx1));break;case"+":var C=_.idx,I=g.dataDimsForPoint,E=r.dataToPoint([e.get(I[0],C),e.get(I[1],C)]);w=2*C,l.push(E[0],E[1]),h.push(v[w],v[w+1]);var k=se(g,r,e,C);c.push(k[0],k[1]),u.push(i[w],i[w+1]),f.push(e.getRawIndex(C));break;case"-":x=!1}x&&(d.push(_),p.push(p.length))}p.sort((function(t,e){return f[t]-f[e]}));var L=l.length,D=(0,le.J)(L),P=(0,le.J)(L),R=(0,le.J)(L),O=(0,le.J)(L),N=[];for(y=0;y<p.length;y++){var F=p[y],B=2*y,z=2*F;D[B]=l[z],D[B+1]=l[z+1],P[B]=h[z],P[B+1]=h[z+1],R[B]=c[z],R[B+1]=c[z+1],O[B]=u[z],O[B+1]=u[z+1],N[y]=d[F]}return{current:D,next:P,stackedOnCurrent:R,stackedOnNext:O,status:N}}(this._data,t,this._stackedOnPoints,e,this._coordSys,0,this._valueOrigin),u=c.current,d=c.stackedOnCurrent,p=c.next,f=c.stackedOnNext;if(r&&(u=Pe(c.current,n,r,a),d=Pe(c.stackedOnCurrent,n,r,a),p=Pe(c.next,n,r,a),f=Pe(c.stackedOnNext,n,r,a)),Le(u,p)>3e3||l&&Le(d,f)>3e3)return s.stopAnimation(),s.setShape({points:p}),void(l&&(l.stopAnimation(),l.setShape({points:p,stackedOnPoints:f})));s.shape.__points=c.current,s.shape.points=u;var g={shape:{points:p}};c.current!==u&&(g.shape.__points=c.next),s.stopAnimation(),Ut.oi(s,g,h),l&&(l.setShape({points:u,stackedOnPoints:d}),l.stopAnimation(),Ut.oi(l,{shape:{stackedOnPoints:f}},h),s.shape.points!==l.shape.points&&(l.shape.points=s.shape.points));for(var m=[],v=c.status,y=0;y<v.length;y++){if("="===v[y].cmd){var _=t.getItemGraphicEl(v[y].idx1);_&&m.push({el:_,ptIdx:y})}}s.animators&&s.animators.length&&s.animators[0].during((function(){l&&l.dirtyShape();for(var t=s.shape.__points,e=0;e<m.length;e++){var n=m[e].el,i=2*m[e].ptIdx;n.x=t[i],n.y=t[i+1],n.markRedraw()}}))},e.prototype.remove=function(t){var e=this.group,n=this._data;this._lineGroup.removeAll(),this._symbolDraw.remove(!0),n&&n.eachItemGraphicEl((function(t,i){t.__temp&&(e.remove(t),n.setItemGraphicEl(i,null))})),this._polyline=this._polygon=this._coordSys=this._points=this._stackedOnPoints=this._endLabel=this._data=null},e.type="line",e}(xe.A);const Ge=ze;var Ve=n(9421);function je(t,e){return{seriesType:t,plan:(0,Ve.A)(),reset:function(t){var n=t.getData(),i=t.coordinateSystem,r=t.pipelineContext,o=e||r.large;if(i){var a=(0,_.map)(i.dimensions,(function(t){return n.mapDimension(t)})).slice(0,2),s=a.length,l=n.getCalculationInfo("stackResultDimension");(0,oe.sJ)(n,a[0])&&(a[0]=l),(0,oe.sJ)(n,a[1])&&(a[1]=l);var h=n.getStore(),c=n.getDimensionIndex(a[0]),u=n.getDimensionIndex(a[1]);return s&&{progress:function(t,e){for(var n=t.end-t.start,r=o&&(0,le.J)(n*s),a=[],l=[],d=t.start,p=0;d<t.end;d++){var f=void 0;if(1===s){var g=h.get(c,d);f=i.dataToPoint(g,null,l)}else a[0]=h.get(c,d),a[1]=h.get(u,d),f=i.dataToPoint(a,null,l);o?(r[p++]=f[0],r[p++]=f[1]):e.setItemLayout(d,f.slice())}o&&e.setLayout("points",r)}}}}}}var He={average:function(t){for(var e=0,n=0,i=0;i<t.length;i++)isNaN(t[i])||(e+=t[i],n++);return 0===n?NaN:e/n},sum:function(t){for(var e=0,n=0;n<t.length;n++)e+=t[n]||0;return e},max:function(t){for(var e=-1/0,n=0;n<t.length;n++)t[n]>e&&(e=t[n]);return isFinite(e)?e:NaN},min:function(t){for(var e=1/0,n=0;n<t.length;n++)t[n]<e&&(e=t[n]);return isFinite(e)?e:NaN},minmax:function(t){for(var e=-1/0,n=-1/0,i=0;i<t.length;i++){var r=t[i],o=Math.abs(r);o>e&&(e=o,n=r)}return isFinite(n)?n:NaN},nearest:function(t){return t[0]}},We=function(t){return Math.round(t.length/2)};function Ue(t){return{seriesType:t,reset:function(t,e,n){var i=t.getData(),r=t.get("sampling"),o=t.coordinateSystem,a=i.count();if(a>10&&"cartesian2d"===o.type&&r){var s=o.getBaseAxis(),l=o.getOtherAxis(s),h=s.getExtent(),c=n.getDevicePixelRatio(),u=Math.abs(h[1]-h[0])*(c||1),d=Math.round(a/u);if(isFinite(d)&&d>1){"lttb"===r&&t.setData(i.lttbDownSample(i.mapDimension(l.dim),1/d));var p=void 0;(0,_.isString)(r)?p=He[r]:(0,_.isFunction)(r)&&(p=r),p&&t.setData(i.downSample(i.mapDimension(l.dim),1/d,p,We))}}}}}var qe=n(6291),Xe=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return(0,Bt.C6)(e,t),e.prototype.getInitialData=function(t,e){return(0,zt.A)(null,this,{useEncodeDefaulter:!0})},e.prototype.getMarkerPosition=function(t,e,n){var i=this.coordinateSystem;if(i&&i.clampData){var r=i.clampData(t),o=i.dataToPoint(r);if(n)(0,_.each)(i.getAxes(),(function(t,n){if("category"===t.type&&null!=e){var i=t.getTicksCoords(),a=t.getTickModel().get("alignWithLabel"),s=r[n],l="x1"===e[n]||"y1"===e[n];if(l&&!a&&(s+=1),i.length<2)return;if(2===i.length)return void(o[n]=t.toGlobalCoord(t.getExtent()[l?1:0]));for(var h=void 0,c=void 0,u=1,d=0;d<i.length;d++){var p=i[d].coord,f=d===i.length-1?i[d-1].tickValue+u:i[d].tickValue;if(f===s){c=p;break}if(f<s)h=p;else if(null!=h&&f>s){c=(p+h)/2;break}1===d&&(u=f-i[0].tickValue)}null==c&&(h?h&&(c=i[i.length-1].coord):c=i[0].coord),o[n]=t.toGlobalCoord(c)}}));else{var a=this.getData(),s=a.getLayout("offset"),l=a.getLayout("size"),h=i.getBaseAxis().isHorizontal()?0:1;o[h]+=s+l/2}return o}return[NaN,NaN]},e.type="series.__base_bar__",e.defaultOption={z:2,coordinateSystem:"cartesian2d",legendHoverLink:!0,barMinHeight:0,barMinAngle:0,large:!1,largeThreshold:400,progressive:3e3,progressiveChunkMode:"mod"},e}(Gt.A);Gt.A.registerClass(Xe);const Ye=Xe;var Ze=n(1987);const $e=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return(0,Bt.C6)(e,t),e.prototype.getInitialData=function(){return(0,zt.A)(null,this,{useEncodeDefaulter:!0,createInvertedIndices:!!this.get("realtimeSort",!0)||null})},e.prototype.getProgressive=function(){return!!this.get("large")&&this.get("progressive")},e.prototype.getProgressiveThreshold=function(){var t=this.get("progressiveThreshold"),e=this.get("largeThreshold");return e>t&&(t=e),t},e.prototype.brushSelector=function(t,e,n){return n.rect(e.getItemLayout(t))},e.type="series.bar",e.dependencies=["grid","polar"],e.defaultOption=(0,Ze.G_)(Ye.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:"#212121"}},realtimeSort:!1}),e}(Ye);var Ke=n(3490),Je=function(){this.cx=0,this.cy=0,this.r0=0,this.r=0,this.startAngle=0,this.endAngle=2*Math.PI,this.clockwise=!0},Qe=function(t){function e(e){var n=t.call(this,e)||this;return n.type="sausage",n}return(0,Bt.C6)(e,t),e.prototype.getDefaultShape=function(){return new Je},e.prototype.buildPath=function(t,e){var n=e.cx,i=e.cy,r=Math.max(e.r0||0,0),o=Math.max(e.r,0),a=.5*(o-r),s=r+a,l=e.startAngle,h=e.endAngle,c=e.clockwise,u=2*Math.PI,d=c?h-l<u:l-h<u;d||(l=h-(c?u:-u));var p=Math.cos(l),f=Math.sin(l),g=Math.cos(h),m=Math.sin(h);d?(t.moveTo(p*r+n,f*r+i),t.arc(p*s+n,f*s+i,a,-Math.PI+l,l,!c)):t.moveTo(p*o+n,f*o+i),t.arc(n,i,o,l,h,!c),t.arc(g*s+n,m*s+i,a,h-2*Math.PI,h-Math.PI,!c),0!==r&&t.arc(n,i,r,h,l,c)},e}(s.Ay);const tn=Qe;function en(t,e,n){return e*Math.sin(t)*(n?-1:1)}function nn(t,e,n){return e*Math.cos(t)*(n?1:-1)}function rn(t,e,n){var i=t.get("borderRadius");if(null==i)return n?{cornerRadius:0}:null;(0,_.isArray)(i)||(i=[i,i,i,i]);var r=Math.abs(e.r||0-e.r0||0);return{cornerRadius:(0,_.map)(i,(function(t){return(0,h.lo)(t,r)}))}}var on=Math.max,an=Math.min;var sn=function(t){function e(){var n=t.call(this)||this;return n.type=e.type,n._isFirstFrame=!0,n}return(0,Bt.C6)(e,t),e.prototype.render=function(t,e,n,i){this._model=t,this._removeOnRenderedListener(n),this._updateDrawMode(t);var r=t.get("coordinateSystem");("cartesian2d"===r||"polar"===r)&&(this._progressiveEls=null,this._isLargeDraw?this._renderLarge(t,e,n):this._renderNormal(t,e,n,i))},e.prototype.incrementalPrepareRender=function(t){this._clear(),this._updateDrawMode(t),this._updateLargeClip(t)},e.prototype.incrementalRender=function(t,e){this._progressiveEls=[],this._incrementalRenderLarge(t,e)},e.prototype.eachRendered=function(t){(0,qt.traverseElements)(this._progressiveEls||this.group,t)},e.prototype._updateDrawMode=function(t){var e=t.pipelineContext.large;null!=this._isLargeDraw&&e===this._isLargeDraw||(this._isLargeDraw=e,this._clear())},e.prototype._renderNormal=function(t,e,n,i){var r,o=this.group,a=t.getData(),s=this._data,l=t.coordinateSystem,h=l.getBaseAxis();"cartesian2d"===l.type?r=h.isHorizontal():"polar"===l.type&&(r="angle"===h.dim);var c=t.isAnimationEnabled()?t:null,u=function(t,e){var n=t.get("realtimeSort",!0),i=e.getBaseAxis();0;if(n&&"category"===i.type&&"cartesian2d"===e.type)return{baseAxis:i,otherAxis:e.getOtherAxis(i)}}(t,l);u&&this._enableRealtimeSort(u,a,n);var d=t.get("clip",!0)||u,p=function(t,e){var n=t.getArea&&t.getArea();if(Ce(t,"cartesian2d")){var i=t.getBaseAxis();if("category"!==i.type||!i.onBand){var r=e.getLayout("bandWidth");i.isHorizontal()?(n.x-=r,n.width+=2*r):(n.y-=r,n.height+=2*r)}}return n}(l,a);o.removeClipPath();var f=t.get("roundCap",!0),g=t.get("showBackground",!0),m=t.getModel("backgroundStyle"),v=m.get("borderRadius")||0,y=[],_=this._backgroundEls,x=i&&i.isInitSort,b=i&&"changeAxisOrder"===i.type;function w(t){var e=gn[l.type](a,t),n=function(t,e,n){var i="polar"===t.type?we.A:be.A;return new i({shape:wn(e,n,t),silent:!0,z2:0})}(l,r,e);return n.useStyle(m.getItemStyle()),"cartesian2d"===l.type?n.setShape("r",v):n.setShape("cornerRadius",v),y[t]=n,n}a.diff(s).add((function(e){var n=a.getItemModel(e),i=gn[l.type](a,e,n);if(g&&w(e),a.hasValue(e)&&fn[l.type](i)){var s=!1;d&&(s=ln[l.type](p,i));var m=hn[l.type](t,a,e,i,r,c,h.model,!1,f);u&&(m.forceLabelAnimation=!0),vn(m,a,e,n,i,t,r,"polar"===l.type),x?m.attr({shape:i}):u?cn(u,c,m,i,e,r,!1,!1):(0,Ut.LW)(m,{shape:i},t,e),a.setItemGraphicEl(e,m),o.add(m),m.ignore=s}})).update((function(e,n){var i=a.getItemModel(e),S=gn[l.type](a,e,i);if(g){var T=void 0;0===_.length?T=w(n):((T=_[n]).useStyle(m.getItemStyle()),"cartesian2d"===l.type?T.setShape("r",v):T.setShape("cornerRadius",v),y[e]=T);var M=gn[l.type](a,e),A=wn(r,M,l);(0,Ut.oi)(T,{shape:A},c,e)}var C=s.getItemGraphicEl(n);if(a.hasValue(e)&&fn[l.type](S)){var I=!1;if(d&&(I=ln[l.type](p,S))&&o.remove(C),C?(0,Ut.ap)(C):C=hn[l.type](t,a,e,S,r,c,h.model,!!C,f),u&&(C.forceLabelAnimation=!0),b){var E=C.getTextContent();if(E){var k=(0,Jt.Lu)(E);null!=k.prevValue&&(k.prevValue=k.value)}}else vn(C,a,e,i,S,t,r,"polar"===l.type);x?C.attr({shape:S}):u?cn(u,c,C,S,e,r,!0,b):(0,Ut.oi)(C,{shape:S},t,e,null),a.setItemGraphicEl(e,C),C.ignore=I,o.add(C)}else o.remove(C)})).remove((function(e){var n=s.getItemGraphicEl(e);n&&(0,Ut.t5)(n,t,e)})).execute();var S=this._backgroundGroup||(this._backgroundGroup=new jt.A);S.removeAll();for(var T=0;T<y.length;++T)S.add(y[T]);o.add(S),this._backgroundEls=y,this._data=a},e.prototype._renderLarge=function(t,e,n){this._clear(),xn(t,this.group),this._updateLargeClip(t)},e.prototype._incrementalRenderLarge=function(t,e){this._removeBackground(),xn(e,this.group,this._progressiveEls,!0)},e.prototype._updateLargeClip=function(t){var e=t.get("clip",!0)&&Ae(t.coordinateSystem,!1,t),n=this.group;e?n.setClipPath(e):n.removeClipPath()},e.prototype._enableRealtimeSort=function(t,e,n){var i=this;if(e.count()){var r=t.baseAxis;if(this._isFirstFrame)this._dispatchInitSort(e,t,n),this._isFirstFrame=!1;else{var o=function(t){var n=e.getItemGraphicEl(t),i=n&&n.shape;return i&&Math.abs(r.isHorizontal()?i.height:i.width)||0};this._onRendered=function(){i._updateSortWithinSameData(e,o,r,n)},n.getZr().on("rendered",this._onRendered)}}},e.prototype._dataSort=function(t,e,n){var i=[];return t.each(t.mapDimension(e.dim),(function(t,e){var r=n(e);r=null==r?NaN:r,i.push({dataIndex:e,mappedValue:r,ordinalNumber:t})})),i.sort((function(t,e){return e.mappedValue-t.mappedValue})),{ordinalNumbers:(0,_.map)(i,(function(t){return t.ordinalNumber}))}},e.prototype._isOrderChangedWithinSameData=function(t,e,n){for(var i=n.scale,r=t.mapDimension(n.dim),o=Number.MAX_VALUE,a=0,s=i.getOrdinalMeta().categories.length;a<s;++a){var l=t.rawIndexOf(r,i.getRawOrdinalNumber(a)),h=l<0?Number.MIN_VALUE:e(t.indexOfRawIndex(l));if(h>o)return!0;o=h}return!1},e.prototype._isOrderDifferentInView=function(t,e){for(var n=e.scale,i=n.getExtent(),r=Math.max(0,i[0]),o=Math.min(i[1],n.getOrdinalMeta().categories.length-1);r<=o;++r)if(t.ordinalNumbers[r]!==n.getRawOrdinalNumber(r))return!0},e.prototype._updateSortWithinSameData=function(t,e,n,i){if(this._isOrderChangedWithinSameData(t,e,n)){var r=this._dataSort(t,n,e);this._isOrderDifferentInView(r,n)&&(this._removeOnRenderedListener(i),i.dispatchAction({type:"changeAxisOrder",componentType:n.dim+"Axis",axisId:n.index,sortInfo:r}))}},e.prototype._dispatchInitSort=function(t,e,n){var i=e.baseAxis,r=this._dataSort(t,i,(function(n){return t.get(t.mapDimension(e.otherAxis.dim),n)}));n.dispatchAction({type:"changeAxisOrder",componentType:i.dim+"Axis",isInitSort:!0,axisId:i.index,sortInfo:r})},e.prototype.remove=function(t,e){this._clear(this._model),this._removeOnRenderedListener(e)},e.prototype.dispose=function(t,e){this._removeOnRenderedListener(e)},e.prototype._removeOnRenderedListener=function(t){this._onRendered&&(t.getZr().off("rendered",this._onRendered),this._onRendered=null)},e.prototype._clear=function(t){var e=this.group,n=this._data;t&&t.isAnimationEnabled()&&n&&!this._isLargeDraw?(this._removeBackground(),this._backgroundEls=[],n.eachItemGraphicEl((function(e){(0,Ut.t5)(e,t,(0,Xt.z)(e).dataIndex)}))):e.removeAll(),this._data=null,this._isFirstFrame=!0},e.prototype._removeBackground=function(){this.group.remove(this._backgroundGroup),this._backgroundGroup=null},e.type="bar",e}(xe.A),ln={cartesian2d:function(t,e){var n=e.width<0?-1:1,i=e.height<0?-1:1;n<0&&(e.x+=e.width,e.width=-e.width),i<0&&(e.y+=e.height,e.height=-e.height);var r=t.x+t.width,o=t.y+t.height,a=on(e.x,t.x),s=an(e.x+e.width,r),l=on(e.y,t.y),h=an(e.y+e.height,o),c=s<a,u=h<l;return e.x=c&&a>r?s:a,e.y=u&&l>o?h:l,e.width=c?0:s-a,e.height=u?0:h-l,n<0&&(e.x+=e.width,e.width=-e.width),i<0&&(e.y+=e.height,e.height=-e.height),c||u},polar:function(t,e){var n=e.r0<=e.r?1:-1;if(n<0){var i=e.r;e.r=e.r0,e.r0=i}var r=an(e.r,t.r),o=on(e.r0,t.r0);e.r=r,e.r0=o;var a=r-o<0;if(n<0){i=e.r;e.r=e.r0,e.r0=i}return a}},hn={cartesian2d:function(t,e,n,i,r,o,a,s,l){var h=new be.A({shape:(0,_.extend)({},i),z2:1});(h.__dataIndex=n,h.name="item",o)&&(h.shape[r?"height":"width"]=0);return h},polar:function(t,e,n,i,r,o,a,s,l){var c=!r&&l?tn:we.A,u=new c({shape:i,z2:1});u.name="item";var d,p,f=mn(r);if(u.calculateTextPosition=(d=f,p=({isRoundCap:c===tn}||{}).isRoundCap,function(t,e,n){var i=e.position;if(!i||i instanceof Array)return(0,h.X4)(t,e,n);var r=d(i),o=null!=e.distance?e.distance:5,a=this.shape,s=a.cx,l=a.cy,c=a.r,u=a.r0,f=(c+u)/2,g=a.startAngle,m=a.endAngle,v=(g+m)/2,y=p?Math.abs(c-u)/2:0,_=Math.cos,x=Math.sin,b=s+c*_(g),w=l+c*x(g),S="left",T="top";switch(r){case"startArc":b=s+(u-o)*_(v),w=l+(u-o)*x(v),S="center",T="top";break;case"insideStartArc":b=s+(u+o)*_(v),w=l+(u+o)*x(v),S="center",T="bottom";break;case"startAngle":b=s+f*_(g)+en(g,o+y,!1),w=l+f*x(g)+nn(g,o+y,!1),S="right",T="middle";break;case"insideStartAngle":b=s+f*_(g)+en(g,-o+y,!1),w=l+f*x(g)+nn(g,-o+y,!1),S="left",T="middle";break;case"middle":b=s+f*_(v),w=l+f*x(v),S="center",T="middle";break;case"endArc":b=s+(c+o)*_(v),w=l+(c+o)*x(v),S="center",T="bottom";break;case"insideEndArc":b=s+(c-o)*_(v),w=l+(c-o)*x(v),S="center",T="top";break;case"endAngle":b=s+f*_(m)+en(m,o+y,!0),w=l+f*x(m)+nn(m,o+y,!0),S="left",T="middle";break;case"insideEndAngle":b=s+f*_(m)+en(m,-o+y,!0),w=l+f*x(m)+nn(m,-o+y,!0),S="right",T="middle";break;default:return(0,h.X4)(t,e,n)}return(t=t||{}).x=b,t.y=w,t.align=S,t.verticalAlign=T,t}),o){var g=r?"r":"endAngle",m={};u.shape[g]=r?i.r0:i.startAngle,m[g]=i[g],(s?Ut.oi:Ut.LW)(u,{shape:m},o)}return u}};function cn(t,e,n,i,r,o,a,s){var l,h;o?(h={x:i.x,width:i.width},l={y:i.y,height:i.height}):(h={y:i.y,height:i.height},l={x:i.x,width:i.width}),s||(a?Ut.oi:Ut.LW)(n,{shape:l},e,r,null);var c=e?t.baseAxis.model:null;(a?Ut.oi:Ut.LW)(n,{shape:h},c,r)}function un(t,e){for(var n=0;n<e.length;n++)if(!isFinite(t[e[n]]))return!0;return!1}var dn=["x","y","width","height"],pn=["cx","cy","r","startAngle","endAngle"],fn={cartesian2d:function(t){return!un(t,dn)},polar:function(t){return!un(t,pn)}},gn={cartesian2d:function(t,e,n){var i=t.getItemLayout(e),r=n?function(t,e){var n=t.get(["itemStyle","borderColor"]);if(!n||"none"===n)return 0;var i=t.get(["itemStyle","borderWidth"])||0,r=isNaN(e.width)?Number.MAX_VALUE:Math.abs(e.width),o=isNaN(e.height)?Number.MAX_VALUE:Math.abs(e.height);return Math.min(i,r,o)}(n,i):0,o=i.width>0?1:-1,a=i.height>0?1:-1;return{x:i.x+o*r/2,y:i.y+a*r/2,width:i.width-o*r,height:i.height-a*r}},polar:function(t,e,n){var i=t.getItemLayout(e);return{cx:i.cx,cy:i.cy,r0:i.r0,r:i.r,startAngle:i.startAngle,endAngle:i.endAngle,clockwise:i.clockwise}}};function mn(t){return function(t){var e=t?"Arc":"Angle";return function(t){switch(t){case"start":case"insideStart":case"end":case"insideEnd":return t+e;default:return t}}}(t)}function vn(t,e,n,i,r,o,a,s){var l=e.getItemVisual(n,"style");if(s){if(!o.get("roundCap")){var h=t.shape,c=rn(i.getModel("itemStyle"),h,!0);(0,_.extend)(h,c),t.setShape(h)}}else{var u=i.get(["itemStyle","borderRadius"])||0;t.setShape("r",u)}t.useStyle(l);var d=i.getShallow("cursor");d&&t.attr("cursor",d);var p=s?a?r.r>=r.r0?"endArc":"startArc":r.endAngle>=r.startAngle?"endAngle":"startAngle":a?r.height>=0?"bottom":"top":r.width>=0?"right":"left",f=(0,Jt.lx)(i);(0,Jt.qM)(t,f,{labelFetcher:o,labelDataIndex:n,defaultText:$t(o.getData(),n),inheritColor:l.fill,defaultOpacity:l.opacity,defaultOutsidePosition:p});var g=t.getTextContent();if(s&&g){var m=i.get(["label","position"]);t.textConfig.inside="middle"===m||null,function(t,e,n,i){if((0,_.isNumber)(i))t.setTextConfig({rotation:i});else if((0,_.isArray)(e))t.setTextConfig({rotation:0});else{var r,o=t.shape,a=o.clockwise?o.startAngle:o.endAngle,s=o.clockwise?o.endAngle:o.startAngle,l=(a+s)/2,h=n(e);switch(h){case"startArc":case"insideStartArc":case"middle":case"insideEndArc":case"endArc":r=l;break;case"startAngle":case"insideStartAngle":r=a;break;case"endAngle":case"insideEndAngle":r=s;break;default:return void t.setTextConfig({rotation:0})}var c=1.5*Math.PI-r;"middle"===h&&c>Math.PI/2&&c<1.5*Math.PI&&(c-=Math.PI),t.setTextConfig({rotation:c})}}(t,"outside"===m?p:m,mn(a),i.get(["label","rotate"]))}(0,Jt.Oh)(g,f,o.getRawValue(n),(function(t){return Kt(e,t)}));var v=i.getModel(["emphasis"]);(0,Yt.Lm)(t,v.get("focus"),v.get("blurScope"),v.get("disabled")),(0,Yt.Mx)(t,i),function(t){return null!=t.startAngle&&null!=t.endAngle&&t.startAngle===t.endAngle}(r)&&(t.style.fill="none",t.style.stroke="none",(0,_.each)(t.states,(function(t){t.style&&(t.style.fill=t.style.stroke="none")})))}var yn=function(){},_n=function(t){function e(e){var n=t.call(this,e)||this;return n.type="largeBar",n}return(0,Bt.C6)(e,t),e.prototype.getDefaultShape=function(){return new yn},e.prototype.buildPath=function(t,e){for(var n=e.points,i=this.baseDimIdx,r=1-this.baseDimIdx,o=[],a=[],s=this.barWidth,l=0;l<n.length;l+=3)a[i]=s,a[r]=n[l+2],o[i]=n[l+i],o[r]=n[l+r],t.rect(o[0],o[1],a[0],a[1])},e}(s.Ay);function xn(t,e,n,i){var r=t.getData(),o=r.getLayout("valueAxisHorizontal")?1:0,a=r.getLayout("largeDataIndices"),s=r.getLayout("size"),l=t.getModel("backgroundStyle"),h=r.getLayout("largeBackgroundPoints");if(h){var c=new _n({shape:{points:h},incremental:!!i,silent:!0,z2:0});c.baseDimIdx=o,c.largeDataIndices=a,c.barWidth=s,c.useStyle(l.getItemStyle()),e.add(c),n&&n.push(c)}var u=new _n({shape:{points:r.getLayout("largePoints")},incremental:!!i,ignoreCoarsePointer:!0,z2:1});u.baseDimIdx=o,u.largeDataIndices=a,u.barWidth=s,e.add(u),u.useStyle(r.getVisual("style")),(0,Xt.z)(u).seriesIndex=t.seriesIndex,t.get("silent")||(u.on("mousedown",bn),u.on("mousemove",bn)),n&&n.push(u)}var bn=(0,Ke.nF)((function(t){var e=function(t,e,n){for(var i=t.baseDimIdx,r=1-i,o=t.shape.points,a=t.largeDataIndices,s=[],l=[],h=t.barWidth,c=0,u=o.length/3;c<u;c++){var d=3*c;if(l[i]=h,l[r]=o[d+2],s[i]=o[d+i],s[r]=o[d+r],l[r]<0&&(s[r]+=l[r],l[r]=-l[r]),e>=s[0]&&e<=s[0]+l[0]&&n>=s[1]&&n<=s[1]+l[1])return a[c]}return-1}(this,t.offsetX,t.offsetY);(0,Xt.z)(this).dataIndex=e>=0?e:null}),30,!1);function wn(t,e,n){if(Ce(n,"cartesian2d")){var i=e,r=n.getArea();return{x:t?i.x:r.x,y:t?r.y:i.y,width:t?i.width:r.width,height:t?r.height:i.height}}var o=e;return{cx:(r=n.getArea()).cx,cy:r.cy,r0:t?r.r0:o.r0,r:t?r.r:o.r,startAngle:t?o.startAngle:0,endAngle:t?o.endAngle:2*Math.PI}}const Sn=sn;var Tn=n(6093),Mn=n(5872),An=2*Math.PI,Cn=Math.PI/180;function In(t,e){return Mn.dV(t.getBoxLayoutParams(),{width:e.getWidth(),height:e.getHeight()})}function En(t,e){var n=In(t,e),i=t.get("center"),r=t.get("radius");_.isArray(r)||(r=[0,r]);var o,a,s=(0,Se.lo)(n.width,e.getWidth()),l=(0,Se.lo)(n.height,e.getHeight()),h=Math.min(s,l),c=(0,Se.lo)(r[0],h/2),u=(0,Se.lo)(r[1],h/2),d=t.coordinateSystem;if(d){var p=d.dataToPoint(i);o=p[0]||0,a=p[1]||0}else _.isArray(i)||(i=[i,i]),o=(0,Se.lo)(i[0],s)+n.x,a=(0,Se.lo)(i[1],l)+n.y;return{cx:o,cy:a,r0:c,r:u}}function kn(t,e,n){e.eachSeriesByType(t,(function(t){var e=t.getData(),i=e.mapDimension("value"),r=In(t,n),o=En(t,n),a=o.cx,s=o.cy,l=o.r,h=o.r0,c=-t.get("startAngle")*Cn,u=t.get("endAngle"),d=t.get("padAngle")*Cn;u="auto"===u?c-An:-u*Cn;var p=t.get("minAngle")*Cn+d,f=0;e.each(i,(function(t){!isNaN(t)&&f++}));var g=e.getSum(i),m=Math.PI/(g||f)*2,v=t.get("clockwise"),y=t.get("roseType"),_=t.get("stillShowZeroSum"),x=e.getDataExtent(i);x[0]=0;var b=v?1:-1,w=[c,u],S=b*d/2;(0,N.q)(w,!v),c=w[0],u=w[1];var T=Ln(t);T.startAngle=c,T.endAngle=u,T.clockwise=v;var M=Math.abs(u-c),A=M,C=0,I=c;if(e.setLayout({viewRect:r,r:l}),e.each(i,(function(t,n){var i;if(isNaN(t))e.setItemLayout(n,{angle:NaN,startAngle:NaN,endAngle:NaN,clockwise:v,cx:a,cy:s,r0:h,r:y?NaN:l});else{(i="area"!==y?0===g&&_?m:t*m:M/f)<p?(i=p,A-=p):C+=t;var r=I+b*i,o=0,c=0;d>i?c=o=I+b*i/2:(o=I+S,c=r-S),e.setItemLayout(n,{angle:i,startAngle:o,endAngle:c,clockwise:v,cx:a,cy:s,r0:h,r:y?(0,Se.Cb)(t,x,[h,l]):l}),I=r}})),A<An&&f)if(A<=.001){var E=M/f;e.each(i,(function(t,n){if(!isNaN(t)){var i=e.getItemLayout(n);i.angle=E;var r=0,o=0;E<d?o=r=c+b*(n+.5)*E:(r=c+b*n*E+S,o=c+b*(n+1)*E-S),i.startAngle=r,i.endAngle=o}}))}else m=A/C,I=c,e.each(i,(function(t,n){if(!isNaN(t)){var i=e.getItemLayout(n),r=i.angle===p?p:t*m,o=0,a=0;r<d?a=o=I+b*r/2:(o=I+S,a=I+b*r-S),i.startAngle=o,i.endAngle=a,I+=b*r}}))}))}var Ln=(0,ce.$r)();function Dn(t){return{seriesType:t,reset:function(t,e){var n=e.findComponents({mainType:"legend"});if(n&&n.length){var i=t.getData();i.filterSelf((function(t){for(var e=i.getName(t),r=0;r<n.length;r++)if(!n[r].isSelected(e))return!1;return!0}))}}}}var Pn=n(1106),Rn=n(4063),On=n(4250),Nn=n(658),Fn=Math.PI/180;function Bn(t,e,n,i,r,o,a,s,l,h){if(!(t.length<2)){for(var c=t.length,u=0;u<c;u++)if("outer"===t[u].position&&"labelLine"===t[u].labelAlignTo){var d=t[u].label.x-h;t[u].linePoints[1][0]+=d,t[u].label.x=h}(0,Nn.Xe)(t,l,l+a)&&function(t){for(var o={list:[],maxY:0},a={list:[],maxY:0},s=0;s<t.length;s++)if("none"===t[s].labelAlignTo){var l=t[s],h=l.label.y>n?a:o,c=Math.abs(l.label.y-n);if(c>=h.maxY){var u=l.label.x-e-l.len2*r,d=i+l.len,f=Math.abs(u)<d?Math.sqrt(c*c/(1-u*u/d/d)):d;h.rB=f,h.maxY=c}h.list.push(l)}p(o),p(a)}(t)}function p(t){for(var o=t.rB,a=o*o,s=0;s<t.list.length;s++){var l=t.list[s],h=Math.abs(l.label.y-n),c=i+l.len,u=c*c,d=Math.sqrt((1-Math.abs(h*h/a))*u),p=e+(d+l.len2)*r,f=p-l.label.x;zn(l,l.targetTextWidth-f*r,!0),l.label.x=p}}}function zn(t,e,n){if(void 0===n&&(n=!1),null==t.labelStyleWidth){var i=t.label,r=i.style,o=t.rect,a=r.backgroundColor,s=r.padding,l=s?s[1]+s[3]:0,h=r.overflow,c=o.width+(a?0:l);if(e<c||n){var u=o.height;if(h&&h.match("break")){i.setStyle("backgroundColor",null),i.setStyle("width",e-l);var d=i.getBoundingRect();i.setStyle("width",Math.ceil(d.width)),i.setStyle("backgroundColor",a)}else{var p=e-l,f=e<c?p:n?p>t.unconstrainedWidth?null:p:null;i.setStyle("width",f)}var g=i.getBoundingRect();o.width=g.width;var m=(i.style.margin||0)+2.1;o.height=g.height+m,o.y-=(o.height-u)/2}}}function Gn(t){return"center"===t.position}function Vn(t){var e,n,i=t.getData(),r=[],o=!1,a=(t.get("minShowLabelAngle")||0)*Fn,s=i.getLayout("viewRect"),l=i.getLayout("r"),h=s.width,c=s.x,u=s.y,d=s.height;function p(t){t.ignore=!0}i.each((function(t){var s=i.getItemGraphicEl(t),u=s.shape,d=s.getTextContent(),f=s.getTextGuideLine(),g=i.getItemModel(t),m=g.getModel("label"),v=m.get("position")||g.get(["emphasis","label","position"]),y=m.get("distanceToLabelLine"),x=m.get("alignTo"),b=(0,Se.lo)(m.get("edgeDistance"),h),w=m.get("bleedMargin"),S=g.getModel("labelLine"),T=S.get("length");T=(0,Se.lo)(T,h);var M=S.get("length2");if(M=(0,Se.lo)(M,h),Math.abs(u.endAngle-u.startAngle)<a)return(0,_.each)(d.states,p),d.ignore=!0,void(f&&((0,_.each)(f.states,p),f.ignore=!0));if(function(t){if(!t.ignore)return!0;for(var e in t.states)if(!1===t.states[e].ignore)return!0;return!1}(d)){var A,C,I,E,k=(u.startAngle+u.endAngle)/2,L=Math.cos(k),D=Math.sin(k);e=u.cx,n=u.cy;var P="inside"===v||"inner"===v;if("center"===v)A=u.cx,C=u.cy,E="center";else{var R=(P?(u.r+u.r0)/2*L:u.r*L)+e,O=(P?(u.r+u.r0)/2*D:u.r*D)+n;if(A=R+3*L,C=O+3*D,!P){var N=R+L*(T+l-u.r),F=O+D*(T+l-u.r),B=N+(L<0?-1:1)*M;A="edge"===x?L<0?c+b:c+h-b:B+(L<0?-y:y),C=F,I=[[R,O],[N,F],[B,F]]}E=P?"center":"edge"===x?L>0?"right":"left":L>0?"left":"right"}var z=Math.PI,G=0,V=m.get("rotate");if((0,_.isNumber)(V))G=V*(z/180);else if("center"===v)G=0;else if("radial"===V||!0===V){G=L<0?-k+z:-k}else if("tangential"===V&&"outside"!==v&&"outer"!==v){var j=Math.atan2(L,D);j<0&&(j=2*z+j),D>0&&(j=z+j),G=j-z}if(o=!!G,d.x=A,d.y=C,d.rotation=G,d.setStyle({verticalAlign:"middle"}),P){d.setStyle({align:E});var H=d.states.select;H&&(H.x+=d.x,H.y+=d.y)}else{var W=d.getBoundingRect().clone();W.applyTransform(d.getComputedTransform());var U=(d.style.margin||0)+2.1;W.y-=U/2,W.height+=U,r.push({label:d,labelLine:f,position:v,len:T,len2:M,minTurnAngle:S.get("minTurnAngle"),maxSurfaceAngle:S.get("maxSurfaceAngle"),surfaceNormal:new Rn.A(L,D),linePoints:I,textAlign:E,labelDistance:y,labelAlignTo:x,edgeDistance:b,bleedMargin:w,rect:W,unconstrainedWidth:W.width,labelStyleWidth:d.style.width})}s.setTextConfig({inside:P})}})),!o&&t.get("avoidLabelOverlap")&&function(t,e,n,i,r,o,a,s){for(var l=[],h=[],c=Number.MAX_VALUE,u=-Number.MAX_VALUE,d=0;d<t.length;d++){var p=t[d].label;Gn(t[d])||(p.x<e?(c=Math.min(c,p.x),l.push(t[d])):(u=Math.max(u,p.x),h.push(t[d])))}for(d=0;d<t.length;d++)if(!Gn(m=t[d])&&m.linePoints){if(null!=m.labelStyleWidth)continue;p=m.label;var f=m.linePoints,g=void 0;g="edge"===m.labelAlignTo?p.x<e?f[2][0]-m.labelDistance-a-m.edgeDistance:a+r-m.edgeDistance-f[2][0]-m.labelDistance:"labelLine"===m.labelAlignTo?p.x<e?c-a-m.bleedMargin:a+r-u-m.bleedMargin:p.x<e?p.x-a-m.bleedMargin:a+r-p.x-m.bleedMargin,m.targetTextWidth=g,zn(m,g)}for(Bn(h,e,n,i,1,0,o,0,s,u),Bn(l,e,n,i,-1,0,o,0,s,c),d=0;d<t.length;d++){var m;if(!Gn(m=t[d])&&m.linePoints){p=m.label,f=m.linePoints;var v="edge"===m.labelAlignTo,y=p.style.padding,_=y?y[1]+y[3]:0,x=p.style.backgroundColor?0:_,b=m.rect.width+x,w=f[1][0]-f[2][0];v?p.x<e?f[2][0]=a+m.edgeDistance+b+m.labelDistance:f[2][0]=a+r-m.edgeDistance-b-m.labelDistance:(p.x<e?f[2][0]=p.x+m.labelDistance:f[2][0]=p.x-m.labelDistance,f[1][0]=f[2][0]+w),f[1][1]=f[2][1]=p.y}}}(r,e,n,l,h,d,c,u);for(var f=0;f<r.length;f++){var g=r[f],m=g.label,v=g.labelLine,y=isNaN(m.x)||isNaN(m.y);if(m){m.setStyle({align:g.textAlign}),y&&((0,_.each)(m.states,p),m.ignore=!0);var x=m.states.select;x&&(x.x+=m.x,x.y+=m.y)}if(v){var b=g.linePoints;y||!b?((0,_.each)(v.states,p),v.ignore=!0):((0,On.YI)(b,g.minTurnAngle),(0,On.QK)(b,g.surfaceNormal,g.maxSurfaceAngle),v.setShape({points:b}),m.__hostTarget.textGuideLineConfig={anchor:new Rn.A(b[0][0],b[0][1])})}}}var jn=function(t){function e(e,n,i){var r=t.call(this)||this;r.z2=2;var o=new Z.Ay;return r.setTextContent(o),r.updateData(e,n,i,!0),r}return(0,Bt.C6)(e,t),e.prototype.updateData=function(t,e,n,i){var r=this,o=t.hostModel,a=t.getItemModel(e),s=a.getModel("emphasis"),l=t.getItemLayout(e),h=(0,_.extend)(rn(a.getModel("itemStyle"),l,!0),l);if(isNaN(h.startAngle))r.setShape(h);else{if(i){r.setShape(h);var c=o.getShallow("animationType");o.ecModel.ssr?(Ut.LW(r,{scaleX:0,scaleY:0},o,{dataIndex:e,isFrom:!0}),r.originX=h.cx,r.originY=h.cy):"scale"===c?(r.shape.r=l.r0,Ut.LW(r,{shape:{r:l.r}},o,e)):null!=n?(r.setShape({startAngle:n,endAngle:n}),Ut.LW(r,{shape:{startAngle:l.startAngle,endAngle:l.endAngle}},o,e)):(r.shape.endAngle=l.startAngle,Ut.oi(r,{shape:{endAngle:l.endAngle}},o,e))}else(0,Ut.ap)(r),Ut.oi(r,{shape:h},o,e);r.useStyle(t.getItemVisual(e,"style")),(0,Yt.Mx)(r,a);var u=(l.startAngle+l.endAngle)/2,d=o.get("selectedOffset"),p=Math.cos(u)*d,f=Math.sin(u)*d,g=a.getShallow("cursor");g&&r.attr("cursor",g),this._updateLabel(o,t,e),r.ensureState("emphasis").shape=(0,_.extend)({r:l.r+(s.get("scale")&&s.get("scaleSize")||0)},rn(s.getModel("itemStyle"),l)),(0,_.extend)(r.ensureState("select"),{x:p,y:f,shape:rn(a.getModel(["select","itemStyle"]),l)}),(0,_.extend)(r.ensureState("blur"),{shape:rn(a.getModel(["blur","itemStyle"]),l)});var m=r.getTextGuideLine(),v=r.getTextContent();m&&(0,_.extend)(m.ensureState("select"),{x:p,y:f}),(0,_.extend)(v.ensureState("select"),{x:p,y:f}),(0,Yt.Lm)(this,s.get("focus"),s.get("blurScope"),s.get("disabled"))}},e.prototype._updateLabel=function(t,e,n){var i=this,r=e.getItemModel(n),o=r.getModel("labelLine"),a=e.getItemVisual(n,"style"),s=a&&a.fill,l=a&&a.opacity;(0,Jt.qM)(i,(0,Jt.lx)(r),{labelFetcher:e.hostModel,labelDataIndex:n,inheritColor:s,defaultOpacity:l,defaultText:t.getFormattedLabel(n,"normal")||e.getName(n)});var h=i.getTextContent();i.setTextConfig({position:null,rotation:null}),h.attr({z2:10});var c=t.get(["label","position"]);if("outside"!==c&&"outer"!==c)i.removeTextGuideLine();else{var u=this.getTextGuideLine();u||(u=new Pn.A,this.setTextGuideLine(u)),(0,On.eR)(this,(0,On.rv)(r),{stroke:s,opacity:(0,_.retrieve3)(o.get(["lineStyle","opacity"]),l,1)})}},e}(we.A);const Hn=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.ignoreLabelLineUpdate=!0,e}return(0,Bt.C6)(e,t),e.prototype.render=function(t,e,n,i){var r,o=t.getData(),a=this._data,s=this.group;if(!a&&o.count()>0){for(var l=o.getItemLayout(0),h=1;isNaN(l&&l.startAngle)&&h<o.count();++h)l=o.getItemLayout(h);l&&(r=l.startAngle)}if(this._emptyCircleSector&&s.remove(this._emptyCircleSector),0===o.count()&&t.get("showEmptyCircle")){var c=Ln(t),u=new we.A({shape:(0,_.extend)(En(t,n),c)});u.useStyle(t.getModel("emptyCircleStyle").getItemStyle()),this._emptyCircleSector=u,s.add(u)}o.diff(a).add((function(t){var e=new jn(o,t,r);o.setItemGraphicEl(t,e),s.add(e)})).update((function(t,e){var n=a.getItemGraphicEl(e);n.updateData(o,t,r),n.off("click"),s.add(n),o.setItemGraphicEl(t,n)})).remove((function(e){var n=a.getItemGraphicEl(e);Ut.t5(n,t,e)})).execute(),Vn(t),"expansion"!==t.get("animationTypeUpdate")&&(this._data=o)},e.prototype.dispose=function(){},e.prototype.containPoint=function(t,e){var n=e.getData().getItemLayout(0);if(n){var i=t[0]-n.cx,r=t[1]-n.cy,o=Math.sqrt(i*i+r*r);return o<=n.r&&o>=n.r0}},e.type="pie",e}(xe.A);var Wn=n(7984),Un=n(919);function qn(t,e,n){e=(0,_.isArray)(e)&&{coordDimensions:e}||(0,_.extend)({encodeDefine:t.getEncode()},e);var i=t.getSource(),r=(0,Wn.A)(i,e).dimensions,o=new Un.A(r,t);return o.initData(i,n),o}var Xn=n(6660);const Yn=function(){function t(t,e){this._getDataWithEncodedVisual=t,this._getRawData=e}return t.prototype.getAllNames=function(){var t=this._getRawData();return t.mapArray(t.getName)},t.prototype.containName=function(t){return this._getRawData().indexOfName(t)>=0},t.prototype.indexOfName=function(t){return this._getDataWithEncodedVisual().indexOfName(t)},t.prototype.getItemVisual=function(t,e){return this._getDataWithEncodedVisual().getItemVisual(t,e)},t}();var Zn=ce.$r();const $n=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return(0,Bt.C6)(e,t),e.prototype.init=function(e){t.prototype.init.apply(this,arguments),this.legendVisualProvider=new Yn(_.bind(this.getData,this),_.bind(this.getRawData,this)),this._defaultLabelLine(e)},e.prototype.mergeOption=function(){t.prototype.mergeOption.apply(this,arguments)},e.prototype.getInitialData=function(){return qn(this,{coordDimensions:["value"],encodeDefaulter:_.curry(Xn.ln,this)})},e.prototype.getDataParams=function(e){var n=this.getData(),i=Zn(n),r=i.seats;if(!r){var o=[];n.each(n.mapDimension("value"),(function(t){o.push(t)})),r=i.seats=(0,Se.kM)(o,n.hostModel.get("percentPrecision"))}var a=t.prototype.getDataParams.call(this,e);return a.percent=r[e]||0,a.$vars.push("percent"),a},e.prototype._defaultLabelLine=function(t){ce.M5(t,"labelLine",["show"]);var e=t.labelLine,n=t.emphasis.labelLine;e.show=e.show&&t.label.show,n.show=n.show&&t.emphasis.label.show},e.type="series.pie",e.defaultOption={z:2,legendHoverLink:!0,colorBy:"data",center:["50%","50%"],radius:[0,"75%"],clockwise:!0,startAngle:90,endAngle:"auto",padAngle:0,minAngle:0,minShowLabelAngle:0,selectedOffset:10,percentPrecision:2,stillShowZeroSum:!0,left:0,top:0,right:0,bottom:0,width:null,height:null,label:{rotate:0,show:!0,overflow:"truncate",position:"outer",alignTo:"none",edgeDistance:"25%",bleedMargin:10,distanceToLabelLine:5},labelLine:{show:!0,length:15,length2:15,smooth:!1,minTurnAngle:90,maxSurfaceAngle:90,lineStyle:{width:1,type:"solid"}},itemStyle:{borderWidth:1,borderJoin:"round"},showEmptyCircle:!0,emptyCircleStyle:{color:"lightgray",opacity:1},labelLayout:{hideOverlap:!0},emphasis:{scale:!0,scaleSize:5},avoidLabelOverlap:!0,animationType:"expansion",animationDuration:1e3,animationTypeUpdate:"transition",animationEasingUpdate:"cubicInOut",animationDurationUpdate:500,animationEasing:"cubicInOut"},e}(Gt.A);const Kn=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n.hasSymbolVisual=!0,n}return(0,Bt.C6)(e,t),e.prototype.getInitialData=function(t,e){return(0,zt.A)(null,this,{useEncodeDefaulter:!0})},e.prototype.getProgressive=function(){var t=this.option.progressive;return null==t?this.option.large?5e3:this.get("progressive"):t},e.prototype.getProgressiveThreshold=function(){var t=this.option.progressiveThreshold;return null==t?this.option.large?1e4:this.get("progressiveThreshold"):t},e.prototype.brushSelector=function(t,e,n){return n.point(e.getItemLayout(t))},e.prototype.getZLevelKey=function(){return this.getData().count()>this.getProgressiveThreshold()?this.id:""},e.type="series.scatter",e.dependencies=["grid","polar","geo","singleAxis","calendar"],e.defaultOption={coordinateSystem:"cartesian2d",z:2,legendHoverLink:!0,symbolSize:10,large:!1,largeThreshold:2e3,itemStyle:{opacity:.8},emphasis:{scale:!0},clip:!0,select:{itemStyle:{borderColor:"#212121"}},universalTransition:{divideShape:"clone"}},e}(Gt.A);var Jn=n(5383),Qn=function(){},ti=function(t){function e(e){var n=t.call(this,e)||this;return n._off=0,n.hoverDataIdx=-1,n}return(0,Bt.C6)(e,t),e.prototype.getDefaultShape=function(){return new Qn},e.prototype.reset=function(){this.notClear=!1,this._off=0},e.prototype.buildPath=function(t,e){var n,i=e.points,r=e.size,o=this.symbolProxy,a=o.shape,s=t.getContext?t.getContext():t,l=s&&r[0]<4,h=this.softClipShape;if(l)this._ctx=s;else{for(this._ctx=null,n=this._off;n<i.length;){var c=i[n++],u=i[n++];isNaN(c)||isNaN(u)||(h&&!h.contain(c,u)||(a.x=c-r[0]/2,a.y=u-r[1]/2,a.width=r[0],a.height=r[1],o.buildPath(t,a,!0)))}this.incremental&&(this._off=n,this.notClear=!0)}},e.prototype.afterBrush=function(){var t,e=this.shape,n=e.points,i=e.size,r=this._ctx,o=this.softClipShape;if(r){for(t=this._off;t<n.length;){var a=n[t++],s=n[t++];isNaN(a)||isNaN(s)||(o&&!o.contain(a,s)||r.fillRect(a-i[0]/2,s-i[1]/2,i[0],i[1]))}this.incremental&&(this._off=t,this.notClear=!0)}},e.prototype.findDataIndex=function(t,e){for(var n=this.shape,i=n.points,r=n.size,o=Math.max(r[0],4),a=Math.max(r[1],4),s=i.length/2-1;s>=0;s--){var l=2*s,h=i[l]-o/2,c=i[l+1]-a/2;if(t>=h&&e>=c&&t<=h+o&&e<=c+a)return s}return-1},e.prototype.contain=function(t,e){var n=this.transformCoordToLocal(t,e),i=this.getBoundingRect();return t=n[0],e=n[1],i.contain(t,e)?(this.hoverDataIdx=this.findDataIndex(t,e))>=0:(this.hoverDataIdx=-1,!1)},e.prototype.getBoundingRect=function(){var t=this._rect;if(!t){for(var e=this.shape,n=e.points,i=e.size,r=i[0],o=i[1],a=1/0,s=1/0,l=-1/0,h=-1/0,c=0;c<n.length;){var u=n[c++],d=n[c++];a=Math.min(u,a),l=Math.max(u,l),s=Math.min(d,s),h=Math.max(d,h)}t=this._rect=new Jn.A(a-r/2,s-o/2,l-a+r,h-s+o)}return t},e}(s.Ay),ei=function(){function t(){this.group=new jt.A}return t.prototype.updateData=function(t,e){this._clear();var n=this._create();n.setShape({points:t.getLayout("points")}),this._setCommon(n,t,e)},t.prototype.updateLayout=function(t){var e=t.getLayout("points");this.group.eachChild((function(t){if(null!=t.startIndex){var n=2*(t.endIndex-t.startIndex),i=4*t.startIndex*2;e=new Float32Array(e.buffer,i,n)}t.setShape("points",e),t.reset()}))},t.prototype.incrementalPrepareUpdate=function(t){this._clear()},t.prototype.incrementalUpdate=function(t,e,n){var i=this._newAdded[0],r=e.getLayout("points"),o=i&&i.shape.points;if(o&&o.length<2e4){var a=o.length,s=new Float32Array(a+r.length);s.set(o),s.set(r,a),i.endIndex=t.end,i.setShape({points:s})}else{this._newAdded=[];var l=this._create();l.startIndex=t.start,l.endIndex=t.end,l.incremental=!0,l.setShape({points:r}),this._setCommon(l,e,n)}},t.prototype.eachRendered=function(t){this._newAdded[0]&&t(this._newAdded[0])},t.prototype._create=function(){var t=new ti({cursor:"default"});return t.ignoreCoarsePointer=!0,this.group.add(t),this._newAdded.push(t),t},t.prototype._setCommon=function(t,e,n){var i=e.hostModel;n=n||{};var r=e.getVisual("symbolSize");t.setShape("size",r instanceof Array?r:[r,r]),t.softClipShape=n.clipShape||null,t.symbolProxy=(0,Vt.v5)(e.getVisual("symbol"),0,0,0,0),t.setColor=t.symbolProxy.setColor;var o=t.shape.size[0]<4;t.useStyle(i.getModel("itemStyle").getItemStyle(o?["color","shadowBlur","shadowColor"]:["color"]));var a=e.getVisual("style"),s=a&&a.fill;s&&t.setColor(s);var l=(0,Xt.z)(t);l.seriesIndex=i.seriesIndex,t.on("mousemove",(function(e){l.dataIndex=null;var n=t.hoverDataIdx;n>=0&&(l.dataIndex=n+(t.startIndex||0))}))},t.prototype.remove=function(){this._clear()},t.prototype._clear=function(){this._newAdded=[],this.group.removeAll()},t}();const ni=ei;const ii=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return(0,Bt.C6)(e,t),e.prototype.render=function(t,e,n){var i=t.getData();this._updateSymbolDraw(i,t).updateData(i,{clipShape:this._getClipShape(t)}),this._finished=!0},e.prototype.incrementalPrepareRender=function(t,e,n){var i=t.getData();this._updateSymbolDraw(i,t).incrementalPrepareUpdate(i),this._finished=!1},e.prototype.incrementalRender=function(t,e,n){this._symbolDraw.incrementalUpdate(t,e.getData(),{clipShape:this._getClipShape(e)}),this._finished=t.end===e.getData().count()},e.prototype.updateTransform=function(t,e,n){var i=t.getData();if(this.group.dirty(),!this._finished||i.count()>1e4)return{update:!0};var r=je("").reset(t,e,n);r.progress&&r.progress({start:0,end:i.count(),count:i.count()},i),this._symbolDraw.updateLayout(i)},e.prototype.eachRendered=function(t){this._symbolDraw&&this._symbolDraw.eachRendered(t)},e.prototype._getClipShape=function(t){if(t.get("clip",!0)){var e=t.coordinateSystem;return e&&e.getArea&&e.getArea(.1)}},e.prototype._updateSymbolDraw=function(t,e){var n=this._symbolDraw,i=e.pipelineContext.large;return n&&i===this._isLargeDraw||(n&&n.remove(),n=this._symbolDraw=i?new ni:new re,this._isLargeDraw=i,this.group.removeAll()),this.group.add(n.group),n},e.prototype.remove=function(t,e){this._symbolDraw&&this._symbolDraw.remove(!0),this._symbolDraw=null},e.prototype.dispose=function(){},e.type="scatter",e}(xe.A);var ri=n(5370),oi=n(9078);const ai=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return(0,Bt.C6)(e,t),e.type="grid",e.dependencies=["xAxis","yAxis"],e.layoutMode="box",e.defaultOption={show:!1,z:0,left:"10%",top:60,right:"10%",bottom:70,containLabel:!1,backgroundColor:"rgba(0,0,0,0)",borderWidth:1,borderColor:"#ccc"},e}(oi.A);var si=n(5357),li=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return(0,Bt.C6)(e,t),e.prototype.getCoordSysModel=function(){return this.getReferringComponents("grid",ce.US).models[0]},e.type="cartesian2dAxis",e}(oi.A);_.mixin(li,si.L);var hi={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:!0,onZeroAxisIndex:null,lineStyle:{color:"#6E7079",width:1,type:"solid"},symbol:["none","none"],symbolSize:[10,15]},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},splitLine:{show:!0,lineStyle:{color:["#E0E6F1"],width:1,type:"solid"}},splitArea:{show:!1,areaStyle:{color:["rgba(250,250,250,0.2)","rgba(210,219,238,0.2)"]}}},ci=_.merge({boundaryGap:!0,deduplication:null,splitLine:{show:!1},axisTick:{alignWithLabel:!1,interval:"auto"},axisLabel:{interval:"auto"}},hi),ui=_.merge({boundaryGap:[0,0],axisLine:{show:"auto"},axisTick:{show:"auto"},splitNumber:5,minorTick:{show:!1,splitNumber:5,length:3,lineStyle:{}},minorSplitLine:{show:!1,lineStyle:{color:"#F4F7FD",width:1}}},hi);const di={category:ci,value:ui,time:_.merge({splitNumber:6,axisLabel:{showMinLabel:!1,showMaxLabel:!1,rich:{primary:{fontWeight:"bold"}}},splitLine:{show:!1}},ui),log:_.defaults({logBase:10},ui)};var pi=n(5900),fi={value:1,category:1,time:1,log:1};function gi(t,e,n,i){(0,_.each)(fi,(function(r,o){var a=(0,_.merge)((0,_.merge)({},di[o],!0),i,!0),s=function(t){function n(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e+"Axis."+o,n}return(0,Bt.C6)(n,t),n.prototype.mergeDefaultAndTheme=function(t,e){var n=(0,Mn.ad)(this),i=n?(0,Mn.vs)(t):{},r=e.getTheme();(0,_.merge)(t,r.get(o+"Axis")),(0,_.merge)(t,this.getDefaultOption()),t.type=mi(t),n&&(0,Mn.YA)(t,i,n)},n.prototype.optionUpdated=function(){"category"===this.option.type&&(this.__ordinalMeta=pi.A.createByAxisModel(this))},n.prototype.getCategories=function(t){var e=this.option;if("category"===e.type)return t?e.data:this.__ordinalMeta.categories},n.prototype.getOrdinalMeta=function(){return this.__ordinalMeta},n.type=e+"Axis."+o,n.defaultOption=a,n}(n);t.registerComponentModel(s)})),t.registerSubTypeDefaulter(e+"Axis",mi)}function mi(t){return t.type||(t.data?"category":"value")}var vi=n(5067),yi=n(5202),_i=n(3968),xi=n(4070),bi=["x","y"];function wi(t){return"interval"===t.type||"time"===t.type}const Si=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="cartesian2d",e.dimensions=bi,e}return(0,Bt.C6)(e,t),e.prototype.calcAffineTransform=function(){this._transform=this._invTransform=null;var t=this.getAxis("x").scale,e=this.getAxis("y").scale;if(wi(t)&&wi(e)){var n=t.getExtent(),i=e.getExtent(),r=this.dataToPoint([n[0],i[0]]),o=this.dataToPoint([n[1],i[1]]),a=n[1]-n[0],s=i[1]-i[0];if(a&&s){var l=(o[0]-r[0])/a,h=(o[1]-r[1])/s,c=r[0]-n[0]*l,u=r[1]-i[0]*h,d=this._transform=[l,0,0,h,c,u];this._invTransform=(0,_i.invert)([],d)}}},e.prototype.getBaseAxis=function(){return this.getAxesByScale("ordinal")[0]||this.getAxesByScale("time")[0]||this.getAxis("x")},e.prototype.containPoint=function(t){var e=this.getAxis("x"),n=this.getAxis("y");return e.contain(e.toLocalCoord(t[0]))&&n.contain(n.toLocalCoord(t[1]))},e.prototype.containData=function(t){return this.getAxis("x").containData(t[0])&&this.getAxis("y").containData(t[1])},e.prototype.containZone=function(t,e){var n=this.dataToPoint(t),i=this.dataToPoint(e),r=this.getArea(),o=new Jn.A(n[0],n[1],i[0]-n[0],i[1]-n[1]);return r.intersect(o)},e.prototype.dataToPoint=function(t,e,n){n=n||[];var i=t[0],r=t[1];if(this._transform&&null!=i&&isFinite(i)&&null!=r&&isFinite(r))return(0,xi.applyTransform)(n,t,this._transform);var o=this.getAxis("x"),a=this.getAxis("y");return n[0]=o.toGlobalCoord(o.dataToCoord(i,e)),n[1]=a.toGlobalCoord(a.dataToCoord(r,e)),n},e.prototype.clampData=function(t,e){var n=this.getAxis("x").scale,i=this.getAxis("y").scale,r=n.getExtent(),o=i.getExtent(),a=n.parse(t[0]),s=i.parse(t[1]);return(e=e||[])[0]=Math.min(Math.max(Math.min(r[0],r[1]),a),Math.max(r[0],r[1])),e[1]=Math.min(Math.max(Math.min(o[0],o[1]),s),Math.max(o[0],o[1])),e},e.prototype.pointToData=function(t,e){var n=[];if(this._invTransform)return(0,xi.applyTransform)(n,t,this._invTransform);var i=this.getAxis("x"),r=this.getAxis("y");return n[0]=i.coordToData(i.toLocalCoord(t[0]),e),n[1]=r.coordToData(r.toLocalCoord(t[1]),e),n},e.prototype.getOtherAxis=function(t){return this.getAxis("x"===t.dim?"y":"x")},e.prototype.getArea=function(t){t=t||0;var e=this.getAxis("x").getGlobalExtent(),n=this.getAxis("y").getGlobalExtent(),i=Math.min(e[0],e[1])-t,r=Math.min(n[0],n[1])-t,o=Math.max(e[0],e[1])-i+t,a=Math.max(n[0],n[1])-r+t;return new Jn.A(i,r,o,a)},e}(yi.A);var Ti=n(7994),Mi=function(t){function e(e,n,i,r,o){var a=t.call(this,e,n,i)||this;return a.index=0,a.type=r||"value",a.position=o||"bottom",a}return(0,Bt.C6)(e,t),e.prototype.isHorizontal=function(){var t=this.position;return"top"===t||"bottom"===t},e.prototype.getGlobalExtent=function(t){var e=this.getExtent();return e[0]=this.toGlobalCoord(e[0]),e[1]=this.toGlobalCoord(e[1]),t&&e[0]>e[1]&&e.reverse(),e},e.prototype.pointToData=function(t,e){return this.coordToData(this.toLocalCoord(t["x"===this.dim?0:1]),e)},e.prototype.setCategorySortInfo=function(t){if("category"!==this.type)return!1;this.model.option.categorySortInfo=t,this.scale.setSortInfo(t)},e}(Ti.A);const Ai=Mi;function Ci(t,e,n){n=n||{};var i=t.coordinateSystem,r=e.axis,o={},a=r.getAxesOnZeroOf()[0],s=r.position,l=a?"onZero":s,h=r.dim,c=i.getRect(),u=[c.x,c.x+c.width,c.y,c.y+c.height],d={left:0,right:1,top:0,bottom:1,onZero:2},p=e.get("offset")||0,f="x"===h?[u[2]-p,u[3]+p]:[u[0]-p,u[1]+p];if(a){var g=a.toGlobalCoord(a.dataToCoord(0));f[d.onZero]=Math.max(Math.min(g,f[1]),f[0])}o.position=["y"===h?f[d[l]]:u[0],"x"===h?f[d[l]]:u[3]],o.rotation=Math.PI/2*("x"===h?0:1);o.labelDirection=o.tickDirection=o.nameDirection={top:-1,bottom:1,left:-1,right:1}[s],o.labelOffset=a?f[d[s]]-f[d.onZero]:0,e.get(["axisTick","inside"])&&(o.tickDirection=-o.tickDirection),_.retrieve(n.labelInside,e.get(["axisLabel","inside"]))&&(o.labelDirection=-o.labelDirection);var m=e.get(["axisLabel","rotate"]);return o.labelRotate="top"===l?-m:m,o.z2=1,o}function Ii(t){return"cartesian2d"===t.get("coordinateSystem")}function Ei(t){var e={xAxisModel:null,yAxisModel:null};return _.each(e,(function(n,i){var r=i.replace(/Model$/,""),o=t.getReferringComponents(r,ce.US).models[0];e[i]=o})),e}var ki=n(3115),Li=n(2670),Di=Math.log;function Pi(t,e,n){var i=Li.A.prototype,r=i.getTicks.call(n),o=i.getTicks.call(n,!0),a=r.length-1,s=i.getInterval.call(n),l=(0,vi.Rx)(t,e),h=l.extent,c=l.fixMin,u=l.fixMax;if("log"===t.type){var d=Di(t.base);h=[Di(h[0])/d,Di(h[1])/d]}t.setExtent(h[0],h[1]),t.calcNiceExtent({splitNumber:a,fixMin:c,fixMax:u});var p=i.getExtent.call(t);c&&(h[0]=p[0]),u&&(h[1]=p[1]);var f=i.getInterval.call(t),g=h[0],m=h[1];if(c&&u)f=(m-g)/a;else if(c)for(m=h[0]+f*a;m<h[1]&&isFinite(m)&&isFinite(h[1]);)f=(0,ki.kH)(f),m=h[0]+f*a;else if(u)for(g=h[1]-f*a;g>h[0]&&isFinite(g)&&isFinite(h[0]);)f=(0,ki.kH)(f),g=h[1]-f*a;else{t.getTicks().length-1>a&&(f=(0,ki.kH)(f));var v=f*a;m=Math.ceil(h[1]/f)*f,(g=(0,Se.LI)(m-v))<0&&h[0]>=0?(g=0,m=(0,Se.LI)(v)):m>0&&h[1]<=0&&(m=0,g=-(0,Se.LI)(v))}var y=(r[0].value-o[0].value)/s,_=(r[a].value-o[a].value)/s;i.setExtent.call(t,g+f*y,m+f*_),i.setInterval.call(t,f),(y||_)&&i.setNiceExtent.call(t,g+f,m-f)}var Ri=function(){function t(t,e,n){this.type="grid",this._coordsMap={},this._coordsList=[],this._axesMap={},this._axesList=[],this.axisPointerEnabled=!0,this.dimensions=bi,this._initCartesian(t,e,n),this.model=t}return t.prototype.getRect=function(){return this._rect},t.prototype.update=function(t,e){var n=this._axesMap;function i(t){var e,n=(0,_.keys)(t),i=n.length;if(i){for(var r=[],o=i-1;o>=0;o--){var a=t[+n[o]],s=a.model,l=a.scale;(0,ki.rf)(l)&&s.get("alignTicks")&&null==s.get("interval")?r.push(a):((0,vi.af)(l,s),(0,ki.rf)(l)&&(e=a))}r.length&&(e||(e=r.pop(),(0,vi.af)(e.scale,e.model)),(0,_.each)(r,(function(t){Pi(t.scale,t.model,e.scale)})))}}this._updateScale(t,this.model),i(n.x),i(n.y);var r={};(0,_.each)(n.x,(function(t){Ni(n,"y",t,r)})),(0,_.each)(n.y,(function(t){Ni(n,"x",t,r)})),this.resize(this.model,e)},t.prototype.resize=function(t,e,n){var i=t.getBoxLayoutParams(),r=!n&&t.get("containLabel"),o=(0,Mn.dV)(i,{width:e.getWidth(),height:e.getHeight()});this._rect=o;var a=this._axesList;function s(){(0,_.each)(a,(function(t){var e=t.isHorizontal(),n=e?[0,o.width]:[0,o.height],i=t.inverse?1:0;t.setExtent(n[i],n[1-i]),function(t,e){var n=t.getExtent(),i=n[0]+n[1];t.toGlobalCoord="x"===t.dim?function(t){return t+e}:function(t){return i-t+e},t.toLocalCoord="x"===t.dim?function(t){return t-e}:function(t){return i-t+e}}(t,e?o.x:o.y)}))}s(),r&&((0,_.each)(a,(function(t){if(!t.model.get(["axisLabel","inside"])){var e=(0,vi.Og)(t);if(e){var n=t.isHorizontal()?"height":"width",i=t.model.get(["axisLabel","margin"]);o[n]-=e[n]+i,"top"===t.position?o.y+=e.height+i:"left"===t.position&&(o.x+=e.width+i)}}})),s()),(0,_.each)(this._coordsList,(function(t){t.calcAffineTransform()}))},t.prototype.getAxis=function(t,e){var n=this._axesMap[t];if(null!=n)return n[e||0]},t.prototype.getAxes=function(){return this._axesList.slice()},t.prototype.getCartesian=function(t,e){if(null!=t&&null!=e){var n="x"+t+"y"+e;return this._coordsMap[n]}(0,_.isObject)(t)&&(e=t.yAxisIndex,t=t.xAxisIndex);for(var i=0,r=this._coordsList;i<r.length;i++)if(r[i].getAxis("x").index===t||r[i].getAxis("y").index===e)return r[i]},t.prototype.getCartesians=function(){return this._coordsList.slice()},t.prototype.convertToPixel=function(t,e,n){var i=this._findConvertTarget(e);return i.cartesian?i.cartesian.dataToPoint(n):i.axis?i.axis.toGlobalCoord(i.axis.dataToCoord(n)):null},t.prototype.convertFromPixel=function(t,e,n){var i=this._findConvertTarget(e);return i.cartesian?i.cartesian.pointToData(n):i.axis?i.axis.coordToData(i.axis.toLocalCoord(n)):null},t.prototype._findConvertTarget=function(t){var e,n,i=t.seriesModel,r=t.xAxisModel||i&&i.getReferringComponents("xAxis",ce.US).models[0],o=t.yAxisModel||i&&i.getReferringComponents("yAxis",ce.US).models[0],a=t.gridModel,s=this._coordsList;if(i)e=i.coordinateSystem,(0,_.indexOf)(s,e)<0&&(e=null);else if(r&&o)e=this.getCartesian(r.componentIndex,o.componentIndex);else if(r)n=this.getAxis("x",r.componentIndex);else if(o)n=this.getAxis("y",o.componentIndex);else if(a){a.coordinateSystem===this&&(e=this._coordsList[0])}return{cartesian:e,axis:n}},t.prototype.containPoint=function(t){var e=this._coordsList[0];if(e)return e.containPoint(t)},t.prototype._initCartesian=function(t,e,n){var i=this,r=this,o={left:!1,right:!1,top:!1,bottom:!1},a={x:{},y:{}},s={x:0,y:0};if(e.eachComponent("xAxis",l("x"),this),e.eachComponent("yAxis",l("y"),this),!s.x||!s.y)return this._axesMap={},void(this._axesList=[]);function l(e){return function(n,i){if(Oi(n,t)){var l=n.get("position");"x"===e?"top"!==l&&"bottom"!==l&&(l=o.bottom?"top":"bottom"):"left"!==l&&"right"!==l&&(l=o.left?"right":"left"),o[l]=!0;var h=new Ai(e,(0,vi.f$)(n),[0,0],n.get("type"),l),c="category"===h.type;h.onBand=c&&n.get("boundaryGap"),h.inverse=n.get("inverse"),n.axis=h,h.model=n,h.grid=r,h.index=i,r._axesList.push(h),a[e][i]=h,s[e]++}}}this._axesMap=a,(0,_.each)(a.x,(function(e,n){(0,_.each)(a.y,(function(r,o){var a="x"+n+"y"+o,s=new Si(a);s.master=i,s.model=t,i._coordsMap[a]=s,i._coordsList.push(s),s.addAxis(e),s.addAxis(r)}))}))},t.prototype._updateScale=function(t,e){function n(t,e){(0,_.each)((0,vi.wq)(t,e.dim),(function(n){e.scale.unionExtentFromData(t,n)}))}(0,_.each)(this._axesList,(function(t){if(t.scale.setExtent(1/0,-1/0),"category"===t.type){var e=t.model.get("categorySortInfo");t.scale.setSortInfo(e)}})),t.eachSeries((function(t){if(Ii(t)){var i=Ei(t),r=i.xAxisModel,o=i.yAxisModel;if(!Oi(r,e)||!Oi(o,e))return;var a=this.getCartesian(r.componentIndex,o.componentIndex),s=t.getData(),l=a.getAxis("x"),h=a.getAxis("y");n(s,l),n(s,h)}}),this)},t.prototype.getTooltipAxes=function(t){var e=[],n=[];return(0,_.each)(this.getCartesians(),(function(i){var r=null!=t&&"auto"!==t?i.getAxis(t):i.getBaseAxis(),o=i.getOtherAxis(r);(0,_.indexOf)(e,r)<0&&e.push(r),(0,_.indexOf)(n,o)<0&&n.push(o)})),{baseAxes:e,otherAxes:n}},t.create=function(e,n){var i=[];return e.eachComponent("grid",(function(r,o){var a=new t(r,e,n);a.name="grid_"+o,a.resize(r,n,!0),r.coordinateSystem=a,i.push(a)})),e.eachSeries((function(t){if(Ii(t)){var e=Ei(t),n=e.xAxisModel,i=e.yAxisModel;0;var r=n.getCoordSysModel().coordinateSystem;t.coordinateSystem=r.getCartesian(n.componentIndex,i.componentIndex)}})),i},t.dimensions=bi,t}();function Oi(t,e){return t.getCoordSysModel()===e}function Ni(t,e,n,i){n.getAxesOnZeroOf=function(){return r?[r]:[]};var r,o=t[e],a=n.model,s=a.get(["axisLine","onZero"]),l=a.get(["axisLine","onZeroAxisIndex"]);if(s){if(null!=l)Fi(o[l])&&(r=o[l]);else for(var h in o)if(o.hasOwnProperty(h)&&Fi(o[h])&&!i[c(o[h])]){r=o[h];break}r&&(i[c(r)]=!0)}function c(t){return t.dim+"_"+t.index}}function Fi(t){return t&&"category"!==t.type&&"time"!==t.type&&(0,vi.JJ)(t)}const Bi=Ri;var zi=n(5840),Gi=n(6217),Vi=Math.PI,ji=function(){function t(t,e){this.group=new jt.A,this.opt=e,this.axisModel=t,(0,_.defaults)(e,{labelOffset:0,nameDirection:1,tickDirection:1,labelDirection:1,silent:!0,handleAutoShown:function(){return!0}});var n=new jt.A({x:e.position[0],y:e.position[1],rotation:e.rotation});n.updateTransform(),this._transformGroup=n}return t.prototype.hasBuilder=function(t){return!!Hi[t]},t.prototype.add=function(t){Hi[t](this.opt,this.axisModel,this.group,this._transformGroup)},t.prototype.getGroup=function(){return this.group},t.innerTextLayout=function(t,e,n){var i,r,o=(0,Se._7)(e-t);return(0,Se.dh)(o)?(r=n>0?"top":"bottom",i="center"):(0,Se.dh)(o-Vi)?(r=n>0?"bottom":"top",i="center"):(r="middle",i=o>0&&o<Vi?n>0?"right":"left":n>0?"left":"right"),{rotation:o,textAlign:i,textVerticalAlign:r}},t.makeAxisEventDataBase=function(t){var e={componentType:t.mainType,componentIndex:t.componentIndex};return e[t.mainType+"Index"]=t.componentIndex,e},t.isLabelSilent=function(t){var e=t.get("tooltip");return t.get("silent")||!(t.get("triggerEvent")||e&&e.show)},t}(),Hi={axisLine:function(t,e,n,i){var r=e.get(["axisLine","show"]);if("auto"===r&&t.handleAutoShown&&(r=t.handleAutoShown("axisLine")),r){var o=e.axis.getExtent(),a=i.transform,s=[o[0],0],l=[o[1],0],h=s[0]>l[0];a&&((0,xi.applyTransform)(s,s,a),(0,xi.applyTransform)(l,l,a));var c=(0,_.extend)({lineCap:"round"},e.getModel(["axisLine","lineStyle"]).getLineStyle()),u=new zi.A({shape:{x1:s[0],y1:s[1],x2:l[0],y2:l[1]},style:c,strokeContainThreshold:t.strokeContainThreshold||5,silent:!0,z2:1});qt.subPixelOptimizeLine(u.shape,u.style.lineWidth),u.anid="line",n.add(u);var d=e.get(["axisLine","symbol"]);if(null!=d){var p=e.get(["axisLine","symbolSize"]);(0,_.isString)(d)&&(d=[d,d]),((0,_.isString)(p)||(0,_.isNumber)(p))&&(p=[p,p]);var f=(0,Vt.hV)(e.get(["axisLine","symbolOffset"])||0,p),g=p[0],m=p[1];(0,_.each)([{rotate:t.rotation+Math.PI/2,offset:f[0],r:0},{rotate:t.rotation-Math.PI/2,offset:f[1],r:Math.sqrt((s[0]-l[0])*(s[0]-l[0])+(s[1]-l[1])*(s[1]-l[1]))}],(function(e,i){if("none"!==d[i]&&null!=d[i]){var r=(0,Vt.v5)(d[i],-g/2,-m/2,g,m,c.stroke,!0),o=e.r+e.offset,a=h?l:s;r.attr({rotation:e.rotate,x:a[0]+o*Math.cos(t.rotation),y:a[1]-o*Math.sin(t.rotation),silent:!0,z2:11}),n.add(r)}}))}}},axisTickLabel:function(t,e,n,i){var r=function(t,e,n,i){var r=n.axis,o=n.getModel("axisTick"),a=o.get("show");"auto"===a&&i.handleAutoShown&&(a=i.handleAutoShown("axisTick"));if(!a||r.scale.isBlank())return;for(var s=o.getModel("lineStyle"),l=i.tickDirection*o.get("length"),h=Xi(r.getTicksCoords(),e.transform,l,(0,_.defaults)(s.getLineStyle(),{stroke:n.get(["axisLine","lineStyle","color"])}),"ticks"),c=0;c<h.length;c++)t.add(h[c]);return h}(n,i,e,t),o=function(t,e,n,i){var r=n.axis,o=(0,_.retrieve)(i.axisLabelShow,n.get(["axisLabel","show"]));if(!o||r.scale.isBlank())return;var a=n.getModel("axisLabel"),s=a.get("margin"),l=r.getViewLabels(),h=((0,_.retrieve)(i.labelRotate,a.get("rotate"))||0)*Vi/180,c=ji.innerTextLayout(i.rotation,h,i.labelDirection),u=n.getCategories&&n.getCategories(!0),d=[],p=ji.isLabelSilent(n),f=n.get("triggerEvent");return(0,_.each)(l,(function(o,h){var g="ordinal"===r.scale.type?r.scale.getRawOrdinalNumber(o.tickValue):o.tickValue,m=o.formattedLabel,v=o.rawLabel,y=a;if(u&&u[g]){var x=u[g];(0,_.isObject)(x)&&x.textStyle&&(y=new Gi.A(x.textStyle,a,n.ecModel))}var b=y.getTextColor()||n.get(["axisLine","lineStyle","color"]),w=r.dataToCoord(g),S=y.getShallow("align",!0)||c.textAlign,T=(0,_.retrieve2)(y.getShallow("alignMinLabel",!0),S),M=(0,_.retrieve2)(y.getShallow("alignMaxLabel",!0),S),A=y.getShallow("verticalAlign",!0)||y.getShallow("baseline",!0)||c.textVerticalAlign,C=(0,_.retrieve2)(y.getShallow("verticalAlignMinLabel",!0),A),I=(0,_.retrieve2)(y.getShallow("verticalAlignMaxLabel",!0),A),E=new Z.Ay({x:w,y:i.labelOffset+i.labelDirection*s,rotation:c.rotation,silent:p,z2:10+(o.level||0),style:(0,Jt.VB)(y,{text:m,align:0===h?T:h===l.length-1?M:S,verticalAlign:0===h?C:h===l.length-1?I:A,fill:(0,_.isFunction)(b)?b("category"===r.type?v:"value"===r.type?g+"":g,h):b})});if(E.anid="label_"+g,f){var k=ji.makeAxisEventDataBase(n);k.targetType="axisLabel",k.value=v,k.tickIndex=h,"category"===r.type&&(k.dataIndex=g),(0,Xt.z)(E).eventData=k}e.add(E),E.updateTransform(),d.push(E),t.add(E),E.decomposeTransform()})),d}(n,i,e,t);if(function(t,e,n){if((0,vi.PJ)(t.axis))return;var i=t.get(["axisLabel","showMinLabel"]),r=t.get(["axisLabel","showMaxLabel"]);e=e||[],n=n||[];var o=e[0],a=e[1],s=e[e.length-1],l=e[e.length-2],h=n[0],c=n[1],u=n[n.length-1],d=n[n.length-2];!1===i?(Wi(o),Wi(h)):Ui(o,a)&&(i?(Wi(a),Wi(c)):(Wi(o),Wi(h)));!1===r?(Wi(s),Wi(u)):Ui(l,s)&&(r?(Wi(l),Wi(d)):(Wi(s),Wi(u)))}(e,o,r),function(t,e,n,i){var r=n.axis,o=n.getModel("minorTick");if(!o.get("show")||r.scale.isBlank())return;var a=r.getMinorTicksCoords();if(!a.length)return;for(var s=o.getModel("lineStyle"),l=i*o.get("length"),h=(0,_.defaults)(s.getLineStyle(),(0,_.defaults)(n.getModel("axisTick").getLineStyle(),{stroke:n.get(["axisLine","lineStyle","color"])})),c=0;c<a.length;c++)for(var u=Xi(a[c],e.transform,l,h,"minorticks_"+c),d=0;d<u.length;d++)t.add(u[d])}(n,i,e,t.tickDirection),e.get(["axisLabel","hideOverlap"])){var a=(0,Nn.os)((0,_.map)(o,(function(t){return{label:t,priority:t.z2,defaultAttr:{ignore:t.ignore}}})));(0,Nn.If)(a)}},axisName:function(t,e,n,i){var r=(0,_.retrieve)(t.axisName,e.get("name"));if(r){var o,a,s=e.get("nameLocation"),l=t.nameDirection,h=e.getModel("nameTextStyle"),c=e.get("nameGap")||0,u=e.axis.getExtent(),d=u[0]>u[1]?-1:1,p=["start"===s?u[0]-d*c:"end"===s?u[1]+d*c:(u[0]+u[1])/2,qi(s)?t.labelOffset+l*c:0],f=e.get("nameRotate");null!=f&&(f=f*Vi/180),qi(s)?o=ji.innerTextLayout(t.rotation,null!=f?f:t.rotation,l):(o=function(t,e,n,i){var r,o,a=(0,Se._7)(n-t),s=i[0]>i[1],l="start"===e&&!s||"start"!==e&&s;(0,Se.dh)(a-Vi/2)?(o=l?"bottom":"top",r="center"):(0,Se.dh)(a-1.5*Vi)?(o=l?"top":"bottom",r="center"):(o="middle",r=a<1.5*Vi&&a>Vi/2?l?"left":"right":l?"right":"left");return{rotation:a,textAlign:r,textVerticalAlign:o}}(t.rotation,s,f||0,u),null!=(a=t.axisNameAvailableWidth)&&(a=Math.abs(a/Math.sin(o.rotation)),!isFinite(a)&&(a=null)));var g=h.getFont(),m=e.get("nameTruncate",!0)||{},v=m.ellipsis,y=(0,_.retrieve)(t.nameTruncateMaxWidth,m.maxWidth,a),x=new Z.Ay({x:p[0],y:p[1],rotation:o.rotation,silent:ji.isLabelSilent(e),style:(0,Jt.VB)(h,{text:r,font:g,overflow:"truncate",width:y,ellipsis:v,fill:h.getTextColor()||e.get(["axisLine","lineStyle","color"]),align:h.get("align")||o.textAlign,verticalAlign:h.get("verticalAlign")||o.textVerticalAlign}),z2:1});if(qt.setTooltipConfig({el:x,componentModel:e,itemName:r}),x.__fullText=r,x.anid="name",e.get("triggerEvent")){var b=ji.makeAxisEventDataBase(e);b.targetType="axisName",b.name=r,(0,Xt.z)(x).eventData=b}i.add(x),x.updateTransform(),n.add(x),x.decomposeTransform()}}};function Wi(t){t&&(t.ignore=!0)}function Ui(t,e){var n=t&&t.getBoundingRect().clone(),i=e&&e.getBoundingRect().clone();if(n&&i){var r=_i.identity([]);return _i.rotate(r,r,-t.rotation),n.applyTransform(_i.mul([],r,t.getLocalTransform())),i.applyTransform(_i.mul([],r,e.getLocalTransform())),n.intersect(i)}}function qi(t){return"middle"===t||"center"===t}function Xi(t,e,n,i,r){for(var o=[],a=[],s=[],l=0;l<t.length;l++){var h=t[l].coord;a[0]=h,a[1]=0,s[0]=h,s[1]=n,e&&((0,xi.applyTransform)(a,a,e),(0,xi.applyTransform)(s,s,e));var c=new zi.A({shape:{x1:a[0],y1:a[1],x2:s[0],y2:s[1]},style:i,z2:2,autoBatch:!0,silent:!0});qt.subPixelOptimizeLine(c.shape,c.style.lineWidth),c.anid=r+"_"+t[l].tickValue,o.push(c)}return o}const Yi=ji;function Zi(t,e){var n={axesInfo:{},seriesInvolved:!1,coordSysAxesInfo:{},coordSysMap:{}};return function(t,e,n){var i=e.getComponent("tooltip"),r=e.getComponent("axisPointer"),o=r.get("link",!0)||[],a=[];(0,_.each)(n.getCoordinateSystems(),(function(n){if(n.axisPointerEnabled){var s=Qi(n.model),l=t.coordSysAxesInfo[s]={};t.coordSysMap[s]=n;var h=n.model.getModel("tooltip",i);if((0,_.each)(n.getAxes(),(0,_.curry)(p,!1,null)),n.getTooltipAxes&&i&&h.get("show")){var c="axis"===h.get("trigger"),u="cross"===h.get(["axisPointer","type"]),d=n.getTooltipAxes(h.get(["axisPointer","axis"]));(c||u)&&(0,_.each)(d.baseAxes,(0,_.curry)(p,!u||"cross",c)),u&&(0,_.each)(d.otherAxes,(0,_.curry)(p,"cross",!1))}}function p(i,s,c){var u=c.model.getModel("axisPointer",r),d=u.get("show");if(d&&("auto"!==d||i||Ji(u))){null==s&&(s=u.get("triggerTooltip")),u=i?function(t,e,n,i,r,o){var a=e.getModel("axisPointer"),s=["type","snap","lineStyle","shadowStyle","label","animation","animationDurationUpdate","animationEasingUpdate","z"],l={};(0,_.each)(s,(function(t){l[t]=(0,_.clone)(a.get(t))})),l.snap="category"!==t.type&&!!o,"cross"===a.get("type")&&(l.type="line");var h=l.label||(l.label={});if(null==h.show&&(h.show=!1),"cross"===r){var c=a.get(["label","show"]);if(h.show=null==c||c,!o){var u=l.lineStyle=a.get("crossStyle");u&&(0,_.defaults)(h,u.textStyle)}}return t.model.getModel("axisPointer",new Gi.A(l,n,i))}(c,h,r,e,i,s):u;var p=u.get("snap"),f=u.get("triggerEmphasis"),g=Qi(c.model),m=s||p||"category"===c.type,v=t.axesInfo[g]={key:g,axis:c,coordSys:n,axisPointerModel:u,triggerTooltip:s,triggerEmphasis:f,involveSeries:m,snap:p,useHandle:Ji(u),seriesModels:[],linkGroup:null};l[g]=v,t.seriesInvolved=t.seriesInvolved||m;var y=function(t,e){for(var n=e.model,i=e.dim,r=0;r<t.length;r++){var o=t[r]||{};if($i(o[i+"AxisId"],n.id)||$i(o[i+"AxisIndex"],n.componentIndex)||$i(o[i+"AxisName"],n.name))return r}}(o,c);if(null!=y){var x=a[y]||(a[y]={axesInfo:{}});x.axesInfo[g]=v,x.mapper=o[y].mapper,v.linkGroup=x}}}}))}(n,t,e),n.seriesInvolved&&function(t,e){e.eachSeries((function(e){var n=e.coordinateSystem,i=e.get(["tooltip","trigger"],!0),r=e.get(["tooltip","show"],!0);n&&"none"!==i&&!1!==i&&"item"!==i&&!1!==r&&!1!==e.get(["axisPointer","show"],!0)&&(0,_.each)(t.coordSysAxesInfo[Qi(n.model)],(function(t){var i=t.axis;n.getAxis(i.dim)===i&&(t.seriesModels.push(e),null==t.seriesDataCount&&(t.seriesDataCount=0),t.seriesDataCount+=e.getData().count())}))}))}(n,t),n}function $i(t,e){return"all"===t||(0,_.isArray)(t)&&(0,_.indexOf)(t,e)>=0||t===e}function Ki(t){var e=(t.ecModel.getComponent("axisPointer")||{}).coordSysAxesInfo;return e&&e.axesInfo[Qi(t)]}function Ji(t){return!!t.get(["handle","show"])}function Qi(t){return t.type+"||"+t.id}var tr={};const er=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return(0,Bt.C6)(e,t),e.prototype.render=function(e,n,i,r){this.axisPointerClass&&function(t){var e=Ki(t);if(e){var n=e.axisPointerModel,i=e.axis.scale,r=n.option,o=n.get("status"),a=n.get("value");null!=a&&(a=i.parse(a));var s=Ji(n);null==o&&(r.status=s?"show":"hide");var l=i.getExtent().slice();l[0]>l[1]&&l.reverse(),(null==a||a>l[1])&&(a=l[1]),a<l[0]&&(a=l[0]),r.value=a,s&&(r.status=e.axis.scale.isBlank()?"hide":"show")}}(e),t.prototype.render.apply(this,arguments),this._doUpdateAxisPointerClass(e,i,!0)},e.prototype.updateAxisPointer=function(t,e,n,i){this._doUpdateAxisPointerClass(t,n,!1)},e.prototype.remove=function(t,e){var n=this._axisPointer;n&&n.remove(e)},e.prototype.dispose=function(e,n){this._disposeAxisPointer(n),t.prototype.dispose.apply(this,arguments)},e.prototype._doUpdateAxisPointerClass=function(t,n,i){var r=e.getAxisPointerClass(this.axisPointerClass);if(r){var o=function(t){var e=Ki(t);return e&&e.axisPointerModel}(t);o?(this._axisPointer||(this._axisPointer=new r)).render(t,o,n,i):this._disposeAxisPointer(n)}},e.prototype._disposeAxisPointer=function(t){this._axisPointer&&this._axisPointer.dispose(t),this._axisPointer=null},e.registerAxisPointerClass=function(t,e){tr[t]=e},e.getAxisPointerClass=function(t){return t&&tr[t]},e.type="axis",e}(ri.A);var nr=(0,ce.$r)();function ir(t,e,n,i){var r=n.axis;if(!r.scale.isBlank()){var o=n.getModel("splitArea"),a=o.getModel("areaStyle"),s=a.get("color"),l=i.coordinateSystem.getRect(),h=r.getTicksCoords({tickModel:o,clamp:!0});if(h.length){var c=s.length,u=nr(t).splitAreaColors,d=_.createHashMap(),p=0;if(u)for(var f=0;f<h.length;f++){var g=u.get(h[f].tickValue);if(null!=g){p=(g+(c-1)*f)%c;break}}var m=r.toGlobalCoord(h[0].coord),v=a.getAreaStyle();s=_.isArray(s)?s:[s];for(f=1;f<h.length;f++){var y=r.toGlobalCoord(h[f].coord),x=void 0,b=void 0,w=void 0,S=void 0;r.isHorizontal()?(x=m,b=l.y,w=y-x,S=l.height,m=x+w):(x=l.x,b=m,w=l.width,m=b+(S=y-b));var T=h[f-1].tickValue;null!=T&&d.set(T,p),e.add(new be.A({anid:null!=T?"area_"+T:null,shape:{x:x,y:b,width:w,height:S},style:_.defaults({fill:s[p]},v),autoBatch:!0,silent:!0})),p=(p+1)%c}nr(t).splitAreaColors=d}}}function rr(t){nr(t).splitAreaColors=null}var or=["axisLine","axisTickLabel","axisName"],ar=["splitArea","splitLine","minorSplitLine"],sr=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n.axisPointerClass="CartesianAxisPointer",n}return(0,Bt.C6)(e,t),e.prototype.render=function(e,n,i,r){this.group.removeAll();var o=this._axisGroup;if(this._axisGroup=new jt.A,this.group.add(this._axisGroup),e.get("show")){var a=e.getCoordSysModel(),s=Ci(a,e),l=new Yi(e,_.extend({handleAutoShown:function(t){for(var n=a.coordinateSystem.getCartesians(),i=0;i<n.length;i++)if((0,ki.rf)(n[i].getOtherAxis(e.axis).scale))return!0;return!1}},s));_.each(or,l.add,l),this._axisGroup.add(l.getGroup()),_.each(ar,(function(t){e.get([t,"show"])&&lr[t](this,this._axisGroup,e,a)}),this),r&&"changeAxisOrder"===r.type&&r.isInitSort||qt.groupTransition(o,this._axisGroup,e),t.prototype.render.call(this,e,n,i,r)}},e.prototype.remove=function(){rr(this)},e.type="cartesianAxis",e}(er),lr={splitLine:function(t,e,n,i){var r=n.axis;if(!r.scale.isBlank()){var o=n.getModel("splitLine"),a=o.getModel("lineStyle"),s=a.get("color");s=_.isArray(s)?s:[s];for(var l=i.coordinateSystem.getRect(),h=r.isHorizontal(),c=0,u=r.getTicksCoords({tickModel:o}),d=[],p=[],f=a.getLineStyle(),g=0;g<u.length;g++){var m=r.toGlobalCoord(u[g].coord);h?(d[0]=m,d[1]=l.y,p[0]=m,p[1]=l.y+l.height):(d[0]=l.x,d[1]=m,p[0]=l.x+l.width,p[1]=m);var v=c++%s.length,y=u[g].tickValue,x=new zi.A({anid:null!=y?"line_"+u[g].tickValue:null,autoBatch:!0,shape:{x1:d[0],y1:d[1],x2:p[0],y2:p[1]},style:_.defaults({stroke:s[v]},f),silent:!0});qt.subPixelOptimizeLine(x.shape,f.lineWidth),e.add(x)}}},minorSplitLine:function(t,e,n,i){var r=n.axis,o=n.getModel("minorSplitLine").getModel("lineStyle"),a=i.coordinateSystem.getRect(),s=r.isHorizontal(),l=r.getMinorTicksCoords();if(l.length)for(var h=[],c=[],u=o.getLineStyle(),d=0;d<l.length;d++)for(var p=0;p<l[d].length;p++){var f=r.toGlobalCoord(l[d][p].coord);s?(h[0]=f,h[1]=a.y,c[0]=f,c[1]=a.y+a.height):(h[0]=a.x,h[1]=f,c[0]=a.x+a.width,c[1]=f);var g=new zi.A({anid:"minor_line_"+l[d][p].tickValue,autoBatch:!0,shape:{x1:h[0],y1:h[1],x2:c[0],y2:c[1]},style:u,silent:!0});qt.subPixelOptimizeLine(g.shape,u.lineWidth),e.add(g)}},splitArea:function(t,e,n,i){ir(t,e,n,i)}},hr=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return(0,Bt.C6)(e,t),e.type="xAxis",e}(sr),cr=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type=hr.type,e}return(0,Bt.C6)(e,t),e.type="yAxis",e}(sr);var ur=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="grid",e}return(0,Bt.C6)(e,t),e.prototype.render=function(t,e){this.group.removeAll(),t.get("show")&&this.group.add(new be.A({shape:t.coordinateSystem.getRect(),style:(0,_.defaults)({fill:t.get("backgroundColor")},t.getItemStyle()),silent:!0,z2:-1}))},e.type="grid",e}(ri.A),dr={offset:0};function pr(t){t.registerComponentView(ur),t.registerComponentModel(ai),t.registerCoordinateSystem("cartesian2d",Bi),gi(t,"x",li,dr),gi(t,"y",li,dr),t.registerComponentView(hr),t.registerComponentView(cr),t.registerPreprocessor((function(t){t.xAxis&&t.yAxis&&!t.grid&&(t.grid={})}))}function fr(t){t.eachSeriesByType("radar",(function(t){var e=t.getData(),n=[],i=t.coordinateSystem;if(i){var r=i.getIndicatorAxes();_.each(r,(function(t,o){e.each(e.mapDimension(r[o].dim),(function(t,e){n[e]=n[e]||[];var r=i.dataToPoint(t,o);n[e][o]=gr(r)?r:mr(i)}))})),e.each((function(t){var r=_.find(n[t],(function(t){return gr(t)}))||mr(i);n[t].push(r.slice()),e.setItemLayout(t,n[t])}))}}))}function gr(t){return!isNaN(t[0])&&!isNaN(t[1])}function mr(t){return[t.cx,t.cy]}function vr(t){var e=t.polar;if(e){_.isArray(e)||(e=[e]);var n=[];_.each(e,(function(e,i){e.indicator?(e.type&&!e.shape&&(e.shape=e.type),t.radar=t.radar||[],_.isArray(t.radar)||(t.radar=[t.radar]),t.radar.push(e)):n.push(e)})),t.polar=n}_.each(t.series,(function(t){t&&"radar"===t.type&&t.polarIndex&&(t.radarIndex=t.polarIndex)}))}var yr=n(4942),_r=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return(0,Bt.C6)(e,t),e.prototype.render=function(t,e,n){var i=t.coordinateSystem,r=this.group,o=t.getData(),a=this._data;function s(t,e){var n=t.getItemVisual(e,"symbol")||"circle";if("none"!==n){var i=Vt.xU(t.getItemVisual(e,"symbolSize")),r=Vt.v5(n,-1,-1,2,2),o=t.getItemVisual(e,"symbolRotate")||0;return r.attr({style:{strokeNoScale:!0},z2:100,scaleX:i[0]/2,scaleY:i[1]/2,rotation:o*Math.PI/180||0}),r}}function h(e,n,i,r,o,a){i.removeAll();for(var l=0;l<n.length-1;l++){var h=s(r,o);h&&(h.__dimIdx=l,e[l]?(h.setPosition(e[l]),qt[a?"initProps":"updateProps"](h,{x:n[l][0],y:n[l][1]},t,o)):h.setPosition(n[l]),i.add(h))}}function c(t){return _.map(t,(function(t){return[i.cx,i.cy]}))}o.diff(a).add((function(e){var n=o.getItemLayout(e);if(n){var i=new yr.A,r=new Pn.A,a={shape:{points:n}};i.shape.points=c(n),r.shape.points=c(n),Ut.LW(i,a,t,e),Ut.LW(r,a,t,e);var s=new jt.A,l=new jt.A;s.add(r),s.add(i),s.add(l),h(r.shape.points,n,l,o,e,!0),o.setItemGraphicEl(e,s)}})).update((function(e,n){var i=a.getItemGraphicEl(n),r=i.childAt(0),s=i.childAt(1),l=i.childAt(2),c={shape:{points:o.getItemLayout(e)}};c.shape.points&&(h(r.shape.points,c.shape.points,l,o,e,!1),(0,Ut.ap)(s),(0,Ut.ap)(r),Ut.oi(r,c,t),Ut.oi(s,c,t),o.setItemGraphicEl(e,i))})).remove((function(t){r.remove(a.getItemGraphicEl(t))})).execute(),o.eachItemGraphicEl((function(t,e){var n=o.getItemModel(e),i=t.childAt(0),a=t.childAt(1),s=t.childAt(2),h=o.getItemVisual(e,"style"),c=h.fill;r.add(t),i.useStyle(_.defaults(n.getModel("lineStyle").getLineStyle(),{fill:"none",stroke:c})),(0,Yt.Mx)(i,n,"lineStyle"),(0,Yt.Mx)(a,n,"areaStyle");var u=n.getModel("areaStyle"),d=u.isEmpty()&&u.parentModel.isEmpty();a.ignore=d,_.each(["emphasis","select","blur"],(function(t){var e=n.getModel([t,"areaStyle"]),i=e.isEmpty()&&e.parentModel.isEmpty();a.ensureState(t).ignore=i&&d})),a.useStyle(_.defaults(u.getAreaStyle(),{fill:c,opacity:.7,decal:h.decal}));var p=n.getModel("emphasis"),f=p.getModel("itemStyle").getItemStyle();s.eachChild((function(t){if(t instanceof l.Ay){var i=t.style;t.useStyle(_.extend({image:i.image,x:i.x,y:i.y,width:i.width,height:i.height},h))}else t.useStyle(h),t.setColor(c),t.style.strokeNoScale=!0;t.ensureState("emphasis").style=_.clone(f);var r=o.getStore().get(o.getDimensionIndex(t.__dimIdx),e);(null==r||isNaN(r))&&(r=""),(0,Jt.qM)(t,(0,Jt.lx)(n),{labelFetcher:o.hostModel,labelDataIndex:e,labelDimIndex:t.__dimIdx,defaultText:r,inheritColor:c,defaultOpacity:h.opacity})})),(0,Yt.Lm)(t,p.get("focus"),p.get("blurScope"),p.get("disabled"))})),this._data=o},e.prototype.remove=function(){this.group.removeAll(),this._data=null},e.type="radar",e}(xe.A);const xr=_r;var br=n(7276),wr=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n.hasSymbolVisual=!0,n}return(0,Bt.C6)(e,t),e.prototype.init=function(e){t.prototype.init.apply(this,arguments),this.legendVisualProvider=new Yn(_.bind(this.getData,this),_.bind(this.getRawData,this))},e.prototype.getInitialData=function(t,e){return qn(this,{generateCoord:"indicator_",generateCoordCount:1/0})},e.prototype.formatTooltip=function(t,e,n){var i=this.getData(),r=this.coordinateSystem.getIndicatorAxes(),o=this.getData().getName(t),a=""===o?this.name:o,s=(0,br.aw)(this,t);return(0,br.Qx)("section",{header:a,sortBlocks:!0,blocks:_.map(r,(function(e){var n=i.get(i.mapDimension(e.dim),t);return(0,br.Qx)("nameValue",{markerType:"subItem",markerColor:s,name:e.name,value:n,sortParam:n})}))})},e.prototype.getTooltipPosition=function(t){if(null!=t)for(var e=this.getData(),n=this.coordinateSystem,i=e.getValues(_.map(n.dimensions,(function(t){return e.mapDimension(t)})),t),r=0,o=i.length;r<o;r++)if(!isNaN(i[r])){var a=n.getIndicatorAxes();return n.coordToPoint(a[r].dataToCoord(i[r]),r)}},e.type="series.radar",e.dependencies=["radar"],e.defaultOption={z:2,colorBy:"data",coordinateSystem:"radar",legendHoverLink:!0,radarIndex:0,lineStyle:{width:2,type:"solid",join:"round"},label:{position:"top"},symbolSize:8},e}(Gt.A);const Sr=wr;var Tr=di.value;function Mr(t,e){return _.defaults({show:e},t)}const Ar=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return(0,Bt.C6)(e,t),e.prototype.optionUpdated=function(){var t=this.get("boundaryGap"),e=this.get("splitNumber"),n=this.get("scale"),i=this.get("axisLine"),r=this.get("axisTick"),o=this.get("axisLabel"),a=this.get("axisName"),s=this.get(["axisName","show"]),l=this.get(["axisName","formatter"]),h=this.get("axisNameGap"),c=this.get("triggerEvent"),u=_.map(this.get("indicator")||[],(function(u){null!=u.max&&u.max>0&&!u.min?u.min=0:null!=u.min&&u.min<0&&!u.max&&(u.max=0);var d=a;null!=u.color&&(d=_.defaults({color:u.color},a));var p=_.merge(_.clone(u),{boundaryGap:t,splitNumber:e,scale:n,axisLine:i,axisTick:r,axisLabel:o,name:u.text,showName:s,nameLocation:"end",nameGap:h,nameTextStyle:d,triggerEvent:c},!1);if(_.isString(l)){var f=p.name;p.name=l.replace("{value}",null!=f?f:"")}else _.isFunction(l)&&(p.name=l(p.name,p));var g=new Gi.A(p,null,this.ecModel);return _.mixin(g,si.L.prototype),g.mainType="radar",g.componentIndex=this.componentIndex,g}),this);this._indicatorModels=u},e.prototype.getIndicatorModels=function(){return this._indicatorModels},e.type="radar",e.defaultOption={z:0,center:["50%","50%"],radius:"75%",startAngle:90,axisName:{show:!0},boundaryGap:[0,0],splitNumber:5,axisNameGap:15,scale:!1,shape:"polygon",axisLine:_.merge({lineStyle:{color:"#bbb"}},Tr.axisLine),axisLabel:Mr(Tr.axisLabel,!1),axisTick:Mr(Tr.axisTick,!1),splitLine:Mr(Tr.splitLine,!0),splitArea:Mr(Tr.splitArea,!0),indicator:[]},e}(oi.A);var Cr=n(1262),Ir=n(9804),Er=["axisLine","axisTickLabel","axisName"],kr=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return(0,Bt.C6)(e,t),e.prototype.render=function(t,e,n){this.group.removeAll(),this._buildAxes(t),this._buildSplitLineAndArea(t)},e.prototype._buildAxes=function(t){var e=t.coordinateSystem,n=e.getIndicatorAxes(),i=_.map(n,(function(t){var n=t.model.get("showName")?t.name:"";return new Yi(t.model,{axisName:n,position:[e.cx,e.cy],rotation:t.angle,labelDirection:-1,tickDirection:-1,nameDirection:1})}));_.each(i,(function(t){_.each(Er,t.add,t),this.group.add(t.getGroup())}),this)},e.prototype._buildSplitLineAndArea=function(t){var e=t.coordinateSystem,n=e.getIndicatorAxes();if(n.length){var i=t.get("shape"),r=t.getModel("splitLine"),o=t.getModel("splitArea"),a=r.getModel("lineStyle"),s=o.getModel("areaStyle"),l=r.get("show"),h=o.get("show"),c=a.get("color"),u=s.get("color"),d=_.isArray(c)?c:[c],p=_.isArray(u)?u:[u],f=[],g=[];if("circle"===i)for(var m=n[0].getTicksCoords(),v=e.cx,y=e.cy,x=0;x<m.length;x++){if(l)f[I(f,d,x)].push(new Cr.A({shape:{cx:v,cy:y,r:m[x].coord}}));if(h&&x<m.length-1)g[I(g,p,x)].push(new Ir.A({shape:{cx:v,cy:y,r0:m[x].coord,r:m[x+1].coord}}))}else{var b,w=_.map(n,(function(t,n){var i=t.getTicksCoords();return b=null==b?i.length-1:Math.min(i.length-1,b),_.map(i,(function(t){return e.coordToPoint(t.coord,n)}))})),S=[];for(x=0;x<=b;x++){for(var T=[],M=0;M<n.length;M++)T.push(w[M][x]);if(T[0]&&T.push(T[0].slice()),l)f[I(f,d,x)].push(new Pn.A({shape:{points:T}}));if(h&&S)g[I(g,p,x-1)].push(new yr.A({shape:{points:T.concat(S)}}));S=T.slice().reverse()}}var A=a.getLineStyle(),C=s.getAreaStyle();_.each(g,(function(t,e){this.group.add(qt.mergePath(t,{style:_.defaults({stroke:"none",fill:p[e%p.length]},C),silent:!0}))}),this),_.each(f,(function(t,e){this.group.add(qt.mergePath(t,{style:_.defaults({fill:"none",stroke:d[e%d.length]},A),silent:!0}))}),this)}function I(t,e,n){var i=n%e.length;return t[i]=t[i]||[],i}},e.type="radar",e}(ri.A);const Lr=kr;const Dr=function(t){function e(e,n,i){var r=t.call(this,e,n,i)||this;return r.type="value",r.angle=0,r.name="",r}return(0,Bt.C6)(e,t),e}(Ti.A);var Pr=function(){function t(t,e,n){this.dimensions=[],this._model=t,this._indicatorAxes=(0,_.map)(t.getIndicatorModels(),(function(t,e){var n="indicator_"+e,i=new Dr(n,new Li.A);return i.name=t.get("name"),i.model=t,t.axis=i,this.dimensions.push(n),i}),this),this.resize(t,n)}return t.prototype.getIndicatorAxes=function(){return this._indicatorAxes},t.prototype.dataToPoint=function(t,e){var n=this._indicatorAxes[e];return this.coordToPoint(n.dataToCoord(t),e)},t.prototype.coordToPoint=function(t,e){var n=this._indicatorAxes[e].angle;return[this.cx+t*Math.cos(n),this.cy-t*Math.sin(n)]},t.prototype.pointToData=function(t){var e=t[0]-this.cx,n=t[1]-this.cy,i=Math.sqrt(e*e+n*n);e/=i,n/=i;for(var r,o=Math.atan2(-n,e),a=1/0,s=-1,l=0;l<this._indicatorAxes.length;l++){var h=this._indicatorAxes[l],c=Math.abs(o-h.angle);c<a&&(r=h,s=l,a=c)}return[s,+(r&&r.coordToData(i))]},t.prototype.resize=function(t,e){var n=t.get("center"),i=e.getWidth(),r=e.getHeight(),o=Math.min(i,r)/2;this.cx=Se.lo(n[0],i),this.cy=Se.lo(n[1],r),this.startAngle=t.get("startAngle")*Math.PI/180;var a=t.get("radius");((0,_.isString)(a)||(0,_.isNumber)(a))&&(a=[0,a]),this.r0=Se.lo(a[0],o),this.r=Se.lo(a[1],o),(0,_.each)(this._indicatorAxes,(function(t,e){t.setExtent(this.r0,this.r);var n=this.startAngle+e*Math.PI*2/this._indicatorAxes.length;n=Math.atan2(Math.sin(n),Math.cos(n)),t.angle=n}),this)},t.prototype.update=function(t,e){var n=this._indicatorAxes,i=this._model;(0,_.each)(n,(function(t){t.scale.setExtent(1/0,-1/0)})),t.eachSeriesByType("radar",(function(e,r){if("radar"===e.get("coordinateSystem")&&t.getComponent("radar",e.get("radarIndex"))===i){var o=e.getData();(0,_.each)(n,(function(t){t.scale.unionExtentFromData(o,o.mapDimension(t.dim))}))}}),this);var r=i.get("splitNumber"),o=new Li.A;o.setExtent(0,r),o.setInterval(1),(0,_.each)(n,(function(t,e){Pi(t.scale,t.model,o)}))},t.prototype.convertToPixel=function(t,e,n){return console.warn("Not implemented."),null},t.prototype.convertFromPixel=function(t,e,n){return console.warn("Not implemented."),null},t.prototype.containPoint=function(t){return console.warn("Not implemented."),!1},t.create=function(e,n){var i=[];return e.eachComponent("radar",(function(r){var o=new t(r,e,n);i.push(o),r.coordinateSystem=o})),e.eachSeriesByType("radar",(function(t){"radar"===t.get("coordinateSystem")&&(t.coordinateSystem=i[t.get("radarIndex")||0])})),i},t.dimensions=[],t}();const Rr=Pr;function Or(t){t.registerCoordinateSystem("radar",Rr),t.registerComponentModel(Ar),t.registerComponentView(Lr),t.registerVisual({seriesType:"radar",reset:function(t){var e=t.getData();e.each((function(t){e.setItemVisual(t,"legendIcon","roundRect")})),e.setVisual("legendIcon","roundRect")}})}var Nr=n(2510),Fr=n(1469),Br=n(3352),zr="\0_ec_interaction_mutex";function Gr(t,e){return!!Vr(t)[e]}function Vr(t){return t[zr]||(t[zr]={})}function jr(t,e,n,i,r){t.pointerChecker&&t.pointerChecker(i,r.originX,r.originY)&&(Fr.ds(i.event),Hr(t,e,n,i,r))}function Hr(t,e,n,i,r){r.isAvailableBehavior=(0,_.bind)(Wr,null,n,i),t.trigger(e,r)}function Wr(t,e,n){var i=n[t];return!t||i&&(!(0,_.isString)(i)||e.event[i+"Key"])}Br.OH({type:"takeGlobalCursor",event:"globalCursorTaken",update:"update"},_.noop);const Ur=function(t){function e(e){var n=t.call(this)||this;n._zr=e;var i=(0,_.bind)(n._mousedownHandler,n),r=(0,_.bind)(n._mousemoveHandler,n),o=(0,_.bind)(n._mouseupHandler,n),a=(0,_.bind)(n._mousewheelHandler,n),s=(0,_.bind)(n._pinchHandler,n);return n.enable=function(t,n){this.disable(),this._opt=(0,_.defaults)((0,_.clone)(n)||{},{zoomOnMouseWheel:!0,moveOnMouseMove:!0,moveOnMouseWheel:!1,preventDefaultMouseMove:!0}),null==t&&(t=!0),!0!==t&&"move"!==t&&"pan"!==t||(e.on("mousedown",i),e.on("mousemove",r),e.on("mouseup",o)),!0!==t&&"scale"!==t&&"zoom"!==t||(e.on("mousewheel",a),e.on("pinch",s))},n.disable=function(){e.off("mousedown",i),e.off("mousemove",r),e.off("mouseup",o),e.off("mousewheel",a),e.off("pinch",s)},n}return(0,Bt.C6)(e,t),e.prototype.isDragging=function(){return this._dragging},e.prototype.isPinching=function(){return this._pinching},e.prototype.setPointerChecker=function(t){this.pointerChecker=t},e.prototype.dispose=function(){this.disable()},e.prototype._mousedownHandler=function(t){if(!Fr.W5(t)){for(var e=t.target;e;){if(e.draggable)return;e=e.__hostTarget||e.parent}var n=t.offsetX,i=t.offsetY;this.pointerChecker&&this.pointerChecker(t,n,i)&&(this._x=n,this._y=i,this._dragging=!0)}},e.prototype._mousemoveHandler=function(t){if(this._dragging&&Wr("moveOnMouseMove",t,this._opt)&&"pinch"!==t.gestureEvent&&!Gr(this._zr,"globalPan")){var e=t.offsetX,n=t.offsetY,i=this._x,r=this._y,o=e-i,a=n-r;this._x=e,this._y=n,this._opt.preventDefaultMouseMove&&Fr.ds(t.event),Hr(this,"pan","moveOnMouseMove",t,{dx:o,dy:a,oldX:i,oldY:r,newX:e,newY:n,isAvailableBehavior:null})}},e.prototype._mouseupHandler=function(t){Fr.W5(t)||(this._dragging=!1)},e.prototype._mousewheelHandler=function(t){var e=Wr("zoomOnMouseWheel",t,this._opt),n=Wr("moveOnMouseWheel",t,this._opt),i=t.wheelDelta,r=Math.abs(i),o=t.offsetX,a=t.offsetY;if(0!==i&&(e||n)){if(e){var s=r>3?1.4:r>1?1.2:1.1;jr(this,"zoom","zoomOnMouseWheel",t,{scale:i>0?s:1/s,originX:o,originY:a,isAvailableBehavior:null})}if(n){var l=Math.abs(i);jr(this,"scrollMove","moveOnMouseWheel",t,{scrollDelta:(i>0?1:-1)*(l>3?.4:l>1?.15:.05),originX:o,originY:a,isAvailableBehavior:null})}}},e.prototype._pinchHandler=function(t){Gr(this._zr,"globalPan")||jr(this,"zoom",null,t,{scale:t.pinchScale>1?1.1:1/1.1,originX:t.pinchX,originY:t.pinchY,isAvailableBehavior:null})},e}(Nr.A);function qr(t,e,n){var i=t.target;i.x+=e,i.y+=n,i.dirty()}function Xr(t,e,n,i){var r=t.target,o=t.zoomLimit,a=t.zoom=t.zoom||1;if(a*=e,o){var s=o.min||0,l=o.max||1/0;a=Math.max(Math.min(l,a),s)}var h=a/t.zoom;t.zoom=a,r.x-=(n-r.x)*(h-1),r.y-=(i-r.y)*(h-1),r.scaleX*=h,r.scaleY*=h,r.dirty()}var Yr={axisPointer:1,tooltip:1,brush:1};function Zr(t,e,n){var i=e.getComponentByElement(t.topTarget),r=i&&i.coordinateSystem;return i&&i!==n&&!Yr.hasOwnProperty(i.mainType)&&r&&r.model!==n}var $r,Kr=n(1478),Jr=n(5496),Qr=n(6575);function to(t){(0,_.isString)(t)&&(t=(new DOMParser).parseFromString(t,"text/xml"));var e=t;for(9===e.nodeType&&(e=e.firstChild);"svg"!==e.nodeName.toLowerCase()||1!==e.nodeType;)e=e.nextSibling;return e}var eo={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"},no=(0,_.keys)(eo),io={"alignment-baseline":"textBaseline","stop-color":"stopColor"},ro=(0,_.keys)(io),oo=function(){function t(){this._defs={},this._root=null}return t.prototype.parse=function(t,e){e=e||{};var n=to(t);this._defsUsePending=[];var i=new jt.A;this._root=i;var r=[],o=n.getAttribute("viewBox")||"",a=parseFloat(n.getAttribute("width")||e.width),s=parseFloat(n.getAttribute("height")||e.height);isNaN(a)&&(a=null),isNaN(s)&&(s=null),uo(n,i,null,!0,!1);for(var l,h,c=n.firstChild;c;)this._parseNode(c,i,r,null,!1,!1),c=c.nextSibling;if(function(t,e){for(var n=0;n<e.length;n++){var i=e[n];i[0].style[i[1]]=t[i[2]]}}(this._defs,this._defsUsePending),this._defsUsePending=[],o){var u=mo(o);u.length>=4&&(l={x:parseFloat(u[0]||0),y:parseFloat(u[1]||0),width:parseFloat(u[2]),height:parseFloat(u[3])})}if(l&&null!=a&&null!=s&&(h=bo(l,{x:0,y:0,width:a,height:s}),!e.ignoreViewBox)){var d=i;(i=new jt.A).add(d),d.scaleX=d.scaleY=h.scale,d.x=h.x,d.y=h.y}return e.ignoreRootClip||null==a||null==s||i.setClipPath(new be.A({shape:{x:0,y:0,width:a,height:s}})),{root:i,width:a,height:s,viewBoxRect:l,viewBoxTransform:h,named:r}},t.prototype._parseNode=function(t,e,n,i,r,o){var a,s=t.nodeName.toLowerCase(),l=i;if("defs"===s&&(r=!0),"text"===s&&(o=!0),"defs"===s||"switch"===s)a=e;else{if(!r){var h=$r[s];if(h&&(0,_.hasOwn)($r,s)){a=h.call(this,t,e);var c=t.getAttribute("name");if(c){var u={name:c,namedFrom:null,svgNodeTagLower:s,el:a};n.push(u),"g"===s&&(l=u)}else i&&n.push({name:i.name,namedFrom:i,svgNodeTagLower:s,el:a});e.add(a)}}var d=ao[s];if(d&&(0,_.hasOwn)(ao,s)){var p=d.call(this,t),f=t.getAttribute("id");f&&(this._defs[f]=p)}}if(a&&a.isGroup)for(var g=t.firstChild;g;)1===g.nodeType?this._parseNode(g,a,n,l,r,o):3===g.nodeType&&o&&this._parseText(g,a),g=g.nextSibling},t.prototype._parseText=function(t,e){var n=new c.A({style:{text:t.textContent},silent:!0,x:this._textX||0,y:this._textY||0});ho(e,n),uo(t,n,this._defsUsePending,!1,!1),function(t,e){var n=e.__selfStyle;if(n){var i=n.textBaseline,r=i;i&&"auto"!==i?"baseline"===i?r="alphabetic":"before-edge"===i||"text-before-edge"===i?r="top":"after-edge"===i||"text-after-edge"===i?r="bottom":"central"!==i&&"mathematical"!==i||(r="middle"):r="alphabetic",t.style.textBaseline=r}var o=e.__inheritedStyle;if(o){var a=o.textAlign,s=a;a&&("middle"===a&&(s="center"),t.style.textAlign=s)}}(n,e);var i=n.style,r=i.fontSize;r&&r<9&&(i.fontSize=9,n.scaleX*=r/9,n.scaleY*=r/9);var o=(i.fontSize||i.fontFamily)&&[i.fontStyle,i.fontWeight,(i.fontSize||12)+"px",i.fontFamily||"sans-serif"].join(" ");i.font=o;var a=n.getBoundingRect();return this._textX+=a.width,e.add(n),n},t.internalField=void($r={g:function(t,e){var n=new jt.A;return ho(e,n),uo(t,n,this._defsUsePending,!1,!1),n},rect:function(t,e){var n=new be.A;return ho(e,n),uo(t,n,this._defsUsePending,!1,!1),n.setShape({x:parseFloat(t.getAttribute("x")||"0"),y:parseFloat(t.getAttribute("y")||"0"),width:parseFloat(t.getAttribute("width")||"0"),height:parseFloat(t.getAttribute("height")||"0")}),n.silent=!0,n},circle:function(t,e){var n=new Cr.A;return ho(e,n),uo(t,n,this._defsUsePending,!1,!1),n.setShape({cx:parseFloat(t.getAttribute("cx")||"0"),cy:parseFloat(t.getAttribute("cy")||"0"),r:parseFloat(t.getAttribute("r")||"0")}),n.silent=!0,n},line:function(t,e){var n=new zi.A;return ho(e,n),uo(t,n,this._defsUsePending,!1,!1),n.setShape({x1:parseFloat(t.getAttribute("x1")||"0"),y1:parseFloat(t.getAttribute("y1")||"0"),x2:parseFloat(t.getAttribute("x2")||"0"),y2:parseFloat(t.getAttribute("y2")||"0")}),n.silent=!0,n},ellipse:function(t,e){var n=new Kr.A;return ho(e,n),uo(t,n,this._defsUsePending,!1,!1),n.setShape({cx:parseFloat(t.getAttribute("cx")||"0"),cy:parseFloat(t.getAttribute("cy")||"0"),rx:parseFloat(t.getAttribute("rx")||"0"),ry:parseFloat(t.getAttribute("ry")||"0")}),n.silent=!0,n},polygon:function(t,e){var n,i=t.getAttribute("points");i&&(n=co(i));var r=new yr.A({shape:{points:n||[]},silent:!0});return ho(e,r),uo(t,r,this._defsUsePending,!1,!1),r},polyline:function(t,e){var n,i=t.getAttribute("points");i&&(n=co(i));var r=new Pn.A({shape:{points:n||[]},silent:!0});return ho(e,r),uo(t,r,this._defsUsePending,!1,!1),r},image:function(t,e){var n=new l.Ay;return ho(e,n),uo(t,n,this._defsUsePending,!1,!1),n.setStyle({image:t.getAttribute("xlink:href")||t.getAttribute("href"),x:+t.getAttribute("x"),y:+t.getAttribute("y"),width:+t.getAttribute("width"),height:+t.getAttribute("height")}),n.silent=!0,n},text:function(t,e){var n=t.getAttribute("x")||"0",i=t.getAttribute("y")||"0",r=t.getAttribute("dx")||"0",o=t.getAttribute("dy")||"0";this._textX=parseFloat(n)+parseFloat(r),this._textY=parseFloat(i)+parseFloat(o);var a=new jt.A;return ho(e,a),uo(t,a,this._defsUsePending,!1,!0),a},tspan:function(t,e){var n=t.getAttribute("x"),i=t.getAttribute("y");null!=n&&(this._textX=parseFloat(n)),null!=i&&(this._textY=parseFloat(i));var r=t.getAttribute("dx")||"0",o=t.getAttribute("dy")||"0",a=new jt.A;return ho(e,a),uo(t,a,this._defsUsePending,!1,!0),this._textX+=parseFloat(r),this._textY+=parseFloat(o),a},path:function(t,e){var n=t.getAttribute("d")||"",i=(0,Jr.UJ)(n);return ho(e,i),uo(t,i,this._defsUsePending,!1,!1),i.silent=!0,i}}),t}(),ao={lineargradient:function(t){var e=parseInt(t.getAttribute("x1")||"0",10),n=parseInt(t.getAttribute("y1")||"0",10),i=parseInt(t.getAttribute("x2")||"10",10),r=parseInt(t.getAttribute("y2")||"0",10),o=new he.A(e,n,i,r);return so(t,o),lo(t,o),o},radialgradient:function(t){var e=parseInt(t.getAttribute("cx")||"0",10),n=parseInt(t.getAttribute("cy")||"0",10),i=parseInt(t.getAttribute("r")||"0",10),r=new Qr.A(e,n,i);return so(t,r),lo(t,r),r}};function so(t,e){"userSpaceOnUse"===t.getAttribute("gradientUnits")&&(e.global=!0)}function lo(t,e){for(var n=t.firstChild;n;){if(1===n.nodeType&&"stop"===n.nodeName.toLocaleLowerCase()){var i=n.getAttribute("offset"),r=void 0;r=i&&i.indexOf("%")>0?parseInt(i,10)/100:i?parseFloat(i):0;var o={};xo(n,o,o);var a=o.stopColor||n.getAttribute("stop-color")||"#000000";e.colorStops.push({offset:r,color:a})}n=n.nextSibling}}function ho(t,e){t&&t.__inheritedStyle&&(e.__inheritedStyle||(e.__inheritedStyle={}),(0,_.defaults)(e.__inheritedStyle,t.__inheritedStyle))}function co(t){for(var e=mo(t),n=[],i=0;i<e.length;i+=2){var r=parseFloat(e[i]),o=parseFloat(e[i+1]);n.push([r,o])}return n}function uo(t,e,n,i,r){var o=e,a=o.__inheritedStyle=o.__inheritedStyle||{},s={};1===t.nodeType&&(function(t,e){var n=t.getAttribute("transform");if(n){n=n.replace(/,/g," ");var i=[],r=null;n.replace(vo,(function(t,e,n){return i.push(e,n),""}));for(var o=i.length-1;o>0;o-=2){var a=i[o],s=i[o-1],l=mo(a);switch(r=r||_i.create(),s){case"translate":_i.translate(r,r,[parseFloat(l[0]),parseFloat(l[1]||"0")]);break;case"scale":_i.scale(r,r,[parseFloat(l[0]),parseFloat(l[1]||l[0])]);break;case"rotate":_i.rotate(r,r,-parseFloat(l[0])*yo,[parseFloat(l[1]||"0"),parseFloat(l[2]||"0")]);break;case"skewX":var h=Math.tan(parseFloat(l[0])*yo);_i.mul(r,[1,0,h,1,0,0],r);break;case"skewY":var c=Math.tan(parseFloat(l[0])*yo);_i.mul(r,[1,c,0,1,0,0],r);break;case"matrix":r[0]=parseFloat(l[0]),r[1]=parseFloat(l[1]),r[2]=parseFloat(l[2]),r[3]=parseFloat(l[3]),r[4]=parseFloat(l[4]),r[5]=parseFloat(l[5])}}e.setLocalTransform(r)}}(t,e),xo(t,a,s),i||function(t,e,n){for(var i=0;i<no.length;i++){var r=no[i];null!=(o=t.getAttribute(r))&&(e[eo[r]]=o)}for(i=0;i<ro.length;i++){var o;r=ro[i];null!=(o=t.getAttribute(r))&&(n[io[r]]=o)}}(t,a,s)),o.style=o.style||{},null!=a.fill&&(o.style.fill=fo(o,"fill",a.fill,n)),null!=a.stroke&&(o.style.stroke=fo(o,"stroke",a.stroke,n)),(0,_.each)(["lineWidth","opacity","fillOpacity","strokeOpacity","miterLimit","fontSize"],(function(t){null!=a[t]&&(o.style[t]=parseFloat(a[t]))})),(0,_.each)(["lineDashOffset","lineCap","lineJoin","fontWeight","fontFamily","fontStyle","textAlign"],(function(t){null!=a[t]&&(o.style[t]=a[t])})),r&&(o.__selfStyle=s),a.lineDash&&(o.style.lineDash=(0,_.map)(mo(a.lineDash),(function(t){return parseFloat(t)}))),"hidden"!==a.visibility&&"collapse"!==a.visibility||(o.invisible=!0),"none"===a.display&&(o.ignore=!0)}var po=/^url\(\s*#(.*?)\)/;function fo(t,e,n,i){var r=n&&n.match(po);if(!r)return"none"===n&&(n=null),n;var o=(0,_.trim)(r[1]);i.push([t,e,o])}var go=/-?([0-9]*\.)?[0-9]+([eE]-?[0-9]+)?/g;function mo(t){return t.match(go)||[]}var vo=/(translate|scale|rotate|skewX|skewY|matrix)\(([\-\s0-9\.eE,]*)\)/g,yo=Math.PI/180;var _o=/([^\s:;]+)\s*:\s*([^:;]+)/g;function xo(t,e,n){var i,r=t.getAttribute("style");if(r)for(_o.lastIndex=0;null!=(i=_o.exec(r));){var o=i[1],a=(0,_.hasOwn)(eo,o)?eo[o]:null;a&&(e[a]=i[2]);var s=(0,_.hasOwn)(io,o)?io[o]:null;s&&(n[s]=i[2])}}function bo(t,e){var n=e.width/t.width,i=e.height/t.height,r=Math.min(n,i);return{scale:r,x:-(t.x+t.width/2)*r+(e.x+e.width/2),y:-(t.y+t.height/2)*r+(e.y+e.height/2)}}var wo=n(7967),So=(0,_.createHashMap)(["rect","circle","line","ellipse","polygon","polyline","path","text","tspan","g"]),To=function(){function t(t,e){this.type="geoSVG",this._usedGraphicMap=(0,_.createHashMap)(),this._freedGraphics=[],this._mapName=t,this._parsedXML=to(e)}return t.prototype.load=function(){var t=this._firstGraphic;if(!t){t=this._firstGraphic=this._buildGraphic(this._parsedXML),this._freedGraphics.push(t),this._boundingRect=this._firstGraphic.boundingRect.clone();var e=function(t){var e=[],n=(0,_.createHashMap)();return(0,_.each)(t,(function(t){if(null==t.namedFrom){var i=new wo.U5(t.name,t.el);e.push(i),n.set(t.name,i)}})),{regions:e,regionsMap:n}}(t.named),n=e.regions,i=e.regionsMap;this._regions=n,this._regionsMap=i}return{boundingRect:this._boundingRect,regions:this._regions,regionsMap:this._regionsMap}},t.prototype._buildGraphic=function(t){var e,n,i,r;try{n=(e=t&&(i=t,r={ignoreViewBox:!0,ignoreRootClip:!0},(new oo).parse(i,r))||{}).root,(0,_.assert)(null!=n)}catch(v){throw new Error("Invalid svg format\n"+v.message)}var o=new jt.A;o.add(n),o.isGeoSVGGraphicRoot=!0;var a=e.width,s=e.height,l=e.viewBoxRect,h=this._boundingRect;if(!h){var c=void 0,u=void 0,d=void 0,p=void 0;if(null!=a?(c=0,d=a):l&&(c=l.x,d=l.width),null!=s?(u=0,p=s):l&&(u=l.y,p=l.height),null==c||null==u){var f=n.getBoundingRect();null==c&&(c=f.x,d=f.width),null==u&&(u=f.y,p=f.height)}h=this._boundingRect=new Jn.A(c,u,d,p)}if(l){var g=bo(l,h);n.scaleX=n.scaleY=g.scale,n.x=g.x,n.y=g.y}o.setClipPath(new be.A({shape:h.plain()}));var m=[];return(0,_.each)(e.named,(function(t){var e;null!=So.get(t.svgNodeTagLower)&&(m.push(t),(e=t.el).silent=!1,e.isGroup&&e.traverse((function(t){t.silent=!1})))})),{root:o,boundingRect:h,named:m}},t.prototype.useGraphic=function(t){var e=this._usedGraphicMap,n=e.get(t);return n||(n=this._freedGraphics.pop()||this._buildGraphic(this._parsedXML),e.set(t,n),n)},t.prototype.freeGraphic=function(t){var e=this._usedGraphicMap,n=e.get(t);n&&(e.removeKey(t),this._freedGraphics.push(n))},t}();for(var Mo=n(2241),Ao=[126,25],Co="\u5357\u6d77\u8bf8\u5c9b",Io=[[[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]]],Eo=0;Eo<Io.length;Eo++)for(var ko=0;ko<Io[Eo].length;ko++)Io[Eo][ko][0]/=10.5,Io[Eo][ko][1]/=-14,Io[Eo][ko][0]+=Ao[0],Io[Eo][ko][1]+=Ao[1];var Lo=n(6771),Do=[[[123.45165252685547,25.73527164402261],[123.49731445312499,25.73527164402261],[123.49731445312499,25.750734064600884],[123.45165252685547,25.750734064600884],[123.45165252685547,25.73527164402261]]];var Po=function(){function t(t,e,n){var i;this.type="geoJSON",this._parsedMap=(0,_.createHashMap)(),this._mapName=t,this._specialAreas=n,this._geoJSON=(i=e,(0,_.isString)(i)?"undefined"!=typeof JSON&&JSON.parse?JSON.parse(i):new Function("return ("+i+");")():i)}return t.prototype.load=function(t,e){e=e||"name";var n=this._parsedMap.get(e);if(!n){var i=this._parseToRegions(e);n=this._parsedMap.set(e,{regions:i,boundingRect:Ro(i)})}var r=(0,_.createHashMap)(),o=[];return(0,_.each)(n.regions,(function(e){var n=e.name;t&&(0,_.hasOwn)(t,n)&&(e=e.cloneShallow(n=t[n])),o.push(e),r.set(n,e)})),{regions:o,boundingRect:n.boundingRect||new Jn.A(0,0,0,0),regionsMap:r}},t.prototype._parseToRegions=function(t){var e,n=this._mapName,i=this._geoJSON;try{e=i?(0,Mo.A)(i,t):[]}catch(r){throw new Error("Invalid geoJson format\n"+r.message)}return function(t,e){if("china"===t){for(var n=0;n<e.length;n++)if(e[n].name===Co)return;e.push(new wo.cn(Co,_.map(Io,(function(t){return{type:"polygon",exterior:t}})),Ao))}}(n,e),(0,_.each)(e,(function(t){var e=t.name;(0,Lo.A)(n,t),function(t,e){"china"===t&&"\u53f0\u6e7e"===e.name&&e.geometries.push({type:"polygon",exterior:Do[0]})}(n,t);var i=this._specialAreas&&this._specialAreas[e];i&&t.transformTo(i.left,i.top,i.width,i.height)}),this),e},t.prototype.getMapForUser=function(){return{geoJson:this._geoJSON,geoJSON:this._geoJSON,specialAreas:this._specialAreas}},t}();function Ro(t){for(var e,n=0;n<t.length;n++){var i=t[n].getBoundingRect();(e=e||i.clone()).union(i)}return e}var Oo=(0,_.createHashMap)();const No=function(t,e,n){if(e.svg){var i=new To(t,e.svg);Oo.set(t,i)}else{var r=e.geoJson||e.geoJSON;r&&!e.features?n=e.specialAreas:r=e;i=new Po(t,r,n);Oo.set(t,i)}},Fo=function(t){return Oo.get(t)},Bo=function(t){var e=Oo.get(t);return e&&"geoJSON"===e.type&&e.getMapForUser()},zo=function(t,e,n){var i=Oo.get(t);if(i)return i.load(e,n)};var Go=n(2863),Vo=n(7780),jo=["rect","circle","line","ellipse","polygon","polyline","path"],Ho=_.createHashMap(jo),Wo=_.createHashMap(jo.concat(["g"])),Uo=_.createHashMap(jo.concat(["g"])),qo=(0,ce.$r)();function Xo(t){var e=t.getItemStyle(),n=t.get("areaColor");return null!=n&&(e.fill=n),e}function Yo(t){var e=t.style;e&&(e.stroke=e.stroke||e.fill,e.fill=null)}var Zo=function(){function t(t){var e=new jt.A;this.uid=(0,Ze.$Q)("ec_map_draw"),this._controller=new Ur(t.getZr()),this._controllerHost={target:e},this.group=e,e.add(this._regionsGroup=new jt.A),e.add(this._svgGroup=new jt.A)}return t.prototype.draw=function(t,e,n,i,r){var o="geo"===t.mainType,a=t.getData&&t.getData();o&&e.eachComponent({mainType:"series",subType:"map"},(function(e){a||e.getHostGeoModel()!==t||(a=e.getData())}));var s=t.coordinateSystem,l=this._regionsGroup,h=this.group,c=s.getTransformInfo(),u=c.raw,d=c.roam;!l.childAt(0)||r?(h.x=d.x,h.y=d.y,h.scaleX=d.scaleX,h.scaleY=d.scaleY,h.dirty()):Ut.oi(h,d,t);var p=a&&a.getVisual("visualMeta")&&a.getVisual("visualMeta").length>0,f={api:n,geo:s,mapOrGeoModel:t,data:a,isVisualEncodedByVisualMap:p,isGeo:o,transformInfoRaw:u};"geoJSON"===s.resourceType?this._buildGeoJSON(f):"geoSVG"===s.resourceType&&this._buildSVG(f),this._updateController(t,e,n),this._updateMapSelectHandler(t,l,n,i)},t.prototype._buildGeoJSON=function(t){var e=this._regionsGroupByName=_.createHashMap(),n=_.createHashMap(),i=this._regionsGroup,r=t.transformInfoRaw,o=t.mapOrGeoModel,a=t.data,s=t.geo.projection,l=s&&s.stream;function h(t,e){return e&&(t=e(t)),t&&[t[0]*r.scaleX+r.x,t[1]*r.scaleY+r.y]}function c(t){for(var e=[],n=!l&&s&&s.project,i=0;i<t.length;++i){var r=h(t[i],n);r&&e.push(r)}return e}function u(t){return{shape:{points:c(t)}}}i.removeAll(),_.each(t.geo.regions,(function(r){var c=r.name,d=e.get(c),p=n.get(c)||{},f=p.dataIdx,g=p.regionModel;d||(d=e.set(c,new jt.A),i.add(d),f=a?a.indexOfName(c):null,g=t.isGeo?o.getRegionModel(c):a?a.getItemModel(f):null,n.set(c,{dataIdx:f,regionModel:g}));var m=[],v=[];_.each(r.geometries,(function(t){if("polygon"===t.type){var e=[t.exterior].concat(t.interiors||[]);l&&(e=ea(e,l)),_.each(e,(function(t){m.push(new yr.A(u(t)))}))}else{var n=t.points;l&&(n=ea(n,l,!0)),_.each(n,(function(t){v.push(new Pn.A(u(t)))}))}}));var y=h(r.getCenter(),s&&s.project);function x(e,n){if(e.length){var i=new F.A({culling:!0,segmentIgnoreThreshold:1,shape:{paths:e}});d.add(i),$o(t,i,f,g),Ko(t,i,c,g,o,f,y),n&&(Yo(i),_.each(i.states,Yo))}}x(m),x(v,!0)})),e.each((function(e,i){var r=n.get(i),a=r.dataIdx,s=r.regionModel;Jo(t,e,i,s,o,a),Qo(t,e,i,s,o),ta(t,e,i,s,o)}),this)},t.prototype._buildSVG=function(t){var e=t.geo.map,n=t.transformInfoRaw;this._svgGroup.x=n.x,this._svgGroup.y=n.y,this._svgGroup.scaleX=n.scaleX,this._svgGroup.scaleY=n.scaleY,this._svgResourceChanged(e)&&(this._freeSVG(),this._useSVG(e));var i=this._svgDispatcherMap=_.createHashMap(),r=!1;_.each(this._svgGraphicRecord.named,(function(e){var n=e.name,o=t.mapOrGeoModel,a=t.data,s=e.svgNodeTagLower,l=e.el,h=a?a.indexOfName(n):null,c=o.getRegionModel(n);(null!=Ho.get(s)&&l instanceof Vo.Ay&&$o(t,l,h,c),l instanceof Vo.Ay&&(l.culling=!0),l.z2EmphasisLift=0,e.namedFrom)||(null!=Uo.get(s)&&Ko(t,l,n,c,o,h,null),Jo(t,l,n,c,o,h),Qo(t,l,n,c,o),null!=Wo.get(s)&&("self"===ta(t,l,n,c,o)&&(r=!0),(i.get(n)||i.set(n,[])).push(l)))}),this),this._enableBlurEntireSVG(r,t)},t.prototype._enableBlurEntireSVG=function(t,e){if(t&&e.isGeo){var n=e.mapOrGeoModel.getModel(["blur","itemStyle"]).getItemStyle().opacity;this._svgGraphicRecord.root.traverse((function(t){if(!t.isGroup){(0,Yt.DW)(t);var e=t.ensureState("blur").style||{};null==e.opacity&&null!=n&&(e.opacity=n),t.ensureState("emphasis")}}))}},t.prototype.remove=function(){this._regionsGroup.removeAll(),this._regionsGroupByName=null,this._svgGroup.removeAll(),this._freeSVG(),this._controller.dispose(),this._controllerHost=null},t.prototype.findHighDownDispatchers=function(t,e){if(null==t)return[];var n=e.coordinateSystem;if("geoJSON"===n.resourceType){var i=this._regionsGroupByName;if(i){var r=i.get(t);return r?[r]:[]}}else if("geoSVG"===n.resourceType)return this._svgDispatcherMap&&this._svgDispatcherMap.get(t)||[]},t.prototype._svgResourceChanged=function(t){return this._svgMapName!==t},t.prototype._useSVG=function(t){var e=Fo(t);if(e&&"geoSVG"===e.type){var n=e.useGraphic(this.uid);this._svgGroup.add(n.root),this._svgGraphicRecord=n,this._svgMapName=t}},t.prototype._freeSVG=function(){var t=this._svgMapName;if(null!=t){var e=Fo(t);e&&"geoSVG"===e.type&&e.freeGraphic(this.uid),this._svgGraphicRecord=null,this._svgDispatcherMap=null,this._svgGroup.removeAll(),this._svgMapName=null}},t.prototype._updateController=function(t,e,n){var i=t.coordinateSystem,r=this._controller,o=this._controllerHost;o.zoomLimit=t.get("scaleLimit"),o.zoom=i.getZoom(),r.enable(t.get("roam")||!1);var a=t.mainType;function s(){var e={type:"geoRoam",componentType:a};return e[a+"Id"]=t.id,e}r.off("pan").on("pan",(function(t){this._mouseDownFlag=!1,qr(o,t.dx,t.dy),n.dispatchAction(_.extend(s(),{dx:t.dx,dy:t.dy,animation:{duration:0}}))}),this),r.off("zoom").on("zoom",(function(t){this._mouseDownFlag=!1,Xr(o,t.scale,t.originX,t.originY),n.dispatchAction(_.extend(s(),{totalZoom:o.zoom,zoom:t.scale,originX:t.originX,originY:t.originY,animation:{duration:0}}))}),this),r.setPointerChecker((function(e,r,o){return i.containPoint([r,o])&&!Zr(e,n,t)}))},t.prototype.resetForLabelLayout=function(){this.group.traverse((function(t){var e=t.getTextContent();e&&(e.ignore=qo(e).ignore)}))},t.prototype._updateMapSelectHandler=function(t,e,n,i){var r=this;e.off("mousedown"),e.off("click"),t.get("selectedMode")&&(e.on("mousedown",(function(){r._mouseDownFlag=!0})),e.on("click",(function(t){r._mouseDownFlag&&(r._mouseDownFlag=!1)})))},t}();function $o(t,e,n,i){var r=i.getModel("itemStyle"),o=i.getModel(["emphasis","itemStyle"]),a=i.getModel(["blur","itemStyle"]),s=i.getModel(["select","itemStyle"]),l=Xo(r),h=Xo(o),c=Xo(s),u=Xo(a),d=t.data;if(d){var p=d.getItemVisual(n,"style"),f=d.getItemVisual(n,"decal");t.isVisualEncodedByVisualMap&&p.fill&&(l.fill=p.fill),f&&(l.decal=(0,Go.w)(f,t.api))}e.setStyle(l),e.style.strokeNoScale=!0,e.ensureState("emphasis").style=h,e.ensureState("select").style=c,e.ensureState("blur").style=u,(0,Yt.DW)(e)}function Ko(t,e,n,i,r,o,a){var s=t.data,l=t.isGeo,h=s&&isNaN(s.get(s.mapDimension("value"),o)),c=s&&s.getItemLayout(o);if(l||h||c&&c.showLabel){var u=l?n:o,d=void 0;(!s||o>=0)&&(d=r);var p=a?{normal:{align:"center",verticalAlign:"middle"}}:null;(0,Jt.qM)(e,(0,Jt.lx)(i),{labelFetcher:d,labelDataIndex:u,defaultText:n},p);var f=e.getTextContent();if(f&&(qo(f).ignore=f.ignore,e.textConfig&&a)){var g=e.getBoundingRect().clone();e.textConfig.layoutRect=g,e.textConfig.position=[(a[0]-g.x)/g.width*100+"%",(a[1]-g.y)/g.height*100+"%"]}e.disableLabelAnimation=!0}else e.removeTextContent(),e.removeTextConfig(),e.disableLabelAnimation=null}function Jo(t,e,n,i,r,o){t.data?t.data.setItemGraphicEl(o,e):(0,Xt.z)(e).eventData={componentType:"geo",componentIndex:r.componentIndex,geoIndex:r.componentIndex,name:n,region:i&&i.option||{}}}function Qo(t,e,n,i,r){t.data||qt.setTooltipConfig({el:e,componentModel:r,itemName:n,itemTooltipOption:i.get("tooltip")})}function ta(t,e,n,i,r){e.highDownSilentOnTouch=!!r.get("selectedMode");var o=i.getModel("emphasis"),a=o.get("focus");return(0,Yt.Lm)(e,a,o.get("blurScope"),o.get("disabled")),t.isGeo&&(0,Yt.ml)(e,r,n),a}function ea(t,e,n){var i,r=[];function o(){i=[]}function a(){i.length&&(r.push(i),i=[])}var s=e({polygonStart:o,polygonEnd:a,lineStart:o,lineEnd:a,point:function(t,e){isFinite(t)&&isFinite(e)&&i.push([t,e])},sphere:function(){}});return!n&&s.polygonStart(),_.each(t,(function(t){s.lineStart();for(var e=0;e<t.length;e++)s.point(t[e][0],t[e][1]);s.lineEnd()})),!n&&s.polygonEnd(),r}const na=Zo;var ia=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return(0,Bt.C6)(e,t),e.prototype.render=function(t,e,n,i){if(!i||"mapToggleSelect"!==i.type||i.from!==this.uid){var r=this.group;if(r.removeAll(),!t.getHostGeoModel()){if(this._mapDraw&&i&&"geoRoam"===i.type&&this._mapDraw.resetForLabelLayout(),i&&"geoRoam"===i.type&&"series"===i.componentType&&i.seriesId===t.id)(o=this._mapDraw)&&r.add(o.group);else if(t.needsDrawMap){var o=this._mapDraw||new na(n);r.add(o.group),o.draw(t,e,n,this,i),this._mapDraw=o}else this._mapDraw&&this._mapDraw.remove(),this._mapDraw=null;t.get("showLegendSymbol")&&e.getComponent("legend")&&this._renderSymbols(t,e,n)}}},e.prototype.remove=function(){this._mapDraw&&this._mapDraw.remove(),this._mapDraw=null,this.group.removeAll()},e.prototype.dispose=function(){this._mapDraw&&this._mapDraw.remove(),this._mapDraw=null},e.prototype._renderSymbols=function(t,e,n){var i=t.originalData,r=this.group;i.each(i.mapDimension("value"),(function(e,n){if(!isNaN(e)){var o=i.getItemLayout(n);if(o&&o.point){var a=o.point,s=o.offset,l=new Cr.A({style:{fill:t.getData().getVisual("style").fill},shape:{cx:a[0]+9*s,cy:a[1],r:3},silent:!0,z2:8+(s?0:Yt.CA+1)});if(!s){var h=t.mainSeries.getData(),c=i.getName(n),u=h.indexOfName(c),d=i.getItemModel(n),p=d.getModel("label"),f=h.getItemGraphicEl(u);(0,Jt.qM)(l,(0,Jt.lx)(d),{labelFetcher:{getFormattedLabel:function(e,n){return t.getFormattedLabel(u,n)}},defaultText:c}),l.disableLabelAnimation=!0,p.get("position")||l.setTextConfig({position:"bottom"}),f.onHoverStateChange=function(t){(0,Yt.Pk)(l,t)}}r.add(l)}}}))},e.type="map",e}(xe.A);const ra=ia;var oa=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n.needsDrawMap=!1,n.seriesGroup=[],n.getTooltipPosition=function(t){if(null!=t){var e=this.getData().getName(t),n=this.coordinateSystem,i=n.getRegion(e);return i&&n.dataToPoint(i.getCenter())}},n}return(0,Bt.C6)(e,t),e.prototype.getInitialData=function(t){for(var e=qn(this,{coordDimensions:["value"],encodeDefaulter:_.curry(Xn.ln,this)}),n=_.createHashMap(),i=[],r=0,o=e.count();r<o;r++){var a=e.getName(r);n.set(a,!0)}var s=zo(this.getMapType(),this.option.nameMap,this.option.nameProperty);return _.each(s.regions,(function(t){var e=t.name;n.get(e)||i.push(e)})),e.appendValues([],i),e},e.prototype.getHostGeoModel=function(){var t=this.option.geoIndex;return null!=t?this.ecModel.getComponent("geo",t):null},e.prototype.getMapType=function(){return(this.getHostGeoModel()||this).option.map},e.prototype.getRawValue=function(t){var e=this.getData();return e.get(e.mapDimension("value"),t)},e.prototype.getRegionModel=function(t){var e=this.getData();return e.getItemModel(e.indexOfName(t))},e.prototype.formatTooltip=function(t,e,n){for(var i=this.getData(),r=this.getRawValue(t),o=i.getName(t),a=this.seriesGroup,s=[],l=0;l<a.length;l++){var h=a[l].originalData.indexOfName(o),c=i.mapDimension("value");isNaN(a[l].originalData.get(c,h))||s.push(a[l].name)}return(0,br.Qx)("section",{header:s.join(", "),noHeader:!s.length,blocks:[(0,br.Qx)("nameValue",{name:o,value:r})]})},e.prototype.setZoom=function(t){this.option.zoom=t},e.prototype.setCenter=function(t){this.option.center=t},e.prototype.getLegendIcon=function(t){var e=t.icon||"roundRect",n=(0,Vt.v5)(e,0,0,t.itemWidth,t.itemHeight,t.itemStyle.fill);return n.setStyle(t.itemStyle),n.style.stroke="none",e.indexOf("empty")>-1&&(n.style.stroke=n.style.fill,n.style.fill="#fff",n.style.lineWidth=2),n},e.type="series.map",e.dependencies=["geo"],e.layoutMode="box",e.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:"#000"},itemStyle:{borderWidth:.5,borderColor:"#444",areaColor:"#eee"},emphasis:{label:{show:!0,color:"rgb(100,0,0)"},itemStyle:{areaColor:"rgba(255,215,0,0.8)"}},select:{label:{show:!0,color:"rgb(100,0,0)"},itemStyle:{color:"rgba(255,215,0,0.8)"}},nameProperty:"name"},e}(Gt.A);const aa=oa;function sa(t){var e={};t.eachSeriesByType("map",(function(t){var n=t.getHostGeoModel(),i=n?"o"+n.id:"i"+t.getMapType();(e[i]=e[i]||[]).push(t)})),_.each(e,(function(t,e){for(var n,i,r,o=(n=_.map(t,(function(t){return t.getData()})),i=t[0].get("mapValueCalculation"),r={},_.each(n,(function(t){t.each(t.mapDimension("value"),(function(e,n){var i="ec-"+t.getName(n);r[i]=r[i]||[],isNaN(e)||r[i].push(e)}))})),n[0].map(n[0].mapDimension("value"),(function(t,e){for(var o="ec-"+n[0].getName(e),a=0,s=1/0,l=-1/0,h=r[o].length,c=0;c<h;c++)s=Math.min(s,r[o][c]),l=Math.max(l,r[o][c]),a+=r[o][c];return 0===h?NaN:"min"===i?s:"max"===i?l:"average"===i?a/h:a}))),a=0;a<t.length;a++)t[a].originalData=t[a].getData();for(a=0;a<t.length;a++)t[a].seriesGroup=t,t[a].needsDrawMap=0===a&&!t[a].getHostGeoModel(),t[a].setData(o.cloneShallow()),t[a].mainSeries=t[0]}))}function la(t){var e={};t.eachSeriesByType("map",(function(n){var i=n.getMapType();if(!n.getHostGeoModel()&&!e[i]){var r={};_.each(n.seriesGroup,(function(e){var n=e.coordinateSystem,i=e.originalData;e.get("showLegendSymbol")&&t.getComponent("legend")&&i.each(i.mapDimension("value"),(function(t,e){var o=i.getName(e),a=n.getRegion(o);if(a&&!isNaN(t)){var s=r[o]||0,l=n.dataToPoint(a.getCenter());r[o]=s+1,i.setItemLayout(e,{point:l,offset:s})}}))}));var o=n.getData();o.each((function(t){var e=o.getName(t),n=o.getItemLayout(t)||{};n.showLabel=!r[e],o.setItemLayout(t,n)})),e[i]=!0}}))}var ha=xi.applyTransform,ca=function(t){function e(e){var n=t.call(this)||this;return n.type="view",n.dimensions=["x","y"],n._roamTransformable=new O.Ay,n._rawTransformable=new O.Ay,n.name=e,n}return(0,Bt.C6)(e,t),e.prototype.setBoundingRect=function(t,e,n,i){return this._rect=new Jn.A(t,e,n,i),this._rect},e.prototype.getBoundingRect=function(){return this._rect},e.prototype.setViewRect=function(t,e,n,i){this._transformTo(t,e,n,i),this._viewRect=new Jn.A(t,e,n,i)},e.prototype._transformTo=function(t,e,n,i){var r=this.getBoundingRect(),o=this._rawTransformable;o.transform=r.calculateTransform(new Jn.A(t,e,n,i));var a=o.parent;o.parent=null,o.decomposeTransform(),o.parent=a,this._updateTransform()},e.prototype.setCenter=function(t,e){t&&(this._center=[(0,Se.lo)(t[0],e.getWidth()),(0,Se.lo)(t[1],e.getHeight())],this._updateCenterAndZoom())},e.prototype.setZoom=function(t){t=t||1;var e=this.zoomLimit;e&&(null!=e.max&&(t=Math.min(e.max,t)),null!=e.min&&(t=Math.max(e.min,t))),this._zoom=t,this._updateCenterAndZoom()},e.prototype.getDefaultCenter=function(){var t=this.getBoundingRect();return[t.x+t.width/2,t.y+t.height/2]},e.prototype.getCenter=function(){return this._center||this.getDefaultCenter()},e.prototype.getZoom=function(){return this._zoom||1},e.prototype.getRoamTransform=function(){return this._roamTransformable.getLocalTransform()},e.prototype._updateCenterAndZoom=function(){var t=this._rawTransformable.getLocalTransform(),e=this._roamTransformable,n=this.getDefaultCenter(),i=this.getCenter(),r=this.getZoom();i=xi.applyTransform([],i,t),n=xi.applyTransform([],n,t),e.originX=i[0],e.originY=i[1],e.x=n[0]-i[0],e.y=n[1]-i[1],e.scaleX=e.scaleY=r,this._updateTransform()},e.prototype._updateTransform=function(){var t=this._roamTransformable,e=this._rawTransformable;e.parent=t,t.updateTransform(),e.updateTransform(),_i.copy(this.transform||(this.transform=[]),e.transform||_i.create()),this._rawTransform=e.getLocalTransform(),this.invTransform=this.invTransform||[],_i.invert(this.invTransform,this.transform),this.decomposeTransform()},e.prototype.getTransformInfo=function(){var t=this._rawTransformable,e=this._roamTransformable,n=new O.Ay;return n.transform=e.transform,n.decomposeTransform(),{roam:{x:n.x,y:n.y,scaleX:n.scaleX,scaleY:n.scaleY},raw:{x:t.x,y:t.y,scaleX:t.scaleX,scaleY:t.scaleY}}},e.prototype.getViewRect=function(){return this._viewRect},e.prototype.getViewRectAfterRoam=function(){var t=this.getBoundingRect().clone();return t.applyTransform(this.transform),t},e.prototype.dataToPoint=function(t,e,n){var i=e?this._rawTransform:this.transform;return n=n||[],i?ha(n,t,i):xi.copy(n,t)},e.prototype.pointToData=function(t){var e=this.invTransform;return e?ha([],t,e):[t[0],t[1]]},e.prototype.convertToPixel=function(t,e,n){var i=ua(e);return i===this?i.dataToPoint(n):null},e.prototype.convertFromPixel=function(t,e,n){var i=ua(e);return i===this?i.pointToData(n):null},e.prototype.containPoint=function(t){return this.getViewRectAfterRoam().contain(t[0],t[1])},e.dimensions=["x","y"],e}(O.Ay);function ua(t){var e=t.seriesModel;return e?e.coordinateSystem:null}const da=ca;var pa={geoJSON:{aspectScale:.75,invertLongitute:!0},geoSVG:{aspectScale:1,invertLongitute:!1}},fa=["lng","lat"],ga=function(t){function e(e,n,i){var r=t.call(this,e)||this;r.dimensions=fa,r.type="geo",r._nameCoordMap=_.createHashMap(),r.map=n;var o,a=i.projection,s=zo(n,i.nameMap,i.nameProperty),l=Fo(n),h=(r.resourceType=l?l.type:null,r.regions=s.regions),c=pa[l.type];if(r._regionsMap=s.regionsMap,r.regions=s.regions,r.projection=a,a)for(var u=0;u<h.length;u++){var d=h[u].getBoundingRect(a);(o=o||d.clone()).union(d)}else o=s.boundingRect;return r.setBoundingRect(o.x,o.y,o.width,o.height),r.aspectScale=a?1:_.retrieve2(i.aspectScale,c.aspectScale),r._invertLongitute=!a&&c.invertLongitute,r}return(0,Bt.C6)(e,t),e.prototype._transformTo=function(t,e,n,i){var r=this.getBoundingRect(),o=this._invertLongitute;r=r.clone(),o&&(r.y=-r.y-r.height);var a=this._rawTransformable;a.transform=r.calculateTransform(new Jn.A(t,e,n,i));var s=a.parent;a.parent=null,a.decomposeTransform(),a.parent=s,o&&(a.scaleY=-a.scaleY),this._updateTransform()},e.prototype.getRegion=function(t){return this._regionsMap.get(t)},e.prototype.getRegionByCoord=function(t){for(var e=this.regions,n=0;n<e.length;n++){var i=e[n];if("geoJSON"===i.type&&i.contain(t))return e[n]}},e.prototype.addGeoCoord=function(t,e){this._nameCoordMap.set(t,e)},e.prototype.getGeoCoord=function(t){var e=this._regionsMap.get(t);return this._nameCoordMap.get(t)||e&&e.getCenter()},e.prototype.dataToPoint=function(t,e,n){if(_.isString(t)&&(t=this.getGeoCoord(t)),t){var i=this.projection;return i&&(t=i.project(t)),t&&this.projectedToPoint(t,e,n)}},e.prototype.pointToData=function(t){var e=this.projection;return e&&(t=e.unproject(t)),t&&this.pointToProjected(t)},e.prototype.pointToProjected=function(e){return t.prototype.pointToData.call(this,e)},e.prototype.projectedToPoint=function(e,n,i){return t.prototype.dataToPoint.call(this,e,n,i)},e.prototype.convertToPixel=function(t,e,n){var i=ma(e);return i===this?i.dataToPoint(n):null},e.prototype.convertFromPixel=function(t,e,n){var i=ma(e);return i===this?i.pointToData(n):null},e}(da);function ma(t){var e=t.geoModel,n=t.seriesModel;return e?e.coordinateSystem:n?n.coordinateSystem||(n.getReferringComponents("geo",ce.US).models[0]||{}).coordinateSystem:null}_.mixin(ga,da);const va=ga;function ya(t,e){var n=t.get("boundingCoords");if(null!=n){var i=n[0],r=n[1];if(isFinite(i[0])&&isFinite(i[1])&&isFinite(r[0])&&isFinite(r[1])){var o=this.projection;if(o){var a=i[0],s=i[1],l=r[0],h=r[1];i=[1/0,1/0],r=[-1/0,-1/0];var c=function(t,e,n,a){for(var s=n-t,l=a-e,h=0;h<=100;h++){var c=h/100,u=o.project([t+s*c,e+l*c]);xi.min(i,i,u),xi.max(r,r,u)}};c(a,s,l,s),c(l,s,l,h),c(l,h,a,h),c(a,h,l,s)}this.setBoundingRect(i[0],i[1],r[0]-i[0],r[1]-i[1])}else 0}var u,d,p,f=this.getBoundingRect(),g=t.get("layoutCenter"),m=t.get("layoutSize"),v=e.getWidth(),y=e.getHeight(),_=f.width/f.height*this.aspectScale,x=!1;if(g&&m&&(u=[Se.lo(g[0],v),Se.lo(g[1],y)],d=Se.lo(m,Math.min(v,y)),isNaN(u[0])||isNaN(u[1])||isNaN(d)||(x=!0)),x)p={},_>1?(p.width=d,p.height=d/_):(p.height=d,p.width=d*_),p.y=u[1]-p.height/2,p.x=u[0]-p.width/2;else{var b=t.getBoxLayoutParams();b.aspect=_,p=Mn.dV(b,{width:v,height:y})}this.setViewRect(p.x,p.y,p.width,p.height),this.setCenter(t.get("center"),e),this.setZoom(t.get("zoom"))}var _a=function(){function t(){this.dimensions=fa}return t.prototype.create=function(t,e){var n=[];function i(t){return{nameProperty:t.get("nameProperty"),aspectScale:t.get("aspectScale"),projection:t.get("projection")}}t.eachComponent("geo",(function(t,r){var o=t.get("map"),a=new va(o+r,o,_.extend({nameMap:t.get("nameMap")},i(t)));a.zoomLimit=t.get("scaleLimit"),n.push(a),t.coordinateSystem=a,a.model=t,a.resize=ya,a.resize(t,e)})),t.eachSeries((function(t){if("geo"===t.get("coordinateSystem")){var e=t.get("geoIndex")||0;t.coordinateSystem=n[e]}}));var r={};return t.eachSeriesByType("map",(function(t){if(!t.getHostGeoModel()){var e=t.getMapType();r[e]=r[e]||[],r[e].push(t)}})),_.each(r,(function(t,r){var o=_.map(t,(function(t){return t.get("nameMap")})),a=new va(r,r,_.extend({nameMap:_.mergeAll(o)},i(t[0])));a.zoomLimit=_.retrieve.apply(null,_.map(t,(function(t){return t.get("scaleLimit")}))),n.push(a),a.resize=ya,a.resize(t[0],e),_.each(t,(function(t){t.coordinateSystem=a,function(t,e){_.each(e.get("geoCoord"),(function(e,n){t.addGeoCoord(n,e)}))}(a,t)}))})),n},t.prototype.getFilledRegions=function(t,e,n,i){for(var r=(t||[]).slice(),o=_.createHashMap(),a=0;a<r.length;a++)o.set(r[a].name,r[a]);var s=zo(e,n,i);return _.each(s.regions,(function(t){var e=t.name;!o.get(e)&&r.push({name:e})})),r},t}();const xa=new _a;var ba=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return(0,Bt.C6)(e,t),e.prototype.init=function(t,e,n){var i=Fo(t.map);if(i&&"geoJSON"===i.type){var r=t.itemStyle=t.itemStyle||{};"color"in r||(r.color="#eee")}this.mergeDefaultAndTheme(t,n),ce.M5(t,"label",["show"])},e.prototype.optionUpdated=function(){var t=this,e=this.option;e.regions=xa.getFilledRegions(e.regions,e.map,e.nameMap,e.nameProperty);var n={};this._optionModelMap=_.reduce(e.regions||[],(function(e,i){var r=i.name;return r&&(e.set(r,new Gi.A(i,t,t.ecModel)),i.selected&&(n[r]=!0)),e}),_.createHashMap()),e.selectedMap||(e.selectedMap=n)},e.prototype.getRegionModel=function(t){return this._optionModelMap.get(t)||new Gi.A(null,this,this.ecModel)},e.prototype.getFormattedLabel=function(t,e){var n=this.getRegionModel(t),i="normal"===e?n.get(["label","formatter"]):n.get(["emphasis","label","formatter"]),r={name:t};return _.isFunction(i)?(r.status=e,i(r)):_.isString(i)?i.replace("{a}",null!=t?t:""):void 0},e.prototype.setZoom=function(t){this.option.zoom=t},e.prototype.setCenter=function(t){this.option.center=t},e.prototype.select=function(t){var e=this.option,n=e.selectedMode;n&&("multiple"!==n&&(e.selectedMap=null),(e.selectedMap||(e.selectedMap={}))[t]=!0)},e.prototype.unSelect=function(t){var e=this.option.selectedMap;e&&(e[t]=!1)},e.prototype.toggleSelected=function(t){this[this.isSelected(t)?"unSelect":"select"](t)},e.prototype.isSelected=function(t){var e=this.option.selectedMap;return!(!e||!e[t])},e.type="geo",e.layoutMode="box",e.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:"#000"},itemStyle:{borderWidth:.5,borderColor:"#444"},emphasis:{label:{show:!0,color:"rgb(100,0,0)"},itemStyle:{color:"rgba(255,215,0,0.8)"}},select:{label:{show:!0,color:"rgb(100,0,0)"},itemStyle:{color:"rgba(255,215,0,0.8)"}},regions:[]},e}(oi.A);const wa=ba;function Sa(t,e){return t.pointToProjected?t.pointToProjected(e):t.pointToData(e)}function Ta(t,e,n,i){var r=t.getZoom(),o=t.getCenter(),a=e.zoom,s=t.projectedToPoint?t.projectedToPoint(o):t.dataToPoint(o);if(null!=e.dx&&null!=e.dy&&(s[0]-=e.dx,s[1]-=e.dy,t.setCenter(Sa(t,s),i)),null!=a){if(n){var l=n.min||0,h=n.max||1/0;a=Math.max(Math.min(r*a,h),l)/r}t.scaleX*=a,t.scaleY*=a;var c=(e.originX-t.x)*(a-1),u=(e.originY-t.y)*(a-1);t.x-=c,t.y-=u,t.updateTransform(),t.setCenter(Sa(t,s),i),t.setZoom(a*r)}return{center:t.getCenter(),zoom:t.getZoom()}}var Ma=n(3152);const Aa=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n.focusBlurEnabled=!0,n}return(0,Bt.C6)(e,t),e.prototype.init=function(t,e){this._api=e},e.prototype.render=function(t,e,n,i){if(this._model=t,!t.get("show"))return this._mapDraw&&this._mapDraw.remove(),void(this._mapDraw=null);this._mapDraw||(this._mapDraw=new na(n));var r=this._mapDraw;r.draw(t,e,n,this,i),r.group.on("click",this._handleRegionClick,this),r.group.silent=t.get("silent"),this.group.add(r.group),this.updateSelectStatus(t,e,n)},e.prototype._handleRegionClick=function(t){var e;(0,Ma.R)(t.target,(function(t){return null!=(e=(0,Xt.z)(t).eventData)}),!0),e&&this._api.dispatchAction({type:"geoToggleSelect",geoId:this._model.id,name:e.name})},e.prototype.updateSelectStatus=function(t,e,n){var i=this;this._mapDraw.group.traverse((function(t){var e=(0,Xt.z)(t).eventData;if(e)return i._model.isSelected(e.name)?n.enterSelect(t):n.leaveSelect(t),!0}))},e.prototype.findHighDownDispatchers=function(t){return this._mapDraw&&this._mapDraw.findHighDownDispatchers(t,this._model)},e.prototype.dispose=function(){this._mapDraw&&this._mapDraw.remove()},e.type="geo",e}(ri.A);function Ca(t,e,n){No(t,e,n)}function Ia(t){function e(e,n){n.update="geo:updateSelectStatus",t.registerAction(n,(function(t,n){var i={},r=[];return n.eachComponent({mainType:"geo",query:t},(function(n){n[e](t.name);var o=n.coordinateSystem;(0,_.each)(o.regions,(function(t){i[t.name]=n.isSelected(t.name)||!1}));var a=[];(0,_.each)(i,(function(t,e){i[e]&&a.push(e)})),r.push({geoIndex:n.componentIndex,name:a})})),{selected:i,allSelected:r,name:t.name}}))}t.registerCoordinateSystem("geo",xa),t.registerComponentModel(wa),t.registerComponentView(Aa),t.registerImpl("registerMap",Ca),t.registerImpl("getMap",(function(t){return Bo(t)})),e("toggleSelected",{type:"geoToggleSelect",event:"geoselectchanged"}),e("select",{type:"geoSelect",event:"geoselected"}),e("unSelect",{type:"geoUnSelect",event:"geounselected"}),t.registerAction({type:"geoRoam",event:"geoRoam",update:"updateTransform"},(function(t,e,n){var i=t.componentType||"series";e.eachComponent({mainType:i,query:t},(function(e){var r=e.coordinateSystem;if("geo"===r.type){var o=Ta(r,t,e.get("scaleLimit"),n);e.setCenter&&e.setCenter(o.center),e.setZoom&&e.setZoom(o.zoom),"series"===i&&(0,_.each)(e.seriesGroup,(function(t){t.setCenter(o.center),t.setZoom(o.zoom)}))}}))}))}var Ea=n(8526);function ka(t,e){var n=t.isExpand?t.children:[],i=t.parentNode.children,r=t.hierNode.i?i[t.hierNode.i-1]:null;if(n.length){!function(t){var e=t.children,n=e.length,i=0,r=0;for(;--n>=0;){var o=e[n];o.hierNode.prelim+=i,o.hierNode.modifier+=i,r+=o.hierNode.change,i+=o.hierNode.shift+r}}(t);var o=(n[0].hierNode.prelim+n[n.length-1].hierNode.prelim)/2;r?(t.hierNode.prelim=r.hierNode.prelim+e(t,r),t.hierNode.modifier=t.hierNode.prelim-o):t.hierNode.prelim=o}else r&&(t.hierNode.prelim=r.hierNode.prelim+e(t,r));t.parentNode.hierNode.defaultAncestor=function(t,e,n,i){if(e){for(var r=t,o=t,a=o.parentNode.children[0],s=e,l=r.hierNode.modifier,h=o.hierNode.modifier,c=a.hierNode.modifier,u=s.hierNode.modifier;s=Oa(s),o=Na(o),s&&o;){r=Oa(r),a=Na(a),r.hierNode.ancestor=t;var d=s.hierNode.prelim+u-o.hierNode.prelim-h+i(s,o);d>0&&(Ba(Fa(s,t,n),t,d),h+=d,l+=d),u+=s.hierNode.modifier,h+=o.hierNode.modifier,l+=r.hierNode.modifier,c+=a.hierNode.modifier}s&&!Oa(r)&&(r.hierNode.thread=s,r.hierNode.modifier+=u-l),o&&!Na(a)&&(a.hierNode.thread=o,a.hierNode.modifier+=h-c,n=t)}return n}(t,r,t.parentNode.hierNode.defaultAncestor||i[0],e)}function La(t){var e=t.hierNode.prelim+t.parentNode.hierNode.modifier;t.setLayout({x:e},!0),t.hierNode.modifier+=t.parentNode.hierNode.modifier}function Da(t){return arguments.length?t:za}function Pa(t,e){return t-=Math.PI/2,{x:e*Math.cos(t),y:e*Math.sin(t)}}function Ra(t,e){return Mn.dV(t.getBoxLayoutParams(),{width:e.getWidth(),height:e.getHeight()})}function Oa(t){var e=t.children;return e.length&&t.isExpand?e[e.length-1]:t.hierNode.thread}function Na(t){var e=t.children;return e.length&&t.isExpand?e[0]:t.hierNode.thread}function Fa(t,e,n){return t.hierNode.ancestor.parentNode===e.parentNode?t.hierNode.ancestor:n}function Ba(t,e,n){var i=n/(e.hierNode.i-t.hierNode.i);e.hierNode.change-=i,e.hierNode.shift+=n,e.hierNode.modifier+=n,e.hierNode.prelim+=n,t.hierNode.change+=i}function za(t,e){return t.parentNode===e.parentNode?1:2}var Ga=n(4150),Va=function(){this.parentPoint=[],this.childPoints=[]},ja=function(t){function e(e){return t.call(this,e)||this}return(0,Bt.C6)(e,t),e.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},e.prototype.getDefaultShape=function(){return new Va},e.prototype.buildPath=function(t,e){var n=e.childPoints,i=n.length,r=e.parentPoint,o=n[0],a=n[i-1];if(1===i)return t.moveTo(r[0],r[1]),void t.lineTo(o[0],o[1]);var s=e.orient,l="TB"===s||"BT"===s?0:1,h=1-l,c=(0,Se.lo)(e.forkPosition,1),u=[];u[l]=r[l],u[h]=r[h]+(a[h]-r[h])*c,t.moveTo(r[0],r[1]),t.lineTo(u[0],u[1]),t.moveTo(o[0],o[1]),u[l]=o[l],t.lineTo(u[0],u[1]),u[l]=a[l],t.lineTo(u[0],u[1]),t.lineTo(a[0],a[1]);for(var d=1;d<i-1;d++){var p=n[d];t.moveTo(p[0],p[1]),u[l]=p[l],t.lineTo(u[0],u[1])}},e}(s.Ay),Ha=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n._mainGroup=new jt.A,n}return(0,Bt.C6)(e,t),e.prototype.init=function(t,e){this._controller=new Ur(e.getZr()),this._controllerHost={target:this.group},this.group.add(this._mainGroup)},e.prototype.render=function(t,e,n){var i=t.getData(),r=t.layoutInfo,o=this._mainGroup;"radial"===t.get("layout")?(o.x=r.x+r.width/2,o.y=r.y+r.height/2):(o.x=r.x,o.y=r.y),this._updateViewCoordSys(t,n),this._updateController(t,e,n);var a=this._data;i.diff(a).add((function(e){Wa(i,e)&&Ua(i,e,null,o,t)})).update((function(e,n){var r=a.getItemGraphicEl(n);Wa(i,e)?Ua(i,e,r,o,t):r&&Ya(a,n,r,o,t)})).remove((function(e){var n=a.getItemGraphicEl(e);n&&Ya(a,e,n,o,t)})).execute(),this._nodeScaleRatio=t.get("nodeScaleRatio"),this._updateNodeAndLinkScale(t),!0===t.get("expandAndCollapse")&&i.eachItemGraphicEl((function(e,i){e.off("click").on("click",(function(){n.dispatchAction({type:"treeExpandAndCollapse",seriesId:t.id,dataIndex:i})}))})),this._data=i},e.prototype._updateViewCoordSys=function(t,e){var n=t.getData(),i=[];n.each((function(t){var e=n.getItemLayout(t);!e||isNaN(e.x)||isNaN(e.y)||i.push([+e.x,+e.y])}));var r=[],o=[];Ga.Cr(i,r,o);var a=this._min,s=this._max;o[0]-r[0]==0&&(r[0]=a?a[0]:r[0]-1,o[0]=s?s[0]:o[0]+1),o[1]-r[1]==0&&(r[1]=a?a[1]:r[1]-1,o[1]=s?s[1]:o[1]+1);var l=t.coordinateSystem=new da;l.zoomLimit=t.get("scaleLimit"),l.setBoundingRect(r[0],r[1],o[0]-r[0],o[1]-r[1]),l.setCenter(t.get("center"),e),l.setZoom(t.get("zoom")),this.group.attr({x:l.x,y:l.y,scaleX:l.scaleX,scaleY:l.scaleY}),this._min=r,this._max=o},e.prototype._updateController=function(t,e,n){var i=this,r=this._controller,o=this._controllerHost,a=this.group;r.setPointerChecker((function(e,i,r){var o=a.getBoundingRect();return o.applyTransform(a.transform),o.contain(i,r)&&!Zr(e,n,t)})),r.enable(t.get("roam")),o.zoomLimit=t.get("scaleLimit"),o.zoom=t.coordinateSystem.getZoom(),r.off("pan").off("zoom").on("pan",(function(e){qr(o,e.dx,e.dy),n.dispatchAction({seriesId:t.id,type:"treeRoam",dx:e.dx,dy:e.dy})})).on("zoom",(function(e){Xr(o,e.scale,e.originX,e.originY),n.dispatchAction({seriesId:t.id,type:"treeRoam",zoom:e.scale,originX:e.originX,originY:e.originY}),i._updateNodeAndLinkScale(t),n.updateLabelLayout()}))},e.prototype._updateNodeAndLinkScale=function(t){var e=t.getData(),n=this._getNodeGlobalScale(t);e.eachItemGraphicEl((function(t,e){t.setSymbolScale(n)}))},e.prototype._getNodeGlobalScale=function(t){var e=t.coordinateSystem;if("view"!==e.type)return 1;var n=this._nodeScaleRatio,i=e.scaleX||1;return((e.getZoom()-1)*n+1)/i},e.prototype.dispose=function(){this._controller&&this._controller.dispose(),this._controllerHost=null},e.prototype.remove=function(){this._mainGroup.removeAll(),this._data=null},e.type="tree",e}(xe.A);function Wa(t,e){var n=t.getItemLayout(e);return n&&!isNaN(n.x)&&!isNaN(n.y)}function Ua(t,e,n,i,r){var o=!n,a=t.tree.getNodeByDataIndex(e),s=a.getModel(),l=a.getVisual("style").fill,h=!1===a.isExpand&&0!==a.children.length?l:"#fff",c=t.tree.root,u=a.parentNode===c?a:a.parentNode||a,d=t.getItemGraphicEl(u.dataIndex),p=u.getLayout(),f=d?{x:d.__oldX,y:d.__oldY,rawX:d.__radialOldRawX,rawY:d.__radialOldRawY}:p,g=a.getLayout();o?((n=new te(t,e,null,{symbolInnerColor:h,useNameLabel:!0})).x=f.x,n.y=f.y):n.updateData(t,e,null,{symbolInnerColor:h,useNameLabel:!0}),n.__radialOldRawX=n.__radialRawX,n.__radialOldRawY=n.__radialRawY,n.__radialRawX=g.rawX,n.__radialRawY=g.rawY,i.add(n),t.setItemGraphicEl(e,n),n.__oldX=n.x,n.__oldY=n.y,Ut.oi(n,{x:g.x,y:g.y},r);var m=n.getSymbolPath();if("radial"===r.get("layout")){var v=c.children[0],y=v.getLayout(),x=v.children.length,b=void 0,w=void 0;if(g.x===y.x&&!0===a.isExpand&&v.children.length){var S={x:(v.children[0].getLayout().x+v.children[x-1].getLayout().x)/2,y:(v.children[0].getLayout().y+v.children[x-1].getLayout().y)/2};(b=Math.atan2(S.y-y.y,S.x-y.x))<0&&(b=2*Math.PI+b),(w=S.x<y.x)&&(b-=Math.PI)}else(b=Math.atan2(g.y-y.y,g.x-y.x))<0&&(b=2*Math.PI+b),0===a.children.length||0!==a.children.length&&!1===a.isExpand?(w=g.x<y.x)&&(b-=Math.PI):(w=g.x>y.x)||(b-=Math.PI);var T=w?"left":"right",M=s.getModel("label"),A=M.get("rotate"),C=A*(Math.PI/180),I=m.getTextContent();I&&(m.setTextConfig({position:M.get("position")||T,rotation:null==A?-b:C,origin:"center"}),I.setStyle("verticalAlign","middle"))}var E=s.get(["emphasis","focus"]),k="relative"===E?_.concatArray(a.getAncestorsIndices(),a.getDescendantIndices()):"ancestor"===E?a.getAncestorsIndices():"descendant"===E?a.getDescendantIndices():null;k&&((0,Xt.z)(n).focus=k),function(t,e,n,i,r,o,a,s){var l=e.getModel(),h=t.get("edgeShape"),c=t.get("layout"),u=t.getOrient(),d=t.get(["lineStyle","curveness"]),p=t.get("edgeForkPosition"),f=l.getModel("lineStyle").getLineStyle(),g=i.__edge;if("curve"===h)e.parentNode&&e.parentNode!==n&&(g||(g=i.__edge=new Ea.A({shape:Za(c,u,d,r,r)})),Ut.oi(g,{shape:Za(c,u,d,o,a)},t));else if("polyline"===h)if("orthogonal"===c){if(e!==n&&e.children&&0!==e.children.length&&!0===e.isExpand){for(var m=e.children,v=[],y=0;y<m.length;y++){var x=m[y].getLayout();v.push([x.x,x.y])}g||(g=i.__edge=new ja({shape:{parentPoint:[a.x,a.y],childPoints:[[a.x,a.y]],orient:u,forkPosition:p}})),Ut.oi(g,{shape:{parentPoint:[a.x,a.y],childPoints:v}},t)}}else 0;g&&("polyline"!==h||e.isExpand)&&(g.useStyle(_.defaults({strokeNoScale:!0,fill:null},f)),(0,Yt.Mx)(g,l,"lineStyle"),(0,Yt.DW)(g),s.add(g))}(r,a,c,n,f,p,g,i),n.__edge&&(n.onHoverStateChange=function(e){if("blur"!==e){var i=a.parentNode&&t.getItemGraphicEl(a.parentNode.dataIndex);i&&i.hoverState===Yt.zX||(0,Yt.Pk)(n.__edge,e)}})}function qa(t,e,n,i,r){var o=Xa(e.tree.root,t),a=o.source,s=o.sourceLayout,l=e.getItemGraphicEl(t.dataIndex);if(l){var h=e.getItemGraphicEl(a.dataIndex).__edge,c=l.__edge||(!1===a.isExpand||1===a.children.length?h:void 0),u=i.get("edgeShape"),d=i.get("layout"),p=i.get("orient"),f=i.get(["lineStyle","curveness"]);c&&("curve"===u?Ut.Nz(c,{shape:Za(d,p,f,s,s),style:{opacity:0}},i,{cb:function(){n.remove(c)},removeOpt:r}):"polyline"===u&&"orthogonal"===i.get("layout")&&Ut.Nz(c,{shape:{parentPoint:[s.x,s.y],childPoints:[[s.x,s.y]]},style:{opacity:0}},i,{cb:function(){n.remove(c)},removeOpt:r}))}}function Xa(t,e){for(var n,i=e.parentNode===t?e:e.parentNode||e;null==(n=i.getLayout());)i=i.parentNode===t?i:i.parentNode||i;return{source:i,sourceLayout:n}}function Ya(t,e,n,i,r){var o=t.tree.getNodeByDataIndex(e),a=Xa(t.tree.root,o).sourceLayout,s={duration:r.get("animationDurationUpdate"),easing:r.get("animationEasingUpdate")};Ut.Nz(n,{x:a.x+1,y:a.y+1},r,{cb:function(){i.remove(n),t.setItemGraphicEl(e,null)},removeOpt:s}),n.fadeOut(null,t.hostModel,{fadeLabel:!0,animation:s}),o.children.forEach((function(e){qa(e,t,i,r,s)})),qa(o,t,i,r,s)}function Za(t,e,n,i,r){var o,a,s,l,h,c,u,d;if("radial"===t){h=i.rawX,u=i.rawY,c=r.rawX,d=r.rawY;var p=Pa(h,u),f=Pa(h,u+(d-u)*n),g=Pa(c,d+(u-d)*n),m=Pa(c,d);return{x1:p.x||0,y1:p.y||0,x2:m.x||0,y2:m.y||0,cpx1:f.x||0,cpy1:f.y||0,cpx2:g.x||0,cpy2:g.y||0}}return h=i.x,u=i.y,c=r.x,d=r.y,"LR"!==e&&"RL"!==e||(o=h+(c-h)*n,a=u,s=c+(h-c)*n,l=d),"TB"!==e&&"BT"!==e||(o=h,a=u+(d-u)*n,s=c,l=d+(u-d)*n),{x1:h,y1:u,x2:c,y2:d,cpx1:o,cpy1:a,cpx2:s,cpy2:l}}const $a=Ha;var Ka=n(8052),Ja=function(){function t(t,e){this.depth=0,this.height=0,this.dataIndex=-1,this.children=[],this.viewChildren=[],this.isExpand=!1,this.name=t||"",this.hostTree=e}return t.prototype.isRemoved=function(){return this.dataIndex<0},t.prototype.eachNode=function(t,e,n){_.isFunction(t)&&(n=e,e=t,t=null),t=t||{},_.isString(t)&&(t={order:t});var i,r=t.order||"preorder",o=this[t.attr||"children"];"preorder"===r&&(i=e.call(n,this));for(var a=0;!i&&a<o.length;a++)o[a].eachNode(t,e,n);"postorder"===r&&e.call(n,this)},t.prototype.updateDepthAndHeight=function(t){var e=0;this.depth=t;for(var n=0;n<this.children.length;n++){var i=this.children[n];i.updateDepthAndHeight(t+1),i.height>e&&(e=i.height)}this.height=e+1},t.prototype.getNodeById=function(t){if(this.getId()===t)return this;for(var e=0,n=this.children,i=n.length;e<i;e++){var r=n[e].getNodeById(t);if(r)return r}},t.prototype.contains=function(t){if(t===this)return!0;for(var e=0,n=this.children,i=n.length;e<i;e++){var r=n[e].contains(t);if(r)return r}},t.prototype.getAncestors=function(t){for(var e=[],n=t?this:this.parentNode;n;)e.push(n),n=n.parentNode;return e.reverse(),e},t.prototype.getAncestorsIndices=function(){for(var t=[],e=this;e;)t.push(e.dataIndex),e=e.parentNode;return t.reverse(),t},t.prototype.getDescendantIndices=function(){var t=[];return this.eachNode((function(e){t.push(e.dataIndex)})),t},t.prototype.getValue=function(t){var e=this.hostTree.data;return e.getStore().get(e.getDimensionIndex(t||"value"),this.dataIndex)},t.prototype.setLayout=function(t,e){this.dataIndex>=0&&this.hostTree.data.setItemLayout(this.dataIndex,t,e)},t.prototype.getLayout=function(){return this.hostTree.data.getItemLayout(this.dataIndex)},t.prototype.getModel=function(t){if(!(this.dataIndex<0))return this.hostTree.data.getItemModel(this.dataIndex).getModel(t)},t.prototype.getLevelModel=function(){return(this.hostTree.levelModels||[])[this.depth]},t.prototype.setVisual=function(t,e){this.dataIndex>=0&&this.hostTree.data.setItemVisual(this.dataIndex,t,e)},t.prototype.getVisual=function(t){return this.hostTree.data.getItemVisual(this.dataIndex,t)},t.prototype.getRawIndex=function(){return this.hostTree.data.getRawIndex(this.dataIndex)},t.prototype.getId=function(){return this.hostTree.data.getId(this.dataIndex)},t.prototype.getChildIndex=function(){if(this.parentNode){for(var t=this.parentNode.children,e=0;e<t.length;++e)if(t[e]===this)return e;return-1}return-1},t.prototype.isAncestorOf=function(t){for(var e=t.parentNode;e;){if(e===this)return!0;e=e.parentNode}return!1},t.prototype.isDescendantOf=function(t){return t!==this&&t.isAncestorOf(this)},t}(),Qa=function(){function t(t){this.type="tree",this._nodes=[],this.hostModel=t}return t.prototype.eachNode=function(t,e,n){this.root.eachNode(t,e,n)},t.prototype.getNodeByDataIndex=function(t){var e=this.data.getRawIndex(t);return this._nodes[e]},t.prototype.getNodeById=function(t){return this.root.getNodeById(t)},t.prototype.update=function(){for(var t=this.data,e=this._nodes,n=0,i=e.length;n<i;n++)e[n].dataIndex=-1;for(n=0,i=t.count();n<i;n++)e[t.getRawIndex(n)].dataIndex=n},t.prototype.clearLayouts=function(){this.data.clearItemLayouts()},t.createTree=function(e,n,i){var r=new t(n),o=[],a=1;!function t(e,n){var i=e.value;a=Math.max(a,_.isArray(i)?i.length:1),o.push(e);var s=new Ja((0,ce.vS)(e.name,""),r);n?function(t,e){var n=e.children;if(t.parentNode===e)return;n.push(t),t.parentNode=e}(s,n):r.root=s,r._nodes.push(s);var l=e.children;if(l)for(var h=0;h<l.length;h++)t(l[h],s)}(e),r.root.updateDepthAndHeight(0);var s=(0,Wn.A)(o,{coordDimensions:["value"],dimensionsCount:a}).dimensions,l=new Un.A(s,n);return l.initData(o),i&&i(l),(0,Ka.A)({mainData:l,struct:r,structAttr:"tree"}),r.update(),r},t}();const ts=Qa;function es(t,e,n){if(t&&_.indexOf(e,t.type)>=0){var i=n.getData().tree.root,r=t.targetNode;if(_.isString(r)&&(r=i.getNodeById(r)),r&&i.contains(r))return{node:r};var o=t.targetNodeId;if(null!=o&&(r=i.getNodeById(o)))return{node:r}}}function ns(t){for(var e=[];t;)(t=t.parentNode)&&e.push(t);return e.reverse()}function is(t,e){var n=ns(t);return _.indexOf(n,e)>=0}function rs(t,e){for(var n=[];t;){var i=t.dataIndex;n.push({name:t.name,dataIndex:i,value:e.getRawValue(i)}),t=t.parentNode}return n.reverse(),n}var os=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.hasSymbolVisual=!0,e.ignoreStyleOnData=!0,e}return(0,Bt.C6)(e,t),e.prototype.getInitialData=function(t){var e={name:t.name,children:t.data},n=t.leaves||{},i=new Gi.A(n,this,this.ecModel),r=ts.createTree(e,this,(function(t){t.wrapMethod("getItemModel",(function(t,e){var n=r.getNodeByDataIndex(e);return n&&n.children.length&&n.isExpand||(t.parentModel=i),t}))}));var o=0;r.eachNode("preorder",(function(t){t.depth>o&&(o=t.depth)}));var a=t.expandAndCollapse&&t.initialTreeDepth>=0?t.initialTreeDepth:o;return r.root.eachNode("preorder",(function(t){var e=t.hostTree.data.getRawDataItem(t.dataIndex);t.isExpand=e&&null!=e.collapsed?!e.collapsed:t.depth<=a})),r.data},e.prototype.getOrient=function(){var t=this.get("orient");return"horizontal"===t?t="LR":"vertical"===t&&(t="TB"),t},e.prototype.setZoom=function(t){this.option.zoom=t},e.prototype.setCenter=function(t){this.option.center=t},e.prototype.formatTooltip=function(t,e,n){for(var i=this.getData().tree,r=i.root.children[0],o=i.getNodeByDataIndex(t),a=o.getValue(),s=o.name;o&&o!==r;)s=o.parentNode.name+"."+s,o=o.parentNode;return(0,br.Qx)("nameValue",{name:s,value:a,noValue:isNaN(a)||null==a})},e.prototype.getDataParams=function(e){var n=t.prototype.getDataParams.apply(this,arguments),i=this.getData().tree.getNodeByDataIndex(e);return n.treeAncestors=rs(i,this),n.collapsed=!i.isExpand,n},e.type="series.tree",e.layoutMode="box",e.defaultOption={z:2,coordinateSystem:"view",left:"12%",top:"12%",right:"12%",bottom:"12%",layout:"orthogonal",edgeShape:"curve",edgeForkPosition:"50%",roam:!1,nodeScaleRatio:.4,center:null,zoom:1,orient:"LR",symbol:"emptyCircle",symbolSize:7,expandAndCollapse:!0,initialTreeDepth:2,lineStyle:{color:"#ccc",width:1.5,curveness:.5},itemStyle:{color:"lightsteelblue",borderWidth:1.5},label:{show:!0},animationEasing:"linear",animationDuration:700,animationDurationUpdate:500},e}(Gt.A);const as=os;function ss(t,e){for(var n,i=[t];n=i.pop();)if(e(n),n.isExpand){var r=n.children;if(r.length)for(var o=r.length-1;o>=0;o--)i.push(r[o])}}function ls(t,e){t.eachSeriesByType("tree",(function(t){!function(t,e){var n=Ra(t,e);t.layoutInfo=n;var i=t.get("layout"),r=0,o=0,a=null;"radial"===i?(r=2*Math.PI,o=Math.min(n.height,n.width)/2,a=Da((function(t,e){return(t.parentNode===e.parentNode?1:2)/t.depth}))):(r=n.width,o=n.height,a=Da());var s=t.getData().tree.root,l=s.children[0];if(l){!function(t){var e=t;e.hierNode={defaultAncestor:null,ancestor:e,prelim:0,modifier:0,change:0,shift:0,i:0,thread:null};for(var n,i,r=[e];n=r.pop();)if(i=n.children,n.isExpand&&i.length)for(var o=i.length-1;o>=0;o--){var a=i[o];a.hierNode={defaultAncestor:null,ancestor:a,prelim:0,modifier:0,change:0,shift:0,i:o,thread:null},r.push(a)}}(s),function(t,e,n){for(var i,r=[t],o=[];i=r.pop();)if(o.push(i),i.isExpand){var a=i.children;if(a.length)for(var s=0;s<a.length;s++)r.push(a[s])}for(;i=o.pop();)e(i,n)}(l,ka,a),s.hierNode.modifier=-l.hierNode.prelim,ss(l,La);var h=l,c=l,u=l;ss(l,(function(t){var e=t.getLayout().x;e<h.getLayout().x&&(h=t),e>c.getLayout().x&&(c=t),t.depth>u.depth&&(u=t)}));var d=h===c?1:a(h,c)/2,p=d-h.getLayout().x,f=0,g=0,m=0,v=0;if("radial"===i)f=r/(c.getLayout().x+d+p),g=o/(u.depth-1||1),ss(l,(function(t){m=(t.getLayout().x+p)*f,v=(t.depth-1)*g;var e=Pa(m,v);t.setLayout({x:e.x,y:e.y,rawX:m,rawY:v},!0)}));else{var y=t.getOrient();"RL"===y||"LR"===y?(g=o/(c.getLayout().x+d+p),f=r/(u.depth-1||1),ss(l,(function(t){v=(t.getLayout().x+p)*g,m="LR"===y?(t.depth-1)*f:r-(t.depth-1)*f,t.setLayout({x:m,y:v},!0)}))):"TB"!==y&&"BT"!==y||(f=r/(c.getLayout().x+d+p),g=o/(u.depth-1||1),ss(l,(function(t){m=(t.getLayout().x+p)*f,v="TB"===y?(t.depth-1)*g:o-(t.depth-1)*g,t.setLayout({x:m,y:v},!0)})))}}}(t,e)}))}function hs(t){t.eachSeriesByType("tree",(function(t){var e=t.getData();e.tree.eachNode((function(t){var n=t.getModel().getModel("itemStyle").getItemStyle(),i=e.ensureUniqueItemVisual(t.dataIndex,"style");(0,_.extend)(i,n)}))}))}var cs=["treemapZoomToNode","treemapRender","treemapMove"];var us=n(8644);function ds(t){var e=t.getData().tree,n={};e.eachNode((function(e){for(var i=e;i&&i.depth>1;)i=i.parentNode;var r=(0,us.x)(t.ecModel,i.name||i.dataIndex+"",n);e.setVisual("decal",r)}))}function ps(t){var e=0;_.each(t.children,(function(t){ps(t);var n=t.value;_.isArray(n)&&(n=n[0]),e+=n}));var n=t.value;_.isArray(n)&&(n=n[0]),(null==n||isNaN(n))&&(n=e),n<0&&(n=0),_.isArray(t.value)?t.value[0]=n:t.value=n}const fs=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n.preventUsingHoverLayer=!0,n}return(0,Bt.C6)(e,t),e.prototype.getInitialData=function(t,e){var n={name:t.name,children:t.data};ps(n);var i=t.levels||[],r=this.designatedVisualItemStyle={},o=new Gi.A({itemStyle:r},this,e);i=t.levels=function(t,e){var n,i,r=(0,ce.qB)(e.get("color")),o=(0,ce.qB)(e.get(["aria","decal","decals"]));if(!r)return;t=t||[],_.each(t,(function(t){var e=new Gi.A(t),r=e.get("color"),o=e.get("decal");(e.get(["itemStyle","color"])||r&&"none"!==r)&&(n=!0),(e.get(["itemStyle","decal"])||o&&"none"!==o)&&(i=!0)}));var a=t[0]||(t[0]={});n||(a.color=r.slice());!i&&o&&(a.decal=o.slice());return t}(i,e);var a=_.map(i||[],(function(t){return new Gi.A(t,o,e)}),this),s=ts.createTree(n,this,(function(t){t.wrapMethod("getItemModel",(function(t,e){var n=s.getNodeByDataIndex(e),i=n?a[n.depth]:null;return t.parentModel=i||o,t}))}));return s.data},e.prototype.optionUpdated=function(){this.resetViewRoot()},e.prototype.formatTooltip=function(t,e,n){var i=this.getData(),r=this.getRawValue(t),o=i.getName(t);return(0,br.Qx)("nameValue",{name:o,value:r})},e.prototype.getDataParams=function(e){var n=t.prototype.getDataParams.apply(this,arguments),i=this.getData().tree.getNodeByDataIndex(e);return n.treeAncestors=rs(i,this),n.treePathInfo=n.treeAncestors,n},e.prototype.setLayoutInfo=function(t){this.layoutInfo=this.layoutInfo||{},_.extend(this.layoutInfo,t)},e.prototype.mapIdToIndex=function(t){var e=this._idIndexMap;e||(e=this._idIndexMap=_.createHashMap(),this._idIndexMapCount=0);var n=e.get(t);return null==n&&e.set(t,n=this._idIndexMapCount++),n},e.prototype.getViewRoot=function(){return this._viewRoot},e.prototype.resetViewRoot=function(t){t?this._viewRoot=t:t=this._viewRoot;var e=this.getRawData().tree.root;t&&(t===e||e.contains(t))||(this._viewRoot=e)},e.prototype.enableAriaDecal=function(){ds(this)},e.type="series.treemap",e.layoutMode="box",e.defaultOption={progressive:0,left:"center",top:"middle",width:"80%",height:"80%",sort:!0,clipWindow:"origin",squareRatio:.5*(1+Math.sqrt(5)),leafDepth:null,drillDownIcon:"\u25b6",zoomToNodeRatio:.1024,scaleLimit:null,roam:!0,nodeClick:"zoomToNode",animation:!0,animationDurationUpdate:900,animationEasing:"quinticInOut",breadcrumb:{show:!0,height:22,left:"center",top:"bottom",emptyItemWidth:25,itemStyle:{color:"rgba(0,0,0,0.7)",textStyle:{color:"#fff"}},emphasis:{itemStyle:{color:"rgba(0,0,0,0.9)"}}},label:{show:!0,distance:0,padding:5,position:"inside",color:"#fff",overflow:"truncate"},upperLabel:{show:!1,position:[0,"50%"],height:20,overflow:"truncate",verticalAlign:"middle"},itemStyle:{color:null,colorAlpha:null,colorSaturation:null,borderWidth:0,gapWidth:0,borderColor:"#fff",borderColorSaturation:null},emphasis:{upperLabel:{show:!0,position:[0,"50%"],overflow:"truncate",verticalAlign:"middle"}},visualDimension:0,visualMin:null,visualMax:null,color:[],colorAlpha:null,colorSaturation:null,colorMappingBy:"index",visibleMin:10,childrenVisibleMin:null,levels:[]},e}(Gt.A);var gs=n(2110),ms=function(){function t(t){this.group=new jt.A,t.add(this.group)}return t.prototype.render=function(t,e,n,i){var r=t.getModel("breadcrumb"),o=this.group;if(o.removeAll(),r.get("show")&&n){var a=r.getModel("itemStyle"),s=r.getModel("emphasis"),l=a.getModel("textStyle"),h=s.getModel(["itemStyle","textStyle"]),c={pos:{left:r.get("left"),right:r.get("right"),top:r.get("top"),bottom:r.get("bottom")},box:{width:e.getWidth(),height:e.getHeight()},emptyItemWidth:r.get("emptyItemWidth"),totalWidth:0,renderList:[]};this._prepare(n,c,l),this._renderContent(t,c,a,s,l,h,i),Mn.m$(o,c.pos,c.box)}},t.prototype._prepare=function(t,e,n){for(var i=t;i;i=i.parentNode){var r=(0,ce.vS)(i.getModel().get("name"),""),o=n.getTextRect(r),a=Math.max(o.width+16,e.emptyItemWidth);e.totalWidth+=a+8,e.renderList.push({node:i,text:r,width:a})}},t.prototype._renderContent=function(t,e,n,i,r,o,a){for(var s=0,l=e.emptyItemWidth,h=t.get(["breadcrumb","height"]),c=Mn.HU(e.pos,e.box),u=e.totalWidth,d=e.renderList,p=i.getModel("itemStyle").getItemStyle(),f=d.length-1;f>=0;f--){var g=d[f],m=g.node,v=g.width,y=g.text;u>c.width&&(u-=v-l,v=l,y=null);var x=new yr.A({shape:{points:vs(s,0,v,h,f===d.length-1,0===f)},style:(0,_.defaults)(n.getItemStyle(),{lineJoin:"bevel"}),textContent:new Z.Ay({style:(0,Jt.VB)(r,{text:y})}),textConfig:{position:"inside"},z2:1e4*Yt.CA,onclick:(0,_.curry)(a,m)});x.disableLabelAnimation=!0,x.getTextContent().ensureState("emphasis").style=(0,Jt.VB)(o,{text:y}),x.ensureState("emphasis").style=p,(0,Yt.Lm)(x,i.get("focus"),i.get("blurScope"),i.get("disabled")),this.group.add(x),ys(x,t,m),s+=v+8}},t.prototype.remove=function(){this.group.removeAll()},t}();function vs(t,e,n,i,r,o){var a=[[r?t:t-5,e],[t+n,e],[t+n,e+i],[r?t:t-5,e+i]];return!o&&a.splice(2,0,[t+n+5,e+i/2]),!r&&a.push([t,e+i/2]),a}function ys(t,e,n){(0,Xt.z)(t).eventData={componentType:"series",componentSubType:"treemap",componentIndex:e.componentIndex,seriesIndex:e.seriesIndex,seriesName:e.name,seriesType:"treemap",selfType:"breadcrumb",nodeData:{dataIndex:n&&n.dataIndex,name:n&&n.name},treePathInfo:n&&rs(n,e)}}const _s=ms;var xs=function(){function t(){this._storage=[],this._elExistsMap={}}return t.prototype.add=function(t,e,n,i,r){return!this._elExistsMap[t.id]&&(this._elExistsMap[t.id]=!0,this._storage.push({el:t,target:e,duration:n,delay:i,easing:r}),!0)},t.prototype.finished=function(t){return this._finishedCallback=t,this},t.prototype.start=function(){for(var t=this,e=this._storage.length,n=function(){--e<=0&&(t._storage.length=0,t._elExistsMap={},t._finishedCallback&&t._finishedCallback())},i=0,r=this._storage.length;i<r;i++){var o=this._storage[i];o.el.animateTo(o.target,{duration:o.duration,delay:o.delay,easing:o.easing,setToFinal:!0,done:n,aborted:n})}return this},t}();var bs=n(4449),ws=jt.A,Ss=be.A,Ts="label",Ms="upperLabel",As=10*Yt.CA,Cs=2*Yt.CA,Is=3*Yt.CA,Es=(0,bs.A)([["fill","color"],["stroke","strokeColor"],["lineWidth","strokeWidth"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["shadowColor"]]),ks=function(t){var e=Es(t);return e.stroke=e.fill=e.lineWidth=null,e},Ls=(0,ce.$r)(),Ds=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n._state="ready",n._storage={nodeGroup:[],background:[],content:[]},n}return(0,Bt.C6)(e,t),e.prototype.render=function(t,e,n,i){var r=e.findComponents({mainType:"series",subType:"treemap",query:i});if(!((0,_.indexOf)(r,t)<0)){this.seriesModel=t,this.api=n,this.ecModel=e;var o=es(i,["treemapZoomToNode","treemapRootToNode"],t),a=i&&i.type,s=t.layoutInfo,l=!this._oldTree,h=this._storage,c="treemapRootToNode"===a&&o&&h?{rootNodeGroup:h.nodeGroup[o.node.getRawIndex()],direction:i.direction}:null,u=this._giveContainerGroup(s),d=t.get("animation"),p=this._doRender(u,t,c);!d||l||a&&"treemapZoomToNode"!==a&&"treemapRootToNode"!==a?p.renderFinally():this._doAnimation(u,p,t,c),this._resetController(n),this._renderBreadcrumb(t,n,o)}},e.prototype._giveContainerGroup=function(t){var e=this._containerGroup;return e||(e=this._containerGroup=new ws,this._initEvents(e),this.group.add(e)),e.x=t.x,e.y=t.y,e},e.prototype._doRender=function(t,e,n){var i=e.getData().tree,r=this._oldTree,o={nodeGroup:[],background:[],content:[]},a={nodeGroup:[],background:[],content:[]},s=this._storage,l=[];function h(t,i,r,h){return function(t,e,n,i,r,o,a,s,l,h){if(!a)return;var c=a.getLayout(),u=t.getData(),d=a.getModel();if(u.setItemGraphicEl(a.dataIndex,null),!c||!c.isInView)return;var p=c.width,f=c.height,g=c.borderWidth,m=c.invisible,v=a.getRawIndex(),y=s&&s.getRawIndex(),x=a.viewChildren,b=c.upperHeight,w=x&&x.length,S=d.getModel("itemStyle"),T=d.getModel(["emphasis","itemStyle"]),M=d.getModel(["blur","itemStyle"]),A=d.getModel(["select","itemStyle"]),C=S.get("borderRadius")||0,I=V("nodeGroup",ws);if(!I)return;if(l.add(I),I.x=c.x||0,I.y=c.y||0,I.markRedraw(),Ls(I).nodeWidth=p,Ls(I).nodeHeight=f,c.isAboveViewRoot)return I;var E=V("background",Ss,h,Cs);E&&N(I,E,w&&c.upperLabelHeight);var k=d.getModel("emphasis"),L=k.get("focus"),D=k.get("blurScope"),P=k.get("disabled"),R="ancestor"===L?a.getAncestorsIndices():"descendant"===L?a.getDescendantIndices():L;if(w)(0,Yt.u6)(I)&&(0,Yt.ix)(I,!1),E&&((0,Yt.ix)(E,!P),u.setItemGraphicEl(a.dataIndex,E),(0,Yt.gR)(E,R,D));else{var O=V("content",Ss,h,Is);O&&F(I,O),E.disableMorphing=!0,E&&(0,Yt.u6)(E)&&(0,Yt.ix)(E,!1),(0,Yt.ix)(I,!P),u.setItemGraphicEl(a.dataIndex,I),(0,Yt.gR)(I,R,D)}return I;function N(e,n,i){var r=(0,Xt.z)(n);if(r.dataIndex=a.dataIndex,r.seriesIndex=t.seriesIndex,n.setShape({x:0,y:0,width:p,height:f,r:C}),m)B(n);else{n.invisible=!1;var o=a.getVisual("style"),s=o.stroke,l=ks(S);l.fill=s;var h=Es(T);h.fill=T.get("borderColor");var c=Es(M);c.fill=M.get("borderColor");var u=Es(A);if(u.fill=A.get("borderColor"),i){var d=p-2*g;z(n,s,o.opacity,{x:g,y:0,width:d,height:b})}else n.removeTextContent();n.setStyle(l),n.ensureState("emphasis").style=h,n.ensureState("blur").style=c,n.ensureState("select").style=u,(0,Yt.DW)(n)}e.add(n)}function F(e,n){var i=(0,Xt.z)(n);i.dataIndex=a.dataIndex,i.seriesIndex=t.seriesIndex;var r=Math.max(p-2*g,0),o=Math.max(f-2*g,0);if(n.culling=!0,n.setShape({x:g,y:g,width:r,height:o,r:C}),m)B(n);else{n.invisible=!1;var s=a.getVisual("style"),l=s.fill,h=ks(S);h.fill=l,h.decal=s.decal;var c=Es(T),u=Es(M),d=Es(A);z(n,l,s.opacity,null),n.setStyle(h),n.ensureState("emphasis").style=c,n.ensureState("blur").style=u,n.ensureState("select").style=d,(0,Yt.DW)(n)}e.add(n)}function B(t){!t.invisible&&o.push(t)}function z(e,n,i,r){var o=d.getModel(r?Ms:Ts),s=(0,ce.vS)(d.get("name"),null),l=o.getShallow("show");(0,Jt.qM)(e,(0,Jt.lx)(d,r?Ms:Ts),{defaultText:l?s:null,inheritColor:n,defaultOpacity:i,labelFetcher:t,labelDataIndex:a.dataIndex});var h=e.getTextContent();if(h){var u=h.style,p=(0,_.normalizeCssArray)(u.padding||0);r&&(e.setTextConfig({layoutRect:r}),h.disableLabelLayout=!0),h.beforeUpdate=function(){var t=Math.max((r?r.width:e.shape.width)-p[1]-p[3],0),n=Math.max((r?r.height:e.shape.height)-p[0]-p[2],0);u.width===t&&u.height===n||h.setStyle({width:t,height:n})},u.truncateMinChar=2,u.lineOverflow="truncate",G(u,r,c);var f=h.getState("emphasis");G(f?f.style:null,r,c)}}function G(e,n,i){var r=e?e.text:null;if(!n&&i.isLeafRoot&&null!=r){var o=t.get("drillDownIcon",!0);e.text=o?o+" "+r:r}}function V(t,i,o,a){var s=null!=y&&n[t][y],l=r[t];return s?(n[t][y]=null,j(l,s)):m||((s=new i)instanceof Vo.Ay&&(s.z2=function(t,e){return t*As+e}(o,a)),H(l,s)),e[t][v]=s}function j(t,e){var n=t[v]={};e instanceof ws?(n.oldX=e.x,n.oldY=e.y):n.oldShape=(0,_.extend)({},e.shape)}function H(t,e){var n=t[v]={},o=a.parentNode,s=e instanceof jt.A;if(o&&(!i||"drillDown"===i.direction)){var l=0,h=0,c=r.background[o.getRawIndex()];!i&&c&&c.oldShape&&(l=c.oldShape.width,h=c.oldShape.height),s?(n.oldX=0,n.oldY=h):n.oldShape={x:l,y:h,width:0,height:0}}n.fadein=!s}}(e,a,s,n,o,l,t,i,r,h)}!function t(e,n,i,r,o){r?(n=e,(0,_.each)(e,(function(t,e){!t.isRemoved()&&s(e,e)}))):new gs.A(n,e,a,a).add(s).update(s).remove((0,_.curry)(s,null)).execute();function a(t){return t.getId()}function s(a,s){var l=null!=a?e[a]:null,c=null!=s?n[s]:null,u=h(l,c,i,o);u&&t(l&&l.viewChildren||[],c&&c.viewChildren||[],u,r,o+1)}}(i.root?[i.root]:[],r&&r.root?[r.root]:[],t,i===r||!r,0);var c=function(t){var e={nodeGroup:[],background:[],content:[]};return t&&(0,_.each)(t,(function(t,n){var i=e[n];(0,_.each)(t,(function(t){t&&(i.push(t),Ls(t).willDelete=!0)}))})),e}(s);if(this._oldTree=i,this._storage=a,this._controllerHost){var u=this.seriesModel.layoutInfo,d=i.root.getLayout();d.width===u.width&&d.height===u.height&&(this._controllerHost.zoom=1)}return{lastsForAnimation:o,willDeleteEls:c,renderFinally:function(){(0,_.each)(c,(function(t){(0,_.each)(t,(function(t){t.parent&&t.parent.remove(t)}))})),(0,_.each)(l,(function(t){t.invisible=!0,t.dirty()}))}}},e.prototype._doAnimation=function(t,e,n,i){var r=n.get("animationDurationUpdate"),o=n.get("animationEasing"),a=((0,_.isFunction)(r)?0:r)||0,s=((0,_.isFunction)(o)?null:o)||"cubicOut",l=new xs;(0,_.each)(e.willDeleteEls,(function(t,e){(0,_.each)(t,(function(t,n){if(!t.invisible){var r,o=t.parent,h=Ls(o);if(i&&"drillDown"===i.direction)r=o===i.rootNodeGroup?{shape:{x:0,y:0,width:h.nodeWidth,height:h.nodeHeight},style:{opacity:0}}:{style:{opacity:0}};else{var c=0,u=0;h.willDelete||(c=h.nodeWidth/2,u=h.nodeHeight/2),r="nodeGroup"===e?{x:c,y:u,style:{opacity:0}}:{shape:{x:c,y:u,width:0,height:0},style:{opacity:0}}}r&&l.add(t,r,a,0,s)}}))})),(0,_.each)(this._storage,(function(t,n){(0,_.each)(t,(function(t,i){var r=e.lastsForAnimation[n][i],o={};r&&(t instanceof jt.A?null!=r.oldX&&(o.x=t.x,o.y=t.y,t.x=r.oldX,t.y=r.oldY):(r.oldShape&&(o.shape=(0,_.extend)({},t.shape),t.setShape(r.oldShape)),r.fadein?(t.setStyle("opacity",0),o.style={opacity:1}):1!==t.style.opacity&&(o.style={opacity:1})),l.add(t,o,a,0,s))}))}),this),this._state="animating",l.finished((0,_.bind)((function(){this._state="ready",e.renderFinally()}),this)).start()},e.prototype._resetController=function(t){var e=this._controller,n=this._controllerHost;n||(this._controllerHost={target:this.group},n=this._controllerHost),e||((e=this._controller=new Ur(t.getZr())).enable(this.seriesModel.get("roam")),n.zoomLimit=this.seriesModel.get("scaleLimit"),n.zoom=this.seriesModel.get("zoom"),e.on("pan",(0,_.bind)(this._onPan,this)),e.on("zoom",(0,_.bind)(this._onZoom,this)));var i=new Jn.A(0,0,t.getWidth(),t.getHeight());e.setPointerChecker((function(t,e,n){return i.contain(e,n)}))},e.prototype._clearController=function(){var t=this._controller;this._controllerHost=null,t&&(t.dispose(),t=null)},e.prototype._onPan=function(t){if("animating"!==this._state&&(Math.abs(t.dx)>3||Math.abs(t.dy)>3)){var e=this.seriesModel.getData().tree.root;if(!e)return;var n=e.getLayout();if(!n)return;this.api.dispatchAction({type:"treemapMove",from:this.uid,seriesId:this.seriesModel.id,rootRect:{x:n.x+t.dx,y:n.y+t.dy,width:n.width,height:n.height}})}},e.prototype._onZoom=function(t){var e=t.originX,n=t.originY,i=t.scale;if("animating"!==this._state){var r=this.seriesModel.getData().tree.root;if(!r)return;var o=r.getLayout();if(!o)return;var a,s=new Jn.A(o.x,o.y,o.width,o.height),l=this._controllerHost;a=l.zoomLimit;var h=l.zoom=l.zoom||1;if(h*=i,a){var c=a.min||0,u=a.max||1/0;h=Math.max(Math.min(u,h),c)}var d=h/l.zoom;l.zoom=h;var p=this.seriesModel.layoutInfo;e-=p.x,n-=p.y;var f=_i.create();_i.translate(f,f,[-e,-n]),_i.scale(f,f,[d,d]),_i.translate(f,f,[e,n]),s.applyTransform(f),this.api.dispatchAction({type:"treemapRender",from:this.uid,seriesId:this.seriesModel.id,rootRect:{x:s.x,y:s.y,width:s.width,height:s.height}})}},e.prototype._initEvents=function(t){var e=this;t.on("click",(function(t){if("ready"===e._state){var n=e.seriesModel.get("nodeClick",!0);if(n){var i=e.findTarget(t.offsetX,t.offsetY);if(i){var r=i.node;if(r.getLayout().isLeafRoot)e._rootToNode(i);else if("zoomToNode"===n)e._zoomToNode(i);else if("link"===n){var o=r.hostTree.data.getItemModel(r.dataIndex),a=o.get("link",!0),s=o.get("target",!0)||"blank";a&&(0,Ie.JW)(a,s)}}}}}),this)},e.prototype._renderBreadcrumb=function(t,e,n){var i=this;n||(n=null!=t.get("leafDepth",!0)?{node:t.getViewRoot()}:this.findTarget(e.getWidth()/2,e.getHeight()/2))||(n={node:t.getData().tree.root}),(this._breadcrumb||(this._breadcrumb=new _s(this.group))).render(t,e,n.node,(function(e){"animating"!==i._state&&(is(t.getViewRoot(),e)?i._rootToNode({node:e}):i._zoomToNode({node:e}))}))},e.prototype.remove=function(){this._clearController(),this._containerGroup&&this._containerGroup.removeAll(),this._storage={nodeGroup:[],background:[],content:[]},this._state="ready",this._breadcrumb&&this._breadcrumb.remove()},e.prototype.dispose=function(){this._clearController()},e.prototype._zoomToNode=function(t){this.api.dispatchAction({type:"treemapZoomToNode",from:this.uid,seriesId:this.seriesModel.id,targetNode:t.node})},e.prototype._rootToNode=function(t){this.api.dispatchAction({type:"treemapRootToNode",from:this.uid,seriesId:this.seriesModel.id,targetNode:t.node})},e.prototype.findTarget=function(t,e){var n;return this.seriesModel.getViewRoot().eachNode({attr:"viewChildren",order:"preorder"},(function(i){var r=this._storage.background[i.getRawIndex()];if(r){var o=r.transformCoordToLocal(t,e),a=r.shape;if(!(a.x<=o[0]&&o[0]<=a.x+a.width&&a.y<=o[1]&&o[1]<=a.y+a.height))return!1;n={node:i,offsetX:o[0],offsetY:o[1]}}}),this),n},e.type="treemap",e}(xe.A);const Ps=Ds;var Rs=_.each,Os=_.isObject,Ns=-1,Fs=function(){function t(e){var n=e.mappingMethod,i=e.type,r=this.option=_.clone(e);this.type=i,this.mappingMethod=n,this._normalizeData=Xs[n];var o=t.visualHandlers[i];this.applyVisual=o.applyVisual,this.getColorMapper=o.getColorMapper,this._normalizedToVisual=o._normalizedToVisual[n],"piecewise"===n?(Bs(r),function(t){var e=t.pieceList;t.hasSpecialVisual=!1,_.each(e,(function(e,n){e.originIndex=n,null!=e.visual&&(t.hasSpecialVisual=!0)}))}(r)):"category"===n?r.categories?function(t){var e=t.categories,n=t.categoryMap={},i=t.visual;if(Rs(e,(function(t,e){n[t]=e})),!_.isArray(i)){var r=[];_.isObject(i)?Rs(i,(function(t,e){var i=n[e];r[null!=i?i:Ns]=t})):r[-1]=i,i=qs(t,r)}for(var o=e.length-1;o>=0;o--)null==i[o]&&(delete n[e[o]],e.pop())}(r):Bs(r,!0):(_.assert("linear"!==n||r.dataExtent),Bs(r))}return t.prototype.mapValueToVisual=function(t){var e=this._normalizeData(t);return this._normalizedToVisual(e,t)},t.prototype.getNormalizer=function(){return _.bind(this._normalizeData,this)},t.listVisualTypes=function(){return _.keys(t.visualHandlers)},t.isValidType=function(e){return t.visualHandlers.hasOwnProperty(e)},t.eachVisual=function(t,e,n){_.isObject(t)?_.each(t,e,n):e.call(n,t)},t.mapVisual=function(e,n,i){var r,o=_.isArray(e)?[]:_.isObject(e)?{}:(r=!0,null);return t.eachVisual(e,(function(t,e){var a=n.call(i,t,e);r?o=a:o[e]=a})),o},t.retrieveVisuals=function(e){var n,i={};return e&&Rs(t.visualHandlers,(function(t,r){e.hasOwnProperty(r)&&(i[r]=e[r],n=!0)})),n?i:null},t.prepareVisualTypes=function(t){if(_.isArray(t))t=t.slice();else{if(!Os(t))return[];var e=[];Rs(t,(function(t,n){e.push(n)})),t=e}return t.sort((function(t,e){return"color"===e&&"color"!==t&&0===t.indexOf("color")?1:-1})),t},t.dependsOn=function(t,e){return"color"===e?!(!t||0!==t.indexOf(e)):t===e},t.findPieceIndex=function(t,e,n){for(var i,r=1/0,o=0,a=e.length;o<a;o++){var s=e[o].value;if(null!=s){if(s===t||_.isString(s)&&s===t+"")return o;n&&u(s,o)}}for(o=0,a=e.length;o<a;o++){var l=e[o],h=l.interval,c=l.close;if(h){if(h[0]===-1/0){if(Ys(c[1],t,h[1]))return o}else if(h[1]===1/0){if(Ys(c[0],h[0],t))return o}else if(Ys(c[0],h[0],t)&&Ys(c[1],t,h[1]))return o;n&&u(h[0],o),n&&u(h[1],o)}}if(n)return t===1/0?e.length-1:t===-1/0?0:i;function u(e,n){var o=Math.abs(e-t);o<r&&(r=o,i=n)}},t.visualHandlers={color:{applyVisual:Vs("color"),getColorMapper:function(){var t=this.option;return _.bind("category"===t.mappingMethod?function(t,e){return!e&&(t=this._normalizeData(t)),js.call(this,t)}:function(e,n,i){var r=!!i;return!n&&(e=this._normalizeData(e)),i=K.fastLerp(e,t.parsedVisual,i),r?i:K.stringify(i,"rgba")},this)},_normalizedToVisual:{linear:function(t){return K.stringify(K.fastLerp(t,this.option.parsedVisual),"rgba")},category:js,piecewise:function(t,e){var n=Us.call(this,e);return null==n&&(n=K.stringify(K.fastLerp(t,this.option.parsedVisual),"rgba")),n},fixed:Hs}},colorHue:zs((function(t,e){return K.modifyHSL(t,e)})),colorSaturation:zs((function(t,e){return K.modifyHSL(t,null,e)})),colorLightness:zs((function(t,e){return K.modifyHSL(t,null,null,e)})),colorAlpha:zs((function(t,e){return K.modifyAlpha(t,e)})),decal:{applyVisual:Vs("decal"),_normalizedToVisual:{linear:null,category:js,piecewise:null,fixed:null}},opacity:{applyVisual:Vs("opacity"),_normalizedToVisual:Ws([0,1])},liftZ:{applyVisual:Vs("liftZ"),_normalizedToVisual:{linear:Hs,category:Hs,piecewise:Hs,fixed:Hs}},symbol:{applyVisual:function(t,e,n){n("symbol",this.mapValueToVisual(t))},_normalizedToVisual:{linear:Gs,category:js,piecewise:function(t,e){var n=Us.call(this,e);return null==n&&(n=Gs.call(this,t)),n},fixed:Hs}},symbolSize:{applyVisual:Vs("symbolSize"),_normalizedToVisual:Ws([0,1])}},t}();function Bs(t,e){var n=t.visual,i=[];_.isObject(n)?Rs(n,(function(t){i.push(t)})):null!=n&&i.push(n);e||1!==i.length||{color:1,symbol:1}.hasOwnProperty(t.type)||(i[1]=i[0]),qs(t,i)}function zs(t){return{applyVisual:function(e,n,i){var r=this.mapValueToVisual(e);i("color",t(n("color"),r))},_normalizedToVisual:Ws([0,1])}}function Gs(t){var e=this.option.visual;return e[Math.round((0,Se.Cb)(t,[0,1],[0,e.length-1],!0))]||{}}function Vs(t){return function(e,n,i){i(t,this.mapValueToVisual(e))}}function js(t){var e=this.option.visual;return e[this.option.loop&&t!==Ns?t%e.length:t]}function Hs(){return this.option.visual[0]}function Ws(t){return{linear:function(e){return(0,Se.Cb)(e,t,this.option.visual,!0)},category:js,piecewise:function(e,n){var i=Us.call(this,n);return null==i&&(i=(0,Se.Cb)(e,t,this.option.visual,!0)),i},fixed:Hs}}function Us(t){var e=this.option,n=e.pieceList;if(e.hasSpecialVisual){var i=n[Fs.findPieceIndex(t,n)];if(i&&i.visual)return i.visual[this.type]}}function qs(t,e){return t.visual=e,"color"===t.type&&(t.parsedVisual=_.map(e,(function(t){var e=K.parse(t);return e||[0,0,0,1]}))),e}var Xs={linear:function(t){return(0,Se.Cb)(t,this.option.dataExtent,[0,1],!0)},piecewise:function(t){var e=this.option.pieceList,n=Fs.findPieceIndex(t,e,!0);if(null!=n)return(0,Se.Cb)(n,[0,e.length-1],[0,1],!0)},category:function(t){var e=this.option.categories?this.option.categoryMap[t]:t;return null==e?Ns:e},fixed:_.noop};function Ys(t,e,n){return t?e<=n:e<n}const Zs=Fs;var $s=(0,ce.$r)();const Ks={seriesType:"treemap",reset:function(t){var e=t.getData().tree.root;e.isRemoved()||Js(e,{},t.getViewRoot().getAncestors(),t)}};function Js(t,e,n,i){var r=t.getModel(),o=t.getLayout(),a=t.hostTree.data;if(o&&!o.invisible&&o.isInView){var s,l=r.getModel("itemStyle"),h=function(t,e,n){var i=(0,_.extend)({},e),r=n.designatedVisualItemStyle;return(0,_.each)(["color","colorAlpha","colorSaturation"],(function(n){r[n]=e[n];var o=t.get(n);r[n]=null,null!=o&&(i[n]=o)})),i}(l,e,i),c=a.ensureUniqueItemVisual(t.dataIndex,"style"),u=l.get("borderColor"),d=l.get("borderColorSaturation");null!=d&&(u=function(t,e){return null!=e?(0,K.modifyHSL)(e,null,null,t):null}(d,s=Qs(h))),c.stroke=u;var p=t.viewChildren;if(p&&p.length){var f=function(t,e,n,i,r,o){if(!o||!o.length)return;var a=el(e,"color")||null!=r.color&&"none"!==r.color&&(el(e,"colorAlpha")||el(e,"colorSaturation"));if(!a)return;var s=e.get("visualMin"),l=e.get("visualMax"),h=n.dataExtent.slice();null!=s&&s<h[0]&&(h[0]=s),null!=l&&l>h[1]&&(h[1]=l);var c=e.get("colorMappingBy"),u={type:a.name,dataExtent:h,visual:a.range};"color"!==u.type||"index"!==c&&"id"!==c?u.mappingMethod="linear":(u.mappingMethod="category",u.loop=!0);var d=new Zs(u);return $s(d).drColorMappingBy=c,d}(0,r,o,0,h,p);(0,_.each)(p,(function(t,e){if(t.depth>=n.length||t===n[t.depth]){var o=function(t,e,n,i,r,o){var a=(0,_.extend)({},e);if(r){var s=r.type,l="color"===s&&$s(r).drColorMappingBy,h="index"===l?i:"id"===l?o.mapIdToIndex(n.getId()):n.getValue(t.get("visualDimension"));a[s]=r.mapValueToVisual(h)}return a}(r,h,t,e,f,i);Js(t,o,n,i)}}))}else s=Qs(h),c.fill=s}}function Qs(t){var e=tl(t,"color");if(e){var n=tl(t,"colorAlpha"),i=tl(t,"colorSaturation");return i&&(e=(0,K.modifyHSL)(e,null,null,i)),n&&(e=(0,K.modifyAlpha)(e,n)),e}}function tl(t,e){var n=t[e];if(null!=n&&"none"!==n)return n}function el(t,e){var n=t.get(e);return(0,_.isArray)(n)&&n.length?{name:e,range:n}:null}var nl=Math.max,il=Math.min,rl=_.retrieve,ol=_.each,al=["itemStyle","borderWidth"],sl=["itemStyle","gapWidth"],ll=["upperLabel","show"],hl=["upperLabel","height"];const cl={seriesType:"treemap",reset:function(t,e,n,i){var r=n.getWidth(),o=n.getHeight(),a=t.option,s=Mn.dV(t.getBoxLayoutParams(),{width:n.getWidth(),height:n.getHeight()}),l=a.size||[],h=(0,Se.lo)(rl(s.width,l[0]),r),c=(0,Se.lo)(rl(s.height,l[1]),o),u=i&&i.type,d=es(i,["treemapZoomToNode","treemapRootToNode"],t),p="treemapRender"===u||"treemapMove"===u?i.rootRect:null,f=t.getViewRoot(),g=ns(f);if("treemapMove"!==u){var m="treemapZoomToNode"===u?function(t,e,n,i,r){var o,a=(e||{}).node,s=[i,r];if(!a||a===n)return s;var l=i*r,h=l*t.option.zoomToNodeRatio;for(;o=a.parentNode;){for(var c=0,u=o.children,d=0,p=u.length;d<p;d++)c+=u[d].getValue();var f=a.getValue();if(0===f)return s;h*=c/f;var g=o.getModel(),m=g.get(al);(h+=4*m*m+(3*m+Math.max(m,gl(g)))*Math.pow(h,.5))>Se.Is&&(h=Se.Is),a=o}h<l&&(h=l);var v=Math.pow(h/l,.5);return[i*v,r*v]}(t,d,f,h,c):p?[p.width,p.height]:[h,c],v=a.sort;v&&"asc"!==v&&"desc"!==v&&(v="desc");var y={squareRatio:a.squareRatio,sort:v,leafDepth:a.leafDepth};f.hostTree.clearLayouts();var x={x:0,y:0,width:m[0],height:m[1],area:m[0]*m[1]};f.setLayout(x),ul(f,y,!1,0),x=f.getLayout(),ol(g,(function(t,e){var n=(g[e+1]||f).getValue();t.setLayout(_.extend({dataExtent:[n,n],borderWidth:0,upperHeight:0},x))}))}var b=t.getData().tree.root;b.setLayout(function(t,e,n){if(e)return{x:e.x,y:e.y};var i={x:0,y:0};if(!n)return i;var r=n.node,o=r.getLayout();if(!o)return i;var a=[o.width/2,o.height/2],s=r;for(;s;){var l=s.getLayout();a[0]+=l.x,a[1]+=l.y,s=s.parentNode}return{x:t.width/2-a[0],y:t.height/2-a[1]}}(s,p,d),!0),t.setLayoutInfo(s),fl(b,new Jn.A(-s.x,-s.y,r,o),g,f,0)}};function ul(t,e,n,i){var r,o;if(!t.isRemoved()){var a=t.getLayout();r=a.width,o=a.height;var s=t.getModel(),l=s.get(al),h=s.get(sl)/2,c=gl(s),u=Math.max(l,c),d=l-h,p=u-h;t.setLayout({borderWidth:l,upperHeight:u,upperLabelHeight:c},!0);var f=(r=nl(r-2*d,0))*(o=nl(o-d-p,0)),g=function(t,e,n,i,r,o){var a=t.children||[],s=i.sort;"asc"!==s&&"desc"!==s&&(s=null);var l=null!=i.leafDepth&&i.leafDepth<=o;if(r&&!l)return t.viewChildren=[];a=_.filter(a,(function(t){return!t.isRemoved()})),function(t,e){e&&t.sort((function(t,n){var i="asc"===e?t.getValue()-n.getValue():n.getValue()-t.getValue();return 0===i?"asc"===e?t.dataIndex-n.dataIndex:n.dataIndex-t.dataIndex:i}))}(a,s);var h=function(t,e,n){for(var i=0,r=0,o=e.length;r<o;r++)i+=e[r].getValue();var a,s=t.get("visualDimension");e&&e.length?"value"===s&&n?(a=[e[e.length-1].getValue(),e[0].getValue()],"asc"===n&&a.reverse()):(a=[1/0,-1/0],ol(e,(function(t){var e=t.getValue(s);e<a[0]&&(a[0]=e),e>a[1]&&(a[1]=e)}))):a=[NaN,NaN];return{sum:i,dataExtent:a}}(e,a,s);if(0===h.sum)return t.viewChildren=[];if(h.sum=function(t,e,n,i,r){if(!i)return n;for(var o=t.get("visibleMin"),a=r.length,s=a,l=a-1;l>=0;l--){var h=r["asc"===i?a-l-1:l].getValue();h/n*e<o&&(s=l,n-=h)}return"asc"===i?r.splice(0,a-s):r.splice(s,a-s),n}(e,n,h.sum,s,a),0===h.sum)return t.viewChildren=[];for(var c=0,u=a.length;c<u;c++){var d=a[c].getValue()/h.sum*n;a[c].setLayout({area:d})}l&&(a.length&&t.setLayout({isLeafRoot:!0},!0),a.length=0);return t.viewChildren=a,t.setLayout({dataExtent:h.dataExtent},!0),a}(t,s,f,e,n,i);if(g.length){var m={x:d,y:p,width:r,height:o},v=il(r,o),y=1/0,x=[];x.area=0;for(var b=0,w=g.length;b<w;){var S=g[b];x.push(S),x.area+=S.getLayout().area;var T=dl(x,v,e.squareRatio);T<=y?(b++,y=T):(x.area-=x.pop().getLayout().area,pl(x,v,m,h,!1),v=il(m.width,m.height),x.length=x.area=0,y=1/0)}if(x.length&&pl(x,v,m,h,!0),!n){var M=s.get("childrenVisibleMin");null!=M&&f<M&&(n=!0)}for(b=0,w=g.length;b<w;b++)ul(g[b],e,n,i+1)}}}function dl(t,e,n){for(var i=0,r=1/0,o=0,a=void 0,s=t.length;o<s;o++)(a=t[o].getLayout().area)&&(a<r&&(r=a),a>i&&(i=a));var l=t.area*t.area,h=e*e*n;return l?nl(h*i/l,l/(h*r)):1/0}function pl(t,e,n,i,r){var o=e===n.width?0:1,a=1-o,s=["x","y"],l=["width","height"],h=n[s[o]],c=e?t.area/e:0;(r||c>n[l[a]])&&(c=n[l[a]]);for(var u=0,d=t.length;u<d;u++){var p=t[u],f={},g=c?p.getLayout().area/c:0,m=f[l[a]]=nl(c-2*i,0),v=n[s[o]]+n[l[o]]-h,y=u===d-1||v<g?v:g,_=f[l[o]]=nl(y-2*i,0);f[s[a]]=n[s[a]]+il(i,m/2),f[s[o]]=h+il(i,_/2),h+=y,p.setLayout(f,!0)}n[s[a]]+=c,n[l[a]]-=c}function fl(t,e,n,i,r){var o=t.getLayout(),a=n[r],s=a&&a===t;if(!(a&&!s||r===n.length&&t!==i)){t.setLayout({isInView:!0,invisible:!s&&!e.intersect(o),isAboveViewRoot:s},!0);var l=new Jn.A(e.x-o.x,e.y-o.y,e.width,e.height);ol(t.viewChildren||[],(function(t){fl(t,l,n,i,r+1)}))}}function gl(t){return t.get(ll)?t.get(hl):0}function ml(t){var e=t.findComponents({mainType:"legend"});e&&e.length&&t.eachSeriesByType("graph",(function(t){var n=t.getCategoriesData(),i=t.getGraph().data,r=n.mapArray(n.getName);i.filterSelf((function(t){var n=i.getItemModel(t).getShallow("category");if(null!=n){(0,_.isNumber)(n)&&(n=r[n]);for(var o=0;o<e.length;o++)if(!e[o].isSelected(n))return!1}return!0}))}))}function vl(t){var e={};t.eachSeriesByType("graph",(function(t){var n=t.getCategoriesData(),i=t.getData(),r={};n.each((function(i){var o=n.getName(i);r["ec-"+o]=i;var a=n.getItemModel(i),s=a.getModel("itemStyle").getItemStyle();s.fill||(s.fill=t.getColorFromPalette(o,e)),n.setItemVisual(i,"style",s);for(var l=["symbol","symbolSize","symbolKeepAspect"],h=0;h<l.length;h++){var c=a.getShallow(l[h],!0);null!=c&&n.setItemVisual(i,l[h],c)}})),n.count()&&i.each((function(t){var e=i.getItemModel(t).getShallow("category");if(null!=e){(0,_.isString)(e)&&(e=r["ec-"+e]);var o=n.getItemVisual(e,"style"),a=i.ensureUniqueItemVisual(t,"style");(0,_.extend)(a,o);for(var s=["symbol","symbolSize","symbolKeepAspect"],l=0;l<s.length;l++)i.setItemVisual(t,s[l],n.getItemVisual(e,s[l]))}}))}))}function yl(t){return t instanceof Array||(t=[t,t]),t}function _l(t){t.eachSeriesByType("graph",(function(t){var e=t.getGraph(),n=t.getEdgeData(),i=yl(t.get("edgeSymbol")),r=yl(t.get("edgeSymbolSize"));n.setVisual("fromSymbol",i&&i[0]),n.setVisual("toSymbol",i&&i[1]),n.setVisual("fromSymbolSize",r&&r[0]),n.setVisual("toSymbolSize",r&&r[1]),n.setVisual("style",t.getModel("lineStyle").getLineStyle()),n.each((function(t){var i=n.getItemModel(t),r=e.getEdgeByIndex(t),o=yl(i.getShallow("symbol",!0)),a=yl(i.getShallow("symbolSize",!0)),s=i.getModel("lineStyle").getLineStyle(),l=n.ensureUniqueItemVisual(t,"style");switch((0,_.extend)(l,s),l.stroke){case"source":var h=r.node1.getVisual("style");l.stroke=h&&h.fill;break;case"target":h=r.node2.getVisual("style");l.stroke=h&&h.fill}o[0]&&r.setVisual("fromSymbol",o[0]),o[1]&&r.setVisual("toSymbol",o[1]),a[0]&&r.setVisual("fromSymbolSize",a[0]),a[1]&&r.setVisual("toSymbolSize",a[1])}))}))}var xl="--\x3e",bl=function(t){return t.get("autoCurveness")||null},wl=function(t,e){var n=bl(t),i=20,r=[];if(_.isNumber(n))i=n;else if(_.isArray(n))return void(t.__curvenessList=n);e>i&&(i=e);var o=i%2?i+2:i+3;r=[];for(var a=0;a<o;a++)r.push((a%2?a+1:a)/10*(a%2?-1:1));t.__curvenessList=r},Sl=function(t,e,n){var i=[t.id,t.dataIndex].join("."),r=[e.id,e.dataIndex].join(".");return[n.uid,i,r].join(xl)},Tl=function(t){var e=t.split(xl);return[e[0],e[2],e[1]].join(xl)},Ml=function(t,e){var n=e.__edgeMap;return n[t]?n[t].length:0};function Al(t,e,n,i){var r=bl(e),o=_.isArray(r);if(!r)return null;var a=function(t,e){var n=Sl(t.node1,t.node2,e);return e.__edgeMap[n]}(t,e);if(!a)return null;for(var s=-1,l=0;l<a.length;l++)if(a[l]===n){s=l;break}var h=function(t,e){return Ml(Sl(t.node1,t.node2,e),e)+Ml(Sl(t.node2,t.node1,e),e)}(t,e);wl(e,h),t.lineStyle=t.lineStyle||{};var c=Sl(t.node1,t.node2,e),u=e.__curvenessList,d=o||h%2?0:1;if(a.isForward)return u[d+s];var p=Tl(c),f=Ml(p,e),g=u[s+f+d];return i?o?r&&0===r[0]?(f+d)%2?g:-g:((f%2?0:1)+d)%2?g:-g:(f+d)%2?g:-g:u[s+f+d]}function Cl(t){var e=t.coordinateSystem;if(!e||"view"===e.type){var n=t.getGraph();n.eachNode((function(t){var e=t.getModel();t.setLayout([+e.get("x"),+e.get("y")])})),Il(n,t)}}function Il(t,e){t.eachEdge((function(t,n){var i=_.retrieve3(t.getModel().get(["lineStyle","curveness"]),-Al(t,e,n,!0),0),r=xi.clone(t.node1.getLayout()),o=xi.clone(t.node2.getLayout()),a=[r,o];+i&&a.push([(r[0]+o[0])/2-(r[1]-o[1])*i,(r[1]+o[1])/2-(o[0]-r[0])*i]),t.setLayout(a)}))}function El(t,e){t.eachSeriesByType("graph",(function(t){var e=t.get("layout"),n=t.coordinateSystem;if(n&&"view"!==n.type){var i=t.getData(),r=[];(0,_.each)(n.dimensions,(function(t){r=r.concat(i.mapDimensionsAll(t))}));for(var o=0;o<i.count();o++){for(var a=[],s=!1,l=0;l<r.length;l++){var h=i.get(r[l],o);isNaN(h)||(s=!0),a.push(h)}s?i.setItemLayout(o,n.dataToPoint(a)):i.setItemLayout(o,[NaN,NaN])}Il(i.graph,t)}else e&&"none"!==e||Cl(t)}))}function kl(t){var e=t.coordinateSystem;if("view"!==e.type)return 1;var n=t.option.nodeScaleRatio,i=e.scaleX;return((e.getZoom()-1)*n+1)/i}function Ll(t){var e=t.getVisual("symbolSize");return e instanceof Array&&(e=(e[0]+e[1])/2),+e}var Dl=Math.PI,Pl=[];function Rl(t,e,n,i){var r=t.coordinateSystem;if(!r||"view"===r.type){var o=r.getBoundingRect(),a=t.getData(),s=a.graph,l=o.width/2+o.x,h=o.height/2+o.y,c=Math.min(o.width,o.height)/2,u=a.count();if(a.setLayout({cx:l,cy:h}),u){if(n){var d=r.pointToData(i),p=d[0],f=d[1],g=[p-l,f-h];xi.normalize(g,g),xi.scale(g,g,c),n.setLayout([l+g[0],h+g[1]],!0),Nl(n,t.get(["circular","rotateLabel"]),l,h)}Ol[e](t,s,a,c,l,h,u),s.eachEdge((function(e,n){var i,r=_.retrieve3(e.getModel().get(["lineStyle","curveness"]),Al(e,t,n),0),o=xi.clone(e.node1.getLayout()),a=xi.clone(e.node2.getLayout()),s=(o[0]+a[0])/2,c=(o[1]+a[1])/2;+r&&(i=[l*(r*=3)+s*(1-r),h*r+c*(1-r)]),e.setLayout([o,a,i])}))}}}var Ol={value:function(t,e,n,i,r,o,a){var s=0,l=n.getSum("value"),h=2*Math.PI/(l||a);e.eachNode((function(t){var e=t.getValue("value"),n=h*(l?e:1)/2;s+=n,t.setLayout([i*Math.cos(s)+r,i*Math.sin(s)+o]),s+=n}))},symbolSize:function(t,e,n,i,r,o,a){var s=0;Pl.length=a;var l=kl(t);e.eachNode((function(t){var e=Ll(t);isNaN(e)&&(e=2),e<0&&(e=0),e*=l;var n=Math.asin(e/2/i);isNaN(n)&&(n=Dl/2),Pl[t.dataIndex]=n,s+=2*n}));var h=(2*Dl-s)/a/2,c=0;e.eachNode((function(t){var e=h+Pl[t.dataIndex];c+=e,(!t.getLayout()||!t.getLayout().fixed)&&t.setLayout([i*Math.cos(c)+r,i*Math.sin(c)+o]),c+=e}))}};function Nl(t,e,n,i){var r=t.getGraphicEl();if(r){var o=t.getModel().get(["label","rotate"])||0,a=r.getSymbolPath();if(e){var s=t.getLayout(),l=Math.atan2(s[1]-i,s[0]-n);l<0&&(l=2*Math.PI+l);var h=s[0]<n;h&&(l-=Math.PI);var c=h?"left":"right";a.setTextConfig({rotation:-l,position:c,origin:"center"});var u=a.ensureState("emphasis");_.extend(u.textConfig||(u.textConfig={}),{position:c})}else a.setTextConfig({rotation:o*=Math.PI/180})}}function Fl(t){t.eachSeriesByType("graph",(function(t){"circular"===t.get("layout")&&Rl(t,"symbolSize")}))}var Bl=xi.scaleAndAdd;function zl(t){t.eachSeriesByType("graph",(function(t){var e=t.coordinateSystem;if(!e||"view"===e.type)if("force"===t.get("layout")){var n=t.preservedPoints||{},i=t.getGraph(),r=i.data,o=i.edgeData,a=t.getModel("force"),s=a.get("initLayout");t.preservedPoints?r.each((function(t){var e=r.getId(t);r.setItemLayout(t,n[e]||[NaN,NaN])})):s&&"none"!==s?"circular"===s&&Rl(t,"value"):Cl(t);var l=r.getDataExtent("value"),h=o.getDataExtent("value"),c=a.get("repulsion"),u=a.get("edgeLength"),d=_.isArray(c)?c:[c,c],p=_.isArray(u)?u:[u,u];p=[p[1],p[0]];var f=r.mapArray("value",(function(t,e){var n=r.getItemLayout(e),i=(0,Se.Cb)(t,l,d);return isNaN(i)&&(i=(d[0]+d[1])/2),{w:i,rep:i,fixed:r.getItemModel(e).get("fixed"),p:!n||isNaN(n[0])||isNaN(n[1])?null:n}})),g=o.mapArray("value",(function(e,n){var r=i.getEdgeByIndex(n),o=(0,Se.Cb)(e,h,p);isNaN(o)&&(o=(p[0]+p[1])/2);var a=r.getModel(),s=_.retrieve3(r.getModel().get(["lineStyle","curveness"]),-Al(r,t,n,!0),0);return{n1:f[r.node1.dataIndex],n2:f[r.node2.dataIndex],d:o,curveness:s,ignoreForceLayout:a.get("ignoreForceLayout")}})),m=e.getBoundingRect(),v=function(t,e,n){for(var i=t,r=e,o=n.rect,a=o.width,s=o.height,l=[o.x+a/2,o.y+s/2],h=null==n.gravity?.1:n.gravity,c=0;c<i.length;c++){var u=i[c];u.p||(u.p=xi.create(a*(Math.random()-.5)+l[0],s*(Math.random()-.5)+l[1])),u.pp=xi.clone(u.p),u.edges=null}var d,p,f=null==n.friction?.6:n.friction,g=f;return{warmUp:function(){g=.8*f},setFixed:function(t){i[t].fixed=!0},setUnfixed:function(t){i[t].fixed=!1},beforeStep:function(t){d=t},afterStep:function(t){p=t},step:function(t){d&&d(i,r);for(var e=[],n=i.length,o=0;o<r.length;o++){var a=r[o];if(!a.ignoreForceLayout){var s=a.n1,c=a.n2;xi.sub(e,c.p,s.p);var u=xi.len(e)-a.d,f=c.w/(s.w+c.w);isNaN(f)&&(f=0),xi.normalize(e,e),!s.fixed&&Bl(s.p,s.p,e,f*u*g),!c.fixed&&Bl(c.p,c.p,e,-(1-f)*u*g)}}for(o=0;o<n;o++)(_=i[o]).fixed||(xi.sub(e,l,_.p),Bl(_.p,_.p,e,h*g));for(o=0;o<n;o++){s=i[o];for(var m=o+1;m<n;m++){c=i[m],xi.sub(e,c.p,s.p),0===(u=xi.len(e))&&(xi.set(e,Math.random()-.5,Math.random()-.5),u=1);var v=(s.rep+c.rep)/u/u;!s.fixed&&Bl(s.pp,s.pp,e,v),!c.fixed&&Bl(c.pp,c.pp,e,-v)}}var y=[];for(o=0;o<n;o++){var _;(_=i[o]).fixed||(xi.sub(y,_.p,_.pp),Bl(_.p,_.p,y,g),xi.copy(_.pp,_.p))}var x=(g*=.992)<.01;p&&p(i,r,x),t&&t(x)}}}(f,g,{rect:m,gravity:a.get("gravity"),friction:a.get("friction")});v.beforeStep((function(t,e){for(var n=0,r=t.length;n<r;n++)t[n].fixed&&xi.copy(t[n].p,i.getNodeByIndex(n).getLayout())})),v.afterStep((function(t,e,o){for(var a=0,s=t.length;a<s;a++)t[a].fixed||i.getNodeByIndex(a).setLayout(t[a].p),n[r.getId(a)]=t[a].p;for(a=0,s=e.length;a<s;a++){var l=e[a],h=i.getEdgeByIndex(a),c=l.n1.p,u=l.n2.p,d=h.getLayout();(d=d?d.slice():[])[0]=d[0]||[],d[1]=d[1]||[],xi.copy(d[0],c),xi.copy(d[1],u),+l.curveness&&(d[2]=[(c[0]+u[0])/2-(c[1]-u[1])*l.curveness,(c[1]+u[1])/2-(u[0]-c[0])*l.curveness]),h.setLayout(d)}})),t.forceLayout=v,t.preservedPoints=n,v.step()}else t.forceLayout=null}))}function Gl(t,e){var n=[];return t.eachSeriesByType("graph",(function(t){var i=t.get("coordinateSystem");if(!i||"view"===i){var r=t.getData(),o=r.mapArray((function(t){var e=r.getItemModel(t);return[+e.get("x"),+e.get("y")]})),a=[],s=[];Ga.Cr(o,a,s),s[0]-a[0]==0&&(s[0]+=1,a[0]-=1),s[1]-a[1]==0&&(s[1]+=1,a[1]-=1);var l=(s[0]-a[0])/(s[1]-a[1]),h=function(t,e,n){var i=(0,_.extend)(t.getBoxLayoutParams(),{aspect:n});return(0,Mn.dV)(i,{width:e.getWidth(),height:e.getHeight()})}(t,e,l);isNaN(l)&&(a=[h.x,h.y],s=[h.x+h.width,h.y+h.height]);var c=s[0]-a[0],u=s[1]-a[1],d=h.width,p=h.height,f=t.coordinateSystem=new da;f.zoomLimit=t.get("scaleLimit"),f.setBoundingRect(a[0],a[1],c,u),f.setViewRect(h.x,h.y,d,p),f.setCenter(t.get("center"),e),f.setZoom(t.get("zoom")),n.push(f)}})),n}var Vl=zi.A.prototype,jl=Ea.A.prototype,Hl=function(){this.x1=0,this.y1=0,this.x2=0,this.y2=0,this.percent=1};!function(t){function e(){return null!==t&&t.apply(this,arguments)||this}(0,Bt.C6)(e,t)}(Hl);function Wl(t){return isNaN(+t.cpx1)||isNaN(+t.cpy1)}const Ul=function(t){function e(e){var n=t.call(this,e)||this;return n.type="ec-line",n}return(0,Bt.C6)(e,t),e.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},e.prototype.getDefaultShape=function(){return new Hl},e.prototype.buildPath=function(t,e){Wl(e)?Vl.buildPath.call(this,t,e):jl.buildPath.call(this,t,e)},e.prototype.pointAt=function(t){return Wl(this.shape)?Vl.pointAt.call(this,t):jl.pointAt.call(this,t)},e.prototype.tangentAt=function(t){var e=this.shape,n=Wl(e)?[e.x2-e.x1,e.y2-e.y1]:jl.tangentAt.call(this,t);return xi.normalize(n,n)},e}(s.Ay);var ql=["fromSymbol","toSymbol"];function Xl(t){return"_"+t+"Type"}function Yl(t,e,n){var i=e.getItemVisual(n,t);if(!i||"none"===i)return i;var r=e.getItemVisual(n,t+"Size"),o=e.getItemVisual(n,t+"Rotate"),a=e.getItemVisual(n,t+"Offset"),s=e.getItemVisual(n,t+"KeepAspect"),l=Vt.xU(r);return i+l+Vt.hV(a||0,l)+(o||"")+(s||"")}function Zl(t,e,n){var i=e.getItemVisual(n,t);if(i&&"none"!==i){var r=e.getItemVisual(n,t+"Size"),o=e.getItemVisual(n,t+"Rotate"),a=e.getItemVisual(n,t+"Offset"),s=e.getItemVisual(n,t+"KeepAspect"),l=Vt.xU(r),h=Vt.hV(a||0,l),c=Vt.v5(i,-l[0]/2+h[0],-l[1]/2+h[1],l[0],l[1],null,s);return c.__specifiedRotation=null==o||isNaN(o)?void 0:+o*Math.PI/180||0,c.name=t,c}}function $l(t,e){t.x1=e[0][0],t.y1=e[0][1],t.x2=e[1][0],t.y2=e[1][1],t.percent=1;var n=e[2];n?(t.cpx1=n[0],t.cpy1=n[1]):(t.cpx1=NaN,t.cpy1=NaN)}var Kl=function(t){function e(e,n,i){var r=t.call(this)||this;return r._createLine(e,n,i),r}return(0,Bt.C6)(e,t),e.prototype._createLine=function(t,e,n){var i=t.hostModel,r=function(t){var e=new Ul({name:"line",subPixelOptimize:!0});return $l(e.shape,t),e}(t.getItemLayout(e));r.shape.percent=0,Ut.LW(r,{shape:{percent:1}},i,e),this.add(r),(0,_.each)(ql,(function(n){var i=Zl(n,t,e);this.add(i),this[Xl(n)]=Yl(n,t,e)}),this),this._updateCommonStl(t,e,n)},e.prototype.updateData=function(t,e,n){var i=t.hostModel,r=this.childOfName("line"),o=t.getItemLayout(e),a={shape:{}};$l(a.shape,o),Ut.oi(r,a,i,e),(0,_.each)(ql,(function(n){var i=Yl(n,t,e),r=Xl(n);if(this[r]!==i){this.remove(this.childOfName(n));var o=Zl(n,t,e);this.add(o)}this[r]=i}),this),this._updateCommonStl(t,e,n)},e.prototype.getLinePath=function(){return this.childAt(0)},e.prototype._updateCommonStl=function(t,e,n){var i=t.hostModel,r=this.childOfName("line"),o=n&&n.emphasisLineStyle,a=n&&n.blurLineStyle,s=n&&n.selectLineStyle,l=n&&n.labelStatesModels,h=n&&n.emphasisDisabled,c=n&&n.focus,u=n&&n.blurScope;if(!n||t.hasItemOption){var d=t.getItemModel(e),p=d.getModel("emphasis");o=p.getModel("lineStyle").getLineStyle(),a=d.getModel(["blur","lineStyle"]).getLineStyle(),s=d.getModel(["select","lineStyle"]).getLineStyle(),h=p.get("disabled"),c=p.get("focus"),u=p.get("blurScope"),l=(0,Jt.lx)(d)}var f=t.getItemVisual(e,"style"),g=f.stroke;r.useStyle(f),r.style.fill=null,r.style.strokeNoScale=!0,r.ensureState("emphasis").style=o,r.ensureState("blur").style=a,r.ensureState("select").style=s,(0,_.each)(ql,(function(t){var e=this.childOfName(t);if(e){e.setColor(g),e.style.opacity=f.opacity;for(var n=0;n<Yt.BV.length;n++){var i=Yt.BV[n],o=r.getState(i);if(o){var a=o.style||{},s=e.ensureState(i),l=s.style||(s.style={});null!=a.stroke&&(l[e.__isEmptyBrush?"stroke":"fill"]=a.stroke),null!=a.opacity&&(l.opacity=a.opacity)}}e.markRedraw()}}),this);var m=i.getRawValue(e);(0,Jt.qM)(this,l,{labelDataIndex:e,labelFetcher:{getFormattedLabel:function(e,n){return i.getFormattedLabel(e,n,t.dataType)}},inheritColor:g||"#000",defaultOpacity:f.opacity,defaultText:(null==m?t.getName(e):isFinite(m)?(0,Se.LI)(m):m)+""});var v=this.getTextContent();if(v){var y=l.normal;v.__align=v.style.align,v.__verticalAlign=v.style.verticalAlign,v.__position=y.get("position")||"middle";var x=y.get("distance");(0,_.isArray)(x)||(x=[x,x]),v.__labelDistance=x}this.setTextConfig({position:null,local:!0,inside:!1}),(0,Yt.Lm)(this,c,u,h)},e.prototype.highlight=function(){(0,Yt.HY)(this)},e.prototype.downplay=function(){(0,Yt.SD)(this)},e.prototype.updateLayout=function(t,e){this.setLinePoints(t.getItemLayout(e))},e.prototype.setLinePoints=function(t){var e=this.childOfName("line");$l(e.shape,t),e.dirty()},e.prototype.beforeUpdate=function(){var t=this,e=t.childOfName("fromSymbol"),n=t.childOfName("toSymbol"),i=t.getTextContent();if(e||n||i&&!i.ignore){for(var r=1,o=this.parent;o;)o.scaleX&&(r/=o.scaleX),o=o.parent;var a=t.childOfName("line");if(this.__dirty||a.__dirty){var s=a.shape.percent,l=a.pointAt(0),h=a.pointAt(s),c=xi.sub([],h,l);if(xi.normalize(c,c),e&&(e.setPosition(l),S(e,0),e.scaleX=e.scaleY=r*s,e.markRedraw()),n&&(n.setPosition(h),S(n,1),n.scaleX=n.scaleY=r*s,n.markRedraw()),i&&!i.ignore){i.x=i.y=0,i.originX=i.originY=0;var u=void 0,d=void 0,p=i.__labelDistance,f=p[0]*r,g=p[1]*r,m=s/2,v=a.tangentAt(m),y=[v[1],-v[0]],_=a.pointAt(m);y[1]>0&&(y[0]=-y[0],y[1]=-y[1]);var x=v[0]<0?-1:1;if("start"!==i.__position&&"end"!==i.__position){var b=-Math.atan2(v[1],v[0]);h[0]<l[0]&&(b=Math.PI+b),i.rotation=b}var w=void 0;switch(i.__position){case"insideStartTop":case"insideMiddleTop":case"insideEndTop":case"middle":w=-g,d="bottom";break;case"insideStartBottom":case"insideMiddleBottom":case"insideEndBottom":w=g,d="top";break;default:w=0,d="middle"}switch(i.__position){case"end":i.x=c[0]*f+h[0],i.y=c[1]*g+h[1],u=c[0]>.8?"left":c[0]<-.8?"right":"center",d=c[1]>.8?"top":c[1]<-.8?"bottom":"middle";break;case"start":i.x=-c[0]*f+l[0],i.y=-c[1]*g+l[1],u=c[0]>.8?"right":c[0]<-.8?"left":"center",d=c[1]>.8?"bottom":c[1]<-.8?"top":"middle";break;case"insideStartTop":case"insideStart":case"insideStartBottom":i.x=f*x+l[0],i.y=l[1]+w,u=v[0]<0?"right":"left",i.originX=-f*x,i.originY=-w;break;case"insideMiddleTop":case"insideMiddle":case"insideMiddleBottom":case"middle":i.x=_[0],i.y=_[1]+w,u="center",i.originY=-w;break;case"insideEndTop":case"insideEnd":case"insideEndBottom":i.x=-f*x+h[0],i.y=h[1]+w,u=v[0]>=0?"right":"left",i.originX=f*x,i.originY=-w}i.scaleX=i.scaleY=r,i.setStyle({verticalAlign:i.__verticalAlign||d,align:i.__align||u})}}}function S(t,e){var n=t.__specifiedRotation;if(null==n){var i=a.tangentAt(e);t.attr("rotation",(1===e?-1:1)*Math.PI/2-Math.atan2(i[1],i[0]))}else t.attr("rotation",n)}},e}(jt.A);const Jl=Kl;function Ql(t){var e=t.hostModel,n=e.getModel("emphasis");return{lineStyle:e.getModel("lineStyle").getLineStyle(),emphasisLineStyle:n.getModel(["lineStyle"]).getLineStyle(),blurLineStyle:e.getModel(["blur","lineStyle"]).getLineStyle(),selectLineStyle:e.getModel(["select","lineStyle"]).getLineStyle(),emphasisDisabled:n.get("disabled"),blurScope:n.get("blurScope"),focus:n.get("focus"),labelStatesModels:(0,Jt.lx)(e)}}function th(t){return isNaN(t[0])||isNaN(t[1])}function eh(t){return t&&!th(t[0])&&!th(t[1])}const nh=function(){function t(t){this.group=new jt.A,this._LineCtor=t||Jl}return t.prototype.updateData=function(t){var e=this;this._progressiveEls=null;var n=this,i=n.group,r=n._lineData;n._lineData=t,r||i.removeAll();var o=Ql(t);t.diff(r).add((function(n){e._doAdd(t,n,o)})).update((function(n,i){e._doUpdate(r,t,i,n,o)})).remove((function(t){i.remove(r.getItemGraphicEl(t))})).execute()},t.prototype.updateLayout=function(){var t=this._lineData;t&&t.eachItemGraphicEl((function(e,n){e.updateLayout(t,n)}),this)},t.prototype.incrementalPrepareUpdate=function(t){this._seriesScope=Ql(t),this._lineData=null,this.group.removeAll()},t.prototype.incrementalUpdate=function(t,e){function n(t){t.isGroup||function(t){return t.animators&&t.animators.length>0}(t)||(t.incremental=!0,t.ensureState("emphasis").hoverLayer=!0)}this._progressiveEls=[];for(var i=t.start;i<t.end;i++){if(eh(e.getItemLayout(i))){var r=new this._LineCtor(e,i,this._seriesScope);r.traverse(n),this.group.add(r),e.setItemGraphicEl(i,r),this._progressiveEls.push(r)}}},t.prototype.remove=function(){this.group.removeAll()},t.prototype.eachRendered=function(t){qt.traverseElements(this._progressiveEls||this.group,t)},t.prototype._doAdd=function(t,e,n){if(eh(t.getItemLayout(e))){var i=new this._LineCtor(t,e,n);t.setItemGraphicEl(e,i),this.group.add(i)}},t.prototype._doUpdate=function(t,e,n,i,r){var o=t.getItemGraphicEl(n);eh(e.getItemLayout(i))?(o?o.updateData(e,i,r):o=new this._LineCtor(e,i,r),e.setItemGraphicEl(i,o),this.group.add(o)):this.group.remove(o)},t}();var ih=[],rh=[],oh=[],ah=ue.k3,sh=xi.distSquare,lh=Math.abs;function hh(t,e,n){for(var i,r=t[0],o=t[1],a=t[2],s=1/0,l=n*n,h=.1,c=.1;c<=.9;c+=.1){ih[0]=ah(r[0],o[0],a[0],c),ih[1]=ah(r[1],o[1],a[1],c),(p=lh(sh(ih,e)-l))<s&&(s=p,i=c)}for(var u=0;u<32;u++){var d=i+h;rh[0]=ah(r[0],o[0],a[0],i),rh[1]=ah(r[1],o[1],a[1],i),oh[0]=ah(r[0],o[0],a[0],d),oh[1]=ah(r[1],o[1],a[1],d);var p=sh(rh,e)-l;if(lh(p)<.01)break;var f=sh(oh,e)-l;h/=2,p<0?f>=0?i+=h:i-=h:f>=0?i-=h:i+=h}return i}function ch(t,e){var n=[],i=ue.kx,r=[[],[],[]],o=[[],[]],a=[];e/=2,t.eachEdge((function(t,s){var l=t.getLayout(),h=t.getVisual("fromSymbol"),c=t.getVisual("toSymbol");l.__original||(l.__original=[xi.clone(l[0]),xi.clone(l[1])],l[2]&&l.__original.push(xi.clone(l[2])));var u=l.__original;if(null!=l[2]){if(xi.copy(r[0],u[0]),xi.copy(r[1],u[2]),xi.copy(r[2],u[1]),h&&"none"!==h){var d=Ll(t.node1),p=hh(r,u[0],d*e);i(r[0][0],r[1][0],r[2][0],p,n),r[0][0]=n[3],r[1][0]=n[4],i(r[0][1],r[1][1],r[2][1],p,n),r[0][1]=n[3],r[1][1]=n[4]}if(c&&"none"!==c){d=Ll(t.node2),p=hh(r,u[1],d*e);i(r[0][0],r[1][0],r[2][0],p,n),r[1][0]=n[1],r[2][0]=n[2],i(r[0][1],r[1][1],r[2][1],p,n),r[1][1]=n[1],r[2][1]=n[2]}xi.copy(l[0],r[0]),xi.copy(l[1],r[2]),xi.copy(l[2],r[1])}else{if(xi.copy(o[0],u[0]),xi.copy(o[1],u[1]),xi.sub(a,o[1],o[0]),xi.normalize(a,a),h&&"none"!==h){d=Ll(t.node1);xi.scaleAndAdd(o[0],o[0],a,d*e)}if(c&&"none"!==c){d=Ll(t.node2);xi.scaleAndAdd(o[1],o[1],a,-d*e)}xi.copy(l[0],o[0]),xi.copy(l[1],o[1])}}))}function uh(t){return"view"===t.type}var dh=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return(0,Bt.C6)(e,t),e.prototype.init=function(t,e){var n=new re,i=new nh,r=this.group;this._controller=new Ur(e.getZr()),this._controllerHost={target:r},r.add(n.group),r.add(i.group),this._symbolDraw=n,this._lineDraw=i,this._firstRender=!0},e.prototype.render=function(t,e,n){var i=this,r=t.coordinateSystem;this._model=t;var o=this._symbolDraw,a=this._lineDraw,s=this.group;if(uh(r)){var l={x:r.x,y:r.y,scaleX:r.scaleX,scaleY:r.scaleY};this._firstRender?s.attr(l):Ut.oi(s,l,t)}ch(t.getGraph(),kl(t));var h=t.getData();o.updateData(h);var c=t.getEdgeData();a.updateData(c),this._updateNodeAndLinkScale(),this._updateController(t,e,n),clearTimeout(this._layoutTimeout);var u=t.forceLayout,d=t.get(["force","layoutAnimation"]);u&&this._startForceLayoutIteration(u,d);var p=t.get("layout");h.graph.eachNode((function(e){var n=e.dataIndex,r=e.getGraphicEl(),o=e.getModel();if(r){r.off("drag").off("dragend");var a=o.get("draggable");a&&r.on("drag",(function(o){switch(p){case"force":u.warmUp(),!i._layouting&&i._startForceLayoutIteration(u,d),u.setFixed(n),h.setItemLayout(n,[r.x,r.y]);break;case"circular":h.setItemLayout(n,[r.x,r.y]),e.setLayout({fixed:!0},!0),Rl(t,"symbolSize",e,[o.offsetX,o.offsetY]),i.updateLayout(t);break;default:h.setItemLayout(n,[r.x,r.y]),Il(t.getGraph(),t),i.updateLayout(t)}})).on("dragend",(function(){u&&u.setUnfixed(n)})),r.setDraggable(a,!!o.get("cursor")),"adjacency"===o.get(["emphasis","focus"])&&((0,Xt.z)(r).focus=e.getAdjacentDataIndices())}})),h.graph.eachEdge((function(t){var e=t.getGraphicEl(),n=t.getModel().get(["emphasis","focus"]);e&&"adjacency"===n&&((0,Xt.z)(e).focus={edge:[t.dataIndex],node:[t.node1.dataIndex,t.node2.dataIndex]})}));var f="circular"===t.get("layout")&&t.get(["circular","rotateLabel"]),g=h.getLayout("cx"),m=h.getLayout("cy");h.graph.eachNode((function(t){Nl(t,f,g,m)})),this._firstRender=!1},e.prototype.dispose=function(){this.remove(),this._controller&&this._controller.dispose(),this._controllerHost=null},e.prototype._startForceLayoutIteration=function(t,e){var n=this;!function i(){t.step((function(t){n.updateLayout(n._model),(n._layouting=!t)&&(e?n._layoutTimeout=setTimeout(i,16):i())}))}()},e.prototype._updateController=function(t,e,n){var i=this,r=this._controller,o=this._controllerHost,a=this.group;r.setPointerChecker((function(e,i,r){var o=a.getBoundingRect();return o.applyTransform(a.transform),o.contain(i,r)&&!Zr(e,n,t)})),uh(t.coordinateSystem)?(r.enable(t.get("roam")),o.zoomLimit=t.get("scaleLimit"),o.zoom=t.coordinateSystem.getZoom(),r.off("pan").off("zoom").on("pan",(function(e){qr(o,e.dx,e.dy),n.dispatchAction({seriesId:t.id,type:"graphRoam",dx:e.dx,dy:e.dy})})).on("zoom",(function(e){Xr(o,e.scale,e.originX,e.originY),n.dispatchAction({seriesId:t.id,type:"graphRoam",zoom:e.scale,originX:e.originX,originY:e.originY}),i._updateNodeAndLinkScale(),ch(t.getGraph(),kl(t)),i._lineDraw.updateLayout(),n.updateLabelLayout()}))):r.disable()},e.prototype._updateNodeAndLinkScale=function(){var t=this._model,e=t.getData(),n=kl(t);e.eachItemGraphicEl((function(t,e){t&&t.setSymbolScale(n)}))},e.prototype.updateLayout=function(t){ch(t.getGraph(),kl(t)),this._symbolDraw.updateLayout(),this._lineDraw.updateLayout()},e.prototype.remove=function(){clearTimeout(this._layoutTimeout),this._layouting=!1,this._layoutTimeout=null,this._symbolDraw&&this._symbolDraw.remove(),this._lineDraw&&this._lineDraw.remove()},e.type="graph",e}(xe.A);const ph=dh;var fh=n(9588),gh=n(1452);function mh(t,e,n,i,r){for(var o=new fh.Ay(i),a=0;a<t.length;a++)o.addNode(_.retrieve(t[a].id,t[a].name,a),a);var s=[],l=[],h=0;for(a=0;a<e.length;a++){var c=e[a],u=c.source,d=c.target;o.addEdge(u,d,h)&&(l.push(c),s.push(_.retrieve((0,ce.vS)(c.id,null),u+" > "+d)),h++)}var p,f=n.get("coordinateSystem");if("cartesian2d"===f||"polar"===f)p=(0,zt.A)(t,n);else{var g=gh.A.get(f),m=g&&g.dimensions||[];_.indexOf(m,"value")<0&&m.concat(["value"]);var v=(0,Wn.A)(t,{coordDimensions:m,encodeDefine:n.getEncode()}).dimensions;(p=new Un.A(v,n)).initData(t)}var y=new Un.A(["value"],n);return y.initData(l,s),r&&r(p,y),(0,Ka.A)({mainData:p,struct:o,structAttr:"graph",datas:{node:p,edge:y},datasAttr:{node:"data",edge:"edgeData"}}),o.update(),o}var vh=n(8254),yh=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n.hasSymbolVisual=!0,n}return(0,Bt.C6)(e,t),e.prototype.init=function(e){t.prototype.init.apply(this,arguments);var n=this;function i(){return n._categoriesData}this.legendVisualProvider=new Yn(i,i),this.fillDataTextStyle(e.edges||e.links),this._updateCategoriesData()},e.prototype.mergeOption=function(e){t.prototype.mergeOption.apply(this,arguments),this.fillDataTextStyle(e.edges||e.links),this._updateCategoriesData()},e.prototype.mergeDefaultAndTheme=function(e){t.prototype.mergeDefaultAndTheme.apply(this,arguments),(0,ce.M5)(e,"edgeLabel",["show"])},e.prototype.getInitialData=function(t,e){var n,i=t.edges||t.links||[],r=t.data||t.nodes||[],o=this;if(r&&i){bl(n=this)&&(n.__curvenessList=[],n.__edgeMap={},wl(n));var a=mh(r,i,this,!0,(function(t,e){t.wrapMethod("getItemModel",(function(t){var e=o._categoriesModels[t.getShallow("category")];return e&&(e.parentModel=t.parentModel,t.parentModel=e),t}));var n=Gi.A.prototype.getModel;function i(t,e){var i=n.call(this,t,e);return i.resolveParentPath=r,i}function r(t){if(t&&("label"===t[0]||"label"===t[1])){var e=t.slice();return"label"===t[0]?e[0]="edgeLabel":"label"===t[1]&&(e[1]="edgeLabel"),e}return t}e.wrapMethod("getItemModel",(function(t){return t.resolveParentPath=r,t.getModel=i,t}))}));return _.each(a.edges,(function(t){!function(t,e,n,i){if(bl(n)){var r=Sl(t,e,n),o=n.__edgeMap,a=o[Tl(r)];o[r]&&!a?o[r].isForward=!0:a&&o[r]&&(a.isForward=!0,o[r].isForward=!1),o[r]=o[r]||[],o[r].push(i)}}(t.node1,t.node2,this,t.dataIndex)}),this),a.data}},e.prototype.getGraph=function(){return this.getData().graph},e.prototype.getEdgeData=function(){return this.getGraph().edgeData},e.prototype.getCategoriesData=function(){return this._categoriesData},e.prototype.formatTooltip=function(t,e,n){if("edge"===n){var i=this.getData(),r=this.getDataParams(t,n),o=i.graph.getEdgeByIndex(t),a=i.getName(o.node1.dataIndex),s=i.getName(o.node2.dataIndex),l=[];return null!=a&&l.push(a),null!=s&&l.push(s),(0,br.Qx)("nameValue",{name:l.join(" > "),value:r.value,noValue:null==r.value})}return(0,vh.J)({series:this,dataIndex:t,multipleSeries:e})},e.prototype._updateCategoriesData=function(){var t=_.map(this.option.categories||[],(function(t){return null!=t.value?t:_.extend({value:0},t)})),e=new Un.A(["value"],this);e.initData(t),this._categoriesData=e,this._categoriesModels=e.mapArray((function(t){return e.getItemModel(t)}))},e.prototype.setZoom=function(t){this.option.zoom=t},e.prototype.setCenter=function(t){this.option.center=t},e.prototype.isAnimationEnabled=function(){return t.prototype.isAnimationEnabled.call(this)&&!("force"===this.get("layout")&&this.get(["force","layoutAnimation"]))},e.type="series.graph",e.dependencies=["grid","polar","geo","singleAxis","calendar"],e.defaultOption={z:2,coordinateSystem:"view",legendHoverLink:!0,layout:null,circular:{rotateLabel:!1},force:{initLayout:null,repulsion:[0,50],gravity:.1,friction:.6,edgeLength:30,layoutAnimation:!0},left:"center",top:"center",symbol:"circle",symbolSize:10,edgeSymbol:["none","none"],edgeSymbolSize:10,edgeLabel:{position:"middle",distance:5},draggable:!1,roam:!1,center:null,zoom:1,nodeScaleRatio:.6,label:{show:!1,formatter:"{b}"},itemStyle:{},lineStyle:{color:"#aaa",width:1,opacity:.5},emphasis:{scale:!0,label:{show:!0}},select:{itemStyle:{borderColor:"#212121"}}},e}(Gt.A);const _h=yh;var xh={type:"graphRoam",event:"graphRoam",update:"none"};var bh=function(){this.angle=0,this.width=10,this.r=10,this.x=0,this.y=0},wh=function(t){function e(e){var n=t.call(this,e)||this;return n.type="pointer",n}return(0,Bt.C6)(e,t),e.prototype.getDefaultShape=function(){return new bh},e.prototype.buildPath=function(t,e){var n=Math.cos,i=Math.sin,r=e.r,o=e.width,a=e.angle,s=e.x-n(a)*o*(o>=r/3?1:2),l=e.y-i(a)*o*(o>=r/3?1:2);a=e.angle-Math.PI/2,t.moveTo(s,l),t.lineTo(e.x+n(a)*o,e.y+i(a)*o),t.lineTo(e.x+n(e.angle)*r,e.y+i(e.angle)*r),t.lineTo(e.x-n(a)*o,e.y-i(a)*o),t.lineTo(s,l)},e}(s.Ay);const Sh=wh;function Th(t,e){var n=null==t?"":t+"";return e&&((0,_.isString)(e)?n=e.replace("{value}",n):(0,_.isFunction)(e)&&(n=e(t))),n}var Mh=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return(0,Bt.C6)(e,t),e.prototype.render=function(t,e,n){this.group.removeAll();var i=t.get(["axisLine","lineStyle","color"]),r=function(t,e){var n=t.get("center"),i=e.getWidth(),r=e.getHeight(),o=Math.min(i,r);return{cx:(0,Se.lo)(n[0],e.getWidth()),cy:(0,Se.lo)(n[1],e.getHeight()),r:(0,Se.lo)(t.get("radius"),o/2)}}(t,n);this._renderMain(t,e,n,i,r),this._data=t.getData()},e.prototype.dispose=function(){},e.prototype._renderMain=function(t,e,n,i,r){var o=this.group,a=t.get("clockwise"),s=-t.get("startAngle")/180*Math.PI,l=-t.get("endAngle")/180*Math.PI,h=t.getModel("axisLine"),c=h.get("roundCap")?tn:we.A,u=h.get("show"),d=h.getModel("lineStyle"),p=d.get("width"),f=[s,l];(0,N.q)(f,!a);for(var g=(l=f[1])-(s=f[0]),m=s,v=[],y=0;u&&y<i.length;y++){var x=new c({shape:{startAngle:m,endAngle:l=s+g*Math.min(Math.max(i[y][0],0),1),cx:r.cx,cy:r.cy,clockwise:a,r0:r.r-p,r:r.r},silent:!0});x.setStyle({fill:i[y][1]}),x.setStyle(d.getLineStyle(["color","width"])),v.push(x),m=l}v.reverse(),(0,_.each)(v,(function(t){return o.add(t)}));var b=function(t){if(t<=0)return i[0][1];var e;for(e=0;e<i.length;e++)if(i[e][0]>=t&&(0===e?0:i[e-1][0])<t)return i[e][1];return i[e-1][1]};this._renderTicks(t,e,n,b,r,s,l,a,p),this._renderTitleAndDetail(t,e,n,b,r),this._renderAnchor(t,r),this._renderPointer(t,e,n,b,r,s,l,a,p)},e.prototype._renderTicks=function(t,e,n,i,r,o,a,s,l){for(var h,c,u=this.group,d=r.cx,p=r.cy,f=r.r,g=+t.get("min"),m=+t.get("max"),v=t.getModel("splitLine"),y=t.getModel("axisTick"),x=t.getModel("axisLabel"),b=t.get("splitNumber"),w=y.get("splitNumber"),S=(0,Se.lo)(v.get("length"),f),T=(0,Se.lo)(y.get("length"),f),M=o,A=(a-o)/b,C=A/w,I=v.getModel("lineStyle").getLineStyle(),E=y.getModel("lineStyle").getLineStyle(),k=v.get("distance"),L=0;L<=b;L++){if(h=Math.cos(M),c=Math.sin(M),v.get("show")){var D=k?k+l:l,P=new zi.A({shape:{x1:h*(f-D)+d,y1:c*(f-D)+p,x2:h*(f-S-D)+d,y2:c*(f-S-D)+p},style:I,silent:!0});"auto"===I.stroke&&P.setStyle({stroke:i(L/b)}),u.add(P)}if(x.get("show")){D=x.get("distance")+k;var R=Th((0,Se.LI)(L/b*(m-g)+g),x.get("formatter")),O=i(L/b),N=h*(f-S-D)+d,F=c*(f-S-D)+p,B=x.get("rotate"),z=0;"radial"===B?(z=-M+2*Math.PI)>Math.PI/2&&(z+=Math.PI):"tangential"===B?z=-M-Math.PI/2:(0,_.isNumber)(B)&&(z=B*Math.PI/180),0===z?u.add(new Z.Ay({style:(0,Jt.VB)(x,{text:R,x:N,y:F,verticalAlign:c<-.8?"top":c>.8?"bottom":"middle",align:h<-.4?"left":h>.4?"right":"center"},{inheritColor:O}),silent:!0})):u.add(new Z.Ay({style:(0,Jt.VB)(x,{text:R,x:N,y:F,verticalAlign:"middle",align:"center"},{inheritColor:O}),silent:!0,originX:N,originY:F,rotation:z}))}if(y.get("show")&&L!==b){D=(D=y.get("distance"))?D+l:l;for(var G=0;G<=w;G++){h=Math.cos(M),c=Math.sin(M);var V=new zi.A({shape:{x1:h*(f-D)+d,y1:c*(f-D)+p,x2:h*(f-T-D)+d,y2:c*(f-T-D)+p},silent:!0,style:E});"auto"===E.stroke&&V.setStyle({stroke:i((L+G/w)/b)}),u.add(V),M+=C}M-=C}else M+=A}},e.prototype._renderPointer=function(t,e,n,i,r,o,a,s,h){var c=this.group,u=this._data,d=this._progressEls,p=[],f=t.get(["pointer","show"]),g=t.getModel("progress"),m=g.get("show"),v=t.getData(),y=v.mapDimension("value"),x=+t.get("min"),b=+t.get("max"),w=[x,b],S=[o,a];function T(e,n){var i,o=v.getItemModel(e).getModel("pointer"),a=(0,Se.lo)(o.get("width"),r.r),s=(0,Se.lo)(o.get("length"),r.r),l=t.get(["pointer","icon"]),h=o.get("offsetCenter"),c=(0,Se.lo)(h[0],r.r),u=(0,Se.lo)(h[1],r.r),d=o.get("keepAspect");return(i=l?(0,Vt.v5)(l,c-a/2,u-s,a,s,null,d):new Sh({shape:{angle:-Math.PI/2,width:a,r:s,x:c,y:u}})).rotation=-(n+Math.PI/2),i.x=r.cx,i.y=r.cy,i}function M(t,e){var n=g.get("roundCap")?tn:we.A,i=g.get("overlap"),a=i?g.get("width"):h/v.count(),l=i?r.r-a:r.r-(t+1)*a,c=i?r.r:r.r-t*a,u=new n({shape:{startAngle:o,endAngle:e,cx:r.cx,cy:r.cy,clockwise:s,r0:l,r:c}});return i&&(u.z2=b-v.get(y,t)%b),u}(m||f)&&(v.diff(u).add((function(e){var n=v.get(y,e);if(f){var i=T(e,o);Ut.LW(i,{rotation:-((isNaN(+n)?S[0]:(0,Se.Cb)(n,w,S,!0))+Math.PI/2)},t),c.add(i),v.setItemGraphicEl(e,i)}if(m){var r=M(e,o),a=g.get("clip");Ut.LW(r,{shape:{endAngle:(0,Se.Cb)(n,w,S,a)}},t),c.add(r),(0,Xt.a)(t.seriesIndex,v.dataType,e,r),p[e]=r}})).update((function(e,n){var i=v.get(y,e);if(f){var r=u.getItemGraphicEl(n),a=r?r.rotation:o,s=T(e,a);s.rotation=a,Ut.oi(s,{rotation:-((isNaN(+i)?S[0]:(0,Se.Cb)(i,w,S,!0))+Math.PI/2)},t),c.add(s),v.setItemGraphicEl(e,s)}if(m){var l=d[n],h=M(e,l?l.shape.endAngle:o),_=g.get("clip");Ut.oi(h,{shape:{endAngle:(0,Se.Cb)(i,w,S,_)}},t),c.add(h),(0,Xt.a)(t.seriesIndex,v.dataType,e,h),p[e]=h}})).execute(),v.each((function(t){var e=v.getItemModel(t),n=e.getModel("emphasis"),r=n.get("focus"),o=n.get("blurScope"),a=n.get("disabled");if(f){var s=v.getItemGraphicEl(t),h=v.getItemVisual(t,"style"),c=h.fill;if(s instanceof l.Ay){var u=s.style;s.useStyle((0,_.extend)({image:u.image,x:u.x,y:u.y,width:u.width,height:u.height},h))}else s.useStyle(h),"pointer"!==s.type&&s.setColor(c);s.setStyle(e.getModel(["pointer","itemStyle"]).getItemStyle()),"auto"===s.style.fill&&s.setStyle("fill",i((0,Se.Cb)(v.get(y,t),w,[0,1],!0))),s.z2EmphasisLift=0,(0,Yt.Mx)(s,e),(0,Yt.Lm)(s,r,o,a)}if(m){var d=p[t];d.useStyle(v.getItemVisual(t,"style")),d.setStyle(e.getModel(["progress","itemStyle"]).getItemStyle()),d.z2EmphasisLift=0,(0,Yt.Mx)(d,e),(0,Yt.Lm)(d,r,o,a)}})),this._progressEls=p)},e.prototype._renderAnchor=function(t,e){var n=t.getModel("anchor");if(n.get("show")){var i=n.get("size"),r=n.get("icon"),o=n.get("offsetCenter"),a=n.get("keepAspect"),s=(0,Vt.v5)(r,e.cx-i/2+(0,Se.lo)(o[0],e.r),e.cy-i/2+(0,Se.lo)(o[1],e.r),i,i,null,a);s.z2=n.get("showAbove")?1:0,s.setStyle(n.getModel("itemStyle").getItemStyle()),this.group.add(s)}},e.prototype._renderTitleAndDetail=function(t,e,n,i,r){var o=this,a=t.getData(),s=a.mapDimension("value"),l=+t.get("min"),h=+t.get("max"),c=new jt.A,u=[],d=[],p=t.isAnimationEnabled(),f=t.get(["pointer","showAbove"]);a.diff(this._data).add((function(t){u[t]=new Z.Ay({silent:!0}),d[t]=new Z.Ay({silent:!0})})).update((function(t,e){u[t]=o._titleEls[e],d[t]=o._detailEls[e]})).execute(),a.each((function(e){var n=a.getItemModel(e),o=a.get(s,e),g=new jt.A,m=i((0,Se.Cb)(o,[l,h],[0,1],!0)),v=n.getModel("title");if(v.get("show")){var y=v.get("offsetCenter"),_=r.cx+(0,Se.lo)(y[0],r.r),x=r.cy+(0,Se.lo)(y[1],r.r);(I=u[e]).attr({z2:f?0:2,style:(0,Jt.VB)(v,{x:_,y:x,text:a.getName(e),align:"center",verticalAlign:"middle"},{inheritColor:m})}),g.add(I)}var b=n.getModel("detail");if(b.get("show")){var w=b.get("offsetCenter"),S=r.cx+(0,Se.lo)(w[0],r.r),T=r.cy+(0,Se.lo)(w[1],r.r),M=(0,Se.lo)(b.get("width"),r.r),A=(0,Se.lo)(b.get("height"),r.r),C=t.get(["progress","show"])?a.getItemVisual(e,"style").fill:m,I=d[e],E=b.get("formatter");I.attr({z2:f?0:2,style:(0,Jt.VB)(b,{x:S,y:T,text:Th(o,E),width:isNaN(M)?null:M,height:isNaN(A)?null:A,align:"center",verticalAlign:"middle"},{inheritColor:C})}),(0,Jt.Oh)(I,{normal:b},o,(function(t){return Th(t,E)})),p&&(0,Jt.xb)(I,e,a,t,{getFormattedLabel:function(t,e,n,i,r,a){return Th(a?a.interpolatedValue:o,E)}}),g.add(I)}c.add(g)})),this.group.add(c),this._titleEls=u,this._detailEls=d},e.type="gauge",e}(xe.A);const Ah=Mh;const Ch=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n.visualStyleAccessPath="itemStyle",n}return(0,Bt.C6)(e,t),e.prototype.getInitialData=function(t,e){return qn(this,["value"])},e.type="series.gauge",e.defaultOption={z:2,colorBy:"data",center:["50%","50%"],legendHoverLink:!0,radius:"75%",startAngle:225,endAngle:-45,clockwise:!0,min:0,max:100,splitNumber:10,axisLine:{show:!0,roundCap:!1,lineStyle:{color:[[1,"#E6EBF8"]],width:10}},progress:{show:!1,overlap:!0,width:10,roundCap:!1,clip:!0},splitLine:{show:!0,length:10,distance:10,lineStyle:{color:"#63677A",width:3,type:"solid"}},axisTick:{show:!0,splitNumber:5,length:6,distance:10,lineStyle:{color:"#63677A",width:1,type:"solid"}},axisLabel:{show:!0,distance:15,color:"#464646",fontSize:12,rotate:0},pointer:{icon:null,offsetCenter:[0,0],show:!0,showAbove:!0,length:"60%",width:6,keepAspect:!1},anchor:{show:!1,showAbove:!1,size:6,icon:"circle",offsetCenter:[0,0],keepAspect:!1,itemStyle:{color:"#fff",borderWidth:0,borderColor:"#5470c6"}},title:{show:!0,offsetCenter:[0,"20%"],color:"#464646",fontSize:16,valueAnimation:!1},detail:{show:!0,backgroundColor:"rgba(0,0,0,0)",borderWidth:0,borderColor:"#ccc",width:100,height:null,padding:[5,10],offsetCenter:[0,"40%"],color:"#464646",fontSize:30,fontWeight:"bold",lineHeight:30,valueAnimation:!1}},e}(Gt.A);var Ih=["itemStyle","opacity"],Eh=function(t){function e(e,n){var i=t.call(this)||this,r=i,o=new Pn.A,a=new Z.Ay;return r.setTextContent(a),i.setTextGuideLine(o),i.updateData(e,n,!0),i}return(0,Bt.C6)(e,t),e.prototype.updateData=function(t,e,n){var i=this,r=t.hostModel,o=t.getItemModel(e),a=t.getItemLayout(e),s=o.getModel("emphasis"),l=o.get(Ih);l=null==l?1:l,n||(0,Ut.ap)(i),i.useStyle(t.getItemVisual(e,"style")),i.style.lineJoin="round",n?(i.setShape({points:a.points}),i.style.opacity=0,Ut.LW(i,{style:{opacity:l}},r,e)):Ut.oi(i,{style:{opacity:l},shape:{points:a.points}},r,e),(0,Yt.Mx)(i,o),this._updateLabel(t,e),(0,Yt.Lm)(this,s.get("focus"),s.get("blurScope"),s.get("disabled"))},e.prototype._updateLabel=function(t,e){var n=this,i=this.getTextGuideLine(),r=n.getTextContent(),o=t.hostModel,a=t.getItemModel(e),s=t.getItemLayout(e).label,l=t.getItemVisual(e,"style"),h=l.fill;(0,Jt.qM)(r,(0,Jt.lx)(a),{labelFetcher:t.hostModel,labelDataIndex:e,defaultOpacity:l.opacity,defaultText:t.getName(e)},{normal:{align:s.textAlign,verticalAlign:s.verticalAlign}}),n.setTextConfig({local:!0,inside:!!s.inside,insideStroke:h,outsideFill:h});var c=s.linePoints;i.setShape({points:c}),n.textGuideLineConfig={anchor:c?new Rn.A(c[0][0],c[0][1]):null},Ut.oi(r,{style:{x:s.x,y:s.y}},o,e),r.attr({rotation:s.rotation,originX:s.x,originY:s.y,z2:10}),(0,On.eR)(n,(0,On.rv)(a),{stroke:h})},e}(yr.A);const kh=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n.ignoreLabelLineUpdate=!0,n}return(0,Bt.C6)(e,t),e.prototype.render=function(t,e,n){var i=t.getData(),r=this._data,o=this.group;i.diff(r).add((function(t){var e=new Eh(i,t);i.setItemGraphicEl(t,e),o.add(e)})).update((function(t,e){var n=r.getItemGraphicEl(e);n.updateData(i,t),o.add(n),i.setItemGraphicEl(t,n)})).remove((function(e){var n=r.getItemGraphicEl(e);Ut.t5(n,t,e)})).execute(),this._data=i},e.prototype.remove=function(){this.group.removeAll(),this._data=null},e.prototype.dispose=function(){},e.type="funnel",e}(xe.A);var Lh=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return(0,Bt.C6)(e,t),e.prototype.init=function(e){t.prototype.init.apply(this,arguments),this.legendVisualProvider=new Yn(_.bind(this.getData,this),_.bind(this.getRawData,this)),this._defaultLabelLine(e)},e.prototype.getInitialData=function(t,e){return qn(this,{coordDimensions:["value"],encodeDefaulter:_.curry(Xn.ln,this)})},e.prototype._defaultLabelLine=function(t){(0,ce.M5)(t,"labelLine",["show"]);var e=t.labelLine,n=t.emphasis.labelLine;e.show=e.show&&t.label.show,n.show=n.show&&t.emphasis.label.show},e.prototype.getDataParams=function(e){var n=this.getData(),i=t.prototype.getDataParams.call(this,e),r=n.mapDimension("value"),o=n.getSum(r);return i.percent=o?+(n.get(r,e)/o*100).toFixed(2):0,i.$vars.push("percent"),i},e.type="series.funnel",e.defaultOption={z:2,legendHoverLink:!0,colorBy:"data",left:80,top:60,right:80,bottom:60,minSize:"0%",maxSize:"100%",sort:"descending",orient:"vertical",gap:0,funnelAlign:"center",label:{show:!0,position:"outer"},labelLine:{show:!0,length:20,lineStyle:{width:1}},itemStyle:{borderColor:"#fff",borderWidth:1},emphasis:{label:{show:!0}},select:{itemStyle:{borderColor:"#212121"}}},e}(Gt.A);const Dh=Lh;function Ph(t,e){t.eachSeriesByType("funnel",(function(t){var n=t.getData(),i=n.mapDimension("value"),r=t.get("sort"),o=function(t,e){return Mn.dV(t.getBoxLayoutParams(),{width:e.getWidth(),height:e.getHeight()})}(t,e),a=t.get("orient"),s=o.width,l=o.height,h=function(t,e){for(var n=t.mapDimension("value"),i=t.mapArray(n,(function(t){return t})),r=[],o="ascending"===e,a=0,s=t.count();a<s;a++)r[a]=a;return(0,_.isFunction)(e)?r.sort(e):"none"!==e&&r.sort((function(t,e){return o?i[t]-i[e]:i[e]-i[t]})),r}(n,r),c=o.x,u=o.y,d="horizontal"===a?[(0,Se.lo)(t.get("minSize"),l),(0,Se.lo)(t.get("maxSize"),l)]:[(0,Se.lo)(t.get("minSize"),s),(0,Se.lo)(t.get("maxSize"),s)],p=n.getDataExtent(i),f=t.get("min"),g=t.get("max");null==f&&(f=Math.min(p[0],0)),null==g&&(g=p[1]);var m=t.get("funnelAlign"),v=t.get("gap"),y=(("horizontal"===a?s:l)-v*(n.count()-1))/n.count(),x=function(t,e){if("horizontal"===a){var r=n.get(i,t)||0,o=(0,Se.Cb)(r,[f,g],d,!0),h=void 0;switch(m){case"top":h=u;break;case"center":h=u+(l-o)/2;break;case"bottom":h=u+(l-o)}return[[e,h],[e,h+o]]}var p,v=n.get(i,t)||0,y=(0,Se.Cb)(v,[f,g],d,!0);switch(m){case"left":p=c;break;case"center":p=c+(s-y)/2;break;case"right":p=c+s-y}return[[p,e],[p+y,e]]};"ascending"===r&&(y=-y,v=-v,"horizontal"===a?c+=s:u+=l,h=h.reverse());for(var b=0;b<h.length;b++){var w=h[b],S=h[b+1],T=n.getItemModel(w);if("horizontal"===a){var M=T.get(["itemStyle","width"]);null==M?M=y:(M=(0,Se.lo)(M,s),"ascending"===r&&(M=-M));var A=x(w,c),C=x(S,c+M);c+=M+v,n.setItemLayout(w,{points:A.concat(C.slice().reverse())})}else{var I=T.get(["itemStyle","height"]);null==I?I=y:(I=(0,Se.lo)(I,l),"ascending"===r&&(I=-I));A=x(w,u),C=x(S,u+I);u+=I+v,n.setItemLayout(w,{points:A.concat(C.slice().reverse())})}}!function(t){var e=t.hostModel.get("orient");t.each((function(n){var i,r,o,a,s=t.getItemModel(n),l=s.getModel("label").get("position"),h=s.getModel("labelLine"),c=t.getItemLayout(n),u=c.points,d="inner"===l||"inside"===l||"center"===l||"insideLeft"===l||"insideRight"===l;if(d)"insideLeft"===l?(r=(u[0][0]+u[3][0])/2+5,o=(u[0][1]+u[3][1])/2,i="left"):"insideRight"===l?(r=(u[1][0]+u[2][0])/2-5,o=(u[1][1]+u[2][1])/2,i="right"):(r=(u[0][0]+u[1][0]+u[2][0]+u[3][0])/4,o=(u[0][1]+u[1][1]+u[2][1]+u[3][1])/4,i="center"),a=[[r,o],[r,o]];else{var p=void 0,f=void 0,g=void 0,m=void 0,v=h.get("length");"left"===l?(p=(u[3][0]+u[0][0])/2,f=(u[3][1]+u[0][1])/2,r=(g=p-v)-5,i="right"):"right"===l?(p=(u[1][0]+u[2][0])/2,f=(u[1][1]+u[2][1])/2,r=(g=p+v)+5,i="left"):"top"===l?(p=(u[3][0]+u[0][0])/2,o=(m=(f=(u[3][1]+u[0][1])/2)-v)-5,i="center"):"bottom"===l?(p=(u[1][0]+u[2][0])/2,o=(m=(f=(u[1][1]+u[2][1])/2)+v)+5,i="center"):"rightTop"===l?(p="horizontal"===e?u[3][0]:u[1][0],f="horizontal"===e?u[3][1]:u[1][1],"horizontal"===e?(o=(m=f-v)-5,i="center"):(r=(g=p+v)+5,i="top")):"rightBottom"===l?(p=u[2][0],f=u[2][1],"horizontal"===e?(o=(m=f+v)+5,i="center"):(r=(g=p+v)+5,i="bottom")):"leftTop"===l?(p=u[0][0],f="horizontal"===e?u[0][1]:u[1][1],"horizontal"===e?(o=(m=f-v)-5,i="center"):(r=(g=p-v)-5,i="right")):"leftBottom"===l?(p="horizontal"===e?u[1][0]:u[3][0],f="horizontal"===e?u[1][1]:u[2][1],"horizontal"===e?(o=(m=f+v)+5,i="center"):(r=(g=p-v)-5,i="right")):(p=(u[1][0]+u[2][0])/2,f=(u[1][1]+u[2][1])/2,"horizontal"===e?(o=(m=f+v)+5,i="center"):(r=(g=p+v)+5,i="left")),"horizontal"===e?r=g=p:o=m=f,a=[[p,f],[g,m]]}c.label={linePoints:a,x:r,y:o,verticalAlign:"middle",textAlign:i,inside:d}}))}(n)}))}var Rh=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n._dataGroup=new jt.A,n._initialized=!1,n}return(0,Bt.C6)(e,t),e.prototype.init=function(){this.group.add(this._dataGroup)},e.prototype.render=function(t,e,n,i){this._progressiveEls=null;var r=this._dataGroup,o=t.getData(),a=this._data,s=t.coordinateSystem,l=s.dimensions,h=Fh(t);if(o.diff(a).add((function(t){var e=Nh(o,r,t,l,s);Bh(e,o,t,h)})).update((function(e,n){var i=a.getItemGraphicEl(n),r=Oh(o,e,l,s);o.setItemGraphicEl(e,i),Ut.oi(i,{shape:{points:r}},t,e),(0,Ut.ap)(i),Bh(i,o,e,h)})).remove((function(t){var e=a.getItemGraphicEl(t);r.remove(e)})).execute(),!this._initialized){this._initialized=!0;var c=function(t,e,n){var i=t.model,r=t.getRect(),o=new be.A({shape:{x:r.x,y:r.y,width:r.width,height:r.height}}),a="horizontal"===i.get("layout")?"width":"height";return o.setShape(a,0),Ut.LW(o,{shape:{width:r.width,height:r.height}},e,n),o}(s,t,(function(){setTimeout((function(){r.removeClipPath()}))}));r.setClipPath(c)}this._data=o},e.prototype.incrementalPrepareRender=function(t,e,n){this._initialized=!0,this._data=null,this._dataGroup.removeAll()},e.prototype.incrementalRender=function(t,e,n){for(var i=e.getData(),r=e.coordinateSystem,o=r.dimensions,a=Fh(e),s=this._progressiveEls=[],l=t.start;l<t.end;l++){var h=Nh(i,this._dataGroup,l,o,r);h.incremental=!0,Bh(h,i,l,a),s.push(h)}},e.prototype.remove=function(){this._dataGroup&&this._dataGroup.removeAll(),this._data=null},e.type="parallel",e}(xe.A);function Oh(t,e,n,i){for(var r,o=[],a=0;a<n.length;a++){var s=n[a],l=t.get(t.mapDimension(s),e);r=l,("category"===i.getAxis(s).type?null==r:null==r||isNaN(r))||o.push(i.dataToPoint(l,s))}return o}function Nh(t,e,n,i,r){var o=Oh(t,n,i,r),a=new Pn.A({shape:{points:o},z2:10});return e.add(a),t.setItemGraphicEl(n,a),a}function Fh(t){var e=t.get("smooth",!0);return!0===e&&(e=.3),e=(0,Se.Sm)(e),(0,_.eqNaN)(e)&&(e=0),{smooth:e}}function Bh(t,e,n,i){t.useStyle(e.getItemVisual(n,"style")),t.style.fill=null,t.setShape("smooth",i.smooth);var r=e.getItemModel(n),o=r.getModel("emphasis");(0,Yt.Mx)(t,r,"lineStyle"),(0,Yt.Lm)(t,o.get("focus"),o.get("blurScope"),o.get("disabled"))}const zh=Rh;function Gh(t){var e=t.ecModel.getComponent("parallel",t.get("parallelIndex"));if(e){var n={};return(0,_.each)(e.dimensions,(function(t){var e=+t.replace("dim","");n[t]=e})),n}}const Vh=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n.visualStyleAccessPath="lineStyle",n.visualDrawType="stroke",n}return(0,Bt.C6)(e,t),e.prototype.getInitialData=function(t,e){return(0,zt.A)(null,this,{useEncodeDefaulter:(0,_.bind)(Gh,null,this)})},e.prototype.getRawIndicesByActiveState=function(t){var e=this.coordinateSystem,n=this.getData(),i=[];return e.eachActiveState(n,(function(e,r){t===e&&i.push(n.getRawIndex(r))})),i},e.type="series.parallel",e.dependencies=["parallel"],e.defaultOption={z:2,coordinateSystem:"parallel",parallelIndex:0,label:{show:!1},inactiveOpacity:.05,activeOpacity:1,lineStyle:{width:1,opacity:.45,type:"solid"},emphasis:{label:{show:!1}},progressive:500,smooth:!1,animationEasing:"linear"},e}(Gt.A);var jh=["lineStyle","opacity"];const Hh={seriesType:"parallel",reset:function(t,e){var n=t.coordinateSystem,i={normal:t.get(["lineStyle","opacity"]),active:t.get("activeOpacity"),inactive:t.get("inactiveOpacity")};return{progress:function(t,e){n.eachActiveState(e,(function(t,n){var r=i[t];if("normal"===t&&e.hasItemOption){var o=e.getItemModel(n).get(jh,!0);null!=o&&(r=o)}e.ensureUniqueItemVisual(n,"style").opacity=r}),t.start,t.end)}}}};function Wh(t){!function(t){if(t.parallel)return;var e=!1;_.each(t.series,(function(t){t&&"parallel"===t.type&&(e=!0)})),e&&(t.parallel=[{}])}(t),function(t){var e=ce.qB(t.parallelAxis);_.each(e,(function(e){if(_.isObject(e)){var n=e.parallelIndex||0,i=ce.qB(t.parallel)[n];i&&i.parallelAxisDefault&&_.merge(e,i.parallelAxisDefault,!1)}}))}(t)}var Uh=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return(0,Bt.C6)(e,t),e.prototype.render=function(t,e,n){this._model=t,this._api=n,this._handlers||(this._handlers={},(0,_.each)(qh,(function(t,e){n.getZr().on(e,this._handlers[e]=(0,_.bind)(t,this))}),this)),(0,Ke.N)(this,"_throttledDispatchExpand",t.get("axisExpandRate"),"fixRate")},e.prototype.dispose=function(t,e){(0,Ke.IU)(this,"_throttledDispatchExpand"),(0,_.each)(this._handlers,(function(t,n){e.getZr().off(n,t)})),this._handlers=null},e.prototype._throttledDispatchExpand=function(t){this._dispatchExpand(t)},e.prototype._dispatchExpand=function(t){t&&this._api.dispatchAction((0,_.extend)({type:"parallelAxisExpand"},t))},e.type="parallel",e}(ri.A),qh={mousedown:function(t){Xh(this,"click")&&(this._mouseDownPoint=[t.offsetX,t.offsetY])},mouseup:function(t){var e=this._mouseDownPoint;if(Xh(this,"click")&&e){var n=[t.offsetX,t.offsetY];if(Math.pow(e[0]-n[0],2)+Math.pow(e[1]-n[1],2)>5)return;var i=this._model.coordinateSystem.getSlidedAxisExpandWindow([t.offsetX,t.offsetY]);"none"!==i.behavior&&this._dispatchExpand({axisExpandWindow:i.axisExpandWindow})}this._mouseDownPoint=null},mousemove:function(t){if(!this._mouseDownPoint&&Xh(this,"mousemove")){var e=this._model,n=e.coordinateSystem.getSlidedAxisExpandWindow([t.offsetX,t.offsetY]),i=n.behavior;"jump"===i&&this._throttledDispatchExpand.debounceNextCall(e.get("axisExpandDebounce")),this._throttledDispatchExpand("none"===i?null:{axisExpandWindow:n.axisExpandWindow,animation:"jump"===i?null:{duration:0}})}}};function Xh(t,e){var n=t._model;return n.get("axisExpandable")&&n.get("axisExpandTriggerOn")===e}const Yh=Uh;const Zh=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return(0,Bt.C6)(e,t),e.prototype.init=function(){t.prototype.init.apply(this,arguments),this.mergeOption({})},e.prototype.mergeOption=function(t){var e=this.option;t&&_.merge(e,t,!0),this._initDimensions()},e.prototype.contains=function(t,e){var n=t.get("parallelIndex");return null!=n&&e.getComponent("parallel",n)===this},e.prototype.setAxisExpand=function(t){_.each(["axisExpandable","axisExpandCenter","axisExpandCount","axisExpandWidth","axisExpandWindow"],(function(e){t.hasOwnProperty(e)&&(this.option[e]=t[e])}),this)},e.prototype._initDimensions=function(){var t=this.dimensions=[],e=this.parallelAxisIndex=[],n=_.filter(this.ecModel.queryComponents({mainType:"parallelAxis"}),(function(t){return(t.get("parallelIndex")||0)===this.componentIndex}),this);_.each(n,(function(n){t.push("dim"+n.get("dim")),e.push(n.componentIndex)}))},e.type="parallel",e.dependencies=["parallelAxis"],e.layoutMode="box",e.defaultOption={z:0,left:80,top:60,right:80,bottom:60,layout:"horizontal",axisExpandable:!1,axisExpandCenter:null,axisExpandCount:0,axisExpandWidth:50,axisExpandRate:17,axisExpandDebounce:50,axisExpandSlideTriggerArea:[-.15,.05,.4],axisExpandTriggerOn:"click",parallelAxisDefault:null},e}(oi.A);const $h=function(t){function e(e,n,i,r,o){var a=t.call(this,e,n,i)||this;return a.type=r||"value",a.axisIndex=o,a}return(0,Bt.C6)(e,t),e.prototype.isHorizontal=function(){return"horizontal"!==this.coordinateSystem.getModel().get("layout")},e}(Ti.A);function Kh(t,e,n,i,r,o){t=t||0;var a=n[1]-n[0];if(null!=r&&(r=Qh(r,[0,a])),null!=o&&(o=Math.max(o,null!=r?r:0)),"all"===i){var s=Math.abs(e[1]-e[0]);s=Qh(s,[0,a]),r=o=Qh(s,[r,o]),i=0}e[0]=Qh(e[0],n),e[1]=Qh(e[1],n);var l=Jh(e,i);e[i]+=t;var h,c=r||0,u=n.slice();return l.sign<0?u[0]+=c:u[1]-=c,e[i]=Qh(e[i],u),h=Jh(e,i),null!=r&&(h.sign!==l.sign||h.span<r)&&(e[1-i]=e[i]+l.sign*r),h=Jh(e,i),null!=o&&h.span>o&&(e[1-i]=e[i]+h.sign*o),e}function Jh(t,e){var n=t[e]-t[1-e];return{span:Math.abs(n),sign:n>0?-1:n<0?1:e?-1:1}}function Qh(t,e){return Math.min(null!=e[1]?e[1]:1/0,Math.max(null!=e[0]?e[0]:-1/0,t))}var tc=_.each,ec=Math.min,nc=Math.max,ic=Math.floor,rc=Math.ceil,oc=Se.LI,ac=Math.PI,sc=function(){function t(t,e,n){this.type="parallel",this._axesMap=_.createHashMap(),this._axesLayout={},this.dimensions=t.dimensions,this._model=t,this._init(t,e,n)}return t.prototype._init=function(t,e,n){var i=t.dimensions,r=t.parallelAxisIndex;tc(i,(function(t,n){var i=r[n],o=e.getComponent("parallelAxis",i),a=this._axesMap.set(t,new $h(t,vi.f$(o),[0,0],o.get("type"),i)),s="category"===a.type;a.onBand=s&&o.get("boundaryGap"),a.inverse=o.get("inverse"),o.axis=a,a.model=o,a.coordinateSystem=o.coordinateSystem=this}),this)},t.prototype.update=function(t,e){this._updateAxesFromSeries(this._model,t)},t.prototype.containPoint=function(t){var e=this._makeLayoutInfo(),n=e.axisBase,i=e.layoutBase,r=e.pixelDimIndex,o=t[1-r],a=t[r];return o>=n&&o<=n+e.axisLength&&a>=i&&a<=i+e.layoutLength},t.prototype.getModel=function(){return this._model},t.prototype._updateAxesFromSeries=function(t,e){e.eachSeries((function(n){if(t.contains(n,e)){var i=n.getData();tc(this.dimensions,(function(t){var e=this._axesMap.get(t);e.scale.unionExtentFromData(i,i.mapDimension(t)),vi.af(e.scale,e.model)}),this)}}),this)},t.prototype.resize=function(t,e){this._rect=Mn.dV(t.getBoxLayoutParams(),{width:e.getWidth(),height:e.getHeight()}),this._layoutAxes()},t.prototype.getRect=function(){return this._rect},t.prototype._makeLayoutInfo=function(){var t,e=this._model,n=this._rect,i=["x","y"],r=["width","height"],o=e.get("layout"),a="horizontal"===o?0:1,s=n[r[a]],l=[0,s],h=this.dimensions.length,c=lc(e.get("axisExpandWidth"),l),u=lc(e.get("axisExpandCount")||0,[0,h]),d=e.get("axisExpandable")&&h>3&&h>u&&u>1&&c>0&&s>0,p=e.get("axisExpandWindow");p?(t=lc(p[1]-p[0],l),p[1]=p[0]+t):(t=lc(c*(u-1),l),(p=[c*(e.get("axisExpandCenter")||ic(h/2))-t/2])[1]=p[0]+t);var f=(s-t)/(h-u);f<3&&(f=0);var g=[ic(oc(p[0]/c,1))+1,rc(oc(p[1]/c,1))-1],m=f/c*p[0];return{layout:o,pixelDimIndex:a,layoutBase:n[i[a]],layoutLength:s,axisBase:n[i[1-a]],axisLength:n[r[1-a]],axisExpandable:d,axisExpandWidth:c,axisCollapseWidth:f,axisExpandWindow:p,axisCount:h,winInnerIndices:g,axisExpandWindow0Pos:m}},t.prototype._layoutAxes=function(){var t=this._rect,e=this._axesMap,n=this.dimensions,i=this._makeLayoutInfo(),r=i.layout;e.each((function(t){var e=[0,i.axisLength],n=t.inverse?1:0;t.setExtent(e[n],e[1-n])})),tc(n,(function(e,n){var o=(i.axisExpandable?cc:hc)(n,i),a={horizontal:{x:o.position,y:i.axisLength},vertical:{x:0,y:o.position}},s={horizontal:ac/2,vertical:0},l=[a[r].x+t.x,a[r].y+t.y],h=s[r],c=_i.create();_i.rotate(c,c,h),_i.translate(c,c,l),this._axesLayout[e]={position:l,rotation:h,transform:c,axisNameAvailableWidth:o.axisNameAvailableWidth,axisLabelShow:o.axisLabelShow,nameTruncateMaxWidth:o.nameTruncateMaxWidth,tickDirection:1,labelDirection:1}}),this)},t.prototype.getAxis=function(t){return this._axesMap.get(t)},t.prototype.dataToPoint=function(t,e){return this.axisCoordToPoint(this._axesMap.get(e).dataToCoord(t),e)},t.prototype.eachActiveState=function(t,e,n,i){null==n&&(n=0),null==i&&(i=t.count());var r=this._axesMap,o=this.dimensions,a=[],s=[];_.each(o,(function(e){a.push(t.mapDimension(e)),s.push(r.get(e).model)}));for(var l=this.hasAxisBrushed(),h=n;h<i;h++){var c=void 0;if(l){c="active";for(var u=t.getValues(a,h),d=0,p=o.length;d<p;d++){if("inactive"===s[d].getActiveState(u[d])){c="inactive";break}}}else c="normal";e(c,h)}},t.prototype.hasAxisBrushed=function(){for(var t=this.dimensions,e=this._axesMap,n=!1,i=0,r=t.length;i<r;i++)"normal"!==e.get(t[i]).model.getActiveState()&&(n=!0);return n},t.prototype.axisCoordToPoint=function(t,e){var n=this._axesLayout[e];return qt.applyTransform([t,0],n.transform)},t.prototype.getAxisLayout=function(t){return _.clone(this._axesLayout[t])},t.prototype.getSlidedAxisExpandWindow=function(t){var e=this._makeLayoutInfo(),n=e.pixelDimIndex,i=e.axisExpandWindow.slice(),r=i[1]-i[0],o=[0,e.axisExpandWidth*(e.axisCount-1)];if(!this.containPoint(t))return{behavior:"none",axisExpandWindow:i};var a,s=t[n]-e.layoutBase-e.axisExpandWindow0Pos,l="slide",h=e.axisCollapseWidth,c=this._model.get("axisExpandSlideTriggerArea"),u=null!=c[0];if(h)u&&h&&s<r*c[0]?(l="jump",a=s-r*c[2]):u&&h&&s>r*(1-c[0])?(l="jump",a=s-r*(1-c[2])):(a=s-r*c[1])>=0&&(a=s-r*(1-c[1]))<=0&&(a=0),(a*=e.axisExpandWidth/h)?Kh(a,i,o,"all"):l="none";else{var d=i[1]-i[0];(i=[nc(0,o[1]*s/d-d/2)])[1]=ec(o[1],i[0]+d),i[0]=i[1]-d}return{axisExpandWindow:i,behavior:l}},t}();function lc(t,e){return ec(nc(t,e[0]),e[1])}function hc(t,e){var n=e.layoutLength/(e.axisCount-1);return{position:n*t,axisNameAvailableWidth:n,axisLabelShow:!0}}function cc(t,e){var n,i,r=e.layoutLength,o=e.axisExpandWidth,a=e.axisCount,s=e.axisCollapseWidth,l=e.winInnerIndices,h=s,c=!1;return t<l[0]?(n=t*s,i=s):t<=l[1]?(n=e.axisExpandWindow0Pos+t*o-e.axisExpandWindow[0],h=o,c=!0):(n=r-(a-1-t)*s,i=s),{position:n,axisNameAvailableWidth:h,axisLabelShow:c,nameTruncateMaxWidth:i}}const uc=sc;const dc={create:function(t,e){var n=[];return t.eachComponent("parallel",(function(i,r){var o=new uc(i,t,e);o.name="parallel_"+r,o.resize(i,e),i.coordinateSystem=o,o.model=i,n.push(o)})),t.eachSeries((function(t){if("parallel"===t.get("coordinateSystem")){var e=t.getReferringComponents("parallel",ce.US).models[0];t.coordinateSystem=e.coordinateSystem}})),n}};var pc=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n.activeIntervals=[],n}return(0,Bt.C6)(e,t),e.prototype.getAreaSelectStyle=function(){return(0,bs.A)([["fill","color"],["lineWidth","borderWidth"],["stroke","borderColor"],["width","width"],["opacity","opacity"]])(this.getModel("areaSelectStyle"))},e.prototype.setActiveIntervals=function(t){var e=this.activeIntervals=_.clone(t);if(e)for(var n=e.length-1;n>=0;n--)Se.Y6(e[n])},e.prototype.getActiveState=function(t){var e=this.activeIntervals;if(!e.length)return"normal";if(null==t||isNaN(+t))return"inactive";if(1===e.length){var n=e[0];if(n[0]<=t&&t<=n[1])return"active"}else for(var i=0,r=e.length;i<r;i++)if(e[i][0]<=t&&t<=e[i][1])return"active";return"inactive"},e}(oi.A);_.mixin(pc,si.L);const fc=pc;var gc=!0,mc=Math.min,vc=Math.max,yc=Math.pow,_c="globalPan",xc={w:[0,0],e:[0,1],n:[1,0],s:[1,1]},bc={w:"ew",e:"ew",n:"ns",s:"ns",ne:"nesw",sw:"nesw",nw:"nwse",se:"nwse"},wc={brushStyle:{lineWidth:2,stroke:"rgba(210,219,238,0.3)",fill:"#D2DBEE"},transformable:!0,brushMode:"single",removeOnClick:!1},Sc=0,Tc=function(t){function e(e){var n=t.call(this)||this;return n._track=[],n._covers=[],n._handlers={},n._zr=e,n.group=new jt.A,n._uid="brushController_"+Sc++,(0,_.each)(Kc,(function(t,e){this._handlers[e]=(0,_.bind)(t,this)}),n),n}return(0,Bt.C6)(e,t),e.prototype.enableBrush=function(t){return this._brushType&&this._doDisableBrush(),t.brushType&&this._doEnableBrush(t),this},e.prototype._doEnableBrush=function(t){var e=this._zr;this._enableGlobalPan||function(t,e,n){Vr(t)[e]=n}(e,_c,this._uid),(0,_.each)(this._handlers,(function(t,n){e.on(n,t)})),this._brushType=t.brushType,this._brushOption=(0,_.merge)((0,_.clone)(wc),t,!0)},e.prototype._doDisableBrush=function(){var t=this._zr;!function(t,e,n){var i=Vr(t);i[e]===n&&(i[e]=null)}(t,_c,this._uid),(0,_.each)(this._handlers,(function(e,n){t.off(n,e)})),this._brushType=this._brushOption=null},e.prototype.setPanels=function(t){if(t&&t.length){var e=this._panels={};(0,_.each)(t,(function(t){e[t.panelId]=(0,_.clone)(t)}))}else this._panels=null;return this},e.prototype.mount=function(t){t=t||{},this._enableGlobalPan=t.enableGlobalPan;var e=this.group;return this._zr.add(e),e.attr({x:t.x||0,y:t.y||0,rotation:t.rotation||0,scaleX:t.scaleX||1,scaleY:t.scaleY||1}),this._transform=e.getLocalTransform(),this},e.prototype.updateCovers=function(t){t=(0,_.map)(t,(function(t){return(0,_.merge)((0,_.clone)(wc),t,!0)}));var e=this._covers,n=this._covers=[],i=this,r=this._creatingCover;return new gs.A(e,t,(function(t,e){return o(t.__brushOption,e)}),o).add(a).update(a).remove((function(t){e[t]!==r&&i.group.remove(e[t])})).execute(),this;function o(t,e){return(null!=t.id?t.id:"\0-brush-index-"+e)+"-"+t.brushType}function a(o,a){var s=t[o];if(null!=a&&e[a]===r)n[o]=e[a];else{var l=n[o]=null!=a?(e[a].__brushOption=s,e[a]):Ac(i,Mc(i,s));Ec(i,l)}}},e.prototype.unmount=function(){return this.enableBrush(!1),Pc(this),this._zr.remove(this.group),this},e.prototype.dispose=function(){this.unmount(),this.off()},e}(Nr.A);function Mc(t,e){var n=Qc[e.brushType].createCover(t,e);return n.__brushOption=e,Ic(n,e),t.group.add(n),n}function Ac(t,e){var n=kc(e);return n.endCreating&&(n.endCreating(t,e),Ic(e,e.__brushOption)),e}function Cc(t,e){var n=e.__brushOption;kc(e).updateCoverShape(t,e,n.range,n)}function Ic(t,e){var n=e.z;null==n&&(n=1e4),t.traverse((function(t){t.z=n,t.z2=n}))}function Ec(t,e){kc(e).updateCommon(t,e),Cc(t,e)}function kc(t){return Qc[t.__brushOption.brushType]}function Lc(t,e,n){var i,r=t._panels;if(!r)return gc;var o=t._transform;return(0,_.each)(r,(function(t){t.isTargetByCursor(e,n,o)&&(i=t)})),i}function Dc(t,e){var n=t._panels;if(!n)return gc;var i=e.__brushOption.panelId;return null!=i?n[i]:gc}function Pc(t){var e=t._covers,n=e.length;return(0,_.each)(e,(function(e){t.group.remove(e)}),t),e.length=0,!!n}function Rc(t,e){var n=(0,_.map)(t._covers,(function(t){var e=t.__brushOption,n=(0,_.clone)(e.range);return{brushType:e.brushType,panelId:e.panelId,range:n}}));t.trigger("brush",{areas:n,isEnd:!!e.isEnd,removeOnClick:!!e.removeOnClick})}function Oc(t){var e=t.length-1;return e<0&&(e=0),[t[0],t[e]]}function Nc(t,e,n,i){var r=new jt.A;return r.add(new be.A({name:"main",style:Gc(n),silent:!0,draggable:!0,cursor:"move",drift:(0,_.curry)(Hc,t,e,r,["n","s","w","e"]),ondragend:(0,_.curry)(Rc,e,{isEnd:!0})})),(0,_.each)(i,(function(n){r.add(new be.A({name:n.join(""),style:{opacity:0},draggable:!0,silent:!0,invisible:!0,drift:(0,_.curry)(Hc,t,e,r,n),ondragend:(0,_.curry)(Rc,e,{isEnd:!0})}))})),r}function Fc(t,e,n,i){var r=i.brushStyle.lineWidth||0,o=vc(r,6),a=n[0][0],s=n[1][0],l=a-r/2,h=s-r/2,c=n[0][1],u=n[1][1],d=c-o+r/2,p=u-o+r/2,f=c-a,g=u-s,m=f+r,v=g+r;zc(t,e,"main",a,s,f,g),i.transformable&&(zc(t,e,"w",l,h,o,v),zc(t,e,"e",d,h,o,v),zc(t,e,"n",l,h,m,o),zc(t,e,"s",l,p,m,o),zc(t,e,"nw",l,h,o,o),zc(t,e,"ne",d,h,o,o),zc(t,e,"sw",l,p,o,o),zc(t,e,"se",d,p,o,o))}function Bc(t,e){var n=e.__brushOption,i=n.transformable,r=e.childAt(0);r.useStyle(Gc(n)),r.attr({silent:!i,cursor:i?"move":"default"}),(0,_.each)([["w"],["e"],["n"],["s"],["s","e"],["s","w"],["n","e"],["n","w"]],(function(n){var r=e.childOfName(n.join("")),o=1===n.length?jc(t,n[0]):function(t,e){var n=[jc(t,e[0]),jc(t,e[1])];return("e"===n[0]||"w"===n[0])&&n.reverse(),n.join("")}(t,n);r&&r.attr({silent:!i,invisible:!i,cursor:i?bc[o]+"-resize":null})}))}function zc(t,e,n,i,r,o,a){var s=e.childOfName(n);s&&s.setShape(function(t){var e=mc(t[0][0],t[1][0]),n=mc(t[0][1],t[1][1]),i=vc(t[0][0],t[1][0]),r=vc(t[0][1],t[1][1]);return{x:e,y:n,width:i-e,height:r-n}}(qc(t,e,[[i,r],[i+o,r+a]])))}function Gc(t){return(0,_.defaults)({strokeNoScale:!0},t.brushStyle)}function Vc(t,e,n,i){var r=[mc(t,n),mc(e,i)],o=[vc(t,n),vc(e,i)];return[[r[0],o[0]],[r[1],o[1]]]}function jc(t,e){var n=qt.transformDirection({w:"left",e:"right",n:"top",s:"bottom"}[e],function(t){return qt.getTransform(t.group)}(t));return{left:"w",right:"e",top:"n",bottom:"s"}[n]}function Hc(t,e,n,i,r,o){var a=n.__brushOption,s=t.toRectRange(a.range),l=Uc(e,r,o);(0,_.each)(i,(function(t){var e=xc[t];s[e[0]][e[1]]+=l[e[0]]})),a.range=t.fromRectRange(Vc(s[0][0],s[1][0],s[0][1],s[1][1])),Ec(e,n),Rc(e,{isEnd:!1})}function Wc(t,e,n,i){var r=e.__brushOption.range,o=Uc(t,n,i);(0,_.each)(r,(function(t){t[0]+=o[0],t[1]+=o[1]})),Ec(t,e),Rc(t,{isEnd:!1})}function Uc(t,e,n){var i=t.group,r=i.transformCoordToLocal(e,n),o=i.transformCoordToLocal(0,0);return[r[0]-o[0],r[1]-o[1]]}function qc(t,e,n){var i=Dc(t,e);return i&&i!==gc?i.clipPath(n,t._transform):(0,_.clone)(n)}function Xc(t){var e=t.event;e.preventDefault&&e.preventDefault()}function Yc(t,e,n){return t.childOfName("main").contain(e,n)}function Zc(t,e,n,i){var r,o=t._creatingCover,a=t._creatingPanel,s=t._brushOption;if(t._track.push(n.slice()),function(t){var e=t._track;if(!e.length)return!1;var n=e[e.length-1],i=e[0],r=n[0]-i[0],o=n[1]-i[1];return yc(r*r+o*o,.5)>6}(t)||o){if(a&&!o){"single"===s.brushMode&&Pc(t);var l=(0,_.clone)(s);l.brushType=$c(l.brushType,a),l.panelId=a===gc?null:a.panelId,o=t._creatingCover=Mc(t,l),t._covers.push(o)}if(o){var h=Qc[$c(t._brushType,a)];o.__brushOption.range=h.getCreatingRange(qc(t,o,t._track)),i&&(Ac(t,o),h.updateCommon(t,o)),Cc(t,o),r={isEnd:i}}}else i&&"single"===s.brushMode&&s.removeOnClick&&Lc(t,e,n)&&Pc(t)&&(r={isEnd:i,removeOnClick:!0});return r}function $c(t,e){return"auto"===t?e.defaultBrushType:t}var Kc={mousedown:function(t){if(this._dragging)Jc(this,t);else if(!t.target||!t.target.draggable){Xc(t);var e=this.group.transformCoordToLocal(t.offsetX,t.offsetY);this._creatingCover=null,(this._creatingPanel=Lc(this,t,e))&&(this._dragging=!0,this._track=[e.slice()])}},mousemove:function(t){var e=t.offsetX,n=t.offsetY,i=this.group.transformCoordToLocal(e,n);if(function(t,e,n){if(t._brushType&&!function(t,e,n){var i=t._zr;return e<0||e>i.getWidth()||n<0||n>i.getHeight()}(t,e.offsetX,e.offsetY)){var i=t._zr,r=t._covers,o=Lc(t,e,n);if(!t._dragging)for(var a=0;a<r.length;a++){var s=r[a].__brushOption;if(o&&(o===gc||s.panelId===o.panelId)&&Qc[s.brushType].contain(r[a],n[0],n[1]))return}o&&i.setCursorStyle("crosshair")}}(this,t,i),this._dragging){Xc(t);var r=Zc(this,t,i,!1);r&&Rc(this,r)}},mouseup:function(t){Jc(this,t)}};function Jc(t,e){if(t._dragging){Xc(e);var n=e.offsetX,i=e.offsetY,r=t.group.transformCoordToLocal(n,i),o=Zc(t,e,r,!0);t._dragging=!1,t._track=[],t._creatingCover=null,o&&Rc(t,o)}}var Qc={lineX:tu(0),lineY:tu(1),rect:{createCover:function(t,e){function n(t){return t}return Nc({toRectRange:n,fromRectRange:n},t,e,[["w"],["e"],["n"],["s"],["s","e"],["s","w"],["n","e"],["n","w"]])},getCreatingRange:function(t){var e=Oc(t);return Vc(e[1][0],e[1][1],e[0][0],e[0][1])},updateCoverShape:function(t,e,n,i){Fc(t,e,n,i)},updateCommon:Bc,contain:Yc},polygon:{createCover:function(t,e){var n=new jt.A;return n.add(new Pn.A({name:"main",style:Gc(e),silent:!0})),n},getCreatingRange:function(t){return t},endCreating:function(t,e){e.remove(e.childAt(0)),e.add(new yr.A({name:"main",draggable:!0,drift:(0,_.curry)(Wc,t,e),ondragend:(0,_.curry)(Rc,t,{isEnd:!0})}))},updateCoverShape:function(t,e,n,i){e.childAt(0).setShape({points:qc(t,e,n)})},updateCommon:Bc,contain:Yc}};function tu(t){return{createCover:function(e,n){return Nc({toRectRange:function(e){var n=[e,[0,100]];return t&&n.reverse(),n},fromRectRange:function(e){return e[t]}},e,n,[[["w"],["e"]],[["n"],["s"]]][t])},getCreatingRange:function(e){var n=Oc(e);return[mc(n[0][t],n[1][t]),vc(n[0][t],n[1][t])]},updateCoverShape:function(e,n,i,r){var o,a=Dc(e,n);if(a!==gc&&a.getLinearBrushOtherExtent)o=a.getLinearBrushOtherExtent(t);else{var s=e._zr;o=[0,[s.getWidth(),s.getHeight()][1-t]]}var l=[i,o];t&&l.reverse(),Fc(e,n,l,r)},updateCommon:Bc,contain:Yc}}const eu=Tc;function nu(t){return t=ou(t),function(e){return qt.clipPointsByRect(e,t)}}function iu(t,e){return t=ou(t),function(n){var i=null!=e?e:n,r=i?t.width:t.height,o=i?t.x:t.y;return[o,o+(r||0)]}}function ru(t,e,n){var i=ou(t);return function(t,r){return i.contain(r[0],r[1])&&!Zr(t,e,n)}}function ou(t){return Jn.A.create(t)}var au=["axisLine","axisTickLabel","axisName"];const su=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return(0,Bt.C6)(e,t),e.prototype.init=function(e,n){t.prototype.init.apply(this,arguments),(this._brushController=new eu(n.getZr())).on("brush",_.bind(this._onBrush,this))},e.prototype.render=function(t,e,n,i){if(!function(t,e,n){return n&&"axisAreaSelect"===n.type&&e.findComponents({mainType:"parallelAxis",query:n})[0]===t}(t,e,i)){this.axisModel=t,this.api=n,this.group.removeAll();var r=this._axisGroup;if(this._axisGroup=new jt.A,this.group.add(this._axisGroup),t.get("show")){var o=function(t,e){return e.getComponent("parallel",t.get("parallelIndex"))}(t,e),a=o.coordinateSystem,s=t.getAreaSelectStyle(),l=s.width,h=t.axis.dim,c=a.getAxisLayout(h),u=_.extend({strokeContainThreshold:l},c),d=new Yi(t,u);_.each(au,d.add,d),this._axisGroup.add(d.getGroup()),this._refreshBrushController(u,s,t,o,l,n),qt.groupTransition(r,this._axisGroup,t)}}},e.prototype._refreshBrushController=function(t,e,n,i,r,o){var a=n.axis.getExtent(),s=a[1]-a[0],l=Math.min(30,.1*Math.abs(s)),h=Jn.A.create({x:a[0],y:-r/2,width:s,height:r});h.x-=l,h.width+=2*l,this._brushController.mount({enableGlobalPan:!0,rotation:t.rotation,x:t.position[0],y:t.position[1]}).setPanels([{panelId:"pl",clipPath:nu(h),isTargetByCursor:ru(h,o,i),getLinearBrushOtherExtent:iu(h,0)}]).enableBrush({brushType:"lineX",brushStyle:e,removeOnClick:!0}).updateCovers(function(t){var e=t.axis;return _.map(t.activeIntervals,(function(t){return{brushType:"lineX",panelId:"pl",range:[e.dataToCoord(t[0],!0),e.dataToCoord(t[1],!0)]}}))}(n))},e.prototype._onBrush=function(t){var e=t.areas,n=this.axisModel,i=n.axis,r=_.map(e,(function(t){return[i.coordToData(t.range[0],!0),i.coordToData(t.range[1],!0)]}));(!n.option.realtime===t.isEnd||t.removeOnClick)&&this.api.dispatchAction({type:"axisAreaSelect",parallelAxisId:n.id,intervals:r})},e.prototype.dispose=function(){this._brushController.dispose()},e.type="parallelAxis",e}(ri.A);var lu={type:"axisAreaSelect",event:"axisAreaSelected"};var hu={type:"value",areaSelectStyle:{width:20,borderWidth:1,borderColor:"rgba(160,197,232)",color:"rgba(160,197,232)",opacity:.3},realtime:!0,z:10};function cu(t){t.registerComponentView(Yh),t.registerComponentModel(Zh),t.registerCoordinateSystem("parallel",dc),t.registerPreprocessor(Wh),t.registerComponentModel(fc),t.registerComponentView(su),gi(t,"parallel",fc,hu),function(t){t.registerAction(lu,(function(t,e){e.eachComponent({mainType:"parallelAxis",query:t},(function(e){e.axis.model.setActiveIntervals(t.intervals)}))})),t.registerAction("parallelAxisExpand",(function(t,e){e.eachComponent({mainType:"parallel",query:t},(function(e){e.setAxisExpand(t)}))}))}(t)}var uu=function(){this.x1=0,this.y1=0,this.x2=0,this.y2=0,this.cpx1=0,this.cpy1=0,this.cpx2=0,this.cpy2=0,this.extent=0},du=function(t){function e(e){return t.call(this,e)||this}return(0,Bt.C6)(e,t),e.prototype.getDefaultShape=function(){return new uu},e.prototype.buildPath=function(t,e){var n=e.extent;t.moveTo(e.x1,e.y1),t.bezierCurveTo(e.cpx1,e.cpy1,e.cpx2,e.cpy2,e.x2,e.y2),"vertical"===e.orient?(t.lineTo(e.x2+n,e.y2),t.bezierCurveTo(e.cpx2+n,e.cpy2,e.cpx1+n,e.cpy1,e.x1+n,e.y1)):(t.lineTo(e.x2,e.y2+n),t.bezierCurveTo(e.cpx2,e.cpy2+n,e.cpx1,e.cpy1+n,e.x1,e.y1+n)),t.closePath()},e.prototype.highlight=function(){(0,Yt.HY)(this)},e.prototype.downplay=function(){(0,Yt.SD)(this)},e}(s.Ay),pu=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n._focusAdjacencyDisabled=!1,n}return(0,Bt.C6)(e,t),e.prototype.render=function(t,e,n){var i=this,r=t.getGraph(),o=this.group,a=t.layoutInfo,s=a.width,l=a.height,h=t.getData(),c=t.getData("edge"),u=t.get("orient");this._model=t,o.removeAll(),o.x=a.x,o.y=a.y,r.eachEdge((function(e){var n=new du,i=(0,Xt.z)(n);i.dataIndex=e.dataIndex,i.seriesIndex=t.seriesIndex,i.dataType="edge";var r,a,h,d,p,f,g,m,v=e.getModel(),y=v.getModel("lineStyle"),x=y.get("curveness"),b=e.node1.getLayout(),w=e.node1.getModel(),S=w.get("localX"),T=w.get("localY"),M=e.node2.getLayout(),A=e.node2.getModel(),C=A.get("localX"),I=A.get("localY"),E=e.getLayout();n.shape.extent=Math.max(1,E.dy),n.shape.orient=u,"vertical"===u?(r=(null!=S?S*s:b.x)+E.sy,a=(null!=T?T*l:b.y)+b.dy,h=(null!=C?C*s:M.x)+E.ty,p=r,f=a*(1-x)+(d=null!=I?I*l:M.y)*x,g=h,m=a*x+d*(1-x)):(r=(null!=S?S*s:b.x)+b.dx,a=(null!=T?T*l:b.y)+E.sy,p=r*(1-x)+(h=null!=C?C*s:M.x)*x,f=a,g=r*x+h*(1-x),m=d=(null!=I?I*l:M.y)+E.ty),n.setShape({x1:r,y1:a,x2:h,y2:d,cpx1:p,cpy1:f,cpx2:g,cpy2:m}),n.useStyle(y.getItemStyle()),fu(n.style,u,e);var k=""+v.get("value"),L=(0,Jt.lx)(v,"edgeLabel");(0,Jt.qM)(n,L,{labelFetcher:{getFormattedLabel:function(e,n,i,r,o,a){return t.getFormattedLabel(e,n,"edge",r,(0,_.retrieve3)(o,L.normal&&L.normal.get("formatter"),k),a)}},labelDataIndex:e.dataIndex,defaultText:k}),n.setTextConfig({position:"inside"});var D=v.getModel("emphasis");(0,Yt.Mx)(n,v,"lineStyle",(function(t){var n=t.getItemStyle();return fu(n,u,e),n})),o.add(n),c.setItemGraphicEl(e.dataIndex,n);var P=D.get("focus");(0,Yt.Lm)(n,"adjacency"===P?e.getAdjacentDataIndices():"trajectory"===P?e.getTrajectoryDataIndices():P,D.get("blurScope"),D.get("disabled"))})),r.eachNode((function(e){var n=e.getLayout(),i=e.getModel(),r=i.get("localX"),a=i.get("localY"),c=i.getModel("emphasis"),u=i.get(["itemStyle","borderRadius"])||0,d=new be.A({shape:{x:null!=r?r*s:n.x,y:null!=a?a*l:n.y,width:n.dx,height:n.dy,r:u},style:i.getModel("itemStyle").getItemStyle(),z2:10});(0,Jt.qM)(d,(0,Jt.lx)(i),{labelFetcher:{getFormattedLabel:function(e,n){return t.getFormattedLabel(e,n,"node")}},labelDataIndex:e.dataIndex,defaultText:e.id}),d.disableLabelAnimation=!0,d.setStyle("fill",e.getVisual("color")),d.setStyle("decal",e.getVisual("style").decal),(0,Yt.Mx)(d,i),o.add(d),h.setItemGraphicEl(e.dataIndex,d),(0,Xt.z)(d).dataType="node";var p=c.get("focus");(0,Yt.Lm)(d,"adjacency"===p?e.getAdjacentDataIndices():"trajectory"===p?e.getTrajectoryDataIndices():p,c.get("blurScope"),c.get("disabled"))})),h.eachItemGraphicEl((function(e,r){h.getItemModel(r).get("draggable")&&(e.drift=function(e,o){i._focusAdjacencyDisabled=!0,this.shape.x+=e,this.shape.y+=o,this.dirty(),n.dispatchAction({type:"dragNode",seriesId:t.id,dataIndex:h.getRawIndex(r),localX:this.shape.x/s,localY:this.shape.y/l})},e.ondragend=function(){i._focusAdjacencyDisabled=!1},e.draggable=!0,e.cursor="move")})),!this._data&&t.isAnimationEnabled()&&o.setClipPath(function(t,e,n){var i=new be.A({shape:{x:t.x-10,y:t.y-10,width:0,height:t.height+20}});return Ut.LW(i,{shape:{width:t.width+20}},e,n),i}(o.getBoundingRect(),t,(function(){o.removeClipPath()}))),this._data=t.getData()},e.prototype.dispose=function(){},e.type="sankey",e}(xe.A);function fu(t,e,n){switch(t.fill){case"source":t.fill=n.node1.getVisual("color"),t.decal=n.node1.getVisual("style").decal;break;case"target":t.fill=n.node2.getVisual("color"),t.decal=n.node2.getVisual("style").decal;break;case"gradient":var i=n.node1.getVisual("color"),r=n.node2.getVisual("color");(0,_.isString)(i)&&(0,_.isString)(r)&&(t.fill=new he.A(0,0,+("horizontal"===e),+("vertical"===e),[{color:i,offset:0},{color:r,offset:1}]))}}const gu=pu;var mu=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return(0,Bt.C6)(e,t),e.prototype.getInitialData=function(t,e){var n=t.edges||t.links,i=t.data||t.nodes,r=t.levels;this.levelModels=[];for(var o=this.levelModels,a=0;a<r.length;a++)null!=r[a].depth&&r[a].depth>=0&&(o[r[a].depth]=new Gi.A(r[a],this,e));if(i&&n){var s=mh(i,n,this,!0,(function(t,e){t.wrapMethod("getItemModel",(function(t,e){var n=t.parentModel,i=n.getData().getItemLayout(e);if(i){var r=i.depth,o=n.levelModels[r];o&&(t.parentModel=o)}return t})),e.wrapMethod("getItemModel",(function(t,e){var n=t.parentModel,i=n.getGraph().getEdgeByIndex(e).node1.getLayout();if(i){var r=i.depth,o=n.levelModels[r];o&&(t.parentModel=o)}return t}))}));return s.data}},e.prototype.setNodePosition=function(t,e){var n=(this.option.data||this.option.nodes)[t];n.localX=e[0],n.localY=e[1]},e.prototype.getGraph=function(){return this.getData().graph},e.prototype.getEdgeData=function(){return this.getGraph().edgeData},e.prototype.formatTooltip=function(t,e,n){function i(t){return isNaN(t)||null==t}if("edge"===n){var r=this.getDataParams(t,n),o=r.data,a=r.value,s=o.source+" -- "+o.target;return(0,br.Qx)("nameValue",{name:s,value:a,noValue:i(a)})}var l=this.getGraph().getNodeByIndex(t).getLayout().value,h=this.getDataParams(t,n).data.name;return(0,br.Qx)("nameValue",{name:null!=h?h+"":null,value:l,noValue:i(l)})},e.prototype.optionUpdated=function(){},e.prototype.getDataParams=function(e,n){var i=t.prototype.getDataParams.call(this,e,n);if(null==i.value&&"node"===n){var r=this.getGraph().getNodeByIndex(e).getLayout().value;i.value=r}return i},e.type="series.sankey",e.defaultOption={z:2,coordinateSystem:"view",left:"5%",top:"5%",right:"20%",bottom:"5%",orient:"horizontal",nodeWidth:20,nodeGap:8,draggable:!0,layoutIterations:32,label:{show:!0,position:"right",fontSize:12},edgeLabel:{show:!1,fontSize:12},levels:[],nodeAlign:"justify",lineStyle:{color:"#314656",opacity:.2,curveness:.5},emphasis:{label:{show:!0},lineStyle:{opacity:.5}},select:{itemStyle:{borderColor:"#212121"}},animationEasing:"linear",animationDuration:1e3},e}(Gt.A);const vu=mu;function yu(t,e){t.eachSeriesByType("sankey",(function(t){var n=t.get("nodeWidth"),i=t.get("nodeGap"),r=function(t,e){return Mn.dV(t.getBoxLayoutParams(),{width:e.getWidth(),height:e.getHeight()})}(t,e);t.layoutInfo=r;var o=r.width,a=r.height,s=t.getGraph(),l=s.nodes,h=s.edges;!function(t){_.each(t,(function(t){var e=Iu(t.outEdges,Cu),n=Iu(t.inEdges,Cu),i=t.getValue()||0,r=Math.max(e,n,i);t.setLayout({value:r},!0)}))}(l),function(t,e,n,i,r,o,a,s,l){(function(t,e,n,i,r,o,a){for(var s=[],l=[],h=[],c=[],u=0,d=0;d<e.length;d++)s[d]=1;for(d=0;d<t.length;d++)l[d]=t[d].inEdges.length,0===l[d]&&h.push(t[d]);var p=-1;for(;h.length;){for(var f=0;f<h.length;f++){var g=h[f],m=g.hostGraph.data.getRawDataItem(g.dataIndex),v=null!=m.depth&&m.depth>=0;v&&m.depth>p&&(p=m.depth),g.setLayout({depth:v?m.depth:u},!0),"vertical"===o?g.setLayout({dy:n},!0):g.setLayout({dx:n},!0);for(var y=0;y<g.outEdges.length;y++){var x=g.outEdges[y];s[e.indexOf(x)]=0;var b=x.node2;0==--l[t.indexOf(b)]&&c.indexOf(b)<0&&c.push(b)}}++u,h=c,c=[]}for(d=0;d<s.length;d++)if(1===s[d])throw new Error("Sankey is a DAG, the original data has cycle!");var w=p>u-1?p:u-1;a&&"left"!==a&&function(t,e,n,i){if("right"===e){for(var r=[],o=t,a=0;o.length;){for(var s=0;s<o.length;s++){var l=o[s];l.setLayout({skNodeHeight:a},!0);for(var h=0;h<l.inEdges.length;h++){var c=l.inEdges[h];r.indexOf(c.node1)<0&&r.push(c.node1)}}o=r,r=[],++a}_.each(t,(function(t){_u(t)||t.setLayout({depth:Math.max(0,i-t.getLayout().skNodeHeight)},!0)}))}else"justify"===e&&function(t,e){_.each(t,(function(t){_u(t)||t.outEdges.length||t.setLayout({depth:e},!0)}))}(t,i)}(t,a,0,w);var S="vertical"===o?(r-n)/w:(i-n)/w;!function(t,e,n){_.each(t,(function(t){var i=t.getLayout().depth*e;"vertical"===n?t.setLayout({y:i},!0):t.setLayout({x:i},!0)}))}(t,S,o)})(t,e,n,r,o,s,l),function(t,e,n,i,r,o,a){var s=function(t,e){var n=[],i="vertical"===e?"y":"x",r=(0,ce.Sq)(t,(function(t){return t.getLayout()[i]}));return r.keys.sort((function(t,e){return t-e})),_.each(r.keys,(function(t){n.push(r.buckets.get(t))})),n}(t,a);(function(t,e,n,i,r,o){var a=1/0;_.each(t,(function(t){var e=t.length,s=0;_.each(t,(function(t){s+=t.getLayout().value}));var l="vertical"===o?(i-(e-1)*r)/s:(n-(e-1)*r)/s;l<a&&(a=l)})),_.each(t,(function(t){_.each(t,(function(t,e){var n=t.getLayout().value*a;"vertical"===o?(t.setLayout({x:e},!0),t.setLayout({dx:n},!0)):(t.setLayout({y:e},!0),t.setLayout({dy:n},!0))}))})),_.each(e,(function(t){var e=+t.getValue()*a;t.setLayout({dy:e},!0)}))})(s,e,n,i,r,a),xu(s,r,n,i,a);for(var l=1;o>0;o--)bu(s,l*=.99,a),xu(s,r,n,i,a),Eu(s,l,a),xu(s,r,n,i,a)}(t,e,o,r,i,a,s),function(t,e){var n="vertical"===e?"x":"y";_.each(t,(function(t){t.outEdges.sort((function(t,e){return t.node2.getLayout()[n]-e.node2.getLayout()[n]})),t.inEdges.sort((function(t,e){return t.node1.getLayout()[n]-e.node1.getLayout()[n]}))})),_.each(t,(function(t){var e=0,n=0;_.each(t.outEdges,(function(t){t.setLayout({sy:e},!0),e+=t.getLayout().dy})),_.each(t.inEdges,(function(t){t.setLayout({ty:n},!0),n+=t.getLayout().dy}))}))}(t,s)}(l,h,n,i,o,a,0!==_.filter(l,(function(t){return 0===t.getLayout().value})).length?0:t.get("layoutIterations"),t.get("orient"),t.get("nodeAlign"))}))}function _u(t){var e=t.hostGraph.data.getRawDataItem(t.dataIndex);return null!=e.depth&&e.depth>=0}function xu(t,e,n,i,r){var o="vertical"===r?"x":"y";_.each(t,(function(t){var a,s,l;t.sort((function(t,e){return t.getLayout()[o]-e.getLayout()[o]}));for(var h=0,c=t.length,u="vertical"===r?"dx":"dy",d=0;d<c;d++)(l=h-(s=t[d]).getLayout()[o])>0&&(a=s.getLayout()[o]+l,"vertical"===r?s.setLayout({x:a},!0):s.setLayout({y:a},!0)),h=s.getLayout()[o]+s.getLayout()[u]+e;if((l=h-e-("vertical"===r?i:n))>0){a=s.getLayout()[o]-l,"vertical"===r?s.setLayout({x:a},!0):s.setLayout({y:a},!0),h=a;for(d=c-2;d>=0;--d)(l=(s=t[d]).getLayout()[o]+s.getLayout()[u]+e-h)>0&&(a=s.getLayout()[o]-l,"vertical"===r?s.setLayout({x:a},!0):s.setLayout({y:a},!0)),h=s.getLayout()[o]}}))}function bu(t,e,n){_.each(t.slice().reverse(),(function(t){_.each(t,(function(t){if(t.outEdges.length){var i=Iu(t.outEdges,wu,n)/Iu(t.outEdges,Cu);if(isNaN(i)){var r=t.outEdges.length;i=r?Iu(t.outEdges,Su,n)/r:0}if("vertical"===n){var o=t.getLayout().x+(i-Au(t,n))*e;t.setLayout({x:o},!0)}else{var a=t.getLayout().y+(i-Au(t,n))*e;t.setLayout({y:a},!0)}}}))}))}function wu(t,e){return Au(t.node2,e)*t.getValue()}function Su(t,e){return Au(t.node2,e)}function Tu(t,e){return Au(t.node1,e)*t.getValue()}function Mu(t,e){return Au(t.node1,e)}function Au(t,e){return"vertical"===e?t.getLayout().x+t.getLayout().dx/2:t.getLayout().y+t.getLayout().dy/2}function Cu(t){return t.getValue()}function Iu(t,e,n){for(var i=0,r=t.length,o=-1;++o<r;){var a=+e(t[o],n);isNaN(a)||(i+=a)}return i}function Eu(t,e,n){_.each(t,(function(t){_.each(t,(function(t){if(t.inEdges.length){var i=Iu(t.inEdges,Tu,n)/Iu(t.inEdges,Cu);if(isNaN(i)){var r=t.inEdges.length;i=r?Iu(t.inEdges,Mu,n)/r:0}if("vertical"===n){var o=t.getLayout().x+(i-Au(t,n))*e;t.setLayout({x:o},!0)}else{var a=t.getLayout().y+(i-Au(t,n))*e;t.setLayout({y:a},!0)}}}))}))}function ku(t){t.eachSeriesByType("sankey",(function(t){var e=t.getGraph(),n=e.nodes,i=e.edges;if(n.length){var r=1/0,o=-1/0;_.each(n,(function(t){var e=t.getLayout().value;e<r&&(r=e),e>o&&(o=e)})),_.each(n,(function(e){var n=new Zs({type:"color",mappingMethod:"linear",dataExtent:[r,o],visual:t.get("color")}).mapValueToVisual(e.getLayout().value),i=e.getModel().get(["itemStyle","color"]);null!=i?(e.setVisual("color",i),e.setVisual("style",{fill:i})):(e.setVisual("color",n),e.setVisual("style",{fill:n}))}))}i.length&&_.each(i,(function(t){var e=t.getModel().get("lineStyle");t.setVisual("style",e)}))}))}var Lu=n(525),Du=function(){function t(){}return t.prototype.getInitialData=function(t,e){var n,i,r=e.getComponent("xAxis",this.get("xAxisIndex")),o=e.getComponent("yAxis",this.get("yAxisIndex")),a=r.get("type"),s=o.get("type");"category"===a?(t.layout="horizontal",n=r.getOrdinalMeta(),i=!0):"category"===s?(t.layout="vertical",n=o.getOrdinalMeta(),i=!0):t.layout=t.layout||"horizontal";var l=["x","y"],h="horizontal"===t.layout?0:1,c=this._baseAxisDim=l[h],u=l[1-h],d=[r,o],p=d[h].get("type"),f=d[1-h].get("type"),g=t.data;if(g&&i){var m=[];_.each(g,(function(t,e){var n;_.isArray(t)?(n=t.slice(),t.unshift(e)):_.isArray(t.value)?((n=_.extend({},t)).value=n.value.slice(),t.value.unshift(e)):n=t,m.push(n)})),t.data=m}var v=this.defaultValueDimensions,y=[{name:c,type:(0,Lu.B)(p),ordinalMeta:n,otherDims:{tooltip:!1,itemName:0},dimsDef:["base"]},{name:u,type:(0,Lu.B)(f),dimsDef:v.slice()}];return qn(this,{coordDimensions:y,dimensionsCount:v.length+1,encodeDefaulter:_.curry(Xn.OC,y,this)})},t.prototype.getBaseAxis=function(){var t=this._baseAxisDim;return this.ecModel.getComponent(t+"Axis",this.get(t+"AxisIndex")).axis},t}(),Pu=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n.defaultValueDimensions=[{name:"min",defaultTooltip:!0},{name:"Q1",defaultTooltip:!0},{name:"median",defaultTooltip:!0},{name:"Q3",defaultTooltip:!0},{name:"max",defaultTooltip:!0}],n.visualDrawType="stroke",n}return(0,Bt.C6)(e,t),e.type="series.boxplot",e.dependencies=["xAxis","yAxis","grid"],e.defaultOption={z:2,coordinateSystem:"cartesian2d",legendHoverLink:!0,layout:null,boxWidth:[7,50],itemStyle:{color:"#fff",borderWidth:1},emphasis:{scale:!0,itemStyle:{borderWidth:2,shadowBlur:5,shadowOffsetX:1,shadowOffsetY:1,shadowColor:"rgba(0,0,0,0.2)"}},animationDuration:800},e}(Gt.A);(0,_.mixin)(Pu,Du,!0);const Ru=Pu;var Ou=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return(0,Bt.C6)(e,t),e.prototype.render=function(t,e,n){var i=t.getData(),r=this.group,o=this._data;this._data||r.removeAll();var a="horizontal"===t.get("layout")?1:0;i.diff(o).add((function(t){if(i.hasValue(t)){var e=Bu(i.getItemLayout(t),i,t,a,!0);i.setItemGraphicEl(t,e),r.add(e)}})).update((function(t,e){var n=o.getItemGraphicEl(e);if(i.hasValue(t)){var s=i.getItemLayout(t);n?((0,Ut.ap)(n),zu(s,n,i,t)):n=Bu(s,i,t,a),r.add(n),i.setItemGraphicEl(t,n)}else r.remove(n)})).remove((function(t){var e=o.getItemGraphicEl(t);e&&r.remove(e)})).execute(),this._data=i},e.prototype.remove=function(t){var e=this.group,n=this._data;this._data=null,n&&n.eachItemGraphicEl((function(t){t&&e.remove(t)}))},e.type="boxplot",e}(xe.A),Nu=function(){},Fu=function(t){function e(e){var n=t.call(this,e)||this;return n.type="boxplotBoxPath",n}return(0,Bt.C6)(e,t),e.prototype.getDefaultShape=function(){return new Nu},e.prototype.buildPath=function(t,e){var n=e.points,i=0;for(t.moveTo(n[i][0],n[i][1]),i++;i<4;i++)t.lineTo(n[i][0],n[i][1]);for(t.closePath();i<n.length;i++)t.moveTo(n[i][0],n[i][1]),i++,t.lineTo(n[i][0],n[i][1])},e}(s.Ay);function Bu(t,e,n,i,r){var o=t.ends,a=new Fu({shape:{points:r?Gu(o,i,t):o}});return zu(t,a,e,n,r),a}function zu(t,e,n,i,r){var o=n.hostModel;(0,qt[r?"initProps":"updateProps"])(e,{shape:{points:t.ends}},o,i),e.useStyle(n.getItemVisual(i,"style")),e.style.strokeNoScale=!0,e.z2=100;var a=n.getItemModel(i),s=a.getModel("emphasis");(0,Yt.Mx)(e,a),(0,Yt.Lm)(e,s.get("focus"),s.get("blurScope"),s.get("disabled"))}function Gu(t,e,n){return _.map(t,(function(t){return(t=t.slice())[e]=n.initBaseline,t}))}const Vu=Ou;var ju=_.each;function Hu(t){var e=function(t){var e=[],n=[];return t.eachSeriesByType("boxplot",(function(t){var i=t.getBaseAxis(),r=_.indexOf(n,i);r<0&&(r=n.length,n[r]=i,e[r]={axis:i,seriesModels:[]}),e[r].seriesModels.push(t)})),e}(t);ju(e,(function(t){var e=t.seriesModels;e.length&&(!function(t){var e,n=t.axis,i=t.seriesModels,r=i.length,o=t.boxWidthList=[],a=t.boxOffsetList=[],s=[];if("category"===n.type)e=n.getBandWidth();else{var l=0;ju(i,(function(t){l=Math.max(l,t.getData().count())}));var h=n.getExtent();e=Math.abs(h[1]-h[0])/l}ju(i,(function(t){var n=t.get("boxWidth");_.isArray(n)||(n=[n,n]),s.push([(0,Se.lo)(n[0],e)||0,(0,Se.lo)(n[1],e)||0])}));var c=.8*e-2,u=c/r*.3,d=(c-u*(r-1))/r,p=d/2-c/2;ju(i,(function(t,e){a.push(p),p+=u+d,o.push(Math.min(Math.max(d,s[e][0]),s[e][1]))}))}(t),ju(e,(function(e,n){!function(t,e,n){var i=t.coordinateSystem,r=t.getData(),o=n/2,a="horizontal"===t.get("layout")?0:1,s=1-a,l=["x","y"],h=r.mapDimension(l[a]),c=r.mapDimensionsAll(l[s]);if(null==h||c.length<5)return;for(var u=0;u<r.count();u++){var d=r.get(h,u),p=_(d,c[2],u),f=_(d,c[0],u),g=_(d,c[1],u),m=_(d,c[3],u),v=_(d,c[4],u),y=[];x(y,g,!1),x(y,m,!0),y.push(f,g,v,m),b(y,f),b(y,v),b(y,p),r.setItemLayout(u,{initBaseline:p[s],ends:y})}function _(t,n,o){var l,h=r.get(n,o),c=[];return c[a]=t,c[s]=h,isNaN(t)||isNaN(h)?l=[NaN,NaN]:(l=i.dataToPoint(c))[a]+=e,l}function x(t,e,n){var i=e.slice(),r=e.slice();i[a]+=o,r[a]-=o,n?t.push(i,r):t.push(r,i)}function b(t,e){var n=e.slice(),i=e.slice();n[a]-=o,i[a]+=o,t.push(n,i)}}(e,t.boxOffsetList[n],t.boxWidthList[n])})))}))}var Wu=n(766),Uu=n(3457),qu={type:"echarts:boxplot",transform:function(t){var e=t.upstream;if(e.sourceFormat!==Uu.Km){0,(0,Wu.$8)("")}var n=function(t,e){for(var n=[],i=[],r=(e=e||{}).boundIQR,o="none"===r||0===r,a=0;a<t.length;a++){var s=(0,Se.Y6)(t[a].slice()),l=(0,Se.YV)(s,.25),h=(0,Se.YV)(s,.5),c=(0,Se.YV)(s,.75),u=s[0],d=s[s.length-1],p=(null==r?1.5:r)*(c-l),f=o?u:Math.max(u,l-p),g=o?d:Math.min(d,c+p),m=e.itemNameFormatter,v=(0,_.isFunction)(m)?m({value:a}):(0,_.isString)(m)?m.replace("{value}",a+""):a+"";n.push([v,f,l,h,c,g]);for(var y=0;y<s.length;y++){var x=s[y];if(x<f||x>g){var b=[v,x];i.push(b)}}}return{boxData:n,outliers:i}}(e.getRawData(),t.config);return[{dimensions:["ItemName","Low","Q1","Q2","Q3","High"],data:n.boxData},{data:n.outliers}]}};var Xu=["color","borderColor"],Yu=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return(0,Bt.C6)(e,t),e.prototype.render=function(t,e,n){this.group.removeClipPath(),this._progressiveEls=null,this._updateDrawMode(t),this._isLargeDraw?this._renderLarge(t):this._renderNormal(t)},e.prototype.incrementalPrepareRender=function(t,e,n){this._clear(),this._updateDrawMode(t)},e.prototype.incrementalRender=function(t,e,n,i){this._progressiveEls=[],this._isLargeDraw?this._incrementalRenderLarge(t,e):this._incrementalRenderNormal(t,e)},e.prototype.eachRendered=function(t){qt.traverseElements(this._progressiveEls||this.group,t)},e.prototype._updateDrawMode=function(t){var e=t.pipelineContext.large;null!=this._isLargeDraw&&e===this._isLargeDraw||(this._isLargeDraw=e,this._clear())},e.prototype._renderNormal=function(t){var e=t.getData(),n=this._data,i=this.group,r=e.getLayout("isSimpleBox"),o=t.get("clip",!0),a=t.coordinateSystem,s=a.getArea&&a.getArea();this._data||i.removeAll(),e.diff(n).add((function(n){if(e.hasValue(n)){var a=e.getItemLayout(n);if(o&&Ju(s,a))return;var l=Ku(a,n,!0);Ut.LW(l,{shape:{points:a.ends}},t,n),Qu(l,e,n,r),i.add(l),e.setItemGraphicEl(n,l)}})).update((function(a,l){var h=n.getItemGraphicEl(l);if(e.hasValue(a)){var c=e.getItemLayout(a);o&&Ju(s,c)?i.remove(h):(h?(Ut.oi(h,{shape:{points:c.ends}},t,a),(0,Ut.ap)(h)):h=Ku(c,a),Qu(h,e,a,r),i.add(h),e.setItemGraphicEl(a,h))}else i.remove(h)})).remove((function(t){var e=n.getItemGraphicEl(t);e&&i.remove(e)})).execute(),this._data=e},e.prototype._renderLarge=function(t){this._clear(),id(t,this.group);var e=t.get("clip",!0)?Ae(t.coordinateSystem,!1,t):null;e?this.group.setClipPath(e):this.group.removeClipPath()},e.prototype._incrementalRenderNormal=function(t,e){for(var n,i=e.getData(),r=i.getLayout("isSimpleBox");null!=(n=t.next());){var o=Ku(i.getItemLayout(n),n);Qu(o,i,n,r),o.incremental=!0,this.group.add(o),this._progressiveEls.push(o)}},e.prototype._incrementalRenderLarge=function(t,e){id(e,this.group,this._progressiveEls,!0)},e.prototype.remove=function(t){this._clear()},e.prototype._clear=function(){this.group.removeAll(),this._data=null},e.type="candlestick",e}(xe.A),Zu=function(){},$u=function(t){function e(e){var n=t.call(this,e)||this;return n.type="normalCandlestickBox",n}return(0,Bt.C6)(e,t),e.prototype.getDefaultShape=function(){return new Zu},e.prototype.buildPath=function(t,e){var n=e.points;this.__simpleBox?(t.moveTo(n[4][0],n[4][1]),t.lineTo(n[6][0],n[6][1])):(t.moveTo(n[0][0],n[0][1]),t.lineTo(n[1][0],n[1][1]),t.lineTo(n[2][0],n[2][1]),t.lineTo(n[3][0],n[3][1]),t.closePath(),t.moveTo(n[4][0],n[4][1]),t.lineTo(n[5][0],n[5][1]),t.moveTo(n[6][0],n[6][1]),t.lineTo(n[7][0],n[7][1]))},e}(s.Ay);function Ku(t,e,n){var i=t.ends;return new $u({shape:{points:n?td(i,t):i},z2:100})}function Ju(t,e){for(var n=!0,i=0;i<e.ends.length;i++)if(t.contain(e.ends[i][0],e.ends[i][1])){n=!1;break}return n}function Qu(t,e,n,i){var r=e.getItemModel(n);t.useStyle(e.getItemVisual(n,"style")),t.style.strokeNoScale=!0,t.__simpleBox=i,(0,Yt.Mx)(t,r)}function td(t,e){return _.map(t,(function(t){return(t=t.slice())[1]=e.initBaseline,t}))}var ed=function(){},nd=function(t){function e(e){var n=t.call(this,e)||this;return n.type="largeCandlestickBox",n}return(0,Bt.C6)(e,t),e.prototype.getDefaultShape=function(){return new ed},e.prototype.buildPath=function(t,e){for(var n=e.points,i=0;i<n.length;)if(this.__sign===n[i++]){var r=n[i++];t.moveTo(r,n[i++]),t.lineTo(r,n[i++])}else i+=3},e}(s.Ay);function id(t,e,n,i){var r=t.getData(),o=r.getLayout("largePoints"),a=new nd({shape:{points:o},__sign:1,ignoreCoarsePointer:!0});e.add(a);var s=new nd({shape:{points:o},__sign:-1,ignoreCoarsePointer:!0});e.add(s);var l=new nd({shape:{points:o},__sign:0,ignoreCoarsePointer:!0});e.add(l),rd(1,a,t,r),rd(-1,s,t,r),rd(0,l,t,r),i&&(a.incremental=!0,s.incremental=!0),n&&n.push(a,s)}function rd(t,e,n,i){var r=n.get(["itemStyle",t>0?"borderColor":"borderColor0"])||n.get(["itemStyle",t>0?"color":"color0"]);0===t&&(r=n.get(["itemStyle","borderColorDoji"]));var o=n.getModel("itemStyle").getItemStyle(Xu);e.useStyle(o),e.style.fill=null,e.style.stroke=r}const od=Yu;var ad=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n.defaultValueDimensions=[{name:"open",defaultTooltip:!0},{name:"close",defaultTooltip:!0},{name:"lowest",defaultTooltip:!0},{name:"highest",defaultTooltip:!0}],n}return(0,Bt.C6)(e,t),e.prototype.getShadowDim=function(){return"open"},e.prototype.brushSelector=function(t,e,n){var i=e.getItemLayout(t);return i&&n.rect(i.brushRect)},e.type="series.candlestick",e.dependencies=["xAxis","yAxis","grid"],e.defaultOption={z:2,coordinateSystem:"cartesian2d",legendHoverLink:!0,layout:null,clip:!0,itemStyle:{color:"#eb5454",color0:"#47b262",borderColor:"#eb5454",borderColor0:"#47b262",borderColorDoji:null,borderWidth:1},emphasis:{scale:!0,itemStyle:{borderWidth:2}},barMaxWidth:null,barMinWidth:null,barWidth:null,large:!0,largeThreshold:600,progressive:3e3,progressiveThreshold:1e4,progressiveChunkMode:"mod",animationEasing:"linear",animationDuration:300},e}(Gt.A);(0,_.mixin)(ad,Du,!0);const sd=ad;function ld(t){t&&_.isArray(t.series)&&_.each(t.series,(function(t){_.isObject(t)&&"k"===t.type&&(t.type="candlestick")}))}var hd=["itemStyle","borderColor"],cd=["itemStyle","borderColor0"],ud=["itemStyle","borderColorDoji"],dd=["itemStyle","color"],pd=["itemStyle","color0"];const fd={seriesType:"candlestick",plan:(0,Ve.A)(),performRawSeries:!0,reset:function(t,e){function n(t,e){return e.get(t>0?dd:pd)}function i(t,e){return e.get(0===t?ud:t>0?hd:cd)}if(!e.isSeriesFiltered(t))return!t.pipelineContext.large&&{progress:function(t,e){for(var r;null!=(r=t.next());){var o=e.getItemModel(r),a=e.getItemLayout(r).sign,s=o.getItemStyle();s.fill=n(a,o),s.stroke=i(a,o)||s.fill;var l=e.ensureUniqueItemVisual(r,"style");(0,_.extend)(l,s)}}}}};var gd={seriesType:"candlestick",plan:(0,Ve.A)(),reset:function(t){var e=t.coordinateSystem,n=t.getData(),i=function(t,e){var n,i=t.getBaseAxis(),r="category"===i.type?i.getBandWidth():(n=i.getExtent(),Math.abs(n[1]-n[0])/e.count()),o=(0,Se.lo)((0,_.retrieve2)(t.get("barMaxWidth"),r),r),a=(0,Se.lo)((0,_.retrieve2)(t.get("barMinWidth"),1),r),s=t.get("barWidth");return null!=s?(0,Se.lo)(s,r):Math.max(Math.min(r/2,o),a)}(t,n),r=["x","y"],o=n.getDimensionIndex(n.mapDimension(r[0])),a=(0,_.map)(n.mapDimensionsAll(r[1]),n.getDimensionIndex,n),s=a[0],l=a[1],h=a[2],c=a[3];if(n.setLayout({candleWidth:i,isSimpleBox:i<=1.3}),!(o<0||a.length<4))return{progress:t.pipelineContext.large?function(n,i){var r,a,u=(0,le.J)(4*n.count),d=0,p=[],f=[],g=i.getStore(),m=!!t.get(["itemStyle","borderColorDoji"]);for(;null!=(a=n.next());){var v=g.get(o,a),y=g.get(s,a),_=g.get(l,a),x=g.get(h,a),b=g.get(c,a);isNaN(v)||isNaN(x)||isNaN(b)?(u[d++]=NaN,d+=3):(u[d++]=md(g,a,y,_,l,m),p[0]=v,p[1]=x,r=e.dataToPoint(p,null,f),u[d++]=r?r[0]:NaN,u[d++]=r?r[1]:NaN,p[1]=b,r=e.dataToPoint(p,null,f),u[d++]=r?r[1]:NaN)}i.setLayout("largePoints",u)}:function(t,n){var r,a=n.getStore();for(;null!=(r=t.next());){var u=a.get(o,r),d=a.get(s,r),p=a.get(l,r),f=a.get(h,r),g=a.get(c,r),m=Math.min(d,p),v=Math.max(d,p),y=T(m,u),_=T(v,u),x=T(f,u),b=T(g,u),w=[];M(w,_,0),M(w,y,1),w.push(C(b),C(_),C(x),C(y));var S=!!n.getItemModel(r).get(["itemStyle","borderColorDoji"]);n.setItemLayout(r,{sign:md(a,r,d,p,l,S),initBaseline:d>p?_[1]:y[1],ends:w,brushRect:A(f,g,u)})}function T(t,n){var i=[];return i[0]=n,i[1]=t,isNaN(n)||isNaN(t)?[NaN,NaN]:e.dataToPoint(i)}function M(t,e,n){var r=e.slice(),o=e.slice();r[0]=(0,qt.subPixelOptimize)(r[0]+i/2,1,!1),o[0]=(0,qt.subPixelOptimize)(o[0]-i/2,1,!0),n?t.push(r,o):t.push(o,r)}function A(t,e,n){var r=T(t,n),o=T(e,n);return r[0]-=i/2,o[0]-=i/2,{x:r[0],y:r[1],width:i,height:o[1]-r[1]}}function C(t){return t[0]=(0,qt.subPixelOptimize)(t[0],1),t}}}}};function md(t,e,n,i,r,o){return n>i?-1:n<i?1:o?0:e>0?t.get(r,e-1)<=i?1:-1:1}const vd=gd;function yd(t,e){var n=e.rippleEffectColor||e.color;t.eachChild((function(t){t.attr({z:e.z,zlevel:e.zlevel,style:{stroke:"stroke"===e.brushType?n:null,fill:"fill"===e.brushType?n:null}})}))}var _d=function(t){function e(e,n){var i=t.call(this)||this,r=new te(e,n),o=new jt.A;return i.add(r),i.add(o),i.updateData(e,n),i}return(0,Bt.C6)(e,t),e.prototype.stopEffectAnimation=function(){this.childAt(1).removeAll()},e.prototype.startEffectAnimation=function(t){for(var e=t.symbolType,n=t.color,i=t.rippleNumber,r=this.childAt(1),o=0;o<i;o++){var a=(0,Vt.v5)(e,-1,-1,2,2,n);a.attr({style:{strokeNoScale:!0},z2:99,silent:!0,scaleX:.5,scaleY:.5});var s=-o/i*t.period+t.effectOffset;a.animate("",!0).when(t.period,{scaleX:t.rippleScale/2,scaleY:t.rippleScale/2}).delay(s).start(),a.animateStyle(!0).when(t.period,{opacity:0}).delay(s).start(),r.add(a)}yd(r,t)},e.prototype.updateEffectAnimation=function(t){for(var e=this._effectCfg,n=this.childAt(1),i=["symbolType","period","rippleScale","rippleNumber"],r=0;r<i.length;r++){var o=i[r];if(e[o]!==t[o])return this.stopEffectAnimation(),void this.startEffectAnimation(t)}yd(n,t)},e.prototype.highlight=function(){(0,Yt.HY)(this)},e.prototype.downplay=function(){(0,Yt.SD)(this)},e.prototype.getSymbolType=function(){var t=this.childAt(0);return t&&t.getSymbolType()},e.prototype.updateData=function(t,e){var n=this,i=t.hostModel;this.childAt(0).updateData(t,e);var r=this.childAt(1),o=t.getItemModel(e),a=t.getItemVisual(e,"symbol"),s=(0,Vt.xU)(t.getItemVisual(e,"symbolSize")),l=t.getItemVisual(e,"style"),h=l&&l.fill,c=o.getModel("emphasis");r.setScale(s),r.traverse((function(t){t.setStyle("fill",h)}));var u=(0,Vt.hV)(t.getItemVisual(e,"symbolOffset"),s);u&&(r.x=u[0],r.y=u[1]);var d=t.getItemVisual(e,"symbolRotate");r.rotation=(d||0)*Math.PI/180||0;var p={};p.showEffectOn=i.get("showEffectOn"),p.rippleScale=o.get(["rippleEffect","scale"]),p.brushType=o.get(["rippleEffect","brushType"]),p.period=1e3*o.get(["rippleEffect","period"]),p.effectOffset=e/t.count(),p.z=i.getShallow("z")||0,p.zlevel=i.getShallow("zlevel")||0,p.symbolType=a,p.color=h,p.rippleEffectColor=o.get(["rippleEffect","color"]),p.rippleNumber=o.get(["rippleEffect","number"]),"render"===p.showEffectOn?(this._effectCfg?this.updateEffectAnimation(p):this.startEffectAnimation(p),this._effectCfg=p):(this._effectCfg=null,this.stopEffectAnimation(),this.onHoverStateChange=function(t){"emphasis"===t?"render"!==p.showEffectOn&&n.startEffectAnimation(p):"normal"===t&&"render"!==p.showEffectOn&&n.stopEffectAnimation()}),this._effectCfg=p,(0,Yt.Lm)(this,c.get("focus"),c.get("blurScope"),c.get("disabled"))},e.prototype.fadeOut=function(t){t&&t()},e}(jt.A);const xd=_d;const bd=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return(0,Bt.C6)(e,t),e.prototype.init=function(){this._symbolDraw=new re(xd)},e.prototype.render=function(t,e,n){var i=t.getData(),r=this._symbolDraw;r.updateData(i,{clipShape:this._getClipShape(t)}),this.group.add(r.group)},e.prototype._getClipShape=function(t){var e=t.coordinateSystem,n=e&&e.getArea&&e.getArea();return t.get("clip",!0)?n:null},e.prototype.updateTransform=function(t,e,n){var i=t.getData();this.group.dirty();var r=je("").reset(t,e,n);r.progress&&r.progress({start:0,end:i.count(),count:i.count()},i),this._symbolDraw.updateLayout()},e.prototype._updateGroupTransform=function(t){var e=t.coordinateSystem;e&&e.getRoamTransform&&(this.group.transform=_i.clone(e.getRoamTransform()),this.group.decomposeTransform())},e.prototype.remove=function(t,e){this._symbolDraw&&this._symbolDraw.remove(!0)},e.type="effectScatter",e}(xe.A);const wd=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n.hasSymbolVisual=!0,n}return(0,Bt.C6)(e,t),e.prototype.getInitialData=function(t,e){return(0,zt.A)(null,this,{useEncodeDefaulter:!0})},e.prototype.brushSelector=function(t,e,n){return n.point(e.getItemLayout(t))},e.type="series.effectScatter",e.dependencies=["grid","polar"],e.defaultOption={coordinateSystem:"cartesian2d",z:2,legendHoverLink:!0,effectType:"ripple",progressive:0,showEffectOn:"render",clip:!0,rippleEffect:{period:4,scale:2.5,brushType:"fill",number:3},universalTransition:{divideShape:"clone"},symbolSize:10},e}(Gt.A);var Sd=function(t){function e(e,n,i){var r=t.call(this)||this;return r.add(r.createLine(e,n,i)),r._updateEffectSymbol(e,n),r}return(0,Bt.C6)(e,t),e.prototype.createLine=function(t,e,n){return new Jl(t,e,n)},e.prototype._updateEffectSymbol=function(t,e){var n=t.getItemModel(e).getModel("effect"),i=n.get("symbolSize"),r=n.get("symbol");_.isArray(i)||(i=[i,i]);var o=t.getItemVisual(e,"style"),a=n.get("color")||o&&o.stroke,s=this.childAt(1);this._symbolType!==r&&(this.remove(s),(s=(0,Vt.v5)(r,-.5,-.5,1,1,a)).z2=100,s.culling=!0,this.add(s)),s&&(s.setStyle("shadowColor",a),s.setStyle(n.getItemStyle(["color"])),s.scaleX=i[0],s.scaleY=i[1],s.setColor(a),this._symbolType=r,this._symbolScale=i,this._updateEffectAnimation(t,n,e))},e.prototype._updateEffectAnimation=function(t,e,n){var i=this.childAt(1);if(i){var r=t.getItemLayout(n),o=1e3*e.get("period"),a=e.get("loop"),s=e.get("roundTrip"),l=e.get("constantSpeed"),h=_.retrieve(e.get("delay"),(function(e){return e/t.count()*o/3}));if(i.ignore=!0,this._updateAnimationPoints(i,r),l>0&&(o=this._getLineLength(i)/l*1e3),o!==this._period||a!==this._loop||s!==this._roundTrip){i.stopAnimation();var c=void 0;c=_.isFunction(h)?h(n):h,i.__t>0&&(c=-o*i.__t),this._animateSymbol(i,o,c,a,s)}this._period=o,this._loop=a,this._roundTrip=s}},e.prototype._animateSymbol=function(t,e,n,i,r){if(e>0){t.__t=0;var o=this,a=t.animate("",i).when(r?2*e:e,{__t:r?2:1}).delay(n).during((function(){o._updateSymbolPosition(t)}));i||a.done((function(){o.remove(t)})),a.start()}},e.prototype._getLineLength=function(t){return xi.dist(t.__p1,t.__cp1)+xi.dist(t.__cp1,t.__p2)},e.prototype._updateAnimationPoints=function(t,e){t.__p1=e[0],t.__p2=e[1],t.__cp1=e[2]||[(e[0][0]+e[1][0])/2,(e[0][1]+e[1][1])/2]},e.prototype.updateData=function(t,e,n){this.childAt(0).updateData(t,e,n),this._updateEffectSymbol(t,e)},e.prototype._updateSymbolPosition=function(t){var e=t.__p1,n=t.__p2,i=t.__cp1,r=t.__t<1?t.__t:2-t.__t,o=[t.x,t.y],a=o.slice(),s=ue.k3,l=ue.z7;o[0]=s(e[0],i[0],n[0],r),o[1]=s(e[1],i[1],n[1],r);var h=t.__t<1?l(e[0],i[0],n[0],r):l(n[0],i[0],e[0],1-r),c=t.__t<1?l(e[1],i[1],n[1],r):l(n[1],i[1],e[1],1-r);t.rotation=-Math.atan2(c,h)-Math.PI/2,"line"!==this._symbolType&&"rect"!==this._symbolType&&"roundRect"!==this._symbolType||(void 0!==t.__lastT&&t.__lastT<t.__t?(t.scaleY=1.05*xi.dist(a,o),1===r&&(o[0]=a[0]+(o[0]-a[0])/2,o[1]=a[1]+(o[1]-a[1])/2)):1===t.__lastT?t.scaleY=2*xi.dist(e,o):t.scaleY=this._symbolScale[1]),t.__lastT=t.__t,t.ignore=!1,t.x=o[0],t.y=o[1]},e.prototype.updateLayout=function(t,e){this.childAt(0).updateLayout(t,e);var n=t.getItemModel(e).getModel("effect");this._updateEffectAnimation(t,n,e)},e}(jt.A);const Td=Sd;var Md=function(t){function e(e,n,i){var r=t.call(this)||this;return r._createPolyline(e,n,i),r}return(0,Bt.C6)(e,t),e.prototype._createPolyline=function(t,e,n){var i=t.getItemLayout(e),r=new Pn.A({shape:{points:i}});this.add(r),this._updateCommonStl(t,e,n)},e.prototype.updateData=function(t,e,n){var i=t.hostModel,r=this.childAt(0),o={shape:{points:t.getItemLayout(e)}};Ut.oi(r,o,i,e),this._updateCommonStl(t,e,n)},e.prototype._updateCommonStl=function(t,e,n){var i=this.childAt(0),r=t.getItemModel(e),o=n&&n.emphasisLineStyle,a=n&&n.focus,s=n&&n.blurScope,l=n&&n.emphasisDisabled;if(!n||t.hasItemOption){var h=r.getModel("emphasis");o=h.getModel("lineStyle").getLineStyle(),l=h.get("disabled"),a=h.get("focus"),s=h.get("blurScope")}i.useStyle(t.getItemVisual(e,"style")),i.style.fill=null,i.style.strokeNoScale=!0,i.ensureState("emphasis").style=o,(0,Yt.Lm)(this,a,s,l)},e.prototype.updateLayout=function(t,e){this.childAt(0).setShape("points",t.getItemLayout(e))},e}(jt.A);const Ad=Md;var Cd=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e._lastFrame=0,e._lastFramePercent=0,e}return(0,Bt.C6)(e,t),e.prototype.createLine=function(t,e,n){return new Ad(t,e,n)},e.prototype._updateAnimationPoints=function(t,e){this._points=e;for(var n=[0],i=0,r=1;r<e.length;r++){var o=e[r-1],a=e[r];i+=xi.dist(o,a),n.push(i)}if(0!==i){for(r=0;r<n.length;r++)n[r]/=i;this._offsets=n,this._length=i}else this._length=0},e.prototype._getLineLength=function(){return this._length},e.prototype._updateSymbolPosition=function(t){var e=t.__t<1?t.__t:2-t.__t,n=this._points,i=this._offsets,r=n.length;if(i){var o,a=this._lastFrame;if(e<this._lastFramePercent){for(o=Math.min(a+1,r-1);o>=0&&!(i[o]<=e);o--);o=Math.min(o,r-2)}else{for(o=a;o<r&&!(i[o]>e);o++);o=Math.min(o-1,r-2)}var s=(e-i[o])/(i[o+1]-i[o]),l=n[o],h=n[o+1];t.x=l[0]*(1-s)+s*h[0],t.y=l[1]*(1-s)+s*h[1];var c=t.__t<1?h[0]-l[0]:l[0]-h[0],u=t.__t<1?h[1]-l[1]:l[1]-h[1];t.rotation=-Math.atan2(u,c)-Math.PI/2,this._lastFrame=o,this._lastFramePercent=e,t.ignore=!1}},e}(Td);const Id=Cd;var Ed=n(58),kd=n(4880),Ld=function(){this.polyline=!1,this.curveness=0,this.segs=[]},Dd=function(t){function e(e){var n=t.call(this,e)||this;return n._off=0,n.hoverDataIdx=-1,n}return(0,Bt.C6)(e,t),e.prototype.reset=function(){this.notClear=!1,this._off=0},e.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},e.prototype.getDefaultShape=function(){return new Ld},e.prototype.buildPath=function(t,e){var n,i=e.segs,r=e.curveness;if(e.polyline)for(n=this._off;n<i.length;){var o=i[n++];if(o>0){t.moveTo(i[n++],i[n++]);for(var a=1;a<o;a++)t.lineTo(i[n++],i[n++])}}else for(n=this._off;n<i.length;){var s=i[n++],l=i[n++],h=i[n++],c=i[n++];if(t.moveTo(s,l),r>0){var u=(s+h)/2-(l-c)*r,d=(l+c)/2-(h-s)*r;t.quadraticCurveTo(u,d,h,c)}else t.lineTo(h,c)}this.incremental&&(this._off=n,this.notClear=!0)},e.prototype.findDataIndex=function(t,e){var n=this.shape,i=n.segs,r=n.curveness,o=this.style.lineWidth;if(n.polyline)for(var a=0,s=0;s<i.length;){var l=i[s++];if(l>0)for(var h=i[s++],c=i[s++],u=1;u<l;u++){var d=i[s++],p=i[s++];if(Ed.l(h,c,d,p,o,t,e))return a}a++}else for(a=0,s=0;s<i.length;){h=i[s++],c=i[s++],d=i[s++],p=i[s++];if(r>0){var f=(h+d)/2-(c-p)*r,g=(c+p)/2-(d-h)*r;if(kd.l(h,c,f,g,d,p,o,t,e))return a}else if(Ed.l(h,c,d,p,o,t,e))return a;a++}return-1},e.prototype.contain=function(t,e){var n=this.transformCoordToLocal(t,e),i=this.getBoundingRect();return t=n[0],e=n[1],i.contain(t,e)?(this.hoverDataIdx=this.findDataIndex(t,e))>=0:(this.hoverDataIdx=-1,!1)},e.prototype.getBoundingRect=function(){var t=this._rect;if(!t){for(var e=this.shape.segs,n=1/0,i=1/0,r=-1/0,o=-1/0,a=0;a<e.length;){var s=e[a++],l=e[a++];n=Math.min(s,n),r=Math.max(s,r),i=Math.min(l,i),o=Math.max(l,o)}t=this._rect=new Jn.A(n,i,r,o)}return t},e}(s.Ay);const Pd=function(){function t(){this.group=new jt.A}return t.prototype.updateData=function(t){this._clear();var e=this._create();e.setShape({segs:t.getLayout("linesPoints")}),this._setCommon(e,t)},t.prototype.incrementalPrepareUpdate=function(t){this.group.removeAll(),this._clear()},t.prototype.incrementalUpdate=function(t,e){var n=this._newAdded[0],i=e.getLayout("linesPoints"),r=n&&n.shape.segs;if(r&&r.length<2e4){var o=r.length,a=new Float32Array(o+i.length);a.set(r),a.set(i,o),n.setShape({segs:a})}else{this._newAdded=[];var s=this._create();s.incremental=!0,s.setShape({segs:i}),this._setCommon(s,e),s.__startIndex=t.start}},t.prototype.remove=function(){this._clear()},t.prototype.eachRendered=function(t){this._newAdded[0]&&t(this._newAdded[0])},t.prototype._create=function(){var t=new Dd({cursor:"default",ignoreCoarsePointer:!0});return this._newAdded.push(t),this.group.add(t),t},t.prototype._setCommon=function(t,e,n){var i=e.hostModel;t.setShape({polyline:i.get("polyline"),curveness:i.get(["lineStyle","curveness"])}),t.useStyle(i.getModel("lineStyle").getLineStyle()),t.style.strokeNoScale=!0;var r=e.getVisual("style");r&&r.stroke&&t.setStyle("stroke",r.stroke),t.setStyle("fill",null);var o=(0,Xt.z)(t);o.seriesIndex=i.seriesIndex,t.on("mousemove",(function(e){o.dataIndex=null;var n=t.hoverDataIdx;n>0&&(o.dataIndex=n+t.__startIndex)}))},t.prototype._clear=function(){this._newAdded=[],this.group.removeAll()},t}();var Rd={seriesType:"lines",plan:(0,Ve.A)(),reset:function(t){var e=t.coordinateSystem;if(e){var n=t.get("polyline"),i=t.pipelineContext.large;return{progress:function(r,o){var a=[];if(i){var s=void 0,l=r.end-r.start;if(n){for(var h=0,c=r.start;c<r.end;c++)h+=t.getLineCoordsCount(c);s=new Float32Array(l+2*h)}else s=new Float32Array(4*l);var u=0,d=[];for(c=r.start;c<r.end;c++){var p=t.getLineCoords(c,a);n&&(s[u++]=p);for(var f=0;f<p;f++)d=e.dataToPoint(a[f],!1,d),s[u++]=d[0],s[u++]=d[1]}o.setLayout("linesPoints",s)}else for(c=r.start;c<r.end;c++){var g=o.getItemModel(c),m=(p=t.getLineCoords(c,a),[]);if(n)for(var v=0;v<p;v++)m.push(e.dataToPoint(a[v]));else{m[0]=e.dataToPoint(a[0]),m[1]=e.dataToPoint(a[1]);var y=g.get(["lineStyle","curveness"]);+y&&(m[2]=[(m[0][0]+m[1][0])/2-(m[0][1]-m[1][1])*y,(m[0][1]+m[1][1])/2-(m[1][0]-m[0][0])*y])}o.setItemLayout(c,m)}}}}}};const Od=Rd;const Nd=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return(0,Bt.C6)(e,t),e.prototype.render=function(t,e,n){var i=t.getData(),r=this._updateLineDraw(i,t),o=t.get("zlevel"),a=t.get(["effect","trailLength"]),s=n.getZr(),l="svg"===s.painter.getType();l||s.painter.getLayer(o).clear(!0),null==this._lastZlevel||l||s.configLayer(this._lastZlevel,{motionBlur:!1}),this._showEffect(t)&&a>0&&(l||s.configLayer(o,{motionBlur:!0,lastFrameAlpha:Math.max(Math.min(a/10+.9,1),0)})),r.updateData(i);var h=t.get("clip",!0)&&Ae(t.coordinateSystem,!1,t);h?this.group.setClipPath(h):this.group.removeClipPath(),this._lastZlevel=o,this._finished=!0},e.prototype.incrementalPrepareRender=function(t,e,n){var i=t.getData();this._updateLineDraw(i,t).incrementalPrepareUpdate(i),this._clearLayer(n),this._finished=!1},e.prototype.incrementalRender=function(t,e,n){this._lineDraw.incrementalUpdate(t,e.getData()),this._finished=t.end===e.getData().count()},e.prototype.eachRendered=function(t){this._lineDraw&&this._lineDraw.eachRendered(t)},e.prototype.updateTransform=function(t,e,n){var i=t.getData(),r=t.pipelineContext;if(!this._finished||r.large||r.progressiveRender)return{update:!0};var o=Od.reset(t,e,n);o.progress&&o.progress({start:0,end:i.count(),count:i.count()},i),this._lineDraw.updateLayout(),this._clearLayer(n)},e.prototype._updateLineDraw=function(t,e){var n=this._lineDraw,i=this._showEffect(e),r=!!e.get("polyline"),o=e.pipelineContext.large;return n&&i===this._hasEffet&&r===this._isPolyline&&o===this._isLargeDraw||(n&&n.remove(),n=this._lineDraw=o?new Pd:new nh(r?i?Id:Ad:i?Td:Jl),this._hasEffet=i,this._isPolyline=r,this._isLargeDraw=o),this.group.add(n.group),n},e.prototype._showEffect=function(t){return!!t.get(["effect","show"])},e.prototype._clearLayer=function(t){var e=t.getZr();"svg"===e.painter.getType()||null==this._lastZlevel||e.painter.getLayer(this._lastZlevel).clear(!0)},e.prototype.remove=function(t,e){this._lineDraw&&this._lineDraw.remove(),this._lineDraw=null,this._clearLayer(e)},e.prototype.dispose=function(t,e){this.remove(t,e)},e.type="lines",e}(xe.A);var Fd="undefined"==typeof Uint32Array?Array:Uint32Array,Bd="undefined"==typeof Float64Array?Array:Float64Array;function zd(t){var e=t.data;e&&e[0]&&e[0][0]&&e[0][0].coord&&(t.data=(0,_.map)(e,(function(t){var e={coords:[t[0].coord,t[1].coord]};return t[0].name&&(e.fromName=t[0].name),t[1].name&&(e.toName=t[1].name),(0,_.mergeAll)([e,t[0],t[1]])})))}var Gd=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n.visualStyleAccessPath="lineStyle",n.visualDrawType="stroke",n}return(0,Bt.C6)(e,t),e.prototype.init=function(e){e.data=e.data||[],zd(e);var n=this._processFlatCoordsArray(e.data);this._flatCoords=n.flatCoords,this._flatCoordsOffset=n.flatCoordsOffset,n.flatCoords&&(e.data=new Float32Array(n.count)),t.prototype.init.apply(this,arguments)},e.prototype.mergeOption=function(e){if(zd(e),e.data){var n=this._processFlatCoordsArray(e.data);this._flatCoords=n.flatCoords,this._flatCoordsOffset=n.flatCoordsOffset,n.flatCoords&&(e.data=new Float32Array(n.count))}t.prototype.mergeOption.apply(this,arguments)},e.prototype.appendData=function(t){var e=this._processFlatCoordsArray(t.data);e.flatCoords&&(this._flatCoords?(this._flatCoords=(0,_.concatArray)(this._flatCoords,e.flatCoords),this._flatCoordsOffset=(0,_.concatArray)(this._flatCoordsOffset,e.flatCoordsOffset)):(this._flatCoords=e.flatCoords,this._flatCoordsOffset=e.flatCoordsOffset),t.data=new Float32Array(e.count)),this.getRawData().appendData(t.data)},e.prototype._getCoordsFromItemModel=function(t){var e=this.getData().getItemModel(t);return e.option instanceof Array?e.option:e.getShallow("coords")},e.prototype.getLineCoordsCount=function(t){return this._flatCoordsOffset?this._flatCoordsOffset[2*t+1]:this._getCoordsFromItemModel(t).length},e.prototype.getLineCoords=function(t,e){if(this._flatCoordsOffset){for(var n=this._flatCoordsOffset[2*t],i=this._flatCoordsOffset[2*t+1],r=0;r<i;r++)e[r]=e[r]||[],e[r][0]=this._flatCoords[n+2*r],e[r][1]=this._flatCoords[n+2*r+1];return i}var o=this._getCoordsFromItemModel(t);for(r=0;r<o.length;r++)e[r]=e[r]||[],e[r][0]=o[r][0],e[r][1]=o[r][1];return o.length},e.prototype._processFlatCoordsArray=function(t){var e=0;if(this._flatCoords&&(e=this._flatCoords.length),(0,_.isNumber)(t[0])){for(var n=t.length,i=new Fd(n),r=new Bd(n),o=0,a=0,s=0,l=0;l<n;){s++;var h=t[l++];i[a++]=o+e,i[a++]=h;for(var c=0;c<h;c++){var u=t[l++],d=t[l++];r[o++]=u,r[o++]=d}}return{flatCoordsOffset:new Uint32Array(i.buffer,0,a),flatCoords:r,count:s}}return{flatCoordsOffset:null,flatCoords:null,count:t.length}},e.prototype.getInitialData=function(t,e){var n=new Un.A(["value"],this);return n.hasItemOption=!1,n.initData(t.data,[],(function(t,e,i,r){if(t instanceof Array)return NaN;n.hasItemOption=!0;var o=t.value;return null!=o?o instanceof Array?o[r]:o:void 0})),n},e.prototype.formatTooltip=function(t,e,n){var i=this.getData().getItemModel(t),r=i.get("name");if(r)return r;var o=i.get("fromName"),a=i.get("toName"),s=[];return null!=o&&s.push(o),null!=a&&s.push(a),(0,br.Qx)("nameValue",{name:s.join(" > ")})},e.prototype.preventIncremental=function(){return!!this.get(["effect","show"])},e.prototype.getProgressive=function(){var t=this.option.progressive;return null==t?this.option.large?1e4:this.get("progressive"):t},e.prototype.getProgressiveThreshold=function(){var t=this.option.progressiveThreshold;return null==t?this.option.large?2e4:this.get("progressiveThreshold"):t},e.prototype.getZLevelKey=function(){var t=this.getModel("effect"),e=t.get("trailLength");return this.getData().count()>this.getProgressiveThreshold()?this.id:t.get("show")&&e>0?e+"":""},e.type="series.lines",e.dependencies=["grid","polar","geo","calendar"],e.defaultOption={coordinateSystem:"geo",z:2,legendHoverLink:!0,xAxisIndex:0,yAxisIndex:0,symbol:["none","none"],symbolSize:[10,10],geoIndex:0,effect:{show:!1,period:4,constantSpeed:0,symbol:"circle",symbolSize:3,loop:!0,trailLength:.2},large:!1,largeThreshold:2e3,polyline:!1,clip:!0,label:{show:!1,position:"end"},lineStyle:{opacity:.5}},e}(Gt.A);const Vd=Gd;function jd(t){return t instanceof Array||(t=[t,t]),t}const Hd={seriesType:"lines",reset:function(t){var e=jd(t.get("symbol")),n=jd(t.get("symbolSize")),i=t.getData();return i.setVisual("fromSymbol",e&&e[0]),i.setVisual("toSymbol",e&&e[1]),i.setVisual("fromSymbolSize",n&&n[0]),i.setVisual("toSymbolSize",n&&n[1]),{dataEach:i.hasItemOption?function(t,e){var n=t.getItemModel(e),i=jd(n.getShallow("symbol",!0)),r=jd(n.getShallow("symbolSize",!0));i[0]&&t.setItemVisual(e,"fromSymbol",i[0]),i[1]&&t.setItemVisual(e,"toSymbol",i[1]),r[0]&&t.setItemVisual(e,"fromSymbolSize",r[0]),r[1]&&t.setItemVisual(e,"toSymbolSize",r[1])}:null}}};var Wd=function(){function t(){this.blurSize=30,this.pointSize=20,this.maxOpacity=1,this.minOpacity=0,this._gradientPixels={inRange:null,outOfRange:null};var t=$.yh.createCanvas();this.canvas=t}return t.prototype.update=function(t,e,n,i,r,o){var a=this._getBrush(),s=this._getGradient(r,"inRange"),l=this._getGradient(r,"outOfRange"),h=this.pointSize+this.blurSize,c=this.canvas,u=c.getContext("2d"),d=t.length;c.width=e,c.height=n;for(var p=0;p<d;++p){var f=t[p],g=f[0],m=f[1],v=i(f[2]);u.globalAlpha=v,u.drawImage(a,g-h,m-h)}if(!c.width||!c.height)return c;for(var y=u.getImageData(0,0,c.width,c.height),_=y.data,x=0,b=_.length,w=this.minOpacity,S=this.maxOpacity-w;x<b;){v=_[x+3]/256;var T=4*Math.floor(255*v);if(v>0){var M=o(v)?s:l;v>0&&(v=v*S+w),_[x++]=M[T],_[x++]=M[T+1],_[x++]=M[T+2],_[x++]=M[T+3]*v*256}else x+=4}return u.putImageData(y,0,0),c},t.prototype._getBrush=function(){var t=this._brushCanvas||(this._brushCanvas=$.yh.createCanvas()),e=this.pointSize+this.blurSize,n=2*e;t.width=n,t.height=n;var i=t.getContext("2d");return i.clearRect(0,0,n,n),i.shadowOffsetX=n,i.shadowBlur=this.blurSize,i.shadowColor="#000",i.beginPath(),i.arc(-e,e,this.pointSize,0,2*Math.PI,!0),i.closePath(),i.fill(),t},t.prototype._getGradient=function(t,e){for(var n=this._gradientPixels,i=n[e]||(n[e]=new Uint8ClampedArray(1024)),r=[0,0,0,0],o=0,a=0;a<256;a++)t[e](a/255,!0,r),i[o++]=r[0],i[o++]=r[1],i[o++]=r[2],i[o++]=r[3];return i},t}();const Ud=Wd;function qd(t){var e=t.dimensions;return"lng"===e[0]&&"lat"===e[1]}var Xd=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return(0,Bt.C6)(e,t),e.prototype.render=function(t,e,n){var i;e.eachComponent("visualMap",(function(e){e.eachTargetSeries((function(n){n===t&&(i=e)}))})),this._progressiveEls=null,this.group.removeAll();var r=t.coordinateSystem;"cartesian2d"===r.type||"calendar"===r.type?this._renderOnCartesianAndCalendar(t,n,0,t.getData().count()):qd(r)&&this._renderOnGeo(r,t,i,n)},e.prototype.incrementalPrepareRender=function(t,e,n){this.group.removeAll()},e.prototype.incrementalRender=function(t,e,n,i){var r=e.coordinateSystem;r&&(qd(r)?this.render(e,n,i):(this._progressiveEls=[],this._renderOnCartesianAndCalendar(e,i,t.start,t.end,!0)))},e.prototype.eachRendered=function(t){qt.traverseElements(this._progressiveEls||this.group,t)},e.prototype._renderOnCartesianAndCalendar=function(t,e,n,i,r){var o,a,s,l,h=t.coordinateSystem,c=Ce(h,"cartesian2d");if(c){var u=h.getAxis("x"),d=h.getAxis("y");0,o=u.getBandWidth()+.5,a=d.getBandWidth()+.5,s=u.scale.getExtent(),l=d.scale.getExtent()}for(var p=this.group,f=t.getData(),g=t.getModel(["emphasis","itemStyle"]).getItemStyle(),m=t.getModel(["blur","itemStyle"]).getItemStyle(),v=t.getModel(["select","itemStyle"]).getItemStyle(),y=t.get(["itemStyle","borderRadius"]),_=(0,Jt.lx)(t),x=t.getModel("emphasis"),b=x.get("focus"),w=x.get("blurScope"),S=x.get("disabled"),T=c?[f.mapDimension("x"),f.mapDimension("y"),f.mapDimension("value")]:[f.mapDimension("time"),f.mapDimension("value")],M=n;M<i;M++){var A=void 0,C=f.getItemVisual(M,"style");if(c){var I=f.get(T[0],M),E=f.get(T[1],M);if(isNaN(f.get(T[2],M))||isNaN(I)||isNaN(E)||I<s[0]||I>s[1]||E<l[0]||E>l[1])continue;var k=h.dataToPoint([I,E]);A=new be.A({shape:{x:k[0]-o/2,y:k[1]-a/2,width:o,height:a},style:C})}else{if(isNaN(f.get(T[1],M)))continue;A=new be.A({z2:1,shape:h.dataToRect([f.get(T[0],M)]).contentShape,style:C})}if(f.hasItemOption){var L=f.getItemModel(M),D=L.getModel("emphasis");g=D.getModel("itemStyle").getItemStyle(),m=L.getModel(["blur","itemStyle"]).getItemStyle(),v=L.getModel(["select","itemStyle"]).getItemStyle(),y=L.get(["itemStyle","borderRadius"]),b=D.get("focus"),w=D.get("blurScope"),S=D.get("disabled"),_=(0,Jt.lx)(L)}A.shape.r=y;var P=t.getRawValue(M),R="-";P&&null!=P[2]&&(R=P[2]+""),(0,Jt.qM)(A,_,{labelFetcher:t,labelDataIndex:M,defaultOpacity:C.opacity,defaultText:R}),A.ensureState("emphasis").style=g,A.ensureState("blur").style=m,A.ensureState("select").style=v,(0,Yt.Lm)(A,b,w,S),A.incremental=r,r&&(A.states.emphasis.hoverLayer=!0),p.add(A),f.setItemGraphicEl(M,A),this._progressiveEls&&this._progressiveEls.push(A)}},e.prototype._renderOnGeo=function(t,e,n,i){var r=n.targetVisuals.inRange,o=n.targetVisuals.outOfRange,a=e.getData(),s=this._hmLayer||this._hmLayer||new Ud;s.blurSize=e.get("blurSize"),s.pointSize=e.get("pointSize"),s.minOpacity=e.get("minOpacity"),s.maxOpacity=e.get("maxOpacity");var h=t.getViewRect().clone(),c=t.getRoamTransform();h.applyTransform(c);var u=Math.max(h.x,0),d=Math.max(h.y,0),p=Math.min(h.width+h.x,i.getWidth()),f=Math.min(h.height+h.y,i.getHeight()),g=p-u,m=f-d,v=[a.mapDimension("lng"),a.mapDimension("lat"),a.mapDimension("value")],y=a.mapArray(v,(function(e,n,i){var r=t.dataToPoint([e,n]);return r[0]-=u,r[1]-=d,r.push(i),r})),x=n.getExtent(),b="visualMap.continuous"===n.type?function(t,e){var n=t[1]-t[0];return e=[(e[0]-t[0])/n,(e[1]-t[0])/n],function(t){return t>=e[0]&&t<=e[1]}}(x,n.option.range):function(t,e,n){var i=t[1]-t[0],r=(e=_.map(e,(function(e){return{interval:[(e.interval[0]-t[0])/i,(e.interval[1]-t[0])/i]}}))).length,o=0;return function(t){var i;for(i=o;i<r;i++)if((a=e[i].interval)[0]<=t&&t<=a[1]){o=i;break}if(i===r)for(i=o-1;i>=0;i--){var a;if((a=e[i].interval)[0]<=t&&t<=a[1]){o=i;break}}return i>=0&&i<r&&n[i]}}(x,n.getPieceList(),n.option.selected);s.update(y,g,m,r.color.getNormalizer(),{inRange:r.color.getColorMapper(),outOfRange:o.color.getColorMapper()},b);var w=new l.Ay({style:{width:g,height:m,x:u,y:d,image:s.canvas},silent:!0});this.group.add(w)},e.type="heatmap",e}(xe.A);const Yd=Xd;const Zd=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return(0,Bt.C6)(e,t),e.prototype.getInitialData=function(t,e){return(0,zt.A)(null,this,{generateCoord:"value"})},e.prototype.preventIncremental=function(){var t=gh.A.get(this.get("coordinateSystem"));if(t&&t.dimensions)return"lng"===t.dimensions[0]&&"lat"===t.dimensions[1]},e.type="series.heatmap",e.dependencies=["grid","geo","calendar"],e.defaultOption={coordinateSystem:"cartesian2d",z:2,geoIndex:0,blurSize:30,pointSize:20,maxOpacity:1,minOpacity:0,select:{itemStyle:{borderColor:"#212121"}}},e}(Gt.A);var $d=["itemStyle","borderWidth"],Kd=[{xy:"x",wh:"width",index:0,posDesc:["left","right"]},{xy:"y",wh:"height",index:1,posDesc:["top","bottom"]}],Jd=new Cr.A;function Qd(t,e,n,i){var r=t.getItemLayout(e),o=n.get("symbolRepeat"),a=n.get("symbolClip"),s=n.get("symbolPosition")||"start",l=(n.get("symbolRotate")||0)*Math.PI/180||0,h=n.get("symbolPatternSize")||2,c=n.isAnimationEnabled(),u={dataIndex:e,layout:r,itemModel:n,symbolType:t.getItemVisual(e,"symbol")||"circle",style:t.getItemVisual(e,"style"),symbolClip:a,symbolRepeat:o,symbolRepeatDirection:n.get("symbolRepeatDirection"),symbolPatternSize:h,rotation:l,animationModel:c?n:null,hoverScale:c&&n.get(["emphasis","scale"]),z2:n.getShallow("z",!0)||0};!function(t,e,n,i,r){var o,a=i.valueDim,s=t.get("symbolBoundingData"),l=i.coordSys.getOtherAxis(i.coordSys.getBaseAxis()),h=l.toGlobalCoord(l.dataToCoord(0)),c=1-+(n[a.wh]<=0);if(_.isArray(s)){var u=[tp(l,s[0])-h,tp(l,s[1])-h];u[1]<u[0]&&u.reverse(),o=u[c]}else o=null!=s?tp(l,s)-h:e?i.coordSysExtent[a.index][c]-h:n[a.wh];r.boundingLength=o,e&&(r.repeatCutLength=n[a.wh]);r.pxSign=o>0?1:-1}(n,o,r,i,u),function(t,e,n,i,r,o,a,s,l,h){var c,u=l.valueDim,d=l.categoryDim,p=Math.abs(n[d.wh]),f=t.getItemVisual(e,"symbolSize");c=_.isArray(f)?f.slice():null==f?["100%","100%"]:[f,f];c[d.index]=(0,Se.lo)(c[d.index],p),c[u.index]=(0,Se.lo)(c[u.index],i?p:Math.abs(o)),h.symbolSize=c;var g=h.symbolScale=[c[0]/s,c[1]/s];g[u.index]*=(l.isHorizontal?-1:1)*a}(t,e,r,o,0,u.boundingLength,u.pxSign,h,i,u),function(t,e,n,i,r){var o=t.get($d)||0;o&&(Jd.attr({scaleX:e[0],scaleY:e[1],rotation:n}),Jd.updateTransform(),o/=Jd.getLineScale(),o*=e[i.valueDim.index]);r.valueLineWidth=o||0}(n,u.symbolScale,l,i,u);var d=u.symbolSize,p=(0,Vt.hV)(n.get("symbolOffset"),d);return function(t,e,n,i,r,o,a,s,l,h,c,u){var d=c.categoryDim,p=c.valueDim,f=u.pxSign,g=Math.max(e[p.index]+s,0),m=g;if(i){var v=Math.abs(l),y=_.retrieve(t.get("symbolMargin"),"15%")+"",x=!1;y.lastIndexOf("!")===y.length-1&&(x=!0,y=y.slice(0,y.length-1));var b=(0,Se.lo)(y,e[p.index]),w=Math.max(g+2*b,0),S=x?0:2*b,T=(0,Se.kf)(i),M=T?i:gp((v+S)/w);w=g+2*(b=(v-M*g)/2/(x?M:Math.max(M-1,1))),S=x?0:2*b,T||"fixed"===i||(M=h?gp((Math.abs(h)+S)/w):0),m=M*w-S,u.repeatTimes=M,u.symbolMargin=b}var A=f*(m/2),C=u.pathPosition=[];C[d.index]=n[d.wh]/2,C[p.index]="start"===a?A:"end"===a?l-A:l/2,o&&(C[0]+=o[0],C[1]+=o[1]);var I=u.bundlePosition=[];I[d.index]=n[d.xy],I[p.index]=n[p.xy];var E=u.barRectShape=_.extend({},n);E[p.wh]=f*Math.max(Math.abs(n[p.wh]),Math.abs(C[p.index]+A)),E[d.wh]=n[d.wh];var k=u.clipShape={};k[d.xy]=-n[d.xy],k[d.wh]=c.ecSize[d.wh],k[p.xy]=0,k[p.wh]=n[p.wh]}(n,d,r,o,0,p,s,u.valueLineWidth,u.boundingLength,u.repeatCutLength,i,u),u}function tp(t,e){return t.toGlobalCoord(t.dataToCoord(t.scale.parse(e)))}function ep(t){var e=t.symbolPatternSize,n=(0,Vt.v5)(t.symbolType,-e/2,-e/2,e,e);return n.attr({culling:!0}),"image"!==n.type&&n.setStyle({strokeNoScale:!0}),n}function np(t,e,n,i){var r=t.__pictorialBundle,o=n.symbolSize,a=n.valueLineWidth,s=n.pathPosition,l=e.valueDim,h=n.repeatTimes||0,c=0,u=o[e.valueDim.index]+a+2*n.symbolMargin;for(dp(t,(function(t){t.__pictorialAnimationIndex=c,t.__pictorialRepeatTimes=h,c<h?pp(t,null,f(c),n,i):pp(t,null,{scaleX:0,scaleY:0},n,i,(function(){r.remove(t)})),c++}));c<h;c++){var d=ep(n);d.__pictorialAnimationIndex=c,d.__pictorialRepeatTimes=h,r.add(d);var p=f(c);pp(d,{x:p.x,y:p.y,scaleX:0,scaleY:0},{scaleX:p.scaleX,scaleY:p.scaleY,rotation:p.rotation},n,i)}function f(t){var e=s.slice(),i=n.pxSign,r=t;return("start"===n.symbolRepeatDirection?i>0:i<0)&&(r=h-1-t),e[l.index]=u*(r-h/2+.5)+s[l.index],{x:e[0],y:e[1],scaleX:n.symbolScale[0],scaleY:n.symbolScale[1],rotation:n.rotation}}}function ip(t,e,n,i){var r=t.__pictorialBundle,o=t.__pictorialMainPath;o?pp(o,null,{x:n.pathPosition[0],y:n.pathPosition[1],scaleX:n.symbolScale[0],scaleY:n.symbolScale[1],rotation:n.rotation},n,i):(o=t.__pictorialMainPath=ep(n),r.add(o),pp(o,{x:n.pathPosition[0],y:n.pathPosition[1],scaleX:0,scaleY:0,rotation:n.rotation},{scaleX:n.symbolScale[0],scaleY:n.symbolScale[1]},n,i))}function rp(t,e,n){var i=_.extend({},e.barRectShape),r=t.__pictorialBarRect;r?pp(r,null,{shape:i},e,n):((r=t.__pictorialBarRect=new be.A({z2:2,shape:i,silent:!0,style:{stroke:"transparent",fill:"transparent",lineWidth:0}})).disableMorphing=!0,t.add(r))}function op(t,e,n,i){if(n.symbolClip){var r=t.__pictorialClipPath,o=_.extend({},n.clipShape),a=e.valueDim,s=n.animationModel,l=n.dataIndex;if(r)Ut.oi(r,{shape:o},s,l);else{o[a.wh]=0,r=new be.A({shape:o}),t.__pictorialBundle.setClipPath(r),t.__pictorialClipPath=r;var h={};h[a.wh]=n.clipShape[a.wh],qt[i?"updateProps":"initProps"](r,{shape:h},s,l)}}}function ap(t,e){var n=t.getItemModel(e);return n.getAnimationDelayParams=sp,n.isAnimationEnabled=lp,n}function sp(t){return{index:t.__pictorialAnimationIndex,count:t.__pictorialRepeatTimes}}function lp(){return this.parentModel.isAnimationEnabled()&&!!this.getShallow("animation")}function hp(t,e,n,i){var r=new jt.A,o=new jt.A;return r.add(o),r.__pictorialBundle=o,o.x=n.bundlePosition[0],o.y=n.bundlePosition[1],n.symbolRepeat?np(r,e,n):ip(r,0,n),rp(r,n,i),op(r,e,n,i),r.__pictorialShapeStr=up(t,n),r.__pictorialSymbolMeta=n,r}function cp(t,e,n,i){var r=i.__pictorialBarRect;r&&r.removeTextContent();var o=[];dp(i,(function(t){o.push(t)})),i.__pictorialMainPath&&o.push(i.__pictorialMainPath),i.__pictorialClipPath&&(n=null),_.each(o,(function(t){Ut.Nz(t,{scaleX:0,scaleY:0},n,e,(function(){i.parent&&i.parent.remove(i)}))})),t.setItemGraphicEl(e,null)}function up(t,e){return[t.getItemVisual(e.dataIndex,"symbol")||"none",!!e.symbolRepeat,!!e.symbolClip].join(":")}function dp(t,e,n){_.each(t.__pictorialBundle.children(),(function(i){i!==t.__pictorialBarRect&&e.call(n,i)}))}function pp(t,e,n,i,r,o){e&&t.attr(e),i.symbolClip&&!r?n&&t.attr(n):n&&qt[r?"updateProps":"initProps"](t,n,i.animationModel,i.dataIndex,o)}function fp(t,e,n){var i=n.dataIndex,r=n.itemModel,o=r.getModel("emphasis"),a=o.getModel("itemStyle").getItemStyle(),s=r.getModel(["blur","itemStyle"]).getItemStyle(),h=r.getModel(["select","itemStyle"]).getItemStyle(),c=r.getShallow("cursor"),u=o.get("focus"),d=o.get("blurScope"),p=o.get("scale");dp(t,(function(t){if(t instanceof l.Ay){var e=t.style;t.useStyle(_.extend({image:e.image,x:e.x,y:e.y,width:e.width,height:e.height},n.style))}else t.useStyle(n.style);var i=t.ensureState("emphasis");i.style=a,p&&(i.scaleX=1.1*t.scaleX,i.scaleY=1.1*t.scaleY),t.ensureState("blur").style=s,t.ensureState("select").style=h,c&&(t.cursor=c),t.z2=n.z2}));var f=e.valueDim.posDesc[+(n.boundingLength>0)],g=t.__pictorialBarRect;g.ignoreClip=!0,(0,Jt.qM)(g,(0,Jt.lx)(r),{labelFetcher:e.seriesModel,labelDataIndex:i,defaultText:$t(e.seriesModel.getData(),i),inheritColor:n.style.fill,defaultOpacity:n.style.opacity,defaultOutsidePosition:f}),(0,Yt.Lm)(t,u,d,o.get("disabled"))}function gp(t){var e=Math.round(t);return Math.abs(t-e)<1e-4?e:Math.ceil(t)}const mp=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return(0,Bt.C6)(e,t),e.prototype.render=function(t,e,n){var i=this.group,r=t.getData(),o=this._data,a=t.coordinateSystem,s=a.getBaseAxis().isHorizontal(),l=a.master.getRect(),h={ecSize:{width:n.getWidth(),height:n.getHeight()},seriesModel:t,coordSys:a,coordSysExtent:[[l.x,l.x+l.width],[l.y,l.y+l.height]],isHorizontal:s,valueDim:Kd[+s],categoryDim:Kd[1-+s]};r.diff(o).add((function(t){if(r.hasValue(t)){var e=ap(r,t),n=Qd(r,t,e,h),o=hp(r,h,n);r.setItemGraphicEl(t,o),i.add(o),fp(o,h,n)}})).update((function(t,e){var n=o.getItemGraphicEl(e);if(r.hasValue(t)){var a=ap(r,t),s=Qd(r,t,a,h),l=up(r,s);n&&l!==n.__pictorialShapeStr&&(i.remove(n),r.setItemGraphicEl(t,null),n=null),n?function(t,e,n){var i=n.animationModel,r=n.dataIndex,o=t.__pictorialBundle;Ut.oi(o,{x:n.bundlePosition[0],y:n.bundlePosition[1]},i,r),n.symbolRepeat?np(t,e,n,!0):ip(t,e,n,!0);rp(t,n,!0),op(t,e,n,!0)}(n,h,s):n=hp(r,h,s,!0),r.setItemGraphicEl(t,n),n.__pictorialSymbolMeta=s,i.add(n),fp(n,h,s)}else i.remove(n)})).remove((function(t){var e=o.getItemGraphicEl(t);e&&cp(o,t,e.__pictorialSymbolMeta.animationModel,e)})).execute();var c=t.get("clip",!0)?Ae(t.coordinateSystem,!1,t):null;return c?i.setClipPath(c):i.removeClipPath(),this._data=r,this.group},e.prototype.remove=function(t,e){var n=this.group,i=this._data;t.get("animation")?i&&i.eachItemGraphicEl((function(e){cp(i,(0,Xt.z)(e).dataIndex,t,e)})):n.removeAll()},e.type="pictorialBar",e}(xe.A);const vp=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n.hasSymbolVisual=!0,n.defaultSymbol="roundRect",n}return(0,Bt.C6)(e,t),e.prototype.getInitialData=function(e){return e.stack=null,t.prototype.getInitialData.apply(this,arguments)},e.type="series.pictorialBar",e.dependencies=["grid"],e.defaultOption=(0,Ze.G_)(Ye.defaultOption,{symbol:"circle",symbolSize:null,symbolRotate:null,symbolPosition:null,symbolOffset:null,symbolMargin:null,symbolRepeat:!1,symbolRepeatDirection:"end",symbolClip:!1,symbolBoundingData:null,symbolPatternSize:400,barGap:"-100%",clip:!1,progressive:0,emphasis:{scale:!1},select:{itemStyle:{borderColor:"#212121"}}}),e}(Ye);var yp=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n._layers=[],n}return(0,Bt.C6)(e,t),e.prototype.render=function(t,e,n){var i=t.getData(),r=this,o=this.group,a=t.getLayerSeries(),s=i.getLayout("layoutInfo"),l=s.rect,h=s.boundaryGap;function c(t){return t.name}o.x=0,o.y=l.y+h[0];var u=new gs.A(this._layersSeries||[],a,c,c),d=[];function p(e,n,s){var l=r._layers;if("remove"!==e){for(var h,c,u=[],p=[],f=a[n].indices,g=0;g<f.length;g++){var m=i.getItemLayout(f[g]),v=m.x,y=m.y0,_=m.y;u.push(v,y),p.push(v,y+_),h=i.getItemVisual(f[g],"style")}var x=i.getItemLayout(f[0]),b=t.getModel("label").get("margin"),w=t.getModel("emphasis");if("add"===e){var S=d[n]=new jt.A;c=new _e({shape:{points:u,stackedOnPoints:p,smooth:.4,stackedOnSmooth:.4,smoothConstraint:!1},z2:0}),S.add(c),o.add(S),t.isAnimationEnabled()&&c.setClipPath(function(t,e,n){var i=new be.A({shape:{x:t.x-10,y:t.y-10,width:0,height:t.height+20}});return Ut.LW(i,{shape:{x:t.x-50,width:t.width+100,height:t.height+20}},e,n),i}(c.getBoundingRect(),t,(function(){c.removeClipPath()})))}else{S=l[s];c=S.childAt(0),o.add(S),d[n]=S,Ut.oi(c,{shape:{points:u,stackedOnPoints:p}},t),(0,Ut.ap)(c)}(0,Jt.qM)(c,(0,Jt.lx)(t),{labelDataIndex:f[g-1],defaultText:i.getName(f[g-1]),inheritColor:h.fill},{normal:{verticalAlign:"middle"}}),c.setTextConfig({position:null,local:!0});var T=c.getTextContent();T&&(T.x=x.x-b,T.y=x.y0+x.y/2),c.useStyle(h),i.setItemGraphicEl(n,c),(0,Yt.Mx)(c,t),(0,Yt.Lm)(c,w.get("focus"),w.get("blurScope"),w.get("disabled"))}else o.remove(l[n])}u.add((0,_.bind)(p,this,"add")).update((0,_.bind)(p,this,"update")).remove((0,_.bind)(p,this,"remove")).execute(),this._layersSeries=a,this._layers=d},e.type="themeRiver",e}(xe.A);const _p=yp;var xp=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return(0,Bt.C6)(e,t),e.prototype.init=function(e){t.prototype.init.apply(this,arguments),this.legendVisualProvider=new Yn(_.bind(this.getData,this),_.bind(this.getRawData,this))},e.prototype.fixData=function(t){var e=t.length,n={},i=(0,ce.Sq)(t,(function(t){return n.hasOwnProperty(t[0]+"")||(n[t[0]+""]=-1),t[2]})),r=[];i.buckets.each((function(t,e){r.push({name:e,dataList:t})}));for(var o=r.length,a=0;a<o;++a){for(var s=r[a].name,l=0;l<r[a].dataList.length;++l){var h=r[a].dataList[l][0]+"";n[h]=a}for(var h in n)n.hasOwnProperty(h)&&n[h]!==a&&(n[h]=a,t[e]=[h,0,s],e++)}return t},e.prototype.getInitialData=function(t,e){for(var n=this.getReferringComponents("singleAxis",ce.US).models[0].get("type"),i=_.filter(t.data,(function(t){return void 0!==t[2]})),r=this.fixData(i||[]),o=[],a=this.nameMap=_.createHashMap(),s=0,l=0;l<r.length;++l)o.push(r[l][2]),a.get(r[l][2])||(a.set(r[l][2],s),s++);var h=(0,Wn.A)(r,{coordDimensions:["single"],dimensionsDefine:[{name:"time",type:(0,Lu.B)(n)},{name:"value",type:"float"},{name:"name",type:"ordinal"}],encodeDefine:{single:0,value:1,itemName:2}}).dimensions,c=new Un.A(h,this);return c.initData(r),c},e.prototype.getLayerSeries=function(){for(var t=this.getData(),e=t.count(),n=[],i=0;i<e;++i)n[i]=i;var r=t.mapDimension("single"),o=(0,ce.Sq)(n,(function(e){return t.get("name",e)})),a=[];return o.buckets.each((function(e,n){e.sort((function(e,n){return t.get(r,e)-t.get(r,n)})),a.push({name:n,indices:e})})),a},e.prototype.getAxisTooltipData=function(t,e,n){_.isArray(t)||(t=t?[t]:[]);for(var i,r=this.getData(),o=this.getLayerSeries(),a=[],s=o.length,l=0;l<s;++l){for(var h=Number.MAX_VALUE,c=-1,u=o[l].indices.length,d=0;d<u;++d){var p=r.get(t[0],o[l].indices[d]),f=Math.abs(p-e);f<=h&&(i=p,h=f,c=o[l].indices[d])}a.push(c)}return{dataIndices:a,nestestValue:i}},e.prototype.formatTooltip=function(t,e,n){var i=this.getData(),r=i.getName(t),o=i.get(i.mapDimension("value"),t);return(0,br.Qx)("nameValue",{name:r,value:o})},e.type="series.themeRiver",e.dependencies=["singleAxis"],e.defaultOption={z:2,colorBy:"data",coordinateSystem:"singleAxis",boundaryGap:["10%","10%"],singleAxisIndex:0,animationEasing:"linear",label:{margin:4,show:!0,position:"left",fontSize:11},emphasis:{label:{show:!0}}},e}(Gt.A);const bp=xp;function wp(t,e){t.eachSeriesByType("themeRiver",(function(t){var e=t.getData(),n=t.coordinateSystem,i={},r=n.getRect();i.rect=r;var o=t.get("boundaryGap"),a=n.getAxis();(i.boundaryGap=o,"horizontal"===a.orient)?(o[0]=Se.lo(o[0],r.height),o[1]=Se.lo(o[1],r.height),Sp(e,t,r.height-o[0]-o[1])):(o[0]=Se.lo(o[0],r.width),o[1]=Se.lo(o[1],r.width),Sp(e,t,r.width-o[0]-o[1]));e.setLayout("layoutInfo",i)}))}function Sp(t,e,n){if(t.count())for(var i,r=e.coordinateSystem,o=e.getLayerSeries(),a=t.mapDimension("single"),s=t.mapDimension("value"),l=_.map(o,(function(e){return _.map(e.indices,(function(e){var n=r.dataToPoint(t.get(a,e));return n[1]=t.get(s,e),n}))})),h=function(t){for(var e=t.length,n=t[0].length,i=[],r=[],o=0,a=0;a<n;++a){for(var s=0,l=0;l<e;++l)s+=t[l][a][1];s>o&&(o=s),i.push(s)}for(var h=0;h<n;++h)r[h]=(o-i[h])/2;o=0;for(var c=0;c<n;++c){var u=i[c]+r[c];u>o&&(o=u)}return{y0:r,max:o}}(l),c=h.y0,u=n/h.max,d=o.length,p=o[0].indices.length,f=0;f<p;++f){i=c[f]*u,t.setItemLayout(o[0].indices[f],{layerIndex:0,x:l[0][f][0],y0:i,y:l[0][f][1]*u});for(var g=1;g<d;++g)i+=l[g-1][f][1]*u,t.setItemLayout(o[g].indices[f],{layerIndex:g,x:l[g][f][0],y0:i,y:l[g][f][1]*u})}}var Tp=n(4428),Mp=function(t){function e(e,n,i,r){var o=t.call(this)||this;o.z2=2,o.textConfig={inside:!0},(0,Xt.z)(o).seriesIndex=n.seriesIndex;var a=new Z.Ay({z2:4,silent:e.getModel().get(["label","silent"])});return o.setTextContent(a),o.updateData(!0,e,n,i,r),o}return(0,Bt.C6)(e,t),e.prototype.updateData=function(t,e,n,i,r){this.node=e,e.piece=this,n=n||this._seriesModel,i=i||this._ecModel;var o=this;(0,Xt.z)(o).dataIndex=e.dataIndex;var a=e.getModel(),s=a.getModel("emphasis"),l=e.getLayout(),h=_.extend({},l);h.label=null;var c=e.getVisual("style");c.lineJoin="bevel";var u=e.getVisual("decal");u&&(c.decal=(0,Go.w)(u,r));var d=rn(a.getModel("itemStyle"),h,!0);_.extend(h,d),_.each(Yt.BV,(function(t){var e=o.ensureState(t),n=a.getModel([t,"itemStyle"]);e.style=n.getItemStyle();var i=rn(n,h);i&&(e.shape=i)})),t?(o.setShape(h),o.shape.r=l.r0,Ut.LW(o,{shape:{r:l.r}},n,e.dataIndex)):(Ut.oi(o,{shape:h},n),(0,Ut.ap)(o)),o.useStyle(c),this._updateLabel(n);var p=a.getShallow("cursor");p&&o.attr("cursor",p),this._seriesModel=n||this._seriesModel,this._ecModel=i||this._ecModel;var f=s.get("focus"),g="ancestor"===f?e.getAncestorsIndices():"descendant"===f?e.getDescendantIndices():f;(0,Yt.Lm)(this,g,s.get("blurScope"),s.get("disabled"))},e.prototype._updateLabel=function(t){var e=this,n=this.node.getModel(),i=n.getModel("label"),r=this.node.getLayout(),o=r.endAngle-r.startAngle,a=(r.startAngle+r.endAngle)/2,s=Math.cos(a),l=Math.sin(a),h=this,c=h.getTextContent(),u=this.node.dataIndex,d=i.get("minAngle")/180*Math.PI,p=i.get("show")&&!(null!=d&&Math.abs(o)<d);function f(t,e){var n=t.get(e);return null==n?i.get(e):n}c.ignore=!p,_.each(Yt.wV,(function(i){var d="normal"===i?n.getModel("label"):n.getModel([i,"label"]),p="normal"===i,g=p?c:c.ensureState(i),m=t.getFormattedLabel(u,i);p&&(m=m||e.node.name),g.style=(0,Jt.VB)(d,{},null,"normal"!==i,!0),m&&(g.style.text=m);var v=d.get("show");null==v||p||(g.ignore=!v);var y,x=f(d,"position"),b=p?h:h.states[i],w=b.style.fill;b.textConfig={outsideFill:"inherit"===d.get("color")?w:null,inside:"outside"!==x};var S=f(d,"distance")||0,T=f(d,"align"),M=f(d,"rotate"),A=.5*Math.PI,C=1.5*Math.PI,I=(0,Tp.n)("tangential"===M?Math.PI/2-a:a),E=I>A&&!(0,Se.dh)(I-A)&&I<C;"outside"===x?(y=r.r+S,T=E?"right":"left"):T&&"center"!==T?"left"===T?(y=r.r0+S,T=E?"right":"left"):"right"===T&&(y=r.r-S,T=E?"left":"right"):(y=o===2*Math.PI&&0===r.r0?0:(r.r+r.r0)/2,T="center"),g.style.align=T,g.style.verticalAlign=f(d,"verticalAlign")||"middle",g.x=y*s+r.cx,g.y=y*l+r.cy;var k=0;"radial"===M?k=(0,Tp.n)(-a)+(E?Math.PI:0):"tangential"===M?k=(0,Tp.n)(Math.PI/2-a)+(E?Math.PI:0):_.isNumber(M)&&(k=M*Math.PI/180),g.rotation=(0,Tp.n)(k)})),c.dirtyStyle()},e}(we.A);const Ap=Mp;var Cp="sunburstRootToNode",Ip="sunburstHighlight";var Ep=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return(0,Bt.C6)(e,t),e.prototype.render=function(t,e,n,i){var r=this;this.seriesModel=t,this.api=n,this.ecModel=e;var o=t.getData(),a=o.tree.root,s=t.getViewRoot(),l=this.group,h=t.get("renderLabelForZeroData"),c=[];s.eachNode((function(t){c.push(t)}));var u=this._oldChildren||[];!function(i,r){if(0===i.length&&0===r.length)return;function s(t){return t.getId()}function c(s,c){!function(i,r){h||!i||i.getValue()||(i=null);if(i!==a&&r!==a)if(r&&r.piece)i?(r.piece.updateData(!1,i,t,e,n),o.setItemGraphicEl(i.dataIndex,r.piece)):function(t){if(!t)return;t.piece&&(l.remove(t.piece),t.piece=null)}(r);else if(i){var s=new Ap(i,t,e,n);l.add(s),o.setItemGraphicEl(i.dataIndex,s)}}(null==s?null:i[s],null==c?null:r[c])}new gs.A(r,i,s,s).add(c).update(c).remove(_.curry(c,null)).execute()}(c,u),function(i,o){o.depth>0?(r.virtualPiece?r.virtualPiece.updateData(!1,i,t,e,n):(r.virtualPiece=new Ap(i,t,e,n),l.add(r.virtualPiece)),o.piece.off("click"),r.virtualPiece.on("click",(function(t){r._rootToNode(o.parentNode)}))):r.virtualPiece&&(l.remove(r.virtualPiece),r.virtualPiece=null)}(a,s),this._initEvents(),this._oldChildren=c},e.prototype._initEvents=function(){var t=this;this.group.off("click"),this.group.on("click",(function(e){var n=!1;t.seriesModel.getViewRoot().eachNode((function(i){if(!n&&i.piece&&i.piece===e.target){var r=i.getModel().get("nodeClick");if("rootToNode"===r)t._rootToNode(i);else if("link"===r){var o=i.getModel(),a=o.get("link");if(a){var s=o.get("target",!0)||"_blank";(0,Ie.JW)(a,s)}}n=!0}}))}))},e.prototype._rootToNode=function(t){t!==this.seriesModel.getViewRoot()&&this.api.dispatchAction({type:Cp,from:this.uid,seriesId:this.seriesModel.id,targetNode:t})},e.prototype.containPoint=function(t,e){var n=e.getData().getItemLayout(0);if(n){var i=t[0]-n.cx,r=t[1]-n.cy,o=Math.sqrt(i*i+r*r);return o<=n.r&&o>=n.r0}},e.type="sunburst",e}(xe.A);const kp=Ep;function Lp(t){var e=0;_.each(t.children,(function(t){Lp(t);var n=t.value;_.isArray(n)&&(n=n[0]),e+=n}));var n=t.value;_.isArray(n)&&(n=n[0]),(null==n||isNaN(n))&&(n=e),n<0&&(n=0),_.isArray(t.value)?t.value[0]=n:t.value=n}const Dp=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n.ignoreStyleOnData=!0,n}return(0,Bt.C6)(e,t),e.prototype.getInitialData=function(t,e){var n={name:t.name,children:t.data};Lp(n);var i=this._levelModels=_.map(t.levels||[],(function(t){return new Gi.A(t,this,e)}),this),r=ts.createTree(n,this,(function(t){t.wrapMethod("getItemModel",(function(t,e){var n=r.getNodeByDataIndex(e),o=i[n.depth];return o&&(t.parentModel=o),t}))}));return r.data},e.prototype.optionUpdated=function(){this.resetViewRoot()},e.prototype.getDataParams=function(e){var n=t.prototype.getDataParams.apply(this,arguments),i=this.getData().tree.getNodeByDataIndex(e);return n.treePathInfo=rs(i,this),n},e.prototype.getLevelModel=function(t){return this._levelModels&&this._levelModels[t.depth]},e.prototype.getViewRoot=function(){return this._viewRoot},e.prototype.resetViewRoot=function(t){t?this._viewRoot=t:t=this._viewRoot;var e=this.getRawData().tree.root;t&&(t===e||e.contains(t))||(this._viewRoot=e)},e.prototype.enableAriaDecal=function(){ds(this)},e.type="series.sunburst",e.defaultOption={z:2,center:["50%","50%"],radius:[0,"75%"],clockwise:!0,startAngle:90,minAngle:0,stillShowZeroSum:!0,nodeClick:"rootToNode",renderLabelForZeroData:!1,label:{rotate:"radial",show:!0,opacity:1,align:"center",position:"inside",distance:5,silent:!0},itemStyle:{borderWidth:1,borderColor:"white",borderType:"solid",shadowBlur:0,shadowColor:"rgba(0, 0, 0, 0.2)",shadowOffsetX:0,shadowOffsetY:0,opacity:1},emphasis:{focus:"descendant"},blur:{itemStyle:{opacity:.2},label:{opacity:.1}},animationType:"expansion",animationDuration:1e3,animationDurationUpdate:500,data:[],sort:"desc"},e}(Gt.A);var Pp=Math.PI/180;function Rp(t,e,n){e.eachSeriesByType(t,(function(t){var e=t.get("center"),i=t.get("radius");_.isArray(i)||(i=[0,i]),_.isArray(e)||(e=[e,e]);var r=n.getWidth(),o=n.getHeight(),a=Math.min(r,o),s=(0,Se.lo)(e[0],r),l=(0,Se.lo)(e[1],o),h=(0,Se.lo)(i[0],a/2),c=(0,Se.lo)(i[1],a/2),u=-t.get("startAngle")*Pp,d=t.get("minAngle")*Pp,p=t.getData().tree.root,f=t.getViewRoot(),g=f.depth,m=t.get("sort");null!=m&&Op(f,m);var v=0;_.each(f.children,(function(t){!isNaN(t.getValue())&&v++}));var y=f.getValue(),x=Math.PI/(y||v)*2,b=f.depth>0,w=f.height-(b?-1:1),S=(c-h)/(w||1),T=t.get("clockwise"),M=t.get("stillShowZeroSum"),A=T?1:-1,C=function(e,n){if(e){var i=n;if(e!==p){var r=e.getValue(),o=0===y&&M?x:r*x;o<d&&(o=d),i=n+A*o;var c=e.depth-g-(b?-1:1),u=h+S*c,f=h+S*(c+1),m=t.getLevelModel(e);if(m){var v=m.get("r0",!0),w=m.get("r",!0),I=m.get("radius",!0);null!=I&&(v=I[0],w=I[1]),null!=v&&(u=(0,Se.lo)(v,a/2)),null!=w&&(f=(0,Se.lo)(w,a/2))}e.setLayout({angle:o,startAngle:n,endAngle:i,clockwise:T,cx:s,cy:l,r0:u,r:f})}if(e.children&&e.children.length){var E=0;_.each(e.children,(function(t){E+=C(t,n+E)}))}return i-n}};if(b){var I=h,E=h+S,k=2*Math.PI;p.setLayout({angle:k,startAngle:u,endAngle:u+k,clockwise:T,cx:s,cy:l,r0:I,r:E})}C(f,u)}))}function Op(t,e){var n=t.children||[];t.children=function(t,e){if(_.isFunction(e)){var n=_.map(t,(function(t,e){var n=t.getValue();return{params:{depth:t.depth,height:t.height,dataIndex:t.dataIndex,getValue:function(){return n}},index:e}}));return n.sort((function(t,n){return e(t.params,n.params)})),_.map(n,(function(e){return t[e.index]}))}var i="asc"===e;return t.sort((function(t,e){var n=(t.getValue()-e.getValue())*(i?1:-1);return 0===n?(t.dataIndex-e.dataIndex)*(i?-1:1):n}))}(n,e),n.length&&_.each(t.children,(function(t){Op(t,e)}))}function Np(t){var e={};t.eachSeriesByType("sunburst",(function(t){var n=t.getData(),i=n.tree;i.eachNode((function(r){var o=r.getModel().getModel("itemStyle").getItemStyle();o.fill||(o.fill=function(t,n,i){for(var r=t;r&&r.depth>1;)r=r.parentNode;var o=n.getColorFromPalette(r.name||r.dataIndex+"",e);return t.depth>1&&(0,_.isString)(o)&&(o=(0,K.lift)(o,(t.depth-1)/(i-1)*.5)),o}(r,t,i.root.height));var a=n.ensureUniqueItemVisual(r.dataIndex,"style");(0,_.extend)(a,o)}))}))}var Fp={color:"fill",borderColor:"stroke"},Bp={symbol:1,symbolSize:1,symbolKeepAspect:1,legendIcon:1,visualMeta:1,liftZ:1,decal:1},zp=(0,ce.$r)();const Gp=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return(0,Bt.C6)(e,t),e.prototype.optionUpdated=function(){this.currentZLevel=this.get("zlevel",!0),this.currentZ=this.get("z",!0)},e.prototype.getInitialData=function(t,e){return(0,zt.A)(null,this)},e.prototype.getDataParams=function(e,n,i){var r=t.prototype.getDataParams.call(this,e,n);return i&&(r.info=zp(i).info),r},e.type="series.custom",e.dependencies=["grid","polar","geo","singleAxis","calendar"],e.defaultOption={coordinateSystem:"cartesian2d",z:2,legendHoverLink:!0,clip:!1},e}(Gt.A);function Vp(t,e){return e=e||[0,0],_.map(["x","y"],(function(n,i){var r=this.getAxis(n),o=e[i],a=t[i]/2;return"category"===r.type?r.getBandWidth():Math.abs(r.dataToCoord(o-a)-r.dataToCoord(o+a))}),this)}function jp(t,e){return e=e||[0,0],_.map([0,1],(function(n){var i=e[n],r=t[n]/2,o=[],a=[];return o[n]=i-r,a[n]=i+r,o[1-n]=a[1-n]=e[1-n],Math.abs(this.dataToPoint(o)[n]-this.dataToPoint(a)[n])}),this)}function Hp(t,e){var n=this.getAxis(),i=e instanceof Array?e[0]:e,r=(t instanceof Array?t[0]:t)/2;return"category"===n.type?n.getBandWidth():Math.abs(n.dataToCoord(i-r)-n.dataToCoord(i+r))}function Wp(t,e){return e=e||[0,0],_.map(["Radius","Angle"],(function(n,i){var r=this["get"+n+"Axis"](),o=e[i],a=t[i]/2,s="category"===r.type?r.getBandWidth():Math.abs(r.dataToCoord(o-a)-r.dataToCoord(o+a));return"Angle"===n&&(s=s*Math.PI/180),s}),this)}function Up(t,e,n,i){return t&&(t.legacy||!1!==t.legacy&&!n&&!i&&"tspan"!==e&&("text"===e||(0,_.hasOwn)(t,"text")))}function qp(t,e,n){var i,r,o,a=t;if("text"===e)o=a;else{o={},(0,_.hasOwn)(a,"text")&&(o.text=a.text),(0,_.hasOwn)(a,"rich")&&(o.rich=a.rich),(0,_.hasOwn)(a,"textFill")&&(o.fill=a.textFill),(0,_.hasOwn)(a,"textStroke")&&(o.stroke=a.textStroke),(0,_.hasOwn)(a,"fontFamily")&&(o.fontFamily=a.fontFamily),(0,_.hasOwn)(a,"fontSize")&&(o.fontSize=a.fontSize),(0,_.hasOwn)(a,"fontStyle")&&(o.fontStyle=a.fontStyle),(0,_.hasOwn)(a,"fontWeight")&&(o.fontWeight=a.fontWeight),r={type:"text",style:o,silent:!0},i={};var s=(0,_.hasOwn)(a,"textPosition");n?i.position=s?a.textPosition:"inside":s&&(i.position=a.textPosition),(0,_.hasOwn)(a,"textPosition")&&(i.position=a.textPosition),(0,_.hasOwn)(a,"textOffset")&&(i.offset=a.textOffset),(0,_.hasOwn)(a,"textRotation")&&(i.rotation=a.textRotation),(0,_.hasOwn)(a,"textDistance")&&(i.distance=a.textDistance)}return Xp(o,t),(0,_.each)(o.rich,(function(t){Xp(t,t)})),{textConfig:i,textContent:r}}function Xp(t,e){e&&(e.font=e.textFont||e.font,(0,_.hasOwn)(e,"textStrokeWidth")&&(t.lineWidth=e.textStrokeWidth),(0,_.hasOwn)(e,"textAlign")&&(t.align=e.textAlign),(0,_.hasOwn)(e,"textVerticalAlign")&&(t.verticalAlign=e.textVerticalAlign),(0,_.hasOwn)(e,"textLineHeight")&&(t.lineHeight=e.textLineHeight),(0,_.hasOwn)(e,"textWidth")&&(t.width=e.textWidth),(0,_.hasOwn)(e,"textHeight")&&(t.height=e.textHeight),(0,_.hasOwn)(e,"textBackgroundColor")&&(t.backgroundColor=e.textBackgroundColor),(0,_.hasOwn)(e,"textPadding")&&(t.padding=e.textPadding),(0,_.hasOwn)(e,"textBorderColor")&&(t.borderColor=e.textBorderColor),(0,_.hasOwn)(e,"textBorderWidth")&&(t.borderWidth=e.textBorderWidth),(0,_.hasOwn)(e,"textBorderRadius")&&(t.borderRadius=e.textBorderRadius),(0,_.hasOwn)(e,"textBoxShadowColor")&&(t.shadowColor=e.textBoxShadowColor),(0,_.hasOwn)(e,"textBoxShadowBlur")&&(t.shadowBlur=e.textBoxShadowBlur),(0,_.hasOwn)(e,"textBoxShadowOffsetX")&&(t.shadowOffsetX=e.textBoxShadowOffsetX),(0,_.hasOwn)(e,"textBoxShadowOffsetY")&&(t.shadowOffsetY=e.textBoxShadowOffsetY))}function Yp(t,e,n){var i=t;i.textPosition=i.textPosition||n.position||"inside",null!=n.offset&&(i.textOffset=n.offset),null!=n.rotation&&(i.textRotation=n.rotation),null!=n.distance&&(i.textDistance=n.distance);var r=i.textPosition.indexOf("inside")>=0,o=t.fill||"#000";Zp(i,e);var a=null==i.textFill;return r?a&&(i.textFill=n.insideFill||"#fff",!i.textStroke&&n.insideStroke&&(i.textStroke=n.insideStroke),!i.textStroke&&(i.textStroke=o),null==i.textStrokeWidth&&(i.textStrokeWidth=2)):(a&&(i.textFill=t.fill||n.outsideFill||"#000"),!i.textStroke&&n.outsideStroke&&(i.textStroke=n.outsideStroke)),i.text=e.text,i.rich=e.rich,(0,_.each)(e.rich,(function(t){Zp(t,t)})),i}function Zp(t,e){e&&((0,_.hasOwn)(e,"fill")&&(t.textFill=e.fill),(0,_.hasOwn)(e,"stroke")&&(t.textStroke=e.fill),(0,_.hasOwn)(e,"lineWidth")&&(t.textStrokeWidth=e.lineWidth),(0,_.hasOwn)(e,"font")&&(t.font=e.font),(0,_.hasOwn)(e,"fontStyle")&&(t.fontStyle=e.fontStyle),(0,_.hasOwn)(e,"fontWeight")&&(t.fontWeight=e.fontWeight),(0,_.hasOwn)(e,"fontSize")&&(t.fontSize=e.fontSize),(0,_.hasOwn)(e,"fontFamily")&&(t.fontFamily=e.fontFamily),(0,_.hasOwn)(e,"align")&&(t.textAlign=e.align),(0,_.hasOwn)(e,"verticalAlign")&&(t.textVerticalAlign=e.verticalAlign),(0,_.hasOwn)(e,"lineHeight")&&(t.textLineHeight=e.lineHeight),(0,_.hasOwn)(e,"width")&&(t.textWidth=e.width),(0,_.hasOwn)(e,"height")&&(t.textHeight=e.height),(0,_.hasOwn)(e,"backgroundColor")&&(t.textBackgroundColor=e.backgroundColor),(0,_.hasOwn)(e,"padding")&&(t.textPadding=e.padding),(0,_.hasOwn)(e,"borderColor")&&(t.textBorderColor=e.borderColor),(0,_.hasOwn)(e,"borderWidth")&&(t.textBorderWidth=e.borderWidth),(0,_.hasOwn)(e,"borderRadius")&&(t.textBorderRadius=e.borderRadius),(0,_.hasOwn)(e,"shadowColor")&&(t.textBoxShadowColor=e.shadowColor),(0,_.hasOwn)(e,"shadowBlur")&&(t.textBoxShadowBlur=e.shadowBlur),(0,_.hasOwn)(e,"shadowOffsetX")&&(t.textBoxShadowOffsetX=e.shadowOffsetX),(0,_.hasOwn)(e,"shadowOffsetY")&&(t.textBoxShadowOffsetY=e.shadowOffsetY),(0,_.hasOwn)(e,"textShadowColor")&&(t.textShadowColor=e.textShadowColor),(0,_.hasOwn)(e,"textShadowBlur")&&(t.textShadowBlur=e.textShadowBlur),(0,_.hasOwn)(e,"textShadowOffsetX")&&(t.textShadowOffsetX=e.textShadowOffsetX),(0,_.hasOwn)(e,"textShadowOffsetY")&&(t.textShadowOffsetY=e.textShadowOffsetY))}var $p=n(8854),Kp={position:["x","y"],scale:["scaleX","scaleY"],origin:["originX","originY"]},Jp=(0,_.keys)(Kp),Qp=((0,_.reduce)(O.Wx,(function(t,e){return t[e]=1,t}),{}),O.Wx.join(", "),["","style","shape","extra"]),tf=(0,ce.$r)();function ef(t,e,n,i,r){var o=t+"Animation",a=(0,Ut.Jw)(t,i,r)||{},s=tf(e).userDuring;return a.duration>0&&(a.during=s?(0,_.bind)(hf,{el:e,userDuring:s}):null,a.setToFinal=!0,a.scope=t),(0,_.extend)(a,n[o]),a}function nf(t,e,n,i){var r=(i=i||{}).dataIndex,o=i.isInit,a=i.clearStyle,l=n.isAnimationEnabled(),h=tf(t),c=e.style;h.userDuring=e.during;var u={},d={};if(function(t,e,n){for(var i=0;i<Jp.length;i++){var r=Jp[i],o=Kp[r],a=e[r];a&&(n[o[0]]=a[0],n[o[1]]=a[1])}for(i=0;i<O.Wx.length;i++){var s=O.Wx[i];null!=e[s]&&(n[s]=e[s])}}(0,e,d),uf("shape",e,d),uf("extra",e,d),!o&&l&&(function(t,e,n){for(var i=e.transition,r=af(i)?O.Wx:(0,ce.qB)(i||[]),o=0;o<r.length;o++){var a=r[o];if("style"!==a&&"shape"!==a&&"extra"!==a){var s=t[a];0,n[a]=s}}}(t,e,u),cf("shape",t,e,u),cf("extra",t,e,u),function(t,e,n,i){if(!n)return;var r,o=t.style;if(o){var a=n.transition,s=e.transition;if(a&&!af(a)){var l=(0,ce.qB)(a);!r&&(r=i.style={});for(var h=0;h<l.length;h++){var c=o[f=l[h]];r[f]=c}}else if(t.getAnimationStyleProps&&(af(s)||af(a)||(0,_.indexOf)(s,"style")>=0)){var u=t.getAnimationStyleProps(),d=u?u.style:null;if(d){!r&&(r=i.style={});var p=(0,_.keys)(n);for(h=0;h<p.length;h++){var f;if(d[f=p[h]]){c=o[f];r[f]=c}}}}}}(t,e,c,u)),d.style=c,function(t,e,n){var i=e.style;if(!t.isGroup&&i){if(n){t.useStyle({});for(var r=t.animators,o=0;o<r.length;o++){var a=r[o];"style"===a.targetName&&a.changeTarget(t.style)}}t.setStyle(i)}e&&(e.style=null,e&&t.attr(e),e.style=i)}(t,d,a),function(t,e){(0,_.hasOwn)(e,"silent")&&(t.silent=e.silent),(0,_.hasOwn)(e,"ignore")&&(t.ignore=e.ignore),t instanceof Vo.Ay&&(0,_.hasOwn)(e,"invisible")&&(t.invisible=e.invisible);t instanceof s.Ay&&(0,_.hasOwn)(e,"autoBatch")&&(t.autoBatch=e.autoBatch)}(t,e),l)if(o){var p={};(0,_.each)(Qp,(function(t){var n=t?e[t]:e;n&&n.enterFrom&&(t&&(p[t]=p[t]||{}),(0,_.extend)(t?p[t]:p,n.enterFrom))}));var f=ef("enter",t,e,n,r);f.duration>0&&t.animateFrom(p,f)}else!function(t,e,n,i,r){if(r){var o=ef("update",t,e,i,n);o.duration>0&&t.animateFrom(r,o)}}(t,e,r||0,n,u);rf(t,e),c?t.dirty():t.markRedraw()}function rf(t,e){for(var n=tf(t).leaveToProps,i=0;i<Qp.length;i++){var r=Qp[i],o=r?e[r]:e;o&&o.leaveTo&&(n||(n=tf(t).leaveToProps={}),r&&(n[r]=n[r]||{}),(0,_.extend)(r?n[r]:n,o.leaveTo))}}function of(t,e,n,i){if(t){var r=t.parent,o=tf(t).leaveToProps;if(o){var a=ef("update",t,e,n,0);a.done=function(){r.remove(t),i&&i()},t.animateTo(o,a)}else r.remove(t),i&&i()}}function af(t){return"all"===t}var sf={},lf={setTransform:function(t,e){return sf.el[t]=e,this},getTransform:function(t){return sf.el[t]},setShape:function(t,e){var n=sf.el;return(n.shape||(n.shape={}))[t]=e,n.dirtyShape&&n.dirtyShape(),this},getShape:function(t){var e=sf.el.shape;if(e)return e[t]},setStyle:function(t,e){var n=sf.el,i=n.style;return i&&(i[t]=e,n.dirtyStyle&&n.dirtyStyle()),this},getStyle:function(t){var e=sf.el.style;if(e)return e[t]},setExtra:function(t,e){return(sf.el.extra||(sf.el.extra={}))[t]=e,this},getExtra:function(t){var e=sf.el.extra;if(e)return e[t]}};function hf(){var t=this,e=t.el;if(e){var n=tf(e).userDuring,i=t.userDuring;n===i?(sf.el=e,i(lf)):t.el=t.userDuring=null}}function cf(t,e,n,i){var r=n[t];if(r){var o,a=e[t];if(a){var s=n.transition,l=r.transition;if(l)if(!o&&(o=i[t]={}),af(l))(0,_.extend)(o,a);else for(var h=(0,ce.qB)(l),c=0;c<h.length;c++){var u=a[p=h[c]];o[p]=u}else if(af(s)||(0,_.indexOf)(s,t)>=0){!o&&(o=i[t]={});var d=(0,_.keys)(a);for(c=0;c<d.length;c++){var p;u=a[p=d[c]];df(r[p],u)&&(o[p]=u)}}}}}function uf(t,e,n){var i=e[t];if(i)for(var r=n[t]={},o=(0,_.keys)(i),a=0;a<o.length;a++){var s=o[a];r[s]=(0,$p.F)(i[s])}}function df(t,e){return(0,_.isArrayLike)(t)?t!==e:null!=t&&isFinite(t)}var pf=(0,ce.$r)(),ff=["percent","easing","shape","style","extra"];function gf(t){t.stopAnimation("keyframe"),t.attr(pf(t))}function mf(t,e,n){if(n.isAnimationEnabled()&&e)if((0,_.isArray)(e))(0,_.each)(e,(function(e){mf(t,e,n)}));else{var i=e.keyframes,r=e.duration;if(n&&null==r){var o=(0,Ut.Jw)("enter",n,0);r=o&&o.duration}if(i&&r){var a=pf(t);(0,_.each)(Qp,(function(n){if(!n||t[n]){var o;i.sort((function(t,e){return t.percent-e.percent})),(0,_.each)(i,(function(i){var s=t.animators,l=n?i[n]:i;if(l){var h=(0,_.keys)(l);if(n||(h=(0,_.filter)(h,(function(t){return(0,_.indexOf)(ff,t)<0}))),h.length){o||((o=t.animate(n,e.loop,!0)).scope="keyframe");for(var c=0;c<s.length;c++)s[c]!==o&&s[c].targetName===o.targetName&&s[c].stopTracks(h);n&&(a[n]=a[n]||{});var u=n?a[n]:a;(0,_.each)(h,(function(e){u[e]=((n?t[n]:t)||{})[e]})),o.whenWithKeys(r*i.percent,l,h,i.easing)}}})),o&&o.delay(e.delay||0).duration(r).start(e.easing)}}))}}}var vf="emphasis",yf="normal",_f="blur",xf="select",bf=[yf,vf,_f,xf],wf={normal:["itemStyle"],emphasis:[vf,"itemStyle"],blur:[_f,"itemStyle"],select:[xf,"itemStyle"]},Sf={normal:["label"],emphasis:[vf,"label"],blur:[_f,"label"],select:[xf,"label"]},Tf=["x","y"],Mf={normal:{},emphasis:{},blur:{},select:{}},Af={cartesian2d:function(t){var e=t.master.getRect();return{coordSys:{type:"cartesian2d",x:e.x,y:e.y,width:e.width,height:e.height},api:{coord:function(e){return t.dataToPoint(e)},size:_.bind(Vp,t)}}},geo:function(t){var e=t.getBoundingRect();return{coordSys:{type:"geo",x:e.x,y:e.y,width:e.width,height:e.height,zoom:t.getZoom()},api:{coord:function(e){return t.dataToPoint(e)},size:_.bind(jp,t)}}},single:function(t){var e=t.getRect();return{coordSys:{type:"singleAxis",x:e.x,y:e.y,width:e.width,height:e.height},api:{coord:function(e){return t.dataToPoint(e)},size:(0,_.bind)(Hp,t)}}},polar:function(t){var e=t.getRadiusAxis(),n=t.getAngleAxis(),i=e.getExtent();return i[0]>i[1]&&i.reverse(),{coordSys:{type:"polar",cx:t.cx,cy:t.cy,r:i[1],r0:i[0]},api:{coord:function(i){var r=e.dataToRadius(i[0]),o=n.dataToAngle(i[1]),a=t.coordToPoint([r,o]);return a.push(r,o*Math.PI/180),a},size:_.bind(Wp,t)}}},calendar:function(t){var e=t.getRect(),n=t.getRangeInfo();return{coordSys:{type:"calendar",x:e.x,y:e.y,width:e.width,height:e.height,cellWidth:t.getCellWidth(),cellHeight:t.getCellHeight(),rangeInfo:{start:n.start,end:n.end,weeks:n.weeks,dayCount:n.allDay}},api:{coord:function(e,n){return t.dataToPoint(e,n)}}}}};function Cf(t){return t instanceof s.Ay}function If(t){return t instanceof Vo.Ay}const Ef=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return(0,Bt.C6)(e,t),e.prototype.render=function(t,e,n,i){this._progressiveEls=null;var r=this._data,o=t.getData(),a=this.group,s=Rf(t,o,e,n);r||a.removeAll(),o.diff(r).add((function(e){Nf(n,null,e,s(e,i),t,a,o)})).remove((function(e){var n=r.getItemGraphicEl(e);n&&of(n,zp(n).option,t)})).update((function(e,l){var h=r.getItemGraphicEl(l);Nf(n,h,e,s(e,i),t,a,o)})).execute();var l=t.get("clip",!0)?Ae(t.coordinateSystem,!1,t):null;l?a.setClipPath(l):a.removeClipPath(),this._data=o},e.prototype.incrementalPrepareRender=function(t,e,n){this.group.removeAll(),this._data=null},e.prototype.incrementalRender=function(t,e,n,i,r){var o=e.getData(),a=Rf(e,o,n,i),s=this._progressiveEls=[];function l(t){t.isGroup||(t.incremental=!0,t.ensureState("emphasis").hoverLayer=!0)}for(var h=t.start;h<t.end;h++){var c=Nf(null,null,h,a(h,r),e,this.group,o);c&&(c.traverse(l),s.push(c))}},e.prototype.eachRendered=function(t){qt.traverseElements(this._progressiveEls||this.group,t)},e.prototype.filterForExposedEvent=function(t,e,n,i){var r=e.element;if(null==r||n.name===r)return!0;for(;(n=n.__hostTarget||n.parent)&&n!==this.group;)if(n.name===r)return!0;return!1},e.type="custom",e}(xe.A);function kf(t){var e,n=t.type;if("path"===n){var i=t.shape,r=null!=i.width&&null!=i.height?{x:i.x||0,y:i.y||0,width:i.width,height:i.height}:null,o=qf(i);e=qt.makePath(o,null,r,i.layout||"center"),zp(e).customPathData=o}else if("image"===n)e=new l.Ay({}),zp(e).customImagePath=t.style.image;else if("text"===n)e=new Z.Ay({});else if("group"===n)e=new jt.A;else{if("compoundPath"===n)throw new Error('"compoundPath" is not supported yet.');var a=qt.getShapeClass(n);if(!a){0,(0,Wu.$8)("")}e=new a}return zp(e).customGraphicType=n,e.name=t.name,e.z2EmphasisLift=1,e.z2SelectLift=1,e}function Lf(t,e,n,i,r,o,a){gf(e);var s=r&&r.normal.cfg;s&&e.setTextConfig(s),i&&null==i.transition&&(i.transition=Tf);var l=i&&i.style;if(l){if("text"===e.type){var h=l;(0,_.hasOwn)(h,"textFill")&&(h.fill=h.textFill),(0,_.hasOwn)(h,"textStroke")&&(h.stroke=h.textStroke)}var c=void 0,u=Cf(e)?l.decal:null;t&&u&&(u.dirty=!0,c=(0,Go.w)(u,t)),l.__decalPattern=c}If(e)&&(l&&(c=l.__decalPattern)&&(l.decal=c));nf(e,i,o,{dataIndex:n,isInit:a,clearStyle:!0}),mf(e,i.keyframeAnimation,o)}function Df(t,e,n,i,r){var o=e.isGroup?null:e,a=r&&r[t].cfg;if(o){var s=o.ensureState(t);if(!1===i){var l=o.getState(t);l&&(l.style=null)}else s.style=i||null;a&&(s.textConfig=a),(0,Yt.DW)(o)}}function Pf(t,e,n){var i=n===yf,r=i?e:Gf(e,n),o=r?r.z2:null;null!=o&&((i?t:t.ensureState(n)).z2=o||0)}function Rf(t,e,n,i){var r=t.get("renderItem"),o=t.coordinateSystem,a={};o&&(a=o.prepareCustoms?o.prepareCustoms(o):Af[o.type](o));for(var s,l,h=(0,_.defaults)({getWidth:i.getWidth,getHeight:i.getHeight,getZr:i.getZr,getDevicePixelRatio:i.getDevicePixelRatio,value:function(t,n){return null==n&&(n=s),e.getStore().get(e.getDimensionIndex(t||0),n)},style:function(n,i){0;null==i&&(i=s);var r=e.getItemVisual(i,"style"),o=r&&r.fill,a=r&&r.opacity,l=y(i,yf).getItemStyle();null!=o&&(l.fill=o),null!=a&&(l.opacity=a);var h={inheritColor:(0,_.isString)(o)?o:"#000"},c=x(i,yf),u=Jt.VB(c,null,h,!1,!0);u.text=c.getShallow("show")?(0,_.retrieve2)(t.getFormattedLabel(i,yf),$t(e,i)):null;var d=Jt.sD(c,h,!1);return w(n,l),l=Yp(l,u,d),n&&b(l,n),l.legacy=!0,l},ordinalRawValue:function(t,n){null==n&&(n=s),t=t||0;var i=e.getDimensionInfo(t);if(!i){var r=e.getDimensionIndex(t);return r>=0?e.getStore().get(r,n):void 0}var o=e.get(i.name,n),a=i&&i.ordinalMeta;return a?a.categories[o]:o},styleEmphasis:function(n,i){0;null==i&&(i=s);var r=y(i,vf).getItemStyle(),o=x(i,vf),a=Jt.VB(o,null,null,!0,!0);a.text=o.getShallow("show")?(0,_.retrieve3)(t.getFormattedLabel(i,vf),t.getFormattedLabel(i,yf),$t(e,i)):null;var l=Jt.sD(o,null,!0);return w(n,r),r=Yp(r,a,l),n&&b(r,n),r.legacy=!0,r},visual:function(t,n){if(null==n&&(n=s),(0,_.hasOwn)(Fp,t)){var i=e.getItemVisual(n,"style");return i?i[Fp[t]]:null}if((0,_.hasOwn)(Bp,t))return e.getItemVisual(n,t)},barLayout:function(t){if("cartesian2d"===o.type){var e=o.getBaseAxis();return(0,qe.DL)((0,_.defaults)({axis:e},t))}},currentSeriesIndices:function(){return n.getCurrentSeriesIndices()},font:function(t){return Jt.c8(t,n)}},a.api||{}),c={context:{},seriesId:t.id,seriesName:t.name,seriesIndex:t.seriesIndex,coordSys:a.coordSys,dataInsideLength:e.count(),encode:Of(t.getData())},u={},d={},p={},f={},g=0;g<bf.length;g++){var m=bf[g];p[m]=t.getModel(wf[m]),f[m]=t.getModel(Sf[m])}function v(t){return t===s?l||(l=e.getItemModel(t)):e.getItemModel(t)}function y(t,n){return e.hasItemOption?t===s?u[n]||(u[n]=v(t).getModel(wf[n])):v(t).getModel(wf[n]):p[n]}function x(t,n){return e.hasItemOption?t===s?d[n]||(d[n]=v(t).getModel(Sf[n])):v(t).getModel(Sf[n]):f[n]}return function(t,n){return s=t,l=null,u={},d={},r&&r((0,_.defaults)({dataIndexInside:t,dataIndex:e.getRawIndex(t),actionType:n?n.type:null},c),h)};function b(t,e){for(var n in e)(0,_.hasOwn)(e,n)&&(t[n]=e[n])}function w(t,e){t&&(t.textFill&&(e.textFill=t.textFill),t.textPosition&&(e.textPosition=t.textPosition))}}function Of(t){var e={};return(0,_.each)(t.dimensions,(function(n){var i=t.getDimensionInfo(n);if(!i.isExtraCoord){var r=i.coordDim;(e[r]=e[r]||[])[i.coordDimIndex]=t.getDimensionIndex(n)}})),e}function Nf(t,e,n,i,r,o,a){if(i){var s=Ff(t,e,n,i,r,o);return s&&a.setItemGraphicEl(n,s),s&&(0,Yt.Lm)(s,i.focus,i.blurScope,i.emphasisDisabled),s}o.remove(e)}function Ff(t,e,n,i,r,o){var a=-1,s=e;e&&Bf(e,i,r)&&(a=(0,_.indexOf)(o.childrenRef(),e),e=null);var l,h,c=!e,u=e;u?u.clearStates():(u=kf(i),s&&(l=s,(h=u).copyTransform(l),If(h)&&If(l)&&(h.setStyle(l.style),h.z=l.z,h.z2=l.z2,h.zlevel=l.zlevel,h.invisible=l.invisible,h.ignore=l.ignore,Cf(h)&&Cf(l)&&h.setShape(l.shape)))),!1===i.morph?u.disableMorphing=!0:u.disableMorphing&&(u.disableMorphing=!1),Mf.normal.cfg=Mf.normal.conOpt=Mf.emphasis.cfg=Mf.emphasis.conOpt=Mf.blur.cfg=Mf.blur.conOpt=Mf.select.cfg=Mf.select.conOpt=null,Mf.isLegacy=!1,function(t,e,n,i,r,o){if(t.isGroup)return;zf(n,null,o),zf(n,vf,o);var a=o.normal.conOpt,s=o.emphasis.conOpt,l=o.blur.conOpt,h=o.select.conOpt;if(null!=a||null!=s||null!=h||null!=l){var c=t.getTextContent();if(!1===a)c&&t.removeTextContent();else{a=o.normal.conOpt=a||{type:"text"},c?c.clearStates():(c=kf(a),t.setTextContent(c)),Lf(null,c,e,a,null,i,r);for(var u=a&&a.style,d=0;d<bf.length;d++){var p=bf[d];if(p!==yf){var f=o[p].conOpt;Df(p,c,0,Vf(a,f,p),null)}}u?c.dirty():c.markRedraw()}}}(u,n,i,r,c,Mf),function(t,e,n,i,r){var o=n.clipPath;if(!1===o)t&&t.getClipPath()&&t.removeClipPath();else if(o){var a=t.getClipPath();a&&Bf(a,o,i)&&(a=null),a||(a=kf(o),t.setClipPath(a)),Lf(null,a,e,o,null,i,r)}}(u,n,i,r,c),Lf(t,u,n,i,Mf,r,c),(0,_.hasOwn)(i,"info")&&(zp(u).info=i.info);for(var d=0;d<bf.length;d++){var p=bf[d];if(p!==yf){var f=Gf(i,p);Df(p,u,0,Vf(i,f,p),Mf)}}return function(t,e,n){if(!t.isGroup){var i=t,r=n.currentZ,o=n.currentZLevel;i.z=r,i.zlevel=o;var a=e.z2;null!=a&&(i.z2=a||0);for(var s=0;s<bf.length;s++)Pf(i,e,bf[s])}}(u,i,r),"group"===i.type&&function(t,e,n,i,r){var o=i.children,a=o?o.length:0,s=i.$mergeChildren,l="byName"===s||i.diffChildrenByName,h=!1===s;if(!a&&!l&&!h)return;if(l)return c={api:t,oldChildren:e.children()||[],newChildren:o||[],dataIndex:n,seriesModel:r,group:e},void new gs.A(c.oldChildren,c.newChildren,Hf,Hf,c).add(Wf).update(Wf).remove(Uf).execute();var c;h&&e.removeAll();for(var u=0;u<a;u++){var d=o[u],p=e.childAt(u);d?(null==d.ignore&&(d.ignore=!1),Ff(t,p,n,d,r,e)):p.ignore=!0}for(var f=e.childCount()-1;f>=u;f--){var g=e.childAt(f);jf(e,g,r)}}(t,u,n,i,r),a>=0?o.replaceAt(u,a):o.add(u),u}function Bf(t,e,n){var i,r=zp(t),o=e.type,a=e.shape,s=e.style;return n.isUniversalTransitionEnabled()||null!=o&&o!==r.customGraphicType||"path"===o&&((i=a)&&((0,_.hasOwn)(i,"pathData")||(0,_.hasOwn)(i,"d")))&&qf(a)!==r.customPathData||"image"===o&&(0,_.hasOwn)(s,"image")&&s.image!==r.customImagePath}function zf(t,e,n){var i=e?Gf(t,e):t,r=e?Vf(t,i,vf):t.style,o=t.type,a=i?i.textConfig:null,s=t.textContent,l=s?e?Gf(s,e):s:null;if(r&&(n.isLegacy||Up(r,o,!!a,!!l))){n.isLegacy=!0;var h=qp(r,o,!e);!a&&h.textConfig&&(a=h.textConfig),!l&&h.textContent&&(l=h.textContent)}if(!e&&l){var c=l;!c.type&&(c.type="text")}var u=e?n[e]:n.normal;u.cfg=a,u.conOpt=l}function Gf(t,e){return e?t?t[e]:null:t}function Vf(t,e,n){var i=e&&e.style;return null==i&&n===vf&&t&&(i=t.styleEmphasis),i}function jf(t,e,n){e&&of(e,zp(t).option,n)}function Hf(t,e){var n=t&&t.name;return null!=n?n:"e\0\0"+e}function Wf(t,e){var n=this.context,i=null!=t?n.newChildren[t]:null,r=null!=e?n.oldChildren[e]:null;Ff(n.api,r,n.dataIndex,i,n.seriesModel,n.group)}function Uf(t){var e=this.context,n=e.oldChildren[t];n&&of(n,zp(n).option,e.seriesModel)}function qf(t){return t&&(t.pathData||t.d)}var Xf=(0,ce.$r)(),Yf=_.clone,Zf=_.bind,$f=function(){function t(){this._dragging=!1,this.animationThreshold=15}return t.prototype.render=function(t,e,n,i){var r=e.get("value"),o=e.get("status");if(this._axisModel=t,this._axisPointerModel=e,this._api=n,i||this._lastValue!==r||this._lastStatus!==o){this._lastValue=r,this._lastStatus=o;var a=this._group,s=this._handle;if(!o||"hide"===o)return a&&a.hide(),void(s&&s.hide());a&&a.show(),s&&s.show();var l={};this.makeElOption(l,r,t,e,n);var h=l.graphicKey;h!==this._lastGraphicKey&&this.clear(n),this._lastGraphicKey=h;var c=this._moveAnimation=this.determineAnimation(t,e);if(a){var u=_.curry(Kf,e,c);this.updatePointerEl(a,l,u),this.updateLabelEl(a,l,u,e)}else a=this._group=new jt.A,this.createPointerEl(a,l,t,e),this.createLabelEl(a,l,t,e),n.getZr().add(a);eg(a,e,!0),this._renderHandle(r)}},t.prototype.remove=function(t){this.clear(t)},t.prototype.dispose=function(t){this.clear(t)},t.prototype.determineAnimation=function(t,e){var n=e.get("animation"),i=t.axis,r="category"===i.type,o=e.get("snap");if(!o&&!r)return!1;if("auto"===n||null==n){var a=this.animationThreshold;if(r&&i.getBandWidth()>a)return!0;if(o){var s=Ki(t).seriesDataCount,l=i.getExtent();return Math.abs(l[0]-l[1])/s>a}return!1}return!0===n},t.prototype.makeElOption=function(t,e,n,i,r){},t.prototype.createPointerEl=function(t,e,n,i){var r=e.pointer;if(r){var o=Xf(t).pointerEl=new qt[r.type](Yf(e.pointer));t.add(o)}},t.prototype.createLabelEl=function(t,e,n,i){if(e.label){var r=Xf(t).labelEl=new Z.Ay(Yf(e.label));t.add(r),Qf(r,i)}},t.prototype.updatePointerEl=function(t,e,n){var i=Xf(t).pointerEl;i&&e.pointer&&(i.setStyle(e.pointer.style),n(i,{shape:e.pointer.shape}))},t.prototype.updateLabelEl=function(t,e,n,i){var r=Xf(t).labelEl;r&&(r.setStyle(e.label.style),n(r,{x:e.label.x,y:e.label.y}),Qf(r,i))},t.prototype._renderHandle=function(t){if(!this._dragging&&this.updateHandleTransform){var e,n=this._axisPointerModel,i=this._api.getZr(),r=this._handle,o=n.getModel("handle"),a=n.get("status");if(!o.get("show")||!a||"hide"===a)return r&&i.remove(r),void(this._handle=null);this._handle||(e=!0,r=this._handle=qt.createIcon(o.get("icon"),{cursor:"move",draggable:!0,onmousemove:function(t){Fr.ds(t.event)},onmousedown:Zf(this._onHandleDragMove,this,0,0),drift:Zf(this._onHandleDragMove,this),ondragend:Zf(this._onHandleDragEnd,this)}),i.add(r)),eg(r,n,!1),r.setStyle(o.getItemStyle(null,["color","borderColor","borderWidth","opacity","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY"]));var s=o.get("size");_.isArray(s)||(s=[s,s]),r.scaleX=s[0]/2,r.scaleY=s[1]/2,Ke.N(this,"_doDispatchAxisPointer",o.get("throttle")||0,"fixRate"),this._moveHandleToValue(t,e)}},t.prototype._moveHandleToValue=function(t,e){Kf(this._axisPointerModel,!e&&this._moveAnimation,this._handle,tg(this.getHandleTransform(t,this._axisModel,this._axisPointerModel)))},t.prototype._onHandleDragMove=function(t,e){var n=this._handle;if(n){this._dragging=!0;var i=this.updateHandleTransform(tg(n),[t,e],this._axisModel,this._axisPointerModel);this._payloadInfo=i,n.stopAnimation(),n.attr(tg(i)),Xf(n).lastProp=null,this._doDispatchAxisPointer()}},t.prototype._doDispatchAxisPointer=function(){if(this._handle){var t=this._payloadInfo,e=this._axisModel;this._api.dispatchAction({type:"updateAxisPointer",x:t.cursorPoint[0],y:t.cursorPoint[1],tooltipOption:t.tooltipOption,axesInfo:[{axisDim:e.axis.dim,axisIndex:e.componentIndex}]})}},t.prototype._onHandleDragEnd=function(){if(this._dragging=!1,this._handle){var t=this._axisPointerModel.get("value");this._moveHandleToValue(t),this._api.dispatchAction({type:"hideTip"})}},t.prototype.clear=function(t){this._lastValue=null,this._lastStatus=null;var e=t.getZr(),n=this._group,i=this._handle;e&&n&&(this._lastGraphicKey=null,n&&e.remove(n),i&&e.remove(i),this._group=null,this._handle=null,this._payloadInfo=null),Ke.IU(this,"_doDispatchAxisPointer")},t.prototype.doClear=function(){},t.prototype.buildLabel=function(t,e,n){return{x:t[n=n||0],y:t[1-n],width:e[n],height:e[1-n]}},t}();function Kf(t,e,n,i){Jf(Xf(n).lastProp,i)||(Xf(n).lastProp=i,e?Ut.oi(n,i,t):(n.stopAnimation(),n.attr(i)))}function Jf(t,e){if(_.isObject(t)&&_.isObject(e)){var n=!0;return _.each(e,(function(e,i){n=n&&Jf(t[i],e)})),!!n}return t===e}function Qf(t,e){t[e.get(["label","show"])?"show":"hide"]()}function tg(t){return{x:t.x||0,y:t.y||0,rotation:t.rotation||0}}function eg(t,e,n){var i=e.get("z"),r=e.get("zlevel");t&&t.traverse((function(t){"group"!==t.type&&(null!=i&&(t.z=i),null!=r&&(t.zlevel=r),t.silent=n)}))}const ng=$f;function ig(t){var e,n=t.get("type"),i=t.getModel(n+"Style");return"line"===n?(e=i.getLineStyle()).fill=null:"shadow"===n&&((e=i.getAreaStyle()).stroke=null),e}function rg(t,e,n,i,r){var o=og(n.get("value"),e.axis,e.ecModel,n.get("seriesDataIndices"),{precision:n.get(["label","precision"]),formatter:n.get(["label","formatter"])}),a=n.getModel("label"),s=Ie.QX(a.get("padding")||0),l=a.getFont(),c=h.NO(o,l),u=r.position,d=c.width+s[1]+s[3],p=c.height+s[0]+s[2],f=r.align;"right"===f&&(u[0]-=d),"center"===f&&(u[0]-=d/2);var g=r.verticalAlign;"bottom"===g&&(u[1]-=p),"middle"===g&&(u[1]-=p/2),function(t,e,n,i){var r=i.getWidth(),o=i.getHeight();t[0]=Math.min(t[0]+e,r)-e,t[1]=Math.min(t[1]+n,o)-n,t[0]=Math.max(t[0],0),t[1]=Math.max(t[1],0)}(u,d,p,i);var m=a.get("backgroundColor");m&&"auto"!==m||(m=e.get(["axisLine","lineStyle","color"])),t.label={x:u[0],y:u[1],style:(0,Jt.VB)(a,{text:o,font:l,fill:a.getTextColor(),padding:s,backgroundColor:m}),z2:10}}function og(t,e,n,i,r){t=e.scale.parse(t);var o=e.scale.getLabel({value:t},{precision:r.precision}),a=r.formatter;if(a){var s={value:vi.Dt(e,{value:t}),axisDimension:e.dim,axisIndex:e.index,seriesData:[]};_.each(i,(function(t){var e=n.getSeriesByIndex(t.seriesIndex),i=t.dataIndexInside,r=e&&e.getDataParams(i);r&&s.seriesData.push(r)})),_.isString(a)?o=a.replace("{value}",o):_.isFunction(a)&&(o=a(s))}return o}function ag(t,e,n){var i=_i.create();return _i.rotate(i,i,n.rotation),_i.translate(i,i,n.position),qt.applyTransform([t.dataToCoord(e),(n.labelOffset||0)+(n.labelDirection||1)*(n.labelMargin||0)],i)}function sg(t,e,n,i,r,o){var a=Yi.innerTextLayout(n.rotation,0,n.labelDirection);n.labelMargin=r.get(["label","margin"]),rg(e,i,r,o,{position:ag(i.axis,t,n),align:a.textAlign,verticalAlign:a.textVerticalAlign})}function lg(t,e,n){return{x1:t[n=n||0],y1:t[1-n],x2:e[n],y2:e[1-n]}}function hg(t,e,n){return{x:t[n=n||0],y:t[1-n],width:e[n],height:e[1-n]}}function cg(t,e,n,i,r,o){return{cx:t,cy:e,r0:n,r:i,startAngle:r,endAngle:o,clockwise:!0}}var ug=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return(0,Bt.C6)(e,t),e.prototype.makeElOption=function(t,e,n,i,r){var o=n.axis,a=o.grid,s=i.get("type"),l=dg(a,o).getOtherAxis(o).getGlobalExtent(),h=o.toGlobalCoord(o.dataToCoord(e,!0));if(s&&"none"!==s){var c=ig(i),u=pg[s](o,h,l);u.style=c,t.graphicKey=u.type,t.pointer=u}sg(e,t,Ci(a.model,n),n,i,r)},e.prototype.getHandleTransform=function(t,e,n){var i=Ci(e.axis.grid.model,e,{labelInside:!1});i.labelMargin=n.get(["handle","margin"]);var r=ag(e.axis,t,i);return{x:r[0],y:r[1],rotation:i.rotation+(i.labelDirection<0?Math.PI:0)}},e.prototype.updateHandleTransform=function(t,e,n,i){var r=n.axis,o=r.grid,a=r.getGlobalExtent(!0),s=dg(o,r).getOtherAxis(r).getGlobalExtent(),l="x"===r.dim?0:1,h=[t.x,t.y];h[l]+=e[l],h[l]=Math.min(a[1],h[l]),h[l]=Math.max(a[0],h[l]);var c=(s[1]+s[0])/2,u=[c,c];u[l]=h[l];return{x:h[0],y:h[1],rotation:t.rotation,cursorPoint:u,tooltipOption:[{verticalAlign:"middle"},{align:"center"}][l]}},e}(ng);function dg(t,e){var n={};return n[e.dim+"AxisIndex"]=e.index,t.getCartesian(n)}var pg={line:function(t,e,n){return{type:"Line",subPixelOptimize:!0,shape:lg([e,n[0]],[e,n[1]],fg(t))}},shadow:function(t,e,n){var i=Math.max(1,t.getBandWidth()),r=n[1]-n[0];return{type:"Rect",shape:hg([e-i/2,n[0]],[i,r],fg(t))}}};function fg(t){return"x"===t.dim?0:1}const gg=ug;const mg=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return(0,Bt.C6)(e,t),e.type="axisPointer",e.defaultOption={show:"auto",z:50,type:"line",snap:!1,triggerTooltip:!0,triggerEmphasis:!0,value:null,status:null,link:[],animation:null,animationDurationUpdate:200,lineStyle:{color:"#B9BEC9",width:1,type:"dashed"},shadowStyle:{color:"rgba(210,219,238,0.2)"},label:{show:!0,formatter:null,precision:"auto",margin:3,color:"#fff",padding:[5,7,5,7],backgroundColor:"auto",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:"#333",shadowBlur:3,shadowColor:"#aaa",shadowOffsetX:0,shadowOffsetY:2,throttle:40}},e}(oi.A);var vg=n(4810),yg=(0,ce.$r)(),_g=_.each;function xg(t,e,n){if(!vg.A.node){var i=e.getZr();yg(i).records||(yg(i).records={}),function(t,e){if(yg(t).initialized)return;function n(n,i){t.on(n,(function(n){var r=function(t){var e={showTip:[],hideTip:[]},n=function(i){var r=e[i.type];r?r.push(i):(i.dispatchAction=n,t.dispatchAction(i))};return{dispatchAction:n,pendings:e}}(e);_g(yg(t).records,(function(t){t&&i(t,n,r.dispatchAction)})),function(t,e){var n,i=t.showTip.length,r=t.hideTip.length;i?n=t.showTip[i-1]:r&&(n=t.hideTip[r-1]);n&&(n.dispatchAction=null,e.dispatchAction(n))}(r.pendings,e)}))}yg(t).initialized=!0,n("click",_.curry(wg,"click")),n("mousemove",_.curry(wg,"mousemove")),n("globalout",bg)}(i,e),(yg(i).records[t]||(yg(i).records[t]={})).handler=n}}function bg(t,e,n){t.handler("leave",null,n)}function wg(t,e,n,i){e.handler(t,n,i)}function Sg(t,e){if(!vg.A.node){var n=e.getZr();(yg(n).records||{})[t]&&(yg(n).records[t]=null)}}var Tg=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return(0,Bt.C6)(e,t),e.prototype.render=function(t,e,n){var i=e.getComponent("tooltip"),r=t.get("triggerOn")||i&&i.get("triggerOn")||"mousemove|click";xg("axisPointer",n,(function(t,e,n){"none"!==r&&("leave"===t||r.indexOf(t)>=0)&&n({type:"updateAxisPointer",currTrigger:t,x:e&&e.offsetX,y:e&&e.offsetY})}))},e.prototype.remove=function(t,e){Sg("axisPointer",e)},e.prototype.dispose=function(t,e){Sg("axisPointer",e)},e.type="axisPointer",e}(ri.A);const Mg=Tg;function Ag(t,e){var n,i=[],r=t.seriesIndex;if(null==r||!(n=e.getSeriesByIndex(r)))return{point:[]};var o=n.getData(),a=ce.le(o,t);if(null==a||a<0||_.isArray(a))return{point:[]};var s=o.getItemGraphicEl(a),l=n.coordinateSystem;if(n.getTooltipPosition)i=n.getTooltipPosition(a)||[];else if(l&&l.dataToPoint)if(t.isStacked){var h=l.getBaseAxis(),c=l.getOtherAxis(h).dim,u=h.dim,d="x"===c||"radius"===c?1:0,p=o.mapDimension(u),f=[];f[d]=o.get(p,a),f[1-d]=o.get(o.getCalculationInfo("stackResultDimension"),a),i=l.dataToPoint(f)||[]}else i=l.dataToPoint(o.getValues(_.map(l.dimensions,(function(t){return o.mapDimension(t)})),a))||[];else if(s){var g=s.getBoundingRect().clone();g.applyTransform(s.transform),i=[g.x+g.width/2,g.y+g.height/2]}return{point:i,el:s}}var Cg=(0,ce.$r)();function Ig(t,e,n){var i=t.currTrigger,r=[t.x,t.y],o=t,a=t.dispatchAction||(0,_.bind)(n.dispatchAction,n),s=e.getComponent("axisPointer").coordSysAxesInfo;if(s){Pg(r)&&(r=Ag({seriesIndex:o.seriesIndex,dataIndex:o.dataIndex},e).point);var l=Pg(r),h=o.axesInfo,c=s.axesInfo,u="leave"===i||Pg(r),d={},p={},f={list:[],map:{}},g={showPointer:(0,_.curry)(kg,p),showTooltip:(0,_.curry)(Lg,f)};(0,_.each)(s.coordSysMap,(function(t,e){var n=l||t.containPoint(r);(0,_.each)(s.coordSysAxesInfo[e],(function(t,e){var i=t.axis,o=function(t,e){for(var n=0;n<(t||[]).length;n++){var i=t[n];if(e.axis.dim===i.axisDim&&e.axis.model.componentIndex===i.axisIndex)return i}}(h,t);if(!u&&n&&(!h||o)){var a=o&&o.value;null!=a||l||(a=i.pointToData(r)),null!=a&&Eg(t,a,g,!1,d)}}))}));var m={};return(0,_.each)(c,(function(t,e){var n=t.linkGroup;n&&!p[e]&&(0,_.each)(n.axesInfo,(function(e,i){var r=p[i];if(e!==t&&r){var o=r.value;n.mapper&&(o=t.axis.scale.parse(n.mapper(o,Dg(e),Dg(t)))),m[t.key]=o}}))})),(0,_.each)(m,(function(t,e){Eg(c[e],t,g,!0,d)})),function(t,e,n){var i=n.axesInfo=[];(0,_.each)(e,(function(e,n){var r=e.axisPointerModel.option,o=t[n];o?(!e.useHandle&&(r.status="show"),r.value=o.value,r.seriesDataIndices=(o.payloadBatch||[]).slice()):!e.useHandle&&(r.status="hide"),"show"===r.status&&i.push({axisDim:e.axis.dim,axisIndex:e.axis.model.componentIndex,value:r.value})}))}(p,c,d),function(t,e,n,i){if(Pg(e)||!t.list.length)return void i({type:"hideTip"});var r=((t.list[0].dataByAxis[0]||{}).seriesDataIndices||[])[0]||{};i({type:"showTip",escapeConnect:!0,x:e[0],y:e[1],tooltipOption:n.tooltipOption,position:n.position,dataIndexInside:r.dataIndexInside,dataIndex:r.dataIndex,seriesIndex:r.seriesIndex,dataByCoordSys:t.list})}(f,r,t,a),function(t,e,n){var i=n.getZr(),r="axisPointerLastHighlights",o=Cg(i)[r]||{},a=Cg(i)[r]={};(0,_.each)(t,(function(t,e){var n=t.axisPointerModel.option;"show"===n.status&&t.triggerEmphasis&&(0,_.each)(n.seriesDataIndices,(function(t){var e=t.seriesIndex+" | "+t.dataIndex;a[e]=t}))}));var s=[],l=[];(0,_.each)(o,(function(t,e){!a[e]&&l.push(t)})),(0,_.each)(a,(function(t,e){!o[e]&&s.push(t)})),l.length&&n.dispatchAction({type:"downplay",escapeConnect:!0,notBlur:!0,batch:l}),s.length&&n.dispatchAction({type:"highlight",escapeConnect:!0,notBlur:!0,batch:s})}(c,0,n),d}}function Eg(t,e,n,i,r){var o=t.axis;if(!o.scale.isBlank()&&o.containData(e))if(t.involveSeries){var a=function(t,e){var n=e.axis,i=n.dim,r=t,o=[],a=Number.MAX_VALUE,s=-1;return(0,_.each)(e.seriesModels,(function(e,l){var h,c,u=e.getData().mapDimensionsAll(i);if(e.getAxisTooltipData){var d=e.getAxisTooltipData(u,t,n);c=d.dataIndices,h=d.nestestValue}else{if(!(c=e.getData().indicesOfNearest(u[0],t,"category"===n.type?.5:null)).length)return;h=e.getData().get(u[0],c[0])}if(null!=h&&isFinite(h)){var p=t-h,f=Math.abs(p);f<=a&&((f<a||p>=0&&s<0)&&(a=f,s=p,r=h,o.length=0),(0,_.each)(c,(function(t){o.push({seriesIndex:e.seriesIndex,dataIndexInside:t,dataIndex:e.getData().getRawIndex(t)})})))}})),{payloadBatch:o,snapToValue:r}}(e,t),s=a.payloadBatch,l=a.snapToValue;s[0]&&null==r.seriesIndex&&(0,_.extend)(r,s[0]),!i&&t.snap&&o.containData(l)&&null!=l&&(e=l),n.showPointer(t,e,s),n.showTooltip(t,a,l)}else n.showPointer(t,e)}function kg(t,e,n,i){t[e.key]={value:n,payloadBatch:i}}function Lg(t,e,n,i){var r=n.payloadBatch,o=e.axis,a=o.model,s=e.axisPointerModel;if(e.triggerTooltip&&r.length){var l=e.coordSys.model,h=Qi(l),c=t.map[h];c||(c=t.map[h]={coordSysId:l.id,coordSysIndex:l.componentIndex,coordSysType:l.type,coordSysMainType:l.mainType,dataByAxis:[]},t.list.push(c)),c.dataByAxis.push({axisDim:o.dim,axisIndex:a.componentIndex,axisType:a.type,axisId:a.id,value:i,valueLabelOpt:{precision:s.get(["label","precision"]),formatter:s.get(["label","formatter"])},seriesDataIndices:r.slice()})}}function Dg(t){var e=t.axis.model,n={},i=n.axisDim=t.axis.dim;return n.axisIndex=n[i+"AxisIndex"]=e.componentIndex,n.axisName=n[i+"AxisName"]=e.name,n.axisId=n[i+"AxisId"]=e.id,n}function Pg(t){return!t||null==t[0]||isNaN(t[0])||null==t[1]||isNaN(t[1])}function Rg(t){er.registerAxisPointerClass("CartesianAxisPointer",gg),t.registerComponentModel(mg),t.registerComponentView(Mg),t.registerPreprocessor((function(t){if(t){(!t.axisPointer||0===t.axisPointer.length)&&(t.axisPointer={});var e=t.axisPointer.link;e&&!(0,_.isArray)(e)&&(t.axisPointer.link=[e])}})),t.registerProcessor(t.PRIORITY.PROCESSOR.STATISTIC,(function(t,e){t.getComponent("axisPointer").coordSysAxesInfo=Zi(t,e)})),t.registerAction({type:"updateAxisPointer",event:"updateAxisPointer",update:":updateAxisPointer"},Ig)}var Og=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return(0,Bt.C6)(e,t),e.prototype.makeElOption=function(t,e,n,i,r){var o=n.axis;"angle"===o.dim&&(this.animationThreshold=Math.PI/18);var a=o.polar,s=a.getOtherAxis(o).getExtent(),l=o.dataToCoord(e),h=i.get("type");if(h&&"none"!==h){var c=ig(i),u=Ng[h](o,a,l,s);u.style=c,t.graphicKey=u.type,t.pointer=u}var d=function(t,e,n,i,r){var o=e.axis,a=o.dataToCoord(t),s=i.getAngleAxis().getExtent()[0];s=s/180*Math.PI;var l,h,c,u=i.getRadiusAxis().getExtent();if("radius"===o.dim){var d=_i.create();_i.rotate(d,d,s),_i.translate(d,d,[i.cx,i.cy]),l=qt.applyTransform([a,-r],d);var p=e.getModel("axisLabel").get("rotate")||0,f=Yi.innerTextLayout(s,p*Math.PI/180,-1);h=f.textAlign,c=f.textVerticalAlign}else{var g=u[1];l=i.coordToPoint([g+r,a]);var m=i.cx,v=i.cy;h=Math.abs(l[0]-m)/g<.3?"center":l[0]>m?"left":"right",c=Math.abs(l[1]-v)/g<.3?"middle":l[1]>v?"top":"bottom"}return{position:l,align:h,verticalAlign:c}}(e,n,0,a,i.get(["label","margin"]));rg(t,n,i,r,d)},e}(ng);var Ng={line:function(t,e,n,i){return"angle"===t.dim?{type:"Line",shape:lg(e.coordToPoint([i[0],n]),e.coordToPoint([i[1],n]))}:{type:"Circle",shape:{cx:e.cx,cy:e.cy,r:n}}},shadow:function(t,e,n,i){var r=Math.max(1,t.getBandWidth()),o=Math.PI/180;return"angle"===t.dim?{type:"Sector",shape:cg(e.cx,e.cy,i[0],i[1],(-n-r/2)*o,(r/2-n)*o)}:{type:"Sector",shape:cg(e.cx,e.cy,n-r/2,n+r/2,0,2*Math.PI)}}};const Fg=Og;const Bg=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return(0,Bt.C6)(e,t),e.prototype.findAxisModel=function(t){var e;return this.ecModel.eachComponent(t,(function(t){t.getCoordSysModel()===this&&(e=t)}),this),e},e.type="polar",e.dependencies=["radiusAxis","angleAxis"],e.defaultOption={z:0,center:["50%","50%"],radius:"80%"},e}(oi.A);var zg=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return(0,Bt.C6)(e,t),e.prototype.getCoordSysModel=function(){return this.getReferringComponents("polar",ce.US).models[0]},e.type="polarAxis",e}(oi.A);_.mixin(zg,si.L);var Gg=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return(0,Bt.C6)(e,t),e.type="angleAxis",e}(zg),Vg=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return(0,Bt.C6)(e,t),e.type="radiusAxis",e}(zg),jg=function(t){function e(e,n){return t.call(this,"radius",e,n)||this}return(0,Bt.C6)(e,t),e.prototype.pointToData=function(t,e){return this.polar.pointToData(t,e)["radius"===this.dim?0:1]},e}(Ti.A);jg.prototype.dataToRadius=Ti.A.prototype.dataToCoord,jg.prototype.radiusToData=Ti.A.prototype.coordToData;const Hg=jg;var Wg=(0,ce.$r)(),Ug=function(t){function e(e,n){return t.call(this,"angle",e,n||[0,360])||this}return(0,Bt.C6)(e,t),e.prototype.pointToData=function(t,e){return this.polar.pointToData(t,e)["radius"===this.dim?0:1]},e.prototype.calculateCategoryInterval=function(){var t=this,e=t.getLabelModel(),n=t.scale,i=n.getExtent(),r=n.count();if(i[1]-i[0]<1)return 0;var o=i[0],a=t.dataToCoord(o+1)-t.dataToCoord(o),s=Math.abs(a),l=h.NO(null==o?"":o+"",e.getFont(),"center","top"),c=Math.max(l.height,7)/s;isNaN(c)&&(c=1/0);var u=Math.max(0,Math.floor(c)),d=Wg(t.model),p=d.lastAutoInterval,f=d.lastTickCount;return null!=p&&null!=f&&Math.abs(p-u)<=1&&Math.abs(f-r)<=1&&p>u?u=p:(d.lastTickCount=r,d.lastAutoInterval=u),u},e}(Ti.A);Ug.prototype.dataToAngle=Ti.A.prototype.dataToCoord,Ug.prototype.angleToData=Ti.A.prototype.coordToData;const qg=Ug;var Xg=["radius","angle"],Yg=function(){function t(t){this.dimensions=Xg,this.type="polar",this.cx=0,this.cy=0,this._radiusAxis=new Hg,this._angleAxis=new qg,this.axisPointerEnabled=!0,this.name=t||"",this._radiusAxis.polar=this._angleAxis.polar=this}return t.prototype.containPoint=function(t){var e=this.pointToCoord(t);return this._radiusAxis.contain(e[0])&&this._angleAxis.contain(e[1])},t.prototype.containData=function(t){return this._radiusAxis.containData(t[0])&&this._angleAxis.containData(t[1])},t.prototype.getAxis=function(t){return this["_"+t+"Axis"]},t.prototype.getAxes=function(){return[this._radiusAxis,this._angleAxis]},t.prototype.getAxesByScale=function(t){var e=[],n=this._angleAxis,i=this._radiusAxis;return n.scale.type===t&&e.push(n),i.scale.type===t&&e.push(i),e},t.prototype.getAngleAxis=function(){return this._angleAxis},t.prototype.getRadiusAxis=function(){return this._radiusAxis},t.prototype.getOtherAxis=function(t){var e=this._angleAxis;return t===e?this._radiusAxis:e},t.prototype.getBaseAxis=function(){return this.getAxesByScale("ordinal")[0]||this.getAxesByScale("time")[0]||this.getAngleAxis()},t.prototype.getTooltipAxes=function(t){var e=null!=t&&"auto"!==t?this.getAxis(t):this.getBaseAxis();return{baseAxes:[e],otherAxes:[this.getOtherAxis(e)]}},t.prototype.dataToPoint=function(t,e){return this.coordToPoint([this._radiusAxis.dataToRadius(t[0],e),this._angleAxis.dataToAngle(t[1],e)])},t.prototype.pointToData=function(t,e){var n=this.pointToCoord(t);return[this._radiusAxis.radiusToData(n[0],e),this._angleAxis.angleToData(n[1],e)]},t.prototype.pointToCoord=function(t){var e=t[0]-this.cx,n=t[1]-this.cy,i=this.getAngleAxis(),r=i.getExtent(),o=Math.min(r[0],r[1]),a=Math.max(r[0],r[1]);i.inverse?o=a-360:a=o+360;var s=Math.sqrt(e*e+n*n);e/=s,n/=s;for(var l=Math.atan2(-n,e)/Math.PI*180,h=l<o?1:-1;l<o||l>a;)l+=360*h;return[s,l]},t.prototype.coordToPoint=function(t){var e=t[0],n=t[1]/180*Math.PI;return[Math.cos(n)*e+this.cx,-Math.sin(n)*e+this.cy]},t.prototype.getArea=function(){var t=this.getAngleAxis(),e=this.getRadiusAxis().getExtent().slice();e[0]>e[1]&&e.reverse();var n=t.getExtent(),i=Math.PI/180;return{cx:this.cx,cy:this.cy,r0:e[0],r:e[1],startAngle:-n[0]*i,endAngle:-n[1]*i,clockwise:t.inverse,contain:function(t,e){var n=t-this.cx,i=e-this.cy,r=n*n+i*i-1e-4,o=this.r,a=this.r0;return r<=o*o&&r>=a*a}}},t.prototype.convertToPixel=function(t,e,n){return Zg(e)===this?this.dataToPoint(n):null},t.prototype.convertFromPixel=function(t,e,n){return Zg(e)===this?this.pointToData(n):null},t}();function Zg(t){var e=t.seriesModel,n=t.polarModel;return n&&n.coordinateSystem||e&&e.coordinateSystem}const $g=Yg;function Kg(t,e){var n=this,i=n.getAngleAxis(),r=n.getRadiusAxis();if(i.scale.setExtent(1/0,-1/0),r.scale.setExtent(1/0,-1/0),t.eachSeries((function(t){if(t.coordinateSystem===n){var e=t.getData();_.each((0,vi.wq)(e,"radius"),(function(t){r.scale.unionExtentFromData(e,t)})),_.each((0,vi.wq)(e,"angle"),(function(t){i.scale.unionExtentFromData(e,t)}))}})),(0,vi.af)(i.scale,i.model),(0,vi.af)(r.scale,r.model),"category"===i.type&&!i.onBand){var o=i.getExtent(),a=360/i.scale.count();i.inverse?o[1]+=a:o[1]-=a,i.setExtent(o[0],o[1])}}function Jg(t,e){var n;if(t.type=e.get("type"),t.scale=(0,vi.f$)(e),t.onBand=e.get("boundaryGap")&&"category"===t.type,t.inverse=e.get("inverse"),function(t){return"angleAxis"===t.mainType}(e)){t.inverse=t.inverse!==e.get("clockwise");var i=e.get("startAngle"),r=null!==(n=e.get("endAngle"))&&void 0!==n?n:i+(t.inverse?-360:360);t.setExtent(i,r)}e.axis=t,t.model=e}var Qg={dimensions:Xg,create:function(t,e){var n=[];return t.eachComponent("polar",(function(t,i){var r=new $g(i+"");r.update=Kg;var o=r.getRadiusAxis(),a=r.getAngleAxis(),s=t.findAxisModel("radiusAxis"),l=t.findAxisModel("angleAxis");Jg(o,s),Jg(a,l),function(t,e,n){var i=e.get("center"),r=n.getWidth(),o=n.getHeight();t.cx=(0,Se.lo)(i[0],r),t.cy=(0,Se.lo)(i[1],o);var a=t.getRadiusAxis(),s=Math.min(r,o)/2,l=e.get("radius");null==l?l=[0,"100%"]:_.isArray(l)||(l=[0,l]);var h=[(0,Se.lo)(l[0],s),(0,Se.lo)(l[1],s)];a.inverse?a.setExtent(h[1],h[0]):a.setExtent(h[0],h[1])}(r,t,e),n.push(r),t.coordinateSystem=r,r.model=t})),t.eachSeries((function(t){if("polar"===t.get("coordinateSystem")){var e=t.getReferringComponents("polar",ce.US).models[0];0,t.coordinateSystem=e.coordinateSystem}})),n}};const tm=Qg;var em=["axisLine","axisLabel","axisTick","minorTick","splitLine","minorSplitLine","splitArea"];function nm(t,e,n){e[1]>e[0]&&(e=e.slice().reverse());var i=t.coordToPoint([e[0],n]),r=t.coordToPoint([e[1],n]);return{x1:i[0],y1:i[1],x2:r[0],y2:r[1]}}function im(t){return t.getRadiusAxis().inverse?0:1}function rm(t){var e=t[0],n=t[t.length-1];e&&n&&Math.abs(Math.abs(e.coord-n.coord)-360)<1e-4&&t.pop()}var om=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n.axisPointerClass="PolarAxisPointer",n}return(0,Bt.C6)(e,t),e.prototype.render=function(t,e){if(this.group.removeAll(),t.get("show")){var n=t.axis,i=n.polar,r=i.getRadiusAxis().getExtent(),o=n.getTicksCoords(),a=n.getMinorTicksCoords(),s=_.map(n.getViewLabels(),(function(t){t=_.clone(t);var e=n.scale,i="ordinal"===e.type?e.getRawOrdinalNumber(t.tickValue):t.tickValue;return t.coord=n.dataToCoord(i),t}));rm(s),rm(o),_.each(em,(function(e){!t.get([e,"show"])||n.scale.isBlank()&&"axisLine"!==e||am[e](this.group,t,i,o,a,r,s)}),this)}},e.type="angleAxis",e}(er),am={axisLine:function(t,e,n,i,r,o){var a,s=e.getModel(["axisLine","lineStyle"]),l=n.getAngleAxis(),h=Math.PI/180,c=l.getExtent(),u=im(n),d=u?0:1,p=360===Math.abs(c[1]-c[0])?"Circle":"Arc";(a=0===o[d]?new qt[p]({shape:{cx:n.cx,cy:n.cy,r:o[u],startAngle:-c[0]*h,endAngle:-c[1]*h,clockwise:l.inverse},style:s.getLineStyle(),z2:1,silent:!0}):new Ir.A({shape:{cx:n.cx,cy:n.cy,r:o[u],r0:o[d]},style:s.getLineStyle(),z2:1,silent:!0})).style.fill=null,t.add(a)},axisTick:function(t,e,n,i,r,o){var a=e.getModel("axisTick"),s=(a.get("inside")?-1:1)*a.get("length"),l=o[im(n)],h=_.map(i,(function(t){return new zi.A({shape:nm(n,[l,l+s],t.coord)})}));t.add(qt.mergePath(h,{style:_.defaults(a.getModel("lineStyle").getLineStyle(),{stroke:e.get(["axisLine","lineStyle","color"])})}))},minorTick:function(t,e,n,i,r,o){if(r.length){for(var a=e.getModel("axisTick"),s=e.getModel("minorTick"),l=(a.get("inside")?-1:1)*s.get("length"),h=o[im(n)],c=[],u=0;u<r.length;u++)for(var d=0;d<r[u].length;d++)c.push(new zi.A({shape:nm(n,[h,h+l],r[u][d].coord)}));t.add(qt.mergePath(c,{style:_.defaults(s.getModel("lineStyle").getLineStyle(),_.defaults(a.getLineStyle(),{stroke:e.get(["axisLine","lineStyle","color"])}))}))}},axisLabel:function(t,e,n,i,r,o,a){var s=e.getCategories(!0),l=e.getModel("axisLabel"),h=l.get("margin"),c=e.get("triggerEvent");_.each(a,(function(i,r){var a=l,u=i.tickValue,d=o[im(n)],p=n.coordToPoint([d+h,i.coord]),f=n.cx,g=n.cy,m=Math.abs(p[0]-f)/d<.3?"center":p[0]>f?"left":"right",v=Math.abs(p[1]-g)/d<.3?"middle":p[1]>g?"top":"bottom";if(s&&s[u]){var y=s[u];_.isObject(y)&&y.textStyle&&(a=new Gi.A(y.textStyle,l,l.ecModel))}var x=new Z.Ay({silent:Yi.isLabelSilent(e),style:(0,Jt.VB)(a,{x:p[0],y:p[1],fill:a.getTextColor()||e.get(["axisLine","lineStyle","color"]),text:i.formattedLabel,align:m,verticalAlign:v})});if(t.add(x),c){var b=Yi.makeAxisEventDataBase(e);b.targetType="axisLabel",b.value=i.rawLabel,(0,Xt.z)(x).eventData=b}}),this)},splitLine:function(t,e,n,i,r,o){var a=e.getModel("splitLine").getModel("lineStyle"),s=a.get("color"),l=0;s=s instanceof Array?s:[s];for(var h=[],c=0;c<i.length;c++){var u=l++%s.length;h[u]=h[u]||[],h[u].push(new zi.A({shape:nm(n,o,i[c].coord)}))}for(c=0;c<h.length;c++)t.add(qt.mergePath(h[c],{style:_.defaults({stroke:s[c%s.length]},a.getLineStyle()),silent:!0,z:e.get("z")}))},minorSplitLine:function(t,e,n,i,r,o){if(r.length){for(var a=e.getModel("minorSplitLine").getModel("lineStyle"),s=[],l=0;l<r.length;l++)for(var h=0;h<r[l].length;h++)s.push(new zi.A({shape:nm(n,o,r[l][h].coord)}));t.add(qt.mergePath(s,{style:a.getLineStyle(),silent:!0,z:e.get("z")}))}},splitArea:function(t,e,n,i,r,o){if(i.length){var a=e.getModel("splitArea").getModel("areaStyle"),s=a.get("color"),l=0;s=s instanceof Array?s:[s];for(var h=[],c=Math.PI/180,u=-i[0].coord*c,d=Math.min(o[0],o[1]),p=Math.max(o[0],o[1]),f=e.get("clockwise"),g=1,m=i.length;g<=m;g++){var v=g===m?i[0].coord:i[g].coord,y=l++%s.length;h[y]=h[y]||[],h[y].push(new we.A({shape:{cx:n.cx,cy:n.cy,r0:d,r:p,startAngle:u,endAngle:-v*c,clockwise:f},silent:!0})),u=-v*c}for(g=0;g<h.length;g++)t.add(qt.mergePath(h[g],{style:_.defaults({fill:s[g%s.length]},a.getAreaStyle()),silent:!0}))}}};const sm=om;var lm=["axisLine","axisTickLabel","axisName"],hm=["splitLine","splitArea","minorSplitLine"],cm=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n.axisPointerClass="PolarAxisPointer",n}return(0,Bt.C6)(e,t),e.prototype.render=function(t,e){if(this.group.removeAll(),t.get("show")){var n=this._axisGroup,i=this._axisGroup=new jt.A;this.group.add(i);var r=t.axis,o=r.polar,a=o.getAngleAxis(),s=r.getTicksCoords(),l=r.getMinorTicksCoords(),h=a.getExtent()[0],c=r.getExtent(),u=function(t,e,n){return{position:[t.cx,t.cy],rotation:n/180*Math.PI,labelDirection:-1,tickDirection:-1,nameDirection:1,labelRotate:e.getModel("axisLabel").get("rotate"),z2:1}}(o,t,h),d=new Yi(t,u);_.each(lm,d.add,d),i.add(d.getGroup()),qt.groupTransition(n,i,t),_.each(hm,(function(e){t.get([e,"show"])&&!r.scale.isBlank()&&um[e](this.group,t,o,h,c,s,l)}),this)}},e.type="radiusAxis",e}(er),um={splitLine:function(t,e,n,i,r,o){var a=e.getModel("splitLine").getModel("lineStyle"),s=a.get("color"),l=0,h=n.getAngleAxis(),c=Math.PI/180,u=h.getExtent(),d=360===Math.abs(u[1]-u[0])?"Circle":"Arc";s=s instanceof Array?s:[s];for(var p=[],f=0;f<o.length;f++){var g=l++%s.length;p[g]=p[g]||[],p[g].push(new qt[d]({shape:{cx:n.cx,cy:n.cy,r:Math.max(o[f].coord,0),startAngle:-u[0]*c,endAngle:-u[1]*c,clockwise:h.inverse}}))}for(f=0;f<p.length;f++)t.add(qt.mergePath(p[f],{style:_.defaults({stroke:s[f%s.length],fill:null},a.getLineStyle()),silent:!0}))},minorSplitLine:function(t,e,n,i,r,o,a){if(a.length){for(var s=e.getModel("minorSplitLine").getModel("lineStyle"),l=[],h=0;h<a.length;h++)for(var c=0;c<a[h].length;c++)l.push(new Cr.A({shape:{cx:n.cx,cy:n.cy,r:a[h][c].coord}}));t.add(qt.mergePath(l,{style:_.defaults({fill:null},s.getLineStyle()),silent:!0}))}},splitArea:function(t,e,n,i,r,o){if(o.length){var a=e.getModel("splitArea").getModel("areaStyle"),s=a.get("color"),l=0;s=s instanceof Array?s:[s];for(var h=[],c=o[0].coord,u=1;u<o.length;u++){var d=l++%s.length;h[d]=h[d]||[],h[d].push(new we.A({shape:{cx:n.cx,cy:n.cy,r0:c,r:o[u].coord,startAngle:0,endAngle:2*Math.PI},silent:!0})),c=o[u].coord}for(u=0;u<h.length;u++)t.add(qt.mergePath(h[u],{style:_.defaults({fill:s[u%s.length]},a.getAreaStyle()),silent:!0}))}}};const dm=cm;function pm(t){return t.get("stack")||"__ec_stack_"+t.seriesIndex}function fm(t,e){return e.dim+t.model.componentIndex}const gm=function(t,e,n){var i={},r=function(t){var e={};_.each(t,(function(t,n){var i=t.getData(),r=t.coordinateSystem,o=r.getBaseAxis(),a=fm(r,o),s=o.getExtent(),l="category"===o.type?o.getBandWidth():Math.abs(s[1]-s[0])/i.count(),h=e[a]||{bandWidth:l,remainedWidth:l,autoWidthCount:0,categoryGap:"20%",gap:"30%",stacks:{}},c=h.stacks;e[a]=h;var u=pm(t);c[u]||h.autoWidthCount++,c[u]=c[u]||{width:0,maxWidth:0};var d=(0,Se.lo)(t.get("barWidth"),l),p=(0,Se.lo)(t.get("barMaxWidth"),l),f=t.get("barGap"),g=t.get("barCategoryGap");d&&!c[u].width&&(d=Math.min(h.remainedWidth,d),c[u].width=d,h.remainedWidth-=d),p&&(c[u].maxWidth=p),null!=f&&(h.gap=f),null!=g&&(h.categoryGap=g)}));var n={};return _.each(e,(function(t,e){n[e]={};var i=t.stacks,r=t.bandWidth,o=(0,Se.lo)(t.categoryGap,r),a=(0,Se.lo)(t.gap,1),s=t.remainedWidth,l=t.autoWidthCount,h=(s-o)/(l+(l-1)*a);h=Math.max(h,0),_.each(i,(function(t,e){var n=t.maxWidth;n&&n<h&&(n=Math.min(n,s),t.width&&(n=Math.min(n,t.width)),s-=n,t.width=n,l--)})),h=(s-o)/(l+(l-1)*a),h=Math.max(h,0);var c,u=0;_.each(i,(function(t,e){t.width||(t.width=h),c=t,u+=t.width*(1+a)})),c&&(u-=c.width*a);var d=-u/2;_.each(i,(function(t,i){n[e][i]=n[e][i]||{offset:d,width:t.width},d+=t.width*(1+a)}))})),n}(_.filter(e.getSeriesByType(t),(function(t){return!e.isSeriesFiltered(t)&&t.coordinateSystem&&"polar"===t.coordinateSystem.type})));e.eachSeriesByType(t,(function(t){if("polar"===t.coordinateSystem.type){var e=t.getData(),n=t.coordinateSystem,o=n.getBaseAxis(),a=fm(n,o),s=pm(t),l=r[a][s],h=l.offset,c=l.width,u=n.getOtherAxis(o),d=t.coordinateSystem.cx,p=t.coordinateSystem.cy,f=t.get("barMinHeight")||0,g=t.get("barMinAngle")||0;i[s]=i[s]||[];for(var m=e.mapDimension(u.dim),v=e.mapDimension(o.dim),y=(0,oe.sJ)(e,m),_="radius"!==o.dim||!t.get("roundCap",!0),x=u.model.get("startValue"),b=u.dataToCoord(x||0),w=0,S=e.count();w<S;w++){var T=e.get(m,w),M=e.get(v,w),A=T>=0?"p":"n",C=b;y&&(i[s][M]||(i[s][M]={p:b,n:b}),C=i[s][M][A]);var I=void 0,E=void 0,k=void 0,L=void 0;if("radius"===u.dim){var D=u.dataToCoord(T)-b,P=o.dataToCoord(M);Math.abs(D)<f&&(D=(D<0?-1:1)*f),I=C,E=C+D,L=(k=P-h)-c,y&&(i[s][M][A]=E)}else{var R=u.dataToCoord(T,_)-b,O=o.dataToCoord(M);Math.abs(R)<g&&(R=(R<0?-1:1)*g),E=(I=O+h)+c,k=C,L=C+R,y&&(i[s][M][A]=L)}e.setItemLayout(w,{cx:d,cy:p,r0:I,r:E,startAngle:-k*Math.PI/180,endAngle:-L*Math.PI/180,clockwise:k>=L})}}}))};var mm={startAngle:90,clockwise:!0,splitNumber:12,axisLabel:{rotate:0}},vm={splitNumber:5},ym=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return(0,Bt.C6)(e,t),e.type="polar",e}(ri.A);function _m(t,e){e=e||{};var n=t.coordinateSystem,i=t.axis,r={},o=i.position,a=i.orient,s=n.getRect(),l=[s.x,s.x+s.width,s.y,s.y+s.height],h={horizontal:{top:l[2],bottom:l[3]},vertical:{left:l[0],right:l[1]}};r.position=["vertical"===a?h.vertical[o]:l[0],"horizontal"===a?h.horizontal[o]:l[3]];r.rotation=Math.PI/2*{horizontal:0,vertical:1}[a];r.labelDirection=r.tickDirection=r.nameDirection={top:-1,bottom:1,right:1,left:-1}[o],t.get(["axisTick","inside"])&&(r.tickDirection=-r.tickDirection),_.retrieve(e.labelInside,t.get(["axisLabel","inside"]))&&(r.labelDirection=-r.labelDirection);var c=e.rotate;return null==c&&(c=t.get(["axisLabel","rotate"])),r.labelRotation="top"===o?-c:c,r.z2=1,r}var xm=["axisLine","axisTickLabel","axisName"],bm=["splitArea","splitLine"],wm=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n.axisPointerClass="SingleAxisPointer",n}return(0,Bt.C6)(e,t),e.prototype.render=function(e,n,i,r){var o=this.group;o.removeAll();var a=this._axisGroup;this._axisGroup=new jt.A;var s=_m(e),l=new Yi(e,s);_.each(xm,l.add,l),o.add(this._axisGroup),o.add(l.getGroup()),_.each(bm,(function(t){e.get([t,"show"])&&Sm[t](this,this.group,this._axisGroup,e)}),this),qt.groupTransition(a,this._axisGroup,e),t.prototype.render.call(this,e,n,i,r)},e.prototype.remove=function(){rr(this)},e.type="singleAxis",e}(er),Sm={splitLine:function(t,e,n,i){var r=i.axis;if(!r.scale.isBlank()){var o=i.getModel("splitLine"),a=o.getModel("lineStyle"),s=a.get("color");s=s instanceof Array?s:[s];for(var l=a.get("width"),h=i.coordinateSystem.getRect(),c=r.isHorizontal(),u=[],d=0,p=r.getTicksCoords({tickModel:o}),f=[],g=[],m=0;m<p.length;++m){var v=r.toGlobalCoord(p[m].coord);c?(f[0]=v,f[1]=h.y,g[0]=v,g[1]=h.y+h.height):(f[0]=h.x,f[1]=v,g[0]=h.x+h.width,g[1]=v);var y=new zi.A({shape:{x1:f[0],y1:f[1],x2:g[0],y2:g[1]},silent:!0});qt.subPixelOptimizeLine(y.shape,l);var x=d++%s.length;u[x]=u[x]||[],u[x].push(y)}var b=a.getLineStyle(["color"]);for(m=0;m<u.length;++m)e.add(qt.mergePath(u[m],{style:_.defaults({stroke:s[m%s.length]},b),silent:!0}))}},splitArea:function(t,e,n,i){ir(t,n,i,i)}};const Tm=wm;var Mm=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return(0,Bt.C6)(e,t),e.prototype.getCoordSysModel=function(){return this},e.type="singleAxis",e.layoutMode="box",e.defaultOption={left:"5%",top:"5%",right:"5%",bottom:"5%",type:"value",position:"bottom",orient:"horizontal",axisLine:{show:!0,lineStyle:{width:1,type:"solid"}},tooltip:{show:!0},axisTick:{show:!0,length:6,lineStyle:{width:1}},axisLabel:{show:!0,interval:"auto"},splitLine:{show:!0,lineStyle:{type:"dashed",opacity:.2}}},e}(oi.A);(0,_.mixin)(Mm,si.L.prototype);const Am=Mm;var Cm=function(t){function e(e,n,i,r,o){var a=t.call(this,e,n,i)||this;return a.type=r||"value",a.position=o||"bottom",a}return(0,Bt.C6)(e,t),e.prototype.isHorizontal=function(){var t=this.position;return"top"===t||"bottom"===t},e.prototype.pointToData=function(t,e){return this.coordinateSystem.pointToData(t)[0]},e}(Ti.A);const Im=Cm;var Em=["single"];function km(t){var e=t.seriesModel,n=t.singleAxisModel;return n&&n.coordinateSystem||e&&e.coordinateSystem}const Lm=function(){function t(t,e,n){this.type="single",this.dimension="single",this.dimensions=Em,this.axisPointerEnabled=!0,this.model=t,this._init(t,e,n)}return t.prototype._init=function(t,e,n){var i=this.dimension,r=new Im(i,vi.f$(t),[0,0],t.get("type"),t.get("position")),o="category"===r.type;r.onBand=o&&t.get("boundaryGap"),r.inverse=t.get("inverse"),r.orient=t.get("orient"),t.axis=r,r.model=t,r.coordinateSystem=this,this._axis=r},t.prototype.update=function(t,e){t.eachSeries((function(t){if(t.coordinateSystem===this){var e=t.getData();(0,_.each)(e.mapDimensionsAll(this.dimension),(function(t){this._axis.scale.unionExtentFromData(e,t)}),this),vi.af(this._axis.scale,this._axis.model)}}),this)},t.prototype.resize=function(t,e){this._rect=(0,Mn.dV)({left:t.get("left"),top:t.get("top"),right:t.get("right"),bottom:t.get("bottom"),width:t.get("width"),height:t.get("height")},{width:e.getWidth(),height:e.getHeight()}),this._adjustAxis()},t.prototype.getRect=function(){return this._rect},t.prototype._adjustAxis=function(){var t=this._rect,e=this._axis,n=e.isHorizontal(),i=n?[0,t.width]:[0,t.height],r=e.inverse?1:0;e.setExtent(i[r],i[1-r]),this._updateAxisTransform(e,n?t.x:t.y)},t.prototype._updateAxisTransform=function(t,e){var n=t.getExtent(),i=n[0]+n[1],r=t.isHorizontal();t.toGlobalCoord=r?function(t){return t+e}:function(t){return i-t+e},t.toLocalCoord=r?function(t){return t-e}:function(t){return i-t+e}},t.prototype.getAxis=function(){return this._axis},t.prototype.getBaseAxis=function(){return this._axis},t.prototype.getAxes=function(){return[this._axis]},t.prototype.getTooltipAxes=function(){return{baseAxes:[this.getAxis()],otherAxes:[]}},t.prototype.containPoint=function(t){var e=this.getRect(),n=this.getAxis();return"horizontal"===n.orient?n.contain(n.toLocalCoord(t[0]))&&t[1]>=e.y&&t[1]<=e.y+e.height:n.contain(n.toLocalCoord(t[1]))&&t[0]>=e.y&&t[0]<=e.y+e.height},t.prototype.pointToData=function(t){var e=this.getAxis();return[e.coordToData(e.toLocalCoord(t["horizontal"===e.orient?0:1]))]},t.prototype.dataToPoint=function(t){var e=this.getAxis(),n=this.getRect(),i=[],r="horizontal"===e.orient?0:1;return t instanceof Array&&(t=t[0]),i[r]=e.toGlobalCoord(e.dataToCoord(+t)),i[1-r]=0===r?n.y+n.height/2:n.x+n.width/2,i},t.prototype.convertToPixel=function(t,e,n){return km(e)===this?this.dataToPoint(n):null},t.prototype.convertFromPixel=function(t,e,n){return km(e)===this?this.pointToData(n):null},t}();const Dm={create:function(t,e){var n=[];return t.eachComponent("singleAxis",(function(i,r){var o=new Lm(i,t,e);o.name="single_"+r,o.resize(i,e),i.coordinateSystem=o,n.push(o)})),t.eachSeries((function(t){if("singleAxis"===t.get("coordinateSystem")){var e=t.getReferringComponents("singleAxis",ce.US).models[0];t.coordinateSystem=e&&e.coordinateSystem}})),n},dimensions:Em};var Pm=["x","y"],Rm=["width","height"],Om=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return(0,Bt.C6)(e,t),e.prototype.makeElOption=function(t,e,n,i,r){var o=n.axis,a=o.coordinateSystem,s=Bm(a,1-Fm(o)),l=a.dataToPoint(e)[0],h=i.get("type");if(h&&"none"!==h){var c=ig(i),u=Nm[h](o,l,s);u.style=c,t.graphicKey=u.type,t.pointer=u}sg(e,t,_m(n),n,i,r)},e.prototype.getHandleTransform=function(t,e,n){var i=_m(e,{labelInside:!1});i.labelMargin=n.get(["handle","margin"]);var r=ag(e.axis,t,i);return{x:r[0],y:r[1],rotation:i.rotation+(i.labelDirection<0?Math.PI:0)}},e.prototype.updateHandleTransform=function(t,e,n,i){var r=n.axis,o=r.coordinateSystem,a=Fm(r),s=Bm(o,a),l=[t.x,t.y];l[a]+=e[a],l[a]=Math.min(s[1],l[a]),l[a]=Math.max(s[0],l[a]);var h=Bm(o,1-a),c=(h[1]+h[0])/2,u=[c,c];return u[a]=l[a],{x:l[0],y:l[1],rotation:t.rotation,cursorPoint:u,tooltipOption:{verticalAlign:"middle"}}},e}(ng),Nm={line:function(t,e,n){return{type:"Line",subPixelOptimize:!0,shape:lg([e,n[0]],[e,n[1]],Fm(t))}},shadow:function(t,e,n){var i=t.getBandWidth(),r=n[1]-n[0];return{type:"Rect",shape:hg([e-i/2,n[0]],[i,r],Fm(t))}}};function Fm(t){return t.isHorizontal()?0:1}function Bm(t,e){var n=t.getRect();return[n[Pm[e]],n[Pm[e]]+n[Rm[e]]]}const zm=Om;var Gm=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return(0,Bt.C6)(e,t),e.type="single",e}(ri.A);function Vm(t,e){var n,i=t.cellSize;1===(n=_.isArray(i)?i:t.cellSize=[i,i]).length&&(n[1]=n[0]);var r=_.map([0,1],(function(t){return(0,Mn.Qf)(e,t)&&(n[t]="auto"),null!=n[t]&&"auto"!==n[t]}));(0,Mn.YA)(t,e,{type:"box",ignoreSize:r})}const jm=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return(0,Bt.C6)(e,t),e.prototype.init=function(e,n,i){var r=(0,Mn.vs)(e);t.prototype.init.apply(this,arguments),Vm(e,r)},e.prototype.mergeOption=function(e){t.prototype.mergeOption.apply(this,arguments),Vm(this.option,e)},e.prototype.getCellSize=function(){return this.option.cellSize},e.type="calendar",e.defaultOption={z:2,left:80,top:60,cellSize:20,orient:"horizontal",splitLine:{show:!0,lineStyle:{color:"#000",width:1,type:"solid"}},itemStyle:{color:"#fff",borderWidth:1,borderColor:"#ccc"},dayLabel:{show:!0,firstDay:0,position:"start",margin:"50%",color:"#000"},monthLabel:{show:!0,position:"start",margin:5,align:"center",formatter:null,color:"#000"},yearLabel:{show:!0,position:null,margin:30,formatter:null,color:"#ccc",fontFamily:"sans-serif",fontWeight:"bolder",fontSize:20}},e}(oi.A);var Hm=n(6650),Wm=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return(0,Bt.C6)(e,t),e.prototype.render=function(t,e,n){var i=this.group;i.removeAll();var r=t.coordinateSystem,o=r.getRangeInfo(),a=r.getOrient(),s=e.getLocaleModel();this._renderDayRect(t,o,i),this._renderLines(t,o,a,i),this._renderYearText(t,o,a,i),this._renderMonthText(t,s,a,i),this._renderWeekText(t,s,o,a,i)},e.prototype._renderDayRect=function(t,e,n){for(var i=t.coordinateSystem,r=t.getModel("itemStyle").getItemStyle(),o=i.getCellWidth(),a=i.getCellHeight(),s=e.start.time;s<=e.end.time;s=i.getNextNDay(s,1).time){var l=i.dataToRect([s],!1).tl,h=new be.A({shape:{x:l[0],y:l[1],width:o,height:a},cursor:"default",style:r});n.add(h)}},e.prototype._renderLines=function(t,e,n,i){var r=this,o=t.coordinateSystem,a=t.getModel(["splitLine","lineStyle"]).getLineStyle(),s=t.get(["splitLine","show"]),l=a.lineWidth;this._tlpoints=[],this._blpoints=[],this._firstDayOfMonth=[],this._firstDayPoints=[];for(var h=e.start,c=0;h.time<=e.end.time;c++){d(h.formatedDate),0===c&&(h=o.getDateInfo(e.start.y+"-"+e.start.m));var u=h.date;u.setMonth(u.getMonth()+1),h=o.getDateInfo(u)}function d(e){r._firstDayOfMonth.push(o.getDateInfo(e)),r._firstDayPoints.push(o.dataToRect([e],!1).tl);var l=r._getLinePointsOfOneWeek(t,e,n);r._tlpoints.push(l[0]),r._blpoints.push(l[l.length-1]),s&&r._drawSplitline(l,a,i)}d(o.getNextNDay(e.end.time,1).formatedDate),s&&this._drawSplitline(r._getEdgesPoints(r._tlpoints,l,n),a,i),s&&this._drawSplitline(r._getEdgesPoints(r._blpoints,l,n),a,i)},e.prototype._getEdgesPoints=function(t,e,n){var i=[t[0].slice(),t[t.length-1].slice()],r="horizontal"===n?0:1;return i[0][r]=i[0][r]-e/2,i[1][r]=i[1][r]+e/2,i},e.prototype._drawSplitline=function(t,e,n){var i=new Pn.A({z2:20,shape:{points:t},style:e});n.add(i)},e.prototype._getLinePointsOfOneWeek=function(t,e,n){for(var i=t.coordinateSystem,r=i.getDateInfo(e),o=[],a=0;a<7;a++){var s=i.getNextNDay(r.time,a),l=i.dataToRect([s.time],!1);o[2*s.day]=l.tl,o[2*s.day+1]=l["horizontal"===n?"bl":"tr"]}return o},e.prototype._formatterLabel=function(t,e){return(0,_.isString)(t)&&t?(0,Ie.io)(t,e):(0,_.isFunction)(t)?t(e):e.nameMap},e.prototype._yearTextPositionControl=function(t,e,n,i,r){var o=e[0],a=e[1],s=["center","bottom"];"bottom"===i?(a+=r,s=["center","top"]):"left"===i?o-=r:"right"===i?(o+=r,s=["center","top"]):a-=r;var l=0;return"left"!==i&&"right"!==i||(l=Math.PI/2),{rotation:l,x:o,y:a,style:{align:s[0],verticalAlign:s[1]}}},e.prototype._renderYearText=function(t,e,n,i){var r=t.getModel("yearLabel");if(r.get("show")){var o=r.get("margin"),a=r.get("position");a||(a="horizontal"!==n?"top":"left");var s=[this._tlpoints[this._tlpoints.length-1],this._blpoints[0]],l=(s[0][0]+s[1][0])/2,h=(s[0][1]+s[1][1])/2,c="horizontal"===n?0:1,u={top:[l,s[c][1]],bottom:[l,s[1-c][1]],left:[s[1-c][0],h],right:[s[c][0],h]},d=e.start.y;+e.end.y>+e.start.y&&(d=d+"-"+e.end.y);var p=r.get("formatter"),f={start:e.start.y,end:e.end.y,nameMap:d},g=this._formatterLabel(p,f),m=new Z.Ay({z2:30,style:(0,Jt.VB)(r,{text:g})});m.attr(this._yearTextPositionControl(m,u[a],n,a,o)),i.add(m)}},e.prototype._monthTextPositionControl=function(t,e,n,i,r){var o="left",a="top",s=t[0],l=t[1];return"horizontal"===n?(l+=r,e&&(o="center"),"start"===i&&(a="bottom")):(s+=r,e&&(a="middle"),"start"===i&&(o="right")),{x:s,y:l,align:o,verticalAlign:a}},e.prototype._renderMonthText=function(t,e,n,i){var r=t.getModel("monthLabel");if(r.get("show")){var o=r.get("nameMap"),a=r.get("margin"),s=r.get("position"),l=r.get("align"),h=[this._tlpoints,this._blpoints];o&&!(0,_.isString)(o)||(o&&(e=(0,Hm.A4)(o)||e),o=e.get(["time","monthAbbr"])||[]);var c="start"===s?0:1,u="horizontal"===n?0:1;a="start"===s?-a:a;for(var d="center"===l,p=0;p<h[c].length-1;p++){var f=h[c][p].slice(),g=this._firstDayOfMonth[p];if(d){var m=this._firstDayPoints[p];f[u]=(m[u]+h[0][p+1][u])/2}var v=r.get("formatter"),y=o[+g.m-1],x={yyyy:g.y,yy:(g.y+"").slice(2),MM:g.m,M:+g.m,nameMap:y},b=this._formatterLabel(v,x),w=new Z.Ay({z2:30,style:(0,_.extend)((0,Jt.VB)(r,{text:b}),this._monthTextPositionControl(f,d,n,s,a))});i.add(w)}}},e.prototype._weekTextPositionControl=function(t,e,n,i,r){var o="center",a="middle",s=t[0],l=t[1],h="start"===n;return"horizontal"===e?(s=s+i+(h?1:-1)*r[0]/2,o=h?"right":"left"):(l=l+i+(h?1:-1)*r[1]/2,a=h?"bottom":"top"),{x:s,y:l,align:o,verticalAlign:a}},e.prototype._renderWeekText=function(t,e,n,i,r){var o=t.getModel("dayLabel");if(o.get("show")){var a=t.coordinateSystem,s=o.get("position"),l=o.get("nameMap"),h=o.get("margin"),c=a.getFirstDayOfWeek();if(!l||(0,_.isString)(l))l&&(e=(0,Hm.A4)(l)||e),l=e.get(["time","dayOfWeekShort"])||(0,_.map)(e.get(["time","dayOfWeekAbbr"]),(function(t){return t[0]}));var u=a.getNextNDay(n.end.time,7-n.lweek).time,d=[a.getCellWidth(),a.getCellHeight()];h=(0,Se.lo)(h,Math.min(d[1],d[0])),"start"===s&&(u=a.getNextNDay(n.start.time,-(7+n.fweek)).time,h=-h);for(var p=0;p<7;p++){var f,g=a.getNextNDay(u,p),m=a.dataToRect([g.time],!1).center;f=Math.abs((p+c)%7);var v=new Z.Ay({z2:30,style:(0,_.extend)((0,Jt.VB)(o,{text:l[f]}),this._weekTextPositionControl(m,i,s,h,d))});r.add(v)}}},e.type="calendar",e}(ri.A);const Um=Wm;var qm=864e5;function Xm(t){var e=t.calendarModel,n=t.seriesModel;return e?e.coordinateSystem:n?n.coordinateSystem:null}const Ym=function(){function t(e,n,i){this.type="calendar",this.dimensions=t.dimensions,this.getDimensionsInfo=t.getDimensionsInfo,this._model=e}return t.getDimensionsInfo=function(){return[{name:"time",type:"time"},"value"]},t.prototype.getRangeInfo=function(){return this._rangeInfo},t.prototype.getModel=function(){return this._model},t.prototype.getRect=function(){return this._rect},t.prototype.getCellWidth=function(){return this._sw},t.prototype.getCellHeight=function(){return this._sh},t.prototype.getOrient=function(){return this._orient},t.prototype.getFirstDayOfWeek=function(){return this._firstDayOfWeek},t.prototype.getDateInfo=function(t){var e=(t=Se._U(t)).getFullYear(),n=t.getMonth()+1,i=n<10?"0"+n:""+n,r=t.getDate(),o=r<10?"0"+r:""+r,a=t.getDay();return{y:e+"",m:i,d:o,day:a=Math.abs((a+7-this.getFirstDayOfWeek())%7),time:t.getTime(),formatedDate:e+"-"+i+"-"+o,date:t}},t.prototype.getNextNDay=function(t,e){return 0===(e=e||0)||(t=new Date(this.getDateInfo(t).time)).setDate(t.getDate()+e),this.getDateInfo(t)},t.prototype.update=function(t,e){this._firstDayOfWeek=+this._model.getModel("dayLabel").get("firstDay"),this._orient=this._model.get("orient"),this._lineWidth=this._model.getModel("itemStyle").getItemStyle().lineWidth||0,this._rangeInfo=this._getRangeInfo(this._initRangeOption());var n=this._rangeInfo.weeks||1,i=["width","height"],r=this._model.getCellSize().slice(),o=this._model.getBoxLayoutParams(),a="horizontal"===this._orient?[n,7]:[7,n];_.each([0,1],(function(t){h(r,t)&&(o[i[t]]=r[t]*a[t])}));var s={width:e.getWidth(),height:e.getHeight()},l=this._rect=Mn.dV(o,s);function h(t,e){return null!=t[e]&&"auto"!==t[e]}_.each([0,1],(function(t){h(r,t)||(r[t]=l[i[t]]/a[t])})),this._sw=r[0],this._sh=r[1]},t.prototype.dataToPoint=function(t,e){_.isArray(t)&&(t=t[0]),null==e&&(e=!0);var n=this.getDateInfo(t),i=this._rangeInfo,r=n.formatedDate;if(e&&!(n.time>=i.start.time&&n.time<i.end.time+qm))return[NaN,NaN];var o=n.day,a=this._getRangeInfo([i.start.time,r]).nthWeek;return"vertical"===this._orient?[this._rect.x+o*this._sw+this._sw/2,this._rect.y+a*this._sh+this._sh/2]:[this._rect.x+a*this._sw+this._sw/2,this._rect.y+o*this._sh+this._sh/2]},t.prototype.pointToData=function(t){var e=this.pointToDate(t);return e&&e.time},t.prototype.dataToRect=function(t,e){var n=this.dataToPoint(t,e);return{contentShape:{x:n[0]-(this._sw-this._lineWidth)/2,y:n[1]-(this._sh-this._lineWidth)/2,width:this._sw-this._lineWidth,height:this._sh-this._lineWidth},center:n,tl:[n[0]-this._sw/2,n[1]-this._sh/2],tr:[n[0]+this._sw/2,n[1]-this._sh/2],br:[n[0]+this._sw/2,n[1]+this._sh/2],bl:[n[0]-this._sw/2,n[1]+this._sh/2]}},t.prototype.pointToDate=function(t){var e=Math.floor((t[0]-this._rect.x)/this._sw)+1,n=Math.floor((t[1]-this._rect.y)/this._sh)+1,i=this._rangeInfo.range;return"vertical"===this._orient?this._getDateByWeeksAndDay(n,e-1,i):this._getDateByWeeksAndDay(e,n-1,i)},t.prototype.convertToPixel=function(t,e,n){var i=Xm(e);return i===this?i.dataToPoint(n):null},t.prototype.convertFromPixel=function(t,e,n){var i=Xm(e);return i===this?i.pointToData(n):null},t.prototype.containPoint=function(t){return console.warn("Not implemented."),!1},t.prototype._initRangeOption=function(){var t,e=this._model.get("range");if(_.isArray(e)&&1===e.length&&(e=e[0]),_.isArray(e))t=e;else{var n=e.toString();if(/^\d{4}$/.test(n)&&(t=[n+"-01-01",n+"-12-31"]),/^\d{4}[\/|-]\d{1,2}$/.test(n)){var i=this.getDateInfo(n),r=i.date;r.setMonth(r.getMonth()+1);var o=this.getNextNDay(r,-1);t=[i.formatedDate,o.formatedDate]}/^\d{4}[\/|-]\d{1,2}[\/|-]\d{1,2}$/.test(n)&&(t=[n,n])}if(!t)return e;var a=this._getRangeInfo(t);return a.start.time>a.end.time&&t.reverse(),t},t.prototype._getRangeInfo=function(t){var e,n=[this.getDateInfo(t[0]),this.getDateInfo(t[1])];n[0].time>n[1].time&&(e=!0,n.reverse());var i=Math.floor(n[1].time/qm)-Math.floor(n[0].time/qm)+1,r=new Date(n[0].time),o=r.getDate(),a=n[1].date.getDate();r.setDate(o+i-1);var s=r.getDate();if(s!==a)for(var l=r.getTime()-n[1].time>0?1:-1;(s=r.getDate())!==a&&(r.getTime()-n[1].time)*l>0;)i-=l,r.setDate(s-l);var h=Math.floor((i+n[0].day+6)/7),c=e?1-h:h-1;return e&&n.reverse(),{range:[n[0].formatedDate,n[1].formatedDate],start:n[0],end:n[1],allDay:i,weeks:h,nthWeek:c,fweek:n[0].day,lweek:n[1].day}},t.prototype._getDateByWeeksAndDay=function(t,e,n){var i=this._getRangeInfo(n);if(t>i.weeks||0===t&&e<i.fweek||t===i.weeks&&e>i.lweek)return null;var r=7*(t-1)-i.fweek+e,o=new Date(i.start.time);return o.setDate(+i.start.d+r),this.getDateInfo(o)},t.create=function(e,n){var i=[];return e.eachComponent("calendar",(function(r){var o=new t(r,e,n);i.push(o),r.coordinateSystem=o})),e.eachSeries((function(t){"calendar"===t.get("coordinateSystem")&&(t.coordinateSystem=i[t.get("calendarIndex")||0])})),i},t.dimensions=["time","value"],t}();function Zm(t,e){var n;return _.each(e,(function(e){null!=t[e]&&"auto"!==t[e]&&(n=!0)})),n}var $m=["transition","enterFrom","leaveTo"],Km=$m.concat(["enterAnimation","updateAnimation","leaveAnimation"]);function Jm(t,e,n){if(n&&(!t[n]&&e[n]&&(t[n]={}),t=t[n],e=e[n]),t&&e)for(var i=n?$m:Km,r=0;r<i.length;r++){var o=i[r];null==t[o]&&null!=e[o]&&(t[o]=e[o])}}var Qm=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n.preventAutoZ=!0,n}return(0,Bt.C6)(e,t),e.prototype.mergeOption=function(e,n){var i=this.option.elements;this.option.elements=null,t.prototype.mergeOption.call(this,e,n),this.option.elements=i},e.prototype.optionUpdated=function(t,e){var n=this.option,i=(e?n:t).elements,r=n.elements=e?[]:n.elements,o=[];this._flatten(i,o,null);var a=ce.O2(r,o,"normalMerge"),s=this._elOptionsToUpdate=[];_.each(a,(function(t,e){var n=t.newOption;n&&(s.push(n),function(t,e){var n=t.existing;if(e.id=t.keyInfo.id,!e.type&&n&&(e.type=n.type),null==e.parentId){var i=e.parentOption;i?e.parentId=i.id:n&&(e.parentId=n.parentId)}e.parentOption=null}(t,n),function(t,e,n){var i=_.extend({},n),r=t[e],o=n.$action||"merge";"merge"===o?r?(_.merge(r,i,!0),(0,Mn.YA)(r,i,{ignoreSize:!0}),(0,Mn.Ir)(n,r),Jm(n,r),Jm(n,r,"shape"),Jm(n,r,"style"),Jm(n,r,"extra"),n.clipPath=r.clipPath):t[e]=i:"replace"===o?t[e]=i:"remove"===o&&r&&(t[e]=null)}(r,e,n),function(t,e){if(t&&(t.hv=e.hv=[Zm(e,["left","right"]),Zm(e,["top","bottom"])],"group"===t.type)){var n=t,i=e;null==n.width&&(n.width=i.width=0),null==n.height&&(n.height=i.height=0)}}(r[e],n))}),this),n.elements=_.filter(r,(function(t){return t&&delete t.$action,null!=t}))},e.prototype._flatten=function(t,e,n){_.each(t,(function(t){if(t){n&&(t.parentOption=n),e.push(t);var i=t.children;i&&i.length&&this._flatten(i,e,t),delete t.children}}),this)},e.prototype.useElOptionsToUpdate=function(){var t=this._elOptionsToUpdate;return this._elOptionsToUpdate=null,t},e.type="graphic",e.defaultOption={elements:[]},e}(oi.A),tv={path:null,compoundPath:null,group:jt.A,image:l.Ay,text:Z.Ay},ev=ce.$r(),nv=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return(0,Bt.C6)(e,t),e.prototype.init=function(){this._elMap=_.createHashMap()},e.prototype.render=function(t,e,n){t!==this._lastGraphicModel&&this._clear(),this._lastGraphicModel=t,this._updateElements(t),this._relocate(t,n)},e.prototype._updateElements=function(t){var e=t.useElOptionsToUpdate();if(e){var n=this._elMap,i=this.group,r=t.get("z"),o=t.get("zlevel");_.each(e,(function(e){var a=ce.vS(e.id,null),s=null!=a?n.get(a):null,l=ce.vS(e.parentId,null),h=null!=l?n.get(l):i,c=e.type,u=e.style;"text"===c&&u&&e.hv&&e.hv[1]&&(u.textVerticalAlign=u.textBaseline=u.verticalAlign=u.align=null);var d=e.textContent,p=e.textConfig;if(u&&Up(u,c,!!p,!!d)){var f=qp(u,c,!0);!p&&f.textConfig&&(p=e.textConfig=f.textConfig),!d&&f.textContent&&(d=f.textContent)}var g=function(t){return t=_.extend({},t),_.each(["id","parentId","$action","hv","bounding","textContent","clipPath"].concat(Mn.Tj),(function(e){delete t[e]})),t}(e);var m=e.$action||"merge",v="merge"===m,y="replace"===m;if(v){var x=s;(C=!s)?x=rv(a,h,e.type,n):(x&&(ev(x).isNew=!1),gf(x)),x&&(nf(x,g,t,{isInit:C}),av(x,e,r,o))}else if(y){ov(s,e,n,t);var b=rv(a,h,e.type,n);b&&(nf(b,g,t,{isInit:!0}),av(b,e,r,o))}else"remove"===m&&(rf(s,e),ov(s,e,n,t));var w=n.get(a);if(w&&d)if(v){var S=w.getTextContent();S?S.attr(d):w.setTextContent(new Z.Ay(d))}else y&&w.setTextContent(new Z.Ay(d));if(w){var T=e.clipPath;if(T){var M=T.type,A=void 0,C=!1;if(v){var I=w.getClipPath();A=(C=!I||ev(I).type!==M)?iv(M):I}else y&&(C=!0,A=iv(M));w.setClipPath(A),nf(A,T,t,{isInit:C}),mf(A,T.keyframeAnimation,t)}var E=ev(w);w.setTextConfig(p),E.option=e,function(t,e,n){var i=(0,Xt.z)(t).eventData;t.silent||t.ignore||i||(i=(0,Xt.z)(t).eventData={componentType:"graphic",componentIndex:e.componentIndex,name:t.name});i&&(i.info=n.info)}(w,t,e),qt.setTooltipConfig({el:w,componentModel:t,itemName:w.name,itemTooltipOption:e.tooltip}),mf(w,e.keyframeAnimation,t)}}))}},e.prototype._relocate=function(t,e){for(var n=t.option.elements,i=this.group,r=this._elMap,o=e.getWidth(),a=e.getHeight(),s=["x","y"],l=0;l<n.length;l++){var h=n[l];if((f=null!=(p=ce.vS(h.id,null))?r.get(p):null)&&f.isGroup){var c=(g=f.parent)===i,u=ev(f),d=ev(g);u.width=(0,Se.lo)(u.option.width,c?o:d.width)||0,u.height=(0,Se.lo)(u.option.height,c?a:d.height)||0}}for(l=n.length-1;l>=0;l--){var p,f;h=n[l];if(f=null!=(p=ce.vS(h.id,null))?r.get(p):null){var g=f.parent,m=(d=ev(g),g===i?{width:o,height:a}:{width:d.width,height:d.height}),v={},y=Mn.m$(f,h,m,null,{hv:h.hv,boundingMode:h.bounding},v);if(!ev(f).isNew&&y){for(var x=h.transition,b={},w=0;w<s.length;w++){var S=s[w],T=v[S];x&&(af(x)||_.indexOf(x,S)>=0)?b[S]=T:f[S]=T}(0,Ut.oi)(f,b,t,0)}else f.attr(v)}}},e.prototype._clear=function(){var t=this,e=this._elMap;e.each((function(n){ov(n,ev(n).option,e,t._lastGraphicModel)})),this._elMap=_.createHashMap()},e.prototype.dispose=function(){this._clear()},e.type="graphic",e}(ri.A);function iv(t){var e=new(_.hasOwn(tv,t)?tv[t]:qt.getShapeClass(t))({});return ev(e).type=t,e}function rv(t,e,n,i){var r=iv(n);return e.add(r),i.set(t,r),ev(r).id=t,ev(r).isNew=!0,r}function ov(t,e,n,i){t&&t.parent&&("group"===t.type&&t.traverse((function(t){ov(t,e,n,i)})),of(t,e,i),n.removeKey(ev(t).id))}function av(t,e,n,i){t.isGroup||_.each([["cursor",Vo.Ay.prototype.cursor],["zlevel",i||0],["z",n||0],["z2",0]],(function(n){var i=n[0];_.hasOwn(e,i)?t[i]=_.retrieve2(e[i],n[1]):null==t[i]&&(t[i]=n[1])})),_.each(_.keys(e),(function(n){if(0===n.indexOf("on")){var i=e[n];t[n]=_.isFunction(i)?i:null}})),_.hasOwn(e,"draggable")&&(t.draggable=e.draggable),null!=e.name&&(t.name=e.name),null!=e.id&&(t.id=e.id)}var sv=["x","y","radius","angle","single"],lv=["cartesian2d","polar","singleAxis"];function hv(t){return t+"Axis"}function cv(t,e){var n,i=(0,_.createHashMap)(),r=[],o=(0,_.createHashMap)();t.eachComponent({mainType:"dataZoom",query:e},(function(t){o.get(t.uid)||s(t)}));do{n=!1,t.eachComponent("dataZoom",a)}while(n);function a(t){!o.get(t.uid)&&function(t){var e=!1;return t.eachTargetAxis((function(t,n){var r=i.get(t);r&&r[n]&&(e=!0)})),e}(t)&&(s(t),n=!0)}function s(t){o.set(t.uid,!0),r.push(t),t.eachTargetAxis((function(t,e){(i.get(t)||i.set(t,[]))[e]=!0}))}return r}function uv(t){var e=t.ecModel,n={infoList:[],infoMap:(0,_.createHashMap)()};return t.eachTargetAxis((function(t,i){var r=e.getComponent(hv(t),i);if(r){var o=r.getCoordSysModel();if(o){var a=o.uid,s=n.infoMap.get(a);s||(s={model:o,axisModels:[]},n.infoList.push(s),n.infoMap.set(a,s)),s.axisModels.push(r)}}})),n}var dv=function(){function t(){this.indexList=[],this.indexMap=[]}return t.prototype.add=function(t){this.indexMap[t]||(this.indexList.push(t),this.indexMap[t]=!0)},t}(),pv=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n._autoThrottle=!0,n._noTarget=!0,n._rangePropMode=["percent","percent"],n}return(0,Bt.C6)(e,t),e.prototype.init=function(t,e,n){var i=fv(t);this.settledOption=i,this.mergeDefaultAndTheme(t,n),this._doInit(i)},e.prototype.mergeOption=function(t){var e=fv(t);(0,_.merge)(this.option,t,!0),(0,_.merge)(this.settledOption,e,!0),this._doInit(e)},e.prototype._doInit=function(t){var e=this.option;this._setDefaultThrottle(t),this._updateRangeUse(t);var n=this.settledOption;(0,_.each)([["start","startValue"],["end","endValue"]],(function(t,i){"value"===this._rangePropMode[i]&&(e[t[0]]=n[t[0]]=null)}),this),this._resetTarget()},e.prototype._resetTarget=function(){var t=this.get("orient",!0),e=this._targetAxisInfoMap=(0,_.createHashMap)();this._fillSpecifiedTargetAxis(e)?this._orient=t||this._makeAutoOrientByTargetAxis():(this._orient=t||"horizontal",this._fillAutoTargetAxisByOrient(e,this._orient)),this._noTarget=!0,e.each((function(t){t.indexList.length&&(this._noTarget=!1)}),this)},e.prototype._fillSpecifiedTargetAxis=function(t){var e=!1;return(0,_.each)(sv,(function(n){var i=this.getReferringComponents(hv(n),ce.UW);if(i.specified){e=!0;var r=new dv;(0,_.each)(i.models,(function(t){r.add(t.componentIndex)})),t.set(n,r)}}),this),e},e.prototype._fillAutoTargetAxisByOrient=function(t,e){var n=this.ecModel,i=!0;if(i){var r="vertical"===e?"y":"x";o(n.findComponents({mainType:r+"Axis"}),r)}i&&o(n.findComponents({mainType:"singleAxis",filter:function(t){return t.get("orient",!0)===e}}),"single");function o(e,n){var r=e[0];if(r){var o=new dv;if(o.add(r.componentIndex),t.set(n,o),i=!1,"x"===n||"y"===n){var a=r.getReferringComponents("grid",ce.US).models[0];a&&(0,_.each)(e,(function(t){r.componentIndex!==t.componentIndex&&a===t.getReferringComponents("grid",ce.US).models[0]&&o.add(t.componentIndex)}))}}}i&&(0,_.each)(sv,(function(e){if(i){var r=n.findComponents({mainType:hv(e),filter:function(t){return"category"===t.get("type",!0)}});if(r[0]){var o=new dv;o.add(r[0].componentIndex),t.set(e,o),i=!1}}}),this)},e.prototype._makeAutoOrientByTargetAxis=function(){var t;return this.eachTargetAxis((function(e){!t&&(t=e)}),this),"y"===t?"vertical":"horizontal"},e.prototype._setDefaultThrottle=function(t){if(t.hasOwnProperty("throttle")&&(this._autoThrottle=!1),this._autoThrottle){var e=this.ecModel.option;this.option.throttle=e.animation&&e.animationDurationUpdate>0?100:20}},e.prototype._updateRangeUse=function(t){var e=this._rangePropMode,n=this.get("rangeMode");(0,_.each)([["start","startValue"],["end","endValue"]],(function(i,r){var o=null!=t[i[0]],a=null!=t[i[1]];o&&!a?e[r]="percent":!o&&a?e[r]="value":n?e[r]=n[r]:o&&(e[r]="percent")}))},e.prototype.noTarget=function(){return this._noTarget},e.prototype.getFirstTargetAxisModel=function(){var t;return this.eachTargetAxis((function(e,n){null==t&&(t=this.ecModel.getComponent(hv(e),n))}),this),t},e.prototype.eachTargetAxis=function(t,e){this._targetAxisInfoMap.each((function(n,i){(0,_.each)(n.indexList,(function(n){t.call(e,i,n)}))}))},e.prototype.getAxisProxy=function(t,e){var n=this.getAxisModel(t,e);if(n)return n.__dzAxisProxy},e.prototype.getAxisModel=function(t,e){var n=this._targetAxisInfoMap.get(t);if(n&&n.indexMap[e])return this.ecModel.getComponent(hv(t),e)},e.prototype.setRawRange=function(t){var e=this.option,n=this.settledOption;(0,_.each)([["start","startValue"],["end","endValue"]],(function(i){null==t[i[0]]&&null==t[i[1]]||(e[i[0]]=n[i[0]]=t[i[0]],e[i[1]]=n[i[1]]=t[i[1]])}),this),this._updateRangeUse(t)},e.prototype.setCalculatedRange=function(t){var e=this.option;(0,_.each)(["start","startValue","end","endValue"],(function(n){e[n]=t[n]}))},e.prototype.getPercentRange=function(){var t=this.findRepresentativeAxisProxy();if(t)return t.getDataPercentWindow()},e.prototype.getValueRange=function(t,e){if(null!=t||null!=e)return this.getAxisProxy(t,e).getDataValueWindow();var n=this.findRepresentativeAxisProxy();return n?n.getDataValueWindow():void 0},e.prototype.findRepresentativeAxisProxy=function(t){if(t)return t.__dzAxisProxy;for(var e,n=this._targetAxisInfoMap.keys(),i=0;i<n.length;i++)for(var r=n[i],o=this._targetAxisInfoMap.get(r),a=0;a<o.indexList.length;a++){var s=this.getAxisProxy(r,o.indexList[a]);if(s.hostedBy(this))return s;e||(e=s)}return e},e.prototype.getRangePropMode=function(){return this._rangePropMode.slice()},e.prototype.getOrient=function(){return this._orient},e.type="dataZoom",e.dependencies=["xAxis","yAxis","radiusAxis","angleAxis","singleAxis","series","toolbox"],e.defaultOption={z:4,filterMode:"filter",start:0,end:100},e}(oi.A);function fv(t){var e={};return(0,_.each)(["start","end","startValue","endValue","throttle"],(function(n){t.hasOwnProperty(n)&&(e[n]=t[n])})),e}const gv=pv;const mv=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return(0,Bt.C6)(e,t),e.type="dataZoom.select",e}(gv);const vv=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return(0,Bt.C6)(e,t),e.prototype.render=function(t,e,n,i){this.dataZoomModel=t,this.ecModel=e,this.api=n},e.type="dataZoom",e}(ri.A);const yv=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return(0,Bt.C6)(e,t),e.type="dataZoom.select",e}(vv);var _v=n(5389),xv=_.each,bv=Se.Y6,wv=function(){function t(t,e,n,i){this._dimName=t,this._axisIndex=e,this.ecModel=i,this._dataZoomModel=n}return t.prototype.hostedBy=function(t){return this._dataZoomModel===t},t.prototype.getDataValueWindow=function(){return this._valueWindow.slice()},t.prototype.getDataPercentWindow=function(){return this._percentWindow.slice()},t.prototype.getTargetSeriesModels=function(){var t=[];return this.ecModel.eachSeries((function(e){if(function(t){var e=t.get("coordinateSystem");return(0,_.indexOf)(lv,e)>=0}(e)){var n=hv(this._dimName),i=e.getReferringComponents(n,ce.US).models[0];i&&this._axisIndex===i.componentIndex&&t.push(e)}}),this),t},t.prototype.getAxisModel=function(){return this.ecModel.getComponent(this._dimName+"Axis",this._axisIndex)},t.prototype.getMinMaxSpan=function(){return _.clone(this._minMaxSpan)},t.prototype.calculateDataWindow=function(t){var e,n=this._dataExtent,i=this.getAxisModel().axis.scale,r=this._dataZoomModel.getRangePropMode(),o=[0,100],a=[],s=[];xv(["start","end"],(function(l,h){var c=t[l],u=t[l+"Value"];"percent"===r[h]?(null==c&&(c=o[h]),u=i.parse(Se.Cb(c,o,n))):(e=!0,u=null==u?n[h]:i.parse(u),c=Se.Cb(u,n,o)),s[h]=null==u||isNaN(u)?n[h]:u,a[h]=null==c||isNaN(c)?o[h]:c})),bv(s),bv(a);var l=this._minMaxSpan;function h(t,e,n,r,o){var a=o?"Span":"ValueSpan";Kh(0,t,n,"all",l["min"+a],l["max"+a]);for(var s=0;s<2;s++)e[s]=Se.Cb(t[s],n,r,!0),o&&(e[s]=i.parse(e[s]))}return e?h(s,a,n,o,!1):h(a,s,o,n,!0),{valueWindow:s,percentWindow:a}},t.prototype.reset=function(t){if(t===this._dataZoomModel){var e=this.getTargetSeriesModels();this._dataExtent=function(t,e,n){var i=[1/0,-1/0];xv(n,(function(t){(0,vi.PN)(i,t.getData(),e)}));var r=t.getAxisModel(),o=(0,_v.Tc)(r.axis.scale,r,i).calculate();return[o.min,o.max]}(this,this._dimName,e),this._updateMinMaxSpan();var n=this.calculateDataWindow(t.settledOption);this._valueWindow=n.valueWindow,this._percentWindow=n.percentWindow,this._setAxisModel()}},t.prototype.filterData=function(t,e){if(t===this._dataZoomModel){var n=this._dimName,i=this.getTargetSeriesModels(),r=t.get("filterMode"),o=this._valueWindow;"none"!==r&&xv(i,(function(t){var e=t.getData(),i=e.mapDimensionsAll(n);if(i.length){if("weakFilter"===r){var a=e.getStore(),s=_.map(i,(function(t){return e.getDimensionIndex(t)}),e);e.filterSelf((function(t){for(var e,n,r,l=0;l<i.length;l++){var h=a.get(s[l],t),c=!isNaN(h),u=h<o[0],d=h>o[1];if(c&&!u&&!d)return!0;c&&(r=!0),u&&(e=!0),d&&(n=!0)}return r&&e&&n}))}else xv(i,(function(n){if("empty"===r)t.setData(e=e.map(n,(function(t){return function(t){return t>=o[0]&&t<=o[1]}(t)?t:NaN})));else{var i={};i[n]=o,e.selectRange(i)}}));xv(i,(function(t){e.setApproximateExtent(o,t)}))}}))}},t.prototype._updateMinMaxSpan=function(){var t=this._minMaxSpan={},e=this._dataZoomModel,n=this._dataExtent;xv(["min","max"],(function(i){var r=e.get(i+"Span"),o=e.get(i+"ValueSpan");null!=o&&(o=this.getAxisModel().axis.scale.parse(o)),null!=o?r=Se.Cb(n[0]+o,n,[0,100],!0):null!=r&&(o=Se.Cb(r,[0,100],n,!0)-n[0]),t[i+"Span"]=r,t[i+"ValueSpan"]=o}),this)},t.prototype._setAxisModel=function(){var t=this.getAxisModel(),e=this._percentWindow,n=this._valueWindow;if(e){var i=Se.hb(n,[0,500]);i=Math.min(i,20);var r=t.axis.scale.rawExtentInfo;0!==e[0]&&r.setDeterminedMinMax("min",+n[0].toFixed(i)),100!==e[1]&&r.setDeterminedMinMax("max",+n[1].toFixed(i)),r.freeze()}},t}();const Sv=wv;const Tv={getTargetSeries:function(t){function e(e){t.eachComponent("dataZoom",(function(n){n.eachTargetAxis((function(i,r){var o=t.getComponent(hv(i),r);e(i,r,o,n)}))}))}e((function(t,e,n,i){n.__dzAxisProxy=null}));var n=[];e((function(e,i,r,o){r.__dzAxisProxy||(r.__dzAxisProxy=new Sv(e,i,o,t),n.push(r.__dzAxisProxy))}));var i=(0,_.createHashMap)();return(0,_.each)(n,(function(t){(0,_.each)(t.getTargetSeriesModels(),(function(t){i.set(t.uid,t)}))})),i},overallReset:function(t,e){t.eachComponent("dataZoom",(function(t){t.eachTargetAxis((function(e,n){t.getAxisProxy(e,n).reset(t)})),t.eachTargetAxis((function(n,i){t.getAxisProxy(n,i).filterData(t,e)}))})),t.eachComponent("dataZoom",(function(t){var e=t.findRepresentativeAxisProxy();if(e){var n=e.getDataPercentWindow(),i=e.getDataValueWindow();t.setCalculatedRange({start:n[0],end:n[1],startValue:i[0],endValue:i[1]})}}))}};var Mv=!1;function Av(t){Mv||(Mv=!0,t.registerProcessor(t.PRIORITY.PROCESSOR.FILTER,Tv),function(t){t.registerAction("dataZoom",(function(t,e){var n=cv(e,t);(0,_.each)(n,(function(e){e.setRawRange({start:t.start,end:t.end,startValue:t.startValue,endValue:t.endValue})}))}))}(t),t.registerSubTypeDefaulter("dataZoom",(function(){return"slider"})))}function Cv(t){t.registerComponentModel(mv),t.registerComponentView(yv),Av(t)}var Iv=function(){},Ev={};function kv(t,e){Ev[t]=e}function Lv(t){return Ev[t]}const Dv=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return(0,Bt.C6)(e,t),e.prototype.optionUpdated=function(){t.prototype.optionUpdated.apply(this,arguments);var e=this.ecModel;_.each(this.option.feature,(function(t,n){var i=Lv(n);i&&(i.getDefaultOption&&(i.defaultOption=i.getDefaultOption(e)),_.merge(t,i.defaultOption))}))},e.type="toolbox",e.layoutMode={type:"box",ignoreSize:!0},e.defaultOption={show:!0,z:6,orient:"horizontal",left:"right",top:"top",backgroundColor:"transparent",borderColor:"#ccc",borderRadius:0,borderWidth:0,padding:5,itemSize:15,itemGap:8,showTitle:!0,iconStyle:{borderColor:"#666",color:"none"},emphasis:{iconStyle:{borderColor:"#3E98C5"}},tooltip:{show:!1,position:"bottom"}},e}(oi.A);function Pv(t,e){var n=Ie.QX(e.get("padding")),i=e.getItemStyle(["color","opacity"]);return i.fill=e.get("backgroundColor"),t=new be.A({shape:{x:t.x-n[3],y:t.y-n[0],width:t.width+n[1]+n[3],height:t.height+n[0]+n[2],r:e.get("borderRadius")},style:i,silent:!0,z2:-1})}var Rv=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return(0,Bt.C6)(e,t),e.prototype.render=function(t,e,n,i){var r=this.group;if(r.removeAll(),t.get("show")){var o=+t.get("itemSize"),a="vertical"===t.get("orient"),s=t.get("feature")||{},l=this._features||(this._features={}),c=[];_.each(s,(function(t,e){c.push(e)})),new gs.A(this._featureNames||[],c).add(u).update(u).remove(_.curry(u,null)).execute(),this._featureNames=c,function(t,e,n){var i=e.getBoxLayoutParams(),r=e.get("padding"),o={width:n.getWidth(),height:n.getHeight()},a=(0,Mn.dV)(i,o,r);(0,Mn.aP)(e.get("orient"),t,e.get("itemGap"),a.width,a.height),(0,Mn.m$)(t,i,o,r)}(r,t,n),r.add(Pv(r.getBoundingRect(),t)),a||r.eachChild((function(t){var e=t.__title,i=t.ensureState("emphasis"),a=i.textConfig||(i.textConfig={}),s=t.getTextContent(),l=s&&s.ensureState("emphasis");if(l&&!_.isFunction(l)&&e){var c=l.style||(l.style={}),u=h.NO(e,Z.Ay.makeFont(c)),d=t.x+r.x,p=!1;t.y+r.y+o+u.height>n.getHeight()&&(a.position="top",p=!0);var f=p?-5-u.height:o+10;d+u.width/2>n.getWidth()?(a.position=["100%",f],c.align="right"):d-u.width/2<0&&(a.position=[0,f],c.align="left")}}))}function u(h,u){var d,p=c[h],f=c[u],g=s[p],m=new Gi.A(g,t,t.ecModel);if(i&&null!=i.newTitle&&i.featureName===p&&(g.title=i.newTitle),p&&!f){if(function(t){return 0===t.indexOf("my")}(p))d={onclick:m.option.onclick,featureName:p};else{var v=Lv(p);if(!v)return;d=new v}l[p]=d}else if(!(d=l[f]))return;d.uid=(0,Ze.$Q)("toolbox-feature"),d.model=m,d.ecModel=e,d.api=n;var y=d instanceof Iv;p||!f?!m.get("show")||y&&d.unusable?y&&d.remove&&d.remove(e,n):(!function(i,s,l){var h,c,u=i.getModel("iconStyle"),d=i.getModel(["emphasis","iconStyle"]),p=s instanceof Iv&&s.getIcons?s.getIcons():i.get("icon"),f=i.get("title")||{};_.isString(p)?(h={})[l]=p:h=p;_.isString(f)?(c={})[l]=f:c=f;var g=i.iconPaths={};_.each(h,(function(l,h){var p=qt.createIcon(l,{},{x:-o/2,y:-o/2,width:o,height:o});p.setStyle(u.getItemStyle()),p.ensureState("emphasis").style=d.getItemStyle();var f=new Z.Ay({style:{text:c[h],align:d.get("textAlign"),borderRadius:d.get("textBorderRadius"),padding:d.get("textPadding"),fill:null,font:(0,Jt.c8)({fontStyle:d.get("textFontStyle"),fontFamily:d.get("textFontFamily"),fontSize:d.get("textFontSize"),fontWeight:d.get("textFontWeight")},e)},ignore:!0});p.setTextContent(f),qt.setTooltipConfig({el:p,componentModel:t,itemName:h,formatterParamsExtra:{title:c[h]}}),p.__title=c[h],p.on("mouseover",(function(){var e=d.getItemStyle(),i=a?null==t.get("right")&&"right"!==t.get("left")?"right":"left":null==t.get("bottom")&&"bottom"!==t.get("top")?"bottom":"top";f.setStyle({fill:d.get("textFill")||e.fill||e.stroke||"#000",backgroundColor:d.get("textBackgroundColor")}),p.setTextConfig({position:d.get("textPosition")||i}),f.ignore=!t.get("showTitle"),n.enterEmphasis(this)})).on("mouseout",(function(){"emphasis"!==i.get(["iconStatus",h])&&n.leaveEmphasis(this),f.hide()})),("emphasis"===i.get(["iconStatus",h])?Yt.HY:Yt.SD)(p),r.add(p),p.on("click",_.bind(s.onclick,s,e,n,h)),g[h]=p}))}(m,d,p),m.setIconStatus=function(t,e){var n=this.option,i=this.iconPaths;n.iconStatus=n.iconStatus||{},n.iconStatus[t]=e,i[t]&&("emphasis"===e?Yt.HY:Yt.SD)(i[t])},d instanceof Iv&&d.render&&d.render(m,e,n,i)):y&&d.dispose&&d.dispose(e,n)}},e.prototype.updateView=function(t,e,n,i){_.each(this._features,(function(t){t instanceof Iv&&t.updateView&&t.updateView(t.model,e,n,i)}))},e.prototype.remove=function(t,e){_.each(this._features,(function(n){n instanceof Iv&&n.remove&&n.remove(t,e)})),this.group.removeAll()},e.prototype.dispose=function(t,e){_.each(this._features,(function(n){n instanceof Iv&&n.dispose&&n.dispose(t,e)}))},e.type="toolbox",e}(ri.A);const Ov=Rv;const Nv=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return(0,Bt.C6)(e,t),e.prototype.onclick=function(t,e){var n=this.model,i=n.get("name")||t.get("title.0.text")||"echarts",r="svg"===e.getZr().painter.getType(),o=r?"svg":n.get("type",!0)||"png",a=e.getConnectedDataURL({type:o,backgroundColor:n.get("backgroundColor",!0)||t.get("backgroundColor")||"#fff",connectedBackgroundColor:n.get("connectedBackgroundColor"),excludeComponents:n.get("excludeComponents"),pixelRatio:n.get("pixelRatio")}),s=vg.A.browser;if("function"!=typeof MouseEvent||!s.newEdge&&(s.ie||s.edge))if(window.navigator.msSaveOrOpenBlob||r){var l=a.split(","),h=l[0].indexOf("base64")>-1,c=r?decodeURIComponent(l[1]):l[1];h&&(c=window.atob(c));var u=i+"."+o;if(window.navigator.msSaveOrOpenBlob){for(var d=c.length,p=new Uint8Array(d);d--;)p[d]=c.charCodeAt(d);var f=new Blob([p]);window.navigator.msSaveOrOpenBlob(f,u)}else{var g=document.createElement("iframe");document.body.appendChild(g);var m=g.contentWindow,v=m.document;v.open("image/svg+xml","replace"),v.write(c),v.close(),m.focus(),v.execCommand("SaveAs",!0,u),document.body.removeChild(g)}}else{var y=n.get("lang"),_='<body style="margin:0;"><img src="'+a+'" style="max-width:100%;" title="'+(y&&y[0]||"")+'" /></body>',x=window.open();x.document.write(_),x.document.title=i}else{var b=document.createElement("a");b.download=i+"."+o,b.target="_blank",b.href=a;var w=new MouseEvent("click",{view:document.defaultView,bubbles:!0,cancelable:!1});b.dispatchEvent(w)}},e.getDefaultOption=function(t){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:t.getLocaleModel().get(["toolbox","saveAsImage","title"]),type:"png",connectedBackgroundColor:"#fff",name:"",excludeComponents:["toolbox"],lang:t.getLocaleModel().get(["toolbox","saveAsImage","lang"])}},e}(Iv);var Fv="__ec_magicType_stack__",Bv=[["line","bar"],["stack"]],zv=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return(0,Bt.C6)(e,t),e.prototype.getIcons=function(){var t=this.model,e=t.get("icon"),n={};return _.each(t.get("type"),(function(t){e[t]&&(n[t]=e[t])})),n},e.getDefaultOption=function(t){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:t.getLocaleModel().get(["toolbox","magicType","title"]),option:{},seriesIndex:{}}},e.prototype.onclick=function(t,e,n){var i=this.model,r=i.get(["seriesIndex",n]);if(Gv[n]){var o,a={series:[]};_.each(Bv,(function(t){_.indexOf(t,n)>=0&&_.each(t,(function(t){i.setIconStatus(t,"normal")}))})),i.setIconStatus(n,"emphasis"),t.eachComponent({mainType:"series",query:null==r?null:{seriesIndex:r}},(function(t){var e=t.subType,r=t.id,o=Gv[n](e,r,t,i);o&&(_.defaults(o,t.option),a.series.push(o));var s=t.coordinateSystem;if(s&&"cartesian2d"===s.type&&("line"===n||"bar"===n)){var l=s.getAxesByScale("ordinal")[0];if(l){var h=l.dim+"Axis",c=t.getReferringComponents(h,ce.US).models[0].componentIndex;a[h]=a[h]||[];for(var u=0;u<=c;u++)a[h][c]=a[h][c]||{};a[h][c].boundaryGap="bar"===n}}}));var s=n;"stack"===n&&(o=_.merge({stack:i.option.title.tiled,tiled:i.option.title.stack},i.option.title),"emphasis"!==i.get(["iconStatus",n])&&(s="tiled")),e.dispatchAction({type:"changeMagicType",currentType:s,newOption:a,newTitle:o,featureName:"magicType"})}},e}(Iv),Gv={line:function(t,e,n,i){if("bar"===t)return _.merge({id:e,type:"line",data:n.get("data"),stack:n.get("stack"),markPoint:n.get("markPoint"),markLine:n.get("markLine")},i.get(["option","line"])||{},!0)},bar:function(t,e,n,i){if("line"===t)return _.merge({id:e,type:"bar",data:n.get("data"),stack:n.get("stack"),markPoint:n.get("markPoint"),markLine:n.get("markLine")},i.get(["option","bar"])||{},!0)},stack:function(t,e,n,i){var r=n.get("stack")===Fv;if("line"===t||"bar"===t)return i.setIconStatus("stack",r?"normal":"emphasis"),_.merge({id:e,stack:r?"":Fv},i.get(["option","stack"])||{},!0)}};Br.OH({type:"changeMagicType",event:"magicTypeChanged",update:"prepareAndUpdate"},(function(t,e){e.mergeOption(t.newOption)}));const Vv=zv;var jv=new Array(60).join("-"),Hv="\t";function Wv(t){return t.replace(/^\s\s*/,"").replace(/\s\s*$/,"")}var Uv=new RegExp("[\t]+","g");function qv(t,e){var n=t.split(new RegExp("\n*"+jv+"\n*","g")),i={series:[]};return _.each(n,(function(t,n){if(function(t){if(t.slice(0,t.indexOf("\n")).indexOf(Hv)>=0)return!0}(t)){var r=function(t){for(var e=t.split(/\n+/g),n=Wv(e.shift()).split(Uv),i=[],r=_.map(n,(function(t){return{name:t,data:[]}})),o=0;o<e.length;o++){var a=Wv(e[o]).split(Uv);i.push(a.shift());for(var s=0;s<a.length;s++)r[s]&&(r[s].data[o]=a[s])}return{series:r,categories:i}}(t),o=e[n],a=o.axisDim+"Axis";o&&(i[a]=i[a]||[],i[a][o.axisIndex]={data:r.categories},i.series=i.series.concat(r.series))}else{r=function(t){for(var e=t.split(/\n+/g),n=Wv(e.shift()),i=[],r=0;r<e.length;r++){var o=Wv(e[r]);if(o){var a=o.split(Uv),s="",l=void 0,h=!1;isNaN(a[0])?(h=!0,s=a[0],a=a.slice(1),i[r]={name:s,value:[]},l=i[r].value):l=i[r]=[];for(var c=0;c<a.length;c++)l.push(+a[c]);1===l.length&&(h?i[r].value=l[0]:i[r]=l[0])}}return{name:n,data:i}}(t);i.series.push(r)}})),i}var Xv=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return(0,Bt.C6)(e,t),e.prototype.onclick=function(t,e){setTimeout((function(){e.dispatchAction({type:"hideTip"})}));var n=e.getDom(),i=this.model;this._dom&&n.removeChild(this._dom);var r=document.createElement("div");r.style.cssText="position:absolute;top:0;bottom:0;left:0;right:0;padding:5px",r.style.backgroundColor=i.get("backgroundColor")||"#fff";var o=document.createElement("h4"),a=i.get("lang")||[];o.innerHTML=a[0]||i.get("title"),o.style.cssText="margin:10px 20px",o.style.color=i.get("textColor");var s=document.createElement("div"),l=document.createElement("textarea");s.style.cssText="overflow:auto";var h=i.get("optionToContent"),c=i.get("contentToOption"),u=function(t){var e,n,i,r=function(t){var e={},n=[],i=[];return t.eachRawSeries((function(t){var r=t.coordinateSystem;if(!r||"cartesian2d"!==r.type&&"polar"!==r.type)n.push(t);else{var o=r.getBaseAxis();if("category"===o.type){var a=o.dim+"_"+o.index;e[a]||(e[a]={categoryAxis:o,valueAxis:r.getOtherAxis(o),series:[]},i.push({axisDim:o.dim,axisIndex:o.index})),e[a].series.push(t)}else n.push(t)}})),{seriesGroupByCategoryAxis:e,other:n,meta:i}}(t);return{value:_.filter([(n=r.seriesGroupByCategoryAxis,i=[],_.each(n,(function(t,e){var n=t.categoryAxis,r=t.valueAxis.dim,o=[" "].concat(_.map(t.series,(function(t){return t.name}))),a=[n.model.getCategories()];_.each(t.series,(function(t){var e=t.getRawData();a.push(t.getRawData().mapArray(e.mapDimension(r),(function(t){return t})))}));for(var s=[o.join(Hv)],l=0;l<a[0].length;l++){for(var h=[],c=0;c<a.length;c++)h.push(a[c][l]);s.push(h.join(Hv))}i.push(s.join("\n"))})),i.join("\n\n"+jv+"\n\n")),(e=r.other,_.map(e,(function(t){var e=t.getRawData(),n=[t.name],i=[];return e.each(e.dimensions,(function(){for(var t=arguments.length,r=arguments[t-1],o=e.getName(r),a=0;a<t-1;a++)i[a]=arguments[a];n.push((o?o+Hv:"")+i.join(Hv))})),n.join("\n")})).join("\n\n"+jv+"\n\n"))],(function(t){return!!t.replace(/[\n\t\s]/g,"")})).join("\n\n"+jv+"\n\n"),meta:r.meta}}(t);if(_.isFunction(h)){var d=h(e.getOption());_.isString(d)?s.innerHTML=d:_.isDom(d)&&s.appendChild(d)}else{l.readOnly=i.get("readOnly");var p=l.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=i.get("textColor"),p.borderColor=i.get("textareaBorderColor"),p.backgroundColor=i.get("textareaColor"),l.value=u.value,s.appendChild(l)}var f=u.meta,g=document.createElement("div");g.style.cssText="position:absolute;bottom:5px;left:0;right:0";var m="float:right;margin-right:20px;border:none;cursor:pointer;padding:2px 5px;font-size:12px;border-radius:3px",v=document.createElement("div"),y=document.createElement("div");m+=";background-color:"+i.get("buttonColor"),m+=";color:"+i.get("buttonTextColor");var x=this;function b(){n.removeChild(r),x._dom=null}(0,Fr.q2)(v,"click",b),(0,Fr.q2)(y,"click",(function(){if(null==c&&null!=h||null!=c&&null==h)b();else{var t;try{t=_.isFunction(c)?c(s,e.getOption()):qv(l.value,f)}catch(n){throw b(),new Error("Data view format error "+n)}t&&e.dispatchAction({type:"changeDataView",newOption:t}),b()}})),v.innerHTML=a[1],y.innerHTML=a[2],y.style.cssText=v.style.cssText=m,!i.get("readOnly")&&g.appendChild(y),g.appendChild(v),r.appendChild(o),r.appendChild(s),r.appendChild(g),s.style.height=n.clientHeight-80+"px",n.appendChild(r),this._dom=r},e.prototype.remove=function(t,e){this._dom&&e.getDom().removeChild(this._dom)},e.prototype.dispose=function(t,e){this.remove(t,e)},e.getDefaultOption=function(t){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:t.getLocaleModel().get(["toolbox","dataView","title"]),lang:t.getLocaleModel().get(["toolbox","dataView","lang"]),backgroundColor:"#fff",textColor:"#000",textareaColor:"#fff",textareaBorderColor:"#333",buttonColor:"#c23531",buttonTextColor:"#fff"}},e}(Iv);function Yv(t,e){return _.map(t,(function(t,n){var i=e&&e[n];if(_.isObject(i)&&!_.isArray(i)){_.isObject(t)&&!_.isArray(t)||(t={value:t});var r=null!=i.name&&null==t.name;return t=_.defaults(t,i),r&&delete t.name,t}return t}))}Br.OH({type:"changeDataView",event:"dataViewChanged",update:"prepareAndUpdate"},(function(t,e){var n=[];_.each(t.newOption.series,(function(t){var i=e.getSeriesByName(t.name)[0];if(i){var r=i.get("data");n.push({name:t.name,data:Yv(t.data,r)})}else n.push(_.extend({type:"scatter"},t))})),e.mergeOption(_.defaults({series:n},t.newOption))}));const Zv=Xv;var $v=_.each,Kv=(0,ce.$r)();function Jv(t){var e=Kv(t);return e.snapshots||(e.snapshots=[{}]),e.snapshots}var Qv=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return(0,Bt.C6)(e,t),e.prototype.onclick=function(t,e){!function(t){Kv(t).snapshots=null}(t),e.dispatchAction({type:"restore",from:this.uid})},e.getDefaultOption=function(t){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:t.getLocaleModel().get(["toolbox","restore","title"])}},e}(Iv);Br.OH({type:"restore",event:"restore",update:"prepareAndUpdate"},(function(t,e){e.resetOption("recreate")}));const ty=Qv;var ey=["grid","xAxis","yAxis","geo","graph","polar","radiusAxis","angleAxis","bmap"],ny=function(){function t(t,e,n){var i=this;this._targetInfoList=[];var r=ry(e,t);(0,_.each)(oy,(function(t,e){(!n||!n.include||(0,_.indexOf)(n.include,e)>=0)&&t(r,i._targetInfoList)}))}return t.prototype.setOutputRanges=function(t,e){return this.matchOutputRanges(t,e,(function(t,e,n){if((t.coordRanges||(t.coordRanges=[])).push(e),!t.coordRange){t.coordRange=e;var i=ly[t.brushType](0,n,e);t.__rangeOffset={offset:cy[t.brushType](i.values,t.range,[1,1]),xyMinMax:i.xyMinMax}}})),t},t.prototype.matchOutputRanges=function(t,e,n){(0,_.each)(t,(function(t){var i=this.findTargetInfo(t,e);i&&!0!==i&&(0,_.each)(i.coordSyses,(function(i){var r=ly[t.brushType](1,i,t.range,!0);n(t,r.values,i,e)}))}),this)},t.prototype.setInputRanges=function(t,e){(0,_.each)(t,(function(t){var n,i,r,o,a,s=this.findTargetInfo(t,e);if(t.range=t.range||[],s&&!0!==s){t.panelId=s.panelId;var l=ly[t.brushType](0,s.coordSys,t.coordRange),h=t.__rangeOffset;t.range=h?cy[t.brushType](l.values,h.offset,(n=l.xyMinMax,i=h.xyMinMax,r=dy(n),o=dy(i),a=[r[0]/o[0],r[1]/o[1]],isNaN(a[0])&&(a[0]=1),isNaN(a[1])&&(a[1]=1),a)):l.values}}),this)},t.prototype.makePanelOpts=function(t,e){return(0,_.map)(this._targetInfoList,(function(n){var i=n.getPanelRect();return{panelId:n.panelId,defaultBrushType:e?e(n):null,clipPath:nu(i),isTargetByCursor:ru(i,t,n.coordSysModel),getLinearBrushOtherExtent:iu(i)}}))},t.prototype.controlSeries=function(t,e,n){var i=this.findTargetInfo(t,n);return!0===i||i&&(0,_.indexOf)(i.coordSyses,e.coordinateSystem)>=0},t.prototype.findTargetInfo=function(t,e){for(var n=this._targetInfoList,i=ry(e,t),r=0;r<n.length;r++){var o=n[r],a=t.panelId;if(a){if(o.panelId===a)return o}else for(var s=0;s<ay.length;s++)if(ay[s](i,o))return o}return!0},t}();function iy(t){return t[0]>t[1]&&t.reverse(),t}function ry(t,e){return(0,ce._e)(t,e,{includeMainTypes:ey})}var oy={grid:function(t,e){var n=t.xAxisModels,i=t.yAxisModels,r=t.gridModels,o=(0,_.createHashMap)(),a={},s={};(n||i||r)&&((0,_.each)(n,(function(t){var e=t.axis.grid.model;o.set(e.id,e),a[e.id]=!0})),(0,_.each)(i,(function(t){var e=t.axis.grid.model;o.set(e.id,e),s[e.id]=!0})),(0,_.each)(r,(function(t){o.set(t.id,t),a[t.id]=!0,s[t.id]=!0})),o.each((function(t){var r=t.coordinateSystem,o=[];(0,_.each)(r.getCartesians(),(function(t,e){((0,_.indexOf)(n,t.getAxis("x").model)>=0||(0,_.indexOf)(i,t.getAxis("y").model)>=0)&&o.push(t)})),e.push({panelId:"grid--"+t.id,gridModel:t,coordSysModel:t,coordSys:o[0],coordSyses:o,getPanelRect:sy.grid,xAxisDeclared:a[t.id],yAxisDeclared:s[t.id]})})))},geo:function(t,e){(0,_.each)(t.geoModels,(function(t){var n=t.coordinateSystem;e.push({panelId:"geo--"+t.id,geoModel:t,coordSysModel:t,coordSys:n,coordSyses:[n],getPanelRect:sy.geo})}))}},ay=[function(t,e){var n=t.xAxisModel,i=t.yAxisModel,r=t.gridModel;return!r&&n&&(r=n.axis.grid.model),!r&&i&&(r=i.axis.grid.model),r&&r===e.gridModel},function(t,e){var n=t.geoModel;return n&&n===e.geoModel}],sy={grid:function(){return this.coordSys.master.getRect().clone()},geo:function(){var t=this.coordSys,e=t.getBoundingRect().clone();return e.applyTransform(qt.getTransform(t)),e}},ly={lineX:(0,_.curry)(hy,0),lineY:(0,_.curry)(hy,1),rect:function(t,e,n,i){var r=t?e.pointToData([n[0][0],n[1][0]],i):e.dataToPoint([n[0][0],n[1][0]],i),o=t?e.pointToData([n[0][1],n[1][1]],i):e.dataToPoint([n[0][1],n[1][1]],i),a=[iy([r[0],o[0]]),iy([r[1],o[1]])];return{values:a,xyMinMax:a}},polygon:function(t,e,n,i){var r=[[1/0,-1/0],[1/0,-1/0]];return{values:(0,_.map)(n,(function(n){var o=t?e.pointToData(n,i):e.dataToPoint(n,i);return r[0][0]=Math.min(r[0][0],o[0]),r[1][0]=Math.min(r[1][0],o[1]),r[0][1]=Math.max(r[0][1],o[0]),r[1][1]=Math.max(r[1][1],o[1]),o})),xyMinMax:r}}};function hy(t,e,n,i){var r=n.getAxis(["x","y"][t]),o=iy((0,_.map)([0,1],(function(t){return e?r.coordToData(r.toLocalCoord(i[t]),!0):r.toGlobalCoord(r.dataToCoord(i[t]))}))),a=[];return a[t]=o,a[1-t]=[NaN,NaN],{values:o,xyMinMax:a}}var cy={lineX:(0,_.curry)(uy,0),lineY:(0,_.curry)(uy,1),rect:function(t,e,n){return[[t[0][0]-n[0]*e[0][0],t[0][1]-n[0]*e[0][1]],[t[1][0]-n[1]*e[1][0],t[1][1]-n[1]*e[1][1]]]},polygon:function(t,e,n){return(0,_.map)(t,(function(t,i){return[t[0]-n[0]*e[i][0],t[1]-n[1]*e[i][1]]}))}};function uy(t,e,n,i){return[e[0]-i[t]*n[0],e[1]-i[t]*n[1]]}function dy(t){return t?[t[0][1]-t[0][0],t[1][1]-t[1][0]]:[NaN,NaN]}const py=ny;var fy=n(7997),gy=_.each,my=(0,ce.S_)("toolbox-dataZoom_"),vy=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return(0,Bt.C6)(e,t),e.prototype.render=function(t,e,n,i){this._brushController||(this._brushController=new eu(n.getZr()),this._brushController.on("brush",_.bind(this._onBrush,this)).mount()),function(t,e,n,i,r){var o=n._isZoomActive;i&&"takeGlobalCursor"===i.type&&(o="dataZoomSelect"===i.key&&i.dataZoomSelectActive);n._isZoomActive=o,t.setIconStatus("zoom",o?"emphasis":"normal");var a=new py(_y(t),e,{include:["grid"]}),s=a.makePanelOpts(r,(function(t){return t.xAxisDeclared&&!t.yAxisDeclared?"lineX":!t.xAxisDeclared&&t.yAxisDeclared?"lineY":"rect"}));n._brushController.setPanels(s).enableBrush(!(!o||!s.length)&&{brushType:"auto",brushStyle:t.getModel("brushStyle").getItemStyle()})}(t,e,this,i,n),function(t,e){t.setIconStatus("back",function(t){return Jv(t).length}(e)>1?"emphasis":"normal")}(t,e)},e.prototype.onclick=function(t,e,n){yy[n].call(this)},e.prototype.remove=function(t,e){this._brushController&&this._brushController.unmount()},e.prototype.dispose=function(t,e){this._brushController&&this._brushController.dispose()},e.prototype._onBrush=function(t){var e=t.areas;if(t.isEnd&&e.length){var n={},i=this.ecModel;this._brushController.updateCovers([]),new py(_y(this.model),i,{include:["grid"]}).matchOutputRanges(e,i,(function(t,e,n){if("cartesian2d"===n.type){var i=t.brushType;"rect"===i?(r("x",n,e[0]),r("y",n,e[1])):r({lineX:"x",lineY:"y"}[i],n,e)}})),function(t,e){var n=Jv(t);$v(e,(function(e,i){for(var r=n.length-1;r>=0&&!n[r][i];r--);if(r<0){var o=t.queryComponents({mainType:"dataZoom",subType:"select",id:i})[0];if(o){var a=o.getPercentRange();n[0][i]={dataZoomId:i,start:a[0],end:a[1]}}}})),n.push(e)}(i,n),this._dispatchZoomAction(n)}function r(t,e,r){var o=e.getAxis(t),a=o.model,s=function(t,e,n){var i;return n.eachComponent({mainType:"dataZoom",subType:"select"},(function(n){n.getAxisModel(t,e.componentIndex)&&(i=n)})),i}(t,a,i),l=s.findRepresentativeAxisProxy(a).getMinMaxSpan();null==l.minValueSpan&&null==l.maxValueSpan||(r=Kh(0,r.slice(),o.scale.getExtent(),0,l.minValueSpan,l.maxValueSpan)),s&&(n[s.id]={dataZoomId:s.id,startValue:r[0],endValue:r[1]})}},e.prototype._dispatchZoomAction=function(t){var e=[];gy(t,(function(t,n){e.push(_.clone(t))})),e.length&&this.api.dispatchAction({type:"dataZoom",from:this.uid,batch:e})},e.getDefaultOption=function(t){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:t.getLocaleModel().get(["toolbox","dataZoom","title"]),brushStyle:{borderWidth:0,color:"rgba(210,219,238,0.2)"}}},e}(Iv),yy={zoom:function(){var t=!this._isZoomActive;this.api.dispatchAction({type:"takeGlobalCursor",key:"dataZoomSelect",dataZoomSelectActive:t})},back:function(){this._dispatchZoomAction(function(t){var e=Jv(t),n=e[e.length-1];e.length>1&&e.pop();var i={};return $v(n,(function(t,n){for(var r=e.length-1;r>=0;r--)if(t=e[r][n]){i[n]=t;break}})),i}(this.ecModel))}};function _y(t){var e={xAxisIndex:t.get("xAxisIndex",!0),yAxisIndex:t.get("yAxisIndex",!0),xAxisId:t.get("xAxisId",!0),yAxisId:t.get("yAxisId",!0)};return null==e.xAxisIndex&&null==e.xAxisId&&(e.xAxisIndex="all"),null==e.yAxisIndex&&null==e.yAxisId&&(e.yAxisIndex="all"),e}(0,fy.S)("dataZoom",(function(t){var e=t.getComponent("toolbox",0),n=["feature","dataZoom"];if(e&&null!=e.get(n)){var i=e.getModel(n),r=[],o=_y(i),a=(0,ce._e)(t,o);return gy(a.xAxisModels,(function(t){return s(t,"xAxis","xAxisIndex")})),gy(a.yAxisModels,(function(t){return s(t,"yAxis","yAxisIndex")})),r}function s(t,e,n){var o=t.componentIndex,a={type:"select",$fromToolbox:!0,filterMode:i.get("filterMode",!0)||"filter",id:my+e+o};a[n]=o,r.push(a)}}));const xy=vy;const by=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return(0,Bt.C6)(e,t),e.type="tooltip",e.dependencies=["axisPointer"],e.defaultOption={z:60,show:!0,showContent:!0,trigger:"item",triggerOn:"mousemove|click",alwaysShowContent:!1,displayMode:"single",renderMode:"auto",confine:null,showDelay:0,hideDelay:100,transitionDuration:.4,enterable:!1,backgroundColor:"#fff",shadowBlur:10,shadowColor:"rgba(0, 0, 0, .2)",shadowOffsetX:1,shadowOffsetY:2,borderRadius:4,borderWidth:1,padding:null,extraCssText:"",axisPointer:{type:"line",axis:"auto",animation:"auto",animationDurationUpdate:200,animationEasingUpdate:"exponentialOut",crossStyle:{color:"#999",width:1,type:"dashed",textStyle:{}}},textStyle:{color:"#666",fontSize:14}},e}(oi.A);function wy(t){var e=t.get("confine");return null!=e?!!e:"richText"===t.get("renderMode")}function Sy(t){if(vg.A.domSupported)for(var e=document.documentElement.style,n=0,i=t.length;n<i;n++)if(t[n]in e)return t[n]}var Ty=Sy(["transform","webkitTransform","OTransform","MozTransform","msTransform"]);function My(t,e){if(!t)return e;e=(0,Ie.Cb)(e,!0);var n=t.indexOf(e);return(t=-1===n?e:"-"+t.slice(0,n)+"-"+e).toLowerCase()}var Ay=My(Sy(["webkitTransition","transition","OTransition","MozTransition","msTransition"]),"transition"),Cy=My(Ty,"transform"),Iy="position:absolute;display:block;border-style:solid;white-space:nowrap;z-index:9999999;"+(vg.A.transform3dSupported?"will-change:transform;":"");function Ey(t,e,n){var i=t.toFixed(0)+"px",r=e.toFixed(0)+"px";if(!vg.A.transformSupported)return n?"top:"+r+";left:"+i+";":[["top",r],["left",i]];var o=vg.A.transform3dSupported,a="translate"+(o?"3d":"")+"("+i+","+r+(o?",0":"")+")";return n?"top:0;left:0;"+Cy+":"+a+";":[["top",0],["left",0],[Ty,a]]}function ky(t,e,n){var i=[],r=t.get("transitionDuration"),o=t.get("backgroundColor"),a=t.get("shadowBlur"),s=t.get("shadowColor"),l=t.get("shadowOffsetX"),h=t.get("shadowOffsetY"),c=t.getModel("textStyle"),u=(0,br.CO)(t,"html"),d=l+"px "+h+"px "+a+"px "+s;return i.push("box-shadow:"+d),e&&r&&i.push(function(t,e){var n="cubic-bezier(0.23,1,0.32,1)",i=" "+t/2+"s "+n,r="opacity"+i+",visibility"+i;return e||(i=" "+t+"s "+n,r+=vg.A.transformSupported?","+Cy+i:",left"+i+",top"+i),Ay+":"+r}(r,n)),o&&i.push("background-color:"+o),(0,_.each)(["width","color","radius"],(function(e){var n="border-"+e,r=(0,Ie.Cb)(n),o=t.get(r);null!=o&&i.push(n+":"+o+("color"===e?"":"px"))})),i.push(function(t){var e=[],n=t.get("fontSize"),i=t.getTextColor();i&&e.push("color:"+i),e.push("font:"+t.getFont()),n&&e.push("line-height:"+Math.round(3*n/2)+"px");var r=t.get("textShadowColor"),o=t.get("textShadowBlur")||0,a=t.get("textShadowOffsetX")||0,s=t.get("textShadowOffsetY")||0;return r&&o&&e.push("text-shadow:"+a+"px "+s+"px "+o+"px "+r),(0,_.each)(["decoration","align"],(function(n){var i=t.get(n);i&&e.push("text-"+n+":"+i)})),e.join(";")}(c)),null!=u&&i.push("padding:"+(0,Ie.QX)(u).join("px ")+"px"),i.join(";")+";"}function Ly(t,e,n,i,r){var o=e&&e.painter;if(n){var a=o&&o.getViewportRoot();a&&(0,M.lJ)(t,a,n,i,r)}else{t[0]=i,t[1]=r;var s=o&&o.getViewportRootOffset();s&&(t[0]+=s.offsetLeft,t[1]+=s.offsetTop)}t[2]=t[0]/e.getWidth(),t[3]=t[1]/e.getHeight()}var Dy=function(){function t(t,e){if(this._show=!1,this._styleCoord=[0,0,0,0],this._enterable=!0,this._alwaysShowContent=!1,this._firstShow=!0,this._longHide=!0,vg.A.wxa)return null;var n=document.createElement("div");n.domBelongToZr=!0,this.el=n;var i=this._zr=t.getZr(),r=e.appendTo,o=r&&((0,_.isString)(r)?document.querySelector(r):(0,_.isDom)(r)?r:(0,_.isFunction)(r)&&r(t.getDom()));Ly(this._styleCoord,i,o,t.getWidth()/2,t.getHeight()/2),(o||t.getDom()).appendChild(n),this._api=t,this._container=o;var a=this;n.onmouseenter=function(){a._enterable&&(clearTimeout(a._hideTimeout),a._show=!0),a._inContent=!0},n.onmousemove=function(t){if(t=t||window.event,!a._enterable){var e=i.handler,n=i.painter.getViewportRoot();(0,Fr.e0)(n,t,!0),e.dispatch("mousemove",t)}},n.onmouseleave=function(){a._inContent=!1,a._enterable&&a._show&&a.hideLater(a._hideDelay)}}return t.prototype.update=function(t){if(!this._container){var e=this._api.getDom(),n=(o="position",(a=(r=e).currentStyle||document.defaultView&&document.defaultView.getComputedStyle(r))?o?a[o]:a:null),i=e.style;"absolute"!==i.position&&"absolute"!==n&&(i.position="relative")}var r,o,a,s=t.get("alwaysShowContent");s&&this._moveIfResized(),this._alwaysShowContent=s,this.el.className=t.get("className")||""},t.prototype.show=function(t,e){clearTimeout(this._hideTimeout),clearTimeout(this._longHideTimeout);var n=this.el,i=n.style,r=this._styleCoord;n.innerHTML?i.cssText=Iy+ky(t,!this._firstShow,this._longHide)+Ey(r[0],r[1],!0)+"border-color:"+(0,Ie.he)(e)+";"+(t.get("extraCssText")||"")+";pointer-events:"+(this._enterable?"auto":"none"):i.display="none",this._show=!0,this._firstShow=!1,this._longHide=!1},t.prototype.setContent=function(t,e,n,i,r){var o=this.el;if(null!=t){var a="";if((0,_.isString)(r)&&"item"===n.get("trigger")&&!wy(n)&&(a=function(t,e,n){if(!(0,_.isString)(n)||"inside"===n)return"";var i=t.get("backgroundColor"),r=t.get("borderWidth");e=(0,Ie.he)(e);var o,a,s="left"===(o=n)?"right":"right"===o?"left":"top"===o?"bottom":"top",l=Math.max(1.5*Math.round(r),6),h="",c=Cy+":";(0,_.indexOf)(["left","right"],s)>-1?(h+="top:50%",c+="translateY(-50%) rotate("+(a="left"===s?-225:-45)+"deg)"):(h+="left:50%",c+="translateX(-50%) rotate("+(a="top"===s?225:45)+"deg)");var u=a*Math.PI/180,d=l+r,p=d*Math.abs(Math.cos(u))+d*Math.abs(Math.sin(u)),f=e+" solid "+r+"px;";return'<div style="'+["position:absolute;width:"+l+"px;height:"+l+"px;z-index:-1;",(h+=";"+s+":-"+Math.round(100*((p-Math.SQRT2*r)/2+Math.SQRT2*r-(p-d)/2))/100+"px")+";"+c+";","border-bottom:"+f,"border-right:"+f,"background-color:"+i+";"].join("")+'"></div>'}(n,i,r)),(0,_.isString)(t))o.innerHTML=t+a;else if(t){o.innerHTML="",(0,_.isArray)(t)||(t=[t]);for(var s=0;s<t.length;s++)(0,_.isDom)(t[s])&&t[s].parentNode!==o&&o.appendChild(t[s]);if(a&&o.childNodes.length){var l=document.createElement("div");l.innerHTML=a,o.appendChild(l)}}}else o.innerHTML=""},t.prototype.setEnterable=function(t){this._enterable=t},t.prototype.getSize=function(){var t=this.el;return[t.offsetWidth,t.offsetHeight]},t.prototype.moveTo=function(t,e){var n=this._styleCoord;if(Ly(n,this._zr,this._container,t,e),null!=n[0]&&null!=n[1]){var i=this.el.style,r=Ey(n[0],n[1]);(0,_.each)(r,(function(t){i[t[0]]=t[1]}))}},t.prototype._moveIfResized=function(){var t=this._styleCoord[2],e=this._styleCoord[3];this.moveTo(t*this._zr.getWidth(),e*this._zr.getHeight())},t.prototype.hide=function(){var t=this,e=this.el.style;e.visibility="hidden",e.opacity="0",vg.A.transform3dSupported&&(e.willChange=""),this._show=!1,this._longHideTimeout=setTimeout((function(){return t._longHide=!0}),500)},t.prototype.hideLater=function(t){!this._show||this._inContent&&this._enterable||this._alwaysShowContent||(t?(this._hideDelay=t,this._show=!1,this._hideTimeout=setTimeout((0,_.bind)(this.hide,this),t)):this.hide())},t.prototype.isShow=function(){return this._show},t.prototype.dispose=function(){clearTimeout(this._hideTimeout),clearTimeout(this._longHideTimeout);var t=this.el.parentNode;t&&t.removeChild(this.el),this.el=this._container=null},t}();const Py=Dy;var Ry=function(){function t(t){this._show=!1,this._styleCoord=[0,0,0,0],this._alwaysShowContent=!1,this._enterable=!0,this._zr=t.getZr(),Fy(this._styleCoord,this._zr,t.getWidth()/2,t.getHeight()/2)}return t.prototype.update=function(t){var e=t.get("alwaysShowContent");e&&this._moveIfResized(),this._alwaysShowContent=e},t.prototype.show=function(){this._hideTimeout&&clearTimeout(this._hideTimeout),this.el.show(),this._show=!0},t.prototype.setContent=function(t,e,n,i,r){var o=this;_.isObject(t)&&(0,Wu.$8)(""),this.el&&this._zr.remove(this.el);var a=n.getModel("textStyle");this.el=new Z.Ay({style:{rich:e.richTextStyles,text:t,lineHeight:22,borderWidth:1,borderColor:i,textShadowColor:a.get("textShadowColor"),fill:n.get(["textStyle","color"]),padding:(0,br.CO)(n,"richText"),verticalAlign:"top",align:"left"},z:n.get("z")}),_.each(["backgroundColor","borderRadius","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY"],(function(t){o.el.style[t]=n.get(t)})),_.each(["textShadowBlur","textShadowOffsetX","textShadowOffsetY"],(function(t){o.el.style[t]=a.get(t)||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}))},t.prototype.setEnterable=function(t){this._enterable=t},t.prototype.getSize=function(){var t=this.el,e=this.el.getBoundingRect(),n=Ny(t.style);return[e.width+n.left+n.right,e.height+n.top+n.bottom]},t.prototype.moveTo=function(t,e){var n=this.el;if(n){var i=this._styleCoord;Fy(i,this._zr,t,e),t=i[0],e=i[1];var r=n.style,o=Oy(r.borderWidth||0),a=Ny(r);n.x=t+o+a.left,n.y=e+o+a.top,n.markRedraw()}},t.prototype._moveIfResized=function(){var t=this._styleCoord[2],e=this._styleCoord[3];this.moveTo(t*this._zr.getWidth(),e*this._zr.getHeight())},t.prototype.hide=function(){this.el&&this.el.hide(),this._show=!1},t.prototype.hideLater=function(t){!this._show||this._inContent&&this._enterable||this._alwaysShowContent||(t?(this._hideDelay=t,this._show=!1,this._hideTimeout=setTimeout(_.bind(this.hide,this),t)):this.hide())},t.prototype.isShow=function(){return this._show},t.prototype.dispose=function(){this._zr.remove(this.el)},t}();function Oy(t){return Math.max(0,t)}function Ny(t){var e=Oy(t.shadowBlur||0),n=Oy(t.shadowOffsetX||0),i=Oy(t.shadowOffsetY||0);return{left:Oy(e-n),right:Oy(e+n),top:Oy(e-i),bottom:Oy(e+i)}}function Fy(t,e,n,i){t[0]=n,t[1]=i,t[2]=t[0]/e.getWidth(),t[3]=t[1]/e.getHeight()}const By=Ry;var zy=n(383),Gy=n(5864),Vy=new be.A({shape:{x:-1,y:-1,width:2,height:2}}),jy=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return(0,Bt.C6)(e,t),e.prototype.init=function(t,e){if(!vg.A.node&&e.getDom()){var n=t.getComponent("tooltip"),i=this._renderMode=(0,ce.XJ)(n.get("renderMode"));this._tooltipContent="richText"===i?new By(e):new Py(e,{appendTo:n.get("appendToBody",!0)?"body":n.get("appendTo",!0)})}},e.prototype.render=function(t,e,n){if(!vg.A.node&&n.getDom()){this.group.removeAll(),this._tooltipModel=t,this._ecModel=e,this._api=n;var i=this._tooltipContent;i.update(t),i.setEnterable(t.get("enterable")),this._initGlobalListener(),this._keepShow(),"richText"!==this._renderMode&&t.get("transitionDuration")?(0,Ke.N)(this,"_updatePosition",50,"fixRate"):(0,Ke.IU)(this,"_updatePosition")}},e.prototype._initGlobalListener=function(){var t=this._tooltipModel.get("triggerOn");xg("itemTooltip",this._api,(0,_.bind)((function(e,n,i){"none"!==t&&(t.indexOf(e)>=0?this._tryShow(n,i):"leave"===e&&this._hide(i))}),this))},e.prototype._keepShow=function(){var t=this._tooltipModel,e=this._ecModel,n=this._api,i=t.get("triggerOn");if(null!=this._lastX&&null!=this._lastY&&"none"!==i&&"click"!==i){var r=this;clearTimeout(this._refreshUpdateTimeout),this._refreshUpdateTimeout=setTimeout((function(){!n.isDisposed()&&r.manuallyShowTip(t,e,n,{x:r._lastX,y:r._lastY,dataByCoordSys:r._lastDataByCoordSys})}))}},e.prototype.manuallyShowTip=function(t,e,n,i){if(i.from!==this.uid&&!vg.A.node&&n.getDom()){var r=Wy(i,n);this._ticket="";var o=i.dataByCoordSys,a=function(t,e,n){var i=(0,ce.HB)(t).queryOptionMap,r=i.keys()[0];if(!r||"series"===r)return;var o=(0,ce.JO)(e,r,i.get(r),{useDefault:!1,enableAll:!1,enableNone:!1}),a=o.models[0];if(!a)return;var s,l=n.getViewOfComponentModel(a);if(l.group.traverse((function(e){var n=(0,Xt.z)(e).tooltipConfig;if(n&&n.name===t.name)return s=e,!0})),s)return{componentMainType:r,componentIndex:a.componentIndex,el:s}}(i,e,n);if(a){var s=a.el.getBoundingRect().clone();s.applyTransform(a.el.transform),this._tryShow({offsetX:s.x+s.width/2,offsetY:s.y+s.height/2,target:a.el,position:i.position,positionDefault:"bottom"},r)}else if(i.tooltip&&null!=i.x&&null!=i.y){var l=Vy;l.x=i.x,l.y=i.y,l.update(),(0,Xt.z)(l).tooltipConfig={name:null,option:i.tooltip},this._tryShow({offsetX:i.x,offsetY:i.y,target:l},r)}else if(o)this._tryShow({offsetX:i.x,offsetY:i.y,position:i.position,dataByCoordSys:o,tooltipOption:i.tooltipOption},r);else if(null!=i.seriesIndex){if(this._manuallyAxisShowTip(t,e,n,i))return;var h=Ag(i,e),c=h.point[0],u=h.point[1];null!=c&&null!=u&&this._tryShow({offsetX:c,offsetY:u,target:h.el,position:i.position,positionDefault:"bottom"},r)}else null!=i.x&&null!=i.y&&(n.dispatchAction({type:"updateAxisPointer",x:i.x,y:i.y}),this._tryShow({offsetX:i.x,offsetY:i.y,position:i.position,target:n.getZr().findHover(i.x,i.y).target},r))}},e.prototype.manuallyHideTip=function(t,e,n,i){var r=this._tooltipContent;this._tooltipModel&&r.hideLater(this._tooltipModel.get("hideDelay")),this._lastX=this._lastY=this._lastDataByCoordSys=null,i.from!==this.uid&&this._hide(Wy(i,n))},e.prototype._manuallyAxisShowTip=function(t,e,n,i){var r=i.seriesIndex,o=i.dataIndex,a=e.getComponent("axisPointer").coordSysAxesInfo;if(null!=r&&null!=o&&null!=a){var s=e.getSeriesByIndex(r);if(s)if("axis"===Hy([s.getData().getItemModel(o),s,(s.coordinateSystem||{}).model],this._tooltipModel).get("trigger"))return n.dispatchAction({type:"updateAxisPointer",seriesIndex:r,dataIndex:o,position:i.position}),!0}},e.prototype._tryShow=function(t,e){var n=t.target;if(this._tooltipModel){this._lastX=t.offsetX,this._lastY=t.offsetY;var i=t.dataByCoordSys;if(i&&i.length)this._showAxisTooltip(i,t);else if(n){var r,o;if("legend"===(0,Xt.z)(n).ssrType)return;this._lastDataByCoordSys=null,(0,Ma.R)(n,(function(t){return null!=(0,Xt.z)(t).dataIndex?(r=t,!0):null!=(0,Xt.z)(t).tooltipConfig?(o=t,!0):void 0}),!0),r?this._showSeriesItemTooltip(t,r,e):o?this._showComponentItemTooltip(t,o,e):this._hide(e)}else this._lastDataByCoordSys=null,this._hide(e)}},e.prototype._showOrMove=function(t,e){var n=t.get("showDelay");e=(0,_.bind)(e,this),clearTimeout(this._showTimout),n>0?this._showTimout=setTimeout(e,n):e()},e.prototype._showAxisTooltip=function(t,e){var n=this._ecModel,i=this._tooltipModel,r=[e.offsetX,e.offsetY],o=Hy([e.tooltipOption],i),a=this._renderMode,s=[],l=(0,br.Qx)("section",{blocks:[],noHeader:!0}),h=[],c=new br.lb;(0,_.each)(t,(function(t){(0,_.each)(t.dataByAxis,(function(t){var e=n.getComponent(t.axisDim+"Axis",t.axisIndex),r=t.value;if(e&&null!=r){var o=og(r,e.axis,n,t.seriesDataIndices,t.valueLabelOpt),u=(0,br.Qx)("section",{header:o,noHeader:!(0,_.trim)(o),sortBlocks:!0,blocks:[]});l.blocks.push(u),(0,_.each)(t.seriesDataIndices,(function(l){var d=n.getSeriesByIndex(l.seriesIndex),p=l.dataIndexInside,f=d.getDataParams(p);if(!(f.dataIndex<0)){f.axisDim=t.axisDim,f.axisIndex=t.axisIndex,f.axisType=t.axisType,f.axisId=t.axisId,f.axisValue=vi.Dt(e.axis,{value:r}),f.axisValueLabel=o,f.marker=c.makeTooltipMarker("item",(0,Ie.he)(f.color),a);var g=(0,Gy.L)(d.formatTooltip(p,!0,null)),m=g.frag;if(m){var v=Hy([d],i).get("valueFormatter");u.blocks.push(v?(0,_.extend)({valueFormatter:v},m):m)}g.text&&h.push(g.text),s.push(f)}}))}}))})),l.blocks.reverse(),h.reverse();var u=e.position,d=o.get("order"),p=(0,br.Yu)(l,c,a,d,n.get("useUTC"),o.get("textStyle"));p&&h.unshift(p);var f="richText"===a?"\n\n":"<br/>",g=h.join(f);this._showOrMove(o,(function(){this._updateContentNotChangedOnAxis(t,s)?this._updatePosition(o,u,r[0],r[1],this._tooltipContent,s):this._showTooltipContent(o,g,s,Math.random()+"",r[0],r[1],u,null,c)}))},e.prototype._showSeriesItemTooltip=function(t,e,n){var i=this._ecModel,r=(0,Xt.z)(e),o=r.seriesIndex,a=i.getSeriesByIndex(o),s=r.dataModel||a,l=r.dataIndex,h=r.dataType,c=s.getData(h),u=this._renderMode,d=t.positionDefault,p=Hy([c.getItemModel(l),s,a&&(a.coordinateSystem||{}).model],this._tooltipModel,d?{position:d}:null),f=p.get("trigger");if(null==f||"item"===f){var g=s.getDataParams(l,h),m=new br.lb;g.marker=m.makeTooltipMarker("item",(0,Ie.he)(g.color),u);var v=(0,Gy.L)(s.formatTooltip(l,!1,h)),y=p.get("order"),x=p.get("valueFormatter"),b=v.frag,w=b?(0,br.Yu)(x?(0,_.extend)({valueFormatter:x},b):b,m,u,y,i.get("useUTC"),p.get("textStyle")):v.text,S="item_"+s.name+"_"+l;this._showOrMove(p,(function(){this._showTooltipContent(p,w,g,S,t.offsetX,t.offsetY,t.position,t.target,m)})),n({type:"showTip",dataIndexInside:l,dataIndex:c.getRawIndex(l),seriesIndex:o,from:this.uid})}},e.prototype._showComponentItemTooltip=function(t,e,n){var i="html"===this._renderMode,r=(0,Xt.z)(e),o=r.tooltipConfig.option||{},a=o.encodeHTMLContent;if((0,_.isString)(o)){o={content:o,formatter:o},a=!0}a&&i&&o.content&&((o=(0,_.clone)(o)).content=(0,M.Me)(o.content));var s=[o],l=this._ecModel.getComponent(r.componentMainType,r.componentIndex);l&&s.push(l),s.push({formatter:o.content});var h=t.positionDefault,c=Hy(s,this._tooltipModel,h?{position:h}:null),u=c.get("content"),d=Math.random()+"",p=new br.lb;this._showOrMove(c,(function(){var n=(0,_.clone)(c.get("formatterParams")||{});this._showTooltipContent(c,u,n,d,t.offsetX,t.offsetY,t.position,e,p)})),n({type:"showTip",from:this.uid})},e.prototype._showTooltipContent=function(t,e,n,i,r,o,a,s,l){if(this._ticket="",t.get("showContent")&&t.get("show")){var h=this._tooltipContent;h.setEnterable(t.get("enterable"));var c=t.get("formatter");a=a||t.get("position");var u=e,d=this._getNearestPoint([r,o],n,t.get("trigger"),t.get("borderColor")).color;if(c)if((0,_.isString)(c)){var p=t.ecModel.get("useUTC"),f=(0,_.isArray)(n)?n[0]:n;u=c,f&&f.axisType&&f.axisType.indexOf("time")>=0&&(u=(0,zy.GP)(f.axisValue,u,p)),u=(0,Ie.YK)(u,n,!0)}else if((0,_.isFunction)(c)){var g=(0,_.bind)((function(e,i){e===this._ticket&&(h.setContent(i,l,t,d,a),this._updatePosition(t,a,r,o,h,n,s))}),this);this._ticket=i,u=c(n,i,g)}else u=c;h.setContent(u,l,t,d,a),h.show(t,d),this._updatePosition(t,a,r,o,h,n,s)}},e.prototype._getNearestPoint=function(t,e,n,i){return"axis"===n||(0,_.isArray)(e)?{color:i||("html"===this._renderMode?"#fff":"none")}:(0,_.isArray)(e)?void 0:{color:i||e.color||e.borderColor}},e.prototype._updatePosition=function(t,e,n,i,r,o,a){var s=this._api.getWidth(),l=this._api.getHeight();e=e||t.get("position");var h=r.getSize(),c=t.get("align"),u=t.get("verticalAlign"),d=a&&a.getBoundingRect().clone();if(a&&d.applyTransform(a.transform),(0,_.isFunction)(e)&&(e=e([n,i],o,r.el,d,{viewSize:[s,l],contentSize:h.slice()})),(0,_.isArray)(e))n=(0,Se.lo)(e[0],s),i=(0,Se.lo)(e[1],l);else if((0,_.isObject)(e)){var p=e;p.width=h[0],p.height=h[1];var f=(0,Mn.dV)(p,{width:s,height:l});n=f.x,i=f.y,c=null,u=null}else if((0,_.isString)(e)&&a){var g=function(t,e,n,i){var r=n[0],o=n[1],a=Math.ceil(Math.SQRT2*i)+8,s=0,l=0,h=e.width,c=e.height;switch(t){case"inside":s=e.x+h/2-r/2,l=e.y+c/2-o/2;break;case"top":s=e.x+h/2-r/2,l=e.y-o-a;break;case"bottom":s=e.x+h/2-r/2,l=e.y+c+a;break;case"left":s=e.x-r-a,l=e.y+c/2-o/2;break;case"right":s=e.x+h+a,l=e.y+c/2-o/2}return[s,l]}(e,d,h,t.get("borderWidth"));n=g[0],i=g[1]}else{g=function(t,e,n,i,r,o,a){var s=n.getSize(),l=s[0],h=s[1];null!=o&&(t+l+o+2>i?t-=l+o:t+=o);null!=a&&(e+h+a>r?e-=h+a:e+=a);return[t,e]}(n,i,r,s,l,c?null:20,u?null:20);n=g[0],i=g[1]}if(c&&(n-=Uy(c)?h[0]/2:"right"===c?h[0]:0),u&&(i-=Uy(u)?h[1]/2:"bottom"===u?h[1]:0),wy(t)){g=function(t,e,n,i,r){var o=n.getSize(),a=o[0],s=o[1];return t=Math.min(t+a,i)-a,e=Math.min(e+s,r)-s,t=Math.max(t,0),e=Math.max(e,0),[t,e]}(n,i,r,s,l);n=g[0],i=g[1]}r.moveTo(n,i)},e.prototype._updateContentNotChangedOnAxis=function(t,e){var n=this._lastDataByCoordSys,i=this._cbParamsList,r=!!n&&n.length===t.length;return r&&(0,_.each)(n,(function(n,o){var a=n.dataByAxis||[],s=(t[o]||{}).dataByAxis||[];(r=r&&a.length===s.length)&&(0,_.each)(a,(function(t,n){var o=s[n]||{},a=t.seriesDataIndices||[],l=o.seriesDataIndices||[];(r=r&&t.value===o.value&&t.axisType===o.axisType&&t.axisId===o.axisId&&a.length===l.length)&&(0,_.each)(a,(function(t,e){var n=l[e];r=r&&t.seriesIndex===n.seriesIndex&&t.dataIndex===n.dataIndex})),i&&(0,_.each)(t.seriesDataIndices,(function(t){var n=t.seriesIndex,o=e[n],a=i[n];o&&a&&a.data!==o.data&&(r=!1)}))}))})),this._lastDataByCoordSys=t,this._cbParamsList=e,!!r},e.prototype._hide=function(t){this._lastDataByCoordSys=null,t({type:"hideTip",from:this.uid})},e.prototype.dispose=function(t,e){!vg.A.node&&e.getDom()&&((0,Ke.IU)(this,"_updatePosition"),this._tooltipContent.dispose(),Sg("itemTooltip",e))},e.type="tooltip",e}(ri.A);function Hy(t,e,n){var i,r=e.ecModel;n?(i=new Gi.A(n,r,r),i=new Gi.A(e.option,i,r)):i=e;for(var o=t.length-1;o>=0;o--){var a=t[o];a&&(a instanceof Gi.A&&(a=a.get("tooltip",!0)),(0,_.isString)(a)&&(a={formatter:a}),a&&(i=new Gi.A(a,i,r)))}return i}function Wy(t,e){return t.dispatchAction||(0,_.bind)(e.dispatchAction,e)}function Uy(t){return"center"===t||"middle"===t}const qy=jy;var Xy=["rect","polygon","keep","clear"];function Yy(t,e){var n=(0,ce.qB)(t?t.brush:[]);if(n.length){var i=[];_.each(n,(function(t){var e=t.hasOwnProperty("toolbox")?t.toolbox:[];e instanceof Array&&(i=i.concat(e))}));var r=t&&t.toolbox;_.isArray(r)&&(r=r[0]),r||(r={feature:{}},t.toolbox=[r]);var o,a,s=r.feature||(r.feature={}),l=s.brush||(s.brush={}),h=l.type||(l.type=[]);h.push.apply(h,i),o=h,a={},_.each(o,(function(t){a[t]=1})),o.length=0,_.each(a,(function(t,e){o.push(e)})),e&&!h.length&&h.push.apply(h,Xy)}}var Zy=n(2322),$y=_.each;function Ky(t){if(t)for(var e in t)if(t.hasOwnProperty(e))return!0}function Jy(t,e,n){var i={};return $y(e,(function(e){var r,o=i[e]=((r=function(){}).prototype.__hidden=r.prototype,new r);$y(t[e],(function(t,i){if(Zs.isValidType(i)){var r={type:i,visual:t};n&&n(r,e),o[i]=new Zs(r),"opacity"===i&&((r=_.clone(r)).type="colorAlpha",o.__hidden.__alphaForOpacity=new Zs(r))}}))})),i}function Qy(t,e,n){var i;_.each(n,(function(t){e.hasOwnProperty(t)&&Ky(e[t])&&(i=!0)})),i&&_.each(n,(function(n){e.hasOwnProperty(n)&&Ky(e[n])?t[n]=_.clone(e[n]):delete t[n]}))}var t_=n(248);var e_={lineX:n_(0),lineY:n_(1),rect:{point:function(t,e,n){return t&&n.boundingRect.contain(t[0],t[1])},rect:function(t,e,n){return t&&n.boundingRect.intersect(t)}},polygon:{point:function(t,e,n){return t&&n.boundingRect.contain(t[0],t[1])&&t_.l(n.range,t[0],t[1])},rect:function(t,e,n){var i=n.range;if(!t||i.length<=1)return!1;var r=t.x,o=t.y,a=t.width,s=t.height,l=i[0];return!!(t_.l(i,r,o)||t_.l(i,r+a,o)||t_.l(i,r,o+s)||t_.l(i,r+a,o+s)||Jn.A.create(t).contain(l[0],l[1])||(0,qt.linePolygonIntersect)(r,o,r+a,o,i)||(0,qt.linePolygonIntersect)(r,o,r,o+s,i)||(0,qt.linePolygonIntersect)(r+a,o,r+a,o+s,i)||(0,qt.linePolygonIntersect)(r,o+s,r+a,o+s,i))||void 0}}};function n_(t){var e=["x","y"],n=["width","height"];return{point:function(e,n,i){if(e){var r=i.range;return i_(e[t],r)}},rect:function(i,r,o){if(i){var a=o.range,s=[i[e[t]],i[e[t]]+i[n[t]]];return s[1]<s[0]&&s.reverse(),i_(s[0],a)||i_(s[1],a)||i_(a[0],s)||i_(a[1],s)}}}}function i_(t,e){return e[0]<=t&&t<=e[1]}var r_=["inBrush","outOfBrush"],o_="__ecBrushSelect",a_="__ecInBrushSelectEvent";function s_(t){t.eachComponent({mainType:"brush"},(function(e){(e.brushTargetManager=new py(e.option,t)).setInputRanges(e.areas,t)}))}function l_(t,e,n){var i,r,o=[];t.eachComponent({mainType:"brush"},(function(t){n&&"takeGlobalCursor"===n.type&&t.setBrushOption("brush"===n.key?n.brushOption:{brushType:!1})})),s_(t),t.eachComponent({mainType:"brush"},(function(e,n){var a={brushId:e.id,brushIndex:n,brushName:e.name,areas:_.clone(e.areas),selected:[]};o.push(a);var s=e.option,l=s.brushLink,h=[],c=[],u=[],d=!1;n||(i=s.throttleType,r=s.throttleDelay);var p=_.map(e.areas,(function(t){var e=u_[t.brushType],n=_.defaults({boundingRect:e?e(t):void 0},t);return n.selectors=function(t){var e=t.brushType,n={point:function(i){return e_[e].point(i,n,t)},rect:function(i){return e_[e].rect(i,n,t)}};return n}(n),n})),f=Jy(e.option,r_,(function(t){t.mappingMethod="fixed"}));function g(t){return"all"===l||!!h[t]}function m(t){return!!t.length}_.isArray(l)&&_.each(l,(function(t){h[t]=1})),t.eachSeries((function(n,i){var r=u[i]=[];"parallel"===n.subType?function(t,e){var n=t.coordinateSystem;d=d||n.hasAxisBrushed(),g(e)&&n.eachActiveState(t.getData(),(function(t,e){"active"===t&&(c[e]=1)}))}(n,i):function(n,i,r){if(!n.brushSelector||function(t,e){var n=t.option.seriesIndex;return null!=n&&"all"!==n&&(_.isArray(n)?_.indexOf(n,e)<0:e!==n)}(e,i))return;if(_.each(p,(function(i){e.brushTargetManager.controlSeries(i,n,t)&&r.push(i),d=d||m(r)})),g(i)&&m(r)){var o=n.getData();o.each((function(t){c_(n,r,o,t)&&(c[t]=1)}))}}(n,i,r)})),t.eachSeries((function(t,e){var n={seriesId:t.id,seriesIndex:e,seriesName:t.name,dataIndex:[]};a.selected.push(n);var i=u[e],r=t.getData(),o=g(e)?function(t){return c[t]?(n.dataIndex.push(r.getRawIndex(t)),"inBrush"):"outOfBrush"}:function(e){return c_(t,i,r,e)?(n.dataIndex.push(r.getRawIndex(e)),"inBrush"):"outOfBrush"};(g(e)?d:m(i))&&function(t,e,n,i,r,o){var a,s={};function l(t){return(0,Zy.Ez)(n,a,t)}function h(t,e){(0,Zy.oZ)(n,a,t,e)}function c(t,c){a=null==o?t:c;var u=n.getRawDataItem(a);if(!u||!1!==u.visualMap)for(var d=i.call(r,t),p=e[d],f=s[d],g=0,m=f.length;g<m;g++){var v=f[g];p[v]&&p[v].applyVisual(t,l,h)}}_.each(t,(function(t){var n=Zs.prepareVisualTypes(e[t]);s[t]=n})),null==o?n.each(c):n.each([o],c)}(r_,f,r,o)}))})),function(t,e,n,i,r){if(!r)return;var o=t.getZr();if(o[a_])return;o[o_]||(o[o_]=h_);var a=Ke.N(o,o_,n,e);a(t,i)}(e,i,r,o,n)}function h_(t,e){if(!t.isDisposed()){var n=t.getZr();n[a_]=!0,t.dispatchAction({type:"brushSelect",batch:e}),n[a_]=!1}}function c_(t,e,n,i){for(var r=0,o=e.length;r<o;r++){var a=e[r];if(t.brushSelector(i,n,a.selectors,a))return!0}}var u_={rect:function(t){return d_(t.range)},polygon:function(t){for(var e,n=t.range,i=0,r=n.length;i<r;i++){e=e||[[1/0,-1/0],[1/0,-1/0]];var o=n[i];o[0]<e[0][0]&&(e[0][0]=o[0]),o[0]>e[0][1]&&(e[0][1]=o[0]),o[1]<e[1][0]&&(e[1][0]=o[1]),o[1]>e[1][1]&&(e[1][1]=o[1])}return e&&d_(e)}};function d_(t){return new Jn.A(t[0][0],t[1][0],t[0][1]-t[0][0],t[1][1]-t[1][0])}const p_=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return(0,Bt.C6)(e,t),e.prototype.init=function(t,e){this.ecModel=t,this.api=e,this.model,(this._brushController=new eu(e.getZr())).on("brush",_.bind(this._onBrush,this)).mount()},e.prototype.render=function(t,e,n,i){this.model=t,this._updateController(t,e,n,i)},e.prototype.updateTransform=function(t,e,n,i){s_(e),this._updateController(t,e,n,i)},e.prototype.updateVisual=function(t,e,n,i){this.updateTransform(t,e,n,i)},e.prototype.updateView=function(t,e,n,i){this._updateController(t,e,n,i)},e.prototype._updateController=function(t,e,n,i){(!i||i.$from!==t.id)&&this._brushController.setPanels(t.brushTargetManager.makePanelOpts(n)).enableBrush(t.brushOption).updateCovers(t.areas.slice())},e.prototype.dispose=function(){this._brushController.dispose()},e.prototype._onBrush=function(t){var e=this.model.id,n=this.model.brushTargetManager.setOutputRanges(t.areas,this.ecModel);(!t.isEnd||t.removeOnClick)&&this.api.dispatchAction({type:"brush",brushId:e,areas:_.clone(n),$from:e}),t.isEnd&&this.api.dispatchAction({type:"brushEnd",brushId:e,areas:_.clone(n),$from:e})},e.type="brush",e}(ri.A);function f_(t,e){return _.merge({brushType:t.brushType,brushMode:t.brushMode,transformable:t.transformable,brushStyle:new Gi.A(t.brushStyle).getItemStyle(),removeOnClick:t.removeOnClick,z:t.z},e,!0)}const g_=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n.areas=[],n.brushOption={},n}return(0,Bt.C6)(e,t),e.prototype.optionUpdated=function(t,e){var n=this.option;!e&&Qy(n,t,["inBrush","outOfBrush"]);var i=n.inBrush=n.inBrush||{};n.outOfBrush=n.outOfBrush||{color:"#ddd"},i.hasOwnProperty("liftZ")||(i.liftZ=5)},e.prototype.setAreas=function(t){t&&(this.areas=_.map(t,(function(t){return f_(this.option,t)}),this))},e.prototype.setBrushOption=function(t){this.brushOption=f_(this.option,t),this.brushType=this.brushOption.brushType},e.type="brush",e.dependencies=["geo","grid","xAxis","yAxis","parallel","series"],e.defaultOption={seriesIndex:"all",brushType:"rect",brushMode:"single",transformable:!0,brushStyle:{borderWidth:1,color:"rgba(210,219,238,0.3)",borderColor:"#D2DBEE"},throttleType:"fixRate",throttleDelay:0,removeOnClick:!0,z:1e4},e}(oi.A);var m_=["rect","polygon","lineX","lineY","keep","clear"];const v_=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return(0,Bt.C6)(e,t),e.prototype.render=function(t,e,n){var i,r,o;e.eachComponent({mainType:"brush"},(function(t){i=t.brushType,r=t.brushOption.brushMode||"single",o=o||!!t.areas.length})),this._brushType=i,this._brushMode=r,_.each(t.get("type",!0),(function(e){t.setIconStatus(e,("keep"===e?"multiple"===r:"clear"===e?o:e===i)?"emphasis":"normal")}))},e.prototype.updateView=function(t,e,n){this.render(t,e,n)},e.prototype.getIcons=function(){var t=this.model,e=t.get("icon",!0),n={};return _.each(t.get("type",!0),(function(t){e[t]&&(n[t]=e[t])})),n},e.prototype.onclick=function(t,e,n){var i=this._brushType,r=this._brushMode;"clear"===n?(e.dispatchAction({type:"axisAreaSelect",intervals:[]}),e.dispatchAction({type:"brush",command:"clear",areas:[]})):e.dispatchAction({type:"takeGlobalCursor",key:"brush",brushOption:{brushType:"keep"===n?i:i!==n&&n,brushMode:"keep"===n?"multiple"===r?"single":"multiple":r}})},e.getDefaultOption=function(t){return{show:!0,type:m_.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:t.getLocaleModel().get(["toolbox","brush","title"])}},e}(Iv);var y_=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n.layoutMode={type:"box",ignoreSize:!0},n}return(0,Bt.C6)(e,t),e.type="title",e.defaultOption={z:6,show:!0,text:"",target:"blank",subtext:"",subtarget:"blank",left:0,top:0,backgroundColor:"rgba(0,0,0,0)",borderColor:"#ccc",borderWidth:0,padding:5,itemGap:10,textStyle:{fontSize:18,fontWeight:"bold",color:"#464646"},subtextStyle:{fontSize:12,color:"#6E7079"}},e}(oi.A),__=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return(0,Bt.C6)(e,t),e.prototype.render=function(t,e,n){if(this.group.removeAll(),t.get("show")){var i=this.group,r=t.getModel("textStyle"),o=t.getModel("subtextStyle"),a=t.get("textAlign"),s=_.retrieve2(t.get("textBaseline"),t.get("textVerticalAlign")),l=new Z.Ay({style:(0,Jt.VB)(r,{text:t.get("text"),fill:r.getTextColor()},{disableBox:!0}),z2:10}),h=l.getBoundingRect(),c=t.get("subtext"),u=new Z.Ay({style:(0,Jt.VB)(o,{text:c,fill:o.getTextColor(),y:h.height+t.get("itemGap"),verticalAlign:"top"},{disableBox:!0}),z2:10}),d=t.get("link"),p=t.get("sublink"),f=t.get("triggerEvent",!0);l.silent=!d&&!f,u.silent=!p&&!f,d&&l.on("click",(function(){(0,Ie.JW)(d,"_"+t.get("target"))})),p&&u.on("click",(function(){(0,Ie.JW)(p,"_"+t.get("subtarget"))})),(0,Xt.z)(l).eventData=(0,Xt.z)(u).eventData=f?{componentType:"title",componentIndex:t.componentIndex}:null,i.add(l),c&&i.add(u);var g=i.getBoundingRect(),m=t.getBoxLayoutParams();m.width=g.width,m.height=g.height;var v=(0,Mn.dV)(m,{width:n.getWidth(),height:n.getHeight()},t.get("padding"));a||("middle"===(a=t.get("left")||t.get("right"))&&(a="center"),"right"===a?v.x+=v.width:"center"===a&&(v.x+=v.width/2)),s||("center"===(s=t.get("top")||t.get("bottom"))&&(s="middle"),"bottom"===s?v.y+=v.height:"middle"===s&&(v.y+=v.height/2),s=s||"top"),i.x=v.x,i.y=v.y,i.markRedraw();var y={align:a,verticalAlign:s};l.setStyle(y),u.setStyle(y),g=i.getBoundingRect();var x=v.margin,b=t.getItemStyle(["color","opacity"]);b.fill=t.get("backgroundColor");var w=new be.A({shape:{x:g.x-x[3],y:g.y-x[0],width:g.width+x[1]+x[3],height:g.height+x[0]+x[2],r:t.get("borderRadius")},style:b,subPixelOptimize:!0,silent:!0});i.add(w)}},e.type="title",e}(ri.A);var x_=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n.layoutMode="box",n}return(0,Bt.C6)(e,t),e.prototype.init=function(t,e,n){this.mergeDefaultAndTheme(t,n),this._initData()},e.prototype.mergeOption=function(e){t.prototype.mergeOption.apply(this,arguments),this._initData()},e.prototype.setCurrentIndex=function(t){null==t&&(t=this.option.currentIndex);var e=this._data.count();this.option.loop?t=(t%e+e)%e:(t>=e&&(t=e-1),t<0&&(t=0)),this.option.currentIndex=t},e.prototype.getCurrentIndex=function(){return this.option.currentIndex},e.prototype.isIndexMax=function(){return this.getCurrentIndex()>=this._data.count()-1},e.prototype.setPlayState=function(t){this.option.autoPlay=!!t},e.prototype.getPlayState=function(){return!!this.option.autoPlay},e.prototype._initData=function(){var t,e=this.option,n=e.data||[],i=e.axisType,r=this._names=[];"category"===i?(t=[],(0,_.each)(n,(function(e,n){var i,o=(0,ce.vS)((0,ce.vj)(e),"");(0,_.isObject)(e)?(i=(0,_.clone)(e)).value=n:i=n,t.push(i),r.push(o)}))):t=n;var o={category:"ordinal",time:"time",value:"number"}[i]||"number";(this._data=new Un.A([{name:"value",type:o}],this)).initData(t,r)},e.prototype.getData=function(){return this._data},e.prototype.getCategories=function(){if("category"===this.get("axisType"))return this._names.slice()},e.type="timeline",e.defaultOption={z:4,show:!0,axisType:"time",realtime:!0,left:"20%",top:null,right:"20%",bottom:0,width:null,height:40,padding:5,controlPosition:"left",autoPlay:!1,rewind:!1,loop:!0,playInterval:2e3,currentIndex:0,itemStyle:{},label:{color:"#000"},data:[]},e}(oi.A);const b_=x_;var w_=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return(0,Bt.C6)(e,t),e.type="timeline.slider",e.defaultOption=(0,Ze.G_)(b_.defaultOption,{backgroundColor:"rgba(0,0,0,0)",borderColor:"#ccc",borderWidth:0,orient:"horizontal",inverse:!1,tooltip:{trigger:"item"},symbol:"circle",symbolSize:12,lineStyle:{show:!0,width:2,color:"#DAE1F5"},label:{position:"auto",show:!0,interval:"auto",rotate:0,color:"#A4B1D7"},itemStyle:{color:"#A4B1D7",borderWidth:1},checkpointStyle:{symbol:"circle",symbolSize:15,color:"#316bf3",borderColor:"#fff",borderWidth:2,shadowBlur:2,shadowOffsetX:1,shadowOffsetY:1,shadowColor:"rgba(0, 0, 0, 0.3)",animation:!0,animationDuration:300,animationEasing:"quinticInOut"},controlStyle:{show:!0,showPlayBtn:!0,showPrevBtn:!0,showNextBtn:!0,itemSize:24,itemGap:12,position:"left",playIcon:"path://M31.6,53C17.5,53,6,41.5,6,27.4S17.5,1.8,31.6,1.8C45.7,1.8,57.2,13.3,57.2,27.4S45.7,53,31.6,53z M31.6,3.3 C18.4,3.3,7.5,14.1,7.5,27.4c0,13.3,10.8,24.1,24.1,24.1C44.9,51.5,55.7,40.7,55.7,27.4C55.7,14.1,44.9,3.3,31.6,3.3z M24.9,21.3 c0-2.2,1.6-3.1,3.5-2l10.5,6.1c1.899,1.1,1.899,2.9,0,4l-10.5,6.1c-1.9,1.1-3.5,0.2-3.5-2V21.3z",stopIcon:"path://M30.9,53.2C16.8,53.2,5.3,41.7,5.3,27.6S16.8,2,30.9,2C45,2,56.4,13.5,56.4,27.6S45,53.2,30.9,53.2z M30.9,3.5C17.6,3.5,6.8,14.4,6.8,27.6c0,13.3,10.8,24.1,24.101,24.1C44.2,51.7,55,40.9,55,27.6C54.9,14.4,44.1,3.5,30.9,3.5z M36.9,35.8c0,0.601-0.4,1-0.9,1h-1.3c-0.5,0-0.9-0.399-0.9-1V19.5c0-0.6,0.4-1,0.9-1H36c0.5,0,0.9,0.4,0.9,1V35.8z M27.8,35.8 c0,0.601-0.4,1-0.9,1h-1.3c-0.5,0-0.9-0.399-0.9-1V19.5c0-0.6,0.4-1,0.9-1H27c0.5,0,0.9,0.4,0.9,1L27.8,35.8L27.8,35.8z",nextIcon:"M2,18.5A1.52,1.52,0,0,1,.92,18a1.49,1.49,0,0,1,0-2.12L7.81,9.36,1,3.11A1.5,1.5,0,1,1,3,.89l8,7.34a1.48,1.48,0,0,1,.49,1.09,1.51,1.51,0,0,1-.46,1.1L3,18.08A1.5,1.5,0,0,1,2,18.5Z",prevIcon:"M10,.5A1.52,1.52,0,0,1,11.08,1a1.49,1.49,0,0,1,0,2.12L4.19,9.64,11,15.89a1.5,1.5,0,1,1-2,2.22L1,10.77A1.48,1.48,0,0,1,.5,9.68,1.51,1.51,0,0,1,1,8.58L9,.92A1.5,1.5,0,0,1,10,.5Z",prevBtnSize:18,nextBtnSize:18,color:"#A4B1D7",borderColor:"#A4B1D7",borderWidth:1},emphasis:{label:{show:!0,color:"#6f778d"},itemStyle:{color:"#316BF3"},controlStyle:{color:"#316BF3",borderColor:"#316BF3",borderWidth:2}},progress:{lineStyle:{color:"#316BF3"},itemStyle:{color:"#316BF3"},label:{color:"#6f778d"}},data:[]}),e}(b_);(0,_.mixin)(w_,Gy.J.prototype);const S_=w_;const T_=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return(0,Bt.C6)(e,t),e.type="timeline",e}(ri.A);const M_=function(t){function e(e,n,i,r){var o=t.call(this,e,n,i)||this;return o.type=r||"value",o}return(0,Bt.C6)(e,t),e.prototype.getLabelModel=function(){return this.model.getModel("label")},e.prototype.isHorizontal=function(){return"horizontal"===this.model.get("orient")},e}(Ti.A);var A_=n(1707),C_=n(8689),I_=Math.PI,E_=(0,ce.$r)(),k_=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return(0,Bt.C6)(e,t),e.prototype.init=function(t,e){this.api=e},e.prototype.render=function(t,e,n){if(this.model=t,this.api=n,this.ecModel=e,this.group.removeAll(),t.get("show",!0)){var i=this._layout(t,n),r=this._createGroup("_mainGroup"),o=this._createGroup("_labelGroup"),a=this._axis=this._createAxis(i,t);t.formatTooltip=function(t){var e=a.scale.getLabel({value:t});return(0,br.Qx)("nameValue",{noName:!0,value:e})},(0,_.each)(["AxisLine","AxisTick","Control","CurrentPointer"],(function(e){this["_render"+e](i,r,a,t)}),this),this._renderAxisLabel(i,o,a,t),this._position(i,t)}this._doPlayStop(),this._updateTicksStatus()},e.prototype.remove=function(){this._clearTimer(),this.group.removeAll()},e.prototype.dispose=function(){this._clearTimer()},e.prototype._layout=function(t,e){var n,i,r,o,a=t.get(["label","position"]),s=t.get("orient"),l=function(t,e){return Mn.dV(t.getBoxLayoutParams(),{width:e.getWidth(),height:e.getHeight()},t.get("padding"))}(t,e),h={horizontal:"center",vertical:(n=null==a||"auto"===a?"horizontal"===s?l.y+l.height/2<e.getHeight()/2?"-":"+":l.x+l.width/2<e.getWidth()/2?"+":"-":(0,_.isString)(a)?{horizontal:{top:"-",bottom:"+"},vertical:{left:"-",right:"+"}}[s][a]:a)>=0||"+"===n?"left":"right"},c={horizontal:n>=0||"+"===n?"top":"bottom",vertical:"middle"},u={horizontal:0,vertical:I_/2},d="vertical"===s?l.height:l.width,p=t.getModel("controlStyle"),f=p.get("show",!0),g=f?p.get("itemSize"):0,m=f?p.get("itemGap"):0,v=g+m,y=t.get(["label","rotate"])||0;y=y*I_/180;var x=p.get("position",!0),b=f&&p.get("showPlayBtn",!0),w=f&&p.get("showPrevBtn",!0),S=f&&p.get("showNextBtn",!0),T=0,M=d;"left"===x||"bottom"===x?(b&&(i=[0,0],T+=v),w&&(r=[T,0],T+=v),S&&(o=[M-g,0],M-=v)):(b&&(i=[M-g,0],M-=v),w&&(r=[0,0],T+=v),S&&(o=[M-g,0],M-=v));var A=[T,M];return t.get("inverse")&&A.reverse(),{viewRect:l,mainLength:d,orient:s,rotation:u[s],labelRotation:y,labelPosOpt:n,labelAlign:t.get(["label","align"])||h[s],labelBaseline:t.get(["label","verticalAlign"])||t.get(["label","baseline"])||c[s],playPosition:i,prevBtnPosition:r,nextBtnPosition:o,axisExtent:A,controlSize:g,controlGap:m}},e.prototype._position=function(t,e){var n=this._mainGroup,i=this._labelGroup,r=t.viewRect;if("vertical"===t.orient){var o=_i.create(),a=r.x,s=r.y+r.height;_i.translate(o,o,[-a,-s]),_i.rotate(o,o,-I_/2),_i.translate(o,o,[a,s]),(r=r.clone()).applyTransform(o)}var l=m(r),h=m(n.getBoundingRect()),c=m(i.getBoundingRect()),u=[n.x,n.y],d=[i.x,i.y];d[0]=u[0]=l[0][0];var p,f=t.labelPosOpt;null==f||(0,_.isString)(f)?(v(u,h,l,1,p="+"===f?0:1),v(d,c,l,1,1-p)):(v(u,h,l,1,p=f>=0?0:1),d[1]=u[1]+f);function g(t){t.originX=l[0][0]-t.x,t.originY=l[1][0]-t.y}function m(t){return[[t.x,t.x+t.width],[t.y,t.y+t.height]]}function v(t,e,n,i,r){t[i]+=n[i][r]-e[i][r]}n.setPosition(u),i.setPosition(d),n.rotation=i.rotation=t.rotation,g(n),g(i)},e.prototype._createAxis=function(t,e){var n=e.getData(),i=e.get("axisType"),r=function(t,e){if(e=e||t.get("type"),e)switch(e){case"category":return new A_.A({ordinalMeta:t.getCategories(),extent:[1/0,-1/0]});case"time":return new C_.A({locale:t.ecModel.getLocaleModel(),useUTC:t.ecModel.get("useUTC")});default:return new Li.A}}(e,i);r.getTicks=function(){return n.mapArray(["value"],(function(t){return{value:t}}))};var o=n.getDataExtent("value");r.setExtent(o[0],o[1]),r.calcNiceTicks();var a=new M_("value",r,t.axisExtent,i);return a.model=e,a},e.prototype._createGroup=function(t){var e=this[t]=new jt.A;return this.group.add(e),e},e.prototype._renderAxisLine=function(t,e,n,i){var r=n.getExtent();if(i.get(["lineStyle","show"])){var o=new zi.A({shape:{x1:r[0],y1:0,x2:r[1],y2:0},style:(0,_.extend)({lineCap:"round"},i.getModel("lineStyle").getLineStyle()),silent:!0,z2:1});e.add(o);var a=this._progressLine=new zi.A({shape:{x1:r[0],x2:this._currentPointer?this._currentPointer.x:r[0],y1:0,y2:0},style:(0,_.defaults)({lineCap:"round",lineWidth:o.style.lineWidth},i.getModel(["progress","lineStyle"]).getLineStyle()),silent:!0,z2:1});e.add(a)}},e.prototype._renderAxisTick=function(t,e,n,i){var r=this,o=i.getData(),a=n.scale.getTicks();this._tickSymbols=[],(0,_.each)(a,(function(t){var a=n.dataToCoord(t.value),s=o.getItemModel(t.value),l=s.getModel("itemStyle"),h=s.getModel(["emphasis","itemStyle"]),c=s.getModel(["progress","itemStyle"]),u={x:a,y:0,onclick:(0,_.bind)(r._changeTimeline,r,t.value)},d=L_(s,l,e,u);d.ensureState("emphasis").style=h.getItemStyle(),d.ensureState("progress").style=c.getItemStyle(),(0,Yt.iJ)(d);var p=(0,Xt.z)(d);s.get("tooltip")?(p.dataIndex=t.value,p.dataModel=i):p.dataIndex=p.dataModel=null,r._tickSymbols.push(d)}))},e.prototype._renderAxisLabel=function(t,e,n,i){var r=this;if(n.getLabelModel().get("show")){var o=i.getData(),a=n.getViewLabels();this._tickLabels=[],(0,_.each)(a,(function(i){var a=i.tickValue,s=o.getItemModel(a),l=s.getModel("label"),h=s.getModel(["emphasis","label"]),c=s.getModel(["progress","label"]),u=n.dataToCoord(i.tickValue),d=new Z.Ay({x:u,y:0,rotation:t.labelRotation-t.rotation,onclick:(0,_.bind)(r._changeTimeline,r,a),silent:!1,style:(0,Jt.VB)(l,{text:i.formattedLabel,align:t.labelAlign,verticalAlign:t.labelBaseline})});d.ensureState("emphasis").style=(0,Jt.VB)(h),d.ensureState("progress").style=(0,Jt.VB)(c),e.add(d),(0,Yt.iJ)(d),E_(d).dataIndex=a,r._tickLabels.push(d)}))}},e.prototype._renderControl=function(t,e,n,i){var r=t.controlSize,o=t.rotation,a=i.getModel("controlStyle").getItemStyle(),s=i.getModel(["emphasis","controlStyle"]).getItemStyle(),l=i.getPlayState(),c=i.get("inverse",!0);function u(t,n,l,c){if(t){var u=(0,h.lo)((0,_.retrieve2)(i.get(["controlStyle",n+"BtnSize"]),r),r),d=function(t,e,n,i){var r=i.style,o=qt.createIcon(t.get(["controlStyle",e]),i||{},new Jn.A(n[0],n[1],n[2],n[3]));r&&o.setStyle(r);return o}(i,n+"Icon",[0,-u/2,u,u],{x:t[0],y:t[1],originX:r/2,originY:0,rotation:c?-o:0,rectHover:!0,style:a,onclick:l});d.ensureState("emphasis").style=s,e.add(d),(0,Yt.iJ)(d)}}u(t.nextBtnPosition,"next",(0,_.bind)(this._changeTimeline,this,c?"-":"+")),u(t.prevBtnPosition,"prev",(0,_.bind)(this._changeTimeline,this,c?"+":"-")),u(t.playPosition,l?"stop":"play",(0,_.bind)(this._handlePlayClick,this,!l),!0)},e.prototype._renderCurrentPointer=function(t,e,n,i){var r=i.getData(),o=i.getCurrentIndex(),a=r.getItemModel(o).getModel("checkpointStyle"),s=this,l={onCreate:function(t){t.draggable=!0,t.drift=(0,_.bind)(s._handlePointerDrag,s),t.ondragend=(0,_.bind)(s._handlePointerDragend,s),D_(t,s._progressLine,o,n,i,!0)},onUpdate:function(t){D_(t,s._progressLine,o,n,i)}};this._currentPointer=L_(a,a,this._mainGroup,{},this._currentPointer,l)},e.prototype._handlePlayClick=function(t){this._clearTimer(),this.api.dispatchAction({type:"timelinePlayChange",playState:t,from:this.uid})},e.prototype._handlePointerDrag=function(t,e,n){this._clearTimer(),this._pointerChangeTimeline([n.offsetX,n.offsetY])},e.prototype._handlePointerDragend=function(t){this._pointerChangeTimeline([t.offsetX,t.offsetY],!0)},e.prototype._pointerChangeTimeline=function(t,e){var n=this._toAxisCoord(t)[0],i=this._axis,r=Se.Y6(i.getExtent().slice());n>r[1]&&(n=r[1]),n<r[0]&&(n=r[0]),this._currentPointer.x=n,this._currentPointer.markRedraw();var o=this._progressLine;o&&(o.shape.x2=n,o.dirty());var a=this._findNearestTick(n),s=this.model;(e||a!==s.getCurrentIndex()&&s.get("realtime"))&&this._changeTimeline(a)},e.prototype._doPlayStop=function(){var t=this;this._clearTimer(),this.model.getPlayState()&&(this._timer=setTimeout((function(){var e=t.model;t._changeTimeline(e.getCurrentIndex()+(e.get("rewind",!0)?-1:1))}),this.model.get("playInterval")))},e.prototype._toAxisCoord=function(t){var e=this._mainGroup.getLocalTransform();return qt.applyTransform(t,e,!0)},e.prototype._findNearestTick=function(t){var e,n=this.model.getData(),i=1/0,r=this._axis;return n.each(["value"],(function(n,o){var a=r.dataToCoord(n),s=Math.abs(a-t);s<i&&(i=s,e=o)})),e},e.prototype._clearTimer=function(){this._timer&&(clearTimeout(this._timer),this._timer=null)},e.prototype._changeTimeline=function(t){var e=this.model.getCurrentIndex();"+"===t?t=e+1:"-"===t&&(t=e-1),this.api.dispatchAction({type:"timelineChange",currentIndex:t,from:this.uid})},e.prototype._updateTicksStatus=function(){var t=this.model.getCurrentIndex(),e=this._tickSymbols,n=this._tickLabels;if(e)for(var i=0;i<e.length;i++)e&&e[i]&&e[i].toggleState("progress",i<t);if(n)for(i=0;i<n.length;i++)n&&n[i]&&n[i].toggleState("progress",E_(n[i]).dataIndex<=t)},e.type="timeline.slider",e}(T_);function L_(t,e,n,i,r,o){var a=e.get("color");if(r)r.setColor(a),n.add(r),o&&o.onUpdate(r);else{var s=t.get("symbol");(r=(0,Vt.v5)(s,-1,-1,2,2,a)).setStyle("strokeNoScale",!0),n.add(r),o&&o.onCreate(r)}var l=e.getItemStyle(["color"]);r.setStyle(l),i=(0,_.merge)({rectHover:!0,z2:100},i,!0);var h=(0,Vt.xU)(t.get("symbolSize"));i.scaleX=h[0]/2,i.scaleY=h[1]/2;var c=(0,Vt.hV)(t.get("symbolOffset"),h);c&&(i.x=(i.x||0)+c[0],i.y=(i.y||0)+c[1]);var u=t.get("symbolRotate");return i.rotation=(u||0)*Math.PI/180||0,r.attr(i),r.updateTransform(),r}function D_(t,e,n,i,r,o){if(!t.dragging){var a=r.getModel("checkpointStyle"),s=i.dataToCoord(r.getData().get("value",n));if(o||!a.get("animation",!0))t.attr({x:s,y:0}),e&&e.attr({shape:{x2:s}});else{var l={duration:a.get("animationDuration",!0),easing:a.get("animationEasing",!0)};t.stopAnimation(null,!0),t.animateTo({x:s,y:0},l),e&&e.animateTo({shape:{x2:s}},l)}}}const P_=k_;function R_(t){var e=t&&t.timeline;_.isArray(e)||(e=e?[e]:[]),_.each(e,(function(t){t&&function(t){var e=t.type,n={number:"value",time:"time"};n[e]&&(t.axisType=n[e],delete t.type);if(O_(t),N_(t,"controlPosition")){var i=t.controlStyle||(t.controlStyle={});N_(i,"position")||(i.position=t.controlPosition),"none"!==i.position||N_(i,"show")||(i.show=!1,delete i.position),delete t.controlPosition}_.each(t.data||[],(function(t){_.isObject(t)&&!_.isArray(t)&&(!N_(t,"value")&&N_(t,"name")&&(t.value=t.name),O_(t))}))}(t)}))}function O_(t){var e=t.itemStyle||(t.itemStyle={}),n=e.emphasis||(e.emphasis={}),i=t.label||t.label||{},r=i.normal||(i.normal={}),o={normal:1,emphasis:1};_.each(i,(function(t,e){o[e]||N_(r,e)||(r[e]=t)})),n.label&&!N_(i,"emphasis")&&(i.emphasis=n.label,delete n.label)}function N_(t,e){return t.hasOwnProperty(e)}function F_(t,e){if(!t)return!1;for(var n=(0,_.isArray)(t)?t:[t],i=0;i<n.length;i++)if(n[i]&&n[i][e])return!0;return!1}function B_(t){(0,ce.M5)(t,"label",["show"])}var z_=(0,ce.$r)(),G_=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n.createdBySelf=!1,n}return(0,Bt.C6)(e,t),e.prototype.init=function(t,e,n){this.mergeDefaultAndTheme(t,n),this._mergeOption(t,n,!1,!0)},e.prototype.isAnimationEnabled=function(){if(vg.A.node)return!1;var t=this.__hostSeries;return this.getShallow("animation")&&t&&t.isAnimationEnabled()},e.prototype.mergeOption=function(t,e){this._mergeOption(t,e,!1,!1)},e.prototype._mergeOption=function(t,e,n,i){var r=this.mainType;n||e.eachSeries((function(t){var n=t.get(this.mainType,!0),o=z_(t)[r];n&&n.data?(o?o._mergeOption(n,e,!0):(i&&B_(n),_.each(n.data,(function(t){t instanceof Array?(B_(t[0]),B_(t[1])):B_(t)})),o=this.createMarkerModelFromSeries(n,this,e),_.extend(o,{mainType:this.mainType,seriesIndex:t.seriesIndex,name:t.name,createdBySelf:!0}),o.__hostSeries=t),z_(t)[r]=o):z_(t)[r]=null}),this)},e.prototype.formatTooltip=function(t,e,n){var i=this.getData(),r=this.getRawValue(t),o=i.getName(t);return(0,br.Qx)("section",{header:this.name,blocks:[(0,br.Qx)("nameValue",{name:o,value:r,noName:!o,noValue:null==r})]})},e.prototype.getData=function(){return this._data},e.prototype.setData=function(t){this._data=t},e.prototype.getDataParams=function(t,e){var n=Gy.J.prototype.getDataParams.call(this,t,e),i=this.__hostSeries;return i&&(n.seriesId=i.id,n.seriesName=i.name,n.seriesType=i.subType),n},e.getMarkerModelFromSeries=function(t,e){return z_(t)[e]},e.type="marker",e.dependencies=["series","grid","polar","geo"],e}(oi.A);_.mixin(G_,Gy.J.prototype);const V_=G_;const j_=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return(0,Bt.C6)(e,t),e.prototype.createMarkerModelFromSeries=function(t,n,i){return new e(t,n,i)},e.type="markPoint",e.defaultOption={z:5,symbol:"pin",symbolSize:50,tooltip:{trigger:"item"},label:{show:!0,position:"inside"},itemStyle:{borderWidth:2},emphasis:{label:{show:!0}}},e}(V_);var H_=n(4224);function W_(t){return!(isNaN(parseFloat(t.x))&&isNaN(parseFloat(t.y)))}function U_(t,e,n,i,r,o){var a=[],s=(0,oe.sJ)(e,i)?e.getCalculationInfo("stackResultDimension"):i,l=K_(e,s,t),h=e.indicesOfNearest(s,l)[0];a[r]=e.get(n,h),a[o]=e.get(s,h);var c=e.get(i,h),u=Se.XV(e.get(i,h));return(u=Math.min(u,20))>=0&&(a[o]=+a[o].toFixed(u)),[a,c]}var q_={min:(0,_.curry)(U_,"min"),max:(0,_.curry)(U_,"max"),average:(0,_.curry)(U_,"average"),median:(0,_.curry)(U_,"median")};function X_(t,e){if(e){var n=t.getData(),i=t.coordinateSystem,r=i&&i.dimensions;if(!function(t){return!isNaN(parseFloat(t.x))&&!isNaN(parseFloat(t.y))}(e)&&!(0,_.isArray)(e.coord)&&(0,_.isArray)(r)){var o=Y_(e,n,i,t);if((e=(0,_.clone)(e)).type&&q_[e.type]&&o.baseAxis&&o.valueAxis){var a=(0,_.indexOf)(r,o.baseAxis.dim),s=(0,_.indexOf)(r,o.valueAxis.dim),l=q_[e.type](n,o.baseDataDim,o.valueDataDim,a,s);e.coord=l[0],e.value=l[1]}else e.coord=[null!=e.xAxis?e.xAxis:e.radiusAxis,null!=e.yAxis?e.yAxis:e.angleAxis]}if(null!=e.coord&&(0,_.isArray)(r))for(var h=e.coord,c=0;c<2;c++)q_[h[c]]&&(h[c]=K_(n,n.mapDimension(r[c]),h[c]));else e.coord=[];return e}}function Y_(t,e,n,i){var r={};return null!=t.valueIndex||null!=t.valueDim?(r.valueDataDim=null!=t.valueIndex?e.getDimension(t.valueIndex):t.valueDim,r.valueAxis=n.getAxis(function(t,e){var n=t.getData().getDimensionInfo(e);return n&&n.coordDim}(i,r.valueDataDim)),r.baseAxis=n.getOtherAxis(r.valueAxis),r.baseDataDim=e.mapDimension(r.baseAxis.dim)):(r.baseAxis=i.getBaseAxis(),r.valueAxis=n.getOtherAxis(r.baseAxis),r.baseDataDim=e.mapDimension(r.baseAxis.dim),r.valueDataDim=e.mapDimension(r.valueAxis.dim)),r}function Z_(t,e){return!(t&&t.containData&&e.coord&&!W_(e))||t.containData(e.coord)}function $_(t,e){return t?function(t,n,i,r){var o=r<2?t.coord&&t.coord[r]:t.value;return(0,H_.Pn)(o,e[r])}:function(t,n,i,r){return(0,H_.Pn)(t.value,e[r])}}function K_(t,e,n){if("average"===n){var i=0,r=0;return t.each(e,(function(t,e){isNaN(t)||(i+=t,r++)})),i/r}return"median"===n?t.getMedian(e):t.getDataExtent(e)["max"===n?1:0]}var J_=(0,ce.$r)();const Q_=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return(0,Bt.C6)(e,t),e.prototype.init=function(){this.markerGroupMap=(0,_.createHashMap)()},e.prototype.render=function(t,e,n){var i=this,r=this.markerGroupMap;r.each((function(t){J_(t).keep=!1})),e.eachSeries((function(t){var r=V_.getMarkerModelFromSeries(t,i.type);r&&i.renderSeries(t,r,e,n)})),r.each((function(t){!J_(t).keep&&i.group.remove(t.group)}))},e.prototype.markKeep=function(t){J_(t).keep=!0},e.prototype.toggleBlurSeries=function(t,e){var n=this;(0,_.each)(t,(function(t){var i=V_.getMarkerModelFromSeries(t,n.type);i&&i.getData().eachItemGraphicEl((function(t){t&&(e?(0,Yt.QX)(t):(0,Yt.JC)(t))}))}))},e.type="marker",e}(ri.A);function tx(t,e,n){var i=e.coordinateSystem;t.each((function(r){var o,a=t.getItemModel(r),s=Se.lo(a.get("x"),n.getWidth()),l=Se.lo(a.get("y"),n.getHeight());if(isNaN(s)||isNaN(l)){if(e.getMarkerPosition)o=e.getMarkerPosition(t.getValues(t.dimensions,r));else if(i){var h=t.get(i.dimensions[0],r),c=t.get(i.dimensions[1],r);o=i.dataToPoint([h,c])}}else o=[s,l];isNaN(s)||(o[0]=s),isNaN(l)||(o[1]=l),t.setItemLayout(r,o)}))}const ex=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return(0,Bt.C6)(e,t),e.prototype.updateTransform=function(t,e,n){e.eachSeries((function(t){var e=V_.getMarkerModelFromSeries(t,"markPoint");e&&(tx(e.getData(),t,n),this.markerGroupMap.get(t.id).updateLayout())}),this)},e.prototype.renderSeries=function(t,e,n,i){var r=t.coordinateSystem,o=t.id,a=t.getData(),s=this.markerGroupMap,l=s.get(o)||s.set(o,new re),h=function(t,e,n){var i;i=t?(0,_.map)(t&&t.dimensions,(function(t){var n=e.getData().getDimensionInfo(e.getData().mapDimension(t))||{};return(0,_.extend)((0,_.extend)({},n),{name:t,ordinalMeta:null})})):[{name:"value",type:"float"}];var r=new Un.A(i,n),o=(0,_.map)(n.get("data"),(0,_.curry)(X_,e));t&&(o=(0,_.filter)(o,(0,_.curry)(Z_,t)));var a=$_(!!t,i);return r.initData(o,null,a),r}(r,t,e);e.setData(h),tx(e.getData(),t,i),h.each((function(t){var n=h.getItemModel(t),i=n.getShallow("symbol"),r=n.getShallow("symbolSize"),o=n.getShallow("symbolRotate"),s=n.getShallow("symbolOffset"),l=n.getShallow("symbolKeepAspect");if((0,_.isFunction)(i)||(0,_.isFunction)(r)||(0,_.isFunction)(o)||(0,_.isFunction)(s)){var c=e.getRawValue(t),u=e.getDataParams(t);(0,_.isFunction)(i)&&(i=i(c,u)),(0,_.isFunction)(r)&&(r=r(c,u)),(0,_.isFunction)(o)&&(o=o(c,u)),(0,_.isFunction)(s)&&(s=s(c,u))}var d=n.getModel("itemStyle").getItemStyle(),p=(0,Zy.rI)(a,"color");d.fill||(d.fill=p),h.setItemVisual(t,{symbol:i,symbolSize:r,symbolRotate:o,symbolOffset:s,symbolKeepAspect:l,style:d})})),l.updateData(h),this.group.add(l.group),h.eachItemGraphicEl((function(t){t.traverse((function(t){(0,Xt.z)(t).dataModel=e}))})),this.markKeep(l),l.group.silent=e.get("silent")||t.get("silent")},e.type="markPoint",e}(Q_);const nx=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return(0,Bt.C6)(e,t),e.prototype.createMarkerModelFromSeries=function(t,n,i){return new e(t,n,i)},e.type="markLine",e.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"},e}(V_);var ix=(0,ce.$r)(),rx=function(t,e,n,i){var r,o=t.getData();if((0,_.isArray)(i))r=i;else{var a=i.type;if("min"===a||"max"===a||"average"===a||"median"===a||null!=i.xAxis||null!=i.yAxis){var s=void 0,l=void 0;if(null!=i.yAxis||null!=i.xAxis)s=e.getAxis(null!=i.yAxis?"y":"x"),l=(0,_.retrieve)(i.yAxis,i.xAxis);else{var h=Y_(i,o,e,t);s=h.valueAxis,l=K_(o,(0,oe.me)(o,h.valueDataDim),a)}var c="x"===s.dim?0:1,u=1-c,d=(0,_.clone)(i),p={coord:[]};d.type=null,d.coord=[],d.coord[u]=-1/0,p.coord[u]=1/0;var f=n.get("precision");f>=0&&(0,_.isNumber)(l)&&(l=+l.toFixed(Math.min(f,20))),d.coord[c]=p.coord[c]=l,r=[d,p,{type:a,valueIndex:i.valueIndex,value:l}]}else r=[]}var g=[X_(t,r[0]),X_(t,r[1]),(0,_.extend)({},r[2])];return g[2].type=g[2].type||null,(0,_.merge)(g[2],g[0]),(0,_.merge)(g[2],g[1]),g};function ox(t){return!isNaN(t)&&!isFinite(t)}function ax(t,e,n,i){var r=1-t,o=i.dimensions[t];return ox(e[r])&&ox(n[r])&&e[t]===n[t]&&i.getAxis(o).containData(e[t])}function sx(t,e){if("cartesian2d"===t.type){var n=e[0].coord,i=e[1].coord;if(n&&i&&(ax(1,n,i,t)||ax(0,n,i,t)))return!0}return Z_(t,e[0])&&Z_(t,e[1])}function lx(t,e,n,i,r){var o,a=i.coordinateSystem,s=t.getItemModel(e),l=Se.lo(s.get("x"),r.getWidth()),h=Se.lo(s.get("y"),r.getHeight());if(isNaN(l)||isNaN(h)){if(i.getMarkerPosition)o=i.getMarkerPosition(t.getValues(t.dimensions,e));else{var c=a.dimensions,u=t.get(c[0],e),d=t.get(c[1],e);o=a.dataToPoint([u,d])}if(Ce(a,"cartesian2d")){var p=a.getAxis("x"),f=a.getAxis("y");c=a.dimensions;ox(t.get(c[0],e))?o[0]=p.toGlobalCoord(p.getExtent()[n?0:1]):ox(t.get(c[1],e))&&(o[1]=f.toGlobalCoord(f.getExtent()[n?0:1]))}isNaN(l)||(o[0]=l),isNaN(h)||(o[1]=h)}else o=[l,h];t.setItemLayout(e,o)}const hx=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return(0,Bt.C6)(e,t),e.prototype.updateTransform=function(t,e,n){e.eachSeries((function(t){var e=V_.getMarkerModelFromSeries(t,"markLine");if(e){var i=e.getData(),r=ix(e).from,o=ix(e).to;r.each((function(e){lx(r,e,!0,t,n),lx(o,e,!1,t,n)})),i.each((function(t){i.setItemLayout(t,[r.getItemLayout(t),o.getItemLayout(t)])})),this.markerGroupMap.get(t.id).updateLayout()}}),this)},e.prototype.renderSeries=function(t,e,n,i){var r=t.coordinateSystem,o=t.id,a=t.getData(),s=this.markerGroupMap,l=s.get(o)||s.set(o,new nh);this.group.add(l.group);var h=function(t,e,n){var i;i=t?(0,_.map)(t&&t.dimensions,(function(t){var n=e.getData().getDimensionInfo(e.getData().mapDimension(t))||{};return(0,_.extend)((0,_.extend)({},n),{name:t,ordinalMeta:null})})):[{name:"value",type:"float"}];var r=new Un.A(i,n),o=new Un.A(i,n),a=new Un.A([],n),s=(0,_.map)(n.get("data"),(0,_.curry)(rx,e,t,n));t&&(s=(0,_.filter)(s,(0,_.curry)(sx,t)));var l=$_(!!t,i);return r.initData((0,_.map)(s,(function(t){return t[0]})),null,l),o.initData((0,_.map)(s,(function(t){return t[1]})),null,l),a.initData((0,_.map)(s,(function(t){return t[2]}))),a.hasItemOption=!0,{from:r,to:o,line:a}}(r,t,e),c=h.from,u=h.to,d=h.line;ix(e).from=c,ix(e).to=u,e.setData(d);var p=e.get("symbol"),f=e.get("symbolSize"),g=e.get("symbolRotate"),m=e.get("symbolOffset");function v(e,n,r){var o=e.getItemModel(n);lx(e,n,r,t,i);var s=o.getModel("itemStyle").getItemStyle();null==s.fill&&(s.fill=(0,Zy.rI)(a,"color")),e.setItemVisual(n,{symbolKeepAspect:o.get("symbolKeepAspect"),symbolOffset:(0,_.retrieve2)(o.get("symbolOffset",!0),m[r?0:1]),symbolRotate:(0,_.retrieve2)(o.get("symbolRotate",!0),g[r?0:1]),symbolSize:(0,_.retrieve2)(o.get("symbolSize"),f[r?0:1]),symbol:(0,_.retrieve2)(o.get("symbol",!0),p[r?0:1]),style:s})}(0,_.isArray)(p)||(p=[p,p]),(0,_.isArray)(f)||(f=[f,f]),(0,_.isArray)(g)||(g=[g,g]),(0,_.isArray)(m)||(m=[m,m]),h.from.each((function(t){v(c,t,!0),v(u,t,!1)})),d.each((function(t){var e=d.getItemModel(t).getModel("lineStyle").getLineStyle();d.setItemLayout(t,[c.getItemLayout(t),u.getItemLayout(t)]),null==e.stroke&&(e.stroke=c.getItemVisual(t,"style").fill),d.setItemVisual(t,{fromSymbolKeepAspect:c.getItemVisual(t,"symbolKeepAspect"),fromSymbolOffset:c.getItemVisual(t,"symbolOffset"),fromSymbolRotate:c.getItemVisual(t,"symbolRotate"),fromSymbolSize:c.getItemVisual(t,"symbolSize"),fromSymbol:c.getItemVisual(t,"symbol"),toSymbolKeepAspect:u.getItemVisual(t,"symbolKeepAspect"),toSymbolOffset:u.getItemVisual(t,"symbolOffset"),toSymbolRotate:u.getItemVisual(t,"symbolRotate"),toSymbolSize:u.getItemVisual(t,"symbolSize"),toSymbol:u.getItemVisual(t,"symbol"),style:e})})),l.updateData(d),h.line.eachItemGraphicEl((function(t){(0,Xt.z)(t).dataModel=e,t.traverse((function(t){(0,Xt.z)(t).dataModel=e}))})),this.markKeep(l),l.group.silent=e.get("silent")||t.get("silent")},e.type="markLine",e}(Q_);const cx=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return(0,Bt.C6)(e,t),e.prototype.createMarkerModelFromSeries=function(t,n,i){return new e(t,n,i)},e.type="markArea",e.defaultOption={z:1,tooltip:{trigger:"item"},animation:!1,label:{show:!0,position:"top"},itemStyle:{borderWidth:0},emphasis:{label:{show:!0,position:"top"}}},e}(V_);var ux=(0,ce.$r)(),dx=function(t,e,n,i){var r=i[0],o=i[1];if(r&&o){var a=X_(t,r),s=X_(t,o),l=a.coord,h=s.coord;l[0]=(0,_.retrieve)(l[0],-1/0),l[1]=(0,_.retrieve)(l[1],-1/0),h[0]=(0,_.retrieve)(h[0],1/0),h[1]=(0,_.retrieve)(h[1],1/0);var c=(0,_.mergeAll)([{},a,s]);return c.coord=[a.coord,s.coord],c.x0=a.x,c.y0=a.y,c.x1=s.x,c.y1=s.y,c}};function px(t){return!isNaN(t)&&!isFinite(t)}function fx(t,e,n,i){var r=1-t;return px(e[r])&&px(n[r])}function gx(t,e){var n=e.coord[0],i=e.coord[1],r={coord:n,x:e.x0,y:e.y0},o={coord:i,x:e.x1,y:e.y1};return Ce(t,"cartesian2d")?!(!n||!i||!fx(1,n,i)&&!fx(0,n,i))||function(t,e,n){return!(t&&t.containZone&&e.coord&&n.coord&&!W_(e)&&!W_(n))||t.containZone(e.coord,n.coord)}(t,r,o):Z_(t,r)||Z_(t,o)}function mx(t,e,n,i,r){var o,a=i.coordinateSystem,s=t.getItemModel(e),l=Se.lo(s.get(n[0]),r.getWidth()),h=Se.lo(s.get(n[1]),r.getHeight());if(isNaN(l)||isNaN(h)){if(i.getMarkerPosition){var c=t.getValues(["x0","y0"],e),u=t.getValues(["x1","y1"],e),d=a.clampData(c),p=a.clampData(u),f=[];"x0"===n[0]?f[0]=d[0]>p[0]?u[0]:c[0]:f[0]=d[0]>p[0]?c[0]:u[0],"y0"===n[1]?f[1]=d[1]>p[1]?u[1]:c[1]:f[1]=d[1]>p[1]?c[1]:u[1],o=i.getMarkerPosition(f,n,!0)}else{var g=[y=t.get(n[0],e),_=t.get(n[1],e)];a.clampData&&a.clampData(g,g),o=a.dataToPoint(g,!0)}if(Ce(a,"cartesian2d")){var m=a.getAxis("x"),v=a.getAxis("y"),y=t.get(n[0],e),_=t.get(n[1],e);px(y)?o[0]=m.toGlobalCoord(m.getExtent()["x0"===n[0]?0:1]):px(_)&&(o[1]=v.toGlobalCoord(v.getExtent()["y0"===n[1]?0:1]))}isNaN(l)||(o[0]=l),isNaN(h)||(o[1]=h)}else o=[l,h];return o}var vx=[["x0","y0"],["x1","y0"],["x1","y1"],["x0","y1"]],yx=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return(0,Bt.C6)(e,t),e.prototype.updateTransform=function(t,e,n){e.eachSeries((function(t){var e=V_.getMarkerModelFromSeries(t,"markArea");if(e){var i=e.getData();i.each((function(e){var r=(0,_.map)(vx,(function(r){return mx(i,e,r,t,n)}));i.setItemLayout(e,r),i.getItemGraphicEl(e).setShape("points",r)}))}}),this)},e.prototype.renderSeries=function(t,e,n,i){var r=t.coordinateSystem,o=t.id,a=t.getData(),s=this.markerGroupMap,l=s.get(o)||s.set(o,{group:new jt.A});this.group.add(l.group),this.markKeep(l);var h=function(t,e,n){var i,r,o=["x0","y0","x1","y1"];if(t){var a=(0,_.map)(t&&t.dimensions,(function(t){var n=e.getData(),i=n.getDimensionInfo(n.mapDimension(t))||{};return(0,_.extend)((0,_.extend)({},i),{name:t,ordinalMeta:null})}));r=(0,_.map)(o,(function(t,e){return{name:t,type:a[e%2].type}})),i=new Un.A(r,n)}else r=[{name:"value",type:"float"}],i=new Un.A(r,n);var s=(0,_.map)(n.get("data"),(0,_.curry)(dx,e,t,n));t&&(s=(0,_.filter)(s,(0,_.curry)(gx,t)));var l=t?function(t,e,n,i){var o=t.coord[Math.floor(i/2)][i%2];return(0,H_.Pn)(o,r[i])}:function(t,e,n,i){return(0,H_.Pn)(t.value,r[i])};return i.initData(s,null,l),i.hasItemOption=!0,i}(r,t,e);e.setData(h),h.each((function(e){var n=(0,_.map)(vx,(function(n){return mx(h,e,n,t,i)})),o=r.getAxis("x").scale,s=r.getAxis("y").scale,l=o.getExtent(),c=s.getExtent(),u=[o.parse(h.get("x0",e)),o.parse(h.get("x1",e))],d=[s.parse(h.get("y0",e)),s.parse(h.get("y1",e))];Se.Y6(u),Se.Y6(d);var p=!!(l[0]>u[1]||l[1]<u[0]||c[0]>d[1]||c[1]<d[0]);h.setItemLayout(e,{points:n,allClipped:p});var f=h.getItemModel(e).getModel("itemStyle").getItemStyle(),g=(0,Zy.rI)(a,"color");f.fill||(f.fill=g,(0,_.isString)(f.fill)&&(f.fill=K.modifyAlpha(f.fill,.4))),f.stroke||(f.stroke=g),h.setItemVisual(e,"style",f)})),h.diff(ux(l).data).add((function(t){var e=h.getItemLayout(t);if(!e.allClipped){var n=new yr.A({shape:{points:e.points}});h.setItemGraphicEl(t,n),l.group.add(n)}})).update((function(t,n){var i=ux(l).data.getItemGraphicEl(n),r=h.getItemLayout(t);r.allClipped?i&&l.group.remove(i):(i?Ut.oi(i,{shape:{points:r.points}},e,t):i=new yr.A({shape:{points:r.points}}),h.setItemGraphicEl(t,i),l.group.add(i))})).remove((function(t){var e=ux(l).data.getItemGraphicEl(t);l.group.remove(e)})).execute(),h.eachItemGraphicEl((function(t,n){var i=h.getItemModel(n),r=h.getItemVisual(n,"style");t.useStyle(h.getItemVisual(n,"style")),(0,Jt.qM)(t,(0,Jt.lx)(i),{labelFetcher:e,labelDataIndex:n,defaultText:h.getName(n)||"",inheritColor:(0,_.isString)(r.fill)?K.modifyAlpha(r.fill,1):"#000"}),(0,Yt.Mx)(t,i),(0,Yt.Lm)(t,null,null,i.get(["emphasis","disabled"])),(0,Xt.z)(t).dataModel=e})),ux(l).data=h,l.group.silent=e.get("silent")||t.get("silent")},e.type="markArea",e}(Q_);const _x=yx;var xx=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n.layoutMode={type:"box",ignoreSize:!0},n}return(0,Bt.C6)(e,t),e.prototype.init=function(t,e,n){this.mergeDefaultAndTheme(t,n),t.selected=t.selected||{},this._updateSelector(t)},e.prototype.mergeOption=function(e,n){t.prototype.mergeOption.call(this,e,n),this._updateSelector(e)},e.prototype._updateSelector=function(t){var e=t.selector,n=this.ecModel;!0===e&&(e=t.selector=["all","inverse"]),_.isArray(e)&&_.each(e,(function(t,i){_.isString(t)&&(t={type:t}),e[i]=_.merge(t,function(t,e){return"all"===e?{type:"all",title:t.getLocaleModel().get(["legend","selector","all"])}:"inverse"===e?{type:"inverse",title:t.getLocaleModel().get(["legend","selector","inverse"])}:void 0}(n,t.type))}))},e.prototype.optionUpdated=function(){this._updateData(this.ecModel);var t=this._data;if(t[0]&&"single"===this.get("selectedMode")){for(var e=!1,n=0;n<t.length;n++){var i=t[n].get("name");if(this.isSelected(i)){this.select(i),e=!0;break}}!e&&this.select(t[0].get("name"))}},e.prototype._updateData=function(t){var e=[],n=[];t.eachRawSeries((function(i){var r,o=i.name;if(n.push(o),i.legendVisualProvider){var a=i.legendVisualProvider.getAllNames();t.isSeriesFiltered(i)||(n=n.concat(a)),a.length?e=e.concat(a):r=!0}else r=!0;r&&(0,ce.O0)(i)&&e.push(i.name)})),this._availableNames=n;var i=this.get("data")||e,r=_.createHashMap(),o=_.map(i,(function(t){return(_.isString(t)||_.isNumber(t))&&(t={name:t}),r.get(t.name)?null:(r.set(t.name,!0),new Gi.A(t,this,this.ecModel))}),this);this._data=_.filter(o,(function(t){return!!t}))},e.prototype.getData=function(){return this._data},e.prototype.select=function(t){var e=this.option.selected;if("single"===this.get("selectedMode")){var n=this._data;_.each(n,(function(t){e[t.get("name")]=!1}))}e[t]=!0},e.prototype.unSelect=function(t){"single"!==this.get("selectedMode")&&(this.option.selected[t]=!1)},e.prototype.toggleSelected=function(t){var e=this.option.selected;e.hasOwnProperty(t)||(e[t]=!0),this[e[t]?"unSelect":"select"](t)},e.prototype.allSelect=function(){var t=this._data,e=this.option.selected;_.each(t,(function(t){e[t.get("name",!0)]=!0}))},e.prototype.inverseSelect=function(){var t=this._data,e=this.option.selected;_.each(t,(function(t){var n=t.get("name",!0);e.hasOwnProperty(n)||(e[n]=!0),e[n]=!e[n]}))},e.prototype.isSelected=function(t){var e=this.option.selected;return!(e.hasOwnProperty(t)&&!e[t])&&_.indexOf(this._availableNames,t)>=0},e.prototype.getOrient=function(){return"vertical"===this.get("orient")?{index:1,name:"vertical"}:{index:0,name:"horizontal"}},e.type="legend.plain",e.dependencies=["series"],e.defaultOption={z:4,show:!0,orient:"horizontal",left:"center",top:0,align:"auto",backgroundColor:"rgba(0,0,0,0)",borderColor:"#ccc",borderRadius:0,borderWidth:0,padding:5,itemGap:10,itemWidth:25,itemHeight:14,symbolRotate:"inherit",symbolKeepAspect:!0,inactiveColor:"#ccc",inactiveBorderColor:"#ccc",inactiveBorderWidth:"auto",itemStyle:{color:"inherit",opacity:"inherit",borderColor:"inherit",borderWidth:"auto",borderCap:"inherit",borderJoin:"inherit",borderDashOffset:"inherit",borderMiterLimit:"inherit"},lineStyle:{width:"auto",color:"inherit",inactiveColor:"#ccc",inactiveWidth:2,opacity:"inherit",type:"inherit",cap:"inherit",join:"inherit",dashOffset:"inherit",miterLimit:"inherit"},textStyle:{color:"#333"},selectedMode:!0,selector:!1,selectorLabel:{show:!0,borderRadius:10,padding:[3,5,3,5],fontSize:12,fontFamily:"sans-serif",color:"#666",borderWidth:1,borderColor:"#666"},emphasis:{selectorLabel:{show:!0,color:"#eee",backgroundColor:"#666"}},selectorPosition:"auto",selectorItemGap:7,selectorButtonGap:10,tooltip:{show:!1}},e}(oi.A);const bx=xx;var wx=_.curry,Sx=_.each,Tx=jt.A,Mx=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n.newlineDisabled=!1,n}return(0,Bt.C6)(e,t),e.prototype.init=function(){this.group.add(this._contentGroup=new Tx),this.group.add(this._selectorGroup=new Tx),this._isFirstRender=!0},e.prototype.getContentGroup=function(){return this._contentGroup},e.prototype.getSelectorGroup=function(){return this._selectorGroup},e.prototype.render=function(t,e,n){var i=this._isFirstRender;if(this._isFirstRender=!1,this.resetInner(),t.get("show",!0)){var r=t.get("align"),o=t.get("orient");r&&"auto"!==r||(r="right"===t.get("left")&&"vertical"===o?"right":"left");var a=t.get("selector",!0),s=t.get("selectorPosition",!0);!a||s&&"auto"!==s||(s="horizontal"===o?"end":"start"),this.renderInner(r,t,e,n,a,o,s);var l=t.getBoxLayoutParams(),h={width:n.getWidth(),height:n.getHeight()},c=t.get("padding"),u=Mn.dV(l,h,c),d=this.layoutInner(t,r,u,i,a,s),p=Mn.dV(_.defaults({width:d.width,height:d.height},l),h,c);this.group.x=p.x-d.x,this.group.y=p.y-d.y,this.group.markRedraw(),this.group.add(this._backgroundEl=Pv(d,t))}},e.prototype.resetInner=function(){this.getContentGroup().removeAll(),this._backgroundEl&&this.group.remove(this._backgroundEl),this.getSelectorGroup().removeAll()},e.prototype.renderInner=function(t,e,n,i,r,o,a){var s=this.getContentGroup(),l=_.createHashMap(),h=e.get("selectedMode"),c=[];n.eachRawSeries((function(t){!t.get("legendHoverLink")&&c.push(t.id)})),Sx(e.getData(),(function(r,o){var a=r.get("name");if(!this.newlineDisabled&&(""===a||"\n"===a)){var u=new Tx;return u.newline=!0,void s.add(u)}var d=n.getSeriesByName(a)[0];if(!l.get(a)){if(d){var p=d.getData(),f=p.getVisual("legendLineStyle")||{},g=p.getVisual("legendIcon"),m=p.getVisual("style"),v=this._createItem(d,a,o,r,e,t,f,m,g,h,i);v.on("click",wx(Ax,a,null,i,c)).on("mouseover",wx(Ix,d.name,null,i,c)).on("mouseout",wx(Ex,d.name,null,i,c)),n.ssr&&v.eachChild((function(t){var e=(0,Xt.z)(t);e.seriesIndex=d.seriesIndex,e.dataIndex=o,e.ssrType="legend"})),l.set(a,!0)}else n.eachRawSeries((function(s){if(!l.get(a)&&s.legendVisualProvider){var u=s.legendVisualProvider;if(!u.containName(a))return;var d=u.indexOfName(a),p=u.getItemVisual(d,"style"),f=u.getItemVisual(d,"legendIcon"),g=(0,K.parse)(p.fill);g&&0===g[3]&&(g[3]=.2,p=_.extend(_.extend({},p),{fill:(0,K.stringify)(g,"rgba")}));var m=this._createItem(s,a,o,r,e,t,{},p,f,h,i);m.on("click",wx(Ax,null,a,i,c)).on("mouseover",wx(Ix,null,a,i,c)).on("mouseout",wx(Ex,null,a,i,c)),n.ssr&&m.eachChild((function(t){var e=(0,Xt.z)(t);e.seriesIndex=s.seriesIndex,e.dataIndex=o,e.ssrType="legend"})),l.set(a,!0)}}),this);0}}),this),r&&this._createSelector(r,e,i,o,a)},e.prototype._createSelector=function(t,e,n,i,r){var o=this.getSelectorGroup();Sx(t,(function(t){var i=t.type,r=new Z.Ay({style:{x:0,y:0,align:"center",verticalAlign:"middle"},onclick:function(){n.dispatchAction({type:"all"===i?"legendAllSelect":"legendInverseSelect"})}});o.add(r);var a=e.getModel("selectorLabel"),s=e.getModel(["emphasis","selectorLabel"]);(0,Jt.qM)(r,{normal:a,emphasis:s},{defaultText:t.title}),(0,Yt.iJ)(r)}))},e.prototype._createItem=function(t,e,n,i,r,o,a,s,l,h,c){var u=t.visualDrawType,d=r.get("itemWidth"),p=r.get("itemHeight"),f=r.isSelected(e),g=i.get("symbolRotate"),m=i.get("symbolKeepAspect"),v=i.get("icon"),y=function(t,e,n,i,r,o,a){function s(t,e){"auto"===t.lineWidth&&(t.lineWidth=e.lineWidth>0?2:0),Sx(t,(function(n,i){"inherit"===t[i]&&(t[i]=e[i])}))}var l=e.getModel("itemStyle"),h=l.getItemStyle(),c=0===t.lastIndexOf("empty",0)?"fill":"stroke",u=l.getShallow("decal");h.decal=u&&"inherit"!==u?(0,Go.w)(u,a):i.decal,"inherit"===h.fill&&(h.fill=i[r]);"inherit"===h.stroke&&(h.stroke=i[c]);"inherit"===h.opacity&&(h.opacity=("fill"===r?i:n).opacity);s(h,i);var d=e.getModel("lineStyle"),p=d.getLineStyle();if(s(p,n),"auto"===h.fill&&(h.fill=i.fill),"auto"===h.stroke&&(h.stroke=i.fill),"auto"===p.stroke&&(p.stroke=i.fill),!o){var f=e.get("inactiveBorderWidth"),g=h[c];h.lineWidth="auto"===f?i.lineWidth>0&&g?2:0:h.lineWidth,h.fill=e.get("inactiveColor"),h.stroke=e.get("inactiveBorderColor"),p.stroke=d.get("inactiveColor"),p.lineWidth=d.get("inactiveWidth")}return{itemStyle:h,lineStyle:p}}(l=v||l||"roundRect",i,a,s,u,f,c),x=new Tx,b=i.getModel("textStyle");if(!_.isFunction(t.getLegendIcon)||v&&"inherit"!==v){var w="inherit"===v&&t.getData().getVisual("symbol")?"inherit"===g?t.getData().getVisual("symbolRotate"):g:0;x.add(function(t){var e=t.icon||"roundRect",n=(0,Vt.v5)(e,0,0,t.itemWidth,t.itemHeight,t.itemStyle.fill,t.symbolKeepAspect);n.setStyle(t.itemStyle),n.rotation=(t.iconRotate||0)*Math.PI/180,n.setOrigin([t.itemWidth/2,t.itemHeight/2]),e.indexOf("empty")>-1&&(n.style.stroke=n.style.fill,n.style.fill="#fff",n.style.lineWidth=2);return n}({itemWidth:d,itemHeight:p,icon:l,iconRotate:w,itemStyle:y.itemStyle,lineStyle:y.lineStyle,symbolKeepAspect:m}))}else x.add(t.getLegendIcon({itemWidth:d,itemHeight:p,icon:l,iconRotate:g,itemStyle:y.itemStyle,lineStyle:y.lineStyle,symbolKeepAspect:m}));var S="left"===o?d+5:-5,T=o,M=r.get("formatter"),A=e;_.isString(M)&&M?A=M.replace("{name}",null!=e?e:""):_.isFunction(M)&&(A=M(e));var C=f?b.getTextColor():i.get("inactiveColor");x.add(new Z.Ay({style:(0,Jt.VB)(b,{text:A,x:S,y:p/2,fill:C,align:T,verticalAlign:"middle"},{inheritColor:C})}));var I=new be.A({shape:x.getBoundingRect(),style:{fill:"transparent"}}),E=i.getModel("tooltip");return E.get("show")&&qt.setTooltipConfig({el:I,componentModel:r,itemName:e,itemTooltipOption:E.option}),x.add(I),x.eachChild((function(t){t.silent=!0})),I.silent=!h,this.getContentGroup().add(x),(0,Yt.iJ)(x),x.__legendDataIndex=n,x},e.prototype.layoutInner=function(t,e,n,i,r,o){var a=this.getContentGroup(),s=this.getSelectorGroup();Mn.aP(t.get("orient"),a,t.get("itemGap"),n.width,n.height);var l=a.getBoundingRect(),h=[-l.x,-l.y];if(s.markRedraw(),a.markRedraw(),r){Mn.aP("horizontal",s,t.get("selectorItemGap",!0));var c=s.getBoundingRect(),u=[-c.x,-c.y],d=t.get("selectorButtonGap",!0),p=t.getOrient().index,f=0===p?"width":"height",g=0===p?"height":"width",m=0===p?"y":"x";"end"===o?u[p]+=l[f]+d:h[p]+=c[f]+d,u[1-p]+=l[g]/2-c[g]/2,s.x=u[0],s.y=u[1],a.x=h[0],a.y=h[1];var v={x:0,y:0};return v[f]=l[f]+d+c[f],v[g]=Math.max(l[g],c[g]),v[m]=Math.min(0,c[m]+u[1-p]),v}return a.x=h[0],a.y=h[1],this.group.getBoundingRect()},e.prototype.remove=function(){this.getContentGroup().removeAll(),this._isFirstRender=!0},e.type="legend.plain",e}(ri.A);function Ax(t,e,n,i){Ex(t,e,n,i),n.dispatchAction({type:"legendToggleSelect",name:null!=t?t:e}),Ix(t,e,n,i)}function Cx(t){for(var e,n=t.getZr().storage.getDisplayList(),i=0,r=n.length;i<r&&!(e=n[i].states.emphasis);)i++;return e&&e.hoverLayer}function Ix(t,e,n,i){Cx(n)||n.dispatchAction({type:"highlight",seriesName:t,name:e,excludeSeriesId:i})}function Ex(t,e,n,i){Cx(n)||n.dispatchAction({type:"downplay",seriesName:t,name:e,excludeSeriesId:i})}const kx=Mx;function Lx(t){var e=t.findComponents({mainType:"legend"});e&&e.length&&t.filterSeries((function(t){for(var n=0;n<e.length;n++)if(!e[n].isSelected(t.name))return!1;return!0}))}function Dx(t,e,n){var i,r={},o="toggleSelected"===t;return n.eachComponent("legend",(function(n){o&&null!=i?n[i?"select":"unSelect"](e.name):"allSelect"===t||"inverseSelect"===t?n[t]():(n[t](e.name),i=n.isSelected(e.name));var a=n.getData();(0,_.each)(a,(function(t){var e=t.get("name");if("\n"!==e&&""!==e){var i=n.isSelected(e);r.hasOwnProperty(e)?r[e]=r[e]&&i:r[e]=i}}))})),"allSelect"===t||"inverseSelect"===t?{selected:r}:{name:e.name,selected:r}}function Px(t){t.registerComponentModel(bx),t.registerComponentView(kx),t.registerProcessor(t.PRIORITY.PROCESSOR.SERIES_FILTER,Lx),t.registerSubTypeDefaulter("legend",(function(){return"plain"})),function(t){t.registerAction("legendToggleSelect","legendselectchanged",(0,_.curry)(Dx,"toggleSelected")),t.registerAction("legendAllSelect","legendselectall",(0,_.curry)(Dx,"allSelect")),t.registerAction("legendInverseSelect","legendinverseselect",(0,_.curry)(Dx,"inverseSelect")),t.registerAction("legendSelect","legendselected",(0,_.curry)(Dx,"select")),t.registerAction("legendUnSelect","legendunselected",(0,_.curry)(Dx,"unSelect"))}(t)}function Rx(t,e,n){var i=[1,1];i[t.getOrient().index]=0,(0,Mn.YA)(e,n,{type:"box",ignoreSize:!!i})}const Ox=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return(0,Bt.C6)(e,t),e.prototype.setScrollDataIndex=function(t){this.option.scrollDataIndex=t},e.prototype.init=function(e,n,i){var r=(0,Mn.vs)(e);t.prototype.init.call(this,e,n,i),Rx(this,e,r)},e.prototype.mergeOption=function(e,n){t.prototype.mergeOption.call(this,e,n),Rx(this,this.option,e)},e.type="legend.scroll",e.defaultOption=(0,Ze.G_)(bx.defaultOption,{scrollDataIndex:0,pageButtonItemGap:5,pageButtonGap:null,pageButtonPosition:"end",pageFormatter:"{current}/{total}",pageIcons:{horizontal:["M0,0L12,-10L12,10z","M0,0L-12,-10L-12,10z"],vertical:["M0,0L20,0L10,-20z","M0,0L20,0L10,20z"]},pageIconColor:"#2f4554",pageIconInactiveColor:"#aaa",pageIconSize:15,pageTextStyle:{color:"#333"},animationDurationUpdate:800}),e}(bx);var Nx=jt.A,Fx=["width","height"],Bx=["x","y"],zx=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n.newlineDisabled=!0,n._currentIndex=0,n}return(0,Bt.C6)(e,t),e.prototype.init=function(){t.prototype.init.call(this),this.group.add(this._containerGroup=new Nx),this._containerGroup.add(this.getContentGroup()),this.group.add(this._controllerGroup=new Nx)},e.prototype.resetInner=function(){t.prototype.resetInner.call(this),this._controllerGroup.removeAll(),this._containerGroup.removeClipPath(),this._containerGroup.__rectSize=null},e.prototype.renderInner=function(e,n,i,r,o,a,s){var l=this;t.prototype.renderInner.call(this,e,n,i,r,o,a,s);var h=this._controllerGroup,c=n.get("pageIconSize",!0),u=_.isArray(c)?c:[c,c];p("pagePrev",0);var d=n.getModel("pageTextStyle");function p(t,e){var i=t+"DataIndex",o=qt.createIcon(n.get("pageIcons",!0)[n.getOrient().name][e],{onclick:_.bind(l._pageGo,l,i,n,r)},{x:-u[0]/2,y:-u[1]/2,width:u[0],height:u[1]});o.name=t,h.add(o)}h.add(new Z.Ay({name:"pageText",style:{text:"xx/xx",fill:d.getTextColor(),font:d.getFont(),verticalAlign:"middle",align:"center"},silent:!0})),p("pageNext",1)},e.prototype.layoutInner=function(t,e,n,i,r,o){var a=this.getSelectorGroup(),s=t.getOrient().index,l=Fx[s],h=Bx[s],c=Fx[1-s],u=Bx[1-s];r&&Mn.aP("horizontal",a,t.get("selectorItemGap",!0));var d=t.get("selectorButtonGap",!0),p=a.getBoundingRect(),f=[-p.x,-p.y],g=_.clone(n);r&&(g[l]=n[l]-p[l]-d);var m=this._layoutContentAndController(t,i,g,s,l,c,u,h);if(r){if("end"===o)f[s]+=m[l]+d;else{var v=p[l]+d;f[s]-=v,m[h]-=v}m[l]+=p[l]+d,f[1-s]+=m[u]+m[c]/2-p[c]/2,m[c]=Math.max(m[c],p[c]),m[u]=Math.min(m[u],p[u]+f[1-s]),a.x=f[0],a.y=f[1],a.markRedraw()}return m},e.prototype._layoutContentAndController=function(t,e,n,i,r,o,a,s){var l=this.getContentGroup(),h=this._containerGroup,c=this._controllerGroup;Mn.aP(t.get("orient"),l,t.get("itemGap"),i?n.width:null,i?null:n.height),Mn.aP("horizontal",c,t.get("pageButtonItemGap",!0));var u=l.getBoundingRect(),d=c.getBoundingRect(),p=this._showController=u[r]>n[r],f=[-u.x,-u.y];e||(f[i]=l[s]);var g=[0,0],m=[-d.x,-d.y],v=_.retrieve2(t.get("pageButtonGap",!0),t.get("itemGap",!0));p&&("end"===t.get("pageButtonPosition",!0)?m[i]+=n[r]-d[r]:g[i]+=d[r]+v);m[1-i]+=u[o]/2-d[o]/2,l.setPosition(f),h.setPosition(g),c.setPosition(m);var y={x:0,y:0};if(y[r]=p?n[r]:u[r],y[o]=Math.max(u[o],d[o]),y[a]=Math.min(0,d[a]+m[1-i]),h.__rectSize=n[r],p){var x={x:0,y:0};x[r]=Math.max(n[r]-d[r]-v,0),x[o]=y[o],h.setClipPath(new be.A({shape:x})),h.__rectSize=x[r]}else c.eachChild((function(t){t.attr({invisible:!0,silent:!0})}));var b=this._getPageInfo(t);return null!=b.pageIndex&&Ut.oi(l,{x:b.contentPosition[0],y:b.contentPosition[1]},p?t:null),this._updatePageInfoView(t,b),y},e.prototype._pageGo=function(t,e,n){var i=this._getPageInfo(e)[t];null!=i&&n.dispatchAction({type:"legendScroll",scrollDataIndex:i,legendId:e.id})},e.prototype._updatePageInfoView=function(t,e){var n=this._controllerGroup;_.each(["pagePrev","pageNext"],(function(i){var r=null!=e[i+"DataIndex"],o=n.childOfName(i);o&&(o.setStyle("fill",r?t.get("pageIconColor",!0):t.get("pageIconInactiveColor",!0)),o.cursor=r?"pointer":"default")}));var i=n.childOfName("pageText"),r=t.get("pageFormatter"),o=e.pageIndex,a=null!=o?o+1:0,s=e.pageCount;i&&r&&i.setStyle("text",_.isString(r)?r.replace("{current}",null==a?"":a+"").replace("{total}",null==s?"":s+""):r({current:a,total:s}))},e.prototype._getPageInfo=function(t){var e=t.get("scrollDataIndex",!0),n=this.getContentGroup(),i=this._containerGroup.__rectSize,r=t.getOrient().index,o=Fx[r],a=Bx[r],s=this._findTargetItemIndex(e),l=n.children(),h=l[s],c=l.length,u=c?1:0,d={contentPosition:[n.x,n.y],pageCount:u,pageIndex:u-1,pagePrevDataIndex:null,pageNextDataIndex:null};if(!h)return d;var p=y(h);d.contentPosition[r]=-p.s;for(var f=s+1,g=p,m=p,v=null;f<=c;++f)(!(v=y(l[f]))&&m.e>g.s+i||v&&!_(v,g.s))&&(g=m.i>g.i?m:v)&&(null==d.pageNextDataIndex&&(d.pageNextDataIndex=g.i),++d.pageCount),m=v;for(f=s-1,g=p,m=p,v=null;f>=-1;--f)(v=y(l[f]))&&_(m,v.s)||!(g.i<m.i)||(m=g,null==d.pagePrevDataIndex&&(d.pagePrevDataIndex=g.i),++d.pageCount,++d.pageIndex),g=v;return d;function y(t){if(t){var e=t.getBoundingRect(),n=e[a]+t[a];return{s:n,e:n+e[o],i:t.__legendDataIndex}}}function _(t,e){return t.e>=e&&t.s<=e+i}},e.prototype._findTargetItemIndex=function(t){return this._showController?(this.getContentGroup().eachChild((function(i,r){var o=i.__legendDataIndex;null==n&&null!=o&&(n=r),o===t&&(e=r)})),null!=e?e:n):0;var e,n},e.type="legend.scroll",e}(kx);const Gx=zx;function Vx(t){(0,i.Y)(Px),t.registerComponentModel(Ox),t.registerComponentView(Gx),function(t){t.registerAction("legendScroll","legendscroll",(function(t,e){var n=t.scrollDataIndex;null!=n&&e.eachComponent({mainType:"legend",subType:"scroll",query:t},(function(t){t.setScrollDataIndex(n)}))}))}(t)}const jx=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return(0,Bt.C6)(e,t),e.type="dataZoom.inside",e.defaultOption=(0,Ze.G_)(gv.defaultOption,{disabled:!1,zoomLock:!1,zoomOnMouseWheel:!0,moveOnMouseMove:!0,moveOnMouseWheel:!1,preventDefaultMouseMove:!0}),e}(gv);var Hx=(0,ce.$r)();function Wx(t,e){if(e){t.removeKey(e.model.uid);var n=e.controller;n&&n.dispose()}}function Ux(t,e){t.isDisposed()||t.dispatchAction({type:"dataZoom",animation:{easing:"cubicOut",duration:100},batch:e})}function qx(t,e,n,i){return t.coordinateSystem.containPoint([n,i])}function Xx(t){t.registerProcessor(t.PRIORITY.PROCESSOR.FILTER,(function(t,e){var n=Hx(e),i=n.coordSysRecordMap||(n.coordSysRecordMap=(0,_.createHashMap)());i.each((function(t){t.dataZoomInfoMap=null})),t.eachComponent({mainType:"dataZoom",subType:"inside"},(function(t){var n=uv(t);(0,_.each)(n.infoList,(function(n){var r=n.model.uid,o=i.get(r)||i.set(r,function(t,e){var n={model:e,containsPoint:(0,_.curry)(qx,e),dispatchAction:(0,_.curry)(Ux,t),dataZoomInfoMap:null,controller:null},i=n.controller=new Ur(t.getZr());return(0,_.each)(["pan","zoom","scrollMove"],(function(t){i.on(t,(function(e){var i=[];n.dataZoomInfoMap.each((function(r){if(e.isAvailableBehavior(r.model.option)){var o=(r.getRange||{})[t],a=o&&o(r.dzReferCoordSysInfo,n.model.mainType,n.controller,e);!r.model.get("disabled",!0)&&a&&i.push({dataZoomId:r.model.id,start:a[0],end:a[1]})}})),i.length&&n.dispatchAction(i)}))})),n}(e,n.model));(o.dataZoomInfoMap||(o.dataZoomInfoMap=(0,_.createHashMap)())).set(t.uid,{dzReferCoordSysInfo:n,model:t,getRange:null})}))})),i.each((function(t){var e,n=t.controller,r=t.dataZoomInfoMap;if(r){var o=r.keys()[0];null!=o&&(e=r.get(o))}if(e){var a=function(t){var e,n="type_",i={type_true:2,type_move:1,type_false:0,type_undefined:-1},r=!0;return t.each((function(t){var o=t.model,a=!o.get("disabled",!0)&&(!o.get("zoomLock",!0)||"move");i[n+a]>i[n+e]&&(e=a),r=r&&o.get("preventDefaultMouseMove",!0)})),{controlType:e,opt:{zoomOnMouseWheel:!0,moveOnMouseMove:!0,moveOnMouseWheel:!0,preventDefaultMouseMove:!!r}}}(r);n.enable(a.controlType,a.opt),n.setPointerChecker(t.containsPoint),Ke.N(t,"dispatchAction",e.model.get("throttle",!0),"fixRate")}else Wx(i,t)}))}))}var Yx=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="dataZoom.inside",e}return(0,Bt.C6)(e,t),e.prototype.render=function(e,n,i){t.prototype.render.apply(this,arguments),e.noTarget()?this._clear():(this.range=e.getPercentRange(),function(t,e,n){Hx(t).coordSysRecordMap.each((function(t){var i=t.dataZoomInfoMap.get(e.uid);i&&(i.getRange=n)}))}(i,e,{pan:(0,_.bind)(Zx.pan,this),zoom:(0,_.bind)(Zx.zoom,this),scrollMove:(0,_.bind)(Zx.scrollMove,this)}))},e.prototype.dispose=function(){this._clear(),t.prototype.dispose.apply(this,arguments)},e.prototype._clear=function(){!function(t,e){for(var n=Hx(t).coordSysRecordMap,i=n.keys(),r=0;r<i.length;r++){var o=i[r],a=n.get(o),s=a.dataZoomInfoMap;if(s){var l=e.uid;s.get(l)&&(s.removeKey(l),s.keys().length||Wx(n,a))}}}(this.api,this.dataZoomModel),this.range=null},e.type="dataZoom.inside",e}(vv),Zx={zoom:function(t,e,n,i){var r=this.range,o=r.slice(),a=t.axisModels[0];if(a){var s=Kx[e](null,[i.originX,i.originY],a,n,t),l=(s.signal>0?s.pixelStart+s.pixelLength-s.pixel:s.pixel-s.pixelStart)/s.pixelLength*(o[1]-o[0])+o[0],h=Math.max(1/i.scale,0);o[0]=(o[0]-l)*h+l,o[1]=(o[1]-l)*h+l;var c=this.dataZoomModel.findRepresentativeAxisProxy().getMinMaxSpan();return Kh(0,o,[0,100],0,c.minSpan,c.maxSpan),this.range=o,r[0]!==o[0]||r[1]!==o[1]?o:void 0}},pan:$x((function(t,e,n,i,r,o){var a=Kx[i]([o.oldX,o.oldY],[o.newX,o.newY],e,r,n);return a.signal*(t[1]-t[0])*a.pixel/a.pixelLength})),scrollMove:$x((function(t,e,n,i,r,o){return Kx[i]([0,0],[o.scrollDelta,o.scrollDelta],e,r,n).signal*(t[1]-t[0])*o.scrollDelta}))};function $x(t){return function(e,n,i,r){var o=this.range,a=o.slice(),s=e.axisModels[0];if(s)return Kh(t(a,s,e,n,i,r),a,[0,100],"all"),this.range=a,o[0]!==a[0]||o[1]!==a[1]?a:void 0}}var Kx={grid:function(t,e,n,i,r){var o=n.axis,a={},s=r.model.coordinateSystem.getRect();return t=t||[0,0],"x"===o.dim?(a.pixel=e[0]-t[0],a.pixelLength=s.width,a.pixelStart=s.x,a.signal=o.inverse?1:-1):(a.pixel=e[1]-t[1],a.pixelLength=s.height,a.pixelStart=s.y,a.signal=o.inverse?-1:1),a},polar:function(t,e,n,i,r){var o=n.axis,a={},s=r.model.coordinateSystem,l=s.getRadiusAxis().getExtent(),h=s.getAngleAxis().getExtent();return t=t?s.pointToCoord(t):[0,0],e=s.pointToCoord(e),"radiusAxis"===n.mainType?(a.pixel=e[0]-t[0],a.pixelLength=l[1]-l[0],a.pixelStart=l[0],a.signal=o.inverse?1:-1):(a.pixel=e[1]-t[1],a.pixelLength=h[1]-h[0],a.pixelStart=h[0],a.signal=o.inverse?-1:1),a},singleAxis:function(t,e,n,i,r){var o=n.axis,a=r.model.coordinateSystem.getRect(),s={};return t=t||[0,0],"horizontal"===o.orient?(s.pixel=e[0]-t[0],s.pixelLength=a.width,s.pixelStart=a.x,s.signal=o.inverse?1:-1):(s.pixel=e[1]-t[1],s.pixelLength=a.height,s.pixelStart=a.y,s.signal=o.inverse?-1:1),s}};const Jx=Yx;function Qx(t){Av(t),t.registerComponentModel(jx),t.registerComponentView(Jx),Xx(t)}const tb=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return(0,Bt.C6)(e,t),e.type="dataZoom.slider",e.layoutMode="box",e.defaultOption=(0,Ze.G_)(gv.defaultOption,{show:!0,right:"ph",top:"ph",width:"ph",height:"ph",left:null,bottom:null,borderColor:"#d2dbee",borderRadius:3,backgroundColor:"rgba(47,69,84,0)",dataBackground:{lineStyle:{color:"#d2dbee",width:.5},areaStyle:{color:"#d2dbee",opacity:.2}},selectedDataBackground:{lineStyle:{color:"#8fb0f7",width:.5},areaStyle:{color:"#8fb0f7",opacity:.2}},fillerColor:"rgba(135,175,274,0.2)",handleIcon:"path://M-9.35,34.56V42m0-40V9.5m-2,0h4a2,2,0,0,1,2,2v21a2,2,0,0,1-2,2h-4a2,2,0,0,1-2-2v-21A2,2,0,0,1-11.35,9.5Z",handleSize:"100%",handleStyle:{color:"#fff",borderColor:"#ACB8D1"},moveHandleSize:7,moveHandleIcon:"path://M-320.9-50L-320.9-50c18.1,0,27.1,9,27.1,27.1V85.7c0,18.1-9,27.1-27.1,27.1l0,0c-18.1,0-27.1-9-27.1-27.1V-22.9C-348-41-339-50-320.9-50z M-212.3-50L-212.3-50c18.1,0,27.1,9,27.1,27.1V85.7c0,18.1-9,27.1-27.1,27.1l0,0c-18.1,0-27.1-9-27.1-27.1V-22.9C-239.4-41-230.4-50-212.3-50z M-103.7-50L-103.7-50c18.1,0,27.1,9,27.1,27.1V85.7c0,18.1-9,27.1-27.1,27.1l0,0c-18.1,0-27.1-9-27.1-27.1V-22.9C-130.9-41-121.8-50-103.7-50z",moveHandleStyle:{color:"#D2DBEE",opacity:.7},showDetail:!0,showDataShadow:"auto",realtime:!0,zoomLock:!1,textStyle:{color:"#6E7079"},brushSelect:!0,brushStyle:{color:"rgba(135,175,274,0.15)"},emphasis:{handleStyle:{borderColor:"#8FB0F7"},moveHandleStyle:{color:"#8FB0F7"}}}),e}(gv);var eb=be.A,nb="horizontal",ib="vertical",rb=["line","bar","candlestick","scatter"],ob={easing:"cubicOut",duration:100,delay:0},ab=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n._displayables={},n}return(0,Bt.C6)(e,t),e.prototype.init=function(t,e){this.api=e,this._onBrush=(0,_.bind)(this._onBrush,this),this._onBrushEnd=(0,_.bind)(this._onBrushEnd,this)},e.prototype.render=function(e,n,i,r){if(t.prototype.render.apply(this,arguments),Ke.N(this,"_dispatchZoomAction",e.get("throttle"),"fixRate"),this._orient=e.getOrient(),!1!==e.get("show")){if(e.noTarget())return this._clear(),void this.group.removeAll();r&&"dataZoom"===r.type&&r.from===this.uid||this._buildView(),this._updateView()}else this.group.removeAll()},e.prototype.dispose=function(){this._clear(),t.prototype.dispose.apply(this,arguments)},e.prototype._clear=function(){Ke.IU(this,"_dispatchZoomAction");var t=this.api.getZr();t.off("mousemove",this._onBrush),t.off("mouseup",this._onBrushEnd)},e.prototype._buildView=function(){var t=this.group;t.removeAll(),this._brushing=!1,this._displayables.brushRect=null,this._resetLocation(),this._resetInterval();var e=this._displayables.sliderGroup=new jt.A;this._renderBackground(),this._renderHandle(),this._renderDataShadow(),t.add(e),this._positionGroup()},e.prototype._resetLocation=function(){var t=this.dataZoomModel,e=this.api,n=t.get("brushSelect")?7:0,i=this._findCoordRect(),r={width:e.getWidth(),height:e.getHeight()},o=this._orient===nb?{right:r.width-i.x-i.width,top:r.height-30-7-n,width:i.width,height:30}:{right:7,top:i.y,width:30,height:i.height},a=Mn.vs(t.option);(0,_.each)(["right","top","width","height"],(function(t){"ph"===a[t]&&(a[t]=o[t])}));var s=Mn.dV(a,r);this._location={x:s.x,y:s.y},this._size=[s.width,s.height],this._orient===ib&&this._size.reverse()},e.prototype._positionGroup=function(){var t=this.group,e=this._location,n=this._orient,i=this.dataZoomModel.getFirstTargetAxisModel(),r=i&&i.get("inverse"),o=this._displayables.sliderGroup,a=(this._dataShadowInfo||{}).otherAxisInverse;o.attr(n!==nb||r?n===nb&&r?{scaleY:a?1:-1,scaleX:-1}:n!==ib||r?{scaleY:a?-1:1,scaleX:-1,rotation:Math.PI/2}:{scaleY:a?-1:1,scaleX:1,rotation:Math.PI/2}:{scaleY:a?1:-1,scaleX:1});var s=t.getBoundingRect([o]);t.x=e.x-s.x,t.y=e.y-s.y,t.markRedraw()},e.prototype._getViewExtent=function(){return[0,this._size[0]]},e.prototype._renderBackground=function(){var t=this.dataZoomModel,e=this._size,n=this._displayables.sliderGroup,i=t.get("brushSelect");n.add(new eb({silent:!0,shape:{x:0,y:0,width:e[0],height:e[1]},style:{fill:t.get("backgroundColor")},z2:-40}));var r=new eb({shape:{x:0,y:0,width:e[0],height:e[1]},style:{fill:"transparent"},z2:0,onclick:(0,_.bind)(this._onClickPanel,this)}),o=this.api.getZr();i?(r.on("mousedown",this._onBrushStart,this),r.cursor="crosshair",o.on("mousemove",this._onBrush),o.on("mouseup",this._onBrushEnd)):(o.off("mousemove",this._onBrush),o.off("mouseup",this._onBrushEnd)),n.add(r)},e.prototype._renderDataShadow=function(){var t=this._dataShadowInfo=this._prepareDataShadowInfo();if(this._displayables.dataShadowSegs=[],t){var e=this._size,n=this._shadowSize||[],i=t.series,r=i.getRawData(),o=i.getShadowDim&&i.getShadowDim(),a=o&&r.getDimensionInfo(o)?i.getShadowDim():t.otherDim;if(null!=a){var s=this._shadowPolygonPts,l=this._shadowPolylinePts;if(r!==this._shadowData||a!==this._shadowDim||e[0]!==n[0]||e[1]!==n[1]){var h=r.getDataExtent(a),c=.3*(h[1]-h[0]);h=[h[0]-c,h[1]+c];var u,d=[0,e[1]],p=[0,e[0]],f=[[e[0],0],[0,0]],g=[],m=p[1]/(r.count()-1),v=0,y=Math.round(r.count()/e[0]);r.each([a],(function(t,e){if(y>0&&e%y)v+=m;else{var n=null==t||isNaN(t)||""===t,i=n?0:(0,Se.Cb)(t,h,d,!0);n&&!u&&e?(f.push([f[f.length-1][0],0]),g.push([g[g.length-1][0],0])):!n&&u&&(f.push([v,0]),g.push([v,0])),f.push([v,i]),g.push([v,i]),v+=m,u=n}})),s=this._shadowPolygonPts=f,l=this._shadowPolylinePts=g}this._shadowData=r,this._shadowDim=a,this._shadowSize=[e[0],e[1]];for(var _=this.dataZoomModel,x=0;x<3;x++){var b=w(1===x);this._displayables.sliderGroup.add(b),this._displayables.dataShadowSegs.push(b)}}}function w(t){var e=_.getModel(t?"selectedDataBackground":"dataBackground"),n=new jt.A,i=new yr.A({shape:{points:s},segmentIgnoreThreshold:1,style:e.getModel("areaStyle").getAreaStyle(),silent:!0,z2:-20}),r=new Pn.A({shape:{points:l},segmentIgnoreThreshold:1,style:e.getModel("lineStyle").getLineStyle(),silent:!0,z2:-19});return n.add(i),n.add(r),n}},e.prototype._prepareDataShadowInfo=function(){var t=this.dataZoomModel,e=t.get("showDataShadow");if(!1!==e){var n,i=this.ecModel;return t.eachTargetAxis((function(r,o){var a=t.getAxisProxy(r,o).getTargetSeriesModels();(0,_.each)(a,(function(t){if(!(n||!0!==e&&(0,_.indexOf)(rb,t.get("type"))<0)){var a,s=i.getComponent(hv(r),o).axis,l={x:"y",y:"x",radius:"angle",angle:"radius"}[r],h=t.coordinateSystem;null!=l&&h.getOtherAxis&&(a=h.getOtherAxis(s).inverse),l=t.getData().mapDimension(l),n={thisAxis:s,series:t,thisDim:r,otherDim:l,otherAxisInverse:a}}}),this)}),this),n}},e.prototype._renderHandle=function(){var t=this.group,e=this._displayables,n=e.handles=[null,null],i=e.handleLabels=[null,null],r=this._displayables.sliderGroup,o=this._size,a=this.dataZoomModel,s=this.api,l=a.get("borderRadius")||0,h=a.get("brushSelect"),c=e.filler=new eb({silent:h,style:{fill:a.get("fillerColor")},textConfig:{position:"inside"}});r.add(c),r.add(new eb({silent:!0,subPixelOptimize:!0,shape:{x:0,y:0,width:o[0],height:o[1],r:l},style:{stroke:a.get("dataBackgroundColor")||a.get("borderColor"),lineWidth:1,fill:"rgba(0,0,0,0)"}})),(0,_.each)([0,1],(function(e){var o=a.get("handleIcon");!Vt.$V[o]&&o.indexOf("path://")<0&&o.indexOf("image://")<0&&(o="path://"+o);var s=(0,Vt.v5)(o,-1,0,2,2,null,!0);s.attr({cursor:sb(this._orient),draggable:!0,drift:(0,_.bind)(this._onDragMove,this,e),ondragend:(0,_.bind)(this._onDragEnd,this),onmouseover:(0,_.bind)(this._showDataInfo,this,!0),onmouseout:(0,_.bind)(this._showDataInfo,this,!1),z2:5});var l=s.getBoundingRect(),h=a.get("handleSize");this._handleHeight=(0,Se.lo)(h,this._size[1]),this._handleWidth=l.width/l.height*this._handleHeight,s.setStyle(a.getModel("handleStyle").getItemStyle()),s.style.strokeNoScale=!0,s.rectHover=!0,s.ensureState("emphasis").style=a.getModel(["emphasis","handleStyle"]).getItemStyle(),(0,Yt.iJ)(s);var c=a.get("handleColor");null!=c&&(s.style.fill=c),r.add(n[e]=s);var u=a.getModel("textStyle");t.add(i[e]=new Z.Ay({silent:!0,invisible:!0,style:(0,Jt.VB)(u,{x:0,y:0,text:"",verticalAlign:"middle",align:"center",fill:u.getTextColor(),font:u.getFont()}),z2:10}))}),this);var u=c;if(h){var d=(0,Se.lo)(a.get("moveHandleSize"),o[1]),p=e.moveHandle=new be.A({style:a.getModel("moveHandleStyle").getItemStyle(),silent:!0,shape:{r:[0,0,2,2],y:o[1]-.5,height:d}}),f=.8*d,g=e.moveHandleIcon=(0,Vt.v5)(a.get("moveHandleIcon"),-f/2,-f/2,f,f,"#fff",!0);g.silent=!0,g.y=o[1]+d/2-.5,p.ensureState("emphasis").style=a.getModel(["emphasis","moveHandleStyle"]).getItemStyle();var m=Math.min(o[1]/2,Math.max(d,10));(u=e.moveZone=new be.A({invisible:!0,shape:{y:o[1]-m,height:d+m}})).on("mouseover",(function(){s.enterEmphasis(p)})).on("mouseout",(function(){s.leaveEmphasis(p)})),r.add(p),r.add(g),r.add(u)}u.attr({draggable:!0,cursor:sb(this._orient),drift:(0,_.bind)(this._onDragMove,this,"all"),ondragstart:(0,_.bind)(this._showDataInfo,this,!0),ondragend:(0,_.bind)(this._onDragEnd,this),onmouseover:(0,_.bind)(this._showDataInfo,this,!0),onmouseout:(0,_.bind)(this._showDataInfo,this,!1)})},e.prototype._resetInterval=function(){var t=this._range=this.dataZoomModel.getPercentRange(),e=this._getViewExtent();this._handleEnds=[(0,Se.Cb)(t[0],[0,100],e,!0),(0,Se.Cb)(t[1],[0,100],e,!0)]},e.prototype._updateInterval=function(t,e){var n=this.dataZoomModel,i=this._handleEnds,r=this._getViewExtent(),o=n.findRepresentativeAxisProxy().getMinMaxSpan(),a=[0,100];Kh(e,i,r,n.get("zoomLock")?"all":t,null!=o.minSpan?(0,Se.Cb)(o.minSpan,a,r,!0):null,null!=o.maxSpan?(0,Se.Cb)(o.maxSpan,a,r,!0):null);var s=this._range,l=this._range=(0,Se.Y6)([(0,Se.Cb)(i[0],r,a,!0),(0,Se.Cb)(i[1],r,a,!0)]);return!s||s[0]!==l[0]||s[1]!==l[1]},e.prototype._updateView=function(t){var e=this._displayables,n=this._handleEnds,i=(0,Se.Y6)(n.slice()),r=this._size;(0,_.each)([0,1],(function(t){var i=e.handles[t],o=this._handleHeight;i.attr({scaleX:o/2,scaleY:o/2,x:n[t]+(t?-1:1),y:r[1]/2-o/2})}),this),e.filler.setShape({x:i[0],y:0,width:i[1]-i[0],height:r[1]});var o={x:i[0],width:i[1]-i[0]};e.moveHandle&&(e.moveHandle.setShape(o),e.moveZone.setShape(o),e.moveZone.getBoundingRect(),e.moveHandleIcon&&e.moveHandleIcon.attr("x",o.x+o.width/2));for(var a=e.dataShadowSegs,s=[0,i[0],i[1],r[0]],l=0;l<a.length;l++){var h=a[l],c=h.getClipPath();c||(c=new be.A,h.setClipPath(c)),c.setShape({x:s[l],y:0,width:s[l+1]-s[l],height:r[1]})}this._updateDataInfo(t)},e.prototype._updateDataInfo=function(t){var e=this.dataZoomModel,n=this._displayables,i=n.handleLabels,r=this._orient,o=["",""];if(e.get("showDetail")){var a=e.findRepresentativeAxisProxy();if(a){var s=a.getAxisModel().axis,l=this._range,h=t?a.calculateDataWindow({start:l[0],end:l[1]}).valueWindow:a.getDataValueWindow();o=[this._formatLabel(h[0],s),this._formatLabel(h[1],s)]}}var c=(0,Se.Y6)(this._handleEnds.slice());function u(t){var e=qt.getTransform(n.handles[t].parent,this.group),a=qt.transformDirection(0===t?"right":"left",e),s=this._handleWidth/2+5,l=qt.applyTransform([c[t]+(0===t?-s:s),this._size[1]/2],e);i[t].setStyle({x:l[0],y:l[1],verticalAlign:r===nb?"middle":a,align:r===nb?a:"center",text:o[t]})}u.call(this,0),u.call(this,1)},e.prototype._formatLabel=function(t,e){var n=this.dataZoomModel,i=n.get("labelFormatter"),r=n.get("labelPrecision");null!=r&&"auto"!==r||(r=e.getPixelPrecision());var o=null==t||isNaN(t)?"":"category"===e.type||"time"===e.type?e.scale.getLabel({value:Math.round(t)}):t.toFixed(Math.min(r,20));return(0,_.isFunction)(i)?i(t,o):(0,_.isString)(i)?i.replace("{value}",o):o},e.prototype._showDataInfo=function(t){t=this._dragging||t;var e=this._displayables,n=e.handleLabels;n[0].attr("invisible",!t),n[1].attr("invisible",!t),e.moveHandle&&this.api[t?"enterEmphasis":"leaveEmphasis"](e.moveHandle,1)},e.prototype._onDragMove=function(t,e,n,i){this._dragging=!0,Fr.ds(i.event);var r=this._displayables.sliderGroup.getLocalTransform(),o=qt.applyTransform([e,n],r,!0),a=this._updateInterval(t,o[0]),s=this.dataZoomModel.get("realtime");this._updateView(!s),a&&s&&this._dispatchZoomAction(!0)},e.prototype._onDragEnd=function(){this._dragging=!1,this._showDataInfo(!1),!this.dataZoomModel.get("realtime")&&this._dispatchZoomAction(!1)},e.prototype._onClickPanel=function(t){var e=this._size,n=this._displayables.sliderGroup.transformCoordToLocal(t.offsetX,t.offsetY);if(!(n[0]<0||n[0]>e[0]||n[1]<0||n[1]>e[1])){var i=this._handleEnds,r=(i[0]+i[1])/2,o=this._updateInterval("all",n[0]-r);this._updateView(),o&&this._dispatchZoomAction(!1)}},e.prototype._onBrushStart=function(t){var e=t.offsetX,n=t.offsetY;this._brushStart=new Rn.A(e,n),this._brushing=!0,this._brushStartTime=+new Date},e.prototype._onBrushEnd=function(t){if(this._brushing){var e=this._displayables.brushRect;if(this._brushing=!1,e){e.attr("ignore",!0);var n=e.shape;if(!(+new Date-this._brushStartTime<200&&Math.abs(n.width)<5)){var i=this._getViewExtent(),r=[0,100];this._range=(0,Se.Y6)([(0,Se.Cb)(n.x,i,r,!0),(0,Se.Cb)(n.x+n.width,i,r,!0)]),this._handleEnds=[n.x,n.x+n.width],this._updateView(),this._dispatchZoomAction(!1)}}}},e.prototype._onBrush=function(t){this._brushing&&(Fr.ds(t.event),this._updateBrushRect(t.offsetX,t.offsetY))},e.prototype._updateBrushRect=function(t,e){var n=this._displayables,i=this.dataZoomModel,r=n.brushRect;r||(r=n.brushRect=new eb({silent:!0,style:i.getModel("brushStyle").getItemStyle()}),n.sliderGroup.add(r)),r.attr("ignore",!1);var o=this._brushStart,a=this._displayables.sliderGroup,s=a.transformCoordToLocal(t,e),l=a.transformCoordToLocal(o.x,o.y),h=this._size;s[0]=Math.max(Math.min(h[0],s[0]),0),r.setShape({x:l[0],y:0,width:s[0]-l[0],height:h[1]})},e.prototype._dispatchZoomAction=function(t){var e=this._range;this.api.dispatchAction({type:"dataZoom",from:this.uid,dataZoomId:this.dataZoomModel.id,animation:t?ob:null,start:e[0],end:e[1]})},e.prototype._findCoordRect=function(){var t,e=uv(this.dataZoomModel).infoList;if(!t&&e.length){var n=e[0].model.coordinateSystem;t=n.getRect&&n.getRect()}if(!t){var i=this.api.getWidth(),r=this.api.getHeight();t={x:.2*i,y:.2*r,width:.6*i,height:.6*r}}return t},e.type="dataZoom.slider",e}(vv);function sb(t){return"vertical"===t?"ns-resize":"ew-resize"}const lb=ab;function hb(t){t.registerComponentModel(tb),t.registerComponentView(lb),Av(t)}var cb={get:function(t,e,n){var i=_.clone((ub[t]||{})[e]);return n&&_.isArray(i)?i[i.length-1]:i}},ub={color:{active:["#006edd","#e0ffff"],inactive:["rgba(0,0,0,0)"]},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]}};const db=cb;var pb=Zs.mapVisual,fb=Zs.eachVisual,gb=_.isArray,mb=_.each,vb=Se.Y6,yb=Se.Cb,_b=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.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(0,Bt.C6)(e,t),e.prototype.init=function(t,e,n){this.mergeDefaultAndTheme(t,n)},e.prototype.optionUpdated=function(t,e){var n=this.option;!e&&Qy(n,t,this.replacableOptionKeys),this.textStyleModel=this.getModel("textStyle"),this.resetItemSize(),this.completeVisualOption()},e.prototype.resetVisual=function(t){var e=this.stateList;t=_.bind(t,this),this.controllerVisuals=Jy(this.option.controller,e,t),this.targetVisuals=Jy(this.option.target,e,t)},e.prototype.getItemSymbol=function(){return null},e.prototype.getTargetSeriesIndices=function(){var t=this.option.seriesIndex,e=[];return null==t||"all"===t?this.ecModel.eachSeries((function(t,n){e.push(n)})):e=ce.qB(t),e},e.prototype.eachTargetSeries=function(t,e){_.each(this.getTargetSeriesIndices(),(function(n){var i=this.ecModel.getSeriesByIndex(n);i&&t.call(e,i)}),this)},e.prototype.isTargetSeries=function(t){var e=!1;return this.eachTargetSeries((function(n){n===t&&(e=!0)})),e},e.prototype.formatValueText=function(t,e,n){var i,r=this.option,o=r.precision,a=this.dataBound,s=r.formatter;n=n||["<",">"],_.isArray(t)&&(t=t.slice(),i=!0);var l=e?t:i?[h(t[0]),h(t[1])]:h(t);return _.isString(s)?s.replace("{value}",i?l[0]:l).replace("{value2}",i?l[1]:l):_.isFunction(s)?i?s(t[0],t[1]):s(t):i?t[0]===a[0]?n[0]+" "+l[1]:t[1]===a[1]?n[1]+" "+l[0]:l[0]+" - "+l[1]:l;function h(t){return t===a[0]?"min":t===a[1]?"max":(+t).toFixed(Math.min(o,20))}},e.prototype.resetExtent=function(){var t=this.option,e=vb([t.min,t.max]);this._dataExtent=e},e.prototype.getDataDimensionIndex=function(t){var e=this.option.dimension;if(null!=e)return t.getDimensionIndex(e);for(var n=t.dimensions,i=n.length-1;i>=0;i--){var r=n[i],o=t.getDimensionInfo(r);if(!o.isCalculationCoord)return o.storeDimIndex}},e.prototype.getExtent=function(){return this._dataExtent.slice()},e.prototype.completeVisualOption=function(){var t=this.ecModel,e=this.option,n={inRange:e.inRange,outOfRange:e.outOfRange},i=e.target||(e.target={}),r=e.controller||(e.controller={});_.merge(i,n),_.merge(r,n);var o=this.isCategory();function a(n){gb(e.color)&&!n.inRange&&(n.inRange={color:e.color.slice().reverse()}),n.inRange=n.inRange||{color:t.get("gradientColor")}}a.call(this,i),a.call(this,r),function(t,e,n){var i=t[e],r=t[n];i&&!r&&(r=t[n]={},mb(i,(function(t,e){if(Zs.isValidType(e)){var n=db.get(e,"inactive",o);null!=n&&(r[e]=n,"color"!==e||r.hasOwnProperty("opacity")||r.hasOwnProperty("colorAlpha")||(r.opacity=[0,0]))}})))}.call(this,i,"inRange","outOfRange"),function(t){var e=(t.inRange||{}).symbol||(t.outOfRange||{}).symbol,n=(t.inRange||{}).symbolSize||(t.outOfRange||{}).symbolSize,i=this.get("inactiveColor"),r=this.getItemSymbol()||"roundRect";mb(this.stateList,(function(a){var s=this.itemSize,l=t[a];l||(l=t[a]={color:o?i:[i]}),null==l.symbol&&(l.symbol=e&&_.clone(e)||(o?r:[r])),null==l.symbolSize&&(l.symbolSize=n&&_.clone(n)||(o?s[0]:[s[0],s[0]])),l.symbol=pb(l.symbol,(function(t){return"none"===t?r:t}));var h=l.symbolSize;if(null!=h){var c=-1/0;fb(h,(function(t){t>c&&(c=t)})),l.symbolSize=pb(h,(function(t){return yb(t,[0,c],[0,s[0]],!0)}))}}),this)}.call(this,r)},e.prototype.resetItemSize=function(){this.itemSize=[parseFloat(this.get("itemWidth")),parseFloat(this.get("itemHeight"))]},e.prototype.isCategory=function(){return!!this.option.categories},e.prototype.setSelected=function(t){},e.prototype.getSelected=function(){return null},e.prototype.getValueState=function(t){return null},e.prototype.getVisualMeta=function(t){return null},e.type="visualMap",e.dependencies=["series"],e.defaultOption={show:!0,z:4,seriesIndex:"all",min:0,max:200,left:0,right:null,top:null,bottom:0,itemWidth:null,itemHeight:null,inverse:!1,orient:"vertical",backgroundColor:"rgba(0,0,0,0)",borderColor:"#ccc",contentColor:"#5793f3",inactiveColor:"#aaa",borderWidth:0,padding:5,textGap:10,precision:0,textStyle:{color:"#333"}},e}(oi.A);const xb=_b;var bb=[20,140],wb=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return(0,Bt.C6)(e,t),e.prototype.optionUpdated=function(e,n){t.prototype.optionUpdated.apply(this,arguments),this.resetExtent(),this.resetVisual((function(t){t.mappingMethod="linear",t.dataExtent=this.getExtent()})),this._resetRange()},e.prototype.resetItemSize=function(){t.prototype.resetItemSize.apply(this,arguments);var e=this.itemSize;(null==e[0]||isNaN(e[0]))&&(e[0]=bb[0]),(null==e[1]||isNaN(e[1]))&&(e[1]=bb[1])},e.prototype._resetRange=function(){var t=this.getExtent(),e=this.option.range;!e||e.auto?(t.auto=1,this.option.range=t):_.isArray(e)&&(e[0]>e[1]&&e.reverse(),e[0]=Math.max(e[0],t[0]),e[1]=Math.min(e[1],t[1]))},e.prototype.completeVisualOption=function(){t.prototype.completeVisualOption.apply(this,arguments),_.each(this.stateList,(function(t){var e=this.option.controller[t].symbolSize;e&&e[0]!==e[1]&&(e[0]=e[1]/3)}),this)},e.prototype.setSelected=function(t){this.option.range=t.slice(),this._resetRange()},e.prototype.getSelected=function(){var t=this.getExtent(),e=Se.Y6((this.get("range")||[]).slice());return e[0]>t[1]&&(e[0]=t[1]),e[1]>t[1]&&(e[1]=t[1]),e[0]<t[0]&&(e[0]=t[0]),e[1]<t[0]&&(e[1]=t[0]),e},e.prototype.getValueState=function(t){var e=this.option.range,n=this.getExtent();return(e[0]<=n[0]||e[0]<=t)&&(e[1]>=n[1]||t<=e[1])?"inRange":"outOfRange"},e.prototype.findTargetDataIndices=function(t){var e=[];return this.eachTargetSeries((function(n){var i=[],r=n.getData();r.each(this.getDataDimensionIndex(r),(function(e,n){t[0]<=e&&e<=t[1]&&i.push(n)}),this),e.push({seriesId:n.id,dataIndex:i})}),this),e},e.prototype.getVisualMeta=function(t){var e=Sb(this,"outOfRange",this.getExtent()),n=Sb(this,"inRange",this.option.range.slice()),i=[];function r(e,n){i.push({value:e,color:t(e,n)})}for(var o=0,a=0,s=n.length,l=e.length;a<l&&(!n.length||e[a]<=n[0]);a++)e[a]<n[o]&&r(e[a],"outOfRange");for(var h=1;o<s;o++,h=0)h&&i.length&&r(n[o],"outOfRange"),r(n[o],"inRange");for(h=1;a<l;a++)(!n.length||n[n.length-1]<e[a])&&(h&&(i.length&&r(i[i.length-1].value,"outOfRange"),h=0),r(e[a],"outOfRange"));var c=i.length;return{stops:i,outerColors:[c?i[0].color:"transparent",c?i[c-1].color:"transparent"]}},e.type="visualMap.continuous",e.defaultOption=(0,Ze.G_)(xb.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:"#fff",borderWidth:1},indicatorIcon:"circle",indicatorSize:"50%",indicatorStyle:{borderColor:"#fff",borderWidth:2,shadowBlur:2,shadowOffsetX:1,shadowOffsetY:1,shadowColor:"rgba(0,0,0,0.2)"}}),e}(xb);function Sb(t,e,n){if(n[0]===n[1])return n.slice();for(var i=(n[1]-n[0])/200,r=n[0],o=[],a=0;a<=200&&r<n[1];a++)o.push(r),r+=i;return o.push(n[1]),o}const Tb=wb;const Mb=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n.autoPositionValues={left:1,right:1,top:1,bottom:1},n}return(0,Bt.C6)(e,t),e.prototype.init=function(t,e){this.ecModel=t,this.api=e},e.prototype.render=function(t,e,n,i){this.visualMapModel=t,!1!==t.get("show")?this.doRender(t,e,n,i):this.group.removeAll()},e.prototype.renderBackground=function(t){var e=this.visualMapModel,n=Ie.QX(e.get("padding")||0),i=t.getBoundingRect();t.add(new be.A({z2:-1,silent:!0,shape:{x:i.x-n[3],y:i.y-n[0],width:i.width+n[3]+n[1],height:i.height+n[0]+n[2]},style:{fill:e.get("backgroundColor"),stroke:e.get("borderColor"),lineWidth:e.get("borderWidth")}}))},e.prototype.getControllerVisual=function(t,e,n){var i=(n=n||{}).forceState,r=this.visualMapModel,o={};if("color"===e){var a=r.get("contentColor");o.color=a}function s(t){return o[t]}function l(t,e){o[t]=e}var h=r.controllerVisuals[i||r.getValueState(t)],c=Zs.prepareVisualTypes(h);return _.each(c,(function(i){var r=h[i];n.convertOpacityToAlpha&&"opacity"===i&&(i="colorAlpha",r=h.__alphaForOpacity),Zs.dependsOn(i,e)&&r&&r.applyVisual(t,s,l)})),o[e]},e.prototype.positionGroup=function(t){var e=this.visualMapModel,n=this.api;Mn.m$(t,e.getBoxLayoutParams(),{width:n.getWidth(),height:n.getHeight()})},e.prototype.doRender=function(t,e,n,i){},e.type="visualMap",e}(ri.A);var Ab=[["left","right","width"],["top","bottom","height"]];function Cb(t,e,n){var i=t.option,r=i.align;if(null!=r&&"auto"!==r)return r;for(var o={width:e.getWidth(),height:e.getHeight()},a="horizontal"===i.orient?1:0,s=Ab[a],l=[0,null,10],h={},c=0;c<3;c++)h[Ab[1-a][c]]=l[c],h[s[c]]=2===c?n[0]:i[s[c]];var u=[["x","width",3],["y","height",0]][a],d=(0,Mn.dV)(h,o,i.padding);return s[(d.margin[u[2]]||0)+d[u[0]]+.5*d[u[1]]<.5*o[u[1]]?0:1]}function Ib(t,e){return _.each(t||[],(function(t){null!=t.dataIndex&&(t.dataIndexInside=t.dataIndex,t.dataIndex=null),t.highlightKey="visualMap"+(e?e.componentIndex:"")})),t}var Eb=Se.Cb,kb=_.each,Lb=Math.min,Db=Math.max,Pb=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n._shapes={},n._dataInterval=[],n._handleEnds=[],n._hoverLinkDataIndices=[],n}return(0,Bt.C6)(e,t),e.prototype.init=function(e,n){t.prototype.init.call(this,e,n),this._hoverLinkFromSeriesMouseOver=_.bind(this._hoverLinkFromSeriesMouseOver,this),this._hideIndicator=_.bind(this._hideIndicator,this)},e.prototype.doRender=function(t,e,n,i){i&&"selectDataRange"===i.type&&i.from===this.uid||this._buildView()},e.prototype._buildView=function(){this.group.removeAll();var t=this.visualMapModel,e=this.group;this._orient=t.get("orient"),this._useHandle=t.get("calculable"),this._resetInterval(),this._renderBar(e);var n=t.get("text");this._renderEndsText(e,n,0),this._renderEndsText(e,n,1),this._updateView(!0),this.renderBackground(e),this._updateView(),this._enableHoverLinkToSeries(),this._enableHoverLinkFromSeries(),this.positionGroup(e)},e.prototype._renderEndsText=function(t,e,n){if(e){var i=e[1-n];i=null!=i?i+"":"";var r=this.visualMapModel,o=r.get("textGap"),a=r.itemSize,s=this._shapes.mainGroup,l=this._applyTransform([a[0]/2,0===n?-o:a[1]+o],s),h=this._applyTransform(0===n?"bottom":"top",s),c=this._orient,u=this.visualMapModel.textStyleModel;this.group.add(new Z.Ay({style:(0,Jt.VB)(u,{x:l[0],y:l[1],verticalAlign:"horizontal"===c?"middle":h,align:"horizontal"===c?h:"center",text:i})}))}},e.prototype._renderBar=function(t){var e=this.visualMapModel,n=this._shapes,i=e.itemSize,r=this._orient,o=this._useHandle,a=Cb(e,this.api,i),s=n.mainGroup=this._createBarGroup(a),l=new jt.A;s.add(l),l.add(n.outOfRange=Rb()),l.add(n.inRange=Rb(null,o?Nb(this._orient):null,_.bind(this._dragHandle,this,"all",!1),_.bind(this._dragHandle,this,"all",!0))),l.setClipPath(new be.A({shape:{x:0,y:0,width:i[0],height:i[1],r:3}}));var h=e.textStyleModel.getTextRect("\u56fd"),c=Db(h.width,h.height);o&&(n.handleThumbs=[],n.handleLabels=[],n.handleLabelPoints=[],this._createHandle(e,s,0,i,c,r),this._createHandle(e,s,1,i,c,r)),this._createIndicator(e,s,i,c,r),t.add(s)},e.prototype._createHandle=function(t,e,n,i,r,o){var a=_.bind(this._dragHandle,this,n,!1),s=_.bind(this._dragHandle,this,n,!0),l=(0,h.lo)(t.get("handleSize"),i[0]),c=(0,Vt.v5)(t.get("handleIcon"),-l/2,-l/2,l,l,null,!0),u=Nb(this._orient);c.attr({cursor:u,draggable:!0,drift:a,ondragend:s,onmousemove:function(t){Fr.ds(t.event)}}),c.x=i[0]/2,c.useStyle(t.getModel("handleStyle").getItemStyle()),c.setStyle({strokeNoScale:!0,strokeFirst:!0}),c.style.lineWidth*=2,c.ensureState("emphasis").style=t.getModel(["emphasis","handleStyle"]).getItemStyle(),(0,Yt.ix)(c,!0),e.add(c);var d=this.visualMapModel.textStyleModel,p=new Z.Ay({cursor:u,draggable:!0,drift:a,onmousemove:function(t){Fr.ds(t.event)},ondragend:s,style:(0,Jt.VB)(d,{x:0,y:0,text:""})});p.ensureState("blur").style={opacity:.1},p.stateTransition={duration:200},this.group.add(p);var f=[l,0],g=this._shapes;g.handleThumbs[n]=c,g.handleLabelPoints[n]=f,g.handleLabels[n]=p},e.prototype._createIndicator=function(t,e,n,i,r){var o=(0,h.lo)(t.get("indicatorSize"),n[0]),a=(0,Vt.v5)(t.get("indicatorIcon"),-o/2,-o/2,o,o,null,!0);a.attr({cursor:"move",invisible:!0,silent:!0,x:n[0]/2});var s=t.getModel("indicatorStyle").getItemStyle();if(a instanceof l.Ay){var c=a.style;a.useStyle(_.extend({image:c.image,x:c.x,y:c.y,width:c.width,height:c.height},s))}else a.useStyle(s);e.add(a);var u=this.visualMapModel.textStyleModel,d=new Z.Ay({silent:!0,invisible:!0,style:(0,Jt.VB)(u,{x:0,y:0,text:""})});this.group.add(d);var p=[("horizontal"===r?i/2:6)+n[0]/2,0],f=this._shapes;f.indicator=a,f.indicatorLabel=d,f.indicatorLabelPoint=p,this._firstShowIndicator=!0},e.prototype._dragHandle=function(t,e,n,i){if(this._useHandle){if(this._dragging=!e,!e){var r=this._applyTransform([n,i],this._shapes.mainGroup,!0);this._updateInterval(t,r[1]),this._hideIndicator(),this._updateView()}e===!this.visualMapModel.get("realtime")&&this.api.dispatchAction({type:"selectDataRange",from:this.uid,visualMapId:this.visualMapModel.id,selected:this._dataInterval.slice()}),e?!this._hovering&&this._clearHoverLinkToSeries():Ob(this.visualMapModel)&&this._doHoverLinkToSeries(this._handleEnds[t],!1)}},e.prototype._resetInterval=function(){var t=this.visualMapModel,e=this._dataInterval=t.getSelected(),n=t.getExtent(),i=[0,t.itemSize[1]];this._handleEnds=[Eb(e[0],n,i,!0),Eb(e[1],n,i,!0)]},e.prototype._updateInterval=function(t,e){e=e||0;var n=this.visualMapModel,i=this._handleEnds,r=[0,n.itemSize[1]];Kh(e,i,r,t,0);var o=n.getExtent();this._dataInterval=[Eb(i[0],r,o,!0),Eb(i[1],r,o,!0)]},e.prototype._updateView=function(t){var e=this.visualMapModel,n=e.getExtent(),i=this._shapes,r=[0,e.itemSize[1]],o=t?r:this._handleEnds,a=this._createBarVisual(this._dataInterval,n,o,"inRange"),s=this._createBarVisual(n,n,r,"outOfRange");i.inRange.setStyle({fill:a.barColor}).setShape("points",a.barPoints),i.outOfRange.setStyle({fill:s.barColor}).setShape("points",s.barPoints),this._updateHandle(o,a)},e.prototype._createBarVisual=function(t,e,n,i){var r={forceState:i,convertOpacityToAlpha:!0},o=this._makeColorGradient(t,r),a=[this.getControllerVisual(t[0],"symbolSize",r),this.getControllerVisual(t[1],"symbolSize",r)],s=this._createBarPoints(n,a);return{barColor:new he.A(0,0,0,1,o),barPoints:s,handlesColor:[o[0].color,o[o.length-1].color]}},e.prototype._makeColorGradient=function(t,e){var n=[],i=(t[1]-t[0])/100;n.push({color:this.getControllerVisual(t[0],"color",e),offset:0});for(var r=1;r<100;r++){var o=t[0]+i*r;if(o>t[1])break;n.push({color:this.getControllerVisual(o,"color",e),offset:r/100})}return n.push({color:this.getControllerVisual(t[1],"color",e),offset:1}),n},e.prototype._createBarPoints=function(t,e){var n=this.visualMapModel.itemSize;return[[n[0]-e[0],t[0]],[n[0],t[0]],[n[0],t[1]],[n[0]-e[1],t[1]]]},e.prototype._createBarGroup=function(t){var e=this._orient,n=this.visualMapModel.get("inverse");return new jt.A("horizontal"!==e||n?"horizontal"===e&&n?{scaleX:"bottom"===t?-1:1,rotation:-Math.PI/2}:"vertical"!==e||n?{scaleX:"left"===t?1:-1}:{scaleX:"left"===t?1:-1,scaleY:-1}:{scaleX:"bottom"===t?1:-1,rotation:Math.PI/2})},e.prototype._updateHandle=function(t,e){if(this._useHandle){var n=this._shapes,i=this.visualMapModel,r=n.handleThumbs,o=n.handleLabels,a=i.itemSize,s=i.getExtent();kb([0,1],(function(l){var h=r[l];h.setStyle("fill",e.handlesColor[l]),h.y=t[l];var c=Eb(t[l],[0,a[1]],s,!0),u=this.getControllerVisual(c,"symbolSize");h.scaleX=h.scaleY=u/a[0],h.x=a[0]-u/2;var d=qt.applyTransform(n.handleLabelPoints[l],qt.getTransform(h,this.group));o[l].setStyle({x:d[0],y:d[1],text:i.formatValueText(this._dataInterval[l]),verticalAlign:"middle",align:"vertical"===this._orient?this._applyTransform("left",n.mainGroup):"center"})}),this)}},e.prototype._showIndicator=function(t,e,n,i){var r=this.visualMapModel,o=r.getExtent(),a=r.itemSize,s=[0,a[1]],l=this._shapes,h=l.indicator;if(h){h.attr("invisible",!1);var c=this.getControllerVisual(t,"color",{convertOpacityToAlpha:!0}),u=this.getControllerVisual(t,"symbolSize"),d=Eb(t,o,s,!0),p=a[0]-u/2,f={x:h.x,y:h.y};h.y=d,h.x=p;var g=qt.applyTransform(l.indicatorLabelPoint,qt.getTransform(h,this.group)),m=l.indicatorLabel;m.attr("invisible",!1);var v=this._applyTransform("left",l.mainGroup),y="horizontal"===this._orient;m.setStyle({text:(n||"")+r.formatValueText(e),verticalAlign:y?v:"middle",align:y?"center":v});var _={x:p,y:d,style:{fill:c}},x={style:{x:g[0],y:g[1]}};if(r.ecModel.isAnimationEnabled()&&!this._firstShowIndicator){var b={duration:100,easing:"cubicInOut",additive:!0};h.x=f.x,h.y=f.y,h.animateTo(_,b),m.animateTo(x,b)}else h.attr(_),m.attr(x);this._firstShowIndicator=!1;var w=this._shapes.handleLabels;if(w)for(var S=0;S<w.length;S++)this.api.enterBlur(w[S])}},e.prototype._enableHoverLinkToSeries=function(){var t=this;this._shapes.mainGroup.on("mousemove",(function(e){if(t._hovering=!0,!t._dragging){var n=t.visualMapModel.itemSize,i=t._applyTransform([e.offsetX,e.offsetY],t._shapes.mainGroup,!0,!0);i[1]=Lb(Db(0,i[1]),n[1]),t._doHoverLinkToSeries(i[1],0<=i[0]&&i[0]<=n[0])}})).on("mouseout",(function(){t._hovering=!1,!t._dragging&&t._clearHoverLinkToSeries()}))},e.prototype._enableHoverLinkFromSeries=function(){var t=this.api.getZr();this.visualMapModel.option.hoverLink?(t.on("mouseover",this._hoverLinkFromSeriesMouseOver,this),t.on("mouseout",this._hideIndicator,this)):this._clearHoverLinkFromSeries()},e.prototype._doHoverLinkToSeries=function(t,e){var n=this.visualMapModel,i=n.itemSize;if(n.option.hoverLink){var r=[0,i[1]],o=n.getExtent();t=Lb(Db(r[0],t),r[1]);var a=function(t,e,n){var i=6,r=t.get("hoverLinkDataSize");r&&(i=Eb(r,e,n,!0)/2);return i}(n,o,r),s=[t-a,t+a],l=Eb(t,r,o,!0),h=[Eb(s[0],r,o,!0),Eb(s[1],r,o,!0)];s[0]<r[0]&&(h[0]=-1/0),s[1]>r[1]&&(h[1]=1/0),e&&(h[0]===-1/0?this._showIndicator(l,h[1],"< ",a):h[1]===1/0?this._showIndicator(l,h[0],"> ",a):this._showIndicator(l,l,"\u2248 ",a));var c=this._hoverLinkDataIndices,u=[];(e||Ob(n))&&(u=this._hoverLinkDataIndices=n.findTargetDataIndices(h));var d=ce.D6(c,u);this._dispatchHighDown("downplay",Ib(d[0],n)),this._dispatchHighDown("highlight",Ib(d[1],n))}},e.prototype._hoverLinkFromSeriesMouseOver=function(t){var e;if((0,Ma.R)(t.target,(function(t){var n=(0,Xt.z)(t);if(null!=n.dataIndex)return e=n,!0}),!0),e){var n=this.ecModel.getSeriesByIndex(e.seriesIndex),i=this.visualMapModel;if(i.isTargetSeries(n)){var r=n.getData(e.dataType),o=r.getStore().get(i.getDataDimensionIndex(r),e.dataIndex);isNaN(o)||this._showIndicator(o,o)}}},e.prototype._hideIndicator=function(){var t=this._shapes;t.indicator&&t.indicator.attr("invisible",!0),t.indicatorLabel&&t.indicatorLabel.attr("invisible",!0);var e=this._shapes.handleLabels;if(e)for(var n=0;n<e.length;n++)this.api.leaveBlur(e[n])},e.prototype._clearHoverLinkToSeries=function(){this._hideIndicator();var t=this._hoverLinkDataIndices;this._dispatchHighDown("downplay",Ib(t,this.visualMapModel)),t.length=0},e.prototype._clearHoverLinkFromSeries=function(){this._hideIndicator();var t=this.api.getZr();t.off("mouseover",this._hoverLinkFromSeriesMouseOver),t.off("mouseout",this._hideIndicator)},e.prototype._applyTransform=function(t,e,n,i){var r=qt.getTransform(e,i?null:this.group);return _.isArray(t)?qt.applyTransform(t,r,n):qt.transformDirection(t,r,n)},e.prototype._dispatchHighDown=function(t,e){e&&e.length&&this.api.dispatchAction({type:t,batch:e})},e.prototype.dispose=function(){this._clearHoverLinkFromSeries(),this._clearHoverLinkToSeries()},e.type="visualMap.continuous",e}(Mb);function Rb(t,e,n,i){return new yr.A({shape:{points:t},draggable:!!n,cursor:e,drift:n,onmousemove:function(t){Fr.ds(t.event)},ondragend:i})}function Ob(t){var e=t.get("hoverLinkOnHandle");return!!(null==e?t.get("realtime"):e)}function Nb(t){return"vertical"===t?"ns-resize":"ew-resize"}const Fb=Pb;var Bb={type:"selectDataRange",event:"dataRangeSelected",update:"update"},zb=function(t,e){e.eachComponent({mainType:"visualMap",query:t},(function(e){e.setSelected(t.selected)}))},Gb=[{createOnAllSeries:!0,reset:function(t,e){var n=[];return e.eachComponent("visualMap",(function(e){var i,r,o,a,s,l=t.pipelineContext;!e.isTargetSeries(t)||l&&l.large||n.push((i=e.stateList,r=e.targetVisuals,o=_.bind(e.getValueState,e),a=e.getDataDimensionIndex(t.getData()),s={},_.each(i,(function(t){var e=Zs.prepareVisualTypes(r[t]);s[t]=e})),{progress:function(t,e){var n,i;function l(t){return(0,Zy.Ez)(e,i,t)}function h(t,n){(0,Zy.oZ)(e,i,t,n)}null!=a&&(n=e.getDimensionIndex(a));for(var c=e.getStore();null!=(i=t.next());){var u=e.getRawDataItem(i);if(!u||!1!==u.visualMap)for(var d=null!=a?c.get(n,i):i,p=o(d),f=r[p],g=s[p],m=0,v=g.length;m<v;m++){var y=g[m];f[y]&&f[y].applyVisual(d,l,h)}}}}))})),n}},{createOnAllSeries:!0,reset:function(t,e){var n=t.getData(),i=[];e.eachComponent("visualMap",(function(e){if(e.isTargetSeries(t)){var r=e.getVisualMeta(_.bind(Vb,null,t,e))||{stops:[],outerColors:[]},o=e.getDataDimensionIndex(n);o>=0&&(r.dimension=o,i.push(r))}})),t.getData().setVisual("visualMeta",i)}}];function Vb(t,e,n,i){for(var r=e.targetVisuals[i],o=Zs.prepareVisualTypes(r),a={color:(0,Zy.rI)(t.getData(),"color")},s=0,l=o.length;s<l;s++){var h=o[s],c=r["opacity"===h?"__alphaForOpacity":h];c&&c.applyVisual(n,u,d)}return a.color;function u(t){return a[t]}function d(t,e){a[t]=e}}var jb=_.each;function Hb(t){var e=t&&t.visualMap;_.isArray(e)||(e=e?[e]:[]),jb(e,(function(t){if(t){Wb(t,"splitList")&&!Wb(t,"pieces")&&(t.pieces=t.splitList,delete t.splitList);var e=t.pieces;e&&_.isArray(e)&&jb(e,(function(t){_.isObject(t)&&(Wb(t,"start")&&!Wb(t,"min")&&(t.min=t.start),Wb(t,"end")&&!Wb(t,"max")&&(t.max=t.end))}))}}))}function Wb(t,e){return t&&t.hasOwnProperty&&t.hasOwnProperty(e)}var Ub=!1;function qb(t){Ub||(Ub=!0,t.registerSubTypeDefaulter("visualMap",(function(t){return t.categories||(t.pieces?t.pieces.length>0:t.splitNumber>0)&&!t.calculable?"piecewise":"continuous"})),t.registerAction(Bb,zb),(0,_.each)(Gb,(function(e){t.registerVisual(t.PRIORITY.VISUAL.COMPONENT,e)})),t.registerPreprocessor(Hb))}function Xb(t){t.registerComponentModel(Tb),t.registerComponentView(Fb),qb(t)}var Yb=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n._pieceList=[],n}return(0,Bt.C6)(e,t),e.prototype.optionUpdated=function(e,n){t.prototype.optionUpdated.apply(this,arguments),this.resetExtent();var i=this._mode=this._determineMode();this._pieceList=[],Zb[this._mode].call(this,this._pieceList),this._resetSelected(e,n);var r=this.option.categories;this.resetVisual((function(t,e){"categories"===i?(t.mappingMethod="category",t.categories=_.clone(r)):(t.dataExtent=this.getExtent(),t.mappingMethod="piecewise",t.pieceList=_.map(this._pieceList,(function(t){return t=_.clone(t),"inRange"!==e&&(t.visual=null),t})))}))},e.prototype.completeVisualOption=function(){var e=this.option,n={},i=Zs.listVisualTypes(),r=this.isCategory();function o(t,e,n){return t&&t[e]&&t[e].hasOwnProperty(n)}_.each(e.pieces,(function(t){_.each(i,(function(e){t.hasOwnProperty(e)&&(n[e]=1)}))})),_.each(n,(function(t,n){var i=!1;_.each(this.stateList,(function(t){i=i||o(e,t,n)||o(e.target,t,n)}),this),!i&&_.each(this.stateList,(function(t){(e[t]||(e[t]={}))[n]=db.get(n,"inRange"===t?"active":"inactive",r)}))}),this),t.prototype.completeVisualOption.apply(this,arguments)},e.prototype._resetSelected=function(t,e){var n=this.option,i=this._pieceList,r=(e?n:t).selected||{};if(n.selected=r,_.each(i,(function(t,e){var n=this.getSelectedMapKey(t);r.hasOwnProperty(n)||(r[n]=!0)}),this),"single"===n.selectedMode){var o=!1;_.each(i,(function(t,e){var n=this.getSelectedMapKey(t);r[n]&&(o?r[n]=!1:o=!0)}),this)}},e.prototype.getItemSymbol=function(){return this.get("itemSymbol")},e.prototype.getSelectedMapKey=function(t){return"categories"===this._mode?t.value+"":t.index+""},e.prototype.getPieceList=function(){return this._pieceList},e.prototype._determineMode=function(){var t=this.option;return t.pieces&&t.pieces.length>0?"pieces":this.option.categories?"categories":"splitNumber"},e.prototype.setSelected=function(t){this.option.selected=_.clone(t)},e.prototype.getValueState=function(t){var e=Zs.findPieceIndex(t,this._pieceList);return null!=e&&this.option.selected[this.getSelectedMapKey(this._pieceList[e])]?"inRange":"outOfRange"},e.prototype.findTargetDataIndices=function(t){var e=[],n=this._pieceList;return this.eachTargetSeries((function(i){var r=[],o=i.getData();o.each(this.getDataDimensionIndex(o),(function(e,i){Zs.findPieceIndex(e,n)===t&&r.push(i)}),this),e.push({seriesId:i.id,dataIndex:r})}),this),e},e.prototype.getRepresentValue=function(t){var e;if(this.isCategory())e=t.value;else if(null!=t.value)e=t.value;else{var n=t.interval||[];e=n[0]===-1/0&&n[1]===1/0?0:(n[0]+n[1])/2}return e},e.prototype.getVisualMeta=function(t){if(!this.isCategory()){var e=[],n=["",""],i=this,r=this._pieceList.slice();if(r.length){var o=r[0].interval[0];o!==-1/0&&r.unshift({interval:[-1/0,o]}),(o=r[r.length-1].interval[1])!==1/0&&r.push({interval:[o,1/0]})}else r.push({interval:[-1/0,1/0]});var a=-1/0;return _.each(r,(function(t){var e=t.interval;e&&(e[0]>a&&s([a,e[0]],"outOfRange"),s(e.slice()),a=e[1])}),this),{stops:e,outerColors:n}}function s(r,o){var a=i.getRepresentValue({interval:r});o||(o=i.getValueState(a));var s=t(a,o);r[0]===-1/0?n[0]=s:r[1]===1/0?n[1]=s:e.push({value:r[0],color:s},{value:r[1],color:s})}},e.type="visualMap.piecewise",e.defaultOption=(0,Ze.G_)(xb.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}),e}(xb),Zb={splitNumber:function(t){var e=this.option,n=Math.min(e.precision,20),i=this.getExtent(),r=e.splitNumber;r=Math.max(parseInt(r,10),1),e.splitNumber=r;for(var o=(i[1]-i[0])/r;+o.toFixed(n)!==o&&n<5;)n++;e.precision=n,o=+o.toFixed(n),e.minOpen&&t.push({interval:[-1/0,i[0]],close:[0,0]});for(var a=0,s=i[0];a<r;s+=o,a++){var l=a===r-1?i[1]:s+o;t.push({interval:[s,l],close:[1,1]})}e.maxOpen&&t.push({interval:[i[1],1/0],close:[0,0]}),(0,Se.sL)(t),_.each(t,(function(t,e){t.index=e,t.text=this.formatValueText(t.interval)}),this)},categories:function(t){var e=this.option;_.each(e.categories,(function(e){t.push({text:this.formatValueText(e,!0),value:e})}),this),$b(e,t)},pieces:function(t){var e=this.option;_.each(e.pieces,(function(e,n){_.isObject(e)||(e={value:e});var i={text:"",index:n};if(null!=e.label&&(i.text=e.label),e.hasOwnProperty("value")){var r=i.value=e.value;i.interval=[r,r],i.close=[1,1]}else{for(var o=i.interval=[],a=i.close=[0,0],s=[1,0,1],l=[-1/0,1/0],h=[],c=0;c<2;c++){for(var u=[["gte","gt","min"],["lte","lt","max"]][c],d=0;d<3&&null==o[c];d++)o[c]=e[u[d]],a[c]=s[d],h[c]=2===d;null==o[c]&&(o[c]=l[c])}h[0]&&o[1]===1/0&&(a[0]=0),h[1]&&o[0]===-1/0&&(a[1]=0),o[0]===o[1]&&a[0]&&a[1]&&(i.value=o[0])}i.visual=Zs.retrieveVisuals(e),t.push(i)}),this),$b(e,t),(0,Se.sL)(t),_.each(t,(function(t){var e=t.close,n=[["<","\u2264"][e[1]],[">","\u2265"][e[0]]];t.text=t.text||this.formatValueText(null!=t.value?t.value:t.interval,!1,n)}),this)}};function $b(t,e){var n=t.inverse;("vertical"===t.orient?!n:n)&&e.reverse()}const Kb=Yb;const Jb=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return(0,Bt.C6)(e,t),e.prototype.doRender=function(){var t=this.group;t.removeAll();var e=this.visualMapModel,n=e.get("textGap"),i=e.textStyleModel,r=i.getFont(),o=i.getTextColor(),a=this._getItemAlign(),s=e.itemSize,l=this._getViewData(),h=l.endsText,c=_.retrieve(e.get("showLabel",!0),!h);h&&this._renderEndsText(t,h[0],s,c,a),_.each(l.viewPieceList,(function(i){var l=i.piece,h=new jt.A;h.onclick=_.bind(this._onItemClick,this,l),this._enableHoverLink(h,i.indexInModelPieceList);var u=e.getRepresentValue(l);if(this._createItemSymbol(h,u,[0,0,s[0],s[1]]),c){var d=this.visualMapModel.getValueState(u);h.add(new Z.Ay({style:{x:"right"===a?-n:s[0]+n,y:s[1]/2,text:l.text,verticalAlign:"middle",align:a,font:r,fill:o,opacity:"outOfRange"===d?.5:1}}))}t.add(h)}),this),h&&this._renderEndsText(t,h[1],s,c,a),Mn.aP(e.get("orient"),t,e.get("itemGap")),this.renderBackground(t),this.positionGroup(t)},e.prototype._enableHoverLink=function(t,e){var n=this;t.on("mouseover",(function(){return i("highlight")})).on("mouseout",(function(){return i("downplay")}));var i=function(t){var i=n.visualMapModel;i.option.hoverLink&&n.api.dispatchAction({type:t,batch:Ib(i.findTargetDataIndices(e),i)})}},e.prototype._getItemAlign=function(){var t=this.visualMapModel,e=t.option;if("vertical"===e.orient)return Cb(t,this.api,t.itemSize);var n=e.align;return n&&"auto"!==n||(n="left"),n},e.prototype._renderEndsText=function(t,e,n,i,r){if(e){var o=new jt.A,a=this.visualMapModel.textStyleModel;o.add(new Z.Ay({style:(0,Jt.VB)(a,{x:i?"right"===r?n[0]:0:n[0]/2,y:n[1]/2,verticalAlign:"middle",align:i?r:"center",text:e})})),t.add(o)}},e.prototype._getViewData=function(){var t=this.visualMapModel,e=_.map(t.getPieceList(),(function(t,e){return{piece:t,indexInModelPieceList:e}})),n=t.get("text"),i=t.get("orient"),r=t.get("inverse");return("horizontal"===i?r:!r)?e.reverse():n&&(n=n.slice().reverse()),{viewPieceList:e,endsText:n}},e.prototype._createItemSymbol=function(t,e,n){t.add((0,Vt.v5)(this.getControllerVisual(e,"symbol"),n[0],n[1],n[2],n[3],this.getControllerVisual(e,"color")))},e.prototype._onItemClick=function(t){var e=this.visualMapModel,n=e.option,i=n.selectedMode;if(i){var r=_.clone(n.selected),o=e.getSelectedMapKey(t);"single"===i||!0===i?(r[o]=!0,_.each(r,(function(t,e){r[e]=e===o}))):r[o]=!r[o],this.api.dispatchAction({type:"selectDataRange",from:this.uid,visualMapId:this.visualMapModel.id,selected:r})}},e.type="visualMap.piecewise",e}(Mb);function Qb(t){t.registerComponentModel(Kb),t.registerComponentView(Jb),qb(t)}var tw={label:{enabled:!0},decal:{show:!1}},ew=(0,ce.$r)(),nw={};function iw(t,e){var n=t.getModel("aria");if(n.get("enabled")){var i=_.clone(tw);_.merge(i.label,t.getLocaleModel().get("aria"),!1),_.merge(n.option,i,!1),function(){if(n.getModel("decal").get("show")){var e=_.createHashMap();t.eachSeries((function(t){if(!t.isColorBySeries()){var n=e.get(t.type);n||(n={},e.set(t.type,n)),ew(t).scope=n}})),t.eachRawSeries((function(e){if(!t.isSeriesFiltered(e))if(_.isFunction(e.enableAriaDecal))e.enableAriaDecal();else{var n=e.getData();if(e.isColorBySeries()){var i=(0,us.x)(e.ecModel,e.name,nw,t.getSeriesCount()),r=n.getVisual("decal");n.setVisual("decal",h(r,i))}else{var o=e.getRawData(),a={},s=ew(e).scope;n.each((function(t){var e=n.getRawIndex(t);a[e]=t}));var l=o.count();o.each((function(t){var i=a[t],r=o.getName(t)||t+"",c=(0,us.x)(e.ecModel,r,s,l),u=n.getItemVisual(i,"decal");n.setItemVisual(i,"decal",h(u,c))}))}}function h(t,e){var n=t?_.extend(_.extend({},e),t):e;return n.dirty=!0,n}}))}}(),function(){var i=e.getZr().dom;if(!i)return;var o=t.getLocaleModel().get("aria"),a=n.getModel("label");if(a.option=_.defaults(a.option,o),!a.get("enabled"))return;if(a.get("description"))return void i.setAttribute("aria-label",a.get("description"));var s,l=t.getSeriesCount(),h=a.get(["data","maxCount"])||10,c=a.get(["series","maxCount"])||10,u=Math.min(l,c);if(l<1)return;var d=function(){var e=t.get("title");e&&e.length&&(e=e[0]);return e&&e.text}();s=d?r(a.get(["general","withTitle"]),{title:d}):a.get(["general","withoutTitle"]);var p=[];s+=r(l>1?a.get(["series","multiple","prefix"]):a.get(["series","single","prefix"]),{seriesCount:l}),t.eachSeries((function(e,n){if(n<u){var i=void 0,o=e.get("name")?"withName":"withoutName";i=r(i=l>1?a.get(["series","multiple",o]):a.get(["series","single",o]),{seriesId:e.seriesIndex,seriesName:e.get("name"),seriesType:(_=e.subType,x=t.getLocaleModel().get(["series","typeNames"]),x[_]||x.chart)});var s=e.getData();if(s.count()>h)i+=r(a.get(["data","partialData"]),{displayCnt:h});else i+=a.get(["data","allData"]);for(var c=a.get(["data","separator","middle"]),d=a.get(["data","separator","end"]),f=[],g=0;g<s.count();g++)if(g<h){var m=s.getName(g),v=s.getValues(g),y=a.get(["data",m?"withName":"withoutName"]);f.push(r(y,{name:m,value:v.join(c)}))}i+=f.join(c)+d,p.push(i)}var _,x}));var f=a.getModel(["series","multiple","separator"]),g=f.get("middle"),m=f.get("end");s+=p.join(g)+m,i.setAttribute("aria-label",s)}()}function r(t,e){if(!_.isString(t))return t;var n=t;return _.each(e,(function(t,e){n=n.replace(new RegExp("\\{\\s*"+e+"\\s*\\}","g"),t)})),n}}function rw(t){if(t&&t.aria){var e=t.aria;null!=e.show&&(e.enabled=e.show),e.label=e.label||{},_.each(["description","general","series","data"],(function(t){null!=e[t]&&(e.label[t]=e[t])}))}}var ow={value:"eq","<":"lt","<=":"lte",">":"gt",">=":"gte","=":"eq","!=":"ne","<>":"ne"},aw=function(){function t(t){if(null==(this._condVal=(0,_.isString)(t)?new RegExp(t):(0,_.isRegExp)(t)?t:null)){0,(0,Wu.$8)("")}}return t.prototype.evaluate=function(t){var e=typeof t;return(0,_.isString)(e)?this._condVal.test(t):!!(0,_.isNumber)(e)&&this._condVal.test(t+"")},t}(),sw=function(){function t(){}return t.prototype.evaluate=function(){return this.value},t}(),lw=function(){function t(){}return t.prototype.evaluate=function(){for(var t=this.children,e=0;e<t.length;e++)if(!t[e].evaluate())return!1;return!0},t}(),hw=function(){function t(){}return t.prototype.evaluate=function(){for(var t=this.children,e=0;e<t.length;e++)if(t[e].evaluate())return!0;return!1},t}(),cw=function(){function t(){}return t.prototype.evaluate=function(){return!this.child.evaluate()},t}(),uw=function(){function t(){}return t.prototype.evaluate=function(){for(var t=!!this.valueParser,e=(0,this.getValue)(this.valueGetterParam),n=t?this.valueParser(e):null,i=0;i<this.subCondList.length;i++)if(!this.subCondList[i].evaluate(t?n:e))return!1;return!0},t}();function dw(t,e){if(!0===t||!1===t){var n=new sw;return n.value=t,n}return fw(t)||(0,Wu.$8)(""),t.and?pw("and",t,e):t.or?pw("or",t,e):t.not?function(t,e){var n=t.not,i="";0;fw(n)||(0,Wu.$8)(i);var r=new cw;r.child=dw(n,e),r.child||(0,Wu.$8)(i);return r}(t,e):function(t,e){for(var n="",i=e.prepareGetValue(t),r=[],o=(0,_.keys)(t),a=t.parser,s=a?(0,H_.zC)(a):null,l=0;l<o.length;l++){var h=o[l];if("parser"!==h&&!e.valueGetterAttrMap.get(h)){var c=(0,_.hasOwn)(ow,h)?ow[h]:h,u=t[h],d=s?s(u):u,p=(0,H_.zs)(c,d)||"reg"===c&&new aw(d);p||(0,Wu.$8)(n),r.push(p)}}r.length||(0,Wu.$8)(n);var f=new uw;return f.valueGetterParam=i,f.valueParser=s,f.getValue=e.getValue,f.subCondList=r,f}(t,e)}function pw(t,e,n){var i=e[t];(0,_.isArray)(i)||(0,Wu.$8)(""),i.length||(0,Wu.$8)("");var r="and"===t?new lw:new hw;return r.children=(0,_.map)(i,(function(t){return dw(t,n)})),r.children.length||(0,Wu.$8)(""),r}function fw(t){return(0,_.isObject)(t)&&!(0,_.isArrayLike)(t)}var gw=function(){function t(t,e){this._cond=dw(t,e)}return t.prototype.evaluate=function(){return this._cond.evaluate()},t}();var mw={type:"echarts:filter",transform:function(t){for(var e,n,i,r=t.upstream,o=(n=t.config,i={valueGetterAttrMap:(0,_.createHashMap)({dimension:!0}),prepareGetValue:function(t){var e=t.dimension;(0,_.hasOwn)(t,"dimension")||(0,Wu.$8)("");var n=r.getDimensionInfo(e);return n||(0,Wu.$8)(""),{dimIdx:n.index}},getValue:function(t){return r.retrieveValueFromItem(e,t.dimIdx)}},new gw(n,i)),a=[],s=0,l=r.count();s<l;s++)e=r.getRawDataItem(s),o.evaluate()&&a.push(e);return{data:a}}};var vw={type:"echarts:sort",transform:function(t){var e=t.upstream,n=t.config,i="",r=(0,ce.qB)(n);r.length||(0,Wu.$8)(i);var o=[];(0,_.each)(r,(function(t){var n=t.dimension,r=t.order,a=t.parser,s=t.incomparable;if(null==n&&(0,Wu.$8)(i),"asc"!==r&&"desc"!==r&&(0,Wu.$8)(i),s&&"min"!==s&&"max"!==s){0,(0,Wu.$8)("")}if("asc"!==r&&"desc"!==r){0,(0,Wu.$8)("")}var l=e.getDimensionInfo(n);l||(0,Wu.$8)(i);var h=a?(0,H_.zC)(a):null;a&&!h&&(0,Wu.$8)(i),o.push({dimIdx:l.index,parser:h,comparator:new H_.Fl(r,s)})}));var a=e.sourceFormat;a!==Uu.Km&&a!==Uu.Wk&&(0,Wu.$8)(i);for(var s=[],l=0,h=e.count();l<h;l++)s.push(e.getRawDataItem(l));return s.sort((function(t,n){for(var i=0;i<o.length;i++){var r=o[i],a=e.retrieveValueFromItem(t,r.dimIdx),s=e.retrieveValueFromItem(n,r.dimIdx);r.parser&&(a=r.parser(a),s=r.parser(s));var l=r.comparator.evaluate(a,s);if(0!==l)return l}return 0})),{data:s}}};var yw=n(2287),_w=N.A.CMD;function xw(t,e){return Math.abs(t-e)<1e-5}function bw(t){var e,n,i,r,o,a=t.data,s=t.len(),l=[],h=0,c=0,u=0,d=0;function p(t,n){e&&e.length>2&&l.push(e),e=[t,n]}function f(t,n,i,r){xw(t,i)&&xw(n,r)||e.push(t,n,i,r,i,r)}function g(t,n,i,r,o,a){var s=Math.abs(n-t),l=4*Math.tan(s/4)/3,h=n<t?-1:1,c=Math.cos(t),u=Math.sin(t),d=Math.cos(n),p=Math.sin(n),f=c*o+i,g=u*a+r,m=d*o+i,v=p*a+r,y=o*l*h,_=a*l*h;e.push(f-y*u,g+_*c,m+y*p,v-_*d,m,v)}for(var m=0;m<s;){var v=a[m++],y=1===m;switch(y&&(u=h=a[m],d=c=a[m+1],v!==_w.L&&v!==_w.C&&v!==_w.Q||(e=[u,d])),v){case _w.M:h=u=a[m++],c=d=a[m++],p(u,d);break;case _w.L:f(h,c,n=a[m++],i=a[m++]),h=n,c=i;break;case _w.C:e.push(a[m++],a[m++],a[m++],a[m++],h=a[m++],c=a[m++]);break;case _w.Q:n=a[m++],i=a[m++],r=a[m++],o=a[m++],e.push(h+2/3*(n-h),c+2/3*(i-c),r+2/3*(n-r),o+2/3*(i-o),r,o),h=r,c=o;break;case _w.A:var _=a[m++],x=a[m++],b=a[m++],w=a[m++],S=a[m++],T=a[m++]+S;m+=1;var M=!a[m++];n=Math.cos(S)*b+_,i=Math.sin(S)*w+x,y?p(u=n,d=i):f(h,c,n,i),h=Math.cos(T)*b+_,c=Math.sin(T)*w+x;for(var A=(M?-1:1)*Math.PI/2,C=S;M?C>T:C<T;C+=A){g(C,M?Math.max(C+A,T):Math.min(C+A,T),_,x,b,w)}break;case _w.R:u=h=a[m++],d=c=a[m++],n=u+a[m++],i=d+a[m++],p(n,d),f(n,d,n,i),f(n,i,u,i),f(u,i,u,d),f(u,d,n,d);break;case _w.Z:e&&f(h,c,u,d),h=u,c=d}}return e&&e.length>2&&l.push(e),l}function ww(t,e,n,i,r,o,a,s,l,h){if(xw(t,n)&&xw(e,i)&&xw(r,a)&&xw(o,s))l.push(a,s);else{var c=2/h,u=c*c,d=a-t,p=s-e,f=Math.sqrt(d*d+p*p);d/=f,p/=f;var g=n-t,m=i-e,v=r-a,y=o-s,_=g*g+m*m,x=v*v+y*y;if(_<u&&x<u)l.push(a,s);else{var b=d*g+p*m,w=-d*v-p*y;if(_-b*b<u&&b>=0&&x-w*w<u&&w>=0)l.push(a,s);else{var S=[],T=[];(0,ue.YT)(t,n,r,a,.5,S),(0,ue.YT)(e,i,o,s,.5,T),ww(S[0],T[0],S[1],T[1],S[2],T[2],S[3],T[3],l,h),ww(S[4],T[4],S[5],T[5],S[6],T[6],S[7],T[7],l,h)}}}}function Sw(t,e,n){var i=t[e],r=t[1-e],o=Math.abs(i/r),a=Math.ceil(Math.sqrt(o*n)),s=Math.floor(n/a);0===s&&(s=1,a=n);for(var l=[],h=0;h<a;h++)l.push(s);var c=n-a*s;if(c>0)for(h=0;h<c;h++)l[h%a]+=1;return l}function Tw(t,e,n){for(var i=t.r0,r=t.r,o=t.startAngle,a=t.endAngle,s=Math.abs(a-o),l=s*r,h=r-i,c=l>Math.abs(h),u=Sw([l,h],c?0:1,e),d=(c?s:h)/u.length,p=0;p<u.length;p++)for(var f=(c?h:s)/u[p],g=0;g<u[p];g++){var m={};c?(m.startAngle=o+d*p,m.endAngle=o+d*(p+1),m.r0=i+f*g,m.r=i+f*(g+1)):(m.startAngle=o+f*g,m.endAngle=o+f*(g+1),m.r0=i+d*p,m.r=i+d*(p+1)),m.clockwise=t.clockwise,m.cx=t.cx,m.cy=t.cy,n.push(m)}}function Mw(t,e,n,i){return t*i-n*e}function Aw(t,e,n,i,r,o,a,s){var l=n-t,h=i-e,c=a-r,u=s-o,d=Mw(c,u,l,h);if(Math.abs(d)<1e-6)return null;var p=Mw(t-r,e-o,c,u)/d;return p<0||p>1?null:new Rn.A(p*l+t,p*h+e)}function Cw(t,e,n){var i=new Rn.A;Rn.A.sub(i,n,e),i.normalize();var r=new Rn.A;return Rn.A.sub(r,t,e),r.dot(i)}function Iw(t,e){var n=t[t.length-1];n&&n[0]===e[0]&&n[1]===e[1]||t.push(e)}function Ew(t){var e=t.points,n=[],i=[];(0,Ga.Cr)(e,n,i);var r=new Jn.A(n[0],n[1],i[0]-n[0],i[1]-n[1]),o=r.width,a=r.height,s=r.x,l=r.y,h=new Rn.A,c=new Rn.A;return o>a?(h.x=c.x=s+o/2,h.y=l,c.y=l+a):(h.y=c.y=l+a/2,h.x=s,c.x=s+o),function(t,e,n){for(var i=t.length,r=[],o=0;o<i;o++){var a=t[o],s=t[(o+1)%i],l=Aw(a[0],a[1],s[0],s[1],e.x,e.y,n.x,n.y);l&&r.push({projPt:Cw(l,e,n),pt:l,idx:o})}if(r.length<2)return[{points:t},{points:t}];r.sort((function(t,e){return t.projPt-e.projPt}));var h=r[0],c=r[r.length-1];if(c.idx<h.idx){var u=h;h=c,c=u}var d=[h.pt.x,h.pt.y],p=[c.pt.x,c.pt.y],f=[d],g=[p];for(o=h.idx+1;o<=c.idx;o++)Iw(f,t[o].slice());for(Iw(f,p),Iw(f,d),o=c.idx+1;o<=h.idx+i;o++)Iw(g,t[o%i].slice());return Iw(g,d),Iw(g,p),[{points:f},{points:g}]}(e,h,c)}function kw(t,e,n,i){if(1===n)i.push(e);else{var r=Math.floor(n/2),o=t(e);kw(t,o[0],r,i),kw(t,o[1],n-r,i)}return i}function Lw(t,e){var n,i=[],r=t.shape;switch(t.type){case"rect":!function(t,e,n){for(var i=t.width,r=t.height,o=i>r,a=Sw([i,r],o?0:1,e),s=o?"width":"height",l=o?"height":"width",h=o?"x":"y",c=o?"y":"x",u=t[s]/a.length,d=0;d<a.length;d++)for(var p=t[l]/a[d],f=0;f<a[d];f++){var g={};g[h]=d*u,g[c]=f*p,g[s]=u,g[l]=p,g.x+=t.x,g.y+=t.y,n.push(g)}}(r,e,i),n=be.A;break;case"sector":Tw(r,e,i),n=we.A;break;case"circle":Tw({r0:0,r:r.r,startAngle:0,endAngle:2*Math.PI,cx:r.cx,cy:r.cy},e,i),n=we.A;break;default:var o=t.getComputedTransform(),a=o?Math.sqrt(Math.max(o[0]*o[0]+o[1]*o[1],o[2]*o[2]+o[3]*o[3])):1,s=(0,_.map)(function(t,e){var n=bw(t),i=[];e=e||1;for(var r=0;r<n.length;r++){var o=n[r],a=[],s=o[0],l=o[1];a.push(s,l);for(var h=2;h<o.length;){var c=o[h++],u=o[h++],d=o[h++],p=o[h++],f=o[h++],g=o[h++];ww(s,l,c,u,d,p,f,g,a,e),s=f,l=g}i.push(a)}return i}(t.getUpdatedPathProxy(),a),(function(t){return function(t){for(var e=[],n=0;n<t.length;)e.push([t[n++],t[n++]]);return e}(t)})),l=s.length;if(0===l)kw(Ew,{points:s[0]},e,i);else if(l===e)for(var h=0;h<l;h++)i.push({points:s[h]});else{var c=0,u=(0,_.map)(s,(function(t){var e=[],n=[];(0,Ga.Cr)(t,e,n);var i=(n[1]-e[1])*(n[0]-e[0]);return c+=i,{poly:t,area:i}}));u.sort((function(t,e){return e.area-t.area}));var d=e;for(h=0;h<l;h++){var p=u[h];if(d<=0)break;var f=h===l-1?d:Math.ceil(p.area/c*e);f<0||(kw(Ew,{points:p.poly},f,i),d-=f)}}n=yr.A}if(!n)return function(t,e){for(var n=[],i=0;i<e;i++)n.push((0,Jr.rR)(t));return n}(t,e);var g,m,v=[];for(h=0;h<i.length;h++){var y=new n;y.setShape(i[h]),g=t,(m=y).setStyle(g.style),m.z=g.z,m.z2=g.z2,m.zlevel=g.zlevel,v.push(y)}return v}function Dw(t,e){var n=t.length,i=e.length;if(n===i)return[t,e];for(var r=[],o=[],a=n<i?t:e,s=Math.min(n,i),l=Math.abs(i-n)/6,h=(s-2)/6,c=Math.ceil(l/h)+1,u=[a[0],a[1]],d=l,p=2;p<s;){var f=a[p-2],g=a[p-1],m=a[p++],v=a[p++],y=a[p++],_=a[p++],x=a[p++],b=a[p++];if(d<=0)u.push(m,v,y,_,x,b);else{for(var w=Math.min(d,c-1)+1,S=1;S<=w;S++){var T=S/w;(0,ue.YT)(f,m,y,x,T,r),(0,ue.YT)(g,v,_,b,T,o),f=r[3],g=o[3],u.push(r[1],o[1],r[2],o[2],f,g),m=r[5],v=o[5],y=r[6],_=o[6]}d-=w-1}}return a===t?[u,e]:[t,u]}function Pw(t,e){for(var n=t.length,i=t[n-2],r=t[n-1],o=[],a=0;a<e.length;)o[a++]=i,o[a++]=r;return o}function Rw(t){for(var e=0,n=0,i=0,r=t.length,o=0,a=r-2;o<r;a=o,o+=2){var s=t[a],l=t[a+1],h=t[o],c=t[o+1],u=s*c-h*l;e+=u,n+=(s+h)*u,i+=(l+c)*u}return 0===e?[t[0]||0,t[1]||0]:[n/e/3,i/e/3,e]}function Ow(t,e,n,i){for(var r=(t.length-2)/6,o=1/0,a=0,s=t.length,l=s-2,h=0;h<r;h++){for(var c=6*h,u=0,d=0;d<s;d+=2){var p=0===d?c:(c+d-2)%l+2,f=t[p]-n[0],g=t[p+1]-n[1],m=e[d]-i[0]-f,v=e[d+1]-i[1]-g;u+=m*m+v*v}u<o&&(o=u,a=h)}return a}function Nw(t){for(var e=[],n=t.length,i=0;i<n;i+=2)e[i]=t[n-i-2],e[i+1]=t[n-i-1];return e}function Fw(t){return t.__isCombineMorphing}var Bw="__mOriginal_";function zw(t,e,n){var i=Bw+e,r=t[i]||t[e];t[i]||(t[i]=t[e]);var o=n.replace,a=n.after,s=n.before;t[e]=function(){var t,e=arguments;return s&&s.apply(this,e),t=o?o.apply(this,e):r.apply(this,e),a&&a.apply(this,e),t}}function Gw(t,e){var n=Bw+e;t[n]&&(t[e]=t[n],t[n]=null)}function Vw(t,e){for(var n=0;n<t.length;n++)for(var i=t[n],r=0;r<i.length;){var o=i[r],a=i[r+1];i[r++]=e[0]*o+e[2]*a+e[4],i[r++]=e[1]*o+e[3]*a+e[5]}}function jw(t,e){var n=t.getUpdatedPathProxy(),i=e.getUpdatedPathProxy(),r=function(t,e){for(var n,i,r,o=[],a=[],s=0;s<Math.max(t.length,e.length);s++){var l=t[s],h=e[s],c=void 0,u=void 0;l?h?(i=c=(n=Dw(l,h))[0],r=u=n[1]):(u=Pw(r||l,l),c=l):(c=Pw(i||h,h),u=h),o.push(c),a.push(u)}return[o,a]}(bw(n),bw(i)),o=r[0],a=r[1],s=t.getComputedTransform(),l=e.getComputedTransform();s&&Vw(o,s),l&&Vw(a,l),zw(e,"updateTransform",{replace:function(){this.transform=null}}),e.transform=null;var h=function(t,e,n,i){for(var r,o=[],a=0;a<t.length;a++){var s=t[a],l=e[a],h=Rw(s),c=Rw(l);null==r&&(r=h[2]<0!=c[2]<0);var u=[],d=[],p=0,f=1/0,g=[],m=s.length;r&&(s=Nw(s));for(var v=6*Ow(s,l,h,c),y=m-2,_=0;_<y;_+=2){var x=(v+_)%y+2;u[_+2]=s[x]-h[0],u[_+3]=s[x+1]-h[1]}if(u[0]=s[v]-h[0],u[1]=s[v+1]-h[1],n>0)for(var b=i/n,w=-i/2;w<=i/2;w+=b){var S=Math.sin(w),T=Math.cos(w),M=0;for(_=0;_<s.length;_+=2){var A=u[_],C=u[_+1],I=l[_]-c[0],E=l[_+1]-c[1],k=I*T-E*S,L=I*S+E*T;g[_]=k,g[_+1]=L;var D=k-A,P=L-C;M+=D*D+P*P}if(M<f){f=M,p=w;for(var R=0;R<g.length;R++)d[R]=g[R]}}else for(var O=0;O<m;O+=2)d[O]=l[O]-c[0],d[O+1]=l[O+1]-c[1];o.push({from:u,to:d,fromCp:h,toCp:c,rotation:-p})}return o}(o,a,10,Math.PI),c=[];zw(e,"buildPath",{replace:function(t){for(var n=e.__morphT,i=1-n,r=[],o=0;o<h.length;o++){var a=h[o],s=a.from,l=a.to,u=a.rotation*n,d=a.fromCp,p=a.toCp,f=Math.sin(u),g=Math.cos(u);(0,xi.lerp)(r,d,p,n);for(var m=0;m<s.length;m+=2){var v=s[m],y=s[m+1],_=v*i+(S=l[m])*n,x=y*i+(T=l[m+1])*n;c[m]=_*g-x*f+r[0],c[m+1]=_*f+x*g+r[1]}var b=c[0],w=c[1];t.moveTo(b,w);for(m=2;m<s.length;){var S=c[m++],T=c[m++],M=c[m++],A=c[m++],C=c[m++],I=c[m++];b===S&&w===T&&M===C&&A===I?t.lineTo(C,I):t.bezierCurveTo(S,T,M,A,C,I),b=C,w=I}}}})}function Hw(t,e,n){if(!t||!e)return e;var i=n.done,r=n.during;return jw(t,e),e.__morphT=0,e.animateTo({__morphT:1},(0,_.defaults)({during:function(t){e.dirtyShape(),r&&r(t)},done:function(){Gw(e,"buildPath"),Gw(e,"updateTransform"),e.__morphT=-1,e.createPathProxy(),e.dirtyShape(),i&&i()}},n)),e}function Ww(t,e,n,i,r,o){t=r===n?0:Math.round(32767*(t-n)/(r-n)),e=o===i?0:Math.round(32767*(e-i)/(o-i));for(var a,s=0,l=32768;l>0;l/=2){var h=0,c=0;(t&l)>0&&(h=1),(e&l)>0&&(c=1),s+=l*l*(3*h^c),0===c&&(1===h&&(t=l-1-t,e=l-1-e),a=t,t=e,e=a)}return s}function Uw(t){var e=1/0,n=1/0,i=-1/0,r=-1/0,o=(0,_.map)(t,(function(t){var o=t.getBoundingRect(),a=t.getComputedTransform(),s=o.x+o.width/2+(a?a[4]:0),l=o.y+o.height/2+(a?a[5]:0);return e=Math.min(s,e),n=Math.min(l,n),i=Math.max(s,i),r=Math.max(l,r),[s,l]}));return(0,_.map)(o,(function(o,a){return{cp:o,z:Ww(o[0],o[1],e,n,i,r),path:t[a]}})).sort((function(t,e){return t.z-e.z})).map((function(t){return t.path}))}function qw(t){return Lw(t.path,t.count)}function Xw(t){return(0,_.isArray)(t[0])}function Yw(t,e){for(var n=[],i=t.length,r=0;r<i;r++)n.push({one:t[r],many:[]});for(r=0;r<e.length;r++){var o=e[r].length,a=void 0;for(a=0;a<o;a++)n[a%i].many.push(e[r][a])}var s=0;for(r=i-1;r>=0;r--)if(!n[r].many.length){var l=n[s].many;if(l.length<=1){if(!s)return n;s=0}o=l.length;var h=Math.ceil(o/2);n[r].many=l.slice(h,o),n[s].many=l.slice(0,h),s++}return n}var Zw={clone:function(t){for(var e=[],n=1-Math.pow(1-t.path.style.opacity,1/t.count),i=0;i<t.count;i++){var r=(0,Jr.rR)(t.path);r.setStyle("opacity",n),e.push(r)}return e},split:null};function $w(t,e,n,i,r,o){if(t.length&&e.length){var a=(0,Ut.Jw)("update",i,r);if(a&&a.duration>0){var l,h,c=i.getModel("universalTransition").get("delay"),u=Object.assign({setToFinal:!0},a);Xw(t)&&(l=t,h=e),Xw(e)&&(l=e,h=t);for(var d=l?l===t:t.length>e.length,p=l?Yw(h,l):Yw(d?e:t,[d?t:e]),f=0,g=0;g<p.length;g++)f+=p[g].many.length;var m=0;for(g=0;g<p.length;g++)v(p[g],d,m,f),m+=p[g].many.length}}function v(t,e,i,r,a){var l=t.many,h=t.one;if(1!==l.length||a)for(var d=(0,_.defaults)({dividePath:Zw[n],individualDelay:c&&function(t,e,n,o){return c(t+i,r)}},u),p=e?function(t,e,n){var i=[];!function t(e){for(var n=0;n<e.length;n++){var r=e[n];Fw(r)?t(r.childrenRef()):r instanceof s.Ay&&i.push(r)}}(t);var r=i.length;if(!r)return{fromIndividuals:[],toIndividuals:[],count:0};var o=(n.dividePath||qw)({path:e,count:r});if(o.length!==r)return console.error("Invalid morphing: unmatched splitted path"),{fromIndividuals:[],toIndividuals:[],count:0};i=Uw(i),o=Uw(o);for(var a=n.done,l=n.during,h=n.individualDelay,c=new O.Ay,u=0;u<r;u++){var d=i[u],p=o[u];p.parent=e,p.copyTransform(c),h||jw(d,p)}function f(t){for(var e=0;e<o.length;e++)o[e].addSelfToZr(t)}function g(){e.__isCombineMorphing=!1,e.__morphT=-1,e.childrenRef=null,Gw(e,"addSelfToZr"),Gw(e,"removeSelfFromZr")}e.__isCombineMorphing=!0,e.childrenRef=function(){return o},zw(e,"addSelfToZr",{after:function(t){f(t)}}),zw(e,"removeSelfFromZr",{after:function(t){for(var e=0;e<o.length;e++)o[e].removeSelfFromZr(t)}});var m=o.length;if(h){var v=m,y=function(){0==--v&&(g(),a&&a())};for(u=0;u<m;u++){var x=h?(0,_.defaults)({delay:(n.delay||0)+h(u,m,i[u],o[u]),done:y},n):n;Hw(i[u],o[u],x)}}else e.__morphT=0,e.animateTo({__morphT:1},(0,_.defaults)({during:function(t){for(var n=0;n<m;n++){var i=o[n];i.__morphT=e.__morphT,i.dirtyShape()}l&&l(t)},done:function(){g();for(var e=0;e<t.length;e++)Gw(t[e],"updateTransform");a&&a()}},n));return e.__zr&&f(e.__zr),{fromIndividuals:i,toIndividuals:o,count:m}}(l,h,d):function(t,e,n){var i=e.length,r=[],o=n.dividePath||qw;if(Fw(t)){!function t(e){for(var n=0;n<e.length;n++){var i=e[n];Fw(i)?t(i.childrenRef()):i instanceof s.Ay&&r.push(i)}}(t.childrenRef());var a=r.length;if(a<i)for(var l=0,h=a;h<i;h++)r.push((0,Jr.rR)(r[l++%a]));r.length=i}else{r=o({path:t,count:i});var c=t.getComputedTransform();for(h=0;h<r.length;h++)r[h].setLocalTransform(c);if(r.length!==i)return console.error("Invalid morphing: unmatched splitted path"),{fromIndividuals:[],toIndividuals:[],count:0}}r=Uw(r),e=Uw(e);var u=n.individualDelay;for(h=0;h<i;h++){var d=u?(0,_.defaults)({delay:(n.delay||0)+u(h,i,r[h],e[h])},n):n;Hw(r[h],e[h],d)}return{fromIndividuals:r,toIndividuals:e,count:e.length}}(h,l,d),f=p.fromIndividuals,g=p.toIndividuals,m=f.length,y=0;y<m;y++){x=c?(0,_.defaults)({delay:c(y,m)},u):u;o(f[y],g[y],e?l[y]:t.one,e?t.one:l[y],x)}else{var x,b=e?l[0]:h,w=e?h:l[0];if(Fw(b))v({many:[b],one:w},!0,i,r,!0);else Hw(b,w,x=c?(0,_.defaults)({delay:c(i,r)},u):u),o(b,w,b,w,x)}}}function Kw(t){if(!t)return[];if((0,_.isArray)(t)){for(var e=[],n=0;n<t.length;n++)e.push(Kw(t[n]));return e}var i=[];return t.traverse((function(t){t instanceof s.Ay&&!t.disableMorphing&&!t.invisible&&!t.ignore&&i.push(t)})),i}var Jw=(0,ce.$r)();function Qw(t,e,n,i){var r=function(t,e){for(var n=t.dimensions,i=0;i<n.length;i++){var r=t.getDimensionInfo(n[i]);if(r&&0===r.otherDims[e])return n[i]}}(t,i?"itemChildGroupId":"itemGroupId");if(r){var o=function(t,e,n){var i=t.getDimensionInfo(n),r=i&&i.ordinalMeta;if(i){var o=t.get(i.name,e);return r&&r.categories[o]||o+""}}(t,e,r);return o}var a=t.getRawDataItem(e),s=i?"childGroupId":"groupId";return a&&a[s]?a[s]+"":i?void 0:n||t.getId(e)}function tS(t){var e=[];return(0,_.each)(t,(function(t){var n=t.data,i=t.dataGroupId;if(!(n.count()>1e4))for(var r=n.getIndices(),o=0;o<r.length;o++)e.push({data:n,groupId:Qw(n,o,i,!1),childGroupId:Qw(n,o,i,!0),divide:t.divide,dataIndex:o})})),e}function eS(t,e,n){t.traverse((function(t){t instanceof s.Ay&&(0,Ut.LW)(t,{style:{opacity:0}},e,{dataIndex:n,isFrom:!0})}))}function nS(t){if(t.parent){var e=t.getComputedTransform();t.setLocalTransform(e),t.parent.remove(t)}}function iS(t){t.stopAnimation(),t.isGroup&&t.traverse((function(t){t.stopAnimation()}))}function rS(t,e,n){var i=tS(t),r=tS(e);function o(t,e,n,i,r){(n||t)&&e.animateFrom({style:n&&n!==t?(0,_.extend)((0,_.extend)({},n.style),t.style):t.style},r)}var a=!1,l=0,h=(0,_.createHashMap)(),c=(0,_.createHashMap)();i.forEach((function(t){t.groupId&&h.set(t.groupId,!0),t.childGroupId&&c.set(t.childGroupId,!0)}));for(var u=0;u<r.length;u++){var d=r[u].groupId;if(c.get(d)){l=1;break}var p=r[u].childGroupId;if(p&&h.get(p)){l=2;break}}function f(t,e){return function(n){var i=n.data,r=n.dataIndex;return e?i.getId(r):t?1===l?n.childGroupId:n.groupId:2===l?n.childGroupId:n.groupId}}var g=function(t,e){var n=t.length;if(n!==e.length)return!1;for(var i=0;i<n;i++){var r=t[i],o=e[i];if(r.data.getId(r.dataIndex)!==o.data.getId(o.dataIndex))return!1}return!0}(i,r),m={};if(!g)for(u=0;u<r.length;u++){var v=r[u],y=v.data.getItemGraphicEl(v.dataIndex);y&&(m[y.id]=!0)}function x(t,e){var n=i[e],s=r[t],l=s.data.hostModel,h=n.data.getItemGraphicEl(n.dataIndex),c=s.data.getItemGraphicEl(s.dataIndex);h!==c?h&&m[h.id]||c&&(iS(c),h?(iS(h),nS(h),a=!0,$w(Kw(h),Kw(c),s.divide,l,t,o)):eS(c,l,t)):c&&function(t,e,n){var i=(0,Ut.Jw)("update",n,e);i&&t.traverse((function(t){if(t instanceof Vo.Ay){var e=(0,Ut.Xr)(t);e&&t.animateFrom({style:e},i)}}))}(c,s.dataIndex,l)}new gs.A(i,r,f(!0,g),f(!1,g),null,"multiple").update(x).updateManyToOne((function(t,e){var n=r[t],s=n.data,l=s.hostModel,h=s.getItemGraphicEl(n.dataIndex),c=(0,_.filter)((0,_.map)(e,(function(t){return i[t].data.getItemGraphicEl(i[t].dataIndex)})),(function(t){return t&&t!==h&&!m[t.id]}));h&&(iS(h),c.length?((0,_.each)(c,(function(t){iS(t),nS(t)})),a=!0,$w(Kw(c),Kw(h),n.divide,l,t,o)):eS(h,l,n.dataIndex))})).updateOneToMany((function(t,e){var n=i[e],s=n.data.getItemGraphicEl(n.dataIndex);if(!s||!m[s.id]){var l=(0,_.filter)((0,_.map)(t,(function(t){return r[t].data.getItemGraphicEl(r[t].dataIndex)})),(function(t){return t&&t!==s})),h=r[t[0]].data.hostModel;l.length&&((0,_.each)(l,(function(t){return iS(t)})),s?(iS(s),nS(s),a=!0,$w(Kw(s),Kw(l),n.divide,h,t[0],o)):(0,_.each)(l,(function(e){return eS(e,h,t[0])})))}})).updateManyToMany((function(t,e){new gs.A(e,t,(function(t){return i[t].data.getId(i[t].dataIndex)}),(function(t){return r[t].data.getId(r[t].dataIndex)})).update((function(n,i){x(t[n],e[i])})).execute()})).execute(),a&&(0,_.each)(e,(function(t){var e=t.data.hostModel,i=e&&n.getViewOfSeriesModel(e),r=(0,Ut.Jw)("update",e,0);i&&e.isAnimationEnabled()&&r&&r.duration>0&&i.group.traverse((function(t){t instanceof s.Ay&&!t.animators.length&&t.animateFrom({style:{opacity:0}},r)}))}))}function oS(t){var e=t.getModel("universalTransition").get("seriesKey");return e||t.id}function aS(t){return(0,_.isArray)(t)?t.sort().join(","):t}function sS(t){if(t.hostModel)return t.hostModel.getModel("universalTransition").get("divideShape")}function lS(t,e){for(var n=0;n<t.length;n++){if(null!=e.seriesIndex&&e.seriesIndex===t[n].seriesIndex||null!=e.seriesId&&e.seriesId===t[n].id)return n}}var hS=n(4971);(0,i.Y)([o.a]),(0,i.Y)([function(t){t.registerPainter("svg",Ft)}]),(0,i.Y)([function(t){t.registerChartView(Ge),t.registerSeriesModel(Wt),t.registerLayout(je("line",!0)),t.registerVisual({seriesType:"line",reset:function(t){var e=t.getData(),n=t.getModel("lineStyle").getLineStyle();n&&!n.stroke&&(n.stroke=e.getVisual("style").fill),e.setVisual("legendLineStyle",n)}}),t.registerProcessor(t.PRIORITY.PROCESSOR.STATISTIC,Ue("line"))},function(t){t.registerChartView(Sn),t.registerSeriesModel($e),t.registerLayout(t.PRIORITY.VISUAL.LAYOUT,_.curry(qe.Zp,"bar")),t.registerLayout(t.PRIORITY.VISUAL.PROGRESSIVE_LAYOUT,(0,qe.KF)("bar")),t.registerProcessor(t.PRIORITY.PROCESSOR.STATISTIC,Ue("bar")),t.registerAction({type:"changeAxisOrder",event:"changeAxisOrder",update:"update"},(function(t,e){var n=t.componentType||"series";e.eachComponent({mainType:n,query:t},(function(e){t.sortInfo&&e.axis.setCategorySortInfo(t.sortInfo)}))}))},function(t){t.registerChartView(Hn),t.registerSeriesModel($n),(0,Tn.I)("pie",t.registerAction),t.registerLayout((0,_.curry)(kn,"pie")),t.registerProcessor(Dn("pie")),t.registerProcessor({seriesType:"pie",reset:function(t,e){var n=t.getData();n.filterSelf((function(t){var e=n.mapDimension("value"),i=n.get(e,t);return!((0,_.isNumber)(i)&&!isNaN(i)&&i<0)}))}})},function(t){(0,i.Y)(pr),t.registerSeriesModel(Kn),t.registerChartView(ii),t.registerLayout(je("scatter"))},function(t){(0,i.Y)(Or),t.registerChartView(xr),t.registerSeriesModel(Sr),t.registerLayout(fr),t.registerProcessor(Dn("radar")),t.registerPreprocessor(vr)},function(t){(0,i.Y)(Ia),t.registerChartView(ra),t.registerSeriesModel(aa),t.registerLayout(la),t.registerProcessor(t.PRIORITY.PROCESSOR.STATISTIC,sa),(0,Tn.I)("map",t.registerAction)},function(t){t.registerChartView($a),t.registerSeriesModel(as),t.registerLayout(ls),t.registerVisual(hs),function(t){t.registerAction({type:"treeExpandAndCollapse",event:"treeExpandAndCollapse",update:"update"},(function(t,e){e.eachComponent({mainType:"series",subType:"tree",query:t},(function(e){var n=t.dataIndex,i=e.getData().tree.getNodeByDataIndex(n);i.isExpand=!i.isExpand}))})),t.registerAction({type:"treeRoam",event:"treeRoam",update:"none"},(function(t,e,n){e.eachComponent({mainType:"series",subType:"tree",query:t},(function(e){var i=Ta(e.coordinateSystem,t,void 0,n);e.setCenter&&e.setCenter(i.center),e.setZoom&&e.setZoom(i.zoom)}))}))}(t)},function(t){t.registerSeriesModel(fs),t.registerChartView(Ps),t.registerVisual(Ks),t.registerLayout(cl),function(t){for(var e=0;e<cs.length;e++)t.registerAction({type:cs[e],update:"updateView"},_.noop);t.registerAction({type:"treemapRootToNode",update:"updateView"},(function(t,e){e.eachComponent({mainType:"series",subType:"treemap",query:t},(function(e,n){var i=es(t,["treemapZoomToNode","treemapRootToNode"],e);if(i){var r=e.getViewRoot();r&&(t.direction=is(r,i.node)?"rollUp":"drillDown"),e.resetViewRoot(i.node)}}))}))}(t)},function(t){t.registerChartView(ph),t.registerSeriesModel(_h),t.registerProcessor(ml),t.registerVisual(vl),t.registerVisual(_l),t.registerLayout(El),t.registerLayout(t.PRIORITY.VISUAL.POST_CHART_LAYOUT,Fl),t.registerLayout(zl),t.registerCoordinateSystem("graphView",{dimensions:da.dimensions,create:Gl}),t.registerAction({type:"focusNodeAdjacency",event:"focusNodeAdjacency",update:"series:focusNodeAdjacency"},_.noop),t.registerAction({type:"unfocusNodeAdjacency",event:"unfocusNodeAdjacency",update:"series:unfocusNodeAdjacency"},_.noop),t.registerAction(xh,(function(t,e,n){e.eachComponent({mainType:"series",query:t},(function(e){var i=Ta(e.coordinateSystem,t,void 0,n);e.setCenter&&e.setCenter(i.center),e.setZoom&&e.setZoom(i.zoom)}))}))},function(t){t.registerChartView(Ah),t.registerSeriesModel(Ch)},function(t){t.registerChartView(kh),t.registerSeriesModel(Dh),t.registerLayout(Ph),t.registerProcessor(Dn("funnel"))},function(t){(0,i.Y)(cu),t.registerChartView(zh),t.registerSeriesModel(Vh),t.registerVisual(t.PRIORITY.VISUAL.BRUSH,Hh)},function(t){t.registerChartView(gu),t.registerSeriesModel(vu),t.registerLayout(yu),t.registerVisual(ku),t.registerAction({type:"dragNode",event:"dragnode",update:"update"},(function(t,e){e.eachComponent({mainType:"series",subType:"sankey",query:t},(function(e){e.setNodePosition(t.dataIndex,[t.localX,t.localY])}))}))},function(t){t.registerSeriesModel(Ru),t.registerChartView(Vu),t.registerLayout(Hu),t.registerTransform(qu)},function(t){t.registerChartView(od),t.registerSeriesModel(sd),t.registerPreprocessor(ld),t.registerVisual(fd),t.registerLayout(vd)},function(t){t.registerChartView(bd),t.registerSeriesModel(wd),t.registerLayout(je("effectScatter"))},function(t){t.registerChartView(Nd),t.registerSeriesModel(Vd),t.registerLayout(Od),t.registerVisual(Hd)},function(t){t.registerChartView(Yd),t.registerSeriesModel(Zd)},function(t){t.registerChartView(mp),t.registerSeriesModel(vp),t.registerLayout(t.PRIORITY.VISUAL.LAYOUT,(0,_.curry)(qe.Zp,"pictorialBar")),t.registerLayout(t.PRIORITY.VISUAL.PROGRESSIVE_LAYOUT,(0,qe.KF)("pictorialBar"))},function(t){t.registerChartView(_p),t.registerSeriesModel(bp),t.registerLayout(wp),t.registerProcessor(Dn("themeRiver"))},function(t){t.registerChartView(kp),t.registerSeriesModel(Dp),t.registerLayout((0,_.curry)(Rp,"sunburst")),t.registerProcessor((0,_.curry)(Dn,"sunburst")),t.registerVisual(Np),function(t){t.registerAction({type:Cp,update:"updateView"},(function(t,e){e.eachComponent({mainType:"series",subType:"sunburst",query:t},(function(e,n){var i=es(t,[Cp],e);if(i){var r=e.getViewRoot();r&&(t.direction=is(r,i.node)?"rollUp":"drillDown"),e.resetViewRoot(i.node)}}))})),t.registerAction({type:Ip,update:"none"},(function(t,e,n){t=(0,_.extend)({},t),e.eachComponent({mainType:"series",subType:"sunburst",query:t},(function(e){var n=es(t,[Ip],e);n&&(t.dataIndex=n.node.dataIndex)})),n.dispatchAction((0,_.extend)(t,{type:"highlight"}))})),t.registerAction({type:"sunburstUnhighlight",update:"updateView"},(function(t,e,n){t=(0,_.extend)({},t),n.dispatchAction((0,_.extend)(t,{type:"downplay"}))}))}(t)},function(t){t.registerChartView(Ef),t.registerSeriesModel(Gp)}]),(0,i.Y)((function(t){(0,i.Y)(pr),(0,i.Y)(Rg)})),(0,i.Y)((function(t){(0,i.Y)(Rg),er.registerAxisPointerClass("PolarAxisPointer",Fg),t.registerCoordinateSystem("polar",tm),t.registerComponentModel(Bg),t.registerComponentView(ym),gi(t,"angle",Gg,mm),gi(t,"radius",Vg,vm),t.registerComponentView(sm),t.registerComponentView(dm),t.registerLayout((0,_.curry)(gm,"bar"))})),(0,i.Y)(Ia),(0,i.Y)((function(t){(0,i.Y)(Rg),er.registerAxisPointerClass("SingleAxisPointer",zm),t.registerComponentView(Gm),t.registerComponentView(Tm),t.registerComponentModel(Am),gi(t,"single",Am,Am.defaultOption),t.registerCoordinateSystem("single",Dm)})),(0,i.Y)(cu),(0,i.Y)((function(t){t.registerComponentModel(jm),t.registerComponentView(Um),t.registerCoordinateSystem("calendar",Ym)})),(0,i.Y)((function(t){t.registerComponentModel(Qm),t.registerComponentView(nv),t.registerPreprocessor((function(t){var e=t.graphic;(0,_.isArray)(e)?e[0]&&e[0].elements?t.graphic=[t.graphic[0]]:t.graphic=[{elements:e}]:e&&!e.elements&&(t.graphic=[{elements:[e]}])}))})),(0,i.Y)((function(t){t.registerComponentModel(Dv),t.registerComponentView(Ov),kv("saveAsImage",Nv),kv("magicType",Vv),kv("dataView",Zv),kv("dataZoom",xy),kv("restore",ty),(0,i.Y)(Cv)})),(0,i.Y)((function(t){(0,i.Y)(Rg),t.registerComponentModel(by),t.registerComponentView(qy),t.registerAction({type:"showTip",event:"showTip",update:"tooltip:manuallyShowTip"},_.noop),t.registerAction({type:"hideTip",event:"hideTip",update:"tooltip:manuallyHideTip"},_.noop)})),(0,i.Y)(Rg),(0,i.Y)((function(t){t.registerComponentView(p_),t.registerComponentModel(g_),t.registerPreprocessor(Yy),t.registerVisual(t.PRIORITY.VISUAL.BRUSH,l_),t.registerAction({type:"brush",event:"brush",update:"updateVisual"},(function(t,e){e.eachComponent({mainType:"brush",query:t},(function(e){e.setAreas(t.areas)}))})),t.registerAction({type:"brushSelect",event:"brushSelected",update:"none"},_.noop),t.registerAction({type:"brushEnd",event:"brushEnd",update:"none"},_.noop),kv("brush",v_)})),(0,i.Y)((function(t){t.registerComponentModel(y_),t.registerComponentView(__)})),(0,i.Y)((function(t){t.registerComponentModel(S_),t.registerComponentView(P_),t.registerSubTypeDefaulter("timeline",(function(){return"slider"})),function(t){t.registerAction({type:"timelineChange",event:"timelineChanged",update:"prepareAndUpdate"},(function(t,e,n){var i=e.getComponent("timeline");return i&&null!=t.currentIndex&&(i.setCurrentIndex(t.currentIndex),!i.get("loop",!0)&&i.isIndexMax()&&i.getPlayState()&&(i.setPlayState(!1),n.dispatchAction({type:"timelinePlayChange",playState:!1,from:t.from}))),e.resetOption("timeline",{replaceMerge:i.get("replaceMerge",!0)}),(0,_.defaults)({currentIndex:i.option.currentIndex},t)})),t.registerAction({type:"timelinePlayChange",event:"timelinePlayChanged",update:"update"},(function(t,e){var n=e.getComponent("timeline");n&&null!=t.playState&&n.setPlayState(t.playState)}))}(t),t.registerPreprocessor(R_)})),(0,i.Y)((function(t){t.registerComponentModel(j_),t.registerComponentView(ex),t.registerPreprocessor((function(t){F_(t.series,"markPoint")&&(t.markPoint=t.markPoint||{})}))})),(0,i.Y)((function(t){t.registerComponentModel(nx),t.registerComponentView(hx),t.registerPreprocessor((function(t){F_(t.series,"markLine")&&(t.markLine=t.markLine||{})}))})),(0,i.Y)((function(t){t.registerComponentModel(cx),t.registerComponentView(_x),t.registerPreprocessor((function(t){F_(t.series,"markArea")&&(t.markArea=t.markArea||{})}))})),(0,i.Y)((function(t){(0,i.Y)(Px),(0,i.Y)(Vx)})),(0,i.Y)((function(t){(0,i.Y)(Qx),(0,i.Y)(hb)})),(0,i.Y)(Qx),(0,i.Y)(hb),(0,i.Y)((function(t){(0,i.Y)(Xb),(0,i.Y)(Qb)})),(0,i.Y)(Xb),(0,i.Y)(Qb),(0,i.Y)((function(t){t.registerPreprocessor(rw),t.registerVisual(t.PRIORITY.VISUAL.ARIA,iw)})),(0,i.Y)((function(t){t.registerTransform(mw),t.registerTransform(vw)})),(0,i.Y)(yw.a),(0,i.Y)((function(t){t.registerUpdateLifecycle("series:beforeupdate",(function(t,e,n){(0,_.each)((0,ce.qB)(n.seriesTransition),(function(t){(0,_.each)((0,ce.qB)(t.to),(function(t){for(var e=n.updatedSeries,i=0;i<e.length;i++)(null!=t.seriesIndex&&t.seriesIndex===e[i].seriesIndex||null!=t.seriesId&&t.seriesId===e[i].id)&&(e[i][Gt.U]=!0)}))}))})),t.registerUpdateLifecycle("series:transition",(function(t,e,n){var i=Jw(e);if(i.oldSeries&&n.updatedSeries&&n.optionChanged){var r=n.seriesTransition;if(r)(0,_.each)((0,ce.qB)(r),(function(t){!function(t,e,n,i){var r=[],o=[];(0,_.each)((0,ce.qB)(t.from),(function(t){var n=lS(e.oldSeries,t);n>=0&&r.push({dataGroupId:e.oldDataGroupIds[n],data:e.oldData[n],divide:sS(e.oldData[n]),groupIdDim:t.dimension})})),(0,_.each)((0,ce.qB)(t.to),(function(t){var i=lS(n.updatedSeries,t);if(i>=0){var r=n.updatedSeries[i].getData();o.push({dataGroupId:e.oldDataGroupIds[i],data:r,divide:sS(r),groupIdDim:t.dimension})}})),r.length>0&&o.length>0&&rS(r,o,i)}(t,i,n,e)}));else{var o=function(t,e){var n=(0,_.createHashMap)(),i=(0,_.createHashMap)(),r=(0,_.createHashMap)();return(0,_.each)(t.oldSeries,(function(e,n){var o=t.oldDataGroupIds[n],a=t.oldData[n],s=oS(e),l=aS(s);i.set(l,{dataGroupId:o,data:a}),(0,_.isArray)(s)&&(0,_.each)(s,(function(t){r.set(t,{key:l,dataGroupId:o,data:a})}))})),(0,_.each)(e.updatedSeries,(function(t){if(t.isUniversalTransitionEnabled()&&t.isAnimationEnabled()){var e=t.get("dataGroupId"),o=t.getData(),a=oS(t),s=aS(a),l=i.get(s);if(l)n.set(s,{oldSeries:[{dataGroupId:l.dataGroupId,divide:sS(l.data),data:l.data}],newSeries:[{dataGroupId:e,divide:sS(o),data:o}]});else if((0,_.isArray)(a)){var h=[];(0,_.each)(a,(function(t){var e=i.get(t);e.data&&h.push({dataGroupId:e.dataGroupId,divide:sS(e.data),data:e.data})})),h.length&&n.set(s,{oldSeries:h,newSeries:[{dataGroupId:e,data:o,divide:sS(o)}]})}else{var c=r.get(a);if(c){var u=n.get(c.key);u||(u={oldSeries:[{dataGroupId:c.dataGroupId,data:c.data,divide:sS(c.data)}],newSeries:[]},n.set(c.key,u)),u.newSeries.push({dataGroupId:e,data:o,divide:sS(o)})}}}})),n}(i,n);(0,_.each)(o.keys(),(function(t){var n=o.get(t);rS(n.oldSeries,n.newSeries,e)}))}(0,_.each)(n.updatedSeries,(function(t){t[Gt.U]&&(t[Gt.U]=!1)}))}for(var a=t.getSeries(),s=i.oldSeries=[],l=i.oldDataGroupIds=[],h=i.oldData=[],c=0;c<a.length;c++){var u=a[c].getData();u.count()<1e4&&(s.push(a[c]),l.push(a[c].get("dataGroupId")),h.push(u))}}))})),(0,i.Y)(hS._)},5203:(t,e,n)=>{"use strict";n.d(e,{Jw:()=>o,LR:()=>h,LW:()=>l,Nz:()=>c,Xr:()=>f,ap:()=>p,oi:()=>s,t5:()=>d});var i=n(7845),r=(0,n(2577).$r)();function o(t,e,n,r,o){var a;if(e&&e.ecModel){var s=e.ecModel.getUpdatePayload();a=s&&s.animation}var l="update"===t;if(e&&e.isAnimationEnabled()){var h=void 0,c=void 0,u=void 0;return r?(h=(0,i.retrieve2)(r.duration,200),c=(0,i.retrieve2)(r.easing,"cubicOut"),u=0):(h=e.getShallow(l?"animationDurationUpdate":"animationDuration"),c=e.getShallow(l?"animationEasingUpdate":"animationEasing"),u=e.getShallow(l?"animationDelayUpdate":"animationDelay")),a&&(null!=a.duration&&(h=a.duration),null!=a.easing&&(c=a.easing),null!=a.delay&&(u=a.delay)),(0,i.isFunction)(u)&&(u=u(n,o)),(0,i.isFunction)(h)&&(h=h(n)),{duration:h||0,delay:u,easing:c}}return null}function a(t,e,n,r,a,s,l){var h,c=!1;(0,i.isFunction)(a)?(l=s,s=a,a=null):(0,i.isObject)(a)&&(s=a.cb,l=a.during,c=a.isFrom,h=a.removeOpt,a=a.dataIndex);var u="leave"===t;u||e.stopAnimation("leave");var d=o(t,r,a,u?h||{}:null,r&&r.getAnimationDelayParams?r.getAnimationDelayParams(e,a):null);if(d&&d.duration>0){var p={duration:d.duration,delay:d.delay||0,easing:d.easing,done:s,force:!!s||!!l,setToFinal:!u,scope:t,during:l};c?e.animateFrom(n,p):e.animateTo(n,p)}else e.stopAnimation(),!c&&e.attr(n),l&&l(1),s&&s()}function s(t,e,n,i,r,o){a("update",t,e,n,i,r,o)}function l(t,e,n,i,r,o){a("enter",t,e,n,i,r,o)}function h(t){if(!t.__zr)return!0;for(var e=0;e<t.animators.length;e++){if("leave"===t.animators[e].scope)return!0}return!1}function c(t,e,n,i,r,o){h(t)||a("leave",t,e,n,i,r,o)}function u(t,e,n,i){t.removeTextContent(),t.removeTextGuideLine(),c(t,{style:{opacity:0}},e,n,i)}function d(t,e,n){function i(){t.parent&&t.parent.remove(t)}t.isGroup?t.traverse((function(t){t.isGroup||u(t,e,n,i)})):u(t,e,n,i)}function p(t){r(t).oldStyle=t.style}function f(t){return r(t).oldStyle}},9421:(t,e,n)=>{"use strict";n.d(e,{A:()=>r});var i=n(2577);function r(){var t=(0,i.$r)();return function(e){var n=t(e),i=e.pipelineContext,r=!!n.large,o=!!n.progressiveRender,a=n.large=!(!i||!i.large),s=n.progressiveRender=!(!i||!i.progressiveRender);return!(r===a&&o===s)&&"reset"}}},1577:(t,e,n)=>{"use strict";n.d(e,{A:()=>m});var i=n(7845),r=n(919),o=n(7984),a=n(525),s=n(2577),l=n(1452),h=function(t){this.coordSysDims=[],this.axisMap=(0,i.createHashMap)(),this.categoryAxisMap=(0,i.createHashMap)(),this.coordSysName=t};var c={cartesian2d:function(t,e,n,i){var r=t.getReferringComponents("xAxis",s.US).models[0],o=t.getReferringComponents("yAxis",s.US).models[0];e.coordSysDims=["x","y"],n.set("x",r),n.set("y",o),u(r)&&(i.set("x",r),e.firstCategoryDimIndex=0),u(o)&&(i.set("y",o),null==e.firstCategoryDimIndex&&(e.firstCategoryDimIndex=1))},singleAxis:function(t,e,n,i){var r=t.getReferringComponents("singleAxis",s.US).models[0];e.coordSysDims=["single"],n.set("single",r),u(r)&&(i.set("single",r),e.firstCategoryDimIndex=0)},polar:function(t,e,n,i){var r=t.getReferringComponents("polar",s.US).models[0],o=r.findAxisModel("radiusAxis"),a=r.findAxisModel("angleAxis");e.coordSysDims=["radius","angle"],n.set("radius",o),n.set("angle",a),u(o)&&(i.set("radius",o),e.firstCategoryDimIndex=0),u(a)&&(i.set("angle",a),null==e.firstCategoryDimIndex&&(e.firstCategoryDimIndex=1))},geo:function(t,e,n,i){e.coordSysDims=["lng","lat"]},parallel:function(t,e,n,r){var o=t.ecModel,a=o.getComponent("parallel",t.get("parallelIndex")),s=e.coordSysDims=a.dimensions.slice();(0,i.each)(a.parallelAxisIndex,(function(t,i){var a=o.getComponent("parallelAxis",t),l=s[i];n.set(l,a),u(a)&&(r.set(l,a),null==e.firstCategoryDimIndex&&(e.firstCategoryDimIndex=i))}))}};function u(t){return"category"===t.get("type")}var d=n(3244),p=n(933),f=n(6660),g=n(3457);const m=function(t,e,n){n=n||{};var u,m=e.getSourceManager(),v=!1;t?(v=!0,u=(0,d.AF)(t)):v=(u=m.getSource()).sourceFormat===g.mK;var y=function(t){var e=t.get("coordinateSystem"),n=new h(e),i=c[e];if(i)return i(t,n,n.axisMap,n.categoryAxisMap),n}(e),_=function(t,e){var n,r=t.get("coordinateSystem"),o=l.A.get(r);return e&&e.coordSysDims&&(n=i.map(e.coordSysDims,(function(t){var n={name:t},i=e.axisMap.get(t);if(i){var r=i.get("type");n.type=(0,a.B)(r)}return n}))),n||(n=o&&(o.getDimensionsInfo?o.getDimensionsInfo():o.dimensions.slice())||["x","y"]),n}(e,y),x=n.useEncodeDefaulter,b=i.isFunction(x)?x:x?i.curry(f.OC,_,e):null,w={coordDimensions:_,generateCoord:n.generateCoord,encodeDefine:e.getEncode(),encodeDefaulter:b,canOmitUnusedDimensions:!v},S=(0,o.A)(u,w),T=function(t,e,n){var r,o;return n&&i.each(t,(function(t,i){var a=t.coordDim,s=n.categoryAxisMap.get(a);s&&(null==r&&(r=i),t.ordinalMeta=s.getOrdinalMeta(),e&&(t.createInvertedIndices=!0)),null!=t.otherDims.itemName&&(o=!0)})),o||null==r||(t[r].otherDims.itemName=0),r}(S.dimensions,n.createInvertedIndices,y),M=v?null:m.getSharedDataStore(S),A=(0,p.iJ)(e,{schema:S,store:M}),C=new r.A(S,e);C.setCalculationInfo(A);var I=null!=T&&function(t){if(t.sourceFormat===g.mK){var e=function(t){var e=0;for(;e<t.length&&null==t[e];)e++;return t[e]}(t.data||[]);return!i.isArray((0,s.vj)(e))}}(u)?function(t,e,n,i){return i===T?n:this.defaultDimValueGetter(t,e,n,i)}:null;return C.hasItemOption=!1,C.initData(v?u:M,null,I),C}},2287:(t,e,n)=>{"use strict";n.d(e,{a:()=>c});var i=n(528),r=n(9078),o=n(5370),a=n(3457),s=n(4453),l=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="dataset",e}return(0,i.C6)(e,t),e.prototype.init=function(e,n,i){t.prototype.init.call(this,e,n,i),this._sourceManager=new s.R(this),(0,s.A)(this)},e.prototype.mergeOption=function(e,n){t.prototype.mergeOption.call(this,e,n),(0,s.A)(this)},e.prototype.optionUpdated=function(){this._sourceManager.dirty()},e.prototype.getSourceManager=function(){return this._sourceManager},e.type="dataset",e.defaultOption={seriesLayoutBy:a.i_},e}(r.A),h=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="dataset",e}return(0,i.C6)(e,t),e.type="dataset",e}(o.A);function c(t){t.registerComponentModel(l),t.registerComponentView(h)}},8254:(t,e,n)=>{"use strict";n.d(e,{J:()=>s});var i=n(7845),r=n(7276),o=n(6112),a=n(2577);function s(t){var e,n,s,l,h=t.series,c=t.dataIndex,u=t.multipleSeries,d=h.getData(),p=d.mapDimensionsAll("defaultedTooltip"),f=p.length,g=h.getRawValue(c),m=(0,i.isArray)(g),v=(0,r.aw)(h,c);if(f>1||m&&!f){var y=function(t,e,n,a,s){var l=e.getData(),h=(0,i.reduce)(t,(function(t,e,n){var i=l.getDimensionInfo(n);return t||i&&!1!==i.tooltip&&null!=i.displayName}),!1),c=[],u=[],d=[];function p(t,e){var n=l.getDimensionInfo(e);n&&!1!==n.otherDims.tooltip&&(h?d.push((0,r.Qx)("nameValue",{markerType:"subItem",markerColor:s,name:n.displayName,value:t,valueType:n.type})):(c.push(t),u.push(n.type)))}return a.length?(0,i.each)(a,(function(t){p((0,o.QE)(l,n,t),t)})):(0,i.each)(t,p),{inlineValues:c,inlineValueTypes:u,blocks:d}}(g,h,c,p,v);e=y.inlineValues,n=y.inlineValueTypes,s=y.blocks,l=y.inlineValues[0]}else if(f){var _=d.getDimensionInfo(p[0]);l=e=(0,o.QE)(d,c,p[0]),n=_.type}else l=e=m?g[0]:g;var x=(0,a.O0)(h),b=x&&h.name||"",w=d.getName(c),S=u?b:w;return(0,r.Qx)("section",{header:b,noHeader:u||!x,sortParam:l,blocks:[(0,r.Qx)("nameValue",{markerType:"item",markerColor:v,name:S,noName:!(0,i.trim)(S),value:e,valueType:n,dataIndex:c})].concat(s||[])})}},7276:(t,e,n)=>{"use strict";n.d(e,{CO:()=>w,Qx:()=>d,Yu:()=>y,aw:()=>b,lb:()=>S});var i=n(4178),r=n(5065),o=n(7845),a=n(4224),s=n(8883),l="line-height:1";function h(t,e){var n=t.color||"#6e7079",r=t.fontSize||12,o=t.fontWeight||"400",a=t.color||"#464646",s=t.fontSize||14,l=t.fontWeight||"900";return"html"===e?{nameStyle:"font-size:"+(0,i.Me)(r+"")+"px;color:"+(0,i.Me)(n)+";font-weight:"+(0,i.Me)(o+""),valueStyle:"font-size:"+(0,i.Me)(s+"")+"px;color:"+(0,i.Me)(a)+";font-weight:"+(0,i.Me)(l+"")}:{nameStyle:{fontSize:r,fill:n,fontWeight:o},valueStyle:{fontSize:s,fill:a,fontWeight:l}}}var c=[0,10,20,30],u=["","\n","\n\n","\n\n\n"];function d(t,e){return e.type=t,e}function p(t){return"section"===t.type}function f(t){return p(t)?m:v}function g(t){if(p(t)){var e=0,n=t.blocks.length,i=n>1||n>0&&!t.noHeader;return(0,o.each)(t.blocks,(function(t){var n=g(t);n>=e&&(e=n+ +(i&&(!n||p(t)&&!t.noHeader)))})),e}return 0}function m(t,e,n,s){var d,p=e.noHeader,m=(d=g(e),{html:c[d],richText:u[d]}),v=[],y=e.blocks||[];(0,o.assert)(!y||(0,o.isArray)(y)),y=y||[];var b=t.orderMode;if(e.sortBlocks&&b){y=y.slice();var w={valueAsc:"asc",valueDesc:"desc"};if((0,o.hasOwn)(w,b)){var S=new a.Fl(w[b],null);y.sort((function(t,e){return S.evaluate(t.sortParam,e.sortParam)}))}else"seriesDesc"===b&&y.reverse()}(0,o.each)(y,(function(n,i){var r=e.valueFormatter,a=f(n)(r?(0,o.extend)((0,o.extend)({},t),{valueFormatter:r}):t,n,i>0?m.html:0,s);null!=a&&v.push(a)}));var T="richText"===t.renderMode?v.join(m.richText):_(v.join(""),p?n:m.html);if(p)return T;var M=(0,r.yC)(e.header,"ordinal",t.useUTC),A=h(s,t.renderMode).nameStyle;return"richText"===t.renderMode?x(t,M,A)+m.richText+T:_('<div style="'+A+";"+l+';">'+(0,i.Me)(M)+"</div>"+T,n)}function v(t,e,n,a){var s=t.renderMode,l=e.noName,c=e.noValue,u=!e.markerType,d=e.name,p=t.useUTC,f=e.valueFormatter||t.valueFormatter||function(t){return t=(0,o.isArray)(t)?t:[t],(0,o.map)(t,(function(t,e){return(0,r.yC)(t,(0,o.isArray)(v)?v[e]:v,p)}))};if(!l||!c){var g=u?"":t.markupStyleCreator.makeTooltipMarker(e.markerType,e.markerColor||"#333",s),m=l?"":(0,r.yC)(d,"ordinal",p),v=e.valueType,y=c?[]:f(e.value,e.dataIndex),b=!u||!l,w=!u&&l,S=h(a,s),T=S.nameStyle,M=S.valueStyle;return"richText"===s?(u?"":g)+(l?"":x(t,m,T))+(c?"":function(t,e,n,i,r){var a=[r],s=i?10:20;return n&&a.push({padding:[0,0,0,s],align:"right"}),t.markupStyleCreator.wrapRichTextStyle((0,o.isArray)(e)?e.join(" "):e,a)}(t,y,b,w,M)):_((u?"":g)+(l?"":function(t,e,n){return'<span style="'+n+";"+(e?"margin-left:2px":"")+'">'+(0,i.Me)(t)+"</span>"}(m,!u,T))+(c?"":function(t,e,n,r){var a=n?"10px":"20px",s=e?"float:right;margin-left:"+a:"";return t=(0,o.isArray)(t)?t:[t],'<span style="'+s+";"+r+'">'+(0,o.map)(t,(function(t){return(0,i.Me)(t)})).join("  ")+"</span>"}(y,b,w,M)),n)}}function y(t,e,n,i,r,o){if(t)return f(t)({useUTC:r,renderMode:n,orderMode:i,markupStyleCreator:e,valueFormatter:t.valueFormatter},t,0,o)}function _(t,e){return'<div style="'+("margin: "+e+"px 0 0")+";"+l+';">'+t+'<div style="clear:both"></div></div>'}function x(t,e,n){return t.markupStyleCreator.wrapRichTextStyle(e,n)}function b(t,e){var n=t.getData().getItemVisual(e,"style")[t.visualDrawType];return(0,r.he)(n)}function w(t,e){var n=t.get("padding");return null!=n?n:"richText"===e?[8,10]:10}var S=function(){function t(){this.richTextStyles={},this._nextStyleNameId=(0,s.IH)()}return t.prototype._generateStyleName=function(){return"__EC_aUTo_"+this._nextStyleNameId++},t.prototype.makeTooltipMarker=function(t,e,n){var i="richText"===n?this._generateStyleName():null,a=(0,r.qg)({color:e,type:t,renderMode:n,markerId:i});return(0,o.isString)(a)?a:(this.richTextStyles[i]=a.style,a.content)},t.prototype.wrapRichTextStyle=function(t,e){var n={};(0,o.isArray)(e)?(0,o.each)(e,(function(t){return(0,o.extend)(n,t)})):(0,o.extend)(n,e);var i=this._generateStyleName();return this.richTextStyles[i]=n,"{"+i+"|"+t+"}"},t}()},7994:(t,e,n)=>{"use strict";n.d(e,{A:()=>x});var i=n(7845),r=n(8883),o=n(4611),a=n(2577),s=n(5067),l=(0,a.$r)();function h(t,e){var n=i.map(e,(function(e){return t.scale.parse(e)}));return"time"===t.type&&n.length>0&&(n.sort(),n.unshift(n[0]),n.push(n[n.length-1])),n}function c(t){var e=t.getLabelModel().get("customValues");if(e){var n=(0,s.ry)(t);return{labels:h(t,e).map((function(e){var i={value:e};return{formattedLabel:n(i),rawLabel:t.scale.getLabel(i),tickValue:e}}))}}return"category"===t.type?function(t){var e=t.getLabelModel(),n=d(t,e);return!e.get("show")||t.scale.isBlank()?{labels:[],labelCategoryInterval:n.labelCategoryInterval}:n}(t):function(t){var e=t.scale.getTicks(),n=(0,s.ry)(t);return{labels:i.map(e,(function(e,i){return{level:e.level,formattedLabel:n(e,i),rawLabel:t.scale.getLabel(e),tickValue:e.value}}))}}(t)}function u(t,e){var n=t.getTickModel().get("customValues");return n?{ticks:h(t,n)}:"category"===t.type?function(t,e){var n,r,o=p(t,"ticks"),a=(0,s.j2)(e),l=f(o,a);if(l)return l;e.get("show")&&!t.scale.isBlank()||(n=[]);if(i.isFunction(a))n=v(t,a,!0);else if("auto"===a){var h=d(t,t.getLabelModel());r=h.labelCategoryInterval,n=i.map(h.labels,(function(t){return t.tickValue}))}else n=m(t,r=a,!0);return g(o,a,{ticks:n,tickCategoryInterval:r})}(t,e):{ticks:i.map(t.scale.getTicks(),(function(t){return t.value}))}}function d(t,e){var n,r,o=p(t,"labels"),a=(0,s.j2)(e),h=f(o,a);return h||(i.isFunction(a)?n=v(t,a):(r="auto"===a?function(t){var e=l(t).autoInterval;return null!=e?e:l(t).autoInterval=t.calculateCategoryInterval()}(t):a,n=m(t,r)),g(o,a,{labels:n,labelCategoryInterval:r}))}function p(t,e){return l(t)[e]||(l(t)[e]=[])}function f(t,e){for(var n=0;n<t.length;n++)if(t[n].key===e)return t[n].value}function g(t,e,n){return t.push({key:e,value:n}),n}function m(t,e,n){var i=(0,s.ry)(t),r=t.scale,o=r.getExtent(),a=t.getLabelModel(),l=[],h=Math.max((e||0)+1,1),c=o[0],u=r.count();0!==c&&h>1&&u/h>2&&(c=Math.round(Math.ceil(c/h)*h));var d=(0,s.PJ)(t),p=a.get("showMinLabel")||d,f=a.get("showMaxLabel")||d;p&&c!==o[0]&&m(o[0]);for(var g=c;g<=o[1];g+=h)m(g);function m(t){var e={value:t};l.push(n?t:{formattedLabel:i(e),rawLabel:r.getLabel(e),tickValue:t})}return f&&g-h!==o[1]&&m(o[1]),l}function v(t,e,n){var r=t.scale,o=(0,s.ry)(t),a=[];return i.each(r.getTicks(),(function(t){var i=r.getLabel(t),s=t.value;e(t.value,i)&&a.push(n?s:{formattedLabel:o(t),rawLabel:i,tickValue:s})})),a}var y=[0,1];function _(t,e){var n=(t[1]-t[0])/e/2;t[0]+=n,t[1]-=n}const x=function(){function t(t,e,n){this.onBand=!1,this.inverse=!1,this.dim=t,this.scale=e,this._extent=n||[0,0]}return t.prototype.contain=function(t){var e=this._extent,n=Math.min(e[0],e[1]),i=Math.max(e[0],e[1]);return t>=n&&t<=i},t.prototype.containData=function(t){return this.scale.contain(t)},t.prototype.getExtent=function(){return this._extent.slice()},t.prototype.getPixelPrecision=function(t){return(0,r.hb)(t||this.scale.getExtent(),this._extent)},t.prototype.setExtent=function(t,e){var n=this._extent;n[0]=t,n[1]=e},t.prototype.dataToCoord=function(t,e){var n=this._extent,i=this.scale;return t=i.normalize(t),this.onBand&&"ordinal"===i.type&&_(n=n.slice(),i.count()),(0,r.Cb)(t,y,n,e)},t.prototype.coordToData=function(t,e){var n=this._extent,i=this.scale;this.onBand&&"ordinal"===i.type&&_(n=n.slice(),i.count());var o=(0,r.Cb)(t,n,y,e);return this.scale.scale(o)},t.prototype.pointToData=function(t,e){},t.prototype.getTicksCoords=function(t){var e=(t=t||{}).tickModel||this.getTickModel(),n=u(this,e).ticks,o=(0,i.map)(n,(function(t){return{coord:this.dataToCoord("ordinal"===this.scale.type?this.scale.getRawOrdinalNumber(t):t),tickValue:t}}),this);return function(t,e,n,o){var a=e.length;if(!t.onBand||n||!a)return;var s,l,h=t.getExtent();if(1===a)e[0].coord=h[0],s=e[1]={coord:h[1]};else{var c=e[a-1].tickValue-e[0].tickValue,u=(e[a-1].coord-e[0].coord)/c;(0,i.each)(e,(function(t){t.coord-=u/2})),l=1+t.scale.getExtent()[1]-e[a-1].tickValue,s={coord:e[a-1].coord+u*l},e.push(s)}var d=h[0]>h[1];p(e[0].coord,h[0])&&(o?e[0].coord=h[0]:e.shift());o&&p(h[0],e[0].coord)&&e.unshift({coord:h[0]});p(h[1],s.coord)&&(o?s.coord=h[1]:e.pop());o&&p(s.coord,h[1])&&e.push({coord:h[1]});function p(t,e){return t=(0,r.LI)(t),e=(0,r.LI)(e),d?t>e:t<e}}(this,o,e.get("alignWithLabel"),t.clamp),o},t.prototype.getMinorTicksCoords=function(){if("ordinal"===this.scale.type)return[];var t=this.model.getModel("minorTick").get("splitNumber");t>0&&t<100||(t=5);var e=this.scale.getMinorTicks(t);return(0,i.map)(e,(function(t){return(0,i.map)(t,(function(t){return{coord:this.dataToCoord(t),tickValue:t}}),this)}),this)},t.prototype.getViewLabels=function(){return c(this).labels},t.prototype.getLabelModel=function(){return this.model.getModel("axisLabel")},t.prototype.getTickModel=function(){return this.model.getModel("axisTick")},t.prototype.getBandWidth=function(){var t=this._extent,e=this.scale.getExtent(),n=e[1]-e[0]+(this.onBand?1:0);0===n&&(n=1);var i=Math.abs(t[1]-t[0]);return Math.abs(i)/n},t.prototype.calculateCategoryInterval=function(){return function(t){var e=function(t){var e=t.getLabelModel();return{axisRotate:t.getRotate?t.getRotate():t.isHorizontal&&!t.isHorizontal()?90:0,labelRotate:e.get("rotate")||0,font:e.getFont()}}(t),n=(0,s.ry)(t),i=(e.axisRotate-e.labelRotate)/180*Math.PI,r=t.scale,a=r.getExtent(),h=r.count();if(a[1]-a[0]<1)return 0;var c=1;h>40&&(c=Math.max(1,Math.floor(h/40)));for(var u=a[0],d=t.dataToCoord(u+1)-t.dataToCoord(u),p=Math.abs(d*Math.cos(i)),f=Math.abs(d*Math.sin(i)),g=0,m=0;u<=a[1];u+=c){var v,y,_=o.NO(n({value:u}),e.font,"center","top");v=1.3*_.width,y=1.3*_.height,g=Math.max(g,v,7),m=Math.max(m,y,7)}var x=g/p,b=m/f;isNaN(x)&&(x=1/0),isNaN(b)&&(b=1/0);var w=Math.max(0,Math.floor(Math.min(x,b))),S=l(t.model),T=t.getExtent(),M=S.lastAutoInterval,A=S.lastTickCount;return null!=M&&null!=A&&Math.abs(M-w)<=1&&Math.abs(A-h)<=1&&M>w&&S.axisExtent0===T[0]&&S.axisExtent1===T[1]?w=M:(S.lastTickCount=h,S.lastAutoInterval=w,S.axisExtent0=T[0],S.axisExtent1=T[1]),w}(this)},t}()},5067:(t,e,n)=>{"use strict";n.d(e,{f$:()=>I,Og:()=>D,Dt:()=>L,wq:()=>O,j2:()=>P,Rx:()=>A,JJ:()=>E,ry:()=>k,af:()=>C,PJ:()=>R,PN:()=>N});var i=n(7845),r=n(1707),o=n(2670),a=n(9476),s=n(6291),l=n(5383),h=n(8689),c=n(528),u=n(8883),d=n(3115),p=a.A.prototype,f=o.A.prototype,g=u.LI,m=Math.floor,v=Math.ceil,y=Math.pow,_=Math.log,x=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="log",e.base=10,e._originalScale=new o.A,e._interval=0,e}return(0,c.C6)(e,t),e.prototype.getTicks=function(t){var e=this._originalScale,n=this._extent,r=e.getExtent(),o=f.getTicks.call(this,t);return i.map(o,(function(t){var e=t.value,i=u.LI(y(this.base,e));return i=e===n[0]&&this._fixMin?w(i,r[0]):i,{value:i=e===n[1]&&this._fixMax?w(i,r[1]):i}}),this)},e.prototype.setExtent=function(t,e){var n=_(this.base);t=_(Math.max(0,t))/n,e=_(Math.max(0,e))/n,f.setExtent.call(this,t,e)},e.prototype.getExtent=function(){var t=this.base,e=p.getExtent.call(this);e[0]=y(t,e[0]),e[1]=y(t,e[1]);var n=this._originalScale.getExtent();return this._fixMin&&(e[0]=w(e[0],n[0])),this._fixMax&&(e[1]=w(e[1],n[1])),e},e.prototype.unionExtent=function(t){this._originalScale.unionExtent(t);var e=this.base;t[0]=_(t[0])/_(e),t[1]=_(t[1])/_(e),p.unionExtent.call(this,t)},e.prototype.unionExtentFromData=function(t,e){this.unionExtent(t.getApproximateExtent(e))},e.prototype.calcNiceTicks=function(t){t=t||10;var e=this._extent,n=e[1]-e[0];if(!(n===1/0||n<=0)){var i=u.au(n);for(t/n*i<=.5&&(i*=10);!isNaN(i)&&Math.abs(i)<1&&Math.abs(i)>0;)i*=10;var r=[u.LI(v(e[0]/i)*i),u.LI(m(e[1]/i)*i)];this._interval=i,this._niceExtent=r}},e.prototype.calcNiceExtent=function(t){f.calcNiceExtent.call(this,t),this._fixMin=t.fixMin,this._fixMax=t.fixMax},e.prototype.parse=function(t){return t},e.prototype.contain=function(t){return t=_(t)/_(this.base),d.lP(t,this._extent)},e.prototype.normalize=function(t){return t=_(t)/_(this.base),d.S8(t,this._extent)},e.prototype.scale=function(t){return t=d.hs(t,this._extent),y(this.base,t)},e.type="log",e}(a.A),b=x.prototype;function w(t,e){return g(t,u.XV(e))}b.getMinorTicks=f.getMinorTicks,b.getLabel=f.getLabel,a.A.registerClass(x);const S=x;var T=n(933),M=n(5389);function A(t,e){var n=t.type,r=(0,M.Tc)(t,e,t.getExtent()).calculate();t.setBlank(r.isBlank);var o=r.min,a=r.max,l=e.ecModel;if(l&&"time"===n){var h=(0,s.GL)("bar",l),c=!1;if(i.each(h,(function(t){c=c||t.getBaseAxis()===e.axis})),c){var u=(0,s.vq)(h),d=function(t,e,n,r){var o=n.axis.getExtent(),a=o[1]-o[0],l=(0,s.VA)(r,n.axis);if(void 0===l)return{min:t,max:e};var h=1/0;i.each(l,(function(t){h=Math.min(t.offset,h)}));var c=-1/0;i.each(l,(function(t){c=Math.max(t.offset+t.width,c)})),h=Math.abs(h),c=Math.abs(c);var u=h+c,d=e-t,p=d/(1-(h+c)/a)-d;return e+=p*(c/u),t-=p*(h/u),{min:t,max:e}}(o,a,e,u);o=d.min,a=d.max}}return{extent:[o,a],fixMin:r.minFixed,fixMax:r.maxFixed}}function C(t,e){var n=e,i=A(t,n),r=i.extent,o=n.get("splitNumber");t instanceof S&&(t.base=n.get("logBase"));var a=t.type,s=n.get("interval"),l="interval"===a||"time"===a;t.setExtent(r[0],r[1]),t.calcNiceExtent({splitNumber:o,fixMin:i.fixMin,fixMax:i.fixMax,minInterval:l?n.get("minInterval"):null,maxInterval:l?n.get("maxInterval"):null}),null!=s&&t.setInterval&&t.setInterval(s)}function I(t,e){if(e=e||t.get("type"))switch(e){case"category":return new r.A({ordinalMeta:t.getOrdinalMeta?t.getOrdinalMeta():t.getCategories(),extent:[1/0,-1/0]});case"time":return new h.A({locale:t.ecModel.getLocaleModel(),useUTC:t.ecModel.get("useUTC")});default:return new(a.A.getClass(e)||o.A)}}function E(t){var e=t.scale.getExtent(),n=e[0],i=e[1];return!(n>0&&i>0||n<0&&i<0)}function k(t){var e,n,r=t.getLabelModel().get("formatter"),o="category"===t.type?t.scale.getExtent()[0]:null;return"time"===t.scale.type?(n=r,function(e,i){return t.scale.getFormattedLabel(e,i,n)}):i.isString(r)?function(e){return function(n){var i=t.scale.getLabel(n);return e.replace("{value}",null!=i?i:"")}}(r):i.isFunction(r)?(e=r,function(n,i){return null!=o&&(i=n.value-o),e(L(t,n),i,null!=n.level?{level:n.level}:null)}):function(e){return t.scale.getLabel(e)}}function L(t,e){return"category"===t.type?t.scale.getLabel(e):e.value}function D(t){var e=t.model,n=t.scale;if(e.get(["axisLabel","show"])&&!n.isBlank()){var i,o,a=n.getExtent();o=n instanceof r.A?n.count():(i=n.getTicks()).length;var s,h,c,u,d,p,f,g,m=t.getLabelModel(),v=k(t),y=1;o>40&&(y=Math.ceil(o/40));for(var _=0;_<o;_+=y){var x=v(i?i[_]:{value:a[0]+_},_),b=m.getTextRect(x),w=(h=b,c=m.get("rotate")||0,u=void 0,d=void 0,p=void 0,f=void 0,g=void 0,u=c*Math.PI/180,d=h.width,p=h.height,f=d*Math.abs(Math.cos(u))+Math.abs(p*Math.sin(u)),g=d*Math.abs(Math.sin(u))+Math.abs(p*Math.cos(u)),new l.A(h.x,h.y,f,g));s?s.union(w):s=w}return s}}function P(t){var e=t.get("interval");return null==e?"auto":e}function R(t){return"category"===t.type&&0===P(t.getLabelModel())}function O(t,e){var n={};return i.each(t.mapDimensionsAll(e),(function(e){n[(0,T.me)(t,e)]=!0})),i.keys(n)}function N(t,e,n){e&&i.each(O(e,n),(function(n){var i=e.getApproximateExtent(n);i[0]<t[0]&&(t[0]=i[0]),i[1]>t[1]&&(t[1]=i[1])}))}},5357:(t,e,n)=>{"use strict";n.d(e,{L:()=>i});var i=function(){function t(){}return t.prototype.getNeedCrossZero=function(){return!this.option.scale},t.prototype.getCoordSysModel=function(){},t}()},5202:(t,e,n)=>{"use strict";n.d(e,{A:()=>r});var i=n(7845);const r=function(){function t(t){this.type="cartesian",this._dimList=[],this._axes={},this.name=t||""}return t.prototype.getAxis=function(t){return this._axes[t]},t.prototype.getAxes=function(){return i.map(this._dimList,(function(t){return this._axes[t]}),this)},t.prototype.getAxesByScale=function(t){return t=t.toLowerCase(),i.filter(this.getAxes(),(function(e){return e.scale.type===t}))},t.prototype.addAxis=function(t){var e=t.dim;this._axes[e]=t,this._dimList.push(e)},t}()},7967:(t,e,n)=>{"use strict";n.d(e,{U5:()=>m,cn:()=>g,m5:()=>p,nS:()=>f});var i=n(528),r=n(5383),o=n(4070),a=n(248),s=n(3968),l=n(7845),h=[];function c(t,e){for(var n=0;n<t.length;n++)o.applyTransform(t[n],t[n],e)}function u(t,e,n,i){for(var r=0;r<t.length;r++){var a=t[r];i&&(a=i.project(a)),a&&isFinite(a[0])&&isFinite(a[1])&&(o.min(e,e,a),o.max(n,n,a))}}var d=function(){function t(t){this.name=t}return t.prototype.setCenter=function(t){this._center=t},t.prototype.getCenter=function(){var t=this._center;return t||(t=this._center=this.calcCenter()),t},t}(),p=function(t,e){this.type="polygon",this.exterior=t,this.interiors=e},f=function(t){this.type="linestring",this.points=t},g=function(t){function e(e,n,i){var r=t.call(this,e)||this;return r.type="geoJSON",r.geometries=n,r._center=i&&[i[0],i[1]],r}return(0,i.C6)(e,t),e.prototype.calcCenter=function(){for(var t,e=this.geometries,n=0,i=0;i<e.length;i++){var r=e[i],o=r.exterior,a=o&&o.length;a>n&&(t=r,n=a)}if(t)return function(t){for(var e=0,n=0,i=0,r=t.length,o=t[r-1][0],a=t[r-1][1],s=0;s<r;s++){var l=t[s][0],h=t[s][1],c=o*h-l*a;e+=c,n+=(o+l)*c,i+=(a+h)*c,o=l,a=h}return e?[n/e/3,i/e/3,e]:[t[0][0]||0,t[0][1]||0]}(t.exterior);var s=this.getBoundingRect();return[s.x+s.width/2,s.y+s.height/2]},e.prototype.getBoundingRect=function(t){var e=this._rect;if(e&&!t)return e;var n=[1/0,1/0],i=[-1/0,-1/0],o=this.geometries;return(0,l.each)(o,(function(e){"polygon"===e.type?u(e.exterior,n,i,t):(0,l.each)(e.points,(function(e){u(e,n,i,t)}))})),isFinite(n[0])&&isFinite(n[1])&&isFinite(i[0])&&isFinite(i[1])||(n[0]=n[1]=i[0]=i[1]=0),e=new r.A(n[0],n[1],i[0]-n[0],i[1]-n[1]),t||(this._rect=e),e},e.prototype.contain=function(t){var e=this.getBoundingRect(),n=this.geometries;if(!e.contain(t[0],t[1]))return!1;t:for(var i=0,r=n.length;i<r;i++){var o=n[i];if("polygon"===o.type){var s=o.exterior,l=o.interiors;if(a.l(s,t[0],t[1])){for(var h=0;h<(l?l.length:0);h++)if(a.l(l[h],t[0],t[1]))continue t;return!0}}}return!1},e.prototype.transformTo=function(t,e,n,i){var o=this.getBoundingRect(),a=o.width/o.height;n?i||(i=n/a):n=a*i;for(var s=new r.A(t,e,n,i),h=o.calculateTransform(s),u=this.geometries,d=0;d<u.length;d++){var p=u[d];"polygon"===p.type?(c(p.exterior,h),(0,l.each)(p.interiors,(function(t){c(t,h)}))):(0,l.each)(p.points,(function(t){c(t,h)}))}(o=this._rect).copy(s),this._center=[o.x+o.width/2,o.y+o.height/2]},e.prototype.cloneShallow=function(t){null==t&&(t=this.name);var n=new e(t,this.geometries,this._center);return n._rect=this._rect,n.transformTo=null,n},e}(d),m=function(t){function e(e,n){var i=t.call(this,e)||this;return i.type="geoSVG",i._elOnlyForCalculate=n,i}return(0,i.C6)(e,t),e.prototype.calcCenter=function(){for(var t=this._elOnlyForCalculate,e=t.getBoundingRect(),n=[e.x+e.width/2,e.y+e.height/2],i=s.identity(h),r=t;r&&!r.isGeoSVGGraphicRoot;)s.mul(i,r.getLocalTransform(),i),r=r.parent;return s.invert(i,i),o.applyTransform(n,n,i),n},e}(d)},6771:(t,e,n)=>{"use strict";n.d(e,{A:()=>r});var i={"\u5357\u6d77\u8bf8\u5c9b":[32,80],"\u5e7f\u4e1c":[0,-10],"\u9999\u6e2f":[10,5],"\u6fb3\u95e8":[-10,10],"\u5929\u6d25":[5,5]};function r(t,e){if("china"===t){var n=i[e.name];if(n){var r=e.getCenter();r[0]+=n[0]/10.5,r[1]+=-n[1]/14,e.setCenter(r)}}}},2241:(t,e,n)=>{"use strict";n.d(e,{A:()=>s});var i=n(7845),r=n(7967);function o(t,e,n){for(var i=0;i<t.length;i++)t[i]=a(t[i],e[i],n)}function a(t,e,n){for(var i=[],r=e[0],o=e[1],a=0;a<t.length;a+=2){var s=t.charCodeAt(a)-64,l=t.charCodeAt(a+1)-64;s=s>>1^-(1&s),l=l>>1^-(1&l),r=s+=r,o=l+=o,i.push([s/n,l/n])}return i}function s(t,e){return t=function(t){if(!t.UTF8Encoding)return t;var e=t,n=e.UTF8Scale;null==n&&(n=1024);var r=e.features;return i.each(r,(function(t){var e=t.geometry,r=e.encodeOffsets,s=e.coordinates;if(r)switch(e.type){case"LineString":e.coordinates=a(s,r,n);break;case"Polygon":case"MultiLineString":o(s,r,n);break;case"MultiPolygon":i.each(s,(function(t,e){return o(t,r[e],n)}))}})),e.UTF8Encoding=!1,e}(t),i.map(i.filter(t.features,(function(t){return t.geometry&&t.properties&&t.geometry.coordinates.length>0})),(function(t){var n=t.properties,o=t.geometry,a=[];switch(o.type){case"Polygon":var s=o.coordinates;a.push(new r.m5(s[0],s.slice(1)));break;case"MultiPolygon":i.each(o.coordinates,(function(t){t[0]&&a.push(new r.m5(t[0],t.slice(1)))}));break;case"LineString":a.push(new r.nS([o.coordinates]));break;case"MultiLineString":a.push(new r.nS(o.coordinates))}var l=new r.cn(n[e||"name"],a,n.cp);return l.properties=n,l}))}},5389:(t,e,n)=>{"use strict";n.d(e,{Tc:()=>l});var i=n(7845),r=n(4611),o=function(){function t(t,e,n){this._prepareParams(t,e,n)}return t.prototype._prepareParams=function(t,e,n){n[1]<n[0]&&(n=[NaN,NaN]),this._dataMin=n[0],this._dataMax=n[1];var o=this._isOrdinal="ordinal"===t.type;this._needCrossZero="interval"===t.type&&e.getNeedCrossZero&&e.getNeedCrossZero();var a=e.get("min",!0);null==a&&(a=e.get("startValue",!0));var s=this._modelMinRaw=a;(0,i.isFunction)(s)?this._modelMinNum=h(t,s({min:n[0],max:n[1]})):"dataMin"!==s&&(this._modelMinNum=h(t,s));var l=this._modelMaxRaw=e.get("max",!0);if((0,i.isFunction)(l)?this._modelMaxNum=h(t,l({min:n[0],max:n[1]})):"dataMax"!==l&&(this._modelMaxNum=h(t,l)),o)this._axisDataLen=e.getCategories().length;else{var c=e.get("boundaryGap"),u=(0,i.isArray)(c)?c:[c||0,c||0];"boolean"==typeof u[0]||"boolean"==typeof u[1]?this._boundaryGapInner=[0,0]:this._boundaryGapInner=[(0,r.lo)(u[0],1),(0,r.lo)(u[1],1)]}},t.prototype.calculate=function(){var t=this._isOrdinal,e=this._dataMin,n=this._dataMax,r=this._axisDataLen,o=this._boundaryGapInner,a=t?null:n-e||Math.abs(e),s="dataMin"===this._modelMinRaw?e:this._modelMinNum,l="dataMax"===this._modelMaxRaw?n:this._modelMaxNum,h=null!=s,c=null!=l;null==s&&(s=t?r?0:NaN:e-o[0]*a),null==l&&(l=t?r?r-1:NaN:n+o[1]*a),(null==s||!isFinite(s))&&(s=NaN),(null==l||!isFinite(l))&&(l=NaN);var u=(0,i.eqNaN)(s)||(0,i.eqNaN)(l)||t&&!r;this._needCrossZero&&(s>0&&l>0&&!h&&(s=0),s<0&&l<0&&!c&&(l=0));var d=this._determinedMin,p=this._determinedMax;return null!=d&&(s=d,h=!0),null!=p&&(l=p,c=!0),{min:s,max:l,minFixed:h,maxFixed:c,isBlank:u}},t.prototype.modifyDataMinMax=function(t,e){this[s[t]]=e},t.prototype.setDeterminedMinMax=function(t,e){this[a[t]]=e},t.prototype.freeze=function(){this.frozen=!0},t}(),a={min:"_determinedMin",max:"_determinedMax"},s={min:"_dataMin",max:"_dataMax"};function l(t,e,n){var i=t.rawExtentInfo;return i||(i=new o(t,e,n),t.rawExtentInfo=i,i)}function h(t,e){return null==e?null:(0,i.eqNaN)(e)?NaN:t.parse(e)}},1452:(t,e,n)=>{"use strict";n.d(e,{A:()=>o});var i=n(7845),r={};const o=function(){function t(){this._coordinateSystems=[]}return t.prototype.create=function(t,e){var n=[];i.each(r,(function(i,r){var o=i.create(t,e);n=n.concat(o||[])})),this._coordinateSystems=n},t.prototype.update=function(t,e){i.each(this._coordinateSystems,(function(n){n.update&&n.update(t,e)}))},t.prototype.getCoordinateSystems=function(){return this._coordinateSystems.slice()},t.register=function(t,e){r[t]=e},t.get=function(t){return r[t]},t}()},3352:(t,e,n)=>{"use strict";n.d(e,{FQ:()=>Se,Ng:()=>mn,p5:()=>Gn,El:()=>ve,zm:()=>yn,Zf:()=>vn,AS:()=>_n,Bo:()=>kn,FP:()=>xn,aQ:()=>bn,ZB:()=>Bn,Ts:()=>gn,OH:()=>In,pX:()=>En,Oh:()=>Ln,Ej:()=>On,E:()=>ce.E,mz:()=>Fn,cf:()=>Mn,tb:()=>An,lP:()=>Sn,qg:()=>Tn,bf:()=>wn,iY:()=>zn,xV:()=>Cn,AF:()=>Dn,vV:()=>Nn,rE:()=>me});var i=n(528),r=n(2563),o=n(7845),a=n(4810),s=n(979),l=n(2510),h=n(2577),c=n(6217),u=n(9078),d="";"undefined"!=typeof navigator&&(d=navigator.platform||"");var p="rgba(0, 0, 0, 0.2)";const f={darkMode:"auto",colorBy:"series",color:["#5470c6","#91cc75","#fac858","#ee6666","#73c0de","#3ba272","#fc8452","#9a60b4","#ea7ccc"],gradientColor:["#f6efa6","#d88273","#bf444c"],aria:{decal:{decals:[{color:p,dashArrayX:[1,0],dashArrayY:[2,5],symbolSize:1,rotation:Math.PI/6},{color:p,symbol:"circle",dashArrayX:[[8,8],[0,8,8,0]],dashArrayY:[6,0],symbolSize:.8},{color:p,dashArrayX:[1,0],dashArrayY:[4,3],rotation:-Math.PI/4},{color:p,dashArrayX:[[6,6],[0,6,6,0]],dashArrayY:[6,0]},{color:p,dashArrayX:[[1,0],[1,6]],dashArrayY:[1,0,6,0],rotation:Math.PI/4},{color:p,symbol:"triangle",dashArrayX:[[9,9],[0,9,9,0]],dashArrayY:[7,2],symbolSize:.75}]}},textStyle:{fontFamily:d.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};var g,m,v,y=n(6660),_=n(7997),x=n(8644),b="\0_ec_inner";var w=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return(0,i.C6)(e,t),e.prototype.init=function(t,e,n,i,r,o){i=i||{},this.option=null,this._theme=new c.A(i),this._locale=new c.A(r),this._optionManager=o},e.prototype.setOption=function(t,e,n){var i=M(e);this._optionManager.setOption(t,n,i),this._resetOption(null,i)},e.prototype.resetOption=function(t,e){return this._resetOption(t,M(e))},e.prototype._resetOption=function(t,e){var n=!1,i=this._optionManager;if(!t||"recreate"===t){var r=i.mountOption("recreate"===t);0,this.option&&"recreate"!==t?(this.restoreData(),this._mergeOption(r,e)):v(this,r),n=!0}if("timeline"!==t&&"media"!==t||this.restoreData(),!t||"recreate"===t||"timeline"===t){var a=i.getTimelineOption(this);a&&(n=!0,this._mergeOption(a,e))}if(!t||"recreate"===t||"media"===t){var s=i.getMediaOption(this);s.length&&(0,o.each)(s,(function(t){n=!0,this._mergeOption(t,e)}),this)}return n},e.prototype.mergeOption=function(t){this._mergeOption(t,null)},e.prototype._mergeOption=function(t,e){var n=this.option,i=this._componentsMap,r=this._componentsCount,a=[],s=(0,o.createHashMap)(),l=e&&e.replaceMergeMainTypeMap;(0,y.ps)(this),(0,o.each)(t,(function(t,e){null!=t&&(u.A.hasClass(e)?e&&(a.push(e),s.set(e,!0)):n[e]=null==n[e]?(0,o.clone)(t):(0,o.merge)(n[e],t,!0))})),l&&l.each((function(t,e){u.A.hasClass(e)&&!s.get(e)&&(a.push(e),s.set(e,!0))})),u.A.topologicalTravel(a,u.A.getAllClassMainTypes(),(function(e){var a=(0,_.a)(this,e,h.qB(t[e])),s=i.get(e),c=s?l&&l.get(e)?"replaceMerge":"normalMerge":"replaceAll",d=h.O2(s,a,c);h.GX(d,e,u.A),n[e]=null,i.set(e,null),r.set(e,0);var p,f=[],m=[],v=0;(0,o.each)(d,(function(t,n){var i=t.existing,r=t.newOption;if(r){var a="series"===e,s=u.A.getClass(e,t.keyInfo.subType,!a);if(!s)return;if("tooltip"===e){if(p)return void 0;p=!0}if(i&&i.constructor===s)i.name=t.keyInfo.name,i.mergeOption(r,this),i.optionUpdated(r,!1);else{var l=(0,o.extend)({componentIndex:n},t.keyInfo);i=new s(r,this,this,l),(0,o.extend)(i,l),t.brandNew&&(i.__requireNewView=!0),i.init(r,this,this),i.optionUpdated(null,!0)}}else i&&(i.mergeOption({},this),i.optionUpdated({},!1));i?(f.push(i.option),m.push(i),v++):(f.push(void 0),m.push(void 0))}),this),n[e]=f,i.set(e,m),r.set(e,v),"series"===e&&g(this)}),this),this._seriesIndices||g(this)},e.prototype.getOption=function(){var t=(0,o.clone)(this.option);return(0,o.each)(t,(function(e,n){if(u.A.hasClass(n)){for(var i=h.qB(e),r=i.length,o=!1,a=r-1;a>=0;a--)i[a]&&!h.oh(i[a])?o=!0:(i[a]=null,!o&&r--);i.length=r,t[n]=i}})),delete t[b],t},e.prototype.getTheme=function(){return this._theme},e.prototype.getLocaleModel=function(){return this._locale},e.prototype.setUpdatePayload=function(t){this._payload=t},e.prototype.getUpdatePayload=function(){return this._payload},e.prototype.getComponent=function(t,e){var n=this._componentsMap.get(t);if(n){var i=n[e||0];if(i)return i;if(null==e)for(var r=0;r<n.length;r++)if(n[r])return n[r]}},e.prototype.queryComponents=function(t){var e=t.mainType;if(!e)return[];var n,i=t.index,r=t.id,a=t.name,s=this._componentsMap.get(e);return s&&s.length?(null!=i?(n=[],(0,o.each)(h.qB(i),(function(t){s[t]&&n.push(s[t])}))):n=null!=r?S("id",r,s):null!=a?S("name",a,s):(0,o.filter)(s,(function(t){return!!t})),T(n,t)):[]},e.prototype.findComponents=function(t){var e,n,i,r,a,s=t.query,l=t.mainType,h=(n=l+"Index",i=l+"Id",r=l+"Name",!(e=s)||null==e[n]&&null==e[i]&&null==e[r]?null:{mainType:l,index:e[n],id:e[i],name:e[r]}),c=h?this.queryComponents(h):(0,o.filter)(this._componentsMap.get(l),(function(t){return!!t}));return a=T(c,t),t.filter?(0,o.filter)(a,t.filter):a},e.prototype.eachComponent=function(t,e,n){var i=this._componentsMap;if((0,o.isFunction)(t)){var r=e,a=t;i.each((function(t,e){for(var n=0;t&&n<t.length;n++){var i=t[n];i&&a.call(r,e,i,i.componentIndex)}}))}else for(var s=(0,o.isString)(t)?i.get(t):(0,o.isObject)(t)?this.findComponents(t):null,l=0;s&&l<s.length;l++){var h=s[l];h&&e.call(n,h,h.componentIndex)}},e.prototype.getSeriesByName=function(t){var e=h.vS(t,null);return(0,o.filter)(this._componentsMap.get("series"),(function(t){return!!t&&null!=e&&t.name===e}))},e.prototype.getSeriesByIndex=function(t){return this._componentsMap.get("series")[t]},e.prototype.getSeriesByType=function(t){return(0,o.filter)(this._componentsMap.get("series"),(function(e){return!!e&&e.subType===t}))},e.prototype.getSeries=function(){return(0,o.filter)(this._componentsMap.get("series"),(function(t){return!!t}))},e.prototype.getSeriesCount=function(){return this._componentsCount.get("series")},e.prototype.eachSeries=function(t,e){m(this),(0,o.each)(this._seriesIndices,(function(n){var i=this._componentsMap.get("series")[n];t.call(e,i,n)}),this)},e.prototype.eachRawSeries=function(t,e){(0,o.each)(this._componentsMap.get("series"),(function(n){n&&t.call(e,n,n.componentIndex)}))},e.prototype.eachSeriesByType=function(t,e,n){m(this),(0,o.each)(this._seriesIndices,(function(i){var r=this._componentsMap.get("series")[i];r.subType===t&&e.call(n,r,i)}),this)},e.prototype.eachRawSeriesByType=function(t,e,n){return(0,o.each)(this.getSeriesByType(t),e,n)},e.prototype.isSeriesFiltered=function(t){return m(this),null==this._seriesIndicesMap.get(t.componentIndex)},e.prototype.getCurrentSeriesIndices=function(){return(this._seriesIndices||[]).slice()},e.prototype.filterSeries=function(t,e){m(this);var n=[];(0,o.each)(this._seriesIndices,(function(i){var r=this._componentsMap.get("series")[i];t.call(e,r,i)&&n.push(i)}),this),this._seriesIndices=n,this._seriesIndicesMap=(0,o.createHashMap)(n)},e.prototype.restoreData=function(t){g(this);var e=this._componentsMap,n=[];e.each((function(t,e){u.A.hasClass(e)&&n.push(e)})),u.A.topologicalTravel(n,u.A.getAllClassMainTypes(),(function(n){(0,o.each)(e.get(n),(function(e){!e||"series"===n&&function(t,e){if(e){var n=e.seriesIndex,i=e.seriesId,r=e.seriesName;return null!=n&&t.componentIndex!==n||null!=i&&t.id!==i||null!=r&&t.name!==r}}(e,t)||e.restoreData()}))}))},e.internalField=(g=function(t){var e=t._seriesIndices=[];(0,o.each)(t._componentsMap.get("series"),(function(t){t&&e.push(t.componentIndex)})),t._seriesIndicesMap=(0,o.createHashMap)(e)},m=function(t){},void(v=function(t,e){t.option={},t.option[b]=1,t._componentsMap=(0,o.createHashMap)({series:[]}),t._componentsCount=(0,o.createHashMap)();var n=e.aria;(0,o.isObject)(n)&&null==n.enabled&&(n.enabled=!0),function(t,e){var n=t.color&&!t.colorLayer;(0,o.each)(e,(function(e,i){"colorLayer"===i&&n||u.A.hasClass(i)||("object"==typeof e?t[i]=t[i]?(0,o.merge)(t[i],e,!1):(0,o.clone)(e):null==t[i]&&(t[i]=e))}))}(e,t._theme.option),(0,o.merge)(e,f,!1),t._mergeOption(e,null)})),e}(c.A);function S(t,e,n){if((0,o.isArray)(e)){var i=(0,o.createHashMap)();return(0,o.each)(e,(function(t){null!=t&&(null!=h.vS(t,null)&&i.set(t,!0))})),(0,o.filter)(n,(function(e){return e&&i.get(e[t])}))}var r=h.vS(e,null);return(0,o.filter)(n,(function(e){return e&&null!=r&&e[t]===r}))}function T(t,e){return e.hasOwnProperty("subType")?(0,o.filter)(t,(function(t){return t&&t.subType===e.subType})):t}function M(t){var e=(0,o.createHashMap)();return t&&(0,o.each)(h.qB(t.replaceMerge),(function(t){e.set(t,!0)})),{replaceMergeMainTypeMap:e}}(0,o.mixin)(w,x.X);const A=w;var C=["getDom","getZr","getWidth","getHeight","getDevicePixelRatio","dispatchAction","isSSR","isDisposed","on","off","getDataURL","getConnectedDataURL","getOption","getId","updateLabelLayout"];const I=function(t){o.each(C,(function(e){this[e]=o.bind(t[e],t)}),this)};var E=n(1452),k=/^(min|max)?(.+)$/,L=function(){function t(t){this._timelineOptions=[],this._mediaList=[],this._currentMediaIndices=[],this._api=t}return t.prototype.setOption=function(t,e,n){t&&((0,o.each)((0,h.qB)(t.series),(function(t){t&&t.data&&(0,o.isTypedArray)(t.data)&&(0,o.setAsPrimitive)(t.data)})),(0,o.each)((0,h.qB)(t.dataset),(function(t){t&&t.source&&(0,o.isTypedArray)(t.source)&&(0,o.setAsPrimitive)(t.source)}))),t=(0,o.clone)(t);var i=this._optionBackup,r=function(t,e,n){var i,r,a=[],s=t.baseOption,l=t.timeline,h=t.options,c=t.media,u=!!t.media,d=!!(h||l||s&&s.timeline);s?(r=s).timeline||(r.timeline=l):((d||u)&&(t.options=t.media=null),r=t);u&&(0,o.isArray)(c)&&(0,o.each)(c,(function(t){t&&t.option&&(t.query?a.push(t):i||(i=t))}));function p(t){(0,o.each)(e,(function(e){e(t,n)}))}return p(r),(0,o.each)(h,(function(t){return p(t)})),(0,o.each)(a,(function(t){return p(t.option)})),{baseOption:r,timelineOptions:h||[],mediaDefault:i,mediaList:a}}(t,e,!i);this._newBaseOption=r.baseOption,i?(r.timelineOptions.length&&(i.timelineOptions=r.timelineOptions),r.mediaList.length&&(i.mediaList=r.mediaList),r.mediaDefault&&(i.mediaDefault=r.mediaDefault)):this._optionBackup=r},t.prototype.mountOption=function(t){var e=this._optionBackup;return this._timelineOptions=e.timelineOptions,this._mediaList=e.mediaList,this._mediaDefault=e.mediaDefault,this._currentMediaIndices=[],(0,o.clone)(t?e.baseOption:this._newBaseOption)},t.prototype.getTimelineOption=function(t){var e,n=this._timelineOptions;if(n.length){var i=t.getComponent("timeline");i&&(e=(0,o.clone)(n[i.getCurrentIndex()]))}return e},t.prototype.getMediaOption=function(t){var e,n,i=this._api.getWidth(),r=this._api.getHeight(),a=this._mediaList,s=this._mediaDefault,l=[],h=[];if(!a.length&&!s)return h;for(var c=0,u=a.length;c<u;c++)D(a[c].query,i,r)&&l.push(c);return!l.length&&s&&(l=[-1]),l.length&&(e=l,n=this._currentMediaIndices,e.join(",")!==n.join(","))&&(h=(0,o.map)(l,(function(t){return(0,o.clone)(-1===t?s.option:a[t].option)}))),this._currentMediaIndices=l,h},t}();function D(t,e,n){var i={width:e,height:n,aspectratio:e/n},r=!0;return(0,o.each)(t,(function(t,e){var n=e.match(k);if(n&&n[1]&&n[2]){var o=n[1],a=n[2].toLowerCase();(function(t,e,n){return"min"===n?t>=e:"max"===n?t<=e:t===e})(i[a],t,o)||(r=!1)}})),r}const P=L;var R=o.each,O=o.isObject,N=["areaStyle","lineStyle","nodeStyle","linkStyle","chordStyle","label","labelLine"];function F(t){var e=t&&t.itemStyle;if(e)for(var n=0,i=N.length;n<i;n++){var r=N[n],a=e.normal,s=e.emphasis;a&&a[r]&&(t[r]=t[r]||{},t[r].normal?o.merge(t[r].normal,a[r]):t[r].normal=a[r],a[r]=null),s&&s[r]&&(t[r]=t[r]||{},t[r].emphasis?o.merge(t[r].emphasis,s[r]):t[r].emphasis=s[r],s[r]=null)}}function B(t,e,n){if(t&&t[e]&&(t[e].normal||t[e].emphasis)){var i=t[e].normal,r=t[e].emphasis;i&&(n?(t[e].normal=t[e].emphasis=null,o.defaults(t[e],i)):t[e]=i),r&&(t.emphasis=t.emphasis||{},t.emphasis[e]=r,r.focus&&(t.emphasis.focus=r.focus),r.blurScope&&(t.emphasis.blurScope=r.blurScope))}}function z(t){B(t,"itemStyle"),B(t,"lineStyle"),B(t,"areaStyle"),B(t,"label"),B(t,"labelLine"),B(t,"upperLabel"),B(t,"edgeLabel")}function G(t,e){var n=O(t)&&t[e],i=O(n)&&n.textStyle;if(i){0;for(var r=0,o=h.JS.length;r<o;r++){var a=h.JS[r];i.hasOwnProperty(a)&&(n[a]=i[a])}}}function V(t){t&&(z(t),G(t,"label"),t.emphasis&&G(t.emphasis,"label"))}function j(t){return o.isArray(t)?t:t?[t]:[]}function H(t){return(o.isArray(t)?t[0]:t)||{}}function W(t,e){R(j(t.series),(function(t){O(t)&&function(t){if(O(t)){F(t),z(t),G(t,"label"),G(t,"upperLabel"),G(t,"edgeLabel"),t.emphasis&&(G(t.emphasis,"label"),G(t.emphasis,"upperLabel"),G(t.emphasis,"edgeLabel"));var e=t.markPoint;e&&(F(e),V(e));var n=t.markLine;n&&(F(n),V(n));var i=t.markArea;i&&V(i);var r=t.data;if("graph"===t.type){r=r||t.nodes;var a=t.links||t.edges;if(a&&!o.isTypedArray(a))for(var s=0;s<a.length;s++)V(a[s]);o.each(t.categories,(function(t){z(t)}))}if(r&&!o.isTypedArray(r))for(s=0;s<r.length;s++)V(r[s]);if((e=t.markPoint)&&e.data){var l=e.data;for(s=0;s<l.length;s++)V(l[s])}if((n=t.markLine)&&n.data){var h=n.data;for(s=0;s<h.length;s++)o.isArray(h[s])?(V(h[s][0]),V(h[s][1])):V(h[s])}"gauge"===t.type?(G(t,"axisLabel"),G(t,"title"),G(t,"detail")):"treemap"===t.type?(B(t.breadcrumb,"itemStyle"),o.each(t.levels,(function(t){z(t)}))):"tree"===t.type&&z(t.leaves)}}(t)}));var n=["xAxis","yAxis","radiusAxis","angleAxis","singleAxis","parallelAxis","radar"];e&&n.push("valueAxis","categoryAxis","logAxis","timeAxis"),R(n,(function(e){R(j(t[e]),(function(t){t&&(G(t,"axisLabel"),G(t.axisPointer,"label"))}))})),R(j(t.parallel),(function(t){var e=t&&t.parallelAxisDefault;G(e,"axisLabel"),G(e&&e.axisPointer,"label")})),R(j(t.calendar),(function(t){B(t,"itemStyle"),G(t,"dayLabel"),G(t,"monthLabel"),G(t,"yearLabel")})),R(j(t.radar),(function(t){G(t,"name"),t.name&&null==t.axisName&&(t.axisName=t.name,delete t.name),null!=t.nameGap&&null==t.axisNameGap&&(t.axisNameGap=t.nameGap,delete t.nameGap)})),R(j(t.geo),(function(t){O(t)&&(V(t),R(j(t.regions),(function(t){V(t)})))})),R(j(t.timeline),(function(t){V(t),B(t,"label"),B(t,"itemStyle"),B(t,"controlStyle",!0);var e=t.data;o.isArray(e)&&o.each(e,(function(t){o.isObject(t)&&(B(t,"label"),B(t,"itemStyle"))}))})),R(j(t.toolbox),(function(t){B(t,"iconStyle"),R(t.feature,(function(t){B(t,"iconStyle")}))})),G(H(t.axisPointer),"label"),G(H(t.tooltip).axisPointer,"label")}function U(t){t&&(0,o.each)(q,(function(e){e[0]in t&&!(e[1]in t)&&(t[e[1]]=t[e[0]])}))}var q=[["x","left"],["y","top"],["x2","right"],["y2","bottom"]],X=["grid","geo","parallel","legend","toolbox","title","visualMap","dataZoom","timeline"],Y=[["borderRadius","barBorderRadius"],["borderColor","barBorderColor"],["borderWidth","barBorderWidth"]];function Z(t){var e=t&&t.itemStyle;if(e)for(var n=0;n<Y.length;n++){var i=Y[n][1],r=Y[n][0];null!=e[i]&&(e[r]=e[i])}}function $(t){t&&"edge"===t.alignTo&&null!=t.margin&&null==t.edgeDistance&&(t.edgeDistance=t.margin)}function K(t){t&&t.downplay&&!t.blur&&(t.blur=t.downplay)}function J(t,e){if(t)for(var n=0;n<t.length;n++)e(t[n]),t[n]&&J(t[n].children,e)}function Q(t,e){W(t,e),t.series=(0,h.qB)(t.series),(0,o.each)(t.series,(function(t){if((0,o.isObject)(t)){var e=t.type;if("line"===e)null!=t.clipOverflow&&(t.clip=t.clipOverflow);else if("pie"===e||"gauge"===e){if(null!=t.clockWise&&(t.clockwise=t.clockWise),$(t.label),(r=t.data)&&!(0,o.isTypedArray)(r))for(var n=0;n<r.length;n++)$(r[n]);null!=t.hoverOffset&&(t.emphasis=t.emphasis||{},(t.emphasis.scaleSize=null)&&(t.emphasis.scaleSize=t.hoverOffset))}else if("gauge"===e){var i=function(t,e){for(var n=e.split(","),i=t,r=0;r<n.length&&null!=(i=i&&i[n[r]]);r++);return i}(t,"pointer.color");null!=i&&function(t,e,n,i){for(var r,o=e.split(","),a=t,s=0;s<o.length-1;s++)null==a[r=o[s]]&&(a[r]={}),a=a[r];(i||null==a[o[s]])&&(a[o[s]]=n)}(t,"itemStyle.color",i)}else if("bar"===e){var r;if(Z(t),Z(t.backgroundStyle),Z(t.emphasis),(r=t.data)&&!(0,o.isTypedArray)(r))for(n=0;n<r.length;n++)"object"==typeof r[n]&&(Z(r[n]),Z(r[n]&&r[n].emphasis))}else if("sunburst"===e){var a=t.highlightPolicy;a&&(t.emphasis=t.emphasis||{},t.emphasis.focus||(t.emphasis.focus=a)),K(t),J(t.data,K)}else"graph"===e||"sankey"===e?function(t){t&&null!=t.focusNodeAdjacency&&(t.emphasis=t.emphasis||{},null==t.emphasis.focus&&(t.emphasis.focus="adjacency"))}(t):"map"===e&&(t.mapType&&!t.map&&(t.map=t.mapType),t.mapLocation&&(0,o.defaults)(t,t.mapLocation));null!=t.hoverAnimation&&(t.emphasis=t.emphasis||{},t.emphasis&&null==t.emphasis.scale&&(t.emphasis.scale=t.hoverAnimation)),U(t)}})),t.dataRange&&(t.visualMap=t.dataRange),(0,o.each)(X,(function(e){var n=t[e];n&&((0,o.isArray)(n)||(n=[n]),(0,o.each)(n,(function(t){U(t)})))}))}var tt=n(8883);function et(t){(0,o.each)(t,(function(e,n){var i=[],r=[NaN,NaN],o=[e.stackResultDimension,e.stackedOverDimension],a=e.data,s=e.isStackedByIndex,l=e.seriesModel.get("stackStrategy")||"samesign";a.modify(o,(function(o,h,c){var u,d,p=a.get(e.stackedDimension,c);if(isNaN(p))return r;s?d=a.getRawIndex(c):u=a.get(e.stackedByDimension,c);for(var f=NaN,g=n-1;g>=0;g--){var m=t[g];if(s||(d=m.data.rawIndexOf(m.stackedByDimension,u)),d>=0){var v=m.data.getByRawIndex(m.stackResultDimension,d);if("all"===l||"positive"===l&&v>0||"negative"===l&&v<0||"samesign"===l&&p>=0&&v>0||"samesign"===l&&p<=0&&v<0){p=(0,tt.Tr)(p,v),f=v;break}}}return i[0]=p,i[1]=f,i}))}))}var nt=n(1996),it=n(5370),rt=n(6145),ot=n(7551),at=n(5975),st=n(5203),lt=n(1885),ht=n(6195),ct=n(1632),ut=n(3490),dt=n(4449),pt=n(3951),ft=n(3404),gt=(0,h.$r)(),mt={itemStyle:(0,dt.A)(pt.L,!0),lineStyle:(0,dt.A)(ft.m,!0)},vt={lineStyle:"stroke",itemStyle:"fill"};function yt(t,e){var n=t.visualStyleMapper||mt[e];return n||(console.warn("Unknown style type '"+e+"'."),mt.itemStyle)}function _t(t,e){var n=t.visualDrawType||vt[e];return n||(console.warn("Unknown style type '"+e+"'."),"fill")}var xt={createOnAllSeries:!0,performRawSeries:!0,reset:function(t,e){var n=t.getData(),i=t.visualStyleAccessPath||"itemStyle",r=t.getModel(i),a=yt(t,i)(r),s=r.getShallow("decal");s&&(n.setVisual("decal",s),s.dirty=!0);var l=_t(t,i),h=a[l],c=(0,o.isFunction)(h)?h:null,u="auto"===a.fill||"auto"===a.stroke;if(!a[l]||c||u){var d=t.getColorFromPalette(t.name,null,e.getSeriesCount());a[l]||(a[l]=d,n.setVisual("colorFromPalette",!0)),a.fill="auto"===a.fill||(0,o.isFunction)(a.fill)?d:a.fill,a.stroke="auto"===a.stroke||(0,o.isFunction)(a.stroke)?d:a.stroke}if(n.setVisual("style",a),n.setVisual("drawType",l),!e.isSeriesFiltered(t)&&c)return n.setVisual("colorFromPalette",!1),{dataEach:function(e,n){var i=t.getDataParams(n),r=(0,o.extend)({},a);r[l]=c(i),e.setItemVisual(n,"style",r)}}}},bt=new c.A,wt={createOnAllSeries:!0,performRawSeries:!0,reset:function(t,e){if(!t.ignoreStyleOnData&&!e.isSeriesFiltered(t)){var n=t.getData(),i=t.visualStyleAccessPath||"itemStyle",r=yt(t,i),a=n.getVisual("drawType");return{dataEach:n.hasItemOption?function(t,e){var n=t.getRawDataItem(e);if(n&&n[i]){bt.option=n[i];var s=r(bt),l=t.ensureUniqueItemVisual(e,"style");(0,o.extend)(l,s),bt.option.decal&&(t.setItemVisual(e,"decal",bt.option.decal),bt.option.decal.dirty=!0),a in s&&t.setItemVisual(e,"colorFromPalette",!1)}}:null}}}},St={performRawSeries:!0,overallReset:function(t){var e=(0,o.createHashMap)();t.eachSeries((function(t){var n=t.getColorBy();if(!t.isColorBySeries()){var i=t.type+"-"+n,r=e.get(i);r||(r={},e.set(i,r)),gt(t).scope=r}})),t.eachSeries((function(e){if(!e.isColorBySeries()&&!t.isSeriesFiltered(e)){var n=e.getRawData(),i={},r=e.getData(),o=gt(e).scope,a=e.visualStyleAccessPath||"itemStyle",s=_t(e,a);r.each((function(t){var e=r.getRawIndex(t);i[e]=t})),n.each((function(t){var a=i[t];if(r.getItemVisual(a,"colorFromPalette")){var l=r.ensureUniqueItemVisual(a,"style"),h=n.getName(t)||t+"",c=n.count();l[s]=e.getColorFromPalette(h,o,c)}}))}}))}},Tt=n(8829),Mt=n(1251),At=n(4924),Ct=Math.PI;var It=n(1566),Et=n(1987),kt=function(){function t(t,e,n,i){this._stageTaskMap=(0,o.createHashMap)(),this.ecInstance=t,this.api=e,n=this._dataProcessorHandlers=n.slice(),i=this._visualHandlers=i.slice(),this._allHandlers=n.concat(i)}return t.prototype.restoreData=function(t,e){t.restoreData(e),this._stageTaskMap.each((function(t){var e=t.overallTask;e&&e.dirty()}))},t.prototype.getPerformArgs=function(t,e){if(t.__pipeline){var n=this._pipelineMap.get(t.__pipeline.id),i=n.context,r=!e&&n.progressiveEnabled&&(!i||i.progressiveRender)&&t.__idxInPipeline>n.blockIndex?n.step:null,o=i&&i.modDataCount;return{step:r,modBy:null!=o?Math.ceil(o/r):null,modDataCount:o}}},t.prototype.getPipeline=function(t){return this._pipelineMap.get(t)},t.prototype.updateStreamModes=function(t,e){var n=this._pipelineMap.get(t.uid),i=t.getData().count(),r=n.progressiveEnabled&&e.incrementalPrepareRender&&i>=n.threshold,o=t.get("large")&&i>=t.get("largeThreshold"),a="mod"===t.get("progressiveChunkMode")?i:null;t.pipelineContext=n.context={progressiveRender:r,modDataCount:a,large:o}},t.prototype.restorePipelines=function(t){var e=this,n=e._pipelineMap=(0,o.createHashMap)();t.eachSeries((function(t){var i=t.getProgressive(),r=t.uid;n.set(r,{id:r,head:null,tail:null,threshold:t.getProgressiveThreshold(),progressiveEnabled:i&&!(t.preventIncremental&&t.preventIncremental()),blockIndex:-1,step:Math.round(i||700),count:0}),e._pipe(t,t.dataTask)}))},t.prototype.prepareStageTasks=function(){var t=this._stageTaskMap,e=this.api.getModel(),n=this.api;(0,o.each)(this._allHandlers,(function(i){var r=t.get(i.uid)||t.set(i.uid,{});(0,o.assert)(!(i.reset&&i.overallReset),""),i.reset&&this._createSeriesStageTask(i,r,e,n),i.overallReset&&this._createOverallStageTask(i,r,e,n)}),this)},t.prototype.prepareView=function(t,e,n,i){var r=t.renderTask,o=r.context;o.model=e,o.ecModel=n,o.api=i,r.__block=!t.incrementalPrepareRender,this._pipe(e,r)},t.prototype.performDataProcessorTasks=function(t,e){this._performStageTasks(this._dataProcessorHandlers,t,e,{block:!0})},t.prototype.performVisualTasks=function(t,e,n){this._performStageTasks(this._visualHandlers,t,e,n)},t.prototype._performStageTasks=function(t,e,n,i){i=i||{};var r=!1,a=this;function s(t,e){return t.setDirty&&(!t.dirtyMap||t.dirtyMap.get(e.__pipeline.id))}(0,o.each)(t,(function(t,o){if(!i.visualType||i.visualType===t.visualType){var l=a._stageTaskMap.get(t.uid),h=l.seriesTaskMap,c=l.overallTask;if(c){var u,d=c.agentStubMap;d.each((function(t){s(i,t)&&(t.dirty(),u=!0)})),u&&c.dirty(),a.updatePayload(c,n);var p=a.getPerformArgs(c,i.block);d.each((function(t){t.perform(p)})),c.perform(p)&&(r=!0)}else h&&h.each((function(o,l){s(i,o)&&o.dirty();var h=a.getPerformArgs(o,i.block);h.skip=!t.performRawSeries&&e.isSeriesFiltered(o.context.model),a.updatePayload(o,n),o.perform(h)&&(r=!0)}))}})),this.unfinished=r||this.unfinished},t.prototype.performSeriesTasks=function(t){var e;t.eachSeries((function(t){e=t.dataTask.perform()||e})),this.unfinished=e||this.unfinished},t.prototype.plan=function(){this._pipelineMap.each((function(t){var e=t.tail;do{if(e.__block){t.blockIndex=e.__idxInPipeline;break}e=e.getUpstream()}while(e)}))},t.prototype.updatePayload=function(t,e){"remain"!==e&&(t.context.payload=e)},t.prototype._createSeriesStageTask=function(t,e,n,i){var r=this,a=e.seriesTaskMap,s=e.seriesTaskMap=(0,o.createHashMap)(),l=t.seriesType,h=t.getTargetSeries;function c(e){var o=e.uid,l=s.set(o,a&&a.get(o)||(0,It.U)({plan:Ot,reset:Nt,count:zt}));l.context={model:e,ecModel:n,api:i,useClearVisual:t.isVisual&&!t.isLayout,plan:t.plan,reset:t.reset,scheduler:r},r._pipe(e,l)}t.createOnAllSeries?n.eachRawSeries(c):l?n.eachRawSeriesByType(l,c):h&&h(n,i).each(c)},t.prototype._createOverallStageTask=function(t,e,n,i){var r=this,a=e.overallTask=e.overallTask||(0,It.U)({reset:Lt});a.context={ecModel:n,api:i,overallReset:t.overallReset,scheduler:r};var s=a.agentStubMap,l=a.agentStubMap=(0,o.createHashMap)(),h=t.seriesType,c=t.getTargetSeries,u=!0,d=!1;function p(t){var e=t.uid,n=l.set(e,s&&s.get(e)||(d=!0,(0,It.U)({reset:Dt,onDirty:Rt})));n.context={model:t,overallProgress:u},n.agent=a,n.__block=u,r._pipe(t,n)}(0,o.assert)(!t.createOnAllSeries,""),h?n.eachRawSeriesByType(h,p):c?c(n,i).each(p):(u=!1,(0,o.each)(n.getSeries(),p)),d&&a.dirty()},t.prototype._pipe=function(t,e){var n=t.uid,i=this._pipelineMap.get(n);!i.head&&(i.head=e),i.tail&&i.tail.pipe(e),i.tail=e,e.__idxInPipeline=i.count++,e.__pipeline=i},t.wrapStageHandler=function(t,e){return(0,o.isFunction)(t)&&(t={overallReset:t,seriesType:Gt(t)}),t.uid=(0,Et.$Q)("stageHandler"),e&&(t.visualType=e),t},t}();function Lt(t){t.overallReset(t.ecModel,t.api,t.payload)}function Dt(t){return t.overallProgress&&Pt}function Pt(){this.agent.dirty(),this.getDownstream().dirty()}function Rt(){this.agent&&this.agent.dirty()}function Ot(t){return t.plan?t.plan(t.model,t.ecModel,t.api,t.payload):null}function Nt(t){t.useClearVisual&&t.data.clearAllVisual();var e=t.resetDefines=(0,h.qB)(t.reset(t.model,t.ecModel,t.api,t.payload));return e.length>1?(0,o.map)(e,(function(t,e){return Bt(e)})):Ft}var Ft=Bt(0);function Bt(t){return function(e,n){var i=n.data,r=n.resetDefines[t];if(r&&r.dataEach)for(var o=e.start;o<e.end;o++)r.dataEach(i,o);else r&&r.progress&&r.progress(e,i)}}function zt(t){return t.data.count()}function Gt(t){Vt=null;try{t(jt,Ht)}catch(e){}return Vt}var Vt,jt={},Ht={};function Wt(t,e){for(var n in e.prototype)t[n]=o.noop}Wt(jt,A),Wt(Ht,I),jt.eachSeriesByType=jt.eachRawSeriesByType=function(t){Vt=t},jt.eachComponent=function(t){"series"===t.mainType&&t.subType&&(Vt=t.subType)};const Ut=kt;var qt=["#37A2DA","#32C5E9","#67E0E3","#9FE6B8","#FFDB5C","#ff9f7f","#fb7293","#E062AE","#E690D1","#e7bcf3","#9d96f5","#8378EA","#96BFFF"];const Xt={color:qt,colorLayer:[["#37A2DA","#ffd85c","#fd7b5f"],["#37A2DA","#67E0E3","#FFDB5C","#ff9f7f","#E062AE","#9d96f5"],["#37A2DA","#32C5E9","#9FE6B8","#FFDB5C","#ff9f7f","#fb7293","#e7bcf3","#8378EA","#96BFFF"],qt]};var Yt="#B9B8CE",Zt="#100C2A",$t=function(){return{axisLine:{lineStyle:{color:Yt}},splitLine:{lineStyle:{color:"#484753"}},splitArea:{areaStyle:{color:["rgba(255,255,255,0.02)","rgba(255,255,255,0.05)"]}},minorSplitLine:{lineStyle:{color:"#20203B"}}}},Kt=["#4992ff","#7cffb2","#fddd60","#ff6e76","#58d9f9","#05c091","#ff8a45","#8d48e3","#dd79ff"],Jt={darkMode:!0,color:Kt,backgroundColor:Zt,axisPointer:{lineStyle:{color:"#817f91"},crossStyle:{color:"#817f91"},label:{color:"#fff"}},legend:{textStyle:{color:Yt}},textStyle:{color:Yt},title:{textStyle:{color:"#EEF1FA"},subtextStyle:{color:"#B9B8CE"}},toolbox:{iconStyle:{borderColor:Yt}},dataZoom:{borderColor:"#71708A",textStyle:{color:Yt},brushStyle:{color:"rgba(135,163,206,0.3)"},handleStyle:{color:"#353450",borderColor:"#C5CBE3"},moveHandleStyle:{color:"#B0B6C3",opacity:.3},fillerColor:"rgba(135,163,206,0.2)",emphasis:{handleStyle:{borderColor:"#91B7F2",color:"#4D587D"},moveHandleStyle:{color:"#636D9A",opacity:.7}},dataBackground:{lineStyle:{color:"#71708A",width:1},areaStyle:{color:"#71708A"}},selectedDataBackground:{lineStyle:{color:"#87A3CE"},areaStyle:{color:"#87A3CE"}}},visualMap:{textStyle:{color:Yt}},timeline:{lineStyle:{color:Yt},label:{color:Yt},controlStyle:{color:Yt,borderColor:Yt}},calendar:{itemStyle:{color:Zt},dayLabel:{color:Yt},monthLabel:{color:Yt},yearLabel:{color:Yt}},timeAxis:$t(),logAxis:$t(),valueAxis:$t(),categoryAxis:$t(),line:{symbol:"circle"},graph:{color:Kt},gauge:{title:{color:Yt},axisLine:{lineStyle:{color:[[1,"rgba(207,212,219,0.2)"]]}},axisLabel:{color:Yt},detail:{color:"#EEF1FA"}},candlestick:{itemStyle:{color:"#f64e56",color0:"#54ea92",borderColor:"#f64e56",borderColor0:"#54ea92"}}};Jt.categoryAxis.splitLine.show=!1;const Qt=Jt;var te=n(9902),ee=function(){function t(){}return t.prototype.normalizeQuery=function(t){var e={},n={},i={};if(o.isString(t)){var r=(0,te.CC)(t);e.mainType=r.main||null,e.subType=r.sub||null}else{var a=["Index","Name","Id"],s={name:1,dataIndex:1,dataType:1};o.each(t,(function(t,r){for(var o=!1,l=0;l<a.length;l++){var h=a[l],c=r.lastIndexOf(h);if(c>0&&c===r.length-h.length){var u=r.slice(0,c);"data"!==u&&(e.mainType=u,e[h.toLowerCase()]=t,o=!0)}}s.hasOwnProperty(r)&&(n[r]=t,o=!0),o||(i[r]=t)}))}return{cptQuery:e,dataQuery:n,otherQuery:i}},t.prototype.filter=function(t,e){var n=this.eventInfo;if(!n)return!0;var i=n.targetEl,r=n.packedEvent,o=n.model,a=n.view;if(!o||!a)return!0;var s=e.cptQuery,l=e.dataQuery;return h(s,o,"mainType")&&h(s,o,"subType")&&h(s,o,"index","componentIndex")&&h(s,o,"name")&&h(s,o,"id")&&h(l,r,"name")&&h(l,r,"dataIndex")&&h(l,r,"dataType")&&(!a.filterForExposedEvent||a.filterForExposedEvent(t,e.otherQuery,i,r));function h(t,e,n,i){return null==t[n]||e[i||n]===t[n]}},t.prototype.afterTrigger=function(){this.eventInfo=null},t}(),ne=["symbol","symbolSize","symbolRotate","symbolOffset"],ie=ne.concat(["symbolKeepAspect"]),re={createOnAllSeries:!0,performRawSeries:!0,reset:function(t,e){var n=t.getData();if(t.legendIcon&&n.setVisual("legendIcon",t.legendIcon),t.hasSymbolVisual){for(var i={},r={},a=!1,s=0;s<ne.length;s++){var l=ne[s],h=t.get(l);(0,o.isFunction)(h)?(a=!0,r[l]=h):i[l]=h}if(i.symbol=i.symbol||t.defaultSymbol,n.setVisual((0,o.extend)({legendIcon:t.legendIcon||i.symbol,symbolKeepAspect:t.get("symbolKeepAspect")},i)),!e.isSeriesFiltered(t)){var c=(0,o.keys)(r);return{dataEach:a?function(e,n){for(var i=t.getRawValue(n),o=t.getDataParams(n),a=0;a<c.length;a++){var s=c[a];e.setItemVisual(n,s,r[s](i,o))}}:null}}}}},oe={createOnAllSeries:!0,performRawSeries:!0,reset:function(t,e){if(t.hasSymbolVisual&&!e.isSeriesFiltered(t))return{dataEach:t.getData().hasItemOption?function(t,e){for(var n=t.getItemModel(e),i=0;i<ie.length;i++){var r=ie[i],o=n.getShallow(r,!0);null!=o&&t.setItemVisual(e,r,o)}}:null}}},ae=n(2322),se=n(766),le=n(6093),he=n(7617),ce=n(6650),ue=n(3152),de=n(2863);const pe=new l.A;var fe=n(9142),ge=n(5689),me="5.5.1",ve={zrender:"5.6.0"},ye=2e3,_e=1e3,xe=2e3,be=3e3,we=4500,Se={PROCESSOR:{FILTER:1e3,SERIES_FILTER:800,STATISTIC:5e3},VISUAL:{LAYOUT:_e,PROGRESSIVE_LAYOUT:1100,GLOBAL:xe,CHART:be,POST_CHART_LAYOUT:4600,COMPONENT:4e3,BRUSH:5e3,CHART_ITEM:we,ARIA:6e3,DECAL:7e3}},Te="__flagInMainProcess",Me="__pendingUpdate",Ae="__needsUpdateStatus",Ce=/^[a-zA-Z0-9_]+$/,Ie="__connectUpdateStatus";function Ee(t){return function(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];if(!this.isDisposed())return Le(this,t,e);en(this.id)}}function ke(t){return function(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];return Le(this,t,e)}}function Le(t,e,n){return n[0]=n[0]&&n[0].toLowerCase(),l.A.prototype[e].apply(t,n)}var De,Pe,Re,Oe,Ne,Fe,Be,ze,Ge,Ve,je,He,We,Ue,qe,Xe,Ye,Ze,$e=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return(0,i.C6)(e,t),e}(l.A),Ke=$e.prototype;Ke.on=ke("on"),Ke.off=ke("off");var Je=function(t){function e(e,n,i){var a=t.call(this,new ee)||this;a._chartsViews=[],a._chartsMap={},a._componentsViews=[],a._componentsMap={},a._pendingActions=[],i=i||{},(0,o.isString)(n)&&(n=ln[n]),a._dom=e;i.ssr&&r.registerSSRDataGetter((function(t){var e=(0,ht.z)(t),n=e.dataIndex;if(null!=n){var i=(0,o.createHashMap)();return i.set("series_index",e.seriesIndex),i.set("data_index",n),e.ssrType&&i.set("ssr_type",e.ssrType),i}}));var l=a._zr=r.init(e,{renderer:i.renderer||"canvas",devicePixelRatio:i.devicePixelRatio,width:i.width,height:i.height,ssr:i.ssr,useDirtyRect:(0,o.retrieve2)(i.useDirtyRect,!1),useCoarsePointer:(0,o.retrieve2)(i.useCoarsePointer,"auto"),pointerSize:i.pointerSize});a._ssr=i.ssr,a._throttledZrFlush=(0,ut.nF)((0,o.bind)(l.flush,l),17),(n=(0,o.clone)(n))&&Q(n,!0),a._theme=n,a._locale=(0,ce.A$)(i.locale||ce.Lv),a._coordSysMgr=new E.A;var h=a._api=qe(a);function c(t,e){return t.__prio-e.__prio}return(0,s.A)(sn,c),(0,s.A)(on,c),a._scheduler=new Ut(a,h,on,sn),a._messageCenter=new $e,a._initEvents(),a.resize=(0,o.bind)(a.resize,a),l.animation.on("frame",a._onframe,a),Ve(l,a),je(l,a),(0,o.setAsPrimitive)(a),a}return(0,i.C6)(e,t),e.prototype._onframe=function(){if(!this._disposed){Ze(this);var t=this._scheduler;if(this[Me]){var e=this[Me].silent;this[Te]=!0;try{De(this),Oe.update.call(this,null,this[Me].updateParams)}catch(a){throw this[Te]=!1,this[Me]=null,a}this._zr.flush(),this[Te]=!1,this[Me]=null,ze.call(this,e),Ge.call(this,e)}else if(t.unfinished){var n=1,i=this._model,r=this._api;t.unfinished=!1;do{var o=+new Date;t.performSeriesTasks(i),t.performDataProcessorTasks(i),Fe(this,i),t.performVisualTasks(i),Ue(this,this._model,r,"remain",{}),n-=+new Date-o}while(n>0&&t.unfinished);t.unfinished||this._zr.flush()}}},e.prototype.getDom=function(){return this._dom},e.prototype.getId=function(){return this.id},e.prototype.getZr=function(){return this._zr},e.prototype.isSSR=function(){return this._ssr},e.prototype.setOption=function(t,e,n){if(!this[Te])if(this._disposed)en(this.id);else{var i,r,a;if((0,o.isObject)(e)&&(n=e.lazyUpdate,i=e.silent,r=e.replaceMerge,a=e.transition,e=e.notMerge),this[Te]=!0,!this._model||e){var s=new P(this._api),l=this._theme,h=this._model=new A;h.scheduler=this._scheduler,h.ssr=this._ssr,h.init(null,null,null,l,this._locale,s)}this._model.setOption(t,{replaceMerge:r},an);var c={seriesTransition:a,optionChanged:!0};if(n)this[Me]={silent:i,updateParams:c},this[Te]=!1,this.getZr().wakeUp();else{try{De(this),Oe.update.call(this,null,c)}catch(u){throw this[Me]=null,this[Te]=!1,u}this._ssr||this._zr.flush(),this[Me]=null,this[Te]=!1,ze.call(this,i),Ge.call(this,i)}}},e.prototype.setTheme=function(){(0,se.aT)("ECharts#setTheme() is DEPRECATED in ECharts 3.0")},e.prototype.getModel=function(){return this._model},e.prototype.getOption=function(){return this._model&&this._model.getOption()},e.prototype.getWidth=function(){return this._zr.getWidth()},e.prototype.getHeight=function(){return this._zr.getHeight()},e.prototype.getDevicePixelRatio=function(){return this._zr.painter.dpr||a.A.hasGlobalWindow&&window.devicePixelRatio||1},e.prototype.getRenderedCanvas=function(t){return this.renderToCanvas(t)},e.prototype.renderToCanvas=function(t){return t=t||{},this._zr.painter.getRenderedCanvas({backgroundColor:t.backgroundColor||this._model.get("backgroundColor"),pixelRatio:t.pixelRatio||this.getDevicePixelRatio()})},e.prototype.renderToSVGString=function(t){return t=t||{},this._zr.painter.renderToString({useViewBox:t.useViewBox})},e.prototype.getSvgDataURL=function(){if(a.A.svgSupported){var t=this._zr,e=t.storage.getDisplayList();return(0,o.each)(e,(function(t){t.stopAnimation(null,!0)})),t.painter.toDataURL()}},e.prototype.getDataURL=function(t){if(!this._disposed){var e=(t=t||{}).excludeComponents,n=this._model,i=[],r=this;(0,o.each)(e,(function(t){n.eachComponent({mainType:t},(function(t){var e=r._componentsMap[t.__viewId];e.group.ignore||(i.push(e),e.group.ignore=!0)}))}));var a="svg"===this._zr.painter.getType()?this.getSvgDataURL():this.renderToCanvas(t).toDataURL("image/"+(t&&t.type||"png"));return(0,o.each)(i,(function(t){t.group.ignore=!1})),a}en(this.id)},e.prototype.getConnectedDataURL=function(t){if(!this._disposed){var e="svg"===t.type,n=this.group,i=Math.min,a=Math.max,s=1/0;if(un[n]){var l=s,h=s,c=-1/0,u=-1/0,d=[],p=t&&t.pixelRatio||this.getDevicePixelRatio();(0,o.each)(cn,(function(r,s){if(r.group===n){var p=e?r.getZr().painter.getSvgDom().innerHTML:r.renderToCanvas((0,o.clone)(t)),f=r.getDom().getBoundingClientRect();l=i(f.left,l),h=i(f.top,h),c=a(f.right,c),u=a(f.bottom,u),d.push({dom:p,left:f.left,top:f.top})}}));var f=(c*=p)-(l*=p),g=(u*=p)-(h*=p),m=fe.yh.createCanvas(),v=r.init(m,{renderer:e?"svg":"canvas"});if(v.resize({width:f,height:g}),e){var y="";return(0,o.each)(d,(function(t){var e=t.left-l,n=t.top-h;y+='<g transform="translate('+e+","+n+')">'+t.dom+"</g>"})),v.painter.getSvgRoot().innerHTML=y,t.connectedBackgroundColor&&v.painter.setBackgroundColor(t.connectedBackgroundColor),v.refreshImmediately(),v.painter.toDataURL()}return t.connectedBackgroundColor&&v.add(new ot.A({shape:{x:0,y:0,width:f,height:g},style:{fill:t.connectedBackgroundColor}})),(0,o.each)(d,(function(t){var e=new at.Ay({style:{x:t.left*p-l,y:t.top*p-h,image:t.dom}});v.add(e)})),v.refreshImmediately(),m.toDataURL("image/"+(t&&t.type||"png"))}return this.getDataURL(t)}en(this.id)},e.prototype.convertToPixel=function(t,e){return Ne(this,"convertToPixel",t,e)},e.prototype.convertFromPixel=function(t,e){return Ne(this,"convertFromPixel",t,e)},e.prototype.containPixel=function(t,e){if(!this._disposed){var n,i=this._model,r=h._e(i,t);return(0,o.each)(r,(function(t,i){i.indexOf("Models")>=0&&(0,o.each)(t,(function(t){var r=t.coordinateSystem;if(r&&r.containPoint)n=n||!!r.containPoint(e);else if("seriesModels"===i){var o=this._chartsMap[t.__viewId];o&&o.containPoint&&(n=n||o.containPoint(e,t))}else 0}),this)}),this),!!n}en(this.id)},e.prototype.getVisual=function(t,e){var n=this._model,i=h._e(n,t,{defaultMainType:"series"});var r=i.seriesModel.getData(),o=i.hasOwnProperty("dataIndexInside")?i.dataIndexInside:i.hasOwnProperty("dataIndex")?r.indexOfRawIndex(i.dataIndex):null;return null!=o?(0,ae.Ez)(r,o,e):(0,ae.rI)(r,e)},e.prototype.getViewOfComponentModel=function(t){return this._componentsMap[t.__viewId]},e.prototype.getViewOfSeriesModel=function(t){return this._chartsMap[t.__viewId]},e.prototype._initEvents=function(){var t=this;(0,o.each)(tn,(function(e){var n=function(n){var i,r=t.getModel(),a=n.target;if("globalout"===e?i={}:a&&(0,ue.R)(a,(function(t){var e=(0,ht.z)(t);if(e&&null!=e.dataIndex){var n=e.dataModel||r.getSeriesByIndex(e.seriesIndex);return i=n&&n.getDataParams(e.dataIndex,e.dataType,a)||{},!0}if(e.eventData)return i=(0,o.extend)({},e.eventData),!0}),!0),i){var s=i.componentType,l=i.componentIndex;"markLine"!==s&&"markPoint"!==s&&"markArea"!==s||(s="series",l=i.seriesIndex);var h=s&&null!=l&&r.getComponent(s,l),c=h&&t["series"===h.mainType?"_chartsMap":"_componentsMap"][h.__viewId];0,i.event=n,i.type=e,t._$eventProcessor.eventInfo={targetEl:a,packedEvent:i,model:h,view:c},t.trigger(e,i)}};n.zrEventfulCallAtLast=!0,t._zr.on(e,n,t)})),(0,o.each)(rn,(function(e,n){t._messageCenter.on(n,(function(t){this.trigger(n,t)}),t)})),(0,o.each)(["selectchanged"],(function(e){t._messageCenter.on(e,(function(t){this.trigger(e,t)}),t)})),(0,le.l)(this._messageCenter,this,this._api)},e.prototype.isDisposed=function(){return this._disposed},e.prototype.clear=function(){this._disposed?en(this.id):this.setOption({series:[]},!0)},e.prototype.dispose=function(){if(this._disposed)en(this.id);else{this._disposed=!0,this.getDom()&&h.Bq(this.getDom(),fn,"");var t=this,e=t._api,n=t._model;(0,o.each)(t._componentsViews,(function(t){t.dispose(n,e)})),(0,o.each)(t._chartsViews,(function(t){t.dispose(n,e)})),t._zr.dispose(),t._dom=t._model=t._chartsMap=t._componentsMap=t._chartsViews=t._componentsViews=t._scheduler=t._api=t._zr=t._throttledZrFlush=t._theme=t._coordSysMgr=t._messageCenter=null,delete cn[t.id]}},e.prototype.resize=function(t){if(!this[Te])if(this._disposed)en(this.id);else{this._zr.resize(t);var e=this._model;if(this._loadingFX&&this._loadingFX.resize(),e){var n=e.resetOption("media"),i=t&&t.silent;this[Me]&&(null==i&&(i=this[Me].silent),n=!0,this[Me]=null),this[Te]=!0;try{n&&De(this),Oe.update.call(this,{type:"resize",animation:(0,o.extend)({duration:0},t&&t.animation)})}catch(r){throw this[Te]=!1,r}this[Te]=!1,ze.call(this,i),Ge.call(this,i)}}},e.prototype.showLoading=function(t,e){if(this._disposed)en(this.id);else if((0,o.isObject)(t)&&(e=t,t=""),t=t||"default",this.hideLoading(),hn[t]){var n=hn[t](this._api,e),i=this._zr;this._loadingFX=n,i.add(n)}},e.prototype.hideLoading=function(){this._disposed?en(this.id):(this._loadingFX&&this._zr.remove(this._loadingFX),this._loadingFX=null)},e.prototype.makeActionFromEvent=function(t){var e=(0,o.extend)({},t);return e.type=rn[t.type],e},e.prototype.dispatchAction=function(t,e){if(this._disposed)en(this.id);else if((0,o.isObject)(e)||(e={silent:!!e}),nn[t.type]&&this._model)if(this[Te])this._pendingActions.push(t);else{var n=e.silent;Be.call(this,t,n);var i=e.flush;i?this._zr.flush():!1!==i&&a.A.browser.weChat&&this._throttledZrFlush(),ze.call(this,n),Ge.call(this,n)}},e.prototype.updateLabelLayout=function(){pe.trigger("series:layoutlabels",this._model,this._api,{updatedSeries:[]})},e.prototype.appendData=function(t){if(this._disposed)en(this.id);else{var e=t.seriesIndex;0,this.getModel().getSeriesByIndex(e).appendData(t),this._scheduler.unfinished=!0,this.getZr().wakeUp()}},e.internalField=function(){function t(t){t.clearColorPalette(),t.eachSeries((function(t){t.clearColorPalette()}))}function e(t){for(var e=[],n=t.currentStates,i=0;i<n.length;i++){var r=n[i];"emphasis"!==r&&"blur"!==r&&"select"!==r&&e.push(r)}t.selected&&t.states.select&&e.push("select"),t.hoverState===ct.e3&&t.states.emphasis?e.push("emphasis"):t.hoverState===ct.zX&&t.states.blur&&e.push("blur"),t.useStates(e)}function n(t,e){if(!t.preventAutoZ){var n=t.get("z")||0,i=t.get("zlevel")||0;e.eachRendered((function(t){return r(t,n,i,-1/0),!0}))}}function r(t,e,n,i){var o=t.getTextContent(),a=t.getTextGuideLine();if(t.isGroup)for(var s=t.childrenRef(),l=0;l<s.length;l++)i=Math.max(r(s[l],e,n,i),i);else t.z=e,t.zlevel=n,i=Math.max(t.z2,i);if(o&&(o.z=e,o.zlevel=n,isFinite(i)&&(o.z2=i+2)),a){var h=t.textGuideLineConfig;a.z=e,a.zlevel=n,isFinite(i)&&(a.z2=i+(h&&h.showAbove?1:-1))}return i}function l(t,e){e.eachRendered((function(t){if(!st.LR(t)){var e=t.getTextContent(),n=t.getTextGuideLine();t.stateTransition&&(t.stateTransition=null),e&&e.stateTransition&&(e.stateTransition=null),n&&n.stateTransition&&(n.stateTransition=null),t.hasState()?(t.prevStates=t.currentStates,t.clearStates()):t.prevStates&&(t.prevStates=null)}}))}function c(t,n){var i=t.getModel("stateAnimation"),r=t.isAnimationEnabled(),o=i.get("duration"),a=o>0?{duration:o,delay:i.get("delay"),easing:i.get("easing")}:null;n.eachRendered((function(t){if(t.states&&t.states.emphasis){if(st.LR(t))return;if(t instanceof lt.Ay&&(0,ct.fz)(t),t.__dirty){var n=t.prevStates;n&&t.useStates(n)}if(r){t.stateTransition=a;var i=t.getTextContent(),o=t.getTextGuideLine();i&&(i.stateTransition=a),o&&(o.stateTransition=a)}t.__dirty&&e(t)}}))}De=function(t){var e=t._scheduler;e.restorePipelines(t._model),e.prepareStageTasks(),Pe(t,!0),Pe(t,!1),e.plan()},Pe=function(t,e){for(var n=t._model,i=t._scheduler,r=e?t._componentsViews:t._chartsViews,o=e?t._componentsMap:t._chartsMap,a=t._zr,s=t._api,l=0;l<r.length;l++)r[l].__alive=!1;function h(t){var l=t.__requireNewView;t.__requireNewView=!1;var h="_ec_"+t.id+"_"+t.type,c=!l&&o[h];if(!c){var u=(0,te.CC)(t.type);0,(c=new(e?it.A.getClass(u.main,u.sub):rt.A.getClass(u.sub))).init(n,s),o[h]=c,r.push(c),a.add(c.group)}t.__viewId=c.__id=h,c.__alive=!0,c.__model=t,c.group.__ecComponentInfo={mainType:t.mainType,index:t.componentIndex},!e&&i.prepareView(c,t,n,s)}e?n.eachComponent((function(t,e){"series"!==t&&h(e)})):n.eachSeries(h);for(l=0;l<r.length;){var c=r[l];c.__alive?l++:(!e&&c.renderTask.dispose(),a.remove(c.group),c.dispose(n,s),r.splice(l,1),o[c.__id]===c&&delete o[c.__id],c.__id=c.group.__ecComponentInfo=null)}},Re=function(t,e,n,i,r){var a=t._model;if(a.setUpdatePayload(n),i){var s={};s[i+"Id"]=n[i+"Id"],s[i+"Index"]=n[i+"Index"],s[i+"Name"]=n[i+"Name"];var l={mainType:i,query:s};r&&(l.subType=r);var c,u=n.excludeSeriesId;null!=u&&(c=(0,o.createHashMap)(),(0,o.each)(h.qB(u),(function(t){var e=h.vS(t,null);null!=e&&c.set(e,!0)}))),a&&a.eachComponent(l,(function(e){if(!(c&&null!=c.get(e.id)))if((0,ct.T$)(n))if(e instanceof nt.A)n.type!==ct.h5||n.notBlur||e.get(["emphasis","disabled"])||(0,ct.lV)(e,n,t._api);else{var i=(0,ct.Tl)(e.mainType,e.componentIndex,n.name,t._api),r=i.focusSelf,a=i.dispatchers;n.type===ct.h5&&r&&!n.notBlur&&(0,ct.Du)(e.mainType,e.componentIndex,t._api),a&&(0,o.each)(a,(function(t){n.type===ct.h5?(0,ct.HY)(t):(0,ct.SD)(t)}))}else(0,ct.Lx)(n)&&e instanceof nt.A&&((0,ct.t6)(e,n,t._api),(0,ct.jA)(e),Ye(t))}),t),a&&a.eachComponent(l,(function(e){c&&null!=c.get(e.id)||d(t["series"===i?"_chartsMap":"_componentsMap"][e.__viewId])}),t)}else(0,o.each)([].concat(t._componentsViews).concat(t._chartsViews),d);function d(i){i&&i.__alive&&i[e]&&i[e](i.__model,a,t._api,n)}},Oe={prepareAndUpdate:function(t){De(this),Oe.update.call(this,t,{optionChanged:null!=t.newOption})},update:function(e,n){var i=this._model,r=this._api,o=this._zr,a=this._coordSysMgr,s=this._scheduler;if(i){i.setUpdatePayload(e),s.restoreData(i,e),s.performSeriesTasks(i),a.create(i,r),s.performDataProcessorTasks(i,e),Fe(this,i),a.update(i,r),t(i),s.performVisualTasks(i,e),He(this,i,r,e,n);var l=i.get("backgroundColor")||"transparent",h=i.get("darkMode");o.setBackgroundColor(l),null!=h&&"auto"!==h&&o.setDarkMode(h),pe.trigger("afterupdate",i,r)}},updateTransform:function(e){var n=this,i=this._model,r=this._api;if(i){i.setUpdatePayload(e);var a=[];i.eachComponent((function(t,o){if("series"!==t){var s=n.getViewOfComponentModel(o);if(s&&s.__alive)if(s.updateTransform){var l=s.updateTransform(o,i,r,e);l&&l.update&&a.push(s)}else a.push(s)}}));var s=(0,o.createHashMap)();i.eachSeries((function(t){var o=n._chartsMap[t.__viewId];if(o.updateTransform){var a=o.updateTransform(t,i,r,e);a&&a.update&&s.set(t.uid,1)}else s.set(t.uid,1)})),t(i),this._scheduler.performVisualTasks(i,e,{setDirty:!0,dirtyMap:s}),Ue(this,i,r,e,{},s),pe.trigger("afterupdate",i,r)}},updateView:function(e){var n=this._model;n&&(n.setUpdatePayload(e),rt.A.markUpdateMethod(e,"updateView"),t(n),this._scheduler.performVisualTasks(n,e,{setDirty:!0}),He(this,n,this._api,e,{}),pe.trigger("afterupdate",n,this._api))},updateVisual:function(e){var n=this,i=this._model;i&&(i.setUpdatePayload(e),i.eachSeries((function(t){t.getData().clearAllVisual()})),rt.A.markUpdateMethod(e,"updateVisual"),t(i),this._scheduler.performVisualTasks(i,e,{visualType:"visual",setDirty:!0}),i.eachComponent((function(t,r){if("series"!==t){var o=n.getViewOfComponentModel(r);o&&o.__alive&&o.updateVisual(r,i,n._api,e)}})),i.eachSeries((function(t){n._chartsMap[t.__viewId].updateVisual(t,i,n._api,e)})),pe.trigger("afterupdate",i,this._api))},updateLayout:function(t){Oe.update.call(this,t)}},Ne=function(t,e,n,i){if(t._disposed)en(t.id);else{for(var r,o=t._model,a=t._coordSysMgr.getCoordinateSystems(),s=h._e(o,n),l=0;l<a.length;l++){var c=a[l];if(c[e]&&null!=(r=c[e](o,s,i)))return r}0}},Fe=function(t,e){var n=t._chartsMap,i=t._scheduler;e.eachSeries((function(t){i.updateStreamModes(t,n[t.__viewId])}))},Be=function(t,e){var n=this,i=this.getModel(),r=t.type,a=t.escapeConnect,s=nn[r],l=s.actionInfo,c=(l.update||"update").split(":"),u=c.pop(),d=null!=c[0]&&(0,te.CC)(c[0]);this[Te]=!0;var p=[t],f=!1;t.batch&&(f=!0,p=(0,o.map)(t.batch,(function(e){return(e=(0,o.defaults)((0,o.extend)({},e),t)).batch=null,e})));var g,m=[],v=(0,ct.Lx)(t),y=(0,ct.T$)(t);if(y&&(0,ct.qR)(this._api),(0,o.each)(p,(function(e){if((g=(g=s.action(e,n._model,n._api))||(0,o.extend)({},e)).type=l.event||g.type,m.push(g),y){var i=h.HB(t),r=i.queryOptionMap,a=i.mainTypeSpecified?r.keys()[0]:"series";Re(n,u,e,a),Ye(n)}else v?(Re(n,u,e,"series"),Ye(n)):d&&Re(n,u,e,d.main,d.sub)})),"none"!==u&&!y&&!v&&!d)try{this[Me]?(De(this),Oe.update.call(this,t),this[Me]=null):Oe[u].call(this,t)}catch(b){throw this[Te]=!1,b}if(g=f?{type:l.event||r,escapeConnect:a,batch:m}:m[0],this[Te]=!1,!e){var _=this._messageCenter;if(_.trigger(g.type,g),v){var x={type:"selectchanged",escapeConnect:a,selected:(0,ct.mc)(i),isFromClick:t.isFromClick||!1,fromAction:t.type,fromActionPayload:t};_.trigger(x.type,x)}}},ze=function(t){for(var e=this._pendingActions;e.length;){var n=e.shift();Be.call(this,n,t)}},Ge=function(t){!t&&this.trigger("updated")},Ve=function(t,e){t.on("rendered",(function(n){e.trigger("rendered",n),!t.animation.isFinished()||e[Me]||e._scheduler.unfinished||e._pendingActions.length||e.trigger("finished")}))},je=function(t,e){t.on("mouseover",(function(t){var n=t.target,i=(0,ue.R)(n,ct.u6);i&&((0,ct._m)(i,t,e._api),Ye(e))})).on("mouseout",(function(t){var n=t.target,i=(0,ue.R)(n,ct.u6);i&&((0,ct.Iz)(i,t,e._api),Ye(e))})).on("click",(function(t){var n=t.target,i=(0,ue.R)(n,(function(t){return null!=(0,ht.z)(t).dataIndex}),!0);if(i){var r=i.selected?"unselect":"select",o=(0,ht.z)(i);e._api.dispatchAction({type:r,dataType:o.dataType,dataIndexInside:o.dataIndex,seriesIndex:o.seriesIndex,isFromClick:!0})}}))},He=function(t,e,n,i,r){!function(t){var e=[],n=[],i=!1;if(t.eachComponent((function(t,r){var o=r.get("zlevel")||0,a=r.get("z")||0,s=r.getZLevelKey();i=i||!!s,("series"===t?n:e).push({zlevel:o,z:a,idx:r.componentIndex,type:t,key:s})})),i){var r,a,l=e.concat(n);(0,s.A)(l,(function(t,e){return t.zlevel===e.zlevel?t.z-e.z:t.zlevel-e.zlevel})),(0,o.each)(l,(function(e){var n=t.getComponent(e.type,e.idx),i=e.zlevel,o=e.key;null!=r&&(i=Math.max(r,i)),o?(i===r&&o!==a&&i++,a=o):a&&(i===r&&i++,a=""),r=i,n.setZLevel(i)}))}}(e),We(t,e,n,i,r),(0,o.each)(t._chartsViews,(function(t){t.__alive=!1})),Ue(t,e,n,i,r),(0,o.each)(t._chartsViews,(function(t){t.__alive||t.remove(e,n)}))},We=function(t,e,i,r,a,s){(0,o.each)(s||t._componentsViews,(function(t){var o=t.__model;l(o,t),t.render(o,e,i,r),n(o,t),c(o,t)}))},Ue=function(t,e,i,r,s,h){var u=t._scheduler;s=(0,o.extend)(s||{},{updatedSeries:e.getSeries()}),pe.trigger("series:beforeupdate",e,i,s);var d=!1;e.eachSeries((function(e){var n=t._chartsMap[e.__viewId];n.__alive=!0;var i=n.renderTask;u.updatePayload(i,r),l(e,n),h&&h.get(e.uid)&&i.dirty(),i.perform(u.getPerformArgs(i))&&(d=!0),n.group.silent=!!e.get("silent"),function(t,e){var n=t.get("blendMode")||null;e.eachRendered((function(t){t.isGroup||(t.style.blend=n)}))}(e,n),(0,ct.jA)(e)})),u.unfinished=d||u.unfinished,pe.trigger("series:layoutlabels",e,i,s),pe.trigger("series:transition",e,i,s),e.eachSeries((function(e){var i=t._chartsMap[e.__viewId];n(e,i),c(e,i)})),function(t,e){var n=t._zr,i=n.storage,r=0;i.traverse((function(t){t.isGroup||r++})),r>e.get("hoverLayerThreshold")&&!a.A.node&&!a.A.worker&&e.eachSeries((function(e){if(!e.preventUsingHoverLayer){var n=t._chartsMap[e.__viewId];n.__alive&&n.eachRendered((function(t){t.states.emphasis&&(t.states.emphasis.hoverLayer=!0)}))}}))}(t,e),pe.trigger("series:afterupdate",e,i,s)},Ye=function(t){t[Ae]=!0,t.getZr().wakeUp()},Ze=function(t){t[Ae]&&(t.getZr().storage.traverse((function(t){st.LR(t)||e(t)})),t[Ae]=!1)},qe=function(t){return new(function(e){function n(){return null!==e&&e.apply(this,arguments)||this}return(0,i.C6)(n,e),n.prototype.getCoordinateSystems=function(){return t._coordSysMgr.getCoordinateSystems()},n.prototype.getComponentByElement=function(e){for(;e;){var n=e.__ecComponentInfo;if(null!=n)return t._model.getComponent(n.mainType,n.index);e=e.parent}},n.prototype.enterEmphasis=function(e,n){(0,ct.HY)(e,n),Ye(t)},n.prototype.leaveEmphasis=function(e,n){(0,ct.SD)(e,n),Ye(t)},n.prototype.enterBlur=function(e){(0,ct.QX)(e),Ye(t)},n.prototype.leaveBlur=function(e){(0,ct.JC)(e),Ye(t)},n.prototype.enterSelect=function(e){(0,ct.JI)(e),Ye(t)},n.prototype.leaveSelect=function(e){(0,ct.gd)(e),Ye(t)},n.prototype.getModel=function(){return t.getModel()},n.prototype.getViewOfComponentModel=function(e){return t.getViewOfComponentModel(e)},n.prototype.getViewOfSeriesModel=function(e){return t.getViewOfSeriesModel(e)},n}(I))(t)},Xe=function(t){function e(t,e){for(var n=0;n<t.length;n++){t[n][Ie]=e}}(0,o.each)(rn,(function(n,i){t._messageCenter.on(i,(function(n){if(un[t.group]&&0!==t[Ie]){if(n&&n.escapeConnect)return;var i=t.makeActionFromEvent(n),r=[];(0,o.each)(cn,(function(e){e!==t&&e.group===t.group&&r.push(e)})),e(r,0),(0,o.each)(r,(function(t){1!==t[Ie]&&t.dispatchAction(i)})),e(r,2)}}))}))}}(),e}(l.A),Qe=Je.prototype;Qe.on=Ee("on"),Qe.off=Ee("off"),Qe.one=function(t,e,n){var i=this;(0,se.aT)("ECharts#one is deprecated."),this.on.call(this,t,(function n(){for(var r=[],o=0;o<arguments.length;o++)r[o]=arguments[o];e&&e.apply&&e.apply(this,r),i.off(t,n)}),n)};var tn=["click","dblclick","mouseover","mouseout","mousemove","mousedown","mouseup","globalout","contextmenu"];function en(t){0}var nn={},rn={},on=[],an=[],sn=[],ln={},hn={},cn={},un={},dn=+new Date-0,pn=+new Date-0,fn="_echarts_instance_";function gn(t,e,n){var i=!(n&&n.ssr);if(i){0;var r=xn(t);if(r)return r;0}var o=new Je(t,e,n);return o.id="ec_"+dn++,cn[o.id]=o,i&&h.Bq(t,fn,o.id),Xe(o),pe.trigger("afterinit",o),o}function mn(t){if((0,o.isArray)(t)){var e=t;t=null,(0,o.each)(e,(function(e){null!=e.group&&(t=e.group)})),t=t||"g_"+pn++,(0,o.each)(e,(function(e){e.group=t}))}return un[t]=!0,t}function vn(t){un[t]=!1}var yn=vn;function _n(t){(0,o.isString)(t)?t=cn[t]:t instanceof Je||(t=xn(t)),t instanceof Je&&!t.isDisposed()&&t.dispose()}function xn(t){return cn[h.D$(t,fn)]}function bn(t){return cn[t]}function wn(t,e){ln[t]=e}function Sn(t){(0,o.indexOf)(an,t)<0&&an.push(t)}function Tn(t,e){Rn(on,t,e,ye)}function Mn(t){Cn("afterinit",t)}function An(t){Cn("afterupdate",t)}function Cn(t,e){pe.on(t,e)}function In(t,e,n){(0,o.isFunction)(e)&&(n=e,e="");var i=(0,o.isObject)(t)?t.type:[t,t={event:e}][0];t.event=(t.event||i).toLowerCase(),e=t.event,rn[e]||((0,o.assert)(Ce.test(i)&&Ce.test(e)),nn[i]||(nn[i]={action:n,actionInfo:t}),rn[e]=i)}function En(t,e){E.A.register(t,e)}function kn(t){var e=E.A.get(t);if(e)return e.getDimensionsInfo?e.getDimensionsInfo():e.dimensions.slice()}function Ln(t,e){Rn(sn,t,e,_e,"layout")}function Dn(t,e){Rn(sn,t,e,be,"visual")}var Pn=[];function Rn(t,e,n,i,r){if(((0,o.isFunction)(e)||(0,o.isObject)(e))&&(n=e,e=i),!((0,o.indexOf)(Pn,n)>=0)){Pn.push(n);var a=Ut.wrapStageHandler(n,r);a.__prio=e,a.__raw=n,t.push(a)}}function On(t,e){hn[t]=e}function Nn(t){(0,fe.Gs)({createCanvas:t})}function Fn(t,e,n){var i=(0,ge.v)("registerMap");i&&i(t,e,n)}function Bn(t){var e=(0,ge.v)("getMap");return e&&e(t)}var zn=he.v5;Dn(xe,xt),Dn(we,wt),Dn(we,St),Dn(xe,re),Dn(we,oe),Dn(7e3,(function(t,e){t.eachRawSeries((function(n){if(!t.isSeriesFiltered(n)){var i=n.getData();i.hasItemVisual()&&i.each((function(t){var n=i.getItemVisual(t,"decal");n&&(i.ensureUniqueItemVisual(t,"style").decal=(0,de.w)(n,e))}));var r=i.getVisual("decal");if(r)i.getVisual("style").decal=(0,de.w)(r,e)}}))})),Sn(Q),Tn(900,(function(t){var e=(0,o.createHashMap)();t.eachSeries((function(t){var n=t.get("stack");if(n){var i=e.get(n)||e.set(n,[]),r=t.getData(),o={stackResultDimension:r.getCalculationInfo("stackResultDimension"),stackedOverDimension:r.getCalculationInfo("stackedOverDimension"),stackedDimension:r.getCalculationInfo("stackedDimension"),stackedByDimension:r.getCalculationInfo("stackedByDimension"),isStackedByIndex:r.getCalculationInfo("isStackedByIndex"),data:r,seriesModel:t};if(!o.stackedDimension||!o.isStackedByIndex&&!o.stackedByDimension)return;i.length&&r.setCalculationInfo("stackedOnSeries",i[i.length-1].seriesModel),i.push(o)}})),e.each(et)})),On("default",(function(t,e){e=e||{},o.defaults(e,{text:"loading",textColor:"#000",fontSize:12,fontWeight:"normal",fontStyle:"normal",fontFamily:"sans-serif",maskColor:"rgba(255, 255, 255, 0.8)",showSpinner:!0,color:"#5470c6",spinnerRadius:10,lineWidth:5,zlevel:0});var n=new Tt.A,i=new ot.A({style:{fill:e.maskColor},zlevel:e.zlevel,z:1e4});n.add(i);var r,a=new Mt.Ay({style:{text:e.text,fill:e.textColor,fontSize:e.fontSize,fontWeight:e.fontWeight,fontStyle:e.fontStyle,fontFamily:e.fontFamily},zlevel:e.zlevel,z:10001}),s=new ot.A({style:{fill:"none"},textContent:a,textConfig:{position:"right",distance:10},zlevel:e.zlevel,z:10001});return n.add(s),e.showSpinner&&((r=new At.A({shape:{startAngle:-Ct/2,endAngle:-Ct/2+.1,r:e.spinnerRadius},style:{stroke:e.color,lineCap:"round",lineWidth:e.lineWidth},zlevel:e.zlevel,z:10001})).animateShape(!0).when(1e3,{endAngle:3*Ct/2}).start("circularInOut"),r.animateShape(!0).when(1e3,{startAngle:3*Ct/2}).delay(300).start("circularInOut"),n.add(r)),n.resize=function(){var n=a.getBoundingRect().width,o=e.showSpinner?e.spinnerRadius:0,l=(t.getWidth()-2*o-(e.showSpinner&&n?10:0)-n)/2-(e.showSpinner&&n?0:5+n/2)+(e.showSpinner?0:n/2)+(n?0:o),h=t.getHeight()/2;e.showSpinner&&r.setShape({cx:l,cy:h}),s.setShape({x:l-o,y:h-o,width:2*o,height:2*o}),i.setShape({x:0,y:0,width:t.getWidth(),height:t.getHeight()})},n.resize(),n})),In({type:ct.h5,event:ct.h5,update:ct.h5},o.noop),In({type:ct.PW,event:ct.PW,update:ct.PW},o.noop),In({type:ct.Lv,event:ct.Lv,update:ct.Lv},o.noop),In({type:ct.U2,event:ct.U2,update:ct.U2},o.noop),In({type:ct.Q6,event:ct.Q6,update:ct.Q6},o.noop),wn("light",Xt),wn("dark",Qt);var Gn={}},5689:(t,e,n)=>{"use strict";n.d(e,{m:()=>r,v:()=>o});var i={};function r(t,e){i[t]=e}function o(t){return i[t]}},6650:(t,e,n)=>{"use strict";n.d(e,{Lv:()=>u,A$:()=>p,pr:()=>g,A4:()=>f,E:()=>d});var i=n(6217),r=n(4810);var o=n(7845),a="ZH",s="EN",l=s,h={},c={},u=r.A.domSupported&&(document.documentElement.lang||navigator.language||navigator.browserLanguage||l).toUpperCase().indexOf(a)>-1?a:l;function d(t,e){t=t.toUpperCase(),c[t]=new i.A(e),h[t]=e}function p(t){if((0,o.isString)(t)){var e=h[t.toUpperCase()]||{};return t===a||t===s?(0,o.clone)(e):(0,o.merge)((0,o.clone)(e),(0,o.clone)(h[l]),!1)}return(0,o.merge)((0,o.clone)(t),(0,o.clone)(h[l]),!1)}function f(t){return c[t]}function g(){return c[l]}d(s,{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:". "}}}}),d(a,{time:{month:["\u4e00\u6708","\u4e8c\u6708","\u4e09\u6708","\u56db\u6708","\u4e94\u6708","\u516d\u6708","\u4e03\u6708","\u516b\u6708","\u4e5d\u6708","\u5341\u6708","\u5341\u4e00\u6708","\u5341\u4e8c\u6708"],monthAbbr:["1\u6708","2\u6708","3\u6708","4\u6708","5\u6708","6\u6708","7\u6708","8\u6708","9\u6708","10\u6708","11\u6708","12\u6708"],dayOfWeek:["\u661f\u671f\u65e5","\u661f\u671f\u4e00","\u661f\u671f\u4e8c","\u661f\u671f\u4e09","\u661f\u671f\u56db","\u661f\u671f\u4e94","\u661f\u671f\u516d"],dayOfWeekAbbr:["\u65e5","\u4e00","\u4e8c","\u4e09","\u56db","\u4e94","\u516d"]},legend:{selector:{all:"\u5168\u9009",inverse:"\u53cd\u9009"}},toolbox:{brush:{title:{rect:"\u77e9\u5f62\u9009\u62e9",polygon:"\u5708\u9009",lineX:"\u6a2a\u5411\u9009\u62e9",lineY:"\u7eb5\u5411\u9009\u62e9",keep:"\u4fdd\u6301\u9009\u62e9",clear:"\u6e05\u9664\u9009\u62e9"}},dataView:{title:"\u6570\u636e\u89c6\u56fe",lang:["\u6570\u636e\u89c6\u56fe","\u5173\u95ed","\u5237\u65b0"]},dataZoom:{title:{zoom:"\u533a\u57df\u7f29\u653e",back:"\u533a\u57df\u7f29\u653e\u8fd8\u539f"}},magicType:{title:{line:"\u5207\u6362\u4e3a\u6298\u7ebf\u56fe",bar:"\u5207\u6362\u4e3a\u67f1\u72b6\u56fe",stack:"\u5207\u6362\u4e3a\u5806\u53e0",tiled:"\u5207\u6362\u4e3a\u5e73\u94fa"}},restore:{title:"\u8fd8\u539f"},saveAsImage:{title:"\u4fdd\u5b58\u4e3a\u56fe\u7247",lang:["\u53f3\u952e\u53e6\u5b58\u4e3a\u56fe\u7247"]}},series:{typeNames:{pie:"\u997c\u56fe",bar:"\u67f1\u72b6\u56fe",line:"\u6298\u7ebf\u56fe",scatter:"\u6563\u70b9\u56fe",effectScatter:"\u6d9f\u6f2a\u6563\u70b9\u56fe",radar:"\u96f7\u8fbe\u56fe",tree:"\u6811\u56fe",treemap:"\u77e9\u5f62\u6811\u56fe",boxplot:"\u7bb1\u578b\u56fe",candlestick:"K\u7ebf\u56fe",k:"K\u7ebf\u56fe",heatmap:"\u70ed\u529b\u56fe",map:"\u5730\u56fe",parallel:"\u5e73\u884c\u5750\u6807\u56fe",lines:"\u7ebf\u56fe",graph:"\u5173\u7cfb\u56fe",sankey:"\u6851\u57fa\u56fe",funnel:"\u6f0f\u6597\u56fe",gauge:"\u4eea\u8868\u76d8\u56fe",pictorialBar:"\u8c61\u5f62\u67f1\u56fe",themeRiver:"\u4e3b\u9898\u6cb3\u6d41\u56fe",sunburst:"\u65ed\u65e5\u56fe",custom:"\u81ea\u5b9a\u4e49\u56fe\u8868",chart:"\u56fe\u8868"}},aria:{general:{withTitle:"\u8fd9\u662f\u4e00\u4e2a\u5173\u4e8e\u201c{title}\u201d\u7684\u56fe\u8868\u3002",withoutTitle:"\u8fd9\u662f\u4e00\u4e2a\u56fe\u8868\uff0c"},series:{single:{prefix:"",withName:"\u56fe\u8868\u7c7b\u578b\u662f{seriesType}\uff0c\u8868\u793a{seriesName}\u3002",withoutName:"\u56fe\u8868\u7c7b\u578b\u662f{seriesType}\u3002"},multiple:{prefix:"\u5b83\u7531{seriesCount}\u4e2a\u56fe\u8868\u7cfb\u5217\u7ec4\u6210\u3002",withName:"\u7b2c{seriesId}\u4e2a\u7cfb\u5217\u662f\u4e00\u4e2a\u8868\u793a{seriesName}\u7684{seriesType}\uff0c",withoutName:"\u7b2c{seriesId}\u4e2a\u7cfb\u5217\u662f\u4e00\u4e2a{seriesType}\uff0c",separator:{middle:"\uff1b",end:"\u3002"}}},data:{allData:"\u5176\u6570\u636e\u662f\u2014\u2014",partialData:"\u5176\u4e2d\uff0c\u524d{displayCnt}\u9879\u662f\u2014\u2014",withName:"{name}\u7684\u6570\u636e\u662f{value}",withoutName:"{value}",separator:{middle:"\uff0c",end:""}}}})},1566:(t,e,n)=>{"use strict";n.d(e,{U:()=>r});var i=n(7845);function r(t){return new o(t)}var o=function(){function t(t){t=t||{},this._reset=t.reset,this._plan=t.plan,this._count=t.count,this._onDirty=t.onDirty,this._dirty=!0}return t.prototype.perform=function(t){var e,n=this._upstream,r=t&&t.skip;if(this._dirty&&n){var o=this.context;o.data=o.outputData=n.context.outputData}this.__pipeline&&(this.__pipeline.currentTask=this),this._plan&&!r&&(e=this._plan(this.context));var a,s=u(this._modBy),l=this._modDataCount||0,h=u(t&&t.modBy),c=t&&t.modDataCount||0;function u(t){return!(t>=1)&&(t=1),t}s===h&&l===c||(e="reset"),(this._dirty||"reset"===e)&&(this._dirty=!1,a=this._doReset(r)),this._modBy=h,this._modDataCount=c;var d=t&&t.step;if(this._dueEnd=n?n._outputDueEnd:this._count?this._count(this.context):1/0,this._progress){var p=this._dueIndex,f=Math.min(null!=d?this._dueIndex+d:1/0,this._dueEnd);if(!r&&(a||p<f)){var g=this._progress;if((0,i.isArray)(g))for(var m=0;m<g.length;m++)this._doProgress(g[m],p,f,h,c);else this._doProgress(g,p,f,h,c)}this._dueIndex=f;var v=null!=this._settedOutputEnd?this._settedOutputEnd:f;0,this._outputDueEnd=v}else this._dueIndex=this._outputDueEnd=null!=this._settedOutputEnd?this._settedOutputEnd:this._dueEnd;return this.unfinished()},t.prototype.dirty=function(){this._dirty=!0,this._onDirty&&this._onDirty(this.context)},t.prototype._doProgress=function(t,e,n,i,r){a.reset(e,n,i,r),this._callingProgress=t,this._callingProgress({start:e,end:n,count:n-e,next:a.next},this.context)},t.prototype._doReset=function(t){var e,n;this._dueIndex=this._outputDueEnd=this._dueEnd=0,this._settedOutputEnd=null,!t&&this._reset&&((e=this._reset(this.context))&&e.progress&&(n=e.forceFirstProgress,e=e.progress),(0,i.isArray)(e)&&!e.length&&(e=null)),this._progress=e,this._modBy=this._modDataCount=null;var r=this._downstream;return r&&r.dirty(),n},t.prototype.unfinished=function(){return this._progress&&this._dueIndex<this._dueEnd},t.prototype.pipe=function(t){(this._downstream!==t||this._dirty)&&(this._downstream=t,t._upstream=this,t.dirty())},t.prototype.dispose=function(){this._disposed||(this._upstream&&(this._upstream._downstream=null),this._downstream&&(this._downstream._upstream=null),this._dirty=!1,this._disposed=!0)},t.prototype.getUpstream=function(){return this._upstream},t.prototype.getDownstream=function(){return this._downstream},t.prototype.setOutputEnd=function(t){this._outputDueEnd=this._settedOutputEnd=t},t}(),a=function(){var t,e,n,i,r,o={reset:function(l,h,c,u){e=l,t=h,n=c,i=u,r=Math.ceil(i/n),o.next=n>1&&i>0?s:a}};return o;function a(){return e<t?e++:null}function s(){var o=e%r*n+Math.ceil(e/r),a=e>=t?null:o<i?o:e;return e++,a}}()},2110:(t,e,n)=>{"use strict";function i(t){return null==t?0:t.length||1}function r(t){return t}n.d(e,{A:()=>o});const o=function(){function t(t,e,n,i,o,a){this._old=t,this._new=e,this._oldKeyGetter=n||r,this._newKeyGetter=i||r,this.context=o,this._diffModeMultiple="multiple"===a}return t.prototype.add=function(t){return this._add=t,this},t.prototype.update=function(t){return this._update=t,this},t.prototype.updateManyToOne=function(t){return this._updateManyToOne=t,this},t.prototype.updateOneToMany=function(t){return this._updateOneToMany=t,this},t.prototype.updateManyToMany=function(t){return this._updateManyToMany=t,this},t.prototype.remove=function(t){return this._remove=t,this},t.prototype.execute=function(){this[this._diffModeMultiple?"_executeMultiple":"_executeOneToOne"]()},t.prototype._executeOneToOne=function(){var t=this._old,e=this._new,n={},r=new Array(t.length),o=new Array(e.length);this._initIndexMap(t,null,r,"_oldKeyGetter"),this._initIndexMap(e,n,o,"_newKeyGetter");for(var a=0;a<t.length;a++){var s=r[a],l=n[s],h=i(l);if(h>1){var c=l.shift();1===l.length&&(n[s]=l[0]),this._update&&this._update(c,a)}else 1===h?(n[s]=null,this._update&&this._update(l,a)):this._remove&&this._remove(a)}this._performRestAdd(o,n)},t.prototype._executeMultiple=function(){var t=this._old,e=this._new,n={},r={},o=[],a=[];this._initIndexMap(t,n,o,"_oldKeyGetter"),this._initIndexMap(e,r,a,"_newKeyGetter");for(var s=0;s<o.length;s++){var l=o[s],h=n[l],c=r[l],u=i(h),d=i(c);if(u>1&&1===d)this._updateManyToOne&&this._updateManyToOne(c,h),r[l]=null;else if(1===u&&d>1)this._updateOneToMany&&this._updateOneToMany(c,h),r[l]=null;else if(1===u&&1===d)this._update&&this._update(c,h),r[l]=null;else if(u>1&&d>1)this._updateManyToMany&&this._updateManyToMany(c,h),r[l]=null;else if(u>1)for(var p=0;p<u;p++)this._remove&&this._remove(h[p]);else this._remove&&this._remove(h)}this._performRestAdd(a,r)},t.prototype._performRestAdd=function(t,e){for(var n=0;n<t.length;n++){var r=t[n],o=e[r],a=i(o);if(a>1)for(var s=0;s<a;s++)this._add&&this._add(o[s]);else 1===a&&this._add&&this._add(o);e[r]=null}},t.prototype._initIndexMap=function(t,e,n,r){for(var o=this._diffModeMultiple,a=0;a<t.length;a++){var s="_ec_"+this[r](t[a],a);if(o||(n[a]=s),e){var l=e[s],h=i(l);0===h?(e[s]=a,o&&n.push(s)):1===h?e[s]=[l,a]:l.push(a)}}},t}()},8473:(t,e,n)=>{"use strict";n.d(e,{A_:()=>c,Ay:()=>g});var i,r=n(7845),o=n(4224),a=n(3244),s="undefined",l=typeof Uint32Array===s?Array:Uint32Array,h=typeof Uint16Array===s?Array:Uint16Array,c=typeof Int32Array===s?Array:Int32Array,u=typeof Float64Array===s?Array:Float64Array,d={float:u,int:c,ordinal:Array,number:Array,time:u};function p(t){return t>65535?l:h}function f(t,e,n,i,r){var o=d[n||"float"];if(r){var a=t[e],s=a&&a.length;if(s!==i){for(var l=new o(i),h=0;h<s;h++)l[h]=a[h];t[e]=l}}else t[e]=new o(i)}const g=function(){function t(){this._chunks=[],this._rawExtent=[],this._extent=[],this._count=0,this._rawCount=0,this._calcDimNameToIdx=(0,r.createHashMap)()}return t.prototype.initData=function(t,e,n){this._provider=t,this._chunks=[],this._indices=null,this.getRawIndex=this._getRawIdxIdentity;var o=t.getSource(),s=this.defaultDimValueGetter=i[o.sourceFormat];this._dimValueGetter=n||s,this._rawExtent=[];(0,a.O0)(o);this._dimensions=(0,r.map)(e,(function(t){return{type:t.type,property:t.property}})),this._initDataFromProvider(0,t.count())},t.prototype.getProvider=function(){return this._provider},t.prototype.getSource=function(){return this._provider.getSource()},t.prototype.ensureCalculationDimension=function(t,e){var n=this._calcDimNameToIdx,i=this._dimensions,r=n.get(t);if(null!=r){if(i[r].type===e)return r}else r=i.length;return i[r]={type:e},n.set(t,r),this._chunks[r]=new d[e||"float"](this._rawCount),this._rawExtent[r]=[1/0,-1/0],r},t.prototype.collectOrdinalMeta=function(t,e){var n=this._chunks[t],i=this._dimensions[t],r=this._rawExtent,o=i.ordinalOffset||0,a=n.length;0===o&&(r[t]=[1/0,-1/0]);for(var s=r[t],l=o;l<a;l++){var h=n[l]=e.parseAndCollect(n[l]);isNaN(h)||(s[0]=Math.min(h,s[0]),s[1]=Math.max(h,s[1]))}i.ordinalMeta=e,i.ordinalOffset=a,i.type="ordinal"},t.prototype.getOrdinalMeta=function(t){return this._dimensions[t].ordinalMeta},t.prototype.getDimensionProperty=function(t){var e=this._dimensions[t];return e&&e.property},t.prototype.appendData=function(t){var e=this._provider,n=this.count();e.appendData(t);var i=e.count();return e.persistent||(i+=n),n<i&&this._initDataFromProvider(n,i,!0),[n,i]},t.prototype.appendValues=function(t,e){for(var n=this._chunks,r=this._dimensions,o=r.length,a=this._rawExtent,s=this.count(),l=s+Math.max(t.length,e||0),h=0;h<o;h++){f(n,h,(g=r[h]).type,l,!0)}for(var c=[],u=s;u<l;u++)for(var d=u-s,p=0;p<o;p++){var g=r[p],m=i.arrayRows.call(this,t[d]||c,g.property,d,p);n[p][u]=m;var v=a[p];m<v[0]&&(v[0]=m),m>v[1]&&(v[1]=m)}return this._rawCount=this._count=l,{start:s,end:l}},t.prototype._initDataFromProvider=function(t,e,n){for(var i=this._provider,o=this._chunks,a=this._dimensions,s=a.length,l=this._rawExtent,h=(0,r.map)(a,(function(t){return t.property})),c=0;c<s;c++){var u=a[c];l[c]||(l[c]=[1/0,-1/0]),f(o,c,u.type,e,n)}if(i.fillStorage)i.fillStorage(t,e,o,l);else for(var d=[],p=t;p<e;p++){d=i.getItem(p,d);for(var g=0;g<s;g++){var m=o[g],v=this._dimValueGetter(d,h[g],p,g);m[p]=v;var y=l[g];v<y[0]&&(y[0]=v),v>y[1]&&(y[1]=v)}}!i.persistent&&i.clean&&i.clean(),this._rawCount=this._count=e,this._extent=[]},t.prototype.count=function(){return this._count},t.prototype.get=function(t,e){if(!(e>=0&&e<this._count))return NaN;var n=this._chunks[t];return n?n[this.getRawIndex(e)]:NaN},t.prototype.getValues=function(t,e){var n=[],i=[];if(null==e){e=t,t=[];for(var r=0;r<this._dimensions.length;r++)i.push(r)}else i=t;r=0;for(var o=i.length;r<o;r++)n.push(this.get(i[r],e));return n},t.prototype.getByRawIndex=function(t,e){if(!(e>=0&&e<this._rawCount))return NaN;var n=this._chunks[t];return n?n[e]:NaN},t.prototype.getSum=function(t){var e=0;if(this._chunks[t])for(var n=0,i=this.count();n<i;n++){var r=this.get(t,n);isNaN(r)||(e+=r)}return e},t.prototype.getMedian=function(t){var e=[];this.each([t],(function(t){isNaN(t)||e.push(t)}));var n=e.sort((function(t,e){return t-e})),i=this.count();return 0===i?0:i%2==1?n[(i-1)/2]:(n[i/2]+n[i/2-1])/2},t.prototype.indexOfRawIndex=function(t){if(t>=this._rawCount||t<0)return-1;if(!this._indices)return t;var e=this._indices,n=e[t];if(null!=n&&n<this._count&&n===t)return t;for(var i=0,r=this._count-1;i<=r;){var o=(i+r)/2|0;if(e[o]<t)i=o+1;else{if(!(e[o]>t))return o;r=o-1}}return-1},t.prototype.indicesOfNearest=function(t,e,n){var i=this._chunks[t],r=[];if(!i)return r;null==n&&(n=1/0);for(var o=1/0,a=-1,s=0,l=0,h=this.count();l<h;l++){var c=e-i[this.getRawIndex(l)],u=Math.abs(c);u<=n&&((u<o||u===o&&c>=0&&a<0)&&(o=u,a=c,s=0),c===a&&(r[s++]=l))}return r.length=s,r},t.prototype.getIndices=function(){var t,e=this._indices;if(e){var n=e.constructor,i=this._count;if(n===Array){t=new n(i);for(var r=0;r<i;r++)t[r]=e[r]}else t=new n(e.buffer,0,i)}else{t=new(n=p(this._rawCount))(this.count());for(r=0;r<t.length;r++)t[r]=r}return t},t.prototype.filter=function(t,e){if(!this._count)return this;for(var n=this.clone(),i=n.count(),r=new(p(n._rawCount))(i),o=[],a=t.length,s=0,l=t[0],h=n._chunks,c=0;c<i;c++){var u=void 0,d=n.getRawIndex(c);if(0===a)u=e(c);else if(1===a){u=e(h[l][d],c)}else{for(var f=0;f<a;f++)o[f]=h[t[f]][d];o[f]=c,u=e.apply(null,o)}u&&(r[s++]=d)}return s<i&&(n._indices=r),n._count=s,n._extent=[],n._updateGetRawIdx(),n},t.prototype.selectRange=function(t){var e=this.clone(),n=e._count;if(!n)return this;var i=(0,r.keys)(t),o=i.length;if(!o)return this;var a=e.count(),s=new(p(e._rawCount))(a),l=0,h=i[0],c=t[h][0],u=t[h][1],d=e._chunks,f=!1;if(!e._indices){var g=0;if(1===o){for(var m=d[i[0]],v=0;v<n;v++){((b=m[v])>=c&&b<=u||isNaN(b))&&(s[l++]=g),g++}f=!0}else if(2===o){m=d[i[0]];var y=d[i[1]],_=t[i[1]][0],x=t[i[1]][1];for(v=0;v<n;v++){var b=m[v],w=y[v];(b>=c&&b<=u||isNaN(b))&&(w>=_&&w<=x||isNaN(w))&&(s[l++]=g),g++}f=!0}}if(!f)if(1===o)for(v=0;v<a;v++){var S=e.getRawIndex(v);((b=d[i[0]][S])>=c&&b<=u||isNaN(b))&&(s[l++]=S)}else for(v=0;v<a;v++){for(var T=!0,M=(S=e.getRawIndex(v),0);M<o;M++){var A=i[M];((b=d[A][S])<t[A][0]||b>t[A][1])&&(T=!1)}T&&(s[l++]=e.getRawIndex(v))}return l<a&&(e._indices=s),e._count=l,e._extent=[],e._updateGetRawIdx(),e},t.prototype.map=function(t,e){var n=this.clone(t);return this._updateDims(n,t,e),n},t.prototype.modify=function(t,e){this._updateDims(this,t,e)},t.prototype._updateDims=function(t,e,n){for(var i=t._chunks,r=[],o=e.length,a=t.count(),s=[],l=t._rawExtent,h=0;h<e.length;h++)l[e[h]]=[1/0,-1/0];for(var c=0;c<a;c++){for(var u=t.getRawIndex(c),d=0;d<o;d++)s[d]=i[e[d]][u];s[o]=c;var p=n&&n.apply(null,s);if(null!=p){"object"!=typeof p&&(r[0]=p,p=r);for(h=0;h<p.length;h++){var f=e[h],g=p[h],m=l[f],v=i[f];v&&(v[u]=g),g<m[0]&&(m[0]=g),g>m[1]&&(m[1]=g)}}}},t.prototype.lttbDownSample=function(t,e){var n,i,r,o=this.clone([t],!0),a=o._chunks[t],s=this.count(),l=0,h=Math.floor(1/e),c=this.getRawIndex(0),u=new(p(this._rawCount))(Math.min(2*(Math.ceil(s/h)+2),s));u[l++]=c;for(var d=1;d<s-1;d+=h){for(var f=Math.min(d+h,s-1),g=Math.min(d+2*h,s),m=(g+f)/2,v=0,y=f;y<g;y++){var _=a[A=this.getRawIndex(y)];isNaN(_)||(v+=_)}v/=g-f;var x=d,b=Math.min(d+h,s),w=d-1,S=a[c];n=-1,r=x;var T=-1,M=0;for(y=x;y<b;y++){var A;_=a[A=this.getRawIndex(y)];isNaN(_)?(M++,T<0&&(T=A)):(i=Math.abs((w-m)*(_-S)-(w-y)*(v-S)))>n&&(n=i,r=A)}M>0&&M<b-x&&(u[l++]=Math.min(T,r),r=Math.max(T,r)),u[l++]=r,c=r}return u[l++]=this.getRawIndex(s-1),o._count=l,o._indices=u,o.getRawIndex=this._getRawIdx,o},t.prototype.downSample=function(t,e,n,i){for(var r=this.clone([t],!0),o=r._chunks,a=[],s=Math.floor(1/e),l=o[t],h=this.count(),c=r._rawExtent[t]=[1/0,-1/0],u=new(p(this._rawCount))(Math.ceil(h/s)),d=0,f=0;f<h;f+=s){s>h-f&&(s=h-f,a.length=s);for(var g=0;g<s;g++){var m=this.getRawIndex(f+g);a[g]=l[m]}var v=n(a),y=this.getRawIndex(Math.min(f+i(a,v)||0,h-1));l[y]=v,v<c[0]&&(c[0]=v),v>c[1]&&(c[1]=v),u[d++]=y}return r._count=d,r._indices=u,r._updateGetRawIdx(),r},t.prototype.each=function(t,e){if(this._count)for(var n=t.length,i=this._chunks,r=0,o=this.count();r<o;r++){var a=this.getRawIndex(r);switch(n){case 0:e(r);break;case 1:e(i[t[0]][a],r);break;case 2:e(i[t[0]][a],i[t[1]][a],r);break;default:for(var s=0,l=[];s<n;s++)l[s]=i[t[s]][a];l[s]=r,e.apply(null,l)}}},t.prototype.getDataExtent=function(t){var e=this._chunks[t],n=[1/0,-1/0];if(!e)return n;var i,r=this.count();if(!this._indices)return this._rawExtent[t].slice();if(i=this._extent[t])return i.slice();for(var o=(i=n)[0],a=i[1],s=0;s<r;s++){var l=e[this.getRawIndex(s)];l<o&&(o=l),l>a&&(a=l)}return i=[o,a],this._extent[t]=i,i},t.prototype.getRawDataItem=function(t){var e=this.getRawIndex(t);if(this._provider.persistent)return this._provider.getItem(e);for(var n=[],i=this._chunks,r=0;r<i.length;r++)n.push(i[r][e]);return n},t.prototype.clone=function(e,n){var i,o,a=new t,s=this._chunks,l=e&&(0,r.reduce)(e,(function(t,e){return t[e]=!0,t}),{});if(l)for(var h=0;h<s.length;h++)a._chunks[h]=l[h]?(i=s[h],o=void 0,(o=i.constructor)===Array?i.slice():new o(i)):s[h];else a._chunks=s;return this._copyCommonProps(a),n||(a._indices=this._cloneIndices()),a._updateGetRawIdx(),a},t.prototype._copyCommonProps=function(t){t._count=this._count,t._rawCount=this._rawCount,t._provider=this._provider,t._dimensions=this._dimensions,t._extent=(0,r.clone)(this._extent),t._rawExtent=(0,r.clone)(this._rawExtent)},t.prototype._cloneIndices=function(){if(this._indices){var t=this._indices.constructor,e=void 0;if(t===Array){var n=this._indices.length;e=new t(n);for(var i=0;i<n;i++)e[i]=this._indices[i]}else e=new t(this._indices);return e}return null},t.prototype._getRawIdxIdentity=function(t){return t},t.prototype._getRawIdx=function(t){return t<this._count&&t>=0?this._indices[t]:-1},t.prototype._updateGetRawIdx=function(){this.getRawIndex=this._indices?this._getRawIdx:this._getRawIdxIdentity},t.internalField=function(){function t(t,e,n,i){return(0,o.Pn)(t[i],this._dimensions[i])}i={arrayRows:t,objectRows:function(t,e,n,i){return(0,o.Pn)(t[e],this._dimensions[i])},keyedColumns:t,original:function(t,e,n,i){var r=t&&(null==t.value?t:t.value);return(0,o.Pn)(r instanceof Array?r[i]:r,this._dimensions[i])},typedArray:function(t,e,n,i){return t[i]}}}(),t}()},9588:(t,e,n)=>{"use strict";n.d(e,{Ay:()=>h});var i=n(7845);function r(t){return"_EC_"+t}var o=function(){function t(t){this.type="graph",this.nodes=[],this.edges=[],this._nodesMap={},this._edgesMap={},this._directed=t||!1}return t.prototype.isDirected=function(){return this._directed},t.prototype.addNode=function(t,e){t=null==t?""+e:""+t;var n=this._nodesMap;if(!n[r(t)]){var i=new a(t,e);return i.hostGraph=this,this.nodes.push(i),n[r(t)]=i,i}},t.prototype.getNodeByIndex=function(t){var e=this.data.getRawIndex(t);return this.nodes[e]},t.prototype.getNodeById=function(t){return this._nodesMap[r(t)]},t.prototype.addEdge=function(t,e,n){var o=this._nodesMap,l=this._edgesMap;if(i.isNumber(t)&&(t=this.nodes[t]),i.isNumber(e)&&(e=this.nodes[e]),t instanceof a||(t=o[r(t)]),e instanceof a||(e=o[r(e)]),t&&e){var h=t.id+"-"+e.id,c=new s(t,e,n);return c.hostGraph=this,this._directed&&(t.outEdges.push(c),e.inEdges.push(c)),t.edges.push(c),t!==e&&e.edges.push(c),this.edges.push(c),l[h]=c,c}},t.prototype.getEdgeByIndex=function(t){var e=this.edgeData.getRawIndex(t);return this.edges[e]},t.prototype.getEdge=function(t,e){t instanceof a&&(t=t.id),e instanceof a&&(e=e.id);var n=this._edgesMap;return this._directed?n[t+"-"+e]:n[t+"-"+e]||n[e+"-"+t]},t.prototype.eachNode=function(t,e){for(var n=this.nodes,i=n.length,r=0;r<i;r++)n[r].dataIndex>=0&&t.call(e,n[r],r)},t.prototype.eachEdge=function(t,e){for(var n=this.edges,i=n.length,r=0;r<i;r++)n[r].dataIndex>=0&&n[r].node1.dataIndex>=0&&n[r].node2.dataIndex>=0&&t.call(e,n[r],r)},t.prototype.breadthFirstTraverse=function(t,e,n,i){if(e instanceof a||(e=this._nodesMap[r(e)]),e){for(var o="out"===n?"outEdges":"in"===n?"inEdges":"edges",s=0;s<this.nodes.length;s++)this.nodes[s].__visited=!1;if(!t.call(i,e,null))for(var l=[e];l.length;){var h=l.shift(),c=h[o];for(s=0;s<c.length;s++){var u=c[s],d=u.node1===h?u.node2:u.node1;if(!d.__visited){if(t.call(i,d,h))return;l.push(d),d.__visited=!0}}}}},t.prototype.update=function(){for(var t=this.data,e=this.edgeData,n=this.nodes,i=this.edges,r=0,o=n.length;r<o;r++)n[r].dataIndex=-1;for(r=0,o=t.count();r<o;r++)n[t.getRawIndex(r)].dataIndex=r;e.filterSelf((function(t){var n=i[e.getRawIndex(t)];return n.node1.dataIndex>=0&&n.node2.dataIndex>=0}));for(r=0,o=i.length;r<o;r++)i[r].dataIndex=-1;for(r=0,o=e.count();r<o;r++)i[e.getRawIndex(r)].dataIndex=r},t.prototype.clone=function(){for(var e=new t(this._directed),n=this.nodes,i=this.edges,r=0;r<n.length;r++)e.addNode(n[r].id,n[r].dataIndex);for(r=0;r<i.length;r++){var o=i[r];e.addEdge(o.node1.id,o.node2.id,o.dataIndex)}return e},t}(),a=function(){function t(t,e){this.inEdges=[],this.outEdges=[],this.edges=[],this.dataIndex=-1,this.id=null==t?"":t,this.dataIndex=null==e?-1:e}return t.prototype.degree=function(){return this.edges.length},t.prototype.inDegree=function(){return this.inEdges.length},t.prototype.outDegree=function(){return this.outEdges.length},t.prototype.getModel=function(t){if(!(this.dataIndex<0))return this.hostGraph.data.getItemModel(this.dataIndex).getModel(t)},t.prototype.getAdjacentDataIndices=function(){for(var t={edge:[],node:[]},e=0;e<this.edges.length;e++){var n=this.edges[e];n.dataIndex<0||(t.edge.push(n.dataIndex),t.node.push(n.node1.dataIndex,n.node2.dataIndex))}return t},t.prototype.getTrajectoryDataIndices=function(){for(var t=i.createHashMap(),e=i.createHashMap(),n=0;n<this.edges.length;n++){var r=this.edges[n];if(!(r.dataIndex<0)){t.set(r.dataIndex,!0);for(var o=[r.node1],a=[r.node2],s=0;s<o.length;){var l=o[s];s++,e.set(l.dataIndex,!0);for(var h=0;h<l.inEdges.length;h++)t.set(l.inEdges[h].dataIndex,!0),o.push(l.inEdges[h].node1)}for(s=0;s<a.length;){var c=a[s];s++,e.set(c.dataIndex,!0);for(h=0;h<c.outEdges.length;h++)t.set(c.outEdges[h].dataIndex,!0),a.push(c.outEdges[h].node2)}}}return{edge:t.keys(),node:e.keys()}},t}(),s=function(){function t(t,e,n){this.dataIndex=-1,this.node1=t,this.node2=e,this.dataIndex=null==n?-1:n}return t.prototype.getModel=function(t){if(!(this.dataIndex<0))return this.hostGraph.edgeData.getItemModel(this.dataIndex).getModel(t)},t.prototype.getAdjacentDataIndices=function(){return{edge:[this.dataIndex],node:[this.node1.dataIndex,this.node2.dataIndex]}},t.prototype.getTrajectoryDataIndices=function(){var t=i.createHashMap(),e=i.createHashMap();t.set(this.dataIndex,!0);for(var n=[this.node1],r=[this.node2],o=0;o<n.length;){var a=n[o];o++,e.set(a.dataIndex,!0);for(var s=0;s<a.inEdges.length;s++)t.set(a.inEdges[s].dataIndex,!0),n.push(a.inEdges[s].node1)}for(o=0;o<r.length;){var l=r[o];o++,e.set(l.dataIndex,!0);for(s=0;s<l.outEdges.length;s++)t.set(l.outEdges[s].dataIndex,!0),r.push(l.outEdges[s].node2)}return{edge:t.keys(),node:e.keys()}},t}();function l(t,e){return{getValue:function(n){var i=this[t][e];return i.getStore().get(i.getDimensionIndex(n||"value"),this.dataIndex)},setVisual:function(n,i){this.dataIndex>=0&&this[t][e].setItemVisual(this.dataIndex,n,i)},getVisual:function(n){return this[t][e].getItemVisual(this.dataIndex,n)},setLayout:function(n,i){this.dataIndex>=0&&this[t][e].setItemLayout(this.dataIndex,n,i)},getLayout:function(){return this[t][e].getItemLayout(this.dataIndex)},getGraphicEl:function(){return this[t][e].getItemGraphicEl(this.dataIndex)},getRawIndex:function(){return this[t][e].getRawIndex(this.dataIndex)}}}i.mixin(a,l("hostGraph","data")),i.mixin(s,l("hostGraph","edgeData"));const h=o},5900:(t,e,n)=>{"use strict";n.d(e,{A:()=>a});var i=n(7845),r=0;function o(t){return(0,i.isObject)(t)&&null!=t.value?t.value:t+""}const a=function(){function t(t){this.categories=t.categories||[],this._needCollect=t.needCollect,this._deduplication=t.deduplication,this.uid=++r}return t.createByAxisModel=function(e){var n=e.option,r=n.data,a=r&&(0,i.map)(r,o);return new t({categories:a,needCollect:!a,deduplication:!1!==n.dedplication})},t.prototype.getOrdinal=function(t){return this._getOrCreateMap().get(t)},t.prototype.parseAndCollect=function(t){var e,n=this._needCollect;if(!(0,i.isString)(t)&&!n)return t;if(n&&!this._deduplication)return e=this.categories.length,this.categories[e]=t,e;var r=this._getOrCreateMap();return null==(e=r.get(t))&&(n?(e=this.categories.length,this.categories[e]=t,r.set(t,e)):e=NaN),e},t.prototype._getOrCreateMap=function(){return this._map||(this._map=(0,i.createHashMap)(this.categories))},t}()},919:(t,e,n)=>{"use strict";n.d(e,{A:()=>C});var i,r,o,a,s,l,h,c=n(7845),u=n(6217),d=n(2110),p=n(6112),f=n(525),g=n(5948),m=n(3457),v=n(2577),y=n(6195),_=n(3244),x=n(8473),b=n(6191),w=c.isObject,S=c.map,T="undefined"==typeof Int32Array?Array:Int32Array,M=["hasItemOption","_nameList","_idList","_invertedIndicesMap","_dimSummary","userOutput","_rawData","_dimValueGetter","_nameDimIdx","_idDimIdx","_nameRepeatCount"],A=["_approximateExtent"];const C=function(){function t(t,e){var n;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","lttbDownSample","map"],this.CHANGABLE_METHODS=["filterSelf","selectRange"],this.DOWNSAMPLE_METHODS=["downSample","lttbDownSample"];var i=!1;(0,b.fg)(t)?(n=t.dimensions,this._dimOmitted=t.isDimensionOmitted(),this._schema=t):(i=!0,n=t),n=n||["x","y"];for(var r={},o=[],a={},s=!1,l={},h=0;h<n.length;h++){var u=n[h],d=c.isString(u)?new g.A({name:u}):u instanceof g.A?u:new g.A(u),p=d.name;d.type=d.type||"float",d.coordDim||(d.coordDim=p,d.coordDimIndex=0);var f=d.otherDims=d.otherDims||{};o.push(p),r[p]=d,null!=l[p]&&(s=!0),d.createInvertedIndices&&(a[p]=[]),0===f.itemName&&(this._nameDimIdx=h),0===f.itemId&&(this._idDimIdx=h),i&&(d.storeDimIndex=h)}if(this.dimensions=o,this._dimInfos=r,this._initGetDimensionInfo(s),this.hostModel=e,this._invertedIndicesMap=a,this._dimOmitted){var m=this._dimIdxToName=c.createHashMap();c.each(o,(function(t){m.set(r[t].storeDimIndex,t)}))}}return t.prototype.getDimension=function(t){var e=this._recognizeDimIndex(t);if(null==e)return t;if(e=t,!this._dimOmitted)return this.dimensions[e];var n=this._dimIdxToName.get(e);if(null!=n)return n;var i=this._schema.getSourceDimension(e);return i?i.name:void 0},t.prototype.getDimensionIndex=function(t){var e=this._recognizeDimIndex(t);if(null!=e)return e;if(null==t)return-1;var n=this._getDimInfo(t);return n?n.storeDimIndex:this._dimOmitted?this._schema.getSourceDimensionIndex(t):-1},t.prototype._recognizeDimIndex=function(t){if(c.isNumber(t)||null!=t&&!isNaN(t)&&!this._getDimInfo(t)&&(!this._dimOmitted||this._schema.getSourceDimensionIndex(t)<0))return+t},t.prototype._getStoreDimIndex=function(t){return this.getDimensionIndex(t)},t.prototype.getDimensionInfo=function(t){return this._getDimInfo(this.getDimension(t))},t.prototype._initGetDimensionInfo=function(t){var e=this._dimInfos;this._getDimInfo=t?function(t){return e.hasOwnProperty(t)?e[t]:void 0}:function(t){return e[t]}},t.prototype.getDimensionsOnCoord=function(){return this._dimSummary.dataDimsOnCoord.slice()},t.prototype.mapDimension=function(t,e){var n=this._dimSummary;if(null==e)return n.encodeFirstDimNotExtra[t];var i=n.encode[t];return i?i[e]:null},t.prototype.mapDimensionsAll=function(t){return(this._dimSummary.encode[t]||[]).slice()},t.prototype.getStore=function(){return this._store},t.prototype.initData=function(t,e,n){var i,r=this;if(t instanceof x.Ay&&(i=t),!i){var o=this.dimensions,a=(0,_.tP)(t)||c.isArrayLike(t)?new p.d1(t,o.length):t;i=new x.Ay;var s=S(o,(function(t){return{type:r._dimInfos[t].type,property:t}}));i.initData(a,s,n)}this._store=i,this._nameList=(e||[]).slice(),this._idList=[],this._nameRepeatCount={},this._doInit(0,i.count()),this._dimSummary=(0,f.l)(this,this._schema),this.userOutput=this._dimSummary.userOutput},t.prototype.appendData=function(t){var e=this._store.appendData(t);this._doInit(e[0],e[1])},t.prototype.appendValues=function(t,e){var n=this._store.appendValues(t,e.length),i=n.start,r=n.end,o=this._shouldMakeIdFromName();if(this._updateOrdinalMeta(),e)for(var a=i;a<r;a++){var s=a-i;this._nameList[a]=e[s],o&&h(this,a)}},t.prototype._updateOrdinalMeta=function(){for(var t=this._store,e=this.dimensions,n=0;n<e.length;n++){var i=this._dimInfos[e[n]];i.ordinalMeta&&t.collectOrdinalMeta(i.storeDimIndex,i.ordinalMeta)}},t.prototype._shouldMakeIdFromName=function(){var t=this._store.getProvider();return null==this._idDimIdx&&t.getSource().sourceFormat!==m.XO&&!t.fillStorage},t.prototype._doInit=function(t,e){if(!(t>=e)){var n=this._store.getProvider();this._updateOrdinalMeta();var r=this._nameList,o=this._idList;if(n.getSource().sourceFormat===m.mK&&!n.pure)for(var a=[],s=t;s<e;s++){var l=n.getItem(s,a);if(!this.hasItemOption&&(0,v.zu)(l)&&(this.hasItemOption=!0),l){var c=l.name;null==r[s]&&null!=c&&(r[s]=(0,v.vS)(c,null));var u=l.id;null==o[s]&&null!=u&&(o[s]=(0,v.vS)(u,null))}}if(this._shouldMakeIdFromName())for(s=t;s<e;s++)h(this,s);i(this)}},t.prototype.getApproximateExtent=function(t){return this._approximateExtent[t]||this._store.getDataExtent(this._getStoreDimIndex(t))},t.prototype.setApproximateExtent=function(t,e){e=this.getDimension(e),this._approximateExtent[e]=t.slice()},t.prototype.getCalculationInfo=function(t){return this._calculationInfo[t]},t.prototype.setCalculationInfo=function(t,e){w(t)?c.extend(this._calculationInfo,t):this._calculationInfo[t]=e},t.prototype.getName=function(t){var e=this.getRawIndex(t),n=this._nameList[e];return null==n&&null!=this._nameDimIdx&&(n=o(this,this._nameDimIdx,e)),null==n&&(n=""),n},t.prototype._getCategory=function(t,e){var n=this._store.get(t,e),i=this._store.getOrdinalMeta(t);return i?i.categories[n]:n},t.prototype.getId=function(t){return r(this,this.getRawIndex(t))},t.prototype.count=function(){return this._store.count()},t.prototype.get=function(t,e){var n=this._store,i=this._dimInfos[t];if(i)return n.get(i.storeDimIndex,e)},t.prototype.getByRawIndex=function(t,e){var n=this._store,i=this._dimInfos[t];if(i)return n.getByRawIndex(i.storeDimIndex,e)},t.prototype.getIndices=function(){return this._store.getIndices()},t.prototype.getDataExtent=function(t){return this._store.getDataExtent(this._getStoreDimIndex(t))},t.prototype.getSum=function(t){return this._store.getSum(this._getStoreDimIndex(t))},t.prototype.getMedian=function(t){return this._store.getMedian(this._getStoreDimIndex(t))},t.prototype.getValues=function(t,e){var n=this,i=this._store;return c.isArray(t)?i.getValues(S(t,(function(t){return n._getStoreDimIndex(t)})),e):i.getValues(t)},t.prototype.hasValue=function(t){for(var e=this._dimSummary.dataDimIndicesOnCoord,n=0,i=e.length;n<i;n++)if(isNaN(this._store.get(e[n],t)))return!1;return!0},t.prototype.indexOfName=function(t){for(var e=0,n=this._store.count();e<n;e++)if(this.getName(e)===t)return e;return-1},t.prototype.getRawIndex=function(t){return this._store.getRawIndex(t)},t.prototype.indexOfRawIndex=function(t){return this._store.indexOfRawIndex(t)},t.prototype.rawIndexOf=function(t,e){var n=(t&&this._invertedIndicesMap[t])[e];return null==n||isNaN(n)?-1:n},t.prototype.indicesOfNearest=function(t,e,n){return this._store.indicesOfNearest(this._getStoreDimIndex(t),e,n)},t.prototype.each=function(t,e,n){c.isFunction(t)&&(n=e,e=t,t=[]);var i=n||this,r=S(a(t),this._getStoreDimIndex,this);this._store.each(r,i?c.bind(e,i):e)},t.prototype.filterSelf=function(t,e,n){c.isFunction(t)&&(n=e,e=t,t=[]);var i=n||this,r=S(a(t),this._getStoreDimIndex,this);return this._store=this._store.filter(r,i?c.bind(e,i):e),this},t.prototype.selectRange=function(t){var e=this,n={},i=c.keys(t),r=[];return c.each(i,(function(i){var o=e._getStoreDimIndex(i);n[o]=t[i],r.push(o)})),this._store=this._store.selectRange(n),this},t.prototype.mapArray=function(t,e,n){c.isFunction(t)&&(n=e,e=t,t=[]),n=n||this;var i=[];return this.each(t,(function(){i.push(e&&e.apply(this,arguments))}),n),i},t.prototype.map=function(t,e,n,i){var r=n||i||this,o=S(a(t),this._getStoreDimIndex,this),s=l(this);return s._store=this._store.map(o,r?c.bind(e,r):e),s},t.prototype.modify=function(t,e,n,i){var r=n||i||this;var o=S(a(t),this._getStoreDimIndex,this);this._store.modify(o,r?c.bind(e,r):e)},t.prototype.downSample=function(t,e,n,i){var r=l(this);return r._store=this._store.downSample(this._getStoreDimIndex(t),e,n,i),r},t.prototype.lttbDownSample=function(t,e){var n=l(this);return n._store=this._store.lttbDownSample(this._getStoreDimIndex(t),e),n},t.prototype.getRawDataItem=function(t){return this._store.getRawDataItem(t)},t.prototype.getItemModel=function(t){var e=this.hostModel,n=this.getRawDataItem(t);return new u.A(n,e,e&&e.ecModel)},t.prototype.diff=function(t){var e=this;return new d.A(t?t.getStore().getIndices():[],this.getStore().getIndices(),(function(e){return r(t,e)}),(function(t){return r(e,t)}))},t.prototype.getVisual=function(t){var e=this._visual;return e&&e[t]},t.prototype.setVisual=function(t,e){this._visual=this._visual||{},w(t)?c.extend(this._visual,t):this._visual[t]=e},t.prototype.getItemVisual=function(t,e){var n=this._itemVisuals[t],i=n&&n[e];return null==i?this.getVisual(e):i},t.prototype.hasItemVisual=function(){return this._itemVisuals.length>0},t.prototype.ensureUniqueItemVisual=function(t,e){var n=this._itemVisuals,i=n[t];i||(i=n[t]={});var r=i[e];return null==r&&(r=this.getVisual(e),c.isArray(r)?r=r.slice():w(r)&&(r=c.extend({},r)),i[e]=r),r},t.prototype.setItemVisual=function(t,e,n){var i=this._itemVisuals[t]||{};this._itemVisuals[t]=i,w(e)?c.extend(i,e):i[e]=n},t.prototype.clearAllVisual=function(){this._visual={},this._itemVisuals=[]},t.prototype.setLayout=function(t,e){w(t)?c.extend(this._layout,t):this._layout[t]=e},t.prototype.getLayout=function(t){return this._layout[t]},t.prototype.getItemLayout=function(t){return this._itemLayouts[t]},t.prototype.setItemLayout=function(t,e,n){this._itemLayouts[t]=n?c.extend(this._itemLayouts[t]||{},e):e},t.prototype.clearItemLayouts=function(){this._itemLayouts.length=0},t.prototype.setItemGraphicEl=function(t,e){var n=this.hostModel&&this.hostModel.seriesIndex;(0,y.a)(n,this.dataType,t,e),this._graphicEls[t]=e},t.prototype.getItemGraphicEl=function(t){return this._graphicEls[t]},t.prototype.eachItemGraphicEl=function(t,e){c.each(this._graphicEls,(function(n,i){n&&t&&t.call(e,n,i)}))},t.prototype.cloneShallow=function(e){return e||(e=new t(this._schema?this._schema:S(this.dimensions,this._getDimInfo,this),this.hostModel)),s(e,this),e._store=this._store,e},t.prototype.wrapMethod=function(t,e){var n=this[t];c.isFunction(n)&&(this.__wrappedMethods=this.__wrappedMethods||[],this.__wrappedMethods.push(t),this[t]=function(){var t=n.apply(this,arguments);return e.apply(this,[t].concat(c.slice(arguments)))})},t.internalField=(i=function(t){var e=t._invertedIndicesMap;c.each(e,(function(n,i){var r=t._dimInfos[i],o=r.ordinalMeta,a=t._store;if(o){n=e[i]=new T(o.categories.length);for(var s=0;s<n.length;s++)n[s]=-1;for(s=0;s<a.count();s++)n[a.get(r.storeDimIndex,s)]=s}}))},o=function(t,e,n){return(0,v.vS)(t._getCategory(e,n),null)},r=function(t,e){var n=t._idList[e];return null==n&&null!=t._idDimIdx&&(n=o(t,t._idDimIdx,e)),null==n&&(n="e\0\0"+e),n},a=function(t){return c.isArray(t)||(t=null!=t?[t]:[]),t},l=function(e){var n=new t(e._schema?e._schema:S(e.dimensions,e._getDimInfo,e),e.hostModel);return s(n,e),n},s=function(t,e){c.each(M.concat(e.__wrappedMethods||[]),(function(n){e.hasOwnProperty(n)&&(t[n]=e[n])})),t.__wrappedMethods=e.__wrappedMethods,c.each(A,(function(n){t[n]=c.clone(e[n])})),t._calculationInfo=c.extend({},e._calculationInfo)},void(h=function(t,e){var n=t._nameList,i=t._idList,r=t._nameDimIdx,a=t._idDimIdx,s=n[e],l=i[e];if(null==s&&null!=r&&(n[e]=s=o(t,r,e)),null==l&&null!=a&&(i[e]=l=o(t,a,e)),null==l&&null!=s){var h=t._nameRepeatCount,c=h[s]=(h[s]||0)+1;l=s,c>1&&(l+="__ec__"+c),i[e]=l}})),t}()},5948:(t,e,n)=>{"use strict";n.d(e,{A:()=>r});var i=n(7845);const r=function(t){this.otherDims={},null!=t&&i.extend(this,t)}},3244:(t,e,n)=>{"use strict";n.d(e,{AF:()=>c,BE:()=>u,O0:()=>g,gV:()=>h,tP:()=>l,wZ:()=>d});var i=n(7845),r=n(3457),o=n(2577),a=n(6660),s=function(t){this.data=t.data||(t.sourceFormat===r.t1?{}:[]),this.sourceFormat=t.sourceFormat||r.vm,this.seriesLayoutBy=t.seriesLayoutBy||r.i_,this.startIndex=t.startIndex||0,this.dimensionsDetectedCount=t.dimensionsDetectedCount,this.metaRawOption=t.metaRawOption;var e=this.dimensionsDefine=t.dimensionsDefine;if(e)for(var n=0;n<e.length;n++){var i=e[n];null==i.type&&(0,a.PU)(this,n)===a.sc.Must&&(i.type="ordinal")}};function l(t){return t instanceof s}function h(t,e,n){n=n||d(t);var a=e.seriesLayoutBy,l=function(t,e,n,a,s){var l,h;if(!t)return{dimensionsDefine:p(s),startIndex:h,dimensionsDetectedCount:l};if(e===r.Km){var c=t;"auto"===a||null==a?f((function(t){null!=t&&"-"!==t&&((0,i.isString)(t)?null==h&&(h=1):h=0)}),n,c,10):h=(0,i.isNumber)(a)?a:a?1:0,s||1!==h||(s=[],f((function(t,e){s[e]=null!=t?t+"":""}),n,c,1/0)),l=s?s.length:n===r.oC?c.length:c[0]?c[0].length:null}else if(e===r.Wk)s||(s=function(t){var e,n=0;for(;n<t.length&&!(e=t[n++]););if(e)return(0,i.keys)(e)}(t));else if(e===r.t1)s||(s=[],(0,i.each)(t,(function(t,e){s.push(e)})));else if(e===r.mK){var u=(0,o.vj)(t[0]);l=(0,i.isArray)(u)&&u.length||1}else r.XO;return{startIndex:h,dimensionsDefine:p(s),dimensionsDetectedCount:l}}(t,n,a,e.sourceHeader,e.dimensions);return new s({data:t,sourceFormat:n,seriesLayoutBy:a,dimensionsDefine:l.dimensionsDefine,startIndex:l.startIndex,dimensionsDetectedCount:l.dimensionsDetectedCount,metaRawOption:(0,i.clone)(e)})}function c(t){return new s({data:t,sourceFormat:(0,i.isTypedArray)(t)?r.XO:r.mK})}function u(t){return new s({data:t.data,sourceFormat:t.sourceFormat,seriesLayoutBy:t.seriesLayoutBy,dimensionsDefine:(0,i.clone)(t.dimensionsDefine),startIndex:t.startIndex,dimensionsDetectedCount:t.dimensionsDetectedCount})}function d(t){var e=r.vm;if((0,i.isTypedArray)(t))e=r.XO;else if((0,i.isArray)(t)){0===t.length&&(e=r.Km);for(var n=0,o=t.length;n<o;n++){var a=t[n];if(null!=a){if((0,i.isArray)(a)||(0,i.isTypedArray)(a)){e=r.Km;break}if((0,i.isObject)(a)){e=r.Wk;break}}}}else if((0,i.isObject)(t))for(var s in t)if((0,i.hasOwn)(t,s)&&(0,i.isArrayLike)(t[s])){e=r.t1;break}return e}function p(t){if(t){var e=(0,i.createHashMap)();return(0,i.map)(t,(function(t,n){var r={name:(t=(0,i.isObject)(t)?t:{name:t}).name,displayName:t.displayName,type:t.type};if(null==r.name)return r;r.name+="",null==r.displayName&&(r.displayName=r.name);var o=e.get(r.name);return o?r.name+="-"+o.count++:e.set(r.name,{count:1}),r}))}}function f(t,e,n,i){if(e===r.oC)for(var o=0;o<n.length&&o<i;o++)t(n[o]?n[o][0]:null,o);else{var a=n[0]||[];for(o=0;o<a.length&&o<i;o++)t(a[o],o)}}function g(t){var e=t.sourceFormat;return e===r.Wk||e===r.t1}},6191:(t,e,n)=>{"use strict";n.d(e,{Tc:()=>l,eS:()=>d,fg:()=>h,io:()=>c,j_:()=>u});var i=n(7845),r=n(2577),o=n(3244),a=(0,r.$r)(),s={float:"f",int:"i",ordinal:"o",number:"n",time:"t"},l=function(){function t(t){this.dimensions=t.dimensions,this._dimOmitted=t.dimensionOmitted,this.source=t.source,this._fullDimCount=t.fullDimensionCount,this._updateDimOmitted(t.dimensionOmitted)}return t.prototype.isDimensionOmitted=function(){return this._dimOmitted},t.prototype._updateDimOmitted=function(t){this._dimOmitted=t,t&&(this._dimNameMap||(this._dimNameMap=u(this.source)))},t.prototype.getSourceDimensionIndex=function(t){return(0,i.retrieve2)(this._dimNameMap.get(t),-1)},t.prototype.getSourceDimension=function(t){var e=this.source.dimensionsDefine;if(e)return e[t]},t.prototype.makeStoreSchema=function(){for(var t=this._fullDimCount,e=(0,o.O0)(this.source),n=!d(t),i="",r=[],a=0,l=0;a<t;a++){var h=void 0,c=void 0,u=void 0,p=this.dimensions[l];if(p&&p.storeDimIndex===a)h=e?p.name:null,c=p.type,u=p.ordinalMeta,l++;else{var f=this.getSourceDimension(a);f&&(h=e?f.name:null,c=f.type)}r.push({property:h,type:c,ordinalMeta:u}),!e||null==h||p&&p.isCalculationCoord||(i+=n?h.replace(/\`/g,"`1").replace(/\$/g,"`2"):h),i+="$",i+=s[c]||"f",u&&(i+=u.uid),i+="$"}var g=this.source;return{dimensions:r,hash:[g.seriesLayoutBy,g.startIndex,i].join("$$")}},t.prototype.makeOutputDimensionNames=function(){for(var t=[],e=0,n=0;e<this._fullDimCount;e++){var i=void 0,r=this.dimensions[n];if(r&&r.storeDimIndex===e)r.isCalculationCoord||(i=r.name),n++;else{var o=this.getSourceDimension(e);o&&(i=o.name)}t.push(i)}return t},t.prototype.appendCalculationDimension=function(t){this.dimensions.push(t),t.isCalculationCoord=!0,this._fullDimCount++,this._updateDimOmitted(!0)},t}();function h(t){return t instanceof l}function c(t){for(var e=(0,i.createHashMap)(),n=0;n<(t||[]).length;n++){var r=t[n],o=(0,i.isObject)(r)?r.name:r;null!=o&&null==e.get(o)&&e.set(o,n)}return e}function u(t){var e=a(t);return e.dimNameMap||(e.dimNameMap=c(t.dimensionsDefine))}function d(t){return t>30}},7984:(t,e,n)=>{"use strict";n.d(e,{A:()=>d,M:()=>u});var i=n(3457),r=n(5948),o=n(7845),a=n(3244),s=n(8473),l=n(2577),h=n(6660),c=n(6191);function u(t,e){return d(t,e).dimensions}function d(t,e){(0,a.tP)(t)||(t=(0,a.AF)(t));var n=(e=e||{}).coordDimensions||[],u=e.dimensionsDefine||t.dimensionsDefine||[],d=(0,o.createHashMap)(),f=[],g=function(t,e,n,i){var r=Math.max(t.dimensionsDetectedCount||1,e.length,n.length,i||0);return(0,o.each)(e,(function(t){var e;(0,o.isObject)(t)&&(e=t.dimsDef)&&(r=Math.max(r,e.length))})),r}(t,n,u,e.dimensionsCount),m=e.canOmitUnusedDimensions&&(0,c.eS)(g),v=u===t.dimensionsDefine,y=v?(0,c.j_)(t):(0,c.io)(u),_=e.encodeDefine;!_&&e.encodeDefaulter&&(_=e.encodeDefaulter(t,g));for(var x=(0,o.createHashMap)(_),b=new s.A_(g),w=0;w<b.length;w++)b[w]=-1;function S(t){var e=b[t];if(e<0){var n=u[t],i=(0,o.isObject)(n)?n:{name:n},a=new r.A,s=i.name;null!=s&&null!=y.get(s)&&(a.name=a.displayName=s),null!=i.type&&(a.type=i.type),null!=i.displayName&&(a.displayName=i.displayName);var l=f.length;return b[t]=l,a.storeDimIndex=t,f.push(a),a}return f[e]}if(!m)for(w=0;w<g;w++)S(w);x.each((function(t,e){var n=(0,l.qB)(t).slice();if(1===n.length&&!(0,o.isString)(n[0])&&n[0]<0)x.set(e,!1);else{var i=x.set(e,[]);(0,o.each)(n,(function(t,n){var r=(0,o.isString)(t)?y.get(t):t;null!=r&&r<g&&(i[n]=r,M(S(r),e,n))}))}}));var T=0;function M(t,e,n){null!=i.Pe.get(e)?t.otherDims[e]=n:(t.coordDim=e,t.coordDimIndex=n,d.set(e,!0))}(0,o.each)(n,(function(t){var e,n,i,r;if((0,o.isString)(t))e=t,r={};else{e=(r=t).name;var a=r.ordinalMeta;r.ordinalMeta=null,(r=(0,o.extend)({},r)).ordinalMeta=a,n=r.dimsDef,i=r.otherDims,r.name=r.coordDim=r.coordDimIndex=r.dimsDef=r.otherDims=null}var s=x.get(e);if(!1!==s){if(!(s=(0,l.qB)(s)).length)for(var h=0;h<(n&&n.length||1);h++){for(;T<g&&null!=S(T).coordDim;)T++;T<g&&s.push(T++)}(0,o.each)(s,(function(t,a){var s=S(t);if(v&&null!=r.type&&(s.type=r.type),M((0,o.defaults)(s,r),e,a),null==s.name&&n){var l=n[a];!(0,o.isObject)(l)&&(l={name:l}),s.name=s.displayName=l.name,s.defaultTooltip=l.defaultTooltip}i&&(0,o.defaults)(s.otherDims,i)}))}}));var A=e.generateCoord,C=e.generateCoordCount,I=null!=C;C=A?C||1:0;var E=A||"value";function k(t){null==t.name&&(t.name=t.coordDim)}if(m)(0,o.each)(f,(function(t){k(t)})),f.sort((function(t,e){return t.storeDimIndex-e.storeDimIndex}));else for(var L=0;L<g;L++){var D=S(L);null==D.coordDim&&(D.coordDim=p(E,d,I),D.coordDimIndex=0,(!A||C<=0)&&(D.isExtraCoord=!0),C--),k(D),null!=D.type||(0,h.PU)(t,L)!==h.sc.Must&&(!D.isExtraCoord||null==D.otherDims.itemName&&null==D.otherDims.seriesName)||(D.type="ordinal")}return function(t){for(var e=(0,o.createHashMap)(),n=0;n<t.length;n++){var i=t[n],r=i.name,a=e.get(r)||0;a>0&&(i.name=r+(a-1)),a++,e.set(r,a)}}(f),new c.Tc({source:t,dimensions:f,fullDimensionCount:g,dimensionOmitted:m})}function p(t,e,n){if(n||e.hasKey(t)){for(var i=0;e.hasKey(t+i);)i++;t+=i}return e.set(t,!0),t}},6112:(t,e,n)=>{"use strict";n.d(e,{Kd:()=>y,QE:()=>S,d1:()=>d,sC:()=>g,uQ:()=>b});var i,r,o,a,s,l=n(7845),h=n(2577),c=n(3244),u=n(3457),d=function(){function t(t,e){var n=(0,c.tP)(t)?t:(0,c.AF)(t);this._source=n;var i=this._data=n.data;n.sourceFormat===u.XO&&(this._offset=0,this._dimSize=e,this._data=i),s(this,i,n)}var e;return t.prototype.getSource=function(){return this._source},t.prototype.count=function(){return 0},t.prototype.getItem=function(t,e){},t.prototype.appendData=function(t){},t.prototype.clean=function(){},t.protoInitialize=((e=t.prototype).pure=!1,void(e.persistent=!0)),t.internalField=function(){var t;s=function(t,r,o){var s=o.sourceFormat,h=o.seriesLayoutBy,c=o.startIndex,d=o.dimensionsDefine,p=a[w(s,h)];if((0,l.extend)(t,p),s===u.XO)t.getItem=e,t.count=i,t.fillStorage=n;else{var f=g(s,h);t.getItem=(0,l.bind)(f,null,r,c,d);var m=y(s,h);t.count=(0,l.bind)(m,null,r,c,d)}};var e=function(t,e){t-=this._offset,e=e||[];for(var n=this._data,i=this._dimSize,r=i*t,o=0;o<i;o++)e[o]=n[r+o];return e},n=function(t,e,n,i){for(var r=this._data,o=this._dimSize,a=0;a<o;a++){for(var s=i[a],l=null==s[0]?1/0:s[0],h=null==s[1]?-1/0:s[1],c=e-t,u=n[a],d=0;d<c;d++){var p=r[d*o+a];u[t+d]=p,p<l&&(l=p),p>h&&(h=p)}s[0]=l,s[1]=h}},i=function(){return this._data?this._data.length/this._dimSize:0};function r(t){for(var e=0;e<t.length;e++)this._data.push(t[e])}(t={})[u.Km+"_"+u.i_]={pure:!0,appendData:r},t[u.Km+"_"+u.oC]={pure:!0,appendData:function(){throw new Error('Do not support appendData when set seriesLayoutBy: "row".')}},t[u.Wk]={pure:!0,appendData:r},t[u.t1]={pure:!0,appendData:function(t){var e=this._data;(0,l.each)(t,(function(t,n){for(var i=e[n]||(e[n]=[]),r=0;r<(t||[]).length;r++)i.push(t[r])}))}},t[u.mK]={appendData:r},t[u.XO]={persistent:!1,pure:!0,appendData:function(t){this._data=t},clean:function(){this._offset+=this.count(),this._data=null}},a=t}(),t}(),p=function(t,e,n,i){return t[i]},f=((i={})[u.Km+"_"+u.i_]=function(t,e,n,i){return t[i+e]},i[u.Km+"_"+u.oC]=function(t,e,n,i,r){i+=e;for(var o=r||[],a=t,s=0;s<a.length;s++){var l=a[s];o[s]=l?l[i]:null}return o},i[u.Wk]=p,i[u.t1]=function(t,e,n,i,r){for(var o=r||[],a=0;a<n.length;a++){0;var s=t[n[a].name];o[a]=s?s[i]:null}return o},i[u.mK]=p,i);function g(t,e){return f[w(t,e)]}var m=function(t,e,n){return t.length},v=((r={})[u.Km+"_"+u.i_]=function(t,e,n){return Math.max(0,t.length-e)},r[u.Km+"_"+u.oC]=function(t,e,n){var i=t[0];return i?Math.max(0,i.length-e):0},r[u.Wk]=m,r[u.t1]=function(t,e,n){var i=t[n[0].name];return i?i.length:0},r[u.mK]=m,r);function y(t,e){return v[w(t,e)]}var _=function(t,e,n){return t[e]},x=((o={})[u.Km]=_,o[u.Wk]=function(t,e,n){return t[n]},o[u.t1]=_,o[u.mK]=function(t,e,n){var i=(0,h.vj)(t);return i instanceof Array?i[e]:i},o[u.XO]=_,o);function b(t){return x[t]}function w(t,e){return t===u.Km?t+"_"+e:t}function S(t,e,n){if(t){var i=t.getRawDataItem(e);if(null!=i){var r=t.getStore(),o=r.getSource().sourceFormat;if(null!=n){var a=t.getDimensionIndex(n),s=r.getDimensionProperty(a);return b(o)(i,a,s)}var l=i;return o===u.mK&&(l=(0,h.vj)(i)),l}}}},933:(t,e,n)=>{"use strict";n.d(e,{iJ:()=>o,me:()=>s,sJ:()=>a});var i=n(7845),r=n(6191);function o(t,e,n){var o,a,s,l=(n=n||{}).byIndex,h=n.stackedCoordDimension;!function(t){return!(0,r.fg)(t.schema)}(e)?(a=e.schema,o=a.dimensions,s=e.store):o=e;var c,u,d,p,f=!(!t||!t.get("stack"));if((0,i.each)(o,(function(t,e){(0,i.isString)(t)&&(o[e]=t={name:t}),f&&!t.isExtraCoord&&(l||c||!t.ordinalMeta||(c=t),u||"ordinal"===t.type||"time"===t.type||h&&h!==t.coordDim||(u=t))})),!u||l||c||(l=!0),u){d="__\0ecstackresult_"+t.id,p="__\0ecstackedover_"+t.id,c&&(c.createInvertedIndices=!0);var g=u.coordDim,m=u.type,v=0;(0,i.each)(o,(function(t){t.coordDim===g&&v++}));var y={name:d,coordDim:g,coordDimIndex:v,type:m,isExtraCoord:!0,isCalculationCoord:!0,storeDimIndex:o.length},_={name:p,coordDim:p,coordDimIndex:v+1,type:m,isExtraCoord:!0,isCalculationCoord:!0,storeDimIndex:o.length+1};a?(s&&(y.storeDimIndex=s.ensureCalculationDimension(p,m),_.storeDimIndex=s.ensureCalculationDimension(d,m)),a.appendCalculationDimension(y),a.appendCalculationDimension(_)):(o.push(y),o.push(_))}return{stackedDimension:u&&u.name,stackedByDimension:c&&c.name,isStackedByIndex:l,stackedOverDimension:p,stackResultDimension:d}}function a(t,e){return!!e&&e===t.getCalculationInfo("stackedDimension")}function s(t,e){return a(t,e)?t.getCalculationInfo("stackResultDimension"):e}},4224:(t,e,n)=>{"use strict";n.d(e,{Fl:()=>u,Pn:()=>a,zC:()=>l,zs:()=>p});var i=n(8883),r=n(7845),o=n(766);function a(t,e){var n=e&&e.type;return"ordinal"===n?t:("time"!==n||(0,r.isNumber)(t)||null==t||"-"===t||(t=+(0,i._U)(t)),null==t||""===t?NaN:Number(t))}var s=(0,r.createHashMap)({number:function(t){return parseFloat(t)},time:function(t){return+(0,i._U)(t)},trim:function(t){return(0,r.isString)(t)?(0,r.trim)(t):t}});function l(t){return s.get(t)}var h={lt:function(t,e){return t<e},lte:function(t,e){return t<=e},gt:function(t,e){return t>e},gte:function(t,e){return t>=e}},c=function(){function t(t,e){if(!(0,r.isNumber)(e)){0,(0,o.$8)("")}this._opFn=h[t],this._rvalFloat=(0,i.Sm)(e)}return t.prototype.evaluate=function(t){return(0,r.isNumber)(t)?this._opFn(t,this._rvalFloat):this._opFn((0,i.Sm)(t),this._rvalFloat)},t}(),u=function(){function t(t,e){var n="desc"===t;this._resultLT=n?1:-1,null==e&&(e=n?"min":"max"),this._incomparable="min"===e?-1/0:1/0}return t.prototype.evaluate=function(t,e){var n=(0,r.isNumber)(t)?t:(0,i.Sm)(t),o=(0,r.isNumber)(e)?e:(0,i.Sm)(e),a=isNaN(n),s=isNaN(o);if(a&&(n=this._incomparable),s&&(o=this._incomparable),a&&s){var l=(0,r.isString)(t),h=(0,r.isString)(e);l&&(n=h?t:0),h&&(o=l?e:0)}return n<o?this._resultLT:n>o?-this._resultLT:0},t}(),d=function(){function t(t,e){this._rval=e,this._isEQ=t,this._rvalTypeof=typeof e,this._rvalFloat=(0,i.Sm)(e)}return t.prototype.evaluate=function(t){var e=t===this._rval;if(!e){var n=typeof t;n===this._rvalTypeof||"number"!==n&&"number"!==this._rvalTypeof||(e=(0,i.Sm)(t)===this._rvalFloat)}return this._isEQ?e:!e},t}();function p(t,e){return"eq"===t||"ne"===t?new d("eq"===t,e):(0,r.hasOwn)(h,t)?new c(t,e):null}},525:(t,e,n)=>{"use strict";n.d(e,{B:()=>l,l:()=>a});var i=n(7845),r=n(3457),o=function(){function t(t,e){this._encode=t,this._schema=e}return t.prototype.get=function(){return{fullDimensions:this._getFullDimensionNames(),encode:this._encode}},t.prototype._getFullDimensionNames=function(){return this._cachedDimNames||(this._cachedDimNames=this._schema?this._schema.makeOutputDimensionNames():[]),this._cachedDimNames},t}();function a(t,e){var n={},a=n.encode={},l=(0,i.createHashMap)(),h=[],c=[],u={};(0,i.each)(t.dimensions,(function(e){var n,i=t.getDimensionInfo(e),o=i.coordDim;if(o){0;var d=i.coordDimIndex;s(a,o)[d]=e,i.isExtraCoord||(l.set(o,1),"ordinal"!==(n=i.type)&&"time"!==n&&(h[0]=e),s(u,o)[d]=t.getDimensionIndex(i.name)),i.defaultTooltip&&c.push(e)}r.Pe.each((function(t,e){var n=s(a,e),r=i.otherDims[e];null!=r&&!1!==r&&(n[r]=i.name)}))}));var d=[],p={};l.each((function(t,e){var n=a[e];p[e]=n[0],d=d.concat(n)})),n.dataDimsOnCoord=d,n.dataDimIndicesOnCoord=(0,i.map)(d,(function(e){return t.getDimensionInfo(e).storeDimIndex})),n.encodeFirstDimNotExtra=p;var f=a.label;f&&f.length&&(h=f.slice());var g=a.tooltip;return g&&g.length?c=g.slice():c.length||(c=h.slice()),a.defaultedLabel=h,a.defaultedTooltip=c,n.userOutput=new o(u,e),n}function s(t,e){return t.hasOwnProperty(e)||(t[e]=[]),t[e]}function l(t){return"category"===t?"ordinal":"time"===t?"time":"float"}},8052:(t,e,n)=>{"use strict";n.d(e,{A:()=>d});var i=n(7845),r=(0,n(2577).$r)();function o(t,e){if(r(o=this).mainData===o){var n=(0,i.extend)({},r(this).datas);n[this.dataType]=e,c(e,n,t)}else u(e,this.dataType,r(this).mainData,t);var o;return e}function a(t,e){return t.struct&&t.struct.update(),e}function s(t,e){return(0,i.each)(r(e).datas,(function(n,i){n!==e&&u(n.cloneShallow(),i,e,t)})),e}function l(t){var e=r(this).mainData;return null==t||null==e?e:r(e).datas[t]}function h(){var t=r(this).mainData;return null==t?[{data:t}]:(0,i.map)((0,i.keys)(r(t).datas),(function(e){return{type:e,data:r(t).datas[e]}}))}function c(t,e,n){r(t).datas={},(0,i.each)(e,(function(e,i){u(e,i,t,n)}))}function u(t,e,n,i){r(n).datas[e]=t,r(t).mainData=n,t.dataType=e,i.struct&&(t[i.structAttr]=i.struct,i.struct[i.datasAttr[e]]=t),t.getLinkedData=l,t.getLinkedDataAll=h}const d=function(t){var e=t.mainData,n=t.datas;n||(n={main:e},t.datasAttr={main:"data"}),t.datas=t.mainData=null,c(e,n,t),(0,i.each)(n,(function(n){(0,i.each)(e.TRANSFERABLE_METHODS,(function(e){n.wrapMethod(e,(0,i.curry)(o,t))}))})),e.wrapMethod("cloneShallow",(0,i.curry)(s,t)),(0,i.each)(e.CHANGABLE_METHODS,(function(n){e.wrapMethod(n,(0,i.curry)(a,t))})),(0,i.assert)(n[e.dataType]===e)}},6660:(t,e,n)=>{"use strict";n.d(e,{G9:()=>u,Gt:()=>d,OC:()=>h,PU:()=>p,ln:()=>c,ps:()=>l,sc:()=>a});var i=n(2577),r=n(7845),o=n(3457),a={Must:1,Might:2,Not:3},s=(0,i.$r)();function l(t){s(t).datasetMap=(0,r.createHashMap)()}function h(t,e,n){var i={},o=u(e);if(!o||!t)return i;var a,l,h=[],c=[],d=e.ecModel,p=s(d).datasetMap,f=o.uid+"_"+n.seriesLayoutBy;t=t.slice(),(0,r.each)(t,(function(e,n){var o=(0,r.isObject)(e)?e:t[n]={name:e};"ordinal"===o.type&&null==a&&(a=n,l=v(o)),i[o.name]=[]}));var g=p.get(f)||p.set(f,{categoryWayDim:l,valueWayDim:0});function m(t,e,n){for(var i=0;i<n;i++)t.push(e+i)}function v(t){var e=t.dimsDef;return e?e.length:1}return(0,r.each)(t,(function(t,e){var n=t.name,r=v(t);if(null==a){var o=g.valueWayDim;m(i[n],o,r),m(c,o,r),g.valueWayDim+=r}else if(a===e)m(i[n],0,r),m(h,0,r);else{o=g.categoryWayDim;m(i[n],o,r),m(c,o,r),g.categoryWayDim+=r}})),h.length&&(i.itemName=h),c.length&&(i.seriesName=c),i}function c(t,e,n){var i={};if(!u(t))return i;var s,l=e.sourceFormat,h=e.dimensionsDefine;l!==o.Wk&&l!==o.t1||(0,r.each)(h,(function(t,e){"name"===((0,r.isObject)(t)?t.name:t)&&(s=e)}));var c=function(){for(var t={},i={},r=[],o=0,c=Math.min(5,n);o<c;o++){var u=f(e.data,l,e.seriesLayoutBy,h,e.startIndex,o);r.push(u);var d=u===a.Not;if(d&&null==t.v&&o!==s&&(t.v=o),(null==t.n||t.n===t.v||!d&&r[t.n]===a.Not)&&(t.n=o),p(t)&&r[t.n]!==a.Not)return t;d||(u===a.Might&&null==i.v&&o!==s&&(i.v=o),null!=i.n&&i.n!==i.v||(i.n=o))}function p(t){return null!=t.v&&null!=t.n}return p(t)?t:p(i)?i:null}();if(c){i.value=[c.v];var d=null!=s?s:c.n;i.itemName=[d],i.seriesName=[d]}return i}function u(t){if(!t.get("data",!0))return(0,i.JO)(t.ecModel,"dataset",{index:t.get("datasetIndex",!0),id:t.get("datasetId",!0)},i.US).models[0]}function d(t){return t.get("transform",!0)||t.get("fromTransformResult",!0)?(0,i.JO)(t.ecModel,"dataset",{index:t.get("fromDatasetIndex",!0),id:t.get("fromDatasetId",!0)},i.US).models:[]}function p(t,e){return f(t.data,t.sourceFormat,t.seriesLayoutBy,t.dimensionsDefine,t.startIndex,e)}function f(t,e,n,s,l,h){var c,u,d;if((0,r.isTypedArray)(t))return a.Not;if(s){var p=s[h];(0,r.isObject)(p)?(u=p.name,d=p.type):(0,r.isString)(p)&&(u=p)}if(null!=d)return"ordinal"===d?a.Must:a.Not;if(e===o.Km){var f=t;if(n===o.oC){for(var g=f[h],m=0;m<(g||[]).length&&m<5;m++)if(null!=(c=S(g[l+m])))return c}else for(m=0;m<f.length&&m<5;m++){var v=f[l+m];if(v&&null!=(c=S(v[h])))return c}}else if(e===o.Wk){var y=t;if(!u)return a.Not;for(m=0;m<y.length&&m<5;m++){if((b=y[m])&&null!=(c=S(b[u])))return c}}else if(e===o.t1){var _=t;if(!u)return a.Not;if(!(g=_[u])||(0,r.isTypedArray)(g))return a.Not;for(m=0;m<g.length&&m<5;m++)if(null!=(c=S(g[m])))return c}else if(e===o.mK){var x=t;for(m=0;m<x.length&&m<5;m++){var b=x[m],w=(0,i.vj)(b);if(!(0,r.isArray)(w))return a.Not;if(null!=(c=S(w[h])))return c}}function S(t){var e=(0,r.isString)(t);return null!=t&&Number.isFinite(Number(t))&&""!==t?e?a.Might:a.Not:e&&"-"!==t?a.Must:void 0}return a.Not}},4453:(t,e,n)=>{"use strict";n.d(e,{A:()=>u,R:()=>c});var i=n(7845),r=n(3244),o=n(3457),a=n(6660),s=n(7617),l=n(8473),h=n(6112),c=function(){function t(t){this._sourceList=[],this._storeList=[],this._upstreamSignList=[],this._versionSignBase=0,this._dirty=!0,this._sourceHost=t}return t.prototype.dirty=function(){this._setLocalSource([],[]),this._storeList=[],this._dirty=!0},t.prototype._setLocalSource=function(t,e){this._sourceList=t,this._upstreamSignList=e,this._versionSignBase++,this._versionSignBase>9e10&&(this._versionSignBase=0)},t.prototype._getVersionSign=function(){return this._sourceHost.uid+"_"+this._versionSignBase},t.prototype.prepareSource=function(){this._isDirty()&&(this._createSource(),this._dirty=!1)},t.prototype._createSource=function(){this._setLocalSource([],[]);var t,e,n=this._sourceHost,a=this._getUpstreamSourceManagers(),s=!!a.length;if(d(n)){var l=n,h=void 0,c=void 0,u=void 0;if(s){var p=a[0];p.prepareSource(),h=(u=p.getSource()).data,c=u.sourceFormat,e=[p._getVersionSign()]}else h=l.get("data",!0),c=(0,i.isTypedArray)(h)?o.XO:o.mK,e=[];var f=this._getSourceMetaRawOption()||{},g=u&&u.metaRawOption||{},m=(0,i.retrieve2)(f.seriesLayoutBy,g.seriesLayoutBy)||null,v=(0,i.retrieve2)(f.sourceHeader,g.sourceHeader),y=(0,i.retrieve2)(f.dimensions,g.dimensions);t=m!==g.seriesLayoutBy||!!v!=!!g.sourceHeader||y?[(0,r.gV)(h,{seriesLayoutBy:m,sourceHeader:v,dimensions:y},c)]:[]}else{var _=n;if(s){var x=this._applyTransform(a);t=x.sourceList,e=x.upstreamSignList}else{var b=_.get("source",!0);t=[(0,r.gV)(b,this._getSourceMetaRawOption(),null)],e=[]}}this._setLocalSource(t,e)},t.prototype._applyTransform=function(t){var e,n=this._sourceHost,o=n.get("transform",!0),a=n.get("fromTransformResult",!0);if(null!=a){1!==t.length&&p("")}var l=[],h=[];return(0,i.each)(t,(function(t){t.prepareSource();var e=t.getSource(a||0);null==a||e||p(""),l.push(e),h.push(t._getVersionSign())})),o?e=(0,s.py)(o,l,{datasetIndex:n.componentIndex}):null!=a&&(e=[(0,r.BE)(l[0])]),{sourceList:e,upstreamSignList:h}},t.prototype._isDirty=function(){if(this._dirty)return!0;for(var t=this._getUpstreamSourceManagers(),e=0;e<t.length;e++){var n=t[e];if(n._isDirty()||this._upstreamSignList[e]!==n._getVersionSign())return!0}},t.prototype.getSource=function(t){t=t||0;var e=this._sourceList[t];if(!e){var n=this._getUpstreamSourceManagers();return n[0]&&n[0].getSource(t)}return e},t.prototype.getSharedDataStore=function(t){var e=t.makeStoreSchema();return this._innerGetDataStore(e.dimensions,t.source,e.hash)},t.prototype._innerGetDataStore=function(t,e,n){var i=this._storeList,r=i[0];r||(r=i[0]={});var o=r[n];if(!o){var a=this._getUpstreamSourceManagers()[0];d(this._sourceHost)&&a?o=a._innerGetDataStore(t,e,n):(o=new l.Ay).initData(new h.d1(e,t.length),t),r[n]=o}return o},t.prototype._getUpstreamSourceManagers=function(){var t=this._sourceHost;if(d(t)){var e=(0,a.G9)(t);return e?[e.getSourceManager()]:[]}return(0,i.map)((0,a.Gt)(t),(function(t){return t.getSourceManager()}))},t.prototype._getSourceMetaRawOption=function(){var t,e,n,i=this._sourceHost;if(d(i))t=i.get("seriesLayoutBy",!0),e=i.get("sourceHeader",!0),n=i.get("dimensions",!0);else if(!this._getUpstreamSourceManagers().length){var r=i;t=r.get("seriesLayoutBy",!0),e=r.get("sourceHeader",!0),n=r.get("dimensions",!0)}return{seriesLayoutBy:t,sourceHeader:e,dimensions:n}},t}();function u(t){t.option.transform&&(0,i.setAsPrimitive)(t.option.transform)}function d(t){return"series"===t.mainType}function p(t){throw new Error(t)}},7617:(t,e,n)=>{"use strict";n.d(e,{py:()=>v,v5:()=>m});var i=n(3457),r=n(2577),o=n(7845),a=n(6112),s=n(4224),l=n(766),h=n(3244),c=function(){function t(){}return t.prototype.getRawData=function(){throw new Error("not supported")},t.prototype.getRawDataItem=function(t){throw new Error("not supported")},t.prototype.cloneRawData=function(){},t.prototype.getDimensionInfo=function(t){},t.prototype.cloneAllDimensionInfo=function(){},t.prototype.count=function(){},t.prototype.retrieveValue=function(t,e){},t.prototype.retrieveValueFromItem=function(t,e){},t.prototype.convertValue=function(t,e){return(0,s.Pn)(t,e)},t}();function u(t){if(!_(t.sourceFormat)){0,(0,l.$8)("")}return t.data}function d(t){var e=t.sourceFormat,n=t.data;if(!_(e)){0,(0,l.$8)("")}if(e===i.Km){for(var r=[],a=0,s=n.length;a<s;a++)r.push(n[a].slice());return r}if(e===i.Wk){for(r=[],a=0,s=n.length;a<s;a++)r.push((0,o.extend)({},n[a]));return r}}function p(t,e,n){if(null!=n)return(0,o.isNumber)(n)||!isNaN(n)&&!(0,o.hasOwn)(e,n)?t[n]:(0,o.hasOwn)(e,n)?e[n]:void 0}function f(t){return(0,o.clone)(t)}var g=(0,o.createHashMap)();function m(t){var e=(t=(0,o.clone)(t)).type;e||(0,l.$8)("");var n=e.split(":");2!==n.length&&(0,l.$8)("");var i=!1;"echarts"===n[0]&&(e=n[1],i=!0),t.__isBuiltIn=i,g.set(e,t)}function v(t,e,n){var i=(0,r.qB)(t),o=i.length;o||(0,l.$8)("");for(var a=0,s=o;a<s;a++){e=y(i[a],e,n,1===o?null:a),a!==s-1&&(e.length=Math.max(e.length,1))}return e}function y(t,e,n,s){e.length||(0,l.$8)(""),(0,o.isObject)(t)||(0,l.$8)("");var m=t.type,v=g.get(m);v||(0,l.$8)("");var y=(0,o.map)(e,(function(t){return function(t,e){var n=new c,r=t.data,s=n.sourceFormat=t.sourceFormat,h=t.startIndex;t.seriesLayoutBy!==i.i_&&(0,l.$8)("");var g=[],m={},v=t.dimensionsDefine;if(v)(0,o.each)(v,(function(t,e){var n=t.name,i={index:e,name:n,displayName:t.displayName};g.push(i),null!=n&&((0,o.hasOwn)(m,n)&&(0,l.$8)(""),m[n]=i)}));else for(var y=0;y<t.dimensionsDetectedCount;y++)g.push({index:y});var _=(0,a.sC)(s,i.i_);e.__isBuiltIn&&(n.getRawDataItem=function(t){return _(r,h,g,t)},n.getRawData=(0,o.bind)(u,null,t)),n.cloneRawData=(0,o.bind)(d,null,t);var x=(0,a.Kd)(s,i.i_);n.count=(0,o.bind)(x,null,r,h,g);var b=(0,a.uQ)(s);n.retrieveValue=function(t,e){var n=_(r,h,g,t);return w(n,e)};var w=n.retrieveValueFromItem=function(t,e){if(null!=t){var n=g[e];return n?b(t,e,n.name):void 0}};return n.getDimensionInfo=(0,o.bind)(p,null,g,m),n.cloneAllDimensionInfo=(0,o.bind)(f,null,g),n}(t,v)})),x=(0,r.qB)(v.transform({upstream:y[0],upstreamList:y,config:(0,o.clone)(t.config)}));return(0,o.map)(x,(function(t,n){var r;(0,o.isObject)(t)||(0,l.$8)(""),t.data||(0,l.$8)(""),_((0,h.wZ)(t.data))||(0,l.$8)("");var a=e[0];if(a&&0===n&&!t.dimensions){var s=a.startIndex;s&&(t.data=a.data.slice(0,s).concat(t.data)),r={seriesLayoutBy:i.i_,sourceHeader:s,dimensions:a.metaRawOption.dimensions}}else r={seriesLayoutBy:i.i_,sourceHeader:0,dimensions:t.dimensions};return(0,h.gV)(t.data,r,null)}))}function _(t){return t===i.Km||t===i.Wk}},889:(t,e,n)=>{"use strict";n.d(e,{_0:()=>pt.A,OZ:()=>p.A,jT:()=>c.A,bR:()=>u.A,B8:()=>f.A,Kx:()=>T.A,FQ:()=>h.FQ,rP:()=>d.A,yW:()=>_,Ng:()=>h.Ng,p5:()=>h.p5,El:()=>h.El,zm:()=>h.zm,Zf:()=>h.Zf,AS:()=>h.AS,_K:()=>dt.A,yX:()=>yt,rt:()=>gt,NO:()=>mt,NA:()=>vt,GP:()=>s,Bo:()=>h.Bo,FP:()=>h.FP,aQ:()=>h.aQ,ZB:()=>h.ZB,fA:()=>a,dw:()=>i,Ts:()=>h.Ts,UU:()=>ft.Xi,UP:()=>m,ai:()=>r,l3:()=>z.A,zI:()=>z.A,OH:()=>h.OH,pX:()=>h.pX,Oh:()=>h.Oh,Ej:()=>h.Ej,E:()=>h.E,mz:()=>h.mz,cf:()=>h.cf,tb:()=>h.tb,lP:()=>h.lP,qg:()=>h.qg,bf:()=>h.bf,iY:()=>h.iY,xV:()=>h.xV,AF:()=>h.AF,vV:()=>h.vV,Gs:()=>B.Gs,nF:()=>x.nF,kB:()=>o,Yx:()=>F.Y,ZS:()=>l,i1:()=>v,rE:()=>h.rE,F_:()=>y,nd:()=>g});var i={};n.r(i),n.d(i,{createDimensions:()=>E.M,createList:()=>D,createScale:()=>R,createSymbol:()=>k.v5,createTextStyle:()=>N,dataStack:()=>P,enableHoverEmphasis:()=>L.iJ,getECData:()=>C.z,getLayoutRect:()=>M.dV,mixinAxisModelCommonMethods:()=>O});var r={};n.r(r),n.d(r,{MAX_SAFE_INTEGER:()=>G.Is,asc:()=>G.Y6,getPercentWithPrecision:()=>G.wp,getPixelPrecision:()=>G.hb,getPrecision:()=>G.XV,getPrecisionSafe:()=>G.y6,isNumeric:()=>G.kf,isRadianAroundZero:()=>G.dh,linearMap:()=>G.Cb,nice:()=>G.Cm,numericToNumber:()=>G.Sm,parseDate:()=>G._U,quantile:()=>G.YV,quantity:()=>G.au,quantityExponent:()=>G.NX,reformIntervals:()=>G.sL,remRadian:()=>G._7,round:()=>G.LI});var o={};n.r(o),n.d(o,{format:()=>V.GP,parse:()=>G._U});var a={};n.r(a),n.d(a,{Arc:()=>nt.A,BezierCurve:()=>et.A,BoundingRect:()=>st.A,Circle:()=>X.A,CompoundPath:()=>rt.A,Ellipse:()=>Y.A,Group:()=>W.A,Image:()=>U.Ay,IncrementalDisplayable:()=>it.A,Line:()=>tt.A,LinearGradient:()=>ot.A,Polygon:()=>K.A,Polyline:()=>J.A,RadialGradient:()=>at.A,Rect:()=>Q.A,Ring:()=>$.A,Sector:()=>Z.A,Text:()=>q.Ay,clipPointsByRect:()=>j.clipPointsByRect,clipRectByRect:()=>j.clipRectByRect,createIcon:()=>j.createIcon,extendPath:()=>j.extendPath,extendShape:()=>j.extendShape,getShapeClass:()=>j.getShapeClass,getTransform:()=>j.getTransform,initProps:()=>H.LW,makeImage:()=>j.makeImage,makePath:()=>j.makePath,mergePath:()=>j.mergePath,registerShape:()=>j.registerShape,resizePath:()=>j.resizePath,updateProps:()=>H.oi});var s={};n.r(s),n.d(s,{addCommas:()=>lt.ob,capitalFirst:()=>lt.x5,encodeHTML:()=>ht.Me,formatTime:()=>lt.fU,formatTpl:()=>lt.YK,getTextRect:()=>ut,getTooltipMarker:()=>lt.qg,normalizeCssArray:()=>lt.QX,toCamelCase:()=>lt.Cb,truncateText:()=>ct.EJ});var l={};n.r(l),n.d(l,{bind:()=>y.bind,clone:()=>y.clone,curry:()=>y.curry,defaults:()=>y.defaults,each:()=>y.each,extend:()=>y.extend,filter:()=>y.filter,indexOf:()=>y.indexOf,inherits:()=>y.inherits,isArray:()=>y.isArray,isFunction:()=>y.isFunction,isObject:()=>y.isObject,isString:()=>y.isString,map:()=>y.map,merge:()=>y.merge,reduce:()=>y.reduce});var h=n(3352),c=n(9078),u=n(5370),d=n(1996),p=n(6145),f=n(919),g=n(2563),m=n(3968),v=n(4070),y=n(7845),_=n(7219),x=n(3490),b=n(1577),w=n(5067),S=n(5357),T=n(6217),M=n(5872),A=n(933),C=n(6195),I=n(6547),E=n(7984),k=n(4926),L=n(1632);function D(t){return(0,b.A)(null,t)}var P={isDimensionStacked:A.sJ,enableDataStack:A.iJ,getStackedDimension:A.me};function R(t,e){var n=e;e instanceof T.A||(n=new T.A(e));var i=w.f$(n);return i.setExtent(t[0],t[1]),w.af(i,n),i}function O(t){y.mixin(t,S.L)}function N(t,e){return e=e||{},(0,I.VB)(t,null,null,"normal"!==e.state)}var F=n(585),B=n(9142),z=n(2241),G=n(8883),V=n(383),j=n(6004),H=n(5203),W=n(8829),U=n(5975),q=n(1251),X=n(1262),Y=n(1478),Z=n(7532),$=n(9804),K=n(4942),J=n(1106),Q=n(7551),tt=n(5840),et=n(8526),nt=n(4924),it=n(5238),rt=n(7298),ot=n(7789),at=n(6575),st=n(5383),lt=n(5065),ht=n(4178),ct=n(8559);function ut(t,e,n,i,r,o,a,s){return new q.Ay({style:{text:t,font:e,align:n,verticalAlign:i,padding:r,rich:o,overflow:a?"truncate":null,lineHeight:s}}).getBoundingRect()}var dt=n(4810),pt=n(7994),ft=n(674);function gt(t){var e=c.A.extend(t);return c.A.registerClass(e),e}function mt(t){var e=u.A.extend(t);return u.A.registerClass(e),e}function vt(t){var e=d.A.extend(t);return d.A.registerClass(e),e}function yt(t){var e=p.A.extend(t);return p.A.registerClass(e),e}var _t=n(4971);(0,F.Y)(_t._)},585:(t,e,n)=>{"use strict";n.d(e,{Y:()=>p});var i=n(3352),r=n(5370),o=n(6145),a=n(9078),s=n(1996),l=n(7845),h=n(5689),c=n(2563),u=[],d={registerPreprocessor:i.lP,registerProcessor:i.qg,registerPostInit:i.cf,registerPostUpdate:i.tb,registerUpdateLifecycle:i.xV,registerAction:i.OH,registerCoordinateSystem:i.pX,registerLayout:i.Oh,registerVisual:i.AF,registerTransform:i.iY,registerLoading:i.Ej,registerMap:i.mz,registerImpl:h.m,PRIORITY:i.FQ,ComponentModel:a.A,ComponentView:r.A,SeriesModel:s.A,ChartView:o.A,registerComponentModel:function(t){a.A.registerClass(t)},registerComponentView:function(t){r.A.registerClass(t)},registerSeriesModel:function(t){s.A.registerClass(t)},registerChartView:function(t){o.A.registerClass(t)},registerSubTypeDefaulter:function(t,e){a.A.registerSubTypeDefaulter(t,e)},registerPainter:function(t,e){(0,c.registerPainter)(t,e)}};function p(t){(0,l.isArray)(t)?(0,l.each)(t,(function(t){p(t)})):(0,l.indexOf)(u,t)>=0||(u.push(t),(0,l.isFunction)(t)&&(t={install:t}),t.install(d))}},4971:(t,e,n)=>{"use strict";n.d(e,{_:()=>T});var i=n(2577),r=n(5383),o=n(5203),a=n(6195),s=n(8883),l=n(5853),h=n(4250),c=n(7845),u=n(658),d=n(6547),p=n(4428);function f(t){if(t){for(var e=[],n=0;n<t.length;n++)e.push(t[n].slice());return e}}function g(t,e){var n=t.label,i=e&&e.getTextGuideLine();return{dataIndex:t.dataIndex,dataType:t.dataType,seriesIndex:t.seriesModel.seriesIndex,text:t.label.style.text,rect:t.hostRect,labelRect:t.rect,align:n.style.align,verticalAlign:n.style.verticalAlign,labelLinePoints:f(i&&i.shape.points)}}var m=["align","verticalAlign","width","height","fontSize"],v=new l.Ay,y=(0,i.$r)(),_=(0,i.$r)();function x(t,e,n){for(var i=0;i<n.length;i++){var r=n[i];null!=e[r]&&(t[r]=e[r])}}var b=["x","y","rotation"];const w=function(){function t(){this._labelList=[],this._chartViewList=[]}return t.prototype.clearLabels=function(){this._labelList=[],this._chartViewList=[]},t.prototype._addLabel=function(t,e,n,i,o){var a=i.style,s=i.__hostTarget.textConfig||{},l=i.getComputedTransform(),h=i.getBoundingRect().plain();r.A.applyTransform(h,h,l),l?v.setLocalTransform(l):(v.x=v.y=v.rotation=v.originX=v.originY=0,v.scaleX=v.scaleY=1),v.rotation=(0,p.n)(v.rotation);var c,u=i.__hostTarget;if(u){c=u.getBoundingRect().plain();var d=u.getComputedTransform();r.A.applyTransform(c,c,d)}var f=c&&u.getTextGuideLine();this._labelList.push({label:i,labelLine:f,seriesModel:n,dataIndex:t,dataType:e,layoutOption:o,computedLayoutOption:null,rect:h,hostRect:c,priority:c?c.width*c.height:0,defaultAttr:{ignore:i.ignore,labelGuideIgnore:f&&f.ignore,x:v.x,y:v.y,scaleX:v.scaleX,scaleY:v.scaleY,rotation:v.rotation,style:{x:a.x,y:a.y,align:a.align,verticalAlign:a.verticalAlign,width:a.width,height:a.height,fontSize:a.fontSize},cursor:i.cursor,attachedPos:s.position,attachedRot:s.rotation}})},t.prototype.addLabelsOfSeries=function(t){var e=this;this._chartViewList.push(t);var n=t.__model,i=n.get("labelLayout");((0,c.isFunction)(i)||(0,c.keys)(i).length)&&t.group.traverse((function(t){if(t.ignore)return!0;var r=t.getTextContent(),o=(0,a.z)(t);r&&!r.disableLabelLayout&&e._addLabel(o.dataIndex,o.dataType,n,r,i)}))},t.prototype.updateLayoutConfig=function(t){var e=t.getWidth(),n=t.getHeight();function i(t,e){return function(){(0,h.lB)(t,e)}}for(var r=0;r<this._labelList.length;r++){var o=this._labelList[r],a=o.label,l=a.__hostTarget,u=o.defaultAttr,d=void 0;d=(d=(0,c.isFunction)(o.layoutOption)?o.layoutOption(g(o,l)):o.layoutOption)||{},o.computedLayoutOption=d;var p=Math.PI/180;l&&l.setTextConfig({local:!1,position:null!=d.x||null!=d.y?null:u.attachedPos,rotation:null!=d.rotate?d.rotate*p:u.attachedRot,offset:[d.dx||0,d.dy||0]});var f=!1;if(null!=d.x?(a.x=(0,s.lo)(d.x,e),a.setStyle("x",0),f=!0):(a.x=u.x,a.setStyle("x",u.style.x)),null!=d.y?(a.y=(0,s.lo)(d.y,n),a.setStyle("y",0),f=!0):(a.y=u.y,a.setStyle("y",u.style.y)),d.labelLinePoints){var v=l.getTextGuideLine();v&&(v.setShape({points:d.labelLinePoints}),f=!1)}y(a).needsUpdateLabelLine=f,a.rotation=null!=d.rotate?d.rotate*p:u.rotation,a.scaleX=u.scaleX,a.scaleY=u.scaleY;for(var _=0;_<m.length;_++){var x=m[_];a.setStyle(x,null!=d[x]?d[x]:u.style[x])}if(d.draggable){if(a.draggable=!0,a.cursor="move",l){var b=o.seriesModel;if(null!=o.dataIndex)b=o.seriesModel.getData(o.dataType).getItemModel(o.dataIndex);a.on("drag",i(l,b.getModel("labelLine")))}}else a.off("drag"),a.cursor=u.cursor}},t.prototype.layout=function(t){var e=t.getWidth(),n=t.getHeight(),i=(0,u.os)(this._labelList),r=(0,c.filter)(i,(function(t){return"shiftX"===t.layoutOption.moveOverlap})),o=(0,c.filter)(i,(function(t){return"shiftY"===t.layoutOption.moveOverlap}));(0,u.QX)(r,0,e),(0,u.Xe)(o,0,n);var a=(0,c.filter)(i,(function(t){return t.layoutOption.hideOverlap}));(0,u.If)(a)},t.prototype.processLabelsOverall=function(){var t=this;(0,c.each)(this._chartViewList,(function(e){var n=e.__model,i=e.ignoreLabelLineUpdate,r=n.isAnimationEnabled();e.group.traverse((function(e){if(e.ignore&&!e.forceLabelAnimation)return!0;var o=!i,a=e.getTextContent();!o&&a&&(o=y(a).needsUpdateLabelLine),o&&t._updateLabelLine(e,n),r&&t._animateLabels(e,n)}))}))},t.prototype._updateLabelLine=function(t,e){var n=t.getTextContent(),i=(0,a.z)(t),r=i.dataIndex;if(n&&null!=r){var o=e.getData(i.dataType),s=o.getItemModel(r),l={},c=o.getItemVisual(r,"style");if(c){var u=o.getVisual("drawType");l.stroke=c[u]}var d=s.getModel("labelLine");(0,h.eR)(t,(0,h.rv)(s),l),(0,h.lB)(t,d)}},t.prototype._animateLabels=function(t,e){var n=t.getTextContent(),i=t.getTextGuideLine();if(n&&(t.forceLabelAnimation||!n.ignore&&!n.invisible&&!t.disableLabelAnimation&&!(0,o.LR)(t))){var r=(v=y(n)).oldLayout,s=(0,a.z)(t),l=s.dataIndex,h={x:n.x,y:n.y,rotation:n.rotation},u=e.getData(s.dataType);if(r){n.attr(r);var p=t.prevStates;p&&((0,c.indexOf)(p,"select")>=0&&n.attr(v.oldLayoutSelect),(0,c.indexOf)(p,"emphasis")>=0&&n.attr(v.oldLayoutEmphasis)),(0,o.oi)(n,h,e,l)}else if(n.attr(h),!(0,d.Lu)(n).valueAnimation){var f=(0,c.retrieve2)(n.style.opacity,1);n.style.opacity=0,(0,o.LW)(n,{style:{opacity:f}},e,l)}if(v.oldLayout=h,n.states.select){var g=v.oldLayoutSelect={};x(g,h,b),x(g,n.states.select,b)}if(n.states.emphasis){var m=v.oldLayoutEmphasis={};x(m,h,b),x(m,n.states.emphasis,b)}(0,d.xb)(n,l,u,e,e)}if(i&&!i.ignore&&!i.invisible){r=(v=_(i)).oldLayout;var v,w={points:i.shape.points};r?(i.attr({shape:r}),(0,o.oi)(i,{shape:w},e)):(i.setShape(w),i.style.strokePercent=0,(0,o.LW)(i,{style:{strokePercent:1}},e)),v.oldLayout=w}},t}();var S=(0,i.$r)();function T(t){t.registerUpdateLifecycle("series:beforeupdate",(function(t,e,n){var i=S(e).labelManager;i||(i=S(e).labelManager=new w),i.clearLabels()})),t.registerUpdateLifecycle("series:layoutlabels",(function(t,e,n){var i=S(e).labelManager;n.updatedSeries.forEach((function(t){i.addLabelsOfSeries(e.getViewOfSeriesModel(t))})),i.updateLayoutConfig(e),i.layout(e),i.processLabelsOverall()}))}},4250:(t,e,n)=>{"use strict";n.d(e,{QK:()=>D,YI:()=>L,eR:()=>O,lB:()=>I,rv:()=>N});var i=n(4063),r=n(1885),o=n(1106),a=n(584),s=n(4428),l=n(5162),h=n(7845),c=n(3968),u=n(4070),d=n(1632),p=2*Math.PI,f=a.A.CMD,g=["top","right","bottom","left"];function m(t,e,n,i,r){var o=n.width,a=n.height;switch(t){case"top":i.set(n.x+o/2,n.y-e),r.set(0,-1);break;case"bottom":i.set(n.x+o/2,n.y+a+e),r.set(0,1);break;case"left":i.set(n.x-e,n.y+a/2),r.set(-1,0);break;case"right":i.set(n.x+o+e,n.y+a/2),r.set(1,0)}}function v(t,e,n,i,r,o,a,l,h){a-=t,l-=e;var c=Math.sqrt(a*a+l*l),u=(a/=c)*n+t,d=(l/=c)*n+e;if(Math.abs(i-r)%p<1e-4)return h[0]=u,h[1]=d,c-n;if(o){var f=i;i=(0,s.n)(r),r=(0,s.n)(f)}else i=(0,s.n)(i),r=(0,s.n)(r);i>r&&(r+=p);var g=Math.atan2(l,a);if(g<0&&(g+=p),g>=i&&g<=r||g+p>=i&&g+p<=r)return h[0]=u,h[1]=d,c-n;var m=n*Math.cos(i)+t,v=n*Math.sin(i)+e,y=n*Math.cos(r)+t,_=n*Math.sin(r)+e,x=(m-a)*(m-a)+(v-l)*(v-l),b=(y-a)*(y-a)+(_-l)*(_-l);return x<b?(h[0]=m,h[1]=v,Math.sqrt(x)):(h[0]=y,h[1]=_,Math.sqrt(b))}function y(t,e,n,i,r,o,a,s){var l=r-t,h=o-e,c=n-t,u=i-e,d=Math.sqrt(c*c+u*u),p=(l*(c/=d)+h*(u/=d))/d;s&&(p=Math.min(Math.max(p,0),1)),p*=d;var f=a[0]=t+p*c,g=a[1]=e+p*u;return Math.sqrt((f-r)*(f-r)+(g-o)*(g-o))}function _(t,e,n,i,r,o,a){n<0&&(t+=n,n=-n),i<0&&(e+=i,i=-i);var s=t+n,l=e+i,h=a[0]=Math.min(Math.max(r,t),s),c=a[1]=Math.min(Math.max(o,e),l);return Math.sqrt((h-r)*(h-r)+(c-o)*(c-o))}var x=[];function b(t,e,n){var i=_(e.x,e.y,e.width,e.height,t.x,t.y,x);return n.set(x[0],x[1]),i}function w(t,e,n){for(var i,r,o=0,a=0,s=0,h=0,c=1/0,u=e.data,d=t.x,p=t.y,g=0;g<u.length;){var m=u[g++];1===g&&(s=o=u[g],h=a=u[g+1]);var b=c;switch(m){case f.M:o=s=u[g++],a=h=u[g++];break;case f.L:b=y(o,a,u[g],u[g+1],d,p,x,!0),o=u[g++],a=u[g++];break;case f.C:b=(0,l.Et)(o,a,u[g++],u[g++],u[g++],u[g++],u[g],u[g+1],d,p,x),o=u[g++],a=u[g++];break;case f.Q:b=(0,l.kh)(o,a,u[g++],u[g++],u[g],u[g+1],d,p,x),o=u[g++],a=u[g++];break;case f.A:var w=u[g++],S=u[g++],T=u[g++],M=u[g++],A=u[g++],C=u[g++];g+=1;var I=!!(1-u[g++]);i=Math.cos(A)*T+w,r=Math.sin(A)*M+S,g<=1&&(s=i,h=r),b=v(w,S,M,A,A+C,I,(d-w)*M/T+w,p,x),o=Math.cos(A+C)*T+w,a=Math.sin(A+C)*M+S;break;case f.R:b=_(s=o=u[g++],h=a=u[g++],u[g++],u[g++],d,p,x);break;case f.Z:b=y(o,a,s,h,d,p,x,!0),o=s,a=h}b<c&&(c=b,n.set(x[0],x[1]))}return c}var S=new i.A,T=new i.A,M=new i.A,A=new i.A,C=new i.A;function I(t,e){if(t){var n=t.getTextGuideLine(),o=t.getTextContent();if(o&&n){var a=t.textGuideLineConfig||{},s=[[0,0],[0,0],[0,0]],l=a.candidates||g,h=o.getBoundingRect().clone();h.applyTransform(o.getComputedTransform());var u=1/0,d=a.anchor,p=t.getComputedTransform(),f=p&&(0,c.invert)([],p),v=e.get("length2")||0;d&&M.copy(d);for(var y=0;y<l.length;y++){m(l[y],0,h,S,A),i.A.scaleAndAdd(T,S,A,v),T.transform(f);var _=t.getBoundingRect(),x=d?d.distance(T):t instanceof r.Ay?w(T,t.path,M):b(T,_,M);x<u&&(u=x,T.transform(p),M.transform(p),M.toArray(s[0]),T.toArray(s[1]),S.toArray(s[2]))}L(s,e.get("minTurnAngle")),n.setShape({points:s})}}}var E=[],k=new i.A;function L(t,e){if(e<=180&&e>0){e=e/180*Math.PI,S.fromArray(t[0]),T.fromArray(t[1]),M.fromArray(t[2]),i.A.sub(A,S,T),i.A.sub(C,M,T);var n=A.len(),r=C.len();if(!(n<.001||r<.001)){A.scale(1/n),C.scale(1/r);var o=A.dot(C);if(Math.cos(e)<o){var a=y(T.x,T.y,M.x,M.y,S.x,S.y,E,!1);k.fromArray(E),k.scaleAndAdd(C,a/Math.tan(Math.PI-e));var s=M.x!==T.x?(k.x-T.x)/(M.x-T.x):(k.y-T.y)/(M.y-T.y);if(isNaN(s))return;s<0?i.A.copy(k,T):s>1&&i.A.copy(k,M),k.toArray(t[1])}}}}function D(t,e,n){if(n<=180&&n>0){n=n/180*Math.PI,S.fromArray(t[0]),T.fromArray(t[1]),M.fromArray(t[2]),i.A.sub(A,T,S),i.A.sub(C,M,T);var r=A.len(),o=C.len();if(!(r<.001||o<.001))if(A.scale(1/r),C.scale(1/o),A.dot(e)<Math.cos(n)){var a=y(T.x,T.y,M.x,M.y,S.x,S.y,E,!1);k.fromArray(E);var s=Math.PI/2,l=s+Math.acos(C.dot(e))-n;if(l>=s)i.A.copy(k,M);else{k.scaleAndAdd(C,a/Math.tan(Math.PI/2-l));var h=M.x!==T.x?(k.x-T.x)/(M.x-T.x):(k.y-T.y)/(M.y-T.y);if(isNaN(h))return;h<0?i.A.copy(k,T):h>1&&i.A.copy(k,M)}k.toArray(t[1])}}}function P(t,e,n,i){var r="normal"===n,o=r?t:t.ensureState(n);o.ignore=e;var a=i.get("smooth");a&&!0===a&&(a=.3),o.shape=o.shape||{},a>0&&(o.shape.smooth=a);var s=i.getModel("lineStyle").getLineStyle();r?t.useStyle(s):o.style=s}function R(t,e){var n=e.smooth,i=e.points;if(i)if(t.moveTo(i[0][0],i[0][1]),n>0&&i.length>=3){var r=u.dist(i[0],i[1]),o=u.dist(i[1],i[2]);if(!r||!o)return t.lineTo(i[1][0],i[1][1]),void t.lineTo(i[2][0],i[2][1]);var a=Math.min(r,o)*n,s=u.lerp([],i[1],i[0],a/r),l=u.lerp([],i[1],i[2],a/o),h=u.lerp([],s,l,.5);t.bezierCurveTo(s[0],s[1],s[0],s[1],h[0],h[1]),t.bezierCurveTo(l[0],l[1],l[0],l[1],i[2][0],i[2][1])}else for(var c=1;c<i.length;c++)t.lineTo(i[c][0],i[c][1])}function O(t,e,n){var i=t.getTextGuideLine(),r=t.getTextContent();if(r){for(var a=e.normal,s=a.get("show"),l=r.ignore,c=0;c<d.wV.length;c++){var u=d.wV[c],p=e[u],f="normal"===u;if(p){var g=p.get("show");if((f?l:(0,h.retrieve2)(r.states[u]&&r.states[u].ignore,l))||!(0,h.retrieve2)(g,s)){var m=f?i:i&&i.states[u];m&&(m.ignore=!0),i&&P(i,!0,u,p);continue}i||(i=new o.A,t.setTextGuideLine(i),f||!l&&s||P(i,!0,"normal",e.normal),t.stateProxy&&(i.stateProxy=t.stateProxy)),P(i,!1,u,p)}}if(i){(0,h.defaults)(i.style,n),i.style.fill=null;var v=a.get("showAbove");(t.textGuideLineConfig=t.textGuideLineConfig||{}).showAbove=v||!1,i.buildPath=R}}else i&&t.removeTextGuideLine()}function N(t,e){e=e||"labelLine";for(var n={normal:t.getModel(e)},i=0;i<d.BV.length;i++){var r=d.BV[i];n[r]=t.getModel([r,e])}return n}},658:(t,e,n)=>{"use strict";n.d(e,{If:()=>h,QX:()=>s,Xe:()=>l,os:()=>o});var i=n(2971),r=n(5383);function o(t){for(var e=[],n=0;n<t.length;n++){var r=t[n];if(!r.defaultAttr.ignore){var o=r.label,a=o.getComputedTransform(),s=o.getBoundingRect(),l=!a||a[1]<1e-5&&a[2]<1e-5,h=o.style.margin||0,c=s.clone();c.applyTransform(a),c.x-=h/2,c.y-=h/2,c.width+=h,c.height+=h;var u=l?new i.A(s,a):null;e.push({label:o,labelLine:r.labelLine,rect:c,localRect:s,obb:u,priority:r.priority,defaultAttr:r.defaultAttr,layoutOption:r.computedLayoutOption,axisAligned:l,transform:a})}}return e}function a(t,e,n,i,r,o){var a=t.length;if(!(a<2)){t.sort((function(t,n){return t.rect[e]-n.rect[e]}));for(var s,l=0,h=!1,c=[],u=0,d=0;d<a;d++){var p=t[d],f=p.rect;(s=f[e]-l)<0&&(f[e]-=s,p.label[e]-=s,h=!0);var g=Math.max(-s,0);c.push(g),u+=g,l=f[e]+f[n]}u>0&&o&&w(-u/a,0,a);var m,v,y=t[0],_=t[a-1];return x(),m<0&&S(-m,.8),v<0&&S(v,.8),x(),b(m,v,1),b(v,m,-1),x(),m<0&&T(-m),v<0&&T(v),h}function x(){m=y.rect[e]-i,v=r-_.rect[e]-_.rect[n]}function b(t,e,n){if(t<0){var i=Math.min(e,-t);if(i>0){w(i*n,0,a);var r=i+t;r<0&&S(-r*n,1)}else S(-t*n,1)}}function w(n,i,r){0!==n&&(h=!0);for(var o=i;o<r;o++){var a=t[o];a.rect[e]+=n,a.label[e]+=n}}function S(i,r){for(var o=[],s=0,l=1;l<a;l++){var h=t[l-1].rect,c=Math.max(t[l].rect[e]-h[e]-h[n],0);o.push(c),s+=c}if(s){var u=Math.min(Math.abs(i)/s,r);if(i>0)for(l=0;l<a-1;l++){w(o[l]*u,0,l+1)}else for(l=a-1;l>0;l--){w(-(o[l-1]*u),l,a)}}}function T(t){var e=t<0?-1:1;t=Math.abs(t);for(var n=Math.ceil(t/(a-1)),i=0;i<a-1;i++)if(e>0?w(n,0,i+1):w(-n,a-i-1,a),(t-=n)<=0)return}}function s(t,e,n,i){return a(t,"x","width",e,n,i)}function l(t,e,n,i){return a(t,"y","height",e,n,i)}function h(t){var e=[];t.sort((function(t,e){return e.priority-t.priority}));var n=new r.A(0,0,0,0);function o(t){if(!t.ignore){var e=t.ensureState("emphasis");null==e.ignore&&(e.ignore=!1)}t.ignore=!0}for(var a=0;a<t.length;a++){var s=t[a],l=s.axisAligned,h=s.localRect,c=s.transform,u=s.label,d=s.labelLine;n.copy(s.rect),n.width-=.1,n.height-=.1,n.x+=.05,n.y+=.05;for(var p=s.obb,f=!1,g=0;g<e.length;g++){var m=e[g];if(n.intersect(m.rect)){if(l&&m.axisAligned){f=!0;break}if(m.obb||(m.obb=new i.A(m.localRect,m.transform)),p||(p=new i.A(h,c)),p.intersect(m.obb)){f=!0;break}}}f?(o(u),d&&o(d)):(u.attr("ignore",s.defaultAttr.ignore),d&&d.attr("ignore",s.defaultAttr.labelGuideIgnore),e.push(s))}}},6547:(t,e,n)=>{"use strict";n.d(e,{Lu:()=>x,Oh:()=>b,VB:()=>p,c8:()=>_,lx:()=>d,qM:()=>u,sD:()=>f,xb:()=>w});var i=n(1251),r=n(7845),o=n(1632),a=n(2577),s=n(5203),l={};function h(t,e){for(var n=0;n<o.BV.length;n++){var i=o.BV[n],r=e[i],a=t.ensureState(i);a.style=a.style||{},a.style.text=r}var s=t.currentStates.slice();t.clearStates(!0),t.setStyle({text:e.normal}),t.useStates(s,!0)}function c(t,e,n){var i,a=t.labelFetcher,s=t.labelDataIndex,l=t.labelDimIndex,h=e.normal;a&&(i=a.getFormattedLabel(s,"normal",null,l,h&&h.get("formatter"),null!=n?{interpolatedValue:n}:null)),null==i&&(i=(0,r.isFunction)(t.defaultText)?t.defaultText(s,t,n):t.defaultText);for(var c={normal:i},u=0;u<o.BV.length;u++){var d=o.BV[u],p=e[d];c[d]=(0,r.retrieve2)(a?a.getFormattedLabel(s,d,null,l,p&&p.get("formatter")):null,i)}return c}function u(t,e,n,a){n=n||l;for(var s=t instanceof i.Ay,u=!1,d=0;d<o.wV.length;d++){if((b=e[o.wV[d]])&&b.getShallow("show")){u=!0;break}}var g=s?t:t.getTextContent();if(u){s||(g||(g=new i.Ay,t.setTextContent(g)),t.stateProxy&&(g.stateProxy=t.stateProxy));var m=c(n,e),v=e.normal,y=!!v.getShallow("show"),_=p(v,a&&a.normal,n,!1,!s);_.text=m.normal,s||t.setTextConfig(f(v,n,!1));for(d=0;d<o.BV.length;d++){var b,w=o.BV[d];if(b=e[w]){var S=g.ensureState(w),T=!!(0,r.retrieve2)(b.getShallow("show"),y);if(T!==y&&(S.ignore=!T),S.style=p(b,a&&a[w],n,!0,!s),S.style.text=m[w],!s)t.ensureState(w).textConfig=f(b,n,!0)}}g.silent=!!v.getShallow("silent"),null!=g.style.x&&(_.x=g.style.x),null!=g.style.y&&(_.y=g.style.y),g.ignore=!y,g.useStyle(_),g.dirty(),n.enableTextSetter&&(x(g).setLabelText=function(t){var i=c(n,e,t);h(g,i)})}else g&&(g.ignore=!0);t.dirty()}function d(t,e){e=e||"label";for(var n={normal:t.getModel(e)},i=0;i<o.BV.length;i++){var r=o.BV[i];n[r]=t.getModel([r,e])}return n}function p(t,e,n,i,o){var a={};return function(t,e,n,i,o){n=n||l;var a,s=e.ecModel,h=s&&s.option.textStyle,c=function(t){var e;for(;t&&t!==t.ecModel;){var n=(t.option||l).rich;if(n){e=e||{};for(var i=(0,r.keys)(n),o=0;o<i.length;o++){e[i[o]]=1}}t=t.parentModel}return e}(e);if(c)for(var u in a={},c)if(c.hasOwnProperty(u)){var d=e.getModel(["rich",u]);y(a[u]={},d,h,n,i,o,!1,!0)}a&&(t.rich=a);var p=e.get("overflow");p&&(t.overflow=p);var f=e.get("minMargin");null!=f&&(t.margin=f);y(t,e,h,n,i,o,!0,!1)}(a,t,n,i,o),e&&(0,r.extend)(a,e),a}function f(t,e,n){e=e||{};var i,o={},a=t.getShallow("rotate"),s=(0,r.retrieve2)(t.getShallow("distance"),n?null:5),l=t.getShallow("offset");return"outside"===(i=t.getShallow("position")||(n?null:"inside"))&&(i=e.defaultOutsidePosition||"top"),null!=i&&(o.position=i),null!=l&&(o.offset=l),null!=a&&(a*=Math.PI/180,o.rotation=a),null!=s&&(o.distance=s),o.outsideFill="inherit"===t.get("color")?e.inheritColor||null:"auto",o}var g=["fontStyle","fontWeight","fontSize","fontFamily","textShadowColor","textShadowBlur","textShadowOffsetX","textShadowOffsetY"],m=["align","lineHeight","width","height","tag","verticalAlign","ellipsis"],v=["padding","borderWidth","borderRadius","borderDashOffset","backgroundColor","borderColor","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY"];function y(t,e,n,i,o,a,s,h){n=!o&&n||l;var c=i&&i.inheritColor,u=e.getShallow("color"),d=e.getShallow("textBorderColor"),p=(0,r.retrieve2)(e.getShallow("opacity"),n.opacity);"inherit"!==u&&"auto"!==u||(u=c||null),"inherit"!==d&&"auto"!==d||(d=c||null),a||(u=u||n.color,d=d||n.textBorderColor),null!=u&&(t.fill=u),null!=d&&(t.stroke=d);var f=(0,r.retrieve2)(e.getShallow("textBorderWidth"),n.textBorderWidth);null!=f&&(t.lineWidth=f);var y=(0,r.retrieve2)(e.getShallow("textBorderType"),n.textBorderType);null!=y&&(t.lineDash=y);var _=(0,r.retrieve2)(e.getShallow("textBorderDashOffset"),n.textBorderDashOffset);null!=_&&(t.lineDashOffset=_),o||null!=p||h||(p=i&&i.defaultOpacity),null!=p&&(t.opacity=p),o||a||null==t.fill&&i.inheritColor&&(t.fill=i.inheritColor);for(var x=0;x<g.length;x++){var b=g[x];null!=(S=(0,r.retrieve2)(e.getShallow(b),n[b]))&&(t[b]=S)}for(x=0;x<m.length;x++){b=m[x];null!=(S=e.getShallow(b))&&(t[b]=S)}if(null==t.verticalAlign){var w=e.getShallow("baseline");null!=w&&(t.verticalAlign=w)}if(!s||!i.disableBox){for(x=0;x<v.length;x++){var S;b=v[x];null!=(S=e.getShallow(b))&&(t[b]=S)}var T=e.getShallow("borderType");null!=T&&(t.borderDash=T),"auto"!==t.backgroundColor&&"inherit"!==t.backgroundColor||!c||(t.backgroundColor=c),"auto"!==t.borderColor&&"inherit"!==t.borderColor||!c||(t.borderColor=c)}}function _(t,e){var n=e&&e.getModel("textStyle");return(0,r.trim)([t.fontStyle||n&&n.getShallow("fontStyle")||"",t.fontWeight||n&&n.getShallow("fontWeight")||"",(t.fontSize||n&&n.getShallow("fontSize")||12)+"px",t.fontFamily||n&&n.getShallow("fontFamily")||"sans-serif"].join(" "))}var x=(0,a.$r)();function b(t,e,n,i){if(t){var r=x(t);r.prevValue=r.value,r.value=n;var o=e.normal;r.valueAnimation=o.get("valueAnimation"),r.valueAnimation&&(r.precision=o.get("precision"),r.defaultInterpolatedText=i,r.statesModels=e)}}function w(t,e,n,i,o){var l=x(t);if(l.valueAnimation&&l.prevValue!==l.value){var u=l.defaultInterpolatedText,d=(0,r.retrieve2)(l.interpolatedValue,l.prevValue),p=l.value;t.percent=0,(null==l.prevValue?s.LW:s.oi)(t,{percent:1},i,e,null,(function(i){var r=(0,a.Il)(n,l.precision,d,p,i);l.interpolatedValue=1===i?null:r;var s=c({labelDataIndex:e,labelFetcher:o,defaultText:u?u(r):r+""},l.statesModels,r);h(t,s)}))}}},6291:(t,e,n)=>{"use strict";n.d(e,{DL:()=>u,GL:()=>d,KF:()=>v,VA:()=>g,Zp:()=>m,vq:()=>p});var i=n(7845),r=n(8883),o=n(933),a=n(9421),s=n(3180),l="__ec_stack_";function h(t){return t.get("stack")||l+t.seriesIndex}function c(t){return t.dim+t.index}function u(t){var e=[],n=t.axis,r="axis0";if("category"===n.type){for(var o=n.getBandWidth(),a=0;a<t.count;a++)e.push((0,i.defaults)({bandWidth:o,axisKey:r,stackId:l+a},t));var s=f(e),h=[];for(a=0;a<t.count;a++){var c=s[r][l+a];c.offsetCenter=c.offset+c.width/2,h.push(c)}return h}}function d(t,e){var n=[];return e.eachSeriesByType(t,(function(t){y(t)&&n.push(t)})),n}function p(t){var e=function(t){var e={};(0,i.each)(t,(function(t){var n=t.coordinateSystem.getBaseAxis();if("time"===n.type||"value"===n.type)for(var i=t.getData(),r=n.dim+"_"+n.index,o=i.getDimensionIndex(i.mapDimension(n.dim)),a=i.getStore(),s=0,l=a.count();s<l;++s){var h=a.get(o,s);e[r]?e[r].push(h):e[r]=[h]}}));var n={};for(var r in e)if(e.hasOwnProperty(r)){var o=e[r];if(o){o.sort((function(t,e){return t-e}));for(var a=null,s=1;s<o.length;++s){var l=o[s]-o[s-1];l>0&&(a=null===a?l:Math.min(a,l))}n[r]=a}}return n}(t),n=[];return(0,i.each)(t,(function(t){var i,o=t.coordinateSystem.getBaseAxis(),a=o.getExtent();if("category"===o.type)i=o.getBandWidth();else if("value"===o.type||"time"===o.type){var s=o.dim+"_"+o.index,l=e[s],u=Math.abs(a[1]-a[0]),d=o.scale.getExtent(),p=Math.abs(d[1]-d[0]);i=l?u/p*l:u}else{var f=t.getData();i=Math.abs(a[1]-a[0])/f.count()}var g=(0,r.lo)(t.get("barWidth"),i),m=(0,r.lo)(t.get("barMaxWidth"),i),v=(0,r.lo)(t.get("barMinWidth")||(_(t)?.5:1),i),y=t.get("barGap"),x=t.get("barCategoryGap");n.push({bandWidth:i,barWidth:g,barMaxWidth:m,barMinWidth:v,barGap:y,barCategoryGap:x,axisKey:c(o),stackId:h(t)})})),f(n)}function f(t){var e={};(0,i.each)(t,(function(t,n){var i=t.axisKey,r=t.bandWidth,o=e[i]||{bandWidth:r,remainedWidth:r,autoWidthCount:0,categoryGap:null,gap:"20%",stacks:{}},a=o.stacks;e[i]=o;var s=t.stackId;a[s]||o.autoWidthCount++,a[s]=a[s]||{width:0,maxWidth:0};var l=t.barWidth;l&&!a[s].width&&(a[s].width=l,l=Math.min(o.remainedWidth,l),o.remainedWidth-=l);var h=t.barMaxWidth;h&&(a[s].maxWidth=h);var c=t.barMinWidth;c&&(a[s].minWidth=c);var u=t.barGap;null!=u&&(o.gap=u);var d=t.barCategoryGap;null!=d&&(o.categoryGap=d)}));var n={};return(0,i.each)(e,(function(t,e){n[e]={};var o=t.stacks,a=t.bandWidth,s=t.categoryGap;if(null==s){var l=(0,i.keys)(o).length;s=Math.max(35-4*l,15)+"%"}var h=(0,r.lo)(s,a),c=(0,r.lo)(t.gap,1),u=t.remainedWidth,d=t.autoWidthCount,p=(u-h)/(d+(d-1)*c);p=Math.max(p,0),(0,i.each)(o,(function(t){var e=t.maxWidth,n=t.minWidth;if(t.width){i=t.width;e&&(i=Math.min(i,e)),n&&(i=Math.max(i,n)),t.width=i,u-=i+c*i,d--}else{var i=p;e&&e<i&&(i=Math.min(e,u)),n&&n>i&&(i=n),i!==p&&(t.width=i,u-=i+c*i,d--)}})),p=(u-h)/(d+(d-1)*c),p=Math.max(p,0);var f,g=0;(0,i.each)(o,(function(t,e){t.width||(t.width=p),f=t,g+=t.width*(1+c)})),f&&(g-=f.width*c);var m=-g/2;(0,i.each)(o,(function(t,i){n[e][i]=n[e][i]||{bandWidth:a,offset:m,width:t.width},m+=t.width*(1+c)}))})),n}function g(t,e,n){if(t&&e){var i=t[c(e)];return null!=i&&null!=n?i[h(n)]:i}}function m(t,e){var n=d(t,e),r=p(n);(0,i.each)(n,(function(t){var e=t.getData(),n=t.coordinateSystem.getBaseAxis(),i=h(t),o=r[c(n)][i],a=o.offset,s=o.width;e.setLayout({bandWidth:o.bandWidth,offset:a,size:s})}))}function v(t){return{seriesType:t,plan:(0,a.A)(),reset:function(t){if(y(t)){var e=t.getData(),n=t.coordinateSystem,i=n.getBaseAxis(),r=n.getOtherAxis(i),a=e.getDimensionIndex(e.mapDimension(r.dim)),l=e.getDimensionIndex(e.mapDimension(i.dim)),h=t.get("showBackground",!0),c=e.mapDimension(r.dim),u=e.getCalculationInfo("stackResultDimension"),d=(0,o.sJ)(e,c)&&!!e.getCalculationInfo("stackedOnSeries"),p=r.isHorizontal(),f=function(t,e){var n=e.model.get("startValue");n||(n=0);return e.toGlobalCoord(e.dataToCoord("log"===e.type?n>0?n:1:n))}(0,r),g=_(t),m=t.get("barMinHeight")||0,v=u&&e.getDimensionIndex(u),x=e.getLayout("size"),b=e.getLayout("offset");return{progress:function(t,e){for(var i,r=t.count,o=g&&(0,s.J)(3*r),c=g&&h&&(0,s.J)(3*r),u=g&&(0,s.J)(r),y=n.master.getRect(),_=p?y.width:y.height,w=e.getStore(),S=0;null!=(i=t.next());){var T=w.get(d?v:a,i),M=w.get(l,i),A=f,C=void 0;d&&(C=+T-w.get(a,i));var I=void 0,E=void 0,k=void 0,L=void 0;if(p){var D=n.dataToPoint([T,M]);if(d)A=n.dataToPoint([C,M])[0];I=A,E=D[1]+b,k=D[0]-A,L=x,Math.abs(k)<m&&(k=(k<0?-1:1)*m)}else{D=n.dataToPoint([M,T]);if(d)A=n.dataToPoint([M,C])[1];I=D[0]+b,E=A,k=x,L=D[1]-A,Math.abs(L)<m&&(L=(L<=0?-1:1)*m)}g?(o[S]=I,o[S+1]=E,o[S+2]=p?k:L,c&&(c[S]=p?y.x:I,c[S+1]=p?E:y.y,c[S+2]=_),u[i]=i):e.setItemLayout(i,{x:I,y:E,width:k,height:L}),S+=3}g&&e.setLayout({largePoints:o,largeDataIndices:u,largeBackgroundPoints:c,valueAxisHorizontal:p})}}}}}}function y(t){return t.coordinateSystem&&"cartesian2d"===t.coordinateSystem.type}function _(t){return t.pipelineContext&&t.pipelineContext.large}},6093:(t,e,n)=>{"use strict";n.d(e,{I:()=>o,l:()=>s});var i=n(7845),r=n(2577);function o(t,e){function n(e,n){var i=[];return e.eachComponent({mainType:"series",subType:t,query:n},(function(t){i.push(t.seriesIndex)})),i}(0,i.each)([[t+"ToggleSelect","toggleSelect"],[t+"Select","select"],[t+"UnSelect","unselect"]],(function(t){e(t[0],(function(e,r,o){e=(0,i.extend)({},e),o.dispatchAction((0,i.extend)(e,{type:t[1],seriesIndex:n(r,e)}))}))}))}function a(t,e,n,o,a){var s=t+e;n.isSilent(s)||o.eachComponent({mainType:"series",subType:"pie"},(function(t){for(var e=t.seriesIndex,o=t.option.selectedMap,l=a.selected,h=0;h<l.length;h++)if(l[h].seriesIndex===e){var c=t.getData(),u=(0,r.le)(c,a.fromActionPayload);n.trigger(s,{type:s,seriesId:t.id,name:(0,i.isArray)(u)?c.getName(u[0]):c.getName(u),selected:(0,i.isString)(o)?o:(0,i.extend)({},o)})}}))}function s(t,e,n){t.on("selectchanged",(function(t){var i=n.getModel();t.isFromClick?(a("map","selectchanged",e,i,t),a("pie","selectchanged",e,i,t)):"select"===t.fromAction?(a("map","selected",e,i,t),a("pie","selected",e,i,t)):"unselect"===t.fromAction&&(a("map","unselected",e,i,t),a("pie","unselected",e,i,t))}))}},9078:(t,e,n)=>{"use strict";n.d(e,{A:()=>d});var i=n(528),r=n(7845),o=n(6217),a=n(1987),s=n(9902),l=n(2577),h=n(5872),c=(0,l.$r)(),u=function(t){function e(e,n,i){var r=t.call(this,e,n,i)||this;return r.uid=a.$Q("ec_cpt_model"),r}var n;return(0,i.C6)(e,t),e.prototype.init=function(t,e,n){this.mergeDefaultAndTheme(t,n)},e.prototype.mergeDefaultAndTheme=function(t,e){var n=h.ad(this),i=n?h.vs(t):{},o=e.getTheme();r.merge(t,o.get(this.mainType)),r.merge(t,this.getDefaultOption()),n&&h.YA(t,i,n)},e.prototype.mergeOption=function(t,e){r.merge(this.option,t,!0);var n=h.ad(this);n&&h.YA(this.option,t,n)},e.prototype.optionUpdated=function(t,e){},e.prototype.getDefaultOption=function(){var t=this.constructor;if(!(0,s._E)(t))return t.defaultOption;var e=c(this);if(!e.defaultOption){for(var n=[],i=t;i;){var o=i.prototype.defaultOption;o&&n.push(o),i=i.superClass}for(var a={},l=n.length-1;l>=0;l--)a=r.merge(a,n[l],!0);e.defaultOption=a}return e.defaultOption},e.prototype.getReferringComponents=function(t,e){var n=t+"Index",i=t+"Id";return(0,l.JO)(this.ecModel,t,{index:this.get(n,!0),id:this.get(i,!0)},e)},e.prototype.getBoxLayoutParams=function(){var t=this;return{left:t.get("left"),top:t.get("top"),right:t.get("right"),bottom:t.get("bottom"),width:t.get("width"),height:t.get("height")}},e.prototype.getZLevelKey=function(){return""},e.prototype.setZLevel=function(t){this.option.zlevel=t},e.protoInitialize=((n=e.prototype).type="component",n.id="",n.name="",n.mainType="",n.subType="",void(n.componentIndex=0)),e}(o.A);(0,s.q7)(u,o.A),(0,s.tQ)(u),a.A6(u),a.vf(u,(function(t){var e=[];r.each(u.getClassesByMainType(t),(function(t){e=e.concat(t.dependencies||t.prototype.dependencies||[])})),e=r.map(e,(function(t){return(0,s.CC)(t).main})),"dataset"!==t&&r.indexOf(e,"dataset")<=0&&e.unshift("dataset");return e}));const d=u},6217:(t,e,n)=>{"use strict";n.d(e,{A:()=>v});var i=n(4810),r=n(9902),o=(0,n(4449).A)([["fill","color"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["opacity"],["shadowColor"]]),a=function(){function t(){}return t.prototype.getAreaStyle=function(t,e){return o(this,t,e)},t}(),s=n(6547),l=n(1251),h=["textStyle","color"],c=["fontStyle","fontWeight","fontSize","fontFamily","padding","lineHeight","rich","width","height","overflow"],u=new l.Ay;const d=function(){function t(){}return t.prototype.getTextColor=function(t){var e=this.ecModel;return this.getShallow("color")||(!t&&e?e.get(h):null)},t.prototype.getFont=function(){return(0,s.c8)({fontStyle:this.getShallow("fontStyle"),fontWeight:this.getShallow("fontWeight"),fontSize:this.getShallow("fontSize"),fontFamily:this.getShallow("fontFamily")},this.ecModel)},t.prototype.getTextRect=function(t){for(var e={text:t,verticalAlign:this.getShallow("verticalAlign")||this.getShallow("baseline")},n=0;n<c.length;n++)e[c[n]]=this.getShallow(c[n]);return u.useStyle(e),u.update(),u.getBoundingRect()},t}();var p=n(3404),f=n(3951),g=n(7845),m=function(){function t(t,e,n){this.parentModel=e,this.ecModel=n,this.option=t}return t.prototype.init=function(t,e,n){for(var i=[],r=3;r<arguments.length;r++)i[r-3]=arguments[r]},t.prototype.mergeOption=function(t,e){(0,g.merge)(this.option,t,!0)},t.prototype.get=function(t,e){return null==t?this.option:this._doGet(this.parsePath(t),!e&&this.parentModel)},t.prototype.getShallow=function(t,e){var n=this.option,i=null==n?n:n[t];if(null==i&&!e){var r=this.parentModel;r&&(i=r.getShallow(t))}return i},t.prototype.getModel=function(e,n){var i=null!=e,r=i?this.parsePath(e):null;return new t(i?this._doGet(r):this.option,n=n||this.parentModel&&this.parentModel.getModel(this.resolveParentPath(r)),this.ecModel)},t.prototype.isEmpty=function(){return null==this.option},t.prototype.restoreData=function(){},t.prototype.clone=function(){return new(0,this.constructor)((0,g.clone)(this.option))},t.prototype.parsePath=function(t){return"string"==typeof t?t.split("."):t},t.prototype.resolveParentPath=function(t){return t},t.prototype.isAnimationEnabled=function(){if(!i.A.node&&this.option){if(null!=this.option.animation)return!!this.option.animation;if(this.parentModel)return this.parentModel.isAnimationEnabled()}},t.prototype._doGet=function(t,e){var n=this.option;if(!t)return n;for(var i=0;i<t.length&&(!t[i]||null!=(n=n&&"object"==typeof n?n[t[i]]:null));i++);return null==n&&e&&(n=e._doGet(this.resolveParentPath(t),e.parentModel)),n},t}();(0,r.gq)(m),(0,r.Od)(m),(0,g.mixin)(m,p.J),(0,g.mixin)(m,f.s),(0,g.mixin)(m,a),(0,g.mixin)(m,d);const v=m},1996:(t,e,n)=>{"use strict";n.d(e,{A:()=>A,U:()=>v});var i=n(528),r=n(7845),o=n(4810),a=n(2577),s=n(9078),l=n(8644),h=n(5864),c=n(5872),u=n(1566),d=n(9902),p=n(4453),f=n(8254),g=a.$r();function m(t,e){return t.getName(e)||t.getId(e)}var v="__universalTransitionEnabled",y=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e._selectedDataIndicesMap={},e}var n;return(0,i.C6)(e,t),e.prototype.init=function(t,e,n){this.seriesIndex=this.componentIndex,this.dataTask=(0,u.U)({count:x,reset:b}),this.dataTask.context={model:this},this.mergeDefaultAndTheme(t,n),(g(this).sourceManager=new p.R(this)).prepareSource();var i=this.getInitialData(t,n);S(i,this),this.dataTask.context.data=i,g(this).dataBeforeProcessed=i,_(this),this._initSelectedMapFromData(i)},e.prototype.mergeDefaultAndTheme=function(t,e){var n=(0,c.ad)(this),i=n?(0,c.vs)(t):{},o=this.subType;s.A.hasClass(o)&&(o+="Series"),r.merge(t,e.getTheme().get(this.subType)),r.merge(t,this.getDefaultOption()),a.M5(t,"label",["show"]),this.fillDataTextStyle(t.data),n&&(0,c.YA)(t,i,n)},e.prototype.mergeOption=function(t,e){t=r.merge(this.option,t,!0),this.fillDataTextStyle(t.data);var n=(0,c.ad)(this);n&&(0,c.YA)(this.option,t,n);var i=g(this).sourceManager;i.dirty(),i.prepareSource();var o=this.getInitialData(t,e);S(o,this),this.dataTask.dirty(),this.dataTask.context.data=o,g(this).dataBeforeProcessed=o,_(this),this._initSelectedMapFromData(o)},e.prototype.fillDataTextStyle=function(t){if(t&&!r.isTypedArray(t))for(var e=["show"],n=0;n<t.length;n++)t[n]&&t[n].label&&a.M5(t[n],"label",e)},e.prototype.getInitialData=function(t,e){},e.prototype.appendData=function(t){this.getRawData().appendData(t.data)},e.prototype.getData=function(t){var e=M(this);if(e){var n=e.context.data;return null!=t&&n.getLinkedData?n.getLinkedData(t):n}return g(this).data},e.prototype.getAllData=function(){var t=this.getData();return t&&t.getLinkedDataAll?t.getLinkedDataAll():[{data:t}]},e.prototype.setData=function(t){var e=M(this);if(e){var n=e.context;n.outputData=t,e!==this.dataTask&&(n.data=t)}g(this).data=t},e.prototype.getEncode=function(){var t=this.get("encode",!0);if(t)return r.createHashMap(t)},e.prototype.getSourceManager=function(){return g(this).sourceManager},e.prototype.getSource=function(){return this.getSourceManager().getSource()},e.prototype.getRawData=function(){return g(this).dataBeforeProcessed},e.prototype.getColorBy=function(){return this.get("colorBy")||"series"},e.prototype.isColorBySeries=function(){return"series"===this.getColorBy()},e.prototype.getBaseAxis=function(){var t=this.coordinateSystem;return t&&t.getBaseAxis&&t.getBaseAxis()},e.prototype.formatTooltip=function(t,e,n){return(0,f.J)({series:this,dataIndex:t,multipleSeries:e})},e.prototype.isAnimationEnabled=function(){var t=this.ecModel;if(o.A.node&&(!t||!t.ssr))return!1;var e=this.getShallow("animation");return e&&this.getData().count()>this.getShallow("animationThreshold")&&(e=!1),!!e},e.prototype.restoreData=function(){this.dataTask.dirty()},e.prototype.getColorFromPalette=function(t,e,n){var i=this.ecModel,r=l.X.prototype.getColorFromPalette.call(this,t,e,n);return r||(r=i.getColorFromPalette(t,e,n)),r},e.prototype.coordDimToDataDim=function(t){return this.getRawData().mapDimensionsAll(t)},e.prototype.getProgressive=function(){return this.get("progressive")},e.prototype.getProgressiveThreshold=function(){return this.get("progressiveThreshold")},e.prototype.select=function(t,e){this._innerSelect(this.getData(e),t)},e.prototype.unselect=function(t,e){var n=this.option.selectedMap;if(n){var i=this.option.selectedMode,r=this.getData(e);if("series"===i||"all"===n)return this.option.selectedMap={},void(this._selectedDataIndicesMap={});for(var o=0;o<t.length;o++){var a=m(r,t[o]);n[a]=!1,this._selectedDataIndicesMap[a]=-1}}},e.prototype.toggleSelect=function(t,e){for(var n=[],i=0;i<t.length;i++)n[0]=t[i],this.isSelected(t[i],e)?this.unselect(n,e):this.select(n,e)},e.prototype.getSelectedDataIndices=function(){if("all"===this.option.selectedMap)return[].slice.call(this.getData().getIndices());for(var t=this._selectedDataIndicesMap,e=r.keys(t),n=[],i=0;i<e.length;i++){var o=t[e[i]];o>=0&&n.push(o)}return n},e.prototype.isSelected=function(t,e){var n=this.option.selectedMap;if(!n)return!1;var i=this.getData(e);return("all"===n||n[m(i,t)])&&!i.getItemModel(t).get(["select","disabled"])},e.prototype.isUniversalTransitionEnabled=function(){if(this[v])return!0;var t=this.option.universalTransition;return!!t&&(!0===t||t&&t.enabled)},e.prototype._innerSelect=function(t,e){var n,i,o=this.option,a=o.selectedMode,s=e.length;if(a&&s)if("series"===a)o.selectedMap="all";else if("multiple"===a){r.isObject(o.selectedMap)||(o.selectedMap={});for(var l=o.selectedMap,h=0;h<s;h++){var c=e[h];l[d=m(t,c)]=!0,this._selectedDataIndicesMap[d]=t.getRawIndex(c)}}else if("single"===a||!0===a){var u=e[s-1],d=m(t,u);o.selectedMap=((n={})[d]=!0,n),this._selectedDataIndicesMap=((i={})[d]=t.getRawIndex(u),i)}},e.prototype._initSelectedMapFromData=function(t){if(!this.option.selectedMap){var e=[];t.hasItemOption&&t.each((function(n){var i=t.getRawDataItem(n);i&&i.selected&&e.push(n)})),e.length>0&&this._innerSelect(t,e)}},e.registerClass=function(t){return s.A.registerClass(t)},e.protoInitialize=((n=e.prototype).type="series.__base__",n.seriesIndex=0,n.ignoreStyleOnData=!1,n.hasSymbolVisual=!1,n.defaultSymbol="circle",n.visualStyleAccessPath="itemStyle",void(n.visualDrawType="fill")),e}(s.A);function _(t){var e=t.name;a.O0(t)||(t.name=function(t){var e=t.getRawData(),n=e.mapDimensionsAll("seriesName"),i=[];return r.each(n,(function(t){var n=e.getDimensionInfo(t);n.displayName&&i.push(n.displayName)})),i.join(" ")}(t)||e)}function x(t){return t.model.getRawData().count()}function b(t){var e=t.model;return e.setData(e.getRawData().cloneShallow()),w}function w(t,e){e.outputData&&t.end>e.outputData.count()&&e.model.getRawData().cloneShallow(e.outputData)}function S(t,e){r.each(r.concatArray(t.CHANGABLE_METHODS,t.DOWNSAMPLE_METHODS),(function(n){t.wrapMethod(n,r.curry(T,e))}))}function T(t,e){var n=M(t);return n&&n.setOutputEnd((e||this).count()),e}function M(t){var e=(t.ecModel||{}).scheduler,n=e&&e.getPipeline(t.uid);if(n){var i=n.currentTask;if(i){var r=i.agentStubMap;r&&(i=r.get(t.uid))}return i}}r.mixin(y,h.J),r.mixin(y,l.X),(0,d.q7)(y,s.A);const A=y},7997:(t,e,n)=>{"use strict";n.d(e,{S:()=>o,a:()=>a});var i=n(7845),r=(0,i.createHashMap)();function o(t,e){(0,i.assert)(null==r.get(t)&&e),r.set(t,e)}function a(t,e,n){var i=r.get(e);if(!i)return n;var o=i(t);return o?n.concat(o):n}},5864:(t,e,n)=>{"use strict";n.d(e,{J:()=>s,L:()=>l});var i=n(7845),r=n(6112),o=n(5065),a=/\{@(.+?)\}/g,s=function(){function t(){}return t.prototype.getDataParams=function(t,e){var n=this.getData(e),i=this.getRawValue(t,e),r=n.getRawIndex(t),o=n.getName(t),a=n.getRawDataItem(t),s=n.getItemVisual(t,"style"),l=s&&s[n.getItemVisual(t,"drawType")||"fill"],h=s&&s.stroke,c=this.mainType,u="series"===c,d=n.userOutput&&n.userOutput.get();return{componentType:c,componentSubType:this.subType,componentIndex:this.componentIndex,seriesType:u?this.subType:null,seriesIndex:this.seriesIndex,seriesId:u?this.id:null,seriesName:u?this.name:null,name:o,dataIndex:r,data:a,dataType:e,value:i,color:l,borderColor:h,dimensionNames:d?d.fullDimensions:null,encode:d?d.encode:null,$vars:["seriesName","name","value"]}},t.prototype.getFormattedLabel=function(t,e,n,s,l,h){e=e||"normal";var c=this.getData(n),u=this.getDataParams(t,n);(h&&(u.value=h.interpolatedValue),null!=s&&i.isArray(u.value)&&(u.value=u.value[s]),l)||(l=c.getItemModel(t).get("normal"===e?["label","formatter"]:[e,"label","formatter"]));return i.isFunction(l)?(u.status=e,u.dimensionIndex=s,l(u)):i.isString(l)?(0,o.YK)(l,u).replace(a,(function(e,n){var o=n.length,a=n;"["===a.charAt(0)&&"]"===a.charAt(o-1)&&(a=+a.slice(1,o-1));var s=(0,r.QE)(c,t,a);if(h&&i.isArray(h.interpolatedValue)){var l=c.getDimensionIndex(a);l>=0&&(s=h.interpolatedValue[l])}return null!=s?s+"":""})):void 0},t.prototype.getRawValue=function(t,e){return(0,r.QE)(this.getData(e),t)},t.prototype.formatTooltip=function(t,e,n){},t}();function l(t){var e,n;return i.isObject(t)?t.type&&(n=t):e=t,{text:e,frag:n}}},3951:(t,e,n)=>{"use strict";n.d(e,{L:()=>r,s:()=>a});var i=n(4449),r=[["fill","color"],["stroke","borderColor"],["lineWidth","borderWidth"],["opacity"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["shadowColor"],["lineDash","borderType"],["lineDashOffset","borderDashOffset"],["lineCap","borderCap"],["lineJoin","borderJoin"],["miterLimit","borderMiterLimit"]],o=(0,i.A)(r),a=function(){function t(){}return t.prototype.getItemStyle=function(t,e){return o(this,t,e)},t}()},3404:(t,e,n)=>{"use strict";n.d(e,{J:()=>a,m:()=>r});var i=n(4449),r=[["lineWidth","width"],["stroke","color"],["opacity"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["shadowColor"],["lineDash","type"],["lineDashOffset","dashOffset"],["lineCap","cap"],["lineJoin","join"],["miterLimit"]],o=(0,i.A)(r),a=function(){function t(){}return t.prototype.getLineStyle=function(t){return o(this,t)},t}()},4449:(t,e,n)=>{"use strict";n.d(e,{A:()=>r});var i=n(7845);function r(t,e){for(var n=0;n<t.length;n++)t[n][1]||(t[n][1]=t[n][0]);return e=e||!1,function(n,r,o){for(var a={},s=0;s<t.length;s++){var l=t[s][1];if(!(r&&i.indexOf(r,l)>=0||o&&i.indexOf(o,l)<0)){var h=n.getShallow(l,e);null!=h&&(a[t[s][0]]=h)}}return a}}},8644:(t,e,n)=>{"use strict";n.d(e,{X:()=>a,x:()=>s});var i=n(2577),r=(0,i.$r)(),o=(0,i.$r)(),a=function(){function t(){}return t.prototype.getColorFromPalette=function(t,e,n){var o=(0,i.qB)(this.get("color",!0)),a=this.get("colorLayer",!0);return l(this,r,o,a,t,e,n)},t.prototype.clearColorPalette=function(){var t,e;(e=r)(t=this).paletteIdx=0,e(t).paletteNameMap={}},t}();function s(t,e,n,r){var a=(0,i.qB)(t.get(["aria","decal","decals"]));return l(t,o,a,null,e,n,r)}function l(t,e,n,i,r,o,a){var s=e(o=o||t),l=s.paletteIdx||0,h=s.paletteNameMap=s.paletteNameMap||{};if(h.hasOwnProperty(r))return h[r];var c=null!=a&&i?function(t,e){for(var n=t.length,i=0;i<n;i++)if(t[i].length>e)return t[i];return t[n-1]}(i,a):n;if((c=c||n)&&c.length){var u=c[l];return r&&(h[r]=u),s.paletteIdx=(l+1)%c.length,u}}},1829:(t,e,n)=>{"use strict";n.d(e,{a:()=>b});var i=n(9875),r=n(7845),o=n(528),a=n(2510),s=n(4804),l=n(674),h=n(5383),c=n(5667),u=n(9142);function d(t,e,n){var i=u.yh.createCanvas(),r=e.getWidth(),o=e.getHeight(),a=i.style;return a&&(a.position="absolute",a.left="0",a.top="0",a.width=r+"px",a.height=o+"px",i.setAttribute("data-zr-dom-id",t)),i.width=r*n,i.height=o*n,i}const p=function(t){function e(e,n,o){var a,s=t.call(this)||this;s.motionBlur=!1,s.lastFrameAlpha=.7,s.dpr=1,s.virtual=!1,s.config={},s.incremental=!1,s.zlevel=0,s.maxRepaintRectCount=5,s.__dirty=!0,s.__firstTimePaint=!0,s.__used=!1,s.__drawIndex=0,s.__startIndex=0,s.__endIndex=0,s.__prevStartIndex=null,s.__prevEndIndex=null,o=o||i.Y5,"string"==typeof e?a=d(e,n,o):r.isObject(e)&&(e=(a=e).id),s.id=e,s.dom=a;var l=a.style;return l&&(r.disableUserSelect(a),a.onselectstart=function(){return!1},l.padding="0",l.margin="0",l.borderWidth="0"),s.painter=n,s.dpr=o,s}return(0,o.C6)(e,t),e.prototype.getElementCount=function(){return this.__endIndex-this.__startIndex},e.prototype.afterBrush=function(){this.__prevStartIndex=this.__startIndex,this.__prevEndIndex=this.__endIndex},e.prototype.initContext=function(){this.ctx=this.dom.getContext("2d"),this.ctx.dpr=this.dpr},e.prototype.setUnpainted=function(){this.__firstTimePaint=!0},e.prototype.createBackBuffer=function(){var t=this.dpr;this.domBack=d("back-"+this.id,this.painter,t),this.ctxBack=this.domBack.getContext("2d"),1!==t&&this.ctxBack.scale(t,t)},e.prototype.createRepaintRects=function(t,e,n,i){if(this.__firstTimePaint)return this.__firstTimePaint=!1,null;var r,o=[],a=this.maxRepaintRectCount,s=!1,l=new h.A(0,0,0,0);function u(t){if(t.isFinite()&&!t.isZero())if(0===o.length){(e=new h.A(0,0,0,0)).copy(t),o.push(e)}else{for(var e,n=!1,i=1/0,r=0,c=0;c<o.length;++c){var u=o[c];if(u.intersect(t)){var d=new h.A(0,0,0,0);d.copy(u),d.union(t),o[c]=d,n=!0;break}if(s){l.copy(t),l.union(u);var p=t.width*t.height,f=u.width*u.height,g=l.width*l.height-p-f;g<i&&(i=g,r=c)}}if(s&&(o[r].union(t),n=!0),!n)(e=new h.A(0,0,0,0)).copy(t),o.push(e);s||(s=o.length>=a)}}for(var d=this.__startIndex;d<this.__endIndex;++d){if(g=t[d]){var p=g.shouldBePainted(n,i,!0,!0);(m=g.__isRendered&&(g.__dirty&c.M||!p)?g.getPrevPaintRect():null)&&u(m);var f=p&&(g.__dirty&c.M||!g.__isRendered)?g.getPaintRect():null;f&&u(f)}}for(d=this.__prevStartIndex;d<this.__prevEndIndex;++d){var g,m;p=(g=e[d])&&g.shouldBePainted(n,i,!0,!0);if(g&&(!p||!g.__zr)&&g.__isRendered)(m=g.getPrevPaintRect())&&u(m)}do{r=!1;for(d=0;d<o.length;)if(o[d].isZero())o.splice(d,1);else{for(var v=d+1;v<o.length;)o[d].intersect(o[v])?(r=!0,o[d].union(o[v]),o.splice(v,1)):v++;d++}}while(r);return this._paintRects=o,o},e.prototype.debugGetPaintRects=function(){return(this._paintRects||[]).slice()},e.prototype.resize=function(t,e){var n=this.dpr,i=this.dom,r=i.style,o=this.domBack;r&&(r.width=t+"px",r.height=e+"px"),i.width=t*n,i.height=e*n,o&&(o.width=t*n,o.height=e*n,1!==n&&this.ctxBack.scale(n,n))},e.prototype.clear=function(t,e,n){var i=this.dom,o=this.ctx,a=i.width,h=i.height;e=e||this.clearColor;var c=this.motionBlur&&!t,u=this.lastFrameAlpha,d=this.dpr,p=this;c&&(this.domBack||this.createBackBuffer(),this.ctxBack.globalCompositeOperation="copy",this.ctxBack.drawImage(i,0,0,a/d,h/d));var f=this.domBack;function g(t,n,i,a){if(o.clearRect(t,n,i,a),e&&"transparent"!==e){var h=void 0;if(r.isGradientObject(e))h=(e.global||e.__width===i&&e.__height===a)&&e.__canvasGradient||(0,s.Ff)(o,e,{x:0,y:0,width:i,height:a}),e.__canvasGradient=h,e.__width=i,e.__height=a;else r.isImagePatternObject(e)&&(e.scaleX=e.scaleX||d,e.scaleY=e.scaleY||d,h=(0,l.ZQ)(o,e,{dirty:function(){p.setUnpainted(),p.painter.refresh()}}));o.save(),o.fillStyle=h||e,o.fillRect(t,n,i,a),o.restore()}c&&(o.save(),o.globalAlpha=u,o.drawImage(f,t,n,i,a),o.restore())}!n||c?g(0,0,a,h):n.length&&r.each(n,(function(t){g(t.x*d,t.y*d,t.width*d,t.height*d)}))},e}(a.A);var f=n(3358),g=n(4810),m=1e5,v=314159,y=.01;var _=function(){function t(t,e,n,o){this.type="canvas",this._zlevelList=[],this._prevDisplayList=[],this._layers={},this._layerConfig={},this._needsManuallyCompositing=!1,this.type="canvas";var a=!t.nodeName||"CANVAS"===t.nodeName.toUpperCase();this._opts=n=r.extend({},n||{}),this.dpr=n.devicePixelRatio||i.Y5,this._singleCanvas=a,this.root=t,t.style&&(r.disableUserSelect(t),t.innerHTML=""),this.storage=e;var l=this._zlevelList;this._prevDisplayList=[];var h=this._layers;if(a){var c=t,u=c.width,d=c.height;null!=n.width&&(u=n.width),null!=n.height&&(d=n.height),this.dpr=n.devicePixelRatio||1,c.width=u*this.dpr,c.height=d*this.dpr,this._width=u,this._height=d;var f=new p(c,this,this.dpr);f.__builtin__=!0,f.initContext(),h[314159]=f,f.zlevel=v,l.push(v),this._domRoot=t}else{this._width=(0,s.YC)(t,0,n),this._height=(0,s.YC)(t,1,n);var g=this._domRoot=function(t,e){var n=document.createElement("div");return n.style.cssText=["position:relative","width:"+t+"px","height:"+e+"px","padding:0","margin:0","border-width:0"].join(";")+";",n}(this._width,this._height);t.appendChild(g)}}return t.prototype.getType=function(){return"canvas"},t.prototype.isSingleCanvas=function(){return this._singleCanvas},t.prototype.getViewportRoot=function(){return this._domRoot},t.prototype.getViewportRootOffset=function(){var t=this.getViewportRoot();if(t)return{offsetLeft:t.offsetLeft||0,offsetTop:t.offsetTop||0}},t.prototype.refresh=function(t){var e=this.storage.getDisplayList(!0),n=this._prevDisplayList,i=this._zlevelList;this._redrawId=Math.random(),this._paintList(e,n,t,this._redrawId);for(var r=0;r<i.length;r++){var o=i[r],a=this._layers[o];if(!a.__builtin__&&a.refresh){var s=0===r?this._backgroundColor:null;a.refresh(s)}}return this._opts.useDirtyRect&&(this._prevDisplayList=e.slice()),this},t.prototype.refreshHover=function(){this._paintHoverList(this.storage.getDisplayList(!1))},t.prototype._paintHoverList=function(t){var e=t.length,n=this._hoverlayer;if(n&&n.clear(),e){for(var i,r={inHover:!0,viewWidth:this._width,viewHeight:this._height},o=0;o<e;o++){var a=t[o];a.__inHover&&(n||(n=this._hoverlayer=this.getLayer(m)),i||(i=n.ctx).save(),(0,l.V$)(i,a,r,o===e-1))}i&&i.restore()}},t.prototype.getHoverLayer=function(){return this.getLayer(m)},t.prototype.paintOne=function(t,e){(0,l.Xi)(t,e)},t.prototype._paintList=function(t,e,n,i){if(this._redrawId===i){n=n||!1,this._updateLayerStatus(t);var r=this._doPaintList(t,e,n),o=r.finished,a=r.needsRefreshHover;if(this._needsManuallyCompositing&&this._compositeManually(),a&&this._paintHoverList(t),o)this.eachLayer((function(t){t.afterBrush&&t.afterBrush()}));else{var s=this;(0,f.A)((function(){s._paintList(t,e,n,i)}))}}},t.prototype._compositeManually=function(){var t=this.getLayer(v).ctx,e=this._domRoot.width,n=this._domRoot.height;t.clearRect(0,0,e,n),this.eachBuiltinLayer((function(i){i.virtual&&t.drawImage(i.dom,0,0,e,n)}))},t.prototype._doPaintList=function(t,e,n){for(var i=this,o=[],a=this._opts.useDirtyRect,s=0;s<this._zlevelList.length;s++){var l=this._zlevelList[s],h=this._layers[l];h.__builtin__&&h!==this._hoverlayer&&(h.__dirty||n)&&o.push(h)}for(var c=!0,u=!1,d=function(r){var s,l=o[r],h=l.ctx,d=a&&l.createRepaintRects(t,e,p._width,p._height),f=n?l.__startIndex:l.__drawIndex,g=!n&&l.incremental&&Date.now,m=g&&Date.now(),v=l.zlevel===p._zlevelList[0]?p._backgroundColor:null;if(l.__startIndex===l.__endIndex)l.clear(!1,v,d);else if(f===l.__startIndex){var y=t[f];y.incremental&&y.notClear&&!n||l.clear(!1,v,d)}-1===f&&(console.error("For some unknown reason. drawIndex is -1"),f=l.__startIndex);var _=function(e){var n={inHover:!1,allClipped:!1,prevEl:null,viewWidth:i._width,viewHeight:i._height};for(s=f;s<l.__endIndex;s++){var r=t[s];if(r.__inHover&&(u=!0),i._doPaintEl(r,l,a,e,n,s===l.__endIndex-1),g)if(Date.now()-m>15)break}n.prevElClipPaths&&h.restore()};if(d)if(0===d.length)s=l.__endIndex;else for(var x=p.dpr,b=0;b<d.length;++b){var w=d[b];h.save(),h.beginPath(),h.rect(w.x*x,w.y*x,w.width*x,w.height*x),h.clip(),_(w),h.restore()}else h.save(),_(),h.restore();l.__drawIndex=s,l.__drawIndex<l.__endIndex&&(c=!1)},p=this,f=0;f<o.length;f++)d(f);return g.A.wxa&&r.each(this._layers,(function(t){t&&t.ctx&&t.ctx.draw&&t.ctx.draw()})),{finished:c,needsRefreshHover:u}},t.prototype._doPaintEl=function(t,e,n,i,r,o){var a=e.ctx;if(n){var s=t.getPaintRect();(!i||s&&s.intersect(i))&&((0,l.V$)(a,t,r,o),t.setPrevPaintRect(s))}else(0,l.V$)(a,t,r,o)},t.prototype.getLayer=function(t,e){this._singleCanvas&&!this._needsManuallyCompositing&&(t=v);var n=this._layers[t];return n||((n=new p("zr_"+t,this,this.dpr)).zlevel=t,n.__builtin__=!0,this._layerConfig[t]?r.merge(n,this._layerConfig[t],!0):this._layerConfig[t-y]&&r.merge(n,this._layerConfig[t-y],!0),e&&(n.virtual=e),this.insertLayer(t,n),n.initContext()),n},t.prototype.insertLayer=function(t,e){var n=this._layers,i=this._zlevelList,r=i.length,o=this._domRoot,a=null,s=-1;if(!n[t]&&function(t){return!!t&&(!!t.__builtin__||"function"==typeof t.resize&&"function"==typeof t.refresh)}(e)){if(r>0&&t>i[0]){for(s=0;s<r-1&&!(i[s]<t&&i[s+1]>t);s++);a=n[i[s]]}if(i.splice(s+1,0,t),n[t]=e,!e.virtual)if(a){var l=a.dom;l.nextSibling?o.insertBefore(e.dom,l.nextSibling):o.appendChild(e.dom)}else o.firstChild?o.insertBefore(e.dom,o.firstChild):o.appendChild(e.dom);e.painter||(e.painter=this)}},t.prototype.eachLayer=function(t,e){for(var n=this._zlevelList,i=0;i<n.length;i++){var r=n[i];t.call(e,this._layers[r],r)}},t.prototype.eachBuiltinLayer=function(t,e){for(var n=this._zlevelList,i=0;i<n.length;i++){var r=n[i],o=this._layers[r];o.__builtin__&&t.call(e,o,r)}},t.prototype.eachOtherLayer=function(t,e){for(var n=this._zlevelList,i=0;i<n.length;i++){var r=n[i],o=this._layers[r];o.__builtin__||t.call(e,o,r)}},t.prototype.getLayers=function(){return this._layers},t.prototype._updateLayerStatus=function(t){function e(t){a&&(a.__endIndex!==t&&(a.__dirty=!0),a.__endIndex=t)}if(this.eachBuiltinLayer((function(t,e){t.__dirty=t.__used=!1})),this._singleCanvas)for(var n=1;n<t.length;n++){if((l=t[n]).zlevel!==t[n-1].zlevel||l.incremental){this._needsManuallyCompositing=!0;break}}var i,o,a=null,s=0;for(o=0;o<t.length;o++){var l,h=(l=t[o]).zlevel,u=void 0;i!==h&&(i=h,s=0),l.incremental?((u=this.getLayer(h+.001,this._needsManuallyCompositing)).incremental=!0,s=1):u=this.getLayer(h+(s>0?y:0),this._needsManuallyCompositing),u.__builtin__||r.logError("ZLevel "+h+" has been used by unkown layer "+u.id),u!==a&&(u.__used=!0,u.__startIndex!==o&&(u.__dirty=!0),u.__startIndex=o,u.incremental?u.__drawIndex=-1:u.__drawIndex=o,e(o),a=u),l.__dirty&c.M&&!l.__inHover&&(u.__dirty=!0,u.incremental&&u.__drawIndex<0&&(u.__drawIndex=o))}e(o),this.eachBuiltinLayer((function(t,e){!t.__used&&t.getElementCount()>0&&(t.__dirty=!0,t.__startIndex=t.__endIndex=t.__drawIndex=0),t.__dirty&&t.__drawIndex<0&&(t.__drawIndex=t.__startIndex)}))},t.prototype.clear=function(){return this.eachBuiltinLayer(this._clearLayer),this},t.prototype._clearLayer=function(t){t.clear()},t.prototype.setBackgroundColor=function(t){this._backgroundColor=t,r.each(this._layers,(function(t){t.setUnpainted()}))},t.prototype.configLayer=function(t,e){if(e){var n=this._layerConfig;n[t]?r.merge(n[t],e,!0):n[t]=e;for(var i=0;i<this._zlevelList.length;i++){var o=this._zlevelList[i];if(o===t||o===t+y){var a=this._layers[o];r.merge(a,n[t],!0)}}}},t.prototype.delLayer=function(t){var e=this._layers,n=this._zlevelList,i=e[t];i&&(i.dom.parentNode.removeChild(i.dom),delete e[t],n.splice(r.indexOf(n,t),1))},t.prototype.resize=function(t,e){if(this._domRoot.style){var n=this._domRoot;n.style.display="none";var i=this._opts,r=this.root;if(null!=t&&(i.width=t),null!=e&&(i.height=e),t=(0,s.YC)(r,0,i),e=(0,s.YC)(r,1,i),n.style.display="",this._width!==t||e!==this._height){for(var o in n.style.width=t+"px",n.style.height=e+"px",this._layers)this._layers.hasOwnProperty(o)&&this._layers[o].resize(t,e);this.refresh(!0)}this._width=t,this._height=e}else{if(null==t||null==e)return;this._width=t,this._height=e,this.getLayer(v).resize(t,e)}return this},t.prototype.clearLayer=function(t){var e=this._layers[t];e&&e.clear()},t.prototype.dispose=function(){this.root.innerHTML="",this.root=this.storage=this._domRoot=this._layers=null},t.prototype.getRenderedCanvas=function(t){if(t=t||{},this._singleCanvas&&!this._compositeManually)return this._layers[314159].dom;var e=new p("image",this,t.pixelRatio||this.dpr);e.initContext(),e.clear(!1,t.backgroundColor||this._backgroundColor);var n=e.ctx;if(t.pixelRatio<=this.dpr){this.refresh();var i=e.dom.width,r=e.dom.height;this.eachLayer((function(t){t.__builtin__?n.drawImage(t.dom,0,0,i,r):t.renderToCanvas&&(n.save(),t.renderToCanvas(n),n.restore())}))}else for(var o={inHover:!1,viewWidth:this._width,viewHeight:this._height},a=this.storage.getDisplayList(!0),s=0,h=a.length;s<h;s++){var c=a[s];(0,l.V$)(n,c,o,s===h-1)}return e.dom},t.prototype.getWidth=function(){return this._width},t.prototype.getHeight=function(){return this._height},t}();const x=_;function b(t){t.registerPainter("canvas",x)}},2670:(t,e,n)=>{"use strict";n.d(e,{A:()=>c});var i=n(528),r=n(8883),o=n(5065),a=n(9476),s=n(3115),l=r.LI,h=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="interval",e._interval=0,e._intervalPrecision=2,e}return(0,i.C6)(e,t),e.prototype.parse=function(t){return t},e.prototype.contain=function(t){return s.lP(t,this._extent)},e.prototype.normalize=function(t){return s.S8(t,this._extent)},e.prototype.scale=function(t){return s.hs(t,this._extent)},e.prototype.setExtent=function(t,e){var n=this._extent;isNaN(t)||(n[0]=parseFloat(t)),isNaN(e)||(n[1]=parseFloat(e))},e.prototype.unionExtent=function(t){var e=this._extent;t[0]<e[0]&&(e[0]=t[0]),t[1]>e[1]&&(e[1]=t[1]),this.setExtent(e[0],e[1])},e.prototype.getInterval=function(){return this._interval},e.prototype.setInterval=function(t){this._interval=t,this._niceExtent=this._extent.slice(),this._intervalPrecision=s.u$(t)},e.prototype.getTicks=function(t){var e=this._interval,n=this._extent,i=this._niceExtent,r=this._intervalPrecision,o=[];if(!e)return o;n[0]<i[0]&&(t?o.push({value:l(i[0]-e,r)}):o.push({value:n[0]}));for(var a=i[0];a<=i[1]&&(o.push({value:a}),(a=l(a+e,r))!==o[o.length-1].value);)if(o.length>1e4)return[];var s=o.length?o[o.length-1].value:i[1];return n[1]>s&&(t?o.push({value:l(s+e,r)}):o.push({value:n[1]})),o},e.prototype.getMinorTicks=function(t){for(var e=this.getTicks(!0),n=[],i=this.getExtent(),r=1;r<e.length;r++){for(var o=e[r],a=e[r-1],s=0,h=[],c=(o.value-a.value)/t;s<t-1;){var u=l(a.value+(s+1)*c);u>i[0]&&u<i[1]&&h.push(u),s++}n.push(h)}return n},e.prototype.getLabel=function(t,e){if(null==t)return"";var n=e&&e.precision;null==n?n=r.XV(t.value)||0:"auto"===n&&(n=this._intervalPrecision);var i=l(t.value,n,!0);return o.ob(i)},e.prototype.calcNiceTicks=function(t,e,n){t=t||5;var i=this._extent,r=i[1]-i[0];if(isFinite(r)){r<0&&(r=-r,i.reverse());var o=s.xh(i,t,e,n);this._intervalPrecision=o.intervalPrecision,this._interval=o.interval,this._niceExtent=o.niceTickExtent}},e.prototype.calcNiceExtent=function(t){var e=this._extent;if(e[0]===e[1])if(0!==e[0]){var n=Math.abs(e[0]);t.fixMax||(e[1]+=n/2),e[0]-=n/2}else e[1]=1;var i=e[1]-e[0];isFinite(i)||(e[0]=0,e[1]=1),this.calcNiceTicks(t.splitNumber,t.minInterval,t.maxInterval);var r=this._interval;t.fixMin||(e[0]=l(Math.floor(e[0]/r)*r)),t.fixMax||(e[1]=l(Math.ceil(e[1]/r)*r))},e.prototype.setNiceExtent=function(t,e){this._niceExtent=[t,e]},e.type="interval",e}(a.A);a.A.registerClass(h);const c=h},1707:(t,e,n)=>{"use strict";n.d(e,{A:()=>h});var i=n(528),r=n(9476),o=n(5900),a=n(3115),s=n(7845),l=function(t){function e(e){var n=t.call(this,e)||this;n.type="ordinal";var i=n.getSetting("ordinalMeta");return i||(i=new o.A({})),(0,s.isArray)(i)&&(i=new o.A({categories:(0,s.map)(i,(function(t){return(0,s.isObject)(t)?t.value:t}))})),n._ordinalMeta=i,n._extent=n.getSetting("extent")||[0,i.categories.length-1],n}return(0,i.C6)(e,t),e.prototype.parse=function(t){return null==t?NaN:(0,s.isString)(t)?this._ordinalMeta.getOrdinal(t):Math.round(t)},e.prototype.contain=function(t){return t=this.parse(t),a.lP(t,this._extent)&&null!=this._ordinalMeta.categories[t]},e.prototype.normalize=function(t){return t=this._getTickNumber(this.parse(t)),a.S8(t,this._extent)},e.prototype.scale=function(t){return t=Math.round(a.hs(t,this._extent)),this.getRawOrdinalNumber(t)},e.prototype.getTicks=function(){for(var t=[],e=this._extent,n=e[0];n<=e[1];)t.push({value:n}),n++;return t},e.prototype.getMinorTicks=function(t){},e.prototype.setSortInfo=function(t){if(null!=t){for(var e=t.ordinalNumbers,n=this._ordinalNumbersByTick=[],i=this._ticksByOrdinalNumber=[],r=0,o=this._ordinalMeta.categories.length,a=Math.min(o,e.length);r<a;++r){var s=e[r];n[r]=s,i[s]=r}for(var l=0;r<o;++r){for(;null!=i[l];)l++;n.push(l),i[l]=r}}else this._ordinalNumbersByTick=this._ticksByOrdinalNumber=null},e.prototype._getTickNumber=function(t){var e=this._ticksByOrdinalNumber;return e&&t>=0&&t<e.length?e[t]:t},e.prototype.getRawOrdinalNumber=function(t){var e=this._ordinalNumbersByTick;return e&&t>=0&&t<e.length?e[t]:t},e.prototype.getLabel=function(t){if(!this.isBlank()){var e=this.getRawOrdinalNumber(t.value),n=this._ordinalMeta.categories[e];return null==n?"":n+""}},e.prototype.count=function(){return this._extent[1]-this._extent[0]+1},e.prototype.unionExtentFromData=function(t,e){this.unionExtent(t.getApproximateExtent(e))},e.prototype.isInExtentRange=function(t){return t=this._getTickNumber(t),this._extent[0]<=t&&this._extent[1]>=t},e.prototype.getOrdinalMeta=function(){return this._ordinalMeta},e.prototype.calcNiceTicks=function(){},e.prototype.calcNiceExtent=function(){},e.type="ordinal",e}(r.A);r.A.registerClass(l);const h=l},9476:(t,e,n)=>{"use strict";n.d(e,{A:()=>o});var i=n(9902),r=function(){function t(t){this._setting=t||{},this._extent=[1/0,-1/0]}return t.prototype.getSetting=function(t){return this._setting[t]},t.prototype.unionExtent=function(t){var e=this._extent;t[0]<e[0]&&(e[0]=t[0]),t[1]>e[1]&&(e[1]=t[1])},t.prototype.unionExtentFromData=function(t,e){this.unionExtent(t.getApproximateExtent(e))},t.prototype.getExtent=function(){return this._extent.slice()},t.prototype.setExtent=function(t,e){var n=this._extent;isNaN(t)||(n[0]=t),isNaN(e)||(n[1]=e)},t.prototype.isInExtentRange=function(t){return this._extent[0]<=t&&this._extent[1]>=t},t.prototype.isBlank=function(){return this._isBlank},t.prototype.setBlank=function(t){this._isBlank=t},t}();i.tQ(r);const o=r},8689:(t,e,n)=>{"use strict";n.d(e,{A:()=>y});var i=n(528),r=n(8883),o=n(383),a=n(3115),s=n(2670),l=n(9476),h=n(7845),c=function(t){function e(e){var n=t.call(this,e)||this;return n.type="time",n}return(0,i.C6)(e,t),e.prototype.getLabel=function(t){var e=this.getSetting("useUTC");return(0,o.GP)(t.value,o.Lm[(0,o.$9)((0,o.ym)(this._minLevelUnit))]||o.Lm.second,e,this.getSetting("locale"))},e.prototype.getFormattedLabel=function(t,e,n){var i=this.getSetting("useUTC"),r=this.getSetting("locale");return(0,o.X_)(t,e,n,r,i)},e.prototype.getTicks=function(){var t=this._interval,e=this._extent,n=[];if(!t)return n;n.push({value:e[0],level:0});var i=this.getSetting("useUTC"),a=function(t,e,n,i){var a=1e4,s=o.F7,l=0;function c(t,e,n,r,o,a,s){for(var l=new Date(e),h=e,c=l[r]();h<n&&h<=i[1];)s.push({value:h}),c+=t,l[o](c),h=l.getTime();s.push({value:h,notAdd:!0})}function u(t,a,s){var l=[],h=!a.length;if(!function(t,e,n,i){var a=r._U(e),s=r._U(n),l=function(t){return(0,o.g0)(a,t,i)===(0,o.g0)(s,t,i)},h=function(){return l("year")},c=function(){return h()&&l("month")},u=function(){return c()&&l("day")},d=function(){return u()&&l("hour")},p=function(){return d()&&l("minute")},f=function(){return p()&&l("second")},g=function(){return f()&&l("millisecond")};switch(t){case"year":return h();case"month":return c();case"day":return u();case"hour":return d();case"minute":return p();case"second":return f();case"millisecond":return g()}}((0,o.ym)(t),i[0],i[1],n)){h&&(a=[{value:v(new Date(i[0]),t,n)},{value:i[1]}]);for(var u=0;u<a.length-1;u++){var y=a[u].value,_=a[u+1].value;if(y!==_){var x=void 0,b=void 0,w=void 0,S=!1;switch(t){case"year":x=Math.max(1,Math.round(e/o.CZ/365)),b=(0,o.hY)(n),w=(0,o.tM)(n);break;case"half-year":case"quarter":case"month":x=p(e),b=(0,o.jJ)(n),w=(0,o.xu)(n);break;case"week":case"half-week":case"day":x=d(e,31),b=(0,o.bP)(n),w=(0,o.ti)(n),S=!0;break;case"half-day":case"quarter-day":case"hour":x=f(e),b=(0,o.iC)(n),w=(0,o.Yd)(n);break;case"minute":x=g(e,!0),b=(0,o.yB)(n),w=(0,o.KF)(n);break;case"second":x=g(e,!1),b=(0,o.Wf)(n),w=(0,o.ww)(n);break;case"millisecond":x=m(e),b=(0,o.Zz)(n),w=(0,o.FP)(n)}c(x,y,_,b,w,S,l),"year"===t&&s.length>1&&0===u&&s.unshift({value:s[0].value-x})}}for(u=0;u<l.length;u++)s.push(l[u]);return l}}for(var y=[],_=[],x=0,b=0,w=0;w<s.length&&l++<a;++w){var S=(0,o.ym)(s[w]);if((0,o.ce)(s[w]))if(u(s[w],y[y.length-1]||[],_),S!==(s[w+1]?(0,o.ym)(s[w+1]):null)){if(_.length){b=x,_.sort((function(t,e){return t.value-e.value}));for(var T=[],M=0;M<_.length;++M){var A=_[M].value;0!==M&&_[M-1].value===A||(T.push(_[M]),A>=i[0]&&A<=i[1]&&x++)}var C=(i[1]-i[0])/e;if(x>1.5*C&&b>C/1.5)break;if(y.push(T),x>C||t===s[w])break}_=[]}}0;var I=(0,h.filter)((0,h.map)(y,(function(t){return(0,h.filter)(t,(function(t){return t.value>=i[0]&&t.value<=i[1]&&!t.notAdd}))})),(function(t){return t.length>0})),E=[],k=I.length-1;for(w=0;w<I.length;++w)for(var L=I[w],D=0;D<L.length;++D)E.push({value:L[D].value,level:k-w});E.sort((function(t,e){return t.value-e.value}));var P=[];for(w=0;w<E.length;++w)0!==w&&E[w].value===E[w-1].value||P.push(E[w]);return P}(this._minLevelUnit,this._approxInterval,i,e);return(n=n.concat(a)).push({value:e[1],level:0}),n},e.prototype.calcNiceExtent=function(t){var e=this._extent;if(e[0]===e[1]&&(e[0]-=o.CZ,e[1]+=o.CZ),e[1]===-1/0&&e[0]===1/0){var n=new Date;e[1]=+new Date(n.getFullYear(),n.getMonth(),n.getDate()),e[0]=e[1]-o.CZ}this.calcNiceTicks(t.splitNumber,t.minInterval,t.maxInterval)},e.prototype.calcNiceTicks=function(t,e,n){t=t||10;var i=this._extent,r=i[1]-i[0];this._approxInterval=r/t,null!=e&&this._approxInterval<e&&(this._approxInterval=e),null!=n&&this._approxInterval>n&&(this._approxInterval=n);var o=u.length,a=Math.min(function(t,e,n,i){for(;n<i;){var r=n+i>>>1;t[r][1]<e?n=r+1:i=r}return n}(u,this._approxInterval,0,o),o-1);this._interval=u[a][1],this._minLevelUnit=u[Math.max(a-1,0)][0]},e.prototype.parse=function(t){return(0,h.isNumber)(t)?t:+r._U(t)},e.prototype.contain=function(t){return a.lP(this.parse(t),this._extent)},e.prototype.normalize=function(t){return a.S8(this.parse(t),this._extent)},e.prototype.scale=function(t){return a.hs(t,this._extent)},e.type="time",e}(s.A),u=[["second",o.OY],["minute",o.iW],["hour",o.MA],["quarter-day",6*o.MA],["half-day",12*o.MA],["day",1.2*o.CZ],["half-week",3.5*o.CZ],["week",7*o.CZ],["month",31*o.CZ],["quarter",95*o.CZ],["half-year",o.$H/2],["year",o.$H]];function d(t,e){return(t/=o.CZ)>16?16:t>7.5?7:t>3.5?4:t>1.5?2:1}function p(t){return(t/=30*o.CZ)>6?6:t>3?3:t>2?2:1}function f(t){return(t/=o.MA)>12?12:t>6?6:t>3.5?4:t>2?2:1}function g(t,e){return(t/=e?o.iW:o.OY)>30?30:t>20?20:t>15?15:t>10?10:t>5?5:t>2?2:1}function m(t){return r.Cm(t,!0)}function v(t,e,n){var i=new Date(t);switch((0,o.ym)(e)){case"year":case"month":i[(0,o.xu)(n)](0);case"day":i[(0,o.ti)(n)](1);case"hour":i[(0,o.Yd)(n)](0);case"minute":i[(0,o.KF)(n)](0);case"second":i[(0,o.ww)(n)](0),i[(0,o.FP)(n)](0)}return i.getTime()}l.A.registerClass(c);const y=c},3115:(t,e,n)=>{"use strict";n.d(e,{S8:()=>c,hs:()=>u,kH:()=>a,lP:()=>h,rf:()=>r,u$:()=>s,xh:()=>o});var i=n(8883);function r(t){return"interval"===t.type||"log"===t.type}function o(t,e,n,r){var o={},a=t[1]-t[0],h=o.interval=(0,i.Cm)(a/e,!0);null!=n&&h<n&&(h=o.interval=n),null!=r&&h>r&&(h=o.interval=r);var c=o.intervalPrecision=s(h);return function(t,e){!isFinite(t[0])&&(t[0]=e[0]),!isFinite(t[1])&&(t[1]=e[1]),l(t,0,e),l(t,1,e),t[0]>t[1]&&(t[0]=t[1])}(o.niceTickExtent=[(0,i.LI)(Math.ceil(t[0]/h)*h,c),(0,i.LI)(Math.floor(t[1]/h)*h,c)],t),o}function a(t){var e=Math.pow(10,(0,i.NX)(t)),n=t/e;return n?2===n?n=3:3===n?n=5:n*=2:n=1,(0,i.LI)(n*e)}function s(t){return(0,i.XV)(t)+2}function l(t,e,n){t[e]=Math.max(Math.min(t[e],n[1]),n[0])}function h(t,e){return t>=e[0]&&t<=e[1]}function c(t,e){return e[1]===e[0]?.5:(t-e[0])/(e[1]-e[0])}function u(t,e){return t*(e[1]-e[0])+e[0]}},9902:(t,e,n)=>{"use strict";n.d(e,{CC:()=>l,Od:()=>p,_E:()=>h,gq:()=>c,q7:()=>u,tQ:()=>m});var i=n(528),r=n(7845),o=".",a="___EC__COMPONENT__CONTAINER___",s="___EC__EXTENDED_CLASS___";function l(t){var e={main:"",sub:""};if(t){var n=t.split(o);e.main=n[0]||"",e.sub=n[1]||""}return e}function h(t){return!(!t||!t[s])}function c(t,e){t.$constructor=t,t.extend=function(t){var e,n,o=this;return n=o,r.isFunction(n)&&/^class\s/.test(Function.prototype.toString.call(n))?e=function(t){function e(){return t.apply(this,arguments)||this}return(0,i.C6)(e,t),e}(o):(e=function(){(t.$constructor||o).apply(this,arguments)},r.inherits(e,this)),r.extend(e.prototype,t),e[s]=!0,e.extend=this.extend,e.superCall=f,e.superApply=g,e.superClass=o,e}}function u(t,e){t.extend=e.extend}var d=Math.round(10*Math.random());function p(t){var e=["__\0is_clz",d++].join("_");t.prototype[e]=!0,t.isInstance=function(t){return!(!t||!t[e])}}function f(t,e){for(var n=[],i=2;i<arguments.length;i++)n[i-2]=arguments[i];return this.superClass.prototype[e].apply(t,n)}function g(t,e,n){return this.superClass.prototype[e].apply(t,n)}function m(t){var e={};t.registerClass=function(t){var n,i=t.type||t.prototype.type;if(i){n=i,r.assert(/^[a-zA-Z0-9_]+([.][a-zA-Z0-9_]+)?$/.test(n),'componentType "'+n+'" illegal'),t.prototype.type=i;var o=l(i);if(o.sub){if(o.sub!==a){var s=function(t){var n=e[t.main];n&&n[a]||((n=e[t.main]={})[a]=!0);return n}(o);s[o.sub]=t}}else e[o.main]=t}return t},t.getClass=function(t,n,i){var r=e[t];if(r&&r[a]&&(r=n?r[n]:null),i&&!r)throw new Error(n?"Component "+t+"."+(n||"")+" is used but not imported.":t+".type should be specified.");return r},t.getClassesByMainType=function(t){var n=l(t),i=[],o=e[n.main];return o&&o[a]?r.each(o,(function(t,e){e!==a&&i.push(t)})):i.push(o),i},t.hasClass=function(t){var n=l(t);return!!e[n.main]},t.getAllClassMainTypes=function(){var t=[];return r.each(e,(function(e,n){t.push(n)})),t},t.hasSubTypes=function(t){var n=l(t),i=e[n.main];return i&&i[a]}}},1987:(t,e,n)=>{"use strict";n.d(e,{$Q:()=>a,A6:()=>s,G_:()=>h,vf:()=>l});var i=n(7845),r=n(9902),o=Math.round(10*Math.random());function a(t){return[t||"",o++].join("_")}function s(t){var e={};t.registerSubTypeDefaulter=function(t,n){var i=(0,r.CC)(t);e[i.main]=n},t.determineSubType=function(n,i){var o=i.type;if(!o){var a=(0,r.CC)(n).main;t.hasSubTypes(n)&&e[a]&&(o=e[a](i))}return o}}function l(t,e){function n(t,e){return t[e]||(t[e]={predecessor:[],successor:[]}),t[e]}t.topologicalTravel=function(t,r,o,a){if(t.length){var s=function(t){var r={},o=[];return i.each(t,(function(a){var s=n(r,a),l=function(t,e){var n=[];return i.each(t,(function(t){i.indexOf(e,t)>=0&&n.push(t)})),n}(s.originalDeps=e(a),t);s.entryCount=l.length,0===s.entryCount&&o.push(a),i.each(l,(function(t){i.indexOf(s.predecessor,t)<0&&s.predecessor.push(t);var e=n(r,t);i.indexOf(e.successor,t)<0&&e.successor.push(a)}))})),{graph:r,noEntryList:o}}(r),l=s.graph,h=s.noEntryList,c={};for(i.each(t,(function(t){c[t]=!0}));h.length;){var u=h.pop(),d=l[u],p=!!c[u];p&&(o.call(a,u,d.originalDeps.slice()),delete c[u]),i.each(d.successor,p?g:f)}i.each(c,(function(){throw new Error("")}))}function f(t){l[t].entryCount--,0===l[t].entryCount&&h.push(t)}function g(t){c[t]=!0,f(t)}}}function h(t,e){return i.merge(i.merge({},t,!0),e,!0)}},2863:(t,e,n)=>{"use strict";n.d(e,{w:()=>g});var i=Math.round(9*Math.random()),r="function"==typeof Object.defineProperty;const o=function(){function t(){this._id="__ec_inner_"+i++}return t.prototype.get=function(t){return this._guard(t)[this._id]},t.prototype.set=function(t,e){var n=this._guard(t);return r?Object.defineProperty(n,this._id,{value:e,enumerable:!1,configurable:!0}):n[this._id]=e,this},t.prototype.delete=function(t){return!!this.has(t)&&(delete this._guard(t)[this._id],!0)},t.prototype.has=function(t){return!!this._guard(t)[this._id]},t.prototype._guard=function(t){if(t!==Object(t))throw TypeError("Value of WeakMap is not a non-null object.");return t},t}();var a=n(6552),s=n(7845),l=n(8883),h=n(4926),c=n(674),u=n(9142),d=new o,p=new a.Ay(100),f=["symbol","symbolSize","symbolKeepAspect","color","backgroundColor","dashArrayX","dashArrayY","maxTileWidth","maxTileHeight"];function g(t,e){if("none"===t)return null;var n=e.getDevicePixelRatio(),i=e.getZr(),r="svg"===i.painter.type;t.dirty&&d.delete(t);var o=d.get(t);if(o)return o;var a=(0,s.defaults)(t,{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});"none"===a.backgroundColor&&(a.backgroundColor=null);var g={repeat:"repeat"};return function(t){for(var e,o=[n],d=!0,g=0;g<f.length;++g){var _=a[f[g]];if(null!=_&&!(0,s.isArray)(_)&&!(0,s.isString)(_)&&!(0,s.isNumber)(_)&&"boolean"!=typeof _){d=!1;break}o.push(_)}if(d){e=o.join(",")+(r?"-svg":"");var x=p.get(e);x&&(r?t.svgElement=x:t.image=x)}var b,w=v(a.dashArrayX),S=function(t){if(!t||"object"==typeof t&&0===t.length)return[0,0];if((0,s.isNumber)(t)){var e=Math.ceil(t);return[e,e]}var n=(0,s.map)(t,(function(t){return Math.ceil(t)}));return t.length%2?n.concat(n):n}(a.dashArrayY),T=m(a.symbol),M=(k=w,(0,s.map)(k,(function(t){return y(t)}))),A=y(S),C=!r&&u.yh.createCanvas(),I=r&&{tag:"g",attrs:{},key:"dcl",children:[]},E=function(){for(var t=1,e=0,n=M.length;e<n;++e)t=(0,l.lQ)(t,M[e]);var i=1;for(e=0,n=T.length;e<n;++e)i=(0,l.lQ)(i,T[e].length);t*=i;var r=A*M.length*T.length;0;return{width:Math.max(1,Math.min(t,a.maxTileWidth)),height:Math.max(1,Math.min(r,a.maxTileHeight))}}();var k;C&&(C.width=E.width*n,C.height=E.height*n,b=C.getContext("2d"));(function(){b&&(b.clearRect(0,0,C.width,C.height),a.backgroundColor&&(b.fillStyle=a.backgroundColor,b.fillRect(0,0,C.width,C.height)));for(var t=0,e=0;e<S.length;++e)t+=S[e];if(t<=0)return;var o=-A,s=0,l=0,u=0;for(;o<E.height;){if(s%2==0){for(var d=l/2%T.length,p=0,f=0,g=0;p<2*E.width;){var m=0;for(e=0;e<w[u].length;++e)m+=w[u][e];if(m<=0)break;if(f%2==0){var v=.5*(1-a.symbolSize),y=p+w[u][f]*v,_=o+S[s]*v,x=w[u][f]*a.symbolSize,M=S[s]*a.symbolSize,k=g/2%T[d].length;L(y,_,x,M,T[d][k])}p+=w[u][f],++g,++f===w[u].length&&(f=0)}++u===w.length&&(u=0)}o+=S[s],++l,++s===S.length&&(s=0)}function L(t,e,o,s,l){var u=r?1:n,d=(0,h.v5)(l,t*u,e*u,o*u,s*u,a.color,a.symbolKeepAspect);if(r){var p=i.painter.renderOneToVNode(d);p&&I.children.push(p)}else(0,c.Xi)(b,d)}})(),d&&p.put(e,C||I);t.image=C,t.svgElement=I,t.svgWidth=E.width,t.svgHeight=E.height}(g),g.rotation=a.rotation,g.scaleX=g.scaleY=r?1:1/n,d.set(t,g),t.dirty=!1,g}function m(t){if(!t||0===t.length)return[["rect"]];if((0,s.isString)(t))return[[t]];for(var e=!0,n=0;n<t.length;++n)if(!(0,s.isString)(t[n])){e=!1;break}if(e)return m([t]);var i=[];for(n=0;n<t.length;++n)(0,s.isString)(t[n])?i.push([t[n]]):i.push(t[n]);return i}function v(t){if(!t||0===t.length)return[[0,0]];if((0,s.isNumber)(t))return[[r=Math.ceil(t),r]];for(var e=!0,n=0;n<t.length;++n)if(!(0,s.isNumber)(t[n])){e=!1;break}if(e)return v([t]);var i=[];for(n=0;n<t.length;++n)if((0,s.isNumber)(t[n])){var r=Math.ceil(t[n]);i.push([r,r])}else{(r=(0,s.map)(t[n],(function(t){return Math.ceil(t)}))).length%2==1?i.push(r.concat(r)):i.push(r)}return i}function y(t){for(var e=0,n=0;n<t.length;++n)e+=t[n];return t.length%2==1?2*e:e}},3152:(t,e,n)=>{"use strict";function i(t,e,n){for(var i;t&&(!e(t)||(i=t,!n));)t=t.__hostTarget||t.parent;return i}n.d(e,{R:()=>i})},5065:(t,e,n)=>{"use strict";n.d(e,{Cb:()=>l,JW:()=>_,QX:()=>h,YK:()=>p,fU:()=>m,he:()=>y,io:()=>f,ob:()=>s,qg:()=>g,x5:()=>v,yC:()=>c});var i=n(7845),r=n(4178),o=n(8883),a=n(383);function s(t){if(!(0,o.kf)(t))return i.isString(t)?t:"-";var e=(t+"").split(".");return e[0].replace(/(\d{1,3})(?=(?:\d{3})+(?!\d))/g,"$1,")+(e.length>1?"."+e[1]:"")}function l(t,e){return t=(t||"").toLowerCase().replace(/-(.)/g,(function(t,e){return e.toUpperCase()})),e&&t&&(t=t.charAt(0).toUpperCase()+t.slice(1)),t}var h=i.normalizeCssArray;function c(t,e,n){function r(t){return t&&i.trim(t)?t:"-"}function l(t){return!(null==t||isNaN(t)||!isFinite(t))}var h="time"===e,c=t instanceof Date;if(h||c){var u=h?(0,o._U)(t):t;if(!isNaN(+u))return(0,a.GP)(u,"{yyyy}-{MM}-{dd} {HH}:{mm}:{ss}",n);if(c)return"-"}if("ordinal"===e)return i.isStringSafe(t)?r(t):i.isNumber(t)&&l(t)?t+"":"-";var d=(0,o.Sm)(t);return l(d)?s(d):i.isStringSafe(t)?r(t):"boolean"==typeof t?t+"":"-"}var u=["a","b","c","d","e","f","g"],d=function(t,e){return"{"+t+(null==e?"":e)+"}"};function p(t,e,n){i.isArray(e)||(e=[e]);var o=e.length;if(!o)return"";for(var a=e[0].$vars||[],s=0;s<a.length;s++){var l=u[s];t=t.replace(d(l),d(l,0))}for(var h=0;h<o;h++)for(var c=0;c<a.length;c++){var p=e[h][a[c]];t=t.replace(d(u[c],h),n?(0,r.Me)(p):p)}return t}function f(t,e,n){return i.each(e,(function(e,i){t=t.replace("{"+i+"}",n?(0,r.Me)(e):e)})),t}function g(t,e){var n=i.isString(t)?{color:t,extraCssText:e}:t||{},o=n.color,a=n.type;e=n.extraCssText;var s=n.renderMode||"html";return o?"html"===s?"subItem"===a?'<span style="display:inline-block;vertical-align:middle;margin-right:8px;margin-left:3px;border-radius:4px;width:4px;height:4px;background-color:'+(0,r.Me)(o)+";"+(e||"")+'"></span>':'<span style="display:inline-block;margin-right:4px;border-radius:10px;width:10px;height:10px;background-color:'+(0,r.Me)(o)+";"+(e||"")+'"></span>':{renderMode:s,content:"{"+(n.markerId||"markerX")+"|} ",style:"subItem"===a?{width:4,height:4,borderRadius:2,backgroundColor:o}:{width:10,height:10,borderRadius:5,backgroundColor:o}}:""}function m(t,e,n){"week"!==t&&"month"!==t&&"quarter"!==t&&"half-year"!==t&&"year"!==t||(t="MM-dd\nyyyy");var i=(0,o._U)(e),r=n?"getUTC":"get",s=i[r+"FullYear"](),l=i[r+"Month"]()+1,h=i[r+"Date"](),c=i[r+"Hours"](),u=i[r+"Minutes"](),d=i[r+"Seconds"](),p=i[r+"Milliseconds"]();return t=t.replace("MM",(0,a.eV)(l,2)).replace("M",l).replace("yyyy",s).replace("yy",(0,a.eV)(s%100+"",2)).replace("dd",(0,a.eV)(h,2)).replace("d",h).replace("hh",(0,a.eV)(c,2)).replace("h",c).replace("mm",(0,a.eV)(u,2)).replace("m",u).replace("ss",(0,a.eV)(d,2)).replace("s",d).replace("SSS",(0,a.eV)(p,3))}function v(t){return t?t.charAt(0).toUpperCase()+t.substr(1):t}function y(t,e){return e=e||"transparent",i.isString(t)?t:i.isObject(t)&&t.colorStops&&(t.colorStops[0]||{}).color||e}function _(t,e){if("_blank"===e||"blank"===e){var n=window.open();n.opener=null,n.location.href=t}else window.open(t,e)}},6004:(t,e,n)=>{"use strict";n.r(e),n.d(e,{Arc:()=>x.A,BezierCurve:()=>_.A,BoundingRect:()=>T.A,Circle:()=>u.A,CompoundPath:()=>b.A,Ellipse:()=>d.A,Group:()=>h.A,Image:()=>l.Ay,IncrementalDisplayable:()=>C.A,Line:()=>y.A,LinearGradient:()=>w.A,OrientedBoundingRect:()=>M.A,Path:()=>a.Ay,Point:()=>A.A,Polygon:()=>g.A,Polyline:()=>m.A,RadialGradient:()=>S.A,Rect:()=>v.A,Ring:()=>f.A,Sector:()=>p.A,Text:()=>c.Ay,applyTransform:()=>Z,clipPointsByRect:()=>Q,clipRectByRect:()=>tt,createIcon:()=>et,extendPath:()=>F,extendShape:()=>O,getShapeClass:()=>z,getTransform:()=>Y,groupTransition:()=>J,initProps:()=>L.LW,isElementRemoved:()=>L.LR,lineLineIntersect:()=>it,linePolygonIntersect:()=>nt,makeImage:()=>V,makePath:()=>G,mergePath:()=>H,registerShape:()=>B,removeElement:()=>L.Nz,removeElementWithFadeOut:()=>L.t5,resizePath:()=>W,setTooltipConfig:()=>ot,subPixelOptimize:()=>X,subPixelOptimizeLine:()=>U,subPixelOptimizeRect:()=>q,transformDirection:()=>$,traverseElements:()=>st,updateProps:()=>L.oi});var i=n(5496),r=n(3968),o=n(4070),a=n(1885),s=n(5853),l=n(5975),h=n(8829),c=n(1251),u=n(1262),d=n(1478),p=n(7532),f=n(9804),g=n(4942),m=n(1106),v=n(7551),y=n(5840),_=n(8526),x=n(4924),b=n(7298),w=n(7789),S=n(6575),T=n(5383),M=n(2971),A=n(4063),C=n(5238),I=n(7278),E=n(7845),k=n(6195),L=n(5203),D=Math.max,P=Math.min,R={};function O(t){return a.Ay.extend(t)}var N=i.Qh;function F(t,e){return N(t,e)}function B(t,e){R[t]=e}function z(t){if(R.hasOwnProperty(t))return R[t]}function G(t,e,n,r){var o=i.UJ(t,e);return n&&("center"===r&&(n=j(n,o.getBoundingRect())),W(o,n)),o}function V(t,e,n){var i=new l.Ay({style:{image:t,x:e.x,y:e.y,width:e.width,height:e.height},onload:function(t){if("center"===n){var r={width:t.width,height:t.height};i.setStyle(j(e,r))}}});return i}function j(t,e){var n,i=e.width/e.height,r=t.height*i;return n=r<=t.width?t.height:(r=t.width)/i,{x:t.x+t.width/2-r/2,y:t.y+t.height/2-n/2,width:r,height:n}}var H=i.uc;function W(t,e){if(t.applyTransform){var n=t.getBoundingRect().calculateTransform(e);t.applyTransform(n)}}function U(t,e){return I.eB(t,t,{lineWidth:e}),t}function q(t){return I.Op(t.shape,t.shape,t.style),t}var X=I.M7;function Y(t,e){for(var n=r.identity([]);t&&t!==e;)r.mul(n,t.getLocalTransform(),n),t=t.parent;return n}function Z(t,e,n){return e&&!(0,E.isArrayLike)(e)&&(e=s.Ay.getLocalTransform(e)),n&&(e=r.invert([],e)),o.applyTransform([],t,e)}function $(t,e,n){var i=0===e[4]||0===e[5]||0===e[0]?1:Math.abs(2*e[4]/e[0]),r=0===e[4]||0===e[5]||0===e[2]?1:Math.abs(2*e[4]/e[2]),o=["left"===t?-i:"right"===t?i:0,"top"===t?-r:"bottom"===t?r:0];return o=Z(o,e,n),Math.abs(o[0])>Math.abs(o[1])?o[0]>0?"right":"left":o[1]>0?"bottom":"top"}function K(t){return!t.isGroup}function J(t,e,n){if(t&&e){var i,r=(i={},t.traverse((function(t){K(t)&&t.anid&&(i[t.anid]=t)})),i);e.traverse((function(t){if(K(t)&&t.anid){var e=r[t.anid];if(e){var i=o(t);t.attr(o(e)),(0,L.oi)(t,i,n,(0,k.z)(t).dataIndex)}}}))}function o(t){var e={x:t.x,y:t.y,rotation:t.rotation};return function(t){return null!=t.shape}(t)&&(e.shape=(0,E.extend)({},t.shape)),e}}function Q(t,e){return(0,E.map)(t,(function(t){var n=t[0];n=D(n,e.x),n=P(n,e.x+e.width);var i=t[1];return i=D(i,e.y),[n,i=P(i,e.y+e.height)]}))}function tt(t,e){var n=D(t.x,e.x),i=P(t.x+t.width,e.x+e.width),r=D(t.y,e.y),o=P(t.y+t.height,e.y+e.height);if(i>=n&&o>=r)return{x:n,y:r,width:i-n,height:o-r}}function et(t,e,n){var i=(0,E.extend)({rectHover:!0},e),r=i.style={strokeNoScale:!0};if(n=n||{x:-1,y:-1,width:2,height:2},t)return 0===t.indexOf("image://")?(r.image=t.slice(8),(0,E.defaults)(r,n),new l.Ay(i)):G(t.replace("path://",""),i,n,"center")}function nt(t,e,n,i,r){for(var o=0,a=r[r.length-1];o<r.length;o++){var s=r[o];if(it(t,e,n,i,s[0],s[1],a[0],a[1]))return!0;a=s}}function it(t,e,n,i,r,o,a,s){var l,h=n-t,c=i-e,u=a-r,d=s-o,p=rt(u,d,h,c);if((l=p)<=1e-6&&l>=-1e-6)return!1;var f=t-r,g=e-o,m=rt(f,g,h,c)/p;if(m<0||m>1)return!1;var v=rt(f,g,u,d)/p;return!(v<0||v>1)}function rt(t,e,n,i){return t*i-n*e}function ot(t){var e=t.itemTooltipOption,n=t.componentModel,i=t.itemName,r=(0,E.isString)(e)?{formatter:e}:e,o=n.mainType,a=n.componentIndex,s={componentType:o,name:i,$vars:["name"]};s[o+"Index"]=a;var l=t.formatterParamsExtra;l&&(0,E.each)((0,E.keys)(l),(function(t){(0,E.hasOwn)(s,t)||(s[t]=l[t],s.$vars.push(t))}));var h=(0,k.z)(t.el);h.componentMainType=o,h.componentIndex=a,h.tooltipConfig={name:i,option:(0,E.defaults)({content:i,encodeHTMLContent:!0,formatterParams:s},r)}}function at(t,e){var n;t.isGroup&&(n=e(t)),n||t.traverse(e)}function st(t,e){if(t)if((0,E.isArray)(t))for(var n=0;n<t.length;n++)at(t[n],e);else at(t,e)}B("circle",u.A),B("ellipse",d.A),B("sector",p.A),B("ring",f.A),B("polygon",g.A),B("polyline",m.A),B("rect",v.A),B("line",y.A),B("bezierCurve",_.A),B("arc",x.A)},6195:(t,e,n)=>{"use strict";n.d(e,{a:()=>r,z:()=>i});var i=(0,n(2577).$r)(),r=function(t,e,n,r){if(r){var o=i(r);o.dataIndex=n,o.dataType=e,o.seriesIndex=t,o.ssrType="chart","group"===r.type&&r.traverse((function(r){var o=i(r);o.seriesIndex=t,o.dataIndex=n,o.dataType=e,o.ssrType="chart"}))}}},5872:(t,e,n)=>{"use strict";n.d(e,{HU:()=>d,Ir:()=>_,Qf:()=>g,Tj:()=>l,YA:()=>v,aP:()=>u,ad:()=>m,dV:()=>p,m$:()=>f,vs:()=>y});var i=n(7845),r=n(5383),o=n(8883),a=n(5065),s=i.each,l=["left","right","top","bottom","width","height"],h=[["width","left","right"],["height","top","bottom"]];function c(t,e,n,i,r){var o=0,a=0;null==i&&(i=1/0),null==r&&(r=1/0);var s=0;e.eachChild((function(l,h){var c,u,d=l.getBoundingRect(),p=e.childAt(h+1),f=p&&p.getBoundingRect();if("horizontal"===t){var g=d.width+(f?-f.x+d.x:0);(c=o+g)>i||l.newline?(o=0,c=g,a+=s+n,s=d.height):s=Math.max(s,d.height)}else{var m=d.height+(f?-f.y+d.y:0);(u=a+m)>r||l.newline?(o+=s+n,a=0,u=m,s=d.width):s=Math.max(s,d.width)}l.newline||(l.x=o,l.y=a,l.markRedraw(),"horizontal"===t?o=c+n:a=u+n)}))}var u=c;i.curry(c,"vertical"),i.curry(c,"horizontal");function d(t,e,n){var i=e.width,r=e.height,s=(0,o.lo)(t.left,i),l=(0,o.lo)(t.top,r),h=(0,o.lo)(t.right,i),c=(0,o.lo)(t.bottom,r);return(isNaN(s)||isNaN(parseFloat(t.left)))&&(s=0),(isNaN(h)||isNaN(parseFloat(t.right)))&&(h=i),(isNaN(l)||isNaN(parseFloat(t.top)))&&(l=0),(isNaN(c)||isNaN(parseFloat(t.bottom)))&&(c=r),n=a.QX(n||0),{width:Math.max(h-s-n[1]-n[3],0),height:Math.max(c-l-n[0]-n[2],0)}}function p(t,e,n){n=a.QX(n||0);var i=e.width,s=e.height,l=(0,o.lo)(t.left,i),h=(0,o.lo)(t.top,s),c=(0,o.lo)(t.right,i),u=(0,o.lo)(t.bottom,s),d=(0,o.lo)(t.width,i),p=(0,o.lo)(t.height,s),f=n[2]+n[0],g=n[1]+n[3],m=t.aspect;switch(isNaN(d)&&(d=i-c-g-l),isNaN(p)&&(p=s-u-f-h),null!=m&&(isNaN(d)&&isNaN(p)&&(m>i/s?d=.8*i:p=.8*s),isNaN(d)&&(d=m*p),isNaN(p)&&(p=d/m)),isNaN(l)&&(l=i-c-d-g),isNaN(h)&&(h=s-u-p-f),t.left||t.right){case"center":l=i/2-d/2-n[3];break;case"right":l=i-d-g}switch(t.top||t.bottom){case"middle":case"center":h=s/2-p/2-n[0];break;case"bottom":h=s-p-f}l=l||0,h=h||0,isNaN(d)&&(d=i-g-l-(c||0)),isNaN(p)&&(p=s-f-h-(u||0));var v=new r.A(l+n[3],h+n[0],d,p);return v.margin=n,v}function f(t,e,n,o,a,s){var l,h=!a||!a.hv||a.hv[0],c=!a||!a.hv||a.hv[1],u=a&&a.boundingMode||"all";if((s=s||t).x=t.x,s.y=t.y,!h&&!c)return!1;if("raw"===u)l="group"===t.type?new r.A(0,0,+e.width||0,+e.height||0):t.getBoundingRect();else if(l=t.getBoundingRect(),t.needLocalTransform()){var d=t.getLocalTransform();(l=l.clone()).applyTransform(d)}var f=p(i.defaults({width:l.width,height:l.height},e),n,o),g=h?f.x-l.x:0,m=c?f.y-l.y:0;return"raw"===u?(s.x=g,s.y=m):(s.x+=g,s.y+=m),s===t&&t.markRedraw(),!0}function g(t,e){return null!=t[h[e][0]]||null!=t[h[e][1]]&&null!=t[h[e][2]]}function m(t){var e=t.layoutMode||t.constructor.layoutMode;return i.isObject(e)?e:e?{type:e}:null}function v(t,e,n){var r=n&&n.ignoreSize;!i.isArray(r)&&(r=[r,r]);var o=l(h[0],0),a=l(h[1],1);function l(n,i){var o={},a=0,l={},h=0;if(s(n,(function(e){l[e]=t[e]})),s(n,(function(t){c(e,t)&&(o[t]=l[t]=e[t]),u(o,t)&&a++,u(l,t)&&h++})),r[i])return u(e,n[1])?l[n[2]]=null:u(e,n[2])&&(l[n[1]]=null),l;if(2!==h&&a){if(a>=2)return o;for(var d=0;d<n.length;d++){var p=n[d];if(!c(o,p)&&c(t,p)){o[p]=t[p];break}}return o}return l}function c(t,e){return t.hasOwnProperty(e)}function u(t,e){return null!=t[e]&&"auto"!==t[e]}function d(t,e,n){s(t,(function(t){e[t]=n[t]}))}d(h[0],t,o),d(h[1],t,a)}function y(t){return _({},t)}function _(t,e){return e&&t&&s(l,(function(n){e.hasOwnProperty(n)&&(t[n]=e[n])})),t}},766:(t,e,n)=>{"use strict";n.d(e,{$8:()=>h,R8:()=>s,aT:()=>l});var i="[ECharts] ",r={},o="undefined"!=typeof console&&console.warn&&console.log;function a(t,e,n){if(o){if(n){if(r[e])return;r[e]=!0}console[t](i+e)}}function s(t,e){a("warn",t,e)}function l(t){0}function h(t){throw new Error(t)}},2577:(t,e,n)=>{"use strict";n.d(e,{$r:()=>T,Bq:()=>L,D$:()=>D,D6:()=>w,GX:()=>b,HB:()=>C,Il:()=>O,JO:()=>k,JS:()=>u,M5:()=>c,O0:()=>y,O2:()=>f,S_:()=>x,Sq:()=>R,US:()=>I,UW:()=>E,XJ:()=>P,_e:()=>A,le:()=>S,oh:()=>_,qB:()=>h,vS:()=>v,vj:()=>d,zu:()=>p});var i=n(7845),r=n(4810),o=n(8883);function a(t,e,n){return(e-t)*n+t}var s="series\0",l="\0_ec_\0";function h(t){return t instanceof Array?t:null==t?[]:[t]}function c(t,e,n){if(t){t[e]=t[e]||{},t.emphasis=t.emphasis||{},t.emphasis[e]=t.emphasis[e]||{};for(var i=0,r=n.length;i<r;i++){var o=n[i];!t.emphasis[e].hasOwnProperty(o)&&t[e].hasOwnProperty(o)&&(t.emphasis[e][o]=t[e][o])}}}var u=["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"];function d(t){return!(0,i.isObject)(t)||(0,i.isArray)(t)||t instanceof Date?t:t.value}function p(t){return(0,i.isObject)(t)&&!(t instanceof Array)}function f(t,e,n){var r="normalMerge"===n,o="replaceMerge"===n,a="replaceAll"===n;t=t||[],e=(e||[]).slice();var l=(0,i.createHashMap)();(0,i.each)(e,(function(t,n){(0,i.isObject)(t)||(e[n]=null)}));var h,c,u=function(t,e,n){var i=[];if("replaceAll"===n)return i;for(var r=0;r<t.length;r++){var o=t[r];o&&null!=o.id&&e.set(o.id,r),i.push({existing:"replaceMerge"===n||_(o)?null:o,newOption:null,keyInfo:null,brandNew:null})}return i}(t,l,n);return(r||o)&&function(t,e,n,r){(0,i.each)(r,(function(o,a){if(o&&null!=o.id){var s=m(o.id),l=n.get(s);if(null!=l){var h=t[l];(0,i.assert)(!h.newOption,'Duplicated option on id "'+s+'".'),h.newOption=o,h.existing=e[l],r[a]=null}}}))}(u,t,l,e),r&&function(t,e){(0,i.each)(e,(function(n,i){if(n&&null!=n.name)for(var r=0;r<t.length;r++){var o=t[r].existing;if(!t[r].newOption&&o&&(null==o.id||null==n.id)&&!_(n)&&!_(o)&&g("name",o,n))return t[r].newOption=n,void(e[i]=null)}}))}(u,e),r||o?function(t,e,n){(0,i.each)(e,(function(e){if(e){for(var i,r=0;(i=t[r])&&(i.newOption||_(i.existing)||i.existing&&null!=e.id&&!g("id",e,i.existing));)r++;i?(i.newOption=e,i.brandNew=n):t.push({newOption:e,brandNew:n,existing:null,keyInfo:null}),r++}}))}(u,e,o):a&&function(t,e){(0,i.each)(e,(function(e){t.push({newOption:e,brandNew:!0,existing:null,keyInfo:null})}))}(u,e),h=u,c=(0,i.createHashMap)(),(0,i.each)(h,(function(t){var e=t.existing;e&&c.set(e.id,t)})),(0,i.each)(h,(function(t){var e=t.newOption;(0,i.assert)(!e||null==e.id||!c.get(e.id)||c.get(e.id)===t,"id duplicates: "+(e&&e.id)),e&&null!=e.id&&c.set(e.id,t),!t.keyInfo&&(t.keyInfo={})})),(0,i.each)(h,(function(t,e){var n=t.existing,r=t.newOption,o=t.keyInfo;if((0,i.isObject)(r)){if(o.name=null!=r.name?m(r.name):n?n.name:s+e,n)o.id=m(n.id);else if(null!=r.id)o.id=m(r.id);else{var a=0;do{o.id="\0"+o.name+"\0"+a++}while(c.get(o.id))}c.set(o.id,t)}})),u}function g(t,e,n){var i=v(e[t],null),r=v(n[t],null);return null!=i&&null!=r&&i===r}function m(t){return v(t,"")}function v(t,e){return null==t?e:(0,i.isString)(t)?t:(0,i.isNumber)(t)||(0,i.isStringSafe)(t)?t+"":e}function y(t){var e=t.name;return!(!e||!e.indexOf(s))}function _(t){return t&&null!=t.id&&0===m(t.id).indexOf(l)}function x(t){return l+t}function b(t,e,n){(0,i.each)(t,(function(t){var r=t.newOption;(0,i.isObject)(r)&&(t.keyInfo.mainType=e,t.keyInfo.subType=function(t,e,n,i){var r=e.type?e.type:n?n.subType:i.determineSubType(t,e);return r}(e,r,t.existing,n))}))}function w(t,e){var n={},i={};return r(t||[],n),r(e||[],i,n),[o(n),o(i)];function r(t,e,n){for(var i=0,r=t.length;i<r;i++){var o=v(t[i].seriesId,null);if(null==o)return;for(var a=h(t[i].dataIndex),s=n&&n[o],l=0,c=a.length;l<c;l++){var u=a[l];s&&s[u]?s[u]=null:(e[o]||(e[o]={}))[u]=1}}}function o(t,e){var n=[];for(var i in t)if(t.hasOwnProperty(i)&&null!=t[i])if(e)n.push(+i);else{var r=o(t[i],!0);r.length&&n.push({seriesId:i,dataIndex:r})}return n}}function S(t,e){return null!=e.dataIndexInside?e.dataIndexInside:null!=e.dataIndex?(0,i.isArray)(e.dataIndex)?(0,i.map)(e.dataIndex,(function(e){return t.indexOfRawIndex(e)})):t.indexOfRawIndex(e.dataIndex):null!=e.name?(0,i.isArray)(e.name)?(0,i.map)(e.name,(function(e){return t.indexOfName(e)})):t.indexOfName(e.name):void 0}function T(){var t="__ec_inner_"+M++;return function(e){return e[t]||(e[t]={})}}var M=(0,o.IH)();function A(t,e,n){var i=C(e,n),r=i.mainTypeSpecified,o=i.queryOptionMap,a=i.others,s=n?n.defaultMainType:null;return!r&&s&&o.set(s,{}),o.each((function(e,i){var r=k(t,i,e,{useDefault:s===i,enableAll:!n||null==n.enableAll||n.enableAll,enableNone:!n||null==n.enableNone||n.enableNone});a[i+"Models"]=r.models,a[i+"Model"]=r.models[0]})),a}function C(t,e){var n;if((0,i.isString)(t)){var r={};r[t+"Index"]=0,n=r}else n=t;var o=(0,i.createHashMap)(),a={},s=!1;return(0,i.each)(n,(function(t,n){if("dataIndex"!==n&&"dataIndexInside"!==n){var r=n.match(/^(\w+)(Index|Id|Name)$/)||[],l=r[1],h=(r[2]||"").toLowerCase();if(l&&h&&!(e&&e.includeMainTypes&&(0,i.indexOf)(e.includeMainTypes,l)<0))s=s||!!l,(o.get(l)||o.set(l,{}))[h]=t}else a[n]=t})),{mainTypeSpecified:s,queryOptionMap:o,others:a}}var I={useDefault:!0,enableAll:!1,enableNone:!1},E={useDefault:!1,enableAll:!0,enableNone:!0};function k(t,e,n,r){r=r||I;var o=n.index,a=n.id,s=n.name,l={models:null,specified:null!=o||null!=a||null!=s};if(!l.specified){var h=void 0;return l.models=r.useDefault&&(h=t.getComponent(e))?[h]:[],l}return"none"===o||!1===o?((0,i.assert)(r.enableNone,'`"none"` or `false` is not a valid value on index option.'),l.models=[],l):("all"===o&&((0,i.assert)(r.enableAll,'`"all"` is not a valid value on index option.'),o=a=s=null),l.models=t.queryComponents({mainType:e,index:o,id:a,name:s}),l)}function L(t,e,n){t.setAttribute?t.setAttribute(e,n):t[e]=n}function D(t,e){return t.getAttribute?t.getAttribute(e):t[e]}function P(t){return"auto"===t?r.A.domSupported?"html":"richText":t||"html"}function R(t,e){var n=(0,i.createHashMap)(),r=[];return(0,i.each)(t,(function(t){var i=e(t);(n.get(i)||(r.push(i),n.set(i,[]))).push(t)})),{keys:r,buckets:n}}function O(t,e,n,r,s){var l=null==e||"auto"===e;if(null==r)return r;if((0,i.isNumber)(r)){var h=a(n||0,r,s);return(0,o.LI)(h,l?Math.max((0,o.XV)(n||0),(0,o.XV)(r)):e)}if((0,i.isString)(r))return s<1?n:r;for(var c=[],u=n,d=r,p=Math.max(u?u.length:0,d.length),f=0;f<p;++f){var g=t.getDimensionInfo(f);if(g&&"ordinal"===g.type)c[f]=(s<1&&u?u:d)[f];else{var m=u&&u[f]?u[f]:0,v=d[f];h=a(m,v,s);c[f]=(0,o.LI)(h,l?Math.max((0,o.XV)(m),(0,o.XV)(v)):e)}}return c}},8883:(t,e,n)=>{"use strict";n.d(e,{Cb:()=>a,Cm:()=>S,IH:()=>I,Is:()=>m,LI:()=>l,NX:()=>w,Sm:()=>A,Tr:()=>g,XV:()=>c,Y6:()=>h,YV:()=>T,_7:()=>v,_U:()=>x,au:()=>b,dh:()=>y,hb:()=>d,kM:()=>f,kf:()=>C,lQ:()=>k,lo:()=>s,sL:()=>M,wp:()=>p,y6:()=>u});var i=n(7845),r=1e-4,o=20;function a(t,e,n,i){var r=e[0],o=e[1],a=n[0],s=n[1],l=o-r,h=s-a;if(0===l)return 0===h?a:(a+s)/2;if(i)if(l>0){if(t<=r)return a;if(t>=o)return s}else{if(t>=r)return a;if(t<=o)return s}else{if(t===r)return a;if(t===o)return s}return(t-r)/l*h+a}function s(t,e){switch(t){case"center":case"middle":t="50%";break;case"left":case"top":t="0%";break;case"right":case"bottom":t="100%"}return i.isString(t)?(n=t,n.replace(/^\s+|\s+$/g,"")).match(/%$/)?parseFloat(t)/100*e:parseFloat(t):null==t?NaN:+t;var n}function l(t,e,n){return null==e&&(e=10),e=Math.min(Math.max(0,e),o),t=(+t).toFixed(e),n?t:+t}function h(t){return t.sort((function(t,e){return t-e})),t}function c(t){if(t=+t,isNaN(t))return 0;if(t>1e-14)for(var e=1,n=0;n<15;n++,e*=10)if(Math.round(t*e)/e===t)return n;return u(t)}function u(t){var e=t.toString().toLowerCase(),n=e.indexOf("e"),i=n>0?+e.slice(n+1):0,r=n>0?n:e.length,o=e.indexOf("."),a=o<0?0:r-1-o;return Math.max(0,a-i)}function d(t,e){var n=Math.log,i=Math.LN10,r=Math.floor(n(t[1]-t[0])/i),o=Math.round(n(Math.abs(e[1]-e[0]))/i),a=Math.min(Math.max(-r+o,0),20);return isFinite(a)?a:20}function p(t,e,n){return t[e]&&f(t,n)[e]||0}function f(t,e){var n=i.reduce(t,(function(t,e){return t+(isNaN(e)?0:e)}),0);if(0===n)return[];for(var r=Math.pow(10,e),o=i.map(t,(function(t){return(isNaN(t)?0:t)/n*r*100})),a=100*r,s=i.map(o,(function(t){return Math.floor(t)})),l=i.reduce(s,(function(t,e){return t+e}),0),h=i.map(o,(function(t,e){return t-s[e]}));l<a;){for(var c=Number.NEGATIVE_INFINITY,u=null,d=0,p=h.length;d<p;++d)h[d]>c&&(c=h[d],u=d);++s[u],h[u]=0,++l}return i.map(s,(function(t){return t/r}))}function g(t,e){var n=Math.max(c(t),c(e)),i=t+e;return n>o?i:l(i,n)}var m=9007199254740991;function v(t){var e=2*Math.PI;return(t%e+e)%e}function y(t){return t>-r&&t<r}var _=/^(?:(\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 x(t){if(t instanceof Date)return t;if(i.isString(t)){var e=_.exec(t);if(!e)return new Date(NaN);if(e[8]){var n=+e[4]||0;return"Z"!==e[8].toUpperCase()&&(n-=+e[8].slice(0,3)),new Date(Date.UTC(+e[1],+(e[2]||1)-1,+e[3]||1,n,+(e[5]||0),+e[6]||0,e[7]?+e[7].substring(0,3):0))}return new Date(+e[1],+(e[2]||1)-1,+e[3]||1,+e[4]||0,+(e[5]||0),+e[6]||0,e[7]?+e[7].substring(0,3):0)}return null==t?new Date(NaN):new Date(Math.round(t))}function b(t){return Math.pow(10,w(t))}function w(t){if(0===t)return 0;var e=Math.floor(Math.log(t)/Math.LN10);return t/Math.pow(10,e)>=10&&e++,e}function S(t,e){var n=w(t),i=Math.pow(10,n),r=t/i;return t=(e?r<1.5?1:r<2.5?2:r<4?3:r<7?5:10:r<1?1:r<2?2:r<3?3:r<5?5:10)*i,n>=-20?+t.toFixed(n<0?-n:0):t}function T(t,e){var n=(t.length-1)*e+1,i=Math.floor(n),r=+t[i-1],o=n-i;return o?r+o*(t[i]-r):r}function M(t){t.sort((function(t,e){return s(t,e,0)?-1:1}));for(var e=-1/0,n=1,i=0;i<t.length;){for(var r=t[i].interval,o=t[i].close,a=0;a<2;a++)r[a]<=e&&(r[a]=e,o[a]=a?1:1-n),e=r[a],n=o[a];r[0]===r[1]&&o[0]*o[1]!=1?t.splice(i,1):i++}return t;function s(t,e,n){return t.interval[n]<e.interval[n]||t.interval[n]===e.interval[n]&&(t.close[n]-e.close[n]==(n?-1:1)||!n&&s(t,e,1))}}function A(t){var e=parseFloat(t);return e==t&&(0!==e||!i.isString(t)||t.indexOf("x")<=0)?e:NaN}function C(t){return!isNaN(A(t))}function I(){return Math.round(9*Math.random())}function E(t,e){return 0===e?t:E(e,t%e)}function k(t,e){return null==t?e:null==e?t:t*e/E(t,e)}},1632:(t,e,n)=>{"use strict";n.d(e,{BV:()=>g,CA:()=>v,DW:()=>N,Du:()=>Y,HY:()=>z,Iz:()=>J,JC:()=>j,JI:()=>H,Lm:()=>it,Lv:()=>b,Lx:()=>dt,Mx:()=>st,PW:()=>x,Pk:()=>R,Q6:()=>S,QX:()=>V,SD:()=>G,T$:()=>pt,Tl:()=>$,U2:()=>w,_m:()=>K,_n:()=>ut,e3:()=>f,fz:()=>ft,gR:()=>rt,gd:()=>W,h5:()=>_,iJ:()=>nt,ix:()=>lt,jA:()=>tt,lV:()=>Z,mc:()=>et,ml:()=>ct,qR:()=>q,t6:()=>Q,u6:()=>ht,wV:()=>m,zX:()=>p});var i=n(7845),r=n(6195),o=n(7219),a=n(2577),s=n(1885),l=1,h={},c=(0,a.$r)(),u=(0,a.$r)(),d=0,p=1,f=2,g=["emphasis","blur","select"],m=["normal","emphasis","blur","select"],v=10,y=9,_="highlight",x="downplay",b="select",w="unselect",S="toggleSelect";function T(t){return null!=t&&"none"!==t}function M(t,e,n){t.onHoverStateChange&&(t.hoverState||0)!==n&&t.onHoverStateChange(e),t.hoverState=n}function A(t){M(t,"emphasis",f)}function C(t){t.hoverState===f&&M(t,"normal",d)}function I(t){M(t,"blur",p)}function E(t){t.hoverState===p&&M(t,"normal",d)}function k(t){t.selected=!0}function L(t){t.selected=!1}function D(t,e,n){e(t,n)}function P(t,e,n){D(t,e,n),t.isGroup&&t.traverse((function(t){D(t,e,n)}))}function R(t,e){switch(e){case"emphasis":t.hoverState=f;break;case"normal":t.hoverState=d;break;case"blur":t.hoverState=p;break;case"select":t.selected=!0}}function O(t,e){var n=this.states[t];if(this.style){if("emphasis"===t)return function(t,e,n,r){var a=n&&(0,i.indexOf)(n,"select")>=0,l=!1;if(t instanceof s.Ay){var h=c(t),u=a&&h.selectFill||h.normalFill,d=a&&h.selectStroke||h.normalStroke;if(T(u)||T(d)){var p=(r=r||{}).style||{};"inherit"===p.fill?(l=!0,r=(0,i.extend)({},r),(p=(0,i.extend)({},p)).fill=u):!T(p.fill)&&T(u)?(l=!0,r=(0,i.extend)({},r),(p=(0,i.extend)({},p)).fill=(0,o.liftColor)(u)):!T(p.stroke)&&T(d)&&(l||(r=(0,i.extend)({},r),p=(0,i.extend)({},p)),p.stroke=(0,o.liftColor)(d)),r.style=p}}if(r&&null==r.z2){l||(r=(0,i.extend)({},r));var f=t.z2EmphasisLift;r.z2=t.z2+(null!=f?f:v)}return r}(this,0,e,n);if("blur"===t)return function(t,e,n){var r=(0,i.indexOf)(t.currentStates,e)>=0,o=t.style.opacity,a=r?null:function(t,e,n,i){for(var r=t.style,o={},a=0;a<e.length;a++){var s=e[a],l=r[s];o[s]=null==l?i&&i[s]:l}for(a=0;a<t.animators.length;a++){var h=t.animators[a];h.__fromStateTransition&&h.__fromStateTransition.indexOf(n)<0&&"style"===h.targetName&&h.saveTo(o,e)}return o}(t,["opacity"],e,{opacity:1}),s=(n=n||{}).style||{};return null==s.opacity&&(n=(0,i.extend)({},n),s=(0,i.extend)({opacity:r?o:.1*a.opacity},s),n.style=s),n}(this,t,n);if("select"===t)return function(t,e,n){if(n&&null==n.z2){n=(0,i.extend)({},n);var r=t.z2SelectLift;n.z2=t.z2+(null!=r?r:y)}return n}(this,0,n)}return n}function N(t){t.stateProxy=O;var e=t.getTextContent(),n=t.getTextGuideLine();e&&(e.stateProxy=O),n&&(n.stateProxy=O)}function F(t,e){!U(t,e)&&!t.__highByOuter&&P(t,A)}function B(t,e){!U(t,e)&&!t.__highByOuter&&P(t,C)}function z(t,e){t.__highByOuter|=1<<(e||0),P(t,A)}function G(t,e){!(t.__highByOuter&=~(1<<(e||0)))&&P(t,C)}function V(t){P(t,I)}function j(t){P(t,E)}function H(t){P(t,k)}function W(t){P(t,L)}function U(t,e){return t.__highDownSilentOnTouch&&e.zrByTouch}function q(t){var e=t.getModel(),n=[],r=[];e.eachComponent((function(e,i){var o=u(i),a="series"===e,s=a?t.getViewOfSeriesModel(i):t.getViewOfComponentModel(i);!a&&r.push(s),o.isBlured&&(s.group.traverse((function(t){E(t)})),a&&n.push(i)),o.isBlured=!1})),(0,i.each)(r,(function(t){t&&t.toggleBlurSeries&&t.toggleBlurSeries(n,!1,e)}))}function X(t,e,n,r){var o=r.getModel();function a(t,e){for(var n=0;n<e.length;n++){var i=t.getItemGraphicEl(e[n]);i&&j(i)}}if(n=n||"coordinateSystem",null!=t&&e&&"none"!==e){var s=o.getSeriesByIndex(t),l=s.coordinateSystem;l&&l.master&&(l=l.master);var h=[];o.eachSeries((function(t){var o=s===t,c=t.coordinateSystem;if(c&&c.master&&(c=c.master),!("series"===n&&!o||"coordinateSystem"===n&&!(c&&l?c===l:o)||"series"===e&&o)){if(r.getViewOfSeriesModel(t).group.traverse((function(t){t.__highByOuter&&o&&"self"===e||I(t)})),(0,i.isArrayLike)(e))a(t.getData(),e);else if((0,i.isObject)(e))for(var d=(0,i.keys)(e),p=0;p<d.length;p++)a(t.getData(d[p]),e[d[p]]);h.push(t),u(t).isBlured=!0}})),o.eachComponent((function(t,e){if("series"!==t){var n=r.getViewOfComponentModel(e);n&&n.toggleBlurSeries&&n.toggleBlurSeries(h,!0,o)}}))}}function Y(t,e,n){if(null!=t&&null!=e){var i=n.getModel().getComponent(t,e);if(i){u(i).isBlured=!0;var r=n.getViewOfComponentModel(i);r&&r.focusBlurEnabled&&r.group.traverse((function(t){I(t)}))}}}function Z(t,e,n){var o=t.seriesIndex,s=t.getData(e.dataType);if(s){var l=(0,a.le)(s,e);l=((0,i.isArray)(l)?l[0]:l)||0;var h=s.getItemGraphicEl(l);if(!h)for(var c=s.count(),u=0;!h&&u<c;)h=s.getItemGraphicEl(u++);if(h){var d=(0,r.z)(h);X(o,d.focus,d.blurScope,n)}else{var p=t.get(["emphasis","focus"]),f=t.get(["emphasis","blurScope"]);null!=p&&X(o,p,f,n)}}}function $(t,e,n,i){var o={focusSelf:!1,dispatchers:null};if(null==t||"series"===t||null==e||null==n)return o;var a=i.getModel().getComponent(t,e);if(!a)return o;var s=i.getViewOfComponentModel(a);if(!s||!s.findHighDownDispatchers)return o;for(var l,h=s.findHighDownDispatchers(n),c=0;c<h.length;c++)if("self"===(0,r.z)(h[c]).focus){l=!0;break}return{focusSelf:l,dispatchers:h}}function K(t,e,n){var o=(0,r.z)(t),a=$(o.componentMainType,o.componentIndex,o.componentHighDownName,n),s=a.dispatchers,l=a.focusSelf;s?(l&&Y(o.componentMainType,o.componentIndex,n),(0,i.each)(s,(function(t){return F(t,e)}))):(X(o.seriesIndex,o.focus,o.blurScope,n),"self"===o.focus&&Y(o.componentMainType,o.componentIndex,n),F(t,e))}function J(t,e,n){q(n);var o=(0,r.z)(t),a=$(o.componentMainType,o.componentIndex,o.componentHighDownName,n).dispatchers;a?(0,i.each)(a,(function(t){return B(t,e)})):B(t,e)}function Q(t,e,n){if(dt(e)){var r=e.dataType,o=t.getData(r),s=(0,a.le)(o,e);(0,i.isArray)(s)||(s=[s]),t[e.type===S?"toggleSelect":e.type===b?"select":"unselect"](s,r)}}function tt(t){var e=t.getAllData();(0,i.each)(e,(function(e){var n=e.data,i=e.type;n.eachItemGraphicEl((function(e,n){t.isSelected(n,i)?H(e):W(e)}))}))}function et(t){var e=[];return t.eachSeries((function(t){var n=t.getAllData();(0,i.each)(n,(function(n){n.data;var i=n.type,r=t.getSelectedDataIndices();if(r.length>0){var o={dataIndex:r,seriesIndex:t.seriesIndex};null!=i&&(o.dataType=i),e.push(o)}}))})),e}function nt(t,e,n){lt(t,!0),P(t,N),rt(t,e,n)}function it(t,e,n,i){i?function(t){lt(t,!1)}(t):nt(t,e,n)}function rt(t,e,n){var i=(0,r.z)(t);null!=e?(i.focus=e,i.blurScope=n):i.focus&&(i.focus=null)}var ot=["emphasis","blur","select"],at={itemStyle:"getItemStyle",lineStyle:"getLineStyle",areaStyle:"getAreaStyle"};function st(t,e,n,i){n=n||"itemStyle";for(var r=0;r<ot.length;r++){var o=ot[r],a=e.getModel([o,n]);t.ensureState(o).style=i?i(a):a[at[n]]()}}function lt(t,e){var n=!1===e,i=t;t.highDownSilentOnTouch&&(i.__highDownSilentOnTouch=t.highDownSilentOnTouch),n&&!i.__highDownDispatcher||(i.__highByOuter=i.__highByOuter||0,i.__highDownDispatcher=!n)}function ht(t){return!(!t||!t.__highDownDispatcher)}function ct(t,e,n){var i=(0,r.z)(t);i.componentMainType=e.mainType,i.componentIndex=e.componentIndex,i.componentHighDownName=n}function ut(t){var e=h[t];return null==e&&l<=32&&(e=h[t]=l++),e}function dt(t){var e=t.type;return e===b||e===w||e===S}function pt(t){var e=t.type;return e===_||e===x}function ft(t){var e=c(t);e.normalFill=t.style.fill,e.normalStroke=t.style.stroke;var n=t.states.select||{};e.selectFill=n.style&&n.style.fill||null,e.selectStroke=n.style&&n.style.stroke||null}},4926:(t,e,n)=>{"use strict";n.d(e,{$V:()=>y,hV:()=>S,v5:()=>b,xU:()=>w});var i=n(7845),r=n(1885),o=n(5840),a=n(7551),s=n(1262),l=n(6004),h=n(5383),c=n(4611),u=n(8883),d=r.Ay.extend({type:"triangle",shape:{cx:0,cy:0,width:0,height:0},buildPath:function(t,e){var n=e.cx,i=e.cy,r=e.width/2,o=e.height/2;t.moveTo(n,i-o),t.lineTo(n+r,i+o),t.lineTo(n-r,i+o),t.closePath()}}),p=r.Ay.extend({type:"diamond",shape:{cx:0,cy:0,width:0,height:0},buildPath:function(t,e){var n=e.cx,i=e.cy,r=e.width/2,o=e.height/2;t.moveTo(n,i-o),t.lineTo(n+r,i),t.lineTo(n,i+o),t.lineTo(n-r,i),t.closePath()}}),f=r.Ay.extend({type:"pin",shape:{x:0,y:0,width:0,height:0},buildPath:function(t,e){var n=e.x,i=e.y,r=e.width/5*3,o=Math.max(r,e.height),a=r/2,s=a*a/(o-a),l=i-o+a+s,h=Math.asin(s/a),c=Math.cos(h)*a,u=Math.sin(h),d=Math.cos(h),p=.6*a,f=.7*a;t.moveTo(n-c,l+s),t.arc(n,l,a,Math.PI-h,2*Math.PI+h),t.bezierCurveTo(n+c-u*p,l+s+d*p,n,i-f,n,i),t.bezierCurveTo(n,i-f,n-c+u*p,l+s+d*p,n-c,l+s),t.closePath()}}),g=r.Ay.extend({type:"arrow",shape:{x:0,y:0,width:0,height:0},buildPath:function(t,e){var n=e.height,i=e.width,r=e.x,o=e.y,a=i/3*2;t.moveTo(r,o),t.lineTo(r+a,o+n),t.lineTo(r,o+n/4*3),t.lineTo(r-a,o+n),t.lineTo(r,o),t.closePath()}}),m={line:o.A,rect:a.A,roundRect:a.A,square:a.A,circle:s.A,diamond:p,pin:f,arrow:g,triangle:d},v={line:function(t,e,n,i,r){r.x1=t,r.y1=e+i/2,r.x2=t+n,r.y2=e+i/2},rect:function(t,e,n,i,r){r.x=t,r.y=e,r.width=n,r.height=i},roundRect:function(t,e,n,i,r){r.x=t,r.y=e,r.width=n,r.height=i,r.r=Math.min(n,i)/4},square:function(t,e,n,i,r){var o=Math.min(n,i);r.x=t,r.y=e,r.width=o,r.height=o},circle:function(t,e,n,i,r){r.cx=t+n/2,r.cy=e+i/2,r.r=Math.min(n,i)/2},diamond:function(t,e,n,i,r){r.cx=t+n/2,r.cy=e+i/2,r.width=n,r.height=i},pin:function(t,e,n,i,r){r.x=t+n/2,r.y=e+i/2,r.width=n,r.height=i},arrow:function(t,e,n,i,r){r.x=t+n/2,r.y=e+i/2,r.width=n,r.height=i},triangle:function(t,e,n,i,r){r.cx=t+n/2,r.cy=e+i/2,r.width=n,r.height=i}},y={};(0,i.each)(m,(function(t,e){y[e]=new t}));var _=r.Ay.extend({type:"symbol",shape:{symbolType:"",x:0,y:0,width:0,height:0},calculateTextPosition:function(t,e,n){var i=(0,c.X4)(t,e,n),r=this.shape;return r&&"pin"===r.symbolType&&"inside"===e.position&&(i.y=n.y+.4*n.height),i},buildPath:function(t,e,n){var i=e.symbolType;if("none"!==i){var r=y[i];r||(r=y[i="rect"]),v[i](e.x,e.y,e.width,e.height,r.shape),r.buildPath(t,r.shape,n)}}});function x(t,e){if("image"!==this.type){var n=this.style;this.__isEmptyBrush?(n.stroke=t,n.fill=e||"#fff",n.lineWidth=2):"line"===this.shape.symbolType?n.stroke=t:n.fill=t,this.markRedraw()}}function b(t,e,n,i,r,o,a){var s,c=0===t.indexOf("empty");return c&&(t=t.substr(5,1).toLowerCase()+t.substr(6)),(s=0===t.indexOf("image://")?l.makeImage(t.slice(8),new h.A(e,n,i,r),a?"center":"cover"):0===t.indexOf("path://")?l.makePath(t.slice(7),{},new h.A(e,n,i,r),a?"center":"cover"):new _({shape:{symbolType:t,x:e,y:n,width:i,height:r}})).__isEmptyBrush=c,s.setColor=x,o&&s.setColor(o),s}function w(t){return(0,i.isArray)(t)||(t=[+t,+t]),[t[0]||0,t[1]||0]}function S(t,e){if(null!=t)return(0,i.isArray)(t)||(t=[t,t]),[(0,u.lo)(t[0],e[0])||0,(0,u.lo)((0,i.retrieve2)(t[1],t[0]),e[1])||0]}},3490:(t,e,n)=>{"use strict";n.d(e,{IU:()=>l,N:()=>s,nF:()=>a});var i="\0__throttleOriginMethod",r="\0__throttleRate",o="\0__throttleType";function a(t,e,n){var i,r,o,a,s,l=0,h=0,c=null;function u(){h=(new Date).getTime(),c=null,t.apply(o,a||[])}e=e||0;var d=function(){for(var t=[],d=0;d<arguments.length;d++)t[d]=arguments[d];i=(new Date).getTime(),o=this,a=t;var p=s||e,f=s||n;s=null,r=i-(f?l:h)-p,clearTimeout(c),f?c=setTimeout(u,p):r>=0?u():c=setTimeout(u,-r),l=i};return d.clear=function(){c&&(clearTimeout(c),c=null)},d.debounceNextCall=function(t){s=t},d}function s(t,e,n,s){var l=t[e];if(l){var h=l[i]||l,c=l[o];if(l[r]!==n||c!==s){if(null==n||!s)return t[e]=h;(l=t[e]=a(h,n,"debounce"===s))[i]=h,l[o]=s,l[r]=n}return l}}function l(t,e){var n=t[e];n&&n[i]&&(n.clear&&n.clear(),t[e]=n[i])}},383:(t,e,n)=>{"use strict";n.d(e,{$9:()=>x,$H:()=>u,CZ:()=>c,F7:()=>m,FP:()=>B,GP:()=>b,KF:()=>N,Lm:()=>f,MA:()=>h,OY:()=>s,Wf:()=>k,X_:()=>w,Yd:()=>O,Zz:()=>L,bP:()=>C,ce:()=>_,eV:()=>v,g0:()=>T,hY:()=>M,iC:()=>I,iW:()=>l,jJ:()=>A,tM:()=>D,ti:()=>R,ww:()=>F,xu:()=>P,yB:()=>E,ym:()=>y});var i=n(7845),r=n(8883),o=n(6650),a=n(6217),s=1e3,l=60*s,h=60*l,c=24*h,u=365*c,d={year:"{yyyy}",month:"{MMM}",day:"{d}",hour:"{HH}:{mm}",minute:"{HH}:{mm}",second:"{HH}:{mm}:{ss}",millisecond:"{HH}:{mm}:{ss} {SSS}",none:"{yyyy}-{MM}-{dd} {HH}:{mm}:{ss} {SSS}"},p="{yyyy}-{MM}-{dd}",f={year:"{yyyy}",month:"{yyyy}-{MM}",day:p,hour:p+" "+d.hour,minute:p+" "+d.minute,second:p+" "+d.second,millisecond:d.none},g=["year","month","day","hour","minute","second","millisecond"],m=["year","half-year","quarter","month","week","half-week","day","half-day","quarter-day","hour","minute","second","millisecond"];function v(t,e){return"0000".substr(0,e-(t+="").length)+t}function y(t){switch(t){case"half-year":case"quarter":return"month";case"week":case"half-week":return"day";case"half-day":case"quarter-day":return"hour";default:return t}}function _(t){return t===y(t)}function x(t){switch(t){case"year":case"month":return"day";case"millisecond":return"millisecond";default:return"second"}}function b(t,e,n,i){var s=r._U(t),l=s[M(n)](),h=s[A(n)]()+1,c=Math.floor((h-1)/3)+1,u=s[C(n)](),d=s["get"+(n?"UTC":"")+"Day"](),p=s[I(n)](),f=(p-1)%12+1,g=s[E(n)](),m=s[k(n)](),y=s[L(n)](),_=p>=12?"pm":"am",x=_.toUpperCase(),b=(i instanceof a.A?i:(0,o.A4)(i||o.Lv)||(0,o.pr)()).getModel("time"),w=b.get("month"),S=b.get("monthAbbr"),T=b.get("dayOfWeek"),D=b.get("dayOfWeekAbbr");return(e||"").replace(/{a}/g,_+"").replace(/{A}/g,x+"").replace(/{yyyy}/g,l+"").replace(/{yy}/g,v(l%100+"",2)).replace(/{Q}/g,c+"").replace(/{MMMM}/g,w[h-1]).replace(/{MMM}/g,S[h-1]).replace(/{MM}/g,v(h,2)).replace(/{M}/g,h+"").replace(/{dd}/g,v(u,2)).replace(/{d}/g,u+"").replace(/{eeee}/g,T[d]).replace(/{ee}/g,D[d]).replace(/{e}/g,d+"").replace(/{HH}/g,v(p,2)).replace(/{H}/g,p+"").replace(/{hh}/g,v(f+"",2)).replace(/{h}/g,f+"").replace(/{mm}/g,v(g,2)).replace(/{m}/g,g+"").replace(/{ss}/g,v(m,2)).replace(/{s}/g,m+"").replace(/{SSS}/g,v(y,3)).replace(/{S}/g,y+"")}function w(t,e,n,r,o){var a=null;if(i.isString(n))a=n;else if(i.isFunction(n))a=n(t.value,e,{level:t.level});else{var s=i.extend({},d);if(t.level>0)for(var l=0;l<g.length;++l)s[g[l]]="{primary|"+s[g[l]]+"}";var h=n?!1===n.inherit?n:i.defaults(n,s):s,c=S(t.value,o);if(h[c])a=h[c];else if(h.inherit){for(l=m.indexOf(c)-1;l>=0;--l)if(h[c]){a=h[c];break}a=a||s.none}if(i.isArray(a)){var u=null==t.level?0:t.level>=0?t.level:a.length+t.level;a=a[u=Math.min(u,a.length-1)]}}return b(new Date(t.value),a,o,r)}function S(t,e){var n=r._U(t),i=n[A(e)]()+1,o=n[C(e)](),a=n[I(e)](),s=n[E(e)](),l=n[k(e)](),h=0===n[L(e)](),c=h&&0===l,u=c&&0===s,d=u&&0===a,p=d&&1===o;return p&&1===i?"year":p?"month":d?"day":u?"hour":c?"minute":h?"second":"millisecond"}function T(t,e,n){var o=i.isNumber(t)?r._U(t):t;switch(e=e||S(t,n)){case"year":return o[M(n)]();case"half-year":return o[A(n)]()>=6?1:0;case"quarter":return Math.floor((o[A(n)]()+1)/4);case"month":return o[A(n)]();case"day":return o[C(n)]();case"half-day":return o[I(n)]()/24;case"hour":return o[I(n)]();case"minute":return o[E(n)]();case"second":return o[k(n)]();case"millisecond":return o[L(n)]()}}function M(t){return t?"getUTCFullYear":"getFullYear"}function A(t){return t?"getUTCMonth":"getMonth"}function C(t){return t?"getUTCDate":"getDate"}function I(t){return t?"getUTCHours":"getHours"}function E(t){return t?"getUTCMinutes":"getMinutes"}function k(t){return t?"getUTCSeconds":"getSeconds"}function L(t){return t?"getUTCMilliseconds":"getMilliseconds"}function D(t){return t?"setUTCFullYear":"setFullYear"}function P(t){return t?"setUTCMonth":"setMonth"}function R(t){return t?"setUTCDate":"setDate"}function O(t){return t?"setUTCHours":"setHours"}function N(t){return t?"setUTCMinutes":"setMinutes"}function F(t){return t?"setUTCSeconds":"setSeconds"}function B(t){return t?"setUTCMilliseconds":"setMilliseconds"}},3457:(t,e,n)=>{"use strict";n.d(e,{Km:()=>o,Pe:()=>i,Wk:()=>a,XO:()=>l,i_:()=>c,mK:()=>r,oC:()=>u,t1:()=>s,vm:()=>h});var i=(0,n(7845).createHashMap)(["tooltip","label","itemName","itemId","itemGroupId","itemChildGroupId","seriesName"]),r="original",o="arrayRows",a="objectRows",s="keyedColumns",l="typedArray",h="unknown",c="column",u="row"},3180:(t,e,n)=>{"use strict";n.d(e,{J:()=>a});var i=n(7845),r="undefined"!=typeof Float32Array,o=r?Float32Array:Array;function a(t){return(0,i.isArray)(t)?r?new Float32Array(t):t:new o(t)}},6145:(t,e,n)=>{"use strict";n.d(e,{A:()=>x});var i=n(7845),r=n(8829),o=n(1987),a=n(9902),s=n(2577),l=n(1632),h=n(1566),c=n(9421),u=n(6004),d=s.$r(),p=(0,c.A)(),f=function(){function t(){this.group=new r.A,this.uid=o.$Q("viewChart"),this.renderTask=(0,h.U)({plan:v,reset:y}),this.renderTask.context={view:this}}return t.prototype.init=function(t,e){},t.prototype.render=function(t,e,n,i){0},t.prototype.highlight=function(t,e,n,i){var r=t.getData(i&&i.dataType);r&&m(r,i,"emphasis")},t.prototype.downplay=function(t,e,n,i){var r=t.getData(i&&i.dataType);r&&m(r,i,"normal")},t.prototype.remove=function(t,e){this.group.removeAll()},t.prototype.dispose=function(t,e){},t.prototype.updateView=function(t,e,n,i){this.render(t,e,n,i)},t.prototype.updateLayout=function(t,e,n,i){this.render(t,e,n,i)},t.prototype.updateVisual=function(t,e,n,i){this.render(t,e,n,i)},t.prototype.eachRendered=function(t){(0,u.traverseElements)(this.group,t)},t.markUpdateMethod=function(t,e){d(t).updateMethod=e},t.protoInitialize=void(t.prototype.type="chart"),t}();function g(t,e,n){t&&(0,l.u6)(t)&&("emphasis"===e?l.HY:l.SD)(t,n)}function m(t,e,n){var r=s.le(t,e),o=e&&null!=e.highlightKey?(0,l._n)(e.highlightKey):null;null!=r?(0,i.each)(s.qB(r),(function(e){g(t.getItemGraphicEl(e),n,o)})):t.eachItemGraphicEl((function(t){g(t,n,o)}))}function v(t){return p(t.model)}function y(t){var e=t.model,n=t.ecModel,i=t.api,r=t.payload,o=e.pipelineContext.progressiveRender,a=t.view,s=r&&d(r).updateMethod,l=o?"incrementalPrepareRender":s&&a[s]?s:"render";return"render"!==l&&a[l](e,n,i,r),_[l]}a.gq(f,["dispose"]),a.tQ(f);var _={incrementalPrepareRender:{progress:function(t,e){e.view.incrementalRender(t,e.model,e.ecModel,e.api,e.payload)}},render:{forceFirstProgress:!0,progress:function(t,e){e.view.render(e.model,e.ecModel,e.api,e.payload)}}};const x=f},5370:(t,e,n)=>{"use strict";n.d(e,{A:()=>s});var i=n(8829),r=n(1987),o=n(9902),a=function(){function t(){this.group=new i.A,this.uid=r.$Q("viewComponent")}return t.prototype.init=function(t,e){},t.prototype.render=function(t,e,n,i){},t.prototype.dispose=function(t,e){},t.prototype.updateView=function(t,e,n,i){},t.prototype.updateLayout=function(t,e,n,i){},t.prototype.updateVisual=function(t,e,n,i){},t.prototype.toggleBlurSeries=function(t,e,n){},t.prototype.eachRendered=function(t){var e=this.group;e&&e.traverse(t)},t}();o.gq(a),o.tQ(a);const s=a},2322:(t,e,n)=>{"use strict";function i(t,e,n){switch(n){case"color":return t.getItemVisual(e,"style")[t.getVisual("drawType")];case"opacity":return t.getItemVisual(e,"style").opacity;case"symbol":case"symbolSize":case"liftZ":return t.getItemVisual(e,n)}}function r(t,e){switch(e){case"color":return t.getVisual("style")[t.getVisual("drawType")];case"opacity":return t.getVisual("style").opacity;case"symbol":case"symbolSize":case"liftZ":return t.getVisual(e)}}function o(t,e,n,i){switch(n){case"color":t.ensureUniqueItemVisual(e,"style")[t.getVisual("drawType")]=i,t.setItemVisual(e,"colorFromPalette",!1);break;case"opacity":t.ensureUniqueItemVisual(e,"style").opacity=i;break;case"symbol":case"symbolSize":case"liftZ":t.setItemVisual(e,n,i)}}n.d(e,{Ez:()=>i,oZ:()=>o,rI:()=>r})},8554:(t,e,n)=>{"use strict";n.d(e,{A:()=>o});const i={1:"The view center is not defined",2:"The view resolution is not defined",3:"The view rotation is not defined",4:"`image` and `src` cannot be provided at the same time",5:"`imgSize` must be set when `image` is provided",7:"`format` must be set when `url` is set",8:"Unknown `serverType` configured",9:"`url` must be configured or set using `#setUrl()`",10:"The default `geometryFunction` can only handle `Point` geometries",11:"`options.featureTypes` must be an Array",12:"`options.geometryName` must also be provided when `options.bbox` is set",13:"Invalid corner",14:"Invalid color",15:"Tried to get a value for a key that does not exist in the cache",16:"Tried to set a value for a key that is used already",17:"`resolutions` must be sorted in descending order",18:"Either `origin` or `origins` must be configured, never both",19:"Number of `tileSizes` and `resolutions` must be equal",20:"Number of `origins` and `resolutions` must be equal",22:"Either `tileSize` or `tileSizes` must be configured, never both",24:"Invalid extent or geometry provided as `geometry`",25:"Cannot fit empty extent provided as `geometry`",26:"Features must have an id set",27:"Features must have an id set",28:'`renderMode` must be `"hybrid"` or `"vector"`',30:"The passed `feature` was already added to the source",31:"Tried to enqueue an `element` that was already added to the queue",32:"Transformation matrix cannot be inverted",33:"Invalid units",34:"Invalid geometry layout",36:"Unknown SRS type",37:"Unknown geometry type found",38:"`styleMapValue` has an unknown type",39:"Unknown geometry type",40:"Expected `feature` to have a geometry",41:"Expected an `ol/style/Style` or an array of `ol/style/Style.js`",42:"Question unknown, the answer is 42",43:"Expected `layers` to be an array or a `Collection`",47:"Expected `controls` to be an array or an `ol/Collection`",48:"Expected `interactions` to be an array or an `ol/Collection`",49:"Expected `overlays` to be an array or an `ol/Collection`",50:"`options.featureTypes` should be an Array",51:"Either `url` or `tileJSON` options must be provided",52:"Unknown `serverType` configured",53:"Unknown `tierSizeCalculation` configured",55:"The {-y} placeholder requires a tile grid with extent",56:"mapBrowserEvent must originate from a pointer event",57:"At least 2 conditions are required",59:"Invalid command found in the PBF",60:"Missing or invalid `size`",61:"Cannot determine IIIF Image API version from provided image information JSON",62:"A `WebGLArrayBuffer` must either be of type `ELEMENT_ARRAY_BUFFER` or `ARRAY_BUFFER`",64:"Layer opacity must be a number",66:"`forEachFeatureAtCoordinate` cannot be used on a WebGL layer if the hit detection logic has not been enabled. This is done by providing adequate shaders using the `hitVertexShader` and `hitFragmentShader` properties of `WebGLPointsLayerRenderer`",67:"A layer can only be added to the map once. Use either `layer.setMap()` or `map.addLayer()`, not both",68:"A VectorTile source can only be rendered if it has a projection compatible with the view projection",69:"`width` or `height` cannot be provided together with `scale`"};class r extends Error{constructor(t){const e=i[t];super(e),this.code=t,this.name="AssertionError",this.message=e}}const o=r},5616:(t,e,n)=>{"use strict";n.d(e,{A:()=>c});var i=n(8554),r=n(5191),o=n(5930),a=n(5026);const s="length";class l extends a.Ay{constructor(t,e,n){super(t),this.element=e,this.index=n}}class h extends r.A{constructor(t,e){if(super(),this.on,this.once,this.un,e=e||{},this.unique_=!!e.unique,this.array_=t||[],this.unique_)for(let n=0,i=this.array_.length;n<i;++n)this.assertUnique_(this.array_[n],n);this.updateLength_()}clear(){for(;this.getLength()>0;)this.pop()}extend(t){for(let e=0,n=t.length;e<n;++e)this.push(t[e]);return this}forEach(t){const e=this.array_;for(let n=0,i=e.length;n<i;++n)t(e[n],n,e)}getArray(){return this.array_}item(t){return this.array_[t]}getLength(){return this.get(s)}insertAt(t,e){if(t<0||t>this.getLength())throw new Error("Index out of bounds: "+t);this.unique_&&this.assertUnique_(e),this.array_.splice(t,0,e),this.updateLength_(),this.dispatchEvent(new l(o.A.ADD,e,t))}pop(){return this.removeAt(this.getLength()-1)}push(t){this.unique_&&this.assertUnique_(t);const e=this.getLength();return this.insertAt(e,t),this.getLength()}remove(t){const e=this.array_;for(let n=0,i=e.length;n<i;++n)if(e[n]===t)return this.removeAt(n)}removeAt(t){if(t<0||t>=this.getLength())return;const e=this.array_[t];return this.array_.splice(t,1),this.updateLength_(),this.dispatchEvent(new l(o.A.REMOVE,e,t)),e}setAt(t,e){if(t>=this.getLength())return void this.insertAt(t,e);if(t<0)throw new Error("Index out of bounds: "+t);this.unique_&&this.assertUnique_(e,t);const n=this.array_[t];this.array_[t]=e,this.dispatchEvent(new l(o.A.REMOVE,n,t)),this.dispatchEvent(new l(o.A.ADD,e,t))}updateLength_(){this.set(s,this.array_.length)}assertUnique_(t,e){for(let n=0,r=this.array_.length;n<r;++n)if(this.array_[n]===t&&n!==e)throw new i.A(58)}}const c=h},5930:(t,e,n)=>{"use strict";n.d(e,{A:()=>i});const i={ADD:"add",REMOVE:"remove"}},7034:(t,e,n)=>{"use strict";n.d(e,{A:()=>i});const i=class{constructor(){this.disposed=!1}dispose(){this.disposed||(this.disposed=!0,this.disposeInternal())}disposeInternal(){}}},1116:(t,e,n)=>{"use strict";n.d(e,{A:()=>l});var i=n(5191),r=n(874),o=n(3957),a=n(2657);class s extends i.A{constructor(t){if(super(),this.on,this.once,this.un,this.id_=void 0,this.geometryName_="geometry",this.style_=null,this.styleFunction_=void 0,this.geometryChangeKey_=null,this.addChangeListener(this.geometryName_,this.handleGeometryChanged_),t)if("function"==typeof t.getSimplifiedGeometry){const e=t;this.setGeometry(e)}else{const e=t;this.setProperties(e)}}clone(){const t=new s(this.hasProperties()?this.getProperties():null);t.setGeometryName(this.getGeometryName());const e=this.getGeometry();e&&t.setGeometry(e.clone());const n=this.getStyle();return n&&t.setStyle(n),t}getGeometry(){return this.get(this.geometryName_)}getId(){return this.id_}getGeometryName(){return this.geometryName_}getStyle(){return this.style_}getStyleFunction(){return this.styleFunction_}handleGeometryChange_(){this.changed()}handleGeometryChanged_(){this.geometryChangeKey_&&((0,a.JH)(this.geometryChangeKey_),this.geometryChangeKey_=null);const t=this.getGeometry();t&&(this.geometryChangeKey_=(0,a.KT)(t,r.A.CHANGE,this.handleGeometryChange_,this)),this.changed()}setGeometry(t){this.set(this.geometryName_,t)}setStyle(t){this.style_=t,this.styleFunction_=t?function(t){if("function"==typeof t)return t;let e;if(Array.isArray(t))e=t;else{(0,o.v)("function"==typeof t.getZIndex,41);e=[t]}return function(){return e}}(t):void 0,this.changed()}setId(t){this.id_=t,this.changed()}setGeometryName(t){this.removeChangeListener(this.geometryName_,this.handleGeometryChanged_),this.geometryName_=t,this.addChangeListener(this.geometryName_,this.handleGeometryChanged_),this.handleGeometryChanged_()}}const l=s},9407:(t,e,n)=>{"use strict";n.d(e,{A:()=>u,f:()=>c});var i=n(874),r=n(6414),o=n(438),a=n(6306),s=n(4320),l=n(2657);class h extends r.A{constructor(t,e,n,i,r,a,s){super(t,e,n,o.A.IDLE),this.src_=i,this.image_=new Image,null!==r&&(this.image_.crossOrigin=r),this.context_=s,this.unlisten_=null,this.state=o.A.IDLE,this.imageLoadFunction_=a}getImage(){if(this.state==o.A.LOADED&&this.context_&&!(this.image_ instanceof HTMLCanvasElement)){const t=this.context_.canvas;t.width=this.image_.width,t.height=this.image_.height,this.context_.drawImage(this.image_,0,0),this.image_=this.context_.canvas}return this.image_}handleImageError_(){this.state=o.A.ERROR,this.unlistenImage_(),this.changed()}handleImageLoad_(){void 0===this.resolution&&(this.resolution=(0,s.Oq)(this.extent)/this.image_.height),this.state=o.A.LOADED,this.unlistenImage_(),this.changed()}load(){this.state!=o.A.IDLE&&this.state!=o.A.ERROR||(this.state=o.A.LOADING,this.changed(),this.imageLoadFunction_(this,this.src_),this.unlisten_=c(this.image_,this.handleImageLoad_.bind(this),this.handleImageError_.bind(this)))}setImage(t){this.image_=t,this.resolution=(0,s.Oq)(this.extent)/this.image_.height}unlistenImage_(){this.unlisten_&&(this.unlisten_(),this.unlisten_=null)}}function c(t,e,n){const r=t;let o=!0,s=!1,h=!1;const c=[(0,l.Jz)(r,i.A.LOAD,(function(){h=!0,s||e()}))];return r.src&&a.DT?(s=!0,r.decode().then((function(){o&&e()})).catch((function(t){o&&(h?e():n())}))):c.push((0,l.Jz)(r,i.A.ERROR,n)),function(){o=!1,c.forEach(l.JH)}}const u=h},6414:(t,e,n)=>{"use strict";n.d(e,{A:()=>s});var i=n(1385),r=n(874),o=n(6916);class a extends i.A{constructor(t,e,n,i){super(),this.extent=t,this.pixelRatio_=n,this.resolution=e,this.state=i}changed(){this.dispatchEvent(r.A.CHANGE)}getExtent(){return this.extent}getImage(){return(0,o.b0)()}getPixelRatio(){return this.pixelRatio_}getResolution(){return this.resolution}getState(){return this.state}load(){(0,o.b0)()}}const s=a},438:(t,e,n)=>{"use strict";n.d(e,{A:()=>i});const i={IDLE:0,LOADING:1,LOADED:2,ERROR:3,EMPTY:4}},931:(t,e,n)=>{"use strict";n.d(e,{A:()=>l});var i=n(3588),r=n(5751),o=n(7354),a=n(9407);class s extends i.A{constructor(t,e,n,i,r,o){super(t,e,o),this.crossOrigin_=i,this.src_=n,this.key=n,this.image_=new Image,null!==i&&(this.image_.crossOrigin=i),this.unlisten_=null,this.tileLoadFunction_=r}getImage(){return this.image_}setImage(t){this.image_=t,this.state=r.A.LOADED,this.unlistenImage_(),this.changed()}handleImageError_(){this.state=r.A.ERROR,this.unlistenImage_(),this.image_=function(){const t=(0,o.Y)(1,1);return t.fillStyle="rgba(0,0,0,0)",t.fillRect(0,0,1,1),t.canvas}(),this.changed()}handleImageLoad_(){const t=this.image_;t.naturalWidth&&t.naturalHeight?this.state=r.A.LOADED:this.state=r.A.EMPTY,this.unlistenImage_(),this.changed()}load(){this.state==r.A.ERROR&&(this.state=r.A.IDLE,this.image_=new Image,null!==this.crossOrigin_&&(this.image_.crossOrigin=this.crossOrigin_)),this.state==r.A.IDLE&&(this.state=r.A.LOADING,this.changed(),this.tileLoadFunction_(this,this.src_),this.unlisten_=(0,a.f)(this.image_,this.handleImageLoad_.bind(this),this.handleImageError_.bind(this)))}unlistenImage_(){this.unlisten_&&(this.unlisten_(),this.unlisten_=null)}}const l=s},6021:(t,e,n)=>{"use strict";n.d(e,{A:()=>i});const i=class{constructor(t,e,n){this.decay_=t,this.minVelocity_=e,this.delay_=n,this.points_=[],this.angle_=0,this.initialVelocity_=0}begin(){this.points_.length=0,this.angle_=0,this.initialVelocity_=0}update(t,e){this.points_.push(t,e,Date.now())}end(){if(this.points_.length<6)return!1;const t=Date.now()-this.delay_,e=this.points_.length-3;if(this.points_[e+2]<t)return!1;let n=e-3;for(;n>0&&this.points_[n+2]>t;)n-=3;const i=this.points_[e+2]-this.points_[n+2];if(i<1e3/60)return!1;const r=this.points_[e]-this.points_[n],o=this.points_[e+1]-this.points_[n+1];return this.angle_=Math.atan2(o,r),this.initialVelocity_=Math.sqrt(r*r+o*o)/i,this.initialVelocity_>this.minVelocity_}getDistance(){return(this.minVelocity_-this.initialVelocity_)/this.decay_}getAngle(){return this.angle_}}},9532:(t,e,n)=>{"use strict";n.d(e,{A:()=>Yt});var i=n(5191),r=n(5616),o=n(5930),a=n(7034),s=n(6079),l=n(6916),h=n(686),c=n(4320),u=n(1386),d=n(221),p=n(6234);class f extends a.A{constructor(t){super(),this.map_=t}dispatchRenderEvent(t,e){(0,l.b0)()}calculateMatrices2D(t){const e=t.viewState,n=t.coordinateToPixelTransform,i=t.pixelToCoordinateTransform;(0,h.Zz)(n,t.size[0]/2,t.size[1]/2,1/e.resolution,-1/e.resolution,-e.rotation,-e.center[0],-e.center[1]),(0,h.T9)(i,n)}forEachFeatureAtCoordinate(t,e,n,i,r,o,a,s){let l;const h=e.viewState;function u(t,e,n,i){return r.call(o,e,t?n:null,i)}const f=h.projection,g=(0,p.Li)(t.slice(),f),m=[[0,0]];if(f.canWrapX()&&i){const t=f.getExtent(),e=(0,c.RG)(t);m.push([-e,0],[e,0])}const v=e.layerStatesArray,y=v.length,_=[],x=[];for(let c=0;c<m.length;c++)for(let i=y-1;i>=0;--i){const r=v[i],o=r.layer;if(o.hasRenderer()&&(0,d.l)(r,h)&&a.call(s,o)){const i=o.getRenderer(),a=o.getSource();if(i&&a){const o=a.getWrapX()?g:t,s=u.bind(null,r.managed);x[0]=o[0]+m[c][0],x[1]=o[1]+m[c][1],l=i.forEachFeatureAtCoordinate(x,e,n,s,_)}if(l)return l}}if(0===_.length)return;const b=1/_.length;return _.forEach(((t,e)=>t.distanceSq+=e*b)),_.sort(((t,e)=>t.distanceSq-e.distanceSq)),_.some((t=>l=t.callback(t.feature,t.layer,t.geometry))),l}hasFeatureAtCoordinate(t,e,n,i,r,o){return void 0!==this.forEachFeatureAtCoordinate(t,e,n,i,s.rT,this,r,o)}getMap(){return this.map_}renderFrame(t){(0,l.b0)()}flushDeclutterItems(t){}scheduleExpireIconCache(t){u.u.canExpireCache()&&t.postRenderFunctions.push(g)}}function g(t,e){u.u.expire()}const m=f;var v=n(1335),y=n(6263),_=n(4431),x=n(5433),b=n(1763),w=n(2657),S=n(7354);const T=class extends m{constructor(t){super(t),this.fontChangeListenerKey_=(0,w.KT)(b.yY,v.A.PROPERTYCHANGE,t.redrawText.bind(t)),this.element_=document.createElement("div");const e=this.element_.style;e.position="absolute",e.width="100%",e.height="100%",e.zIndex="0",this.element_.className=x.XI+" ol-layers";const n=t.getViewport();n.insertBefore(this.element_,n.firstChild||null),this.children_=[],this.renderedVisible_=!0,this.declutterLayers_=[]}dispatchRenderEvent(t,e){const n=this.getMap();if(n.hasListener(t)){const i=new y.A(t,void 0,e);n.dispatchEvent(i)}}disposeInternal(){(0,w.JH)(this.fontChangeListenerKey_),this.element_.parentNode.removeChild(this.element_),super.disposeInternal()}renderFrame(t){if(!t)return void(this.renderedVisible_&&(this.element_.style.display="none",this.renderedVisible_=!1));this.calculateMatrices2D(t),this.dispatchRenderEvent(_.A.PRECOMPOSE,t);const e=t.layerStatesArray.sort((function(t,e){return t.zIndex-e.zIndex})),n=t.viewState;this.children_.length=0;const i=this.declutterLayers_;i.length=0;let r=null;for(let o=0,a=e.length;o<a;++o){const a=e[o];t.layerIndex=o;const s=a.layer,l=s.getSourceState();if(!(0,d.l)(a,n)||"ready"!=l&&"undefined"!=l){s.unrender();continue}const h=s.render(t,r);h&&(h!==r&&(this.children_.push(h),r=h),"getDeclutter"in s&&i.push(s))}this.flushDeclutterItems(t),(0,S.WM)(this.element_,this.children_),this.dispatchRenderEvent(_.A.POSTCOMPOSE,t),this.renderedVisible_||(this.element_.style.display="",this.renderedVisible_=!0),this.scheduleExpireIconCache(t)}flushDeclutterItems(t){const e=this.declutterLayers_;for(let n=e.length-1;n>=0;--n)e[n].renderDeclutter(t);e.length=0}};var M=n(874),A=n(9251),C=n(5026),I=n(3957),E=n(6943);class k extends C.Ay{constructor(t,e){super(t),this.layer=e}}const L="layers";class D extends A.A{constructor(t){t=t||{};const e=Object.assign({},t);delete e.layers;let n=t.layers;super(e),this.on,this.once,this.un,this.layersListenerKeys_=[],this.listenerKeys_={},this.addChangeListener(L,this.handleLayersChanged_),n?Array.isArray(n)?n=new r.A(n.slice(),{unique:!0}):(0,I.v)("function"==typeof n.getArray,43):n=new r.A(void 0,{unique:!0}),this.setLayers(n)}handleLayerChange_(){this.changed()}handleLayersChanged_(){this.layersListenerKeys_.forEach(w.JH),this.layersListenerKeys_.length=0;const t=this.getLayers();this.layersListenerKeys_.push((0,w.KT)(t,o.A.ADD,this.handleLayersAdd_,this),(0,w.KT)(t,o.A.REMOVE,this.handleLayersRemove_,this));for(const n in this.listenerKeys_)this.listenerKeys_[n].forEach(w.JH);(0,E.I)(this.listenerKeys_);const e=t.getArray();for(let n=0,i=e.length;n<i;n++){const t=e[n];this.registerLayerListeners_(t),this.dispatchEvent(new k("addlayer",t))}this.changed()}registerLayerListeners_(t){const e=[(0,w.KT)(t,v.A.PROPERTYCHANGE,this.handleLayerChange_,this),(0,w.KT)(t,M.A.CHANGE,this.handleLayerChange_,this)];t instanceof D&&e.push((0,w.KT)(t,"addlayer",this.handleLayerGroupAdd_,this),(0,w.KT)(t,"removelayer",this.handleLayerGroupRemove_,this)),this.listenerKeys_[(0,l.v6)(t)]=e}handleLayerGroupAdd_(t){this.dispatchEvent(new k("addlayer",t.layer))}handleLayerGroupRemove_(t){this.dispatchEvent(new k("removelayer",t.layer))}handleLayersAdd_(t){const e=t.element;this.registerLayerListeners_(e),this.dispatchEvent(new k("addlayer",e)),this.changed()}handleLayersRemove_(t){const e=t.element,n=(0,l.v6)(e);this.listenerKeys_[n].forEach(w.JH),delete this.listenerKeys_[n],this.dispatchEvent(new k("removelayer",e)),this.changed()}getLayers(){return this.get(L)}setLayers(t){const e=this.getLayers();if(e){const t=e.getArray();for(let e=0,n=t.length;e<n;++e)this.dispatchEvent(new k("removelayer",t[e]))}this.set(L,t)}getLayersArray(t){return t=void 0!==t?t:[],this.getLayers().forEach((function(e){e.getLayersArray(t)})),t}getLayerStatesArray(t){const e=void 0!==t?t:[],n=e.length;this.getLayers().forEach((function(t){t.getLayerStatesArray(e)}));const i=this.getLayerState();let r=i.zIndex;t||void 0!==i.zIndex||(r=0);for(let o=n,a=e.length;o<a;o++){const t=e[o];t.opacity*=i.opacity,t.visible=t.visible&&i.visible,t.maxResolution=Math.min(t.maxResolution,i.maxResolution),t.minResolution=Math.max(t.minResolution,i.minResolution),t.minZoom=Math.max(t.minZoom,i.minZoom),t.maxZoom=Math.min(t.maxZoom,i.maxZoom),void 0!==i.extent&&(void 0!==t.extent?t.extent=(0,c._N)(t.extent,i.extent):t.extent=i.extent),void 0===t.zIndex&&(t.zIndex=r)}return e}getSourceState(){return"ready"}}const P=D;var R=n(7264),O=n(5462),N=n(3640),F=n(7762),B=n(7738);const z="layergroup",G="size",V="target",j="view";var H=n(228),W=n(2384),U=n(3427),q=n(8856),X=n(6306);class Y extends i.A{constructor(t){super();const e=t.element;!e||t.target||e.style.pointerEvents||(e.style.pointerEvents="auto"),this.element=e||null,this.target_=null,this.map_=null,this.listenerKeys=[],t.render&&(this.render=t.render),t.target&&this.setTarget(t.target)}disposeInternal(){(0,S.bf)(this.element),super.disposeInternal()}getMap(){return this.map_}setMap(t){this.map_&&(0,S.bf)(this.element);for(let e=0,n=this.listenerKeys.length;e<n;++e)(0,w.JH)(this.listenerKeys[e]);if(this.listenerKeys.length=0,this.map_=t,t){(this.target_?this.target_:t.getOverlayContainerStopEvent()).appendChild(this.element),this.render!==s.tV&&this.listenerKeys.push((0,w.KT)(t,B.A.POSTRENDER,this.render,this)),t.render()}}render(t){}setTarget(t){this.target_="string"==typeof t?document.getElementById(t):t}}const Z=Y;var $=n(9783);const K=class extends Z{constructor(t){t=t||{},super({element:document.createElement("div"),render:t.render,target:t.target}),this.ulElement_=document.createElement("ul"),this.collapsed_=void 0===t.collapsed||t.collapsed,this.userCollapsed_=this.collapsed_,this.overrideCollapsible_=void 0!==t.collapsible,this.collapsible_=void 0===t.collapsible||t.collapsible,this.collapsible_||(this.collapsed_=!1);const e=void 0!==t.className?t.className:"ol-attribution",n=void 0!==t.tipLabel?t.tipLabel:"Attributions",i=void 0!==t.expandClassName?t.expandClassName:e+"-expand",r=void 0!==t.collapseLabel?t.collapseLabel:"\u203a",o=void 0!==t.collapseClassName?t.collapseClassName:e+"-collapse";"string"==typeof r?(this.collapseLabel_=document.createElement("span"),this.collapseLabel_.textContent=r,this.collapseLabel_.className=o):this.collapseLabel_=r;const a=void 0!==t.label?t.label:"i";"string"==typeof a?(this.label_=document.createElement("span"),this.label_.textContent=a,this.label_.className=i):this.label_=a;const s=this.collapsible_&&!this.collapsed_?this.collapseLabel_:this.label_;this.toggleButton_=document.createElement("button"),this.toggleButton_.setAttribute("type","button"),this.toggleButton_.setAttribute("aria-expanded",String(!this.collapsed_)),this.toggleButton_.title=n,this.toggleButton_.appendChild(s),this.toggleButton_.addEventListener(M.A.CLICK,this.handleClick_.bind(this),!1);const l=e+" "+x.XI+" "+x.$N+(this.collapsed_&&this.collapsible_?" "+x.nT:"")+(this.collapsible_?"":" ol-uncollapsible"),h=this.element;h.className=l,h.appendChild(this.toggleButton_),h.appendChild(this.ulElement_),this.renderedAttributions_=[],this.renderedVisible_=!0}collectSourceAttributions_(t){const e=Array.from(new Set(this.getMap().getAllLayers().flatMap((e=>e.getAttributions(t))))),n=!this.getMap().getAllLayers().some((t=>t.getSource()&&!1===t.getSource().getAttributionsCollapsible()));return this.overrideCollapsible_||this.setCollapsible(n),e}updateElement_(t){if(!t)return void(this.renderedVisible_&&(this.element.style.display="none",this.renderedVisible_=!1));const e=this.collectSourceAttributions_(t),n=e.length>0;if(this.renderedVisible_!=n&&(this.element.style.display=n?"":"none",this.renderedVisible_=n),!(0,$.aI)(e,this.renderedAttributions_)){(0,S.gS)(this.ulElement_);for(let t=0,n=e.length;t<n;++t){const n=document.createElement("li");n.innerHTML=e[t],this.ulElement_.appendChild(n)}this.renderedAttributions_=e}}handleClick_(t){t.preventDefault(),this.handleToggle_(),this.userCollapsed_=this.collapsed_}handleToggle_(){this.element.classList.toggle(x.nT),this.collapsed_?(0,S.fo)(this.collapseLabel_,this.label_):(0,S.fo)(this.label_,this.collapseLabel_),this.collapsed_=!this.collapsed_,this.toggleButton_.setAttribute("aria-expanded",String(!this.collapsed_))}getCollapsible(){return this.collapsible_}setCollapsible(t){this.collapsible_!==t&&(this.collapsible_=t,this.element.classList.toggle("ol-uncollapsible"),this.userCollapsed_&&this.handleToggle_())}setCollapsed(t){this.userCollapsed_=t,this.collapsible_&&this.collapsed_!==t&&this.handleToggle_()}getCollapsed(){return this.collapsed_}render(t){this.updateElement_(t.frameState)}};var J=n(3829);const Q=class extends Z{constructor(t){t=t||{},super({element:document.createElement("div"),render:t.render,target:t.target});const e=void 0!==t.className?t.className:"ol-rotate",n=void 0!==t.label?t.label:"\u21e7",i=void 0!==t.compassClassName?t.compassClassName:"ol-compass";this.label_=null,"string"==typeof n?(this.label_=document.createElement("span"),this.label_.className=i,this.label_.textContent=n):(this.label_=n,this.label_.classList.add(i));const r=t.tipLabel?t.tipLabel:"Reset rotation",o=document.createElement("button");o.className=e+"-reset",o.setAttribute("type","button"),o.title=r,o.appendChild(this.label_),o.addEventListener(M.A.CLICK,this.handleClick_.bind(this),!1);const a=e+" "+x.XI+" "+x.$N,s=this.element;s.className=a,s.appendChild(o),this.callResetNorth_=t.resetNorth?t.resetNorth:void 0,this.duration_=void 0!==t.duration?t.duration:250,this.autoHide_=void 0===t.autoHide||t.autoHide,this.rotation_=void 0,this.autoHide_&&this.element.classList.add(x.Si)}handleClick_(t){t.preventDefault(),void 0!==this.callResetNorth_?this.callResetNorth_():this.resetNorth_()}resetNorth_(){const t=this.getMap().getView();if(!t)return;const e=t.getRotation();void 0!==e&&(this.duration_>0&&e%(2*Math.PI)!=0?t.animate({rotation:0,duration:this.duration_,easing:J.vT}):t.setRotation(0))}render(t){const e=t.frameState;if(!e)return;const n=e.viewState.rotation;if(n!=this.rotation_){const t="rotate("+n+"rad)";if(this.autoHide_){const t=this.element.classList.contains(x.Si);t||0!==n?t&&0!==n&&this.element.classList.remove(x.Si):this.element.classList.add(x.Si)}this.label_.style.transform=t}this.rotation_=n}};const tt=class extends Z{constructor(t){t=t||{},super({element:document.createElement("div"),target:t.target});const e=void 0!==t.className?t.className:"ol-zoom",n=void 0!==t.delta?t.delta:1,i=void 0!==t.zoomInClassName?t.zoomInClassName:e+"-in",r=void 0!==t.zoomOutClassName?t.zoomOutClassName:e+"-out",o=void 0!==t.zoomInLabel?t.zoomInLabel:"+",a=void 0!==t.zoomOutLabel?t.zoomOutLabel:"\u2013",s=void 0!==t.zoomInTipLabel?t.zoomInTipLabel:"Zoom in",l=void 0!==t.zoomOutTipLabel?t.zoomOutTipLabel:"Zoom out",h=document.createElement("button");h.className=i,h.setAttribute("type","button"),h.title=s,h.appendChild("string"==typeof o?document.createTextNode(o):o),h.addEventListener(M.A.CLICK,this.handleClick_.bind(this,n),!1);const c=document.createElement("button");c.className=r,c.setAttribute("type","button"),c.title=l,c.appendChild("string"==typeof a?document.createTextNode(a):a),c.addEventListener(M.A.CLICK,this.handleClick_.bind(this,-n),!1);const u=e+" "+x.XI+" "+x.$N,d=this.element;d.className=u,d.appendChild(h),d.appendChild(c),this.duration_=void 0!==t.duration?t.duration:250}handleClick_(t,e){e.preventDefault(),this.zoomByDelta_(t)}zoomByDelta_(t){const e=this.getMap().getView();if(!e)return;const n=e.getZoom();if(void 0!==n){const i=e.getConstrainedZoom(n+t);this.duration_>0?(e.getAnimating()&&e.cancelAnimations(),e.animate({zoom:i,duration:this.duration_,easing:J.vT})):e.setZoom(i)}}};const et="active";class nt extends i.A{constructor(t){super(),this.on,this.once,this.un,t&&t.handleEvent&&(this.handleEvent=t.handleEvent),this.map_=null,this.setActive(!0)}getActive(){return this.get(et)}getMap(){return this.map_}handleEvent(t){return!0}setActive(t){this.set(et,t)}setMap(t){this.map_=t}}function it(t,e,n,i){const r=t.getZoom();if(void 0===r)return;const o=t.getConstrainedZoom(r+e),a=t.getResolutionForZoom(o);t.getAnimating()&&t.cancelAnimations(),t.animate({resolution:a,anchor:n,duration:void 0!==i?i:250,easing:J.vT})}const rt=nt;const ot=class extends rt{constructor(t){super(),t=t||{},this.delta_=t.delta?t.delta:1,this.duration_=void 0!==t.duration?t.duration:250}handleEvent(t){let e=!1;if(t.type==N.A.DBLCLICK){const n=t.originalEvent,i=t.map,r=t.coordinate,o=n.shiftKey?-this.delta_:this.delta_;it(i.getView(),o,r,this.duration_),n.preventDefault(),e=!0}return!e}};function at(t){const e=t.length;let n=0,i=0;for(let r=0;r<e;r++)n+=t[r].clientX,i+=t[r].clientY;return{clientX:n/e,clientY:i/e}}const st=class extends rt{constructor(t){super(t=t||{}),t.handleDownEvent&&(this.handleDownEvent=t.handleDownEvent),t.handleDragEvent&&(this.handleDragEvent=t.handleDragEvent),t.handleMoveEvent&&(this.handleMoveEvent=t.handleMoveEvent),t.handleUpEvent&&(this.handleUpEvent=t.handleUpEvent),t.stopDown&&(this.stopDown=t.stopDown),this.handlingDownUpSequence=!1,this.targetPointers=[]}getPointerCount(){return this.targetPointers.length}handleDownEvent(t){return!1}handleDragEvent(t){}handleEvent(t){if(!t.originalEvent)return!0;let e=!1;if(this.updateTrackedPointers_(t),this.handlingDownUpSequence){if(t.type==N.A.POINTERDRAG)this.handleDragEvent(t),t.originalEvent.preventDefault();else if(t.type==N.A.POINTERUP){const e=this.handleUpEvent(t);this.handlingDownUpSequence=e&&this.targetPointers.length>0}}else if(t.type==N.A.POINTERDOWN){const n=this.handleDownEvent(t);this.handlingDownUpSequence=n,e=this.stopDown(n)}else t.type==N.A.POINTERMOVE&&this.handleMoveEvent(t);return!e}handleMoveEvent(t){}handleUpEvent(t){return!1}stopDown(t){return t}updateTrackedPointers_(t){t.activePointers&&(this.targetPointers=t.activePointers)}};function lt(t){const e=arguments;return function(t){let n=!0;for(let i=0,r=e.length;i<r&&(n=n&&e[i](t),n);++i);return n}}const ht=function(t){const e=t.originalEvent;return e.altKey&&!(e.metaKey||e.ctrlKey)&&e.shiftKey},ct=function(t){return!t.map.getTargetElement().hasAttribute("tabindex")||function(t){const e=t.map.getTargetElement(),n=t.map.getOwnerDocument().activeElement;return e.contains(n)}(t)},ut=s.rT,dt=function(t){const e=t.originalEvent;return 0==e.button&&!(X.j&&X.ew&&e.ctrlKey)},pt=function(t){const e=t.originalEvent;return!e.altKey&&!(e.metaKey||e.ctrlKey)&&!e.shiftKey},ft=function(t){const e=t.originalEvent;return!e.altKey&&!(e.metaKey||e.ctrlKey)&&e.shiftKey},gt=function(t){const e=t.originalEvent,n=e.target.tagName;return"INPUT"!==n&&"SELECT"!==n&&"TEXTAREA"!==n&&!e.target.isContentEditable},mt=function(t){const e=t.originalEvent;return(0,I.v)(void 0!==e,56),"mouse"==e.pointerType},vt=function(t){const e=t.originalEvent;return(0,I.v)(void 0!==e,56),e.isPrimary&&0===e.button};const yt=class extends st{constructor(t){super({stopDown:s.W8}),t=t||{},this.kinetic_=t.kinetic,this.lastCentroid=null,this.lastPointersCount_,this.panning_=!1;const e=t.condition?t.condition:lt(pt,vt);this.condition_=t.onFocusOnly?lt(ct,e):e,this.noKinetic_=!1}handleDragEvent(t){const e=t.map;this.panning_||(this.panning_=!0,e.getView().beginInteraction());const n=this.targetPointers,i=e.getEventPixel(at(n));if(n.length==this.lastPointersCount_){if(this.kinetic_&&this.kinetic_.update(i[0],i[1]),this.lastCentroid){const e=[this.lastCentroid[0]-i[0],i[1]-this.lastCentroid[1]],n=t.map.getView();(0,p.hs)(e,n.getResolution()),(0,p.e$)(e,n.getRotation()),n.adjustCenterInternal(e)}}else this.kinetic_&&this.kinetic_.begin();this.lastCentroid=i,this.lastPointersCount_=n.length,t.originalEvent.preventDefault()}handleUpEvent(t){const e=t.map,n=e.getView();if(0===this.targetPointers.length){if(!this.noKinetic_&&this.kinetic_&&this.kinetic_.end()){const t=this.kinetic_.getDistance(),i=this.kinetic_.getAngle(),r=n.getCenterInternal(),o=e.getPixelFromCoordinateInternal(r),a=e.getCoordinateFromPixelInternal([o[0]-t*Math.cos(i),o[1]-t*Math.sin(i)]);n.animateInternal({center:n.getConstrainedCenter(a),duration:500,easing:J.vT})}return this.panning_&&(this.panning_=!1,n.endInteraction()),!1}return this.kinetic_&&this.kinetic_.begin(),this.lastCentroid=null,!0}handleDownEvent(t){if(this.targetPointers.length>0&&this.condition_(t)){const e=t.map.getView();return this.lastCentroid=null,e.getAnimating()&&e.cancelAnimations(),this.kinetic_&&this.kinetic_.begin(),this.noKinetic_=this.targetPointers.length>1,!0}return!1}};var _t=n(8333);const xt=class extends st{constructor(t){t=t||{},super({stopDown:s.W8}),this.condition_=t.condition?t.condition:ht,this.lastAngle_=void 0,this.duration_=void 0!==t.duration?t.duration:250}handleDragEvent(t){if(!mt(t))return;const e=t.map,n=e.getView();if(n.getConstraints().rotation===_t.b8)return;const i=e.getSize(),r=t.pixel,o=Math.atan2(i[1]/2-r[1],r[0]-i[0]/2);if(void 0!==this.lastAngle_){const t=o-this.lastAngle_;n.adjustRotationInternal(-t)}this.lastAngle_=o}handleUpEvent(t){if(!mt(t))return!0;return t.map.getView().endInteraction(this.duration_),!1}handleDownEvent(t){if(!mt(t))return!1;if(dt(t)&&this.condition_(t)){return t.map.getView().beginInteraction(),this.lastAngle_=void 0,!0}return!1}};var bt=n(206);class wt extends a.A{constructor(t){super(),this.geometry_=null,this.element_=document.createElement("div"),this.element_.style.position="absolute",this.element_.style.pointerEvents="auto",this.element_.className="ol-box "+t,this.map_=null,this.startPixel_=null,this.endPixel_=null}disposeInternal(){this.setMap(null)}render_(){const t=this.startPixel_,e=this.endPixel_,n="px",i=this.element_.style;i.left=Math.min(t[0],e[0])+n,i.top=Math.min(t[1],e[1])+n,i.width=Math.abs(e[0]-t[0])+n,i.height=Math.abs(e[1]-t[1])+n}setMap(t){if(this.map_){this.map_.getOverlayContainer().removeChild(this.element_);const t=this.element_.style;t.left="inherit",t.top="inherit",t.width="inherit",t.height="inherit"}this.map_=t,this.map_&&this.map_.getOverlayContainer().appendChild(this.element_)}setPixels(t,e){this.startPixel_=t,this.endPixel_=e,this.createOrUpdateGeometry(),this.render_()}createOrUpdateGeometry(){const t=this.startPixel_,e=this.endPixel_,n=[t,[t[0],e[1]],e,[e[0],t[1]]].map(this.map_.getCoordinateFromPixelInternal,this.map_);n[4]=n[0].slice(),this.geometry_?this.geometry_.setCoordinates([n]):this.geometry_=new bt.Ay([n])}getGeometry(){return this.geometry_}}const St=wt,Tt="boxstart",Mt="boxdrag",At="boxend",Ct="boxcancel";class It extends C.Ay{constructor(t,e,n){super(t),this.coordinate=e,this.mapBrowserEvent=n}}const Et=class extends st{constructor(t){super(),this.on,this.once,this.un,t=t||{},this.box_=new St(t.className||"ol-dragbox"),this.minArea_=void 0!==t.minArea?t.minArea:64,t.onBoxEnd&&(this.onBoxEnd=t.onBoxEnd),this.startPixel_=null,this.condition_=t.condition?t.condition:dt,this.boxEndCondition_=t.boxEndCondition?t.boxEndCondition:this.defaultBoxEndCondition}defaultBoxEndCondition(t,e,n){const i=n[0]-e[0],r=n[1]-e[1];return i*i+r*r>=this.minArea_}getGeometry(){return this.box_.getGeometry()}handleDragEvent(t){this.box_.setPixels(this.startPixel_,t.pixel),this.dispatchEvent(new It(Mt,t.coordinate,t))}handleUpEvent(t){this.box_.setMap(null);const e=this.boxEndCondition_(t,this.startPixel_,t.pixel);return e&&this.onBoxEnd(t),this.dispatchEvent(new It(e?At:Ct,t.coordinate,t)),!1}handleDownEvent(t){return!!this.condition_(t)&&(this.startPixel_=t.pixel,this.box_.setMap(t.map),this.box_.setPixels(this.startPixel_,this.startPixel_),this.dispatchEvent(new It(Tt,t.coordinate,t)),!0)}onBoxEnd(t){}};const kt=class extends Et{constructor(t){super({condition:(t=t||{}).condition?t.condition:ft,className:t.className||"ol-dragzoom",minArea:t.minArea}),this.duration_=void 0!==t.duration?t.duration:200,this.out_=void 0!==t.out&&t.out}onBoxEnd(t){const e=this.getMap().getView();let n=this.getGeometry();if(this.out_){const t=e.rotatedExtentForGeometry(n),i=e.getResolutionForExtentInternal(t),r=e.getResolution()/i;n=n.clone(),n.scale(r*r)}e.fitInternal(n,{duration:this.duration_,easing:J.vT})}},Lt="ArrowLeft",Dt="ArrowUp",Pt="ArrowRight",Rt="ArrowDown";const Ot=class extends rt{constructor(t){super(),t=t||{},this.defaultCondition_=function(t){return pt(t)&>(t)},this.condition_=void 0!==t.condition?t.condition:this.defaultCondition_,this.duration_=void 0!==t.duration?t.duration:100,this.pixelDelta_=void 0!==t.pixelDelta?t.pixelDelta:128}handleEvent(t){let e=!1;if(t.type==M.A.KEYDOWN){const n=t.originalEvent,i=n.key;if(this.condition_(t)&&(i==Rt||i==Lt||i==Pt||i==Dt)){const r=t.map.getView(),o=r.getResolution()*this.pixelDelta_;let a=0,s=0;i==Rt?s=-o:i==Lt?a=-o:i==Pt?a=o:s=o;const l=[a,s];(0,p.e$)(l,r.getRotation()),function(t,e,n){const i=t.getCenterInternal();if(i){const r=[i[0]+e[0],i[1]+e[1]];t.animateInternal({duration:void 0!==n?n:250,easing:J.sn,center:t.getConstrainedCenter(r)})}}(r,l,this.duration_),n.preventDefault(),e=!0}}return!e}};const Nt=class extends rt{constructor(t){super(),t=t||{},this.condition_=t.condition?t.condition:function(t){return!function(t){const e=t.originalEvent;return X.ew?e.metaKey:e.ctrlKey}(t)&>(t)},this.delta_=t.delta?t.delta:1,this.duration_=void 0!==t.duration?t.duration:100}handleEvent(t){let e=!1;if(t.type==M.A.KEYDOWN||t.type==M.A.KEYPRESS){const n=t.originalEvent,i=n.key;if(this.condition_(t)&&("+"===i||"-"===i)){const r=t.map,o="+"===i?this.delta_:-this.delta_;it(r.getView(),o,void 0,this.duration_),n.preventDefault(),e=!0}}return!e}};var Ft=n(6021),Bt=n(2878);const zt=class extends rt{constructor(t){super(t=t||{}),this.totalDelta_=0,this.lastDelta_=0,this.maxDelta_=void 0!==t.maxDelta?t.maxDelta:1,this.duration_=void 0!==t.duration?t.duration:250,this.timeout_=void 0!==t.timeout?t.timeout:80,this.useAnchor_=void 0===t.useAnchor||t.useAnchor,this.constrainResolution_=void 0!==t.constrainResolution&&t.constrainResolution;const e=t.condition?t.condition:ut;this.condition_=t.onFocusOnly?lt(ct,e):e,this.lastAnchor_=null,this.startTime_=void 0,this.timeoutId_,this.mode_=void 0,this.trackpadEventGap_=400,this.trackpadTimeoutId_,this.deltaPerZoom_=300}endInteraction_(){this.trackpadTimeoutId_=void 0;const t=this.getMap();if(!t)return;t.getView().endInteraction(void 0,this.lastDelta_?this.lastDelta_>0?1:-1:0,this.lastAnchor_)}handleEvent(t){if(!this.condition_(t))return!0;if(t.type!==M.A.WHEEL)return!0;const e=t.map,n=t.originalEvent;let i;if(n.preventDefault(),this.useAnchor_&&(this.lastAnchor_=t.coordinate),t.type==M.A.WHEEL&&(i=n.deltaY,X._p&&n.deltaMode===WheelEvent.DOM_DELTA_PIXEL&&(i/=X.cr),n.deltaMode===WheelEvent.DOM_DELTA_LINE&&(i*=40)),0===i)return!1;this.lastDelta_=i;const r=Date.now();void 0===this.startTime_&&(this.startTime_=r),(!this.mode_||r-this.startTime_>this.trackpadEventGap_)&&(this.mode_=Math.abs(i)<4?"trackpad":"wheel");const o=e.getView();if("trackpad"===this.mode_&&!o.getConstrainResolution()&&!this.constrainResolution_)return this.trackpadTimeoutId_?clearTimeout(this.trackpadTimeoutId_):(o.getAnimating()&&o.cancelAnimations(),o.beginInteraction()),this.trackpadTimeoutId_=setTimeout(this.endInteraction_.bind(this),this.timeout_),o.adjustZoom(-i/this.deltaPerZoom_,this.lastAnchor_),this.startTime_=r,!1;this.totalDelta_+=i;const a=Math.max(this.timeout_-(r-this.startTime_),0);return clearTimeout(this.timeoutId_),this.timeoutId_=setTimeout(this.handleWheelZoom_.bind(this,e),a),!1}handleWheelZoom_(t){const e=t.getView();e.getAnimating()&&e.cancelAnimations();let n=-(0,Bt.qE)(this.totalDelta_,-this.maxDelta_*this.deltaPerZoom_,this.maxDelta_*this.deltaPerZoom_)/this.deltaPerZoom_;(e.getConstrainResolution()||this.constrainResolution_)&&(n=n?n>0?1:-1:0),it(e,n,this.lastAnchor_,this.duration_),this.mode_=void 0,this.totalDelta_=0,this.lastAnchor_=null,this.startTime_=void 0,this.timeoutId_=void 0}setMouseAnchor(t){this.useAnchor_=t,t||(this.lastAnchor_=null)}};const Gt=class extends st{constructor(t){const e=t=t||{};e.stopDown||(e.stopDown=s.W8),super(e),this.anchor_=null,this.lastAngle_=void 0,this.rotating_=!1,this.rotationDelta_=0,this.threshold_=void 0!==t.threshold?t.threshold:.3,this.duration_=void 0!==t.duration?t.duration:250}handleDragEvent(t){let e=0;const n=this.targetPointers[0],i=this.targetPointers[1],r=Math.atan2(i.clientY-n.clientY,i.clientX-n.clientX);if(void 0!==this.lastAngle_){const t=r-this.lastAngle_;this.rotationDelta_+=t,!this.rotating_&&Math.abs(this.rotationDelta_)>this.threshold_&&(this.rotating_=!0),e=t}this.lastAngle_=r;const o=t.map,a=o.getView();a.getConstraints().rotation!==_t.b8&&(this.anchor_=o.getCoordinateFromPixelInternal(o.getEventPixel(at(this.targetPointers))),this.rotating_&&(o.render(),a.adjustRotationInternal(e,this.anchor_)))}handleUpEvent(t){if(this.targetPointers.length<2){return t.map.getView().endInteraction(this.duration_),!1}return!0}handleDownEvent(t){if(this.targetPointers.length>=2){const e=t.map;return this.anchor_=null,this.lastAngle_=void 0,this.rotating_=!1,this.rotationDelta_=0,this.handlingDownUpSequence||e.getView().beginInteraction(),!0}return!1}};const Vt=class extends st{constructor(t){const e=t=t||{};e.stopDown||(e.stopDown=s.W8),super(e),this.anchor_=null,this.duration_=void 0!==t.duration?t.duration:400,this.lastDistance_=void 0,this.lastScaleDelta_=1}handleDragEvent(t){let e=1;const n=this.targetPointers[0],i=this.targetPointers[1],r=n.clientX-i.clientX,o=n.clientY-i.clientY,a=Math.sqrt(r*r+o*o);void 0!==this.lastDistance_&&(e=this.lastDistance_/a),this.lastDistance_=a;const s=t.map,l=s.getView();1!=e&&(this.lastScaleDelta_=e),this.anchor_=s.getCoordinateFromPixelInternal(s.getEventPixel(at(this.targetPointers))),s.render(),l.adjustResolutionInternal(e,this.anchor_)}handleUpEvent(t){if(this.targetPointers.length<2){const e=t.map.getView(),n=this.lastScaleDelta_>1?1:-1;return e.endInteraction(this.duration_,n),!1}return!0}handleDownEvent(t){if(this.targetPointers.length>=2){const e=t.map;return this.anchor_=null,this.lastDistance_=void 0,this.lastScaleDelta_=1,this.handlingDownUpSequence||e.getView().beginInteraction(),!0}return!1}};var jt=n(6859),Ht=n(277),Wt=n(4095);function Ut(t){t instanceof d.A?t.setMapInternal(null):t instanceof P&&t.getLayers().forEach(Ut)}function qt(t,e){if(t instanceof d.A)t.setMapInternal(e);else if(t instanceof P){const n=t.getLayers().getArray();for(let t=0,i=n.length;t<i;++t)qt(n[t],e)}}class Xt extends i.A{constructor(t){super(),t=t||{},this.on,this.once,this.un;const e=function(t){let e=null;void 0!==t.keyboardEventTarget&&(e="string"==typeof t.keyboardEventTarget?document.getElementById(t.keyboardEventTarget):t.keyboardEventTarget);const n={},i=t.layers&&"function"==typeof t.layers.getLayers?t.layers:new P({layers:t.layers});let o,a,s;n[z]=i,n[V]=t.target,n[j]=t.view instanceof U.Ay?t.view:new U.Ay,void 0!==t.controls&&(Array.isArray(t.controls)?o=new r.A(t.controls.slice()):((0,I.v)("function"==typeof t.controls.getArray,47),o=t.controls));void 0!==t.interactions&&(Array.isArray(t.interactions)?a=new r.A(t.interactions.slice()):((0,I.v)("function"==typeof t.interactions.getArray,48),a=t.interactions));void 0!==t.overlays?Array.isArray(t.overlays)?s=new r.A(t.overlays.slice()):((0,I.v)("function"==typeof t.overlays.getArray,49),s=t.overlays):s=new r.A;return{controls:o,interactions:a,keyboardEventTarget:e,overlays:s,values:n}}(t);this.renderComplete_,this.loaded_=!0,this.boundHandleBrowserEvent_=this.handleBrowserEvent.bind(this),this.maxTilesLoading_=void 0!==t.maxTilesLoading?t.maxTilesLoading:16,this.pixelRatio_=void 0!==t.pixelRatio?t.pixelRatio:X.cr,this.postRenderTimeoutHandle_,this.animationDelayKey_,this.animationDelay_=this.animationDelay_.bind(this),this.coordinateToPixelTransform_=(0,h.vt)(),this.pixelToCoordinateTransform_=(0,h.vt)(),this.frameIndex_=0,this.frameState_=null,this.previousExtent_=null,this.viewPropertyListenerKey_=null,this.viewChangeListenerKey_=null,this.layerGroupPropertyListenerKeys_=null,this.viewport_=document.createElement("div"),this.viewport_.className="ol-viewport"+("ontouchstart"in window?" ol-touch":""),this.viewport_.style.position="relative",this.viewport_.style.overflow="hidden",this.viewport_.style.width="100%",this.viewport_.style.height="100%",this.overlayContainer_=document.createElement("div"),this.overlayContainer_.style.position="absolute",this.overlayContainer_.style.zIndex="0",this.overlayContainer_.style.width="100%",this.overlayContainer_.style.height="100%",this.overlayContainer_.style.pointerEvents="none",this.overlayContainer_.className="ol-overlaycontainer",this.viewport_.appendChild(this.overlayContainer_),this.overlayContainerStopEvent_=document.createElement("div"),this.overlayContainerStopEvent_.style.position="absolute",this.overlayContainerStopEvent_.style.zIndex="0",this.overlayContainerStopEvent_.style.width="100%",this.overlayContainerStopEvent_.style.height="100%",this.overlayContainerStopEvent_.style.pointerEvents="none",this.overlayContainerStopEvent_.className="ol-overlaycontainer-stopevent",this.viewport_.appendChild(this.overlayContainerStopEvent_),this.mapBrowserEventHandler_=null,this.moveTolerance_=t.moveTolerance,this.keyboardEventTarget_=e.keyboardEventTarget,this.targetChangeHandlerKeys_=null,this.targetElement_=null,this.resizeObserver_=new ResizeObserver((()=>this.updateSize())),this.controls=e.controls||function(t){t=t||{};const e=new r.A;return(void 0===t.zoom||t.zoom)&&e.push(new tt(t.zoomOptions)),(void 0===t.rotate||t.rotate)&&e.push(new Q(t.rotateOptions)),(void 0===t.attribution||t.attribution)&&e.push(new K(t.attributionOptions)),e}(),this.interactions=e.interactions||function(t){t=t||{};const e=new r.A,n=new Ft.A(-.005,.05,100);return(void 0===t.altShiftDragRotate||t.altShiftDragRotate)&&e.push(new xt),(void 0===t.doubleClickZoom||t.doubleClickZoom)&&e.push(new ot({delta:t.zoomDelta,duration:t.zoomDuration})),(void 0===t.dragPan||t.dragPan)&&e.push(new yt({onFocusOnly:t.onFocusOnly,kinetic:n})),(void 0===t.pinchRotate||t.pinchRotate)&&e.push(new Gt),(void 0===t.pinchZoom||t.pinchZoom)&&e.push(new Vt({duration:t.zoomDuration})),(void 0===t.keyboard||t.keyboard)&&(e.push(new Ot),e.push(new Nt({delta:t.zoomDelta,duration:t.zoomDuration}))),(void 0===t.mouseWheelZoom||t.mouseWheelZoom)&&e.push(new zt({onFocusOnly:t.onFocusOnly,duration:t.zoomDuration})),(void 0===t.shiftDragZoom||t.shiftDragZoom)&&e.push(new kt({duration:t.zoomDuration})),e}({onFocusOnly:!0}),this.overlays_=e.overlays,this.overlayIdIndex_={},this.renderer_=null,this.postRenderFunctions_=[],this.tileQueue_=new W.A(this.getTilePriority.bind(this),this.handleTileChange_.bind(this)),this.addChangeListener(z,this.handleLayerGroupChanged_),this.addChangeListener(j,this.handleViewChanged_),this.addChangeListener(G,this.handleSizeChanged_),this.addChangeListener(V,this.handleTargetChanged_),this.setProperties(e.values);const n=this;!t.view||t.view instanceof U.Ay||t.view.then((function(t){n.setView(new U.Ay(t))})),this.controls.addEventListener(o.A.ADD,(t=>{t.element.setMap(this)})),this.controls.addEventListener(o.A.REMOVE,(t=>{t.element.setMap(null)})),this.interactions.addEventListener(o.A.ADD,(t=>{t.element.setMap(this)})),this.interactions.addEventListener(o.A.REMOVE,(t=>{t.element.setMap(null)})),this.overlays_.addEventListener(o.A.ADD,(t=>{this.addOverlayInternal_(t.element)})),this.overlays_.addEventListener(o.A.REMOVE,(t=>{const e=t.element.getId();void 0!==e&&delete this.overlayIdIndex_[e.toString()],t.element.setMap(null)})),this.controls.forEach((t=>{t.setMap(this)})),this.interactions.forEach((t=>{t.setMap(this)})),this.overlays_.forEach(this.addOverlayInternal_.bind(this))}addControl(t){this.getControls().push(t)}addInteraction(t){this.getInteractions().push(t)}addLayer(t){this.getLayerGroup().getLayers().push(t)}handleLayerAdd_(t){qt(t.layer,this)}addOverlay(t){this.getOverlays().push(t)}addOverlayInternal_(t){const e=t.getId();void 0!==e&&(this.overlayIdIndex_[e.toString()]=t),t.setMap(this)}disposeInternal(){this.controls.clear(),this.interactions.clear(),this.overlays_.clear(),this.resizeObserver_.disconnect(),this.setTarget(null),super.disposeInternal()}forEachFeatureAtPixel(t,e,n){if(!this.frameState_||!this.renderer_)return;const i=this.getCoordinateFromPixelInternal(t),r=void 0!==(n=void 0!==n?n:{}).hitTolerance?n.hitTolerance:0,o=void 0!==n.layerFilter?n.layerFilter:s.rT,a=!1!==n.checkWrapped;return this.renderer_.forEachFeatureAtCoordinate(i,this.frameState_,r,a,e,null,o,null)}getFeaturesAtPixel(t,e){const n=[];return this.forEachFeatureAtPixel(t,(function(t){n.push(t)}),e),n}getAllLayers(){const t=[];return function e(n){n.forEach((function(n){n instanceof P?e(n.getLayers()):t.push(n)}))}(this.getLayers()),t}hasFeatureAtPixel(t,e){if(!this.frameState_||!this.renderer_)return!1;const n=this.getCoordinateFromPixelInternal(t),i=void 0!==(e=void 0!==e?e:{}).layerFilter?e.layerFilter:s.rT,r=void 0!==e.hitTolerance?e.hitTolerance:0,o=!1!==e.checkWrapped;return this.renderer_.hasFeatureAtCoordinate(n,this.frameState_,r,o,i,null)}getEventCoordinate(t){return this.getCoordinateFromPixel(this.getEventPixel(t))}getEventCoordinateInternal(t){return this.getCoordinateFromPixelInternal(this.getEventPixel(t))}getEventPixel(t){const e=this.viewport_.getBoundingClientRect(),n=this.getSize(),i=e.width/n[0],r=e.height/n[1],o="changedTouches"in t?t.changedTouches[0]:t;return[(o.clientX-e.left)/i,(o.clientY-e.top)/r]}getTarget(){return this.get(V)}getTargetElement(){return this.targetElement_}getCoordinateFromPixel(t){return(0,jt.te)(this.getCoordinateFromPixelInternal(t),this.getView().getProjection())}getCoordinateFromPixelInternal(t){const e=this.frameState_;return e?(0,h.Bb)(e.pixelToCoordinateTransform,t.slice()):null}getControls(){return this.controls}getOverlays(){return this.overlays_}getOverlayById(t){const e=this.overlayIdIndex_[t.toString()];return void 0!==e?e:null}getInteractions(){return this.interactions}getLayerGroup(){return this.get(z)}setLayers(t){const e=this.getLayerGroup();if(t instanceof r.A)return void e.setLayers(t);const n=e.getLayers();n.clear(),n.extend(t)}getLayers(){return this.getLayerGroup().getLayers()}getLoadingOrNotReady(){const t=this.getLayerGroup().getLayerStatesArray();for(let e=0,n=t.length;e<n;++e){const n=t[e];if(!n.visible)continue;const i=n.layer.getRenderer();if(i&&!i.ready)return!0;const r=n.layer.getSource();if(r&&r.loading)return!0}return!1}getPixelFromCoordinate(t){const e=(0,jt.Ad)(t,this.getView().getProjection());return this.getPixelFromCoordinateInternal(e)}getPixelFromCoordinateInternal(t){const e=this.frameState_;return e?(0,h.Bb)(e.coordinateToPixelTransform,t.slice(0,2)):null}getRenderer(){return this.renderer_}getSize(){return this.get(G)}getView(){return this.get(j)}getViewport(){return this.viewport_}getOverlayContainer(){return this.overlayContainer_}getOverlayContainerStopEvent(){return this.overlayContainerStopEvent_}getOwnerDocument(){const t=this.getTargetElement();return t?t.ownerDocument:document}getTilePriority(t,e,n,i){return(0,W.z)(this.frameState_,t,e,n,i)}handleBrowserEvent(t,e){e=e||t.type;const n=new R.A(e,this,t);this.handleMapBrowserEvent(n)}handleMapBrowserEvent(t){if(!this.frameState_)return;const e=t.originalEvent,n=e.type;if(n===H.A.POINTERDOWN||n===M.A.WHEEL||n===M.A.KEYDOWN){const t=this.getOwnerDocument(),n=this.viewport_.getRootNode?this.viewport_.getRootNode():t,i=e.target;if(this.overlayContainerStopEvent_.contains(i)||!(n===t?t.documentElement:n).contains(i))return}if(t.frameState=this.frameState_,!1!==this.dispatchEvent(t)){const e=this.getInteractions().getArray().slice();for(let n=e.length-1;n>=0;n--){const i=e[n];if(i.getMap()!==this||!i.getActive()||!this.getTargetElement())continue;if(!i.handleEvent(t)||t.propagationStopped)break}}}handlePostRender(){const t=this.frameState_,e=this.tileQueue_;if(!e.isEmpty()){let n=this.maxTilesLoading_,i=n;if(t){const e=t.viewHints;if(e[q.A.ANIMATING]||e[q.A.INTERACTING]){const e=Date.now()-t.time>8;n=e?0:8,i=e?0:2}}e.getTilesLoading()<n&&(e.reprioritize(),e.loadMoreTiles(n,i))}t&&this.renderer_&&!t.animate&&(!0===this.renderComplete_?(this.hasListener(_.A.RENDERCOMPLETE)&&this.renderer_.dispatchRenderEvent(_.A.RENDERCOMPLETE,t),!1===this.loaded_&&(this.loaded_=!0,this.dispatchEvent(new F.A(B.A.LOADEND,this,t)))):!0===this.loaded_&&(this.loaded_=!1,this.dispatchEvent(new F.A(B.A.LOADSTART,this,t))));const n=this.postRenderFunctions_;for(let i=0,r=n.length;i<r;++i)n[i](this,t);n.length=0}handleSizeChanged_(){this.getView()&&!this.getView().getAnimating()&&this.getView().resolveConstraints(0),this.render()}handleTargetChanged_(){if(this.mapBrowserEventHandler_){for(let t=0,e=this.targetChangeHandlerKeys_.length;t<e;++t)(0,w.JH)(this.targetChangeHandlerKeys_[t]);this.targetChangeHandlerKeys_=null,this.viewport_.removeEventListener(M.A.CONTEXTMENU,this.boundHandleBrowserEvent_),this.viewport_.removeEventListener(M.A.WHEEL,this.boundHandleBrowserEvent_),this.mapBrowserEventHandler_.dispose(),this.mapBrowserEventHandler_=null,(0,S.bf)(this.viewport_)}if(this.targetElement_){this.resizeObserver_.unobserve(this.targetElement_);const t=this.targetElement_.getRootNode();t instanceof ShadowRoot&&this.resizeObserver_.unobserve(t.host),this.setSize(void 0)}const t=this.getTarget(),e="string"==typeof t?document.getElementById(t):t;if(this.targetElement_=e,e){e.appendChild(this.viewport_),this.renderer_||(this.renderer_=new T(this)),this.mapBrowserEventHandler_=new O.A(this,this.moveTolerance_);for(const e in N.A)this.mapBrowserEventHandler_.addEventListener(N.A[e],this.handleMapBrowserEvent.bind(this));this.viewport_.addEventListener(M.A.CONTEXTMENU,this.boundHandleBrowserEvent_,!1),this.viewport_.addEventListener(M.A.WHEEL,this.boundHandleBrowserEvent_,!!X.FT&&{passive:!1});const t=this.keyboardEventTarget_?this.keyboardEventTarget_:e;this.targetChangeHandlerKeys_=[(0,w.KT)(t,M.A.KEYDOWN,this.handleBrowserEvent,this),(0,w.KT)(t,M.A.KEYPRESS,this.handleBrowserEvent,this)];const n=e.getRootNode();n instanceof ShadowRoot&&this.resizeObserver_.observe(n.host),this.resizeObserver_.observe(e)}else this.renderer_&&(clearTimeout(this.postRenderTimeoutHandle_),this.postRenderTimeoutHandle_=void 0,this.postRenderFunctions_.length=0,this.renderer_.dispose(),this.renderer_=null),this.animationDelayKey_&&(cancelAnimationFrame(this.animationDelayKey_),this.animationDelayKey_=void 0);this.updateSize()}handleTileChange_(){this.render()}handleViewPropertyChanged_(){this.render()}handleViewChanged_(){this.viewPropertyListenerKey_&&((0,w.JH)(this.viewPropertyListenerKey_),this.viewPropertyListenerKey_=null),this.viewChangeListenerKey_&&((0,w.JH)(this.viewChangeListenerKey_),this.viewChangeListenerKey_=null);const t=this.getView();t&&(this.updateViewportSize_(),this.viewPropertyListenerKey_=(0,w.KT)(t,v.A.PROPERTYCHANGE,this.handleViewPropertyChanged_,this),this.viewChangeListenerKey_=(0,w.KT)(t,M.A.CHANGE,this.handleViewPropertyChanged_,this),t.resolveConstraints(0)),this.render()}handleLayerGroupChanged_(){this.layerGroupPropertyListenerKeys_&&(this.layerGroupPropertyListenerKeys_.forEach(w.JH),this.layerGroupPropertyListenerKeys_=null);const t=this.getLayerGroup();t&&(this.handleLayerAdd_(new k("addlayer",t)),this.layerGroupPropertyListenerKeys_=[(0,w.KT)(t,v.A.PROPERTYCHANGE,this.render,this),(0,w.KT)(t,M.A.CHANGE,this.render,this),(0,w.KT)(t,"addlayer",this.handleLayerAdd_,this),(0,w.KT)(t,"removelayer",this.handleLayerRemove_,this)]),this.render()}isRendered(){return!!this.frameState_}animationDelay_(){this.animationDelayKey_=void 0,this.renderFrame_(Date.now())}renderSync(){this.animationDelayKey_&&cancelAnimationFrame(this.animationDelayKey_),this.animationDelay_()}redrawText(){const t=this.getLayerGroup().getLayerStatesArray();for(let e=0,n=t.length;e<n;++e){const n=t[e].layer;n.hasRenderer()&&n.getRenderer().handleFontsChanged()}}render(){this.renderer_&&void 0===this.animationDelayKey_&&(this.animationDelayKey_=requestAnimationFrame(this.animationDelay_))}flushDeclutterItems(){const t=this.frameState_;t&&this.renderer_.flushDeclutterItems(t)}removeControl(t){return this.getControls().remove(t)}removeInteraction(t){return this.getInteractions().remove(t)}removeLayer(t){return this.getLayerGroup().getLayers().remove(t)}handleLayerRemove_(t){Ut(t.layer)}removeOverlay(t){return this.getOverlays().remove(t)}renderFrame_(t){const e=this.getSize(),n=this.getView(),i=this.frameState_;let r=null;if(void 0!==e&&(0,Ht.Ie)(e)&&n&&n.isDef()){const i=n.getHints(this.frameState_?this.frameState_.viewHints:void 0),o=n.getState();if(r={animate:!1,coordinateToPixelTransform:this.coordinateToPixelTransform_,declutterTree:null,extent:(0,c.Bg)(o.center,o.resolution,o.rotation,e),index:this.frameIndex_++,layerIndex:0,layerStatesArray:this.getLayerGroup().getLayerStatesArray(),pixelRatio:this.pixelRatio_,pixelToCoordinateTransform:this.pixelToCoordinateTransform_,postRenderFunctions:[],size:e,tileQueue:this.tileQueue_,time:t,usedTiles:{},viewState:o,viewHints:i,wantedTiles:{},mapId:(0,l.v6)(this),renderTargets:{}},o.nextCenter&&o.nextResolution){const t=isNaN(o.nextRotation)?o.rotation:o.nextRotation;r.nextExtent=(0,c.Bg)(o.nextCenter,o.nextResolution,t,e)}}if(this.frameState_=r,this.renderer_.renderFrame(r),r){if(r.animate&&this.render(),Array.prototype.push.apply(this.postRenderFunctions_,r.postRenderFunctions),i){(!this.previousExtent_||!(0,c.Im)(this.previousExtent_)&&!(0,c.aI)(r.extent,this.previousExtent_))&&(this.dispatchEvent(new F.A(B.A.MOVESTART,this,i)),this.previousExtent_=(0,c.aZ)(this.previousExtent_))}this.previousExtent_&&!r.viewHints[q.A.ANIMATING]&&!r.viewHints[q.A.INTERACTING]&&!(0,c.aI)(r.extent,this.previousExtent_)&&(this.dispatchEvent(new F.A(B.A.MOVEEND,this,r)),(0,c.o8)(r.extent,this.previousExtent_))}this.dispatchEvent(new F.A(B.A.POSTRENDER,this,r)),this.renderComplete_=this.hasListener(B.A.LOADSTART)||this.hasListener(B.A.LOADEND)||this.hasListener(_.A.RENDERCOMPLETE)?!this.tileQueue_.getTilesLoading()&&!this.tileQueue_.getCount()&&!this.getLoadingOrNotReady():void 0,this.postRenderTimeoutHandle_||(this.postRenderTimeoutHandle_=setTimeout((()=>{this.postRenderTimeoutHandle_=void 0,this.handlePostRender()}),0))}setLayerGroup(t){const e=this.getLayerGroup();e&&this.handleLayerRemove_(new k("removelayer",e)),this.set(z,t)}setSize(t){this.set(G,t)}setTarget(t){this.set(V,t)}setView(t){if(!t||t instanceof U.Ay)return void this.set(j,t);this.set(j,new U.Ay);const e=this;t.then((function(t){e.setView(new U.Ay(t))}))}updateSize(){const t=this.getTargetElement();let e;if(t){const n=getComputedStyle(t),i=t.offsetWidth-parseFloat(n.borderLeftWidth)-parseFloat(n.paddingLeft)-parseFloat(n.paddingRight)-parseFloat(n.borderRightWidth),r=t.offsetHeight-parseFloat(n.borderTopWidth)-parseFloat(n.paddingTop)-parseFloat(n.paddingBottom)-parseFloat(n.borderBottomWidth);isNaN(i)||isNaN(r)||(e=[i,r],!(0,Ht.Ie)(e)&&(t.offsetWidth||t.offsetHeight||t.getClientRects().length)&&(0,Wt.R8)("No map visible because the map container's width or height are 0."))}const n=this.getSize();!e||n&&(0,$.aI)(e,n)||(this.setSize(e),this.updateViewportSize_())}updateViewportSize_(){const t=this.getView();if(t){let e;const n=getComputedStyle(this.viewport_);n.width&&n.height&&(e=[parseInt(n.width,10),parseInt(n.height,10)]),t.setViewportSize(e)}}}const Yt=Xt},7264:(t,e,n)=>{"use strict";n.d(e,{A:()=>o});var i=n(7762);class r extends i.A{constructor(t,e,n,i,r,o){super(t,e,r),this.originalEvent=n,this.pixel_=null,this.coordinate_=null,this.dragging=void 0!==i&&i,this.activePointers=o}get pixel(){return this.pixel_||(this.pixel_=this.map.getEventPixel(this.originalEvent)),this.pixel_}set pixel(t){this.pixel_=t}get coordinate(){return this.coordinate_||(this.coordinate_=this.map.getCoordinateFromPixel(this.pixel)),this.coordinate_}set coordinate(t){this.coordinate_=t}preventDefault(){super.preventDefault(),"preventDefault"in this.originalEvent&&this.originalEvent.preventDefault()}stopPropagation(){super.stopPropagation(),"stopPropagation"in this.originalEvent&&this.originalEvent.stopPropagation()}}const o=r},5462:(t,e,n)=>{"use strict";n.d(e,{A:()=>u});var i=n(874),r=n(7264),o=n(3640),a=n(228),s=n(1385),l=n(6306),h=n(2657);class c extends s.A{constructor(t,e){super(t),this.map_=t,this.clickTimeoutId_,this.emulateClicks_=!1,this.dragging_=!1,this.dragListenerKeys_=[],this.moveTolerance_=void 0===e?1:e,this.down_=null;const n=this.map_.getViewport();this.activePointers_=[],this.trackedTouches_={},this.element_=n,this.pointerdownListenerKey_=(0,h.KT)(n,a.A.POINTERDOWN,this.handlePointerDown_,this),this.originalPointerMoveEvent_,this.relayedListenerKey_=(0,h.KT)(n,a.A.POINTERMOVE,this.relayMoveEvent_,this),this.boundHandleTouchMove_=this.handleTouchMove_.bind(this),this.element_.addEventListener(i.A.TOUCHMOVE,this.boundHandleTouchMove_,!!l.FT&&{passive:!1})}emulateClick_(t){let e=new r.A(o.A.CLICK,this.map_,t);this.dispatchEvent(e),void 0!==this.clickTimeoutId_?(clearTimeout(this.clickTimeoutId_),this.clickTimeoutId_=void 0,e=new r.A(o.A.DBLCLICK,this.map_,t),this.dispatchEvent(e)):this.clickTimeoutId_=setTimeout((()=>{this.clickTimeoutId_=void 0;const e=new r.A(o.A.SINGLECLICK,this.map_,t);this.dispatchEvent(e)}),250)}updateActivePointers_(t){const e=t,n=e.pointerId;if(e.type==o.A.POINTERUP||e.type==o.A.POINTERCANCEL){delete this.trackedTouches_[n];for(const t in this.trackedTouches_)if(this.trackedTouches_[t].target!==e.target){delete this.trackedTouches_[t];break}}else e.type!=o.A.POINTERDOWN&&e.type!=o.A.POINTERMOVE||(this.trackedTouches_[n]=e);this.activePointers_=Object.values(this.trackedTouches_)}handlePointerUp_(t){this.updateActivePointers_(t);const e=new r.A(o.A.POINTERUP,this.map_,t,void 0,void 0,this.activePointers_);this.dispatchEvent(e),this.emulateClicks_&&!e.defaultPrevented&&!this.dragging_&&this.isMouseActionButton_(t)&&this.emulateClick_(this.down_),0===this.activePointers_.length&&(this.dragListenerKeys_.forEach(h.JH),this.dragListenerKeys_.length=0,this.dragging_=!1,this.down_=null)}isMouseActionButton_(t){return 0===t.button}handlePointerDown_(t){this.emulateClicks_=0===this.activePointers_.length,this.updateActivePointers_(t);const e=new r.A(o.A.POINTERDOWN,this.map_,t,void 0,void 0,this.activePointers_);if(this.dispatchEvent(e),this.down_=new PointerEvent(t.type,t),Object.defineProperty(this.down_,"target",{writable:!1,value:t.target}),0===this.dragListenerKeys_.length){const t=this.map_.getOwnerDocument();this.dragListenerKeys_.push((0,h.KT)(t,o.A.POINTERMOVE,this.handlePointerMove_,this),(0,h.KT)(t,o.A.POINTERUP,this.handlePointerUp_,this),(0,h.KT)(this.element_,o.A.POINTERCANCEL,this.handlePointerUp_,this)),this.element_.getRootNode&&this.element_.getRootNode()!==t&&this.dragListenerKeys_.push((0,h.KT)(this.element_.getRootNode(),o.A.POINTERUP,this.handlePointerUp_,this))}}handlePointerMove_(t){if(this.isMoving_(t)){this.updateActivePointers_(t),this.dragging_=!0;const e=new r.A(o.A.POINTERDRAG,this.map_,t,this.dragging_,void 0,this.activePointers_);this.dispatchEvent(e)}}relayMoveEvent_(t){this.originalPointerMoveEvent_=t;const e=!(!this.down_||!this.isMoving_(t));this.dispatchEvent(new r.A(o.A.POINTERMOVE,this.map_,t,e))}handleTouchMove_(t){const e=this.originalPointerMoveEvent_;e&&!e.defaultPrevented||"boolean"==typeof t.cancelable&&!0!==t.cancelable||t.preventDefault()}isMoving_(t){return this.dragging_||Math.abs(t.clientX-this.down_.clientX)>this.moveTolerance_||Math.abs(t.clientY-this.down_.clientY)>this.moveTolerance_}disposeInternal(){this.relayedListenerKey_&&((0,h.JH)(this.relayedListenerKey_),this.relayedListenerKey_=null),this.element_.removeEventListener(i.A.TOUCHMOVE,this.boundHandleTouchMove_),this.pointerdownListenerKey_&&((0,h.JH)(this.pointerdownListenerKey_),this.pointerdownListenerKey_=null),this.dragListenerKeys_.forEach(h.JH),this.dragListenerKeys_.length=0,this.element_=null,super.disposeInternal()}}const u=c},3640:(t,e,n)=>{"use strict";n.d(e,{A:()=>r});var i=n(874);const r={SINGLECLICK:"singleclick",CLICK:i.A.CLICK,DBLCLICK:i.A.DBLCLICK,POINTERDRAG:"pointerdrag",POINTERMOVE:"pointermove",POINTERDOWN:"pointerdown",POINTERUP:"pointerup",POINTEROVER:"pointerover",POINTEROUT:"pointerout",POINTERENTER:"pointerenter",POINTERLEAVE:"pointerleave",POINTERCANCEL:"pointercancel"}},7762:(t,e,n)=>{"use strict";n.d(e,{A:()=>o});var i=n(5026);class r extends i.Ay{constructor(t,e,n){super(t),this.map=e,this.frameState=void 0!==n?n:null}}const o=r},7738:(t,e,n)=>{"use strict";n.d(e,{A:()=>i});const i={POSTRENDER:"postrender",MOVESTART:"movestart",MOVEEND:"moveend",LOADSTART:"loadstart",LOADEND:"loadend"}},5191:(t,e,n)=>{"use strict";n.d(e,{A:()=>c});var i=n(5026),r=n(1335),o=n(6529),a=n(6916),s=n(6943);class l extends i.Ay{constructor(t,e,n){super(t),this.key=e,this.oldValue=n}}class h extends o.A{constructor(t){super(),this.on,this.once,this.un,(0,a.v6)(this),this.values_=null,void 0!==t&&this.setProperties(t)}get(t){let e;return this.values_&&this.values_.hasOwnProperty(t)&&(e=this.values_[t]),e}getKeys(){return this.values_&&Object.keys(this.values_)||[]}getProperties(){return this.values_&&Object.assign({},this.values_)||{}}hasProperties(){return!!this.values_}notify(t,e){let n;n=`change:${t}`,this.hasListener(n)&&this.dispatchEvent(new l(n,t,e)),n=r.A.PROPERTYCHANGE,this.hasListener(n)&&this.dispatchEvent(new l(n,t,e))}addChangeListener(t,e){this.addEventListener(`change:${t}`,e)}removeChangeListener(t,e){this.removeEventListener(`change:${t}`,e)}set(t,e,n){const i=this.values_||(this.values_={});if(n)i[t]=e;else{const n=i[t];i[t]=e,n!==e&&this.notify(t,n)}}setProperties(t,e){for(const n in t)this.set(n,t[n],e)}applyProperties(t){t.values_&&Object.assign(this.values_||(this.values_={}),t.values_)}unset(t,e){if(this.values_&&t in this.values_){const n=this.values_[t];delete this.values_[t],(0,s.p)(this.values_)&&(this.values_=null),e||this.notify(t,n)}}}const c=h},1335:(t,e,n)=>{"use strict";n.d(e,{A:()=>i});const i={PROPERTYCHANGE:"propertychange"}},6529:(t,e,n)=>{"use strict";n.d(e,{A:()=>s});var i=n(1385),r=n(874),o=n(2657);class a extends i.A{constructor(){super(),this.on=this.onInternal,this.once=this.onceInternal,this.un=this.unInternal,this.revision_=0}changed(){++this.revision_,this.dispatchEvent(r.A.CHANGE)}getRevision(){return this.revision_}onInternal(t,e){if(Array.isArray(t)){const n=t.length,i=new Array(n);for(let r=0;r<n;++r)i[r]=(0,o.KT)(this,t[r],e);return i}return(0,o.KT)(this,t,e)}onceInternal(t,e){let n;if(Array.isArray(t)){const i=t.length;n=new Array(i);for(let r=0;r<i;++r)n[r]=(0,o.Jz)(this,t[r],e)}else n=(0,o.Jz)(this,t,e);return e.ol_key=n,n}unInternal(t,e){const n=e.ol_key;if(n)!function(t){if(Array.isArray(t))for(let e=0,n=t.length;e<n;++e)(0,o.JH)(t[e]);else(0,o.JH)(t)}(n);else if(Array.isArray(t))for(let i=0,r=t.length;i<r;++i)this.removeEventListener(t[i],e);else this.removeEventListener(t,e)}}a.prototype.on,a.prototype.once,a.prototype.un;const s=a},3588:(t,e,n)=>{"use strict";n.d(e,{A:()=>h});var i=n(1385),r=n(874),o=n(5751),a=n(6916),s=n(3829);class l extends i.A{constructor(t,e,n){super(),n=n||{},this.tileCoord=t,this.state=e,this.interimTile=null,this.key="",this.transition_=void 0===n.transition?250:n.transition,this.transitionStarts_={},this.interpolate=!!n.interpolate}changed(){this.dispatchEvent(r.A.CHANGE)}release(){this.state===o.A.ERROR&&this.setState(o.A.EMPTY)}getKey(){return this.key+"/"+this.tileCoord}getInterimTile(){if(!this.interimTile)return this;let t=this.interimTile;do{if(t.getState()==o.A.LOADED)return this.transition_=0,t;t=t.interimTile}while(t);return this}refreshInterimChain(){if(!this.interimTile)return;let t=this.interimTile,e=this;do{if(t.getState()==o.A.LOADED){t.interimTile=null;break}t.getState()==o.A.LOADING?e=t:t.getState()==o.A.IDLE?e.interimTile=t.interimTile:e=t,t=e.interimTile}while(t)}getTileCoord(){return this.tileCoord}getState(){return this.state}setState(t){if(this.state!==o.A.ERROR&&this.state>t)throw new Error("Tile load sequence violation");this.state=t,this.changed()}load(){(0,a.b0)()}getAlpha(t,e){if(!this.transition_)return 1;let n=this.transitionStarts_[t];if(n){if(-1===n)return 1}else n=e,this.transitionStarts_[t]=n;const i=e-n+1e3/60;return i>=this.transition_?1:(0,s.a6)(i/this.transition_)}inTransition(t){return!!this.transition_&&-1!==this.transitionStarts_[t]}endTransition(t){this.transition_&&(this.transitionStarts_[t]=-1)}}const h=l},8169:(t,e,n)=>{"use strict";n.d(e,{A:()=>a});var i=n(3957);const r=class{constructor(t){this.highWaterMark=void 0!==t?t:2048,this.count_=0,this.entries_={},this.oldest_=null,this.newest_=null}canExpireCache(){return this.highWaterMark>0&&this.getCount()>this.highWaterMark}expireCache(t){for(;this.canExpireCache();)this.pop()}clear(){this.count_=0,this.entries_={},this.oldest_=null,this.newest_=null}containsKey(t){return this.entries_.hasOwnProperty(t)}forEach(t){let e=this.oldest_;for(;e;)t(e.value_,e.key_,this),e=e.newer}get(t,e){const n=this.entries_[t];return(0,i.v)(void 0!==n,15),n===this.newest_||(n===this.oldest_?(this.oldest_=this.oldest_.newer,this.oldest_.older=null):(n.newer.older=n.older,n.older.newer=n.newer),n.newer=null,n.older=this.newest_,this.newest_.newer=n,this.newest_=n),n.value_}remove(t){const e=this.entries_[t];return(0,i.v)(void 0!==e,15),e===this.newest_?(this.newest_=e.older,this.newest_&&(this.newest_.newer=null)):e===this.oldest_?(this.oldest_=e.newer,this.oldest_&&(this.oldest_.older=null)):(e.newer.older=e.older,e.older.newer=e.newer),delete this.entries_[t],--this.count_,e.value_}getCount(){return this.count_}getKeys(){const t=new Array(this.count_);let e,n=0;for(e=this.newest_;e;e=e.older)t[n++]=e.key_;return t}getValues(){const t=new Array(this.count_);let e,n=0;for(e=this.newest_;e;e=e.older)t[n++]=e.value_;return t}peekLast(){return this.oldest_.value_}peekLastKey(){return this.oldest_.key_}peekFirstKey(){return this.newest_.key_}peek(t){if(this.containsKey(t))return this.entries_[t].value_}pop(){const t=this.oldest_;return delete this.entries_[t.key_],t.newer&&(t.newer.older=null),this.oldest_=t.newer,this.oldest_||(this.newest_=null),--this.count_,t.value_}replace(t,e){this.get(t),this.entries_[t].value_=e}set(t,e){(0,i.v)(!(t in this.entries_),16);const n={key_:t,newer:null,older:this.newest_,value_:e};this.newest_?this.newest_.newer=n:this.oldest_=n,this.newest_=n,this.entries_[t]=n,++this.count_}setSize(t){this.highWaterMark=t}};var o=n(1747);const a=class extends r{clear(){for(;this.getCount()>0;)this.pop().release();super.clear()}expireCache(t){for(;this.canExpireCache();){if(this.peekLast().getKey()in t)break;this.pop().release()}}pruneExceptNewestZ(){if(0===this.getCount())return;const t=this.peekFirstKey(),e=(0,o.K)(t)[0];this.forEach((t=>{t.tileCoord[0]!==e&&(this.remove((0,o.i7)(t.tileCoord)),t.release())}))}}},2384:(t,e,n)=>{"use strict";n.d(e,{A:()=>h,z:()=>c});var i=n(874),r=n(3957),o=n(6943);const a=1/0;const s=class{constructor(t,e){this.priorityFunction_=t,this.keyFunction_=e,this.elements_=[],this.priorities_=[],this.queuedElements_={}}clear(){this.elements_.length=0,this.priorities_.length=0,(0,o.I)(this.queuedElements_)}dequeue(){const t=this.elements_,e=this.priorities_,n=t[0];1==t.length?(t.length=0,e.length=0):(t[0]=t.pop(),e[0]=e.pop(),this.siftUp_(0));const i=this.keyFunction_(n);return delete this.queuedElements_[i],n}enqueue(t){(0,r.v)(!(this.keyFunction_(t)in this.queuedElements_),31);const e=this.priorityFunction_(t);return e!=a&&(this.elements_.push(t),this.priorities_.push(e),this.queuedElements_[this.keyFunction_(t)]=!0,this.siftDown_(0,this.elements_.length-1),!0)}getCount(){return this.elements_.length}getLeftChildIndex_(t){return 2*t+1}getRightChildIndex_(t){return 2*t+2}getParentIndex_(t){return t-1>>1}heapify_(){let t;for(t=(this.elements_.length>>1)-1;t>=0;t--)this.siftUp_(t)}isEmpty(){return 0===this.elements_.length}isKeyQueued(t){return t in this.queuedElements_}isQueued(t){return this.isKeyQueued(this.keyFunction_(t))}siftUp_(t){const e=this.elements_,n=this.priorities_,i=e.length,r=e[t],o=n[t],a=t;for(;t<i>>1;){const r=this.getLeftChildIndex_(t),o=this.getRightChildIndex_(t),a=o<i&&n[o]<n[r]?o:r;e[t]=e[a],n[t]=n[a],t=a}e[t]=r,n[t]=o,this.siftDown_(a,t)}siftDown_(t,e){const n=this.elements_,i=this.priorities_,r=n[e],o=i[e];for(;e>t;){const t=this.getParentIndex_(e);if(!(i[t]>o))break;n[e]=n[t],i[e]=i[t],e=t}n[e]=r,i[e]=o}reprioritize(){const t=this.priorityFunction_,e=this.elements_,n=this.priorities_;let i=0;const r=e.length;let o,s,l;for(s=0;s<r;++s)o=e[s],l=t(o),l==a?delete this.queuedElements_[this.keyFunction_(o)]:(n[i]=l,e[i++]=o);e.length=i,n.length=i,this.heapify_()}};var l=n(5751);const h=class extends s{constructor(t,e){super((function(e){return t.apply(null,e)}),(function(t){return t[0].getKey()})),this.boundHandleTileChange_=this.handleTileChange.bind(this),this.tileChangeCallback_=e,this.tilesLoading_=0,this.tilesLoadingKeys_={}}enqueue(t){const e=super.enqueue(t);if(e){t[0].addEventListener(i.A.CHANGE,this.boundHandleTileChange_)}return e}getTilesLoading(){return this.tilesLoading_}handleTileChange(t){const e=t.target,n=e.getState();if(n===l.A.LOADED||n===l.A.ERROR||n===l.A.EMPTY){n!==l.A.ERROR&&e.removeEventListener(i.A.CHANGE,this.boundHandleTileChange_);const t=e.getKey();t in this.tilesLoadingKeys_&&(delete this.tilesLoadingKeys_[t],--this.tilesLoading_),this.tileChangeCallback_()}}loadMoreTiles(t,e){let n,i,r,o=0;for(;this.tilesLoading_<t&&o<e&&this.getCount()>0;)i=this.dequeue()[0],r=i.getKey(),n=i.getState(),n!==l.A.IDLE||r in this.tilesLoadingKeys_||(this.tilesLoadingKeys_[r]=!0,++this.tilesLoading_,++o,i.load())}};function c(t,e,n,i,r){if(!t||!(n in t.wantedTiles))return a;if(!t.wantedTiles[n][e.getKey()])return a;const o=t.viewState.center,s=i[0]-o[0],l=i[1]-o[1];return 65536*Math.log(r)+Math.sqrt(s*s+l*l)/r}},3107:(t,e,n)=>{"use strict";n.d(e,{A:()=>o,N:()=>r});class i{constructor(t,e,n,i){this.minX=t,this.maxX=e,this.minY=n,this.maxY=i}contains(t){return this.containsXY(t[1],t[2])}containsTileRange(t){return this.minX<=t.minX&&t.maxX<=this.maxX&&this.minY<=t.minY&&t.maxY<=this.maxY}containsXY(t,e){return this.minX<=t&&t<=this.maxX&&this.minY<=e&&e<=this.maxY}equals(t){return this.minX==t.minX&&this.minY==t.minY&&this.maxX==t.maxX&&this.maxY==t.maxY}extend(t){t.minX<this.minX&&(this.minX=t.minX),t.maxX>this.maxX&&(this.maxX=t.maxX),t.minY<this.minY&&(this.minY=t.minY),t.maxY>this.maxY&&(this.maxY=t.maxY)}getHeight(){return this.maxY-this.minY+1}getSize(){return[this.getWidth(),this.getHeight()]}getWidth(){return this.maxX-this.minX+1}intersects(t){return this.minX<=t.maxX&&this.maxX>=t.minX&&this.minY<=t.maxY&&this.maxY>=t.minY}}function r(t,e,n,r,o){return void 0!==o?(o.minX=t,o.maxX=e,o.minY=n,o.maxY=r,o):new i(t,e,n,r)}const o=i},5751:(t,e,n)=>{"use strict";n.d(e,{A:()=>i});const i={IDLE:0,LOADING:1,LOADED:2,ERROR:3,EMPTY:4}},3427:(t,e,n)=>{"use strict";n.d(e,{Ay:()=>A});var i=n(5191),r=n(8856);const o={CENTER:"center",RESOLUTION:"resolution",ROTATION:"rotation"};var a=n(8086),s=n(6859),l=n(6079),h=n(6234),c=n(3957),u=n(2878);function d(t,e,n){return function(i,r,o,a,s){if(!i)return;if(!r&&!e)return i;const l=e?0:o[0]*r,h=e?0:o[1]*r,c=s?s[0]:0,d=s?s[1]:0;let p=t[0]+l/2+c,f=t[2]-l/2+c,g=t[1]+h/2+d,m=t[3]-h/2+d;p>f&&(p=(f+p)/2,f=p),g>m&&(g=(m+g)/2,m=g);let v=(0,u.qE)(i[0],p,f),y=(0,u.qE)(i[1],g,m);if(a&&n&&r){const t=30*r;v+=-t*Math.log(1+Math.max(0,p-i[0])/t)+t*Math.log(1+Math.max(0,i[0]-f)/t),y+=-t*Math.log(1+Math.max(0,g-i[1])/t)+t*Math.log(1+Math.max(0,i[1]-m)/t)}return[v,y]}}function p(t){return t}var f=n(4320),g=n(9783);function m(t,e,n,i){const r=(0,f.RG)(e)/n[0],o=(0,f.Oq)(e)/n[1];return i?Math.min(t,Math.max(r,o)):Math.min(t,Math.min(r,o))}function v(t,e,n){let i=Math.min(t,e);return i*=Math.log(1+50*Math.max(0,t/e-1))/50+1,n&&(i=Math.max(i,n),i/=Math.log(1+50*Math.max(0,n/t-1))/50+1),(0,u.qE)(i,n/2,2*e)}function y(t,e,n,i,r){return n=void 0===n||n,function(o,a,s,l){if(void 0!==o){const a=i?m(t,i,s,r):t;return n&&l?v(o,a,e):(0,u.qE)(o,e,a)}}}var _=n(8333),x=n(3829),b=n(206);class w extends i.A{constructor(t){super(),this.on,this.once,this.un,t=Object.assign({},t),this.hints_=[0,0],this.animations_=[],this.updateAnimationKey_,this.projection_=(0,s.Av)(t.projection,"EPSG:3857"),this.viewportSize_=[100,100],this.targetCenter_=null,this.targetResolution_,this.targetRotation_,this.nextCenter_=null,this.nextResolution_,this.nextRotation_,this.cancelAnchor_=void 0,t.projection&&(0,s.RJ)(),t.center&&(t.center=(0,s.Ad)(t.center,this.projection_)),t.extent&&(t.extent=(0,s.SD)(t.extent,this.projection_)),this.applyOptions_(t)}applyOptions_(t){const e=Object.assign({},t);for(const a in o)delete e[a];this.setProperties(e,!0);const n=function(t){let e,n,i;const r=28,o=2;let l=void 0!==t.minZoom?t.minZoom:0,h=void 0!==t.maxZoom?t.maxZoom:r;const c=void 0!==t.zoomFactor?t.zoomFactor:o,d=void 0!==t.multiWorld&&t.multiWorld,p=void 0===t.smoothResolutionConstraint||t.smoothResolutionConstraint,_=void 0!==t.showFullExtent&&t.showFullExtent,x=(0,s.Av)(t.projection,"EPSG:3857"),b=x.getExtent();let w=t.constrainOnlyCenter,S=t.extent;d||S||!x.isGlobal()||(w=!1,S=b);if(void 0!==t.resolutions){const r=t.resolutions;n=r[l],i=void 0!==r[h]?r[h]:r[r.length-1],e=t.constrainResolution?function(t,e,n,i){return e=void 0===e||e,function(r,o,a,s){if(void 0!==r){const l=t[0],h=t[t.length-1],c=n?m(l,n,a,i):l;if(s)return e?v(r,c,h):(0,u.qE)(r,h,c);const d=Math.min(c,r),p=Math.floor((0,g.FT)(t,d,o));return t[p]>c&&p<t.length-1?t[p+1]:t[p]}}}(r,p,!w&&S,_):y(n,i,p,!w&&S,_)}else{const d=(b?Math.max((0,f.RG)(b),(0,f.Oq)(b)):360*s.Ig.degrees/x.getMetersPerUnit())/a.R/Math.pow(o,0),g=d/Math.pow(o,r-0);n=t.maxResolution,void 0!==n?l=0:n=d/Math.pow(c,l),i=t.minResolution,void 0===i&&(i=void 0!==t.maxZoom?void 0!==t.maxResolution?n/Math.pow(c,h):d/Math.pow(c,h):g),h=l+Math.floor(Math.log(n/i)/Math.log(c)),i=n/Math.pow(c,h-l),e=t.constrainResolution?function(t,e,n,i,r,o){return i=void 0===i||i,n=void 0!==n?n:0,function(a,s,l,h){if(void 0!==a){const c=r?m(e,r,l,o):e;if(h)return i?v(a,c,n):(0,u.qE)(a,n,c);const d=1e-9,p=Math.ceil(Math.log(e/c)/Math.log(t)-d),f=-s*(.5-d)+.5,g=Math.min(c,a),y=Math.floor(Math.log(e/g)/Math.log(t)+f),_=Math.max(p,y),x=e/Math.pow(t,_);return(0,u.qE)(x,n,c)}}}(c,n,i,p,!w&&S,_):y(n,i,p,!w&&S,_)}return{constraint:e,maxResolution:n,minResolution:i,minZoom:l,zoomFactor:c}}(t);this.maxResolution_=n.maxResolution,this.minResolution_=n.minResolution,this.zoomFactor_=n.zoomFactor,this.resolutions_=t.resolutions,this.padding_=t.padding,this.minZoom_=n.minZoom;const i=function(t){if(void 0!==t.extent){const e=void 0===t.smoothExtentConstraint||t.smoothExtentConstraint;return d(t.extent,t.constrainOnlyCenter,e)}const e=(0,s.Av)(t.projection,"EPSG:3857");if(!0!==t.multiWorld&&e.isGlobal()){const t=e.getExtent().slice();return t[0]=-1/0,t[2]=1/0,d(t,!1,!1)}return p}(t),r=n.constraint,l=function(t){const e=void 0===t.enableRotation||t.enableRotation;if(e){const e=t.constrainRotation;return void 0===e||!0===e?(0,_.cq)():!1===e?_.dv:"number"==typeof e?(0,_.a$)(e):_.dv}return _.b8}(t);this.constraints_={center:i,resolution:r,rotation:l},this.setRotation(void 0!==t.rotation?t.rotation:0),this.setCenterInternal(void 0!==t.center?t.center:null),void 0!==t.resolution?this.setResolution(t.resolution):void 0!==t.zoom&&this.setZoom(t.zoom)}get padding(){return this.padding_}set padding(t){let e=this.padding_;this.padding_=t;const n=this.getCenterInternal();if(n){const i=t||[0,0,0,0];e=e||[0,0,0,0];const r=this.getResolution(),o=r/2*(i[3]-e[3]+e[1]-i[1]),a=r/2*(i[0]-e[0]+e[2]-i[2]);this.setCenterInternal([n[0]+o,n[1]-a])}}getUpdatedOptions_(t){const e=this.getProperties();return void 0!==e.resolution?e.resolution=this.getResolution():e.zoom=this.getZoom(),e.center=this.getCenterInternal(),e.rotation=this.getRotation(),Object.assign({},e,t)}animate(t){this.isDef()&&!this.getAnimating()&&this.resolveConstraints(0);const e=new Array(arguments.length);for(let n=0;n<e.length;++n){let t=arguments[n];t.center&&(t=Object.assign({},t),t.center=(0,s.Ad)(t.center,this.getProjection())),t.anchor&&(t=Object.assign({},t),t.anchor=(0,s.Ad)(t.anchor,this.getProjection())),e[n]=t}this.animateInternal.apply(this,e)}animateInternal(t){let e,n=arguments.length;n>1&&"function"==typeof arguments[n-1]&&(e=arguments[n-1],--n);let i=0;for(;i<n&&!this.isDef();++i){const t=arguments[i];t.center&&this.setCenterInternal(t.center),void 0!==t.zoom?this.setZoom(t.zoom):t.resolution&&this.setResolution(t.resolution),void 0!==t.rotation&&this.setRotation(t.rotation)}if(i===n)return void(e&&S(e,!0));let o=Date.now(),a=this.targetCenter_.slice(),s=this.targetResolution_,l=this.targetRotation_;const h=[];for(;i<n;++i){const t=arguments[i],n={start:o,complete:!1,anchor:t.anchor,duration:void 0!==t.duration?t.duration:1e3,easing:t.easing||x.T9,callback:e};if(t.center&&(n.sourceCenter=a,n.targetCenter=t.center.slice(),a=n.targetCenter),void 0!==t.zoom?(n.sourceResolution=s,n.targetResolution=this.getResolutionForZoom(t.zoom),s=n.targetResolution):t.resolution&&(n.sourceResolution=s,n.targetResolution=t.resolution,s=n.targetResolution),void 0!==t.rotation){n.sourceRotation=l;const e=(0,u.xP)(t.rotation-l+Math.PI,2*Math.PI)-Math.PI;n.targetRotation=l+e,l=n.targetRotation}T(n)?n.complete=!0:o+=n.duration,h.push(n)}this.animations_.push(h),this.setHint(r.A.ANIMATING,1),this.updateAnimations_()}getAnimating(){return this.hints_[r.A.ANIMATING]>0}getInteracting(){return this.hints_[r.A.INTERACTING]>0}cancelAnimations(){let t;this.setHint(r.A.ANIMATING,-this.hints_[r.A.ANIMATING]);for(let e=0,n=this.animations_.length;e<n;++e){const n=this.animations_[e];if(n[0].callback&&S(n[0].callback,!1),!t)for(let e=0,i=n.length;e<i;++e){const i=n[e];if(!i.complete){t=i.anchor;break}}}this.animations_.length=0,this.cancelAnchor_=t,this.nextCenter_=null,this.nextResolution_=NaN,this.nextRotation_=NaN}updateAnimations_(){if(void 0!==this.updateAnimationKey_&&(cancelAnimationFrame(this.updateAnimationKey_),this.updateAnimationKey_=void 0),!this.getAnimating())return;const t=Date.now();let e=!1;for(let n=this.animations_.length-1;n>=0;--n){const i=this.animations_[n];let o=!0;for(let n=0,r=i.length;n<r;++n){const r=i[n];if(r.complete)continue;const a=t-r.start;let s=r.duration>0?a/r.duration:1;s>=1?(r.complete=!0,s=1):o=!1;const l=r.easing(s);if(r.sourceCenter){const t=r.sourceCenter[0],e=r.sourceCenter[1],n=r.targetCenter[0],i=r.targetCenter[1];this.nextCenter_=r.targetCenter;const o=t+l*(n-t),a=e+l*(i-e);this.targetCenter_=[o,a]}if(r.sourceResolution&&r.targetResolution){const t=1===l?r.targetResolution:r.sourceResolution+l*(r.targetResolution-r.sourceResolution);if(r.anchor){const e=this.getViewportSize_(this.getRotation()),n=this.constraints_.resolution(t,0,e,!0);this.targetCenter_=this.calculateCenterZoom(n,r.anchor)}this.nextResolution_=r.targetResolution,this.targetResolution_=t,this.applyTargetState_(!0)}if(void 0!==r.sourceRotation&&void 0!==r.targetRotation){const t=1===l?(0,u.xP)(r.targetRotation+Math.PI,2*Math.PI)-Math.PI:r.sourceRotation+l*(r.targetRotation-r.sourceRotation);if(r.anchor){const e=this.constraints_.rotation(t,!0);this.targetCenter_=this.calculateCenterRotate(e,r.anchor)}this.nextRotation_=r.targetRotation,this.targetRotation_=t}if(this.applyTargetState_(!0),e=!0,!r.complete)break}if(o){this.animations_[n]=null,this.setHint(r.A.ANIMATING,-1),this.nextCenter_=null,this.nextResolution_=NaN,this.nextRotation_=NaN;const t=i[0].callback;t&&S(t,!0)}}this.animations_=this.animations_.filter(Boolean),e&&void 0===this.updateAnimationKey_&&(this.updateAnimationKey_=requestAnimationFrame(this.updateAnimations_.bind(this)))}calculateCenterRotate(t,e){let n;const i=this.getCenterInternal();return void 0!==i&&(n=[i[0]-e[0],i[1]-e[1]],(0,h.e$)(n,t-this.getRotation()),(0,h.WQ)(n,e)),n}calculateCenterZoom(t,e){let n;const i=this.getCenterInternal(),r=this.getResolution();if(void 0!==i&&void 0!==r){n=[e[0]-t*(e[0]-i[0])/r,e[1]-t*(e[1]-i[1])/r]}return n}getViewportSize_(t){const e=this.viewportSize_;if(t){const n=e[0],i=e[1];return[Math.abs(n*Math.cos(t))+Math.abs(i*Math.sin(t)),Math.abs(n*Math.sin(t))+Math.abs(i*Math.cos(t))]}return e}setViewportSize(t){this.viewportSize_=Array.isArray(t)?t.slice():[100,100],this.getAnimating()||this.resolveConstraints(0)}getCenter(){const t=this.getCenterInternal();return t?(0,s.te)(t,this.getProjection()):t}getCenterInternal(){return this.get(o.CENTER)}getConstraints(){return this.constraints_}getConstrainResolution(){return this.get("constrainResolution")}getHints(t){return void 0!==t?(t[0]=this.hints_[0],t[1]=this.hints_[1],t):this.hints_.slice()}calculateExtent(t){const e=this.calculateExtentInternal(t);return(0,s.JR)(e,this.getProjection())}calculateExtentInternal(t){t=t||this.getViewportSizeMinusPadding_();const e=this.getCenterInternal();(0,c.v)(e,1);const n=this.getResolution();(0,c.v)(void 0!==n,2);const i=this.getRotation();return(0,c.v)(void 0!==i,3),(0,f.Bg)(e,n,i,t)}getMaxResolution(){return this.maxResolution_}getMinResolution(){return this.minResolution_}getMaxZoom(){return this.getZoomForResolution(this.minResolution_)}setMaxZoom(t){this.applyOptions_(this.getUpdatedOptions_({maxZoom:t}))}getMinZoom(){return this.getZoomForResolution(this.maxResolution_)}setMinZoom(t){this.applyOptions_(this.getUpdatedOptions_({minZoom:t}))}setConstrainResolution(t){this.applyOptions_(this.getUpdatedOptions_({constrainResolution:t}))}getProjection(){return this.projection_}getResolution(){return this.get(o.RESOLUTION)}getResolutions(){return this.resolutions_}getResolutionForExtent(t,e){return this.getResolutionForExtentInternal((0,s.SD)(t,this.getProjection()),e)}getResolutionForExtentInternal(t,e){e=e||this.getViewportSizeMinusPadding_();const n=(0,f.RG)(t)/e[0],i=(0,f.Oq)(t)/e[1];return Math.max(n,i)}getResolutionForValueFunction(t){t=t||2;const e=this.getConstrainedResolution(this.maxResolution_),n=this.minResolution_,i=Math.log(e/n)/Math.log(t);return function(n){return e/Math.pow(t,n*i)}}getRotation(){return this.get(o.ROTATION)}getValueForResolutionFunction(t){const e=Math.log(t||2),n=this.getConstrainedResolution(this.maxResolution_),i=this.minResolution_,r=Math.log(n/i)/e;return function(t){return Math.log(n/t)/e/r}}getViewportSizeMinusPadding_(t){let e=this.getViewportSize_(t);const n=this.padding_;return n&&(e=[e[0]-n[1]-n[3],e[1]-n[0]-n[2]]),e}getState(){const t=this.getProjection(),e=this.getResolution(),n=this.getRotation();let i=this.getCenterInternal();const r=this.padding_;if(r){const t=this.getViewportSizeMinusPadding_();i=M(i,this.getViewportSize_(),[t[0]/2+r[3],t[1]/2+r[0]],e,n)}return{center:i.slice(0),projection:void 0!==t?t:null,resolution:e,nextCenter:this.nextCenter_,nextResolution:this.nextResolution_,nextRotation:this.nextRotation_,rotation:n,zoom:this.getZoom()}}getViewStateAndExtent(){return{viewState:this.getState(),extent:this.calculateExtent()}}getZoom(){let t;const e=this.getResolution();return void 0!==e&&(t=this.getZoomForResolution(e)),t}getZoomForResolution(t){let e,n,i=this.minZoom_||0;if(this.resolutions_){const r=(0,g.FT)(this.resolutions_,t,1);i=r,e=this.resolutions_[r],n=r==this.resolutions_.length-1?2:e/this.resolutions_[r+1]}else e=this.maxResolution_,n=this.zoomFactor_;return i+Math.log(e/t)/Math.log(n)}getResolutionForZoom(t){if(this.resolutions_){if(this.resolutions_.length<=1)return 0;const e=(0,u.qE)(Math.floor(t),0,this.resolutions_.length-2),n=this.resolutions_[e]/this.resolutions_[e+1];return this.resolutions_[e]/Math.pow(n,(0,u.qE)(t-e,0,1))}return this.maxResolution_/Math.pow(this.zoomFactor_,t-this.minZoom_)}fit(t,e){let n;if((0,c.v)(Array.isArray(t)||"function"==typeof t.getSimplifiedGeometry,24),Array.isArray(t)){(0,c.v)(!(0,f.Im)(t),25);const e=(0,s.SD)(t,this.getProjection());n=(0,b.VY)(e)}else if("Circle"===t.getType()){const e=(0,s.SD)(t.getExtent(),this.getProjection());n=(0,b.VY)(e),n.rotate(this.getRotation(),(0,f.q1)(e))}else{const e=(0,s.Tf)();n=e?t.clone().transform(e,this.getProjection()):t}this.fitInternal(n,e)}rotatedExtentForGeometry(t){const e=this.getRotation(),n=Math.cos(e),i=Math.sin(-e),r=t.getFlatCoordinates(),o=t.getStride();let a=1/0,s=1/0,l=-1/0,h=-1/0;for(let c=0,u=r.length;c<u;c+=o){const t=r[c]*n-r[c+1]*i,e=r[c]*i+r[c+1]*n;a=Math.min(a,t),s=Math.min(s,e),l=Math.max(l,t),h=Math.max(h,e)}return[a,s,l,h]}fitInternal(t,e){let n=(e=e||{}).size;n||(n=this.getViewportSizeMinusPadding_());const i=void 0!==e.padding?e.padding:[0,0,0,0],r=void 0!==e.nearest&&e.nearest;let o;o=void 0!==e.minResolution?e.minResolution:void 0!==e.maxZoom?this.getResolutionForZoom(e.maxZoom):0;const a=this.rotatedExtentForGeometry(t);let s=this.getResolutionForExtentInternal(a,[n[0]-i[1]-i[3],n[1]-i[0]-i[2]]);s=isNaN(s)?o:Math.max(s,o),s=this.getConstrainedResolution(s,r?0:1);const h=this.getRotation(),c=Math.sin(h),u=Math.cos(h),d=(0,f.q1)(a);d[0]+=(i[1]-i[3])/2*s,d[1]+=(i[0]-i[2])/2*s;const p=d[0]*u-d[1]*c,g=d[1]*u+d[0]*c,m=this.getConstrainedCenter([p,g],s),v=e.callback?e.callback:l.tV;void 0!==e.duration?this.animateInternal({resolution:s,center:m,duration:e.duration,easing:e.easing},v):(this.targetResolution_=s,this.targetCenter_=m,this.applyTargetState_(!1,!0),S(v,!0))}centerOn(t,e,n){this.centerOnInternal((0,s.Ad)(t,this.getProjection()),e,n)}centerOnInternal(t,e,n){this.setCenterInternal(M(t,e,n,this.getResolution(),this.getRotation()))}calculateCenterShift(t,e,n,i){let r;const o=this.padding_;if(o&&t){const a=this.getViewportSizeMinusPadding_(-n),s=M(t,i,[a[0]/2+o[3],a[1]/2+o[0]],e,n);r=[t[0]-s[0],t[1]-s[1]]}return r}isDef(){return!!this.getCenterInternal()&&void 0!==this.getResolution()}adjustCenter(t){const e=(0,s.te)(this.targetCenter_,this.getProjection());this.setCenter([e[0]+t[0],e[1]+t[1]])}adjustCenterInternal(t){const e=this.targetCenter_;this.setCenterInternal([e[0]+t[0],e[1]+t[1]])}adjustResolution(t,e){e=e&&(0,s.Ad)(e,this.getProjection()),this.adjustResolutionInternal(t,e)}adjustResolutionInternal(t,e){const n=this.getAnimating()||this.getInteracting(),i=this.getViewportSize_(this.getRotation()),r=this.constraints_.resolution(this.targetResolution_*t,0,i,n);e&&(this.targetCenter_=this.calculateCenterZoom(r,e)),this.targetResolution_*=t,this.applyTargetState_()}adjustZoom(t,e){this.adjustResolution(Math.pow(this.zoomFactor_,-t),e)}adjustRotation(t,e){e&&(e=(0,s.Ad)(e,this.getProjection())),this.adjustRotationInternal(t,e)}adjustRotationInternal(t,e){const n=this.getAnimating()||this.getInteracting(),i=this.constraints_.rotation(this.targetRotation_+t,n);e&&(this.targetCenter_=this.calculateCenterRotate(i,e)),this.targetRotation_+=t,this.applyTargetState_()}setCenter(t){this.setCenterInternal(t?(0,s.Ad)(t,this.getProjection()):t)}setCenterInternal(t){this.targetCenter_=t,this.applyTargetState_()}setHint(t,e){return this.hints_[t]+=e,this.changed(),this.hints_[t]}setResolution(t){this.targetResolution_=t,this.applyTargetState_()}setRotation(t){this.targetRotation_=t,this.applyTargetState_()}setZoom(t){this.setResolution(this.getResolutionForZoom(t))}applyTargetState_(t,e){const n=this.getAnimating()||this.getInteracting()||e,i=this.constraints_.rotation(this.targetRotation_,n),r=this.getViewportSize_(i),a=this.constraints_.resolution(this.targetResolution_,0,r,n),s=this.constraints_.center(this.targetCenter_,a,r,n,this.calculateCenterShift(this.targetCenter_,a,i,r));this.get(o.ROTATION)!==i&&this.set(o.ROTATION,i),this.get(o.RESOLUTION)!==a&&(this.set(o.RESOLUTION,a),this.set("zoom",this.getZoom(),!0)),s&&this.get(o.CENTER)&&(0,h.aI)(this.get(o.CENTER),s)||this.set(o.CENTER,s),this.getAnimating()&&!t&&this.cancelAnimations(),this.cancelAnchor_=void 0}resolveConstraints(t,e,n){t=void 0!==t?t:200;const i=e||0,r=this.constraints_.rotation(this.targetRotation_),o=this.getViewportSize_(r),a=this.constraints_.resolution(this.targetResolution_,i,o),s=this.constraints_.center(this.targetCenter_,a,o,!1,this.calculateCenterShift(this.targetCenter_,a,r,o));if(0===t&&!this.cancelAnchor_)return this.targetResolution_=a,this.targetRotation_=r,this.targetCenter_=s,void this.applyTargetState_();n=n||(0===t?this.cancelAnchor_:void 0),this.cancelAnchor_=void 0,this.getResolution()===a&&this.getRotation()===r&&this.getCenterInternal()&&(0,h.aI)(this.getCenterInternal(),s)||(this.getAnimating()&&this.cancelAnimations(),this.animateInternal({rotation:r,center:s,resolution:a,duration:t,easing:x.vT,anchor:n}))}beginInteraction(){this.resolveConstraints(0),this.setHint(r.A.INTERACTING,1)}endInteraction(t,e,n){n=n&&(0,s.Ad)(n,this.getProjection()),this.endInteractionInternal(t,e,n)}endInteractionInternal(t,e,n){this.getInteracting()&&(this.setHint(r.A.INTERACTING,-1),this.resolveConstraints(t,e,n))}getConstrainedCenter(t,e){const n=this.getViewportSize_(this.getRotation());return this.constraints_.center(t,e||this.getResolution(),n)}getConstrainedZoom(t,e){const n=this.getResolutionForZoom(t);return this.getZoomForResolution(this.getConstrainedResolution(n,e))}getConstrainedResolution(t,e){e=e||0;const n=this.getViewportSize_(this.getRotation());return this.constraints_.resolution(t,e,n)}}function S(t,e){setTimeout((function(){t(e)}),0)}function T(t){return!(t.sourceCenter&&t.targetCenter&&!(0,h.aI)(t.sourceCenter,t.targetCenter))&&(t.sourceResolution===t.targetResolution&&t.sourceRotation===t.targetRotation)}function M(t,e,n,i,r){const o=Math.cos(-r);let a=Math.sin(-r),s=t[0]*o-t[1]*a,l=t[1]*o+t[0]*a;s+=(e[0]/2-n[0])*i,l+=(n[1]-e[1]/2)*i,a=-a;return[s*o-l*a,l*o+s*a]}const A=w},8856:(t,e,n)=>{"use strict";n.d(e,{A:()=>i});const i={ANIMATING:0,INTERACTING:1}},9783:(t,e,n)=>{"use strict";function i(t,e,n){let i,o;n=n||r;let a=0,s=t.length,l=!1;for(;a<s;)i=a+(s-a>>1),o=+n(t[i],e),o<0?a=i+1:(s=i,l=!o);return l?a:~a}function r(t,e){return t>e?1:t<e?-1:0}function o(t,e,n){if(t[0]<=e)return 0;const i=t.length;if(e<=t[i-1])return i-1;if("function"==typeof n){for(let r=1;r<i;++r){const i=t[r];if(i===e)return r;if(i<e)return n(e,t[r-1],i)>0?r-1:r}return i-1}if(n>0){for(let n=1;n<i;++n)if(t[n]<e)return n-1;return i-1}if(n<0){for(let n=1;n<i;++n)if(t[n]<=e)return n;return i-1}for(let r=1;r<i;++r){if(t[r]==e)return r;if(t[r]<e)return t[r-1]-e<e-t[r]?r-1:r}return i-1}function a(t,e,n){for(;e<n;){const i=t[e];t[e]=t[n],t[n]=i,++e,--n}}function s(t,e){const n=Array.isArray(e)?e:[e],i=n.length;for(let r=0;r<i;r++)t[t.length]=n[r]}function l(t,e){const n=t.length;if(n!==e.length)return!1;for(let i=0;i<n;i++)if(t[i]!==e[i])return!1;return!0}function h(t,e,n){const i=e||r;return t.every((function(e,r){if(0===r)return!0;const o=i(t[r-1],e);return!(o>0||n&&0===o)}))}n.d(e,{El:()=>i,FT:()=>o,V_:()=>r,WC:()=>h,X$:()=>s,aI:()=>l,gI:()=>a})},3957:(t,e,n)=>{"use strict";n.d(e,{v:()=>r});var i=n(8554);function r(t,e){if(!t)throw new i.A(e)}},1805:(t,e,n)=>{"use strict";n.d(e,{_j:()=>c,dI:()=>d,oJ:()=>s});var i=n(3957),r=n(2878);const o=/^#([a-f0-9]{3}|[a-f0-9]{4}(?:[a-f0-9]{2}){0,2})$/i,a=/^([a-z]*)$|^hsla?\(.*\)$/i;function s(t){return"string"==typeof t?t:d(t)}function l(t){const e=document.createElement("div");if(e.style.color=t,""!==e.style.color){document.body.appendChild(e);const t=getComputedStyle(e).color;return document.body.removeChild(e),t}return""}const h=function(){const t={};let e=0;return function(n){let r;if(t.hasOwnProperty(n))r=t[n];else{if(e>=1024){let n=0;for(const i in t)3&n++||(delete t[i],--e)}r=function(t){let e,n,r,s,h;a.exec(t)&&(t=l(t));if(o.exec(t)){const i=t.length-1;let o;o=i<=4?1:2;const a=4===i||8===i;e=parseInt(t.substr(1+0*o,o),16),n=parseInt(t.substr(1+1*o,o),16),r=parseInt(t.substr(1+2*o,o),16),s=a?parseInt(t.substr(1+3*o,o),16):255,1==o&&(e=(e<<4)+e,n=(n<<4)+n,r=(r<<4)+r,a&&(s=(s<<4)+s)),h=[e,n,r,s/255]}else t.startsWith("rgba(")?(h=t.slice(5,-1).split(",").map(Number),u(h)):t.startsWith("rgb(")?(h=t.slice(4,-1).split(",").map(Number),h.push(1),u(h)):(0,i.v)(!1,14);return h}(n),t[n]=r,++e}return r}}();function c(t){return Array.isArray(t)?t:h(t)}function u(t){return t[0]=(0,r.qE)(t[0]+.5|0,0,255),t[1]=(0,r.qE)(t[1]+.5|0,0,255),t[2]=(0,r.qE)(t[2]+.5|0,0,255),t[3]=(0,r.qE)(t[3],0,1),t}function d(t){let e=t[0];e!=(0|e)&&(e=e+.5|0);let n=t[1];n!=(0|n)&&(n=n+.5|0);let i=t[2];i!=(0|i)&&(i=i+.5|0);return"rgba("+e+","+n+","+i+","+(void 0===t[3]?1:Math.round(100*t[3])/100)+")"}},154:(t,e,n)=>{"use strict";n.d(e,{F:()=>r});var i=n(1805);function r(t){return Array.isArray(t)?(0,i.dI)(t):t}},4095:(t,e,n)=>{"use strict";n.d(e,{R8:()=>o});const i={info:1,warn:2,error:3,none:4};let r=i.info;function o(...t){r>i.warn||console.warn(...t)}},6234:(t,e,n)=>{"use strict";n.d(e,{WQ:()=>a,aP:()=>s,aI:()=>l,U$:()=>d,e$:()=>h,hs:()=>c,Li:()=>u});var i=n(4320),r=n(2878);function o(t,e,n){const i=void 0!==n?t.toFixed(n):""+t;let r=i.indexOf(".");return r=-1===r?i.length:r,r>e?i:new Array(1+e-r).join("0")+i}function a(t,e){return t[0]+=+e[0],t[1]+=+e[1],t}function s(t,e,n){const i=(0,r.xP)(e+180,360)-180,a=Math.abs(3600*i),s=n||0;let l=Math.floor(a/3600),h=Math.floor((a-3600*l)/60),c=(0,r.Mg)(a-3600*l-60*h,s);c>=60&&(c=0,h+=1),h>=60&&(h=0,l+=1);let u=l+"\xb0";return 0===h&&0===c||(u+=" "+o(h,2)+"\u2032"),0!==c&&(u+=" "+o(c,2,s)+"\u2033"),0!==i&&(u+=" "+t.charAt(i<0?1:0)),u}function l(t,e){let n=!0;for(let i=t.length-1;i>=0;--i)if(t[i]!=e[i]){n=!1;break}return n}function h(t,e){const n=Math.cos(e),i=Math.sin(e),r=t[0]*n-t[1]*i,o=t[1]*n+t[0]*i;return t[0]=r,t[1]=o,t}function c(t,e){return t[0]*=e,t[1]*=e,t}function u(t,e){if(e.canWrapX()){const n=(0,i.RG)(e.getExtent()),r=d(t,e,n);r&&(t[0]-=r*n)}return t}function d(t,e,n){const r=e.getExtent();let o=0;return e.canWrapX()&&(t[0]<r[0]||t[0]>r[2])&&(n=n||(0,i.RG)(r),o=Math.floor((t[0]-r[0])/n)),o}},5433:(t,e,n)=>{"use strict";n.d(e,{$N:()=>a,K5:()=>c,Q5:()=>r,Si:()=>i,XI:()=>o,nT:()=>s});const i="ol-hidden",r="ol-selectable",o="ol-unselectable",a="ol-control",s="ol-collapsed",l=new RegExp(["^\\s*(?=(?:(?:[-a-z]+\\s*){0,2}(italic|oblique))?)","(?=(?:(?:[-a-z]+\\s*){0,2}(small-caps))?)","(?=(?:(?:[-a-z]+\\s*){0,2}(bold(?:er)?|lighter|[1-9]00 ))?)","(?:(?:normal|\\1|\\2|\\3)\\s*){0,3}((?:xx?-)?","(?:small|large)|medium|smaller|larger|[\\.\\d]+(?:\\%|in|[cem]m|ex|p[ctx]))","(?:\\s*\\/\\s*(normal|[\\.\\d]+(?:\\%|in|[cem]m|ex|p[ctx])?))","?\\s*([-,\\\"\\'\\sa-z]+?)\\s*$"].join(""),"i"),h=["style","variant","weight","size","lineHeight","family"],c=function(t){const e=t.match(l);if(!e)return null;const n={lineHeight:"normal",size:"1.2em",style:"normal",weight:"normal",variant:"normal"};for(let i=0,r=h.length;i<r;++i){const t=e[i+1];void 0!==t&&(n[h[i]]=t)}return n.families=n.family.split(/,\s?/),n}},7354:(t,e,n)=>{"use strict";n.d(e,{DK:()=>s,Gq:()=>a,WM:()=>u,Y:()=>r,Yg:()=>o,bf:()=>h,fo:()=>l,gS:()=>c});var i=n(6306);function r(t,e,n,r){let o;return o=n&&n.length?n.shift():i.Wl?new OffscreenCanvas(t||300,e||300):document.createElement("canvas"),t&&(o.width=t),e&&(o.height=e),o.getContext("2d",r)}function o(t){const e=t.canvas;e.width=1,e.height=1,t.clearRect(0,0,1,1)}function a(t){let e=t.offsetWidth;const n=getComputedStyle(t);return e+=parseInt(n.marginLeft,10)+parseInt(n.marginRight,10),e}function s(t){let e=t.offsetHeight;const n=getComputedStyle(t);return e+=parseInt(n.marginTop,10)+parseInt(n.marginBottom,10),e}function l(t,e){const n=e.parentNode;n&&n.replaceChild(t,e)}function h(t){return t&&t.parentNode?t.parentNode.removeChild(t):null}function c(t){for(;t.lastChild;)t.removeChild(t.lastChild)}function u(t,e){const n=t.childNodes;for(let i=0;;++i){const r=n[i],o=e[i];if(!r&&!o)break;r!==o&&(r?o?t.insertBefore(o,r):(t.removeChild(r),--i):t.appendChild(o))}}},3829:(t,e,n)=>{"use strict";function i(t){return Math.pow(t,3)}function r(t){return 1-i(1-t)}function o(t){return 3*t*t-2*t*t*t}function a(t){return t}n.d(e,{T9:()=>o,a6:()=>i,sn:()=>a,vT:()=>r})},2657:(t,e,n)=>{"use strict";n.d(e,{JH:()=>a,Jz:()=>o,KT:()=>r});var i=n(6943);function r(t,e,n,i,r){if(i&&i!==t&&(n=n.bind(i)),r){const i=n;n=function(){t.removeEventListener(e,n),i.apply(this,arguments)}}const o={target:t,type:e,listener:n};return t.addEventListener(e,n),o}function o(t,e,n,i){return r(t,e,n,i,!0)}function a(t){t&&t.target&&(t.target.removeEventListener(t.type,t.listener),(0,i.I)(t))}},5026:(t,e,n)=>{"use strict";n.d(e,{Ay:()=>i});const i=class{constructor(t){this.propagationStopped,this.defaultPrevented,this.type=t,this.target=null}preventDefault(){this.defaultPrevented=!0}stopPropagation(){this.propagationStopped=!0}}},874:(t,e,n)=>{"use strict";n.d(e,{A:()=>i});const i={CHANGE:"change",ERROR:"error",BLUR:"blur",CLEAR:"clear",CONTEXTMENU:"contextmenu",CLICK:"click",DBLCLICK:"dblclick",DRAGENTER:"dragenter",DRAGOVER:"dragover",DROP:"drop",FOCUS:"focus",KEYDOWN:"keydown",KEYPRESS:"keypress",LOAD:"load",RESIZE:"resize",TOUCHMOVE:"touchmove",WHEEL:"wheel"}},1385:(t,e,n)=>{"use strict";n.d(e,{A:()=>l});var i=n(7034),r=n(5026),o=n(6079),a=n(6943);class s extends i.A{constructor(t){super(),this.eventTarget_=t,this.pendingRemovals_=null,this.dispatching_=null,this.listeners_=null}addEventListener(t,e){if(!t||!e)return;const n=this.listeners_||(this.listeners_={}),i=n[t]||(n[t]=[]);i.includes(e)||i.push(e)}dispatchEvent(t){const e="string"==typeof t,n=e?t:t.type,i=this.listeners_&&this.listeners_[n];if(!i)return;const a=e?new r.Ay(t):t;a.target||(a.target=this.eventTarget_||this);const s=this.dispatching_||(this.dispatching_={}),l=this.pendingRemovals_||(this.pendingRemovals_={});let h;n in s||(s[n]=0,l[n]=0),++s[n];for(let r=0,o=i.length;r<o;++r)if(h="handleEvent"in i[r]?i[r].handleEvent(a):i[r].call(this,a),!1===h||a.propagationStopped){h=!1;break}if(0==--s[n]){let t=l[n];for(delete l[n];t--;)this.removeEventListener(n,o.tV);delete s[n]}return h}disposeInternal(){this.listeners_&&(0,a.I)(this.listeners_)}getListeners(t){return this.listeners_&&this.listeners_[t]||void 0}hasListener(t){return!!this.listeners_&&(t?t in this.listeners_:Object.keys(this.listeners_).length>0)}removeEventListener(t,e){const n=this.listeners_&&this.listeners_[t];if(n){const i=n.indexOf(e);-1!==i&&(this.pendingRemovals_&&t in this.pendingRemovals_?(n[i]=o.tV,++this.pendingRemovals_[t]):(n.splice(i,1),0===n.length&&delete this.listeners_[t]))}}}const l=s},4320:(t,e,n)=>{"use strict";n.d(e,{$C:()=>b,$u:()=>z,Bg:()=>k,HY:()=>F,Im:()=>B,Ld:()=>l,Li:()=>j,Mx:()=>G,N:()=>f,NW:()=>V,Oq:()=>D,Py:()=>R,QJ:()=>H,R:()=>A,R8:()=>w,RG:()=>N,Rj:()=>u,S5:()=>p,Tr:()=>o,UG:()=>M,Vy:()=>v,WU:()=>O,X$:()=>x,Ym:()=>h,Yw:()=>L,_N:()=>P,aI:()=>y,aZ:()=>g,bE:()=>_,dP:()=>m,k_:()=>C,ms:()=>c,o8:()=>s,q1:()=>I,qF:()=>E,r:()=>a,sB:()=>T,vz:()=>d});var i=n(6845),r=n(3957);function o(t){const e=p();for(let n=0,i=t.length;n<i;++n)b(e,t[n]);return e}function a(t,e,n){return n?(n[0]=t[0]-e,n[1]=t[1]-e,n[2]=t[2]+e,n[3]=t[3]+e,n):[t[0]-e,t[1]-e,t[2]+e,t[3]+e]}function s(t,e){return e?(e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[3],e):t.slice()}function l(t,e,n){let i,r;return i=e<t[0]?t[0]-e:t[2]<e?e-t[2]:0,r=n<t[1]?t[1]-n:t[3]<n?n-t[3]:0,i*i+r*r}function h(t,e){return u(t,e[0],e[1])}function c(t,e){return t[0]<=e[0]&&e[2]<=t[2]&&t[1]<=e[1]&&e[3]<=t[3]}function u(t,e,n){return t[0]<=e&&e<=t[2]&&t[1]<=n&&n<=t[3]}function d(t,e){const n=t[0],r=t[1],o=t[2],a=t[3],s=e[0],l=e[1];let h=i.A.UNKNOWN;return s<n?h|=i.A.LEFT:s>o&&(h|=i.A.RIGHT),l<r?h|=i.A.BELOW:l>a&&(h|=i.A.ABOVE),h===i.A.UNKNOWN&&(h=i.A.INTERSECTING),h}function p(){return[1/0,1/0,-1/0,-1/0]}function f(t,e,n,i,r){return r?(r[0]=t,r[1]=e,r[2]=n,r[3]=i,r):[t,e,n,i]}function g(t){return f(1/0,1/0,-1/0,-1/0,t)}function m(t,e){const n=t[0],i=t[1];return f(n,i,n,i,e)}function v(t,e,n,i,r){return w(g(r),t,e,n,i)}function y(t,e){return t[0]==e[0]&&t[2]==e[2]&&t[1]==e[1]&&t[3]==e[3]}function _(t,e,n){return Math.abs(t[0]-e[0])<n&&Math.abs(t[2]-e[2])<n&&Math.abs(t[1]-e[1])<n&&Math.abs(t[3]-e[3])<n}function x(t,e){return e[0]<t[0]&&(t[0]=e[0]),e[2]>t[2]&&(t[2]=e[2]),e[1]<t[1]&&(t[1]=e[1]),e[3]>t[3]&&(t[3]=e[3]),t}function b(t,e){e[0]<t[0]&&(t[0]=e[0]),e[0]>t[2]&&(t[2]=e[0]),e[1]<t[1]&&(t[1]=e[1]),e[1]>t[3]&&(t[3]=e[1])}function w(t,e,n,i,r){for(;n<i;n+=r)S(t,e[n],e[n+1]);return t}function S(t,e,n){t[0]=Math.min(t[0],e),t[1]=Math.min(t[1],n),t[2]=Math.max(t[2],e),t[3]=Math.max(t[3],n)}function T(t,e){let n;return n=e(A(t)),n||(n=e(C(t)),n||(n=e(O(t)),n||(n=e(R(t)),n||!1)))}function M(t){let e=0;return B(t)||(e=N(t)*D(t)),e}function A(t){return[t[0],t[1]]}function C(t){return[t[2],t[1]]}function I(t){return[(t[0]+t[2])/2,(t[1]+t[3])/2]}function E(t,e){let n;return"bottom-left"===e?n=A(t):"bottom-right"===e?n=C(t):"top-left"===e?n=R(t):"top-right"===e?n=O(t):(0,r.v)(!1,13),n}function k(t,e,n,i,r){const[o,a,s,l,h,c,u,d]=L(t,e,n,i);return f(Math.min(o,s,h,u),Math.min(a,l,c,d),Math.max(o,s,h,u),Math.max(a,l,c,d),r)}function L(t,e,n,i){const r=e*i[0]/2,o=e*i[1]/2,a=Math.cos(n),s=Math.sin(n),l=r*a,h=r*s,c=o*a,u=o*s,d=t[0],p=t[1];return[d-l+u,p-h-c,d-l-u,p-h+c,d+l-u,p+h+c,d+l+u,p+h-c,d-l+u,p-h-c]}function D(t){return t[3]-t[1]}function P(t,e,n){const i=n||[1/0,1/0,-1/0,-1/0];return F(t,e)?(t[0]>e[0]?i[0]=t[0]:i[0]=e[0],t[1]>e[1]?i[1]=t[1]:i[1]=e[1],t[2]<e[2]?i[2]=t[2]:i[2]=e[2],t[3]<e[3]?i[3]=t[3]:i[3]=e[3]):g(i),i}function R(t){return[t[0],t[3]]}function O(t){return[t[2],t[3]]}function N(t){return t[2]-t[0]}function F(t,e){return t[0]<=e[2]&&t[2]>=e[0]&&t[1]<=e[3]&&t[3]>=e[1]}function B(t){return t[2]<t[0]||t[3]<t[1]}function z(t,e){return e?(e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[3],e):t}function G(t,e,n){let r=!1;const o=d(t,e),a=d(t,n);if(o===i.A.INTERSECTING||a===i.A.INTERSECTING)r=!0;else{const s=t[0],l=t[1],h=t[2],c=t[3],u=e[0],d=e[1],p=n[0],f=n[1],g=(f-d)/(p-u);let m,v;a&i.A.ABOVE&&!(o&i.A.ABOVE)&&(m=p-(f-c)/g,r=m>=s&&m<=h),r||!(a&i.A.RIGHT)||o&i.A.RIGHT||(v=f-(p-h)*g,r=v>=l&&v<=c),r||!(a&i.A.BELOW)||o&i.A.BELOW||(m=p-(f-l)/g,r=m>=s&&m<=h),r||!(a&i.A.LEFT)||o&i.A.LEFT||(v=f-(p-s)*g,r=v>=l&&v<=c)}return r}function V(t,e,n,i){if(B(t))return g(n);let r=[];if(i>1){const e=t[2]-t[0],n=t[3]-t[1];for(let o=0;o<i;++o)r.push(t[0]+e*o/i,t[1],t[2],t[1]+n*o/i,t[2]-e*o/i,t[3],t[0],t[3]-n*o/i)}else r=[t[0],t[1],t[2],t[1],t[2],t[3],t[0],t[3]];e(r,r,2);const o=[],a=[];for(let s=0,l=r.length;s<l;s+=2)o.push(r[s]),a.push(r[s+1]);return function(t,e,n){return f(Math.min.apply(null,t),Math.min.apply(null,e),Math.max.apply(null,t),Math.max.apply(null,e),n)}(o,a,n)}function j(t,e){const n=e.getExtent(),i=I(t);if(e.canWrapX()&&(i[0]<n[0]||i[0]>=n[2])){const e=N(n),r=Math.floor((i[0]-n[0])/e)*e;t[0]-=r,t[2]-=r}return t}function H(t,e){if(e.canWrapX()){const n=e.getExtent();if(!isFinite(t[0])||!isFinite(t[2]))return[[n[0],t[1],n[2],t[3]]];j(t,e);const i=N(n);if(N(t)>i)return[[n[0],t[1],n[2],t[3]]];if(t[0]<n[0])return[[t[0]+i,t[1],n[2],t[3]],[n[0],t[1],t[2],t[3]]];if(t[2]>n[2])return[[t[0],t[1],n[2],t[3]],[n[0],t[1],t[2]-i,t[3]]]}return[t]}},6845:(t,e,n)=>{"use strict";n.d(e,{A:()=>i});const i={UNKNOWN:0,INTERSECTING:1,ABOVE:2,RIGHT:4,BELOW:8,LEFT:16}},8941:(t,e,n)=>{"use strict";n.d(e,{A:()=>H});var i=n(1116),r=n(874),o=n(163),a=n(4320),s=n(2657);class l extends o.A{constructor(t){super(),this.geometries_=t||null,this.changeEventsKeys_=[],this.listenGeometriesChange_()}unlistenGeometriesChange_(){this.changeEventsKeys_.forEach(s.JH),this.changeEventsKeys_.length=0}listenGeometriesChange_(){if(this.geometries_)for(let t=0,e=this.geometries_.length;t<e;++t)this.changeEventsKeys_.push((0,s.KT)(this.geometries_[t],r.A.CHANGE,this.changed,this))}clone(){const t=new l(null);return t.setGeometries(this.geometries_),t.applyProperties(this),t}closestPointXY(t,e,n,i){if(i<(0,a.Ld)(this.getExtent(),t,e))return i;const r=this.geometries_;for(let o=0,a=r.length;o<a;++o)i=r[o].closestPointXY(t,e,n,i);return i}containsXY(t,e){const n=this.geometries_;for(let i=0,r=n.length;i<r;++i)if(n[i].containsXY(t,e))return!0;return!1}computeExtent(t){(0,a.aZ)(t);const e=this.geometries_;for(let n=0,i=e.length;n<i;++n)(0,a.X$)(t,e[n].getExtent());return t}getGeometries(){return h(this.geometries_)}getGeometriesArray(){return this.geometries_}getGeometriesArrayRecursive(){let t=[];const e=this.geometries_;for(let n=0,i=e.length;n<i;++n)e[n].getType()===this.getType()?t=t.concat(e[n].getGeometriesArrayRecursive()):t.push(e[n]);return t}getSimplifiedGeometry(t){if(this.simplifiedGeometryRevision!==this.getRevision()&&(this.simplifiedGeometryMaxMinSquaredTolerance=0,this.simplifiedGeometryRevision=this.getRevision()),t<0||0!==this.simplifiedGeometryMaxMinSquaredTolerance&&t<this.simplifiedGeometryMaxMinSquaredTolerance)return this;const e=[],n=this.geometries_;let i=!1;for(let r=0,o=n.length;r<o;++r){const o=n[r],a=o.getSimplifiedGeometry(t);e.push(a),a!==o&&(i=!0)}if(i){const t=new l(null);return t.setGeometriesArray(e),t}return this.simplifiedGeometryMaxMinSquaredTolerance=t,this}getType(){return"GeometryCollection"}intersectsExtent(t){const e=this.geometries_;for(let n=0,i=e.length;n<i;++n)if(e[n].intersectsExtent(t))return!0;return!1}isEmpty(){return 0===this.geometries_.length}rotate(t,e){const n=this.geometries_;for(let i=0,r=n.length;i<r;++i)n[i].rotate(t,e);this.changed()}scale(t,e,n){n||(n=(0,a.q1)(this.getExtent()));const i=this.geometries_;for(let r=0,o=i.length;r<o;++r)i[r].scale(t,e,n);this.changed()}setGeometries(t){this.setGeometriesArray(h(t))}setGeometriesArray(t){this.unlistenGeometriesChange_(),this.geometries_=t,this.listenGeometriesChange_(),this.changed()}applyTransform(t){const e=this.geometries_;for(let n=0,i=e.length;n<i;++n)e[n].applyTransform(t);this.changed()}translate(t,e){const n=this.geometries_;for(let i=0,r=n.length;i<r;++i)n[i].translate(t,e);this.changed()}disposeInternal(){this.unlistenGeometriesChange_(),super.disposeInternal()}}function h(t){const e=[];for(let n=0,i=t.length;n<i;++n)e.push(t[n].clone());return e}const c=l;var u=n(6916),d=n(6859);const p=class{constructor(){this.dataProjection=void 0,this.defaultFeatureProjection=void 0,this.supportedMediaTypes=null}getReadOptions(t,e){if(e){let n=e.dataProjection?(0,d.Jt)(e.dataProjection):this.readProjection(t);e.extent&&n&&"tile-pixels"===n.getUnits()&&(n=(0,d.Jt)(n),n.setWorldExtent(e.extent)),e={dataProjection:n,featureProjection:e.featureProjection}}return this.adaptOptions(e)}adaptOptions(t){return Object.assign({dataProjection:this.dataProjection,featureProjection:this.defaultFeatureProjection},t)}getType(){return(0,u.b0)()}readFeature(t,e){return(0,u.b0)()}readFeatures(t,e){return(0,u.b0)()}readGeometry(t,e){return(0,u.b0)()}readProjection(t){return(0,u.b0)()}writeFeature(t,e){return(0,u.b0)()}writeFeatures(t,e){return(0,u.b0)()}writeGeometry(t,e){return(0,u.b0)()}};function f(t,e,n){const i=n?(0,d.Jt)(n.featureProjection):null,r=n?(0,d.Jt)(n.dataProjection):null;let o;if(o=i&&r&&!(0,d.tI)(i,r)?(e?t.clone():t).transform(e?i:r,e?r:i):t,e&&n&&void 0!==n.decimals){const e=Math.pow(10,n.decimals),i=function(t){for(let n=0,i=t.length;n<i;++n)t[n]=Math.round(t[n]*e)/e;return t};o===t&&(o=t.clone()),o.applyTransform(i)}return o}function g(t){if("string"==typeof t){const e=JSON.parse(t);return e||null}return null!==t?t:null}const m=class extends p{constructor(){super()}getType(){return"json"}readFeature(t,e){return this.readFeatureFromObject(g(t),this.getReadOptions(t,e))}readFeatures(t,e){return this.readFeaturesFromObject(g(t),this.getReadOptions(t,e))}readFeatureFromObject(t,e){return(0,u.b0)()}readFeaturesFromObject(t,e){return(0,u.b0)()}readGeometry(t,e){return this.readGeometryFromObject(g(t),this.getReadOptions(t,e))}readGeometryFromObject(t,e){return(0,u.b0)()}readProjection(t){return this.readProjectionFromObject(g(t))}readProjectionFromObject(t){return(0,u.b0)()}writeFeature(t,e){return JSON.stringify(this.writeFeatureObject(t,e))}writeFeatureObject(t,e){return(0,u.b0)()}writeFeatures(t,e){return JSON.stringify(this.writeFeaturesObject(t,e))}writeFeaturesObject(t,e){return(0,u.b0)()}writeGeometry(t,e){return JSON.stringify(this.writeGeometryObject(t,e))}writeGeometryObject(t,e){return(0,u.b0)()}};var v=n(5116),y=n(6861),_=n(2748),x=n(9172),b=n(5028),w=n(9783),S=n(2280),T=n(160),M=n(2453);class A extends y.Ay{constructor(t,e,n){if(super(),this.ends_=[],this.maxDelta_=-1,this.maxDeltaRevision_=-1,Array.isArray(t[0]))this.setCoordinates(t,e);else if(void 0!==e&&n)this.setFlatCoordinates(e,t),this.ends_=n;else{let e=this.getLayout();const n=t,i=[],r=[];for(let t=0,o=n.length;t<o;++t){const o=n[t];0===t&&(e=o.getLayout()),(0,w.X$)(i,o.getFlatCoordinates()),r.push(i.length)}this.setFlatCoordinates(e,i),this.ends_=r}}appendLineString(t){this.flatCoordinates?(0,w.X$)(this.flatCoordinates,t.getFlatCoordinates().slice()):this.flatCoordinates=t.getFlatCoordinates().slice(),this.ends_.push(this.flatCoordinates.length),this.changed()}clone(){const t=new A(this.flatCoordinates.slice(),this.layout,this.ends_.slice());return t.applyProperties(this),t}closestPointXY(t,e,n,i){return i<(0,a.Ld)(this.getExtent(),t,e)?i:(this.maxDeltaRevision_!=this.getRevision()&&(this.maxDelta_=Math.sqrt((0,_.HX)(this.flatCoordinates,0,this.ends_,this.stride,0)),this.maxDeltaRevision_=this.getRevision()),(0,_.oW)(this.flatCoordinates,0,this.ends_,this.stride,this.maxDelta_,!1,t,e,n,i))}getCoordinateAtM(t,e,n){return"XYM"!=this.layout&&"XYZM"!=this.layout||0===this.flatCoordinates.length?null:(e=void 0!==e&&e,n=void 0!==n&&n,(0,T.L8)(this.flatCoordinates,0,this.ends_,this.stride,t,e,n))}getCoordinates(){return(0,S.cD)(this.flatCoordinates,0,this.ends_,this.stride)}getEnds(){return this.ends_}getLineString(t){return t<0||this.ends_.length<=t?null:new v.A(this.flatCoordinates.slice(0===t?0:this.ends_[t-1],this.ends_[t]),this.layout)}getLineStrings(){const t=this.flatCoordinates,e=this.ends_,n=this.layout,i=[];let r=0;for(let o=0,a=e.length;o<a;++o){const a=e[o],s=new v.A(t.slice(r,a),n);i.push(s),r=a}return i}getFlatMidpoints(){const t=[],e=this.flatCoordinates;let n=0;const i=this.ends_,r=this.stride;for(let o=0,a=i.length;o<a;++o){const a=i[o],s=(0,T.SH)(e,n,a,r,.5);(0,w.X$)(t,s),n=a}return t}getSimplifiedGeometryInternal(t){const e=[],n=[];return e.length=(0,b.AL)(this.flatCoordinates,0,this.ends_,this.stride,t,e,0,n),new A(e,"XY",n)}getType(){return"MultiLineString"}intersectsExtent(t){return(0,M.fB)(this.flatCoordinates,0,this.ends_,this.stride,t)}setCoordinates(t,e){this.setLayout(e,t,2),this.flatCoordinates||(this.flatCoordinates=[]);const n=(0,x.KG)(this.flatCoordinates,0,t,this.stride,this.ends_);this.flatCoordinates.length=0===n.length?0:n[n.length-1],this.changed()}}const C=A;var I=n(4853),E=n(2878);class k extends y.Ay{constructor(t,e){super(),e&&!Array.isArray(t[0])?this.setFlatCoordinates(e,t):this.setCoordinates(t,e)}appendPoint(t){this.flatCoordinates?(0,w.X$)(this.flatCoordinates,t.getFlatCoordinates()):this.flatCoordinates=t.getFlatCoordinates().slice(),this.changed()}clone(){const t=new k(this.flatCoordinates.slice(),this.layout);return t.applyProperties(this),t}closestPointXY(t,e,n,i){if(i<(0,a.Ld)(this.getExtent(),t,e))return i;const r=this.flatCoordinates,o=this.stride;for(let a=0,s=r.length;a<s;a+=o){const s=(0,E.hG)(t,e,r[a],r[a+1]);if(s<i){i=s;for(let t=0;t<o;++t)n[t]=r[a+t];n.length=o}}return i}getCoordinates(){return(0,S.n2)(this.flatCoordinates,0,this.flatCoordinates.length,this.stride)}getPoint(t){const e=this.flatCoordinates?this.flatCoordinates.length/this.stride:0;return t<0||e<=t?null:new I.A(this.flatCoordinates.slice(t*this.stride,(t+1)*this.stride),this.layout)}getPoints(){const t=this.flatCoordinates,e=this.layout,n=this.stride,i=[];for(let r=0,o=t.length;r<o;r+=n){const o=new I.A(t.slice(r,r+n),e);i.push(o)}return i}getType(){return"MultiPoint"}intersectsExtent(t){const e=this.flatCoordinates,n=this.stride;for(let i=0,r=e.length;i<r;i+=n){const n=e[i],r=e[i+1];if((0,a.Rj)(t,n,r))return!0}return!1}setCoordinates(t,e){this.setLayout(e,t,1),this.flatCoordinates||(this.flatCoordinates=[]),this.flatCoordinates.length=(0,x.z2)(this.flatCoordinates,0,t,this.stride),this.changed()}}const L=k;var D=n(206),P=n(2069),R=n(4888),O=n(3046);var N=n(2966);class F extends y.Ay{constructor(t,e,n){if(super(),this.endss_=[],this.flatInteriorPointsRevision_=-1,this.flatInteriorPoints_=null,this.maxDelta_=-1,this.maxDeltaRevision_=-1,this.orientedRevision_=-1,this.orientedFlatCoordinates_=null,!n&&!Array.isArray(t[0])){let i=this.getLayout();const r=t,o=[],a=[];for(let t=0,e=r.length;t<e;++t){const e=r[t];0===t&&(i=e.getLayout());const n=o.length,s=e.getEnds();for(let t=0,i=s.length;t<i;++t)s[t]+=n;(0,w.X$)(o,e.getFlatCoordinates()),a.push(s)}e=i,t=o,n=a}void 0!==e&&n?(this.setFlatCoordinates(e,t),this.endss_=n):this.setCoordinates(t,e)}appendPolygon(t){let e;if(this.flatCoordinates){const n=this.flatCoordinates.length;(0,w.X$)(this.flatCoordinates,t.getFlatCoordinates()),e=t.getEnds().slice();for(let t=0,i=e.length;t<i;++t)e[t]+=n}else this.flatCoordinates=t.getFlatCoordinates().slice(),e=t.getEnds().slice(),this.endss_.push();this.endss_.push(e),this.changed()}clone(){const t=this.endss_.length,e=new Array(t);for(let i=0;i<t;++i)e[i]=this.endss_[i].slice();const n=new F(this.flatCoordinates.slice(),this.layout,e);return n.applyProperties(this),n}closestPointXY(t,e,n,i){return i<(0,a.Ld)(this.getExtent(),t,e)?i:(this.maxDeltaRevision_!=this.getRevision()&&(this.maxDelta_=Math.sqrt((0,_.c)(this.flatCoordinates,0,this.endss_,this.stride,0)),this.maxDeltaRevision_=this.getRevision()),(0,_.te)(this.getOrientedFlatCoordinates(),0,this.endss_,this.stride,this.maxDelta_,!0,t,e,n,i))}containsXY(t,e){return(0,N.Gd)(this.getOrientedFlatCoordinates(),0,this.endss_,this.stride,t,e)}getArea(){return(0,O.Cs)(this.getOrientedFlatCoordinates(),0,this.endss_,this.stride)}getCoordinates(t){let e;return void 0!==t?(e=this.getOrientedFlatCoordinates().slice(),(0,R.NK)(e,0,this.endss_,this.stride,t)):e=this.flatCoordinates,(0,S.Dz)(e,0,this.endss_,this.stride)}getEndss(){return this.endss_}getFlatInteriorPoints(){if(this.flatInteriorPointsRevision_!=this.getRevision()){const t=function(t,e,n,i){const r=[];let o=(0,a.S5)();for(let s=0,l=n.length;s<l;++s){const l=n[s];o=(0,a.Vy)(t,e,l[0],i),r.push((o[0]+o[2])/2,(o[1]+o[3])/2),e=l[l.length-1]}return r}(this.flatCoordinates,0,this.endss_,this.stride);this.flatInteriorPoints_=(0,P.p)(this.getOrientedFlatCoordinates(),0,this.endss_,this.stride,t),this.flatInteriorPointsRevision_=this.getRevision()}return this.flatInteriorPoints_}getInteriorPoints(){return new L(this.getFlatInteriorPoints().slice(),"XYM")}getOrientedFlatCoordinates(){if(this.orientedRevision_!=this.getRevision()){const t=this.flatCoordinates;(0,R.mb)(t,0,this.endss_,this.stride)?this.orientedFlatCoordinates_=t:(this.orientedFlatCoordinates_=t.slice(),this.orientedFlatCoordinates_.length=(0,R.NK)(this.orientedFlatCoordinates_,0,this.endss_,this.stride)),this.orientedRevision_=this.getRevision()}return this.orientedFlatCoordinates_}getSimplifiedGeometryInternal(t){const e=[],n=[];return e.length=(0,b.sx)(this.flatCoordinates,0,this.endss_,this.stride,Math.sqrt(t),e,0,n),new F(e,"XY",n)}getPolygon(t){if(t<0||this.endss_.length<=t)return null;let e;if(0===t)e=0;else{const n=this.endss_[t-1];e=n[n.length-1]}const n=this.endss_[t].slice(),i=n[n.length-1];if(0!==e)for(let r=0,o=n.length;r<o;++r)n[r]-=e;return new D.Ay(this.flatCoordinates.slice(e,i),this.layout,n)}getPolygons(){const t=this.layout,e=this.flatCoordinates,n=this.endss_,i=[];let r=0;for(let o=0,a=n.length;o<a;++o){const a=n[o].slice(),s=a[a.length-1];if(0!==r)for(let t=0,e=a.length;t<e;++t)a[t]-=r;const l=new D.Ay(e.slice(r,s),t,a);i.push(l),r=s}return i}getType(){return"MultiPolygon"}intersectsExtent(t){return(0,M.Wp)(this.getOrientedFlatCoordinates(),0,this.endss_,this.stride,t)}setCoordinates(t,e){this.setLayout(e,t,3),this.flatCoordinates||(this.flatCoordinates=[]);const n=(0,x.d6)(this.flatCoordinates,0,t,this.stride,this.endss_);if(0===n.length)this.flatCoordinates.length=0;else{const t=n[n.length-1];this.flatCoordinates.length=0===t.length?0:t[t.length-1]}this.changed()}}const B=F;var z=n(3957),G=n(6943);function V(t,e){if(!t)return null;let n;switch(t.type){case"Point":n=function(t){return new I.A(t.coordinates)}(t);break;case"LineString":n=function(t){return new v.A(t.coordinates)}(t);break;case"Polygon":n=function(t){return new D.Ay(t.coordinates)}(t);break;case"MultiPoint":n=function(t){return new L(t.coordinates)}(t);break;case"MultiLineString":n=function(t){return new C(t.coordinates)}(t);break;case"MultiPolygon":n=function(t){return new B(t.coordinates)}(t);break;case"GeometryCollection":n=function(t,e){const n=t.geometries.map((function(t){return V(t,e)}));return new c(n)}(t);break;default:throw new Error("Unsupported GeoJSON type: "+t.type)}return f(n,!1,e)}function j(t,e){const n=(t=f(t,!0,e)).getType();let i;switch(n){case"Point":i=function(t){return{type:"Point",coordinates:t.getCoordinates()}}(t);break;case"LineString":i=function(t){return{type:"LineString",coordinates:t.getCoordinates()}}(t);break;case"Polygon":i=function(t,e){let n;e&&(n=e.rightHanded);return{type:"Polygon",coordinates:t.getCoordinates(n)}}(t,e);break;case"MultiPoint":i=function(t){return{type:"MultiPoint",coordinates:t.getCoordinates()}}(t);break;case"MultiLineString":i=function(t){return{type:"MultiLineString",coordinates:t.getCoordinates()}}(t);break;case"MultiPolygon":i=function(t,e){let n;e&&(n=e.rightHanded);return{type:"MultiPolygon",coordinates:t.getCoordinates(n)}}(t,e);break;case"GeometryCollection":i=function(t,e){e=Object.assign({},e),delete e.featureProjection;const n=t.getGeometriesArray().map((function(t){return j(t,e)}));return{type:"GeometryCollection",geometries:n}}(t,e);break;case"Circle":i={type:"GeometryCollection",geometries:[]};break;default:throw new Error("Unsupported geometry type: "+n)}return i}const H=class extends m{constructor(t){t=t||{},super(),this.dataProjection=(0,d.Jt)(t.dataProjection?t.dataProjection:"EPSG:4326"),t.featureProjection&&(this.defaultFeatureProjection=(0,d.Jt)(t.featureProjection)),this.geometryName_=t.geometryName,this.extractGeometryName_=t.extractGeometryName,this.supportedMediaTypes=["application/geo+json","application/vnd.geo+json"]}readFeatureFromObject(t,e){let n=null;n="Feature"===t.type?t:{type:"Feature",geometry:t,properties:null};const r=V(n.geometry,e),o=new i.A;return this.geometryName_?o.setGeometryName(this.geometryName_):this.extractGeometryName_&&"geometry_name"in n!==void 0&&o.setGeometryName(n.geometry_name),o.setGeometry(r),"id"in n&&o.setId(n.id),n.properties&&o.setProperties(n.properties,!0),o}readFeaturesFromObject(t,e){let n=null;if("FeatureCollection"===t.type){n=[];const i=t.features;for(let t=0,r=i.length;t<r;++t)n.push(this.readFeatureFromObject(i[t],e))}else n=[this.readFeatureFromObject(t,e)];return n}readGeometryFromObject(t,e){return V(t,e)}readProjectionFromObject(t){const e=t.crs;let n;return e?"name"==e.type?n=(0,d.Jt)(e.properties.name):"EPSG"===e.type?n=(0,d.Jt)("EPSG:"+e.properties.code):(0,z.v)(!1,36):n=this.dataProjection,n}writeFeatureObject(t,e){e=this.adaptOptions(e);const n={type:"Feature",geometry:null,properties:null},i=t.getId();if(void 0!==i&&(n.id=i),!t.hasProperties())return n;const r=t.getProperties(),o=t.getGeometry();return o&&(n.geometry=j(o,e),delete r[t.getGeometryName()]),(0,G.p)(r)||(n.properties=r),n}writeFeaturesObject(t,e){e=this.adaptOptions(e);const n=[];for(let i=0,r=t.length;i<r;++i)n.push(this.writeFeatureObject(t[i],e));return{type:"FeatureCollection",features:n}}writeGeometryObject(t,e){return j(t,this.adaptOptions(e))}}},6079:(t,e,n)=>{"use strict";n.d(e,{B4:()=>s,W8:()=>o,rT:()=>r,tV:()=>a});var i=n(9783);function r(){return!0}function o(){return!1}function a(){}function s(t){let e,n,r,o=!1;return function(){const a=Array.prototype.slice.call(arguments);return o&&this===r&&(0,i.aI)(a,n)||(o=!0,r=this,n=a,e=t.apply(this,arguments)),e}}},163:(t,e,n)=>{"use strict";n.d(e,{A:()=>d});var i=n(5191),r=n(6916),o=n(686),a=n(4320),s=n(6859),l=n(6079),h=n(5415);const c=(0,o.vt)();class u extends i.A{constructor(){super(),this.extent_=(0,a.S5)(),this.extentRevision_=-1,this.simplifiedGeometryMaxMinSquaredTolerance=0,this.simplifiedGeometryRevision=0,this.simplifyTransformedInternal=(0,l.B4)((function(t,e,n){if(!n)return this.getSimplifiedGeometry(e);const i=this.clone();return i.applyTransform(n),i.getSimplifiedGeometry(e)}))}simplifyTransformed(t,e){return this.simplifyTransformedInternal(this.getRevision(),t,e)}clone(){return(0,r.b0)()}closestPointXY(t,e,n,i){return(0,r.b0)()}containsXY(t,e){const n=this.getClosestPoint([t,e]);return n[0]===t&&n[1]===e}getClosestPoint(t,e){return e=e||[NaN,NaN],this.closestPointXY(t[0],t[1],e,1/0),e}intersectsCoordinate(t){return this.containsXY(t[0],t[1])}computeExtent(t){return(0,r.b0)()}getExtent(t){if(this.extentRevision_!=this.getRevision()){const t=this.computeExtent(this.extent_);(isNaN(t[0])||isNaN(t[1]))&&(0,a.aZ)(t),this.extentRevision_=this.getRevision()}return(0,a.$u)(this.extent_,t)}rotate(t,e){(0,r.b0)()}scale(t,e,n){(0,r.b0)()}simplify(t){return this.getSimplifiedGeometry(t*t)}getSimplifiedGeometry(t){return(0,r.b0)()}getType(){return(0,r.b0)()}applyTransform(t){(0,r.b0)()}intersectsExtent(t){return(0,r.b0)()}translate(t,e){(0,r.b0)()}transform(t,e){const n=(0,s.Jt)(t),i="tile-pixels"==n.getUnits()?function(t,i,r){const l=n.getExtent(),u=n.getWorldExtent(),d=(0,a.Oq)(u)/(0,a.Oq)(l);return(0,o.Zz)(c,u[0],u[3],d,-d,0,0,0),(0,h.Rc)(t,0,t.length,r,c,i),(0,s.RG)(n,e)(t,i,r)}:(0,s.RG)(n,e);return this.applyTransform(i),this}}const d=u},5116:(t,e,n)=>{"use strict";n.d(e,{A:()=>g});var i=n(6861),r=n(2748),o=n(4320),a=n(9172),s=n(5028),l=n(9783),h=n(1381),c=n(2280),u=n(160),d=n(2453),p=n(7175);class f extends i.Ay{constructor(t,e){super(),this.flatMidpoint_=null,this.flatMidpointRevision_=-1,this.maxDelta_=-1,this.maxDeltaRevision_=-1,void 0===e||Array.isArray(t[0])?this.setCoordinates(t,e):this.setFlatCoordinates(e,t)}appendCoordinate(t){this.flatCoordinates?(0,l.X$)(this.flatCoordinates,t):this.flatCoordinates=t.slice(),this.changed()}clone(){const t=new f(this.flatCoordinates.slice(),this.layout);return t.applyProperties(this),t}closestPointXY(t,e,n,i){return i<(0,o.Ld)(this.getExtent(),t,e)?i:(this.maxDeltaRevision_!=this.getRevision()&&(this.maxDelta_=Math.sqrt((0,r.MD)(this.flatCoordinates,0,this.flatCoordinates.length,this.stride,0)),this.maxDeltaRevision_=this.getRevision()),(0,r.n)(this.flatCoordinates,0,this.flatCoordinates.length,this.stride,this.maxDelta_,!1,t,e,n,i))}forEachSegment(t){return(0,h.j)(this.flatCoordinates,0,this.flatCoordinates.length,this.stride,t)}getCoordinateAtM(t,e){return"XYM"!=this.layout&&"XYZM"!=this.layout?null:(e=void 0!==e&&e,(0,u.gr)(this.flatCoordinates,0,this.flatCoordinates.length,this.stride,t,e))}getCoordinates(){return(0,c.n2)(this.flatCoordinates,0,this.flatCoordinates.length,this.stride)}getCoordinateAt(t,e){return(0,u.SH)(this.flatCoordinates,0,this.flatCoordinates.length,this.stride,t,e,this.stride)}getLength(){return(0,p.k)(this.flatCoordinates,0,this.flatCoordinates.length,this.stride)}getFlatMidpoint(){return this.flatMidpointRevision_!=this.getRevision()&&(this.flatMidpoint_=this.getCoordinateAt(.5,this.flatMidpoint_),this.flatMidpointRevision_=this.getRevision()),this.flatMidpoint_}getSimplifiedGeometryInternal(t){const e=[];return e.length=(0,s.P4)(this.flatCoordinates,0,this.flatCoordinates.length,this.stride,t,e,0),new f(e,"XY")}getType(){return"LineString"}intersectsExtent(t){return(0,d.gp)(this.flatCoordinates,0,this.flatCoordinates.length,this.stride,t)}setCoordinates(t,e){this.setLayout(e,t,1),this.flatCoordinates||(this.flatCoordinates=[]),this.flatCoordinates.length=(0,a.z2)(this.flatCoordinates,0,t,this.stride),this.changed()}}const g=f},4853:(t,e,n)=>{"use strict";n.d(e,{A:()=>l});var i=n(6861),r=n(4320),o=n(9172),a=n(2878);class s extends i.Ay{constructor(t,e){super(),this.setCoordinates(t,e)}clone(){const t=new s(this.flatCoordinates.slice(),this.layout);return t.applyProperties(this),t}closestPointXY(t,e,n,i){const r=this.flatCoordinates,o=(0,a.hG)(t,e,r[0],r[1]);if(o<i){const t=this.stride;for(let e=0;e<t;++e)n[e]=r[e];return n.length=t,o}return i}getCoordinates(){return this.flatCoordinates?this.flatCoordinates.slice():[]}computeExtent(t){return(0,r.dP)(this.flatCoordinates,t)}getType(){return"Point"}intersectsExtent(t){return(0,r.Rj)(t,this.flatCoordinates[0],this.flatCoordinates[1])}setCoordinates(t,e){this.setLayout(e,t,0),this.flatCoordinates||(this.flatCoordinates=[]),this.flatCoordinates.length=(0,o._n)(this.flatCoordinates,0,t,this.stride),this.changed()}}const l=s},206:(t,e,n)=>{"use strict";n.d(e,{kj:()=>b,Ay:()=>x,VY:()=>w});var i=n(6861),r=n(2748),o=n(4320),a=n(9172),s=n(5028),l=n(2280),h=n(3046);class c extends i.Ay{constructor(t,e){super(),this.maxDelta_=-1,this.maxDeltaRevision_=-1,void 0===e||Array.isArray(t[0])?this.setCoordinates(t,e):this.setFlatCoordinates(e,t)}clone(){return new c(this.flatCoordinates.slice(),this.layout)}closestPointXY(t,e,n,i){return i<(0,o.Ld)(this.getExtent(),t,e)?i:(this.maxDeltaRevision_!=this.getRevision()&&(this.maxDelta_=Math.sqrt((0,r.MD)(this.flatCoordinates,0,this.flatCoordinates.length,this.stride,0)),this.maxDeltaRevision_=this.getRevision()),(0,r.n)(this.flatCoordinates,0,this.flatCoordinates.length,this.stride,this.maxDelta_,!0,t,e,n,i))}getArea(){return(0,h.eN)(this.flatCoordinates,0,this.flatCoordinates.length,this.stride)}getCoordinates(){return(0,l.n2)(this.flatCoordinates,0,this.flatCoordinates.length,this.stride)}getSimplifiedGeometryInternal(t){const e=[];return e.length=(0,s.P4)(this.flatCoordinates,0,this.flatCoordinates.length,this.stride,t,e,0),new c(e,"XY")}getType(){return"LinearRing"}intersectsExtent(t){return!1}setCoordinates(t,e){this.setLayout(e,t,1),this.flatCoordinates||(this.flatCoordinates=[]),this.flatCoordinates.length=(0,a.z2)(this.flatCoordinates,0,t,this.stride),this.changed()}}const u=c;var d=n(4853),p=n(9783),f=n(2069),g=n(2453),m=n(4888),v=n(2966),y=n(4913);class _ extends i.Ay{constructor(t,e,n){super(),this.ends_=[],this.flatInteriorPointRevision_=-1,this.flatInteriorPoint_=null,this.maxDelta_=-1,this.maxDeltaRevision_=-1,this.orientedRevision_=-1,this.orientedFlatCoordinates_=null,void 0!==e&&n?(this.setFlatCoordinates(e,t),this.ends_=n):this.setCoordinates(t,e)}appendLinearRing(t){this.flatCoordinates?(0,p.X$)(this.flatCoordinates,t.getFlatCoordinates()):this.flatCoordinates=t.getFlatCoordinates().slice(),this.ends_.push(this.flatCoordinates.length),this.changed()}clone(){const t=new _(this.flatCoordinates.slice(),this.layout,this.ends_.slice());return t.applyProperties(this),t}closestPointXY(t,e,n,i){return i<(0,o.Ld)(this.getExtent(),t,e)?i:(this.maxDeltaRevision_!=this.getRevision()&&(this.maxDelta_=Math.sqrt((0,r.HX)(this.flatCoordinates,0,this.ends_,this.stride,0)),this.maxDeltaRevision_=this.getRevision()),(0,r.oW)(this.flatCoordinates,0,this.ends_,this.stride,this.maxDelta_,!0,t,e,n,i))}containsXY(t,e){return(0,v.zb)(this.getOrientedFlatCoordinates(),0,this.ends_,this.stride,t,e)}getArea(){return(0,h.PK)(this.getOrientedFlatCoordinates(),0,this.ends_,this.stride)}getCoordinates(t){let e;return void 0!==t?(e=this.getOrientedFlatCoordinates().slice(),(0,m.ug)(e,0,this.ends_,this.stride,t)):e=this.flatCoordinates,(0,l.cD)(e,0,this.ends_,this.stride)}getEnds(){return this.ends_}getFlatInteriorPoint(){if(this.flatInteriorPointRevision_!=this.getRevision()){const t=(0,o.q1)(this.getExtent());this.flatInteriorPoint_=(0,f.J)(this.getOrientedFlatCoordinates(),0,this.ends_,this.stride,t,0),this.flatInteriorPointRevision_=this.getRevision()}return this.flatInteriorPoint_}getInteriorPoint(){return new d.A(this.getFlatInteriorPoint(),"XYM")}getLinearRingCount(){return this.ends_.length}getLinearRing(t){return t<0||this.ends_.length<=t?null:new u(this.flatCoordinates.slice(0===t?0:this.ends_[t-1],this.ends_[t]),this.layout)}getLinearRings(){const t=this.layout,e=this.flatCoordinates,n=this.ends_,i=[];let r=0;for(let o=0,a=n.length;o<a;++o){const a=n[o],s=new u(e.slice(r,a),t);i.push(s),r=a}return i}getOrientedFlatCoordinates(){if(this.orientedRevision_!=this.getRevision()){const t=this.flatCoordinates;(0,m.PA)(t,0,this.ends_,this.stride)?this.orientedFlatCoordinates_=t:(this.orientedFlatCoordinates_=t.slice(),this.orientedFlatCoordinates_.length=(0,m.ug)(this.orientedFlatCoordinates_,0,this.ends_,this.stride)),this.orientedRevision_=this.getRevision()}return this.orientedFlatCoordinates_}getSimplifiedGeometryInternal(t){const e=[],n=[];return e.length=(0,s.Hg)(this.flatCoordinates,0,this.ends_,this.stride,Math.sqrt(t),e,0,n),new _(e,"XY",n)}getType(){return"Polygon"}intersectsExtent(t){return(0,g.HT)(this.getOrientedFlatCoordinates(),0,this.ends_,this.stride,t)}setCoordinates(t,e){this.setLayout(e,t,2),this.flatCoordinates||(this.flatCoordinates=[]);const n=(0,a.KG)(this.flatCoordinates,0,t,this.stride,this.ends_);this.flatCoordinates.length=0===n.length?0:n[n.length-1],this.changed()}}const x=_;function b(t,e,n,i){n=n||32;const r=[];for(let o=0;o<n;++o)(0,p.X$)(r,(0,y.cY)(t,e,2*Math.PI*o/n,i));return r.push(r[0],r[1]),new _(r,"XY",[r.length])}function w(t){if((0,o.Im)(t))throw new Error("Cannot create polygon from empty extent");const e=t[0],n=t[1],i=t[2],r=t[3],a=[e,n,e,r,i,r,i,n,e,n];return new _(a,"XY",[a.length])}},6861:(t,e,n)=>{"use strict";n.d(e,{Ay:()=>c,v7:()=>h});var i=n(163),r=n(6916),o=n(4320),a=n(5415);class s extends i.A{constructor(){super(),this.layout="XY",this.stride=2,this.flatCoordinates=null}computeExtent(t){return(0,o.Vy)(this.flatCoordinates,0,this.flatCoordinates.length,this.stride,t)}getCoordinates(){return(0,r.b0)()}getFirstCoordinate(){return this.flatCoordinates.slice(0,this.stride)}getFlatCoordinates(){return this.flatCoordinates}getLastCoordinate(){return this.flatCoordinates.slice(this.flatCoordinates.length-this.stride)}getLayout(){return this.layout}getSimplifiedGeometry(t){if(this.simplifiedGeometryRevision!==this.getRevision()&&(this.simplifiedGeometryMaxMinSquaredTolerance=0,this.simplifiedGeometryRevision=this.getRevision()),t<0||0!==this.simplifiedGeometryMaxMinSquaredTolerance&&t<=this.simplifiedGeometryMaxMinSquaredTolerance)return this;const e=this.getSimplifiedGeometryInternal(t);return e.getFlatCoordinates().length<this.flatCoordinates.length?e:(this.simplifiedGeometryMaxMinSquaredTolerance=t,this)}getSimplifiedGeometryInternal(t){return this}getStride(){return this.stride}setFlatCoordinates(t,e){this.stride=l(t),this.layout=t,this.flatCoordinates=e}setCoordinates(t,e){(0,r.b0)()}setLayout(t,e,n){let i;if(t)i=l(t);else{for(let t=0;t<n;++t){if(0===e.length)return this.layout="XY",void(this.stride=2);e=e[0]}i=e.length,t=function(t){let e;2==t?e="XY":3==t?e="XYZ":4==t&&(e="XYZM");return e}(i)}this.layout=t,this.stride=i}applyTransform(t){this.flatCoordinates&&(t(this.flatCoordinates,this.flatCoordinates,this.stride),this.changed())}rotate(t,e){const n=this.getFlatCoordinates();if(n){const i=this.getStride();(0,a.e$)(n,0,n.length,i,t,e,n),this.changed()}}scale(t,e,n){void 0===e&&(e=t),n||(n=(0,o.q1)(this.getExtent()));const i=this.getFlatCoordinates();if(i){const r=this.getStride();(0,a.hs)(i,0,i.length,r,t,e,n,i),this.changed()}}translate(t,e){const n=this.getFlatCoordinates();if(n){const i=this.getStride();(0,a.Tl)(n,0,n.length,i,t,e,n),this.changed()}}}function l(t){let e;return"XY"==t?e=2:"XYZ"==t||"XYM"==t?e=3:"XYZM"==t&&(e=4),e}function h(t,e,n){const i=t.getFlatCoordinates();if(!i)return null;const r=t.getStride();return(0,a.Rc)(i,0,i.length,r,e,n)}const c=s},3046:(t,e,n)=>{"use strict";function i(t,e,n,i){let r=0,o=t[n-i],a=t[n-i+1];for(;e<n;e+=i){const n=t[e],i=t[e+1];r+=a*n-o*i,o=n,a=i}return r/2}function r(t,e,n,r){let o=0;for(let a=0,s=n.length;a<s;++a){const s=n[a];o+=i(t,e,s,r),e=s}return o}function o(t,e,n,i){let o=0;for(let a=0,s=n.length;a<s;++a){const s=n[a];o+=r(t,e,s,i),e=s[s.length-1]}return o}n.d(e,{Cs:()=>o,PK:()=>r,eN:()=>i})},2748:(t,e,n)=>{"use strict";n.d(e,{HX:()=>a,MD:()=>o,c:()=>s,n:()=>l,oW:()=>h,te:()=>c});var i=n(2878);function r(t,e,n,r,o,a,s){const l=t[e],h=t[e+1],c=t[n]-l,u=t[n+1]-h;let d;if(0===c&&0===u)d=e;else{const p=((o-l)*c+(a-h)*u)/(c*c+u*u);if(p>1)d=n;else{if(p>0){for(let o=0;o<r;++o)s[o]=(0,i.Cc)(t[e+o],t[n+o],p);return void(s.length=r)}d=e}}for(let i=0;i<r;++i)s[i]=t[d+i];s.length=r}function o(t,e,n,r,o){let a=t[e],s=t[e+1];for(e+=r;e<n;e+=r){const n=t[e],r=t[e+1],l=(0,i.hG)(a,s,n,r);l>o&&(o=l),a=n,s=r}return o}function a(t,e,n,i,r){for(let a=0,s=n.length;a<s;++a){const s=n[a];r=o(t,e,s,i,r),e=s}return r}function s(t,e,n,i,r){for(let o=0,s=n.length;o<s;++o){const s=n[o];r=a(t,e,s,i,r),e=s[s.length-1]}return r}function l(t,e,n,o,a,s,l,h,c,u,d){if(e==n)return u;let p,f;if(0===a){if(f=(0,i.hG)(l,h,t[e],t[e+1]),f<u){for(p=0;p<o;++p)c[p]=t[e+p];return c.length=o,f}return u}d=d||[NaN,NaN];let g=e+o;for(;g<n;)if(r(t,g-o,g,o,l,h,d),f=(0,i.hG)(l,h,d[0],d[1]),f<u){for(u=f,p=0;p<o;++p)c[p]=d[p];c.length=o,g+=o}else g+=o*Math.max((Math.sqrt(f)-Math.sqrt(u))/a|0,1);if(s&&(r(t,n-o,e,o,l,h,d),f=(0,i.hG)(l,h,d[0],d[1]),f<u)){for(u=f,p=0;p<o;++p)c[p]=d[p];c.length=o}return u}function h(t,e,n,i,r,o,a,s,h,c,u){u=u||[NaN,NaN];for(let d=0,p=n.length;d<p;++d){const p=n[d];c=l(t,e,p,i,r,o,a,s,h,c,u),e=p}return c}function c(t,e,n,i,r,o,a,s,l,c,u){u=u||[NaN,NaN];for(let d=0,p=n.length;d<p;++d){const p=n[d];c=h(t,e,p,i,r,o,a,s,l,c,u),e=p[p.length-1]}return c}},2966:(t,e,n)=>{"use strict";n.d(e,{Gd:()=>s,a_:()=>o,t7:()=>r,zb:()=>a});var i=n(4320);function r(t,e,n,r,a){return!(0,i.sB)(a,(function(i){return!o(t,e,n,r,i[0],i[1])}))}function o(t,e,n,i,r,o){let a=0,s=t[n-i],l=t[n-i+1];for(;e<n;e+=i){const n=t[e],i=t[e+1];l<=o?i>o&&(n-s)*(o-l)-(r-s)*(i-l)>0&&a++:i<=o&&(n-s)*(o-l)-(r-s)*(i-l)<0&&a--,s=n,l=i}return 0!==a}function a(t,e,n,i,r,a){if(0===n.length)return!1;if(!o(t,e,n[0],i,r,a))return!1;for(let s=1,l=n.length;s<l;++s)if(o(t,n[s-1],n[s],i,r,a))return!1;return!0}function s(t,e,n,i,r,o){if(0===n.length)return!1;for(let s=0,l=n.length;s<l;++s){const l=n[s];if(a(t,e,l,i,r,o))return!0;e=l[l.length-1]}return!1}},9172:(t,e,n)=>{"use strict";function i(t,e,n,i){for(let r=0,o=n.length;r<o;++r)t[e++]=n[r];return e}function r(t,e,n,i){for(let r=0,o=n.length;r<o;++r){const o=n[r];for(let n=0;n<i;++n)t[e++]=o[n]}return e}function o(t,e,n,i,o){o=o||[];let a=0;for(let s=0,l=n.length;s<l;++s){const l=r(t,e,n[s],i);o[a++]=l,e=l}return o.length=a,o}function a(t,e,n,i,r){r=r||[];let a=0;for(let s=0,l=n.length;s<l;++s){const l=o(t,e,n[s],i,r[a]);0===l.length&&(l[0]=e),r[a++]=l,e=l[l.length-1]}return r.length=a,r}n.d(e,{KG:()=>o,_n:()=>i,d6:()=>a,z2:()=>r})},2280:(t,e,n)=>{"use strict";function i(t,e,n,i,r){r=void 0!==r?r:[];let o=0;for(let a=e;a<n;a+=i)r[o++]=t.slice(a,a+i);return r.length=o,r}function r(t,e,n,r,o){o=void 0!==o?o:[];let a=0;for(let s=0,l=n.length;s<l;++s){const l=n[s];o[a++]=i(t,e,l,r,o[a]),e=l}return o.length=a,o}function o(t,e,n,i,o){o=void 0!==o?o:[];let a=0;for(let s=0,l=n.length;s<l;++s){const l=n[s];o[a++]=1===l.length&&l[0]===e?[]:r(t,e,l,i,o[a]),e=l[l.length-1]}return o.length=a,o}n.d(e,{Dz:()=>o,cD:()=>r,n2:()=>i})},2069:(t,e,n)=>{"use strict";n.d(e,{J:()=>o,p:()=>a});var i=n(9783),r=n(2966);function o(t,e,n,o,a,s,l){let h,c,u,d,p,f,g;const m=a[s+1],v=[];for(let i=0,r=n.length;i<r;++i){const r=n[i];for(d=t[r-o],f=t[r-o+1],h=e;h<r;h+=o)p=t[h],g=t[h+1],(m<=f&&g<=m||f<=m&&m<=g)&&(u=(m-f)/(g-f)*(p-d)+d,v.push(u)),d=p,f=g}let y=NaN,_=-1/0;for(v.sort(i.V_),d=v[0],h=1,c=v.length;h<c;++h){p=v[h];const i=Math.abs(p-d);i>_&&(u=(d+p)/2,(0,r.zb)(t,e,n,o,u,m)&&(y=u,_=i)),d=p}return isNaN(y)&&(y=a[s]),l?(l.push(y,m,_),l):[y,m,_]}function a(t,e,n,i,r){let a=[];for(let s=0,l=n.length;s<l;++s){const l=n[s];a=o(t,e,l,i,r,2*s,a),e=l[l.length-1]}return a}},160:(t,e,n)=>{"use strict";n.d(e,{L8:()=>s,SH:()=>o,gr:()=>a});var i=n(9783),r=n(2878);function o(t,e,n,o,a,s,l){let h,c;const u=(n-e)/o;if(1===u)h=e;else if(2===u)h=e,c=a;else if(0!==u){let r=t[e],s=t[e+1],l=0;const u=[0];for(let i=e+o;i<n;i+=o){const e=t[i],n=t[i+1];l+=Math.sqrt((e-r)*(e-r)+(n-s)*(n-s)),u.push(l),r=e,s=n}const d=a*l,p=(0,i.El)(u,d);p<0?(c=(d-u[-p-2])/(u[-p-1]-u[-p-2]),h=e+(-p-2)*o):h=e+p*o}l=l>1?l:2,s=s||new Array(l);for(let i=0;i<l;++i)s[i]=void 0===h?NaN:void 0===c?t[h+i]:(0,r.Cc)(t[h+i],t[h+o+i],c);return s}function a(t,e,n,i,o,a){if(n==e)return null;let s;if(o<t[e+i-1])return a?(s=t.slice(e,e+i),s[i-1]=o,s):null;if(t[n-1]<o)return a?(s=t.slice(n-i,n),s[i-1]=o,s):null;if(o==t[e+i-1])return t.slice(e,e+i);let l=e/i,h=n/i;for(;l<h;){const e=l+h>>1;o<t[(e+1)*i-1]?h=e:l=e+1}const c=t[l*i-1];if(o==c)return t.slice((l-1)*i,(l-1)*i+i);const u=(o-c)/(t[(l+1)*i-1]-c);s=[];for(let d=0;d<i-1;++d)s.push((0,r.Cc)(t[(l-1)*i+d],t[l*i+d],u));return s.push(o),s}function s(t,e,n,i,r,o,s){if(s)return a(t,e,n[n.length-1],i,r,o);let l;if(r<t[i-1])return o?(l=t.slice(0,i),l[i-1]=r,l):null;if(t[t.length-1]<r)return o?(l=t.slice(t.length-i),l[i-1]=r,l):null;for(let h=0,c=n.length;h<c;++h){const o=n[h];if(e!=o){if(r<t[e+i-1])return null;if(r<=t[o-1])return a(t,e,o,i,r,!1);e=o}}return null}},2453:(t,e,n)=>{"use strict";n.d(e,{HT:()=>h,Wp:()=>c,fB:()=>s,gp:()=>a,sj:()=>l});var i=n(4320),r=n(1381),o=n(2966);function a(t,e,n,o,a){const s=(0,i.R8)((0,i.S5)(),t,e,n,o);return!!(0,i.HY)(a,s)&&(!!(0,i.ms)(a,s)||(s[0]>=a[0]&&s[2]<=a[2]||(s[1]>=a[1]&&s[3]<=a[3]||(0,r.j)(t,e,n,o,(function(t,e){return(0,i.Mx)(a,t,e)})))))}function s(t,e,n,i,r){for(let o=0,s=n.length;o<s;++o){if(a(t,e,n[o],i,r))return!0;e=n[o]}return!1}function l(t,e,n,i,r){return!!a(t,e,n,i,r)||(!!(0,o.a_)(t,e,n,i,r[0],r[1])||(!!(0,o.a_)(t,e,n,i,r[0],r[3])||(!!(0,o.a_)(t,e,n,i,r[2],r[1])||!!(0,o.a_)(t,e,n,i,r[2],r[3]))))}function h(t,e,n,i,r){if(!l(t,e,n[0],i,r))return!1;if(1===n.length)return!0;for(let s=1,l=n.length;s<l;++s)if((0,o.t7)(t,n[s-1],n[s],i,r)&&!a(t,n[s-1],n[s],i,r))return!1;return!0}function c(t,e,n,i,r){for(let o=0,a=n.length;o<a;++o){const a=n[o];if(h(t,e,a,i,r))return!0;e=a[a.length-1]}return!1}},7175:(t,e,n)=>{"use strict";function i(t,e,n,i){let r=t[e],o=t[e+1],a=0;for(let s=e+i;s<n;s+=i){const e=t[s],n=t[s+1];a+=Math.sqrt((e-r)*(e-r)+(n-o)*(n-o)),r=e,o=n}return a}n.d(e,{k:()=>i})},4888:(t,e,n)=>{"use strict";function i(t,e,n,i){for(;e<n-i;){for(let r=0;r<i;++r){const o=t[e+r];t[e+r]=t[n-i+r],t[n-i+r]=o}e+=i,n-=i}}function r(t,e,n,i){let r=0,o=t[n-i],a=t[n-i+1];for(;e<n;e+=i){const n=t[e],i=t[e+1];r+=(n-o)*(i+a),o=n,a=i}return 0===r?void 0:r>0}function o(t,e,n,i,o){o=void 0!==o&&o;for(let a=0,s=n.length;a<s;++a){const s=n[a],l=r(t,e,s,i);if(0===a){if(o&&l||!o&&!l)return!1}else if(o&&!l||!o&&l)return!1;e=s}return!0}function a(t,e,n,i,r){for(let a=0,s=n.length;a<s;++a){const s=n[a];if(!o(t,e,s,i,r))return!1;s.length&&(e=s[s.length-1])}return!0}function s(t,e,n,o,a){a=void 0!==a&&a;for(let s=0,l=n.length;s<l;++s){const l=n[s],h=r(t,e,l,o);(0===s?a&&h||!a&&!h:a&&!h||!a&&h)&&i(t,e,l,o),e=l}return e}function l(t,e,n,i,r){for(let o=0,a=n.length;o<a;++o)e=s(t,e,n[o],i,r);return e}n.d(e,{PA:()=>o,mb:()=>a,ug:()=>s,NK:()=>l})},1381:(t,e,n)=>{"use strict";function i(t,e,n,i,r){let o;for(e+=i;e<n;e+=i)if(o=r(t.slice(e-i,e),t.slice(e,e+i)),o)return o;return!1}n.d(e,{j:()=>i})},5028:(t,e,n)=>{"use strict";n.d(e,{AL:()=>o,Hg:()=>l,P4:()=>r,n$:()=>a,sx:()=>h});var i=n(2878);function r(t,e,n,r,o,a,s){const l=(n-e)/r;if(l<3){for(;e<n;e+=r)a[s++]=t[e],a[s++]=t[e+1];return s}const h=new Array(l);h[0]=1,h[l-1]=1;const c=[e,n-r];let u=0;for(;c.length>0;){const n=c.pop(),a=c.pop();let s=0;const l=t[a],d=t[a+1],p=t[n],f=t[n+1];for(let e=a+r;e<n;e+=r){const n=t[e],r=t[e+1],o=(0,i.Q1)(n,r,l,d,p,f);o>s&&(u=e,s=o)}s>o&&(h[(u-e)/r]=1,a+r<u&&c.push(a,u),u+r<n&&c.push(u,n))}for(let i=0;i<l;++i)h[i]&&(a[s++]=t[e+i*r],a[s++]=t[e+i*r+1]);return s}function o(t,e,n,i,o,a,s,l){for(let h=0,c=n.length;h<c;++h){const c=n[h];s=r(t,e,c,i,o,a,s),l.push(s),e=c}return s}function a(t,e){return e*Math.round(t/e)}function s(t,e,n,i,r,o,s){if(e==n)return s;let l,h,c=a(t[e],r),u=a(t[e+1],r);e+=i,o[s++]=c,o[s++]=u;do{if(l=a(t[e],r),h=a(t[e+1],r),(e+=i)==n)return o[s++]=l,o[s++]=h,s}while(l==c&&h==u);for(;e<n;){const n=a(t[e],r),d=a(t[e+1],r);if(e+=i,n==l&&d==h)continue;const p=l-c,f=h-u,g=n-c,m=d-u;p*m==f*g&&(p<0&&g<p||p==g||p>0&&g>p)&&(f<0&&m<f||f==m||f>0&&m>f)?(l=n,h=d):(o[s++]=l,o[s++]=h,c=l,u=h,l=n,h=d)}return o[s++]=l,o[s++]=h,s}function l(t,e,n,i,r,o,a,l){for(let h=0,c=n.length;h<c;++h){const c=n[h];a=s(t,e,c,i,r,o,a),l.push(a),e=c}return a}function h(t,e,n,i,r,o,a,s){for(let h=0,c=n.length;h<c;++h){const c=n[h],u=[];a=l(t,e,c,i,r,o,a,u),s.push(u),e=c[c.length-1]}return a}},5415:(t,e,n)=>{"use strict";function i(t,e,n,i,r,o){o=o||[];let a=0;for(let s=e;s<n;s+=i){const e=t[s],n=t[s+1];o[a++]=r[0]*e+r[2]*n+r[4],o[a++]=r[1]*e+r[3]*n+r[5]}return o&&o.length!=a&&(o.length=a),o}function r(t,e,n,i,r,o,a){a=a||[];const s=Math.cos(r),l=Math.sin(r),h=o[0],c=o[1];let u=0;for(let d=e;d<n;d+=i){const e=t[d]-h,n=t[d+1]-c;a[u++]=h+e*s-n*l,a[u++]=c+e*l+n*s;for(let r=d+2;r<d+i;++r)a[u++]=t[r]}return a&&a.length!=u&&(a.length=u),a}function o(t,e,n,i,r,o,a,s){s=s||[];const l=a[0],h=a[1];let c=0;for(let u=e;u<n;u+=i){const e=t[u]-l,n=t[u+1]-h;s[c++]=l+r*e,s[c++]=h+o*n;for(let r=u+2;r<u+i;++r)s[c++]=t[r]}return s&&s.length!=c&&(s.length=c),s}function a(t,e,n,i,r,o,a){a=a||[];let s=0;for(let l=e;l<n;l+=i){a[s++]=t[l]+r,a[s++]=t[l+1]+o;for(let e=l+2;e<l+i;++e)a[s++]=t[e]}return a&&a.length!=s&&(a.length=s),a}n.d(e,{Rc:()=>i,Tl:()=>a,e$:()=>r,hs:()=>o})},6306:(t,e,n)=>{"use strict";n.d(e,{DT:()=>h,FT:()=>c,Wl:()=>l,_p:()=>r,cr:()=>s,ew:()=>a,j:()=>o});const i="undefined"!=typeof navigator&&void 0!==navigator.userAgent?navigator.userAgent.toLowerCase():"",r=i.includes("firefox"),o=(i.includes("safari")&&!i.includes("chrom")&&(i.includes("version/15.4")||/cpu (os|iphone os) 15_4 like mac os x/.test(i)),i.includes("webkit")&&!i.includes("edge")),a=i.includes("macintosh"),s="undefined"!=typeof devicePixelRatio?devicePixelRatio:1,l="undefined"!=typeof WorkerGlobalScope&&"undefined"!=typeof OffscreenCanvas&&self instanceof WorkerGlobalScope,h="undefined"!=typeof Image&&Image.prototype.decode,c=function(){let t=!1;try{const e=Object.defineProperty({},"passive",{get:function(){t=!0}});window.addEventListener("_",null,e),window.removeEventListener("_",null,e)}catch(e){}return t}()},247:(t,e,n)=>{"use strict";n.r(e),n.d(e,{AssertionError:()=>i.A,Collection:()=>r.A,Disposable:()=>o.A,Feature:()=>a.A,Geolocation:()=>M,Graticule:()=>W,Image:()=>U.A,ImageBase:()=>q.A,ImageCanvas:()=>Z,ImageTile:()=>$.A,Kinetic:()=>K.A,Map:()=>J.A,MapBrowserEvent:()=>Q.A,MapBrowserEventHandler:()=>tt.A,MapEvent:()=>et.A,Object:()=>l.A,Observable:()=>nt.A,Overlay:()=>pt,Tile:()=>ft.A,TileCache:()=>gt.A,TileQueue:()=>mt.A,TileRange:()=>vt.A,VERSION:()=>yt.xv,VectorRenderTile:()=>bt,VectorTile:()=>Tt,View:()=>Mt.Ay,getUid:()=>yt.v6});var i=n(8554),r=n(5616),o=n(7034),a=n(1116),s=n(5026),l=n(5191),h=n(206),c=n(6859),u=n(2878);const d="accuracy",p="accuracyGeometry",f="altitude",g="altitudeAccuracy",m="heading",v="position",y="projection",_="speed",x="tracking",b="trackingOptions",w="error";class S extends s.Ay{constructor(t){super(w),this.code=t.code,this.message=t.message}}class T extends l.A{constructor(t){super(),this.on,this.once,this.un,t=t||{},this.position_=null,this.transform_=c.R6,this.watchId_=void 0,this.addChangeListener(y,this.handleProjectionChanged_),this.addChangeListener(x,this.handleTrackingChanged_),void 0!==t.projection&&this.setProjection(t.projection),void 0!==t.trackingOptions&&this.setTrackingOptions(t.trackingOptions),this.setTracking(void 0!==t.tracking&&t.tracking)}disposeInternal(){this.setTracking(!1),super.disposeInternal()}handleProjectionChanged_(){const t=this.getProjection();t&&(this.transform_=(0,c.FO)((0,c.Jt)("EPSG:4326"),t),this.position_&&this.set(v,this.transform_(this.position_)))}handleTrackingChanged_(){if("geolocation"in navigator){const t=this.getTracking();t&&void 0===this.watchId_?this.watchId_=navigator.geolocation.watchPosition(this.positionChange_.bind(this),this.positionError_.bind(this),this.getTrackingOptions()):t||void 0===this.watchId_||(navigator.geolocation.clearWatch(this.watchId_),this.watchId_=void 0)}}positionChange_(t){const e=t.coords;this.set(d,e.accuracy),this.set(f,null===e.altitude?void 0:e.altitude),this.set(g,null===e.altitudeAccuracy?void 0:e.altitudeAccuracy),this.set(m,null===e.heading?void 0:(0,u.eh)(e.heading)),this.position_?(this.position_[0]=e.longitude,this.position_[1]=e.latitude):this.position_=[e.longitude,e.latitude];const n=this.transform_(this.position_);this.set(v,n.slice()),this.set(_,null===e.speed?void 0:e.speed);const i=(0,h.kj)(this.position_,e.accuracy);i.applyTransform(this.transform_),this.set(p,i),this.changed()}positionError_(t){this.dispatchEvent(new S(t))}getAccuracy(){return this.get(d)}getAccuracyGeometry(){return this.get(p)||null}getAltitude(){return this.get(f)}getAltitudeAccuracy(){return this.get(g)}getHeading(){return this.get(m)}getPosition(){return this.get(v)}getProjection(){return this.get(y)}getSpeed(){return this.get(_)}getTracking(){return this.get(x)}getTrackingOptions(){return this.get(b)}setProjection(t){this.set(y,(0,c.Jt)(t))}setTracking(t){this.set(x,t)}setTrackingOptions(t){this.set(b,t)}}const M=T;var A=n(4431),C=n(9091),I=n(5116),E=n(4853),k=n(3698),L=n(6365),D=n(8981),P=n(5209),R=n(9255),O=n(4320),N=n(6234),F=n(6393),B=n(686),z=n(9841);function G(t,e,n){const i=[];let r=t(0),o=t(1),a=e(r),s=e(o);const l=[o,r],h=[s,a],c=[1,0],d={};let p,f,g,m,v,y,_=1e5;for(;--_>0&&c.length>0;)g=c.pop(),r=l.pop(),a=h.pop(),y=g.toString(),y in d||(i.push(a[0],a[1]),d[y]=!0),m=c.pop(),o=l.pop(),s=h.pop(),v=(g+m)/2,p=t(v),f=e(p),(0,u.Q1)(f[0],f[1],a[0],a[1],s[0],s[1])<n?(i.push(s[0],s[1]),y=m.toString(),d[y]=!0):(c.push(m,v,v,g),h.push(s,f,f,a),l.push(o,p,p,r));return i}const V=new k.A({color:"rgba(0,0,0,0.2)"}),j=[90,45,30,20,10,5,2,1,.5,20/60,10/60,5/60,2/60,1/60,30/3600,20/3600,10/3600,5/3600,2/3600,1/3600];class H extends P.A{constructor(t){t=t||{};const e=Object.assign({updateWhileAnimating:!0,updateWhileInteracting:!0,renderBuffer:0},t);delete e.maxLines,delete e.strokeStyle,delete e.targetSize,delete e.showLabels,delete e.lonLabelFormatter,delete e.latLabelFormatter,delete e.lonLabelPosition,delete e.latLabelPosition,delete e.lonLabelStyle,delete e.latLabelStyle,delete e.intervals,super(e),this.projection_=null,this.maxLat_=1/0,this.maxLon_=1/0,this.minLat_=-1/0,this.minLon_=-1/0,this.maxX_=1/0,this.maxY_=1/0,this.minX_=-1/0,this.minY_=-1/0,this.targetSize_=void 0!==t.targetSize?t.targetSize:100,this.maxLines_=void 0!==t.maxLines?t.maxLines:100,this.meridians_=[],this.parallels_=[],this.strokeStyle_=void 0!==t.strokeStyle?t.strokeStyle:V,this.fromLonLatTransform_=void 0,this.toLonLatTransform_=void 0,this.projectionCenterLonLat_=null,this.bottomLeft_=null,this.bottomRight_=null,this.topLeft_=null,this.topRight_=null,this.meridiansLabels_=null,this.parallelsLabels_=null,t.showLabels&&(this.lonLabelFormatter_=null==t.lonLabelFormatter?N.aP.bind(this,"EW"):t.lonLabelFormatter,this.latLabelFormatter_=null==t.latLabelFormatter?N.aP.bind(this,"NS"):t.latLabelFormatter,this.lonLabelPosition_=null==t.lonLabelPosition?0:t.lonLabelPosition,this.latLabelPosition_=null==t.latLabelPosition?1:t.latLabelPosition,this.lonLabelStyleBase_=new L.Ay({text:void 0!==t.lonLabelStyle?t.lonLabelStyle.clone():new D.A({font:"12px Calibri,sans-serif",textBaseline:"bottom",fill:new C.A({color:"rgba(0,0,0,1)"}),stroke:new k.A({color:"rgba(255,255,255,1)",width:3})})}),this.lonLabelStyle_=t=>{const e=t.get("graticule_label");return this.lonLabelStyleBase_.getText().setText(e),this.lonLabelStyleBase_},this.latLabelStyleBase_=new L.Ay({text:void 0!==t.latLabelStyle?t.latLabelStyle.clone():new D.A({font:"12px Calibri,sans-serif",textAlign:"right",fill:new C.A({color:"rgba(0,0,0,1)"}),stroke:new k.A({color:"rgba(255,255,255,1)",width:3})})}),this.latLabelStyle_=t=>{const e=t.get("graticule_label");return this.latLabelStyleBase_.getText().setText(e),this.latLabelStyleBase_},this.meridiansLabels_=[],this.parallelsLabels_=[],this.addEventListener(A.A.POSTRENDER,this.drawLabels_.bind(this))),this.intervals_=void 0!==t.intervals?t.intervals:j,this.setSource(new R.A({loader:this.loaderFunction.bind(this),strategy:this.strategyFunction.bind(this),features:new r.A,overlaps:!1,useSpatialIndex:!1,wrapX:t.wrapX})),this.featurePool_=[],this.lineStyle_=new L.Ay({stroke:this.strokeStyle_}),this.loadedExtent_=null,this.renderedExtent_=null,this.renderedResolution_=null,this.setRenderOrder(null)}strategyFunction(t,e){let n=t.slice();return this.projection_&&this.getSource().getWrapX()&&(0,O.Li)(n,this.projection_),this.loadedExtent_&&((0,O.bE)(this.loadedExtent_,n,e)?n=this.loadedExtent_.slice():this.getSource().removeLoadedExtent(this.loadedExtent_)),[n]}loaderFunction(t,e,n){this.loadedExtent_=t;const i=this.getSource(),r=this.getExtent()||[-1/0,-1/0,1/0,1/0],o=(0,O._N)(r,t);if(this.renderedExtent_&&(0,O.aI)(this.renderedExtent_,o)&&this.renderedResolution_===e)return;if(this.renderedExtent_=o,this.renderedResolution_=e,(0,O.Im)(o))return;const s=(0,O.q1)(o),l=e*e/4;(!this.projection_||!(0,c.tI)(this.projection_,n))&&this.updateProjectionInfo_(n),this.createGraticule_(o,s,e,l);let h,u=this.meridians_.length+this.parallels_.length;for(this.meridiansLabels_&&(u+=this.meridians_.length),this.parallelsLabels_&&(u+=this.parallels_.length);u>this.featurePool_.length;)h=new a.A,this.featurePool_.push(h);const d=i.getFeaturesCollection();d.clear();let p,f,g=0;for(p=0,f=this.meridians_.length;p<f;++p)h=this.featurePool_[g++],h.setGeometry(this.meridians_[p]),h.setStyle(this.lineStyle_),d.push(h);for(p=0,f=this.parallels_.length;p<f;++p)h=this.featurePool_[g++],h.setGeometry(this.parallels_[p]),h.setStyle(this.lineStyle_),d.push(h)}addMeridian_(t,e,n,i,r,o){const a=this.getMeridian_(t,e,n,i,o);if((0,O.HY)(a.getExtent(),r)){if(this.meridiansLabels_){const e=this.lonLabelFormatter_(t);o in this.meridiansLabels_?this.meridiansLabels_[o].text=e:this.meridiansLabels_[o]={geom:new E.A([]),text:e}}this.meridians_[o++]=a}return o}addParallel_(t,e,n,i,r,o){const a=this.getParallel_(t,e,n,i,o);if((0,O.HY)(a.getExtent(),r)){if(this.parallelsLabels_){const e=this.latLabelFormatter_(t);o in this.parallelsLabels_?this.parallelsLabels_[o].text=e:this.parallelsLabels_[o]={geom:new E.A([]),text:e}}this.parallels_[o++]=a}return o}drawLabels_(t){const e=t.frameState.viewState.rotation,n=t.frameState.viewState.resolution,i=t.frameState.size,r=t.frameState.extent,o=(0,O.q1)(r);let a=r;if(e){const t=i[0]*n,e=i[1]*n;a=[o[0]-t/2,o[1]-e/2,o[0]+t/2,o[1]+e/2]}let s=0,l=0,h=this.latLabelPosition_<.5;const u=this.projection_.getExtent(),d=(0,O.RG)(u);if(this.getSource().getWrapX()&&this.projection_.canWrapX()&&!(0,O.ms)(u,r)){s=Math.floor((r[0]-u[0])/d),l=Math.ceil((r[2]-u[2])/d);h=h!==Math.abs(e)>Math.PI/2}const p=function(t){if(!(t.context instanceof CanvasRenderingContext2D))throw new Error("Only works for render events from Canvas 2D layers");const e=t.inversePixelTransform[0],n=t.inversePixelTransform[1],i=Math.sqrt(e*e+n*n),r=t.frameState,o=(0,B.lw)(t.inversePixelTransform.slice(),r.coordinateToPixelTransform),a=(0,z.j)(r.viewState.resolution,i);let s;const l=(0,c.Tf)();return l&&(s=(0,c.FO)(l,r.viewState.projection)),new F.A(t.context,i,r.extent,o,r.viewState.rotation,a,s)}(t);for(let c=s;c<=l;++c){let t,n,i,u,f=this.meridians_.length+this.parallels_.length;if(this.meridiansLabels_)for(n=0,i=this.meridiansLabels_.length;n<i;++n){const i=this.meridians_[n];if(e||0!==c){const t=i.clone();t.translate(c*d,0),t.rotate(-e,o),u=this.getMeridianPoint_(t,a,n),u.rotate(e,o)}else u=this.getMeridianPoint_(i,r,n);t=this.featurePool_[f++],t.setGeometry(u),t.set("graticule_label",this.meridiansLabels_[n].text),p.drawFeature(t,this.lonLabelStyle_(t))}if(this.parallelsLabels_&&(c===s&&h||c===l&&!h))for(n=0,i=this.parallels_.length;n<i;++n){const i=this.parallels_[n];if(e||0!==c){const t=i.clone();t.translate(c*d,0),t.rotate(-e,o),u=this.getParallelPoint_(t,a,n),u.rotate(e,o)}else u=this.getParallelPoint_(i,r,n);t=this.featurePool_[f++],t.setGeometry(u),t.set("graticule_label",this.parallelsLabels_[n].text),p.drawFeature(t,this.latLabelStyle_(t))}}}createGraticule_(t,e,n,i){const r=this.getInterval_(n);if(-1==r)return this.meridians_.length=0,this.parallels_.length=0,this.meridiansLabels_&&(this.meridiansLabels_.length=0),void(this.parallelsLabels_&&(this.parallelsLabels_.length=0));let o=!1;const a=this.projection_.getExtent(),s=(0,O.RG)(a);this.getSource().getWrapX()&&this.projection_.canWrapX()&&!(0,O.ms)(a,t)&&((0,O.RG)(t)>=s?(t[0]=a[0],t[2]=a[2]):o=!0);const l=[(0,u.qE)(e[0],this.minX_,this.maxX_),(0,u.qE)(e[1],this.minY_,this.maxY_)],h=this.toLonLatTransform_(l);isNaN(h[1])&&(h[1]=Math.abs(this.maxLat_)>=Math.abs(this.minLat_)?this.maxLat_:this.minLat_);let c=(0,u.qE)(h[0],this.minLon_,this.maxLon_),d=(0,u.qE)(h[1],this.minLat_,this.maxLat_);const p=this.maxLines_;let f,g,m,v,y=t;o||(y=[(0,u.qE)(t[0],this.minX_,this.maxX_),(0,u.qE)(t[1],this.minY_,this.maxY_),(0,u.qE)(t[2],this.minX_,this.maxX_),(0,u.qE)(t[3],this.minY_,this.maxY_)]);const _=(0,O.NW)(y,this.toLonLatTransform_,void 0,8);let x=_[3],b=_[2],w=_[1],S=_[0];if(o||((0,O.Ym)(y,this.bottomLeft_)&&(S=this.minLon_,w=this.minLat_),(0,O.Ym)(y,this.bottomRight_)&&(b=this.maxLon_,w=this.minLat_),(0,O.Ym)(y,this.topLeft_)&&(S=this.minLon_,x=this.maxLat_),(0,O.Ym)(y,this.topRight_)&&(b=this.maxLon_,x=this.maxLat_),x=(0,u.qE)(x,d,this.maxLat_),b=(0,u.qE)(b,c,this.maxLon_),w=(0,u.qE)(w,this.minLat_,d),S=(0,u.qE)(S,this.minLon_,c)),c=Math.floor(c/r)*r,v=(0,u.qE)(c,this.minLon_,this.maxLon_),g=this.addMeridian_(v,w,x,i,t,0),f=0,o)for(;(v-=r)>=S&&f++<p;)g=this.addMeridian_(v,w,x,i,t,g);else for(;v!=this.minLon_&&f++<p;)v=Math.max(v-r,this.minLon_),g=this.addMeridian_(v,w,x,i,t,g);if(v=(0,u.qE)(c,this.minLon_,this.maxLon_),f=0,o)for(;(v+=r)<=b&&f++<p;)g=this.addMeridian_(v,w,x,i,t,g);else for(;v!=this.maxLon_&&f++<p;)v=Math.min(v+r,this.maxLon_),g=this.addMeridian_(v,w,x,i,t,g);for(this.meridians_.length=g,this.meridiansLabels_&&(this.meridiansLabels_.length=g),d=Math.floor(d/r)*r,m=(0,u.qE)(d,this.minLat_,this.maxLat_),g=this.addParallel_(m,S,b,i,t,0),f=0;m!=this.minLat_&&f++<p;)m=Math.max(m-r,this.minLat_),g=this.addParallel_(m,S,b,i,t,g);for(m=(0,u.qE)(d,this.minLat_,this.maxLat_),f=0;m!=this.maxLat_&&f++<p;)m=Math.min(m+r,this.maxLat_),g=this.addParallel_(m,S,b,i,t,g);this.parallels_.length=g,this.parallelsLabels_&&(this.parallelsLabels_.length=g)}getInterval_(t){const e=this.projectionCenterLonLat_[0],n=this.projectionCenterLonLat_[1];let i=-1;const r=Math.pow(this.targetSize_*t,2),o=[],a=[];for(let s=0,l=this.intervals_.length;s<l;++s){const t=(0,u.qE)(this.intervals_[s]/2,0,90),l=(0,u.qE)(n,-90+t,90-t);o[0]=e-t,o[1]=l-t,a[0]=e+t,a[1]=l+t,this.fromLonLatTransform_(o,o),this.fromLonLatTransform_(a,a);if(Math.pow(a[0]-o[0],2)+Math.pow(a[1]-o[1],2)<=r)break;i=this.intervals_[s]}return i}getMeridian_(t,e,n,i,r){const o=function(t,e,n,i,r){const o=(0,c.Jt)("EPSG:4326");return G((function(i){return[t,e+(n-e)*i]}),(0,c.RG)(o,i),r)}(t,e,n,this.projection_,i);let a=this.meridians_[r];return a?(a.setFlatCoordinates("XY",o),a.changed()):(a=new I.A(o,"XY"),this.meridians_[r]=a),a}getMeridianPoint_(t,e,n){const i=t.getFlatCoordinates();let r=1,o=i.length-1;i[r]>i[o]&&(r=o,o=1);const a=Math.max(e[1],i[r]),s=Math.min(e[3],i[o]),l=(0,u.qE)(e[1]+Math.abs(e[1]-e[3])*this.lonLabelPosition_,a,s),h=[i[r-1]+(i[o-1]-i[r-1])*(l-i[r])/(i[o]-i[r]),l],c=this.meridiansLabels_[n].geom;return c.setCoordinates(h),c}getMeridians(){return this.meridians_}getParallel_(t,e,n,i,r){const o=function(t,e,n,i,r){const o=(0,c.Jt)("EPSG:4326");return G((function(i){return[e+(n-e)*i,t]}),(0,c.RG)(o,i),r)}(t,e,n,this.projection_,i);let a=this.parallels_[r];return a?(a.setFlatCoordinates("XY",o),a.changed()):a=new I.A(o,"XY"),a}getParallelPoint_(t,e,n){const i=t.getFlatCoordinates();let r=0,o=i.length-2;i[r]>i[o]&&(r=o,o=0);const a=Math.max(e[0],i[r]),s=Math.min(e[2],i[o]),l=(0,u.qE)(e[0]+Math.abs(e[0]-e[2])*this.latLabelPosition_,a,s),h=[l,i[r+1]+(i[o+1]-i[r+1])*(l-i[r])/(i[o]-i[r])],c=this.parallelsLabels_[n].geom;return c.setCoordinates(h),c}getParallels(){return this.parallels_}updateProjectionInfo_(t){const e=(0,c.Jt)("EPSG:4326"),n=t.getWorldExtent();this.maxLat_=n[3],this.maxLon_=n[2],this.minLat_=n[1],this.minLon_=n[0];const i=(0,c.RG)(t,e);if(this.minLon_<this.maxLon_)this.toLonLatTransform_=i;else{const t=this.minLon_+this.maxLon_/2;this.maxLon_+=360,this.toLonLatTransform_=function(e,n,r){const o=i(e,n,r=r||2);for(let i=0,a=o.length;i<a;i+=r)o[i]<t&&(o[i]+=360);return o}}this.fromLonLatTransform_=(0,c.RG)(e,t);const r=(0,O.NW)([this.minLon_,this.minLat_,this.maxLon_,this.maxLat_],this.fromLonLatTransform_,void 0,8);this.minX_=r[0],this.maxX_=r[2],this.minY_=r[1],this.maxY_=r[3],this.bottomLeft_=this.fromLonLatTransform_([this.minLon_,this.minLat_]),this.bottomRight_=this.fromLonLatTransform_([this.maxLon_,this.minLat_]),this.topLeft_=this.fromLonLatTransform_([this.minLon_,this.maxLat_]),this.topRight_=this.fromLonLatTransform_([this.maxLon_,this.maxLat_]),this.projectionCenterLonLat_=this.toLonLatTransform_((0,O.q1)(t.getExtent())),isNaN(this.projectionCenterLonLat_[1])&&(this.projectionCenterLonLat_[1]=Math.abs(this.maxLat_)>=Math.abs(this.minLat_)?this.maxLat_:this.minLat_),this.projection_=t}}const W=H;var U=n(9407),q=n(6414),X=n(438);class Y extends q.A{constructor(t,e,n,i,r){super(t,e,n,void 0!==r?X.A.IDLE:X.A.LOADED),this.loader_=void 0!==r?r:null,this.canvas_=i,this.error_=null}getError(){return this.error_}handleLoad_(t){t?(this.error_=t,this.state=X.A.ERROR):this.state=X.A.LOADED,this.changed()}load(){this.state==X.A.IDLE&&(this.state=X.A.LOADING,this.changed(),this.loader_(this.handleLoad_.bind(this)))}getImage(){return this.canvas_}}const Z=Y;var $=n(931),K=n(6021),J=n(9532),Q=n(7264),tt=n(5462),et=n(7762),nt=n(6529),it=n(7738),rt=n(5433),ot=n(2657),at=n(7354);const st="element",lt="map",ht="offset",ct="position",ut="positioning";class dt extends l.A{constructor(t){super(),this.on,this.once,this.un,this.options=t,this.id=t.id,this.insertFirst=void 0===t.insertFirst||t.insertFirst,this.stopEvent=void 0===t.stopEvent||t.stopEvent,this.element=document.createElement("div"),this.element.className=void 0!==t.className?t.className:"ol-overlay-container "+rt.Q5,this.element.style.position="absolute",this.element.style.pointerEvents="auto",this.autoPan=!0===t.autoPan?{}:t.autoPan||void 0,this.rendered={transform_:"",visible:!0},this.mapPostrenderListenerKey=null,this.addChangeListener(st,this.handleElementChanged),this.addChangeListener(lt,this.handleMapChanged),this.addChangeListener(ht,this.handleOffsetChanged),this.addChangeListener(ct,this.handlePositionChanged),this.addChangeListener(ut,this.handlePositioningChanged),void 0!==t.element&&this.setElement(t.element),this.setOffset(void 0!==t.offset?t.offset:[0,0]),this.setPositioning(t.positioning||"top-left"),void 0!==t.position&&this.setPosition(t.position)}getElement(){return this.get(st)}getId(){return this.id}getMap(){return this.get(lt)||null}getOffset(){return this.get(ht)}getPosition(){return this.get(ct)}getPositioning(){return this.get(ut)}handleElementChanged(){(0,at.gS)(this.element);const t=this.getElement();t&&this.element.appendChild(t)}handleMapChanged(){this.mapPostrenderListenerKey&&((0,at.bf)(this.element),(0,ot.JH)(this.mapPostrenderListenerKey),this.mapPostrenderListenerKey=null);const t=this.getMap();if(t){this.mapPostrenderListenerKey=(0,ot.KT)(t,it.A.POSTRENDER,this.render,this),this.updatePixelPosition();const e=this.stopEvent?t.getOverlayContainerStopEvent():t.getOverlayContainer();this.insertFirst?e.insertBefore(this.element,e.childNodes[0]||null):e.appendChild(this.element),this.performAutoPan()}}render(){this.updatePixelPosition()}handleOffsetChanged(){this.updatePixelPosition()}handlePositionChanged(){this.updatePixelPosition(),this.performAutoPan()}handlePositioningChanged(){this.updatePixelPosition()}setElement(t){this.set(st,t)}setMap(t){this.set(lt,t)}setOffset(t){this.set(ht,t)}setPosition(t){this.set(ct,t)}performAutoPan(){this.autoPan&&this.panIntoView(this.autoPan)}panIntoView(t){const e=this.getMap();if(!e||!e.getTargetElement()||!this.get(ct))return;const n=this.getRect(e.getTargetElement(),e.getSize()),i=this.getElement(),r=this.getRect(i,[(0,at.Gq)(i),(0,at.DK)(i)]),o=void 0===(t=t||{}).margin?20:t.margin;if(!(0,O.ms)(n,r)){const i=r[0]-n[0],a=n[2]-r[2],s=r[1]-n[1],l=n[3]-r[3],h=[0,0];if(i<0?h[0]=i-o:a<0&&(h[0]=Math.abs(a)+o),s<0?h[1]=s-o:l<0&&(h[1]=Math.abs(l)+o),0!==h[0]||0!==h[1]){const n=e.getView().getCenterInternal(),i=e.getPixelFromCoordinateInternal(n);if(!i)return;const r=[i[0]+h[0],i[1]+h[1]],o=t.animation||{};e.getView().animateInternal({center:e.getCoordinateFromPixelInternal(r),duration:o.duration,easing:o.easing})}}}getRect(t,e){const n=t.getBoundingClientRect(),i=n.left+window.pageXOffset,r=n.top+window.pageYOffset;return[i,r,i+e[0],r+e[1]]}setPositioning(t){this.set(ut,t)}setVisible(t){this.rendered.visible!==t&&(this.element.style.display=t?"":"none",this.rendered.visible=t)}updatePixelPosition(){const t=this.getMap(),e=this.getPosition();if(!t||!t.isRendered()||!e)return void this.setVisible(!1);const n=t.getPixelFromCoordinate(e),i=t.getSize();this.updateRenderedPosition(n,i)}updateRenderedPosition(t,e){const n=this.element.style,i=this.getOffset(),r=this.getPositioning();this.setVisible(!0);let o="0%",a="0%";"bottom-right"==r||"center-right"==r||"top-right"==r?o="-100%":"bottom-center"!=r&&"center-center"!=r&&"top-center"!=r||(o="-50%"),"bottom-left"==r||"bottom-center"==r||"bottom-right"==r?a="-100%":"center-left"!=r&&"center-center"!=r&&"center-right"!=r||(a="-50%");const s=`translate(${o}, ${a}) translate(${Math.round(t[0]+i[0])+"px"}, ${Math.round(t[1]+i[1])+"px"})`;this.rendered.transform_!=s&&(this.rendered.transform_=s,n.transform=s)}getOptions(){return this.options}}const pt=dt;var ft=n(3588),gt=n(8169),mt=n(2384),vt=n(3107),yt=n(6916);const _t=[];class xt extends ft.A{constructor(t,e,n,i){super(t,e,{transition:0}),this.context_={},this.executorGroups={},this.declutterExecutorGroups={},this.loadingSourceTiles=0,this.hitDetectionImageData={},this.replayState_={},this.sourceTiles=[],this.errorTileKeys={},this.wantedResolution,this.getSourceTiles=i.bind(void 0,this),this.wrappedTileCoord=n}getContext(t){const e=(0,yt.v6)(t);return e in this.context_||(this.context_[e]=(0,at.Y)(1,1,_t)),this.context_[e]}hasContext(t){return(0,yt.v6)(t)in this.context_}getImage(t){return this.hasContext(t)?this.getContext(t).canvas:null}getReplayState(t){const e=(0,yt.v6)(t);return e in this.replayState_||(this.replayState_[e]={dirty:!1,renderedRenderOrder:null,renderedResolution:NaN,renderedRevision:-1,renderedTileResolution:NaN,renderedTileRevision:-1,renderedTileZ:-1}),this.replayState_[e]}load(){this.getSourceTiles()}release(){for(const t in this.context_){const e=this.context_[t];(0,at.Yg)(e),_t.push(e.canvas),delete this.context_[t]}super.release()}}const bt=xt;var wt=n(5751);class St extends ft.A{constructor(t,e,n,i,r,o){super(t,e,o),this.extent=null,this.format_=i,this.features_=null,this.loader_,this.projection=null,this.resolution,this.tileLoadFunction_=r,this.url_=n,this.key=n}getFormat(){return this.format_}getFeatures(){return this.features_}load(){this.state==wt.A.IDLE&&(this.setState(wt.A.LOADING),this.tileLoadFunction_(this,this.url_),this.loader_&&this.loader_(this.extent,this.resolution,this.projection))}onLoad(t,e){this.setFeatures(t)}onError(){this.setState(wt.A.ERROR)}setFeatures(t){this.features_=t,this.setState(wt.A.LOADED)}setLoader(t){this.loader_=t}}const Tt=St;var Mt=n(3427)},9251:(t,e,n)=>{"use strict";n.d(e,{A:()=>h});var i=n(5191),r=n(8659),o=n(6916),a=n(3957),s=n(2878);class l extends i.A{constructor(t){super(),this.on,this.once,this.un,this.background_=t.background;const e=Object.assign({},t);"object"==typeof t.properties&&(delete e.properties,Object.assign(e,t.properties)),e[r.A.OPACITY]=void 0!==t.opacity?t.opacity:1,(0,a.v)("number"==typeof e[r.A.OPACITY],64),e[r.A.VISIBLE]=void 0===t.visible||t.visible,e[r.A.Z_INDEX]=t.zIndex,e[r.A.MAX_RESOLUTION]=void 0!==t.maxResolution?t.maxResolution:1/0,e[r.A.MIN_RESOLUTION]=void 0!==t.minResolution?t.minResolution:0,e[r.A.MIN_ZOOM]=void 0!==t.minZoom?t.minZoom:-1/0,e[r.A.MAX_ZOOM]=void 0!==t.maxZoom?t.maxZoom:1/0,this.className_=void 0!==e.className?e.className:"ol-layer",delete e.className,this.setProperties(e),this.state_=null}getBackground(){return this.background_}getClassName(){return this.className_}getLayerState(t){const e=this.state_||{layer:this,managed:void 0===t||t},n=this.getZIndex();return e.opacity=(0,s.qE)(Math.round(100*this.getOpacity())/100,0,1),e.visible=this.getVisible(),e.extent=this.getExtent(),e.zIndex=void 0!==n||e.managed?n:1/0,e.maxResolution=this.getMaxResolution(),e.minResolution=Math.max(this.getMinResolution(),0),e.minZoom=this.getMinZoom(),e.maxZoom=this.getMaxZoom(),this.state_=e,e}getLayersArray(t){return(0,o.b0)()}getLayerStatesArray(t){return(0,o.b0)()}getExtent(){return this.get(r.A.EXTENT)}getMaxResolution(){return this.get(r.A.MAX_RESOLUTION)}getMinResolution(){return this.get(r.A.MIN_RESOLUTION)}getMinZoom(){return this.get(r.A.MIN_ZOOM)}getMaxZoom(){return this.get(r.A.MAX_ZOOM)}getOpacity(){return this.get(r.A.OPACITY)}getSourceState(){return(0,o.b0)()}getVisible(){return this.get(r.A.VISIBLE)}getZIndex(){return this.get(r.A.Z_INDEX)}setBackground(t){this.background_=t,this.changed()}setExtent(t){this.set(r.A.EXTENT,t)}setMaxResolution(t){this.set(r.A.MAX_RESOLUTION,t)}setMinResolution(t){this.set(r.A.MIN_RESOLUTION,t)}setMaxZoom(t){this.set(r.A.MAX_ZOOM,t)}setMinZoom(t){this.set(r.A.MIN_ZOOM,t)}setOpacity(t){(0,a.v)("number"==typeof t,64),this.set(r.A.OPACITY,t)}setVisible(t){this.set(r.A.VISIBLE,t)}setZIndex(t){this.set(r.A.Z_INDEX,t)}disposeInternal(){this.state_&&(this.state_.layer=null,this.state_=null),super.disposeInternal()}}const h=l},221:(t,e,n)=>{"use strict";n.d(e,{A:()=>p,l:()=>d});var i=n(9251),r=n(874),o=n(8659),a=n(4431),s=n(3427),l=n(3957),h=n(4320),c=n(2657);class u extends i.A{constructor(t){const e=Object.assign({},t);delete e.source,super(e),this.on,this.once,this.un,this.mapPrecomposeKey_=null,this.mapRenderKey_=null,this.sourceChangeKey_=null,this.renderer_=null,this.sourceReady_=!1,this.rendered=!1,t.render&&(this.render=t.render),t.map&&this.setMap(t.map),this.addChangeListener(o.A.SOURCE,this.handleSourcePropertyChange_);const n=t.source?t.source:null;this.setSource(n)}getLayersArray(t){return(t=t||[]).push(this),t}getLayerStatesArray(t){return(t=t||[]).push(this.getLayerState()),t}getSource(){return this.get(o.A.SOURCE)||null}getRenderSource(){return this.getSource()}getSourceState(){const t=this.getSource();return t?t.getState():"undefined"}handleSourceChange_(){this.changed(),this.sourceReady_||"ready"!==this.getSource().getState()||(this.sourceReady_=!0,this.dispatchEvent("sourceready"))}handleSourcePropertyChange_(){this.sourceChangeKey_&&((0,c.JH)(this.sourceChangeKey_),this.sourceChangeKey_=null),this.sourceReady_=!1;const t=this.getSource();t&&(this.sourceChangeKey_=(0,c.KT)(t,r.A.CHANGE,this.handleSourceChange_,this),"ready"===t.getState()&&(this.sourceReady_=!0,setTimeout((()=>{this.dispatchEvent("sourceready")}),0))),this.changed()}getFeatures(t){return this.renderer_?this.renderer_.getFeatures(t):Promise.resolve([])}getData(t){return this.renderer_&&this.rendered?this.renderer_.getData(t):null}isVisible(t){let e;const n=this.getMapInternal();let i;!t&&n&&(t=n.getView()),e=t instanceof s.Ay?{viewState:t.getState(),extent:t.calculateExtent()}:t,!e.layerStatesArray&&n&&(e.layerStatesArray=n.getLayerGroup().getLayerStatesArray()),i=e.layerStatesArray?e.layerStatesArray.find((t=>t.layer===this)):this.getLayerState();const r=this.getExtent();return d(i,e.viewState)&&(!r||(0,h.HY)(r,e.extent))}getAttributions(t){if(!this.isVisible(t))return[];let e;const n=this.getSource();if(n&&(e=n.getAttributions()),!e)return[];let i=e(t instanceof s.Ay?t.getViewStateAndExtent():t);return Array.isArray(i)||(i=[i]),i}render(t,e){const n=this.getRenderer();return n.prepareFrame(t)?(this.rendered=!0,n.renderFrame(t,e)):null}unrender(){this.rendered=!1}setMapInternal(t){t||this.unrender(),this.set(o.A.MAP,t)}getMapInternal(){return this.get(o.A.MAP)}setMap(t){this.mapPrecomposeKey_&&((0,c.JH)(this.mapPrecomposeKey_),this.mapPrecomposeKey_=null),t||this.changed(),this.mapRenderKey_&&((0,c.JH)(this.mapRenderKey_),this.mapRenderKey_=null),t&&(this.mapPrecomposeKey_=(0,c.KT)(t,a.A.PRECOMPOSE,(function(t){const e=t.frameState.layerStatesArray,n=this.getLayerState(!1);(0,l.v)(!e.some((function(t){return t.layer===n.layer})),67),e.push(n)}),this),this.mapRenderKey_=(0,c.KT)(this,r.A.CHANGE,t.render,t),this.changed())}setSource(t){this.set(o.A.SOURCE,t)}getRenderer(){return this.renderer_||(this.renderer_=this.createRenderer()),this.renderer_}hasRenderer(){return!!this.renderer_}createRenderer(){return null}disposeInternal(){this.renderer_&&(this.renderer_.dispose(),delete this.renderer_),this.setSource(null),super.disposeInternal()}}function d(t,e){if(!t.visible)return!1;const n=e.resolution;if(n<t.minResolution||n>=t.maxResolution)return!1;const i=e.zoom;return i>t.minZoom&&i<=t.maxZoom}const p=u},8659:(t,e,n)=>{"use strict";n.d(e,{A:()=>i});const i={OPACITY:"opacity",VISIBLE:"visible",EXTENT:"extent",Z_INDEX:"zIndex",MAX_RESOLUTION:"maxResolution",MIN_RESOLUTION:"minResolution",MAX_ZOOM:"maxZoom",MIN_ZOOM:"minZoom",SOURCE:"source",MAP:"map"}},3682:(t,e,n)=>{"use strict";n.d(e,{A:()=>b});var i=n(221);const r="preload",o="useInterimTilesOnError";class a extends i.A{constructor(t){t=t||{};const e=Object.assign({},t);delete e.preload,delete e.useInterimTilesOnError,super(e),this.on,this.once,this.un,this.setPreload(void 0!==t.preload?t.preload:0),this.setUseInterimTilesOnError(void 0===t.useInterimTilesOnError||t.useInterimTilesOnError)}getPreload(){return this.get(r)}setPreload(t){this.set(r,t)}getUseInterimTilesOnError(){return this.get(o)}setUseInterimTilesOnError(t){this.set(o,t)}getData(t){return super.getData(t)}}const s=a;var l=n(6627),h=n(931),c=n(4864),u=n(3107),d=n(5751),p=n(686),f=n(9783),g=n(4320),m=n(6859),v=n(6916),y=n(277);class _ extends l.A{constructor(t){super(t),this.extentChanged=!0,this.renderedExtent_=null,this.renderedPixelRatio,this.renderedProjection=null,this.renderedRevision,this.renderedTiles=[],this.newTiles_=!1,this.tmpExtent=(0,g.S5)(),this.tmpTileRange_=new u.A(0,0,0,0)}isDrawableTile(t){const e=this.getLayer(),n=t.getState(),i=e.getUseInterimTilesOnError();return n==d.A.LOADED||n==d.A.EMPTY||n==d.A.ERROR&&!i}getTile(t,e,n,i){const r=i.pixelRatio,o=i.viewState.projection,a=this.getLayer();let s=a.getSource().getTile(t,e,n,r,o);return s.getState()==d.A.ERROR&&a.getUseInterimTilesOnError()&&a.getPreload()>0&&(this.newTiles_=!0),this.isDrawableTile(s)||(s=s.getInterimTile()),s}getData(t){const e=this.frameState;if(!e)return null;const n=this.getLayer(),i=(0,p.Bb)(e.pixelToCoordinateTransform,t.slice()),r=n.getExtent();if(r&&!(0,g.Ym)(r,i))return null;const o=e.pixelRatio,a=e.viewState.projection,s=e.viewState,l=n.getRenderSource(),u=l.getTileGridForProjection(s.projection),f=l.getTilePixelRatio(e.pixelRatio);for(let p=u.getZForResolution(s.resolution);p>=u.getMinZoom();--p){const t=u.getTileCoordForCoordAndZ(i,p),e=l.getTile(p,t[1],t[2],o,a);if(!(e instanceof h.A||e instanceof c.A)||e instanceof c.A&&e.getState()===d.A.EMPTY)return null;if(e.getState()!==d.A.LOADED)continue;const n=u.getOrigin(p),r=(0,y.xq)(u.getTileSize(p)),g=u.getResolution(p),m=Math.floor(f*((i[0]-n[0])/g-t[1]*r[0])),v=Math.floor(f*((n[1]-i[1])/g-t[2]*r[1])),_=Math.round(f*l.getGutterForProjection(s.projection));return this.getImageData(e.getImage(),m+_,v+_)}return null}loadedTileCallback(t,e,n){return!!this.isDrawableTile(n)&&super.loadedTileCallback(t,e,n)}prepareFrame(t){return!!this.getLayer().getSource()}renderFrame(t,e){const n=t.layerStatesArray[t.layerIndex],i=t.viewState,r=i.projection,o=i.resolution,a=i.center,s=i.rotation,l=t.pixelRatio,h=this.getLayer(),c=h.getSource(),u=c.getRevision(),y=c.getTileGridForProjection(r),_=y.getZForResolution(o,c.zDirection),x=y.getResolution(_);let b=t.extent;const w=t.viewState.resolution,S=c.getTilePixelRatio(l),T=Math.round((0,g.RG)(b)/w*l),M=Math.round((0,g.Oq)(b)/w*l),A=n.extent&&(0,m.SD)(n.extent,r);A&&(b=(0,g._N)(b,(0,m.SD)(n.extent,r)));const C=x*T/2/S,I=x*M/2/S,E=[a[0]-C,a[1]-I,a[0]+C,a[1]+I],k=y.getTileRangeForExtentAndZ(b,_),L={};L[_]={};const D=this.createLoadedTileFinder(c,r,L),P=this.tmpExtent,R=this.tmpTileRange_;this.newTiles_=!1;const O=s?(0,g.Yw)(i.center,w,s,t.size):void 0;for(let p=k.minX;p<=k.maxX;++p)for(let e=k.minY;e<=k.maxY;++e){if(s&&!y.tileCoordIntersectsViewport([_,p,e],O))continue;const i=this.getTile(_,p,e,t);if(this.isDrawableTile(i)){const e=(0,v.v6)(this);if(i.getState()==d.A.LOADED){L[_][i.tileCoord.toString()]=i;let t=i.inTransition(e);t&&1!==n.opacity&&(i.endTransition(e),t=!1),this.newTiles_||!t&&this.renderedTiles.includes(i)||(this.newTiles_=!0)}if(1===i.getAlpha(e,t.time))continue}const r=y.getTileCoordChildTileRange(i.tileCoord,R,P);let o=!1;r&&(o=D(_+1,r)),o||y.forEachTileCoordParentTileRange(i.tileCoord,D,R,P)}const N=x/o*l/S;(0,p.Zz)(this.pixelTransform,t.size[0]/2,t.size[1]/2,1/l,1/l,s,-T/2,-M/2);const F=(0,p.dI)(this.pixelTransform);this.useContainer(e,F,this.getBackground(t));const B=this.context,z=B.canvas;(0,p.T9)(this.inversePixelTransform,this.pixelTransform),(0,p.Zz)(this.tempTransform,T/2,M/2,N,N,0,-T/2,-M/2),z.width!=T||z.height!=M?(z.width=T,z.height=M):this.containerReused||B.clearRect(0,0,T,M),A&&this.clipUnrotated(B,t,A),c.getInterpolate()||(B.imageSmoothingEnabled=!1),this.preRender(B,t),this.renderedTiles.length=0;let G,V,j,H=Object.keys(L).map(Number);H.sort(f.V_),1!==n.opacity||this.containerReused&&!c.getOpaque(t.viewState.projection)?(G=[],V=[]):H=H.reverse();for(let d=H.length-1;d>=0;--d){const e=H[d],n=c.getTilePixelSize(e,l,r),i=y.getResolution(e)/x,o=n[0]*i*N,a=n[1]*i*N,s=y.getTileCoordForCoordAndZ((0,g.Py)(E),e),h=y.getTileCoordExtent(s),u=(0,p.Bb)(this.tempTransform,[S*(h[0]-E[0])/x,S*(E[3]-h[3])/x]),f=S*c.getGutterForProjection(r),m=L[e];for(const r in m){const n=m[r],i=n.tileCoord,l=s[1]-i[1],h=Math.round(u[0]-(l-1)*o),d=s[2]-i[2],p=Math.round(u[1]-(d-1)*a),y=Math.round(u[0]-l*o),x=Math.round(u[1]-d*a),b=h-y,w=p-x,S=_===e,T=S&&1!==n.getAlpha((0,v.v6)(this),t.time);let M=!1;if(!T)if(G){j=[y,x,y+b,x,y+b,x+w,y,x+w];for(let t=0,n=G.length;t<n;++t)if(_!==e&&e<V[t]){const e=G[t];(0,g.HY)([y,x,y+b,x+w],[e[0],e[3],e[4],e[7]])&&(M||(B.save(),M=!0),B.beginPath(),B.moveTo(j[0],j[1]),B.lineTo(j[2],j[3]),B.lineTo(j[4],j[5]),B.lineTo(j[6],j[7]),B.moveTo(e[6],e[7]),B.lineTo(e[4],e[5]),B.lineTo(e[2],e[3]),B.lineTo(e[0],e[1]),B.clip())}G.push(j),V.push(e)}else B.clearRect(y,x,b,w);this.drawTileImage(n,t,y,x,b,w,f,S),G&&!T?(M&&B.restore(),this.renderedTiles.unshift(n)):this.renderedTiles.push(n),this.updateUsedTiles(t.usedTiles,c,n)}}return this.renderedRevision=u,this.renderedResolution=x,this.extentChanged=!this.renderedExtent_||!(0,g.aI)(this.renderedExtent_,E),this.renderedExtent_=E,this.renderedPixelRatio=l,this.renderedProjection=r,this.manageTilePyramid(t,c,y,l,r,b,_,h.getPreload()),this.scheduleExpireCache(t,c),this.postRender(B,t),n.extent&&B.restore(),B.imageSmoothingEnabled=!0,F!==z.style.transform&&(z.style.transform=F),this.container}drawTileImage(t,e,n,i,r,o,a,s){const l=this.getTileImage(t);if(!l)return;const h=(0,v.v6)(this),c=e.layerStatesArray[e.layerIndex],u=c.opacity*(s?t.getAlpha(h,e.time):1),d=u!==this.context.globalAlpha;d&&(this.context.save(),this.context.globalAlpha=u),this.context.drawImage(l,a,a,l.width-2*a,l.height-2*a,n,i,r,o),d&&this.context.restore(),u!==c.opacity?e.animate=!0:s&&t.endTransition(h)}getImage(){const t=this.context;return t?t.canvas:null}getTileImage(t){return t.getImage()}scheduleExpireCache(t,e){if(e.canExpireCache()){const n=function(t,e,n){const i=(0,v.v6)(t);i in n.usedTiles&&t.expireCache(n.viewState.projection,n.usedTiles[i])}.bind(null,e);t.postRenderFunctions.push(n)}}updateUsedTiles(t,e,n){const i=(0,v.v6)(e);i in t||(t[i]={}),t[i][n.getKey()]=!0}manageTilePyramid(t,e,n,i,r,o,a,s,l){const h=(0,v.v6)(e);h in t.wantedTiles||(t.wantedTiles[h]={});const c=t.wantedTiles[h],u=t.tileQueue,p=n.getMinZoom(),f=t.viewState.rotation,m=f?(0,g.Yw)(t.viewState.center,t.viewState.resolution,f,t.size):void 0;let y,_,x,b,w,S,T=0;for(S=p;S<=a;++S)for(_=n.getTileRangeForExtentAndZ(o,S,_),x=n.getResolution(S),b=_.minX;b<=_.maxX;++b)for(w=_.minY;w<=_.maxY;++w)f&&!n.tileCoordIntersectsViewport([S,b,w],m)||(a-S<=s?(++T,y=e.getTile(S,b,w,i,r),y.getState()==d.A.IDLE&&(c[y.getKey()]=!0,u.isKeyQueued(y.getKey())||u.enqueue([y,h,n.getTileCoordCenter(y.tileCoord),x])),void 0!==l&&l(y)):e.useTile(S,b,w,r));e.updateCacheSize(T,r)}}const x=_;const b=class extends s{constructor(t){super(t)}createRenderer(){return new x(this)}}},5209:(t,e,n)=>{"use strict";n.d(e,{A:()=>Rt});var i=n(221),r=n(3269),o=n(6365),a=n(5390),s=n(9091),l=n(874),h=n(438),c=n(9113),u=n(1805),d=n(3957),p=n(1385),f=n(7354),g=n(1386),m=n(9407);let v=null;class y extends p.A{constructor(t,e,n,i,r,o){super(),this.hitDetectionImage_=null,this.image_=t,this.crossOrigin_=i,this.canvas_={},this.color_=o,this.unlisten_=null,this.imageState_=r,this.size_=n,this.src_=e,this.tainted_}initializeImage_(){this.image_=new Image,null!==this.crossOrigin_&&(this.image_.crossOrigin=this.crossOrigin_)}isTainted_(){if(void 0===this.tainted_&&this.imageState_===h.A.LOADED){v||(v=(0,f.Y)(1,1,void 0,{willReadFrequently:!0})),v.drawImage(this.image_,0,0);try{v.getImageData(0,0,1,1),this.tainted_=!1}catch(t){v=null,this.tainted_=!0}}return!0===this.tainted_}dispatchChangeEvent_(){this.dispatchEvent(l.A.CHANGE)}handleImageError_(){this.imageState_=h.A.ERROR,this.unlistenImage_(),this.dispatchChangeEvent_()}handleImageLoad_(){this.imageState_=h.A.LOADED,this.size_?(this.image_.width=this.size_[0],this.image_.height=this.size_[1]):this.size_=[this.image_.width,this.image_.height],this.unlistenImage_(),this.dispatchChangeEvent_()}getImage(t){return this.image_||this.initializeImage_(),this.replaceColor_(t),this.canvas_[t]?this.canvas_[t]:this.image_}getPixelRatio(t){return this.replaceColor_(t),this.canvas_[t]?t:1}getImageState(){return this.imageState_}getHitDetectionImage(){if(this.image_||this.initializeImage_(),!this.hitDetectionImage_)if(this.isTainted_()){const t=this.size_[0],e=this.size_[1],n=(0,f.Y)(t,e);n.fillRect(0,0,t,e),this.hitDetectionImage_=n.canvas}else this.hitDetectionImage_=this.image_;return this.hitDetectionImage_}getSize(){return this.size_}getSrc(){return this.src_}load(){if(this.imageState_===h.A.IDLE){this.image_||this.initializeImage_(),this.imageState_=h.A.LOADING;try{this.image_.src=this.src_}catch(t){this.handleImageError_()}this.unlisten_=(0,m.f)(this.image_,this.handleImageLoad_.bind(this),this.handleImageError_.bind(this))}}replaceColor_(t){if(!this.color_||this.canvas_[t]||this.imageState_!==h.A.LOADED)return;const e=this.image_,n=document.createElement("canvas");n.width=Math.ceil(e.width*t),n.height=Math.ceil(e.height*t);const i=n.getContext("2d");i.scale(t,t),i.drawImage(e,0,0),i.globalCompositeOperation="multiply",i.fillStyle=(0,u.oJ)(this.color_),i.fillRect(0,0,n.width/t,n.height/t),i.globalCompositeOperation="destination-in",i.drawImage(e,0,0),this.canvas_[t]=n}unlistenImage_(){this.unlisten_&&(this.unlisten_(),this.unlisten_=null)}}var _=n(6916);function x(t,e,n,i){return void 0!==n&&void 0!==i?[n/t,i/e]:void 0!==n?n/t:void 0!==i?i/e:1}class b extends c.A{constructor(t){const e=void 0!==(t=t||{}).opacity?t.opacity:1,n=void 0!==t.rotation?t.rotation:0,i=void 0!==t.scale?t.scale:1,r=void 0!==t.rotateWithView&&t.rotateWithView;super({opacity:e,rotation:n,scale:i,displacement:void 0!==t.displacement?t.displacement:[0,0],rotateWithView:r,declutterMode:t.declutterMode}),this.anchor_=void 0!==t.anchor?t.anchor:[.5,.5],this.normalizedAnchor_=null,this.anchorOrigin_=void 0!==t.anchorOrigin?t.anchorOrigin:"top-left",this.anchorXUnits_=void 0!==t.anchorXUnits?t.anchorXUnits:"fraction",this.anchorYUnits_=void 0!==t.anchorYUnits?t.anchorYUnits:"fraction",this.crossOrigin_=void 0!==t.crossOrigin?t.crossOrigin:null;const o=void 0!==t.img?t.img:null;this.imgSize_=t.imgSize;let a=t.src;(0,d.v)(!(void 0!==a&&o),4),(0,d.v)(!o||o&&this.imgSize_,5),void 0!==a&&0!==a.length||!o||(a=o.src||(0,_.v6)(o)),(0,d.v)(void 0!==a&&a.length>0,6),(0,d.v)(!((void 0!==t.width||void 0!==t.height)&&void 0!==t.scale),69);const s=void 0!==t.src?h.A.IDLE:h.A.LOADED;if(this.color_=void 0!==t.color?(0,u._j)(t.color):null,this.iconImage_=function(t,e,n,i,r,o){let a=g.u.get(e,i,o);return a||(a=new y(t,e,n,i,r,o),g.u.set(e,i,o,a)),a}(o,a,void 0!==this.imgSize_?this.imgSize_:null,this.crossOrigin_,s,this.color_),this.offset_=void 0!==t.offset?t.offset:[0,0],this.offsetOrigin_=void 0!==t.offsetOrigin?t.offsetOrigin:"top-left",this.origin_=null,this.size_=void 0!==t.size?t.size:null,void 0!==t.width||void 0!==t.height){let e,n;if(t.size)[e,n]=t.size;else{const i=this.getImage(1);if(!(i instanceof HTMLCanvasElement||i.src&&i.complete)){this.initialOptions_=t;const e=()=>{if(this.unlistenImageChange(e),!this.initialOptions_)return;const n=this.iconImage_.getSize();this.setScale(x(n[0],n[1],t.width,t.height))};return void this.listenImageChange(e)}e=i.width,n=i.height}void 0!==e&&this.setScale(x(e,n,t.width,t.height))}}clone(){let t,e,n;this.initialOptions_?(e=this.initialOptions_.width,n=this.initialOptions_.height):(t=this.getScale(),t=Array.isArray(t)?t.slice():t);return new b({anchor:this.anchor_.slice(),anchorOrigin:this.anchorOrigin_,anchorXUnits:this.anchorXUnits_,anchorYUnits:this.anchorYUnits_,color:this.color_&&this.color_.slice?this.color_.slice():this.color_||void 0,crossOrigin:this.crossOrigin_,imgSize:this.imgSize_,offset:this.offset_.slice(),offsetOrigin:this.offsetOrigin_,opacity:this.getOpacity(),rotateWithView:this.getRotateWithView(),rotation:this.getRotation(),scale:t,width:e,height:n,size:null!==this.size_?this.size_.slice():void 0,src:this.getSrc(),displacement:this.getDisplacement().slice(),declutterMode:this.getDeclutterMode()})}getAnchor(){let t=this.normalizedAnchor_;if(!t){t=this.anchor_;const e=this.getSize();if("fraction"==this.anchorXUnits_||"fraction"==this.anchorYUnits_){if(!e)return null;t=this.anchor_.slice(),"fraction"==this.anchorXUnits_&&(t[0]*=e[0]),"fraction"==this.anchorYUnits_&&(t[1]*=e[1])}if("top-left"!=this.anchorOrigin_){if(!e)return null;t===this.anchor_&&(t=this.anchor_.slice()),"top-right"!=this.anchorOrigin_&&"bottom-right"!=this.anchorOrigin_||(t[0]=-t[0]+e[0]),"bottom-left"!=this.anchorOrigin_&&"bottom-right"!=this.anchorOrigin_||(t[1]=-t[1]+e[1])}this.normalizedAnchor_=t}const e=this.getDisplacement(),n=this.getScaleArray();return[t[0]-e[0]/n[0],t[1]+e[1]/n[1]]}setAnchor(t){this.anchor_=t,this.normalizedAnchor_=null}getColor(){return this.color_}getImage(t){return this.iconImage_.getImage(t)}getPixelRatio(t){return this.iconImage_.getPixelRatio(t)}getImageSize(){return this.iconImage_.getSize()}getImageState(){return this.iconImage_.getImageState()}getHitDetectionImage(){return this.iconImage_.getHitDetectionImage()}getOrigin(){if(this.origin_)return this.origin_;let t=this.offset_;if("top-left"!=this.offsetOrigin_){const e=this.getSize(),n=this.iconImage_.getSize();if(!e||!n)return null;t=t.slice(),"top-right"!=this.offsetOrigin_&&"bottom-right"!=this.offsetOrigin_||(t[0]=n[0]-e[0]-t[0]),"bottom-left"!=this.offsetOrigin_&&"bottom-right"!=this.offsetOrigin_||(t[1]=n[1]-e[1]-t[1])}return this.origin_=t,this.origin_}getSrc(){return this.iconImage_.getSrc()}getSize(){return this.size_?this.size_:this.iconImage_.getSize()}getWidth(){const t=this.getScaleArray();return this.size_?this.size_[0]*t[0]:this.iconImage_.getImageState()==h.A.LOADED?this.iconImage_.getSize()[0]*t[0]:void 0}getHeight(){const t=this.getScaleArray();return this.size_?this.size_[1]*t[1]:this.iconImage_.getImageState()==h.A.LOADED?this.iconImage_.getSize()[1]*t[1]:void 0}setScale(t){delete this.initialOptions_,super.setScale(t)}listenImageChange(t){this.iconImage_.addEventListener(l.A.CHANGE,t)}load(){this.iconImage_.load()}unlistenImageChange(t){this.iconImage_.removeEventListener(l.A.CHANGE,t)}}const w=b;var S=n(6539),T=n(3698),M=n(8981);function A(t){return new o.Ay({fill:C(t,""),stroke:I(t,""),text:E(t),image:k(t)})}function C(t,e){const n=t[e+"fill-color"];if(n)return"none"===n?null:new s.A({color:n})}function I(t,e){const n=t[e+"stroke-width"],i=t[e+"stroke-color"];if(n||i)return new T.A({width:n,color:i,lineCap:t[e+"stroke-line-cap"],lineJoin:t[e+"stroke-line-join"],lineDash:t[e+"stroke-line-dash"],lineDashOffset:t[e+"stroke-line-dash-offset"],miterLimit:t[e+"stroke-miter-limit"]})}function E(t){const e=t["text-value"];if(!e)return;return new M.A({text:e,font:t["text-font"],maxAngle:t["text-max-angle"],offsetX:t["text-offset-x"],offsetY:t["text-offset-y"],overflow:t["text-overflow"],placement:t["text-placement"],repeat:t["text-repeat"],scale:t["text-scale"],rotateWithView:t["text-rotate-with-view"],rotation:t["text-rotation"],textAlign:t["text-align"],justify:t["text-justify"],textBaseline:t["text-baseline"],padding:t["text-padding"],fill:C(t,"text-"),backgroundFill:C(t,"text-background-"),stroke:I(t,"text-"),backgroundStroke:I(t,"text-background-")})}function k(t){const e=t["icon-src"],n=t["icon-img"];if(e||n){return new w({src:e,img:n,imgSize:t["icon-img-size"],anchor:t["icon-anchor"],anchorOrigin:t["icon-anchor-origin"],anchorXUnits:t["icon-anchor-x-units"],anchorYUnits:t["icon-anchor-y-units"],color:t["icon-color"],crossOrigin:t["icon-cross-origin"],offset:t["icon-offset"],displacement:t["icon-displacement"],opacity:t["icon-opacity"],scale:t["icon-scale"],width:t["icon-width"],height:t["icon-height"],rotation:t["icon-rotation"],rotateWithView:t["icon-rotate-with-view"],size:t["icon-size"],declutterMode:t["icon-declutter-mode"]})}const i=t["shape-points"];if(i){const e="shape-";return new S.A({points:i,fill:C(t,e),stroke:I(t,e),radius:t["shape-radius"],radius1:t["shape-radius1"],radius2:t["shape-radius2"],angle:t["shape-angle"],displacement:t["shape-displacement"],rotation:t["shape-rotation"],rotateWithView:t["shape-rotate-with-view"],scale:t["shape-scale"],declutterMode:t["shape-declutter-mode"]})}const r=t["circle-radius"];if(r){const e="circle-";return new a.A({radius:r,fill:C(t,e),stroke:I(t,e),displacement:t["circle-displacement"],scale:t["circle-scale"],rotation:t["circle-rotation"],rotateWithView:t["circle-rotate-with-view"],declutterMode:t["circle-declutter-mode"]})}}const L="renderOrder";class D extends i.A{constructor(t){t=t||{};const e=Object.assign({},t);delete e.style,delete e.renderBuffer,delete e.updateWhileAnimating,delete e.updateWhileInteracting,super(e),this.declutter_=void 0!==t.declutter&&t.declutter,this.renderBuffer_=void 0!==t.renderBuffer?t.renderBuffer:100,this.style_=null,this.styleFunction_=void 0,this.setStyle(t.style),this.updateWhileAnimating_=void 0!==t.updateWhileAnimating&&t.updateWhileAnimating,this.updateWhileInteracting_=void 0!==t.updateWhileInteracting&&t.updateWhileInteracting}getDeclutter(){return this.declutter_}getFeatures(t){return super.getFeatures(t)}getRenderBuffer(){return this.renderBuffer_}getRenderOrder(){return this.get(L)}getStyle(){return this.style_}getStyleFunction(){return this.styleFunction_}getUpdateWhileAnimating(){return this.updateWhileAnimating_}getUpdateWhileInteracting(){return this.updateWhileInteracting_}renderDeclutter(t){t.declutterTree||(t.declutterTree=new r(9)),this.getRenderer().renderDeclutter(t)}setRenderOrder(t){this.set(L,t)}setStyle(t){let e;if(void 0===t)e=o.d1;else if(null===t)e=null;else if("function"==typeof t)e=t;else if(t instanceof o.Ay)e=t;else if(Array.isArray(t)){const n=t.length,i=new Array(n);for(let e=0;e<n;++e){const n=t[e];n instanceof o.Ay?i[e]=n:i[e]=A(n)}e=i}else e=A(t);this.style_=e,this.styleFunction_=null===t?void 0:(0,o.mC)(this.style_),this.changed()}}const P=D,R={BEGIN_GEOMETRY:0,BEGIN_PATH:1,CIRCLE:2,CLOSE_PATH:3,CUSTOM:4,DRAW_CHARS:5,DRAW_IMAGE:6,END_GEOMETRY:7,FILL:8,MOVE_TO_LINE_TO:9,SET_FILL_STYLE:10,SET_STROKE_STYLE:11,STROKE:12},O=[R.FILL],N=[R.STROKE],F=[R.BEGIN_PATH],B=[R.CLOSE_PATH],z=R;var G=n(6845),V=n(5473),j=n(154),H=n(4320),W=n(1763),U=n(9783),q=n(2280);class X extends V.A{constructor(t,e,n,i){super(),this.tolerance=t,this.maxExtent=e,this.pixelRatio=i,this.maxLineWidth=0,this.resolution=n,this.beginGeometryInstruction1_=null,this.beginGeometryInstruction2_=null,this.bufferedMaxExtent_=null,this.instructions=[],this.coordinates=[],this.tmpCoordinate_=[],this.hitDetectionInstructions=[],this.state={}}applyPixelRatio(t){const e=this.pixelRatio;return 1==e?t:t.map((function(t){return t*e}))}appendFlatPointCoordinates(t,e){const n=this.getBufferedMaxExtent(),i=this.tmpCoordinate_,r=this.coordinates;let o=r.length;for(let a=0,s=t.length;a<s;a+=e)i[0]=t[a],i[1]=t[a+1],(0,H.Ym)(n,i)&&(r[o++]=i[0],r[o++]=i[1]);return o}appendFlatLineCoordinates(t,e,n,i,r,o){const a=this.coordinates;let s=a.length;const l=this.getBufferedMaxExtent();o&&(e+=i);let h=t[e],c=t[e+1];const u=this.tmpCoordinate_;let d,p,f,g=!0;for(d=e+i;d<n;d+=i)u[0]=t[d],u[1]=t[d+1],f=(0,H.vz)(l,u),f!==p?(g&&(a[s++]=h,a[s++]=c,g=!1),a[s++]=u[0],a[s++]=u[1]):f===G.A.INTERSECTING?(a[s++]=u[0],a[s++]=u[1],g=!1):g=!0,h=u[0],c=u[1],p=f;return(r&&g||d===e+i)&&(a[s++]=h,a[s++]=c),s}drawCustomCoordinates_(t,e,n,i,r){for(let o=0,a=n.length;o<a;++o){const a=n[o],s=this.appendFlatLineCoordinates(t,e,a,i,!1,!1);r.push(s),e=a}return e}drawCustom(t,e,n,i){this.beginGeometry(t,e);const r=t.getType(),o=t.getStride(),a=this.coordinates.length;let s,l,h,c,u;switch(r){case"MultiPolygon":s=t.getOrientedFlatCoordinates(),c=[];const e=t.getEndss();u=0;for(let t=0,n=e.length;t<n;++t){const n=[];u=this.drawCustomCoordinates_(s,u,e[t],o,n),c.push(n)}this.instructions.push([z.CUSTOM,a,c,t,n,q.Dz]),this.hitDetectionInstructions.push([z.CUSTOM,a,c,t,i||n,q.Dz]);break;case"Polygon":case"MultiLineString":h=[],s="Polygon"==r?t.getOrientedFlatCoordinates():t.getFlatCoordinates(),u=this.drawCustomCoordinates_(s,0,t.getEnds(),o,h),this.instructions.push([z.CUSTOM,a,h,t,n,q.cD]),this.hitDetectionInstructions.push([z.CUSTOM,a,h,t,i||n,q.cD]);break;case"LineString":case"Circle":s=t.getFlatCoordinates(),l=this.appendFlatLineCoordinates(s,0,s.length,o,!1,!1),this.instructions.push([z.CUSTOM,a,l,t,n,q.n2]),this.hitDetectionInstructions.push([z.CUSTOM,a,l,t,i||n,q.n2]);break;case"MultiPoint":s=t.getFlatCoordinates(),l=this.appendFlatPointCoordinates(s,o),l>a&&(this.instructions.push([z.CUSTOM,a,l,t,n,q.n2]),this.hitDetectionInstructions.push([z.CUSTOM,a,l,t,i||n,q.n2]));break;case"Point":s=t.getFlatCoordinates(),this.coordinates.push(s[0],s[1]),l=this.coordinates.length,this.instructions.push([z.CUSTOM,a,l,t,n]),this.hitDetectionInstructions.push([z.CUSTOM,a,l,t,i||n])}this.endGeometry(e)}beginGeometry(t,e){this.beginGeometryInstruction1_=[z.BEGIN_GEOMETRY,e,0,t],this.instructions.push(this.beginGeometryInstruction1_),this.beginGeometryInstruction2_=[z.BEGIN_GEOMETRY,e,0,t],this.hitDetectionInstructions.push(this.beginGeometryInstruction2_)}finish(){return{instructions:this.instructions,hitDetectionInstructions:this.hitDetectionInstructions,coordinates:this.coordinates}}reverseHitDetectionInstructions(){const t=this.hitDetectionInstructions;let e;t.reverse();const n=t.length;let i,r,o=-1;for(e=0;e<n;++e)i=t[e],r=i[0],r==z.END_GEOMETRY?o=e:r==z.BEGIN_GEOMETRY&&(i[2]=e,(0,U.gI)(this.hitDetectionInstructions,o,e),o=-1)}setFillStrokeStyle(t,e){const n=this.state;if(t){const e=t.getColor();n.fillStyle=(0,j.F)(e||W.qY)}else n.fillStyle=void 0;if(e){const t=e.getColor();n.strokeStyle=(0,j.F)(t||W.NT);const i=e.getLineCap();n.lineCap=void 0!==i?i:W._m;const r=e.getLineDash();n.lineDash=r?r.slice():W.Oq;const o=e.getLineDashOffset();n.lineDashOffset=o||W.vk;const a=e.getLineJoin();n.lineJoin=void 0!==a?a:W._K;const s=e.getWidth();n.lineWidth=void 0!==s?s:W.aq;const l=e.getMiterLimit();n.miterLimit=void 0!==l?l:W.eL,n.lineWidth>this.maxLineWidth&&(this.maxLineWidth=n.lineWidth,this.bufferedMaxExtent_=null)}else n.strokeStyle=void 0,n.lineCap=void 0,n.lineDash=null,n.lineDashOffset=void 0,n.lineJoin=void 0,n.lineWidth=void 0,n.miterLimit=void 0}createFill(t){const e=t.fillStyle,n=[z.SET_FILL_STYLE,e];return"string"!=typeof e&&n.push(!0),n}applyStroke(t){this.instructions.push(this.createStroke(t))}createStroke(t){return[z.SET_STROKE_STYLE,t.strokeStyle,t.lineWidth*this.pixelRatio,t.lineCap,t.lineJoin,t.miterLimit,this.applyPixelRatio(t.lineDash),t.lineDashOffset*this.pixelRatio]}updateFillStyle(t,e){const n=t.fillStyle;"string"==typeof n&&t.currentFillStyle==n||(void 0!==n&&this.instructions.push(e.call(this,t)),t.currentFillStyle=n)}updateStrokeStyle(t,e){const n=t.strokeStyle,i=t.lineCap,r=t.lineDash,o=t.lineDashOffset,a=t.lineJoin,s=t.lineWidth,l=t.miterLimit;(t.currentStrokeStyle!=n||t.currentLineCap!=i||r!=t.currentLineDash&&!(0,U.aI)(t.currentLineDash,r)||t.currentLineDashOffset!=o||t.currentLineJoin!=a||t.currentLineWidth!=s||t.currentMiterLimit!=l)&&(void 0!==n&&e.call(this,t),t.currentStrokeStyle=n,t.currentLineCap=i,t.currentLineDash=r,t.currentLineDashOffset=o,t.currentLineJoin=a,t.currentLineWidth=s,t.currentMiterLimit=l)}endGeometry(t){this.beginGeometryInstruction1_[2]=this.instructions.length,this.beginGeometryInstruction1_=null,this.beginGeometryInstruction2_[2]=this.hitDetectionInstructions.length,this.beginGeometryInstruction2_=null;const e=[z.END_GEOMETRY,t];this.instructions.push(e),this.hitDetectionInstructions.push(e)}getBufferedMaxExtent(){if(!this.bufferedMaxExtent_&&(this.bufferedMaxExtent_=(0,H.o8)(this.maxExtent),this.maxLineWidth>0)){const t=this.resolution*(this.maxLineWidth+1)/2;(0,H.r)(this.bufferedMaxExtent_,t,this.bufferedMaxExtent_)}return this.bufferedMaxExtent_}}const Y=X;const Z=class extends Y{constructor(t,e,n,i){super(t,e,n,i),this.hitDetectionImage_=null,this.image_=null,this.imagePixelRatio_=void 0,this.anchorX_=void 0,this.anchorY_=void 0,this.height_=void 0,this.opacity_=void 0,this.originX_=void 0,this.originY_=void 0,this.rotateWithView_=void 0,this.rotation_=void 0,this.scale_=void 0,this.width_=void 0,this.declutterMode_=void 0,this.declutterImageWithText_=void 0}drawPoint(t,e){if(!this.image_)return;this.beginGeometry(t,e);const n=t.getFlatCoordinates(),i=t.getStride(),r=this.coordinates.length,o=this.appendFlatPointCoordinates(n,i);this.instructions.push([z.DRAW_IMAGE,r,o,this.image_,this.anchorX_*this.imagePixelRatio_,this.anchorY_*this.imagePixelRatio_,Math.ceil(this.height_*this.imagePixelRatio_),this.opacity_,this.originX_*this.imagePixelRatio_,this.originY_*this.imagePixelRatio_,this.rotateWithView_,this.rotation_,[this.scale_[0]*this.pixelRatio/this.imagePixelRatio_,this.scale_[1]*this.pixelRatio/this.imagePixelRatio_],Math.ceil(this.width_*this.imagePixelRatio_),this.declutterMode_,this.declutterImageWithText_]),this.hitDetectionInstructions.push([z.DRAW_IMAGE,r,o,this.hitDetectionImage_,this.anchorX_,this.anchorY_,this.height_,1,this.originX_,this.originY_,this.rotateWithView_,this.rotation_,this.scale_,this.width_,this.declutterMode_,this.declutterImageWithText_]),this.endGeometry(e)}drawMultiPoint(t,e){if(!this.image_)return;this.beginGeometry(t,e);const n=t.getFlatCoordinates(),i=t.getStride(),r=this.coordinates.length,o=this.appendFlatPointCoordinates(n,i);this.instructions.push([z.DRAW_IMAGE,r,o,this.image_,this.anchorX_*this.imagePixelRatio_,this.anchorY_*this.imagePixelRatio_,Math.ceil(this.height_*this.imagePixelRatio_),this.opacity_,this.originX_*this.imagePixelRatio_,this.originY_*this.imagePixelRatio_,this.rotateWithView_,this.rotation_,[this.scale_[0]*this.pixelRatio/this.imagePixelRatio_,this.scale_[1]*this.pixelRatio/this.imagePixelRatio_],Math.ceil(this.width_*this.imagePixelRatio_),this.declutterMode_,this.declutterImageWithText_]),this.hitDetectionInstructions.push([z.DRAW_IMAGE,r,o,this.hitDetectionImage_,this.anchorX_,this.anchorY_,this.height_,1,this.originX_,this.originY_,this.rotateWithView_,this.rotation_,this.scale_,this.width_,this.declutterMode_,this.declutterImageWithText_]),this.endGeometry(e)}finish(){return this.reverseHitDetectionInstructions(),this.anchorX_=void 0,this.anchorY_=void 0,this.hitDetectionImage_=null,this.image_=null,this.imagePixelRatio_=void 0,this.height_=void 0,this.scale_=void 0,this.opacity_=void 0,this.originX_=void 0,this.originY_=void 0,this.rotateWithView_=void 0,this.rotation_=void 0,this.width_=void 0,super.finish()}setImageStyle(t,e){const n=t.getAnchor(),i=t.getSize(),r=t.getOrigin();this.imagePixelRatio_=t.getPixelRatio(this.pixelRatio),this.anchorX_=n[0],this.anchorY_=n[1],this.hitDetectionImage_=t.getHitDetectionImage(),this.image_=t.getImage(this.pixelRatio),this.height_=i[1],this.opacity_=t.getOpacity(),this.originX_=r[0],this.originY_=r[1],this.rotateWithView_=t.getRotateWithView(),this.rotation_=t.getRotation(),this.scale_=t.getScaleArray(),this.width_=i[0],this.declutterMode_=t.getDeclutterMode(),this.declutterImageWithText_=e}};const $=class extends Y{constructor(t,e,n,i){super(t,e,n,i)}drawFlatCoordinates_(t,e,n,i){const r=this.coordinates.length,o=this.appendFlatLineCoordinates(t,e,n,i,!1,!1),a=[z.MOVE_TO_LINE_TO,r,o];return this.instructions.push(a),this.hitDetectionInstructions.push(a),n}drawLineString(t,e){const n=this.state,i=n.strokeStyle,r=n.lineWidth;if(void 0===i||void 0===r)return;this.updateStrokeStyle(n,this.applyStroke),this.beginGeometry(t,e),this.hitDetectionInstructions.push([z.SET_STROKE_STYLE,n.strokeStyle,n.lineWidth,n.lineCap,n.lineJoin,n.miterLimit,W.Oq,W.vk],F);const o=t.getFlatCoordinates(),a=t.getStride();this.drawFlatCoordinates_(o,0,o.length,a),this.hitDetectionInstructions.push(N),this.endGeometry(e)}drawMultiLineString(t,e){const n=this.state,i=n.strokeStyle,r=n.lineWidth;if(void 0===i||void 0===r)return;this.updateStrokeStyle(n,this.applyStroke),this.beginGeometry(t,e),this.hitDetectionInstructions.push([z.SET_STROKE_STYLE,n.strokeStyle,n.lineWidth,n.lineCap,n.lineJoin,n.miterLimit,W.Oq,W.vk],F);const o=t.getEnds(),a=t.getFlatCoordinates(),s=t.getStride();let l=0;for(let h=0,c=o.length;h<c;++h)l=this.drawFlatCoordinates_(a,l,o[h],s);this.hitDetectionInstructions.push(N),this.endGeometry(e)}finish(){const t=this.state;return null!=t.lastStroke&&t.lastStroke!=this.coordinates.length&&this.instructions.push(N),this.reverseHitDetectionInstructions(),this.state=null,super.finish()}applyStroke(t){null!=t.lastStroke&&t.lastStroke!=this.coordinates.length&&(this.instructions.push(N),t.lastStroke=this.coordinates.length),t.lastStroke=0,super.applyStroke(t),this.instructions.push(F)}};var K=n(5028);const J=class extends Y{constructor(t,e,n,i){super(t,e,n,i)}drawFlatCoordinatess_(t,e,n,i){const r=this.state,o=void 0!==r.fillStyle,a=void 0!==r.strokeStyle,s=n.length;this.instructions.push(F),this.hitDetectionInstructions.push(F);for(let l=0;l<s;++l){const r=n[l],o=this.coordinates.length,s=this.appendFlatLineCoordinates(t,e,r,i,!0,!a),h=[z.MOVE_TO_LINE_TO,o,s];this.instructions.push(h),this.hitDetectionInstructions.push(h),a&&(this.instructions.push(B),this.hitDetectionInstructions.push(B)),e=r}return o&&(this.instructions.push(O),this.hitDetectionInstructions.push(O)),a&&(this.instructions.push(N),this.hitDetectionInstructions.push(N)),e}drawCircle(t,e){const n=this.state,i=n.fillStyle,r=n.strokeStyle;if(void 0===i&&void 0===r)return;this.setFillStrokeStyles_(),this.beginGeometry(t,e),void 0!==n.fillStyle&&this.hitDetectionInstructions.push([z.SET_FILL_STYLE,W.qY]),void 0!==n.strokeStyle&&this.hitDetectionInstructions.push([z.SET_STROKE_STYLE,n.strokeStyle,n.lineWidth,n.lineCap,n.lineJoin,n.miterLimit,W.Oq,W.vk]);const o=t.getFlatCoordinates(),a=t.getStride(),s=this.coordinates.length;this.appendFlatLineCoordinates(o,0,o.length,a,!1,!1);const l=[z.CIRCLE,s];this.instructions.push(F,l),this.hitDetectionInstructions.push(F,l),void 0!==n.fillStyle&&(this.instructions.push(O),this.hitDetectionInstructions.push(O)),void 0!==n.strokeStyle&&(this.instructions.push(N),this.hitDetectionInstructions.push(N)),this.endGeometry(e)}drawPolygon(t,e){const n=this.state,i=n.fillStyle,r=n.strokeStyle;if(void 0===i&&void 0===r)return;this.setFillStrokeStyles_(),this.beginGeometry(t,e),void 0!==n.fillStyle&&this.hitDetectionInstructions.push([z.SET_FILL_STYLE,W.qY]),void 0!==n.strokeStyle&&this.hitDetectionInstructions.push([z.SET_STROKE_STYLE,n.strokeStyle,n.lineWidth,n.lineCap,n.lineJoin,n.miterLimit,W.Oq,W.vk]);const o=t.getEnds(),a=t.getOrientedFlatCoordinates(),s=t.getStride();this.drawFlatCoordinatess_(a,0,o,s),this.endGeometry(e)}drawMultiPolygon(t,e){const n=this.state,i=n.fillStyle,r=n.strokeStyle;if(void 0===i&&void 0===r)return;this.setFillStrokeStyles_(),this.beginGeometry(t,e),void 0!==n.fillStyle&&this.hitDetectionInstructions.push([z.SET_FILL_STYLE,W.qY]),void 0!==n.strokeStyle&&this.hitDetectionInstructions.push([z.SET_STROKE_STYLE,n.strokeStyle,n.lineWidth,n.lineCap,n.lineJoin,n.miterLimit,W.Oq,W.vk]);const o=t.getEndss(),a=t.getOrientedFlatCoordinates(),s=t.getStride();let l=0;for(let h=0,c=o.length;h<c;++h)l=this.drawFlatCoordinatess_(a,l,o[h],s);this.endGeometry(e)}finish(){this.reverseHitDetectionInstructions(),this.state=null;const t=this.tolerance;if(0!==t){const e=this.coordinates;for(let n=0,i=e.length;n<i;++n)e[n]=(0,K.n$)(e[n],t)}return super.finish()}setFillStrokeStyles_(){const t=this.state;void 0!==t.fillStyle&&this.updateFillStyle(t,this.createFill),void 0!==t.strokeStyle&&this.updateStrokeStyle(t,this.applyStroke)}};var Q=n(2878);function tt(t,e,n,i,r){const o=[];let a=n,s=0,l=e.slice(n,2);for(;s<t&&a+r<i;){const[n,i]=l.slice(-2),h=e[a+r],c=e[a+r+1],u=Math.sqrt((h-n)*(h-n)+(c-i)*(c-i));if(s+=u,s>=t){const e=(t-s+u)/u,d=(0,Q.Cc)(n,h,e),p=(0,Q.Cc)(i,c,e);l.push(d,p),o.push(l),l=[d,p],s==t&&(a+=r),s=0}else if(s<t)l.push(e[a+r],e[a+r+1]),a+=r;else{const t=u-s,e=(0,Q.Cc)(n,h,t/u),d=(0,Q.Cc)(i,c,t/u);l.push(e,d),o.push(l),l=[e,d],s=0,a+=r}}return s>0&&o.push(l),o}function et(t,e,n,i,r){let o,a,s,l,h,c,u,d,p,f,g=n,m=n,v=0,y=0,_=n;for(a=n;a<i;a+=r){const n=e[a],i=e[a+1];void 0!==h&&(p=n-h,f=i-c,l=Math.sqrt(p*p+f*f),void 0!==u&&(y+=s,o=Math.acos((u*p+d*f)/(s*l)),o>t&&(y>v&&(v=y,g=_,m=a),y=0,_=a-r)),s=l,u=p,d=f),h=n,c=i}return y+=l,y>v?[_,a]:[g,m]}const nt={left:0,center:.5,right:1,top:0,middle:.5,hanging:.2,alphabetic:.8,ideographic:.8,bottom:1};const it=class extends Y{constructor(t,e,n,i){super(t,e,n,i),this.labels_=null,this.text_="",this.textOffsetX_=0,this.textOffsetY_=0,this.textRotateWithView_=void 0,this.textRotation_=0,this.textFillState_=null,this.fillStates={},this.fillStates[W.qY]={fillStyle:W.qY},this.textStrokeState_=null,this.strokeStates={},this.textState_={},this.textStates={},this.textKey_="",this.fillKey_="",this.strokeKey_="",this.declutterImageWithText_=void 0}finish(){const t=super.finish();return t.textStates=this.textStates,t.fillStates=this.fillStates,t.strokeStates=this.strokeStates,t}drawText(t,e){const n=this.textFillState_,i=this.textStrokeState_,r=this.textState_;if(""===this.text_||!r||!n&&!i)return;const o=this.coordinates;let a=o.length;const s=t.getType();let l=null,h=t.getStride();if("line"!==r.placement||"LineString"!=s&&"MultiLineString"!=s&&"Polygon"!=s&&"MultiPolygon"!=s){let n=r.overflow?null:[];switch(s){case"Point":case"MultiPoint":l=t.getFlatCoordinates();break;case"LineString":l=t.getFlatMidpoint();break;case"Circle":l=t.getCenter();break;case"MultiLineString":l=t.getFlatMidpoints(),h=2;break;case"Polygon":l=t.getFlatInteriorPoint(),r.overflow||n.push(l[2]/this.resolution),h=3;break;case"MultiPolygon":const e=t.getFlatInteriorPoints();l=[];for(let t=0,i=e.length;t<i;t+=3)r.overflow||n.push(e[t+2]/this.resolution),l.push(e[t],e[t+1]);if(0===l.length)return;h=2}const i=this.appendFlatPointCoordinates(l,h);if(i===a)return;if(n&&(i-a)/2!=l.length/h){let t=a/2;n=n.filter(((e,n)=>{const i=o[2*(t+n)]===l[n*h]&&o[2*(t+n)+1]===l[n*h+1];return i||--t,i}))}this.saveTextStates_(),(r.backgroundFill||r.backgroundStroke)&&(this.setFillStrokeStyle(r.backgroundFill,r.backgroundStroke),r.backgroundFill&&this.updateFillStyle(this.state,this.createFill),r.backgroundStroke&&(this.updateStrokeStyle(this.state,this.applyStroke),this.hitDetectionInstructions.push(this.createStroke(this.state)))),this.beginGeometry(t,e);let c=r.padding;if(c!=W.Tq&&(r.scale[0]<0||r.scale[1]<0)){let t=r.padding[0],e=r.padding[1],n=r.padding[2],i=r.padding[3];r.scale[0]<0&&(e=-e,i=-i),r.scale[1]<0&&(t=-t,n=-n),c=[t,e,n,i]}const u=this.pixelRatio;this.instructions.push([z.DRAW_IMAGE,a,i,null,NaN,NaN,NaN,1,0,0,this.textRotateWithView_,this.textRotation_,[1,1],NaN,void 0,this.declutterImageWithText_,c==W.Tq?W.Tq:c.map((function(t){return t*u})),!!r.backgroundFill,!!r.backgroundStroke,this.text_,this.textKey_,this.strokeKey_,this.fillKey_,this.textOffsetX_,this.textOffsetY_,n]);const d=1/u,p=this.state.fillStyle;r.backgroundFill&&(this.state.fillStyle=W.qY,this.hitDetectionInstructions.push(this.createFill(this.state))),this.hitDetectionInstructions.push([z.DRAW_IMAGE,a,i,null,NaN,NaN,NaN,1,0,0,this.textRotateWithView_,this.textRotation_,[d,d],NaN,void 0,this.declutterImageWithText_,c,!!r.backgroundFill,!!r.backgroundStroke,this.text_,this.textKey_,this.strokeKey_,this.fillKey_?W.qY:this.fillKey_,this.textOffsetX_,this.textOffsetY_,n]),r.backgroundFill&&(this.state.fillStyle=p,this.hitDetectionInstructions.push(this.createFill(this.state))),this.endGeometry(e)}else{if(!(0,H.HY)(this.getBufferedMaxExtent(),t.getExtent()))return;let n;if(l=t.getFlatCoordinates(),"LineString"==s)n=[l.length];else if("MultiLineString"==s)n=t.getEnds();else if("Polygon"==s)n=t.getEnds().slice(0,1);else if("MultiPolygon"==s){const e=t.getEndss();n=[];for(let t=0,i=e.length;t<i;++t)n.push(e[t][0])}this.beginGeometry(t,e);const i=r.repeat,c=i?void 0:r.textAlign;let u=0;for(let t=0,e=n.length;t<e;++t){let e;e=i?tt(i*this.resolution,l,u,n[t],h):[l.slice(u,n[t])];for(let i=0,s=e.length;i<s;++i){const s=e[i];let l=0,d=s.length;if(null==c){const t=et(r.maxAngle,s,0,s.length,2);l=t[0],d=t[1]}for(let t=l;t<d;t+=h)o.push(s[t],s[t+1]);const p=o.length;u=n[t],this.drawChars_(a,p),a=p}}this.endGeometry(e)}}saveTextStates_(){const t=this.textStrokeState_,e=this.textState_,n=this.textFillState_,i=this.strokeKey_;t&&(i in this.strokeStates||(this.strokeStates[i]={strokeStyle:t.strokeStyle,lineCap:t.lineCap,lineDashOffset:t.lineDashOffset,lineWidth:t.lineWidth,lineJoin:t.lineJoin,miterLimit:t.miterLimit,lineDash:t.lineDash}));const r=this.textKey_;r in this.textStates||(this.textStates[r]={font:e.font,textAlign:e.textAlign||W.MY,justify:e.justify,textBaseline:e.textBaseline||W.M8,scale:e.scale});const o=this.fillKey_;n&&(o in this.fillStates||(this.fillStates[o]={fillStyle:n.fillStyle}))}drawChars_(t,e){const n=this.textStrokeState_,i=this.textState_,r=this.strokeKey_,o=this.textKey_,a=this.fillKey_;this.saveTextStates_();const s=this.pixelRatio,l=nt[i.textBaseline],h=this.textOffsetY_*s,c=this.text_,u=n?n.lineWidth*Math.abs(i.scale[0])/2:0;this.instructions.push([z.DRAW_CHARS,t,e,l,i.overflow,a,i.maxAngle,s,h,r,u*s,c,o,1]),this.hitDetectionInstructions.push([z.DRAW_CHARS,t,e,l,i.overflow,a?W.qY:a,i.maxAngle,1,h,r,u,c,o,1/s])}setTextStyle(t,e){let n,i,r;if(t){const e=t.getFill();e?(i=this.textFillState_,i||(i={},this.textFillState_=i),i.fillStyle=(0,j.F)(e.getColor()||W.qY)):(i=null,this.textFillState_=i);const o=t.getStroke();if(o){r=this.textStrokeState_,r||(r={},this.textStrokeState_=r);const t=o.getLineDash(),e=o.getLineDashOffset(),n=o.getWidth(),i=o.getMiterLimit();r.lineCap=o.getLineCap()||W._m,r.lineDash=t?t.slice():W.Oq,r.lineDashOffset=void 0===e?W.vk:e,r.lineJoin=o.getLineJoin()||W._K,r.lineWidth=void 0===n?W.aq:n,r.miterLimit=void 0===i?W.eL:i,r.strokeStyle=(0,j.F)(o.getColor()||W.NT)}else r=null,this.textStrokeState_=r;n=this.textState_;const a=t.getFont()||W.ZV;(0,W.fZ)(a);const s=t.getScaleArray();n.overflow=t.getOverflow(),n.font=a,n.maxAngle=t.getMaxAngle(),n.placement=t.getPlacement(),n.textAlign=t.getTextAlign(),n.repeat=t.getRepeat(),n.justify=t.getJustify(),n.textBaseline=t.getTextBaseline()||W.M8,n.backgroundFill=t.getBackgroundFill(),n.backgroundStroke=t.getBackgroundStroke(),n.padding=t.getPadding()||W.Tq,n.scale=void 0===s?[1,1]:s;const l=t.getOffsetX(),h=t.getOffsetY(),c=t.getRotateWithView(),u=t.getRotation();this.text_=t.getText()||"",this.textOffsetX_=void 0===l?0:l,this.textOffsetY_=void 0===h?0:h,this.textRotateWithView_=void 0!==c&&c,this.textRotation_=void 0===u?0:u,this.strokeKey_=r?("string"==typeof r.strokeStyle?r.strokeStyle:(0,_.v6)(r.strokeStyle))+r.lineCap+r.lineDashOffset+"|"+r.lineWidth+r.lineJoin+r.miterLimit+"["+r.lineDash.join()+"]":"",this.textKey_=n.font+n.scale+(n.textAlign||"?")+(n.repeat||"?")+(n.justify||"?")+(n.textBaseline||"?"),this.fillKey_=i?"string"==typeof i.fillStyle?i.fillStyle:"|"+(0,_.v6)(i.fillStyle):""}else this.text_="";this.declutterImageWithText_=e}},rt={Circle:J,Default:Y,Image:Z,LineString:$,Polygon:J,Text:it};const ot=class{constructor(t,e,n,i){this.tolerance_=t,this.maxExtent_=e,this.pixelRatio_=i,this.resolution_=n,this.buildersByZIndex_={}}finish(){const t={};for(const e in this.buildersByZIndex_){t[e]=t[e]||{};const n=this.buildersByZIndex_[e];for(const i in n){const r=n[i].finish();t[e][i]=r}}return t}getBuilder(t,e){const n=void 0!==t?t.toString():"0";let i=this.buildersByZIndex_[n];void 0===i&&(i={},this.buildersByZIndex_[n]=i);let r=i[e];if(void 0===r){r=new(0,rt[e])(this.tolerance_,this.maxExtent_,this.resolution_,this.pixelRatio_),i[e]=r}return r}};var at=n(6627),st=n(686),lt=n(5415);function ht(t,e,n,i,r,o,a,s,l,h,c,u){let d=t[e],p=t[e+1],f=0,g=0,m=0,v=0;function y(){f=d,g=p,d=t[e+=i],p=t[e+1],v+=m,m=Math.sqrt((d-f)*(d-f)+(p-g)*(p-g))}do{y()}while(e<n-i&&v+m<o);let _=0===m?0:(o-v)/m;const x=(0,Q.Cc)(f,d,_),b=(0,Q.Cc)(g,p,_),w=e-i,S=v,T=o+s*l(h,r,c);for(;e<n-i&&v+m<T;)y();_=0===m?0:(T-v)/m;const M=(0,Q.Cc)(f,d,_),A=(0,Q.Cc)(g,p,_);let C;if(u){const t=[x,b,M,A];(0,lt.e$)(t,0,4,2,u,t,t),C=t[0]>t[2]}else C=x>M;const I=Math.PI,E=[],k=w+i===e;let L;if(m=0,v=S,d=t[e=w],p=t[e+1],k){y(),L=Math.atan2(p-g,d-f),C&&(L+=L>0?-I:I);const t=(M+x)/2,e=(A+b)/2;return E[0]=[t,e,(T-o)/2,L,r],E}for(let D=0,P=(r=r.replace(/\n/g," ")).length;D<P;){y();let t=Math.atan2(p-g,d-f);if(C&&(t+=t>0?-I:I),void 0!==L){let e=t-L;if(e+=e>I?-2*I:e<-I?2*I:0,Math.abs(e)>a)return null}L=t;const u=D;let x=0;for(;D<P;++D){const t=s*l(h,r[C?P-D-1:D],c);if(e+i<n&&v+m<o+x+t/2)break;x+=t}if(D===u)continue;const b=C?r.substring(P-u,P-D):r.substring(u,D);_=0===m?0:(o+x/2-v)/m;const w=(0,Q.Cc)(f,d,_),S=(0,Q.Cc)(g,p,_);E.push([w,S,x/2,t,b]),o+=x}return E}var ct=n(7175);const ut=(0,H.S5)(),dt=[],pt=[],ft=[],gt=[];function mt(t){return t[3].declutterBox}const vt=new RegExp("["+String.fromCharCode(1425)+"-"+String.fromCharCode(2303)+String.fromCharCode(64285)+"-"+String.fromCharCode(65023)+String.fromCharCode(65136)+"-"+String.fromCharCode(65276)+String.fromCharCode(67584)+"-"+String.fromCharCode(69631)+String.fromCharCode(124928)+"-"+String.fromCharCode(126975)+"]");function yt(t,e){return"start"===e?e=vt.test(t)?"right":"left":"end"===e&&(e=vt.test(t)?"left":"right"),nt[e]}function _t(t,e,n){return n>0&&t.push("\n",""),t.push(e,""),t}const xt=class{constructor(t,e,n,i){this.overlaps=n,this.pixelRatio=e,this.resolution=t,this.alignFill_,this.instructions=i.instructions,this.coordinates=i.coordinates,this.coordinateCache_={},this.renderedTransform_=(0,st.vt)(),this.hitDetectionInstructions=i.hitDetectionInstructions,this.pixelCoordinates_=null,this.viewRotation_=0,this.fillStates=i.fillStates||{},this.strokeStates=i.strokeStates||{},this.textStates=i.textStates||{},this.widths_={},this.labels_={}}createLabel(t,e,n,i){const r=t+e+n+i;if(this.labels_[r])return this.labels_[r];const o=i?this.strokeStates[i]:null,a=n?this.fillStates[n]:null,s=this.textStates[e],l=this.pixelRatio,h=[s.scale[0]*l,s.scale[1]*l],c=Array.isArray(t),u=s.justify?nt[s.justify]:yt(Array.isArray(t)?t[0]:t,s.textAlign||W.MY),d=i&&o.lineWidth?o.lineWidth:0,p=c?t:t.split("\n").reduce(_t,[]),{width:f,height:g,widths:m,heights:v,lineWidths:y}=(0,W.jT)(s,p),_=f+d,x=[],b=(_+2)*h[0],w=(g+d)*h[1],S={width:b<0?Math.floor(b):Math.ceil(b),height:w<0?Math.floor(w):Math.ceil(w),contextInstructions:x};1==h[0]&&1==h[1]||x.push("scale",h),i&&(x.push("strokeStyle",o.strokeStyle),x.push("lineWidth",d),x.push("lineCap",o.lineCap),x.push("lineJoin",o.lineJoin),x.push("miterLimit",o.miterLimit),x.push("setLineDash",[o.lineDash]),x.push("lineDashOffset",o.lineDashOffset)),n&&x.push("fillStyle",a.fillStyle),x.push("textBaseline","middle"),x.push("textAlign","center");const T=.5-u;let M=u*_+T*d;const A=[],C=[];let I,E=0,k=0,L=0,D=0;for(let P=0,R=p.length;P<R;P+=2){const t=p[P];if("\n"===t){k+=E,E=0,M=u*_+T*d,++D;continue}const e=p[P+1]||s.font;e!==I&&(i&&A.push("font",e),n&&C.push("font",e),I=e),E=Math.max(E,v[L]);const r=[t,M+T*m[L]+u*(m[L]-y[D]),.5*(d+E)+k];M+=m[L],i&&A.push("strokeText",r),n&&C.push("fillText",r),++L}return Array.prototype.push.apply(x,A),Array.prototype.push.apply(x,C),this.labels_[r]=S,S}replayTextBackground_(t,e,n,i,r,o,a){t.beginPath(),t.moveTo.apply(t,e),t.lineTo.apply(t,n),t.lineTo.apply(t,i),t.lineTo.apply(t,r),t.lineTo.apply(t,e),o&&(this.alignFill_=o[2],this.fill_(t)),a&&(this.setStrokeStyle_(t,a),t.stroke())}calculateImageOrLabelDimensions_(t,e,n,i,r,o,a,s,l,h,c,u,d,p,f,g){let m=n-(a*=u[0]),v=i-(s*=u[1]);const y=r+l>t?t-l:r,_=o+h>e?e-h:o,x=p[3]+y*u[0]+p[1],b=p[0]+_*u[1]+p[2],w=m-p[3],S=v-p[0];let T;return(f||0!==c)&&(dt[0]=w,gt[0]=w,dt[1]=S,pt[1]=S,pt[0]=w+x,ft[0]=pt[0],ft[1]=S+b,gt[1]=ft[1]),0!==c?(T=(0,st.Zz)((0,st.vt)(),n,i,1,1,c,-n,-i),(0,st.Bb)(T,dt),(0,st.Bb)(T,pt),(0,st.Bb)(T,ft),(0,st.Bb)(T,gt),(0,H.N)(Math.min(dt[0],pt[0],ft[0],gt[0]),Math.min(dt[1],pt[1],ft[1],gt[1]),Math.max(dt[0],pt[0],ft[0],gt[0]),Math.max(dt[1],pt[1],ft[1],gt[1]),ut)):(0,H.N)(Math.min(w,w+x),Math.min(S,S+b),Math.max(w,w+x),Math.max(S,S+b),ut),d&&(m=Math.round(m),v=Math.round(v)),{drawImageX:m,drawImageY:v,drawImageW:y,drawImageH:_,originX:l,originY:h,declutterBox:{minX:ut[0],minY:ut[1],maxX:ut[2],maxY:ut[3],value:g},canvasTransform:T,scale:u}}replayImageOrLabel_(t,e,n,i,r,o,a){const s=!(!o&&!a),l=i.declutterBox,h=t.canvas,c=a?a[2]*i.scale[0]/2:0;return l.minX-c<=h.width/e&&l.maxX+c>=0&&l.minY-c<=h.height/e&&l.maxY+c>=0&&(s&&this.replayTextBackground_(t,dt,pt,ft,gt,o,a),(0,W.Jw)(t,i.canvasTransform,r,n,i.originX,i.originY,i.drawImageW,i.drawImageH,i.drawImageX,i.drawImageY,i.scale)),!0}fill_(t){if(this.alignFill_){const e=(0,st.Bb)(this.renderedTransform_,[0,0]),n=512*this.pixelRatio;t.save(),t.translate(e[0]%n,e[1]%n),t.rotate(this.viewRotation_)}t.fill(),this.alignFill_&&t.restore()}setStrokeStyle_(t,e){t.strokeStyle=e[1],t.lineWidth=e[2],t.lineCap=e[3],t.lineJoin=e[4],t.miterLimit=e[5],t.lineDashOffset=e[7],t.setLineDash(e[6])}drawLabelWithPointPlacement_(t,e,n,i){const r=this.textStates[e],o=this.createLabel(t,e,i,n),a=this.strokeStates[n],s=this.pixelRatio,l=yt(Array.isArray(t)?t[0]:t,r.textAlign||W.MY),h=nt[r.textBaseline||W.M8],c=a&&a.lineWidth?a.lineWidth:0;return{label:o,anchorX:l*(o.width/s-2*r.scale[0])+2*(.5-l)*c,anchorY:h*o.height/s+2*(.5-h)*c}}execute_(t,e,n,i,r,o,a,s){let l;this.pixelCoordinates_&&(0,U.aI)(n,this.renderedTransform_)?l=this.pixelCoordinates_:(this.pixelCoordinates_||(this.pixelCoordinates_=[]),l=(0,lt.Rc)(this.coordinates,0,this.coordinates.length,2,n,this.pixelCoordinates_),(0,st.k3)(this.renderedTransform_,n));let h=0;const c=i.length;let u,d,p,f,g,m,v,y,_,x,b,w,S=0,T=0,M=0,A=null,C=null;const I=this.coordinateCache_,E=this.viewRotation_,k=Math.round(1e12*Math.atan2(-n[1],n[0]))/1e12,L={context:t,pixelRatio:this.pixelRatio,resolution:this.resolution,rotation:E},D=this.instructions!=i||this.overlaps?0:200;let P,R,O,N;for(;h<c;){const n=i[h];switch(n[0]){case z.BEGIN_GEOMETRY:P=n[1],N=n[3],P.getGeometry()?void 0===a||(0,H.HY)(a,N.getExtent())?++h:h=n[2]+1:h=n[2];break;case z.BEGIN_PATH:T>D&&(this.fill_(t),T=0),M>D&&(t.stroke(),M=0),T||M||(t.beginPath(),f=NaN,g=NaN),++h;break;case z.CIRCLE:S=n[1];const i=l[S],c=l[S+1],F=l[S+2]-i,B=l[S+3]-c,G=Math.sqrt(F*F+B*B);t.moveTo(i+G,c),t.arc(i,c,G,0,2*Math.PI,!0),++h;break;case z.CLOSE_PATH:t.closePath(),++h;break;case z.CUSTOM:S=n[1],u=n[2];const V=n[3],j=n[4],U=6==n.length?n[5]:void 0;L.geometry=V,L.feature=P,h in I||(I[h]=[]);const q=I[h];U?U(l,S,u,2,q):(q[0]=l[S],q[1]=l[S+1],q.length=2),j(q,L),++h;break;case z.DRAW_IMAGE:S=n[1],u=n[2],y=n[3],d=n[4],p=n[5];let X=n[6];const Y=n[7],Z=n[8],$=n[9],K=n[10];let J=n[11];const Q=n[12];let tt=n[13];const et=n[14],nt=n[15];if(!y&&n.length>=20){_=n[19],x=n[20],b=n[21],w=n[22];const t=this.drawLabelWithPointPlacement_(_,x,b,w);y=t.label,n[3]=y;const e=n[23];d=(t.anchorX-e)*this.pixelRatio,n[4]=d;const i=n[24];p=(t.anchorY-i)*this.pixelRatio,n[5]=p,X=y.height,n[6]=X,tt=y.width,n[13]=tt}let it,rt,ot,at;n.length>25&&(it=n[25]),n.length>17?(rt=n[16],ot=n[17],at=n[18]):(rt=W.Tq,ot=!1,at=!1),K&&k?J+=E:K||k||(J-=E);let st=0;for(;S<u;S+=2){if(it&&it[st++]<tt/this.pixelRatio)continue;const n=this.calculateImageOrLabelDimensions_(y.width,y.height,l[S],l[S+1],tt,X,d,p,Z,$,J,Q,r,rt,ot||at,P),i=[t,e,y,n,Y,ot?A:null,at?C:null];if(s){if("none"===et)continue;if("obstacle"===et){s.insert(n.declutterBox);continue}{let t,e;if(nt){const n=u-S;if(!nt[n]){nt[n]=i;continue}if(t=nt[n],delete nt[n],e=mt(t),s.collides(e))continue}if(s.collides(n.declutterBox))continue;t&&(s.insert(e),this.replayImageOrLabel_.apply(this,t)),s.insert(n.declutterBox)}}this.replayImageOrLabel_.apply(this,i)}++h;break;case z.DRAW_CHARS:const lt=n[1],ut=n[2],dt=n[3],pt=n[4];w=n[5];const ft=n[6],gt=n[7],vt=n[8];b=n[9];const _t=n[10];_=n[11],x=n[12];const xt=[n[13],n[13]],bt=this.textStates[x],wt=bt.font,St=[bt.scale[0]*gt,bt.scale[1]*gt];let Tt;wt in this.widths_?Tt=this.widths_[wt]:(Tt={},this.widths_[wt]=Tt);const Mt=(0,ct.k)(l,lt,ut,2),At=Math.abs(St[0])*(0,W.TA)(wt,_,Tt);if(pt||At<=Mt){const n=ht(l,lt,ut,2,_,(Mt-At)*yt(_,this.textStates[x].textAlign),ft,Math.abs(St[0]),W.TA,wt,Tt,k?0:this.viewRotation_);t:if(n){const i=[];let r,o,a,l,h;if(b)for(r=0,o=n.length;r<o;++r){h=n[r],a=h[4],l=this.createLabel(a,x,"",b),d=h[2]+(St[0]<0?-_t:_t),p=dt*l.height+2*(.5-dt)*_t*St[1]/St[0]-vt;const o=this.calculateImageOrLabelDimensions_(l.width,l.height,h[0],h[1],l.width,l.height,d,p,0,0,h[3],xt,!1,W.Tq,!1,P);if(s&&s.collides(o.declutterBox))break t;i.push([t,e,l,o,1,null,null])}if(w)for(r=0,o=n.length;r<o;++r){h=n[r],a=h[4],l=this.createLabel(a,x,w,""),d=h[2],p=dt*l.height-vt;const o=this.calculateImageOrLabelDimensions_(l.width,l.height,h[0],h[1],l.width,l.height,d,p,0,0,h[3],xt,!1,W.Tq,!1,P);if(s&&s.collides(o.declutterBox))break t;i.push([t,e,l,o,1,null,null])}s&&s.load(i.map(mt));for(let t=0,e=i.length;t<e;++t)this.replayImageOrLabel_.apply(this,i[t])}}++h;break;case z.END_GEOMETRY:if(void 0!==o){P=n[1];const t=o(P,N);if(t)return t}++h;break;case z.FILL:D?T++:this.fill_(t),++h;break;case z.MOVE_TO_LINE_TO:for(S=n[1],u=n[2],R=l[S],O=l[S+1],m=R+.5|0,v=O+.5|0,m===f&&v===g||(t.moveTo(R,O),f=m,g=v),S+=2;S<u;S+=2)R=l[S],O=l[S+1],m=R+.5|0,v=O+.5|0,S!=u-2&&m===f&&v===g||(t.lineTo(R,O),f=m,g=v);++h;break;case z.SET_FILL_STYLE:A=n,this.alignFill_=n[2],T&&(this.fill_(t),T=0,M&&(t.stroke(),M=0)),t.fillStyle=n[1],++h;break;case z.SET_STROKE_STYLE:C=n,M&&(t.stroke(),M=0),this.setStrokeStyle_(t,n),++h;break;case z.STROKE:D?M++:t.stroke(),++h;break;default:++h}}T&&this.fill_(t),M&&t.stroke()}execute(t,e,n,i,r,o){this.viewRotation_=i,this.execute_(t,e,n,this.instructions,r,void 0,void 0,o)}executeHitDetection(t,e,n,i,r){return this.viewRotation_=n,this.execute_(t,1,e,this.hitDetectionInstructions,!0,i,r)}};var bt=n(6943);const wt=["Polygon","Circle","LineString","Image","Text","Default"];const St={};const Tt=class{constructor(t,e,n,i,r,o){this.maxExtent_=t,this.overlaps_=i,this.pixelRatio_=n,this.resolution_=e,this.renderBuffer_=o,this.executorsByZIndex_={},this.hitDetectionContext_=null,this.hitDetectionTransform_=(0,st.vt)(),this.createExecutors_(r)}clip(t,e){const n=this.getClipCoords(e);t.beginPath(),t.moveTo(n[0],n[1]),t.lineTo(n[2],n[3]),t.lineTo(n[4],n[5]),t.lineTo(n[6],n[7]),t.clip()}createExecutors_(t){for(const e in t){let n=this.executorsByZIndex_[e];void 0===n&&(n={},this.executorsByZIndex_[e]=n);const i=t[e];for(const t in i){const e=i[t];n[t]=new xt(this.resolution_,this.pixelRatio_,this.overlaps_,e)}}}hasExecutors(t){for(const e in this.executorsByZIndex_){const n=this.executorsByZIndex_[e];for(let e=0,i=t.length;e<i;++e)if(t[e]in n)return!0}return!1}forEachFeatureAtCoordinate(t,e,n,i,r,o){const a=2*(i=Math.round(i))+1,s=(0,st.Zz)(this.hitDetectionTransform_,i+.5,i+.5,1/e,-1/e,-n,-t[0],-t[1]),l=!this.hitDetectionContext_;l&&(this.hitDetectionContext_=(0,f.Y)(a,a,void 0,{willReadFrequently:!0}));const h=this.hitDetectionContext_;let c;h.canvas.width!==a||h.canvas.height!==a?(h.canvas.width=a,h.canvas.height=a):l||h.clearRect(0,0,a,a),void 0!==this.renderBuffer_&&(c=(0,H.S5)(),(0,H.$C)(c,t),(0,H.r)(c,e*(this.renderBuffer_+i),c));const u=function(t){if(void 0!==St[t])return St[t];const e=2*t+1,n=t*t,i=new Array(n+1);for(let o=0;o<=t;++o)for(let r=0;r<=t;++r){const a=o*o+r*r;if(a>n)break;let s=i[a];s||(s=[],i[a]=s),s.push(4*((t+o)*e+(t+r))+3),o>0&&s.push(4*((t-o)*e+(t+r))+3),r>0&&(s.push(4*((t+o)*e+(t-r))+3),o>0&&s.push(4*((t-o)*e+(t-r))+3))}const r=[];for(let o=0,a=i.length;o<a;++o)i[o]&&r.push(...i[o]);return St[t]=r,r}(i);let d;function p(t,e){const n=h.getImageData(0,0,a,a).data;for(let s=0,l=u.length;s<l;s++)if(n[u[s]]>0){if(!o||"Image"!==d&&"Text"!==d||o.includes(t)){const n=(u[s]-3)/4,o=i-n%a,l=i-(n/a|0),h=r(t,e,o*o+l*l);if(h)return h}h.clearRect(0,0,a,a);break}}const g=Object.keys(this.executorsByZIndex_).map(Number);let m,v,y,_,x;for(g.sort(U.V_),m=g.length-1;m>=0;--m){const t=g[m].toString();for(y=this.executorsByZIndex_[t],v=wt.length-1;v>=0;--v)if(d=wt[v],_=y[d],void 0!==_&&(x=_.executeHitDetection(h,s,n,p,c),x))return x}}getClipCoords(t){const e=this.maxExtent_;if(!e)return null;const n=e[0],i=e[1],r=e[2],o=e[3],a=[n,i,n,o,r,o,r,i];return(0,lt.Rc)(a,0,8,2,t,a),a}isEmpty(){return(0,bt.p)(this.executorsByZIndex_)}execute(t,e,n,i,r,o,a){const s=Object.keys(this.executorsByZIndex_).map(Number);let l,h,c,u,d,p;for(s.sort(U.V_),this.maxExtent_&&(t.save(),this.clip(t,n)),o=o||wt,a&&s.reverse(),l=0,h=s.length;l<h;++l){const h=s[l].toString();for(d=this.executorsByZIndex_[h],c=0,u=o.length;c<u;++c){p=d[o[c]],void 0!==p&&p.execute(t,e,n,i,r,a)}}this.maxExtent_&&t.restore()}};var Mt=n(4431),At=n(8856),Ct=n(6393);const It=.5;var Et=n(9841),kt=n(6859),Lt=n(6234);class Dt extends at.A{constructor(t){super(t),this.boundHandleStyleImageChange_=this.handleStyleImageChange_.bind(this),this.animatingOrInteracting_,this.hitDetectionImageData_=null,this.renderedFeatures_=null,this.renderedRevision_=-1,this.renderedResolution_=NaN,this.renderedExtent_=(0,H.S5)(),this.wrappedRenderedExtent_=(0,H.S5)(),this.renderedRotation_,this.renderedCenter_=null,this.renderedProjection_=null,this.renderedRenderOrder_=null,this.replayGroup_=null,this.replayGroupChanged=!0,this.declutterExecutorGroup=null,this.clipping=!0,this.compositionContext_=null,this.opacity_=1}renderWorlds(t,e,n){const i=e.extent,r=e.viewState,o=r.center,a=r.resolution,s=r.projection,l=r.rotation,h=s.getExtent(),c=this.getLayer().getSource(),u=e.pixelRatio,d=e.viewHints,p=!(d[At.A.ANIMATING]||d[At.A.INTERACTING]),f=this.compositionContext_,g=Math.round(e.size[0]*u),m=Math.round(e.size[1]*u),v=c.getWrapX()&&s.canWrapX(),y=v?(0,H.RG)(h):null,_=v?Math.ceil((i[2]-h[2])/y)+1:1;let x=v?Math.floor((i[0]-h[0])/y):0;do{const e=this.getRenderTransform(o,a,l,u,g,m,x*y);t.execute(f,1,e,l,p,void 0,n)}while(++x<_)}setupCompositionContext_(){if(1!==this.opacity_){const t=(0,f.Y)(this.context.canvas.width,this.context.canvas.height,at.B);this.compositionContext_=t}else this.compositionContext_=this.context}releaseCompositionContext_(){if(1!==this.opacity_){const t=this.context.globalAlpha;this.context.globalAlpha=this.opacity_,this.context.drawImage(this.compositionContext_.canvas,0,0),this.context.globalAlpha=t,(0,f.Yg)(this.compositionContext_),at.B.push(this.compositionContext_.canvas),this.compositionContext_=null}}renderDeclutter(t){this.declutterExecutorGroup&&(this.setupCompositionContext_(),this.renderWorlds(this.declutterExecutorGroup,t,t.declutterTree),this.releaseCompositionContext_())}renderFrame(t,e){const n=t.pixelRatio,i=t.layerStatesArray[t.layerIndex];(0,st.rQ)(this.pixelTransform,1/n,1/n),(0,st.T9)(this.inversePixelTransform,this.pixelTransform);const r=(0,st.dI)(this.pixelTransform);this.useContainer(e,r,this.getBackground(t));const o=this.context,a=o.canvas,s=this.replayGroup_,l=this.declutterExecutorGroup;let h=s&&!s.isEmpty()||l&&!l.isEmpty();if(!h){if(!(this.getLayer().hasListener(Mt.A.PRERENDER)||this.getLayer().hasListener(Mt.A.POSTRENDER)))return null}const c=Math.round(t.size[0]*n),u=Math.round(t.size[1]*n);a.width!=c||a.height!=u?(a.width=c,a.height=u,a.style.transform!==r&&(a.style.transform=r)):this.containerReused||o.clearRect(0,0,c,u),this.preRender(o,t);const d=t.viewState,p=d.projection;this.opacity_=i.opacity,this.setupCompositionContext_();let f=!1;if(h&&i.extent&&this.clipping){const e=(0,kt.SD)(i.extent,p);h=(0,H.HY)(e,t.extent),f=h&&!(0,H.ms)(e,t.extent),f&&this.clipUnrotated(this.compositionContext_,t,e)}return h&&this.renderWorlds(s,t),f&&this.compositionContext_.restore(),this.releaseCompositionContext_(),this.postRender(o,t),this.renderedRotation_!==d.rotation&&(this.renderedRotation_=d.rotation,this.hitDetectionImageData_=null),this.container}getFeatures(t){return new Promise((e=>{if(!this.hitDetectionImageData_&&!this.animatingOrInteracting_){const t=[this.context.canvas.width,this.context.canvas.height];(0,st.Bb)(this.pixelTransform,t);const e=this.renderedCenter_,n=this.renderedResolution_,i=this.renderedRotation_,r=this.renderedProjection_,o=this.wrappedRenderedExtent_,a=this.getLayer(),s=[],l=t[0]*It,h=t[1]*It;s.push(this.getRenderTransform(e,n,i,It,l,h,0).slice());const c=a.getSource(),u=r.getExtent();if(c.getWrapX()&&r.canWrapX()&&!(0,H.ms)(u,o)){let t=o[0];const r=(0,H.RG)(u);let a,c=0;for(;t<u[0];)--c,a=r*c,s.push(this.getRenderTransform(e,n,i,It,l,h,a).slice()),t+=r;for(c=0,t=o[2];t>u[2];)++c,a=r*c,s.push(this.getRenderTransform(e,n,i,It,l,h,a).slice()),t-=r}this.hitDetectionImageData_=function(t,e,n,i,r,o,a){const s=t[0]*It,l=t[1]*It,h=(0,f.Y)(s,l);h.imageSmoothingEnabled=!1;const c=h.canvas,u=new Ct.A(h,It,r,null,a),d=n.length,p=Math.floor(16777215/d),g={};for(let v=1;v<=d;++v){const t=n[v-1],e=t.getStyleFunction()||i;if(!e)continue;let a=e(t,o);if(!a)continue;Array.isArray(a)||(a=[a]);const s=(v*p).toString(16).padStart(7,"#00000");for(let n=0,i=a.length;n<i;++n){const e=a[n],i=e.getGeometryFunction()(t);if(!i||!(0,H.HY)(r,i.getExtent()))continue;const o=e.clone(),l=o.getFill();l&&l.setColor(s);const h=o.getStroke();h&&(h.setColor(s),h.setLineDash(null)),o.setText(void 0);const c=e.getImage();if(c){const t=c.getImageSize();if(!t)continue;const e=(0,f.Y)(t[0],t[1],void 0,{alpha:!1}),n=e.canvas;e.fillStyle=s,e.fillRect(0,0,n.width,n.height),o.setImage(new w({img:n,imgSize:t,anchor:c.getAnchor(),anchorXUnits:"pixels",anchorYUnits:"pixels",offset:c.getOrigin(),opacity:1,size:c.getSize(),scale:c.getScale(),rotation:c.getRotation(),rotateWithView:c.getRotateWithView()}))}const u=o.getZIndex()||0;let d=g[u];d||(d={},g[u]=d,d.Polygon=[],d.Circle=[],d.LineString=[],d.Point=[]);const p=i.getType();if("GeometryCollection"===p){const t=i.getGeometriesArrayRecursive();for(let e=0,n=t.length;e<n;++e){const n=t[e];d[n.getType().replace("Multi","")].push(n,o)}}else d[p.replace("Multi","")].push(i,o)}}const m=Object.keys(g).map(Number).sort(U.V_);for(let f=0,v=m.length;f<v;++f){const t=g[m[f]];for(const n in t){const i=t[n];for(let t=0,n=i.length;t<n;t+=2){u.setStyle(i[t+1]);for(let n=0,r=e.length;n<r;++n)u.setTransform(e[n]),u.drawGeometry(i[t])}}}return h.getImageData(0,0,c.width,c.height)}(t,s,this.renderedFeatures_,a.getStyleFunction(),o,n,i)}e(function(t,e,n){const i=[];if(n){const r=Math.floor(Math.round(t[0])*It),o=Math.floor(Math.round(t[1])*It),a=4*((0,Q.qE)(r,0,n.width-1)+(0,Q.qE)(o,0,n.height-1)*n.width),s=n.data[a],l=n.data[a+1],h=n.data[a+2]+256*(l+256*s),c=Math.floor(16777215/e.length);h&&h%c==0&&i.push(e[h/c-1])}return i}(t,this.renderedFeatures_,this.hitDetectionImageData_))}))}forEachFeatureAtCoordinate(t,e,n,i,r){if(!this.replayGroup_)return;const o=e.viewState.resolution,a=e.viewState.rotation,s=this.getLayer(),l={},h=function(t,e,n){const o=(0,_.v6)(t),a=l[o];if(a){if(!0!==a&&n<a.distanceSq){if(0===n)return l[o]=!0,r.splice(r.lastIndexOf(a),1),i(t,s,e);a.geometry=e,a.distanceSq=n}}else{if(0===n)return l[o]=!0,i(t,s,e);r.push(l[o]={feature:t,layer:s,geometry:e,distanceSq:n,callback:i})}};let c;const u=[this.replayGroup_];return this.declutterExecutorGroup&&u.push(this.declutterExecutorGroup),u.some((i=>c=i.forEachFeatureAtCoordinate(t,o,a,n,h,i===this.declutterExecutorGroup&&e.declutterTree?e.declutterTree.all().map((t=>t.value)):null))),c}handleFontsChanged(){const t=this.getLayer();t.getVisible()&&this.replayGroup_&&t.changed()}handleStyleImageChange_(t){this.renderIfReadyAndVisible()}prepareFrame(t){const e=this.getLayer(),n=e.getSource();if(!n)return!1;const i=t.viewHints[At.A.ANIMATING],r=t.viewHints[At.A.INTERACTING],o=e.getUpdateWhileAnimating(),a=e.getUpdateWhileInteracting();if(this.ready&&!o&&i||!a&&r)return this.animatingOrInteracting_=!0,!0;this.animatingOrInteracting_=!1;const s=t.extent,l=t.viewState,h=l.projection,c=l.resolution,u=t.pixelRatio,d=e.getRevision(),p=e.getRenderBuffer();let f=e.getRenderOrder();void 0===f&&(f=Et.Eo);const g=l.center.slice(),m=(0,H.r)(s,p*c),v=m.slice(),y=[m.slice()],_=h.getExtent();if(n.getWrapX()&&h.canWrapX()&&!(0,H.ms)(_,t.extent)){const t=(0,H.RG)(_),e=Math.max((0,H.RG)(m)/2,t);m[0]=_[0]-e,m[2]=_[2]+e,(0,Lt.Li)(g,h);const n=(0,H.Li)(y[0],h);n[0]<_[0]&&n[2]<_[2]?y.push([n[0]+t,n[1],n[2]+t,n[3]]):n[0]>_[0]&&n[2]>_[2]&&y.push([n[0]-t,n[1],n[2]-t,n[3]])}if(this.ready&&this.renderedResolution_==c&&this.renderedRevision_==d&&this.renderedRenderOrder_==f&&(0,H.ms)(this.wrappedRenderedExtent_,m))return(0,U.aI)(this.renderedExtent_,v)||(this.hitDetectionImageData_=null,this.renderedExtent_=v),this.renderedCenter_=g,this.replayGroupChanged=!1,!0;this.replayGroup_=null;const x=new ot((0,Et.gY)(c,u),m,c,u);let b;this.getLayer().getDeclutter()&&(b=new ot((0,Et.gY)(c,u),m,c,u));const w=(0,kt.Tf)();let S;if(w){for(let t=0,e=y.length;t<e;++t){const e=y[t],i=(0,kt.JR)(e,h);n.loadFeatures(i,(0,kt.vN)(c,h),w)}S=(0,kt.FO)(w,h)}else for(let L=0,D=y.length;L<D;++L)n.loadFeatures(y[L],c,h);const T=(0,Et.j)(c,u);let M=!0;const A=t=>{let n;const i=t.getStyleFunction()||e.getStyleFunction();if(i&&(n=i(t,c)),n){const e=this.renderFeature(t,T,n,x,S,b);M=M&&!e}},C=(0,kt.JR)(m,h),I=n.getFeaturesInExtent(C);f&&I.sort(f);for(let L=0,D=I.length;L<D;++L)A(I[L]);this.renderedFeatures_=I,this.ready=M;const E=x.finish(),k=new Tt(m,c,u,n.getOverlaps(),E,e.getRenderBuffer());return b&&(this.declutterExecutorGroup=new Tt(m,c,u,n.getOverlaps(),b.finish(),e.getRenderBuffer())),this.renderedResolution_=c,this.renderedRevision_=d,this.renderedRenderOrder_=f,this.renderedExtent_=v,this.wrappedRenderedExtent_=m,this.renderedCenter_=g,this.renderedProjection_=h,this.replayGroup_=k,this.hitDetectionImageData_=null,this.replayGroupChanged=!0,!0}renderFeature(t,e,n,i,r,o){if(!n)return!1;let a=!1;if(Array.isArray(n))for(let s=0,l=n.length;s<l;++s)a=(0,Et.nl)(i,t,n[s],e,this.boundHandleStyleImageChange_,r,o)||a;else a=(0,Et.nl)(i,t,n,e,this.boundHandleStyleImageChange_,r,o);return a}}const Pt=Dt;const Rt=class extends P{constructor(t){super(t)}createRenderer(){return new Pt(this)}}},2878:(t,e,n)=>{"use strict";function i(t,e,n){return Math.min(Math.max(t,e),n)}function r(t,e,n,i,r,a){const s=r-n,l=a-i;if(0!==s||0!==l){const o=((t-n)*s+(e-i)*l)/(s*s+l*l);o>1?(n=r,i=a):o>0&&(n+=s*o,i+=l*o)}return o(t,e,n,i)}function o(t,e,n,i){const r=n-t,o=i-e;return r*r+o*o}function a(t){const e=t.length;for(let i=0;i<e;i++){let n=i,r=Math.abs(t[i][i]);for(let a=i+1;a<e;a++){const e=Math.abs(t[a][i]);e>r&&(r=e,n=a)}if(0===r)return null;const o=t[n];t[n]=t[i],t[i]=o;for(let a=i+1;a<e;a++){const n=-t[a][i]/t[i][i];for(let r=i;r<e+1;r++)i==r?t[a][r]=0:t[a][r]+=n*t[i][r]}}const n=new Array(e);for(let i=e-1;i>=0;i--){n[i]=t[i][e]/t[i][i];for(let r=i-1;r>=0;r--)t[r][e]-=t[r][i]*n[i]}return n}function s(t){return 180*t/Math.PI}function l(t){return t*Math.PI/180}function h(t,e){const n=t%e;return n*e<0?n+e:n}function c(t,e,n){return t+n*(e-t)}function u(t,e){const n=Math.pow(10,e);return Math.round(t*n)/n}function d(t,e){return Math.floor(u(t,e))}function p(t,e){return Math.ceil(u(t,e))}n.d(e,{Cc:()=>c,KU:()=>a,Mg:()=>u,Q1:()=>r,RI:()=>d,eh:()=>l,hG:()=>o,mk:()=>p,qE:()=>i,xP:()=>h,xW:()=>s})},6943:(t,e,n)=>{"use strict";function i(t){for(const e in t)delete t[e]}function r(t){let e;for(e in t)return!1;return!e}n.d(e,{I:()=>i,p:()=>r})},228:(t,e,n)=>{"use strict";n.d(e,{A:()=>i});const i={POINTERMOVE:"pointermove",POINTERDOWN:"pointerdown",POINTERUP:"pointerup",POINTEROVER:"pointerover",POINTEROUT:"pointerout",POINTERENTER:"pointerenter",POINTERLEAVE:"pointerleave",POINTERCANCEL:"pointercancel"}},6859:(t,e,n)=>{"use strict";n.d(e,{Ig:()=>v.I,MF:()=>i.A,hB:()=>O,O3:()=>D,bF:()=>E,Av:()=>P,wU:()=>Y,RJ:()=>A,tI:()=>N,Ad:()=>W,SD:()=>q,Jt:()=>k,hO:()=>L,RG:()=>B,FO:()=>F,Tf:()=>j,R6:()=>I,te:()=>H,JR:()=>U,vN:()=>X,pd:()=>z});var i=n(2735);const r=6378137,o=Math.PI*r,a=[-o,-o,o,o],s=[-180,-85,180,85],l=r*Math.log(Math.tan(Math.PI/2));class h extends i.A{constructor(t){super({code:t,units:"m",extent:a,global:!0,worldExtent:s,getPointResolution:function(t,e){return t/Math.cosh(e[1]/r)}})}}const c=[new h("EPSG:3857"),new h("EPSG:102100"),new h("EPSG:102113"),new h("EPSG:900913"),new h("http://www.opengis.net/def/crs/EPSG/0/3857"),new h("http://www.opengis.net/gml/srs/epsg.xml#3857")];function u(t,e,n){const i=t.length;n=n>1?n:2,void 0===e&&(e=n>2?t.slice():new Array(i));for(let a=0;a<i;a+=n){e[a]=o*t[a]/180;let n=r*Math.log(Math.tan(Math.PI*(+t[a+1]+90)/360));n>l?n=l:n<-l&&(n=-l),e[a+1]=n}return e}function d(t,e,n){const i=t.length;n=n>1?n:2,void 0===e&&(e=n>2?t.slice():new Array(i));for(let a=0;a<i;a+=n)e[a]=180*t[a]/o,e[a+1]=360*Math.atan(Math.exp(t[a+1]/r))/Math.PI-90;return e}const p=[-180,-90,180,90],f=6378137*Math.PI/180;class g extends i.A{constructor(t,e){super({code:t,units:"degrees",extent:p,axisOrientation:e,global:!0,metersPerUnit:f,worldExtent:p})}}const m=[new g("CRS:84"),new g("EPSG:4326","neu"),new g("urn:ogc:def:crs:OGC:1.3:CRS84"),new g("urn:ogc:def:crs:OGC:2:84"),new g("http://www.opengis.net/def/crs/OGC/1.3/CRS84"),new g("http://www.opengis.net/gml/srs/epsg.xml#4326","neu"),new g("http://www.opengis.net/def/crs/EPSG/0/4326","neu")];var v=n(971);let y={};var _=n(4535),x=n(4320),b=n(2878),w=n(6234),S=n(4913),T=n(4095);let M=!0;function A(t){M=!(void 0===t||t)}function C(t,e){if(void 0!==e)for(let n=0,i=t.length;n<i;++n)e[n]=t[n];else e=t.slice();return e}function I(t,e){if(void 0!==e&&t!==e){for(let n=0,i=t.length;n<i;++n)e[n]=t[n];t=e}return t}function E(t){!function(t,e){y[t]=e}(t.getCode(),t),(0,_.WQ)(t,t,C)}function k(t){return"string"==typeof t?y[e=t]||y[e.replace(/urn:(x-)?ogc:def:crs:EPSG:(.*:)?(\w+)$/,"EPSG:$3")]||null:t||null;var e}function L(t,e,n,i){let r;const o=(t=k(t)).getPointResolutionFunc();if(o){if(r=o(e,n),i&&i!==t.getUnits()){const e=t.getMetersPerUnit();e&&(r=r*e/v.I[i])}}else{const o=t.getUnits();if("degrees"==o&&!i||"degrees"==i)r=e;else{const a=F(t,k("EPSG:4326"));if(a===I&&"degrees"!==o)r=e*t.getMetersPerUnit();else{let t=[n[0]-e/2,n[1],n[0]+e/2,n[1],n[0],n[1]-e/2,n[0],n[1]+e/2];t=a(t,t,2);r=((0,S.Yf)(t.slice(0,2),t.slice(2,4))+(0,S.Yf)(t.slice(4,6),t.slice(6,8)))/2}const s=i?v.I[i]:t.getMetersPerUnit();void 0!==s&&(r/=s)}}return r}function D(t){!function(t){t.forEach(E)}(t),t.forEach((function(e){t.forEach((function(t){e!==t&&(0,_.WQ)(e,t,C)}))}))}function P(t,e){return t?"string"==typeof t?k(t):t:k(e)}function R(t){return function(e,n,i){const r=e.length;i=void 0!==i?i:2,n=void 0!==n?n:new Array(r);for(let o=0;o<r;o+=i){const r=t(e.slice(o,o+i)),a=r.length;for(let t=0,s=i;t<s;++t)n[o+t]=t>=a?e[o+t]:r[t]}return n}}function O(t,e,n,i){const r=k(t),o=k(e);(0,_.WQ)(r,o,R(n)),(0,_.WQ)(o,r,R(i))}function N(t,e){if(t===e)return!0;const n=t.getUnits()===e.getUnits();if(t.getCode()===e.getCode())return n;return F(t,e)===C&&n}function F(t,e){const n=t.getCode(),i=e.getCode();let r=(0,_.Jt)(n,i);return r||(r=I),r}function B(t,e){return F(k(t),k(e))}function z(t,e,n){return B(e,n)(t,void 0,t.length)}function G(t,e,n,i){const r=B(e,n);return(0,x.NW)(t,r,void 0,i)}let V=null;function j(){return V}function H(t,e){return V?z(t,e,V):t}function W(t,e){return V?z(t,V,e):(M&&!(0,w.aI)(t,[0,0])&&t[0]>=-180&&t[0]<=180&&t[1]>=-90&&t[1]<=90&&(M=!1,(0,T.R8)("Call useGeographic() from ol/proj once to work with [longitude, latitude] coordinates.")),t)}function U(t,e){return V?G(t,e,V):t}function q(t,e){return V?G(t,V,e):t}function X(t,e){if(!V)return t;const n=k(e).getUnits(),i=V.getUnits();return n&&i?t*v.I[n]/v.I[i]:t}function Y(t,e,n){return function(i){let r,o;if(t.canWrapX()){const e=t.getExtent(),a=(0,x.RG)(e);i=i.slice(0),o=(0,w.U$)(i,t,a),o&&(i[0]=i[0]-o*a),i[0]=(0,b.qE)(i[0],e[0],e[2]),i[1]=(0,b.qE)(i[1],e[1],e[3]),r=n(i)}else r=n(i);return o&&e.canWrapX()&&(r[0]+=o*(0,x.RG)(e.getExtent())),r}}var Z,$,K;D(c),D(m),Z=c,$=u,K=d,m.forEach((function(t){Z.forEach((function(e){(0,_.WQ)(t,e,$),(0,_.WQ)(e,t,K)}))}))},2735:(t,e,n)=>{"use strict";n.d(e,{A:()=>r});var i=n(971);const r=class{constructor(t){this.code_=t.code,this.units_=t.units,this.extent_=void 0!==t.extent?t.extent:null,this.worldExtent_=void 0!==t.worldExtent?t.worldExtent:null,this.axisOrientation_=void 0!==t.axisOrientation?t.axisOrientation:"enu",this.global_=void 0!==t.global&&t.global,this.canWrapX_=!(!this.global_||!this.extent_),this.getPointResolutionFunc_=t.getPointResolution,this.defaultTileGrid_=null,this.metersPerUnit_=t.metersPerUnit}canWrapX(){return this.canWrapX_}getCode(){return this.code_}getExtent(){return this.extent_}getUnits(){return this.units_}getMetersPerUnit(){return this.metersPerUnit_||i.I[this.units_]}getWorldExtent(){return this.worldExtent_}getAxisOrientation(){return this.axisOrientation_}isGlobal(){return this.global_}setGlobal(t){this.global_=t,this.canWrapX_=!(!t||!this.extent_)}getDefaultTileGrid(){return this.defaultTileGrid_}setDefaultTileGrid(t){this.defaultTileGrid_=t}setExtent(t){this.extent_=t,this.canWrapX_=!(!this.global_||!t)}setWorldExtent(t){this.worldExtent_=t}setGetPointResolution(t){this.getPointResolutionFunc_=t}getPointResolutionFunc(){return this.getPointResolutionFunc_}}},971:(t,e,n)=>{"use strict";n.d(e,{I:()=>i});const i={radians:6370997/(2*Math.PI),degrees:2*Math.PI*6370997/360,ft:.3048,m:1,"us-ft":1200/3937}},5505:(t,e,n)=>{"use strict";n.d(e,{kz:()=>s});var i=n(2735),r=n(6859),o=n(4535);let a=null;function s(t){a=t;const e=Object.keys(t.defs),n=e.length;let s,l;for(s=0;s<n;++s){const n=e[s];if(!(0,r.Jt)(n)){const e=t.defs(n);let o=e.units;o||"longlat"!==e.projName||(o="degrees"),(0,r.bF)(new i.A({code:n,axisOrientation:e.axis,metersPerUnit:e.to_meter,units:o}))}}for(s=0;s<n;++s){const i=e[s],a=(0,r.Jt)(i);for(l=0;l<n;++l){const n=e[l],s=(0,r.Jt)(n);if(!(0,o.Jt)(i,n))if(t.defs[i]===t.defs[n])(0,r.O3)([a,s]);else{const e=t(i,n);(0,r.hB)(a,s,(0,r.wU)(a,s,e.forward),(0,r.wU)(s,a,e.inverse))}}}}},4535:(t,e,n)=>{"use strict";n.d(e,{Jt:()=>o,WQ:()=>r});let i={};function r(t,e,n){const r=t.getCode(),o=e.getCode();r in i||(i[r]={}),i[r][o]=n}function o(t,e){let n;return t in i&&e in i[t]&&(n=i[t][e]),n}},6263:(t,e,n)=>{"use strict";n.d(e,{A:()=>o});var i=n(5026);class r extends i.Ay{constructor(t,e,n,i){super(t),this.inversePixelTransform=e,this.frameState=n,this.context=i}}const o=r},4431:(t,e,n)=>{"use strict";n.d(e,{A:()=>i});const i={PRERENDER:"prerender",POSTRENDER:"postrender",PRECOMPOSE:"precompose",POSTCOMPOSE:"postcompose",RENDERCOMPLETE:"rendercomplete"}},5473:(t,e,n)=>{"use strict";n.d(e,{A:()=>i});const i=class{drawCustom(t,e,n,i){}drawGeometry(t){}setStyle(t){}drawCircle(t,e){}drawFeature(t,e){}drawGeometryCollection(t,e){}drawLineString(t,e){}drawMultiLineString(t,e){}drawMultiPoint(t,e){}drawMultiPolygon(t,e){}drawPoint(t,e){}drawPolygon(t,e){}drawText(t,e){}setFillStrokeStyle(t,e){}setImageStyle(t,e){}setTextStyle(t,e){}}},1763:(t,e,n)=>{"use strict";n.d(e,{Jw:()=>k,M8:()=>v,MY:()=>m,NT:()=>g,Oq:()=>u,TA:()=>I,Tq:()=>y,ZV:()=>l,_K:()=>p,_m:()=>c,aq:()=>_,eL:()=>f,fZ:()=>T,jT:()=>E,qY:()=>h,vk:()=>d,yY:()=>x});var i=n(5191),r=n(6306),o=n(6943),a=n(7354),s=n(5433);const l="10px sans-serif",h="#000",c="round",u=[],d=0,p="round",f=10,g="#000",m="center",v="middle",y=[0,0,0,0],_=1,x=new i.A;let b,w=null;const S={},T=function(){const t="32px ",e=["monospace","serif"],n=e.length,i="wmytzilWMYTZIL@#/&?$%10\uf013";let r,a;function l(r,o,s){let l=!0;for(let h=0;h<n;++h){const n=e[h];if(a=C(r+" "+o+" "+t+n,i),s!=n){const e=C(r+" "+o+" "+t+s+","+n,i);l=l&&e!=a}}return!!l}function h(){let t=!0;const e=x.getKeys();for(let n=0,i=e.length;n<i;++n){const i=e[n];x.get(i)<100&&(l.apply(this,i.split("\n"))?((0,o.I)(S),w=null,b=void 0,x.set(i,100)):(x.set(i,x.get(i)+1,!0),t=!1))}t&&(clearInterval(r),r=void 0)}return function(t){const e=(0,s.K5)(t);if(!e)return;const n=e.families;for(let i=0,o=n.length;i<o;++i){const t=n[i],o=e.style+"\n"+e.weight+"\n"+t;void 0===x.get(o)&&(x.set(o,100,!0),l(e.style,e.weight,t)||(x.set(o,0,!0),void 0===r&&(r=setInterval(h,32))))}}}(),M=function(){let t;return function(e){let n=S[e];if(null==n){if(r.Wl){const t=(0,s.K5)(e),i=A(e,"\u017dg");n=(isNaN(Number(t.lineHeight))?1.2:Number(t.lineHeight))*(i.actualBoundingBoxAscent+i.actualBoundingBoxDescent)}else t||(t=document.createElement("div"),t.innerHTML="M",t.style.minHeight="0",t.style.maxHeight="none",t.style.height="auto",t.style.padding="0",t.style.border="none",t.style.position="absolute",t.style.display="block",t.style.left="-99999px"),t.style.font=e,document.body.appendChild(t),n=t.offsetHeight,document.body.removeChild(t);S[e]=n}return n}}();function A(t,e){return w||(w=(0,a.Y)(1,1)),t!=b&&(w.font=t,b=w.font),w.measureText(e)}function C(t,e){return A(t,e).width}function I(t,e,n){if(e in n)return n[e];const i=e.split("\n").reduce(((e,n)=>Math.max(e,C(t,n))),0);return n[e]=i,i}function E(t,e){const n=[],i=[],r=[];let o=0,a=0,s=0,l=0;for(let h=0,c=e.length;h<=c;h+=2){const u=e[h];if("\n"===u||h===c){o=Math.max(o,a),r.push(a),a=0,s+=l;continue}const d=e[h+1]||t.font,p=C(d,u);n.push(p),a+=p;const f=M(d);i.push(f),l=Math.max(l,f)}return{width:o,height:s,widths:n,heights:i,lineWidths:r}}function k(t,e,n,i,r,o,a,s,l,h,c){t.save(),1!==n&&(t.globalAlpha*=n),e&&t.setTransform.apply(t,e),i.contextInstructions?(t.translate(l,h),t.scale(c[0],c[1]),function(t,e){const n=t.contextInstructions;for(let i=0,r=n.length;i<r;i+=2)Array.isArray(n[i+1])?e[n[i]].apply(e,n[i+1]):e[n[i]]=n[i+1]}(i,t)):c[0]<0||c[1]<0?(t.translate(l,h),t.scale(c[0],c[1]),t.drawImage(i,r,o,a,s,0,0,a,s)):t.drawImage(i,r,o,a,s,l,h,a*c[0],s*c[1]),t.restore()}},6393:(t,e,n)=>{"use strict";n.d(e,{A:()=>p});var i=n(5473),r=n(154),o=n(686),a=n(1763),s=n(9783),l=n(4320),h=n(2878),c=n(5415),u=n(6861);class d extends i.A{constructor(t,e,n,i,r,a,s){super(),this.context_=t,this.pixelRatio_=e,this.extent_=n,this.transform_=i,this.transformRotation_=i?(0,h.Mg)(Math.atan2(i[1],i[0]),10):0,this.viewRotation_=r,this.squaredTolerance_=a,this.userTransform_=s,this.contextFillState_=null,this.contextStrokeState_=null,this.contextTextState_=null,this.fillState_=null,this.strokeState_=null,this.image_=null,this.imageAnchorX_=0,this.imageAnchorY_=0,this.imageHeight_=0,this.imageOpacity_=0,this.imageOriginX_=0,this.imageOriginY_=0,this.imageRotateWithView_=!1,this.imageRotation_=0,this.imageScale_=[0,0],this.imageWidth_=0,this.text_="",this.textOffsetX_=0,this.textOffsetY_=0,this.textRotateWithView_=!1,this.textRotation_=0,this.textScale_=[0,0],this.textFillState_=null,this.textStrokeState_=null,this.textState_=null,this.pixelCoordinates_=[],this.tmpLocalTransform_=(0,o.vt)()}drawImages_(t,e,n,i){if(!this.image_)return;const r=(0,c.Rc)(t,e,n,i,this.transform_,this.pixelCoordinates_),a=this.context_,s=this.tmpLocalTransform_,l=a.globalAlpha;1!=this.imageOpacity_&&(a.globalAlpha=l*this.imageOpacity_);let h=this.imageRotation_;0===this.transformRotation_&&(h-=this.viewRotation_),this.imageRotateWithView_&&(h+=this.viewRotation_);for(let c=0,u=r.length;c<u;c+=2){const t=r[c]-this.imageAnchorX_,e=r[c+1]-this.imageAnchorY_;if(0!==h||1!=this.imageScale_[0]||1!=this.imageScale_[1]){const n=t+this.imageAnchorX_,i=e+this.imageAnchorY_;(0,o.Zz)(s,n,i,1,1,h,-n,-i),a.setTransform.apply(a,s),a.translate(n,i),a.scale(this.imageScale_[0],this.imageScale_[1]),a.drawImage(this.image_,this.imageOriginX_,this.imageOriginY_,this.imageWidth_,this.imageHeight_,-this.imageAnchorX_,-this.imageAnchorY_,this.imageWidth_,this.imageHeight_),a.setTransform(1,0,0,1,0,0)}else a.drawImage(this.image_,this.imageOriginX_,this.imageOriginY_,this.imageWidth_,this.imageHeight_,t,e,this.imageWidth_,this.imageHeight_)}1!=this.imageOpacity_&&(a.globalAlpha=l)}drawText_(t,e,n,i){if(!this.textState_||""===this.text_)return;this.textFillState_&&this.setContextFillState_(this.textFillState_),this.textStrokeState_&&this.setContextStrokeState_(this.textStrokeState_),this.setContextTextState_(this.textState_);const r=(0,c.Rc)(t,e,n,i,this.transform_,this.pixelCoordinates_),o=this.context_;let a=this.textRotation_;for(0===this.transformRotation_&&(a-=this.viewRotation_),this.textRotateWithView_&&(a+=this.viewRotation_);e<n;e+=i){const t=r[e]+this.textOffsetX_,n=r[e+1]+this.textOffsetY_;0!==a||1!=this.textScale_[0]||1!=this.textScale_[1]?(o.translate(t-this.textOffsetX_,n-this.textOffsetY_),o.rotate(a),o.translate(this.textOffsetX_,this.textOffsetY_),o.scale(this.textScale_[0],this.textScale_[1]),this.textStrokeState_&&o.strokeText(this.text_,0,0),this.textFillState_&&o.fillText(this.text_,0,0),o.setTransform(1,0,0,1,0,0)):(this.textStrokeState_&&o.strokeText(this.text_,t,n),this.textFillState_&&o.fillText(this.text_,t,n))}}moveToLineTo_(t,e,n,i,r){const o=this.context_,a=(0,c.Rc)(t,e,n,i,this.transform_,this.pixelCoordinates_);o.moveTo(a[0],a[1]);let s=a.length;r&&(s-=2);for(let l=2;l<s;l+=2)o.lineTo(a[l],a[l+1]);return r&&o.closePath(),n}drawRings_(t,e,n,i){for(let r=0,o=n.length;r<o;++r)e=this.moveToLineTo_(t,e,n[r],i,!0);return e}drawCircle(t){if(this.squaredTolerance_&&(t=t.simplifyTransformed(this.squaredTolerance_,this.userTransform_)),(0,l.HY)(this.extent_,t.getExtent())){if(this.fillState_||this.strokeState_){this.fillState_&&this.setContextFillState_(this.fillState_),this.strokeState_&&this.setContextStrokeState_(this.strokeState_);const e=(0,u.v7)(t,this.transform_,this.pixelCoordinates_),n=e[2]-e[0],i=e[3]-e[1],r=Math.sqrt(n*n+i*i),o=this.context_;o.beginPath(),o.arc(e[0],e[1],r,0,2*Math.PI),this.fillState_&&o.fill(),this.strokeState_&&o.stroke()}""!==this.text_&&this.drawText_(t.getCenter(),0,2,2)}}setStyle(t){this.setFillStrokeStyle(t.getFill(),t.getStroke()),this.setImageStyle(t.getImage()),this.setTextStyle(t.getText())}setTransform(t){this.transform_=t}drawGeometry(t){switch(t.getType()){case"Point":this.drawPoint(t);break;case"LineString":this.drawLineString(t);break;case"Polygon":this.drawPolygon(t);break;case"MultiPoint":this.drawMultiPoint(t);break;case"MultiLineString":this.drawMultiLineString(t);break;case"MultiPolygon":this.drawMultiPolygon(t);break;case"GeometryCollection":this.drawGeometryCollection(t);break;case"Circle":this.drawCircle(t)}}drawFeature(t,e){const n=e.getGeometryFunction()(t);n&&(this.setStyle(e),this.drawGeometry(n))}drawGeometryCollection(t){const e=t.getGeometriesArray();for(let n=0,i=e.length;n<i;++n)this.drawGeometry(e[n])}drawPoint(t){this.squaredTolerance_&&(t=t.simplifyTransformed(this.squaredTolerance_,this.userTransform_));const e=t.getFlatCoordinates(),n=t.getStride();this.image_&&this.drawImages_(e,0,e.length,n),""!==this.text_&&this.drawText_(e,0,e.length,n)}drawMultiPoint(t){this.squaredTolerance_&&(t=t.simplifyTransformed(this.squaredTolerance_,this.userTransform_));const e=t.getFlatCoordinates(),n=t.getStride();this.image_&&this.drawImages_(e,0,e.length,n),""!==this.text_&&this.drawText_(e,0,e.length,n)}drawLineString(t){if(this.squaredTolerance_&&(t=t.simplifyTransformed(this.squaredTolerance_,this.userTransform_)),(0,l.HY)(this.extent_,t.getExtent())){if(this.strokeState_){this.setContextStrokeState_(this.strokeState_);const e=this.context_,n=t.getFlatCoordinates();e.beginPath(),this.moveToLineTo_(n,0,n.length,t.getStride(),!1),e.stroke()}if(""!==this.text_){const e=t.getFlatMidpoint();this.drawText_(e,0,2,2)}}}drawMultiLineString(t){this.squaredTolerance_&&(t=t.simplifyTransformed(this.squaredTolerance_,this.userTransform_));const e=t.getExtent();if((0,l.HY)(this.extent_,e)){if(this.strokeState_){this.setContextStrokeState_(this.strokeState_);const e=this.context_,n=t.getFlatCoordinates();let i=0;const r=t.getEnds(),o=t.getStride();e.beginPath();for(let t=0,a=r.length;t<a;++t)i=this.moveToLineTo_(n,i,r[t],o,!1);e.stroke()}if(""!==this.text_){const e=t.getFlatMidpoints();this.drawText_(e,0,e.length,2)}}}drawPolygon(t){if(this.squaredTolerance_&&(t=t.simplifyTransformed(this.squaredTolerance_,this.userTransform_)),(0,l.HY)(this.extent_,t.getExtent())){if(this.strokeState_||this.fillState_){this.fillState_&&this.setContextFillState_(this.fillState_),this.strokeState_&&this.setContextStrokeState_(this.strokeState_);const e=this.context_;e.beginPath(),this.drawRings_(t.getOrientedFlatCoordinates(),0,t.getEnds(),t.getStride()),this.fillState_&&e.fill(),this.strokeState_&&e.stroke()}if(""!==this.text_){const e=t.getFlatInteriorPoint();this.drawText_(e,0,2,2)}}}drawMultiPolygon(t){if(this.squaredTolerance_&&(t=t.simplifyTransformed(this.squaredTolerance_,this.userTransform_)),(0,l.HY)(this.extent_,t.getExtent())){if(this.strokeState_||this.fillState_){this.fillState_&&this.setContextFillState_(this.fillState_),this.strokeState_&&this.setContextStrokeState_(this.strokeState_);const e=this.context_,n=t.getOrientedFlatCoordinates();let i=0;const r=t.getEndss(),o=t.getStride();e.beginPath();for(let t=0,a=r.length;t<a;++t){const e=r[t];i=this.drawRings_(n,i,e,o)}this.fillState_&&e.fill(),this.strokeState_&&e.stroke()}if(""!==this.text_){const e=t.getFlatInteriorPoints();this.drawText_(e,0,e.length,2)}}}setContextFillState_(t){const e=this.context_,n=this.contextFillState_;n?n.fillStyle!=t.fillStyle&&(n.fillStyle=t.fillStyle,e.fillStyle=t.fillStyle):(e.fillStyle=t.fillStyle,this.contextFillState_={fillStyle:t.fillStyle})}setContextStrokeState_(t){const e=this.context_,n=this.contextStrokeState_;n?(n.lineCap!=t.lineCap&&(n.lineCap=t.lineCap,e.lineCap=t.lineCap),(0,s.aI)(n.lineDash,t.lineDash)||e.setLineDash(n.lineDash=t.lineDash),n.lineDashOffset!=t.lineDashOffset&&(n.lineDashOffset=t.lineDashOffset,e.lineDashOffset=t.lineDashOffset),n.lineJoin!=t.lineJoin&&(n.lineJoin=t.lineJoin,e.lineJoin=t.lineJoin),n.lineWidth!=t.lineWidth&&(n.lineWidth=t.lineWidth,e.lineWidth=t.lineWidth),n.miterLimit!=t.miterLimit&&(n.miterLimit=t.miterLimit,e.miterLimit=t.miterLimit),n.strokeStyle!=t.strokeStyle&&(n.strokeStyle=t.strokeStyle,e.strokeStyle=t.strokeStyle)):(e.lineCap=t.lineCap,e.setLineDash(t.lineDash),e.lineDashOffset=t.lineDashOffset,e.lineJoin=t.lineJoin,e.lineWidth=t.lineWidth,e.miterLimit=t.miterLimit,e.strokeStyle=t.strokeStyle,this.contextStrokeState_={lineCap:t.lineCap,lineDash:t.lineDash,lineDashOffset:t.lineDashOffset,lineJoin:t.lineJoin,lineWidth:t.lineWidth,miterLimit:t.miterLimit,strokeStyle:t.strokeStyle})}setContextTextState_(t){const e=this.context_,n=this.contextTextState_,i=t.textAlign?t.textAlign:a.MY;n?(n.font!=t.font&&(n.font=t.font,e.font=t.font),n.textAlign!=i&&(n.textAlign=i,e.textAlign=i),n.textBaseline!=t.textBaseline&&(n.textBaseline=t.textBaseline,e.textBaseline=t.textBaseline)):(e.font=t.font,e.textAlign=i,e.textBaseline=t.textBaseline,this.contextTextState_={font:t.font,textAlign:i,textBaseline:t.textBaseline})}setFillStrokeStyle(t,e){if(t){const e=t.getColor();this.fillState_={fillStyle:(0,r.F)(e||a.qY)}}else this.fillState_=null;if(e){const t=e.getColor(),n=e.getLineCap(),i=e.getLineDash(),o=e.getLineDashOffset(),s=e.getLineJoin(),l=e.getWidth(),h=e.getMiterLimit(),c=i||a.Oq;this.strokeState_={lineCap:void 0!==n?n:a._m,lineDash:1===this.pixelRatio_?c:c.map((t=>t*this.pixelRatio_)),lineDashOffset:(o||a.vk)*this.pixelRatio_,lineJoin:void 0!==s?s:a._K,lineWidth:(void 0!==l?l:a.aq)*this.pixelRatio_,miterLimit:void 0!==h?h:a.eL,strokeStyle:(0,r.F)(t||a.NT)}}else this.strokeState_=null}setImageStyle(t){let e;if(!t||!(e=t.getSize()))return void(this.image_=null);const n=t.getPixelRatio(this.pixelRatio_),i=t.getAnchor(),r=t.getOrigin();this.image_=t.getImage(this.pixelRatio_),this.imageAnchorX_=i[0]*n,this.imageAnchorY_=i[1]*n,this.imageHeight_=e[1]*n,this.imageOpacity_=t.getOpacity(),this.imageOriginX_=r[0],this.imageOriginY_=r[1],this.imageRotateWithView_=t.getRotateWithView(),this.imageRotation_=t.getRotation();const o=t.getScaleArray();this.imageScale_=[o[0]*this.pixelRatio_/n,o[1]*this.pixelRatio_/n],this.imageWidth_=e[0]*n}setTextStyle(t){if(t){const e=t.getFill();if(e){const t=e.getColor();this.textFillState_={fillStyle:(0,r.F)(t||a.qY)}}else this.textFillState_=null;const n=t.getStroke();if(n){const t=n.getColor(),e=n.getLineCap(),i=n.getLineDash(),o=n.getLineDashOffset(),s=n.getLineJoin(),l=n.getWidth(),h=n.getMiterLimit();this.textStrokeState_={lineCap:void 0!==e?e:a._m,lineDash:i||a.Oq,lineDashOffset:o||a.vk,lineJoin:void 0!==s?s:a._K,lineWidth:void 0!==l?l:a.aq,miterLimit:void 0!==h?h:a.eL,strokeStyle:(0,r.F)(t||a.NT)}}else this.textStrokeState_=null;const i=t.getFont(),o=t.getOffsetX(),s=t.getOffsetY(),l=t.getRotateWithView(),h=t.getRotation(),c=t.getScaleArray(),u=t.getText(),d=t.getTextAlign(),p=t.getTextBaseline();this.textState_={font:void 0!==i?i:a.ZV,textAlign:void 0!==d?d:a.MY,textBaseline:void 0!==p?p:a.M8},this.text_=void 0!==u?Array.isArray(u)?u.reduce(((t,e,n)=>t+(n%2?" ":e)),""):u:"",this.textOffsetX_=void 0!==o?this.pixelRatio_*o:0,this.textOffsetY_=void 0!==s?this.pixelRatio_*s:0,this.textRotateWithView_=void 0!==l&&l,this.textRotation_=void 0!==h?h:0,this.textScale_=[this.pixelRatio_*c[0],this.pixelRatio_*c[1]]}else this.text_=""}}const p=d},6627:(t,e,n)=>{"use strict";n.d(e,{B:()=>m,A:()=>y});var i=n(874),r=n(438),o=n(6529),a=n(6916);class s extends o.A{constructor(t){super(),this.ready=!0,this.boundHandleImageChange_=this.handleImageChange_.bind(this),this.layer_=t,this.declutterExecutorGroup=null}getFeatures(t){return(0,a.b0)()}getData(t){return null}prepareFrame(t){return(0,a.b0)()}renderFrame(t,e){return(0,a.b0)()}loadedTileCallback(t,e,n){t[e]||(t[e]={}),t[e][n.tileCoord.toString()]=n}createLoadedTileFinder(t,e,n){return(i,r)=>{const o=this.loadedTileCallback.bind(this,n,i);return t.forEachLoadedTile(e,i,r,o)}}forEachFeatureAtCoordinate(t,e,n,i,r){}getLayer(){return this.layer_}handleFontsChanged(){}handleImageChange_(t){const e=t.target;e.getState()!==r.A.LOADED&&e.getState()!==r.A.ERROR||this.renderIfReadyAndVisible()}loadImage(t){let e=t.getState();return e!=r.A.LOADED&&e!=r.A.ERROR&&t.addEventListener(i.A.CHANGE,this.boundHandleImageChange_),e==r.A.IDLE&&(t.load(),e=t.getState()),e==r.A.LOADED}renderIfReadyAndVisible(){const t=this.getLayer();t&&t.getVisible()&&"ready"===t.getSourceState()&&t.changed()}disposeInternal(){delete this.layer_,super.disposeInternal()}}const l=s;var h=n(6263),c=n(4431),u=n(686),d=n(1805),p=n(7354),f=n(9783),g=n(4320);const m=[];let v=null;const y=class extends l{constructor(t){super(t),this.container=null,this.renderedResolution,this.tempTransform=(0,u.vt)(),this.pixelTransform=(0,u.vt)(),this.inversePixelTransform=(0,u.vt)(),this.context=null,this.containerReused=!1,this.pixelContext_=null,this.frameState=null}getImageData(t,e,n){let i;v||(v=(0,p.Y)(1,1,void 0,{willReadFrequently:!0})),v.clearRect(0,0,1,1);try{v.drawImage(t,e,n,1,1,0,0,1,1),i=v.getImageData(0,0,1,1).data}catch(r){return v=null,null}return i}getBackground(t){let e=this.getLayer().getBackground();return"function"==typeof e&&(e=e(t.viewState.resolution)),e||void 0}useContainer(t,e,n){const i=this.getLayer().getClassName();let r,o;if(t&&t.className===i&&(!n||t&&t.style.backgroundColor&&(0,f.aI)((0,d._j)(t.style.backgroundColor),(0,d._j)(n)))){const e=t.firstElementChild;e instanceof HTMLCanvasElement&&(o=e.getContext("2d"))}if(o&&o.canvas.style.transform===e?(this.container=t,this.context=o,this.containerReused=!0):this.containerReused?(this.container=null,this.context=null,this.containerReused=!1):this.container&&(this.container.style.backgroundColor=null),!this.container){r=document.createElement("div"),r.className=i;let t=r.style;t.position="absolute",t.width="100%",t.height="100%",o=(0,p.Y)();const e=o.canvas;r.appendChild(e),t=e.style,t.position="absolute",t.left="0",t.transformOrigin="top left",this.container=r,this.context=o}this.containerReused||!n||this.container.style.backgroundColor||(this.container.style.backgroundColor=n)}clipUnrotated(t,e,n){const i=(0,g.Py)(n),r=(0,g.WU)(n),o=(0,g.k_)(n),a=(0,g.R)(n);(0,u.Bb)(e.coordinateToPixelTransform,i),(0,u.Bb)(e.coordinateToPixelTransform,r),(0,u.Bb)(e.coordinateToPixelTransform,o),(0,u.Bb)(e.coordinateToPixelTransform,a);const s=this.inversePixelTransform;(0,u.Bb)(s,i),(0,u.Bb)(s,r),(0,u.Bb)(s,o),(0,u.Bb)(s,a),t.save(),t.beginPath(),t.moveTo(Math.round(i[0]),Math.round(i[1])),t.lineTo(Math.round(r[0]),Math.round(r[1])),t.lineTo(Math.round(o[0]),Math.round(o[1])),t.lineTo(Math.round(a[0]),Math.round(a[1])),t.clip()}dispatchRenderEvent_(t,e,n){const i=this.getLayer();if(i.hasListener(t)){const r=new h.A(t,this.inversePixelTransform,n,e);i.dispatchEvent(r)}}preRender(t,e){this.frameState=e,this.dispatchRenderEvent_(c.A.PRERENDER,t,e)}postRender(t,e){this.dispatchRenderEvent_(c.A.POSTRENDER,t,e)}getRenderTransform(t,e,n,i,r,o,a){const s=r/2,l=o/2,h=i/e,c=-h,d=-t[0]+a,p=-t[1];return(0,u.Zz)(this.tempTransform,s,l,h,c,-n,d,p)}disposeInternal(){delete this.frameState,super.disposeInternal()}}},9841:(t,e,n)=>{"use strict";n.d(e,{Eo:()=>s,gY:()=>h,j:()=>l,nl:()=>c});var i=n(438),r=n(6916);const o=.5,a={Point:function(t,e,n,r,o){const a=n.getImage(),s=n.getText();let l;if(a){if(a.getImageState()!=i.A.LOADED)return;let h=t;if(o){const i=a.getDeclutterMode();if("none"!==i)if(h=o,"obstacle"===i){const i=t.getBuilder(n.getZIndex(),"Image");i.setImageStyle(a,l),i.drawPoint(e,r)}else s&&s.getText()&&(l={})}const c=h.getBuilder(n.getZIndex(),"Image");c.setImageStyle(a,l),c.drawPoint(e,r)}if(s&&s.getText()){let i=t;o&&(i=o);const a=i.getBuilder(n.getZIndex(),"Text");a.setTextStyle(s,l),a.drawText(e,r)}},LineString:function(t,e,n,i,r){const o=n.getStroke();if(o){const r=t.getBuilder(n.getZIndex(),"LineString");r.setFillStrokeStyle(null,o),r.drawLineString(e,i)}const a=n.getText();if(a&&a.getText()){const o=(r||t).getBuilder(n.getZIndex(),"Text");o.setTextStyle(a),o.drawText(e,i)}},Polygon:function(t,e,n,i,r){const o=n.getFill(),a=n.getStroke();if(o||a){const r=t.getBuilder(n.getZIndex(),"Polygon");r.setFillStrokeStyle(o,a),r.drawPolygon(e,i)}const s=n.getText();if(s&&s.getText()){const o=(r||t).getBuilder(n.getZIndex(),"Text");o.setTextStyle(s),o.drawText(e,i)}},MultiPoint:function(t,e,n,r,o){const a=n.getImage(),s=n.getText();let l;if(a){if(a.getImageState()!=i.A.LOADED)return;let h=t;if(o){const i=a.getDeclutterMode();if("none"!==i)if(h=o,"obstacle"===i){const i=t.getBuilder(n.getZIndex(),"Image");i.setImageStyle(a,l),i.drawMultiPoint(e,r)}else s&&s.getText()&&(l={})}const c=h.getBuilder(n.getZIndex(),"Image");c.setImageStyle(a,l),c.drawMultiPoint(e,r)}if(s&&s.getText()){let i=t;o&&(i=o);const a=i.getBuilder(n.getZIndex(),"Text");a.setTextStyle(s,l),a.drawText(e,r)}},MultiLineString:function(t,e,n,i,r){const o=n.getStroke();if(o){const r=t.getBuilder(n.getZIndex(),"LineString");r.setFillStrokeStyle(null,o),r.drawMultiLineString(e,i)}const a=n.getText();if(a&&a.getText()){const o=(r||t).getBuilder(n.getZIndex(),"Text");o.setTextStyle(a),o.drawText(e,i)}},MultiPolygon:function(t,e,n,i,r){const o=n.getFill(),a=n.getStroke();if(a||o){const r=t.getBuilder(n.getZIndex(),"Polygon");r.setFillStrokeStyle(o,a),r.drawMultiPolygon(e,i)}const s=n.getText();if(s&&s.getText()){const o=(r||t).getBuilder(n.getZIndex(),"Text");o.setTextStyle(s),o.drawText(e,i)}},GeometryCollection:function(t,e,n,i,r){const o=e.getGeometriesArray();let s,l;for(s=0,l=o.length;s<l;++s){(0,a[o[s].getType()])(t,o[s],n,i,r)}},Circle:function(t,e,n,i,r){const o=n.getFill(),a=n.getStroke();if(o||a){const r=t.getBuilder(n.getZIndex(),"Circle");r.setFillStrokeStyle(o,a),r.drawCircle(e,i)}const s=n.getText();if(s&&s.getText()){const o=(r||t).getBuilder(n.getZIndex(),"Text");o.setTextStyle(s),o.drawText(e,i)}}};function s(t,e){return parseInt((0,r.v6)(t),10)-parseInt((0,r.v6)(e),10)}function l(t,e){const n=h(t,e);return n*n}function h(t,e){return o*t/e}function c(t,e,n,r,o,s,l){let h=!1;const c=n.getImage();if(c){const t=c.getImageState();t==i.A.LOADED||t==i.A.ERROR?c.unlistenImageChange(o):(t==i.A.IDLE&&c.load(),c.listenImageChange(o),h=!0)}return function(t,e,n,i,r,o){const s=n.getGeometryFunction()(e);if(!s)return;const l=s.simplifyTransformed(i,r),h=n.getRenderer();if(h)u(t,l,n,e);else{(0,a[l.getType()])(t,l,n,e,o)}}(t,e,n,r,s,l),h}function u(t,e,n,i){if("GeometryCollection"==e.getType()){const r=e.getGeometries();for(let e=0,o=r.length;e<o;++e)u(t,r[e],n,i);return}t.getBuilder(n.getZIndex(),"Default").drawCustom(e,i,n.getRenderer(),n.getHitDetectionRenderer())}},4864:(t,e,n)=>{"use strict";n.d(e,{A:()=>_});var i=n(874),r=n(3588),o=n(5751),a=n(4320),s=n(6859),l=n(2878);const h=class{constructor(t,e,n,i,r,o){this.sourceProj_=t,this.targetProj_=e;let l={};const h=(0,s.RG)(this.targetProj_,this.sourceProj_);this.transformInv_=function(t){const e=t[0]+"/"+t[1];return l[e]||(l[e]=h(t)),l[e]},this.maxSourceExtent_=i,this.errorThresholdSquared_=r*r,this.triangles_=[],this.wrapsXInSource_=!1,this.canWrapXInSource_=this.sourceProj_.canWrapX()&&!!i&&!!this.sourceProj_.getExtent()&&(0,a.RG)(i)>=(0,a.RG)(this.sourceProj_.getExtent()),this.sourceWorldWidth_=this.sourceProj_.getExtent()?(0,a.RG)(this.sourceProj_.getExtent()):null,this.targetWorldWidth_=this.targetProj_.getExtent()?(0,a.RG)(this.targetProj_.getExtent()):null;const c=(0,a.Py)(n),u=(0,a.WU)(n),d=(0,a.k_)(n),p=(0,a.R)(n),f=this.transformInv_(c),g=this.transformInv_(u),m=this.transformInv_(d),v=this.transformInv_(p),y=10+(o?Math.max(0,Math.ceil(Math.log2((0,a.UG)(n)/(o*o*256*256)))):0);if(this.addQuad_(c,u,d,p,f,g,m,v,y),this.wrapsXInSource_){let t=1/0;this.triangles_.forEach((function(e,n,i){t=Math.min(t,e.source[0][0],e.source[1][0],e.source[2][0])})),this.triangles_.forEach((e=>{if(Math.max(e.source[0][0],e.source[1][0],e.source[2][0])-t>this.sourceWorldWidth_/2){const n=[[e.source[0][0],e.source[0][1]],[e.source[1][0],e.source[1][1]],[e.source[2][0],e.source[2][1]]];n[0][0]-t>this.sourceWorldWidth_/2&&(n[0][0]-=this.sourceWorldWidth_),n[1][0]-t>this.sourceWorldWidth_/2&&(n[1][0]-=this.sourceWorldWidth_),n[2][0]-t>this.sourceWorldWidth_/2&&(n[2][0]-=this.sourceWorldWidth_);const i=Math.min(n[0][0],n[1][0],n[2][0]);Math.max(n[0][0],n[1][0],n[2][0])-i<this.sourceWorldWidth_/2&&(e.source=n)}}))}l={}}addTriangle_(t,e,n,i,r,o){this.triangles_.push({source:[i,r,o],target:[t,e,n]})}addQuad_(t,e,n,i,r,o,s,h,c){const u=(0,a.Tr)([r,o,s,h]),d=this.sourceWorldWidth_?(0,a.RG)(u)/this.sourceWorldWidth_:null,p=this.sourceWorldWidth_,f=this.sourceProj_.canWrapX()&&d>.5&&d<1;let g=!1;if(c>0){if(this.targetProj_.isGlobal()&&this.targetWorldWidth_){const r=(0,a.Tr)([t,e,n,i]);g=(0,a.RG)(r)/this.targetWorldWidth_>.25||g}!f&&this.sourceProj_.isGlobal()&&d&&(g=d>.25||g)}if(!g&&this.maxSourceExtent_&&isFinite(u[0])&&isFinite(u[1])&&isFinite(u[2])&&isFinite(u[3])&&!(0,a.HY)(u,this.maxSourceExtent_))return;let m=0;if(!(g||isFinite(r[0])&&isFinite(r[1])&&isFinite(o[0])&&isFinite(o[1])&&isFinite(s[0])&&isFinite(s[1])&&isFinite(h[0])&&isFinite(h[1])))if(c>0)g=!0;else if(m=(isFinite(r[0])&&isFinite(r[1])?0:8)+(isFinite(o[0])&&isFinite(o[1])?0:4)+(isFinite(s[0])&&isFinite(s[1])?0:2)+(isFinite(h[0])&&isFinite(h[1])?0:1),1!=m&&2!=m&&4!=m&&8!=m)return;if(c>0){if(!g){const e=[(t[0]+n[0])/2,(t[1]+n[1])/2],i=this.transformInv_(e);let o;if(f){o=((0,l.xP)(r[0],p)+(0,l.xP)(s[0],p))/2-(0,l.xP)(i[0],p)}else o=(r[0]+s[0])/2-i[0];const a=(r[1]+s[1])/2-i[1];g=o*o+a*a>this.errorThresholdSquared_}if(g){if(Math.abs(t[0]-n[0])<=Math.abs(t[1]-n[1])){const a=[(e[0]+n[0])/2,(e[1]+n[1])/2],l=this.transformInv_(a),u=[(i[0]+t[0])/2,(i[1]+t[1])/2],d=this.transformInv_(u);this.addQuad_(t,e,a,u,r,o,l,d,c-1),this.addQuad_(u,a,n,i,d,l,s,h,c-1)}else{const a=[(t[0]+e[0])/2,(t[1]+e[1])/2],l=this.transformInv_(a),u=[(n[0]+i[0])/2,(n[1]+i[1])/2],d=this.transformInv_(u);this.addQuad_(t,a,u,i,r,l,d,h,c-1),this.addQuad_(a,e,n,u,l,o,s,d,c-1)}return}}if(f){if(!this.canWrapXInSource_)return;this.wrapsXInSource_=!0}11&m||this.addTriangle_(t,n,i,r,s,h),14&m||this.addTriangle_(t,n,e,r,s,o),m&&(13&m||this.addTriangle_(e,i,t,o,h,r),7&m||this.addTriangle_(e,i,n,o,h,s))}calculateSourceExtent(){const t=(0,a.S5)();return this.triangles_.forEach((function(e,n,i){const r=e.source;(0,a.$C)(t,r[0]),(0,a.$C)(t,r[1]),(0,a.$C)(t,r[2])})),t}getTriangles(){return this.triangles_}};var c=n(7354);let u;const d=[];function p(t,e,n,i,r){t.beginPath(),t.moveTo(0,0),t.lineTo(e,n),t.lineTo(i,r),t.closePath(),t.save(),t.clip(),t.fillRect(0,0,Math.max(e,i)+1,Math.max(n,r)),t.restore()}function f(t,e){return Math.abs(t[4*e]-210)>2||Math.abs(t[4*e+3]-191.25)>2}function g(t,e,n,i){const r=(0,s.pd)(n,e,t);let o=(0,s.hO)(e,i,n);const l=e.getMetersPerUnit();void 0!==l&&(o*=l);const h=t.getMetersPerUnit();void 0!==h&&(o/=h);const c=t.getExtent();if(!c||(0,a.Ym)(c,r)){const e=(0,s.hO)(t,o,r)/o;isFinite(e)&&e>0&&(o/=e)}return o}function m(t,e,n,i,r,o,s,h,g,m,v,y){const _=(0,c.Y)(Math.round(n*t),Math.round(n*e),d);if(y||(_.imageSmoothingEnabled=!1),0===g.length)return _.canvas;function x(t){return Math.round(t*n)/n}_.scale(n,n),_.globalCompositeOperation="lighter";const b=(0,a.S5)();g.forEach((function(t,e,n){(0,a.X$)(b,t.extent)}));const w=(0,a.RG)(b),S=(0,a.Oq)(b),T=(0,c.Y)(Math.round(n*w/i),Math.round(n*S/i),d);y||(T.imageSmoothingEnabled=!1);const M=n/i;g.forEach((function(t,e,n){const i=t.extent[0]-b[0],r=-(t.extent[3]-b[3]),o=(0,a.RG)(t.extent),s=(0,a.Oq)(t.extent);t.image.width>0&&t.image.height>0&&T.drawImage(t.image,m,m,t.image.width-2*m,t.image.height-2*m,i*M,r*M,o*M,s*M)}));const A=(0,a.Py)(s);return h.getTriangles().forEach((function(t,e,r){const a=t.source,s=t.target;let h=a[0][0],g=a[0][1],m=a[1][0],v=a[1][1],w=a[2][0],S=a[2][1];const M=x((s[0][0]-A[0])/o),C=x(-(s[0][1]-A[1])/o),I=x((s[1][0]-A[0])/o),E=x(-(s[1][1]-A[1])/o),k=x((s[2][0]-A[0])/o),L=x(-(s[2][1]-A[1])/o),D=h,P=g;h=0,g=0,m-=D,v-=P,w-=D,S-=P;const R=[[m,v,0,0,I-M],[w,S,0,0,k-M],[0,0,m,v,E-C],[0,0,w,S,L-C]],O=(0,l.KU)(R);if(O){if(_.save(),_.beginPath(),function(){if(void 0===u){const t=(0,c.Y)(6,6,d);t.globalCompositeOperation="lighter",t.fillStyle="rgba(210, 0, 0, 0.75)",p(t,4,5,4,0),p(t,4,5,0,5);const e=t.getImageData(0,0,3,3).data;u=f(e,0)||f(e,4)||f(e,8),(0,c.Yg)(t),d.push(t.canvas)}return u}()||!y){_.moveTo(I,E);const t=4,e=M-I,n=C-E;for(let i=0;i<t;i++)_.lineTo(I+x((i+1)*e/t),E+x(i*n/(t-1))),i!=t-1&&_.lineTo(I+x((i+1)*e/t),E+x((i+1)*n/(t-1)));_.lineTo(k,L)}else _.moveTo(I,E),_.lineTo(M,C),_.lineTo(k,L);_.clip(),_.transform(O[0],O[2],O[1],O[3],M,C),_.translate(b[0]-D,b[3]-P),_.scale(i/n,-i/n),_.drawImage(T.canvas,0,0),_.restore()}})),(0,c.Yg)(T),d.push(T.canvas),v&&(_.save(),_.globalCompositeOperation="source-over",_.strokeStyle="black",_.lineWidth=1,h.getTriangles().forEach((function(t,e,n){const i=t.target,r=(i[0][0]-A[0])/o,a=-(i[0][1]-A[1])/o,s=(i[1][0]-A[0])/o,l=-(i[1][1]-A[1])/o,h=(i[2][0]-A[0])/o,c=-(i[2][1]-A[1])/o;_.beginPath(),_.moveTo(s,l),_.lineTo(r,a),_.lineTo(h,c),_.closePath(),_.stroke()})),_.restore()),_.canvas}var v=n(2657);class y extends r.A{constructor(t,e,n,i,r,s,c,u,d,p,f,m){super(r,o.A.IDLE,{interpolate:!!m}),this.renderEdges_=void 0!==f&&f,this.pixelRatio_=c,this.gutter_=u,this.canvas_=null,this.sourceTileGrid_=e,this.targetTileGrid_=i,this.wrappedTileCoord_=s||r,this.sourceTiles_=[],this.sourcesListenerKeys_=null,this.sourceZ_=0;const v=i.getTileCoordExtent(this.wrappedTileCoord_),y=this.targetTileGrid_.getExtent();let _=this.sourceTileGrid_.getExtent();const x=y?(0,a._N)(v,y):v;if(0===(0,a.UG)(x))return void(this.state=o.A.EMPTY);const b=t.getExtent();b&&(_=_?(0,a._N)(_,b):b);const w=i.getResolution(this.wrappedTileCoord_[0]),S=function(t,e,n,i){const r=(0,a.q1)(n);let o=g(t,e,r,i);return(!isFinite(o)||o<=0)&&(0,a.sB)(n,(function(n){return o=g(t,e,n,i),isFinite(o)&&o>0})),o}(t,n,x,w);if(!isFinite(S)||S<=0)return void(this.state=o.A.EMPTY);const T=void 0!==p?p:.5;if(this.triangulation_=new h(t,n,x,_,S*T,w),0===this.triangulation_.getTriangles().length)return void(this.state=o.A.EMPTY);this.sourceZ_=e.getZForResolution(S);let M=this.triangulation_.calculateSourceExtent();if(_&&(t.canWrapX()?(M[1]=(0,l.qE)(M[1],_[1],_[3]),M[3]=(0,l.qE)(M[3],_[1],_[3])):M=(0,a._N)(M,_)),(0,a.UG)(M)){const t=e.getTileRangeForExtentAndZ(M,this.sourceZ_);for(let e=t.minX;e<=t.maxX;e++)for(let n=t.minY;n<=t.maxY;n++){const t=d(this.sourceZ_,e,n,c);t&&this.sourceTiles_.push(t)}0===this.sourceTiles_.length&&(this.state=o.A.EMPTY)}else this.state=o.A.EMPTY}getImage(){return this.canvas_}reproject_(){const t=[];if(this.sourceTiles_.forEach((e=>{e&&e.getState()==o.A.LOADED&&t.push({extent:this.sourceTileGrid_.getTileCoordExtent(e.tileCoord),image:e.getImage()})})),this.sourceTiles_.length=0,0===t.length)this.state=o.A.ERROR;else{const e=this.wrappedTileCoord_[0],n=this.targetTileGrid_.getTileSize(e),i="number"==typeof n?n:n[0],r="number"==typeof n?n:n[1],a=this.targetTileGrid_.getResolution(e),s=this.sourceTileGrid_.getResolution(this.sourceZ_),l=this.targetTileGrid_.getTileCoordExtent(this.wrappedTileCoord_);this.canvas_=m(i,r,this.pixelRatio_,s,this.sourceTileGrid_.getExtent(),a,l,this.triangulation_,t,this.gutter_,this.renderEdges_,this.interpolate),this.state=o.A.LOADED}this.changed()}load(){if(this.state==o.A.IDLE){this.state=o.A.LOADING,this.changed();let t=0;this.sourcesListenerKeys_=[],this.sourceTiles_.forEach((e=>{const n=e.getState();if(n==o.A.IDLE||n==o.A.LOADING){t++;const n=(0,v.KT)(e,i.A.CHANGE,(function(i){const r=e.getState();r!=o.A.LOADED&&r!=o.A.ERROR&&r!=o.A.EMPTY||((0,v.JH)(n),t--,0===t&&(this.unlistenSources_(),this.reproject_()))}),this);this.sourcesListenerKeys_.push(n)}})),0===t?setTimeout(this.reproject_.bind(this),0):this.sourceTiles_.forEach((function(t,e,n){t.getState()==o.A.IDLE&&t.load()}))}}unlistenSources_(){this.sourcesListenerKeys_.forEach(v.JH),this.sourcesListenerKeys_=null}release(){this.canvas_&&((0,c.Yg)(this.canvas_.getContext("2d")),d.push(this.canvas_),this.canvas_=null),super.release()}}const _=y},8333:(t,e,n)=>{"use strict";n.d(e,{a$:()=>a,b8:()=>r,cq:()=>s,dv:()=>o});var i=n(2878);function r(t){if(void 0!==t)return 0}function o(t){if(void 0!==t)return t}function a(t){const e=2*Math.PI/t;return function(t,n){return n?t:void 0!==t?t=Math.floor(t/e+.5)*e:void 0}}function s(t){return t=t||(0,i.eh)(5),function(e,n){return n?e:void 0!==e?Math.abs(e)<=t?0:e:void 0}}},277:(t,e,n)=>{"use strict";function i(t){return t[0]>0&&t[1]>0}function r(t,e,n){return void 0===n&&(n=[0,0]),n[0]=t[0]*e+.5|0,n[1]=t[1]*e+.5|0,n}function o(t,e){return Array.isArray(t)?t:(void 0===e?e=[t,t]:(e[0]=t,e[1]=t),e)}n.d(e,{Ie:()=>i,hs:()=>r,xq:()=>o})},289:(t,e,n)=>{"use strict";n.d(e,{A:()=>s});var i=n(5191),r=n(6859);class o extends i.A{constructor(t){super(),this.projection=(0,r.Jt)(t.projection),this.attributions_=a(t.attributions),this.attributionsCollapsible_=void 0===t.attributionsCollapsible||t.attributionsCollapsible,this.loading=!1,this.state_=void 0!==t.state?t.state:"ready",this.wrapX_=void 0!==t.wrapX&&t.wrapX,this.interpolate_=!!t.interpolate,this.viewResolver=null,this.viewRejector=null;const e=this;this.viewPromise_=new Promise((function(t,n){e.viewResolver=t,e.viewRejector=n}))}getAttributions(){return this.attributions_}getAttributionsCollapsible(){return this.attributionsCollapsible_}getProjection(){return this.projection}getResolutions(t){return null}getView(){return this.viewPromise_}getState(){return this.state_}getWrapX(){return this.wrapX_}getInterpolate(){return this.interpolate_}refresh(){this.changed()}setAttributions(t){this.attributions_=a(t),this.changed()}setState(t){this.state_=t,this.changed()}}function a(t){return t?Array.isArray(t)?function(e){return t}:"function"==typeof t?t:function(e){return[t]}:null}const s=o},9255:(t,e,n)=>{"use strict";n.d(e,{A:()=>k});var i=n(5616),r=n(5930),o=n(5026),a=n(874),s=n(1335),l=n(3269),h=n(4320),c=n(6916),u=n(6943);const d=class{constructor(t){this.rbush_=new l(t),this.items_={}}insert(t,e){const n={minX:t[0],minY:t[1],maxX:t[2],maxY:t[3],value:e};this.rbush_.insert(n),this.items_[(0,c.v6)(e)]=n}load(t,e){const n=new Array(e.length);for(let i=0,r=e.length;i<r;i++){const r=t[i],o=e[i],a={minX:r[0],minY:r[1],maxX:r[2],maxY:r[3],value:o};n[i]=a,this.items_[(0,c.v6)(o)]=a}this.rbush_.load(n)}remove(t){const e=(0,c.v6)(t),n=this.items_[e];return delete this.items_[e],null!==this.rbush_.remove(n)}update(t,e){const n=this.items_[(0,c.v6)(e)],i=[n.minX,n.minY,n.maxX,n.maxY];(0,h.aI)(i,t)||(this.remove(e),this.insert(t,e))}getAll(){return this.rbush_.all().map((function(t){return t.value}))}getInExtent(t){const e={minX:t[0],minY:t[1],maxX:t[2],maxY:t[3]};return this.rbush_.search(e).map((function(t){return t.value}))}forEach(t){return this.forEach_(this.getAll(),t)}forEachInExtent(t,e){return this.forEach_(this.getInExtent(t),e)}forEach_(t,e){let n;for(let i=0,r=t.length;i<r;i++)if(n=e(t[i]),n)return n;return n}isEmpty(){return(0,u.p)(this.items_)}clear(){this.rbush_.clear(),this.items_={}}getExtent(t){const e=this.rbush_.toJSON();return(0,h.N)(e.minX,e.minY,e.maxX,e.maxY,t)}concat(t){this.rbush_.load(t.rbush_.all());for(const e in t.items_)this.items_[e]=t.items_[e]}};var p=n(289);const f="addfeature",g="changefeature",m="clear",v="removefeature",y="featuresloadstart",_="featuresloadend",x="featuresloaderror";var b=n(6079);n(6859);function w(t,e){return[[-1/0,-1/0,1/0,1/0]]}var S=n(3957),T=n(9783),M=n(2657);let A=!1;function C(t,e){return function(n,i,r,o,a){const s=this;!function(t,e,n,i,r,o,a){const s=new XMLHttpRequest;s.open("GET","function"==typeof t?t(n,i,r):t,!0),"arraybuffer"==e.getType()&&(s.responseType="arraybuffer"),s.withCredentials=A,s.onload=function(t){if(!s.status||s.status>=200&&s.status<300){const t=e.getType();let i;"json"==t||"text"==t?i=s.responseText:"xml"==t?(i=s.responseXML,i||(i=(new DOMParser).parseFromString(s.responseText,"application/xml"))):"arraybuffer"==t&&(i=s.response),i?o(e.readFeatures(i,{extent:n,featureProjection:r}),e.readProjection(i)):a()}else a()},s.onerror=a,s.send()}(t,e,n,i,r,(function(t,e){s.addFeatures(t),void 0!==o&&o(t)}),a||b.tV)}}class I extends o.Ay{constructor(t,e,n){super(t),this.feature=e,this.features=n}}class E extends p.A{constructor(t){super({attributions:(t=t||{}).attributions,interpolate:!0,projection:void 0,state:"ready",wrapX:void 0===t.wrapX||t.wrapX}),this.on,this.once,this.un,this.loader_=b.tV,this.format_=t.format,this.overlaps_=void 0===t.overlaps||t.overlaps,this.url_=t.url,void 0!==t.loader?this.loader_=t.loader:void 0!==this.url_&&((0,S.v)(this.format_,7),this.loader_=C(this.url_,this.format_)),this.strategy_=void 0!==t.strategy?t.strategy:w;const e=void 0===t.useSpatialIndex||t.useSpatialIndex;let n,r;this.featuresRtree_=e?new d:null,this.loadedExtentsRtree_=new d,this.loadingExtentsCount_=0,this.nullGeometryFeatures_={},this.idIndex_={},this.uidIndex_={},this.featureChangeKeys_={},this.featuresCollection_=null,Array.isArray(t.features)?r=t.features:t.features&&(n=t.features,r=n.getArray()),e||void 0!==n||(n=new i.A(r)),void 0!==r&&this.addFeaturesInternal(r),void 0!==n&&this.bindFeaturesCollection_(n)}addFeature(t){this.addFeatureInternal(t),this.changed()}addFeatureInternal(t){const e=(0,c.v6)(t);if(!this.addToIndex_(e,t))return void(this.featuresCollection_&&this.featuresCollection_.remove(t));this.setupChangeEvents_(e,t);const n=t.getGeometry();if(n){const e=n.getExtent();this.featuresRtree_&&this.featuresRtree_.insert(e,t)}else this.nullGeometryFeatures_[e]=t;this.dispatchEvent(new I(f,t))}setupChangeEvents_(t,e){this.featureChangeKeys_[t]=[(0,M.KT)(e,a.A.CHANGE,this.handleFeatureChange_,this),(0,M.KT)(e,s.A.PROPERTYCHANGE,this.handleFeatureChange_,this)]}addToIndex_(t,e){let n=!0;const i=e.getId();return void 0!==i&&(i.toString()in this.idIndex_?n=!1:this.idIndex_[i.toString()]=e),n&&((0,S.v)(!(t in this.uidIndex_),30),this.uidIndex_[t]=e),n}addFeatures(t){this.addFeaturesInternal(t),this.changed()}addFeaturesInternal(t){const e=[],n=[],i=[];for(let r=0,o=t.length;r<o;r++){const e=t[r],i=(0,c.v6)(e);this.addToIndex_(i,e)&&n.push(e)}for(let r=0,o=n.length;r<o;r++){const t=n[r],o=(0,c.v6)(t);this.setupChangeEvents_(o,t);const a=t.getGeometry();if(a){const n=a.getExtent();e.push(n),i.push(t)}else this.nullGeometryFeatures_[o]=t}if(this.featuresRtree_&&this.featuresRtree_.load(e,i),this.hasListener(f))for(let r=0,o=n.length;r<o;r++)this.dispatchEvent(new I(f,n[r]))}bindFeaturesCollection_(t){let e=!1;this.addEventListener(f,(function(n){e||(e=!0,t.push(n.feature),e=!1)})),this.addEventListener(v,(function(n){e||(e=!0,t.remove(n.feature),e=!1)})),t.addEventListener(r.A.ADD,(t=>{e||(e=!0,this.addFeature(t.element),e=!1)})),t.addEventListener(r.A.REMOVE,(t=>{e||(e=!0,this.removeFeature(t.element),e=!1)})),this.featuresCollection_=t}clear(t){if(t){for(const t in this.featureChangeKeys_){this.featureChangeKeys_[t].forEach(M.JH)}this.featuresCollection_||(this.featureChangeKeys_={},this.idIndex_={},this.uidIndex_={})}else if(this.featuresRtree_){const t=t=>{this.removeFeatureInternal(t)};this.featuresRtree_.forEach(t);for(const e in this.nullGeometryFeatures_)this.removeFeatureInternal(this.nullGeometryFeatures_[e])}this.featuresCollection_&&this.featuresCollection_.clear(),this.featuresRtree_&&this.featuresRtree_.clear(),this.nullGeometryFeatures_={};const e=new I(m);this.dispatchEvent(e),this.changed()}forEachFeature(t){if(this.featuresRtree_)return this.featuresRtree_.forEach(t);this.featuresCollection_&&this.featuresCollection_.forEach(t)}forEachFeatureAtCoordinateDirect(t,e){const n=[t[0],t[1],t[0],t[1]];return this.forEachFeatureInExtent(n,(function(n){if(n.getGeometry().intersectsCoordinate(t))return e(n)}))}forEachFeatureInExtent(t,e){if(this.featuresRtree_)return this.featuresRtree_.forEachInExtent(t,e);this.featuresCollection_&&this.featuresCollection_.forEach(e)}forEachFeatureIntersectingExtent(t,e){return this.forEachFeatureInExtent(t,(function(n){if(n.getGeometry().intersectsExtent(t)){const t=e(n);if(t)return t}}))}getFeaturesCollection(){return this.featuresCollection_}getFeatures(){let t;return this.featuresCollection_?t=this.featuresCollection_.getArray().slice(0):this.featuresRtree_&&(t=this.featuresRtree_.getAll(),(0,u.p)(this.nullGeometryFeatures_)||(0,T.X$)(t,Object.values(this.nullGeometryFeatures_))),t}getFeaturesAtCoordinate(t){const e=[];return this.forEachFeatureAtCoordinateDirect(t,(function(t){e.push(t)})),e}getFeaturesInExtent(t,e){if(this.featuresRtree_){if(!(e&&e.canWrapX()&&this.getWrapX()))return this.featuresRtree_.getInExtent(t);const n=(0,h.QJ)(t,e);return[].concat(...n.map((t=>this.featuresRtree_.getInExtent(t))))}return this.featuresCollection_?this.featuresCollection_.getArray().slice(0):[]}getClosestFeatureToCoordinate(t,e){const n=t[0],i=t[1];let r=null;const o=[NaN,NaN];let a=1/0;const s=[-1/0,-1/0,1/0,1/0];return e=e||b.rT,this.featuresRtree_.forEachInExtent(s,(function(t){if(e(t)){const e=t.getGeometry(),l=a;if(a=e.closestPointXY(n,i,o,a),a<l){r=t;const e=Math.sqrt(a);s[0]=n-e,s[1]=i-e,s[2]=n+e,s[3]=i+e}}})),r}getExtent(t){return this.featuresRtree_.getExtent(t)}getFeatureById(t){const e=this.idIndex_[t.toString()];return void 0!==e?e:null}getFeatureByUid(t){const e=this.uidIndex_[t];return void 0!==e?e:null}getFormat(){return this.format_}getOverlaps(){return this.overlaps_}getUrl(){return this.url_}handleFeatureChange_(t){const e=t.target,n=(0,c.v6)(e),i=e.getGeometry();if(i){const t=i.getExtent();n in this.nullGeometryFeatures_?(delete this.nullGeometryFeatures_[n],this.featuresRtree_&&this.featuresRtree_.insert(t,e)):this.featuresRtree_&&this.featuresRtree_.update(t,e)}else n in this.nullGeometryFeatures_||(this.featuresRtree_&&this.featuresRtree_.remove(e),this.nullGeometryFeatures_[n]=e);const r=e.getId();if(void 0!==r){const t=r.toString();this.idIndex_[t]!==e&&(this.removeFromIdIndex_(e),this.idIndex_[t]=e)}else this.removeFromIdIndex_(e),this.uidIndex_[n]=e;this.changed(),this.dispatchEvent(new I(g,e))}hasFeature(t){const e=t.getId();return void 0!==e?e in this.idIndex_:(0,c.v6)(t)in this.uidIndex_}isEmpty(){return this.featuresRtree_?this.featuresRtree_.isEmpty()&&(0,u.p)(this.nullGeometryFeatures_):!this.featuresCollection_||0===this.featuresCollection_.getLength()}loadFeatures(t,e,n){const i=this.loadedExtentsRtree_,r=this.strategy_(t,e,n);for(let o=0,a=r.length;o<a;++o){const t=r[o];i.forEachInExtent(t,(function(e){return(0,h.ms)(e.extent,t)}))||(++this.loadingExtentsCount_,this.dispatchEvent(new I(y)),this.loader_.call(this,t,e,n,(t=>{--this.loadingExtentsCount_,this.dispatchEvent(new I(_,void 0,t))}),(()=>{--this.loadingExtentsCount_,this.dispatchEvent(new I(x))})),i.insert(t,{extent:t.slice()}))}this.loading=!(this.loader_.length<4)&&this.loadingExtentsCount_>0}refresh(){this.clear(!0),this.loadedExtentsRtree_.clear(),super.refresh()}removeLoadedExtent(t){const e=this.loadedExtentsRtree_;let n;e.forEachInExtent(t,(function(e){if((0,h.aI)(e.extent,t))return n=e,!0})),n&&e.remove(n)}removeFeature(t){if(!t)return;const e=(0,c.v6)(t);e in this.nullGeometryFeatures_?delete this.nullGeometryFeatures_[e]:this.featuresRtree_&&this.featuresRtree_.remove(t);this.removeFeatureInternal(t)&&this.changed()}removeFeatureInternal(t){const e=(0,c.v6)(t),n=this.featureChangeKeys_[e];if(!n)return;n.forEach(M.JH),delete this.featureChangeKeys_[e];const i=t.getId();return void 0!==i&&delete this.idIndex_[i.toString()],delete this.uidIndex_[e],this.dispatchEvent(new I(v,t)),t}removeFromIdIndex_(t){let e=!1;for(const n in this.idIndex_)if(this.idIndex_[n]===t){delete this.idIndex_[n],e=!0;break}return e}setLoader(t){this.loader_=t}setUrl(t){(0,S.v)(this.format_,7),this.url_=t,this.setLoader(C(t,this.format_))}}const k=E},3264:(t,e,n)=>{"use strict";n.d(e,{A:()=>B});var i=n(874),r=n(931),o=n(4864),a=n(8169),s=n(5751);const l="tileloadstart",h="tileloadend",c="tileloaderror";var u=n(5026),d=n(289),p=n(6916),f=n(3957),g=n(6859),m=n(1747),v=n(3107),y=n(8086),_=n(2878),x=n(4320),b=n(2453),w=n(9783),S=n(277);const T=[0,0,0];const M=class{constructor(t){let e;if(this.minZoom=void 0!==t.minZoom?t.minZoom:0,this.resolutions_=t.resolutions,(0,f.v)((0,w.WC)(this.resolutions_,(function(t,e){return e-t}),!0),17),!t.origins)for(let i=0,r=this.resolutions_.length-1;i<r;++i)if(e){if(this.resolutions_[i]/this.resolutions_[i+1]!==e){e=void 0;break}}else e=this.resolutions_[i]/this.resolutions_[i+1];this.zoomFactor_=e,this.maxZoom=this.resolutions_.length-1,this.origin_=void 0!==t.origin?t.origin:null,this.origins_=null,void 0!==t.origins&&(this.origins_=t.origins,(0,f.v)(this.origins_.length==this.resolutions_.length,20));const n=t.extent;void 0===n||this.origin_||this.origins_||(this.origin_=(0,x.Py)(n)),(0,f.v)(!this.origin_&&this.origins_||this.origin_&&!this.origins_,18),this.tileSizes_=null,void 0!==t.tileSizes&&(this.tileSizes_=t.tileSizes,(0,f.v)(this.tileSizes_.length==this.resolutions_.length,19)),this.tileSize_=void 0!==t.tileSize?t.tileSize:this.tileSizes_?null:y.R,(0,f.v)(!this.tileSize_&&this.tileSizes_||this.tileSize_&&!this.tileSizes_,22),this.extent_=void 0!==n?n:null,this.fullTileRanges_=null,this.tmpSize_=[0,0],this.tmpExtent_=[0,0,0,0],void 0!==t.sizes?this.fullTileRanges_=t.sizes.map((function(t,e){const i=new v.A(Math.min(0,t[0]),Math.max(t[0]-1,-1),Math.min(0,t[1]),Math.max(t[1]-1,-1));if(n){const t=this.getTileRangeForExtentAndZ(n,e);i.minX=Math.max(t.minX,i.minX),i.maxX=Math.min(t.maxX,i.maxX),i.minY=Math.max(t.minY,i.minY),i.maxY=Math.min(t.maxY,i.maxY)}return i}),this):n&&this.calculateTileRanges_(n)}forEachTileCoord(t,e,n){const i=this.getTileRangeForExtentAndZ(t,e);for(let r=i.minX,o=i.maxX;r<=o;++r)for(let t=i.minY,a=i.maxY;t<=a;++t)n([e,r,t])}forEachTileCoordParentTileRange(t,e,n,i){let r,o,a,s=null,l=t[0]-1;for(2===this.zoomFactor_?(o=t[1],a=t[2]):s=this.getTileCoordExtent(t,i);l>=this.minZoom;){if(2===this.zoomFactor_?(o=Math.floor(o/2),a=Math.floor(a/2),r=(0,v.N)(o,o,a,a,n)):r=this.getTileRangeForExtentAndZ(s,l,n),e(l,r))return!0;--l}return!1}getExtent(){return this.extent_}getMaxZoom(){return this.maxZoom}getMinZoom(){return this.minZoom}getOrigin(t){return this.origin_?this.origin_:this.origins_[t]}getResolution(t){return this.resolutions_[t]}getResolutions(){return this.resolutions_}getTileCoordChildTileRange(t,e,n){if(t[0]<this.maxZoom){if(2===this.zoomFactor_){const n=2*t[1],i=2*t[2];return(0,v.N)(n,n+1,i,i+1,e)}const i=this.getTileCoordExtent(t,n||this.tmpExtent_);return this.getTileRangeForExtentAndZ(i,t[0]+1,e)}return null}getTileRangeForTileCoordAndZ(t,e,n){if(e>this.maxZoom||e<this.minZoom)return null;const i=t[0],r=t[1],o=t[2];if(e===i)return(0,v.N)(r,o,r,o,n);if(this.zoomFactor_){const t=Math.pow(this.zoomFactor_,e-i),a=Math.floor(r*t),s=Math.floor(o*t);if(e<i)return(0,v.N)(a,a,s,s,n);const l=Math.floor(t*(r+1))-1,h=Math.floor(t*(o+1))-1;return(0,v.N)(a,l,s,h,n)}const a=this.getTileCoordExtent(t,this.tmpExtent_);return this.getTileRangeForExtentAndZ(a,e,n)}getTileRangeForExtentAndZ(t,e,n){this.getTileCoordForXYAndZ_(t[0],t[3],e,!1,T);const i=T[1],r=T[2];this.getTileCoordForXYAndZ_(t[2],t[1],e,!0,T);const o=T[1],a=T[2];return(0,v.N)(i,o,r,a,n)}getTileCoordCenter(t){const e=this.getOrigin(t[0]),n=this.getResolution(t[0]),i=(0,S.xq)(this.getTileSize(t[0]),this.tmpSize_);return[e[0]+(t[1]+.5)*i[0]*n,e[1]-(t[2]+.5)*i[1]*n]}getTileCoordExtent(t,e){const n=this.getOrigin(t[0]),i=this.getResolution(t[0]),r=(0,S.xq)(this.getTileSize(t[0]),this.tmpSize_),o=n[0]+t[1]*r[0]*i,a=n[1]-(t[2]+1)*r[1]*i,s=o+r[0]*i,l=a+r[1]*i;return(0,x.N)(o,a,s,l,e)}getTileCoordForCoordAndResolution(t,e,n){return this.getTileCoordForXYAndResolution_(t[0],t[1],e,!1,n)}getTileCoordForXYAndResolution_(t,e,n,i,r){const o=this.getZForResolution(n),a=n/this.getResolution(o),s=this.getOrigin(o),l=(0,S.xq)(this.getTileSize(o),this.tmpSize_);let h=a*(t-s[0])/n/l[0],c=a*(s[1]-e)/n/l[1];return i?(h=(0,_.mk)(h,5)-1,c=(0,_.mk)(c,5)-1):(h=(0,_.RI)(h,5),c=(0,_.RI)(c,5)),(0,m.N)(o,h,c,r)}getTileCoordForXYAndZ_(t,e,n,i,r){const o=this.getOrigin(n),a=this.getResolution(n),s=(0,S.xq)(this.getTileSize(n),this.tmpSize_);let l=(t-o[0])/a/s[0],h=(o[1]-e)/a/s[1];return i?(l=(0,_.mk)(l,5)-1,h=(0,_.mk)(h,5)-1):(l=(0,_.RI)(l,5),h=(0,_.RI)(h,5)),(0,m.N)(n,l,h,r)}getTileCoordForCoordAndZ(t,e,n){return this.getTileCoordForXYAndZ_(t[0],t[1],e,!1,n)}getTileCoordResolution(t){return this.resolutions_[t[0]]}getTileSize(t){return this.tileSize_?this.tileSize_:this.tileSizes_[t]}getFullTileRange(t){return this.fullTileRanges_?this.fullTileRanges_[t]:this.extent_?this.getTileRangeForExtentAndZ(this.extent_,t):null}getZForResolution(t,e){const n=(0,w.FT)(this.resolutions_,t,e||0);return(0,_.qE)(n,this.minZoom,this.maxZoom)}tileCoordIntersectsViewport(t,e){return(0,b.sj)(e,0,e.length,2,this.getTileCoordExtent(t))}calculateTileRanges_(t){const e=this.resolutions_.length,n=new Array(e);for(let i=this.minZoom;i<e;++i)n[i]=this.getTileRangeForExtentAndZ(t,i);this.fullTileRanges_=n}};function A(t){let e=t.getDefaultTileGrid();return e||(e=function(t,e,n,i){const r=I(t);return function(t,e,n,i){i=void 0!==i?i:"top-left";const r=C(t,e,n);return new M({extent:t,origin:(0,x.qF)(t,i),resolutions:r,tileSize:n})}(r,e,n,i)}(t),t.setDefaultTileGrid(e)),e}function C(t,e,n,i){e=void 0!==e?e:y.L,n=(0,S.xq)(void 0!==n?n:y.R);const r=(0,x.Oq)(t),o=(0,x.RG)(t);i=i>0?i:Math.max(o/n[0],r/n[1]);const a=e+1,s=new Array(a);for(let l=0;l<a;++l)s[l]=i/Math.pow(2,l);return s}function I(t){let e=(t=(0,g.Jt)(t)).getExtent();if(!e){const n=180*g.Ig.degrees/t.getMetersPerUnit();e=(0,x.N)(-n,-n,n,n)}return e}class E extends d.A{constructor(t){super({attributions:t.attributions,attributionsCollapsible:t.attributionsCollapsible,projection:t.projection,state:t.state,wrapX:t.wrapX,interpolate:t.interpolate}),this.on,this.once,this.un,this.opaque_=void 0!==t.opaque&&t.opaque,this.tilePixelRatio_=void 0!==t.tilePixelRatio?t.tilePixelRatio:1,this.tileGrid=void 0!==t.tileGrid?t.tileGrid:null;const e=[256,256];this.tileGrid&&(0,S.xq)(this.tileGrid.getTileSize(this.tileGrid.getMinZoom()),e),this.tileCache=new a.A(t.cacheSize||0),this.tmpSize=[0,0],this.key_=t.key||"",this.tileOptions={transition:t.transition,interpolate:t.interpolate},this.zDirection=t.zDirection?t.zDirection:0}canExpireCache(){return this.tileCache.canExpireCache()}expireCache(t,e){const n=this.getTileCacheForProjection(t);n&&n.expireCache(e)}forEachLoadedTile(t,e,n,i){const r=this.getTileCacheForProjection(t);if(!r)return!1;let o,a,l,h=!0;for(let c=n.minX;c<=n.maxX;++c)for(let t=n.minY;t<=n.maxY;++t)a=(0,m.dp)(e,c,t),l=!1,r.containsKey(a)&&(o=r.get(a),l=o.getState()===s.A.LOADED,l&&(l=!1!==i(o))),l||(h=!1);return h}getGutterForProjection(t){return 0}getKey(){return this.key_}setKey(t){this.key_!==t&&(this.key_=t,this.changed())}getOpaque(t){return this.opaque_}getResolutions(t){const e=t?this.getTileGridForProjection(t):this.tileGrid;return e?e.getResolutions():null}getTile(t,e,n,i,r){return(0,p.b0)()}getTileGrid(){return this.tileGrid}getTileGridForProjection(t){return this.tileGrid?this.tileGrid:A(t)}getTileCacheForProjection(t){const e=this.getProjection();return(0,f.v)(null===e||(0,g.tI)(e,t),68),this.tileCache}getTilePixelRatio(t){return this.tilePixelRatio_}getTilePixelSize(t,e,n){const i=this.getTileGridForProjection(n),r=this.getTilePixelRatio(e),o=(0,S.xq)(i.getTileSize(t),this.tmpSize);return 1==r?o:(0,S.hs)(o,r,this.tmpSize)}getTileCoordForTileUrlFunction(t,e){e=void 0!==e?e:this.getProjection();const n=this.getTileGridForProjection(e);return this.getWrapX()&&e.isGlobal()&&(t=function(t,e,n){const i=e[0],r=t.getTileCoordCenter(e),o=I(n);if(!(0,x.Ym)(o,r)){const e=(0,x.RG)(o),n=Math.ceil((o[0]-r[0])/e);return r[0]+=e*n,t.getTileCoordForCoordAndZ(r,i)}return e}(n,t,e)),(0,m.N5)(t,n)?t:null}clear(){this.tileCache.clear()}refresh(){this.clear(),super.refresh()}updateCacheSize(t,e){const n=this.getTileCacheForProjection(e);t>n.highWaterMark&&(n.highWaterMark=t)}useTile(t,e,n,i){}}class k extends u.Ay{constructor(t,e){super(t),this.tile=e}}const L=E;function D(t,e){const n=/\{z\}/g,i=/\{x\}/g,r=/\{y\}/g,o=/\{-y\}/g;return function(a,s,l){if(a)return t.replace(n,a[0].toString()).replace(i,a[1].toString()).replace(r,a[2].toString()).replace(o,(function(){const t=a[0],n=e.getFullTileRange(t);(0,f.v)(n,55);return(n.getHeight()-a[2]-1).toString()}))}}function P(t,e){const n=t.length,i=new Array(n);for(let r=0;r<n;++r)i[r]=D(t[r],e);return function(t){if(1===t.length)return t[0];return function(e,n,i){if(!e)return;const r=(0,m.tW)(e),o=(0,_.xP)(r,t.length);return t[o](e,n,i)}}(i)}class R extends L{constructor(t){super({attributions:t.attributions,cacheSize:t.cacheSize,opaque:t.opaque,projection:t.projection,state:t.state,tileGrid:t.tileGrid,tilePixelRatio:t.tilePixelRatio,wrapX:t.wrapX,transition:t.transition,interpolate:t.interpolate,key:t.key,attributionsCollapsible:t.attributionsCollapsible,zDirection:t.zDirection}),this.generateTileUrlFunction_=this.tileUrlFunction===R.prototype.tileUrlFunction,this.tileLoadFunction=t.tileLoadFunction,t.tileUrlFunction&&(this.tileUrlFunction=t.tileUrlFunction),this.urls=null,t.urls?this.setUrls(t.urls):t.url&&this.setUrl(t.url),this.tileLoadingKeys_={}}getTileLoadFunction(){return this.tileLoadFunction}getTileUrlFunction(){return Object.getPrototypeOf(this).tileUrlFunction===this.tileUrlFunction?this.tileUrlFunction.bind(this):this.tileUrlFunction}getUrls(){return this.urls}handleTileChange(t){const e=t.target,n=(0,p.v6)(e),i=e.getState();let r;i==s.A.LOADING?(this.tileLoadingKeys_[n]=!0,r=l):n in this.tileLoadingKeys_&&(delete this.tileLoadingKeys_[n],r=i==s.A.ERROR?c:i==s.A.LOADED?h:void 0),null!=r&&this.dispatchEvent(new k(r,e))}setTileLoadFunction(t){this.tileCache.clear(),this.tileLoadFunction=t,this.changed()}setTileUrlFunction(t,e){this.tileUrlFunction=t,this.tileCache.pruneExceptNewestZ(),void 0!==e?this.setKey(e):this.changed()}setUrl(t){const e=function(t){const e=[];let n=/\{([a-z])-([a-z])\}/.exec(t);if(n){const i=n[1].charCodeAt(0),r=n[2].charCodeAt(0);let o;for(o=i;o<=r;++o)e.push(t.replace(n[0],String.fromCharCode(o)));return e}if(n=/\{(\d+)-(\d+)\}/.exec(t),n){const i=parseInt(n[2],10);for(let r=parseInt(n[1],10);r<=i;r++)e.push(t.replace(n[0],r.toString()));return e}return e.push(t),e}(t);this.urls=e,this.setUrls(e)}setUrls(t){this.urls=t;const e=t.join("\n");this.generateTileUrlFunction_?this.setTileUrlFunction(P(t,this.tileGrid),e):this.setKey(e)}tileUrlFunction(t,e,n){}useTile(t,e,n){const i=(0,m.dp)(t,e,n);this.tileCache.containsKey(i)&&this.tileCache.get(i)}}const O=R;function N(t,e){t.getImage().src=e}const F=class extends O{constructor(t){super({attributions:t.attributions,cacheSize:t.cacheSize,opaque:t.opaque,projection:t.projection,state:t.state,tileGrid:t.tileGrid,tileLoadFunction:t.tileLoadFunction?t.tileLoadFunction:N,tilePixelRatio:t.tilePixelRatio,tileUrlFunction:t.tileUrlFunction,url:t.url,urls:t.urls,wrapX:t.wrapX,transition:t.transition,interpolate:void 0===t.interpolate||t.interpolate,key:t.key,attributionsCollapsible:t.attributionsCollapsible,zDirection:t.zDirection}),this.crossOrigin=void 0!==t.crossOrigin?t.crossOrigin:null,this.tileClass=void 0!==t.tileClass?t.tileClass:r.A,this.tileCacheForProjection={},this.tileGridForProjection={},this.reprojectionErrorThreshold_=t.reprojectionErrorThreshold,this.renderReprojectionEdges_=!1}canExpireCache(){if(this.tileCache.canExpireCache())return!0;for(const t in this.tileCacheForProjection)if(this.tileCacheForProjection[t].canExpireCache())return!0;return!1}expireCache(t,e){const n=this.getTileCacheForProjection(t);this.tileCache.expireCache(this.tileCache==n?e:{});for(const i in this.tileCacheForProjection){const t=this.tileCacheForProjection[i];t.expireCache(t==n?e:{})}}getGutterForProjection(t){return this.getProjection()&&t&&!(0,g.tI)(this.getProjection(),t)?0:this.getGutter()}getGutter(){return 0}getKey(){let t=super.getKey();return this.getInterpolate()||(t+=":disable-interpolation"),t}getOpaque(t){return!(this.getProjection()&&t&&!(0,g.tI)(this.getProjection(),t))&&super.getOpaque(t)}getTileGridForProjection(t){const e=this.getProjection();if(this.tileGrid&&(!e||(0,g.tI)(e,t)))return this.tileGrid;const n=(0,p.v6)(t);return n in this.tileGridForProjection||(this.tileGridForProjection[n]=A(t)),this.tileGridForProjection[n]}getTileCacheForProjection(t){const e=this.getProjection();if(!e||(0,g.tI)(e,t))return this.tileCache;const n=(0,p.v6)(t);return n in this.tileCacheForProjection||(this.tileCacheForProjection[n]=new a.A(this.tileCache.highWaterMark)),this.tileCacheForProjection[n]}createTile_(t,e,n,r,o,a){const l=[t,e,n],h=this.getTileCoordForTileUrlFunction(l,o),c=h?this.tileUrlFunction(h,r,o):void 0,u=new this.tileClass(l,void 0!==c?s.A.IDLE:s.A.EMPTY,void 0!==c?c:"",this.crossOrigin,this.tileLoadFunction,this.tileOptions);return u.key=a,u.addEventListener(i.A.CHANGE,this.handleTileChange.bind(this)),u}getTile(t,e,n,i,r){const a=this.getProjection();if(!a||!r||(0,g.tI)(a,r))return this.getTileInternal(t,e,n,i,a||r);const s=this.getTileCacheForProjection(r),l=[t,e,n];let h;const c=(0,m.i7)(l);s.containsKey(c)&&(h=s.get(c));const u=this.getKey();if(h&&h.key==u)return h;const d=this.getTileGridForProjection(a),p=this.getTileGridForProjection(r),f=this.getTileCoordForTileUrlFunction(l,r),v=new o.A(a,d,r,p,l,f,this.getTilePixelRatio(i),this.getGutter(),((t,e,n,i)=>this.getTileInternal(t,e,n,i,a)),this.reprojectionErrorThreshold_,this.renderReprojectionEdges_,this.getInterpolate());return v.key=u,h?(v.interimTile=h,v.refreshInterimChain(),s.replace(c,v)):s.set(c,v),v}getTileInternal(t,e,n,i,r){let o=null;const a=(0,m.dp)(t,e,n),l=this.getKey();if(this.tileCache.containsKey(a)){if(o=this.tileCache.get(a),o.key!=l){const h=o;o=this.createTile_(t,e,n,i,r,l),h.getState()==s.A.IDLE?o.interimTile=h.interimTile:o.interimTile=h,o.refreshInterimChain(),this.tileCache.replace(a,o)}}else o=this.createTile_(t,e,n,i,r,l),this.tileCache.set(a,o);return o}setRenderReprojectionEdges(t){if(this.renderReprojectionEdges_!=t){this.renderReprojectionEdges_=t;for(const t in this.tileCacheForProjection)this.tileCacheForProjection[t].clear();this.changed()}}setTileGridForProjection(t,e){const n=(0,g.Jt)(t);if(n){const t=(0,p.v6)(n);t in this.tileGridForProjection||(this.tileGridForProjection[t]=e)}}clear(){super.clear();for(const t in this.tileCacheForProjection)this.tileCacheForProjection[t].clear()}};const B=class extends F{constructor(t){const e=void 0!==(t=t||{}).projection?t.projection:"EPSG:3857",n=void 0!==t.tileGrid?t.tileGrid:function(t){const e=t||{},n=e.extent||(0,g.Jt)("EPSG:3857").getExtent(),i={extent:n,minZoom:e.minZoom,tileSize:e.tileSize,resolutions:C(n,e.maxZoom,e.tileSize,e.maxResolution)};return new M(i)}({extent:I(e),maxResolution:t.maxResolution,maxZoom:t.maxZoom,minZoom:t.minZoom,tileSize:t.tileSize});super({attributions:t.attributions,cacheSize:t.cacheSize,crossOrigin:t.crossOrigin,interpolate:t.interpolate,opaque:t.opaque,projection:e,reprojectionErrorThreshold:t.reprojectionErrorThreshold,tileGrid:n,tileLoadFunction:t.tileLoadFunction,tilePixelRatio:t.tilePixelRatio,tileUrlFunction:t.tileUrlFunction,url:t.url,urls:t.urls,wrapX:void 0===t.wrapX||t.wrapX,transition:t.transition,attributionsCollapsible:t.attributionsCollapsible,zDirection:t.zDirection}),this.gutter_=void 0!==t.gutter?t.gutter:0}getGutter(){return this.gutter_}}},4913:(t,e,n)=>{"use strict";n.d(e,{Yf:()=>o,cY:()=>a});var i=n(2878);const r=6371008.8;function o(t,e,n){n=n||r;const o=(0,i.eh)(t[1]),a=(0,i.eh)(e[1]),s=(a-o)/2,l=(0,i.eh)(e[0]-t[0])/2,h=Math.sin(s)*Math.sin(s)+Math.sin(l)*Math.sin(l)*Math.cos(o)*Math.cos(a);return 2*n*Math.atan2(Math.sqrt(h),Math.sqrt(1-h))}function a(t,e,n,o){o=o||r;const a=(0,i.eh)(t[1]),s=(0,i.eh)(t[0]),l=e/o,h=Math.asin(Math.sin(a)*Math.cos(l)+Math.cos(a)*Math.sin(l)*Math.cos(n)),c=s+Math.atan2(Math.sin(n)*Math.sin(l)*Math.cos(a),Math.cos(l)-Math.sin(a)*Math.sin(h));return[(0,i.xW)(c),(0,i.xW)(h)]}},5390:(t,e,n)=>{"use strict";n.d(e,{A:()=>o});var i=n(6539);class r extends i.A{constructor(t){super({points:1/0,fill:(t=t||{radius:5}).fill,radius:t.radius,stroke:t.stroke,scale:void 0!==t.scale?t.scale:1,rotation:void 0!==t.rotation?t.rotation:0,rotateWithView:void 0!==t.rotateWithView&&t.rotateWithView,displacement:void 0!==t.displacement?t.displacement:[0,0],declutterMode:t.declutterMode})}clone(){const t=this.getScale(),e=new r({fill:this.getFill()?this.getFill().clone():void 0,stroke:this.getStroke()?this.getStroke().clone():void 0,radius:this.getRadius(),scale:Array.isArray(t)?t.slice():t,rotation:this.getRotation(),rotateWithView:this.getRotateWithView(),displacement:this.getDisplacement().slice(),declutterMode:this.getDeclutterMode()});return e.setOpacity(this.getOpacity()),e}setRadius(t){this.radius_=t,this.render()}}const o=r},9091:(t,e,n)=>{"use strict";n.d(e,{A:()=>r});class i{constructor(t){t=t||{},this.color_=void 0!==t.color?t.color:null}clone(){const t=this.getColor();return new i({color:Array.isArray(t)?t.slice():t||void 0})}getColor(){return this.color_}setColor(t){this.color_=t}}const r=i},1386:(t,e,n)=>{"use strict";n.d(e,{u:()=>a});var i=n(1805);class r{constructor(){this.cache_={},this.cacheSize_=0,this.maxCacheSize_=32}clear(){this.cache_={},this.cacheSize_=0}canExpireCache(){return this.cacheSize_>this.maxCacheSize_}expire(){if(this.canExpireCache()){let t=0;for(const e in this.cache_){const n=this.cache_[e];3&t++||n.hasListener()||(delete this.cache_[e],--this.cacheSize_)}}}get(t,e,n){const i=o(t,e,n);return i in this.cache_?this.cache_[i]:null}set(t,e,n,i){const r=o(t,e,n);this.cache_[r]=i,++this.cacheSize_}setSize(t){this.maxCacheSize_=t,this.expire()}}function o(t,e,n){return e+":"+t+":"+(n?(0,i.oJ)(n):"null")}const a=new r},9113:(t,e,n)=>{"use strict";n.d(e,{A:()=>a});var i=n(6916),r=n(277);class o{constructor(t){this.opacity_=t.opacity,this.rotateWithView_=t.rotateWithView,this.rotation_=t.rotation,this.scale_=t.scale,this.scaleArray_=(0,r.xq)(t.scale),this.displacement_=t.displacement,this.declutterMode_=t.declutterMode}clone(){const t=this.getScale();return new o({opacity:this.getOpacity(),scale:Array.isArray(t)?t.slice():t,rotation:this.getRotation(),rotateWithView:this.getRotateWithView(),displacement:this.getDisplacement().slice(),declutterMode:this.getDeclutterMode()})}getOpacity(){return this.opacity_}getRotateWithView(){return this.rotateWithView_}getRotation(){return this.rotation_}getScale(){return this.scale_}getScaleArray(){return this.scaleArray_}getDisplacement(){return this.displacement_}getDeclutterMode(){return this.declutterMode_}getAnchor(){return(0,i.b0)()}getImage(t){return(0,i.b0)()}getHitDetectionImage(){return(0,i.b0)()}getPixelRatio(t){return 1}getImageState(){return(0,i.b0)()}getImageSize(){return(0,i.b0)()}getOrigin(){return(0,i.b0)()}getSize(){return(0,i.b0)()}setDisplacement(t){this.displacement_=t}setOpacity(t){this.opacity_=t}setRotateWithView(t){this.rotateWithView_=t}setRotation(t){this.rotation_=t}setScale(t){this.scale_=t,this.scaleArray_=(0,r.xq)(t)}listenImageChange(t){(0,i.b0)()}load(){(0,i.b0)()}unlistenImageChange(t){(0,i.b0)()}}const a=o},6539:(t,e,n)=>{"use strict";n.d(e,{A:()=>c});var i=n(438),r=n(9113),o=n(1805),a=n(154),s=n(7354),l=n(1763);class h extends r.A{constructor(t){super({opacity:1,rotateWithView:void 0!==t.rotateWithView&&t.rotateWithView,rotation:void 0!==t.rotation?t.rotation:0,scale:void 0!==t.scale?t.scale:1,displacement:void 0!==t.displacement?t.displacement:[0,0],declutterMode:t.declutterMode}),this.canvas_=void 0,this.hitDetectionCanvas_=null,this.fill_=void 0!==t.fill?t.fill:null,this.origin_=[0,0],this.points_=t.points,this.radius_=void 0!==t.radius?t.radius:t.radius1,this.radius2_=t.radius2,this.angle_=void 0!==t.angle?t.angle:0,this.stroke_=void 0!==t.stroke?t.stroke:null,this.size_=null,this.renderOptions_=null,this.render()}clone(){const t=this.getScale(),e=new h({fill:this.getFill()?this.getFill().clone():void 0,points:this.getPoints(),radius:this.getRadius(),radius2:this.getRadius2(),angle:this.getAngle(),stroke:this.getStroke()?this.getStroke().clone():void 0,rotation:this.getRotation(),rotateWithView:this.getRotateWithView(),scale:Array.isArray(t)?t.slice():t,displacement:this.getDisplacement().slice(),declutterMode:this.getDeclutterMode()});return e.setOpacity(this.getOpacity()),e}getAnchor(){const t=this.size_;if(!t)return null;const e=this.getDisplacement(),n=this.getScaleArray();return[t[0]/2-e[0]/n[0],t[1]/2+e[1]/n[1]]}getAngle(){return this.angle_}getFill(){return this.fill_}setFill(t){this.fill_=t,this.render()}getHitDetectionImage(){return this.hitDetectionCanvas_||this.createHitDetectionCanvas_(this.renderOptions_),this.hitDetectionCanvas_}getImage(t){let e=this.canvas_[t];if(!e){const n=this.renderOptions_,i=(0,s.Y)(n.size*t,n.size*t);this.draw_(n,i,t),e=i.canvas,this.canvas_[t]=e}return e}getPixelRatio(t){return t}getImageSize(){return this.size_}getImageState(){return i.A.LOADED}getOrigin(){return this.origin_}getPoints(){return this.points_}getRadius(){return this.radius_}getRadius2(){return this.radius2_}getSize(){return this.size_}getStroke(){return this.stroke_}setStroke(t){this.stroke_=t,this.render()}listenImageChange(t){}load(){}unlistenImageChange(t){}calculateLineJoinSize_(t,e,n){if(0===e||this.points_===1/0||"bevel"!==t&&"miter"!==t)return e;let i=this.radius_,r=void 0===this.radius2_?i:this.radius2_;if(i<r){const t=i;i=r,r=t}const o=void 0===this.radius2_?this.points_:2*this.points_,a=2*Math.PI/o,s=r*Math.sin(a),l=i-Math.sqrt(r*r-s*s),h=Math.sqrt(s*s+l*l),c=h/s;if("miter"===t&&c<=n)return c*e;const u=e/2/c,d=e/2*(l/h),p=Math.sqrt((i+u)*(i+u)+d*d)-i;if(void 0===this.radius2_||"bevel"===t)return 2*p;const f=i*Math.sin(a),g=r-Math.sqrt(i*i-f*f),m=Math.sqrt(f*f+g*g)/f;if(m<=n){const t=m*e/2-r-i;return 2*Math.max(p,t)}return 2*p}createRenderOptions(){let t,e=l._K,n=0,i=null,r=0,o=0;this.stroke_&&(t=this.stroke_.getColor(),null===t&&(t=l.NT),t=(0,a.F)(t),o=this.stroke_.getWidth(),void 0===o&&(o=l.aq),i=this.stroke_.getLineDash(),r=this.stroke_.getLineDashOffset(),e=this.stroke_.getLineJoin(),void 0===e&&(e=l._K),n=this.stroke_.getMiterLimit(),void 0===n&&(n=l.eL));const s=this.calculateLineJoinSize_(e,o,n),h=Math.max(this.radius_,this.radius2_||0);return{strokeStyle:t,strokeWidth:o,size:Math.ceil(2*h+s),lineDash:i,lineDashOffset:r,lineJoin:e,miterLimit:n}}render(){this.renderOptions_=this.createRenderOptions();const t=this.renderOptions_.size;this.canvas_={},this.size_=[t,t]}draw_(t,e,n){if(e.scale(n,n),e.translate(t.size/2,t.size/2),this.createPath_(e),this.fill_){let t=this.fill_.getColor();null===t&&(t=l.qY),e.fillStyle=(0,a.F)(t),e.fill()}this.stroke_&&(e.strokeStyle=t.strokeStyle,e.lineWidth=t.strokeWidth,t.lineDash&&(e.setLineDash(t.lineDash),e.lineDashOffset=t.lineDashOffset),e.lineJoin=t.lineJoin,e.miterLimit=t.miterLimit,e.stroke())}createHitDetectionCanvas_(t){if(this.fill_){let e=this.fill_.getColor(),n=0;if("string"==typeof e&&(e=(0,o._j)(e)),null===e?n=1:Array.isArray(e)&&(n=4===e.length?e[3]:1),0===n){const e=(0,s.Y)(t.size,t.size);this.hitDetectionCanvas_=e.canvas,this.drawHitDetectionCanvas_(t,e)}}this.hitDetectionCanvas_||(this.hitDetectionCanvas_=this.getImage(1))}createPath_(t){let e=this.points_;const n=this.radius_;if(e===1/0)t.arc(0,0,n,0,2*Math.PI);else{const i=void 0===this.radius2_?n:this.radius2_;void 0!==this.radius2_&&(e*=2);const r=this.angle_-Math.PI/2,o=2*Math.PI/e;for(let a=0;a<e;a++){const e=r+a*o,s=a%2==0?n:i;t.lineTo(s*Math.cos(e),s*Math.sin(e))}t.closePath()}}drawHitDetectionCanvas_(t,e){e.translate(t.size/2,t.size/2),this.createPath_(e),e.fillStyle=l.qY,e.fill(),this.stroke_&&(e.strokeStyle=t.strokeStyle,e.lineWidth=t.strokeWidth,t.lineDash&&(e.setLineDash(t.lineDash),e.lineDashOffset=t.lineDashOffset),e.lineJoin=t.lineJoin,e.miterLimit=t.miterLimit,e.stroke())}}const c=h},3698:(t,e,n)=>{"use strict";n.d(e,{A:()=>r});class i{constructor(t){t=t||{},this.color_=void 0!==t.color?t.color:null,this.lineCap_=t.lineCap,this.lineDash_=void 0!==t.lineDash?t.lineDash:null,this.lineDashOffset_=t.lineDashOffset,this.lineJoin_=t.lineJoin,this.miterLimit_=t.miterLimit,this.width_=t.width}clone(){const t=this.getColor();return new i({color:Array.isArray(t)?t.slice():t||void 0,lineCap:this.getLineCap(),lineDash:this.getLineDash()?this.getLineDash().slice():void 0,lineDashOffset:this.getLineDashOffset(),lineJoin:this.getLineJoin(),miterLimit:this.getMiterLimit(),width:this.getWidth()})}getColor(){return this.color_}getLineCap(){return this.lineCap_}getLineDash(){return this.lineDash_}getLineDashOffset(){return this.lineDashOffset_}getLineJoin(){return this.lineJoin_}getMiterLimit(){return this.miterLimit_}getWidth(){return this.width_}setColor(t){this.color_=t}setLineCap(t){this.lineCap_=t}setLineDash(t){this.lineDash_=t}setLineDashOffset(t){this.lineDashOffset_=t}setLineJoin(t){this.lineJoin_=t}setMiterLimit(t){this.miterLimit_=t}setWidth(t){this.width_=t}}const r=i},6365:(t,e,n)=>{"use strict";n.d(e,{Ay:()=>d,d1:()=>c,mC:()=>l});var i=n(5390),r=n(9091),o=n(3698),a=n(3957);class s{constructor(t){t=t||{},this.geometry_=null,this.geometryFunction_=u,void 0!==t.geometry&&this.setGeometry(t.geometry),this.fill_=void 0!==t.fill?t.fill:null,this.image_=void 0!==t.image?t.image:null,this.renderer_=void 0!==t.renderer?t.renderer:null,this.hitDetectionRenderer_=void 0!==t.hitDetectionRenderer?t.hitDetectionRenderer:null,this.stroke_=void 0!==t.stroke?t.stroke:null,this.text_=void 0!==t.text?t.text:null,this.zIndex_=t.zIndex}clone(){let t=this.getGeometry();return t&&"object"==typeof t&&(t=t.clone()),new s({geometry:t,fill:this.getFill()?this.getFill().clone():void 0,image:this.getImage()?this.getImage().clone():void 0,renderer:this.getRenderer(),stroke:this.getStroke()?this.getStroke().clone():void 0,text:this.getText()?this.getText().clone():void 0,zIndex:this.getZIndex()})}getRenderer(){return this.renderer_}setRenderer(t){this.renderer_=t}setHitDetectionRenderer(t){this.hitDetectionRenderer_=t}getHitDetectionRenderer(){return this.hitDetectionRenderer_}getGeometry(){return this.geometry_}getGeometryFunction(){return this.geometryFunction_}getFill(){return this.fill_}setFill(t){this.fill_=t}getImage(){return this.image_}setImage(t){this.image_=t}getStroke(){return this.stroke_}setStroke(t){this.stroke_=t}getText(){return this.text_}setText(t){this.text_=t}getZIndex(){return this.zIndex_}setGeometry(t){"function"==typeof t?this.geometryFunction_=t:"string"==typeof t?this.geometryFunction_=function(e){return e.get(t)}:t?void 0!==t&&(this.geometryFunction_=function(){return t}):this.geometryFunction_=u,this.geometry_=t}setZIndex(t){this.zIndex_=t}}function l(t){let e;if("function"==typeof t)e=t;else{let n;if(Array.isArray(t))n=t;else{(0,a.v)("function"==typeof t.getZIndex,41);n=[t]}e=function(){return n}}return e}let h=null;function c(t,e){if(!h){const t=new r.A({color:"rgba(255,255,255,0.4)"}),e=new o.A({color:"#3399CC",width:1.25});h=[new s({image:new i.A({fill:t,stroke:e,radius:5}),fill:t,stroke:e})]}return h}function u(t){return t.getGeometry()}const d=s},8981:(t,e,n)=>{"use strict";n.d(e,{A:()=>a});var i=n(9091),r=n(277);class o{constructor(t){t=t||{},this.font_=t.font,this.rotation_=t.rotation,this.rotateWithView_=t.rotateWithView,this.scale_=t.scale,this.scaleArray_=(0,r.xq)(void 0!==t.scale?t.scale:1),this.text_=t.text,this.textAlign_=t.textAlign,this.justify_=t.justify,this.repeat_=t.repeat,this.textBaseline_=t.textBaseline,this.fill_=void 0!==t.fill?t.fill:new i.A({color:"#333"}),this.maxAngle_=void 0!==t.maxAngle?t.maxAngle:Math.PI/4,this.placement_=void 0!==t.placement?t.placement:"point",this.overflow_=!!t.overflow,this.stroke_=void 0!==t.stroke?t.stroke:null,this.offsetX_=void 0!==t.offsetX?t.offsetX:0,this.offsetY_=void 0!==t.offsetY?t.offsetY:0,this.backgroundFill_=t.backgroundFill?t.backgroundFill:null,this.backgroundStroke_=t.backgroundStroke?t.backgroundStroke:null,this.padding_=void 0===t.padding?null:t.padding}clone(){const t=this.getScale();return new o({font:this.getFont(),placement:this.getPlacement(),repeat:this.getRepeat(),maxAngle:this.getMaxAngle(),overflow:this.getOverflow(),rotation:this.getRotation(),rotateWithView:this.getRotateWithView(),scale:Array.isArray(t)?t.slice():t,text:this.getText(),textAlign:this.getTextAlign(),justify:this.getJustify(),textBaseline:this.getTextBaseline(),fill:this.getFill()?this.getFill().clone():void 0,stroke:this.getStroke()?this.getStroke().clone():void 0,offsetX:this.getOffsetX(),offsetY:this.getOffsetY(),backgroundFill:this.getBackgroundFill()?this.getBackgroundFill().clone():void 0,backgroundStroke:this.getBackgroundStroke()?this.getBackgroundStroke().clone():void 0,padding:this.getPadding()||void 0})}getOverflow(){return this.overflow_}getFont(){return this.font_}getMaxAngle(){return this.maxAngle_}getPlacement(){return this.placement_}getRepeat(){return this.repeat_}getOffsetX(){return this.offsetX_}getOffsetY(){return this.offsetY_}getFill(){return this.fill_}getRotateWithView(){return this.rotateWithView_}getRotation(){return this.rotation_}getScale(){return this.scale_}getScaleArray(){return this.scaleArray_}getStroke(){return this.stroke_}getText(){return this.text_}getTextAlign(){return this.textAlign_}getJustify(){return this.justify_}getTextBaseline(){return this.textBaseline_}getBackgroundFill(){return this.backgroundFill_}getBackgroundStroke(){return this.backgroundStroke_}getPadding(){return this.padding_}setOverflow(t){this.overflow_=t}setFont(t){this.font_=t}setMaxAngle(t){this.maxAngle_=t}setOffsetX(t){this.offsetX_=t}setOffsetY(t){this.offsetY_=t}setPlacement(t){this.placement_=t}setRepeat(t){this.repeat_=t}setRotateWithView(t){this.rotateWithView_=t}setFill(t){this.fill_=t}setRotation(t){this.rotation_=t}setScale(t){this.scale_=t,this.scaleArray_=(0,r.xq)(void 0!==t?t:1)}setStroke(t){this.stroke_=t}setText(t){this.text_=t}setTextAlign(t){this.textAlign_=t}setJustify(t){this.justify_=t}setTextBaseline(t){this.textBaseline_=t}setBackgroundFill(t){this.backgroundFill_=t}setBackgroundStroke(t){this.backgroundStroke_=t}setPadding(t){this.padding_=t}}const a=o},1747:(t,e,n)=>{"use strict";function i(t,e,n,i){return void 0!==i?(i[0]=t,i[1]=e,i[2]=n,i):[t,e,n]}function r(t,e,n){return t+"/"+e+"/"+n}function o(t){return r(t[0],t[1],t[2])}function a(t){return t.split("/").map(Number)}function s(t){return(t[1]<<t[0])+t[2]}function l(t,e){const n=t[0],i=t[1],r=t[2];if(e.getMinZoom()>n||n>e.getMaxZoom())return!1;const o=e.getFullTileRange(n);return!o||o.containsXY(i,r)}n.d(e,{K:()=>a,N:()=>i,N5:()=>l,dp:()=>r,i7:()=>o,tW:()=>s})},8086:(t,e,n)=>{"use strict";n.d(e,{L:()=>i,R:()=>r});const i=42,r=256},686:(t,e,n)=>{"use strict";n.d(e,{Bb:()=>h,T9:()=>d,Zz:()=>u,dI:()=>f,k3:()=>l,lw:()=>a,rQ:()=>c,vt:()=>o});var i=n(6306),r=n(3957);new Array(6);function o(){return[1,0,0,1,0,0]}function a(t,e){const n=t[0],i=t[1],r=t[2],o=t[3],a=t[4],s=t[5],l=e[0],h=e[1],c=e[2],u=e[3],d=e[4],p=e[5];return t[0]=n*l+r*h,t[1]=i*l+o*h,t[2]=n*c+r*u,t[3]=i*c+o*u,t[4]=n*d+r*p+a,t[5]=i*d+o*p+s,t}function s(t,e,n,i,r,o,a){return t[0]=e,t[1]=n,t[2]=i,t[3]=r,t[4]=o,t[5]=a,t}function l(t,e){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3],t[4]=e[4],t[5]=e[5],t}function h(t,e){const n=e[0],i=e[1];return e[0]=t[0]*n+t[2]*i+t[4],e[1]=t[1]*n+t[3]*i+t[5],e}function c(t,e,n){return s(t,e,0,0,n,0,0)}function u(t,e,n,i,r,o,a,s){const l=Math.sin(o),h=Math.cos(o);return t[0]=i*h,t[1]=r*l,t[2]=-i*l,t[3]=r*h,t[4]=a*i*h-s*i*l+e,t[5]=a*r*l+s*r*h+n,t}function d(t,e){const n=(i=e)[0]*i[3]-i[1]*i[2];var i;(0,r.v)(0!==n,32);const o=e[0],a=e[1],s=e[2],l=e[3],h=e[4],c=e[5];return t[0]=l/n,t[1]=-a/n,t[2]=-s/n,t[3]=o/n,t[4]=(s*c-l*h)/n,t[5]=-(o*c-a*h)/n,t}let p;function f(t){const e="matrix("+t.join(", ")+")";if(i.Wl)return e;const n=p||(p=document.createElement("div"));return n.style.transform=e,n.style.transform}},6916:(t,e,n)=>{"use strict";function i(){throw new Error("Unimplemented abstract method.")}n.d(e,{b0:()=>i,v6:()=>o,xv:()=>a});let r=0;function o(t){return t.ol_uid||(t.ol_uid=String(++r))}const a="7.5.2"},4061:(t,e,n)=>{"use strict";n.d(e,{A:()=>w});var i=n(5853),r=n(8854),o=n(5383),a=n(2510),s=n(4611),l=n(7845),h=n(9875),c=n(7219),u=n(5667),d="__zr_normal__",p=i.Wx.concat(["ignore"]),f=(0,l.reduce)(i.Wx,(function(t,e){return t[e]=!0,t}),{ignore:!1}),g={},m=new o.A(0,0,0,0),v=function(){function t(t){this.id=(0,l.guid)(),this.animators=[],this.currentStates=[],this.states={},this._init(t)}return t.prototype._init=function(t){this.attr(t)},t.prototype.drift=function(t,e,n){switch(this.draggable){case"horizontal":e=0;break;case"vertical":t=0}var i=this.transform;i||(i=this.transform=[1,0,0,1,0,0]),i[4]+=t,i[5]+=e,this.decomposeTransform(),this.markRedraw()},t.prototype.beforeUpdate=function(){},t.prototype.afterUpdate=function(){},t.prototype.update=function(){this.updateTransform(),this.__dirty&&this.updateInnerText()},t.prototype.updateInnerText=function(t){var e=this._textContent;if(e&&(!e.ignore||t)){this.textConfig||(this.textConfig={});var n=this.textConfig,i=n.local,r=e.innerTransformable,o=void 0,a=void 0,l=!1;r.parent=i?this:null;var h=!1;if(r.copyTransform(e),null!=n.position){var c=m;n.layoutRect?c.copy(n.layoutRect):c.copy(this.getBoundingRect()),i||c.applyTransform(this.transform),this.calculateTextPosition?this.calculateTextPosition(g,n,c):(0,s.X4)(g,n,c),r.x=g.x,r.y=g.y,o=g.align,a=g.verticalAlign;var d=n.origin;if(d&&null!=n.rotation){var p=void 0,f=void 0;"center"===d?(p=.5*c.width,f=.5*c.height):(p=(0,s.lo)(d[0],c.width),f=(0,s.lo)(d[1],c.height)),h=!0,r.originX=-r.x+p+(i?0:c.x),r.originY=-r.y+f+(i?0:c.y)}}null!=n.rotation&&(r.rotation=n.rotation);var v=n.offset;v&&(r.x+=v[0],r.y+=v[1],h||(r.originX=-v[0],r.originY=-v[1]));var y=null==n.inside?"string"==typeof n.position&&n.position.indexOf("inside")>=0:n.inside,_=this._innerTextDefaultStyle||(this._innerTextDefaultStyle={}),x=void 0,b=void 0,w=void 0;y&&this.canBeInsideText()?(x=n.insideFill,b=n.insideStroke,null!=x&&"auto"!==x||(x=this.getInsideTextFill()),null!=b&&"auto"!==b||(b=this.getInsideTextStroke(x),w=!0)):(x=n.outsideFill,b=n.outsideStroke,null!=x&&"auto"!==x||(x=this.getOutsideFill()),null!=b&&"auto"!==b||(b=this.getOutsideStroke(x),w=!0)),(x=x||"#000")===_.fill&&b===_.stroke&&w===_.autoStroke&&o===_.align&&a===_.verticalAlign||(l=!0,_.fill=x,_.stroke=b,_.autoStroke=w,_.align=o,_.verticalAlign=a,e.setDefaultTextStyle(_)),e.__dirty|=u.M,l&&e.dirtyStyle(!0)}},t.prototype.canBeInsideText=function(){return!0},t.prototype.getInsideTextFill=function(){return"#fff"},t.prototype.getInsideTextStroke=function(t){return"#000"},t.prototype.getOutsideFill=function(){return this.__zr&&this.__zr.isDarkMode()?h.el:h._S},t.prototype.getOutsideStroke=function(t){var e=this.__zr&&this.__zr.getBackgroundColor(),n="string"==typeof e&&(0,c.parse)(e);n||(n=[255,255,255,1]);for(var i=n[3],r=this.__zr.isDarkMode(),o=0;o<3;o++)n[o]=n[o]*i+(r?0:255)*(1-i);return n[3]=1,(0,c.stringify)(n,"rgba")},t.prototype.traverse=function(t,e){},t.prototype.attrKV=function(t,e){"textConfig"===t?this.setTextConfig(e):"textContent"===t?this.setTextContent(e):"clipPath"===t?this.setClipPath(e):"extra"===t?(this.extra=this.extra||{},(0,l.extend)(this.extra,e)):this[t]=e},t.prototype.hide=function(){this.ignore=!0,this.markRedraw()},t.prototype.show=function(){this.ignore=!1,this.markRedraw()},t.prototype.attr=function(t,e){if("string"==typeof t)this.attrKV(t,e);else if((0,l.isObject)(t))for(var n=t,i=(0,l.keys)(n),r=0;r<i.length;r++){var o=i[r];this.attrKV(o,t[o])}return this.markRedraw(),this},t.prototype.saveCurrentToNormalState=function(t){this._innerSaveToNormal(t);for(var e=this._normalState,n=0;n<this.animators.length;n++){var i=this.animators[n],r=i.__fromStateTransition;if(!(i.getLoop()||r&&r!==d)){var o=i.targetName,a=o?e[o]:e;i.saveTo(a)}}},t.prototype._innerSaveToNormal=function(t){var e=this._normalState;e||(e=this._normalState={}),t.textConfig&&!e.textConfig&&(e.textConfig=this.textConfig),this._savePrimaryToNormal(t,e,p)},t.prototype._savePrimaryToNormal=function(t,e,n){for(var i=0;i<n.length;i++){var r=n[i];null==t[r]||r in e||(e[r]=this[r])}},t.prototype.hasState=function(){return this.currentStates.length>0},t.prototype.getState=function(t){return this.states[t]},t.prototype.ensureState=function(t){var e=this.states;return e[t]||(e[t]={}),e[t]},t.prototype.clearStates=function(t){this.useState(d,!1,t)},t.prototype.useState=function(t,e,n,i){var r=t===d;if(this.hasState()||!r){var o=this.currentStates,a=this.stateTransition;if(!((0,l.indexOf)(o,t)>=0)||!e&&1!==o.length){var s;if(this.stateProxy&&!r&&(s=this.stateProxy(t)),s||(s=this.states&&this.states[t]),s||r){r||this.saveCurrentToNormalState(s);var h=!!(s&&s.hoverLayer||i);h&&this._toggleHoverLayerFlag(!0),this._applyStateObj(t,s,this._normalState,e,!n&&!this.__inHover&&a&&a.duration>0,a);var c=this._textContent,p=this._textGuide;return c&&c.useState(t,e,n,h),p&&p.useState(t,e,n,h),r?(this.currentStates=[],this._normalState={}):e?this.currentStates.push(t):this.currentStates=[t],this._updateAnimationTargets(),this.markRedraw(),!h&&this.__inHover&&(this._toggleHoverLayerFlag(!1),this.__dirty&=~u.M),s}(0,l.logError)("State "+t+" not exists.")}}},t.prototype.useStates=function(t,e,n){if(t.length){var i=[],r=this.currentStates,o=t.length,a=o===r.length;if(a)for(var s=0;s<o;s++)if(t[s]!==r[s]){a=!1;break}if(a)return;for(s=0;s<o;s++){var l=t[s],h=void 0;this.stateProxy&&(h=this.stateProxy(l,t)),h||(h=this.states[l]),h&&i.push(h)}var c=i[o-1],d=!!(c&&c.hoverLayer||n);d&&this._toggleHoverLayerFlag(!0);var p=this._mergeStates(i),f=this.stateTransition;this.saveCurrentToNormalState(p),this._applyStateObj(t.join(","),p,this._normalState,!1,!e&&!this.__inHover&&f&&f.duration>0,f);var g=this._textContent,m=this._textGuide;g&&g.useStates(t,e,d),m&&m.useStates(t,e,d),this._updateAnimationTargets(),this.currentStates=t.slice(),this.markRedraw(),!d&&this.__inHover&&(this._toggleHoverLayerFlag(!1),this.__dirty&=~u.M)}else this.clearStates()},t.prototype.isSilent=function(){for(var t=this.silent,e=this.parent;!t&&e;){if(e.silent){t=!0;break}e=e.parent}return t},t.prototype._updateAnimationTargets=function(){for(var t=0;t<this.animators.length;t++){var e=this.animators[t];e.targetName&&e.changeTarget(this[e.targetName])}},t.prototype.removeState=function(t){var e=(0,l.indexOf)(this.currentStates,t);if(e>=0){var n=this.currentStates.slice();n.splice(e,1),this.useStates(n)}},t.prototype.replaceState=function(t,e,n){var i=this.currentStates.slice(),r=(0,l.indexOf)(i,t),o=(0,l.indexOf)(i,e)>=0;r>=0?o?i.splice(r,1):i[r]=e:n&&!o&&i.push(e),this.useStates(i)},t.prototype.toggleState=function(t,e){e?this.useState(t,!0):this.removeState(t)},t.prototype._mergeStates=function(t){for(var e,n={},i=0;i<t.length;i++){var r=t[i];(0,l.extend)(n,r),r.textConfig&&(e=e||{},(0,l.extend)(e,r.textConfig))}return e&&(n.textConfig=e),n},t.prototype._applyStateObj=function(t,e,n,i,r,o){var a=!(e&&i);e&&e.textConfig?(this.textConfig=(0,l.extend)({},i?this.textConfig:n.textConfig),(0,l.extend)(this.textConfig,e.textConfig)):a&&n.textConfig&&(this.textConfig=n.textConfig);for(var s={},h=!1,c=0;c<p.length;c++){var u=p[c],d=r&&f[u];e&&null!=e[u]?d?(h=!0,s[u]=e[u]):this[u]=e[u]:a&&null!=n[u]&&(d?(h=!0,s[u]=n[u]):this[u]=n[u])}if(!r)for(c=0;c<this.animators.length;c++){var g=this.animators[c],m=g.targetName;g.getLoop()||g.__changeFinalValue(m?(e||n)[m]:e||n)}h&&this._transitionState(t,s,o)},t.prototype._attachComponent=function(t){if((!t.__zr||t.__hostTarget)&&t!==this){var e=this.__zr;e&&t.addSelfToZr(e),t.__zr=e,t.__hostTarget=this}},t.prototype._detachComponent=function(t){t.__zr&&t.removeSelfFromZr(t.__zr),t.__zr=null,t.__hostTarget=null},t.prototype.getClipPath=function(){return this._clipPath},t.prototype.setClipPath=function(t){this._clipPath&&this._clipPath!==t&&this.removeClipPath(),this._attachComponent(t),this._clipPath=t,this.markRedraw()},t.prototype.removeClipPath=function(){var t=this._clipPath;t&&(this._detachComponent(t),this._clipPath=null,this.markRedraw())},t.prototype.getTextContent=function(){return this._textContent},t.prototype.setTextContent=function(t){var e=this._textContent;e!==t&&(e&&e!==t&&this.removeTextContent(),t.innerTransformable=new i.Ay,this._attachComponent(t),this._textContent=t,this.markRedraw())},t.prototype.setTextConfig=function(t){this.textConfig||(this.textConfig={}),(0,l.extend)(this.textConfig,t),this.markRedraw()},t.prototype.removeTextConfig=function(){this.textConfig=null,this.markRedraw()},t.prototype.removeTextContent=function(){var t=this._textContent;t&&(t.innerTransformable=null,this._detachComponent(t),this._textContent=null,this._innerTextDefaultStyle=null,this.markRedraw())},t.prototype.getTextGuideLine=function(){return this._textGuide},t.prototype.setTextGuideLine=function(t){this._textGuide&&this._textGuide!==t&&this.removeTextGuideLine(),this._attachComponent(t),this._textGuide=t,this.markRedraw()},t.prototype.removeTextGuideLine=function(){var t=this._textGuide;t&&(this._detachComponent(t),this._textGuide=null,this.markRedraw())},t.prototype.markRedraw=function(){this.__dirty|=u.M;var t=this.__zr;t&&(this.__inHover?t.refreshHover():t.refresh()),this.__hostTarget&&this.__hostTarget.markRedraw()},t.prototype.dirty=function(){this.markRedraw()},t.prototype._toggleHoverLayerFlag=function(t){this.__inHover=t;var e=this._textContent,n=this._textGuide;e&&(e.__inHover=t),n&&(n.__inHover=t)},t.prototype.addSelfToZr=function(t){if(this.__zr!==t){this.__zr=t;var e=this.animators;if(e)for(var n=0;n<e.length;n++)t.animation.addAnimator(e[n]);this._clipPath&&this._clipPath.addSelfToZr(t),this._textContent&&this._textContent.addSelfToZr(t),this._textGuide&&this._textGuide.addSelfToZr(t)}},t.prototype.removeSelfFromZr=function(t){if(this.__zr){this.__zr=null;var e=this.animators;if(e)for(var n=0;n<e.length;n++)t.animation.removeAnimator(e[n]);this._clipPath&&this._clipPath.removeSelfFromZr(t),this._textContent&&this._textContent.removeSelfFromZr(t),this._textGuide&&this._textGuide.removeSelfFromZr(t)}},t.prototype.animate=function(t,e,n){var i=t?this[t]:this;var o=new r.A(i,e,n);return t&&(o.targetName=t),this.addAnimator(o,t),o},t.prototype.addAnimator=function(t,e){var n=this.__zr,i=this;t.during((function(){i.updateDuringAnimation(e)})).done((function(){var e=i.animators,n=(0,l.indexOf)(e,t);n>=0&&e.splice(n,1)})),this.animators.push(t),n&&n.animation.addAnimator(t),n&&n.wakeUp()},t.prototype.updateDuringAnimation=function(t){this.markRedraw()},t.prototype.stopAnimation=function(t,e){for(var n=this.animators,i=n.length,r=[],o=0;o<i;o++){var a=n[o];t&&t!==a.scope?r.push(a):a.stop(e)}return this.animators=r,this},t.prototype.animateTo=function(t,e,n){y(this,t,e,n)},t.prototype.animateFrom=function(t,e,n){y(this,t,e,n,!0)},t.prototype._transitionState=function(t,e,n,i){for(var r=y(this,e,n,i),o=0;o<r.length;o++)r[o].__fromStateTransition=t},t.prototype.getBoundingRect=function(){return null},t.prototype.getPaintRect=function(){return null},t.initDefaultProps=function(){var e=t.prototype;e.type="element",e.name="",e.ignore=e.silent=e.isGroup=e.draggable=e.dragging=e.ignoreClip=e.__inHover=!1,e.__dirty=u.M;function n(t,n,i,r){function o(t,e){Object.defineProperty(e,0,{get:function(){return t[i]},set:function(e){t[i]=e}}),Object.defineProperty(e,1,{get:function(){return t[r]},set:function(e){t[r]=e}})}Object.defineProperty(e,t,{get:function(){this[n]||o(this,this[n]=[]);return this[n]},set:function(t){this[i]=t[0],this[r]=t[1],this[n]=t,o(this,t)}})}Object.defineProperty&&(n("position","_legacyPos","x","y"),n("scale","_legacyScale","scaleX","scaleY"),n("origin","_legacyOrigin","originX","originY"))}(),t}();function y(t,e,n,i,r){var o=[];b(t,"",t,e,n=n||{},i,o,r);var a=o.length,s=!1,l=n.done,h=n.aborted,c=function(){s=!0,--a<=0&&(s?l&&l():h&&h())},u=function(){--a<=0&&(s?l&&l():h&&h())};a||l&&l(),o.length>0&&n.during&&o[0].during((function(t,e){n.during(e)}));for(var d=0;d<o.length;d++){var p=o[d];c&&p.done(c),u&&p.aborted(u),n.force&&p.duration(n.duration),p.start(n.easing)}return o}function _(t,e,n){for(var i=0;i<n;i++)t[i]=e[i]}function x(t,e,n){if((0,l.isArrayLike)(e[n]))if((0,l.isArrayLike)(t[n])||(t[n]=[]),(0,l.isTypedArray)(e[n])){var i=e[n].length;t[n].length!==i&&(t[n]=new e[n].constructor(i),_(t[n],e[n],i))}else{var r=e[n],o=t[n],a=r.length;if(c=r,(0,l.isArrayLike)(c[0]))for(var s=r[0].length,h=0;h<a;h++)o[h]?_(o[h],r[h],s):o[h]=Array.prototype.slice.call(r[h]);else _(o,r,a);o.length=r.length}else t[n]=e[n];var c}function b(t,e,n,i,o,a,s,h){for(var c=(0,l.keys)(i),u=o.duration,d=o.delay,p=o.additive,f=o.setToFinal,g=!(0,l.isObject)(a),m=t.animators,v=[],y=0;y<c.length;y++){var _=c[y],w=i[_];if(null!=w&&null!=n[_]&&(g||a[_]))if(!(0,l.isObject)(w)||(0,l.isArrayLike)(w)||(0,l.isGradientObject)(w))v.push(_);else{if(e){h||(n[_]=w,t.updateDuringAnimation(e));continue}b(t,_,n[_],w,o,a&&a[_],s,h)}else h||(n[_]=w,t.updateDuringAnimation(e),v.push(_))}var S=v.length;if(!p&&S)for(var T=0;T<m.length;T++){if((A=m[T]).targetName===e)if(A.stopTracks(v)){var M=(0,l.indexOf)(m,A);m.splice(M,1)}}if(o.force||(v=(0,l.filter)(v,(function(t){return e=i[t],r=n[t],!(e===r||(0,l.isArrayLike)(e)&&(0,l.isArrayLike)(r)&&function(t,e){var n=t.length;if(n!==e.length)return!1;for(var i=0;i<n;i++)if(t[i]!==e[i])return!1;return!0}(e,r));var e,r})),S=v.length),S>0||o.force&&!s.length){var A,C=void 0,I=void 0,E=void 0;if(h){I={},f&&(C={});for(T=0;T<S;T++){I[_=v[T]]=n[_],f?C[_]=i[_]:n[_]=i[_]}}else if(f){E={};for(T=0;T<S;T++){E[_=v[T]]=(0,r.F)(n[_]),x(n,i,_)}}(A=new r.A(n,!1,!1,p?(0,l.filter)(m,(function(t){return t.targetName===e})):null)).targetName=e,o.scope&&(A.scope=o.scope),f&&C&&A.whenWithKeys(0,C,v),E&&A.whenWithKeys(0,E,v),A.whenWithKeys(null==u?500:u,h?I:i,v).delay(d||0),t.addAnimator(A,e),s.push(A)}}(0,l.mixin)(v,a.A),(0,l.mixin)(v,i.Ay);const w=v},8854:(t,e,n)=>{"use strict";n.d(e,{F:()=>v,A:()=>S});var i={linear:function(t){return t},quadraticIn:function(t){return t*t},quadraticOut:function(t){return t*(2-t)},quadraticInOut:function(t){return(t*=2)<1?.5*t*t:-.5*(--t*(t-2)-1)},cubicIn:function(t){return t*t*t},cubicOut:function(t){return--t*t*t+1},cubicInOut:function(t){return(t*=2)<1?.5*t*t*t:.5*((t-=2)*t*t+2)},quarticIn:function(t){return t*t*t*t},quarticOut:function(t){return 1- --t*t*t*t},quarticInOut:function(t){return(t*=2)<1?.5*t*t*t*t:-.5*((t-=2)*t*t*t-2)},quinticIn:function(t){return t*t*t*t*t},quinticOut:function(t){return--t*t*t*t*t+1},quinticInOut:function(t){return(t*=2)<1?.5*t*t*t*t*t:.5*((t-=2)*t*t*t*t+2)},sinusoidalIn:function(t){return 1-Math.cos(t*Math.PI/2)},sinusoidalOut:function(t){return Math.sin(t*Math.PI/2)},sinusoidalInOut:function(t){return.5*(1-Math.cos(Math.PI*t))},exponentialIn:function(t){return 0===t?0:Math.pow(1024,t-1)},exponentialOut:function(t){return 1===t?1:1-Math.pow(2,-10*t)},exponentialInOut:function(t){return 0===t?0:1===t?1:(t*=2)<1?.5*Math.pow(1024,t-1):.5*(2-Math.pow(2,-10*(t-1)))},circularIn:function(t){return 1-Math.sqrt(1-t*t)},circularOut:function(t){return Math.sqrt(1- --t*t)},circularInOut:function(t){return(t*=2)<1?-.5*(Math.sqrt(1-t*t)-1):.5*(Math.sqrt(1-(t-=2)*t)+1)},elasticIn:function(t){var e,n=.1;return 0===t?0:1===t?1:(!n||n<1?(n=1,e=.1):e=.4*Math.asin(1/n)/(2*Math.PI),-n*Math.pow(2,10*(t-=1))*Math.sin((t-e)*(2*Math.PI)/.4))},elasticOut:function(t){var e,n=.1;return 0===t?0:1===t?1:(!n||n<1?(n=1,e=.1):e=.4*Math.asin(1/n)/(2*Math.PI),n*Math.pow(2,-10*t)*Math.sin((t-e)*(2*Math.PI)/.4)+1)},elasticInOut:function(t){var e,n=.1,i=.4;return 0===t?0:1===t?1:(!n||n<1?(n=1,e=.1):e=i*Math.asin(1/n)/(2*Math.PI),(t*=2)<1?n*Math.pow(2,10*(t-=1))*Math.sin((t-e)*(2*Math.PI)/i)*-.5:n*Math.pow(2,-10*(t-=1))*Math.sin((t-e)*(2*Math.PI)/i)*.5+1)},backIn:function(t){var e=1.70158;return t*t*((e+1)*t-e)},backOut:function(t){var e=1.70158;return--t*t*((e+1)*t+e)+1},backInOut:function(t){var e=2.5949095;return(t*=2)<1?t*t*((e+1)*t-e)*.5:.5*((t-=2)*t*((e+1)*t+e)+2)},bounceIn:function(t){return 1-i.bounceOut(1-t)},bounceOut:function(t){return t<1/2.75?7.5625*t*t:t<2/2.75?7.5625*(t-=1.5/2.75)*t+.75:t<2.5/2.75?7.5625*(t-=2.25/2.75)*t+.9375:7.5625*(t-=2.625/2.75)*t+.984375},bounceInOut:function(t){return t<.5?.5*i.bounceIn(2*t):.5*i.bounceOut(2*t-1)+.5}};const r=i;var o=n(7845),a=n(1799);const s=function(){function t(t){this._inited=!1,this._startTime=0,this._pausedTime=0,this._paused=!1,this._life=t.life||1e3,this._delay=t.delay||0,this.loop=t.loop||!1,this.onframe=t.onframe||o.noop,this.ondestroy=t.ondestroy||o.noop,this.onrestart=t.onrestart||o.noop,t.easing&&this.setEasing(t.easing)}return t.prototype.step=function(t,e){if(this._inited||(this._startTime=t+this._delay,this._inited=!0),!this._paused){var n=this._life,i=t-this._startTime-this._pausedTime,r=i/n;r<0&&(r=0),r=Math.min(r,1);var o=this.easingFunc,a=o?o(r):r;if(this.onframe(a),1===r){if(!this.loop)return!0;var s=i%n;this._startTime=t-s,this._pausedTime=0,this.onrestart()}return!1}this._pausedTime+=e},t.prototype.pause=function(){this._paused=!0},t.prototype.resume=function(){this._paused=!1},t.prototype.setEasing=function(t){this.easing=t,this.easingFunc=(0,o.isFunction)(t)?t:r[t]||(0,a.w)(t)},t}();var l=n(7219),h=n(9934),c=Array.prototype.slice;function u(t,e,n){return(e-t)*n+t}function d(t,e,n,i){for(var r=e.length,o=0;o<r;o++)t[o]=u(e[o],n[o],i);return t}function p(t,e,n,i){for(var r=e.length,o=0;o<r;o++)t[o]=e[o]+n[o]*i;return t}function f(t,e,n,i){for(var r=e.length,o=r&&e[0].length,a=0;a<r;a++){t[a]||(t[a]=[]);for(var s=0;s<o;s++)t[a][s]=e[a][s]+n[a][s]*i}return t}function g(t,e){for(var n=t.length,i=e.length,r=n>i?e:t,o=Math.min(n,i),a=r[o-1]||{color:[0,0,0,0],offset:0},s=o;s<Math.max(n,i);s++)r.push({offset:a.offset,color:a.color.slice()})}function m(t,e,n){var i=t,r=e;if(i.push&&r.push){var o=i.length,a=r.length;if(o!==a)if(o>a)i.length=a;else for(var s=o;s<a;s++)i.push(1===n?r[s]:c.call(r[s]));var l=i[0]&&i[0].length;for(s=0;s<i.length;s++)if(1===n)isNaN(i[s])&&(i[s]=r[s]);else for(var h=0;h<l;h++)isNaN(i[s][h])&&(i[s][h]=r[s][h])}}function v(t){if((0,o.isArrayLike)(t)){var e=t.length;if((0,o.isArrayLike)(t[0])){for(var n=[],i=0;i<e;i++)n.push(c.call(t[i]));return n}return c.call(t)}return t}function y(t){return t[0]=Math.floor(t[0])||0,t[1]=Math.floor(t[1])||0,t[2]=Math.floor(t[2])||0,t[3]=null==t[3]?1:t[3],"rgba("+t.join(",")+")"}function _(t){return 4===t||5===t}function x(t){return 1===t||2===t}var b=[0,0,0,0],w=function(){function t(t){this.keyframes=[],this.discrete=!1,this._invalid=!1,this._needsSort=!1,this._lastFr=0,this._lastFrP=0,this.propName=t}return t.prototype.isFinished=function(){return this._finished},t.prototype.setFinished=function(){this._finished=!0,this._additiveTrack&&this._additiveTrack.setFinished()},t.prototype.needsAnimate=function(){return this.keyframes.length>=1},t.prototype.getAdditiveTrack=function(){return this._additiveTrack},t.prototype.addKeyframe=function(t,e,n){this._needsSort=!0;var i=this.keyframes,s=i.length,c=!1,u=6,d=e;if((0,o.isArrayLike)(e)){var p=function(t){return(0,o.isArrayLike)(t&&t[0])?2:1}(e);u=p,(1===p&&!(0,o.isNumber)(e[0])||2===p&&!(0,o.isNumber)(e[0][0]))&&(c=!0)}else if((0,o.isNumber)(e)&&!(0,o.eqNaN)(e))u=0;else if((0,o.isString)(e))if(isNaN(+e)){var f=l.parse(e);f&&(d=f,u=3)}else u=0;else if((0,o.isGradientObject)(e)){var g=(0,o.extend)({},d);g.colorStops=(0,o.map)(e.colorStops,(function(t){return{offset:t.offset,color:l.parse(t.color)}})),(0,h.OS)(e)?u=4:(0,h.OH)(e)&&(u=5),d=g}0===s?this.valType=u:u===this.valType&&6!==u||(c=!0),this.discrete=this.discrete||c;var m={time:t,value:d,rawValue:e,percent:0};return n&&(m.easing=n,m.easingFunc=(0,o.isFunction)(n)?n:r[n]||(0,a.w)(n)),i.push(m),m},t.prototype.prepare=function(t,e){var n=this.keyframes;this._needsSort&&n.sort((function(t,e){return t.time-e.time}));for(var i=this.valType,r=n.length,o=n[r-1],a=this.discrete,s=x(i),l=_(i),h=0;h<r;h++){var c=n[h],u=c.value,d=o.value;c.percent=c.time/t,a||(s&&h!==r-1?m(u,d,i):l&&g(u.colorStops,d.colorStops))}if(!a&&5!==i&&e&&this.needsAnimate()&&e.needsAnimate()&&i===e.valType&&!e._finished){this._additiveTrack=e;var v=n[0].value;for(h=0;h<r;h++)0===i?n[h].additiveValue=n[h].value-v:3===i?n[h].additiveValue=p([],n[h].value,v,-1):x(i)&&(n[h].additiveValue=1===i?p([],n[h].value,v,-1):f([],n[h].value,v,-1))}},t.prototype.step=function(t,e){if(!this._finished){this._additiveTrack&&this._additiveTrack._finished&&(this._additiveTrack=null);var n,i,r,a=null!=this._additiveTrack,s=a?"additiveValue":"value",l=this.valType,h=this.keyframes,c=h.length,p=this.propName,f=3===l,g=this._lastFr,m=Math.min;if(1===c)i=r=h[0];else{if(e<0)n=0;else if(e<this._lastFrP){for(n=m(g+1,c-1);n>=0&&!(h[n].percent<=e);n--);n=m(n,c-2)}else{for(n=g;n<c&&!(h[n].percent>e);n++);n=m(n-1,c-2)}r=h[n+1],i=h[n]}if(i&&r){this._lastFr=n,this._lastFrP=e;var v=r.percent-i.percent,w=0===v?1:m((e-i.percent)/v,1);r.easingFunc&&(w=r.easingFunc(w));var S=a?this._additiveValue:f?b:t[p];if(!x(l)&&!f||S||(S=this._additiveValue=[]),this.discrete)t[p]=w<1?i.rawValue:r.rawValue;else if(x(l))1===l?d(S,i[s],r[s],w):function(t,e,n,i){for(var r=e.length,o=r&&e[0].length,a=0;a<r;a++){t[a]||(t[a]=[]);for(var s=0;s<o;s++)t[a][s]=u(e[a][s],n[a][s],i)}}(S,i[s],r[s],w);else if(_(l)){var T=i[s],M=r[s],A=4===l;t[p]={type:A?"linear":"radial",x:u(T.x,M.x,w),y:u(T.y,M.y,w),colorStops:(0,o.map)(T.colorStops,(function(t,e){var n=M.colorStops[e];return{offset:u(t.offset,n.offset,w),color:y(d([],t.color,n.color,w))}})),global:M.global},A?(t[p].x2=u(T.x2,M.x2,w),t[p].y2=u(T.y2,M.y2,w)):t[p].r=u(T.r,M.r,w)}else if(f)d(S,i[s],r[s],w),a||(t[p]=y(S));else{var C=u(i[s],r[s],w);a?this._additiveValue=C:t[p]=C}a&&this._addToTarget(t)}}},t.prototype._addToTarget=function(t){var e=this.valType,n=this.propName,i=this._additiveValue;0===e?t[n]=t[n]+i:3===e?(l.parse(t[n],b),p(b,b,i,1),t[n]=y(b)):1===e?p(t[n],t[n],i,1):2===e&&f(t[n],t[n],i,1)},t}();const S=function(){function t(t,e,n,i){this._tracks={},this._trackKeys=[],this._maxTime=0,this._started=0,this._clip=null,this._target=t,this._loop=e,e&&i?(0,o.logError)("Can' use additive animation on looped animation."):(this._additiveAnimators=i,this._allowDiscrete=n)}return t.prototype.getMaxTime=function(){return this._maxTime},t.prototype.getDelay=function(){return this._delay},t.prototype.getLoop=function(){return this._loop},t.prototype.getTarget=function(){return this._target},t.prototype.changeTarget=function(t){this._target=t},t.prototype.when=function(t,e,n){return this.whenWithKeys(t,e,(0,o.keys)(e),n)},t.prototype.whenWithKeys=function(t,e,n,i){for(var r=this._tracks,o=0;o<n.length;o++){var a=n[o],s=r[a];if(!s){s=r[a]=new w(a);var l=void 0,h=this._getAdditiveTrack(a);if(h){var c=h.keyframes,u=c[c.length-1];l=u&&u.value,3===h.valType&&l&&(l=y(l))}else l=this._target[a];if(null==l)continue;t>0&&s.addKeyframe(0,v(l),i),this._trackKeys.push(a)}s.addKeyframe(t,v(e[a]),i)}return this._maxTime=Math.max(this._maxTime,t),this},t.prototype.pause=function(){this._clip.pause(),this._paused=!0},t.prototype.resume=function(){this._clip.resume(),this._paused=!1},t.prototype.isPaused=function(){return!!this._paused},t.prototype.duration=function(t){return this._maxTime=t,this._force=!0,this},t.prototype._doneCallback=function(){this._setTracksFinished(),this._clip=null;var t=this._doneCbs;if(t)for(var e=t.length,n=0;n<e;n++)t[n].call(this)},t.prototype._abortedCallback=function(){this._setTracksFinished();var t=this.animation,e=this._abortedCbs;if(t&&t.removeClip(this._clip),this._clip=null,e)for(var n=0;n<e.length;n++)e[n].call(this)},t.prototype._setTracksFinished=function(){for(var t=this._tracks,e=this._trackKeys,n=0;n<e.length;n++)t[e[n]].setFinished()},t.prototype._getAdditiveTrack=function(t){var e,n=this._additiveAnimators;if(n)for(var i=0;i<n.length;i++){var r=n[i].getTrack(t);r&&(e=r)}return e},t.prototype.start=function(t){if(!(this._started>0)){this._started=1;for(var e=this,n=[],i=this._maxTime||0,r=0;r<this._trackKeys.length;r++){var o=this._trackKeys[r],a=this._tracks[o],l=this._getAdditiveTrack(o),h=a.keyframes,c=h.length;if(a.prepare(i,l),a.needsAnimate())if(!this._allowDiscrete&&a.discrete){var u=h[c-1];u&&(e._target[a.propName]=u.rawValue),a.setFinished()}else n.push(a)}if(n.length||this._force){var d=new s({life:i,loop:this._loop,delay:this._delay||0,onframe:function(t){e._started=2;var i=e._additiveAnimators;if(i){for(var r=!1,o=0;o<i.length;o++)if(i[o]._clip){r=!0;break}r||(e._additiveAnimators=null)}for(o=0;o<n.length;o++)n[o].step(e._target,t);var a=e._onframeCbs;if(a)for(o=0;o<a.length;o++)a[o](e._target,t)},ondestroy:function(){e._doneCallback()}});this._clip=d,this.animation&&this.animation.addClip(d),t&&d.setEasing(t)}else this._doneCallback();return this}},t.prototype.stop=function(t){if(this._clip){var e=this._clip;t&&e.onframe(1),this._abortedCallback()}},t.prototype.delay=function(t){return this._delay=t,this},t.prototype.during=function(t){return t&&(this._onframeCbs||(this._onframeCbs=[]),this._onframeCbs.push(t)),this},t.prototype.done=function(t){return t&&(this._doneCbs||(this._doneCbs=[]),this._doneCbs.push(t)),this},t.prototype.aborted=function(t){return t&&(this._abortedCbs||(this._abortedCbs=[]),this._abortedCbs.push(t)),this},t.prototype.getClip=function(){return this._clip},t.prototype.getTrack=function(t){return this._tracks[t]},t.prototype.getTracks=function(){var t=this;return(0,o.map)(this._trackKeys,(function(e){return t._tracks[e]}))},t.prototype.stopTracks=function(t,e){if(!t.length||!this._clip)return!0;for(var n=this._tracks,i=this._trackKeys,r=0;r<t.length;r++){var o=n[t[r]];o&&!o.isFinished()&&(e?o.step(this._target,1):1===this._started&&o.step(this._target,0),o.setFinished())}var a=!0;for(r=0;r<i.length;r++)if(!n[i[r]].isFinished()){a=!1;break}return a&&this._abortedCallback(),a},t.prototype.saveTo=function(t,e,n){if(t){e=e||this._trackKeys;for(var i=0;i<e.length;i++){var r=e[i],o=this._tracks[r];if(o&&!o.isFinished()){var a=o.keyframes,s=a[n?0:a.length-1];s&&(t[r]=v(s.rawValue))}}}},t.prototype.__changeFinalValue=function(t,e){e=e||(0,o.keys)(t);for(var n=0;n<e.length;n++){var i=e[n],r=this._tracks[i];if(r){var a=r.keyframes;if(a.length>1){var s=a.pop();r.addKeyframe(s.time,t[i]),r.prepare(this._maxTime,r.getAdditiveTrack())}}}},t}()},1799:(t,e,n)=>{"use strict";n.d(e,{w:()=>a});var i=n(5162),r=n(7845),o=/cubic-bezier\(([0-9,\.e ]+)\)/;function a(t){var e=t&&o.exec(t);if(e){var n=e[1].split(","),a=+(0,r.trim)(n[0]),s=+(0,r.trim)(n[1]),l=+(0,r.trim)(n[2]),h=+(0,r.trim)(n[3]);if(isNaN(a+s+l+h))return;var c=[];return function(t){return t<=0?0:t>=1?1:(0,i._E)(0,a,l,1,t,c)&&(0,i.Yb)(0,s,h,1,c[0])}}}},3358:(t,e,n)=>{"use strict";n.d(e,{A:()=>i});const i=n(4810).A.hasGlobalWindow&&(window.requestAnimationFrame&&window.requestAnimationFrame.bind(window)||window.msRequestAnimationFrame&&window.msRequestAnimationFrame.bind(window)||window.mozRequestAnimationFrame||window.webkitRequestAnimationFrame)||function(t){return setTimeout(t,16)}},2703:(t,e,n)=>{"use strict";n.d(e,{V:()=>r});var i=n(7845);function r(t){var e,n,r=t.style,o=r.lineDash&&r.lineWidth>0&&(e=r.lineDash,n=r.lineWidth,e&&"solid"!==e&&n>0?"dashed"===e?[4*n,2*n]:"dotted"===e?[n]:(0,i.isNumber)(e)?[e]:(0,i.isArray)(e)?e:null:null),a=r.lineDashOffset;if(o){var s=r.strokeNoScale&&t.getLineScale?t.getLineScale():1;s&&1!==s&&(o=(0,i.map)(o,(function(t){return t/s})),a/=s)}return[o,a]}},674:(t,e,n)=>{"use strict";n.d(e,{V$:()=>P,Xi:()=>D,ZQ:()=>x});var i=n(7780),r=n(584),o=n(3822),a=n(4804),s=n(1885),l=n(5975),h=n(3554),c=n(7845),u=n(2703),d=n(5667),p=n(9142),f=new r.A(!0);function g(t){var e=t.stroke;return!(null==e||"none"===e||!(t.lineWidth>0))}function m(t){return"string"==typeof t&&"none"!==t}function v(t){var e=t.fill;return null!=e&&"none"!==e}function y(t,e){if(null!=e.fillOpacity&&1!==e.fillOpacity){var n=t.globalAlpha;t.globalAlpha=e.fillOpacity*e.opacity,t.fill(),t.globalAlpha=n}else t.fill()}function _(t,e){if(null!=e.strokeOpacity&&1!==e.strokeOpacity){var n=t.globalAlpha;t.globalAlpha=e.strokeOpacity*e.opacity,t.stroke(),t.globalAlpha=n}else t.stroke()}function x(t,e,n){var i=(0,o.OD)(e.image,e.__image,n);if((0,o.xA)(i)){var r=t.createPattern(i,e.repeat||"repeat");if("function"==typeof DOMMatrix&&r&&r.setTransform){var a=new DOMMatrix;a.translateSelf(e.x||0,e.y||0),a.rotateSelf(0,0,(e.rotation||0)*c.RADIAN_TO_DEGREE),a.scaleSelf(e.scaleX||1,e.scaleY||1),r.setTransform(a)}return r}}var b=["shadowBlur","shadowOffsetX","shadowOffsetY"],w=[["lineCap","butt"],["lineJoin","miter"],["miterLimit",10]];function S(t,e,n,r,o){var a=!1;if(!r&&e===(n=n||{}))return!1;if(r||e.opacity!==n.opacity){k(t,o),a=!0;var s=Math.max(Math.min(e.opacity,1),0);t.globalAlpha=isNaN(s)?i.oN.opacity:s}(r||e.blend!==n.blend)&&(a||(k(t,o),a=!0),t.globalCompositeOperation=e.blend||i.oN.blend);for(var l=0;l<b.length;l++){var h=b[l];(r||e[h]!==n[h])&&(a||(k(t,o),a=!0),t[h]=t.dpr*(e[h]||0))}return(r||e.shadowColor!==n.shadowColor)&&(a||(k(t,o),a=!0),t.shadowColor=e.shadowColor||i.oN.shadowColor),a}function T(t,e,n,i,r){var o=L(e,r.inHover),a=i?null:n&&L(n,r.inHover)||{};if(o===a)return!1;var s=S(t,o,a,i,r);if((i||o.fill!==a.fill)&&(s||(k(t,r),s=!0),m(o.fill)&&(t.fillStyle=o.fill)),(i||o.stroke!==a.stroke)&&(s||(k(t,r),s=!0),m(o.stroke)&&(t.strokeStyle=o.stroke)),(i||o.opacity!==a.opacity)&&(s||(k(t,r),s=!0),t.globalAlpha=null==o.opacity?1:o.opacity),e.hasStroke()){var l=o.lineWidth/(o.strokeNoScale&&e.getLineScale?e.getLineScale():1);t.lineWidth!==l&&(s||(k(t,r),s=!0),t.lineWidth=l)}for(var h=0;h<w.length;h++){var c=w[h],u=c[0];(i||o[u]!==a[u])&&(s||(k(t,r),s=!0),t[u]=o[u]||c[1])}return s}function M(t,e){var n=e.transform,i=t.dpr||1;n?t.setTransform(i*n[0],i*n[1],i*n[2],i*n[3],i*n[4],i*n[5]):t.setTransform(i,0,0,i,0,0)}var A=1,C=2,I=3,E=4;function k(t,e){e.batchFill&&t.fill(),e.batchStroke&&t.stroke(),e.batchFill="",e.batchStroke=""}function L(t,e){return e&&t.__hoverStyle||t.style}function D(t,e){P(t,e,{inHover:!1,viewWidth:0,viewHeight:0},!0)}function P(t,e,n,i){var r=e.transform;if(!e.shouldBePainted(n.viewWidth,n.viewHeight,!1,!1))return e.__dirty&=~d.M,void(e.__isRendered=!1);var c=e.__clipPaths,m=n.prevElClipPaths,b=!1,w=!1;if(m&&!(0,a.KU)(c,m)||(m&&m.length&&(k(t,n),t.restore(),w=b=!0,n.prevElClipPaths=null,n.allClipped=!1,n.prevEl=null),c&&c.length&&(k(t,n),t.save(),function(t,e,n){for(var i=!1,r=0;r<t.length;r++){var o=t[r];i=i||o.isZeroArea(),M(e,o),e.beginPath(),o.buildPath(e,o.shape),e.clip()}n.allClipped=i}(c,t,n),b=!0),n.prevElClipPaths=c),n.allClipped)e.__isRendered=!1;else{e.beforeBrush&&e.beforeBrush(),e.innerBeforeBrush();var D=n.prevEl;D||(w=b=!0);var R,O,N=e instanceof s.Ay&&e.autoBatch&&function(t){var e=v(t),n=g(t);return!(t.lineDash||!(+e^+n)||e&&"string"!=typeof t.fill||n&&"string"!=typeof t.stroke||t.strokePercent<1||t.strokeOpacity<1||t.fillOpacity<1)}(e.style);b||(R=r,O=D.transform,R&&O?R[0]!==O[0]||R[1]!==O[1]||R[2]!==O[2]||R[3]!==O[3]||R[4]!==O[4]||R[5]!==O[5]:R||O)?(k(t,n),M(t,e)):N||k(t,n);var F=L(e,n.inHover);e instanceof s.Ay?(n.lastDrawType!==A&&(w=!0,n.lastDrawType=A),T(t,e,D,w,n),N&&(n.batchFill||n.batchStroke)||t.beginPath(),function(t,e,n,i){var r,o=g(n),s=v(n),l=n.strokePercent,h=l<1,c=!e.path;e.silent&&!h||!c||e.createPathProxy();var p=e.path||f,m=e.__dirty;if(!i){var b=n.fill,w=n.stroke,S=s&&!!b.colorStops,T=o&&!!w.colorStops,M=s&&!!b.image,A=o&&!!w.image,C=void 0,I=void 0,E=void 0,k=void 0,L=void 0;(S||T)&&(L=e.getBoundingRect()),S&&(C=m?(0,a.Ff)(t,b,L):e.__canvasFillGradient,e.__canvasFillGradient=C),T&&(I=m?(0,a.Ff)(t,w,L):e.__canvasStrokeGradient,e.__canvasStrokeGradient=I),M&&(E=m||!e.__canvasFillPattern?x(t,b,e):e.__canvasFillPattern,e.__canvasFillPattern=E),A&&(k=m||!e.__canvasStrokePattern?x(t,w,e):e.__canvasStrokePattern,e.__canvasStrokePattern=E),S?t.fillStyle=C:M&&(E?t.fillStyle=E:s=!1),T?t.strokeStyle=I:A&&(k?t.strokeStyle=k:o=!1)}var D,P,R=e.getGlobalScale();p.setScale(R[0],R[1],e.segmentIgnoreThreshold),t.setLineDash&&n.lineDash&&(D=(r=(0,u.V)(e))[0],P=r[1]);var O=!0;(c||m&d.Dl)&&(p.setDPR(t.dpr),h?p.setContext(null):(p.setContext(t),O=!1),p.reset(),e.buildPath(p,e.shape,i),p.toStatic(),e.pathUpdated()),O&&p.rebuildPath(t,h?l:1),D&&(t.setLineDash(D),t.lineDashOffset=P),i||(n.strokeFirst?(o&&_(t,n),s&&y(t,n)):(s&&y(t,n),o&&_(t,n))),D&&t.setLineDash([])}(t,e,F,N),N&&(n.batchFill=F.fill||"",n.batchStroke=F.stroke||"")):e instanceof h.A?(n.lastDrawType!==I&&(w=!0,n.lastDrawType=I),T(t,e,D,w,n),function(t,e,n){var i,r=n.text;if(null!=r&&(r+=""),r){t.font=n.font||p.OH,t.textAlign=n.textAlign,t.textBaseline=n.textBaseline;var o=void 0,a=void 0;t.setLineDash&&n.lineDash&&(o=(i=(0,u.V)(e))[0],a=i[1]),o&&(t.setLineDash(o),t.lineDashOffset=a),n.strokeFirst?(g(n)&&t.strokeText(r,n.x,n.y),v(n)&&t.fillText(r,n.x,n.y)):(v(n)&&t.fillText(r,n.x,n.y),g(n)&&t.strokeText(r,n.x,n.y)),o&&t.setLineDash([])}}(t,e,F)):e instanceof l.Ay?(n.lastDrawType!==C&&(w=!0,n.lastDrawType=C),function(t,e,n,i,r){S(t,L(e,r.inHover),n&&L(n,r.inHover),i,r)}(t,e,D,w,n),function(t,e,n){var i=e.__image=(0,o.OD)(n.image,e.__image,e,e.onload);if(i&&(0,o.xA)(i)){var r=n.x||0,a=n.y||0,s=e.getWidth(),l=e.getHeight(),h=i.width/i.height;if(null==s&&null!=l?s=l*h:null==l&&null!=s?l=s/h:null==s&&null==l&&(s=i.width,l=i.height),n.sWidth&&n.sHeight){var c=n.sx||0,u=n.sy||0;t.drawImage(i,c,u,n.sWidth,n.sHeight,r,a,s,l)}else if(n.sx&&n.sy){var d=s-(c=n.sx),p=l-(u=n.sy);t.drawImage(i,c,u,d,p,r,a,s,l)}else t.drawImage(i,r,a,s,l)}}(t,e,F)):e.getTemporalDisplayables&&(n.lastDrawType!==E&&(w=!0,n.lastDrawType=E),function(t,e,n){var i=e.getDisplayables(),r=e.getTemporalDisplayables();t.save();var o,a,s={prevElClipPaths:null,prevEl:null,allClipped:!1,viewWidth:n.viewWidth,viewHeight:n.viewHeight,inHover:n.inHover};for(o=e.getCursor(),a=i.length;o<a;o++){(c=i[o]).beforeBrush&&c.beforeBrush(),c.innerBeforeBrush(),P(t,c,s,o===a-1),c.innerAfterBrush(),c.afterBrush&&c.afterBrush(),s.prevEl=c}for(var l=0,h=r.length;l<h;l++){var c;(c=r[l]).beforeBrush&&c.beforeBrush(),c.innerBeforeBrush(),P(t,c,s,l===h-1),c.innerAfterBrush(),c.afterBrush&&c.afterBrush(),s.prevEl=c}e.clearTemporalDisplayables(),e.notClear=!0,t.restore()}(t,e,n)),N&&i&&k(t,n),e.innerAfterBrush(),e.afterBrush&&e.afterBrush(),n.prevEl=e,e.__dirty=0,e.__isRendered=!0}}},4804:(t,e,n)=>{"use strict";function i(t){return isFinite(t)}function r(t,e,n){for(var r="radial"===e.type?function(t,e,n){var r=n.width,o=n.height,a=Math.min(r,o),s=null==e.x?.5:e.x,l=null==e.y?.5:e.y,h=null==e.r?.5:e.r;return e.global||(s=s*r+n.x,l=l*o+n.y,h*=a),s=i(s)?s:.5,l=i(l)?l:.5,h=h>=0&&i(h)?h:.5,t.createRadialGradient(s,l,0,s,l,h)}(t,e,n):function(t,e,n){var r=null==e.x?0:e.x,o=null==e.x2?1:e.x2,a=null==e.y?0:e.y,s=null==e.y2?0:e.y2;return e.global||(r=r*n.width+n.x,o=o*n.width+n.x,a=a*n.height+n.y,s=s*n.height+n.y),r=i(r)?r:0,o=i(o)?o:1,a=i(a)?a:0,s=i(s)?s:0,t.createLinearGradient(r,a,o,s)}(t,e,n),o=e.colorStops,a=0;a<o.length;a++)r.addColorStop(o[a].offset,o[a].color);return r}function o(t,e){if(t===e||!t&&!e)return!1;if(!t||!e||t.length!==e.length)return!0;for(var n=0;n<t.length;n++)if(t[n]!==e[n])return!0;return!1}function a(t){return parseInt(t,10)}function s(t,e,n){var i=["width","height"][e],r=["clientWidth","clientHeight"][e],o=["paddingLeft","paddingTop"][e],s=["paddingRight","paddingBottom"][e];if(null!=n[i]&&"auto"!==n[i])return parseFloat(n[i]);var l=document.defaultView.getComputedStyle(t);return(t[r]||a(l[i])||a(t.style[i]))-(a(l[o])||0)-(a(l[s])||0)|0}n.d(e,{Ff:()=>r,KU:()=>o,YC:()=>s})},9875:(t,e,n)=>{"use strict";n.d(e,{Y5:()=>r,_S:()=>a,el:()=>s,ps:()=>o,tY:()=>l});var i=1;n(4810).A.hasGlobalWindow&&(i=Math.max(window.devicePixelRatio||window.screen&&window.screen.deviceXDPI/window.screen.logicalXDPI||1,1));var r=i,o=.4,a="#333",s="#ccc",l="#eee"},58:(t,e,n)=>{"use strict";function i(t,e,n,i,r,o,a){if(0===r)return!1;var s=r,l=0;if(a>e+s&&a>i+s||a<e-s&&a<i-s||o>t+s&&o>n+s||o<t-s&&o<n-s)return!1;if(t===n)return Math.abs(o-t)<=s/2;var h=(l=(e-i)/(t-n))*o-a+(t*i-n*e)/(t-n);return h*h/(l*l+1)<=s/2*s/2}n.d(e,{l:()=>i})},248:(t,e,n)=>{"use strict";n.d(e,{l:()=>a});var i=n(7778),r=1e-8;function o(t,e){return Math.abs(t-e)<r}function a(t,e,n){var r=0,a=t[0];if(!a)return!1;for(var s=1;s<t.length;s++){var l=t[s];r+=(0,i.A)(a[0],a[1],l[0],l[1],e,n),a=l}var h=t[0];return o(a[0],h[0])&&o(a[1],h[1])||(r+=(0,i.A)(a[0],a[1],h[0],h[1],e,n)),0!==r}},4880:(t,e,n)=>{"use strict";n.d(e,{l:()=>r});var i=n(5162);function r(t,e,n,r,o,a,s,l,h){if(0===s)return!1;var c=s;return!(h>e+c&&h>r+c&&h>a+c||h<e-c&&h<r-c&&h<a-c||l>t+c&&l>n+c&&l>o+c||l<t-c&&l<n-c&&l<o-c)&&(0,i.kh)(t,e,n,r,o,a,l,h,null)<=c/2}},4611:(t,e,n)=>{"use strict";n.d(e,{NO:()=>h,RG:()=>s,X4:()=>f,ks:()=>d,ll:()=>c,lo:()=>p,sZ:()=>u});var i=n(5383),r=n(6552),o=n(9142),a={};function s(t,e){e=e||o.OH;var n=a[e];n||(n=a[e]=new r.Ay(500));var i=n.get(t);return null==i&&(i=o.yh.measureText(t,e).width,n.put(t,i)),i}function l(t,e,n,r){var o=s(t,e),a=d(e),l=c(0,o,n),h=u(0,a,r);return new i.A(l,h,o,a)}function h(t,e,n,r){var o=((t||"")+"").split("\n");if(1===o.length)return l(o[0],e,n,r);for(var a=new i.A(0,0,0,0),s=0;s<o.length;s++){var h=l(o[s],e,n,r);0===s?a.copy(h):a.union(h)}return a}function c(t,e,n){return"right"===n?t-=e:"center"===n&&(t-=e/2),t}function u(t,e,n){return"middle"===n?t-=e/2:"bottom"===n&&(t-=e),t}function d(t){return s("\u56fd",t)}function p(t,e){return"string"==typeof t?t.lastIndexOf("%")>=0?parseFloat(t)/100*e:parseFloat(t):t}function f(t,e,n){var i=e.position||"inside",r=null!=e.distance?e.distance:5,o=n.height,a=n.width,s=o/2,l=n.x,h=n.y,c="left",u="top";if(i instanceof Array)l+=p(i[0],n.width),h+=p(i[1],n.height),c=null,u=null;else switch(i){case"left":l-=r,h+=s,c="right",u="middle";break;case"right":l+=r+a,h+=s,u="middle";break;case"top":l+=a/2,h-=r,c="center",u="bottom";break;case"bottom":l+=a/2,h+=o+r,c="center";break;case"inside":l+=a/2,h+=s,c="center",u="middle";break;case"insideLeft":l+=r,h+=s,u="middle";break;case"insideRight":l+=a-r,h+=s,c="right",u="middle";break;case"insideTop":l+=a/2,h+=r,c="center";break;case"insideBottom":l+=a/2,h+=o-r,c="center",u="bottom";break;case"insideTopLeft":l+=r,h+=r;break;case"insideTopRight":l+=a-r,h+=r,c="right";break;case"insideBottomLeft":l+=r,h+=o-r,u="bottom";break;case"insideBottomRight":l+=a-r,h+=o-r,c="right",u="bottom"}return(t=t||{}).x=l,t.y=h,t.align=c,t.verticalAlign=u,t}},4428:(t,e,n)=>{"use strict";n.d(e,{n:()=>r});var i=2*Math.PI;function r(t){return(t%=i)<0&&(t+=i),t}},7778:(t,e,n)=>{"use strict";function i(t,e,n,i,r,o){if(o>e&&o>i||o<e&&o<i)return 0;if(i===e)return 0;var a=(o-e)/(i-e),s=i<e?1:-1;1!==a&&0!==a||(s=i<e?.5:-.5);var l=a*(n-t)+t;return l===r?1/0:l>r?s:0}n.d(e,{A:()=>i})},5383:(t,e,n)=>{"use strict";n.d(e,{A:()=>p});var i=n(3968),r=n(4063),o=Math.min,a=Math.max,s=new r.A,l=new r.A,h=new r.A,c=new r.A,u=new r.A,d=new r.A;const p=function(){function t(t,e,n,i){n<0&&(t+=n,n=-n),i<0&&(e+=i,i=-i),this.x=t,this.y=e,this.width=n,this.height=i}return t.prototype.union=function(t){var e=o(t.x,this.x),n=o(t.y,this.y);isFinite(this.x)&&isFinite(this.width)?this.width=a(t.x+t.width,this.x+this.width)-e:this.width=t.width,isFinite(this.y)&&isFinite(this.height)?this.height=a(t.y+t.height,this.y+this.height)-n:this.height=t.height,this.x=e,this.y=n},t.prototype.applyTransform=function(e){t.applyTransform(this,this,e)},t.prototype.calculateTransform=function(t){var e=this,n=t.width/e.width,r=t.height/e.height,o=i.create();return i.translate(o,o,[-e.x,-e.y]),i.scale(o,o,[n,r]),i.translate(o,o,[t.x,t.y]),o},t.prototype.intersect=function(e,n){if(!e)return!1;e instanceof t||(e=t.create(e));var i=this,o=i.x,a=i.x+i.width,s=i.y,l=i.y+i.height,h=e.x,c=e.x+e.width,p=e.y,f=e.y+e.height,g=!(a<h||c<o||l<p||f<s);if(n){var m=1/0,v=0,y=Math.abs(a-h),_=Math.abs(c-o),x=Math.abs(l-p),b=Math.abs(f-s),w=Math.min(y,_),S=Math.min(x,b);a<h||c<o?w>v&&(v=w,y<_?r.A.set(d,-y,0):r.A.set(d,_,0)):w<m&&(m=w,y<_?r.A.set(u,y,0):r.A.set(u,-_,0)),l<p||f<s?S>v&&(v=S,x<b?r.A.set(d,0,-x):r.A.set(d,0,b)):w<m&&(m=w,x<b?r.A.set(u,0,x):r.A.set(u,0,-b))}return n&&r.A.copy(n,g?u:d),g},t.prototype.contain=function(t,e){var n=this;return t>=n.x&&t<=n.x+n.width&&e>=n.y&&e<=n.y+n.height},t.prototype.clone=function(){return new t(this.x,this.y,this.width,this.height)},t.prototype.copy=function(e){t.copy(this,e)},t.prototype.plain=function(){return{x:this.x,y:this.y,width:this.width,height:this.height}},t.prototype.isFinite=function(){return isFinite(this.x)&&isFinite(this.y)&&isFinite(this.width)&&isFinite(this.height)},t.prototype.isZero=function(){return 0===this.width||0===this.height},t.create=function(e){return new t(e.x,e.y,e.width,e.height)},t.copy=function(t,e){t.x=e.x,t.y=e.y,t.width=e.width,t.height=e.height},t.applyTransform=function(e,n,i){if(i){if(i[1]<1e-5&&i[1]>-1e-5&&i[2]<1e-5&&i[2]>-1e-5){var r=i[0],u=i[3],d=i[4],p=i[5];return e.x=n.x*r+d,e.y=n.y*u+p,e.width=n.width*r,e.height=n.height*u,e.width<0&&(e.x+=e.width,e.width=-e.width),void(e.height<0&&(e.y+=e.height,e.height=-e.height))}s.x=h.x=n.x,s.y=c.y=n.y,l.x=c.x=n.x+n.width,l.y=h.y=n.y+n.height,s.transform(i),c.transform(i),l.transform(i),h.transform(i),e.x=o(s.x,l.x,h.x,c.x),e.y=o(s.y,l.y,h.y,c.y);var f=a(s.x,l.x,h.x,c.x),g=a(s.y,l.y,h.y,c.y);e.width=f-e.x,e.height=g-e.y}else e!==n&&t.copy(e,n)},t}()},2510:(t,e,n)=>{"use strict";n.d(e,{A:()=>i});const i=function(){function t(t){t&&(this._$eventProcessor=t)}return t.prototype.on=function(t,e,n,i){this._$handlers||(this._$handlers={});var r=this._$handlers;if("function"==typeof e&&(i=n,n=e,e=null),!n||!t)return this;var o=this._$eventProcessor;null!=e&&o&&o.normalizeQuery&&(e=o.normalizeQuery(e)),r[t]||(r[t]=[]);for(var a=0;a<r[t].length;a++)if(r[t][a].h===n)return this;var s={h:n,query:e,ctx:i||this,callAtLast:n.zrEventfulCallAtLast},l=r[t].length-1,h=r[t][l];return h&&h.callAtLast?r[t].splice(l,0,s):r[t].push(s),this},t.prototype.isSilent=function(t){var e=this._$handlers;return!e||!e[t]||!e[t].length},t.prototype.off=function(t,e){var n=this._$handlers;if(!n)return this;if(!t)return this._$handlers={},this;if(e){if(n[t]){for(var i=[],r=0,o=n[t].length;r<o;r++)n[t][r].h!==e&&i.push(n[t][r]);n[t]=i}n[t]&&0===n[t].length&&delete n[t]}else delete n[t];return this},t.prototype.trigger=function(t){for(var e=[],n=1;n<arguments.length;n++)e[n-1]=arguments[n];if(!this._$handlers)return this;var i=this._$handlers[t],r=this._$eventProcessor;if(i)for(var o=e.length,a=i.length,s=0;s<a;s++){var l=i[s];if(!r||!r.filter||null==l.query||r.filter(t,l.query))switch(o){case 0:l.h.call(l.ctx);break;case 1:l.h.call(l.ctx,e[0]);break;case 2:l.h.call(l.ctx,e[0],e[1]);break;default:l.h.apply(l.ctx,e)}}return r&&r.afterTrigger&&r.afterTrigger(t),this},t.prototype.triggerWithContext=function(t){for(var e=[],n=1;n<arguments.length;n++)e[n-1]=arguments[n];if(!this._$handlers)return this;var i=this._$handlers[t],r=this._$eventProcessor;if(i)for(var o=e.length,a=e[o-1],s=i.length,l=0;l<s;l++){var h=i[l];if(!r||!r.filter||null==h.query||r.filter(t,h.query))switch(o){case 0:h.h.call(a);break;case 1:h.h.call(a,e[0]);break;case 2:h.h.call(a,e[0],e[1]);break;default:h.h.apply(a,e.slice(1,o-1))}}return r&&r.afterTrigger&&r.afterTrigger(t),this},t}()},6552:(t,e,n)=>{"use strict";n.d(e,{Ay:()=>o});var i=function(t){this.value=t},r=function(){function t(){this._len=0}return t.prototype.insert=function(t){var e=new i(t);return this.insertEntry(e),e},t.prototype.insertEntry=function(t){this.head?(this.tail.next=t,t.prev=this.tail,t.next=null,this.tail=t):this.head=this.tail=t,this._len++},t.prototype.remove=function(t){var e=t.prev,n=t.next;e?e.next=n:this.head=n,n?n.prev=e:this.tail=e,t.next=t.prev=null,this._len--},t.prototype.len=function(){return this._len},t.prototype.clear=function(){this.head=this.tail=null,this._len=0},t}();const o=function(){function t(t){this._list=new r,this._maxSize=10,this._map={},this._maxSize=t}return t.prototype.put=function(t,e){var n=this._list,r=this._map,o=null;if(null==r[t]){var a=n.len(),s=this._lastRemovedEntry;if(a>=this._maxSize&&a>0){var l=n.head;n.remove(l),delete r[l.key],o=l.value,this._lastRemovedEntry=l}s?s.value=e:s=new i(e),s.key=t,n.insertEntry(s),r[t]=s}return o},t.prototype.get=function(t){var e=this._map[t],n=this._list;if(null!=e)return e!==n.tail&&(n.remove(e),n.insertEntry(e)),e.value},t.prototype.clear=function(){this._list.clear(),this._map={}},t.prototype.len=function(){return this._list.len()},t}()},2971:(t,e,n)=>{"use strict";n.d(e,{A:()=>l});var i=n(4063),r=[0,0],o=[0,0],a=new i.A,s=new i.A;const l=function(){function t(t,e){this._corners=[],this._axes=[],this._origin=[0,0];for(var n=0;n<4;n++)this._corners[n]=new i.A;for(n=0;n<2;n++)this._axes[n]=new i.A;t&&this.fromBoundingRect(t,e)}return t.prototype.fromBoundingRect=function(t,e){var n=this._corners,r=this._axes,o=t.x,a=t.y,s=o+t.width,l=a+t.height;if(n[0].set(o,a),n[1].set(s,a),n[2].set(s,l),n[3].set(o,l),e)for(var h=0;h<4;h++)n[h].transform(e);i.A.sub(r[0],n[1],n[0]),i.A.sub(r[1],n[3],n[0]),r[0].normalize(),r[1].normalize();for(h=0;h<2;h++)this._origin[h]=r[h].dot(n[0])},t.prototype.intersect=function(t,e){var n=!0,r=!e;return a.set(1/0,1/0),s.set(0,0),!this._intersectCheckOneSide(this,t,a,s,r,1)&&(n=!1,r)||!this._intersectCheckOneSide(t,this,a,s,r,-1)&&(n=!1,r)||r||i.A.copy(e,n?a:s),n},t.prototype._intersectCheckOneSide=function(t,e,n,a,s,l){for(var h=!0,c=0;c<2;c++){var u=this._axes[c];if(this._getProjMinMaxOnAxis(c,t._corners,r),this._getProjMinMaxOnAxis(c,e._corners,o),r[1]<o[0]||r[0]>o[1]){if(h=!1,s)return h;var d=Math.abs(o[0]-r[1]),p=Math.abs(r[0]-o[1]);Math.min(d,p)>a.len()&&(d<p?i.A.scale(a,u,-d*l):i.A.scale(a,u,p*l))}else if(n){d=Math.abs(o[0]-r[1]),p=Math.abs(r[0]-o[1]);Math.min(d,p)<n.len()&&(d<p?i.A.scale(n,u,d*l):i.A.scale(n,u,-p*l))}}return h},t.prototype._getProjMinMaxOnAxis=function(t,e,n){for(var i=this._axes[t],r=this._origin,o=e[0].dot(i)+r[t],a=o,s=o,l=1;l<e.length;l++){var h=e[l].dot(i)+r[t];a=Math.min(h,a),s=Math.max(h,s)}n[0]=a,n[1]=s},t}()},584:(t,e,n)=>{"use strict";n.d(e,{A:()=>A,q:()=>M});var i=n(4070),r=n(5383),o=n(9875),a=n(4150),s=n(5162),l={M:1,L:2,C:3,Q:4,A:5,Z:6,R:7},h=[],c=[],u=[],d=[],p=[],f=[],g=Math.min,m=Math.max,v=Math.cos,y=Math.sin,_=Math.abs,x=Math.PI,b=2*x,w="undefined"!=typeof Float32Array,S=[];function T(t){return Math.round(t/x*1e8)/1e8%2*x}function M(t,e){var n=T(t[0]);n<0&&(n+=b);var i=n-t[0],r=t[1];r+=i,!e&&r-n>=b?r=n+b:e&&n-r>=b?r=n-b:!e&&n>r?r=n+(b-T(n-r)):e&&n<r&&(r=n-(b-T(r-n))),t[0]=n,t[1]=r}const A=function(){function t(t){this.dpr=1,this._xi=0,this._yi=0,this._x0=0,this._y0=0,this._len=0,t&&(this._saveData=!1),this._saveData&&(this.data=[])}var e;return t.prototype.increaseVersion=function(){this._version++},t.prototype.getVersion=function(){return this._version},t.prototype.setScale=function(t,e,n){(n=n||0)>0&&(this._ux=_(n/o.Y5/t)||0,this._uy=_(n/o.Y5/e)||0)},t.prototype.setDPR=function(t){this.dpr=t},t.prototype.setContext=function(t){this._ctx=t},t.prototype.getContext=function(){return this._ctx},t.prototype.beginPath=function(){return this._ctx&&this._ctx.beginPath(),this.reset(),this},t.prototype.reset=function(){this._saveData&&(this._len=0),this._pathSegLen&&(this._pathSegLen=null,this._pathLen=0),this._version++},t.prototype.moveTo=function(t,e){return this._drawPendingPt(),this.addData(l.M,t,e),this._ctx&&this._ctx.moveTo(t,e),this._x0=t,this._y0=e,this._xi=t,this._yi=e,this},t.prototype.lineTo=function(t,e){var n=_(t-this._xi),i=_(e-this._yi),r=n>this._ux||i>this._uy;if(this.addData(l.L,t,e),this._ctx&&r&&this._ctx.lineTo(t,e),r)this._xi=t,this._yi=e,this._pendingPtDist=0;else{var o=n*n+i*i;o>this._pendingPtDist&&(this._pendingPtX=t,this._pendingPtY=e,this._pendingPtDist=o)}return this},t.prototype.bezierCurveTo=function(t,e,n,i,r,o){return this._drawPendingPt(),this.addData(l.C,t,e,n,i,r,o),this._ctx&&this._ctx.bezierCurveTo(t,e,n,i,r,o),this._xi=r,this._yi=o,this},t.prototype.quadraticCurveTo=function(t,e,n,i){return this._drawPendingPt(),this.addData(l.Q,t,e,n,i),this._ctx&&this._ctx.quadraticCurveTo(t,e,n,i),this._xi=n,this._yi=i,this},t.prototype.arc=function(t,e,n,i,r,o){this._drawPendingPt(),S[0]=i,S[1]=r,M(S,o),i=S[0];var a=(r=S[1])-i;return this.addData(l.A,t,e,n,n,i,a,0,o?0:1),this._ctx&&this._ctx.arc(t,e,n,i,r,o),this._xi=v(r)*n+t,this._yi=y(r)*n+e,this},t.prototype.arcTo=function(t,e,n,i,r){return this._drawPendingPt(),this._ctx&&this._ctx.arcTo(t,e,n,i,r),this},t.prototype.rect=function(t,e,n,i){return this._drawPendingPt(),this._ctx&&this._ctx.rect(t,e,n,i),this.addData(l.R,t,e,n,i),this},t.prototype.closePath=function(){this._drawPendingPt(),this.addData(l.Z);var t=this._ctx,e=this._x0,n=this._y0;return t&&t.closePath(),this._xi=e,this._yi=n,this},t.prototype.fill=function(t){t&&t.fill(),this.toStatic()},t.prototype.stroke=function(t){t&&t.stroke(),this.toStatic()},t.prototype.len=function(){return this._len},t.prototype.setData=function(t){var e=t.length;this.data&&this.data.length===e||!w||(this.data=new Float32Array(e));for(var n=0;n<e;n++)this.data[n]=t[n];this._len=e},t.prototype.appendPath=function(t){t instanceof Array||(t=[t]);for(var e=t.length,n=0,i=this._len,r=0;r<e;r++)n+=t[r].len();w&&this.data instanceof Float32Array&&(this.data=new Float32Array(i+n));for(r=0;r<e;r++)for(var o=t[r].data,a=0;a<o.length;a++)this.data[i++]=o[a];this._len=i},t.prototype.addData=function(t,e,n,i,r,o,a,s,l){if(this._saveData){var h=this.data;this._len+arguments.length>h.length&&(this._expandData(),h=this.data);for(var c=0;c<arguments.length;c++)h[this._len++]=arguments[c]}},t.prototype._drawPendingPt=function(){this._pendingPtDist>0&&(this._ctx&&this._ctx.lineTo(this._pendingPtX,this._pendingPtY),this._pendingPtDist=0)},t.prototype._expandData=function(){if(!(this.data instanceof Array)){for(var t=[],e=0;e<this._len;e++)t[e]=this.data[e];this.data=t}},t.prototype.toStatic=function(){if(this._saveData){this._drawPendingPt();var t=this.data;t instanceof Array&&(t.length=this._len,w&&this._len>11&&(this.data=new Float32Array(t)))}},t.prototype.getBoundingRect=function(){u[0]=u[1]=p[0]=p[1]=Number.MAX_VALUE,d[0]=d[1]=f[0]=f[1]=-Number.MAX_VALUE;var t,e=this.data,n=0,o=0,s=0,h=0;for(t=0;t<this._len;){var c=e[t++],g=1===t;switch(g&&(s=n=e[t],h=o=e[t+1]),c){case l.M:n=s=e[t++],o=h=e[t++],p[0]=s,p[1]=h,f[0]=s,f[1]=h;break;case l.L:(0,a.j6)(n,o,e[t],e[t+1],p,f),n=e[t++],o=e[t++];break;case l.C:(0,a.BM)(n,o,e[t++],e[t++],e[t++],e[t++],e[t],e[t+1],p,f),n=e[t++],o=e[t++];break;case l.Q:(0,a.tW)(n,o,e[t++],e[t++],e[t],e[t+1],p,f),n=e[t++],o=e[t++];break;case l.A:var m=e[t++],_=e[t++],x=e[t++],b=e[t++],w=e[t++],S=e[t++]+w;t+=1;var T=!e[t++];g&&(s=v(w)*x+m,h=y(w)*b+_),(0,a.$s)(m,_,x,b,w,S,T,p,f),n=v(S)*x+m,o=y(S)*b+_;break;case l.R:s=n=e[t++],h=o=e[t++];var M=e[t++],A=e[t++];(0,a.j6)(s,h,s+M,h+A,p,f);break;case l.Z:n=s,o=h}i.min(u,u,p),i.max(d,d,f)}return 0===t&&(u[0]=u[1]=d[0]=d[1]=0),new r.A(u[0],u[1],d[0]-u[0],d[1]-u[1])},t.prototype._calculateLength=function(){var t=this.data,e=this._len,n=this._ux,i=this._uy,r=0,o=0,a=0,h=0;this._pathSegLen||(this._pathSegLen=[]);for(var c=this._pathSegLen,u=0,d=0,p=0;p<e;){var f=t[p++],x=1===p;x&&(a=r=t[p],h=o=t[p+1]);var w=-1;switch(f){case l.M:r=a=t[p++],o=h=t[p++];break;case l.L:var S=t[p++],T=(C=t[p++])-o;(_(F=S-r)>n||_(T)>i||p===e-1)&&(w=Math.sqrt(F*F+T*T),r=S,o=C);break;case l.C:var M=t[p++],A=t[p++],C=(S=t[p++],t[p++]),I=t[p++],E=t[p++];w=(0,s.h0)(r,o,M,A,S,C,I,E,10),r=I,o=E;break;case l.Q:M=t[p++],A=t[p++],S=t[p++],C=t[p++];w=(0,s.d8)(r,o,M,A,S,C,10),r=S,o=C;break;case l.A:var k=t[p++],L=t[p++],D=t[p++],P=t[p++],R=t[p++],O=t[p++],N=O+R;p+=1,x&&(a=v(R)*D+k,h=y(R)*P+L),w=m(D,P)*g(b,Math.abs(O)),r=v(N)*D+k,o=y(N)*P+L;break;case l.R:a=r=t[p++],h=o=t[p++],w=2*t[p++]+2*t[p++];break;case l.Z:var F=a-r;T=h-o;w=Math.sqrt(F*F+T*T),r=a,o=h}w>=0&&(c[d++]=w,u+=w)}return this._pathLen=u,u},t.prototype.rebuildPath=function(t,e){var n,i,r,o,a,u,d,p,f,x,b=this.data,w=this._ux,S=this._uy,T=this._len,M=e<1,A=0,C=0,I=0;if(!M||(this._pathSegLen||this._calculateLength(),d=this._pathSegLen,p=e*this._pathLen))t:for(var E=0;E<T;){var k=b[E++],L=1===E;switch(L&&(n=r=b[E],i=o=b[E+1]),k!==l.L&&I>0&&(t.lineTo(f,x),I=0),k){case l.M:n=r=b[E++],i=o=b[E++],t.moveTo(r,o);break;case l.L:a=b[E++],u=b[E++];var D=_(a-r),P=_(u-o);if(D>w||P>S){if(M){if(A+(it=d[C++])>p){var R=(p-A)/it;t.lineTo(r*(1-R)+a*R,o*(1-R)+u*R);break t}A+=it}t.lineTo(a,u),r=a,o=u,I=0}else{var O=D*D+P*P;O>I&&(f=a,x=u,I=O)}break;case l.C:var N=b[E++],F=b[E++],B=b[E++],z=b[E++],G=b[E++],V=b[E++];if(M){if(A+(it=d[C++])>p){R=(p-A)/it;(0,s.YT)(r,N,B,G,R,h),(0,s.YT)(o,F,z,V,R,c),t.bezierCurveTo(h[1],c[1],h[2],c[2],h[3],c[3]);break t}A+=it}t.bezierCurveTo(N,F,B,z,G,V),r=G,o=V;break;case l.Q:N=b[E++],F=b[E++],B=b[E++],z=b[E++];if(M){if(A+(it=d[C++])>p){R=(p-A)/it;(0,s.kx)(r,N,B,R,h),(0,s.kx)(o,F,z,R,c),t.quadraticCurveTo(h[1],c[1],h[2],c[2]);break t}A+=it}t.quadraticCurveTo(N,F,B,z),r=B,o=z;break;case l.A:var j=b[E++],H=b[E++],W=b[E++],U=b[E++],q=b[E++],X=b[E++],Y=b[E++],Z=!b[E++],$=W>U?W:U,K=_(W-U)>.001,J=q+X,Q=!1;if(M)A+(it=d[C++])>p&&(J=q+X*(p-A)/it,Q=!0),A+=it;if(K&&t.ellipse?t.ellipse(j,H,W,U,Y,q,J,Z):t.arc(j,H,$,q,J,Z),Q)break t;L&&(n=v(q)*W+j,i=y(q)*U+H),r=v(J)*W+j,o=y(J)*U+H;break;case l.R:n=r=b[E],i=o=b[E+1],a=b[E++],u=b[E++];var tt=b[E++],et=b[E++];if(M){if(A+(it=d[C++])>p){var nt=p-A;t.moveTo(a,u),t.lineTo(a+g(nt,tt),u),(nt-=tt)>0&&t.lineTo(a+tt,u+g(nt,et)),(nt-=et)>0&&t.lineTo(a+m(tt-nt,0),u+et),(nt-=tt)>0&&t.lineTo(a,u+m(et-nt,0));break t}A+=it}t.rect(a,u,tt,et);break;case l.Z:if(M){var it;if(A+(it=d[C++])>p){R=(p-A)/it;t.lineTo(r*(1-R)+n*R,o*(1-R)+i*R);break t}A+=it}t.closePath(),r=n,o=i}}},t.prototype.clone=function(){var e=new t,n=this.data;return e.data=n.slice?n.slice():Array.prototype.slice.call(n),e._len=this._len,e},t.CMD=l,t.initDefaultProps=((e=t.prototype)._saveData=!0,e._ux=0,e._uy=0,e._pendingPtDist=0,void(e._version=0)),t}()},4063:(t,e,n)=>{"use strict";n.d(e,{A:()=>i});const i=function(){function t(t,e){this.x=t||0,this.y=e||0}return t.prototype.copy=function(t){return this.x=t.x,this.y=t.y,this},t.prototype.clone=function(){return new t(this.x,this.y)},t.prototype.set=function(t,e){return this.x=t,this.y=e,this},t.prototype.equal=function(t){return t.x===this.x&&t.y===this.y},t.prototype.add=function(t){return this.x+=t.x,this.y+=t.y,this},t.prototype.scale=function(t){this.x*=t,this.y*=t},t.prototype.scaleAndAdd=function(t,e){this.x+=t.x*e,this.y+=t.y*e},t.prototype.sub=function(t){return this.x-=t.x,this.y-=t.y,this},t.prototype.dot=function(t){return this.x*t.x+this.y*t.y},t.prototype.len=function(){return Math.sqrt(this.x*this.x+this.y*this.y)},t.prototype.lenSquare=function(){return this.x*this.x+this.y*this.y},t.prototype.normalize=function(){var t=this.len();return this.x/=t,this.y/=t,this},t.prototype.distance=function(t){var e=this.x-t.x,n=this.y-t.y;return Math.sqrt(e*e+n*n)},t.prototype.distanceSquare=function(t){var e=this.x-t.x,n=this.y-t.y;return e*e+n*n},t.prototype.negate=function(){return this.x=-this.x,this.y=-this.y,this},t.prototype.transform=function(t){if(t){var e=this.x,n=this.y;return this.x=t[0]*e+t[2]*n+t[4],this.y=t[1]*e+t[3]*n+t[5],this}},t.prototype.toArray=function(t){return t[0]=this.x,t[1]=this.y,t},t.prototype.fromArray=function(t){this.x=t[0],this.y=t[1]},t.set=function(t,e,n){t.x=e,t.y=n},t.copy=function(t,e){t.x=e.x,t.y=e.y},t.len=function(t){return Math.sqrt(t.x*t.x+t.y*t.y)},t.lenSquare=function(t){return t.x*t.x+t.y*t.y},t.dot=function(t,e){return t.x*e.x+t.y*e.y},t.add=function(t,e,n){t.x=e.x+n.x,t.y=e.y+n.y},t.sub=function(t,e,n){t.x=e.x-n.x,t.y=e.y-n.y},t.scale=function(t,e,n){t.x=e.x*n,t.y=e.y*n},t.scaleAndAdd=function(t,e,n,i){t.x=e.x+n.x*i,t.y=e.y+n.y*i},t.lerp=function(t,e,n,i){var r=1-i;t.x=r*e.x+i*n.x,t.y=r*e.y+i*n.y},t}()},5853:(t,e,n)=>{"use strict";n.d(e,{Ay:()=>g,IT:()=>f,Wx:()=>p});var i=n(3968),r=n(4070),o=i.identity,a=5e-5;function s(t){return t>a||t<-5e-5}var l=[],h=[],c=i.create(),u=Math.abs,d=function(){function t(){}var e;return t.prototype.getLocalTransform=function(e){return t.getLocalTransform(this,e)},t.prototype.setPosition=function(t){this.x=t[0],this.y=t[1]},t.prototype.setScale=function(t){this.scaleX=t[0],this.scaleY=t[1]},t.prototype.setSkew=function(t){this.skewX=t[0],this.skewY=t[1]},t.prototype.setOrigin=function(t){this.originX=t[0],this.originY=t[1]},t.prototype.needLocalTransform=function(){return s(this.rotation)||s(this.x)||s(this.y)||s(this.scaleX-1)||s(this.scaleY-1)||s(this.skewX)||s(this.skewY)},t.prototype.updateTransform=function(){var t=this.parent&&this.parent.transform,e=this.needLocalTransform(),n=this.transform;e||t?(n=n||i.create(),e?this.getLocalTransform(n):o(n),t&&(e?i.mul(n,t,n):i.copy(n,t)),this.transform=n,this._resolveGlobalScaleRatio(n)):n&&(o(n),this.invTransform=null)},t.prototype._resolveGlobalScaleRatio=function(t){var e=this.globalScaleRatio;if(null!=e&&1!==e){this.getGlobalScale(l);var n=l[0]<0?-1:1,r=l[1]<0?-1:1,o=((l[0]-n)*e+n)/l[0]||0,a=((l[1]-r)*e+r)/l[1]||0;t[0]*=o,t[1]*=o,t[2]*=a,t[3]*=a}this.invTransform=this.invTransform||i.create(),i.invert(this.invTransform,t)},t.prototype.getComputedTransform=function(){for(var t=this,e=[];t;)e.push(t),t=t.parent;for(;t=e.pop();)t.updateTransform();return this.transform},t.prototype.setLocalTransform=function(t){if(t){var e=t[0]*t[0]+t[1]*t[1],n=t[2]*t[2]+t[3]*t[3],i=Math.atan2(t[1],t[0]),r=Math.PI/2+i-Math.atan2(t[3],t[2]);n=Math.sqrt(n)*Math.cos(r),e=Math.sqrt(e),this.skewX=r,this.skewY=0,this.rotation=-i,this.x=+t[4],this.y=+t[5],this.scaleX=e,this.scaleY=n,this.originX=0,this.originY=0}},t.prototype.decomposeTransform=function(){if(this.transform){var t=this.parent,e=this.transform;t&&t.transform&&(t.invTransform=t.invTransform||i.create(),i.mul(h,t.invTransform,e),e=h);var n=this.originX,r=this.originY;(n||r)&&(c[4]=n,c[5]=r,i.mul(h,e,c),h[4]-=n,h[5]-=r,e=h),this.setLocalTransform(e)}},t.prototype.getGlobalScale=function(t){var e=this.transform;return t=t||[],e?(t[0]=Math.sqrt(e[0]*e[0]+e[1]*e[1]),t[1]=Math.sqrt(e[2]*e[2]+e[3]*e[3]),e[0]<0&&(t[0]=-t[0]),e[3]<0&&(t[1]=-t[1]),t):(t[0]=1,t[1]=1,t)},t.prototype.transformCoordToLocal=function(t,e){var n=[t,e],i=this.invTransform;return i&&r.applyTransform(n,n,i),n},t.prototype.transformCoordToGlobal=function(t,e){var n=[t,e],i=this.transform;return i&&r.applyTransform(n,n,i),n},t.prototype.getLineScale=function(){var t=this.transform;return t&&u(t[0]-1)>1e-10&&u(t[3]-1)>1e-10?Math.sqrt(u(t[0]*t[3]-t[2]*t[1])):1},t.prototype.copyTransform=function(t){f(this,t)},t.getLocalTransform=function(t,e){e=e||[];var n=t.originX||0,r=t.originY||0,o=t.scaleX,a=t.scaleY,s=t.anchorX,l=t.anchorY,h=t.rotation||0,c=t.x,u=t.y,d=t.skewX?Math.tan(t.skewX):0,p=t.skewY?Math.tan(-t.skewY):0;if(n||r||s||l){var f=n+s,g=r+l;e[4]=-f*o-d*g*a,e[5]=-g*a-p*f*o}else e[4]=e[5]=0;return e[0]=o,e[3]=a,e[1]=p*o,e[2]=d*a,h&&i.rotate(e,e,h),e[4]+=n+c,e[5]+=r+u,e},t.initDefaultProps=((e=t.prototype).scaleX=e.scaleY=e.globalScaleRatio=1,void(e.x=e.y=e.originX=e.originY=e.skewX=e.skewY=e.rotation=e.anchorX=e.anchorY=0)),t}(),p=["x","y","originX","originY","anchorX","anchorY","rotation","scaleX","scaleY","skewX","skewY"];function f(t,e){for(var n=0;n<p.length;n++){var i=p[n];t[i]=e[i]}}const g=d},4150:(t,e,n)=>{"use strict";n.d(e,{$s:()=>_,BM:()=>v,Cr:()=>p,j6:()=>f,tW:()=>y});var i=n(4070),r=n(5162),o=Math.min,a=Math.max,s=Math.sin,l=Math.cos,h=2*Math.PI,c=i.create(),u=i.create(),d=i.create();function p(t,e,n){if(0!==t.length){for(var i=t[0],r=i[0],s=i[0],l=i[1],h=i[1],c=1;c<t.length;c++)i=t[c],r=o(r,i[0]),s=a(s,i[0]),l=o(l,i[1]),h=a(h,i[1]);e[0]=r,e[1]=l,n[0]=s,n[1]=h}}function f(t,e,n,i,r,s){r[0]=o(t,n),r[1]=o(e,i),s[0]=a(t,n),s[1]=a(e,i)}var g=[],m=[];function v(t,e,n,i,s,l,h,c,u,d){var p=r.lX,f=r.Yb,v=p(t,n,s,h,g);u[0]=1/0,u[1]=1/0,d[0]=-1/0,d[1]=-1/0;for(var y=0;y<v;y++){var _=f(t,n,s,h,g[y]);u[0]=o(_,u[0]),d[0]=a(_,d[0])}v=p(e,i,l,c,m);for(y=0;y<v;y++){var x=f(e,i,l,c,m[y]);u[1]=o(x,u[1]),d[1]=a(x,d[1])}u[0]=o(t,u[0]),d[0]=a(t,d[0]),u[0]=o(h,u[0]),d[0]=a(h,d[0]),u[1]=o(e,u[1]),d[1]=a(e,d[1]),u[1]=o(c,u[1]),d[1]=a(c,d[1])}function y(t,e,n,i,s,l,h,c){var u=r.gC,d=r.k3,p=a(o(u(t,n,s),1),0),f=a(o(u(e,i,l),1),0),g=d(t,n,s,p),m=d(e,i,l,f);h[0]=o(t,s,g),h[1]=o(e,l,m),c[0]=a(t,s,g),c[1]=a(e,l,m)}function _(t,e,n,r,o,a,p,f,g){var m=i.min,v=i.max,y=Math.abs(o-a);if(y%h<1e-4&&y>1e-4)return f[0]=t-n,f[1]=e-r,g[0]=t+n,void(g[1]=e+r);if(c[0]=l(o)*n+t,c[1]=s(o)*r+e,u[0]=l(a)*n+t,u[1]=s(a)*r+e,m(f,c,u),v(g,c,u),(o%=h)<0&&(o+=h),(a%=h)<0&&(a+=h),o>a&&!p?a+=h:o<a&&p&&(o+=h),p){var _=a;a=o,o=_}for(var x=0;x<a;x+=Math.PI/2)x>o&&(d[0]=l(x)*n+t,d[1]=s(x)*r+e,m(f,d,f),v(g,d,g))}},5162:(t,e,n)=>{"use strict";n.d(e,{Et:()=>x,YT:()=>_,Yb:()=>g,_E:()=>v,d8:()=>I,gC:()=>M,h0:()=>b,k3:()=>w,kh:()=>C,kx:()=>A,lX:()=>y,qY:()=>T,rD:()=>m,z7:()=>S});var i=n(4070),r=Math.pow,o=Math.sqrt,a=1e-8,s=1e-4,l=o(3),h=1/3,c=(0,i.create)(),u=(0,i.create)(),d=(0,i.create)();function p(t){return t>-a&&t<a}function f(t){return t>a||t<-a}function g(t,e,n,i,r){var o=1-r;return o*o*(o*t+3*r*e)+r*r*(r*i+3*o*n)}function m(t,e,n,i,r){var o=1-r;return 3*(((e-t)*o+2*(n-e)*r)*o+(i-n)*r*r)}function v(t,e,n,i,a,s){var c=i+3*(e-n)-t,u=3*(n-2*e+t),d=3*(e-t),f=t-a,g=u*u-3*c*d,m=u*d-9*c*f,v=d*d-3*u*f,y=0;if(p(g)&&p(m)){if(p(u))s[0]=0;else(E=-d/u)>=0&&E<=1&&(s[y++]=E)}else{var _=m*m-4*g*v;if(p(_)){var x=m/g,b=-x/2;(E=-u/c+x)>=0&&E<=1&&(s[y++]=E),b>=0&&b<=1&&(s[y++]=b)}else if(_>0){var w=o(_),S=g*u+1.5*c*(-m+w),T=g*u+1.5*c*(-m-w);(E=(-u-((S=S<0?-r(-S,h):r(S,h))+(T=T<0?-r(-T,h):r(T,h))))/(3*c))>=0&&E<=1&&(s[y++]=E)}else{var M=(2*g*u-3*c*m)/(2*o(g*g*g)),A=Math.acos(M)/3,C=o(g),I=Math.cos(A),E=(-u-2*C*I)/(3*c),k=(b=(-u+C*(I+l*Math.sin(A)))/(3*c),(-u+C*(I-l*Math.sin(A)))/(3*c));E>=0&&E<=1&&(s[y++]=E),b>=0&&b<=1&&(s[y++]=b),k>=0&&k<=1&&(s[y++]=k)}}return y}function y(t,e,n,i,r){var a=6*n-12*e+6*t,s=9*e+3*i-3*t-9*n,l=3*e-3*t,h=0;if(p(s)){if(f(a))(u=-l/a)>=0&&u<=1&&(r[h++]=u)}else{var c=a*a-4*s*l;if(p(c))r[0]=-a/(2*s);else if(c>0){var u,d=o(c),g=(-a-d)/(2*s);(u=(-a+d)/(2*s))>=0&&u<=1&&(r[h++]=u),g>=0&&g<=1&&(r[h++]=g)}}return h}function _(t,e,n,i,r,o){var a=(e-t)*r+t,s=(n-e)*r+e,l=(i-n)*r+n,h=(s-a)*r+a,c=(l-s)*r+s,u=(c-h)*r+h;o[0]=t,o[1]=a,o[2]=h,o[3]=u,o[4]=u,o[5]=c,o[6]=l,o[7]=i}function x(t,e,n,r,a,l,h,p,f,m,v){var y,_,x,b,w,S=.005,T=1/0;c[0]=f,c[1]=m;for(var M=0;M<1;M+=.05)u[0]=g(t,n,a,h,M),u[1]=g(e,r,l,p,M),(b=(0,i.distSquare)(c,u))<T&&(y=M,T=b);T=1/0;for(var A=0;A<32&&!(S<s);A++)_=y-S,x=y+S,u[0]=g(t,n,a,h,_),u[1]=g(e,r,l,p,_),b=(0,i.distSquare)(u,c),_>=0&&b<T?(y=_,T=b):(d[0]=g(t,n,a,h,x),d[1]=g(e,r,l,p,x),w=(0,i.distSquare)(d,c),x<=1&&w<T?(y=x,T=w):S*=.5);return v&&(v[0]=g(t,n,a,h,y),v[1]=g(e,r,l,p,y)),o(T)}function b(t,e,n,i,r,o,a,s,l){for(var h=t,c=e,u=0,d=1/l,p=1;p<=l;p++){var f=p*d,m=g(t,n,r,a,f),v=g(e,i,o,s,f),y=m-h,_=v-c;u+=Math.sqrt(y*y+_*_),h=m,c=v}return u}function w(t,e,n,i){var r=1-i;return r*(r*t+2*i*e)+i*i*n}function S(t,e,n,i){return 2*((1-i)*(e-t)+i*(n-e))}function T(t,e,n,i,r){var a=t-2*e+n,s=2*(e-t),l=t-i,h=0;if(p(a)){if(f(s))(u=-l/s)>=0&&u<=1&&(r[h++]=u)}else{var c=s*s-4*a*l;if(p(c))(u=-s/(2*a))>=0&&u<=1&&(r[h++]=u);else if(c>0){var u,d=o(c),g=(-s-d)/(2*a);(u=(-s+d)/(2*a))>=0&&u<=1&&(r[h++]=u),g>=0&&g<=1&&(r[h++]=g)}}return h}function M(t,e,n){var i=t+n-2*e;return 0===i?.5:(t-e)/i}function A(t,e,n,i,r){var o=(e-t)*i+t,a=(n-e)*i+e,s=(a-o)*i+o;r[0]=t,r[1]=o,r[2]=s,r[3]=s,r[4]=a,r[5]=n}function C(t,e,n,r,a,l,h,p,f){var g,m=.005,v=1/0;c[0]=h,c[1]=p;for(var y=0;y<1;y+=.05){u[0]=w(t,n,a,y),u[1]=w(e,r,l,y),(S=(0,i.distSquare)(c,u))<v&&(g=y,v=S)}v=1/0;for(var _=0;_<32&&!(m<s);_++){var x=g-m,b=g+m;u[0]=w(t,n,a,x),u[1]=w(e,r,l,x);var S=(0,i.distSquare)(u,c);if(x>=0&&S<v)g=x,v=S;else{d[0]=w(t,n,a,b),d[1]=w(e,r,l,b);var T=(0,i.distSquare)(d,c);b<=1&&T<v?(g=b,v=T):m*=.5}}return f&&(f[0]=w(t,n,a,g),f[1]=w(e,r,l,g)),o(v)}function I(t,e,n,i,r,o,a){for(var s=t,l=e,h=0,c=1/a,u=1;u<=a;u++){var d=u*c,p=w(t,n,r,d),f=w(e,i,o,d),g=p-s,m=f-l;h+=Math.sqrt(g*g+m*m),s=p,l=f}return h}},4178:(t,e,n)=>{"use strict";n.d(e,{Me:()=>f,ot:()=>u,oq:()=>c,lJ:()=>h});var i=n(4810),r=Math.log(2);function o(t,e,n,i,a,s){var l=i+"-"+a,h=t.length;if(s.hasOwnProperty(l))return s[l];if(1===e){var c=Math.round(Math.log((1<<h)-1&~a)/r);return t[n][c]}for(var u=i|1<<n,d=n+1;i&1<<d;)d++;for(var p=0,f=0,g=0;f<h;f++){var m=1<<f;m&a||(p+=(g%2?-1:1)*t[n][f]*o(t,e-1,d,u,a|m,s),g++)}return s[l]=p,p}function a(t,e){var n=[[t[0],t[1],1,0,0,0,-e[0]*t[0],-e[0]*t[1]],[0,0,0,t[0],t[1],1,-e[1]*t[0],-e[1]*t[1]],[t[2],t[3],1,0,0,0,-e[2]*t[2],-e[2]*t[3]],[0,0,0,t[2],t[3],1,-e[3]*t[2],-e[3]*t[3]],[t[4],t[5],1,0,0,0,-e[4]*t[4],-e[4]*t[5]],[0,0,0,t[4],t[5],1,-e[5]*t[4],-e[5]*t[5]],[t[6],t[7],1,0,0,0,-e[6]*t[6],-e[6]*t[7]],[0,0,0,t[6],t[7],1,-e[7]*t[6],-e[7]*t[7]]],i={},r=o(n,8,0,0,0,i);if(0!==r){for(var a=[],s=0;s<8;s++)for(var l=0;l<8;l++)null==a[l]&&(a[l]=0),a[l]+=((s+l)%2?-1:1)*o(n,7,0===s?1:0,1<<s,1<<l,i)/r*e[s];return function(t,e,n){var i=e*a[6]+n*a[7]+1;t[0]=(e*a[0]+n*a[1]+a[2])/i,t[1]=(e*a[3]+n*a[4]+a[5])/i}}}var s="___zrEVENTSAVED",l=[];function h(t,e,n,i,r){return c(l,e,i,r,!0)&&c(t,n,l[0],l[1])}function c(t,e,n,r,o){if(e.getBoundingClientRect&&i.A.domSupported&&!u(e)){var l=e[s]||(e[s]={}),h=function(t,e){var n=e.markers;if(n)return n;n=e.markers=[];for(var i=["left","right"],r=["top","bottom"],o=0;o<4;o++){var a=document.createElement("div"),s=o%2,l=(o>>1)%2;a.style.cssText=["position: absolute","visibility: hidden","padding: 0","margin: 0","border-width: 0","user-select: none","width:0","height:0",i[s]+":0",r[l]+":0",i[1-s]+":auto",r[1-l]+":auto",""].join("!important;"),t.appendChild(a),n.push(a)}return n}(e,l),c=function(t,e,n){for(var i=n?"invTrans":"trans",r=e[i],o=e.srcCoords,s=[],l=[],h=!0,c=0;c<4;c++){var u=t[c].getBoundingClientRect(),d=2*c,p=u.left,f=u.top;s.push(p,f),h=h&&o&&p===o[d]&&f===o[d+1],l.push(t[c].offsetLeft,t[c].offsetTop)}return h&&r?r:(e.srcCoords=s,e[i]=n?a(l,s):a(s,l))}(h,l,o);if(c)return c(t,n,r),!0}return!1}function u(t){return"CANVAS"===t.nodeName.toUpperCase()}var d=/([&<>"'])/g,p={"&":"&","<":"<",">":">",'"':""","'":"'"};function f(t){return null==t?"":(t+"").replace(d,(function(t,e){return p[e]}))}},4810:(t,e,n)=>{"use strict";n.d(e,{A:()=>o});var i=function(){this.firefox=!1,this.ie=!1,this.edge=!1,this.newEdge=!1,this.weChat=!1},r=new function(){this.browser=new i,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="undefined"!=typeof window};"object"==typeof wx&&"function"==typeof wx.getSystemInfoSync?(r.wxa=!0,r.touchEventsSupported=!0):"undefined"==typeof document&&"undefined"!=typeof self?r.worker=!0:"undefined"==typeof navigator||0===navigator.userAgent.indexOf("Node.js")?(r.node=!0,r.svgSupported=!0):function(t,e){var n=e.browser,i=t.match(/Firefox\/([\d.]+)/),r=t.match(/MSIE\s([\d.]+)/)||t.match(/Trident\/.+?rv:(([\d.]+))/),o=t.match(/Edge?\/([\d.]+)/),a=/micromessenger/i.test(t);i&&(n.firefox=!0,n.version=i[1]);r&&(n.ie=!0,n.version=r[1]);o&&(n.edge=!0,n.version=o[1],n.newEdge=+o[1].split(".")[0]>18);a&&(n.weChat=!0);e.svgSupported="undefined"!=typeof SVGRect,e.touchEventsSupported="ontouchstart"in window&&!n.ie&&!n.edge,e.pointerEventsSupported="onpointerdown"in window&&(n.edge||n.ie&&+n.version>=11),e.domSupported="undefined"!=typeof document;var s=document.documentElement.style;e.transform3dSupported=(n.ie&&"transition"in s||n.edge||"WebKitCSSMatrix"in window&&"m11"in new WebKitCSSMatrix||"MozPerspective"in s)&&!("OTransition"in s),e.transformSupported=e.transform3dSupported||n.ie&&+n.version>=9}(navigator.userAgent,r);const o=r},1469:(t,e,n)=>{"use strict";n.d(e,{W5:()=>g,Yo:()=>l,ds:()=>f,e0:()=>u,f:()=>p,mK:()=>c,q2:()=>d});var i=n(4810),r=n(4178),o=/^(?:mouse|pointer|contextmenu|drag|drop)|click/,a=[],s=i.A.browser.firefox&&+i.A.browser.version.split(".")[0]<39;function l(t,e,n,i){return n=n||{},i?h(t,e,n):s&&null!=e.layerX&&e.layerX!==e.offsetX?(n.zrX=e.layerX,n.zrY=e.layerY):null!=e.offsetX?(n.zrX=e.offsetX,n.zrY=e.offsetY):h(t,e,n),n}function h(t,e,n){if(i.A.domSupported&&t.getBoundingClientRect){var o=e.clientX,s=e.clientY;if((0,r.ot)(t)){var l=t.getBoundingClientRect();return n.zrX=o-l.left,void(n.zrY=s-l.top)}if((0,r.oq)(a,t,o,s))return n.zrX=a[0],void(n.zrY=a[1])}n.zrX=n.zrY=0}function c(t){return t||window.event}function u(t,e,n){if(null!=(e=c(e)).zrX)return e;var i=e.type;if(i&&i.indexOf("touch")>=0){var r="touchend"!==i?e.targetTouches[0]:e.changedTouches[0];r&&l(t,r,e,n)}else{l(t,e,e,n);var a=function(t){var e=t.wheelDelta;if(e)return e;var n=t.deltaX,i=t.deltaY;if(null==n||null==i)return e;return 3*(0!==i?Math.abs(i):Math.abs(n))*(i>0?-1:i<0?1:n>0?-1:1)}(e);e.zrDelta=a?a/120:-(e.detail||0)/3}var s=e.button;return null==e.which&&void 0!==s&&o.test(e.type)&&(e.which=1&s?1:2&s?3:4&s?2:0),e}function d(t,e,n,i){t.addEventListener(e,n,i)}function p(t,e,n,i){t.removeEventListener(e,n,i)}var f=function(t){t.preventDefault(),t.stopPropagation(),t.cancelBubble=!0};function g(t){return 2===t.which||3===t.which}},3968:(t,e,n)=>{"use strict";function i(){return[1,0,0,1,0,0]}function r(t){return t[0]=1,t[1]=0,t[2]=0,t[3]=1,t[4]=0,t[5]=0,t}function o(t,e){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3],t[4]=e[4],t[5]=e[5],t}function a(t,e,n){var i=e[0]*n[0]+e[2]*n[1],r=e[1]*n[0]+e[3]*n[1],o=e[0]*n[2]+e[2]*n[3],a=e[1]*n[2]+e[3]*n[3],s=e[0]*n[4]+e[2]*n[5]+e[4],l=e[1]*n[4]+e[3]*n[5]+e[5];return t[0]=i,t[1]=r,t[2]=o,t[3]=a,t[4]=s,t[5]=l,t}function s(t,e,n){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3],t[4]=e[4]+n[0],t[5]=e[5]+n[1],t}function l(t,e,n,i){void 0===i&&(i=[0,0]);var r=e[0],o=e[2],a=e[4],s=e[1],l=e[3],h=e[5],c=Math.sin(n),u=Math.cos(n);return t[0]=r*u+s*c,t[1]=-r*c+s*u,t[2]=o*u+l*c,t[3]=-o*c+u*l,t[4]=u*(a-i[0])+c*(h-i[1])+i[0],t[5]=u*(h-i[1])-c*(a-i[0])+i[1],t}function h(t,e,n){var i=n[0],r=n[1];return t[0]=e[0]*i,t[1]=e[1]*r,t[2]=e[2]*i,t[3]=e[3]*r,t[4]=e[4]*i,t[5]=e[5]*r,t}function c(t,e){var n=e[0],i=e[2],r=e[4],o=e[1],a=e[3],s=e[5],l=n*a-o*i;return l?(l=1/l,t[0]=a*l,t[1]=-o*l,t[2]=-i*l,t[3]=n*l,t[4]=(i*s-a*r)*l,t[5]=(o*r-n*s)*l,t):null}function u(t){var e=[1,0,0,1,0,0];return o(e,t),e}n.r(e),n.d(e,{clone:()=>u,copy:()=>o,create:()=>i,identity:()=>r,invert:()=>c,mul:()=>a,rotate:()=>l,scale:()=>h,translate:()=>s})},9142:(t,e,n)=>{"use strict";n.d(e,{Gs:()=>c,OH:()=>o,gI:()=>i,yh:()=>h,zs:()=>r});var i=12,r="sans-serif",o=i+"px "+r;var a,s,l=function(t){var e={};if("undefined"==typeof JSON)return e;for(var n=0;n<t.length;n++){var i=String.fromCharCode(n+32),r=(t.charCodeAt(n)-20)/100;e[i]=r}return e}("007LLmW'55;N0500LLLLLLLLLL00NNNLzWW\\\\WQb\\0FWLg\\bWb\\WQ\\WrWWQ000CL5LLFLL0LL**F*gLLLL5F0LF\\FFF5.5N"),h={createCanvas:function(){return"undefined"!=typeof document&&document.createElement("canvas")},measureText:function(t,e){if(!a){var n=h.createCanvas();a=n&&n.getContext("2d")}if(a)return s!==e&&(s=a.font=e||o),a.measureText(t);t=t||"";var r=/((?:\d+)?\.?\d*)px/.exec(e=e||o),c=r&&+r[1]||i,u=0;if(e.indexOf("mono")>=0)u=c*t.length;else for(var d=0;d<t.length;d++){var p=l[t[d]];u+=null==p?c:p*c}return{width:u}},loadImage:function(t,e,n){var i=new Image;return i.onload=e,i.onerror=n,i.src=t,i}};function c(t){for(var e in h)t[e]&&(h[e]=t[e])}},979:(t,e,n)=>{"use strict";n.d(e,{A:()=>c});var i=32,r=7;function o(t,e,n,i){var r=e+1;if(r===n)return 1;if(i(t[r++],t[e])<0){for(;r<n&&i(t[r],t[r-1])<0;)r++;!function(t,e,n){n--;for(;e<n;){var i=t[e];t[e++]=t[n],t[n--]=i}}(t,e,r)}else for(;r<n&&i(t[r],t[r-1])>=0;)r++;return r-e}function a(t,e,n,i,r){for(i===e&&i++;i<n;i++){for(var o,a=t[i],s=e,l=i;s<l;)r(a,t[o=s+l>>>1])<0?l=o:s=o+1;var h=i-s;switch(h){case 3:t[s+3]=t[s+2];case 2:t[s+2]=t[s+1];case 1:t[s+1]=t[s];break;default:for(;h>0;)t[s+h]=t[s+h-1],h--}t[s]=a}}function s(t,e,n,i,r,o){var a=0,s=0,l=1;if(o(t,e[n+r])>0){for(s=i-r;l<s&&o(t,e[n+r+l])>0;)a=l,(l=1+(l<<1))<=0&&(l=s);l>s&&(l=s),a+=r,l+=r}else{for(s=r+1;l<s&&o(t,e[n+r-l])<=0;)a=l,(l=1+(l<<1))<=0&&(l=s);l>s&&(l=s);var h=a;a=r-l,l=r-h}for(a++;a<l;){var c=a+(l-a>>>1);o(t,e[n+c])>0?a=c+1:l=c}return l}function l(t,e,n,i,r,o){var a=0,s=0,l=1;if(o(t,e[n+r])<0){for(s=r+1;l<s&&o(t,e[n+r-l])<0;)a=l,(l=1+(l<<1))<=0&&(l=s);l>s&&(l=s);var h=a;a=r-l,l=r-h}else{for(s=i-r;l<s&&o(t,e[n+r+l])>=0;)a=l,(l=1+(l<<1))<=0&&(l=s);l>s&&(l=s),a+=r,l+=r}for(a++;a<l;){var c=a+(l-a>>>1);o(t,e[n+c])<0?l=c:a=c+1}return l}function h(t,e){var n,i,o=r,a=0,h=[];function c(c){var u=n[c],d=i[c],p=n[c+1],f=i[c+1];i[c]=d+f,c===a-3&&(n[c+1]=n[c+2],i[c+1]=i[c+2]),a--;var g=l(t[p],t,u,d,0,e);u+=g,0!==(d-=g)&&0!==(f=s(t[u+d-1],t,p,f,f-1,e))&&(d<=f?function(n,i,a,c){var u=0;for(u=0;u<i;u++)h[u]=t[n+u];var d=0,p=a,f=n;if(t[f++]=t[p++],0==--c){for(u=0;u<i;u++)t[f+u]=h[d+u];return}if(1===i){for(u=0;u<c;u++)t[f+u]=t[p+u];return void(t[f+c]=h[d])}var g,m,v,y=o;for(;;){g=0,m=0,v=!1;do{if(e(t[p],h[d])<0){if(t[f++]=t[p++],m++,g=0,0==--c){v=!0;break}}else if(t[f++]=h[d++],g++,m=0,1==--i){v=!0;break}}while((g|m)<y);if(v)break;do{if(0!==(g=l(t[p],h,d,i,0,e))){for(u=0;u<g;u++)t[f+u]=h[d+u];if(f+=g,d+=g,(i-=g)<=1){v=!0;break}}if(t[f++]=t[p++],0==--c){v=!0;break}if(0!==(m=s(h[d],t,p,c,0,e))){for(u=0;u<m;u++)t[f+u]=t[p+u];if(f+=m,p+=m,0===(c-=m)){v=!0;break}}if(t[f++]=h[d++],1==--i){v=!0;break}y--}while(g>=r||m>=r);if(v)break;y<0&&(y=0),y+=2}if((o=y)<1&&(o=1),1===i){for(u=0;u<c;u++)t[f+u]=t[p+u];t[f+c]=h[d]}else{if(0===i)throw new Error;for(u=0;u<i;u++)t[f+u]=h[d+u]}}(u,d,p,f):function(n,i,a,c){var u=0;for(u=0;u<c;u++)h[u]=t[a+u];var d=n+i-1,p=c-1,f=a+c-1,g=0,m=0;if(t[f--]=t[d--],0==--i){for(g=f-(c-1),u=0;u<c;u++)t[g+u]=h[u];return}if(1===c){for(m=(f-=i)+1,g=(d-=i)+1,u=i-1;u>=0;u--)t[m+u]=t[g+u];return void(t[f]=h[p])}var v=o;for(;;){var y=0,_=0,x=!1;do{if(e(h[p],t[d])<0){if(t[f--]=t[d--],y++,_=0,0==--i){x=!0;break}}else if(t[f--]=h[p--],_++,y=0,1==--c){x=!0;break}}while((y|_)<v);if(x)break;do{if(0!==(y=i-l(h[p],t,n,i,i-1,e))){for(i-=y,m=(f-=y)+1,g=(d-=y)+1,u=y-1;u>=0;u--)t[m+u]=t[g+u];if(0===i){x=!0;break}}if(t[f--]=h[p--],1==--c){x=!0;break}if(0!==(_=c-s(t[d],h,0,c,c-1,e))){for(c-=_,m=(f-=_)+1,g=(p-=_)+1,u=0;u<_;u++)t[m+u]=h[g+u];if(c<=1){x=!0;break}}if(t[f--]=t[d--],0==--i){x=!0;break}v--}while(y>=r||_>=r);if(x)break;v<0&&(v=0),v+=2}(o=v)<1&&(o=1);if(1===c){for(m=(f-=i)+1,g=(d-=i)+1,u=i-1;u>=0;u--)t[m+u]=t[g+u];t[f]=h[p]}else{if(0===c)throw new Error;for(g=f-(c-1),u=0;u<c;u++)t[g+u]=h[u]}}(u,d,p,f))}return n=[],i=[],{mergeRuns:function(){for(;a>1;){var t=a-2;if(t>=1&&i[t-1]<=i[t]+i[t+1]||t>=2&&i[t-2]<=i[t]+i[t-1])i[t-1]<i[t+1]&&t--;else if(i[t]>i[t+1])break;c(t)}},forceMergeRuns:function(){for(;a>1;){var t=a-2;t>0&&i[t-1]<i[t+1]&&t--,c(t)}},pushRun:function(t,e){n[a]=t,i[a]=e,a+=1}}}function c(t,e,n,r){n||(n=0),r||(r=t.length);var s=r-n;if(!(s<2)){var l=0;if(s<i)a(t,n,r,n+(l=o(t,n,r,e)),e);else{var c=h(t,e),u=function(t){for(var e=0;t>=i;)e|=1&t,t>>=1;return t+e}(s);do{if((l=o(t,n,r,e))<u){var d=s;d>u&&(d=u),a(t,n,n+d,n+l,e),l=d}c.pushRun(n,l),c.mergeRuns(),s-=l,n+=l}while(0!==s);c.forceMergeRuns()}}}},7845:(t,e,n)=>{"use strict";n.r(e),n.d(e,{HashMap:()=>st,RADIAN_TO_DEGREE:()=>ft,assert:()=>tt,bind:()=>R,clone:()=>y,concatArray:()=>ht,createCanvas:()=>S,createHashMap:()=>lt,createObject:()=>ct,curry:()=>O,defaults:()=>w,disableUserSelect:()=>ut,each:()=>I,eqNaN:()=>Y,extend:()=>b,filter:()=>L,find:()=>D,guid:()=>m,hasOwn:()=>dt,indexOf:()=>T,inherits:()=>M,isArray:()=>N,isArrayLike:()=>C,isBuiltInObject:()=>j,isDom:()=>W,isFunction:()=>F,isGradientObject:()=>U,isImagePatternObject:()=>q,isNumber:()=>G,isObject:()=>V,isPrimitive:()=>rt,isRegExp:()=>X,isString:()=>B,isStringSafe:()=>z,isTypedArray:()=>H,keys:()=>P,logError:()=>v,map:()=>E,merge:()=>_,mergeAll:()=>x,mixin:()=>A,noop:()=>pt,normalizeCssArray:()=>Q,reduce:()=>k,retrieve:()=>Z,retrieve2:()=>$,retrieve3:()=>K,setAsPrimitive:()=>it,slice:()=>J,trim:()=>et});var i=n(9142),r=k(["Function","RegExp","Date","Error","CanvasGradient","CanvasPattern","Image","Canvas"],(function(t,e){return t["[object "+e+"]"]=!0,t}),{}),o=k(["Int8","Uint8","Uint8Clamped","Int16","Uint16","Int32","Uint32","Float32","Float64"],(function(t,e){return t["[object "+e+"Array]"]=!0,t}),{}),a=Object.prototype.toString,s=Array.prototype,l=s.forEach,h=s.filter,c=s.slice,u=s.map,d=function(){}.constructor,p=d?d.prototype:null,f="__proto__",g=2311;function m(){return g++}function v(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];"undefined"!=typeof console&&console.error.apply(console,t)}function y(t){if(null==t||"object"!=typeof t)return t;var e=t,n=a.call(t);if("[object Array]"===n){if(!rt(t)){e=[];for(var i=0,s=t.length;i<s;i++)e[i]=y(t[i])}}else if(o[n]){if(!rt(t)){var l=t.constructor;if(l.from)e=l.from(t);else{e=new l(t.length);for(i=0,s=t.length;i<s;i++)e[i]=t[i]}}}else if(!r[n]&&!rt(t)&&!W(t))for(var h in e={},t)t.hasOwnProperty(h)&&h!==f&&(e[h]=y(t[h]));return e}function _(t,e,n){if(!V(e)||!V(t))return n?y(e):t;for(var i in e)if(e.hasOwnProperty(i)&&i!==f){var r=t[i],o=e[i];!V(o)||!V(r)||N(o)||N(r)||W(o)||W(r)||j(o)||j(r)||rt(o)||rt(r)?!n&&i in t||(t[i]=y(e[i])):_(r,o,n)}return t}function x(t,e){for(var n=t[0],i=1,r=t.length;i<r;i++)n=_(n,t[i],e);return n}function b(t,e){if(Object.assign)Object.assign(t,e);else for(var n in e)e.hasOwnProperty(n)&&n!==f&&(t[n]=e[n]);return t}function w(t,e,n){for(var i=P(e),r=0;r<i.length;r++){var o=i[r];(n?null!=e[o]:null==t[o])&&(t[o]=e[o])}return t}var S=i.yh.createCanvas;function T(t,e){if(t){if(t.indexOf)return t.indexOf(e);for(var n=0,i=t.length;n<i;n++)if(t[n]===e)return n}return-1}function M(t,e){var n=t.prototype;function i(){}for(var r in i.prototype=e.prototype,t.prototype=new i,n)n.hasOwnProperty(r)&&(t.prototype[r]=n[r]);t.prototype.constructor=t,t.superClass=e}function A(t,e,n){if(t="prototype"in t?t.prototype:t,e="prototype"in e?e.prototype:e,Object.getOwnPropertyNames)for(var i=Object.getOwnPropertyNames(e),r=0;r<i.length;r++){var o=i[r];"constructor"!==o&&(n?null!=e[o]:null==t[o])&&(t[o]=e[o])}else w(t,e,n)}function C(t){return!!t&&("string"!=typeof t&&"number"==typeof t.length)}function I(t,e,n){if(t&&e)if(t.forEach&&t.forEach===l)t.forEach(e,n);else if(t.length===+t.length)for(var i=0,r=t.length;i<r;i++)e.call(n,t[i],i,t);else for(var o in t)t.hasOwnProperty(o)&&e.call(n,t[o],o,t)}function E(t,e,n){if(!t)return[];if(!e)return J(t);if(t.map&&t.map===u)return t.map(e,n);for(var i=[],r=0,o=t.length;r<o;r++)i.push(e.call(n,t[r],r,t));return i}function k(t,e,n,i){if(t&&e){for(var r=0,o=t.length;r<o;r++)n=e.call(i,n,t[r],r,t);return n}}function L(t,e,n){if(!t)return[];if(!e)return J(t);if(t.filter&&t.filter===h)return t.filter(e,n);for(var i=[],r=0,o=t.length;r<o;r++)e.call(n,t[r],r,t)&&i.push(t[r]);return i}function D(t,e,n){if(t&&e)for(var i=0,r=t.length;i<r;i++)if(e.call(n,t[i],i,t))return t[i]}function P(t){if(!t)return[];if(Object.keys)return Object.keys(t);var e=[];for(var n in t)t.hasOwnProperty(n)&&e.push(n);return e}var R=p&&F(p.bind)?p.call.bind(p.bind):function(t,e){for(var n=[],i=2;i<arguments.length;i++)n[i-2]=arguments[i];return function(){return t.apply(e,n.concat(c.call(arguments)))}};function O(t){for(var e=[],n=1;n<arguments.length;n++)e[n-1]=arguments[n];return function(){return t.apply(this,e.concat(c.call(arguments)))}}function N(t){return Array.isArray?Array.isArray(t):"[object Array]"===a.call(t)}function F(t){return"function"==typeof t}function B(t){return"string"==typeof t}function z(t){return"[object String]"===a.call(t)}function G(t){return"number"==typeof t}function V(t){var e=typeof t;return"function"===e||!!t&&"object"===e}function j(t){return!!r[a.call(t)]}function H(t){return!!o[a.call(t)]}function W(t){return"object"==typeof t&&"number"==typeof t.nodeType&&"object"==typeof t.ownerDocument}function U(t){return null!=t.colorStops}function q(t){return null!=t.image}function X(t){return"[object RegExp]"===a.call(t)}function Y(t){return t!=t}function Z(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];for(var n=0,i=t.length;n<i;n++)if(null!=t[n])return t[n]}function $(t,e){return null!=t?t:e}function K(t,e,n){return null!=t?t:null!=e?e:n}function J(t){for(var e=[],n=1;n<arguments.length;n++)e[n-1]=arguments[n];return c.apply(t,e)}function Q(t){if("number"==typeof t)return[t,t,t,t];var e=t.length;return 2===e?[t[0],t[1],t[0],t[1]]:3===e?[t[0],t[1],t[2],t[1]]:t}function tt(t,e){if(!t)throw new Error(e)}function et(t){return null==t?null:"function"==typeof t.trim?t.trim():t.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"")}var nt="__ec_primitive__";function it(t){t[nt]=!0}function rt(t){return t[nt]}var ot=function(){function t(){this.data={}}return t.prototype.delete=function(t){var e=this.has(t);return e&&delete this.data[t],e},t.prototype.has=function(t){return this.data.hasOwnProperty(t)},t.prototype.get=function(t){return this.data[t]},t.prototype.set=function(t,e){return this.data[t]=e,this},t.prototype.keys=function(){return P(this.data)},t.prototype.forEach=function(t){var e=this.data;for(var n in e)e.hasOwnProperty(n)&&t(e[n],n)},t}(),at="function"==typeof Map;var st=function(){function t(e){var n=N(e);this.data=at?new Map:new ot;var i=this;function r(t,e){n?i.set(t,e):i.set(e,t)}e instanceof t?e.each(r):e&&I(e,r)}return t.prototype.hasKey=function(t){return this.data.has(t)},t.prototype.get=function(t){return this.data.get(t)},t.prototype.set=function(t,e){return this.data.set(t,e),e},t.prototype.each=function(t,e){this.data.forEach((function(n,i){t.call(e,n,i)}))},t.prototype.keys=function(){var t=this.data.keys();return at?Array.from(t):t},t.prototype.removeKey=function(t){this.data.delete(t)},t}();function lt(t){return new st(t)}function ht(t,e){for(var n=new t.constructor(t.length+e.length),i=0;i<t.length;i++)n[i]=t[i];var r=t.length;for(i=0;i<e.length;i++)n[i+r]=e[i];return n}function ct(t,e){var n;if(Object.create)n=Object.create(t);else{var i=function(){};i.prototype=t,n=new i}return e&&b(n,e),n}function ut(t){var e=t.style;e.webkitUserSelect="none",e.userSelect="none",e.webkitTapHighlightColor="rgba(0,0,0,0)",e["-webkit-touch-callout"]="none"}function dt(t,e){return t.hasOwnProperty(e)}function pt(){}var ft=180/Math.PI},4070:(t,e,n)=>{"use strict";function i(t,e){return null==t&&(t=0),null==e&&(e=0),[t,e]}function r(t,e){return t[0]=e[0],t[1]=e[1],t}function o(t){return[t[0],t[1]]}function a(t,e,n){return t[0]=e,t[1]=n,t}function s(t,e,n){return t[0]=e[0]+n[0],t[1]=e[1]+n[1],t}function l(t,e,n,i){return t[0]=e[0]+n[0]*i,t[1]=e[1]+n[1]*i,t}function h(t,e,n){return t[0]=e[0]-n[0],t[1]=e[1]-n[1],t}function c(t){return Math.sqrt(d(t))}n.r(e),n.d(e,{add:()=>s,applyTransform:()=>M,clone:()=>o,copy:()=>r,create:()=>i,dist:()=>x,distSquare:()=>w,distance:()=>_,distanceSquare:()=>b,div:()=>g,dot:()=>m,len:()=>c,lenSquare:()=>d,length:()=>u,lengthSquare:()=>p,lerp:()=>T,max:()=>C,min:()=>A,mul:()=>f,negate:()=>S,normalize:()=>y,scale:()=>v,scaleAndAdd:()=>l,set:()=>a,sub:()=>h});var u=c;function d(t){return t[0]*t[0]+t[1]*t[1]}var p=d;function f(t,e,n){return t[0]=e[0]*n[0],t[1]=e[1]*n[1],t}function g(t,e,n){return t[0]=e[0]/n[0],t[1]=e[1]/n[1],t}function m(t,e){return t[0]*e[0]+t[1]*e[1]}function v(t,e,n){return t[0]=e[0]*n,t[1]=e[1]*n,t}function y(t,e){var n=c(e);return 0===n?(t[0]=0,t[1]=0):(t[0]=e[0]/n,t[1]=e[1]/n),t}function _(t,e){return Math.sqrt((t[0]-e[0])*(t[0]-e[0])+(t[1]-e[1])*(t[1]-e[1]))}var x=_;function b(t,e){return(t[0]-e[0])*(t[0]-e[0])+(t[1]-e[1])*(t[1]-e[1])}var w=b;function S(t,e){return t[0]=-e[0],t[1]=-e[1],t}function T(t,e,n,i){return t[0]=e[0]+i*(n[0]-e[0]),t[1]=e[1]+i*(n[1]-e[1]),t}function M(t,e,n){var i=e[0],r=e[1];return t[0]=n[0]*i+n[2]*r+n[4],t[1]=n[1]*i+n[3]*r+n[5],t}function A(t,e,n){return t[0]=Math.min(e[0],n[0]),t[1]=Math.min(e[1],n[1]),t}function C(t,e,n){return t[0]=Math.max(e[0],n[0]),t[1]=Math.max(e[1],n[1]),t}},7298:(t,e,n)=>{"use strict";n.d(e,{A:()=>o});var i=n(528),r=n(1885);const o=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="compound",e}return(0,i.C6)(e,t),e.prototype._updatePathDirty=function(){for(var t=this.shape.paths,e=this.shapeChanged(),n=0;n<t.length;n++)e=e||t[n].shapeChanged();e&&this.dirtyShape()},e.prototype.beforeBrush=function(){this._updatePathDirty();for(var t=this.shape.paths||[],e=this.getGlobalScale(),n=0;n<t.length;n++)t[n].path||t[n].createPathProxy(),t[n].path.setScale(e[0],e[1],t[n].segmentIgnoreThreshold)},e.prototype.buildPath=function(t,e){for(var n=e.paths||[],i=0;i<n.length;i++)n[i].buildPath(t,n[i].shape,!0)},e.prototype.afterBrush=function(){for(var t=this.shape.paths||[],e=0;e<t.length;e++)t[e].pathUpdated()},e.prototype.getBoundingRect=function(){return this._updatePathDirty.call(this),r.Ay.prototype.getBoundingRect.call(this)},e}(r.Ay)},7780:(t,e,n)=>{"use strict";n.d(e,{Ay:()=>m,oN:()=>h,sW:()=>c});var i=n(528),r=n(4061),o=n(5383),a=n(7845),s=n(5667),l="__zr_style_"+Math.round(10*Math.random()),h={shadowBlur:0,shadowOffsetX:0,shadowOffsetY:0,shadowColor:"#000",opacity:1,blend:"source-over"},c={style:{shadowBlur:!0,shadowOffsetX:!0,shadowOffsetY:!0,shadowColor:!0,opacity:!0}};h[l]=!0;var u=["z","z2","invisible"],d=["invisible"],p=function(t){function e(e){return t.call(this,e)||this}var n;return(0,i.C6)(e,t),e.prototype._init=function(e){for(var n=(0,a.keys)(e),i=0;i<n.length;i++){var r=n[i];"style"===r?this.useStyle(e[r]):t.prototype.attrKV.call(this,r,e[r])}this.style||this.useStyle({})},e.prototype.beforeBrush=function(){},e.prototype.afterBrush=function(){},e.prototype.innerBeforeBrush=function(){},e.prototype.innerAfterBrush=function(){},e.prototype.shouldBePainted=function(t,e,n,i){var r=this.transform;if(this.ignore||this.invisible||0===this.style.opacity||this.culling&&function(t,e,n){f.copy(t.getBoundingRect()),t.transform&&f.applyTransform(t.transform);return g.width=e,g.height=n,!f.intersect(g)}(this,t,e)||r&&!r[0]&&!r[3])return!1;if(n&&this.__clipPaths)for(var o=0;o<this.__clipPaths.length;++o)if(this.__clipPaths[o].isZeroArea())return!1;if(i&&this.parent)for(var a=this.parent;a;){if(a.ignore)return!1;a=a.parent}return!0},e.prototype.contain=function(t,e){return this.rectContain(t,e)},e.prototype.traverse=function(t,e){t.call(e,this)},e.prototype.rectContain=function(t,e){var n=this.transformCoordToLocal(t,e);return this.getBoundingRect().contain(n[0],n[1])},e.prototype.getPaintRect=function(){var t=this._paintRect;if(!this._paintRect||this.__dirty){var e=this.transform,n=this.getBoundingRect(),i=this.style,r=i.shadowBlur||0,a=i.shadowOffsetX||0,s=i.shadowOffsetY||0;t=this._paintRect||(this._paintRect=new o.A(0,0,0,0)),e?o.A.applyTransform(t,n,e):t.copy(n),(r||a||s)&&(t.width+=2*r+Math.abs(a),t.height+=2*r+Math.abs(s),t.x=Math.min(t.x,t.x+a-r),t.y=Math.min(t.y,t.y+s-r));var l=this.dirtyRectTolerance;t.isZero()||(t.x=Math.floor(t.x-l),t.y=Math.floor(t.y-l),t.width=Math.ceil(t.width+1+2*l),t.height=Math.ceil(t.height+1+2*l))}return t},e.prototype.setPrevPaintRect=function(t){t?(this._prevPaintRect=this._prevPaintRect||new o.A(0,0,0,0),this._prevPaintRect.copy(t)):this._prevPaintRect=null},e.prototype.getPrevPaintRect=function(){return this._prevPaintRect},e.prototype.animateStyle=function(t){return this.animate("style",t)},e.prototype.updateDuringAnimation=function(t){"style"===t?this.dirtyStyle():this.markRedraw()},e.prototype.attrKV=function(e,n){"style"!==e?t.prototype.attrKV.call(this,e,n):this.style?this.setStyle(n):this.useStyle(n)},e.prototype.setStyle=function(t,e){return"string"==typeof t?this.style[t]=e:(0,a.extend)(this.style,t),this.dirtyStyle(),this},e.prototype.dirtyStyle=function(t){t||this.markRedraw(),this.__dirty|=s.pO,this._rect&&(this._rect=null)},e.prototype.dirty=function(){this.dirtyStyle()},e.prototype.styleChanged=function(){return!!(this.__dirty&s.pO)},e.prototype.styleUpdated=function(){this.__dirty&=~s.pO},e.prototype.createStyle=function(t){return(0,a.createObject)(h,t)},e.prototype.useStyle=function(t){t[l]||(t=this.createStyle(t)),this.__inHover?this.__hoverStyle=t:this.style=t,this.dirtyStyle()},e.prototype.isStyleObject=function(t){return t[l]},e.prototype._innerSaveToNormal=function(e){t.prototype._innerSaveToNormal.call(this,e);var n=this._normalState;e.style&&!n.style&&(n.style=this._mergeStyle(this.createStyle(),this.style)),this._savePrimaryToNormal(e,n,u)},e.prototype._applyStateObj=function(e,n,i,r,o,s){t.prototype._applyStateObj.call(this,e,n,i,r,o,s);var l,h=!(n&&r);if(n&&n.style?o?r?l=n.style:(l=this._mergeStyle(this.createStyle(),i.style),this._mergeStyle(l,n.style)):(l=this._mergeStyle(this.createStyle(),r?this.style:i.style),this._mergeStyle(l,n.style)):h&&(l=i.style),l)if(o){var c=this.style;if(this.style=this.createStyle(h?{}:c),h)for(var p=(0,a.keys)(c),f=0;f<p.length;f++){(m=p[f])in l&&(l[m]=l[m],this.style[m]=c[m])}var g=(0,a.keys)(l);for(f=0;f<g.length;f++){var m=g[f];this.style[m]=this.style[m]}this._transitionState(e,{style:l},s,this.getAnimationStyleProps())}else this.useStyle(l);var v=this.__inHover?d:u;for(f=0;f<v.length;f++){m=v[f];n&&null!=n[m]?this[m]=n[m]:h&&null!=i[m]&&(this[m]=i[m])}},e.prototype._mergeStates=function(e){for(var n,i=t.prototype._mergeStates.call(this,e),r=0;r<e.length;r++){var o=e[r];o.style&&(n=n||{},this._mergeStyle(n,o.style))}return n&&(i.style=n),i},e.prototype._mergeStyle=function(t,e){return(0,a.extend)(t,e),t},e.prototype.getAnimationStyleProps=function(){return c},e.initDefaultProps=((n=e.prototype).type="displayable",n.invisible=!1,n.z=0,n.z2=0,n.zlevel=0,n.culling=!1,n.cursor="pointer",n.rectHover=!1,n.incremental=!1,n._rect=null,n.dirtyRectTolerance=0,void(n.__dirty=s.M|s.pO)),e}(r.A),f=new o.A(0,0,0,0),g=new o.A(0,0,0,0);const m=p},7540:(t,e,n)=>{"use strict";n.d(e,{A:()=>i});const i=function(){function t(t){this.colorStops=t||[]}return t.prototype.addColorStop=function(t,e){this.colorStops.push({offset:t,color:e})},t}()},8829:(t,e,n)=>{"use strict";n.d(e,{A:()=>l});var i=n(528),r=n(7845),o=n(4061),a=n(5383),s=function(t){function e(e){var n=t.call(this)||this;return n.isGroup=!0,n._children=[],n.attr(e),n}return(0,i.C6)(e,t),e.prototype.childrenRef=function(){return this._children},e.prototype.children=function(){return this._children.slice()},e.prototype.childAt=function(t){return this._children[t]},e.prototype.childOfName=function(t){for(var e=this._children,n=0;n<e.length;n++)if(e[n].name===t)return e[n]},e.prototype.childCount=function(){return this._children.length},e.prototype.add=function(t){return t&&t!==this&&t.parent!==this&&(this._children.push(t),this._doAdd(t)),this},e.prototype.addBefore=function(t,e){if(t&&t!==this&&t.parent!==this&&e&&e.parent===this){var n=this._children,i=n.indexOf(e);i>=0&&(n.splice(i,0,t),this._doAdd(t))}return this},e.prototype.replace=function(t,e){var n=r.indexOf(this._children,t);return n>=0&&this.replaceAt(e,n),this},e.prototype.replaceAt=function(t,e){var n=this._children,i=n[e];if(t&&t!==this&&t.parent!==this&&t!==i){n[e]=t,i.parent=null;var r=this.__zr;r&&i.removeSelfFromZr(r),this._doAdd(t)}return this},e.prototype._doAdd=function(t){t.parent&&t.parent.remove(t),t.parent=this;var e=this.__zr;e&&e!==t.__zr&&t.addSelfToZr(e),e&&e.refresh()},e.prototype.remove=function(t){var e=this.__zr,n=this._children,i=r.indexOf(n,t);return i<0||(n.splice(i,1),t.parent=null,e&&t.removeSelfFromZr(e),e&&e.refresh()),this},e.prototype.removeAll=function(){for(var t=this._children,e=this.__zr,n=0;n<t.length;n++){var i=t[n];e&&i.removeSelfFromZr(e),i.parent=null}return t.length=0,this},e.prototype.eachChild=function(t,e){for(var n=this._children,i=0;i<n.length;i++){var r=n[i];t.call(e,r,i)}return this},e.prototype.traverse=function(t,e){for(var n=0;n<this._children.length;n++){var i=this._children[n],r=t.call(e,i);i.isGroup&&!r&&i.traverse(t,e)}return this},e.prototype.addSelfToZr=function(e){t.prototype.addSelfToZr.call(this,e);for(var n=0;n<this._children.length;n++){this._children[n].addSelfToZr(e)}},e.prototype.removeSelfFromZr=function(e){t.prototype.removeSelfFromZr.call(this,e);for(var n=0;n<this._children.length;n++){this._children[n].removeSelfFromZr(e)}},e.prototype.getBoundingRect=function(t){for(var e=new a.A(0,0,0,0),n=t||this._children,i=[],r=null,o=0;o<n.length;o++){var s=n[o];if(!s.ignore&&!s.invisible){var l=s.getBoundingRect(),h=s.getLocalTransform(i);h?(a.A.applyTransform(e,l,h),(r=r||e.clone()).union(e)):(r=r||l.clone()).union(l)}}return r||e},e}(o.A);s.prototype.type="group";const l=s},5975:(t,e,n)=>{"use strict";n.d(e,{Ay:()=>c});var i=n(528),r=n(7780),o=n(5383),a=n(7845),s=(0,a.defaults)({x:0,y:0},r.oN),l={style:(0,a.defaults)({x:!0,y:!0,width:!0,height:!0,sx:!0,sy:!0,sWidth:!0,sHeight:!0},r.sW.style)};var h=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return(0,i.C6)(e,t),e.prototype.createStyle=function(t){return(0,a.createObject)(s,t)},e.prototype._getSize=function(t){var e=this.style,n=e[t];if(null!=n)return n;var i,r=(i=e.image)&&"string"!=typeof i&&i.width&&i.height?e.image:this.__image;if(!r)return 0;var o="width"===t?"height":"width",a=e[o];return null==a?r[t]:r[t]/r[o]*a},e.prototype.getWidth=function(){return this._getSize("width")},e.prototype.getHeight=function(){return this._getSize("height")},e.prototype.getAnimationStyleProps=function(){return l},e.prototype.getBoundingRect=function(){var t=this.style;return this._rect||(this._rect=new o.A(t.x||0,t.y||0,this.getWidth(),this.getHeight())),this._rect},e}(r.Ay);h.prototype.type="image";const c=h},5238:(t,e,n)=>{"use strict";n.d(e,{A:()=>s});var i=n(528),r=n(7780),o=n(5383),a=[];const s=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.notClear=!0,e.incremental=!0,e._displayables=[],e._temporaryDisplayables=[],e._cursor=0,e}return(0,i.C6)(e,t),e.prototype.traverse=function(t,e){t.call(e,this)},e.prototype.useStyle=function(){this.style={}},e.prototype.getCursor=function(){return this._cursor},e.prototype.innerAfterBrush=function(){this._cursor=this._displayables.length},e.prototype.clearDisplaybles=function(){this._displayables=[],this._temporaryDisplayables=[],this._cursor=0,this.markRedraw(),this.notClear=!1},e.prototype.clearTemporalDisplayables=function(){this._temporaryDisplayables=[]},e.prototype.addDisplayable=function(t,e){e?this._temporaryDisplayables.push(t):this._displayables.push(t),this.markRedraw()},e.prototype.addDisplayables=function(t,e){e=e||!1;for(var n=0;n<t.length;n++)this.addDisplayable(t[n],e)},e.prototype.getDisplayables=function(){return this._displayables},e.prototype.getTemporalDisplayables=function(){return this._temporaryDisplayables},e.prototype.eachPendingDisplayable=function(t){for(var e=this._cursor;e<this._displayables.length;e++)t&&t(this._displayables[e]);for(e=0;e<this._temporaryDisplayables.length;e++)t&&t(this._temporaryDisplayables[e])},e.prototype.update=function(){this.updateTransform();for(var t=this._cursor;t<this._displayables.length;t++){(e=this._displayables[t]).parent=this,e.update(),e.parent=null}for(t=0;t<this._temporaryDisplayables.length;t++){var e;(e=this._temporaryDisplayables[t]).parent=this,e.update(),e.parent=null}},e.prototype.getBoundingRect=function(){if(!this._rect){for(var t=new o.A(1/0,1/0,-1/0,-1/0),e=0;e<this._displayables.length;e++){var n=this._displayables[e],i=n.getBoundingRect().clone();n.needLocalTransform()&&i.applyTransform(n.getLocalTransform(a)),t.union(i)}this._rect=t}return this._rect},e.prototype.contain=function(t,e){var n=this.transformCoordToLocal(t,e);if(this.getBoundingRect().contain(n[0],n[1]))for(var i=0;i<this._displayables.length;i++){if(this._displayables[i].contain(t,e))return!0}return!1},e}(r.Ay)},7789:(t,e,n)=>{"use strict";n.d(e,{A:()=>r});var i=n(528);const r=function(t){function e(e,n,i,r,o,a){var s=t.call(this,o)||this;return s.x=null==e?0:e,s.y=null==n?0:n,s.x2=null==i?1:i,s.y2=null==r?0:r,s.type="linear",s.global=a||!1,s}return(0,i.C6)(e,t),e}(n(7540).A)},1885:(t,e,n)=>{"use strict";n.d(e,{MW:()=>C,Ay:()=>k});var i=n(528),r=n(7780),o=n(584),a=n(58),s=n(5162);function l(t,e,n,i,r,o,a,l,h,c,u){if(0===h)return!1;var d=h;return!(u>e+d&&u>i+d&&u>o+d&&u>l+d||u<e-d&&u<i-d&&u<o-d&&u<l-d||c>t+d&&c>n+d&&c>r+d&&c>a+d||c<t-d&&c<n-d&&c<r-d&&c<a-d)&&s.Et(t,e,n,i,r,o,a,l,c,u,null)<=d/2}var h=n(4880),c=n(4428),u=2*Math.PI;function d(t,e,n,i,r,o,a,s,l){if(0===a)return!1;var h=a;s-=t,l-=e;var d=Math.sqrt(s*s+l*l);if(d-h>n||d+h<n)return!1;if(Math.abs(i-r)%u<1e-4)return!0;if(o){var p=i;i=(0,c.n)(r),r=(0,c.n)(p)}else i=(0,c.n)(i),r=(0,c.n)(r);i>r&&(r+=u);var f=Math.atan2(l,s);return f<0&&(f+=u),f>=i&&f<=r||f+u>=i&&f+u<=r}var p=n(7778),f=o.A.CMD,g=2*Math.PI;var m=[-1,-1,-1],v=[-1,-1];function y(t,e,n,i,r,o,a,l,h,c){if(c>e&&c>i&&c>o&&c>l||c<e&&c<i&&c<o&&c<l)return 0;var u,d=s._E(e,i,o,l,c,m);if(0===d)return 0;for(var p=0,f=-1,g=void 0,y=void 0,_=0;_<d;_++){var x=m[_],b=0===x||1===x?.5:1;s.Yb(t,n,r,a,x)<h||(f<0&&(f=s.lX(e,i,o,l,v),v[1]<v[0]&&f>1&&(u=void 0,u=v[0],v[0]=v[1],v[1]=u),g=s.Yb(e,i,o,l,v[0]),f>1&&(y=s.Yb(e,i,o,l,v[1]))),2===f?x<v[0]?p+=g<e?b:-b:x<v[1]?p+=y<g?b:-b:p+=l<y?b:-b:x<v[0]?p+=g<e?b:-b:p+=l<g?b:-b)}return p}function _(t,e,n,i,r,o,a,l){if(l>e&&l>i&&l>o||l<e&&l<i&&l<o)return 0;var h=s.qY(e,i,o,l,m);if(0===h)return 0;var c=s.gC(e,i,o);if(c>=0&&c<=1){for(var u=0,d=s.k3(e,i,o,c),p=0;p<h;p++){var f=0===m[p]||1===m[p]?.5:1;s.k3(t,n,r,m[p])<a||(m[p]<c?u+=d<e?f:-f:u+=o<d?f:-f)}return u}f=0===m[0]||1===m[0]?.5:1;return s.k3(t,n,r,m[0])<a?0:o<e?f:-f}function x(t,e,n,i,r,o,a,s){if((s-=e)>n||s<-n)return 0;var l=Math.sqrt(n*n-s*s);m[0]=-l,m[1]=l;var h=Math.abs(i-r);if(h<1e-4)return 0;if(h>=g-1e-4){i=0,r=g;var c=o?1:-1;return a>=m[0]+t&&a<=m[1]+t?c:0}if(i>r){var u=i;i=r,r=u}i<0&&(i+=g,r+=g);for(var d=0,p=0;p<2;p++){var f=m[p];if(f+t>a){var v=Math.atan2(s,f);c=o?1:-1;v<0&&(v=g+v),(v>=i&&v<=r||v+g>=i&&v+g<=r)&&(v>Math.PI/2&&v<1.5*Math.PI&&(c=-c),d+=c)}}return d}function b(t,e,n,i,r){for(var o,s,c=t.data,u=t.len(),g=0,m=0,v=0,b=0,w=0,S=0;S<u;){var T=c[S++],M=1===S;switch(T===f.M&&S>1&&(n||(g+=(0,p.A)(m,v,b,w,i,r))),M&&(b=m=c[S],w=v=c[S+1]),T){case f.M:m=b=c[S++],v=w=c[S++];break;case f.L:if(n){if(a.l(m,v,c[S],c[S+1],e,i,r))return!0}else g+=(0,p.A)(m,v,c[S],c[S+1],i,r)||0;m=c[S++],v=c[S++];break;case f.C:if(n){if(l(m,v,c[S++],c[S++],c[S++],c[S++],c[S],c[S+1],e,i,r))return!0}else g+=y(m,v,c[S++],c[S++],c[S++],c[S++],c[S],c[S+1],i,r)||0;m=c[S++],v=c[S++];break;case f.Q:if(n){if(h.l(m,v,c[S++],c[S++],c[S],c[S+1],e,i,r))return!0}else g+=_(m,v,c[S++],c[S++],c[S],c[S+1],i,r)||0;m=c[S++],v=c[S++];break;case f.A:var A=c[S++],C=c[S++],I=c[S++],E=c[S++],k=c[S++],L=c[S++];S+=1;var D=!!(1-c[S++]);o=Math.cos(k)*I+A,s=Math.sin(k)*E+C,M?(b=o,w=s):g+=(0,p.A)(m,v,o,s,i,r);var P=(i-A)*E/I+A;if(n){if(d(A,C,E,k,k+L,D,e,P,r))return!0}else g+=x(A,C,E,k,k+L,D,P,r);m=Math.cos(k+L)*I+A,v=Math.sin(k+L)*E+C;break;case f.R:if(b=m=c[S++],w=v=c[S++],o=b+c[S++],s=w+c[S++],n){if(a.l(b,w,o,w,e,i,r)||a.l(o,w,o,s,e,i,r)||a.l(o,s,b,s,e,i,r)||a.l(b,s,b,w,e,i,r))return!0}else g+=(0,p.A)(o,w,o,s,i,r),g+=(0,p.A)(b,s,b,w,i,r);break;case f.Z:if(n){if(a.l(m,v,b,w,e,i,r))return!0}else g+=(0,p.A)(m,v,b,w,i,r);m=b,v=w}}return n||function(t,e){return Math.abs(t-e)<1e-4}(v,w)||(g+=(0,p.A)(m,v,b,w,i,r)||0),0!==g}var w=n(7845),S=n(7219),T=n(9875),M=n(5667),A=n(5853),C=(0,w.defaults)({fill:"#000",stroke:null,strokePercent:1,fillOpacity:1,strokeOpacity:1,lineDashOffset:0,lineWidth:1,lineCap:"butt",miterLimit:10,strokeNoScale:!1,strokeFirst:!1},r.oN),I={style:(0,w.defaults)({fill:!0,stroke:!0,strokePercent:!0,fillOpacity:!0,strokeOpacity:!0,lineDashOffset:!0,lineWidth:!0,miterLimit:!0},r.sW.style)},E=A.Wx.concat(["invisible","culling","z","z2","zlevel","parent"]);const k=function(t){function e(e){return t.call(this,e)||this}var n;return(0,i.C6)(e,t),e.prototype.update=function(){var n=this;t.prototype.update.call(this);var i=this.style;if(i.decal){var r=this._decalEl=this._decalEl||new e;r.buildPath===e.prototype.buildPath&&(r.buildPath=function(t){n.buildPath(t,n.shape)}),r.silent=!0;var o=r.style;for(var a in i)o[a]!==i[a]&&(o[a]=i[a]);o.fill=i.fill?i.decal:null,o.decal=null,o.shadowColor=null,i.strokeFirst&&(o.stroke=null);for(var s=0;s<E.length;++s)r[E[s]]=this[E[s]];r.__dirty|=M.M}else this._decalEl&&(this._decalEl=null)},e.prototype.getDecalElement=function(){return this._decalEl},e.prototype._init=function(e){var n=(0,w.keys)(e);this.shape=this.getDefaultShape();var i=this.getDefaultStyle();i&&this.useStyle(i);for(var r=0;r<n.length;r++){var o=n[r],a=e[o];"style"===o?this.style?(0,w.extend)(this.style,a):this.useStyle(a):"shape"===o?(0,w.extend)(this.shape,a):t.prototype.attrKV.call(this,o,a)}this.style||this.useStyle({})},e.prototype.getDefaultStyle=function(){return null},e.prototype.getDefaultShape=function(){return{}},e.prototype.canBeInsideText=function(){return this.hasFill()},e.prototype.getInsideTextFill=function(){var t=this.style.fill;if("none"!==t){if((0,w.isString)(t)){var e=(0,S.lum)(t,0);return e>.5?T._S:e>.2?T.tY:T.el}if(t)return T.el}return T._S},e.prototype.getInsideTextStroke=function(t){var e=this.style.fill;if((0,w.isString)(e)){var n=this.__zr;if(!(!n||!n.isDarkMode())===(0,S.lum)(t,0)<T.ps)return e}},e.prototype.buildPath=function(t,e,n){},e.prototype.pathUpdated=function(){this.__dirty&=~M.Dl},e.prototype.getUpdatedPathProxy=function(t){return!this.path&&this.createPathProxy(),this.path.beginPath(),this.buildPath(this.path,this.shape,t),this.path},e.prototype.createPathProxy=function(){this.path=new o.A(!1)},e.prototype.hasStroke=function(){var t=this.style,e=t.stroke;return!(null==e||"none"===e||!(t.lineWidth>0))},e.prototype.hasFill=function(){var t=this.style.fill;return null!=t&&"none"!==t},e.prototype.getBoundingRect=function(){var t=this._rect,e=this.style,n=!t;if(n){var i=!1;this.path||(i=!0,this.createPathProxy());var r=this.path;(i||this.__dirty&M.Dl)&&(r.beginPath(),this.buildPath(r,this.shape,!1),this.pathUpdated()),t=r.getBoundingRect()}if(this._rect=t,this.hasStroke()&&this.path&&this.path.len()>0){var o=this._rectStroke||(this._rectStroke=t.clone());if(this.__dirty||n){o.copy(t);var a=e.strokeNoScale?this.getLineScale():1,s=e.lineWidth;if(!this.hasFill()){var l=this.strokeContainThreshold;s=Math.max(s,null==l?4:l)}a>1e-10&&(o.width+=s/a,o.height+=s/a,o.x-=s/a/2,o.y-=s/a/2)}return o}return t},e.prototype.contain=function(t,e){var n=this.transformCoordToLocal(t,e),i=this.getBoundingRect(),r=this.style;if(t=n[0],e=n[1],i.contain(t,e)){var o=this.path;if(this.hasStroke()){var a=r.lineWidth,s=r.strokeNoScale?this.getLineScale():1;if(s>1e-10&&(this.hasFill()||(a=Math.max(a,this.strokeContainThreshold)),function(t,e,n,i){return b(t,e,!0,n,i)}(o,a/s,t,e)))return!0}if(this.hasFill())return function(t,e,n){return b(t,0,!1,e,n)}(o,t,e)}return!1},e.prototype.dirtyShape=function(){this.__dirty|=M.Dl,this._rect&&(this._rect=null),this._decalEl&&this._decalEl.dirtyShape(),this.markRedraw()},e.prototype.dirty=function(){this.dirtyStyle(),this.dirtyShape()},e.prototype.animateShape=function(t){return this.animate("shape",t)},e.prototype.updateDuringAnimation=function(t){"style"===t?this.dirtyStyle():"shape"===t?this.dirtyShape():this.markRedraw()},e.prototype.attrKV=function(e,n){"shape"===e?this.setShape(n):t.prototype.attrKV.call(this,e,n)},e.prototype.setShape=function(t,e){var n=this.shape;return n||(n=this.shape={}),"string"==typeof t?n[t]=e:(0,w.extend)(n,t),this.dirtyShape(),this},e.prototype.shapeChanged=function(){return!!(this.__dirty&M.Dl)},e.prototype.createStyle=function(t){return(0,w.createObject)(C,t)},e.prototype._innerSaveToNormal=function(e){t.prototype._innerSaveToNormal.call(this,e);var n=this._normalState;e.shape&&!n.shape&&(n.shape=(0,w.extend)({},this.shape))},e.prototype._applyStateObj=function(e,n,i,r,o,a){t.prototype._applyStateObj.call(this,e,n,i,r,o,a);var s,l=!(n&&r);if(n&&n.shape?o?r?s=n.shape:(s=(0,w.extend)({},i.shape),(0,w.extend)(s,n.shape)):(s=(0,w.extend)({},r?this.shape:i.shape),(0,w.extend)(s,n.shape)):l&&(s=i.shape),s)if(o){this.shape=(0,w.extend)({},this.shape);for(var h={},c=(0,w.keys)(s),u=0;u<c.length;u++){var d=c[u];"object"==typeof s[d]?this.shape[d]=s[d]:h[d]=s[d]}this._transitionState(e,{shape:h},a)}else this.shape=s,this.dirtyShape()},e.prototype._mergeStates=function(e){for(var n,i=t.prototype._mergeStates.call(this,e),r=0;r<e.length;r++){var o=e[r];o.shape&&(n=n||{},this._mergeStyle(n,o.shape))}return n&&(i.shape=n),i},e.prototype.getAnimationStyleProps=function(){return I},e.prototype.isZeroArea=function(){return!1},e.extend=function(t){var n=function(e){function n(n){var i=e.call(this,n)||this;return t.init&&t.init.call(i,n),i}return(0,i.C6)(n,e),n.prototype.getDefaultStyle=function(){return(0,w.clone)(t.style)},n.prototype.getDefaultShape=function(){return(0,w.clone)(t.shape)},n}(e);for(var r in t)"function"==typeof t[r]&&(n.prototype[r]=t[r]);return n},e.initDefaultProps=((n=e.prototype).type="path",n.strokeContainThreshold=5,n.segmentIgnoreThreshold=0,n.subPixelOptimize=!1,n.autoBatch=!1,void(n.__dirty=M.M|M.pO|M.Dl)),e}(r.Ay)},6575:(t,e,n)=>{"use strict";n.d(e,{A:()=>r});var i=n(528);const r=function(t){function e(e,n,i,r,o){var a=t.call(this,r)||this;return a.x=null==e?.5:e,a.y=null==n?.5:n,a.r=null==i?.5:i,a.type="radial",a.global=o||!1,a}return(0,i.C6)(e,t),e}(n(7540).A)},3554:(t,e,n)=>{"use strict";n.d(e,{A:()=>u});var i=n(528),r=n(7780),o=n(4611),a=n(1885),s=n(7845),l=n(9142),h=(0,s.defaults)({strokeFirst:!0,font:l.OH,x:0,y:0,textAlign:"left",textBaseline:"top",miterLimit:2},a.MW),c=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return(0,i.C6)(e,t),e.prototype.hasStroke=function(){var t=this.style,e=t.stroke;return null!=e&&"none"!==e&&t.lineWidth>0},e.prototype.hasFill=function(){var t=this.style.fill;return null!=t&&"none"!==t},e.prototype.createStyle=function(t){return(0,s.createObject)(h,t)},e.prototype.setBoundingRect=function(t){this._rect=t},e.prototype.getBoundingRect=function(){var t=this.style;if(!this._rect){var e=t.text;null!=e?e+="":e="";var n=(0,o.NO)(e,t.font,t.textAlign,t.textBaseline);if(n.x+=t.x||0,n.y+=t.y||0,this.hasStroke()){var i=t.lineWidth;n.x-=i/2,n.y-=i/2,n.width+=i,n.height+=i}this._rect=n}return this._rect},e.initDefaultProps=void(e.prototype.dirtyRectTolerance=10),e}(r.Ay);c.prototype.type="tspan";const u=c},1251:(t,e,n)=>{"use strict";n.d(e,{Ay:()=>I,I5:()=>_,XE:()=>b});var i=n(528),r=n(8559),o=n(3554),a=n(7845),s=n(4611),l=n(5975),h=n(7551),c=n(5383),u=n(7780),d=n(9142),p={fill:"#000"},f={style:(0,a.defaults)({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},u.sW.style)},g=function(t){function e(e){var n=t.call(this)||this;return n.type="text",n._children=[],n._defaultStyle=p,n.attr(e),n}return(0,i.C6)(e,t),e.prototype.childrenRef=function(){return this._children},e.prototype.update=function(){t.prototype.update.call(this),this.styleChanged()&&this._updateSubTexts();for(var e=0;e<this._children.length;e++){var n=this._children[e];n.zlevel=this.zlevel,n.z=this.z,n.z2=this.z2,n.culling=this.culling,n.cursor=this.cursor,n.invisible=this.invisible}},e.prototype.updateTransform=function(){var e=this.innerTransformable;e?(e.updateTransform(),e.transform&&(this.transform=e.transform)):t.prototype.updateTransform.call(this)},e.prototype.getLocalTransform=function(e){var n=this.innerTransformable;return n?n.getLocalTransform(e):t.prototype.getLocalTransform.call(this,e)},e.prototype.getComputedTransform=function(){return this.__hostTarget&&(this.__hostTarget.getComputedTransform(),this.__hostTarget.updateInnerText(!0)),t.prototype.getComputedTransform.call(this)},e.prototype._updateSubTexts=function(){var t;this._childCursor=0,w(t=this.style),(0,a.each)(t.rich,w),this.style.rich?this._updateRichTexts():this._updatePlainTexts(),this._children.length=this._childCursor,this.styleUpdated()},e.prototype.addSelfToZr=function(e){t.prototype.addSelfToZr.call(this,e);for(var n=0;n<this._children.length;n++)this._children[n].__zr=e},e.prototype.removeSelfFromZr=function(e){t.prototype.removeSelfFromZr.call(this,e);for(var n=0;n<this._children.length;n++)this._children[n].__zr=null},e.prototype.getBoundingRect=function(){if(this.styleChanged()&&this._updateSubTexts(),!this._rect){for(var t=new c.A(0,0,0,0),e=this._children,n=[],i=null,r=0;r<e.length;r++){var o=e[r],a=o.getBoundingRect(),s=o.getLocalTransform(n);s?(t.copy(a),t.applyTransform(s),(i=i||t.clone()).union(t)):(i=i||a.clone()).union(a)}this._rect=i||t}return this._rect},e.prototype.setDefaultTextStyle=function(t){this._defaultStyle=t||p},e.prototype.setTextContent=function(t){0},e.prototype._mergeStyle=function(t,e){if(!e)return t;var n=e.rich,i=t.rich||n&&{};return(0,a.extend)(t,e),n&&i?(this._mergeRich(i,n),t.rich=i):i&&(t.rich=i),t},e.prototype._mergeRich=function(t,e){for(var n=(0,a.keys)(e),i=0;i<n.length;i++){var r=n[i];t[r]=t[r]||{},(0,a.extend)(t[r],e[r])}},e.prototype.getAnimationStyleProps=function(){return f},e.prototype._getOrCreateChild=function(t){var e=this._children[this._childCursor];return e&&e instanceof t||(e=new t),this._children[this._childCursor++]=e,e.__zr=this.__zr,e.parent=this,e},e.prototype._updatePlainTexts=function(){var t=this.style,e=t.font||d.OH,n=t.padding,i=A(t),a=(0,r.j_)(i,t),l=C(t),h=!!t.backgroundColor,u=a.outerHeight,p=a.outerWidth,f=a.contentWidth,g=a.lines,m=a.lineHeight,v=this._defaultStyle,y=t.x||0,_=t.y||0,b=t.align||v.align||"left",w=t.verticalAlign||v.verticalAlign||"top",I=y,E=(0,s.sZ)(_,a.contentHeight,w);if(l||n){var k=(0,s.ll)(y,p,b),L=(0,s.sZ)(_,u,w);l&&this._renderBackground(t,t,k,L,p,u)}E+=m/2,n&&(I=M(y,b,n),"top"===w?E+=n[0]:"bottom"===w&&(E-=n[2]));for(var D=0,P=!1,R=(T("fill"in t?t.fill:(P=!0,v.fill))),O=(S("stroke"in t?t.stroke:h||v.autoStroke&&!P?null:(D=2,v.stroke))),N=t.textShadowBlur>0,F=null!=t.width&&("truncate"===t.overflow||"break"===t.overflow||"breakAll"===t.overflow),B=a.calculatedLineHeight,z=0;z<g.length;z++){var G=this._getOrCreateChild(o.A),V=G.createStyle();G.useStyle(V),V.text=g[z],V.x=I,V.y=E,b&&(V.textAlign=b),V.textBaseline="middle",V.opacity=t.opacity,V.strokeFirst=!0,N&&(V.shadowBlur=t.textShadowBlur||0,V.shadowColor=t.textShadowColor||"transparent",V.shadowOffsetX=t.textShadowOffsetX||0,V.shadowOffsetY=t.textShadowOffsetY||0),V.stroke=O,V.fill=R,O&&(V.lineWidth=t.lineWidth||D,V.lineDash=t.lineDash,V.lineDashOffset=t.lineDashOffset||0),V.font=e,x(V,t),E+=m,F&&G.setBoundingRect(new c.A((0,s.ll)(V.x,t.width,V.textAlign),(0,s.sZ)(V.y,B,V.textBaseline),f,B))}},e.prototype._updateRichTexts=function(){var t=this.style,e=A(t),n=(0,r.FQ)(e,t),i=n.width,o=n.outerWidth,a=n.outerHeight,l=t.padding,h=t.x||0,c=t.y||0,u=this._defaultStyle,d=t.align||u.align,p=t.verticalAlign||u.verticalAlign,f=(0,s.ll)(h,o,d),g=(0,s.sZ)(c,a,p),m=f,v=g;l&&(m+=l[3],v+=l[0]);var y=m+i;C(t)&&this._renderBackground(t,t,f,g,o,a);for(var _=!!t.backgroundColor,x=0;x<n.lines.length;x++){for(var b=n.lines[x],w=b.tokens,S=w.length,T=b.lineHeight,M=b.width,I=0,E=m,k=y,L=S-1,D=void 0;I<S&&(!(D=w[I]).align||"left"===D.align);)this._placeToken(D,t,T,v,E,"left",_),M-=D.width,E+=D.width,I++;for(;L>=0&&"right"===(D=w[L]).align;)this._placeToken(D,t,T,v,k,"right",_),M-=D.width,k-=D.width,L--;for(E+=(i-(E-m)-(y-k)-M)/2;I<=L;)D=w[I],this._placeToken(D,t,T,v,E+D.width/2,"center",_),E+=D.width,I++;v+=T}},e.prototype._placeToken=function(t,e,n,i,r,l,h){var u=e.rich[t.styleName]||{};u.text=t.text;var p=t.verticalAlign,f=i+n/2;"top"===p?f=i+t.height/2:"bottom"===p&&(f=i+n-t.height/2),!t.isLineHolder&&C(u)&&this._renderBackground(u,e,"right"===l?r-t.width:"center"===l?r-t.width/2:r,f-t.height/2,t.width,t.height);var g=!!u.backgroundColor,m=t.textPadding;m&&(r=M(r,l,m),f-=t.height/2-m[0]-t.innerHeight/2);var v=this._getOrCreateChild(o.A),y=v.createStyle();v.useStyle(y);var _=this._defaultStyle,b=!1,w=0,A=T("fill"in u?u.fill:"fill"in e?e.fill:(b=!0,_.fill)),I=S("stroke"in u?u.stroke:"stroke"in e?e.stroke:g||h||_.autoStroke&&!b?null:(w=2,_.stroke)),E=u.textShadowBlur>0||e.textShadowBlur>0;y.text=t.text,y.x=r,y.y=f,E&&(y.shadowBlur=u.textShadowBlur||e.textShadowBlur||0,y.shadowColor=u.textShadowColor||e.textShadowColor||"transparent",y.shadowOffsetX=u.textShadowOffsetX||e.textShadowOffsetX||0,y.shadowOffsetY=u.textShadowOffsetY||e.textShadowOffsetY||0),y.textAlign=l,y.textBaseline="middle",y.font=t.font||d.OH,y.opacity=(0,a.retrieve3)(u.opacity,e.opacity,1),x(y,u),I&&(y.lineWidth=(0,a.retrieve3)(u.lineWidth,e.lineWidth,w),y.lineDash=(0,a.retrieve2)(u.lineDash,e.lineDash),y.lineDashOffset=e.lineDashOffset||0,y.stroke=I),A&&(y.fill=A);var k=t.contentWidth,L=t.contentHeight;v.setBoundingRect(new c.A((0,s.ll)(y.x,k,y.textAlign),(0,s.sZ)(y.y,L,y.textBaseline),k,L))},e.prototype._renderBackground=function(t,e,n,i,r,o){var s,c,u,d=t.backgroundColor,p=t.borderWidth,f=t.borderColor,g=d&&d.image,m=d&&!g,v=t.borderRadius,y=this;if(m||t.lineHeight||p&&f){(s=this._getOrCreateChild(h.A)).useStyle(s.createStyle()),s.style.fill=null;var _=s.shape;_.x=n,_.y=i,_.width=r,_.height=o,_.r=v,s.dirtyShape()}if(m)(u=s.style).fill=d||null,u.fillOpacity=(0,a.retrieve2)(t.fillOpacity,1);else if(g){(c=this._getOrCreateChild(l.Ay)).onload=function(){y.dirtyStyle()};var x=c.style;x.image=d.image,x.x=n,x.y=i,x.width=r,x.height=o}p&&f&&((u=s.style).lineWidth=p,u.stroke=f,u.strokeOpacity=(0,a.retrieve2)(t.strokeOpacity,1),u.lineDash=t.borderDash,u.lineDashOffset=t.borderDashOffset||0,s.strokeContainThreshold=0,s.hasFill()&&s.hasStroke()&&(u.strokeFirst=!0,u.lineWidth*=2));var b=(s||c).style;b.shadowBlur=t.shadowBlur||0,b.shadowColor=t.shadowColor||"transparent",b.shadowOffsetX=t.shadowOffsetX||0,b.shadowOffsetY=t.shadowOffsetY||0,b.opacity=(0,a.retrieve3)(t.opacity,e.opacity,1)},e.makeFont=function(t){var e="";return b(t)&&(e=[t.fontStyle,t.fontWeight,_(t.fontSize),t.fontFamily||"sans-serif"].join(" ")),e&&(0,a.trim)(e)||t.textFont||t.font},e}(u.Ay),m={left:!0,right:1,center:1},v={top:1,bottom:1,middle:1},y=["fontStyle","fontWeight","fontSize","fontFamily"];function _(t){return"string"!=typeof t||-1===t.indexOf("px")&&-1===t.indexOf("rem")&&-1===t.indexOf("em")?isNaN(+t)?d.gI+"px":t+"px":t}function x(t,e){for(var n=0;n<y.length;n++){var i=y[n],r=e[i];null!=r&&(t[i]=r)}}function b(t){return null!=t.fontSize||t.fontFamily||t.fontWeight}function w(t){if(t){t.font=g.makeFont(t);var e=t.align;"middle"===e&&(e="center"),t.align=null==e||m[e]?e:"left";var n=t.verticalAlign;"center"===n&&(n="middle"),t.verticalAlign=null==n||v[n]?n:"top",t.padding&&(t.padding=(0,a.normalizeCssArray)(t.padding))}}function S(t,e){return null==t||e<=0||"transparent"===t||"none"===t?null:t.image||t.colorStops?"#000":t}function T(t){return null==t||"none"===t?null:t.image||t.colorStops?"#000":t}function M(t,e,n){return"right"===e?t-n[1]:"center"===e?t+n[3]/2-n[1]/2:t+n[3]}function A(t){var e=t.text;return null!=e&&(e+=""),e}function C(t){return!!(t.backgroundColor||t.lineHeight||t.borderWidth&&t.borderColor)}const I=g},5667:(t,e,n)=>{"use strict";n.d(e,{Dl:()=>o,M:()=>i,pO:()=>r});var i=1,r=2,o=4},3822:(t,e,n)=>{"use strict";n.d(e,{OD:()=>s,SR:()=>a,xA:()=>h});var i=n(6552),r=n(9142),o=new i.Ay(50);function a(t){if("string"==typeof t){var e=o.get(t);return e&&e.image}return t}function s(t,e,n,i,a){if(t){if("string"==typeof t){if(e&&e.__zrImageSrc===t||!n)return e;var s=o.get(t),c={hostEl:n,cb:i,cbPayload:a};return s?!h(e=s.image)&&s.pending.push(c):((e=r.yh.loadImage(t,l,l)).__zrImageSrc=t,o.put(t,e.__cachedImgObj={image:e,pending:[c]})),e}return t}return e}function l(){var t=this.__cachedImgObj;this.onload=this.onerror=this.__cachedImgObj=null;for(var e=0;e<t.pending.length;e++){var n=t.pending[e],i=n.cb;i&&i(this,n.cbPayload),n.hostEl.dirty()}t.pending.length=0}function h(t){return t&&t.width&&t.height}},8559:(t,e,n)=>{"use strict";n.d(e,{EJ:()=>s,FQ:()=>g,j_:()=>u});var i=n(3822),r=n(7845),o=n(4611),a=/\{([a-zA-Z0-9_]+)\|([^}]*)\}/g;function s(t,e,n,i,r){if(!e)return"";var o=(t+"").split("\n");r=l(e,n,i,r);for(var a=0,s=o.length;a<s;a++)o[a]=h(o[a],r);return o.join("\n")}function l(t,e,n,i){i=i||{};var a=(0,r.extend)({},i);a.font=e,n=(0,r.retrieve2)(n,"..."),a.maxIterations=(0,r.retrieve2)(i.maxIterations,2);var s=a.minChar=(0,r.retrieve2)(i.minChar,0);a.cnCharWidth=(0,o.RG)("\u56fd",e);var l=a.ascCharWidth=(0,o.RG)("a",e);a.placeholder=(0,r.retrieve2)(i.placeholder,"");for(var h=t=Math.max(0,t-1),c=0;c<s&&h>=l;c++)h-=l;var u=(0,o.RG)(n,e);return u>h&&(n="",u=0),h=t-u,a.ellipsis=n,a.ellipsisWidth=u,a.contentWidth=h,a.containerWidth=t,a}function h(t,e){var n=e.containerWidth,i=e.font,r=e.contentWidth;if(!n)return"";var a=(0,o.RG)(t,i);if(a<=n)return t;for(var s=0;;s++){if(a<=r||s>=e.maxIterations){t+=e.ellipsis;break}var l=0===s?c(t,r,e.ascCharWidth,e.cnCharWidth):a>0?Math.floor(t.length*r/a):0;t=t.substr(0,l),a=(0,o.RG)(t,i)}return""===t&&(t=e.placeholder),t}function c(t,e,n,i){for(var r=0,o=0,a=t.length;o<a&&r<e;o++){var s=t.charCodeAt(o);r+=0<=s&&s<=127?n:i}return o}function u(t,e){null!=t&&(t+="");var n,i=e.overflow,a=e.padding,s=e.font,c="truncate"===i,u=(0,o.ks)(s),d=(0,r.retrieve2)(e.lineHeight,u),p=!!e.backgroundColor,f="truncate"===e.lineOverflow,g=e.width,m=(n=null==g||"break"!==i&&"breakAll"!==i?t?t.split("\n"):[]:t?_(t,e.font,g,"breakAll"===i,0).lines:[]).length*d,v=(0,r.retrieve2)(e.height,m);if(m>v&&f){var y=Math.floor(v/d);n=n.slice(0,y)}if(t&&c&&null!=g)for(var x=l(g,s,e.ellipsis,{minChar:e.truncateMinChar,placeholder:e.placeholder}),b=0;b<n.length;b++)n[b]=h(n[b],x);var w=v,S=0;for(b=0;b<n.length;b++)S=Math.max((0,o.RG)(n[b],s),S);null==g&&(g=S);var T=S;return a&&(w+=a[0]+a[2],T+=a[1]+a[3],g+=a[1]+a[3]),p&&(T=g),{lines:n,height:v,outerWidth:T,outerHeight:w,lineHeight:d,calculatedLineHeight:u,contentWidth:S,contentHeight:m,width:g}}var d=function(){},p=function(t){this.tokens=[],t&&(this.tokens=t)},f=function(){this.width=0,this.height=0,this.contentWidth=0,this.contentHeight=0,this.outerWidth=0,this.outerHeight=0,this.lines=[]};function g(t,e){var n=new f;if(null!=t&&(t+=""),!t)return n;for(var l,h=e.width,c=e.height,u=e.overflow,d="break"!==u&&"breakAll"!==u||null==h?null:{width:h,accumWidth:0,breakAll:"breakAll"===u},p=a.lastIndex=0;null!=(l=a.exec(t));){var g=l.index;g>p&&m(n,t.substring(p,g),e,d),m(n,l[2],e,d,l[1]),p=a.lastIndex}p<t.length&&m(n,t.substring(p,t.length),e,d);var v=[],y=0,_=0,x=e.padding,b="truncate"===u,w="truncate"===e.lineOverflow;function S(t,e,n){t.width=e,t.lineHeight=n,y+=n,_=Math.max(_,e)}t:for(var T=0;T<n.lines.length;T++){for(var M=n.lines[T],A=0,C=0,I=0;I<M.tokens.length;I++){var E=(z=M.tokens[I]).styleName&&e.rich[z.styleName]||{},k=z.textPadding=E.padding,L=k?k[1]+k[3]:0,D=z.font=E.font||e.font;z.contentHeight=(0,o.ks)(D);var P=(0,r.retrieve2)(E.height,z.contentHeight);if(z.innerHeight=P,k&&(P+=k[0]+k[2]),z.height=P,z.lineHeight=(0,r.retrieve3)(E.lineHeight,e.lineHeight,P),z.align=E&&E.align||e.align,z.verticalAlign=E&&E.verticalAlign||"middle",w&&null!=c&&y+z.lineHeight>c){I>0?(M.tokens=M.tokens.slice(0,I),S(M,C,A),n.lines=n.lines.slice(0,T+1)):n.lines=n.lines.slice(0,T);break t}var R=E.width,O=null==R||"auto"===R;if("string"==typeof R&&"%"===R.charAt(R.length-1))z.percentWidth=R,v.push(z),z.contentWidth=(0,o.RG)(z.text,D);else{if(O){var N=E.backgroundColor,F=N&&N.image;F&&(F=i.SR(F),i.xA(F)&&(z.width=Math.max(z.width,F.width*P/F.height)))}var B=b&&null!=h?h-C:null;null!=B&&B<z.width?!O||B<L?(z.text="",z.width=z.contentWidth=0):(z.text=s(z.text,B-L,D,e.ellipsis,{minChar:e.truncateMinChar}),z.width=z.contentWidth=(0,o.RG)(z.text,D)):z.contentWidth=(0,o.RG)(z.text,D)}z.width+=L,C+=z.width,E&&(A=Math.max(A,z.lineHeight))}S(M,C,A)}n.outerWidth=n.width=(0,r.retrieve2)(h,_),n.outerHeight=n.height=(0,r.retrieve2)(c,y),n.contentHeight=y,n.contentWidth=_,x&&(n.outerWidth+=x[1]+x[3],n.outerHeight+=x[0]+x[2]);for(T=0;T<v.length;T++){var z,G=(z=v[T]).percentWidth;z.width=parseInt(G,10)/100*n.width}return n}function m(t,e,n,i,r){var a,s,l=""===e,h=r&&n.rich[r]||{},c=t.lines,u=h.font||n.font,f=!1;if(i){var g=h.padding,m=g?g[1]+g[3]:0;if(null!=h.width&&"auto"!==h.width){var v=(0,o.lo)(h.width,i.width)+m;c.length>0&&v+i.accumWidth>i.width&&(a=e.split("\n"),f=!0),i.accumWidth=v}else{var y=_(e,u,i.width,i.breakAll,i.accumWidth);i.accumWidth=y.accumWidth+m,s=y.linesWidths,a=y.lines}}else a=e.split("\n");for(var x=0;x<a.length;x++){var b=a[x],w=new d;if(w.styleName=r,w.text=b,w.isLineHolder=!b&&!l,"number"==typeof h.width?w.width=h.width:w.width=s?s[x]:(0,o.RG)(b,u),x||f)c.push(new p([w]));else{var S=(c[c.length-1]||(c[0]=new p)).tokens,T=S.length;1===T&&S[0].isLineHolder?S[0]=w:(b||!T||l)&&S.push(w)}}}var v=(0,r.reduce)(",&?/;] ".split(""),(function(t,e){return t[e]=!0,t}),{});function y(t){return!function(t){var e=t.charCodeAt(0);return e>=32&&e<=591||e>=880&&e<=4351||e>=4608&&e<=5119||e>=7680&&e<=8303}(t)||!!v[t]}function _(t,e,n,i,r){for(var a=[],s=[],l="",h="",c=0,u=0,d=0;d<t.length;d++){var p=t.charAt(d);if("\n"!==p){var f=(0,o.RG)(p,e),g=!i&&!y(p);(a.length?u+f>n:r+u+f>n)?u?(l||h)&&(g?(l||(l=h,h="",u=c=0),a.push(l),s.push(u-c),h+=p,l="",u=c+=f):(h&&(l+=h,h="",c=0),a.push(l),s.push(u),l=p,u=f)):g?(a.push(h),s.push(c),h=p,c=f):(a.push(p),s.push(f)):(u+=f,g?(h+=p,c+=f):(h&&(l+=h,h="",c=0),l+=p))}else h&&(l+=h,u+=c),a.push(l),s.push(u),l="",h="",c=0,u=0}return a.length||l||(l=t,h="",c=0),h&&(l+=h),l&&(a.push(l),s.push(u)),1===a.length&&(u+=r),{accumWidth:u,lines:a,linesWidths:s}}},2906:(t,e,n)=>{"use strict";n.d(e,{U:()=>r});var i=n(4070);function r(t,e,n){var r=e.smooth,o=e.points;if(o&&o.length>=2){if(r){var a=function(t,e,n,r){var o,a,s,l,h=[],c=[],u=[],d=[];if(r){s=[1/0,1/0],l=[-1/0,-1/0];for(var p=0,f=t.length;p<f;p++)(0,i.min)(s,s,t[p]),(0,i.max)(l,l,t[p]);(0,i.min)(s,s,r[0]),(0,i.max)(l,l,r[1])}for(p=0,f=t.length;p<f;p++){var g=t[p];if(n)o=t[p?p-1:f-1],a=t[(p+1)%f];else{if(0===p||p===f-1){h.push((0,i.clone)(t[p]));continue}o=t[p-1],a=t[p+1]}(0,i.sub)(c,a,o),(0,i.scale)(c,c,e);var m=(0,i.distance)(g,o),v=(0,i.distance)(g,a),y=m+v;0!==y&&(m/=y,v/=y),(0,i.scale)(u,c,-m),(0,i.scale)(d,c,v);var _=(0,i.add)([],g,u),x=(0,i.add)([],g,d);r&&((0,i.max)(_,_,s),(0,i.min)(_,_,l),(0,i.max)(x,x,s),(0,i.min)(x,x,l)),h.push(_),h.push(x)}return n&&h.push(h.shift()),h}(o,r,n,e.smoothConstraint);t.moveTo(o[0][0],o[0][1]);for(var s=o.length,l=0;l<(n?s:s-1);l++){var h=a[2*l],c=a[2*l+1],u=o[(l+1)%s];t.bezierCurveTo(h[0],h[1],c[0],c[1],u[0],u[1])}}else{t.moveTo(o[0][0],o[0][1]);l=1;for(var d=o.length;l<d;l++)t.lineTo(o[l][0],o[l][1])}n&&t.closePath()}}},7278:(t,e,n)=>{"use strict";n.d(e,{M7:()=>a,Op:()=>o,eB:()=>r});var i=Math.round;function r(t,e,n){if(e){var r=e.x1,o=e.x2,s=e.y1,l=e.y2;t.x1=r,t.x2=o,t.y1=s,t.y2=l;var h=n&&n.lineWidth;return h?(i(2*r)===i(2*o)&&(t.x1=t.x2=a(r,h,!0)),i(2*s)===i(2*l)&&(t.y1=t.y2=a(s,h,!0)),t):t}}function o(t,e,n){if(e){var i=e.x,r=e.y,o=e.width,s=e.height;t.x=i,t.y=r,t.width=o,t.height=s;var l=n&&n.lineWidth;return l?(t.x=a(i,l,!0),t.y=a(r,l,!0),t.width=Math.max(a(i+o,l,!1)-t.x,0===o?0:1),t.height=Math.max(a(r+s,l,!1)-t.y,0===s?0:1),t):t}}function a(t,e,n){if(!e)return t;var r=i(2*t);return(r+i(e))%2==0?r/2:(r+(n?1:-1))/2}},4924:(t,e,n)=>{"use strict";n.d(e,{A:()=>s});var i=n(528),r=n(1885),o=function(){this.cx=0,this.cy=0,this.r=0,this.startAngle=0,this.endAngle=2*Math.PI,this.clockwise=!0},a=function(t){function e(e){return t.call(this,e)||this}return(0,i.C6)(e,t),e.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},e.prototype.getDefaultShape=function(){return new o},e.prototype.buildPath=function(t,e){var n=e.cx,i=e.cy,r=Math.max(e.r,0),o=e.startAngle,a=e.endAngle,s=e.clockwise,l=Math.cos(o),h=Math.sin(o);t.moveTo(l*r+n,h*r+i),t.arc(n,i,r,o,a,!s)},e}(r.Ay);a.prototype.type="arc";const s=a},8526:(t,e,n)=>{"use strict";n.d(e,{A:()=>u});var i=n(528),r=n(1885),o=n(4070),a=n(5162),s=[],l=function(){this.x1=0,this.y1=0,this.x2=0,this.y2=0,this.cpx1=0,this.cpy1=0,this.percent=1};function h(t,e,n){var i=t.cpx2,r=t.cpy2;return null!=i||null!=r?[(n?a.rD:a.Yb)(t.x1,t.cpx1,t.cpx2,t.x2,e),(n?a.rD:a.Yb)(t.y1,t.cpy1,t.cpy2,t.y2,e)]:[(n?a.z7:a.k3)(t.x1,t.cpx1,t.x2,e),(n?a.z7:a.k3)(t.y1,t.cpy1,t.y2,e)]}var c=function(t){function e(e){return t.call(this,e)||this}return(0,i.C6)(e,t),e.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},e.prototype.getDefaultShape=function(){return new l},e.prototype.buildPath=function(t,e){var n=e.x1,i=e.y1,r=e.x2,o=e.y2,l=e.cpx1,h=e.cpy1,c=e.cpx2,u=e.cpy2,d=e.percent;0!==d&&(t.moveTo(n,i),null==c||null==u?(d<1&&((0,a.kx)(n,l,r,d,s),l=s[1],r=s[2],(0,a.kx)(i,h,o,d,s),h=s[1],o=s[2]),t.quadraticCurveTo(l,h,r,o)):(d<1&&((0,a.YT)(n,l,c,r,d,s),l=s[1],c=s[2],r=s[3],(0,a.YT)(i,h,u,o,d,s),h=s[1],u=s[2],o=s[3]),t.bezierCurveTo(l,h,c,u,r,o)))},e.prototype.pointAt=function(t){return h(this.shape,t,!1)},e.prototype.tangentAt=function(t){var e=h(this.shape,t,!0);return o.normalize(e,e)},e}(r.Ay);c.prototype.type="bezier-curve";const u=c},1262:(t,e,n)=>{"use strict";n.d(e,{A:()=>s});var i=n(528),r=n(1885),o=function(){this.cx=0,this.cy=0,this.r=0},a=function(t){function e(e){return t.call(this,e)||this}return(0,i.C6)(e,t),e.prototype.getDefaultShape=function(){return new o},e.prototype.buildPath=function(t,e){t.moveTo(e.cx+e.r,e.cy),t.arc(e.cx,e.cy,e.r,0,2*Math.PI)},e}(r.Ay);a.prototype.type="circle";const s=a},1478:(t,e,n)=>{"use strict";n.d(e,{A:()=>s});var i=n(528),r=n(1885),o=function(){this.cx=0,this.cy=0,this.rx=0,this.ry=0},a=function(t){function e(e){return t.call(this,e)||this}return(0,i.C6)(e,t),e.prototype.getDefaultShape=function(){return new o},e.prototype.buildPath=function(t,e){var n=.5522848,i=e.cx,r=e.cy,o=e.rx,a=e.ry,s=o*n,l=a*n;t.moveTo(i-o,r),t.bezierCurveTo(i-o,r-l,i-s,r-a,i,r-a),t.bezierCurveTo(i+s,r-a,i+o,r-l,i+o,r),t.bezierCurveTo(i+o,r+l,i+s,r+a,i,r+a),t.bezierCurveTo(i-s,r+a,i-o,r+l,i-o,r),t.closePath()},e}(r.Ay);a.prototype.type="ellipse";const s=a},5840:(t,e,n)=>{"use strict";n.d(e,{A:()=>h});var i=n(528),r=n(1885),o=n(7278),a={},s=function(){this.x1=0,this.y1=0,this.x2=0,this.y2=0,this.percent=1},l=function(t){function e(e){return t.call(this,e)||this}return(0,i.C6)(e,t),e.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},e.prototype.getDefaultShape=function(){return new s},e.prototype.buildPath=function(t,e){var n,i,r,s;if(this.subPixelOptimize){var l=(0,o.eB)(a,e,this.style);n=l.x1,i=l.y1,r=l.x2,s=l.y2}else n=e.x1,i=e.y1,r=e.x2,s=e.y2;var h=e.percent;0!==h&&(t.moveTo(n,i),h<1&&(r=n*(1-h)+r*h,s=i*(1-h)+s*h),t.lineTo(r,s))},e.prototype.pointAt=function(t){var e=this.shape;return[e.x1*(1-t)+e.x2*t,e.y1*(1-t)+e.y2*t]},e}(r.Ay);l.prototype.type="line";const h=l},4942:(t,e,n)=>{"use strict";n.d(e,{A:()=>l});var i=n(528),r=n(1885),o=n(2906),a=function(){this.points=null,this.smooth=0,this.smoothConstraint=null},s=function(t){function e(e){return t.call(this,e)||this}return(0,i.C6)(e,t),e.prototype.getDefaultShape=function(){return new a},e.prototype.buildPath=function(t,e){o.U(t,e,!0)},e}(r.Ay);s.prototype.type="polygon";const l=s},1106:(t,e,n)=>{"use strict";n.d(e,{A:()=>l});var i=n(528),r=n(1885),o=n(2906),a=function(){this.points=null,this.percent=1,this.smooth=0,this.smoothConstraint=null},s=function(t){function e(e){return t.call(this,e)||this}return(0,i.C6)(e,t),e.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},e.prototype.getDefaultShape=function(){return new a},e.prototype.buildPath=function(t,e){o.U(t,e,!1)},e}(r.Ay);s.prototype.type="polyline";const l=s},7551:(t,e,n)=>{"use strict";n.d(e,{A:()=>h});var i=n(528),r=n(1885);var o=n(7278),a=function(){this.x=0,this.y=0,this.width=0,this.height=0},s={},l=function(t){function e(e){return t.call(this,e)||this}return(0,i.C6)(e,t),e.prototype.getDefaultShape=function(){return new a},e.prototype.buildPath=function(t,e){var n,i,r,a;if(this.subPixelOptimize){var l=(0,o.Op)(s,e,this.style);n=l.x,i=l.y,r=l.width,a=l.height,l.r=e.r,e=l}else n=e.x,i=e.y,r=e.width,a=e.height;e.r?function(t,e){var n,i,r,o,a,s=e.x,l=e.y,h=e.width,c=e.height,u=e.r;h<0&&(s+=h,h=-h),c<0&&(l+=c,c=-c),"number"==typeof u?n=i=r=o=u:u instanceof Array?1===u.length?n=i=r=o=u[0]:2===u.length?(n=r=u[0],i=o=u[1]):3===u.length?(n=u[0],i=o=u[1],r=u[2]):(n=u[0],i=u[1],r=u[2],o=u[3]):n=i=r=o=0,n+i>h&&(n*=h/(a=n+i),i*=h/a),r+o>h&&(r*=h/(a=r+o),o*=h/a),i+r>c&&(i*=c/(a=i+r),r*=c/a),n+o>c&&(n*=c/(a=n+o),o*=c/a),t.moveTo(s+n,l),t.lineTo(s+h-i,l),0!==i&&t.arc(s+h-i,l+i,i,-Math.PI/2,0),t.lineTo(s+h,l+c-r),0!==r&&t.arc(s+h-r,l+c-r,r,0,Math.PI/2),t.lineTo(s+o,l+c),0!==o&&t.arc(s+o,l+c-o,o,Math.PI/2,Math.PI),t.lineTo(s,l+n),0!==n&&t.arc(s+n,l+n,n,Math.PI,1.5*Math.PI)}(t,e):t.rect(n,i,r,a)},e.prototype.isZeroArea=function(){return!this.shape.width||!this.shape.height},e}(r.Ay);l.prototype.type="rect";const h=l},9804:(t,e,n)=>{"use strict";n.d(e,{A:()=>s});var i=n(528),r=n(1885),o=function(){this.cx=0,this.cy=0,this.r=0,this.r0=0},a=function(t){function e(e){return t.call(this,e)||this}return(0,i.C6)(e,t),e.prototype.getDefaultShape=function(){return new o},e.prototype.buildPath=function(t,e){var n=e.cx,i=e.cy,r=2*Math.PI;t.moveTo(n+e.r,i),t.arc(n,i,e.r,0,r,!1),t.moveTo(n+e.r0,i),t.arc(n,i,e.r0,0,r,!0)},e}(r.Ay);a.prototype.type="ring";const s=a},7532:(t,e,n)=>{"use strict";n.d(e,{A:()=>b});var i=n(528),r=n(1885),o=n(7845),a=Math.PI,s=2*a,l=Math.sin,h=Math.cos,c=Math.acos,u=Math.atan2,d=Math.abs,p=Math.sqrt,f=Math.max,g=Math.min,m=1e-4;function v(t,e,n,i,r,o,a){var s=t-n,l=e-i,h=(a?o:-o)/p(s*s+l*l),c=h*l,u=-h*s,d=t+c,g=e+u,m=n+c,v=i+u,y=(d+m)/2,_=(g+v)/2,x=m-d,b=v-g,w=x*x+b*b,S=r-o,T=d*v-m*g,M=(b<0?-1:1)*p(f(0,S*S*w-T*T)),A=(T*b-x*M)/w,C=(-T*x-b*M)/w,I=(T*b+x*M)/w,E=(-T*x+b*M)/w,k=A-y,L=C-_,D=I-y,P=E-_;return k*k+L*L>D*D+P*P&&(A=I,C=E),{cx:A,cy:C,x0:-c,y0:-u,x1:A*(r/S-1),y1:C*(r/S-1)}}function y(t,e){var n,i=f(e.r,0),r=f(e.r0||0,0),y=i>0;if(y||r>0){if(y||(i=r,r=0),r>i){var _=i;i=r,r=_}var x=e.startAngle,b=e.endAngle;if(!isNaN(x)&&!isNaN(b)){var w=e.cx,S=e.cy,T=!!e.clockwise,M=d(b-x),A=M>s&&M%s;if(A>m&&(M=A),i>m)if(M>s-m)t.moveTo(w+i*h(x),S+i*l(x)),t.arc(w,S,i,x,b,!T),r>m&&(t.moveTo(w+r*h(b),S+r*l(b)),t.arc(w,S,r,b,x,T));else{var C=void 0,I=void 0,E=void 0,k=void 0,L=void 0,D=void 0,P=void 0,R=void 0,O=void 0,N=void 0,F=void 0,B=void 0,z=void 0,G=void 0,V=void 0,j=void 0,H=i*h(x),W=i*l(x),U=r*h(b),q=r*l(b),X=M>m;if(X){var Y=e.cornerRadius;Y&&(C=(n=function(t){var e;if((0,o.isArray)(t)){var n=t.length;if(!n)return t;e=1===n?[t[0],t[0],0,0]:2===n?[t[0],t[0],t[1],t[1]]:3===n?t.concat(t[2]):t}else e=[t,t,t,t];return e}(Y))[0],I=n[1],E=n[2],k=n[3]);var Z=d(i-r)/2;if(L=g(Z,E),D=g(Z,k),P=g(Z,C),R=g(Z,I),F=O=f(L,D),B=N=f(P,R),(O>m||N>m)&&(z=i*h(b),G=i*l(b),V=r*h(x),j=r*l(x),M<a)){var $=function(t,e,n,i,r,o,a,s){var l=n-t,h=i-e,c=a-r,u=s-o,d=u*l-c*h;if(!(d*d<m))return[t+(d=(c*(e-o)-u*(t-r))/d)*l,e+d*h]}(H,W,V,j,z,G,U,q);if($){var K=H-$[0],J=W-$[1],Q=z-$[0],tt=G-$[1],et=1/l(c((K*Q+J*tt)/(p(K*K+J*J)*p(Q*Q+tt*tt)))/2),nt=p($[0]*$[0]+$[1]*$[1]);F=g(O,(i-nt)/(et+1)),B=g(N,(r-nt)/(et-1))}}}if(X)if(F>m){var it=g(E,F),rt=g(k,F),ot=v(V,j,H,W,i,it,T),at=v(z,G,U,q,i,rt,T);t.moveTo(w+ot.cx+ot.x0,S+ot.cy+ot.y0),F<O&&it===rt?t.arc(w+ot.cx,S+ot.cy,F,u(ot.y0,ot.x0),u(at.y0,at.x0),!T):(it>0&&t.arc(w+ot.cx,S+ot.cy,it,u(ot.y0,ot.x0),u(ot.y1,ot.x1),!T),t.arc(w,S,i,u(ot.cy+ot.y1,ot.cx+ot.x1),u(at.cy+at.y1,at.cx+at.x1),!T),rt>0&&t.arc(w+at.cx,S+at.cy,rt,u(at.y1,at.x1),u(at.y0,at.x0),!T))}else t.moveTo(w+H,S+W),t.arc(w,S,i,x,b,!T);else t.moveTo(w+H,S+W);if(r>m&&X)if(B>m){it=g(C,B),ot=v(U,q,z,G,r,-(rt=g(I,B)),T),at=v(H,W,V,j,r,-it,T);t.lineTo(w+ot.cx+ot.x0,S+ot.cy+ot.y0),B<N&&it===rt?t.arc(w+ot.cx,S+ot.cy,B,u(ot.y0,ot.x0),u(at.y0,at.x0),!T):(rt>0&&t.arc(w+ot.cx,S+ot.cy,rt,u(ot.y0,ot.x0),u(ot.y1,ot.x1),!T),t.arc(w,S,r,u(ot.cy+ot.y1,ot.cx+ot.x1),u(at.cy+at.y1,at.cx+at.x1),T),it>0&&t.arc(w+at.cx,S+at.cy,it,u(at.y1,at.x1),u(at.y0,at.x0),!T))}else t.lineTo(w+U,S+q),t.arc(w,S,r,b,x,T);else t.lineTo(w+U,S+q)}else t.moveTo(w,S);t.closePath()}}}var _=function(){this.cx=0,this.cy=0,this.r0=0,this.r=0,this.startAngle=0,this.endAngle=2*Math.PI,this.clockwise=!0,this.cornerRadius=0},x=function(t){function e(e){return t.call(this,e)||this}return(0,i.C6)(e,t),e.prototype.getDefaultShape=function(){return new _},e.prototype.buildPath=function(t,e){y(t,e)},e.prototype.isZeroArea=function(){return this.shape.startAngle===this.shape.endAngle||this.shape.r===this.shape.r0},e}(r.Ay);x.prototype.type="sector";const b=x},9934:(t,e,n)=>{"use strict";n.d(e,{$2:()=>s,Cv:()=>h,MD:()=>S,OH:()=>x,OS:()=>_,Pt:()=>y,WG:()=>M,XP:()=>u,Xu:()=>w,Z1:()=>T,bn:()=>b,dX:()=>g,eQ:()=>p,nV:()=>d,sL:()=>v,sZ:()=>f,si:()=>m});var i=n(7845),r=n(7219),o=n(4810),a=Math.round;function s(t){var e;if(t&&"transparent"!==t){if("string"==typeof t&&t.indexOf("rgba")>-1){var n=(0,r.parse)(t);n&&(t="rgb("+n[0]+","+n[1]+","+n[2]+")",e=n[3])}}else t="none";return{color:t,opacity:null==e?1:e}}var l=1e-4;function h(t){return t<l&&t>-l}function c(t){return a(1e3*t)/1e3}function u(t){return a(1e4*t)/1e4}function d(t){return"matrix("+c(t[0])+","+c(t[1])+","+c(t[2])+","+c(t[3])+","+u(t[4])+","+u(t[5])+")"}var p={left:"start",right:"end",center:"middle",middle:"middle"};function f(t,e,n){return"top"===n?t+=e/2:"bottom"===n&&(t-=e/2),t}function g(t){return t&&(t.shadowBlur||t.shadowOffsetX||t.shadowOffsetY)}function m(t){var e=t.style,n=t.getGlobalScale();return[e.shadowColor,(e.shadowBlur||0).toFixed(2),(e.shadowOffsetX||0).toFixed(2),(e.shadowOffsetY||0).toFixed(2),n[0],n[1]].join(",")}function v(t){return t&&!!t.image}function y(t){return v(t)||function(t){return t&&!!t.svgElement}(t)}function _(t){return"linear"===t.type}function x(t){return"radial"===t.type}function b(t){return t&&("linear"===t.type||"radial"===t.type)}function w(t){return"url(#"+t+")"}function S(t){var e=t.getGlobalScale(),n=Math.max(e[0],e[1]);return Math.max(Math.ceil(Math.log(n)/Math.log(10)),1)}function T(t){var e=t.x||0,n=t.y||0,r=(t.rotation||0)*i.RADIAN_TO_DEGREE,o=(0,i.retrieve2)(t.scaleX,1),s=(0,i.retrieve2)(t.scaleY,1),l=t.skewX||0,h=t.skewY||0,c=[];return(e||n)&&c.push("translate("+e+"px,"+n+"px)"),r&&c.push("rotate("+r+")"),1===o&&1===s||c.push("scale("+o+","+s+")"),(l||h)&&c.push("skew("+a(l*i.RADIAN_TO_DEGREE)+"deg, "+a(h*i.RADIAN_TO_DEGREE)+"deg)"),c.join(" ")}var M=o.A.hasGlobalWindow&&(0,i.isFunction)(window.btoa)?function(t){return window.btoa(unescape(encodeURIComponent(t)))}:"undefined"!=typeof Buffer?function(t){return Buffer.from(t).toString("base64")}:function(t){return null}},7219:(t,e,n)=>{"use strict";n.r(e),n.d(e,{fastLerp:()=>b,fastMapToColor:()=>w,lerp:()=>S,lift:()=>_,liftColor:()=>L,lum:()=>I,mapToColor:()=>T,modifyAlpha:()=>A,modifyHSL:()=>M,parse:()=>v,random:()=>E,stringify:()=>C,toHex:()=>x});var i=n(6552),r=n(7845),o={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 a(t){return(t=Math.round(t))<0?0:t>255?255:t}function s(t){return t<0?0:t>1?1:t}function l(t){var e=t;return e.length&&"%"===e.charAt(e.length-1)?a(parseFloat(e)/100*255):a(parseInt(e,10))}function h(t){var e=t;return e.length&&"%"===e.charAt(e.length-1)?s(parseFloat(e)/100):s(parseFloat(e))}function c(t,e,n){return n<0?n+=1:n>1&&(n-=1),6*n<1?t+(e-t)*n*6:2*n<1?e:3*n<2?t+(e-t)*(2/3-n)*6:t}function u(t,e,n){return t+(e-t)*n}function d(t,e,n,i,r){return t[0]=e,t[1]=n,t[2]=i,t[3]=r,t}function p(t,e){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3],t}var f=new i.Ay(20),g=null;function m(t,e){g&&p(g,e),g=f.put(t,g||e.slice())}function v(t,e){if(t){e=e||[];var n=f.get(t);if(n)return p(e,n);var i=(t+="").replace(/ /g,"").toLowerCase();if(i in o)return p(e,o[i]),m(t,e),e;var r,a=i.length;if("#"===i.charAt(0))return 4===a||5===a?(r=parseInt(i.slice(1,4),16))>=0&&r<=4095?(d(e,(3840&r)>>4|(3840&r)>>8,240&r|(240&r)>>4,15&r|(15&r)<<4,5===a?parseInt(i.slice(4),16)/15:1),m(t,e),e):void d(e,0,0,0,1):7===a||9===a?(r=parseInt(i.slice(1,7),16))>=0&&r<=16777215?(d(e,(16711680&r)>>16,(65280&r)>>8,255&r,9===a?parseInt(i.slice(7),16)/255:1),m(t,e),e):void d(e,0,0,0,1):void 0;var s=i.indexOf("("),c=i.indexOf(")");if(-1!==s&&c+1===a){var u=i.substr(0,s),g=i.substr(s+1,c-(s+1)).split(","),v=1;switch(u){case"rgba":if(4!==g.length)return 3===g.length?d(e,+g[0],+g[1],+g[2],1):d(e,0,0,0,1);v=h(g.pop());case"rgb":return g.length>=3?(d(e,l(g[0]),l(g[1]),l(g[2]),3===g.length?v:h(g[3])),m(t,e),e):void d(e,0,0,0,1);case"hsla":return 4!==g.length?void d(e,0,0,0,1):(g[3]=h(g[3]),y(g,e),m(t,e),e);case"hsl":return 3!==g.length?void d(e,0,0,0,1):(y(g,e),m(t,e),e);default:return}}d(e,0,0,0,1)}}function y(t,e){var n=(parseFloat(t[0])%360+360)%360/360,i=h(t[1]),r=h(t[2]),o=r<=.5?r*(i+1):r+i-r*i,s=2*r-o;return d(e=e||[],a(255*c(s,o,n+1/3)),a(255*c(s,o,n)),a(255*c(s,o,n-1/3)),1),4===t.length&&(e[3]=t[3]),e}function _(t,e){var n=v(t);if(n){for(var i=0;i<3;i++)n[i]=e<0?n[i]*(1-e)|0:(255-n[i])*e+n[i]|0,n[i]>255?n[i]=255:n[i]<0&&(n[i]=0);return C(n,4===n.length?"rgba":"rgb")}}function x(t){var e=v(t);if(e)return((1<<24)+(e[0]<<16)+(e[1]<<8)+ +e[2]).toString(16).slice(1)}function b(t,e,n){if(e&&e.length&&t>=0&&t<=1){n=n||[];var i=t*(e.length-1),r=Math.floor(i),o=Math.ceil(i),l=e[r],h=e[o],c=i-r;return n[0]=a(u(l[0],h[0],c)),n[1]=a(u(l[1],h[1],c)),n[2]=a(u(l[2],h[2],c)),n[3]=s(u(l[3],h[3],c)),n}}var w=b;function S(t,e,n){if(e&&e.length&&t>=0&&t<=1){var i=t*(e.length-1),r=Math.floor(i),o=Math.ceil(i),l=v(e[r]),h=v(e[o]),c=i-r,d=C([a(u(l[0],h[0],c)),a(u(l[1],h[1],c)),a(u(l[2],h[2],c)),s(u(l[3],h[3],c))],"rgba");return n?{color:d,leftIndex:r,rightIndex:o,value:i}:d}}var T=S;function M(t,e,n,i){var r,o=v(t);if(t)return o=function(t){if(t){var e,n,i=t[0]/255,r=t[1]/255,o=t[2]/255,a=Math.min(i,r,o),s=Math.max(i,r,o),l=s-a,h=(s+a)/2;if(0===l)e=0,n=0;else{n=h<.5?l/(s+a):l/(2-s-a);var c=((s-i)/6+l/2)/l,u=((s-r)/6+l/2)/l,d=((s-o)/6+l/2)/l;i===s?e=d-u:r===s?e=1/3+c-d:o===s&&(e=2/3+u-c),e<0&&(e+=1),e>1&&(e-=1)}var p=[360*e,n,h];return null!=t[3]&&p.push(t[3]),p}}(o),null!=e&&(o[0]=(r=e,(r=Math.round(r))<0?0:r>360?360:r)),null!=n&&(o[1]=h(n)),null!=i&&(o[2]=h(i)),C(y(o),"rgba")}function A(t,e){var n=v(t);if(n&&null!=e)return n[3]=s(e),C(n,"rgba")}function C(t,e){if(t&&t.length){var n=t[0]+","+t[1]+","+t[2];return"rgba"!==e&&"hsva"!==e&&"hsla"!==e||(n+=","+t[3]),e+"("+n+")"}}function I(t,e){var n=v(t);return n?(.299*n[0]+.587*n[1]+.114*n[2])*n[3]/255+(1-n[3])*e:0}function E(){return C([Math.round(255*Math.random()),Math.round(255*Math.random()),Math.round(255*Math.random())],"rgb")}var k=new i.Ay(100);function L(t){if((0,r.isString)(t)){var e=k.get(t);return e||(e=_(t,-.1),k.put(t,e)),e}if((0,r.isGradientObject)(t)){var n=(0,r.extend)({},t);return n.colorStops=(0,r.map)(t.colorStops,(function(t){return{offset:t.offset,color:_(t.color,-.1)}})),n}return t}},5496:(t,e,n)=>{"use strict";n.d(e,{rR:()=>E,UJ:()=>A,Qh:()=>C,uc:()=>I});var i=n(528),r=n(1885),o=n(584),a=n(4070),s=o.A.CMD,l=[[],[],[]],h=Math.sqrt,c=Math.atan2;function u(t,e){if(e){var n,i,r,o,u,d,p=t.data,f=t.len(),g=s.M,m=s.C,v=s.L,y=s.R,_=s.A,x=s.Q;for(r=0,o=0;r<f;){switch(n=p[r++],o=r,i=0,n){case g:case v:i=1;break;case m:i=3;break;case x:i=2;break;case _:var b=e[4],w=e[5],S=h(e[0]*e[0]+e[1]*e[1]),T=h(e[2]*e[2]+e[3]*e[3]),M=c(-e[1]/T,e[0]/S);p[r]*=S,p[r++]+=b,p[r]*=T,p[r++]+=w,p[r++]*=S,p[r++]*=T,p[r++]+=M,p[r++]+=M,o=r+=2;break;case y:d[0]=p[r++],d[1]=p[r++],(0,a.applyTransform)(d,d,e),p[o++]=d[0],p[o++]=d[1],d[0]+=p[r++],d[1]+=p[r++],(0,a.applyTransform)(d,d,e),p[o++]=d[0],p[o++]=d[1]}for(u=0;u<i;u++){var A=l[u];A[0]=p[r++],A[1]=p[r++],(0,a.applyTransform)(A,A,e),p[o++]=A[0],p[o++]=A[1]}}t.increaseVersion()}}var d=n(7845),p=Math.sqrt,f=Math.sin,g=Math.cos,m=Math.PI;function v(t){return Math.sqrt(t[0]*t[0]+t[1]*t[1])}function y(t,e){return(t[0]*e[0]+t[1]*e[1])/(v(t)*v(e))}function _(t,e){return(t[0]*e[1]<t[1]*e[0]?-1:1)*Math.acos(y(t,e))}function x(t,e,n,i,r,o,a,s,l,h,c){var u=l*(m/180),d=g(u)*(t-n)/2+f(u)*(e-i)/2,v=-1*f(u)*(t-n)/2+g(u)*(e-i)/2,x=d*d/(a*a)+v*v/(s*s);x>1&&(a*=p(x),s*=p(x));var b=(r===o?-1:1)*p((a*a*(s*s)-a*a*(v*v)-s*s*(d*d))/(a*a*(v*v)+s*s*(d*d)))||0,w=b*a*v/s,S=b*-s*d/a,T=(t+n)/2+g(u)*w-f(u)*S,M=(e+i)/2+f(u)*w+g(u)*S,A=_([1,0],[(d-w)/a,(v-S)/s]),C=[(d-w)/a,(v-S)/s],I=[(-1*d-w)/a,(-1*v-S)/s],E=_(C,I);if(y(C,I)<=-1&&(E=m),y(C,I)>=1&&(E=0),E<0){var k=Math.round(E/m*1e6)/1e6;E=2*m+k%2*m}c.addData(h,T,M,a,s,A,E,u,o)}var b=/([mlvhzcqtsa])([^mlvhzcqtsa]*)/gi,w=/-?([0-9]*\.)?[0-9]+([eE]-?[0-9]+)?/g;var S=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return(0,i.C6)(e,t),e.prototype.applyTransform=function(t){},e}(r.Ay);function T(t){return null!=t.setData}function M(t,e){var n=function(t){var e=new o.A;if(!t)return e;var n,i=0,r=0,a=i,s=r,l=o.A.CMD,h=t.match(b);if(!h)return e;for(var c=0;c<h.length;c++){for(var u=h[c],d=u.charAt(0),p=void 0,f=u.match(w)||[],g=f.length,m=0;m<g;m++)f[m]=parseFloat(f[m]);for(var v=0;v<g;){var y=void 0,_=void 0,S=void 0,T=void 0,M=void 0,A=void 0,C=void 0,I=i,E=r,k=void 0,L=void 0;switch(d){case"l":i+=f[v++],r+=f[v++],p=l.L,e.addData(p,i,r);break;case"L":i=f[v++],r=f[v++],p=l.L,e.addData(p,i,r);break;case"m":i+=f[v++],r+=f[v++],p=l.M,e.addData(p,i,r),a=i,s=r,d="l";break;case"M":i=f[v++],r=f[v++],p=l.M,e.addData(p,i,r),a=i,s=r,d="L";break;case"h":i+=f[v++],p=l.L,e.addData(p,i,r);break;case"H":i=f[v++],p=l.L,e.addData(p,i,r);break;case"v":r+=f[v++],p=l.L,e.addData(p,i,r);break;case"V":r=f[v++],p=l.L,e.addData(p,i,r);break;case"C":p=l.C,e.addData(p,f[v++],f[v++],f[v++],f[v++],f[v++],f[v++]),i=f[v-2],r=f[v-1];break;case"c":p=l.C,e.addData(p,f[v++]+i,f[v++]+r,f[v++]+i,f[v++]+r,f[v++]+i,f[v++]+r),i+=f[v-2],r+=f[v-1];break;case"S":y=i,_=r,k=e.len(),L=e.data,n===l.C&&(y+=i-L[k-4],_+=r-L[k-3]),p=l.C,I=f[v++],E=f[v++],i=f[v++],r=f[v++],e.addData(p,y,_,I,E,i,r);break;case"s":y=i,_=r,k=e.len(),L=e.data,n===l.C&&(y+=i-L[k-4],_+=r-L[k-3]),p=l.C,I=i+f[v++],E=r+f[v++],i+=f[v++],r+=f[v++],e.addData(p,y,_,I,E,i,r);break;case"Q":I=f[v++],E=f[v++],i=f[v++],r=f[v++],p=l.Q,e.addData(p,I,E,i,r);break;case"q":I=f[v++]+i,E=f[v++]+r,i+=f[v++],r+=f[v++],p=l.Q,e.addData(p,I,E,i,r);break;case"T":y=i,_=r,k=e.len(),L=e.data,n===l.Q&&(y+=i-L[k-4],_+=r-L[k-3]),i=f[v++],r=f[v++],p=l.Q,e.addData(p,y,_,i,r);break;case"t":y=i,_=r,k=e.len(),L=e.data,n===l.Q&&(y+=i-L[k-4],_+=r-L[k-3]),i+=f[v++],r+=f[v++],p=l.Q,e.addData(p,y,_,i,r);break;case"A":S=f[v++],T=f[v++],M=f[v++],A=f[v++],C=f[v++],x(I=i,E=r,i=f[v++],r=f[v++],A,C,S,T,M,p=l.A,e);break;case"a":S=f[v++],T=f[v++],M=f[v++],A=f[v++],C=f[v++],x(I=i,E=r,i+=f[v++],r+=f[v++],A,C,S,T,M,p=l.A,e)}}"z"!==d&&"Z"!==d||(p=l.Z,e.addData(p),i=a,r=s),n=p}return e.toStatic(),e}(t),i=(0,d.extend)({},e);return i.buildPath=function(t){if(T(t)){t.setData(n.data),(e=t.getContext())&&t.rebuildPath(e,1)}else{var e=t;n.rebuildPath(e,1)}},i.applyTransform=function(t){u(n,t),this.dirtyShape()},i}function A(t,e){return new S(M(t,e))}function C(t,e){var n=M(t,e);return function(t){function e(e){var i=t.call(this,e)||this;return i.applyTransform=n.applyTransform,i.buildPath=n.buildPath,i}return(0,i.C6)(e,t),e}(S)}function I(t,e){for(var n=[],i=t.length,o=0;o<i;o++){var a=t[o];n.push(a.getUpdatedPathProxy(!0))}var s=new r.Ay(e);return s.createPathProxy(),s.buildPath=function(t){if(T(t)){t.appendPath(n);var e=t.getContext();e&&t.rebuildPath(e,1)}},s}function E(t,e){e=e||{};var n=new r.Ay;return t.shape&&n.setShape(t.shape),n.setStyle(t.style),e.bakeTransform?u(n.path,t.getComputedTransform()):e.toLocal?n.setLocalTransform(t.getComputedTransform()):n.copyTransform(t),n.buildPath=t.buildPath,n.applyTransform=n.applyTransform,n.z=t.z,n.z2=t.z2,n.zlevel=t.zlevel,n}},2563:(t,e,n)=>{"use strict";n.r(e),n.d(e,{dispose:()=>ht,disposeAll:()=>ct,getElementSSRData:()=>pt,getInstance:()=>ut,init:()=>lt,registerPainter:()=>dt,registerSSRDataGetter:()=>ft,version:()=>gt});var i=n(4810),r=n(7845),o=n(528),a=n(4070),s=function(t,e){this.target=t,this.topTarget=e&&e.topTarget};const l=function(){function t(t){this.handler=t,t.on("mousedown",this._dragStart,this),t.on("mousemove",this._drag,this),t.on("mouseup",this._dragEnd,this)}return t.prototype._dragStart=function(t){for(var e=t.target;e&&!e.draggable;)e=e.parent||e.__hostTarget;e&&(this._draggingTarget=e,e.dragging=!0,this._x=t.offsetX,this._y=t.offsetY,this.handler.dispatchToElement(new s(e,t),"dragstart",t.event))},t.prototype._drag=function(t){var e=this._draggingTarget;if(e){var n=t.offsetX,i=t.offsetY,r=n-this._x,o=i-this._y;this._x=n,this._y=i,e.drift(r,o,t),this.handler.dispatchToElement(new s(e,t),"drag",t.event);var a=this.handler.findHover(n,i,e).target,l=this._dropTarget;this._dropTarget=a,e!==a&&(l&&a!==l&&this.handler.dispatchToElement(new s(l,t),"dragleave",t.event),a&&a!==l&&this.handler.dispatchToElement(new s(a,t),"dragenter",t.event))}},t.prototype._dragEnd=function(t){var e=this._draggingTarget;e&&(e.dragging=!1),this.handler.dispatchToElement(new s(e,t),"dragend",t.event),this._dropTarget&&this.handler.dispatchToElement(new s(this._dropTarget,t),"drop",t.event),this._draggingTarget=null,this._dropTarget=null},t}();var h=n(2510),c=n(1469),u=function(){function t(){this._track=[]}return t.prototype.recognize=function(t,e,n){return this._doTrack(t,e,n),this._recognize(t)},t.prototype.clear=function(){return this._track.length=0,this},t.prototype._doTrack=function(t,e,n){var i=t.touches;if(i){for(var r={points:[],touches:[],target:e,event:t},o=0,a=i.length;o<a;o++){var s=i[o],l=c.Yo(n,s,{});r.points.push([l.zrX,l.zrY]),r.touches.push(s)}this._track.push(r)}},t.prototype._recognize=function(t){for(var e in p)if(p.hasOwnProperty(e)){var n=p[e](this._track,t);if(n)return n}},t}();function d(t){var e=t[1][0]-t[0][0],n=t[1][1]-t[0][1];return Math.sqrt(e*e+n*n)}var p={pinch:function(t,e){var n=t.length;if(n){var i,r=(t[n-1]||{}).points,o=(t[n-2]||{}).points||r;if(o&&o.length>1&&r&&r.length>1){var a=d(r)/d(o);!isFinite(a)&&(a=1),e.pinchScale=a;var s=[((i=r)[0][0]+i[1][0])/2,(i[0][1]+i[1][1])/2];return e.pinchX=s[0],e.pinchY=s[1],{type:"pinch",target:t[0].target,event:e}}}}},f=n(5383),g="silent";function m(){c.ds(this.event)}var v=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.handler=null,e}return(0,o.C6)(e,t),e.prototype.dispose=function(){},e.prototype.setCursor=function(){},e}(h.A),y=function(t,e){this.x=t,this.y=e},_=["click","dblclick","mousewheel","mouseout","mouseup","mousedown","mousemove","contextmenu"],x=new f.A(0,0,0,0),b=function(t){function e(e,n,i,r,o){var a=t.call(this)||this;return a._hovered=new y(0,0),a.storage=e,a.painter=n,a.painterRoot=r,a._pointerSize=o,i=i||new v,a.proxy=null,a.setHandlerProxy(i),a._draggingMgr=new l(a),a}return(0,o.C6)(e,t),e.prototype.setHandlerProxy=function(t){this.proxy&&this.proxy.dispose(),t&&(r.each(_,(function(e){t.on&&t.on(e,this[e],this)}),this),t.handler=this),this.proxy=t},e.prototype.mousemove=function(t){var e=t.zrX,n=t.zrY,i=T(this,e,n),r=this._hovered,o=r.target;o&&!o.__zr&&(o=(r=this.findHover(r.x,r.y)).target);var a=this._hovered=i?new y(e,n):this.findHover(e,n),s=a.target,l=this.proxy;l.setCursor&&l.setCursor(s?s.cursor:"default"),o&&s!==o&&this.dispatchToElement(r,"mouseout",t),this.dispatchToElement(a,"mousemove",t),s&&s!==o&&this.dispatchToElement(a,"mouseover",t)},e.prototype.mouseout=function(t){var e=t.zrEventControl;"only_globalout"!==e&&this.dispatchToElement(this._hovered,"mouseout",t),"no_globalout"!==e&&this.trigger("globalout",{type:"globalout",event:t})},e.prototype.resize=function(){this._hovered=new y(0,0)},e.prototype.dispatch=function(t,e){var n=this[t];n&&n.call(this,e)},e.prototype.dispose=function(){this.proxy.dispose(),this.storage=null,this.proxy=null,this.painter=null},e.prototype.setCursorStyle=function(t){var e=this.proxy;e.setCursor&&e.setCursor(t)},e.prototype.dispatchToElement=function(t,e,n){var i=(t=t||{}).target;if(!i||!i.silent){for(var r="on"+e,o=function(t,e,n){return{type:t,event:n,target:e.target,topTarget:e.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:m}}(e,t,n);i&&(i[r]&&(o.cancelBubble=!!i[r].call(i,o)),i.trigger(e,o),i=i.__hostTarget?i.__hostTarget:i.parent,!o.cancelBubble););o.cancelBubble||(this.trigger(e,o),this.painter&&this.painter.eachOtherLayer&&this.painter.eachOtherLayer((function(t){"function"==typeof t[r]&&t[r].call(t,o),t.trigger&&t.trigger(e,o)})))}},e.prototype.findHover=function(t,e,n){var i=this.storage.getDisplayList(),r=new y(t,e);if(S(i,r,t,e,n),this._pointerSize&&!r.target){for(var o=[],a=this._pointerSize,s=a/2,l=new f.A(t-s,e-s,a,a),h=i.length-1;h>=0;h--){var c=i[h];c===n||c.ignore||c.ignoreCoarsePointer||c.parent&&c.parent.ignoreCoarsePointer||(x.copy(c.getBoundingRect()),c.transform&&x.applyTransform(c.transform),x.intersect(l)&&o.push(c))}if(o.length)for(var u=Math.PI/12,d=2*Math.PI,p=0;p<s;p+=4)for(var g=0;g<d;g+=u){if(S(o,r,t+p*Math.cos(g),e+p*Math.sin(g),n),r.target)return r}}return r},e.prototype.processGesture=function(t,e){this._gestureMgr||(this._gestureMgr=new u);var n=this._gestureMgr;"start"===e&&n.clear();var i=n.recognize(t,this.findHover(t.zrX,t.zrY,null).target,this.proxy.dom);if("end"===e&&n.clear(),i){var r=i.type;t.gestureEvent=r;var o=new y;o.target=i.target,this.dispatchToElement(o,r,i.event)}},e}(h.A);function w(t,e,n){if(t[t.rectHover?"rectContain":"contain"](e,n)){for(var i=t,r=void 0,o=!1;i;){if(i.ignoreClip&&(o=!0),!o){var a=i.getClipPath();if(a&&!a.contain(e,n))return!1}i.silent&&(r=!0);var s=i.__hostTarget;i=s||i.parent}return!r||g}return!1}function S(t,e,n,i,r){for(var o=t.length-1;o>=0;o--){var a=t[o],s=void 0;if(a!==r&&!a.ignore&&(s=w(a,n,i))&&(!e.topTarget&&(e.topTarget=a),s!==g)){e.target=a;break}}}function T(t,e,n){var i=t.painter;return e<0||e>i.getWidth()||n<0||n>i.getHeight()}r.each(["click","mousedown","mouseup","mousewheel","dblclick","contextmenu"],(function(t){b.prototype[t]=function(e){var n,i,r=e.zrX,o=e.zrY,s=T(this,r,o);if("mouseup"===t&&s||(i=(n=this.findHover(r,o)).target),"mousedown"===t)this._downEl=i,this._downPoint=[e.zrX,e.zrY],this._upEl=i;else if("mouseup"===t)this._upEl=i;else if("click"===t){if(this._downEl!==this._upEl||!this._downPoint||a.dist(this._downPoint,[e.zrX,e.zrY])>4)return;this._downPoint=null}this.dispatchToElement(n,t,e)}}));const M=b;var A=n(979),C=n(5667),I=!1;function E(){I||(I=!0,console.warn("z / z2 / zlevel of displayable is invalid, which may cause unexpected errors"))}function k(t,e){return t.zlevel===e.zlevel?t.z===e.z?t.z2-e.z2:t.z-e.z:t.zlevel-e.zlevel}const L=function(){function t(){this._roots=[],this._displayList=[],this._displayListLen=0,this.displayableSortFunc=k}return t.prototype.traverse=function(t,e){for(var n=0;n<this._roots.length;n++)this._roots[n].traverse(t,e)},t.prototype.getDisplayList=function(t,e){e=e||!1;var n=this._displayList;return!t&&n.length||this.updateDisplayList(e),n},t.prototype.updateDisplayList=function(t){this._displayListLen=0;for(var e=this._roots,n=this._displayList,i=0,r=e.length;i<r;i++)this._updateAndAddDisplayable(e[i],null,t);n.length=this._displayListLen,(0,A.A)(n,k)},t.prototype._updateAndAddDisplayable=function(t,e,n){if(!t.ignore||n){t.beforeUpdate(),t.update(),t.afterUpdate();var i=t.getClipPath();if(t.ignoreClip)e=null;else if(i){e=e?e.slice():[];for(var r=i,o=t;r;)r.parent=o,r.updateTransform(),e.push(r),o=r,r=r.getClipPath()}if(t.childrenRef){for(var a=t.childrenRef(),s=0;s<a.length;s++){var l=a[s];t.__dirty&&(l.__dirty|=C.M),this._updateAndAddDisplayable(l,e,n)}t.__dirty=0}else{var h=t;e&&e.length?h.__clipPaths=e:h.__clipPaths&&h.__clipPaths.length>0&&(h.__clipPaths=[]),isNaN(h.z)&&(E(),h.z=0),isNaN(h.z2)&&(E(),h.z2=0),isNaN(h.zlevel)&&(E(),h.zlevel=0),this._displayList[this._displayListLen++]=h}var c=t.getDecalElement&&t.getDecalElement();c&&this._updateAndAddDisplayable(c,e,n);var u=t.getTextGuideLine();u&&this._updateAndAddDisplayable(u,e,n);var d=t.getTextContent();d&&this._updateAndAddDisplayable(d,e,n)}},t.prototype.addRoot=function(t){t.__zr&&t.__zr.storage===this||this._roots.push(t)},t.prototype.delRoot=function(t){if(t instanceof Array)for(var e=0,n=t.length;e<n;e++)this.delRoot(t[e]);else{var i=r.indexOf(this._roots,t);i>=0&&this._roots.splice(i,1)}},t.prototype.delAllRoots=function(){this._roots=[],this._displayList=[],this._displayListLen=0},t.prototype.getRoots=function(){return this._roots},t.prototype.dispose=function(){this._displayList=null,this._roots=null},t}();var D=n(3358),P=n(8854);function R(){return(new Date).getTime()}const O=function(t){function e(e){var n=t.call(this)||this;return n._running=!1,n._time=0,n._pausedTime=0,n._pauseStart=0,n._paused=!1,e=e||{},n.stage=e.stage||{},n}return(0,o.C6)(e,t),e.prototype.addClip=function(t){t.animation&&this.removeClip(t),this._head?(this._tail.next=t,t.prev=this._tail,t.next=null,this._tail=t):this._head=this._tail=t,t.animation=this},e.prototype.addAnimator=function(t){t.animation=this;var e=t.getClip();e&&this.addClip(e)},e.prototype.removeClip=function(t){if(t.animation){var e=t.prev,n=t.next;e?e.next=n:this._head=n,n?n.prev=e:this._tail=e,t.next=t.prev=t.animation=null}},e.prototype.removeAnimator=function(t){var e=t.getClip();e&&this.removeClip(e),t.animation=null},e.prototype.update=function(t){for(var e=R()-this._pausedTime,n=e-this._time,i=this._head;i;){var r=i.next;i.step(e,n)?(i.ondestroy(),this.removeClip(i),i=r):i=r}this._time=e,t||(this.trigger("frame",n),this.stage.update&&this.stage.update())},e.prototype._startLoop=function(){var t=this;this._running=!0,(0,D.A)((function e(){t._running&&((0,D.A)(e),!t._paused&&t.update())}))},e.prototype.start=function(){this._running||(this._time=R(),this._pausedTime=0,this._startLoop())},e.prototype.stop=function(){this._running=!1},e.prototype.pause=function(){this._paused||(this._pauseStart=R(),this._paused=!0)},e.prototype.resume=function(){this._paused&&(this._pausedTime+=R()-this._pauseStart,this._paused=!1)},e.prototype.clear=function(){for(var t=this._head;t;){var e=t.next;t.prev=t.next=t.animation=null,t=e}this._head=this._tail=null},e.prototype.isFinished=function(){return null==this._head},e.prototype.animate=function(t,e){e=e||{},this.start();var n=new P.A(t,e.loop);return this.addAnimator(n),n},e}(h.A);var N,F,B=i.A.domSupported,z=(F={pointerdown:1,pointerup:1,pointermove:1,pointerout:1},{mouse:N=["click","dblclick","mousewheel","wheel","mouseout","mouseup","mousedown","mousemove","contextmenu"],touch:["touchstart","touchend","touchmove"],pointer:r.map(N,(function(t){var e=t.replace("mouse","pointer");return F.hasOwnProperty(e)?e:t}))}),G=["mousemove","mouseup"],V=["pointermove","pointerup"],j=!1;function H(t){var e=t.pointerType;return"pen"===e||"touch"===e}function W(t){t&&(t.zrByTouch=!0)}function U(t,e){for(var n=e,i=!1;n&&9!==n.nodeType&&!(i=n.domBelongToZr||n!==e&&n===t.painterRoot);)n=n.parentNode;return i}var q=function(t,e){this.stopPropagation=r.noop,this.stopImmediatePropagation=r.noop,this.preventDefault=r.noop,this.type=e.type,this.target=this.currentTarget=t.dom,this.pointerType=e.pointerType,this.clientX=e.clientX,this.clientY=e.clientY},X={mousedown:function(t){t=(0,c.e0)(this.dom,t),this.__mayPointerCapture=[t.zrX,t.zrY],this.trigger("mousedown",t)},mousemove:function(t){t=(0,c.e0)(this.dom,t);var e=this.__mayPointerCapture;!e||t.zrX===e[0]&&t.zrY===e[1]||this.__togglePointerCapture(!0),this.trigger("mousemove",t)},mouseup:function(t){t=(0,c.e0)(this.dom,t),this.__togglePointerCapture(!1),this.trigger("mouseup",t)},mouseout:function(t){U(this,(t=(0,c.e0)(this.dom,t)).toElement||t.relatedTarget)||(this.__pointerCapturing&&(t.zrEventControl="no_globalout"),this.trigger("mouseout",t))},wheel:function(t){j=!0,t=(0,c.e0)(this.dom,t),this.trigger("mousewheel",t)},mousewheel:function(t){j||(t=(0,c.e0)(this.dom,t),this.trigger("mousewheel",t))},touchstart:function(t){W(t=(0,c.e0)(this.dom,t)),this.__lastTouchMoment=new Date,this.handler.processGesture(t,"start"),X.mousemove.call(this,t),X.mousedown.call(this,t)},touchmove:function(t){W(t=(0,c.e0)(this.dom,t)),this.handler.processGesture(t,"change"),X.mousemove.call(this,t)},touchend:function(t){W(t=(0,c.e0)(this.dom,t)),this.handler.processGesture(t,"end"),X.mouseup.call(this,t),+new Date-+this.__lastTouchMoment<300&&X.click.call(this,t)},pointerdown:function(t){X.mousedown.call(this,t)},pointermove:function(t){H(t)||X.mousemove.call(this,t)},pointerup:function(t){X.mouseup.call(this,t)},pointerout:function(t){H(t)||X.mouseout.call(this,t)}};r.each(["click","dblclick","contextmenu"],(function(t){X[t]=function(e){e=(0,c.e0)(this.dom,e),this.trigger(t,e)}}));var Y={pointermove:function(t){H(t)||Y.mousemove.call(this,t)},pointerup:function(t){Y.mouseup.call(this,t)},mousemove:function(t){this.trigger("mousemove",t)},mouseup:function(t){var e=this.__pointerCapturing;this.__togglePointerCapture(!1),this.trigger("mouseup",t),e&&(t.zrEventControl="only_globalout",this.trigger("mouseout",t))}};function Z(t,e){var n=e.domHandlers;i.A.pointerEventsSupported?r.each(z.pointer,(function(i){K(e,i,(function(e){n[i].call(t,e)}))})):(i.A.touchEventsSupported&&r.each(z.touch,(function(i){K(e,i,(function(r){n[i].call(t,r),function(t){t.touching=!0,null!=t.touchTimer&&(clearTimeout(t.touchTimer),t.touchTimer=null),t.touchTimer=setTimeout((function(){t.touching=!1,t.touchTimer=null}),700)}(e)}))})),r.each(z.mouse,(function(i){K(e,i,(function(r){r=(0,c.mK)(r),e.touching||n[i].call(t,r)}))})))}function $(t,e){function n(n){K(e,n,(function(i){i=(0,c.mK)(i),U(t,i.target)||(i=function(t,e){return(0,c.e0)(t.dom,new q(t,e),!0)}(t,i),e.domHandlers[n].call(t,i))}),{capture:!0})}i.A.pointerEventsSupported?r.each(V,n):i.A.touchEventsSupported||r.each(G,n)}function K(t,e,n,i){t.mounted[e]=n,t.listenerOpts[e]=i,(0,c.q2)(t.domTarget,e,n,i)}function J(t){var e=t.mounted;for(var n in e)e.hasOwnProperty(n)&&(0,c.f)(t.domTarget,n,e[n],t.listenerOpts[n]);t.mounted={}}var Q=function(t,e){this.mounted={},this.listenerOpts={},this.touching=!1,this.domTarget=t,this.domHandlers=e};const tt=function(t){function e(e,n){var i=t.call(this)||this;return i.__pointerCapturing=!1,i.dom=e,i.painterRoot=n,i._localHandlerScope=new Q(e,X),B&&(i._globalHandlerScope=new Q(document,Y)),Z(i,i._localHandlerScope),i}return(0,o.C6)(e,t),e.prototype.dispose=function(){J(this._localHandlerScope),B&&J(this._globalHandlerScope)},e.prototype.setCursor=function(t){this.dom.style&&(this.dom.style.cursor=t||"default")},e.prototype.__togglePointerCapture=function(t){if(this.__mayPointerCapture=null,B&&+this.__pointerCapturing^+t){this.__pointerCapturing=t;var e=this._globalHandlerScope;t?$(this,e):J(e)}},e}(h.A);var et=n(7219),nt=n(9875),it=n(8829),rt={},ot={};var at,st=function(){function t(t,e,n){var o=this;this._sleepAfterStill=10,this._stillFrameAccum=0,this._needsRefresh=!0,this._needsRefreshHover=!0,this._darkMode=!1,n=n||{},this.dom=e,this.id=t;var a=new L,s=n.renderer||"canvas";rt[s]||(s=r.keys(rt)[0]),n.useDirtyRect=null!=n.useDirtyRect&&n.useDirtyRect;var l=new rt[s](e,a,n,t),h=n.ssr||l.ssrOnly;this.storage=a,this.painter=l;var c,u=i.A.node||i.A.worker||h?null:new tt(l.getViewportRoot(),l.root),d=n.useCoarsePointer;(null==d||"auto"===d?i.A.touchEventsSupported:!!d)&&(c=r.retrieve2(n.pointerSize,44)),this.handler=new M(a,l,u,l.root,c),this.animation=new O({stage:{update:h?null:function(){return o._flush(!0)}}}),h||this.animation.start()}return t.prototype.add=function(t){!this._disposed&&t&&(this.storage.addRoot(t),t.addSelfToZr(this),this.refresh())},t.prototype.remove=function(t){!this._disposed&&t&&(this.storage.delRoot(t),t.removeSelfFromZr(this),this.refresh())},t.prototype.configLayer=function(t,e){this._disposed||(this.painter.configLayer&&this.painter.configLayer(t,e),this.refresh())},t.prototype.setBackgroundColor=function(t){this._disposed||(this.painter.setBackgroundColor&&this.painter.setBackgroundColor(t),this.refresh(),this._backgroundColor=t,this._darkMode=function(t){if(!t)return!1;if("string"==typeof t)return(0,et.lum)(t,1)<nt.ps;if(t.colorStops){for(var e=t.colorStops,n=0,i=e.length,r=0;r<i;r++)n+=(0,et.lum)(e[r].color,1);return(n/=i)<nt.ps}return!1}(t))},t.prototype.getBackgroundColor=function(){return this._backgroundColor},t.prototype.setDarkMode=function(t){this._darkMode=t},t.prototype.isDarkMode=function(){return this._darkMode},t.prototype.refreshImmediately=function(t){this._disposed||(t||this.animation.update(!0),this._needsRefresh=!1,this.painter.refresh(),this._needsRefresh=!1)},t.prototype.refresh=function(){this._disposed||(this._needsRefresh=!0,this.animation.start())},t.prototype.flush=function(){this._disposed||this._flush(!1)},t.prototype._flush=function(t){var e,n=R();this._needsRefresh&&(e=!0,this.refreshImmediately(t)),this._needsRefreshHover&&(e=!0,this.refreshHoverImmediately());var i=R();e?(this._stillFrameAccum=0,this.trigger("rendered",{elapsedTime:i-n})):this._sleepAfterStill>0&&(this._stillFrameAccum++,this._stillFrameAccum>this._sleepAfterStill&&this.animation.stop())},t.prototype.setSleepAfterStill=function(t){this._sleepAfterStill=t},t.prototype.wakeUp=function(){this._disposed||(this.animation.start(),this._stillFrameAccum=0)},t.prototype.refreshHover=function(){this._needsRefreshHover=!0},t.prototype.refreshHoverImmediately=function(){this._disposed||(this._needsRefreshHover=!1,this.painter.refreshHover&&"canvas"===this.painter.getType()&&this.painter.refreshHover())},t.prototype.resize=function(t){this._disposed||(t=t||{},this.painter.resize(t.width,t.height),this.handler.resize())},t.prototype.clearAnimation=function(){this._disposed||this.animation.clear()},t.prototype.getWidth=function(){if(!this._disposed)return this.painter.getWidth()},t.prototype.getHeight=function(){if(!this._disposed)return this.painter.getHeight()},t.prototype.setCursorStyle=function(t){this._disposed||this.handler.setCursorStyle(t)},t.prototype.findHover=function(t,e){if(!this._disposed)return this.handler.findHover(t,e)},t.prototype.on=function(t,e,n){return this._disposed||this.handler.on(t,e,n),this},t.prototype.off=function(t,e){this._disposed||this.handler.off(t,e)},t.prototype.trigger=function(t,e){this._disposed||this.handler.trigger(t,e)},t.prototype.clear=function(){if(!this._disposed){for(var t=this.storage.getRoots(),e=0;e<t.length;e++)t[e]instanceof it.A&&t[e].removeSelfFromZr(this);this.storage.delAllRoots(),this.painter.clear()}},t.prototype.dispose=function(){var t;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,t=this.id,delete ot[t])},t}();function lt(t,e){var n=new st(r.guid(),t,e);return ot[n.id]=n,n}function ht(t){t.dispose()}function ct(){for(var t in ot)ot.hasOwnProperty(t)&&ot[t].dispose();ot={}}function ut(t){return ot[t]}function dt(t,e){rt[t]=e}function pt(t){if("function"==typeof at)return at(t)}function ft(t){at=t}var gt="5.6.0"}}]); \ No newline at end of file diff --git a/assets/js/250.35307fdb.js.LICENSE.txt b/assets/js/728.0a8fbd7e.js.LICENSE.txt similarity index 100% rename from assets/js/250.35307fdb.js.LICENSE.txt rename to assets/js/728.0a8fbd7e.js.LICENSE.txt diff --git a/assets/js/a3faf3f7.8d0d729d.js b/assets/js/a3faf3f7.8d0d729d.js deleted file mode 100644 index 6a70e00..0000000 --- a/assets/js/a3faf3f7.8d0d729d.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunkol_echarts_docs=self.webpackChunkol_echarts_docs||[]).push([[176],{927:(e,n,r)=>{r.r(n),r.d(n,{assets:()=>i,contentTitle:()=>l,default:()=>h,frontMatter:()=>d,metadata:()=>c,toc:()=>a});var s=r(6106),t=r(2036);const d={id:"quickstart",title:"\u5feb\u901f\u5f00\u59cb",sidebar_label:"\u5feb\u901f\u5f00\u59cb",slug:"/quickstart",description:"\u4e86\u89e3\u5982\u4f55\u5feb\u901f\u4f7f\u7528\u6b64\u7c7b\u5e93"},l=void 0,c={id:"guide/quickstart",title:"\u5feb\u901f\u5f00\u59cb",description:"\u4e86\u89e3\u5982\u4f55\u5feb\u901f\u4f7f\u7528\u6b64\u7c7b\u5e93",source:"@site/docs/guide/quickstart.md",sourceDirName:"guide",slug:"/quickstart",permalink:"/ol3Echarts/docs/quickstart",draft:!1,unlisted:!1,editUrl:"https://github.com/sakitam-fdd/ol3Echarts/edit/master/documents/docs/docs/guide/quickstart.md",tags:[],version:"current",lastUpdatedBy:"sakitam-fdd",lastUpdatedAt:1730471031e3,frontMatter:{id:"quickstart",title:"\u5feb\u901f\u5f00\u59cb",sidebar_label:"\u5feb\u901f\u5f00\u59cb",slug:"/quickstart",description:"\u4e86\u89e3\u5982\u4f55\u5feb\u901f\u4f7f\u7528\u6b64\u7c7b\u5e93"},sidebar:"docs",previous:{title:"Bridger for openlayers and echarts",permalink:"/ol3Echarts/docs/"},next:{title:"\u5b89\u88c5",permalink:"/ol3Echarts/docs/install"}},i={},a=[{value:"\u5feb\u901f\u5f00\u59cb",id:"\u5feb\u901f\u5f00\u59cb",level:2},{value:"\u8bf4\u660e",id:"\u8bf4\u660e",level:2},{value:"\u7b2c\u4e00\u4e2a\u793a\u4f8b",id:"\u7b2c\u4e00\u4e2a\u793a\u4f8b",level:2},{value:"\u5c1d\u8bd5\u7f16\u8f91\u5b83",id:"\u5c1d\u8bd5\u7f16\u8f91\u5b83",level:3},{value:"\u4ece1.2.0\u5347\u7ea7\u52301.3.0",id:"\u4ece120\u5347\u7ea7\u5230130",level:2},{value:"\u65b0\u589e <code>ol</code> package \u7684\u517c\u5bb9\u7c7b\u5e93\u3002",id:"\u65b0\u589e-ol-package-\u7684\u517c\u5bb9\u7c7b\u5e93",level:2},{value:"\u5347\u7ea7\u52302.0+",id:"\u5347\u7ea7\u523020",level:2},{value:"\u5982\u4f55\u4f7f\u7528",id:"\u5982\u4f55\u4f7f\u7528",level:3},{value:"\u521d\u59cb\u5316echarts\u56fe\u5c42\u5e76\u6dfb\u52a0\u5230\u5730\u56fe",id:"\u521d\u59cb\u5316echarts\u56fe\u5c42\u5e76\u6dfb\u52a0\u5230\u5730\u56fe",level:4},{value:"\u6ce8\u610f 1",id:"\u6ce8\u610f-1",level:4},{value:"\u6ce8\u610f 3",id:"\u6ce8\u610f-3",level:4},{value:"\u4e8b\u4ef6",id:"\u4e8b\u4ef6",level:3}];function o(e){const n={blockquote:"blockquote",code:"code",h2:"h2",h3:"h3",h4:"h4",li:"li",p:"p",pre:"pre",table:"table",tbody:"tbody",td:"td",th:"th",thead:"thead",tr:"tr",ul:"ul",...(0,t.R)(),...e.components};return(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(n.h2,{id:"\u5feb\u901f\u5f00\u59cb",children:"\u5feb\u901f\u5f00\u59cb"}),"\n",(0,s.jsx)(n.p,{children:"\u8fd9\u91cc\u5047\u8bbe\u4f60\u5df2\u4e86\u89e3openlayers\u548cecharts\u7684\u4f7f\u7528\u65b9\u6cd5"}),"\n",(0,s.jsx)(n.h2,{id:"\u8bf4\u660e",children:"\u8bf4\u660e"}),"\n",(0,s.jsxs)(n.blockquote,{children:["\n",(0,s.jsxs)(n.p,{children:["\u56e0\u4e3aol3Echarts\u662f\u57fa\u4e8eopenlayers\u548cEcharts\u5f00\u53d1\u800c\u6765\uff0c\u6240\u4ee5\u5fc5\u987b\u5f15\u5165ol\u548cecharts\u7c7b\u5e93\u3002\n\u540c\u65f6\u9700\u8981\u62ff\u5230 ",(0,s.jsx)(n.code,{children:"ol.Map"})," \u7684\u5730\u56fe\u5bf9\u8c61\u5b9e\u4f8b\uff0c\u56e0\u4e3aHMap\u662f\u57fa\u4e8eopenlayers\u7684\u4e8c\u6b21\u5f00\u53d1\uff0c\u6240\u4ee5\n\u53ef\u4ee5\u770b\u505a\u662fol\u7684\u589e\u5f3a\uff0c\u5e76\u672a\u6539\u53d8\u5176\u5185\u7f6e\u5bf9\u8c61\uff0c\u4ee5\u4e0b\u5730\u56fe\u5b9e\u4f8b\u5168\u90e8\u57fa\u4e8eHMap\u3002"]}),"\n"]}),"\n",(0,s.jsx)(n.h2,{id:"\u7b2c\u4e00\u4e2a\u793a\u4f8b",children:"\u7b2c\u4e00\u4e2a\u793a\u4f8b"}),"\n",(0,s.jsx)(n.pre,{children:(0,s.jsx)(n.code,{className:"language-html",children:"<!DOCTYPE html>\n<html lang=\"en\">\n<head>\n <meta charset=\"UTF-8\">\n <meta name=\"viewport\" content=\"width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0\">\n <title>ol3-Echarts\n \n \n\n\n
\n - +实现原理 | ol-echarts Documentation + + -

集成 ECharts

+

集成 ECharts

本章节主要讲解 ol5ECharts 如何进行集成,将会从以下几个方面进行深入:

当然在阅读本章节之前,需要你已经了解 ol5 的图层、事件系统、投影和坐标变换。

-

ol-echarts简介

+

ol-echarts简介

ol-echarts 是已经封装完成的 ol5ECharts集成的类库,暂时已经支持了 echarts 的所有map组件类型,对不支持地理坐标系统的普通图表,也做了部分兼容,例如饼图、柱状图、折线图。 通过这个插件,你可以直接将Echarts集成到 Openlayers 5。但是除了使用外,我们还希望读者能从中获得更多的东西,触类旁通,真正地剖析原理去了解 ol5 内部的一些组成,可能会 带给你一些不一样的知识。

-

简单使用

+

简单使用

首先在使用前你应该已经安装了 ol echarts ol-echarts 这几个必要依赖,并且如果使用了 gl 渲染模式还需要新增 echarts-gl 依赖。 然后和正常流程一样,我们需要先创建一个地图:

-
import 'ol/ol.css';
import { Map, View } from 'ol';
import TileLayer from 'ol/layer/Tile';
import XYZ from 'ol/source/XYZ';

const map = new Map({
target: '#map',
view: new View({
center: [113.53450137499999, 34.44104525],
projection: 'EPSG:4326',
zoom: 5 // resolution
}),
layers: [
new TileLayer({
source: new XYZ({
url: 'http://cache1.arcgisonline.cn/arcgis/rest/services/ChinaOnline' +
'StreetPurplishBlue/MapServer/tile/{z}/{y}/{x}'
})
})
]
});
+
import 'ol/ol.css';
import { Map, View } from 'ol';
import TileLayer from 'ol/layer/Tile';
import XYZ from 'ol/source/XYZ';

const map = new Map({
target: '#map',
view: new View({
center: [113.53450137499999, 34.44104525],
projection: 'EPSG:4326',
zoom: 5 // resolution
}),
layers: [
new TileLayer({
source: new XYZ({
url: 'http://cache1.arcgisonline.cn/arcgis/rest/services/ChinaOnline' +
'StreetPurplishBlue/MapServer/tile/{z}/{y}/{x}'
})
})
]
});

然后我们需要初始化一个 ECharts 图层,主体代码如下

-
import EChartsLayer from 'ol-echarts';

const option = {}; // 为标准的ECharts的配置,不需要做特殊处理

const chart = new EChartsLayer(option, {
forcedRerender: false, // 强制重绘,会调用 ECharts 的 clear() 方法清空图层
forcedPrecomposeRerender: false, // 强制在 map 触发 precompose(准备渲染,未开始渲染)事件时进行 ECharts 图层的重绘
hideOnZooming: false, // 在地图缩放时隐藏 ECharts 图层,这样在一些场景下可以提高性能。
hideOnMoving: false, // 在地图移动时隐藏 ECharts 图层,这样在一些场景下可以提高性能。
hideOnRotating: false, // 在地图旋转时隐藏 ECharts 图层,这样在一些场景下可以提高性能。
});

chart.appendTo(map); // 将 ECharts 图层添加到地图上
+
import EChartsLayer from 'ol-echarts';

const option = {}; // 为标准的ECharts的配置,不需要做特殊处理

const chart = new EChartsLayer(option, {
forcedRerender: false, // 强制重绘,会调用 ECharts 的 clear() 方法清空图层
forcedPrecomposeRerender: false, // 强制在 map 触发 precompose(准备渲染,未开始渲染)事件时进行 ECharts 图层的重绘
hideOnZooming: false, // 在地图缩放时隐藏 ECharts 图层,这样在一些场景下可以提高性能。
hideOnMoving: false, // 在地图移动时隐藏 ECharts 图层,这样在一些场景下可以提高性能。
hideOnRotating: false, // 在地图旋转时隐藏 ECharts 图层,这样在一些场景下可以提高性能。
});

chart.appendTo(map); // 将 ECharts 图层添加到地图上

通过以上步骤,我们就简单实现了 Openlayers 5ECharts 结合展示散点图的示例,完整代码

-

原理剖析

-

核心原理

+

原理剖析

+

核心原理

我们知道不管是 ol 还是 echarts 或者是其他图形渲染类库,它们的核心原理都是 - 数据发生变动或者交互动作触发后再次进行图形的绘制过程(重绘)。 当我们理解清楚以上原理,就可以考虑把 ol 视图和 echarts 视图进行同步,以达到将两者集成展示的目的。而且幸运的是echarts 官方已经给出了和百度地图 结合的相关代码,我们可以通过剖析相关代码来加快我们对核心原理的理解。

-

实现方案

+

实现方案

针对 ol 图层和 echarts 图层两者集成一般我们有两种方式:

  1. 一是直接创建一个页面元素再去实例化一个 echarts 容器,然后通过 ol 地图视图变化抛出的事件去同步 ECharts 图表的变化。这种做法的好处是 可以使用 ECharts 本身自带的 ToolTip 和控件等,缺点是会造成性能的损失。
  2. 另外一种方案是直接使用 ImageCanvas 去创建内置可合并的 canvas 图层,这种方案可以在一定程度上提升渲染性能,但是会损失 ECharts 内置的一些交互。
-

实现流程

+

实现流程

下面我们主要以第一种方案梳理一下具体实现的流程。

1、首先我们需要一个能够实例化 ECharts 的容器,这个容器的存放位置也是有一定要求的。我们需要考虑的是首先上面叠加的 Dom 图层不能遮挡下面的图层,另外 上面 Dom 图层的事件需要穿透到下部,所以我们考虑直接将容器默认创建在 ol-overlaycontainer 容器内,主要代码如下:

此外还需要注意,容器创建位置也支持自定义,但是默认都是在上图地图容器内;一般情况下不需要自定义位置,采用默认即可。 查看源码, 以下为核心代码:

-
_createLayerContainer (map, options) {
const viewPort = map.getViewport()
const container = (this.$container = document.createElement('div'));
container.style.position = 'absolute';
container.style.top = '0px';
container.style.left = '0px';
container.style.right = '0px';
container.style.bottom = '0px';
let _target = getTarget(options['target'], viewPort);
if (_target && _target[0] && _target[0] instanceof Element) {
_target[0].appendChild(container);
} else {
let _target = getTarget('.ol-overlaycontainer', viewPort);
if (_target && _target[0] && _target[0] instanceof Element) {
_target[0].appendChild(container);
} else {
viewPort.appendChild(container);
}
}
}
+
_createLayerContainer (map, options) {
const viewPort = map.getViewport()
const container = (this.$container = document.createElement('div'));
container.style.position = 'absolute';
container.style.top = '0px';
container.style.left = '0px';
container.style.right = '0px';
container.style.bottom = '0px';
let _target = getTarget(options['target'], viewPort);
if (_target && _target[0] && _target[0] instanceof Element) {
_target[0].appendChild(container);
} else {
let _target = getTarget('.ol-overlaycontainer', viewPort);
if (_target && _target[0] && _target[0] instanceof Element) {
_target[0].appendChild(container);
} else {
viewPort.appendChild(container);
}
}
}

2、坐标系统的注册(注册坐标系统的原因和核心原理请查看坐标系统详解):查看源码, 以下为核心代码:

-
// 注册openlayers坐标系统,_getCoordinateSystem来自 `RegisterCoordinateSystem`
echarts.registerCoordinateSystem('openlayers', _getCoordinateSystem(map, {}));

// 坐标系统注册完成后需要将传入的echarts配置项的series类型的每一项的coordinateSystem重定义为 `openlayers`, 保持和上面注册类型一致
// echarts 在绘制时会根据相应的坐标系统去将传入的空间数据转换为屏幕坐标
for (let i = series.length - 1; i >= 0; i--) {
series[i]['coordinateSystem'] = 'openlayers';
// series[i]['animation'] = false;
}
+
// 注册openlayers坐标系统,_getCoordinateSystem来自 `RegisterCoordinateSystem`
echarts.registerCoordinateSystem('openlayers', _getCoordinateSystem(map, {}));

// 坐标系统注册完成后需要将传入的echarts配置项的series类型的每一项的coordinateSystem重定义为 `openlayers`, 保持和上面注册类型一致
// echarts 在绘制时会根据相应的坐标系统去将传入的空间数据转换为屏幕坐标
for (let i = series.length - 1; i >= 0; i--) {
series[i]['coordinateSystem'] = 'openlayers';
// series[i]['animation'] = false;
}

3、需要拿到已经创建的容器去实例化 ECharts 查看源码, 以下为核心代码:

-
// 创建echarts实例,并且设置配置项
this.$chart = echarts.init(this.$container);
this.$chart.setOption(options)
+
// 创建echarts实例,并且设置配置项
this.$chart = echarts.init(this.$container);
this.$chart.setOption(options)

4、绑定openlayers地图的重绘事件,在ol.view视图变化时同步更新 echarts 图表内容。 查看源码, 以下为核心代码:

-
const Map = this.$Map;
const view = Map.getView();
if (this.$options.forcedPrecomposeRerender) {
// 强制实时更新,能够避免地图和 `echarts` 视图不同步问题
this.precomposeListener_ = Map.on('precompose', this.reRender.bind(this));
}

// openlayers地图尺寸变化事件
this.sizeChangeListener_ = Map.on('change:size', this.onResize.bind(this));
// openlayers地图分辨率变化事件
this.resolutionListener_ = view.on('change:resolution', this.onZoomEnd.bind(this));
// openlayers地图中心点变化事件
this.centerChangeListener_ = view.on('change:center', this.onCenterChange.bind(this));
// openlayers地图视图旋转角度变化事件
this.rotationListener_ = view.on('change:rotation', this.onDragRotateEnd.bind(this));
// openlayers地图视图平移开始事件
this.movestartListener_ = Map.on('movestart', this.onMoveStart.bind(this));
// openlayers地图视图平移结束事件
this.moveendListener_ = Map.on('moveend', this.onMoveEnd.bind(this));
+
const Map = this.$Map;
const view = Map.getView();
if (this.$options.forcedPrecomposeRerender) {
// 强制实时更新,能够避免地图和 `echarts` 视图不同步问题
this.precomposeListener_ = Map.on('precompose', this.reRender.bind(this));
}

// openlayers地图尺寸变化事件
this.sizeChangeListener_ = Map.on('change:size', this.onResize.bind(this));
// openlayers地图分辨率变化事件
this.resolutionListener_ = view.on('change:resolution', this.onZoomEnd.bind(this));
// openlayers地图中心点变化事件
this.centerChangeListener_ = view.on('change:center', this.onCenterChange.bind(this));
// openlayers地图视图旋转角度变化事件
this.rotationListener_ = view.on('change:rotation', this.onDragRotateEnd.bind(this));
// openlayers地图视图平移开始事件
this.movestartListener_ = Map.on('movestart', this.onMoveStart.bind(this));
// openlayers地图视图平移结束事件
this.moveendListener_ = Map.on('moveend', this.onMoveEnd.bind(this));

5、地图事件触发echarts重绘

-
// 如果强制重绘会手动调用一次 `echarts` 实例的 `clear` 方法
if (this.$options.forcedRerender) {
this.$chart.clear();
}

// 更新 echarts 容器尺寸
this.$chart.resize();

// 重新设置配置项,会触发图表的重绘和像素坐标的重新计算。
this.$chart.setOption(options)
+
// 如果强制重绘会手动调用一次 `echarts` 实例的 `clear` 方法
if (this.$options.forcedRerender) {
this.$chart.clear();
}

// 更新 echarts 容器尺寸
this.$chart.resize();

// 重新设置配置项,会触发图表的重绘和像素坐标的重新计算。
this.$chart.setOption(options)

基本思路可以简单理解为:

  • 绑定 openlayers 地图视图重绘事件同步重绘 echarts视图。
  • 地理坐标到真实屏幕坐标的实时转换。

以上就是本章节的基本内容。

-

CoordinateSystem - 坐标系统详解

+

CoordinateSystem - 坐标系统详解

我们在查看 ECharts 官方的百度地图扩展或者其他诸如 maptalks.e3 扩展, 他们都包含了一段核心代码是关于坐标系统注册的;同样的,我们在扩展 ol-echarts 时 我们同样也需要考虑特殊坐标系统注册的问题。下面我们会详细说明我们为什么要进行坐标系统的注册,以及是如何通过坐标系统将空间坐标映射到真实屏幕坐标的。

首先我们需要思考一下,在真实地图可视化的开发过程中我们一般拿到的数据都为空间数据,我们并不能直接用空间数据的原始值进行打点到浏览器窗口上; 一般我们都会通过各个地图引擎提供的方法将地理坐标转换为 真实屏幕坐标进行绘制(而且需要注意的是地理坐标的输入是不可变的,但是对应的屏幕坐标会随着视图的变化而变化),对于 Openlayers 我们会有个常用的方法为:

-
// coordinates 为地理坐标,返回屏幕坐标
map.getPixelFromCoordinate(coordinates)
+
// coordinates 为地理坐标,返回屏幕坐标
map.getPixelFromCoordinate(coordinates)

对应的代码实现如下:

-
RegisterCoordinateSystem.prototype.dataToPoint = function (coords) {
if (coords && Array.isArray(coords) && coords.length > 0) {
// 仅做判断和将字符串坐标转换为数字
coords = coords.map(function (item) {
if (typeof item === 'string') {
item = Number(item);
}
return item;
});
}
let source = options['source'] || 'EPSG:4326';
let destination = options['destination'] || this.projCode_; // 当前地图的视图投影
// 关键代码:
// 1、transform(coords, source, destination) 支持多数据投影,最终将其转换为 `EPSG:4326`
// 2、map.getPixelFromCoordinate(coordinates) 将坐标转换为屏幕像素
let pixel = map.getPixelFromCoordinate(transform(coords, source, destination));
const mapOffset = this._mapOffset;
return [pixel[0] - mapOffset[0], pixel[1] - mapOffset[1]];
};
+
RegisterCoordinateSystem.prototype.dataToPoint = function (coords) {
if (coords && Array.isArray(coords) && coords.length > 0) {
// 仅做判断和将字符串坐标转换为数字
coords = coords.map(function (item) {
if (typeof item === 'string') {
item = Number(item);
}
return item;
});
}
let source = options['source'] || 'EPSG:4326';
let destination = options['destination'] || this.projCode_; // 当前地图的视图投影
// 关键代码:
// 1、transform(coords, source, destination) 支持多数据投影,最终将其转换为 `EPSG:4326`
// 2、map.getPixelFromCoordinate(coordinates) 将坐标转换为屏幕像素
let pixel = map.getPixelFromCoordinate(transform(coords, source, destination));
const mapOffset = this._mapOffset;
return [pixel[0] - mapOffset[0], pixel[1] - mapOffset[1]];
};
  • 特殊图表类型(custom类型, 因为此种类型会涉及图形的大小-size):
-
// form: https://github.com/sakitam-fdd/ol3Echarts/blob/master/packages/ol-echarts/src/coordinate/RegisterCoordinateSystem.js#L121
RegisterCoordinateSystem.prototype.prepareCustoms = function (data) {
const rect = this.getViewRect();
return {
coordSys: {
// The name exposed to user is always 'cartesian2d' but not 'grid'.
type: 'openlayers',
x: rect.x,
y: rect.y,
width: rect.width,
height: rect.height
},
api: {
coord: bind(this.dataToPoint, this), // 转换屏幕坐标方法
size: bind(RegisterCoordinateSystem.dataToCoordSize, this) // 转换图形大小的方法
}
};
};

// from: https://github.com/sakitam-fdd/ol3Echarts/blob/master/packages/ol-echarts/src/coordinate/RegisterCoordinateSystem.js#L144
RegisterCoordinateSystem.dataToCoordSize = function (dataSize, dataItem) {
dataItem = dataItem || [0, 0];
return $map(
[0, 1],
function (dimIdx) {
let val = dataItem[dimIdx]; // 当前数据的经纬度
let halfSize = dataSize[dimIdx] / 2; // 对应数据大小的一半
let [p1, p2] = [[], []];
p1[dimIdx] = val - halfSize; // 对应数据大小的负向偏移
p2[dimIdx] = val + halfSize; // 对应数据大小的正向偏移
p1[1 - dimIdx] = p2[1 - dimIdx] = dataItem[1 - dimIdx]; // 仅做临时计算的辅助变量
return Math.abs(this.dataToPoint(p1)[dimIdx] - this.dataToPoint(p2)[dimIdx]); // 转换为对应屏幕像素的实际大小
},
this
);
};
+
// form: https://github.com/sakitam-fdd/ol3Echarts/blob/master/packages/ol-echarts/src/coordinate/RegisterCoordinateSystem.js#L121
RegisterCoordinateSystem.prototype.prepareCustoms = function (data) {
const rect = this.getViewRect();
return {
coordSys: {
// The name exposed to user is always 'cartesian2d' but not 'grid'.
type: 'openlayers',
x: rect.x,
y: rect.y,
width: rect.width,
height: rect.height
},
api: {
coord: bind(this.dataToPoint, this), // 转换屏幕坐标方法
size: bind(RegisterCoordinateSystem.dataToCoordSize, this) // 转换图形大小的方法
}
};
};

// from: https://github.com/sakitam-fdd/ol3Echarts/blob/master/packages/ol-echarts/src/coordinate/RegisterCoordinateSystem.js#L144
RegisterCoordinateSystem.dataToCoordSize = function (dataSize, dataItem) {
dataItem = dataItem || [0, 0];
return $map(
[0, 1],
function (dimIdx) {
let val = dataItem[dimIdx]; // 当前数据的经纬度
let halfSize = dataSize[dimIdx] / 2; // 对应数据大小的一半
let [p1, p2] = [[], []];
p1[dimIdx] = val - halfSize; // 对应数据大小的负向偏移
p2[dimIdx] = val + halfSize; // 对应数据大小的正向偏移
p1[1 - dimIdx] = p2[1 - dimIdx] = dataItem[1 - dimIdx]; // 仅做临时计算的辅助变量
return Math.abs(this.dataToPoint(p1)[dimIdx] - this.dataToPoint(p2)[dimIdx]); // 转换为对应屏幕像素的实际大小
},
this
);
};

坐标系统的注册

-

// 默认调用 echarts 的 `registerCoordinateSystem` 方法进行自定义坐标系统的注册,
// 第一个参数为 坐标系统的 type 类型,第二个参数为自定义坐标系统的构造函数, 默认会调用构造函数的静态方法 `create`
echarts.registerCoordinateSystem('openlayers', RegisterCoordinateSystem);

// create函数主要做了以下工作:
// 循环 series,将指定 `coordinateSystem` 类型为 `openlayers` 的 seriesModel的 `coordinateSystem` 指向 `RegisterCoordinateSystem` 的实例。
RegisterCoordinateSystem.create = function (echartModel, api) {
echartModel.eachSeries(function (seriesModel) {
if (seriesModel.get('coordinateSystem') === 'openlayers') {
seriesModel.coordinateSystem = new RegisterCoordinateSystem(map);
}
});
};

+

// 默认调用 echarts 的 `registerCoordinateSystem` 方法进行自定义坐标系统的注册,
// 第一个参数为 坐标系统的 type 类型,第二个参数为自定义坐标系统的构造函数, 默认会调用构造函数的静态方法 `create`
echarts.registerCoordinateSystem('openlayers', RegisterCoordinateSystem);

// create函数主要做了以下工作:
// 循环 series,将指定 `coordinateSystem` 类型为 `openlayers` 的 seriesModel的 `coordinateSystem` 指向 `RegisterCoordinateSystem` 的实例。
RegisterCoordinateSystem.create = function (echartModel, api) {
echartModel.eachSeries(function (seriesModel) {
if (seriesModel.get('coordinateSystem') === 'openlayers') {
seriesModel.coordinateSystem = new RegisterCoordinateSystem(map);
}
});
};

\ No newline at end of file diff --git a/docs/index.html b/docs/index.html index 6b54341..e213769 100644 --- a/docs/index.html +++ b/docs/index.html @@ -3,57 +3,57 @@ -Bridger for openlayers and echarts | ol-echarts Documentation - - +Bridger for openlayers and echarts | ol-echarts Documentation + + -

Bridger for openlayers and echarts

-

CI -codecov -JS gzip size -GitHub stars -GitHub license

-

Support

-
ProjectStatusVersionNpmCDNDescription
ol3-echartsCINpm packageNPM downloadssupport for openlayers3-4
ol-echartsCINpm packageNPM downloadssupport for openlayers5+
-

TIP

+

Bridger for openlayers and echarts

+

CI +codecov +JS gzip size +GitHub stars +GitHub license

+

Support

+
ProjectStatusVersionNpmCDNDescription
ol3-echartsCINpm packageNPM downloadssupport for openlayers3-4
ol-echartsCINpm packageNPM downloadssupport for openlayers5+
+

TIP

ol 7.x 以后请使用 ol-echarts v4.x,ol 7.x 之前请使用 ol-echarts v3.x,原因见 issues/115

-

下载

-
git clone https://github.com/sakitam-fdd/ol3Echarts.git
yarn run bootstrap
yarn run dev
yarn run build
yarn run karma.test
-

安装

-

npm安装

+

下载

+
git clone https://github.com/sakitam-fdd/ol3Echarts.git
yarn run bootstrap
yarn run dev
yarn run build
yarn run karma.test
+

安装

+

npm安装

注意:npm下存在两个包 ol3-echartsol-echarts 前者是在使用 openlayers 或者是 ol 的cdn时使用;后者是在使用 ol 配合打包工具使用。

-
// old openlayers package
npm install ol3-echarts --save
import ol3Echarts from 'ol3-echarts'

// ol package
npm install ol-echarts --save
import EChartsLayer from 'ol-echarts'

-

cdn

+
// old openlayers package
npm install ol3-echarts --save
import ol3Echarts from 'ol3-echarts'

// ol package
npm install ol-echarts --save
import EChartsLayer from 'ol-echarts'

+

cdn

cdn 引用方式只支持 旧版 openlayers 和新版 ol 的cdn引用方式,统一使用 ol3-echarts 支持。

目前可通过 unpkg.com / jsdelivr 获取最新版本的资源。

-
// jsdelivr (jsdelivr由于缓存原因最好锁定版本号)
https://cdn.jsdelivr.net/npm/ol3-echarts@2.0.3/dist/ol3Echarts.js
https://cdn.jsdelivr.net/npm/ol3-echarts@2.0.3/dist/ol3Echarts.min.js
// npm
https://unpkg.com/ol3-echarts/dist/ol3Echarts.js
https://unpkg.com/ol3-echarts/dist/ol3Echarts.min.js
-

示例

-

文档

-

实现原理

-
openlayers
-
<div id="map"></div>
<script src="https://cdn.jsdelivr.net/npm/openlayers/dist/ol.js"></script>
<script src="https://cdn.jsdelivr.net/npm/echarts/dist/echarts.js"></script>
<script src="https://cdn.jsdelivr.net/npm/ol3-echarts/dist/ol3Echarts.js"></script>
<script>
var Map = new ol.Map({
target: container,
layers: [
new ol.layer.Tile({
preload: 4,
source: new ol.source.OSM()
})
],
loadTilesWhileAnimating: true,
view: new ol.View({
projection: 'EPSG:4326',
center: [120.74758724751435, 30.760422266949334],
zoom: 8
})
});
var echartslayer = new ol3Echarts(echartsOption, {
source: '',
destination: '',
hideOnMoving: true,
forcedRerender: false,
forcedPrecomposeRerender: false
});
echartslayer.appendTo(Map)
</script>
-

ol package & react

-
import * as React from 'react';
import { Map, View } from 'ol';
import TileLayer from 'ol/layer/Tile';
import XYZ from 'ol/source/XYZ';
import 'ol/ol.css';
import EChartsLayer from 'ol-echarts';

class Index extends React.Component {
constructor (props, context) {
super(props, context);
this.state = {
zoom: 14,
fov: 0,
pitch: 0,
bearing: 0
};

this.container = null;
this.map = null;
}

componentDidMount () {
this.map = new Map({
target: this.container,
view: new View({
center: [113.53450137499999, 34.44104525],
projection: 'EPSG:4326',
zoom: 5 // resolution
}),
layers: [
new TileLayer({
source: new XYZ({
url: 'http://cache1.arcgisonline.cn/arcgis/rest/services/ChinaOnline' +
'StreetPurplishBlue/MapServer/tile/{z}/{y}/{x}'
})
})
]
});
const echartslayer = new EChartsLayer(option, {
hideOnMoving: false,
hideOnZooming: false,
forcedPrecomposeRerender: true
});
echartslayer.appendTo(this.map);
window.setTimeout(() => {
echartslayer.remove();
}, 10 * 1000)
}

setRef = (x = null) => {
this.container = x;
};

render () {
return (<div ref={this.setRef} className="map-content"></div>);
}
}
-
hmap-js
-
<div id="map"></div>
<script src="https://cdn.jsdelivr.net/npm/hmap-js/dist/hmap.js"></script>
<script src="https://cdn.jsdelivr.net/npm/echarts/dist/echarts.js"></script>
<script src="https://cdn.jsdelivr.net/npm/ol3-echarts/dist/ol3Echarts.js"></script>
<script>
var Maps = new HMap('map', {
controls: {
loading: true,
zoomSlider: true,
fullScreen: false
},
view: {
center: [113.53450137499999, 34.44104525],
projection: 'EPSG:4326',
zoom: 5, // resolution
},
baseLayers: [
{
layerName: 'vector',
isDefault: true,
layerType: 'TileXYZ',
projection: 'EPSG:3857',
tileGrid: {
tileSize: 256,
extent: [-2.0037507067161843E7, -3.0240971958386254E7, 2.0037507067161843E7, 3.0240971958386205E7],
origin: [-2.0037508342787E7, 2.0037508342787E7],
resolutions: [
156543.03392800014,
78271.51696399994,
39135.75848200009,
19567.87924099992,
9783.93962049996,
4891.96981024998,
2445.98490512499,
1222.992452562495,
611.4962262813797,
305.74811314055756,
152.87405657041106,
76.43702828507324,
38.21851414253662,
19.10925707126831,
9.554628535634155,
4.77731426794937,
2.388657133974685
]
},
layerUrl: 'http://cache1.arcgisonline.cn/arcgis/rest/services/ChinaOnlineStreetPurplishBlue/MapServer/tile/{z}/{y}/{x}'
}
]
});
var echartslayer = new ol3Echarts(echartsOption, {
source: '',
destination: '',
hideOnMoving: true,
forcedRerender: false,
forcedPrecomposeRerender: false
});
echartslayer.appendTo(Maps.getMap())
</script>
-

截图示例

-

散点图

-

迁徙图

-

微博签到数据点亮中国

+
// jsdelivr (jsdelivr由于缓存原因最好锁定版本号)
https://cdn.jsdelivr.net/npm/ol3-echarts@2.0.3/dist/ol3Echarts.js
https://cdn.jsdelivr.net/npm/ol3-echarts@2.0.3/dist/ol3Echarts.min.js
// npm
https://unpkg.com/ol3-echarts/dist/ol3Echarts.js
https://unpkg.com/ol3-echarts/dist/ol3Echarts.min.js
+

示例

+

文档

+

实现原理

+
openlayers
+
<div id="map"></div>
<script src="https://cdn.jsdelivr.net/npm/openlayers/dist/ol.js"></script>
<script src="https://cdn.jsdelivr.net/npm/echarts/dist/echarts.js"></script>
<script src="https://cdn.jsdelivr.net/npm/ol3-echarts/dist/ol3Echarts.js"></script>
<script>
var Map = new ol.Map({
target: container,
layers: [
new ol.layer.Tile({
preload: 4,
source: new ol.source.OSM()
})
],
loadTilesWhileAnimating: true,
view: new ol.View({
projection: 'EPSG:4326',
center: [120.74758724751435, 30.760422266949334],
zoom: 8
})
});
var echartslayer = new ol3Echarts(echartsOption, {
source: '',
destination: '',
hideOnMoving: true,
forcedRerender: false,
forcedPrecomposeRerender: false
});
echartslayer.appendTo(Map)
</script>
+

ol package & react

+
import * as React from 'react';
import { Map, View } from 'ol';
import TileLayer from 'ol/layer/Tile';
import XYZ from 'ol/source/XYZ';
import 'ol/ol.css';
import EChartsLayer from 'ol-echarts';

class Index extends React.Component {
constructor (props, context) {
super(props, context);
this.state = {
zoom: 14,
fov: 0,
pitch: 0,
bearing: 0
};

this.container = null;
this.map = null;
}

componentDidMount () {
this.map = new Map({
target: this.container,
view: new View({
center: [113.53450137499999, 34.44104525],
projection: 'EPSG:4326',
zoom: 5 // resolution
}),
layers: [
new TileLayer({
source: new XYZ({
url: 'http://cache1.arcgisonline.cn/arcgis/rest/services/ChinaOnline' +
'StreetPurplishBlue/MapServer/tile/{z}/{y}/{x}'
})
})
]
});
const echartslayer = new EChartsLayer(option, {
hideOnMoving: false,
hideOnZooming: false,
forcedPrecomposeRerender: true
});
echartslayer.appendTo(this.map);
window.setTimeout(() => {
echartslayer.remove();
}, 10 * 1000)
}

setRef = (x = null) => {
this.container = x;
};

render () {
return (<div ref={this.setRef} className="map-content"></div>);
}
}
+
hmap-js
+
<div id="map"></div>
<script src="https://cdn.jsdelivr.net/npm/hmap-js/dist/hmap.js"></script>
<script src="https://cdn.jsdelivr.net/npm/echarts/dist/echarts.js"></script>
<script src="https://cdn.jsdelivr.net/npm/ol3-echarts/dist/ol3Echarts.js"></script>
<script>
var Maps = new HMap('map', {
controls: {
loading: true,
zoomSlider: true,
fullScreen: false
},
view: {
center: [113.53450137499999, 34.44104525],
projection: 'EPSG:4326',
zoom: 5, // resolution
},
baseLayers: [
{
layerName: 'vector',
isDefault: true,
layerType: 'TileXYZ',
projection: 'EPSG:3857',
tileGrid: {
tileSize: 256,
extent: [-2.0037507067161843E7, -3.0240971958386254E7, 2.0037507067161843E7, 3.0240971958386205E7],
origin: [-2.0037508342787E7, 2.0037508342787E7],
resolutions: [
156543.03392800014,
78271.51696399994,
39135.75848200009,
19567.87924099992,
9783.93962049996,
4891.96981024998,
2445.98490512499,
1222.992452562495,
611.4962262813797,
305.74811314055756,
152.87405657041106,
76.43702828507324,
38.21851414253662,
19.10925707126831,
9.554628535634155,
4.77731426794937,
2.388657133974685
]
},
layerUrl: 'http://cache1.arcgisonline.cn/arcgis/rest/services/ChinaOnlineStreetPurplishBlue/MapServer/tile/{z}/{y}/{x}'
}
]
});
var echartslayer = new ol3Echarts(echartsOption, {
source: '',
destination: '',
hideOnMoving: true,
forcedRerender: false,
forcedPrecomposeRerender: false
});
echartslayer.appendTo(Maps.getMap())
</script>
+

截图示例

+

散点图

+

迁徙图

+

微博签到数据点亮中国

其他示例请自己挖掘

-

致谢

+

致谢

echarts openlayers

-

License

-

FOSSA Status

+

License

+

FOSSA Status

\ No newline at end of file diff --git a/docs/install/index.html b/docs/install/index.html index 127f7a9..c8352ce 100644 --- a/docs/install/index.html +++ b/docs/install/index.html @@ -3,18 +3,18 @@ -安装 | ol-echarts Documentation - - +安装 | ol-echarts Documentation + + -

安装

npm安装

-
# old openlayers package
npm install ol3-echarts --save
import ol3Echarts from 'ol3-echarts'

# ol package
npm install ol-echarts --save
import EChartsLayer from 'ol-echarts'

# 指定版本安装
npm install ol3-echarts@2.0.0 --save
import ol3Echarts from 'ol3-echarts'

npm install ol-echarts@2.0.0 --save
import EChartsLayer from 'ol-echarts'

-

cdn

+

安装

npm安装

+
# old openlayers package
npm install ol3-echarts --save
import ol3Echarts from 'ol3-echarts'

# ol package
npm install ol-echarts --save
import EChartsLayer from 'ol-echarts'

# 指定版本安装
npm install ol3-echarts@2.0.0 --save
import ol3Echarts from 'ol3-echarts'

npm install ol-echarts@2.0.0 --save
import EChartsLayer from 'ol-echarts'

+

cdn

cdn 引用方式只支持 旧版 openlayers 和新版 ol 的cdn引用方式,统一使用 ol3-echarts 支持。

目前可通过 unpkg.com / jsdelivr 获取最新版本的资源。

-
// jsdelivr (jsdelivr由于缓存原因最好锁定版本号)
https://cdn.jsdelivr.net/npm/ol3-echarts@2.0.0/dist/ol3Echarts.js
https://cdn.jsdelivr.net/npm/ol3-echarts@2.0.0/dist/ol3Echarts.min.js
// npm
https://unpkg.com/ol3-echarts/dist/ol3Echarts.js
https://unpkg.com/ol3-echarts/dist/ol3Echarts.min.js
+
// jsdelivr (jsdelivr由于缓存原因最好锁定版本号)
https://cdn.jsdelivr.net/npm/ol3-echarts@2.0.0/dist/ol3Echarts.js
https://cdn.jsdelivr.net/npm/ol3-echarts@2.0.0/dist/ol3Echarts.min.js
// npm
https://unpkg.com/ol3-echarts/dist/ol3Echarts.js
https://unpkg.com/ol3-echarts/dist/ol3Echarts.min.js
\ No newline at end of file diff --git a/docs/playgrounds/bar/index.html b/docs/playgrounds/bar/index.html index 17dac38..10eadcb 100644 --- a/docs/playgrounds/bar/index.html +++ b/docs/playgrounds/bar/index.html @@ -3,13 +3,13 @@ -柱状图 | ol-echarts Documentation - - +柱状图 | ol-echarts Documentation + + -

柱状图

示例

-
结果
Loading...
实时编辑器
function render(props) {
+
+
\ No newline at end of file diff --git a/docs/playgrounds/china-migration/index.html b/docs/playgrounds/china-migration/index.html index 40a777b..e9e5178 100644 --- a/docs/playgrounds/china-migration/index.html +++ b/docs/playgrounds/china-migration/index.html @@ -3,13 +3,13 @@ -春节人口迁徙 | ol-echarts Documentation - - +春节人口迁徙 | ol-echarts Documentation + + -

春节人口迁徙

一个简单的示例

-
结果
Loading...
实时编辑器
function render(props) {
+
+
\ No newline at end of file diff --git a/docs/playgrounds/echarts-geojson/index.html b/docs/playgrounds/echarts-geojson/index.html index fc9c45d..fe646e1 100644 --- a/docs/playgrounds/echarts-geojson/index.html +++ b/docs/playgrounds/echarts-geojson/index.html @@ -3,15 +3,15 @@ -解析 echarts中的 geojson | ol-echarts Documentation - - +解析 echarts中的 geojson | ol-echarts Documentation + + -

解析 echarts中的 geojson

有些同学想用echart中的map类型来渲染一些矢量数据,这个目前是无法直接进行实现的,我们key变通的通过 +

解析 echarts中的 geojson

有些同学想用echart中的map类型来渲染一些矢量数据,这个目前是无法直接进行实现的,我们key变通的通过 解析对应的区域数据直接使用ol的矢量图层来进行渲染,以下是一个示例

-

示例

-
结果
Loading...
实时编辑器
function render(props) {
+

示例

+
结果
Loading...
实时编辑器
function render(props) {
   const container = useRef(null);
 
   const dataUrl = useBaseUrl('/json/world.json');
@@ -78,6 +78,6 @@ 

示例 </div> ); } -

+
\ No newline at end of file diff --git a/docs/playgrounds/guangzhou-migration-map/index.html b/docs/playgrounds/guangzhou-migration-map/index.html index e3ffe96..7167a42 100644 --- a/docs/playgrounds/guangzhou-migration-map/index.html +++ b/docs/playgrounds/guangzhou-migration-map/index.html @@ -3,13 +3,13 @@ -广州人口迁徙 | ol-echarts Documentation - - +广州人口迁徙 | ol-echarts Documentation + + -

广州人口迁徙

示例

-
结果
Loading...
实时编辑器
function render(props) {
+
+
\ No newline at end of file diff --git a/docs/playgrounds/heatmap/index.html b/docs/playgrounds/heatmap/index.html index 002d50c..1e09d3a 100644 --- a/docs/playgrounds/heatmap/index.html +++ b/docs/playgrounds/heatmap/index.html @@ -3,13 +3,13 @@ -热力图 | ol-echarts Documentation - - +热力图 | ol-echarts Documentation + + -

热力图

示例

-
结果
Loading...
实时编辑器
function render(props) {
+
+
\ No newline at end of file diff --git a/docs/playgrounds/incremental/index.html b/docs/playgrounds/incremental/index.html index 843d111..318dae3 100644 --- a/docs/playgrounds/incremental/index.html +++ b/docs/playgrounds/incremental/index.html @@ -3,13 +3,13 @@ -增量渲染 | ol-echarts Documentation - - +增量渲染 | ol-echarts Documentation + + -

增量渲染

示例

-
结果
Loading...
实时编辑器
function render(props) {
+
+
\ No newline at end of file diff --git a/docs/playgrounds/line-bus/index.html b/docs/playgrounds/line-bus/index.html index e7c41b9..e82c395 100644 --- a/docs/playgrounds/line-bus/index.html +++ b/docs/playgrounds/line-bus/index.html @@ -3,13 +3,13 @@ -北京市公交线路 | ol-echarts Documentation - - +北京市公交线路 | ol-echarts Documentation + + -

北京市公交线路

一个简单的示例

-
结果
Loading...
实时编辑器
function render(props) {
+
+
\ No newline at end of file diff --git a/docs/playgrounds/line-with-4490/index.html b/docs/playgrounds/line-with-4490/index.html index 9b546ec..88d8a05 100644 --- a/docs/playgrounds/line-with-4490/index.html +++ b/docs/playgrounds/line-with-4490/index.html @@ -3,13 +3,13 @@ -4490坐标系显示折线图 | ol-echarts Documentation - - +4490坐标系显示折线图 | ol-echarts Documentation + + -

4490坐标系显示折线图

示例

-
结果
Loading...
实时编辑器
function render(props) {
+
+
\ No newline at end of file diff --git a/docs/playgrounds/line/index.html b/docs/playgrounds/line/index.html index 19d7cf0..f22b86b 100644 --- a/docs/playgrounds/line/index.html +++ b/docs/playgrounds/line/index.html @@ -3,13 +3,13 @@ -折线图 | ol-echarts Documentation - - +折线图 | ol-echarts Documentation + + -

折线图

示例

-
结果
Loading...
实时编辑器
function render(props) {
+
+
\ No newline at end of file diff --git a/docs/playgrounds/lines-airline/index.html b/docs/playgrounds/lines-airline/index.html index 0503dd3..4859b31 100644 --- a/docs/playgrounds/lines-airline/index.html +++ b/docs/playgrounds/lines-airline/index.html @@ -3,13 +3,13 @@ -全球飞机航线 | ol-echarts Documentation - - +全球飞机航线 | ol-echarts Documentation + + -

全球飞机航线

示例

-
结果
Loading...
实时编辑器
function render(props) {
+
+
\ No newline at end of file diff --git a/docs/playgrounds/lines-tourism/index.html b/docs/playgrounds/lines-tourism/index.html index 40c49da..cd03a37 100644 --- a/docs/playgrounds/lines-tourism/index.html +++ b/docs/playgrounds/lines-tourism/index.html @@ -3,13 +3,13 @@ -湘西旅游景点客源分布图_城规所 | ol-echarts Documentation - - +湘西旅游景点客源分布图_城规所 | ol-echarts Documentation + + -

湘西旅游景点客源分布图_城规所

示例

-
结果
Loading...
实时编辑器
function render(props) {
+
+
\ No newline at end of file diff --git a/docs/playgrounds/migration/index.html b/docs/playgrounds/migration/index.html index fecce3e..42ca973 100644 --- a/docs/playgrounds/migration/index.html +++ b/docs/playgrounds/migration/index.html @@ -3,13 +3,13 @@ -模拟迁徙 | ol-echarts Documentation - - +模拟迁徙 | ol-echarts Documentation + + -

模拟迁徙

一个简单的示例

-
结果
Loading...
实时编辑器
function render(props) {
+
+
\ No newline at end of file diff --git a/docs/playgrounds/pie/index.html b/docs/playgrounds/pie/index.html index d726f8e..acad77a 100644 --- a/docs/playgrounds/pie/index.html +++ b/docs/playgrounds/pie/index.html @@ -3,13 +3,13 @@ -饼图 | ol-echarts Documentation - - +饼图 | ol-echarts Documentation + + -

饼图

示例

-
结果
Loading...
实时编辑器
function render(props) {
+
+
\ No newline at end of file diff --git a/docs/playgrounds/point/index.html b/docs/playgrounds/point/index.html index 4fedb50..f95f6ba 100644 --- a/docs/playgrounds/point/index.html +++ b/docs/playgrounds/point/index.html @@ -3,13 +3,13 @@ -自定义点视图 | ol-echarts Documentation - - +自定义点视图 | ol-echarts Documentation + + -

自定义点视图

示例

-
结果
Loading...
实时编辑器
function render(props) {
+
+
\ No newline at end of file diff --git a/docs/playgrounds/scatter-charts/index.html b/docs/playgrounds/scatter-charts/index.html index 2035555..af2ceb3 100644 --- a/docs/playgrounds/scatter-charts/index.html +++ b/docs/playgrounds/scatter-charts/index.html @@ -3,13 +3,13 @@ -全国主要城市空气质量 | ol-echarts Documentation - - +全国主要城市空气质量 | ol-echarts Documentation + + -

全国主要城市空气质量

示例

-
结果
Loading...
实时编辑器
function render(props) {
+
+
\ No newline at end of file diff --git a/docs/playgrounds/track-line/index.html b/docs/playgrounds/track-line/index.html index 2199c70..3becbe2 100644 --- a/docs/playgrounds/track-line/index.html +++ b/docs/playgrounds/track-line/index.html @@ -3,13 +3,13 @@ -杭州热门步行路线 | ol-echarts Documentation - - +杭州热门步行路线 | ol-echarts Documentation + + -

杭州热门步行路线

一个简单的示例

-
结果
Loading...
实时编辑器
function render(props) {
+
+
\ No newline at end of file diff --git a/docs/playgrounds/traffic/index.html b/docs/playgrounds/traffic/index.html index dadc6fa..4eb3750 100644 --- a/docs/playgrounds/traffic/index.html +++ b/docs/playgrounds/traffic/index.html @@ -3,13 +3,13 @@ -嘉兴市公交线路道路拥堵情况 | ol-echarts Documentation - - +嘉兴市公交线路道路拥堵情况 | ol-echarts Documentation + + -

嘉兴市公交线路道路拥堵情况

一个简单的示例

-
结果
Loading...
实时编辑器
function render(props) {
+
+
\ No newline at end of file diff --git a/docs/playgrounds/weibo-gl/index.html b/docs/playgrounds/weibo-gl/index.html index 456a3f1..724d583 100644 --- a/docs/playgrounds/weibo-gl/index.html +++ b/docs/playgrounds/weibo-gl/index.html @@ -3,13 +3,13 @@ -微博签到数据点亮中国-WEBGL | ol-echarts Documentation - - +微博签到数据点亮中国-WEBGL | ol-echarts Documentation + + -

微博签到数据点亮中国-WEBGL

示例

-
结果
Loading...
实时编辑器
function render(props) {
+
+
\ No newline at end of file diff --git a/docs/playgrounds/weibo/index.html b/docs/playgrounds/weibo/index.html index 1e4500b..fa712a4 100644 --- a/docs/playgrounds/weibo/index.html +++ b/docs/playgrounds/weibo/index.html @@ -3,13 +3,13 @@ -微博签到数据点亮中国 | ol-echarts Documentation - - +微博签到数据点亮中国 | ol-echarts Documentation + + -

微博签到数据点亮中国

示例

-
结果
Loading...
实时编辑器
function render(props) {
+
+
\ No newline at end of file diff --git a/docs/playgrounds/wind/index.html b/docs/playgrounds/wind/index.html index 15edb8e..abc4afd 100644 --- a/docs/playgrounds/wind/index.html +++ b/docs/playgrounds/wind/index.html @@ -3,13 +3,13 @@ -全球风向 | ol-echarts Documentation - - +全球风向 | ol-echarts Documentation + + -

全球风向

示例

-
结果
Loading...
实时编辑器
function render(props) {
+
+
\ No newline at end of file diff --git a/docs/quickstart/index.html b/docs/quickstart/index.html index 0a8cae0..8055436 100644 --- a/docs/quickstart/index.html +++ b/docs/quickstart/index.html @@ -3,24 +3,24 @@ -快速开始 | ol-echarts Documentation - - +快速开始 | ol-echarts Documentation + + -

快速开始

快速开始

+

快速开始

快速开始

这里假设你已了解openlayers和echarts的使用方法

-

说明

+

说明

因为ol3Echarts是基于openlayers和Echarts开发而来,所以必须引入ol和echarts类库。 同时需要拿到 ol.Map 的地图对象实例,因为HMap是基于openlayers的二次开发,所以 可以看做是ol的增强,并未改变其内置对象,以下地图实例全部基于HMap。

-

第一个示例

-
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0">
<title>ol3-Echarts</title>
<link rel="stylesheet" href="https://unpkg.com/hmap-js/dist/hmap.css">
<style>
html, body, #map {
height: 100%;
padding: 0;
margin: 0;
}
.hmap-control-zoom {
right: 30px;
}
</style>
</head>
<body>
<div id="map"></div>
<script src="https://unpkg.com/hmap-js/dist/hmap.js"></script>
<script src="https://unpkg.com/jquery/dist/jquery.js"></script>
<script src="https://unpkg.com/echarts/dist/echarts.js"></script>
<script src="https://unpkg.com/ol3-echarts/dist/ol3Echarts.js"></script>
<script>
document.onreadystatechange = function () {
if (document.readyState === 'complete') {
var Maps = new HMap('map', {
controls: {
loading: true,
zoomSlider: true,
fullScreen: false
},
view: {
center: [11464017.313439976, 3934744.6720247352],
extent: [-2.0037507067161843E7, -3.0240971958386254E7, 2.0037507067161843E7, 3.0240971958386205E7],
projection: 'EPSG:102100',
tileSize: 256,
zoom: 5, // resolution
},
baseLayers: [
{
layerName: 'vector',
isDefault: true,
layerType: 'TileXYZ',
tileGrid: {
tileSize: 256,
extent: [-2.0037507067161843E7, -3.0240971958386254E7, 2.0037507067161843E7, 3.0240971958386205E7],
origin: [-2.0037508342787E7, 2.0037508342787E7],
resolutions: [
156543.03392800014,
78271.51696399994,
39135.75848200009,
19567.87924099992,
9783.93962049996,
4891.96981024998,
2445.98490512499,
1222.992452562495,
611.4962262813797,
305.74811314055756,
152.87405657041106,
76.43702828507324,
38.21851414253662,
19.10925707126831,
9.554628535634155,
4.77731426794937,
2.388657133974685
]
},
layerUrl: 'http://cache1.arcgisonline.cn/arcgis/rest/services/ChinaOnlineStreetPurplishBlue/MapServer/tile/{z}/{y}/{x}'
}
]
});
var data = [{
name: '菏泽',
value: 194
}];
var geoCoordMap = {
'菏泽': [115.480656, 35.23375]
};
var convertData = function (data) {
var res = [];
for (var i = 0; i < data.length; i++) {
var geoCoord = geoCoordMap[data[i].name];
if (geoCoord) {
res.push({
name: data[i].name,
value: geoCoord.concat(data[i].value)
});
}
}
return res;
};
var option = {
title: {
text: '全国主要城市空气质量',
subtext: 'data from PM25.in',
sublink: 'http://www.pm25.in',
left: 'center',
textStyle: {
color: '#fff'
}
},
tooltip: {
trigger: 'item'
},
legend: {
orient: 'vertical',
y: 'top',
x: 'right',
data: ['pm2.5'],
textStyle: {
color: '#fff'
}
},
series: [
{
name: 'pm2.5',
type: 'scatter',
data: convertData(data),
symbolSize: function (val) {
return val[2] / 10;
},
label: {
normal: {
formatter: '{b}',
position: 'right',
show: false
},
emphasis: {
show: true
}
},
itemStyle: {
normal: {
color: '#ddb926'
}
}
},
{
name: 'Top 5',
type: 'effectScatter',
data: convertData(data.sort(function (a, b) {
return b.value - a.value;
}).slice(0, 6)),
symbolSize: function (val) {
return val[2] / 10;
},
showEffectOn: 'render',
rippleEffect: {
brushType: 'stroke'
},
hoverAnimation: true,
label: {
normal: {
formatter: '{b}',
position: 'right',
show: true
}
},
itemStyle: {
normal: {
color: '#f4e925',
shadowBlur: 10,
shadowColor: '#333'
}
},
zlevel: 1
}]
};
var echartslayer = new ol3Echarts(option);
echartslayer.appendTo(Maps.getMap());
}
}
</script>
</body>
</html>
-

尝试编辑它

+

第一个示例

+
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0">
<title>ol3-Echarts</title>
<link rel="stylesheet" href="https://unpkg.com/hmap-js/dist/hmap.css">
<style>
html, body, #map {
height: 100%;
padding: 0;
margin: 0;
}
.hmap-control-zoom {
right: 30px;
}
</style>
</head>
<body>
<div id="map"></div>
<script src="https://unpkg.com/hmap-js/dist/hmap.js"></script>
<script src="https://unpkg.com/jquery/dist/jquery.js"></script>
<script src="https://unpkg.com/echarts/dist/echarts.js"></script>
<script src="https://unpkg.com/ol3-echarts/dist/ol3Echarts.js"></script>
<script>
document.onreadystatechange = function () {
if (document.readyState === 'complete') {
var Maps = new HMap('map', {
controls: {
loading: true,
zoomSlider: true,
fullScreen: false
},
view: {
center: [11464017.313439976, 3934744.6720247352],
extent: [-2.0037507067161843E7, -3.0240971958386254E7, 2.0037507067161843E7, 3.0240971958386205E7],
projection: 'EPSG:102100',
tileSize: 256,
zoom: 5, // resolution
},
baseLayers: [
{
layerName: 'vector',
isDefault: true,
layerType: 'TileXYZ',
tileGrid: {
tileSize: 256,
extent: [-2.0037507067161843E7, -3.0240971958386254E7, 2.0037507067161843E7, 3.0240971958386205E7],
origin: [-2.0037508342787E7, 2.0037508342787E7],
resolutions: [
156543.03392800014,
78271.51696399994,
39135.75848200009,
19567.87924099992,
9783.93962049996,
4891.96981024998,
2445.98490512499,
1222.992452562495,
611.4962262813797,
305.74811314055756,
152.87405657041106,
76.43702828507324,
38.21851414253662,
19.10925707126831,
9.554628535634155,
4.77731426794937,
2.388657133974685
]
},
layerUrl: 'http://cache1.arcgisonline.cn/arcgis/rest/services/ChinaOnlineStreetPurplishBlue/MapServer/tile/{z}/{y}/{x}'
}
]
});
var data = [{
name: '菏泽',
value: 194
}];
var geoCoordMap = {
'菏泽': [115.480656, 35.23375]
};
var convertData = function (data) {
var res = [];
for (var i = 0; i < data.length; i++) {
var geoCoord = geoCoordMap[data[i].name];
if (geoCoord) {
res.push({
name: data[i].name,
value: geoCoord.concat(data[i].value)
});
}
}
return res;
};
var option = {
title: {
text: '全国主要城市空气质量',
subtext: 'data from PM25.in',
sublink: 'http://www.pm25.in',
left: 'center',
textStyle: {
color: '#fff'
}
},
tooltip: {
trigger: 'item'
},
legend: {
orient: 'vertical',
y: 'top',
x: 'right',
data: ['pm2.5'],
textStyle: {
color: '#fff'
}
},
series: [
{
name: 'pm2.5',
type: 'scatter',
data: convertData(data),
symbolSize: function (val) {
return val[2] / 10;
},
label: {
normal: {
formatter: '{b}',
position: 'right',
show: false
},
emphasis: {
show: true
}
},
itemStyle: {
normal: {
color: '#ddb926'
}
}
},
{
name: 'Top 5',
type: 'effectScatter',
data: convertData(data.sort(function (a, b) {
return b.value - a.value;
}).slice(0, 6)),
symbolSize: function (val) {
return val[2] / 10;
},
showEffectOn: 'render',
rippleEffect: {
brushType: 'stroke'
},
hoverAnimation: true,
label: {
normal: {
formatter: '{b}',
position: 'right',
show: true
}
},
itemStyle: {
normal: {
color: '#f4e925',
shadowBlur: 10,
shadowColor: '#333'
}
},
zlevel: 1
}]
};
var echartslayer = new ol3Echarts(option);
echartslayer.appendTo(Maps.getMap());
}
}
</script>
</body>
</html>
+

尝试编辑它

-

从1.2.0升级到1.3.0

+

从1.2.0升级到1.3.0

因为在重构时项目架构全部推翻重来,所以大部分使用方式做了一些调整

@@ -32,34 +32,34 @@

  • 新增了四个参数,详见 api, 可增强用户体验,减少卡顿。
  • 修复了 echarts-gl 兼容问题,相关示例正在添加。
  • -

    新增 ol package 的兼容类库。

    -

    升级到2.0+

    +

    新增 ol package 的兼容类库。

    +

    升级到2.0+

    好吧,2.0版本又修改了一些参数,主要是新增一些配置项,移除了自定义容器target的配置, 默认只允许添加到ol-overlaycontainerol-overlaycontainer-stopevent容器, 这样能保证了事件的正确捕获。同样针对 openlayers5+出现的事件捕获异常添加了一个polyfill, 可以通过配置项polyfillEvents 进行开启,如果没有碰到此问题可以忽略此参数。 并且修复了多地图容器时自定义坐标系不起作用的问题,另外较大的改变是支持了typescript。其他相关配置项的改变详见 API 文档。

    -

    如何使用

    +

    如何使用

    注意:现有echarts扩展是独立于openlayers图层的

    -

    初始化echarts图层并添加到地图

    -
    var option = {} // echarts标准配置
    var echartslayer = new ol3Echarts(null, {
    hideOnMoving: true,
    hideOnZooming: true
    });
    echartslayer.appendTo(map);
    -

    注意 1

    +

    初始化echarts图层并添加到地图

    +
    var option = {} // echarts标准配置
    var echartslayer = new ol3Echarts(null, {
    hideOnMoving: true,
    hideOnZooming: true
    });
    echartslayer.appendTo(map);
    +

    注意 1

    创建 echartslayer 对象必须要在地图初始化完成开始渲染后,即存在 ol.Map 实例

    -
    Maps.map instanceof ol.Map // true
    +
    Maps.map instanceof ol.Map // true

    2.0.5版本开始不强制判断 map instanceof ol.Map,可以在 appendTo 指定第二个参数忽略判断,以兼容可能基于 ol 二次封装的类库

    -
    echartslayer.appendTo(map, true);
    -

    注意 3

    +
    echartslayer.appendTo(map, true);
    +

    注意 3

    配置

    -
    params = {
    source: '',
    destination: '',
    forcedRerender: false,
    forcedPrecomposeRerender: true,
    hideOnZooming: false, // when zooming hide chart
    hideOnMoving: false, // when moving hide chart
    hideOnRotating: false, // // when Rotating hide chart
    convertTypes: [], // 支持非地理空间坐标的图表类型,不需要配置
    insertFirst: true, // https://openlayers.org/en/latest/apidoc/module-ol_Overlay-Overlay.html
    stopEvent: false, // https://openlayers.org/en/latest/apidoc/module-ol_Overlay-Overlay.html
    polyfillEvents: false, // 代理echrats图层的 mousedown mouseup click 事件
    }
    +
    params = {
    source: '',
    destination: '',
    forcedRerender: false,
    forcedPrecomposeRerender: true,
    hideOnZooming: false, // when zooming hide chart
    hideOnMoving: false, // when moving hide chart
    hideOnRotating: false, // // when Rotating hide chart
    convertTypes: [], // 支持非地理空间坐标的图表类型,不需要配置
    insertFirst: true, // https://openlayers.org/en/latest/apidoc/module-ol_Overlay-Overlay.html
    stopEvent: false, // https://openlayers.org/en/latest/apidoc/module-ol_Overlay-Overlay.html
    polyfillEvents: false, // 代理echrats图层的 mousedown mouseup click 事件
    }

    配置项说明

    配置项简介类型备注
    source数据源投影String投影系 code 常用 EPSG:4326, EPSG:3857
    destination数据目标投影String渲染数据的目标投影,不传时从地图视图获取
    forcedRerender是否开启强制重新渲染boolean默认 false, 注意开启后可能会造成性能损失,建议不开启。
    forcedPrecomposeRerender是否在地图渲染之前刷新echarts图层boolean默认 false, 注意开启后可以保证图层无滞后,但是会造成大量重绘,不建议开启。
    hideOnZooming缩放时是否隐藏boolean默认 false, 注意开启后会提升性能和用户体验
    hideOnMoving拖动时是否隐藏boolean默认 false, 注意开启后会提升性能和用户体验
    hideOnRotating旋转时是否隐藏boolean默认 false, 注意开启后会提升性能和用户体验
    insertFirst是否插入到前方boolean默认 false, 详细内容请查看https://openlayers.org/en/latest/apidoc/module-ol_Overlay-Overlay.html
    stopEvent是否阻止事件传递到地图上boolean默认 false, 详细内容请查看 https://openlayers.org/en/latest/apidoc/module-ol_Overlay-Overlay.html
    polyfillEvents代理echrats图层的 mousedown mouseup click 事件boolean默认 false, 仅作为在事件捕获异常时配置开启
    -

    事件

    -
    echartslayer.on('redraw', function (event) {
    console.log(this, event)
    });
    +

    事件

    +
    echartslayer.on('redraw', function (event) {
    console.log(this, event)
    });

    支持的事件系统如下:

    -
    事件名简介类型备注
    loadecharts图层创建完成后厨房String此时echarts实例也已创建完毕,可以在此事件回调内添加echarts的事件监听
    redraw图层重新渲染事件String注意:因为耦合原因, 每次重绘事件可能不只触发一次
    change:size地图大小变化事件String--
    zoomend地图缩放结束事件String--
    change:rotation地图旋转角度变化事件String--
    movestart地图拖拽开始事件String--
    moveend地图拖拽结束事件String--
    change:center地图中心点变化事件String--
    +
    事件名简介类型备注
    loadecharts图层创建完成后厨房String此时echarts实例也已创建完毕,可以在此事件回调内添加echarts的事件监听
    redraw图层重新渲染事件String注意:因为耦合原因, 每次重绘事件可能不只触发一次
    change:size地图大小变化事件String--
    zoomend地图缩放结束事件String--
    change:rotation地图旋转角度变化事件String--
    movestart地图拖拽开始事件String--
    moveend地图拖拽结束事件String--
    change:center地图中心点变化事件String--
    \ No newline at end of file diff --git a/docs/typedoc/ol-echarts/classes/default/index.html b/docs/typedoc/ol-echarts/classes/default/index.html index 8a005b9..d7a69a6 100644 --- a/docs/typedoc/ol-echarts/classes/default/index.html +++ b/docs/typedoc/ol-echarts/classes/default/index.html @@ -3,362 +3,362 @@ -Class: default | ol-echarts Documentation - - +Class: default | ol-echarts Documentation + + -

    Class: default

    -

    Extends

    +

    Class: default

    +

    Extends

    • BaseObject
    -

    Constructors

    -

    new default()

    -
    new default(
    chartOptions?,
    options?,
    map?): default
    -

    Parameters

    +

    Constructors

    +

    new default()

    +
    new default(
    chartOptions?,
    options?,
    map?): default
    +

    Parameters

    ParameterType
    chartOptions?NoDef<Nullable<object>>
    options?NoDef<Nullable<OptionsTypes>>
    map?any
    -

    Returns

    +

    Returns

    default

    -

    Overrides

    +

    Overrides

    obj.constructor

    -

    Defined in

    +

    Defined in

    index.ts:88

    -

    Properties

    -

    formatGeoJSON()

    -
    static formatGeoJSON: (json) => object;
    +

    Properties

    +

    formatGeoJSON()

    +
    static formatGeoJSON: (json) => object;

    decode geoJson

    -

    Parameters

    +

    Parameters

    ParameterTypeDescription
    jsonany
    -

    Returns

    +

    Returns

    object

    -
    type
    -
    type: string = 'FeatureCollection';
    -
    crs
    -
    crs: object = {};
    -
    features
    -
    features: any = _features;
    -

    Defined in

    +
    type
    +
    type: string = 'FeatureCollection';
    +
    crs
    +
    crs: object = {};
    +
    features
    +
    features: any = _features;
    +

    Defined in

    index.ts:50


    -

    bind()

    -
    static bind: (func, context, ...args) => Function;
    +

    bind()

    +
    static bind: (func, context, ...args) => Function;

    For a given function, creates a bound function that has the same body as the original function. The this object of the bound function is associated with the specified object, and has the specified initial parameters.

    bind context

    -

    Parameters

    +

    Parameters

    ParameterTypeDescription
    funcFunction
    contextany
    ...argsany[]
    -

    Returns

    +

    Returns

    Function

    -

    Param

    +

    Param

    An object to which the this keyword can refer inside the new function.

    -

    Param

    +

    Param

    A list of arguments to be passed to the new function.

    -

    Defined in

    +

    Defined in

    index.ts:52


    -

    merge()

    -
    static merge: (a, b) => any;
    +

    merge()

    +
    static merge: (a, b) => any;

    merge

    -

    Parameters

    +

    Parameters

    ParameterTypeDescription
    aany
    bany
    -

    Returns

    +

    Returns

    any

    -

    Defined in

    +

    Defined in

    index.ts:54


    -

    uuid()

    -
    static uuid: () => string;
    -

    Returns

    +

    uuid()

    +
    static uuid: () => string;
    +

    Returns

    string

    -

    Defined in

    +

    Defined in

    index.ts:56


    -

    bindAll()

    -
    static bindAll: (fns, context) => void;
    +

    bindAll()

    +
    static bindAll: (fns, context) => void;

    bind function array

    -

    Parameters

    +

    Parameters

    ParameterTypeDescription
    fnsstring[] | number[]
    contextany
    -

    Returns

    +

    Returns

    void

    -

    Defined in

    +

    Defined in

    index.ts:58


    -

    arrayAdd()

    -
    static arrayAdd: (array, item) => any[];
    +

    arrayAdd()

    +
    static arrayAdd: (array, item) => any[];

    add own item

    -

    Parameters

    +

    Parameters

    ParameterTypeDescription
    arrayany[]
    itemany
    -

    Returns

    +

    Returns

    any[]

    -

    Defined in

    +

    Defined in

    index.ts:60


    -

    removeNode()

    -
    static removeNode: (node) => null | HTMLElement;
    +

    removeNode()

    +
    static removeNode: (node) => null | HTMLElement;

    remove node

    -

    Parameters

    +

    Parameters

    ParameterTypeDescription
    nodeHTMLElement
    -

    Returns

    +

    Returns

    null | HTMLElement

    -

    Defined in

    +

    Defined in

    index.ts:62


    -

    isObject()

    -
    static isObject: (value) => boolean;
    +

    isObject()

    +
    static isObject: (value) => boolean;

    判断是否为对象

    -

    Parameters

    +

    Parameters

    ParameterTypeDescription
    valueany
    -

    Returns

    +

    Returns

    boolean

    -

    Defined in

    +

    Defined in

    index.ts:64


    -

    $chart

    -
    $chart: any;
    -

    Defined in

    +

    $chart

    +
    $chart: any;
    +

    Defined in

    index.ts:82


    -

    $container

    -
    $container: NoDef<HTMLElement>;
    -

    Defined in

    +

    $container

    +
    $container: NoDef<HTMLElement>;
    +

    Defined in

    index.ts:84


    -

    _map

    -
    _map: any;
    -

    Defined in

    +

    _map

    +
    _map: any;
    +

    Defined in

    index.ts:86

    -

    Methods

    -

    appendTo()

    -
    appendTo(map, forceIgnore): void
    +

    Methods

    +

    appendTo()

    +
    appendTo(map, forceIgnore): void

    append layer to map

    -

    Parameters

    +

    Parameters

    ParameterTypeDefault valueDescription
    mapanyundefined
    forceIgnorebooleanfalse
    -

    Returns

    +

    Returns

    void

    -

    Defined in

    +

    Defined in

    index.ts:174


    -

    getMap()

    -
    getMap(): Map
    +

    getMap()

    +
    getMap(): Map

    get ol map

    -

    Returns

    +

    Returns

    Map

    -

    Defined in

    +

    Defined in

    index.ts:182


    -

    setMap()

    -
    setMap(map, forceIgnore): void
    +

    setMap()

    +
    setMap(map, forceIgnore): void

    set map

    -

    Parameters

    +

    Parameters

    ParameterTypeDefault valueDescription
    mapanyundefined
    forceIgnorebooleanfalse是否忽略instanceof检查
    -

    Returns

    +

    Returns

    void

    -

    Defined in

    +

    Defined in

    index.ts:191


    -

    getChartOptions()

    -
    getChartOptions(): undefined | null | object
    +

    getChartOptions()

    +
    getChartOptions(): undefined | null | object

    get echarts options

    -

    Returns

    +

    Returns

    undefined | null | object

    -

    Defined in

    +

    Defined in

    index.ts:206


    -

    setChartOptions()

    -
    setChartOptions(options): default
    +

    setChartOptions()

    +
    setChartOptions(options): default

    set echarts options and redraw

    -

    Parameters

    +

    Parameters

    ParameterTypeDescription
    optionsobject
    -

    Returns

    +

    Returns

    default

    -

    Defined in

    +

    Defined in

    index.ts:215


    -

    appendData()

    -
    appendData(data, save): default
    +

    appendData()

    +
    appendData(data, save): default

    append data

    -

    Parameters

    +

    Parameters

    ParameterTypeDefault valueDescription
    dataanyundefined
    saveundefined | null | booleantrue
    -

    Returns

    +

    Returns

    default

    -

    Defined in

    +

    Defined in

    index.ts:228


    -

    clear()

    -
    clear(keep?): void
    +

    clear()

    +
    clear(keep?): void

    clear layer

    -

    Parameters

    +

    Parameters

    ParameterType
    keep?boolean
    -

    Returns

    +

    Returns

    void

    -

    Defined in

    +

    Defined in

    index.ts:249


    -

    remove()

    -
    remove(): void
    +

    remove()

    +
    remove(): void

    remove layer

    -

    Returns

    +

    Returns

    void

    -

    Defined in

    +

    Defined in

    index.ts:261


    -

    show()

    -
    show(): void
    +

    show()

    +
    show(): void

    show layer

    -

    Returns

    +

    Returns

    void

    -

    Defined in

    +

    Defined in

    index.ts:278


    -

    hide()

    -
    hide(): void
    +

    hide()

    +
    hide(): void

    hide layer

    -

    Returns

    +

    Returns

    void

    -

    Defined in

    +

    Defined in

    index.ts:292


    -

    isVisible()

    -
    isVisible(): undefined | boolean
    +

    isVisible()

    +
    isVisible(): undefined | boolean

    check layer is visible

    -

    Returns

    +

    Returns

    undefined | boolean

    -

    Defined in

    +

    Defined in

    index.ts:306


    -

    showLoading()

    -
    showLoading(): void
    +

    showLoading()

    +
    showLoading(): void

    show loading bar

    -

    Returns

    +

    Returns

    void

    -

    Defined in

    +

    Defined in

    index.ts:313


    -

    hideLoading()

    -
    hideLoading(): void
    +

    hideLoading()

    +
    hideLoading(): void

    hide loading bar

    -

    Returns

    +

    Returns

    void

    -

    Defined in

    +

    Defined in

    index.ts:322


    -

    setZIndex()

    -
    setZIndex(zIndex): void
    +

    setZIndex()

    +
    setZIndex(zIndex): void

    set zindex

    -

    Parameters

    +

    Parameters

    ParameterTypeDescription
    zIndexstring | number
    -

    Returns

    +

    Returns

    void

    -

    Defined in

    +

    Defined in

    index.ts:332


    -

    getZIndex()

    -
    getZIndex(): undefined | string
    +

    getZIndex()

    +
    getZIndex(): undefined | string

    get zindex

    -

    Returns

    +

    Returns

    undefined | string

    -

    Defined in

    +

    Defined in

    index.ts:344


    -

    setVisible()

    -
    setVisible(visible): void
    +

    setVisible()

    +
    setVisible(visible): void

    set visible from: https://github.com/sakitam-fdd/ol3Echarts/blob/3929ad72f562661ba3511d4d9e360dee5ac793c2/ packages/ol-echarts/src/index.js author: https://github.com/ChenGuanglin0924

    -

    Parameters

    +

    Parameters

    ParameterTypeDescription
    visibleboolean
    -

    Returns

    +

    Returns

    void

    -

    Defined in

    +

    Defined in

    index.ts:355


    -

    render()

    -
    render(): void
    +

    render()

    +
    render(): void

    render

    -

    Returns

    +

    Returns

    void

    -

    Defined in

    +

    Defined in

    index.ts:375


    -

    redraw()

    -
    redraw(): void
    +

    redraw()

    +
    redraw(): void

    redraw echarts layer

    -

    Returns

    +

    Returns

    void

    -

    Defined in

    +

    Defined in

    index.ts:396


    -

    updateViewSize()

    -
    updateViewSize(size?): void
    +

    updateViewSize()

    +
    updateViewSize(size?): void

    update container size

    -

    Parameters

    +

    Parameters

    ParameterTypeDescription
    size?number[]
    -

    Returns

    +

    Returns

    void

    -

    Defined in

    +

    Defined in

    index.ts:404


    -

    dispatchEvent()

    -
    dispatchEvent(event): undefined | boolean
    +

    dispatchEvent()

    +
    dispatchEvent(event): undefined | boolean

    dispatch event

    -

    Parameters

    +

    Parameters

    ParameterTypeDescription
    eventstring | object | BaseEvent
    -

    Returns

    +

    Returns

    undefined | boolean

    -

    Overrides

    +

    Overrides

    obj.dispatchEvent

    -

    Defined in

    +

    Defined in

    index.ts:988


    -

    set()

    -
    set(
    key,
    value,
    optSilent?): void
    +

    set()

    +
    set(
    key,
    value,
    optSilent?): void

    Sets a value.

    -

    Parameters

    +

    Parameters

    ParameterTypeDescription
    keystringKey name.
    valueanyValue.
    optSilent?boolean-
    -

    Returns

    +

    Returns

    void

    -

    Api

    -

    Overrides

    +

    Api

    +

    Overrides

    obj.set

    -

    Defined in

    +

    Defined in

    index.ts:992


    -

    get()

    -
    get(key): any
    +

    get()

    +
    get(key): any

    Gets a value.

    -

    Parameters

    +

    Parameters

    ParameterTypeDescription
    keystringKey name.
    -

    Returns

    +

    Returns

    any

    Value.

    -

    Api

    -

    Overrides

    +

    Api

    +

    Overrides

    obj.get

    -

    Defined in

    +

    Defined in

    index.ts:996


    -

    on()

    -
    on(type, listener): EventsKey
    -

    Parameters

    +

    on()

    +
    on(type, listener): EventsKey
    +

    Parameters

    ParameterType
    typeany
    listener(p0) => void
    -

    Returns

    +

    Returns

    EventsKey

    -

    Overrides

    +

    Overrides

    obj.on

    -

    Defined in

    +

    Defined in

    index.ts:1001


    -

    un()

    -
    un(type, listener): void
    -

    Parameters

    +

    un()

    +
    un(type, listener): void
    +

    Parameters

    ParameterType
    typeany
    listener(p0) => void
    -

    Returns

    +

    Returns

    void

    -

    Overrides

    +

    Overrides

    obj.un

    -

    Defined in

    -

    index.ts:1007

    +

    Defined in

    +

    index.ts:1007

    \ No newline at end of file diff --git a/docs/typedoc/ol-echarts/index.html b/docs/typedoc/ol-echarts/index.html index 75faa73..3ee89b2 100644 --- a/docs/typedoc/ol-echarts/index.html +++ b/docs/typedoc/ol-echarts/index.html @@ -3,15 +3,15 @@ -ol-echarts v4.0.1 | ol-echarts Documentation - - +ol-echarts v4.0.1 | ol-echarts Documentation + + -

    ol-echarts v4.0.1

    -

    Classes

    + +
    \ No newline at end of file diff --git a/docs/typedoc/ol3-echarts/classes/default/index.html b/docs/typedoc/ol3-echarts/classes/default/index.html index 33f6201..b0c78b5 100644 --- a/docs/typedoc/ol3-echarts/classes/default/index.html +++ b/docs/typedoc/ol3-echarts/classes/default/index.html @@ -3,387 +3,387 @@ -Class: default | ol-echarts Documentation - - +Class: default | ol-echarts Documentation + + -

    Class: default

    -

    Extends

    +

    Class: default

    +

    Extends

    • obj
    -

    Constructors

    -

    new default()

    -
    new default(
    chartOptions?,
    options?,
    map?): default
    -

    Parameters

    +

    Constructors

    +

    new default()

    +
    new default(
    chartOptions?,
    options?,
    map?): default
    +

    Parameters

    ParameterType
    chartOptions?NoDef<Nullable<object>>
    options?NoDef<Nullable<OptionsTypes>>
    map?any
    -

    Returns

    +

    Returns

    default

    -

    Overrides

    +

    Overrides

    obj.constructor

    -

    Defined in

    +

    Defined in

    index.ts:113

    -

    Properties

    -

    formatGeoJSON()

    -
    static formatGeoJSON: (json) => object;
    +

    Properties

    +

    formatGeoJSON()

    +
    static formatGeoJSON: (json) => object;

    decode geoJson

    -

    Parameters

    +

    Parameters

    ParameterTypeDescription
    jsonany
    -

    Returns

    +

    Returns

    object

    -
    type
    -
    type: string = 'FeatureCollection';
    -
    crs
    -
    crs: object = {};
    -
    features
    -
    features: any = _features;
    -

    Defined in

    +
    type
    +
    type: string = 'FeatureCollection';
    +
    crs
    +
    crs: object = {};
    +
    features
    +
    features: any = _features;
    +

    Defined in

    index.ts:75


    -

    bind()

    -
    static bind: (func, context, ...args) => Function;
    +

    bind()

    +
    static bind: (func, context, ...args) => Function;

    For a given function, creates a bound function that has the same body as the original function. The this object of the bound function is associated with the specified object, and has the specified initial parameters.

    bind context

    -

    Parameters

    +

    Parameters

    ParameterTypeDescription
    funcFunction
    contextany
    ...argsany[]
    -

    Returns

    +

    Returns

    Function

    -

    Param

    +

    Param

    An object to which the this keyword can refer inside the new function.

    -

    Param

    +

    Param

    A list of arguments to be passed to the new function.

    -

    Defined in

    +

    Defined in

    index.ts:77


    -

    merge()

    -
    static merge: (a, b) => any;
    +

    merge()

    +
    static merge: (a, b) => any;

    merge

    -

    Parameters

    +

    Parameters

    ParameterTypeDescription
    aany
    bany
    -

    Returns

    +

    Returns

    any

    -

    Defined in

    +

    Defined in

    index.ts:79


    -

    uuid()

    -
    static uuid: () => string;
    -

    Returns

    +

    uuid()

    +
    static uuid: () => string;
    +

    Returns

    string

    -

    Defined in

    +

    Defined in

    index.ts:81


    -

    bindAll()

    -
    static bindAll: (fns, context) => void;
    +

    bindAll()

    +
    static bindAll: (fns, context) => void;

    bind function array

    -

    Parameters

    +

    Parameters

    ParameterTypeDescription
    fnsstring[] | number[]
    contextany
    -

    Returns

    +

    Returns

    void

    -

    Defined in

    +

    Defined in

    index.ts:83


    -

    arrayAdd()

    -
    static arrayAdd: (array, item) => any[];
    +

    arrayAdd()

    +
    static arrayAdd: (array, item) => any[];

    add own item

    -

    Parameters

    +

    Parameters

    ParameterTypeDescription
    arrayany[]
    itemany
    -

    Returns

    +

    Returns

    any[]

    -

    Defined in

    +

    Defined in

    index.ts:85


    -

    removeNode()

    -
    static removeNode: (node) => null | HTMLElement;
    +

    removeNode()

    +
    static removeNode: (node) => null | HTMLElement;

    remove node

    -

    Parameters

    +

    Parameters

    ParameterTypeDescription
    nodeHTMLElement
    -

    Returns

    +

    Returns

    null | HTMLElement

    -

    Defined in

    +

    Defined in

    index.ts:87


    -

    isObject()

    -
    static isObject: (value) => boolean;
    +

    isObject()

    +
    static isObject: (value) => boolean;

    判断是否为对象

    -

    Parameters

    +

    Parameters

    ParameterTypeDescription
    valueany
    -

    Returns

    +

    Returns

    boolean

    -

    Defined in

    +

    Defined in

    index.ts:89


    -

    $chart

    -
    $chart: any;
    -

    Defined in

    +

    $chart

    +
    $chart: any;
    +

    Defined in

    index.ts:107


    -

    $container

    -
    $container: NoDef<HTMLElement>;
    -

    Defined in

    +

    $container

    +
    $container: NoDef<HTMLElement>;
    +

    Defined in

    index.ts:109


    -

    _map

    -
    _map: any;
    -

    Defined in

    +

    _map

    +
    _map: any;
    +

    Defined in

    index.ts:111

    -

    Methods

    -

    appendTo()

    -
    appendTo(map, forceIgnore): void
    +

    Methods

    +

    appendTo()

    +
    appendTo(map, forceIgnore): void

    append layer to map

    -

    Parameters

    +

    Parameters

    ParameterTypeDefault valueDescription
    mapanyundefined
    forceIgnorebooleanfalse
    -

    Returns

    +

    Returns

    void

    -

    Defined in

    +

    Defined in

    index.ts:199


    -

    getMap()

    -
    getMap(): any
    +

    getMap()

    +
    getMap(): any

    get ol map

    -

    Returns

    +

    Returns

    any

    -

    Defined in

    +

    Defined in

    index.ts:207


    -

    setMap()

    -
    setMap(map, forceIgnore): void
    +

    setMap()

    +
    setMap(map, forceIgnore): void

    set map

    -

    Parameters

    +

    Parameters

    ParameterTypeDefault valueDescription
    mapanyundefined
    forceIgnorebooleanfalse是否忽略instanceof检查
    -

    Returns

    +

    Returns

    void

    -

    Defined in

    +

    Defined in

    index.ts:216


    -

    getChartOptions()

    -
    getChartOptions(): undefined | null | object
    +

    getChartOptions()

    +
    getChartOptions(): undefined | null | object

    get echarts options

    -

    Returns

    +

    Returns

    undefined | null | object

    -

    Defined in

    +

    Defined in

    index.ts:231


    -

    setChartOptions()

    -
    setChartOptions(options): default
    +

    setChartOptions()

    +
    setChartOptions(options): default

    set echarts options and redraw

    -

    Parameters

    +

    Parameters

    ParameterTypeDescription
    optionsobject
    -

    Returns

    +

    Returns

    default

    -

    Defined in

    +

    Defined in

    index.ts:240


    -

    appendData()

    -
    appendData(data, save): default
    +

    appendData()

    +
    appendData(data, save): default

    append data

    -

    Parameters

    +

    Parameters

    ParameterTypeDefault valueDescription
    dataanyundefined
    saveundefined | null | booleantrue
    -

    Returns

    +

    Returns

    default

    -

    Defined in

    +

    Defined in

    index.ts:253


    -

    clear()

    -
    clear(keep?): void
    +

    clear()

    +
    clear(keep?): void

    clear layer

    -

    Parameters

    +

    Parameters

    ParameterType
    keep?boolean
    -

    Returns

    +

    Returns

    void

    -

    Defined in

    +

    Defined in

    index.ts:274


    -

    remove()

    -
    remove(): void
    +

    remove()

    +
    remove(): void

    remove layer

    -

    Returns

    +

    Returns

    void

    -

    Defined in

    +

    Defined in

    index.ts:286


    -

    show()

    -
    show(): void
    +

    show()

    +
    show(): void

    show layer

    -

    Returns

    +

    Returns

    void

    -

    Defined in

    +

    Defined in

    index.ts:303


    -

    hide()

    -
    hide(): void
    +

    hide()

    +
    hide(): void

    hide layer

    -

    Returns

    +

    Returns

    void

    -

    Defined in

    +

    Defined in

    index.ts:317


    -

    isVisible()

    -
    isVisible(): undefined | boolean
    +

    isVisible()

    +
    isVisible(): undefined | boolean

    check layer is visible

    -

    Returns

    +

    Returns

    undefined | boolean

    -

    Defined in

    +

    Defined in

    index.ts:331


    -

    showLoading()

    -
    showLoading(): void
    +

    showLoading()

    +
    showLoading(): void

    show loading bar

    -

    Returns

    +

    Returns

    void

    -

    Defined in

    +

    Defined in

    index.ts:338


    -

    hideLoading()

    -
    hideLoading(): void
    +

    hideLoading()

    +
    hideLoading(): void

    hide loading bar

    -

    Returns

    +

    Returns

    void

    -

    Defined in

    +

    Defined in

    index.ts:347


    -

    setZIndex()

    -
    setZIndex(zIndex): void
    +

    setZIndex()

    +
    setZIndex(zIndex): void

    set zindex

    -

    Parameters

    +

    Parameters

    ParameterTypeDescription
    zIndexstring | number
    -

    Returns

    +

    Returns

    void

    -

    Defined in

    +

    Defined in

    index.ts:357


    -

    getZIndex()

    -
    getZIndex(): undefined | string
    +

    getZIndex()

    +
    getZIndex(): undefined | string

    get zindex

    -

    Returns

    +

    Returns

    undefined | string

    -

    Defined in

    +

    Defined in

    index.ts:369


    -

    setVisible()

    -
    setVisible(visible): void
    +

    setVisible()

    +
    setVisible(visible): void

    set visible from: https://github.com/sakitam-fdd/ol3Echarts/blob/3929ad72f562661ba3511d4d9e360dee5ac793c2/ packages/ol-echarts/src/index.js author: https://github.com/ChenGuanglin0924

    -

    Parameters

    +

    Parameters

    ParameterTypeDescription
    visibleboolean
    -

    Returns

    +

    Returns

    void

    -

    Defined in

    +

    Defined in

    index.ts:380


    -

    render()

    -
    render(): void
    +

    render()

    +
    render(): void

    render

    -

    Returns

    +

    Returns

    void

    -

    Defined in

    +

    Defined in

    index.ts:400


    -

    redraw()

    -
    redraw(): void
    +

    redraw()

    +
    redraw(): void

    redraw echarts layer

    -

    Returns

    +

    Returns

    void

    -

    Defined in

    +

    Defined in

    index.ts:421


    -

    updateViewSize()

    -
    updateViewSize(size): void
    +

    updateViewSize()

    +
    updateViewSize(size): void

    update container size

    -

    Parameters

    +

    Parameters

    ParameterTypeDescription
    sizenumber[]
    -

    Returns

    +

    Returns

    void

    -

    Defined in

    +

    Defined in

    index.ts:429


    -

    dispatchEvent()

    -
    dispatchEvent(event): void
    +

    dispatchEvent()

    +
    dispatchEvent(event): void

    dispatch event

    -

    Parameters

    +

    Parameters

    ParameterTypeDescription
    eventstring | GlobalObject | Event
    -

    Returns

    +

    Returns

    void

    -

    Overrides

    +

    Overrides

    obj.dispatchEvent

    -

    Defined in

    +

    Defined in

    index.ts:967


    -

    set()

    -
    set(
    key,
    value,
    optSilent?): void
    +

    set()

    +
    set(
    key,
    value,
    optSilent?): void

    Sets a value.

    -

    Parameters

    +

    Parameters

    ParameterTypeDescription
    keystringKey name.
    valueanyValue.
    optSilent?boolean-
    -

    Returns

    +

    Returns

    void

    -

    Api

    +

    Api

    stable

    -

    Overrides

    +

    Overrides

    obj.set

    -

    Defined in

    +

    Defined in

    index.ts:971


    -

    get()

    -
    get(key): any
    +

    get()

    +
    get(key): any

    Gets a value.

    -

    Parameters

    +

    Parameters

    ParameterTypeDescription
    keystringKey name.
    -

    Returns

    +

    Returns

    any

    Value.

    -

    Api

    +

    Api

    stable

    -

    Overrides

    +

    Overrides

    obj.get

    -

    Defined in

    +

    Defined in

    index.ts:975


    -

    unset()

    -
    unset(key, optSilent?): void
    +

    unset()

    +
    unset(key, optSilent?): void

    Unsets a property.

    -

    Parameters

    +

    Parameters

    ParameterTypeDescription
    keystringKey name.
    optSilent?boolean-
    -

    Returns

    +

    Returns

    void

    -

    Api

    +

    Api

    stable

    -

    Overrides

    +

    Overrides

    obj.unset

    -

    Defined in

    +

    Defined in

    index.ts:979


    -

    on()

    -
    on(
    type,
    listener,
    optThis?): GlobalObject | GlobalObject[]
    +

    on()

    +
    on(
    type,
    listener,
    optThis?): GlobalObject | GlobalObject[]

    Listen for a certain type of event.

    -

    Parameters

    +

    Parameters

    ParameterTypeDescription
    typestring | string[]The event type or array of event types.
    listenerEventsListenerFunctionTypeThe listener function.
    optThis?GlobalObject-
    -

    Returns

    +

    Returns

    GlobalObject | GlobalObject[]

    Unique key for the listener. If called with an array of event types as the first argument, the return will be an array of keys.

    -

    Api

    +

    Api

    stable

    -

    Overrides

    +

    Overrides

    obj.on

    -

    Defined in

    +

    Defined in

    index.ts:983


    -

    un()

    -
    un(
    type,
    listener,
    optThis?): void
    +

    un()

    +
    un(
    type,
    listener,
    optThis?): void

    Unlisten for a certain type of event.

    -

    Parameters

    +

    Parameters

    ParameterTypeDescription
    typestring | string[]The event type or array of event types.
    listenerEventsListenerFunctionTypeThe listener function.
    optThis?GlobalObject-
    -

    Returns

    +

    Returns

    void

    -

    Api

    +

    Api

    stable

    -

    Overrides

    +

    Overrides

    obj.un

    -

    Defined in

    -

    index.ts:987

    +

    Defined in

    +

    index.ts:987

    \ No newline at end of file diff --git a/docs/typedoc/ol3-echarts/index.html b/docs/typedoc/ol3-echarts/index.html index f23c705..b93bd87 100644 --- a/docs/typedoc/ol3-echarts/index.html +++ b/docs/typedoc/ol3-echarts/index.html @@ -3,15 +3,15 @@ -ol3-echarts v3.0.1 | ol-echarts Documentation - - +ol3-echarts v3.0.1 | ol-echarts Documentation + + -

    ol3-echarts v3.0.1

    -

    Classes

    + +
    \ No newline at end of file diff --git a/index.html b/index.html index f31e809..a761f53 100644 --- a/index.html +++ b/index.html @@ -3,11 +3,11 @@ -ol-echarts Documentation | ol-echarts Documentation - - +ol-echarts Documentation | ol-echarts Documentation + + -
    ol-echarts Documentation logo

    ol-echarts Documentation

    a openlayers extension to echarts

    Easy to use?

    I'm not sure whether it is easy to use. It comes from three.js. There are many similar designs, but it is more concise.

    High-performance?

    I'm not sure whether the performance is better. It's a toy, but I will try my best to optimize it.

    Flexible

    Easy to expand, I will try my best to ensure its scalability.

    +
    ol-echarts Documentation logo

    ol-echarts Documentation

    a openlayers extension to echarts

    Easy to use?

    I'm not sure whether it is easy to use. It comes from three.js. There are many similar designs, but it is more concise.

    High-performance?

    I'm not sure whether the performance is better. It's a toy, but I will try my best to optimize it.

    Flexible

    Easy to expand, I will try my best to ensure its scalability.

    \ No newline at end of file diff --git a/search/index.html b/search/index.html index 2ec4f52..b67b7e1 100644 --- a/search/index.html +++ b/search/index.html @@ -3,11 +3,11 @@ -在文档中搜索 | ol-echarts Documentation - - +在文档中搜索 | ol-echarts Documentation + + -

    在文档中搜索

    +

    在文档中搜索

    \ No newline at end of file