diff --git a/.gitignore b/.gitignore index a547bf3..d7d87a6 100644 --- a/.gitignore +++ b/.gitignore @@ -8,6 +8,7 @@ pnpm-debug.log* lerna-debug.log* node_modules +.yarn dist dist-ssr *.local diff --git a/.yarnrc.yaml b/.yarnrc.yaml new file mode 100644 index 0000000..8b757b2 --- /dev/null +++ b/.yarnrc.yaml @@ -0,0 +1 @@ +nodeLinker: node-modules \ No newline at end of file diff --git a/.yarnrc.yml b/.yarnrc.yml new file mode 100644 index 0000000..3186f3f --- /dev/null +++ b/.yarnrc.yml @@ -0,0 +1 @@ +nodeLinker: node-modules diff --git a/assets/scss/includes/components/_challenge.scss b/assets/scss/includes/components/_challenge.scss index 016fa66..4acbbfe 100644 --- a/assets/scss/includes/components/_challenge.scss +++ b/assets/scss/includes/components/_challenge.scss @@ -11,17 +11,28 @@ [data-bs-theme="light"] .challenge-button { border: none; - box-shadow: 0 0 15px var(--bs-secondary); + box-shadow: 3px 3px 3px var(--bs-secondary); &.challenge-solved { - background-color: #29c830; + background-color: #6e192a; &:hover { - background-color: #37d63e; + background-color: #962239; } } } +.challenge-tag { + background-color: #f22c54 !important; + font-size: 1rem; + color: #fff; + border-radius: 0; +} + +.challenge-submit { + border-radius: 0; +} + [data-bs-theme="dark"] .challenge-button { border: none; background-color: var(--bs-gray-dark); @@ -31,10 +42,28 @@ } &.challenge-solved { - background-color: #29c830; + background-color: #6e192a; &:hover { - background-color: #37d63e; + background-color: #962239; } } } + +.modal-content { + border-radius: 0; + background-color: #1e1e1e; + color: #aaa; +} + +.nav-tabs .nav-link { + border-radius: 0; +} + +.btn-close { + color: #aaa; +} + +.challenge-solves { + color: #aaa; +} \ No newline at end of file diff --git a/assets/scss/includes/components/_graphs.scss b/assets/scss/includes/components/_graphs.scss index 6192b75..c496519 100644 --- a/assets/scss/includes/components/_graphs.scss +++ b/assets/scss/includes/components/_graphs.scss @@ -19,3 +19,7 @@ min-height: 400px; display: block; } + +#score-graph > div > canvas, .challenge-charts{ + background-color: #fff; +} diff --git a/assets/scss/includes/components/_table.scss b/assets/scss/includes/components/_table.scss index 244ca8b..5a83f3a 100644 --- a/assets/scss/includes/components/_table.scss +++ b/assets/scss/includes/components/_table.scss @@ -20,3 +20,11 @@ .table > thead > th { white-space: nowrap; } + +.table tr { + color: #fff; +} + +.table-striped > tbody > tr:nth-of-type(2n+1) > * { + color: #fff; +} \ No newline at end of file diff --git a/assets/scss/includes/utils/_fonts.scss b/assets/scss/includes/utils/_fonts.scss index 6216b19..ec6bd43 100644 --- a/assets/scss/includes/utils/_fonts.scss +++ b/assets/scss/includes/utils/_fonts.scss @@ -1,5 +1,7 @@ @use "~/@fontsource/lato/scss/mixins" as Lato; @use "~/@fontsource/raleway/scss/mixins" as Raleway; +@use "~/@fontsource/unifont/scss/mixins" as Unifont; +@use "~/@fontsource/press-start-2p/scss/mixins" as PressStart2P; // Include both normal and bold weights @include Lato.fontFace($fontDir: "../webfonts", $weight: 400); @@ -7,6 +9,11 @@ @include Raleway.fontFace($fontDir: "../webfonts"); +@include Unifont.fontFaceCustom($woffPath: "/themes/thc-theme/static/webfonts/unifont-latin-400-normal.woff"); +@include Unifont.fontFaceCustom($woff2Path: "/themes/thc-theme/static/webfonts/unifont-latin-400-normal.woff2"); + +@include PressStart2P.fontFace($fontDir: "../webfonts"); + $fa-font-path: "../webfonts"; @import "~/@fortawesome/fontawesome-free/scss/fontawesome.scss"; @import "~/@fortawesome/fontawesome-free/scss/solid.scss"; @@ -15,9 +22,9 @@ $fa-font-path: "../webfonts"; html, body, .container { - font-family: "Lato", sans-serif; + font-family: "Unifont", "Lato", sans-serif; } .jumbotron .container { - font-family: "Raleway", sans-serif; + font-family: "Press Start 2P", "Raleway", sans-serif; } diff --git a/assets/scss/main.scss b/assets/scss/main.scss index a0d79e8..4bdb03d 100644 --- a/assets/scss/main.scss +++ b/assets/scss/main.scss @@ -17,6 +17,12 @@ @use "includes/icons/award-icons"; @use "includes/icons/flag-icons"; +body { + color: #c9c9c9; + background-color: #1f1f1f; + font-weight: 600; +} + h1, h2 { font-weight: 500; @@ -24,6 +30,7 @@ h2 { } a { + color: #fff; text-decoration: none !important; } @@ -53,3 +60,186 @@ select { background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 4 5'%3e%3cpath fill='%23343a40' d='M2 0L0 2h4zm0 5L0 3h4z'/%3e%3c/svg%3e"); background-size: 8px 10px; } + +.navbar-dark .navbar-nav .nav-link { + color: #fff; + text-transform: uppercase; +} + +.navbar-brand { + font-family: "Press Start 2P", cursive; +} + +// HMM + +.input-filled-valid { + background-color: transparent !important; + border-color: #a3d39c; + box-shadow: 0 0 0 0.1rem #a3d39c; + transition: + background-color 0.3s, + border-color 0.3s; +} + +.input-filled-invalid { + background-color: transparent !important; + border-color: #d46767; + box-shadow: 0 0 0 0.1rem #d46767; + transition: + background-color 0.3s, + border-color 0.3s; +} + +.form-control { + background: transparent; + border: 1px dashed #ced4da; + border-radius: 0; + padding: 0.8em !important; + color: #aaa; + /* Behavior changed in Bootstrap v4.1.3. See https://github.com/twbs/bootstrap/issues/27629 */ + height: auto !important; +} + +.form-control:focus { + background-color: transparent; + border-color: #a3d39c; + box-shadow: 0 0 0 0.1rem #a3d39c; + color: #fff; + transition: + background-color 0.3s, + border-color 0.3s; +} + +.btn-primary{ + background-color: #f22c54cb; + border-color: #f22c54cb; +} + +.btn-primary:hover { + background-color: #9e253f; + border-color: #9e253f; +} + +.btn-primary:focus { + box-shadow: 0 0 0 .25rem #701427cb; +} + +.nav-link { + color: #f22c54cb; +} + +.nav-link:hover, .nav-link:focus { + color: #fff; +} + +.nav-pills .nav-link.active { + background-color: #f22c54cb; + color: #fff; +} + +.scanlines { + position:fixed; + pointer-events: none; + width: auto; + min-width: 100%; + height:100%; + z-index: 5; + background: linear-gradient(rgba(18, 16, 16, 0) 50%, rgba(0, 0, 0, 0.08) 50%), linear-gradient(90deg, rgba(255, 0, 0, 0.06), rgba(0, 255, 0, 0.02), rgba(0, 0, 255, 0.06)); + background-size: 100% 2px, 3px 100%; +} + +.flicker { + pointer-events: none; + position: fixed; + width: auto; + min-width: 100%; + height:100%; + z-index:15; + background: rgba(9, 8, 8, 0.1); + animation: flicker 0.3301s infinite; +} + +@keyframes flicker { + 0% { + opacity: 0.119; + } + 5% { + opacity: 0.02841; + } + 10% { + opacity: 0.35748; + } + 15% { + opacity: 0.88852; + } + 20% { + opacity: 0.9408; + } + 25% { + opacity: 0.35088; + } + 30% { + opacity: 0.22426; + } + 35% { + opacity: 0.26418; + } + 40% { + opacity: 0.09249; + } + 45% { + opacity: 0.35312; + } + 50% { + opacity: 0.89436; + } + 55% { + opacity: 0.9574; + } + 60% { + opacity: 0.19754; + } + 65% { + opacity: 0.05086; + } + 70% { + opacity: 0.12137; + } + 75% { + opacity: 0.75791; + } + 80% { + opacity: 0.89617; + } + 85% { + opacity: 0.90183; + } + 90% { + opacity: 0.20657; + } + 95% { + opacity: 0.64125; + } + 100% { + opacity: 0.78042; + } +} + +.scanline { + position:fixed; + pointer-events: none; + top:0%; + width: auto; + min-width: 100%; + height: 2px; + z-index: 10; + background: rgba(0, 0, 0, .3); + opacity: 0.75; + animation: scanline 7.77s linear infinite; +} + +@keyframes scanline { + 0% { + top:99%; + } +} \ No newline at end of file diff --git a/package.json b/package.json index a4d1c6b..a619a15 100644 --- a/package.json +++ b/package.json @@ -12,7 +12,9 @@ "dependencies": { "@ctfdio/ctfd-js": "^0.0.14", "@fontsource/lato": "^4.5.3", + "@fontsource/press-start-2p": "^4.5.3", "@fontsource/raleway": "^4.5.3", + "@fontsource/unifont": "^4.5.3", "@fortawesome/fontawesome-free": "6.5.1", "@popperjs/core": "^2.11.4", "alpinejs": "^3.9.1", diff --git a/static/assets/challenges.bf350543.js b/static/assets/challenges.693d7fe7.js similarity index 98% rename from static/assets/challenges.bf350543.js rename to static/assets/challenges.693d7fe7.js index 0044157..e2209d5 100644 --- a/static/assets/challenges.bf350543.js +++ b/static/assets/challenges.693d7fe7.js @@ -1 +1 @@ -import{m as l,C as s,h as r,T as h,d as g,M as c,a as u}from"./index.8a9f494f.js";function o(e){let a=new DOMParser().parseFromString(e,"text/html");return a.querySelectorAll('a[href*="://"]').forEach(i=>{i.setAttribute("target","_blank")}),a.documentElement.outerHTML}window.Alpine=l;l.store("challenge",{data:{view:""}});l.data("Hint",()=>({id:null,html:null,async showHint(e){if(e.target.open){let a=(await s.pages.challenge.loadHint(this.id)).data;if(a.content)this.html=o(a.html);else if(await s.pages.challenge.displayUnlock(this.id)){let i=await s.pages.challenge.loadUnlock(this.id);if(i.success){let d=(await s.pages.challenge.loadHint(this.id)).data;this.html=o(d.html)}else e.target.open=!1,s._functions.challenge.displayUnlockError(i)}else e.target.open=!1}}}));l.data("Challenge",()=>({id:null,next_id:null,submission:"",tab:null,solves:[],response:null,share_url:null,max_attempts:0,attempts:0,async init(){r()},getStyles(){let e={"modal-dialog":!0};try{switch(s.config.themeSettings.challenge_window_size){case"sm":e["modal-sm"]=!0;break;case"lg":e["modal-lg"]=!0;break;case"xl":e["modal-xl"]=!0;break;default:break}}catch(t){console.log("Error processing challenge_window_size"),console.log(t)}return e},async init(){r()},async showChallenge(){new h(this.$el).show()},async showSolves(){this.solves=await s.pages.challenge.loadSolves(this.id),this.solves.forEach(e=>(e.date=g(e.date).format("MMMM Do, h:mm:ss A"),e)),new h(this.$el).show()},getNextId(){return l.store("challenge").data.next_id},async nextChallenge(){let e=c.getOrCreateInstance("[x-ref='challengeWindow']");e._element.addEventListener("hidden.bs.modal",t=>{l.nextTick(()=>{this.$dispatch("load-challenge",this.getNextId())})},{once:!0}),e.hide()},async getShareUrl(){let e={type:"solve",challenge_id:this.id};const n=(await(await s.fetch("/api/v1/shares",{method:"POST",body:JSON.stringify(e)})).json()).data.url;this.share_url=n},copyShareUrl(){navigator.clipboard.writeText(this.share_url);let e=u.getOrCreateInstance(this.$el);e.enable(),e.show(),setTimeout(()=>{e.hide(),e.disable()},2e3)},async submitChallenge(){this.response=await s.pages.challenge.submitChallenge(this.id,this.submission),await this.renderSubmissionResponse()},async renderSubmissionResponse(){this.response.data.status==="correct"&&(this.submission=""),this.max_attempts>0&&this.response.data.status!="already_solved"&&(this.attempts+=1),this.$dispatch("load-challenges")}}));l.data("ChallengeBoard",()=>({loaded:!1,challenges:[],challenge:null,async init(){if(this.challenges=await s.pages.challenges.getChallenges(),this.loaded=!0,window.location.hash){let e=decodeURIComponent(window.location.hash.substring(1)),t=e.lastIndexOf("-");if(t>=0){let n=[e.slice(0,t),e.slice(t+1)][1];await this.loadChallenge(n)}}},getCategories(){const e=[];this.challenges.forEach(t=>{const{category:a}=t;e.includes(a)||e.push(a)});try{const t=s.config.themeSettings.challenge_category_order;if(t){const a=new Function(`return (${t})`);e.sort(a())}}catch(t){console.log("Error running challenge_category_order function"),console.log(t)}return e},getChallenges(e){let t=this.challenges;e!==null&&(t=this.challenges.filter(a=>a.category===e));try{const a=s.config.themeSettings.challenge_order;if(a){const n=new Function(`return (${a})`);t.sort(n())}}catch(a){console.log("Error running challenge_order function"),console.log(a)}return t},async loadChallenges(){this.challenges=await s.pages.challenges.getChallenges()},async loadChallenge(e){await s.pages.challenge.displayChallenge(e,t=>{t.data.view=o(t.data.view),l.store("challenge").data=t.data,l.nextTick(()=>{let a=c.getOrCreateInstance("[x-ref='challengeWindow']");a._element.addEventListener("hidden.bs.modal",n=>{history.replaceState(null,null," ")},{once:!0}),a.show(),history.replaceState(null,null,`#${t.data.name}-${e}`)})})}}));l.start(); +import{m as l,C as s,h as r,T as h,d as g,M as c,a as u}from"./index.d3192d99.js";function o(e){let a=new DOMParser().parseFromString(e,"text/html");return a.querySelectorAll('a[href*="://"]').forEach(i=>{i.setAttribute("target","_blank")}),a.documentElement.outerHTML}window.Alpine=l;l.store("challenge",{data:{view:""}});l.data("Hint",()=>({id:null,html:null,async showHint(e){if(e.target.open){let a=(await s.pages.challenge.loadHint(this.id)).data;if(a.content)this.html=o(a.html);else if(await s.pages.challenge.displayUnlock(this.id)){let i=await s.pages.challenge.loadUnlock(this.id);if(i.success){let d=(await s.pages.challenge.loadHint(this.id)).data;this.html=o(d.html)}else e.target.open=!1,s._functions.challenge.displayUnlockError(i)}else e.target.open=!1}}}));l.data("Challenge",()=>({id:null,next_id:null,submission:"",tab:null,solves:[],response:null,share_url:null,max_attempts:0,attempts:0,async init(){r()},getStyles(){let e={"modal-dialog":!0};try{switch(s.config.themeSettings.challenge_window_size){case"sm":e["modal-sm"]=!0;break;case"lg":e["modal-lg"]=!0;break;case"xl":e["modal-xl"]=!0;break;default:break}}catch(t){console.log("Error processing challenge_window_size"),console.log(t)}return e},async init(){r()},async showChallenge(){new h(this.$el).show()},async showSolves(){this.solves=await s.pages.challenge.loadSolves(this.id),this.solves.forEach(e=>(e.date=g(e.date).format("MMMM Do, h:mm:ss A"),e)),new h(this.$el).show()},getNextId(){return l.store("challenge").data.next_id},async nextChallenge(){let e=c.getOrCreateInstance("[x-ref='challengeWindow']");e._element.addEventListener("hidden.bs.modal",t=>{l.nextTick(()=>{this.$dispatch("load-challenge",this.getNextId())})},{once:!0}),e.hide()},async getShareUrl(){let e={type:"solve",challenge_id:this.id};const n=(await(await s.fetch("/api/v1/shares",{method:"POST",body:JSON.stringify(e)})).json()).data.url;this.share_url=n},copyShareUrl(){navigator.clipboard.writeText(this.share_url);let e=u.getOrCreateInstance(this.$el);e.enable(),e.show(),setTimeout(()=>{e.hide(),e.disable()},2e3)},async submitChallenge(){this.response=await s.pages.challenge.submitChallenge(this.id,this.submission),await this.renderSubmissionResponse()},async renderSubmissionResponse(){this.response.data.status==="correct"&&(this.submission=""),this.max_attempts>0&&this.response.data.status!="already_solved"&&(this.attempts+=1),this.$dispatch("load-challenges")}}));l.data("ChallengeBoard",()=>({loaded:!1,challenges:[],challenge:null,async init(){if(this.challenges=await s.pages.challenges.getChallenges(),this.loaded=!0,window.location.hash){let e=decodeURIComponent(window.location.hash.substring(1)),t=e.lastIndexOf("-");if(t>=0){let n=[e.slice(0,t),e.slice(t+1)][1];await this.loadChallenge(n)}}},getCategories(){const e=[];this.challenges.forEach(t=>{const{category:a}=t;e.includes(a)||e.push(a)});try{const t=s.config.themeSettings.challenge_category_order;if(t){const a=new Function(`return (${t})`);e.sort(a())}}catch(t){console.log("Error running challenge_category_order function"),console.log(t)}return e},getChallenges(e){let t=this.challenges;e!==null&&(t=this.challenges.filter(a=>a.category===e));try{const a=s.config.themeSettings.challenge_order;if(a){const n=new Function(`return (${a})`);t.sort(n())}}catch(a){console.log("Error running challenge_order function"),console.log(a)}return t},async loadChallenges(){this.challenges=await s.pages.challenges.getChallenges()},async loadChallenge(e){await s.pages.challenge.displayChallenge(e,t=>{t.data.view=o(t.data.view),l.store("challenge").data=t.data,l.nextTick(()=>{let a=c.getOrCreateInstance("[x-ref='challengeWindow']");a._element.addEventListener("hidden.bs.modal",n=>{history.replaceState(null,null," ")},{once:!0}),a.show(),history.replaceState(null,null,`#${t.data.name}-${e}`)})})}}));l.start(); diff --git a/static/assets/clipboard.3bb95f09.js b/static/assets/clipboard.bf44751d.js similarity index 91% rename from static/assets/clipboard.3bb95f09.js rename to static/assets/clipboard.bf44751d.js index d84c5da..1156229 100644 --- a/static/assets/clipboard.3bb95f09.js +++ b/static/assets/clipboard.bf44751d.js @@ -1 +1 @@ -import{a as u}from"./index.8a9f494f.js";function r(a){const t=new FormData(a),c=[];for(const[l,n]of t)c.push({name:l,value:n});return c}function h(a,t,c){let l={},n=r(a);return a.querySelectorAll("input[type=checkbox]:checked").forEach(e=>{n.push({name:e.name,value:!0})}),a.querySelectorAll("input[type=checkbox]:not(:checked)").forEach(e=>{n.push({name:e.name,value:!1})}),n.map(e=>{if(c)if(e.value!==null&&e.value!=="")l[e.name]=e.value;else{let o=a.querySelector(`[name='${e.name}']`);t[o.name]!==o.value&&(l[e.name]=e.value)}else l[e.name]=e.value}),l}function m(a){const t=new u(a,{title:"Copied!",trigger:"manual"});navigator.clipboard.writeText(a.value).then(()=>{t.show(),setTimeout(()=>{t.hide()},1500)})}export{m as c,h as s}; +import{a as u}from"./index.d3192d99.js";function r(a){const t=new FormData(a),c=[];for(const[l,n]of t)c.push({name:l,value:n});return c}function h(a,t,c){let l={},n=r(a);return a.querySelectorAll("input[type=checkbox]:checked").forEach(e=>{n.push({name:e.name,value:!0})}),a.querySelectorAll("input[type=checkbox]:not(:checked)").forEach(e=>{n.push({name:e.name,value:!1})}),n.map(e=>{if(c)if(e.value!==null&&e.value!=="")l[e.name]=e.value;else{let o=a.querySelector(`[name='${e.name}']`);t[o.name]!==o.value&&(l[e.name]=e.value)}else l[e.name]=e.value}),l}function m(a){const t=new u(a,{title:"Copied!",trigger:"manual"});navigator.clipboard.writeText(a.value).then(()=>{t.show(),setTimeout(()=>{t.hide()},1500)})}export{m as c,h as s}; diff --git a/static/assets/echarts.128204f2.js b/static/assets/echarts.128204f2.js deleted file mode 100644 index 4b1ec60..0000000 --- a/static/assets/echarts.128204f2.js +++ /dev/null @@ -1,56 +0,0 @@ -/*! ***************************************************************************** -Copyright (c) Microsoft Corporation. - -Permission to use, copy, modify, and/or distribute this software for any -purpose with or without fee is hereby granted. - -THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH -REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY -AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, -INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM -LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR -OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR -PERFORMANCE OF THIS SOFTWARE. -***************************************************************************** */var Sl=function(r,t){return Sl=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,n){e.__proto__=n}||function(e,n){for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])},Sl(r,t)};function O(r,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");Sl(r,t);function e(){this.constructor=r}r.prototype=t===null?Object.create(t):(e.prototype=t.prototype,new e)}var j_=function(){function r(){this.firefox=!1,this.ie=!1,this.edge=!1,this.newEdge=!1,this.weChat=!1}return r}(),t1=function(){function r(){this.browser=new j_,this.node=!1,this.wxa=!1,this.worker=!1,this.svgSupported=!1,this.touchEventsSupported=!1,this.pointerEventsSupported=!1,this.domSupported=!1,this.transformSupported=!1,this.transform3dSupported=!1,this.hasGlobalWindow=typeof window<"u"}return r}(),Kr=new t1;typeof wx=="object"&&typeof wx.getSystemInfoSync=="function"?(Kr.wxa=!0,Kr.touchEventsSupported=!0):typeof document>"u"&&typeof self<"u"?Kr.worker=!0:typeof navigator>"u"?(Kr.node=!0,Kr.svgSupported=!0):e1(navigator.userAgent,Kr);function e1(r,t){var e=t.browser,n=r.match(/Firefox\/([\d.]+)/),i=r.match(/MSIE\s([\d.]+)/)||r.match(/Trident\/.+?rv:(([\d.]+))/),a=r.match(/Edge?\/([\d.]+)/),o=/micromessenger/i.test(r);n&&(e.firefox=!0,e.version=n[1]),i&&(e.ie=!0,e.version=i[1]),a&&(e.edge=!0,e.version=a[1],e.newEdge=+a[1].split(".")[0]>18),o&&(e.weChat=!0),t.svgSupported=typeof SVGRect<"u",t.touchEventsSupported="ontouchstart"in window&&!e.ie&&!e.edge,t.pointerEventsSupported="onpointerdown"in window&&(e.edge||e.ie&&+e.version>=11),t.domSupported=typeof document<"u";var s=document.documentElement.style;t.transform3dSupported=(e.ie&&"transition"in s||e.edge||"WebKitCSSMatrix"in window&&"m11"in new WebKitCSSMatrix||"MozPerspective"in s)&&!("OTransition"in s),t.transformSupported=t.transform3dSupported||e.ie&&+e.version>=9}const j=Kr;var Nf=12,r1="sans-serif",sn=Nf+"px "+r1,n1=20,i1=100,a1="007LLmW'55;N0500LLLLLLLLLL00NNNLzWW\\\\WQb\\0FWLg\\bWb\\WQ\\WrWWQ000CL5LLFLL0LL**F*gLLLL5F0LF\\FFF5.5N";function o1(r){var t={};if(typeof JSON>"u")return t;for(var e=0;e=0)s=o*e.length;else for(var u=0;u>1)%2;s.cssText=["position: absolute","visibility: hidden","padding: 0","margin: 0","border-width: 0","user-select: none","width:0","height:0",n[u]+":0",i[l]+":0",n[1-u]+":auto",i[1-l]+":auto",""].join("!important;"),r.appendChild(o),e.push(o)}return e}function P1(r,t,e){for(var n=e?"invTrans":"trans",i=t[n],a=t.srcCoords,o=[],s=[],u=!0,l=0;l<4;l++){var f=r[l].getBoundingClientRect(),h=2*l,c=f.left,v=f.top;o.push(c,v),u=u&&a&&c===a[h]&&v===a[h+1],s.push(r[l].offsetLeft,r[l].offsetTop)}return u&&i?i:(t.srcCoords=o,t[n]=e?nv(s,o):nv(o,s))}function wg(r){return r.nodeName.toUpperCase()==="CANVAS"}var R1=/^(?:mouse|pointer|contextmenu|drag|drop)|click/,Ks=[],E1=j.browser.firefox&&+j.browser.version.split(".")[0]<39;function Ml(r,t,e,n){return e=e||{},n?av(r,t,e):E1&&t.layerX!=null&&t.layerX!==t.offsetX?(e.zrX=t.layerX,e.zrY=t.layerY):t.offsetX!=null?(e.zrX=t.offsetX,e.zrY=t.offsetY):av(r,t,e),e}function av(r,t,e){if(j.domSupported&&r.getBoundingClientRect){var n=t.clientX,i=t.clientY;if(wg(r)){var a=r.getBoundingClientRect();e.zrX=n-a.left,e.zrY=i-a.top;return}else if(Cl(Ks,r,n,i)){e.zrX=Ks[0],e.zrY=Ks[1];return}}e.zrX=e.zrY=0}function Vf(r){return r||window.event}function ie(r,t,e){if(t=Vf(t),t.zrX!=null)return t;var n=t.type,i=n&&n.indexOf("touch")>=0;if(i){var o=n!=="touchend"?t.targetTouches[0]:t.changedTouches[0];o&&Ml(r,o,t,e)}else{Ml(r,t,t,e);var a=O1(t);t.zrDelta=a?a/120:-(t.detail||0)/3}var s=t.button;return t.which==null&&s!==void 0&&R1.test(t.type)&&(t.which=s&1?1:s&2?3:s&4?2:0),t}function O1(r){var t=r.wheelDelta;if(t)return t;var e=r.deltaX,n=r.deltaY;if(e==null||n==null)return t;var i=Math.abs(n!==0?n:e),a=n>0?-1:n<0?1:e>0?-1:1;return 3*i*a}function Dl(r,t,e,n){r.addEventListener(t,e,n)}function k1(r,t,e,n){r.removeEventListener(t,e,n)}var Jn=function(r){r.preventDefault(),r.stopPropagation(),r.cancelBubble=!0};function ov(r){return r.which===2||r.which===3}var B1=function(){function r(){this._track=[]}return r.prototype.recognize=function(t,e,n){return this._doTrack(t,e,n),this._recognize(t)},r.prototype.clear=function(){return this._track.length=0,this},r.prototype._doTrack=function(t,e,n){var i=t.touches;if(!!i){for(var a={points:[],touches:[],target:e,event:t},o=0,s=i.length;o1&&n&&n.length>1){var a=sv(n)/sv(i);!isFinite(a)&&(a=1),t.pinchScale=a;var o=N1(n);return t.pinchX=o[0],t.pinchY=o[1],{type:"pinch",target:r[0].target,event:t}}}}},bg="silent";function F1(r,t,e){return{type:r,event:e,target:t.target,topTarget:t.topTarget,cancelBubble:!1,offsetX:e.zrX,offsetY:e.zrY,gestureEvent:e.gestureEvent,pinchX:e.pinchX,pinchY:e.pinchY,pinchScale:e.pinchScale,wheelDelta:e.zrDelta,zrByTouch:e.zrByTouch,which:e.which,stop:z1}}function z1(){Jn(this.event)}var G1=function(r){O(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.handler=null,e}return t.prototype.dispose=function(){},t.prototype.setCursor=function(){},t}(ce),hi=function(){function r(t,e){this.x=t,this.y=e}return r}(),H1=["click","dblclick","mousewheel","mouseout","mouseup","mousedown","mousemove","contextmenu"],Tg=function(r){O(t,r);function t(e,n,i,a){var o=r.call(this)||this;return o._hovered=new hi(0,0),o.storage=e,o.painter=n,o.painterRoot=a,i=i||new G1,o.proxy=null,o.setHandlerProxy(i),o._draggingMgr=new M1(o),o}return t.prototype.setHandlerProxy=function(e){this.proxy&&this.proxy.dispose(),e&&(C(H1,function(n){e.on&&e.on(n,this[n],this)},this),e.handler=this),this.proxy=e},t.prototype.mousemove=function(e){var n=e.zrX,i=e.zrY,a=Cg(this,n,i),o=this._hovered,s=o.target;s&&!s.__zr&&(o=this.findHover(o.x,o.y),s=o.target);var u=this._hovered=a?new hi(n,i):this.findHover(n,i),l=u.target,f=this.proxy;f.setCursor&&f.setCursor(l?l.cursor:"default"),s&&l!==s&&this.dispatchToElement(o,"mouseout",e),this.dispatchToElement(u,"mousemove",e),l&&l!==s&&this.dispatchToElement(u,"mouseover",e)},t.prototype.mouseout=function(e){var n=e.zrEventControl;n!=="only_globalout"&&this.dispatchToElement(this._hovered,"mouseout",e),n!=="no_globalout"&&this.trigger("globalout",{type:"globalout",event:e})},t.prototype.resize=function(){this._hovered=new hi(0,0)},t.prototype.dispatch=function(e,n){var i=this[e];i&&i.call(this,n)},t.prototype.dispose=function(){this.proxy.dispose(),this.storage=null,this.proxy=null,this.painter=null},t.prototype.setCursorStyle=function(e){var n=this.proxy;n.setCursor&&n.setCursor(e)},t.prototype.dispatchToElement=function(e,n,i){e=e||{};var a=e.target;if(!(a&&a.silent)){for(var o="on"+n,s=F1(n,e,i);a&&(a[o]&&(s.cancelBubble=!!a[o].call(a,s)),a.trigger(n,s),a=a.__hostTarget?a.__hostTarget:a.parent,!s.cancelBubble););s.cancelBubble||(this.trigger(n,s),this.painter&&this.painter.eachOtherLayer&&this.painter.eachOtherLayer(function(u){typeof u[o]=="function"&&u[o].call(u,s),u.trigger&&u.trigger(n,s)}))}},t.prototype.findHover=function(e,n,i){for(var a=this.storage.getDisplayList(),o=new hi(e,n),s=a.length-1;s>=0;s--){var u=void 0;if(a[s]!==i&&!a[s].ignore&&(u=V1(a[s],e,n))&&(!o.topTarget&&(o.topTarget=a[s]),u!==bg)){o.target=a[s];break}}return o},t.prototype.processGesture=function(e,n){this._gestureMgr||(this._gestureMgr=new B1);var i=this._gestureMgr;n==="start"&&i.clear();var a=i.recognize(e,this.findHover(e.zrX,e.zrY,null).target,this.proxy.dom);if(n==="end"&&i.clear(),a){var o=a.type;e.gestureEvent=o;var s=new hi;s.target=a.target,this.dispatchToElement(s,o,a.event)}},t}(ce);C(["click","mousedown","mouseup","mousewheel","dblclick","contextmenu"],function(r){Tg.prototype[r]=function(t){var e=t.zrX,n=t.zrY,i=Cg(this,e,n),a,o;if((r!=="mouseup"||!i)&&(a=this.findHover(e,n),o=a.target),r==="mousedown")this._downEl=o,this._downPoint=[t.zrX,t.zrY],this._upEl=o;else if(r==="mouseup")this._upEl=o;else if(r==="click"){if(this._downEl!==this._upEl||!this._downPoint||bl(this._downPoint,[t.zrX,t.zrY])>4)return;this._downPoint=null}this.dispatchToElement(a,r,t)}});function V1(r,t,e){if(r[r.rectHover?"rectContain":"contain"](t,e)){for(var n=r,i=void 0,a=!1;n;){if(n.ignoreClip&&(a=!0),!a){var o=n.getClipPath();if(o&&!o.contain(t,e))return!1;n.silent&&(i=!0)}var s=n.__hostTarget;n=s||n.parent}return i?bg:!0}return!1}function Cg(r,t,e){var n=r.painter;return t<0||t>n.getWidth()||e<0||e>n.getHeight()}const W1=Tg;var Mg=32,vi=7;function U1(r){for(var t=0;r>=Mg;)t|=r&1,r>>=1;return r+t}function uv(r,t,e,n){var i=t+1;if(i===e)return 1;if(n(r[i++],r[t])<0){for(;i=0;)i++;return i-t}function Y1(r,t,e){for(e--;t>>1,i(a,r[u])<0?s=u:o=u+1;var l=n-o;switch(l){case 3:r[o+3]=r[o+2];case 2:r[o+2]=r[o+1];case 1:r[o+1]=r[o];break;default:for(;l>0;)r[o+l]=r[o+l-1],l--}r[o]=a}}function Js(r,t,e,n,i,a){var o=0,s=0,u=1;if(a(r,t[e+i])>0){for(s=n-i;u0;)o=u,u=(u<<1)+1,u<=0&&(u=s);u>s&&(u=s),o+=i,u+=i}else{for(s=i+1;us&&(u=s);var l=o;o=i-u,u=i-l}for(o++;o>>1);a(r,t[e+f])>0?o=f+1:u=f}return u}function js(r,t,e,n,i,a){var o=0,s=0,u=1;if(a(r,t[e+i])<0){for(s=i+1;us&&(u=s);var l=o;o=i-u,u=i-l}else{for(s=n-i;u=0;)o=u,u=(u<<1)+1,u<=0&&(u=s);u>s&&(u=s),o+=i,u+=i}for(o++;o>>1);a(r,t[e+f])<0?u=f:o=f+1}return u}function $1(r,t){var e=vi,n,i,a=0;r.length;var o=[];n=[],i=[];function s(v,d){n[a]=v,i[a]=d,a+=1}function u(){for(;a>1;){var v=a-2;if(v>=1&&i[v-1]<=i[v]+i[v+1]||v>=2&&i[v-2]<=i[v]+i[v-1])i[v-1]i[v+1])break;f(v)}}function l(){for(;a>1;){var v=a-2;v>0&&i[v-1]=vi||b>=vi);if(T)break;w<0&&(w=0),w+=2}if(e=w,e<1&&(e=1),d===1){for(y=0;y=0;y--)r[x+y]=r[w+y];r[S]=o[_];return}for(var b=e;;){var T=0,M=0,D=!1;do if(t(o[_],r[m])<0){if(r[S--]=r[m--],T++,M=0,--d===0){D=!0;break}}else if(r[S--]=o[_--],M++,T=0,--p===1){D=!0;break}while((T|M)=0;y--)r[x+y]=r[w+y];if(d===0){D=!0;break}}if(r[S--]=o[_--],--p===1){D=!0;break}if(M=p-Js(r[m],o,0,p,p-1,t),M!==0){for(S-=M,_-=M,p-=M,x=S+1,w=_+1,y=0;y=vi||M>=vi);if(D)break;b<0&&(b=0),b+=2}if(e=b,e<1&&(e=1),p===1){for(S-=d,m-=d,x=S+1,w=m+1,y=d-1;y>=0;y--)r[x+y]=r[w+y];r[S]=o[_]}else{if(p===0)throw new Error;for(w=S-(p-1),y=0;ys&&(u=s),lv(r,e,e+u,e+a,t),a=u}o.pushRun(e,a),o.mergeRuns(),i-=a,e+=a}while(i!==0);o.forceMergeRuns()}}var Qt=1,Bi=2,kn=4,fv=!1;function tu(){fv||(fv=!0,console.warn("z / z2 / zlevel of displayable is invalid, which may cause unexpected errors"))}function hv(r,t){return r.zlevel===t.zlevel?r.z===t.z?r.z2-t.z2:r.z-t.z:r.zlevel-t.zlevel}var Z1=function(){function r(){this._roots=[],this._displayList=[],this._displayListLen=0,this.displayableSortFunc=hv}return r.prototype.traverse=function(t,e){for(var n=0;n0&&(f.__clipPaths=[]),isNaN(f.z)&&(tu(),f.z=0),isNaN(f.z2)&&(tu(),f.z2=0),isNaN(f.zlevel)&&(tu(),f.zlevel=0),this._displayList[this._displayListLen++]=f}var h=t.getDecalElement&&t.getDecalElement();h&&this._updateAndAddDisplayable(h,e,n);var c=t.getTextGuideLine();c&&this._updateAndAddDisplayable(c,e,n);var v=t.getTextContent();v&&this._updateAndAddDisplayable(v,e,n)}},r.prototype.addRoot=function(t){t.__zr&&t.__zr.storage===this||this._roots.push(t)},r.prototype.delRoot=function(t){if(t instanceof Array){for(var e=0,n=t.length;e=0&&this._roots.splice(i,1)},r.prototype.delAllRoots=function(){this._roots=[],this._displayList=[],this._displayListLen=0},r.prototype.getRoots=function(){return this._roots},r.prototype.dispose=function(){this._displayList=null,this._roots=null},r}();const X1=Z1;var Dg;Dg=j.hasGlobalWindow&&(window.requestAnimationFrame&&window.requestAnimationFrame.bind(window)||window.msRequestAnimationFrame&&window.msRequestAnimationFrame.bind(window)||window.mozRequestAnimationFrame||window.webkitRequestAnimationFrame)||function(r){return setTimeout(r,16)};const Al=Dg;var To={linear:function(r){return r},quadraticIn:function(r){return r*r},quadraticOut:function(r){return r*(2-r)},quadraticInOut:function(r){return(r*=2)<1?.5*r*r:-.5*(--r*(r-2)-1)},cubicIn:function(r){return r*r*r},cubicOut:function(r){return--r*r*r+1},cubicInOut:function(r){return(r*=2)<1?.5*r*r*r:.5*((r-=2)*r*r+2)},quarticIn:function(r){return r*r*r*r},quarticOut:function(r){return 1- --r*r*r*r},quarticInOut:function(r){return(r*=2)<1?.5*r*r*r*r:-.5*((r-=2)*r*r*r-2)},quinticIn:function(r){return r*r*r*r*r},quinticOut:function(r){return--r*r*r*r*r+1},quinticInOut:function(r){return(r*=2)<1?.5*r*r*r*r*r:.5*((r-=2)*r*r*r*r+2)},sinusoidalIn:function(r){return 1-Math.cos(r*Math.PI/2)},sinusoidalOut:function(r){return Math.sin(r*Math.PI/2)},sinusoidalInOut:function(r){return .5*(1-Math.cos(Math.PI*r))},exponentialIn:function(r){return r===0?0:Math.pow(1024,r-1)},exponentialOut:function(r){return r===1?1:1-Math.pow(2,-10*r)},exponentialInOut:function(r){return r===0?0:r===1?1:(r*=2)<1?.5*Math.pow(1024,r-1):.5*(-Math.pow(2,-10*(r-1))+2)},circularIn:function(r){return 1-Math.sqrt(1-r*r)},circularOut:function(r){return Math.sqrt(1- --r*r)},circularInOut:function(r){return(r*=2)<1?-.5*(Math.sqrt(1-r*r)-1):.5*(Math.sqrt(1-(r-=2)*r)+1)},elasticIn:function(r){var t,e=.1,n=.4;return r===0?0:r===1?1:(!e||e<1?(e=1,t=n/4):t=n*Math.asin(1/e)/(2*Math.PI),-(e*Math.pow(2,10*(r-=1))*Math.sin((r-t)*(2*Math.PI)/n)))},elasticOut:function(r){var t,e=.1,n=.4;return r===0?0:r===1?1:(!e||e<1?(e=1,t=n/4):t=n*Math.asin(1/e)/(2*Math.PI),e*Math.pow(2,-10*r)*Math.sin((r-t)*(2*Math.PI)/n)+1)},elasticInOut:function(r){var t,e=.1,n=.4;return r===0?0:r===1?1:(!e||e<1?(e=1,t=n/4):t=n*Math.asin(1/e)/(2*Math.PI),(r*=2)<1?-.5*(e*Math.pow(2,10*(r-=1))*Math.sin((r-t)*(2*Math.PI)/n)):e*Math.pow(2,-10*(r-=1))*Math.sin((r-t)*(2*Math.PI)/n)*.5+1)},backIn:function(r){var t=1.70158;return r*r*((t+1)*r-t)},backOut:function(r){var t=1.70158;return--r*r*((t+1)*r+t)+1},backInOut:function(r){var t=2.5949095;return(r*=2)<1?.5*(r*r*((t+1)*r-t)):.5*((r-=2)*r*((t+1)*r+t)+2)},bounceIn:function(r){return 1-To.bounceOut(1-r)},bounceOut:function(r){return r<1/2.75?7.5625*r*r:r<2/2.75?7.5625*(r-=1.5/2.75)*r+.75:r<2.5/2.75?7.5625*(r-=2.25/2.75)*r+.9375:7.5625*(r-=2.625/2.75)*r+.984375},bounceInOut:function(r){return r<.5?To.bounceIn(r*2)*.5:To.bounceOut(r*2-1)*.5+.5}};const Ag=To;var Ba=Math.pow,gr=Math.sqrt,Ho=1e-8,Lg=1e-4,vv=gr(3),Na=1/3,Ie=si(),se=si(),$n=si();function vr(r){return r>-Ho&&rHo||r<-Ho}function Tt(r,t,e,n,i){var a=1-i;return a*a*(a*r+3*i*t)+i*i*(i*n+3*a*e)}function cv(r,t,e,n,i){var a=1-i;return 3*(((t-r)*a+2*(e-t)*i)*a+(n-e)*i*i)}function Vo(r,t,e,n,i,a){var o=n+3*(t-e)-r,s=3*(e-t*2+r),u=3*(t-r),l=r-i,f=s*s-3*o*u,h=s*u-9*o*l,c=u*u-3*s*l,v=0;if(vr(f)&&vr(h))if(vr(s))a[0]=0;else{var d=-u/s;d>=0&&d<=1&&(a[v++]=d)}else{var g=h*h-4*f*c;if(vr(g)){var p=h/f,d=-s/o+p,y=-p/2;d>=0&&d<=1&&(a[v++]=d),y>=0&&y<=1&&(a[v++]=y)}else if(g>0){var m=gr(g),_=f*s+1.5*o*(-h+m),S=f*s+1.5*o*(-h-m);_<0?_=-Ba(-_,Na):_=Ba(_,Na),S<0?S=-Ba(-S,Na):S=Ba(S,Na);var d=(-s-(_+S))/(3*o);d>=0&&d<=1&&(a[v++]=d)}else{var w=(2*f*s-3*o*h)/(2*gr(f*f*f)),x=Math.acos(w)/3,b=gr(f),T=Math.cos(x),d=(-s-2*b*T)/(3*o),y=(-s+b*(T+vv*Math.sin(x)))/(3*o),M=(-s+b*(T-vv*Math.sin(x)))/(3*o);d>=0&&d<=1&&(a[v++]=d),y>=0&&y<=1&&(a[v++]=y),M>=0&&M<=1&&(a[v++]=M)}}return v}function Pg(r,t,e,n,i){var a=6*e-12*t+6*r,o=9*t+3*n-3*r-9*e,s=3*t-3*r,u=0;if(vr(o)){if(Ig(a)){var l=-s/a;l>=0&&l<=1&&(i[u++]=l)}}else{var f=a*a-4*o*s;if(vr(f))i[0]=-a/(2*o);else if(f>0){var h=gr(f),l=(-a+h)/(2*o),c=(-a-h)/(2*o);l>=0&&l<=1&&(i[u++]=l),c>=0&&c<=1&&(i[u++]=c)}}return u}function Sr(r,t,e,n,i,a){var o=(t-r)*i+r,s=(e-t)*i+t,u=(n-e)*i+e,l=(s-o)*i+o,f=(u-s)*i+s,h=(f-l)*i+l;a[0]=r,a[1]=o,a[2]=l,a[3]=h,a[4]=h,a[5]=f,a[6]=u,a[7]=n}function Rg(r,t,e,n,i,a,o,s,u,l,f){var h,c=.005,v=1/0,d,g,p,y;Ie[0]=u,Ie[1]=l;for(var m=0;m<1;m+=.05)se[0]=Tt(r,e,i,o,m),se[1]=Tt(t,n,a,s,m),p=Yn(Ie,se),p=0&&p=0&&l<=1&&(i[u++]=l)}}else{var f=o*o-4*a*s;if(vr(f)){var l=-o/(2*a);l>=0&&l<=1&&(i[u++]=l)}else if(f>0){var h=gr(f),l=(-o+h)/(2*a),c=(-o-h)/(2*a);l>=0&&l<=1&&(i[u++]=l),c>=0&&c<=1&&(i[u++]=c)}}return u}function Eg(r,t,e){var n=r+e-2*t;return n===0?.5:(r-t)/n}function Wo(r,t,e,n,i){var a=(t-r)*n+r,o=(e-t)*n+t,s=(o-a)*n+a;i[0]=r,i[1]=a,i[2]=s,i[3]=s,i[4]=o,i[5]=e}function Og(r,t,e,n,i,a,o,s,u){var l,f=.005,h=1/0;Ie[0]=o,Ie[1]=s;for(var c=0;c<1;c+=.05){se[0]=Ot(r,e,i,c),se[1]=Ot(t,n,a,c);var v=Yn(Ie,se);v=0&&v=1?1:Vo(0,n,a,1,u,s)&&Tt(0,i,o,1,s[0])}}}var j1=function(){function r(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||Gt,this.ondestroy=t.ondestroy||Gt,this.onrestart=t.onrestart||Gt,t.easing&&this.setEasing(t.easing)}return r.prototype.step=function(t,e){if(this._inited||(this._startTime=t+this._delay,this._inited=!0),this._paused){this._pausedTime+=e;return}var n=this._life,i=t-this._startTime-this._pausedTime,a=i/n;a<0&&(a=0),a=Math.min(a,1);var o=this.easingFunc,s=o?o(a):a;if(this.onframe(s),a===1)if(this.loop){var u=i%n;this._startTime=t-u,this._pausedTime=0,this.onrestart()}else return!0;return!1},r.prototype.pause=function(){this._paused=!0},r.prototype.resume=function(){this._paused=!1},r.prototype.setEasing=function(t){this.easing=t,this.easingFunc=U(t)?t:Ag[t]||kg(t)},r}();const tS=j1;var Bg=function(){function r(t){this.value=t}return r}(),eS=function(){function r(){this._len=0}return r.prototype.insert=function(t){var e=new Bg(t);return this.insertEntry(e),e},r.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++},r.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--},r.prototype.len=function(){return this._len},r.prototype.clear=function(){this.head=this.tail=null,this._len=0},r}(),rS=function(){function r(t){this._list=new eS,this._maxSize=10,this._map={},this._maxSize=t}return r.prototype.put=function(t,e){var n=this._list,i=this._map,a=null;if(i[t]==null){var o=n.len(),s=this._lastRemovedEntry;if(o>=this._maxSize&&o>0){var u=n.head;n.remove(u),delete i[u.key],a=u.value,this._lastRemovedEntry=u}s?s.value=e:s=new Bg(e),s.key=t,n.insertEntry(s),i[t]=s}return a},r.prototype.get=function(t){var e=this._map[t],n=this._list;if(e!=null)return e!==n.tail&&(n.remove(e),n.insertEntry(e)),e.value},r.prototype.clear=function(){this._list.clear(),this._map={}},r.prototype.len=function(){return this._list.len()},r}();const Ta=rS;var pv={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 yr(r){return r=Math.round(r),r<0?0:r>255?255:r}function Ll(r){return r<0?0:r>1?1:r}function eu(r){var t=r;return t.length&&t.charAt(t.length-1)==="%"?yr(parseFloat(t)/100*255):yr(parseInt(t,10))}function Uo(r){var t=r;return t.length&&t.charAt(t.length-1)==="%"?Ll(parseFloat(t)/100):Ll(parseFloat(t))}function ru(r,t,e){return e<0?e+=1:e>1&&(e-=1),e*6<1?r+(t-r)*e*6:e*2<1?t:e*3<2?r+(t-r)*(2/3-e)*6:r}function Fa(r,t,e){return r+(t-r)*e}function ne(r,t,e,n,i){return r[0]=t,r[1]=e,r[2]=n,r[3]=i,r}function Il(r,t){return r[0]=t[0],r[1]=t[1],r[2]=t[2],r[3]=t[3],r}var Ng=new Ta(20),za=null;function _n(r,t){za&&Il(za,t),za=Ng.put(r,za||t.slice())}function $e(r,t){if(!!r){t=t||[];var e=Ng.get(r);if(e)return Il(t,e);r=r+"";var n=r.replace(/ /g,"").toLowerCase();if(n in pv)return Il(t,pv[n]),_n(r,t),t;var i=n.length;if(n.charAt(0)==="#"){if(i===4||i===5){var a=parseInt(n.slice(1,4),16);if(!(a>=0&&a<=4095)){ne(t,0,0,0,1);return}return ne(t,(a&3840)>>4|(a&3840)>>8,a&240|(a&240)>>4,a&15|(a&15)<<4,i===5?parseInt(n.slice(4),16)/15:1),_n(r,t),t}else if(i===7||i===9){var a=parseInt(n.slice(1,7),16);if(!(a>=0&&a<=16777215)){ne(t,0,0,0,1);return}return ne(t,(a&16711680)>>16,(a&65280)>>8,a&255,i===9?parseInt(n.slice(7),16)/255:1),_n(r,t),t}return}var o=n.indexOf("("),s=n.indexOf(")");if(o!==-1&&s+1===i){var u=n.substr(0,o),l=n.substr(o+1,s-(o+1)).split(","),f=1;switch(u){case"rgba":if(l.length!==4)return l.length===3?ne(t,+l[0],+l[1],+l[2],1):ne(t,0,0,0,1);f=Uo(l.pop());case"rgb":if(l.length!==3){ne(t,0,0,0,1);return}return ne(t,eu(l[0]),eu(l[1]),eu(l[2]),f),_n(r,t),t;case"hsla":if(l.length!==4){ne(t,0,0,0,1);return}return l[3]=Uo(l[3]),gv(l,t),_n(r,t),t;case"hsl":if(l.length!==3){ne(t,0,0,0,1);return}return gv(l,t),_n(r,t),t;default:return}}ne(t,0,0,0,1)}}function gv(r,t){var e=(parseFloat(r[0])%360+360)%360/360,n=Uo(r[1]),i=Uo(r[2]),a=i<=.5?i*(n+1):i+n-i*n,o=i*2-a;return t=t||[],ne(t,yr(ru(o,a,e+1/3)*255),yr(ru(o,a,e)*255),yr(ru(o,a,e-1/3)*255),1),r.length===4&&(t[3]=r[3]),t}function yv(r,t){var e=$e(r);if(e){for(var n=0;n<3;n++)t<0?e[n]=e[n]*(1-t)|0:e[n]=(255-e[n])*t+e[n]|0,e[n]>255?e[n]=255:e[n]<0&&(e[n]=0);return ys(e,e.length===4?"rgba":"rgb")}}function nS(r,t,e){if(!(!(t&&t.length)||!(r>=0&&r<=1))){var n=r*(t.length-1),i=Math.floor(n),a=Math.ceil(n),o=$e(t[i]),s=$e(t[a]),u=n-i,l=ys([yr(Fa(o[0],s[0],u)),yr(Fa(o[1],s[1],u)),yr(Fa(o[2],s[2],u)),Ll(Fa(o[3],s[3],u))],"rgba");return e?{color:l,leftIndex:i,rightIndex:a,value:n}:l}}function ys(r,t){if(!(!r||!r.length)){var e=r[0]+","+r[1]+","+r[2];return(t==="rgba"||t==="hsva"||t==="hsla")&&(e+=","+r[3]),t+"("+e+")"}}function Yo(r,t){var e=$e(r);return e?(.299*e[0]+.587*e[1]+.114*e[2])*e[3]/255+(1-e[3])*t:0}function iS(r){return r.type==="linear"}function aS(r){return r.type==="radial"}(function(){return j.hasGlobalWindow&&U(window.btoa)?function(r){return window.btoa(unescape(r))}:typeof Buffer<"u"?function(r){return Buffer.from(r).toString("base64")}:function(r){return null}})();var Pl=Array.prototype.slice;function We(r,t,e){return(t-r)*e+r}function nu(r,t,e,n){for(var i=t.length,a=0;an?t:r,a=Math.min(e,n),o=i[a-1]||{color:[0,0,0,0],offset:0},s=a;so;if(s)n.length=o;else for(var u=a;u=1},r.prototype.getAdditiveTrack=function(){return this._additiveTrack},r.prototype.addKeyframe=function(t,e,n){this._needsSort=!0;var i=this.keyframes,a=i.length,o=!1,s=_v,u=e;if(Ht(e)){var l=lS(e);s=l,(l===1&&!ft(e[0])||l===2&&!ft(e[0][0]))&&(o=!0)}else if(ft(e)&&!zo(e))s=Ha;else if(G(e))if(!isNaN(+e))s=Ha;else{var f=$e(e);f&&(u=f,s=Ni)}else if(ps(e)){var h=k({},u);h.colorStops=z(e.colorStops,function(v){return{offset:v.offset,color:$e(v.color)}}),iS(e)?s=Rl:aS(e)&&(s=El),u=h}a===0?this.valType=s:(s!==this.valType||s===_v)&&(o=!0),this.discrete=this.discrete||o;var c={time:t,value:u,rawValue:e,percent:0};return n&&(c.easing=n,c.easingFunc=U(n)?n:Ag[n]||kg(n)),i.push(c),c},r.prototype.prepare=function(t,e){var n=this.keyframes;this._needsSort&&n.sort(function(g,p){return g.time-p.time});for(var i=this.valType,a=n.length,o=n[a-1],s=this.discrete,u=Va(i),l=Sv(i),f=0;f=0&&!(o[f].percent<=e);f--);f=c(f,s-2)}else{for(f=h;fe);f++);f=c(f-1,s-2)}d=o[f+1],v=o[f]}if(!!(v&&d)){this._lastFr=f,this._lastFrP=e;var p=d.percent-v.percent,y=p===0?1:c((e-v.percent)/p,1);d.easingFunc&&(y=d.easingFunc(y));var m=n?this._additiveValue:l?ci:t[u];if((Va(a)||l)&&!m&&(m=this._additiveValue=[]),this.discrete)t[u]=y<1?v.rawValue:d.rawValue;else if(Va(a))a===Do?nu(m,v[i],d[i],y):oS(m,v[i],d[i],y);else if(Sv(a)){var _=v[i],S=d[i],w=a===Rl;t[u]={type:w?"linear":"radial",x:We(_.x,S.x,y),y:We(_.y,S.y,y),colorStops:z(_.colorStops,function(b,T){var M=S.colorStops[T];return{offset:We(b.offset,M.offset,y),color:Mo(nu([],b.color,M.color,y))}}),global:S.global},w?(t[u].x2=We(_.x2,S.x2,y),t[u].y2=We(_.y2,S.y2,y)):t[u].r=We(_.r,S.r,y)}else if(l)nu(m,v[i],d[i],y),n||(t[u]=Mo(m));else{var x=We(v[i],d[i],y);n?this._additiveValue=x:t[u]=x}n&&this._addToTarget(t)}}},r.prototype._addToTarget=function(t){var e=this.valType,n=this.propName,i=this._additiveValue;e===Ha?t[n]=t[n]+i:e===Ni?($e(t[n],ci),Ga(ci,ci,i,1),t[n]=Mo(ci)):e===Do?Ga(t[n],t[n],i,1):e===Fg&&mv(t[n],t[n],i,1)},r}(),hS=function(){function r(t,e,n,i){if(this._tracks={},this._trackKeys=[],this._maxTime=0,this._started=0,this._clip=null,this._target=t,this._loop=e,e&&i){Gf("Can' use additive animation on looped animation.");return}this._additiveAnimators=i,this._allowDiscrete=n}return r.prototype.getMaxTime=function(){return this._maxTime},r.prototype.getDelay=function(){return this._delay},r.prototype.getLoop=function(){return this._loop},r.prototype.getTarget=function(){return this._target},r.prototype.changeTarget=function(t){this._target=t},r.prototype.when=function(t,e,n){return this.whenWithKeys(t,e,pt(e),n)},r.prototype.whenWithKeys=function(t,e,n,i){for(var a=this._tracks,o=0;o0&&u.addKeyframe(0,Co(l),i),this._trackKeys.push(s)}u.addKeyframe(t,Co(e[s]),i)}return this._maxTime=Math.max(this._maxTime,t),this},r.prototype.pause=function(){this._clip.pause(),this._paused=!0},r.prototype.resume=function(){this._clip.resume(),this._paused=!1},r.prototype.isPaused=function(){return!!this._paused},r.prototype.duration=function(t){return this._maxTime=t,this._force=!0,this},r.prototype._doneCallback=function(){this._setTracksFinished(),this._clip=null;var t=this._doneCbs;if(t)for(var e=t.length,n=0;n0)){this._started=1;for(var e=this,n=[],i=this._maxTime||0,a=0;a1){var s=o.pop();a.addKeyframe(s.time,t[i]),a.prepare(this._maxTime,a.getAdditiveTrack())}}}},r}();const Wf=hS;function Gn(){return new Date().getTime()}var vS=function(r){O(t,r);function t(e){var n=r.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 t.prototype.addClip=function(e){e.animation&&this.removeClip(e),this._head?(this._tail.next=e,e.prev=this._tail,e.next=null,this._tail=e):this._head=this._tail=e,e.animation=this},t.prototype.addAnimator=function(e){e.animation=this;var n=e.getClip();n&&this.addClip(n)},t.prototype.removeClip=function(e){if(!!e.animation){var n=e.prev,i=e.next;n?n.next=i:this._head=i,i?i.prev=n:this._tail=n,e.next=e.prev=e.animation=null}},t.prototype.removeAnimator=function(e){var n=e.getClip();n&&this.removeClip(n),e.animation=null},t.prototype.update=function(e){for(var n=Gn()-this._pausedTime,i=n-this._time,a=this._head;a;){var o=a.next,s=a.step(n,i);s&&(a.ondestroy(),this.removeClip(a)),a=o}this._time=n,e||(this.trigger("frame",i),this.stage.update&&this.stage.update())},t.prototype._startLoop=function(){var e=this;this._running=!0;function n(){e._running&&(Al(n),!e._paused&&e.update())}Al(n)},t.prototype.start=function(){this._running||(this._time=Gn(),this._pausedTime=0,this._startLoop())},t.prototype.stop=function(){this._running=!1},t.prototype.pause=function(){this._paused||(this._pauseStart=Gn(),this._paused=!0)},t.prototype.resume=function(){this._paused&&(this._pausedTime+=Gn()-this._pauseStart,this._paused=!1)},t.prototype.clear=function(){for(var e=this._head;e;){var n=e.next;e.prev=e.next=e.animation=null,e=n}this._head=this._tail=null},t.prototype.isFinished=function(){return this._head==null},t.prototype.animate=function(e,n){n=n||{},this.start();var i=new Wf(e,n.loop);return this.addAnimator(i),i},t}(ce);const cS=vS;var dS=300,iu=j.domSupported,au=function(){var r=["click","dblclick","mousewheel","wheel","mouseout","mouseup","mousedown","mousemove","contextmenu"],t=["touchstart","touchend","touchmove"],e={pointerdown:1,pointerup:1,pointermove:1,pointerout:1},n=z(r,function(i){var a=i.replace("mouse","pointer");return e.hasOwnProperty(a)?a:i});return{mouse:r,touch:t,pointer:n}}(),xv={mouse:["mousemove","mouseup"],pointer:["pointermove","pointerup"]},wv=!1;function Ol(r){var t=r.pointerType;return t==="pen"||t==="touch"}function pS(r){r.touching=!0,r.touchTimer!=null&&(clearTimeout(r.touchTimer),r.touchTimer=null),r.touchTimer=setTimeout(function(){r.touching=!1,r.touchTimer=null},700)}function ou(r){r&&(r.zrByTouch=!0)}function gS(r,t){return ie(r.dom,new yS(r,t),!0)}function zg(r,t){for(var e=t,n=!1;e&&e.nodeType!==9&&!(n=e.domBelongToZr||e!==t&&e===r.painterRoot);)e=e.parentNode;return n}var yS=function(){function r(t,e){this.stopPropagation=Gt,this.stopImmediatePropagation=Gt,this.preventDefault=Gt,this.type=e.type,this.target=this.currentTarget=t.dom,this.pointerType=e.pointerType,this.clientX=e.clientX,this.clientY=e.clientY}return r}(),me={mousedown:function(r){r=ie(this.dom,r),this.__mayPointerCapture=[r.zrX,r.zrY],this.trigger("mousedown",r)},mousemove:function(r){r=ie(this.dom,r);var t=this.__mayPointerCapture;t&&(r.zrX!==t[0]||r.zrY!==t[1])&&this.__togglePointerCapture(!0),this.trigger("mousemove",r)},mouseup:function(r){r=ie(this.dom,r),this.__togglePointerCapture(!1),this.trigger("mouseup",r)},mouseout:function(r){r=ie(this.dom,r);var t=r.toElement||r.relatedTarget;zg(this,t)||(this.__pointerCapturing&&(r.zrEventControl="no_globalout"),this.trigger("mouseout",r))},wheel:function(r){wv=!0,r=ie(this.dom,r),this.trigger("mousewheel",r)},mousewheel:function(r){wv||(r=ie(this.dom,r),this.trigger("mousewheel",r))},touchstart:function(r){r=ie(this.dom,r),ou(r),this.__lastTouchMoment=new Date,this.handler.processGesture(r,"start"),me.mousemove.call(this,r),me.mousedown.call(this,r)},touchmove:function(r){r=ie(this.dom,r),ou(r),this.handler.processGesture(r,"change"),me.mousemove.call(this,r)},touchend:function(r){r=ie(this.dom,r),ou(r),this.handler.processGesture(r,"end"),me.mouseup.call(this,r),+new Date-+this.__lastTouchMomentCv||r<-Cv}var Mr=[],Sn=[],uu=ia(),lu=Math.abs,CS=function(){function r(){}return r.prototype.getLocalTransform=function(t){return r.getLocalTransform(this,t)},r.prototype.setPosition=function(t){this.x=t[0],this.y=t[1]},r.prototype.setScale=function(t){this.scaleX=t[0],this.scaleY=t[1]},r.prototype.setSkew=function(t){this.skewX=t[0],this.skewY=t[1]},r.prototype.setOrigin=function(t){this.originX=t[0],this.originY=t[1]},r.prototype.needLocalTransform=function(){return Cr(this.rotation)||Cr(this.x)||Cr(this.y)||Cr(this.scaleX-1)||Cr(this.scaleY-1)||Cr(this.skewX)||Cr(this.skewY)},r.prototype.updateTransform=function(){var t=this.parent&&this.parent.transform,e=this.needLocalTransform(),n=this.transform;if(!(e||t)){n&&Tv(n);return}n=n||ia(),e?this.getLocalTransform(n):Tv(n),t&&(e?Zn(n,t,n):bS(n,t)),this.transform=n,this._resolveGlobalScaleRatio(n)},r.prototype._resolveGlobalScaleRatio=function(t){var e=this.globalScaleRatio;if(e!=null&&e!==1){this.getGlobalScale(Mr);var n=Mr[0]<0?-1:1,i=Mr[1]<0?-1:1,a=((Mr[0]-n)*e+n)/Mr[0]||0,o=((Mr[1]-i)*e+i)/Mr[1]||0;t[0]*=a,t[1]*=a,t[2]*=o,t[3]*=o}this.invTransform=this.invTransform||ia(),ms(this.invTransform,t)},r.prototype.getComputedTransform=function(){for(var t=this,e=[];t;)e.push(t),t=t.parent;for(;t=e.pop();)t.updateTransform();return this.transform},r.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]),a=Math.PI/2+i-Math.atan2(t[3],t[2]);n=Math.sqrt(n)*Math.cos(a),e=Math.sqrt(e),this.skewX=a,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}},r.prototype.decomposeTransform=function(){if(!!this.transform){var t=this.parent,e=this.transform;t&&t.transform&&(Zn(Sn,t.invTransform,e),e=Sn);var n=this.originX,i=this.originY;(n||i)&&(uu[4]=n,uu[5]=i,Zn(Sn,e,uu),Sn[4]-=n,Sn[5]-=i,e=Sn),this.setLocalTransform(e)}},r.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)},r.prototype.transformCoordToLocal=function(t,e){var n=[t,e],i=this.invTransform;return i&&fe(n,n,i),n},r.prototype.transformCoordToGlobal=function(t,e){var n=[t,e],i=this.transform;return i&&fe(n,n,i),n},r.prototype.getLineScale=function(){var t=this.transform;return t&&lu(t[0]-1)>1e-10&&lu(t[3]-1)>1e-10?Math.sqrt(lu(t[0]*t[3]-t[2]*t[1])):1},r.prototype.copyTransform=function(t){MS(this,t)},r.getLocalTransform=function(t,e){e=e||[];var n=t.originX||0,i=t.originY||0,a=t.scaleX,o=t.scaleY,s=t.anchorX,u=t.anchorY,l=t.rotation||0,f=t.x,h=t.y,c=t.skewX?Math.tan(t.skewX):0,v=t.skewY?Math.tan(-t.skewY):0;if(n||i||s||u){var d=n+s,g=i+u;e[4]=-d*a-c*g*o,e[5]=-g*o-v*d*a}else e[4]=e[5]=0;return e[0]=a,e[3]=o,e[1]=v*a,e[2]=c*o,l&&Yf(e,e,l),e[4]+=n+f,e[5]+=i+h,e},r.initDefaultProps=function(){var t=r.prototype;t.scaleX=t.scaleY=t.globalScaleRatio=1,t.x=t.y=t.originX=t.originY=t.skewX=t.skewY=t.rotation=t.anchorX=t.anchorY=0}(),r}(),aa=["x","y","originX","originY","anchorX","anchorY","rotation","scaleX","scaleY","skewX","skewY"];function MS(r,t){for(var e=0;ed&&(d=_,gd&&(d=S,y=n.x&&t<=n.x+n.width&&e>=n.y&&e<=n.y+n.height},r.prototype.clone=function(){return new r(this.x,this.y,this.width,this.height)},r.prototype.copy=function(t){r.copy(this,t)},r.prototype.plain=function(){return{x:this.x,y:this.y,width:this.width,height:this.height}},r.prototype.isFinite=function(){return isFinite(this.x)&&isFinite(this.y)&&isFinite(this.width)&&isFinite(this.height)},r.prototype.isZero=function(){return this.width===0||this.height===0},r.create=function(t){return new r(t.x,t.y,t.width,t.height)},r.copy=function(t,e){t.x=e.x,t.y=e.y,t.width=e.width,t.height=e.height},r.applyTransform=function(t,e,n){if(!n){t!==e&&r.copy(t,e);return}if(n[1]<1e-5&&n[1]>-1e-5&&n[2]<1e-5&&n[2]>-1e-5){var i=n[0],a=n[3],o=n[4],s=n[5];t.x=e.x*i+o,t.y=e.y*a+s,t.width=e.width*i,t.height=e.height*a,t.width<0&&(t.x+=t.width,t.width=-t.width),t.height<0&&(t.y+=t.height,t.height=-t.height);return}Dr.x=Lr.x=e.x,Dr.y=Ir.y=e.y,Ar.x=Ir.x=e.x+e.width,Ar.y=Lr.y=e.y+e.height,Dr.transform(n),Ir.transform(n),Ar.transform(n),Lr.transform(n),t.x=Wa(Dr.x,Ar.x,Lr.x,Ir.x),t.y=Wa(Dr.y,Ar.y,Lr.y,Ir.y);var u=Ua(Dr.x,Ar.x,Lr.x,Ir.x),l=Ua(Dr.y,Ar.y,Lr.y,Ir.y);t.width=u-t.x,t.height=l-t.y},r}();const at=AS;var Mv={};function Jt(r,t){t=t||sn;var e=Mv[t];e||(e=Mv[t]=new Ta(500));var n=e.get(r);return n==null&&(n=dn.measureText(r,t).width,e.put(r,n)),n}function Dv(r,t,e,n){var i=Jt(r,t),a=$f(t),o=Fi(0,i,e),s=Bn(0,a,n),u=new at(o,s,i,a);return u}function _s(r,t,e,n){var i=((r||"")+"").split(` -`),a=i.length;if(a===1)return Dv(i[0],t,e,n);for(var o=new at(0,0,0,0),s=0;s=0?parseFloat(r)/100*t:parseFloat(r):r}function Hg(r,t,e){var n=t.position||"inside",i=t.distance!=null?t.distance:5,a=e.height,o=e.width,s=a/2,u=e.x,l=e.y,f="left",h="top";if(n instanceof Array)u+=un(n[0],e.width),l+=un(n[1],e.height),f=null,h=null;else switch(n){case"left":u-=i,l+=s,f="right",h="middle";break;case"right":u+=i+o,l+=s,h="middle";break;case"top":u+=o/2,l-=i,f="center",h="bottom";break;case"bottom":u+=o/2,l+=a+i,f="center";break;case"inside":u+=o/2,l+=s,f="center",h="middle";break;case"insideLeft":u+=i,l+=s,h="middle";break;case"insideRight":u+=o-i,l+=s,f="right",h="middle";break;case"insideTop":u+=o/2,l+=i,f="center";break;case"insideBottom":u+=o/2,l+=a-i,f="center",h="bottom";break;case"insideTopLeft":u+=i,l+=i;break;case"insideTopRight":u+=o-i,l+=i,f="right";break;case"insideBottomLeft":u+=i,l+=a-i,h="bottom";break;case"insideBottomRight":u+=o-i,l+=a-i,f="right",h="bottom";break}return r=r||{},r.x=u,r.y=l,r.align=f,r.verticalAlign=h,r}var fu="__zr_normal__",hu=aa.concat(["ignore"]),LS=oi(aa,function(r,t){return r[t]=!0,r},{ignore:!1}),xn={},IS=new at(0,0,0,0),Zf=function(){function r(t){this.id=mg(),this.animators=[],this.currentStates=[],this.states={},this._init(t)}return r.prototype._init=function(t){this.attr(t)},r.prototype.drift=function(t,e,n){switch(this.draggable){case"horizontal":e=0;break;case"vertical":t=0;break}var i=this.transform;i||(i=this.transform=[1,0,0,1,0,0]),i[4]+=t,i[5]+=e,this.decomposeTransform(),this.markRedraw()},r.prototype.beforeUpdate=function(){},r.prototype.afterUpdate=function(){},r.prototype.update=function(){this.updateTransform(),this.__dirty&&this.updateInnerText()},r.prototype.updateInnerText=function(t){var e=this._textContent;if(e&&(!e.ignore||t)){this.textConfig||(this.textConfig={});var n=this.textConfig,i=n.local,a=e.innerTransformable,o=void 0,s=void 0,u=!1;a.parent=i?this:null;var l=!1;if(a.copyTransform(e),n.position!=null){var f=IS;n.layoutRect?f.copy(n.layoutRect):f.copy(this.getBoundingRect()),i||f.applyTransform(this.transform),this.calculateTextPosition?this.calculateTextPosition(xn,n,f):Hg(xn,n,f),a.x=xn.x,a.y=xn.y,o=xn.align,s=xn.verticalAlign;var h=n.origin;if(h&&n.rotation!=null){var c=void 0,v=void 0;h==="center"?(c=f.width*.5,v=f.height*.5):(c=un(h[0],f.width),v=un(h[1],f.height)),l=!0,a.originX=-a.x+c+(i?0:f.x),a.originY=-a.y+v+(i?0:f.y)}}n.rotation!=null&&(a.rotation=n.rotation);var d=n.offset;d&&(a.x+=d[0],a.y+=d[1],l||(a.originX=-d[0],a.originY=-d[1]));var g=n.inside==null?typeof n.position=="string"&&n.position.indexOf("inside")>=0:n.inside,p=this._innerTextDefaultStyle||(this._innerTextDefaultStyle={}),y=void 0,m=void 0,_=void 0;g&&this.canBeInsideText()?(y=n.insideFill,m=n.insideStroke,(y==null||y==="auto")&&(y=this.getInsideTextFill()),(m==null||m==="auto")&&(m=this.getInsideTextStroke(y),_=!0)):(y=n.outsideFill,m=n.outsideStroke,(y==null||y==="auto")&&(y=this.getOutsideFill()),(m==null||m==="auto")&&(m=this.getOutsideStroke(y),_=!0)),y=y||"#000",(y!==p.fill||m!==p.stroke||_!==p.autoStroke||o!==p.align||s!==p.verticalAlign)&&(u=!0,p.fill=y,p.stroke=m,p.autoStroke=_,p.align=o,p.verticalAlign=s,e.setDefaultTextStyle(p)),e.__dirty|=Qt,u&&e.dirtyStyle(!0)}},r.prototype.canBeInsideText=function(){return!0},r.prototype.getInsideTextFill=function(){return"#fff"},r.prototype.getInsideTextStroke=function(t){return"#000"},r.prototype.getOutsideFill=function(){return this.__zr&&this.__zr.isDarkMode()?Fl:Nl},r.prototype.getOutsideStroke=function(t){var e=this.__zr&&this.__zr.getBackgroundColor(),n=typeof e=="string"&&$e(e);n||(n=[255,255,255,1]);for(var i=n[3],a=this.__zr.isDarkMode(),o=0;o<3;o++)n[o]=n[o]*i+(a?0:255)*(1-i);return n[3]=1,ys(n,"rgba")},r.prototype.traverse=function(t,e){},r.prototype.attrKV=function(t,e){t==="textConfig"?this.setTextConfig(e):t==="textContent"?this.setTextContent(e):t==="clipPath"?this.setClipPath(e):t==="extra"?(this.extra=this.extra||{},k(this.extra,e)):this[t]=e},r.prototype.hide=function(){this.ignore=!0,this.markRedraw()},r.prototype.show=function(){this.ignore=!1,this.markRedraw()},r.prototype.attr=function(t,e){if(typeof t=="string")this.attrKV(t,e);else if(H(t))for(var n=t,i=pt(n),a=0;a0},r.prototype.getState=function(t){return this.states[t]},r.prototype.ensureState=function(t){var e=this.states;return e[t]||(e[t]={}),e[t]},r.prototype.clearStates=function(t){this.useState(fu,!1,t)},r.prototype.useState=function(t,e,n,i){var a=t===fu,o=this.hasState();if(!(!o&&a)){var s=this.currentStates,u=this.stateTransition;if(!(J(s,t)>=0&&(e||s.length===1))){var l;if(this.stateProxy&&!a&&(l=this.stateProxy(t)),l||(l=this.states&&this.states[t]),!l&&!a){Gf("State "+t+" not exists.");return}a||this.saveCurrentToNormalState(l);var f=!!(l&&l.hoverLayer||i);f&&this._toggleHoverLayerFlag(!0),this._applyStateObj(t,l,this._normalState,e,!n&&!this.__inHover&&u&&u.duration>0,u);var h=this._textContent,c=this._textGuide;return h&&h.useState(t,e,n,f),c&&c.useState(t,e,n,f),a?(this.currentStates=[],this._normalState={}):e?this.currentStates.push(t):this.currentStates=[t],this._updateAnimationTargets(),this.markRedraw(),!f&&this.__inHover&&(this._toggleHoverLayerFlag(!1),this.__dirty&=~Qt),l}}},r.prototype.useStates=function(t,e,n){if(!t.length)this.clearStates();else{var i=[],a=this.currentStates,o=t.length,s=o===a.length;if(s){for(var u=0;u0,d);var g=this._textContent,p=this._textGuide;g&&g.useStates(t,e,c),p&&p.useStates(t,e,c),this._updateAnimationTargets(),this.currentStates=t.slice(),this.markRedraw(),!c&&this.__inHover&&(this._toggleHoverLayerFlag(!1),this.__dirty&=~Qt)}},r.prototype._updateAnimationTargets=function(){for(var t=0;t=0){var n=this.currentStates.slice();n.splice(e,1),this.useStates(n)}},r.prototype.replaceState=function(t,e,n){var i=this.currentStates.slice(),a=J(i,t),o=J(i,e)>=0;a>=0?o?i.splice(a,1):i[a]=e:n&&!o&&i.push(e),this.useStates(i)},r.prototype.toggleState=function(t,e){e?this.useState(t,!0):this.removeState(t)},r.prototype._mergeStates=function(t){for(var e={},n,i=0;i=0&&a.splice(o,1)}),this.animators.push(t),n&&n.animation.addAnimator(t),n&&n.wakeUp()},r.prototype.updateDuringAnimation=function(t){this.markRedraw()},r.prototype.stopAnimation=function(t,e){for(var n=this.animators,i=n.length,a=[],o=0;o0&&e.during&&a[0].during(function(d,g){e.during(g)});for(var c=0;c0||i.force&&!o.length){var T=void 0,M=void 0,D=void 0;if(s){M={},c&&(T={});for(var S=0;S<_;S++){var y=g[S];M[y]=e[y],c?T[y]=n[y]:e[y]=n[y]}}else if(c){D={};for(var S=0;S<_;S++){var y=g[S];D[y]=Co(e[y]),RS(e,n,y)}}var w=new Wf(e,!1,!1,h?xt(d,function(L){return L.targetName===t}):null);w.targetName=t,i.scope&&(w.scope=i.scope),c&&T&&w.whenWithKeys(0,T,g),D&&w.whenWithKeys(0,D,g),w.whenWithKeys(l==null?500:l,s?M:n,g).delay(f||0),r.addAnimator(w,t),o.push(w)}}const Wg=Zf;var Ug=function(r){O(t,r);function t(e){var n=r.call(this)||this;return n.isGroup=!0,n._children=[],n.attr(e),n}return t.prototype.childrenRef=function(){return this._children},t.prototype.children=function(){return this._children.slice()},t.prototype.childAt=function(e){return this._children[e]},t.prototype.childOfName=function(e){for(var n=this._children,i=0;i=0&&(i.splice(a,0,e),this._doAdd(e))}return this},t.prototype.replace=function(e,n){var i=J(this._children,e);return i>=0&&this.replaceAt(n,i),this},t.prototype.replaceAt=function(e,n){var i=this._children,a=i[n];if(e&&e!==this&&e.parent!==this&&e!==a){i[n]=e,a.parent=null;var o=this.__zr;o&&a.removeSelfFromZr(o),this._doAdd(e)}return this},t.prototype._doAdd=function(e){e.parent&&e.parent.remove(e),e.parent=this;var n=this.__zr;n&&n!==e.__zr&&e.addSelfToZr(n),n&&n.refresh()},t.prototype.remove=function(e){var n=this.__zr,i=this._children,a=J(i,e);return a<0?this:(i.splice(a,1),e.parent=null,n&&e.removeSelfFromZr(n),n&&n.refresh(),this)},t.prototype.removeAll=function(){for(var e=this._children,n=this.__zr,i=0;i0&&(this._stillFrameAccum++,this._stillFrameAccum>this._sleepAfterStill&&this.animation.stop())},r.prototype.setSleepAfterStill=function(t){this._sleepAfterStill=t},r.prototype.wakeUp=function(){this.animation.start(),this._stillFrameAccum=0},r.prototype.refreshHover=function(){this._needsRefreshHover=!0},r.prototype.refreshHoverImmediately=function(){this._needsRefreshHover=!1,this.painter.refreshHover&&this.painter.getType()==="canvas"&&this.painter.refreshHover()},r.prototype.resize=function(t){t=t||{},this.painter.resize(t.width,t.height),this.handler.resize()},r.prototype.clearAnimation=function(){this.animation.clear()},r.prototype.getWidth=function(){return this.painter.getWidth()},r.prototype.getHeight=function(){return this.painter.getHeight()},r.prototype.setCursorStyle=function(t){this.handler.setCursorStyle(t)},r.prototype.findHover=function(t,e){return this.handler.findHover(t,e)},r.prototype.on=function(t,e,n){return this.handler.on(t,e,n),this},r.prototype.off=function(t,e){this.handler.off(t,e)},r.prototype.trigger=function(t,e){this.handler.trigger(t,e)},r.prototype.clear=function(){for(var t=this.storage.getRoots(),e=0;e0){if(r<=i)return o;if(r>=a)return s}else{if(r>=i)return o;if(r<=a)return s}else{if(r===i)return o;if(r===a)return s}return(r-i)/u*l+o}function Ct(r,t){switch(r){case"center":case"middle":r="50%";break;case"left":case"top":r="0%";break;case"right":case"bottom":r="100%";break}return G(r)?zS(r).match(/%$/)?parseFloat(r)/100*t:parseFloat(r):r==null?NaN:+r}function wt(r,t,e){return t==null&&(t=10),t=Math.min(Math.max(0,t),$g),r=(+r).toFixed(t),e?r:+r}function zi(r){return r.sort(function(t,e){return t-e}),r}function Ue(r){if(r=+r,isNaN(r))return 0;if(r>1e-14){for(var t=1,e=0;e<15;e++,t*=10)if(Math.round(r*t)/t===r)return e}return GS(r)}function GS(r){var t=r.toString().toLowerCase(),e=t.indexOf("e"),n=e>0?+t.slice(e+1):0,i=e>0?e:t.length,a=t.indexOf("."),o=a<0?0:i-1-a;return Math.max(0,o-n)}function Zg(r,t){var e=Math.log,n=Math.LN10,i=Math.floor(e(r[1]-r[0])/n),a=Math.round(e(Math.abs(t[1]-t[0]))/n),o=Math.min(Math.max(-i+a,0),20);return isFinite(o)?o:20}function HS(r,t){var e=Math.max(Ue(r),Ue(t)),n=r+t;return e>$g?n:wt(n,e)}function Xg(r){var t=Math.PI*2;return(r%t+t)%t}function Zo(r){return r>-Lv&&r=10&&t++,t}function qg(r,t){var e=Xf(r),n=Math.pow(10,e),i=r/n,a;return t?i<1.5?a=1:i<2.5?a=2:i<4?a=3:i<7?a=5:a=10:i<1?a=1:i<2?a=2:i<3?a=3:i<5?a=5:a=10,r=a*n,e>=-20?+r.toFixed(e<0?-e:0):r}function xr(r){var t=parseFloat(r);return t==r&&(t!==0||!G(r)||r.indexOf("x")<=0)?t:NaN}function US(r){return!isNaN(xr(r))}function Kg(){return Math.round(Math.random()*9)}function Qg(r,t){return t===0?r:Qg(t,r%t)}function Iv(r,t){return r==null?t:t==null?r:r*t/Qg(r,t)}function et(r){throw new Error(r)}function Pv(r,t,e){return(t-r)*e+r}var Jg="series\0",jg="\0_ec_\0";function _t(r){return r instanceof Array?r:r==null?[]:[r]}function Rv(r,t,e){if(r){r[t]=r[t]||{},r.emphasis=r.emphasis||{},r.emphasis[t]=r.emphasis[t]||{};for(var n=0,i=e.length;n=0||a&&J(a,u)<0)){var l=n.getShallow(u,t);l!=null&&(o[r[s][0]]=l)}}return o}}var dx=[["fill","color"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["opacity"],["shadowColor"]],px=sa(dx),gx=function(){function r(){}return r.prototype.getAreaStyle=function(t,e){return px(this,t,e)},r}(),Gl=new Ta(50);function yx(r){if(typeof r=="string"){var t=Gl.get(r);return t&&t.image}else return r}function ay(r,t,e,n,i){if(r)if(typeof r=="string"){if(t&&t.__zrImageSrc===r||!e)return t;var a=Gl.get(r),o={hostEl:e,cb:n,cbPayload:i};if(a)t=a.image,!xs(t)&&a.pending.push(o);else{var s=dn.loadImage(r,Ov,Ov);s.__zrImageSrc=r,Gl.put(r,s.__cachedImgObj={image:s,pending:[o]})}return t}else return r;else return t}function Ov(){var r=this.__cachedImgObj;this.onload=this.onerror=this.__cachedImgObj=null;for(var t=0;t=o;u++)s-=o;var l=Jt(e,t);return l>s&&(e="",l=0),s=r-l,i.ellipsis=e,i.ellipsisWidth=l,i.contentWidth=s,i.containerWidth=r,i}function sy(r,t){var e=t.containerWidth,n=t.font,i=t.contentWidth;if(!e)return"";var a=Jt(r,n);if(a<=e)return r;for(var o=0;;o++){if(a<=i||o>=t.maxIterations){r+=t.ellipsis;break}var s=o===0?_x(r,i,t.ascCharWidth,t.cnCharWidth):a>0?Math.floor(r.length*i/a):0;r=r.substr(0,s),a=Jt(r,n)}return r===""&&(r=t.placeholder),r}function _x(r,t,e,n){for(var i=0,a=0,o=r.length;av&&l){var d=Math.floor(v/s);h=h.slice(0,d)}if(r&&a&&f!=null)for(var g=oy(f,i,t.ellipsis,{minChar:t.truncateMinChar,placeholder:t.placeholder}),p=0;ps&&pu(e,r.substring(s,l),t,o),pu(e,u[2],t,o,u[1]),s=du.lastIndex}si){w>0?(m.tokens=m.tokens.slice(0,w),p(m,S,_),e.lines=e.lines.slice(0,y+1)):e.lines=e.lines.slice(0,y);break t}var L=b.width,I=L==null||L==="auto";if(typeof L=="string"&&L.charAt(L.length-1)==="%")x.percentWidth=L,f.push(x),x.contentWidth=Jt(x.text,D);else{if(I){var P=b.backgroundColor,E=P&&P.image;E&&(E=yx(E),xs(E)&&(x.width=Math.max(x.width,E.width*A/E.height)))}var R=d&&n!=null?n-S:null;R!=null&&R0&&d+n.accumWidth>n.width&&(f=t.split(` -`),l=!0),n.accumWidth=d}else{var g=uy(t,u,n.width,n.breakAll,n.accumWidth);n.accumWidth=g.accumWidth+v,h=g.linesWidths,f=g.lines}}else f=t.split(` -`);for(var p=0;p=33&&t<=383}var Mx=oi(",&?/;] ".split(""),function(r,t){return r[t]=!0,r},{});function Dx(r){return Cx(r)?!!Mx[r]:!0}function uy(r,t,e,n,i){for(var a=[],o=[],s="",u="",l=0,f=0,h=0;he:i+f+v>e){f?(s||u)&&(d?(s||(s=u,u="",l=0,f=l),a.push(s),o.push(f-l),u+=c,l+=v,s="",f=l):(u&&(s+=u,u="",l=0),a.push(s),o.push(f),s=c,f=v)):d?(a.push(u),o.push(l),u=c,l=v):(a.push(c),o.push(v));continue}f+=v,d?(u+=c,l+=v):(u&&(s+=u,u="",l=0),s+=c)}return!a.length&&!s&&(s=r,u="",l=0),u&&(s+=u),s&&(a.push(s),o.push(f)),a.length===1&&(f+=i),{accumWidth:f,lines:a,linesWidths:o}}var Hl="__zr_style_"+Math.round(Math.random()*10),rn={shadowBlur:0,shadowOffsetX:0,shadowOffsetY:0,shadowColor:"#000",opacity:1,blend:"source-over"},ws={style:{shadowBlur:!0,shadowOffsetX:!0,shadowOffsetY:!0,shadowColor:!0,opacity:!0}};rn[Hl]=!0;var Bv=["z","z2","invisible"],Ax=["invisible"],Lx=function(r){O(t,r);function t(e){return r.call(this,e)||this}return t.prototype._init=function(e){for(var n=pt(e),i=0;i1e-4){s[0]=r-e,s[1]=t-n,u[0]=r+e,u[1]=t+n;return}if(Ya[0]=_u(i)*e+r,Ya[1]=mu(i)*n+t,$a[0]=_u(a)*e+r,$a[1]=mu(a)*n+t,l(s,Ya,$a),f(u,Ya,$a),i=i%Rr,i<0&&(i=i+Rr),a=a%Rr,a<0&&(a=a+Rr),i>a&&!o?a+=Rr:ii&&(Za[0]=_u(v)*e+r,Za[1]=mu(v)*n+t,l(s,Za,s),f(u,Za,u))}var st={M:1,L:2,C:3,Q:4,A:5,Z:6,R:7},Er=[],Or=[],Ce=[],er=[],Me=[],De=[],Su=Math.min,xu=Math.max,kr=Math.cos,Br=Math.sin,Ge=Math.abs,Vl=Math.PI,lr=Vl*2,wu=typeof Float32Array<"u",gi=[];function bu(r){var t=Math.round(r/Vl*1e8)/1e8;return t%2*Vl}function Ox(r,t){var e=bu(r[0]);e<0&&(e+=lr);var n=e-r[0],i=r[1];i+=n,!t&&i-e>=lr?i=e+lr:t&&e-i>=lr?i=e-lr:!t&&e>i?i=e+(lr-bu(e-i)):t&&e0&&(this._ux=Ge(n/$o/t)||0,this._uy=Ge(n/$o/e)||0)},r.prototype.setDPR=function(t){this.dpr=t},r.prototype.setContext=function(t){this._ctx=t},r.prototype.getContext=function(){return this._ctx},r.prototype.beginPath=function(){return this._ctx&&this._ctx.beginPath(),this.reset(),this},r.prototype.reset=function(){this._saveData&&(this._len=0),this._pathSegLen&&(this._pathSegLen=null,this._pathLen=0),this._version++},r.prototype.moveTo=function(t,e){return this._drawPendingPt(),this.addData(st.M,t,e),this._ctx&&this._ctx.moveTo(t,e),this._x0=t,this._y0=e,this._xi=t,this._yi=e,this},r.prototype.lineTo=function(t,e){var n=Ge(t-this._xi),i=Ge(e-this._yi),a=n>this._ux||i>this._uy;if(this.addData(st.L,t,e),this._ctx&&a&&this._ctx.lineTo(t,e),a)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},r.prototype.bezierCurveTo=function(t,e,n,i,a,o){return this._drawPendingPt(),this.addData(st.C,t,e,n,i,a,o),this._ctx&&this._ctx.bezierCurveTo(t,e,n,i,a,o),this._xi=a,this._yi=o,this},r.prototype.quadraticCurveTo=function(t,e,n,i){return this._drawPendingPt(),this.addData(st.Q,t,e,n,i),this._ctx&&this._ctx.quadraticCurveTo(t,e,n,i),this._xi=n,this._yi=i,this},r.prototype.arc=function(t,e,n,i,a,o){this._drawPendingPt(),gi[0]=i,gi[1]=a,Ox(gi,o),i=gi[0],a=gi[1];var s=a-i;return this.addData(st.A,t,e,n,n,i,s,0,o?0:1),this._ctx&&this._ctx.arc(t,e,n,i,a,o),this._xi=kr(a)*n+t,this._yi=Br(a)*n+e,this},r.prototype.arcTo=function(t,e,n,i,a){return this._drawPendingPt(),this._ctx&&this._ctx.arcTo(t,e,n,i,a),this},r.prototype.rect=function(t,e,n,i){return this._drawPendingPt(),this._ctx&&this._ctx.rect(t,e,n,i),this.addData(st.R,t,e,n,i),this},r.prototype.closePath=function(){this._drawPendingPt(),this.addData(st.Z);var t=this._ctx,e=this._x0,n=this._y0;return t&&t.closePath(),this._xi=e,this._yi=n,this},r.prototype.fill=function(t){t&&t.fill(),this.toStatic()},r.prototype.stroke=function(t){t&&t.stroke(),this.toStatic()},r.prototype.len=function(){return this._len},r.prototype.setData=function(t){var e=t.length;!(this.data&&this.data.length===e)&&wu&&(this.data=new Float32Array(e));for(var n=0;nf.length&&(this._expandData(),f=this.data);for(var h=0;h0&&(this._ctx&&this._ctx.lineTo(this._pendingPtX,this._pendingPtY),this._pendingPtDist=0)},r.prototype._expandData=function(){if(!(this.data instanceof Array)){for(var t=[],e=0;e11&&(this.data=new Float32Array(t)))}},r.prototype.getBoundingRect=function(){Ce[0]=Ce[1]=Me[0]=Me[1]=Number.MAX_VALUE,er[0]=er[1]=De[0]=De[1]=-Number.MAX_VALUE;var t=this.data,e=0,n=0,i=0,a=0,o;for(o=0;on||Ge(_)>i||c===e-1)&&(g=Math.sqrt(m*m+_*_),a=p,o=y);break}case st.C:{var S=t[c++],w=t[c++],p=t[c++],y=t[c++],x=t[c++],b=t[c++];g=q1(a,o,S,w,p,y,x,b,10),a=x,o=b;break}case st.Q:{var S=t[c++],w=t[c++],p=t[c++],y=t[c++];g=Q1(a,o,S,w,p,y,10),a=p,o=y;break}case st.A:var T=t[c++],M=t[c++],D=t[c++],A=t[c++],L=t[c++],I=t[c++],P=I+L;c+=1,t[c++],d&&(s=kr(L)*D+T,u=Br(L)*A+M),g=xu(D,A)*Su(lr,Math.abs(I)),a=kr(P)*D+T,o=Br(P)*A+M;break;case st.R:{s=a=t[c++],u=o=t[c++];var E=t[c++],R=t[c++];g=E*2+R*2;break}case st.Z:{var m=s-a,_=u-o;g=Math.sqrt(m*m+_*_),a=s,o=u;break}}g>=0&&(l[h++]=g,f+=g)}return this._pathLen=f,f},r.prototype.rebuildPath=function(t,e){var n=this.data,i=this._ux,a=this._uy,o=this._len,s,u,l,f,h,c,v=e<1,d,g,p=0,y=0,m,_=0,S,w;if(v&&(this._pathSegLen||this._calculateLength(),d=this._pathSegLen,g=this._pathLen,m=e*g,!m))return;t:for(var x=0;x0&&(t.lineTo(S,w),_=0),b){case st.M:s=l=n[x++],u=f=n[x++],t.moveTo(l,f);break;case st.L:{h=n[x++],c=n[x++];var M=Ge(h-l),D=Ge(c-f);if(M>i||D>a){if(v){var A=d[y++];if(p+A>m){var L=(m-p)/A;t.lineTo(l*(1-L)+h*L,f*(1-L)+c*L);break t}p+=A}t.lineTo(h,c),l=h,f=c,_=0}else{var I=M*M+D*D;I>_&&(S=h,w=c,_=I)}break}case st.C:{var P=n[x++],E=n[x++],R=n[x++],V=n[x++],F=n[x++],B=n[x++];if(v){var A=d[y++];if(p+A>m){var L=(m-p)/A;Sr(l,P,R,F,L,Er),Sr(f,E,V,B,L,Or),t.bezierCurveTo(Er[1],Or[1],Er[2],Or[2],Er[3],Or[3]);break t}p+=A}t.bezierCurveTo(P,E,R,V,F,B),l=F,f=B;break}case st.Q:{var P=n[x++],E=n[x++],R=n[x++],V=n[x++];if(v){var A=d[y++];if(p+A>m){var L=(m-p)/A;Wo(l,P,R,L,Er),Wo(f,E,V,L,Or),t.quadraticCurveTo(Er[1],Or[1],Er[2],Or[2]);break t}p+=A}t.quadraticCurveTo(P,E,R,V),l=R,f=V;break}case st.A:var $=n[x++],it=n[x++],lt=n[x++],ht=n[x++],vt=n[x++],Lt=n[x++],dt=n[x++],pe=!n[x++],ze=lt>ht?lt:ht,It=Ge(lt-ht)>.001,St=vt+Lt,X=!1;if(v){var A=d[y++];p+A>m&&(St=vt+Lt*(m-p)/A,X=!0),p+=A}if(It&&t.ellipse?t.ellipse($,it,lt,ht,dt,vt,St,pe):t.arc($,it,ze,vt,St,pe),X)break t;T&&(s=kr(vt)*lt+$,u=Br(vt)*ht+it),l=kr(St)*lt+$,f=Br(St)*ht+it;break;case st.R:s=l=n[x],u=f=n[x+1],h=n[x++],c=n[x++];var tt=n[x++],Tr=n[x++];if(v){var A=d[y++];if(p+A>m){var Bt=m-p;t.moveTo(h,c),t.lineTo(h+Su(Bt,tt),c),Bt-=tt,Bt>0&&t.lineTo(h+tt,c+Su(Bt,Tr)),Bt-=Tr,Bt>0&&t.lineTo(h+xu(tt-Bt,0),c+Tr),Bt-=tt,Bt>0&&t.lineTo(h,c+xu(Tr-Bt,0));break t}p+=A}t.rect(h,c,tt,Tr);break;case st.Z:if(v){var A=d[y++];if(p+A>m){var L=(m-p)/A;t.lineTo(l*(1-L)+s*L,f*(1-L)+u*L);break t}p+=A}t.closePath(),l=s,f=u}}},r.prototype.clone=function(){var t=new r,e=this.data;return t.data=e.slice?e.slice():Array.prototype.slice.call(e),t._len=this._len,t},r.CMD=st,r.initDefaultProps=function(){var t=r.prototype;t._saveData=!0,t._ux=0,t._uy=0,t._pendingPtDist=0,t._version=0}(),r}();const qe=kx;function wn(r,t,e,n,i,a,o){if(i===0)return!1;var s=i,u=0,l=r;if(o>t+s&&o>n+s||or+s&&a>e+s||at+h&&f>n+h&&f>a+h&&f>s+h||fr+h&&l>e+h&&l>i+h&&l>o+h||lt+l&&u>n+l&&u>a+l||ur+l&&s>e+l&&s>i+l||se||f+li&&(i+=yi);var c=Math.atan2(u,s);return c<0&&(c+=yi),c>=n&&c<=i||c+yi>=n&&c+yi<=i}function Nr(r,t,e,n,i,a){if(a>t&&a>n||ai?s:0}var rr=qe.CMD,Fr=Math.PI*2,zx=1e-4;function Gx(r,t){return Math.abs(r-t)t&&l>n&&l>a&&l>s||l1&&Hx(),v=Tt(t,n,a,s,oe[0]),c>1&&(d=Tt(t,n,a,s,oe[1]))),c===2?pt&&s>n&&s>a||s=0&&l<=1){for(var f=0,h=Ot(t,n,a,l),c=0;ce||s<-e)return 0;var u=Math.sqrt(e*e-s*s);Ft[0]=-u,Ft[1]=u;var l=Math.abs(n-i);if(l<1e-4)return 0;if(l>=Fr-1e-4){n=0,i=Fr;var f=a?1:-1;return o>=Ft[0]+r&&o<=Ft[1]+r?f:0}if(n>i){var h=n;n=i,i=h}n<0&&(n+=Fr,i+=Fr);for(var c=0,v=0;v<2;v++){var d=Ft[v];if(d+r>o){var g=Math.atan2(s,d),f=a?1:-1;g<0&&(g=Fr+g),(g>=n&&g<=i||g+Fr>=n&&g+Fr<=i)&&(g>Math.PI/2&&g1&&(e||(s+=Nr(u,l,f,h,n,i))),p&&(u=a[d],l=a[d+1],f=u,h=l),g){case rr.M:f=a[d++],h=a[d++],u=f,l=h;break;case rr.L:if(e){if(wn(u,l,a[d],a[d+1],t,n,i))return!0}else s+=Nr(u,l,a[d],a[d+1],n,i)||0;u=a[d++],l=a[d++];break;case rr.C:if(e){if(Bx(u,l,a[d++],a[d++],a[d++],a[d++],a[d],a[d+1],t,n,i))return!0}else s+=Vx(u,l,a[d++],a[d++],a[d++],a[d++],a[d],a[d+1],n,i)||0;u=a[d++],l=a[d++];break;case rr.Q:if(e){if(Nx(u,l,a[d++],a[d++],a[d],a[d+1],t,n,i))return!0}else s+=Wx(u,l,a[d++],a[d++],a[d],a[d+1],n,i)||0;u=a[d++],l=a[d++];break;case rr.A:var y=a[d++],m=a[d++],_=a[d++],S=a[d++],w=a[d++],x=a[d++];d+=1;var b=!!(1-a[d++]);c=Math.cos(w)*_+y,v=Math.sin(w)*S+m,p?(f=c,h=v):s+=Nr(u,l,c,v,n,i);var T=(n-y)*S/_+y;if(e){if(Fx(y,m,S,w,w+x,b,t,T,i))return!0}else s+=Ux(y,m,S,w,w+x,b,T,i);u=Math.cos(w+x)*_+y,l=Math.sin(w+x)*S+m;break;case rr.R:f=u=a[d++],h=l=a[d++];var M=a[d++],D=a[d++];if(c=f+M,v=h+D,e){if(wn(f,h,c,h,t,n,i)||wn(c,h,c,v,t,n,i)||wn(c,v,f,v,t,n,i)||wn(f,v,f,h,t,n,i))return!0}else s+=Nr(c,h,c,v,n,i),s+=Nr(f,v,f,h,n,i);break;case rr.Z:if(e){if(wn(u,l,f,h,t,n,i))return!0}else s+=Nr(u,l,f,h,n,i);u=f,l=h;break}}return!e&&!Gx(l,h)&&(s+=Nr(u,l,f,h,n,i)||0),s!==0}function Yx(r,t,e){return fy(r,0,!1,t,e)}function $x(r,t,e,n){return fy(r,t,!0,e,n)}var hy=q({fill:"#000",stroke:null,strokePercent:1,fillOpacity:1,strokeOpacity:1,lineDashOffset:0,lineWidth:1,lineCap:"butt",miterLimit:10,strokeNoScale:!1,strokeFirst:!1},rn),Zx={style:q({fill:!0,stroke:!0,strokePercent:!0,fillOpacity:!0,strokeOpacity:!0,lineDashOffset:!0,lineWidth:!0,miterLimit:!0},ws.style)},Tu=aa.concat(["invisible","culling","z","z2","zlevel","parent"]),Xx=function(r){O(t,r);function t(e){return r.call(this,e)||this}return t.prototype.update=function(){var e=this;r.prototype.update.call(this);var n=this.style;if(n.decal){var i=this._decalEl=this._decalEl||new t;i.buildPath===t.prototype.buildPath&&(i.buildPath=function(u){e.buildPath(u,e.shape)}),i.silent=!0;var a=i.style;for(var o in n)a[o]!==n[o]&&(a[o]=n[o]);a.fill=n.fill?n.decal:null,a.decal=null,a.shadowColor=null,n.strokeFirst&&(a.stroke=null);for(var s=0;s.5?Nl:n>.2?wS:Fl}else if(e)return Fl}return Nl},t.prototype.getInsideTextStroke=function(e){var n=this.style.fill;if(G(n)){var i=this.__zr,a=!!(i&&i.isDarkMode()),o=Yo(e,0)0))},t.prototype.hasFill=function(){var e=this.style,n=e.fill;return n!=null&&n!=="none"},t.prototype.getBoundingRect=function(){var e=this._rect,n=this.style,i=!e;if(i){var a=!1;this.path||(a=!0,this.createPathProxy());var o=this.path;(a||this.__dirty&kn)&&(o.beginPath(),this.buildPath(o,this.shape,!1),this.pathUpdated()),e=o.getBoundingRect()}if(this._rect=e,this.hasStroke()&&this.path&&this.path.len()>0){var s=this._rectStroke||(this._rectStroke=e.clone());if(this.__dirty||i){s.copy(e);var u=n.strokeNoScale?this.getLineScale():1,l=n.lineWidth;if(!this.hasFill()){var f=this.strokeContainThreshold;l=Math.max(l,f==null?4:f)}u>1e-10&&(s.width+=l/u,s.height+=l/u,s.x-=l/u/2,s.y-=l/u/2)}return s}return e},t.prototype.contain=function(e,n){var i=this.transformCoordToLocal(e,n),a=this.getBoundingRect(),o=this.style;if(e=i[0],n=i[1],a.contain(e,n)){var s=this.path;if(this.hasStroke()){var u=o.lineWidth,l=o.strokeNoScale?this.getLineScale():1;if(l>1e-10&&(this.hasFill()||(u=Math.max(u,this.strokeContainThreshold)),$x(s,u/l,e,n)))return!0}if(this.hasFill())return Yx(s,e,n)}return!1},t.prototype.dirtyShape=function(){this.__dirty|=kn,this._rect&&(this._rect=null),this._decalEl&&this._decalEl.dirtyShape(),this.markRedraw()},t.prototype.dirty=function(){this.dirtyStyle(),this.dirtyShape()},t.prototype.animateShape=function(e){return this.animate("shape",e)},t.prototype.updateDuringAnimation=function(e){e==="style"?this.dirtyStyle():e==="shape"?this.dirtyShape():this.markRedraw()},t.prototype.attrKV=function(e,n){e==="shape"?this.setShape(n):r.prototype.attrKV.call(this,e,n)},t.prototype.setShape=function(e,n){var i=this.shape;return i||(i=this.shape={}),typeof e=="string"?i[e]=n:k(i,e),this.dirtyShape(),this},t.prototype.shapeChanged=function(){return!!(this.__dirty&kn)},t.prototype.createStyle=function(e){return gs(hy,e)},t.prototype._innerSaveToNormal=function(e){r.prototype._innerSaveToNormal.call(this,e);var n=this._normalState;e.shape&&!n.shape&&(n.shape=k({},this.shape))},t.prototype._applyStateObj=function(e,n,i,a,o,s){r.prototype._applyStateObj.call(this,e,n,i,a,o,s);var u=!(n&&a),l;if(n&&n.shape?o?a?l=n.shape:(l=k({},i.shape),k(l,n.shape)):(l=k({},a?this.shape:i.shape),k(l,n.shape)):u&&(l=i.shape),l)if(o){this.shape=k({},this.shape);for(var f={},h=pt(l),c=0;c0},t.prototype.hasFill=function(){var e=this.style,n=e.fill;return n!=null&&n!=="none"},t.prototype.createStyle=function(e){return gs(qx,e)},t.prototype.setBoundingRect=function(e){this._rect=e},t.prototype.getBoundingRect=function(){var e=this.style;if(!this._rect){var n=e.text;n!=null?n+="":n="";var i=_s(n,e.font,e.textAlign,e.textBaseline);if(i.x+=e.x||0,i.y+=e.y||0,this.hasStroke()){var a=e.lineWidth;i.x-=a/2,i.y-=a/2,i.width+=a,i.height+=a}this._rect=i}return this._rect},t.initDefaultProps=function(){var e=t.prototype;e.dirtyRectTolerance=10}(),t}(ui);vy.prototype.type="tspan";const Wl=vy;var Kx=q({x:0,y:0},rn),Qx={style:q({x:!0,y:!0,width:!0,height:!0,sx:!0,sy:!0,sWidth:!0,sHeight:!0},ws.style)};function Jx(r){return!!(r&&typeof r!="string"&&r.width&&r.height)}var cy=function(r){O(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return t.prototype.createStyle=function(e){return gs(Kx,e)},t.prototype._getSize=function(e){var n=this.style,i=n[e];if(i!=null)return i;var a=Jx(n.image)?n.image:this.__image;if(!a)return 0;var o=e==="width"?"height":"width",s=n[o];return s==null?a[e]:a[e]/a[o]*s},t.prototype.getWidth=function(){return this._getSize("width")},t.prototype.getHeight=function(){return this._getSize("height")},t.prototype.getAnimationStyleProps=function(){return Qx},t.prototype.getBoundingRect=function(){var e=this.style;return this._rect||(this._rect=new at(e.x||0,e.y||0,this.getWidth(),this.getHeight())),this._rect},t}(ui);cy.prototype.type="image";const pn=cy;function jx(r,t){var e=t.x,n=t.y,i=t.width,a=t.height,o=t.r,s,u,l,f;i<0&&(e=e+i,i=-i),a<0&&(n=n+a,a=-a),typeof o=="number"?s=u=l=f=o:o instanceof Array?o.length===1?s=u=l=f=o[0]:o.length===2?(s=l=o[0],u=f=o[1]):o.length===3?(s=o[0],u=f=o[1],l=o[2]):(s=o[0],u=o[1],l=o[2],f=o[3]):s=u=l=f=0;var h;s+u>i&&(h=s+u,s*=i/h,u*=i/h),l+f>i&&(h=l+f,l*=i/h,f*=i/h),u+l>a&&(h=u+l,u*=a/h,l*=a/h),s+f>a&&(h=s+f,s*=a/h,f*=a/h),r.moveTo(e+s,n),r.lineTo(e+i-u,n),u!==0&&r.arc(e+i-u,n+u,u,-Math.PI/2,0),r.lineTo(e+i,n+a-l),l!==0&&r.arc(e+i-l,n+a-l,l,0,Math.PI/2),r.lineTo(e+f,n+a),f!==0&&r.arc(e+f,n+a-f,f,Math.PI/2,Math.PI),r.lineTo(e,n+s),s!==0&&r.arc(e+s,n+s,s,Math.PI,Math.PI*1.5)}var Hn=Math.round;function dy(r,t,e){if(!!t){var n=t.x1,i=t.x2,a=t.y1,o=t.y2;r.x1=n,r.x2=i,r.y1=a,r.y2=o;var s=e&&e.lineWidth;return s&&(Hn(n*2)===Hn(i*2)&&(r.x1=r.x2=jr(n,s,!0)),Hn(a*2)===Hn(o*2)&&(r.y1=r.y2=jr(a,s,!0))),r}}function py(r,t,e){if(!!t){var n=t.x,i=t.y,a=t.width,o=t.height;r.x=n,r.y=i,r.width=a,r.height=o;var s=e&&e.lineWidth;return s&&(r.x=jr(n,s,!0),r.y=jr(i,s,!0),r.width=Math.max(jr(n+a,s,!1)-r.x,a===0?0:1),r.height=Math.max(jr(i+o,s,!1)-r.y,o===0?0:1)),r}}function jr(r,t,e){if(!t)return r;var n=Hn(r*2);return(n+Hn(t))%2===0?n/2:(n+(e?1:-1))/2}var tw=function(){function r(){this.x=0,this.y=0,this.width=0,this.height=0}return r}(),ew={},gy=function(r){O(t,r);function t(e){return r.call(this,e)||this}return t.prototype.getDefaultShape=function(){return new tw},t.prototype.buildPath=function(e,n){var i,a,o,s;if(this.subPixelOptimize){var u=py(ew,n,this.style);i=u.x,a=u.y,o=u.width,s=u.height,u.r=n.r,n=u}else i=n.x,a=n.y,o=n.width,s=n.height;n.r?jx(e,n):e.rect(i,a,o,s)},t.prototype.isZeroArea=function(){return!this.shape.width||!this.shape.height},t}(rt);gy.prototype.type="rect";const yt=gy;var Hv={fill:"#000"},Vv=2,rw={style:q({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},ws.style)},yy=function(r){O(t,r);function t(e){var n=r.call(this)||this;return n.type="text",n._children=[],n._defaultStyle=Hv,n.attr(e),n}return t.prototype.childrenRef=function(){return this._children},t.prototype.update=function(){r.prototype.update.call(this),this.styleChanged()&&this._updateSubTexts();for(var e=0;e0,L=e.width!=null&&(e.overflow==="truncate"||e.overflow==="break"||e.overflow==="breakAll"),I=o.calculatedLineHeight,P=0;P=0&&(P=x[I],P.align==="right");)this._placeToken(P,e,T,y,L,"right",_),M-=P.width,L-=P.width,I--;for(A+=(a-(A-p)-(m-L)-M)/2;D<=I;)P=x[D],this._placeToken(P,e,T,y,A+P.width/2,"center",_),A+=P.width,D++;y+=T}},t.prototype._placeToken=function(e,n,i,a,o,s,u){var l=n.rich[e.styleName]||{};l.text=e.text;var f=e.verticalAlign,h=a+i/2;f==="top"?h=a+e.height/2:f==="bottom"&&(h=a+i-e.height/2);var c=!e.isLineHolder&&Cu(l);c&&this._renderBackground(l,n,s==="right"?o-e.width:s==="center"?o-e.width/2:o,h-e.height/2,e.width,e.height);var v=!!l.backgroundColor,d=e.textPadding;d&&(o=Xv(o,s,d),h-=e.height/2-d[0]-e.innerHeight/2);var g=this._getOrCreateChild(Wl),p=g.createStyle();g.useStyle(p);var y=this._defaultStyle,m=!1,_=0,S=Zv("fill"in l?l.fill:"fill"in n?n.fill:(m=!0,y.fill)),w=$v("stroke"in l?l.stroke:"stroke"in n?n.stroke:!v&&!u&&(!y.autoStroke||m)?(_=Vv,y.stroke):null),x=l.textShadowBlur>0||n.textShadowBlur>0;p.text=e.text,p.x=o,p.y=h,x&&(p.shadowBlur=l.textShadowBlur||n.textShadowBlur||0,p.shadowColor=l.textShadowColor||n.textShadowColor||"transparent",p.shadowOffsetX=l.textShadowOffsetX||n.textShadowOffsetX||0,p.shadowOffsetY=l.textShadowOffsetY||n.textShadowOffsetY||0),p.textAlign=s,p.textBaseline="middle",p.font=e.font||sn,p.opacity=xo(l.opacity,n.opacity,1),Uv(p,l),w&&(p.lineWidth=xo(l.lineWidth,n.lineWidth,_),p.lineDash=nt(l.lineDash,n.lineDash),p.lineDashOffset=n.lineDashOffset||0,p.stroke=w),S&&(p.fill=S);var b=e.contentWidth,T=e.contentHeight;g.setBoundingRect(new at(Fi(p.x,b,p.textAlign),Bn(p.y,T,p.textBaseline),b,T))},t.prototype._renderBackground=function(e,n,i,a,o,s){var u=e.backgroundColor,l=e.borderWidth,f=e.borderColor,h=u&&u.image,c=u&&!h,v=e.borderRadius,d=this,g,p;if(c||e.lineHeight||l&&f){g=this._getOrCreateChild(yt),g.useStyle(g.createStyle()),g.style.fill=null;var y=g.shape;y.x=i,y.y=a,y.width=o,y.height=s,y.r=v,g.dirtyShape()}if(c){var m=g.style;m.fill=u||null,m.fillOpacity=nt(e.fillOpacity,1)}else if(h){p=this._getOrCreateChild(pn),p.onload=function(){d.dirtyStyle()};var _=p.style;_.image=u.image,_.x=i,_.y=a,_.width=o,_.height=s}if(l&&f){var m=g.style;m.lineWidth=l,m.stroke=f,m.strokeOpacity=nt(e.strokeOpacity,1),m.lineDash=e.borderDash,m.lineDashOffset=e.borderDashOffset||0,g.strokeContainThreshold=0,g.hasFill()&&g.hasStroke()&&(m.strokeFirst=!0,m.lineWidth*=2)}var S=(g||p).style;S.shadowBlur=e.shadowBlur||0,S.shadowColor=e.shadowColor||"transparent",S.shadowOffsetX=e.shadowOffsetX||0,S.shadowOffsetY=e.shadowOffsetY||0,S.opacity=xo(e.opacity,n.opacity,1)},t.makeFont=function(e){var n="";return ow(e)&&(n=[e.fontStyle,e.fontWeight,aw(e.fontSize),e.fontFamily||"sans-serif"].join(" ")),n&&Pe(n)||e.textFont||e.font},t}(ui),nw={left:!0,right:1,center:1},iw={top:1,bottom:1,middle:1},Wv=["fontStyle","fontWeight","fontSize","fontFamily"];function aw(r){return typeof r=="string"&&(r.indexOf("px")!==-1||r.indexOf("rem")!==-1||r.indexOf("em")!==-1)?r:isNaN(+r)?Nf+"px":r+"px"}function Uv(r,t){for(var e=0;e=0,a=!1;if(r instanceof rt){var o=my(r),s=i&&o.selectFill||o.normalFill,u=i&&o.selectStroke||o.normalStroke;if(bn(s)||bn(u)){n=n||{};var l=n.style||{};l.fill==="inherit"?(a=!0,n=k({},n),l=k({},l),l.fill=s):!bn(l.fill)&&bn(s)?(a=!0,n=k({},n),l=k({},l),l.fill=jv(s)):!bn(l.stroke)&&bn(u)&&(a||(n=k({},n),l=k({},l)),l.stroke=jv(u)),n.style=l}}if(n&&n.z2==null){a||(n=k({},n));var f=r.z2EmphasisLift;n.z2=r.z2+(f!=null?f:lw)}return n}function pw(r,t,e){if(e&&e.z2==null){e=k({},e);var n=r.z2SelectLift;e.z2=r.z2+(n!=null?n:fw)}return e}function gw(r,t,e){var n=J(r.currentStates,t)>=0,i=r.style.opacity,a=n?null:cw(r,["opacity"],t,{opacity:1});e=e||{};var o=e.style||{};return o.opacity==null&&(e=k({},e),o=k({opacity:n?i:a.opacity*.1},o),e.style=o),e}function Mu(r,t){var e=this.states[r];if(this.style){if(r==="emphasis")return dw(this,r,t,e);if(r==="blur")return gw(this,r,e);if(r==="select")return pw(this,r,e)}return e}function yw(r){r.stateProxy=Mu;var t=r.getTextContent(),e=r.getTextGuideLine();t&&(t.stateProxy=Mu),e&&(e.stateProxy=Mu)}function rc(r,t){!Cy(r,t)&&!r.__highByOuter&&Je(r,_y)}function nc(r,t){!Cy(r,t)&&!r.__highByOuter&&Je(r,Sy)}function jn(r,t){r.__highByOuter|=1<<(t||0),Je(r,_y)}function ti(r,t){!(r.__highByOuter&=~(1<<(t||0)))&&Je(r,Sy)}function mw(r){Je(r,th)}function wy(r){Je(r,xy)}function by(r){Je(r,hw)}function Ty(r){Je(r,vw)}function Cy(r,t){return r.__highDownSilentOnTouch&&t.zrByTouch}function My(r){var t=r.getModel(),e=[],n=[];t.eachComponent(function(i,a){var o=Jf(a),s=i==="series",u=s?r.getViewOfSeriesModel(a):r.getViewOfComponentModel(a);!s&&n.push(u),o.isBlured&&(u.group.traverse(function(l){xy(l)}),s&&e.push(a)),o.isBlured=!1}),C(n,function(i){i&&i.toggleBlurSeries&&i.toggleBlurSeries(e,!1,t)})}function Ul(r,t,e,n){var i=n.getModel();e=e||"coordinateSystem";function a(l,f){for(var h=0;h0){var s={dataIndex:o,seriesIndex:e.seriesIndex};a!=null&&(s.dataType=a),t.push(s)}})}),t}function qo(r,t,e){Dy(r,!0),Je(r,yw),Cw(r,t,e)}function Tw(r){Dy(r,!1)}function $l(r,t,e,n){n?Tw(r):qo(r,t,e)}function Cw(r,t,e){var n=ut(r);t!=null?(n.focus=t,n.blurScope=e):n.focus&&(n.focus=null)}var ac=["emphasis","blur","select"],Mw={itemStyle:"getItemStyle",lineStyle:"getLineStyle",areaStyle:"getAreaStyle"};function oc(r,t,e,n){e=e||"itemStyle";for(var i=0;i1&&(o*=Du(d),s*=Du(d));var g=(i===a?-1:1)*Du((o*o*(s*s)-o*o*(v*v)-s*s*(c*c))/(o*o*(v*v)+s*s*(c*c)))||0,p=g*o*v/s,y=g*-s*c/o,m=(r+e)/2+qa(h)*p-Xa(h)*y,_=(t+n)/2+Xa(h)*p+qa(h)*y,S=fc([1,0],[(c-p)/o,(v-y)/s]),w=[(c-p)/o,(v-y)/s],x=[(-1*c-p)/o,(-1*v-y)/s],b=fc(w,x);if(ql(w,x)<=-1&&(b=mi),ql(w,x)>=1&&(b=0),b<0){var T=Math.round(b/mi*1e6)/1e6;b=mi*2+T%2*mi}f.addData(l,m,_,o,s,S,b,h,a)}var Pw=/([mlvhzcqtsa])([^mlvhzcqtsa]*)/ig,Rw=/-?([0-9]*\.)?[0-9]+([eE]-?[0-9]+)?/g;function Ew(r){var t=new qe;if(!r)return t;var e=0,n=0,i=e,a=n,o,s=qe.CMD,u=r.match(Pw);if(!u)return t;for(var l=0;lP*P+E*E&&(T=D,M=A),{cx:T,cy:M,x0:-f,y0:-h,x1:T*(i/w-1),y1:M*(i/w-1)}}function Hw(r){var t;if(N(r)){var e=r.length;if(!e)return r;e===1?t=[r[0],r[0],0,0]:e===2?t=[r[0],r[0],r[1],r[1]]:e===3?t=r.concat(r[2]):t=r}else t=[r,r,r,r];return t}function Vw(r,t){var e,n=Gi(t.r,0),i=Gi(t.r0||0,0),a=n>0,o=i>0;if(!(!a&&!o)){if(a||(n=i,i=0),i>n){var s=n;n=i,i=s}var u=t.startAngle,l=t.endAngle;if(!(isNaN(u)||isNaN(l))){var f=t.cx,h=t.cy,c=!!t.clockwise,v=vc(l-u),d=v>Au&&v%Au;if(d>ye&&(v=d),!(n>ye))r.moveTo(f,h);else if(v>Au-ye)r.moveTo(f+n*Cn(u),h+n*zr(u)),r.arc(f,h,n,u,l,!c),i>ye&&(r.moveTo(f+i*Cn(l),h+i*zr(l)),r.arc(f,h,i,l,u,c));else{var g=void 0,p=void 0,y=void 0,m=void 0,_=void 0,S=void 0,w=void 0,x=void 0,b=void 0,T=void 0,M=void 0,D=void 0,A=void 0,L=void 0,I=void 0,P=void 0,E=n*Cn(u),R=n*zr(u),V=i*Cn(l),F=i*zr(l),B=v>ye;if(B){var $=t.cornerRadius;$&&(e=Hw($),g=e[0],p=e[1],y=e[2],m=e[3]);var it=vc(n-i)/2;if(_=Ae(it,y),S=Ae(it,m),w=Ae(it,g),x=Ae(it,p),M=b=Gi(_,S),D=T=Gi(w,x),(b>ye||T>ye)&&(A=n*Cn(l),L=n*zr(l),I=i*Cn(u),P=i*zr(u),vye){var It=Ae(y,M),St=Ae(m,M),X=Ka(I,P,E,R,n,It,c),tt=Ka(A,L,V,F,n,St,c);r.moveTo(f+X.cx+X.x0,h+X.cy+X.y0),M0&&r.arc(f+X.cx,h+X.cy,It,Pt(X.y0,X.x0),Pt(X.y1,X.x1),!c),r.arc(f,h,n,Pt(X.cy+X.y1,X.cx+X.x1),Pt(tt.cy+tt.y1,tt.cx+tt.x1),!c),St>0&&r.arc(f+tt.cx,h+tt.cy,St,Pt(tt.y1,tt.x1),Pt(tt.y0,tt.x0),!c))}else r.moveTo(f+E,h+R),r.arc(f,h,n,u,l,!c);if(!(i>ye)||!B)r.lineTo(f+V,h+F);else if(D>ye){var It=Ae(g,D),St=Ae(p,D),X=Ka(V,F,A,L,i,-St,c),tt=Ka(E,R,I,P,i,-It,c);r.lineTo(f+X.cx+X.x0,h+X.cy+X.y0),D0&&r.arc(f+X.cx,h+X.cy,St,Pt(X.y0,X.x0),Pt(X.y1,X.x1),!c),r.arc(f,h,i,Pt(X.cy+X.y1,X.cx+X.x1),Pt(tt.cy+tt.y1,tt.cx+tt.x1),c),It>0&&r.arc(f+tt.cx,h+tt.cy,It,Pt(tt.y1,tt.x1),Pt(tt.y0,tt.x0),!c))}else r.lineTo(f+V,h+F),r.arc(f,h,i,l,u,c)}r.closePath()}}}var Ww=function(){function r(){this.cx=0,this.cy=0,this.r0=0,this.r=0,this.startAngle=0,this.endAngle=Math.PI*2,this.clockwise=!0,this.cornerRadius=0}return r}(),By=function(r){O(t,r);function t(e){return r.call(this,e)||this}return t.prototype.getDefaultShape=function(){return new Ww},t.prototype.buildPath=function(e,n){Vw(e,n)},t.prototype.isZeroArea=function(){return this.shape.startAngle===this.shape.endAngle||this.shape.r===this.shape.r0},t}(rt);By.prototype.type="sector";const ua=By;var Uw=function(){function r(){this.cx=0,this.cy=0,this.r=0,this.r0=0}return r}(),Ny=function(r){O(t,r);function t(e){return r.call(this,e)||this}return t.prototype.getDefaultShape=function(){return new Uw},t.prototype.buildPath=function(e,n){var i=n.cx,a=n.cy,o=Math.PI*2;e.moveTo(i+n.r,a),e.arc(i,a,n.r,0,o,!1),e.moveTo(i+n.r0,a),e.arc(i,a,n.r0,0,o,!0)},t}(rt);Ny.prototype.type="ring";const Fy=Ny;function Yw(r,t,e,n){var i=[],a=[],o=[],s=[],u,l,f,h;if(n){f=[1/0,1/0],h=[-1/0,-1/0];for(var c=0,v=r.length;c=2){if(n){var a=Yw(i,n,e,t.smoothConstraint);r.moveTo(i[0][0],i[0][1]);for(var o=i.length,s=0;s<(e?o:o-1);s++){var u=a[s*2],l=a[s*2+1],f=i[(s+1)%o];r.bezierCurveTo(u[0],u[1],l[0],l[1],f[0],f[1])}}else{r.moveTo(i[0][0],i[0][1]);for(var s=1,h=i.length;sHr[1]){if(s=!1,a)return s;var f=Math.abs(Hr[0]-Gr[1]),h=Math.abs(Gr[0]-Hr[1]);Math.min(f,h)>i.len()&&(f0){var h=f.duration,c=f.delay,v=f.easing,d={duration:h,delay:c||0,easing:v,done:a,force:!!a||!!o,setToFinal:!l,scope:r,during:o};s?t.animateFrom(e,d):t.animateTo(e,d)}else t.stopAnimation(),!s&&t.attr(e),o&&o(1),a&&a()}function we(r,t,e,n,i,a){ah("update",r,t,e,n,i,a)}function Ke(r,t,e,n,i,a){ah("enter",r,t,e,n,i,a)}function Xn(r){if(!r.__zr)return!0;for(var t=0;tMath.abs(a[1])?a[0]>0?"right":"left":a[1]>0?"bottom":"top"}function pc(r){return!r.isGroup}function _b(r){return r.shape!=null}function Jy(r,t,e){if(!r||!t)return;function n(o){var s={};return o.traverse(function(u){pc(u)&&u.anid&&(s[u.anid]=u)}),s}function i(o){var s={x:o.x,y:o.y,rotation:o.rotation};return _b(o)&&(s.shape=k({},o.shape)),s}var a=n(r);t.traverse(function(o){if(pc(o)&&o.anid){var s=a[o.anid];if(s){var u=i(o);o.attr(i(s)),we(o,u,e,ut(o).dataIndex)}}})}function jy(r,t){return z(r,function(e){var n=e[0];n=Jo(n,t.x),n=jo(n,t.x+t.width);var i=e[1];return i=Jo(i,t.y),i=jo(i,t.y+t.height),[n,i]})}function Sb(r,t){var e=Jo(r.x,t.x),n=jo(r.x+r.width,t.x+t.width),i=Jo(r.y,t.y),a=jo(r.y+r.height,t.y+t.height);if(n>=e&&a>=i)return{x:e,y:i,width:n-e,height:a-i}}function As(r,t,e){var n=k({rectHover:!0},t),i=n.style={strokeNoScale:!0};if(e=e||{x:-1,y:-1,width:2,height:2},r)return r.indexOf("image://")===0?(i.image=r.slice(8),q(i,e),new pn(n)):oh(r.replace("path://",""),n,e,"center")}function xb(r,t,e,n,i){for(var a=0,o=i[i.length-1];a1)return!1;var p=Lu(v,d,f,h)/c;return!(p<0||p>1)}function Lu(r,t,e,n){return r*n-e*t}function wb(r){return r<=1e-6&&r>=-1e-6}function Ls(r){var t=r.itemTooltipOption,e=r.componentModel,n=r.itemName,i=G(t)?{formatter:t}:t,a=e.mainType,o=e.componentIndex,s={componentType:a,name:n,$vars:["name"]};s[a+"Index"]=o;var u=r.formatterParamsExtra;u&&C(pt(u),function(f){Ze(s,f)||(s[f]=u[f],s.$vars.push(f))});var l=ut(r.el);l.componentMainType=a,l.componentIndex=o,l.tooltipConfig={name:n,option:q({content:n,formatterParams:s},i)}}function gc(r,t){var e;r.isGroup&&(e=t(r)),e||r.traverse(t)}function uh(r,t){if(r)if(N(r))for(var e=0;e=0&&s.push(u)}),s}}function hh(r,t){return Q(Q({},r,!0),t,!0)}const Fb={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"}},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:". "}}}},zb={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"}},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:""}}}};var ts="ZH",vh="EN",fa=vh,Ro={},ch={},im=j.domSupported?function(){var r=(document.documentElement.lang||navigator.language||navigator.browserLanguage).toUpperCase();return r.indexOf(ts)>-1?ts:fa}():fa;function am(r,t){r=r.toUpperCase(),ch[r]=new At(t),Ro[r]=t}function Gb(r){if(G(r)){var t=Ro[r.toUpperCase()]||{};return r===ts||r===vh?K(t):Q(K(t),K(Ro[fa]),!1)}else return Q(K(r),K(Ro[fa]),!1)}function Hb(r){return ch[r]}function Vb(){return ch[fa]}am(vh,Fb);am(ts,zb);var dh=1e3,ph=dh*60,Ki=ph*60,le=Ki*24,wc=le*365,Hi={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}"},ja="{yyyy}-{MM}-{dd}",bc={year:"{yyyy}",month:"{yyyy}-{MM}",day:ja,hour:ja+" "+Hi.hour,minute:ja+" "+Hi.minute,second:ja+" "+Hi.second,millisecond:Hi.none},Ru=["year","month","day","hour","minute","second","millisecond"],om=["year","half-year","quarter","month","week","half-week","day","half-day","quarter-day","hour","minute","second","millisecond"];function Vr(r,t){return r+="","0000".substr(0,t-r.length)+r}function qn(r){switch(r){case"half-year":case"quarter":return"month";case"week":case"half-week":return"day";case"half-day":case"quarter-day":return"hour";default:return r}}function Wb(r){return r===qn(r)}function Ub(r){switch(r){case"year":case"month":return"day";case"millisecond":return"millisecond";default:return"second"}}function Rs(r,t,e,n){var i=Xe(r),a=i[gh(e)](),o=i[Kn(e)]()+1,s=Math.floor((o-1)/4)+1,u=i[Es(e)](),l=i["get"+(e?"UTC":"")+"Day"](),f=i[ha(e)](),h=(f-1)%12+1,c=i[Os(e)](),v=i[ks(e)](),d=i[Bs(e)](),g=n instanceof At?n:Hb(n||im)||Vb(),p=g.getModel("time"),y=p.get("month"),m=p.get("monthAbbr"),_=p.get("dayOfWeek"),S=p.get("dayOfWeekAbbr");return(t||"").replace(/{yyyy}/g,a+"").replace(/{yy}/g,a%100+"").replace(/{Q}/g,s+"").replace(/{MMMM}/g,y[o-1]).replace(/{MMM}/g,m[o-1]).replace(/{MM}/g,Vr(o,2)).replace(/{M}/g,o+"").replace(/{dd}/g,Vr(u,2)).replace(/{d}/g,u+"").replace(/{eeee}/g,_[l]).replace(/{ee}/g,S[l]).replace(/{e}/g,l+"").replace(/{HH}/g,Vr(f,2)).replace(/{H}/g,f+"").replace(/{hh}/g,Vr(h+"",2)).replace(/{h}/g,h+"").replace(/{mm}/g,Vr(c,2)).replace(/{m}/g,c+"").replace(/{ss}/g,Vr(v,2)).replace(/{s}/g,v+"").replace(/{SSS}/g,Vr(d,3)).replace(/{S}/g,d+"")}function Yb(r,t,e,n,i){var a=null;if(G(e))a=e;else if(U(e))a=e(r.value,t,{level:r.level});else{var o=k({},Hi);if(r.level>0)for(var s=0;s=0;--s)if(u[l]){a=u[l];break}a=a||o.none}if(N(a)){var h=r.level==null?0:r.level>=0?r.level:a.length+r.level;h=Math.min(h,a.length-1),a=a[h]}}return Rs(new Date(r.value),a,i,n)}function sm(r,t){var e=Xe(r),n=e[Kn(t)]()+1,i=e[Es(t)](),a=e[ha(t)](),o=e[Os(t)](),s=e[ks(t)](),u=e[Bs(t)](),l=u===0,f=l&&s===0,h=f&&o===0,c=h&&a===0,v=c&&i===1,d=v&&n===1;return d?"year":v?"month":c?"day":h?"hour":f?"minute":l?"second":"millisecond"}function Tc(r,t,e){var n=ft(r)?Xe(r):r;switch(t=t||sm(r,e),t){case"year":return n[gh(e)]();case"half-year":return n[Kn(e)]()>=6?1:0;case"quarter":return Math.floor((n[Kn(e)]()+1)/4);case"month":return n[Kn(e)]();case"day":return n[Es(e)]();case"half-day":return n[ha(e)]()/24;case"hour":return n[ha(e)]();case"minute":return n[Os(e)]();case"second":return n[ks(e)]();case"millisecond":return n[Bs(e)]()}}function gh(r){return r?"getUTCFullYear":"getFullYear"}function Kn(r){return r?"getUTCMonth":"getMonth"}function Es(r){return r?"getUTCDate":"getDate"}function ha(r){return r?"getUTCHours":"getHours"}function Os(r){return r?"getUTCMinutes":"getMinutes"}function ks(r){return r?"getUTCSeconds":"getSeconds"}function Bs(r){return r?"getUTCMilliseconds":"getMilliseconds"}function $b(r){return r?"setUTCFullYear":"setFullYear"}function um(r){return r?"setUTCMonth":"setMonth"}function lm(r){return r?"setUTCDate":"setDate"}function fm(r){return r?"setUTCHours":"setHours"}function hm(r){return r?"setUTCMinutes":"setMinutes"}function vm(r){return r?"setUTCSeconds":"setSeconds"}function cm(r){return r?"setUTCMilliseconds":"setMilliseconds"}function dm(r){if(!US(r))return G(r)?r:"-";var t=(r+"").split(".");return t[0].replace(/(\d{1,3})(?=(?:\d{3})+(?!\d))/g,"$1,")+(t.length>1?"."+t[1]:"")}function pm(r,t){return r=(r||"").toLowerCase().replace(/-(.)/g,function(e,n){return n.toUpperCase()}),t&&r&&(r=r.charAt(0).toUpperCase()+r.slice(1)),r}var Ns=_g,Zb=/([&<>"'])/g,Xb={"&":"&","<":"<",">":">",'"':""","'":"'"};function ue(r){return r==null?"":(r+"").replace(Zb,function(t,e){return Xb[e]})}function Jl(r,t,e){var n="{yyyy}-{MM}-{dd} {HH}:{mm}:{ss}";function i(f){return f&&Pe(f)?f:"-"}function a(f){return!!(f!=null&&!isNaN(f)&&isFinite(f))}var o=t==="time",s=r instanceof Date;if(o||s){var u=o?Xe(r):r;if(isNaN(+u)){if(s)return"-"}else return Rs(u,n,e)}if(t==="ordinal")return xl(r)?i(r):ft(r)&&a(r)?r+"":"-";var l=xr(r);return a(l)?dm(l):xl(r)?i(r):typeof r=="boolean"?r+"":"-"}var Cc=["a","b","c","d","e","f","g"],Eu=function(r,t){return"{"+r+(t==null?"":t)+"}"};function gm(r,t,e){N(t)||(t=[t]);var n=t.length;if(!n)return"";for(var i=t[0].$vars||[],a=0;a':'';var o=e.markerId||"markerX";return{renderMode:a,content:"{"+o+"|} ",style:i==="subItem"?{width:4,height:4,borderRadius:2,backgroundColor:n}:{width:10,height:10,borderRadius:5,backgroundColor:n}}}function hn(r,t){return t=t||"transparent",G(r)?r:H(r)&&r.colorStops&&(r.colorStops[0]||{}).color||t}function Mc(r,t){if(t==="_blank"||t==="blank"){var e=window.open();e.opener=null,e.location.href=r}else window.open(r,t)}var Eo=C,Kb=["left","right","top","bottom","width","height"],to=[["width","left","right"],["height","top","bottom"]];function yh(r,t,e,n,i){var a=0,o=0;n==null&&(n=1/0),i==null&&(i=1/0);var s=0;t.eachChild(function(u,l){var f=u.getBoundingRect(),h=t.childAt(l+1),c=h&&h.getBoundingRect(),v,d;if(r==="horizontal"){var g=f.width+(c?-c.x+f.x:0);v=a+g,v>n||u.newline?(a=0,v=g,o+=s+e,s=f.height):s=Math.max(s,f.height)}else{var p=f.height+(c?-c.y+f.y:0);d=o+p,d>i||u.newline?(a+=s+e,o=0,d=p,s=f.width):s=Math.max(s,f.width)}u.newline||(u.x=a,u.y=o,u.markRedraw(),r==="horizontal"?a=v+e:o=d+e)})}var Qn=yh;ot(yh,"vertical");ot(yh,"horizontal");function wr(r,t,e){e=Ns(e||0);var n=t.width,i=t.height,a=Ct(r.left,n),o=Ct(r.top,i),s=Ct(r.right,n),u=Ct(r.bottom,i),l=Ct(r.width,n),f=Ct(r.height,i),h=e[2]+e[0],c=e[1]+e[3],v=r.aspect;switch(isNaN(l)&&(l=n-s-c-a),isNaN(f)&&(f=i-u-h-o),v!=null&&(isNaN(l)&&isNaN(f)&&(v>n/i?l=n*.8:f=i*.8),isNaN(l)&&(l=v*f),isNaN(f)&&(f=l/v)),isNaN(a)&&(a=n-s-l-c),isNaN(o)&&(o=i-u-f-h),r.left||r.right){case"center":a=n/2-l/2-e[3];break;case"right":a=n-l-c;break}switch(r.top||r.bottom){case"middle":case"center":o=i/2-f/2-e[0];break;case"bottom":o=i-f-h;break}a=a||0,o=o||0,isNaN(l)&&(l=n-c-a-(s||0)),isNaN(f)&&(f=i-h-o-(u||0));var d=new at(a+e[3],o+e[0],l,f);return d.margin=e,d}function Qb(r,t,e,n,i,a){var o=!i||!i.hv||i.hv[0],s=!i||!i.hv||i.hv[1],u=i&&i.boundingMode||"all";if(a=a||r,a.x=r.x,a.y=r.y,!o&&!s)return!1;var l;if(u==="raw")l=r.type==="group"?new at(0,0,+t.width||0,+t.height||0):r.getBoundingRect();else if(l=r.getBoundingRect(),r.needLocalTransform()){var f=r.getLocalTransform();l=l.clone(),l.applyTransform(f)}var h=wr(q({width:l.width,height:l.height},t),e,n),c=o?h.x-l.x:0,v=s?h.y-l.y:0;return u==="raw"?(a.x=c,a.y=v):(a.x+=c,a.y+=v),a===r&&r.markRedraw(),!0}function va(r){var t=r.layoutMode||r.constructor.layoutMode;return H(t)?t:t?{type:t}:null}function ei(r,t,e){var n=e&&e.ignoreSize;!N(n)&&(n=[n,n]);var i=o(to[0],0),a=o(to[1],1);l(to[0],r,i),l(to[1],r,a);function o(f,h){var c={},v=0,d={},g=0,p=2;if(Eo(f,function(_){d[_]=r[_]}),Eo(f,function(_){s(t,_)&&(c[_]=d[_]=t[_]),u(c,_)&&v++,u(d,_)&&g++}),n[h])return u(t,f[1])?d[f[2]]=null:u(t,f[2])&&(d[f[1]]=null),d;if(g===p||!v)return d;if(v>=p)return c;for(var y=0;y=0;u--)s=Q(s,i[u],!0);n.defaultOption=s}return n.defaultOption},t.prototype.getReferringComponents=function(e,n){var i=e+"Index",a=e+"Id";return Da(this.ecModel,e,{index:this.get(i,!0),id:this.get(a,!0)},n)},t.prototype.getBoxLayoutParams=function(){var e=this;return{left:e.get("left"),top:e.get("top"),right:e.get("right"),bottom:e.get("bottom"),width:e.get("width"),height:e.get("height")}},t.prototype.getZLevelKey=function(){return""},t.prototype.setZLevel=function(e){this.option.zlevel=e},t.protoInitialize=function(){var e=t.prototype;e.type="component",e.id="",e.name="",e.mainType="",e.subType="",e.componentIndex=0}(),t}(At);iy(li,At);Ss(li);Bb(li);Nb(li,tT);function tT(r){var t=[];return C(li.getClassesByMainType(r),function(e){t=t.concat(e.dependencies||e.prototype.dependencies||[])}),t=z(t,function(e){return Re(e).main}),r!=="dataset"&&J(t,"dataset")<=0&&t.unshift("dataset"),t}const ct=li;var ym="";typeof navigator<"u"&&(ym=navigator.platform||"");var Mn="rgba(0, 0, 0, 0.2)";const eT={darkMode:"auto",colorBy:"series",color:["#5470c6","#91cc75","#fac858","#ee6666","#73c0de","#3ba272","#fc8452","#9a60b4","#ea7ccc"],gradientColor:["#f6efa6","#d88273","#bf444c"],aria:{decal:{decals:[{color:Mn,dashArrayX:[1,0],dashArrayY:[2,5],symbolSize:1,rotation:Math.PI/6},{color:Mn,symbol:"circle",dashArrayX:[[8,8],[0,8,8,0]],dashArrayY:[6,0],symbolSize:.8},{color:Mn,dashArrayX:[1,0],dashArrayY:[4,3],rotation:-Math.PI/4},{color:Mn,dashArrayX:[[6,6],[0,6,6,0]],dashArrayY:[6,0]},{color:Mn,dashArrayX:[[1,0],[1,6]],dashArrayY:[1,0,6,0],rotation:Math.PI/4},{color:Mn,symbol:"triangle",dashArrayX:[[9,9],[0,9,9,0]],dashArrayY:[7,2],symbolSize:.75}]}},textStyle:{fontFamily:ym.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 mm=W(["tooltip","label","itemName","itemId","itemGroupId","seriesName"]),de="original",Vt="arrayRows",Te="objectRows",je="keyedColumns",mr="typedArray",_m="unknown",Oe="column",fi="row",qt={Must:1,Might:2,Not:3},Sm=gt();function rT(r){Sm(r).datasetMap=W()}function nT(r,t,e){var n={},i=xm(t);if(!i||!r)return n;var a=[],o=[],s=t.ecModel,u=Sm(s).datasetMap,l=i.uid+"_"+e.seriesLayoutBy,f,h;r=r.slice(),C(r,function(g,p){var y=H(g)?g:r[p]={name:g};y.type==="ordinal"&&f==null&&(f=p,h=d(y)),n[y.name]=[]});var c=u.get(l)||u.set(l,{categoryWayDim:h,valueWayDim:0});C(r,function(g,p){var y=g.name,m=d(g);if(f==null){var _=c.valueWayDim;v(n[y],_,m),v(o,_,m),c.valueWayDim+=m}else if(f===p)v(n[y],0,m),v(a,0,m);else{var _=c.categoryWayDim;v(n[y],_,m),v(o,_,m),c.categoryWayDim+=m}});function v(g,p,y){for(var m=0;mt)return r[n];return r[e-1]}function lT(r,t,e,n,i,a,o){a=a||r;var s=t(a),u=s.paletteIdx||0,l=s.paletteNameMap=s.paletteNameMap||{};if(l.hasOwnProperty(i))return l[i];var f=o==null||!n?e:uT(n,o);if(f=f||e,!(!f||!f.length)){var h=f[u];return i&&(l[i]=h),s.paletteIdx=(u+1)%f.length,h}}function fT(r,t){t(r).paletteIdx=0,t(r).paletteNameMap={}}var eo,_i,Ac,Lc="\0_ec_inner",hT=1,bm=function(r){O(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return t.prototype.init=function(e,n,i,a,o,s){a=a||{},this.option=null,this._theme=new At(a),this._locale=new At(o),this._optionManager=s},t.prototype.setOption=function(e,n,i){var a=Rc(n);this._optionManager.setOption(e,i,a),this._resetOption(null,a)},t.prototype.resetOption=function(e,n){return this._resetOption(e,Rc(n))},t.prototype._resetOption=function(e,n){var i=!1,a=this._optionManager;if(!e||e==="recreate"){var o=a.mountOption(e==="recreate");!this.option||e==="recreate"?Ac(this,o):(this.restoreData(),this._mergeOption(o,n)),i=!0}if((e==="timeline"||e==="media")&&this.restoreData(),!e||e==="recreate"||e==="timeline"){var s=a.getTimelineOption(this);s&&(i=!0,this._mergeOption(s,n))}if(!e||e==="recreate"||e==="media"){var u=a.getMediaOption(this);u.length&&C(u,function(l){i=!0,this._mergeOption(l,n)},this)}return i},t.prototype.mergeOption=function(e){this._mergeOption(e,null)},t.prototype._mergeOption=function(e,n){var i=this.option,a=this._componentsMap,o=this._componentsCount,s=[],u=W(),l=n&&n.replaceMergeMainTypeMap;rT(this),C(e,function(h,c){h!=null&&(ct.hasClass(c)?c&&(s.push(c),u.set(c,!0)):i[c]=i[c]==null?K(h):Q(i[c],h,!0))}),l&&l.each(function(h,c){ct.hasClass(c)&&!u.get(c)&&(s.push(c),u.set(c,!0))}),ct.topologicalTravel(s,ct.getAllClassMainTypes(),f,this);function f(h){var c=sT(this,h,_t(e[h])),v=a.get(h),d=v?l&&l.get(h)?"replaceMerge":"normalMerge":"replaceAll",g=$S(v,c,d);tx(g,h,ct),i[h]=null,a.set(h,null),o.set(h,0);var p=[],y=[],m=0,_;C(g,function(S,w){var x=S.existing,b=S.newOption;if(!b)x&&(x.mergeOption({},this),x.optionUpdated({},!1));else{var T=h==="series",M=ct.getClass(h,S.keyInfo.subType,!T);if(!M)return;if(h==="tooltip"){if(_)return;_=!0}if(x&&x.constructor===M)x.name=S.keyInfo.name,x.mergeOption(b,this),x.optionUpdated(b,!1);else{var D=k({componentIndex:w},S.keyInfo);x=new M(b,this,this,D),k(x,D),S.brandNew&&(x.__requireNewView=!0),x.init(b,this,this),x.optionUpdated(null,!0)}}x?(p.push(x.option),y.push(x),m++):(p.push(void 0),y.push(void 0))},this),i[h]=p,a.set(h,y),o.set(h,m),h==="series"&&eo(this)}this._seriesIndices||eo(this)},t.prototype.getOption=function(){var e=K(this.option);return C(e,function(n,i){if(ct.hasClass(i)){for(var a=_t(n),o=a.length,s=!1,u=o-1;u>=0;u--)a[u]&&!oa(a[u])?s=!0:(a[u]=null,!s&&o--);a.length=o,e[i]=a}}),delete e[Lc],e},t.prototype.getTheme=function(){return this._theme},t.prototype.getLocaleModel=function(){return this._locale},t.prototype.setUpdatePayload=function(e){this._payload=e},t.prototype.getUpdatePayload=function(){return this._payload},t.prototype.getComponent=function(e,n){var i=this._componentsMap.get(e);if(i){var a=i[n||0];if(a)return a;if(n==null){for(var o=0;o=t:e==="max"?r<=t:r===t}function wT(r,t){return r.join(",")===t.join(",")}const bT=mT;var ge=C,ca=H,Ec=["areaStyle","lineStyle","nodeStyle","linkStyle","chordStyle","label","labelLine"];function ku(r){var t=r&&r.itemStyle;if(!!t)for(var e=0,n=Ec.length;e=0;g--){var p=r[g];if(s||(v=p.data.rawIndexOf(p.stackedByDimension,c)),v>=0){var y=p.data.getByRawIndex(p.stackResultDimension,v);if(h>=0&&y>0||h<=0&&y<0){h=HS(h,y),d=y;break}}}return n[0]=h,n[1]=d,n})})}var Fs=function(){function r(t){this.data=t.data||(t.sourceFormat===je?{}:[]),this.sourceFormat=t.sourceFormat||_m,this.seriesLayoutBy=t.seriesLayoutBy||Oe,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;ng&&(g=_)}v[0]=d,v[1]=g}},i=function(){return this._data?this._data.length/this._dimSize:0};Gc=(t={},t[Vt+"_"+Oe]={pure:!0,appendData:a},t[Vt+"_"+fi]={pure:!0,appendData:function(){throw new Error('Do not support appendData when set seriesLayoutBy: "row".')}},t[Te]={pure:!0,appendData:a},t[je]={pure:!0,appendData:function(o){var s=this._data;C(o,function(u,l){for(var f=s[l]||(s[l]=[]),h=0;h<(u||[]).length;h++)f.push(u[h])})}},t[de]={appendData:a},t[mr]={persistent:!1,pure:!0,appendData:function(o){this._data=o},clean:function(){this._offset+=this.count(),this._data=null}},t);function a(o){for(var s=0;s=0&&(g=o.interpolatedValue[p])}return g!=null?g+"":""})}},r.prototype.getRawValue=function(t,e){return ri(this.getData(e),t)},r.prototype.formatTooltip=function(t,e,n){},r}();function Uc(r){var t,e;return H(r)?r.type&&(e=r):t=r,{text:t,frag:e}}function Qi(r){return new HT(r)}var HT=function(){function r(t){t=t||{},this._reset=t.reset,this._plan=t.plan,this._count=t.count,this._onDirty=t.onDirty,this._dirty=!0}return r.prototype.perform=function(t){var e=this._upstream,n=t&&t.skip;if(this._dirty&&e){var i=this.context;i.data=i.outputData=e.context.outputData}this.__pipeline&&(this.__pipeline.currentTask=this);var a;this._plan&&!n&&(a=this._plan(this.context));var o=f(this._modBy),s=this._modDataCount||0,u=f(t&&t.modBy),l=t&&t.modDataCount||0;(o!==u||s!==l)&&(a="reset");function f(m){return!(m>=1)&&(m=1),m}var h;(this._dirty||a==="reset")&&(this._dirty=!1,h=this._doReset(n)),this._modBy=u,this._modDataCount=l;var c=t&&t.step;if(e?this._dueEnd=e._outputDueEnd:this._dueEnd=this._count?this._count(this.context):1/0,this._progress){var v=this._dueIndex,d=Math.min(c!=null?this._dueIndex+c:1/0,this._dueEnd);if(!n&&(h||v1&&n>0?s:o}};return a;function o(){return t=r?null:ut},gte:function(r,t){return r>=t}},WT=function(){function r(t,e){if(!ft(e)){var n="";et(n)}this._opFn=km[t],this._rvalFloat=xr(e)}return r.prototype.evaluate=function(t){return ft(t)?this._opFn(t,this._rvalFloat):this._opFn(xr(t),this._rvalFloat)},r}(),Bm=function(){function r(t,e){var n=t==="desc";this._resultLT=n?1:-1,e==null&&(e=n?"min":"max"),this._incomparable=e==="min"?-1/0:1/0}return r.prototype.evaluate=function(t,e){var n=ft(t)?t:xr(t),i=ft(e)?e:xr(e),a=isNaN(n),o=isNaN(i);if(a&&(n=this._incomparable),o&&(i=this._incomparable),a&&o){var s=G(t),u=G(e);s&&(n=u?t:0),u&&(i=s?e:0)}return ni?-this._resultLT:0},r}(),UT=function(){function r(t,e){this._rval=e,this._isEQ=t,this._rvalTypeof=typeof e,this._rvalFloat=xr(e)}return r.prototype.evaluate=function(t){var e=t===this._rval;if(!e){var n=typeof t;n!==this._rvalTypeof&&(n==="number"||this._rvalTypeof==="number")&&(e=xr(t)===this._rvalFloat)}return this._isEQ?e:!e},r}();function YT(r,t){return r==="eq"||r==="ne"?new UT(r==="eq",t):Ze(km,r)?new WT(r,t):null}var $T=function(){function r(){}return r.prototype.getRawData=function(){throw new Error("not supported")},r.prototype.getRawDataItem=function(t){throw new Error("not supported")},r.prototype.cloneRawData=function(){},r.prototype.getDimensionInfo=function(t){},r.prototype.cloneAllDimensionInfo=function(){},r.prototype.count=function(){},r.prototype.retrieveValue=function(t,e){},r.prototype.retrieveValueFromItem=function(t,e){},r.prototype.convertValue=function(t,e){return Oo(t,e)},r}();function ZT(r,t){var e=new $T,n=r.data,i=e.sourceFormat=r.sourceFormat,a=r.startIndex,o="";r.seriesLayoutBy!==Oe&&et(o);var s=[],u={},l=r.dimensionsDefine;if(l)C(l,function(g,p){var y=g.name,m={index:p,name:y,displayName:g.displayName};if(s.push(m),y!=null){var _="";Ze(u,y)&&et(_),u[y]=m}});else for(var f=0;f65535?eC:rC}function Dn(){return[1/0,-1/0]}function nC(r){var t=r.constructor;return t===Array?r.slice():new t(r)}function Zc(r,t,e,n,i){var a=zm[e||"float"];if(i){var o=r[t],s=o&&o.length;if(s!==n){for(var u=new a(n),l=0;lp[1]&&(p[1]=g)}return this._rawCount=this._count=u,{start:s,end:u}},r.prototype._initDataFromProvider=function(t,e,n){for(var i=this._provider,a=this._chunks,o=this._dimensions,s=o.length,u=this._rawExtent,l=z(o,function(m){return m.property}),f=0;fy[1]&&(y[1]=p)}}!i.persistent&&i.clean&&i.clean(),this._rawCount=this._count=e,this._extent=[]},r.prototype.count=function(){return this._count},r.prototype.get=function(t,e){if(!(e>=0&&e=0&&e=this._rawCount||t<0)return-1;if(!this._indices)return t;var e=this._indices,n=e[t];if(n!=null&&nt)a=o-1;else return o}return-1},r.prototype.indicesOfNearest=function(t,e,n){var i=this._chunks,a=i[t],o=[];if(!a)return o;n==null&&(n=1/0);for(var s=1/0,u=-1,l=0,f=0,h=this.count();f=0&&u<0)&&(s=d,u=v,l=0),v===u&&(o[l++]=f))}return o.length=l,o},r.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 a=0;a=h&&m<=c||isNaN(m))&&(u[l++]=g),g++}d=!0}else if(a===2){for(var p=v[i[0]],_=v[i[1]],S=t[i[1]][0],w=t[i[1]][1],y=0;y=h&&m<=c||isNaN(m))&&(x>=S&&x<=w||isNaN(x))&&(u[l++]=g),g++}d=!0}}if(!d)if(a===1)for(var y=0;y=h&&m<=c||isNaN(m))&&(u[l++]=b)}else for(var y=0;yt[D][1])&&(T=!1)}T&&(u[l++]=e.getRawIndex(y))}return ly[1]&&(y[1]=p)}}}},r.prototype.lttbDownSample=function(t,e){var n=this.clone([t],!0),i=n._chunks,a=i[t],o=this.count(),s=0,u=Math.floor(1/e),l=this.getRawIndex(0),f,h,c,v=new(xi(this._rawCount))(Math.min((Math.ceil(o/u)+2)*2,o));v[s++]=l;for(var d=1;df&&(f=h,c=S)}A>0&&Af-d&&(u=f-d,s.length=u);for(var g=0;gh[1]&&(h[1]=y),c[v++]=m}return a._count=v,a._indices=c,a._updateGetRawIdx(),a},r.prototype.each=function(t,e){if(!!this._count)for(var n=t.length,i=this._chunks,a=0,o=this.count();au&&(u=h)}return o=[s,u],this._extent[t]=o,o},r.prototype.getRawDataItem=function(t){var e=this.getRawIndex(t);if(this._provider.persistent)return this._provider.getItem(e);for(var n=[],i=this._chunks,a=0;a=0?this._indices[t]:-1},r.prototype._updateGetRawIdx=function(){this.getRawIndex=this._indices?this._getRawIdx:this._getRawIdxIdentity},r.internalField=function(){function t(e,n,i,a){return Oo(e[a],this._dimensions[a])}Fu={arrayRows:t,objectRows:function(e,n,i,a){return Oo(e[n],this._dimensions[a])},keyedColumns:t,original:function(e,n,i,a){var o=e&&(e.value==null?e:e.value);return Oo(o instanceof Array?o[a]:o,this._dimensions[a])},typedArray:function(e,n,i,a){return e[a]}}}(),r}();const ef=iC;var Gm=function(){function r(t){this._sourceList=[],this._storeList=[],this._upstreamSignList=[],this._versionSignBase=0,this._dirty=!0,this._sourceHost=t}return r.prototype.dirty=function(){this._setLocalSource([],[]),this._storeList=[],this._dirty=!0},r.prototype._setLocalSource=function(t,e){this._sourceList=t,this._upstreamSignList=e,this._versionSignBase++,this._versionSignBase>9e10&&(this._versionSignBase=0)},r.prototype._getVersionSign=function(){return this._sourceHost.uid+"_"+this._versionSignBase},r.prototype.prepareSource=function(){this._isDirty()&&(this._createSource(),this._dirty=!1)},r.prototype._createSource=function(){this._setLocalSource([],[]);var t=this._sourceHost,e=this._getUpstreamSourceManagers(),n=!!e.length,i,a;if(ro(t)){var o=t,s=void 0,u=void 0,l=void 0;if(n){var f=e[0];f.prepareSource(),l=f.getSource(),s=l.data,u=l.sourceFormat,a=[f._getVersionSign()]}else s=o.get("data",!0),u=jt(s)?mr:de,a=[];var h=this._getSourceMetaRawOption()||{},c=l&&l.metaRawOption||{},v=nt(h.seriesLayoutBy,c.seriesLayoutBy)||null,d=nt(h.sourceHeader,c.sourceHeader),g=nt(h.dimensions,c.dimensions),p=v!==c.seriesLayoutBy||!!d!=!!c.sourceHeader||g;i=p?[tf(s,{seriesLayoutBy:v,sourceHeader:d,dimensions:g},u)]:[]}else{var y=t;if(n){var m=this._applyTransform(e);i=m.sourceList,a=m.upstreamSignList}else{var _=y.get("source",!0);i=[tf(_,this._getSourceMetaRawOption(),null)],a=[]}}this._setLocalSource(i,a)},r.prototype._applyTransform=function(t){var e=this._sourceHost,n=e.get("transform",!0),i=e.get("fromTransformResult",!0);if(i!=null){var a="";t.length!==1&&qc(a)}var o,s=[],u=[];return C(t,function(l){l.prepareSource();var f=l.getSource(i||0),h="";i!=null&&!f&&qc(h),s.push(f),u.push(l._getVersionSign())}),n?o=jT(n,s,{datasetIndex:e.componentIndex}):i!=null&&(o=[ET(s[0])]),{sourceList:o,upstreamSignList:u}},r.prototype._isDirty=function(){if(this._dirty)return!0;for(var t=this._getUpstreamSourceManagers(),e=0;e1||e>0&&!r.noHeader;return C(r.blocks,function(i){var a=Um(i);a>=t&&(t=a+ +(n&&(!a||rf(i)&&!i.noHeader)))}),t}return 0}function sC(r,t,e,n){var i=t.noHeader,a=lC(Um(t)),o=[],s=t.blocks||[];ke(!s||N(s)),s=s||[];var u=r.orderMode;if(t.sortBlocks&&u){s=s.slice();var l={valueAsc:"asc",valueDesc:"desc"};if(Ze(l,u)){var f=new Bm(l[u],null);s.sort(function(d,g){return f.evaluate(d.sortParam,g.sortParam)})}else u==="seriesDesc"&&s.reverse()}C(s,function(d,g){var p=t.valueFormatter,y=Wm(d)(p?k(k({},r),{valueFormatter:p}):r,d,g>0?a.html:0,n);y!=null&&o.push(y)});var h=r.renderMode==="richText"?o.join(a.richText):nf(o.join(""),i?e:a.html);if(i)return h;var c=Jl(t.header,"ordinal",r.useUTC),v=Vm(n,r.renderMode).nameStyle;return r.renderMode==="richText"?Ym(r,c,v)+a.richText+h:nf('
'+ue(c)+"
"+h,e)}function uC(r,t,e,n){var i=r.renderMode,a=t.noName,o=t.noValue,s=!t.markerType,u=t.name,l=r.useUTC,f=t.valueFormatter||r.valueFormatter||function(S){return S=N(S)?S:[S],z(S,function(w,x){return Jl(w,N(v)?v[x]:v,l)})};if(!(a&&o)){var h=s?"":r.markupStyleCreator.makeTooltipMarker(t.markerType,t.markerColor||"#333",i),c=a?"":Jl(u,"ordinal",l),v=t.valueType,d=o?[]:f(t.value),g=!s||!a,p=!s&&a,y=Vm(n,i),m=y.nameStyle,_=y.valueStyle;return i==="richText"?(s?"":h)+(a?"":Ym(r,c,m))+(o?"":vC(r,d,g,p,_)):nf((s?"":h)+(a?"":fC(c,!s,m))+(o?"":hC(d,g,p,_)),e)}}function Kc(r,t,e,n,i,a){if(!!r){var o=Wm(r),s={useUTC:i,renderMode:e,orderMode:n,markupStyleCreator:t,valueFormatter:r.valueFormatter};return o(s,r,0,a)}}function lC(r){return{html:aC[r],richText:oC[r]}}function nf(r,t){var e='
',n="margin: "+t+"px 0 0";return'
'+r+e+"
"}function fC(r,t,e){var n=t?"margin-left:2px":"";return''+ue(r)+""}function hC(r,t,e,n){var i=e?"10px":"20px",a=t?"float:right;margin-left:"+i:"";return r=N(r)?r:[r],''+z(r,function(o){return ue(o)}).join("  ")+""}function Ym(r,t,e){return r.markupStyleCreator.wrapRichTextStyle(t,e)}function vC(r,t,e,n,i){var a=[i],o=n?10:20;return e&&a.push({padding:[0,0,0,o],align:"right"}),r.markupStyleCreator.wrapRichTextStyle(N(t)?t.join(" "):t,a)}function cC(r,t){var e=r.getData().getItemVisual(t,"style"),n=e[r.visualDrawType];return hn(n)}function $m(r,t){var e=r.get("padding");return e!=null?e:t==="richText"?[8,10]:10}var zu=function(){function r(){this.richTextStyles={},this._nextStyleNameId=Kg()}return r.prototype._generateStyleName=function(){return"__EC_aUTo_"+this._nextStyleNameId++},r.prototype.makeTooltipMarker=function(t,e,n){var i=n==="richText"?this._generateStyleName():null,a=qb({color:e,type:t,renderMode:n,markerId:i});return G(a)?a:(this.richTextStyles[i]=a.style,a.content)},r.prototype.wrapRichTextStyle=function(t,e){var n={};N(e)?C(e,function(a){return k(n,a)}):k(n,e);var i=this._generateStyleName();return this.richTextStyles[i]=n,"{"+i+"|"+t+"}"},r}();function dC(r){var t=r.series,e=r.dataIndex,n=r.multipleSeries,i=t.getData(),a=i.mapDimensionsAll("defaultedTooltip"),o=a.length,s=t.getRawValue(e),u=N(s),l=cC(t,e),f,h,c,v;if(o>1||u&&!o){var d=pC(s,t,e,a,l);f=d.inlineValues,h=d.inlineValueTypes,c=d.blocks,v=d.inlineValues[0]}else if(o){var g=i.getDimensionInfo(a[0]);v=f=ri(i,e,a[0]),h=g.type}else v=f=u?s[0]:s;var p=qf(t),y=p&&t.name||"",m=i.getName(e),_=n?y:m;return da("section",{header:y,noHeader:n||!p,sortParam:v,blocks:[da("nameValue",{markerType:"item",markerColor:l,name:_,noName:!Pe(_),value:f,valueType:h})].concat(c||[])})}function pC(r,t,e,n,i){var a=t.getData(),o=oi(r,function(h,c,v){var d=a.getDimensionInfo(v);return h=h||d&&d.tooltip!==!1&&d.displayName!=null},!1),s=[],u=[],l=[];n.length?C(n,function(h){f(ri(a,e,h),h)}):C(r,f);function f(h,c){var v=a.getDimensionInfo(c);!v||v.otherDims.tooltip===!1||(o?l.push(da("nameValue",{markerType:"subItem",markerColor:i,name:v.displayName,value:h,valueType:v.type})):(s.push(h),u.push(v.type)))}return{inlineValues:s,inlineValueTypes:u,blocks:l}}var nr=gt();function no(r,t){return r.getName(t)||r.getId(t)}var ko="__universalTransitionEnabled",Gs=function(r){O(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e._selectedDataIndicesMap={},e}return t.prototype.init=function(e,n,i){this.seriesIndex=this.componentIndex,this.dataTask=Qi({count:yC,reset:mC}),this.dataTask.context={model:this},this.mergeDefaultAndTheme(e,i);var a=nr(this).sourceManager=new Gm(this);a.prepareSource();var o=this.getInitialData(e,i);Jc(o,this),this.dataTask.context.data=o,nr(this).dataBeforeProcessed=o,Qc(this),this._initSelectedMapFromData(o)},t.prototype.mergeDefaultAndTheme=function(e,n){var i=va(this),a=i?Pa(e):{},o=this.subType;ct.hasClass(o)&&(o+="Series"),Q(e,n.getTheme().get(this.subType)),Q(e,this.getDefaultOption()),Rv(e,"label",["show"]),this.fillDataTextStyle(e.data),i&&ei(e,a,i)},t.prototype.mergeOption=function(e,n){e=Q(this.option,e,!0),this.fillDataTextStyle(e.data);var i=va(this);i&&ei(this.option,e,i);var a=nr(this).sourceManager;a.dirty(),a.prepareSource();var o=this.getInitialData(e,n);Jc(o,this),this.dataTask.dirty(),this.dataTask.context.data=o,nr(this).dataBeforeProcessed=o,Qc(this),this._initSelectedMapFromData(o)},t.prototype.fillDataTextStyle=function(e){if(e&&!jt(e))for(var n=["show"],i=0;ithis.getShallow("animationThreshold")&&(n=!1),!!n},t.prototype.restoreData=function(){this.dataTask.dirty()},t.prototype.getColorFromPalette=function(e,n,i){var a=this.ecModel,o=mh.prototype.getColorFromPalette.call(this,e,n,i);return o||(o=a.getColorFromPalette(e,n,i)),o},t.prototype.coordDimToDataDim=function(e){return this.getRawData().mapDimensionsAll(e)},t.prototype.getProgressive=function(){return this.get("progressive")},t.prototype.getProgressiveThreshold=function(){return this.get("progressiveThreshold")},t.prototype.select=function(e,n){this._innerSelect(this.getData(n),e)},t.prototype.unselect=function(e,n){var i=this.option.selectedMap;if(!!i){var a=this.option.selectedMode,o=this.getData(n);if(a==="series"||i==="all"){this.option.selectedMap={},this._selectedDataIndicesMap={};return}for(var s=0;s=0&&i.push(o)}return i},t.prototype.isSelected=function(e,n){var i=this.option.selectedMap;if(!i)return!1;var a=this.getData(n);return(i==="all"||i[no(a,e)])&&!a.getItemModel(e).get(["select","disabled"])},t.prototype.isUniversalTransitionEnabled=function(){if(this[ko])return!0;var e=this.option.universalTransition;return e?e===!0?!0:e&&e.enabled:!1},t.prototype._innerSelect=function(e,n){var i,a,o=this.option,s=o.selectedMode,u=n.length;if(!(!s||!u)){if(s==="series")o.selectedMap="all";else if(s==="multiple"){H(o.selectedMap)||(o.selectedMap={});for(var l=o.selectedMap,f=0;f0&&this._innerSelect(e,n)}},t.registerClass=function(e){return ct.registerClass(e)},t.protoInitialize=function(){var e=t.prototype;e.type="series.__base__",e.seriesIndex=0,e.ignoreStyleOnData=!1,e.hasSymbolVisual=!1,e.defaultSymbol="circle",e.visualStyleAccessPath="itemStyle",e.visualDrawType="fill"}(),t}(ct);Ne(Gs,GT);Ne(Gs,mh);iy(Gs,ct);function Qc(r){var t=r.name;qf(r)||(r.name=gC(r)||t)}function gC(r){var t=r.getRawData(),e=t.mapDimensionsAll("seriesName"),n=[];return C(e,function(i){var a=t.getDimensionInfo(i);a.displayName&&n.push(a.displayName)}),n.join(" ")}function yC(r){return r.model.getRawData().count()}function mC(r){var t=r.model;return t.setData(t.getRawData().cloneShallow()),_C}function _C(r,t){t.outputData&&r.end>t.outputData.count()&&t.model.getRawData().cloneShallow(t.outputData)}function Jc(r,t){C(y1(r.CHANGABLE_METHODS,r.DOWNSAMPLE_METHODS),function(e){r.wrapMethod(e,ot(SC,t))})}function SC(r,t){var e=af(r);return e&&e.setOutputEnd((t||this).count()),t}function af(r){var t=(r.ecModel||{}).scheduler,e=t&&t.getPipeline(r.uid);if(e){var n=e.currentTask;if(n){var i=n.agentStubMap;i&&(n=i.get(r.uid))}return n}}const pa=Gs;var Th=function(){function r(){this.group=new bt,this.uid=Ia("viewComponent")}return r.prototype.init=function(t,e){},r.prototype.render=function(t,e,n,i){},r.prototype.dispose=function(t,e){},r.prototype.updateView=function(t,e,n,i){},r.prototype.updateLayout=function(t,e,n,i){},r.prototype.updateVisual=function(t,e,n,i){},r.prototype.toggleBlurSeries=function(t,e,n){},r.prototype.eachRendered=function(t){var e=this.group;e&&e.traverse(t)},r}();Qf(Th);Ss(Th);const ve=Th;function Zm(){var r=gt();return function(t){var e=r(t),n=t.pipelineContext,i=!!e.large,a=!!e.progressiveRender,o=e.large=!!(n&&n.large),s=e.progressiveRender=!!(n&&n.progressiveRender);return(i!==o||a!==s)&&"reset"}}var Xm=gt(),xC=Zm(),Ch=function(){function r(){this.group=new bt,this.uid=Ia("viewChart"),this.renderTask=Qi({plan:wC,reset:bC}),this.renderTask.context={view:this}}return r.prototype.init=function(t,e){},r.prototype.render=function(t,e,n,i){},r.prototype.highlight=function(t,e,n,i){var a=t.getData(i&&i.dataType);!a||td(a,i,"emphasis")},r.prototype.downplay=function(t,e,n,i){var a=t.getData(i&&i.dataType);!a||td(a,i,"normal")},r.prototype.remove=function(t,e){this.group.removeAll()},r.prototype.dispose=function(t,e){},r.prototype.updateView=function(t,e,n,i){this.render(t,e,n,i)},r.prototype.updateLayout=function(t,e,n,i){this.render(t,e,n,i)},r.prototype.updateVisual=function(t,e,n,i){this.render(t,e,n,i)},r.prototype.eachRendered=function(t){uh(this.group,t)},r.markUpdateMethod=function(t,e){Xm(t).updateMethod=e},r.protoInitialize=function(){var t=r.prototype;t.type="chart"}(),r}();function jc(r,t,e){r&&Zl(r)&&(t==="emphasis"?jn:ti)(r,e)}function td(r,t,e){var n=ln(r,t),i=t&&t.highlightKey!=null?Dw(t.highlightKey):null;n!=null?C(_t(n),function(a){jc(r.getItemGraphicEl(a),e,i)}):r.eachItemGraphicEl(function(a){jc(a,e,i)})}Qf(Ch);Ss(Ch);function wC(r){return xC(r.model)}function bC(r){var t=r.model,e=r.ecModel,n=r.api,i=r.payload,a=t.pipelineContext.progressiveRender,o=r.view,s=i&&Xm(i).updateMethod,u=a?"incrementalPrepareRender":s&&o[s]?s:"render";return u!=="render"&&o[u](t,e,n,i),TC[u]}var TC={incrementalPrepareRender:{progress:function(r,t){t.view.incrementalRender(r,t.model,t.ecModel,t.api,t.payload)}},render:{forceFirstProgress:!0,progress:function(r,t){t.view.render(t.model,t.ecModel,t.api,t.payload)}}};const _r=Ch;var es="\0__throttleOriginMethod",ed="\0__throttleRate",rd="\0__throttleType";function qm(r,t,e){var n,i=0,a=0,o=null,s,u,l,f;t=t||0;function h(){a=new Date().getTime(),o=null,r.apply(u,l||[])}var c=function(){for(var v=[],d=0;d=0?h():o=setTimeout(h,-s),i=n};return c.clear=function(){o&&(clearTimeout(o),o=null)},c.debounceNextCall=function(v){f=v},c}function Hs(r,t,e,n){var i=r[t];if(!!i){var a=i[es]||i,o=i[rd],s=i[ed];if(s!==e||o!==n){if(e==null||!n)return r[t]=a;i=r[t]=qm(a,e,n==="debounce"),i[es]=a,i[rd]=n,i[ed]=e}return i}}function rs(r,t){var e=r[t];e&&e[es]&&(e.clear&&e.clear(),r[t]=e[es])}var nd=gt(),id={itemStyle:sa(nm,!0),lineStyle:sa(rm,!0)},CC={lineStyle:"stroke",itemStyle:"fill"};function Km(r,t){var e=r.visualStyleMapper||id[t];return e||(console.warn("Unkown style type '"+t+"'."),id.itemStyle)}function Qm(r,t){var e=r.visualDrawType||CC[t];return e||(console.warn("Unkown style type '"+t+"'."),"fill")}var MC={createOnAllSeries:!0,performRawSeries:!0,reset:function(r,t){var e=r.getData(),n=r.visualStyleAccessPath||"itemStyle",i=r.getModel(n),a=Km(r,n),o=a(i),s=i.getShallow("decal");s&&(e.setVisual("decal",s),s.dirty=!0);var u=Qm(r,n),l=o[u],f=U(l)?l:null,h=o.fill==="auto"||o.stroke==="auto";if(!o[u]||f||h){var c=r.getColorFromPalette(r.name,null,t.getSeriesCount());o[u]||(o[u]=c,e.setVisual("colorFromPalette",!0)),o.fill=o.fill==="auto"||U(o.fill)?c:o.fill,o.stroke=o.stroke==="auto"||U(o.stroke)?c:o.stroke}if(e.setVisual("style",o),e.setVisual("drawType",u),!t.isSeriesFiltered(r)&&f)return e.setVisual("colorFromPalette",!1),{dataEach:function(v,d){var g=r.getDataParams(d),p=k({},o);p[u]=f(g),v.setItemVisual(d,"style",p)}}}},wi=new At,DC={createOnAllSeries:!0,performRawSeries:!0,reset:function(r,t){if(!(r.ignoreStyleOnData||t.isSeriesFiltered(r))){var e=r.getData(),n=r.visualStyleAccessPath||"itemStyle",i=Km(r,n),a=e.getVisual("drawType");return{dataEach:e.hasItemOption?function(o,s){var u=o.getRawDataItem(s);if(u&&u[n]){wi.option=u[n];var l=i(wi),f=o.ensureUniqueItemVisual(s,"style");k(f,l),wi.option.decal&&(o.setItemVisual(s,"decal",wi.option.decal),wi.option.decal.dirty=!0),a in l&&o.setItemVisual(s,"colorFromPalette",!1)}}:null}}}},AC={performRawSeries:!0,overallReset:function(r){var t=W();r.eachSeries(function(e){var n=e.getColorBy();if(!e.isColorBySeries()){var i=e.type+"-"+n,a=t.get(i);a||(a={},t.set(i,a)),nd(e).scope=a}}),r.eachSeries(function(e){if(!(e.isColorBySeries()||r.isSeriesFiltered(e))){var n=e.getRawData(),i={},a=e.getData(),o=nd(e).scope,s=e.visualStyleAccessPath||"itemStyle",u=Qm(e,s);a.each(function(l){var f=a.getRawIndex(l);i[f]=l}),n.each(function(l){var f=i[l],h=a.getItemVisual(f,"colorFromPalette");if(h){var c=a.ensureUniqueItemVisual(f,"style"),v=n.getName(l)||l+"",d=n.count();c[u]=e.getColorFromPalette(v,o,d)}})}})}},io=Math.PI;function LC(r,t){t=t||{},q(t,{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 e=new bt,n=new yt({style:{fill:t.maskColor},zlevel:t.zlevel,z:1e4});e.add(n);var i=new Dt({style:{text:t.text,fill:t.textColor,fontSize:t.fontSize,fontWeight:t.fontWeight,fontStyle:t.fontStyle,fontFamily:t.fontFamily},zlevel:t.zlevel,z:10001}),a=new yt({style:{fill:"none"},textContent:i,textConfig:{position:"right",distance:10},zlevel:t.zlevel,z:10001});e.add(a);var o;return t.showSpinner&&(o=new ih({shape:{startAngle:-io/2,endAngle:-io/2+.1,r:t.spinnerRadius},style:{stroke:t.color,lineCap:"round",lineWidth:t.lineWidth},zlevel:t.zlevel,z:10001}),o.animateShape(!0).when(1e3,{endAngle:io*3/2}).start("circularInOut"),o.animateShape(!0).when(1e3,{startAngle:io*3/2}).delay(300).start("circularInOut"),e.add(o)),e.resize=function(){var s=i.getBoundingRect().width,u=t.showSpinner?t.spinnerRadius:0,l=(r.getWidth()-u*2-(t.showSpinner&&s?10:0)-s)/2-(t.showSpinner&&s?0:5+s/2)+(t.showSpinner?0:s/2)+(s?0:u),f=r.getHeight()/2;t.showSpinner&&o.setShape({cx:l,cy:f}),a.setShape({x:l-u,y:f-u,width:u*2,height:u*2}),n.setShape({x:0,y:0,width:r.getWidth(),height:r.getHeight()})},e.resize(),e}var IC=function(){function r(t,e,n,i){this._stageTaskMap=W(),this.ecInstance=t,this.api=e,n=this._dataProcessorHandlers=n.slice(),i=this._visualHandlers=i.slice(),this._allHandlers=n.concat(i)}return r.prototype.restoreData=function(t,e){t.restoreData(e),this._stageTaskMap.each(function(n){var i=n.overallTask;i&&i.dirty()})},r.prototype.getPerformArgs=function(t,e){if(!!t.__pipeline){var n=this._pipelineMap.get(t.__pipeline.id),i=n.context,a=!e&&n.progressiveEnabled&&(!i||i.progressiveRender)&&t.__idxInPipeline>n.blockIndex,o=a?n.step:null,s=i&&i.modDataCount,u=s!=null?Math.ceil(s/o):null;return{step:o,modBy:u,modDataCount:s}}},r.prototype.getPipeline=function(t){return this._pipelineMap.get(t)},r.prototype.updateStreamModes=function(t,e){var n=this._pipelineMap.get(t.uid),i=t.getData(),a=i.count(),o=n.progressiveEnabled&&e.incrementalPrepareRender&&a>=n.threshold,s=t.get("large")&&a>=t.get("largeThreshold"),u=t.get("progressiveChunkMode")==="mod"?a:null;t.pipelineContext=n.context={progressiveRender:o,modDataCount:u,large:s}},r.prototype.restorePipelines=function(t){var e=this,n=e._pipelineMap=W();t.eachSeries(function(i){var a=i.getProgressive(),o=i.uid;n.set(o,{id:o,head:null,tail:null,threshold:i.getProgressiveThreshold(),progressiveEnabled:a&&!(i.preventIncremental&&i.preventIncremental()),blockIndex:-1,step:Math.round(a||700),count:0}),e._pipe(i,i.dataTask)})},r.prototype.prepareStageTasks=function(){var t=this._stageTaskMap,e=this.api.getModel(),n=this.api;C(this._allHandlers,function(i){var a=t.get(i.uid)||t.set(i.uid,{}),o="";ke(!(i.reset&&i.overallReset),o),i.reset&&this._createSeriesStageTask(i,a,e,n),i.overallReset&&this._createOverallStageTask(i,a,e,n)},this)},r.prototype.prepareView=function(t,e,n,i){var a=t.renderTask,o=a.context;o.model=e,o.ecModel=n,o.api=i,a.__block=!t.incrementalPrepareRender,this._pipe(e,a)},r.prototype.performDataProcessorTasks=function(t,e){this._performStageTasks(this._dataProcessorHandlers,t,e,{block:!0})},r.prototype.performVisualTasks=function(t,e,n){this._performStageTasks(this._visualHandlers,t,e,n)},r.prototype._performStageTasks=function(t,e,n,i){i=i||{};var a=!1,o=this;C(t,function(u,l){if(!(i.visualType&&i.visualType!==u.visualType)){var f=o._stageTaskMap.get(u.uid),h=f.seriesTaskMap,c=f.overallTask;if(c){var v,d=c.agentStubMap;d.each(function(p){s(i,p)&&(p.dirty(),v=!0)}),v&&c.dirty(),o.updatePayload(c,n);var g=o.getPerformArgs(c,i.block);d.each(function(p){p.perform(g)}),c.perform(g)&&(a=!0)}else h&&h.each(function(p,y){s(i,p)&&p.dirty();var m=o.getPerformArgs(p,i.block);m.skip=!u.performRawSeries&&e.isSeriesFiltered(p.context.model),o.updatePayload(p,n),p.perform(m)&&(a=!0)})}});function s(u,l){return u.setDirty&&(!u.dirtyMap||u.dirtyMap.get(l.__pipeline.id))}this.unfinished=a||this.unfinished},r.prototype.performSeriesTasks=function(t){var e;t.eachSeries(function(n){e=n.dataTask.perform()||e}),this.unfinished=e||this.unfinished},r.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)})},r.prototype.updatePayload=function(t,e){e!=="remain"&&(t.context.payload=e)},r.prototype._createSeriesStageTask=function(t,e,n,i){var a=this,o=e.seriesTaskMap,s=e.seriesTaskMap=W(),u=t.seriesType,l=t.getTargetSeries;t.createOnAllSeries?n.eachRawSeries(f):u?n.eachRawSeriesByType(u,f):l&&l(n,i).each(f);function f(h){var c=h.uid,v=s.set(c,o&&o.get(c)||Qi({plan:kC,reset:BC,count:FC}));v.context={model:h,ecModel:n,api:i,useClearVisual:t.isVisual&&!t.isLayout,plan:t.plan,reset:t.reset,scheduler:a},a._pipe(h,v)}},r.prototype._createOverallStageTask=function(t,e,n,i){var a=this,o=e.overallTask=e.overallTask||Qi({reset:PC});o.context={ecModel:n,api:i,overallReset:t.overallReset,scheduler:a};var s=o.agentStubMap,u=o.agentStubMap=W(),l=t.seriesType,f=t.getTargetSeries,h=!0,c=!1,v="";ke(!t.createOnAllSeries,v),l?n.eachRawSeriesByType(l,d):f?f(n,i).each(d):(h=!1,C(n.getSeries(),d));function d(g){var p=g.uid,y=u.set(p,s&&s.get(p)||(c=!0,Qi({reset:RC,onDirty:OC})));y.context={model:g,overallProgress:h},y.agent=o,y.__block=h,a._pipe(g,y)}c&&o.dirty()},r.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},r.wrapStageHandler=function(t,e){return U(t)&&(t={overallReset:t,seriesType:zC(t)}),t.uid=Ia("stageHandler"),e&&(t.visualType=e),t},r}();function PC(r){r.overallReset(r.ecModel,r.api,r.payload)}function RC(r){return r.overallProgress&&EC}function EC(){this.agent.dirty(),this.getDownstream().dirty()}function OC(){this.agent&&this.agent.dirty()}function kC(r){return r.plan?r.plan(r.model,r.ecModel,r.api,r.payload):null}function BC(r){r.useClearVisual&&r.data.clearAllVisual();var t=r.resetDefines=_t(r.reset(r.model,r.ecModel,r.api,r.payload));return t.length>1?z(t,function(e,n){return Jm(n)}):NC}var NC=Jm(0);function Jm(r){return function(t,e){var n=e.data,i=e.resetDefines[r];if(i&&i.dataEach)for(var a=t.start;a0&&v===l.length-c.length){var d=l.slice(0,v);d!=="data"&&(e.mainType=d,e[c.toLowerCase()]=u,f=!0)}}s.hasOwnProperty(l)&&(n[l]=u,f=!0),f||(i[l]=u)})}return{cptQuery:e,dataQuery:n,otherQuery:i}},r.prototype.filter=function(t,e){var n=this.eventInfo;if(!n)return!0;var i=n.targetEl,a=n.packedEvent,o=n.model,s=n.view;if(!o||!s)return!0;var u=e.cptQuery,l=e.dataQuery;return f(u,o,"mainType")&&f(u,o,"subType")&&f(u,o,"index","componentIndex")&&f(u,o,"name")&&f(u,o,"id")&&f(l,a,"name")&&f(l,a,"dataIndex")&&f(l,a,"dataType")&&(!s.filterForExposedEvent||s.filterForExposedEvent(t,e.otherQuery,i,a));function f(h,c,v,d){return h[v]==null||c[d||v]===h[v]}},r.prototype.afterTrigger=function(){this.eventInfo=null},r}(),of=["symbol","symbolSize","symbolRotate","symbolOffset"],ud=of.concat(["symbolKeepAspect"]),WC={createOnAllSeries:!0,performRawSeries:!0,reset:function(r,t){var e=r.getData();if(r.legendIcon&&e.setVisual("legendIcon",r.legendIcon),!r.hasSymbolVisual)return;for(var n={},i={},a=!1,o=0;o0)?null:r==="dashed"?[4*t,2*t]:r==="dotted"?[t]:ft(r)?[r]:N(r)?r:null}function i0(r){var t=r.style,e=t.lineDash&&t.lineWidth>0&&fM(t.lineDash,t.lineWidth),n=t.lineDashOffset;if(e){var i=t.strokeNoScale&&r.getLineScale?r.getLineScale():1;i&&i!==1&&(e=z(e,function(a){return a/i}),n/=i)}return[e,n]}var hM=new qe(!0);function as(r){var t=r.stroke;return!(t==null||t==="none"||!(r.lineWidth>0))}function ld(r){return typeof r=="string"&&r!=="none"}function os(r){var t=r.fill;return t!=null&&t!=="none"}function fd(r,t){if(t.fillOpacity!=null&&t.fillOpacity!==1){var e=r.globalAlpha;r.globalAlpha=t.fillOpacity*t.opacity,r.fill(),r.globalAlpha=e}else r.fill()}function hd(r,t){if(t.strokeOpacity!=null&&t.strokeOpacity!==1){var e=r.globalAlpha;r.globalAlpha=t.strokeOpacity*t.opacity,r.stroke(),r.globalAlpha=e}else r.stroke()}function uf(r,t,e){var n=ay(t.image,t.__image,e);if(xs(n)){var i=r.createPattern(n,t.repeat||"repeat");if(typeof DOMMatrix=="function"&&i&&i.setTransform){var a=new DOMMatrix;a.translateSelf(t.x||0,t.y||0),a.rotateSelf(0,0,(t.rotation||0)*m1),a.scaleSelf(t.scaleX||1,t.scaleY||1),i.setTransform(a)}return i}}function vM(r,t,e,n){var i,a=as(e),o=os(e),s=e.strokePercent,u=s<1,l=!t.path;(!t.silent||u)&&l&&t.createPathProxy();var f=t.path||hM,h=t.__dirty;if(!n){var c=e.fill,v=e.stroke,d=o&&!!c.colorStops,g=a&&!!v.colorStops,p=o&&!!c.image,y=a&&!!v.image,m=void 0,_=void 0,S=void 0,w=void 0,x=void 0;(d||g)&&(x=t.getBoundingRect()),d&&(m=h?sf(r,c,x):t.__canvasFillGradient,t.__canvasFillGradient=m),g&&(_=h?sf(r,v,x):t.__canvasStrokeGradient,t.__canvasStrokeGradient=_),p&&(S=h||!t.__canvasFillPattern?uf(r,c,t):t.__canvasFillPattern,t.__canvasFillPattern=S),y&&(w=h||!t.__canvasStrokePattern?uf(r,v,t):t.__canvasStrokePattern,t.__canvasStrokePattern=S),d?r.fillStyle=m:p&&(S?r.fillStyle=S:o=!1),g?r.strokeStyle=_:y&&(w?r.strokeStyle=w:a=!1)}var b=t.getGlobalScale();f.setScale(b[0],b[1],t.segmentIgnoreThreshold);var T,M;r.setLineDash&&e.lineDash&&(i=i0(t),T=i[0],M=i[1]);var D=!0;(l||h&kn)&&(f.setDPR(r.dpr),u?f.setContext(null):(f.setContext(r),D=!1),f.reset(),t.buildPath(f,t.shape,n),f.toStatic(),t.pathUpdated()),D&&f.rebuildPath(r,u?s:1),T&&(r.setLineDash(T),r.lineDashOffset=M),n||(e.strokeFirst?(a&&hd(r,e),o&&fd(r,e)):(o&&fd(r,e),a&&hd(r,e))),T&&r.setLineDash([])}function cM(r,t,e){var n=t.__image=ay(e.image,t.__image,t,t.onload);if(!(!n||!xs(n))){var i=e.x||0,a=e.y||0,o=t.getWidth(),s=t.getHeight(),u=n.width/n.height;if(o==null&&s!=null?o=s*u:s==null&&o!=null?s=o/u:o==null&&s==null&&(o=n.width,s=n.height),e.sWidth&&e.sHeight){var l=e.sx||0,f=e.sy||0;r.drawImage(n,l,f,e.sWidth,e.sHeight,i,a,o,s)}else if(e.sx&&e.sy){var l=e.sx,f=e.sy,h=o-l,c=s-f;r.drawImage(n,l,f,h,c,i,a,o,s)}else r.drawImage(n,i,a,o,s)}}function dM(r,t,e){var n,i=e.text;if(i!=null&&(i+=""),i){r.font=e.font||sn,r.textAlign=e.textAlign,r.textBaseline=e.textBaseline;var a=void 0,o=void 0;r.setLineDash&&e.lineDash&&(n=i0(t),a=n[0],o=n[1]),a&&(r.setLineDash(a),r.lineDashOffset=o),e.strokeFirst?(as(e)&&r.strokeText(i,e.x,e.y),os(e)&&r.fillText(i,e.x,e.y)):(os(e)&&r.fillText(i,e.x,e.y),as(e)&&r.strokeText(i,e.x,e.y)),a&&r.setLineDash([])}}var vd=["shadowBlur","shadowOffsetX","shadowOffsetY"],cd=[["lineCap","butt"],["lineJoin","miter"],["miterLimit",10]];function a0(r,t,e,n,i){var a=!1;if(!n&&(e=e||{},t===e))return!1;if(n||t.opacity!==e.opacity){Zt(r,i),a=!0;var o=Math.max(Math.min(t.opacity,1),0);r.globalAlpha=isNaN(o)?rn.opacity:o}(n||t.blend!==e.blend)&&(a||(Zt(r,i),a=!0),r.globalCompositeOperation=t.blend||rn.blend);for(var s=0;s0&&e.unfinished);e.unfinished||this._zr.flush()}}},t.prototype.getDom=function(){return this._dom},t.prototype.getId=function(){return this.id},t.prototype.getZr=function(){return this._zr},t.prototype.isSSR=function(){return this._ssr},t.prototype.setOption=function(e,n,i){if(!this[Rt]){if(this._disposed){this.id;return}var a,o,s;if(H(n)&&(i=n.lazyUpdate,a=n.silent,o=n.replaceMerge,s=n.transition,n=n.notMerge),this[Rt]=!0,!this._model||n){var u=new bT(this._api),l=this._theme,f=this._model=new Tm;f.scheduler=this._scheduler,f.ssr=this._ssr,f.init(null,null,null,l,this._locale,u)}this._model.setOption(e,{replaceMerge:o},ff);var h={seriesTransition:s,optionChanged:!0};if(i)this[Ut]={silent:a,updateParams:h},this[Rt]=!1,this.getZr().wakeUp();else{try{Ln(this),ir.update.call(this,null,h)}catch(c){throw this[Ut]=null,this[Rt]=!1,c}this._ssr||this._zr.flush(),this[Ut]=null,this[Rt]=!1,bi.call(this,a),Ti.call(this,a)}}},t.prototype.setTheme=function(){},t.prototype.getModel=function(){return this._model},t.prototype.getOption=function(){return this._model&&this._model.getOption()},t.prototype.getWidth=function(){return this._zr.getWidth()},t.prototype.getHeight=function(){return this._zr.getHeight()},t.prototype.getDevicePixelRatio=function(){return this._zr.painter.dpr||MM&&window.devicePixelRatio||1},t.prototype.getRenderedCanvas=function(e){return this.renderToCanvas(e)},t.prototype.renderToCanvas=function(e){e=e||{};var n=this._zr.painter;return n.getRenderedCanvas({backgroundColor:e.backgroundColor||this._model.get("backgroundColor"),pixelRatio:e.pixelRatio||this.getDevicePixelRatio()})},t.prototype.renderToSVGString=function(e){e=e||{};var n=this._zr.painter;return n.renderToString({useViewBox:e.useViewBox})},t.prototype.getSvgDataURL=function(){if(!!j.svgSupported){var e=this._zr,n=e.storage.getDisplayList();return C(n,function(i){i.stopAnimation(null,!0)}),e.painter.toDataURL()}},t.prototype.getDataURL=function(e){if(this._disposed){this.id;return}e=e||{};var n=e.excludeComponents,i=this._model,a=[],o=this;C(n,function(u){i.eachComponent({mainType:u},function(l){var f=o._componentsMap[l.__viewId];f.group.ignore||(a.push(f),f.group.ignore=!0)})});var s=this._zr.painter.getType()==="svg"?this.getSvgDataURL():this.renderToCanvas(e).toDataURL("image/"+(e&&e.type||"png"));return C(a,function(u){u.group.ignore=!1}),s},t.prototype.getConnectedDataURL=function(e){if(this._disposed){this.id;return}var n=e.type==="svg",i=this.group,a=Math.min,o=Math.max,s=1/0;if(Ld[i]){var u=s,l=s,f=-s,h=-s,c=[],v=e&&e.pixelRatio||this.getDevicePixelRatio();C(ji,function(_,S){if(_.group===i){var w=n?_.getZr().painter.getSvgDom().innerHTML:_.renderToCanvas(K(e)),x=_.getDom().getBoundingClientRect();u=a(x.left,u),l=a(x.top,l),f=o(x.right,f),h=o(x.bottom,h),c.push({dom:w,left:x.left,top:x.top})}}),u*=v,l*=v,f*=v,h*=v;var d=f-u,g=h-l,p=dn.createCanvas(),y=Av(p,{renderer:n?"svg":"canvas"});if(y.resize({width:d,height:g}),n){var m="";return C(c,function(_){var S=_.left-u,w=_.top-l;m+=''+_.dom+""}),y.painter.getSvgRoot().innerHTML=m,e.connectedBackgroundColor&&y.painter.setBackgroundColor(e.connectedBackgroundColor),y.refreshImmediately(),y.painter.toDataURL()}else return e.connectedBackgroundColor&&y.add(new yt({shape:{x:0,y:0,width:d,height:g},style:{fill:e.connectedBackgroundColor}})),C(c,function(_){var S=new pn({style:{x:_.left*v-u,y:_.top*v-l,image:_.dom}});y.add(S)}),y.refreshImmediately(),p.toDataURL("image/"+(e&&e.type||"png"))}else return this.getDataURL(e)},t.prototype.convertToPixel=function(e,n){return Uu(this,"convertToPixel",e,n)},t.prototype.convertFromPixel=function(e,n){return Uu(this,"convertFromPixel",e,n)},t.prototype.containPixel=function(e,n){if(this._disposed){this.id;return}var i=this._model,a,o=$i(i,e);return C(o,function(s,u){u.indexOf("Models")>=0&&C(s,function(l){var f=l.coordinateSystem;if(f&&f.containPoint)a=a||!!f.containPoint(n);else if(u==="seriesModels"){var h=this._chartsMap[l.__viewId];h&&h.containPoint&&(a=a||h.containPoint(n,l))}},this)},this),!!a},t.prototype.getVisual=function(e,n){var i=this._model,a=$i(i,e,{defaultMainType:"series"}),o=a.seriesModel,s=o.getData(),u=a.hasOwnProperty("dataIndexInside")?a.dataIndexInside:a.hasOwnProperty("dataIndex")?s.indexOfRawIndex(a.dataIndex):null;return u!=null?YC(s,u,n):$C(s,n)},t.prototype.getViewOfComponentModel=function(e){return this._componentsMap[e.__viewId]},t.prototype.getViewOfSeriesModel=function(e){return this._chartsMap[e.__viewId]},t.prototype._initEvents=function(){var e=this;C(HM,function(n){var i=function(a){var o=e.getModel(),s=a.target,u,l=n==="globalout";if(l?u={}:s&&Wi(s,function(d){var g=ut(d);if(g&&g.dataIndex!=null){var p=g.dataModel||o.getSeriesByIndex(g.seriesIndex);return u=p&&p.getDataParams(g.dataIndex,g.dataType)||{},!0}else if(g.eventData)return u=k({},g.eventData),!0},!0),u){var f=u.componentType,h=u.componentIndex;(f==="markLine"||f==="markPoint"||f==="markArea")&&(f="series",h=u.seriesIndex);var c=f&&h!=null&&o.getComponent(f,h),v=c&&e[c.mainType==="series"?"_chartsMap":"_componentsMap"][c.__viewId];u.event=a,u.type=n,e._$eventProcessor.eventInfo={targetEl:s,packedEvent:u,model:c,view:v},e.trigger(n,u)}};i.zrEventfulCallAtLast=!0,e._zr.on(n,i,e)}),C(Ji,function(n,i){e._messageCenter.on(i,function(a){this.trigger(i,a)},e)}),C(["selectchanged"],function(n){e._messageCenter.on(n,function(i){this.trigger(n,i)},e)}),ZC(this._messageCenter,this,this._api)},t.prototype.isDisposed=function(){return this._disposed},t.prototype.clear=function(){if(this._disposed){this.id;return}this.setOption({series:[]},!0)},t.prototype.dispose=function(){if(this._disposed){this.id;return}this._disposed=!0;var e=this.getDom();e&&ey(this.getDom(),Ah,"");var n=this,i=n._api,a=n._model;C(n._componentsViews,function(o){o.dispose(a,i)}),C(n._chartsViews,function(o){o.dispose(a,i)}),n._zr.dispose(),n._dom=n._model=n._chartsMap=n._componentsMap=n._chartsViews=n._componentsViews=n._scheduler=n._api=n._zr=n._throttledZrFlush=n._theme=n._coordSysMgr=n._messageCenter=null,delete ji[n.id]},t.prototype.resize=function(e){if(!this[Rt]){if(this._disposed){this.id;return}this._zr.resize(e);var n=this._model;if(this._loadingFX&&this._loadingFX.resize(),!!n){var i=n.resetOption("media"),a=e&&e.silent;this[Ut]&&(a==null&&(a=this[Ut].silent),i=!0,this[Ut]=null),this[Rt]=!0;try{i&&Ln(this),ir.update.call(this,{type:"resize",animation:k({duration:0},e&&e.animation)})}catch(o){throw this[Rt]=!1,o}this[Rt]=!1,bi.call(this,a),Ti.call(this,a)}}},t.prototype.showLoading=function(e,n){if(this._disposed){this.id;return}if(H(e)&&(n=e,e=""),e=e||"default",this.hideLoading(),!!hf[e]){var i=hf[e](this._api,n),a=this._zr;this._loadingFX=i,a.add(i)}},t.prototype.hideLoading=function(){if(this._disposed){this.id;return}this._loadingFX&&this._zr.remove(this._loadingFX),this._loadingFX=null},t.prototype.makeActionFromEvent=function(e){var n=k({},e);return n.type=Ji[e.type],n},t.prototype.dispatchAction=function(e,n){if(this._disposed){this.id;return}if(H(n)||(n={silent:!!n}),!!ss[e.type]&&!!this._model){if(this[Rt]){this._pendingActions.push(e);return}var i=n.silent;$u.call(this,e,i);var a=n.flush;a?this._zr.flush():a!==!1&&j.browser.weChat&&this._throttledZrFlush(),bi.call(this,i),Ti.call(this,i)}},t.prototype.updateLabelLayout=function(){_e.trigger("series:layoutlabels",this._model,this._api,{updatedSeries:[]})},t.prototype.appendData=function(e){if(this._disposed){this.id;return}var n=e.seriesIndex,i=this.getModel(),a=i.getSeriesByIndex(n);a.appendData(e),this._scheduler.unfinished=!0,this.getZr().wakeUp()},t.internalField=function(){Ln=function(h){var c=h._scheduler;c.restorePipelines(h._model),c.prepareStageTasks(),Wu(h,!0),Wu(h,!1),c.plan()},Wu=function(h,c){for(var v=h._model,d=h._scheduler,g=c?h._componentsViews:h._chartsViews,p=c?h._componentsMap:h._chartsMap,y=h._zr,m=h._api,_=0;_c.get("hoverLayerThreshold")&&!j.node&&!j.worker&&c.eachSeries(function(p){if(!p.preventUsingHoverLayer){var y=h._chartsMap[p.__viewId];y.__alive&&y.eachRendered(function(m){m.states.emphasis&&(m.states.emphasis.hoverLayer=!0)})}})}function o(h,c){var v=h.get("blendMode")||null;c.eachRendered(function(d){d.isGroup||(d.style.blend=v)})}function s(h,c){if(!h.preventAutoZ){var v=h.get("z")||0,d=h.get("zlevel")||0;c.eachRendered(function(g){return u(g,v,d,-1/0),!0})}}function u(h,c,v,d){var g=h.getTextContent(),p=h.getTextGuideLine(),y=h.isGroup;if(y)for(var m=h.childrenRef(),_=0;_0?{duration:g,delay:v.get("delay"),easing:v.get("easing")}:null;c.eachRendered(function(y){if(y.states&&y.states.emphasis){if(Xn(y))return;if(y instanceof rt&&Aw(y),y.__dirty){var m=y.prevStates;m&&y.useStates(m)}if(d){y.stateTransition=p;var _=y.getTextContent(),S=y.getTextGuideLine();_&&(_.stateTransition=p),S&&(S.stateTransition=p)}y.__dirty&&i(y)}})}Dd=function(h){return new(function(c){O(v,c);function v(){return c!==null&&c.apply(this,arguments)||this}return v.prototype.getCoordinateSystems=function(){return h._coordSysMgr.getCoordinateSystems()},v.prototype.getComponentByElement=function(d){for(;d;){var g=d.__ecComponentInfo;if(g!=null)return h._model.getComponent(g.mainType,g.index);d=d.parent}},v.prototype.enterEmphasis=function(d,g){jn(d,g),te(h)},v.prototype.leaveEmphasis=function(d,g){ti(d,g),te(h)},v.prototype.enterBlur=function(d){mw(d),te(h)},v.prototype.leaveBlur=function(d){wy(d),te(h)},v.prototype.enterSelect=function(d){by(d),te(h)},v.prototype.leaveSelect=function(d){Ty(d),te(h)},v.prototype.getModel=function(){return h.getModel()},v.prototype.getViewOfComponentModel=function(d){return h.getViewOfComponentModel(d)},v.prototype.getViewOfSeriesModel=function(d){return h.getViewOfSeriesModel(d)},v}(Cm))(h)},S0=function(h){function c(v,d){for(var g=0;g=0)){Id.push(e);var a=e0.wrapStageHandler(e,i);a.__prio=t,a.__raw=e,r.push(a)}}function M0(r,t){hf[r]=t}function XM(r,t,e){var n=CM("registerMap");n&&n(r,t,e)}var qM=JT;yn(Mh,MC);yn(Vs,DC);yn(Vs,AC);yn(Mh,WC);yn(Vs,UC);yn(d0,wM);T0(Dm);C0(LM,PT);M0("default",LC);Fe({type:nn,event:nn,update:nn},Gt);Fe({type:Io,event:Io,update:Io},Gt);Fe({type:Zi,event:Zi,update:Zi},Gt);Fe({type:Po,event:Po,update:Po},Gt);Fe({type:Xi,event:Xi,update:Xi},Gt);b0("light",GC);b0("dark",HC);function Ci(r){return r==null?0:r.length||1}function Pd(r){return r}var KM=function(){function r(t,e,n,i,a,o){this._old=t,this._new=e,this._oldKeyGetter=n||Pd,this._newKeyGetter=i||Pd,this.context=a,this._diffModeMultiple=o==="multiple"}return r.prototype.add=function(t){return this._add=t,this},r.prototype.update=function(t){return this._update=t,this},r.prototype.updateManyToOne=function(t){return this._updateManyToOne=t,this},r.prototype.updateOneToMany=function(t){return this._updateOneToMany=t,this},r.prototype.updateManyToMany=function(t){return this._updateManyToMany=t,this},r.prototype.remove=function(t){return this._remove=t,this},r.prototype.execute=function(){this[this._diffModeMultiple?"_executeMultiple":"_executeOneToOne"]()},r.prototype._executeOneToOne=function(){var t=this._old,e=this._new,n={},i=new Array(t.length),a=new Array(e.length);this._initIndexMap(t,null,i,"_oldKeyGetter"),this._initIndexMap(e,n,a,"_newKeyGetter");for(var o=0;o1){var f=u.shift();u.length===1&&(n[s]=u[0]),this._update&&this._update(f,o)}else l===1?(n[s]=null,this._update&&this._update(u,o)):this._remove&&this._remove(o)}this._performRestAdd(a,n)},r.prototype._executeMultiple=function(){var t=this._old,e=this._new,n={},i={},a=[],o=[];this._initIndexMap(t,n,a,"_oldKeyGetter"),this._initIndexMap(e,i,o,"_newKeyGetter");for(var s=0;s1&&c===1)this._updateManyToOne&&this._updateManyToOne(f,l),i[u]=null;else if(h===1&&c>1)this._updateOneToMany&&this._updateOneToMany(f,l),i[u]=null;else if(h===1&&c===1)this._update&&this._update(f,l),i[u]=null;else if(h>1&&c>1)this._updateManyToMany&&this._updateManyToMany(f,l),i[u]=null;else if(h>1)for(var v=0;v1)for(var s=0;s30}var Mi=H,ar=z,iD=typeof Int32Array>"u"?Array:Int32Array,aD="e\0\0",Rd=-1,oD=["hasItemOption","_nameList","_idList","_invertedIndicesMap","_dimSummary","userOutput","_rawData","_dimValueGetter","_nameDimIdx","_idDimIdx","_nameRepeatCount"],sD=["_approximateExtent"],Ed,fo,Di,Ai,qu,ho,Ku,uD=function(){function r(t,e){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 n,i=!1;A0(t)?(n=t.dimensions,this._dimOmitted=t.isDimensionOmitted(),this._schema=t):(i=!0,n=t),n=n||["x","y"];for(var a={},o=[],s={},u=!1,l={},f=0;f=e)){var n=this._store,i=n.getProvider();this._updateOrdinalMeta();var a=this._nameList,o=this._idList,s=i.getSource().sourceFormat,u=s===de;if(u&&!i.pure)for(var l=[],f=t;f0},r.prototype.ensureUniqueItemVisual=function(t,e){var n=this._itemVisuals,i=n[t];i||(i=n[t]={});var a=i[e];return a==null&&(a=this.getVisual(e),N(a)?a=a.slice():Mi(a)&&(a=k({},a)),i[e]=a),a},r.prototype.setItemVisual=function(t,e,n){var i=this._itemVisuals[t]||{};this._itemVisuals[t]=i,Mi(e)?k(i,e):i[e]=n},r.prototype.clearAllVisual=function(){this._visual={},this._itemVisuals=[]},r.prototype.setLayout=function(t,e){Mi(t)?k(this._layout,t):this._layout[t]=e},r.prototype.getLayout=function(t){return this._layout[t]},r.prototype.getItemLayout=function(t){return this._itemLayouts[t]},r.prototype.setItemLayout=function(t,e,n){this._itemLayouts[t]=n?k(this._itemLayouts[t]||{},e):e},r.prototype.clearItemLayouts=function(){this._itemLayouts.length=0},r.prototype.setItemGraphicEl=function(t,e){var n=this.hostModel&&this.hostModel.seriesIndex;uw(n,this.dataType,t,e),this._graphicEls[t]=e},r.prototype.getItemGraphicEl=function(t){return this._graphicEls[t]},r.prototype.eachItemGraphicEl=function(t,e){C(this._graphicEls,function(n,i){n&&t&&t.call(e,n,i)})},r.prototype.cloneShallow=function(t){return t||(t=new r(this._schema?this._schema:ar(this.dimensions,this._getDimInfo,this),this.hostModel)),qu(t,this),t._store=this._store,t},r.prototype.wrapMethod=function(t,e){var n=this[t];!U(n)||(this.__wrappedMethods=this.__wrappedMethods||[],this.__wrappedMethods.push(t),this[t]=function(){var i=n.apply(this,arguments);return e.apply(this,[i].concat(Hf(arguments)))})},r.internalField=function(){Ed=function(t){var e=t._invertedIndicesMap;C(e,function(n,i){var a=t._dimInfos[i],o=a.ordinalMeta,s=t._store;if(o){n=e[i]=new iD(o.categories.length);for(var u=0;u1&&(u+="__ec__"+f),i[e]=u}}}(),r}();const lD=uD;function fD(r,t){Sh(r)||(r=xh(r)),t=t||{};var e=t.coordDimensions||[],n=t.dimensionsDefine||r.dimensionsDefine||[],i=W(),a=[],o=vD(r,e,n,t.dimensionsCount),s=t.canOmitUnusedDimensions&&P0(o),u=n===r.dimensionsDefine,l=u?I0(r):L0(n),f=t.encodeDefine;!f&&t.encodeDefaulter&&(f=t.encodeDefaulter(r,o));for(var h=W(f),c=new Fm(o),v=0;v0&&(n.name=i+(a-1)),a++,t.set(i,a)}}function vD(r,t,e,n){var i=Math.max(r.dimensionsDetectedCount||1,t.length,e.length,n||0);return C(t,function(a){var o;H(a)&&(o=a.dimsDef)&&(i=Math.max(i,o.length))}),i}function cD(r,t,e){var n=t.data;if(e||n.hasOwnProperty(r)){for(var i=0;n.hasOwnProperty(r+i);)i++;r+=i}return t.set(r,!0),r}var dD=function(){function r(t){this.coordSysDims=[],this.axisMap=W(),this.categoryAxisMap=W(),this.coordSysName=t}return r}();function pD(r){var t=r.get("coordinateSystem"),e=new dD(t),n=gD[t];if(n)return n(r,e,e.axisMap,e.categoryAxisMap),e}var gD={cartesian2d:function(r,t,e,n){var i=r.getReferringComponents("xAxis",zt).models[0],a=r.getReferringComponents("yAxis",zt).models[0];t.coordSysDims=["x","y"],e.set("x",i),e.set("y",a),In(i)&&(n.set("x",i),t.firstCategoryDimIndex=0),In(a)&&(n.set("y",a),t.firstCategoryDimIndex==null&&(t.firstCategoryDimIndex=1))},singleAxis:function(r,t,e,n){var i=r.getReferringComponents("singleAxis",zt).models[0];t.coordSysDims=["single"],e.set("single",i),In(i)&&(n.set("single",i),t.firstCategoryDimIndex=0)},polar:function(r,t,e,n){var i=r.getReferringComponents("polar",zt).models[0],a=i.findAxisModel("radiusAxis"),o=i.findAxisModel("angleAxis");t.coordSysDims=["radius","angle"],e.set("radius",a),e.set("angle",o),In(a)&&(n.set("radius",a),t.firstCategoryDimIndex=0),In(o)&&(n.set("angle",o),t.firstCategoryDimIndex==null&&(t.firstCategoryDimIndex=1))},geo:function(r,t,e,n){t.coordSysDims=["lng","lat"]},parallel:function(r,t,e,n){var i=r.ecModel,a=i.getComponent("parallel",r.get("parallelIndex")),o=t.coordSysDims=a.dimensions.slice();C(a.parallelAxisIndex,function(s,u){var l=i.getComponent("parallelAxis",s),f=o[u];e.set(f,l),In(l)&&(n.set(f,l),t.firstCategoryDimIndex==null&&(t.firstCategoryDimIndex=u))})}};function In(r){return r.get("type")==="category"}function yD(r,t,e){e=e||{};var n=e.byIndex,i=e.stackedCoordDimension,a,o,s;mD(t)?a=t:(o=t.schema,a=o.dimensions,s=t.store);var u=!!(r&&r.get("stack")),l,f,h,c;if(C(a,function(m,_){G(m)&&(a[_]=m={name:m}),u&&!m.isExtraCoord&&(!n&&!l&&m.ordinalMeta&&(l=m),!f&&m.type!=="ordinal"&&m.type!=="time"&&(!i||i===m.coordDim)&&(f=m))}),f&&!n&&!l&&(n=!0),f){h="__\0ecstackresult_"+r.id,c="__\0ecstackedover_"+r.id,l&&(l.createInvertedIndices=!0);var v=f.coordDim,d=f.type,g=0;C(a,function(m){m.coordDim===v&&g++});var p={name:h,coordDim:v,coordDimIndex:g,type:d,isExtraCoord:!0,isCalculationCoord:!0,storeDimIndex:a.length},y={name:c,coordDim:c,coordDimIndex:g+1,type:d,isExtraCoord:!0,isCalculationCoord:!0,storeDimIndex:a.length+1};o?(s&&(p.storeDimIndex=s.ensureCalculationDimension(c,d),y.storeDimIndex=s.ensureCalculationDimension(h,d)),o.appendCalculationDimension(p),o.appendCalculationDimension(y)):(a.push(p),a.push(y))}return{stackedDimension:f&&f.name,stackedByDimension:l&&l.name,isStackedByIndex:n,stackedOverDimension:c,stackResultDimension:h}}function mD(r){return!A0(r.schema)}function _a(r,t){return!!t&&t===r.getCalculationInfo("stackedDimension")}function _D(r,t){return _a(r,t)?r.getCalculationInfo("stackResultDimension"):t}function SD(r,t){var e=r.get("coordinateSystem"),n=_h.get(e),i;return t&&t.coordSysDims&&(i=z(t.coordSysDims,function(a){var o={name:a},s=t.axisMap.get(a);if(s){var u=s.get("type");o.type=jM(u)}return o})),i||(i=n&&(n.getDimensionsInfo?n.getDimensionsInfo():n.dimensions.slice())||["x","y"]),i}function xD(r,t,e){var n,i;return e&&C(r,function(a,o){var s=a.coordDim,u=e.categoryAxisMap.get(s);u&&(n==null&&(n=o),a.ordinalMeta=u.getOrdinalMeta(),t&&(a.createInvertedIndices=!0)),a.otherDims.itemName!=null&&(i=!0)}),!i&&n!=null&&(r[n].otherDims.itemName=0),n}function wD(r,t,e){e=e||{};var n=t.getSourceManager(),i,a=!1;r?(a=!0,i=xh(r)):(i=n.getSource(),a=i.sourceFormat===de);var o=pD(t),s=SD(t,o),u=e.useEncodeDefaulter,l=U(u)?u:u?ot(nT,s,t):null,f={coordDimensions:s,generateCoord:e.generateCoord,encodeDefine:t.getEncode(),encodeDefaulter:l,canOmitUnusedDimensions:!a},h=fD(i,f),c=xD(h.dimensions,e.createInvertedIndices,o),v=a?null:n.getSharedDataStore(h),d=yD(t,{schema:h,store:v}),g=new lD(h,t);g.setCalculationInfo(d);var p=c!=null&&bD(i)?function(y,m,_,S){return S===c?_:this.defaultDimValueGetter(y,m,_,S)}:null;return g.hasItemOption=!1,g.initData(a?i:v,null,p),g}function bD(r){if(r.sourceFormat===de){var t=TD(r.data||[]);return!N(Ma(t))}}function TD(r){for(var t=0;te[1]&&(e[1]=t[1])},r.prototype.unionExtentFromData=function(t,e){this.unionExtent(t.getApproximateExtent(e))},r.prototype.getExtent=function(){return this._extent.slice()},r.prototype.setExtent=function(t,e){var n=this._extent;isNaN(t)||(n[0]=t),isNaN(e)||(n[1]=e)},r.prototype.isInExtentRange=function(t){return this._extent[0]<=t&&this._extent[1]>=t},r.prototype.isBlank=function(){return this._isBlank},r.prototype.setBlank=function(t){this._isBlank=t},r}();Ss(R0);const tr=R0;var CD=0,MD=function(){function r(t){this.categories=t.categories||[],this._needCollect=t.needCollect,this._deduplication=t.deduplication,this.uid=++CD}return r.createByAxisModel=function(t){var e=t.option,n=e.data,i=n&&z(n,DD);return new r({categories:i,needCollect:!i,deduplication:e.dedplication!==!1})},r.prototype.getOrdinal=function(t){return this._getOrCreateMap().get(t)},r.prototype.parseAndCollect=function(t){var e,n=this._needCollect;if(!G(t)&&!n)return t;if(n&&!this._deduplication)return e=this.categories.length,this.categories[e]=t,e;var i=this._getOrCreateMap();return e=i.get(t),e==null&&(n?(e=this.categories.length,this.categories[e]=t,i.set(t,e)):e=NaN),e},r.prototype._getOrCreateMap=function(){return this._map||(this._map=W(this.categories))},r}();function DD(r){return H(r)&&r.value!=null?r.value:r+""}const vf=MD;function cf(r){return r.type==="interval"||r.type==="log"}function AD(r,t,e,n){var i={},a=r[1]-r[0],o=i.interval=qg(a/t,!0);e!=null&&on&&(o=i.interval=n);var s=i.intervalPrecision=E0(o),u=i.niceTickExtent=[wt(Math.ceil(r[0]/o)*o,s),wt(Math.floor(r[1]/o)*o,s)];return LD(u,r),i}function Qu(r){var t=Math.pow(10,Xf(r)),e=r/t;return e?e===2?e=3:e===3?e=5:e*=2:e=1,wt(e*t)}function E0(r){return Ue(r)+2}function Od(r,t,e){r[t]=Math.max(Math.min(r[t],e[1]),e[0])}function LD(r,t){!isFinite(r[0])&&(r[0]=t[0]),!isFinite(r[1])&&(r[1]=t[1]),Od(r,0,t),Od(r,1,t),r[0]>r[1]&&(r[0]=r[1])}function Ws(r,t){return r>=t[0]&&r<=t[1]}function Us(r,t){return t[1]===t[0]?.5:(r-t[0])/(t[1]-t[0])}function Ys(r,t){return r*(t[1]-t[0])+t[0]}var O0=function(r){O(t,r);function t(e){var n=r.call(this,e)||this;n.type="ordinal";var i=n.getSetting("ordinalMeta");return i||(i=new vf({})),N(i)&&(i=new vf({categories:z(i,function(a){return H(a)?a.value:a})})),n._ordinalMeta=i,n._extent=n.getSetting("extent")||[0,i.categories.length-1],n}return t.prototype.parse=function(e){return e==null?NaN:G(e)?this._ordinalMeta.getOrdinal(e):Math.round(e)},t.prototype.contain=function(e){return e=this.parse(e),Ws(e,this._extent)&&this._ordinalMeta.categories[e]!=null},t.prototype.normalize=function(e){return e=this._getTickNumber(this.parse(e)),Us(e,this._extent)},t.prototype.scale=function(e){return e=Math.round(Ys(e,this._extent)),this.getRawOrdinalNumber(e)},t.prototype.getTicks=function(){for(var e=[],n=this._extent,i=n[0];i<=n[1];)e.push({value:i}),i++;return e},t.prototype.getMinorTicks=function(e){},t.prototype.setSortInfo=function(e){if(e==null){this._ordinalNumbersByTick=this._ticksByOrdinalNumber=null;return}for(var n=e.ordinalNumbers,i=this._ordinalNumbersByTick=[],a=this._ticksByOrdinalNumber=[],o=0,s=this._ordinalMeta.categories.length,u=Math.min(s,n.length);o=0&&e=0&&e=e},t.prototype.getOrdinalMeta=function(){return this._ordinalMeta},t.prototype.calcNiceTicks=function(){},t.prototype.calcNiceExtent=function(){},t.type="ordinal",t}(tr);tr.registerClass(O0);const k0=O0;var $r=wt,B0=function(r){O(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type="interval",e._interval=0,e._intervalPrecision=2,e}return t.prototype.parse=function(e){return e},t.prototype.contain=function(e){return Ws(e,this._extent)},t.prototype.normalize=function(e){return Us(e,this._extent)},t.prototype.scale=function(e){return Ys(e,this._extent)},t.prototype.setExtent=function(e,n){var i=this._extent;isNaN(e)||(i[0]=parseFloat(e)),isNaN(n)||(i[1]=parseFloat(n))},t.prototype.unionExtent=function(e){var n=this._extent;e[0]n[1]&&(n[1]=e[1]),this.setExtent(n[0],n[1])},t.prototype.getInterval=function(){return this._interval},t.prototype.setInterval=function(e){this._interval=e,this._niceExtent=this._extent.slice(),this._intervalPrecision=E0(e)},t.prototype.getTicks=function(e){var n=this._interval,i=this._extent,a=this._niceExtent,o=this._intervalPrecision,s=[];if(!n)return s;var u=1e4;i[0]u)return[];var f=s.length?s[s.length-1].value:a[1];return i[1]>f&&(e?s.push({value:$r(f+n,o)}):s.push({value:i[1]})),s},t.prototype.getMinorTicks=function(e){for(var n=this.getTicks(!0),i=[],a=this.getExtent(),o=1;oa[0]&&v0&&(a=a===null?s:Math.min(a,s))}e[n]=a}}return e}function OD(r){var t=ED(r),e=[];return C(r,function(n){var i=n.coordinateSystem,a=i.getBaseAxis(),o=a.getExtent(),s;if(a.type==="category")s=a.getBandWidth();else if(a.type==="value"||a.type==="time"){var u=a.dim+"_"+a.index,l=t[u],f=Math.abs(o[1]-o[0]),h=a.scale.getExtent(),c=Math.abs(h[1]-h[0]);s=l?f/c*l:f}else{var v=n.getData();s=Math.abs(o[1]-o[0])/v.count()}var d=Ct(n.get("barWidth"),s),g=Ct(n.get("barMaxWidth"),s),p=Ct(n.get("barMinWidth")||(FD(n)?.5:1),s),y=n.get("barGap"),m=n.get("barCategoryGap");e.push({bandWidth:s,barWidth:d,barMaxWidth:g,barMinWidth:p,barGap:y,barCategoryGap:m,axisKey:z0(a),stackId:F0(n)})}),kD(e)}function kD(r){var t={};C(r,function(n,i){var a=n.axisKey,o=n.bandWidth,s=t[a]||{bandWidth:o,remainedWidth:o,autoWidthCount:0,categoryGap:null,gap:"20%",stacks:{}},u=s.stacks;t[a]=s;var l=n.stackId;u[l]||s.autoWidthCount++,u[l]=u[l]||{width:0,maxWidth:0};var f=n.barWidth;f&&!u[l].width&&(u[l].width=f,f=Math.min(s.remainedWidth,f),s.remainedWidth-=f);var h=n.barMaxWidth;h&&(u[l].maxWidth=h);var c=n.barMinWidth;c&&(u[l].minWidth=c);var v=n.barGap;v!=null&&(s.gap=v);var d=n.barCategoryGap;d!=null&&(s.categoryGap=d)});var e={};return C(t,function(n,i){e[i]={};var a=n.stacks,o=n.bandWidth,s=n.categoryGap;if(s==null){var u=pt(a).length;s=Math.max(35-u*4,15)+"%"}var l=Ct(s,o),f=Ct(n.gap,1),h=n.remainedWidth,c=n.autoWidthCount,v=(h-l)/(c+(c-1)*f);v=Math.max(v,0),C(a,function(y){var m=y.maxWidth,_=y.minWidth;if(y.width){var S=y.width;m&&(S=Math.min(S,m)),_&&(S=Math.max(S,_)),y.width=S,h-=S+f*S,c--}else{var S=v;m&&mS&&(S=_),S!==v&&(y.width=S,h-=S+f*S,c--)}}),v=(h-l)/(c+(c-1)*f),v=Math.max(v,0);var d=0,g;C(a,function(y,m){y.width||(y.width=v),g=y,d+=y.width*(1+f)}),g&&(d-=g.width*f);var p=-d/2;C(a,function(y,m){e[i][m]=e[i][m]||{bandWidth:o,offset:p,width:y.width},p+=y.width*(1+f)})}),e}function BD(r,t,e){if(r&&t){var n=r[z0(t)];return n!=null&&e!=null?n[F0(e)]:n}}function ND(r){return r.coordinateSystem&&r.coordinateSystem.type==="cartesian2d"}function FD(r){return r.pipelineContext&&r.pipelineContext.large}var zD=function(r,t,e,n){for(;e>>1;r[i][1]i&&(this._approxInterval=i);var s=vo.length,u=Math.min(zD(vo,this._approxInterval,0,s),s-1);this._interval=vo[u][1],this._minLevelUnit=vo[Math.max(u-1,0)][0]},t.prototype.parse=function(e){return ft(e)?e:+Xe(e)},t.prototype.contain=function(e){return Ws(this.parse(e),this._extent)},t.prototype.normalize=function(e){return Us(this.parse(e),this._extent)},t.prototype.scale=function(e){return Ys(e,this._extent)},t.type="time",t}(Ra),vo=[["second",dh],["minute",ph],["hour",Ki],["quarter-day",Ki*6],["half-day",Ki*12],["day",le*1.2],["half-week",le*3.5],["week",le*7],["month",le*31],["quarter",le*95],["half-year",wc/2],["year",wc]];function GD(r,t,e,n){var i=Xe(t),a=Xe(e),o=function(d){return Tc(i,d,n)===Tc(a,d,n)},s=function(){return o("year")},u=function(){return s()&&o("month")},l=function(){return u()&&o("day")},f=function(){return l()&&o("hour")},h=function(){return f()&&o("minute")},c=function(){return h()&&o("second")},v=function(){return c()&&o("millisecond")};switch(r){case"year":return s();case"month":return u();case"day":return l();case"hour":return f();case"minute":return h();case"second":return c();case"millisecond":return v()}}function HD(r,t){return r/=le,r>16?16:r>7.5?7:r>3.5?4:r>1.5?2:1}function VD(r){var t=30*le;return r/=t,r>6?6:r>3?3:r>2?2:1}function WD(r){return r/=Ki,r>12?12:r>6?6:r>3.5?4:r>2?2:1}function kd(r,t){return r/=t?ph:dh,r>30?30:r>20?20:r>15?15:r>10?10:r>5?5:r>2?2:1}function UD(r){return qg(r,!0)}function YD(r,t,e){var n=new Date(r);switch(qn(t)){case"year":case"month":n[um(e)](0);case"day":n[lm(e)](1);case"hour":n[fm(e)](0);case"minute":n[hm(e)](0);case"second":n[vm(e)](0),n[cm(e)](0)}return n.getTime()}function $D(r,t,e,n){var i=1e4,a=om,o=0;function s(D,A,L,I,P,E,R){for(var V=new Date(A),F=A,B=V[I]();F1&&E===0&&L.unshift({value:L[0].value-F})}}for(var E=0;E=n[0]&&m<=n[1]&&h++)}var _=(n[1]-n[0])/t;if(h>_*1.5&&c>_/1.5||(l.push(p),h>_||r===a[v]))break}f=[]}}}for(var S=xt(z(l,function(D){return xt(D,function(A){return A.value>=n[0]&&A.value<=n[1]&&!A.notAdd})}),function(D){return D.length>0}),w=[],x=S.length-1,v=0;v0;)a*=10;var s=[wt(KD(n[0]/a)*a),wt(qD(n[1]/a)*a)];this._interval=a,this._niceExtent=s}},t.prototype.calcNiceExtent=function(e){ta.calcNiceExtent.call(this,e),this._fixMin=e.fixMin,this._fixMax=e.fixMax},t.prototype.parse=function(e){return e},t.prototype.contain=function(e){return e=ee(e)/ee(this.base),Ws(e,this._extent)},t.prototype.normalize=function(e){return e=ee(e)/ee(this.base),Us(e,this._extent)},t.prototype.scale=function(e){return e=Ys(e,this._extent),co(this.base,e)},t.type="log",t}(tr),H0=Ph.prototype;H0.getMinorTicks=ta.getMinorTicks;H0.getLabel=ta.getLabel;function po(r,t){return XD(r,Ue(t))}tr.registerClass(Ph);const QD=Ph;var JD=function(){function r(t,e,n){this._prepareParams(t,e,n)}return r.prototype._prepareParams=function(t,e,n){n[1]0&&u>0&&!l&&(s=0),s<0&&u<0&&!f&&(u=0));var c=this._determinedMin,v=this._determinedMax;return c!=null&&(s=c,l=!0),v!=null&&(u=v,f=!0),{min:s,max:u,minFixed:l,maxFixed:f,isBlank:h}},r.prototype.modifyDataMinMax=function(t,e){this[tA[t]]=e},r.prototype.setDeterminedMinMax=function(t,e){var n=jD[t];this[n]=e},r.prototype.freeze=function(){this.frozen=!0},r}(),jD={min:"_determinedMin",max:"_determinedMax"},tA={min:"_dataMin",max:"_dataMax"};function V0(r,t,e){var n=r.rawExtentInfo;return n||(n=new JD(r,t,e),r.rawExtentInfo=n,n)}function go(r,t){return t==null?null:zo(t)?NaN:r.parse(t)}function W0(r,t){var e=r.type,n=V0(r,t,r.getExtent()).calculate();r.setBlank(n.isBlank);var i=n.min,a=n.max,o=t.ecModel;if(o&&e==="time"){var s=RD("bar",o),u=!1;if(C(s,function(h){u=u||h.getBaseAxis()===t.axis}),u){var l=OD(s),f=eA(i,a,t,l);i=f.min,a=f.max}}return{extent:[i,a],fixMin:n.minFixed,fixMax:n.maxFixed}}function eA(r,t,e,n){var i=e.axis.getExtent(),a=i[1]-i[0],o=BD(n,e.axis);if(o===void 0)return{min:r,max:t};var s=1/0;C(o,function(v){s=Math.min(v.offset,s)});var u=-1/0;C(o,function(v){u=Math.max(v.offset+v.width,u)}),s=Math.abs(s),u=Math.abs(u);var l=s+u,f=t-r,h=1-(s+u)/a,c=f/h-f;return t+=c*(u/l),r-=c*(s/l),{min:r,max:t}}function Nd(r,t){var e=t,n=W0(r,e),i=n.extent,a=e.get("splitNumber");r instanceof QD&&(r.base=e.get("logBase"));var o=r.type,s=e.get("interval"),u=o==="interval"||o==="time";r.setExtent(i[0],i[1]),r.calcNiceExtent({splitNumber:a,fixMin:n.fixMin,fixMax:n.fixMax,minInterval:u?e.get("minInterval"):null,maxInterval:u?e.get("maxInterval"):null}),s!=null&&r.setInterval&&r.setInterval(s)}function rA(r,t){if(t=t||r.get("type"),t)switch(t){case"category":return new k0({ordinalMeta:r.getOrdinalMeta?r.getOrdinalMeta():r.getCategories(),extent:[1/0,-1/0]});case"time":return new ZD({locale:r.ecModel.getLocaleModel(),useUTC:r.ecModel.get("useUTC")});default:return new(tr.getClass(t)||Ra)}}function nA(r){var t=r.scale.getExtent(),e=t[0],n=t[1];return!(e>0&&n>0||e<0&&n<0)}function Ea(r){var t=r.getLabelModel().get("formatter"),e=r.type==="category"?r.scale.getExtent()[0]:null;return r.scale.type==="time"?function(n){return function(i,a){return r.scale.getFormattedLabel(i,a,n)}}(t):G(t)?function(n){return function(i){var a=r.scale.getLabel(i),o=n.replace("{value}",a!=null?a:"");return o}}(t):U(t)?function(n){return function(i,a){return e!=null&&(a=i.value-e),n(Rh(r,i),a,i.level!=null?{level:i.level}:null)}}(t):function(n){return r.scale.getLabel(n)}}function Rh(r,t){return r.type==="category"?r.scale.getLabel(t):t.value}function iA(r){var t=r.model,e=r.scale;if(!(!t.get(["axisLabel","show"])||e.isBlank())){var n,i,a=e.getExtent();e instanceof k0?i=e.count():(n=e.getTicks(),i=n.length);var o=r.getLabelModel(),s=Ea(r),u,l=1;i>40&&(l=Math.ceil(i/40));for(var f=0;fr[1]&&(r[1]=i[1])})}var sA=function(){function r(){}return r.prototype.getNeedCrossZero=function(){var t=this.option;return!t.scale},r.prototype.getCoordSysModel=function(){},r}(),Fd=[],uA={registerPreprocessor:T0,registerProcessor:C0,registerPostInit:UM,registerPostUpdate:YM,registerUpdateLifecycle:Lh,registerAction:Fe,registerCoordinateSystem:$M,registerLayout:ZM,registerVisual:yn,registerTransform:qM,registerLoading:M0,registerMap:XM,registerImpl:TM,PRIORITY:FM,ComponentModel:ct,ComponentView:ve,SeriesModel:pa,ChartView:_r,registerComponentModel:function(r){ct.registerClass(r)},registerComponentView:function(r){ve.registerClass(r)},registerSeriesModel:function(r){pa.registerClass(r)},registerChartView:function(r){_r.registerClass(r)},registerSubTypeDefaulter:function(r,t){ct.registerSubTypeDefaulter(r,t)},registerPainter:function(r,t){FS(r,t)}};function Be(r){if(N(r)){C(r,function(t){Be(t)});return}J(Fd,r)>=0||(Fd.push(r),U(r)&&(r={install:r}),r.install(uA))}var Sa=gt();function lA(r){return r.type==="category"?hA(r):cA(r)}function fA(r,t){return r.type==="category"?vA(r,t):{ticks:z(r.scale.getTicks(),function(e){return e.value})}}function hA(r){var t=r.getLabelModel(),e=$0(r,t);return!t.get("show")||r.scale.isBlank()?{labels:[],labelCategoryInterval:e.labelCategoryInterval}:e}function $0(r,t){var e=Z0(r,"labels"),n=Eh(t),i=X0(e,n);if(i)return i;var a,o;return U(n)?a=Q0(r,n):(o=n==="auto"?dA(r):n,a=K0(r,o)),q0(e,n,{labels:a,labelCategoryInterval:o})}function vA(r,t){var e=Z0(r,"ticks"),n=Eh(t),i=X0(e,n);if(i)return i;var a,o;if((!t.get("show")||r.scale.isBlank())&&(a=[]),U(n))a=Q0(r,n,!0);else if(n==="auto"){var s=$0(r,r.getLabelModel());o=s.labelCategoryInterval,a=z(s.labels,function(u){return u.tickValue})}else o=n,a=K0(r,o,!0);return q0(e,n,{ticks:a,tickCategoryInterval:o})}function cA(r){var t=r.scale.getTicks(),e=Ea(r);return{labels:z(t,function(n,i){return{level:n.level,formattedLabel:e(n,i),rawLabel:r.scale.getLabel(n),tickValue:n.value}})}}function Z0(r,t){return Sa(r)[t]||(Sa(r)[t]=[])}function X0(r,t){for(var e=0;e40&&(s=Math.max(1,Math.floor(o/40)));for(var u=a[0],l=r.dataToCoord(u+1)-r.dataToCoord(u),f=Math.abs(l*Math.cos(n)),h=Math.abs(l*Math.sin(n)),c=0,v=0;u<=a[1];u+=s){var d=0,g=0,p=_s(e({value:u}),t.font,"center","top");d=p.width*1.3,g=p.height*1.3,c=Math.max(c,d,7),v=Math.max(v,g,7)}var y=c/f,m=v/h;isNaN(y)&&(y=1/0),isNaN(m)&&(m=1/0);var _=Math.max(0,Math.floor(Math.min(y,m))),S=Sa(r.model),w=r.getExtent(),x=S.lastAutoInterval,b=S.lastTickCount;return x!=null&&b!=null&&Math.abs(x-_)<=1&&Math.abs(b-o)<=1&&x>_&&S.axisExtent0===w[0]&&S.axisExtent1===w[1]?_=x:(S.lastTickCount=o,S.lastAutoInterval=_,S.axisExtent0=w[0],S.axisExtent1=w[1]),_}function gA(r){var t=r.getLabelModel();return{axisRotate:r.getRotate?r.getRotate():r.isHorizontal&&!r.isHorizontal()?90:0,labelRotate:t.get("rotate")||0,font:t.getFont()}}function K0(r,t,e){var n=Ea(r),i=r.scale,a=i.getExtent(),o=r.getLabelModel(),s=[],u=Math.max((t||0)+1,1),l=a[0],f=i.count();l!==0&&u>1&&f/u>2&&(l=Math.round(Math.ceil(l/u)*u));var h=U0(r),c=o.get("showMinLabel")||h,v=o.get("showMaxLabel")||h;c&&l!==a[0]&&g(a[0]);for(var d=l;d<=a[1];d+=u)g(d);v&&d-u!==a[1]&&g(a[1]);function g(p){var y={value:p};s.push(e?p:{formattedLabel:n(y),rawLabel:i.getLabel(y),tickValue:p})}return s}function Q0(r,t,e){var n=r.scale,i=Ea(r),a=[];return C(n.getTicks(),function(o){var s=n.getLabel(o),u=o.value;t(o.value,s)&&a.push(e?u:{formattedLabel:i(o),rawLabel:s,tickValue:u})}),a}var zd=[0,1],yA=function(){function r(t,e,n){this.onBand=!1,this.inverse=!1,this.dim=t,this.scale=e,this._extent=n||[0,0]}return r.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},r.prototype.containData=function(t){return this.scale.contain(t)},r.prototype.getExtent=function(){return this._extent.slice()},r.prototype.getPixelPrecision=function(t){return Zg(t||this.scale.getExtent(),this._extent)},r.prototype.setExtent=function(t,e){var n=this._extent;n[0]=t,n[1]=e},r.prototype.dataToCoord=function(t,e){var n=this._extent,i=this.scale;return t=i.normalize(t),this.onBand&&i.type==="ordinal"&&(n=n.slice(),Gd(n,i.count())),Et(t,zd,n,e)},r.prototype.coordToData=function(t,e){var n=this._extent,i=this.scale;this.onBand&&i.type==="ordinal"&&(n=n.slice(),Gd(n,i.count()));var a=Et(t,n,zd,e);return this.scale.scale(a)},r.prototype.pointToData=function(t,e){},r.prototype.getTicksCoords=function(t){t=t||{};var e=t.tickModel||this.getTickModel(),n=fA(this,e),i=n.ticks,a=z(i,function(s){return{coord:this.dataToCoord(this.scale.type==="ordinal"?this.scale.getRawOrdinalNumber(s):s),tickValue:s}},this),o=e.get("alignWithLabel");return mA(this,a,o,t.clamp),a},r.prototype.getMinorTicksCoords=function(){if(this.scale.type==="ordinal")return[];var t=this.model.getModel("minorTick"),e=t.get("splitNumber");e>0&&e<100||(e=5);var n=this.scale.getMinorTicks(e),i=z(n,function(a){return z(a,function(o){return{coord:this.dataToCoord(o),tickValue:o}},this)},this);return i},r.prototype.getViewLabels=function(){return lA(this).labels},r.prototype.getLabelModel=function(){return this.model.getModel("axisLabel")},r.prototype.getTickModel=function(){return this.model.getModel("axisTick")},r.prototype.getBandWidth=function(){var t=this._extent,e=this.scale.getExtent(),n=e[1]-e[0]+(this.onBand?1:0);n===0&&(n=1);var i=Math.abs(t[1]-t[0]);return Math.abs(i)/n},r.prototype.calculateCategoryInterval=function(){return pA(this)},r}();function Gd(r,t){var e=r[1]-r[0],n=t,i=e/n/2;r[0]+=i,r[1]-=i}function mA(r,t,e,n){var i=t.length;if(!r.onBand||e||!i)return;var a=r.getExtent(),o,s;if(i===1)t[0].coord=a[0],o=t[1]={coord:a[0]};else{var u=t[i-1].tickValue-t[0].tickValue,l=(t[i-1].coord-t[0].coord)/u;C(t,function(v){v.coord-=l/2});var f=r.scale.getExtent();s=1+f[1]-t[i-1].tickValue,o={coord:t[i-1].coord+l*s},t.push(o)}var h=a[0]>a[1];c(t[0].coord,a[0])&&(n?t[0].coord=a[0]:t.shift()),n&&c(a[0],t[0].coord)&&t.unshift({coord:a[0]}),c(a[1],o.coord)&&(n?o.coord=a[1]:t.pop()),n&&c(o.coord,a[1])&&t.push({coord:a[1]});function c(v,d){return v=wt(v),d=wt(d),h?v>d:vi&&(i+=Li);var v=Math.atan2(s,o);if(v<0&&(v+=Li),v>=n&&v<=i||v+Li>=n&&v+Li<=i)return u[0]=f,u[1]=h,l-e;var d=e*Math.cos(n)+r,g=e*Math.sin(n)+t,p=e*Math.cos(i)+r,y=e*Math.sin(i)+t,m=(d-o)*(d-o)+(g-s)*(g-s),_=(p-o)*(p-o)+(y-s)*(y-s);return m<_?(u[0]=d,u[1]=g,Math.sqrt(m)):(u[0]=p,u[1]=y,Math.sqrt(_))}function df(r,t,e,n,i,a,o,s){var u=i-r,l=a-t,f=e-r,h=n-t,c=Math.sqrt(f*f+h*h);f/=c,h/=c;var v=u*f+l*h,d=v/c;s&&(d=Math.min(Math.max(d,0),1)),d*=c;var g=o[0]=r+d*f,p=o[1]=t+d*h;return Math.sqrt((g-i)*(g-i)+(p-a)*(p-a))}function J0(r,t,e,n,i,a,o){e<0&&(r=r+e,e=-e),n<0&&(t=t+n,n=-n);var s=r+e,u=t+n,l=o[0]=Math.min(Math.max(i,r),s),f=o[1]=Math.min(Math.max(a,t),u);return Math.sqrt((l-i)*(l-i)+(f-a)*(f-a))}var Se=[];function bA(r,t,e){var n=J0(t.x,t.y,t.width,t.height,r.x,r.y,Se);return e.set(Se[0],Se[1]),n}function TA(r,t,e){for(var n=0,i=0,a=0,o=0,s,u,l=1/0,f=t.data,h=r.x,c=r.y,v=0;v0){t=t/180*Math.PI,en.fromArray(r[0]),Mt.fromArray(r[1]),Kt.fromArray(r[2]),Z.sub(Wn,en,Mt),Z.sub(Ii,Kt,Mt);var e=Wn.len(),n=Ii.len();if(!(e<.001||n<.001)){Wn.scale(1/e),Ii.scale(1/n);var i=Wn.dot(Ii),a=Math.cos(t);if(a1&&Z.copy(Xr,Kt),Xr.toArray(r[1])}}}}function Wd(r,t,e,n){var i=e==="normal",a=i?r:r.ensureState(e);a.ignore=t;var o=n.get("smooth");o&&o===!0&&(o=.3),a.shape=a.shape||{},o>0&&(a.shape.smooth=o);var s=n.getModel("lineStyle").getLineStyle();i?r.useStyle(s):a.style=s}function MA(r,t){var e=t.smooth,n=t.points;if(!!n)if(r.moveTo(n[0][0],n[0][1]),e>0&&n.length>=3){var i=bl(n[0],n[1]),a=bl(n[1],n[2]);if(!i||!a){r.lineTo(n[1][0],n[1][1]),r.lineTo(n[2][0],n[2][1]);return}var o=Math.min(i,a)*e,s=wo([],n[1],n[0],o/i),u=wo([],n[1],n[2],o/a),l=wo([],s,u,.5);r.bezierCurveTo(s[0],s[1],s[0],s[1],l[0],l[1]),r.bezierCurveTo(u[0],u[1],u[0],u[1],n[2][0],n[2][1])}else for(var f=1;f0&&a&&w(-f/o,0,o);var g=r[0],p=r[o-1],y,m;_(),y<0&&x(-y,.8),m<0&&x(m,.8),_(),S(y,m,1),S(m,y,-1),_(),y<0&&b(-y),m<0&&b(m);function _(){y=g.rect[t]-n,m=i-p.rect[t]-p.rect[e]}function S(T,M,D){if(T<0){var A=Math.min(M,-T);if(A>0){w(A*D,0,o);var L=A+T;L<0&&x(-L*D,1)}else x(-T*D,1)}}function w(T,M,D){T!==0&&(l=!0);for(var A=M;A0)for(var L=0;L0;L--){var R=D[L-1]*E;w(-R,L,o)}}}function b(T){var M=T<0?-1:1;T=Math.abs(T);for(var D=Math.ceil(T/(o-1)),A=0;A0?w(D,0,A+1):w(-D,o-A-1,o),T-=D,T<=0)return}return l}function LA(r,t,e,n){return t_(r,"x","width",t,e,n)}function IA(r,t,e,n){return t_(r,"y","height",t,e,n)}function e_(r){var t=[];r.sort(function(g,p){return p.priority-g.priority});var e=new at(0,0,0,0);function n(g){if(!g.ignore){var p=g.ensureState("emphasis");p.ignore==null&&(p.ignore=!1)}g.ignore=!0}for(var i=0;i=0&&n.attr(a.oldLayoutSelect),J(c,"emphasis")>=0&&n.attr(a.oldLayoutEmphasis)),we(n,l,e,u)}else if(n.attr(l),!Ps(n).valueAnimation){var h=nt(n.style.opacity,1);n.style.opacity=0,Ke(n,{style:{opacity:h}},e,u)}if(a.oldLayout=l,n.states.select){var v=a.oldLayoutSelect={};yo(v,l,mo),yo(v,n.states.select,mo)}if(n.states.emphasis){var d=a.oldLayoutEmphasis={};yo(d,l,mo),yo(d,n.states.emphasis,mo)}Db(n,u,f,e,e)}if(i&&!i.ignore&&!i.invisible){var a=EA(i),o=a.oldLayout,g={points:i.shape.points};o?(i.attr({shape:o}),we(i,{shape:g},e)):(i.setShape(g),i.style.strokePercent=0,Ke(i,{style:{strokePercent:1}},e)),a.oldLayout=g}},r}();const kA=OA;var ju=gt();function ZR(r){r.registerUpdateLifecycle("series:beforeupdate",function(t,e,n){var i=ju(e).labelManager;i||(i=ju(e).labelManager=new kA),i.clearLabels()}),r.registerUpdateLifecycle("series:layoutlabels",function(t,e,n){var i=ju(e).labelManager;n.updatedSeries.forEach(function(a){i.addLabelsOfSeries(e.getViewOfSeriesModel(a))}),i.updateLayoutConfig(e),i.layout(e),i.processLabelsOverall()})}var BA=function(r){O(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e.hasSymbolVisual=!0,e}return t.prototype.getInitialData=function(e){return wD(null,this,{useEncodeDefaulter:!0})},t.prototype.getLegendIcon=function(e){var n=new bt,i=br("line",0,e.itemHeight/2,e.itemWidth,0,e.lineStyle.stroke,!1);n.add(i),i.setStyle(e.lineStyle);var a=this.getData().getVisual("symbol"),o=this.getData().getVisual("symbolRotate"),s=a==="none"?"circle":a,u=e.itemHeight*.8,l=br(s,(e.itemWidth-u)/2,(e.itemHeight-u)/2,u,u,e.itemStyle.fill);n.add(l),l.setStyle(e.itemStyle);var f=e.iconRotate==="inherit"?o:e.iconRotate||0;return l.rotation=f*Math.PI/180,l.setOrigin([e.itemWidth/2,e.itemHeight/2]),s.indexOf("empty")>-1&&(l.style.stroke=l.style.fill,l.style.fill="#fff",l.style.lineWidth=2),n},t.type="series.line",t.dependencies=["grid","polar"],t.defaultOption={z:3,coordinateSystem:"cartesian2d",legendHoverLink:!0,clip:!0,label:{position:"top"},endLabel:{show:!1,valueAnimation:!0,distance:8},lineStyle:{width:2,type:"solid"},emphasis:{scale:!0},step:!1,smooth:!1,smoothMonotone:null,symbol:"emptyCircle",symbolSize:4,symbolRotate:null,showSymbol:!0,showAllSymbol:"auto",connectNulls:!1,sampling:"none",animationEasing:"linear",progressive:0,hoverLayerThreshold:1/0,universalTransition:{divideShape:"clone"},triggerLineEvent:!1},t}(pa);const NA=BA;function r_(r,t){var e=r.mapDimensionsAll("defaultedLabel"),n=e.length;if(n===1){var i=ri(r,t,e[0]);return i!=null?i+"":null}else if(n){for(var a=[],o=0;o=0&&n.push(t[a])}return n.join(" ")}var zA=function(r){O(t,r);function t(e,n,i,a){var o=r.call(this)||this;return o.updateData(e,n,i,a),o}return t.prototype._createSymbol=function(e,n,i,a,o){this.removeAll();var s=br(e,-1,-1,2,2,null,o);s.attr({z2:100,culling:!0,scaleX:a[0]/2,scaleY:a[1]/2}),s.drift=GA,this._symbolType=e,this.add(s)},t.prototype.stopSymbolAnimation=function(e){this.childAt(0).stopAnimation(null,e)},t.prototype.getSymbolType=function(){return this._symbolType},t.prototype.getSymbolPath=function(){return this.childAt(0)},t.prototype.highlight=function(){jn(this.childAt(0))},t.prototype.downplay=function(){ti(this.childAt(0))},t.prototype.setZ=function(e,n){var i=this.childAt(0);i.zlevel=e,i.z=n},t.prototype.setDraggable=function(e){var n=this.childAt(0);n.draggable=e,n.cursor=e?"move":n.cursor},t.prototype.updateData=function(e,n,i,a){this.silent=!1;var o=e.getItemVisual(n,"symbol")||"circle",s=e.hostModel,u=t.getSymbolSize(e,n),l=o!==this._symbolType,f=a&&a.disableAnimation;if(l){var h=e.getItemVisual(n,"symbolKeepAspect");this._createSymbol(o,e,n,u,h)}else{var c=this.childAt(0);c.silent=!1;var v={scaleX:u[0]/2,scaleY:u[1]/2};f?c.attr(v):we(c,v,s,n),lb(c)}if(this._updateCommon(e,n,u,i,a),l){var c=this.childAt(0);if(!f){var v={scaleX:this._sizeX,scaleY:this._sizeY,style:{opacity:c.style.opacity}};c.scaleX=c.scaleY=0,c.style.opacity=0,Ke(c,v,s,n)}}f&&this.childAt(0).stopAnimation("leave")},t.prototype._updateCommon=function(e,n,i,a,o){var s=this.childAt(0),u=e.hostModel,l,f,h,c,v,d,g,p,y;if(a&&(l=a.emphasisItemStyle,f=a.blurItemStyle,h=a.selectItemStyle,c=a.focus,v=a.blurScope,g=a.labelStatesModels,p=a.hoverScale,y=a.cursorStyle,d=a.emphasisDisabled),!a||e.hasItemOption){var m=a&&a.itemModel?a.itemModel:e.getItemModel(n),_=m.getModel("emphasis");l=_.getModel("itemStyle").getItemStyle(),h=m.getModel(["select","itemStyle"]).getItemStyle(),f=m.getModel(["blur","itemStyle"]).getItemStyle(),c=_.get("focus"),v=_.get("blurScope"),d=_.get("disabled"),g=fh(m),p=_.getShallow("scale"),y=m.getShallow("cursor")}var S=e.getItemVisual(n,"symbolRotate");s.attr("rotation",(S||0)*Math.PI/180||0);var w=n0(e.getItemVisual(n,"symbolOffset"),i);w&&(s.x=w[0],s.y=w[1]),y&&s.attr("cursor",y);var x=e.getItemVisual(n,"style"),b=x.fill;if(s instanceof pn){var T=s.style;s.useStyle(k({image:T.image,x:T.x,y:T.y,width:T.width,height:T.height},x))}else s.__isEmptyBrush?s.useStyle(k({},x)):s.useStyle(x),s.style.decal=null,s.setColor(b,o&&o.symbolInnerColor),s.style.strokeNoScale=!0;var M=e.getItemVisual(n,"liftZ"),D=this._z2;M!=null?D==null&&(this._z2=s.z2,s.z2+=M):D!=null&&(s.z2=D,this._z2=null);var A=o&&o.useNameLabel;lh(s,g,{labelFetcher:u,labelDataIndex:n,defaultText:L,inheritColor:b,defaultOpacity:x.opacity});function L(E){return A?e.getName(E):r_(e,E)}this._sizeX=i[0]/2,this._sizeY=i[1]/2;var I=s.ensureState("emphasis");if(I.style=l,s.ensureState("select").style=h,s.ensureState("blur").style=f,p){var P=Math.max(ft(p)?p:1.1,3/this._sizeY);I.scaleX=this._sizeX*P,I.scaleY=this._sizeY*P}this.setSymbolScale(1),$l(this,c,v,d)},t.prototype.setSymbolScale=function(e){this.scaleX=this.scaleY=e},t.prototype.fadeOut=function(e,n,i){var a=this.childAt(0),o=ut(this).dataIndex,s=i&&i.animation;if(this.silent=a.silent=!0,i&&i.fadeLabel){var u=a.getTextContent();u&&Qo(u,{style:{opacity:0}},n,{dataIndex:o,removeOpt:s,cb:function(){a.removeTextContent()}})}else a.removeTextContent();Qo(a,{style:{opacity:0},scaleX:0,scaleY:0},n,{dataIndex:o,cb:e,removeOpt:s})},t.getSymbolSize=function(e,n){return oM(e.getItemVisual(n,"symbolSize"))},t}(bt);function GA(r,t){this.parent.drift(r,t)}const Oh=zA;function tl(r,t,e,n){return t&&!isNaN(t[0])&&!isNaN(t[1])&&!(n.isIgnore&&n.isIgnore(e))&&!(n.clipShape&&!n.clipShape.contain(t[0],t[1]))&&r.getItemVisual(e,"symbol")!=="none"}function Yd(r){return r!=null&&!H(r)&&(r={isIgnore:r}),r||{}}function $d(r){var t=r.hostModel,e=t.getModel("emphasis");return{emphasisItemStyle:e.getModel("itemStyle").getItemStyle(),blurItemStyle:t.getModel(["blur","itemStyle"]).getItemStyle(),selectItemStyle:t.getModel(["select","itemStyle"]).getItemStyle(),focus:e.get("focus"),blurScope:e.get("blurScope"),emphasisDisabled:e.get("disabled"),hoverScale:e.get("scale"),labelStatesModels:fh(t),cursorStyle:t.get("cursor")}}var HA=function(){function r(t){this.group=new bt,this._SymbolCtor=t||Oh}return r.prototype.updateData=function(t,e){this._progressiveEls=null,e=Yd(e);var n=this.group,i=t.hostModel,a=this._data,o=this._SymbolCtor,s=e.disableAnimation,u=$d(t),l={disableAnimation:s},f=e.getSymbolPoint||function(h){return t.getItemLayout(h)};a||n.removeAll(),t.diff(a).add(function(h){var c=f(h);if(tl(t,c,h,e)){var v=new o(t,h,u,l);v.setPosition(c),t.setItemGraphicEl(h,v),n.add(v)}}).update(function(h,c){var v=a.getItemGraphicEl(c),d=f(h);if(!tl(t,d,h,e)){n.remove(v);return}var g=t.getItemVisual(h,"symbol")||"circle",p=v&&v.getSymbolType&&v.getSymbolType();if(!v||p&&p!==g)n.remove(v),v=new o(t,h,u,l),v.setPosition(d);else{v.updateData(t,h,u,l);var y={x:d[0],y:d[1]};s?v.attr(y):we(v,y,i)}n.add(v),t.setItemGraphicEl(h,v)}).remove(function(h){var c=a.getItemGraphicEl(h);c&&c.fadeOut(function(){n.remove(c)},i)}).execute(),this._getSymbolPoint=f,this._data=t},r.prototype.updateLayout=function(){var t=this,e=this._data;e&&e.eachItemGraphicEl(function(n,i){var a=t._getSymbolPoint(i);n.setPosition(a),n.markRedraw()})},r.prototype.incrementalPrepareUpdate=function(t){this._seriesScope=$d(t),this._data=null,this.group.removeAll()},r.prototype.incrementalUpdate=function(t,e,n){this._progressiveEls=[],n=Yd(n);function i(u){u.isGroup||(u.incremental=!0,u.ensureState("emphasis").hoverLayer=!0)}for(var a=t.start;a0?e=n[0]:n[1]<0&&(e=n[1]),e}function i_(r,t,e,n){var i=NaN;r.stacked&&(i=e.get(e.getCalculationInfo("stackedOverDimension"),n)),isNaN(i)&&(i=r.valueStart);var a=r.baseDataOffset,o=[];return o[a]=e.get(r.baseDim,n),o[1-a]=i,t.dataToPoint(o)}function UA(r,t){var e=[];return t.diff(r).add(function(n){e.push({cmd:"+",idx:n})}).update(function(n,i){e.push({cmd:"=",idx:i,idx1:n})}).remove(function(n){e.push({cmd:"-",idx:n})}).execute(),e}function YA(r,t,e,n,i,a,o,s){for(var u=UA(r,t),l=[],f=[],h=[],c=[],v=[],d=[],g=[],p=n_(i,t,o),y=r.getLayout("points")||[],m=t.getLayout("points")||[],_=0;_=i||g<0)break;if(an(y,m)){if(u){g+=a;continue}break}if(g===e)r[a>0?"moveTo":"lineTo"](y,m),h=y,c=m;else{var _=y-l,S=m-f;if(_*_+S*S<.5){g+=a;continue}if(o>0){for(var w=g+a,x=t[w*2],b=t[w*2+1];x===y&&b===m&&p=n||an(x,b))v=y,d=m;else{D=x-l,A=b-f;var P=y-l,E=x-y,R=m-f,V=b-m,F=void 0,B=void 0;if(s==="x"){F=Math.abs(P),B=Math.abs(E);var $=D>0?1:-1;v=y-$*F*o,d=m,L=y+$*B*o,I=m}else if(s==="y"){F=Math.abs(R),B=Math.abs(V);var it=A>0?1:-1;v=y,d=m-it*F*o,L=y,I=m+it*B*o}else F=Math.sqrt(P*P+R*R),B=Math.sqrt(E*E+V*V),M=B/(B+F),v=y-D*o*(1-M),d=m-A*o*(1-M),L=y+D*o*M,I=m+A*o*M,L=or(L,sr(x,y)),I=or(I,sr(b,m)),L=sr(L,or(x,y)),I=sr(I,or(b,m)),D=L-y,A=I-m,v=y-D*F/B,d=m-A*F/B,v=or(v,sr(l,y)),d=or(d,sr(f,m)),v=sr(v,or(l,y)),d=sr(d,or(f,m)),D=y-v,A=m-d,L=y+D*B/F,I=m+A*B/F}r.bezierCurveTo(h,c,v,d,y,m),h=L,c=I}else r.lineTo(y,m)}l=y,f=m,g+=a}return p}var a_=function(){function r(){this.smooth=0,this.smoothConstraint=!0}return r}(),$A=function(r){O(t,r);function t(e){var n=r.call(this,e)||this;return n.type="ec-polyline",n}return t.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},t.prototype.getDefaultShape=function(){return new a_},t.prototype.buildPath=function(e,n){var i=n.points,a=0,o=i.length/2;if(n.connectNulls){for(;o>0&&an(i[o*2-2],i[o*2-1]);o--);for(;a=0){var S=l?(d-u)*_+u:(v-s)*_+s;return l?[e,S]:[S,e]}s=v,u=d;break;case o.C:v=a[h++],d=a[h++],g=a[h++],p=a[h++],y=a[h++],m=a[h++];var w=l?Vo(s,v,g,y,e,f):Vo(u,d,p,m,e,f);if(w>0)for(var x=0;x=0){var S=l?Tt(u,d,p,m,b):Tt(s,v,g,y,b);return l?[e,S]:[S,e]}}s=y,u=m;break}}},t}(rt),ZA=function(r){O(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return t}(a_),XA=function(r){O(t,r);function t(e){var n=r.call(this,e)||this;return n.type="ec-polygon",n}return t.prototype.getDefaultShape=function(){return new ZA},t.prototype.buildPath=function(e,n){var i=n.points,a=n.stackedOnPoints,o=0,s=i.length/2,u=n.smoothMonotone;if(n.connectNulls){for(;s>0&&an(i[s*2-2],i[s*2-1]);s--);for(;ot){a?e.push(o(a,u,t)):i&&e.push(o(i,u,0),o(i,u,t));break}else i&&(e.push(o(i,u,0)),i=null),e.push(u),a=u}return e}function t2(r,t,e){var n=r.getVisual("visualMeta");if(!(!n||!n.length||!r.count())&&t.type==="cartesian2d"){for(var i,a,o=n.length-1;o>=0;o--){var s=r.getDimensionInfo(n[o].dimension);if(i=s&&s.coordDim,i==="x"||i==="y"){a=n[o];break}}if(!!a){var u=t.getAxis(i),l=z(a.stops,function(_){return{coord:u.toGlobalCoord(u.dataToCoord(_.value)),color:_.color}}),f=l.length,h=a.outerColors.slice();f&&l[0].coord>l[f-1].coord&&(l.reverse(),h.reverse());var c=jA(l,i==="x"?e.getWidth():e.getHeight()),v=c.length;if(!v&&f)return l[0].coord<0?h[1]?h[1]:l[f-1].color:h[0]?h[0]:l[0].color;var d=10,g=c[0].coord-d,p=c[v-1].coord+d,y=p-g;if(y<.001)return"transparent";C(c,function(_){_.offset=(_.coord-g)/y}),c.push({offset:v?c[v-1].offset:.5,color:h[1]||"transparent"}),c.unshift({offset:v?c[0].offset:.5,color:h[0]||"transparent"});var m=new Zy(0,0,0,0,c,!0);return m[i]=g,m[i+"2"]=p,m}}}function e2(r,t,e){var n=r.get("showAllSymbol"),i=n==="auto";if(!(n&&!i)){var a=e.getAxesByScale("ordinal")[0];if(!!a&&!(i&&r2(a,t))){var o=t.mapDimension(a.dim),s={};return C(a.getViewLabels(),function(u){var l=a.scale.getRawOrdinalNumber(u.tickValue);s[l]=1}),function(u){return!s.hasOwnProperty(t.get(o,u))}}}}function r2(r,t){var e=r.getExtent(),n=Math.abs(e[1]-e[0])/r.scale.count();isNaN(n)&&(n=0);for(var i=t.count(),a=Math.max(1,Math.round(i/5)),o=0;on)return!1;return!0}function n2(r,t){return isNaN(r)||isNaN(t)}function i2(r){for(var t=r.length/2;t>0&&n2(r[t*2-2],r[t*2-1]);t--);return t-1}function Qd(r,t){return[r[t*2],r[t*2+1]]}function a2(r,t,e){for(var n=r.length/2,i=e==="x"?0:1,a,o,s=0,u=-1,l=0;l=t||a>=t&&o<=t){u=l;break}s=l,a=o}return{range:[s,u],t:(t-a)/(o-a)}}function o_(r){if(r.get(["endLabel","show"]))return!0;for(var t=0;t0&&e.get(["emphasis","lineStyle","width"])==="bolder"){var $=g.getState("emphasis").style;$.lineWidth=+g.style.lineWidth+1}ut(g).seriesIndex=e.seriesIndex,$l(g,V,F,B);var it=Kd(e.get("smooth")),lt=e.get("smoothMonotone");if(g.setShape({smooth:it,smoothMonotone:lt,connectNulls:T}),p){var ht=u.getCalculationInfo("stackedOnSeries"),vt=0;p.useStyle(q(f.getAreaStyle(),{fill:I,opacity:.7,lineJoin:"bevel",decal:u.getVisual("style").decal})),ht&&(vt=Kd(ht.get("smooth"))),p.setShape({smooth:it,stackedOnSmooth:vt,smoothMonotone:lt,connectNulls:T}),oc(p,e,"areaStyle"),ut(p).seriesIndex=e.seriesIndex,$l(p,V,F,B)}var Lt=function(dt){a._changePolyState(dt)};u.eachItemGraphicEl(function(dt){dt&&(dt.onHoverStateChange=Lt)}),this._polyline.onHoverStateChange=Lt,this._data=u,this._coordSys=o,this._stackedOnPoints=x,this._points=h,this._step=A,this._valueOrigin=S,e.get("triggerLineEvent")&&(this.packEventData(e,g),p&&this.packEventData(e,p))},t.prototype.packEventData=function(e,n){ut(n).eventData={componentType:"series",componentSubType:"line",componentIndex:e.componentIndex,seriesIndex:e.seriesIndex,seriesName:e.name,seriesType:"line"}},t.prototype.highlight=function(e,n,i,a){var o=e.getData(),s=ln(o,a);if(this._changePolyState("emphasis"),!(s instanceof Array)&&s!=null&&s>=0){var u=o.getLayout("points"),l=o.getItemGraphicEl(s);if(!l){var f=u[s*2],h=u[s*2+1];if(isNaN(f)||isNaN(h)||this._clipShapeForSymbol&&!this._clipShapeForSymbol.contain(f,h))return;var c=e.get("zlevel"),v=e.get("z");l=new Oh(o,s),l.x=f,l.y=h,l.setZ(c,v);var d=l.getSymbolPath().getTextContent();d&&(d.zlevel=c,d.z=v,d.z2=this._polyline.z2+1),l.__temp=!0,o.setItemGraphicEl(s,l),l.stopSymbolAnimation(!0),this.group.add(l)}l.highlight()}else _r.prototype.highlight.call(this,e,n,i,a)},t.prototype.downplay=function(e,n,i,a){var o=e.getData(),s=ln(o,a);if(this._changePolyState("normal"),s!=null&&s>=0){var u=o.getItemGraphicEl(s);u&&(u.__temp?(o.setItemGraphicEl(s,null),this.group.remove(u)):u.downplay())}else _r.prototype.downplay.call(this,e,n,i,a)},t.prototype._changePolyState=function(e){var n=this._polygon;ec(this._polyline,e),n&&ec(n,e)},t.prototype._newPolyline=function(e){var n=this._polyline;return n&&this._lineGroup.remove(n),n=new $A({shape:{points:e},segmentIgnoreThreshold:2,z2:10}),this._lineGroup.add(n),this._polyline=n,n},t.prototype._newPolygon=function(e,n){var i=this._polygon;return i&&this._lineGroup.remove(i),i=new XA({shape:{points:e,stackedOnPoints:n},segmentIgnoreThreshold:2}),this._lineGroup.add(i),this._polygon=i,i},t.prototype._initSymbolLabelAnimation=function(e,n,i){var a,o,s=n.getBaseAxis(),u=s.inverse;n.type==="cartesian2d"?(a=s.isHorizontal(),o=!1):n.type==="polar"&&(a=s.dim==="angle",o=!0);var l=e.hostModel,f=l.get("animationDuration");U(f)&&(f=f(null));var h=l.get("animationDelay")||0,c=U(h)?h(null):h;e.eachItemGraphicEl(function(v,d){var g=v;if(g){var p=[v.x,v.y],y=void 0,m=void 0,_=void 0;if(i)if(o){var S=i,w=n.pointToCoord(p);a?(y=S.startAngle,m=S.endAngle,_=-w[1]/180*Math.PI):(y=S.r0,m=S.r,_=w[0])}else{var x=i;a?(y=x.x,m=x.x+x.width,_=v.x):(y=x.y+x.height,m=x.y,_=v.y)}var b=m===y?0:(_-y)/(m-y);u&&(b=1-b);var T=U(h)?h(d):f*b+c,M=g.getSymbolPath(),D=M.getTextContent();g.attr({scaleX:0,scaleY:0}),g.animateTo({scaleX:1,scaleY:1},{duration:200,setToFinal:!0,delay:T}),D&&D.animateFrom({style:{opacity:0}},{duration:300,delay:T}),M.disableLabelAnimation=!0}})},t.prototype._initOrUpdateEndLabel=function(e,n,i){var a=e.getModel("endLabel");if(o_(e)){var o=e.getData(),s=this._polyline,u=o.getLayout("points");if(!u){s.removeTextContent(),this._endLabel=null;return}var l=this._endLabel;l||(l=this._endLabel=new Dt({z2:200}),l.ignoreClip=!0,s.setTextContent(this._endLabel),s.disableLabelAnimation=!0);var f=i2(u);f>=0&&(lh(s,fh(e,"endLabel"),{inheritColor:i,labelFetcher:e,labelDataIndex:f,defaultText:function(h,c,v){return v!=null?FA(o,v):r_(o,h)},enableTextSetter:!0},o2(a,n)),s.textConfig.position=null)}else this._endLabel&&(this._polyline.removeTextContent(),this._endLabel=null)},t.prototype._endLabelOnDuring=function(e,n,i,a,o,s,u){var l=this._endLabel,f=this._polyline;if(l){e<1&&a.originalX==null&&(a.originalX=l.x,a.originalY=l.y);var h=i.getLayout("points"),c=i.hostModel,v=c.get("connectNulls"),d=s.get("precision"),g=s.get("distance")||0,p=u.getBaseAxis(),y=p.isHorizontal(),m=p.inverse,_=n.shape,S=m?y?_.x:_.y+_.height:y?_.x+_.width:_.y,w=(y?g:0)*(m?-1:1),x=(y?0:-g)*(m?-1:1),b=y?"x":"y",T=a2(h,S,b),M=T.range,D=M[1]-M[0],A=void 0;if(D>=1){if(D>1&&!v){var L=Qd(h,M[0]);l.attr({x:L[0]+w,y:L[1]+x}),o&&(A=c.getRawValue(M[0]))}else{var L=f.getPointOn(S,b);L&&l.attr({x:L[0]+w,y:L[1]+x});var I=c.getRawValue(M[0]),P=c.getRawValue(M[1]);o&&(A=ry(i,d,I,P,T.t))}a.lastFrameIndex=M[0]}else{var E=e===1||a.lastFrameIndex>0?M[0]:0,L=Qd(h,E);o&&(A=c.getRawValue(E)),l.attr({x:L[0]+w,y:L[1]+x})}o&&Ps(l).setLabelText(A)}},t.prototype._doUpdateAnimation=function(e,n,i,a,o,s,u){var l=this._polyline,f=this._polygon,h=e.hostModel,c=YA(this._data,e,this._stackedOnPoints,n,this._coordSys,i,this._valueOrigin),v=c.current,d=c.stackedOnCurrent,g=c.next,p=c.stackedOnNext;if(o&&(v=ur(c.current,i,o,u),d=ur(c.stackedOnCurrent,i,o,u),g=ur(c.next,i,o,u),p=ur(c.stackedOnNext,i,o,u)),qd(v,g)>3e3||f&&qd(d,p)>3e3){l.stopAnimation(),l.setShape({points:g}),f&&(f.stopAnimation(),f.setShape({points:g,stackedOnPoints:p}));return}l.shape.__points=c.current,l.shape.points=v;var y={shape:{points:g}};c.current!==v&&(y.shape.__points=c.next),l.stopAnimation(),we(l,y,h),f&&(f.setShape({points:v,stackedOnPoints:d}),f.stopAnimation(),we(f,{shape:{stackedOnPoints:p}},h),l.shape.points!==f.shape.points&&(f.shape.points=l.shape.points));for(var m=[],_=c.status,S=0;S<_.length;S++){var w=_[S].cmd;if(w==="="){var x=e.getItemGraphicEl(_[S].idx1);x&&m.push({el:x,ptIdx:S})}}l.animators&&l.animators.length&&l.animators[0].during(function(){f&&f.dirtyShape();for(var b=l.shape.__points,T=0;Tt&&(t=r[e]);return isFinite(t)?t:NaN},min:function(r){for(var t=1/0,e=0;e10&&o.type==="cartesian2d"&&a){var u=o.getBaseAxis(),l=o.getOtherAxis(u),f=u.getExtent(),h=n.getDevicePixelRatio(),c=Math.abs(f[1]-f[0])*(h||1),v=Math.round(s/c);if(isFinite(v)&&v>1){a==="lttb"&&t.setData(i.lttbDownSample(i.mapDimension(l.dim),1/v));var d=void 0;G(a)?d=f2[a]:U(a)&&(d=a),d&&t.setData(i.downSample(i.mapDimension(l.dim),1/v,d,h2))}}}}}function XR(r){r.registerChartView(u2),r.registerSeriesModel(NA),r.registerLayout(l2("line",!0)),r.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)}}),r.registerProcessor(r.PRIORITY.PROCESSOR.STATISTIC,v2("line"))}var c2=function(r){O(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return t.type="grid",t.dependencies=["xAxis","yAxis"],t.layoutMode="box",t.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"},t}(ct);const d2=c2;var gf=function(r){O(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return t.prototype.getCoordSysModel=function(){return this.getReferringComponents("grid",zt).models[0]},t.type="cartesian2dAxis",t}(ct);Ne(gf,sA);var s_={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)"]}}},p2=Q({boundaryGap:!0,deduplication:null,splitLine:{show:!1},axisTick:{alignWithLabel:!1,interval:"auto"},axisLabel:{interval:"auto"}},s_),kh=Q({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}}},s_),g2=Q({splitNumber:6,axisLabel:{showMinLabel:!1,showMaxLabel:!1,rich:{primary:{fontWeight:"bold"}}},splitLine:{show:!1}},kh),y2=q({logBase:10},kh);const m2={category:p2,value:kh,time:g2,log:y2};var _2={value:1,category:1,time:1,log:1};function Jd(r,t,e,n){C(_2,function(i,a){var o=Q(Q({},m2[a],!0),n,!0),s=function(u){O(l,u);function l(){var f=u!==null&&u.apply(this,arguments)||this;return f.type=t+"Axis."+a,f}return l.prototype.mergeDefaultAndTheme=function(f,h){var c=va(this),v=c?Pa(f):{},d=h.getTheme();Q(f,d.get(a+"Axis")),Q(f,this.getDefaultOption()),f.type=jd(f),c&&ei(f,v,c)},l.prototype.optionUpdated=function(){var f=this.option;f.type==="category"&&(this.__ordinalMeta=vf.createByAxisModel(this))},l.prototype.getCategories=function(f){var h=this.option;if(h.type==="category")return f?h.data:this.__ordinalMeta.categories},l.prototype.getOrdinalMeta=function(){return this.__ordinalMeta},l.type=t+"Axis."+a,l.defaultOption=o,l}(e);r.registerComponentModel(s)}),r.registerSubTypeDefaulter(t+"Axis",jd)}function jd(r){return r.type||(r.data?"category":"value")}var S2=function(){function r(t){this.type="cartesian",this._dimList=[],this._axes={},this.name=t||""}return r.prototype.getAxis=function(t){return this._axes[t]},r.prototype.getAxes=function(){return z(this._dimList,function(t){return this._axes[t]},this)},r.prototype.getAxesByScale=function(t){return t=t.toLowerCase(),xt(this.getAxes(),function(e){return e.scale.type===t})},r.prototype.addAxis=function(t){var e=t.dim;this._axes[e]=t,this._dimList.push(e)},r}();const x2=S2;var yf=["x","y"];function tp(r){return r.type==="interval"||r.type==="time"}var w2=function(r){O(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type="cartesian2d",e.dimensions=yf,e}return t.prototype.calcAffineTransform=function(){this._transform=this._invTransform=null;var e=this.getAxis("x").scale,n=this.getAxis("y").scale;if(!(!tp(e)||!tp(n))){var i=e.getExtent(),a=n.getExtent(),o=this.dataToPoint([i[0],a[0]]),s=this.dataToPoint([i[1],a[1]]),u=i[1]-i[0],l=a[1]-a[0];if(!(!u||!l)){var f=(s[0]-o[0])/u,h=(s[1]-o[1])/l,c=o[0]-i[0]*f,v=o[1]-a[0]*h,d=this._transform=[f,0,0,h,c,v];this._invTransform=ms([],d)}}},t.prototype.getBaseAxis=function(){return this.getAxesByScale("ordinal")[0]||this.getAxesByScale("time")[0]||this.getAxis("x")},t.prototype.containPoint=function(e){var n=this.getAxis("x"),i=this.getAxis("y");return n.contain(n.toLocalCoord(e[0]))&&i.contain(i.toLocalCoord(e[1]))},t.prototype.containData=function(e){return this.getAxis("x").containData(e[0])&&this.getAxis("y").containData(e[1])},t.prototype.dataToPoint=function(e,n,i){i=i||[];var a=e[0],o=e[1];if(this._transform&&a!=null&&isFinite(a)&&o!=null&&isFinite(o))return fe(i,e,this._transform);var s=this.getAxis("x"),u=this.getAxis("y");return i[0]=s.toGlobalCoord(s.dataToCoord(a,n)),i[1]=u.toGlobalCoord(u.dataToCoord(o,n)),i},t.prototype.clampData=function(e,n){var i=this.getAxis("x").scale,a=this.getAxis("y").scale,o=i.getExtent(),s=a.getExtent(),u=i.parse(e[0]),l=a.parse(e[1]);return n=n||[],n[0]=Math.min(Math.max(Math.min(o[0],o[1]),u),Math.max(o[0],o[1])),n[1]=Math.min(Math.max(Math.min(s[0],s[1]),l),Math.max(s[0],s[1])),n},t.prototype.pointToData=function(e,n){var i=[];if(this._invTransform)return fe(i,e,this._invTransform);var a=this.getAxis("x"),o=this.getAxis("y");return i[0]=a.coordToData(a.toLocalCoord(e[0]),n),i[1]=o.coordToData(o.toLocalCoord(e[1]),n),i},t.prototype.getOtherAxis=function(e){return this.getAxis(e.dim==="x"?"y":"x")},t.prototype.getArea=function(){var e=this.getAxis("x").getGlobalExtent(),n=this.getAxis("y").getGlobalExtent(),i=Math.min(e[0],e[1]),a=Math.min(n[0],n[1]),o=Math.max(e[0],e[1])-i,s=Math.max(n[0],n[1])-a;return new at(i,a,o,s)},t}(x2),b2=function(r){O(t,r);function t(e,n,i,a,o){var s=r.call(this,e,n,i)||this;return s.index=0,s.type=a||"value",s.position=o||"bottom",s}return t.prototype.isHorizontal=function(){var e=this.position;return e==="top"||e==="bottom"},t.prototype.getGlobalExtent=function(e){var n=this.getExtent();return n[0]=this.toGlobalCoord(n[0]),n[1]=this.toGlobalCoord(n[1]),e&&n[0]>n[1]&&n.reverse(),n},t.prototype.pointToData=function(e,n){return this.coordToData(this.toLocalCoord(e[this.dim==="x"?0:1]),n)},t.prototype.setCategorySortInfo=function(e){if(this.type!=="category")return!1;this.model.option.categorySortInfo=e,this.scale.setSortInfo(e)},t}(_A);const T2=b2;function mf(r,t,e){e=e||{};var n=r.coordinateSystem,i=t.axis,a={},o=i.getAxesOnZeroOf()[0],s=i.position,u=o?"onZero":s,l=i.dim,f=n.getRect(),h=[f.x,f.x+f.width,f.y,f.y+f.height],c={left:0,right:1,top:0,bottom:1,onZero:2},v=t.get("offset")||0,d=l==="x"?[h[2]-v,h[3]+v]:[h[0]-v,h[1]+v];if(o){var g=o.toGlobalCoord(o.dataToCoord(0));d[c.onZero]=Math.max(Math.min(g,d[1]),d[0])}a.position=[l==="y"?d[c[u]]:h[0],l==="x"?d[c[u]]:h[3]],a.rotation=Math.PI/2*(l==="x"?0:1);var p={top:-1,bottom:1,left:-1,right:1};a.labelDirection=a.tickDirection=a.nameDirection=p[s],a.labelOffset=o?d[c[s]]-d[c.onZero]:0,t.get(["axisTick","inside"])&&(a.tickDirection=-a.tickDirection),na(e.labelInside,t.get(["axisLabel","inside"]))&&(a.labelDirection=-a.labelDirection);var y=t.get(["axisLabel","rotate"]);return a.labelRotate=u==="top"?-y:y,a.z2=1,a}function ep(r){return r.get("coordinateSystem")==="cartesian2d"}function rp(r){var t={xAxisModel:null,yAxisModel:null};return C(t,function(e,n){var i=n.replace(/Model$/,""),a=r.getReferringComponents(i,zt).models[0];t[n]=a}),t}var rl=Math.log;function C2(r,t,e){var n=Ra.prototype,i=n.getTicks.call(e),a=n.getTicks.call(e,!0),o=i.length-1,s=n.getInterval.call(e),u=W0(r,t),l=u.extent,f=u.fixMin,h=u.fixMax;if(r.type==="log"){var c=rl(r.base);l=[rl(l[0])/c,rl(l[1])/c]}r.setExtent(l[0],l[1]),r.calcNiceExtent({splitNumber:o,fixMin:f,fixMax:h});var v=n.getExtent.call(r);f&&(l[0]=v[0]),h&&(l[1]=v[1]);var d=n.getInterval.call(r),g=l[0],p=l[1];if(f&&h)d=(p-g)/o;else if(f)for(p=l[0]+d*o;pl[0]&&isFinite(g)&&isFinite(l[0]);)d=Qu(d),g=l[1]-d*o;else{var y=r.getTicks().length-1;y>o&&(d=Qu(d));var m=d*o;p=Math.ceil(l[1]/d)*d,g=wt(p-m),g<0&&l[0]>=0?(g=0,p=wt(m)):p>0&&l[1]<=0&&(p=0,g=-wt(m))}var _=(i[0].value-a[0].value)/s,S=(i[o].value-a[o].value)/s;n.setExtent.call(r,g+d*_,p+d*S),n.setInterval.call(r,d),(_||S)&&n.setNiceExtent.call(r,g+d,p-d)}var M2=function(){function r(t,e,n){this.type="grid",this._coordsMap={},this._coordsList=[],this._axesMap={},this._axesList=[],this.axisPointerEnabled=!0,this.dimensions=yf,this._initCartesian(t,e,n),this.model=t}return r.prototype.getRect=function(){return this._rect},r.prototype.update=function(t,e){var n=this._axesMap;this._updateScale(t,this.model);function i(o){var s,u=pt(o),l=u.length;if(!!l){for(var f=[],h=l-1;h>=0;h--){var c=+u[h],v=o[c],d=v.model,g=v.scale;cf(g)&&d.get("alignTicks")&&d.get("interval")==null?f.push(v):(Nd(g,d),cf(g)&&(s=v))}f.length&&(s||(s=f.pop(),Nd(s.scale,s.model)),C(f,function(p){C2(p.scale,p.model,s.scale)}))}}i(n.x),i(n.y);var a={};C(n.x,function(o){np(n,"y",o,a)}),C(n.y,function(o){np(n,"x",o,a)}),this.resize(this.model,e)},r.prototype.resize=function(t,e,n){var i=t.getBoxLayoutParams(),a=!n&&t.get("containLabel"),o=wr(i,{width:e.getWidth(),height:e.getHeight()});this._rect=o;var s=this._axesList;u(),a&&(C(s,function(l){if(!l.model.get(["axisLabel","inside"])){var f=iA(l);if(f){var h=l.isHorizontal()?"height":"width",c=l.model.get(["axisLabel","margin"]);o[h]-=f[h]+c,l.position==="top"?o.y+=f.height+c:l.position==="left"&&(o.x+=f.width+c)}}}),u()),C(this._coordsList,function(l){l.calcAffineTransform()});function u(){C(s,function(l){var f=l.isHorizontal(),h=f?[0,o.width]:[0,o.height],c=l.inverse?1:0;l.setExtent(h[c],h[1-c]),D2(l,f?o.x:o.y)})}},r.prototype.getAxis=function(t,e){var n=this._axesMap[t];if(n!=null)return n[e||0]},r.prototype.getAxes=function(){return this._axesList.slice()},r.prototype.getCartesian=function(t,e){if(t!=null&&e!=null){var n="x"+t+"y"+e;return this._coordsMap[n]}H(t)&&(e=t.yAxisIndex,t=t.xAxisIndex);for(var i=0,a=this._coordsList;i0?"top":"bottom",a="center"):Zo(i-dr)?(o=n>0?"bottom":"top",a="center"):(o="middle",i>0&&i0?"right":"left":a=n>0?"left":"right"),{rotation:i,textAlign:a,textVerticalAlign:o}},r.makeAxisEventDataBase=function(t){var e={componentType:t.mainType,componentIndex:t.componentIndex};return e[t.mainType+"Index"]=t.componentIndex,e},r.isLabelSilent=function(t){var e=t.get("tooltip");return t.get("silent")||!(t.get("triggerEvent")||e&&e.show)},r}(),ap={axisLine:function(r,t,e,n){var i=t.get(["axisLine","show"]);if(i==="auto"&&r.handleAutoShown&&(i=r.handleAutoShown("axisLine")),!!i){var a=t.axis.getExtent(),o=n.transform,s=[a[0],0],u=[a[1],0];o&&(fe(s,s,o),fe(u,u,o));var l=k({lineCap:"round"},t.getModel(["axisLine","lineStyle"]).getLineStyle()),f=new fn({subPixelOptimize:!0,shape:{x1:s[0],y1:s[1],x2:u[0],y2:u[1]},style:l,strokeContainThreshold:r.strokeContainThreshold||5,silent:!0,z2:1});f.anid="line",e.add(f);var h=t.get(["axisLine","symbol"]);if(h!=null){var c=t.get(["axisLine","symbolSize"]);G(h)&&(h=[h,h]),(G(c)||ft(c))&&(c=[c,c]);var v=n0(t.get(["axisLine","symbolOffset"])||0,c),d=c[0],g=c[1];C([{rotate:r.rotation+Math.PI/2,offset:v[0],r:0},{rotate:r.rotation-Math.PI/2,offset:v[1],r:Math.sqrt((s[0]-u[0])*(s[0]-u[0])+(s[1]-u[1])*(s[1]-u[1]))}],function(p,y){if(h[y]!=="none"&&h[y]!=null){var m=br(h[y],-d/2,-g/2,d,g,l.stroke,!0),_=p.r+p.offset;m.attr({rotation:p.rotate,x:s[0]+_*Math.cos(r.rotation),y:s[1]-_*Math.sin(r.rotation),silent:!0,z2:11}),e.add(m)}})}}},axisTickLabel:function(r,t,e,n){var i=P2(e,n,t,r),a=E2(e,n,t,r);if(I2(t,a,i),R2(e,n,t,r.tickDirection),t.get(["axisLabel","hideOverlap"])){var o=j0(z(a,function(s){return{label:s,priority:s.z2,defaultAttr:{ignore:s.ignore}}}));e_(o)}},axisName:function(r,t,e,n){var i=na(r.axisName,t.get("name"));if(!!i){var a=t.get("nameLocation"),o=r.nameDirection,s=t.getModel("nameTextStyle"),u=t.get("nameGap")||0,l=t.axis.getExtent(),f=l[0]>l[1]?-1:1,h=[a==="start"?l[0]-f*u:a==="end"?l[1]+f*u:(l[0]+l[1])/2,sp(a)?r.labelOffset+o*u:0],c,v=t.get("nameRotate");v!=null&&(v=v*dr/180);var d;sp(a)?c=on.innerTextLayout(r.rotation,v!=null?v:r.rotation,o):(c=L2(r.rotation,a,v||0,l),d=r.axisNameAvailableWidth,d!=null&&(d=Math.abs(d/Math.sin(c.rotation)),!isFinite(d)&&(d=null)));var g=s.getFont(),p=t.get("nameTruncate",!0)||{},y=p.ellipsis,m=na(r.nameTruncateMaxWidth,p.maxWidth,d),_=new Dt({x:h[0],y:h[1],rotation:c.rotation,silent:on.isLabelSilent(t),style:Qe(s,{text:i,font:g,overflow:"truncate",width:m,ellipsis:y,fill:s.getTextColor()||t.get(["axisLine","lineStyle","color"]),align:s.get("align")||c.textAlign,verticalAlign:s.get("verticalAlign")||c.textVerticalAlign}),z2:1});if(Ls({el:_,componentModel:t,itemName:i}),_.__fullText=i,_.anid="name",t.get("triggerEvent")){var S=on.makeAxisEventDataBase(t);S.targetType="axisName",S.name=i,ut(_).eventData=S}n.add(_),_.updateTransform(),e.add(_),_.decomposeTransform()}}};function L2(r,t,e,n){var i=Xg(e-r),a,o,s=n[0]>n[1],u=t==="start"&&!s||t!=="start"&&s;return Zo(i-dr/2)?(o=u?"bottom":"top",a="center"):Zo(i-dr*1.5)?(o=u?"top":"bottom",a="center"):(o="middle",idr/2?a=u?"left":"right":a=u?"right":"left"),{rotation:i,textAlign:a,textVerticalAlign:o}}function I2(r,t,e){if(!U0(r.axis)){var n=r.get(["axisLabel","showMinLabel"]),i=r.get(["axisLabel","showMaxLabel"]);t=t||[],e=e||[];var a=t[0],o=t[1],s=t[t.length-1],u=t[t.length-2],l=e[0],f=e[1],h=e[e.length-1],c=e[e.length-2];n===!1?(re(a),re(l)):op(a,o)&&(n?(re(o),re(f)):(re(a),re(l))),i===!1?(re(s),re(h)):op(u,s)&&(i?(re(u),re(c)):(re(s),re(h)))}}function re(r){r&&(r.ignore=!0)}function op(r,t){var e=r&&r.getBoundingRect().clone(),n=t&&t.getBoundingRect().clone();if(!(!e||!n)){var i=Uf([]);return Yf(i,i,-r.rotation),e.applyTransform(Zn([],i,r.getLocalTransform())),n.applyTransform(Zn([],i,t.getLocalTransform())),e.intersect(n)}}function sp(r){return r==="middle"||r==="center"}function u_(r,t,e,n,i){for(var a=[],o=[],s=[],u=0;u=0||r===t}function z2(r){var t=Bh(r);if(!!t){var e=t.axisPointerModel,n=t.axis.scale,i=e.option,a=e.get("status"),o=e.get("value");o!=null&&(o=n.parse(o));var s=_f(e);a==null&&(i.status=s?"show":"hide");var u=n.getExtent().slice();u[0]>u[1]&&u.reverse(),(o==null||o>u[1])&&(o=u[1]),o3?1.4:o>1?1.2:1.1,f=a>0?l:1/l;al(this,"zoom","zoomOnMouseWheel",e,{scale:f,originX:s,originY:u,isAvailableBehavior:null})}if(i){var h=Math.abs(a),c=(a>0?1:-1)*(h>3?.4:h>1?.15:.05);al(this,"scrollMove","moveOnMouseWheel",e,{scrollDelta:c,originX:s,originY:u,isAvailableBehavior:null})}}},t.prototype._pinchHandler=function(e){if(!hp(this._zr,"globalPan")){var n=e.pinchScale>1?1.1:1/1.1;al(this,"zoom",null,e,{scale:n,originX:e.pinchX,originY:e.pinchY,isAvailableBehavior:null})}},t}(ce);function al(r,t,e,n,i){r.pointerChecker&&r.pointerChecker(n,i.originX,i.originY)&&(Jn(n.event),c_(r,t,e,n,i))}function c_(r,t,e,n,i){i.isAvailableBehavior=Y(No,null,e,n),r.trigger(t,i)}function No(r,t,e){var n=e[r];return!r||n&&(!G(n)||t.event[n+"Key"])}const j2=J2;var tL={axisPointer:1,tooltip:1,brush:1};function eL(r,t,e){var n=t.getComponentByElement(r.topTarget),i=n&&n.coordinateSystem;return n&&n!==e&&!tL.hasOwnProperty(n.mainType)&&i&&i.model!==e}function Oa(r,t,e,n,i,a){r=r||0;var o=e[1]-e[0];if(i!=null&&(i=Pn(i,[0,o])),a!=null&&(a=Math.max(a,i!=null?i:0)),n==="all"){var s=Math.abs(t[1]-t[0]);s=Pn(s,[0,o]),i=a=Pn(s,[i,a]),n=0}t[0]=Pn(t[0],e),t[1]=Pn(t[1],e);var u=ol(t,n);t[n]+=r;var l=i||0,f=e.slice();u.sign<0?f[0]+=l:f[1]-=l,t[n]=Pn(t[n],f);var h;return h=ol(t,n),i!=null&&(h.sign!==u.sign||h.spana&&(t[1-n]=t[n]+h.sign*a),t}function ol(r,t){var e=r[t]-r[1-t];return{span:Math.abs(e),sign:e>0?-1:e<0?1:t?-1:1}}function Pn(r,t){return Math.min(t[1]!=null?t[1]:1/0,Math.max(t[0]!=null?t[0]:-1/0,r))}var vn=!0,wa=Math.min,ni=Math.max,rL=Math.pow,nL=1e4,iL=6,aL=6,vp="globalPan",oL={w:[0,0],e:[0,1],n:[1,0],s:[1,1]},sL={w:"ew",e:"ew",n:"ns",s:"ns",ne:"nesw",sw:"nesw",nw:"nwse",se:"nwse"},cp={brushStyle:{lineWidth:2,stroke:"rgba(210,219,238,0.3)",fill:"#D2DBEE"},transformable:!0,brushMode:"single",removeOnClick:!1},uL=0,lL=function(r){O(t,r);function t(e){var n=r.call(this)||this;return n._track=[],n._covers=[],n._handlers={},n._zr=e,n.group=new bt,n._uid="brushController_"+uL++,C(gL,function(i,a){this._handlers[a]=Y(i,this)},n),n}return t.prototype.enableBrush=function(e){return this._brushType&&this._doDisableBrush(),e.brushType&&this._doEnableBrush(e),this},t.prototype._doEnableBrush=function(e){var n=this._zr;this._enableGlobalPan||K2(n,vp,this._uid),C(this._handlers,function(i,a){n.on(a,i)}),this._brushType=e.brushType,this._brushOption=Q(K(cp),e,!0)},t.prototype._doDisableBrush=function(){var e=this._zr;Q2(e,vp,this._uid),C(this._handlers,function(n,i){e.off(i,n)}),this._brushType=this._brushOption=null},t.prototype.setPanels=function(e){if(e&&e.length){var n=this._panels={};C(e,function(i){n[i.panelId]=K(i)})}else this._panels=null;return this},t.prototype.mount=function(e){e=e||{},this._enableGlobalPan=e.enableGlobalPan;var n=this.group;return this._zr.add(n),n.attr({x:e.x||0,y:e.y||0,rotation:e.rotation||0,scaleX:e.scaleX||1,scaleY:e.scaleY||1}),this._transform=n.getLocalTransform(),this},t.prototype.updateCovers=function(e){e=z(e,function(c){return Q(K(cp),c,!0)});var n="\0-brush-index-",i=this._covers,a=this._covers=[],o=this,s=this._creatingCover;return new ma(i,e,l,u).add(f).update(f).remove(h).execute(),this;function u(c,v){return(c.id!=null?c.id:n+v)+"-"+c.brushType}function l(c,v){return u(c.__brushOption,v)}function f(c,v){var d=e[c];if(v!=null&&i[v]===s)a[c]=i[v];else{var g=a[c]=v!=null?(i[v].__brushOption=d,i[v]):p_(o,d_(o,d));Fh(o,g)}}function h(c){i[c]!==s&&o.group.remove(i[c])}},t.prototype.unmount=function(){return this.enableBrush(!1),xf(this),this._zr.remove(this.group),this},t.prototype.dispose=function(){this.unmount(),this.off()},t}(ce);function d_(r,t){var e=$s[t.brushType].createCover(r,t);return e.__brushOption=t,y_(e,t),r.group.add(e),e}function p_(r,t){var e=zh(t);return e.endCreating&&(e.endCreating(r,t),y_(t,t.__brushOption)),t}function g_(r,t){var e=t.__brushOption;zh(t).updateCoverShape(r,t,e.range,e)}function y_(r,t){var e=t.z;e==null&&(e=nL),r.traverse(function(n){n.z=e,n.z2=e})}function Fh(r,t){zh(t).updateCommon(r,t),g_(r,t)}function zh(r){return $s[r.__brushOption.brushType]}function Gh(r,t,e){var n=r._panels;if(!n)return vn;var i,a=r._transform;return C(n,function(o){o.isTargetByCursor(t,e,a)&&(i=o)}),i}function m_(r,t){var e=r._panels;if(!e)return vn;var n=t.__brushOption.panelId;return n!=null?e[n]:vn}function xf(r){var t=r._covers,e=t.length;return C(t,function(n){r.group.remove(n)},r),t.length=0,!!e}function cn(r,t){var e=z(r._covers,function(n){var i=n.__brushOption,a=K(i.range);return{brushType:i.brushType,panelId:i.panelId,range:a}});r.trigger("brush",{areas:e,isEnd:!!t.isEnd,removeOnClick:!!t.removeOnClick})}function fL(r){var t=r._track;if(!t.length)return!1;var e=t[t.length-1],n=t[0],i=e[0]-n[0],a=e[1]-n[1],o=rL(i*i+a*a,.5);return o>iL}function __(r){var t=r.length-1;return t<0&&(t=0),[r[0],r[t]]}function S_(r,t,e,n){var i=new bt;return i.add(new yt({name:"main",style:Hh(e),silent:!0,draggable:!0,cursor:"move",drift:ot(dp,r,t,i,["n","s","w","e"]),ondragend:ot(cn,t,{isEnd:!0})})),C(n,function(a){i.add(new yt({name:a.join(""),style:{opacity:0},draggable:!0,silent:!0,invisible:!0,drift:ot(dp,r,t,i,a),ondragend:ot(cn,t,{isEnd:!0})}))}),i}function x_(r,t,e,n){var i=n.brushStyle.lineWidth||0,a=ni(i,aL),o=e[0][0],s=e[1][0],u=o-i/2,l=s-i/2,f=e[0][1],h=e[1][1],c=f-a+i/2,v=h-a+i/2,d=f-o,g=h-s,p=d+i,y=g+i;Ve(r,t,"main",o,s,d,g),n.transformable&&(Ve(r,t,"w",u,l,a,y),Ve(r,t,"e",c,l,a,y),Ve(r,t,"n",u,l,p,a),Ve(r,t,"s",u,v,p,a),Ve(r,t,"nw",u,l,a,a),Ve(r,t,"ne",c,l,a,a),Ve(r,t,"sw",u,v,a,a),Ve(r,t,"se",c,v,a,a))}function wf(r,t){var e=t.__brushOption,n=e.transformable,i=t.childAt(0);i.useStyle(Hh(e)),i.attr({silent:!n,cursor:n?"move":"default"}),C([["w"],["e"],["n"],["s"],["s","e"],["s","w"],["n","e"],["n","w"]],function(a){var o=t.childOfName(a.join("")),s=a.length===1?bf(r,a[0]):vL(r,a);o&&o.attr({silent:!n,invisible:!n,cursor:n?sL[s]+"-resize":null})})}function Ve(r,t,e,n,i,a,o){var s=t.childOfName(e);s&&s.setShape(dL(Vh(r,t,[[n,i],[n+a,i+o]])))}function Hh(r){return q({strokeNoScale:!0},r.brushStyle)}function w_(r,t,e,n){var i=[wa(r,e),wa(t,n)],a=[ni(r,e),ni(t,n)];return[[i[0],a[0]],[i[1],a[1]]]}function hL(r){return Ds(r.group)}function bf(r,t){var e={w:"left",e:"right",n:"top",s:"bottom"},n={left:"w",right:"e",top:"n",bottom:"s"},i=sh(e[t],hL(r));return n[i]}function vL(r,t){var e=[bf(r,t[0]),bf(r,t[1])];return(e[0]==="e"||e[0]==="w")&&e.reverse(),e.join("")}function dp(r,t,e,n,i,a){var o=e.__brushOption,s=r.toRectRange(o.range),u=b_(t,i,a);C(n,function(l){var f=oL[l];s[f[0]][f[1]]+=u[f[0]]}),o.range=r.fromRectRange(w_(s[0][0],s[1][0],s[0][1],s[1][1])),Fh(t,e),cn(t,{isEnd:!1})}function cL(r,t,e,n){var i=t.__brushOption.range,a=b_(r,e,n);C(i,function(o){o[0]+=a[0],o[1]+=a[1]}),Fh(r,t),cn(r,{isEnd:!1})}function b_(r,t,e){var n=r.group,i=n.transformCoordToLocal(t,e),a=n.transformCoordToLocal(0,0);return[i[0]-a[0],i[1]-a[1]]}function Vh(r,t,e){var n=m_(r,t);return n&&n!==vn?n.clipPath(e,r._transform):K(e)}function dL(r){var t=wa(r[0][0],r[1][0]),e=wa(r[0][1],r[1][1]),n=ni(r[0][0],r[1][0]),i=ni(r[0][1],r[1][1]);return{x:t,y:e,width:n-t,height:i-e}}function pL(r,t,e){if(!(!r._brushType||yL(r,t.offsetX,t.offsetY))){var n=r._zr,i=r._covers,a=Gh(r,t,e);if(!r._dragging)for(var o=0;on.getWidth()||e<0||e>n.getHeight()}var $s={lineX:yp(0),lineY:yp(1),rect:{createCover:function(r,t){function e(n){return n}return S_({toRectRange:e,fromRectRange:e},r,t,[["w"],["e"],["n"],["s"],["s","e"],["s","w"],["n","e"],["n","w"]])},getCreatingRange:function(r){var t=__(r);return w_(t[1][0],t[1][1],t[0][0],t[0][1])},updateCoverShape:function(r,t,e,n){x_(r,t,e,n)},updateCommon:wf,contain:Cf},polygon:{createCover:function(r,t){var e=new bt;return e.add(new La({name:"main",style:Hh(t),silent:!0})),e},getCreatingRange:function(r){return r},endCreating:function(r,t){t.remove(t.childAt(0)),t.add(new Aa({name:"main",draggable:!0,drift:ot(cL,r,t),ondragend:ot(cn,r,{isEnd:!0})}))},updateCoverShape:function(r,t,e,n){t.childAt(0).setShape({points:Vh(r,t,e)})},updateCommon:wf,contain:Cf}};function yp(r){return{createCover:function(t,e){return S_({toRectRange:function(n){var i=[n,[0,100]];return r&&i.reverse(),i},fromRectRange:function(n){return n[r]}},t,e,[[["w"],["e"]],[["n"],["s"]]][r])},getCreatingRange:function(t){var e=__(t),n=wa(e[0][r],e[1][r]),i=ni(e[0][r],e[1][r]);return[n,i]},updateCoverShape:function(t,e,n,i){var a,o=m_(t,e);if(o!==vn&&o.getLinearBrushOtherExtent)a=o.getLinearBrushOtherExtent(r);else{var s=t._zr;a=[0,[s.getWidth(),s.getHeight()][1-r]]}var u=[n,a];r&&u.reverse(),x_(t,e,u,i)},updateCommon:wf,contain:Cf}}const mL=lL;function _L(r){return r=Wh(r),function(t){return jy(t,r)}}function SL(r,t){return r=Wh(r),function(e){var n=t!=null?t:e,i=n?r.width:r.height,a=n?r.x:r.y;return[a,a+(i||0)]}}function xL(r,t,e){var n=Wh(r);return function(i,a){return n.contain(a[0],a[1])&&!eL(i,t,e)}}function Wh(r){return at.create(r)}var Jr=gt(),mp=K,sl=Y,wL=function(){function r(){this._dragging=!1,this.animationThreshold=15}return r.prototype.render=function(t,e,n,i){var a=e.get("value"),o=e.get("status");if(this._axisModel=t,this._axisPointerModel=e,this._api=n,!(!i&&this._lastValue===a&&this._lastStatus===o)){this._lastValue=a,this._lastStatus=o;var s=this._group,u=this._handle;if(!o||o==="hide"){s&&s.hide(),u&&u.hide();return}s&&s.show(),u&&u.show();var l={};this.makeElOption(l,a,t,e,n);var f=l.graphicKey;f!==this._lastGraphicKey&&this.clear(n),this._lastGraphicKey=f;var h=this._moveAnimation=this.determineAnimation(t,e);if(!s)s=this._group=new bt,this.createPointerEl(s,l,t,e),this.createLabelEl(s,l,t,e),n.getZr().add(s);else{var c=ot(_p,e,h);this.updatePointerEl(s,l,c),this.updateLabelEl(s,l,c,e)}xp(s,e,!0),this._renderHandle(a)}},r.prototype.remove=function(t){this.clear(t)},r.prototype.dispose=function(t){this.clear(t)},r.prototype.determineAnimation=function(t,e){var n=e.get("animation"),i=t.axis,a=i.type==="category",o=e.get("snap");if(!o&&!a)return!1;if(n==="auto"||n==null){var s=this.animationThreshold;if(a&&i.getBandWidth()>s)return!0;if(o){var u=Bh(t).seriesDataCount,l=i.getExtent();return Math.abs(l[0]-l[1])/u>s}return!1}return n===!0},r.prototype.makeElOption=function(t,e,n,i,a){},r.prototype.createPointerEl=function(t,e,n,i){var a=e.pointer;if(a){var o=Jr(t).pointerEl=new bb[a.type](mp(e.pointer));t.add(o)}},r.prototype.createLabelEl=function(t,e,n,i){if(e.label){var a=Jr(t).labelEl=new Dt(mp(e.label));t.add(a),Sp(a,i)}},r.prototype.updatePointerEl=function(t,e,n){var i=Jr(t).pointerEl;i&&e.pointer&&(i.setStyle(e.pointer.style),n(i,{shape:e.pointer.shape}))},r.prototype.updateLabelEl=function(t,e,n,i){var a=Jr(t).labelEl;a&&(a.setStyle(e.label.style),n(a,{x:e.label.x,y:e.label.y}),Sp(a,i))},r.prototype._renderHandle=function(t){if(!(this._dragging||!this.updateHandleTransform)){var e=this._axisPointerModel,n=this._api.getZr(),i=this._handle,a=e.getModel("handle"),o=e.get("status");if(!a.get("show")||!o||o==="hide"){i&&n.remove(i),this._handle=null;return}var s;this._handle||(s=!0,i=this._handle=As(a.get("icon"),{cursor:"move",draggable:!0,onmousemove:function(l){Jn(l.event)},onmousedown:sl(this._onHandleDragMove,this,0,0),drift:sl(this._onHandleDragMove,this),ondragend:sl(this._onHandleDragEnd,this)}),n.add(i)),xp(i,e,!1),i.setStyle(a.getItemStyle(null,["color","borderColor","borderWidth","opacity","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY"]));var u=a.get("size");N(u)||(u=[u,u]),i.scaleX=u[0]/2,i.scaleY=u[1]/2,Hs(this,"_doDispatchAxisPointer",a.get("throttle")||0,"fixRate"),this._moveHandleToValue(t,s)}},r.prototype._moveHandleToValue=function(t,e){_p(this._axisPointerModel,!e&&this._moveAnimation,this._handle,ul(this.getHandleTransform(t,this._axisModel,this._axisPointerModel)))},r.prototype._onHandleDragMove=function(t,e){var n=this._handle;if(!!n){this._dragging=!0;var i=this.updateHandleTransform(ul(n),[t,e],this._axisModel,this._axisPointerModel);this._payloadInfo=i,n.stopAnimation(),n.attr(ul(i)),Jr(n).lastProp=null,this._doDispatchAxisPointer()}},r.prototype._doDispatchAxisPointer=function(){var t=this._handle;if(!!t){var e=this._payloadInfo,n=this._axisModel;this._api.dispatchAction({type:"updateAxisPointer",x:e.cursorPoint[0],y:e.cursorPoint[1],tooltipOption:e.tooltipOption,axesInfo:[{axisDim:n.axis.dim,axisIndex:n.componentIndex}]})}},r.prototype._onHandleDragEnd=function(){this._dragging=!1;var t=this._handle;if(!!t){var e=this._axisPointerModel.get("value");this._moveHandleToValue(e),this._api.dispatchAction({type:"hideTip"})}},r.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),rs(this,"_doDispatchAxisPointer")},r.prototype.doClear=function(){},r.prototype.buildLabel=function(t,e,n){return n=n||0,{x:t[n],y:t[1-n],width:e[n],height:e[1-n]}},r}();function _p(r,t,e,n){C_(Jr(e).lastProp,n)||(Jr(e).lastProp=n,t?we(e,n,r):(e.stopAnimation(),e.attr(n)))}function C_(r,t){if(H(r)&&H(t)){var e=!0;return C(t,function(n,i){e=e&&C_(r[i],n)}),!!e}else return r===t}function Sp(r,t){r[t.get(["label","show"])?"show":"hide"]()}function ul(r){return{x:r.x||0,y:r.y||0,rotation:r.rotation||0}}function xp(r,t,e){var n=t.get("z"),i=t.get("zlevel");r&&r.traverse(function(a){a.type!=="group"&&(n!=null&&(a.z=n),i!=null&&(a.zlevel=i),a.silent=e)})}const bL=wL;function TL(r){var t=r.get("type"),e=r.getModel(t+"Style"),n;return t==="line"?(n=e.getLineStyle(),n.fill=null):t==="shadow"&&(n=e.getAreaStyle(),n.stroke=null),n}function CL(r,t,e,n,i){var a=e.get("value"),o=M_(a,t.axis,t.ecModel,e.get("seriesDataIndices"),{precision:e.get(["label","precision"]),formatter:e.get(["label","formatter"])}),s=e.getModel("label"),u=Ns(s.get("padding")||0),l=s.getFont(),f=_s(o,l),h=i.position,c=f.width+u[1]+u[3],v=f.height+u[0]+u[2],d=i.align;d==="right"&&(h[0]-=c),d==="center"&&(h[0]-=c/2);var g=i.verticalAlign;g==="bottom"&&(h[1]-=v),g==="middle"&&(h[1]-=v/2),ML(h,c,v,n);var p=s.get("backgroundColor");(!p||p==="auto")&&(p=t.get(["axisLine","lineStyle","color"])),r.label={x:h[0],y:h[1],style:Qe(s,{text:o,font:l,fill:s.getTextColor(),padding:u,backgroundColor:p}),z2:10}}function ML(r,t,e,n){var i=n.getWidth(),a=n.getHeight();r[0]=Math.min(r[0]+t,i)-t,r[1]=Math.min(r[1]+e,a)-e,r[0]=Math.max(r[0],0),r[1]=Math.max(r[1],0)}function M_(r,t,e,n,i){r=t.scale.parse(r);var a=t.scale.getLabel({value:r},{precision:i.precision}),o=i.formatter;if(o){var s={value:Rh(t,{value:r}),axisDimension:t.dim,axisIndex:t.index,seriesData:[]};C(n,function(u){var l=e.getSeriesByIndex(u.seriesIndex),f=u.dataIndexInside,h=l&&l.getDataParams(f);h&&s.seriesData.push(h)}),G(o)?a=o.replace("{value}",a):U(o)&&(a=o(s))}return a}function D_(r,t,e){var n=ia();return Yf(n,n,e.rotation),zl(n,n,e.position),la([r.dataToCoord(t),(e.labelOffset||0)+(e.labelDirection||1)*(e.labelMargin||0)],n)}function DL(r,t,e,n,i,a){var o=l_.innerTextLayout(e.rotation,0,e.labelDirection);e.labelMargin=i.get(["label","margin"]),CL(t,n,i,a,{position:D_(n.axis,r,e),align:o.textAlign,verticalAlign:o.textVerticalAlign})}function AL(r,t,e){return e=e||0,{x1:r[e],y1:r[1-e],x2:t[e],y2:t[1-e]}}function LL(r,t,e){return e=e||0,{x:r[e],y:r[1-e],width:t[e],height:t[1-e]}}var IL=function(r){O(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return t.prototype.makeElOption=function(e,n,i,a,o){var s=i.axis,u=s.grid,l=a.get("type"),f=wp(u,s).getOtherAxis(s).getGlobalExtent(),h=s.toGlobalCoord(s.dataToCoord(n,!0));if(l&&l!=="none"){var c=TL(a),v=PL[l](s,h,f);v.style=c,e.graphicKey=v.type,e.pointer=v}var d=mf(u.model,i);DL(n,e,d,i,a,o)},t.prototype.getHandleTransform=function(e,n,i){var a=mf(n.axis.grid.model,n,{labelInside:!1});a.labelMargin=i.get(["handle","margin"]);var o=D_(n.axis,e,a);return{x:o[0],y:o[1],rotation:a.rotation+(a.labelDirection<0?Math.PI:0)}},t.prototype.updateHandleTransform=function(e,n,i,a){var o=i.axis,s=o.grid,u=o.getGlobalExtent(!0),l=wp(s,o).getOtherAxis(o).getGlobalExtent(),f=o.dim==="x"?0:1,h=[e.x,e.y];h[f]+=n[f],h[f]=Math.min(u[1],h[f]),h[f]=Math.max(u[0],h[f]);var c=(l[1]+l[0])/2,v=[c,c];v[f]=h[f];var d=[{verticalAlign:"middle"},{align:"center"}];return{x:h[0],y:h[1],rotation:e.rotation,cursorPoint:v,tooltipOption:d[f]}},t}(bL);function wp(r,t){var e={};return e[t.dim+"AxisIndex"]=t.index,r.getCartesian(e)}var PL={line:function(r,t,e){var n=AL([t,e[0]],[t,e[1]],bp(r));return{type:"Line",subPixelOptimize:!0,shape:n}},shadow:function(r,t,e){var n=Math.max(1,r.getBandWidth()),i=e[1]-e[0];return{type:"Rect",shape:LL([t-n/2,e[0]],[n,i],bp(r))}}};function bp(r){return r.dim==="x"?0:1}const RL=IL;var EL=function(r){O(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.type="axisPointer",t.defaultOption={show:"auto",z:50,type:"line",snap:!1,triggerTooltip:!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}},t}(ct);const OL=EL;var Ye=gt(),kL=C;function A_(r,t,e){if(!j.node){var n=t.getZr();Ye(n).records||(Ye(n).records={}),BL(n,t);var i=Ye(n).records[r]||(Ye(n).records[r]={});i.handler=e}}function BL(r,t){if(Ye(r).initialized)return;Ye(r).initialized=!0,e("click",ot(Tp,"click")),e("mousemove",ot(Tp,"mousemove")),e("globalout",FL);function e(n,i){r.on(n,function(a){var o=zL(t);kL(Ye(r).records,function(s){s&&i(s,a,o.dispatchAction)}),NL(o.pendings,t)})}}function NL(r,t){var e=r.showTip.length,n=r.hideTip.length,i;e?i=r.showTip[e-1]:n&&(i=r.hideTip[n-1]),i&&(i.dispatchAction=null,t.dispatchAction(i))}function FL(r,t,e){r.handler("leave",null,e)}function Tp(r,t,e,n){t.handler(r,e,n)}function zL(r){var t={showTip:[],hideTip:[]},e=function(n){var i=t[n.type];i?i.push(n):(n.dispatchAction=e,r.dispatchAction(n))};return{dispatchAction:e,pendings:t}}function Mf(r,t){if(!j.node){var e=t.getZr(),n=(Ye(e).records||{})[r];n&&(Ye(e).records[r]=null)}}var GL=function(r){O(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.render=function(e,n,i){var a=n.getComponent("tooltip"),o=e.get("triggerOn")||a&&a.get("triggerOn")||"mousemove|click";A_("axisPointer",i,function(s,u,l){o!=="none"&&(s==="leave"||o.indexOf(s)>=0)&&l({type:"updateAxisPointer",currTrigger:s,x:u&&u.offsetX,y:u&&u.offsetY})})},t.prototype.remove=function(e,n){Mf("axisPointer",n)},t.prototype.dispose=function(e,n){Mf("axisPointer",n)},t.type="axisPointer",t}(ve);const HL=GL;function L_(r,t){var e=[],n=r.seriesIndex,i;if(n==null||!(i=t.getSeriesByIndex(n)))return{point:[]};var a=i.getData(),o=ln(a,r);if(o==null||o<0||N(o))return{point:[]};var s=a.getItemGraphicEl(o),u=i.coordinateSystem;if(i.getTooltipPosition)e=i.getTooltipPosition(o)||[];else if(u&&u.dataToPoint)if(r.isStacked){var l=u.getBaseAxis(),f=u.getOtherAxis(l),h=f.dim,c=l.dim,v=h==="x"||h==="radius"?1:0,d=a.mapDimension(c),g=[];g[v]=a.get(d,o),g[1-v]=a.get(a.getCalculationInfo("stackResultDimension"),o),e=u.dataToPoint(g)||[]}else e=u.dataToPoint(a.getValues(z(u.dimensions,function(y){return a.mapDimension(y)}),o))||[];else if(s){var p=s.getBoundingRect().clone();p.applyTransform(s.transform),e=[p.x+p.width/2,p.y+p.height/2]}return{point:e,el:s}}var Cp=gt();function VL(r,t,e){var n=r.currTrigger,i=[r.x,r.y],a=r,o=r.dispatchAction||Y(e.dispatchAction,e),s=t.getComponent("axisPointer").coordSysAxesInfo;if(!!s){Fo(i)&&(i=L_({seriesIndex:a.seriesIndex,dataIndex:a.dataIndex},t).point);var u=Fo(i),l=a.axesInfo,f=s.axesInfo,h=n==="leave"||Fo(i),c={},v={},d={list:[],map:{}},g={showPointer:ot(UL,v),showTooltip:ot(YL,d)};C(s.coordSysMap,function(y,m){var _=u||y.containPoint(i);C(s.coordSysAxesInfo[m],function(S,w){var x=S.axis,b=qL(l,S);if(!h&&_&&(!l||b)){var T=b&&b.value;T==null&&!u&&(T=x.pointToData(i)),T!=null&&Mp(S,T,g,!1,c)}})});var p={};return C(f,function(y,m){var _=y.linkGroup;_&&!v[m]&&C(_.axesInfo,function(S,w){var x=v[w];if(S!==y&&x){var b=x.value;_.mapper&&(b=y.axis.scale.parse(_.mapper(b,Dp(S),Dp(y)))),p[y.key]=b}})}),C(p,function(y,m){Mp(f[m],y,g,!0,c)}),$L(v,f,c),ZL(d,i,r,o),XL(f,o,e),c}}function Mp(r,t,e,n,i){var a=r.axis;if(!(a.scale.isBlank()||!a.containData(t))){if(!r.involveSeries){e.showPointer(r,t);return}var o=WL(t,r),s=o.payloadBatch,u=o.snapToValue;s[0]&&i.seriesIndex==null&&k(i,s[0]),!n&&r.snap&&a.containData(u)&&u!=null&&(t=u),e.showPointer(r,t,s),e.showTooltip(r,o,u)}}function WL(r,t){var e=t.axis,n=e.dim,i=r,a=[],o=Number.MAX_VALUE,s=-1;return C(t.seriesModels,function(u,l){var f=u.getData().mapDimensionsAll(n),h,c;if(u.getAxisTooltipData){var v=u.getAxisTooltipData(f,r,e);c=v.dataIndices,h=v.nestestValue}else{if(c=u.getData().indicesOfNearest(f[0],r,e.type==="category"?.5:null),!c.length)return;h=u.getData().get(f[0],c[0])}if(!(h==null||!isFinite(h))){var d=r-h,g=Math.abs(d);g<=o&&((g=0&&s<0)&&(o=g,s=d,i=h,a.length=0),C(c,function(p){a.push({seriesIndex:u.seriesIndex,dataIndexInside:p,dataIndex:u.getData().getRawIndex(p)})}))}}),{payloadBatch:a,snapToValue:i}}function UL(r,t,e,n){r[t.key]={value:e,payloadBatch:n}}function YL(r,t,e,n){var i=e.payloadBatch,a=t.axis,o=a.model,s=t.axisPointerModel;if(!(!t.triggerTooltip||!i.length)){var u=t.coordSys.model,l=xa(u),f=r.map[l];f||(f=r.map[l]={coordSysId:u.id,coordSysIndex:u.componentIndex,coordSysType:u.type,coordSysMainType:u.mainType,dataByAxis:[]},r.list.push(f)),f.dataByAxis.push({axisDim:a.dim,axisIndex:o.componentIndex,axisType:o.type,axisId:o.id,value:n,valueLabelOpt:{precision:s.get(["label","precision"]),formatter:s.get(["label","formatter"])},seriesDataIndices:i.slice()})}}function $L(r,t,e){var n=e.axesInfo=[];C(t,function(i,a){var o=i.axisPointerModel.option,s=r[a];s?(!i.useHandle&&(o.status="show"),o.value=s.value,o.seriesDataIndices=(s.payloadBatch||[]).slice()):!i.useHandle&&(o.status="hide"),o.status==="show"&&n.push({axisDim:i.axis.dim,axisIndex:i.axis.model.componentIndex,value:o.value})})}function ZL(r,t,e,n){if(Fo(t)||!r.list.length){n({type:"hideTip"});return}var i=((r.list[0].dataByAxis[0]||{}).seriesDataIndices||[])[0]||{};n({type:"showTip",escapeConnect:!0,x:t[0],y:t[1],tooltipOption:e.tooltipOption,position:e.position,dataIndexInside:i.dataIndexInside,dataIndex:i.dataIndex,seriesIndex:i.seriesIndex,dataByCoordSys:r.list})}function XL(r,t,e){var n=e.getZr(),i="axisPointerLastHighlights",a=Cp(n)[i]||{},o=Cp(n)[i]={};C(r,function(l,f){var h=l.axisPointerModel.option;h.status==="show"&&C(h.seriesDataIndices,function(c){var v=c.seriesIndex+" | "+c.dataIndex;o[v]=c})});var s=[],u=[];C(a,function(l,f){!o[f]&&u.push(l)}),C(o,function(l,f){!a[f]&&s.push(l)}),u.length&&e.dispatchAction({type:"downplay",escapeConnect:!0,notBlur:!0,batch:u}),s.length&&e.dispatchAction({type:"highlight",escapeConnect:!0,notBlur:!0,batch:s})}function qL(r,t){for(var e=0;e<(r||[]).length;e++){var n=r[e];if(t.axis.dim===n.axisDim&&t.axis.model.componentIndex===n.axisIndex)return n}}function Dp(r){var t=r.axis.model,e={},n=e.axisDim=r.axis.dim;return e.axisIndex=e[n+"AxisIndex"]=t.componentIndex,e.axisName=e[n+"AxisName"]=t.name,e.axisId=e[n+"AxisId"]=t.id,e}function Fo(r){return!r||r[0]==null||isNaN(r[0])||r[1]==null||isNaN(r[1])}function I_(r){f_.registerAxisPointerClass("CartesianAxisPointer",RL),r.registerComponentModel(OL),r.registerComponentView(HL),r.registerPreprocessor(function(t){if(t){(!t.axisPointer||t.axisPointer.length===0)&&(t.axisPointer={});var e=t.axisPointer.link;e&&!N(e)&&(t.axisPointer.link=[e])}}),r.registerProcessor(r.PRIORITY.PROCESSOR.STATISTIC,function(t,e){t.getComponent("axisPointer").coordSysAxesInfo=O2(t,e)}),r.registerAction({type:"updateAxisPointer",event:"updateAxisPointer",update:":updateAxisPointer"},VL)}function qR(r){Be(q2),Be(I_)}var Ap=["x","y","radius","angle","single"],KL=["cartesian2d","polar","singleAxis"];function QL(r){var t=r.get("coordinateSystem");return J(KL,t)>=0}function pr(r){return r+"Axis"}function JL(r,t){var e=W(),n=[],i=W();r.eachComponent({mainType:"dataZoom",query:t},function(f){i.get(f.uid)||s(f)});var a;do a=!1,r.eachComponent("dataZoom",o);while(a);function o(f){!i.get(f.uid)&&u(f)&&(s(f),a=!0)}function s(f){i.set(f.uid,!0),n.push(f),l(f)}function u(f){var h=!1;return f.eachTargetAxis(function(c,v){var d=e.get(c);d&&d[v]&&(h=!0)}),h}function l(f){f.eachTargetAxis(function(h,c){(e.get(h)||e.set(h,[]))[c]=!0})}return n}function P_(r){var t=r.ecModel,e={infoList:[],infoMap:W()};return r.eachTargetAxis(function(n,i){var a=t.getComponent(pr(n),i);if(!!a){var o=a.getCoordSysModel();if(!!o){var s=o.uid,u=e.infoMap.get(s);u||(u={model:o,axisModels:[]},e.infoList.push(u),e.infoMap.set(s,u)),u.axisModels.push(a)}}}),e}var ll=function(){function r(){this.indexList=[],this.indexMap=[]}return r.prototype.add=function(t){this.indexMap[t]||(this.indexList.push(t),this.indexMap[t]=!0)},r}(),jL=function(r){O(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e._autoThrottle=!0,e._noTarget=!0,e._rangePropMode=["percent","percent"],e}return t.prototype.init=function(e,n,i){var a=Lp(e);this.settledOption=a,this.mergeDefaultAndTheme(e,i),this._doInit(a)},t.prototype.mergeOption=function(e){var n=Lp(e);Q(this.option,e,!0),Q(this.settledOption,n,!0),this._doInit(n)},t.prototype._doInit=function(e){var n=this.option;this._setDefaultThrottle(e),this._updateRangeUse(e);var i=this.settledOption;C([["start","startValue"],["end","endValue"]],function(a,o){this._rangePropMode[o]==="value"&&(n[a[0]]=i[a[0]]=null)},this),this._resetTarget()},t.prototype._resetTarget=function(){var e=this.get("orient",!0),n=this._targetAxisInfoMap=W(),i=this._fillSpecifiedTargetAxis(n);i?this._orient=e||this._makeAutoOrientByTargetAxis():(this._orient=e||"horizontal",this._fillAutoTargetAxisByOrient(n,this._orient)),this._noTarget=!0,n.each(function(a){a.indexList.length&&(this._noTarget=!1)},this)},t.prototype._fillSpecifiedTargetAxis=function(e){var n=!1;return C(Ap,function(i){var a=this.getReferringComponents(pr(i),nx);if(!!a.specified){n=!0;var o=new ll;C(a.models,function(s){o.add(s.componentIndex)}),e.set(i,o)}},this),n},t.prototype._fillAutoTargetAxisByOrient=function(e,n){var i=this.ecModel,a=!0;if(a){var o=n==="vertical"?"y":"x",s=i.findComponents({mainType:o+"Axis"});u(s,o)}if(a){var s=i.findComponents({mainType:"singleAxis",filter:function(f){return f.get("orient",!0)===n}});u(s,"single")}function u(l,f){var h=l[0];if(!!h){var c=new ll;if(c.add(h.componentIndex),e.set(f,c),a=!1,f==="x"||f==="y"){var v=h.getReferringComponents("grid",zt).models[0];v&&C(l,function(d){h.componentIndex!==d.componentIndex&&v===d.getReferringComponents("grid",zt).models[0]&&c.add(d.componentIndex)})}}}a&&C(Ap,function(l){if(!!a){var f=i.findComponents({mainType:pr(l),filter:function(c){return c.get("type",!0)==="category"}});if(f[0]){var h=new ll;h.add(f[0].componentIndex),e.set(l,h),a=!1}}},this)},t.prototype._makeAutoOrientByTargetAxis=function(){var e;return this.eachTargetAxis(function(n){!e&&(e=n)},this),e==="y"?"vertical":"horizontal"},t.prototype._setDefaultThrottle=function(e){if(e.hasOwnProperty("throttle")&&(this._autoThrottle=!1),this._autoThrottle){var n=this.ecModel.option;this.option.throttle=n.animation&&n.animationDurationUpdate>0?100:20}},t.prototype._updateRangeUse=function(e){var n=this._rangePropMode,i=this.get("rangeMode");C([["start","startValue"],["end","endValue"]],function(a,o){var s=e[a[0]]!=null,u=e[a[1]]!=null;s&&!u?n[o]="percent":!s&&u?n[o]="value":i?n[o]=i[o]:s&&(n[o]="percent")})},t.prototype.noTarget=function(){return this._noTarget},t.prototype.getFirstTargetAxisModel=function(){var e;return this.eachTargetAxis(function(n,i){e==null&&(e=this.ecModel.getComponent(pr(n),i))},this),e},t.prototype.eachTargetAxis=function(e,n){this._targetAxisInfoMap.each(function(i,a){C(i.indexList,function(o){e.call(n,a,o)})})},t.prototype.getAxisProxy=function(e,n){var i=this.getAxisModel(e,n);if(i)return i.__dzAxisProxy},t.prototype.getAxisModel=function(e,n){var i=this._targetAxisInfoMap.get(e);if(i&&i.indexMap[n])return this.ecModel.getComponent(pr(e),n)},t.prototype.setRawRange=function(e){var n=this.option,i=this.settledOption;C([["start","startValue"],["end","endValue"]],function(a){(e[a[0]]!=null||e[a[1]]!=null)&&(n[a[0]]=i[a[0]]=e[a[0]],n[a[1]]=i[a[1]]=e[a[1]])},this),this._updateRangeUse(e)},t.prototype.setCalculatedRange=function(e){var n=this.option;C(["start","startValue","end","endValue"],function(i){n[i]=e[i]})},t.prototype.getPercentRange=function(){var e=this.findRepresentativeAxisProxy();if(e)return e.getDataPercentWindow()},t.prototype.getValueRange=function(e,n){if(e==null&&n==null){var i=this.findRepresentativeAxisProxy();if(i)return i.getDataValueWindow()}else return this.getAxisProxy(e,n).getDataValueWindow()},t.prototype.findRepresentativeAxisProxy=function(e){if(e)return e.__dzAxisProxy;for(var n,i=this._targetAxisInfoMap.keys(),a=0;ao[1];if(_&&!S&&!w)return!0;_&&(p=!0),S&&(d=!0),w&&(g=!0)}return p&&d&&g})}else Nn(f,function(v){if(a==="empty")u.setData(l=l.map(v,function(g){return s(g)?g:NaN}));else{var d={};d[v]=o,l.selectRange(d)}});Nn(f,function(v){l.setApproximateExtent(o,v)})}});function s(u){return u>=o[0]&&u<=o[1]}},r.prototype._updateMinMaxSpan=function(){var t=this._minMaxSpan={},e=this._dataZoomModel,n=this._dataExtent;Nn(["min","max"],function(i){var a=e.get(i+"Span"),o=e.get(i+"ValueSpan");o!=null&&(o=this.getAxisModel().axis.scale.parse(o)),o!=null?a=Et(n[0]+o,n,[0,100],!0):a!=null&&(o=Et(a,[0,100],n,!0)-n[0]),t[i+"Span"]=a,t[i+"ValueSpan"]=o},this)},r.prototype._setAxisModel=function(){var t=this.getAxisModel(),e=this._percentWindow,n=this._valueWindow;if(!!e){var i=Zg(n,[0,500]);i=Math.min(i,20);var a=t.axis.scale.rawExtentInfo;e[0]!==0&&a.setDeterminedMinMax("min",+n[0].toFixed(i)),e[1]!==100&&a.setDeterminedMinMax("max",+n[1].toFixed(i)),a.freeze()}},r}();function oI(r,t,e){var n=[1/0,-1/0];Nn(e,function(o){oA(n,o.getData(),t)});var i=r.getAxisModel(),a=V0(i.axis.scale,i,n).calculate();return[a.min,a.max]}const sI=aI;var uI={getTargetSeries:function(r){function t(i){r.eachComponent("dataZoom",function(a){a.eachTargetAxis(function(o,s){var u=r.getComponent(pr(o),s);i(o,s,u,a)})})}t(function(i,a,o,s){o.__dzAxisProxy=null});var e=[];t(function(i,a,o,s){o.__dzAxisProxy||(o.__dzAxisProxy=new sI(i,a,s,r),e.push(o.__dzAxisProxy))});var n=W();return C(e,function(i){C(i.getTargetSeriesModels(),function(a){n.set(a.uid,a)})}),n},overallReset:function(r,t){r.eachComponent("dataZoom",function(e){e.eachTargetAxis(function(n,i){e.getAxisProxy(n,i).reset(e)}),e.eachTargetAxis(function(n,i){e.getAxisProxy(n,i).filterData(e,t)})}),r.eachComponent("dataZoom",function(e){var n=e.findRepresentativeAxisProxy();if(n){var i=n.getDataPercentWindow(),a=n.getDataValueWindow();e.setCalculatedRange({start:i[0],end:i[1],startValue:a[0],endValue:a[1]})}})}};const lI=uI;function fI(r){r.registerAction("dataZoom",function(t,e){var n=JL(e,t);C(n,function(i){i.setRawRange({start:t.start,end:t.end,startValue:t.startValue,endValue:t.endValue})})})}var Pp=!1;function Yh(r){Pp||(Pp=!0,r.registerProcessor(r.PRIORITY.PROCESSOR.FILTER,lI),fI(r),r.registerSubTypeDefaulter("dataZoom",function(){return"slider"}))}function hI(r){r.registerComponentModel(eI),r.registerComponentView(iI),Yh(r)}var xe=function(){function r(){}return r}(),R_={};function Pi(r,t){R_[r]=t}function E_(r){return R_[r]}var vI=function(r){O(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.optionUpdated=function(){r.prototype.optionUpdated.apply(this,arguments);var e=this.ecModel;C(this.option.feature,function(n,i){var a=E_(i);a&&(a.getDefaultOption&&(a.defaultOption=a.getDefaultOption(e)),Q(n,a.defaultOption))})},t.type="toolbox",t.layoutMode={type:"box",ignoreSize:!0},t.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"}},t}(ct);const cI=vI;function dI(r,t,e){var n=t.getBoxLayoutParams(),i=t.get("padding"),a={width:e.getWidth(),height:e.getHeight()},o=wr(n,a,i);Qn(t.get("orient"),r,t.get("itemGap"),o.width,o.height),Qb(r,n,a,i)}function O_(r,t){var e=Ns(t.get("padding")),n=t.getItemStyle(["color","opacity"]);return n.fill=t.get("backgroundColor"),r=new yt({shape:{x:r.x-e[3],y:r.y-e[0],width:r.width+e[1]+e[3],height:r.height+e[0]+e[2],r:t.get("borderRadius")},style:n,silent:!0,z2:-1}),r}var pI=function(r){O(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return t.prototype.render=function(e,n,i,a){var o=this.group;if(o.removeAll(),!e.get("show"))return;var s=+e.get("itemSize"),u=e.get("orient")==="vertical",l=e.get("feature")||{},f=this._features||(this._features={}),h=[];C(l,function(d,g){h.push(g)}),new ma(this._featureNames||[],h).add(c).update(c).remove(ot(c,null)).execute(),this._featureNames=h;function c(d,g){var p=h[d],y=h[g],m=l[p],_=new At(m,e,e.ecModel),S;if(a&&a.newTitle!=null&&a.featureName===p&&(m.title=a.newTitle),p&&!y){if(gI(p))S={onclick:_.option.onclick,featureName:p};else{var w=E_(p);if(!w)return;S=new w}f[p]=S}else if(S=f[y],!S)return;S.uid=Ia("toolbox-feature"),S.model=_,S.ecModel=n,S.api=i;var x=S instanceof xe;if(!p&&y){x&&S.dispose&&S.dispose(n,i);return}if(!_.get("show")||x&&S.unusable){x&&S.remove&&S.remove(n,i);return}v(_,S,p),_.setIconStatus=function(b,T){var M=this.option,D=this.iconPaths;M.iconStatus=M.iconStatus||{},M.iconStatus[b]=T,D[b]&&(T==="emphasis"?jn:ti)(D[b])},S instanceof xe&&S.render&&S.render(_,n,i,a)}function v(d,g,p){var y=d.getModel("iconStyle"),m=d.getModel(["emphasis","iconStyle"]),_=g instanceof xe&&g.getIcons?g.getIcons():d.get("icon"),S=d.get("title")||{},w,x;G(_)?(w={},w[p]=_):w=_,G(S)?(x={},x[p]=S):x=S;var b=d.iconPaths={};C(w,function(T,M){var D=As(T,{},{x:-s/2,y:-s/2,width:s,height:s});D.setStyle(y.getItemStyle());var A=D.ensureState("emphasis");A.style=m.getItemStyle();var L=new Dt({style:{text:x[M],align:m.get("textAlign"),borderRadius:m.get("textBorderRadius"),padding:m.get("textPadding"),fill:null},ignore:!0});D.setTextContent(L),Ls({el:D,componentModel:e,itemName:M,formatterParamsExtra:{title:x[M]}}),D.__title=x[M],D.on("mouseover",function(){var I=m.getItemStyle(),P=u?e.get("right")==null&&e.get("left")!=="right"?"right":"left":e.get("bottom")==null&&e.get("top")!=="bottom"?"bottom":"top";L.setStyle({fill:m.get("textFill")||I.fill||I.stroke||"#000",backgroundColor:m.get("textBackgroundColor")}),D.setTextConfig({position:m.get("textPosition")||P}),L.ignore=!e.get("showTitle"),i.enterEmphasis(this)}).on("mouseout",function(){d.get(["iconStatus",M])!=="emphasis"&&i.leaveEmphasis(this),L.hide()}),(d.get(["iconStatus",M])==="emphasis"?jn:ti)(D),o.add(D),D.on("click",Y(g.onclick,g,n,i,M)),b[M]=D})}dI(o,e,i),o.add(O_(o.getBoundingRect(),e)),u||o.eachChild(function(d){var g=d.__title,p=d.ensureState("emphasis"),y=p.textConfig||(p.textConfig={}),m=d.getTextContent(),_=m&&m.ensureState("emphasis");if(_&&!U(_)&&g){var S=_.style||(_.style={}),w=_s(g,Dt.makeFont(S)),x=d.x+o.x,b=d.y+o.y+s,T=!1;b+w.height>i.getHeight()&&(y.position="top",T=!0);var M=T?-5-w.height:s+10;x+w.width/2>i.getWidth()?(y.position=["100%",M],S.align="right"):x-w.width/2<0&&(y.position=[0,M],S.align="left")}})},t.prototype.updateView=function(e,n,i,a){C(this._features,function(o){o instanceof xe&&o.updateView&&o.updateView(o.model,n,i,a)})},t.prototype.remove=function(e,n){C(this._features,function(i){i instanceof xe&&i.remove&&i.remove(e,n)}),this.group.removeAll()},t.prototype.dispose=function(e,n){C(this._features,function(i){i instanceof xe&&i.dispose&&i.dispose(e,n)})},t.type="toolbox",t}(ve);function gI(r){return r.indexOf("my")===0}const yI=pI;var mI=function(r){O(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return t.prototype.onclick=function(e,n){var i=this.model,a=i.get("name")||e.get("title.0.text")||"echarts",o=n.getZr().painter.getType()==="svg",s=o?"svg":i.get("type",!0)||"png",u=n.getConnectedDataURL({type:s,backgroundColor:i.get("backgroundColor",!0)||e.get("backgroundColor")||"#fff",connectedBackgroundColor:i.get("connectedBackgroundColor"),excludeComponents:i.get("excludeComponents"),pixelRatio:i.get("pixelRatio")}),l=j.browser;if(U(MouseEvent)&&(l.newEdge||!l.ie&&!l.edge)){var f=document.createElement("a");f.download=a+"."+s,f.target="_blank",f.href=u;var h=new MouseEvent("click",{view:document.defaultView,bubbles:!0,cancelable:!1});f.dispatchEvent(h)}else if(window.navigator.msSaveOrOpenBlob||o){var c=u.split(","),v=c[0].indexOf("base64")>-1,d=o?decodeURIComponent(c[1]):c[1];v&&(d=window.atob(d));var g=a+"."+s;if(window.navigator.msSaveOrOpenBlob){for(var p=d.length,y=new Uint8Array(p);p--;)y[p]=d.charCodeAt(p);var m=new Blob([y]);window.navigator.msSaveOrOpenBlob(m,g)}else{var _=document.createElement("iframe");document.body.appendChild(_);var S=_.contentWindow,w=S.document;w.open("image/svg+xml","replace"),w.write(d),w.close(),S.focus(),w.execCommand("SaveAs",!0,g),document.body.removeChild(_)}}else{var x=i.get("lang"),b='',T=window.open();T.document.write(b),T.document.title=a}},t.getDefaultOption=function(e){var n={show:!0,icon:"M4.7,22.9L29.3,45.5L54.7,23.4M4.6,43.6L4.6,58L53.8,58L53.8,43.6M29.2,45.1L29.2,0",title:e.getLocaleModel().get(["toolbox","saveAsImage","title"]),type:"png",connectedBackgroundColor:"#fff",name:"",excludeComponents:["toolbox"],lang:e.getLocaleModel().get(["toolbox","saveAsImage","lang"])};return n},t}(xe);const _I=mI;var Rp="__ec_magicType_stack__",SI=[["line","bar"],["stack"]],xI=function(r){O(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return t.prototype.getIcons=function(){var e=this.model,n=e.get("icon"),i={};return C(e.get("type"),function(a){n[a]&&(i[a]=n[a])}),i},t.getDefaultOption=function(e){var n={show:!0,type:[],icon:{line:"M4.1,28.9h7.1l9.3-22l7.4,38l9.7-19.7l3,12.8h14.9M4.1,58h51.4",bar:"M6.7,22.9h10V48h-10V22.9zM24.9,13h10v35h-10V13zM43.2,2h10v46h-10V2zM3.1,58h53.7",stack:"M8.2,38.4l-8.4,4.1l30.6,15.3L60,42.5l-8.1-4.1l-21.5,11L8.2,38.4z M51.9,30l-8.1,4.2l-13.4,6.9l-13.9-6.9L8.2,30l-8.4,4.2l8.4,4.2l22.2,11l21.5-11l8.1-4.2L51.9,30z M51.9,21.7l-8.1,4.2L35.7,30l-5.3,2.8L24.9,30l-8.4-4.1l-8.3-4.2l-8.4,4.2L8.2,30l8.3,4.2l13.9,6.9l13.4-6.9l8.1-4.2l8.1-4.1L51.9,21.7zM30.4,2.2L-0.2,17.5l8.4,4.1l8.3,4.2l8.4,4.2l5.5,2.7l5.3-2.7l8.1-4.2l8.1-4.2l8.1-4.1L30.4,2.2z"},title:e.getLocaleModel().get(["toolbox","magicType","title"]),option:{},seriesIndex:{}};return n},t.prototype.onclick=function(e,n,i){var a=this.model,o=a.get(["seriesIndex",i]);if(!!Ep[i]){var s={series:[]},u=function(h){var c=h.subType,v=h.id,d=Ep[i](c,v,h,a);d&&(q(d,h.option),s.series.push(d));var g=h.coordinateSystem;if(g&&g.type==="cartesian2d"&&(i==="line"||i==="bar")){var p=g.getAxesByScale("ordinal")[0];if(p){var y=p.dim,m=y+"Axis",_=h.getReferringComponents(m,zt).models[0],S=_.componentIndex;s[m]=s[m]||[];for(var w=0;w<=S;w++)s[m][S]=s[m][S]||{};s[m][S].boundaryGap=i==="bar"}}};C(SI,function(h){J(h,i)>=0&&C(h,function(c){a.setIconStatus(c,"normal")})}),a.setIconStatus(i,"emphasis"),e.eachComponent({mainType:"series",query:o==null?null:{seriesIndex:o}},u);var l,f=i;i==="stack"&&(l=Q({stack:a.option.title.tiled,tiled:a.option.title.stack},a.option.title),a.get(["iconStatus",i])!=="emphasis"&&(f="tiled")),n.dispatchAction({type:"changeMagicType",currentType:f,newOption:s,newTitle:l,featureName:"magicType"})}},t}(xe),Ep={line:function(r,t,e,n){if(r==="bar")return Q({id:t,type:"line",data:e.get("data"),stack:e.get("stack"),markPoint:e.get("markPoint"),markLine:e.get("markLine")},n.get(["option","line"])||{},!0)},bar:function(r,t,e,n){if(r==="line")return Q({id:t,type:"bar",data:e.get("data"),stack:e.get("stack"),markPoint:e.get("markPoint"),markLine:e.get("markLine")},n.get(["option","bar"])||{},!0)},stack:function(r,t,e,n){var i=e.get("stack")===Rp;if(r==="line"||r==="bar")return n.setIconStatus("stack",i?"normal":"emphasis"),Q({id:t,stack:i?"":Rp},n.get(["option","stack"])||{},!0)}};Fe({type:"changeMagicType",event:"magicTypeChanged",update:"prepareAndUpdate"},function(r,t){t.mergeOption(r.newOption)});const wI=xI;var Zs=new Array(60).join("-"),ii=" ";function bI(r){var t={},e=[],n=[];return r.eachRawSeries(function(i){var a=i.coordinateSystem;if(a&&(a.type==="cartesian2d"||a.type==="polar")){var o=a.getBaseAxis();if(o.type==="category"){var s=o.dim+"_"+o.index;t[s]||(t[s]={categoryAxis:o,valueAxis:a.getOtherAxis(o),series:[]},n.push({axisDim:o.dim,axisIndex:o.index})),t[s].series.push(i)}else e.push(i)}else e.push(i)}),{seriesGroupByCategoryAxis:t,other:e,meta:n}}function TI(r){var t=[];return C(r,function(e,n){var i=e.categoryAxis,a=e.valueAxis,o=a.dim,s=[" "].concat(z(e.series,function(v){return v.name})),u=[i.model.getCategories()];C(e.series,function(v){var d=v.getRawData();u.push(v.getRawData().mapArray(d.mapDimension(o),function(g){return g}))});for(var l=[s.join(ii)],f=0;f=0)return!0}var Df=new RegExp("["+ii+"]+","g");function AI(r){for(var t=r.split(/\n+/g),e=ls(t.shift()).split(Df),n=[],i=z(e,function(u){return{name:u,data:[]}}),a=0;a=0;a--){var o=e[a];if(o[i])break}if(a<0){var s=r.queryComponents({mainType:"dataZoom",subType:"select",id:i})[0];if(s){var u=s.getPercentRange();e[0][i]={dataZoomId:i,start:u[0],end:u[1]}}}}),e.push(t)}function kI(r){var t=$h(r),e=t[t.length-1];t.length>1&&t.pop();var n={};return k_(e,function(i,a){for(var o=t.length-1;o>=0;o--)if(i=t[o][a],i){n[a]=i;break}}),n}function BI(r){B_(r).snapshots=null}function NI(r){return $h(r).length}function $h(r){var t=B_(r);return t.snapshots||(t.snapshots=[{}]),t.snapshots}var FI=function(r){O(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return t.prototype.onclick=function(e,n){BI(e),n.dispatchAction({type:"restore",from:this.uid})},t.getDefaultOption=function(e){var n={show:!0,icon:"M3.8,33.4 M47,18.9h9.8V8.7 M56.3,20.1 C52.1,9,40.5,0.6,26.8,2.1C12.6,3.7,1.6,16.2,2.1,30.6 M13,41.1H3.1v10.2 M3.7,39.9c4.2,11.1,15.8,19.5,29.5,18 c14.2-1.6,25.2-14.1,24.7-28.5",title:e.getLocaleModel().get(["toolbox","restore","title"])};return n},t}(xe);Fe({type:"restore",event:"restore",update:"prepareAndUpdate"},function(r,t){t.resetOption("recreate")});const zI=FI;var GI=["grid","xAxis","yAxis","geo","graph","polar","radiusAxis","angleAxis","bmap"],HI=function(){function r(t,e,n){var i=this;this._targetInfoList=[];var a=Op(e,t);C(VI,function(o,s){(!n||!n.include||J(n.include,s)>=0)&&o(a,i._targetInfoList)})}return r.prototype.setOutputRanges=function(t,e){return this.matchOutputRanges(t,e,function(n,i,a){if((n.coordRanges||(n.coordRanges=[])).push(i),!n.coordRange){n.coordRange=i;var o=fl[n.brushType](0,a,i);n.__rangeOffset={offset:Fp[n.brushType](o.values,n.range,[1,1]),xyMinMax:o.xyMinMax}}}),t},r.prototype.matchOutputRanges=function(t,e,n){C(t,function(i){var a=this.findTargetInfo(i,e);a&&a!==!0&&C(a.coordSyses,function(o){var s=fl[i.brushType](1,o,i.range,!0);n(i,s.values,o,e)})},this)},r.prototype.setInputRanges=function(t,e){C(t,function(n){var i=this.findTargetInfo(n,e);if(n.range=n.range||[],i&&i!==!0){n.panelId=i.panelId;var a=fl[n.brushType](0,i.coordSys,n.coordRange),o=n.__rangeOffset;n.range=o?Fp[n.brushType](a.values,o.offset,WI(a.xyMinMax,o.xyMinMax)):a.values}},this)},r.prototype.makePanelOpts=function(t,e){return z(this._targetInfoList,function(n){var i=n.getPanelRect();return{panelId:n.panelId,defaultBrushType:e?e(n):null,clipPath:_L(i),isTargetByCursor:xL(i,t,n.coordSysModel),getLinearBrushOtherExtent:SL(i)}})},r.prototype.controlSeries=function(t,e,n){var i=this.findTargetInfo(t,n);return i===!0||i&&J(i.coordSyses,e.coordinateSystem)>=0},r.prototype.findTargetInfo=function(t,e){for(var n=this._targetInfoList,i=Op(e,t),a=0;ar[1]&&r.reverse(),r}function Op(r,t){return $i(r,t,{includeMainTypes:GI})}var VI={grid:function(r,t){var e=r.xAxisModels,n=r.yAxisModels,i=r.gridModels,a=W(),o={},s={};!e&&!n&&!i||(C(e,function(u){var l=u.axis.grid.model;a.set(l.id,l),o[l.id]=!0}),C(n,function(u){var l=u.axis.grid.model;a.set(l.id,l),s[l.id]=!0}),C(i,function(u){a.set(u.id,u),o[u.id]=!0,s[u.id]=!0}),a.each(function(u){var l=u.coordinateSystem,f=[];C(l.getCartesians(),function(h,c){(J(e,h.getAxis("x").model)>=0||J(n,h.getAxis("y").model)>=0)&&f.push(h)}),t.push({panelId:"grid--"+u.id,gridModel:u,coordSysModel:u,coordSys:f[0],coordSyses:f,getPanelRect:Bp.grid,xAxisDeclared:o[u.id],yAxisDeclared:s[u.id]})}))},geo:function(r,t){C(r.geoModels,function(e){var n=e.coordinateSystem;t.push({panelId:"geo--"+e.id,geoModel:e,coordSysModel:e,coordSys:n,coordSyses:[n],getPanelRect:Bp.geo})})}},kp=[function(r,t){var e=r.xAxisModel,n=r.yAxisModel,i=r.gridModel;return!i&&e&&(i=e.axis.grid.model),!i&&n&&(i=n.axis.grid.model),i&&i===t.gridModel},function(r,t){var e=r.geoModel;return e&&e===t.geoModel}],Bp={grid:function(){return this.coordSys.master.getRect().clone()},geo:function(){var r=this.coordSys,t=r.getBoundingRect().clone();return t.applyTransform(Ds(r)),t}},fl={lineX:ot(Np,0),lineY:ot(Np,1),rect:function(r,t,e,n){var i=r?t.pointToData([e[0][0],e[1][0]],n):t.dataToPoint([e[0][0],e[1][0]],n),a=r?t.pointToData([e[0][1],e[1][1]],n):t.dataToPoint([e[0][1],e[1][1]],n),o=[Af([i[0],a[0]]),Af([i[1],a[1]])];return{values:o,xyMinMax:o}},polygon:function(r,t,e,n){var i=[[1/0,-1/0],[1/0,-1/0]],a=z(e,function(o){var s=r?t.pointToData(o,n):t.dataToPoint(o,n);return i[0][0]=Math.min(i[0][0],s[0]),i[1][0]=Math.min(i[1][0],s[1]),i[0][1]=Math.max(i[0][1],s[0]),i[1][1]=Math.max(i[1][1],s[1]),s});return{values:a,xyMinMax:i}}};function Np(r,t,e,n){var i=e.getAxis(["x","y"][r]),a=Af(z([0,1],function(s){return t?i.coordToData(i.toLocalCoord(n[s]),!0):i.toGlobalCoord(i.dataToCoord(n[s]))})),o=[];return o[r]=a,o[1-r]=[NaN,NaN],{values:a,xyMinMax:o}}var Fp={lineX:ot(zp,0),lineY:ot(zp,1),rect:function(r,t,e){return[[r[0][0]-e[0]*t[0][0],r[0][1]-e[0]*t[0][1]],[r[1][0]-e[1]*t[1][0],r[1][1]-e[1]*t[1][1]]]},polygon:function(r,t,e){return z(r,function(n,i){return[n[0]-e[0]*t[i][0],n[1]-e[1]*t[i][1]]})}};function zp(r,t,e,n){return[t[0]-n[r]*e[0],t[1]-n[r]*e[1]]}function WI(r,t){var e=Gp(r),n=Gp(t),i=[e[0]/n[0],e[1]/n[1]];return isNaN(i[0])&&(i[0]=1),isNaN(i[1])&&(i[1]=1),i}function Gp(r){return r?[r[0][1]-r[0][0],r[1][1]-r[1][0]]:[NaN,NaN]}const N_=HI;var Lf=C,UI=jS("toolbox-dataZoom_"),YI=function(r){O(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return t.prototype.render=function(e,n,i,a){this._brushController||(this._brushController=new mL(i.getZr()),this._brushController.on("brush",Y(this._onBrush,this)).mount()),XI(e,n,this,a,i),ZI(e,n)},t.prototype.onclick=function(e,n,i){$I[i].call(this)},t.prototype.remove=function(e,n){this._brushController&&this._brushController.unmount()},t.prototype.dispose=function(e,n){this._brushController&&this._brushController.dispose()},t.prototype._onBrush=function(e){var n=e.areas;if(!e.isEnd||!n.length)return;var i={},a=this.ecModel;this._brushController.updateCovers([]);var o=new N_(Zh(this.model),a,{include:["grid"]});o.matchOutputRanges(n,a,function(l,f,h){if(h.type==="cartesian2d"){var c=l.brushType;c==="rect"?(s("x",h,f[0]),s("y",h,f[1])):s({lineX:"x",lineY:"y"}[c],h,f)}}),OI(a,i),this._dispatchZoomAction(i);function s(l,f,h){var c=f.getAxis(l),v=c.model,d=u(l,v,a),g=d.findRepresentativeAxisProxy(v).getMinMaxSpan();(g.minValueSpan!=null||g.maxValueSpan!=null)&&(h=Oa(0,h.slice(),c.scale.getExtent(),0,g.minValueSpan,g.maxValueSpan)),d&&(i[d.id]={dataZoomId:d.id,startValue:h[0],endValue:h[1]})}function u(l,f,h){var c;return h.eachComponent({mainType:"dataZoom",subType:"select"},function(v){var d=v.getAxisModel(l,f.componentIndex);d&&(c=v)}),c}},t.prototype._dispatchZoomAction=function(e){var n=[];Lf(e,function(i,a){n.push(K(i))}),n.length&&this.api.dispatchAction({type:"dataZoom",from:this.uid,batch:n})},t.getDefaultOption=function(e){var n={show:!0,filterMode:"filter",icon:{zoom:"M0,13.5h26.9 M13.5,26.9V0 M32.1,13.5H58V58H13.5 V32.1",back:"M22,1.4L9.9,13.5l12.3,12.3 M10.3,13.5H54.9v44.6 H10.3v-26"},title:e.getLocaleModel().get(["toolbox","dataZoom","title"]),brushStyle:{borderWidth:0,color:"rgba(210,219,238,0.2)"}};return n},t}(xe),$I={zoom:function(){var r=!this._isZoomActive;this.api.dispatchAction({type:"takeGlobalCursor",key:"dataZoomSelect",dataZoomSelectActive:r})},back:function(){this._dispatchZoomAction(kI(this.ecModel))}};function Zh(r){var t={xAxisIndex:r.get("xAxisIndex",!0),yAxisIndex:r.get("yAxisIndex",!0),xAxisId:r.get("xAxisId",!0),yAxisId:r.get("yAxisId",!0)};return t.xAxisIndex==null&&t.xAxisId==null&&(t.xAxisIndex="all"),t.yAxisIndex==null&&t.yAxisId==null&&(t.yAxisIndex="all"),t}function ZI(r,t){r.setIconStatus("back",NI(t)>1?"emphasis":"normal")}function XI(r,t,e,n,i){var a=e._isZoomActive;n&&n.type==="takeGlobalCursor"&&(a=n.key==="dataZoomSelect"?n.dataZoomSelectActive:!1),e._isZoomActive=a,r.setIconStatus("zoom",a?"emphasis":"normal");var o=new N_(Zh(r),t,{include:["grid"]}),s=o.makePanelOpts(i,function(u){return u.xAxisDeclared&&!u.yAxisDeclared?"lineX":!u.xAxisDeclared&&u.yAxisDeclared?"lineY":"rect"});e._brushController.setPanels(s).enableBrush(a&&s.length?{brushType:"auto",brushStyle:r.getModel("brushStyle").getItemStyle()}:!1)}oT("dataZoom",function(r){var t=r.getComponent("toolbox",0),e=["feature","dataZoom"];if(!t||t.get(e)==null)return;var n=t.getModel(e),i=[],a=Zh(n),o=$i(r,a);Lf(o.xAxisModels,function(u){return s(u,"xAxis","xAxisIndex")}),Lf(o.yAxisModels,function(u){return s(u,"yAxis","yAxisIndex")});function s(u,l,f){var h=u.componentIndex,c={type:"select",$fromToolbox:!0,filterMode:n.get("filterMode",!0)||"filter",id:UI+l+h};c[f]=h,i.push(c)}return i});const qI=YI;function KR(r){r.registerComponentModel(cI),r.registerComponentView(yI),Pi("saveAsImage",_I),Pi("magicType",wI),Pi("dataView",EI),Pi("dataZoom",qI),Pi("restore",zI),Be(hI)}var KI=function(r){O(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.type="tooltip",t.dependencies=["axisPointer"],t.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}},t}(ct);const QI=KI;function F_(r){var t=r.get("confine");return t!=null?!!t:r.get("renderMode")==="richText"}function z_(r){if(!!j.domSupported){for(var t=document.documentElement.style,e=0,n=r.length;e-1?(s+="top:50%",u+="translateY(-50%) rotate("+(l=a==="left"?-225:-45)+"deg)"):(s+="left:50%",u+="translateX(-50%) rotate("+(l=a==="top"?225:45)+"deg)");var f=l*Math.PI/180,h=o+i,c=h*Math.abs(Math.cos(f))+h*Math.abs(Math.sin(f)),v=Math.round(((c-Math.SQRT2*i)/2+Math.SQRT2*i-(c-h)/2)*100)/100;s+=";"+a+":-"+v+"px";var d=t+" solid "+i+"px;",g=["position:absolute;width:"+o+"px;height:"+o+"px;",s+";"+u+";","border-bottom:"+d,"border-right:"+d,"background-color:"+n+";"];return'
'}function iP(r,t){var e="cubic-bezier(0.23,1,0.32,1)",n=" "+r/2+"s "+e,i="opacity"+n+",visibility"+n;return t||(n=" "+r+"s "+e,i+=j.transformSupported?","+Xh+n:",left"+n+",top"+n),tP+":"+i}function Hp(r,t,e){var n=r.toFixed(0)+"px",i=t.toFixed(0)+"px";if(!j.transformSupported)return e?"top:"+i+";left:"+n+";":[["top",i],["left",n]];var a=j.transform3dSupported,o="translate"+(a?"3d":"")+"("+n+","+i+(a?",0":"")+")";return e?"top:0;left:0;"+Xh+":"+o+";":[["top",0],["left",0],[G_,o]]}function aP(r){var t=[],e=r.get("fontSize"),n=r.getTextColor();n&&t.push("color:"+n),t.push("font:"+r.getFont()),e&&t.push("line-height:"+Math.round(e*3/2)+"px");var i=r.get("textShadowColor"),a=r.get("textShadowBlur")||0,o=r.get("textShadowOffsetX")||0,s=r.get("textShadowOffsetY")||0;return i&&a&&t.push("text-shadow:"+o+"px "+s+"px "+a+"px "+i),C(["decoration","align"],function(u){var l=r.get(u);l&&t.push("text-"+u+":"+l)}),t.join(";")}function oP(r,t,e){var n=[],i=r.get("transitionDuration"),a=r.get("backgroundColor"),o=r.get("shadowBlur"),s=r.get("shadowColor"),u=r.get("shadowOffsetX"),l=r.get("shadowOffsetY"),f=r.getModel("textStyle"),h=$m(r,"html"),c=u+"px "+l+"px "+o+"px "+s;return n.push("box-shadow:"+c),t&&i&&n.push(iP(i,e)),a&&n.push("background-color:"+a),C(["width","color","radius"],function(v){var d="border-"+v,g=pm(d),p=r.get(g);p!=null&&n.push(d+":"+p+(v==="color"?"":"px"))}),n.push(aP(f)),h!=null&&n.push("padding:"+Ns(h).join("px ")+"px"),n.join(";")+";"}function Vp(r,t,e,n,i){var a=t&&t.painter;if(e){var o=a&&a.getViewportRoot();o&&L1(r,o,document.body,n,i)}else{r[0]=n,r[1]=i;var s=a&&a.getViewportRootOffset();s&&(r[0]+=s.offsetLeft,r[1]+=s.offsetTop)}r[2]=r[0]/t.getWidth(),r[3]=r[1]/t.getHeight()}var sP=function(){function r(t,e,n){if(this._show=!1,this._styleCoord=[0,0,0,0],this._enterable=!0,this._firstShow=!0,this._longHide=!0,j.wxa)return null;var i=document.createElement("div");i.domBelongToZr=!0,this.el=i;var a=this._zr=e.getZr(),o=this._appendToBody=n&&n.appendToBody;Vp(this._styleCoord,a,o,e.getWidth()/2,e.getHeight()/2),o?document.body.appendChild(i):t.appendChild(i),this._container=t;var s=this;i.onmouseenter=function(){s._enterable&&(clearTimeout(s._hideTimeout),s._show=!0),s._inContent=!0},i.onmousemove=function(u){if(u=u||window.event,!s._enterable){var l=a.handler,f=a.painter.getViewportRoot();ie(f,u,!0),l.dispatch("mousemove",u)}},i.onmouseleave=function(){s._inContent=!1,s._enterable&&s._show&&s.hideLater(s._hideDelay)}}return r.prototype.update=function(t){var e=this._container,n=jI(e,"position"),i=e.style;i.position!=="absolute"&&n!=="absolute"&&(i.position="relative");var a=t.get("alwaysShowContent");a&&this._moveIfResized(),this.el.className=t.get("className")||""},r.prototype.show=function(t,e){clearTimeout(this._hideTimeout),clearTimeout(this._longHideTimeout);var n=this.el,i=n.style,a=this._styleCoord;n.innerHTML?i.cssText=eP+oP(t,!this._firstShow,this._longHide)+Hp(a[0],a[1],!0)+("border-color:"+hn(e)+";")+(t.get("extraCssText")||"")+(";pointer-events:"+(this._enterable?"auto":"none")):i.display="none",this._show=!0,this._firstShow=!1,this._longHide=!1},r.prototype.setContent=function(t,e,n,i,a){var o=this.el;if(t==null){o.innerHTML="";return}var s="";if(G(a)&&n.get("trigger")==="item"&&!F_(n)&&(s=nP(n,i,a)),G(t))o.innerHTML=t+s;else if(t){o.innerHTML="",N(t)||(t=[t]);for(var u=0;u=0?this._tryShow(a,o):i==="leave"&&this._hide(o))},this))},t.prototype._keepShow=function(){var e=this._tooltipModel,n=this._ecModel,i=this._api;if(this._lastX!=null&&this._lastY!=null&&e.get("triggerOn")!=="none"){var a=this;clearTimeout(this._refreshUpdateTimeout),this._refreshUpdateTimeout=setTimeout(function(){!i.isDisposed()&&a.manuallyShowTip(e,n,i,{x:a._lastX,y:a._lastY,dataByCoordSys:a._lastDataByCoordSys})})}},t.prototype.manuallyShowTip=function(e,n,i,a){if(!(a.from===this.uid||j.node||!i.getDom())){var o=Yp(a,i);this._ticket="";var s=a.dataByCoordSys,u=gP(a,n,i);if(u){var l=u.el.getBoundingRect().clone();l.applyTransform(u.el.transform),this._tryShow({offsetX:l.x+l.width/2,offsetY:l.y+l.height/2,target:u.el,position:a.position,positionDefault:"bottom"},o)}else if(a.tooltip&&a.x!=null&&a.y!=null){var f=hP;f.x=a.x,f.y=a.y,f.update(),ut(f).tooltipConfig={name:null,option:a.tooltip},this._tryShow({offsetX:a.x,offsetY:a.y,target:f},o)}else if(s)this._tryShow({offsetX:a.x,offsetY:a.y,position:a.position,dataByCoordSys:s,tooltipOption:a.tooltipOption},o);else if(a.seriesIndex!=null){if(this._manuallyAxisShowTip(e,n,i,a))return;var h=L_(a,n),c=h.point[0],v=h.point[1];c!=null&&v!=null&&this._tryShow({offsetX:c,offsetY:v,target:h.el,position:a.position,positionDefault:"bottom"},o)}else a.x!=null&&a.y!=null&&(i.dispatchAction({type:"updateAxisPointer",x:a.x,y:a.y}),this._tryShow({offsetX:a.x,offsetY:a.y,position:a.position,target:i.getZr().findHover(a.x,a.y).target},o))}},t.prototype.manuallyHideTip=function(e,n,i,a){var o=this._tooltipContent;!this._alwaysShowContent&&this._tooltipModel&&o.hideLater(this._tooltipModel.get("hideDelay")),this._lastX=this._lastY=this._lastDataByCoordSys=null,a.from!==this.uid&&this._hide(Yp(a,i))},t.prototype._manuallyAxisShowTip=function(e,n,i,a){var o=a.seriesIndex,s=a.dataIndex,u=n.getComponent("axisPointer").coordSysAxesInfo;if(!(o==null||s==null||u==null)){var l=n.getSeriesByIndex(o);if(!!l){var f=l.getData(),h=Ri([f.getItemModel(s),l,(l.coordinateSystem||{}).model],this._tooltipModel);if(h.get("trigger")==="axis")return i.dispatchAction({type:"updateAxisPointer",seriesIndex:o,dataIndex:s,position:a.position}),!0}}},t.prototype._tryShow=function(e,n){var i=e.target,a=this._tooltipModel;if(!!a){this._lastX=e.offsetX,this._lastY=e.offsetY;var o=e.dataByCoordSys;if(o&&o.length)this._showAxisTooltip(o,e);else if(i){this._lastDataByCoordSys=null;var s,u;Wi(i,function(l){if(ut(l).dataIndex!=null)return s=l,!0;if(ut(l).tooltipConfig!=null)return u=l,!0},!0),s?this._showSeriesItemTooltip(e,s,n):u?this._showComponentItemTooltip(e,u,n):this._hide(n)}else this._lastDataByCoordSys=null,this._hide(n)}},t.prototype._showOrMove=function(e,n){var i=e.get("showDelay");n=Y(n,this),clearTimeout(this._showTimout),i>0?this._showTimout=setTimeout(n,i):n()},t.prototype._showAxisTooltip=function(e,n){var i=this._ecModel,a=this._tooltipModel,o=[n.offsetX,n.offsetY],s=Ri([n.tooltipOption],a),u=this._renderMode,l=[],f=da("section",{blocks:[],noHeader:!0}),h=[],c=new zu;C(e,function(m){C(m.dataByAxis,function(_){var S=i.getComponent(_.axisDim+"Axis",_.axisIndex),w=_.value;if(!(!S||w==null)){var x=M_(w,S.axis,i,_.seriesDataIndices,_.valueLabelOpt),b=da("section",{header:x,noHeader:!Pe(x),sortBlocks:!0,blocks:[]});f.blocks.push(b),C(_.seriesDataIndices,function(T){var M=i.getSeriesByIndex(T.seriesIndex),D=T.dataIndexInside,A=M.getDataParams(D);if(!(A.dataIndex<0)){A.axisDim=_.axisDim,A.axisIndex=_.axisIndex,A.axisType=_.axisType,A.axisId=_.axisId,A.axisValue=Rh(S.axis,{value:w}),A.axisValueLabel=x,A.marker=c.makeTooltipMarker("item",hn(A.color),u);var L=Uc(M.formatTooltip(D,!0,null)),I=L.frag;if(I){var P=Ri([M],a).get("valueFormatter");b.blocks.push(P?k({valueFormatter:P},I):I)}L.text&&h.push(L.text),l.push(A)}})}})}),f.blocks.reverse(),h.reverse();var v=n.position,d=s.get("order"),g=Kc(f,c,u,d,i.get("useUTC"),s.get("textStyle"));g&&h.unshift(g);var p=u==="richText"?` - -`:"
",y=h.join(p);this._showOrMove(s,function(){this._updateContentNotChangedOnAxis(e,l)?this._updatePosition(s,v,o[0],o[1],this._tooltipContent,l):this._showTooltipContent(s,y,l,Math.random()+"",o[0],o[1],v,null,c)})},t.prototype._showSeriesItemTooltip=function(e,n,i){var a=this._ecModel,o=ut(n),s=o.seriesIndex,u=a.getSeriesByIndex(s),l=o.dataModel||u,f=o.dataIndex,h=o.dataType,c=l.getData(h),v=this._renderMode,d=e.positionDefault,g=Ri([c.getItemModel(f),l,u&&(u.coordinateSystem||{}).model],this._tooltipModel,d?{position:d}:null),p=g.get("trigger");if(!(p!=null&&p!=="item")){var y=l.getDataParams(f,h),m=new zu;y.marker=m.makeTooltipMarker("item",hn(y.color),v);var _=Uc(l.formatTooltip(f,!1,h)),S=g.get("order"),w=g.get("valueFormatter"),x=_.frag,b=x?Kc(w?k({valueFormatter:w},x):x,m,v,S,a.get("useUTC"),g.get("textStyle")):_.text,T="item_"+l.name+"_"+f;this._showOrMove(g,function(){this._showTooltipContent(g,b,y,T,e.offsetX,e.offsetY,e.position,e.target,m)}),i({type:"showTip",dataIndexInside:f,dataIndex:c.getRawIndex(f),seriesIndex:s,from:this.uid})}},t.prototype._showComponentItemTooltip=function(e,n,i){var a=ut(n),o=a.tooltipConfig,s=o.option||{};if(G(s)){var u=s;s={content:u,formatter:u}}var l=[s],f=this._ecModel.getComponent(a.componentMainType,a.componentIndex);f&&l.push(f),l.push({formatter:s.content});var h=e.positionDefault,c=Ri(l,this._tooltipModel,h?{position:h}:null),v=c.get("content"),d=Math.random()+"",g=new zu;this._showOrMove(c,function(){var p=K(c.get("formatterParams")||{});this._showTooltipContent(c,v,p,d,e.offsetX,e.offsetY,e.position,n,g)}),i({type:"showTip",from:this.uid})},t.prototype._showTooltipContent=function(e,n,i,a,o,s,u,l,f){if(this._ticket="",!(!e.get("showContent")||!e.get("show"))){var h=this._tooltipContent;h.setEnterable(e.get("enterable"));var c=e.get("formatter");u=u||e.get("position");var v=n,d=this._getNearestPoint([o,s],i,e.get("trigger"),e.get("borderColor")),g=d.color;if(c)if(G(c)){var p=e.ecModel.get("useUTC"),y=N(i)?i[0]:i,m=y&&y.axisType&&y.axisType.indexOf("time")>=0;v=c,m&&(v=Rs(y.axisValue,v,p)),v=gm(v,i,!0)}else if(U(c)){var _=Y(function(S,w){S===this._ticket&&(h.setContent(w,f,e,g,u),this._updatePosition(e,u,o,s,h,i,l))},this);this._ticket=a,v=c(i,a,_)}else v=c;h.setContent(v,f,e,g,u),h.show(e,g),this._updatePosition(e,u,o,s,h,i,l)}},t.prototype._getNearestPoint=function(e,n,i,a){if(i==="axis"||N(n))return{color:a||(this._renderMode==="html"?"#fff":"none")};if(!N(n))return{color:a||n.color||n.borderColor}},t.prototype._updatePosition=function(e,n,i,a,o,s,u){var l=this._api.getWidth(),f=this._api.getHeight();n=n||e.get("position");var h=o.getSize(),c=e.get("align"),v=e.get("verticalAlign"),d=u&&u.getBoundingRect().clone();if(u&&d.applyTransform(u.transform),U(n)&&(n=n([i,a],s,o.el,d,{viewSize:[l,f],contentSize:h.slice()})),N(n))i=Ct(n[0],l),a=Ct(n[1],f);else if(H(n)){var g=n;g.width=h[0],g.height=h[1];var p=wr(g,{width:l,height:f});i=p.x,a=p.y,c=null,v=null}else if(G(n)&&u){var y=pP(n,d,h,e.get("borderWidth"));i=y[0],a=y[1]}else{var y=cP(i,a,o,l,f,c?null:20,v?null:20);i=y[0],a=y[1]}if(c&&(i-=$p(c)?h[0]/2:c==="right"?h[0]:0),v&&(a-=$p(v)?h[1]/2:v==="bottom"?h[1]:0),F_(e)){var y=dP(i,a,o,l,f);i=y[0],a=y[1]}o.moveTo(i,a)},t.prototype._updateContentNotChangedOnAxis=function(e,n){var i=this._lastDataByCoordSys,a=this._cbParamsList,o=!!i&&i.length===e.length;return o&&C(i,function(s,u){var l=s.dataByAxis||[],f=e[u]||{},h=f.dataByAxis||[];o=o&&l.length===h.length,o&&C(l,function(c,v){var d=h[v]||{},g=c.seriesDataIndices||[],p=d.seriesDataIndices||[];o=o&&c.value===d.value&&c.axisType===d.axisType&&c.axisId===d.axisId&&g.length===p.length,o&&C(g,function(y,m){var _=p[m];o=o&&y.seriesIndex===_.seriesIndex&&y.dataIndex===_.dataIndex}),a&&C(c.seriesDataIndices,function(y){var m=y.seriesIndex,_=n[m],S=a[m];_&&S&&S.data!==_.data&&(o=!1)})})}),this._lastDataByCoordSys=e,this._cbParamsList=n,!!o},t.prototype._hide=function(e){this._lastDataByCoordSys=null,e({type:"hideTip",from:this.uid})},t.prototype.dispose=function(e,n){j.node||!n.getDom()||(rs(this,"_updatePosition"),this._tooltipContent.dispose(),Mf("itemTooltip",n))},t.type="tooltip",t}(ve);function Ri(r,t,e){var n=t.ecModel,i;e?(i=new At(e,n,n),i=new At(t.option,i,n)):i=t;for(var a=r.length-1;a>=0;a--){var o=r[a];o&&(o instanceof At&&(o=o.get("tooltip",!0)),G(o)&&(o={formatter:o}),o&&(i=new At(o,i,n)))}return i}function Yp(r,t){return r.dispatchAction||Y(t.dispatchAction,t)}function cP(r,t,e,n,i,a,o){var s=e.getSize(),u=s[0],l=s[1];return a!=null&&(r+u+a+2>n?r-=u+a:r+=a),o!=null&&(t+l+o>i?t-=l+o:t+=o),[r,t]}function dP(r,t,e,n,i){var a=e.getSize(),o=a[0],s=a[1];return r=Math.min(r+o,n)-o,t=Math.min(t+s,i)-s,r=Math.max(r,0),t=Math.max(t,0),[r,t]}function pP(r,t,e,n){var i=e[0],a=e[1],o=Math.ceil(Math.SQRT2*n)+8,s=0,u=0,l=t.width,f=t.height;switch(r){case"inside":s=t.x+l/2-i/2,u=t.y+f/2-a/2;break;case"top":s=t.x+l/2-i/2,u=t.y-a-o;break;case"bottom":s=t.x+l/2-i/2,u=t.y+f+o;break;case"left":s=t.x-i-o,u=t.y+f/2-a/2;break;case"right":s=t.x+l+o,u=t.y+f/2-a/2}return[s,u]}function $p(r){return r==="center"||r==="middle"}function gP(r,t,e){var n=Kf(r).queryOptionMap,i=n.keys()[0];if(!(!i||i==="series")){var a=Da(t,i,n.get(i),{useDefault:!1,enableAll:!1,enableNone:!1}),o=a.models[0];if(!!o){var s=e.getViewOfComponentModel(o),u;if(s.group.traverse(function(l){var f=ut(l).tooltipConfig;if(f&&f.name===r.name)return u=l,!0}),u)return{componentMainType:i,componentIndex:o.componentIndex,el:u}}}}const yP=vP;function QR(r){Be(I_),r.registerComponentModel(QI),r.registerComponentView(yP),r.registerAction({type:"showTip",event:"showTip",update:"tooltip:manuallyShowTip"},Gt),r.registerAction({type:"hideTip",event:"hideTip",update:"tooltip:manuallyHideTip"},Gt)}var mP=function(r){O(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e.layoutMode={type:"box",ignoreSize:!0},e}return t.type="title",t.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"}},t}(ct),_P=function(r){O(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.render=function(e,n,i){if(this.group.removeAll(),!!e.get("show")){var a=this.group,o=e.getModel("textStyle"),s=e.getModel("subtextStyle"),u=e.get("textAlign"),l=nt(e.get("textBaseline"),e.get("textVerticalAlign")),f=new Dt({style:Qe(o,{text:e.get("text"),fill:o.getTextColor()},{disableBox:!0}),z2:10}),h=f.getBoundingRect(),c=e.get("subtext"),v=new Dt({style:Qe(s,{text:c,fill:s.getTextColor(),y:h.height+e.get("itemGap"),verticalAlign:"top"},{disableBox:!0}),z2:10}),d=e.get("link"),g=e.get("sublink"),p=e.get("triggerEvent",!0);f.silent=!d&&!p,v.silent=!g&&!p,d&&f.on("click",function(){Mc(d,"_"+e.get("target"))}),g&&v.on("click",function(){Mc(g,"_"+e.get("subtarget"))}),ut(f).eventData=ut(v).eventData=p?{componentType:"title",componentIndex:e.componentIndex}:null,a.add(f),c&&a.add(v);var y=a.getBoundingRect(),m=e.getBoxLayoutParams();m.width=y.width,m.height=y.height;var _=wr(m,{width:i.getWidth(),height:i.getHeight()},e.get("padding"));u||(u=e.get("left")||e.get("right"),u==="middle"&&(u="center"),u==="right"?_.x+=_.width:u==="center"&&(_.x+=_.width/2)),l||(l=e.get("top")||e.get("bottom"),l==="center"&&(l="middle"),l==="bottom"?_.y+=_.height:l==="middle"&&(_.y+=_.height/2),l=l||"top"),a.x=_.x,a.y=_.y,a.markRedraw();var S={align:u,verticalAlign:l};f.setStyle(S),v.setStyle(S),y=a.getBoundingRect();var w=_.margin,x=e.getItemStyle(["color","opacity"]);x.fill=e.get("backgroundColor");var b=new yt({shape:{x:y.x-w[3],y:y.y-w[0],width:y.width+w[1]+w[3],height:y.height+w[0]+w[2],r:e.get("borderRadius")},style:x,subPixelOptimize:!0,silent:!0});a.add(b)}},t.type="title",t}(ve);function JR(r){r.registerComponentModel(mP),r.registerComponentView(_P)}var SP=function(r,t){if(t==="all")return{type:"all",title:r.getLocaleModel().get(["legend","selector","all"])};if(t==="inverse")return{type:"inverse",title:r.getLocaleModel().get(["legend","selector","inverse"])}},xP=function(r){O(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e.layoutMode={type:"box",ignoreSize:!0},e}return t.prototype.init=function(e,n,i){this.mergeDefaultAndTheme(e,i),e.selected=e.selected||{},this._updateSelector(e)},t.prototype.mergeOption=function(e,n){r.prototype.mergeOption.call(this,e,n),this._updateSelector(e)},t.prototype._updateSelector=function(e){var n=e.selector,i=this.ecModel;n===!0&&(n=e.selector=["all","inverse"]),N(n)&&C(n,function(a,o){G(a)&&(a={type:a}),n[o]=Q(a,SP(i,a.type))})},t.prototype.optionUpdated=function(){this._updateData(this.ecModel);var e=this._data;if(e[0]&&this.get("selectedMode")==="single"){for(var n=!1,i=0;i=0},t.prototype.getOrient=function(){return this.get("orient")==="vertical"?{index:1,name:"vertical"}:{index:0,name:"horizontal"}},t.type="legend.plain",t.dependencies=["series"],t.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}},t}(ct);const If=xP;var Rn=ot,Pf=C,_o=bt,wP=function(r){O(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e.newlineDisabled=!1,e}return t.prototype.init=function(){this.group.add(this._contentGroup=new _o),this.group.add(this._selectorGroup=new _o),this._isFirstRender=!0},t.prototype.getContentGroup=function(){return this._contentGroup},t.prototype.getSelectorGroup=function(){return this._selectorGroup},t.prototype.render=function(e,n,i){var a=this._isFirstRender;if(this._isFirstRender=!1,this.resetInner(),!!e.get("show",!0)){var o=e.get("align"),s=e.get("orient");(!o||o==="auto")&&(o=e.get("left")==="right"&&s==="vertical"?"right":"left");var u=e.get("selector",!0),l=e.get("selectorPosition",!0);u&&(!l||l==="auto")&&(l=s==="horizontal"?"end":"start"),this.renderInner(o,e,n,i,u,s,l);var f=e.getBoxLayoutParams(),h={width:i.getWidth(),height:i.getHeight()},c=e.get("padding"),v=wr(f,h,c),d=this.layoutInner(e,o,v,a,u,l),g=wr(q({width:d.width,height:d.height},f),h,c);this.group.x=g.x-d.x,this.group.y=g.y-d.y,this.group.markRedraw(),this.group.add(this._backgroundEl=O_(d,e))}},t.prototype.resetInner=function(){this.getContentGroup().removeAll(),this._backgroundEl&&this.group.remove(this._backgroundEl),this.getSelectorGroup().removeAll()},t.prototype.renderInner=function(e,n,i,a,o,s,u){var l=this.getContentGroup(),f=W(),h=n.get("selectedMode"),c=[];i.eachRawSeries(function(v){!v.get("legendHoverLink")&&c.push(v.id)}),Pf(n.getData(),function(v,d){var g=v.get("name");if(!this.newlineDisabled&&(g===""||g===` -`)){var p=new _o;p.newline=!0,l.add(p);return}var y=i.getSeriesByName(g)[0];if(!f.get(g))if(y){var m=y.getData(),_=m.getVisual("legendLineStyle")||{},S=m.getVisual("legendIcon"),w=m.getVisual("style"),x=this._createItem(y,g,d,v,n,e,_,w,S,h);x.on("click",Rn(Zp,g,null,a,c)).on("mouseover",Rn(Rf,y.name,null,a,c)).on("mouseout",Rn(Ef,y.name,null,a,c)),f.set(g,!0)}else i.eachRawSeries(function(b){if(!f.get(g)&&b.legendVisualProvider){var T=b.legendVisualProvider;if(!T.containName(g))return;var M=T.indexOfName(g),D=T.getItemVisual(M,"style"),A=T.getItemVisual(M,"legendIcon"),L=$e(D.fill);L&&L[3]===0&&(L[3]=.2,D=k(k({},D),{fill:ys(L,"rgba")}));var I=this._createItem(b,g,d,v,n,e,{},D,A,h);I.on("click",Rn(Zp,null,g,a,c)).on("mouseover",Rn(Rf,null,g,a,c)).on("mouseout",Rn(Ef,null,g,a,c)),f.set(g,!0)}},this)},this),o&&this._createSelector(o,n,a,s,u)},t.prototype._createSelector=function(e,n,i,a,o){var s=this.getSelectorGroup();Pf(e,function(l){var f=l.type,h=new Dt({style:{x:0,y:0,align:"center",verticalAlign:"middle"},onclick:function(){i.dispatchAction({type:f==="all"?"legendAllSelect":"legendInverseSelect"})}});s.add(h);var c=n.getModel("selectorLabel"),v=n.getModel(["emphasis","selectorLabel"]);lh(h,{normal:c,emphasis:v},{defaultText:l.title}),qo(h)})},t.prototype._createItem=function(e,n,i,a,o,s,u,l,f,h){var c=e.visualDrawType,v=o.get("itemWidth"),d=o.get("itemHeight"),g=o.isSelected(n),p=a.get("symbolRotate"),y=a.get("symbolKeepAspect"),m=a.get("icon");f=m||f||"roundRect";var _=bP(f,a,u,l,c,g),S=new _o,w=a.getModel("textStyle");if(U(e.getLegendIcon)&&(!m||m==="inherit"))S.add(e.getLegendIcon({itemWidth:v,itemHeight:d,icon:f,iconRotate:p,itemStyle:_.itemStyle,lineStyle:_.lineStyle,symbolKeepAspect:y}));else{var x=m==="inherit"&&e.getData().getVisual("symbol")?p==="inherit"?e.getData().getVisual("symbolRotate"):p:0;S.add(TP({itemWidth:v,itemHeight:d,icon:f,iconRotate:x,itemStyle:_.itemStyle,lineStyle:_.lineStyle,symbolKeepAspect:y}))}var b=s==="left"?v+5:-5,T=s,M=o.get("formatter"),D=n;G(M)&&M?D=M.replace("{name}",n!=null?n:""):U(M)&&(D=M(n));var A=a.get("inactiveColor");S.add(new Dt({style:Qe(w,{text:D,x:b,y:d/2,fill:g?w.getTextColor():A,align:T,verticalAlign:"middle"})}));var L=new yt({shape:S.getBoundingRect(),invisible:!0}),I=a.getModel("tooltip");return I.get("show")&&Ls({el:L,componentModel:o,itemName:n,itemTooltipOption:I.option}),S.add(L),S.eachChild(function(P){P.silent=!0}),L.silent=!h,this.getContentGroup().add(S),qo(S),S.__legendDataIndex=i,S},t.prototype.layoutInner=function(e,n,i,a,o,s){var u=this.getContentGroup(),l=this.getSelectorGroup();Qn(e.get("orient"),u,e.get("itemGap"),i.width,i.height);var f=u.getBoundingRect(),h=[-f.x,-f.y];if(l.markRedraw(),u.markRedraw(),o){Qn("horizontal",l,e.get("selectorItemGap",!0));var c=l.getBoundingRect(),v=[-c.x,-c.y],d=e.get("selectorButtonGap",!0),g=e.getOrient().index,p=g===0?"width":"height",y=g===0?"height":"width",m=g===0?"y":"x";s==="end"?v[g]+=f[p]+d:h[g]+=c[p]+d,v[1-g]+=f[y]/2-c[y]/2,l.x=v[0],l.y=v[1],u.x=h[0],u.y=h[1];var _={x:0,y:0};return _[p]=f[p]+d+c[p],_[y]=Math.max(f[y],c[y]),_[m]=Math.min(0,c[m]+v[1-g]),_}else return u.x=h[0],u.y=h[1],this.group.getBoundingRect()},t.prototype.remove=function(){this.getContentGroup().removeAll(),this._isFirstRender=!0},t.type="legend.plain",t}(ve);function bP(r,t,e,n,i,a){function o(d,g){d.lineWidth==="auto"&&(d.lineWidth=g.lineWidth>0?2:0),Pf(d,function(p,y){d[y]==="inherit"&&(d[y]=g[y])})}var s=t.getModel("itemStyle"),u=s.getItemStyle(),l=r.lastIndexOf("empty",0)===0?"fill":"stroke";u.decal=n.decal,u.fill==="inherit"&&(u.fill=n[i]),u.stroke==="inherit"&&(u.stroke=n[l]),u.opacity==="inherit"&&(u.opacity=(i==="fill"?n:e).opacity),o(u,n);var f=t.getModel("lineStyle"),h=f.getLineStyle();if(o(h,e),u.fill==="auto"&&(u.fill=n.fill),u.stroke==="auto"&&(u.stroke=n.fill),h.stroke==="auto"&&(h.stroke=n.fill),!a){var c=t.get("inactiveBorderWidth"),v=u[l];u.lineWidth=c==="auto"?n.lineWidth>0&&v?2:0:u.lineWidth,u.fill=t.get("inactiveColor"),u.stroke=t.get("inactiveBorderColor"),h.stroke=f.get("inactiveColor"),h.lineWidth=f.get("inactiveWidth")}return{itemStyle:u,lineStyle:h}}function TP(r){var t=r.icon||"roundRect",e=br(t,0,0,r.itemWidth,r.itemHeight,r.itemStyle.fill,r.symbolKeepAspect);return e.setStyle(r.itemStyle),e.rotation=(r.iconRotate||0)*Math.PI/180,e.setOrigin([r.itemWidth/2,r.itemHeight/2]),t.indexOf("empty")>-1&&(e.style.stroke=e.style.fill,e.style.fill="#fff",e.style.lineWidth=2),e}function Zp(r,t,e,n){Ef(r,t,e,n),e.dispatchAction({type:"legendToggleSelect",name:r!=null?r:t}),Rf(r,t,e,n)}function V_(r){for(var t=r.getZr().storage.getDisplayList(),e,n=0,i=t.length;ni[o],p=[-v.x,-v.y];n||(p[a]=f[l]);var y=[0,0],m=[-d.x,-d.y],_=nt(e.get("pageButtonGap",!0),e.get("itemGap",!0));if(g){var S=e.get("pageButtonPosition",!0);S==="end"?m[a]+=i[o]-d[o]:y[a]+=d[o]+_}m[1-a]+=v[s]/2-d[s]/2,f.setPosition(p),h.setPosition(y),c.setPosition(m);var w={x:0,y:0};if(w[o]=g?i[o]:v[o],w[s]=Math.max(v[s],d[s]),w[u]=Math.min(0,d[u]+m[1-a]),h.__rectSize=i[o],g){var x={x:0,y:0};x[o]=Math.max(i[o]-d[o]-_,0),x[s]=w[s],h.setClipPath(new yt({shape:x})),h.__rectSize=x[o]}else c.eachChild(function(T){T.attr({invisible:!0,silent:!0})});var b=this._getPageInfo(e);return b.pageIndex!=null&&we(f,{x:b.contentPosition[0],y:b.contentPosition[1]},g?e:null),this._updatePageInfoView(e,b),w},t.prototype._pageGo=function(e,n,i){var a=this._getPageInfo(n)[e];a!=null&&i.dispatchAction({type:"legendScroll",scrollDataIndex:a,legendId:n.id})},t.prototype._updatePageInfoView=function(e,n){var i=this._controllerGroup;C(["pagePrev","pageNext"],function(f){var h=f+"DataIndex",c=n[h]!=null,v=i.childOfName(f);v&&(v.setStyle("fill",c?e.get("pageIconColor",!0):e.get("pageIconInactiveColor",!0)),v.cursor=c?"pointer":"default")});var a=i.childOfName("pageText"),o=e.get("pageFormatter"),s=n.pageIndex,u=s!=null?s+1:0,l=n.pageCount;a&&o&&a.setStyle("text",G(o)?o.replace("{current}",u==null?"":u+"").replace("{total}",l==null?"":l+""):o({current:u,total:l}))},t.prototype._getPageInfo=function(e){var n=e.get("scrollDataIndex",!0),i=this.getContentGroup(),a=this._containerGroup.__rectSize,o=e.getOrient().index,s=hl[o],u=vl[o],l=this._findTargetItemIndex(n),f=i.children(),h=f[l],c=f.length,v=c?1:0,d={contentPosition:[i.x,i.y],pageCount:v,pageIndex:v-1,pagePrevDataIndex:null,pageNextDataIndex:null};if(!h)return d;var g=S(h);d.contentPosition[o]=-g.s;for(var p=l+1,y=g,m=g,_=null;p<=c;++p)_=S(f[p]),(!_&&m.e>y.s+a||_&&!w(_,y.s))&&(m.i>y.i?y=m:y=_,y&&(d.pageNextDataIndex==null&&(d.pageNextDataIndex=y.i),++d.pageCount)),m=_;for(var p=l-1,y=g,m=g,_=null;p>=-1;--p)_=S(f[p]),(!_||!w(m,_.s))&&y.i=b&&x.s<=b+a}},t.prototype._findTargetItemIndex=function(e){if(!this._showController)return 0;var n,i=this.getContentGroup(),a;return i.eachChild(function(o,s){var u=o.__legendDataIndex;a==null&&u!=null&&(a=s),u===e&&(n=s)}),n!=null?n:a},t.type="legend.scroll",t}(W_);const IP=LP;function PP(r){r.registerAction("legendScroll","legendscroll",function(t,e){var n=t.scrollDataIndex;n!=null&&e.eachComponent({mainType:"legend",subType:"scroll",query:t},function(i){i.setScrollDataIndex(n)})})}function RP(r){Be(U_),r.registerComponentModel(AP),r.registerComponentView(IP),PP(r)}function jR(r){Be(U_),Be(RP)}var EP=function(r){O(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.type="dataZoom.inside",t.defaultOption=hh(ba.defaultOption,{disabled:!1,zoomLock:!1,zoomOnMouseWheel:!0,moveOnMouseMove:!0,moveOnMouseWheel:!1,preventDefaultMouseMove:!0}),t}(ba);const OP=EP;var qh=gt();function kP(r,t,e){qh(r).coordSysRecordMap.each(function(n){var i=n.dataZoomInfoMap.get(t.uid);i&&(i.getRange=e)})}function BP(r,t){for(var e=qh(r).coordSysRecordMap,n=e.keys(),i=0;in[e+t]&&(t=s),i=i&&o.get("preventDefaultMouseMove",!0)}),{controlType:t,opt:{zoomOnMouseWheel:!0,moveOnMouseMove:!0,moveOnMouseWheel:!0,preventDefaultMouseMove:!!i}}}function HP(r){r.registerProcessor(r.PRIORITY.PROCESSOR.FILTER,function(t,e){var n=qh(e),i=n.coordSysRecordMap||(n.coordSysRecordMap=W());i.each(function(a){a.dataZoomInfoMap=null}),t.eachComponent({mainType:"dataZoom",subType:"inside"},function(a){var o=P_(a);C(o.infoList,function(s){var u=s.model.uid,l=i.get(u)||i.set(u,NP(e,s.model)),f=l.dataZoomInfoMap||(l.dataZoomInfoMap=W());f.set(a.uid,{dzReferCoordSysInfo:s,model:a,getRange:null})})}),i.each(function(a){var o=a.controller,s,u=a.dataZoomInfoMap;if(u){var l=u.keys()[0];l!=null&&(s=u.get(l))}if(!s){Y_(i,a);return}var f=GP(u);o.enable(f.controlType,f.opt),o.setPointerChecker(a.containsPoint),Hs(a,"dispatchAction",s.model.get("throttle",!0),"fixRate")})})}var VP=function(r){O(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type="dataZoom.inside",e}return t.prototype.render=function(e,n,i){if(r.prototype.render.apply(this,arguments),e.noTarget()){this._clear();return}this.range=e.getPercentRange(),kP(i,e,{pan:Y(cl.pan,this),zoom:Y(cl.zoom,this),scrollMove:Y(cl.scrollMove,this)})},t.prototype.dispose=function(){this._clear(),r.prototype.dispose.apply(this,arguments)},t.prototype._clear=function(){BP(this.api,this.dataZoomModel),this.range=null},t.type="dataZoom.inside",t}(Uh),cl={zoom:function(r,t,e,n){var i=this.range,a=i.slice(),o=r.axisModels[0];if(!!o){var s=dl[t](null,[n.originX,n.originY],o,e,r),u=(s.signal>0?s.pixelStart+s.pixelLength-s.pixel:s.pixel-s.pixelStart)/s.pixelLength*(a[1]-a[0])+a[0],l=Math.max(1/n.scale,0);a[0]=(a[0]-u)*l+u,a[1]=(a[1]-u)*l+u;var f=this.dataZoomModel.findRepresentativeAxisProxy().getMinMaxSpan();if(Oa(0,a,[0,100],0,f.minSpan,f.maxSpan),this.range=a,i[0]!==a[0]||i[1]!==a[1])return a}},pan:Kp(function(r,t,e,n,i,a){var o=dl[n]([a.oldX,a.oldY],[a.newX,a.newY],t,i,e);return o.signal*(r[1]-r[0])*o.pixel/o.pixelLength}),scrollMove:Kp(function(r,t,e,n,i,a){var o=dl[n]([0,0],[a.scrollDelta,a.scrollDelta],t,i,e);return o.signal*(r[1]-r[0])*a.scrollDelta})};function Kp(r){return function(t,e,n,i){var a=this.range,o=a.slice(),s=t.axisModels[0];if(!!s){var u=r(o,s,t,e,n,i);if(Oa(u,o,[0,100],"all"),this.range=o,a[0]!==o[0]||a[1]!==o[1])return o}}}var dl={grid:function(r,t,e,n,i){var a=e.axis,o={},s=i.model.coordinateSystem.getRect();return r=r||[0,0],a.dim==="x"?(o.pixel=t[0]-r[0],o.pixelLength=s.width,o.pixelStart=s.x,o.signal=a.inverse?1:-1):(o.pixel=t[1]-r[1],o.pixelLength=s.height,o.pixelStart=s.y,o.signal=a.inverse?-1:1),o},polar:function(r,t,e,n,i){var a=e.axis,o={},s=i.model.coordinateSystem,u=s.getRadiusAxis().getExtent(),l=s.getAngleAxis().getExtent();return r=r?s.pointToCoord(r):[0,0],t=s.pointToCoord(t),e.mainType==="radiusAxis"?(o.pixel=t[0]-r[0],o.pixelLength=u[1]-u[0],o.pixelStart=u[0],o.signal=a.inverse?1:-1):(o.pixel=t[1]-r[1],o.pixelLength=l[1]-l[0],o.pixelStart=l[0],o.signal=a.inverse?-1:1),o},singleAxis:function(r,t,e,n,i){var a=e.axis,o=i.model.coordinateSystem.getRect(),s={};return r=r||[0,0],a.orient==="horizontal"?(s.pixel=t[0]-r[0],s.pixelLength=o.width,s.pixelStart=o.x,s.signal=a.inverse?1:-1):(s.pixel=t[1]-r[1],s.pixelLength=o.height,s.pixelStart=o.y,s.signal=a.inverse?-1:1),s}};const WP=VP;function UP(r){Yh(r),r.registerComponentModel(OP),r.registerComponentView(WP),HP(r)}var YP=function(r){O(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.type="dataZoom.slider",t.layoutMode="box",t.defaultOption=hh(ba.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"}}}),t}(ba);const $P=YP;var Oi=yt,Qp=7,ZP=1,pl=30,XP=7,ki="horizontal",Jp="vertical",qP=5,KP=["line","bar","candlestick","scatter"],QP={easing:"cubicOut",duration:100,delay:0},JP=function(r){O(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e._displayables={},e}return t.prototype.init=function(e,n){this.api=n,this._onBrush=Y(this._onBrush,this),this._onBrushEnd=Y(this._onBrushEnd,this)},t.prototype.render=function(e,n,i,a){if(r.prototype.render.apply(this,arguments),Hs(this,"_dispatchZoomAction",e.get("throttle"),"fixRate"),this._orient=e.getOrient(),e.get("show")===!1){this.group.removeAll();return}if(e.noTarget()){this._clear(),this.group.removeAll();return}(!a||a.type!=="dataZoom"||a.from!==this.uid)&&this._buildView(),this._updateView()},t.prototype.dispose=function(){this._clear(),r.prototype.dispose.apply(this,arguments)},t.prototype._clear=function(){rs(this,"_dispatchZoomAction");var e=this.api.getZr();e.off("mousemove",this._onBrush),e.off("mouseup",this._onBrushEnd)},t.prototype._buildView=function(){var e=this.group;e.removeAll(),this._brushing=!1,this._displayables.brushRect=null,this._resetLocation(),this._resetInterval();var n=this._displayables.sliderGroup=new bt;this._renderBackground(),this._renderHandle(),this._renderDataShadow(),e.add(n),this._positionGroup()},t.prototype._resetLocation=function(){var e=this.dataZoomModel,n=this.api,i=e.get("brushSelect"),a=i?XP:0,o=this._findCoordRect(),s={width:n.getWidth(),height:n.getHeight()},u=this._orient===ki?{right:s.width-o.x-o.width,top:s.height-pl-Qp-a,width:o.width,height:pl}:{right:Qp,top:o.y,width:pl,height:o.height},l=Pa(e.option);C(["right","top","width","height"],function(h){l[h]==="ph"&&(l[h]=u[h])});var f=wr(l,s);this._location={x:f.x,y:f.y},this._size=[f.width,f.height],this._orient===Jp&&this._size.reverse()},t.prototype._positionGroup=function(){var e=this.group,n=this._location,i=this._orient,a=this.dataZoomModel.getFirstTargetAxisModel(),o=a&&a.get("inverse"),s=this._displayables.sliderGroup,u=(this._dataShadowInfo||{}).otherAxisInverse;s.attr(i===ki&&!o?{scaleY:u?1:-1,scaleX:1}:i===ki&&o?{scaleY:u?1:-1,scaleX:-1}:i===Jp&&!o?{scaleY:u?-1:1,scaleX:1,rotation:Math.PI/2}:{scaleY:u?-1:1,scaleX:-1,rotation:Math.PI/2});var l=e.getBoundingRect([s]);e.x=n.x-l.x,e.y=n.y-l.y,e.markRedraw()},t.prototype._getViewExtent=function(){return[0,this._size[0]]},t.prototype._renderBackground=function(){var e=this.dataZoomModel,n=this._size,i=this._displayables.sliderGroup,a=e.get("brushSelect");i.add(new Oi({silent:!0,shape:{x:0,y:0,width:n[0],height:n[1]},style:{fill:e.get("backgroundColor")},z2:-40}));var o=new Oi({shape:{x:0,y:0,width:n[0],height:n[1]},style:{fill:"transparent"},z2:0,onclick:Y(this._onClickPanel,this)}),s=this.api.getZr();a?(o.on("mousedown",this._onBrushStart,this),o.cursor="crosshair",s.on("mousemove",this._onBrush),s.on("mouseup",this._onBrushEnd)):(s.off("mousemove",this._onBrush),s.off("mouseup",this._onBrushEnd)),i.add(o)},t.prototype._renderDataShadow=function(){var e=this._dataShadowInfo=this._prepareDataShadowInfo();if(this._displayables.dataShadowSegs=[],!e)return;var n=this._size,i=this._shadowSize||[],a=e.series,o=a.getRawData(),s=a.getShadowDim?a.getShadowDim():e.otherDim;if(s==null)return;var u=this._shadowPolygonPts,l=this._shadowPolylinePts;if(o!==this._shadowData||s!==this._shadowDim||n[0]!==i[0]||n[1]!==i[1]){var f=o.getDataExtent(s),h=(f[1]-f[0])*.3;f=[f[0]-h,f[1]+h];var c=[0,n[1]],v=[0,n[0]],d=[[n[0],0],[0,0]],g=[],p=v[1]/(o.count()-1),y=0,m=Math.round(o.count()/n[0]),_;o.each([s],function(T,M){if(m>0&&M%m){y+=p;return}var D=T==null||isNaN(T)||T==="",A=D?0:Et(T,f,c,!0);D&&!_&&M?(d.push([d[d.length-1][0],0]),g.push([g[g.length-1][0],0])):!D&&_&&(d.push([y,0]),g.push([y,0])),d.push([y,A]),g.push([y,A]),y+=p,_=D}),u=this._shadowPolygonPts=d,l=this._shadowPolylinePts=g}this._shadowData=o,this._shadowDim=s,this._shadowSize=[n[0],n[1]];var S=this.dataZoomModel;function w(T){var M=S.getModel(T?"selectedDataBackground":"dataBackground"),D=new bt,A=new Aa({shape:{points:u},segmentIgnoreThreshold:1,style:M.getModel("areaStyle").getAreaStyle(),silent:!0,z2:-20}),L=new La({shape:{points:l},segmentIgnoreThreshold:1,style:M.getModel("lineStyle").getLineStyle(),silent:!0,z2:-19});return D.add(A),D.add(L),D}for(var x=0;x<3;x++){var b=w(x===1);this._displayables.sliderGroup.add(b),this._displayables.dataShadowSegs.push(b)}},t.prototype._prepareDataShadowInfo=function(){var e=this.dataZoomModel,n=e.get("showDataShadow");if(n!==!1){var i,a=this.ecModel;return e.eachTargetAxis(function(o,s){var u=e.getAxisProxy(o,s).getTargetSeriesModels();C(u,function(l){if(!i&&!(n!==!0&&J(KP,l.get("type"))<0)){var f=a.getComponent(pr(o),s).axis,h=jP(o),c,v=l.coordinateSystem;h!=null&&v.getOtherAxis&&(c=v.getOtherAxis(f).inverse),h=l.getData().mapDimension(h),i={thisAxis:f,series:l,thisDim:o,otherDim:h,otherAxisInverse:c}}},this)},this),i}},t.prototype._renderHandle=function(){var e=this.group,n=this._displayables,i=n.handles=[null,null],a=n.handleLabels=[null,null],o=this._displayables.sliderGroup,s=this._size,u=this.dataZoomModel,l=this.api,f=u.get("borderRadius")||0,h=u.get("brushSelect"),c=n.filler=new Oi({silent:h,style:{fill:u.get("fillerColor")},textConfig:{position:"inside"}});o.add(c),o.add(new Oi({silent:!0,subPixelOptimize:!0,shape:{x:0,y:0,width:s[0],height:s[1],r:f},style:{stroke:u.get("dataBackgroundColor")||u.get("borderColor"),lineWidth:ZP,fill:"rgba(0,0,0,0)"}})),C([0,1],function(_){var S=u.get("handleIcon");!is[S]&&S.indexOf("path://")<0&&S.indexOf("image://")<0&&(S="path://"+S);var w=br(S,-1,0,2,2,null,!0);w.attr({cursor:jp(this._orient),draggable:!0,drift:Y(this._onDragMove,this,_),ondragend:Y(this._onDragEnd,this),onmouseover:Y(this._showDataInfo,this,!0),onmouseout:Y(this._showDataInfo,this,!1),z2:5});var x=w.getBoundingRect(),b=u.get("handleSize");this._handleHeight=Ct(b,this._size[1]),this._handleWidth=x.width/x.height*this._handleHeight,w.setStyle(u.getModel("handleStyle").getItemStyle()),w.style.strokeNoScale=!0,w.rectHover=!0,w.ensureState("emphasis").style=u.getModel(["emphasis","handleStyle"]).getItemStyle(),qo(w);var T=u.get("handleColor");T!=null&&(w.style.fill=T),o.add(i[_]=w);var M=u.getModel("textStyle");e.add(a[_]=new Dt({silent:!0,invisible:!0,style:Qe(M,{x:0,y:0,text:"",verticalAlign:"middle",align:"center",fill:M.getTextColor(),font:M.getFont()}),z2:10}))},this);var v=c;if(h){var d=Ct(u.get("moveHandleSize"),s[1]),g=n.moveHandle=new yt({style:u.getModel("moveHandleStyle").getItemStyle(),silent:!0,shape:{r:[0,0,2,2],y:s[1]-.5,height:d}}),p=d*.8,y=n.moveHandleIcon=br(u.get("moveHandleIcon"),-p/2,-p/2,p,p,"#fff",!0);y.silent=!0,y.y=s[1]+d/2-.5,g.ensureState("emphasis").style=u.getModel(["emphasis","moveHandleStyle"]).getItemStyle();var m=Math.min(s[1]/2,Math.max(d,10));v=n.moveZone=new yt({invisible:!0,shape:{y:s[1]-m,height:d+m}}),v.on("mouseover",function(){l.enterEmphasis(g)}).on("mouseout",function(){l.leaveEmphasis(g)}),o.add(g),o.add(y),o.add(v)}v.attr({draggable:!0,cursor:jp(this._orient),drift:Y(this._onDragMove,this,"all"),ondragstart:Y(this._showDataInfo,this,!0),ondragend:Y(this._onDragEnd,this),onmouseover:Y(this._showDataInfo,this,!0),onmouseout:Y(this._showDataInfo,this,!1)})},t.prototype._resetInterval=function(){var e=this._range=this.dataZoomModel.getPercentRange(),n=this._getViewExtent();this._handleEnds=[Et(e[0],[0,100],n,!0),Et(e[1],[0,100],n,!0)]},t.prototype._updateInterval=function(e,n){var i=this.dataZoomModel,a=this._handleEnds,o=this._getViewExtent(),s=i.findRepresentativeAxisProxy().getMinMaxSpan(),u=[0,100];Oa(n,a,o,i.get("zoomLock")?"all":e,s.minSpan!=null?Et(s.minSpan,u,o,!0):null,s.maxSpan!=null?Et(s.maxSpan,u,o,!0):null);var l=this._range,f=this._range=zi([Et(a[0],o,u,!0),Et(a[1],o,u,!0)]);return!l||l[0]!==f[0]||l[1]!==f[1]},t.prototype._updateView=function(e){var n=this._displayables,i=this._handleEnds,a=zi(i.slice()),o=this._size;C([0,1],function(v){var d=n.handles[v],g=this._handleHeight;d.attr({scaleX:g/2,scaleY:g/2,x:i[v]+(v?-1:1),y:o[1]/2-g/2})},this),n.filler.setShape({x:a[0],y:0,width:a[1]-a[0],height:o[1]});var s={x:a[0],width:a[1]-a[0]};n.moveHandle&&(n.moveHandle.setShape(s),n.moveZone.setShape(s),n.moveZone.getBoundingRect(),n.moveHandleIcon&&n.moveHandleIcon.attr("x",s.x+s.width/2));for(var u=n.dataShadowSegs,l=[0,a[0],a[1],o[0]],f=0;fn[0]||i[1]<0||i[1]>n[1])){var a=this._handleEnds,o=(a[0]+a[1])/2,s=this._updateInterval("all",i[0]-o);this._updateView(),s&&this._dispatchZoomAction(!1)}},t.prototype._onBrushStart=function(e){var n=e.offsetX,i=e.offsetY;this._brushStart=new Z(n,i),this._brushing=!0,this._brushStartTime=+new Date},t.prototype._onBrushEnd=function(e){if(!!this._brushing){var n=this._displayables.brushRect;if(this._brushing=!1,!!n){n.attr("ignore",!0);var i=n.shape,a=+new Date;if(!(a-this._brushStartTime<200&&Math.abs(i.width)<5)){var o=this._getViewExtent(),s=[0,100];this._range=zi([Et(i.x,o,s,!0),Et(i.x+i.width,o,s,!0)]),this._handleEnds=[i.x,i.x+i.width],this._updateView(),this._dispatchZoomAction(!1)}}}},t.prototype._onBrush=function(e){this._brushing&&(Jn(e.event),this._updateBrushRect(e.offsetX,e.offsetY))},t.prototype._updateBrushRect=function(e,n){var i=this._displayables,a=this.dataZoomModel,o=i.brushRect;o||(o=i.brushRect=new Oi({silent:!0,style:a.getModel("brushStyle").getItemStyle()}),i.sliderGroup.add(o)),o.attr("ignore",!1);var s=this._brushStart,u=this._displayables.sliderGroup,l=u.transformCoordToLocal(e,n),f=u.transformCoordToLocal(s.x,s.y),h=this._size;l[0]=Math.max(Math.min(h[0],l[0]),0),o.setShape({x:f[0],y:0,width:l[0]-f[0],height:h[1]})},t.prototype._dispatchZoomAction=function(e){var n=this._range;this.api.dispatchAction({type:"dataZoom",from:this.uid,dataZoomId:this.dataZoomModel.id,animation:e?QP:null,start:n[0],end:n[1]})},t.prototype._findCoordRect=function(){var e,n=P_(this.dataZoomModel).infoList;if(!e&&n.length){var i=n[0].model.coordinateSystem;e=i.getRect&&i.getRect()}if(!e){var a=this.api.getWidth(),o=this.api.getHeight();e={x:a*.2,y:o*.2,width:a*.6,height:o*.6}}return e},t.type="dataZoom.slider",t}(Uh);function jP(r){var t={x:"y",y:"x",radius:"angle",angle:"radius"};return t[r]}function jp(r){return r==="vertical"?"ns-resize":"ew-resize"}const tR=JP;function eR(r){r.registerComponentModel($P),r.registerComponentView(tR),Yh(r)}function tE(r){Be(UP),Be(eR)}var tg={value:"eq","<":"lt","<=":"lte",">":"gt",">=":"gte","=":"eq","!=":"ne","<>":"ne"},rR=function(){function r(t){var e=this._condVal=G(t)?new RegExp(t):p1(t)?t:null;if(e==null){var n="";et(n)}}return r.prototype.evaluate=function(t){var e=typeof t;return G(e)?this._condVal.test(t):ft(e)?this._condVal.test(t+""):!1},r}(),nR=function(){function r(){}return r.prototype.evaluate=function(){return this.value},r}(),iR=function(){function r(){}return r.prototype.evaluate=function(){for(var t=this.children,e=0;e2&&n.push(i),i=[I,P]}function f(I,P,E,R){Un(I,E)&&Un(P,R)||i.push(I,P,E,R,E,R)}function h(I,P,E,R,V,F){var B=Math.abs(P-I),$=Math.tan(B/4)*4/3,it=PT:A2&&n.push(i),n}function kf(r,t,e,n,i,a,o,s,u,l){if(Un(r,e)&&Un(t,n)&&Un(i,o)&&Un(a,s)){u.push(o,s);return}var f=2/l,h=f*f,c=o-r,v=s-t,d=Math.sqrt(c*c+v*v);c/=d,v/=d;var g=e-r,p=n-t,y=i-o,m=a-s,_=g*g+p*p,S=y*y+m*m;if(_=0&&T=0){u.push(o,s);return}var M=[],D=[];Sr(r,e,i,o,.5,M),Sr(t,n,a,s,.5,D),kf(M[0],D[0],M[1],D[1],M[2],D[2],M[3],D[3],u,l),kf(M[4],D[4],M[5],D[5],M[6],D[6],M[7],D[7],u,l)}function gR(r,t){var e=Of(r),n=[];t=t||1;for(var i=0;i0)for(var l=0;lMath.abs(l),h=Z_([u,l],f?0:1,t),c=(f?s:l)/h.length,v=0;vi,o=Z_([n,i],a?0:1,t),s=a?"width":"height",u=a?"height":"width",l=a?"x":"y",f=a?"y":"x",h=r[s]/o.length,c=0;c1?null:new Z(g*u+r,g*l+t)}function _R(r,t,e){var n=new Z;Z.sub(n,e,t),n.normalize();var i=new Z;Z.sub(i,r,t);var a=i.dot(n);return a}function En(r,t){var e=r[r.length-1];e&&e[0]===t[0]&&e[1]===t[1]||r.push(t)}function SR(r,t,e){for(var n=r.length,i=[],a=0;ao?(l.x=f.x=s+a/2,l.y=u,f.y=u+o):(l.y=f.y=u+o/2,l.x=s,f.x=s+a),SR(t,l,f)}function fs(r,t,e,n){if(e===1)n.push(t);else{var i=Math.floor(e/2),a=r(t);fs(r,a[0],i,n),fs(r,a[1],e-i,n)}return n}function xR(r,t){for(var e=[],n=0;n0)for(var w=n/e,x=-n/2;x<=n/2;x+=w){for(var b=Math.sin(x),T=Math.cos(x),M=0,_=0;_0;l/=2){var f=0,h=0;(r&l)>0&&(f=1),(t&l)>0&&(h=1),s+=l*l*(3*f^h),h===0&&(f===1&&(r=l-1-r,t=l-1-t),u=r,r=t,t=u)}return s}function cs(r){var t=1/0,e=1/0,n=-1/0,i=-1/0,a=z(r,function(s){var u=s.getBoundingRect(),l=s.getComputedTransform(),f=u.x+u.width/2+(l?l[4]:0),h=u.y+u.height/2+(l?l[5]:0);return t=Math.min(f,t),e=Math.min(h,e),n=Math.max(f,n),i=Math.max(h,i),[f,h]}),o=z(a,function(s,u){return{cp:s,z:IR(s[0],s[1],t,e,n,i),path:r[u]}});return o.sort(function(s,u){return s.z-u.z}).map(function(s){return s.path})}function K_(r){return TR(r.path,r.count)}function Bf(){return{fromIndividuals:[],toIndividuals:[],count:0}}function PR(r,t,e){var n=[];function i(w){for(var x=0;x=0;i--)if(!e[i].many.length){var u=e[s].many;if(u.length<=1)if(s)s=0;else return e;var a=u.length,l=Math.ceil(a/2);e[i].many=u.slice(l,a),e[s].many=u.slice(0,l),s++}return e}var ER={clone:function(r){for(var t=[],e=1-Math.pow(1-r.path.style.opacity,1/r.count),n=0;n0))return;var s=n.getModel("universalTransition").get("delay"),u=Object.assign({setToFinal:!0},o),l,f;ug(r)&&(l=r,f=t),ug(t)&&(l=t,f=r);function h(y,m,_,S,w){var x=y.many,b=y.one;if(x.length===1&&!w){var T=m?x[0]:b,M=m?b:x[0];if(hs(T))h({many:[T],one:M},!0,_,S,!0);else{var D=s?q({delay:s(_,S)},u):u;Qh(T,M,D),a(T,M,T,M,D)}}else for(var A=q({dividePath:ER[e],individualDelay:s&&function(V,F,B,$){return s(V+_,S)}},u),L=m?PR(x,b,A):RR(b,x,A),I=L.fromIndividuals,P=L.toIndividuals,E=I.length,R=0;Rt.length,v=l?lg(f,l):lg(c?t:r,[c?r:t]),d=0,g=0;gQ_))for(var i=n.getIndices(),a=kR(n),o=0;o0&&S.group.traverse(function(x){x instanceof rt&&!x.animators.length&&x.animateFrom({style:{opacity:0}},w)})})}function hg(r){var t=r.getModel("universalTransition").get("seriesKey");return t||r.id}function vg(r){return N(r)?r.sort().join(","):r}function hr(r){if(r.hostModel)return r.hostModel.getModel("universalTransition").get("divideShape")}function FR(r,t){var e=W(),n=W(),i=W();return C(r.oldSeries,function(a,o){var s=r.oldData[o],u=hg(a),l=vg(u);n.set(l,s),N(u)&&C(u,function(f){i.set(f,{data:s,key:l})})}),C(t.updatedSeries,function(a){if(a.isUniversalTransitionEnabled()&&a.isAnimationEnabled()){var o=a.getData(),s=hg(a),u=vg(s),l=n.get(u);if(l)e.set(u,{oldSeries:[{divide:hr(l),data:l}],newSeries:[{divide:hr(o),data:o}]});else if(N(s)){var f=[];C(s,function(v){var d=n.get(v);d&&f.push({divide:hr(d),data:d})}),f.length&&e.set(u,{oldSeries:f,newSeries:[{data:o,divide:hr(o)}]})}else{var h=i.get(s);if(h){var c=e.get(h.key);c||(c={oldSeries:[{data:h.data,divide:hr(h.data)}],newSeries:[]},e.set(h.key,c)),c.newSeries.push({data:o,divide:hr(o)})}}}}),e}function cg(r,t){for(var e=0;e=0&&i.push({data:t.oldData[s],divide:hr(t.oldData[s]),dim:o.dimension})}),C(_t(r.to),function(o){var s=cg(e.updatedSeries,o);if(s>=0){var u=e.updatedSeries[s].getData();a.push({data:u,divide:hr(u),dim:o.dimension})}}),i.length>0&&a.length>0&&J_(i,a,n)}function nE(r){r.registerUpdateLifecycle("series:beforeupdate",function(t,e,n){C(_t(n.seriesTransition),function(i){C(_t(i.to),function(a){for(var o=n.updatedSeries,s=0;s=s)}}for(var h=this.__startIndex;h15)break}}P.prevElClipPaths&&y.restore()};if(m)if(m.length===0)T=p.__endIndex;else for(var D=v.dpr,A=0;A0&&t>i[0]){for(u=0;ut);u++);s=n[i[u]]}if(i.splice(u+1,0,t),n[t]=e,!e.virtual)if(s){var l=s.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=this}},r.prototype.eachLayer=function(t,e){for(var n=this._zlevelList,i=0;i0?So:0),this._needsManuallyCompositing),f.__builtin__||Gf("ZLevel "+l+" has been used by unkown layer "+f.id),f!==a&&(f.__used=!0,f.__startIndex!==u&&(f.__dirty=!0),f.__startIndex=u,f.incremental?f.__drawIndex=-1:f.__drawIndex=u,e(u),a=f),i.__dirty&Qt&&!i.__inHover&&(f.__dirty=!0,f.incremental&&f.__drawIndex<0&&(f.__drawIndex=u))}e(u),this.eachBuiltinLayer(function(h,c){!h.__used&&h.getElementCount()>0&&(h.__dirty=!0,h.__startIndex=h.__endIndex=h.__drawIndex=0),h.__dirty&&h.__drawIndex<0&&(h.__drawIndex=h.__startIndex)})},r.prototype.clear=function(){return this.eachBuiltinLayer(this._clearLayer),this},r.prototype._clearLayer=function(t){t.clear()},r.prototype.setBackgroundColor=function(t){this._backgroundColor=t,C(this._layers,function(e){e.setUnpainted()})},r.prototype.configLayer=function(t,e){if(e){var n=this._layerConfig;n[t]?Q(n[t],e,!0):n[t]=e;for(var i=0;i"u"&&typeof self<"u"?hr.worker=!0:!hr.hasGlobalWindow||"Deno"in window?(hr.node=!0,hr.svgSupported=!0):v1(navigator.userAgent,hr);function v1(r,t){var e=t.browser,n=r.match(/Firefox\/([\d.]+)/),i=r.match(/MSIE\s([\d.]+)/)||r.match(/Trident\/.+?rv:(([\d.]+))/),a=r.match(/Edge?\/([\d.]+)/),o=/micromessenger/i.test(r);n&&(e.firefox=!0,e.version=n[1]),i&&(e.ie=!0,e.version=i[1]),a&&(e.edge=!0,e.version=a[1],e.newEdge=+a[1].split(".")[0]>18),o&&(e.weChat=!0),t.svgSupported=typeof SVGRect<"u",t.touchEventsSupported="ontouchstart"in window&&!e.ie&&!e.edge,t.pointerEventsSupported="onpointerdown"in window&&(e.edge||e.ie&&+e.version>=11),t.domSupported=typeof document<"u";var s=document.documentElement.style;t.transform3dSupported=(e.ie&&"transition"in s||e.edge||"WebKitCSSMatrix"in window&&"m11"in new WebKitCSSMatrix||"MozPerspective"in s)&&!("OTransition"in s),t.transformSupported=t.transform3dSupported||e.ie&&+e.version>=9}const J=hr;var Vf=12,c1="sans-serif",un=Vf+"px "+c1,d1=20,p1=100,g1="007LLmW'55;N0500LLLLLLLLLL00NNNLzWW\\\\WQb\\0FWLg\\bWb\\WQ\\WrWWQ000CL5LLFLL0LL**F*gLLLL5F0LF\\FFF5.5N";function y1(r){var t={};if(typeof JSON>"u")return t;for(var e=0;e=0)s=o*e.length;else for(var u=0;u>1)%2;s.cssText=["position: absolute","visibility: hidden","padding: 0","margin: 0","border-width: 0","user-select: none","width:0","height:0",n[u]+":0",i[l]+":0",n[1-u]+":auto",i[1-l]+":auto",""].join("!important;"),r.appendChild(o),e.push(o)}return e}function U1(r,t,e){for(var n=e?"invTrans":"trans",i=t[n],a=t.srcCoords,o=[],s=[],u=!0,l=0;l<4;l++){var f=r[l].getBoundingClientRect(),h=2*l,c=f.left,v=f.top;o.push(c,v),u=u&&a&&c===a[h]&&v===a[h+1],s.push(r[l].offsetLeft,r[l].offsetTop)}return u&&i?i:(t.srcCoords=o,t[n]=e?uv(s,o):uv(o,s))}function Pg(r){return r.nodeName.toUpperCase()==="CANVAS"}var Y1=/([&<>"'])/g,$1={"&":"&","<":"<",">":">",'"':""","'":"'"};function Yt(r){return r==null?"":(r+"").replace(Y1,function(t,e){return $1[e]})}var Z1=/^(?:mouse|pointer|contextmenu|drag|drop)|click/,Js=[],X1=J.browser.firefox&&+J.browser.version.split(".")[0]<39;function Il(r,t,e,n){return e=e||{},n?fv(r,t,e):X1&&t.layerX!=null&&t.layerX!==t.offsetX?(e.zrX=t.layerX,e.zrY=t.layerY):t.offsetX!=null?(e.zrX=t.offsetX,e.zrY=t.offsetY):fv(r,t,e),e}function fv(r,t,e){if(J.domSupported&&r.getBoundingClientRect){var n=t.clientX,i=t.clientY;if(Pg(r)){var a=r.getBoundingClientRect();e.zrX=n-a.left,e.zrY=i-a.top;return}else if(Ll(Js,r,n,i)){e.zrX=Js[0],e.zrY=Js[1];return}}e.zrX=e.zrY=0}function Zf(r){return r||window.event}function ie(r,t,e){if(t=Zf(t),t.zrX!=null)return t;var n=t.type,i=n&&n.indexOf("touch")>=0;if(i){var o=n!=="touchend"?t.targetTouches[0]:t.changedTouches[0];o&&Il(r,o,t,e)}else{Il(r,t,t,e);var a=q1(t);t.zrDelta=a?a/120:-(t.detail||0)/3}var s=t.button;return t.which==null&&s!==void 0&&Z1.test(t.type)&&(t.which=s&1?1:s&2?3:s&4?2:0),t}function q1(r){var t=r.wheelDelta;if(t)return t;var e=r.deltaX,n=r.deltaY;if(e==null||n==null)return t;var i=Math.abs(n!==0?n:e),a=n>0?-1:n<0?1:e>0?-1:1;return 3*i*a}function Pl(r,t,e,n){r.addEventListener(t,e,n)}function K1(r,t,e,n){r.removeEventListener(t,e,n)}var ni=function(r){r.preventDefault(),r.stopPropagation(),r.cancelBubble=!0};function hv(r){return r.which===2||r.which===3}var Q1=function(){function r(){this._track=[]}return r.prototype.recognize=function(t,e,n){return this._doTrack(t,e,n),this._recognize(t)},r.prototype.clear=function(){return this._track.length=0,this},r.prototype._doTrack=function(t,e,n){var i=t.touches;if(!!i){for(var a={points:[],touches:[],target:e,event:t},o=0,s=i.length;o1&&n&&n.length>1){var a=vv(n)/vv(i);!isFinite(a)&&(a=1),t.pinchScale=a;var o=J1(n);return t.pinchX=o[0],t.pinchY=o[1],{type:"pinch",target:r[0].target,event:t}}}}};function Xn(){return[1,0,0,1,0,0]}function Xf(r){return r[0]=1,r[1]=0,r[2]=0,r[3]=1,r[4]=0,r[5]=0,r}function j1(r,t){return r[0]=t[0],r[1]=t[1],r[2]=t[2],r[3]=t[3],r[4]=t[4],r[5]=t[5],r}function qn(r,t,e){var n=t[0]*e[0]+t[2]*e[1],i=t[1]*e[0]+t[3]*e[1],a=t[0]*e[2]+t[2]*e[3],o=t[1]*e[2]+t[3]*e[3],s=t[0]*e[4]+t[2]*e[5]+t[4],u=t[1]*e[4]+t[3]*e[5]+t[5];return r[0]=n,r[1]=i,r[2]=a,r[3]=o,r[4]=s,r[5]=u,r}function Rl(r,t,e){return r[0]=t[0],r[1]=t[1],r[2]=t[2],r[3]=t[3],r[4]=t[4]+e[0],r[5]=t[5]+e[1],r}function qf(r,t,e,n){n===void 0&&(n=[0,0]);var i=t[0],a=t[2],o=t[4],s=t[1],u=t[3],l=t[5],f=Math.sin(e),h=Math.cos(e);return r[0]=i*h+s*f,r[1]=-i*f+s*h,r[2]=a*h+u*f,r[3]=-a*f+h*u,r[4]=h*(o-n[0])+f*(l-n[1])+n[0],r[5]=h*(l-n[1])-f*(o-n[0])+n[1],r}function tS(r,t,e){var n=e[0],i=e[1];return r[0]=t[0]*n,r[1]=t[1]*i,r[2]=t[2]*n,r[3]=t[3]*i,r[4]=t[4]*n,r[5]=t[5]*i,r}function Ss(r,t){var e=t[0],n=t[2],i=t[4],a=t[1],o=t[3],s=t[5],u=e*o-a*n;return u?(u=1/u,r[0]=o*u,r[1]=-a*u,r[2]=-n*u,r[3]=e*u,r[4]=(n*s-o*i)*u,r[5]=(a*i-e*s)*u,r):null}var eS=function(){function r(t,e){this.x=t||0,this.y=e||0}return r.prototype.copy=function(t){return this.x=t.x,this.y=t.y,this},r.prototype.clone=function(){return new r(this.x,this.y)},r.prototype.set=function(t,e){return this.x=t,this.y=e,this},r.prototype.equal=function(t){return t.x===this.x&&t.y===this.y},r.prototype.add=function(t){return this.x+=t.x,this.y+=t.y,this},r.prototype.scale=function(t){this.x*=t,this.y*=t},r.prototype.scaleAndAdd=function(t,e){this.x+=t.x*e,this.y+=t.y*e},r.prototype.sub=function(t){return this.x-=t.x,this.y-=t.y,this},r.prototype.dot=function(t){return this.x*t.x+this.y*t.y},r.prototype.len=function(){return Math.sqrt(this.x*this.x+this.y*this.y)},r.prototype.lenSquare=function(){return this.x*this.x+this.y*this.y},r.prototype.normalize=function(){var t=this.len();return this.x/=t,this.y/=t,this},r.prototype.distance=function(t){var e=this.x-t.x,n=this.y-t.y;return Math.sqrt(e*e+n*n)},r.prototype.distanceSquare=function(t){var e=this.x-t.x,n=this.y-t.y;return e*e+n*n},r.prototype.negate=function(){return this.x=-this.x,this.y=-this.y,this},r.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}},r.prototype.toArray=function(t){return t[0]=this.x,t[1]=this.y,t},r.prototype.fromArray=function(t){this.x=t[0],this.y=t[1]},r.set=function(t,e,n){t.x=e,t.y=n},r.copy=function(t,e){t.x=e.x,t.y=e.y},r.len=function(t){return Math.sqrt(t.x*t.x+t.y*t.y)},r.lenSquare=function(t){return t.x*t.x+t.y*t.y},r.dot=function(t,e){return t.x*e.x+t.y*e.y},r.add=function(t,e,n){t.x=e.x+n.x,t.y=e.y+n.y},r.sub=function(t,e,n){t.x=e.x-n.x,t.y=e.y-n.y},r.scale=function(t,e,n){t.x=e.x*n,t.y=e.y*n},r.scaleAndAdd=function(t,e,n,i){t.x=e.x+n.x*i,t.y=e.y+n.y*i},r.lerp=function(t,e,n,i){var a=1-i;t.x=a*e.x+i*n.x,t.y=a*e.y+i*n.y},r}();const Z=eS;var Ha=Math.min,Va=Math.max,Dr=new Z,Ar=new Z,Lr=new Z,Ir=new Z,yi=new Z,mi=new Z,rS=function(){function r(t,e,n,i){n<0&&(t=t+n,n=-n),i<0&&(e=e+i,i=-i),this.x=t,this.y=e,this.width=n,this.height=i}return r.prototype.union=function(t){var e=Ha(t.x,this.x),n=Ha(t.y,this.y);isFinite(this.x)&&isFinite(this.width)?this.width=Va(t.x+t.width,this.x+this.width)-e:this.width=t.width,isFinite(this.y)&&isFinite(this.height)?this.height=Va(t.y+t.height,this.y+this.height)-n:this.height=t.height,this.x=e,this.y=n},r.prototype.applyTransform=function(t){r.applyTransform(this,this,t)},r.prototype.calculateTransform=function(t){var e=this,n=t.width/e.width,i=t.height/e.height,a=Xn();return Rl(a,a,[-e.x,-e.y]),tS(a,a,[n,i]),Rl(a,a,[t.x,t.y]),a},r.prototype.intersect=function(t,e){if(!t)return!1;t instanceof r||(t=r.create(t));var n=this,i=n.x,a=n.x+n.width,o=n.y,s=n.y+n.height,u=t.x,l=t.x+t.width,f=t.y,h=t.y+t.height,c=!(ad&&(d=_,pd&&(d=S,y=n.x&&t<=n.x+n.width&&e>=n.y&&e<=n.y+n.height},r.prototype.clone=function(){return new r(this.x,this.y,this.width,this.height)},r.prototype.copy=function(t){r.copy(this,t)},r.prototype.plain=function(){return{x:this.x,y:this.y,width:this.width,height:this.height}},r.prototype.isFinite=function(){return isFinite(this.x)&&isFinite(this.y)&&isFinite(this.width)&&isFinite(this.height)},r.prototype.isZero=function(){return this.width===0||this.height===0},r.create=function(t){return new r(t.x,t.y,t.width,t.height)},r.copy=function(t,e){t.x=e.x,t.y=e.y,t.width=e.width,t.height=e.height},r.applyTransform=function(t,e,n){if(!n){t!==e&&r.copy(t,e);return}if(n[1]<1e-5&&n[1]>-1e-5&&n[2]<1e-5&&n[2]>-1e-5){var i=n[0],a=n[3],o=n[4],s=n[5];t.x=e.x*i+o,t.y=e.y*a+s,t.width=e.width*i,t.height=e.height*a,t.width<0&&(t.x+=t.width,t.width=-t.width),t.height<0&&(t.y+=t.height,t.height=-t.height);return}Dr.x=Lr.x=e.x,Dr.y=Ir.y=e.y,Ar.x=Ir.x=e.x+e.width,Ar.y=Lr.y=e.y+e.height,Dr.transform(n),Ir.transform(n),Ar.transform(n),Lr.transform(n),t.x=Ha(Dr.x,Ar.x,Lr.x,Ir.x),t.y=Ha(Dr.y,Ar.y,Lr.y,Ir.y);var u=Va(Dr.x,Ar.x,Lr.x,Ir.x),l=Va(Dr.y,Ar.y,Lr.y,Ir.y);t.width=u-t.x,t.height=l-t.y},r}();const rt=rS;var Rg="silent";function nS(r,t,e){return{type:r,event:e,target:t.target,topTarget:t.topTarget,cancelBubble:!1,offsetX:e.zrX,offsetY:e.zrY,gestureEvent:e.gestureEvent,pinchX:e.pinchX,pinchY:e.pinchY,pinchScale:e.pinchScale,wheelDelta:e.zrDelta,zrByTouch:e.zrByTouch,which:e.which,stop:iS}}function iS(){ni(this.event)}var aS=function(r){O(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.handler=null,e}return t.prototype.dispose=function(){},t.prototype.setCursor=function(){},t}(ve),_i=function(){function r(t,e){this.x=t,this.y=e}return r}(),oS=["click","dblclick","mousewheel","mouseout","mouseup","mousedown","mousemove","contextmenu"],tu=new rt(0,0,0,0),Eg=function(r){O(t,r);function t(e,n,i,a,o){var s=r.call(this)||this;return s._hovered=new _i(0,0),s.storage=e,s.painter=n,s.painterRoot=a,s._pointerSize=o,i=i||new aS,s.proxy=null,s.setHandlerProxy(i),s._draggingMgr=new z1(s),s}return t.prototype.setHandlerProxy=function(e){this.proxy&&this.proxy.dispose(),e&&(M(oS,function(n){e.on&&e.on(n,this[n],this)},this),e.handler=this),this.proxy=e},t.prototype.mousemove=function(e){var n=e.zrX,i=e.zrY,a=Og(this,n,i),o=this._hovered,s=o.target;s&&!s.__zr&&(o=this.findHover(o.x,o.y),s=o.target);var u=this._hovered=a?new _i(n,i):this.findHover(n,i),l=u.target,f=this.proxy;f.setCursor&&f.setCursor(l?l.cursor:"default"),s&&l!==s&&this.dispatchToElement(o,"mouseout",e),this.dispatchToElement(u,"mousemove",e),l&&l!==s&&this.dispatchToElement(u,"mouseover",e)},t.prototype.mouseout=function(e){var n=e.zrEventControl;n!=="only_globalout"&&this.dispatchToElement(this._hovered,"mouseout",e),n!=="no_globalout"&&this.trigger("globalout",{type:"globalout",event:e})},t.prototype.resize=function(){this._hovered=new _i(0,0)},t.prototype.dispatch=function(e,n){var i=this[e];i&&i.call(this,n)},t.prototype.dispose=function(){this.proxy.dispose(),this.storage=null,this.proxy=null,this.painter=null},t.prototype.setCursorStyle=function(e){var n=this.proxy;n.setCursor&&n.setCursor(e)},t.prototype.dispatchToElement=function(e,n,i){e=e||{};var a=e.target;if(!(a&&a.silent)){for(var o="on"+n,s=nS(n,e,i);a&&(a[o]&&(s.cancelBubble=!!a[o].call(a,s)),a.trigger(n,s),a=a.__hostTarget?a.__hostTarget:a.parent,!s.cancelBubble););s.cancelBubble||(this.trigger(n,s),this.painter&&this.painter.eachOtherLayer&&this.painter.eachOtherLayer(function(u){typeof u[o]=="function"&&u[o].call(u,s),u.trigger&&u.trigger(n,s)}))}},t.prototype.findHover=function(e,n,i){var a=this.storage.getDisplayList(),o=new _i(e,n);if(cv(a,o,e,n,i),this._pointerSize&&!o.target){for(var s=[],u=this._pointerSize,l=u/2,f=new rt(e-l,n-l,u,u),h=a.length-1;h>=0;h--){var c=a[h];c!==i&&!c.ignore&&!c.ignoreCoarsePointer&&(!c.parent||!c.parent.ignoreCoarsePointer)&&(tu.copy(c.getBoundingRect()),c.transform&&tu.applyTransform(c.transform),tu.intersect(f)&&s.push(c))}if(s.length)for(var v=4,d=Math.PI/12,p=Math.PI*2,g=0;g4)return;this._downPoint=null}this.dispatchToElement(a,r,t)}});function sS(r,t,e){if(r[r.rectHover?"rectContain":"contain"](t,e)){for(var n=r,i=void 0,a=!1;n;){if(n.ignoreClip&&(a=!0),!a){var o=n.getClipPath();if(o&&!o.contain(t,e))return!1}n.silent&&(i=!0);var s=n.__hostTarget;n=s||n.parent}return i?Rg:!0}return!1}function cv(r,t,e,n,i){for(var a=r.length-1;a>=0;a--){var o=r[a],s=void 0;if(o!==i&&!o.ignore&&(s=sS(o,e,n))&&(!t.topTarget&&(t.topTarget=o),s!==Rg)){t.target=o;break}}}function Og(r,t,e){var n=r.painter;return t<0||t>n.getWidth()||e<0||e>n.getHeight()}const uS=Eg;var kg=32,Si=7;function lS(r){for(var t=0;r>=kg;)t|=r&1,r>>=1;return r+t}function dv(r,t,e,n){var i=t+1;if(i===e)return 1;if(n(r[i++],r[t])<0){for(;i=0;)i++;return i-t}function fS(r,t,e){for(e--;t>>1,i(a,r[u])<0?s=u:o=u+1;var l=n-o;switch(l){case 3:r[o+3]=r[o+2];case 2:r[o+2]=r[o+1];case 1:r[o+1]=r[o];break;default:for(;l>0;)r[o+l]=r[o+l-1],l--}r[o]=a}}function eu(r,t,e,n,i,a){var o=0,s=0,u=1;if(a(r,t[e+i])>0){for(s=n-i;u0;)o=u,u=(u<<1)+1,u<=0&&(u=s);u>s&&(u=s),o+=i,u+=i}else{for(s=i+1;us&&(u=s);var l=o;o=i-u,u=i-l}for(o++;o>>1);a(r,t[e+f])>0?o=f+1:u=f}return u}function ru(r,t,e,n,i,a){var o=0,s=0,u=1;if(a(r,t[e+i])<0){for(s=i+1;us&&(u=s);var l=o;o=i-u,u=i-l}else{for(s=n-i;u=0;)o=u,u=(u<<1)+1,u<=0&&(u=s);u>s&&(u=s),o+=i,u+=i}for(o++;o>>1);a(r,t[e+f])<0?u=f:o=f+1}return u}function hS(r,t){var e=Si,n,i,a=0,o=[];n=[],i=[];function s(v,d){n[a]=v,i[a]=d,a+=1}function u(){for(;a>1;){var v=a-2;if(v>=1&&i[v-1]<=i[v]+i[v+1]||v>=2&&i[v-2]<=i[v]+i[v-1])i[v-1]i[v+1])break;f(v)}}function l(){for(;a>1;){var v=a-2;v>0&&i[v-1]=Si||b>=Si);if(C)break;w<0&&(w=0),w+=2}if(e=w,e<1&&(e=1),d===1){for(y=0;y=0;y--)r[x+y]=r[w+y];r[S]=o[_];return}for(var b=e;;){var C=0,T=0,D=!1;do if(t(o[_],r[m])<0){if(r[S--]=r[m--],C++,T=0,--d===0){D=!0;break}}else if(r[S--]=o[_--],T++,C=0,--g===1){D=!0;break}while((C|T)=0;y--)r[x+y]=r[w+y];if(d===0){D=!0;break}}if(r[S--]=o[_--],--g===1){D=!0;break}if(T=g-eu(r[m],o,0,g,g-1,t),T!==0){for(S-=T,_-=T,g-=T,x=S+1,w=_+1,y=0;y=Si||T>=Si);if(D)break;b<0&&(b=0),b+=2}if(e=b,e<1&&(e=1),g===1){for(S-=d,m-=d,x=S+1,w=m+1,y=d-1;y>=0;y--)r[x+y]=r[w+y];r[S]=o[_]}else{if(g===0)throw new Error;for(w=S-(g-1),y=0;ys&&(u=s),pv(r,e,e+u,e+a,t),a=u}o.pushRun(e,a),o.mergeRuns(),i-=a,e+=a}while(i!==0);o.forceMergeRuns()}}var jt=1,Vi=2,Nn=4,gv=!1;function nu(){gv||(gv=!0,console.warn("z / z2 / zlevel of displayable is invalid, which may cause unexpected errors"))}function yv(r,t){return r.zlevel===t.zlevel?r.z===t.z?r.z2-t.z2:r.z-t.z:r.zlevel-t.zlevel}var vS=function(){function r(){this._roots=[],this._displayList=[],this._displayListLen=0,this.displayableSortFunc=yv}return r.prototype.traverse=function(t,e){for(var n=0;n0&&(f.__clipPaths=[]),isNaN(f.z)&&(nu(),f.z=0),isNaN(f.z2)&&(nu(),f.z2=0),isNaN(f.zlevel)&&(nu(),f.zlevel=0),this._displayList[this._displayListLen++]=f}var h=t.getDecalElement&&t.getDecalElement();h&&this._updateAndAddDisplayable(h,e,n);var c=t.getTextGuideLine();c&&this._updateAndAddDisplayable(c,e,n);var v=t.getTextContent();v&&this._updateAndAddDisplayable(v,e,n)}},r.prototype.addRoot=function(t){t.__zr&&t.__zr.storage===this||this._roots.push(t)},r.prototype.delRoot=function(t){if(t instanceof Array){for(var e=0,n=t.length;e=0&&this._roots.splice(i,1)},r.prototype.delAllRoots=function(){this._roots=[],this._displayList=[],this._displayListLen=0},r.prototype.getRoots=function(){return this._roots},r.prototype.dispose=function(){this._displayList=null,this._roots=null},r}();const cS=vS;var Bg;Bg=J.hasGlobalWindow&&(window.requestAnimationFrame&&window.requestAnimationFrame.bind(window)||window.msRequestAnimationFrame&&window.msRequestAnimationFrame.bind(window)||window.mozRequestAnimationFrame||window.webkitRequestAnimationFrame)||function(r){return setTimeout(r,16)};const El=Bg;var Ao={linear:function(r){return r},quadraticIn:function(r){return r*r},quadraticOut:function(r){return r*(2-r)},quadraticInOut:function(r){return(r*=2)<1?.5*r*r:-.5*(--r*(r-2)-1)},cubicIn:function(r){return r*r*r},cubicOut:function(r){return--r*r*r+1},cubicInOut:function(r){return(r*=2)<1?.5*r*r*r:.5*((r-=2)*r*r+2)},quarticIn:function(r){return r*r*r*r},quarticOut:function(r){return 1- --r*r*r*r},quarticInOut:function(r){return(r*=2)<1?.5*r*r*r*r:-.5*((r-=2)*r*r*r-2)},quinticIn:function(r){return r*r*r*r*r},quinticOut:function(r){return--r*r*r*r*r+1},quinticInOut:function(r){return(r*=2)<1?.5*r*r*r*r*r:.5*((r-=2)*r*r*r*r+2)},sinusoidalIn:function(r){return 1-Math.cos(r*Math.PI/2)},sinusoidalOut:function(r){return Math.sin(r*Math.PI/2)},sinusoidalInOut:function(r){return .5*(1-Math.cos(Math.PI*r))},exponentialIn:function(r){return r===0?0:Math.pow(1024,r-1)},exponentialOut:function(r){return r===1?1:1-Math.pow(2,-10*r)},exponentialInOut:function(r){return r===0?0:r===1?1:(r*=2)<1?.5*Math.pow(1024,r-1):.5*(-Math.pow(2,-10*(r-1))+2)},circularIn:function(r){return 1-Math.sqrt(1-r*r)},circularOut:function(r){return Math.sqrt(1- --r*r)},circularInOut:function(r){return(r*=2)<1?-.5*(Math.sqrt(1-r*r)-1):.5*(Math.sqrt(1-(r-=2)*r)+1)},elasticIn:function(r){var t,e=.1,n=.4;return r===0?0:r===1?1:(!e||e<1?(e=1,t=n/4):t=n*Math.asin(1/e)/(2*Math.PI),-(e*Math.pow(2,10*(r-=1))*Math.sin((r-t)*(2*Math.PI)/n)))},elasticOut:function(r){var t,e=.1,n=.4;return r===0?0:r===1?1:(!e||e<1?(e=1,t=n/4):t=n*Math.asin(1/e)/(2*Math.PI),e*Math.pow(2,-10*r)*Math.sin((r-t)*(2*Math.PI)/n)+1)},elasticInOut:function(r){var t,e=.1,n=.4;return r===0?0:r===1?1:(!e||e<1?(e=1,t=n/4):t=n*Math.asin(1/e)/(2*Math.PI),(r*=2)<1?-.5*(e*Math.pow(2,10*(r-=1))*Math.sin((r-t)*(2*Math.PI)/n)):e*Math.pow(2,-10*(r-=1))*Math.sin((r-t)*(2*Math.PI)/n)*.5+1)},backIn:function(r){var t=1.70158;return r*r*((t+1)*r-t)},backOut:function(r){var t=1.70158;return--r*r*((t+1)*r+t)+1},backInOut:function(r){var t=2.5949095;return(r*=2)<1?.5*(r*r*((t+1)*r-t)):.5*((r-=2)*r*((t+1)*r+t)+2)},bounceIn:function(r){return 1-Ao.bounceOut(1-r)},bounceOut:function(r){return r<1/2.75?7.5625*r*r:r<2/2.75?7.5625*(r-=1.5/2.75)*r+.75:r<2.5/2.75?7.5625*(r-=2.25/2.75)*r+.9375:7.5625*(r-=2.625/2.75)*r+.984375},bounceInOut:function(r){return r<.5?Ao.bounceIn(r*2)*.5:Ao.bounceOut(r*2-1)*.5+.5}};const Ng=Ao;var Wa=Math.pow,mr=Math.sqrt,Yo=1e-8,Fg=1e-4,mv=mr(3),Ua=1/3,Le=vi(),se=vi(),Kn=vi();function pr(r){return r>-Yo&&rYo||r<-Yo}function Tt(r,t,e,n,i){var a=1-i;return a*a*(a*r+3*i*t)+i*i*(i*n+3*a*e)}function _v(r,t,e,n,i){var a=1-i;return 3*(((t-r)*a+2*(e-t)*i)*a+(n-e)*i*i)}function $o(r,t,e,n,i,a){var o=n+3*(t-e)-r,s=3*(e-t*2+r),u=3*(t-r),l=r-i,f=s*s-3*o*u,h=s*u-9*o*l,c=u*u-3*s*l,v=0;if(pr(f)&&pr(h))if(pr(s))a[0]=0;else{var d=-u/s;d>=0&&d<=1&&(a[v++]=d)}else{var p=h*h-4*f*c;if(pr(p)){var g=h/f,d=-s/o+g,y=-g/2;d>=0&&d<=1&&(a[v++]=d),y>=0&&y<=1&&(a[v++]=y)}else if(p>0){var m=mr(p),_=f*s+1.5*o*(-h+m),S=f*s+1.5*o*(-h-m);_<0?_=-Wa(-_,Ua):_=Wa(_,Ua),S<0?S=-Wa(-S,Ua):S=Wa(S,Ua);var d=(-s-(_+S))/(3*o);d>=0&&d<=1&&(a[v++]=d)}else{var w=(2*f*s-3*o*h)/(2*mr(f*f*f)),x=Math.acos(w)/3,b=mr(f),C=Math.cos(x),d=(-s-2*b*C)/(3*o),y=(-s+b*(C+mv*Math.sin(x)))/(3*o),T=(-s+b*(C-mv*Math.sin(x)))/(3*o);d>=0&&d<=1&&(a[v++]=d),y>=0&&y<=1&&(a[v++]=y),T>=0&&T<=1&&(a[v++]=T)}}return v}function Gg(r,t,e,n,i){var a=6*e-12*t+6*r,o=9*t+3*n-3*r-9*e,s=3*t-3*r,u=0;if(pr(o)){if(zg(a)){var l=-s/a;l>=0&&l<=1&&(i[u++]=l)}}else{var f=a*a-4*o*s;if(pr(f))i[0]=-a/(2*o);else if(f>0){var h=mr(f),l=(-a+h)/(2*o),c=(-a-h)/(2*o);l>=0&&l<=1&&(i[u++]=l),c>=0&&c<=1&&(i[u++]=c)}}return u}function wr(r,t,e,n,i,a){var o=(t-r)*i+r,s=(e-t)*i+t,u=(n-e)*i+e,l=(s-o)*i+o,f=(u-s)*i+s,h=(f-l)*i+l;a[0]=r,a[1]=o,a[2]=l,a[3]=h,a[4]=h,a[5]=f,a[6]=u,a[7]=n}function Hg(r,t,e,n,i,a,o,s,u,l,f){var h,c=.005,v=1/0,d,p,g,y;Le[0]=u,Le[1]=l;for(var m=0;m<1;m+=.05)se[0]=Tt(r,e,i,o,m),se[1]=Tt(t,n,a,s,m),g=Zn(Le,se),g=0&&g=0&&l<=1&&(i[u++]=l)}}else{var f=o*o-4*a*s;if(pr(f)){var l=-o/(2*a);l>=0&&l<=1&&(i[u++]=l)}else if(f>0){var h=mr(f),l=(-o+h)/(2*a),c=(-o-h)/(2*a);l>=0&&l<=1&&(i[u++]=l),c>=0&&c<=1&&(i[u++]=c)}}return u}function Vg(r,t,e){var n=r+e-2*t;return n===0?.5:(r-t)/n}function Zo(r,t,e,n,i){var a=(t-r)*n+r,o=(e-t)*n+t,s=(o-a)*n+a;i[0]=r,i[1]=a,i[2]=s,i[3]=s,i[4]=o,i[5]=e}function Wg(r,t,e,n,i,a,o,s,u){var l,f=.005,h=1/0;Le[0]=o,Le[1]=s;for(var c=0;c<1;c+=.05){se[0]=Ot(r,e,i,c),se[1]=Ot(t,n,a,c);var v=Zn(Le,se);v=0&&v=1?1:$o(0,n,a,1,u,s)&&Tt(0,i,o,1,s[0])}}}var mS=function(){function r(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||Gt,this.ondestroy=t.ondestroy||Gt,this.onrestart=t.onrestart||Gt,t.easing&&this.setEasing(t.easing)}return r.prototype.step=function(t,e){if(this._inited||(this._startTime=t+this._delay,this._inited=!0),this._paused){this._pausedTime+=e;return}var n=this._life,i=t-this._startTime-this._pausedTime,a=i/n;a<0&&(a=0),a=Math.min(a,1);var o=this.easingFunc,s=o?o(a):a;if(this.onframe(s),a===1)if(this.loop){var u=i%n;this._startTime=t-u,this._pausedTime=0,this.onrestart()}else return!0;return!1},r.prototype.pause=function(){this._paused=!0},r.prototype.resume=function(){this._paused=!1},r.prototype.setEasing=function(t){this.easing=t,this.easingFunc=Y(t)?t:Ng[t]||Ug(t)},r}();const _S=mS;var Yg=function(){function r(t){this.value=t}return r}(),SS=function(){function r(){this._len=0}return r.prototype.insert=function(t){var e=new Yg(t);return this.insertEntry(e),e},r.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++},r.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--},r.prototype.len=function(){return this._len},r.prototype.clear=function(){this.head=this.tail=null,this._len=0},r}(),xS=function(){function r(t){this._list=new SS,this._maxSize=10,this._map={},this._maxSize=t}return r.prototype.put=function(t,e){var n=this._list,i=this._map,a=null;if(i[t]==null){var o=n.len(),s=this._lastRemovedEntry;if(o>=this._maxSize&&o>0){var u=n.head;n.remove(u),delete i[u.key],a=u.value,this._lastRemovedEntry=u}s?s.value=e:s=new Yg(e),s.key=t,n.insertEntry(s),i[t]=s}return a},r.prototype.get=function(t){var e=this._map[t],n=this._list;if(e!=null)return e!==n.tail&&(n.remove(e),n.insertEntry(e)),e.value},r.prototype.clear=function(){this._list.clear(),this._map={}},r.prototype.len=function(){return this._list.len()},r}();const La=xS;var xv={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 _r(r){return r=Math.round(r),r<0?0:r>255?255:r}function Ol(r){return r<0?0:r>1?1:r}function iu(r){var t=r;return t.length&&t.charAt(t.length-1)==="%"?_r(parseFloat(t)/100*255):_r(parseInt(t,10))}function Qi(r){var t=r;return t.length&&t.charAt(t.length-1)==="%"?Ol(parseFloat(t)/100):Ol(parseFloat(t))}function au(r,t,e){return e<0?e+=1:e>1&&(e-=1),e*6<1?r+(t-r)*e*6:e*2<1?t:e*3<2?r+(t-r)*(2/3-e)*6:r}function Ya(r,t,e){return r+(t-r)*e}function ne(r,t,e,n,i){return r[0]=t,r[1]=e,r[2]=n,r[3]=i,r}function kl(r,t){return r[0]=t[0],r[1]=t[1],r[2]=t[2],r[3]=t[3],r}var $g=new La(20),$a=null;function Sn(r,t){$a&&kl($a,t),$a=$g.put(r,$a||t.slice())}function Xe(r,t){if(!!r){t=t||[];var e=$g.get(r);if(e)return kl(t,e);r=r+"";var n=r.replace(/ /g,"").toLowerCase();if(n in xv)return kl(t,xv[n]),Sn(r,t),t;var i=n.length;if(n.charAt(0)==="#"){if(i===4||i===5){var a=parseInt(n.slice(1,4),16);if(!(a>=0&&a<=4095)){ne(t,0,0,0,1);return}return ne(t,(a&3840)>>4|(a&3840)>>8,a&240|(a&240)>>4,a&15|(a&15)<<4,i===5?parseInt(n.slice(4),16)/15:1),Sn(r,t),t}else if(i===7||i===9){var a=parseInt(n.slice(1,7),16);if(!(a>=0&&a<=16777215)){ne(t,0,0,0,1);return}return ne(t,(a&16711680)>>16,(a&65280)>>8,a&255,i===9?parseInt(n.slice(7),16)/255:1),Sn(r,t),t}return}var o=n.indexOf("("),s=n.indexOf(")");if(o!==-1&&s+1===i){var u=n.substr(0,o),l=n.substr(o+1,s-(o+1)).split(","),f=1;switch(u){case"rgba":if(l.length!==4)return l.length===3?ne(t,+l[0],+l[1],+l[2],1):ne(t,0,0,0,1);f=Qi(l.pop());case"rgb":if(l.length>=3)return ne(t,iu(l[0]),iu(l[1]),iu(l[2]),l.length===3?f:Qi(l[3])),Sn(r,t),t;ne(t,0,0,0,1);return;case"hsla":if(l.length!==4){ne(t,0,0,0,1);return}return l[3]=Qi(l[3]),wv(l,t),Sn(r,t),t;case"hsl":if(l.length!==3){ne(t,0,0,0,1);return}return wv(l,t),Sn(r,t),t;default:return}}ne(t,0,0,0,1)}}function wv(r,t){var e=(parseFloat(r[0])%360+360)%360/360,n=Qi(r[1]),i=Qi(r[2]),a=i<=.5?i*(n+1):i+n-i*n,o=i*2-a;return t=t||[],ne(t,_r(au(o,a,e+1/3)*255),_r(au(o,a,e)*255),_r(au(o,a,e-1/3)*255),1),r.length===4&&(t[3]=r[3]),t}function bv(r,t){var e=Xe(r);if(e){for(var n=0;n<3;n++)t<0?e[n]=e[n]*(1-t)|0:e[n]=(255-e[n])*t+e[n]|0,e[n]>255?e[n]=255:e[n]<0&&(e[n]=0);return xs(e,e.length===4?"rgba":"rgb")}}function wS(r,t,e){if(!(!(t&&t.length)||!(r>=0&&r<=1))){var n=r*(t.length-1),i=Math.floor(n),a=Math.ceil(n),o=Xe(t[i]),s=Xe(t[a]),u=n-i,l=xs([_r(Ya(o[0],s[0],u)),_r(Ya(o[1],s[1],u)),_r(Ya(o[2],s[2],u)),Ol(Ya(o[3],s[3],u))],"rgba");return e?{color:l,leftIndex:i,rightIndex:a,value:n}:l}}function xs(r,t){if(!(!r||!r.length)){var e=r[0]+","+r[1]+","+r[2];return(t==="rgba"||t==="hsva"||t==="hsla")&&(e+=","+r[3]),t+"("+e+")"}}function Xo(r,t){var e=Xe(r);return e?(.299*e[0]+.587*e[1]+.114*e[2])*e[3]/255+(1-e[3])*t:0}var Tv=new La(100);function Cv(r){if(G(r)){var t=Tv.get(r);return t||(t=bv(r,-.1),Tv.put(r,t)),t}else if(ms(r)){var e=k({},r);return e.colorStops=z(r.colorStops,function(n){return{offset:n.offset,color:bv(n.color,-.1)}}),e}return r}function bS(r){return r.type==="linear"}function TS(r){return r.type==="radial"}(function(){return J.hasGlobalWindow&&Y(window.btoa)?function(r){return window.btoa(unescape(encodeURIComponent(r)))}:typeof Buffer<"u"?function(r){return Buffer.from(r).toString("base64")}:function(r){return null}})();var Bl=Array.prototype.slice;function Ue(r,t,e){return(t-r)*e+r}function ou(r,t,e,n){for(var i=t.length,a=0;an?t:r,a=Math.min(e,n),o=i[a-1]||{color:[0,0,0,0],offset:0},s=a;so;if(s)n.length=o;else for(var u=a;u=1},r.prototype.getAdditiveTrack=function(){return this._additiveTrack},r.prototype.addKeyframe=function(t,e,n){this._needsSort=!0;var i=this.keyframes,a=i.length,o=!1,s=Dv,u=e;if(Ht(e)){var l=AS(e);s=l,(l===1&&!ct(e[0])||l===2&&!ct(e[0][0]))&&(o=!0)}else if(ct(e)&&!Wo(e))s=Xa;else if(G(e))if(!isNaN(+e))s=Xa;else{var f=Xe(e);f&&(u=f,s=Wi)}else if(ms(e)){var h=k({},u);h.colorStops=z(e.colorStops,function(v){return{offset:v.offset,color:Xe(v.color)}}),bS(e)?s=Nl:TS(e)&&(s=Fl),u=h}a===0?this.valType=s:(s!==this.valType||s===Dv)&&(o=!0),this.discrete=this.discrete||o;var c={time:t,value:u,rawValue:e,percent:0};return n&&(c.easing=n,c.easingFunc=Y(n)?n:Ng[n]||Ug(n)),i.push(c),c},r.prototype.prepare=function(t,e){var n=this.keyframes;this._needsSort&&n.sort(function(p,g){return p.time-g.time});for(var i=this.valType,a=n.length,o=n[a-1],s=this.discrete,u=qa(i),l=Av(i),f=0;f=0&&!(o[f].percent<=e);f--);f=c(f,s-2)}else{for(f=h;fe);f++);f=c(f-1,s-2)}d=o[f+1],v=o[f]}if(!!(v&&d)){this._lastFr=f,this._lastFrP=e;var g=d.percent-v.percent,y=g===0?1:c((e-v.percent)/g,1);d.easingFunc&&(y=d.easingFunc(y));var m=n?this._additiveValue:l?xi:t[u];if((qa(a)||l)&&!m&&(m=this._additiveValue=[]),this.discrete)t[u]=y<1?v.rawValue:d.rawValue;else if(qa(a))a===Po?ou(m,v[i],d[i],y):CS(m,v[i],d[i],y);else if(Av(a)){var _=v[i],S=d[i],w=a===Nl;t[u]={type:w?"linear":"radial",x:Ue(_.x,S.x,y),y:Ue(_.y,S.y,y),colorStops:z(_.colorStops,function(b,C){var T=S.colorStops[C];return{offset:Ue(b.offset,T.offset,y),color:Io(ou([],b.color,T.color,y))}}),global:S.global},w?(t[u].x2=Ue(_.x2,S.x2,y),t[u].y2=Ue(_.y2,S.y2,y)):t[u].r=Ue(_.r,S.r,y)}else if(l)ou(m,v[i],d[i],y),n||(t[u]=Io(m));else{var x=Ue(v[i],d[i],y);n?this._additiveValue=x:t[u]=x}n&&this._addToTarget(t)}}},r.prototype._addToTarget=function(t){var e=this.valType,n=this.propName,i=this._additiveValue;e===Xa?t[n]=t[n]+i:e===Wi?(Xe(t[n],xi),Za(xi,xi,i,1),t[n]=Io(xi)):e===Po?Za(t[n],t[n],i,1):e===Zg&&Mv(t[n],t[n],i,1)},r}(),IS=function(){function r(t,e,n,i){if(this._tracks={},this._trackKeys=[],this._maxTime=0,this._started=0,this._clip=null,this._target=t,this._loop=e,e&&i){Yf("Can' use additive animation on looped animation.");return}this._additiveAnimators=i,this._allowDiscrete=n}return r.prototype.getMaxTime=function(){return this._maxTime},r.prototype.getDelay=function(){return this._delay},r.prototype.getLoop=function(){return this._loop},r.prototype.getTarget=function(){return this._target},r.prototype.changeTarget=function(t){this._target=t},r.prototype.when=function(t,e,n){return this.whenWithKeys(t,e,dt(e),n)},r.prototype.whenWithKeys=function(t,e,n,i){for(var a=this._tracks,o=0;o0&&u.addKeyframe(0,Lo(l),i),this._trackKeys.push(s)}u.addKeyframe(t,Lo(e[s]),i)}return this._maxTime=Math.max(this._maxTime,t),this},r.prototype.pause=function(){this._clip.pause(),this._paused=!0},r.prototype.resume=function(){this._clip.resume(),this._paused=!1},r.prototype.isPaused=function(){return!!this._paused},r.prototype.duration=function(t){return this._maxTime=t,this._force=!0,this},r.prototype._doneCallback=function(){this._setTracksFinished(),this._clip=null;var t=this._doneCbs;if(t)for(var e=t.length,n=0;n0)){this._started=1;for(var e=this,n=[],i=this._maxTime||0,a=0;a1){var s=o.pop();a.addKeyframe(s.time,t[i]),a.prepare(this._maxTime,a.getAdditiveTrack())}}}},r}();const Kf=IS;function Vn(){return new Date().getTime()}var PS=function(r){O(t,r);function t(e){var n=r.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 t.prototype.addClip=function(e){e.animation&&this.removeClip(e),this._head?(this._tail.next=e,e.prev=this._tail,e.next=null,this._tail=e):this._head=this._tail=e,e.animation=this},t.prototype.addAnimator=function(e){e.animation=this;var n=e.getClip();n&&this.addClip(n)},t.prototype.removeClip=function(e){if(!!e.animation){var n=e.prev,i=e.next;n?n.next=i:this._head=i,i?i.prev=n:this._tail=n,e.next=e.prev=e.animation=null}},t.prototype.removeAnimator=function(e){var n=e.getClip();n&&this.removeClip(n),e.animation=null},t.prototype.update=function(e){for(var n=Vn()-this._pausedTime,i=n-this._time,a=this._head;a;){var o=a.next,s=a.step(n,i);s&&(a.ondestroy(),this.removeClip(a)),a=o}this._time=n,e||(this.trigger("frame",i),this.stage.update&&this.stage.update())},t.prototype._startLoop=function(){var e=this;this._running=!0;function n(){e._running&&(El(n),!e._paused&&e.update())}El(n)},t.prototype.start=function(){this._running||(this._time=Vn(),this._pausedTime=0,this._startLoop())},t.prototype.stop=function(){this._running=!1},t.prototype.pause=function(){this._paused||(this._pauseStart=Vn(),this._paused=!0)},t.prototype.resume=function(){this._paused&&(this._pausedTime+=Vn()-this._pauseStart,this._paused=!1)},t.prototype.clear=function(){for(var e=this._head;e;){var n=e.next;e.prev=e.next=e.animation=null,e=n}this._head=this._tail=null},t.prototype.isFinished=function(){return this._head==null},t.prototype.animate=function(e,n){n=n||{},this.start();var i=new Kf(e,n.loop);return this.addAnimator(i),i},t}(ve);const RS=PS;var ES=300,su=J.domSupported,uu=function(){var r=["click","dblclick","mousewheel","wheel","mouseout","mouseup","mousedown","mousemove","contextmenu"],t=["touchstart","touchend","touchmove"],e={pointerdown:1,pointerup:1,pointermove:1,pointerout:1},n=z(r,function(i){var a=i.replace("mouse","pointer");return e.hasOwnProperty(a)?a:i});return{mouse:r,touch:t,pointer:n}}(),Lv={mouse:["mousemove","mouseup"],pointer:["pointermove","pointerup"]},Iv=!1;function zl(r){var t=r.pointerType;return t==="pen"||t==="touch"}function OS(r){r.touching=!0,r.touchTimer!=null&&(clearTimeout(r.touchTimer),r.touchTimer=null),r.touchTimer=setTimeout(function(){r.touching=!1,r.touchTimer=null},700)}function lu(r){r&&(r.zrByTouch=!0)}function kS(r,t){return ie(r.dom,new BS(r,t),!0)}function Xg(r,t){for(var e=t,n=!1;e&&e.nodeType!==9&&!(n=e.domBelongToZr||e!==t&&e===r.painterRoot);)e=e.parentNode;return n}var BS=function(){function r(t,e){this.stopPropagation=Gt,this.stopImmediatePropagation=Gt,this.preventDefault=Gt,this.type=e.type,this.target=this.currentTarget=t.dom,this.pointerType=e.pointerType,this.clientX=e.clientX,this.clientY=e.clientY}return r}(),ye={mousedown:function(r){r=ie(this.dom,r),this.__mayPointerCapture=[r.zrX,r.zrY],this.trigger("mousedown",r)},mousemove:function(r){r=ie(this.dom,r);var t=this.__mayPointerCapture;t&&(r.zrX!==t[0]||r.zrY!==t[1])&&this.__togglePointerCapture(!0),this.trigger("mousemove",r)},mouseup:function(r){r=ie(this.dom,r),this.__togglePointerCapture(!1),this.trigger("mouseup",r)},mouseout:function(r){r=ie(this.dom,r);var t=r.toElement||r.relatedTarget;Xg(this,t)||(this.__pointerCapturing&&(r.zrEventControl="no_globalout"),this.trigger("mouseout",r))},wheel:function(r){Iv=!0,r=ie(this.dom,r),this.trigger("mousewheel",r)},mousewheel:function(r){Iv||(r=ie(this.dom,r),this.trigger("mousewheel",r))},touchstart:function(r){r=ie(this.dom,r),lu(r),this.__lastTouchMoment=new Date,this.handler.processGesture(r,"start"),ye.mousemove.call(this,r),ye.mousedown.call(this,r)},touchmove:function(r){r=ie(this.dom,r),lu(r),this.handler.processGesture(r,"change"),ye.mousemove.call(this,r)},touchend:function(r){r=ie(this.dom,r),lu(r),this.handler.processGesture(r,"end"),ye.mouseup.call(this,r),+new Date-+this.__lastTouchMomentEv||r<-Ev}var Rr=[],xn=[],hu=Xn(),vu=Math.abs,VS=function(){function r(){}return r.prototype.getLocalTransform=function(t){return r.getLocalTransform(this,t)},r.prototype.setPosition=function(t){this.x=t[0],this.y=t[1]},r.prototype.setScale=function(t){this.scaleX=t[0],this.scaleY=t[1]},r.prototype.setSkew=function(t){this.skewX=t[0],this.skewY=t[1]},r.prototype.setOrigin=function(t){this.originX=t[0],this.originY=t[1]},r.prototype.needLocalTransform=function(){return Pr(this.rotation)||Pr(this.x)||Pr(this.y)||Pr(this.scaleX-1)||Pr(this.scaleY-1)||Pr(this.skewX)||Pr(this.skewY)},r.prototype.updateTransform=function(){var t=this.parent&&this.parent.transform,e=this.needLocalTransform(),n=this.transform;if(!(e||t)){n&&(Rv(n),this.invTransform=null);return}n=n||Xn(),e?this.getLocalTransform(n):Rv(n),t&&(e?qn(n,t,n):j1(n,t)),this.transform=n,this._resolveGlobalScaleRatio(n)},r.prototype._resolveGlobalScaleRatio=function(t){var e=this.globalScaleRatio;if(e!=null&&e!==1){this.getGlobalScale(Rr);var n=Rr[0]<0?-1:1,i=Rr[1]<0?-1:1,a=((Rr[0]-n)*e+n)/Rr[0]||0,o=((Rr[1]-i)*e+i)/Rr[1]||0;t[0]*=a,t[1]*=a,t[2]*=o,t[3]*=o}this.invTransform=this.invTransform||Xn(),Ss(this.invTransform,t)},r.prototype.getComputedTransform=function(){for(var t=this,e=[];t;)e.push(t),t=t.parent;for(;t=e.pop();)t.updateTransform();return this.transform},r.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]),a=Math.PI/2+i-Math.atan2(t[3],t[2]);n=Math.sqrt(n)*Math.cos(a),e=Math.sqrt(e),this.skewX=a,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}},r.prototype.decomposeTransform=function(){if(!!this.transform){var t=this.parent,e=this.transform;t&&t.transform&&(t.invTransform=t.invTransform||Xn(),qn(xn,t.invTransform,e),e=xn);var n=this.originX,i=this.originY;(n||i)&&(hu[4]=n,hu[5]=i,qn(xn,e,hu),xn[4]-=n,xn[5]-=i,e=xn),this.setLocalTransform(e)}},r.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)},r.prototype.transformCoordToLocal=function(t,e){var n=[t,e],i=this.invTransform;return i&&le(n,n,i),n},r.prototype.transformCoordToGlobal=function(t,e){var n=[t,e],i=this.transform;return i&&le(n,n,i),n},r.prototype.getLineScale=function(){var t=this.transform;return t&&vu(t[0]-1)>1e-10&&vu(t[3]-1)>1e-10?Math.sqrt(vu(t[0]*t[3]-t[2]*t[1])):1},r.prototype.copyTransform=function(t){WS(this,t)},r.getLocalTransform=function(t,e){e=e||[];var n=t.originX||0,i=t.originY||0,a=t.scaleX,o=t.scaleY,s=t.anchorX,u=t.anchorY,l=t.rotation||0,f=t.x,h=t.y,c=t.skewX?Math.tan(t.skewX):0,v=t.skewY?Math.tan(-t.skewY):0;if(n||i||s||u){var d=n+s,p=i+u;e[4]=-d*a-c*p*o,e[5]=-p*o-v*d*a}else e[4]=e[5]=0;return e[0]=a,e[3]=o,e[1]=v*a,e[2]=c*o,l&&qf(e,e,l),e[4]+=n+f,e[5]+=i+h,e},r.initDefaultProps=function(){var t=r.prototype;t.scaleX=t.scaleY=t.globalScaleRatio=1,t.x=t.y=t.originX=t.originY=t.skewX=t.skewY=t.rotation=t.anchorX=t.anchorY=0}(),r}(),fa=["x","y","originX","originY","anchorX","anchorY","rotation","scaleX","scaleY","skewX","skewY"];function WS(r,t){for(var e=0;e=0?parseFloat(r)/100*t:parseFloat(r):r}function Kg(r,t,e){var n=t.position||"inside",i=t.distance!=null?t.distance:5,a=e.height,o=e.width,s=a/2,u=e.x,l=e.y,f="left",h="top";if(n instanceof Array)u+=ln(n[0],e.width),l+=ln(n[1],e.height),f=null,h=null;else switch(n){case"left":u-=i,l+=s,f="right",h="middle";break;case"right":u+=i+o,l+=s,h="middle";break;case"top":u+=o/2,l-=i,f="center",h="bottom";break;case"bottom":u+=o/2,l+=a+i,f="center";break;case"inside":u+=o/2,l+=s,f="center",h="middle";break;case"insideLeft":u+=i,l+=s,h="middle";break;case"insideRight":u+=o-i,l+=s,f="right",h="middle";break;case"insideTop":u+=o/2,l+=i,f="center";break;case"insideBottom":u+=o/2,l+=a-i,f="center",h="bottom";break;case"insideTopLeft":u+=i,l+=i;break;case"insideTopRight":u+=o-i,l+=i,f="right";break;case"insideBottomLeft":u+=i,l+=a-i,h="bottom";break;case"insideBottomRight":u+=o-i,l+=a-i,f="right",h="bottom";break}return r=r||{},r.x=u,r.y=l,r.align=f,r.verticalAlign=h,r}var cu="__zr_normal__",du=fa.concat(["ignore"]),US=hi(fa,function(r,t){return r[t]=!0,r},{ignore:!1}),wn={},YS=new rt(0,0,0,0),Jf=function(){function r(t){this.id=Mg(),this.animators=[],this.currentStates=[],this.states={},this._init(t)}return r.prototype._init=function(t){this.attr(t)},r.prototype.drift=function(t,e,n){switch(this.draggable){case"horizontal":e=0;break;case"vertical":t=0;break}var i=this.transform;i||(i=this.transform=[1,0,0,1,0,0]),i[4]+=t,i[5]+=e,this.decomposeTransform(),this.markRedraw()},r.prototype.beforeUpdate=function(){},r.prototype.afterUpdate=function(){},r.prototype.update=function(){this.updateTransform(),this.__dirty&&this.updateInnerText()},r.prototype.updateInnerText=function(t){var e=this._textContent;if(e&&(!e.ignore||t)){this.textConfig||(this.textConfig={});var n=this.textConfig,i=n.local,a=e.innerTransformable,o=void 0,s=void 0,u=!1;a.parent=i?this:null;var l=!1;if(a.copyTransform(e),n.position!=null){var f=YS;n.layoutRect?f.copy(n.layoutRect):f.copy(this.getBoundingRect()),i||f.applyTransform(this.transform),this.calculateTextPosition?this.calculateTextPosition(wn,n,f):Kg(wn,n,f),a.x=wn.x,a.y=wn.y,o=wn.align,s=wn.verticalAlign;var h=n.origin;if(h&&n.rotation!=null){var c=void 0,v=void 0;h==="center"?(c=f.width*.5,v=f.height*.5):(c=ln(h[0],f.width),v=ln(h[1],f.height)),l=!0,a.originX=-a.x+c+(i?0:f.x),a.originY=-a.y+v+(i?0:f.y)}}n.rotation!=null&&(a.rotation=n.rotation);var d=n.offset;d&&(a.x+=d[0],a.y+=d[1],l||(a.originX=-d[0],a.originY=-d[1]));var p=n.inside==null?typeof n.position=="string"&&n.position.indexOf("inside")>=0:n.inside,g=this._innerTextDefaultStyle||(this._innerTextDefaultStyle={}),y=void 0,m=void 0,_=void 0;p&&this.canBeInsideText()?(y=n.insideFill,m=n.insideStroke,(y==null||y==="auto")&&(y=this.getInsideTextFill()),(m==null||m==="auto")&&(m=this.getInsideTextStroke(y),_=!0)):(y=n.outsideFill,m=n.outsideStroke,(y==null||y==="auto")&&(y=this.getOutsideFill()),(m==null||m==="auto")&&(m=this.getOutsideStroke(y),_=!0)),y=y||"#000",(y!==g.fill||m!==g.stroke||_!==g.autoStroke||o!==g.align||s!==g.verticalAlign)&&(u=!0,g.fill=y,g.stroke=m,g.autoStroke=_,g.align=o,g.verticalAlign=s,e.setDefaultTextStyle(g)),e.__dirty|=jt,u&&e.dirtyStyle(!0)}},r.prototype.canBeInsideText=function(){return!0},r.prototype.getInsideTextFill=function(){return"#fff"},r.prototype.getInsideTextStroke=function(t){return"#000"},r.prototype.getOutsideFill=function(){return this.__zr&&this.__zr.isDarkMode()?Wl:Vl},r.prototype.getOutsideStroke=function(t){var e=this.__zr&&this.__zr.getBackgroundColor(),n=typeof e=="string"&&Xe(e);n||(n=[255,255,255,1]);for(var i=n[3],a=this.__zr.isDarkMode(),o=0;o<3;o++)n[o]=n[o]*i+(a?0:255)*(1-i);return n[3]=1,xs(n,"rgba")},r.prototype.traverse=function(t,e){},r.prototype.attrKV=function(t,e){t==="textConfig"?this.setTextConfig(e):t==="textContent"?this.setTextContent(e):t==="clipPath"?this.setClipPath(e):t==="extra"?(this.extra=this.extra||{},k(this.extra,e)):this[t]=e},r.prototype.hide=function(){this.ignore=!0,this.markRedraw()},r.prototype.show=function(){this.ignore=!1,this.markRedraw()},r.prototype.attr=function(t,e){if(typeof t=="string")this.attrKV(t,e);else if(V(t))for(var n=t,i=dt(n),a=0;a0},r.prototype.getState=function(t){return this.states[t]},r.prototype.ensureState=function(t){var e=this.states;return e[t]||(e[t]={}),e[t]},r.prototype.clearStates=function(t){this.useState(cu,!1,t)},r.prototype.useState=function(t,e,n,i){var a=t===cu,o=this.hasState();if(!(!o&&a)){var s=this.currentStates,u=this.stateTransition;if(!(tt(s,t)>=0&&(e||s.length===1))){var l;if(this.stateProxy&&!a&&(l=this.stateProxy(t)),l||(l=this.states&&this.states[t]),!l&&!a){Yf("State "+t+" not exists.");return}a||this.saveCurrentToNormalState(l);var f=!!(l&&l.hoverLayer||i);f&&this._toggleHoverLayerFlag(!0),this._applyStateObj(t,l,this._normalState,e,!n&&!this.__inHover&&u&&u.duration>0,u);var h=this._textContent,c=this._textGuide;return h&&h.useState(t,e,n,f),c&&c.useState(t,e,n,f),a?(this.currentStates=[],this._normalState={}):e?this.currentStates.push(t):this.currentStates=[t],this._updateAnimationTargets(),this.markRedraw(),!f&&this.__inHover&&(this._toggleHoverLayerFlag(!1),this.__dirty&=~jt),l}}},r.prototype.useStates=function(t,e,n){if(!t.length)this.clearStates();else{var i=[],a=this.currentStates,o=t.length,s=o===a.length;if(s){for(var u=0;u0,d);var p=this._textContent,g=this._textGuide;p&&p.useStates(t,e,c),g&&g.useStates(t,e,c),this._updateAnimationTargets(),this.currentStates=t.slice(),this.markRedraw(),!c&&this.__inHover&&(this._toggleHoverLayerFlag(!1),this.__dirty&=~jt)}},r.prototype.isSilent=function(){for(var t=this.silent,e=this.parent;!t&&e;){if(e.silent){t=!0;break}e=e.parent}return t},r.prototype._updateAnimationTargets=function(){for(var t=0;t=0){var n=this.currentStates.slice();n.splice(e,1),this.useStates(n)}},r.prototype.replaceState=function(t,e,n){var i=this.currentStates.slice(),a=tt(i,t),o=tt(i,e)>=0;a>=0?o?i.splice(a,1):i[a]=e:n&&!o&&i.push(e),this.useStates(i)},r.prototype.toggleState=function(t,e){e?this.useState(t,!0):this.removeState(t)},r.prototype._mergeStates=function(t){for(var e={},n,i=0;i=0&&a.splice(o,1)}),this.animators.push(t),n&&n.animation.addAnimator(t),n&&n.wakeUp()},r.prototype.updateDuringAnimation=function(t){this.markRedraw()},r.prototype.stopAnimation=function(t,e){for(var n=this.animators,i=n.length,a=[],o=0;o0&&e.during&&a[0].during(function(d,p){e.during(p)});for(var c=0;c0||i.force&&!o.length){var C=void 0,T=void 0,D=void 0;if(s){T={},c&&(C={});for(var S=0;S<_;S++){var y=p[S];T[y]=e[y],c?C[y]=n[y]:e[y]=n[y]}}else if(c){D={};for(var S=0;S<_;S++){var y=p[S];D[y]=Lo(e[y]),ZS(e,n,y)}}var w=new Kf(e,!1,!1,h?mt(d,function(L){return L.targetName===t}):null);w.targetName=t,i.scope&&(w.scope=i.scope),c&&C&&w.whenWithKeys(0,C,p),D&&w.whenWithKeys(0,D,p),w.whenWithKeys(l==null?500:l,s?T:n,p).delay(f||0),r.addAnimator(w,t),o.push(w)}}const Jg=Jf;var jg=function(r){O(t,r);function t(e){var n=r.call(this)||this;return n.isGroup=!0,n._children=[],n.attr(e),n}return t.prototype.childrenRef=function(){return this._children},t.prototype.children=function(){return this._children.slice()},t.prototype.childAt=function(e){return this._children[e]},t.prototype.childOfName=function(e){for(var n=this._children,i=0;i=0&&(i.splice(a,0,e),this._doAdd(e))}return this},t.prototype.replace=function(e,n){var i=tt(this._children,e);return i>=0&&this.replaceAt(n,i),this},t.prototype.replaceAt=function(e,n){var i=this._children,a=i[n];if(e&&e!==this&&e.parent!==this&&e!==a){i[n]=e,a.parent=null;var o=this.__zr;o&&a.removeSelfFromZr(o),this._doAdd(e)}return this},t.prototype._doAdd=function(e){e.parent&&e.parent.remove(e),e.parent=this;var n=this.__zr;n&&n!==e.__zr&&e.addSelfToZr(n),n&&n.refresh()},t.prototype.remove=function(e){var n=this.__zr,i=this._children,a=tt(i,e);return a<0?this:(i.splice(a,1),e.parent=null,n&&e.removeSelfFromZr(n),n&&n.refresh(),this)},t.prototype.removeAll=function(){for(var e=this._children,n=this.__zr,i=0;i0&&(this._stillFrameAccum++,this._stillFrameAccum>this._sleepAfterStill&&this.animation.stop())},r.prototype.setSleepAfterStill=function(t){this._sleepAfterStill=t},r.prototype.wakeUp=function(){this._disposed||(this.animation.start(),this._stillFrameAccum=0)},r.prototype.refreshHover=function(){this._needsRefreshHover=!0},r.prototype.refreshHoverImmediately=function(){this._disposed||(this._needsRefreshHover=!1,this.painter.refreshHover&&this.painter.getType()==="canvas"&&this.painter.refreshHover())},r.prototype.resize=function(t){this._disposed||(t=t||{},this.painter.resize(t.width,t.height),this.handler.resize())},r.prototype.clearAnimation=function(){this._disposed||this.animation.clear()},r.prototype.getWidth=function(){if(!this._disposed)return this.painter.getWidth()},r.prototype.getHeight=function(){if(!this._disposed)return this.painter.getHeight()},r.prototype.setCursorStyle=function(t){this._disposed||this.handler.setCursorStyle(t)},r.prototype.findHover=function(t,e){if(!this._disposed)return this.handler.findHover(t,e)},r.prototype.on=function(t,e,n){return this._disposed||this.handler.on(t,e,n),this},r.prototype.off=function(t,e){this._disposed||this.handler.off(t,e)},r.prototype.trigger=function(t,e){this._disposed||this.handler.trigger(t,e)},r.prototype.clear=function(){if(!this._disposed){for(var t=this.storage.getRoots(),e=0;e0){if(r<=i)return o;if(r>=a)return s}else{if(r>=i)return o;if(r<=a)return s}else{if(r===i)return o;if(r===a)return s}return(r-i)/u*l+o}function Ct(r,t){switch(r){case"center":case"middle":r="50%";break;case"left":case"top":r="0%";break;case"right":case"bottom":r="100%";break}return G(r)?tx(r).match(/%$/)?parseFloat(r)/100*t:parseFloat(r):r==null?NaN:+r}function wt(r,t,e){return t==null&&(t=10),t=Math.min(Math.max(0,t),ey),r=(+r).toFixed(t),e?r:+r}function Yi(r){return r.sort(function(t,e){return t-e}),r}function Ye(r){if(r=+r,isNaN(r))return 0;if(r>1e-14){for(var t=1,e=0;e<15;e++,t*=10)if(Math.round(r*t)/t===r)return e}return ex(r)}function ex(r){var t=r.toString().toLowerCase(),e=t.indexOf("e"),n=e>0?+t.slice(e+1):0,i=e>0?e:t.length,a=t.indexOf("."),o=a<0?0:i-1-a;return Math.max(0,o-n)}function ry(r,t){var e=Math.log,n=Math.LN10,i=Math.floor(e(r[1]-r[0])/n),a=Math.round(e(Math.abs(t[1]-t[0]))/n),o=Math.min(Math.max(-i+a,0),20);return isFinite(o)?o:20}function rx(r,t){var e=Math.max(Ye(r),Ye(t)),n=r+t;return e>ey?n:wt(n,e)}function ny(r){var t=Math.PI*2;return(r%t+t)%t}function Ko(r){return r>-Nv&&r=10&&t++,t}function iy(r,t){var e=jf(r),n=Math.pow(10,e),i=r/n,a;return t?i<1.5?a=1:i<2.5?a=2:i<4?a=3:i<7?a=5:a=10:i<1?a=1:i<2?a=2:i<3?a=3:i<5?a=5:a=10,r=a*n,e>=-20?+r.toFixed(e<0?-e:0):r}function br(r){var t=parseFloat(r);return t==r&&(t!==0||!G(r)||r.indexOf("x")<=0)?t:NaN}function ax(r){return!isNaN(br(r))}function ay(){return Math.round(Math.random()*9)}function oy(r,t){return t===0?r:oy(t,r%t)}function Fv(r,t){return r==null?t:t==null?r:r*t/oy(r,t)}function it(r){throw new Error(r)}function zv(r,t,e){return(t-r)*e+r}var sy="series\0",uy="\0_ec_\0";function St(r){return r instanceof Array?r:r==null?[]:[r]}function Gv(r,t,e){if(r){r[t]=r[t]||{},r.emphasis=r.emphasis||{},r.emphasis[t]=r.emphasis[t]||{};for(var n=0,i=e.length;n=0||a&&tt(a,u)<0)){var l=n.getShallow(u,t);l!=null&&(o[r[s][0]]=l)}}return o}}var Ix=[["fill","color"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["opacity"],["shadowColor"]],Px=va(Ix),Rx=function(){function r(){}return r.prototype.getAreaStyle=function(t,e){return Px(this,t,e)},r}(),Ul=new La(50);function Ex(r){if(typeof r=="string"){var t=Ul.get(r);return t&&t.image}else return r}function dy(r,t,e,n,i){if(r)if(typeof r=="string"){if(t&&t.__zrImageSrc===r||!e)return t;var a=Ul.get(r),o={hostEl:e,cb:n,cbPayload:i};return a?(t=a.image,!Ts(t)&&a.pending.push(o)):(t=pn.loadImage(r,Vv,Vv),t.__zrImageSrc=r,Ul.put(r,t.__cachedImgObj={image:t,pending:[o]})),t}else return r;else return t}function Vv(){var r=this.__cachedImgObj;this.onload=this.onerror=this.__cachedImgObj=null;for(var t=0;t=o;u++)s-=o;var l=te(e,t);return l>s&&(e="",l=0),s=r-l,i.ellipsis=e,i.ellipsisWidth=l,i.contentWidth=s,i.containerWidth=r,i}function gy(r,t,e){var n=e.containerWidth,i=e.font,a=e.contentWidth;if(!n){r.textLine="",r.isTruncated=!1;return}var o=te(t,i);if(o<=n){r.textLine=t,r.isTruncated=!1;return}for(var s=0;;s++){if(o<=a||s>=e.maxIterations){t+=e.ellipsis;break}var u=s===0?kx(t,a,e.ascCharWidth,e.cnCharWidth):o>0?Math.floor(t.length*a/o):0;t=t.substr(0,u),o=te(t,i)}t===""&&(t=e.placeholder),r.textLine=t,r.isTruncated=!0}function kx(r,t,e,n){for(var i=0,a=0,o=r.length;ad&&l){var p=Math.floor(d/s);f=f||c.length>p,c=c.slice(0,p)}if(r&&a&&h!=null)for(var g=py(h,i,t.ellipsis,{minChar:t.truncateMinChar,placeholder:t.placeholder}),y={},m=0;ms&&mu(e,r.substring(s,l),t,o),mu(e,u[2],t,o,u[1]),s=yu.lastIndex}si){var I=e.lines.length;x>0?(_.tokens=_.tokens.slice(0,x),y(_,w,S),e.lines=e.lines.slice(0,m+1)):e.lines=e.lines.slice(0,m),e.isTruncated=e.isTruncated||e.lines.length0&&d+n.accumWidth>n.width&&(f=t.split(` +`),l=!0),n.accumWidth=d}else{var p=yy(t,u,n.width,n.breakAll,n.accumWidth);n.accumWidth=p.accumWidth+v,h=p.linesWidths,f=p.lines}}else f=t.split(` +`);for(var g=0;g=32&&t<=591||t>=880&&t<=4351||t>=4608&&t<=5119||t>=7680&&t<=8303}var Hx=hi(",&?/;] ".split(""),function(r,t){return r[t]=!0,r},{});function Vx(r){return Gx(r)?!!Hx[r]:!0}function yy(r,t,e,n,i){for(var a=[],o=[],s="",u="",l=0,f=0,h=0;he:i+f+v>e){f?(s||u)&&(d?(s||(s=u,u="",l=0,f=l),a.push(s),o.push(f-l),u+=c,l+=v,s="",f=l):(u&&(s+=u,u="",l=0),a.push(s),o.push(f),s=c,f=v)):d?(a.push(u),o.push(l),u=c,l=v):(a.push(c),o.push(v));continue}f+=v,d?(u+=c,l+=v):(u&&(s+=u,u="",l=0),s+=c)}return!a.length&&!s&&(s=r,u="",l=0),u&&(s+=u),s&&(a.push(s),o.push(f)),a.length===1&&(f+=i),{accumWidth:f,lines:a,linesWidths:o}}var Yl="__zr_style_"+Math.round(Math.random()*10),nn={shadowBlur:0,shadowOffsetX:0,shadowOffsetY:0,shadowColor:"#000",opacity:1,blend:"source-over"},Cs={style:{shadowBlur:!0,shadowOffsetX:!0,shadowOffsetY:!0,shadowColor:!0,opacity:!0}};nn[Yl]=!0;var Uv=["z","z2","invisible"],Wx=["invisible"],Ux=function(r){O(t,r);function t(e){return r.call(this,e)||this}return t.prototype._init=function(e){for(var n=dt(e),i=0;i1e-4){s[0]=r-e,s[1]=t-n,u[0]=r+e,u[1]=t+n;return}if(Ka[0]=wu(i)*e+r,Ka[1]=xu(i)*n+t,Qa[0]=wu(a)*e+r,Qa[1]=xu(a)*n+t,l(s,Ka,Qa),f(u,Ka,Qa),i=i%Or,i<0&&(i=i+Or),a=a%Or,a<0&&(a=a+Or),i>a&&!o?a+=Or:ii&&(Ja[0]=wu(v)*e+r,Ja[1]=xu(v)*n+t,l(s,Ja,s),f(u,Ja,u))}var lt={M:1,L:2,C:3,Q:4,A:5,Z:6,R:7},kr=[],Br=[],Te=[],rr=[],Ce=[],Me=[],bu=Math.min,Tu=Math.max,Nr=Math.cos,Fr=Math.sin,He=Math.abs,$l=Math.PI,vr=$l*2,Cu=typeof Float32Array<"u",wi=[];function Mu(r){var t=Math.round(r/$l*1e8)/1e8;return t%2*$l}function qx(r,t){var e=Mu(r[0]);e<0&&(e+=vr);var n=e-r[0],i=r[1];i+=n,!t&&i-e>=vr?i=e+vr:t&&e-i>=vr?i=e-vr:!t&&e>i?i=e+(vr-Mu(e-i)):t&&e0&&(this._ux=He(n/qo/t)||0,this._uy=He(n/qo/e)||0)},r.prototype.setDPR=function(t){this.dpr=t},r.prototype.setContext=function(t){this._ctx=t},r.prototype.getContext=function(){return this._ctx},r.prototype.beginPath=function(){return this._ctx&&this._ctx.beginPath(),this.reset(),this},r.prototype.reset=function(){this._saveData&&(this._len=0),this._pathSegLen&&(this._pathSegLen=null,this._pathLen=0),this._version++},r.prototype.moveTo=function(t,e){return this._drawPendingPt(),this.addData(lt.M,t,e),this._ctx&&this._ctx.moveTo(t,e),this._x0=t,this._y0=e,this._xi=t,this._yi=e,this},r.prototype.lineTo=function(t,e){var n=He(t-this._xi),i=He(e-this._yi),a=n>this._ux||i>this._uy;if(this.addData(lt.L,t,e),this._ctx&&a&&this._ctx.lineTo(t,e),a)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},r.prototype.bezierCurveTo=function(t,e,n,i,a,o){return this._drawPendingPt(),this.addData(lt.C,t,e,n,i,a,o),this._ctx&&this._ctx.bezierCurveTo(t,e,n,i,a,o),this._xi=a,this._yi=o,this},r.prototype.quadraticCurveTo=function(t,e,n,i){return this._drawPendingPt(),this.addData(lt.Q,t,e,n,i),this._ctx&&this._ctx.quadraticCurveTo(t,e,n,i),this._xi=n,this._yi=i,this},r.prototype.arc=function(t,e,n,i,a,o){this._drawPendingPt(),wi[0]=i,wi[1]=a,qx(wi,o),i=wi[0],a=wi[1];var s=a-i;return this.addData(lt.A,t,e,n,n,i,s,0,o?0:1),this._ctx&&this._ctx.arc(t,e,n,i,a,o),this._xi=Nr(a)*n+t,this._yi=Fr(a)*n+e,this},r.prototype.arcTo=function(t,e,n,i,a){return this._drawPendingPt(),this._ctx&&this._ctx.arcTo(t,e,n,i,a),this},r.prototype.rect=function(t,e,n,i){return this._drawPendingPt(),this._ctx&&this._ctx.rect(t,e,n,i),this.addData(lt.R,t,e,n,i),this},r.prototype.closePath=function(){this._drawPendingPt(),this.addData(lt.Z);var t=this._ctx,e=this._x0,n=this._y0;return t&&t.closePath(),this._xi=e,this._yi=n,this},r.prototype.fill=function(t){t&&t.fill(),this.toStatic()},r.prototype.stroke=function(t){t&&t.stroke(),this.toStatic()},r.prototype.len=function(){return this._len},r.prototype.setData=function(t){var e=t.length;!(this.data&&this.data.length===e)&&Cu&&(this.data=new Float32Array(e));for(var n=0;nf.length&&(this._expandData(),f=this.data);for(var h=0;h0&&(this._ctx&&this._ctx.lineTo(this._pendingPtX,this._pendingPtY),this._pendingPtDist=0)},r.prototype._expandData=function(){if(!(this.data instanceof Array)){for(var t=[],e=0;e11&&(this.data=new Float32Array(t)))}},r.prototype.getBoundingRect=function(){Te[0]=Te[1]=Ce[0]=Ce[1]=Number.MAX_VALUE,rr[0]=rr[1]=Me[0]=Me[1]=-Number.MAX_VALUE;var t=this.data,e=0,n=0,i=0,a=0,o;for(o=0;on||He(_)>i||c===e-1)&&(p=Math.sqrt(m*m+_*_),a=g,o=y);break}case lt.C:{var S=t[c++],w=t[c++],g=t[c++],y=t[c++],x=t[c++],b=t[c++];p=dS(a,o,S,w,g,y,x,b,10),a=x,o=b;break}case lt.Q:{var S=t[c++],w=t[c++],g=t[c++],y=t[c++];p=gS(a,o,S,w,g,y,10),a=g,o=y;break}case lt.A:var C=t[c++],T=t[c++],D=t[c++],A=t[c++],L=t[c++],I=t[c++],P=I+L;c+=1,d&&(s=Nr(L)*D+C,u=Fr(L)*A+T),p=Tu(D,A)*bu(vr,Math.abs(I)),a=Nr(P)*D+C,o=Fr(P)*A+T;break;case lt.R:{s=a=t[c++],u=o=t[c++];var R=t[c++],E=t[c++];p=R*2+E*2;break}case lt.Z:{var m=s-a,_=u-o;p=Math.sqrt(m*m+_*_),a=s,o=u;break}}p>=0&&(l[h++]=p,f+=p)}return this._pathLen=f,f},r.prototype.rebuildPath=function(t,e){var n=this.data,i=this._ux,a=this._uy,o=this._len,s,u,l,f,h,c,v=e<1,d,p,g=0,y=0,m,_=0,S,w;if(v&&(this._pathSegLen||this._calculateLength(),d=this._pathSegLen,p=this._pathLen,m=e*p,!m))return;t:for(var x=0;x0&&(t.lineTo(S,w),_=0),b){case lt.M:s=l=n[x++],u=f=n[x++],t.moveTo(l,f);break;case lt.L:{h=n[x++],c=n[x++];var T=He(h-l),D=He(c-f);if(T>i||D>a){if(v){var A=d[y++];if(g+A>m){var L=(m-g)/A;t.lineTo(l*(1-L)+h*L,f*(1-L)+c*L);break t}g+=A}t.lineTo(h,c),l=h,f=c,_=0}else{var I=T*T+D*D;I>_&&(S=h,w=c,_=I)}break}case lt.C:{var P=n[x++],R=n[x++],E=n[x++],H=n[x++],B=n[x++],F=n[x++];if(v){var A=d[y++];if(g+A>m){var L=(m-g)/A;wr(l,P,E,B,L,kr),wr(f,R,H,F,L,Br),t.bezierCurveTo(kr[1],Br[1],kr[2],Br[2],kr[3],Br[3]);break t}g+=A}t.bezierCurveTo(P,R,E,H,B,F),l=B,f=F;break}case lt.Q:{var P=n[x++],R=n[x++],E=n[x++],H=n[x++];if(v){var A=d[y++];if(g+A>m){var L=(m-g)/A;Zo(l,P,E,L,kr),Zo(f,R,H,L,Br),t.quadraticCurveTo(kr[1],Br[1],kr[2],Br[2]);break t}g+=A}t.quadraticCurveTo(P,R,E,H),l=E,f=H;break}case lt.A:var $=n[x++],et=n[x++],st=n[x++],ft=n[x++],ht=n[x++],pt=n[x++],Kt=n[x++],ze=!n[x++],Ge=st>ft?st:ft,Lt=He(st-ft)>.001,xt=ht+pt,X=!1;if(v){var A=d[y++];g+A>m&&(xt=ht+pt*(m-g)/A,X=!0),g+=A}if(Lt&&t.ellipse?t.ellipse($,et,st,ft,Kt,ht,xt,ze):t.arc($,et,Ge,ht,xt,ze),X)break t;C&&(s=Nr(ht)*st+$,u=Fr(ht)*ft+et),l=Nr(xt)*st+$,f=Fr(xt)*ft+et;break;case lt.R:s=l=n[x],u=f=n[x+1],h=n[x++],c=n[x++];var nt=n[x++],Mr=n[x++];if(v){var A=d[y++];if(g+A>m){var Bt=m-g;t.moveTo(h,c),t.lineTo(h+bu(Bt,nt),c),Bt-=nt,Bt>0&&t.lineTo(h+nt,c+bu(Bt,Mr)),Bt-=Mr,Bt>0&&t.lineTo(h+Tu(nt-Bt,0),c+Mr),Bt-=nt,Bt>0&&t.lineTo(h,c+Tu(Mr-Bt,0));break t}g+=A}t.rect(h,c,nt,Mr);break;case lt.Z:if(v){var A=d[y++];if(g+A>m){var L=(m-g)/A;t.lineTo(l*(1-L)+s*L,f*(1-L)+u*L);break t}g+=A}t.closePath(),l=s,f=u}}},r.prototype.clone=function(){var t=new r,e=this.data;return t.data=e.slice?e.slice():Array.prototype.slice.call(e),t._len=this._len,t},r.CMD=lt,r.initDefaultProps=function(){var t=r.prototype;t._saveData=!0,t._ux=0,t._uy=0,t._pendingPtDist=0,t._version=0}(),r}();const Ke=Kx;function bn(r,t,e,n,i,a,o){if(i===0)return!1;var s=i,u=0,l=r;if(o>t+s&&o>n+s||or+s&&a>e+s||at+h&&f>n+h&&f>a+h&&f>s+h||fr+h&&l>e+h&&l>i+h&&l>o+h||lt+l&&u>n+l&&u>a+l||ur+l&&s>e+l&&s>i+l||se||f+li&&(i+=bi);var c=Math.atan2(u,s);return c<0&&(c+=bi),c>=n&&c<=i||c+bi>=n&&c+bi<=i}function zr(r,t,e,n,i,a){if(a>t&&a>n||ai?s:0}var nr=Ke.CMD,Gr=Math.PI*2,tw=1e-4;function ew(r,t){return Math.abs(r-t)t&&l>n&&l>a&&l>s||l1&&rw(),v=Tt(t,n,a,s,oe[0]),c>1&&(d=Tt(t,n,a,s,oe[1]))),c===2?gt&&s>n&&s>a||s=0&&l<=1){for(var f=0,h=Ot(t,n,a,l),c=0;ce||s<-e)return 0;var u=Math.sqrt(e*e-s*s);Ft[0]=-u,Ft[1]=u;var l=Math.abs(n-i);if(l<1e-4)return 0;if(l>=Gr-1e-4){n=0,i=Gr;var f=a?1:-1;return o>=Ft[0]+r&&o<=Ft[1]+r?f:0}if(n>i){var h=n;n=i,i=h}n<0&&(n+=Gr,i+=Gr);for(var c=0,v=0;v<2;v++){var d=Ft[v];if(d+r>o){var p=Math.atan2(s,d),f=a?1:-1;p<0&&(p=Gr+p),(p>=n&&p<=i||p+Gr>=n&&p+Gr<=i)&&(p>Math.PI/2&&p1&&(e||(s+=zr(u,l,f,h,n,i))),g&&(u=a[d],l=a[d+1],f=u,h=l),p){case nr.M:f=a[d++],h=a[d++],u=f,l=h;break;case nr.L:if(e){if(bn(u,l,a[d],a[d+1],t,n,i))return!0}else s+=zr(u,l,a[d],a[d+1],n,i)||0;u=a[d++],l=a[d++];break;case nr.C:if(e){if(Qx(u,l,a[d++],a[d++],a[d++],a[d++],a[d],a[d+1],t,n,i))return!0}else s+=nw(u,l,a[d++],a[d++],a[d++],a[d++],a[d],a[d+1],n,i)||0;u=a[d++],l=a[d++];break;case nr.Q:if(e){if(Jx(u,l,a[d++],a[d++],a[d],a[d+1],t,n,i))return!0}else s+=iw(u,l,a[d++],a[d++],a[d],a[d+1],n,i)||0;u=a[d++],l=a[d++];break;case nr.A:var y=a[d++],m=a[d++],_=a[d++],S=a[d++],w=a[d++],x=a[d++];d+=1;var b=!!(1-a[d++]);c=Math.cos(w)*_+y,v=Math.sin(w)*S+m,g?(f=c,h=v):s+=zr(u,l,c,v,n,i);var C=(n-y)*S/_+y;if(e){if(jx(y,m,S,w,w+x,b,t,C,i))return!0}else s+=aw(y,m,S,w,w+x,b,C,i);u=Math.cos(w+x)*_+y,l=Math.sin(w+x)*S+m;break;case nr.R:f=u=a[d++],h=l=a[d++];var T=a[d++],D=a[d++];if(c=f+T,v=h+D,e){if(bn(f,h,c,h,t,n,i)||bn(c,h,c,v,t,n,i)||bn(c,v,f,v,t,n,i)||bn(f,v,f,h,t,n,i))return!0}else s+=zr(c,h,c,v,n,i),s+=zr(f,v,f,h,n,i);break;case nr.Z:if(e){if(bn(u,l,f,h,t,n,i))return!0}else s+=zr(u,l,f,h,n,i);u=f,l=h;break}}return!e&&!ew(l,h)&&(s+=zr(u,l,f,h,n,i)||0),s!==0}function ow(r,t,e){return _y(r,0,!1,t,e)}function sw(r,t,e,n){return _y(r,t,!0,e,n)}var Sy=K({fill:"#000",stroke:null,strokePercent:1,fillOpacity:1,strokeOpacity:1,lineDashOffset:0,lineWidth:1,lineCap:"butt",miterLimit:10,strokeNoScale:!1,strokeFirst:!1},nn),uw={style:K({fill:!0,stroke:!0,strokePercent:!0,fillOpacity:!0,strokeOpacity:!0,lineDashOffset:!0,lineWidth:!0,miterLimit:!0},Cs.style)},Du=fa.concat(["invisible","culling","z","z2","zlevel","parent"]),lw=function(r){O(t,r);function t(e){return r.call(this,e)||this}return t.prototype.update=function(){var e=this;r.prototype.update.call(this);var n=this.style;if(n.decal){var i=this._decalEl=this._decalEl||new t;i.buildPath===t.prototype.buildPath&&(i.buildPath=function(u){e.buildPath(u,e.shape)}),i.silent=!0;var a=i.style;for(var o in n)a[o]!==n[o]&&(a[o]=n[o]);a.fill=n.fill?n.decal:null,a.decal=null,a.shadowColor=null,n.strokeFirst&&(a.stroke=null);for(var s=0;s.5?Vl:n>.2?HS:Wl}else if(e)return Wl}return Vl},t.prototype.getInsideTextStroke=function(e){var n=this.style.fill;if(G(n)){var i=this.__zr,a=!!(i&&i.isDarkMode()),o=Xo(e,0)0))},t.prototype.hasFill=function(){var e=this.style,n=e.fill;return n!=null&&n!=="none"},t.prototype.getBoundingRect=function(){var e=this._rect,n=this.style,i=!e;if(i){var a=!1;this.path||(a=!0,this.createPathProxy());var o=this.path;(a||this.__dirty&Nn)&&(o.beginPath(),this.buildPath(o,this.shape,!1),this.pathUpdated()),e=o.getBoundingRect()}if(this._rect=e,this.hasStroke()&&this.path&&this.path.len()>0){var s=this._rectStroke||(this._rectStroke=e.clone());if(this.__dirty||i){s.copy(e);var u=n.strokeNoScale?this.getLineScale():1,l=n.lineWidth;if(!this.hasFill()){var f=this.strokeContainThreshold;l=Math.max(l,f==null?4:f)}u>1e-10&&(s.width+=l/u,s.height+=l/u,s.x-=l/u/2,s.y-=l/u/2)}return s}return e},t.prototype.contain=function(e,n){var i=this.transformCoordToLocal(e,n),a=this.getBoundingRect(),o=this.style;if(e=i[0],n=i[1],a.contain(e,n)){var s=this.path;if(this.hasStroke()){var u=o.lineWidth,l=o.strokeNoScale?this.getLineScale():1;if(l>1e-10&&(this.hasFill()||(u=Math.max(u,this.strokeContainThreshold)),sw(s,u/l,e,n)))return!0}if(this.hasFill())return ow(s,e,n)}return!1},t.prototype.dirtyShape=function(){this.__dirty|=Nn,this._rect&&(this._rect=null),this._decalEl&&this._decalEl.dirtyShape(),this.markRedraw()},t.prototype.dirty=function(){this.dirtyStyle(),this.dirtyShape()},t.prototype.animateShape=function(e){return this.animate("shape",e)},t.prototype.updateDuringAnimation=function(e){e==="style"?this.dirtyStyle():e==="shape"?this.dirtyShape():this.markRedraw()},t.prototype.attrKV=function(e,n){e==="shape"?this.setShape(n):r.prototype.attrKV.call(this,e,n)},t.prototype.setShape=function(e,n){var i=this.shape;return i||(i=this.shape={}),typeof e=="string"?i[e]=n:k(i,e),this.dirtyShape(),this},t.prototype.shapeChanged=function(){return!!(this.__dirty&Nn)},t.prototype.createStyle=function(e){return _s(Sy,e)},t.prototype._innerSaveToNormal=function(e){r.prototype._innerSaveToNormal.call(this,e);var n=this._normalState;e.shape&&!n.shape&&(n.shape=k({},this.shape))},t.prototype._applyStateObj=function(e,n,i,a,o,s){r.prototype._applyStateObj.call(this,e,n,i,a,o,s);var u=!(n&&a),l;if(n&&n.shape?o?a?l=n.shape:(l=k({},i.shape),k(l,n.shape)):(l=k({},a?this.shape:i.shape),k(l,n.shape)):u&&(l=i.shape),l)if(o){this.shape=k({},this.shape);for(var f={},h=dt(l),c=0;c0},t.prototype.hasFill=function(){var e=this.style,n=e.fill;return n!=null&&n!=="none"},t.prototype.createStyle=function(e){return _s(fw,e)},t.prototype.setBoundingRect=function(e){this._rect=e},t.prototype.getBoundingRect=function(){var e=this.style;if(!this._rect){var n=e.text;n!=null?n+="":n="";var i=ws(n,e.font,e.textAlign,e.textBaseline);if(i.x+=e.x||0,i.y+=e.y||0,this.hasStroke()){var a=e.lineWidth;i.x-=a/2,i.y-=a/2,i.width+=a,i.height+=a}this._rect=i}return this._rect},t.initDefaultProps=function(){var e=t.prototype;e.dirtyRectTolerance=10}(),t}(ci);xy.prototype.type="tspan";const Zl=xy;var hw=K({x:0,y:0},nn),vw={style:K({x:!0,y:!0,width:!0,height:!0,sx:!0,sy:!0,sWidth:!0,sHeight:!0},Cs.style)};function cw(r){return!!(r&&typeof r!="string"&&r.width&&r.height)}var wy=function(r){O(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return t.prototype.createStyle=function(e){return _s(hw,e)},t.prototype._getSize=function(e){var n=this.style,i=n[e];if(i!=null)return i;var a=cw(n.image)?n.image:this.__image;if(!a)return 0;var o=e==="width"?"height":"width",s=n[o];return s==null?a[e]:a[e]/a[o]*s},t.prototype.getWidth=function(){return this._getSize("width")},t.prototype.getHeight=function(){return this._getSize("height")},t.prototype.getAnimationStyleProps=function(){return vw},t.prototype.getBoundingRect=function(){var e=this.style;return this._rect||(this._rect=new rt(e.x||0,e.y||0,this.getWidth(),this.getHeight())),this._rect},t}(ci);wy.prototype.type="image";const gn=wy;function dw(r,t){var e=t.x,n=t.y,i=t.width,a=t.height,o=t.r,s,u,l,f;i<0&&(e=e+i,i=-i),a<0&&(n=n+a,a=-a),typeof o=="number"?s=u=l=f=o:o instanceof Array?o.length===1?s=u=l=f=o[0]:o.length===2?(s=l=o[0],u=f=o[1]):o.length===3?(s=o[0],u=f=o[1],l=o[2]):(s=o[0],u=o[1],l=o[2],f=o[3]):s=u=l=f=0;var h;s+u>i&&(h=s+u,s*=i/h,u*=i/h),l+f>i&&(h=l+f,l*=i/h,f*=i/h),u+l>a&&(h=u+l,u*=a/h,l*=a/h),s+f>a&&(h=s+f,s*=a/h,f*=a/h),r.moveTo(e+s,n),r.lineTo(e+i-u,n),u!==0&&r.arc(e+i-u,n+u,u,-Math.PI/2,0),r.lineTo(e+i,n+a-l),l!==0&&r.arc(e+i-l,n+a-l,l,0,Math.PI/2),r.lineTo(e+f,n+a),f!==0&&r.arc(e+f,n+a-f,f,Math.PI/2,Math.PI),r.lineTo(e,n+s),s!==0&&r.arc(e+s,n+s,s,Math.PI,Math.PI*1.5)}var Wn=Math.round;function by(r,t,e){if(!!t){var n=t.x1,i=t.x2,a=t.y1,o=t.y2;r.x1=n,r.x2=i,r.y1=a,r.y2=o;var s=e&&e.lineWidth;return s&&(Wn(n*2)===Wn(i*2)&&(r.x1=r.x2=jr(n,s,!0)),Wn(a*2)===Wn(o*2)&&(r.y1=r.y2=jr(a,s,!0))),r}}function Ty(r,t,e){if(!!t){var n=t.x,i=t.y,a=t.width,o=t.height;r.x=n,r.y=i,r.width=a,r.height=o;var s=e&&e.lineWidth;return s&&(r.x=jr(n,s,!0),r.y=jr(i,s,!0),r.width=Math.max(jr(n+a,s,!1)-r.x,a===0?0:1),r.height=Math.max(jr(i+o,s,!1)-r.y,o===0?0:1)),r}}function jr(r,t,e){if(!t)return r;var n=Wn(r*2);return(n+Wn(t))%2===0?n/2:(n+(e?1:-1))/2}var pw=function(){function r(){this.x=0,this.y=0,this.width=0,this.height=0}return r}(),gw={},Cy=function(r){O(t,r);function t(e){return r.call(this,e)||this}return t.prototype.getDefaultShape=function(){return new pw},t.prototype.buildPath=function(e,n){var i,a,o,s;if(this.subPixelOptimize){var u=Ty(gw,n,this.style);i=u.x,a=u.y,o=u.width,s=u.height,u.r=n.r,n=u}else i=n.x,a=n.y,o=n.width,s=n.height;n.r?dw(e,n):e.rect(i,a,o,s)},t.prototype.isZeroArea=function(){return!this.shape.width||!this.shape.height},t}(at);Cy.prototype.type="rect";const yt=Cy;var qv={fill:"#000"},Kv=2,yw={style:K({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},Cs.style)},My=function(r){O(t,r);function t(e){var n=r.call(this)||this;return n.type="text",n._children=[],n._defaultStyle=qv,n.attr(e),n}return t.prototype.childrenRef=function(){return this._children},t.prototype.update=function(){r.prototype.update.call(this),this.styleChanged()&&this._updateSubTexts();for(var e=0;e0,L=e.width!=null&&(e.overflow==="truncate"||e.overflow==="break"||e.overflow==="breakAll"),I=o.calculatedLineHeight,P=0;P=0&&(P=x[I],P.align==="right");)this._placeToken(P,e,C,y,L,"right",_),T-=P.width,L-=P.width,I--;for(A+=(a-(A-g)-(m-L)-T)/2;D<=I;)P=x[D],this._placeToken(P,e,C,y,A+P.width/2,"center",_),A+=P.width,D++;y+=C}},t.prototype._placeToken=function(e,n,i,a,o,s,u){var l=n.rich[e.styleName]||{};l.text=e.text;var f=e.verticalAlign,h=a+i/2;f==="top"?h=a+e.height/2:f==="bottom"&&(h=a+i-e.height/2);var c=!e.isLineHolder&&Au(l);c&&this._renderBackground(l,n,s==="right"?o-e.width:s==="center"?o-e.width/2:o,h-e.height/2,e.width,e.height);var v=!!l.backgroundColor,d=e.textPadding;d&&(o=rc(o,s,d),h-=e.height/2-d[0]-e.innerHeight/2);var p=this._getOrCreateChild(Zl),g=p.createStyle();p.useStyle(g);var y=this._defaultStyle,m=!1,_=0,S=ec("fill"in l?l.fill:"fill"in n?n.fill:(m=!0,y.fill)),w=tc("stroke"in l?l.stroke:"stroke"in n?n.stroke:!v&&!u&&(!y.autoStroke||m)?(_=Kv,y.stroke):null),x=l.textShadowBlur>0||n.textShadowBlur>0;g.text=e.text,g.x=o,g.y=h,x&&(g.shadowBlur=l.textShadowBlur||n.textShadowBlur||0,g.shadowColor=l.textShadowColor||n.textShadowColor||"transparent",g.shadowOffsetX=l.textShadowOffsetX||n.textShadowOffsetX||0,g.shadowOffsetY=l.textShadowOffsetY||n.textShadowOffsetY||0),g.textAlign=s,g.textBaseline="middle",g.font=e.font||un,g.opacity=Co(l.opacity,n.opacity,1),Jv(g,l),w&&(g.lineWidth=Co(l.lineWidth,n.lineWidth,_),g.lineDash=Q(l.lineDash,n.lineDash),g.lineDashOffset=n.lineDashOffset||0,g.stroke=w),S&&(g.fill=S);var b=e.contentWidth,C=e.contentHeight;p.setBoundingRect(new rt(Ui(g.x,b,g.textAlign),Fn(g.y,C,g.textBaseline),b,C))},t.prototype._renderBackground=function(e,n,i,a,o,s){var u=e.backgroundColor,l=e.borderWidth,f=e.borderColor,h=u&&u.image,c=u&&!h,v=e.borderRadius,d=this,p,g;if(c||e.lineHeight||l&&f){p=this._getOrCreateChild(yt),p.useStyle(p.createStyle()),p.style.fill=null;var y=p.shape;y.x=i,y.y=a,y.width=o,y.height=s,y.r=v,p.dirtyShape()}if(c){var m=p.style;m.fill=u||null,m.fillOpacity=Q(e.fillOpacity,1)}else if(h){g=this._getOrCreateChild(gn),g.onload=function(){d.dirtyStyle()};var _=g.style;_.image=u.image,_.x=i,_.y=a,_.width=o,_.height=s}if(l&&f){var m=p.style;m.lineWidth=l,m.stroke=f,m.strokeOpacity=Q(e.strokeOpacity,1),m.lineDash=e.borderDash,m.lineDashOffset=e.borderDashOffset||0,p.strokeContainThreshold=0,p.hasFill()&&p.hasStroke()&&(m.strokeFirst=!0,m.lineWidth*=2)}var S=(p||g).style;S.shadowBlur=e.shadowBlur||0,S.shadowColor=e.shadowColor||"transparent",S.shadowOffsetX=e.shadowOffsetX||0,S.shadowOffsetY=e.shadowOffsetY||0,S.opacity=Co(e.opacity,n.opacity,1)},t.makeFont=function(e){var n="";return xw(e)&&(n=[e.fontStyle,e.fontWeight,Sw(e.fontSize),e.fontFamily||"sans-serif"].join(" ")),n&&Ie(n)||e.textFont||e.font},t}(ci),mw={left:!0,right:1,center:1},_w={top:1,bottom:1,middle:1},Qv=["fontStyle","fontWeight","fontSize","fontFamily"];function Sw(r){return typeof r=="string"&&(r.indexOf("px")!==-1||r.indexOf("rem")!==-1||r.indexOf("em")!==-1)?r:isNaN(+r)?Vf+"px":r+"px"}function Jv(r,t){for(var e=0;e=0,a=!1;if(r instanceof at){var o=Dy(r),s=i&&o.selectFill||o.normalFill,u=i&&o.selectStroke||o.normalStroke;if(Tn(s)||Tn(u)){n=n||{};var l=n.style||{};l.fill==="inherit"?(a=!0,n=k({},n),l=k({},l),l.fill=s):!Tn(l.fill)&&Tn(s)?(a=!0,n=k({},n),l=k({},l),l.fill=Cv(s)):!Tn(l.stroke)&&Tn(u)&&(a||(n=k({},n),l=k({},l)),l.stroke=Cv(u)),n.style=l}}if(n&&n.z2==null){a||(n=k({},n));var f=r.z2EmphasisLift;n.z2=r.z2+(f!=null?f:Tw)}return n}function Iw(r,t,e){if(e&&e.z2==null){e=k({},e);var n=r.z2SelectLift;e.z2=r.z2+(n!=null?n:Cw)}return e}function Pw(r,t,e){var n=tt(r.currentStates,t)>=0,i=r.style.opacity,a=n?null:Aw(r,["opacity"],t,{opacity:1});e=e||{};var o=e.style||{};return o.opacity==null&&(e=k({},e),o=k({opacity:n?i:a.opacity*.1},o),e.style=o),e}function Lu(r,t){var e=this.states[r];if(this.style){if(r==="emphasis")return Lw(this,r,t,e);if(r==="blur")return Pw(this,r,e);if(r==="select")return Iw(this,r,e)}return e}function Rw(r){r.stateProxy=Lu;var t=r.getTextContent(),e=r.getTextGuideLine();t&&(t.stateProxy=Lu),e&&(e.stateProxy=Lu)}function uc(r,t){!Oy(r,t)&&!r.__highByOuter&&je(r,Ay)}function lc(r,t){!Oy(r,t)&&!r.__highByOuter&&je(r,Ly)}function ii(r,t){r.__highByOuter|=1<<(t||0),je(r,Ay)}function ai(r,t){!(r.__highByOuter&=~(1<<(t||0)))&&je(r,Ly)}function Ew(r){je(r,ah)}function Py(r){je(r,Iy)}function Ry(r){je(r,Mw)}function Ey(r){je(r,Dw)}function Oy(r,t){return r.__highDownSilentOnTouch&&t.zrByTouch}function ky(r){var t=r.getModel(),e=[],n=[];t.eachComponent(function(i,a){var o=nh(a),s=i==="series",u=s?r.getViewOfSeriesModel(a):r.getViewOfComponentModel(a);!s&&n.push(u),o.isBlured&&(u.group.traverse(function(l){Iy(l)}),s&&e.push(a)),o.isBlured=!1}),M(n,function(i){i&&i.toggleBlurSeries&&i.toggleBlurSeries(e,!1,t)})}function Xl(r,t,e,n){var i=n.getModel();e=e||"coordinateSystem";function a(l,f){for(var h=0;h0){var s={dataIndex:o,seriesIndex:e.seriesIndex};a!=null&&(s.dataType=a),t.push(s)}})}),t}function Jo(r,t,e){By(r,!0),je(r,Rw),Gw(r,t,e)}function zw(r){By(r,!1)}function Kl(r,t,e,n){n?zw(r):Jo(r,t,e)}function Gw(r,t,e){var n=ot(r);t!=null?(n.focus=t,n.blurScope=e):n.focus&&(n.focus=null)}var hc=["emphasis","blur","select"],Hw={itemStyle:"getItemStyle",lineStyle:"getLineStyle",areaStyle:"getAreaStyle"};function vc(r,t,e,n){e=e||"itemStyle";for(var i=0;i1&&(o*=Iu(d),s*=Iu(d));var p=(i===a?-1:1)*Iu((o*o*(s*s)-o*o*(v*v)-s*s*(c*c))/(o*o*(v*v)+s*s*(c*c)))||0,g=p*o*v/s,y=p*-s*c/o,m=(r+e)/2+to(h)*g-ja(h)*y,_=(t+n)/2+ja(h)*g+to(h)*y,S=gc([1,0],[(c-g)/o,(v-y)/s]),w=[(c-g)/o,(v-y)/s],x=[(-1*c-g)/o,(-1*v-y)/s],b=gc(w,x);if(jl(w,x)<=-1&&(b=Ti),jl(w,x)>=1&&(b=0),b<0){var C=Math.round(b/Ti*1e6)/1e6;b=Ti*2+C%2*Ti}f.addData(l,m,_,o,s,S,b,h,a)}var $w=/([mlvhzcqtsa])([^mlvhzcqtsa]*)/ig,Zw=/-?([0-9]*\.)?[0-9]+([eE]-?[0-9]+)?/g;function Xw(r){var t=new Ke;if(!r)return t;var e=0,n=0,i=e,a=n,o,s=Ke.CMD,u=r.match($w);if(!u)return t;for(var l=0;lP*P+R*R&&(C=D,T=A),{cx:C,cy:T,x0:-f,y0:-h,x1:C*(i/w-1),y1:T*(i/w-1)}}function rb(r){var t;if(N(r)){var e=r.length;if(!e)return r;e===1?t=[r[0],r[0],0,0]:e===2?t=[r[0],r[0],r[1],r[1]]:e===3?t=r.concat(r[2]):t=r}else t=[r,r,r,r];return t}function nb(r,t){var e,n=$i(t.r,0),i=$i(t.r0||0,0),a=n>0,o=i>0;if(!(!a&&!o)){if(a||(n=i,i=0),i>n){var s=n;n=i,i=s}var u=t.startAngle,l=t.endAngle;if(!(isNaN(u)||isNaN(l))){var f=t.cx,h=t.cy,c=!!t.clockwise,v=mc(l-u),d=v>Pu&&v%Pu;if(d>ge&&(v=d),!(n>ge))r.moveTo(f,h);else if(v>Pu-ge)r.moveTo(f+n*Mn(u),h+n*Hr(u)),r.arc(f,h,n,u,l,!c),i>ge&&(r.moveTo(f+i*Mn(l),h+i*Hr(l)),r.arc(f,h,i,l,u,c));else{var p=void 0,g=void 0,y=void 0,m=void 0,_=void 0,S=void 0,w=void 0,x=void 0,b=void 0,C=void 0,T=void 0,D=void 0,A=void 0,L=void 0,I=void 0,P=void 0,R=n*Mn(u),E=n*Hr(u),H=i*Mn(l),B=i*Hr(l),F=v>ge;if(F){var $=t.cornerRadius;$&&(e=rb($),p=e[0],g=e[1],y=e[2],m=e[3]);var et=mc(n-i)/2;if(_=De(et,y),S=De(et,m),w=De(et,p),x=De(et,g),T=b=$i(_,S),D=C=$i(w,x),(b>ge||C>ge)&&(A=n*Mn(l),L=n*Hr(l),I=i*Mn(u),P=i*Hr(u),vge){var Lt=De(y,T),xt=De(m,T),X=eo(I,P,R,E,n,Lt,c),nt=eo(A,L,H,B,n,xt,c);r.moveTo(f+X.cx+X.x0,h+X.cy+X.y0),T0&&r.arc(f+X.cx,h+X.cy,Lt,It(X.y0,X.x0),It(X.y1,X.x1),!c),r.arc(f,h,n,It(X.cy+X.y1,X.cx+X.x1),It(nt.cy+nt.y1,nt.cx+nt.x1),!c),xt>0&&r.arc(f+nt.cx,h+nt.cy,xt,It(nt.y1,nt.x1),It(nt.y0,nt.x0),!c))}else r.moveTo(f+R,h+E),r.arc(f,h,n,u,l,!c);if(!(i>ge)||!F)r.lineTo(f+H,h+B);else if(D>ge){var Lt=De(p,D),xt=De(g,D),X=eo(H,B,A,L,i,-xt,c),nt=eo(R,E,I,P,i,-Lt,c);r.lineTo(f+X.cx+X.x0,h+X.cy+X.y0),D0&&r.arc(f+X.cx,h+X.cy,xt,It(X.y0,X.x0),It(X.y1,X.x1),!c),r.arc(f,h,i,It(X.cy+X.y1,X.cx+X.x1),It(nt.cy+nt.y1,nt.cx+nt.x1),c),Lt>0&&r.arc(f+nt.cx,h+nt.cy,Lt,It(nt.y1,nt.x1),It(nt.y0,nt.x0),!c))}else r.lineTo(f+H,h+B),r.arc(f,h,i,l,u,c)}r.closePath()}}}var ib=function(){function r(){this.cx=0,this.cy=0,this.r0=0,this.r=0,this.startAngle=0,this.endAngle=Math.PI*2,this.clockwise=!0,this.cornerRadius=0}return r}(),Yy=function(r){O(t,r);function t(e){return r.call(this,e)||this}return t.prototype.getDefaultShape=function(){return new ib},t.prototype.buildPath=function(e,n){nb(e,n)},t.prototype.isZeroArea=function(){return this.shape.startAngle===this.shape.endAngle||this.shape.r===this.shape.r0},t}(at);Yy.prototype.type="sector";const ca=Yy;var ab=function(){function r(){this.cx=0,this.cy=0,this.r=0,this.r0=0}return r}(),$y=function(r){O(t,r);function t(e){return r.call(this,e)||this}return t.prototype.getDefaultShape=function(){return new ab},t.prototype.buildPath=function(e,n){var i=n.cx,a=n.cy,o=Math.PI*2;e.moveTo(i+n.r,a),e.arc(i,a,n.r,0,o,!1),e.moveTo(i+n.r0,a),e.arc(i,a,n.r0,0,o,!0)},t}(at);$y.prototype.type="ring";const Zy=$y;function ob(r,t,e,n){var i=[],a=[],o=[],s=[],u,l,f,h;if(n){f=[1/0,1/0],h=[-1/0,-1/0];for(var c=0,v=r.length;c=2){if(n){var a=ob(i,n,e,t.smoothConstraint);r.moveTo(i[0][0],i[0][1]);for(var o=i.length,s=0;s<(e?o:o-1);s++){var u=a[s*2],l=a[s*2+1],f=i[(s+1)%o];r.bezierCurveTo(u[0],u[1],l[0],l[1],f[0],f[1])}}else{r.moveTo(i[0][0],i[0][1]);for(var s=1,h=i.length;sWr[1]){if(s=!1,a)return s;var f=Math.abs(Wr[0]-Vr[1]),h=Math.abs(Vr[0]-Wr[1]);Math.min(f,h)>i.len()&&(f0){var h=f.duration,c=f.delay,v=f.easing,d={duration:h,delay:c||0,easing:v,done:a,force:!!a||!!o,setToFinal:!l,scope:r,during:o};s?t.animateFrom(e,d):t.animateTo(e,d)}else t.stopAnimation(),!s&&t.attr(e),o&&o(1),a&&a()}function xe(r,t,e,n,i,a){fh("update",r,t,e,n,i,a)}function Qe(r,t,e,n,i,a){fh("enter",r,t,e,n,i,a)}function Qn(r){if(!r.__zr)return!0;for(var t=0;tMath.abs(a[1])?a[0]>0?"right":"left":a[1]>0?"bottom":"top"}function xc(r){return!r.isGroup}function Eb(r){return r.shape!=null}function sm(r,t,e){if(!r||!t)return;function n(o){var s={};return o.traverse(function(u){xc(u)&&u.anid&&(s[u.anid]=u)}),s}function i(o){var s={x:o.x,y:o.y,rotation:o.rotation};return Eb(o)&&(s.shape=k({},o.shape)),s}var a=n(r);t.traverse(function(o){if(xc(o)&&o.anid){var s=a[o.anid];if(s){var u=i(o);o.attr(i(s)),xe(o,u,e,ot(o).dataIndex)}}})}function um(r,t){return z(r,function(e){var n=e[0];n=es(n,t.x),n=rs(n,t.x+t.width);var i=e[1];return i=es(i,t.y),i=rs(i,t.y+t.height),[n,i]})}function Ob(r,t){var e=es(r.x,t.x),n=rs(r.x+r.width,t.x+t.width),i=es(r.y,t.y),a=rs(r.y+r.height,t.y+t.height);if(n>=e&&a>=i)return{x:e,y:i,width:n-e,height:a-i}}function Ps(r,t,e){var n=k({rectHover:!0},t),i=n.style={strokeNoScale:!0};if(e=e||{x:-1,y:-1,width:2,height:2},r)return r.indexOf("image://")===0?(i.image=r.slice(8),K(i,e),new gn(n)):hh(r.replace("path://",""),n,e,"center")}function kb(r,t,e,n,i){for(var a=0,o=i[i.length-1];a1)return!1;var g=Ru(v,d,f,h)/c;return!(g<0||g>1)}function Ru(r,t,e,n){return r*n-e*t}function Bb(r){return r<=1e-6&&r>=-1e-6}function ka(r){var t=r.itemTooltipOption,e=r.componentModel,n=r.itemName,i=G(t)?{formatter:t}:t,a=e.mainType,o=e.componentIndex,s={componentType:a,name:n,$vars:["name"]};s[a+"Index"]=o;var u=r.formatterParamsExtra;u&&M(dt(u),function(f){ke(s,f)||(s[f]=u[f],s.$vars.push(f))});var l=ot(r.el);l.componentMainType=a,l.componentIndex=o,l.tooltipConfig={name:n,option:K({content:n,encodeHTMLContent:!0,formatterParams:s},i)}}function wc(r,t){var e;r.isGroup&&(e=t(r)),e||r.traverse(t)}function ch(r,t){if(r)if(N(r))for(var e=0;e=0&&s.push(u)}),s}}function gh(r,t){return j(j({},r,!0),t,!0)}const Qb={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:". "}}}},Jb={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:""}}}};var ns="ZH",yh="EN",Jn=yh,Bo={},mh={},dm=J.domSupported?function(){var r=(document.documentElement.lang||navigator.language||navigator.browserLanguage||Jn).toUpperCase();return r.indexOf(ns)>-1?ns:Jn}():Jn;function pm(r,t){r=r.toUpperCase(),mh[r]=new At(t),Bo[r]=t}function jb(r){if(G(r)){var t=Bo[r.toUpperCase()]||{};return r===ns||r===yh?q(t):j(q(t),q(Bo[Jn]),!1)}else return j(q(r),q(Bo[Jn]),!1)}function tT(r){return mh[r]}function eT(){return mh[Jn]}pm(yh,Qb);pm(ns,Jb);var _h=1e3,Sh=_h*60,na=Sh*60,ue=na*24,Ac=ue*365,Zi={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}"},io="{yyyy}-{MM}-{dd}",Lc={year:"{yyyy}",month:"{yyyy}-{MM}",day:io,hour:io+" "+Zi.hour,minute:io+" "+Zi.minute,second:io+" "+Zi.second,millisecond:Zi.none},ku=["year","month","day","hour","minute","second","millisecond"],gm=["year","half-year","quarter","month","week","half-week","day","half-day","quarter-day","hour","minute","second","millisecond"];function ir(r,t){return r+="","0000".substr(0,t-r.length)+r}function jn(r){switch(r){case"half-year":case"quarter":return"month";case"week":case"half-week":return"day";case"half-day":case"quarter-day":return"hour";default:return r}}function rT(r){return r===jn(r)}function nT(r){switch(r){case"year":case"month":return"day";case"millisecond":return"millisecond";default:return"second"}}function Os(r,t,e,n){var i=qe(r),a=i[xh(e)](),o=i[ti(e)]()+1,s=Math.floor((o-1)/3)+1,u=i[ks(e)](),l=i["get"+(e?"UTC":"")+"Day"](),f=i[ga(e)](),h=(f-1)%12+1,c=i[Bs(e)](),v=i[Ns(e)](),d=i[Fs(e)](),p=f>=12?"pm":"am",g=p.toUpperCase(),y=n instanceof At?n:tT(n||dm)||eT(),m=y.getModel("time"),_=m.get("month"),S=m.get("monthAbbr"),w=m.get("dayOfWeek"),x=m.get("dayOfWeekAbbr");return(t||"").replace(/{a}/g,p+"").replace(/{A}/g,g+"").replace(/{yyyy}/g,a+"").replace(/{yy}/g,ir(a%100+"",2)).replace(/{Q}/g,s+"").replace(/{MMMM}/g,_[o-1]).replace(/{MMM}/g,S[o-1]).replace(/{MM}/g,ir(o,2)).replace(/{M}/g,o+"").replace(/{dd}/g,ir(u,2)).replace(/{d}/g,u+"").replace(/{eeee}/g,w[l]).replace(/{ee}/g,x[l]).replace(/{e}/g,l+"").replace(/{HH}/g,ir(f,2)).replace(/{H}/g,f+"").replace(/{hh}/g,ir(h+"",2)).replace(/{h}/g,h+"").replace(/{mm}/g,ir(c,2)).replace(/{m}/g,c+"").replace(/{ss}/g,ir(v,2)).replace(/{s}/g,v+"").replace(/{SSS}/g,ir(d,3)).replace(/{S}/g,d+"")}function iT(r,t,e,n,i){var a=null;if(G(e))a=e;else if(Y(e))a=e(r.value,t,{level:r.level});else{var o=k({},Zi);if(r.level>0)for(var s=0;s=0;--s)if(u[l]){a=u[l];break}a=a||o.none}if(N(a)){var h=r.level==null?0:r.level>=0?r.level:a.length+r.level;h=Math.min(h,a.length-1),a=a[h]}}return Os(new Date(r.value),a,i,n)}function ym(r,t){var e=qe(r),n=e[ti(t)]()+1,i=e[ks(t)](),a=e[ga(t)](),o=e[Bs(t)](),s=e[Ns(t)](),u=e[Fs(t)](),l=u===0,f=l&&s===0,h=f&&o===0,c=h&&a===0,v=c&&i===1,d=v&&n===1;return d?"year":v?"month":c?"day":h?"hour":f?"minute":l?"second":"millisecond"}function Ic(r,t,e){var n=ct(r)?qe(r):r;switch(t=t||ym(r,e),t){case"year":return n[xh(e)]();case"half-year":return n[ti(e)]()>=6?1:0;case"quarter":return Math.floor((n[ti(e)]()+1)/4);case"month":return n[ti(e)]();case"day":return n[ks(e)]();case"half-day":return n[ga(e)]()/24;case"hour":return n[ga(e)]();case"minute":return n[Bs(e)]();case"second":return n[Ns(e)]();case"millisecond":return n[Fs(e)]()}}function xh(r){return r?"getUTCFullYear":"getFullYear"}function ti(r){return r?"getUTCMonth":"getMonth"}function ks(r){return r?"getUTCDate":"getDate"}function ga(r){return r?"getUTCHours":"getHours"}function Bs(r){return r?"getUTCMinutes":"getMinutes"}function Ns(r){return r?"getUTCSeconds":"getSeconds"}function Fs(r){return r?"getUTCMilliseconds":"getMilliseconds"}function aT(r){return r?"setUTCFullYear":"setFullYear"}function mm(r){return r?"setUTCMonth":"setMonth"}function _m(r){return r?"setUTCDate":"setDate"}function Sm(r){return r?"setUTCHours":"setHours"}function xm(r){return r?"setUTCMinutes":"setMinutes"}function wm(r){return r?"setUTCSeconds":"setSeconds"}function bm(r){return r?"setUTCMilliseconds":"setMilliseconds"}function Tm(r){if(!ax(r))return G(r)?r:"-";var t=(r+"").split(".");return t[0].replace(/(\d{1,3})(?=(?:\d{3})+(?!\d))/g,"$1,")+(t.length>1?"."+t[1]:"")}function Cm(r,t){return r=(r||"").toLowerCase().replace(/-(.)/g,function(e,n){return n.toUpperCase()}),t&&r&&(r=r.charAt(0).toUpperCase()+r.slice(1)),r}var zs=Dg;function rf(r,t,e){var n="{yyyy}-{MM}-{dd} {HH}:{mm}:{ss}";function i(f){return f&&Ie(f)?f:"-"}function a(f){return!!(f!=null&&!isNaN(f)&&isFinite(f))}var o=t==="time",s=r instanceof Date;if(o||s){var u=o?qe(r):r;if(isNaN(+u)){if(s)return"-"}else return Os(u,n,e)}if(t==="ordinal")return Cl(r)?i(r):ct(r)&&a(r)?r+"":"-";var l=br(r);return a(l)?Tm(l):Cl(r)?i(r):typeof r=="boolean"?r+"":"-"}var Pc=["a","b","c","d","e","f","g"],Bu=function(r,t){return"{"+r+(t==null?"":t)+"}"};function Mm(r,t,e){N(t)||(t=[t]);var n=t.length;if(!n)return"";for(var i=t[0].$vars||[],a=0;a':'';var o=e.markerId||"markerX";return{renderMode:a,content:"{"+o+"|} ",style:i==="subItem"?{width:4,height:4,borderRadius:2,backgroundColor:n}:{width:10,height:10,borderRadius:5,backgroundColor:n}}}function vn(r,t){return t=t||"transparent",G(r)?r:V(r)&&r.colorStops&&(r.colorStops[0]||{}).color||t}function Rc(r,t){if(t==="_blank"||t==="blank"){var e=window.open();e.opener=null,e.location.href=r}else window.open(r,t)}var No=M,sT=["left","right","top","bottom","width","height"],ao=[["width","left","right"],["height","top","bottom"]];function wh(r,t,e,n,i){var a=0,o=0;n==null&&(n=1/0),i==null&&(i=1/0);var s=0;t.eachChild(function(u,l){var f=u.getBoundingRect(),h=t.childAt(l+1),c=h&&h.getBoundingRect(),v,d;if(r==="horizontal"){var p=f.width+(c?-c.x+f.x:0);v=a+p,v>n||u.newline?(a=0,v=p,o+=s+e,s=f.height):s=Math.max(s,f.height)}else{var g=f.height+(c?-c.y+f.y:0);d=o+g,d>i||u.newline?(a+=s+e,o=0,d=g,s=f.width):s=Math.max(s,f.width)}u.newline||(u.x=a,u.y=o,u.markRedraw(),r==="horizontal"?a=v+e:o=d+e)})}var ei=wh;ut(wh,"vertical");ut(wh,"horizontal");function Tr(r,t,e){e=zs(e||0);var n=t.width,i=t.height,a=Ct(r.left,n),o=Ct(r.top,i),s=Ct(r.right,n),u=Ct(r.bottom,i),l=Ct(r.width,n),f=Ct(r.height,i),h=e[2]+e[0],c=e[1]+e[3],v=r.aspect;switch(isNaN(l)&&(l=n-s-c-a),isNaN(f)&&(f=i-u-h-o),v!=null&&(isNaN(l)&&isNaN(f)&&(v>n/i?l=n*.8:f=i*.8),isNaN(l)&&(l=v*f),isNaN(f)&&(f=l/v)),isNaN(a)&&(a=n-s-l-c),isNaN(o)&&(o=i-u-f-h),r.left||r.right){case"center":a=n/2-l/2-e[3];break;case"right":a=n-l-c;break}switch(r.top||r.bottom){case"middle":case"center":o=i/2-f/2-e[0];break;case"bottom":o=i-f-h;break}a=a||0,o=o||0,isNaN(l)&&(l=n-c-a-(s||0)),isNaN(f)&&(f=i-h-o-(u||0));var d=new rt(a+e[3],o+e[0],l,f);return d.margin=e,d}function uT(r,t,e,n,i,a){var o=!i||!i.hv||i.hv[0],s=!i||!i.hv||i.hv[1],u=i&&i.boundingMode||"all";if(a=a||r,a.x=r.x,a.y=r.y,!o&&!s)return!1;var l;if(u==="raw")l=r.type==="group"?new rt(0,0,+t.width||0,+t.height||0):r.getBoundingRect();else if(l=r.getBoundingRect(),r.needLocalTransform()){var f=r.getLocalTransform();l=l.clone(),l.applyTransform(f)}var h=Tr(K({width:l.width,height:l.height},t),e,n),c=o?h.x-l.x:0,v=s?h.y-l.y:0;return u==="raw"?(a.x=c,a.y=v):(a.x+=c,a.y+=v),a===r&&r.markRedraw(),!0}function ya(r){var t=r.layoutMode||r.constructor.layoutMode;return V(t)?t:t?{type:t}:null}function oi(r,t,e){var n=e&&e.ignoreSize;!N(n)&&(n=[n,n]);var i=o(ao[0],0),a=o(ao[1],1);l(ao[0],r,i),l(ao[1],r,a);function o(f,h){var c={},v=0,d={},p=0,g=2;if(No(f,function(_){d[_]=r[_]}),No(f,function(_){s(t,_)&&(c[_]=d[_]=t[_]),u(c,_)&&v++,u(d,_)&&p++}),n[h])return u(t,f[1])?d[f[2]]=null:u(t,f[2])&&(d[f[1]]=null),d;if(p===g||!v)return d;if(v>=g)return c;for(var y=0;y=0;u--)s=j(s,i[u],!0);n.defaultOption=s}return n.defaultOption},t.prototype.getReferringComponents=function(e,n){var i=e+"Index",a=e+"Id";return Ra(this.ecModel,e,{index:this.get(i,!0),id:this.get(a,!0)},n)},t.prototype.getBoxLayoutParams=function(){var e=this;return{left:e.get("left"),top:e.get("top"),right:e.get("right"),bottom:e.get("bottom"),width:e.get("width"),height:e.get("height")}},t.prototype.getZLevelKey=function(){return""},t.prototype.setZLevel=function(e){this.option.zlevel=e},t.protoInitialize=function(){var e=t.prototype;e.type="component",e.id="",e.name="",e.mainType="",e.subType="",e.componentIndex=0}(),t}(At);cy(di,At);bs(di);qb(di);Kb(di,hT);function hT(r){var t=[];return M(di.getClassesByMainType(r),function(e){t=t.concat(e.dependencies||e.prototype.dependencies||[])}),t=z(t,function(e){return Pe(e).main}),r!=="dataset"&&tt(t,"dataset")<=0&&t.unshift("dataset"),t}const vt=di;var Dm="";typeof navigator<"u"&&(Dm=navigator.platform||"");var Dn="rgba(0, 0, 0, 0.2)";const vT={darkMode:"auto",colorBy:"series",color:["#5470c6","#91cc75","#fac858","#ee6666","#73c0de","#3ba272","#fc8452","#9a60b4","#ea7ccc"],gradientColor:["#f6efa6","#d88273","#bf444c"],aria:{decal:{decals:[{color:Dn,dashArrayX:[1,0],dashArrayY:[2,5],symbolSize:1,rotation:Math.PI/6},{color:Dn,symbol:"circle",dashArrayX:[[8,8],[0,8,8,0]],dashArrayY:[6,0],symbolSize:.8},{color:Dn,dashArrayX:[1,0],dashArrayY:[4,3],rotation:-Math.PI/4},{color:Dn,dashArrayX:[[6,6],[0,6,6,0]],dashArrayY:[6,0]},{color:Dn,dashArrayX:[[1,0],[1,6]],dashArrayY:[1,0,6,0],rotation:Math.PI/4},{color:Dn,symbol:"triangle",dashArrayX:[[9,9],[0,9,9,0]],dashArrayY:[7,2],symbolSize:.75}]}},textStyle:{fontFamily:Dm.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 Am=W(["tooltip","label","itemName","itemId","itemGroupId","itemChildGroupId","seriesName"]),ce="original",Vt="arrayRows",be="objectRows",tr="keyedColumns",Sr="typedArray",Lm="unknown",Ee="column",pi="row",Qt={Must:1,Might:2,Not:3},Im=gt();function cT(r){Im(r).datasetMap=W()}function dT(r,t,e){var n={},i=Pm(t);if(!i||!r)return n;var a=[],o=[],s=t.ecModel,u=Im(s).datasetMap,l=i.uid+"_"+e.seriesLayoutBy,f,h;r=r.slice(),M(r,function(p,g){var y=V(p)?p:r[g]={name:p};y.type==="ordinal"&&f==null&&(f=g,h=d(y)),n[y.name]=[]});var c=u.get(l)||u.set(l,{categoryWayDim:h,valueWayDim:0});M(r,function(p,g){var y=p.name,m=d(p);if(f==null){var _=c.valueWayDim;v(n[y],_,m),v(o,_,m),c.valueWayDim+=m}else if(f===g)v(n[y],0,m),v(a,0,m);else{var _=c.categoryWayDim;v(n[y],_,m),v(o,_,m),c.categoryWayDim+=m}});function v(p,g,y){for(var m=0;mt)return r[n];return r[e-1]}function ST(r,t,e,n,i,a,o){a=a||r;var s=t(a),u=s.paletteIdx||0,l=s.paletteNameMap=s.paletteNameMap||{};if(l.hasOwnProperty(i))return l[i];var f=o==null||!n?e:_T(n,o);if(f=f||e,!(!f||!f.length)){var h=f[u];return i&&(l[i]=h),s.paletteIdx=(u+1)%f.length,h}}function xT(r,t){t(r).paletteIdx=0,t(r).paletteNameMap={}}var oo,Ci,Oc,kc="\0_ec_inner",wT=1,Em=function(r){O(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return t.prototype.init=function(e,n,i,a,o,s){a=a||{},this.option=null,this._theme=new At(a),this._locale=new At(o),this._optionManager=s},t.prototype.setOption=function(e,n,i){var a=Fc(n);this._optionManager.setOption(e,i,a),this._resetOption(null,a)},t.prototype.resetOption=function(e,n){return this._resetOption(e,Fc(n))},t.prototype._resetOption=function(e,n){var i=!1,a=this._optionManager;if(!e||e==="recreate"){var o=a.mountOption(e==="recreate");!this.option||e==="recreate"?Oc(this,o):(this.restoreData(),this._mergeOption(o,n)),i=!0}if((e==="timeline"||e==="media")&&this.restoreData(),!e||e==="recreate"||e==="timeline"){var s=a.getTimelineOption(this);s&&(i=!0,this._mergeOption(s,n))}if(!e||e==="recreate"||e==="media"){var u=a.getMediaOption(this);u.length&&M(u,function(l){i=!0,this._mergeOption(l,n)},this)}return i},t.prototype.mergeOption=function(e){this._mergeOption(e,null)},t.prototype._mergeOption=function(e,n){var i=this.option,a=this._componentsMap,o=this._componentsCount,s=[],u=W(),l=n&&n.replaceMergeMainTypeMap;cT(this),M(e,function(h,c){h!=null&&(vt.hasClass(c)?c&&(s.push(c),u.set(c,!0)):i[c]=i[c]==null?q(h):j(i[c],h,!0))}),l&&l.each(function(h,c){vt.hasClass(c)&&!u.get(c)&&(s.push(c),u.set(c,!0))}),vt.topologicalTravel(s,vt.getAllClassMainTypes(),f,this);function f(h){var c=mT(this,h,St(e[h])),v=a.get(h),d=v?l&&l.get(h)?"replaceMerge":"normalMerge":"replaceAll",p=sx(v,c,d);px(p,h,vt),i[h]=null,a.set(h,null),o.set(h,0);var g=[],y=[],m=0,_;M(p,function(S,w){var x=S.existing,b=S.newOption;if(!b)x&&(x.mergeOption({},this),x.optionUpdated({},!1));else{var C=h==="series",T=vt.getClass(h,S.keyInfo.subType,!C);if(!T)return;if(h==="tooltip"){if(_)return;_=!0}if(x&&x.constructor===T)x.name=S.keyInfo.name,x.mergeOption(b,this),x.optionUpdated(b,!1);else{var D=k({componentIndex:w},S.keyInfo);x=new T(b,this,this,D),k(x,D),S.brandNew&&(x.__requireNewView=!0),x.init(b,this,this),x.optionUpdated(null,!0)}}x?(g.push(x.option),y.push(x),m++):(g.push(void 0),y.push(void 0))},this),i[h]=g,a.set(h,y),o.set(h,m),h==="series"&&oo(this)}this._seriesIndices||oo(this)},t.prototype.getOption=function(){var e=q(this.option);return M(e,function(n,i){if(vt.hasClass(i)){for(var a=St(n),o=a.length,s=!1,u=o-1;u>=0;u--)a[u]&&!ha(a[u])?s=!0:(a[u]=null,!s&&o--);a.length=o,e[i]=a}}),delete e[kc],e},t.prototype.getTheme=function(){return this._theme},t.prototype.getLocaleModel=function(){return this._locale},t.prototype.setUpdatePayload=function(e){this._payload=e},t.prototype.getUpdatePayload=function(){return this._payload},t.prototype.getComponent=function(e,n){var i=this._componentsMap.get(e);if(i){var a=i[n||0];if(a)return a;if(n==null){for(var o=0;o=t:e==="max"?r<=t:r===t}function ET(r,t){return r.join(",")===t.join(",")}const OT=LT;var de=M,ma=V,zc=["areaStyle","lineStyle","nodeStyle","linkStyle","chordStyle","label","labelLine"];function Fu(r){var t=r&&r.itemStyle;if(!!t)for(var e=0,n=zc.length;e=0;g--){var y=r[g];if(s||(d=y.data.rawIndexOf(y.stackedByDimension,v)),d>=0){var m=y.data.getByRawIndex(y.stackResultDimension,d);if(u==="all"||u==="positive"&&m>0||u==="negative"&&m<0||u==="samesign"&&c>=0&&m>0||u==="samesign"&&c<=0&&m<0){c=rx(c,m),p=m;break}}}return n[0]=c,n[1]=p,n})})}var Gs=function(){function r(t){this.data=t.data||(t.sourceFormat===tr?{}:[]),this.sourceFormat=t.sourceFormat||Lm,this.seriesLayoutBy=t.seriesLayoutBy||Ee,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;np&&(p=_)}v[0]=d,v[1]=p}},i=function(){return this._data?this._data.length/this._dimSize:0};$c=(t={},t[Vt+"_"+Ee]={pure:!0,appendData:a},t[Vt+"_"+pi]={pure:!0,appendData:function(){throw new Error('Do not support appendData when set seriesLayoutBy: "row".')}},t[be]={pure:!0,appendData:a},t[tr]={pure:!0,appendData:function(o){var s=this._data;M(o,function(u,l){for(var f=s[l]||(s[l]=[]),h=0;h<(u||[]).length;h++)f.push(u[h])})}},t[ce]={appendData:a},t[Sr]={persistent:!1,pure:!0,appendData:function(o){this._data=o},clean:function(){this._offset+=this.count(),this._data=null}},t);function a(o){for(var s=0;s=0&&(p=o.interpolatedValue[g])}return p!=null?p+"":""})}},r.prototype.getRawValue=function(t,e){return si(this.getData(e),t)},r.prototype.formatTooltip=function(t,e,n){},r}();function Kc(r){var t,e;return V(r)?r.type&&(e=r):t=r,{text:t,frag:e}}function ia(r){return new JT(r)}var JT=function(){function r(t){t=t||{},this._reset=t.reset,this._plan=t.plan,this._count=t.count,this._onDirty=t.onDirty,this._dirty=!0}return r.prototype.perform=function(t){var e=this._upstream,n=t&&t.skip;if(this._dirty&&e){var i=this.context;i.data=i.outputData=e.context.outputData}this.__pipeline&&(this.__pipeline.currentTask=this);var a;this._plan&&!n&&(a=this._plan(this.context));var o=f(this._modBy),s=this._modDataCount||0,u=f(t&&t.modBy),l=t&&t.modDataCount||0;(o!==u||s!==l)&&(a="reset");function f(m){return!(m>=1)&&(m=1),m}var h;(this._dirty||a==="reset")&&(this._dirty=!1,h=this._doReset(n)),this._modBy=u,this._modDataCount=l;var c=t&&t.step;if(e?this._dueEnd=e._outputDueEnd:this._dueEnd=this._count?this._count(this.context):1/0,this._progress){var v=this._dueIndex,d=Math.min(c!=null?this._dueIndex+c:1/0,this._dueEnd);if(!n&&(h||v1&&n>0?s:o}};return a;function o(){return t=r?null:ut},gte:function(r,t){return r>=t}},tC=function(){function r(t,e){if(!ct(e)){var n="";it(n)}this._opFn=Ym[t],this._rvalFloat=br(e)}return r.prototype.evaluate=function(t){return ct(t)?this._opFn(t,this._rvalFloat):this._opFn(br(t),this._rvalFloat)},r}(),$m=function(){function r(t,e){var n=t==="desc";this._resultLT=n?1:-1,e==null&&(e=n?"min":"max"),this._incomparable=e==="min"?-1/0:1/0}return r.prototype.evaluate=function(t,e){var n=ct(t)?t:br(t),i=ct(e)?e:br(e),a=isNaN(n),o=isNaN(i);if(a&&(n=this._incomparable),o&&(i=this._incomparable),a&&o){var s=G(t),u=G(e);s&&(n=u?t:0),u&&(i=s?e:0)}return ni?-this._resultLT:0},r}(),eC=function(){function r(t,e){this._rval=e,this._isEQ=t,this._rvalTypeof=typeof e,this._rvalFloat=br(e)}return r.prototype.evaluate=function(t){var e=t===this._rval;if(!e){var n=typeof t;n!==this._rvalTypeof&&(n==="number"||this._rvalTypeof==="number")&&(e=br(t)===this._rvalFloat)}return this._isEQ?e:!e},r}();function rC(r,t){return r==="eq"||r==="ne"?new eC(r==="eq",t):ke(Ym,r)?new tC(r,t):null}var nC=function(){function r(){}return r.prototype.getRawData=function(){throw new Error("not supported")},r.prototype.getRawDataItem=function(t){throw new Error("not supported")},r.prototype.cloneRawData=function(){},r.prototype.getDimensionInfo=function(t){},r.prototype.cloneAllDimensionInfo=function(){},r.prototype.count=function(){},r.prototype.retrieveValue=function(t,e){},r.prototype.retrieveValueFromItem=function(t,e){},r.prototype.convertValue=function(t,e){return Fo(t,e)},r}();function iC(r,t){var e=new nC,n=r.data,i=e.sourceFormat=r.sourceFormat,a=r.startIndex,o="";r.seriesLayoutBy!==Ee&&it(o);var s=[],u={},l=r.dimensionsDefine;if(l)M(l,function(p,g){var y=p.name,m={index:g,name:y,displayName:p.displayName};if(s.push(m),y!=null){var _="";ke(u,y)&&it(_),u[y]=m}});else for(var f=0;f65535?vC:cC}function Ln(){return[1/0,-1/0]}function dC(r){var t=r.constructor;return t===Array?r.slice():new t(r)}function jc(r,t,e,n,i){var a=qm[e||"float"];if(i){var o=r[t],s=o&&o.length;if(s!==n){for(var u=new a(n),l=0;lg[1]&&(g[1]=p)}return this._rawCount=this._count=u,{start:s,end:u}},r.prototype._initDataFromProvider=function(t,e,n){for(var i=this._provider,a=this._chunks,o=this._dimensions,s=o.length,u=this._rawExtent,l=z(o,function(m){return m.property}),f=0;fy[1]&&(y[1]=g)}}!i.persistent&&i.clean&&i.clean(),this._rawCount=this._count=e,this._extent=[]},r.prototype.count=function(){return this._count},r.prototype.get=function(t,e){if(!(e>=0&&e=0&&e=this._rawCount||t<0)return-1;if(!this._indices)return t;var e=this._indices,n=e[t];if(n!=null&&nt)a=o-1;else return o}return-1},r.prototype.indicesOfNearest=function(t,e,n){var i=this._chunks,a=i[t],o=[];if(!a)return o;n==null&&(n=1/0);for(var s=1/0,u=-1,l=0,f=0,h=this.count();f=0&&u<0)&&(s=d,u=v,l=0),v===u&&(o[l++]=f))}return o.length=l,o},r.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 a=0;a=h&&m<=c||isNaN(m))&&(u[l++]=p),p++}d=!0}else if(a===2){for(var g=v[i[0]],_=v[i[1]],S=t[i[1]][0],w=t[i[1]][1],y=0;y=h&&m<=c||isNaN(m))&&(x>=S&&x<=w||isNaN(x))&&(u[l++]=p),p++}d=!0}}if(!d)if(a===1)for(var y=0;y=h&&m<=c||isNaN(m))&&(u[l++]=b)}else for(var y=0;yt[D][1])&&(C=!1)}C&&(u[l++]=e.getRawIndex(y))}return ly[1]&&(y[1]=g)}}}},r.prototype.lttbDownSample=function(t,e){var n=this.clone([t],!0),i=n._chunks,a=i[t],o=this.count(),s=0,u=Math.floor(1/e),l=this.getRawIndex(0),f,h,c,v=new(An(this._rawCount))(Math.min((Math.ceil(o/u)+2)*2,o));v[s++]=l;for(var d=1;df&&(f=h,c=S)}A>0&&As&&(p=s-f);for(var g=0;gd&&(d=m,v=f+g)}var _=this.getRawIndex(h),S=this.getRawIndex(v);hf-d&&(u=f-d,s.length=u);for(var p=0;ph[1]&&(h[1]=y),c[v++]=m}return a._count=v,a._indices=c,a._updateGetRawIdx(),a},r.prototype.each=function(t,e){if(!!this._count)for(var n=t.length,i=this._chunks,a=0,o=this.count();au&&(u=h)}return o=[s,u],this._extent[t]=o,o},r.prototype.getRawDataItem=function(t){var e=this.getRawIndex(t);if(this._provider.persistent)return this._provider.getItem(e);for(var n=[],i=this._chunks,a=0;a=0?this._indices[t]:-1},r.prototype._updateGetRawIdx=function(){this.getRawIndex=this._indices?this._getRawIdx:this._getRawIdxIdentity},r.internalField=function(){function t(e,n,i,a){return Fo(e[a],this._dimensions[a])}Hu={arrayRows:t,objectRows:function(e,n,i,a){return Fo(e[n],this._dimensions[a])},keyedColumns:t,original:function(e,n,i,a){var o=e&&(e.value==null?e:e.value);return Fo(o instanceof Array?o[a]:o,this._dimensions[a])},typedArray:function(e,n,i,a){return e[a]}}}(),r}();const of=pC;var Km=function(){function r(t){this._sourceList=[],this._storeList=[],this._upstreamSignList=[],this._versionSignBase=0,this._dirty=!0,this._sourceHost=t}return r.prototype.dirty=function(){this._setLocalSource([],[]),this._storeList=[],this._dirty=!0},r.prototype._setLocalSource=function(t,e){this._sourceList=t,this._upstreamSignList=e,this._versionSignBase++,this._versionSignBase>9e10&&(this._versionSignBase=0)},r.prototype._getVersionSign=function(){return this._sourceHost.uid+"_"+this._versionSignBase},r.prototype.prepareSource=function(){this._isDirty()&&(this._createSource(),this._dirty=!1)},r.prototype._createSource=function(){this._setLocalSource([],[]);var t=this._sourceHost,e=this._getUpstreamSourceManagers(),n=!!e.length,i,a;if(so(t)){var o=t,s=void 0,u=void 0,l=void 0;if(n){var f=e[0];f.prepareSource(),l=f.getSource(),s=l.data,u=l.sourceFormat,a=[f._getVersionSign()]}else s=o.get("data",!0),u=qt(s)?Sr:ce,a=[];var h=this._getSourceMetaRawOption()||{},c=l&&l.metaRawOption||{},v=Q(h.seriesLayoutBy,c.seriesLayoutBy)||null,d=Q(h.sourceHeader,c.sourceHeader),p=Q(h.dimensions,c.dimensions),g=v!==c.seriesLayoutBy||!!d!=!!c.sourceHeader||p;i=g?[af(s,{seriesLayoutBy:v,sourceHeader:d,dimensions:p},u)]:[]}else{var y=t;if(n){var m=this._applyTransform(e);i=m.sourceList,a=m.upstreamSignList}else{var _=y.get("source",!0);i=[af(_,this._getSourceMetaRawOption(),null)],a=[]}}this._setLocalSource(i,a)},r.prototype._applyTransform=function(t){var e=this._sourceHost,n=e.get("transform",!0),i=e.get("fromTransformResult",!0);if(i!=null){var a="";t.length!==1&&ed(a)}var o,s=[],u=[];return M(t,function(l){l.prepareSource();var f=l.getSource(i||0),h="";i!=null&&!f&&ed(h),s.push(f),u.push(l._getVersionSign())}),n?o=fC(n,s,{datasetIndex:e.componentIndex}):i!=null&&(o=[UT(s[0])]),{sourceList:o,upstreamSignList:u}},r.prototype._isDirty=function(){if(this._dirty)return!0;for(var t=this._getUpstreamSourceManagers(),e=0;e1||e>0&&!r.noHeader;return M(r.blocks,function(i){var a=t0(i);a>=t&&(t=a+ +(n&&(!a||sf(i)&&!i.noHeader)))}),t}return 0}function _C(r,t,e,n){var i=t.noHeader,a=xC(t0(t)),o=[],s=t.blocks||[];Oe(!s||N(s)),s=s||[];var u=r.orderMode;if(t.sortBlocks&&u){s=s.slice();var l={valueAsc:"asc",valueDesc:"desc"};if(ke(l,u)){var f=new $m(l[u],null);s.sort(function(p,g){return f.evaluate(p.sortParam,g.sortParam)})}else u==="seriesDesc"&&s.reverse()}M(s,function(p,g){var y=t.valueFormatter,m=jm(p)(y?k(k({},r),{valueFormatter:y}):r,p,g>0?a.html:0,n);m!=null&&o.push(m)});var h=r.renderMode==="richText"?o.join(a.richText):uf(n,o.join(""),i?e:a.html);if(i)return h;var c=rf(t.header,"ordinal",r.useUTC),v=Jm(n,r.renderMode).nameStyle,d=Qm(n);return r.renderMode==="richText"?e0(r,c,v)+a.richText+h:uf(n,'
'+Yt(c)+"
"+h,e)}function SC(r,t,e,n){var i=r.renderMode,a=t.noName,o=t.noValue,s=!t.markerType,u=t.name,l=r.useUTC,f=t.valueFormatter||r.valueFormatter||function(S){return S=N(S)?S:[S],z(S,function(w,x){return rf(w,N(v)?v[x]:v,l)})};if(!(a&&o)){var h=s?"":r.markupStyleCreator.makeTooltipMarker(t.markerType,t.markerColor||"#333",i),c=a?"":rf(u,"ordinal",l),v=t.valueType,d=o?[]:f(t.value,t.dataIndex),p=!s||!a,g=!s&&a,y=Jm(n,i),m=y.nameStyle,_=y.valueStyle;return i==="richText"?(s?"":h)+(a?"":e0(r,c,m))+(o?"":TC(r,d,p,g,_)):uf(n,(s?"":h)+(a?"":wC(c,!s,m))+(o?"":bC(d,p,g,_)),e)}}function rd(r,t,e,n,i,a){if(!!r){var o=jm(r),s={useUTC:i,renderMode:e,orderMode:n,markupStyleCreator:t,valueFormatter:r.valueFormatter};return o(s,r,0,a)}}function xC(r){return{html:yC[r],richText:mC[r]}}function uf(r,t,e){var n='
',i="margin: "+e+"px 0 0",a=Qm(r);return'
'+t+n+"
"}function wC(r,t,e){var n=t?"margin-left:2px":"";return''+Yt(r)+""}function bC(r,t,e,n){var i=e?"10px":"20px",a=t?"float:right;margin-left:"+i:"";return r=N(r)?r:[r],''+z(r,function(o){return Yt(o)}).join("  ")+""}function e0(r,t,e){return r.markupStyleCreator.wrapRichTextStyle(t,e)}function TC(r,t,e,n,i){var a=[i],o=n?10:20;return e&&a.push({padding:[0,0,0,o],align:"right"}),r.markupStyleCreator.wrapRichTextStyle(N(t)?t.join(" "):t,a)}function CC(r,t){var e=r.getData().getItemVisual(t,"style"),n=e[r.visualDrawType];return vn(n)}function r0(r,t){var e=r.get("padding");return e!=null?e:t==="richText"?[8,10]:10}var Vu=function(){function r(){this.richTextStyles={},this._nextStyleNameId=ay()}return r.prototype._generateStyleName=function(){return"__EC_aUTo_"+this._nextStyleNameId++},r.prototype.makeTooltipMarker=function(t,e,n){var i=n==="richText"?this._generateStyleName():null,a=oT({color:e,type:t,renderMode:n,markerId:i});return G(a)?a:(this.richTextStyles[i]=a.style,a.content)},r.prototype.wrapRichTextStyle=function(t,e){var n={};N(e)?M(e,function(a){return k(n,a)}):k(n,e);var i=this._generateStyleName();return this.richTextStyles[i]=n,"{"+i+"|"+t+"}"},r}();function MC(r){var t=r.series,e=r.dataIndex,n=r.multipleSeries,i=t.getData(),a=i.mapDimensionsAll("defaultedTooltip"),o=a.length,s=t.getRawValue(e),u=N(s),l=CC(t,e),f,h,c,v;if(o>1||u&&!o){var d=DC(s,t,e,a,l);f=d.inlineValues,h=d.inlineValueTypes,c=d.blocks,v=d.inlineValues[0]}else if(o){var p=i.getDimensionInfo(a[0]);v=f=si(i,e,a[0]),h=p.type}else v=f=u?s[0]:s;var g=th(t),y=g&&t.name||"",m=i.getName(e),_=n?y:m;return _a("section",{header:y,noHeader:n||!g,sortParam:v,blocks:[_a("nameValue",{markerType:"item",markerColor:l,name:_,noName:!Ie(_),value:f,valueType:h,dataIndex:e})].concat(c||[])})}function DC(r,t,e,n,i){var a=t.getData(),o=hi(r,function(h,c,v){var d=a.getDimensionInfo(v);return h=h||d&&d.tooltip!==!1&&d.displayName!=null},!1),s=[],u=[],l=[];n.length?M(n,function(h){f(si(a,e,h),h)}):M(r,f);function f(h,c){var v=a.getDimensionInfo(c);!v||v.otherDims.tooltip===!1||(o?l.push(_a("nameValue",{markerType:"subItem",markerColor:i,name:v.displayName,value:h,valueType:v.type})):(s.push(h),u.push(v.type)))}return{inlineValues:s,inlineValueTypes:u,blocks:l}}var ar=gt();function uo(r,t){return r.getName(t)||r.getId(t)}var zo="__universalTransitionEnabled",Vs=function(r){O(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e._selectedDataIndicesMap={},e}return t.prototype.init=function(e,n,i){this.seriesIndex=this.componentIndex,this.dataTask=ia({count:LC,reset:IC}),this.dataTask.context={model:this},this.mergeDefaultAndTheme(e,i);var a=ar(this).sourceManager=new Km(this);a.prepareSource();var o=this.getInitialData(e,i);id(o,this),this.dataTask.context.data=o,ar(this).dataBeforeProcessed=o,nd(this),this._initSelectedMapFromData(o)},t.prototype.mergeDefaultAndTheme=function(e,n){var i=ya(this),a=i?Na(e):{},o=this.subType;vt.hasClass(o)&&(o+="Series"),j(e,n.getTheme().get(this.subType)),j(e,this.getDefaultOption()),Gv(e,"label",["show"]),this.fillDataTextStyle(e.data),i&&oi(e,a,i)},t.prototype.mergeOption=function(e,n){e=j(this.option,e,!0),this.fillDataTextStyle(e.data);var i=ya(this);i&&oi(this.option,e,i);var a=ar(this).sourceManager;a.dirty(),a.prepareSource();var o=this.getInitialData(e,n);id(o,this),this.dataTask.dirty(),this.dataTask.context.data=o,ar(this).dataBeforeProcessed=o,nd(this),this._initSelectedMapFromData(o)},t.prototype.fillDataTextStyle=function(e){if(e&&!qt(e))for(var n=["show"],i=0;ithis.getShallow("animationThreshold")&&(n=!1),!!n},t.prototype.restoreData=function(){this.dataTask.dirty()},t.prototype.getColorFromPalette=function(e,n,i){var a=this.ecModel,o=bh.prototype.getColorFromPalette.call(this,e,n,i);return o||(o=a.getColorFromPalette(e,n,i)),o},t.prototype.coordDimToDataDim=function(e){return this.getRawData().mapDimensionsAll(e)},t.prototype.getProgressive=function(){return this.get("progressive")},t.prototype.getProgressiveThreshold=function(){return this.get("progressiveThreshold")},t.prototype.select=function(e,n){this._innerSelect(this.getData(n),e)},t.prototype.unselect=function(e,n){var i=this.option.selectedMap;if(!!i){var a=this.option.selectedMode,o=this.getData(n);if(a==="series"||i==="all"){this.option.selectedMap={},this._selectedDataIndicesMap={};return}for(var s=0;s=0&&i.push(o)}return i},t.prototype.isSelected=function(e,n){var i=this.option.selectedMap;if(!i)return!1;var a=this.getData(n);return(i==="all"||i[uo(a,e)])&&!a.getItemModel(e).get(["select","disabled"])},t.prototype.isUniversalTransitionEnabled=function(){if(this[zo])return!0;var e=this.option.universalTransition;return e?e===!0?!0:e&&e.enabled:!1},t.prototype._innerSelect=function(e,n){var i,a,o=this.option,s=o.selectedMode,u=n.length;if(!(!s||!u)){if(s==="series")o.selectedMap="all";else if(s==="multiple"){V(o.selectedMap)||(o.selectedMap={});for(var l=o.selectedMap,f=0;f0&&this._innerSelect(e,n)}},t.registerClass=function(e){return vt.registerClass(e)},t.protoInitialize=function(){var e=t.prototype;e.type="series.__base__",e.seriesIndex=0,e.ignoreStyleOnData=!1,e.hasSymbolVisual=!1,e.defaultSymbol="circle",e.visualStyleAccessPath="itemStyle",e.visualDrawType="fill"}(),t}(vt);Ne(Vs,QT);Ne(Vs,bh);cy(Vs,vt);function nd(r){var t=r.name;th(r)||(r.name=AC(r)||t)}function AC(r){var t=r.getRawData(),e=t.mapDimensionsAll("seriesName"),n=[];return M(e,function(i){var a=t.getDimensionInfo(i);a.displayName&&n.push(a.displayName)}),n.join(" ")}function LC(r){return r.model.getRawData().count()}function IC(r){var t=r.model;return t.setData(t.getRawData().cloneShallow()),PC}function PC(r,t){t.outputData&&r.end>t.outputData.count()&&t.model.getRawData().cloneShallow(t.outputData)}function id(r,t){M(I1(r.CHANGABLE_METHODS,r.DOWNSAMPLE_METHODS),function(e){r.wrapMethod(e,ut(RC,t))})}function RC(r,t){var e=lf(r);return e&&e.setOutputEnd((t||this).count()),t}function lf(r){var t=(r.ecModel||{}).scheduler,e=t&&t.getPipeline(r.uid);if(e){var n=e.currentTask;if(n){var i=n.agentStubMap;i&&(n=i.get(r.uid))}return n}}const Sa=Vs;var Lh=function(){function r(){this.group=new bt,this.uid=Ba("viewComponent")}return r.prototype.init=function(t,e){},r.prototype.render=function(t,e,n,i){},r.prototype.dispose=function(t,e){},r.prototype.updateView=function(t,e,n,i){},r.prototype.updateLayout=function(t,e,n,i){},r.prototype.updateVisual=function(t,e,n,i){},r.prototype.toggleBlurSeries=function(t,e,n){},r.prototype.eachRendered=function(t){var e=this.group;e&&e.traverse(t)},r}();rh(Lh);bs(Lh);const he=Lh;function n0(){var r=gt();return function(t){var e=r(t),n=t.pipelineContext,i=!!e.large,a=!!e.progressiveRender,o=e.large=!!(n&&n.large),s=e.progressiveRender=!!(n&&n.progressiveRender);return(i!==o||a!==s)&&"reset"}}var i0=gt(),EC=n0(),Ih=function(){function r(){this.group=new bt,this.uid=Ba("viewChart"),this.renderTask=ia({plan:OC,reset:kC}),this.renderTask.context={view:this}}return r.prototype.init=function(t,e){},r.prototype.render=function(t,e,n,i){},r.prototype.highlight=function(t,e,n,i){var a=t.getData(i&&i.dataType);!a||od(a,i,"emphasis")},r.prototype.downplay=function(t,e,n,i){var a=t.getData(i&&i.dataType);!a||od(a,i,"normal")},r.prototype.remove=function(t,e){this.group.removeAll()},r.prototype.dispose=function(t,e){},r.prototype.updateView=function(t,e,n,i){this.render(t,e,n,i)},r.prototype.updateLayout=function(t,e,n,i){this.render(t,e,n,i)},r.prototype.updateVisual=function(t,e,n,i){this.render(t,e,n,i)},r.prototype.eachRendered=function(t){ch(this.group,t)},r.markUpdateMethod=function(t,e){i0(t).updateMethod=e},r.protoInitialize=function(){var t=r.prototype;t.type="chart"}(),r}();function ad(r,t,e){r&&Ql(r)&&(t==="emphasis"?ii:ai)(r,e)}function od(r,t,e){var n=fn(r,t),i=t&&t.highlightKey!=null?Vw(t.highlightKey):null;n!=null?M(St(n),function(a){ad(r.getItemGraphicEl(a),e,i)}):r.eachItemGraphicEl(function(a){ad(a,e,i)})}rh(Ih);bs(Ih);function OC(r){return EC(r.model)}function kC(r){var t=r.model,e=r.ecModel,n=r.api,i=r.payload,a=t.pipelineContext.progressiveRender,o=r.view,s=i&&i0(i).updateMethod,u=a?"incrementalPrepareRender":s&&o[s]?s:"render";return u!=="render"&&o[u](t,e,n,i),BC[u]}var BC={incrementalPrepareRender:{progress:function(r,t){t.view.incrementalRender(r,t.model,t.ecModel,t.api,t.payload)}},render:{forceFirstProgress:!0,progress:function(r,t){t.view.render(t.model,t.ecModel,t.api,t.payload)}}};const xr=Ih;var is="\0__throttleOriginMethod",sd="\0__throttleRate",ud="\0__throttleType";function a0(r,t,e){var n,i=0,a=0,o=null,s,u,l,f;t=t||0;function h(){a=new Date().getTime(),o=null,r.apply(u,l||[])}var c=function(){for(var v=[],d=0;d=0?h():o=setTimeout(h,-s),i=n};return c.clear=function(){o&&(clearTimeout(o),o=null)},c.debounceNextCall=function(v){f=v},c}function Ws(r,t,e,n){var i=r[t];if(!!i){var a=i[is]||i,o=i[ud],s=i[sd];if(s!==e||o!==n){if(e==null||!n)return r[t]=a;i=r[t]=a0(a,e,n==="debounce"),i[is]=a,i[ud]=n,i[sd]=e}return i}}function as(r,t){var e=r[t];e&&e[is]&&(e.clear&&e.clear(),r[t]=e[is])}var ld=gt(),fd={itemStyle:va(cm,!0),lineStyle:va(vm,!0)},NC={lineStyle:"stroke",itemStyle:"fill"};function o0(r,t){var e=r.visualStyleMapper||fd[t];return e||(console.warn("Unknown style type '"+t+"'."),fd.itemStyle)}function s0(r,t){var e=r.visualDrawType||NC[t];return e||(console.warn("Unknown style type '"+t+"'."),"fill")}var FC={createOnAllSeries:!0,performRawSeries:!0,reset:function(r,t){var e=r.getData(),n=r.visualStyleAccessPath||"itemStyle",i=r.getModel(n),a=o0(r,n),o=a(i),s=i.getShallow("decal");s&&(e.setVisual("decal",s),s.dirty=!0);var u=s0(r,n),l=o[u],f=Y(l)?l:null,h=o.fill==="auto"||o.stroke==="auto";if(!o[u]||f||h){var c=r.getColorFromPalette(r.name,null,t.getSeriesCount());o[u]||(o[u]=c,e.setVisual("colorFromPalette",!0)),o.fill=o.fill==="auto"||Y(o.fill)?c:o.fill,o.stroke=o.stroke==="auto"||Y(o.stroke)?c:o.stroke}if(e.setVisual("style",o),e.setVisual("drawType",u),!t.isSeriesFiltered(r)&&f)return e.setVisual("colorFromPalette",!1),{dataEach:function(v,d){var p=r.getDataParams(d),g=k({},o);g[u]=f(p),v.setItemVisual(d,"style",g)}}}},Di=new At,zC={createOnAllSeries:!0,performRawSeries:!0,reset:function(r,t){if(!(r.ignoreStyleOnData||t.isSeriesFiltered(r))){var e=r.getData(),n=r.visualStyleAccessPath||"itemStyle",i=o0(r,n),a=e.getVisual("drawType");return{dataEach:e.hasItemOption?function(o,s){var u=o.getRawDataItem(s);if(u&&u[n]){Di.option=u[n];var l=i(Di),f=o.ensureUniqueItemVisual(s,"style");k(f,l),Di.option.decal&&(o.setItemVisual(s,"decal",Di.option.decal),Di.option.decal.dirty=!0),a in l&&o.setItemVisual(s,"colorFromPalette",!1)}}:null}}}},GC={performRawSeries:!0,overallReset:function(r){var t=W();r.eachSeries(function(e){var n=e.getColorBy();if(!e.isColorBySeries()){var i=e.type+"-"+n,a=t.get(i);a||(a={},t.set(i,a)),ld(e).scope=a}}),r.eachSeries(function(e){if(!(e.isColorBySeries()||r.isSeriesFiltered(e))){var n=e.getRawData(),i={},a=e.getData(),o=ld(e).scope,s=e.visualStyleAccessPath||"itemStyle",u=s0(e,s);a.each(function(l){var f=a.getRawIndex(l);i[f]=l}),n.each(function(l){var f=i[l],h=a.getItemVisual(f,"colorFromPalette");if(h){var c=a.ensureUniqueItemVisual(f,"style"),v=n.getName(l)||l+"",d=n.count();c[u]=e.getColorFromPalette(v,o,d)}})}})}},lo=Math.PI;function HC(r,t){t=t||{},K(t,{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 e=new bt,n=new yt({style:{fill:t.maskColor},zlevel:t.zlevel,z:1e4});e.add(n);var i=new Dt({style:{text:t.text,fill:t.textColor,fontSize:t.fontSize,fontWeight:t.fontWeight,fontStyle:t.fontStyle,fontFamily:t.fontFamily},zlevel:t.zlevel,z:10001}),a=new yt({style:{fill:"none"},textContent:i,textConfig:{position:"right",distance:10},zlevel:t.zlevel,z:10001});e.add(a);var o;return t.showSpinner&&(o=new lh({shape:{startAngle:-lo/2,endAngle:-lo/2+.1,r:t.spinnerRadius},style:{stroke:t.color,lineCap:"round",lineWidth:t.lineWidth},zlevel:t.zlevel,z:10001}),o.animateShape(!0).when(1e3,{endAngle:lo*3/2}).start("circularInOut"),o.animateShape(!0).when(1e3,{startAngle:lo*3/2}).delay(300).start("circularInOut"),e.add(o)),e.resize=function(){var s=i.getBoundingRect().width,u=t.showSpinner?t.spinnerRadius:0,l=(r.getWidth()-u*2-(t.showSpinner&&s?10:0)-s)/2-(t.showSpinner&&s?0:5+s/2)+(t.showSpinner?0:s/2)+(s?0:u),f=r.getHeight()/2;t.showSpinner&&o.setShape({cx:l,cy:f}),a.setShape({x:l-u,y:f-u,width:u*2,height:u*2}),n.setShape({x:0,y:0,width:r.getWidth(),height:r.getHeight()})},e.resize(),e}var VC=function(){function r(t,e,n,i){this._stageTaskMap=W(),this.ecInstance=t,this.api=e,n=this._dataProcessorHandlers=n.slice(),i=this._visualHandlers=i.slice(),this._allHandlers=n.concat(i)}return r.prototype.restoreData=function(t,e){t.restoreData(e),this._stageTaskMap.each(function(n){var i=n.overallTask;i&&i.dirty()})},r.prototype.getPerformArgs=function(t,e){if(!!t.__pipeline){var n=this._pipelineMap.get(t.__pipeline.id),i=n.context,a=!e&&n.progressiveEnabled&&(!i||i.progressiveRender)&&t.__idxInPipeline>n.blockIndex,o=a?n.step:null,s=i&&i.modDataCount,u=s!=null?Math.ceil(s/o):null;return{step:o,modBy:u,modDataCount:s}}},r.prototype.getPipeline=function(t){return this._pipelineMap.get(t)},r.prototype.updateStreamModes=function(t,e){var n=this._pipelineMap.get(t.uid),i=t.getData(),a=i.count(),o=n.progressiveEnabled&&e.incrementalPrepareRender&&a>=n.threshold,s=t.get("large")&&a>=t.get("largeThreshold"),u=t.get("progressiveChunkMode")==="mod"?a:null;t.pipelineContext=n.context={progressiveRender:o,modDataCount:u,large:s}},r.prototype.restorePipelines=function(t){var e=this,n=e._pipelineMap=W();t.eachSeries(function(i){var a=i.getProgressive(),o=i.uid;n.set(o,{id:o,head:null,tail:null,threshold:i.getProgressiveThreshold(),progressiveEnabled:a&&!(i.preventIncremental&&i.preventIncremental()),blockIndex:-1,step:Math.round(a||700),count:0}),e._pipe(i,i.dataTask)})},r.prototype.prepareStageTasks=function(){var t=this._stageTaskMap,e=this.api.getModel(),n=this.api;M(this._allHandlers,function(i){var a=t.get(i.uid)||t.set(i.uid,{}),o="";Oe(!(i.reset&&i.overallReset),o),i.reset&&this._createSeriesStageTask(i,a,e,n),i.overallReset&&this._createOverallStageTask(i,a,e,n)},this)},r.prototype.prepareView=function(t,e,n,i){var a=t.renderTask,o=a.context;o.model=e,o.ecModel=n,o.api=i,a.__block=!t.incrementalPrepareRender,this._pipe(e,a)},r.prototype.performDataProcessorTasks=function(t,e){this._performStageTasks(this._dataProcessorHandlers,t,e,{block:!0})},r.prototype.performVisualTasks=function(t,e,n){this._performStageTasks(this._visualHandlers,t,e,n)},r.prototype._performStageTasks=function(t,e,n,i){i=i||{};var a=!1,o=this;M(t,function(u,l){if(!(i.visualType&&i.visualType!==u.visualType)){var f=o._stageTaskMap.get(u.uid),h=f.seriesTaskMap,c=f.overallTask;if(c){var v,d=c.agentStubMap;d.each(function(g){s(i,g)&&(g.dirty(),v=!0)}),v&&c.dirty(),o.updatePayload(c,n);var p=o.getPerformArgs(c,i.block);d.each(function(g){g.perform(p)}),c.perform(p)&&(a=!0)}else h&&h.each(function(g,y){s(i,g)&&g.dirty();var m=o.getPerformArgs(g,i.block);m.skip=!u.performRawSeries&&e.isSeriesFiltered(g.context.model),o.updatePayload(g,n),g.perform(m)&&(a=!0)})}});function s(u,l){return u.setDirty&&(!u.dirtyMap||u.dirtyMap.get(l.__pipeline.id))}this.unfinished=a||this.unfinished},r.prototype.performSeriesTasks=function(t){var e;t.eachSeries(function(n){e=n.dataTask.perform()||e}),this.unfinished=e||this.unfinished},r.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)})},r.prototype.updatePayload=function(t,e){e!=="remain"&&(t.context.payload=e)},r.prototype._createSeriesStageTask=function(t,e,n,i){var a=this,o=e.seriesTaskMap,s=e.seriesTaskMap=W(),u=t.seriesType,l=t.getTargetSeries;t.createOnAllSeries?n.eachRawSeries(f):u?n.eachRawSeriesByType(u,f):l&&l(n,i).each(f);function f(h){var c=h.uid,v=s.set(c,o&&o.get(c)||ia({plan:ZC,reset:XC,count:KC}));v.context={model:h,ecModel:n,api:i,useClearVisual:t.isVisual&&!t.isLayout,plan:t.plan,reset:t.reset,scheduler:a},a._pipe(h,v)}},r.prototype._createOverallStageTask=function(t,e,n,i){var a=this,o=e.overallTask=e.overallTask||ia({reset:WC});o.context={ecModel:n,api:i,overallReset:t.overallReset,scheduler:a};var s=o.agentStubMap,u=o.agentStubMap=W(),l=t.seriesType,f=t.getTargetSeries,h=!0,c=!1,v="";Oe(!t.createOnAllSeries,v),l?n.eachRawSeriesByType(l,d):f?f(n,i).each(d):(h=!1,M(n.getSeries(),d));function d(p){var g=p.uid,y=u.set(g,s&&s.get(g)||(c=!0,ia({reset:UC,onDirty:$C})));y.context={model:p,overallProgress:h},y.agent=o,y.__block=h,a._pipe(p,y)}c&&o.dirty()},r.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},r.wrapStageHandler=function(t,e){return Y(t)&&(t={overallReset:t,seriesType:QC(t)}),t.uid=Ba("stageHandler"),e&&(t.visualType=e),t},r}();function WC(r){r.overallReset(r.ecModel,r.api,r.payload)}function UC(r){return r.overallProgress&&YC}function YC(){this.agent.dirty(),this.getDownstream().dirty()}function $C(){this.agent&&this.agent.dirty()}function ZC(r){return r.plan?r.plan(r.model,r.ecModel,r.api,r.payload):null}function XC(r){r.useClearVisual&&r.data.clearAllVisual();var t=r.resetDefines=St(r.reset(r.model,r.ecModel,r.api,r.payload));return t.length>1?z(t,function(e,n){return u0(n)}):qC}var qC=u0(0);function u0(r){return function(t,e){var n=e.data,i=e.resetDefines[r];if(i&&i.dataEach)for(var a=t.start;a0&&v===l.length-c.length){var d=l.slice(0,v);d!=="data"&&(e.mainType=d,e[c.toLowerCase()]=u,f=!0)}}s.hasOwnProperty(l)&&(n[l]=u,f=!0),f||(i[l]=u)})}return{cptQuery:e,dataQuery:n,otherQuery:i}},r.prototype.filter=function(t,e){var n=this.eventInfo;if(!n)return!0;var i=n.targetEl,a=n.packedEvent,o=n.model,s=n.view;if(!o||!s)return!0;var u=e.cptQuery,l=e.dataQuery;return f(u,o,"mainType")&&f(u,o,"subType")&&f(u,o,"index","componentIndex")&&f(u,o,"name")&&f(u,o,"id")&&f(l,a,"name")&&f(l,a,"dataIndex")&&f(l,a,"dataType")&&(!s.filterForExposedEvent||s.filterForExposedEvent(t,e.otherQuery,i,a));function f(h,c,v,d){return h[v]==null||c[d||v]===h[v]}},r.prototype.afterTrigger=function(){this.eventInfo=null},r}(),ff=["symbol","symbolSize","symbolRotate","symbolOffset"],dd=ff.concat(["symbolKeepAspect"]),eM={createOnAllSeries:!0,performRawSeries:!0,reset:function(r,t){var e=r.getData();if(r.legendIcon&&e.setVisual("legendIcon",r.legendIcon),!r.hasSymbolVisual)return;for(var n={},i={},a=!1,o=0;o=0&&tn(u)?u:.5;var l=r.createRadialGradient(o,s,0,o,s,u);return l}function hf(r,t,e){for(var n=t.type==="radial"?SM(r,t,e):_M(r,t,e),i=t.colorStops,a=0;a0)?null:r==="dashed"?[4*t,2*t]:r==="dotted"?[t]:ct(r)?[r]:N(r)?r:null}function d0(r){var t=r.style,e=t.lineDash&&t.lineWidth>0&&wM(t.lineDash,t.lineWidth),n=t.lineDashOffset;if(e){var i=t.strokeNoScale&&r.getLineScale?r.getLineScale():1;i&&i!==1&&(e=z(e,function(a){return a/i}),n/=i)}return[e,n]}var bM=new Ke(!0);function us(r){var t=r.stroke;return!(t==null||t==="none"||!(r.lineWidth>0))}function pd(r){return typeof r=="string"&&r!=="none"}function ls(r){var t=r.fill;return t!=null&&t!=="none"}function gd(r,t){if(t.fillOpacity!=null&&t.fillOpacity!==1){var e=r.globalAlpha;r.globalAlpha=t.fillOpacity*t.opacity,r.fill(),r.globalAlpha=e}else r.fill()}function yd(r,t){if(t.strokeOpacity!=null&&t.strokeOpacity!==1){var e=r.globalAlpha;r.globalAlpha=t.strokeOpacity*t.opacity,r.stroke(),r.globalAlpha=e}else r.stroke()}function vf(r,t,e){var n=dy(t.image,t.__image,e);if(Ts(n)){var i=r.createPattern(n,t.repeat||"repeat");if(typeof DOMMatrix=="function"&&i&&i.setTransform){var a=new DOMMatrix;a.translateSelf(t.x||0,t.y||0),a.rotateSelf(0,0,(t.rotation||0)*P1),a.scaleSelf(t.scaleX||1,t.scaleY||1),i.setTransform(a)}return i}}function TM(r,t,e,n){var i,a=us(e),o=ls(e),s=e.strokePercent,u=s<1,l=!t.path;(!t.silent||u)&&l&&t.createPathProxy();var f=t.path||bM,h=t.__dirty;if(!n){var c=e.fill,v=e.stroke,d=o&&!!c.colorStops,p=a&&!!v.colorStops,g=o&&!!c.image,y=a&&!!v.image,m=void 0,_=void 0,S=void 0,w=void 0,x=void 0;(d||p)&&(x=t.getBoundingRect()),d&&(m=h?hf(r,c,x):t.__canvasFillGradient,t.__canvasFillGradient=m),p&&(_=h?hf(r,v,x):t.__canvasStrokeGradient,t.__canvasStrokeGradient=_),g&&(S=h||!t.__canvasFillPattern?vf(r,c,t):t.__canvasFillPattern,t.__canvasFillPattern=S),y&&(w=h||!t.__canvasStrokePattern?vf(r,v,t):t.__canvasStrokePattern,t.__canvasStrokePattern=S),d?r.fillStyle=m:g&&(S?r.fillStyle=S:o=!1),p?r.strokeStyle=_:y&&(w?r.strokeStyle=w:a=!1)}var b=t.getGlobalScale();f.setScale(b[0],b[1],t.segmentIgnoreThreshold);var C,T;r.setLineDash&&e.lineDash&&(i=d0(t),C=i[0],T=i[1]);var D=!0;(l||h&Nn)&&(f.setDPR(r.dpr),u?f.setContext(null):(f.setContext(r),D=!1),f.reset(),t.buildPath(f,t.shape,n),f.toStatic(),t.pathUpdated()),D&&f.rebuildPath(r,u?s:1),C&&(r.setLineDash(C),r.lineDashOffset=T),n||(e.strokeFirst?(a&&yd(r,e),o&&gd(r,e)):(o&&gd(r,e),a&&yd(r,e))),C&&r.setLineDash([])}function CM(r,t,e){var n=t.__image=dy(e.image,t.__image,t,t.onload);if(!(!n||!Ts(n))){var i=e.x||0,a=e.y||0,o=t.getWidth(),s=t.getHeight(),u=n.width/n.height;if(o==null&&s!=null?o=s*u:s==null&&o!=null?s=o/u:o==null&&s==null&&(o=n.width,s=n.height),e.sWidth&&e.sHeight){var l=e.sx||0,f=e.sy||0;r.drawImage(n,l,f,e.sWidth,e.sHeight,i,a,o,s)}else if(e.sx&&e.sy){var l=e.sx,f=e.sy,h=o-l,c=s-f;r.drawImage(n,l,f,h,c,i,a,o,s)}else r.drawImage(n,i,a,o,s)}}function MM(r,t,e){var n,i=e.text;if(i!=null&&(i+=""),i){r.font=e.font||un,r.textAlign=e.textAlign,r.textBaseline=e.textBaseline;var a=void 0,o=void 0;r.setLineDash&&e.lineDash&&(n=d0(t),a=n[0],o=n[1]),a&&(r.setLineDash(a),r.lineDashOffset=o),e.strokeFirst?(us(e)&&r.strokeText(i,e.x,e.y),ls(e)&&r.fillText(i,e.x,e.y)):(ls(e)&&r.fillText(i,e.x,e.y),us(e)&&r.strokeText(i,e.x,e.y)),a&&r.setLineDash([])}}var md=["shadowBlur","shadowOffsetX","shadowOffsetY"],_d=[["lineCap","butt"],["lineJoin","miter"],["miterLimit",10]];function p0(r,t,e,n,i){var a=!1;if(!n&&(e=e||{},t===e))return!1;if(n||t.opacity!==e.opacity){Xt(r,i),a=!0;var o=Math.max(Math.min(t.opacity,1),0);r.globalAlpha=isNaN(o)?nn.opacity:o}(n||t.blend!==e.blend)&&(a||(Xt(r,i),a=!0),r.globalCompositeOperation=t.blend||nn.blend);for(var s=0;s0&&e.unfinished);e.unfinished||this._zr.flush()}}},t.prototype.getDom=function(){return this._dom},t.prototype.getId=function(){return this.id},t.prototype.getZr=function(){return this._zr},t.prototype.isSSR=function(){return this._ssr},t.prototype.setOption=function(e,n,i){if(!this[Pt]){if(this._disposed){this.id;return}var a,o,s;if(V(n)&&(i=n.lazyUpdate,a=n.silent,o=n.replaceMerge,s=n.transition,n=n.notMerge),this[Pt]=!0,!this._model||n){var u=new OT(this._api),l=this._theme,f=this._model=new Om;f.scheduler=this._scheduler,f.ssr=this._ssr,f.init(null,null,null,l,this._locale,u)}this._model.setOption(e,{replaceMerge:o},pf);var h={seriesTransition:s,optionChanged:!0};if(i)this[Ut]={silent:a,updateParams:h},this[Pt]=!1,this.getZr().wakeUp();else{try{Pn(this),or.update.call(this,null,h)}catch(c){throw this[Ut]=null,this[Pt]=!1,c}this._ssr||this._zr.flush(),this[Ut]=null,this[Pt]=!1,Ai.call(this,a),Li.call(this,a)}}},t.prototype.setTheme=function(){},t.prototype.getModel=function(){return this._model},t.prototype.getOption=function(){return this._model&&this._model.getOption()},t.prototype.getWidth=function(){return this._zr.getWidth()},t.prototype.getHeight=function(){return this._zr.getHeight()},t.prototype.getDevicePixelRatio=function(){return this._zr.painter.dpr||J.hasGlobalWindow&&window.devicePixelRatio||1},t.prototype.getRenderedCanvas=function(e){return this.renderToCanvas(e)},t.prototype.renderToCanvas=function(e){e=e||{};var n=this._zr.painter;return n.getRenderedCanvas({backgroundColor:e.backgroundColor||this._model.get("backgroundColor"),pixelRatio:e.pixelRatio||this.getDevicePixelRatio()})},t.prototype.renderToSVGString=function(e){e=e||{};var n=this._zr.painter;return n.renderToString({useViewBox:e.useViewBox})},t.prototype.getSvgDataURL=function(){if(!!J.svgSupported){var e=this._zr,n=e.storage.getDisplayList();return M(n,function(i){i.stopAnimation(null,!0)}),e.painter.toDataURL()}},t.prototype.getDataURL=function(e){if(this._disposed){this.id;return}e=e||{};var n=e.excludeComponents,i=this._model,a=[],o=this;M(n,function(u){i.eachComponent({mainType:u},function(l){var f=o._componentsMap[l.__viewId];f.group.ignore||(a.push(f),f.group.ignore=!0)})});var s=this._zr.painter.getType()==="svg"?this.getSvgDataURL():this.renderToCanvas(e).toDataURL("image/"+(e&&e.type||"png"));return M(a,function(u){u.group.ignore=!1}),s},t.prototype.getConnectedDataURL=function(e){if(this._disposed){this.id;return}var n=e.type==="svg",i=this.group,a=Math.min,o=Math.max,s=1/0;if(Od[i]){var u=s,l=s,f=-s,h=-s,c=[],v=e&&e.pixelRatio||this.getDevicePixelRatio();M(oa,function(_,S){if(_.group===i){var w=n?_.getZr().painter.getSvgDom().innerHTML:_.renderToCanvas(q(e)),x=_.getDom().getBoundingClientRect();u=a(x.left,u),l=a(x.top,l),f=o(x.right,f),h=o(x.bottom,h),c.push({dom:w,left:x.left,top:x.top})}}),u*=v,l*=v,f*=v,h*=v;var d=f-u,p=h-l,g=pn.createCanvas(),y=Bv(g,{renderer:n?"svg":"canvas"});if(y.resize({width:d,height:p}),n){var m="";return M(c,function(_){var S=_.left-u,w=_.top-l;m+=''+_.dom+""}),y.painter.getSvgRoot().innerHTML=m,e.connectedBackgroundColor&&y.painter.setBackgroundColor(e.connectedBackgroundColor),y.refreshImmediately(),y.painter.toDataURL()}else return e.connectedBackgroundColor&&y.add(new yt({shape:{x:0,y:0,width:d,height:p},style:{fill:e.connectedBackgroundColor}})),M(c,function(_){var S=new gn({style:{x:_.left*v-u,y:_.top*v-l,image:_.dom}});y.add(S)}),y.refreshImmediately(),g.toDataURL("image/"+(e&&e.type||"png"))}else return this.getDataURL(e)},t.prototype.convertToPixel=function(e,n){return Zu(this,"convertToPixel",e,n)},t.prototype.convertFromPixel=function(e,n){return Zu(this,"convertFromPixel",e,n)},t.prototype.containPixel=function(e,n){if(this._disposed){this.id;return}var i=this._model,a,o=ji(i,e);return M(o,function(s,u){u.indexOf("Models")>=0&&M(s,function(l){var f=l.coordinateSystem;if(f&&f.containPoint)a=a||!!f.containPoint(n);else if(u==="seriesModels"){var h=this._chartsMap[l.__viewId];h&&h.containPoint&&(a=a||h.containPoint(n,l))}},this)},this),!!a},t.prototype.getVisual=function(e,n){var i=this._model,a=ji(i,e,{defaultMainType:"series"}),o=a.seriesModel,s=o.getData(),u=a.hasOwnProperty("dataIndexInside")?a.dataIndexInside:a.hasOwnProperty("dataIndex")?s.indexOfRawIndex(a.dataIndex):null;return u!=null?nM(s,u,n):iM(s,n)},t.prototype.getViewOfComponentModel=function(e){return this._componentsMap[e.__viewId]},t.prototype.getViewOfSeriesModel=function(e){return this._chartsMap[e.__viewId]},t.prototype._initEvents=function(){var e=this;M(JM,function(n){var i=function(a){var o=e.getModel(),s=a.target,u,l=n==="globalout";if(l?u={}:s&&qi(s,function(d){var p=ot(d);if(p&&p.dataIndex!=null){var g=p.dataModel||o.getSeriesByIndex(p.seriesIndex);return u=g&&g.getDataParams(p.dataIndex,p.dataType,s)||{},!0}else if(p.eventData)return u=k({},p.eventData),!0},!0),u){var f=u.componentType,h=u.componentIndex;(f==="markLine"||f==="markPoint"||f==="markArea")&&(f="series",h=u.seriesIndex);var c=f&&h!=null&&o.getComponent(f,h),v=c&&e[c.mainType==="series"?"_chartsMap":"_componentsMap"][c.__viewId];u.event=a,u.type=n,e._$eventProcessor.eventInfo={targetEl:s,packedEvent:u,model:c,view:v},e.trigger(n,u)}};i.zrEventfulCallAtLast=!0,e._zr.on(n,i,e)}),M(aa,function(n,i){e._messageCenter.on(i,function(a){this.trigger(i,a)},e)}),M(["selectchanged"],function(n){e._messageCenter.on(n,function(i){this.trigger(n,i)},e)}),aM(this._messageCenter,this,this._api)},t.prototype.isDisposed=function(){return this._disposed},t.prototype.clear=function(){if(this._disposed){this.id;return}this.setOption({series:[]},!0)},t.prototype.dispose=function(){if(this._disposed){this.id;return}this._disposed=!0;var e=this.getDom();e&&fy(this.getDom(),Eh,"");var n=this,i=n._api,a=n._model;M(n._componentsViews,function(o){o.dispose(a,i)}),M(n._chartsViews,function(o){o.dispose(a,i)}),n._zr.dispose(),n._dom=n._model=n._chartsMap=n._componentsMap=n._chartsViews=n._componentsViews=n._scheduler=n._api=n._zr=n._throttledZrFlush=n._theme=n._coordSysMgr=n._messageCenter=null,delete oa[n.id]},t.prototype.resize=function(e){if(!this[Pt]){if(this._disposed){this.id;return}this._zr.resize(e);var n=this._model;if(this._loadingFX&&this._loadingFX.resize(),!!n){var i=n.resetOption("media"),a=e&&e.silent;this[Ut]&&(a==null&&(a=this[Ut].silent),i=!0,this[Ut]=null),this[Pt]=!0;try{i&&Pn(this),or.update.call(this,{type:"resize",animation:k({duration:0},e&&e.animation)})}catch(o){throw this[Pt]=!1,o}this[Pt]=!1,Ai.call(this,a),Li.call(this,a)}}},t.prototype.showLoading=function(e,n){if(this._disposed){this.id;return}if(V(e)&&(n=e,e=""),e=e||"default",this.hideLoading(),!!gf[e]){var i=gf[e](this._api,n),a=this._zr;this._loadingFX=i,a.add(i)}},t.prototype.hideLoading=function(){if(this._disposed){this.id;return}this._loadingFX&&this._zr.remove(this._loadingFX),this._loadingFX=null},t.prototype.makeActionFromEvent=function(e){var n=k({},e);return n.type=aa[e.type],n},t.prototype.dispatchAction=function(e,n){if(this._disposed){this.id;return}if(V(n)||(n={silent:!!n}),!!fs[e.type]&&!!this._model){if(this[Pt]){this._pendingActions.push(e);return}var i=n.silent;qu.call(this,e,i);var a=n.flush;a?this._zr.flush():a!==!1&&J.browser.weChat&&this._throttledZrFlush(),Ai.call(this,i),Li.call(this,i)}},t.prototype.updateLabelLayout=function(){me.trigger("series:layoutlabels",this._model,this._api,{updatedSeries:[]})},t.prototype.appendData=function(e){if(this._disposed){this.id;return}var n=e.seriesIndex,i=this.getModel(),a=i.getSeriesByIndex(n);a.appendData(e),this._scheduler.unfinished=!0,this.getZr().wakeUp()},t.internalField=function(){Pn=function(h){var c=h._scheduler;c.restorePipelines(h._model),c.prepareStageTasks(),$u(h,!0),$u(h,!1),c.plan()},$u=function(h,c){for(var v=h._model,d=h._scheduler,p=c?h._componentsViews:h._chartsViews,g=c?h._componentsMap:h._chartsMap,y=h._zr,m=h._api,_=0;_c.get("hoverLayerThreshold")&&!J.node&&!J.worker&&c.eachSeries(function(g){if(!g.preventUsingHoverLayer){var y=h._chartsMap[g.__viewId];y.__alive&&y.eachRendered(function(m){m.states.emphasis&&(m.states.emphasis.hoverLayer=!0)})}})}function o(h,c){var v=h.get("blendMode")||null;c.eachRendered(function(d){d.isGroup||(d.style.blend=v)})}function s(h,c){if(!h.preventAutoZ){var v=h.get("z")||0,d=h.get("zlevel")||0;c.eachRendered(function(p){return u(p,v,d,-1/0),!0})}}function u(h,c,v,d){var p=h.getTextContent(),g=h.getTextGuideLine(),y=h.isGroup;if(y)for(var m=h.childrenRef(),_=0;_0?{duration:p,delay:v.get("delay"),easing:v.get("easing")}:null;c.eachRendered(function(y){if(y.states&&y.states.emphasis){if(Qn(y))return;if(y instanceof at&&Ww(y),y.__dirty){var m=y.prevStates;m&&y.useStates(m)}if(d){y.stateTransition=g;var _=y.getTextContent(),S=y.getTextGuideLine();_&&(_.stateTransition=g),S&&(S.stateTransition=g)}y.__dirty&&i(y)}})}Rd=function(h){return new(function(c){O(v,c);function v(){return c!==null&&c.apply(this,arguments)||this}return v.prototype.getCoordinateSystems=function(){return h._coordSysMgr.getCoordinateSystems()},v.prototype.getComponentByElement=function(d){for(;d;){var p=d.__ecComponentInfo;if(p!=null)return h._model.getComponent(p.mainType,p.index);d=d.parent}},v.prototype.enterEmphasis=function(d,p){ii(d,p),ee(h)},v.prototype.leaveEmphasis=function(d,p){ai(d,p),ee(h)},v.prototype.enterBlur=function(d){Ew(d),ee(h)},v.prototype.leaveBlur=function(d){Py(d),ee(h)},v.prototype.enterSelect=function(d){Ry(d),ee(h)},v.prototype.leaveSelect=function(d){Ey(d),ee(h)},v.prototype.getModel=function(){return h.getModel()},v.prototype.getViewOfComponentModel=function(d){return h.getViewOfComponentModel(d)},v.prototype.getViewOfSeriesModel=function(d){return h.getViewOfSeriesModel(d)},v}(km))(h)},I0=function(h){function c(v,d){for(var p=0;p=0)){kd.push(e);var a=h0.wrapStageHandler(e,i);a.__prio=t,a.__raw=e,r.push(a)}}function B0(r,t){gf[r]=t}function aD(r,t,e){var n=NM("registerMap");n&&n(r,t,e)}var oD=lC;mn(Ph,FC);mn(Us,zC);mn(Us,GC);mn(Ph,eM);mn(Us,rM);mn(T0,OM);O0(Nm);k0(GM,VT);B0("default",HC);Fe({type:an,event:an,update:an},Gt);Fe({type:Oo,event:Oo,update:Oo},Gt);Fe({type:ta,event:ta,update:ta},Gt);Fe({type:ko,event:ko,update:ko},Gt);Fe({type:ea,event:ea,update:ea},Gt);E0("light",JC);E0("dark",jC);function Ii(r){return r==null?0:r.length||1}function Bd(r){return r}var sD=function(){function r(t,e,n,i,a,o){this._old=t,this._new=e,this._oldKeyGetter=n||Bd,this._newKeyGetter=i||Bd,this.context=a,this._diffModeMultiple=o==="multiple"}return r.prototype.add=function(t){return this._add=t,this},r.prototype.update=function(t){return this._update=t,this},r.prototype.updateManyToOne=function(t){return this._updateManyToOne=t,this},r.prototype.updateOneToMany=function(t){return this._updateOneToMany=t,this},r.prototype.updateManyToMany=function(t){return this._updateManyToMany=t,this},r.prototype.remove=function(t){return this._remove=t,this},r.prototype.execute=function(){this[this._diffModeMultiple?"_executeMultiple":"_executeOneToOne"]()},r.prototype._executeOneToOne=function(){var t=this._old,e=this._new,n={},i=new Array(t.length),a=new Array(e.length);this._initIndexMap(t,null,i,"_oldKeyGetter"),this._initIndexMap(e,n,a,"_newKeyGetter");for(var o=0;o1){var f=u.shift();u.length===1&&(n[s]=u[0]),this._update&&this._update(f,o)}else l===1?(n[s]=null,this._update&&this._update(u,o)):this._remove&&this._remove(o)}this._performRestAdd(a,n)},r.prototype._executeMultiple=function(){var t=this._old,e=this._new,n={},i={},a=[],o=[];this._initIndexMap(t,n,a,"_oldKeyGetter"),this._initIndexMap(e,i,o,"_newKeyGetter");for(var s=0;s1&&c===1)this._updateManyToOne&&this._updateManyToOne(f,l),i[u]=null;else if(h===1&&c>1)this._updateOneToMany&&this._updateOneToMany(f,l),i[u]=null;else if(h===1&&c===1)this._update&&this._update(f,l),i[u]=null;else if(h>1&&c>1)this._updateManyToMany&&this._updateManyToMany(f,l),i[u]=null;else if(h>1)for(var v=0;v1)for(var s=0;s30}var Pi=V,sr=z,pD=typeof Int32Array>"u"?Array:Int32Array,gD="e\0\0",Nd=-1,yD=["hasItemOption","_nameList","_idList","_invertedIndicesMap","_dimSummary","userOutput","_rawData","_dimValueGetter","_nameDimIdx","_idDimIdx","_nameRepeatCount"],mD=["_approximateExtent"],Fd,go,Ri,Ei,Ju,Oi,ju,_D=function(){function r(t,e){this.type="list",this._dimOmitted=!1,this._nameList=[],this._idList=[],this._visual={},this._layout={},this._itemVisuals=[],this._itemLayouts=[],this._graphicEls=[],this._approximateExtent={},this._calculationInfo={},this.hasItemOption=!1,this.TRANSFERABLE_METHODS=["cloneShallow","downSample","minmaxDownSample","lttbDownSample","map"],this.CHANGABLE_METHODS=["filterSelf","selectRange"],this.DOWNSAMPLE_METHODS=["downSample","minmaxDownSample","lttbDownSample"];var n,i=!1;F0(t)?(n=t.dimensions,this._dimOmitted=t.isDimensionOmitted(),this._schema=t):(i=!0,n=t),n=n||["x","y"];for(var a={},o=[],s={},u=!1,l={},f=0;f=e)){var n=this._store,i=n.getProvider();this._updateOrdinalMeta();var a=this._nameList,o=this._idList,s=i.getSource().sourceFormat,u=s===ce;if(u&&!i.pure)for(var l=[],f=t;f0},r.prototype.ensureUniqueItemVisual=function(t,e){var n=this._itemVisuals,i=n[t];i||(i=n[t]={});var a=i[e];return a==null&&(a=this.getVisual(e),N(a)?a=a.slice():Pi(a)&&(a=k({},a)),i[e]=a),a},r.prototype.setItemVisual=function(t,e,n){var i=this._itemVisuals[t]||{};this._itemVisuals[t]=i,Pi(e)?k(i,e):i[e]=n},r.prototype.clearAllVisual=function(){this._visual={},this._itemVisuals=[]},r.prototype.setLayout=function(t,e){Pi(t)?k(this._layout,t):this._layout[t]=e},r.prototype.getLayout=function(t){return this._layout[t]},r.prototype.getItemLayout=function(t){return this._itemLayouts[t]},r.prototype.setItemLayout=function(t,e,n){this._itemLayouts[t]=n?k(this._itemLayouts[t]||{},e):e},r.prototype.clearItemLayouts=function(){this._itemLayouts.length=0},r.prototype.setItemGraphicEl=function(t,e){var n=this.hostModel&&this.hostModel.seriesIndex;bw(n,this.dataType,t,e),this._graphicEls[t]=e},r.prototype.getItemGraphicEl=function(t){return this._graphicEls[t]},r.prototype.eachItemGraphicEl=function(t,e){M(this._graphicEls,function(n,i){n&&t&&t.call(e,n,i)})},r.prototype.cloneShallow=function(t){return t||(t=new r(this._schema?this._schema:sr(this.dimensions,this._getDimInfo,this),this.hostModel)),Ju(t,this),t._store=this._store,t},r.prototype.wrapMethod=function(t,e){var n=this[t];!Y(n)||(this.__wrappedMethods=this.__wrappedMethods||[],this.__wrappedMethods.push(t),this[t]=function(){var i=n.apply(this,arguments);return e.apply(this,[i].concat($f(arguments)))})},r.internalField=function(){Fd=function(t){var e=t._invertedIndicesMap;M(e,function(n,i){var a=t._dimInfos[i],o=a.ordinalMeta,s=t._store;if(o){n=e[i]=new pD(o.categories.length);for(var u=0;u1&&(u+="__ec__"+f),i[e]=u}}}(),r}();const SD=_D;function xD(r,t){Ch(r)||(r=Mh(r)),t=t||{};var e=t.coordDimensions||[],n=t.dimensionsDefine||r.dimensionsDefine||[],i=W(),a=[],o=bD(r,e,n,t.dimensionsCount),s=t.canOmitUnusedDimensions&&H0(o),u=n===r.dimensionsDefine,l=u?G0(r):z0(n),f=t.encodeDefine;!f&&t.encodeDefaulter&&(f=t.encodeDefaulter(r,o));for(var h=W(f),c=new Xm(o),v=0;v0&&(n.name=i+(a-1)),a++,t.set(i,a)}}function bD(r,t,e,n){var i=Math.max(r.dimensionsDetectedCount||1,t.length,e.length,n||0);return M(t,function(a){var o;V(a)&&(o=a.dimsDef)&&(i=Math.max(i,o.length))}),i}function TD(r,t,e){if(e||t.hasKey(r)){for(var n=0;t.hasKey(r+n);)n++;r+=n}return t.set(r,!0),r}var CD=function(){function r(t){this.coordSysDims=[],this.axisMap=W(),this.categoryAxisMap=W(),this.coordSysName=t}return r}();function MD(r){var t=r.get("coordinateSystem"),e=new CD(t),n=DD[t];if(n)return n(r,e,e.axisMap,e.categoryAxisMap),e}var DD={cartesian2d:function(r,t,e,n){var i=r.getReferringComponents("xAxis",zt).models[0],a=r.getReferringComponents("yAxis",zt).models[0];t.coordSysDims=["x","y"],e.set("x",i),e.set("y",a),Rn(i)&&(n.set("x",i),t.firstCategoryDimIndex=0),Rn(a)&&(n.set("y",a),t.firstCategoryDimIndex==null&&(t.firstCategoryDimIndex=1))},singleAxis:function(r,t,e,n){var i=r.getReferringComponents("singleAxis",zt).models[0];t.coordSysDims=["single"],e.set("single",i),Rn(i)&&(n.set("single",i),t.firstCategoryDimIndex=0)},polar:function(r,t,e,n){var i=r.getReferringComponents("polar",zt).models[0],a=i.findAxisModel("radiusAxis"),o=i.findAxisModel("angleAxis");t.coordSysDims=["radius","angle"],e.set("radius",a),e.set("angle",o),Rn(a)&&(n.set("radius",a),t.firstCategoryDimIndex=0),Rn(o)&&(n.set("angle",o),t.firstCategoryDimIndex==null&&(t.firstCategoryDimIndex=1))},geo:function(r,t,e,n){t.coordSysDims=["lng","lat"]},parallel:function(r,t,e,n){var i=r.ecModel,a=i.getComponent("parallel",r.get("parallelIndex")),o=t.coordSysDims=a.dimensions.slice();M(a.parallelAxisIndex,function(s,u){var l=i.getComponent("parallelAxis",s),f=o[u];e.set(f,l),Rn(l)&&(n.set(f,l),t.firstCategoryDimIndex==null&&(t.firstCategoryDimIndex=u))})}};function Rn(r){return r.get("type")==="category"}function AD(r,t,e){e=e||{};var n=e.byIndex,i=e.stackedCoordDimension,a,o,s;LD(t)?a=t:(o=t.schema,a=o.dimensions,s=t.store);var u=!!(r&&r.get("stack")),l,f,h,c;if(M(a,function(m,_){G(m)&&(a[_]=m={name:m}),u&&!m.isExtraCoord&&(!n&&!l&&m.ordinalMeta&&(l=m),!f&&m.type!=="ordinal"&&m.type!=="time"&&(!i||i===m.coordDim)&&(f=m))}),f&&!n&&!l&&(n=!0),f){h="__\0ecstackresult_"+r.id,c="__\0ecstackedover_"+r.id,l&&(l.createInvertedIndices=!0);var v=f.coordDim,d=f.type,p=0;M(a,function(m){m.coordDim===v&&p++});var g={name:h,coordDim:v,coordDimIndex:p,type:d,isExtraCoord:!0,isCalculationCoord:!0,storeDimIndex:a.length},y={name:c,coordDim:c,coordDimIndex:p+1,type:d,isExtraCoord:!0,isCalculationCoord:!0,storeDimIndex:a.length+1};o?(s&&(g.storeDimIndex=s.ensureCalculationDimension(c,d),y.storeDimIndex=s.ensureCalculationDimension(h,d)),o.appendCalculationDimension(g),o.appendCalculationDimension(y)):(a.push(g),a.push(y))}return{stackedDimension:f&&f.name,stackedByDimension:l&&l.name,isStackedByIndex:n,stackedOverDimension:c,stackResultDimension:h}}function LD(r){return!F0(r.schema)}function Ta(r,t){return!!t&&t===r.getCalculationInfo("stackedDimension")}function ID(r,t){return Ta(r,t)?r.getCalculationInfo("stackResultDimension"):t}function PD(r,t){var e=r.get("coordinateSystem"),n=Th.get(e),i;return t&&t.coordSysDims&&(i=z(t.coordSysDims,function(a){var o={name:a},s=t.axisMap.get(a);if(s){var u=s.get("type");o.type=fD(u)}return o})),i||(i=n&&(n.getDimensionsInfo?n.getDimensionsInfo():n.dimensions.slice())||["x","y"]),i}function RD(r,t,e){var n,i;return e&&M(r,function(a,o){var s=a.coordDim,u=e.categoryAxisMap.get(s);u&&(n==null&&(n=o),a.ordinalMeta=u.getOrdinalMeta(),t&&(a.createInvertedIndices=!0)),a.otherDims.itemName!=null&&(i=!0)}),!i&&n!=null&&(r[n].otherDims.itemName=0),n}function ED(r,t,e){e=e||{};var n=t.getSourceManager(),i,a=!1;r?(a=!0,i=Mh(r)):(i=n.getSource(),a=i.sourceFormat===ce);var o=MD(t),s=PD(t,o),u=e.useEncodeDefaulter,l=Y(u)?u:u?ut(dT,s,t):null,f={coordDimensions:s,generateCoord:e.generateCoord,encodeDefine:t.getEncode(),encodeDefaulter:l,canOmitUnusedDimensions:!a},h=xD(i,f),c=RD(h.dimensions,e.createInvertedIndices,o),v=a?null:n.getSharedDataStore(h),d=AD(t,{schema:h,store:v}),p=new SD(h,t);p.setCalculationInfo(d);var g=c!=null&&OD(i)?function(y,m,_,S){return S===c?_:this.defaultDimValueGetter(y,m,_,S)}:null;return p.hasItemOption=!1,p.initData(a?i:v,null,g),p}function OD(r){if(r.sourceFormat===ce){var t=kD(r.data||[]);return!N(Pa(t))}}function kD(r){for(var t=0;te[1]&&(e[1]=t[1])},r.prototype.unionExtentFromData=function(t,e){this.unionExtent(t.getApproximateExtent(e))},r.prototype.getExtent=function(){return this._extent.slice()},r.prototype.setExtent=function(t,e){var n=this._extent;isNaN(t)||(n[0]=t),isNaN(e)||(n[1]=e)},r.prototype.isInExtentRange=function(t){return this._extent[0]<=t&&this._extent[1]>=t},r.prototype.isBlank=function(){return this._isBlank},r.prototype.setBlank=function(t){this._isBlank=t},r}();bs(V0);const er=V0;var BD=0,ND=function(){function r(t){this.categories=t.categories||[],this._needCollect=t.needCollect,this._deduplication=t.deduplication,this.uid=++BD}return r.createByAxisModel=function(t){var e=t.option,n=e.data,i=n&&z(n,FD);return new r({categories:i,needCollect:!i,deduplication:e.dedplication!==!1})},r.prototype.getOrdinal=function(t){return this._getOrCreateMap().get(t)},r.prototype.parseAndCollect=function(t){var e,n=this._needCollect;if(!G(t)&&!n)return t;if(n&&!this._deduplication)return e=this.categories.length,this.categories[e]=t,e;var i=this._getOrCreateMap();return e=i.get(t),e==null&&(n?(e=this.categories.length,this.categories[e]=t,i.set(t,e)):e=NaN),e},r.prototype._getOrCreateMap=function(){return this._map||(this._map=W(this.categories))},r}();function FD(r){return V(r)&&r.value!=null?r.value:r+""}const yf=ND;function mf(r){return r.type==="interval"||r.type==="log"}function zD(r,t,e,n){var i={},a=r[1]-r[0],o=i.interval=iy(a/t,!0);e!=null&&on&&(o=i.interval=n);var s=i.intervalPrecision=W0(o),u=i.niceTickExtent=[wt(Math.ceil(r[0]/o)*o,s),wt(Math.floor(r[1]/o)*o,s)];return GD(u,r),i}function tl(r){var t=Math.pow(10,jf(r)),e=r/t;return e?e===2?e=3:e===3?e=5:e*=2:e=1,wt(e*t)}function W0(r){return Ye(r)+2}function zd(r,t,e){r[t]=Math.max(Math.min(r[t],e[1]),e[0])}function GD(r,t){!isFinite(r[0])&&(r[0]=t[0]),!isFinite(r[1])&&(r[1]=t[1]),zd(r,0,t),zd(r,1,t),r[0]>r[1]&&(r[0]=r[1])}function Ys(r,t){return r>=t[0]&&r<=t[1]}function $s(r,t){return t[1]===t[0]?.5:(r-t[0])/(t[1]-t[0])}function Zs(r,t){return r*(t[1]-t[0])+t[0]}var U0=function(r){O(t,r);function t(e){var n=r.call(this,e)||this;n.type="ordinal";var i=n.getSetting("ordinalMeta");return i||(i=new yf({})),N(i)&&(i=new yf({categories:z(i,function(a){return V(a)?a.value:a})})),n._ordinalMeta=i,n._extent=n.getSetting("extent")||[0,i.categories.length-1],n}return t.prototype.parse=function(e){return e==null?NaN:G(e)?this._ordinalMeta.getOrdinal(e):Math.round(e)},t.prototype.contain=function(e){return e=this.parse(e),Ys(e,this._extent)&&this._ordinalMeta.categories[e]!=null},t.prototype.normalize=function(e){return e=this._getTickNumber(this.parse(e)),$s(e,this._extent)},t.prototype.scale=function(e){return e=Math.round(Zs(e,this._extent)),this.getRawOrdinalNumber(e)},t.prototype.getTicks=function(){for(var e=[],n=this._extent,i=n[0];i<=n[1];)e.push({value:i}),i++;return e},t.prototype.getMinorTicks=function(e){},t.prototype.setSortInfo=function(e){if(e==null){this._ordinalNumbersByTick=this._ticksByOrdinalNumber=null;return}for(var n=e.ordinalNumbers,i=this._ordinalNumbersByTick=[],a=this._ticksByOrdinalNumber=[],o=0,s=this._ordinalMeta.categories.length,u=Math.min(s,n.length);o=0&&e=0&&e=e},t.prototype.getOrdinalMeta=function(){return this._ordinalMeta},t.prototype.calcNiceTicks=function(){},t.prototype.calcNiceExtent=function(){},t.type="ordinal",t}(er);er.registerClass(U0);const Y0=U0;var Zr=wt,$0=function(r){O(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type="interval",e._interval=0,e._intervalPrecision=2,e}return t.prototype.parse=function(e){return e},t.prototype.contain=function(e){return Ys(e,this._extent)},t.prototype.normalize=function(e){return $s(e,this._extent)},t.prototype.scale=function(e){return Zs(e,this._extent)},t.prototype.setExtent=function(e,n){var i=this._extent;isNaN(e)||(i[0]=parseFloat(e)),isNaN(n)||(i[1]=parseFloat(n))},t.prototype.unionExtent=function(e){var n=this._extent;e[0]n[1]&&(n[1]=e[1]),this.setExtent(n[0],n[1])},t.prototype.getInterval=function(){return this._interval},t.prototype.setInterval=function(e){this._interval=e,this._niceExtent=this._extent.slice(),this._intervalPrecision=W0(e)},t.prototype.getTicks=function(e){var n=this._interval,i=this._extent,a=this._niceExtent,o=this._intervalPrecision,s=[];if(!n)return s;var u=1e4;i[0]u)return[];var f=s.length?s[s.length-1].value:a[1];return i[1]>f&&(e?s.push({value:Zr(f+n,o)}):s.push({value:i[1]})),s},t.prototype.getMinorTicks=function(e){for(var n=this.getTicks(!0),i=[],a=this.getExtent(),o=1;oa[0]&&v0&&(a=a===null?s:Math.min(a,s))}e[n]=a}}return e}function YD(r){var t=UD(r),e=[];return M(r,function(n){var i=n.coordinateSystem,a=i.getBaseAxis(),o=a.getExtent(),s;if(a.type==="category")s=a.getBandWidth();else if(a.type==="value"||a.type==="time"){var u=a.dim+"_"+a.index,l=t[u],f=Math.abs(o[1]-o[0]),h=a.scale.getExtent(),c=Math.abs(h[1]-h[0]);s=l?f/c*l:f}else{var v=n.getData();s=Math.abs(o[1]-o[0])/v.count()}var d=Ct(n.get("barWidth"),s),p=Ct(n.get("barMaxWidth"),s),g=Ct(n.get("barMinWidth")||(qD(n)?.5:1),s),y=n.get("barGap"),m=n.get("barCategoryGap");e.push({bandWidth:s,barWidth:d,barMaxWidth:p,barMinWidth:g,barGap:y,barCategoryGap:m,axisKey:q0(a),stackId:X0(n)})}),$D(e)}function $D(r){var t={};M(r,function(n,i){var a=n.axisKey,o=n.bandWidth,s=t[a]||{bandWidth:o,remainedWidth:o,autoWidthCount:0,categoryGap:null,gap:"20%",stacks:{}},u=s.stacks;t[a]=s;var l=n.stackId;u[l]||s.autoWidthCount++,u[l]=u[l]||{width:0,maxWidth:0};var f=n.barWidth;f&&!u[l].width&&(u[l].width=f,f=Math.min(s.remainedWidth,f),s.remainedWidth-=f);var h=n.barMaxWidth;h&&(u[l].maxWidth=h);var c=n.barMinWidth;c&&(u[l].minWidth=c);var v=n.barGap;v!=null&&(s.gap=v);var d=n.barCategoryGap;d!=null&&(s.categoryGap=d)});var e={};return M(t,function(n,i){e[i]={};var a=n.stacks,o=n.bandWidth,s=n.categoryGap;if(s==null){var u=dt(a).length;s=Math.max(35-u*4,15)+"%"}var l=Ct(s,o),f=Ct(n.gap,1),h=n.remainedWidth,c=n.autoWidthCount,v=(h-l)/(c+(c-1)*f);v=Math.max(v,0),M(a,function(y){var m=y.maxWidth,_=y.minWidth;if(y.width){var S=y.width;m&&(S=Math.min(S,m)),_&&(S=Math.max(S,_)),y.width=S,h-=S+f*S,c--}else{var S=v;m&&mS&&(S=_),S!==v&&(y.width=S,h-=S+f*S,c--)}}),v=(h-l)/(c+(c-1)*f),v=Math.max(v,0);var d=0,p;M(a,function(y,m){y.width||(y.width=v),p=y,d+=y.width*(1+f)}),p&&(d-=p.width*f);var g=-d/2;M(a,function(y,m){e[i][m]=e[i][m]||{bandWidth:o,offset:g,width:y.width},g+=y.width*(1+f)})}),e}function ZD(r,t,e){if(r&&t){var n=r[q0(t)];return n!=null&&e!=null?n[X0(e)]:n}}function XD(r){return r.coordinateSystem&&r.coordinateSystem.type==="cartesian2d"}function qD(r){return r.pipelineContext&&r.pipelineContext.large}var KD=function(r,t,e,n){for(;e>>1;r[i][1]i&&(this._approxInterval=i);var s=yo.length,u=Math.min(KD(yo,this._approxInterval,0,s),s-1);this._interval=yo[u][1],this._minLevelUnit=yo[Math.max(u-1,0)][0]},t.prototype.parse=function(e){return ct(e)?e:+qe(e)},t.prototype.contain=function(e){return Ys(this.parse(e),this._extent)},t.prototype.normalize=function(e){return $s(this.parse(e),this._extent)},t.prototype.scale=function(e){return Zs(e,this._extent)},t.type="time",t}(Fa),yo=[["second",_h],["minute",Sh],["hour",na],["quarter-day",na*6],["half-day",na*12],["day",ue*1.2],["half-week",ue*3.5],["week",ue*7],["month",ue*31],["quarter",ue*95],["half-year",Ac/2],["year",Ac]];function QD(r,t,e,n){var i=qe(t),a=qe(e),o=function(d){return Ic(i,d,n)===Ic(a,d,n)},s=function(){return o("year")},u=function(){return s()&&o("month")},l=function(){return u()&&o("day")},f=function(){return l()&&o("hour")},h=function(){return f()&&o("minute")},c=function(){return h()&&o("second")},v=function(){return c()&&o("millisecond")};switch(r){case"year":return s();case"month":return u();case"day":return l();case"hour":return f();case"minute":return h();case"second":return c();case"millisecond":return v()}}function JD(r,t){return r/=ue,r>16?16:r>7.5?7:r>3.5?4:r>1.5?2:1}function jD(r){var t=30*ue;return r/=t,r>6?6:r>3?3:r>2?2:1}function tA(r){return r/=na,r>12?12:r>6?6:r>3.5?4:r>2?2:1}function Gd(r,t){return r/=t?Sh:_h,r>30?30:r>20?20:r>15?15:r>10?10:r>5?5:r>2?2:1}function eA(r){return iy(r,!0)}function rA(r,t,e){var n=new Date(r);switch(jn(t)){case"year":case"month":n[mm(e)](0);case"day":n[_m(e)](1);case"hour":n[Sm(e)](0);case"minute":n[xm(e)](0);case"second":n[wm(e)](0),n[bm(e)](0)}return n.getTime()}function nA(r,t,e,n){var i=1e4,a=gm,o=0;function s(D,A,L,I,P,R,E){for(var H=new Date(A),B=A,F=H[I]();B1&&R===0&&L.unshift({value:L[0].value-B})}}for(var R=0;R=n[0]&&m<=n[1]&&h++)}var _=(n[1]-n[0])/t;if(h>_*1.5&&c>_/1.5||(l.push(g),h>_||r===a[v]))break}f=[]}}}for(var S=mt(z(l,function(D){return mt(D,function(A){return A.value>=n[0]&&A.value<=n[1]&&!A.notAdd})}),function(D){return D.length>0}),w=[],x=S.length-1,v=0;v0;)a*=10;var s=[wt(sA(n[0]/a)*a),wt(oA(n[1]/a)*a)];this._interval=a,this._niceExtent=s}},t.prototype.calcNiceExtent=function(e){sa.calcNiceExtent.call(this,e),this._fixMin=e.fixMin,this._fixMax=e.fixMax},t.prototype.parse=function(e){return e},t.prototype.contain=function(e){return e=pe(e)/pe(this.base),Ys(e,this._extent)},t.prototype.normalize=function(e){return e=pe(e)/pe(this.base),$s(e,this._extent)},t.prototype.scale=function(e){return e=Zs(e,this._extent),mo(this.base,e)},t.type="log",t}(er),Q0=Bh.prototype;Q0.getMinorTicks=sa.getMinorTicks;Q0.getLabel=sa.getLabel;function _o(r,t){return aA(r,Ye(t))}er.registerClass(Bh);const uA=Bh;var lA=function(){function r(t,e,n){this._prepareParams(t,e,n)}return r.prototype._prepareParams=function(t,e,n){n[1]0&&u>0&&!l&&(s=0),s<0&&u<0&&!f&&(u=0));var c=this._determinedMin,v=this._determinedMax;return c!=null&&(s=c,l=!0),v!=null&&(u=v,f=!0),{min:s,max:u,minFixed:l,maxFixed:f,isBlank:h}},r.prototype.modifyDataMinMax=function(t,e){this[hA[t]]=e},r.prototype.setDeterminedMinMax=function(t,e){var n=fA[t];this[n]=e},r.prototype.freeze=function(){this.frozen=!0},r}(),fA={min:"_determinedMin",max:"_determinedMax"},hA={min:"_dataMin",max:"_dataMax"};function J0(r,t,e){var n=r.rawExtentInfo;return n||(n=new lA(r,t,e),r.rawExtentInfo=n,n)}function So(r,t){return t==null?null:Wo(t)?NaN:r.parse(t)}function j0(r,t){var e=r.type,n=J0(r,t,r.getExtent()).calculate();r.setBlank(n.isBlank);var i=n.min,a=n.max,o=t.ecModel;if(o&&e==="time"){var s=WD("bar",o),u=!1;if(M(s,function(h){u=u||h.getBaseAxis()===t.axis}),u){var l=YD(s),f=vA(i,a,t,l);i=f.min,a=f.max}}return{extent:[i,a],fixMin:n.minFixed,fixMax:n.maxFixed}}function vA(r,t,e,n){var i=e.axis.getExtent(),a=Math.abs(i[1]-i[0]),o=ZD(n,e.axis);if(o===void 0)return{min:r,max:t};var s=1/0;M(o,function(v){s=Math.min(v.offset,s)});var u=-1/0;M(o,function(v){u=Math.max(v.offset+v.width,u)}),s=Math.abs(s),u=Math.abs(u);var l=s+u,f=t-r,h=1-(s+u)/a,c=f/h-f;return t+=c*(u/l),r-=c*(s/l),{min:r,max:t}}function Vd(r,t){var e=t,n=j0(r,e),i=n.extent,a=e.get("splitNumber");r instanceof uA&&(r.base=e.get("logBase"));var o=r.type,s=e.get("interval"),u=o==="interval"||o==="time";r.setExtent(i[0],i[1]),r.calcNiceExtent({splitNumber:a,fixMin:n.fixMin,fixMax:n.fixMax,minInterval:u?e.get("minInterval"):null,maxInterval:u?e.get("maxInterval"):null}),s!=null&&r.setInterval&&r.setInterval(s)}function cA(r,t){if(t=t||r.get("type"),t)switch(t){case"category":return new Y0({ordinalMeta:r.getOrdinalMeta?r.getOrdinalMeta():r.getCategories(),extent:[1/0,-1/0]});case"time":return new iA({locale:r.ecModel.getLocaleModel(),useUTC:r.ecModel.get("useUTC")});default:return new(er.getClass(t)||Fa)}}function dA(r){var t=r.scale.getExtent(),e=t[0],n=t[1];return!(e>0&&n>0||e<0&&n<0)}function gi(r){var t=r.getLabelModel().get("formatter"),e=r.type==="category"?r.scale.getExtent()[0]:null;return r.scale.type==="time"?function(n){return function(i,a){return r.scale.getFormattedLabel(i,a,n)}}(t):G(t)?function(n){return function(i){var a=r.scale.getLabel(i),o=n.replace("{value}",a!=null?a:"");return o}}(t):Y(t)?function(n){return function(i,a){return e!=null&&(a=i.value-e),n(Nh(r,i),a,i.level!=null?{level:i.level}:null)}}(t):function(n){return r.scale.getLabel(n)}}function Nh(r,t){return r.type==="category"?r.scale.getLabel(t):t.value}function pA(r){var t=r.model,e=r.scale;if(!(!t.get(["axisLabel","show"])||e.isBlank())){var n,i,a=e.getExtent();e instanceof Y0?i=e.count():(n=e.getTicks(),i=n.length);var o=r.getLabelModel(),s=gi(r),u,l=1;i>40&&(l=Math.ceil(i/40));for(var f=0;fr[1]&&(r[1]=i[1])})}var mA=function(){function r(){}return r.prototype.getNeedCrossZero=function(){var t=this.option;return!t.scale},r.prototype.getCoordSysModel=function(){},r}(),Wd=[],_A={registerPreprocessor:O0,registerProcessor:k0,registerPostInit:eD,registerPostUpdate:rD,registerUpdateLifecycle:Oh,registerAction:Fe,registerCoordinateSystem:nD,registerLayout:iD,registerVisual:mn,registerTransform:oD,registerLoading:B0,registerMap:aD,registerImpl:BM,PRIORITY:qM,ComponentModel:vt,ComponentView:he,SeriesModel:Sa,ChartView:xr,registerComponentModel:function(r){vt.registerClass(r)},registerComponentView:function(r){he.registerClass(r)},registerSeriesModel:function(r){Sa.registerClass(r)},registerChartView:function(r){xr.registerClass(r)},registerSubTypeDefaulter:function(r,t){vt.registerSubTypeDefaulter(r,t)},registerPainter:function(r,t){jS(r,t)}};function Be(r){if(N(r)){M(r,function(t){Be(t)});return}tt(Wd,r)>=0||(Wd.push(r),Y(r)&&(r={install:r}),r.install(_A))}var Ca=gt();function r_(r,t){var e=z(t,function(n){return r.scale.parse(n)});return r.type==="time"&&e.length>0&&(e.sort(),e.unshift(e[0]),e.push(e[e.length-1])),e}function SA(r){var t=r.getLabelModel().get("customValues");if(t){var e=gi(r),n=r.scale.getExtent(),i=r_(r,t),a=mt(i,function(o){return o>=n[0]&&o<=n[1]});return{labels:z(a,function(o){var s={value:o};return{formattedLabel:e(s),rawLabel:r.scale.getLabel(s),tickValue:o}})}}return r.type==="category"?wA(r):TA(r)}function xA(r,t){var e=r.getTickModel().get("customValues");if(e){var n=r.scale.getExtent(),i=r_(r,e);return{ticks:mt(i,function(a){return a>=n[0]&&a<=n[1]})}}return r.type==="category"?bA(r,t):{ticks:z(r.scale.getTicks(),function(a){return a.value})}}function wA(r){var t=r.getLabelModel(),e=n_(r,t);return!t.get("show")||r.scale.isBlank()?{labels:[],labelCategoryInterval:e.labelCategoryInterval}:e}function n_(r,t){var e=i_(r,"labels"),n=Fh(t),i=a_(e,n);if(i)return i;var a,o;return Y(n)?a=u_(r,n):(o=n==="auto"?CA(r):n,a=s_(r,o)),o_(e,n,{labels:a,labelCategoryInterval:o})}function bA(r,t){var e=i_(r,"ticks"),n=Fh(t),i=a_(e,n);if(i)return i;var a,o;if((!t.get("show")||r.scale.isBlank())&&(a=[]),Y(n))a=u_(r,n,!0);else if(n==="auto"){var s=n_(r,r.getLabelModel());o=s.labelCategoryInterval,a=z(s.labels,function(u){return u.tickValue})}else o=n,a=s_(r,o,!0);return o_(e,n,{ticks:a,tickCategoryInterval:o})}function TA(r){var t=r.scale.getTicks(),e=gi(r);return{labels:z(t,function(n,i){return{level:n.level,formattedLabel:e(n,i),rawLabel:r.scale.getLabel(n),tickValue:n.value}})}}function i_(r,t){return Ca(r)[t]||(Ca(r)[t]=[])}function a_(r,t){for(var e=0;e40&&(s=Math.max(1,Math.floor(o/40)));for(var u=a[0],l=r.dataToCoord(u+1)-r.dataToCoord(u),f=Math.abs(l*Math.cos(n)),h=Math.abs(l*Math.sin(n)),c=0,v=0;u<=a[1];u+=s){var d=0,p=0,g=ws(e({value:u}),t.font,"center","top");d=g.width*1.3,p=g.height*1.3,c=Math.max(c,d,7),v=Math.max(v,p,7)}var y=c/f,m=v/h;isNaN(y)&&(y=1/0),isNaN(m)&&(m=1/0);var _=Math.max(0,Math.floor(Math.min(y,m))),S=Ca(r.model),w=r.getExtent(),x=S.lastAutoInterval,b=S.lastTickCount;return x!=null&&b!=null&&Math.abs(x-_)<=1&&Math.abs(b-o)<=1&&x>_&&S.axisExtent0===w[0]&&S.axisExtent1===w[1]?_=x:(S.lastTickCount=o,S.lastAutoInterval=_,S.axisExtent0=w[0],S.axisExtent1=w[1]),_}function DA(r){var t=r.getLabelModel();return{axisRotate:r.getRotate?r.getRotate():r.isHorizontal&&!r.isHorizontal()?90:0,labelRotate:t.get("rotate")||0,font:t.getFont()}}function s_(r,t,e){var n=gi(r),i=r.scale,a=i.getExtent(),o=r.getLabelModel(),s=[],u=Math.max((t||0)+1,1),l=a[0],f=i.count();l!==0&&u>1&&f/u>2&&(l=Math.round(Math.ceil(l/u)*u));var h=t_(r),c=o.get("showMinLabel")||h,v=o.get("showMaxLabel")||h;c&&l!==a[0]&&p(a[0]);for(var d=l;d<=a[1];d+=u)p(d);v&&d-u!==a[1]&&p(a[1]);function p(g){var y={value:g};s.push(e?g:{formattedLabel:n(y),rawLabel:i.getLabel(y),tickValue:g})}return s}function u_(r,t,e){var n=r.scale,i=gi(r),a=[];return M(n.getTicks(),function(o){var s=n.getLabel(o),u=o.value;t(o.value,s)&&a.push(e?u:{formattedLabel:i(o),rawLabel:s,tickValue:u})}),a}var Ud=[0,1],AA=function(){function r(t,e,n){this.onBand=!1,this.inverse=!1,this.dim=t,this.scale=e,this._extent=n||[0,0]}return r.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},r.prototype.containData=function(t){return this.scale.contain(t)},r.prototype.getExtent=function(){return this._extent.slice()},r.prototype.getPixelPrecision=function(t){return ry(t||this.scale.getExtent(),this._extent)},r.prototype.setExtent=function(t,e){var n=this._extent;n[0]=t,n[1]=e},r.prototype.dataToCoord=function(t,e){var n=this._extent,i=this.scale;return t=i.normalize(t),this.onBand&&i.type==="ordinal"&&(n=n.slice(),Yd(n,i.count())),Et(t,Ud,n,e)},r.prototype.coordToData=function(t,e){var n=this._extent,i=this.scale;this.onBand&&i.type==="ordinal"&&(n=n.slice(),Yd(n,i.count()));var a=Et(t,n,Ud,e);return this.scale.scale(a)},r.prototype.pointToData=function(t,e){},r.prototype.getTicksCoords=function(t){t=t||{};var e=t.tickModel||this.getTickModel(),n=xA(this,e),i=n.ticks,a=z(i,function(s){return{coord:this.dataToCoord(this.scale.type==="ordinal"?this.scale.getRawOrdinalNumber(s):s),tickValue:s}},this),o=e.get("alignWithLabel");return LA(this,a,o,t.clamp),a},r.prototype.getMinorTicksCoords=function(){if(this.scale.type==="ordinal")return[];var t=this.model.getModel("minorTick"),e=t.get("splitNumber");e>0&&e<100||(e=5);var n=this.scale.getMinorTicks(e),i=z(n,function(a){return z(a,function(o){return{coord:this.dataToCoord(o),tickValue:o}},this)},this);return i},r.prototype.getViewLabels=function(){return SA(this).labels},r.prototype.getLabelModel=function(){return this.model.getModel("axisLabel")},r.prototype.getTickModel=function(){return this.model.getModel("axisTick")},r.prototype.getBandWidth=function(){var t=this._extent,e=this.scale.getExtent(),n=e[1]-e[0]+(this.onBand?1:0);n===0&&(n=1);var i=Math.abs(t[1]-t[0]);return Math.abs(i)/n},r.prototype.calculateCategoryInterval=function(){return MA(this)},r}();function Yd(r,t){var e=r[1]-r[0],n=t,i=e/n/2;r[0]+=i,r[1]-=i}function LA(r,t,e,n){var i=t.length;if(!r.onBand||e||!i)return;var a=r.getExtent(),o,s;if(i===1)t[0].coord=a[0],o=t[1]={coord:a[1],tickValue:t[0].tickValue};else{var u=t[i-1].tickValue-t[0].tickValue,l=(t[i-1].coord-t[0].coord)/u;M(t,function(v){v.coord-=l/2});var f=r.scale.getExtent();s=1+f[1]-t[i-1].tickValue,o={coord:t[i-1].coord+l*s,tickValue:f[1]+1},t.push(o)}var h=a[0]>a[1];c(t[0].coord,a[0])&&(n?t[0].coord=a[0]:t.shift()),n&&c(a[0],t[0].coord)&&t.unshift({coord:a[0]}),c(a[1],o.coord)&&(n?o.coord=a[1]:t.pop()),n&&c(o.coord,a[1])&&t.push({coord:a[1]});function c(v,d){return v=wt(v),d=wt(d),h?v>d:vi&&(i+=ki);var v=Math.atan2(s,o);if(v<0&&(v+=ki),v>=n&&v<=i||v+ki>=n&&v+ki<=i)return u[0]=f,u[1]=h,l-e;var d=e*Math.cos(n)+r,p=e*Math.sin(n)+t,g=e*Math.cos(i)+r,y=e*Math.sin(i)+t,m=(d-o)*(d-o)+(p-s)*(p-s),_=(g-o)*(g-o)+(y-s)*(y-s);return m<_?(u[0]=d,u[1]=p,Math.sqrt(m)):(u[0]=g,u[1]=y,Math.sqrt(_))}function _f(r,t,e,n,i,a,o,s){var u=i-r,l=a-t,f=e-r,h=n-t,c=Math.sqrt(f*f+h*h);f/=c,h/=c;var v=u*f+l*h,d=v/c;s&&(d=Math.min(Math.max(d,0),1)),d*=c;var p=o[0]=r+d*f,g=o[1]=t+d*h;return Math.sqrt((p-i)*(p-i)+(g-a)*(g-a))}function l_(r,t,e,n,i,a,o){e<0&&(r=r+e,e=-e),n<0&&(t=t+n,n=-n);var s=r+e,u=t+n,l=o[0]=Math.min(Math.max(i,r),s),f=o[1]=Math.min(Math.max(a,t),u);return Math.sqrt((l-i)*(l-i)+(f-a)*(f-a))}var _e=[];function OA(r,t,e){var n=l_(t.x,t.y,t.width,t.height,r.x,r.y,_e);return e.set(_e[0],_e[1]),n}function kA(r,t,e){for(var n=0,i=0,a=0,o=0,s,u,l=1/0,f=t.data,h=r.x,c=r.y,v=0;v0){t=t/180*Math.PI,rn.fromArray(r[0]),Mt.fromArray(r[1]),Jt.fromArray(r[2]),Z.sub(Yn,rn,Mt),Z.sub(Bi,Jt,Mt);var e=Yn.len(),n=Bi.len();if(!(e<.001||n<.001)){Yn.scale(1/e),Bi.scale(1/n);var i=Yn.dot(Bi),a=Math.cos(t);if(a1&&Z.copy(qr,Jt),qr.toArray(r[1])}}}}function el(r,t,e,n){var i=e==="normal",a=i?r:r.ensureState(e);a.ignore=t;var o=n.get("smooth");o&&o===!0&&(o=.3),a.shape=a.shape||{},o>0&&(a.shape.smooth=o);var s=n.getModel("lineStyle").getLineStyle();i?r.useStyle(s):a.style=s}function NA(r,t){var e=t.smooth,n=t.points;if(!!n)if(r.moveTo(n[0][0],n[0][1]),e>0&&n.length>=3){var i=Dl(n[0],n[1]),a=Dl(n[1],n[2]);if(!i||!a){r.lineTo(n[1][0],n[1][1]),r.lineTo(n[2][0],n[2][1]);return}var o=Math.min(i,a)*e,s=Mo([],n[1],n[0],o/i),u=Mo([],n[1],n[2],o/a),l=Mo([],s,u,.5);r.bezierCurveTo(s[0],s[1],s[0],s[1],l[0],l[1]),r.bezierCurveTo(u[0],u[1],u[0],u[1],n[2][0],n[2][1])}else for(var f=1;f0&&a&&w(-f/o,0,o);var p=r[0],g=r[o-1],y,m;_(),y<0&&x(-y,.8),m<0&&x(m,.8),_(),S(y,m,1),S(m,y,-1),_(),y<0&&b(-y),m<0&&b(m);function _(){y=p.rect[t]-n,m=i-g.rect[t]-g.rect[e]}function S(C,T,D){if(C<0){var A=Math.min(T,-C);if(A>0){w(A*D,0,o);var L=A+C;L<0&&x(-L*D,1)}else x(-C*D,1)}}function w(C,T,D){C!==0&&(l=!0);for(var A=T;A0)for(var L=0;L0;L--){var E=D[L-1]*R;w(-E,L,o)}}}function b(C){var T=C<0?-1:1;C=Math.abs(C);for(var D=Math.ceil(C/(o-1)),A=0;A0?w(D,0,A+1):w(-D,o-A-1,o),C-=D,C<=0)return}return l}function GA(r,t,e,n){return h_(r,"x","width",t,e,n)}function HA(r,t,e,n){return h_(r,"y","height",t,e,n)}function v_(r){var t=[];r.sort(function(p,g){return g.priority-p.priority});var e=new rt(0,0,0,0);function n(p){if(!p.ignore){var g=p.ensureState("emphasis");g.ignore==null&&(g.ignore=!1)}p.ignore=!0}for(var i=0;i=0&&n.attr(a.oldLayoutSelect),tt(c,"emphasis")>=0&&n.attr(a.oldLayoutEmphasis)),xe(n,l,e,u)}else if(n.attr(l),!Es(n).valueAnimation){var h=Q(n.style.opacity,1);n.style.opacity=0,Qe(n,{style:{opacity:h}},e,u)}if(a.oldLayout=l,n.states.select){var v=a.oldLayoutSelect={};xo(v,l,wo),xo(v,n.states.select,wo)}if(n.states.emphasis){var d=a.oldLayoutEmphasis={};xo(d,l,wo),xo(d,n.states.emphasis,wo)}Gb(n,u,f,e,e)}if(i&&!i.ignore&&!i.invisible){var a=UA(i),o=a.oldLayout,p={points:i.shape.points};o?(i.attr({shape:o}),xe(i,{shape:p},e)):(i.setShape(p),i.style.strokePercent=0,Qe(i,{style:{strokePercent:1}},e)),a.oldLayout=p}},r}();const $A=YA;var nl=gt();function oE(r){r.registerUpdateLifecycle("series:beforeupdate",function(t,e,n){var i=nl(e).labelManager;i||(i=nl(e).labelManager=new $A),i.clearLabels()}),r.registerUpdateLifecycle("series:layoutlabels",function(t,e,n){var i=nl(e).labelManager;n.updatedSeries.forEach(function(a){i.addLabelsOfSeries(e.getViewOfSeriesModel(a))}),i.updateLayoutConfig(e),i.layout(e),i.processLabelsOverall()})}var ZA=function(r){O(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e.hasSymbolVisual=!0,e}return t.prototype.getInitialData=function(e){return ED(null,this,{useEncodeDefaulter:!0})},t.prototype.getLegendIcon=function(e){var n=new bt,i=Cr("line",0,e.itemHeight/2,e.itemWidth,0,e.lineStyle.stroke,!1);n.add(i),i.setStyle(e.lineStyle);var a=this.getData().getVisual("symbol"),o=this.getData().getVisual("symbolRotate"),s=a==="none"?"circle":a,u=e.itemHeight*.8,l=Cr(s,(e.itemWidth-u)/2,(e.itemHeight-u)/2,u,u,e.itemStyle.fill);n.add(l),l.setStyle(e.itemStyle);var f=e.iconRotate==="inherit"?o:e.iconRotate||0;return l.rotation=f*Math.PI/180,l.setOrigin([e.itemWidth/2,e.itemHeight/2]),s.indexOf("empty")>-1&&(l.style.stroke=l.style.fill,l.style.fill="#fff",l.style.lineWidth=2),n},t.type="series.line",t.dependencies=["grid","polar"],t.defaultOption={z:3,coordinateSystem:"cartesian2d",legendHoverLink:!0,clip:!0,label:{position:"top"},endLabel:{show:!1,valueAnimation:!0,distance:8},lineStyle:{width:2,type:"solid"},emphasis:{scale:!0},step:!1,smooth:!1,smoothMonotone:null,symbol:"emptyCircle",symbolSize:4,symbolRotate:null,showSymbol:!0,showAllSymbol:"auto",connectNulls:!1,sampling:"none",animationEasing:"linear",progressive:0,hoverLayerThreshold:1/0,universalTransition:{divideShape:"clone"},triggerLineEvent:!1},t}(Sa);const XA=ZA;function c_(r,t){var e=r.mapDimensionsAll("defaultedLabel"),n=e.length;if(n===1){var i=si(r,t,e[0]);return i!=null?i+"":null}else if(n){for(var a=[],o=0;o=0&&n.push(t[a])}return n.join(" ")}var KA=function(r){O(t,r);function t(e,n,i,a){var o=r.call(this)||this;return o.updateData(e,n,i,a),o}return t.prototype._createSymbol=function(e,n,i,a,o){this.removeAll();var s=Cr(e,-1,-1,2,2,null,o);s.attr({z2:100,culling:!0,scaleX:a[0]/2,scaleY:a[1]/2}),s.drift=QA,this._symbolType=e,this.add(s)},t.prototype.stopSymbolAnimation=function(e){this.childAt(0).stopAnimation(null,e)},t.prototype.getSymbolType=function(){return this._symbolType},t.prototype.getSymbolPath=function(){return this.childAt(0)},t.prototype.highlight=function(){ii(this.childAt(0))},t.prototype.downplay=function(){ai(this.childAt(0))},t.prototype.setZ=function(e,n){var i=this.childAt(0);i.zlevel=e,i.z=n},t.prototype.setDraggable=function(e,n){var i=this.childAt(0);i.draggable=e,i.cursor=!n&&e?"move":i.cursor},t.prototype.updateData=function(e,n,i,a){this.silent=!1;var o=e.getItemVisual(n,"symbol")||"circle",s=e.hostModel,u=t.getSymbolSize(e,n),l=o!==this._symbolType,f=a&&a.disableAnimation;if(l){var h=e.getItemVisual(n,"symbolKeepAspect");this._createSymbol(o,e,n,u,h)}else{var c=this.childAt(0);c.silent=!1;var v={scaleX:u[0]/2,scaleY:u[1]/2};f?c.attr(v):xe(c,v,s,n),Tb(c)}if(this._updateCommon(e,n,u,i,a),l){var c=this.childAt(0);if(!f){var v={scaleX:this._sizeX,scaleY:this._sizeY,style:{opacity:c.style.opacity}};c.scaleX=c.scaleY=0,c.style.opacity=0,Qe(c,v,s,n)}}f&&this.childAt(0).stopAnimation("leave")},t.prototype._updateCommon=function(e,n,i,a,o){var s=this.childAt(0),u=e.hostModel,l,f,h,c,v,d,p,g,y;if(a&&(l=a.emphasisItemStyle,f=a.blurItemStyle,h=a.selectItemStyle,c=a.focus,v=a.blurScope,p=a.labelStatesModels,g=a.hoverScale,y=a.cursorStyle,d=a.emphasisDisabled),!a||e.hasItemOption){var m=a&&a.itemModel?a.itemModel:e.getItemModel(n),_=m.getModel("emphasis");l=_.getModel("itemStyle").getItemStyle(),h=m.getModel(["select","itemStyle"]).getItemStyle(),f=m.getModel(["blur","itemStyle"]).getItemStyle(),c=_.get("focus"),v=_.get("blurScope"),d=_.get("disabled"),p=ph(m),g=_.getShallow("scale"),y=m.getShallow("cursor")}var S=e.getItemVisual(n,"symbolRotate");s.attr("rotation",(S||0)*Math.PI/180||0);var w=c0(e.getItemVisual(n,"symbolOffset"),i);w&&(s.x=w[0],s.y=w[1]),y&&s.attr("cursor",y);var x=e.getItemVisual(n,"style"),b=x.fill;if(s instanceof gn){var C=s.style;s.useStyle(k({image:C.image,x:C.x,y:C.y,width:C.width,height:C.height},x))}else s.__isEmptyBrush?s.useStyle(k({},x)):s.useStyle(x),s.style.decal=null,s.setColor(b,o&&o.symbolInnerColor),s.style.strokeNoScale=!0;var T=e.getItemVisual(n,"liftZ"),D=this._z2;T!=null?D==null&&(this._z2=s.z2,s.z2+=T):D!=null&&(s.z2=D,this._z2=null);var A=o&&o.useNameLabel;dh(s,p,{labelFetcher:u,labelDataIndex:n,defaultText:L,inheritColor:b,defaultOpacity:x.opacity});function L(R){return A?e.getName(R):c_(e,R)}this._sizeX=i[0]/2,this._sizeY=i[1]/2;var I=s.ensureState("emphasis");I.style=l,s.ensureState("select").style=h,s.ensureState("blur").style=f;var P=g==null||g===!0?Math.max(1.1,3/this._sizeY):isFinite(g)&&g>0?+g:1;I.scaleX=this._sizeX*P,I.scaleY=this._sizeY*P,this.setSymbolScale(1),Kl(this,c,v,d)},t.prototype.setSymbolScale=function(e){this.scaleX=this.scaleY=e},t.prototype.fadeOut=function(e,n,i){var a=this.childAt(0),o=ot(this).dataIndex,s=i&&i.animation;if(this.silent=a.silent=!0,i&&i.fadeLabel){var u=a.getTextContent();u&&ts(u,{style:{opacity:0}},n,{dataIndex:o,removeOpt:s,cb:function(){a.removeTextContent()}})}else a.removeTextContent();ts(a,{style:{opacity:0},scaleX:0,scaleY:0},n,{dataIndex:o,cb:e,removeOpt:s})},t.getSymbolSize=function(e,n){return mM(e.getItemVisual(n,"symbolSize"))},t}(bt);function QA(r,t){this.parent.drift(r,t)}const zh=KA;function il(r,t,e,n){return t&&!isNaN(t[0])&&!isNaN(t[1])&&!(n.isIgnore&&n.isIgnore(e))&&!(n.clipShape&&!n.clipShape.contain(t[0],t[1]))&&r.getItemVisual(e,"symbol")!=="none"}function qd(r){return r!=null&&!V(r)&&(r={isIgnore:r}),r||{}}function Kd(r){var t=r.hostModel,e=t.getModel("emphasis");return{emphasisItemStyle:e.getModel("itemStyle").getItemStyle(),blurItemStyle:t.getModel(["blur","itemStyle"]).getItemStyle(),selectItemStyle:t.getModel(["select","itemStyle"]).getItemStyle(),focus:e.get("focus"),blurScope:e.get("blurScope"),emphasisDisabled:e.get("disabled"),hoverScale:e.get("scale"),labelStatesModels:ph(t),cursorStyle:t.get("cursor")}}var JA=function(){function r(t){this.group=new bt,this._SymbolCtor=t||zh}return r.prototype.updateData=function(t,e){this._progressiveEls=null,e=qd(e);var n=this.group,i=t.hostModel,a=this._data,o=this._SymbolCtor,s=e.disableAnimation,u=Kd(t),l={disableAnimation:s},f=e.getSymbolPoint||function(h){return t.getItemLayout(h)};a||n.removeAll(),t.diff(a).add(function(h){var c=f(h);if(il(t,c,h,e)){var v=new o(t,h,u,l);v.setPosition(c),t.setItemGraphicEl(h,v),n.add(v)}}).update(function(h,c){var v=a.getItemGraphicEl(c),d=f(h);if(!il(t,d,h,e)){n.remove(v);return}var p=t.getItemVisual(h,"symbol")||"circle",g=v&&v.getSymbolType&&v.getSymbolType();if(!v||g&&g!==p)n.remove(v),v=new o(t,h,u,l),v.setPosition(d);else{v.updateData(t,h,u,l);var y={x:d[0],y:d[1]};s?v.attr(y):xe(v,y,i)}n.add(v),t.setItemGraphicEl(h,v)}).remove(function(h){var c=a.getItemGraphicEl(h);c&&c.fadeOut(function(){n.remove(c)},i)}).execute(),this._getSymbolPoint=f,this._data=t},r.prototype.updateLayout=function(){var t=this,e=this._data;e&&e.eachItemGraphicEl(function(n,i){var a=t._getSymbolPoint(i);n.setPosition(a),n.markRedraw()})},r.prototype.incrementalPrepareUpdate=function(t){this._seriesScope=Kd(t),this._data=null,this.group.removeAll()},r.prototype.incrementalUpdate=function(t,e,n){this._progressiveEls=[],n=qd(n);function i(u){u.isGroup||(u.incremental=!0,u.ensureState("emphasis").hoverLayer=!0)}for(var a=t.start;a0?e=n[0]:n[1]<0&&(e=n[1]),e}function p_(r,t,e,n){var i=NaN;r.stacked&&(i=e.get(e.getCalculationInfo("stackedOverDimension"),n)),isNaN(i)&&(i=r.valueStart);var a=r.baseDataOffset,o=[];return o[a]=e.get(r.baseDim,n),o[1-a]=i,t.dataToPoint(o)}function e2(r,t){var e=[];return t.diff(r).add(function(n){e.push({cmd:"+",idx:n})}).update(function(n,i){e.push({cmd:"=",idx:i,idx1:n})}).remove(function(n){e.push({cmd:"-",idx:n})}).execute(),e}function r2(r,t,e,n,i,a,o,s){for(var u=e2(r,t),l=[],f=[],h=[],c=[],v=[],d=[],p=[],g=d_(i,t,o),y=r.getLayout("points")||[],m=t.getLayout("points")||[],_=0;_=i||p<0)break;if(on(y,m)){if(u){p+=a;continue}break}if(p===e)r[a>0?"moveTo":"lineTo"](y,m),h=y,c=m;else{var _=y-l,S=m-f;if(_*_+S*S<.5){p+=a;continue}if(o>0){for(var w=p+a,x=t[w*2],b=t[w*2+1];x===y&&b===m&&g=n||on(x,b))v=y,d=m;else{D=x-l,A=b-f;var P=y-l,R=x-y,E=m-f,H=b-m,B=void 0,F=void 0;if(s==="x"){B=Math.abs(P),F=Math.abs(R);var $=D>0?1:-1;v=y-$*B*o,d=m,L=y+$*F*o,I=m}else if(s==="y"){B=Math.abs(E),F=Math.abs(H);var et=A>0?1:-1;v=y,d=m-et*B*o,L=y,I=m+et*F*o}else B=Math.sqrt(P*P+E*E),F=Math.sqrt(R*R+H*H),T=F/(F+B),v=y-D*o*(1-T),d=m-A*o*(1-T),L=y+D*o*T,I=m+A*o*T,L=ur(L,lr(x,y)),I=ur(I,lr(b,m)),L=lr(L,ur(x,y)),I=lr(I,ur(b,m)),D=L-y,A=I-m,v=y-D*B/F,d=m-A*B/F,v=ur(v,lr(l,y)),d=ur(d,lr(f,m)),v=lr(v,ur(l,y)),d=lr(d,ur(f,m)),D=y-v,A=m-d,L=y+D*F/B,I=m+A*F/B}r.bezierCurveTo(h,c,v,d,y,m),h=L,c=I}else r.lineTo(y,m)}l=y,f=m,p+=a}return g}var g_=function(){function r(){this.smooth=0,this.smoothConstraint=!0}return r}(),n2=function(r){O(t,r);function t(e){var n=r.call(this,e)||this;return n.type="ec-polyline",n}return t.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},t.prototype.getDefaultShape=function(){return new g_},t.prototype.buildPath=function(e,n){var i=n.points,a=0,o=i.length/2;if(n.connectNulls){for(;o>0&&on(i[o*2-2],i[o*2-1]);o--);for(;a=0){var S=l?(d-u)*_+u:(v-s)*_+s;return l?[e,S]:[S,e]}s=v,u=d;break;case o.C:v=a[h++],d=a[h++],p=a[h++],g=a[h++],y=a[h++],m=a[h++];var w=l?$o(s,v,p,y,e,f):$o(u,d,g,m,e,f);if(w>0)for(var x=0;x=0){var S=l?Tt(u,d,g,m,b):Tt(s,v,p,y,b);return l?[e,S]:[S,e]}}s=y,u=m;break}}},t}(at),i2=function(r){O(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return t}(g_),a2=function(r){O(t,r);function t(e){var n=r.call(this,e)||this;return n.type="ec-polygon",n}return t.prototype.getDefaultShape=function(){return new i2},t.prototype.buildPath=function(e,n){var i=n.points,a=n.stackedOnPoints,o=0,s=i.length/2,u=n.smoothMonotone;if(n.connectNulls){for(;s>0&&on(i[s*2-2],i[s*2-1]);s--);for(;ot){a?e.push(o(a,u,t)):i&&e.push(o(i,u,0),o(i,u,t));break}else i&&(e.push(o(i,u,0)),i=null),e.push(u),a=u}return e}function h2(r,t,e){var n=r.getVisual("visualMeta");if(!(!n||!n.length||!r.count())&&t.type==="cartesian2d"){for(var i,a,o=n.length-1;o>=0;o--){var s=r.getDimensionInfo(n[o].dimension);if(i=s&&s.coordDim,i==="x"||i==="y"){a=n[o];break}}if(!!a){var u=t.getAxis(i),l=z(a.stops,function(_){return{coord:u.toGlobalCoord(u.dataToCoord(_.value)),color:_.color}}),f=l.length,h=a.outerColors.slice();f&&l[0].coord>l[f-1].coord&&(l.reverse(),h.reverse());var c=f2(l,i==="x"?e.getWidth():e.getHeight()),v=c.length;if(!v&&f)return l[0].coord<0?h[1]?h[1]:l[f-1].color:h[0]?h[0]:l[0].color;var d=10,p=c[0].coord-d,g=c[v-1].coord+d,y=g-p;if(y<.001)return"transparent";M(c,function(_){_.offset=(_.coord-p)/y}),c.push({offset:v?c[v-1].offset:.5,color:h[1]||"transparent"}),c.unshift({offset:v?c[0].offset:.5,color:h[0]||"transparent"});var m=new rm(0,0,0,0,c,!0);return m[i]=p,m[i+"2"]=g,m}}}function v2(r,t,e){var n=r.get("showAllSymbol"),i=n==="auto";if(!(n&&!i)){var a=e.getAxesByScale("ordinal")[0];if(!!a&&!(i&&c2(a,t))){var o=t.mapDimension(a.dim),s={};return M(a.getViewLabels(),function(u){var l=a.scale.getRawOrdinalNumber(u.tickValue);s[l]=1}),function(u){return!s.hasOwnProperty(t.get(o,u))}}}}function c2(r,t){var e=r.getExtent(),n=Math.abs(e[1]-e[0])/r.scale.count();isNaN(n)&&(n=0);for(var i=t.count(),a=Math.max(1,Math.round(i/5)),o=0;on)return!1;return!0}function d2(r,t){return isNaN(r)||isNaN(t)}function p2(r){for(var t=r.length/2;t>0&&d2(r[t*2-2],r[t*2-1]);t--);return t-1}function ep(r,t){return[r[t*2],r[t*2+1]]}function g2(r,t,e){for(var n=r.length/2,i=e==="x"?0:1,a,o,s=0,u=-1,l=0;l=t||a>=t&&o<=t){u=l;break}s=l,a=o}return{range:[s,u],t:(t-a)/(o-a)}}function y_(r){if(r.get(["endLabel","show"]))return!0;for(var t=0;t0&&e.get(["emphasis","lineStyle","width"])==="bolder"){var F=d.getState("emphasis").style;F.lineWidth=+d.style.lineWidth+1}ot(d).seriesIndex=e.seriesIndex,Kl(d,E,H,B);var $=tp(e.get("smooth")),et=e.get("smoothMonotone");if(d.setShape({smooth:$,smoothMonotone:et,connectNulls:b}),p){var st=s.getCalculationInfo("stackedOnSeries"),ft=0;p.useStyle(K(l.getAreaStyle(),{fill:L,opacity:.7,lineJoin:"bevel",decal:s.getVisual("style").decal})),st&&(ft=tp(st.get("smooth"))),p.setShape({smooth:$,stackedOnSmooth:ft,smoothMonotone:et,connectNulls:b}),vc(p,e,"areaStyle"),ot(p).seriesIndex=e.seriesIndex,Kl(p,E,H,B)}var ht=this._changePolyState;s.eachItemGraphicEl(function(pt){pt&&(pt.onHoverStateChange=ht)}),this._polyline.onHoverStateChange=ht,this._data=s,this._coordSys=a,this._stackedOnPoints=w,this._points=f,this._step=D,this._valueOrigin=_,e.get("triggerLineEvent")&&(this.packEventData(e,d),p&&this.packEventData(e,p))},t.prototype.packEventData=function(e,n){ot(n).eventData={componentType:"series",componentSubType:"line",componentIndex:e.componentIndex,seriesIndex:e.seriesIndex,seriesName:e.name,seriesType:"line"}},t.prototype.highlight=function(e,n,i,a){var o=e.getData(),s=fn(o,a);if(this._changePolyState("emphasis"),!(s instanceof Array)&&s!=null&&s>=0){var u=o.getLayout("points"),l=o.getItemGraphicEl(s);if(!l){var f=u[s*2],h=u[s*2+1];if(isNaN(f)||isNaN(h)||this._clipShapeForSymbol&&!this._clipShapeForSymbol.contain(f,h))return;var c=e.get("zlevel")||0,v=e.get("z")||0;l=new zh(o,s),l.x=f,l.y=h,l.setZ(c,v);var d=l.getSymbolPath().getTextContent();d&&(d.zlevel=c,d.z=v,d.z2=this._polyline.z2+1),l.__temp=!0,o.setItemGraphicEl(s,l),l.stopSymbolAnimation(!0),this.group.add(l)}l.highlight()}else xr.prototype.highlight.call(this,e,n,i,a)},t.prototype.downplay=function(e,n,i,a){var o=e.getData(),s=fn(o,a);if(this._changePolyState("normal"),s!=null&&s>=0){var u=o.getItemGraphicEl(s);u&&(u.__temp?(o.setItemGraphicEl(s,null),this.group.remove(u)):u.downplay())}else xr.prototype.downplay.call(this,e,n,i,a)},t.prototype._changePolyState=function(e){var n=this._polygon;sc(this._polyline,e),n&&sc(n,e)},t.prototype._newPolyline=function(e){var n=this._polyline;return n&&this._lineGroup.remove(n),n=new n2({shape:{points:e},segmentIgnoreThreshold:2,z2:10}),this._lineGroup.add(n),this._polyline=n,n},t.prototype._newPolygon=function(e,n){var i=this._polygon;return i&&this._lineGroup.remove(i),i=new a2({shape:{points:e,stackedOnPoints:n},segmentIgnoreThreshold:2}),this._lineGroup.add(i),this._polygon=i,i},t.prototype._initSymbolLabelAnimation=function(e,n,i){var a,o,s=n.getBaseAxis(),u=s.inverse;n.type==="cartesian2d"?(a=s.isHorizontal(),o=!1):n.type==="polar"&&(a=s.dim==="angle",o=!0);var l=e.hostModel,f=l.get("animationDuration");Y(f)&&(f=f(null));var h=l.get("animationDelay")||0,c=Y(h)?h(null):h;e.eachItemGraphicEl(function(v,d){var p=v;if(p){var g=[v.x,v.y],y=void 0,m=void 0,_=void 0;if(i)if(o){var S=i,w=n.pointToCoord(g);a?(y=S.startAngle,m=S.endAngle,_=-w[1]/180*Math.PI):(y=S.r0,m=S.r,_=w[0])}else{var x=i;a?(y=x.x,m=x.x+x.width,_=v.x):(y=x.y+x.height,m=x.y,_=v.y)}var b=m===y?0:(_-y)/(m-y);u&&(b=1-b);var C=Y(h)?h(d):f*b+c,T=p.getSymbolPath(),D=T.getTextContent();p.attr({scaleX:0,scaleY:0}),p.animateTo({scaleX:1,scaleY:1},{duration:200,setToFinal:!0,delay:C}),D&&D.animateFrom({style:{opacity:0}},{duration:300,delay:C}),T.disableLabelAnimation=!0}})},t.prototype._initOrUpdateEndLabel=function(e,n,i){var a=e.getModel("endLabel");if(y_(e)){var o=e.getData(),s=this._polyline,u=o.getLayout("points");if(!u){s.removeTextContent(),this._endLabel=null;return}var l=this._endLabel;l||(l=this._endLabel=new Dt({z2:200}),l.ignoreClip=!0,s.setTextContent(this._endLabel),s.disableLabelAnimation=!0);var f=p2(u);f>=0&&(dh(s,ph(e,"endLabel"),{inheritColor:i,labelFetcher:e,labelDataIndex:f,defaultText:function(h,c,v){return v!=null?qA(o,v):c_(o,h)},enableTextSetter:!0},y2(a,n)),s.textConfig.position=null)}else this._endLabel&&(this._polyline.removeTextContent(),this._endLabel=null)},t.prototype._endLabelOnDuring=function(e,n,i,a,o,s,u){var l=this._endLabel,f=this._polyline;if(l){e<1&&a.originalX==null&&(a.originalX=l.x,a.originalY=l.y);var h=i.getLayout("points"),c=i.hostModel,v=c.get("connectNulls"),d=s.get("precision"),p=s.get("distance")||0,g=u.getBaseAxis(),y=g.isHorizontal(),m=g.inverse,_=n.shape,S=m?y?_.x:_.y+_.height:y?_.x+_.width:_.y,w=(y?p:0)*(m?-1:1),x=(y?0:-p)*(m?-1:1),b=y?"x":"y",C=g2(h,S,b),T=C.range,D=T[1]-T[0],A=void 0;if(D>=1){if(D>1&&!v){var L=ep(h,T[0]);l.attr({x:L[0]+w,y:L[1]+x}),o&&(A=c.getRawValue(T[0]))}else{var L=f.getPointOn(S,b);L&&l.attr({x:L[0]+w,y:L[1]+x});var I=c.getRawValue(T[0]),P=c.getRawValue(T[1]);o&&(A=hy(i,d,I,P,C.t))}a.lastFrameIndex=T[0]}else{var R=e===1||a.lastFrameIndex>0?T[0]:0,L=ep(h,R);o&&(A=c.getRawValue(R)),l.attr({x:L[0]+w,y:L[1]+x})}if(o){var E=Es(l);typeof E.setLabelText=="function"&&E.setLabelText(A)}}},t.prototype._doUpdateAnimation=function(e,n,i,a,o,s,u){var l=this._polyline,f=this._polygon,h=e.hostModel,c=r2(this._data,e,this._stackedOnPoints,n,this._coordSys,i,this._valueOrigin),v=c.current,d=c.stackedOnCurrent,p=c.next,g=c.stackedOnNext;if(o&&(d=fr(c.stackedOnCurrent,c.current,i,o,u),v=fr(c.current,null,i,o,u),g=fr(c.stackedOnNext,c.next,i,o,u),p=fr(c.next,null,i,o,u)),jd(v,p)>3e3||f&&jd(d,g)>3e3){l.stopAnimation(),l.setShape({points:p}),f&&(f.stopAnimation(),f.setShape({points:p,stackedOnPoints:g}));return}l.shape.__points=c.current,l.shape.points=v;var y={shape:{points:p}};c.current!==v&&(y.shape.__points=c.next),l.stopAnimation(),xe(l,y,h),f&&(f.setShape({points:v,stackedOnPoints:d}),f.stopAnimation(),xe(f,{shape:{stackedOnPoints:g}},h),l.shape.points!==f.shape.points&&(f.shape.points=l.shape.points));for(var m=[],_=c.status,S=0;S<_.length;S++){var w=_[S].cmd;if(w==="="){var x=e.getItemGraphicEl(_[S].idx1);x&&m.push({el:x,ptIdx:S})}}l.animators&&l.animators.length&&l.animators[0].during(function(){f&&f.dirtyShape();for(var b=l.shape.__points,C=0;Ct&&(t=r[e]);return isFinite(t)?t:NaN},min:function(r){for(var t=1/0,e=0;e10&&o.type==="cartesian2d"&&a){var u=o.getBaseAxis(),l=o.getOtherAxis(u),f=u.getExtent(),h=n.getDevicePixelRatio(),c=Math.abs(f[1]-f[0])*(h||1),v=Math.round(s/c);if(isFinite(v)&&v>1){a==="lttb"?t.setData(i.lttbDownSample(i.mapDimension(l.dim),1/v)):a==="minmax"&&t.setData(i.minmaxDownSample(i.mapDimension(l.dim),1/v));var d=void 0;G(a)?d=x2[a]:Y(a)&&(d=a),d&&t.setData(i.downSample(i.mapDimension(l.dim),1/v,d,w2))}}}}}function sE(r){r.registerChartView(_2),r.registerSeriesModel(XA),r.registerLayout(S2("line",!0)),r.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)}}),r.registerProcessor(r.PRIORITY.PROCESSOR.STATISTIC,b2("line"))}var T2=function(r){O(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return t.type="grid",t.dependencies=["xAxis","yAxis"],t.layoutMode="box",t.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"},t}(vt);const C2=T2;var xf=function(r){O(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return t.prototype.getCoordSysModel=function(){return this.getReferringComponents("grid",zt).models[0]},t.type="cartesian2dAxis",t}(vt);Ne(xf,mA);var m_={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,showMinLine:!0,showMaxLine:!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)"]}}},M2=j({boundaryGap:!0,deduplication:null,splitLine:{show:!1},axisTick:{alignWithLabel:!1,interval:"auto"},axisLabel:{interval:"auto"}},m_),Gh=j({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}}},m_),D2=j({splitNumber:6,axisLabel:{showMinLabel:!1,showMaxLabel:!1,rich:{primary:{fontWeight:"bold"}}},splitLine:{show:!1}},Gh),A2=K({logBase:10},Gh);const L2={category:M2,value:Gh,time:D2,log:A2};var I2={value:1,category:1,time:1,log:1};function rp(r,t,e,n){M(I2,function(i,a){var o=j(j({},L2[a],!0),n,!0),s=function(u){O(l,u);function l(){var f=u!==null&&u.apply(this,arguments)||this;return f.type=t+"Axis."+a,f}return l.prototype.mergeDefaultAndTheme=function(f,h){var c=ya(this),v=c?Na(f):{},d=h.getTheme();j(f,d.get(a+"Axis")),j(f,this.getDefaultOption()),f.type=np(f),c&&oi(f,v,c)},l.prototype.optionUpdated=function(){var f=this.option;f.type==="category"&&(this.__ordinalMeta=yf.createByAxisModel(this))},l.prototype.getCategories=function(f){var h=this.option;if(h.type==="category")return f?h.data:this.__ordinalMeta.categories},l.prototype.getOrdinalMeta=function(){return this.__ordinalMeta},l.type=t+"Axis."+a,l.defaultOption=o,l}(e);r.registerComponentModel(s)}),r.registerSubTypeDefaulter(t+"Axis",np)}function np(r){return r.type||(r.data?"category":"value")}var P2=function(){function r(t){this.type="cartesian",this._dimList=[],this._axes={},this.name=t||""}return r.prototype.getAxis=function(t){return this._axes[t]},r.prototype.getAxes=function(){return z(this._dimList,function(t){return this._axes[t]},this)},r.prototype.getAxesByScale=function(t){return t=t.toLowerCase(),mt(this.getAxes(),function(e){return e.scale.type===t})},r.prototype.addAxis=function(t){var e=t.dim;this._axes[e]=t,this._dimList.push(e)},r}();const R2=P2;var wf=["x","y"];function ip(r){return r.type==="interval"||r.type==="time"}var E2=function(r){O(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type="cartesian2d",e.dimensions=wf,e}return t.prototype.calcAffineTransform=function(){this._transform=this._invTransform=null;var e=this.getAxis("x").scale,n=this.getAxis("y").scale;if(!(!ip(e)||!ip(n))){var i=e.getExtent(),a=n.getExtent(),o=this.dataToPoint([i[0],a[0]]),s=this.dataToPoint([i[1],a[1]]),u=i[1]-i[0],l=a[1]-a[0];if(!(!u||!l)){var f=(s[0]-o[0])/u,h=(s[1]-o[1])/l,c=o[0]-i[0]*f,v=o[1]-a[0]*h,d=this._transform=[f,0,0,h,c,v];this._invTransform=Ss([],d)}}},t.prototype.getBaseAxis=function(){return this.getAxesByScale("ordinal")[0]||this.getAxesByScale("time")[0]||this.getAxis("x")},t.prototype.containPoint=function(e){var n=this.getAxis("x"),i=this.getAxis("y");return n.contain(n.toLocalCoord(e[0]))&&i.contain(i.toLocalCoord(e[1]))},t.prototype.containData=function(e){return this.getAxis("x").containData(e[0])&&this.getAxis("y").containData(e[1])},t.prototype.containZone=function(e,n){var i=this.dataToPoint(e),a=this.dataToPoint(n),o=this.getArea(),s=new rt(i[0],i[1],a[0]-i[0],a[1]-i[1]);return o.intersect(s)},t.prototype.dataToPoint=function(e,n,i){i=i||[];var a=e[0],o=e[1];if(this._transform&&a!=null&&isFinite(a)&&o!=null&&isFinite(o))return le(i,e,this._transform);var s=this.getAxis("x"),u=this.getAxis("y");return i[0]=s.toGlobalCoord(s.dataToCoord(a,n)),i[1]=u.toGlobalCoord(u.dataToCoord(o,n)),i},t.prototype.clampData=function(e,n){var i=this.getAxis("x").scale,a=this.getAxis("y").scale,o=i.getExtent(),s=a.getExtent(),u=i.parse(e[0]),l=a.parse(e[1]);return n=n||[],n[0]=Math.min(Math.max(Math.min(o[0],o[1]),u),Math.max(o[0],o[1])),n[1]=Math.min(Math.max(Math.min(s[0],s[1]),l),Math.max(s[0],s[1])),n},t.prototype.pointToData=function(e,n){var i=[];if(this._invTransform)return le(i,e,this._invTransform);var a=this.getAxis("x"),o=this.getAxis("y");return i[0]=a.coordToData(a.toLocalCoord(e[0]),n),i[1]=o.coordToData(o.toLocalCoord(e[1]),n),i},t.prototype.getOtherAxis=function(e){return this.getAxis(e.dim==="x"?"y":"x")},t.prototype.getArea=function(e){e=e||0;var n=this.getAxis("x").getGlobalExtent(),i=this.getAxis("y").getGlobalExtent(),a=Math.min(n[0],n[1])-e,o=Math.min(i[0],i[1])-e,s=Math.max(n[0],n[1])-a+e,u=Math.max(i[0],i[1])-o+e;return new rt(a,o,s,u)},t}(R2),O2=function(r){O(t,r);function t(e,n,i,a,o){var s=r.call(this,e,n,i)||this;return s.index=0,s.type=a||"value",s.position=o||"bottom",s}return t.prototype.isHorizontal=function(){var e=this.position;return e==="top"||e==="bottom"},t.prototype.getGlobalExtent=function(e){var n=this.getExtent();return n[0]=this.toGlobalCoord(n[0]),n[1]=this.toGlobalCoord(n[1]),e&&n[0]>n[1]&&n.reverse(),n},t.prototype.pointToData=function(e,n){return this.coordToData(this.toLocalCoord(e[this.dim==="x"?0:1]),n)},t.prototype.setCategorySortInfo=function(e){if(this.type!=="category")return!1;this.model.option.categorySortInfo=e,this.scale.setSortInfo(e)},t}(IA);const k2=O2;function bf(r,t,e){e=e||{};var n=r.coordinateSystem,i=t.axis,a={},o=i.getAxesOnZeroOf()[0],s=i.position,u=o?"onZero":s,l=i.dim,f=n.getRect(),h=[f.x,f.x+f.width,f.y,f.y+f.height],c={left:0,right:1,top:0,bottom:1,onZero:2},v=t.get("offset")||0,d=l==="x"?[h[2]-v,h[3]+v]:[h[0]-v,h[1]+v];if(o){var p=o.toGlobalCoord(o.dataToCoord(0));d[c.onZero]=Math.max(Math.min(p,d[1]),d[0])}a.position=[l==="y"?d[c[u]]:h[0],l==="x"?d[c[u]]:h[3]],a.rotation=Math.PI/2*(l==="x"?0:1);var g={top:-1,bottom:1,left:-1,right:1};a.labelDirection=a.tickDirection=a.nameDirection=g[s],a.labelOffset=o?d[c[s]]-d[c.onZero]:0,t.get(["axisTick","inside"])&&(a.tickDirection=-a.tickDirection),la(e.labelInside,t.get(["axisLabel","inside"]))&&(a.labelDirection=-a.labelDirection);var y=t.get(["axisLabel","rotate"]);return a.labelRotate=u==="top"?-y:y,a.z2=1,a}function ap(r){return r.get("coordinateSystem")==="cartesian2d"}function op(r){var t={xAxisModel:null,yAxisModel:null};return M(t,function(e,n){var i=n.replace(/Model$/,""),a=r.getReferringComponents(i,zt).models[0];t[n]=a}),t}var ol=Math.log;function B2(r,t,e){var n=Fa.prototype,i=n.getTicks.call(e),a=n.getTicks.call(e,!0),o=i.length-1,s=n.getInterval.call(e),u=j0(r,t),l=u.extent,f=u.fixMin,h=u.fixMax;if(r.type==="log"){var c=ol(r.base);l=[ol(l[0])/c,ol(l[1])/c]}r.setExtent(l[0],l[1]),r.calcNiceExtent({splitNumber:o,fixMin:f,fixMax:h});var v=n.getExtent.call(r);f&&(l[0]=v[0]),h&&(l[1]=v[1]);var d=n.getInterval.call(r),p=l[0],g=l[1];if(f&&h)d=(g-p)/o;else if(f)for(g=l[0]+d*o;gl[0]&&isFinite(p)&&isFinite(l[0]);)d=tl(d),p=l[1]-d*o;else{var y=r.getTicks().length-1;y>o&&(d=tl(d));var m=d*o;g=Math.ceil(l[1]/d)*d,p=wt(g-m),p<0&&l[0]>=0?(p=0,g=wt(m)):g>0&&l[1]<=0&&(g=0,p=-wt(m))}var _=(i[0].value-a[0].value)/s,S=(i[o].value-a[o].value)/s;n.setExtent.call(r,p+d*_,g+d*S),n.setInterval.call(r,d),(_||S)&&n.setNiceExtent.call(r,p+d,g-d)}var N2=function(){function r(t,e,n){this.type="grid",this._coordsMap={},this._coordsList=[],this._axesMap={},this._axesList=[],this.axisPointerEnabled=!0,this.dimensions=wf,this._initCartesian(t,e,n),this.model=t}return r.prototype.getRect=function(){return this._rect},r.prototype.update=function(t,e){var n=this._axesMap;this._updateScale(t,this.model);function i(o){var s,u=dt(o),l=u.length;if(!!l){for(var f=[],h=l-1;h>=0;h--){var c=+u[h],v=o[c],d=v.model,p=v.scale;mf(p)&&d.get("alignTicks")&&d.get("interval")==null?f.push(v):(Vd(p,d),mf(p)&&(s=v))}f.length&&(s||(s=f.pop(),Vd(s.scale,s.model)),M(f,function(g){B2(g.scale,g.model,s.scale)}))}}i(n.x),i(n.y);var a={};M(n.x,function(o){sp(n,"y",o,a)}),M(n.y,function(o){sp(n,"x",o,a)}),this.resize(this.model,e)},r.prototype.resize=function(t,e,n){var i=t.getBoxLayoutParams(),a=!n&&t.get("containLabel"),o=Tr(i,{width:e.getWidth(),height:e.getHeight()});this._rect=o;var s=this._axesList;u(),a&&(M(s,function(l){if(!l.model.get(["axisLabel","inside"])){var f=pA(l);if(f){var h=l.isHorizontal()?"height":"width",c=l.model.get(["axisLabel","margin"]);o[h]-=f[h]+c,l.position==="top"?o.y+=f.height+c:l.position==="left"&&(o.x+=f.width+c)}}}),u()),M(this._coordsList,function(l){l.calcAffineTransform()});function u(){M(s,function(l){var f=l.isHorizontal(),h=f?[0,o.width]:[0,o.height],c=l.inverse?1:0;l.setExtent(h[c],h[1-c]),F2(l,f?o.x:o.y)})}},r.prototype.getAxis=function(t,e){var n=this._axesMap[t];if(n!=null)return n[e||0]},r.prototype.getAxes=function(){return this._axesList.slice()},r.prototype.getCartesian=function(t,e){if(t!=null&&e!=null){var n="x"+t+"y"+e;return this._coordsMap[n]}V(t)&&(e=t.yAxisIndex,t=t.xAxisIndex);for(var i=0,a=this._coordsList;i0?"top":"bottom",a="center"):Ko(i-gr)?(o=n>0?"bottom":"top",a="center"):(o="middle",i>0&&i0?"right":"left":a=n>0?"left":"right"),{rotation:i,textAlign:a,textVerticalAlign:o}},r.makeAxisEventDataBase=function(t){var e={componentType:t.mainType,componentIndex:t.componentIndex};return e[t.mainType+"Index"]=t.componentIndex,e},r.isLabelSilent=function(t){var e=t.get("tooltip");return t.get("silent")||!(t.get("triggerEvent")||e&&e.show)},r}(),lp={axisLine:function(r,t,e,n){var i=t.get(["axisLine","show"]);if(i==="auto"&&r.handleAutoShown&&(i=r.handleAutoShown("axisLine")),!!i){var a=t.axis.getExtent(),o=n.transform,s=[a[0],0],u=[a[1],0],l=s[0]>u[0];o&&(le(s,s,o),le(u,u,o));var f=k({lineCap:"round"},t.getModel(["axisLine","lineStyle"]).getLineStyle()),h=new hn({shape:{x1:s[0],y1:s[1],x2:u[0],y2:u[1]},style:f,strokeContainThreshold:r.strokeContainThreshold||5,silent:!0,z2:1});da(h.shape,h.style.lineWidth),h.anid="line",e.add(h);var c=t.get(["axisLine","symbol"]);if(c!=null){var v=t.get(["axisLine","symbolSize"]);G(c)&&(c=[c,c]),(G(v)||ct(v))&&(v=[v,v]);var d=c0(t.get(["axisLine","symbolOffset"])||0,v),p=v[0],g=v[1];M([{rotate:r.rotation+Math.PI/2,offset:d[0],r:0},{rotate:r.rotation-Math.PI/2,offset:d[1],r:Math.sqrt((s[0]-u[0])*(s[0]-u[0])+(s[1]-u[1])*(s[1]-u[1]))}],function(y,m){if(c[m]!=="none"&&c[m]!=null){var _=Cr(c[m],-p/2,-g/2,p,g,f.stroke,!0),S=y.r+y.offset,w=l?u:s;_.attr({rotation:y.rotate,x:w[0]+S*Math.cos(r.rotation),y:w[1]-S*Math.sin(r.rotation),silent:!0,z2:11}),e.add(_)}})}}},axisTickLabel:function(r,t,e,n){var i=V2(e,n,t,r),a=U2(e,n,t,r);if(H2(t,a,i),W2(e,n,t,r.tickDirection),t.get(["axisLabel","hideOverlap"])){var o=f_(z(a,function(s){return{label:s,priority:s.z2,defaultAttr:{ignore:s.ignore}}}));v_(o)}},axisName:function(r,t,e,n){var i=la(r.axisName,t.get("name"));if(!!i){var a=t.get("nameLocation"),o=r.nameDirection,s=t.getModel("nameTextStyle"),u=t.get("nameGap")||0,l=t.axis.getExtent(),f=l[0]>l[1]?-1:1,h=[a==="start"?l[0]-f*u:a==="end"?l[1]+f*u:(l[0]+l[1])/2,hp(a)?r.labelOffset+o*u:0],c,v=t.get("nameRotate");v!=null&&(v=v*gr/180);var d;hp(a)?c=sn.innerTextLayout(r.rotation,v!=null?v:r.rotation,o):(c=G2(r.rotation,a,v||0,l),d=r.axisNameAvailableWidth,d!=null&&(d=Math.abs(d/Math.sin(c.rotation)),!isFinite(d)&&(d=null)));var p=s.getFont(),g=t.get("nameTruncate",!0)||{},y=g.ellipsis,m=la(r.nameTruncateMaxWidth,g.maxWidth,d),_=new Dt({x:h[0],y:h[1],rotation:c.rotation,silent:sn.isLabelSilent(t),style:Je(s,{text:i,font:p,overflow:"truncate",width:m,ellipsis:y,fill:s.getTextColor()||t.get(["axisLine","lineStyle","color"]),align:s.get("align")||c.textAlign,verticalAlign:s.get("verticalAlign")||c.textVerticalAlign}),z2:1});if(ka({el:_,componentModel:t,itemName:i}),_.__fullText=i,_.anid="name",t.get("triggerEvent")){var S=sn.makeAxisEventDataBase(t);S.targetType="axisName",S.name=i,ot(_).eventData=S}n.add(_),_.updateTransform(),e.add(_),_.decomposeTransform()}}};function G2(r,t,e,n){var i=ny(e-r),a,o,s=n[0]>n[1],u=t==="start"&&!s||t!=="start"&&s;return Ko(i-gr/2)?(o=u?"bottom":"top",a="center"):Ko(i-gr*1.5)?(o=u?"top":"bottom",a="center"):(o="middle",igr/2?a=u?"left":"right":a=u?"right":"left"),{rotation:i,textAlign:a,textVerticalAlign:o}}function H2(r,t,e){if(!t_(r.axis)){var n=r.get(["axisLabel","showMinLabel"]),i=r.get(["axisLabel","showMaxLabel"]);t=t||[],e=e||[];var a=t[0],o=t[1],s=t[t.length-1],u=t[t.length-2],l=e[0],f=e[1],h=e[e.length-1],c=e[e.length-2];n===!1?(re(a),re(l)):fp(a,o)&&(n?(re(o),re(f)):(re(a),re(l))),i===!1?(re(s),re(h)):fp(u,s)&&(i?(re(u),re(c)):(re(s),re(h)))}}function re(r){r&&(r.ignore=!0)}function fp(r,t){var e=r&&r.getBoundingRect().clone(),n=t&&t.getBoundingRect().clone();if(!(!e||!n)){var i=Xf([]);return qf(i,i,-r.rotation),e.applyTransform(qn([],i,r.getLocalTransform())),n.applyTransform(qn([],i,t.getLocalTransform())),e.intersect(n)}}function hp(r){return r==="middle"||r==="center"}function __(r,t,e,n,i){for(var a=[],o=[],s=[],u=0;u=0||r===t}function K2(r){var t=Hh(r);if(!!t){var e=t.axisPointerModel,n=t.axis.scale,i=e.option,a=e.get("status"),o=e.get("value");o!=null&&(o=n.parse(o));var s=Tf(e);a==null&&(i.status=s?"show":"hide");var u=n.getExtent().slice();u[0]>u[1]&&u.reverse(),(o==null||o>u[1])&&(o=u[1]),o3?1.4:o>1?1.2:1.1,f=a>0?l:1/l;ll(this,"zoom","zoomOnMouseWheel",e,{scale:f,originX:s,originY:u,isAvailableBehavior:null})}if(i){var h=Math.abs(a),c=(a>0?1:-1)*(h>3?.4:h>1?.15:.05);ll(this,"scrollMove","moveOnMouseWheel",e,{scrollDelta:c,originX:s,originY:u,isAvailableBehavior:null})}}},t.prototype._pinchHandler=function(e){if(!pp(this._zr,"globalPan")){var n=e.pinchScale>1?1.1:1/1.1;ll(this,"zoom",null,e,{scale:n,originX:e.pinchX,originY:e.pinchY,isAvailableBehavior:null})}},t}(ve);function ll(r,t,e,n,i){r.pointerChecker&&r.pointerChecker(n,i.originX,i.originY)&&(ni(n.event),T_(r,t,e,n,i))}function T_(r,t,e,n,i){i.isAvailableBehavior=U(Ho,null,e,n),r.trigger(t,i)}function Ho(r,t,e){var n=e[r];return!r||n&&(!G(n)||t.event[n+"Key"])}const fL=lL;var hL={axisPointer:1,tooltip:1,brush:1};function vL(r,t,e){var n=t.getComponentByElement(r.topTarget),i=n&&n.coordinateSystem;return n&&n!==e&&!hL.hasOwnProperty(n.mainType)&&i&&i.model!==e}function za(r,t,e,n,i,a){r=r||0;var o=e[1]-e[0];if(i!=null&&(i=En(i,[0,o])),a!=null&&(a=Math.max(a,i!=null?i:0)),n==="all"){var s=Math.abs(t[1]-t[0]);s=En(s,[0,o]),i=a=En(s,[i,a]),n=0}t[0]=En(t[0],e),t[1]=En(t[1],e);var u=fl(t,n);t[n]+=r;var l=i||0,f=e.slice();u.sign<0?f[0]+=l:f[1]-=l,t[n]=En(t[n],f);var h;return h=fl(t,n),i!=null&&(h.sign!==u.sign||h.spana&&(t[1-n]=t[n]+h.sign*a),t}function fl(r,t){var e=r[t]-r[1-t];return{span:Math.abs(e),sign:e>0?-1:e<0?1:t?-1:1}}function En(r,t){return Math.min(t[1]!=null?t[1]:1/0,Math.max(t[0]!=null?t[0]:-1/0,r))}var cn=!0,Da=Math.min,ui=Math.max,cL=Math.pow,dL=1e4,pL=6,gL=6,gp="globalPan",yL={w:[0,0],e:[0,1],n:[1,0],s:[1,1]},mL={w:"ew",e:"ew",n:"ns",s:"ns",ne:"nesw",sw:"nesw",nw:"nwse",se:"nwse"},yp={brushStyle:{lineWidth:2,stroke:"rgba(210,219,238,0.3)",fill:"#D2DBEE"},transformable:!0,brushMode:"single",removeOnClick:!1},_L=0,SL=function(r){O(t,r);function t(e){var n=r.call(this)||this;return n._track=[],n._covers=[],n._handlers={},n._zr=e,n.group=new bt,n._uid="brushController_"+_L++,M(DL,function(i,a){this._handlers[a]=U(i,this)},n),n}return t.prototype.enableBrush=function(e){return this._brushType&&this._doDisableBrush(),e.brushType&&this._doEnableBrush(e),this},t.prototype._doEnableBrush=function(e){var n=this._zr;this._enableGlobalPan||sL(n,gp,this._uid),M(this._handlers,function(i,a){n.on(a,i)}),this._brushType=e.brushType,this._brushOption=j(q(yp),e,!0)},t.prototype._doDisableBrush=function(){var e=this._zr;uL(e,gp,this._uid),M(this._handlers,function(n,i){e.off(i,n)}),this._brushType=this._brushOption=null},t.prototype.setPanels=function(e){if(e&&e.length){var n=this._panels={};M(e,function(i){n[i.panelId]=q(i)})}else this._panels=null;return this},t.prototype.mount=function(e){e=e||{},this._enableGlobalPan=e.enableGlobalPan;var n=this.group;return this._zr.add(n),n.attr({x:e.x||0,y:e.y||0,rotation:e.rotation||0,scaleX:e.scaleX||1,scaleY:e.scaleY||1}),this._transform=n.getLocalTransform(),this},t.prototype.updateCovers=function(e){e=z(e,function(c){return j(q(yp),c,!0)});var n="\0-brush-index-",i=this._covers,a=this._covers=[],o=this,s=this._creatingCover;return new ba(i,e,l,u).add(f).update(f).remove(h).execute(),this;function u(c,v){return(c.id!=null?c.id:n+v)+"-"+c.brushType}function l(c,v){return u(c.__brushOption,v)}function f(c,v){var d=e[c];if(v!=null&&i[v]===s)a[c]=i[v];else{var p=a[c]=v!=null?(i[v].__brushOption=d,i[v]):M_(o,C_(o,d));Wh(o,p)}}function h(c){i[c]!==s&&o.group.remove(i[c])}},t.prototype.unmount=function(){return this.enableBrush(!1),Mf(this),this._zr.remove(this.group),this},t.prototype.dispose=function(){this.unmount(),this.off()},t}(ve);function C_(r,t){var e=Xs[t.brushType].createCover(r,t);return e.__brushOption=t,A_(e,t),r.group.add(e),e}function M_(r,t){var e=Uh(t);return e.endCreating&&(e.endCreating(r,t),A_(t,t.__brushOption)),t}function D_(r,t){var e=t.__brushOption;Uh(t).updateCoverShape(r,t,e.range,e)}function A_(r,t){var e=t.z;e==null&&(e=dL),r.traverse(function(n){n.z=e,n.z2=e})}function Wh(r,t){Uh(t).updateCommon(r,t),D_(r,t)}function Uh(r){return Xs[r.__brushOption.brushType]}function Yh(r,t,e){var n=r._panels;if(!n)return cn;var i,a=r._transform;return M(n,function(o){o.isTargetByCursor(t,e,a)&&(i=o)}),i}function L_(r,t){var e=r._panels;if(!e)return cn;var n=t.__brushOption.panelId;return n!=null?e[n]:cn}function Mf(r){var t=r._covers,e=t.length;return M(t,function(n){r.group.remove(n)},r),t.length=0,!!e}function dn(r,t){var e=z(r._covers,function(n){var i=n.__brushOption,a=q(i.range);return{brushType:i.brushType,panelId:i.panelId,range:a}});r.trigger("brush",{areas:e,isEnd:!!t.isEnd,removeOnClick:!!t.removeOnClick})}function xL(r){var t=r._track;if(!t.length)return!1;var e=t[t.length-1],n=t[0],i=e[0]-n[0],a=e[1]-n[1],o=cL(i*i+a*a,.5);return o>pL}function I_(r){var t=r.length-1;return t<0&&(t=0),[r[0],r[t]]}function P_(r,t,e,n){var i=new bt;return i.add(new yt({name:"main",style:$h(e),silent:!0,draggable:!0,cursor:"move",drift:ut(mp,r,t,i,["n","s","w","e"]),ondragend:ut(dn,t,{isEnd:!0})})),M(n,function(a){i.add(new yt({name:a.join(""),style:{opacity:0},draggable:!0,silent:!0,invisible:!0,drift:ut(mp,r,t,i,a),ondragend:ut(dn,t,{isEnd:!0})}))}),i}function R_(r,t,e,n){var i=n.brushStyle.lineWidth||0,a=ui(i,gL),o=e[0][0],s=e[1][0],u=o-i/2,l=s-i/2,f=e[0][1],h=e[1][1],c=f-a+i/2,v=h-a+i/2,d=f-o,p=h-s,g=d+i,y=p+i;We(r,t,"main",o,s,d,p),n.transformable&&(We(r,t,"w",u,l,a,y),We(r,t,"e",c,l,a,y),We(r,t,"n",u,l,g,a),We(r,t,"s",u,v,g,a),We(r,t,"nw",u,l,a,a),We(r,t,"ne",c,l,a,a),We(r,t,"sw",u,v,a,a),We(r,t,"se",c,v,a,a))}function Df(r,t){var e=t.__brushOption,n=e.transformable,i=t.childAt(0);i.useStyle($h(e)),i.attr({silent:!n,cursor:n?"move":"default"}),M([["w"],["e"],["n"],["s"],["s","e"],["s","w"],["n","e"],["n","w"]],function(a){var o=t.childOfName(a.join("")),s=a.length===1?Af(r,a[0]):bL(r,a);o&&o.attr({silent:!n,invisible:!n,cursor:n?mL[s]+"-resize":null})})}function We(r,t,e,n,i,a,o){var s=t.childOfName(e);s&&s.setShape(CL(Zh(r,t,[[n,i],[n+a,i+o]])))}function $h(r){return K({strokeNoScale:!0},r.brushStyle)}function E_(r,t,e,n){var i=[Da(r,e),Da(t,n)],a=[ui(r,e),ui(t,n)];return[[i[0],a[0]],[i[1],a[1]]]}function wL(r){return Is(r.group)}function Af(r,t){var e={w:"left",e:"right",n:"top",s:"bottom"},n={left:"w",right:"e",top:"n",bottom:"s"},i=vh(e[t],wL(r));return n[i]}function bL(r,t){var e=[Af(r,t[0]),Af(r,t[1])];return(e[0]==="e"||e[0]==="w")&&e.reverse(),e.join("")}function mp(r,t,e,n,i,a){var o=e.__brushOption,s=r.toRectRange(o.range),u=O_(t,i,a);M(n,function(l){var f=yL[l];s[f[0]][f[1]]+=u[f[0]]}),o.range=r.fromRectRange(E_(s[0][0],s[1][0],s[0][1],s[1][1])),Wh(t,e),dn(t,{isEnd:!1})}function TL(r,t,e,n){var i=t.__brushOption.range,a=O_(r,e,n);M(i,function(o){o[0]+=a[0],o[1]+=a[1]}),Wh(r,t),dn(r,{isEnd:!1})}function O_(r,t,e){var n=r.group,i=n.transformCoordToLocal(t,e),a=n.transformCoordToLocal(0,0);return[i[0]-a[0],i[1]-a[1]]}function Zh(r,t,e){var n=L_(r,t);return n&&n!==cn?n.clipPath(e,r._transform):q(e)}function CL(r){var t=Da(r[0][0],r[1][0]),e=Da(r[0][1],r[1][1]),n=ui(r[0][0],r[1][0]),i=ui(r[0][1],r[1][1]);return{x:t,y:e,width:n-t,height:i-e}}function ML(r,t,e){if(!(!r._brushType||AL(r,t.offsetX,t.offsetY))){var n=r._zr,i=r._covers,a=Yh(r,t,e);if(!r._dragging)for(var o=0;on.getWidth()||e<0||e>n.getHeight()}var Xs={lineX:xp(0),lineY:xp(1),rect:{createCover:function(r,t){function e(n){return n}return P_({toRectRange:e,fromRectRange:e},r,t,[["w"],["e"],["n"],["s"],["s","e"],["s","w"],["n","e"],["n","w"]])},getCreatingRange:function(r){var t=I_(r);return E_(t[1][0],t[1][1],t[0][0],t[0][1])},updateCoverShape:function(r,t,e,n){R_(r,t,e,n)},updateCommon:Df,contain:If},polygon:{createCover:function(r,t){var e=new bt;return e.add(new Oa({name:"main",style:$h(t),silent:!0})),e},getCreatingRange:function(r){return r},endCreating:function(r,t){t.remove(t.childAt(0)),t.add(new Ea({name:"main",draggable:!0,drift:ut(TL,r,t),ondragend:ut(dn,r,{isEnd:!0})}))},updateCoverShape:function(r,t,e,n){t.childAt(0).setShape({points:Zh(r,t,e)})},updateCommon:Df,contain:If}};function xp(r){return{createCover:function(t,e){return P_({toRectRange:function(n){var i=[n,[0,100]];return r&&i.reverse(),i},fromRectRange:function(n){return n[r]}},t,e,[[["w"],["e"]],[["n"],["s"]]][r])},getCreatingRange:function(t){var e=I_(t),n=Da(e[0][r],e[1][r]),i=ui(e[0][r],e[1][r]);return[n,i]},updateCoverShape:function(t,e,n,i){var a,o=L_(t,e);if(o!==cn&&o.getLinearBrushOtherExtent)a=o.getLinearBrushOtherExtent(r);else{var s=t._zr;a=[0,[s.getWidth(),s.getHeight()][1-r]]}var u=[n,a];r&&u.reverse(),R_(t,e,u,i)},updateCommon:Df,contain:If}}const LL=SL;function IL(r){return r=Xh(r),function(t){return um(t,r)}}function PL(r,t){return r=Xh(r),function(e){var n=t!=null?t:e,i=n?r.width:r.height,a=n?r.x:r.y;return[a,a+(i||0)]}}function RL(r,t,e){var n=Xh(r);return function(i,a){return n.contain(a[0],a[1])&&!vL(i,t,e)}}function Xh(r){return rt.create(r)}var Jr=gt(),wp=q,hl=U,EL=function(){function r(){this._dragging=!1,this.animationThreshold=15}return r.prototype.render=function(t,e,n,i){var a=e.get("value"),o=e.get("status");if(this._axisModel=t,this._axisPointerModel=e,this._api=n,!(!i&&this._lastValue===a&&this._lastStatus===o)){this._lastValue=a,this._lastStatus=o;var s=this._group,u=this._handle;if(!o||o==="hide"){s&&s.hide(),u&&u.hide();return}s&&s.show(),u&&u.show();var l={};this.makeElOption(l,a,t,e,n);var f=l.graphicKey;f!==this._lastGraphicKey&&this.clear(n),this._lastGraphicKey=f;var h=this._moveAnimation=this.determineAnimation(t,e);if(!s)s=this._group=new bt,this.createPointerEl(s,l,t,e),this.createLabelEl(s,l,t,e),n.getZr().add(s);else{var c=ut(bp,e,h);this.updatePointerEl(s,l,c),this.updateLabelEl(s,l,c,e)}Cp(s,e,!0),this._renderHandle(a)}},r.prototype.remove=function(t){this.clear(t)},r.prototype.dispose=function(t){this.clear(t)},r.prototype.determineAnimation=function(t,e){var n=e.get("animation"),i=t.axis,a=i.type==="category",o=e.get("snap");if(!o&&!a)return!1;if(n==="auto"||n==null){var s=this.animationThreshold;if(a&&i.getBandWidth()>s)return!0;if(o){var u=Hh(t).seriesDataCount,l=i.getExtent();return Math.abs(l[0]-l[1])/u>s}return!1}return n===!0},r.prototype.makeElOption=function(t,e,n,i,a){},r.prototype.createPointerEl=function(t,e,n,i){var a=e.pointer;if(a){var o=Jr(t).pointerEl=new Nb[a.type](wp(e.pointer));t.add(o)}},r.prototype.createLabelEl=function(t,e,n,i){if(e.label){var a=Jr(t).labelEl=new Dt(wp(e.label));t.add(a),Tp(a,i)}},r.prototype.updatePointerEl=function(t,e,n){var i=Jr(t).pointerEl;i&&e.pointer&&(i.setStyle(e.pointer.style),n(i,{shape:e.pointer.shape}))},r.prototype.updateLabelEl=function(t,e,n,i){var a=Jr(t).labelEl;a&&(a.setStyle(e.label.style),n(a,{x:e.label.x,y:e.label.y}),Tp(a,i))},r.prototype._renderHandle=function(t){if(!(this._dragging||!this.updateHandleTransform)){var e=this._axisPointerModel,n=this._api.getZr(),i=this._handle,a=e.getModel("handle"),o=e.get("status");if(!a.get("show")||!o||o==="hide"){i&&n.remove(i),this._handle=null;return}var s;this._handle||(s=!0,i=this._handle=Ps(a.get("icon"),{cursor:"move",draggable:!0,onmousemove:function(l){ni(l.event)},onmousedown:hl(this._onHandleDragMove,this,0,0),drift:hl(this._onHandleDragMove,this),ondragend:hl(this._onHandleDragEnd,this)}),n.add(i)),Cp(i,e,!1),i.setStyle(a.getItemStyle(null,["color","borderColor","borderWidth","opacity","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY"]));var u=a.get("size");N(u)||(u=[u,u]),i.scaleX=u[0]/2,i.scaleY=u[1]/2,Ws(this,"_doDispatchAxisPointer",a.get("throttle")||0,"fixRate"),this._moveHandleToValue(t,s)}},r.prototype._moveHandleToValue=function(t,e){bp(this._axisPointerModel,!e&&this._moveAnimation,this._handle,vl(this.getHandleTransform(t,this._axisModel,this._axisPointerModel)))},r.prototype._onHandleDragMove=function(t,e){var n=this._handle;if(!!n){this._dragging=!0;var i=this.updateHandleTransform(vl(n),[t,e],this._axisModel,this._axisPointerModel);this._payloadInfo=i,n.stopAnimation(),n.attr(vl(i)),Jr(n).lastProp=null,this._doDispatchAxisPointer()}},r.prototype._doDispatchAxisPointer=function(){var t=this._handle;if(!!t){var e=this._payloadInfo,n=this._axisModel;this._api.dispatchAction({type:"updateAxisPointer",x:e.cursorPoint[0],y:e.cursorPoint[1],tooltipOption:e.tooltipOption,axesInfo:[{axisDim:n.axis.dim,axisIndex:n.componentIndex}]})}},r.prototype._onHandleDragEnd=function(){this._dragging=!1;var t=this._handle;if(!!t){var e=this._axisPointerModel.get("value");this._moveHandleToValue(e),this._api.dispatchAction({type:"hideTip"})}},r.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),as(this,"_doDispatchAxisPointer")},r.prototype.doClear=function(){},r.prototype.buildLabel=function(t,e,n){return n=n||0,{x:t[n],y:t[1-n],width:e[n],height:e[1-n]}},r}();function bp(r,t,e,n){B_(Jr(e).lastProp,n)||(Jr(e).lastProp=n,t?xe(e,n,r):(e.stopAnimation(),e.attr(n)))}function B_(r,t){if(V(r)&&V(t)){var e=!0;return M(t,function(n,i){e=e&&B_(r[i],n)}),!!e}else return r===t}function Tp(r,t){r[t.get(["label","show"])?"show":"hide"]()}function vl(r){return{x:r.x||0,y:r.y||0,rotation:r.rotation||0}}function Cp(r,t,e){var n=t.get("z"),i=t.get("zlevel");r&&r.traverse(function(a){a.type!=="group"&&(n!=null&&(a.z=n),i!=null&&(a.zlevel=i),a.silent=e)})}const OL=EL;function kL(r){var t=r.get("type"),e=r.getModel(t+"Style"),n;return t==="line"?(n=e.getLineStyle(),n.fill=null):t==="shadow"&&(n=e.getAreaStyle(),n.stroke=null),n}function BL(r,t,e,n,i){var a=e.get("value"),o=N_(a,t.axis,t.ecModel,e.get("seriesDataIndices"),{precision:e.get(["label","precision"]),formatter:e.get(["label","formatter"])}),s=e.getModel("label"),u=zs(s.get("padding")||0),l=s.getFont(),f=ws(o,l),h=i.position,c=f.width+u[1]+u[3],v=f.height+u[0]+u[2],d=i.align;d==="right"&&(h[0]-=c),d==="center"&&(h[0]-=c/2);var p=i.verticalAlign;p==="bottom"&&(h[1]-=v),p==="middle"&&(h[1]-=v/2),NL(h,c,v,n);var g=s.get("backgroundColor");(!g||g==="auto")&&(g=t.get(["axisLine","lineStyle","color"])),r.label={x:h[0],y:h[1],style:Je(s,{text:o,font:l,fill:s.getTextColor(),padding:u,backgroundColor:g}),z2:10}}function NL(r,t,e,n){var i=n.getWidth(),a=n.getHeight();r[0]=Math.min(r[0]+t,i)-t,r[1]=Math.min(r[1]+e,a)-e,r[0]=Math.max(r[0],0),r[1]=Math.max(r[1],0)}function N_(r,t,e,n,i){r=t.scale.parse(r);var a=t.scale.getLabel({value:r},{precision:i.precision}),o=i.formatter;if(o){var s={value:Nh(t,{value:r}),axisDimension:t.dim,axisIndex:t.index,seriesData:[]};M(n,function(u){var l=e.getSeriesByIndex(u.seriesIndex),f=u.dataIndexInside,h=l&&l.getDataParams(f);h&&s.seriesData.push(h)}),G(o)?a=o.replace("{value}",a):Y(o)&&(a=o(s))}return a}function F_(r,t,e){var n=Xn();return qf(n,n,e.rotation),Rl(n,n,e.position),pa([r.dataToCoord(t),(e.labelOffset||0)+(e.labelDirection||1)*(e.labelMargin||0)],n)}function FL(r,t,e,n,i,a){var o=S_.innerTextLayout(e.rotation,0,e.labelDirection);e.labelMargin=i.get(["label","margin"]),BL(t,n,i,a,{position:F_(n.axis,r,e),align:o.textAlign,verticalAlign:o.textVerticalAlign})}function zL(r,t,e){return e=e||0,{x1:r[e],y1:r[1-e],x2:t[e],y2:t[1-e]}}function GL(r,t,e){return e=e||0,{x:r[e],y:r[1-e],width:t[e],height:t[1-e]}}var HL=function(r){O(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return t.prototype.makeElOption=function(e,n,i,a,o){var s=i.axis,u=s.grid,l=a.get("type"),f=Mp(u,s).getOtherAxis(s).getGlobalExtent(),h=s.toGlobalCoord(s.dataToCoord(n,!0));if(l&&l!=="none"){var c=kL(a),v=VL[l](s,h,f);v.style=c,e.graphicKey=v.type,e.pointer=v}var d=bf(u.model,i);FL(n,e,d,i,a,o)},t.prototype.getHandleTransform=function(e,n,i){var a=bf(n.axis.grid.model,n,{labelInside:!1});a.labelMargin=i.get(["handle","margin"]);var o=F_(n.axis,e,a);return{x:o[0],y:o[1],rotation:a.rotation+(a.labelDirection<0?Math.PI:0)}},t.prototype.updateHandleTransform=function(e,n,i,a){var o=i.axis,s=o.grid,u=o.getGlobalExtent(!0),l=Mp(s,o).getOtherAxis(o).getGlobalExtent(),f=o.dim==="x"?0:1,h=[e.x,e.y];h[f]+=n[f],h[f]=Math.min(u[1],h[f]),h[f]=Math.max(u[0],h[f]);var c=(l[1]+l[0])/2,v=[c,c];v[f]=h[f];var d=[{verticalAlign:"middle"},{align:"center"}];return{x:h[0],y:h[1],rotation:e.rotation,cursorPoint:v,tooltipOption:d[f]}},t}(OL);function Mp(r,t){var e={};return e[t.dim+"AxisIndex"]=t.index,r.getCartesian(e)}var VL={line:function(r,t,e){var n=zL([t,e[0]],[t,e[1]],Dp(r));return{type:"Line",subPixelOptimize:!0,shape:n}},shadow:function(r,t,e){var n=Math.max(1,r.getBandWidth()),i=e[1]-e[0];return{type:"Rect",shape:GL([t-n/2,e[0]],[n,i],Dp(r))}}};function Dp(r){return r.dim==="x"?0:1}const WL=HL;var UL=function(r){O(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.type="axisPointer",t.defaultOption={show:"auto",z:50,type:"line",snap:!1,triggerTooltip:!0,triggerEmphasis:!0,value:null,status:null,link:[],animation:null,animationDurationUpdate:200,lineStyle:{color:"#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}},t}(vt);const YL=UL;var Ze=gt(),$L=M;function z_(r,t,e){if(!J.node){var n=t.getZr();Ze(n).records||(Ze(n).records={}),ZL(n,t);var i=Ze(n).records[r]||(Ze(n).records[r]={});i.handler=e}}function ZL(r,t){if(Ze(r).initialized)return;Ze(r).initialized=!0,e("click",ut(Ap,"click")),e("mousemove",ut(Ap,"mousemove")),e("globalout",qL);function e(n,i){r.on(n,function(a){var o=KL(t);$L(Ze(r).records,function(s){s&&i(s,a,o.dispatchAction)}),XL(o.pendings,t)})}}function XL(r,t){var e=r.showTip.length,n=r.hideTip.length,i;e?i=r.showTip[e-1]:n&&(i=r.hideTip[n-1]),i&&(i.dispatchAction=null,t.dispatchAction(i))}function qL(r,t,e){r.handler("leave",null,e)}function Ap(r,t,e,n){t.handler(r,e,n)}function KL(r){var t={showTip:[],hideTip:[]},e=function(n){var i=t[n.type];i?i.push(n):(n.dispatchAction=e,r.dispatchAction(n))};return{dispatchAction:e,pendings:t}}function Pf(r,t){if(!J.node){var e=t.getZr(),n=(Ze(e).records||{})[r];n&&(Ze(e).records[r]=null)}}var QL=function(r){O(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.render=function(e,n,i){var a=n.getComponent("tooltip"),o=e.get("triggerOn")||a&&a.get("triggerOn")||"mousemove|click";z_("axisPointer",i,function(s,u,l){o!=="none"&&(s==="leave"||o.indexOf(s)>=0)&&l({type:"updateAxisPointer",currTrigger:s,x:u&&u.offsetX,y:u&&u.offsetY})})},t.prototype.remove=function(e,n){Pf("axisPointer",n)},t.prototype.dispose=function(e,n){Pf("axisPointer",n)},t.type="axisPointer",t}(he);const JL=QL;function G_(r,t){var e=[],n=r.seriesIndex,i;if(n==null||!(i=t.getSeriesByIndex(n)))return{point:[]};var a=i.getData(),o=fn(a,r);if(o==null||o<0||N(o))return{point:[]};var s=a.getItemGraphicEl(o),u=i.coordinateSystem;if(i.getTooltipPosition)e=i.getTooltipPosition(o)||[];else if(u&&u.dataToPoint)if(r.isStacked){var l=u.getBaseAxis(),f=u.getOtherAxis(l),h=f.dim,c=l.dim,v=h==="x"||h==="radius"?1:0,d=a.mapDimension(c),p=[];p[v]=a.get(d,o),p[1-v]=a.get(a.getCalculationInfo("stackResultDimension"),o),e=u.dataToPoint(p)||[]}else e=u.dataToPoint(a.getValues(z(u.dimensions,function(y){return a.mapDimension(y)}),o))||[];else if(s){var g=s.getBoundingRect().clone();g.applyTransform(s.transform),e=[g.x+g.width/2,g.y+g.height/2]}return{point:e,el:s}}var Lp=gt();function jL(r,t,e){var n=r.currTrigger,i=[r.x,r.y],a=r,o=r.dispatchAction||U(e.dispatchAction,e),s=t.getComponent("axisPointer").coordSysAxesInfo;if(!!s){Vo(i)&&(i=G_({seriesIndex:a.seriesIndex,dataIndex:a.dataIndex},t).point);var u=Vo(i),l=a.axesInfo,f=s.axesInfo,h=n==="leave"||Vo(i),c={},v={},d={list:[],map:{}},p={showPointer:ut(eI,v),showTooltip:ut(rI,d)};M(s.coordSysMap,function(y,m){var _=u||y.containPoint(i);M(s.coordSysAxesInfo[m],function(S,w){var x=S.axis,b=oI(l,S);if(!h&&_&&(!l||b)){var C=b&&b.value;C==null&&!u&&(C=x.pointToData(i)),C!=null&&Ip(S,C,p,!1,c)}})});var g={};return M(f,function(y,m){var _=y.linkGroup;_&&!v[m]&&M(_.axesInfo,function(S,w){var x=v[w];if(S!==y&&x){var b=x.value;_.mapper&&(b=y.axis.scale.parse(_.mapper(b,Pp(S),Pp(y)))),g[y.key]=b}})}),M(g,function(y,m){Ip(f[m],y,p,!0,c)}),nI(v,f,c),iI(d,i,r,o),aI(f,o,e),c}}function Ip(r,t,e,n,i){var a=r.axis;if(!(a.scale.isBlank()||!a.containData(t))){if(!r.involveSeries){e.showPointer(r,t);return}var o=tI(t,r),s=o.payloadBatch,u=o.snapToValue;s[0]&&i.seriesIndex==null&&k(i,s[0]),!n&&r.snap&&a.containData(u)&&u!=null&&(t=u),e.showPointer(r,t,s),e.showTooltip(r,o,u)}}function tI(r,t){var e=t.axis,n=e.dim,i=r,a=[],o=Number.MAX_VALUE,s=-1;return M(t.seriesModels,function(u,l){var f=u.getData().mapDimensionsAll(n),h,c;if(u.getAxisTooltipData){var v=u.getAxisTooltipData(f,r,e);c=v.dataIndices,h=v.nestestValue}else{if(c=u.getData().indicesOfNearest(f[0],r,e.type==="category"?.5:null),!c.length)return;h=u.getData().get(f[0],c[0])}if(!(h==null||!isFinite(h))){var d=r-h,p=Math.abs(d);p<=o&&((p=0&&s<0)&&(o=p,s=d,i=h,a.length=0),M(c,function(g){a.push({seriesIndex:u.seriesIndex,dataIndexInside:g,dataIndex:u.getData().getRawIndex(g)})}))}}),{payloadBatch:a,snapToValue:i}}function eI(r,t,e,n){r[t.key]={value:e,payloadBatch:n}}function rI(r,t,e,n){var i=e.payloadBatch,a=t.axis,o=a.model,s=t.axisPointerModel;if(!(!t.triggerTooltip||!i.length)){var u=t.coordSys.model,l=Ma(u),f=r.map[l];f||(f=r.map[l]={coordSysId:u.id,coordSysIndex:u.componentIndex,coordSysType:u.type,coordSysMainType:u.mainType,dataByAxis:[]},r.list.push(f)),f.dataByAxis.push({axisDim:a.dim,axisIndex:o.componentIndex,axisType:o.type,axisId:o.id,value:n,valueLabelOpt:{precision:s.get(["label","precision"]),formatter:s.get(["label","formatter"])},seriesDataIndices:i.slice()})}}function nI(r,t,e){var n=e.axesInfo=[];M(t,function(i,a){var o=i.axisPointerModel.option,s=r[a];s?(!i.useHandle&&(o.status="show"),o.value=s.value,o.seriesDataIndices=(s.payloadBatch||[]).slice()):!i.useHandle&&(o.status="hide"),o.status==="show"&&n.push({axisDim:i.axis.dim,axisIndex:i.axis.model.componentIndex,value:o.value})})}function iI(r,t,e,n){if(Vo(t)||!r.list.length){n({type:"hideTip"});return}var i=((r.list[0].dataByAxis[0]||{}).seriesDataIndices||[])[0]||{};n({type:"showTip",escapeConnect:!0,x:t[0],y:t[1],tooltipOption:e.tooltipOption,position:e.position,dataIndexInside:i.dataIndexInside,dataIndex:i.dataIndex,seriesIndex:i.seriesIndex,dataByCoordSys:r.list})}function aI(r,t,e){var n=e.getZr(),i="axisPointerLastHighlights",a=Lp(n)[i]||{},o=Lp(n)[i]={};M(r,function(l,f){var h=l.axisPointerModel.option;h.status==="show"&&l.triggerEmphasis&&M(h.seriesDataIndices,function(c){var v=c.seriesIndex+" | "+c.dataIndex;o[v]=c})});var s=[],u=[];M(a,function(l,f){!o[f]&&u.push(l)}),M(o,function(l,f){!a[f]&&s.push(l)}),u.length&&e.dispatchAction({type:"downplay",escapeConnect:!0,notBlur:!0,batch:u}),s.length&&e.dispatchAction({type:"highlight",escapeConnect:!0,notBlur:!0,batch:s})}function oI(r,t){for(var e=0;e<(r||[]).length;e++){var n=r[e];if(t.axis.dim===n.axisDim&&t.axis.model.componentIndex===n.axisIndex)return n}}function Pp(r){var t=r.axis.model,e={},n=e.axisDim=r.axis.dim;return e.axisIndex=e[n+"AxisIndex"]=t.componentIndex,e.axisName=e[n+"AxisName"]=t.name,e.axisId=e[n+"AxisId"]=t.id,e}function Vo(r){return!r||r[0]==null||isNaN(r[0])||r[1]==null||isNaN(r[1])}function H_(r){x_.registerAxisPointerClass("CartesianAxisPointer",WL),r.registerComponentModel(YL),r.registerComponentView(JL),r.registerPreprocessor(function(t){if(t){(!t.axisPointer||t.axisPointer.length===0)&&(t.axisPointer={});var e=t.axisPointer.link;e&&!N(e)&&(t.axisPointer.link=[e])}}),r.registerProcessor(r.PRIORITY.PROCESSOR.STATISTIC,function(t,e){t.getComponent("axisPointer").coordSysAxesInfo=Y2(t,e)}),r.registerAction({type:"updateAxisPointer",event:"updateAxisPointer",update:":updateAxisPointer"},jL)}function uE(r){Be(oL),Be(H_)}var Rp=["x","y","radius","angle","single"],sI=["cartesian2d","polar","singleAxis"];function uI(r){var t=r.get("coordinateSystem");return tt(sI,t)>=0}function yr(r){return r+"Axis"}function lI(r,t){var e=W(),n=[],i=W();r.eachComponent({mainType:"dataZoom",query:t},function(f){i.get(f.uid)||s(f)});var a;do a=!1,r.eachComponent("dataZoom",o);while(a);function o(f){!i.get(f.uid)&&u(f)&&(s(f),a=!0)}function s(f){i.set(f.uid,!0),n.push(f),l(f)}function u(f){var h=!1;return f.eachTargetAxis(function(c,v){var d=e.get(c);d&&d[v]&&(h=!0)}),h}function l(f){f.eachTargetAxis(function(h,c){(e.get(h)||e.set(h,[]))[c]=!0})}return n}function V_(r){var t=r.ecModel,e={infoList:[],infoMap:W()};return r.eachTargetAxis(function(n,i){var a=t.getComponent(yr(n),i);if(!!a){var o=a.getCoordSysModel();if(!!o){var s=o.uid,u=e.infoMap.get(s);u||(u={model:o,axisModels:[]},e.infoList.push(u),e.infoMap.set(s,u)),u.axisModels.push(a)}}}),e}var cl=function(){function r(){this.indexList=[],this.indexMap=[]}return r.prototype.add=function(t){this.indexMap[t]||(this.indexList.push(t),this.indexMap[t]=!0)},r}(),fI=function(r){O(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e._autoThrottle=!0,e._noTarget=!0,e._rangePropMode=["percent","percent"],e}return t.prototype.init=function(e,n,i){var a=Ep(e);this.settledOption=a,this.mergeDefaultAndTheme(e,i),this._doInit(a)},t.prototype.mergeOption=function(e){var n=Ep(e);j(this.option,e,!0),j(this.settledOption,n,!0),this._doInit(n)},t.prototype._doInit=function(e){var n=this.option;this._setDefaultThrottle(e),this._updateRangeUse(e);var i=this.settledOption;M([["start","startValue"],["end","endValue"]],function(a,o){this._rangePropMode[o]==="value"&&(n[a[0]]=i[a[0]]=null)},this),this._resetTarget()},t.prototype._resetTarget=function(){var e=this.get("orient",!0),n=this._targetAxisInfoMap=W(),i=this._fillSpecifiedTargetAxis(n);i?this._orient=e||this._makeAutoOrientByTargetAxis():(this._orient=e||"horizontal",this._fillAutoTargetAxisByOrient(n,this._orient)),this._noTarget=!0,n.each(function(a){a.indexList.length&&(this._noTarget=!1)},this)},t.prototype._fillSpecifiedTargetAxis=function(e){var n=!1;return M(Rp,function(i){var a=this.getReferringComponents(yr(i),mx);if(!!a.specified){n=!0;var o=new cl;M(a.models,function(s){o.add(s.componentIndex)}),e.set(i,o)}},this),n},t.prototype._fillAutoTargetAxisByOrient=function(e,n){var i=this.ecModel,a=!0;if(a){var o=n==="vertical"?"y":"x",s=i.findComponents({mainType:o+"Axis"});u(s,o)}if(a){var s=i.findComponents({mainType:"singleAxis",filter:function(f){return f.get("orient",!0)===n}});u(s,"single")}function u(l,f){var h=l[0];if(!!h){var c=new cl;if(c.add(h.componentIndex),e.set(f,c),a=!1,f==="x"||f==="y"){var v=h.getReferringComponents("grid",zt).models[0];v&&M(l,function(d){h.componentIndex!==d.componentIndex&&v===d.getReferringComponents("grid",zt).models[0]&&c.add(d.componentIndex)})}}}a&&M(Rp,function(l){if(!!a){var f=i.findComponents({mainType:yr(l),filter:function(c){return c.get("type",!0)==="category"}});if(f[0]){var h=new cl;h.add(f[0].componentIndex),e.set(l,h),a=!1}}},this)},t.prototype._makeAutoOrientByTargetAxis=function(){var e;return this.eachTargetAxis(function(n){!e&&(e=n)},this),e==="y"?"vertical":"horizontal"},t.prototype._setDefaultThrottle=function(e){if(e.hasOwnProperty("throttle")&&(this._autoThrottle=!1),this._autoThrottle){var n=this.ecModel.option;this.option.throttle=n.animation&&n.animationDurationUpdate>0?100:20}},t.prototype._updateRangeUse=function(e){var n=this._rangePropMode,i=this.get("rangeMode");M([["start","startValue"],["end","endValue"]],function(a,o){var s=e[a[0]]!=null,u=e[a[1]]!=null;s&&!u?n[o]="percent":!s&&u?n[o]="value":i?n[o]=i[o]:s&&(n[o]="percent")})},t.prototype.noTarget=function(){return this._noTarget},t.prototype.getFirstTargetAxisModel=function(){var e;return this.eachTargetAxis(function(n,i){e==null&&(e=this.ecModel.getComponent(yr(n),i))},this),e},t.prototype.eachTargetAxis=function(e,n){this._targetAxisInfoMap.each(function(i,a){M(i.indexList,function(o){e.call(n,a,o)})})},t.prototype.getAxisProxy=function(e,n){var i=this.getAxisModel(e,n);if(i)return i.__dzAxisProxy},t.prototype.getAxisModel=function(e,n){var i=this._targetAxisInfoMap.get(e);if(i&&i.indexMap[n])return this.ecModel.getComponent(yr(e),n)},t.prototype.setRawRange=function(e){var n=this.option,i=this.settledOption;M([["start","startValue"],["end","endValue"]],function(a){(e[a[0]]!=null||e[a[1]]!=null)&&(n[a[0]]=i[a[0]]=e[a[0]],n[a[1]]=i[a[1]]=e[a[1]])},this),this._updateRangeUse(e)},t.prototype.setCalculatedRange=function(e){var n=this.option;M(["start","startValue","end","endValue"],function(i){n[i]=e[i]})},t.prototype.getPercentRange=function(){var e=this.findRepresentativeAxisProxy();if(e)return e.getDataPercentWindow()},t.prototype.getValueRange=function(e,n){if(e==null&&n==null){var i=this.findRepresentativeAxisProxy();if(i)return i.getDataValueWindow()}else return this.getAxisProxy(e,n).getDataValueWindow()},t.prototype.findRepresentativeAxisProxy=function(e){if(e)return e.__dzAxisProxy;for(var n,i=this._targetAxisInfoMap.keys(),a=0;ao[1];if(_&&!S&&!w)return!0;_&&(g=!0),S&&(d=!0),w&&(p=!0)}return g&&d&&p})}else zn(f,function(v){if(a==="empty")u.setData(l=l.map(v,function(p){return s(p)?p:NaN}));else{var d={};d[v]=o,l.selectRange(d)}});zn(f,function(v){l.setApproximateExtent(o,v)})}});function s(u){return u>=o[0]&&u<=o[1]}},r.prototype._updateMinMaxSpan=function(){var t=this._minMaxSpan={},e=this._dataZoomModel,n=this._dataExtent;zn(["min","max"],function(i){var a=e.get(i+"Span"),o=e.get(i+"ValueSpan");o!=null&&(o=this.getAxisModel().axis.scale.parse(o)),o!=null?a=Et(n[0]+o,n,[0,100],!0):a!=null&&(o=Et(a,[0,100],n,!0)-n[0]),t[i+"Span"]=a,t[i+"ValueSpan"]=o},this)},r.prototype._setAxisModel=function(){var t=this.getAxisModel(),e=this._percentWindow,n=this._valueWindow;if(!!e){var i=ry(n,[0,500]);i=Math.min(i,20);var a=t.axis.scale.rawExtentInfo;e[0]!==0&&a.setDeterminedMinMax("min",+n[0].toFixed(i)),e[1]!==100&&a.setDeterminedMinMax("max",+n[1].toFixed(i)),a.freeze()}},r}();function yI(r,t,e){var n=[1/0,-1/0];zn(e,function(o){yA(n,o.getData(),t)});var i=r.getAxisModel(),a=J0(i.axis.scale,i,n).calculate();return[a.min,a.max]}const mI=gI;var _I={getTargetSeries:function(r){function t(i){r.eachComponent("dataZoom",function(a){a.eachTargetAxis(function(o,s){var u=r.getComponent(yr(o),s);i(o,s,u,a)})})}t(function(i,a,o,s){o.__dzAxisProxy=null});var e=[];t(function(i,a,o,s){o.__dzAxisProxy||(o.__dzAxisProxy=new mI(i,a,s,r),e.push(o.__dzAxisProxy))});var n=W();return M(e,function(i){M(i.getTargetSeriesModels(),function(a){n.set(a.uid,a)})}),n},overallReset:function(r,t){r.eachComponent("dataZoom",function(e){e.eachTargetAxis(function(n,i){e.getAxisProxy(n,i).reset(e)}),e.eachTargetAxis(function(n,i){e.getAxisProxy(n,i).filterData(e,t)})}),r.eachComponent("dataZoom",function(e){var n=e.findRepresentativeAxisProxy();if(n){var i=n.getDataPercentWindow(),a=n.getDataValueWindow();e.setCalculatedRange({start:i[0],end:i[1],startValue:a[0],endValue:a[1]})}})}};const SI=_I;function xI(r){r.registerAction("dataZoom",function(t,e){var n=lI(e,t);M(n,function(i){i.setRawRange({start:t.start,end:t.end,startValue:t.startValue,endValue:t.endValue})})})}var kp=!1;function Kh(r){kp||(kp=!0,r.registerProcessor(r.PRIORITY.PROCESSOR.FILTER,SI),xI(r),r.registerSubTypeDefaulter("dataZoom",function(){return"slider"}))}function wI(r){r.registerComponentModel(vI),r.registerComponentView(pI),Kh(r)}var Se=function(){function r(){}return r}(),W_={};function Ni(r,t){W_[r]=t}function U_(r){return W_[r]}var bI=function(r){O(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.optionUpdated=function(){r.prototype.optionUpdated.apply(this,arguments);var e=this.ecModel;M(this.option.feature,function(n,i){var a=U_(i);a&&(a.getDefaultOption&&(a.defaultOption=a.getDefaultOption(e)),j(n,a.defaultOption))})},t.type="toolbox",t.layoutMode={type:"box",ignoreSize:!0},t.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"}},t}(vt);const TI=bI;function CI(r,t,e){var n=t.getBoxLayoutParams(),i=t.get("padding"),a={width:e.getWidth(),height:e.getHeight()},o=Tr(n,a,i);ei(t.get("orient"),r,t.get("itemGap"),o.width,o.height),uT(r,n,a,i)}function Y_(r,t){var e=zs(t.get("padding")),n=t.getItemStyle(["color","opacity"]);return n.fill=t.get("backgroundColor"),r=new yt({shape:{x:r.x-e[3],y:r.y-e[0],width:r.width+e[1]+e[3],height:r.height+e[0]+e[2],r:t.get("borderRadius")},style:n,silent:!0,z2:-1}),r}var MI=function(r){O(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return t.prototype.render=function(e,n,i,a){var o=this.group;if(o.removeAll(),!e.get("show"))return;var s=+e.get("itemSize"),u=e.get("orient")==="vertical",l=e.get("feature")||{},f=this._features||(this._features={}),h=[];M(l,function(d,p){h.push(p)}),new ba(this._featureNames||[],h).add(c).update(c).remove(ut(c,null)).execute(),this._featureNames=h;function c(d,p){var g=h[d],y=h[p],m=l[g],_=new At(m,e,e.ecModel),S;if(a&&a.newTitle!=null&&a.featureName===g&&(m.title=a.newTitle),g&&!y){if(DI(g))S={onclick:_.option.onclick,featureName:g};else{var w=U_(g);if(!w)return;S=new w}f[g]=S}else if(S=f[y],!S)return;S.uid=Ba("toolbox-feature"),S.model=_,S.ecModel=n,S.api=i;var x=S instanceof Se;if(!g&&y){x&&S.dispose&&S.dispose(n,i);return}if(!_.get("show")||x&&S.unusable){x&&S.remove&&S.remove(n,i);return}v(_,S,g),_.setIconStatus=function(b,C){var T=this.option,D=this.iconPaths;T.iconStatus=T.iconStatus||{},T.iconStatus[b]=C,D[b]&&(C==="emphasis"?ii:ai)(D[b])},S instanceof Se&&S.render&&S.render(_,n,i,a)}function v(d,p,g){var y=d.getModel("iconStyle"),m=d.getModel(["emphasis","iconStyle"]),_=p instanceof Se&&p.getIcons?p.getIcons():d.get("icon"),S=d.get("title")||{},w,x;G(_)?(w={},w[g]=_):w=_,G(S)?(x={},x[g]=S):x=S;var b=d.iconPaths={};M(w,function(C,T){var D=Ps(C,{},{x:-s/2,y:-s/2,width:s,height:s});D.setStyle(y.getItemStyle());var A=D.ensureState("emphasis");A.style=m.getItemStyle();var L=new Dt({style:{text:x[T],align:m.get("textAlign"),borderRadius:m.get("textBorderRadius"),padding:m.get("textPadding"),fill:null,font:hm({fontStyle:m.get("textFontStyle"),fontFamily:m.get("textFontFamily"),fontSize:m.get("textFontSize"),fontWeight:m.get("textFontWeight")},n)},ignore:!0});D.setTextContent(L),ka({el:D,componentModel:e,itemName:T,formatterParamsExtra:{title:x[T]}}),D.__title=x[T],D.on("mouseover",function(){var I=m.getItemStyle(),P=u?e.get("right")==null&&e.get("left")!=="right"?"right":"left":e.get("bottom")==null&&e.get("top")!=="bottom"?"bottom":"top";L.setStyle({fill:m.get("textFill")||I.fill||I.stroke||"#000",backgroundColor:m.get("textBackgroundColor")}),D.setTextConfig({position:m.get("textPosition")||P}),L.ignore=!e.get("showTitle"),i.enterEmphasis(this)}).on("mouseout",function(){d.get(["iconStatus",T])!=="emphasis"&&i.leaveEmphasis(this),L.hide()}),(d.get(["iconStatus",T])==="emphasis"?ii:ai)(D),o.add(D),D.on("click",U(p.onclick,p,n,i,T)),b[T]=D})}CI(o,e,i),o.add(Y_(o.getBoundingRect(),e)),u||o.eachChild(function(d){var p=d.__title,g=d.ensureState("emphasis"),y=g.textConfig||(g.textConfig={}),m=d.getTextContent(),_=m&&m.ensureState("emphasis");if(_&&!Y(_)&&p){var S=_.style||(_.style={}),w=ws(p,Dt.makeFont(S)),x=d.x+o.x,b=d.y+o.y+s,C=!1;b+w.height>i.getHeight()&&(y.position="top",C=!0);var T=C?-5-w.height:s+10;x+w.width/2>i.getWidth()?(y.position=["100%",T],S.align="right"):x-w.width/2<0&&(y.position=[0,T],S.align="left")}})},t.prototype.updateView=function(e,n,i,a){M(this._features,function(o){o instanceof Se&&o.updateView&&o.updateView(o.model,n,i,a)})},t.prototype.remove=function(e,n){M(this._features,function(i){i instanceof Se&&i.remove&&i.remove(e,n)}),this.group.removeAll()},t.prototype.dispose=function(e,n){M(this._features,function(i){i instanceof Se&&i.dispose&&i.dispose(e,n)})},t.type="toolbox",t}(he);function DI(r){return r.indexOf("my")===0}const AI=MI;var LI=function(r){O(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return t.prototype.onclick=function(e,n){var i=this.model,a=i.get("name")||e.get("title.0.text")||"echarts",o=n.getZr().painter.getType()==="svg",s=o?"svg":i.get("type",!0)||"png",u=n.getConnectedDataURL({type:s,backgroundColor:i.get("backgroundColor",!0)||e.get("backgroundColor")||"#fff",connectedBackgroundColor:i.get("connectedBackgroundColor"),excludeComponents:i.get("excludeComponents"),pixelRatio:i.get("pixelRatio")}),l=J.browser;if(typeof MouseEvent=="function"&&(l.newEdge||!l.ie&&!l.edge)){var f=document.createElement("a");f.download=a+"."+s,f.target="_blank",f.href=u;var h=new MouseEvent("click",{view:document.defaultView,bubbles:!0,cancelable:!1});f.dispatchEvent(h)}else if(window.navigator.msSaveOrOpenBlob||o){var c=u.split(","),v=c[0].indexOf("base64")>-1,d=o?decodeURIComponent(c[1]):c[1];v&&(d=window.atob(d));var p=a+"."+s;if(window.navigator.msSaveOrOpenBlob){for(var g=d.length,y=new Uint8Array(g);g--;)y[g]=d.charCodeAt(g);var m=new Blob([y]);window.navigator.msSaveOrOpenBlob(m,p)}else{var _=document.createElement("iframe");document.body.appendChild(_);var S=_.contentWindow,w=S.document;w.open("image/svg+xml","replace"),w.write(d),w.close(),S.focus(),w.execCommand("SaveAs",!0,p),document.body.removeChild(_)}}else{var x=i.get("lang"),b='',C=window.open();C.document.write(b),C.document.title=a}},t.getDefaultOption=function(e){var n={show:!0,icon:"M4.7,22.9L29.3,45.5L54.7,23.4M4.6,43.6L4.6,58L53.8,58L53.8,43.6M29.2,45.1L29.2,0",title:e.getLocaleModel().get(["toolbox","saveAsImage","title"]),type:"png",connectedBackgroundColor:"#fff",name:"",excludeComponents:["toolbox"],lang:e.getLocaleModel().get(["toolbox","saveAsImage","lang"])};return n},t}(Se);const II=LI;var Bp="__ec_magicType_stack__",PI=[["line","bar"],["stack"]],RI=function(r){O(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return t.prototype.getIcons=function(){var e=this.model,n=e.get("icon"),i={};return M(e.get("type"),function(a){n[a]&&(i[a]=n[a])}),i},t.getDefaultOption=function(e){var n={show:!0,type:[],icon:{line:"M4.1,28.9h7.1l9.3-22l7.4,38l9.7-19.7l3,12.8h14.9M4.1,58h51.4",bar:"M6.7,22.9h10V48h-10V22.9zM24.9,13h10v35h-10V13zM43.2,2h10v46h-10V2zM3.1,58h53.7",stack:"M8.2,38.4l-8.4,4.1l30.6,15.3L60,42.5l-8.1-4.1l-21.5,11L8.2,38.4z M51.9,30l-8.1,4.2l-13.4,6.9l-13.9-6.9L8.2,30l-8.4,4.2l8.4,4.2l22.2,11l21.5-11l8.1-4.2L51.9,30z M51.9,21.7l-8.1,4.2L35.7,30l-5.3,2.8L24.9,30l-8.4-4.1l-8.3-4.2l-8.4,4.2L8.2,30l8.3,4.2l13.9,6.9l13.4-6.9l8.1-4.2l8.1-4.1L51.9,21.7zM30.4,2.2L-0.2,17.5l8.4,4.1l8.3,4.2l8.4,4.2l5.5,2.7l5.3-2.7l8.1-4.2l8.1-4.2l8.1-4.1L30.4,2.2z"},title:e.getLocaleModel().get(["toolbox","magicType","title"]),option:{},seriesIndex:{}};return n},t.prototype.onclick=function(e,n,i){var a=this.model,o=a.get(["seriesIndex",i]);if(!!Np[i]){var s={series:[]},u=function(h){var c=h.subType,v=h.id,d=Np[i](c,v,h,a);d&&(K(d,h.option),s.series.push(d));var p=h.coordinateSystem;if(p&&p.type==="cartesian2d"&&(i==="line"||i==="bar")){var g=p.getAxesByScale("ordinal")[0];if(g){var y=g.dim,m=y+"Axis",_=h.getReferringComponents(m,zt).models[0],S=_.componentIndex;s[m]=s[m]||[];for(var w=0;w<=S;w++)s[m][S]=s[m][S]||{};s[m][S].boundaryGap=i==="bar"}}};M(PI,function(h){tt(h,i)>=0&&M(h,function(c){a.setIconStatus(c,"normal")})}),a.setIconStatus(i,"emphasis"),e.eachComponent({mainType:"series",query:o==null?null:{seriesIndex:o}},u);var l,f=i;i==="stack"&&(l=j({stack:a.option.title.tiled,tiled:a.option.title.stack},a.option.title),a.get(["iconStatus",i])!=="emphasis"&&(f="tiled")),n.dispatchAction({type:"changeMagicType",currentType:f,newOption:s,newTitle:l,featureName:"magicType"})}},t}(Se),Np={line:function(r,t,e,n){if(r==="bar")return j({id:t,type:"line",data:e.get("data"),stack:e.get("stack"),markPoint:e.get("markPoint"),markLine:e.get("markLine")},n.get(["option","line"])||{},!0)},bar:function(r,t,e,n){if(r==="line")return j({id:t,type:"bar",data:e.get("data"),stack:e.get("stack"),markPoint:e.get("markPoint"),markLine:e.get("markLine")},n.get(["option","bar"])||{},!0)},stack:function(r,t,e,n){var i=e.get("stack")===Bp;if(r==="line"||r==="bar")return n.setIconStatus("stack",i?"normal":"emphasis"),j({id:t,stack:i?"":Bp},n.get(["option","stack"])||{},!0)}};Fe({type:"changeMagicType",event:"magicTypeChanged",update:"prepareAndUpdate"},function(r,t){t.mergeOption(r.newOption)});const EI=RI;var qs=new Array(60).join("-"),li=" ";function OI(r){var t={},e=[],n=[];return r.eachRawSeries(function(i){var a=i.coordinateSystem;if(a&&(a.type==="cartesian2d"||a.type==="polar")){var o=a.getBaseAxis();if(o.type==="category"){var s=o.dim+"_"+o.index;t[s]||(t[s]={categoryAxis:o,valueAxis:a.getOtherAxis(o),series:[]},n.push({axisDim:o.dim,axisIndex:o.index})),t[s].series.push(i)}else e.push(i)}else e.push(i)}),{seriesGroupByCategoryAxis:t,other:e,meta:n}}function kI(r){var t=[];return M(r,function(e,n){var i=e.categoryAxis,a=e.valueAxis,o=a.dim,s=[" "].concat(z(e.series,function(v){return v.name})),u=[i.model.getCategories()];M(e.series,function(v){var d=v.getRawData();u.push(v.getRawData().mapArray(d.mapDimension(o),function(p){return p}))});for(var l=[s.join(li)],f=0;f=0)return!0}var Rf=new RegExp("["+li+"]+","g");function zI(r){for(var t=r.split(/\n+/g),e=vs(t.shift()).split(Rf),n=[],i=z(e,function(u){return{name:u,data:[]}}),a=0;a=0;a--){var o=e[a];if(o[i])break}if(a<0){var s=r.queryComponents({mainType:"dataZoom",subType:"select",id:i})[0];if(s){var u=s.getPercentRange();e[0][i]={dataZoomId:i,start:u[0],end:u[1]}}}}),e.push(t)}function $I(r){var t=Qh(r),e=t[t.length-1];t.length>1&&t.pop();var n={};return $_(e,function(i,a){for(var o=t.length-1;o>=0;o--)if(i=t[o][a],i){n[a]=i;break}}),n}function ZI(r){Z_(r).snapshots=null}function XI(r){return Qh(r).length}function Qh(r){var t=Z_(r);return t.snapshots||(t.snapshots=[{}]),t.snapshots}var qI=function(r){O(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return t.prototype.onclick=function(e,n){ZI(e),n.dispatchAction({type:"restore",from:this.uid})},t.getDefaultOption=function(e){var n={show:!0,icon:"M3.8,33.4 M47,18.9h9.8V8.7 M56.3,20.1 C52.1,9,40.5,0.6,26.8,2.1C12.6,3.7,1.6,16.2,2.1,30.6 M13,41.1H3.1v10.2 M3.7,39.9c4.2,11.1,15.8,19.5,29.5,18 c14.2-1.6,25.2-14.1,24.7-28.5",title:e.getLocaleModel().get(["toolbox","restore","title"])};return n},t}(Se);Fe({type:"restore",event:"restore",update:"prepareAndUpdate"},function(r,t){t.resetOption("recreate")});const KI=qI;var QI=["grid","xAxis","yAxis","geo","graph","polar","radiusAxis","angleAxis","bmap"],JI=function(){function r(t,e,n){var i=this;this._targetInfoList=[];var a=Fp(e,t);M(jI,function(o,s){(!n||!n.include||tt(n.include,s)>=0)&&o(a,i._targetInfoList)})}return r.prototype.setOutputRanges=function(t,e){return this.matchOutputRanges(t,e,function(n,i,a){if((n.coordRanges||(n.coordRanges=[])).push(i),!n.coordRange){n.coordRange=i;var o=dl[n.brushType](0,a,i);n.__rangeOffset={offset:Vp[n.brushType](o.values,n.range,[1,1]),xyMinMax:o.xyMinMax}}}),t},r.prototype.matchOutputRanges=function(t,e,n){M(t,function(i){var a=this.findTargetInfo(i,e);a&&a!==!0&&M(a.coordSyses,function(o){var s=dl[i.brushType](1,o,i.range,!0);n(i,s.values,o,e)})},this)},r.prototype.setInputRanges=function(t,e){M(t,function(n){var i=this.findTargetInfo(n,e);if(n.range=n.range||[],i&&i!==!0){n.panelId=i.panelId;var a=dl[n.brushType](0,i.coordSys,n.coordRange),o=n.__rangeOffset;n.range=o?Vp[n.brushType](a.values,o.offset,tP(a.xyMinMax,o.xyMinMax)):a.values}},this)},r.prototype.makePanelOpts=function(t,e){return z(this._targetInfoList,function(n){var i=n.getPanelRect();return{panelId:n.panelId,defaultBrushType:e?e(n):null,clipPath:IL(i),isTargetByCursor:RL(i,t,n.coordSysModel),getLinearBrushOtherExtent:PL(i)}})},r.prototype.controlSeries=function(t,e,n){var i=this.findTargetInfo(t,n);return i===!0||i&&tt(i.coordSyses,e.coordinateSystem)>=0},r.prototype.findTargetInfo=function(t,e){for(var n=this._targetInfoList,i=Fp(e,t),a=0;ar[1]&&r.reverse(),r}function Fp(r,t){return ji(r,t,{includeMainTypes:QI})}var jI={grid:function(r,t){var e=r.xAxisModels,n=r.yAxisModels,i=r.gridModels,a=W(),o={},s={};!e&&!n&&!i||(M(e,function(u){var l=u.axis.grid.model;a.set(l.id,l),o[l.id]=!0}),M(n,function(u){var l=u.axis.grid.model;a.set(l.id,l),s[l.id]=!0}),M(i,function(u){a.set(u.id,u),o[u.id]=!0,s[u.id]=!0}),a.each(function(u){var l=u.coordinateSystem,f=[];M(l.getCartesians(),function(h,c){(tt(e,h.getAxis("x").model)>=0||tt(n,h.getAxis("y").model)>=0)&&f.push(h)}),t.push({panelId:"grid--"+u.id,gridModel:u,coordSysModel:u,coordSys:f[0],coordSyses:f,getPanelRect:Gp.grid,xAxisDeclared:o[u.id],yAxisDeclared:s[u.id]})}))},geo:function(r,t){M(r.geoModels,function(e){var n=e.coordinateSystem;t.push({panelId:"geo--"+e.id,geoModel:e,coordSysModel:e,coordSys:n,coordSyses:[n],getPanelRect:Gp.geo})})}},zp=[function(r,t){var e=r.xAxisModel,n=r.yAxisModel,i=r.gridModel;return!i&&e&&(i=e.axis.grid.model),!i&&n&&(i=n.axis.grid.model),i&&i===t.gridModel},function(r,t){var e=r.geoModel;return e&&e===t.geoModel}],Gp={grid:function(){return this.coordSys.master.getRect().clone()},geo:function(){var r=this.coordSys,t=r.getBoundingRect().clone();return t.applyTransform(Is(r)),t}},dl={lineX:ut(Hp,0),lineY:ut(Hp,1),rect:function(r,t,e,n){var i=r?t.pointToData([e[0][0],e[1][0]],n):t.dataToPoint([e[0][0],e[1][0]],n),a=r?t.pointToData([e[0][1],e[1][1]],n):t.dataToPoint([e[0][1],e[1][1]],n),o=[Ef([i[0],a[0]]),Ef([i[1],a[1]])];return{values:o,xyMinMax:o}},polygon:function(r,t,e,n){var i=[[1/0,-1/0],[1/0,-1/0]],a=z(e,function(o){var s=r?t.pointToData(o,n):t.dataToPoint(o,n);return i[0][0]=Math.min(i[0][0],s[0]),i[1][0]=Math.min(i[1][0],s[1]),i[0][1]=Math.max(i[0][1],s[0]),i[1][1]=Math.max(i[1][1],s[1]),s});return{values:a,xyMinMax:i}}};function Hp(r,t,e,n){var i=e.getAxis(["x","y"][r]),a=Ef(z([0,1],function(s){return t?i.coordToData(i.toLocalCoord(n[s]),!0):i.toGlobalCoord(i.dataToCoord(n[s]))})),o=[];return o[r]=a,o[1-r]=[NaN,NaN],{values:a,xyMinMax:o}}var Vp={lineX:ut(Wp,0),lineY:ut(Wp,1),rect:function(r,t,e){return[[r[0][0]-e[0]*t[0][0],r[0][1]-e[0]*t[0][1]],[r[1][0]-e[1]*t[1][0],r[1][1]-e[1]*t[1][1]]]},polygon:function(r,t,e){return z(r,function(n,i){return[n[0]-e[0]*t[i][0],n[1]-e[1]*t[i][1]]})}};function Wp(r,t,e,n){return[t[0]-n[r]*e[0],t[1]-n[r]*e[1]]}function tP(r,t){var e=Up(r),n=Up(t),i=[e[0]/n[0],e[1]/n[1]];return isNaN(i[0])&&(i[0]=1),isNaN(i[1])&&(i[1]=1),i}function Up(r){return r?[r[0][1]-r[0][0],r[1][1]-r[1][0]]:[NaN,NaN]}const X_=JI;var Of=M,eP=dx("toolbox-dataZoom_"),rP=function(r){O(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return t.prototype.render=function(e,n,i,a){this._brushController||(this._brushController=new LL(i.getZr()),this._brushController.on("brush",U(this._onBrush,this)).mount()),aP(e,n,this,a,i),iP(e,n)},t.prototype.onclick=function(e,n,i){nP[i].call(this)},t.prototype.remove=function(e,n){this._brushController&&this._brushController.unmount()},t.prototype.dispose=function(e,n){this._brushController&&this._brushController.dispose()},t.prototype._onBrush=function(e){var n=e.areas;if(!e.isEnd||!n.length)return;var i={},a=this.ecModel;this._brushController.updateCovers([]);var o=new X_(Jh(this.model),a,{include:["grid"]});o.matchOutputRanges(n,a,function(l,f,h){if(h.type==="cartesian2d"){var c=l.brushType;c==="rect"?(s("x",h,f[0]),s("y",h,f[1])):s({lineX:"x",lineY:"y"}[c],h,f)}}),YI(a,i),this._dispatchZoomAction(i);function s(l,f,h){var c=f.getAxis(l),v=c.model,d=u(l,v,a),p=d.findRepresentativeAxisProxy(v).getMinMaxSpan();(p.minValueSpan!=null||p.maxValueSpan!=null)&&(h=za(0,h.slice(),c.scale.getExtent(),0,p.minValueSpan,p.maxValueSpan)),d&&(i[d.id]={dataZoomId:d.id,startValue:h[0],endValue:h[1]})}function u(l,f,h){var c;return h.eachComponent({mainType:"dataZoom",subType:"select"},function(v){var d=v.getAxisModel(l,f.componentIndex);d&&(c=v)}),c}},t.prototype._dispatchZoomAction=function(e){var n=[];Of(e,function(i,a){n.push(q(i))}),n.length&&this.api.dispatchAction({type:"dataZoom",from:this.uid,batch:n})},t.getDefaultOption=function(e){var n={show:!0,filterMode:"filter",icon:{zoom:"M0,13.5h26.9 M13.5,26.9V0 M32.1,13.5H58V58H13.5 V32.1",back:"M22,1.4L9.9,13.5l12.3,12.3 M10.3,13.5H54.9v44.6 H10.3v-26"},title:e.getLocaleModel().get(["toolbox","dataZoom","title"]),brushStyle:{borderWidth:0,color:"rgba(210,219,238,0.2)"}};return n},t}(Se),nP={zoom:function(){var r=!this._isZoomActive;this.api.dispatchAction({type:"takeGlobalCursor",key:"dataZoomSelect",dataZoomSelectActive:r})},back:function(){this._dispatchZoomAction($I(this.ecModel))}};function Jh(r){var t={xAxisIndex:r.get("xAxisIndex",!0),yAxisIndex:r.get("yAxisIndex",!0),xAxisId:r.get("xAxisId",!0),yAxisId:r.get("yAxisId",!0)};return t.xAxisIndex==null&&t.xAxisId==null&&(t.xAxisIndex="all"),t.yAxisIndex==null&&t.yAxisId==null&&(t.yAxisIndex="all"),t}function iP(r,t){r.setIconStatus("back",XI(t)>1?"emphasis":"normal")}function aP(r,t,e,n,i){var a=e._isZoomActive;n&&n.type==="takeGlobalCursor"&&(a=n.key==="dataZoomSelect"?n.dataZoomSelectActive:!1),e._isZoomActive=a,r.setIconStatus("zoom",a?"emphasis":"normal");var o=new X_(Jh(r),t,{include:["grid"]}),s=o.makePanelOpts(i,function(u){return u.xAxisDeclared&&!u.yAxisDeclared?"lineX":!u.xAxisDeclared&&u.yAxisDeclared?"lineY":"rect"});e._brushController.setPanels(s).enableBrush(a&&s.length?{brushType:"auto",brushStyle:r.getModel("brushStyle").getItemStyle()}:!1)}yT("dataZoom",function(r){var t=r.getComponent("toolbox",0),e=["feature","dataZoom"];if(!t||t.get(e)==null)return;var n=t.getModel(e),i=[],a=Jh(n),o=ji(r,a);Of(o.xAxisModels,function(u){return s(u,"xAxis","xAxisIndex")}),Of(o.yAxisModels,function(u){return s(u,"yAxis","yAxisIndex")});function s(u,l,f){var h=u.componentIndex,c={type:"select",$fromToolbox:!0,filterMode:n.get("filterMode",!0)||"filter",id:eP+l+h};c[f]=h,i.push(c)}return i});const oP=rP;function lE(r){r.registerComponentModel(TI),r.registerComponentView(AI),Ni("saveAsImage",II),Ni("magicType",EI),Ni("dataView",UI),Ni("dataZoom",oP),Ni("restore",KI),Be(wI)}var sP=function(r){O(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.type="tooltip",t.dependencies=["axisPointer"],t.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}},t}(vt);const uP=sP;function q_(r){var t=r.get("confine");return t!=null?!!t:r.get("renderMode")==="richText"}function K_(r){if(!!J.domSupported){for(var t=document.documentElement.style,e=0,n=r.length;e-1?(s+="top:50%",u+="translateY(-50%) rotate("+(l=a==="left"?-225:-45)+"deg)"):(s+="left:50%",u+="translateX(-50%) rotate("+(l=a==="top"?225:45)+"deg)");var f=l*Math.PI/180,h=o+i,c=h*Math.abs(Math.cos(f))+h*Math.abs(Math.sin(f)),v=Math.round(((c-Math.SQRT2*i)/2+Math.SQRT2*i-(c-h)/2)*100)/100;s+=";"+a+":-"+v+"px";var d=t+" solid "+i+"px;",p=["position:absolute;width:"+o+"px;height:"+o+"px;z-index:-1;",s+";"+u+";","border-bottom:"+d,"border-right:"+d,"background-color:"+n+";"];return'
'}function pP(r,t){var e="cubic-bezier(0.23,1,0.32,1)",n=" "+r/2+"s "+e,i="opacity"+n+",visibility"+n;return t||(n=" "+r+"s "+e,i+=J.transformSupported?","+jh+n:",left"+n+",top"+n),hP+":"+i}function Yp(r,t,e){var n=r.toFixed(0)+"px",i=t.toFixed(0)+"px";if(!J.transformSupported)return e?"top:"+i+";left:"+n+";":[["top",i],["left",n]];var a=J.transform3dSupported,o="translate"+(a?"3d":"")+"("+n+","+i+(a?",0":"")+")";return e?"top:0;left:0;"+jh+":"+o+";":[["top",0],["left",0],[Q_,o]]}function gP(r){var t=[],e=r.get("fontSize"),n=r.getTextColor();n&&t.push("color:"+n),t.push("font:"+r.getFont());var i=Q(r.get("lineHeight"),Math.round(e*3/2));e&&t.push("line-height:"+i+"px");var a=r.get("textShadowColor"),o=r.get("textShadowBlur")||0,s=r.get("textShadowOffsetX")||0,u=r.get("textShadowOffsetY")||0;return a&&o&&t.push("text-shadow:"+s+"px "+u+"px "+o+"px "+a),M(["decoration","align"],function(l){var f=r.get(l);f&&t.push("text-"+l+":"+f)}),t.join(";")}function yP(r,t,e){var n=[],i=r.get("transitionDuration"),a=r.get("backgroundColor"),o=r.get("shadowBlur"),s=r.get("shadowColor"),u=r.get("shadowOffsetX"),l=r.get("shadowOffsetY"),f=r.getModel("textStyle"),h=r0(r,"html"),c=u+"px "+l+"px "+o+"px "+s;return n.push("box-shadow:"+c),t&&i&&n.push(pP(i,e)),a&&n.push("background-color:"+a),M(["width","color","radius"],function(v){var d="border-"+v,p=Cm(d),g=r.get(p);g!=null&&n.push(d+":"+g+(v==="color"?"":"px"))}),n.push(gP(f)),h!=null&&n.push("padding:"+zs(h).join("px ")+"px"),n.join(";")+";"}function $p(r,t,e,n,i){var a=t&&t.painter;if(e){var o=a&&a.getViewportRoot();o&&V1(r,o,e,n,i)}else{r[0]=n,r[1]=i;var s=a&&a.getViewportRootOffset();s&&(r[0]+=s.offsetLeft,r[1]+=s.offsetTop)}r[2]=r[0]/t.getWidth(),r[3]=r[1]/t.getHeight()}var mP=function(){function r(t,e){if(this._show=!1,this._styleCoord=[0,0,0,0],this._enterable=!0,this._alwaysShowContent=!1,this._firstShow=!0,this._longHide=!0,J.wxa)return null;var n=document.createElement("div");n.domBelongToZr=!0,this.el=n;var i=this._zr=t.getZr(),a=e.appendTo,o=a&&(G(a)?document.querySelector(a):ri(a)?a:Y(a)&&a(t.getDom()));$p(this._styleCoord,i,o,t.getWidth()/2,t.getHeight()/2),(o||t.getDom()).appendChild(n),this._api=t,this._container=o;var s=this;n.onmouseenter=function(){s._enterable&&(clearTimeout(s._hideTimeout),s._show=!0),s._inContent=!0},n.onmousemove=function(u){if(u=u||window.event,!s._enterable){var l=i.handler,f=i.painter.getViewportRoot();ie(f,u,!0),l.dispatch("mousemove",u)}},n.onmouseleave=function(){s._inContent=!1,s._enterable&&s._show&&s.hideLater(s._hideDelay)}}return r.prototype.update=function(t){if(!this._container){var e=this._api.getDom(),n=fP(e,"position"),i=e.style;i.position!=="absolute"&&n!=="absolute"&&(i.position="relative")}var a=t.get("alwaysShowContent");a&&this._moveIfResized(),this._alwaysShowContent=a,this.el.className=t.get("className")||""},r.prototype.show=function(t,e){clearTimeout(this._hideTimeout),clearTimeout(this._longHideTimeout);var n=this.el,i=n.style,a=this._styleCoord;n.innerHTML?i.cssText=vP+yP(t,!this._firstShow,this._longHide)+Yp(a[0],a[1],!0)+("border-color:"+vn(e)+";")+(t.get("extraCssText")||"")+(";pointer-events:"+(this._enterable?"auto":"none")):i.display="none",this._show=!0,this._firstShow=!1,this._longHide=!1},r.prototype.setContent=function(t,e,n,i,a){var o=this.el;if(t==null){o.innerHTML="";return}var s="";if(G(a)&&n.get("trigger")==="item"&&!q_(n)&&(s=dP(n,i,a)),G(t))o.innerHTML=t+s;else if(t){o.innerHTML="",N(t)||(t=[t]);for(var u=0;u=0?this._tryShow(a,o):i==="leave"&&this._hide(o))},this))},t.prototype._keepShow=function(){var e=this._tooltipModel,n=this._ecModel,i=this._api,a=e.get("triggerOn");if(this._lastX!=null&&this._lastY!=null&&a!=="none"&&a!=="click"){var o=this;clearTimeout(this._refreshUpdateTimeout),this._refreshUpdateTimeout=setTimeout(function(){!i.isDisposed()&&o.manuallyShowTip(e,n,i,{x:o._lastX,y:o._lastY,dataByCoordSys:o._lastDataByCoordSys})})}},t.prototype.manuallyShowTip=function(e,n,i,a){if(!(a.from===this.uid||J.node||!i.getDom())){var o=qp(a,i);this._ticket="";var s=a.dataByCoordSys,u=DP(a,n,i);if(u){var l=u.el.getBoundingRect().clone();l.applyTransform(u.el.transform),this._tryShow({offsetX:l.x+l.width/2,offsetY:l.y+l.height/2,target:u.el,position:a.position,positionDefault:"bottom"},o)}else if(a.tooltip&&a.x!=null&&a.y!=null){var f=wP;f.x=a.x,f.y=a.y,f.update(),ot(f).tooltipConfig={name:null,option:a.tooltip},this._tryShow({offsetX:a.x,offsetY:a.y,target:f},o)}else if(s)this._tryShow({offsetX:a.x,offsetY:a.y,position:a.position,dataByCoordSys:s,tooltipOption:a.tooltipOption},o);else if(a.seriesIndex!=null){if(this._manuallyAxisShowTip(e,n,i,a))return;var h=G_(a,n),c=h.point[0],v=h.point[1];c!=null&&v!=null&&this._tryShow({offsetX:c,offsetY:v,target:h.el,position:a.position,positionDefault:"bottom"},o)}else a.x!=null&&a.y!=null&&(i.dispatchAction({type:"updateAxisPointer",x:a.x,y:a.y}),this._tryShow({offsetX:a.x,offsetY:a.y,position:a.position,target:i.getZr().findHover(a.x,a.y).target},o))}},t.prototype.manuallyHideTip=function(e,n,i,a){var o=this._tooltipContent;this._tooltipModel&&o.hideLater(this._tooltipModel.get("hideDelay")),this._lastX=this._lastY=this._lastDataByCoordSys=null,a.from!==this.uid&&this._hide(qp(a,i))},t.prototype._manuallyAxisShowTip=function(e,n,i,a){var o=a.seriesIndex,s=a.dataIndex,u=n.getComponent("axisPointer").coordSysAxesInfo;if(!(o==null||s==null||u==null)){var l=n.getSeriesByIndex(o);if(!!l){var f=l.getData(),h=Fi([f.getItemModel(s),l,(l.coordinateSystem||{}).model],this._tooltipModel);if(h.get("trigger")==="axis")return i.dispatchAction({type:"updateAxisPointer",seriesIndex:o,dataIndex:s,position:a.position}),!0}}},t.prototype._tryShow=function(e,n){var i=e.target,a=this._tooltipModel;if(!!a){this._lastX=e.offsetX,this._lastY=e.offsetY;var o=e.dataByCoordSys;if(o&&o.length)this._showAxisTooltip(o,e);else if(i){var s=ot(i);if(s.ssrType==="legend")return;this._lastDataByCoordSys=null;var u,l;qi(i,function(f){if(ot(f).dataIndex!=null)return u=f,!0;if(ot(f).tooltipConfig!=null)return l=f,!0},!0),u?this._showSeriesItemTooltip(e,u,n):l?this._showComponentItemTooltip(e,l,n):this._hide(n)}else this._lastDataByCoordSys=null,this._hide(n)}},t.prototype._showOrMove=function(e,n){var i=e.get("showDelay");n=U(n,this),clearTimeout(this._showTimout),i>0?this._showTimout=setTimeout(n,i):n()},t.prototype._showAxisTooltip=function(e,n){var i=this._ecModel,a=this._tooltipModel,o=[n.offsetX,n.offsetY],s=Fi([n.tooltipOption],a),u=this._renderMode,l=[],f=_a("section",{blocks:[],noHeader:!0}),h=[],c=new Vu;M(e,function(m){M(m.dataByAxis,function(_){var S=i.getComponent(_.axisDim+"Axis",_.axisIndex),w=_.value;if(!(!S||w==null)){var x=N_(w,S.axis,i,_.seriesDataIndices,_.valueLabelOpt),b=_a("section",{header:x,noHeader:!Ie(x),sortBlocks:!0,blocks:[]});f.blocks.push(b),M(_.seriesDataIndices,function(C){var T=i.getSeriesByIndex(C.seriesIndex),D=C.dataIndexInside,A=T.getDataParams(D);if(!(A.dataIndex<0)){A.axisDim=_.axisDim,A.axisIndex=_.axisIndex,A.axisType=_.axisType,A.axisId=_.axisId,A.axisValue=Nh(S.axis,{value:w}),A.axisValueLabel=x,A.marker=c.makeTooltipMarker("item",vn(A.color),u);var L=Kc(T.formatTooltip(D,!0,null)),I=L.frag;if(I){var P=Fi([T],a).get("valueFormatter");b.blocks.push(P?k({valueFormatter:P},I):I)}L.text&&h.push(L.text),l.push(A)}})}})}),f.blocks.reverse(),h.reverse();var v=n.position,d=s.get("order"),p=rd(f,c,u,d,i.get("useUTC"),s.get("textStyle"));p&&h.unshift(p);var g=u==="richText"?` + +`:"
",y=h.join(g);this._showOrMove(s,function(){this._updateContentNotChangedOnAxis(e,l)?this._updatePosition(s,v,o[0],o[1],this._tooltipContent,l):this._showTooltipContent(s,y,l,Math.random()+"",o[0],o[1],v,null,c)})},t.prototype._showSeriesItemTooltip=function(e,n,i){var a=this._ecModel,o=ot(n),s=o.seriesIndex,u=a.getSeriesByIndex(s),l=o.dataModel||u,f=o.dataIndex,h=o.dataType,c=l.getData(h),v=this._renderMode,d=e.positionDefault,p=Fi([c.getItemModel(f),l,u&&(u.coordinateSystem||{}).model],this._tooltipModel,d?{position:d}:null),g=p.get("trigger");if(!(g!=null&&g!=="item")){var y=l.getDataParams(f,h),m=new Vu;y.marker=m.makeTooltipMarker("item",vn(y.color),v);var _=Kc(l.formatTooltip(f,!1,h)),S=p.get("order"),w=p.get("valueFormatter"),x=_.frag,b=x?rd(w?k({valueFormatter:w},x):x,m,v,S,a.get("useUTC"),p.get("textStyle")):_.text,C="item_"+l.name+"_"+f;this._showOrMove(p,function(){this._showTooltipContent(p,b,y,C,e.offsetX,e.offsetY,e.position,e.target,m)}),i({type:"showTip",dataIndexInside:f,dataIndex:c.getRawIndex(f),seriesIndex:s,from:this.uid})}},t.prototype._showComponentItemTooltip=function(e,n,i){var a=this._renderMode==="html",o=ot(n),s=o.tooltipConfig,u=s.option||{},l=u.encodeHTMLContent;if(G(u)){var f=u;u={content:f,formatter:f},l=!0}l&&a&&u.content&&(u=q(u),u.content=Yt(u.content));var h=[u],c=this._ecModel.getComponent(o.componentMainType,o.componentIndex);c&&h.push(c),h.push({formatter:u.content});var v=e.positionDefault,d=Fi(h,this._tooltipModel,v?{position:v}:null),p=d.get("content"),g=Math.random()+"",y=new Vu;this._showOrMove(d,function(){var m=q(d.get("formatterParams")||{});this._showTooltipContent(d,p,m,g,e.offsetX,e.offsetY,e.position,n,y)}),i({type:"showTip",from:this.uid})},t.prototype._showTooltipContent=function(e,n,i,a,o,s,u,l,f){if(this._ticket="",!(!e.get("showContent")||!e.get("show"))){var h=this._tooltipContent;h.setEnterable(e.get("enterable"));var c=e.get("formatter");u=u||e.get("position");var v=n,d=this._getNearestPoint([o,s],i,e.get("trigger"),e.get("borderColor")),p=d.color;if(c)if(G(c)){var g=e.ecModel.get("useUTC"),y=N(i)?i[0]:i,m=y&&y.axisType&&y.axisType.indexOf("time")>=0;v=c,m&&(v=Os(y.axisValue,v,g)),v=Mm(v,i,!0)}else if(Y(c)){var _=U(function(S,w){S===this._ticket&&(h.setContent(w,f,e,p,u),this._updatePosition(e,u,o,s,h,i,l))},this);this._ticket=a,v=c(i,a,_)}else v=c;h.setContent(v,f,e,p,u),h.show(e,p),this._updatePosition(e,u,o,s,h,i,l)}},t.prototype._getNearestPoint=function(e,n,i,a){if(i==="axis"||N(n))return{color:a||(this._renderMode==="html"?"#fff":"none")};if(!N(n))return{color:a||n.color||n.borderColor}},t.prototype._updatePosition=function(e,n,i,a,o,s,u){var l=this._api.getWidth(),f=this._api.getHeight();n=n||e.get("position");var h=o.getSize(),c=e.get("align"),v=e.get("verticalAlign"),d=u&&u.getBoundingRect().clone();if(u&&d.applyTransform(u.transform),Y(n)&&(n=n([i,a],s,o.el,d,{viewSize:[l,f],contentSize:h.slice()})),N(n))i=Ct(n[0],l),a=Ct(n[1],f);else if(V(n)){var p=n;p.width=h[0],p.height=h[1];var g=Tr(p,{width:l,height:f});i=g.x,a=g.y,c=null,v=null}else if(G(n)&&u){var y=MP(n,d,h,e.get("borderWidth"));i=y[0],a=y[1]}else{var y=TP(i,a,o,l,f,c?null:20,v?null:20);i=y[0],a=y[1]}if(c&&(i-=Kp(c)?h[0]/2:c==="right"?h[0]:0),v&&(a-=Kp(v)?h[1]/2:v==="bottom"?h[1]:0),q_(e)){var y=CP(i,a,o,l,f);i=y[0],a=y[1]}o.moveTo(i,a)},t.prototype._updateContentNotChangedOnAxis=function(e,n){var i=this._lastDataByCoordSys,a=this._cbParamsList,o=!!i&&i.length===e.length;return o&&M(i,function(s,u){var l=s.dataByAxis||[],f=e[u]||{},h=f.dataByAxis||[];o=o&&l.length===h.length,o&&M(l,function(c,v){var d=h[v]||{},p=c.seriesDataIndices||[],g=d.seriesDataIndices||[];o=o&&c.value===d.value&&c.axisType===d.axisType&&c.axisId===d.axisId&&p.length===g.length,o&&M(p,function(y,m){var _=g[m];o=o&&y.seriesIndex===_.seriesIndex&&y.dataIndex===_.dataIndex}),a&&M(c.seriesDataIndices,function(y){var m=y.seriesIndex,_=n[m],S=a[m];_&&S&&S.data!==_.data&&(o=!1)})})}),this._lastDataByCoordSys=e,this._cbParamsList=n,!!o},t.prototype._hide=function(e){this._lastDataByCoordSys=null,e({type:"hideTip",from:this.uid})},t.prototype.dispose=function(e,n){J.node||!n.getDom()||(as(this,"_updatePosition"),this._tooltipContent.dispose(),Pf("itemTooltip",n))},t.type="tooltip",t}(he);function Fi(r,t,e){var n=t.ecModel,i;e?(i=new At(e,n,n),i=new At(t.option,i,n)):i=t;for(var a=r.length-1;a>=0;a--){var o=r[a];o&&(o instanceof At&&(o=o.get("tooltip",!0)),G(o)&&(o={formatter:o}),o&&(i=new At(o,i,n)))}return i}function qp(r,t){return r.dispatchAction||U(t.dispatchAction,t)}function TP(r,t,e,n,i,a,o){var s=e.getSize(),u=s[0],l=s[1];return a!=null&&(r+u+a+2>n?r-=u+a:r+=a),o!=null&&(t+l+o>i?t-=l+o:t+=o),[r,t]}function CP(r,t,e,n,i){var a=e.getSize(),o=a[0],s=a[1];return r=Math.min(r+o,n)-o,t=Math.min(t+s,i)-s,r=Math.max(r,0),t=Math.max(t,0),[r,t]}function MP(r,t,e,n){var i=e[0],a=e[1],o=Math.ceil(Math.SQRT2*n)+8,s=0,u=0,l=t.width,f=t.height;switch(r){case"inside":s=t.x+l/2-i/2,u=t.y+f/2-a/2;break;case"top":s=t.x+l/2-i/2,u=t.y-a-o;break;case"bottom":s=t.x+l/2-i/2,u=t.y+f+o;break;case"left":s=t.x-i-o,u=t.y+f/2-a/2;break;case"right":s=t.x+l+o,u=t.y+f/2-a/2}return[s,u]}function Kp(r){return r==="center"||r==="middle"}function DP(r,t,e){var n=eh(r).queryOptionMap,i=n.keys()[0];if(!(!i||i==="series")){var a=Ra(t,i,n.get(i),{useDefault:!1,enableAll:!1,enableNone:!1}),o=a.models[0];if(!!o){var s=e.getViewOfComponentModel(o),u;if(s.group.traverse(function(l){var f=ot(l).tooltipConfig;if(f&&f.name===r.name)return u=l,!0}),u)return{componentMainType:i,componentIndex:o.componentIndex,el:u}}}}const AP=bP;function fE(r){Be(H_),r.registerComponentModel(uP),r.registerComponentView(AP),r.registerAction({type:"showTip",event:"showTip",update:"tooltip:manuallyShowTip"},Gt),r.registerAction({type:"hideTip",event:"hideTip",update:"tooltip:manuallyHideTip"},Gt)}var LP=function(r){O(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e.layoutMode={type:"box",ignoreSize:!0},e}return t.type="title",t.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"}},t}(vt),IP=function(r){O(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.render=function(e,n,i){if(this.group.removeAll(),!!e.get("show")){var a=this.group,o=e.getModel("textStyle"),s=e.getModel("subtextStyle"),u=e.get("textAlign"),l=Q(e.get("textBaseline"),e.get("textVerticalAlign")),f=new Dt({style:Je(o,{text:e.get("text"),fill:o.getTextColor()},{disableBox:!0}),z2:10}),h=f.getBoundingRect(),c=e.get("subtext"),v=new Dt({style:Je(s,{text:c,fill:s.getTextColor(),y:h.height+e.get("itemGap"),verticalAlign:"top"},{disableBox:!0}),z2:10}),d=e.get("link"),p=e.get("sublink"),g=e.get("triggerEvent",!0);f.silent=!d&&!g,v.silent=!p&&!g,d&&f.on("click",function(){Rc(d,"_"+e.get("target"))}),p&&v.on("click",function(){Rc(p,"_"+e.get("subtarget"))}),ot(f).eventData=ot(v).eventData=g?{componentType:"title",componentIndex:e.componentIndex}:null,a.add(f),c&&a.add(v);var y=a.getBoundingRect(),m=e.getBoxLayoutParams();m.width=y.width,m.height=y.height;var _=Tr(m,{width:i.getWidth(),height:i.getHeight()},e.get("padding"));u||(u=e.get("left")||e.get("right"),u==="middle"&&(u="center"),u==="right"?_.x+=_.width:u==="center"&&(_.x+=_.width/2)),l||(l=e.get("top")||e.get("bottom"),l==="center"&&(l="middle"),l==="bottom"?_.y+=_.height:l==="middle"&&(_.y+=_.height/2),l=l||"top"),a.x=_.x,a.y=_.y,a.markRedraw();var S={align:u,verticalAlign:l};f.setStyle(S),v.setStyle(S),y=a.getBoundingRect();var w=_.margin,x=e.getItemStyle(["color","opacity"]);x.fill=e.get("backgroundColor");var b=new yt({shape:{x:y.x-w[3],y:y.y-w[0],width:y.width+w[1]+w[3],height:y.height+w[0]+w[2],r:e.get("borderRadius")},style:x,subPixelOptimize:!0,silent:!0});a.add(b)}},t.type="title",t}(he);function hE(r){r.registerComponentModel(LP),r.registerComponentView(IP)}var PP=function(r,t){if(t==="all")return{type:"all",title:r.getLocaleModel().get(["legend","selector","all"])};if(t==="inverse")return{type:"inverse",title:r.getLocaleModel().get(["legend","selector","inverse"])}},RP=function(r){O(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e.layoutMode={type:"box",ignoreSize:!0},e}return t.prototype.init=function(e,n,i){this.mergeDefaultAndTheme(e,i),e.selected=e.selected||{},this._updateSelector(e)},t.prototype.mergeOption=function(e,n){r.prototype.mergeOption.call(this,e,n),this._updateSelector(e)},t.prototype._updateSelector=function(e){var n=e.selector,i=this.ecModel;n===!0&&(n=e.selector=["all","inverse"]),N(n)&&M(n,function(a,o){G(a)&&(a={type:a}),n[o]=j(a,PP(i,a.type))})},t.prototype.optionUpdated=function(){this._updateData(this.ecModel);var e=this._data;if(e[0]&&this.get("selectedMode")==="single"){for(var n=!1,i=0;i=0},t.prototype.getOrient=function(){return this.get("orient")==="vertical"?{index:1,name:"vertical"}:{index:0,name:"horizontal"}},t.type="legend.plain",t.dependencies=["series"],t.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}},t}(vt);const kf=RP;var On=ut,Bf=M,bo=bt,EP=function(r){O(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e.newlineDisabled=!1,e}return t.prototype.init=function(){this.group.add(this._contentGroup=new bo),this.group.add(this._selectorGroup=new bo),this._isFirstRender=!0},t.prototype.getContentGroup=function(){return this._contentGroup},t.prototype.getSelectorGroup=function(){return this._selectorGroup},t.prototype.render=function(e,n,i){var a=this._isFirstRender;if(this._isFirstRender=!1,this.resetInner(),!!e.get("show",!0)){var o=e.get("align"),s=e.get("orient");(!o||o==="auto")&&(o=e.get("left")==="right"&&s==="vertical"?"right":"left");var u=e.get("selector",!0),l=e.get("selectorPosition",!0);u&&(!l||l==="auto")&&(l=s==="horizontal"?"end":"start"),this.renderInner(o,e,n,i,u,s,l);var f=e.getBoxLayoutParams(),h={width:i.getWidth(),height:i.getHeight()},c=e.get("padding"),v=Tr(f,h,c),d=this.layoutInner(e,o,v,a,u,l),p=Tr(K({width:d.width,height:d.height},f),h,c);this.group.x=p.x-d.x,this.group.y=p.y-d.y,this.group.markRedraw(),this.group.add(this._backgroundEl=Y_(d,e))}},t.prototype.resetInner=function(){this.getContentGroup().removeAll(),this._backgroundEl&&this.group.remove(this._backgroundEl),this.getSelectorGroup().removeAll()},t.prototype.renderInner=function(e,n,i,a,o,s,u){var l=this.getContentGroup(),f=W(),h=n.get("selectedMode"),c=[];i.eachRawSeries(function(v){!v.get("legendHoverLink")&&c.push(v.id)}),Bf(n.getData(),function(v,d){var p=v.get("name");if(!this.newlineDisabled&&(p===""||p===` +`)){var g=new bo;g.newline=!0,l.add(g);return}var y=i.getSeriesByName(p)[0];if(!f.get(p))if(y){var m=y.getData(),_=m.getVisual("legendLineStyle")||{},S=m.getVisual("legendIcon"),w=m.getVisual("style"),x=this._createItem(y,p,d,v,n,e,_,w,S,h,a);x.on("click",On(Qp,p,null,a,c)).on("mouseover",On(Nf,y.name,null,a,c)).on("mouseout",On(Ff,y.name,null,a,c)),i.ssr&&x.eachChild(function(b){var C=ot(b);C.seriesIndex=y.seriesIndex,C.dataIndex=d,C.ssrType="legend"}),f.set(p,!0)}else i.eachRawSeries(function(b){if(!f.get(p)&&b.legendVisualProvider){var C=b.legendVisualProvider;if(!C.containName(p))return;var T=C.indexOfName(p),D=C.getItemVisual(T,"style"),A=C.getItemVisual(T,"legendIcon"),L=Xe(D.fill);L&&L[3]===0&&(L[3]=.2,D=k(k({},D),{fill:xs(L,"rgba")}));var I=this._createItem(b,p,d,v,n,e,{},D,A,h,a);I.on("click",On(Qp,null,p,a,c)).on("mouseover",On(Nf,null,p,a,c)).on("mouseout",On(Ff,null,p,a,c)),i.ssr&&I.eachChild(function(P){var R=ot(P);R.seriesIndex=b.seriesIndex,R.dataIndex=d,R.ssrType="legend"}),f.set(p,!0)}},this)},this),o&&this._createSelector(o,n,a,s,u)},t.prototype._createSelector=function(e,n,i,a,o){var s=this.getSelectorGroup();Bf(e,function(l){var f=l.type,h=new Dt({style:{x:0,y:0,align:"center",verticalAlign:"middle"},onclick:function(){i.dispatchAction({type:f==="all"?"legendAllSelect":"legendInverseSelect",legendId:n.id})}});s.add(h);var c=n.getModel("selectorLabel"),v=n.getModel(["emphasis","selectorLabel"]);dh(h,{normal:c,emphasis:v},{defaultText:l.title}),Jo(h)})},t.prototype._createItem=function(e,n,i,a,o,s,u,l,f,h,c){var v=e.visualDrawType,d=o.get("itemWidth"),p=o.get("itemHeight"),g=o.isSelected(n),y=a.get("symbolRotate"),m=a.get("symbolKeepAspect"),_=a.get("icon");f=_||f||"roundRect";var S=OP(f,a,u,l,v,g,c),w=new bo,x=a.getModel("textStyle");if(Y(e.getLegendIcon)&&(!_||_==="inherit"))w.add(e.getLegendIcon({itemWidth:d,itemHeight:p,icon:f,iconRotate:y,itemStyle:S.itemStyle,lineStyle:S.lineStyle,symbolKeepAspect:m}));else{var b=_==="inherit"&&e.getData().getVisual("symbol")?y==="inherit"?e.getData().getVisual("symbolRotate"):y:0;w.add(kP({itemWidth:d,itemHeight:p,icon:f,iconRotate:b,itemStyle:S.itemStyle,lineStyle:S.lineStyle,symbolKeepAspect:m}))}var C=s==="left"?d+5:-5,T=s,D=o.get("formatter"),A=n;G(D)&&D?A=D.replace("{name}",n!=null?n:""):Y(D)&&(A=D(n));var L=g?x.getTextColor():a.get("inactiveColor");w.add(new Dt({style:Je(x,{text:A,x:C,y:p/2,fill:L,align:T,verticalAlign:"middle"},{inheritColor:L})}));var I=new yt({shape:w.getBoundingRect(),style:{fill:"transparent"}}),P=a.getModel("tooltip");return P.get("show")&&ka({el:I,componentModel:o,itemName:n,itemTooltipOption:P.option}),w.add(I),w.eachChild(function(R){R.silent=!0}),I.silent=!h,this.getContentGroup().add(w),Jo(w),w.__legendDataIndex=i,w},t.prototype.layoutInner=function(e,n,i,a,o,s){var u=this.getContentGroup(),l=this.getSelectorGroup();ei(e.get("orient"),u,e.get("itemGap"),i.width,i.height);var f=u.getBoundingRect(),h=[-f.x,-f.y];if(l.markRedraw(),u.markRedraw(),o){ei("horizontal",l,e.get("selectorItemGap",!0));var c=l.getBoundingRect(),v=[-c.x,-c.y],d=e.get("selectorButtonGap",!0),p=e.getOrient().index,g=p===0?"width":"height",y=p===0?"height":"width",m=p===0?"y":"x";s==="end"?v[p]+=f[g]+d:h[p]+=c[g]+d,v[1-p]+=f[y]/2-c[y]/2,l.x=v[0],l.y=v[1],u.x=h[0],u.y=h[1];var _={x:0,y:0};return _[g]=f[g]+d+c[g],_[y]=Math.max(f[y],c[y]),_[m]=Math.min(0,c[m]+v[1-p]),_}else return u.x=h[0],u.y=h[1],this.group.getBoundingRect()},t.prototype.remove=function(){this.getContentGroup().removeAll(),this._isFirstRender=!0},t.type="legend.plain",t}(he);function OP(r,t,e,n,i,a,o){function s(g,y){g.lineWidth==="auto"&&(g.lineWidth=y.lineWidth>0?2:0),Bf(g,function(m,_){g[_]==="inherit"&&(g[_]=y[_])})}var u=t.getModel("itemStyle"),l=u.getItemStyle(),f=r.lastIndexOf("empty",0)===0?"fill":"stroke",h=u.getShallow("decal");l.decal=!h||h==="inherit"?n.decal:cf(h,o),l.fill==="inherit"&&(l.fill=n[i]),l.stroke==="inherit"&&(l.stroke=n[f]),l.opacity==="inherit"&&(l.opacity=(i==="fill"?n:e).opacity),s(l,n);var c=t.getModel("lineStyle"),v=c.getLineStyle();if(s(v,e),l.fill==="auto"&&(l.fill=n.fill),l.stroke==="auto"&&(l.stroke=n.fill),v.stroke==="auto"&&(v.stroke=n.fill),!a){var d=t.get("inactiveBorderWidth"),p=l[f];l.lineWidth=d==="auto"?n.lineWidth>0&&p?2:0:l.lineWidth,l.fill=t.get("inactiveColor"),l.stroke=t.get("inactiveBorderColor"),v.stroke=c.get("inactiveColor"),v.lineWidth=c.get("inactiveWidth")}return{itemStyle:l,lineStyle:v}}function kP(r){var t=r.icon||"roundRect",e=Cr(t,0,0,r.itemWidth,r.itemHeight,r.itemStyle.fill,r.symbolKeepAspect);return e.setStyle(r.itemStyle),e.rotation=(r.iconRotate||0)*Math.PI/180,e.setOrigin([r.itemWidth/2,r.itemHeight/2]),t.indexOf("empty")>-1&&(e.style.stroke=e.style.fill,e.style.fill="#fff",e.style.lineWidth=2),e}function Qp(r,t,e,n){Ff(r,t,e,n),e.dispatchAction({type:"legendToggleSelect",name:r!=null?r:t}),Nf(r,t,e,n)}function j_(r){for(var t=r.getZr().storage.getDisplayList(),e,n=0,i=t.length;ni[o],g=[-v.x,-v.y];n||(g[a]=f[l]);var y=[0,0],m=[-d.x,-d.y],_=Q(e.get("pageButtonGap",!0),e.get("itemGap",!0));if(p){var S=e.get("pageButtonPosition",!0);S==="end"?m[a]+=i[o]-d[o]:y[a]+=d[o]+_}m[1-a]+=v[s]/2-d[s]/2,f.setPosition(g),h.setPosition(y),c.setPosition(m);var w={x:0,y:0};if(w[o]=p?i[o]:v[o],w[s]=Math.max(v[s],d[s]),w[u]=Math.min(0,d[u]+m[1-a]),h.__rectSize=i[o],p){var x={x:0,y:0};x[o]=Math.max(i[o]-d[o]-_,0),x[s]=w[s],h.setClipPath(new yt({shape:x})),h.__rectSize=x[o]}else c.eachChild(function(C){C.attr({invisible:!0,silent:!0})});var b=this._getPageInfo(e);return b.pageIndex!=null&&xe(f,{x:b.contentPosition[0],y:b.contentPosition[1]},p?e:null),this._updatePageInfoView(e,b),w},t.prototype._pageGo=function(e,n,i){var a=this._getPageInfo(n)[e];a!=null&&i.dispatchAction({type:"legendScroll",scrollDataIndex:a,legendId:n.id})},t.prototype._updatePageInfoView=function(e,n){var i=this._controllerGroup;M(["pagePrev","pageNext"],function(f){var h=f+"DataIndex",c=n[h]!=null,v=i.childOfName(f);v&&(v.setStyle("fill",c?e.get("pageIconColor",!0):e.get("pageIconInactiveColor",!0)),v.cursor=c?"pointer":"default")});var a=i.childOfName("pageText"),o=e.get("pageFormatter"),s=n.pageIndex,u=s!=null?s+1:0,l=n.pageCount;a&&o&&a.setStyle("text",G(o)?o.replace("{current}",u==null?"":u+"").replace("{total}",l==null?"":l+""):o({current:u,total:l}))},t.prototype._getPageInfo=function(e){var n=e.get("scrollDataIndex",!0),i=this.getContentGroup(),a=this._containerGroup.__rectSize,o=e.getOrient().index,s=pl[o],u=gl[o],l=this._findTargetItemIndex(n),f=i.children(),h=f[l],c=f.length,v=c?1:0,d={contentPosition:[i.x,i.y],pageCount:v,pageIndex:v-1,pagePrevDataIndex:null,pageNextDataIndex:null};if(!h)return d;var p=S(h);d.contentPosition[o]=-p.s;for(var g=l+1,y=p,m=p,_=null;g<=c;++g)_=S(f[g]),(!_&&m.e>y.s+a||_&&!w(_,y.s))&&(m.i>y.i?y=m:y=_,y&&(d.pageNextDataIndex==null&&(d.pageNextDataIndex=y.i),++d.pageCount)),m=_;for(var g=l-1,y=p,m=p,_=null;g>=-1;--g)_=S(f[g]),(!_||!w(m,_.s))&&y.i=b&&x.s<=b+a}},t.prototype._findTargetItemIndex=function(e){if(!this._showController)return 0;var n,i=this.getContentGroup(),a;return i.eachChild(function(o,s){var u=o.__legendDataIndex;a==null&&u!=null&&(a=s),u===e&&(n=s)}),n!=null?n:a},t.type="legend.scroll",t}(t1);const HP=GP;function VP(r){r.registerAction("legendScroll","legendscroll",function(t,e){var n=t.scrollDataIndex;n!=null&&e.eachComponent({mainType:"legend",subType:"scroll",query:t},function(i){i.setScrollDataIndex(n)})})}function WP(r){Be(e1),r.registerComponentModel(zP),r.registerComponentView(HP),VP(r)}function vE(r){Be(e1),Be(WP)}var UP=function(r){O(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.type="dataZoom.inside",t.defaultOption=gh(Aa.defaultOption,{disabled:!1,zoomLock:!1,zoomOnMouseWheel:!0,moveOnMouseMove:!0,moveOnMouseWheel:!1,preventDefaultMouseMove:!0}),t}(Aa);const YP=UP;var tv=gt();function $P(r,t,e){tv(r).coordSysRecordMap.each(function(n){var i=n.dataZoomInfoMap.get(t.uid);i&&(i.getRange=e)})}function ZP(r,t){for(var e=tv(r).coordSysRecordMap,n=e.keys(),i=0;in[e+t]&&(t=s),i=i&&o.get("preventDefaultMouseMove",!0)}),{controlType:t,opt:{zoomOnMouseWheel:!0,moveOnMouseMove:!0,moveOnMouseWheel:!0,preventDefaultMouseMove:!!i}}}function JP(r){r.registerProcessor(r.PRIORITY.PROCESSOR.FILTER,function(t,e){var n=tv(e),i=n.coordSysRecordMap||(n.coordSysRecordMap=W());i.each(function(a){a.dataZoomInfoMap=null}),t.eachComponent({mainType:"dataZoom",subType:"inside"},function(a){var o=V_(a);M(o.infoList,function(s){var u=s.model.uid,l=i.get(u)||i.set(u,XP(e,s.model)),f=l.dataZoomInfoMap||(l.dataZoomInfoMap=W());f.set(a.uid,{dzReferCoordSysInfo:s,model:a,getRange:null})})}),i.each(function(a){var o=a.controller,s,u=a.dataZoomInfoMap;if(u){var l=u.keys()[0];l!=null&&(s=u.get(l))}if(!s){r1(i,a);return}var f=QP(u);o.enable(f.controlType,f.opt),o.setPointerChecker(a.containsPoint),Ws(a,"dispatchAction",s.model.get("throttle",!0),"fixRate")})})}var jP=function(r){O(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type="dataZoom.inside",e}return t.prototype.render=function(e,n,i){if(r.prototype.render.apply(this,arguments),e.noTarget()){this._clear();return}this.range=e.getPercentRange(),$P(i,e,{pan:U(yl.pan,this),zoom:U(yl.zoom,this),scrollMove:U(yl.scrollMove,this)})},t.prototype.dispose=function(){this._clear(),r.prototype.dispose.apply(this,arguments)},t.prototype._clear=function(){ZP(this.api,this.dataZoomModel),this.range=null},t.type="dataZoom.inside",t}(qh),yl={zoom:function(r,t,e,n){var i=this.range,a=i.slice(),o=r.axisModels[0];if(!!o){var s=ml[t](null,[n.originX,n.originY],o,e,r),u=(s.signal>0?s.pixelStart+s.pixelLength-s.pixel:s.pixel-s.pixelStart)/s.pixelLength*(a[1]-a[0])+a[0],l=Math.max(1/n.scale,0);a[0]=(a[0]-u)*l+u,a[1]=(a[1]-u)*l+u;var f=this.dataZoomModel.findRepresentativeAxisProxy().getMinMaxSpan();if(za(0,a,[0,100],0,f.minSpan,f.maxSpan),this.range=a,i[0]!==a[0]||i[1]!==a[1])return a}},pan:eg(function(r,t,e,n,i,a){var o=ml[n]([a.oldX,a.oldY],[a.newX,a.newY],t,i,e);return o.signal*(r[1]-r[0])*o.pixel/o.pixelLength}),scrollMove:eg(function(r,t,e,n,i,a){var o=ml[n]([0,0],[a.scrollDelta,a.scrollDelta],t,i,e);return o.signal*(r[1]-r[0])*a.scrollDelta})};function eg(r){return function(t,e,n,i){var a=this.range,o=a.slice(),s=t.axisModels[0];if(!!s){var u=r(o,s,t,e,n,i);if(za(u,o,[0,100],"all"),this.range=o,a[0]!==o[0]||a[1]!==o[1])return o}}}var ml={grid:function(r,t,e,n,i){var a=e.axis,o={},s=i.model.coordinateSystem.getRect();return r=r||[0,0],a.dim==="x"?(o.pixel=t[0]-r[0],o.pixelLength=s.width,o.pixelStart=s.x,o.signal=a.inverse?1:-1):(o.pixel=t[1]-r[1],o.pixelLength=s.height,o.pixelStart=s.y,o.signal=a.inverse?-1:1),o},polar:function(r,t,e,n,i){var a=e.axis,o={},s=i.model.coordinateSystem,u=s.getRadiusAxis().getExtent(),l=s.getAngleAxis().getExtent();return r=r?s.pointToCoord(r):[0,0],t=s.pointToCoord(t),e.mainType==="radiusAxis"?(o.pixel=t[0]-r[0],o.pixelLength=u[1]-u[0],o.pixelStart=u[0],o.signal=a.inverse?1:-1):(o.pixel=t[1]-r[1],o.pixelLength=l[1]-l[0],o.pixelStart=l[0],o.signal=a.inverse?-1:1),o},singleAxis:function(r,t,e,n,i){var a=e.axis,o=i.model.coordinateSystem.getRect(),s={};return r=r||[0,0],a.orient==="horizontal"?(s.pixel=t[0]-r[0],s.pixelLength=o.width,s.pixelStart=o.x,s.signal=a.inverse?1:-1):(s.pixel=t[1]-r[1],s.pixelLength=o.height,s.pixelStart=o.y,s.signal=a.inverse?-1:1),s}};const tR=jP;function eR(r){Kh(r),r.registerComponentModel(YP),r.registerComponentView(tR),JP(r)}var rR=function(r){O(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.type="dataZoom.slider",t.layoutMode="box",t.defaultOption=gh(Aa.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:{handleLabel:{show:!0},handleStyle:{borderColor:"#8FB0F7"},moveHandleStyle:{color:"#8FB0F7"}}}),t}(Aa);const nR=rR;var Gi=yt,rg=7,iR=1,_l=30,aR=7,Hi="horizontal",ng="vertical",oR=5,sR=["line","bar","candlestick","scatter"],uR={easing:"cubicOut",duration:100,delay:0},lR=function(r){O(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e._displayables={},e}return t.prototype.init=function(e,n){this.api=n,this._onBrush=U(this._onBrush,this),this._onBrushEnd=U(this._onBrushEnd,this)},t.prototype.render=function(e,n,i,a){if(r.prototype.render.apply(this,arguments),Ws(this,"_dispatchZoomAction",e.get("throttle"),"fixRate"),this._orient=e.getOrient(),e.get("show")===!1){this.group.removeAll();return}if(e.noTarget()){this._clear(),this.group.removeAll();return}(!a||a.type!=="dataZoom"||a.from!==this.uid)&&this._buildView(),this._updateView()},t.prototype.dispose=function(){this._clear(),r.prototype.dispose.apply(this,arguments)},t.prototype._clear=function(){as(this,"_dispatchZoomAction");var e=this.api.getZr();e.off("mousemove",this._onBrush),e.off("mouseup",this._onBrushEnd)},t.prototype._buildView=function(){var e=this.group;e.removeAll(),this._brushing=!1,this._displayables.brushRect=null,this._resetLocation(),this._resetInterval();var n=this._displayables.sliderGroup=new bt;this._renderBackground(),this._renderHandle(),this._renderDataShadow(),e.add(n),this._positionGroup()},t.prototype._resetLocation=function(){var e=this.dataZoomModel,n=this.api,i=e.get("brushSelect"),a=i?aR:0,o=this._findCoordRect(),s={width:n.getWidth(),height:n.getHeight()},u=this._orient===Hi?{right:s.width-o.x-o.width,top:s.height-_l-rg-a,width:o.width,height:_l}:{right:rg,top:o.y,width:_l,height:o.height},l=Na(e.option);M(["right","top","width","height"],function(h){l[h]==="ph"&&(l[h]=u[h])});var f=Tr(l,s);this._location={x:f.x,y:f.y},this._size=[f.width,f.height],this._orient===ng&&this._size.reverse()},t.prototype._positionGroup=function(){var e=this.group,n=this._location,i=this._orient,a=this.dataZoomModel.getFirstTargetAxisModel(),o=a&&a.get("inverse"),s=this._displayables.sliderGroup,u=(this._dataShadowInfo||{}).otherAxisInverse;s.attr(i===Hi&&!o?{scaleY:u?1:-1,scaleX:1}:i===Hi&&o?{scaleY:u?1:-1,scaleX:-1}:i===ng&&!o?{scaleY:u?-1:1,scaleX:1,rotation:Math.PI/2}:{scaleY:u?-1:1,scaleX:-1,rotation:Math.PI/2});var l=e.getBoundingRect([s]);e.x=n.x-l.x,e.y=n.y-l.y,e.markRedraw()},t.prototype._getViewExtent=function(){return[0,this._size[0]]},t.prototype._renderBackground=function(){var e=this.dataZoomModel,n=this._size,i=this._displayables.sliderGroup,a=e.get("brushSelect");i.add(new Gi({silent:!0,shape:{x:0,y:0,width:n[0],height:n[1]},style:{fill:e.get("backgroundColor")},z2:-40}));var o=new Gi({shape:{x:0,y:0,width:n[0],height:n[1]},style:{fill:"transparent"},z2:0,onclick:U(this._onClickPanel,this)}),s=this.api.getZr();a?(o.on("mousedown",this._onBrushStart,this),o.cursor="crosshair",s.on("mousemove",this._onBrush),s.on("mouseup",this._onBrushEnd)):(s.off("mousemove",this._onBrush),s.off("mouseup",this._onBrushEnd)),i.add(o)},t.prototype._renderDataShadow=function(){var e=this._dataShadowInfo=this._prepareDataShadowInfo();if(this._displayables.dataShadowSegs=[],!e)return;var n=this._size,i=this._shadowSize||[],a=e.series,o=a.getRawData(),s=a.getShadowDim&&a.getShadowDim(),u=s&&o.getDimensionInfo(s)?a.getShadowDim():e.otherDim;if(u==null)return;var l=this._shadowPolygonPts,f=this._shadowPolylinePts;if(o!==this._shadowData||u!==this._shadowDim||n[0]!==i[0]||n[1]!==i[1]){var h=o.getDataExtent(u),c=(h[1]-h[0])*.3;h=[h[0]-c,h[1]+c];var v=[0,n[1]],d=[0,n[0]],p=[[n[0],0],[0,0]],g=[],y=d[1]/(o.count()-1),m=0,_=Math.round(o.count()/n[0]),S;o.each([u],function(T,D){if(_>0&&D%_){m+=y;return}var A=T==null||isNaN(T)||T==="",L=A?0:Et(T,h,v,!0);A&&!S&&D?(p.push([p[p.length-1][0],0]),g.push([g[g.length-1][0],0])):!A&&S&&(p.push([m,0]),g.push([m,0])),p.push([m,L]),g.push([m,L]),m+=y,S=A}),l=this._shadowPolygonPts=p,f=this._shadowPolylinePts=g}this._shadowData=o,this._shadowDim=u,this._shadowSize=[n[0],n[1]];var w=this.dataZoomModel;function x(T){var D=w.getModel(T?"selectedDataBackground":"dataBackground"),A=new bt,L=new Ea({shape:{points:l},segmentIgnoreThreshold:1,style:D.getModel("areaStyle").getAreaStyle(),silent:!0,z2:-20}),I=new Oa({shape:{points:f},segmentIgnoreThreshold:1,style:D.getModel("lineStyle").getLineStyle(),silent:!0,z2:-19});return A.add(L),A.add(I),A}for(var b=0;b<3;b++){var C=x(b===1);this._displayables.sliderGroup.add(C),this._displayables.dataShadowSegs.push(C)}},t.prototype._prepareDataShadowInfo=function(){var e=this.dataZoomModel,n=e.get("showDataShadow");if(n!==!1){var i,a=this.ecModel;return e.eachTargetAxis(function(o,s){var u=e.getAxisProxy(o,s).getTargetSeriesModels();M(u,function(l){if(!i&&!(n!==!0&&tt(sR,l.get("type"))<0)){var f=a.getComponent(yr(o),s).axis,h=fR(o),c,v=l.coordinateSystem;h!=null&&v.getOtherAxis&&(c=v.getOtherAxis(f).inverse),h=l.getData().mapDimension(h),i={thisAxis:f,series:l,thisDim:o,otherDim:h,otherAxisInverse:c}}},this)},this),i}},t.prototype._renderHandle=function(){var e=this.group,n=this._displayables,i=n.handles=[null,null],a=n.handleLabels=[null,null],o=this._displayables.sliderGroup,s=this._size,u=this.dataZoomModel,l=this.api,f=u.get("borderRadius")||0,h=u.get("brushSelect"),c=n.filler=new Gi({silent:h,style:{fill:u.get("fillerColor")},textConfig:{position:"inside"}});o.add(c),o.add(new Gi({silent:!0,subPixelOptimize:!0,shape:{x:0,y:0,width:s[0],height:s[1],r:f},style:{stroke:u.get("dataBackgroundColor")||u.get("borderColor"),lineWidth:iR,fill:"rgba(0,0,0,0)"}})),M([0,1],function(_){var S=u.get("handleIcon");!ss[S]&&S.indexOf("path://")<0&&S.indexOf("image://")<0&&(S="path://"+S);var w=Cr(S,-1,0,2,2,null,!0);w.attr({cursor:ig(this._orient),draggable:!0,drift:U(this._onDragMove,this,_),ondragend:U(this._onDragEnd,this),onmouseover:U(this._showDataInfo,this,!0),onmouseout:U(this._showDataInfo,this,!1),z2:5});var x=w.getBoundingRect(),b=u.get("handleSize");this._handleHeight=Ct(b,this._size[1]),this._handleWidth=x.width/x.height*this._handleHeight,w.setStyle(u.getModel("handleStyle").getItemStyle()),w.style.strokeNoScale=!0,w.rectHover=!0,w.ensureState("emphasis").style=u.getModel(["emphasis","handleStyle"]).getItemStyle(),Jo(w);var C=u.get("handleColor");C!=null&&(w.style.fill=C),o.add(i[_]=w);var T=u.getModel("textStyle"),D=u.get("handleLabel")||{},A=D.show||!1;e.add(a[_]=new Dt({silent:!0,invisible:!A,style:Je(T,{x:0,y:0,text:"",verticalAlign:"middle",align:"center",fill:T.getTextColor(),font:T.getFont()}),z2:10}))},this);var v=c;if(h){var d=Ct(u.get("moveHandleSize"),s[1]),p=n.moveHandle=new yt({style:u.getModel("moveHandleStyle").getItemStyle(),silent:!0,shape:{r:[0,0,2,2],y:s[1]-.5,height:d}}),g=d*.8,y=n.moveHandleIcon=Cr(u.get("moveHandleIcon"),-g/2,-g/2,g,g,"#fff",!0);y.silent=!0,y.y=s[1]+d/2-.5,p.ensureState("emphasis").style=u.getModel(["emphasis","moveHandleStyle"]).getItemStyle();var m=Math.min(s[1]/2,Math.max(d,10));v=n.moveZone=new yt({invisible:!0,shape:{y:s[1]-m,height:d+m}}),v.on("mouseover",function(){l.enterEmphasis(p)}).on("mouseout",function(){l.leaveEmphasis(p)}),o.add(p),o.add(y),o.add(v)}v.attr({draggable:!0,cursor:ig(this._orient),drift:U(this._onDragMove,this,"all"),ondragstart:U(this._showDataInfo,this,!0),ondragend:U(this._onDragEnd,this),onmouseover:U(this._showDataInfo,this,!0),onmouseout:U(this._showDataInfo,this,!1)})},t.prototype._resetInterval=function(){var e=this._range=this.dataZoomModel.getPercentRange(),n=this._getViewExtent();this._handleEnds=[Et(e[0],[0,100],n,!0),Et(e[1],[0,100],n,!0)]},t.prototype._updateInterval=function(e,n){var i=this.dataZoomModel,a=this._handleEnds,o=this._getViewExtent(),s=i.findRepresentativeAxisProxy().getMinMaxSpan(),u=[0,100];za(n,a,o,i.get("zoomLock")?"all":e,s.minSpan!=null?Et(s.minSpan,u,o,!0):null,s.maxSpan!=null?Et(s.maxSpan,u,o,!0):null);var l=this._range,f=this._range=Yi([Et(a[0],o,u,!0),Et(a[1],o,u,!0)]);return!l||l[0]!==f[0]||l[1]!==f[1]},t.prototype._updateView=function(e){var n=this._displayables,i=this._handleEnds,a=Yi(i.slice()),o=this._size;M([0,1],function(v){var d=n.handles[v],p=this._handleHeight;d.attr({scaleX:p/2,scaleY:p/2,x:i[v]+(v?-1:1),y:o[1]/2-p/2})},this),n.filler.setShape({x:a[0],y:0,width:a[1]-a[0],height:o[1]});var s={x:a[0],width:a[1]-a[0]};n.moveHandle&&(n.moveHandle.setShape(s),n.moveZone.setShape(s),n.moveZone.getBoundingRect(),n.moveHandleIcon&&n.moveHandleIcon.attr("x",s.x+s.width/2));for(var u=n.dataShadowSegs,l=[0,a[0],a[1],o[0]],f=0;fn[0]||i[1]<0||i[1]>n[1])){var a=this._handleEnds,o=(a[0]+a[1])/2,s=this._updateInterval("all",i[0]-o);this._updateView(),s&&this._dispatchZoomAction(!1)}},t.prototype._onBrushStart=function(e){var n=e.offsetX,i=e.offsetY;this._brushStart=new Z(n,i),this._brushing=!0,this._brushStartTime=+new Date},t.prototype._onBrushEnd=function(e){if(!!this._brushing){var n=this._displayables.brushRect;if(this._brushing=!1,!!n){n.attr("ignore",!0);var i=n.shape,a=+new Date;if(!(a-this._brushStartTime<200&&Math.abs(i.width)<5)){var o=this._getViewExtent(),s=[0,100];this._range=Yi([Et(i.x,o,s,!0),Et(i.x+i.width,o,s,!0)]),this._handleEnds=[i.x,i.x+i.width],this._updateView(),this._dispatchZoomAction(!1)}}}},t.prototype._onBrush=function(e){this._brushing&&(ni(e.event),this._updateBrushRect(e.offsetX,e.offsetY))},t.prototype._updateBrushRect=function(e,n){var i=this._displayables,a=this.dataZoomModel,o=i.brushRect;o||(o=i.brushRect=new Gi({silent:!0,style:a.getModel("brushStyle").getItemStyle()}),i.sliderGroup.add(o)),o.attr("ignore",!1);var s=this._brushStart,u=this._displayables.sliderGroup,l=u.transformCoordToLocal(e,n),f=u.transformCoordToLocal(s.x,s.y),h=this._size;l[0]=Math.max(Math.min(h[0],l[0]),0),o.setShape({x:f[0],y:0,width:l[0]-f[0],height:h[1]})},t.prototype._dispatchZoomAction=function(e){var n=this._range;this.api.dispatchAction({type:"dataZoom",from:this.uid,dataZoomId:this.dataZoomModel.id,animation:e?uR:null,start:n[0],end:n[1]})},t.prototype._findCoordRect=function(){var e,n=V_(this.dataZoomModel).infoList;if(!e&&n.length){var i=n[0].model.coordinateSystem;e=i.getRect&&i.getRect()}if(!e){var a=this.api.getWidth(),o=this.api.getHeight();e={x:a*.2,y:o*.2,width:a*.6,height:o*.6}}return e},t.type="dataZoom.slider",t}(qh);function fR(r){var t={x:"y",y:"x",radius:"angle",angle:"radius"};return t[r]}function ig(r){return r==="vertical"?"ns-resize":"ew-resize"}const hR=lR;function vR(r){r.registerComponentModel(nR),r.registerComponentView(hR),Kh(r)}function cE(r){Be(eR),Be(vR)}var ag={value:"eq","<":"lt","<=":"lte",">":"gt",">=":"gte","=":"eq","!=":"ne","<>":"ne"},cR=function(){function r(t){var e=this._condVal=G(t)?new RegExp(t):M1(t)?t:null;if(e==null){var n="";it(n)}}return r.prototype.evaluate=function(t){var e=typeof t;return G(e)?this._condVal.test(t):ct(e)?this._condVal.test(t+""):!1},r}(),dR=function(){function r(){}return r.prototype.evaluate=function(){return this.value},r}(),pR=function(){function r(){}return r.prototype.evaluate=function(){for(var t=this.children,e=0;e2&&n.push(i),i=[I,P]}function f(I,P,R,E){$n(I,R)&&$n(P,E)||i.push(I,P,R,E,R,E)}function h(I,P,R,E,H,B){var F=Math.abs(P-I),$=Math.tan(F/4)*4/3,et=PC:A2&&n.push(i),n}function Gf(r,t,e,n,i,a,o,s,u,l){if($n(r,e)&&$n(t,n)&&$n(i,o)&&$n(a,s)){u.push(o,s);return}var f=2/l,h=f*f,c=o-r,v=s-t,d=Math.sqrt(c*c+v*v);c/=d,v/=d;var p=e-r,g=n-t,y=i-o,m=a-s,_=p*p+g*g,S=y*y+m*m;if(_=0&&C=0){u.push(o,s);return}var T=[],D=[];wr(r,e,i,o,.5,T),wr(t,n,a,s,.5,D),Gf(T[0],D[0],T[1],D[1],T[2],D[2],T[3],D[3],u,l),Gf(T[4],D[4],T[5],D[5],T[6],D[6],T[7],D[7],u,l)}function DR(r,t){var e=zf(r),n=[];t=t||1;for(var i=0;i0)for(var l=0;lMath.abs(l),h=i1([u,l],f?0:1,t),c=(f?s:l)/h.length,v=0;vi,o=i1([n,i],a?0:1,t),s=a?"width":"height",u=a?"height":"width",l=a?"x":"y",f=a?"y":"x",h=r[s]/o.length,c=0;c1?null:new Z(p*u+r,p*l+t)}function IR(r,t,e){var n=new Z;Z.sub(n,e,t),n.normalize();var i=new Z;Z.sub(i,r,t);var a=i.dot(n);return a}function kn(r,t){var e=r[r.length-1];e&&e[0]===t[0]&&e[1]===t[1]||r.push(t)}function PR(r,t,e){for(var n=r.length,i=[],a=0;ao?(l.x=f.x=s+a/2,l.y=u,f.y=u+o):(l.y=f.y=u+o/2,l.x=s,f.x=s+a),PR(t,l,f)}function cs(r,t,e,n){if(e===1)n.push(t);else{var i=Math.floor(e/2),a=r(t);cs(r,a[0],i,n),cs(r,a[1],e-i,n)}return n}function RR(r,t){for(var e=[],n=0;n0)for(var w=n/e,x=-n/2;x<=n/2;x+=w){for(var b=Math.sin(x),C=Math.cos(x),T=0,_=0;_0;l/=2){var f=0,h=0;(r&l)>0&&(f=1),(t&l)>0&&(h=1),s+=l*l*(3*f^h),h===0&&(f===1&&(r=l-1-r,t=l-1-t),u=r,r=t,t=u)}return s}function gs(r){var t=1/0,e=1/0,n=-1/0,i=-1/0,a=z(r,function(s){var u=s.getBoundingRect(),l=s.getComputedTransform(),f=u.x+u.width/2+(l?l[4]:0),h=u.y+u.height/2+(l?l[5]:0);return t=Math.min(f,t),e=Math.min(h,e),n=Math.max(f,n),i=Math.max(h,i),[f,h]}),o=z(a,function(s,u){return{cp:s,z:HR(s[0],s[1],t,e,n,i),path:r[u]}});return o.sort(function(s,u){return s.z-u.z}).map(function(s){return s.path})}function s1(r){return kR(r.path,r.count)}function Hf(){return{fromIndividuals:[],toIndividuals:[],count:0}}function VR(r,t,e){var n=[];function i(w){for(var x=0;x=0;i--)if(!e[i].many.length){var u=e[s].many;if(u.length<=1)if(s)s=0;else return e;var a=u.length,l=Math.ceil(a/2);e[i].many=u.slice(l,a),e[s].many=u.slice(0,l),s++}return e}var UR={clone:function(r){for(var t=[],e=1-Math.pow(1-r.path.style.opacity,1/r.count),n=0;n0))return;var s=n.getModel("universalTransition").get("delay"),u=Object.assign({setToFinal:!0},o),l,f;cg(r)&&(l=r,f=t),cg(t)&&(l=t,f=r);function h(y,m,_,S,w){var x=y.many,b=y.one;if(x.length===1&&!w){var C=m?x[0]:b,T=m?b:x[0];if(ds(C))h({many:[C],one:T},!0,_,S,!0);else{var D=s?K({delay:s(_,S)},u):u;rv(C,T,D),a(C,T,C,T,D)}}else for(var A=K({dividePath:UR[e],individualDelay:s&&function(H,B,F,$){return s(H+_,S)}},u),L=m?VR(x,b,A):WR(b,x,A),I=L.fromIndividuals,P=L.toIndividuals,R=I.length,E=0;Et.length,v=l?dg(f,l):dg(c?t:r,[c?r:t]),d=0,p=0;pu1))for(var a=n.getIndices(),o=0;o0&&x.group.traverse(function(C){C instanceof at&&!C.animators.length&&C.animateFrom({style:{opacity:0}},b)})})}function _g(r){var t=r.getModel("universalTransition").get("seriesKey");return t||r.id}function Sg(r){return N(r)?r.sort().join(","):r}function dr(r){if(r.hostModel)return r.hostModel.getModel("universalTransition").get("divideShape")}function QR(r,t){var e=W(),n=W(),i=W();return M(r.oldSeries,function(a,o){var s=r.oldDataGroupIds[o],u=r.oldData[o],l=_g(a),f=Sg(l);n.set(f,{dataGroupId:s,data:u}),N(l)&&M(l,function(h){i.set(h,{key:f,dataGroupId:s,data:u})})}),M(t.updatedSeries,function(a){if(a.isUniversalTransitionEnabled()&&a.isAnimationEnabled()){var o=a.get("dataGroupId"),s=a.getData(),u=_g(a),l=Sg(u),f=n.get(l);if(f)e.set(l,{oldSeries:[{dataGroupId:f.dataGroupId,divide:dr(f.data),data:f.data}],newSeries:[{dataGroupId:o,divide:dr(s),data:s}]});else if(N(u)){var h=[];M(u,function(d){var p=n.get(d);p.data&&h.push({dataGroupId:p.dataGroupId,divide:dr(p.data),data:p.data})}),h.length&&e.set(l,{oldSeries:h,newSeries:[{dataGroupId:o,data:s,divide:dr(s)}]})}else{var c=i.get(u);if(c){var v=e.get(c.key);v||(v={oldSeries:[{dataGroupId:c.dataGroupId,data:c.data,divide:dr(c.data)}],newSeries:[]},e.set(c.key,v)),v.newSeries.push({dataGroupId:o,data:s,divide:dr(s)})}}}}),e}function xg(r,t){for(var e=0;e=0&&i.push({dataGroupId:t.oldDataGroupIds[s],data:t.oldData[s],divide:dr(t.oldData[s]),groupIdDim:o.dimension})}),M(St(r.to),function(o){var s=xg(e.updatedSeries,o);if(s>=0){var u=e.updatedSeries[s].getData();a.push({dataGroupId:t.oldDataGroupIds[s],data:u,divide:dr(u),groupIdDim:o.dimension})}}),i.length>0&&a.length>0&&l1(i,a,n)}function gE(r){r.registerUpdateLifecycle("series:beforeupdate",function(t,e,n){M(St(n.seriesTransition),function(i){M(St(i.to),function(a){for(var o=n.updatedSeries,s=0;s=s)}}for(var h=this.__startIndex;h15)break}}P.prevElClipPaths&&y.restore()};if(m)if(m.length===0)C=g.__endIndex;else for(var D=v.dpr,A=0;A0&&t>i[0]){for(u=0;ut);u++);s=n[i[u]]}if(i.splice(u+1,0,t),n[t]=e,!e.virtual)if(s){var l=s.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)}},r.prototype.eachLayer=function(t,e){for(var n=this._zlevelList,i=0;i0?To:0),this._needsManuallyCompositing),f.__builtin__||Yf("ZLevel "+l+" has been used by unkown layer "+f.id),f!==a&&(f.__used=!0,f.__startIndex!==u&&(f.__dirty=!0),f.__startIndex=u,f.incremental?f.__drawIndex=-1:f.__drawIndex=u,e(u),a=f),i.__dirty&jt&&!i.__inHover&&(f.__dirty=!0,f.incremental&&f.__drawIndex<0&&(f.__drawIndex=u))}e(u),this.eachBuiltinLayer(function(h,c){!h.__used&&h.getElementCount()>0&&(h.__dirty=!0,h.__startIndex=h.__endIndex=h.__drawIndex=0),h.__dirty&&h.__drawIndex<0&&(h.__drawIndex=h.__startIndex)})},r.prototype.clear=function(){return this.eachBuiltinLayer(this._clearLayer),this},r.prototype._clearLayer=function(t){t.clear()},r.prototype.setBackgroundColor=function(t){this._backgroundColor=t,M(this._layers,function(e){e.setUnpainted()})},r.prototype.configLayer=function(t,e){if(e){var n=this._layerConfig;n[t]?j(n[t],e,!0):n[t]=e;for(var i=0;i{s&&s.resize()})}export{p as c,v as e,h as m}; +import{u as l,i as e,a as c,b as o,c as f,d as u,e as r,f as $,g as b,h as m,j as d,k as j,l as O,m as g}from"./echarts.7a5d4174.js";function h(n,t){for(const s of Object.keys(t))t[s]instanceof Object&&Object.assign(t[s],h(n[s],t[s]));return Object.assign(n||{},t),n}function p(n){let t=n.concat();for(let s=0;s{s&&s.resize()})}export{p as c,v as e,h as m}; diff --git a/static/assets/index.8a9f494f.js b/static/assets/index.8a9f494f.js deleted file mode 100644 index 9c45241..0000000 --- a/static/assets/index.8a9f494f.js +++ /dev/null @@ -1,31 +0,0 @@ -var oe=typeof globalThis<"u"&&globalThis||typeof self<"u"&&self||typeof oe<"u"&&oe,ue={searchParams:"URLSearchParams"in oe,iterable:"Symbol"in oe&&"iterator"in Symbol,blob:"FileReader"in oe&&"Blob"in oe&&function(){try{return new Blob,!0}catch{return!1}}(),formData:"FormData"in oe,arrayBuffer:"ArrayBuffer"in oe};function dl(e){return e&&DataView.prototype.isPrototypeOf(e)}if(ue.arrayBuffer)var hl=["[object Int8Array]","[object Uint8Array]","[object Uint8ClampedArray]","[object Int16Array]","[object Uint16Array]","[object Int32Array]","[object Uint32Array]","[object Float32Array]","[object Float64Array]"],pl=ArrayBuffer.isView||function(e){return e&&hl.indexOf(Object.prototype.toString.call(e))>-1};function tn(e){if(typeof e!="string"&&(e=String(e)),/[^a-z0-9\-#$%&'*+.^_`|~!]/i.test(e)||e==="")throw new TypeError('Invalid character in header field name: "'+e+'"');return e.toLowerCase()}function si(e){return typeof e!="string"&&(e=String(e)),e}function oi(e){var t={next:function(){var n=e.shift();return{done:n===void 0,value:n}}};return ue.iterable&&(t[Symbol.iterator]=function(){return t}),t}function Z(e){this.map={},e instanceof Z?e.forEach(function(t,n){this.append(n,t)},this):Array.isArray(e)?e.forEach(function(t){this.append(t[0],t[1])},this):e&&Object.getOwnPropertyNames(e).forEach(function(t){this.append(t,e[t])},this)}Z.prototype.append=function(e,t){e=tn(e),t=si(t);var n=this.map[e];this.map[e]=n?n+", "+t:t};Z.prototype.delete=function(e){delete this.map[tn(e)]};Z.prototype.get=function(e){return e=tn(e),this.has(e)?this.map[e]:null};Z.prototype.has=function(e){return this.map.hasOwnProperty(tn(e))};Z.prototype.set=function(e,t){this.map[tn(e)]=si(t)};Z.prototype.forEach=function(e,t){for(var n in this.map)this.map.hasOwnProperty(n)&&e.call(t,this.map[n],n,this)};Z.prototype.keys=function(){var e=[];return this.forEach(function(t,n){e.push(n)}),oi(e)};Z.prototype.values=function(){var e=[];return this.forEach(function(t){e.push(t)}),oi(e)};Z.prototype.entries=function(){var e=[];return this.forEach(function(t,n){e.push([n,t])}),oi(e)};ue.iterable&&(Z.prototype[Symbol.iterator]=Z.prototype.entries);function hr(e){if(e.bodyUsed)return Promise.reject(new TypeError("Already read"));e.bodyUsed=!0}function lo(e){return new Promise(function(t,n){e.onload=function(){t(e.result)},e.onerror=function(){n(e.error)}})}function _l(e){var t=new FileReader,n=lo(t);return t.readAsArrayBuffer(e),n}function ml(e){var t=new FileReader,n=lo(t);return t.readAsText(e),n}function gl(e){for(var t=new Uint8Array(e),n=new Array(t.length),r=0;r-1?t:e}function ct(e,t){if(!(this instanceof ct))throw new TypeError('Please use the "new" operator, this DOM object constructor cannot be called as a function.');t=t||{};var n=t.body;if(e instanceof ct){if(e.bodyUsed)throw new TypeError("Already read");this.url=e.url,this.credentials=e.credentials,t.headers||(this.headers=new Z(e.headers)),this.method=e.method,this.mode=e.mode,this.signal=e.signal,!n&&e._bodyInit!=null&&(n=e._bodyInit,e.bodyUsed=!0)}else this.url=String(e);if(this.credentials=t.credentials||this.credentials||"same-origin",(t.headers||!this.headers)&&(this.headers=new Z(t.headers)),this.method=yl(t.method||this.method||"GET"),this.mode=t.mode||this.mode||null,this.signal=t.signal||this.signal,this.referrer=null,(this.method==="GET"||this.method==="HEAD")&&n)throw new TypeError("Body not allowed for GET or HEAD requests");if(this._initBody(n),(this.method==="GET"||this.method==="HEAD")&&(t.cache==="no-store"||t.cache==="no-cache")){var r=/([?&])_=[^&]*/;if(r.test(this.url))this.url=this.url.replace(r,"$1_="+new Date().getTime());else{var i=/\?/;this.url+=(i.test(this.url)?"&":"?")+"_="+new Date().getTime()}}}ct.prototype.clone=function(){return new ct(this,{body:this._bodyInit})};function bl(e){var t=new FormData;return e.trim().split("&").forEach(function(n){if(n){var r=n.split("="),i=r.shift().replace(/\+/g," "),o=r.join("=").replace(/\+/g," ");t.append(decodeURIComponent(i),decodeURIComponent(o))}}),t}function El(e){var t=new Z,n=e.replace(/\r?\n[\t ]+/g," ");return n.split("\r").map(function(r){return r.indexOf(` -`)===0?r.substr(1,r.length):r}).forEach(function(r){var i=r.split(":"),o=i.shift().trim();if(o){var a=i.join(":").trim();t.append(o,a)}}),t}uo.call(ct.prototype);function De(e,t){if(!(this instanceof De))throw new TypeError('Please use the "new" operator, this DOM object constructor cannot be called as a function.');t||(t={}),this.type="default",this.status=t.status===void 0?200:t.status,this.ok=this.status>=200&&this.status<300,this.statusText=t.statusText===void 0?"":""+t.statusText,this.headers=new Z(t.headers),this.url=t.url||"",this._initBody(e)}uo.call(De.prototype);De.prototype.clone=function(){return new De(this._bodyInit,{status:this.status,statusText:this.statusText,headers:new Z(this.headers),url:this.url})};De.error=function(){var e=new De(null,{status:0,statusText:""});return e.type="error",e};var wl=[301,302,303,307,308];De.redirect=function(e,t){if(wl.indexOf(t)===-1)throw new RangeError("Invalid status code");return new De(null,{status:t,headers:{location:e}})};var tt=oe.DOMException;try{new tt}catch{tt=function(t,n){this.message=t,this.name=n;var r=Error(t);this.stack=r.stack},tt.prototype=Object.create(Error.prototype),tt.prototype.constructor=tt}function fo(e,t){return new Promise(function(n,r){var i=new ct(e,t);if(i.signal&&i.signal.aborted)return r(new tt("Aborted","AbortError"));var o=new XMLHttpRequest;function a(){o.abort()}o.onload=function(){var f={status:o.status,statusText:o.statusText,headers:El(o.getAllResponseHeaders()||"")};f.url="responseURL"in o?o.responseURL:f.headers.get("X-Request-URL");var d="response"in o?o.response:o.responseText;setTimeout(function(){n(new De(d,f))},0)},o.onerror=function(){setTimeout(function(){r(new TypeError("Network request failed"))},0)},o.ontimeout=function(){setTimeout(function(){r(new TypeError("Network request failed"))},0)},o.onabort=function(){setTimeout(function(){r(new tt("Aborted","AbortError"))},0)};function u(f){try{return f===""&&oe.location.href?oe.location.href:f}catch{return f}}o.open(i.method,u(i.url),!0),i.credentials==="include"?o.withCredentials=!0:i.credentials==="omit"&&(o.withCredentials=!1),"responseType"in o&&(ue.blob?o.responseType="blob":ue.arrayBuffer&&i.headers.get("Content-Type")&&i.headers.get("Content-Type").indexOf("application/octet-stream")!==-1&&(o.responseType="arraybuffer")),t&&typeof t.headers=="object"&&!(t.headers instanceof Z)?Object.getOwnPropertyNames(t.headers).forEach(function(f){o.setRequestHeader(f,si(t.headers[f]))}):i.headers.forEach(function(f,d){o.setRequestHeader(d,f)}),i.signal&&(i.signal.addEventListener("abort",a),o.onreadystatechange=function(){o.readyState===4&&i.signal.removeEventListener("abort",a)}),o.send(typeof i._bodyInit>"u"?null:i._bodyInit)})}fo.polyfill=!0;oe.fetch||(oe.fetch=fo,oe.Headers=Z,oe.Request=ct,oe.Response=De);const X={urlRoot:"",csrfNonce:"",userMode:"",userName:"",userEmail:"",start:null,end:null,themeSettings:{},eventSounds:["/themes/core/static/sounds/notification.webm","/themes/core/static/sounds/notification.mp3"]},Al=window.fetch,Tl=(e,t)=>(t===void 0&&(t={method:"GET",credentials:"same-origin",headers:{}}),e=X.urlRoot+e,t.headers===void 0&&(t.headers={}),t.credentials="same-origin",t.headers.Accept="application/json",t.headers["Content-Type"]="application/json",t.headers["CSRF-Token"]=X.csrfNonce,Al(e,t));var we=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},ho={exports:{}};(function(e,t){(function(n,r){e.exports=r()})(we,function(){var n=1e3,r=6e4,i=36e5,o="millisecond",a="second",u="minute",f="hour",d="day",g="week",s="month",c="quarter",l="year",h="date",_="Invalid Date",p=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,m=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,E={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function(A){var b=["th","st","nd","rd"],v=A%100;return"["+A+(b[(v-20)%10]||b[v]||b[0])+"]"}},O=function(A,b,v){var T=String(A);return!T||T.length>=b?A:""+Array(b+1-T.length).join(v)+A},D={s:O,z:function(A){var b=-A.utcOffset(),v=Math.abs(b),T=Math.floor(v/60),y=v%60;return(b<=0?"+":"-")+O(T,2,"0")+":"+O(y,2,"0")},m:function A(b,v){if(b.date()1)return A(S[0])}else{var k=b.name;I[k]=b,y=k}return!T&&y&&(L=y),y||!T&&L},$=function(A,b){if(F(A))return A.clone();var v=typeof b=="object"?b:{};return v.date=A,v.args=arguments,new Y(v)},N=D;N.l=j,N.i=F,N.w=function(A,b){return $(A,{locale:b.$L,utc:b.$u,x:b.$x,$offset:b.$offset})};var Y=function(){function A(v){this.$L=j(v.locale,null,!0),this.parse(v)}var b=A.prototype;return b.parse=function(v){this.$d=function(T){var y=T.date,x=T.utc;if(y===null)return new Date(NaN);if(N.u(y))return new Date;if(y instanceof Date)return new Date(y);if(typeof y=="string"&&!/Z$/i.test(y)){var S=y.match(p);if(S){var k=S[2]-1||0,B=(S[7]||"0").substring(0,3);return x?new Date(Date.UTC(S[1],k,S[3]||1,S[4]||0,S[5]||0,S[6]||0,B)):new Date(S[1],k,S[3]||1,S[4]||0,S[5]||0,S[6]||0,B)}}return new Date(y)}(v),this.$x=v.x||{},this.init()},b.init=function(){var v=this.$d;this.$y=v.getFullYear(),this.$M=v.getMonth(),this.$D=v.getDate(),this.$W=v.getDay(),this.$H=v.getHours(),this.$m=v.getMinutes(),this.$s=v.getSeconds(),this.$ms=v.getMilliseconds()},b.$utils=function(){return N},b.isValid=function(){return this.$d.toString()!==_},b.isSame=function(v,T){var y=$(v);return this.startOf(T)<=y&&y<=this.endOf(T)},b.isAfter=function(v,T){return $(v)/,Ml=/^\w+$/;function li(e,t){const n=Ll(t);return!e||!n&&!xt(t)&&!ne(t)?[]:!n&&Dl.test(e)?t.getElementsByClassName(e.slice(1).replace(/\\/g,"")):!n&&Ml.test(e)?t.getElementsByTagName(e):t.querySelectorAll(e)}class Vn{constructor(t,n){if(!t)return;if(Pr(t))return t;let r=t;if(de(t)){const i=(Pr(n)?n[0]:n)||Pe;if(r=Cl.test(t)&&"getElementById"in i?i.getElementById(t.slice(1).replace(/\\/g,"")):Nl.test(t)?To(t):li(t,i),!r)return}else if(pt(t))return this.ready(t);(r.nodeType||r===Cn)&&(r=[r]),this.length=r.length;for(let i=0,o=this.length;i{for(;t.firstChild;)t.removeChild(t.firstChild)})};function Dn(...e){const t=kl(e[0])?e.shift():!1,n=e.shift(),r=e.length;if(!n)return{};if(!r)return Dn(t,H,n);for(let i=0;i{!ne(o)||ie(n,(a,u)=>{r?t?o.classList.add(u):o.classList.remove(u):o.classList.toggle(u)})})};C.addClass=function(e){return this.toggleClass(e,!0)};C.removeAttr=function(e){const t=jn(e);return this.each((n,r)=>{!ne(r)||ie(t,(i,o)=>{r.removeAttribute(o)})})};function Rl(e,t){if(!!e){if(de(e)){if(arguments.length<2){if(!this[0]||!ne(this[0]))return;const n=this[0].getAttribute(e);return Zt(n)?void 0:n}return he(t)?this:Zt(t)?this.removeAttr(e):this.each((n,r)=>{!ne(r)||r.setAttribute(e,t)})}for(const n in e)this.attr(n,e[n]);return this}}C.attr=Rl;C.removeClass=function(e){return arguments.length?this.toggleClass(e,!1):this.attr("class","")};C.hasClass=function(e){return!!e&&ci.call(this,t=>ne(t)&&t.classList.contains(e))};C.get=function(e){return he(e)?Eo.call(this):(e=Number(e),this[e<0?e+this.length:e])};C.eq=function(e){return H(this.get(e))};C.first=function(){return this.eq(0)};C.last=function(){return this.eq(-1)};function Hl(e){return he(e)?this.get().map(t=>ne(t)||Il(t)?t.textContent:"").join(""):this.each((t,n)=>{!ne(n)||(n.textContent=e)})}C.text=Hl;function Re(e,t,n){if(!ne(e))return;const r=Cn.getComputedStyle(e,null);return n?r.getPropertyValue(t)||void 0:r[t]||e.style[t]}function xe(e,t){return parseInt(Re(e,t),10)||0}function ds(e,t){return xe(e,`border${t?"Left":"Top"}Width`)+xe(e,`padding${t?"Left":"Top"}`)+xe(e,`padding${t?"Right":"Bottom"}`)+xe(e,`border${t?"Right":"Bottom"}Width`)}const _r={};function Bl(e){if(_r[e])return _r[e];const t=ht(e);Pe.body.insertBefore(t,null);const n=Re(t,"display");return Pe.body.removeChild(t),_r[e]=n!=="none"?n:"block"}function hs(e){return Re(e,"display")==="none"}function Ao(e,t){const n=e&&(e.matches||e.webkitMatchesSelector||e.msMatchesSelector);return!!n&&!!t&&n.call(e,t)}function Wn(e){return de(e)?(t,n)=>Ao(n,e):pt(e)?e:Pr(e)?(t,n)=>e.is(n):e?(t,n)=>n===e:()=>!1}C.filter=function(e){const t=Wn(e);return H(ai.call(this,(n,r)=>t.call(n,r,n)))};function qe(e,t){return t?e.filter(t):e}C.detach=function(e){return qe(this,e).each((t,n)=>{n.parentNode&&n.parentNode.removeChild(n)}),this};const Fl=/^\s*<(\w+)[^>]*>/,Vl=/^<(\w+)\s*\/?>(?:<\/\1>)?$/,ps={"*":go,tr:Sl,td:fs,th:fs,thead:pr,tbody:pr,tfoot:pr};function To(e){if(!de(e))return[];if(Vl.test(e))return[ht(RegExp.$1)];const t=Fl.test(e)&&RegExp.$1,n=ps[t]||ps["*"];return n.innerHTML=e,H(n.childNodes).detach().get()}H.parseHTML=To;C.has=function(e){const t=de(e)?(n,r)=>li(e,r).length:(n,r)=>r.contains(e);return this.filter(t)};C.not=function(e){const t=Wn(e);return this.filter((n,r)=>(!de(e)||ne(r))&&!t.call(r,n,r))};function Be(e,t,n,r){const i=[],o=pt(t),a=r&&Wn(r);for(let u=0,f=e.length;ut.selected&&!t.disabled&&!t.parentNode.disabled),"value"):e.value||""}function jl(e){return arguments.length?this.each((t,n)=>{const r=n.multiple&&n.options;if(r||Lo.test(n.type)){const i=Fn(e)?bo.call(e,String):Zt(e)?[]:[String(e)];r?ie(n.options,(o,a)=>{a.selected=i.indexOf(a.value)>=0},!0):n.checked=i.indexOf(n.value)>=0}else n.value=he(e)||Zt(e)?"":e}):this[0]&&So(this[0])}C.val=jl;C.is=function(e){const t=Wn(e);return ci.call(this,(n,r)=>t.call(n,r,n))};H.guid=1;function Me(e){return e.length>1?ai.call(e,(t,n,r)=>yo.call(r,t)===n):e}H.unique=Me;C.add=function(e,t){return H(Me(this.get().concat(H(e,t).get())))};C.children=function(e){return qe(H(Me(Be(this,t=>t.children))),e)};C.parent=function(e){return qe(H(Me(Be(this,"parentNode"))),e)};C.index=function(e){const t=e?H(e)[0]:this[0],n=e?this:H(t).parent().children();return yo.call(n,t)};C.closest=function(e){const t=this.filter(e);if(t.length)return t;const n=this.parent();return n.length?n.closest(e):t};C.siblings=function(e){return qe(H(Me(Be(this,t=>H(t).parent().children().not(t)))),e)};C.find=function(e){return H(Me(Be(this,t=>li(e,t))))};const Wl=/^\s*\s*$/g,Yl=/^$|^module$|\/(java|ecma)script/i,Gl=["type","src","nonce","noModule"];function Kl(e,t){const n=H(e);n.filter("script").add(n.find("script")).each((r,i)=>{if(Yl.test(i.type)&&mo.contains(i)){const o=ht("script");o.text=i.textContent.replace(Wl,""),ie(Gl,(a,u)=>{i[u]&&(o[u]=i[u])}),t.head.insertBefore(o,null),t.head.removeChild(o)}})}function Ul(e,t,n,r,i){r?e.insertBefore(t,n?e.firstChild:null):e.nodeName==="HTML"?e.parentNode.replaceChild(t,e):e.parentNode.insertBefore(t,n?e:e.nextSibling),i&&Kl(t,e.ownerDocument)}function ze(e,t,n,r,i,o,a,u){return ie(e,(f,d)=>{ie(H(d),(g,s)=>{ie(H(t),(c,l)=>{const h=n?s:l,_=n?l:s,p=n?g:c;Ul(h,p?_.cloneNode(!0):_,r,i,!p)},u)},a)},o),t}C.after=function(){return ze(arguments,this,!1,!1,!1,!0,!0)};C.append=function(){return ze(arguments,this,!1,!1,!0)};function ql(e){if(!arguments.length)return this[0]&&this[0].innerHTML;if(he(e))return this;const t=/]/.test(e);return this.each((n,r)=>{!ne(r)||(t?H(r).empty().append(e):r.innerHTML=e)})}C.html=ql;C.appendTo=function(e){return ze(arguments,this,!0,!1,!0)};C.wrapInner=function(e){return this.each((t,n)=>{const r=H(n),i=r.contents();i.length?i.wrapAll(e):r.append(e)})};C.before=function(){return ze(arguments,this,!1,!0)};C.wrapAll=function(e){let t=H(e),n=t[0];for(;n.children.length;)n=n.firstElementChild;return this.first().before(t),this.appendTo(n)};C.wrap=function(e){return this.each((t,n)=>{const r=H(e)[0];H(n).wrapAll(t?r.cloneNode(!0):r)})};C.insertAfter=function(e){return ze(arguments,this,!0,!1,!1,!1,!1,!0)};C.insertBefore=function(e){return ze(arguments,this,!0,!0)};C.prepend=function(){return ze(arguments,this,!1,!0,!0,!0,!0)};C.prependTo=function(e){return ze(arguments,this,!0,!0,!0,!1,!1,!0)};C.contents=function(){return H(Me(Be(this,e=>e.tagName==="IFRAME"?[e.contentDocument]:e.tagName==="TEMPLATE"?e.content.childNodes:e.childNodes)))};C.next=function(e,t,n){return qe(H(Me(Be(this,"nextElementSibling",t,n))),e)};C.nextAll=function(e){return this.next(e,!0)};C.nextUntil=function(e,t){return this.next(t,!0,e)};C.parents=function(e,t){return qe(H(Me(Be(this,"parentElement",!0,t))),e)};C.parentsUntil=function(e,t){return this.parents(t,e)};C.prev=function(e,t,n){return qe(H(Me(Be(this,"previousElementSibling",t,n))),e)};C.prevAll=function(e){return this.prev(e,!0)};C.prevUntil=function(e,t){return this.prev(t,!0,e)};C.map=function(e){return H(Ol.apply([],bo.call(this,(t,n)=>e.call(t,n,t))))};C.clone=function(){return this.map((e,t)=>t.cloneNode(!0))};C.offsetParent=function(){return this.map((e,t)=>{let n=t.offsetParent;for(;n&&Re(n,"position")==="static";)n=n.offsetParent;return n||mo})};C.slice=function(e,t){return H(Eo.call(this,e,t))};const zl=/-([a-z])/g;function fi(e){return e.replace(zl,(t,n)=>n.toUpperCase())}C.ready=function(e){const t=()=>setTimeout(e,0,H);return Pe.readyState!=="loading"?t():Pe.addEventListener("DOMContentLoaded",t),this};C.unwrap=function(){return this.parent().each((e,t)=>{if(t.tagName==="BODY")return;const n=H(t);n.replaceWith(n.children())}),this};C.offset=function(){const e=this[0];if(!e)return;const t=e.getBoundingClientRect();return{top:t.top+Cn.pageYOffset,left:t.left+Cn.pageXOffset}};C.position=function(){const e=this[0];if(!e)return;const t=Re(e,"position")==="fixed",n=t?e.getBoundingClientRect():this.offset();if(!t){const r=e.ownerDocument;let i=e.offsetParent||r.documentElement;for(;(i===r.body||i===r.documentElement)&&Re(i,"position")==="static";)i=i.parentNode;if(i!==e&&ne(i)){const o=H(i).offset();n.top-=o.top+xe(i,"borderTopWidth"),n.left-=o.left+xe(i,"borderLeftWidth")}}return{top:n.top-xe(e,"marginTop"),left:n.left-xe(e,"marginLeft")}};const Oo={class:"className",contenteditable:"contentEditable",for:"htmlFor",readonly:"readOnly",maxlength:"maxLength",tabindex:"tabIndex",colspan:"colSpan",rowspan:"rowSpan",usemap:"useMap"};C.prop=function(e,t){if(!!e){if(de(e))return e=Oo[e]||e,arguments.length<2?this[0]&&this[0][e]:this.each((n,r)=>{r[e]=t});for(const n in e)this.prop(n,e[n]);return this}};C.removeProp=function(e){return this.each((t,n)=>{delete n[Oo[e]||e]})};const Xl=/^--/;function di(e){return Xl.test(e)}const mr={},{style:Ql}=go,Jl=["webkit","moz","ms"];function Zl(e,t=di(e)){if(t)return e;if(!mr[e]){const n=fi(e),r=`${n[0].toUpperCase()}${n.slice(1)}`,i=`${n} ${Jl.join(`${r} `)}${r}`.split(" ");ie(i,(o,a)=>{if(a in Ql)return mr[e]=a,!1})}return mr[e]}const eu={animationIterationCount:!0,columnCount:!0,flexGrow:!0,flexShrink:!0,fontWeight:!0,gridArea:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnStart:!0,gridRow:!0,gridRowEnd:!0,gridRowStart:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,widows:!0,zIndex:!0};function xo(e,t,n=di(e)){return!n&&!eu[e]&&wo(t)?`${t}px`:t}function tu(e,t){if(de(e)){const n=di(e);return e=Zl(e,n),arguments.length<2?this[0]&&Re(this[0],e,n):e?(t=xo(e,t,n),this.each((r,i)=>{!ne(i)||(n?i.style.setProperty(e,t):i.style[e]=t)})):this}for(const n in e)this.css(n,e[n]);return this}C.css=tu;function $o(e,t){try{return e(t)}catch{return t}}const nu=/^\s+|\s+$/;function _s(e,t){const n=e.dataset[t]||e.dataset[fi(t)];return nu.test(n)?n:$o(JSON.parse,n)}function ru(e,t,n){n=$o(JSON.stringify,n),e.dataset[fi(t)]=n}function iu(e,t){if(!e){if(!this[0])return;const n={};for(const r in this[0].dataset)n[r]=_s(this[0],r);return n}if(de(e))return arguments.length<2?this[0]&&_s(this[0],e):he(t)?this:this.each((n,r)=>{ru(r,e,t)});for(const n in e)this.data(n,e[n]);return this}C.data=iu;function Co(e,t){const n=e.documentElement;return Math.max(e.body[`scroll${t}`],n[`scroll${t}`],e.body[`offset${t}`],n[`offset${t}`],n[`client${t}`])}ie([!0,!1],(e,t)=>{ie(["Width","Height"],(n,r)=>{const i=`${t?"outer":"inner"}${r}`;C[i]=function(o){if(!!this[0])return Ot(this[0])?t?this[0][`inner${r}`]:this[0].document.documentElement[`client${r}`]:xt(this[0])?Co(this[0],r):this[0][`${t?"offset":"client"}${r}`]+(o&&t?xe(this[0],`margin${n?"Top":"Left"}`)+xe(this[0],`margin${n?"Bottom":"Right"}`):0)}})});ie(["Width","Height"],(e,t)=>{const n=t.toLowerCase();C[n]=function(r){if(!this[0])return he(r)?void 0:this;if(!arguments.length)return Ot(this[0])?this[0].document.documentElement[`client${t}`]:xt(this[0])?Co(this[0],t):this[0].getBoundingClientRect()[n]-ds(this[0],!e);const i=parseInt(r,10);return this.each((o,a)=>{if(!ne(a))return;const u=Re(a,"boxSizing");a.style[n]=xo(n,i+(u==="border-box"?ds(a,!e):0))})}});const ms="___cd";C.toggle=function(e){return this.each((t,n)=>{if(!ne(n))return;(he(e)?hs(n):e)?(n.style.display=n[ms]||"",hs(n)&&(n.style.display=Bl(n.tagName))):(n[ms]=Re(n,"display"),n.style.display="none")})};C.hide=function(){return this.toggle(!1)};C.show=function(){return this.toggle(!0)};const gs="___ce",hi=".",pi={focus:"focusin",blur:"focusout"},Do={mouseenter:"mouseover",mouseleave:"mouseout"},su=/^(mouse|pointer|contextmenu|drag|drop|click|dblclick)/i;function _i(e){return Do[e]||pi[e]||e}function mi(e){const t=e.split(hi);return[t[0],t.slice(1).sort()]}C.trigger=function(e,t){if(de(e)){const[r,i]=mi(e),o=_i(r);if(!o)return this;const a=su.test(o)?"MouseEvents":"HTMLEvents";e=Pe.createEvent(a),e.initEvent(o,!0,!0),e.namespace=i.join(hi),e.___ot=r}e.___td=t;const n=e.___ot in pi;return this.each((r,i)=>{n&&pt(i[e.___ot])&&(i[`___i${e.type}`]=!0,i[e.___ot](),i[`___i${e.type}`]=!1),i.dispatchEvent(e)})};function No(e){return e[gs]=e[gs]||{}}function ou(e,t,n,r,i){const o=No(e);o[t]=o[t]||[],o[t].push([n,r,i]),e.addEventListener(t,i)}function Mo(e,t){return!t||!ci.call(t,n=>e.indexOf(n)<0)}function Nn(e,t,n,r,i){const o=No(e);if(t)o[t]&&(o[t]=o[t].filter(([a,u,f])=>{if(i&&f.guid!==i.guid||!Mo(a,n)||r&&r!==u)return!0;e.removeEventListener(t,f)}));else for(t in o)Nn(e,t,n,r,i)}C.off=function(e,t,n){if(he(e))this.each((r,i)=>{!ne(i)&&!xt(i)&&!Ot(i)||Nn(i)});else if(de(e))pt(t)&&(n=t,t=""),ie(jn(e),(r,i)=>{const[o,a]=mi(i),u=_i(o);this.each((f,d)=>{!ne(d)&&!xt(d)&&!Ot(d)||Nn(d,u,a,t,n)})});else for(const r in e)this.off(r,e[r]);return this};C.remove=function(e){return qe(this,e).detach().off(),this};C.replaceWith=function(e){return this.before(e).remove()};C.replaceAll=function(e){return H(e).replaceWith(this),this};function au(e,t,n,r,i){if(!de(e)){for(const o in e)this.on(o,t,n,e[o],i);return this}return de(t)||(he(t)||Zt(t)?t="":he(n)?(n=t,t=""):(r=n,n=t,t="")),pt(r)||(r=n,n=void 0),r?(ie(jn(e),(o,a)=>{const[u,f]=mi(a),d=_i(u),g=u in Do,s=u in pi;!d||this.each((c,l)=>{if(!ne(l)&&!xt(l)&&!Ot(l))return;const h=function(_){if(_.target[`___i${_.type}`])return _.stopImmediatePropagation();if(_.namespace&&!Mo(f,_.namespace.split(hi))||!t&&(s&&(_.target!==l||_.___ot===d)||g&&_.relatedTarget&&l.contains(_.relatedTarget)))return;let p=l;if(t){let E=_.target;for(;!Ao(E,t);)if(E===l||(E=E.parentNode,!E))return;p=E}Object.defineProperty(_,"currentTarget",{configurable:!0,get(){return p}}),Object.defineProperty(_,"delegateTarget",{configurable:!0,get(){return l}}),Object.defineProperty(_,"data",{configurable:!0,get(){return n}});const m=r.call(p,_,_.___td);i&&Nn(l,d,f,t,h),m===!1&&(_.preventDefault(),_.stopPropagation())};h.guid=r.guid=r.guid||H.guid++,ou(l,d,f,t,h)})}),this):this}C.on=au;function cu(e,t,n,r){return this.on(e,t,n,r,!0)}C.one=cu;const lu=/\r?\n/g;function uu(e,t){return`&${encodeURIComponent(e)}=${encodeURIComponent(t.replace(lu,`\r -`))}`}const fu=/file|reset|submit|button|image/i,Lo=/radio|checkbox/i;C.serialize=function(){let e="";return this.each((t,n)=>{ie(n.elements||[n],(r,i)=>{if(i.disabled||!i.name||i.tagName==="FIELDSET"||fu.test(i.type)||Lo.test(i.type)&&!i.checked)return;const o=So(i);if(!he(o)){const a=Fn(o)?o:[o];ie(a,(u,f)=>{e+=uu(i.name,f)})}})}),e.slice(1)};nn.extend(_o);function du(){let e=document.querySelectorAll("[data-time]");for(const t of e){let n=t.dataset.time,r=t.dataset.timeFormat;t.innerText=nn(n).format(r)}}function hu(e,t){H(t).select(),document.execCommand("copy"),H(e.target).tooltip({title:"Copied!",trigger:"manual"}),H(e.target).tooltip("show"),setTimeout(function(){H(e.target).tooltip("hide")},1500)}function pu(e){let t=0,n,r,i;if(e.length===0)return t;for(n=0,i=e.length;nnew Promise((t,n)=>{const r=document.querySelector(`script[src='${e}']`);r&&r.remove();const i=document.createElement("script");document.body.appendChild(i),i.onload=t,i.onerror=n,i.async=!0,i.src=e});async function gu(e,t){M._internal.challenge={};let n=M.config,r=await ko(e);M._functions.challenge.displayChallenge&&M._functions.challenge.displayChallenge(r),Po(n.urlRoot+r.type_data.scripts.view).then(()=>{const o=M._internal.challenge;o.data=r,o.preRender(),M._functions.challenge.renderChallenge?M._functions.challenge.renderChallenge(o):t&&t(o),o.postRender()})}async function vu(e,t,n=!1){if(M._functions.challenge.submitChallenge){M._functions.challenge.submitChallenge(e,t);return}let r="/api/v1/challenges/attempt";(n===!0||M.config.preview===!0)&&(r+="?preview=true");const o=await(await M.fetch(r,{method:"POST",body:JSON.stringify({challenge_id:e,submission:t})})).json();return M._functions.challenge.displaySubmissionResponse&&M._functions.challenge.displaySubmissionResponse(o),o}async function Ro(e){return await(await M.fetch(`/api/v1/hints/${e}`,{method:"GET"})).json()}async function Ho(e){return await(await M.fetch("/api/v1/unlocks",{method:"POST",body:JSON.stringify({target:e,type:"hints"})})).json()}async function Bo(e){let n=(await Ro(e)).data;if(n.content){M._functions.challenge.displayHint(n);return}if(await Fo(n)){let i=Ho(e);i.success?await Bo(e):M._functions.challenge.displayUnlockError(i)}}async function Fo(e){return M._functions.challenge.displayUnlock(e)}async function Vo(e){return(await(await M.fetch(`/api/v1/challenges/${e}/solves`,{method:"GET"})).json()).data}async function yu(e){let t=await Vo(e);M._functions.challenge.displaySolves&&M._functions.challenge.displaySolves(t)}async function bu(e=null){let t="/api/v1/scoreboard";return e&&(t=`${t}?bracket_id=${e}`),(await(await M.fetch(t,{method:"GET"})).json()).data}async function Eu(e,t=null){let n=`/api/v1/scoreboard/top/${e}`;return t&&(n=`${n}?bracket_id=${t}`),(await(await M.fetch(n,{method:"GET"})).json()).data}async function wu(e){return(await(await M.fetch(`/api/v1/brackets?type=${e}`,{method:"GET"})).json()).data}async function Au(e){return await(await M.fetch("/api/v1/users/me",{method:"PATCH",body:JSON.stringify(e)})).json()}async function Tu(e){return await(await M.fetch("/api/v1/tokens",{method:"POST",body:JSON.stringify(e)})).json()}async function Su(e){return await(await M.fetch(`/api/v1/tokens/${e}`,{method:"DELETE"})).json()}async function Ou(e){return await(await M.fetch(`/api/v1/users/${e}/solves`,{method:"GET"})).json()}async function xu(e){return await(await M.fetch(`/api/v1/users/${e}/fails`,{method:"GET"})).json()}async function $u(e){return await(await M.fetch(`/api/v1/users/${e}/awards`,{method:"GET"})).json()}async function Cu(){return await(await M.fetch("/api/v1/teams/me/members",{method:"POST",credentials:"same-origin",headers:{Accept:"application/json","Content-Type":"application/json"}})).json()}async function Du(){return await(await M.fetch("/api/v1/teams/me",{method:"DELETE"})).json()}async function Nu(e){return await(await M.fetch("/api/v1/teams/me",{method:"PATCH",body:JSON.stringify(e)})).json()}async function Mu(e){return await(await M.fetch(`/api/v1/teams/${e}/solves`,{method:"GET"})).json()}async function Lu(e){return await(await M.fetch(`/api/v1/teams/${e}/fails`,{method:"GET"})).json()}async function Iu(e){return await(await M.fetch(`/api/v1/teams/${e}/awards`,{method:"GET"})).json()}function ku(e){const t=document.createElement("template");return t.innerHTML=e.trim(),t.content.firstChild}function jo(e){const t=document.createElement("div");return t.innerText=e,t.innerHTML}class Pu{constructor(){this.id=Math.random(),this.isMaster=!1,this.others={},window.addEventListener("storage",this),window.addEventListener("unload",this),this.broadcast("hello"),setTimeout(this.check.bind(this),500),this._checkInterval=setInterval(this.check.bind(this),9e3),this._pingInterval=setInterval(this.sendPing.bind(this),17e3)}destroy(){clearInterval(this._pingInterval),clearInterval(this._checkInterval),window.removeEventListener("storage",this),window.removeEventListener("unload",this),this.broadcast("bye")}handleEvent(t){if(t.type==="unload"){this.destroy();return}if(t.type==="broadcast")try{const n=JSON.parse(t.newValue);n.id!==this.id&&this[n.type](n)}catch(n){console.error(n)}}sendPing(){this.broadcast("ping")}hello(t){if(this.ping(t),t.id=0&&s<=1){if(c._volume=s,c._muted)return c;c.usingWebAudio&&c.masterGain.gain.setValueAtTime(s,n.ctx.currentTime);for(var l=0;l=0;c--)s._howls[c].unload();return s.usingWebAudio&&s.ctx&&typeof s.ctx.close<"u"&&(s.ctx.close(),s.ctx=null,g()),s},codecs:function(s){return(this||n)._codecs[s.replace(/^x-/,"")]},_setup:function(){var s=this||n;if(s.state=s.ctx&&s.ctx.state||"suspended",s._autoSuspend(),!s.usingWebAudio)if(typeof Audio<"u")try{var c=new Audio;typeof c.oncanplaythrough>"u"&&(s._canPlayEvent="canplay")}catch{s.noAudio=!0}else s.noAudio=!0;try{var c=new Audio;c.muted&&(s.noAudio=!0)}catch{}return s.noAudio||s._setupCodecs(),s},_setupCodecs:function(){var s=this||n,c=null;try{c=typeof Audio<"u"?new Audio:null}catch{return s}if(!c||typeof c.canPlayType!="function")return s;var l=c.canPlayType("audio/mpeg;").replace(/^no$/,""),h=s._navigator?s._navigator.userAgent:"",_=h.match(/OPR\/([0-6].)/g),p=_&&parseInt(_[0].split("/")[1],10)<33,m=h.indexOf("Safari")!==-1&&h.indexOf("Chrome")===-1,E=h.match(/Version\/(.*?) /),O=m&&E&&parseInt(E[1],10)<15;return s._codecs={mp3:!!(!p&&(l||c.canPlayType("audio/mp3;").replace(/^no$/,""))),mpeg:!!l,opus:!!c.canPlayType('audio/ogg; codecs="opus"').replace(/^no$/,""),ogg:!!c.canPlayType('audio/ogg; codecs="vorbis"').replace(/^no$/,""),oga:!!c.canPlayType('audio/ogg; codecs="vorbis"').replace(/^no$/,""),wav:!!(c.canPlayType('audio/wav; codecs="1"')||c.canPlayType("audio/wav")).replace(/^no$/,""),aac:!!c.canPlayType("audio/aac;").replace(/^no$/,""),caf:!!c.canPlayType("audio/x-caf;").replace(/^no$/,""),m4a:!!(c.canPlayType("audio/x-m4a;")||c.canPlayType("audio/m4a;")||c.canPlayType("audio/aac;")).replace(/^no$/,""),m4b:!!(c.canPlayType("audio/x-m4b;")||c.canPlayType("audio/m4b;")||c.canPlayType("audio/aac;")).replace(/^no$/,""),mp4:!!(c.canPlayType("audio/x-mp4;")||c.canPlayType("audio/mp4;")||c.canPlayType("audio/aac;")).replace(/^no$/,""),weba:!!(!O&&c.canPlayType('audio/webm; codecs="vorbis"').replace(/^no$/,"")),webm:!!(!O&&c.canPlayType('audio/webm; codecs="vorbis"').replace(/^no$/,"")),dolby:!!c.canPlayType('audio/mp4; codecs="ec-3"').replace(/^no$/,""),flac:!!(c.canPlayType("audio/x-flac;")||c.canPlayType("audio/flac;")).replace(/^no$/,"")},s},_unlockAudio:function(){var s=this||n;if(!(s._audioUnlocked||!s.ctx)){s._audioUnlocked=!1,s.autoUnlock=!1,!s._mobileUnloaded&&s.ctx.sampleRate!==44100&&(s._mobileUnloaded=!0,s.unload()),s._scratchBuffer=s.ctx.createBuffer(1,1,22050);var c=function(l){for(;s._html5AudioPool.length"u"?O.noteOn(0):O.start(0),typeof s.ctx.resume=="function"&&s.ctx.resume(),O.onended=function(){O.disconnect(0),s._audioUnlocked=!0,document.removeEventListener("touchstart",c,!0),document.removeEventListener("touchend",c,!0),document.removeEventListener("click",c,!0),document.removeEventListener("keydown",c,!0);for(var D=0;D"u"||!n.usingWebAudio)){for(var c=0;c"u"||!n.usingWebAudio))return s.state==="running"&&s.ctx.state!=="interrupted"&&s._suspendTimer?(clearTimeout(s._suspendTimer),s._suspendTimer=null):s.state==="suspended"||s.state==="running"&&s.ctx.state==="interrupted"?(s.ctx.resume().then(function(){s.state="running";for(var c=0;c"u"&&(s="__default",!l._playLock)){for(var _=0,p=0;p0?m._seek:l._sprite[s][0]/1e3),D=Math.max(0,(l._sprite[s][0]+l._sprite[s][1])/1e3-O),L=D*1e3/Math.abs(m._rate),I=l._sprite[s][0]/1e3,F=(l._sprite[s][0]+l._sprite[s][1])/1e3;m._sprite=s,m._ended=!1;var j=function(){m._paused=!1,m._seek=O,m._start=I,m._stop=F,m._loop=!!(m._loop||l._sprite[s][2])};if(O>=F){l._ended(m);return}var $=m._node;if(l._webAudio){var N=function(){l._playLock=!1,j(),l._refreshBuffer(m);var b=m._muted||l._muted?0:m._volume;$.gain.setValueAtTime(b,n.ctx.currentTime),m._playStart=n.ctx.currentTime,typeof $.bufferSource.start>"u"?m._loop?$.bufferSource.noteGrainOn(0,O,86400):$.bufferSource.noteGrainOn(0,O,D):m._loop?$.bufferSource.start(0,O,86400):$.bufferSource.start(0,O,D),L!==1/0&&(l._endTimers[m._id]=setTimeout(l._ended.bind(l,m),L)),c||setTimeout(function(){l._emit("play",m._id),l._loadQueue()},0)};n.state==="running"&&n.ctx.state!=="interrupted"?N():(l._playLock=!0,l.once("resume",N),l._clearTimer(m._id))}else{var Y=function(){$.currentTime=O,$.muted=m._muted||l._muted||n._muted||$.muted,$.volume=m._volume*n.volume(),$.playbackRate=m._rate;try{var b=$.play();if(b&&typeof Promise<"u"&&(b instanceof Promise||typeof b.then=="function")?(l._playLock=!0,j(),b.then(function(){l._playLock=!1,$._unlocked=!0,c?l._loadQueue():l._emit("play",m._id)}).catch(function(){l._playLock=!1,l._emit("playerror",m._id,"Playback was unable to start. This is most commonly an issue on mobile devices and Chrome where playback was not within a user interaction."),m._ended=!0,m._paused=!0})):c||(l._playLock=!1,j(),l._emit("play",m._id)),$.playbackRate=m._rate,$.paused){l._emit("playerror",m._id,"Playback was unable to start. This is most commonly an issue on mobile devices and Chrome where playback was not within a user interaction.");return}s!=="__default"||m._loop?l._endTimers[m._id]=setTimeout(l._ended.bind(l,m),L):(l._endTimers[m._id]=function(){l._ended(m),$.removeEventListener("ended",l._endTimers[m._id],!1)},$.addEventListener("ended",l._endTimers[m._id],!1))}catch(v){l._emit("playerror",m._id,v)}};$.src==="data:audio/wav;base64,UklGRigAAABXQVZFZm10IBIAAAABAAEARKwAAIhYAQACABAAAABkYXRhAgAAAAEA"&&($.src=l._src,$.load());var Q=window&&window.ejecta||!$.readyState&&n._navigator.isCocoonJS;if($.readyState>=3||Q)Y();else{l._playLock=!0,l._state="loading";var A=function(){l._state="loaded",Y(),$.removeEventListener(n._canPlayEvent,A,!1)};$.addEventListener(n._canPlayEvent,A,!1),l._clearTimer(m._id)}}return m._id},pause:function(s){var c=this;if(c._state!=="loaded"||c._playLock)return c._queue.push({event:"pause",action:function(){c.pause(s)}}),c;for(var l=c._getSoundIds(s),h=0;h"u"?_._node.bufferSource.noteOff(0):_._node.bufferSource.stop(0),c._cleanBuffer(_._node)}else(!isNaN(_._node.duration)||_._node.duration===1/0)&&_._node.pause();arguments[1]||c._emit("pause",_?_._id:null)}return c},stop:function(s,c){var l=this;if(l._state!=="loaded"||l._playLock)return l._queue.push({event:"stop",action:function(){l.stop(s)}}),l;for(var h=l._getSoundIds(s),_=0;_"u"?p._node.bufferSource.noteOff(0):p._node.bufferSource.stop(0),l._cleanBuffer(p._node)):(!isNaN(p._node.duration)||p._node.duration===1/0)&&(p._node.currentTime=p._start||0,p._node.pause(),p._node.duration===1/0&&l._clearSound(p._node))),c||l._emit("stop",p._id))}return l},mute:function(s,c){var l=this;if(l._state!=="loaded"||l._playLock)return l._queue.push({event:"mute",action:function(){l.mute(s,c)}}),l;if(typeof c>"u")if(typeof s=="boolean")l._muted=s;else return l._muted;for(var h=l._getSoundIds(c),_=0;_"u"){var _=s._getSoundIds(),p=_.indexOf(c[0]);p>=0?h=parseInt(c[0],10):l=parseFloat(c[0])}else c.length>=2&&(l=parseFloat(c[0]),h=parseInt(c[1],10));var m;if(typeof l<"u"&&l>=0&&l<=1){if(s._state!=="loaded"||s._playLock)return s._queue.push({event:"volume",action:function(){s.volume.apply(s,c)}}),s;typeof h>"u"&&(s._volume=l),h=s._getSoundIds(h);for(var E=0;E"u")}}return _},_startFadeInterval:function(s,c,l,h,_,p){var m=this,E=c,O=l-c,D=Math.abs(O/.01),L=Math.max(4,D>0?h/D:h),I=Date.now();s._fadeTo=l,s._interval=setInterval(function(){var F=(Date.now()-I)/h;I=Date.now(),E+=O*F,E=Math.round(E*100)/100,O<0?E=Math.max(l,E):E=Math.min(l,E),m._webAudio?s._volume=E:m.volume(E,s._id,!0),p&&(m._volume=E),(lc&&E>=l)&&(clearInterval(s._interval),s._interval=null,s._fadeTo=null,m.volume(l,s._id),m._emit("fade",s._id))},L)},_stopFade:function(s){var c=this,l=c._soundById(s);return l&&l._interval&&(c._webAudio&&l._node.gain.cancelScheduledValues(n.ctx.currentTime),clearInterval(l._interval),l._interval=null,c.volume(l._fadeTo,s),l._fadeTo=null,c._emit("fade",s)),c},loop:function(){var s=this,c=arguments,l,h,_;if(c.length===0)return s._loop;if(c.length===1)if(typeof c[0]=="boolean")l=c[0],s._loop=l;else return _=s._soundById(parseInt(c[0],10)),_?_._loop:!1;else c.length===2&&(l=c[0],h=parseInt(c[1],10));for(var p=s._getSoundIds(h),m=0;m=0?h=parseInt(c[0],10):l=parseFloat(c[0])}else c.length===2&&(l=parseFloat(c[0]),h=parseInt(c[1],10));var m;if(typeof l=="number"){if(s._state!=="loaded"||s._playLock)return s._queue.push({event:"rate",action:function(){s.rate.apply(s,c)}}),s;typeof h>"u"&&(s._rate=l),h=s._getSoundIds(h);for(var E=0;E=0?h=parseInt(c[0],10):s._sounds.length&&(h=s._sounds[0]._id,l=parseFloat(c[0]))}else c.length===2&&(l=parseFloat(c[0]),h=parseInt(c[1],10));if(typeof h>"u")return 0;if(typeof l=="number"&&(s._state!=="loaded"||s._playLock))return s._queue.push({event:"seek",action:function(){s.seek.apply(s,c)}}),s;var m=s._soundById(h);if(m)if(typeof l=="number"&&l>=0){var E=s.playing(h);E&&s.pause(h,!0),m._seek=l,m._ended=!1,s._clearTimer(h),!s._webAudio&&m._node&&!isNaN(m._node.duration)&&(m._node.currentTime=l);var O=function(){E&&s.play(h,!0),s._emit("seek",h)};if(E&&!s._webAudio){var D=function(){s._playLock?setTimeout(D,0):O()};setTimeout(D,0)}else O()}else if(s._webAudio){var L=s.playing(h)?n.ctx.currentTime-m._playStart:0,I=m._rateSeek?m._rateSeek-m._seek:0;return m._seek+(I+L*Math.abs(m._rate))}else return m._node.currentTime;return s},playing:function(s){var c=this;if(typeof s=="number"){var l=c._soundById(s);return l?!l._paused:!1}for(var h=0;h=0&&n._howls.splice(h,1);var _=!0;for(l=0;l=0){_=!1;break}return o&&_&&delete o[s._src],n.noAudio=!1,s._state="unloaded",s._sounds=[],s=null,null},on:function(s,c,l,h){var _=this,p=_["_on"+s];return typeof c=="function"&&p.push(h?{id:l,fn:c,once:h}:{id:l,fn:c}),_},off:function(s,c,l){var h=this,_=h["_on"+s],p=0;if(typeof c=="number"&&(l=c,c=null),c||l)for(p=0;p<_.length;p++){var m=l===_[p].id;if(c===_[p].fn&&m||!c&&m){_.splice(p,1);break}}else if(s)h["_on"+s]=[];else{var E=Object.keys(h);for(p=0;p=0;p--)(!_[p].id||_[p].id===c||s==="load")&&(setTimeout(function(m){m.call(this,c,l)}.bind(h,_[p].fn),0),_[p].once&&h.off(s,_[p].fn,_[p].id));return h._loadQueue(s),h},_loadQueue:function(s){var c=this;if(c._queue.length>0){var l=c._queue[0];l.event===s&&(c._queue.shift(),c._loadQueue()),s||l.action()}return c},_ended:function(s){var c=this,l=s._sprite;if(!c._webAudio&&s._node&&!s._node.paused&&!s._node.ended&&s._node.currentTime=0;h--){if(l<=c)return;s._sounds[h]._ended&&(s._webAudio&&s._sounds[h]._node&&s._sounds[h]._node.disconnect(0),s._sounds.splice(h,1),l--)}}},_getSoundIds:function(s){var c=this;if(typeof s>"u"){for(var l=[],h=0;h=0;if(n._scratchBuffer&&s.bufferSource&&(s.bufferSource.onended=null,s.bufferSource.disconnect(0),l))try{s.bufferSource.buffer=n._scratchBuffer}catch{}return s.bufferSource=null,c},_clearSound:function(s){var c=/MSIE |Trident\//.test(n._navigator&&n._navigator.userAgent);c||(s.src="data:audio/wav;base64,UklGRigAAABXQVZFZm10IBIAAAABAAEARKwAAIhYAQACABAAAABkYXRhAgAAAAEA")}};var i=function(s){this._parent=s,this.init()};i.prototype={init:function(){var s=this,c=s._parent;return s._muted=c._muted,s._loop=c._loop,s._volume=c._volume,s._rate=c._rate,s._seek=0,s._paused=!0,s._ended=!0,s._sprite="__default",s._id=++n._counter,c._sounds.push(s),s.create(),s},create:function(){var s=this,c=s._parent,l=n._muted||s._muted||s._parent._muted?0:s._volume;return c._webAudio?(s._node=typeof n.ctx.createGain>"u"?n.ctx.createGainNode():n.ctx.createGain(),s._node.gain.setValueAtTime(l,n.ctx.currentTime),s._node.paused=!0,s._node.connect(n.masterGain)):n.noAudio||(s._node=n._obtainHtml5Audio(),s._errorFn=s._errorListener.bind(s),s._node.addEventListener("error",s._errorFn,!1),s._loadFn=s._loadListener.bind(s),s._node.addEventListener(n._canPlayEvent,s._loadFn,!1),s._endFn=s._endListener.bind(s),s._node.addEventListener("ended",s._endFn,!1),s._node.src=c._src,s._node.preload=c._preload===!0?"auto":c._preload,s._node.volume=l*n.volume(),s._node.load()),s},reset:function(){var s=this,c=s._parent;return s._muted=c._muted,s._loop=c._loop,s._volume=c._volume,s._rate=c._rate,s._seek=0,s._rateSeek=0,s._paused=!0,s._ended=!0,s._sprite="__default",s._id=++n._counter,s},_errorListener:function(){var s=this;s._parent._emit("loaderror",s._id,s._node.error?s._node.error.code:0),s._node.removeEventListener("error",s._errorFn,!1)},_loadListener:function(){var s=this,c=s._parent;c._duration=Math.ceil(s._node.duration*10)/10,Object.keys(c._sprite).length===0&&(c._sprite={__default:[0,c._duration*1e3]}),c._state!=="loaded"&&(c._state="loaded",c._emit("load"),c._loadQueue()),s._node.removeEventListener(n._canPlayEvent,s._loadFn,!1)},_endListener:function(){var s=this,c=s._parent;c._duration===1/0&&(c._duration=Math.ceil(s._node.duration*10)/10,c._sprite.__default[1]===1/0&&(c._sprite.__default[1]=c._duration*1e3),c._ended(s)),s._node.removeEventListener("ended",s._endFn,!1)}};var o={},a=function(s){var c=s._src;if(o[c]){s._duration=o[c].duration,d(s);return}if(/^data:[^;]+;base64,/.test(c)){for(var l=atob(c.split(",")[1]),h=new Uint8Array(l.length),_=0;_0?(o[c._src]=_,d(c,_)):l()};typeof Promise<"u"&&n.ctx.decodeAudioData.length===1?n.ctx.decodeAudioData(s).then(h).catch(l):n.ctx.decodeAudioData(s,h,l)},d=function(s,c){c&&!s._duration&&(s._duration=c.duration),Object.keys(s._sprite).length===0&&(s._sprite={__default:[0,s._duration*1e3]}),s._state!=="loaded"&&(s._state="loaded",s._emit("load"),s._loadQueue())},g=function(){if(!!n.usingWebAudio){try{typeof AudioContext<"u"?n.ctx=new AudioContext:typeof webkitAudioContext<"u"?n.ctx=new webkitAudioContext:n.usingWebAudio=!1}catch{n.usingWebAudio=!1}n.ctx||(n.usingWebAudio=!1);var s=/iP(hone|od|ad)/.test(n._navigator&&n._navigator.platform),c=n._navigator&&n._navigator.appVersion.match(/OS (\d+)_(\d+)_?(\d+)?/),l=c?parseInt(c[1],10):null;if(s&&l&&l<9){var h=/safari/.test(n._navigator&&n._navigator.userAgent.toLowerCase());n._navigator&&!h&&(n.usingWebAudio=!1)}n.usingWebAudio&&(n.masterGain=typeof n.ctx.createGain>"u"?n.ctx.createGainNode():n.ctx.createGain(),n.masterGain.gain.setValueAtTime(n._muted?0:n._volume,n.ctx.currentTime),n.masterGain.connect(n.ctx.destination)),n._setup()}};e.Howler=n,e.Howl=r,typeof we<"u"?(we.HowlerGlobal=t,we.Howler=n,we.Howl=r,we.Sound=i):typeof window<"u"&&(window.HowlerGlobal=t,window.Howler=n,window.Howl=r,window.Sound=i)})();/*! - * Spatial Plugin - Adds support for stereo and 3D audio where Web Audio is supported. - * - * howler.js v2.2.3 - * howlerjs.com - * - * (c) 2013-2020, James Simpson of GoldFire Studios - * goldfirestudios.com - * - * MIT License - */(function(){HowlerGlobal.prototype._pos=[0,0,0],HowlerGlobal.prototype._orientation=[0,0,-1,0,1,0],HowlerGlobal.prototype.stereo=function(n){var r=this;if(!r.ctx||!r.ctx.listener)return r;for(var i=r._howls.length-1;i>=0;i--)r._howls[i].stereo(n);return r},HowlerGlobal.prototype.pos=function(n,r,i){var o=this;if(!o.ctx||!o.ctx.listener)return o;if(r=typeof r!="number"?o._pos[1]:r,i=typeof i!="number"?o._pos[2]:i,typeof n=="number")o._pos=[n,r,i],typeof o.ctx.listener.positionX<"u"?(o.ctx.listener.positionX.setTargetAtTime(o._pos[0],Howler.ctx.currentTime,.1),o.ctx.listener.positionY.setTargetAtTime(o._pos[1],Howler.ctx.currentTime,.1),o.ctx.listener.positionZ.setTargetAtTime(o._pos[2],Howler.ctx.currentTime,.1)):o.ctx.listener.setPosition(o._pos[0],o._pos[1],o._pos[2]);else return o._pos;return o},HowlerGlobal.prototype.orientation=function(n,r,i,o,a,u){var f=this;if(!f.ctx||!f.ctx.listener)return f;var d=f._orientation;if(r=typeof r!="number"?d[1]:r,i=typeof i!="number"?d[2]:i,o=typeof o!="number"?d[3]:o,a=typeof a!="number"?d[4]:a,u=typeof u!="number"?d[5]:u,typeof n=="number")f._orientation=[n,r,i,o,a,u],typeof f.ctx.listener.forwardX<"u"?(f.ctx.listener.forwardX.setTargetAtTime(n,Howler.ctx.currentTime,.1),f.ctx.listener.forwardY.setTargetAtTime(r,Howler.ctx.currentTime,.1),f.ctx.listener.forwardZ.setTargetAtTime(i,Howler.ctx.currentTime,.1),f.ctx.listener.upX.setTargetAtTime(o,Howler.ctx.currentTime,.1),f.ctx.listener.upY.setTargetAtTime(a,Howler.ctx.currentTime,.1),f.ctx.listener.upZ.setTargetAtTime(u,Howler.ctx.currentTime,.1)):f.ctx.listener.setOrientation(n,r,i,o,a,u);else return d;return f},Howl.prototype.init=function(n){return function(r){var i=this;return i._orientation=r.orientation||[1,0,0],i._stereo=r.stereo||null,i._pos=r.pos||null,i._pannerAttr={coneInnerAngle:typeof r.coneInnerAngle<"u"?r.coneInnerAngle:360,coneOuterAngle:typeof r.coneOuterAngle<"u"?r.coneOuterAngle:360,coneOuterGain:typeof r.coneOuterGain<"u"?r.coneOuterGain:0,distanceModel:typeof r.distanceModel<"u"?r.distanceModel:"inverse",maxDistance:typeof r.maxDistance<"u"?r.maxDistance:1e4,panningModel:typeof r.panningModel<"u"?r.panningModel:"HRTF",refDistance:typeof r.refDistance<"u"?r.refDistance:1,rolloffFactor:typeof r.rolloffFactor<"u"?r.rolloffFactor:1},i._onstereo=r.onstereo?[{fn:r.onstereo}]:[],i._onpos=r.onpos?[{fn:r.onpos}]:[],i._onorientation=r.onorientation?[{fn:r.onorientation}]:[],n.call(this,r)}}(Howl.prototype.init),Howl.prototype.stereo=function(n,r){var i=this;if(!i._webAudio)return i;if(i._state!=="loaded")return i._queue.push({event:"stereo",action:function(){i.stereo(n,r)}}),i;var o=typeof Howler.ctx.createStereoPanner>"u"?"spatial":"stereo";if(typeof r>"u")if(typeof n=="number")i._stereo=n,i._pos=[n,0,0];else return i._stereo;for(var a=i._getSoundIds(r),u=0;u"u")if(typeof n=="number")a._pos=[n,r,i];else return a._pos;for(var u=a._getSoundIds(o),f=0;f"u")if(typeof n=="number")a._orientation=[n,r,i];else return a._orientation;for(var u=a._getSoundIds(o),f=0;f"u"&&(i.pannerAttr||(i.pannerAttr={coneInnerAngle:i.coneInnerAngle,coneOuterAngle:i.coneOuterAngle,coneOuterGain:i.coneOuterGain,distanceModel:i.distanceModel,maxDistance:i.maxDistance,refDistance:i.refDistance,rolloffFactor:i.rolloffFactor,panningModel:i.panningModel}),n._pannerAttr={coneInnerAngle:typeof i.pannerAttr.coneInnerAngle<"u"?i.pannerAttr.coneInnerAngle:n._coneInnerAngle,coneOuterAngle:typeof i.pannerAttr.coneOuterAngle<"u"?i.pannerAttr.coneOuterAngle:n._coneOuterAngle,coneOuterGain:typeof i.pannerAttr.coneOuterGain<"u"?i.pannerAttr.coneOuterGain:n._coneOuterGain,distanceModel:typeof i.pannerAttr.distanceModel<"u"?i.pannerAttr.distanceModel:n._distanceModel,maxDistance:typeof i.pannerAttr.maxDistance<"u"?i.pannerAttr.maxDistance:n._maxDistance,refDistance:typeof i.pannerAttr.refDistance<"u"?i.pannerAttr.refDistance:n._refDistance,rolloffFactor:typeof i.pannerAttr.rolloffFactor<"u"?i.pannerAttr.rolloffFactor:n._rolloffFactor,panningModel:typeof i.pannerAttr.panningModel<"u"?i.pannerAttr.panningModel:n._panningModel});else return a=n._soundById(parseInt(r[0],10)),a?a._pannerAttr:n._pannerAttr;else r.length===2&&(i=r[0],o=parseInt(r[1],10));for(var u=n._getSoundIds(o),f=0;fJSON.parse(localStorage.getItem(`CTFd:${e}`))||t,Go=(e,t)=>{localStorage.setItem(`CTFd:${e}`,JSON.stringify(t))};function Yn(){return Yo("read_notifications")}function Gn(){return Yo("unread_notifications")}function gi(e){Go("read_notifications",e)}function Kn(e){Go("unread_notifications",e)}function Ru(e){const t=[...Yn(),e];return gi(t),Ko(e),t}function Hu(e){const t=[...Gn(),e];return Kn(t),t}function vs(){const e=Yn();return e.length===0?0:Math.max(...e)}function Ko(e){const n=Gn().filter(r=>r!==e);Kn(n)}function Bu(){const e=Gn(),t=Yn();gi(t.concat(e)),Kn([])}const q={init:(e,t)=>{q.source=new EventSource(e+"/events");for(let r=0;r{let i=r.headers.get("result-count");i&&(q.controller.broadcast("counter",{count:i}),M._functions.events.eventCount(i))})},controller:new Pu,source:null,howl:null,connect:()=>{q.source.addEventListener("notification",function(e){let t=JSON.parse(e.data);q.controller.broadcast("notification",t),M.events.counter.unread.add(t.id);let n=M.events.counter.unread.getAll().length;q.controller.broadcast("counter",{count:n}),M._functions.events.eventCount(n),q.render(t),t.sound&&q.howl.play()},!1)},disconnect:()=>{q.source&&q.source.close()},render:e=>{switch(e.type){case"toast":{M._functions.events.eventToast(e);break}case"alert":{M._functions.events.eventAlert(e);break}case"background":{M._functions.events.eventBackground(e);break}default:{console.log(e),alert(e);break}}},counter:{read:{getAll:Yn,setAll:gi,add:Ru,getLast:vs},unread:{getAll:Gn,setAll:Kn,add:Hu,remove:Ko,readAll:Bu}}};q.controller.alert=function(e){q.render(e)};q.controller.toast=function(e){q.render(e)};q.controller.background=function(e){q.render(e)};q.controller.counter=function(e){M._functions.events.eventCount(e.count)};q.controller.masterDidChange=function(){this.isMaster?q.connect():q.disconnect()};var Uo={exports:{}};(function(e,t){(function(n,r){e.exports=r()})(we,function(){return function(n,r,i){n=n||{};var o=r.prototype,a={future:"in %s",past:"%s ago",s:"a few seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"};function u(d,g,s,c){return o.fromToBase(d,g,s,c)}i.en.relativeTime=a,o.fromToBase=function(d,g,s,c,l){for(var h,_,p,m=s.$locale().relativeTime||a,E=n.thresholds||[{l:"s",r:44,d:"second"},{l:"m",r:89},{l:"mm",r:44,d:"minute"},{l:"h",r:89},{l:"hh",r:21,d:"hour"},{l:"d",r:35},{l:"dd",r:25,d:"day"},{l:"M",r:45},{l:"MM",r:10,d:"month"},{l:"y",r:17},{l:"yy",d:"year"}],O=E.length,D=0;D0,I<=L.r||!L.r){I<=1&&D>0&&(L=E[D-1]);var F=m[L.l];l&&(I=l(""+I)),_=typeof F=="string"?F.replace("%d",I):F(I,g,L.l,p);break}}if(g)return _;var j=p?m.future:m.past;return typeof j=="function"?j(_):j.replace("%s",_)},o.to=function(d,g){return u(d,g,this,!0)},o.from=function(d,g){return u(d,g,this)};var f=function(d){return d.$u?i.utc():i()};o.toNow=function(d){return this.to(f(this),d)},o.fromNow=function(d){return this.from(f(this),d)}}})})(Uo);const Fu=Uo.exports;nn.extend(_o);nn.extend(Fu);const bt={id:null,name:null,email:null},Sn={id:null,name:null},Vu={},ju={challenge:{displayChallenge:null,renderChallenge:null,displayHint(e){alert(e.content)},displayUnlock(e){return confirm("Are you sure you'd like to unlock this hint?")},displayUnlockError(e){const t=[];Object.keys(e.errors).map(r=>{t.push(e.errors[r])});const n=t.join(` -`);alert(n)},submitChallenge:null,displaySubmissionResponse:null,displaySolves:null},challenges:{displayChallenges:null,sortChallenges:null},events:{eventAlert:null,eventToast:null,eventBackground:null,eventRead:null,eventCount:null}},Wu={htmlEntities:jo,colorHash:_u,copyToClipboard:hu,hashCode:pu,renderTimes:du},Yu={ajax:{getScript:Po},html:{createHtmlNode:ku,htmlEntities:jo}},Gu={challenge:{displayChallenge:gu,submitChallenge:vu,loadSolves:Vo,displaySolves:yu,loadHint:Ro,loadUnlock:Ho,displayUnlock:Fo,displayHint:Bo},challenges:{getChallenges:Io,getChallenge:ko,displayChallenges:mu},scoreboard:{getScoreboard:bu,getScoreboardDetail:Eu,getBrackets:wu},settings:{updateSettings:Au,generateToken:Tu,deleteToken:Su},users:{userSolves:Ou,userFails:xu,userAwards:$u},teams:{getInviteToken:Cu,disbandTeam:Du,updateTeamSettings:Nu,teamSolves:Mu,teamFails:Lu,teamAwards:Iu}},Ku={$:H,dayjs:nn};let ys=!1;const Uu=e=>{ys||(ys=!0,X.urlRoot=e.urlRoot||X.urlRoot,X.csrfNonce=e.csrfNonce||X.csrfNonce,X.userMode=e.userMode||X.userMode,X.start=e.start||X.start,X.end=e.end||X.end,X.themeSettings=e.themeSettings||X.themeSettings,X.eventSounds=e.eventSounds||X.eventSounds,X.preview=!1,bt.id=e.userId,bt.name=e.userName||bt.name,bt.email=e.userEmail||bt.email,Sn.id=e.teamId,Sn.name=e.teamName||Sn.name,q.init(X.urlRoot,X.eventSounds))},qu={run(e){e(vi)}},vi={init:Uu,config:X,fetch:Tl,user:bt,team:Sn,ui:Wu,utils:Yu,pages:Gu,events:q,_internal:Vu,_functions:ju,plugin:qu,lib:Ku};window.CTFd=vi;const M=vi;var qo={exports:{}};(function(e,t){(function(n,r){e.exports=r()})(we,function(){var n=1e3,r=6e4,i=36e5,o="millisecond",a="second",u="minute",f="hour",d="day",g="week",s="month",c="quarter",l="year",h="date",_="Invalid Date",p=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,m=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,E={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_")},O=function(A,b,v){var T=String(A);return!T||T.length>=b?A:""+Array(b+1-T.length).join(v)+A},D={s:O,z:function(A){var b=-A.utcOffset(),v=Math.abs(b),T=Math.floor(v/60),y=v%60;return(b<=0?"+":"-")+O(T,2,"0")+":"+O(y,2,"0")},m:function A(b,v){if(b.date()1)return A(S[0])}else{var k=b.name;I[k]=b,y=k}return!T&&y&&(L=y),y||!T&&L},$=function(A,b){if(F(A))return A.clone();var v=typeof b=="object"?b:{};return v.date=A,v.args=arguments,new Y(v)},N=D;N.l=j,N.i=F,N.w=function(A,b){return $(A,{locale:b.$L,utc:b.$u,x:b.$x,$offset:b.$offset})};var Y=function(){function A(v){this.$L=j(v.locale,null,!0),this.parse(v)}var b=A.prototype;return b.parse=function(v){this.$d=function(T){var y=T.date,x=T.utc;if(y===null)return new Date(NaN);if(N.u(y))return new Date;if(y instanceof Date)return new Date(y);if(typeof y=="string"&&!/Z$/i.test(y)){var S=y.match(p);if(S){var k=S[2]-1||0,B=(S[7]||"0").substring(0,3);return x?new Date(Date.UTC(S[1],k,S[3]||1,S[4]||0,S[5]||0,S[6]||0,B)):new Date(S[1],k,S[3]||1,S[4]||0,S[5]||0,S[6]||0,B)}}return new Date(y)}(v),this.$x=v.x||{},this.init()},b.init=function(){var v=this.$d;this.$y=v.getFullYear(),this.$M=v.getMonth(),this.$D=v.getDate(),this.$W=v.getDay(),this.$H=v.getHours(),this.$m=v.getMinutes(),this.$s=v.getSeconds(),this.$ms=v.getMilliseconds()},b.$utils=function(){return N},b.isValid=function(){return this.$d.toString()!==_},b.isSame=function(v,T){var y=$(v);return this.startOf(T)<=y&&y<=this.endOf(T)},b.isAfter=function(v,T){return $(v){document.querySelectorAll("[data-time]").forEach(e=>{const t=e.getAttribute("data-time"),n=e.getAttribute("data-time-format")||"MMMM Do, h:mm:ss A";e.innerText=yi(t).format(n)})},Xu=()=>{document.querySelectorAll(".form-control").forEach(e=>{e.addEventListener("onfocus",()=>{e.classList.remove("input-filled-invalid"),e.classList.add("input-filled-valid")}),e.addEventListener("onblur",()=>{e.nodeValue===""&&(e.classList.remove("input-filled-valid"),e.classList.remove("input-filled-invalid"))}),e.nodeValue&&e.classList.add("input-filled-valid")}),document.querySelectorAll(".page-select").forEach(e=>{e.addEventListener("change",t=>{var r;const n=new URL(window.location);n.searchParams.set("page",(r=t.target.value)!=null?r:"1"),window.location.href=n.toString()})})};var Qo={exports:{}};/*! lolight v1.4.0 - https://larsjung.de/lolight/ */(function(e,t){(function(n,r){e.exports=r()})(we,function(){function n(c){if(typeof c!="string")throw new Error("tok: no string");for(var l=[],h=s.length,_=!1;c;)for(var p=0;p/],["rex",/\/(\\\/|[^\n])*?\//],["str",/(['"`])(\\\1|[\s\S])*?\1/],[g,/[+-]?([0-9]*\.?[0-9]+|[0-9]+\.?[0-9]*)([eE][+-]?[0-9]+)?/],["pct",/[\\.,:;+\-*\/=<>()[\]{}|?!&@~]/],["spc",/\s+/],[d,/[\w$]+/],["unk",/./]];return r(!1,function(c){var l=c.querySelector("head"),h=c.createElement("style");h.textContent=a,l.insertBefore(h,l.firstChild),/^(i|c|loade)/.test(c.readyState)?o():c.addEventListener("DOMContentLoaded",function(){o()})}),o.tok=n,o.el=i,o})})(Qo);const Qu=Qo.exports,Ju=()=>{(!M.config.themeSettings.hasOwnProperty("use_builtin_code_highlighter")||M.config.themeSettings.use_builtin_code_highlighter===!0)&&Qu("pre code")};var ae="top",pe="bottom",_e="right",ce="left",Un="auto",Ht=[ae,pe,_e,ce],lt="start",$t="end",Jo="clippingParents",bi="viewport",Et="popper",Zo="reference",Rr=Ht.reduce(function(e,t){return e.concat([t+"-"+lt,t+"-"+$t])},[]),Ei=[].concat(Ht,[Un]).reduce(function(e,t){return e.concat([t,t+"-"+lt,t+"-"+$t])},[]),ea="beforeRead",ta="read",na="afterRead",ra="beforeMain",ia="main",sa="afterMain",oa="beforeWrite",aa="write",ca="afterWrite",la=[ea,ta,na,ra,ia,sa,oa,aa,ca];function Ne(e){return e?(e.nodeName||"").toLowerCase():null}function Te(e){if(e==null)return window;if(e.toString()!=="[object Window]"){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function Ct(e){var t=Te(e).Element;return e instanceof t||e instanceof Element}function me(e){var t=Te(e).HTMLElement;return e instanceof t||e instanceof HTMLElement}function wi(e){if(typeof ShadowRoot>"u")return!1;var t=Te(e).ShadowRoot;return e instanceof t||e instanceof ShadowRoot}function Zu(e){var t=e.state;Object.keys(t.elements).forEach(function(n){var r=t.styles[n]||{},i=t.attributes[n]||{},o=t.elements[n];!me(o)||!Ne(o)||(Object.assign(o.style,r),Object.keys(i).forEach(function(a){var u=i[a];u===!1?o.removeAttribute(a):o.setAttribute(a,u===!0?"":u)}))})}function ef(e){var t=e.state,n={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(t.elements.popper.style,n.popper),t.styles=n,t.elements.arrow&&Object.assign(t.elements.arrow.style,n.arrow),function(){Object.keys(t.elements).forEach(function(r){var i=t.elements[r],o=t.attributes[r]||{},a=Object.keys(t.styles.hasOwnProperty(r)?t.styles[r]:n[r]),u=a.reduce(function(f,d){return f[d]="",f},{});!me(i)||!Ne(i)||(Object.assign(i.style,u),Object.keys(o).forEach(function(f){i.removeAttribute(f)}))})}}const Ai={name:"applyStyles",enabled:!0,phase:"write",fn:Zu,effect:ef,requires:["computeStyles"]};function $e(e){return e.split("-")[0]}var it=Math.max,Mn=Math.min,Dt=Math.round;function Nt(e,t){t===void 0&&(t=!1);var n=e.getBoundingClientRect(),r=1,i=1;if(me(e)&&t){var o=e.offsetHeight,a=e.offsetWidth;a>0&&(r=Dt(n.width)/a||1),o>0&&(i=Dt(n.height)/o||1)}return{width:n.width/r,height:n.height/i,top:n.top/i,right:n.right/r,bottom:n.bottom/i,left:n.left/r,x:n.left/r,y:n.top/i}}function Ti(e){var t=Nt(e),n=e.offsetWidth,r=e.offsetHeight;return Math.abs(t.width-n)<=1&&(n=t.width),Math.abs(t.height-r)<=1&&(r=t.height),{x:e.offsetLeft,y:e.offsetTop,width:n,height:r}}function ua(e,t){var n=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(n&&wi(n)){var r=t;do{if(r&&e.isSameNode(r))return!0;r=r.parentNode||r.host}while(r)}return!1}function He(e){return Te(e).getComputedStyle(e)}function tf(e){return["table","td","th"].indexOf(Ne(e))>=0}function Xe(e){return((Ct(e)?e.ownerDocument:e.document)||window.document).documentElement}function qn(e){return Ne(e)==="html"?e:e.assignedSlot||e.parentNode||(wi(e)?e.host:null)||Xe(e)}function bs(e){return!me(e)||He(e).position==="fixed"?null:e.offsetParent}function nf(e){var t=navigator.userAgent.toLowerCase().indexOf("firefox")!==-1,n=navigator.userAgent.indexOf("Trident")!==-1;if(n&&me(e)){var r=He(e);if(r.position==="fixed")return null}var i=qn(e);for(wi(i)&&(i=i.host);me(i)&&["html","body"].indexOf(Ne(i))<0;){var o=He(i);if(o.transform!=="none"||o.perspective!=="none"||o.contain==="paint"||["transform","perspective"].indexOf(o.willChange)!==-1||t&&o.willChange==="filter"||t&&o.filter&&o.filter!=="none")return i;i=i.parentNode}return null}function rn(e){for(var t=Te(e),n=bs(e);n&&tf(n)&&He(n).position==="static";)n=bs(n);return n&&(Ne(n)==="html"||Ne(n)==="body"&&He(n).position==="static")?t:n||nf(e)||t}function Si(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function qt(e,t,n){return it(e,Mn(t,n))}function rf(e,t,n){var r=qt(e,t,n);return r>n?n:r}function fa(){return{top:0,right:0,bottom:0,left:0}}function da(e){return Object.assign({},fa(),e)}function ha(e,t){return t.reduce(function(n,r){return n[r]=e,n},{})}var sf=function(t,n){return t=typeof t=="function"?t(Object.assign({},n.rects,{placement:n.placement})):t,da(typeof t!="number"?t:ha(t,Ht))};function of(e){var t,n=e.state,r=e.name,i=e.options,o=n.elements.arrow,a=n.modifiersData.popperOffsets,u=$e(n.placement),f=Si(u),d=[ce,_e].indexOf(u)>=0,g=d?"height":"width";if(!(!o||!a)){var s=sf(i.padding,n),c=Ti(o),l=f==="y"?ae:ce,h=f==="y"?pe:_e,_=n.rects.reference[g]+n.rects.reference[f]-a[f]-n.rects.popper[g],p=a[f]-n.rects.reference[f],m=rn(o),E=m?f==="y"?m.clientHeight||0:m.clientWidth||0:0,O=_/2-p/2,D=s[l],L=E-c[g]-s[h],I=E/2-c[g]/2+O,F=qt(D,I,L),j=f;n.modifiersData[r]=(t={},t[j]=F,t.centerOffset=F-I,t)}}function af(e){var t=e.state,n=e.options,r=n.element,i=r===void 0?"[data-popper-arrow]":r;i!=null&&(typeof i=="string"&&(i=t.elements.popper.querySelector(i),!i)||!ua(t.elements.popper,i)||(t.elements.arrow=i))}const pa={name:"arrow",enabled:!0,phase:"main",fn:of,effect:af,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function Mt(e){return e.split("-")[1]}var cf={top:"auto",right:"auto",bottom:"auto",left:"auto"};function lf(e){var t=e.x,n=e.y,r=window,i=r.devicePixelRatio||1;return{x:Dt(t*i)/i||0,y:Dt(n*i)/i||0}}function Es(e){var t,n=e.popper,r=e.popperRect,i=e.placement,o=e.variation,a=e.offsets,u=e.position,f=e.gpuAcceleration,d=e.adaptive,g=e.roundOffsets,s=e.isFixed,c=a.x,l=c===void 0?0:c,h=a.y,_=h===void 0?0:h,p=typeof g=="function"?g({x:l,y:_}):{x:l,y:_};l=p.x,_=p.y;var m=a.hasOwnProperty("x"),E=a.hasOwnProperty("y"),O=ce,D=ae,L=window;if(d){var I=rn(n),F="clientHeight",j="clientWidth";if(I===Te(n)&&(I=Xe(n),He(I).position!=="static"&&u==="absolute"&&(F="scrollHeight",j="scrollWidth")),I=I,i===ae||(i===ce||i===_e)&&o===$t){D=pe;var $=s&&I===L&&L.visualViewport?L.visualViewport.height:I[F];_-=$-r.height,_*=f?1:-1}if(i===ce||(i===ae||i===pe)&&o===$t){O=_e;var N=s&&I===L&&L.visualViewport?L.visualViewport.width:I[j];l-=N-r.width,l*=f?1:-1}}var Y=Object.assign({position:u},d&&cf),Q=g===!0?lf({x:l,y:_}):{x:l,y:_};if(l=Q.x,_=Q.y,f){var A;return Object.assign({},Y,(A={},A[D]=E?"0":"",A[O]=m?"0":"",A.transform=(L.devicePixelRatio||1)<=1?"translate("+l+"px, "+_+"px)":"translate3d("+l+"px, "+_+"px, 0)",A))}return Object.assign({},Y,(t={},t[D]=E?_+"px":"",t[O]=m?l+"px":"",t.transform="",t))}function uf(e){var t=e.state,n=e.options,r=n.gpuAcceleration,i=r===void 0?!0:r,o=n.adaptive,a=o===void 0?!0:o,u=n.roundOffsets,f=u===void 0?!0:u,d={placement:$e(t.placement),variation:Mt(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:i,isFixed:t.options.strategy==="fixed"};t.modifiersData.popperOffsets!=null&&(t.styles.popper=Object.assign({},t.styles.popper,Es(Object.assign({},d,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:a,roundOffsets:f})))),t.modifiersData.arrow!=null&&(t.styles.arrow=Object.assign({},t.styles.arrow,Es(Object.assign({},d,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:f})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})}const Oi={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:uf,data:{}};var mn={passive:!0};function ff(e){var t=e.state,n=e.instance,r=e.options,i=r.scroll,o=i===void 0?!0:i,a=r.resize,u=a===void 0?!0:a,f=Te(t.elements.popper),d=[].concat(t.scrollParents.reference,t.scrollParents.popper);return o&&d.forEach(function(g){g.addEventListener("scroll",n.update,mn)}),u&&f.addEventListener("resize",n.update,mn),function(){o&&d.forEach(function(g){g.removeEventListener("scroll",n.update,mn)}),u&&f.removeEventListener("resize",n.update,mn)}}const xi={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:ff,data:{}};var df={left:"right",right:"left",bottom:"top",top:"bottom"};function On(e){return e.replace(/left|right|bottom|top/g,function(t){return df[t]})}var hf={start:"end",end:"start"};function ws(e){return e.replace(/start|end/g,function(t){return hf[t]})}function $i(e){var t=Te(e),n=t.pageXOffset,r=t.pageYOffset;return{scrollLeft:n,scrollTop:r}}function Ci(e){return Nt(Xe(e)).left+$i(e).scrollLeft}function pf(e){var t=Te(e),n=Xe(e),r=t.visualViewport,i=n.clientWidth,o=n.clientHeight,a=0,u=0;return r&&(i=r.width,o=r.height,/^((?!chrome|android).)*safari/i.test(navigator.userAgent)||(a=r.offsetLeft,u=r.offsetTop)),{width:i,height:o,x:a+Ci(e),y:u}}function _f(e){var t,n=Xe(e),r=$i(e),i=(t=e.ownerDocument)==null?void 0:t.body,o=it(n.scrollWidth,n.clientWidth,i?i.scrollWidth:0,i?i.clientWidth:0),a=it(n.scrollHeight,n.clientHeight,i?i.scrollHeight:0,i?i.clientHeight:0),u=-r.scrollLeft+Ci(e),f=-r.scrollTop;return He(i||n).direction==="rtl"&&(u+=it(n.clientWidth,i?i.clientWidth:0)-o),{width:o,height:a,x:u,y:f}}function Di(e){var t=He(e),n=t.overflow,r=t.overflowX,i=t.overflowY;return/auto|scroll|overlay|hidden/.test(n+i+r)}function _a(e){return["html","body","#document"].indexOf(Ne(e))>=0?e.ownerDocument.body:me(e)&&Di(e)?e:_a(qn(e))}function zt(e,t){var n;t===void 0&&(t=[]);var r=_a(e),i=r===((n=e.ownerDocument)==null?void 0:n.body),o=Te(r),a=i?[o].concat(o.visualViewport||[],Di(r)?r:[]):r,u=t.concat(a);return i?u:u.concat(zt(qn(a)))}function Hr(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function mf(e){var t=Nt(e);return t.top=t.top+e.clientTop,t.left=t.left+e.clientLeft,t.bottom=t.top+e.clientHeight,t.right=t.left+e.clientWidth,t.width=e.clientWidth,t.height=e.clientHeight,t.x=t.left,t.y=t.top,t}function As(e,t){return t===bi?Hr(pf(e)):Ct(t)?mf(t):Hr(_f(Xe(e)))}function gf(e){var t=zt(qn(e)),n=["absolute","fixed"].indexOf(He(e).position)>=0,r=n&&me(e)?rn(e):e;return Ct(r)?t.filter(function(i){return Ct(i)&&ua(i,r)&&Ne(i)!=="body"}):[]}function vf(e,t,n){var r=t==="clippingParents"?gf(e):[].concat(t),i=[].concat(r,[n]),o=i[0],a=i.reduce(function(u,f){var d=As(e,f);return u.top=it(d.top,u.top),u.right=Mn(d.right,u.right),u.bottom=Mn(d.bottom,u.bottom),u.left=it(d.left,u.left),u},As(e,o));return a.width=a.right-a.left,a.height=a.bottom-a.top,a.x=a.left,a.y=a.top,a}function ma(e){var t=e.reference,n=e.element,r=e.placement,i=r?$e(r):null,o=r?Mt(r):null,a=t.x+t.width/2-n.width/2,u=t.y+t.height/2-n.height/2,f;switch(i){case ae:f={x:a,y:t.y-n.height};break;case pe:f={x:a,y:t.y+t.height};break;case _e:f={x:t.x+t.width,y:u};break;case ce:f={x:t.x-n.width,y:u};break;default:f={x:t.x,y:t.y}}var d=i?Si(i):null;if(d!=null){var g=d==="y"?"height":"width";switch(o){case lt:f[d]=f[d]-(t[g]/2-n[g]/2);break;case $t:f[d]=f[d]+(t[g]/2-n[g]/2);break}}return f}function Lt(e,t){t===void 0&&(t={});var n=t,r=n.placement,i=r===void 0?e.placement:r,o=n.boundary,a=o===void 0?Jo:o,u=n.rootBoundary,f=u===void 0?bi:u,d=n.elementContext,g=d===void 0?Et:d,s=n.altBoundary,c=s===void 0?!1:s,l=n.padding,h=l===void 0?0:l,_=da(typeof h!="number"?h:ha(h,Ht)),p=g===Et?Zo:Et,m=e.rects.popper,E=e.elements[c?p:g],O=vf(Ct(E)?E:E.contextElement||Xe(e.elements.popper),a,f),D=Nt(e.elements.reference),L=ma({reference:D,element:m,strategy:"absolute",placement:i}),I=Hr(Object.assign({},m,L)),F=g===Et?I:D,j={top:O.top-F.top+_.top,bottom:F.bottom-O.bottom+_.bottom,left:O.left-F.left+_.left,right:F.right-O.right+_.right},$=e.modifiersData.offset;if(g===Et&&$){var N=$[i];Object.keys(j).forEach(function(Y){var Q=[_e,pe].indexOf(Y)>=0?1:-1,A=[ae,pe].indexOf(Y)>=0?"y":"x";j[Y]+=N[A]*Q})}return j}function yf(e,t){t===void 0&&(t={});var n=t,r=n.placement,i=n.boundary,o=n.rootBoundary,a=n.padding,u=n.flipVariations,f=n.allowedAutoPlacements,d=f===void 0?Ei:f,g=Mt(r),s=g?u?Rr:Rr.filter(function(h){return Mt(h)===g}):Ht,c=s.filter(function(h){return d.indexOf(h)>=0});c.length===0&&(c=s);var l=c.reduce(function(h,_){return h[_]=Lt(e,{placement:_,boundary:i,rootBoundary:o,padding:a})[$e(_)],h},{});return Object.keys(l).sort(function(h,_){return l[h]-l[_]})}function bf(e){if($e(e)===Un)return[];var t=On(e);return[ws(e),t,ws(t)]}function Ef(e){var t=e.state,n=e.options,r=e.name;if(!t.modifiersData[r]._skip){for(var i=n.mainAxis,o=i===void 0?!0:i,a=n.altAxis,u=a===void 0?!0:a,f=n.fallbackPlacements,d=n.padding,g=n.boundary,s=n.rootBoundary,c=n.altBoundary,l=n.flipVariations,h=l===void 0?!0:l,_=n.allowedAutoPlacements,p=t.options.placement,m=$e(p),E=m===p,O=f||(E||!h?[On(p)]:bf(p)),D=[p].concat(O).reduce(function(K,G){return K.concat($e(G)===Un?yf(t,{placement:G,boundary:g,rootBoundary:s,padding:d,flipVariations:h,allowedAutoPlacements:_}):G)},[]),L=t.rects.reference,I=t.rects.popper,F=new Map,j=!0,$=D[0],N=0;N=0,v=b?"width":"height",T=Lt(t,{placement:Y,boundary:g,rootBoundary:s,altBoundary:c,padding:d}),y=b?A?_e:ce:A?pe:ae;L[v]>I[v]&&(y=On(y));var x=On(y),S=[];if(o&&S.push(T[Q]<=0),u&&S.push(T[y]<=0,T[x]<=0),S.every(function(K){return K})){$=Y,j=!1;break}F.set(Y,S)}if(j)for(var k=h?3:1,B=function(G){var re=D.find(function(se){var z=F.get(se);if(z)return z.slice(0,G).every(function(W){return W})});if(re)return $=re,"break"},R=k;R>0;R--){var V=B(R);if(V==="break")break}t.placement!==$&&(t.modifiersData[r]._skip=!0,t.placement=$,t.reset=!0)}}const ga={name:"flip",enabled:!0,phase:"main",fn:Ef,requiresIfExists:["offset"],data:{_skip:!1}};function Ts(e,t,n){return n===void 0&&(n={x:0,y:0}),{top:e.top-t.height-n.y,right:e.right-t.width+n.x,bottom:e.bottom-t.height+n.y,left:e.left-t.width-n.x}}function Ss(e){return[ae,_e,pe,ce].some(function(t){return e[t]>=0})}function wf(e){var t=e.state,n=e.name,r=t.rects.reference,i=t.rects.popper,o=t.modifiersData.preventOverflow,a=Lt(t,{elementContext:"reference"}),u=Lt(t,{altBoundary:!0}),f=Ts(a,r),d=Ts(u,i,o),g=Ss(f),s=Ss(d);t.modifiersData[n]={referenceClippingOffsets:f,popperEscapeOffsets:d,isReferenceHidden:g,hasPopperEscaped:s},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":g,"data-popper-escaped":s})}const va={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:wf};function Af(e,t,n){var r=$e(e),i=[ce,ae].indexOf(r)>=0?-1:1,o=typeof n=="function"?n(Object.assign({},t,{placement:e})):n,a=o[0],u=o[1];return a=a||0,u=(u||0)*i,[ce,_e].indexOf(r)>=0?{x:u,y:a}:{x:a,y:u}}function Tf(e){var t=e.state,n=e.options,r=e.name,i=n.offset,o=i===void 0?[0,0]:i,a=Ei.reduce(function(g,s){return g[s]=Af(s,t.rects,o),g},{}),u=a[t.placement],f=u.x,d=u.y;t.modifiersData.popperOffsets!=null&&(t.modifiersData.popperOffsets.x+=f,t.modifiersData.popperOffsets.y+=d),t.modifiersData[r]=a}const ya={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:Tf};function Sf(e){var t=e.state,n=e.name;t.modifiersData[n]=ma({reference:t.rects.reference,element:t.rects.popper,strategy:"absolute",placement:t.placement})}const Ni={name:"popperOffsets",enabled:!0,phase:"read",fn:Sf,data:{}};function Of(e){return e==="x"?"y":"x"}function xf(e){var t=e.state,n=e.options,r=e.name,i=n.mainAxis,o=i===void 0?!0:i,a=n.altAxis,u=a===void 0?!1:a,f=n.boundary,d=n.rootBoundary,g=n.altBoundary,s=n.padding,c=n.tether,l=c===void 0?!0:c,h=n.tetherOffset,_=h===void 0?0:h,p=Lt(t,{boundary:f,rootBoundary:d,padding:s,altBoundary:g}),m=$e(t.placement),E=Mt(t.placement),O=!E,D=Si(m),L=Of(D),I=t.modifiersData.popperOffsets,F=t.rects.reference,j=t.rects.popper,$=typeof _=="function"?_(Object.assign({},t.rects,{placement:t.placement})):_,N=typeof $=="number"?{mainAxis:$,altAxis:$}:Object.assign({mainAxis:0,altAxis:0},$),Y=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,Q={x:0,y:0};if(!!I){if(o){var A,b=D==="y"?ae:ce,v=D==="y"?pe:_e,T=D==="y"?"height":"width",y=I[D],x=y+p[b],S=y-p[v],k=l?-j[T]/2:0,B=E===lt?F[T]:j[T],R=E===lt?-j[T]:-F[T],V=t.elements.arrow,K=l&&V?Ti(V):{width:0,height:0},G=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:fa(),re=G[b],se=G[v],z=qt(0,F[T],K[T]),W=O?F[T]/2-k-z-re-N.mainAxis:B-z-re-N.mainAxis,J=O?-F[T]/2+k+z+se+N.mainAxis:R+z+se+N.mainAxis,be=t.elements.arrow&&rn(t.elements.arrow),Ee=be?D==="y"?be.clientTop||0:be.clientLeft||0:0,ts=(A=Y==null?void 0:Y[D])!=null?A:0,cl=y+W-ts-Ee,ll=y+J-ts,ns=qt(l?Mn(x,cl):x,y,l?it(S,ll):S);I[D]=ns,Q[D]=ns-y}if(u){var rs,ul=D==="x"?ae:ce,fl=D==="x"?pe:_e,Ze=I[L],_n=L==="y"?"height":"width",is=Ze+p[ul],ss=Ze-p[fl],dr=[ae,ce].indexOf(m)!==-1,os=(rs=Y==null?void 0:Y[L])!=null?rs:0,as=dr?is:Ze-F[_n]-j[_n]-os+N.altAxis,cs=dr?Ze+F[_n]+j[_n]-os-N.altAxis:ss,ls=l&&dr?rf(as,Ze,cs):qt(l?as:is,Ze,l?cs:ss);I[L]=ls,Q[L]=ls-Ze}t.modifiersData[r]=Q}}const ba={name:"preventOverflow",enabled:!0,phase:"main",fn:xf,requiresIfExists:["offset"]};function $f(e){return{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}}function Cf(e){return e===Te(e)||!me(e)?$i(e):$f(e)}function Df(e){var t=e.getBoundingClientRect(),n=Dt(t.width)/e.offsetWidth||1,r=Dt(t.height)/e.offsetHeight||1;return n!==1||r!==1}function Nf(e,t,n){n===void 0&&(n=!1);var r=me(t),i=me(t)&&Df(t),o=Xe(t),a=Nt(e,i),u={scrollLeft:0,scrollTop:0},f={x:0,y:0};return(r||!r&&!n)&&((Ne(t)!=="body"||Di(o))&&(u=Cf(t)),me(t)?(f=Nt(t,!0),f.x+=t.clientLeft,f.y+=t.clientTop):o&&(f.x=Ci(o))),{x:a.left+u.scrollLeft-f.x,y:a.top+u.scrollTop-f.y,width:a.width,height:a.height}}function Mf(e){var t=new Map,n=new Set,r=[];e.forEach(function(o){t.set(o.name,o)});function i(o){n.add(o.name);var a=[].concat(o.requires||[],o.requiresIfExists||[]);a.forEach(function(u){if(!n.has(u)){var f=t.get(u);f&&i(f)}}),r.push(o)}return e.forEach(function(o){n.has(o.name)||i(o)}),r}function Lf(e){var t=Mf(e);return la.reduce(function(n,r){return n.concat(t.filter(function(i){return i.phase===r}))},[])}function If(e){var t;return function(){return t||(t=new Promise(function(n){Promise.resolve().then(function(){t=void 0,n(e())})})),t}}function kf(e){var t=e.reduce(function(n,r){var i=n[r.name];return n[r.name]=i?Object.assign({},i,r,{options:Object.assign({},i.options,r.options),data:Object.assign({},i.data,r.data)}):r,n},{});return Object.keys(t).map(function(n){return t[n]})}var Os={placement:"bottom",modifiers:[],strategy:"absolute"};function xs(){for(var e=arguments.length,t=new Array(e),n=0;n(e&&window.CSS&&window.CSS.escape&&(e=e.replace(/#([^\s"#']+)/g,(t,n)=>`#${CSS.escape(n)}`)),e),jf=e=>e==null?`${e}`:Object.prototype.toString.call(e).match(/\s([a-z]+)/i)[1].toLowerCase(),Wf=e=>{do e+=Math.floor(Math.random()*Ff);while(document.getElementById(e));return e},Yf=e=>{if(!e)return 0;let{transitionDuration:t,transitionDelay:n}=window.getComputedStyle(e);const r=Number.parseFloat(t),i=Number.parseFloat(n);return!r&&!i?0:(t=t.split(",")[0],n=n.split(",")[0],(Number.parseFloat(t)+Number.parseFloat(n))*Vf)},Aa=e=>{e.dispatchEvent(new Event(Br))},Ie=e=>!e||typeof e!="object"?!1:(typeof e.jquery<"u"&&(e=e[0]),typeof e.nodeType<"u"),We=e=>Ie(e)?e.jquery?e[0]:e:typeof e=="string"&&e.length>0?document.querySelector(wa(e)):null,Bt=e=>{if(!Ie(e)||e.getClientRects().length===0)return!1;const t=getComputedStyle(e).getPropertyValue("visibility")==="visible",n=e.closest("details:not([open])");if(!n)return t;if(n!==e){const r=e.closest("summary");if(r&&r.parentNode!==n||r===null)return!1}return t},Ye=e=>!e||e.nodeType!==Node.ELEMENT_NODE||e.classList.contains("disabled")?!0:typeof e.disabled<"u"?e.disabled:e.hasAttribute("disabled")&&e.getAttribute("disabled")!=="false",Ta=e=>{if(!document.documentElement.attachShadow)return null;if(typeof e.getRootNode=="function"){const t=e.getRootNode();return t instanceof ShadowRoot?t:null}return e instanceof ShadowRoot?e:e.parentNode?Ta(e.parentNode):null},Ln=()=>{},sn=e=>{e.offsetHeight},Sa=()=>window.jQuery&&!document.body.hasAttribute("data-bs-no-jquery")?window.jQuery:null,vr=[],Gf=e=>{document.readyState==="loading"?(vr.length||document.addEventListener("DOMContentLoaded",()=>{for(const t of vr)t()}),vr.push(e)):e()},ge=()=>document.documentElement.dir==="rtl",ye=e=>{Gf(()=>{const t=Sa();if(t){const n=e.NAME,r=t.fn[n];t.fn[n]=e.jQueryInterface,t.fn[n].Constructor=e,t.fn[n].noConflict=()=>(t.fn[n]=r,e.jQueryInterface)}})},fe=(e,t=[],n=e)=>typeof e=="function"?e(...t):n,Oa=(e,t,n=!0)=>{if(!n){fe(e);return}const r=5,i=Yf(t)+r;let o=!1;const a=({target:u})=>{u===t&&(o=!0,t.removeEventListener(Br,a),fe(e))};t.addEventListener(Br,a),setTimeout(()=>{o||Aa(t)},i)},Li=(e,t,n,r)=>{const i=e.length;let o=e.indexOf(t);return o===-1?!n&&r?e[i-1]:e[0]:(o+=n?1:-1,r&&(o=(o+i)%i),e[Math.max(0,Math.min(o,i-1))])},Kf=/[^.]*(?=\..*)\.|.*/,Uf=/\..*/,qf=/::\d+$/,yr={};let $s=1;const xa={mouseenter:"mouseover",mouseleave:"mouseout"},zf=new Set(["click","dblclick","mouseup","mousedown","contextmenu","mousewheel","DOMMouseScroll","mouseover","mouseout","mousemove","selectstart","selectend","keydown","keypress","keyup","orientationchange","touchstart","touchmove","touchend","touchcancel","pointerdown","pointermove","pointerup","pointerleave","pointercancel","gesturestart","gesturechange","gestureend","focus","blur","change","reset","select","submit","focusin","focusout","load","unload","beforeunload","resize","move","DOMContentLoaded","readystatechange","error","abort","scroll"]);function $a(e,t){return t&&`${t}::${$s++}`||e.uidEvent||$s++}function Ca(e){const t=$a(e);return e.uidEvent=t,yr[t]=yr[t]||{},yr[t]}function Xf(e,t){return function n(r){return Ii(r,{delegateTarget:e}),n.oneOff&&w.off(e,r.type,t),t.apply(e,[r])}}function Qf(e,t,n){return function r(i){const o=e.querySelectorAll(t);for(let{target:a}=i;a&&a!==this;a=a.parentNode)for(const u of o)if(u===a)return Ii(i,{delegateTarget:a}),r.oneOff&&w.off(e,i.type,t,n),n.apply(a,[i])}}function Da(e,t,n=null){return Object.values(e).find(r=>r.callable===t&&r.delegationSelector===n)}function Na(e,t,n){const r=typeof t=="string",i=r?n:t||n;let o=Ma(e);return zf.has(o)||(o=e),[r,i,o]}function Cs(e,t,n,r,i){if(typeof t!="string"||!e)return;let[o,a,u]=Na(t,n,r);t in xa&&(a=(h=>function(_){if(!_.relatedTarget||_.relatedTarget!==_.delegateTarget&&!_.delegateTarget.contains(_.relatedTarget))return h.call(this,_)})(a));const f=Ca(e),d=f[u]||(f[u]={}),g=Da(d,a,o?n:null);if(g){g.oneOff=g.oneOff&&i;return}const s=$a(a,t.replace(Kf,"")),c=o?Qf(e,n,a):Xf(e,a);c.delegationSelector=o?n:null,c.callable=a,c.oneOff=i,c.uidEvent=s,d[s]=c,e.addEventListener(u,c,o)}function Fr(e,t,n,r,i){const o=Da(t[n],r,i);!o||(e.removeEventListener(n,o,Boolean(i)),delete t[n][o.uidEvent])}function Jf(e,t,n,r){const i=t[n]||{};for(const[o,a]of Object.entries(i))o.includes(r)&&Fr(e,t,n,a.callable,a.delegationSelector)}function Ma(e){return e=e.replace(Uf,""),xa[e]||e}const w={on(e,t,n,r){Cs(e,t,n,r,!1)},one(e,t,n,r){Cs(e,t,n,r,!0)},off(e,t,n,r){if(typeof t!="string"||!e)return;const[i,o,a]=Na(t,n,r),u=a!==t,f=Ca(e),d=f[a]||{},g=t.startsWith(".");if(typeof o<"u"){if(!Object.keys(d).length)return;Fr(e,f,a,o,i?n:null);return}if(g)for(const s of Object.keys(f))Jf(e,f,s,t.slice(1));for(const[s,c]of Object.entries(d)){const l=s.replace(qf,"");(!u||t.includes(l))&&Fr(e,f,a,c.callable,c.delegationSelector)}},trigger(e,t,n){if(typeof t!="string"||!e)return null;const r=Sa(),i=Ma(t),o=t!==i;let a=null,u=!0,f=!0,d=!1;o&&r&&(a=r.Event(t,n),r(e).trigger(a),u=!a.isPropagationStopped(),f=!a.isImmediatePropagationStopped(),d=a.isDefaultPrevented());const g=Ii(new Event(t,{bubbles:u,cancelable:!0}),n);return d&&g.preventDefault(),f&&e.dispatchEvent(g),g.defaultPrevented&&a&&a.preventDefault(),g}};function Ii(e,t={}){for(const[n,r]of Object.entries(t))try{e[n]=r}catch{Object.defineProperty(e,n,{configurable:!0,get(){return r}})}return e}function Ds(e){if(e==="true")return!0;if(e==="false")return!1;if(e===Number(e).toString())return Number(e);if(e===""||e==="null")return null;if(typeof e!="string")return e;try{return JSON.parse(decodeURIComponent(e))}catch{return e}}function br(e){return e.replace(/[A-Z]/g,t=>`-${t.toLowerCase()}`)}const ke={setDataAttribute(e,t,n){e.setAttribute(`data-bs-${br(t)}`,n)},removeDataAttribute(e,t){e.removeAttribute(`data-bs-${br(t)}`)},getDataAttributes(e){if(!e)return{};const t={},n=Object.keys(e.dataset).filter(r=>r.startsWith("bs")&&!r.startsWith("bsConfig"));for(const r of n){let i=r.replace(/^bs/,"");i=i.charAt(0).toLowerCase()+i.slice(1,i.length),t[i]=Ds(e.dataset[r])}return t},getDataAttribute(e,t){return Ds(e.getAttribute(`data-bs-${br(t)}`))}};class on{static get Default(){return{}}static get DefaultType(){return{}}static get NAME(){throw new Error('You have to implement the static method "NAME", for each component!')}_getConfig(t){return t=this._mergeConfigObj(t),t=this._configAfterMerge(t),this._typeCheckConfig(t),t}_configAfterMerge(t){return t}_mergeConfigObj(t,n){const r=Ie(n)?ke.getDataAttribute(n,"config"):{};return{...this.constructor.Default,...typeof r=="object"?r:{},...Ie(n)?ke.getDataAttributes(n):{},...typeof t=="object"?t:{}}}_typeCheckConfig(t,n=this.constructor.DefaultType){for(const[r,i]of Object.entries(n)){const o=t[r],a=Ie(o)?"element":jf(o);if(!new RegExp(i).test(a))throw new TypeError(`${this.constructor.NAME.toUpperCase()}: Option "${r}" provided type "${a}" but expected type "${i}".`)}}}const Zf="5.3.3";class Se extends on{constructor(t,n){super(),t=We(t),t&&(this._element=t,this._config=this._getConfig(n),gr.set(this._element,this.constructor.DATA_KEY,this))}dispose(){gr.remove(this._element,this.constructor.DATA_KEY),w.off(this._element,this.constructor.EVENT_KEY);for(const t of Object.getOwnPropertyNames(this))this[t]=null}_queueCallback(t,n,r=!0){Oa(t,n,r)}_getConfig(t){return t=this._mergeConfigObj(t,this._element),t=this._configAfterMerge(t),this._typeCheckConfig(t),t}static getInstance(t){return gr.get(We(t),this.DATA_KEY)}static getOrCreateInstance(t,n={}){return this.getInstance(t)||new this(t,typeof n=="object"?n:null)}static get VERSION(){return Zf}static get DATA_KEY(){return`bs.${this.NAME}`}static get EVENT_KEY(){return`.${this.DATA_KEY}`}static eventName(t){return`${t}${this.EVENT_KEY}`}}const Er=e=>{let t=e.getAttribute("data-bs-target");if(!t||t==="#"){let n=e.getAttribute("href");if(!n||!n.includes("#")&&!n.startsWith("."))return null;n.includes("#")&&!n.startsWith("#")&&(n=`#${n.split("#")[1]}`),t=n&&n!=="#"?n.trim():null}return t?t.split(",").map(n=>wa(n)).join(","):null},P={find(e,t=document.documentElement){return[].concat(...Element.prototype.querySelectorAll.call(t,e))},findOne(e,t=document.documentElement){return Element.prototype.querySelector.call(t,e)},children(e,t){return[].concat(...e.children).filter(n=>n.matches(t))},parents(e,t){const n=[];let r=e.parentNode.closest(t);for(;r;)n.push(r),r=r.parentNode.closest(t);return n},prev(e,t){let n=e.previousElementSibling;for(;n;){if(n.matches(t))return[n];n=n.previousElementSibling}return[]},next(e,t){let n=e.nextElementSibling;for(;n;){if(n.matches(t))return[n];n=n.nextElementSibling}return[]},focusableChildren(e){const t=["a","button","input","textarea","select","details","[tabindex]",'[contenteditable="true"]'].map(n=>`${n}:not([tabindex^="-"])`).join(",");return this.find(t,e).filter(n=>!Ye(n)&&Bt(n))},getSelectorFromElement(e){const t=Er(e);return t&&P.findOne(t)?t:null},getElementFromSelector(e){const t=Er(e);return t?P.findOne(t):null},getMultipleElementsFromSelector(e){const t=Er(e);return t?P.find(t):[]}},Xn=(e,t="hide")=>{const n=`click.dismiss${e.EVENT_KEY}`,r=e.NAME;w.on(document,n,`[data-bs-dismiss="${r}"]`,function(i){if(["A","AREA"].includes(this.tagName)&&i.preventDefault(),Ye(this))return;const o=P.getElementFromSelector(this)||this.closest(`.${r}`);e.getOrCreateInstance(o)[t]()})},ed="alert",td="bs.alert",La=`.${td}`,nd=`close${La}`,rd=`closed${La}`,id="fade",sd="show";class an extends Se{static get NAME(){return ed}close(){if(w.trigger(this._element,nd).defaultPrevented)return;this._element.classList.remove(sd);const n=this._element.classList.contains(id);this._queueCallback(()=>this._destroyElement(),this._element,n)}_destroyElement(){this._element.remove(),w.trigger(this._element,rd),this.dispose()}static jQueryInterface(t){return this.each(function(){const n=an.getOrCreateInstance(this);if(typeof t=="string"){if(n[t]===void 0||t.startsWith("_")||t==="constructor")throw new TypeError(`No method named "${t}"`);n[t](this)}})}}Xn(an,"close");ye(an);const od="button",ad="bs.button",cd=`.${ad}`,ld=".data-api",ud="active",Ns='[data-bs-toggle="button"]',fd=`click${cd}${ld}`;class Qn extends Se{static get NAME(){return od}toggle(){this._element.setAttribute("aria-pressed",this._element.classList.toggle(ud))}static jQueryInterface(t){return this.each(function(){const n=Qn.getOrCreateInstance(this);t==="toggle"&&n[t]()})}}w.on(document,fd,Ns,e=>{e.preventDefault();const t=e.target.closest(Ns);Qn.getOrCreateInstance(t).toggle()});ye(Qn);const dd="swipe",Ft=".bs.swipe",hd=`touchstart${Ft}`,pd=`touchmove${Ft}`,_d=`touchend${Ft}`,md=`pointerdown${Ft}`,gd=`pointerup${Ft}`,vd="touch",yd="pen",bd="pointer-event",Ed=40,wd={endCallback:null,leftCallback:null,rightCallback:null},Ad={endCallback:"(function|null)",leftCallback:"(function|null)",rightCallback:"(function|null)"};class In extends on{constructor(t,n){super(),this._element=t,!(!t||!In.isSupported())&&(this._config=this._getConfig(n),this._deltaX=0,this._supportPointerEvents=Boolean(window.PointerEvent),this._initEvents())}static get Default(){return wd}static get DefaultType(){return Ad}static get NAME(){return dd}dispose(){w.off(this._element,Ft)}_start(t){if(!this._supportPointerEvents){this._deltaX=t.touches[0].clientX;return}this._eventIsPointerPenTouch(t)&&(this._deltaX=t.clientX)}_end(t){this._eventIsPointerPenTouch(t)&&(this._deltaX=t.clientX-this._deltaX),this._handleSwipe(),fe(this._config.endCallback)}_move(t){this._deltaX=t.touches&&t.touches.length>1?0:t.touches[0].clientX-this._deltaX}_handleSwipe(){const t=Math.abs(this._deltaX);if(t<=Ed)return;const n=t/this._deltaX;this._deltaX=0,n&&fe(n>0?this._config.rightCallback:this._config.leftCallback)}_initEvents(){this._supportPointerEvents?(w.on(this._element,md,t=>this._start(t)),w.on(this._element,gd,t=>this._end(t)),this._element.classList.add(bd)):(w.on(this._element,hd,t=>this._start(t)),w.on(this._element,pd,t=>this._move(t)),w.on(this._element,_d,t=>this._end(t)))}_eventIsPointerPenTouch(t){return this._supportPointerEvents&&(t.pointerType===yd||t.pointerType===vd)}static isSupported(){return"ontouchstart"in document.documentElement||navigator.maxTouchPoints>0}}const Td="carousel",Sd="bs.carousel",Qe=`.${Sd}`,Ia=".data-api",Od="ArrowLeft",xd="ArrowRight",$d=500,Wt="next",vt="prev",wt="left",xn="right",Cd=`slide${Qe}`,wr=`slid${Qe}`,Dd=`keydown${Qe}`,Nd=`mouseenter${Qe}`,Md=`mouseleave${Qe}`,Ld=`dragstart${Qe}`,Id=`load${Qe}${Ia}`,kd=`click${Qe}${Ia}`,ka="carousel",gn="active",Pd="slide",Rd="carousel-item-end",Hd="carousel-item-start",Bd="carousel-item-next",Fd="carousel-item-prev",Pa=".active",Ra=".carousel-item",Vd=Pa+Ra,jd=".carousel-item img",Wd=".carousel-indicators",Yd="[data-bs-slide], [data-bs-slide-to]",Gd='[data-bs-ride="carousel"]',Kd={[Od]:xn,[xd]:wt},Ud={interval:5e3,keyboard:!0,pause:"hover",ride:!1,touch:!0,wrap:!0},qd={interval:"(number|boolean)",keyboard:"boolean",pause:"(string|boolean)",ride:"(boolean|string)",touch:"boolean",wrap:"boolean"};class cn extends Se{constructor(t,n){super(t,n),this._interval=null,this._activeElement=null,this._isSliding=!1,this.touchTimeout=null,this._swipeHelper=null,this._indicatorsElement=P.findOne(Wd,this._element),this._addEventListeners(),this._config.ride===ka&&this.cycle()}static get Default(){return Ud}static get DefaultType(){return qd}static get NAME(){return Td}next(){this._slide(Wt)}nextWhenVisible(){!document.hidden&&Bt(this._element)&&this.next()}prev(){this._slide(vt)}pause(){this._isSliding&&Aa(this._element),this._clearInterval()}cycle(){this._clearInterval(),this._updateInterval(),this._interval=setInterval(()=>this.nextWhenVisible(),this._config.interval)}_maybeEnableCycle(){if(!!this._config.ride){if(this._isSliding){w.one(this._element,wr,()=>this.cycle());return}this.cycle()}}to(t){const n=this._getItems();if(t>n.length-1||t<0)return;if(this._isSliding){w.one(this._element,wr,()=>this.to(t));return}const r=this._getItemIndex(this._getActive());if(r===t)return;const i=t>r?Wt:vt;this._slide(i,n[t])}dispose(){this._swipeHelper&&this._swipeHelper.dispose(),super.dispose()}_configAfterMerge(t){return t.defaultInterval=t.interval,t}_addEventListeners(){this._config.keyboard&&w.on(this._element,Dd,t=>this._keydown(t)),this._config.pause==="hover"&&(w.on(this._element,Nd,()=>this.pause()),w.on(this._element,Md,()=>this._maybeEnableCycle())),this._config.touch&&In.isSupported()&&this._addTouchEventListeners()}_addTouchEventListeners(){for(const r of P.find(jd,this._element))w.on(r,Ld,i=>i.preventDefault());const n={leftCallback:()=>this._slide(this._directionToOrder(wt)),rightCallback:()=>this._slide(this._directionToOrder(xn)),endCallback:()=>{this._config.pause==="hover"&&(this.pause(),this.touchTimeout&&clearTimeout(this.touchTimeout),this.touchTimeout=setTimeout(()=>this._maybeEnableCycle(),$d+this._config.interval))}};this._swipeHelper=new In(this._element,n)}_keydown(t){if(/input|textarea/i.test(t.target.tagName))return;const n=Kd[t.key];n&&(t.preventDefault(),this._slide(this._directionToOrder(n)))}_getItemIndex(t){return this._getItems().indexOf(t)}_setActiveIndicatorElement(t){if(!this._indicatorsElement)return;const n=P.findOne(Pa,this._indicatorsElement);n.classList.remove(gn),n.removeAttribute("aria-current");const r=P.findOne(`[data-bs-slide-to="${t}"]`,this._indicatorsElement);r&&(r.classList.add(gn),r.setAttribute("aria-current","true"))}_updateInterval(){const t=this._activeElement||this._getActive();if(!t)return;const n=Number.parseInt(t.getAttribute("data-bs-interval"),10);this._config.interval=n||this._config.defaultInterval}_slide(t,n=null){if(this._isSliding)return;const r=this._getActive(),i=t===Wt,o=n||Li(this._getItems(),r,i,this._config.wrap);if(o===r)return;const a=this._getItemIndex(o),u=l=>w.trigger(this._element,l,{relatedTarget:o,direction:this._orderToDirection(t),from:this._getItemIndex(r),to:a});if(u(Cd).defaultPrevented||!r||!o)return;const d=Boolean(this._interval);this.pause(),this._isSliding=!0,this._setActiveIndicatorElement(a),this._activeElement=o;const g=i?Hd:Rd,s=i?Bd:Fd;o.classList.add(s),sn(o),r.classList.add(g),o.classList.add(g);const c=()=>{o.classList.remove(g,s),o.classList.add(gn),r.classList.remove(gn,s,g),this._isSliding=!1,u(wr)};this._queueCallback(c,r,this._isAnimated()),d&&this.cycle()}_isAnimated(){return this._element.classList.contains(Pd)}_getActive(){return P.findOne(Vd,this._element)}_getItems(){return P.find(Ra,this._element)}_clearInterval(){this._interval&&(clearInterval(this._interval),this._interval=null)}_directionToOrder(t){return ge()?t===wt?vt:Wt:t===wt?Wt:vt}_orderToDirection(t){return ge()?t===vt?wt:xn:t===vt?xn:wt}static jQueryInterface(t){return this.each(function(){const n=cn.getOrCreateInstance(this,t);if(typeof t=="number"){n.to(t);return}if(typeof t=="string"){if(n[t]===void 0||t.startsWith("_")||t==="constructor")throw new TypeError(`No method named "${t}"`);n[t]()}})}}w.on(document,kd,Yd,function(e){const t=P.getElementFromSelector(this);if(!t||!t.classList.contains(ka))return;e.preventDefault();const n=cn.getOrCreateInstance(t),r=this.getAttribute("data-bs-slide-to");if(r){n.to(r),n._maybeEnableCycle();return}if(ke.getDataAttribute(this,"slide")==="next"){n.next(),n._maybeEnableCycle();return}n.prev(),n._maybeEnableCycle()});w.on(window,Id,()=>{const e=P.find(Gd);for(const t of e)cn.getOrCreateInstance(t)});ye(cn);const zd="collapse",Xd="bs.collapse",ln=`.${Xd}`,Qd=".data-api",Jd=`show${ln}`,Zd=`shown${ln}`,eh=`hide${ln}`,th=`hidden${ln}`,nh=`click${ln}${Qd}`,Ar="show",Tt="collapse",vn="collapsing",rh="collapsed",ih=`:scope .${Tt} .${Tt}`,sh="collapse-horizontal",oh="width",ah="height",ch=".collapse.show, .collapse.collapsing",Vr='[data-bs-toggle="collapse"]',lh={parent:null,toggle:!0},uh={parent:"(null|element)",toggle:"boolean"};class It extends Se{constructor(t,n){super(t,n),this._isTransitioning=!1,this._triggerArray=[];const r=P.find(Vr);for(const i of r){const o=P.getSelectorFromElement(i),a=P.find(o).filter(u=>u===this._element);o!==null&&a.length&&this._triggerArray.push(i)}this._initializeChildren(),this._config.parent||this._addAriaAndCollapsedClass(this._triggerArray,this._isShown()),this._config.toggle&&this.toggle()}static get Default(){return lh}static get DefaultType(){return uh}static get NAME(){return zd}toggle(){this._isShown()?this.hide():this.show()}show(){if(this._isTransitioning||this._isShown())return;let t=[];if(this._config.parent&&(t=this._getFirstLevelChildren(ch).filter(u=>u!==this._element).map(u=>It.getOrCreateInstance(u,{toggle:!1}))),t.length&&t[0]._isTransitioning||w.trigger(this._element,Jd).defaultPrevented)return;for(const u of t)u.hide();const r=this._getDimension();this._element.classList.remove(Tt),this._element.classList.add(vn),this._element.style[r]=0,this._addAriaAndCollapsedClass(this._triggerArray,!0),this._isTransitioning=!0;const i=()=>{this._isTransitioning=!1,this._element.classList.remove(vn),this._element.classList.add(Tt,Ar),this._element.style[r]="",w.trigger(this._element,Zd)},a=`scroll${r[0].toUpperCase()+r.slice(1)}`;this._queueCallback(i,this._element,!0),this._element.style[r]=`${this._element[a]}px`}hide(){if(this._isTransitioning||!this._isShown()||w.trigger(this._element,eh).defaultPrevented)return;const n=this._getDimension();this._element.style[n]=`${this._element.getBoundingClientRect()[n]}px`,sn(this._element),this._element.classList.add(vn),this._element.classList.remove(Tt,Ar);for(const i of this._triggerArray){const o=P.getElementFromSelector(i);o&&!this._isShown(o)&&this._addAriaAndCollapsedClass([i],!1)}this._isTransitioning=!0;const r=()=>{this._isTransitioning=!1,this._element.classList.remove(vn),this._element.classList.add(Tt),w.trigger(this._element,th)};this._element.style[n]="",this._queueCallback(r,this._element,!0)}_isShown(t=this._element){return t.classList.contains(Ar)}_configAfterMerge(t){return t.toggle=Boolean(t.toggle),t.parent=We(t.parent),t}_getDimension(){return this._element.classList.contains(sh)?oh:ah}_initializeChildren(){if(!this._config.parent)return;const t=this._getFirstLevelChildren(Vr);for(const n of t){const r=P.getElementFromSelector(n);r&&this._addAriaAndCollapsedClass([n],this._isShown(r))}}_getFirstLevelChildren(t){const n=P.find(ih,this._config.parent);return P.find(t,this._config.parent).filter(r=>!n.includes(r))}_addAriaAndCollapsedClass(t,n){if(!!t.length)for(const r of t)r.classList.toggle(rh,!n),r.setAttribute("aria-expanded",n)}static jQueryInterface(t){const n={};return typeof t=="string"&&/show|hide/.test(t)&&(n.toggle=!1),this.each(function(){const r=It.getOrCreateInstance(this,n);if(typeof t=="string"){if(typeof r[t]>"u")throw new TypeError(`No method named "${t}"`);r[t]()}})}}w.on(document,nh,Vr,function(e){(e.target.tagName==="A"||e.delegateTarget&&e.delegateTarget.tagName==="A")&&e.preventDefault();for(const t of P.getMultipleElementsFromSelector(this))It.getOrCreateInstance(t,{toggle:!1}).toggle()});ye(It);const Ms="dropdown",fh="bs.dropdown",_t=`.${fh}`,ki=".data-api",dh="Escape",Ls="Tab",hh="ArrowUp",Is="ArrowDown",ph=2,_h=`hide${_t}`,mh=`hidden${_t}`,gh=`show${_t}`,vh=`shown${_t}`,Ha=`click${_t}${ki}`,Ba=`keydown${_t}${ki}`,yh=`keyup${_t}${ki}`,At="show",bh="dropup",Eh="dropend",wh="dropstart",Ah="dropup-center",Th="dropdown-center",nt='[data-bs-toggle="dropdown"]:not(.disabled):not(:disabled)',Sh=`${nt}.${At}`,$n=".dropdown-menu",Oh=".navbar",xh=".navbar-nav",$h=".dropdown-menu .dropdown-item:not(.disabled):not(:disabled)",Ch=ge()?"top-end":"top-start",Dh=ge()?"top-start":"top-end",Nh=ge()?"bottom-end":"bottom-start",Mh=ge()?"bottom-start":"bottom-end",Lh=ge()?"left-start":"right-start",Ih=ge()?"right-start":"left-start",kh="top",Ph="bottom",Rh={autoClose:!0,boundary:"clippingParents",display:"dynamic",offset:[0,2],popperConfig:null,reference:"toggle"},Hh={autoClose:"(boolean|string)",boundary:"(string|element)",display:"string",offset:"(array|string|function)",popperConfig:"(null|object|function)",reference:"(string|element|object)"};class Ce extends Se{constructor(t,n){super(t,n),this._popper=null,this._parent=this._element.parentNode,this._menu=P.next(this._element,$n)[0]||P.prev(this._element,$n)[0]||P.findOne($n,this._parent),this._inNavbar=this._detectNavbar()}static get Default(){return Rh}static get DefaultType(){return Hh}static get NAME(){return Ms}toggle(){return this._isShown()?this.hide():this.show()}show(){if(Ye(this._element)||this._isShown())return;const t={relatedTarget:this._element};if(!w.trigger(this._element,gh,t).defaultPrevented){if(this._createPopper(),"ontouchstart"in document.documentElement&&!this._parent.closest(xh))for(const r of[].concat(...document.body.children))w.on(r,"mouseover",Ln);this._element.focus(),this._element.setAttribute("aria-expanded",!0),this._menu.classList.add(At),this._element.classList.add(At),w.trigger(this._element,vh,t)}}hide(){if(Ye(this._element)||!this._isShown())return;const t={relatedTarget:this._element};this._completeHide(t)}dispose(){this._popper&&this._popper.destroy(),super.dispose()}update(){this._inNavbar=this._detectNavbar(),this._popper&&this._popper.update()}_completeHide(t){if(!w.trigger(this._element,_h,t).defaultPrevented){if("ontouchstart"in document.documentElement)for(const r of[].concat(...document.body.children))w.off(r,"mouseover",Ln);this._popper&&this._popper.destroy(),this._menu.classList.remove(At),this._element.classList.remove(At),this._element.setAttribute("aria-expanded","false"),ke.removeDataAttribute(this._menu,"popper"),w.trigger(this._element,mh,t)}}_getConfig(t){if(t=super._getConfig(t),typeof t.reference=="object"&&!Ie(t.reference)&&typeof t.reference.getBoundingClientRect!="function")throw new TypeError(`${Ms.toUpperCase()}: Option "reference" provided type "object" without a required "getBoundingClientRect" method.`);return t}_createPopper(){if(typeof Ea>"u")throw new TypeError("Bootstrap's dropdowns require Popper (https://popper.js.org)");let t=this._element;this._config.reference==="parent"?t=this._parent:Ie(this._config.reference)?t=We(this._config.reference):typeof this._config.reference=="object"&&(t=this._config.reference);const n=this._getPopperConfig();this._popper=Mi(t,this._menu,n)}_isShown(){return this._menu.classList.contains(At)}_getPlacement(){const t=this._parent;if(t.classList.contains(Eh))return Lh;if(t.classList.contains(wh))return Ih;if(t.classList.contains(Ah))return kh;if(t.classList.contains(Th))return Ph;const n=getComputedStyle(this._menu).getPropertyValue("--bs-position").trim()==="end";return t.classList.contains(bh)?n?Dh:Ch:n?Mh:Nh}_detectNavbar(){return this._element.closest(Oh)!==null}_getOffset(){const{offset:t}=this._config;return typeof t=="string"?t.split(",").map(n=>Number.parseInt(n,10)):typeof t=="function"?n=>t(n,this._element):t}_getPopperConfig(){const t={placement:this._getPlacement(),modifiers:[{name:"preventOverflow",options:{boundary:this._config.boundary}},{name:"offset",options:{offset:this._getOffset()}}]};return(this._inNavbar||this._config.display==="static")&&(ke.setDataAttribute(this._menu,"popper","static"),t.modifiers=[{name:"applyStyles",enabled:!1}]),{...t,...fe(this._config.popperConfig,[t])}}_selectMenuItem({key:t,target:n}){const r=P.find($h,this._menu).filter(i=>Bt(i));!r.length||Li(r,n,t===Is,!r.includes(n)).focus()}static jQueryInterface(t){return this.each(function(){const n=Ce.getOrCreateInstance(this,t);if(typeof t=="string"){if(typeof n[t]>"u")throw new TypeError(`No method named "${t}"`);n[t]()}})}static clearMenus(t){if(t.button===ph||t.type==="keyup"&&t.key!==Ls)return;const n=P.find(Sh);for(const r of n){const i=Ce.getInstance(r);if(!i||i._config.autoClose===!1)continue;const o=t.composedPath(),a=o.includes(i._menu);if(o.includes(i._element)||i._config.autoClose==="inside"&&!a||i._config.autoClose==="outside"&&a||i._menu.contains(t.target)&&(t.type==="keyup"&&t.key===Ls||/input|select|option|textarea|form/i.test(t.target.tagName)))continue;const u={relatedTarget:i._element};t.type==="click"&&(u.clickEvent=t),i._completeHide(u)}}static dataApiKeydownHandler(t){const n=/input|textarea/i.test(t.target.tagName),r=t.key===dh,i=[hh,Is].includes(t.key);if(!i&&!r||n&&!r)return;t.preventDefault();const o=this.matches(nt)?this:P.prev(this,nt)[0]||P.next(this,nt)[0]||P.findOne(nt,t.delegateTarget.parentNode),a=Ce.getOrCreateInstance(o);if(i){t.stopPropagation(),a.show(),a._selectMenuItem(t);return}a._isShown()&&(t.stopPropagation(),a.hide(),o.focus())}}w.on(document,Ba,nt,Ce.dataApiKeydownHandler);w.on(document,Ba,$n,Ce.dataApiKeydownHandler);w.on(document,Ha,Ce.clearMenus);w.on(document,yh,Ce.clearMenus);w.on(document,Ha,nt,function(e){e.preventDefault(),Ce.getOrCreateInstance(this).toggle()});ye(Ce);const Fa="backdrop",Bh="fade",ks="show",Ps=`mousedown.bs.${Fa}`,Fh={className:"modal-backdrop",clickCallback:null,isAnimated:!1,isVisible:!0,rootElement:"body"},Vh={className:"string",clickCallback:"(function|null)",isAnimated:"boolean",isVisible:"boolean",rootElement:"(element|string)"};class Va extends on{constructor(t){super(),this._config=this._getConfig(t),this._isAppended=!1,this._element=null}static get Default(){return Fh}static get DefaultType(){return Vh}static get NAME(){return Fa}show(t){if(!this._config.isVisible){fe(t);return}this._append();const n=this._getElement();this._config.isAnimated&&sn(n),n.classList.add(ks),this._emulateAnimation(()=>{fe(t)})}hide(t){if(!this._config.isVisible){fe(t);return}this._getElement().classList.remove(ks),this._emulateAnimation(()=>{this.dispose(),fe(t)})}dispose(){!this._isAppended||(w.off(this._element,Ps),this._element.remove(),this._isAppended=!1)}_getElement(){if(!this._element){const t=document.createElement("div");t.className=this._config.className,this._config.isAnimated&&t.classList.add(Bh),this._element=t}return this._element}_configAfterMerge(t){return t.rootElement=We(t.rootElement),t}_append(){if(this._isAppended)return;const t=this._getElement();this._config.rootElement.append(t),w.on(t,Ps,()=>{fe(this._config.clickCallback)}),this._isAppended=!0}_emulateAnimation(t){Oa(t,this._getElement(),this._config.isAnimated)}}const jh="focustrap",Wh="bs.focustrap",kn=`.${Wh}`,Yh=`focusin${kn}`,Gh=`keydown.tab${kn}`,Kh="Tab",Uh="forward",Rs="backward",qh={autofocus:!0,trapElement:null},zh={autofocus:"boolean",trapElement:"element"};class ja extends on{constructor(t){super(),this._config=this._getConfig(t),this._isActive=!1,this._lastTabNavDirection=null}static get Default(){return qh}static get DefaultType(){return zh}static get NAME(){return jh}activate(){this._isActive||(this._config.autofocus&&this._config.trapElement.focus(),w.off(document,kn),w.on(document,Yh,t=>this._handleFocusin(t)),w.on(document,Gh,t=>this._handleKeydown(t)),this._isActive=!0)}deactivate(){!this._isActive||(this._isActive=!1,w.off(document,kn))}_handleFocusin(t){const{trapElement:n}=this._config;if(t.target===document||t.target===n||n.contains(t.target))return;const r=P.focusableChildren(n);r.length===0?n.focus():this._lastTabNavDirection===Rs?r[r.length-1].focus():r[0].focus()}_handleKeydown(t){t.key===Kh&&(this._lastTabNavDirection=t.shiftKey?Rs:Uh)}}const Hs=".fixed-top, .fixed-bottom, .is-fixed, .sticky-top",Bs=".sticky-top",yn="padding-right",Fs="margin-right";class jr{constructor(){this._element=document.body}getWidth(){const t=document.documentElement.clientWidth;return Math.abs(window.innerWidth-t)}hide(){const t=this.getWidth();this._disableOverFlow(),this._setElementAttributes(this._element,yn,n=>n+t),this._setElementAttributes(Hs,yn,n=>n+t),this._setElementAttributes(Bs,Fs,n=>n-t)}reset(){this._resetElementAttributes(this._element,"overflow"),this._resetElementAttributes(this._element,yn),this._resetElementAttributes(Hs,yn),this._resetElementAttributes(Bs,Fs)}isOverflowing(){return this.getWidth()>0}_disableOverFlow(){this._saveInitialAttribute(this._element,"overflow"),this._element.style.overflow="hidden"}_setElementAttributes(t,n,r){const i=this.getWidth(),o=a=>{if(a!==this._element&&window.innerWidth>a.clientWidth+i)return;this._saveInitialAttribute(a,n);const u=window.getComputedStyle(a).getPropertyValue(n);a.style.setProperty(n,`${r(Number.parseFloat(u))}px`)};this._applyManipulationCallback(t,o)}_saveInitialAttribute(t,n){const r=t.style.getPropertyValue(n);r&&ke.setDataAttribute(t,n,r)}_resetElementAttributes(t,n){const r=i=>{const o=ke.getDataAttribute(i,n);if(o===null){i.style.removeProperty(n);return}ke.removeDataAttribute(i,n),i.style.setProperty(n,o)};this._applyManipulationCallback(t,r)}_applyManipulationCallback(t,n){if(Ie(t)){n(t);return}for(const r of P.find(t,this._element))n(r)}}const Xh="modal",Qh="bs.modal",ve=`.${Qh}`,Jh=".data-api",Zh="Escape",ep=`hide${ve}`,tp=`hidePrevented${ve}`,Wa=`hidden${ve}`,Ya=`show${ve}`,np=`shown${ve}`,rp=`resize${ve}`,ip=`click.dismiss${ve}`,sp=`mousedown.dismiss${ve}`,op=`keydown.dismiss${ve}`,ap=`click${ve}${Jh}`,Vs="modal-open",cp="fade",js="show",Tr="modal-static",lp=".modal.show",up=".modal-dialog",fp=".modal-body",dp='[data-bs-toggle="modal"]',hp={backdrop:!0,focus:!0,keyboard:!0},pp={backdrop:"(boolean|string)",focus:"boolean",keyboard:"boolean"};class ut extends Se{constructor(t,n){super(t,n),this._dialog=P.findOne(up,this._element),this._backdrop=this._initializeBackDrop(),this._focustrap=this._initializeFocusTrap(),this._isShown=!1,this._isTransitioning=!1,this._scrollBar=new jr,this._addEventListeners()}static get Default(){return hp}static get DefaultType(){return pp}static get NAME(){return Xh}toggle(t){return this._isShown?this.hide():this.show(t)}show(t){this._isShown||this._isTransitioning||w.trigger(this._element,Ya,{relatedTarget:t}).defaultPrevented||(this._isShown=!0,this._isTransitioning=!0,this._scrollBar.hide(),document.body.classList.add(Vs),this._adjustDialog(),this._backdrop.show(()=>this._showElement(t)))}hide(){!this._isShown||this._isTransitioning||w.trigger(this._element,ep).defaultPrevented||(this._isShown=!1,this._isTransitioning=!0,this._focustrap.deactivate(),this._element.classList.remove(js),this._queueCallback(()=>this._hideModal(),this._element,this._isAnimated()))}dispose(){w.off(window,ve),w.off(this._dialog,ve),this._backdrop.dispose(),this._focustrap.deactivate(),super.dispose()}handleUpdate(){this._adjustDialog()}_initializeBackDrop(){return new Va({isVisible:Boolean(this._config.backdrop),isAnimated:this._isAnimated()})}_initializeFocusTrap(){return new ja({trapElement:this._element})}_showElement(t){document.body.contains(this._element)||document.body.append(this._element),this._element.style.display="block",this._element.removeAttribute("aria-hidden"),this._element.setAttribute("aria-modal",!0),this._element.setAttribute("role","dialog"),this._element.scrollTop=0;const n=P.findOne(fp,this._dialog);n&&(n.scrollTop=0),sn(this._element),this._element.classList.add(js);const r=()=>{this._config.focus&&this._focustrap.activate(),this._isTransitioning=!1,w.trigger(this._element,np,{relatedTarget:t})};this._queueCallback(r,this._dialog,this._isAnimated())}_addEventListeners(){w.on(this._element,op,t=>{if(t.key===Zh){if(this._config.keyboard){this.hide();return}this._triggerBackdropTransition()}}),w.on(window,rp,()=>{this._isShown&&!this._isTransitioning&&this._adjustDialog()}),w.on(this._element,sp,t=>{w.one(this._element,ip,n=>{if(!(this._element!==t.target||this._element!==n.target)){if(this._config.backdrop==="static"){this._triggerBackdropTransition();return}this._config.backdrop&&this.hide()}})})}_hideModal(){this._element.style.display="none",this._element.setAttribute("aria-hidden",!0),this._element.removeAttribute("aria-modal"),this._element.removeAttribute("role"),this._isTransitioning=!1,this._backdrop.hide(()=>{document.body.classList.remove(Vs),this._resetAdjustments(),this._scrollBar.reset(),w.trigger(this._element,Wa)})}_isAnimated(){return this._element.classList.contains(cp)}_triggerBackdropTransition(){if(w.trigger(this._element,tp).defaultPrevented)return;const n=this._element.scrollHeight>document.documentElement.clientHeight,r=this._element.style.overflowY;r==="hidden"||this._element.classList.contains(Tr)||(n||(this._element.style.overflowY="hidden"),this._element.classList.add(Tr),this._queueCallback(()=>{this._element.classList.remove(Tr),this._queueCallback(()=>{this._element.style.overflowY=r},this._dialog)},this._dialog),this._element.focus())}_adjustDialog(){const t=this._element.scrollHeight>document.documentElement.clientHeight,n=this._scrollBar.getWidth(),r=n>0;if(r&&!t){const i=ge()?"paddingLeft":"paddingRight";this._element.style[i]=`${n}px`}if(!r&&t){const i=ge()?"paddingRight":"paddingLeft";this._element.style[i]=`${n}px`}}_resetAdjustments(){this._element.style.paddingLeft="",this._element.style.paddingRight=""}static jQueryInterface(t,n){return this.each(function(){const r=ut.getOrCreateInstance(this,t);if(typeof t=="string"){if(typeof r[t]>"u")throw new TypeError(`No method named "${t}"`);r[t](n)}})}}w.on(document,ap,dp,function(e){const t=P.getElementFromSelector(this);["A","AREA"].includes(this.tagName)&&e.preventDefault(),w.one(t,Ya,i=>{i.defaultPrevented||w.one(t,Wa,()=>{Bt(this)&&this.focus()})});const n=P.findOne(lp);n&&ut.getInstance(n).hide(),ut.getOrCreateInstance(t).toggle(this)});Xn(ut);ye(ut);const _p="offcanvas",mp="bs.offcanvas",Fe=`.${mp}`,Ga=".data-api",gp=`load${Fe}${Ga}`,vp="Escape",Ws="show",Ys="showing",Gs="hiding",yp="offcanvas-backdrop",Ka=".offcanvas.show",bp=`show${Fe}`,Ep=`shown${Fe}`,wp=`hide${Fe}`,Ks=`hidePrevented${Fe}`,Ua=`hidden${Fe}`,Ap=`resize${Fe}`,Tp=`click${Fe}${Ga}`,Sp=`keydown.dismiss${Fe}`,Op='[data-bs-toggle="offcanvas"]',xp={backdrop:!0,keyboard:!0,scroll:!1},$p={backdrop:"(boolean|string)",keyboard:"boolean",scroll:"boolean"};class Ge extends Se{constructor(t,n){super(t,n),this._isShown=!1,this._backdrop=this._initializeBackDrop(),this._focustrap=this._initializeFocusTrap(),this._addEventListeners()}static get Default(){return xp}static get DefaultType(){return $p}static get NAME(){return _p}toggle(t){return this._isShown?this.hide():this.show(t)}show(t){if(this._isShown||w.trigger(this._element,bp,{relatedTarget:t}).defaultPrevented)return;this._isShown=!0,this._backdrop.show(),this._config.scroll||new jr().hide(),this._element.setAttribute("aria-modal",!0),this._element.setAttribute("role","dialog"),this._element.classList.add(Ys);const r=()=>{(!this._config.scroll||this._config.backdrop)&&this._focustrap.activate(),this._element.classList.add(Ws),this._element.classList.remove(Ys),w.trigger(this._element,Ep,{relatedTarget:t})};this._queueCallback(r,this._element,!0)}hide(){if(!this._isShown||w.trigger(this._element,wp).defaultPrevented)return;this._focustrap.deactivate(),this._element.blur(),this._isShown=!1,this._element.classList.add(Gs),this._backdrop.hide();const n=()=>{this._element.classList.remove(Ws,Gs),this._element.removeAttribute("aria-modal"),this._element.removeAttribute("role"),this._config.scroll||new jr().reset(),w.trigger(this._element,Ua)};this._queueCallback(n,this._element,!0)}dispose(){this._backdrop.dispose(),this._focustrap.deactivate(),super.dispose()}_initializeBackDrop(){const t=()=>{if(this._config.backdrop==="static"){w.trigger(this._element,Ks);return}this.hide()},n=Boolean(this._config.backdrop);return new Va({className:yp,isVisible:n,isAnimated:!0,rootElement:this._element.parentNode,clickCallback:n?t:null})}_initializeFocusTrap(){return new ja({trapElement:this._element})}_addEventListeners(){w.on(this._element,Sp,t=>{if(t.key===vp){if(this._config.keyboard){this.hide();return}w.trigger(this._element,Ks)}})}static jQueryInterface(t){return this.each(function(){const n=Ge.getOrCreateInstance(this,t);if(typeof t=="string"){if(n[t]===void 0||t.startsWith("_")||t==="constructor")throw new TypeError(`No method named "${t}"`);n[t](this)}})}}w.on(document,Tp,Op,function(e){const t=P.getElementFromSelector(this);if(["A","AREA"].includes(this.tagName)&&e.preventDefault(),Ye(this))return;w.one(t,Ua,()=>{Bt(this)&&this.focus()});const n=P.findOne(Ka);n&&n!==t&&Ge.getInstance(n).hide(),Ge.getOrCreateInstance(t).toggle(this)});w.on(window,gp,()=>{for(const e of P.find(Ka))Ge.getOrCreateInstance(e).show()});w.on(window,Ap,()=>{for(const e of P.find("[aria-modal][class*=show][class*=offcanvas-]"))getComputedStyle(e).position!=="fixed"&&Ge.getOrCreateInstance(e).hide()});Xn(Ge);ye(Ge);const Cp=/^aria-[\w-]*$/i,qa={"*":["class","dir","id","lang","role",Cp],a:["target","href","title","rel"],area:[],b:[],br:[],col:[],code:[],dd:[],div:[],dl:[],dt:[],em:[],hr:[],h1:[],h2:[],h3:[],h4:[],h5:[],h6:[],i:[],img:["src","srcset","alt","title","width","height"],li:[],ol:[],p:[],pre:[],s:[],small:[],span:[],sub:[],sup:[],strong:[],u:[],ul:[]},Dp=new Set(["background","cite","href","itemtype","longdesc","poster","src","xlink:href"]),Np=/^(?!javascript:)(?:[a-z0-9+.-]+:|[^&:/?#]*(?:[/?#]|$))/i,Mp=(e,t)=>{const n=e.nodeName.toLowerCase();return t.includes(n)?Dp.has(n)?Boolean(Np.test(e.nodeValue)):!0:t.filter(r=>r instanceof RegExp).some(r=>r.test(n))};function Lp(e,t,n){if(!e.length)return e;if(n&&typeof n=="function")return n(e);const i=new window.DOMParser().parseFromString(e,"text/html"),o=[].concat(...i.body.querySelectorAll("*"));for(const a of o){const u=a.nodeName.toLowerCase();if(!Object.keys(t).includes(u)){a.remove();continue}const f=[].concat(...a.attributes),d=[].concat(t["*"]||[],t[u]||[]);for(const g of f)Mp(g,d)||a.removeAttribute(g.nodeName)}return i.body.innerHTML}const Ip="TemplateFactory",kp={allowList:qa,content:{},extraClass:"",html:!1,sanitize:!0,sanitizeFn:null,template:"
"},Pp={allowList:"object",content:"object",extraClass:"(string|function)",html:"boolean",sanitize:"boolean",sanitizeFn:"(null|function)",template:"string"},Rp={entry:"(string|element|function|null)",selector:"(string|element)"};class Hp extends on{constructor(t){super(),this._config=this._getConfig(t)}static get Default(){return kp}static get DefaultType(){return Pp}static get NAME(){return Ip}getContent(){return Object.values(this._config.content).map(t=>this._resolvePossibleFunction(t)).filter(Boolean)}hasContent(){return this.getContent().length>0}changeContent(t){return this._checkContent(t),this._config.content={...this._config.content,...t},this}toHtml(){const t=document.createElement("div");t.innerHTML=this._maybeSanitize(this._config.template);for(const[i,o]of Object.entries(this._config.content))this._setContent(t,o,i);const n=t.children[0],r=this._resolvePossibleFunction(this._config.extraClass);return r&&n.classList.add(...r.split(" ")),n}_typeCheckConfig(t){super._typeCheckConfig(t),this._checkContent(t.content)}_checkContent(t){for(const[n,r]of Object.entries(t))super._typeCheckConfig({selector:n,entry:r},Rp)}_setContent(t,n,r){const i=P.findOne(r,t);if(!!i){if(n=this._resolvePossibleFunction(n),!n){i.remove();return}if(Ie(n)){this._putElementInTemplate(We(n),i);return}if(this._config.html){i.innerHTML=this._maybeSanitize(n);return}i.textContent=n}}_maybeSanitize(t){return this._config.sanitize?Lp(t,this._config.allowList,this._config.sanitizeFn):t}_resolvePossibleFunction(t){return fe(t,[this])}_putElementInTemplate(t,n){if(this._config.html){n.innerHTML="",n.append(t);return}n.textContent=t.textContent}}const Bp="tooltip",Fp=new Set(["sanitize","allowList","sanitizeFn"]),Sr="fade",Vp="modal",bn="show",jp=".tooltip-inner",Us=`.${Vp}`,qs="hide.bs.modal",Yt="hover",Or="focus",Wp="click",Yp="manual",Gp="hide",Kp="hidden",Up="show",qp="shown",zp="inserted",Xp="click",Qp="focusin",Jp="focusout",Zp="mouseenter",e_="mouseleave",t_={AUTO:"auto",TOP:"top",RIGHT:ge()?"left":"right",BOTTOM:"bottom",LEFT:ge()?"right":"left"},n_={allowList:qa,animation:!0,boundary:"clippingParents",container:!1,customClass:"",delay:0,fallbackPlacements:["top","right","bottom","left"],html:!1,offset:[0,6],placement:"top",popperConfig:null,sanitize:!0,sanitizeFn:null,selector:!1,template:'',title:"",trigger:"hover focus"},r_={allowList:"object",animation:"boolean",boundary:"(string|element)",container:"(string|element|boolean)",customClass:"(string|function)",delay:"(number|object)",fallbackPlacements:"array",html:"boolean",offset:"(array|string|function)",placement:"(string|function)",popperConfig:"(null|object|function)",sanitize:"boolean",sanitizeFn:"(null|function)",selector:"(string|boolean)",template:"string",title:"(string|element|function)",trigger:"string"};class mt extends Se{constructor(t,n){if(typeof Ea>"u")throw new TypeError("Bootstrap's tooltips require Popper (https://popper.js.org)");super(t,n),this._isEnabled=!0,this._timeout=0,this._isHovered=null,this._activeTrigger={},this._popper=null,this._templateFactory=null,this._newContent=null,this.tip=null,this._setListeners(),this._config.selector||this._fixTitle()}static get Default(){return n_}static get DefaultType(){return r_}static get NAME(){return Bp}enable(){this._isEnabled=!0}disable(){this._isEnabled=!1}toggleEnabled(){this._isEnabled=!this._isEnabled}toggle(){if(!!this._isEnabled){if(this._activeTrigger.click=!this._activeTrigger.click,this._isShown()){this._leave();return}this._enter()}}dispose(){clearTimeout(this._timeout),w.off(this._element.closest(Us),qs,this._hideModalHandler),this._element.getAttribute("data-bs-original-title")&&this._element.setAttribute("title",this._element.getAttribute("data-bs-original-title")),this._disposePopper(),super.dispose()}show(){if(this._element.style.display==="none")throw new Error("Please use show on visible elements");if(!(this._isWithContent()&&this._isEnabled))return;const t=w.trigger(this._element,this.constructor.eventName(Up)),r=(Ta(this._element)||this._element.ownerDocument.documentElement).contains(this._element);if(t.defaultPrevented||!r)return;this._disposePopper();const i=this._getTipElement();this._element.setAttribute("aria-describedby",i.getAttribute("id"));const{container:o}=this._config;if(this._element.ownerDocument.documentElement.contains(this.tip)||(o.append(i),w.trigger(this._element,this.constructor.eventName(zp))),this._popper=this._createPopper(i),i.classList.add(bn),"ontouchstart"in document.documentElement)for(const u of[].concat(...document.body.children))w.on(u,"mouseover",Ln);const a=()=>{w.trigger(this._element,this.constructor.eventName(qp)),this._isHovered===!1&&this._leave(),this._isHovered=!1};this._queueCallback(a,this.tip,this._isAnimated())}hide(){if(!this._isShown()||w.trigger(this._element,this.constructor.eventName(Gp)).defaultPrevented)return;if(this._getTipElement().classList.remove(bn),"ontouchstart"in document.documentElement)for(const i of[].concat(...document.body.children))w.off(i,"mouseover",Ln);this._activeTrigger[Wp]=!1,this._activeTrigger[Or]=!1,this._activeTrigger[Yt]=!1,this._isHovered=null;const r=()=>{this._isWithActiveTrigger()||(this._isHovered||this._disposePopper(),this._element.removeAttribute("aria-describedby"),w.trigger(this._element,this.constructor.eventName(Kp)))};this._queueCallback(r,this.tip,this._isAnimated())}update(){this._popper&&this._popper.update()}_isWithContent(){return Boolean(this._getTitle())}_getTipElement(){return this.tip||(this.tip=this._createTipElement(this._newContent||this._getContentForTemplate())),this.tip}_createTipElement(t){const n=this._getTemplateFactory(t).toHtml();if(!n)return null;n.classList.remove(Sr,bn),n.classList.add(`bs-${this.constructor.NAME}-auto`);const r=Wf(this.constructor.NAME).toString();return n.setAttribute("id",r),this._isAnimated()&&n.classList.add(Sr),n}setContent(t){this._newContent=t,this._isShown()&&(this._disposePopper(),this.show())}_getTemplateFactory(t){return this._templateFactory?this._templateFactory.changeContent(t):this._templateFactory=new Hp({...this._config,content:t,extraClass:this._resolvePossibleFunction(this._config.customClass)}),this._templateFactory}_getContentForTemplate(){return{[jp]:this._getTitle()}}_getTitle(){return this._resolvePossibleFunction(this._config.title)||this._element.getAttribute("data-bs-original-title")}_initializeOnDelegatedTarget(t){return this.constructor.getOrCreateInstance(t.delegateTarget,this._getDelegateConfig())}_isAnimated(){return this._config.animation||this.tip&&this.tip.classList.contains(Sr)}_isShown(){return this.tip&&this.tip.classList.contains(bn)}_createPopper(t){const n=fe(this._config.placement,[this,t,this._element]),r=t_[n.toUpperCase()];return Mi(this._element,t,this._getPopperConfig(r))}_getOffset(){const{offset:t}=this._config;return typeof t=="string"?t.split(",").map(n=>Number.parseInt(n,10)):typeof t=="function"?n=>t(n,this._element):t}_resolvePossibleFunction(t){return fe(t,[this._element])}_getPopperConfig(t){const n={placement:t,modifiers:[{name:"flip",options:{fallbackPlacements:this._config.fallbackPlacements}},{name:"offset",options:{offset:this._getOffset()}},{name:"preventOverflow",options:{boundary:this._config.boundary}},{name:"arrow",options:{element:`.${this.constructor.NAME}-arrow`}},{name:"preSetPlacement",enabled:!0,phase:"beforeMain",fn:r=>{this._getTipElement().setAttribute("data-popper-placement",r.state.placement)}}]};return{...n,...fe(this._config.popperConfig,[n])}}_setListeners(){const t=this._config.trigger.split(" ");for(const n of t)if(n==="click")w.on(this._element,this.constructor.eventName(Xp),this._config.selector,r=>{this._initializeOnDelegatedTarget(r).toggle()});else if(n!==Yp){const r=n===Yt?this.constructor.eventName(Zp):this.constructor.eventName(Qp),i=n===Yt?this.constructor.eventName(e_):this.constructor.eventName(Jp);w.on(this._element,r,this._config.selector,o=>{const a=this._initializeOnDelegatedTarget(o);a._activeTrigger[o.type==="focusin"?Or:Yt]=!0,a._enter()}),w.on(this._element,i,this._config.selector,o=>{const a=this._initializeOnDelegatedTarget(o);a._activeTrigger[o.type==="focusout"?Or:Yt]=a._element.contains(o.relatedTarget),a._leave()})}this._hideModalHandler=()=>{this._element&&this.hide()},w.on(this._element.closest(Us),qs,this._hideModalHandler)}_fixTitle(){const t=this._element.getAttribute("title");!t||(!this._element.getAttribute("aria-label")&&!this._element.textContent.trim()&&this._element.setAttribute("aria-label",t),this._element.setAttribute("data-bs-original-title",t),this._element.removeAttribute("title"))}_enter(){if(this._isShown()||this._isHovered){this._isHovered=!0;return}this._isHovered=!0,this._setTimeout(()=>{this._isHovered&&this.show()},this._config.delay.show)}_leave(){this._isWithActiveTrigger()||(this._isHovered=!1,this._setTimeout(()=>{this._isHovered||this.hide()},this._config.delay.hide))}_setTimeout(t,n){clearTimeout(this._timeout),this._timeout=setTimeout(t,n)}_isWithActiveTrigger(){return Object.values(this._activeTrigger).includes(!0)}_getConfig(t){const n=ke.getDataAttributes(this._element);for(const r of Object.keys(n))Fp.has(r)&&delete n[r];return t={...n,...typeof t=="object"&&t?t:{}},t=this._mergeConfigObj(t),t=this._configAfterMerge(t),this._typeCheckConfig(t),t}_configAfterMerge(t){return t.container=t.container===!1?document.body:We(t.container),typeof t.delay=="number"&&(t.delay={show:t.delay,hide:t.delay}),typeof t.title=="number"&&(t.title=t.title.toString()),typeof t.content=="number"&&(t.content=t.content.toString()),t}_getDelegateConfig(){const t={};for(const[n,r]of Object.entries(this._config))this.constructor.Default[n]!==r&&(t[n]=r);return t.selector=!1,t.trigger="manual",t}_disposePopper(){this._popper&&(this._popper.destroy(),this._popper=null),this.tip&&(this.tip.remove(),this.tip=null)}static jQueryInterface(t){return this.each(function(){const n=mt.getOrCreateInstance(this,t);if(typeof t=="string"){if(typeof n[t]>"u")throw new TypeError(`No method named "${t}"`);n[t]()}})}}ye(mt);const i_="popover",s_=".popover-header",o_=".popover-body",a_={...mt.Default,content:"",offset:[0,8],placement:"right",template:'',trigger:"click"},c_={...mt.DefaultType,content:"(null|string|element|function)"};class Pi extends mt{static get Default(){return a_}static get DefaultType(){return c_}static get NAME(){return i_}_isWithContent(){return this._getTitle()||this._getContent()}_getContentForTemplate(){return{[s_]:this._getTitle(),[o_]:this._getContent()}}_getContent(){return this._resolvePossibleFunction(this._config.content)}static jQueryInterface(t){return this.each(function(){const n=Pi.getOrCreateInstance(this,t);if(typeof t=="string"){if(typeof n[t]>"u")throw new TypeError(`No method named "${t}"`);n[t]()}})}}ye(Pi);const l_="scrollspy",u_="bs.scrollspy",Ri=`.${u_}`,f_=".data-api",d_=`activate${Ri}`,zs=`click${Ri}`,h_=`load${Ri}${f_}`,p_="dropdown-item",yt="active",__='[data-bs-spy="scroll"]',xr="[href]",m_=".nav, .list-group",Xs=".nav-link",g_=".nav-item",v_=".list-group-item",y_=`${Xs}, ${g_} > ${Xs}, ${v_}`,b_=".dropdown",E_=".dropdown-toggle",w_={offset:null,rootMargin:"0px 0px -25%",smoothScroll:!1,target:null,threshold:[.1,.5,1]},A_={offset:"(number|null)",rootMargin:"string",smoothScroll:"boolean",target:"element",threshold:"array"};class Jn extends Se{constructor(t,n){super(t,n),this._targetLinks=new Map,this._observableSections=new Map,this._rootElement=getComputedStyle(this._element).overflowY==="visible"?null:this._element,this._activeTarget=null,this._observer=null,this._previousScrollData={visibleEntryTop:0,parentScrollTop:0},this.refresh()}static get Default(){return w_}static get DefaultType(){return A_}static get NAME(){return l_}refresh(){this._initializeTargetsAndObservables(),this._maybeEnableSmoothScroll(),this._observer?this._observer.disconnect():this._observer=this._getNewObserver();for(const t of this._observableSections.values())this._observer.observe(t)}dispose(){this._observer.disconnect(),super.dispose()}_configAfterMerge(t){return t.target=We(t.target)||document.body,t.rootMargin=t.offset?`${t.offset}px 0px -30%`:t.rootMargin,typeof t.threshold=="string"&&(t.threshold=t.threshold.split(",").map(n=>Number.parseFloat(n))),t}_maybeEnableSmoothScroll(){!this._config.smoothScroll||(w.off(this._config.target,zs),w.on(this._config.target,zs,xr,t=>{const n=this._observableSections.get(t.target.hash);if(n){t.preventDefault();const r=this._rootElement||window,i=n.offsetTop-this._element.offsetTop;if(r.scrollTo){r.scrollTo({top:i,behavior:"smooth"});return}r.scrollTop=i}}))}_getNewObserver(){const t={root:this._rootElement,threshold:this._config.threshold,rootMargin:this._config.rootMargin};return new IntersectionObserver(n=>this._observerCallback(n),t)}_observerCallback(t){const n=a=>this._targetLinks.get(`#${a.target.id}`),r=a=>{this._previousScrollData.visibleEntryTop=a.target.offsetTop,this._process(n(a))},i=(this._rootElement||document.documentElement).scrollTop,o=i>=this._previousScrollData.parentScrollTop;this._previousScrollData.parentScrollTop=i;for(const a of t){if(!a.isIntersecting){this._activeTarget=null,this._clearActiveClass(n(a));continue}const u=a.target.offsetTop>=this._previousScrollData.visibleEntryTop;if(o&&u){if(r(a),!i)return;continue}!o&&!u&&r(a)}}_initializeTargetsAndObservables(){this._targetLinks=new Map,this._observableSections=new Map;const t=P.find(xr,this._config.target);for(const n of t){if(!n.hash||Ye(n))continue;const r=P.findOne(decodeURI(n.hash),this._element);Bt(r)&&(this._targetLinks.set(decodeURI(n.hash),n),this._observableSections.set(n.hash,r))}}_process(t){this._activeTarget!==t&&(this._clearActiveClass(this._config.target),this._activeTarget=t,t.classList.add(yt),this._activateParents(t),w.trigger(this._element,d_,{relatedTarget:t}))}_activateParents(t){if(t.classList.contains(p_)){P.findOne(E_,t.closest(b_)).classList.add(yt);return}for(const n of P.parents(t,m_))for(const r of P.prev(n,y_))r.classList.add(yt)}_clearActiveClass(t){t.classList.remove(yt);const n=P.find(`${xr}.${yt}`,t);for(const r of n)r.classList.remove(yt)}static jQueryInterface(t){return this.each(function(){const n=Jn.getOrCreateInstance(this,t);if(typeof t=="string"){if(n[t]===void 0||t.startsWith("_")||t==="constructor")throw new TypeError(`No method named "${t}"`);n[t]()}})}}w.on(window,h_,()=>{for(const e of P.find(__))Jn.getOrCreateInstance(e)});ye(Jn);const T_="tab",S_="bs.tab",gt=`.${S_}`,O_=`hide${gt}`,x_=`hidden${gt}`,$_=`show${gt}`,C_=`shown${gt}`,D_=`click${gt}`,N_=`keydown${gt}`,M_=`load${gt}`,L_="ArrowLeft",Qs="ArrowRight",I_="ArrowUp",Js="ArrowDown",$r="Home",Zs="End",rt="active",eo="fade",Cr="show",k_="dropdown",za=".dropdown-toggle",P_=".dropdown-menu",Dr=`:not(${za})`,R_='.list-group, .nav, [role="tablist"]',H_=".nav-item, .list-group-item",B_=`.nav-link${Dr}, .list-group-item${Dr}, [role="tab"]${Dr}`,Xa='[data-bs-toggle="tab"], [data-bs-toggle="pill"], [data-bs-toggle="list"]',Nr=`${B_}, ${Xa}`,F_=`.${rt}[data-bs-toggle="tab"], .${rt}[data-bs-toggle="pill"], .${rt}[data-bs-toggle="list"]`;class kt extends Se{constructor(t){super(t),this._parent=this._element.closest(R_),this._parent&&(this._setInitialAttributes(this._parent,this._getChildren()),w.on(this._element,N_,n=>this._keydown(n)))}static get NAME(){return T_}show(){const t=this._element;if(this._elemIsActive(t))return;const n=this._getActiveElem(),r=n?w.trigger(n,O_,{relatedTarget:t}):null;w.trigger(t,$_,{relatedTarget:n}).defaultPrevented||r&&r.defaultPrevented||(this._deactivate(n,t),this._activate(t,n))}_activate(t,n){if(!t)return;t.classList.add(rt),this._activate(P.getElementFromSelector(t));const r=()=>{if(t.getAttribute("role")!=="tab"){t.classList.add(Cr);return}t.removeAttribute("tabindex"),t.setAttribute("aria-selected",!0),this._toggleDropDown(t,!0),w.trigger(t,C_,{relatedTarget:n})};this._queueCallback(r,t,t.classList.contains(eo))}_deactivate(t,n){if(!t)return;t.classList.remove(rt),t.blur(),this._deactivate(P.getElementFromSelector(t));const r=()=>{if(t.getAttribute("role")!=="tab"){t.classList.remove(Cr);return}t.setAttribute("aria-selected",!1),t.setAttribute("tabindex","-1"),this._toggleDropDown(t,!1),w.trigger(t,x_,{relatedTarget:n})};this._queueCallback(r,t,t.classList.contains(eo))}_keydown(t){if(![L_,Qs,I_,Js,$r,Zs].includes(t.key))return;t.stopPropagation(),t.preventDefault();const n=this._getChildren().filter(i=>!Ye(i));let r;if([$r,Zs].includes(t.key))r=n[t.key===$r?0:n.length-1];else{const i=[Qs,Js].includes(t.key);r=Li(n,t.target,i,!0)}r&&(r.focus({preventScroll:!0}),kt.getOrCreateInstance(r).show())}_getChildren(){return P.find(Nr,this._parent)}_getActiveElem(){return this._getChildren().find(t=>this._elemIsActive(t))||null}_setInitialAttributes(t,n){this._setAttributeIfNotExists(t,"role","tablist");for(const r of n)this._setInitialAttributesOnChild(r)}_setInitialAttributesOnChild(t){t=this._getInnerElement(t);const n=this._elemIsActive(t),r=this._getOuterElement(t);t.setAttribute("aria-selected",n),r!==t&&this._setAttributeIfNotExists(r,"role","presentation"),n||t.setAttribute("tabindex","-1"),this._setAttributeIfNotExists(t,"role","tab"),this._setInitialAttributesOnTargetPanel(t)}_setInitialAttributesOnTargetPanel(t){const n=P.getElementFromSelector(t);!n||(this._setAttributeIfNotExists(n,"role","tabpanel"),t.id&&this._setAttributeIfNotExists(n,"aria-labelledby",`${t.id}`))}_toggleDropDown(t,n){const r=this._getOuterElement(t);if(!r.classList.contains(k_))return;const i=(o,a)=>{const u=P.findOne(o,r);u&&u.classList.toggle(a,n)};i(za,rt),i(P_,Cr),r.setAttribute("aria-expanded",n)}_setAttributeIfNotExists(t,n,r){t.hasAttribute(n)||t.setAttribute(n,r)}_elemIsActive(t){return t.classList.contains(rt)}_getInnerElement(t){return t.matches(Nr)?t:P.findOne(Nr,t)}_getOuterElement(t){return t.closest(H_)||t}static jQueryInterface(t){return this.each(function(){const n=kt.getOrCreateInstance(this);if(typeof t=="string"){if(n[t]===void 0||t.startsWith("_")||t==="constructor")throw new TypeError(`No method named "${t}"`);n[t]()}})}}w.on(document,D_,Xa,function(e){["A","AREA"].includes(this.tagName)&&e.preventDefault(),!Ye(this)&&kt.getOrCreateInstance(this).show()});w.on(window,M_,()=>{for(const e of P.find(F_))kt.getOrCreateInstance(e)});ye(kt);const V_="toast",j_="bs.toast",Je=`.${j_}`,W_=`mouseover${Je}`,Y_=`mouseout${Je}`,G_=`focusin${Je}`,K_=`focusout${Je}`,U_=`hide${Je}`,q_=`hidden${Je}`,z_=`show${Je}`,X_=`shown${Je}`,Q_="fade",to="hide",En="show",wn="showing",J_={animation:"boolean",autohide:"boolean",delay:"number"},Z_={animation:!0,autohide:!0,delay:5e3};class un extends Se{constructor(t,n){super(t,n),this._timeout=null,this._hasMouseInteraction=!1,this._hasKeyboardInteraction=!1,this._setListeners()}static get Default(){return Z_}static get DefaultType(){return J_}static get NAME(){return V_}show(){if(w.trigger(this._element,z_).defaultPrevented)return;this._clearTimeout(),this._config.animation&&this._element.classList.add(Q_);const n=()=>{this._element.classList.remove(wn),w.trigger(this._element,X_),this._maybeScheduleHide()};this._element.classList.remove(to),sn(this._element),this._element.classList.add(En,wn),this._queueCallback(n,this._element,this._config.animation)}hide(){if(!this.isShown()||w.trigger(this._element,U_).defaultPrevented)return;const n=()=>{this._element.classList.add(to),this._element.classList.remove(wn,En),w.trigger(this._element,q_)};this._element.classList.add(wn),this._queueCallback(n,this._element,this._config.animation)}dispose(){this._clearTimeout(),this.isShown()&&this._element.classList.remove(En),super.dispose()}isShown(){return this._element.classList.contains(En)}_maybeScheduleHide(){!this._config.autohide||this._hasMouseInteraction||this._hasKeyboardInteraction||(this._timeout=setTimeout(()=>{this.hide()},this._config.delay))}_onInteraction(t,n){switch(t.type){case"mouseover":case"mouseout":{this._hasMouseInteraction=n;break}case"focusin":case"focusout":{this._hasKeyboardInteraction=n;break}}if(n){this._clearTimeout();return}const r=t.relatedTarget;this._element===r||this._element.contains(r)||this._maybeScheduleHide()}_setListeners(){w.on(this._element,W_,t=>this._onInteraction(t,!0)),w.on(this._element,Y_,t=>this._onInteraction(t,!1)),w.on(this._element,G_,t=>this._onInteraction(t,!0)),w.on(this._element,K_,t=>this._onInteraction(t,!1))}_clearTimeout(){clearTimeout(this._timeout),this._timeout=null}static jQueryInterface(t){return this.each(function(){const n=un.getOrCreateInstance(this,t);if(typeof t=="string"){if(typeof n[t]>"u")throw new TypeError(`No method named "${t}"`);n[t](this)}})}}Xn(un);ye(un);const em=()=>{[].slice.call(document.querySelectorAll(".alert")).map(function(t){return new an(t)})},tm=()=>{[].slice.call(document.querySelectorAll('[data-bs-toggle="tooltip"]')).map(t=>new mt(t))},nm=()=>{[].slice.call(document.querySelectorAll(".collapse")).map(t=>new It(t,{toggle:!1}))};var Wr=!1,Yr=!1,st=[];function rm(e){im(e)}function im(e){st.includes(e)||st.push(e),sm()}function Qa(e){let t=st.indexOf(e);t!==-1&&st.splice(t,1)}function sm(){!Yr&&!Wr&&(Wr=!0,queueMicrotask(om))}function om(){Wr=!1,Yr=!0;for(let e=0;ee.effect(t,{scheduler:n=>{Gr?rm(n):n()}}),Ja=e.raw}function no(e){fn=e}function lm(e){let t=()=>{};return[r=>{let i=fn(r);return e._x_effects||(e._x_effects=new Set,e._x_runEffects=()=>{e._x_effects.forEach(o=>o())}),e._x_effects.add(i),t=()=>{i!==void 0&&(e._x_effects.delete(i),Zn(i))},i},()=>{t()}]}var Za=[],ec=[],tc=[];function um(e){tc.push(e)}function nc(e,t){typeof t=="function"?(e._x_cleanups||(e._x_cleanups=[]),e._x_cleanups.push(t)):(t=e,ec.push(t))}function fm(e){Za.push(e)}function dm(e,t,n){e._x_attributeCleanups||(e._x_attributeCleanups={}),e._x_attributeCleanups[t]||(e._x_attributeCleanups[t]=[]),e._x_attributeCleanups[t].push(n)}function rc(e,t){!e._x_attributeCleanups||Object.entries(e._x_attributeCleanups).forEach(([n,r])=>{(t===void 0||t.includes(n))&&(r.forEach(i=>i()),delete e._x_attributeCleanups[n])})}var Hi=new MutationObserver(Vi),Bi=!1;function ic(){Hi.observe(document,{subtree:!0,childList:!0,attributes:!0,attributeOldValue:!0}),Bi=!0}function hm(){pm(),Hi.disconnect(),Bi=!1}var Xt=[],Mr=!1;function pm(){Xt=Xt.concat(Hi.takeRecords()),Xt.length&&!Mr&&(Mr=!0,queueMicrotask(()=>{_m(),Mr=!1}))}function _m(){Vi(Xt),Xt.length=0}function te(e){if(!Bi)return e();hm();let t=e();return ic(),t}var Fi=!1,Pn=[];function mm(){Fi=!0}function gm(){Fi=!1,Vi(Pn),Pn=[]}function Vi(e){if(Fi){Pn=Pn.concat(e);return}let t=[],n=[],r=new Map,i=new Map;for(let o=0;oa.nodeType===1&&t.push(a)),e[o].removedNodes.forEach(a=>a.nodeType===1&&n.push(a))),e[o].type==="attributes")){let a=e[o].target,u=e[o].attributeName,f=e[o].oldValue,d=()=>{r.has(a)||r.set(a,[]),r.get(a).push({name:u,value:a.getAttribute(u)})},g=()=>{i.has(a)||i.set(a,[]),i.get(a).push(u)};a.hasAttribute(u)&&f===null?d():a.hasAttribute(u)?(g(),d()):g()}i.forEach((o,a)=>{rc(a,o)}),r.forEach((o,a)=>{Za.forEach(u=>u(a,o))});for(let o of n)if(!t.includes(o)&&(ec.forEach(a=>a(o)),o._x_cleanups))for(;o._x_cleanups.length;)o._x_cleanups.pop()();t.forEach(o=>{o._x_ignoreSelf=!0,o._x_ignore=!0});for(let o of t)n.includes(o)||!o.isConnected||(delete o._x_ignoreSelf,delete o._x_ignore,tc.forEach(a=>a(o)),o._x_ignore=!0,o._x_ignoreSelf=!0);t.forEach(o=>{delete o._x_ignoreSelf,delete o._x_ignore}),t=null,n=null,r=null,i=null}function sc(e){return hn(Pt(e))}function dn(e,t,n){return e._x_dataStack=[t,...Pt(n||e)],()=>{e._x_dataStack=e._x_dataStack.filter(r=>r!==t)}}function ro(e,t){let n=e._x_dataStack[0];Object.entries(t).forEach(([r,i])=>{n[r]=i})}function Pt(e){return e._x_dataStack?e._x_dataStack:typeof ShadowRoot=="function"&&e instanceof ShadowRoot?Pt(e.host):e.parentNode?Pt(e.parentNode):[]}function hn(e){let t=new Proxy({},{ownKeys:()=>Array.from(new Set(e.flatMap(n=>Object.keys(n)))),has:(n,r)=>e.some(i=>i.hasOwnProperty(r)),get:(n,r)=>(e.find(i=>{if(i.hasOwnProperty(r)){let o=Object.getOwnPropertyDescriptor(i,r);if(o.get&&o.get._x_alreadyBound||o.set&&o.set._x_alreadyBound)return!0;if((o.get||o.set)&&o.enumerable){let a=o.get,u=o.set,f=o;a=a&&a.bind(t),u=u&&u.bind(t),a&&(a._x_alreadyBound=!0),u&&(u._x_alreadyBound=!0),Object.defineProperty(i,r,{...f,get:a,set:u})}return!0}return!1})||{})[r],set:(n,r,i)=>{let o=e.find(a=>a.hasOwnProperty(r));return o?o[r]=i:e[e.length-1][r]=i,!0}});return t}function oc(e){let t=r=>typeof r=="object"&&!Array.isArray(r)&&r!==null,n=(r,i="")=>{Object.entries(Object.getOwnPropertyDescriptors(r)).forEach(([o,{value:a,enumerable:u}])=>{if(u===!1||a===void 0)return;let f=i===""?o:`${i}.${o}`;typeof a=="object"&&a!==null&&a._x_interceptor?r[o]=a.initialize(e,f,o):t(a)&&a!==r&&!(a instanceof Element)&&n(a,f)})};return n(e)}function ac(e,t=()=>{}){let n={initialValue:void 0,_x_interceptor:!0,initialize(r,i,o){return e(this.initialValue,()=>vm(r,i),a=>Kr(r,i,a),i,o)}};return t(n),r=>{if(typeof r=="object"&&r!==null&&r._x_interceptor){let i=n.initialize.bind(n);n.initialize=(o,a,u)=>{let f=r.initialize(o,a,u);return n.initialValue=f,i(o,a,u)}}else n.initialValue=r;return n}}function vm(e,t){return t.split(".").reduce((n,r)=>n[r],e)}function Kr(e,t,n){if(typeof t=="string"&&(t=t.split(".")),t.length===1)e[t[0]]=n;else{if(t.length===0)throw error;return e[t[0]]||(e[t[0]]={}),Kr(e[t[0]],t.slice(1),n)}}var cc={};function Le(e,t){cc[e]=t}function Ur(e,t){return Object.entries(cc).forEach(([n,r])=>{Object.defineProperty(e,`$${n}`,{get(){let[i,o]=hc(t);return i={interceptor:ac,...i},nc(t,o),r(t,i)},enumerable:!1})}),e}function ym(e,t,n,...r){try{return n(...r)}catch(i){en(i,e,t)}}function en(e,t,n=void 0){Object.assign(e,{el:t,expression:n}),console.warn(`Alpine Expression Error: ${e.message} - -${n?'Expression: "'+n+`" - -`:""}`,t),setTimeout(()=>{throw e},0)}function St(e,t,n={}){let r;return le(e,t)(i=>r=i,n),r}function le(...e){return lc(...e)}var lc=uc;function bm(e){lc=e}function uc(e,t){let n={};Ur(n,e);let r=[n,...Pt(e)];if(typeof t=="function")return Em(r,t);let i=Am(r,t,e);return ym.bind(null,e,t,i)}function Em(e,t){return(n=()=>{},{scope:r={},params:i=[]}={})=>{let o=t.apply(hn([r,...e]),i);Rn(n,o)}}var Lr={};function wm(e,t){if(Lr[e])return Lr[e];let n=Object.getPrototypeOf(async function(){}).constructor,r=/^[\n\s]*if.*\(.*\)/.test(e)||/^(let|const)\s/.test(e)?`(() => { ${e} })()`:e,o=(()=>{try{return new n(["__self","scope"],`with (scope) { __self.result = ${r} }; __self.finished = true; return __self.result;`)}catch(a){return en(a,t,e),Promise.resolve()}})();return Lr[e]=o,o}function Am(e,t,n){let r=wm(t,n);return(i=()=>{},{scope:o={},params:a=[]}={})=>{r.result=void 0,r.finished=!1;let u=hn([o,...e]);if(typeof r=="function"){let f=r(r,u).catch(d=>en(d,n,t));r.finished?(Rn(i,r.result,u,a,n),r.result=void 0):f.then(d=>{Rn(i,d,u,a,n)}).catch(d=>en(d,n,t)).finally(()=>r.result=void 0)}}}function Rn(e,t,n,r,i){if(typeof t=="function"){let o=t.apply(n,r);o instanceof Promise?o.then(a=>Rn(e,a,n,r)).catch(a=>en(a,i,t)):e(o)}else e(t)}var ji="x-";function jt(e=""){return ji+e}function Tm(e){ji=e}var fc={};function ee(e,t){fc[e]=t}function Wi(e,t,n){let r={};return Array.from(t).map(mc((o,a)=>r[o]=a)).filter(vc).map($m(r,n)).sort(Cm).map(o=>xm(e,o))}function Sm(e){return Array.from(e).map(mc()).filter(t=>!vc(t))}var qr=!1,Ut=new Map,dc=Symbol();function Om(e){qr=!0;let t=Symbol();dc=t,Ut.set(t,[]);let n=()=>{for(;Ut.get(t).length;)Ut.get(t).shift()();Ut.delete(t)},r=()=>{qr=!1,n()};e(n),r()}function hc(e){let t=[],n=u=>t.push(u),[r,i]=lm(e);return t.push(i),[{Alpine:pn,effect:r,cleanup:n,evaluateLater:le.bind(le,e),evaluate:St.bind(St,e)},()=>t.forEach(u=>u())]}function xm(e,t){let n=()=>{},r=fc[t.type]||n,[i,o]=hc(e);dm(e,t.original,o);let a=()=>{e._x_ignore||e._x_ignoreSelf||(r.inline&&r.inline(e,t,i),r=r.bind(r,e,t,i),qr?Ut.get(dc).push(r):r())};return a.runCleanups=o,a}var pc=(e,t)=>({name:n,value:r})=>(n.startsWith(e)&&(n=n.replace(e,t)),{name:n,value:r}),_c=e=>e;function mc(e=()=>{}){return({name:t,value:n})=>{let{name:r,value:i}=gc.reduce((o,a)=>a(o),{name:t,value:n});return r!==t&&e(r,t),{name:r,value:i}}}var gc=[];function Yi(e){gc.push(e)}function vc({name:e}){return yc().test(e)}var yc=()=>new RegExp(`^${ji}([^:^.]+)\\b`);function $m(e,t){return({name:n,value:r})=>{let i=n.match(yc()),o=n.match(/:([a-zA-Z0-9\-:]+)/),a=n.match(/\.[^.\]]+(?=[^\]]*$)/g)||[],u=t||e[n]||n;return{type:i?i[1]:null,value:o?o[1]:null,modifiers:a.map(f=>f.replace(".","")),expression:r,original:u}}}var zr="DEFAULT",An=["ignore","ref","data","id","bind","init","for","model","modelable","transition","show","if",zr,"teleport","element"];function Cm(e,t){let n=An.indexOf(e.type)===-1?zr:e.type,r=An.indexOf(t.type)===-1?zr:t.type;return An.indexOf(n)-An.indexOf(r)}function Qt(e,t,n={}){e.dispatchEvent(new CustomEvent(t,{detail:n,bubbles:!0,composed:!0,cancelable:!0}))}var Xr=[],Gi=!1;function bc(e){Xr.push(e),queueMicrotask(()=>{Gi||setTimeout(()=>{Qr()})})}function Qr(){for(Gi=!1;Xr.length;)Xr.shift()()}function Dm(){Gi=!0}function ft(e,t){if(typeof ShadowRoot=="function"&&e instanceof ShadowRoot){Array.from(e.children).forEach(i=>ft(i,t));return}let n=!1;if(t(e,()=>n=!0),n)return;let r=e.firstElementChild;for(;r;)ft(r,t),r=r.nextElementSibling}function Hn(e,...t){console.warn(`Alpine Warning: ${e}`,...t)}function Nm(){document.body||Hn("Unable to initialize. Trying to load Alpine before `` is available. Did you forget to add `defer` in Alpine's `